From f61f52a8e38fdcea43fae42df7392a3e7b87b29f Mon Sep 17 00:00:00 2001 From: Michael Kolesidis Date: Sun, 8 Jan 2023 02:37:41 +0200 Subject: [PATCH] changes --- pomonodeoro.js | 15 --------------- src.js | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 pomonodeoro.js diff --git a/pomonodeoro.js b/pomonodeoro.js deleted file mode 100644 index f89b4d7..0000000 --- a/pomonodeoro.js +++ /dev/null @@ -1,15 +0,0 @@ -var Es=Object.create;var Se=Object.defineProperty;var gs=Object.getOwnPropertyDescriptor;var xs=Object.getOwnPropertyNames;var ys=Object.getPrototypeOf,vs=Object.prototype.hasOwnProperty;var q=(e,t)=>()=>(e&&(t=e(e=0)),t);var l=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ws=(e,t)=>{for(var r in t)Se(e,r,{get:t[r],enumerable:!0})},bt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of xs(t))!vs.call(e,i)&&i!==r&&Se(e,i,{get:()=>t[i],enumerable:!(n=gs(t,i))||n.enumerable});return e};var et=(e,t,r)=>(r=e!=null?Es(ys(e)):{},bt(t||!e||!e.__esModule?Se(r,"default",{value:e,enumerable:!0}):r,e)),Ns=e=>bt(Se({},"__esModule",{value:!0}),e);var _t=l(Le=>{(function(){var e;e=function(t,r,n){var i,s;for(s="";t.length>0;)i=t.match(r),i?(s+=t.slice(0,i.index),s+=n(i),t=t.slice(i.index+i[0].length)):(s+=t,t="");return s},Le.split=function(t){var r,n;return t==null&&(t=""),n=[],r="",e(t,/\s*(?:([^\s\\\'\"]+)|'((?:[^\'\\]|\\.)*)'|"((?:[^\"\\]|\\.)*)"|(\\.?)|(\S))(\s|$)?/,function(i){var s,o,u,a,c,E,f;if(a=i[0],f=i[1],E=i[2],s=i[3],o=i[4],u=i[5],c=i[6],u!=null)throw new Error("Unmatched quote");if(r+=f||(E||s||o).replace(/\\(?=.)/,""),c!=null)return n.push(r),r=""}),r&&n.push(r),n},Le.escape=function(t){return t==null&&(t=""),t==null?"''":t.replace(/([^A-Za-z0-9_\-.,:\/@\n])/g,"\\$1").replace(/\n/g,`' -'`)}}).call(Le)});var ie=l((Jc,jt)=>{var Is="2.0.0",Rs=Number.MAX_SAFE_INTEGER||9007199254740991,qs=16;jt.exports={SEMVER_SPEC_VERSION:Is,MAX_LENGTH:256,MAX_SAFE_INTEGER:Rs,MAX_SAFE_COMPONENT_LENGTH:qs}});var se=l((kc,Ut)=>{var $s=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};Ut.exports=$s});var X=l((j,Bt)=>{var{MAX_SAFE_COMPONENT_LENGTH:tt}=ie(),Ts=se();j=Bt.exports={};var Ss=j.re=[],h=j.src=[],d=j.t={},Ls=0,g=(e,t,r)=>{let n=Ls++;Ts(e,n,t),d[e]=n,h[n]=t,Ss[n]=new RegExp(t,r?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*");g("NUMERICIDENTIFIERLOOSE","[0-9]+");g("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");g("MAINVERSION",`(${h[d.NUMERICIDENTIFIER]})\\.(${h[d.NUMERICIDENTIFIER]})\\.(${h[d.NUMERICIDENTIFIER]})`);g("MAINVERSIONLOOSE",`(${h[d.NUMERICIDENTIFIERLOOSE]})\\.(${h[d.NUMERICIDENTIFIERLOOSE]})\\.(${h[d.NUMERICIDENTIFIERLOOSE]})`);g("PRERELEASEIDENTIFIER",`(?:${h[d.NUMERICIDENTIFIER]}|${h[d.NONNUMERICIDENTIFIER]})`);g("PRERELEASEIDENTIFIERLOOSE",`(?:${h[d.NUMERICIDENTIFIERLOOSE]}|${h[d.NONNUMERICIDENTIFIER]})`);g("PRERELEASE",`(?:-(${h[d.PRERELEASEIDENTIFIER]}(?:\\.${h[d.PRERELEASEIDENTIFIER]})*))`);g("PRERELEASELOOSE",`(?:-?(${h[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${h[d.PRERELEASEIDENTIFIERLOOSE]})*))`);g("BUILDIDENTIFIER","[0-9A-Za-z-]+");g("BUILD",`(?:\\+(${h[d.BUILDIDENTIFIER]}(?:\\.${h[d.BUILDIDENTIFIER]})*))`);g("FULLPLAIN",`v?${h[d.MAINVERSION]}${h[d.PRERELEASE]}?${h[d.BUILD]}?`);g("FULL",`^${h[d.FULLPLAIN]}$`);g("LOOSEPLAIN",`[v=\\s]*${h[d.MAINVERSIONLOOSE]}${h[d.PRERELEASELOOSE]}?${h[d.BUILD]}?`);g("LOOSE",`^${h[d.LOOSEPLAIN]}$`);g("GTLT","((?:<|>)?=?)");g("XRANGEIDENTIFIERLOOSE",`${h[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);g("XRANGEIDENTIFIER",`${h[d.NUMERICIDENTIFIER]}|x|X|\\*`);g("XRANGEPLAIN",`[v=\\s]*(${h[d.XRANGEIDENTIFIER]})(?:\\.(${h[d.XRANGEIDENTIFIER]})(?:\\.(${h[d.XRANGEIDENTIFIER]})(?:${h[d.PRERELEASE]})?${h[d.BUILD]}?)?)?`);g("XRANGEPLAINLOOSE",`[v=\\s]*(${h[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${h[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${h[d.XRANGEIDENTIFIERLOOSE]})(?:${h[d.PRERELEASELOOSE]})?${h[d.BUILD]}?)?)?`);g("XRANGE",`^${h[d.GTLT]}\\s*${h[d.XRANGEPLAIN]}$`);g("XRANGELOOSE",`^${h[d.GTLT]}\\s*${h[d.XRANGEPLAINLOOSE]}$`);g("COERCE",`(^|[^\\d])(\\d{1,${tt}})(?:\\.(\\d{1,${tt}}))?(?:\\.(\\d{1,${tt}}))?(?:$|[^\\d])`);g("COERCERTL",h[d.COERCE],!0);g("LONETILDE","(?:~>?)");g("TILDETRIM",`(\\s*)${h[d.LONETILDE]}\\s+`,!0);j.tildeTrimReplace="$1~";g("TILDE",`^${h[d.LONETILDE]}${h[d.XRANGEPLAIN]}$`);g("TILDELOOSE",`^${h[d.LONETILDE]}${h[d.XRANGEPLAINLOOSE]}$`);g("LONECARET","(?:\\^)");g("CARETTRIM",`(\\s*)${h[d.LONECARET]}\\s+`,!0);j.caretTrimReplace="$1^";g("CARET",`^${h[d.LONECARET]}${h[d.XRANGEPLAIN]}$`);g("CARETLOOSE",`^${h[d.LONECARET]}${h[d.XRANGEPLAINLOOSE]}$`);g("COMPARATORLOOSE",`^${h[d.GTLT]}\\s*(${h[d.LOOSEPLAIN]})$|^$`);g("COMPARATOR",`^${h[d.GTLT]}\\s*(${h[d.FULLPLAIN]})$|^$`);g("COMPARATORTRIM",`(\\s*)${h[d.GTLT]}\\s*(${h[d.LOOSEPLAIN]}|${h[d.XRANGEPLAIN]})`,!0);j.comparatorTrimReplace="$1$2$3";g("HYPHENRANGE",`^\\s*(${h[d.XRANGEPLAIN]})\\s+-\\s+(${h[d.XRANGEPLAIN]})\\s*$`);g("HYPHENRANGELOOSE",`^\\s*(${h[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${h[d.XRANGEPLAINLOOSE]})\\s*$`);g("STAR","(<|>)?=?\\s*\\*");g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var oe=l((zc,Xt)=>{var As=["includePrerelease","loose","rtl"],Os=e=>e?typeof e!="object"?{loose:!0}:As.filter(t=>e[t]).reduce((t,r)=>(t[r]=!0,t),{}):{};Xt.exports=Os});var rt=l((Kc,Ht)=>{var Mt=/^[0-9]+$/,Wt=(e,t)=>{let r=Mt.test(e),n=Mt.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:eWt(t,e);Ht.exports={compareIdentifiers:Wt,rcompareIdentifiers:Ps}});var R=l((Zc,kt)=>{var Ae=se(),{MAX_LENGTH:Vt,MAX_SAFE_INTEGER:Oe}=ie(),{re:Yt,t:Jt}=X(),Cs=oe(),{compareIdentifiers:Q}=rt(),L=class{constructor(t,r){if(r=Cs(r),t instanceof L){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid Version: ${t}`);if(t.length>Vt)throw new TypeError(`version is longer than ${Vt} characters`);Ae("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?Yt[Jt.LOOSE]:Yt[Jt.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Oe||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Oe||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Oe||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}r&&(Q(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}};kt.exports=L});var M=l((Qc,Qt)=>{var{MAX_LENGTH:Ds}=ie(),{re:zt,t:Kt}=X(),Zt=R(),Gs=oe(),Fs=(e,t)=>{if(t=Gs(t),e instanceof Zt)return e;if(typeof e!="string"||e.length>Ds||!(t.loose?zt[Kt.LOOSE]:zt[Kt.FULL]).test(e))return null;try{return new Zt(e,t)}catch{return null}};Qt.exports=Fs});var tr=l((ef,er)=>{var bs=M(),_s=(e,t)=>{let r=bs(e,t);return r?r.version:null};er.exports=_s});var nr=l((tf,rr)=>{var js=M(),Us=(e,t)=>{let r=js(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};rr.exports=Us});var or=l((rf,sr)=>{var ir=R(),Bs=(e,t,r,n)=>{typeof r=="string"&&(n=r,r=void 0);try{return new ir(e instanceof ir?e.version:e,r).inc(t,n).version}catch{return null}};sr.exports=Bs});var O=l((nf,ar)=>{var ur=R(),Xs=(e,t,r)=>new ur(e,r).compare(new ur(t,r));ar.exports=Xs});var Pe=l((sf,cr)=>{var Ms=O(),Ws=(e,t,r)=>Ms(e,t,r)===0;cr.exports=Ws});var hr=l((of,lr)=>{var fr=M(),Hs=Pe(),Vs=(e,t)=>{if(Hs(e,t))return null;{let r=fr(e),n=fr(t),i=r.prerelease.length||n.prerelease.length,s=i?"pre":"",o=i?"prerelease":"";for(let u in r)if((u==="major"||u==="minor"||u==="patch")&&r[u]!==n[u])return s+u;return o}};lr.exports=Vs});var pr=l((uf,dr)=>{var Ys=R(),Js=(e,t)=>new Ys(e,t).major;dr.exports=Js});var Er=l((af,mr)=>{var ks=R(),zs=(e,t)=>new ks(e,t).minor;mr.exports=zs});var xr=l((cf,gr)=>{var Ks=R(),Zs=(e,t)=>new Ks(e,t).patch;gr.exports=Zs});var vr=l((ff,yr)=>{var Qs=M(),eo=(e,t)=>{let r=Qs(e,t);return r&&r.prerelease.length?r.prerelease:null};yr.exports=eo});var Nr=l((lf,wr)=>{var to=O(),ro=(e,t,r)=>to(t,e,r);wr.exports=ro});var Rr=l((hf,Ir)=>{var no=O(),io=(e,t)=>no(e,t,!0);Ir.exports=io});var Ce=l((df,$r)=>{var qr=R(),so=(e,t,r)=>{let n=new qr(e,r),i=new qr(t,r);return n.compare(i)||n.compareBuild(i)};$r.exports=so});var Sr=l((pf,Tr)=>{var oo=Ce(),uo=(e,t)=>e.sort((r,n)=>oo(r,n,t));Tr.exports=uo});var Ar=l((mf,Lr)=>{var ao=Ce(),co=(e,t)=>e.sort((r,n)=>ao(n,r,t));Lr.exports=co});var ue=l((Ef,Or)=>{var fo=O(),lo=(e,t,r)=>fo(e,t,r)>0;Or.exports=lo});var De=l((gf,Pr)=>{var ho=O(),po=(e,t,r)=>ho(e,t,r)<0;Pr.exports=po});var nt=l((xf,Cr)=>{var mo=O(),Eo=(e,t,r)=>mo(e,t,r)!==0;Cr.exports=Eo});var Ge=l((yf,Dr)=>{var go=O(),xo=(e,t,r)=>go(e,t,r)>=0;Dr.exports=xo});var Fe=l((vf,Gr)=>{var yo=O(),vo=(e,t,r)=>yo(e,t,r)<=0;Gr.exports=vo});var it=l((wf,Fr)=>{var wo=Pe(),No=nt(),Io=ue(),Ro=Ge(),qo=De(),$o=Fe(),To=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return wo(e,r,n);case"!=":return No(e,r,n);case">":return Io(e,r,n);case">=":return Ro(e,r,n);case"<":return qo(e,r,n);case"<=":return $o(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};Fr.exports=To});var _r=l((Nf,br)=>{var So=R(),Lo=M(),{re:be,t:_e}=X(),Ao=(e,t)=>{if(e instanceof So)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(be[_e.COERCE]);else{let n;for(;(n=be[_e.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||n.index+n[0].length!==r.index+r[0].length)&&(r=n),be[_e.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;be[_e.COERCERTL].lastIndex=-1}return r===null?null:Lo(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};br.exports=Ao});var Ur=l((If,jr)=>{"use strict";jr.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}});var Xr=l((Rf,Br)=>{"use strict";Br.exports=x;x.Node=W;x.create=x;function x(e){var t=this;if(t instanceof x||(t=new x),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=e(r,n.value,i),n=n.next;return r};x.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=e(r,n.value,i),n=n.prev;return r};x.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};x.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};x.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new x;if(tthis.length&&(t=this.length);for(var n=0,i=this.head;i!==null&&nthis.length&&(t=this.length);for(var n=this.length,i=this.tail;i!==null&&n>t;n--)i=i.prev;for(;i!==null&&n>e;n--,i=i.prev)r.push(i.value);return r};x.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;i!==null&&n{"use strict";var Do=Xr(),H=Symbol("max"),F=Symbol("length"),ee=Symbol("lengthCalculator"),ce=Symbol("allowStale"),V=Symbol("maxAge"),G=Symbol("dispose"),Mr=Symbol("noDisposeOnSet"),N=Symbol("lruList"),C=Symbol("cache"),Hr=Symbol("updateAgeOnGet"),st=()=>1,ut=class{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");let r=this[H]=t.max||1/0,n=t.length||st;if(this[ee]=typeof n!="function"?st:n,this[ce]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[V]=t.maxAge||0,this[G]=t.dispose,this[Mr]=t.noDisposeOnSet||!1,this[Hr]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[H]=t||1/0,ae(this)}get max(){return this[H]}set allowStale(t){this[ce]=!!t}get allowStale(){return this[ce]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[V]=t,ae(this)}get maxAge(){return this[V]}set lengthCalculator(t){typeof t!="function"&&(t=st),t!==this[ee]&&(this[ee]=t,this[F]=0,this[N].forEach(r=>{r.length=this[ee](r.value,r.key),this[F]+=r.length})),ae(this)}get lengthCalculator(){return this[ee]}get length(){return this[F]}get itemCount(){return this[N].length}rforEach(t,r){r=r||this;for(let n=this[N].tail;n!==null;){let i=n.prev;Wr(this,t,n,r),n=i}}forEach(t,r){r=r||this;for(let n=this[N].head;n!==null;){let i=n.next;Wr(this,t,n,r),n=i}}keys(){return this[N].toArray().map(t=>t.key)}values(){return this[N].toArray().map(t=>t.value)}reset(){this[G]&&this[N]&&this[N].length&&this[N].forEach(t=>this[G](t.key,t.value)),this[C]=new Map,this[N]=new Do,this[F]=0}dump(){return this[N].map(t=>je(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[N]}set(t,r,n){if(n=n||this[V],n&&typeof n!="number")throw new TypeError("maxAge must be a number");let i=n?Date.now():0,s=this[ee](r,t);if(this[C].has(t)){if(s>this[H])return te(this,this[C].get(t)),!1;let a=this[C].get(t).value;return this[G]&&(this[Mr]||this[G](t,a.value)),a.now=i,a.maxAge=n,a.value=r,this[F]+=s-a.length,a.length=s,this.get(t),ae(this),!0}let o=new at(t,r,s,i,n);return o.length>this[H]?(this[G]&&this[G](t,r),!1):(this[F]+=o.length,this[N].unshift(o),this[C].set(t,this[N].head),ae(this),!0)}has(t){if(!this[C].has(t))return!1;let r=this[C].get(t).value;return!je(this,r)}get(t){return ot(this,t,!0)}peek(t){return ot(this,t,!1)}pop(){let t=this[N].tail;return t?(te(this,t),t.value):null}del(t){te(this,this[C].get(t))}load(t){this.reset();let r=Date.now();for(let n=t.length-1;n>=0;n--){let i=t[n],s=i.e||0;if(s===0)this.set(i.k,i.v);else{let o=s-r;o>0&&this.set(i.k,i.v,o)}}}prune(){this[C].forEach((t,r)=>ot(this,r,!1))}},ot=(e,t,r)=>{let n=e[C].get(t);if(n){let i=n.value;if(je(e,i)){if(te(e,n),!e[ce])return}else r&&(e[Hr]&&(n.value.now=Date.now()),e[N].unshiftNode(n));return i.value}},je=(e,t)=>{if(!t||!t.maxAge&&!e[V])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[V]&&r>e[V]},ae=e=>{if(e[F]>e[H])for(let t=e[N].tail;e[F]>e[H]&&t!==null;){let r=t.prev;te(e,t),t=r}},te=(e,t)=>{if(t){let r=t.value;e[G]&&e[G](r.key,r.value),e[F]-=r.length,e[C].delete(r.key),e[N].removeNode(t)}},at=class{constructor(t,r,n,i,s){this.key=t,this.value=r,this.length=n,this.now=i,this.maxAge=s||0}},Wr=(e,t,r,n)=>{let i=r.value;je(e,i)&&(te(e,r),e[ce]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};Vr.exports=ut});var P=l(($f,Kr)=>{var Y=class{constructor(t,r){if(r=Fo(r),t instanceof Y)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new Y(t.raw,r);if(t instanceof ct)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t,this.set=t.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${t}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!kr(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&Bo(i[0])){this.set=[i];break}}}this.format()}format(){return this.range=this.set.map(t=>t.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(t){t=t.trim();let n=`parseRange:${Object.keys(this.options).join(",")}:${t}`,i=Jr.get(n);if(i)return i;let s=this.options.loose,o=s?S[$.HYPHENRANGELOOSE]:S[$.HYPHENRANGE];t=t.replace(o,Ko(this.options.includePrerelease)),y("hyphen replace",t),t=t.replace(S[$.COMPARATORTRIM],_o),y("comparator trim",t),t=t.replace(S[$.TILDETRIM],jo),t=t.replace(S[$.CARETTRIM],Uo),t=t.split(/\s+/).join(" ");let u=t.split(" ").map(f=>Xo(f,this.options)).join(" ").split(/\s+/).map(f=>zo(f,this.options));s&&(u=u.filter(f=>(y("loose invalid filter",f,this.options),!!f.match(S[$.COMPARATORLOOSE])))),y("range list",u);let a=new Map,c=u.map(f=>new ct(f,this.options));for(let f of c){if(kr(f))return[f];a.set(f.value,f)}a.size>1&&a.has("")&&a.delete("");let E=[...a.values()];return Jr.set(n,E),E}intersects(t,r){if(!(t instanceof Y))throw new TypeError("a Range is required");return this.set.some(n=>zr(n,r)&&t.set.some(i=>zr(i,r)&&n.every(s=>i.every(o=>s.intersects(o,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new bo(t,this.options)}catch{return!1}for(let r=0;re.value==="<0.0.0-0",Bo=e=>e.value==="",zr=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,t)),i=n.pop();return r},Xo=(e,t)=>(y("comp",e,t),e=Ho(e,t),y("caret",e),e=Mo(e,t),y("tildes",e),e=Yo(e,t),y("xrange",e),e=ko(e,t),y("stars",e),e),T=e=>!e||e.toLowerCase()==="x"||e==="*",Mo=(e,t)=>e.trim().split(/\s+/).map(r=>Wo(r,t)).join(" "),Wo=(e,t)=>{let r=t.loose?S[$.TILDELOOSE]:S[$.TILDE];return e.replace(r,(n,i,s,o,u)=>{y("tilde",e,n,i,s,o,u);let a;return T(i)?a="":T(s)?a=`>=${i}.0.0 <${+i+1}.0.0-0`:T(o)?a=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:u?(y("replaceTilde pr",u),a=`>=${i}.${s}.${o}-${u} <${i}.${+s+1}.0-0`):a=`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`,y("tilde return",a),a})},Ho=(e,t)=>e.trim().split(/\s+/).map(r=>Vo(r,t)).join(" "),Vo=(e,t)=>{y("caret",e,t);let r=t.loose?S[$.CARETLOOSE]:S[$.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(i,s,o,u,a)=>{y("caret",e,i,s,o,u,a);let c;return T(s)?c="":T(o)?c=`>=${s}.0.0${n} <${+s+1}.0.0-0`:T(u)?s==="0"?c=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.0${n} <${+s+1}.0.0-0`:a?(y("replaceCaret pr",a),s==="0"?o==="0"?c=`>=${s}.${o}.${u}-${a} <${s}.${o}.${+u+1}-0`:c=`>=${s}.${o}.${u}-${a} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.${u}-${a} <${+s+1}.0.0-0`):(y("no pr"),s==="0"?o==="0"?c=`>=${s}.${o}.${u}${n} <${s}.${o}.${+u+1}-0`:c=`>=${s}.${o}.${u}${n} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.${u} <${+s+1}.0.0-0`),y("caret return",c),c})},Yo=(e,t)=>(y("replaceXRanges",e,t),e.split(/\s+/).map(r=>Jo(r,t)).join(" ")),Jo=(e,t)=>{e=e.trim();let r=t.loose?S[$.XRANGELOOSE]:S[$.XRANGE];return e.replace(r,(n,i,s,o,u,a)=>{y("xRange",e,n,i,s,o,u,a);let c=T(s),E=c||T(o),f=E||T(u),m=f;return i==="="&&m&&(i=""),a=t.includePrerelease?"-0":"",c?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&m?(E&&(o=0),u=0,i===">"?(i=">=",E?(s=+s+1,o=0,u=0):(o=+o+1,u=0)):i==="<="&&(i="<",E?s=+s+1:o=+o+1),i==="<"&&(a="-0"),n=`${i+s}.${o}.${u}${a}`):E?n=`>=${s}.0.0${a} <${+s+1}.0.0-0`:f&&(n=`>=${s}.${o}.0${a} <${s}.${+o+1}.0-0`),y("xRange return",n),n})},ko=(e,t)=>(y("replaceStars",e,t),e.trim().replace(S[$.STAR],"")),zo=(e,t)=>(y("replaceGTE0",e,t),e.trim().replace(S[t.includePrerelease?$.GTE0PRE:$.GTE0],"")),Ko=e=>(t,r,n,i,s,o,u,a,c,E,f,m,p)=>(T(n)?r="":T(i)?r=`>=${n}.0.0${e?"-0":""}`:T(s)?r=`>=${n}.${i}.0${e?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,T(c)?a="":T(E)?a=`<${+c+1}.0.0-0`:T(f)?a=`<${c}.${+E+1}.0-0`:m?a=`<=${c}.${E}.${f}-${m}`:e?a=`<${c}.${E}.${+f+1}-0`:a=`<=${a}`,`${r} ${a}`.trim()),Zo=(e,t,r)=>{for(let n=0;n0){let i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}});var fe=l((Tf,rn)=>{var le=Symbol("SemVer ANY"),re=class{static get ANY(){return le}constructor(t,r){if(r=Qo(r),t instanceof re){if(t.loose===!!r.loose)return t;t=t.value}lt("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===le?this.value="":this.value=this.operator+this.semver.version,lt("comp",this)}parse(t){let r=this.options.loose?Zr[Qr.COMPARATORLOOSE]:Zr[Qr.COMPARATOR],n=t.match(r);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new en(n[2],this.options.loose):this.semver=le}toString(){return this.value}test(t){if(lt("Comparator.test",t,this.options.loose),this.semver===le||t===le)return!0;if(typeof t=="string")try{t=new en(t,this.options)}catch{return!1}return ft(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof re))throw new TypeError("a Comparator is required");if((!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new tn(t.value,r).test(this.value);if(t.operator==="")return t.value===""?!0:new tn(this.value,r).test(t.semver);let n=(this.operator===">="||this.operator===">")&&(t.operator===">="||t.operator===">"),i=(this.operator==="<="||this.operator==="<")&&(t.operator==="<="||t.operator==="<"),s=this.semver.version===t.semver.version,o=(this.operator===">="||this.operator==="<=")&&(t.operator===">="||t.operator==="<="),u=ft(this.semver,"<",t.semver,r)&&(this.operator===">="||this.operator===">")&&(t.operator==="<="||t.operator==="<"),a=ft(this.semver,">",t.semver,r)&&(this.operator==="<="||this.operator==="<")&&(t.operator===">="||t.operator===">");return n||i||s&&o||u||a}};rn.exports=re;var Qo=oe(),{re:Zr,t:Qr}=X(),ft=it(),lt=se(),en=R(),tn=P()});var he=l((Sf,nn)=>{var eu=P(),tu=(e,t,r)=>{try{t=new eu(t,r)}catch{return!1}return t.test(e)};nn.exports=tu});var on=l((Lf,sn)=>{var ru=P(),nu=(e,t)=>new ru(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));sn.exports=nu});var an=l((Af,un)=>{var iu=R(),su=P(),ou=(e,t,r)=>{let n=null,i=null,s=null;try{s=new su(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new iu(n,r))}),n};un.exports=ou});var ln=l((Of,cn)=>{var uu=R(),au=P(),cu=(e,t,r)=>{let n=null,i=null,s=null;try{s=new au(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new uu(n,r))}),n};cn.exports=cu});var pn=l((Pf,dn)=>{var ht=R(),fu=P(),hn=ue(),lu=(e,t)=>{e=new fu(e,t);let r=new ht("0.0.0");if(e.test(r)||(r=new ht("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n{let u=new ht(o.semver.version);switch(o.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!s||hn(u,s))&&(s=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||hn(r,s))&&(r=s)}return r&&e.test(r)?r:null};dn.exports=lu});var En=l((Cf,mn)=>{var hu=P(),du=(e,t)=>{try{return new hu(e,t).range||"*"}catch{return null}};mn.exports=du});var Ue=l((Df,vn)=>{var pu=R(),yn=fe(),{ANY:mu}=yn,Eu=P(),gu=he(),gn=ue(),xn=De(),xu=Fe(),yu=Ge(),vu=(e,t,r,n)=>{e=new pu(e,n),t=new Eu(t,n);let i,s,o,u,a;switch(r){case">":i=gn,s=xu,o=xn,u=">",a=">=";break;case"<":i=xn,s=yu,o=gn,u="<",a="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(gu(e,t,n))return!1;for(let c=0;c{p.semver===mu&&(p=new yn(">=0.0.0")),f=f||p,m=m||p,i(p.semver,f.semver,n)?f=p:o(p.semver,m.semver,n)&&(m=p)}),f.operator===u||f.operator===a||(!m.operator||m.operator===u)&&s(e,m.semver))return!1;if(m.operator===a&&o(e,m.semver))return!1}return!0};vn.exports=vu});var Nn=l((Gf,wn)=>{var wu=Ue(),Nu=(e,t,r)=>wu(e,t,">",r);wn.exports=Nu});var Rn=l((Ff,In)=>{var Iu=Ue(),Ru=(e,t,r)=>Iu(e,t,"<",r);In.exports=Ru});var Tn=l((bf,$n)=>{var qn=P(),qu=(e,t,r)=>(e=new qn(e,r),t=new qn(t,r),e.intersects(t));$n.exports=qu});var Ln=l((_f,Sn)=>{var $u=he(),Tu=O();Sn.exports=(e,t,r)=>{let n=[],i=null,s=null,o=e.sort((E,f)=>Tu(E,f,r));for(let E of o)$u(E,t,r)?(s=E,i||(i=E)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let u=[];for(let[E,f]of n)E===f?u.push(E):!f&&E===o[0]?u.push("*"):f?E===o[0]?u.push(`<=${f}`):u.push(`${E} - ${f}`):u.push(`>=${E}`);let a=u.join(" || "),c=typeof t.raw=="string"?t.raw:String(t);return a.length{var An=P(),Be=fe(),{ANY:dt}=Be,de=he(),pt=O(),Su=(e,t,r={})=>{if(e===t)return!0;e=new An(e,r),t=new An(t,r);let n=!1;e:for(let i of e.set){for(let s of t.set){let o=Lu(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},Lu=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===dt){if(t.length===1&&t[0].semver===dt)return!0;r.includePrerelease?e=[new Be(">=0.0.0-0")]:e=[new Be(">=0.0.0")]}if(t.length===1&&t[0].semver===dt){if(r.includePrerelease)return!0;t=[new Be(">=0.0.0")]}let n=new Set,i,s;for(let p of e)p.operator===">"||p.operator===">="?i=On(i,p,r):p.operator==="<"||p.operator==="<="?s=Pn(s,p,r):n.add(p.semver);if(n.size>1)return null;let o;if(i&&s){if(o=pt(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let p of n){if(i&&!de(p,String(i),r)||s&&!de(p,String(s),r))return null;for(let _ of t)if(!de(p,String(_),r))return!1;return!0}let u,a,c,E,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,m=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let p of t){if(E=E||p.operator===">"||p.operator===">=",c=c||p.operator==="<"||p.operator==="<=",i){if(m&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===m.major&&p.semver.minor===m.minor&&p.semver.patch===m.patch&&(m=!1),p.operator===">"||p.operator===">="){if(u=On(i,p,r),u===p&&u!==i)return!1}else if(i.operator===">="&&!de(i.semver,String(p),r))return!1}if(s){if(f&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===f.major&&p.semver.minor===f.minor&&p.semver.patch===f.patch&&(f=!1),p.operator==="<"||p.operator==="<="){if(a=Pn(s,p,r),a===p&&a!==s)return!1}else if(s.operator==="<="&&!de(s.semver,String(p),r))return!1}if(!p.operator&&(s||i)&&o!==0)return!1}return!(i&&c&&!s&&o!==0||s&&E&&!i&&o!==0||m||f)},On=(e,t,r)=>{if(!e)return t;let n=pt(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},Pn=(e,t,r)=>{if(!e)return t;let n=pt(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};Cn.exports=Su});var bn=l((Uf,Fn)=>{var mt=X(),Au=ie(),Ou=R(),Gn=rt(),Pu=M(),Cu=tr(),Du=nr(),Gu=or(),Fu=hr(),bu=pr(),_u=Er(),ju=xr(),Uu=vr(),Bu=O(),Xu=Nr(),Mu=Rr(),Wu=Ce(),Hu=Sr(),Vu=Ar(),Yu=ue(),Ju=De(),ku=Pe(),zu=nt(),Ku=Ge(),Zu=Fe(),Qu=it(),ea=_r(),ta=fe(),ra=P(),na=he(),ia=on(),sa=an(),oa=ln(),ua=pn(),aa=En(),ca=Ue(),fa=Nn(),la=Rn(),ha=Tn(),da=Ln(),pa=Dn();Fn.exports={parse:Pu,valid:Cu,clean:Du,inc:Gu,diff:Fu,major:bu,minor:_u,patch:ju,prerelease:Uu,compare:Bu,rcompare:Xu,compareLoose:Mu,compareBuild:Wu,sort:Hu,rsort:Vu,gt:Yu,lt:Ju,eq:ku,neq:zu,gte:Ku,lte:Zu,cmp:Qu,coerce:ea,Comparator:ta,Range:ra,satisfies:na,toComparators:ia,maxSatisfying:sa,minSatisfying:oa,minVersion:ua,validRange:aa,outside:ca,gtr:fa,ltr:la,intersects:ha,simplifyRange:da,subset:pa,SemVer:Ou,re:mt.re,src:mt.src,tokens:mt.t,SEMVER_SPEC_VERSION:Au.SEMVER_SPEC_VERSION,compareIdentifiers:Gn.compareIdentifiers,rcompareIdentifiers:Gn.rcompareIdentifiers}});var Un=l((Bf,jn)=>{"use strict";var _n=require("fs"),Et;function ma(){try{return _n.statSync("/.dockerenv"),!0}catch{return!1}}function Ea(){try{return _n.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}jn.exports=()=>(Et===void 0&&(Et=ma()||Ea()),Et)});var Mn=l((Xf,gt)=>{"use strict";var ga=require("os"),xa=require("fs"),Bn=Un(),Xn=()=>{if(process.platform!=="linux")return!1;if(ga.release().toLowerCase().includes("microsoft"))return!Bn();try{return xa.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!Bn():!1}catch{return!1}};process.env.__IS_WSL_TEST__?gt.exports=Xn:gt.exports=Xn()});var k=l((Mf,v)=>{var ya=_t(),Xe=require("child_process"),yt=bn(),va=Mn(),wa=require("path"),Na=require("url"),J=require("os"),xt=require("fs"),Ia=require("net"),Ra=1024;function Yn(e){return JSON.parse(JSON.stringify(e))}v.exports.clone=Yn;var qa=function(e){return typeof e=="string"?e.replace(/(["$`\\])/g,"\\$1"):e},$a=function(e,t){return e.indexOf(t)!==-1},Wn={u:"urgency",urgency:"urgency",t:"expire-time",time:"expire-time",timeout:"expire-time",e:"expire-time",expire:"expire-time","expire-time":"expire-time",i:"icon",icon:"icon",c:"category",category:"category",subtitle:"category",h:"hint",hint:"hint",a:"app-name","app-name":"app-name"};v.exports.command=function(e,t,r){return e=ya.escape(e),process.env.DEBUG&&process.env.DEBUG.indexOf("notifier")!==-1&&(console.info("node-notifier debug info (command):"),console.info("[notifier path]",e),console.info("[notifier options]",t.join(" "))),Xe.exec(e+" "+t.join(" "),function(n,i,s){if(n)return r(n);r(s,i)})};v.exports.fileCommand=function(e,t,r){return process.env.DEBUG&&process.env.DEBUG.indexOf("notifier")!==-1&&(console.info("node-notifier debug info (fileCommand):"),console.info("[notifier path]",e),console.info("[notifier options]",t.join(" "))),Xe.execFile(e,t,function(n,i,s){if(n)return r(n,i);r(s,i)})};v.exports.fileCommandJson=function(e,t,r){return process.env.DEBUG&&process.env.DEBUG.indexOf("notifier")!==-1&&(console.info("node-notifier debug info (fileCommandJson):"),console.info("[notifier path]",e),console.info("[notifier options]",t.join(" "))),Xe.execFile(e,t,function(n,i,s){if(n)return r(n,i);if(!i)return r(n,{});try{let o=JSON.parse(i);r(s||null,o)}catch(o){r(o,i)}})};v.exports.immediateFileCommand=function(e,t,r){process.env.DEBUG&&process.env.DEBUG.indexOf("notifier")!==-1&&(console.info("node-notifier debug info (notifier):"),console.info("[notifier path]",e)),Ta(e,function(n,i){if(!i)return r(new Error("Notifier ("+e+") not found on system."));Xe.execFile(e,t),r()})};function Ta(e,t){return xt.stat(e,function(r,n){return r?wa.extname(e)?t(r,!1):xt.stat(e+".exe",function(i,s){if(i)return t(i,!1);t(i,s.isFile())}):t(r,n.isFile())})}var Me=function(e){return e.appIcon&&(e.icon=e.appIcon,delete e.appIcon),e},pe=function(e){return e.text&&(e.message=e.text,delete e.text),e},Jn=function(e){return e.i&&(e.icon=e.i,delete e.i),e};v.exports.mapToNotifySend=function(e){e=Me(e),e=pe(e),e.timeout===!1&&delete e.timeout,e.wait===!0&&(e["expire-time"]=5);for(let t in e)t==="message"||t==="title"||e.hasOwnProperty(t)&&Wn[t]!==t&&(e[Wn[t]]=e[t],delete e[t]);return typeof e["expire-time"]>"u"?e["expire-time"]=10*1e3:typeof e["expire-time"]=="number"&&(e["expire-time"]=e["expire-time"]*1e3),e};v.exports.mapToGrowl=function(e){if(e=Me(e),e=Jn(e),e=pe(e),e.icon&&!Buffer.isBuffer(e.icon))try{e.icon=xt.readFileSync(e.icon)}catch{}return e};v.exports.mapToMac=function(e){return e=Jn(e),e=pe(e),e.icon&&(e.appIcon=e.icon,delete e.icon),e.sound===!0&&(e.sound="Bottle"),e.sound===!1&&delete e.sound,e.sound&&e.sound.indexOf("Notification.")===0&&(e.sound="Bottle"),e.wait===!0&&(e.timeout||(e.timeout=5),delete e.wait),!e.wait&&!e.timeout&&(e.timeout===!1?delete e.timeout:e.timeout=10),e.json=!0,e};function vt(e){return Object.prototype.toString.call(e)==="[object Array]"}v.exports.isArray=vt;function Sa(){}v.exports.actionJackerDecorator=function(e,t,r,n){if(t=Yn(t),r=r||Sa,typeof r!="function")throw new TypeError("The second argument must be a function callback. You have passed "+typeof r);return function(i,s){let o=s,u={};if(o&&typeof o=="object"&&(u=o,o=o.activationType),o&&(o=o.toLowerCase().trim(),o.match(/^activate|clicked$/)&&(o="activate"),o.match(/^timedout$/)&&(o="timeout")),r.apply(e,[i,o,u]),!n||!o)return;let a=n(o);a&&e.emit(a,e,t,u)}};v.exports.constructArgumentList=function(e,t){let r=[];t=t||{};let n=t.initial||[],i=t.keyExtra||"",s=t.allowedArguments||[],o=t.noEscape!==void 0,u=t.allowedArguments!==void 0,a=!!t.explicitTrue,c=!!t.keepNewlines,E=t.wrapper===void 0?'"':t.wrapper,f=function m(p){return vt(p)?Hn(p.map(m).join(",")):(o||(p=qa(p)),typeof p=="string"&&!c&&(p=Hn(p)),E+p+E)};n.forEach(function(m){r.push(f(m))});for(let m in e)if(e.hasOwnProperty(m)&&(!u||$a(s,m)))if(a&&e[m]===!0)r.push("-"+i+m);else{if(a&&e[m]===!1)continue;r.push("-"+i+m,f(e[m]))}return r};function Hn(e){let t=process.platform==="win32"?"\\r\\n":"\\n";return e.replace(/\r?\n/g,t)}var La=["t","m","b","tb","p","id","s","silent","appID","pid","pipeName","close","install"],Aa="Notification.",Vn="Notification.Default";v.exports.mapToWin8=function(e){e=Me(e),e=pe(e),e.icon&&(/^file:\/+/.test(e.icon)?e.p=new Na.URL(e.icon).pathname.replace(/^\/(\w:\/)/,"$1").replace(/\//g,"\\"):e.p=e.icon,delete e.icon),e.message&&(e.m=e.message.replace(/\x1b/g,""),delete e.message),e.title&&(e.t=e.title,delete e.title),e.appName&&(e.appID=e.appName,delete e.appName),typeof e.remove<"u"&&(e.close=e.remove,delete e.remove),(e.quiet||e.silent)&&(e.silent=e.quiet||e.silent,delete e.quiet),typeof e.sound<"u"&&(e.s=e.sound,delete e.sound),e.s===!1&&(e.silent=!0,delete e.s),e.s&&e.silent&&delete e.s,e.s===!0&&(e.s=Vn),e.s&&e.s.indexOf(Aa)!==0&&(e.s=Vn),e.actions&&vt(e.actions)&&(e.b=e.actions.join(";"),delete e.actions);for(let t in e)e.hasOwnProperty(t)&&La.indexOf(t)===-1&&delete e[t];return e};v.exports.mapToNotifu=function(e){return e=Me(e),e=pe(e),e.icon&&(e.i=e.icon,delete e.icon),e.message&&(e.m=e.message,delete e.message),e.title&&(e.p=e.title,delete e.title),e.time&&(e.d=e.time,delete e.time),e.q!==!1?e.q=!0:delete e.q,e.quiet===!1&&(delete e.q,delete e.quiet),e.sound&&(delete e.q,delete e.sound),e.t&&(e.d=e.t,delete e.t),e.type&&(e.t=Oa(e.type),delete e.type),e};v.exports.isMac=function(){return J.type()==="Darwin"};v.exports.isMountainLion=function(){return J.type()==="Darwin"&&yt.satisfies(wt(J.release()),">=12.0.0")};v.exports.isWin8=function(){return J.type()==="Windows_NT"&&yt.satisfies(wt(J.release()),">=6.2.9200")};v.exports.isWSL=function(){return va};v.exports.isLessThanWin8=function(){return J.type()==="Windows_NT"&&yt.satisfies(wt(J.release()),"<6.2.9200")};function wt(e){return e.split(".").length===2&&(e+=".0"),e}function Oa(e){if(typeof e=="string"||e instanceof String){if(e.toLowerCase()==="info")return"info";if(e.toLowerCase()==="warn")return"warn";if(e.toLowerCase()==="error")return"error"}return"info"}v.exports.createNamedPipe=e=>{let t=Buffer.alloc(Ra);return new Promise(r=>{e.instance=Ia.createServer(n=>{n.on("data",i=>{t.write(i.toString())}),n.on("end",()=>{e.instance.close()})}),e.instance.listen(e.namedPipe,()=>{r(t)})})}});var Qn=l((Wf,Zn)=>{Zn.exports=Kn;Kn.sync=Ca;var kn=require("fs");function Pa(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n{ni.exports=ti;ti.sync=Da;var ei=require("fs");function ti(e,t,r){ei.stat(e,function(n,i){r(n,n?!1:ri(i,t))})}function Da(e,t){return ri(ei.statSync(e),t)}function ri(e,t){return e.isFile()&&Ga(e,t)}function Ga(e,t){var r=e.mode,n=e.uid,i=e.gid,s=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),o=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),u=parseInt("100",8),a=parseInt("010",8),c=parseInt("001",8),E=u|a,f=r&c||r&a&&i===o||r&u&&n===s||r&E&&s===0;return f}});var oi=l((Yf,si)=>{var Vf=require("fs"),We;process.platform==="win32"||global.TESTING_WINDOWS?We=Qn():We=ii();si.exports=Nt;Nt.sync=Fa;function Nt(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){Nt(e,t||{},function(s,o){s?i(s):n(o)})})}We(e,t||{},function(n,i){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function Fa(e,t){try{return We.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var di=l((Jf,hi)=>{var ne=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",ui=require("path"),ba=ne?";":":",ai=oi(),ci=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),fi=(e,t)=>{let r=t.colon||ba,n=e.match(/\//)||ne&&e.match(/\\/)?[""]:[...ne?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=ne?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=ne?i.split(r):[""];return ne&&e.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},li=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:s}=fi(e,t),o=[],u=c=>new Promise((E,f)=>{if(c===n.length)return t.all&&o.length?E(o):f(ci(e));let m=n[c],p=/^".*"$/.test(m)?m.slice(1,-1):m,_=ui.join(p,e),Qe=!p&&/^\.[\\\/]/.test(e)?e.slice(0,2)+_:_;E(a(Qe,c,0))}),a=(c,E,f)=>new Promise((m,p)=>{if(f===i.length)return m(u(E+1));let _=i[f];ai(c+_,{pathExt:s},(Qe,ms)=>{if(!Qe&&ms)if(t.all)o.push(c+_);else return m(c+_);return m(a(c,E,f+1))})});return r?u(0).then(c=>r(null,c),r):u(0)},_a=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=fi(e,t),s=[];for(let o=0;o{var pi=require("os"),ja=di(),me=k(),Ei=require("events").EventEmitter,Ua=require("util"),gi="notify-send",He;xi.exports=Ee;function Ee(e){if(e=me.clone(e||{}),!(this instanceof Ee))return new Ee(e);this.options=e,Ei.call(this)}Ua.inherits(Ee,Ei);function Ba(){}function Xa(e,t){if(e=me.clone(e||{}),t=t||Ba,typeof t!="function")throw new TypeError("The second argument must be a function callback. You have passed "+typeof t);if(typeof e=="string"&&(e={title:"node-notifier",message:e}),!e.message)return t(new Error("Message is required.")),this;if(pi.type()!=="Linux"&&!pi.type().match(/BSD$/))return t(new Error("Only supported on Linux and *BSD systems")),this;if(He===!1)return t(new Error("notify-send must be installed on the system.")),this;if(He||this.options.suppressOsdCheck)return mi(e,t),this;try{He=!!ja.sync(gi),mi(e,t)}catch(r){return He=!1,t(r)}return this}Object.defineProperty(Ee.prototype,"notify",{get:function(){return this._notify||(this._notify=Xa.bind(this)),this._notify}});var Ma=["urgency","expire-time","icon","category","hint","app-name"];function mi(e,t){e=me.mapToNotifySend(e),e.title=e.title||"Node Notification:";let r=[e.title,e.message];delete e.title,delete e.message;let n=me.constructArgumentList(e,{initial:r,keyExtra:"-",allowedArguments:Ma});me.command(gi,n,t)}});var It=l((zf,wi)=>{var Wa=require("net"),vi=!1;wi.exports=function(e,t){if(typeof t>"u"&&(t=e,e={}),vi)return t(null,vi);let r=e.port||23053,n=e.host||"localhost",i=Wa.connect(r,n);i.setTimeout(100),i.once("connect",function(){i.end(),t(null,!0)}),i.once("error",function(){i.end(),t(null,!1)})}});var Ri=l((Kf,Ii)=>{var Ha=require("net"),Va=require("crypto"),Ni=require("util").format,Ya=require("fs"),A=`\r -`;function z(e,t){t=t||{},this.type=e,this.host=t.host||"localhost",this.port=t.port||23053,this.request="GNTP/1.0 "+e+" NONE"+A,this.resources=[],this.attempts=0,this.maxAttempts=5}z.prototype.parseResp=function(e){var t={},r,n;return e=e.slice(0,e.indexOf(A+A)).split(A),r=e[0],n=e.slice(1),t.state=r.match(/-(OK|ERROR|CALLBACK)/)[0].slice(1),n.forEach(function(i){i=i.split(": "),t[i[0]]=i[1]}),t};z.prototype.retry=function(){var e=this,t=arguments;setTimeout(function(){e.send.apply(e,t)},750)};z.prototype.addResource=function(e){var t=Va.createHash("md5").update(e).digest("hex"),r="Identifier: "+t+A+"Length: "+e.length+A+A;return this.resources.push({header:r,file:e}),"x-growl-resource://"+t};z.prototype.add=function(e,t){t!==void 0&&(/-Icon/.test(e)&&!/^https?:\/\//.test(t)&&(/\.(png|gif|jpe?g)$/.test(t)?t=this.addResource(Ya.readFileSync(t)):t instanceof Buffer&&(t=this.addResource(t))),this.request+=e+": "+t+A)};z.prototype.newline=function(){this.request+=A};z.prototype.send=function(e){var t=this,r=Ha.connect(this.port,this.host),n="";e=e||function(){},this.attempts+=1,r.on("connect",function(){r.write(t.request),t.resources.forEach(function(i){r.write(i.header),r.write(i.file),r.write(A+A)})}),r.on("data",function(i){n+=i.toString(),n.slice(n.length-4)===A+A&&(n=t.parseResp(n),n.state==="ERROR"||n.state==="CALLBACK"?r.end():n="")}),r.on("end",function(){if(["200","401","402"].indexOf(n["Error-Code"])>=0)if(t.attempts<=t.maxAttempts)t.retry(e);else{var i='GNTP request to "%s:%d" failed with error code %s (%s)';e(new Error(Ni(i,t.host,t.port,n["Error-Code"],n["Error-Description"])))}else e(void 0,n)}),r.on("error",function(){e(new Error(Ni('Error while sending GNTP request to "%s:%d"',t.host,t.port))),r.destroy()})};Ii.exports=z});var Ti=l((Zf,$i)=>{var qi=Ri();function ge(){this.appname="Growly",this.notifications=void 0,this.labels=void 0,this.count=0,this.registered=!1,this.host=void 0,this.port=void 0}ge.prototype.getLabels=function(){return this.notifications.map(function(e){return e.label})};ge.prototype.setHost=function(e,t){this.host=e,this.port=t};ge.prototype.register=function(e,t,r,n){var i;typeof t=="object"&&(r=t,t=void 0),(r===void 0||!r.length)&&(r=[{label:"default",dispname:"Default Notification",enabled:!0}]),typeof arguments[arguments.length-1]=="function"?n=arguments[arguments.length-1]:n=function(){},this.appname=e,this.notifications=r,this.labels=this.getLabels(),this.registered=!0,i=new qi("REGISTER",{host:this.host,port:this.port}),i.add("Application-Name",e),i.add("Application-Icon",t),i.add("Notifications-Count",r.length),i.newline(),r.forEach(function(s){s.enabled===void 0&&(s.enabled=!0),i.add("Notification-Name",s.label),i.add("Notification-Display-Name",s.dispname),i.add("Notification-Enabled",s.enabled?"True":"False"),i.add("Notification-Icon",s.icon),i.newline()}),i.send(n)};ge.prototype.notify=function(e,t,r){var n=this,i;if(!this.registered){this.register(this.appname,function(s){s&&console.log(s),n.notify.call(n,e,t,r)});return}t=t||{},typeof t=="function"&&(r=t,t={}),i=new qi("NOTIFY",{host:this.host,port:this.port}),i.add("Application-Name",this.appname),i.add("Notification-Name",t.label||this.labels[0]),i.add("Notification-ID",++this.count),i.add("Notification-Title",t.title),i.add("Notification-Text",e),i.add("Notification-Sticky",t.sticky?"True":"False"),i.add("Notification-Priority",t.priority),i.add("Notification-Icon",t.icon),i.add("Notification-Coalescing-ID",t.coalescingId||void 0),i.add("Notification-Callback-Context",r?"context":void 0),i.add("Notification-Callback-Context-Type",r?"string":void 0),i.add("Notification-Callback-Target",void 0),i.newline(),i.send(function(s,o){r&&s?r(s):r&&o.state==="CALLBACK"&&r(void 0,o["Notification-Callback-Result"].toLowerCase())})};$i.exports=new ge});var Ye=l((Qf,Ai)=>{var Ja=It(),Ve=k(),xe=Ti(),Li=require("events").EventEmitter,ka=require("util"),za="Couldn't connect to growl (might be used as a fallback). Make sure it is running";Ai.exports=ye;var Si;function ye(e){if(e=Ve.clone(e||{}),!(this instanceof ye))return new ye(e);xe.appname=e.name||"Node",this.options=e,Li.call(this)}ka.inherits(ye,Li);function Ka(e,t){if(xe.setHost(this.options.host,this.options.port),e=Ve.clone(e||{}),typeof e=="string"&&(e={title:"node-notifier",message:e}),t=Ve.actionJackerDecorator(this,e,t,function(r){return r==="click"?"click":r==="timedout"?"timeout":!1}),e=Ve.mapToGrowl(e),!e.message)return t(new Error("Message is required.")),this;if(e.title=e.title||"Node Notification:",Si||e.wait){let r=e.wait?t:Za;return xe.notify(e.message,e,r),e.wait||t(),this}return Ja(xe,function(r,n){if(Si=n,!n)return t(new Error(za));xe.notify(e.message,e),t()}),this}Object.defineProperty(ye.prototype,"notify",{get:function(){return this._notify||(this._notify=Ka.bind(this)),this._notify}});function Za(){}});var Di=l((el,Ci)=>{var K=k(),Qa=Ye(),ec=require("path"),tc=ec.join(__dirname,"../vendor/mac.noindex/terminal-notifier.app/Contents/MacOS/terminal-notifier"),Pi=require("events").EventEmitter,rc=require("util"),nc="You need Mac OS X 10.8 or above to use NotificationCenter, or use Growl fallback with constructor option {withFallback: true}.";Ci.exports=ve;function ve(e){if(e=K.clone(e||{}),!(this instanceof ve))return new ve(e);this.options=e,Pi.call(this)}rc.inherits(ve,Pi);var Oi=null;function ic(){}function sc(e,t){let r,n=oc();if(e=K.clone(e||{}),Oi=n,typeof e=="string"&&(e={title:"node-notifier",message:e}),t=t||ic,typeof t!="function")throw new TypeError("The second argument must be a function callback. You have passed "+typeof fn);let i=K.actionJackerDecorator(this,e,t,function(o){return Oi!==n?!1:o==="activate"?"click":o==="timeout"?"timeout":o==="replied"?"replied":!1});if(e=K.mapToMac(e),!e.message&&!e.group&&!e.list&&!e.remove)return t(new Error("Message, group, remove or list property is required.")),this;let s=K.constructArgumentList(e);return K.isMountainLion()?(K.fileCommandJson(this.options.customPath||tc,s,i),this):r||this.options.withFallback?(r=r||new Qa(this.options),r.notify(e,t)):(t(new Error(nc)),this)}Object.defineProperty(ve.prototype,"notify",{get:function(){return this._notify||(this._notify=sc.bind(this)),this._notify}});function oc(){return{_ref:"val"}}});var Rt=l((tl,_i)=>{var uc=require("path"),ac=uc.resolve(__dirname,"../vendor/notifu/notifu"),cc=It(),b=k(),fc=qt(),Gi=Ye(),lc=require("os"),bi=require("events").EventEmitter,hc=require("util"),Je;_i.exports=we;function we(e){if(e=b.clone(e||{}),!(this instanceof we))return new we(e);this.options=e,bi.call(this)}hc.inherits(we,bi);function dc(){}function pc(e,t){let r,n=this.options;e=b.clone(e||{}),t=t||dc,typeof e=="string"&&(e={title:"node-notifier",message:e});let i=b.actionJackerDecorator(this,e,t,function(s){return s==="activate"?"click":s==="timeout"?"timeout":!1});return this.options.withFallback&&b.isWin8()?(r=r||new fc(n),r.notify(e,t)):this.options.withFallback&&(!b.isLessThanWin8()||Je===!0)?(r=r||new Gi(n),r.notify(e,t)):!this.options.withFallback||Je===!1?(Fi(e,n,i),this):(cc(n,function(s,o){if(Je=o,Je)return r=r||new Gi(n),r.notify(e,t);Fi(e,n,i)}),this)}Object.defineProperty(we.prototype,"notify",{get:function(){return this._notify||(this._notify=pc.bind(this)),this._notify}});var mc=["t","d","p","m","i","e","q","w","xp"];function Fi(e,t,r){let n=lc.arch()==="x64";e=e||{},e=b.mapToNotifu(e),e.p=e.p||"Node Notification:";let i=ac+(n?"64":"")+".exe",s=t.customPath||i;if(!e.m)return r(new Error("Message is required.")),this;let o=b.constructArgumentList(e,{wrapper:"",noEscape:!0,explicitTrue:!0,allowedArguments:mc});if(e.wait)return b.fileCommand(s,o,function(u,a){let c=Ec(u.code);return c==="error"?r(u,a):r(null,c)});b.immediateFileCommand(s,o,r)}function Ec(e){switch(e){case 2:return"timeout";case 3:case 6:case 7:return"activate";case 4:return"close";default:return"error"}}});function Ne(){return ke>ze.length-16&&(ji.default.randomFillSync(ze),ke=0),ze.slice(ke,ke+=16)}var ji,ze,ke,$t=q(()=>{ji=et(require("crypto")),ze=new Uint8Array(256),ke=ze.length});var Ui,Bi=q(()=>{Ui=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});function gc(e){return typeof e=="string"&&Ui.test(e)}var U,Ie=q(()=>{Bi();U=gc});function xc(e,t=0){let r=(I[e[t+0]]+I[e[t+1]]+I[e[t+2]]+I[e[t+3]]+"-"+I[e[t+4]]+I[e[t+5]]+"-"+I[e[t+6]]+I[e[t+7]]+"-"+I[e[t+8]]+I[e[t+9]]+"-"+I[e[t+10]]+I[e[t+11]]+I[e[t+12]]+I[e[t+13]]+I[e[t+14]]+I[e[t+15]]).toLowerCase();if(!U(r))throw TypeError("Stringified UUID is invalid");return r}var I,B,Re=q(()=>{Ie();I=[];for(let e=0;e<256;++e)I.push((e+256).toString(16).substr(1));B=xc});function yc(e,t,r){let n=t&&r||0,i=t||new Array(16);e=e||{};let s=e.node||Xi,o=e.clockseq!==void 0?e.clockseq:Tt;if(s==null||o==null){let m=e.random||(e.rng||Ne)();s==null&&(s=Xi=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]),o==null&&(o=Tt=(m[6]<<8|m[7])&16383)}let u=e.msecs!==void 0?e.msecs:Date.now(),a=e.nsecs!==void 0?e.nsecs:Lt+1,c=u-St+(a-Lt)/1e4;if(c<0&&e.clockseq===void 0&&(o=o+1&16383),(c<0||u>St)&&e.nsecs===void 0&&(a=0),a>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");St=u,Lt=a,Tt=o,u+=122192928e5;let E=((u&268435455)*1e4+a)%4294967296;i[n++]=E>>>24&255,i[n++]=E>>>16&255,i[n++]=E>>>8&255,i[n++]=E&255;let f=u/4294967296*1e4&268435455;i[n++]=f>>>8&255,i[n++]=f&255,i[n++]=f>>>24&15|16,i[n++]=f>>>16&255,i[n++]=o>>>8|128,i[n++]=o&255;for(let m=0;m<6;++m)i[n+m]=s[m];return t||B(i)}var Xi,Tt,St,Lt,Mi,Wi=q(()=>{$t();Re();St=0,Lt=0;Mi=yc});function vc(e){if(!U(e))throw TypeError("Invalid UUID");let t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}var Ke,At=q(()=>{Ie();Ke=vc});function wc(e){e=unescape(encodeURIComponent(e));let t=[];for(let r=0;r{Re();At();Nc="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Ic="6ba7b811-9dad-11d1-80b4-00c04fd430c8"});function Rc(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),Hi.default.createHash("md5").update(e).digest()}var Hi,Vi,Yi=q(()=>{Hi=et(require("crypto"));Vi=Rc});var qc,Ji,ki=q(()=>{Ot();Yi();qc=Ze("v3",48,Vi),Ji=qc});function $c(e,t,r){e=e||{};let n=e.random||(e.rng||Ne)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let i=0;i<16;++i)t[r+i]=n[i];return t}return B(n)}var zi,Ki=q(()=>{$t();Re();zi=$c});function Tc(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),Zi.default.createHash("sha1").update(e).digest()}var Zi,Qi,es=q(()=>{Zi=et(require("crypto"));Qi=Tc});var Sc,ts,rs=q(()=>{Ot();es();Sc=Ze("v5",80,Qi),ts=Sc});var ns,is=q(()=>{ns="00000000-0000-0000-0000-000000000000"});function Lc(e){if(!U(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var ss,os=q(()=>{Ie();ss=Lc});var us={};ws(us,{NIL:()=>ns,parse:()=>Ke,stringify:()=>B,v1:()=>Mi,v3:()=>Ji,v4:()=>zi,v5:()=>ts,validate:()=>U,version:()=>ss});var as=q(()=>{Wi();ki();Ki();rs();is();os();Ie();Re();At()});var qt=l((jl,fs)=>{var Ac=require("path"),Oc=Ac.resolve(__dirname,"../vendor/snoreToast/snoretoast"),D=k(),Pc=Rt(),Cc=require("os"),{v4:Dc}=(as(),Ns(us)),cs=require("events").EventEmitter,Gc=require("util"),Pt,Fc="notifierPipe",bc="\\\\.\\pipe\\",_c="/tmp/";fs.exports=qe;function qe(e){if(e=D.clone(e||{}),!(this instanceof qe))return new qe(e);this.options=e,cs.call(this)}Gc.inherits(qe,cs);function jc(){}function Uc(e){return e?e.split(";").reduce((t,r)=>{let n=r.split("=");return n&&n.length===2&&(t[n[0]]=n[1]),t},{}):{}}function Bc(){return`${D.isWSL()?_c:bc}${Fc}-${Dc()}`}function Xc(e,t){e=D.clone(e||{}),t=t||jc;let r=Cc.arch()==="x64",n,i={namedPipe:Bc()};if(typeof e=="string"&&(e={title:"node-notifier",message:e}),typeof t!="function")throw new TypeError("The second argument must be a function callback. You have passed "+typeof fn);let s=(u,a)=>{let c=Uc(n&&n.toString("utf16le"));c.action==="buttonClicked"&&c.button?c.activationType=c.button:c.action&&(c.activationType=c.action),u&&u.code===-1&&a(u,c),a(null,c),i.instance&&i.instance.close()},o=u=>s(u,D.actionJackerDecorator(this,e,t,a=>a==="activate"?"click":a||!1));return e.title=e.title||"Node Notification:",typeof e.message>"u"&&typeof e.close>"u"?(t(new Error("Message or ID to close is required.")),this):!D.isWin8()&&!D.isWSL()&&this.options.withFallback?(Pt=Pt||new Pc(this.options),Pt.notify(e,t)):(D.createNamedPipe(i).then(u=>{n=u,e.pipeName=i.namedPipe;let a=e.customPath||this.options.customPath||Oc+"-x"+(r?"64":"86")+".exe";e=D.mapToWin8(e);let c=D.constructArgumentList(e,{explicitTrue:!0,wrapper:"",keepNewlines:!0,noEscape:!0});D.fileCommand(a,c,o)}),this)}Object.defineProperty(qe.prototype,"notify",{get:function(){return this._notify||(this._notify=Xc.bind(this)),this._notify}})});var ds=l((Ul,w)=>{var ls=require("os"),hs=k(),$e=yi(),Ct=Di(),Te=qt(),Dt=Ye(),Gt=Rt(),Z={withFallback:!0},Mc=hs.isWSL()?"WSL":ls.type();switch(Mc){case"Linux":w.exports=new $e(Z),w.exports.Notification=$e;break;case"Darwin":w.exports=new Ct(Z),w.exports.Notification=Ct;break;case"Windows_NT":hs.isLessThanWin8()?(w.exports=new Gt(Z),w.exports.Notification=Gt):(w.exports=new Te(Z),w.exports.Notification=Te);break;case"WSL":w.exports=new Te(Z),w.exports.Notification=Te;break;default:ls.type().match(/BSD$/)?(w.exports=new $e(Z),w.exports.Notification=$e):(w.exports=new Dt(Z),w.exports.Notification=Dt)}w.exports.NotifySend=$e;w.exports.NotificationCenter=Ct;w.exports.WindowsToaster=Te;w.exports.WindowsBalloon=Gt;w.exports.Growl=Dt});var Wc=require("readline"),ps=ds();process.stdout.write(`\x1B[31mPomonodeoro -v.0.0.1 \x1B[0m - -`);function Ft(e){let t;switch(e){case 25:t="Pomodoro";break;case 20:t="Long Break";break;case 5:t="Short Break";break}process.stdout.write(` -${t} -`);let r=e*60,n,i;setInterval(()=>{n=Math.floor(r/60),n<10&&(n=`0${n}`),i=r-n*60,i<10&&(i=`0${i}`),process.stdout.write(`\x1B[30m\x1B[47m${n} : ${i} \x1B[0m \r`),r-=1,r===-1&&(t==="Pomodoro"?(process.stdout.write(`Congratulations you finished a pomodoro! -`),ps.notify({title:"Pomonodeoro",message:"Congratulations you finished a pomodoro!"}),process.exit()):(ps.notify({title:"Pomonodeoro",message:"The break is over!"}),process.stdout.write(`The break is over! -`),process.exit()))},1e3)}function Hc(){let e=Wc.createInterface({input:process.stdin,output:process.stdout});return new Promise(t=>e.question(`Please choose an option: -[P] - Start new pomodoro (25 minutes) -[S] - Start new short break (5 minutes) -[L] - Start new long break (20 minutes) -[E] - Exit -`,r=>{e.close(),t(r)}))}(async()=>{let e=await Hc();switch(e=e.toUpperCase(),e){case"P":Ft(25);break;case"S":Ft(5);break;case"L":Ft(20);break;case"E":process.exit()}})(); diff --git a/src.js b/src.js index f6f24a3..48fd1ee 100644 --- a/src.js +++ b/src.js @@ -7,7 +7,7 @@ const readline = require("readline"); const notifier = require("node-notifier"); -process.stdout.write("\x1b[31mPomonodeoro\nv.0.0.1 \x1b[0m\n\n"); +process.stdout.write("\x1b[31mPomonodeoro\nv.0.1.0 \x1b[0m\n\n"); function timer(totalTime) { let type;