nw-builder 3.8.2-beta.3 → 4.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,6 +1,2573 @@
1
- var va=Object.create;var He=Object.defineProperty;var da=Object.getOwnPropertyDescriptor;var ga=Object.getOwnPropertyNames;var ma=Object.getPrototypeOf,Ea=Object.prototype.hasOwnProperty;var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ya=(e,t)=>{for(var r in t)He(e,r,{get:t[r],enumerable:!0})},$r=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ga(t))!Ea.call(e,i)&&i!==r&&He(e,i,{get:()=>t[i],enumerable:!(n=da(t,i))||n.enumerable});return e};var fe=(e,t,r)=>(r=e!=null?va(ma(e)):{},$r(t||!e||!e.__esModule?He(r,"default",{value:e,enumerable:!0}):r,e)),ba=e=>$r(He({},"__esModule",{value:!0}),e);var Ie=v((_f,Lr)=>{var _a="2.0.0",Oa=Number.MAX_SAFE_INTEGER||9007199254740991,Sa=16;Lr.exports={SEMVER_SPEC_VERSION:_a,MAX_LENGTH:256,MAX_SAFE_INTEGER:Oa,MAX_SAFE_COMPONENT_LENGTH:Sa}});var Ae=v((Of,Tr)=>{var Ia=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};Tr.exports=Ia});var J=v((V,qr)=>{var{MAX_SAFE_COMPONENT_LENGTH:It}=Ie(),Aa=Ae();V=qr.exports={};var Ra=V.re=[],d=V.src=[],g=V.t={},$a=0,E=(e,t,r)=>{let n=$a++;Aa(e,n,t),g[e]=n,d[n]=t,Ra[n]=new RegExp(t,r?"g":void 0)};E("NUMERICIDENTIFIER","0|[1-9]\\d*");E("NUMERICIDENTIFIERLOOSE","[0-9]+");E("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");E("MAINVERSION",`(${d[g.NUMERICIDENTIFIER]})\\.(${d[g.NUMERICIDENTIFIER]})\\.(${d[g.NUMERICIDENTIFIER]})`);E("MAINVERSIONLOOSE",`(${d[g.NUMERICIDENTIFIERLOOSE]})\\.(${d[g.NUMERICIDENTIFIERLOOSE]})\\.(${d[g.NUMERICIDENTIFIERLOOSE]})`);E("PRERELEASEIDENTIFIER",`(?:${d[g.NUMERICIDENTIFIER]}|${d[g.NONNUMERICIDENTIFIER]})`);E("PRERELEASEIDENTIFIERLOOSE",`(?:${d[g.NUMERICIDENTIFIERLOOSE]}|${d[g.NONNUMERICIDENTIFIER]})`);E("PRERELEASE",`(?:-(${d[g.PRERELEASEIDENTIFIER]}(?:\\.${d[g.PRERELEASEIDENTIFIER]})*))`);E("PRERELEASELOOSE",`(?:-?(${d[g.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${d[g.PRERELEASEIDENTIFIERLOOSE]})*))`);E("BUILDIDENTIFIER","[0-9A-Za-z-]+");E("BUILD",`(?:\\+(${d[g.BUILDIDENTIFIER]}(?:\\.${d[g.BUILDIDENTIFIER]})*))`);E("FULLPLAIN",`v?${d[g.MAINVERSION]}${d[g.PRERELEASE]}?${d[g.BUILD]}?`);E("FULL",`^${d[g.FULLPLAIN]}$`);E("LOOSEPLAIN",`[v=\\s]*${d[g.MAINVERSIONLOOSE]}${d[g.PRERELEASELOOSE]}?${d[g.BUILD]}?`);E("LOOSE",`^${d[g.LOOSEPLAIN]}$`);E("GTLT","((?:<|>)?=?)");E("XRANGEIDENTIFIERLOOSE",`${d[g.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);E("XRANGEIDENTIFIER",`${d[g.NUMERICIDENTIFIER]}|x|X|\\*`);E("XRANGEPLAIN",`[v=\\s]*(${d[g.XRANGEIDENTIFIER]})(?:\\.(${d[g.XRANGEIDENTIFIER]})(?:\\.(${d[g.XRANGEIDENTIFIER]})(?:${d[g.PRERELEASE]})?${d[g.BUILD]}?)?)?`);E("XRANGEPLAINLOOSE",`[v=\\s]*(${d[g.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[g.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[g.XRANGEIDENTIFIERLOOSE]})(?:${d[g.PRERELEASELOOSE]})?${d[g.BUILD]}?)?)?`);E("XRANGE",`^${d[g.GTLT]}\\s*${d[g.XRANGEPLAIN]}$`);E("XRANGELOOSE",`^${d[g.GTLT]}\\s*${d[g.XRANGEPLAINLOOSE]}$`);E("COERCE",`(^|[^\\d])(\\d{1,${It}})(?:\\.(\\d{1,${It}}))?(?:\\.(\\d{1,${It}}))?(?:$|[^\\d])`);E("COERCERTL",d[g.COERCE],!0);E("LONETILDE","(?:~>?)");E("TILDETRIM",`(\\s*)${d[g.LONETILDE]}\\s+`,!0);V.tildeTrimReplace="$1~";E("TILDE",`^${d[g.LONETILDE]}${d[g.XRANGEPLAIN]}$`);E("TILDELOOSE",`^${d[g.LONETILDE]}${d[g.XRANGEPLAINLOOSE]}$`);E("LONECARET","(?:\\^)");E("CARETTRIM",`(\\s*)${d[g.LONECARET]}\\s+`,!0);V.caretTrimReplace="$1^";E("CARET",`^${d[g.LONECARET]}${d[g.XRANGEPLAIN]}$`);E("CARETLOOSE",`^${d[g.LONECARET]}${d[g.XRANGEPLAINLOOSE]}$`);E("COMPARATORLOOSE",`^${d[g.GTLT]}\\s*(${d[g.LOOSEPLAIN]})$|^$`);E("COMPARATOR",`^${d[g.GTLT]}\\s*(${d[g.FULLPLAIN]})$|^$`);E("COMPARATORTRIM",`(\\s*)${d[g.GTLT]}\\s*(${d[g.LOOSEPLAIN]}|${d[g.XRANGEPLAIN]})`,!0);V.comparatorTrimReplace="$1$2$3";E("HYPHENRANGE",`^\\s*(${d[g.XRANGEPLAIN]})\\s+-\\s+(${d[g.XRANGEPLAIN]})\\s*$`);E("HYPHENRANGELOOSE",`^\\s*(${d[g.XRANGEPLAINLOOSE]})\\s+-\\s+(${d[g.XRANGEPLAINLOOSE]})\\s*$`);E("STAR","(<|>)?=?\\s*\\*");E("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");E("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Re=v((Sf,jr)=>{var Na=["includePrerelease","loose","rtl"],xa=e=>e?typeof e!="object"?{loose:!0}:Na.filter(t=>e[t]).reduce((t,r)=>(t[r]=!0,t),{}):{};jr.exports=xa});var Be=v((If,Dr)=>{var Cr=/^[0-9]+$/,Pr=(e,t)=>{let r=Cr.test(e),n=Cr.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},La=(e,t)=>Pr(t,e);Dr.exports={compareIdentifiers:Pr,rcompareIdentifiers:La}});var L=v((Af,Mr)=>{var Ve=Ae(),{MAX_LENGTH:Gr,MAX_SAFE_INTEGER:ze}=Ie(),{re:kr,t:Fr}=J(),Ta=Re(),{compareIdentifiers:pe}=Be(),C=class{constructor(t,r){if(r=Ta(r),t instanceof C){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>Gr)throw new TypeError(`version is longer than ${Gr} characters`);Ve("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?kr[Fr.LOOSE]:kr[Fr.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>ze||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ze||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ze||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<ze)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(Ve("SemVer.compare",this.version,this.options,t),!(t instanceof C)){if(typeof t=="string"&&t===this.version)return 0;t=new C(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof C||(t=new C(t,this.options)),pe(this.major,t.major)||pe(this.minor,t.minor)||pe(this.patch,t.patch)}comparePre(t){if(t instanceof C||(t=new C(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=t.prerelease[r];if(Ve("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return pe(n,i)}while(++r)}compareBuild(t){t instanceof C||(t=new C(t,this.options));let r=0;do{let n=this.build[r],i=t.build[r];if(Ve("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return pe(n,i)}while(++r)}inc(t,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r),this.inc("pre",r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r),this.inc("pre",r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}r&&(pe(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}};Mr.exports=C});var ee=v((Rf,Br)=>{var{MAX_LENGTH:qa}=Ie(),{re:Xr,t:Ur}=J(),Hr=L(),ja=Re(),Ca=(e,t)=>{if(t=ja(t),e instanceof Hr)return e;if(typeof e!="string"||e.length>qa||!(t.loose?Xr[Ur.LOOSE]:Xr[Ur.FULL]).test(e))return null;try{return new Hr(e,t)}catch{return null}};Br.exports=Ca});var zr=v(($f,Vr)=>{var Pa=ee(),Da=(e,t)=>{let r=Pa(e,t);return r?r.version:null};Vr.exports=Da});var Wr=v((Nf,Zr)=>{var Ga=ee(),ka=(e,t)=>{let r=Ga(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};Zr.exports=ka});var Kr=v((xf,Qr)=>{var Yr=L(),Fa=(e,t,r,n)=>{typeof r=="string"&&(n=r,r=void 0);try{return new Yr(e instanceof Yr?e.version:e,r).inc(t,n).version}catch{return null}};Qr.exports=Fa});var D=v((Lf,en)=>{var Jr=L(),Ma=(e,t,r)=>new Jr(e,r).compare(new Jr(t,r));en.exports=Ma});var Ze=v((Tf,tn)=>{var Xa=D(),Ua=(e,t,r)=>Xa(e,t,r)===0;tn.exports=Ua});var sn=v((qf,nn)=>{var rn=ee(),Ha=Ze(),Ba=(e,t)=>{if(Ha(e,t))return null;{let r=rn(e),n=rn(t),i=r.prerelease.length||n.prerelease.length,s=i?"pre":"",a=i?"prerelease":"";for(let u in r)if((u==="major"||u==="minor"||u==="patch")&&r[u]!==n[u])return s+u;return a}};nn.exports=Ba});var on=v((jf,an)=>{var Va=L(),za=(e,t)=>new Va(e,t).major;an.exports=za});var ln=v((Cf,un)=>{var Za=L(),Wa=(e,t)=>new Za(e,t).minor;un.exports=Wa});var hn=v((Pf,cn)=>{var Ya=L(),Qa=(e,t)=>new Ya(e,t).patch;cn.exports=Qa});var pn=v((Df,fn)=>{var Ka=ee(),Ja=(e,t)=>{let r=Ka(e,t);return r&&r.prerelease.length?r.prerelease:null};fn.exports=Ja});var dn=v((Gf,vn)=>{var eo=D(),to=(e,t,r)=>eo(t,e,r);vn.exports=to});var mn=v((kf,gn)=>{var ro=D(),no=(e,t)=>ro(e,t,!0);gn.exports=no});var We=v((Ff,yn)=>{var En=L(),io=(e,t,r)=>{let n=new En(e,r),i=new En(t,r);return n.compare(i)||n.compareBuild(i)};yn.exports=io});var wn=v((Mf,bn)=>{var so=We(),ao=(e,t)=>e.sort((r,n)=>so(r,n,t));bn.exports=ao});var On=v((Xf,_n)=>{var oo=We(),uo=(e,t)=>e.sort((r,n)=>oo(n,r,t));_n.exports=uo});var $e=v((Uf,Sn)=>{var lo=D(),co=(e,t,r)=>lo(e,t,r)>0;Sn.exports=co});var Ye=v((Hf,In)=>{var ho=D(),fo=(e,t,r)=>ho(e,t,r)<0;In.exports=fo});var At=v((Bf,An)=>{var po=D(),vo=(e,t,r)=>po(e,t,r)!==0;An.exports=vo});var Qe=v((Vf,Rn)=>{var go=D(),mo=(e,t,r)=>go(e,t,r)>=0;Rn.exports=mo});var Ke=v((zf,$n)=>{var Eo=D(),yo=(e,t,r)=>Eo(e,t,r)<=0;$n.exports=yo});var Rt=v((Zf,Nn)=>{var bo=Ze(),wo=At(),_o=$e(),Oo=Qe(),So=Ye(),Io=Ke(),Ao=(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 bo(e,r,n);case"!=":return wo(e,r,n);case">":return _o(e,r,n);case">=":return Oo(e,r,n);case"<":return So(e,r,n);case"<=":return Io(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};Nn.exports=Ao});var Ln=v((Wf,xn)=>{var Ro=L(),$o=ee(),{re:Je,t:et}=J(),No=(e,t)=>{if(e instanceof Ro)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(Je[et.COERCE]);else{let n;for(;(n=Je[et.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||n.index+n[0].length!==r.index+r[0].length)&&(r=n),Je[et.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;Je[et.COERCERTL].lastIndex=-1}return r===null?null:$o(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};xn.exports=No});var qn=v((Yf,Tn)=>{"use strict";Tn.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}});var Cn=v((Qf,jn)=>{"use strict";jn.exports=w;w.Node=te;w.create=w;function w(e){var t=this;if(t instanceof w||(t=new w),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;r<n;r++)t.push(arguments[r]);return t}w.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};w.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};w.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};w.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)Lo(this,arguments[e]);return this.length};w.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)To(this,arguments[e]);return this.length};w.prototype.pop=function(){if(!!this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};w.prototype.shift=function(){if(!!this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};w.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};w.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};w.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};w.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};w.prototype.map=function(e,t){t=t||this;for(var r=new w,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};w.prototype.mapReverse=function(e,t){t=t||this;for(var r=new w,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};w.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)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};w.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};w.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};w.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};w.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 w;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(;i!==null&&n<t;n++,i=i.next)r.push(i.value);return r};w.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new w;if(t<e||t<0)return r;e<0&&(e=0),t>this.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};w.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<e;n++)i=i.next;for(var s=[],n=0;i&&n<t;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=xo(this,i,r[n]);return s};w.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};function xo(e,t,r){var n=t===e.head?new te(r,null,t,e):new te(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function Lo(e,t){e.tail=new te(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function To(e,t){e.head=new te(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function te(e,t,r,n){if(!(this instanceof te))return new te(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{qn()(w)}catch{}});var Fn=v((Kf,kn)=>{"use strict";var qo=Cn(),re=Symbol("max"),H=Symbol("length"),ve=Symbol("lengthCalculator"),xe=Symbol("allowStale"),ne=Symbol("maxAge"),U=Symbol("dispose"),Pn=Symbol("noDisposeOnSet"),$=Symbol("lruList"),F=Symbol("cache"),Gn=Symbol("updateAgeOnGet"),$t=()=>1,xt=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[re]=t.max||1/0,n=t.length||$t;if(this[ve]=typeof n!="function"?$t:n,this[xe]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[ne]=t.maxAge||0,this[U]=t.dispose,this[Pn]=t.noDisposeOnSet||!1,this[Gn]=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[re]=t||1/0,Ne(this)}get max(){return this[re]}set allowStale(t){this[xe]=!!t}get allowStale(){return this[xe]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[ne]=t,Ne(this)}get maxAge(){return this[ne]}set lengthCalculator(t){typeof t!="function"&&(t=$t),t!==this[ve]&&(this[ve]=t,this[H]=0,this[$].forEach(r=>{r.length=this[ve](r.value,r.key),this[H]+=r.length})),Ne(this)}get lengthCalculator(){return this[ve]}get length(){return this[H]}get itemCount(){return this[$].length}rforEach(t,r){r=r||this;for(let n=this[$].tail;n!==null;){let i=n.prev;Dn(this,t,n,r),n=i}}forEach(t,r){r=r||this;for(let n=this[$].head;n!==null;){let i=n.next;Dn(this,t,n,r),n=i}}keys(){return this[$].toArray().map(t=>t.key)}values(){return this[$].toArray().map(t=>t.value)}reset(){this[U]&&this[$]&&this[$].length&&this[$].forEach(t=>this[U](t.key,t.value)),this[F]=new Map,this[$]=new qo,this[H]=0}dump(){return this[$].map(t=>tt(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[$]}set(t,r,n){if(n=n||this[ne],n&&typeof n!="number")throw new TypeError("maxAge must be a number");let i=n?Date.now():0,s=this[ve](r,t);if(this[F].has(t)){if(s>this[re])return de(this,this[F].get(t)),!1;let o=this[F].get(t).value;return this[U]&&(this[Pn]||this[U](t,o.value)),o.now=i,o.maxAge=n,o.value=r,this[H]+=s-o.length,o.length=s,this.get(t),Ne(this),!0}let a=new Lt(t,r,s,i,n);return a.length>this[re]?(this[U]&&this[U](t,r),!1):(this[H]+=a.length,this[$].unshift(a),this[F].set(t,this[$].head),Ne(this),!0)}has(t){if(!this[F].has(t))return!1;let r=this[F].get(t).value;return!tt(this,r)}get(t){return Nt(this,t,!0)}peek(t){return Nt(this,t,!1)}pop(){let t=this[$].tail;return t?(de(this,t),t.value):null}del(t){de(this,this[F].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 a=s-r;a>0&&this.set(i.k,i.v,a)}}}prune(){this[F].forEach((t,r)=>Nt(this,r,!1))}},Nt=(e,t,r)=>{let n=e[F].get(t);if(n){let i=n.value;if(tt(e,i)){if(de(e,n),!e[xe])return}else r&&(e[Gn]&&(n.value.now=Date.now()),e[$].unshiftNode(n));return i.value}},tt=(e,t)=>{if(!t||!t.maxAge&&!e[ne])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[ne]&&r>e[ne]},Ne=e=>{if(e[H]>e[re])for(let t=e[$].tail;e[H]>e[re]&&t!==null;){let r=t.prev;de(e,t),t=r}},de=(e,t)=>{if(t){let r=t.value;e[U]&&e[U](r.key,r.value),e[H]-=r.length,e[F].delete(r.key),e[$].removeNode(t)}},Lt=class{constructor(t,r,n,i,s){this.key=t,this.value=r,this.length=n,this.now=i,this.maxAge=s||0}},Dn=(e,t,r,n)=>{let i=r.value;tt(e,i)&&(de(e,r),e[xe]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};kn.exports=xt});var G=v((Jf,Hn)=>{var ie=class{constructor(t,r){if(r=Co(r),t instanceof ie)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new ie(t.raw,r);if(t instanceof Tt)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=>!Xn(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&&Fo(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=Mn.get(n);if(i)return i;let s=this.options.loose,a=s?j[T.HYPHENRANGELOOSE]:j[T.HYPHENRANGE];t=t.replace(a,Yo(this.options.includePrerelease)),I("hyphen replace",t),t=t.replace(j[T.COMPARATORTRIM],Do),I("comparator trim",t),t=t.replace(j[T.TILDETRIM],Go),t=t.replace(j[T.CARETTRIM],ko),t=t.split(/\s+/).join(" ");let u=t.split(" ").map(f=>Mo(f,this.options)).join(" ").split(/\s+/).map(f=>Wo(f,this.options));s&&(u=u.filter(f=>(I("loose invalid filter",f,this.options),!!f.match(j[T.COMPARATORLOOSE])))),I("range list",u);let o=new Map,l=u.map(f=>new Tt(f,this.options));for(let f of l){if(Xn(f))return[f];o.set(f.value,f)}o.size>1&&o.has("")&&o.delete("");let h=[...o.values()];return Mn.set(n,h),h}intersects(t,r){if(!(t instanceof ie))throw new TypeError("a Range is required");return this.set.some(n=>Un(n,r)&&t.set.some(i=>Un(i,r)&&n.every(s=>i.every(a=>s.intersects(a,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new Po(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Qo(this.set[r],t,this.options))return!0;return!1}};Hn.exports=ie;var jo=Fn(),Mn=new jo({max:1e3}),Co=Re(),Tt=Le(),I=Ae(),Po=L(),{re:j,t:T,comparatorTrimReplace:Do,tildeTrimReplace:Go,caretTrimReplace:ko}=J(),Xn=e=>e.value==="<0.0.0-0",Fo=e=>e.value==="",Un=(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},Mo=(e,t)=>(I("comp",e,t),e=Ho(e,t),I("caret",e),e=Xo(e,t),I("tildes",e),e=Vo(e,t),I("xrange",e),e=Zo(e,t),I("stars",e),e),q=e=>!e||e.toLowerCase()==="x"||e==="*",Xo=(e,t)=>e.trim().split(/\s+/).map(r=>Uo(r,t)).join(" "),Uo=(e,t)=>{let r=t.loose?j[T.TILDELOOSE]:j[T.TILDE];return e.replace(r,(n,i,s,a,u)=>{I("tilde",e,n,i,s,a,u);let o;return q(i)?o="":q(s)?o=`>=${i}.0.0 <${+i+1}.0.0-0`:q(a)?o=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:u?(I("replaceTilde pr",u),o=`>=${i}.${s}.${a}-${u} <${i}.${+s+1}.0-0`):o=`>=${i}.${s}.${a} <${i}.${+s+1}.0-0`,I("tilde return",o),o})},Ho=(e,t)=>e.trim().split(/\s+/).map(r=>Bo(r,t)).join(" "),Bo=(e,t)=>{I("caret",e,t);let r=t.loose?j[T.CARETLOOSE]:j[T.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(i,s,a,u,o)=>{I("caret",e,i,s,a,u,o);let l;return q(s)?l="":q(a)?l=`>=${s}.0.0${n} <${+s+1}.0.0-0`:q(u)?s==="0"?l=`>=${s}.${a}.0${n} <${s}.${+a+1}.0-0`:l=`>=${s}.${a}.0${n} <${+s+1}.0.0-0`:o?(I("replaceCaret pr",o),s==="0"?a==="0"?l=`>=${s}.${a}.${u}-${o} <${s}.${a}.${+u+1}-0`:l=`>=${s}.${a}.${u}-${o} <${s}.${+a+1}.0-0`:l=`>=${s}.${a}.${u}-${o} <${+s+1}.0.0-0`):(I("no pr"),s==="0"?a==="0"?l=`>=${s}.${a}.${u}${n} <${s}.${a}.${+u+1}-0`:l=`>=${s}.${a}.${u}${n} <${s}.${+a+1}.0-0`:l=`>=${s}.${a}.${u} <${+s+1}.0.0-0`),I("caret return",l),l})},Vo=(e,t)=>(I("replaceXRanges",e,t),e.split(/\s+/).map(r=>zo(r,t)).join(" ")),zo=(e,t)=>{e=e.trim();let r=t.loose?j[T.XRANGELOOSE]:j[T.XRANGE];return e.replace(r,(n,i,s,a,u,o)=>{I("xRange",e,n,i,s,a,u,o);let l=q(s),h=l||q(a),f=h||q(u),p=f;return i==="="&&p&&(i=""),o=t.includePrerelease?"-0":"",l?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&p?(h&&(a=0),u=0,i===">"?(i=">=",h?(s=+s+1,a=0,u=0):(a=+a+1,u=0)):i==="<="&&(i="<",h?s=+s+1:a=+a+1),i==="<"&&(o="-0"),n=`${i+s}.${a}.${u}${o}`):h?n=`>=${s}.0.0${o} <${+s+1}.0.0-0`:f&&(n=`>=${s}.${a}.0${o} <${s}.${+a+1}.0-0`),I("xRange return",n),n})},Zo=(e,t)=>(I("replaceStars",e,t),e.trim().replace(j[T.STAR],"")),Wo=(e,t)=>(I("replaceGTE0",e,t),e.trim().replace(j[t.includePrerelease?T.GTE0PRE:T.GTE0],"")),Yo=e=>(t,r,n,i,s,a,u,o,l,h,f,p,c)=>(q(n)?r="":q(i)?r=`>=${n}.0.0${e?"-0":""}`:q(s)?r=`>=${n}.${i}.0${e?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,q(l)?o="":q(h)?o=`<${+l+1}.0.0-0`:q(f)?o=`<${l}.${+h+1}.0-0`:p?o=`<=${l}.${h}.${f}-${p}`:e?o=`<${l}.${h}.${+f+1}-0`:o=`<=${o}`,`${r} ${o}`.trim()),Qo=(e,t,r)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let n=0;n<e.length;n++)if(I(e[n].semver),e[n].semver!==Tt.ANY&&e[n].semver.prerelease.length>0){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 Le=v((ep,Wn)=>{var Te=Symbol("SemVer ANY"),ge=class{static get ANY(){return Te}constructor(t,r){if(r=Ko(r),t instanceof ge){if(t.loose===!!r.loose)return t;t=t.value}jt("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===Te?this.value="":this.value=this.operator+this.semver.version,jt("comp",this)}parse(t){let r=this.options.loose?Bn[Vn.COMPARATORLOOSE]:Bn[Vn.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 zn(n[2],this.options.loose):this.semver=Te}toString(){return this.value}test(t){if(jt("Comparator.test",t,this.options.loose),this.semver===Te||t===Te)return!0;if(typeof t=="string")try{t=new zn(t,this.options)}catch{return!1}return qt(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof ge))throw new TypeError("a Comparator is required");if((!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Zn(t.value,r).test(this.value);if(t.operator==="")return t.value===""?!0:new Zn(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,a=(this.operator===">="||this.operator==="<=")&&(t.operator===">="||t.operator==="<="),u=qt(this.semver,"<",t.semver,r)&&(this.operator===">="||this.operator===">")&&(t.operator==="<="||t.operator==="<"),o=qt(this.semver,">",t.semver,r)&&(this.operator==="<="||this.operator==="<")&&(t.operator===">="||t.operator===">");return n||i||s&&a||u||o}};Wn.exports=ge;var Ko=Re(),{re:Bn,t:Vn}=J(),qt=Rt(),jt=Ae(),zn=L(),Zn=G()});var qe=v((tp,Yn)=>{var Jo=G(),eu=(e,t,r)=>{try{t=new Jo(t,r)}catch{return!1}return t.test(e)};Yn.exports=eu});var Kn=v((rp,Qn)=>{var tu=G(),ru=(e,t)=>new tu(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));Qn.exports=ru});var ei=v((np,Jn)=>{var nu=L(),iu=G(),su=(e,t,r)=>{let n=null,i=null,s=null;try{s=new iu(t,r)}catch{return null}return e.forEach(a=>{s.test(a)&&(!n||i.compare(a)===-1)&&(n=a,i=new nu(n,r))}),n};Jn.exports=su});var ri=v((ip,ti)=>{var au=L(),ou=G(),uu=(e,t,r)=>{let n=null,i=null,s=null;try{s=new ou(t,r)}catch{return null}return e.forEach(a=>{s.test(a)&&(!n||i.compare(a)===1)&&(n=a,i=new au(n,r))}),n};ti.exports=uu});var si=v((sp,ii)=>{var Ct=L(),lu=G(),ni=$e(),cu=(e,t)=>{e=new lu(e,t);let r=new Ct("0.0.0");if(e.test(r)||(r=new Ct("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){let i=e.set[n],s=null;i.forEach(a=>{let u=new Ct(a.semver.version);switch(a.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!s||ni(u,s))&&(s=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),s&&(!r||ni(r,s))&&(r=s)}return r&&e.test(r)?r:null};ii.exports=cu});var oi=v((ap,ai)=>{var hu=G(),fu=(e,t)=>{try{return new hu(e,t).range||"*"}catch{return null}};ai.exports=fu});var rt=v((op,hi)=>{var pu=L(),ci=Le(),{ANY:vu}=ci,du=G(),gu=qe(),ui=$e(),li=Ye(),mu=Ke(),Eu=Qe(),yu=(e,t,r,n)=>{e=new pu(e,n),t=new du(t,n);let i,s,a,u,o;switch(r){case">":i=ui,s=mu,a=li,u=">",o=">=";break;case"<":i=li,s=Eu,a=ui,u="<",o="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(gu(e,t,n))return!1;for(let l=0;l<t.set.length;++l){let h=t.set[l],f=null,p=null;if(h.forEach(c=>{c.semver===vu&&(c=new ci(">=0.0.0")),f=f||c,p=p||c,i(c.semver,f.semver,n)?f=c:a(c.semver,p.semver,n)&&(p=c)}),f.operator===u||f.operator===o||(!p.operator||p.operator===u)&&s(e,p.semver))return!1;if(p.operator===o&&a(e,p.semver))return!1}return!0};hi.exports=yu});var pi=v((up,fi)=>{var bu=rt(),wu=(e,t,r)=>bu(e,t,">",r);fi.exports=wu});var di=v((lp,vi)=>{var _u=rt(),Ou=(e,t,r)=>_u(e,t,"<",r);vi.exports=Ou});var Ei=v((cp,mi)=>{var gi=G(),Su=(e,t,r)=>(e=new gi(e,r),t=new gi(t,r),e.intersects(t));mi.exports=Su});var bi=v((hp,yi)=>{var Iu=qe(),Au=D();yi.exports=(e,t,r)=>{let n=[],i=null,s=null,a=e.sort((h,f)=>Au(h,f,r));for(let h of a)Iu(h,t,r)?(s=h,i||(i=h)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let u=[];for(let[h,f]of n)h===f?u.push(h):!f&&h===a[0]?u.push("*"):f?h===a[0]?u.push(`<=${f}`):u.push(`${h} - ${f}`):u.push(`>=${h}`);let o=u.join(" || "),l=typeof t.raw=="string"?t.raw:String(t);return o.length<l.length?o:t}});var Ii=v((fp,Si)=>{var wi=G(),nt=Le(),{ANY:Pt}=nt,je=qe(),Dt=D(),Ru=(e,t,r={})=>{if(e===t)return!0;e=new wi(e,r),t=new wi(t,r);let n=!1;e:for(let i of e.set){for(let s of t.set){let a=$u(i,s,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},$u=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Pt){if(t.length===1&&t[0].semver===Pt)return!0;r.includePrerelease?e=[new nt(">=0.0.0-0")]:e=[new nt(">=0.0.0")]}if(t.length===1&&t[0].semver===Pt){if(r.includePrerelease)return!0;t=[new nt(">=0.0.0")]}let n=new Set,i,s;for(let c of e)c.operator===">"||c.operator===">="?i=_i(i,c,r):c.operator==="<"||c.operator==="<="?s=Oi(s,c,r):n.add(c.semver);if(n.size>1)return null;let a;if(i&&s){if(a=Dt(i.semver,s.semver,r),a>0)return null;if(a===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let c of n){if(i&&!je(c,String(i),r)||s&&!je(c,String(s),r))return null;for(let m of t)if(!je(c,String(m),r))return!1;return!0}let u,o,l,h,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,p=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 c of t){if(h=h||c.operator===">"||c.operator===">=",l=l||c.operator==="<"||c.operator==="<=",i){if(p&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===p.major&&c.semver.minor===p.minor&&c.semver.patch===p.patch&&(p=!1),c.operator===">"||c.operator===">="){if(u=_i(i,c,r),u===c&&u!==i)return!1}else if(i.operator===">="&&!je(i.semver,String(c),r))return!1}if(s){if(f&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===f.major&&c.semver.minor===f.minor&&c.semver.patch===f.patch&&(f=!1),c.operator==="<"||c.operator==="<="){if(o=Oi(s,c,r),o===c&&o!==s)return!1}else if(s.operator==="<="&&!je(s.semver,String(c),r))return!1}if(!c.operator&&(s||i)&&a!==0)return!1}return!(i&&l&&!s&&a!==0||s&&h&&!i&&a!==0||p||f)},_i=(e,t,r)=>{if(!e)return t;let n=Dt(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},Oi=(e,t,r)=>{if(!e)return t;let n=Dt(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};Si.exports=Ru});var Ri=v((pp,Ai)=>{var Gt=J();Ai.exports={re:Gt.re,src:Gt.src,tokens:Gt.t,SEMVER_SPEC_VERSION:Ie().SEMVER_SPEC_VERSION,SemVer:L(),compareIdentifiers:Be().compareIdentifiers,rcompareIdentifiers:Be().rcompareIdentifiers,parse:ee(),valid:zr(),clean:Wr(),inc:Kr(),diff:sn(),major:on(),minor:ln(),patch:hn(),prerelease:pn(),compare:D(),rcompare:dn(),compareLoose:mn(),compareBuild:We(),sort:wn(),rsort:On(),gt:$e(),lt:Ye(),eq:Ze(),neq:At(),gte:Qe(),lte:Ke(),cmp:Rt(),coerce:Ln(),Comparator:Le(),Range:G(),satisfies:qe(),toComparators:Kn(),maxSatisfying:ei(),minSatisfying:ri(),minVersion:si(),validRange:oi(),outside:rt(),gtr:pi(),ltr:di(),intersects:Ei(),simplifyRange:bi(),subset:Ii()}});var qi=v((gp,Ti)=>{"use strict";var Li=Ti.exports={},Ft={};"Number String Boolean Function RegExp Array Date Error".split(" ").forEach(function(e){Ft["[object "+e+"]"]=e.toLowerCase()});Li.kindOf=function(e){return e==null?String(e):Ft[Ft.toString.call(e)]||"object"};Li.toArray=Function.call.bind(Array.prototype.slice)});var Bi=v((mp,Hi)=>{var Lu=200,Ut="__lodash_hash_undefined__",Tu=9007199254740991,qu="[object Arguments]",ju="[object Function]",Cu="[object GeneratorFunction]",Pu=/[\\^$.*+?()[\]{}|]/g,Du=/^\[object .+?Constructor\]$/,Gu=typeof global=="object"&&global&&global.Object===Object&&global,ku=typeof self=="object"&&self&&self.Object===Object&&self,Ht=Gu||ku||Function("return this")();function Fu(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Mu(e,t){var r=e?e.length:0;return!!r&&Vu(e,t,0)>-1}function Xu(e,t,r){for(var n=-1,i=e?e.length:0;++n<i;)if(r(t,e[n]))return!0;return!1}function Uu(e,t){for(var r=-1,n=e?e.length:0,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function Hu(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function Bu(e,t,r,n){for(var i=e.length,s=r+(n?1:-1);n?s--:++s<i;)if(t(e[s],s,e))return s;return-1}function Vu(e,t,r){if(t!==t)return Bu(e,zu,r);for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}function zu(e){return e!==e}function Zu(e){return function(t){return e(t)}}function Wu(e,t){return e.has(t)}function Yu(e,t){return e?.[t]}function Qu(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Ku=Array.prototype,Ju=Function.prototype,Bt=Object.prototype,Mt=Ht["__core-js_shared__"],ji=function(){var e=/[^.]+$/.exec(Mt&&Mt.keys&&Mt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Gi=Ju.toString,at=Bt.hasOwnProperty,ki=Bt.toString,el=RegExp("^"+Gi.call(at).replace(Pu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ci=Ht.Symbol,tl=Bt.propertyIsEnumerable,rl=Ku.splice,Pi=Ci?Ci.isConcatSpreadable:void 0,Di=Math.max,nl=Mi(Ht,"Map"),Ce=Mi(Object,"create");function se(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function il(){this.__data__=Ce?Ce(null):{}}function sl(e){return this.has(e)&&delete this.__data__[e]}function al(e){var t=this.__data__;if(Ce){var r=t[e];return r===Ut?void 0:r}return at.call(t,e)?t[e]:void 0}function ol(e){var t=this.__data__;return Ce?t[e]!==void 0:at.call(t,e)}function ul(e,t){var r=this.__data__;return r[e]=Ce&&t===void 0?Ut:t,this}se.prototype.clear=il;se.prototype.delete=sl;se.prototype.get=al;se.prototype.has=ol;se.prototype.set=ul;function me(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ll(){this.__data__=[]}function cl(e){var t=this.__data__,r=ot(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():rl.call(t,r,1),!0}function hl(e){var t=this.__data__,r=ot(t,e);return r<0?void 0:t[r][1]}function fl(e){return ot(this.__data__,e)>-1}function pl(e,t){var r=this.__data__,n=ot(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}me.prototype.clear=ll;me.prototype.delete=cl;me.prototype.get=hl;me.prototype.has=fl;me.prototype.set=pl;function Ee(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function vl(){this.__data__={hash:new se,map:new(nl||me),string:new se}}function dl(e){return ut(this,e).delete(e)}function gl(e){return ut(this,e).get(e)}function ml(e){return ut(this,e).has(e)}function El(e,t){return ut(this,e).set(e,t),this}Ee.prototype.clear=vl;Ee.prototype.delete=dl;Ee.prototype.get=gl;Ee.prototype.has=ml;Ee.prototype.set=El;function st(e){var t=-1,r=e?e.length:0;for(this.__data__=new Ee;++t<r;)this.add(e[t])}function yl(e){return this.__data__.set(e,Ut),this}function bl(e){return this.__data__.has(e)}st.prototype.add=st.prototype.push=yl;st.prototype.has=bl;function ot(e,t){for(var r=e.length;r--;)if(Nl(e[r][0],t))return r;return-1}function wl(e,t,r,n){var i=-1,s=Mu,a=!0,u=e.length,o=[],l=t.length;if(!u)return o;r&&(t=Uu(t,Zu(r))),n?(s=Xu,a=!1):t.length>=Lu&&(s=Wu,a=!1,t=new st(t));e:for(;++i<u;){var h=e[i],f=r?r(h):h;if(h=n||h!==0?h:0,a&&f===f){for(var p=l;p--;)if(t[p]===f)continue e;o.push(h)}else s(t,f,n)||o.push(h)}return o}function Fi(e,t,r,n,i){var s=-1,a=e.length;for(r||(r=Sl),i||(i=[]);++s<a;){var u=e[s];t>0&&r(u)?t>1?Fi(u,t-1,r,n,i):Hu(i,u):n||(i[i.length]=u)}return i}function _l(e){if(!Ui(e)||Al(e))return!1;var t=Xi(e)||Qu(e)?el:Du;return t.test(Rl(e))}function Ol(e,t){return t=Di(t===void 0?e.length-1:t,0),function(){for(var r=arguments,n=-1,i=Di(r.length-t,0),s=Array(i);++n<i;)s[n]=r[t+n];n=-1;for(var a=Array(t+1);++n<t;)a[n]=r[n];return a[t]=s,Fu(e,this,a)}}function ut(e,t){var r=e.__data__;return Il(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Mi(e,t){var r=Yu(e,t);return _l(r)?r:void 0}function Sl(e){return Ll(e)||xl(e)||!!(Pi&&e&&e[Pi])}function Il(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Al(e){return!!ji&&ji in e}function Rl(e){if(e!=null){try{return Gi.call(e)}catch{}try{return e+""}catch{}}return""}var $l=Ol(function(e,t){return Xt(e)?wl(e,Fi(t,1,Xt,!0)):[]});function Nl(e,t){return e===t||e!==e&&t!==t}function xl(e){return Xt(e)&&at.call(e,"callee")&&(!tl.call(e,"callee")||ki.call(e)==qu)}var Ll=Array.isArray;function Tl(e){return e!=null&&ql(e.length)&&!Xi(e)}function Xt(e){return jl(e)&&Tl(e)}function Xi(e){var t=Ui(e)?ki.call(e):"";return t==ju||t==Cu}function ql(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Tu}function Ui(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function jl(e){return!!e&&typeof e=="object"}Hi.exports=$l});var Qi=v((Ep,Yi)=>{var Cl=9007199254740991,Pl="[object Arguments]",Dl="[object Function]",Gl="[object GeneratorFunction]",kl=typeof global=="object"&&global&&global.Object===Object&&global,Fl=typeof self=="object"&&self&&self.Object===Object&&self,Ml=kl||Fl||Function("return this")();function Xl(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Vt=Object.prototype,Ul=Vt.hasOwnProperty,Zi=Vt.toString,Vi=Ml.Symbol,Hl=Vt.propertyIsEnumerable,zi=Vi?Vi.isConcatSpreadable:void 0;function Wi(e,t,r,n,i){var s=-1,a=e.length;for(r||(r=Bl),i||(i=[]);++s<a;){var u=e[s];t>0&&r(u)?t>1?Wi(u,t-1,r,n,i):Xl(i,u):n||(i[i.length]=u)}return i}function Bl(e){return Zl(e)||zl(e)||!!(zi&&e&&e[zi])}function Vl(e){var t=e?e.length:0;return t?Wi(e,1):[]}function zl(e){return Yl(e)&&Ul.call(e,"callee")&&(!Hl.call(e,"callee")||Zi.call(e)==Pl)}var Zl=Array.isArray;function Wl(e){return e!=null&&Kl(e.length)&&!Ql(e)}function Yl(e){return ec(e)&&Wl(e)}function Ql(e){var t=Jl(e)?Zi.call(e):"";return t==Dl||t==Gl}function Kl(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Cl}function Jl(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function ec(e){return!!e&&typeof e=="object"}Yi.exports=Vl});var cs=v((yp,ls)=>{var tc=200,Wt="__lodash_hash_undefined__",rc=1/0,nc=9007199254740991,ic="[object Arguments]",sc="[object Function]",ac="[object GeneratorFunction]",oc=/[\\^$.*+?()[\]{}|]/g,uc=/^\[object .+?Constructor\]$/,lc=typeof global=="object"&&global&&global.Object===Object&&global,cc=typeof self=="object"&&self&&self.Object===Object&&self,ct=lc||cc||Function("return this")();function hc(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function fc(e,t){var r=e?e.length:0;return!!r&&gc(e,t,0)>-1}function pc(e,t,r){for(var n=-1,i=e?e.length:0;++n<i;)if(r(t,e[n]))return!0;return!1}function vc(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function dc(e,t,r,n){for(var i=e.length,s=r+(n?1:-1);n?s--:++s<i;)if(t(e[s],s,e))return s;return-1}function gc(e,t,r){if(t!==t)return dc(e,mc,r);for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}function mc(e){return e!==e}function Ec(e,t){return e.has(t)}function yc(e,t){return e?.[t]}function bc(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function rs(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var wc=Array.prototype,_c=Function.prototype,Yt=Object.prototype,zt=ct["__core-js_shared__"],Ki=function(){var e=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ns=_c.toString,ht=Yt.hasOwnProperty,is=Yt.toString,Oc=RegExp("^"+ns.call(ht).replace(oc,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ji=ct.Symbol,Sc=Yt.propertyIsEnumerable,Ic=wc.splice,es=Ji?Ji.isConcatSpreadable:void 0,ts=Math.max,Ac=Qt(ct,"Map"),Zt=Qt(ct,"Set"),Pe=Qt(Object,"create");function ae(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Rc(){this.__data__=Pe?Pe(null):{}}function $c(e){return this.has(e)&&delete this.__data__[e]}function Nc(e){var t=this.__data__;if(Pe){var r=t[e];return r===Wt?void 0:r}return ht.call(t,e)?t[e]:void 0}function xc(e){var t=this.__data__;return Pe?t[e]!==void 0:ht.call(t,e)}function Lc(e,t){var r=this.__data__;return r[e]=Pe&&t===void 0?Wt:t,this}ae.prototype.clear=Rc;ae.prototype.delete=$c;ae.prototype.get=Nc;ae.prototype.has=xc;ae.prototype.set=Lc;function ye(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Tc(){this.__data__=[]}function qc(e){var t=this.__data__,r=ft(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Ic.call(t,r,1),!0}function jc(e){var t=this.__data__,r=ft(t,e);return r<0?void 0:t[r][1]}function Cc(e){return ft(this.__data__,e)>-1}function Pc(e,t){var r=this.__data__,n=ft(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}ye.prototype.clear=Tc;ye.prototype.delete=qc;ye.prototype.get=jc;ye.prototype.has=Cc;ye.prototype.set=Pc;function be(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Dc(){this.__data__={hash:new ae,map:new(Ac||ye),string:new ae}}function Gc(e){return pt(this,e).delete(e)}function kc(e){return pt(this,e).get(e)}function Fc(e){return pt(this,e).has(e)}function Mc(e,t){return pt(this,e).set(e,t),this}be.prototype.clear=Dc;be.prototype.delete=Gc;be.prototype.get=kc;be.prototype.has=Fc;be.prototype.set=Mc;function lt(e){var t=-1,r=e?e.length:0;for(this.__data__=new be;++t<r;)this.add(e[t])}function Xc(e){return this.__data__.set(e,Wt),this}function Uc(e){return this.__data__.has(e)}lt.prototype.add=lt.prototype.push=Xc;lt.prototype.has=Uc;function ft(e,t){for(var r=e.length;r--;)if(Jc(e[r][0],t))return r;return-1}function ss(e,t,r,n,i){var s=-1,a=e.length;for(r||(r=Zc),i||(i=[]);++s<a;){var u=e[s];t>0&&r(u)?t>1?ss(u,t-1,r,n,i):vc(i,u):n||(i[i.length]=u)}return i}function Hc(e){if(!us(e)||Yc(e))return!1;var t=os(e)||bc(e)?Oc:uc;return t.test(Qc(e))}function Bc(e,t){return t=ts(t===void 0?e.length-1:t,0),function(){for(var r=arguments,n=-1,i=ts(r.length-t,0),s=Array(i);++n<i;)s[n]=r[t+n];n=-1;for(var a=Array(t+1);++n<t;)a[n]=r[n];return a[t]=s,hc(e,this,a)}}function Vc(e,t,r){var n=-1,i=fc,s=e.length,a=!0,u=[],o=u;if(r)a=!1,i=pc;else if(s>=tc){var l=t?null:zc(e);if(l)return rs(l);a=!1,i=Ec,o=new lt}else o=t?[]:u;e:for(;++n<s;){var h=e[n],f=t?t(h):h;if(h=r||h!==0?h:0,a&&f===f){for(var p=o.length;p--;)if(o[p]===f)continue e;t&&o.push(f),u.push(h)}else i(o,f,r)||(o!==u&&o.push(f),u.push(h))}return u}var zc=Zt&&1/rs(new Zt([,-0]))[1]==rc?function(e){return new Zt(e)}:sh;function pt(e,t){var r=e.__data__;return Wc(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Qt(e,t){var r=yc(e,t);return Hc(r)?r:void 0}function Zc(e){return th(e)||eh(e)||!!(es&&e&&e[es])}function Wc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Yc(e){return!!Ki&&Ki in e}function Qc(e){if(e!=null){try{return ns.call(e)}catch{}try{return e+""}catch{}}return""}var Kc=Bc(function(e){return Vc(ss(e,1,as,!0))});function Jc(e,t){return e===t||e!==e&&t!==t}function eh(e){return as(e)&&ht.call(e,"callee")&&(!Sc.call(e,"callee")||is.call(e)==ic)}var th=Array.isArray;function rh(e){return e!=null&&nh(e.length)&&!os(e)}function as(e){return ih(e)&&rh(e)}function os(e){var t=us(e)?is.call(e):"";return t==sc||t==ac}function nh(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=nc}function us(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function ih(e){return!!e&&typeof e=="object"}function sh(){}ls.exports=Kc});var hs=v(Kt=>{var oe=require("path"),Z=process.platform==="win32",z=require("fs"),ah=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function oh(){var e;if(ah){var t=new Error;e=r}else e=n;return e;function r(i){i&&(t.message=i.message,i=t,n(i))}function n(i){if(i){if(process.throwDeprecation)throw i;if(!process.noDeprecation){var s="fs: missing callback "+(i.stack||i.message);process.traceDeprecation?console.trace(s):console.error(s)}}}}function uh(e){return typeof e=="function"?e:oh()}var bp=oe.normalize;Z?B=/(.*?)(?:[\/\\]+|$)/g:B=/(.*?)(?:[\/]+|$)/g;var B;Z?De=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:De=/^[\/]*/;var De;Kt.realpathSync=function(t,r){if(t=oe.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];var n=t,i={},s={},a,u,o,l;h();function h(){var b=De.exec(t);a=b[0].length,u=b[0],o=b[0],l="",Z&&!s[o]&&(z.lstatSync(o),s[o]=!0)}for(;a<t.length;){B.lastIndex=a;var f=B.exec(t);if(l=u,u+=f[0],o=l+f[1],a=B.lastIndex,!(s[o]||r&&r[o]===o)){var p;if(r&&Object.prototype.hasOwnProperty.call(r,o))p=r[o];else{var c=z.lstatSync(o);if(!c.isSymbolicLink()){s[o]=!0,r&&(r[o]=o);continue}var m=null;if(!Z){var y=c.dev.toString(32)+":"+c.ino.toString(32);i.hasOwnProperty(y)&&(m=i[y])}m===null&&(z.statSync(o),m=z.readlinkSync(o)),p=oe.resolve(l,m),r&&(r[o]=p),Z||(i[y]=m)}t=oe.resolve(p,t.slice(a)),h()}}return r&&(r[n]=t),t};Kt.realpath=function(t,r,n){if(typeof n!="function"&&(n=uh(r),r=null),t=oe.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return process.nextTick(n.bind(null,null,r[t]));var i=t,s={},a={},u,o,l,h;f();function f(){var b=De.exec(t);u=b[0].length,o=b[0],l=b[0],h="",Z&&!a[l]?z.lstat(l,function(O){if(O)return n(O);a[l]=!0,p()}):process.nextTick(p)}function p(){if(u>=t.length)return r&&(r[i]=t),n(null,t);B.lastIndex=u;var b=B.exec(t);return h=o,o+=b[0],l=h+b[1],u=B.lastIndex,a[l]||r&&r[l]===l?process.nextTick(p):r&&Object.prototype.hasOwnProperty.call(r,l)?y(r[l]):z.lstat(l,c)}function c(b,O){if(b)return n(b);if(!O.isSymbolicLink())return a[l]=!0,r&&(r[l]=l),process.nextTick(p);if(!Z){var S=O.dev.toString(32)+":"+O.ino.toString(32);if(s.hasOwnProperty(S))return m(null,s[S],l)}z.stat(l,function(x){if(x)return n(x);z.readlink(l,function(R,k){Z||(s[S]=k),m(R,k)})})}function m(b,O,S){if(b)return n(b);var x=oe.resolve(h,O);r&&(r[S]=x),y(x)}function y(b){t=oe.resolve(b,t.slice(u)),f()}}});var rr=v((_p,ds)=>{ds.exports=W;W.realpath=W;W.sync=tr;W.realpathSync=tr;W.monkeypatch=ch;W.unmonkeypatch=hh;var we=require("fs"),Jt=we.realpath,er=we.realpathSync,lh=process.version,fs=/^v[0-5]\./.test(lh),ps=hs();function vs(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function W(e,t,r){if(fs)return Jt(e,t,r);typeof t=="function"&&(r=t,t=null),Jt(e,t,function(n,i){vs(n)?ps.realpath(e,t,r):r(n,i)})}function tr(e,t){if(fs)return er(e,t);try{return er(e,t)}catch(r){if(vs(r))return ps.realpathSync(e,t);throw r}}function ch(){we.realpath=W,we.realpathSync=tr}function hh(){we.realpath=Jt,we.realpathSync=er}});var ms=v((Op,gs)=>{gs.exports=function(e,t){for(var r=[],n=0;n<e.length;n++){var i=t(e[n],n);fh(i)?r.push.apply(r,i):r.push(i)}return r};var fh=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}});var _s=v((Sp,ws)=>{"use strict";ws.exports=ys;function ys(e,t,r){e instanceof RegExp&&(e=Es(e,r)),t instanceof RegExp&&(t=Es(t,r));var n=bs(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function Es(e,t){var r=t.match(e);return r?r[0]:null}ys.range=bs;function bs(e,t,r){var n,i,s,a,u,o=r.indexOf(e),l=r.indexOf(t,o+1),h=o;if(o>=0&&l>0){if(e===t)return[o,l];for(n=[],s=r.length;h>=0&&!u;)h==o?(n.push(h),o=r.indexOf(e,h+1)):n.length==1?u=[n.pop(),l]:(i=n.pop(),i<s&&(s=i,a=l),l=r.indexOf(t,h+1)),h=o<l&&o>=0?o:l;n.length&&(u=[s,a])}return u}});var xs=v((Ip,Ns)=>{var ph=ms(),Os=_s();Ns.exports=gh;var Ss="\0SLASH"+Math.random()+"\0",Is="\0OPEN"+Math.random()+"\0",ir="\0CLOSE"+Math.random()+"\0",As="\0COMMA"+Math.random()+"\0",Rs="\0PERIOD"+Math.random()+"\0";function nr(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function vh(e){return e.split("\\\\").join(Ss).split("\\{").join(Is).split("\\}").join(ir).split("\\,").join(As).split("\\.").join(Rs)}function dh(e){return e.split(Ss).join("\\").split(Is).join("{").split(ir).join("}").split(As).join(",").split(Rs).join(".")}function $s(e){if(!e)return[""];var t=[],r=Os("{","}",e);if(!r)return e.split(",");var n=r.pre,i=r.body,s=r.post,a=n.split(",");a[a.length-1]+="{"+i+"}";var u=$s(s);return s.length&&(a[a.length-1]+=u.shift(),a.push.apply(a,u)),t.push.apply(t,a),t}function gh(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),_e(vh(e),!0).map(dh)):[]}function mh(e){return"{"+e+"}"}function Eh(e){return/^-?0\d/.test(e)}function yh(e,t){return e<=t}function bh(e,t){return e>=t}function _e(e,t){var r=[],n=Os("{","}",e);if(!n||/\$$/.test(n.pre))return[e];var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),a=i||s,u=n.body.indexOf(",")>=0;if(!a&&!u)return n.post.match(/,.*\}/)?(e=n.pre+"{"+n.body+ir+n.post,_e(e)):[e];var o;if(a)o=n.body.split(/\.\./);else if(o=$s(n.body),o.length===1&&(o=_e(o[0],!1).map(mh),o.length===1)){var h=n.post.length?_e(n.post,!1):[""];return h.map(function(wt){return n.pre+o[0]+wt})}var l=n.pre,h=n.post.length?_e(n.post,!1):[""],f;if(a){var p=nr(o[0]),c=nr(o[1]),m=Math.max(o[0].length,o[1].length),y=o.length==3?Math.abs(nr(o[2])):1,b=yh,O=c<p;O&&(y*=-1,b=bh);var S=o.some(Eh);f=[];for(var x=p;b(x,c);x+=y){var R;if(s)R=String.fromCharCode(x),R==="\\"&&(R="");else if(R=String(x),S){var k=m-R.length;if(k>0){var Xe=new Array(k+1).join("0");x<0?R="-"+Xe+R.slice(1):R=Xe+R}}f.push(R)}}else f=ph(o,function(Ue){return _e(Ue,!1)});for(var he=0;he<f.length;he++)for(var K=0;K<h.length;K++){var M=l+f[he]+h[K];(!t||a||M)&&r.push(M)}return r}});var gt=v((Ap,Cs)=>{Cs.exports=P;P.Minimatch=N;var Ge=function(){try{return require("path")}catch{}}()||{sep:"/"};P.sep=Ge.sep;var or=P.GLOBSTAR=N.GLOBSTAR={},wh=xs(),Ls={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},sr="[^/]",ar=sr+"*?",_h="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Oh="(?:(?!(?:\\/|^)\\.).)*?",Ts=Sh("().*{}+?[]^$\\!");function Sh(e){return e.split("").reduce(function(t,r){return t[r]=!0,t},{})}var qs=/\/+/;P.filter=Ih;function Ih(e,t){return t=t||{},function(r,n,i){return P(r,e,t)}}function Y(e,t){t=t||{};var r={};return Object.keys(e).forEach(function(n){r[n]=e[n]}),Object.keys(t).forEach(function(n){r[n]=t[n]}),r}P.defaults=function(e){if(!e||typeof e!="object"||!Object.keys(e).length)return P;var t=P,r=function(i,s,a){return t(i,s,Y(e,a))};return r.Minimatch=function(i,s){return new t.Minimatch(i,Y(e,s))},r.Minimatch.defaults=function(i){return t.defaults(Y(e,i)).Minimatch},r.filter=function(i,s){return t.filter(i,Y(e,s))},r.defaults=function(i){return t.defaults(Y(e,i))},r.makeRe=function(i,s){return t.makeRe(i,Y(e,s))},r.braceExpand=function(i,s){return t.braceExpand(i,Y(e,s))},r.match=function(n,i,s){return t.match(n,i,Y(e,s))},r};N.defaults=function(e){return P.defaults(e).Minimatch};function P(e,t,r){return dt(t),r||(r={}),!r.nocomment&&t.charAt(0)==="#"?!1:new N(t,r).match(e)}function N(e,t){if(!(this instanceof N))return new N(e,t);dt(e),t||(t={}),e=e.trim(),!t.allowWindowsEscape&&Ge.sep!=="/"&&(e=e.split(Ge.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}N.prototype.debug=function(){};N.prototype.make=Ah;function Ah(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,r),r=this.globParts=r.map(function(n){return n.split(qs)}),this.debug(this.pattern,r),r=r.map(function(n,i,s){return n.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(n){return n.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r}N.prototype.parseNegate=Rh;function Rh(){var e=this.pattern,t=!1,r=this.options,n=0;if(!r.nonegate){for(var i=0,s=e.length;i<s&&e.charAt(i)==="!";i++)t=!t,n++;n&&(this.pattern=e.substr(n)),this.negate=t}}P.braceExpand=function(e,t){return js(e,t)};N.prototype.braceExpand=js;function js(e,t){return t||(this instanceof N?t=this.options:t={}),e=typeof e>"u"?this.pattern:e,dt(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:wh(e)}var $h=1024*64,dt=function(e){if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>$h)throw new TypeError("pattern is too long")};N.prototype.parse=Nh;var vt={};function Nh(e,t){dt(e);var r=this.options;if(e==="**")if(r.noglobstar)e="*";else return or;if(e==="")return"";var n="",i=!!r.nocase,s=!1,a=[],u=[],o,l=!1,h=-1,f=-1,p=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",c=this;function m(){if(o){switch(o){case"*":n+=ar,i=!0;break;case"?":n+=sr,i=!0;break;default:n+="\\"+o;break}c.debug("clearStateChar %j %j",o,n),o=!1}}for(var y=0,b=e.length,O;y<b&&(O=e.charAt(y));y++){if(this.debug("%s %s %s %j",e,y,n,O),s&&Ts[O]){n+="\\"+O,s=!1;continue}switch(O){case"/":return!1;case"\\":m(),s=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,y,n,O),l){this.debug(" in class"),O==="!"&&y===f+1&&(O="^"),n+=O;continue}c.debug("call clearStateChar %j",o),m(),o=O,r.noext&&m();continue;case"(":if(l){n+="(";continue}if(!o){n+="\\(";continue}a.push({type:o,start:y-1,reStart:n.length,open:Ls[o].open,close:Ls[o].close}),n+=o==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",o,n),o=!1;continue;case")":if(l||!a.length){n+="\\)";continue}m(),i=!0;var S=a.pop();n+=S.close,S.type==="!"&&u.push(S),S.reEnd=n.length;continue;case"|":if(l||!a.length||s){n+="\\|",s=!1;continue}m(),n+="|";continue;case"[":if(m(),l){n+="\\"+O;continue}l=!0,f=y,h=n.length,n+=O;continue;case"]":if(y===f+1||!l){n+="\\"+O,s=!1;continue}var x=e.substring(f+1,y);try{RegExp("["+x+"]")}catch{var R=this.parse(x,vt);n=n.substr(0,h)+"\\["+R[0]+"\\]",i=i||R[1],l=!1;continue}i=!0,l=!1,n+=O;continue;default:m(),s?s=!1:Ts[O]&&!(O==="^"&&l)&&(n+="\\"),n+=O}}for(l&&(x=e.substr(f+1),R=this.parse(x,vt),n=n.substr(0,h)+"\\["+R[0],i=i||R[1]),S=a.pop();S;S=a.pop()){var k=n.slice(S.reStart+S.open.length);this.debug("setting tail",n,S),k=k.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(Ar,Rr,St){return St||(St="\\"),Rr+Rr+St+"|"}),this.debug(`tail=%j
2
- %s`,k,k,S,n);var Xe=S.type==="*"?ar:S.type==="?"?sr:"\\"+S.type;i=!0,n=n.slice(0,S.reStart)+Xe+"\\("+k}m(),s&&(n+="\\\\");var he=!1;switch(n.charAt(0)){case"[":case".":case"(":he=!0}for(var K=u.length-1;K>-1;K--){var M=u[K],Ue=n.slice(0,M.reStart),wt=n.slice(M.reStart,M.reEnd-8),Sr=n.slice(M.reEnd-8,M.reEnd),Se=n.slice(M.reEnd);Sr+=Se;var ha=Ue.split("(").length-1,_t=Se;for(y=0;y<ha;y++)_t=_t.replace(/\)[+*?]?/,"");Se=_t;var Ir="";Se===""&&t!==vt&&(Ir="$");var fa=Ue+wt+Se+Ir+Sr;n=fa}if(n!==""&&i&&(n="(?=.)"+n),he&&(n=p+n),t===vt)return[n,i];if(!i)return Lh(e);var pa=r.nocase?"i":"";try{var Ot=new RegExp("^"+n+"$",pa)}catch{return new RegExp("$.")}return Ot._glob=e,Ot._src=n,Ot}P.makeRe=function(e,t){return new N(e,t||{}).makeRe()};N.prototype.makeRe=xh;function xh(){if(this.regexp||this.regexp===!1)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?ar:t.dot?_h:Oh,n=t.nocase?"i":"",i=e.map(function(s){return s.map(function(a){return a===or?r:typeof a=="string"?Th(a):a._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch{this.regexp=!1}return this.regexp}P.match=function(e,t,r){r=r||{};var n=new N(t,r);return e=e.filter(function(i){return n.match(i)}),n.options.nonull&&!e.length&&e.push(t),e};N.prototype.match=function(t,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;var n=this.options;Ge.sep!=="/"&&(t=t.split(Ge.sep).join("/")),t=t.split(qs),this.debug(this.pattern,"split",t);var i=this.set;this.debug(this.pattern,"set",i);var s,a;for(a=t.length-1;a>=0&&(s=t[a],!s);a--);for(a=0;a<i.length;a++){var u=i[a],o=t;n.matchBase&&u.length===1&&(o=[s]);var l=this.matchOne(o,u,r);if(l)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};N.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var i=0,s=0,a=e.length,u=t.length;i<a&&s<u;i++,s++){this.debug("matchOne loop");var o=t[s],l=e[i];if(this.debug(t,o,l),o===!1)return!1;if(o===or){this.debug("GLOBSTAR",[t,o,l]);var h=i,f=s+1;if(f===u){for(this.debug("** at the end");i<a;i++)if(e[i]==="."||e[i]===".."||!n.dot&&e[i].charAt(0)===".")return!1;return!0}for(;h<a;){var p=e[h];if(this.debug(`
3
- globstar while`,e,h,t,f,p),this.matchOne(e.slice(h),t.slice(f),r))return this.debug("globstar found match!",h,a,p),!0;if(p==="."||p===".."||!n.dot&&p.charAt(0)==="."){this.debug("dot detected!",e,h,t,f);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(r&&(this.debug(`
4
- >>> no match, partial?`,e,h,t,f),h===a))}var c;if(typeof o=="string"?(c=l===o,this.debug("string match",o,l,c)):(c=l.match(o),this.debug("pattern match",o,l,c)),!c)return!1}if(i===a&&s===u)return!0;if(i===a)return r;if(s===u)return i===a-1&&e[i]==="";throw new Error("wtf?")};function Lh(e){return e.replace(/\\(.)/g,"$1")}function Th(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Ps=v((Rp,ur)=>{typeof Object.create=="function"?ur.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:ur.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var Ds=v(($p,cr)=>{try{if(lr=require("util"),typeof lr.inherits!="function")throw"";cr.exports=lr.inherits}catch{cr.exports=Ps()}var lr});var Et=v((Np,mt)=>{"use strict";function Gs(e){return e.charAt(0)==="/"}function ks(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,r=t.exec(e),n=r[1]||"",i=Boolean(n&&n.charAt(1)!==":");return Boolean(r[2]||i)}mt.exports=process.platform==="win32"?ks:Gs;mt.exports.posix=Gs;mt.exports.win32=ks});var fr=v(Q=>{Q.setopts=Gh;Q.ownProp=Fs;Q.makeAbs=ke;Q.finish=kh;Q.mark=Fh;Q.isIgnored=Xs;Q.childrenIgnored=Mh;function Fs(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var qh=require("fs"),Oe=require("path"),jh=gt(),Ms=Et(),hr=jh.Minimatch;function Ch(e,t){return e.localeCompare(t,"en")}function Ph(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(Dh))}function Dh(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new hr(r,{dot:!0})}return{matcher:new hr(e,{dot:!0}),gmatcher:t}}function Gh(e,t,r){if(r||(r={}),r.matchBase&&t.indexOf("/")===-1){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!r.silent,e.pattern=t,e.strict=r.strict!==!1,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0),e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.fs=r.fs||qh,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),Ph(e,r),e.changedCwd=!1;var n=process.cwd();Fs(r,"cwd")?(e.cwd=Oe.resolve(r.cwd),e.changedCwd=e.cwd!==n):e.cwd=n,e.root=r.root||Oe.resolve(e.cwd,"/"),e.root=Oe.resolve(e.root),process.platform==="win32"&&(e.root=e.root.replace(/\\/g,"/")),e.cwdAbs=Ms(e.cwd)?e.cwd:ke(e,e.cwd),process.platform==="win32"&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),e.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,r.allowWindowsEscape=!1,e.minimatch=new hr(t,r),e.options=e.minimatch.options}function kh(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,i=e.matches.length;n<i;n++){var s=e.matches[n];if(!s||Object.keys(s).length===0){if(e.nonull){var a=e.minimatch.globSet[n];t?r.push(a):r[a]=!0}}else{var u=Object.keys(s);t?r.push.apply(r,u):u.forEach(function(o){r[o]=!0})}}if(t||(r=Object.keys(r)),e.nosort||(r=r.sort(Ch)),e.mark){for(var n=0;n<r.length;n++)r[n]=e._mark(r[n]);e.nodir&&(r=r.filter(function(o){var l=!/\/$/.test(o),h=e.cache[o]||e.cache[ke(e,o)];return l&&h&&(l=h!=="DIR"&&!Array.isArray(h)),l}))}e.ignore.length&&(r=r.filter(function(o){return!Xs(e,o)})),e.found=r}function Fh(e,t){var r=ke(e,t),n=e.cache[r],i=t;if(n){var s=n==="DIR"||Array.isArray(n),a=t.slice(-1)==="/";if(s&&!a?i+="/":!s&&a&&(i=i.slice(0,-1)),i!==t){var u=ke(e,i);e.statCache[u]=e.statCache[r],e.cache[u]=e.cache[r]}}return i}function ke(e,t){var r=t;return t.charAt(0)==="/"?r=Oe.join(e.root,t):Ms(t)||t===""?r=t:e.changedCwd?r=Oe.resolve(e.cwd,t):r=Oe.resolve(t),process.platform==="win32"&&(r=r.replace(/\\/g,"/")),r}function Xs(e,t){return e.ignore.length?e.ignore.some(function(r){return r.matcher.match(t)||!!(r.gmatcher&&r.gmatcher.match(t))}):!1}function Mh(e,t){return e.ignore.length?e.ignore.some(function(r){return!!(r.gmatcher&&r.gmatcher.match(t))}):!1}});var zs=v((jp,Vs)=>{Vs.exports=Bs;Bs.GlobSync=A;var Xh=rr(),Us=gt(),Lp=Us.Minimatch,Tp=dr().Glob,qp=require("util"),pr=require("path"),Hs=require("assert"),yt=Et(),ue=fr(),Uh=ue.setopts,vr=ue.ownProp,Hh=ue.childrenIgnored,Bh=ue.isIgnored;function Bs(e,t){if(typeof t=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
5
- See: https://github.com/isaacs/node-glob/issues/167`);return new A(e,t).found}function A(e,t){if(!e)throw new Error("must provide pattern");if(typeof t=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
6
- See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof A))return new A(e,t);if(Uh(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}A.prototype._finish=function(){if(Hs.ok(this instanceof A),this.realpath){var e=this;this.matches.forEach(function(t,r){var n=e.matches[r]=Object.create(null);for(var i in t)try{i=e._makeAbs(i);var s=Xh.realpathSync(i,e.realpathCache);n[s]=!0}catch(a){if(a.syscall==="stat")n[e._makeAbs(i)]=!0;else throw a}})}ue.finish(this)};A.prototype._process=function(e,t,r){Hs.ok(this instanceof A);for(var n=0;typeof e[n]=="string";)n++;var i;switch(n){case e.length:this._processSimple(e.join("/"),t);return;case 0:i=null;break;default:i=e.slice(0,n).join("/");break}var s=e.slice(n),a;i===null?a=".":((yt(i)||yt(e.map(function(l){return typeof l=="string"?l:"[*]"}).join("/")))&&(!i||!yt(i))&&(i="/"+i),a=i);var u=this._makeAbs(a);if(!Hh(this,a)){var o=s[0]===Us.GLOBSTAR;o?this._processGlobStar(i,a,u,s,t,r):this._processReaddir(i,a,u,s,t,r)}};A.prototype._processReaddir=function(e,t,r,n,i,s){var a=this._readdir(r,s);if(!!a){for(var u=n[0],o=!!this.minimatch.negate,l=u._glob,h=this.dot||l.charAt(0)===".",f=[],p=0;p<a.length;p++){var c=a[p];if(c.charAt(0)!=="."||h){var m;o&&!e?m=!c.match(u):m=c.match(u),m&&f.push(c)}}var y=f.length;if(y!==0){if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var p=0;p<y;p++){var c=f[p];e&&(e.slice(-1)!=="/"?c=e+"/"+c:c=e+c),c.charAt(0)==="/"&&!this.nomount&&(c=pr.join(this.root,c)),this._emitMatch(i,c)}return}n.shift();for(var p=0;p<y;p++){var c=f[p],b;e?b=[e,c]:b=[c],this._process(b.concat(n),i,s)}}}};A.prototype._emitMatch=function(e,t){if(!Bh(this,t)){var r=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}};A.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r,n;try{r=this.fs.lstatSync(e)}catch(s){if(s.code==="ENOENT")return null}var i=r&&r.isSymbolicLink();return this.symlinks[e]=i,!i&&r&&!r.isDirectory()?this.cache[e]="FILE":t=this._readdir(e,!1),t};A.prototype._readdir=function(e,t){var r;if(t&&!vr(this.symlinks,e))return this._readdirInGlobStar(e);if(vr(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return null;if(Array.isArray(n))return n}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(i){return this._readdirError(e,i),null}};A.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var n=t[r];e==="/"?n=e+n:n=e+"/"+n,this.cache[n]=!0}return this.cache[e]=t,t};A.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);throw n.path=this.cwd,n.code=t.code,n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t);break}};A.prototype._processGlobStar=function(e,t,r,n,i,s){var a=this._readdir(r,s);if(!!a){var u=n.slice(1),o=e?[e]:[],l=o.concat(u);this._process(l,i,!1);var h=a.length,f=this.symlinks[r];if(!(f&&s))for(var p=0;p<h;p++){var c=a[p];if(!(c.charAt(0)==="."&&!this.dot)){var m=o.concat(a[p],u);this._process(m,i,!0);var y=o.concat(a[p],n);this._process(y,i,!0)}}}};A.prototype._processSimple=function(e,t){var r=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),!!r){if(e&&yt(e)&&!this.nomount){var n=/[\/\\]$/.test(e);e.charAt(0)==="/"?e=pr.join(this.root,e):(e=pr.resolve(this.root,e),n&&(e+="/"))}process.platform==="win32"&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}};A.prototype._stat=function(e){var t=this._makeAbs(e),r=e.slice(-1)==="/";if(e.length>this.maxLength)return!1;if(!this.stat&&vr(this.cache,t)){var a=this.cache[t];if(Array.isArray(a)&&(a="DIR"),!r||a==="DIR")return a;if(r&&a==="FILE")return!1}var n,i=this.statCache[t];if(!i){var s;try{s=this.fs.lstatSync(t)}catch(u){if(u&&(u.code==="ENOENT"||u.code==="ENOTDIR"))return this.statCache[t]=!1,!1}if(s&&s.isSymbolicLink())try{i=this.fs.statSync(t)}catch{i=s}else i=s}this.statCache[t]=i;var a=!0;return i&&(a=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||a,r&&a==="FILE"?!1:a};A.prototype._mark=function(e){return ue.mark(this,e)};A.prototype._makeAbs=function(e){return ue.makeAbs(this,e)}});var gr=v((Cp,Ws)=>{Ws.exports=Zs;function Zs(e,t){if(e&&t)return Zs(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(n){r[n]=e[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=e.apply(this,n),a=n[n.length-1];return typeof s=="function"&&s!==a&&Object.keys(a).forEach(function(u){s[u]=a[u]}),s}}});var Er=v((Pp,mr)=>{var Ys=gr();mr.exports=Ys(bt);mr.exports.strict=Ys(Qs);bt.proto=bt(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return bt(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Qs(this)},configurable:!0})});function bt(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function Qs(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}});var Js=v((Dp,Ks)=>{var Vh=gr(),Fe=Object.create(null),zh=Er();Ks.exports=Vh(Zh);function Zh(e,t){return Fe[e]?(Fe[e].push(t),null):(Fe[e]=[t],Wh(e))}function Wh(e){return zh(function t(){var r=Fe[e],n=r.length,i=Yh(arguments);try{for(var s=0;s<n;s++)r[s].apply(null,i)}finally{r.length>n?(r.splice(0,n),process.nextTick(function(){t.apply(null,i)})):delete Fe[e]}})}function Yh(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n]=e[n];return r}});var dr=v((Fp,ta)=>{ta.exports=le;var Qh=rr(),ea=gt(),Gp=ea.Minimatch,Kh=Ds(),Jh=require("events").EventEmitter,yr=require("path"),br=require("assert"),Me=Et(),_r=zs(),ce=fr(),ef=ce.setopts,wr=ce.ownProp,Or=Js(),kp=require("util"),tf=ce.childrenIgnored,rf=ce.isIgnored,nf=Er();function le(e,t,r){if(typeof t=="function"&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return _r(e,t)}return new _(e,t,r)}le.sync=_r;var sf=le.GlobSync=_r.GlobSync;le.glob=le;function af(e,t){if(t===null||typeof t!="object")return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}le.hasMagic=function(e,t){var r=af({},t);r.noprocess=!0;var n=new _(e,r),i=n.minimatch.set;if(!e)return!1;if(i.length>1)return!0;for(var s=0;s<i[0].length;s++)if(typeof i[0][s]!="string")return!0;return!1};le.Glob=_;Kh(_,Jh);function _(e,t,r){if(typeof t=="function"&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new sf(e,t)}if(!(this instanceof _))return new _(e,t,r);ef(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),typeof r=="function"&&(r=nf(r),this.on("error",r),this.on("end",function(o){r(null,o)}));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(n===0)return u();for(var s=!0,a=0;a<n;a++)this._process(this.minimatch.set[a],a,!1,u);s=!1;function u(){--i._processing,i._processing<=0&&(s?process.nextTick(function(){i._finish()}):i._finish())}}_.prototype._finish=function(){if(br(this instanceof _),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();ce.finish(this),this.emit("end",this.found)}};_.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var e=this.matches.length;if(e===0)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n);function n(){--e===0&&t._finish()}};_.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var n=Object.keys(r),i=this,s=n.length;if(s===0)return t();var a=this.matches[e]=Object.create(null);n.forEach(function(u,o){u=i._makeAbs(u),Qh.realpath(u,i.realpathCache,function(l,h){l?l.syscall==="stat"?a[u]=!0:i.emit("error",l):a[h]=!0,--s===0&&(i.matches[e]=a,t())})})};_.prototype._mark=function(e){return ce.mark(this,e)};_.prototype._makeAbs=function(e){return ce.makeAbs(this,e)};_.prototype.abort=function(){this.aborted=!0,this.emit("abort")};_.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))};_.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<n.length;t++){var i=n[t];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}};_.prototype._process=function(e,t,r,n){if(br(this instanceof _),br(typeof n=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([e,t,r,n]);return}for(var i=0;typeof e[i]=="string";)i++;var s;switch(i){case e.length:this._processSimple(e.join("/"),t,n);return;case 0:s=null;break;default:s=e.slice(0,i).join("/");break}var a=e.slice(i),u;s===null?u=".":((Me(s)||Me(e.map(function(h){return typeof h=="string"?h:"[*]"}).join("/")))&&(!s||!Me(s))&&(s="/"+s),u=s);var o=this._makeAbs(u);if(tf(this,u))return n();var l=a[0]===ea.GLOBSTAR;l?this._processGlobStar(s,u,o,a,t,r,n):this._processReaddir(s,u,o,a,t,r,n)}};_.prototype._processReaddir=function(e,t,r,n,i,s,a){var u=this;this._readdir(r,s,function(o,l){return u._processReaddir2(e,t,r,n,i,s,l,a)})};_.prototype._processReaddir2=function(e,t,r,n,i,s,a,u){if(!a)return u();for(var o=n[0],l=!!this.minimatch.negate,h=o._glob,f=this.dot||h.charAt(0)===".",p=[],c=0;c<a.length;c++){var m=a[c];if(m.charAt(0)!=="."||f){var y;l&&!e?y=!m.match(o):y=m.match(o),y&&p.push(m)}}var b=p.length;if(b===0)return u();if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var c=0;c<b;c++){var m=p[c];e&&(e!=="/"?m=e+"/"+m:m=e+m),m.charAt(0)==="/"&&!this.nomount&&(m=yr.join(this.root,m)),this._emitMatch(i,m)}return u()}n.shift();for(var c=0;c<b;c++){var m=p[c],O;e&&(e!=="/"?m=e+"/"+m:m=e+m),this._process([m].concat(n),i,s,u)}u()};_.prototype._emitMatch=function(e,t){if(!this.aborted&&!rf(this,t)){if(this.paused){this._emitQueue.push([e,t]);return}var r=Me(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=!0;var i=this.statCache[r];i&&this.emit("stat",t,i),this.emit("match",t)}}};_.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,!1,t);var r="lstat\0"+e,n=this,i=Or(r,s);i&&n.fs.lstat(e,i);function s(a,u){if(a&&a.code==="ENOENT")return t();var o=u&&u.isSymbolicLink();n.symlinks[e]=o,!o&&u&&!u.isDirectory()?(n.cache[e]="FILE",t()):n._readdir(e,!1,t)}};_.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=Or("readdir\0"+e+"\0"+t,r),!!r)){if(t&&!wr(this.symlinks,e))return this._readdirInGlobStar(e,r);if(wr(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return r();if(Array.isArray(n))return r(null,n)}var i=this;i.fs.readdir(e,of(this,e,r))}};function of(e,t,r){return function(n,i){n?e._readdirError(t,n,r):e._readdirEntries(t,i,r)}}_.prototype._readdirEntries=function(e,t,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var i=t[n];e==="/"?i=e+i:i=e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,r(null,t)}};_.prototype._readdirError=function(e,t,r){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=t.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t);break}return r()}};_.prototype._processGlobStar=function(e,t,r,n,i,s,a){var u=this;this._readdir(r,s,function(o,l){u._processGlobStar2(e,t,r,n,i,s,l,a)})};_.prototype._processGlobStar2=function(e,t,r,n,i,s,a,u){if(!a)return u();var o=n.slice(1),l=e?[e]:[],h=l.concat(o);this._process(h,i,!1,u);var f=this.symlinks[r],p=a.length;if(f&&s)return u();for(var c=0;c<p;c++){var m=a[c];if(!(m.charAt(0)==="."&&!this.dot)){var y=l.concat(a[c],o);this._process(y,i,!0,u);var b=l.concat(a[c],n);this._process(b,i,!0,u)}}u()};_.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,function(i,s){n._processSimple2(e,t,i,s,r)})};_.prototype._processSimple2=function(e,t,r,n,i){if(this.matches[t]||(this.matches[t]=Object.create(null)),!n)return i();if(e&&Me(e)&&!this.nomount){var s=/[\/\\]$/.test(e);e.charAt(0)==="/"?e=yr.join(this.root,e):(e=yr.resolve(this.root,e),s&&(e+="/"))}process.platform==="win32"&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),i()};_.prototype._stat=function(e,t){var r=this._makeAbs(e),n=e.slice(-1)==="/";if(e.length>this.maxLength)return t();if(!this.stat&&wr(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||i==="DIR")return t(null,i);if(n&&i==="FILE")return t()}var s,a=this.statCache[r];if(a!==void 0){if(a===!1)return t(null,a);var u=a.isDirectory()?"DIR":"FILE";return n&&u==="FILE"?t():t(null,u,a)}var o=this,l=Or("stat\0"+r,h);l&&o.fs.lstat(r,l);function h(f,p){if(p&&p.isSymbolicLink())return o.fs.stat(r,function(c,m){c?o._stat2(e,r,null,p,t):o._stat2(e,r,c,m,t)});o._stat2(e,r,f,p,t)}};_.prototype._stat2=function(e,t,r,n,i){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return this.statCache[t]=!1,i();var s=e.slice(-1)==="/";if(this.statCache[t]=n,t.slice(-1)==="/"&&n&&!n.isDirectory())return i(null,!1,n);var a=!0;return n&&(a=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||a,s&&a==="FILE"?i():i(null,a,n)}});var ia=v((Mp,na)=>{"use strict";var ra=qi(),uf=require("fs"),lf=require("path"),cf=Bi(),hf=Qi(),ff=cs(),pf=dr(),vf=function(e,t){var r=[];return hf(e).forEach(function(n){var i=n.indexOf("!")===0;i&&(n=n.slice(1));var s=t(n);i?r=cf(r,s):r=ff(r,s)}),r};na.exports=function(){var e=ra.toArray(arguments),t=ra.kindOf(e[0])==="object"?e.shift():{},r=Array.isArray(e[0])?e[0]:e;if(r.length===0)return[];var n=vf(r,function(i){return pf.sync(i,t)});return t.filter&&(n=n.filter(function(i){i=lf.join(t.cwd||"",i);try{return typeof t.filter=="function"?t.filter(i):uf.statSync(i)[t.filter]()}catch{return!1}})),n}});var Ef={};ya(Ef,{Options:()=>Nr,Platform:()=>X,Platforms:()=>$i,checkCache:()=>xi,checkPkgOptions:()=>ua,detectCurrentPlatform:()=>la,parseOptions:()=>ca});module.exports=ba(Ef);var wa={mode:"run",quiet:"info",files:null,version:"latest",flavor:"sdk",cacheDir:"./cache",platforms:[],currentPlatform:null,downloadUrl:"https://dl.nwjs.io/",manifestUrl:"https://nwjs.io/versions.json",appName:!1,appVersion:!1,buildDir:"./build",buildType:"default",forceDownload:!1,macCredits:!1,macIcns:!1,macZip:null,macPlist:!1,winVersionString:{},winIco:null,useRcedit:!1,argv:[],zip:null,zipOptions:null,mergeZip:!0},Nr=wa;var xr={NIX_32:"linux32",NIX_64:"linux64",OSX_32:"osx32",OSX_64:"osx64",WIN_32:"win32",WIN_64:"win64"};Object.freeze(xr);var X=xr;var kt=fe(Ri(),1),Nu={win32:{needsZip:!0,getRunnable:function(){return"nw.exe"},files:{"<=0.9.2":["nw.exe","ffmpegsumo.dll","icudt.dll","libEGL.dll","libGLESv2.dll","nw.pak"],">0.9.2 <0.12.0":["nw.exe","ffmpegsumo.dll","icudtl.dat","libEGL.dll","libGLESv2.dll","nw.pak","locales"],">=0.12.0":["nw.exe","ffmpegsumo.dll","icudtl.dat","libEGL.dll","libGLESv2.dll","nw.pak","locales","d3dcompiler_47.dll","pdf.dll"]},versionNameTemplate:"v${ version }/${ name }-v${ version }-win-ia32.zip"},win64:{needsZip:!0,getRunnable:function(){return"nw.exe"},files:{"<=0.9.2":["nw.exe","ffmpegsumo.dll","icudt.dll","libEGL.dll","libGLESv2.dll","nw.pak","locales"],">0.9.2 <0.12.0":["nw.exe","ffmpegsumo.dll","icudtl.dat","libEGL.dll","libGLESv2.dll","nw.pak","locales"],">=0.12.0":["nw.exe","ffmpegsumo.dll","icudtl.dat","libEGL.dll","libGLESv2.dll","nw.pak","locales","d3dcompiler_47.dll","pdf.dll"]},versionNameTemplate:"v${ version }/${ name }-v${ version }-win-x64.zip"},osx32:{needsZip:!1,getRunnable:function(e){return kt.default.satisfies(e,">=0.12.0 || ~0.12.0-alpha")?"nwjs.app/Contents/MacOS/nwjs":"node-webkit.app/Contents/MacOS/node-webkit"},files:{"<0.12.0-alpha":["node-webkit.app"],">=0.12.0 || ~0.12.0-alpha":["nwjs.app"]},versionNameTemplate:"v${ version }/${ name }-v${ version }-osx-ia32.zip"},osx64:{needsZip:!1,getRunnable:function(e){return kt.default.satisfies(e,">=0.12.0 || ~0.12.0-alpha")?"nwjs.app/Contents/MacOS/nwjs":"node-webkit.app/Contents/MacOS/node-webkit"},files:{"<0.12.0-alpha":["node-webkit.app"],">=0.12.0 || ~0.12.0-alpha":["nwjs.app"]},versionNameTemplate:"v${ version }/${ name }-v${ version }-osx-x64.zip"},linux32:{needsZip:!0,chmod:"0755",getRunnable:function(){return"nw"},files:{"<=0.9.2":["nw","nw.pak","libffmpegsumo.so"],">0.9.2 <=0.10.1":["nw","nw.pak","libffmpegsumo.so","icudtl.dat"],">0.10.1":["nw","nw.pak","libffmpegsumo.so","icudtl.dat","locales"]},versionNameTemplate:"v${ version }/${ name }-v${ version }-linux-ia32.tar.gz"},linux64:{needsZip:!0,chmod:"0755",getRunnable:function(){return"nw"},files:{"<=0.9.2":["nw","nw.pak","libffmpegsumo.so"],">0.9.2 <=0.10.1":["nw","nw.pak","libffmpegsumo.so","icudtl.dat"],">0.10.1":["nw","nw.pak","libffmpegsumo.so","icudtl.dat","locales"]},versionNameTemplate:"v${ version }/${ name }-v${ version }-linux-x64.tar.gz"}},$i=Nu;var it=fe(require("fs"),1),Ni=fe(require("path"),1),xu=(e,t)=>{let r=!1;if(t.length===1&&t[0]==="*")return it.default.existsSync(e)&&it.default.readdirSync(e).length>=2;for(let n of t){if(r)return!1;it.default.existsSync(Ni.default.join(e,n))||(r=!0)}return!r},xi=xu;var sa=fe(require("fs"),1),aa=fe(require("path"),1),oa=fe(ia(),1),df=e=>{let t={},r=(0,oa.default)(e);return r.length===0&&(console.error("[ ERROR ] package.json not found"),process.exit(1)),r.forEach(n=>{aa.default.basename(n)==="package.json"&&(t=sa.default.readFileSync(`${n}`,"utf8"),t=JSON.parse(t))}),t.nwbuild?t.nwbuild:{}},ua=df;var gf=e=>{switch(e.platform){case"darwin":return e.arch==="x64"?X.OSX_64:X.OSX_32;case"win32":return e.arch==="x64"||e.env.PROCESSOR_ARCHITEW6432?X.WIN_64:X.WIN_32;case"linux":return e.arch==="x64"?X.NIX_64:X.NIX_32;default:return}},la=gf;var mf=(e,t)=>{for(let r of Object.keys(e))t.hasOwnProperty(r)&&(t[r]=e[r]);return t},ca=mf;0&&(module.exports={Options,Platform,Platforms,checkCache,checkPkgOptions,detectCurrentPlatform,parseOptions});
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __commonJS = (cb, mod) => function __require() {
8
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ };
10
+ var __export = (target, all) => {
11
+ for (var name in all)
12
+ __defProp(target, name, { get: all[name], enumerable: true });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from))
17
+ if (!__hasOwnProp.call(to, key) && key !== except)
18
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
+ }
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24
+ mod
25
+ ));
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
+
28
+ // node_modules/semver/internal/constants.js
29
+ var require_constants = __commonJS({
30
+ "node_modules/semver/internal/constants.js"(exports, module2) {
31
+ var SEMVER_SPEC_VERSION = "2.0.0";
32
+ var MAX_LENGTH = 256;
33
+ var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
34
+ var MAX_SAFE_COMPONENT_LENGTH = 16;
35
+ module2.exports = {
36
+ SEMVER_SPEC_VERSION,
37
+ MAX_LENGTH,
38
+ MAX_SAFE_INTEGER,
39
+ MAX_SAFE_COMPONENT_LENGTH
40
+ };
41
+ }
42
+ });
43
+
44
+ // node_modules/semver/internal/debug.js
45
+ var require_debug = __commonJS({
46
+ "node_modules/semver/internal/debug.js"(exports, module2) {
47
+ var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
48
+ };
49
+ module2.exports = debug;
50
+ }
51
+ });
52
+
53
+ // node_modules/semver/internal/re.js
54
+ var require_re = __commonJS({
55
+ "node_modules/semver/internal/re.js"(exports, module2) {
56
+ var { MAX_SAFE_COMPONENT_LENGTH } = require_constants();
57
+ var debug = require_debug();
58
+ exports = module2.exports = {};
59
+ var re = exports.re = [];
60
+ var src = exports.src = [];
61
+ var t = exports.t = {};
62
+ var R = 0;
63
+ var createToken = (name, value, isGlobal) => {
64
+ const index = R++;
65
+ debug(name, index, value);
66
+ t[name] = index;
67
+ src[index] = value;
68
+ re[index] = new RegExp(value, isGlobal ? "g" : void 0);
69
+ };
70
+ createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
71
+ createToken("NUMERICIDENTIFIERLOOSE", "[0-9]+");
72
+ createToken("NONNUMERICIDENTIFIER", "\\d*[a-zA-Z-][a-zA-Z0-9-]*");
73
+ createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
74
+ createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
75
+ createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
76
+ createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);
77
+ createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
78
+ createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
79
+ createToken("BUILDIDENTIFIER", "[0-9A-Za-z-]+");
80
+ createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
81
+ createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
82
+ createToken("FULL", `^${src[t.FULLPLAIN]}$`);
83
+ createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
84
+ createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
85
+ createToken("GTLT", "((?:<|>)?=?)");
86
+ createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
87
+ createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
88
+ createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
89
+ createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
90
+ createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
91
+ createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
92
+ createToken("COERCE", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:$|[^\\d])`);
93
+ createToken("COERCERTL", src[t.COERCE], true);
94
+ createToken("LONETILDE", "(?:~>?)");
95
+ createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
96
+ exports.tildeTrimReplace = "$1~";
97
+ createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
98
+ createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
99
+ createToken("LONECARET", "(?:\\^)");
100
+ createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
101
+ exports.caretTrimReplace = "$1^";
102
+ createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
103
+ createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
104
+ createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
105
+ createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
106
+ createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
107
+ exports.comparatorTrimReplace = "$1$2$3";
108
+ createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
109
+ createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
110
+ createToken("STAR", "(<|>)?=?\\s*\\*");
111
+ createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
112
+ createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
113
+ }
114
+ });
115
+
116
+ // node_modules/semver/internal/parse-options.js
117
+ var require_parse_options = __commonJS({
118
+ "node_modules/semver/internal/parse-options.js"(exports, module2) {
119
+ var opts = ["includePrerelease", "loose", "rtl"];
120
+ var parseOptions2 = (options) => !options ? {} : typeof options !== "object" ? { loose: true } : opts.filter((k) => options[k]).reduce((o, k) => {
121
+ o[k] = true;
122
+ return o;
123
+ }, {});
124
+ module2.exports = parseOptions2;
125
+ }
126
+ });
127
+
128
+ // node_modules/semver/internal/identifiers.js
129
+ var require_identifiers = __commonJS({
130
+ "node_modules/semver/internal/identifiers.js"(exports, module2) {
131
+ var numeric = /^[0-9]+$/;
132
+ var compareIdentifiers = (a, b) => {
133
+ const anum = numeric.test(a);
134
+ const bnum = numeric.test(b);
135
+ if (anum && bnum) {
136
+ a = +a;
137
+ b = +b;
138
+ }
139
+ return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
140
+ };
141
+ var rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
142
+ module2.exports = {
143
+ compareIdentifiers,
144
+ rcompareIdentifiers
145
+ };
146
+ }
147
+ });
148
+
149
+ // node_modules/semver/classes/semver.js
150
+ var require_semver = __commonJS({
151
+ "node_modules/semver/classes/semver.js"(exports, module2) {
152
+ var debug = require_debug();
153
+ var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
154
+ var { re, t } = require_re();
155
+ var parseOptions2 = require_parse_options();
156
+ var { compareIdentifiers } = require_identifiers();
157
+ var SemVer = class {
158
+ constructor(version, options) {
159
+ options = parseOptions2(options);
160
+ if (version instanceof SemVer) {
161
+ if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
162
+ return version;
163
+ } else {
164
+ version = version.version;
165
+ }
166
+ } else if (typeof version !== "string") {
167
+ throw new TypeError(`Invalid Version: ${version}`);
168
+ }
169
+ if (version.length > MAX_LENGTH) {
170
+ throw new TypeError(
171
+ `version is longer than ${MAX_LENGTH} characters`
172
+ );
173
+ }
174
+ debug("SemVer", version, options);
175
+ this.options = options;
176
+ this.loose = !!options.loose;
177
+ this.includePrerelease = !!options.includePrerelease;
178
+ const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
179
+ if (!m) {
180
+ throw new TypeError(`Invalid Version: ${version}`);
181
+ }
182
+ this.raw = version;
183
+ this.major = +m[1];
184
+ this.minor = +m[2];
185
+ this.patch = +m[3];
186
+ if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
187
+ throw new TypeError("Invalid major version");
188
+ }
189
+ if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
190
+ throw new TypeError("Invalid minor version");
191
+ }
192
+ if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
193
+ throw new TypeError("Invalid patch version");
194
+ }
195
+ if (!m[4]) {
196
+ this.prerelease = [];
197
+ } else {
198
+ this.prerelease = m[4].split(".").map((id) => {
199
+ if (/^[0-9]+$/.test(id)) {
200
+ const num = +id;
201
+ if (num >= 0 && num < MAX_SAFE_INTEGER) {
202
+ return num;
203
+ }
204
+ }
205
+ return id;
206
+ });
207
+ }
208
+ this.build = m[5] ? m[5].split(".") : [];
209
+ this.format();
210
+ }
211
+ format() {
212
+ this.version = `${this.major}.${this.minor}.${this.patch}`;
213
+ if (this.prerelease.length) {
214
+ this.version += `-${this.prerelease.join(".")}`;
215
+ }
216
+ return this.version;
217
+ }
218
+ toString() {
219
+ return this.version;
220
+ }
221
+ compare(other) {
222
+ debug("SemVer.compare", this.version, this.options, other);
223
+ if (!(other instanceof SemVer)) {
224
+ if (typeof other === "string" && other === this.version) {
225
+ return 0;
226
+ }
227
+ other = new SemVer(other, this.options);
228
+ }
229
+ if (other.version === this.version) {
230
+ return 0;
231
+ }
232
+ return this.compareMain(other) || this.comparePre(other);
233
+ }
234
+ compareMain(other) {
235
+ if (!(other instanceof SemVer)) {
236
+ other = new SemVer(other, this.options);
237
+ }
238
+ return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
239
+ }
240
+ comparePre(other) {
241
+ if (!(other instanceof SemVer)) {
242
+ other = new SemVer(other, this.options);
243
+ }
244
+ if (this.prerelease.length && !other.prerelease.length) {
245
+ return -1;
246
+ } else if (!this.prerelease.length && other.prerelease.length) {
247
+ return 1;
248
+ } else if (!this.prerelease.length && !other.prerelease.length) {
249
+ return 0;
250
+ }
251
+ let i = 0;
252
+ do {
253
+ const a = this.prerelease[i];
254
+ const b = other.prerelease[i];
255
+ debug("prerelease compare", i, a, b);
256
+ if (a === void 0 && b === void 0) {
257
+ return 0;
258
+ } else if (b === void 0) {
259
+ return 1;
260
+ } else if (a === void 0) {
261
+ return -1;
262
+ } else if (a === b) {
263
+ continue;
264
+ } else {
265
+ return compareIdentifiers(a, b);
266
+ }
267
+ } while (++i);
268
+ }
269
+ compareBuild(other) {
270
+ if (!(other instanceof SemVer)) {
271
+ other = new SemVer(other, this.options);
272
+ }
273
+ let i = 0;
274
+ do {
275
+ const a = this.build[i];
276
+ const b = other.build[i];
277
+ debug("prerelease compare", i, a, b);
278
+ if (a === void 0 && b === void 0) {
279
+ return 0;
280
+ } else if (b === void 0) {
281
+ return 1;
282
+ } else if (a === void 0) {
283
+ return -1;
284
+ } else if (a === b) {
285
+ continue;
286
+ } else {
287
+ return compareIdentifiers(a, b);
288
+ }
289
+ } while (++i);
290
+ }
291
+ inc(release, identifier) {
292
+ switch (release) {
293
+ case "premajor":
294
+ this.prerelease.length = 0;
295
+ this.patch = 0;
296
+ this.minor = 0;
297
+ this.major++;
298
+ this.inc("pre", identifier);
299
+ break;
300
+ case "preminor":
301
+ this.prerelease.length = 0;
302
+ this.patch = 0;
303
+ this.minor++;
304
+ this.inc("pre", identifier);
305
+ break;
306
+ case "prepatch":
307
+ this.prerelease.length = 0;
308
+ this.inc("patch", identifier);
309
+ this.inc("pre", identifier);
310
+ break;
311
+ case "prerelease":
312
+ if (this.prerelease.length === 0) {
313
+ this.inc("patch", identifier);
314
+ }
315
+ this.inc("pre", identifier);
316
+ break;
317
+ case "major":
318
+ if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
319
+ this.major++;
320
+ }
321
+ this.minor = 0;
322
+ this.patch = 0;
323
+ this.prerelease = [];
324
+ break;
325
+ case "minor":
326
+ if (this.patch !== 0 || this.prerelease.length === 0) {
327
+ this.minor++;
328
+ }
329
+ this.patch = 0;
330
+ this.prerelease = [];
331
+ break;
332
+ case "patch":
333
+ if (this.prerelease.length === 0) {
334
+ this.patch++;
335
+ }
336
+ this.prerelease = [];
337
+ break;
338
+ case "pre":
339
+ if (this.prerelease.length === 0) {
340
+ this.prerelease = [0];
341
+ } else {
342
+ let i = this.prerelease.length;
343
+ while (--i >= 0) {
344
+ if (typeof this.prerelease[i] === "number") {
345
+ this.prerelease[i]++;
346
+ i = -2;
347
+ }
348
+ }
349
+ if (i === -1) {
350
+ this.prerelease.push(0);
351
+ }
352
+ }
353
+ if (identifier) {
354
+ if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
355
+ if (isNaN(this.prerelease[1])) {
356
+ this.prerelease = [identifier, 0];
357
+ }
358
+ } else {
359
+ this.prerelease = [identifier, 0];
360
+ }
361
+ }
362
+ break;
363
+ default:
364
+ throw new Error(`invalid increment argument: ${release}`);
365
+ }
366
+ this.format();
367
+ this.raw = this.version;
368
+ return this;
369
+ }
370
+ };
371
+ module2.exports = SemVer;
372
+ }
373
+ });
374
+
375
+ // node_modules/semver/functions/parse.js
376
+ var require_parse = __commonJS({
377
+ "node_modules/semver/functions/parse.js"(exports, module2) {
378
+ var { MAX_LENGTH } = require_constants();
379
+ var { re, t } = require_re();
380
+ var SemVer = require_semver();
381
+ var parseOptions2 = require_parse_options();
382
+ var parse = (version, options) => {
383
+ options = parseOptions2(options);
384
+ if (version instanceof SemVer) {
385
+ return version;
386
+ }
387
+ if (typeof version !== "string") {
388
+ return null;
389
+ }
390
+ if (version.length > MAX_LENGTH) {
391
+ return null;
392
+ }
393
+ const r = options.loose ? re[t.LOOSE] : re[t.FULL];
394
+ if (!r.test(version)) {
395
+ return null;
396
+ }
397
+ try {
398
+ return new SemVer(version, options);
399
+ } catch (er) {
400
+ return null;
401
+ }
402
+ };
403
+ module2.exports = parse;
404
+ }
405
+ });
406
+
407
+ // node_modules/semver/functions/valid.js
408
+ var require_valid = __commonJS({
409
+ "node_modules/semver/functions/valid.js"(exports, module2) {
410
+ var parse = require_parse();
411
+ var valid = (version, options) => {
412
+ const v = parse(version, options);
413
+ return v ? v.version : null;
414
+ };
415
+ module2.exports = valid;
416
+ }
417
+ });
418
+
419
+ // node_modules/semver/functions/clean.js
420
+ var require_clean = __commonJS({
421
+ "node_modules/semver/functions/clean.js"(exports, module2) {
422
+ var parse = require_parse();
423
+ var clean = (version, options) => {
424
+ const s = parse(version.trim().replace(/^[=v]+/, ""), options);
425
+ return s ? s.version : null;
426
+ };
427
+ module2.exports = clean;
428
+ }
429
+ });
430
+
431
+ // node_modules/semver/functions/inc.js
432
+ var require_inc = __commonJS({
433
+ "node_modules/semver/functions/inc.js"(exports, module2) {
434
+ var SemVer = require_semver();
435
+ var inc = (version, release, options, identifier) => {
436
+ if (typeof options === "string") {
437
+ identifier = options;
438
+ options = void 0;
439
+ }
440
+ try {
441
+ return new SemVer(
442
+ version instanceof SemVer ? version.version : version,
443
+ options
444
+ ).inc(release, identifier).version;
445
+ } catch (er) {
446
+ return null;
447
+ }
448
+ };
449
+ module2.exports = inc;
450
+ }
451
+ });
452
+
453
+ // node_modules/semver/functions/compare.js
454
+ var require_compare = __commonJS({
455
+ "node_modules/semver/functions/compare.js"(exports, module2) {
456
+ var SemVer = require_semver();
457
+ var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
458
+ module2.exports = compare;
459
+ }
460
+ });
461
+
462
+ // node_modules/semver/functions/eq.js
463
+ var require_eq = __commonJS({
464
+ "node_modules/semver/functions/eq.js"(exports, module2) {
465
+ var compare = require_compare();
466
+ var eq = (a, b, loose) => compare(a, b, loose) === 0;
467
+ module2.exports = eq;
468
+ }
469
+ });
470
+
471
+ // node_modules/semver/functions/diff.js
472
+ var require_diff = __commonJS({
473
+ "node_modules/semver/functions/diff.js"(exports, module2) {
474
+ var parse = require_parse();
475
+ var eq = require_eq();
476
+ var diff = (version1, version2) => {
477
+ if (eq(version1, version2)) {
478
+ return null;
479
+ } else {
480
+ const v1 = parse(version1);
481
+ const v2 = parse(version2);
482
+ const hasPre = v1.prerelease.length || v2.prerelease.length;
483
+ const prefix = hasPre ? "pre" : "";
484
+ const defaultResult = hasPre ? "prerelease" : "";
485
+ for (const key in v1) {
486
+ if (key === "major" || key === "minor" || key === "patch") {
487
+ if (v1[key] !== v2[key]) {
488
+ return prefix + key;
489
+ }
490
+ }
491
+ }
492
+ return defaultResult;
493
+ }
494
+ };
495
+ module2.exports = diff;
496
+ }
497
+ });
498
+
499
+ // node_modules/semver/functions/major.js
500
+ var require_major = __commonJS({
501
+ "node_modules/semver/functions/major.js"(exports, module2) {
502
+ var SemVer = require_semver();
503
+ var major = (a, loose) => new SemVer(a, loose).major;
504
+ module2.exports = major;
505
+ }
506
+ });
507
+
508
+ // node_modules/semver/functions/minor.js
509
+ var require_minor = __commonJS({
510
+ "node_modules/semver/functions/minor.js"(exports, module2) {
511
+ var SemVer = require_semver();
512
+ var minor = (a, loose) => new SemVer(a, loose).minor;
513
+ module2.exports = minor;
514
+ }
515
+ });
516
+
517
+ // node_modules/semver/functions/patch.js
518
+ var require_patch = __commonJS({
519
+ "node_modules/semver/functions/patch.js"(exports, module2) {
520
+ var SemVer = require_semver();
521
+ var patch = (a, loose) => new SemVer(a, loose).patch;
522
+ module2.exports = patch;
523
+ }
524
+ });
525
+
526
+ // node_modules/semver/functions/prerelease.js
527
+ var require_prerelease = __commonJS({
528
+ "node_modules/semver/functions/prerelease.js"(exports, module2) {
529
+ var parse = require_parse();
530
+ var prerelease = (version, options) => {
531
+ const parsed = parse(version, options);
532
+ return parsed && parsed.prerelease.length ? parsed.prerelease : null;
533
+ };
534
+ module2.exports = prerelease;
535
+ }
536
+ });
537
+
538
+ // node_modules/semver/functions/rcompare.js
539
+ var require_rcompare = __commonJS({
540
+ "node_modules/semver/functions/rcompare.js"(exports, module2) {
541
+ var compare = require_compare();
542
+ var rcompare = (a, b, loose) => compare(b, a, loose);
543
+ module2.exports = rcompare;
544
+ }
545
+ });
546
+
547
+ // node_modules/semver/functions/compare-loose.js
548
+ var require_compare_loose = __commonJS({
549
+ "node_modules/semver/functions/compare-loose.js"(exports, module2) {
550
+ var compare = require_compare();
551
+ var compareLoose = (a, b) => compare(a, b, true);
552
+ module2.exports = compareLoose;
553
+ }
554
+ });
555
+
556
+ // node_modules/semver/functions/compare-build.js
557
+ var require_compare_build = __commonJS({
558
+ "node_modules/semver/functions/compare-build.js"(exports, module2) {
559
+ var SemVer = require_semver();
560
+ var compareBuild = (a, b, loose) => {
561
+ const versionA = new SemVer(a, loose);
562
+ const versionB = new SemVer(b, loose);
563
+ return versionA.compare(versionB) || versionA.compareBuild(versionB);
564
+ };
565
+ module2.exports = compareBuild;
566
+ }
567
+ });
568
+
569
+ // node_modules/semver/functions/sort.js
570
+ var require_sort = __commonJS({
571
+ "node_modules/semver/functions/sort.js"(exports, module2) {
572
+ var compareBuild = require_compare_build();
573
+ var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
574
+ module2.exports = sort;
575
+ }
576
+ });
577
+
578
+ // node_modules/semver/functions/rsort.js
579
+ var require_rsort = __commonJS({
580
+ "node_modules/semver/functions/rsort.js"(exports, module2) {
581
+ var compareBuild = require_compare_build();
582
+ var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
583
+ module2.exports = rsort;
584
+ }
585
+ });
586
+
587
+ // node_modules/semver/functions/gt.js
588
+ var require_gt = __commonJS({
589
+ "node_modules/semver/functions/gt.js"(exports, module2) {
590
+ var compare = require_compare();
591
+ var gt = (a, b, loose) => compare(a, b, loose) > 0;
592
+ module2.exports = gt;
593
+ }
594
+ });
595
+
596
+ // node_modules/semver/functions/lt.js
597
+ var require_lt = __commonJS({
598
+ "node_modules/semver/functions/lt.js"(exports, module2) {
599
+ var compare = require_compare();
600
+ var lt = (a, b, loose) => compare(a, b, loose) < 0;
601
+ module2.exports = lt;
602
+ }
603
+ });
604
+
605
+ // node_modules/semver/functions/neq.js
606
+ var require_neq = __commonJS({
607
+ "node_modules/semver/functions/neq.js"(exports, module2) {
608
+ var compare = require_compare();
609
+ var neq = (a, b, loose) => compare(a, b, loose) !== 0;
610
+ module2.exports = neq;
611
+ }
612
+ });
613
+
614
+ // node_modules/semver/functions/gte.js
615
+ var require_gte = __commonJS({
616
+ "node_modules/semver/functions/gte.js"(exports, module2) {
617
+ var compare = require_compare();
618
+ var gte = (a, b, loose) => compare(a, b, loose) >= 0;
619
+ module2.exports = gte;
620
+ }
621
+ });
622
+
623
+ // node_modules/semver/functions/lte.js
624
+ var require_lte = __commonJS({
625
+ "node_modules/semver/functions/lte.js"(exports, module2) {
626
+ var compare = require_compare();
627
+ var lte = (a, b, loose) => compare(a, b, loose) <= 0;
628
+ module2.exports = lte;
629
+ }
630
+ });
631
+
632
+ // node_modules/semver/functions/cmp.js
633
+ var require_cmp = __commonJS({
634
+ "node_modules/semver/functions/cmp.js"(exports, module2) {
635
+ var eq = require_eq();
636
+ var neq = require_neq();
637
+ var gt = require_gt();
638
+ var gte = require_gte();
639
+ var lt = require_lt();
640
+ var lte = require_lte();
641
+ var cmp = (a, op, b, loose) => {
642
+ switch (op) {
643
+ case "===":
644
+ if (typeof a === "object") {
645
+ a = a.version;
646
+ }
647
+ if (typeof b === "object") {
648
+ b = b.version;
649
+ }
650
+ return a === b;
651
+ case "!==":
652
+ if (typeof a === "object") {
653
+ a = a.version;
654
+ }
655
+ if (typeof b === "object") {
656
+ b = b.version;
657
+ }
658
+ return a !== b;
659
+ case "":
660
+ case "=":
661
+ case "==":
662
+ return eq(a, b, loose);
663
+ case "!=":
664
+ return neq(a, b, loose);
665
+ case ">":
666
+ return gt(a, b, loose);
667
+ case ">=":
668
+ return gte(a, b, loose);
669
+ case "<":
670
+ return lt(a, b, loose);
671
+ case "<=":
672
+ return lte(a, b, loose);
673
+ default:
674
+ throw new TypeError(`Invalid operator: ${op}`);
675
+ }
676
+ };
677
+ module2.exports = cmp;
678
+ }
679
+ });
680
+
681
+ // node_modules/semver/functions/coerce.js
682
+ var require_coerce = __commonJS({
683
+ "node_modules/semver/functions/coerce.js"(exports, module2) {
684
+ var SemVer = require_semver();
685
+ var parse = require_parse();
686
+ var { re, t } = require_re();
687
+ var coerce = (version, options) => {
688
+ if (version instanceof SemVer) {
689
+ return version;
690
+ }
691
+ if (typeof version === "number") {
692
+ version = String(version);
693
+ }
694
+ if (typeof version !== "string") {
695
+ return null;
696
+ }
697
+ options = options || {};
698
+ let match = null;
699
+ if (!options.rtl) {
700
+ match = version.match(re[t.COERCE]);
701
+ } else {
702
+ let next;
703
+ while ((next = re[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)) {
704
+ if (!match || next.index + next[0].length !== match.index + match[0].length) {
705
+ match = next;
706
+ }
707
+ re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
708
+ }
709
+ re[t.COERCERTL].lastIndex = -1;
710
+ }
711
+ if (match === null) {
712
+ return null;
713
+ }
714
+ return parse(`${match[2]}.${match[3] || "0"}.${match[4] || "0"}`, options);
715
+ };
716
+ module2.exports = coerce;
717
+ }
718
+ });
719
+
720
+ // node_modules/yallist/iterator.js
721
+ var require_iterator = __commonJS({
722
+ "node_modules/yallist/iterator.js"(exports, module2) {
723
+ "use strict";
724
+ module2.exports = function(Yallist) {
725
+ Yallist.prototype[Symbol.iterator] = function* () {
726
+ for (let walker = this.head; walker; walker = walker.next) {
727
+ yield walker.value;
728
+ }
729
+ };
730
+ };
731
+ }
732
+ });
733
+
734
+ // node_modules/yallist/yallist.js
735
+ var require_yallist = __commonJS({
736
+ "node_modules/yallist/yallist.js"(exports, module2) {
737
+ "use strict";
738
+ module2.exports = Yallist;
739
+ Yallist.Node = Node;
740
+ Yallist.create = Yallist;
741
+ function Yallist(list) {
742
+ var self = this;
743
+ if (!(self instanceof Yallist)) {
744
+ self = new Yallist();
745
+ }
746
+ self.tail = null;
747
+ self.head = null;
748
+ self.length = 0;
749
+ if (list && typeof list.forEach === "function") {
750
+ list.forEach(function(item) {
751
+ self.push(item);
752
+ });
753
+ } else if (arguments.length > 0) {
754
+ for (var i = 0, l = arguments.length; i < l; i++) {
755
+ self.push(arguments[i]);
756
+ }
757
+ }
758
+ return self;
759
+ }
760
+ Yallist.prototype.removeNode = function(node) {
761
+ if (node.list !== this) {
762
+ throw new Error("removing node which does not belong to this list");
763
+ }
764
+ var next = node.next;
765
+ var prev = node.prev;
766
+ if (next) {
767
+ next.prev = prev;
768
+ }
769
+ if (prev) {
770
+ prev.next = next;
771
+ }
772
+ if (node === this.head) {
773
+ this.head = next;
774
+ }
775
+ if (node === this.tail) {
776
+ this.tail = prev;
777
+ }
778
+ node.list.length--;
779
+ node.next = null;
780
+ node.prev = null;
781
+ node.list = null;
782
+ return next;
783
+ };
784
+ Yallist.prototype.unshiftNode = function(node) {
785
+ if (node === this.head) {
786
+ return;
787
+ }
788
+ if (node.list) {
789
+ node.list.removeNode(node);
790
+ }
791
+ var head = this.head;
792
+ node.list = this;
793
+ node.next = head;
794
+ if (head) {
795
+ head.prev = node;
796
+ }
797
+ this.head = node;
798
+ if (!this.tail) {
799
+ this.tail = node;
800
+ }
801
+ this.length++;
802
+ };
803
+ Yallist.prototype.pushNode = function(node) {
804
+ if (node === this.tail) {
805
+ return;
806
+ }
807
+ if (node.list) {
808
+ node.list.removeNode(node);
809
+ }
810
+ var tail = this.tail;
811
+ node.list = this;
812
+ node.prev = tail;
813
+ if (tail) {
814
+ tail.next = node;
815
+ }
816
+ this.tail = node;
817
+ if (!this.head) {
818
+ this.head = node;
819
+ }
820
+ this.length++;
821
+ };
822
+ Yallist.prototype.push = function() {
823
+ for (var i = 0, l = arguments.length; i < l; i++) {
824
+ push(this, arguments[i]);
825
+ }
826
+ return this.length;
827
+ };
828
+ Yallist.prototype.unshift = function() {
829
+ for (var i = 0, l = arguments.length; i < l; i++) {
830
+ unshift(this, arguments[i]);
831
+ }
832
+ return this.length;
833
+ };
834
+ Yallist.prototype.pop = function() {
835
+ if (!this.tail) {
836
+ return void 0;
837
+ }
838
+ var res = this.tail.value;
839
+ this.tail = this.tail.prev;
840
+ if (this.tail) {
841
+ this.tail.next = null;
842
+ } else {
843
+ this.head = null;
844
+ }
845
+ this.length--;
846
+ return res;
847
+ };
848
+ Yallist.prototype.shift = function() {
849
+ if (!this.head) {
850
+ return void 0;
851
+ }
852
+ var res = this.head.value;
853
+ this.head = this.head.next;
854
+ if (this.head) {
855
+ this.head.prev = null;
856
+ } else {
857
+ this.tail = null;
858
+ }
859
+ this.length--;
860
+ return res;
861
+ };
862
+ Yallist.prototype.forEach = function(fn, thisp) {
863
+ thisp = thisp || this;
864
+ for (var walker = this.head, i = 0; walker !== null; i++) {
865
+ fn.call(thisp, walker.value, i, this);
866
+ walker = walker.next;
867
+ }
868
+ };
869
+ Yallist.prototype.forEachReverse = function(fn, thisp) {
870
+ thisp = thisp || this;
871
+ for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {
872
+ fn.call(thisp, walker.value, i, this);
873
+ walker = walker.prev;
874
+ }
875
+ };
876
+ Yallist.prototype.get = function(n) {
877
+ for (var i = 0, walker = this.head; walker !== null && i < n; i++) {
878
+ walker = walker.next;
879
+ }
880
+ if (i === n && walker !== null) {
881
+ return walker.value;
882
+ }
883
+ };
884
+ Yallist.prototype.getReverse = function(n) {
885
+ for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {
886
+ walker = walker.prev;
887
+ }
888
+ if (i === n && walker !== null) {
889
+ return walker.value;
890
+ }
891
+ };
892
+ Yallist.prototype.map = function(fn, thisp) {
893
+ thisp = thisp || this;
894
+ var res = new Yallist();
895
+ for (var walker = this.head; walker !== null; ) {
896
+ res.push(fn.call(thisp, walker.value, this));
897
+ walker = walker.next;
898
+ }
899
+ return res;
900
+ };
901
+ Yallist.prototype.mapReverse = function(fn, thisp) {
902
+ thisp = thisp || this;
903
+ var res = new Yallist();
904
+ for (var walker = this.tail; walker !== null; ) {
905
+ res.push(fn.call(thisp, walker.value, this));
906
+ walker = walker.prev;
907
+ }
908
+ return res;
909
+ };
910
+ Yallist.prototype.reduce = function(fn, initial) {
911
+ var acc;
912
+ var walker = this.head;
913
+ if (arguments.length > 1) {
914
+ acc = initial;
915
+ } else if (this.head) {
916
+ walker = this.head.next;
917
+ acc = this.head.value;
918
+ } else {
919
+ throw new TypeError("Reduce of empty list with no initial value");
920
+ }
921
+ for (var i = 0; walker !== null; i++) {
922
+ acc = fn(acc, walker.value, i);
923
+ walker = walker.next;
924
+ }
925
+ return acc;
926
+ };
927
+ Yallist.prototype.reduceReverse = function(fn, initial) {
928
+ var acc;
929
+ var walker = this.tail;
930
+ if (arguments.length > 1) {
931
+ acc = initial;
932
+ } else if (this.tail) {
933
+ walker = this.tail.prev;
934
+ acc = this.tail.value;
935
+ } else {
936
+ throw new TypeError("Reduce of empty list with no initial value");
937
+ }
938
+ for (var i = this.length - 1; walker !== null; i--) {
939
+ acc = fn(acc, walker.value, i);
940
+ walker = walker.prev;
941
+ }
942
+ return acc;
943
+ };
944
+ Yallist.prototype.toArray = function() {
945
+ var arr = new Array(this.length);
946
+ for (var i = 0, walker = this.head; walker !== null; i++) {
947
+ arr[i] = walker.value;
948
+ walker = walker.next;
949
+ }
950
+ return arr;
951
+ };
952
+ Yallist.prototype.toArrayReverse = function() {
953
+ var arr = new Array(this.length);
954
+ for (var i = 0, walker = this.tail; walker !== null; i++) {
955
+ arr[i] = walker.value;
956
+ walker = walker.prev;
957
+ }
958
+ return arr;
959
+ };
960
+ Yallist.prototype.slice = function(from, to) {
961
+ to = to || this.length;
962
+ if (to < 0) {
963
+ to += this.length;
964
+ }
965
+ from = from || 0;
966
+ if (from < 0) {
967
+ from += this.length;
968
+ }
969
+ var ret = new Yallist();
970
+ if (to < from || to < 0) {
971
+ return ret;
972
+ }
973
+ if (from < 0) {
974
+ from = 0;
975
+ }
976
+ if (to > this.length) {
977
+ to = this.length;
978
+ }
979
+ for (var i = 0, walker = this.head; walker !== null && i < from; i++) {
980
+ walker = walker.next;
981
+ }
982
+ for (; walker !== null && i < to; i++, walker = walker.next) {
983
+ ret.push(walker.value);
984
+ }
985
+ return ret;
986
+ };
987
+ Yallist.prototype.sliceReverse = function(from, to) {
988
+ to = to || this.length;
989
+ if (to < 0) {
990
+ to += this.length;
991
+ }
992
+ from = from || 0;
993
+ if (from < 0) {
994
+ from += this.length;
995
+ }
996
+ var ret = new Yallist();
997
+ if (to < from || to < 0) {
998
+ return ret;
999
+ }
1000
+ if (from < 0) {
1001
+ from = 0;
1002
+ }
1003
+ if (to > this.length) {
1004
+ to = this.length;
1005
+ }
1006
+ for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {
1007
+ walker = walker.prev;
1008
+ }
1009
+ for (; walker !== null && i > from; i--, walker = walker.prev) {
1010
+ ret.push(walker.value);
1011
+ }
1012
+ return ret;
1013
+ };
1014
+ Yallist.prototype.splice = function(start, deleteCount, ...nodes) {
1015
+ if (start > this.length) {
1016
+ start = this.length - 1;
1017
+ }
1018
+ if (start < 0) {
1019
+ start = this.length + start;
1020
+ }
1021
+ for (var i = 0, walker = this.head; walker !== null && i < start; i++) {
1022
+ walker = walker.next;
1023
+ }
1024
+ var ret = [];
1025
+ for (var i = 0; walker && i < deleteCount; i++) {
1026
+ ret.push(walker.value);
1027
+ walker = this.removeNode(walker);
1028
+ }
1029
+ if (walker === null) {
1030
+ walker = this.tail;
1031
+ }
1032
+ if (walker !== this.head && walker !== this.tail) {
1033
+ walker = walker.prev;
1034
+ }
1035
+ for (var i = 0; i < nodes.length; i++) {
1036
+ walker = insert(this, walker, nodes[i]);
1037
+ }
1038
+ return ret;
1039
+ };
1040
+ Yallist.prototype.reverse = function() {
1041
+ var head = this.head;
1042
+ var tail = this.tail;
1043
+ for (var walker = head; walker !== null; walker = walker.prev) {
1044
+ var p = walker.prev;
1045
+ walker.prev = walker.next;
1046
+ walker.next = p;
1047
+ }
1048
+ this.head = tail;
1049
+ this.tail = head;
1050
+ return this;
1051
+ };
1052
+ function insert(self, node, value) {
1053
+ var inserted = node === self.head ? new Node(value, null, node, self) : new Node(value, node, node.next, self);
1054
+ if (inserted.next === null) {
1055
+ self.tail = inserted;
1056
+ }
1057
+ if (inserted.prev === null) {
1058
+ self.head = inserted;
1059
+ }
1060
+ self.length++;
1061
+ return inserted;
1062
+ }
1063
+ function push(self, item) {
1064
+ self.tail = new Node(item, self.tail, null, self);
1065
+ if (!self.head) {
1066
+ self.head = self.tail;
1067
+ }
1068
+ self.length++;
1069
+ }
1070
+ function unshift(self, item) {
1071
+ self.head = new Node(item, null, self.head, self);
1072
+ if (!self.tail) {
1073
+ self.tail = self.head;
1074
+ }
1075
+ self.length++;
1076
+ }
1077
+ function Node(value, prev, next, list) {
1078
+ if (!(this instanceof Node)) {
1079
+ return new Node(value, prev, next, list);
1080
+ }
1081
+ this.list = list;
1082
+ this.value = value;
1083
+ if (prev) {
1084
+ prev.next = this;
1085
+ this.prev = prev;
1086
+ } else {
1087
+ this.prev = null;
1088
+ }
1089
+ if (next) {
1090
+ next.prev = this;
1091
+ this.next = next;
1092
+ } else {
1093
+ this.next = null;
1094
+ }
1095
+ }
1096
+ try {
1097
+ require_iterator()(Yallist);
1098
+ } catch (er) {
1099
+ }
1100
+ }
1101
+ });
1102
+
1103
+ // node_modules/lru-cache/index.js
1104
+ var require_lru_cache = __commonJS({
1105
+ "node_modules/lru-cache/index.js"(exports, module2) {
1106
+ "use strict";
1107
+ var Yallist = require_yallist();
1108
+ var MAX = Symbol("max");
1109
+ var LENGTH = Symbol("length");
1110
+ var LENGTH_CALCULATOR = Symbol("lengthCalculator");
1111
+ var ALLOW_STALE = Symbol("allowStale");
1112
+ var MAX_AGE = Symbol("maxAge");
1113
+ var DISPOSE = Symbol("dispose");
1114
+ var NO_DISPOSE_ON_SET = Symbol("noDisposeOnSet");
1115
+ var LRU_LIST = Symbol("lruList");
1116
+ var CACHE = Symbol("cache");
1117
+ var UPDATE_AGE_ON_GET = Symbol("updateAgeOnGet");
1118
+ var naiveLength = () => 1;
1119
+ var LRUCache = class {
1120
+ constructor(options) {
1121
+ if (typeof options === "number")
1122
+ options = { max: options };
1123
+ if (!options)
1124
+ options = {};
1125
+ if (options.max && (typeof options.max !== "number" || options.max < 0))
1126
+ throw new TypeError("max must be a non-negative number");
1127
+ const max = this[MAX] = options.max || Infinity;
1128
+ const lc = options.length || naiveLength;
1129
+ this[LENGTH_CALCULATOR] = typeof lc !== "function" ? naiveLength : lc;
1130
+ this[ALLOW_STALE] = options.stale || false;
1131
+ if (options.maxAge && typeof options.maxAge !== "number")
1132
+ throw new TypeError("maxAge must be a number");
1133
+ this[MAX_AGE] = options.maxAge || 0;
1134
+ this[DISPOSE] = options.dispose;
1135
+ this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false;
1136
+ this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;
1137
+ this.reset();
1138
+ }
1139
+ set max(mL) {
1140
+ if (typeof mL !== "number" || mL < 0)
1141
+ throw new TypeError("max must be a non-negative number");
1142
+ this[MAX] = mL || Infinity;
1143
+ trim(this);
1144
+ }
1145
+ get max() {
1146
+ return this[MAX];
1147
+ }
1148
+ set allowStale(allowStale) {
1149
+ this[ALLOW_STALE] = !!allowStale;
1150
+ }
1151
+ get allowStale() {
1152
+ return this[ALLOW_STALE];
1153
+ }
1154
+ set maxAge(mA) {
1155
+ if (typeof mA !== "number")
1156
+ throw new TypeError("maxAge must be a non-negative number");
1157
+ this[MAX_AGE] = mA;
1158
+ trim(this);
1159
+ }
1160
+ get maxAge() {
1161
+ return this[MAX_AGE];
1162
+ }
1163
+ set lengthCalculator(lC) {
1164
+ if (typeof lC !== "function")
1165
+ lC = naiveLength;
1166
+ if (lC !== this[LENGTH_CALCULATOR]) {
1167
+ this[LENGTH_CALCULATOR] = lC;
1168
+ this[LENGTH] = 0;
1169
+ this[LRU_LIST].forEach((hit) => {
1170
+ hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key);
1171
+ this[LENGTH] += hit.length;
1172
+ });
1173
+ }
1174
+ trim(this);
1175
+ }
1176
+ get lengthCalculator() {
1177
+ return this[LENGTH_CALCULATOR];
1178
+ }
1179
+ get length() {
1180
+ return this[LENGTH];
1181
+ }
1182
+ get itemCount() {
1183
+ return this[LRU_LIST].length;
1184
+ }
1185
+ rforEach(fn, thisp) {
1186
+ thisp = thisp || this;
1187
+ for (let walker = this[LRU_LIST].tail; walker !== null; ) {
1188
+ const prev = walker.prev;
1189
+ forEachStep(this, fn, walker, thisp);
1190
+ walker = prev;
1191
+ }
1192
+ }
1193
+ forEach(fn, thisp) {
1194
+ thisp = thisp || this;
1195
+ for (let walker = this[LRU_LIST].head; walker !== null; ) {
1196
+ const next = walker.next;
1197
+ forEachStep(this, fn, walker, thisp);
1198
+ walker = next;
1199
+ }
1200
+ }
1201
+ keys() {
1202
+ return this[LRU_LIST].toArray().map((k) => k.key);
1203
+ }
1204
+ values() {
1205
+ return this[LRU_LIST].toArray().map((k) => k.value);
1206
+ }
1207
+ reset() {
1208
+ if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) {
1209
+ this[LRU_LIST].forEach((hit) => this[DISPOSE](hit.key, hit.value));
1210
+ }
1211
+ this[CACHE] = /* @__PURE__ */ new Map();
1212
+ this[LRU_LIST] = new Yallist();
1213
+ this[LENGTH] = 0;
1214
+ }
1215
+ dump() {
1216
+ return this[LRU_LIST].map((hit) => isStale(this, hit) ? false : {
1217
+ k: hit.key,
1218
+ v: hit.value,
1219
+ e: hit.now + (hit.maxAge || 0)
1220
+ }).toArray().filter((h) => h);
1221
+ }
1222
+ dumpLru() {
1223
+ return this[LRU_LIST];
1224
+ }
1225
+ set(key, value, maxAge) {
1226
+ maxAge = maxAge || this[MAX_AGE];
1227
+ if (maxAge && typeof maxAge !== "number")
1228
+ throw new TypeError("maxAge must be a number");
1229
+ const now = maxAge ? Date.now() : 0;
1230
+ const len = this[LENGTH_CALCULATOR](value, key);
1231
+ if (this[CACHE].has(key)) {
1232
+ if (len > this[MAX]) {
1233
+ del(this, this[CACHE].get(key));
1234
+ return false;
1235
+ }
1236
+ const node = this[CACHE].get(key);
1237
+ const item = node.value;
1238
+ if (this[DISPOSE]) {
1239
+ if (!this[NO_DISPOSE_ON_SET])
1240
+ this[DISPOSE](key, item.value);
1241
+ }
1242
+ item.now = now;
1243
+ item.maxAge = maxAge;
1244
+ item.value = value;
1245
+ this[LENGTH] += len - item.length;
1246
+ item.length = len;
1247
+ this.get(key);
1248
+ trim(this);
1249
+ return true;
1250
+ }
1251
+ const hit = new Entry(key, value, len, now, maxAge);
1252
+ if (hit.length > this[MAX]) {
1253
+ if (this[DISPOSE])
1254
+ this[DISPOSE](key, value);
1255
+ return false;
1256
+ }
1257
+ this[LENGTH] += hit.length;
1258
+ this[LRU_LIST].unshift(hit);
1259
+ this[CACHE].set(key, this[LRU_LIST].head);
1260
+ trim(this);
1261
+ return true;
1262
+ }
1263
+ has(key) {
1264
+ if (!this[CACHE].has(key))
1265
+ return false;
1266
+ const hit = this[CACHE].get(key).value;
1267
+ return !isStale(this, hit);
1268
+ }
1269
+ get(key) {
1270
+ return get(this, key, true);
1271
+ }
1272
+ peek(key) {
1273
+ return get(this, key, false);
1274
+ }
1275
+ pop() {
1276
+ const node = this[LRU_LIST].tail;
1277
+ if (!node)
1278
+ return null;
1279
+ del(this, node);
1280
+ return node.value;
1281
+ }
1282
+ del(key) {
1283
+ del(this, this[CACHE].get(key));
1284
+ }
1285
+ load(arr) {
1286
+ this.reset();
1287
+ const now = Date.now();
1288
+ for (let l = arr.length - 1; l >= 0; l--) {
1289
+ const hit = arr[l];
1290
+ const expiresAt = hit.e || 0;
1291
+ if (expiresAt === 0)
1292
+ this.set(hit.k, hit.v);
1293
+ else {
1294
+ const maxAge = expiresAt - now;
1295
+ if (maxAge > 0) {
1296
+ this.set(hit.k, hit.v, maxAge);
1297
+ }
1298
+ }
1299
+ }
1300
+ }
1301
+ prune() {
1302
+ this[CACHE].forEach((value, key) => get(this, key, false));
1303
+ }
1304
+ };
1305
+ var get = (self, key, doUse) => {
1306
+ const node = self[CACHE].get(key);
1307
+ if (node) {
1308
+ const hit = node.value;
1309
+ if (isStale(self, hit)) {
1310
+ del(self, node);
1311
+ if (!self[ALLOW_STALE])
1312
+ return void 0;
1313
+ } else {
1314
+ if (doUse) {
1315
+ if (self[UPDATE_AGE_ON_GET])
1316
+ node.value.now = Date.now();
1317
+ self[LRU_LIST].unshiftNode(node);
1318
+ }
1319
+ }
1320
+ return hit.value;
1321
+ }
1322
+ };
1323
+ var isStale = (self, hit) => {
1324
+ if (!hit || !hit.maxAge && !self[MAX_AGE])
1325
+ return false;
1326
+ const diff = Date.now() - hit.now;
1327
+ return hit.maxAge ? diff > hit.maxAge : self[MAX_AGE] && diff > self[MAX_AGE];
1328
+ };
1329
+ var trim = (self) => {
1330
+ if (self[LENGTH] > self[MAX]) {
1331
+ for (let walker = self[LRU_LIST].tail; self[LENGTH] > self[MAX] && walker !== null; ) {
1332
+ const prev = walker.prev;
1333
+ del(self, walker);
1334
+ walker = prev;
1335
+ }
1336
+ }
1337
+ };
1338
+ var del = (self, node) => {
1339
+ if (node) {
1340
+ const hit = node.value;
1341
+ if (self[DISPOSE])
1342
+ self[DISPOSE](hit.key, hit.value);
1343
+ self[LENGTH] -= hit.length;
1344
+ self[CACHE].delete(hit.key);
1345
+ self[LRU_LIST].removeNode(node);
1346
+ }
1347
+ };
1348
+ var Entry = class {
1349
+ constructor(key, value, length, now, maxAge) {
1350
+ this.key = key;
1351
+ this.value = value;
1352
+ this.length = length;
1353
+ this.now = now;
1354
+ this.maxAge = maxAge || 0;
1355
+ }
1356
+ };
1357
+ var forEachStep = (self, fn, node, thisp) => {
1358
+ let hit = node.value;
1359
+ if (isStale(self, hit)) {
1360
+ del(self, node);
1361
+ if (!self[ALLOW_STALE])
1362
+ hit = void 0;
1363
+ }
1364
+ if (hit)
1365
+ fn.call(thisp, hit.value, hit.key, self);
1366
+ };
1367
+ module2.exports = LRUCache;
1368
+ }
1369
+ });
1370
+
1371
+ // node_modules/semver/classes/range.js
1372
+ var require_range = __commonJS({
1373
+ "node_modules/semver/classes/range.js"(exports, module2) {
1374
+ var Range = class {
1375
+ constructor(range, options) {
1376
+ options = parseOptions2(options);
1377
+ if (range instanceof Range) {
1378
+ if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) {
1379
+ return range;
1380
+ } else {
1381
+ return new Range(range.raw, options);
1382
+ }
1383
+ }
1384
+ if (range instanceof Comparator) {
1385
+ this.raw = range.value;
1386
+ this.set = [[range]];
1387
+ this.format();
1388
+ return this;
1389
+ }
1390
+ this.options = options;
1391
+ this.loose = !!options.loose;
1392
+ this.includePrerelease = !!options.includePrerelease;
1393
+ this.raw = range;
1394
+ this.set = range.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
1395
+ if (!this.set.length) {
1396
+ throw new TypeError(`Invalid SemVer Range: ${range}`);
1397
+ }
1398
+ if (this.set.length > 1) {
1399
+ const first = this.set[0];
1400
+ this.set = this.set.filter((c) => !isNullSet(c[0]));
1401
+ if (this.set.length === 0) {
1402
+ this.set = [first];
1403
+ } else if (this.set.length > 1) {
1404
+ for (const c of this.set) {
1405
+ if (c.length === 1 && isAny(c[0])) {
1406
+ this.set = [c];
1407
+ break;
1408
+ }
1409
+ }
1410
+ }
1411
+ }
1412
+ this.format();
1413
+ }
1414
+ format() {
1415
+ this.range = this.set.map((comps) => {
1416
+ return comps.join(" ").trim();
1417
+ }).join("||").trim();
1418
+ return this.range;
1419
+ }
1420
+ toString() {
1421
+ return this.range;
1422
+ }
1423
+ parseRange(range) {
1424
+ range = range.trim();
1425
+ const memoOpts = Object.keys(this.options).join(",");
1426
+ const memoKey = `parseRange:${memoOpts}:${range}`;
1427
+ const cached = cache.get(memoKey);
1428
+ if (cached) {
1429
+ return cached;
1430
+ }
1431
+ const loose = this.options.loose;
1432
+ const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
1433
+ range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
1434
+ debug("hyphen replace", range);
1435
+ range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
1436
+ debug("comparator trim", range);
1437
+ range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
1438
+ range = range.replace(re[t.CARETTRIM], caretTrimReplace);
1439
+ range = range.split(/\s+/).join(" ");
1440
+ let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
1441
+ if (loose) {
1442
+ rangeList = rangeList.filter((comp) => {
1443
+ debug("loose invalid filter", comp, this.options);
1444
+ return !!comp.match(re[t.COMPARATORLOOSE]);
1445
+ });
1446
+ }
1447
+ debug("range list", rangeList);
1448
+ const rangeMap = /* @__PURE__ */ new Map();
1449
+ const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
1450
+ for (const comp of comparators) {
1451
+ if (isNullSet(comp)) {
1452
+ return [comp];
1453
+ }
1454
+ rangeMap.set(comp.value, comp);
1455
+ }
1456
+ if (rangeMap.size > 1 && rangeMap.has("")) {
1457
+ rangeMap.delete("");
1458
+ }
1459
+ const result = [...rangeMap.values()];
1460
+ cache.set(memoKey, result);
1461
+ return result;
1462
+ }
1463
+ intersects(range, options) {
1464
+ if (!(range instanceof Range)) {
1465
+ throw new TypeError("a Range is required");
1466
+ }
1467
+ return this.set.some((thisComparators) => {
1468
+ return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
1469
+ return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
1470
+ return rangeComparators.every((rangeComparator) => {
1471
+ return thisComparator.intersects(rangeComparator, options);
1472
+ });
1473
+ });
1474
+ });
1475
+ });
1476
+ }
1477
+ test(version) {
1478
+ if (!version) {
1479
+ return false;
1480
+ }
1481
+ if (typeof version === "string") {
1482
+ try {
1483
+ version = new SemVer(version, this.options);
1484
+ } catch (er) {
1485
+ return false;
1486
+ }
1487
+ }
1488
+ for (let i = 0; i < this.set.length; i++) {
1489
+ if (testSet(this.set[i], version, this.options)) {
1490
+ return true;
1491
+ }
1492
+ }
1493
+ return false;
1494
+ }
1495
+ };
1496
+ module2.exports = Range;
1497
+ var LRU = require_lru_cache();
1498
+ var cache = new LRU({ max: 1e3 });
1499
+ var parseOptions2 = require_parse_options();
1500
+ var Comparator = require_comparator();
1501
+ var debug = require_debug();
1502
+ var SemVer = require_semver();
1503
+ var {
1504
+ re,
1505
+ t,
1506
+ comparatorTrimReplace,
1507
+ tildeTrimReplace,
1508
+ caretTrimReplace
1509
+ } = require_re();
1510
+ var isNullSet = (c) => c.value === "<0.0.0-0";
1511
+ var isAny = (c) => c.value === "";
1512
+ var isSatisfiable = (comparators, options) => {
1513
+ let result = true;
1514
+ const remainingComparators = comparators.slice();
1515
+ let testComparator = remainingComparators.pop();
1516
+ while (result && remainingComparators.length) {
1517
+ result = remainingComparators.every((otherComparator) => {
1518
+ return testComparator.intersects(otherComparator, options);
1519
+ });
1520
+ testComparator = remainingComparators.pop();
1521
+ }
1522
+ return result;
1523
+ };
1524
+ var parseComparator = (comp, options) => {
1525
+ debug("comp", comp, options);
1526
+ comp = replaceCarets(comp, options);
1527
+ debug("caret", comp);
1528
+ comp = replaceTildes(comp, options);
1529
+ debug("tildes", comp);
1530
+ comp = replaceXRanges(comp, options);
1531
+ debug("xrange", comp);
1532
+ comp = replaceStars(comp, options);
1533
+ debug("stars", comp);
1534
+ return comp;
1535
+ };
1536
+ var isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
1537
+ var replaceTildes = (comp, options) => comp.trim().split(/\s+/).map((c) => {
1538
+ return replaceTilde(c, options);
1539
+ }).join(" ");
1540
+ var replaceTilde = (comp, options) => {
1541
+ const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
1542
+ return comp.replace(r, (_, M, m, p, pr) => {
1543
+ debug("tilde", comp, _, M, m, p, pr);
1544
+ let ret;
1545
+ if (isX(M)) {
1546
+ ret = "";
1547
+ } else if (isX(m)) {
1548
+ ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
1549
+ } else if (isX(p)) {
1550
+ ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
1551
+ } else if (pr) {
1552
+ debug("replaceTilde pr", pr);
1553
+ ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
1554
+ } else {
1555
+ ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
1556
+ }
1557
+ debug("tilde return", ret);
1558
+ return ret;
1559
+ });
1560
+ };
1561
+ var replaceCarets = (comp, options) => comp.trim().split(/\s+/).map((c) => {
1562
+ return replaceCaret(c, options);
1563
+ }).join(" ");
1564
+ var replaceCaret = (comp, options) => {
1565
+ debug("caret", comp, options);
1566
+ const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
1567
+ const z = options.includePrerelease ? "-0" : "";
1568
+ return comp.replace(r, (_, M, m, p, pr) => {
1569
+ debug("caret", comp, _, M, m, p, pr);
1570
+ let ret;
1571
+ if (isX(M)) {
1572
+ ret = "";
1573
+ } else if (isX(m)) {
1574
+ ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
1575
+ } else if (isX(p)) {
1576
+ if (M === "0") {
1577
+ ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
1578
+ } else {
1579
+ ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
1580
+ }
1581
+ } else if (pr) {
1582
+ debug("replaceCaret pr", pr);
1583
+ if (M === "0") {
1584
+ if (m === "0") {
1585
+ ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
1586
+ } else {
1587
+ ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
1588
+ }
1589
+ } else {
1590
+ ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
1591
+ }
1592
+ } else {
1593
+ debug("no pr");
1594
+ if (M === "0") {
1595
+ if (m === "0") {
1596
+ ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
1597
+ } else {
1598
+ ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
1599
+ }
1600
+ } else {
1601
+ ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
1602
+ }
1603
+ }
1604
+ debug("caret return", ret);
1605
+ return ret;
1606
+ });
1607
+ };
1608
+ var replaceXRanges = (comp, options) => {
1609
+ debug("replaceXRanges", comp, options);
1610
+ return comp.split(/\s+/).map((c) => {
1611
+ return replaceXRange(c, options);
1612
+ }).join(" ");
1613
+ };
1614
+ var replaceXRange = (comp, options) => {
1615
+ comp = comp.trim();
1616
+ const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
1617
+ return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
1618
+ debug("xRange", comp, ret, gtlt, M, m, p, pr);
1619
+ const xM = isX(M);
1620
+ const xm = xM || isX(m);
1621
+ const xp = xm || isX(p);
1622
+ const anyX = xp;
1623
+ if (gtlt === "=" && anyX) {
1624
+ gtlt = "";
1625
+ }
1626
+ pr = options.includePrerelease ? "-0" : "";
1627
+ if (xM) {
1628
+ if (gtlt === ">" || gtlt === "<") {
1629
+ ret = "<0.0.0-0";
1630
+ } else {
1631
+ ret = "*";
1632
+ }
1633
+ } else if (gtlt && anyX) {
1634
+ if (xm) {
1635
+ m = 0;
1636
+ }
1637
+ p = 0;
1638
+ if (gtlt === ">") {
1639
+ gtlt = ">=";
1640
+ if (xm) {
1641
+ M = +M + 1;
1642
+ m = 0;
1643
+ p = 0;
1644
+ } else {
1645
+ m = +m + 1;
1646
+ p = 0;
1647
+ }
1648
+ } else if (gtlt === "<=") {
1649
+ gtlt = "<";
1650
+ if (xm) {
1651
+ M = +M + 1;
1652
+ } else {
1653
+ m = +m + 1;
1654
+ }
1655
+ }
1656
+ if (gtlt === "<") {
1657
+ pr = "-0";
1658
+ }
1659
+ ret = `${gtlt + M}.${m}.${p}${pr}`;
1660
+ } else if (xm) {
1661
+ ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
1662
+ } else if (xp) {
1663
+ ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
1664
+ }
1665
+ debug("xRange return", ret);
1666
+ return ret;
1667
+ });
1668
+ };
1669
+ var replaceStars = (comp, options) => {
1670
+ debug("replaceStars", comp, options);
1671
+ return comp.trim().replace(re[t.STAR], "");
1672
+ };
1673
+ var replaceGTE0 = (comp, options) => {
1674
+ debug("replaceGTE0", comp, options);
1675
+ return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
1676
+ };
1677
+ var hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) => {
1678
+ if (isX(fM)) {
1679
+ from = "";
1680
+ } else if (isX(fm)) {
1681
+ from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
1682
+ } else if (isX(fp)) {
1683
+ from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
1684
+ } else if (fpr) {
1685
+ from = `>=${from}`;
1686
+ } else {
1687
+ from = `>=${from}${incPr ? "-0" : ""}`;
1688
+ }
1689
+ if (isX(tM)) {
1690
+ to = "";
1691
+ } else if (isX(tm)) {
1692
+ to = `<${+tM + 1}.0.0-0`;
1693
+ } else if (isX(tp)) {
1694
+ to = `<${tM}.${+tm + 1}.0-0`;
1695
+ } else if (tpr) {
1696
+ to = `<=${tM}.${tm}.${tp}-${tpr}`;
1697
+ } else if (incPr) {
1698
+ to = `<${tM}.${tm}.${+tp + 1}-0`;
1699
+ } else {
1700
+ to = `<=${to}`;
1701
+ }
1702
+ return `${from} ${to}`.trim();
1703
+ };
1704
+ var testSet = (set, version, options) => {
1705
+ for (let i = 0; i < set.length; i++) {
1706
+ if (!set[i].test(version)) {
1707
+ return false;
1708
+ }
1709
+ }
1710
+ if (version.prerelease.length && !options.includePrerelease) {
1711
+ for (let i = 0; i < set.length; i++) {
1712
+ debug(set[i].semver);
1713
+ if (set[i].semver === Comparator.ANY) {
1714
+ continue;
1715
+ }
1716
+ if (set[i].semver.prerelease.length > 0) {
1717
+ const allowed = set[i].semver;
1718
+ if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) {
1719
+ return true;
1720
+ }
1721
+ }
1722
+ }
1723
+ return false;
1724
+ }
1725
+ return true;
1726
+ };
1727
+ }
1728
+ });
1729
+
1730
+ // node_modules/semver/classes/comparator.js
1731
+ var require_comparator = __commonJS({
1732
+ "node_modules/semver/classes/comparator.js"(exports, module2) {
1733
+ var ANY = Symbol("SemVer ANY");
1734
+ var Comparator = class {
1735
+ static get ANY() {
1736
+ return ANY;
1737
+ }
1738
+ constructor(comp, options) {
1739
+ options = parseOptions2(options);
1740
+ if (comp instanceof Comparator) {
1741
+ if (comp.loose === !!options.loose) {
1742
+ return comp;
1743
+ } else {
1744
+ comp = comp.value;
1745
+ }
1746
+ }
1747
+ debug("comparator", comp, options);
1748
+ this.options = options;
1749
+ this.loose = !!options.loose;
1750
+ this.parse(comp);
1751
+ if (this.semver === ANY) {
1752
+ this.value = "";
1753
+ } else {
1754
+ this.value = this.operator + this.semver.version;
1755
+ }
1756
+ debug("comp", this);
1757
+ }
1758
+ parse(comp) {
1759
+ const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
1760
+ const m = comp.match(r);
1761
+ if (!m) {
1762
+ throw new TypeError(`Invalid comparator: ${comp}`);
1763
+ }
1764
+ this.operator = m[1] !== void 0 ? m[1] : "";
1765
+ if (this.operator === "=") {
1766
+ this.operator = "";
1767
+ }
1768
+ if (!m[2]) {
1769
+ this.semver = ANY;
1770
+ } else {
1771
+ this.semver = new SemVer(m[2], this.options.loose);
1772
+ }
1773
+ }
1774
+ toString() {
1775
+ return this.value;
1776
+ }
1777
+ test(version) {
1778
+ debug("Comparator.test", version, this.options.loose);
1779
+ if (this.semver === ANY || version === ANY) {
1780
+ return true;
1781
+ }
1782
+ if (typeof version === "string") {
1783
+ try {
1784
+ version = new SemVer(version, this.options);
1785
+ } catch (er) {
1786
+ return false;
1787
+ }
1788
+ }
1789
+ return cmp(version, this.operator, this.semver, this.options);
1790
+ }
1791
+ intersects(comp, options) {
1792
+ if (!(comp instanceof Comparator)) {
1793
+ throw new TypeError("a Comparator is required");
1794
+ }
1795
+ if (!options || typeof options !== "object") {
1796
+ options = {
1797
+ loose: !!options,
1798
+ includePrerelease: false
1799
+ };
1800
+ }
1801
+ if (this.operator === "") {
1802
+ if (this.value === "") {
1803
+ return true;
1804
+ }
1805
+ return new Range(comp.value, options).test(this.value);
1806
+ } else if (comp.operator === "") {
1807
+ if (comp.value === "") {
1808
+ return true;
1809
+ }
1810
+ return new Range(this.value, options).test(comp.semver);
1811
+ }
1812
+ const sameDirectionIncreasing = (this.operator === ">=" || this.operator === ">") && (comp.operator === ">=" || comp.operator === ">");
1813
+ const sameDirectionDecreasing = (this.operator === "<=" || this.operator === "<") && (comp.operator === "<=" || comp.operator === "<");
1814
+ const sameSemVer = this.semver.version === comp.semver.version;
1815
+ const differentDirectionsInclusive = (this.operator === ">=" || this.operator === "<=") && (comp.operator === ">=" || comp.operator === "<=");
1816
+ const oppositeDirectionsLessThan = cmp(this.semver, "<", comp.semver, options) && (this.operator === ">=" || this.operator === ">") && (comp.operator === "<=" || comp.operator === "<");
1817
+ const oppositeDirectionsGreaterThan = cmp(this.semver, ">", comp.semver, options) && (this.operator === "<=" || this.operator === "<") && (comp.operator === ">=" || comp.operator === ">");
1818
+ return sameDirectionIncreasing || sameDirectionDecreasing || sameSemVer && differentDirectionsInclusive || oppositeDirectionsLessThan || oppositeDirectionsGreaterThan;
1819
+ }
1820
+ };
1821
+ module2.exports = Comparator;
1822
+ var parseOptions2 = require_parse_options();
1823
+ var { re, t } = require_re();
1824
+ var cmp = require_cmp();
1825
+ var debug = require_debug();
1826
+ var SemVer = require_semver();
1827
+ var Range = require_range();
1828
+ }
1829
+ });
1830
+
1831
+ // node_modules/semver/functions/satisfies.js
1832
+ var require_satisfies = __commonJS({
1833
+ "node_modules/semver/functions/satisfies.js"(exports, module2) {
1834
+ var Range = require_range();
1835
+ var satisfies = (version, range, options) => {
1836
+ try {
1837
+ range = new Range(range, options);
1838
+ } catch (er) {
1839
+ return false;
1840
+ }
1841
+ return range.test(version);
1842
+ };
1843
+ module2.exports = satisfies;
1844
+ }
1845
+ });
1846
+
1847
+ // node_modules/semver/ranges/to-comparators.js
1848
+ var require_to_comparators = __commonJS({
1849
+ "node_modules/semver/ranges/to-comparators.js"(exports, module2) {
1850
+ var Range = require_range();
1851
+ var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
1852
+ module2.exports = toComparators;
1853
+ }
1854
+ });
1855
+
1856
+ // node_modules/semver/ranges/max-satisfying.js
1857
+ var require_max_satisfying = __commonJS({
1858
+ "node_modules/semver/ranges/max-satisfying.js"(exports, module2) {
1859
+ var SemVer = require_semver();
1860
+ var Range = require_range();
1861
+ var maxSatisfying = (versions, range, options) => {
1862
+ let max = null;
1863
+ let maxSV = null;
1864
+ let rangeObj = null;
1865
+ try {
1866
+ rangeObj = new Range(range, options);
1867
+ } catch (er) {
1868
+ return null;
1869
+ }
1870
+ versions.forEach((v) => {
1871
+ if (rangeObj.test(v)) {
1872
+ if (!max || maxSV.compare(v) === -1) {
1873
+ max = v;
1874
+ maxSV = new SemVer(max, options);
1875
+ }
1876
+ }
1877
+ });
1878
+ return max;
1879
+ };
1880
+ module2.exports = maxSatisfying;
1881
+ }
1882
+ });
1883
+
1884
+ // node_modules/semver/ranges/min-satisfying.js
1885
+ var require_min_satisfying = __commonJS({
1886
+ "node_modules/semver/ranges/min-satisfying.js"(exports, module2) {
1887
+ var SemVer = require_semver();
1888
+ var Range = require_range();
1889
+ var minSatisfying = (versions, range, options) => {
1890
+ let min = null;
1891
+ let minSV = null;
1892
+ let rangeObj = null;
1893
+ try {
1894
+ rangeObj = new Range(range, options);
1895
+ } catch (er) {
1896
+ return null;
1897
+ }
1898
+ versions.forEach((v) => {
1899
+ if (rangeObj.test(v)) {
1900
+ if (!min || minSV.compare(v) === 1) {
1901
+ min = v;
1902
+ minSV = new SemVer(min, options);
1903
+ }
1904
+ }
1905
+ });
1906
+ return min;
1907
+ };
1908
+ module2.exports = minSatisfying;
1909
+ }
1910
+ });
1911
+
1912
+ // node_modules/semver/ranges/min-version.js
1913
+ var require_min_version = __commonJS({
1914
+ "node_modules/semver/ranges/min-version.js"(exports, module2) {
1915
+ var SemVer = require_semver();
1916
+ var Range = require_range();
1917
+ var gt = require_gt();
1918
+ var minVersion = (range, loose) => {
1919
+ range = new Range(range, loose);
1920
+ let minver = new SemVer("0.0.0");
1921
+ if (range.test(minver)) {
1922
+ return minver;
1923
+ }
1924
+ minver = new SemVer("0.0.0-0");
1925
+ if (range.test(minver)) {
1926
+ return minver;
1927
+ }
1928
+ minver = null;
1929
+ for (let i = 0; i < range.set.length; ++i) {
1930
+ const comparators = range.set[i];
1931
+ let setMin = null;
1932
+ comparators.forEach((comparator) => {
1933
+ const compver = new SemVer(comparator.semver.version);
1934
+ switch (comparator.operator) {
1935
+ case ">":
1936
+ if (compver.prerelease.length === 0) {
1937
+ compver.patch++;
1938
+ } else {
1939
+ compver.prerelease.push(0);
1940
+ }
1941
+ compver.raw = compver.format();
1942
+ case "":
1943
+ case ">=":
1944
+ if (!setMin || gt(compver, setMin)) {
1945
+ setMin = compver;
1946
+ }
1947
+ break;
1948
+ case "<":
1949
+ case "<=":
1950
+ break;
1951
+ default:
1952
+ throw new Error(`Unexpected operation: ${comparator.operator}`);
1953
+ }
1954
+ });
1955
+ if (setMin && (!minver || gt(minver, setMin))) {
1956
+ minver = setMin;
1957
+ }
1958
+ }
1959
+ if (minver && range.test(minver)) {
1960
+ return minver;
1961
+ }
1962
+ return null;
1963
+ };
1964
+ module2.exports = minVersion;
1965
+ }
1966
+ });
1967
+
1968
+ // node_modules/semver/ranges/valid.js
1969
+ var require_valid2 = __commonJS({
1970
+ "node_modules/semver/ranges/valid.js"(exports, module2) {
1971
+ var Range = require_range();
1972
+ var validRange = (range, options) => {
1973
+ try {
1974
+ return new Range(range, options).range || "*";
1975
+ } catch (er) {
1976
+ return null;
1977
+ }
1978
+ };
1979
+ module2.exports = validRange;
1980
+ }
1981
+ });
1982
+
1983
+ // node_modules/semver/ranges/outside.js
1984
+ var require_outside = __commonJS({
1985
+ "node_modules/semver/ranges/outside.js"(exports, module2) {
1986
+ var SemVer = require_semver();
1987
+ var Comparator = require_comparator();
1988
+ var { ANY } = Comparator;
1989
+ var Range = require_range();
1990
+ var satisfies = require_satisfies();
1991
+ var gt = require_gt();
1992
+ var lt = require_lt();
1993
+ var lte = require_lte();
1994
+ var gte = require_gte();
1995
+ var outside = (version, range, hilo, options) => {
1996
+ version = new SemVer(version, options);
1997
+ range = new Range(range, options);
1998
+ let gtfn, ltefn, ltfn, comp, ecomp;
1999
+ switch (hilo) {
2000
+ case ">":
2001
+ gtfn = gt;
2002
+ ltefn = lte;
2003
+ ltfn = lt;
2004
+ comp = ">";
2005
+ ecomp = ">=";
2006
+ break;
2007
+ case "<":
2008
+ gtfn = lt;
2009
+ ltefn = gte;
2010
+ ltfn = gt;
2011
+ comp = "<";
2012
+ ecomp = "<=";
2013
+ break;
2014
+ default:
2015
+ throw new TypeError('Must provide a hilo val of "<" or ">"');
2016
+ }
2017
+ if (satisfies(version, range, options)) {
2018
+ return false;
2019
+ }
2020
+ for (let i = 0; i < range.set.length; ++i) {
2021
+ const comparators = range.set[i];
2022
+ let high = null;
2023
+ let low = null;
2024
+ comparators.forEach((comparator) => {
2025
+ if (comparator.semver === ANY) {
2026
+ comparator = new Comparator(">=0.0.0");
2027
+ }
2028
+ high = high || comparator;
2029
+ low = low || comparator;
2030
+ if (gtfn(comparator.semver, high.semver, options)) {
2031
+ high = comparator;
2032
+ } else if (ltfn(comparator.semver, low.semver, options)) {
2033
+ low = comparator;
2034
+ }
2035
+ });
2036
+ if (high.operator === comp || high.operator === ecomp) {
2037
+ return false;
2038
+ }
2039
+ if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) {
2040
+ return false;
2041
+ } else if (low.operator === ecomp && ltfn(version, low.semver)) {
2042
+ return false;
2043
+ }
2044
+ }
2045
+ return true;
2046
+ };
2047
+ module2.exports = outside;
2048
+ }
2049
+ });
2050
+
2051
+ // node_modules/semver/ranges/gtr.js
2052
+ var require_gtr = __commonJS({
2053
+ "node_modules/semver/ranges/gtr.js"(exports, module2) {
2054
+ var outside = require_outside();
2055
+ var gtr = (version, range, options) => outside(version, range, ">", options);
2056
+ module2.exports = gtr;
2057
+ }
2058
+ });
2059
+
2060
+ // node_modules/semver/ranges/ltr.js
2061
+ var require_ltr = __commonJS({
2062
+ "node_modules/semver/ranges/ltr.js"(exports, module2) {
2063
+ var outside = require_outside();
2064
+ var ltr = (version, range, options) => outside(version, range, "<", options);
2065
+ module2.exports = ltr;
2066
+ }
2067
+ });
2068
+
2069
+ // node_modules/semver/ranges/intersects.js
2070
+ var require_intersects = __commonJS({
2071
+ "node_modules/semver/ranges/intersects.js"(exports, module2) {
2072
+ var Range = require_range();
2073
+ var intersects = (r1, r2, options) => {
2074
+ r1 = new Range(r1, options);
2075
+ r2 = new Range(r2, options);
2076
+ return r1.intersects(r2);
2077
+ };
2078
+ module2.exports = intersects;
2079
+ }
2080
+ });
2081
+
2082
+ // node_modules/semver/ranges/simplify.js
2083
+ var require_simplify = __commonJS({
2084
+ "node_modules/semver/ranges/simplify.js"(exports, module2) {
2085
+ var satisfies = require_satisfies();
2086
+ var compare = require_compare();
2087
+ module2.exports = (versions, range, options) => {
2088
+ const set = [];
2089
+ let first = null;
2090
+ let prev = null;
2091
+ const v = versions.sort((a, b) => compare(a, b, options));
2092
+ for (const version of v) {
2093
+ const included = satisfies(version, range, options);
2094
+ if (included) {
2095
+ prev = version;
2096
+ if (!first) {
2097
+ first = version;
2098
+ }
2099
+ } else {
2100
+ if (prev) {
2101
+ set.push([first, prev]);
2102
+ }
2103
+ prev = null;
2104
+ first = null;
2105
+ }
2106
+ }
2107
+ if (first) {
2108
+ set.push([first, null]);
2109
+ }
2110
+ const ranges = [];
2111
+ for (const [min, max] of set) {
2112
+ if (min === max) {
2113
+ ranges.push(min);
2114
+ } else if (!max && min === v[0]) {
2115
+ ranges.push("*");
2116
+ } else if (!max) {
2117
+ ranges.push(`>=${min}`);
2118
+ } else if (min === v[0]) {
2119
+ ranges.push(`<=${max}`);
2120
+ } else {
2121
+ ranges.push(`${min} - ${max}`);
2122
+ }
2123
+ }
2124
+ const simplified = ranges.join(" || ");
2125
+ const original = typeof range.raw === "string" ? range.raw : String(range);
2126
+ return simplified.length < original.length ? simplified : range;
2127
+ };
2128
+ }
2129
+ });
2130
+
2131
+ // node_modules/semver/ranges/subset.js
2132
+ var require_subset = __commonJS({
2133
+ "node_modules/semver/ranges/subset.js"(exports, module2) {
2134
+ var Range = require_range();
2135
+ var Comparator = require_comparator();
2136
+ var { ANY } = Comparator;
2137
+ var satisfies = require_satisfies();
2138
+ var compare = require_compare();
2139
+ var subset = (sub, dom, options = {}) => {
2140
+ if (sub === dom) {
2141
+ return true;
2142
+ }
2143
+ sub = new Range(sub, options);
2144
+ dom = new Range(dom, options);
2145
+ let sawNonNull = false;
2146
+ OUTER:
2147
+ for (const simpleSub of sub.set) {
2148
+ for (const simpleDom of dom.set) {
2149
+ const isSub = simpleSubset(simpleSub, simpleDom, options);
2150
+ sawNonNull = sawNonNull || isSub !== null;
2151
+ if (isSub) {
2152
+ continue OUTER;
2153
+ }
2154
+ }
2155
+ if (sawNonNull) {
2156
+ return false;
2157
+ }
2158
+ }
2159
+ return true;
2160
+ };
2161
+ var simpleSubset = (sub, dom, options) => {
2162
+ if (sub === dom) {
2163
+ return true;
2164
+ }
2165
+ if (sub.length === 1 && sub[0].semver === ANY) {
2166
+ if (dom.length === 1 && dom[0].semver === ANY) {
2167
+ return true;
2168
+ } else if (options.includePrerelease) {
2169
+ sub = [new Comparator(">=0.0.0-0")];
2170
+ } else {
2171
+ sub = [new Comparator(">=0.0.0")];
2172
+ }
2173
+ }
2174
+ if (dom.length === 1 && dom[0].semver === ANY) {
2175
+ if (options.includePrerelease) {
2176
+ return true;
2177
+ } else {
2178
+ dom = [new Comparator(">=0.0.0")];
2179
+ }
2180
+ }
2181
+ const eqSet = /* @__PURE__ */ new Set();
2182
+ let gt, lt;
2183
+ for (const c of sub) {
2184
+ if (c.operator === ">" || c.operator === ">=") {
2185
+ gt = higherGT(gt, c, options);
2186
+ } else if (c.operator === "<" || c.operator === "<=") {
2187
+ lt = lowerLT(lt, c, options);
2188
+ } else {
2189
+ eqSet.add(c.semver);
2190
+ }
2191
+ }
2192
+ if (eqSet.size > 1) {
2193
+ return null;
2194
+ }
2195
+ let gtltComp;
2196
+ if (gt && lt) {
2197
+ gtltComp = compare(gt.semver, lt.semver, options);
2198
+ if (gtltComp > 0) {
2199
+ return null;
2200
+ } else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
2201
+ return null;
2202
+ }
2203
+ }
2204
+ for (const eq of eqSet) {
2205
+ if (gt && !satisfies(eq, String(gt), options)) {
2206
+ return null;
2207
+ }
2208
+ if (lt && !satisfies(eq, String(lt), options)) {
2209
+ return null;
2210
+ }
2211
+ for (const c of dom) {
2212
+ if (!satisfies(eq, String(c), options)) {
2213
+ return false;
2214
+ }
2215
+ }
2216
+ return true;
2217
+ }
2218
+ let higher, lower;
2219
+ let hasDomLT, hasDomGT;
2220
+ let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
2221
+ let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
2222
+ if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) {
2223
+ needDomLTPre = false;
2224
+ }
2225
+ for (const c of dom) {
2226
+ hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
2227
+ hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
2228
+ if (gt) {
2229
+ if (needDomGTPre) {
2230
+ if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) {
2231
+ needDomGTPre = false;
2232
+ }
2233
+ }
2234
+ if (c.operator === ">" || c.operator === ">=") {
2235
+ higher = higherGT(gt, c, options);
2236
+ if (higher === c && higher !== gt) {
2237
+ return false;
2238
+ }
2239
+ } else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) {
2240
+ return false;
2241
+ }
2242
+ }
2243
+ if (lt) {
2244
+ if (needDomLTPre) {
2245
+ if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) {
2246
+ needDomLTPre = false;
2247
+ }
2248
+ }
2249
+ if (c.operator === "<" || c.operator === "<=") {
2250
+ lower = lowerLT(lt, c, options);
2251
+ if (lower === c && lower !== lt) {
2252
+ return false;
2253
+ }
2254
+ } else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) {
2255
+ return false;
2256
+ }
2257
+ }
2258
+ if (!c.operator && (lt || gt) && gtltComp !== 0) {
2259
+ return false;
2260
+ }
2261
+ }
2262
+ if (gt && hasDomLT && !lt && gtltComp !== 0) {
2263
+ return false;
2264
+ }
2265
+ if (lt && hasDomGT && !gt && gtltComp !== 0) {
2266
+ return false;
2267
+ }
2268
+ if (needDomGTPre || needDomLTPre) {
2269
+ return false;
2270
+ }
2271
+ return true;
2272
+ };
2273
+ var higherGT = (a, b, options) => {
2274
+ if (!a) {
2275
+ return b;
2276
+ }
2277
+ const comp = compare(a.semver, b.semver, options);
2278
+ return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
2279
+ };
2280
+ var lowerLT = (a, b, options) => {
2281
+ if (!a) {
2282
+ return b;
2283
+ }
2284
+ const comp = compare(a.semver, b.semver, options);
2285
+ return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
2286
+ };
2287
+ module2.exports = subset;
2288
+ }
2289
+ });
2290
+
2291
+ // node_modules/semver/index.js
2292
+ var require_semver2 = __commonJS({
2293
+ "node_modules/semver/index.js"(exports, module2) {
2294
+ var internalRe = require_re();
2295
+ module2.exports = {
2296
+ re: internalRe.re,
2297
+ src: internalRe.src,
2298
+ tokens: internalRe.t,
2299
+ SEMVER_SPEC_VERSION: require_constants().SEMVER_SPEC_VERSION,
2300
+ SemVer: require_semver(),
2301
+ compareIdentifiers: require_identifiers().compareIdentifiers,
2302
+ rcompareIdentifiers: require_identifiers().rcompareIdentifiers,
2303
+ parse: require_parse(),
2304
+ valid: require_valid(),
2305
+ clean: require_clean(),
2306
+ inc: require_inc(),
2307
+ diff: require_diff(),
2308
+ major: require_major(),
2309
+ minor: require_minor(),
2310
+ patch: require_patch(),
2311
+ prerelease: require_prerelease(),
2312
+ compare: require_compare(),
2313
+ rcompare: require_rcompare(),
2314
+ compareLoose: require_compare_loose(),
2315
+ compareBuild: require_compare_build(),
2316
+ sort: require_sort(),
2317
+ rsort: require_rsort(),
2318
+ gt: require_gt(),
2319
+ lt: require_lt(),
2320
+ eq: require_eq(),
2321
+ neq: require_neq(),
2322
+ gte: require_gte(),
2323
+ lte: require_lte(),
2324
+ cmp: require_cmp(),
2325
+ coerce: require_coerce(),
2326
+ Comparator: require_comparator(),
2327
+ Range: require_range(),
2328
+ satisfies: require_satisfies(),
2329
+ toComparators: require_to_comparators(),
2330
+ maxSatisfying: require_max_satisfying(),
2331
+ minSatisfying: require_min_satisfying(),
2332
+ minVersion: require_min_version(),
2333
+ validRange: require_valid2(),
2334
+ outside: require_outside(),
2335
+ gtr: require_gtr(),
2336
+ ltr: require_ltr(),
2337
+ intersects: require_intersects(),
2338
+ simplifyRange: require_simplify(),
2339
+ subset: require_subset()
2340
+ };
2341
+ }
2342
+ });
2343
+
2344
+ // src/index.js
2345
+ var src_exports = {};
2346
+ __export(src_exports, {
2347
+ Options: () => Options_default,
2348
+ Platform: () => Platform_default,
2349
+ Platforms: () => Platforms_default,
2350
+ checkCache: () => checkCache_default,
2351
+ parseOptions: () => parseOptions_default
2352
+ });
2353
+ module.exports = __toCommonJS(src_exports);
2354
+
2355
+ // src/constants/Options.js
2356
+ var Options = {
2357
+ mode: "run",
2358
+ quiet: "info",
2359
+ files: null,
2360
+ version: "latest",
2361
+ flavour: "sdk",
2362
+ cacheDir: "./cache",
2363
+ platforms: [],
2364
+ currentPlatform: null,
2365
+ mirror: "https://nwjs.io/",
2366
+ downloadUrl: "https://dl.nwjs.io",
2367
+ manifestUrl: "https://nwjs.io/versions.json",
2368
+ appName: false,
2369
+ appVersion: false,
2370
+ buildDir: "./build",
2371
+ buildType: "default",
2372
+ forceDownload: false,
2373
+ macCredits: false,
2374
+ macIcns: false,
2375
+ macZip: null,
2376
+ macPlist: false,
2377
+ winVersionString: {},
2378
+ winIco: null,
2379
+ useRcedit: false,
2380
+ argv: [],
2381
+ zip: null,
2382
+ zipOptions: null,
2383
+ mergeZip: true
2384
+ };
2385
+ var Options_default = Options;
2386
+
2387
+ // src/constants/Platform.js
2388
+ var Platform = {
2389
+ NIX_32: "linux32",
2390
+ NIX_64: "linux64",
2391
+ OSX_32: "osx32",
2392
+ OSX_64: "osx64",
2393
+ WIN_32: "win32",
2394
+ WIN_64: "win64"
2395
+ };
2396
+ Object.freeze(Platform);
2397
+ var Platform_default = Platform;
2398
+
2399
+ // src/constants/Platforms.js
2400
+ var import_semver = __toESM(require_semver2(), 1);
2401
+ var Platforms = {
2402
+ win32: {
2403
+ needsZip: true,
2404
+ getRunnable: function() {
2405
+ return "nw.exe";
2406
+ },
2407
+ files: {
2408
+ "<=0.9.2": [
2409
+ "nw.exe",
2410
+ "ffmpegsumo.dll",
2411
+ "icudt.dll",
2412
+ "libEGL.dll",
2413
+ "libGLESv2.dll",
2414
+ "nw.pak"
2415
+ ],
2416
+ ">0.9.2 <0.12.0": [
2417
+ "nw.exe",
2418
+ "ffmpegsumo.dll",
2419
+ "icudtl.dat",
2420
+ "libEGL.dll",
2421
+ "libGLESv2.dll",
2422
+ "nw.pak",
2423
+ "locales"
2424
+ ],
2425
+ ">=0.12.0": [
2426
+ "nw.exe",
2427
+ "ffmpegsumo.dll",
2428
+ "icudtl.dat",
2429
+ "libEGL.dll",
2430
+ "libGLESv2.dll",
2431
+ "nw.pak",
2432
+ "locales",
2433
+ "d3dcompiler_47.dll",
2434
+ "pdf.dll"
2435
+ ]
2436
+ },
2437
+ versionNameTemplate: "v${ version }/${ name }-v${ version }-win-ia32.zip"
2438
+ },
2439
+ win64: {
2440
+ needsZip: true,
2441
+ getRunnable: function() {
2442
+ return "nw.exe";
2443
+ },
2444
+ files: {
2445
+ "<=0.9.2": [
2446
+ "nw.exe",
2447
+ "ffmpegsumo.dll",
2448
+ "icudt.dll",
2449
+ "libEGL.dll",
2450
+ "libGLESv2.dll",
2451
+ "nw.pak",
2452
+ "locales"
2453
+ ],
2454
+ ">0.9.2 <0.12.0": [
2455
+ "nw.exe",
2456
+ "ffmpegsumo.dll",
2457
+ "icudtl.dat",
2458
+ "libEGL.dll",
2459
+ "libGLESv2.dll",
2460
+ "nw.pak",
2461
+ "locales"
2462
+ ],
2463
+ ">=0.12.0": [
2464
+ "nw.exe",
2465
+ "ffmpegsumo.dll",
2466
+ "icudtl.dat",
2467
+ "libEGL.dll",
2468
+ "libGLESv2.dll",
2469
+ "nw.pak",
2470
+ "locales",
2471
+ "d3dcompiler_47.dll",
2472
+ "pdf.dll"
2473
+ ]
2474
+ },
2475
+ versionNameTemplate: "v${ version }/${ name }-v${ version }-win-x64.zip"
2476
+ },
2477
+ osx32: {
2478
+ needsZip: false,
2479
+ getRunnable: function(version) {
2480
+ if (import_semver.default.satisfies(version, ">=0.12.0 || ~0.12.0-alpha")) {
2481
+ return "nwjs.app/Contents/MacOS/nwjs";
2482
+ } else {
2483
+ return "node-webkit.app/Contents/MacOS/node-webkit";
2484
+ }
2485
+ },
2486
+ files: {
2487
+ "<0.12.0-alpha": ["node-webkit.app"],
2488
+ ">=0.12.0 || ~0.12.0-alpha": ["nwjs.app"]
2489
+ },
2490
+ versionNameTemplate: "v${ version }/${ name }-v${ version }-osx-ia32.zip"
2491
+ },
2492
+ osx64: {
2493
+ needsZip: false,
2494
+ getRunnable: function(version) {
2495
+ if (import_semver.default.satisfies(version, ">=0.12.0 || ~0.12.0-alpha")) {
2496
+ return "nwjs.app/Contents/MacOS/nwjs";
2497
+ } else {
2498
+ return "node-webkit.app/Contents/MacOS/node-webkit";
2499
+ }
2500
+ },
2501
+ files: {
2502
+ "<0.12.0-alpha": ["node-webkit.app"],
2503
+ ">=0.12.0 || ~0.12.0-alpha": ["nwjs.app"]
2504
+ },
2505
+ versionNameTemplate: "v${ version }/${ name }-v${ version }-osx-x64.zip"
2506
+ },
2507
+ linux32: {
2508
+ needsZip: true,
2509
+ chmod: "0755",
2510
+ getRunnable: function() {
2511
+ return "nw";
2512
+ },
2513
+ files: {
2514
+ "<=0.9.2": ["nw", "nw.pak", "libffmpegsumo.so"],
2515
+ ">0.9.2 <=0.10.1": ["nw", "nw.pak", "libffmpegsumo.so", "icudtl.dat"],
2516
+ ">0.10.1": ["nw", "nw.pak", "libffmpegsumo.so", "icudtl.dat", "locales"]
2517
+ },
2518
+ versionNameTemplate: "v${ version }/${ name }-v${ version }-linux-ia32.tar.gz"
2519
+ },
2520
+ linux64: {
2521
+ needsZip: true,
2522
+ chmod: "0755",
2523
+ getRunnable: function() {
2524
+ return "nw";
2525
+ },
2526
+ files: {
2527
+ "<=0.9.2": ["nw", "nw.pak", "libffmpegsumo.so"],
2528
+ ">0.9.2 <=0.10.1": ["nw", "nw.pak", "libffmpegsumo.so", "icudtl.dat"],
2529
+ ">0.10.1": ["nw", "nw.pak", "libffmpegsumo.so", "icudtl.dat", "locales"]
2530
+ },
2531
+ versionNameTemplate: "v${ version }/${ name }-v${ version }-linux-x64.tar.gz"
2532
+ }
2533
+ };
2534
+ var Platforms_default = Platforms;
2535
+
2536
+ // src/utilities/checkCache.js
2537
+ var import_fs = __toESM(require("fs"), 1);
2538
+ var import_path = __toESM(require("path"), 1);
2539
+ var checkCache = (filePath, files) => {
2540
+ let missing = false;
2541
+ if (files.length === 1 && files[0] === "*") {
2542
+ return import_fs.default.existsSync(filePath) && import_fs.default.readdirSync(filePath).length >= 2;
2543
+ }
2544
+ for (let file of files) {
2545
+ if (missing) {
2546
+ return false;
2547
+ }
2548
+ if (!import_fs.default.existsSync(import_path.default.join(filePath, file))) {
2549
+ missing = true;
2550
+ }
2551
+ }
2552
+ return !missing;
2553
+ };
2554
+ var checkCache_default = checkCache;
2555
+
2556
+ // src/utilities/parseOptions.js
2557
+ var parseOptions = (options, defaultOptions) => {
2558
+ for (const key of Object.keys(options)) {
2559
+ if (defaultOptions.hasOwnProperty(key)) {
2560
+ defaultOptions[key] = options[key];
2561
+ }
2562
+ }
2563
+ return defaultOptions;
2564
+ };
2565
+ var parseOptions_default = parseOptions;
2566
+ // Annotate the CommonJS export names for ESM import in node:
2567
+ 0 && (module.exports = {
2568
+ Options,
2569
+ Platform,
2570
+ Platforms,
2571
+ checkCache,
2572
+ parseOptions
2573
+ });