@stencil/core 4.43.3 → 4.43.4

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/sys/node/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  /*!
2
- Stencil Node System v4.43.3 | MIT Licensed | https://stenciljs.com
2
+ Stencil Node System v4.43.4 | MIT Licensed | https://stenciljs.com
3
3
  */
4
- "use strict";var ko=Object.create;var pn=Object.defineProperty;var Po=Object.getOwnPropertyDescriptor;var Io=Object.getOwnPropertyNames;var Mo=Object.getPrototypeOf,Fo=Object.prototype.hasOwnProperty;var Gr=r=>{throw TypeError(r)};var Ho=(r,e,t)=>e in r?pn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var Ee=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Vr=(r,e)=>{for(var t in e)pn(r,t,{get:e[t],enumerable:!0})},Jr=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Io(e))!Fo.call(r,s)&&s!==t&&pn(r,s,{get:()=>e[s],enumerable:!(n=Po(e,s))||n.enumerable});return r};var xe=(r,e,t)=>(t=r!=null?ko(Mo(r)):{},Jr(e||!r||!r.__esModule?pn(t,"default",{value:r,enumerable:!0}):t,r)),Bo=r=>Jr(pn({},"__esModule",{value:!0}),r);var Te=(r,e,t)=>Ho(r,typeof e!="symbol"?e+"":e,t),er=(r,e,t)=>e.has(r)||Gr("Cannot "+t);var B=(r,e,t)=>(er(r,e,"read from private field"),t?t.call(r):e.get(r)),Fe=(r,e,t)=>e.has(r)?Gr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),de=(r,e,t,n)=>(er(r,e,"write to private field"),n?n.call(r,t):e.set(r,t),t),le=(r,e,t)=>(er(r,e,"access private method"),t);var Zr=Ee((Fu,hn)=>{"use strict";var jo=typeof process<"u"&&process.env.TERM_PROGRAM==="Hyper",Uo=typeof process<"u"&&process.platform==="win32",Kr=typeof process<"u"&&process.platform==="linux",tr={ballotDisabled:"\u2612",ballotOff:"\u2610",ballotOn:"\u2611",bullet:"\u2022",bulletWhite:"\u25E6",fullBlock:"\u2588",heart:"\u2764",identicalTo:"\u2261",line:"\u2500",mark:"\u203B",middot:"\xB7",minus:"\uFF0D",multiplication:"\xD7",obelus:"\xF7",pencilDownRight:"\u270E",pencilRight:"\u270F",pencilUpRight:"\u2710",percent:"%",pilcrow2:"\u2761",pilcrow:"\xB6",plusMinus:"\xB1",question:"?",section:"\xA7",starsOff:"\u2606",starsOn:"\u2605",upDownArrow:"\u2195"},Yr=Object.assign({},tr,{check:"\u221A",cross:"\xD7",ellipsisLarge:"...",ellipsis:"...",info:"i",questionSmall:"?",pointer:">",pointerSmall:"\xBB",radioOff:"( )",radioOn:"(*)",warning:"\u203C"}),Qr=Object.assign({},tr,{ballotCross:"\u2718",check:"\u2714",cross:"\u2716",ellipsisLarge:"\u22EF",ellipsis:"\u2026",info:"\u2139",questionFull:"\uFF1F",questionSmall:"\uFE56",pointer:Kr?"\u25B8":"\u276F",pointerSmall:Kr?"\u2023":"\u203A",radioOff:"\u25EF",radioOn:"\u25C9",warning:"\u26A0"});hn.exports=Uo&&!jo?Yr:Qr;Reflect.defineProperty(hn.exports,"common",{enumerable:!1,value:tr});Reflect.defineProperty(hn.exports,"windows",{enumerable:!1,value:Yr});Reflect.defineProperty(hn.exports,"other",{enumerable:!1,value:Qr})});var _r=Ee((Hu,nr)=>{"use strict";var zo=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),Wo=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,Xo=()=>typeof process<"u"?process.env.FORCE_COLOR!=="0":!1,qr=()=>{let r={enabled:Xo(),visible:!0,styles:{},keys:{}},e=i=>{let o=i.open=`\x1B[${i.codes[0]}m`,a=i.close=`\x1B[${i.codes[1]}m`,u=i.regex=new RegExp(`\\u001b\\[${i.codes[1]}m`,"g");return i.wrap=(c,f)=>{c.includes(a)&&(c=c.replace(u,a+o));let p=o+c+a;return f?p.replace(/\r*\n/g,`${a}$&${o}`):p},i},t=(i,o,a)=>typeof i=="function"?i(o):i.wrap(o,a),n=(i,o)=>{if(i===""||i==null)return"";if(r.enabled===!1)return i;if(r.visible===!1)return"";let a=""+i,u=a.includes(`
5
- `),c=o.length;for(c>0&&o.includes("unstyle")&&(o=[...new Set(["unstyle",...o])].reverse());c-- >0;)a=t(r.styles[o[c]],a,u);return a},s=(i,o,a)=>{r.styles[i]=e({name:i,codes:o}),(r.keys[a]||(r.keys[a]=[])).push(i),Reflect.defineProperty(r,i,{configurable:!0,enumerable:!0,set(c){r.alias(i,c)},get(){let c=f=>n(f,c.stack);return Reflect.setPrototypeOf(c,r),c.stack=this.stack?this.stack.concat(i):[i],c}})};return s("reset",[0,0],"modifier"),s("bold",[1,22],"modifier"),s("dim",[2,22],"modifier"),s("italic",[3,23],"modifier"),s("underline",[4,24],"modifier"),s("inverse",[7,27],"modifier"),s("hidden",[8,28],"modifier"),s("strikethrough",[9,29],"modifier"),s("black",[30,39],"color"),s("red",[31,39],"color"),s("green",[32,39],"color"),s("yellow",[33,39],"color"),s("blue",[34,39],"color"),s("magenta",[35,39],"color"),s("cyan",[36,39],"color"),s("white",[37,39],"color"),s("gray",[90,39],"color"),s("grey",[90,39],"color"),s("bgBlack",[40,49],"bg"),s("bgRed",[41,49],"bg"),s("bgGreen",[42,49],"bg"),s("bgYellow",[43,49],"bg"),s("bgBlue",[44,49],"bg"),s("bgMagenta",[45,49],"bg"),s("bgCyan",[46,49],"bg"),s("bgWhite",[47,49],"bg"),s("blackBright",[90,39],"bright"),s("redBright",[91,39],"bright"),s("greenBright",[92,39],"bright"),s("yellowBright",[93,39],"bright"),s("blueBright",[94,39],"bright"),s("magentaBright",[95,39],"bright"),s("cyanBright",[96,39],"bright"),s("whiteBright",[97,39],"bright"),s("bgBlackBright",[100,49],"bgBright"),s("bgRedBright",[101,49],"bgBright"),s("bgGreenBright",[102,49],"bgBright"),s("bgYellowBright",[103,49],"bgBright"),s("bgBlueBright",[104,49],"bgBright"),s("bgMagentaBright",[105,49],"bgBright"),s("bgCyanBright",[106,49],"bgBright"),s("bgWhiteBright",[107,49],"bgBright"),r.ansiRegex=Wo,r.hasColor=r.hasAnsi=i=>(r.ansiRegex.lastIndex=0,typeof i=="string"&&i!==""&&r.ansiRegex.test(i)),r.alias=(i,o)=>{let a=typeof o=="string"?r[o]:o;if(typeof a!="function")throw new TypeError("Expected alias to be the name of an existing color (string) or a function");a.stack||(Reflect.defineProperty(a,"name",{value:i}),r.styles[i]=a,a.stack=[i]),Reflect.defineProperty(r,i,{configurable:!0,enumerable:!0,set(u){r.alias(i,u)},get(){let u=c=>n(c,u.stack);return Reflect.setPrototypeOf(u,r),u.stack=this.stack?this.stack.concat(a.stack):a.stack,u}})},r.theme=i=>{if(!zo(i))throw new TypeError("Expected theme to be an object");for(let o of Object.keys(i))r.alias(o,i[o]);return r},r.alias("unstyle",i=>typeof i=="string"&&i!==""?(r.ansiRegex.lastIndex=0,i.replace(r.ansiRegex,"")):""),r.alias("noop",i=>i),r.none=r.clear=r.noop,r.stripColor=r.unstyle,r.symbols=Zr(),r.define=s,r};nr.exports=qr();nr.exports.create=qr});var hs=Ee((Ld,ps)=>{"use strict";ps.exports=ds;function ds(r,e,t){r instanceof RegExp&&(r=us(r,t)),e instanceof RegExp&&(e=us(e,t));var n=fs(r,e,t);return n&&{start:n[0],end:n[1],pre:t.slice(0,n[0]),body:t.slice(n[0]+r.length,n[1]),post:t.slice(n[1]+e.length)}}function us(r,e){var t=e.match(r);return t?t[0]:null}ds.range=fs;function fs(r,e,t){var n,s,i,o,a,u=t.indexOf(r),c=t.indexOf(e,u+1),f=u;if(u>=0&&c>0){if(r===e)return[u,c];for(n=[],i=t.length;f>=0&&!a;)f==u?(n.push(f),u=t.indexOf(r,f+1)):n.length==1?a=[n.pop(),c]:(s=n.pop(),s<i&&(i=s,o=c),c=t.indexOf(e,f+1)),f=u<c&&u>=0?u:c;n.length&&(a=[i,o])}return a}});var $s=Ee((Rd,Ss)=>{var ms=hs();Ss.exports=fa;var gs="\0SLASH"+Math.random()+"\0",ys="\0OPEN"+Math.random()+"\0",cr="\0CLOSE"+Math.random()+"\0",vs="\0COMMA"+Math.random()+"\0",bs="\0PERIOD"+Math.random()+"\0";function lr(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function ua(r){return r.split("\\\\").join(gs).split("\\{").join(ys).split("\\}").join(cr).split("\\,").join(vs).split("\\.").join(bs)}function da(r){return r.split(gs).join("\\").split(ys).join("{").split(cr).join("}").split(vs).join(",").split(bs).join(".")}function Es(r){if(!r)return[""];var e=[],t=ms("{","}",r);if(!t)return r.split(",");var n=t.pre,s=t.body,i=t.post,o=n.split(",");o[o.length-1]+="{"+s+"}";var a=Es(i);return i.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function fa(r){return r?(r.substr(0,2)==="{}"&&(r="\\{\\}"+r.substr(2)),gn(ua(r),!0).map(da)):[]}function pa(r){return"{"+r+"}"}function ha(r){return/^-?0\d/.test(r)}function ma(r,e){return r<=e}function ga(r,e){return r>=e}function gn(r,e){var t=[],n=ms("{","}",r);if(!n)return[r];var s=n.pre,i=n.post.length?gn(n.post,!1):[""];if(/\$$/.test(n.pre))for(var o=0;o<i.length;o++){var a=s+"{"+n.body+"}"+i[o];t.push(a)}else{var u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),f=u||c,p=n.body.indexOf(",")>=0;if(!f&&!p)return n.post.match(/,(?!,).*\}/)?(r=n.pre+"{"+n.body+cr+n.post,gn(r)):[r];var b;if(f)b=n.body.split(/\.\./);else if(b=Es(n.body),b.length===1&&(b=gn(b[0],!1).map(pa),b.length===1))return i.map(function(A){return n.pre+b[0]+A});var $;if(f){var h=lr(b[0]),T=lr(b[1]),x=Math.max(b[0].length,b[1].length),k=b.length==3?Math.abs(lr(b[2])):1,C=ma,I=T<h;I&&(k*=-1,C=ga);var R=b.some(ha);$=[];for(var g=h;C(g,T);g+=k){var S;if(c)S=String.fromCharCode(g),S==="\\"&&(S="");else if(S=String(g),R){var L=x-S.length;if(L>0){var D=new Array(L+1).join("0");g<0?S="-"+D+S.slice(1):S=D+S}}$.push(S)}}else{$=[];for(var P=0;P<b.length;P++)$.push.apply($,gn(b[P],!1))}for(var P=0;P<$.length;P++)for(var o=0;o<i.length;o++){var a=s+$[P]+i[o];(!e||f||a)&&t.push(a)}}return t}});var ii=Ee((bb,si)=>{si.exports=(function(r){var e={};function t(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return r[n].call(s.exports,s,s.exports,t),s.l=!0,s.exports}return t.m=r,t.c=e,t.i=function(n){return n},t.d=function(n,s,i){t.o(n,s)||Object.defineProperty(n,s,{configurable:!1,enumerable:!0,get:i})},t.n=function(n){var s=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(s,"a",s),s},t.o=function(n,s){return Object.prototype.hasOwnProperty.call(n,s)},t.p="",t(t.s=14)})([(function(r,e){r.exports=require("path")}),(function(r,e,t){"use strict";e.__esModule=!0;var n=t(173),s=i(n);function i(o){return o&&o.__esModule?o:{default:o}}e.default=function(o){return function(){var a=o.apply(this,arguments);return new s.default(function(u,c){function f(p,b){try{var $=a[p](b),h=$.value}catch(T){c(T);return}if($.done)u(h);else return s.default.resolve(h).then(function(T){f("next",T)},function(T){f("throw",T)})}return f("next")})}}}),(function(r,e){r.exports=require("util")}),(function(r,e){r.exports=require("fs")}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class n extends Error{constructor(c,f){super(c),this.code=f}}e.MessageError=n;class s extends n{constructor(c,f,p){super(c,f),this.process=p}}e.ProcessSpawnError=s;class i extends n{}e.SecurityError=i;class o extends n{}e.ProcessTermError=o;class a extends Error{constructor(c,f){super(c),this.responseCode=f}}e.ResponseError=a}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFirstSuitableFolder=e.readFirstAvailableStream=e.makeTempDir=e.hardlinksWork=e.writeFilePreservingEol=e.getFileSizeOnDisk=e.walk=e.symlink=e.find=e.readJsonAndFile=e.readJson=e.readFileAny=e.hardlinkBulk=e.copyBulk=e.unlink=e.glob=e.link=e.chmod=e.lstat=e.exists=e.mkdirp=e.stat=e.access=e.rename=e.readdir=e.realpath=e.readlink=e.writeFile=e.open=e.readFileBuffer=e.lockQueue=e.constants=void 0;var n;function s(){return n=F(t(1))}let i=(()=>{var Y=(0,(n||s()).default)(function*(V,z,U,G){let re=(()=>{var ue=(0,(n||s()).default)(function*(Ie){let be=Ie.src,se=Ie.dest,fn=Ie.type,et=Ie.onFresh||ot,Le=Ie.onDone||ot;if(fe.has(se.toLowerCase())?G.verbose(`The case-insensitive file ${se} shouldn't be copied twice in one bulk copy`):fe.add(se.toLowerCase()),fn==="symlink"){yield Ae((l||d()).default.dirname(se)),et(),ze.symlink.push({dest:se,linkname:be}),Le();return}if(z.ignoreBasenames.indexOf((l||d()).default.basename(be))>=0)return;let Re=yield we(be),Lt;Re.isDirectory()&&(Lt=yield Pe(be));let Ye;try{Ye=yield we(se)}catch(Ve){if(Ve.code!=="ENOENT")throw Ve}if(Ye){let Ve=Re.isSymbolicLink()&&Ye.isSymbolicLink(),Rt=Re.isDirectory()&&Ye.isDirectory(),vt=Re.isFile()&&Ye.isFile();if(vt&&ve.has(se)){Le(),G.verbose(G.lang("verboseFileSkipArtifact",be));return}if(vt&&Re.size===Ye.size&&(0,(W||Z()).fileDatesEqual)(Re.mtime,Ye.mtime)){Le(),G.verbose(G.lang("verboseFileSkip",be,se,Re.size,+Re.mtime));return}if(Ve){let Me=yield pe(be);if(Me===(yield pe(se))){Le(),G.verbose(G.lang("verboseFileSkipSymlink",be,se,Me));return}}if(Rt){let Me=yield Pe(se);Zt(Lt,"src files not initialised");for(var mt=Me,kt=Array.isArray(mt),tt=0,mt=kt?mt:mt[Symbol.iterator]();;){var _t;if(kt){if(tt>=mt.length)break;_t=mt[tt++]}else{if(tt=mt.next(),tt.done)break;_t=tt.value}let Mt=_t;if(Lt.indexOf(Mt)<0){let At=(l||d()).default.join(se,Mt);if(U.add(At),(yield we(At)).isDirectory())for(var gt=yield Pe(At),Pt=Array.isArray(gt),nt=0,gt=Pt?gt:gt[Symbol.iterator]();;){var en;if(Pt){if(nt>=gt.length)break;en=gt[nt++]}else{if(nt=gt.next(),nt.done)break;en=nt.value}let _n=en;U.add((l||d()).default.join(At,_n))}}}}}if(Ye&&Ye.isSymbolicLink()&&(yield(0,(W||Z()).unlink)(se),Ye=null),Re.isSymbolicLink()){et();let Ve=yield pe(be);ze.symlink.push({dest:se,linkname:Ve}),Le()}else if(Re.isDirectory()){Ye||(G.verbose(G.lang("verboseFileFolder",se)),yield Ae(se));let Ve=se.split((l||d()).default.sep);for(;Ve.length;)fe.add(Ve.join((l||d()).default.sep).toLowerCase()),Ve.pop();Zt(Lt,"src files not initialised");let Rt=Lt.length;Rt||Le();for(var yt=Lt,It=Array.isArray(yt),rt=0,yt=It?yt:yt[Symbol.iterator]();;){var Ge;if(It){if(rt>=yt.length)break;Ge=yt[rt++]}else{if(rt=yt.next(),rt.done)break;Ge=rt.value}let vt=Ge;V.push({dest:(l||d()).default.join(se,vt),onFresh:et,onDone:(function(Me){function Mt(){return Me.apply(this,arguments)}return Mt.toString=function(){return Me.toString()},Mt})(function(){--Rt===0&&Le()}),src:(l||d()).default.join(be,vt)})}}else if(Re.isFile())et(),ze.file.push({src:be,dest:se,atime:Re.atime,mtime:Re.mtime,mode:Re.mode}),Le();else throw new Error(`unsure how to copy this: ${be}`)});return function(be){return ue.apply(this,arguments)}})(),ve=new Set(z.artifactFiles||[]),fe=new Set;for(var ae=V,he=Array.isArray(ae),oe=0,ae=he?ae:ae[Symbol.iterator]();;){var _e;if(he){if(oe>=ae.length)break;_e=ae[oe++]}else{if(oe=ae.next(),oe.done)break;_e=oe.value}let ue=_e,Ie=ue.onDone;ue.onDone=function(){z.onProgress(ue.dest),Ie&&Ie()}}z.onStart(V.length);let ze={file:[],symlink:[],link:[]};for(;V.length;){let ue=V.splice(0,zt);yield Promise.all(ue.map(re))}for(var We=ve,wt=Array.isArray(We),pt=0,We=wt?We:We[Symbol.iterator]();;){var Wt;if(wt){if(pt>=We.length)break;Wt=We[pt++]}else{if(pt=We.next(),pt.done)break;Wt=pt.value}let ue=Wt;U.has(ue)&&(G.verbose(G.lang("verboseFilePhantomExtraneous",ue)),U.delete(ue))}for(var Xe=U,dn=Array.isArray(Xe),ht=0,Xe=dn?Xe:Xe[Symbol.iterator]();;){var Xt;if(dn){if(ht>=Xe.length)break;Xt=Xe[ht++]}else{if(ht=Xe.next(),ht.done)break;Xt=ht.value}let ue=Xt;fe.has(ue.toLowerCase())&&U.delete(ue)}return ze});return function(z,U,G,re){return Y.apply(this,arguments)}})(),o=(()=>{var Y=(0,(n||s()).default)(function*(V,z,U,G){let re=(()=>{var ue=(0,(n||s()).default)(function*(Ie){let be=Ie.src,se=Ie.dest,fn=Ie.onFresh||ot,et=Ie.onDone||ot;if(fe.has(se.toLowerCase())){et();return}if(fe.add(se.toLowerCase()),z.ignoreBasenames.indexOf((l||d()).default.basename(be))>=0)return;let Le=yield we(be),Re;Le.isDirectory()&&(Re=yield Pe(be));let Lt=yield ft(se);if(Lt){let Ge=yield we(se),Ve=Le.isSymbolicLink()&&Ge.isSymbolicLink(),Rt=Le.isDirectory()&&Ge.isDirectory(),vt=Le.isFile()&&Ge.isFile();if(Le.mode!==Ge.mode)try{yield De(se,Le.mode)}catch(Me){G.verbose(Me)}if(vt&&ve.has(se)){et(),G.verbose(G.lang("verboseFileSkipArtifact",be));return}if(vt&&Le.ino!==null&&Le.ino===Ge.ino){et(),G.verbose(G.lang("verboseFileSkip",be,se,Le.ino));return}if(Ve){let Me=yield pe(be);if(Me===(yield pe(se))){et(),G.verbose(G.lang("verboseFileSkipSymlink",be,se,Me));return}}if(Rt){let Me=yield Pe(se);Zt(Re,"src files not initialised");for(var tt=Me,Ye=Array.isArray(tt),kt=0,tt=Ye?tt:tt[Symbol.iterator]();;){var mt;if(Ye){if(kt>=tt.length)break;mt=tt[kt++]}else{if(kt=tt.next(),kt.done)break;mt=kt.value}let Mt=mt;if(Re.indexOf(Mt)<0){let At=(l||d()).default.join(se,Mt);if(U.add(At),(yield we(At)).isDirectory())for(var nt=yield Pe(At),_t=Array.isArray(nt),Pt=0,nt=_t?nt:nt[Symbol.iterator]();;){var gt;if(_t){if(Pt>=nt.length)break;gt=nt[Pt++]}else{if(Pt=nt.next(),Pt.done)break;gt=Pt.value}let _n=gt;U.add((l||d()).default.join(At,_n))}}}}}if(Le.isSymbolicLink()){fn();let Ge=yield pe(be);ze.symlink.push({dest:se,linkname:Ge}),et()}else if(Le.isDirectory()){G.verbose(G.lang("verboseFileFolder",se)),yield Ae(se);let Ge=se.split((l||d()).default.sep);for(;Ge.length;)fe.add(Ge.join((l||d()).default.sep).toLowerCase()),Ge.pop();Zt(Re,"src files not initialised");let Ve=Re.length;Ve||et();for(var rt=Re,en=Array.isArray(rt),It=0,rt=en?rt:rt[Symbol.iterator]();;){var yt;if(en){if(It>=rt.length)break;yt=rt[It++]}else{if(It=rt.next(),It.done)break;yt=It.value}let Rt=yt;V.push({onFresh:fn,src:(l||d()).default.join(be,Rt),dest:(l||d()).default.join(se,Rt),onDone:(function(vt){function Me(){return vt.apply(this,arguments)}return Me.toString=function(){return vt.toString()},Me})(function(){--Ve===0&&et()})})}}else if(Le.isFile())fn(),ze.link.push({src:be,dest:se,removeDest:Lt}),et();else throw new Error(`unsure how to copy this: ${be}`)});return function(be){return ue.apply(this,arguments)}})(),ve=new Set(z.artifactFiles||[]),fe=new Set;for(var ae=V,he=Array.isArray(ae),oe=0,ae=he?ae:ae[Symbol.iterator]();;){var _e;if(he){if(oe>=ae.length)break;_e=ae[oe++]}else{if(oe=ae.next(),oe.done)break;_e=oe.value}let ue=_e,Ie=ue.onDone||ot;ue.onDone=function(){z.onProgress(ue.dest),Ie()}}z.onStart(V.length);let ze={file:[],symlink:[],link:[]};for(;V.length;){let ue=V.splice(0,zt);yield Promise.all(ue.map(re))}for(var We=ve,wt=Array.isArray(We),pt=0,We=wt?We:We[Symbol.iterator]();;){var Wt;if(wt){if(pt>=We.length)break;Wt=We[pt++]}else{if(pt=We.next(),pt.done)break;Wt=pt.value}let ue=Wt;U.has(ue)&&(G.verbose(G.lang("verboseFilePhantomExtraneous",ue)),U.delete(ue))}for(var Xe=U,dn=Array.isArray(Xe),ht=0,Xe=dn?Xe:Xe[Symbol.iterator]();;){var Xt;if(dn){if(ht>=Xe.length)break;Xt=Xe[ht++]}else{if(ht=Xe.next(),ht.done)break;Xt=ht.value}let ue=Xt;fe.has(ue.toLowerCase())&&U.delete(ue)}return ze});return function(z,U,G,re){return Y.apply(this,arguments)}})(),a=e.copyBulk=(()=>{var Y=(0,(n||s()).default)(function*(V,z,U){let G={onStart:U&&U.onStart||ot,onProgress:U&&U.onProgress||ot,possibleExtraneous:U?U.possibleExtraneous:new Set,ignoreBasenames:U&&U.ignoreBasenames||[],artifactFiles:U&&U.artifactFiles||[]},re=yield i(V,G,G.possibleExtraneous,z);G.onStart(re.file.length+re.symlink.length+re.link.length);let ve=re.file,fe=new Map;yield(E||O()).queue(ve,(()=>{var oe=(0,(n||s()).default)(function*(ae){let _e;for(;_e=fe.get(ae.dest);)yield _e;z.verbose(z.lang("verboseFileCopy",ae.src,ae.dest));let ze=(0,(W||Z()).copyFile)(ae,function(){return fe.delete(ae.dest)});return fe.set(ae.dest,ze),G.onProgress(ae.dest),ze});return function(ae){return oe.apply(this,arguments)}})(),zt);let he=re.symlink;yield(E||O()).queue(he,function(oe){let ae=(l||d()).default.resolve((l||d()).default.dirname(oe.dest),oe.linkname);return z.verbose(z.lang("verboseFileSymlink",oe.dest,ae)),$(ae,oe.dest)})});return function(z,U,G){return Y.apply(this,arguments)}})(),u=e.hardlinkBulk=(()=>{var Y=(0,(n||s()).default)(function*(V,z,U){let G={onStart:U&&U.onStart||ot,onProgress:U&&U.onProgress||ot,possibleExtraneous:U?U.possibleExtraneous:new Set,artifactFiles:U&&U.artifactFiles||[],ignoreBasenames:[]},re=yield o(V,G,G.possibleExtraneous,z);G.onStart(re.file.length+re.symlink.length+re.link.length);let ve=re.link;yield(E||O()).queue(ve,(()=>{var he=(0,(n||s()).default)(function*(oe){z.verbose(z.lang("verboseFileLink",oe.src,oe.dest)),oe.removeDest&&(yield(0,(W||Z()).unlink)(oe.dest)),yield Cn(oe.src,oe.dest)});return function(oe){return he.apply(this,arguments)}})(),zt);let fe=re.symlink;yield(E||O()).queue(fe,function(he){let oe=(l||d()).default.resolve((l||d()).default.dirname(he.dest),he.linkname);return z.verbose(z.lang("verboseFileSymlink",he.dest,oe)),$(oe,he.dest)})});return function(z,U,G){return Y.apply(this,arguments)}})(),c=e.readFileAny=(()=>{var Y=(0,(n||s()).default)(function*(V){for(var G=V,z=Array.isArray(G),U=0,G=z?G:G[Symbol.iterator]();;){var re;if(z){if(U>=G.length)break;re=G[U++]}else{if(U=G.next(),U.done)break;re=U.value}let ve=re;if(yield ft(ve))return qn(ve)}return null});return function(z){return Y.apply(this,arguments)}})(),f=e.readJson=(()=>{var Y=(0,(n||s()).default)(function*(V){return(yield p(V)).object});return function(z){return Y.apply(this,arguments)}})(),p=e.readJsonAndFile=(()=>{var Y=(0,(n||s()).default)(function*(V){let z=yield qn(V);try{return{object:(0,(M||j()).default)(JSON.parse(un(z))),content:z}}catch(U){throw U.message=`${V}: ${U.message}`,U}});return function(z){return Y.apply(this,arguments)}})(),b=e.find=(()=>{var Y=(0,(n||s()).default)(function*(V,z){let U=z.split((l||d()).default.sep);for(;U.length;){let G=U.concat(V).join((l||d()).default.sep);if(yield ft(G))return G;U.pop()}return!1});return function(z,U){return Y.apply(this,arguments)}})(),$=e.symlink=(()=>{var Y=(0,(n||s()).default)(function*(V,z){try{if((yield we(z)).isSymbolicLink()&&(yield Be(z))===V)return}catch(U){if(U.code!=="ENOENT")throw U}if(yield(0,(W||Z()).unlink)(z),process.platform==="win32")yield Rn(V,z,"junction");else{let U;try{U=(l||d()).default.relative((S||L()).default.realpathSync((l||d()).default.dirname(z)),(S||L()).default.realpathSync(V))}catch(G){if(G.code!=="ENOENT")throw G;U=(l||d()).default.relative((l||d()).default.dirname(z),V)}yield Rn(U||".",z)}});return function(z,U){return Y.apply(this,arguments)}})(),h=e.walk=(()=>{var Y=(0,(n||s()).default)(function*(V,z,U=new Set){let G=[],re=yield Pe(V);U.size&&(re=re.filter(function(ae){return!U.has(ae)}));for(var he=re,ve=Array.isArray(he),fe=0,he=ve?he:he[Symbol.iterator]();;){var oe;if(ve){if(fe>=he.length)break;oe=he[fe++]}else{if(fe=he.next(),fe.done)break;oe=fe.value}let ae=oe,_e=z?(l||d()).default.join(z,ae):ae,ze=(l||d()).default.join(V,ae),wt=yield we(ze);G.push({relative:_e,basename:ae,absolute:ze,mtime:+wt.mtime}),wt.isDirectory()&&(G=G.concat(yield h(ze,_e,U)))}return G});return function(z,U){return Y.apply(this,arguments)}})(),T=e.getFileSizeOnDisk=(()=>{var Y=(0,(n||s()).default)(function*(V){let z=yield we(V),U=z.size,G=z.blksize;return Math.ceil(U/G)*G});return function(z){return Y.apply(this,arguments)}})(),x=(()=>{var Y=(0,(n||s()).default)(function*(V){if(!(yield ft(V)))return;let z=yield Q(V);for(let U=0;U<z.length;++U){if(z[U]===No)return`\r
6
- `;if(z[U]===wo)return`
4
+ "use strict";var Po=Object.create;var pn=Object.defineProperty;var Io=Object.getOwnPropertyDescriptor;var Mo=Object.getOwnPropertyNames;var Fo=Object.getPrototypeOf,Ho=Object.prototype.hasOwnProperty;var Vr=r=>{throw TypeError(r)};var Bo=(r,e,t)=>e in r?pn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var Ee=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Jr=(r,e)=>{for(var t in e)pn(r,t,{get:e[t],enumerable:!0})},Kr=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Mo(e))!Ho.call(r,s)&&s!==t&&pn(r,s,{get:()=>e[s],enumerable:!(n=Io(e,s))||n.enumerable});return r};var xe=(r,e,t)=>(t=r!=null?Po(Fo(r)):{},Kr(e||!r||!r.__esModule?pn(t,"default",{value:r,enumerable:!0}):t,r)),jo=r=>Kr(pn({},"__esModule",{value:!0}),r);var Te=(r,e,t)=>Bo(r,typeof e!="symbol"?e+"":e,t),tr=(r,e,t)=>e.has(r)||Vr("Cannot "+t);var B=(r,e,t)=>(tr(r,e,"read from private field"),t?t.call(r):e.get(r)),Fe=(r,e,t)=>e.has(r)?Vr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),de=(r,e,t,n)=>(tr(r,e,"write to private field"),n?n.call(r,t):e.set(r,t),t),le=(r,e,t)=>(tr(r,e,"access private method"),t);var qr=Ee((Hu,hn)=>{"use strict";var Uo=typeof process<"u"&&process.env.TERM_PROGRAM==="Hyper",zo=typeof process<"u"&&process.platform==="win32",Yr=typeof process<"u"&&process.platform==="linux",nr={ballotDisabled:"\u2612",ballotOff:"\u2610",ballotOn:"\u2611",bullet:"\u2022",bulletWhite:"\u25E6",fullBlock:"\u2588",heart:"\u2764",identicalTo:"\u2261",line:"\u2500",mark:"\u203B",middot:"\xB7",minus:"\uFF0D",multiplication:"\xD7",obelus:"\xF7",pencilDownRight:"\u270E",pencilRight:"\u270F",pencilUpRight:"\u2710",percent:"%",pilcrow2:"\u2761",pilcrow:"\xB6",plusMinus:"\xB1",question:"?",section:"\xA7",starsOff:"\u2606",starsOn:"\u2605",upDownArrow:"\u2195"},Qr=Object.assign({},nr,{check:"\u221A",cross:"\xD7",ellipsisLarge:"...",ellipsis:"...",info:"i",questionSmall:"?",pointer:">",pointerSmall:"\xBB",radioOff:"( )",radioOn:"(*)",warning:"\u203C"}),Zr=Object.assign({},nr,{ballotCross:"\u2718",check:"\u2714",cross:"\u2716",ellipsisLarge:"\u22EF",ellipsis:"\u2026",info:"\u2139",questionFull:"\uFF1F",questionSmall:"\uFE56",pointer:Yr?"\u25B8":"\u276F",pointerSmall:Yr?"\u2023":"\u203A",radioOff:"\u25EF",radioOn:"\u25C9",warning:"\u26A0"});hn.exports=zo&&!Uo?Qr:Zr;Reflect.defineProperty(hn.exports,"common",{enumerable:!1,value:nr});Reflect.defineProperty(hn.exports,"windows",{enumerable:!1,value:Qr});Reflect.defineProperty(hn.exports,"other",{enumerable:!1,value:Zr})});var es=Ee((Bu,rr)=>{"use strict";var Wo=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),Xo=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,Go=()=>typeof process<"u"?process.env.FORCE_COLOR!=="0":!1,_r=()=>{let r={enabled:Go(),visible:!0,styles:{},keys:{}},e=i=>{let o=i.open=`\x1B[${i.codes[0]}m`,a=i.close=`\x1B[${i.codes[1]}m`,u=i.regex=new RegExp(`\\u001b\\[${i.codes[1]}m`,"g");return i.wrap=(c,f)=>{c.includes(a)&&(c=c.replace(u,a+o));let p=o+c+a;return f?p.replace(/\r*\n/g,`${a}$&${o}`):p},i},t=(i,o,a)=>typeof i=="function"?i(o):i.wrap(o,a),n=(i,o)=>{if(i===""||i==null)return"";if(r.enabled===!1)return i;if(r.visible===!1)return"";let a=""+i,u=a.includes(`
5
+ `),c=o.length;for(c>0&&o.includes("unstyle")&&(o=[...new Set(["unstyle",...o])].reverse());c-- >0;)a=t(r.styles[o[c]],a,u);return a},s=(i,o,a)=>{r.styles[i]=e({name:i,codes:o}),(r.keys[a]||(r.keys[a]=[])).push(i),Reflect.defineProperty(r,i,{configurable:!0,enumerable:!0,set(c){r.alias(i,c)},get(){let c=f=>n(f,c.stack);return Reflect.setPrototypeOf(c,r),c.stack=this.stack?this.stack.concat(i):[i],c}})};return s("reset",[0,0],"modifier"),s("bold",[1,22],"modifier"),s("dim",[2,22],"modifier"),s("italic",[3,23],"modifier"),s("underline",[4,24],"modifier"),s("inverse",[7,27],"modifier"),s("hidden",[8,28],"modifier"),s("strikethrough",[9,29],"modifier"),s("black",[30,39],"color"),s("red",[31,39],"color"),s("green",[32,39],"color"),s("yellow",[33,39],"color"),s("blue",[34,39],"color"),s("magenta",[35,39],"color"),s("cyan",[36,39],"color"),s("white",[37,39],"color"),s("gray",[90,39],"color"),s("grey",[90,39],"color"),s("bgBlack",[40,49],"bg"),s("bgRed",[41,49],"bg"),s("bgGreen",[42,49],"bg"),s("bgYellow",[43,49],"bg"),s("bgBlue",[44,49],"bg"),s("bgMagenta",[45,49],"bg"),s("bgCyan",[46,49],"bg"),s("bgWhite",[47,49],"bg"),s("blackBright",[90,39],"bright"),s("redBright",[91,39],"bright"),s("greenBright",[92,39],"bright"),s("yellowBright",[93,39],"bright"),s("blueBright",[94,39],"bright"),s("magentaBright",[95,39],"bright"),s("cyanBright",[96,39],"bright"),s("whiteBright",[97,39],"bright"),s("bgBlackBright",[100,49],"bgBright"),s("bgRedBright",[101,49],"bgBright"),s("bgGreenBright",[102,49],"bgBright"),s("bgYellowBright",[103,49],"bgBright"),s("bgBlueBright",[104,49],"bgBright"),s("bgMagentaBright",[105,49],"bgBright"),s("bgCyanBright",[106,49],"bgBright"),s("bgWhiteBright",[107,49],"bgBright"),r.ansiRegex=Xo,r.hasColor=r.hasAnsi=i=>(r.ansiRegex.lastIndex=0,typeof i=="string"&&i!==""&&r.ansiRegex.test(i)),r.alias=(i,o)=>{let a=typeof o=="string"?r[o]:o;if(typeof a!="function")throw new TypeError("Expected alias to be the name of an existing color (string) or a function");a.stack||(Reflect.defineProperty(a,"name",{value:i}),r.styles[i]=a,a.stack=[i]),Reflect.defineProperty(r,i,{configurable:!0,enumerable:!0,set(u){r.alias(i,u)},get(){let u=c=>n(c,u.stack);return Reflect.setPrototypeOf(u,r),u.stack=this.stack?this.stack.concat(a.stack):a.stack,u}})},r.theme=i=>{if(!Wo(i))throw new TypeError("Expected theme to be an object");for(let o of Object.keys(i))r.alias(o,i[o]);return r},r.alias("unstyle",i=>typeof i=="string"&&i!==""?(r.ansiRegex.lastIndex=0,i.replace(r.ansiRegex,"")):""),r.alias("noop",i=>i),r.none=r.clear=r.noop,r.stripColor=r.unstyle,r.symbols=qr(),r.define=s,r};rr.exports=_r();rr.exports.create=_r});var ms=Ee((Rd,hs)=>{"use strict";hs.exports=fs;function fs(r,e,t){r instanceof RegExp&&(r=ds(r,t)),e instanceof RegExp&&(e=ds(e,t));var n=ps(r,e,t);return n&&{start:n[0],end:n[1],pre:t.slice(0,n[0]),body:t.slice(n[0]+r.length,n[1]),post:t.slice(n[1]+e.length)}}function ds(r,e){var t=e.match(r);return t?t[0]:null}fs.range=ps;function ps(r,e,t){var n,s,i,o,a,u=t.indexOf(r),c=t.indexOf(e,u+1),f=u;if(u>=0&&c>0){if(r===e)return[u,c];for(n=[],i=t.length;f>=0&&!a;)f==u?(n.push(f),u=t.indexOf(r,f+1)):n.length==1?a=[n.pop(),c]:(s=n.pop(),s<i&&(i=s,o=c),c=t.indexOf(e,f+1)),f=u<c&&u>=0?u:c;n.length&&(a=[i,o])}return a}});var xs=Ee((Ad,$s)=>{var gs=ms();$s.exports=pa;var ys="\0SLASH"+Math.random()+"\0",vs="\0OPEN"+Math.random()+"\0",ur="\0CLOSE"+Math.random()+"\0",bs="\0COMMA"+Math.random()+"\0",Es="\0PERIOD"+Math.random()+"\0";function cr(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function da(r){return r.split("\\\\").join(ys).split("\\{").join(vs).split("\\}").join(ur).split("\\,").join(bs).split("\\.").join(Es)}function fa(r){return r.split(ys).join("\\").split(vs).join("{").split(ur).join("}").split(bs).join(",").split(Es).join(".")}function Ss(r){if(!r)return[""];var e=[],t=gs("{","}",r);if(!t)return r.split(",");var n=t.pre,s=t.body,i=t.post,o=n.split(",");o[o.length-1]+="{"+s+"}";var a=Ss(i);return i.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function pa(r){return r?(r.substr(0,2)==="{}"&&(r="\\{\\}"+r.substr(2)),gn(da(r),!0).map(fa)):[]}function ha(r){return"{"+r+"}"}function ma(r){return/^-?0\d/.test(r)}function ga(r,e){return r<=e}function ya(r,e){return r>=e}function gn(r,e){var t=[],n=gs("{","}",r);if(!n)return[r];var s=n.pre,i=n.post.length?gn(n.post,!1):[""];if(/\$$/.test(n.pre))for(var o=0;o<i.length;o++){var a=s+"{"+n.body+"}"+i[o];t.push(a)}else{var u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),f=u||c,p=n.body.indexOf(",")>=0;if(!f&&!p)return n.post.match(/,(?!,).*\}/)?(r=n.pre+"{"+n.body+ur+n.post,gn(r)):[r];var b;if(f)b=n.body.split(/\.\./);else if(b=Ss(n.body),b.length===1&&(b=gn(b[0],!1).map(ha),b.length===1))return i.map(function(A){return n.pre+b[0]+A});var $;if(f){var h=cr(b[0]),T=cr(b[1]),x=Math.max(b[0].length,b[1].length),k=b.length==3?Math.abs(cr(b[2])):1,C=ga,I=T<h;I&&(k*=-1,C=ya);var R=b.some(ma);$=[];for(var g=h;C(g,T);g+=k){var S;if(c)S=String.fromCharCode(g),S==="\\"&&(S="");else if(S=String(g),R){var L=x-S.length;if(L>0){var D=new Array(L+1).join("0");g<0?S="-"+D+S.slice(1):S=D+S}}$.push(S)}}else{$=[];for(var P=0;P<b.length;P++)$.push.apply($,gn(b[P],!1))}for(var P=0;P<$.length;P++)for(var o=0;o<i.length;o++){var a=s+$[P]+i[o];(!e||f||a)&&t.push(a)}}return t}});var oi=Ee((Lb,ii)=>{ii.exports=(function(r){var e={};function t(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return r[n].call(s.exports,s,s.exports,t),s.l=!0,s.exports}return t.m=r,t.c=e,t.i=function(n){return n},t.d=function(n,s,i){t.o(n,s)||Object.defineProperty(n,s,{configurable:!1,enumerable:!0,get:i})},t.n=function(n){var s=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(s,"a",s),s},t.o=function(n,s){return Object.prototype.hasOwnProperty.call(n,s)},t.p="",t(t.s=14)})([(function(r,e){r.exports=require("path")}),(function(r,e,t){"use strict";e.__esModule=!0;var n=t(173),s=i(n);function i(o){return o&&o.__esModule?o:{default:o}}e.default=function(o){return function(){var a=o.apply(this,arguments);return new s.default(function(u,c){function f(p,b){try{var $=a[p](b),h=$.value}catch(T){c(T);return}if($.done)u(h);else return s.default.resolve(h).then(function(T){f("next",T)},function(T){f("throw",T)})}return f("next")})}}}),(function(r,e){r.exports=require("util")}),(function(r,e){r.exports=require("fs")}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class n extends Error{constructor(c,f){super(c),this.code=f}}e.MessageError=n;class s extends n{constructor(c,f,p){super(c,f),this.process=p}}e.ProcessSpawnError=s;class i extends n{}e.SecurityError=i;class o extends n{}e.ProcessTermError=o;class a extends Error{constructor(c,f){super(c),this.responseCode=f}}e.ResponseError=a}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFirstSuitableFolder=e.readFirstAvailableStream=e.makeTempDir=e.hardlinksWork=e.writeFilePreservingEol=e.getFileSizeOnDisk=e.walk=e.symlink=e.find=e.readJsonAndFile=e.readJson=e.readFileAny=e.hardlinkBulk=e.copyBulk=e.unlink=e.glob=e.link=e.chmod=e.lstat=e.exists=e.mkdirp=e.stat=e.access=e.rename=e.readdir=e.realpath=e.readlink=e.writeFile=e.open=e.readFileBuffer=e.lockQueue=e.constants=void 0;var n;function s(){return n=F(t(1))}let i=(()=>{var Y=(0,(n||s()).default)(function*(V,z,U,G){let re=(()=>{var ue=(0,(n||s()).default)(function*(Ie){let be=Ie.src,se=Ie.dest,fn=Ie.type,et=Ie.onFresh||ot,Le=Ie.onDone||ot;if(fe.has(se.toLowerCase())?G.verbose(`The case-insensitive file ${se} shouldn't be copied twice in one bulk copy`):fe.add(se.toLowerCase()),fn==="symlink"){yield Ae((l||d()).default.dirname(se)),et(),ze.symlink.push({dest:se,linkname:be}),Le();return}if(z.ignoreBasenames.indexOf((l||d()).default.basename(be))>=0)return;let Re=yield we(be),Lt;Re.isDirectory()&&(Lt=yield Pe(be));let Ye;try{Ye=yield we(se)}catch(Ve){if(Ve.code!=="ENOENT")throw Ve}if(Ye){let Ve=Re.isSymbolicLink()&&Ye.isSymbolicLink(),Rt=Re.isDirectory()&&Ye.isDirectory(),vt=Re.isFile()&&Ye.isFile();if(vt&&ve.has(se)){Le(),G.verbose(G.lang("verboseFileSkipArtifact",be));return}if(vt&&Re.size===Ye.size&&(0,(W||Z()).fileDatesEqual)(Re.mtime,Ye.mtime)){Le(),G.verbose(G.lang("verboseFileSkip",be,se,Re.size,+Re.mtime));return}if(Ve){let Me=yield pe(be);if(Me===(yield pe(se))){Le(),G.verbose(G.lang("verboseFileSkipSymlink",be,se,Me));return}}if(Rt){let Me=yield Pe(se);Zt(Lt,"src files not initialised");for(var mt=Me,kt=Array.isArray(mt),tt=0,mt=kt?mt:mt[Symbol.iterator]();;){var _t;if(kt){if(tt>=mt.length)break;_t=mt[tt++]}else{if(tt=mt.next(),tt.done)break;_t=tt.value}let Mt=_t;if(Lt.indexOf(Mt)<0){let At=(l||d()).default.join(se,Mt);if(U.add(At),(yield we(At)).isDirectory())for(var gt=yield Pe(At),Pt=Array.isArray(gt),nt=0,gt=Pt?gt:gt[Symbol.iterator]();;){var en;if(Pt){if(nt>=gt.length)break;en=gt[nt++]}else{if(nt=gt.next(),nt.done)break;en=nt.value}let er=en;U.add((l||d()).default.join(At,er))}}}}}if(Ye&&Ye.isSymbolicLink()&&(yield(0,(W||Z()).unlink)(se),Ye=null),Re.isSymbolicLink()){et();let Ve=yield pe(be);ze.symlink.push({dest:se,linkname:Ve}),Le()}else if(Re.isDirectory()){Ye||(G.verbose(G.lang("verboseFileFolder",se)),yield Ae(se));let Ve=se.split((l||d()).default.sep);for(;Ve.length;)fe.add(Ve.join((l||d()).default.sep).toLowerCase()),Ve.pop();Zt(Lt,"src files not initialised");let Rt=Lt.length;Rt||Le();for(var yt=Lt,It=Array.isArray(yt),rt=0,yt=It?yt:yt[Symbol.iterator]();;){var Ge;if(It){if(rt>=yt.length)break;Ge=yt[rt++]}else{if(rt=yt.next(),rt.done)break;Ge=rt.value}let vt=Ge;V.push({dest:(l||d()).default.join(se,vt),onFresh:et,onDone:(function(Me){function Mt(){return Me.apply(this,arguments)}return Mt.toString=function(){return Me.toString()},Mt})(function(){--Rt===0&&Le()}),src:(l||d()).default.join(be,vt)})}}else if(Re.isFile())et(),ze.file.push({src:be,dest:se,atime:Re.atime,mtime:Re.mtime,mode:Re.mode}),Le();else throw new Error(`unsure how to copy this: ${be}`)});return function(be){return ue.apply(this,arguments)}})(),ve=new Set(z.artifactFiles||[]),fe=new Set;for(var ae=V,he=Array.isArray(ae),oe=0,ae=he?ae:ae[Symbol.iterator]();;){var _e;if(he){if(oe>=ae.length)break;_e=ae[oe++]}else{if(oe=ae.next(),oe.done)break;_e=oe.value}let ue=_e,Ie=ue.onDone;ue.onDone=function(){z.onProgress(ue.dest),Ie&&Ie()}}z.onStart(V.length);let ze={file:[],symlink:[],link:[]};for(;V.length;){let ue=V.splice(0,zt);yield Promise.all(ue.map(re))}for(var We=ve,wt=Array.isArray(We),pt=0,We=wt?We:We[Symbol.iterator]();;){var Wt;if(wt){if(pt>=We.length)break;Wt=We[pt++]}else{if(pt=We.next(),pt.done)break;Wt=pt.value}let ue=Wt;U.has(ue)&&(G.verbose(G.lang("verboseFilePhantomExtraneous",ue)),U.delete(ue))}for(var Xe=U,dn=Array.isArray(Xe),ht=0,Xe=dn?Xe:Xe[Symbol.iterator]();;){var Xt;if(dn){if(ht>=Xe.length)break;Xt=Xe[ht++]}else{if(ht=Xe.next(),ht.done)break;Xt=ht.value}let ue=Xt;fe.has(ue.toLowerCase())&&U.delete(ue)}return ze});return function(z,U,G,re){return Y.apply(this,arguments)}})(),o=(()=>{var Y=(0,(n||s()).default)(function*(V,z,U,G){let re=(()=>{var ue=(0,(n||s()).default)(function*(Ie){let be=Ie.src,se=Ie.dest,fn=Ie.onFresh||ot,et=Ie.onDone||ot;if(fe.has(se.toLowerCase())){et();return}if(fe.add(se.toLowerCase()),z.ignoreBasenames.indexOf((l||d()).default.basename(be))>=0)return;let Le=yield we(be),Re;Le.isDirectory()&&(Re=yield Pe(be));let Lt=yield ft(se);if(Lt){let Ge=yield we(se),Ve=Le.isSymbolicLink()&&Ge.isSymbolicLink(),Rt=Le.isDirectory()&&Ge.isDirectory(),vt=Le.isFile()&&Ge.isFile();if(Le.mode!==Ge.mode)try{yield De(se,Le.mode)}catch(Me){G.verbose(Me)}if(vt&&ve.has(se)){et(),G.verbose(G.lang("verboseFileSkipArtifact",be));return}if(vt&&Le.ino!==null&&Le.ino===Ge.ino){et(),G.verbose(G.lang("verboseFileSkip",be,se,Le.ino));return}if(Ve){let Me=yield pe(be);if(Me===(yield pe(se))){et(),G.verbose(G.lang("verboseFileSkipSymlink",be,se,Me));return}}if(Rt){let Me=yield Pe(se);Zt(Re,"src files not initialised");for(var tt=Me,Ye=Array.isArray(tt),kt=0,tt=Ye?tt:tt[Symbol.iterator]();;){var mt;if(Ye){if(kt>=tt.length)break;mt=tt[kt++]}else{if(kt=tt.next(),kt.done)break;mt=kt.value}let Mt=mt;if(Re.indexOf(Mt)<0){let At=(l||d()).default.join(se,Mt);if(U.add(At),(yield we(At)).isDirectory())for(var nt=yield Pe(At),_t=Array.isArray(nt),Pt=0,nt=_t?nt:nt[Symbol.iterator]();;){var gt;if(_t){if(Pt>=nt.length)break;gt=nt[Pt++]}else{if(Pt=nt.next(),Pt.done)break;gt=Pt.value}let er=gt;U.add((l||d()).default.join(At,er))}}}}}if(Le.isSymbolicLink()){fn();let Ge=yield pe(be);ze.symlink.push({dest:se,linkname:Ge}),et()}else if(Le.isDirectory()){G.verbose(G.lang("verboseFileFolder",se)),yield Ae(se);let Ge=se.split((l||d()).default.sep);for(;Ge.length;)fe.add(Ge.join((l||d()).default.sep).toLowerCase()),Ge.pop();Zt(Re,"src files not initialised");let Ve=Re.length;Ve||et();for(var rt=Re,en=Array.isArray(rt),It=0,rt=en?rt:rt[Symbol.iterator]();;){var yt;if(en){if(It>=rt.length)break;yt=rt[It++]}else{if(It=rt.next(),It.done)break;yt=It.value}let Rt=yt;V.push({onFresh:fn,src:(l||d()).default.join(be,Rt),dest:(l||d()).default.join(se,Rt),onDone:(function(vt){function Me(){return vt.apply(this,arguments)}return Me.toString=function(){return vt.toString()},Me})(function(){--Ve===0&&et()})})}}else if(Le.isFile())fn(),ze.link.push({src:be,dest:se,removeDest:Lt}),et();else throw new Error(`unsure how to copy this: ${be}`)});return function(be){return ue.apply(this,arguments)}})(),ve=new Set(z.artifactFiles||[]),fe=new Set;for(var ae=V,he=Array.isArray(ae),oe=0,ae=he?ae:ae[Symbol.iterator]();;){var _e;if(he){if(oe>=ae.length)break;_e=ae[oe++]}else{if(oe=ae.next(),oe.done)break;_e=oe.value}let ue=_e,Ie=ue.onDone||ot;ue.onDone=function(){z.onProgress(ue.dest),Ie()}}z.onStart(V.length);let ze={file:[],symlink:[],link:[]};for(;V.length;){let ue=V.splice(0,zt);yield Promise.all(ue.map(re))}for(var We=ve,wt=Array.isArray(We),pt=0,We=wt?We:We[Symbol.iterator]();;){var Wt;if(wt){if(pt>=We.length)break;Wt=We[pt++]}else{if(pt=We.next(),pt.done)break;Wt=pt.value}let ue=Wt;U.has(ue)&&(G.verbose(G.lang("verboseFilePhantomExtraneous",ue)),U.delete(ue))}for(var Xe=U,dn=Array.isArray(Xe),ht=0,Xe=dn?Xe:Xe[Symbol.iterator]();;){var Xt;if(dn){if(ht>=Xe.length)break;Xt=Xe[ht++]}else{if(ht=Xe.next(),ht.done)break;Xt=ht.value}let ue=Xt;fe.has(ue.toLowerCase())&&U.delete(ue)}return ze});return function(z,U,G,re){return Y.apply(this,arguments)}})(),a=e.copyBulk=(()=>{var Y=(0,(n||s()).default)(function*(V,z,U){let G={onStart:U&&U.onStart||ot,onProgress:U&&U.onProgress||ot,possibleExtraneous:U?U.possibleExtraneous:new Set,ignoreBasenames:U&&U.ignoreBasenames||[],artifactFiles:U&&U.artifactFiles||[]},re=yield i(V,G,G.possibleExtraneous,z);G.onStart(re.file.length+re.symlink.length+re.link.length);let ve=re.file,fe=new Map;yield(E||O()).queue(ve,(()=>{var oe=(0,(n||s()).default)(function*(ae){let _e;for(;_e=fe.get(ae.dest);)yield _e;z.verbose(z.lang("verboseFileCopy",ae.src,ae.dest));let ze=(0,(W||Z()).copyFile)(ae,function(){return fe.delete(ae.dest)});return fe.set(ae.dest,ze),G.onProgress(ae.dest),ze});return function(ae){return oe.apply(this,arguments)}})(),zt);let he=re.symlink;yield(E||O()).queue(he,function(oe){let ae=(l||d()).default.resolve((l||d()).default.dirname(oe.dest),oe.linkname);return z.verbose(z.lang("verboseFileSymlink",oe.dest,ae)),$(ae,oe.dest)})});return function(z,U,G){return Y.apply(this,arguments)}})(),u=e.hardlinkBulk=(()=>{var Y=(0,(n||s()).default)(function*(V,z,U){let G={onStart:U&&U.onStart||ot,onProgress:U&&U.onProgress||ot,possibleExtraneous:U?U.possibleExtraneous:new Set,artifactFiles:U&&U.artifactFiles||[],ignoreBasenames:[]},re=yield o(V,G,G.possibleExtraneous,z);G.onStart(re.file.length+re.symlink.length+re.link.length);let ve=re.link;yield(E||O()).queue(ve,(()=>{var he=(0,(n||s()).default)(function*(oe){z.verbose(z.lang("verboseFileLink",oe.src,oe.dest)),oe.removeDest&&(yield(0,(W||Z()).unlink)(oe.dest)),yield Cn(oe.src,oe.dest)});return function(oe){return he.apply(this,arguments)}})(),zt);let fe=re.symlink;yield(E||O()).queue(fe,function(he){let oe=(l||d()).default.resolve((l||d()).default.dirname(he.dest),he.linkname);return z.verbose(z.lang("verboseFileSymlink",he.dest,oe)),$(oe,he.dest)})});return function(z,U,G){return Y.apply(this,arguments)}})(),c=e.readFileAny=(()=>{var Y=(0,(n||s()).default)(function*(V){for(var G=V,z=Array.isArray(G),U=0,G=z?G:G[Symbol.iterator]();;){var re;if(z){if(U>=G.length)break;re=G[U++]}else{if(U=G.next(),U.done)break;re=U.value}let ve=re;if(yield ft(ve))return _n(ve)}return null});return function(z){return Y.apply(this,arguments)}})(),f=e.readJson=(()=>{var Y=(0,(n||s()).default)(function*(V){return(yield p(V)).object});return function(z){return Y.apply(this,arguments)}})(),p=e.readJsonAndFile=(()=>{var Y=(0,(n||s()).default)(function*(V){let z=yield _n(V);try{return{object:(0,(M||j()).default)(JSON.parse(un(z))),content:z}}catch(U){throw U.message=`${V}: ${U.message}`,U}});return function(z){return Y.apply(this,arguments)}})(),b=e.find=(()=>{var Y=(0,(n||s()).default)(function*(V,z){let U=z.split((l||d()).default.sep);for(;U.length;){let G=U.concat(V).join((l||d()).default.sep);if(yield ft(G))return G;U.pop()}return!1});return function(z,U){return Y.apply(this,arguments)}})(),$=e.symlink=(()=>{var Y=(0,(n||s()).default)(function*(V,z){try{if((yield we(z)).isSymbolicLink()&&(yield Be(z))===V)return}catch(U){if(U.code!=="ENOENT")throw U}if(yield(0,(W||Z()).unlink)(z),process.platform==="win32")yield Rn(V,z,"junction");else{let U;try{U=(l||d()).default.relative((S||L()).default.realpathSync((l||d()).default.dirname(z)),(S||L()).default.realpathSync(V))}catch(G){if(G.code!=="ENOENT")throw G;U=(l||d()).default.relative((l||d()).default.dirname(z),V)}yield Rn(U||".",z)}});return function(z,U){return Y.apply(this,arguments)}})(),h=e.walk=(()=>{var Y=(0,(n||s()).default)(function*(V,z,U=new Set){let G=[],re=yield Pe(V);U.size&&(re=re.filter(function(ae){return!U.has(ae)}));for(var he=re,ve=Array.isArray(he),fe=0,he=ve?he:he[Symbol.iterator]();;){var oe;if(ve){if(fe>=he.length)break;oe=he[fe++]}else{if(fe=he.next(),fe.done)break;oe=fe.value}let ae=oe,_e=z?(l||d()).default.join(z,ae):ae,ze=(l||d()).default.join(V,ae),wt=yield we(ze);G.push({relative:_e,basename:ae,absolute:ze,mtime:+wt.mtime}),wt.isDirectory()&&(G=G.concat(yield h(ze,_e,U)))}return G});return function(z,U){return Y.apply(this,arguments)}})(),T=e.getFileSizeOnDisk=(()=>{var Y=(0,(n||s()).default)(function*(V){let z=yield we(V),U=z.size,G=z.blksize;return Math.ceil(U/G)*G});return function(z){return Y.apply(this,arguments)}})(),x=(()=>{var Y=(0,(n||s()).default)(function*(V){if(!(yield ft(V)))return;let z=yield Q(V);for(let U=0;U<z.length;++U){if(z[U]===wo)return`\r
6
+ `;if(z[U]===ko)return`
7
7
  `}});return function(z){return Y.apply(this,arguments)}})(),k=e.writeFilePreservingEol=(()=>{var Y=(0,(n||s()).default)(function*(V,z){let U=(yield x(V))||(A||y()).default.EOL;U!==`
8
- `&&(z=z.replace(/\n/g,U)),yield ye(V,z)});return function(z,U){return Y.apply(this,arguments)}})(),C=e.hardlinksWork=(()=>{var Y=(0,(n||s()).default)(function*(V){let z="test-file"+Math.random(),U=(l||d()).default.join(V,z),G=(l||d()).default.join(V,z+"-link");try{yield ye(U,"test"),yield Cn(U,G)}catch{return!1}finally{yield(0,(W||Z()).unlink)(U),yield(0,(W||Z()).unlink)(G)}return!0});return function(z){return Y.apply(this,arguments)}})(),I=e.makeTempDir=(()=>{var Y=(0,(n||s()).default)(function*(V){let z=(l||d()).default.join((A||y()).default.tmpdir(),`yarn-${V||""}-${Date.now()}-${Math.random()}`);return yield(0,(W||Z()).unlink)(z),yield Ae(z),z});return function(z){return Y.apply(this,arguments)}})(),R=e.readFirstAvailableStream=(()=>{var Y=(0,(n||s()).default)(function*(V){for(var G=V,z=Array.isArray(G),U=0,G=z?G:G[Symbol.iterator]();;){var re;if(z){if(U>=G.length)break;re=G[U++]}else{if(U=G.next(),U.done)break;re=U.value}let ve=re;try{let fe=yield _(ve,"r");return(S||L()).default.createReadStream(ve,{fd:fe})}catch{}}return null});return function(z){return Y.apply(this,arguments)}})(),g=e.getFirstSuitableFolder=(()=>{var Y=(0,(n||s()).default)(function*(V,z=X.W_OK|X.X_OK){let U={skipped:[],folder:null};for(var ve=V,G=Array.isArray(ve),re=0,ve=G?ve:ve[Symbol.iterator]();;){var fe;if(G){if(re>=ve.length)break;fe=ve[re++]}else{if(re=ve.next(),re.done)break;fe=re.value}let he=fe;try{return yield Ae(he),yield De(he,z),U.folder=he,U}catch(oe){U.skipped.push({error:oe,folder:he})}}return U});return function(z){return Y.apply(this,arguments)}})();e.copy=An,e.readFile=qn,e.readFileRaw=Do,e.normalizeOS=Xr;var S;function L(){return S=F(t(3))}var D;function P(){return D=F(t(75))}var A;function y(){return A=F(t(36))}var l;function d(){return l=F(t(0))}var m;function v(){return m=F(t(84))}var E;function O(){return E=H(t(40))}var N;function w(){return N=t(40)}var M;function j(){return M=F(t(20))}var W;function Z(){return W=t(164)}function H(Y){if(Y&&Y.__esModule)return Y;var V={};if(Y!=null)for(var z in Y)Object.prototype.hasOwnProperty.call(Y,z)&&(V[z]=Y[z]);return V.default=Y,V}function F(Y){return Y&&Y.__esModule?Y:{default:Y}}let X=e.constants=typeof(S||L()).default.constants<"u"?(S||L()).default.constants:{R_OK:(S||L()).default.R_OK,W_OK:(S||L()).default.W_OK,X_OK:(S||L()).default.X_OK},q=e.lockQueue=new(m||v()).default("fs lock"),Q=e.readFileBuffer=(0,(N||w()).promisify)((S||L()).default.readFile),_=e.open=(0,(N||w()).promisify)((S||L()).default.open),ye=e.writeFile=(0,(N||w()).promisify)((S||L()).default.writeFile),pe=e.readlink=(0,(N||w()).promisify)((S||L()).default.readlink),Be=e.realpath=(0,(N||w()).promisify)((S||L()).default.realpath),Pe=e.readdir=(0,(N||w()).promisify)((S||L()).default.readdir),dt=e.rename=(0,(N||w()).promisify)((S||L()).default.rename),De=e.access=(0,(N||w()).promisify)((S||L()).default.access),Ne=e.stat=(0,(N||w()).promisify)((S||L()).default.stat),Ae=e.mkdirp=(0,(N||w()).promisify)(t(116)),ft=e.exists=(0,(N||w()).promisify)((S||L()).default.exists,!0),we=e.lstat=(0,(N||w()).promisify)((S||L()).default.lstat),Ct=e.chmod=(0,(N||w()).promisify)((S||L()).default.chmod),Cn=e.link=(0,(N||w()).promisify)((S||L()).default.link),Ln=e.glob=(0,(N||w()).promisify)((D||P()).default);e.unlink=(W||Z()).unlink;let zt=(S||L()).default.copyFile?128:4,Rn=(0,(N||w()).promisify)((S||L()).default.symlink),Zt=t(7),un=t(122),ot=()=>{};function An(Y,V,z){return a([{src:Y,dest:V}],z)}function qt(Y,V){return new Promise((z,U)=>{(S||L()).default.readFile(Y,V,function(G,re){G?U(G):z(re)})})}function qn(Y){return qt(Y,"utf8").then(Xr)}function Do(Y){return qt(Y,"binary")}function Xr(Y){return Y.replace(/\r\n/g,`
9
- `)}let No=13,wo=10}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPathKey=De;let n=t(36),s=t(0),i=t(45).default;var o=t(171);let a=o.getCacheDir,u=o.getConfigDir,c=o.getDataDir,f=t(227),p=e.DEPENDENCY_TYPES=["devDependencies","dependencies","optionalDependencies","peerDependencies"],b=e.RESOLUTIONS="resolutions",$=e.MANIFEST_FIELDS=[b,...p],h=e.SUPPORTED_NODE_VERSIONS="^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0",T=e.YARN_REGISTRY="https://registry.yarnpkg.com",x=e.YARN_DOCS="https://yarnpkg.com/en/docs/cli/",k=e.YARN_INSTALLER_SH="https://yarnpkg.com/install.sh",C=e.YARN_INSTALLER_MSI="https://yarnpkg.com/latest.msi",I=e.SELF_UPDATE_VERSION_URL="https://yarnpkg.com/latest-version",R=e.CACHE_VERSION=2,g=e.LOCKFILE_VERSION=1,S=e.NETWORK_CONCURRENCY=8,L=e.NETWORK_TIMEOUT=30*1e3,D=e.CHILD_CONCURRENCY=5,P=e.REQUIRED_PACKAGE_KEYS=["name","version","_uid"];function A(){let Ae=[a()];return process.getuid&&Ae.push(s.join(n.tmpdir(),`.yarn-cache-${process.getuid()}`)),Ae.push(s.join(n.tmpdir(),".yarn-cache")),Ae}let y=e.PREFERRED_MODULE_CACHE_DIRECTORIES=A(),l=e.CONFIG_DIRECTORY=u(),d=e.DATA_DIRECTORY=c(),m=e.LINK_REGISTRY_DIRECTORY=s.join(d,"link"),v=e.GLOBAL_MODULE_DIRECTORY=s.join(d,"global"),E=e.NODE_BIN_PATH=process.execPath,O=e.YARN_BIN_PATH=N();function N(){return f?__filename:s.join(__dirname,"..","bin","yarn.js")}let w=e.NODE_MODULES_FOLDER="node_modules",M=e.NODE_PACKAGE_JSON="package.json",j=e.POSIX_GLOBAL_PREFIX=`${process.env.DESTDIR||""}/usr/local`,W=e.FALLBACK_GLOBAL_PREFIX=s.join(i,".yarn"),Z=e.META_FOLDER=".yarn-meta",H=e.INTEGRITY_FILENAME=".yarn-integrity",F=e.LOCKFILE_FILENAME="yarn.lock",X=e.METADATA_FILENAME=".yarn-metadata.json",q=e.TARBALL_FILENAME=".yarn-tarball.tgz",Q=e.CLEAN_FILENAME=".yarnclean",_=e.NPM_LOCK_FILENAME="package-lock.json",ye=e.NPM_SHRINKWRAP_FILENAME="npm-shrinkwrap.json",pe=e.DEFAULT_INDENT=" ",Be=e.SINGLE_INSTANCE_PORT=31997,Pe=e.SINGLE_INSTANCE_FILENAME=".yarn-single-instance",dt=e.ENV_PATH_KEY=De(process.platform,process.env);function De(Ae,ft){let we="PATH";if(Ae==="win32"){we="Path";for(let Ct in ft)Ct.toLowerCase()==="path"&&(we=Ct)}return we}let Ne=e.VERSION_COLOR_SCHEME={major:"red",premajor:"red",minor:"yellow",preminor:"yellow",patch:"green",prepatch:"green",prerelease:"red",unchanged:"white",unknown:"red"}}),(function(r,e,t){"use strict";var n=process.env.NODE_ENV,s=function(i,o,a,u,c,f,p,b){if(n!=="production"&&o===void 0)throw new Error("invariant requires an error message argument");if(!i){var $;if(o===void 0)$=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=[a,u,c,f,p,b],T=0;$=new Error(o.replace(/%s/g,function(){return h[T++]})),$.name="Invariant Violation"}throw $.framesToPop=1,$}};r.exports=s}),,(function(r,e){r.exports=require("crypto")}),,(function(r,e){var t=r.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=t)}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sortAlpha=s,e.entries=i,e.removePrefix=o,e.removeSuffix=a,e.addSuffix=u,e.hyphenate=c,e.camelCase=f,e.compareSortedArrays=p,e.sleep=b;let n=t(176);function s($,h){let T=Math.min($.length,h.length);for(let x=0;x<T;x++){let k=$.charCodeAt(x),C=h.charCodeAt(x);if(k!==C)return k-C}return $.length-h.length}function i($){let h=[];if($)for(let T in $)h.push([T,$[T]]);return h}function o($,h){return $.startsWith(h)&&($=$.slice(h.length)),$}function a($,h){return $.endsWith(h)?$.slice(0,-h.length):$}function u($,h){return $.endsWith(h)?$:$+h}function c($){return $.replace(/[A-Z]/g,h=>"-"+h.charAt(0).toLowerCase())}function f($){return/[A-Z]/.test($)?null:n($)}function p($,h){if($.length!==h.length)return!1;for(let T=0,x=$.length;T<x;T++)if($[T]!==h[T])return!1;return!0}function b($){return new Promise(h=>{setTimeout(h,$)})}}),(function(r,e,t){var n=t(107)("wks"),s=t(111),i=t(11).Symbol,o=typeof i=="function",a=r.exports=function(u){return n[u]||(n[u]=o&&i[u]||(o?i:s)("Symbol."+u))};a.store=n}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n;function s(){return n=R(t(1))}var i;function o(){return i=t(81)}Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return R(i||o()).default}});var a;function u(){return a=t(150)}Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return R(a||u()).default}}),e.implodeEntry=l,e.explodeEntry=d;var c;function f(){return c=t(12)}var p;function b(){return p=t(29)}var $;function h(){return $=R(t(81))}var T;function x(){return T=t(6)}var k;function C(){return k=I(t(5))}function I(v){if(v&&v.__esModule)return v;var E={};if(v!=null)for(var O in v)Object.prototype.hasOwnProperty.call(v,O)&&(E[O]=v[O]);return E.default=v,E}function R(v){return v&&v.__esModule?v:{default:v}}let g=t(7),S=t(0),L=t(55);function D(v){return(0,(p||b()).normalizePattern)(v).name}function P(v){return v&&Object.keys(v).length?v:void 0}function A(v){return v.resolved||(v.reference&&v.hash?`${v.reference}#${v.hash}`:null)}function y(v){return v.toString().split(" ").sort().join(" ")}function l(v,E){let O=D(v),N=E.integrity?y(E.integrity):"",w={name:O===E.name?void 0:E.name,version:E.version,uid:E.uid===E.version?void 0:E.uid,resolved:E.resolved,registry:E.registry==="npm"?void 0:E.registry,dependencies:P(E.dependencies),optionalDependencies:P(E.optionalDependencies),permissions:P(E.permissions),prebuiltVariants:P(E.prebuiltVariants)};return N&&(w.integrity=N),w}function d(v,E){E.optionalDependencies=E.optionalDependencies||{},E.dependencies=E.dependencies||{},E.uid=E.uid||E.version,E.permissions=E.permissions||{},E.registry=E.registry||"npm",E.name=E.name||D(v);let O=E.integrity;return O&&O.isIntegrity&&(E.integrity=L.parse(O)),E}class m{constructor({cache:E,source:O,parseResultType:N}={}){this.source=O||"",this.cache=E,this.parseResultType=N}hasEntriesExistWithoutIntegrity(){if(!this.cache)return!1;for(let E in this.cache)if(!/^.*@(file:|http)/.test(E)&&this.cache[E]&&!this.cache[E].integrity)return!0;return!1}static fromDirectory(E,O){return(0,(n||s()).default)(function*(){let N=S.join(E,(T||x()).LOCKFILE_FILENAME),w,M="",j;return(yield(k||C()).exists(N))?(M=yield(k||C()).readFile(N),j=(0,($||h()).default)(M,N),O&&(j.type==="merge"?O.info(O.lang("lockfileMerged")):j.type==="conflict"&&O.warn(O.lang("lockfileConflict"))),w=j.object):O&&O.info(O.lang("noLockfileFound")),new m({cache:w,source:M,parseResultType:j&&j.type})})()}getLocked(E){let O=this.cache;if(!O)return;let N=E in O&&O[E];if(typeof N=="string")return this.getLocked(N);if(N)return d(E,N),N}removePattern(E){let O=this.cache;O&&delete O[E]}getLockfile(E){let O={},N=new Map,w=Object.keys(E).sort((c||f()).sortAlpha);for(var W=w,M=Array.isArray(W),j=0,W=M?W:W[Symbol.iterator]();;){var Z;if(M){if(j>=W.length)break;Z=W[j++]}else{if(j=W.next(),j.done)break;Z=j.value}let H=Z,F=E[H],X=F._remote,q=F._reference;g(q,"Package is missing a reference"),g(X,"Package is missing a remote");let Q=A(X),_=Q&&N.get(Q);if(_){O[H]=_,!_.name&&D(H)!==F.name&&(_.name=F.name);continue}let ye=l(H,{name:F.name,version:F.version,uid:F._uid,resolved:X.resolved,integrity:X.integrity,registry:X.registry,dependencies:F.dependencies,peerDependencies:F.peerDependencies,optionalDependencies:F.optionalDependencies,permissions:q.permissions,prebuiltVariants:F.prebuiltVariants});O[H]=ye,Q&&N.set(Q,ye)}return O}}e.default=m}),,,(function(r,e){r.exports=require("stream")}),,,(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(s={}){if(Array.isArray(s))for(var a=s,i=Array.isArray(a),o=0,a=i?a:a[Symbol.iterator]();;){var u;if(i){if(o>=a.length)break;u=a[o++]}else{if(o=a.next(),o.done)break;u=o.value}n(u)}else if((s!==null&&typeof s=="object"||typeof s=="function")&&(Object.setPrototypeOf(s,null),typeof s=="object"))for(let c in s)n(s[c]);return s}}),,(function(r,e){r.exports=require("assert")}),(function(r,e){var t=r.exports={version:"2.5.7"};typeof __e=="number"&&(__e=t)}),,,,(function(r,e,t){var n=t(34);r.exports=function(s){if(!n(s))throw TypeError(s+" is not an object!");return s}}),,(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizePattern=n;function n(s){let i=!1,o="latest",a=s,u=!1;a[0]==="@"&&(u=!0,a=a.slice(1));let c=a.split("@");return c.length>1&&(a=c.shift(),o=c.join("@"),o?i=!0:o="*"),u&&(a=`@${a}`),{name:a,range:o,hasVersion:i}}}),,(function(r,e,t){var n=t(50),s=t(106);r.exports=t(33)?function(i,o,a){return n.f(i,o,s(1,a))}:function(i,o,a){return i[o]=a,i}}),(function(r,e,t){var n=t(63),s=n.Buffer;function i(a,u){for(var c in a)u[c]=a[c]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?r.exports=n:(i(n,e),e.Buffer=o);function o(a,u,c){return s(a,u,c)}i(s,o),o.from=function(a,u,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return s(a,u,c)},o.alloc=function(a,u,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var f=s(a);return u!==void 0?typeof c=="string"?f.fill(u,c):f.fill(u):f.fill(0),f},o.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return s(a)},o.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(a)}}),(function(r,e,t){r.exports=!t(85)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})}),(function(r,e){r.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}}),(function(r,e){r.exports={}}),(function(r,e){r.exports=require("os")}),,,,(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wait=n,e.promisify=s,e.queue=i;function n(o){return new Promise(a=>{setTimeout(a,o)})}function s(o,a){return function(...u){return new Promise(function(c,f){u.push(function(p,...b){let $=b;b.length<=1&&($=b[0]),a&&($=p,p=null),p?f(p):c($)}),o.apply(null,u)})}}function i(o,a,u=1/0){u=Math.min(u,o.length),o=o.slice();let c=[],f=o.length;return f?new Promise((p,b)=>{for(let h=0;h<u;h++)$();function $(){let h=o.shift();a(h).then(function(x){c.push(x),f--,f===0?p(c):o.length&&$()},b)}}):Promise.resolve(c)}}),(function(r,e,t){var n=t(11),s=t(23),i=t(48),o=t(31),a=t(49),u="prototype",c=function(f,p,b){var $=f&c.F,h=f&c.G,T=f&c.S,x=f&c.P,k=f&c.B,C=f&c.W,I=h?s:s[p]||(s[p]={}),R=I[u],g=h?n:T?n[p]:(n[p]||{})[u],S,L,D;h&&(b=p);for(S in b)L=!$&&g&&g[S]!==void 0,!(L&&a(I,S))&&(D=L?g[S]:b[S],I[S]=h&&typeof g[S]!="function"?b[S]:k&&L?i(D,n):C&&g[S]==D?(function(P){var A=function(y,l,d){if(this instanceof P){switch(arguments.length){case 0:return new P;case 1:return new P(y);case 2:return new P(y,l)}return new P(y,l,d)}return P.apply(this,arguments)};return A[u]=P[u],A})(D):x&&typeof D=="function"?i(Function.call,D):D,x&&((I.virtual||(I.virtual={}))[S]=D,f&c.R&&R&&!R[S]&&o(R,S,D)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,r.exports=c}),(function(r,e,t){try{var n=t(2);if(typeof n.inherits!="function")throw"";r.exports=n.inherits}catch{r.exports=t(224)}}),,,(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.home=void 0;var n;function s(){return n=i(t(169))}function i(c){return c&&c.__esModule?c:{default:c}}let o=t(0),a=e.home=t(36).homedir(),u=(n||s()).default?o.resolve("/usr/local/share"):a;e.default=u}),(function(r,e){r.exports=function(t){if(typeof t!="function")throw TypeError(t+" is not a function!");return t}}),(function(r,e){var t={}.toString;r.exports=function(n){return t.call(n).slice(8,-1)}}),(function(r,e,t){var n=t(46);r.exports=function(s,i,o){if(n(s),i===void 0)return s;switch(o){case 1:return function(a){return s.call(i,a)};case 2:return function(a,u){return s.call(i,a,u)};case 3:return function(a,u,c){return s.call(i,a,u,c)}}return function(){return s.apply(i,arguments)}}}),(function(r,e){var t={}.hasOwnProperty;r.exports=function(n,s){return t.call(n,s)}}),(function(r,e,t){var n=t(27),s=t(184),i=t(201),o=Object.defineProperty;e.f=t(33)?Object.defineProperty:function(u,c,f){if(n(u),c=i(c,!0),n(f),s)try{return o(u,c,f)}catch{}if("get"in f||"set"in f)throw TypeError("Accessors not supported!");return"value"in f&&(u[c]=f.value),u}}),,,,(function(r,e){r.exports=require("events")}),(function(r,e,t){"use strict";let n=t(32).Buffer,s=t(9),i=t(17).Transform,o=["sha256","sha384","sha512"],a=/^[a-z0-9+/]+(?:=?=?)$/i,u=/^([^-]+)-([^?]+)([?\S*]*)$/,c=/^([^-]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)*$/,f=/^[\x21-\x7E]+$/;class p{get isHash(){return!0}constructor(y,l){let d=!!(l&&l.strict);this.source=y.trim();let m=this.source.match(d?c:u);if(!m||d&&!o.some(E=>E===m[1]))return;this.algorithm=m[1],this.digest=m[2];let v=m[3];this.options=v?v.slice(1).split("?"):[]}hexDigest(){return this.digest&&n.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}toString(y){if(y&&y.strict&&!(o.some(d=>d===this.algorithm)&&this.digest.match(a)&&(this.options||[]).every(d=>d.match(f))))return"";let l=this.options&&this.options.length?`?${this.options.join("?")}`:"";return`${this.algorithm}-${this.digest}${l}`}}class b{get isIntegrity(){return!0}toJSON(){return this.toString()}toString(y){y=y||{};let l=y.sep||" ";return y.strict&&(l=l.replace(/\S+/g," ")),Object.keys(this).map(d=>this[d].map(m=>p.prototype.toString.call(m,y)).filter(m=>m.length).join(l)).filter(d=>d.length).join(l)}concat(y,l){let d=typeof y=="string"?y:T(y,l);return $(`${this.toString(l)} ${d}`,l)}hexDigest(){return $(this,{single:!0}).hexDigest()}match(y,l){let d=$(y,l),m=d.pickAlgorithm(l);return this[m]&&d[m]&&this[m].find(v=>d[m].find(E=>v.digest===E.digest))||!1}pickAlgorithm(y){let l=y&&y.pickAlgorithm||P,d=Object.keys(this);if(!d.length)throw new Error(`No algorithms available for ${JSON.stringify(this.toString())}`);return d.reduce((m,v)=>l(m,v)||m)}}r.exports.parse=$;function $(A,y){if(y=y||{},typeof A=="string")return h(A,y);if(A.algorithm&&A.digest){let l=new b;return l[A.algorithm]=[A],h(T(l,y),y)}else return h(T(A,y),y)}function h(A,y){return y.single?new p(A,y):A.trim().split(/\s+/).reduce((l,d)=>{let m=new p(d,y);if(m.algorithm&&m.digest){let v=m.algorithm;l[v]||(l[v]=[]),l[v].push(m)}return l},new b)}r.exports.stringify=T;function T(A,y){return A.algorithm&&A.digest?p.prototype.toString.call(A,y):typeof A=="string"?T($(A,y),y):b.prototype.toString.call(A,y)}r.exports.fromHex=x;function x(A,y,l){let d=l&&l.options&&l.options.length?`?${l.options.join("?")}`:"";return $(`${y}-${n.from(A,"hex").toString("base64")}${d}`,l)}r.exports.fromData=k;function k(A,y){y=y||{};let l=y.algorithms||["sha512"],d=y.options&&y.options.length?`?${y.options.join("?")}`:"";return l.reduce((m,v)=>{let E=s.createHash(v).update(A).digest("base64"),O=new p(`${v}-${E}${d}`,y);if(O.algorithm&&O.digest){let N=O.algorithm;m[N]||(m[N]=[]),m[N].push(O)}return m},new b)}r.exports.fromStream=C;function C(A,y){y=y||{};let l=y.Promise||Promise,d=g(y);return new l((m,v)=>{A.pipe(d),A.on("error",v),d.on("error",v);let E;d.on("integrity",O=>{E=O}),d.on("end",()=>m(E)),d.on("data",()=>{})})}r.exports.checkData=I;function I(A,y,l){if(l=l||{},y=$(y,l),!Object.keys(y).length){if(l.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let d=y.pickAlgorithm(l),m=s.createHash(d).update(A).digest("base64"),v=$({algorithm:d,digest:m}),E=v.match(y,l);if(E||!l.error)return E;if(typeof l.size=="number"&&A.length!==l.size){let O=new Error(`data size mismatch when checking ${y}.
8
+ `&&(z=z.replace(/\n/g,U)),yield ye(V,z)});return function(z,U){return Y.apply(this,arguments)}})(),C=e.hardlinksWork=(()=>{var Y=(0,(n||s()).default)(function*(V){let z="test-file"+Math.random(),U=(l||d()).default.join(V,z),G=(l||d()).default.join(V,z+"-link");try{yield ye(U,"test"),yield Cn(U,G)}catch{return!1}finally{yield(0,(W||Z()).unlink)(U),yield(0,(W||Z()).unlink)(G)}return!0});return function(z){return Y.apply(this,arguments)}})(),I=e.makeTempDir=(()=>{var Y=(0,(n||s()).default)(function*(V){let z=(l||d()).default.join((A||y()).default.tmpdir(),`yarn-${V||""}-${Date.now()}-${Math.random()}`);return yield(0,(W||Z()).unlink)(z),yield Ae(z),z});return function(z){return Y.apply(this,arguments)}})(),R=e.readFirstAvailableStream=(()=>{var Y=(0,(n||s()).default)(function*(V){for(var G=V,z=Array.isArray(G),U=0,G=z?G:G[Symbol.iterator]();;){var re;if(z){if(U>=G.length)break;re=G[U++]}else{if(U=G.next(),U.done)break;re=U.value}let ve=re;try{let fe=yield _(ve,"r");return(S||L()).default.createReadStream(ve,{fd:fe})}catch{}}return null});return function(z){return Y.apply(this,arguments)}})(),g=e.getFirstSuitableFolder=(()=>{var Y=(0,(n||s()).default)(function*(V,z=X.W_OK|X.X_OK){let U={skipped:[],folder:null};for(var ve=V,G=Array.isArray(ve),re=0,ve=G?ve:ve[Symbol.iterator]();;){var fe;if(G){if(re>=ve.length)break;fe=ve[re++]}else{if(re=ve.next(),re.done)break;fe=re.value}let he=fe;try{return yield Ae(he),yield De(he,z),U.folder=he,U}catch(oe){U.skipped.push({error:oe,folder:he})}}return U});return function(z){return Y.apply(this,arguments)}})();e.copy=An,e.readFile=_n,e.readFileRaw=No,e.normalizeOS=Gr;var S;function L(){return S=F(t(3))}var D;function P(){return D=F(t(75))}var A;function y(){return A=F(t(36))}var l;function d(){return l=F(t(0))}var m;function v(){return m=F(t(84))}var E;function O(){return E=H(t(40))}var N;function w(){return N=t(40)}var M;function j(){return M=F(t(20))}var W;function Z(){return W=t(164)}function H(Y){if(Y&&Y.__esModule)return Y;var V={};if(Y!=null)for(var z in Y)Object.prototype.hasOwnProperty.call(Y,z)&&(V[z]=Y[z]);return V.default=Y,V}function F(Y){return Y&&Y.__esModule?Y:{default:Y}}let X=e.constants=typeof(S||L()).default.constants<"u"?(S||L()).default.constants:{R_OK:(S||L()).default.R_OK,W_OK:(S||L()).default.W_OK,X_OK:(S||L()).default.X_OK},q=e.lockQueue=new(m||v()).default("fs lock"),Q=e.readFileBuffer=(0,(N||w()).promisify)((S||L()).default.readFile),_=e.open=(0,(N||w()).promisify)((S||L()).default.open),ye=e.writeFile=(0,(N||w()).promisify)((S||L()).default.writeFile),pe=e.readlink=(0,(N||w()).promisify)((S||L()).default.readlink),Be=e.realpath=(0,(N||w()).promisify)((S||L()).default.realpath),Pe=e.readdir=(0,(N||w()).promisify)((S||L()).default.readdir),dt=e.rename=(0,(N||w()).promisify)((S||L()).default.rename),De=e.access=(0,(N||w()).promisify)((S||L()).default.access),Ne=e.stat=(0,(N||w()).promisify)((S||L()).default.stat),Ae=e.mkdirp=(0,(N||w()).promisify)(t(116)),ft=e.exists=(0,(N||w()).promisify)((S||L()).default.exists,!0),we=e.lstat=(0,(N||w()).promisify)((S||L()).default.lstat),Ct=e.chmod=(0,(N||w()).promisify)((S||L()).default.chmod),Cn=e.link=(0,(N||w()).promisify)((S||L()).default.link),Ln=e.glob=(0,(N||w()).promisify)((D||P()).default);e.unlink=(W||Z()).unlink;let zt=(S||L()).default.copyFile?128:4,Rn=(0,(N||w()).promisify)((S||L()).default.symlink),Zt=t(7),un=t(122),ot=()=>{};function An(Y,V,z){return a([{src:Y,dest:V}],z)}function qt(Y,V){return new Promise((z,U)=>{(S||L()).default.readFile(Y,V,function(G,re){G?U(G):z(re)})})}function _n(Y){return qt(Y,"utf8").then(Gr)}function No(Y){return qt(Y,"binary")}function Gr(Y){return Y.replace(/\r\n/g,`
9
+ `)}let wo=13,ko=10}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPathKey=De;let n=t(36),s=t(0),i=t(45).default;var o=t(171);let a=o.getCacheDir,u=o.getConfigDir,c=o.getDataDir,f=t(227),p=e.DEPENDENCY_TYPES=["devDependencies","dependencies","optionalDependencies","peerDependencies"],b=e.RESOLUTIONS="resolutions",$=e.MANIFEST_FIELDS=[b,...p],h=e.SUPPORTED_NODE_VERSIONS="^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0",T=e.YARN_REGISTRY="https://registry.yarnpkg.com",x=e.YARN_DOCS="https://yarnpkg.com/en/docs/cli/",k=e.YARN_INSTALLER_SH="https://yarnpkg.com/install.sh",C=e.YARN_INSTALLER_MSI="https://yarnpkg.com/latest.msi",I=e.SELF_UPDATE_VERSION_URL="https://yarnpkg.com/latest-version",R=e.CACHE_VERSION=2,g=e.LOCKFILE_VERSION=1,S=e.NETWORK_CONCURRENCY=8,L=e.NETWORK_TIMEOUT=30*1e3,D=e.CHILD_CONCURRENCY=5,P=e.REQUIRED_PACKAGE_KEYS=["name","version","_uid"];function A(){let Ae=[a()];return process.getuid&&Ae.push(s.join(n.tmpdir(),`.yarn-cache-${process.getuid()}`)),Ae.push(s.join(n.tmpdir(),".yarn-cache")),Ae}let y=e.PREFERRED_MODULE_CACHE_DIRECTORIES=A(),l=e.CONFIG_DIRECTORY=u(),d=e.DATA_DIRECTORY=c(),m=e.LINK_REGISTRY_DIRECTORY=s.join(d,"link"),v=e.GLOBAL_MODULE_DIRECTORY=s.join(d,"global"),E=e.NODE_BIN_PATH=process.execPath,O=e.YARN_BIN_PATH=N();function N(){return f?__filename:s.join(__dirname,"..","bin","yarn.js")}let w=e.NODE_MODULES_FOLDER="node_modules",M=e.NODE_PACKAGE_JSON="package.json",j=e.POSIX_GLOBAL_PREFIX=`${process.env.DESTDIR||""}/usr/local`,W=e.FALLBACK_GLOBAL_PREFIX=s.join(i,".yarn"),Z=e.META_FOLDER=".yarn-meta",H=e.INTEGRITY_FILENAME=".yarn-integrity",F=e.LOCKFILE_FILENAME="yarn.lock",X=e.METADATA_FILENAME=".yarn-metadata.json",q=e.TARBALL_FILENAME=".yarn-tarball.tgz",Q=e.CLEAN_FILENAME=".yarnclean",_=e.NPM_LOCK_FILENAME="package-lock.json",ye=e.NPM_SHRINKWRAP_FILENAME="npm-shrinkwrap.json",pe=e.DEFAULT_INDENT=" ",Be=e.SINGLE_INSTANCE_PORT=31997,Pe=e.SINGLE_INSTANCE_FILENAME=".yarn-single-instance",dt=e.ENV_PATH_KEY=De(process.platform,process.env);function De(Ae,ft){let we="PATH";if(Ae==="win32"){we="Path";for(let Ct in ft)Ct.toLowerCase()==="path"&&(we=Ct)}return we}let Ne=e.VERSION_COLOR_SCHEME={major:"red",premajor:"red",minor:"yellow",preminor:"yellow",patch:"green",prepatch:"green",prerelease:"red",unchanged:"white",unknown:"red"}}),(function(r,e,t){"use strict";var n=process.env.NODE_ENV,s=function(i,o,a,u,c,f,p,b){if(n!=="production"&&o===void 0)throw new Error("invariant requires an error message argument");if(!i){var $;if(o===void 0)$=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=[a,u,c,f,p,b],T=0;$=new Error(o.replace(/%s/g,function(){return h[T++]})),$.name="Invariant Violation"}throw $.framesToPop=1,$}};r.exports=s}),,(function(r,e){r.exports=require("crypto")}),,(function(r,e){var t=r.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=t)}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sortAlpha=s,e.entries=i,e.removePrefix=o,e.removeSuffix=a,e.addSuffix=u,e.hyphenate=c,e.camelCase=f,e.compareSortedArrays=p,e.sleep=b;let n=t(176);function s($,h){let T=Math.min($.length,h.length);for(let x=0;x<T;x++){let k=$.charCodeAt(x),C=h.charCodeAt(x);if(k!==C)return k-C}return $.length-h.length}function i($){let h=[];if($)for(let T in $)h.push([T,$[T]]);return h}function o($,h){return $.startsWith(h)&&($=$.slice(h.length)),$}function a($,h){return $.endsWith(h)?$.slice(0,-h.length):$}function u($,h){return $.endsWith(h)?$:$+h}function c($){return $.replace(/[A-Z]/g,h=>"-"+h.charAt(0).toLowerCase())}function f($){return/[A-Z]/.test($)?null:n($)}function p($,h){if($.length!==h.length)return!1;for(let T=0,x=$.length;T<x;T++)if($[T]!==h[T])return!1;return!0}function b($){return new Promise(h=>{setTimeout(h,$)})}}),(function(r,e,t){var n=t(107)("wks"),s=t(111),i=t(11).Symbol,o=typeof i=="function",a=r.exports=function(u){return n[u]||(n[u]=o&&i[u]||(o?i:s)("Symbol."+u))};a.store=n}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n;function s(){return n=R(t(1))}var i;function o(){return i=t(81)}Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return R(i||o()).default}});var a;function u(){return a=t(150)}Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return R(a||u()).default}}),e.implodeEntry=l,e.explodeEntry=d;var c;function f(){return c=t(12)}var p;function b(){return p=t(29)}var $;function h(){return $=R(t(81))}var T;function x(){return T=t(6)}var k;function C(){return k=I(t(5))}function I(v){if(v&&v.__esModule)return v;var E={};if(v!=null)for(var O in v)Object.prototype.hasOwnProperty.call(v,O)&&(E[O]=v[O]);return E.default=v,E}function R(v){return v&&v.__esModule?v:{default:v}}let g=t(7),S=t(0),L=t(55);function D(v){return(0,(p||b()).normalizePattern)(v).name}function P(v){return v&&Object.keys(v).length?v:void 0}function A(v){return v.resolved||(v.reference&&v.hash?`${v.reference}#${v.hash}`:null)}function y(v){return v.toString().split(" ").sort().join(" ")}function l(v,E){let O=D(v),N=E.integrity?y(E.integrity):"",w={name:O===E.name?void 0:E.name,version:E.version,uid:E.uid===E.version?void 0:E.uid,resolved:E.resolved,registry:E.registry==="npm"?void 0:E.registry,dependencies:P(E.dependencies),optionalDependencies:P(E.optionalDependencies),permissions:P(E.permissions),prebuiltVariants:P(E.prebuiltVariants)};return N&&(w.integrity=N),w}function d(v,E){E.optionalDependencies=E.optionalDependencies||{},E.dependencies=E.dependencies||{},E.uid=E.uid||E.version,E.permissions=E.permissions||{},E.registry=E.registry||"npm",E.name=E.name||D(v);let O=E.integrity;return O&&O.isIntegrity&&(E.integrity=L.parse(O)),E}class m{constructor({cache:E,source:O,parseResultType:N}={}){this.source=O||"",this.cache=E,this.parseResultType=N}hasEntriesExistWithoutIntegrity(){if(!this.cache)return!1;for(let E in this.cache)if(!/^.*@(file:|http)/.test(E)&&this.cache[E]&&!this.cache[E].integrity)return!0;return!1}static fromDirectory(E,O){return(0,(n||s()).default)(function*(){let N=S.join(E,(T||x()).LOCKFILE_FILENAME),w,M="",j;return(yield(k||C()).exists(N))?(M=yield(k||C()).readFile(N),j=(0,($||h()).default)(M,N),O&&(j.type==="merge"?O.info(O.lang("lockfileMerged")):j.type==="conflict"&&O.warn(O.lang("lockfileConflict"))),w=j.object):O&&O.info(O.lang("noLockfileFound")),new m({cache:w,source:M,parseResultType:j&&j.type})})()}getLocked(E){let O=this.cache;if(!O)return;let N=E in O&&O[E];if(typeof N=="string")return this.getLocked(N);if(N)return d(E,N),N}removePattern(E){let O=this.cache;O&&delete O[E]}getLockfile(E){let O={},N=new Map,w=Object.keys(E).sort((c||f()).sortAlpha);for(var W=w,M=Array.isArray(W),j=0,W=M?W:W[Symbol.iterator]();;){var Z;if(M){if(j>=W.length)break;Z=W[j++]}else{if(j=W.next(),j.done)break;Z=j.value}let H=Z,F=E[H],X=F._remote,q=F._reference;g(q,"Package is missing a reference"),g(X,"Package is missing a remote");let Q=A(X),_=Q&&N.get(Q);if(_){O[H]=_,!_.name&&D(H)!==F.name&&(_.name=F.name);continue}let ye=l(H,{name:F.name,version:F.version,uid:F._uid,resolved:X.resolved,integrity:X.integrity,registry:X.registry,dependencies:F.dependencies,peerDependencies:F.peerDependencies,optionalDependencies:F.optionalDependencies,permissions:q.permissions,prebuiltVariants:F.prebuiltVariants});O[H]=ye,Q&&N.set(Q,ye)}return O}}e.default=m}),,,(function(r,e){r.exports=require("stream")}),,,(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(s={}){if(Array.isArray(s))for(var a=s,i=Array.isArray(a),o=0,a=i?a:a[Symbol.iterator]();;){var u;if(i){if(o>=a.length)break;u=a[o++]}else{if(o=a.next(),o.done)break;u=o.value}n(u)}else if((s!==null&&typeof s=="object"||typeof s=="function")&&(Object.setPrototypeOf(s,null),typeof s=="object"))for(let c in s)n(s[c]);return s}}),,(function(r,e){r.exports=require("assert")}),(function(r,e){var t=r.exports={version:"2.5.7"};typeof __e=="number"&&(__e=t)}),,,,(function(r,e,t){var n=t(34);r.exports=function(s){if(!n(s))throw TypeError(s+" is not an object!");return s}}),,(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizePattern=n;function n(s){let i=!1,o="latest",a=s,u=!1;a[0]==="@"&&(u=!0,a=a.slice(1));let c=a.split("@");return c.length>1&&(a=c.shift(),o=c.join("@"),o?i=!0:o="*"),u&&(a=`@${a}`),{name:a,range:o,hasVersion:i}}}),,(function(r,e,t){var n=t(50),s=t(106);r.exports=t(33)?function(i,o,a){return n.f(i,o,s(1,a))}:function(i,o,a){return i[o]=a,i}}),(function(r,e,t){var n=t(63),s=n.Buffer;function i(a,u){for(var c in a)u[c]=a[c]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?r.exports=n:(i(n,e),e.Buffer=o);function o(a,u,c){return s(a,u,c)}i(s,o),o.from=function(a,u,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return s(a,u,c)},o.alloc=function(a,u,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var f=s(a);return u!==void 0?typeof c=="string"?f.fill(u,c):f.fill(u):f.fill(0),f},o.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return s(a)},o.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(a)}}),(function(r,e,t){r.exports=!t(85)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})}),(function(r,e){r.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}}),(function(r,e){r.exports={}}),(function(r,e){r.exports=require("os")}),,,,(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wait=n,e.promisify=s,e.queue=i;function n(o){return new Promise(a=>{setTimeout(a,o)})}function s(o,a){return function(...u){return new Promise(function(c,f){u.push(function(p,...b){let $=b;b.length<=1&&($=b[0]),a&&($=p,p=null),p?f(p):c($)}),o.apply(null,u)})}}function i(o,a,u=1/0){u=Math.min(u,o.length),o=o.slice();let c=[],f=o.length;return f?new Promise((p,b)=>{for(let h=0;h<u;h++)$();function $(){let h=o.shift();a(h).then(function(x){c.push(x),f--,f===0?p(c):o.length&&$()},b)}}):Promise.resolve(c)}}),(function(r,e,t){var n=t(11),s=t(23),i=t(48),o=t(31),a=t(49),u="prototype",c=function(f,p,b){var $=f&c.F,h=f&c.G,T=f&c.S,x=f&c.P,k=f&c.B,C=f&c.W,I=h?s:s[p]||(s[p]={}),R=I[u],g=h?n:T?n[p]:(n[p]||{})[u],S,L,D;h&&(b=p);for(S in b)L=!$&&g&&g[S]!==void 0,!(L&&a(I,S))&&(D=L?g[S]:b[S],I[S]=h&&typeof g[S]!="function"?b[S]:k&&L?i(D,n):C&&g[S]==D?(function(P){var A=function(y,l,d){if(this instanceof P){switch(arguments.length){case 0:return new P;case 1:return new P(y);case 2:return new P(y,l)}return new P(y,l,d)}return P.apply(this,arguments)};return A[u]=P[u],A})(D):x&&typeof D=="function"?i(Function.call,D):D,x&&((I.virtual||(I.virtual={}))[S]=D,f&c.R&&R&&!R[S]&&o(R,S,D)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,r.exports=c}),(function(r,e,t){try{var n=t(2);if(typeof n.inherits!="function")throw"";r.exports=n.inherits}catch{r.exports=t(224)}}),,,(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.home=void 0;var n;function s(){return n=i(t(169))}function i(c){return c&&c.__esModule?c:{default:c}}let o=t(0),a=e.home=t(36).homedir(),u=(n||s()).default?o.resolve("/usr/local/share"):a;e.default=u}),(function(r,e){r.exports=function(t){if(typeof t!="function")throw TypeError(t+" is not a function!");return t}}),(function(r,e){var t={}.toString;r.exports=function(n){return t.call(n).slice(8,-1)}}),(function(r,e,t){var n=t(46);r.exports=function(s,i,o){if(n(s),i===void 0)return s;switch(o){case 1:return function(a){return s.call(i,a)};case 2:return function(a,u){return s.call(i,a,u)};case 3:return function(a,u,c){return s.call(i,a,u,c)}}return function(){return s.apply(i,arguments)}}}),(function(r,e){var t={}.hasOwnProperty;r.exports=function(n,s){return t.call(n,s)}}),(function(r,e,t){var n=t(27),s=t(184),i=t(201),o=Object.defineProperty;e.f=t(33)?Object.defineProperty:function(u,c,f){if(n(u),c=i(c,!0),n(f),s)try{return o(u,c,f)}catch{}if("get"in f||"set"in f)throw TypeError("Accessors not supported!");return"value"in f&&(u[c]=f.value),u}}),,,,(function(r,e){r.exports=require("events")}),(function(r,e,t){"use strict";let n=t(32).Buffer,s=t(9),i=t(17).Transform,o=["sha256","sha384","sha512"],a=/^[a-z0-9+/]+(?:=?=?)$/i,u=/^([^-]+)-([^?]+)([?\S*]*)$/,c=/^([^-]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)*$/,f=/^[\x21-\x7E]+$/;class p{get isHash(){return!0}constructor(y,l){let d=!!(l&&l.strict);this.source=y.trim();let m=this.source.match(d?c:u);if(!m||d&&!o.some(E=>E===m[1]))return;this.algorithm=m[1],this.digest=m[2];let v=m[3];this.options=v?v.slice(1).split("?"):[]}hexDigest(){return this.digest&&n.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}toString(y){if(y&&y.strict&&!(o.some(d=>d===this.algorithm)&&this.digest.match(a)&&(this.options||[]).every(d=>d.match(f))))return"";let l=this.options&&this.options.length?`?${this.options.join("?")}`:"";return`${this.algorithm}-${this.digest}${l}`}}class b{get isIntegrity(){return!0}toJSON(){return this.toString()}toString(y){y=y||{};let l=y.sep||" ";return y.strict&&(l=l.replace(/\S+/g," ")),Object.keys(this).map(d=>this[d].map(m=>p.prototype.toString.call(m,y)).filter(m=>m.length).join(l)).filter(d=>d.length).join(l)}concat(y,l){let d=typeof y=="string"?y:T(y,l);return $(`${this.toString(l)} ${d}`,l)}hexDigest(){return $(this,{single:!0}).hexDigest()}match(y,l){let d=$(y,l),m=d.pickAlgorithm(l);return this[m]&&d[m]&&this[m].find(v=>d[m].find(E=>v.digest===E.digest))||!1}pickAlgorithm(y){let l=y&&y.pickAlgorithm||P,d=Object.keys(this);if(!d.length)throw new Error(`No algorithms available for ${JSON.stringify(this.toString())}`);return d.reduce((m,v)=>l(m,v)||m)}}r.exports.parse=$;function $(A,y){if(y=y||{},typeof A=="string")return h(A,y);if(A.algorithm&&A.digest){let l=new b;return l[A.algorithm]=[A],h(T(l,y),y)}else return h(T(A,y),y)}function h(A,y){return y.single?new p(A,y):A.trim().split(/\s+/).reduce((l,d)=>{let m=new p(d,y);if(m.algorithm&&m.digest){let v=m.algorithm;l[v]||(l[v]=[]),l[v].push(m)}return l},new b)}r.exports.stringify=T;function T(A,y){return A.algorithm&&A.digest?p.prototype.toString.call(A,y):typeof A=="string"?T($(A,y),y):b.prototype.toString.call(A,y)}r.exports.fromHex=x;function x(A,y,l){let d=l&&l.options&&l.options.length?`?${l.options.join("?")}`:"";return $(`${y}-${n.from(A,"hex").toString("base64")}${d}`,l)}r.exports.fromData=k;function k(A,y){y=y||{};let l=y.algorithms||["sha512"],d=y.options&&y.options.length?`?${y.options.join("?")}`:"";return l.reduce((m,v)=>{let E=s.createHash(v).update(A).digest("base64"),O=new p(`${v}-${E}${d}`,y);if(O.algorithm&&O.digest){let N=O.algorithm;m[N]||(m[N]=[]),m[N].push(O)}return m},new b)}r.exports.fromStream=C;function C(A,y){y=y||{};let l=y.Promise||Promise,d=g(y);return new l((m,v)=>{A.pipe(d),A.on("error",v),d.on("error",v);let E;d.on("integrity",O=>{E=O}),d.on("end",()=>m(E)),d.on("data",()=>{})})}r.exports.checkData=I;function I(A,y,l){if(l=l||{},y=$(y,l),!Object.keys(y).length){if(l.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let d=y.pickAlgorithm(l),m=s.createHash(d).update(A).digest("base64"),v=$({algorithm:d,digest:m}),E=v.match(y,l);if(E||!l.error)return E;if(typeof l.size=="number"&&A.length!==l.size){let O=new Error(`data size mismatch when checking ${y}.
10
10
  Wanted: ${l.size}
11
11
  Found: ${A.length}`);throw O.code="EBADSIZE",O.found=A.length,O.expected=l.size,O.sri=y,O}else{let O=new Error(`Integrity checksum failed when using ${d}: Wanted ${y}, but got ${v}. (${A.length} bytes)`);throw O.code="EINTEGRITY",O.found=v,O.expected=y,O.algorithm=d,O.sri=y,O}}r.exports.checkStream=R;function R(A,y,l){l=l||{};let d=l.Promise||Promise,m=g(Object.assign({},l,{integrity:y}));return new d((v,E)=>{A.pipe(m),A.on("error",E),m.on("error",E);let O;m.on("verified",N=>{O=N}),m.on("end",()=>v(O)),m.on("data",()=>{})})}r.exports.integrityStream=g;function g(A){A=A||{};let y=A.integrity&&$(A.integrity,A),l=y&&Object.keys(y).length,d=l&&y.pickAlgorithm(A),m=l&&y[d],v=Array.from(new Set((A.algorithms||["sha512"]).concat(d?[d]:[]))),E=v.map(s.createHash),O=0,N=new i({transform(w,M,j){O+=w.length,E.forEach(W=>W.update(w,M)),j(null,w,M)}}).on("end",()=>{let w=A.options&&A.options.length?`?${A.options.join("?")}`:"",M=$(E.map((W,Z)=>`${v[Z]}-${W.digest("base64")}${w}`).join(" "),A),j=l&&M.match(y,A);if(typeof A.size=="number"&&O!==A.size){let W=new Error(`stream size mismatch when checking ${y}.
12
12
  Wanted: ${A.size}
@@ -32,8 +32,8 @@ ${C}`)}function T(x,k,C){let I=h(x,{indent:"",topLevel:!0});if(k)return I;let R=
32
32
  `+C),$.push(k+"m+"+e.humanize(this.diff)+"\x1B[0m")}else $[0]=u()+h+" "+$[0]}function u(){return e.inspectOpts.hideDate?"":new Date().toISOString()+" "}function c(){return process.stderr.write(s.format.apply(s,arguments)+`
33
33
  `)}function f($){$==null?delete process.env.DEBUG:process.env.DEBUG=$}function p(){return process.env.DEBUG}function b($){$.inspectOpts={};for(var h=Object.keys(e.inspectOpts),T=0;T<h.length;T++)$.inspectOpts[h[T]]=e.inspectOpts[h[T]]}e.enable(p())}),,,,(function(r,e,t){var n=t(0),s=process.platform==="win32",i=t(3),o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function a(){var b;if(o){var $=new Error;b=h}else b=T;return b;function h(x){x&&($.message=x.message,x=$,T(x))}function T(x){if(x){if(process.throwDeprecation)throw x;if(!process.noDeprecation){var k="fs: missing callback "+(x.stack||x.message);process.traceDeprecation?console.trace(k):console.error(k)}}}}function u(b){return typeof b=="function"?b:a()}var c=n.normalize;if(s)var f=/(.*?)(?:[\/\\]+|$)/g;else var f=/(.*?)(?:[\/]+|$)/g;if(s)var p=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else var p=/^[\/]*/;e.realpathSync=function($,h){if($=n.resolve($),h&&Object.prototype.hasOwnProperty.call(h,$))return h[$];var T=$,x={},k={},C,I,R,g;S();function S(){var l=p.exec($);C=l[0].length,I=l[0],R=l[0],g="",s&&!k[R]&&(i.lstatSync(R),k[R]=!0)}for(;C<$.length;){f.lastIndex=C;var L=f.exec($);if(g=I,I+=L[0],R=g+L[1],C=f.lastIndex,!(k[R]||h&&h[R]===R)){var D;if(h&&Object.prototype.hasOwnProperty.call(h,R))D=h[R];else{var P=i.lstatSync(R);if(!P.isSymbolicLink()){k[R]=!0,h&&(h[R]=R);continue}var A=null;if(!s){var y=P.dev.toString(32)+":"+P.ino.toString(32);x.hasOwnProperty(y)&&(A=x[y])}A===null&&(i.statSync(R),A=i.readlinkSync(R)),D=n.resolve(g,A),h&&(h[R]=D),s||(x[y]=A)}$=n.resolve(D,$.slice(C)),S()}}return h&&(h[T]=$),$},e.realpath=function($,h,T){if(typeof T!="function"&&(T=u(h),h=null),$=n.resolve($),h&&Object.prototype.hasOwnProperty.call(h,$))return process.nextTick(T.bind(null,null,h[$]));var x=$,k={},C={},I,R,g,S;L();function L(){var l=p.exec($);I=l[0].length,R=l[0],g=l[0],S="",s&&!C[g]?i.lstat(g,function(d){if(d)return T(d);C[g]=!0,D()}):process.nextTick(D)}function D(){if(I>=$.length)return h&&(h[x]=$),T(null,$);f.lastIndex=I;var l=f.exec($);return S=R,R+=l[0],g=S+l[1],I=f.lastIndex,C[g]||h&&h[g]===g?process.nextTick(D):h&&Object.prototype.hasOwnProperty.call(h,g)?y(h[g]):i.lstat(g,P)}function P(l,d){if(l)return T(l);if(!d.isSymbolicLink())return C[g]=!0,h&&(h[g]=g),process.nextTick(D);if(!s){var m=d.dev.toString(32)+":"+d.ino.toString(32);if(k.hasOwnProperty(m))return A(null,k[m],g)}i.stat(g,function(v){if(v)return T(v);i.readlink(g,function(E,O){s||(k[m]=O),A(E,O)})})}function A(l,d,m){if(l)return T(l);var v=n.resolve(S,d);h&&(h[m]=v),y(v)}function y(l){$=n.resolve(l,$.slice(I)),L()}}}),(function(r,e,t){r.exports=I,I.GlobSync=R;var n=t(3),s=t(114),i=t(60),o=i.Minimatch,a=t(75).Glob,u=t(2),c=t(0),f=t(22),p=t(76),b=t(115),$=b.alphasort,h=b.alphasorti,T=b.setopts,x=b.ownProp,k=b.childrenIgnored,C=b.isIgnored;function I(g,S){if(typeof S=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
34
34
  See: https://github.com/isaacs/node-glob/issues/167`);return new R(g,S).found}function R(g,S){if(!g)throw new Error("must provide pattern");if(typeof S=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
35
- See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof R))return new R(g,S);if(T(this,g,S),this.noprocess)return this;var L=this.minimatch.set.length;this.matches=new Array(L);for(var D=0;D<L;D++)this._process(this.minimatch.set[D],D,!1);this._finish()}R.prototype._finish=function(){if(f(this instanceof R),this.realpath){var g=this;this.matches.forEach(function(S,L){var D=g.matches[L]=Object.create(null);for(var P in S)try{P=g._makeAbs(P);var A=s.realpathSync(P,g.realpathCache);D[A]=!0}catch(y){if(y.syscall==="stat")D[g._makeAbs(P)]=!0;else throw y}})}b.finish(this)},R.prototype._process=function(g,S,L){f(this instanceof R);for(var D=0;typeof g[D]=="string";)D++;var P;switch(D){case g.length:this._processSimple(g.join("/"),S);return;case 0:P=null;break;default:P=g.slice(0,D).join("/");break}var A=g.slice(D),y;P===null?y=".":((p(P)||p(g.join("/")))&&(!P||!p(P))&&(P="/"+P),y=P);var l=this._makeAbs(y);if(!k(this,y)){var d=A[0]===i.GLOBSTAR;d?this._processGlobStar(P,y,l,A,S,L):this._processReaddir(P,y,l,A,S,L)}},R.prototype._processReaddir=function(g,S,L,D,P,A){var y=this._readdir(L,A);if(y){for(var l=D[0],d=!!this.minimatch.negate,m=l._glob,v=this.dot||m.charAt(0)===".",E=[],O=0;O<y.length;O++){var N=y[O];if(N.charAt(0)!=="."||v){var w;d&&!g?w=!N.match(l):w=N.match(l),w&&E.push(N)}}var M=E.length;if(M!==0){if(D.length===1&&!this.mark&&!this.stat){this.matches[P]||(this.matches[P]=Object.create(null));for(var O=0;O<M;O++){var N=E[O];g&&(g.slice(-1)!=="/"?N=g+"/"+N:N=g+N),N.charAt(0)==="/"&&!this.nomount&&(N=c.join(this.root,N)),this._emitMatch(P,N)}return}D.shift();for(var O=0;O<M;O++){var N=E[O],j;g?j=[g,N]:j=[N],this._process(j.concat(D),P,A)}}}},R.prototype._emitMatch=function(g,S){if(!C(this,S)){var L=this._makeAbs(S);if(this.mark&&(S=this._mark(S)),this.absolute&&(S=L),!this.matches[g][S]){if(this.nodir){var D=this.cache[L];if(D==="DIR"||Array.isArray(D))return}this.matches[g][S]=!0,this.stat&&this._stat(S)}}},R.prototype._readdirInGlobStar=function(g){if(this.follow)return this._readdir(g,!1);var S,L,D;try{L=n.lstatSync(g)}catch(A){if(A.code==="ENOENT")return null}var P=L&&L.isSymbolicLink();return this.symlinks[g]=P,!P&&L&&!L.isDirectory()?this.cache[g]="FILE":S=this._readdir(g,!1),S},R.prototype._readdir=function(g,S){var L;if(S&&!x(this.symlinks,g))return this._readdirInGlobStar(g);if(x(this.cache,g)){var D=this.cache[g];if(!D||D==="FILE")return null;if(Array.isArray(D))return D}try{return this._readdirEntries(g,n.readdirSync(g))}catch(P){return this._readdirError(g,P),null}},R.prototype._readdirEntries=function(g,S){if(!this.mark&&!this.stat)for(var L=0;L<S.length;L++){var D=S[L];g==="/"?D=g+D:D=g+"/"+D,this.cache[D]=!0}return this.cache[g]=S,S},R.prototype._readdirError=function(g,S){switch(S.code){case"ENOTSUP":case"ENOTDIR":var L=this._makeAbs(g);if(this.cache[L]="FILE",L===this.cwdAbs){var D=new Error(S.code+" invalid cwd "+this.cwd);throw D.path=this.cwd,D.code=S.code,D}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(g)]=!1;break;default:if(this.cache[this._makeAbs(g)]=!1,this.strict)throw S;this.silent||console.error("glob error",S);break}},R.prototype._processGlobStar=function(g,S,L,D,P,A){var y=this._readdir(L,A);if(y){var l=D.slice(1),d=g?[g]:[],m=d.concat(l);this._process(m,P,!1);var v=y.length,E=this.symlinks[L];if(!(E&&A))for(var O=0;O<v;O++){var N=y[O];if(!(N.charAt(0)==="."&&!this.dot)){var w=d.concat(y[O],l);this._process(w,P,!0);var M=d.concat(y[O],D);this._process(M,P,!0)}}}},R.prototype._processSimple=function(g,S){var L=this._stat(g);if(this.matches[S]||(this.matches[S]=Object.create(null)),!!L){if(g&&p(g)&&!this.nomount){var D=/[\/\\]$/.test(g);g.charAt(0)==="/"?g=c.join(this.root,g):(g=c.resolve(this.root,g),D&&(g+="/"))}process.platform==="win32"&&(g=g.replace(/\\/g,"/")),this._emitMatch(S,g)}},R.prototype._stat=function(g){var S=this._makeAbs(g),L=g.slice(-1)==="/";if(g.length>this.maxLength)return!1;if(!this.stat&&x(this.cache,S)){var y=this.cache[S];if(Array.isArray(y)&&(y="DIR"),!L||y==="DIR")return y;if(L&&y==="FILE")return!1}var D,P=this.statCache[S];if(!P){var A;try{A=n.lstatSync(S)}catch(l){if(l&&(l.code==="ENOENT"||l.code==="ENOTDIR"))return this.statCache[S]=!1,!1}if(A&&A.isSymbolicLink())try{P=n.statSync(S)}catch{P=A}else P=A}this.statCache[S]=P;var y=!0;return P&&(y=P.isDirectory()?"DIR":"FILE"),this.cache[S]=this.cache[S]||y,L&&y==="FILE"?!1:y},R.prototype._mark=function(g){return b.mark(this,g)},R.prototype._makeAbs=function(g){return b.makeAbs(this,g)}}),,,(function(r,e,t){"use strict";r.exports=function(n,s){s=s||process.argv;var i=s.indexOf("--"),o=/^--/.test(n)?"":"--",a=s.indexOf(o+n);return a!==-1&&(i!==-1?a<i:!0)}}),,(function(r,e,t){var n=t(123),s=Object.create(null),i=t(61);r.exports=n(o);function o(c,f){return s[c]?(s[c].push(f),null):(s[c]=[f],a(c))}function a(c){return i(function f(){var p=s[c],b=p.length,$=u(arguments);try{for(var h=0;h<b;h++)p[h].apply(null,$)}finally{p.length>b?(p.splice(0,b),process.nextTick(function(){f.apply(null,$)})):delete s[c]}})}function u(c){for(var f=c.length,p=[],b=0;b<f;b++)p[b]=c[b];return p}}),(function(r,e){typeof Object.create=="function"?r.exports=function(n,s){n.super_=s,n.prototype=Object.create(s.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:r.exports=function(n,s){n.super_=s;var i=function(){};i.prototype=s.prototype,n.prototype=new i,n.prototype.constructor=n}}),,,(function(r,e,t){r.exports=typeof t<"u"}),,(function(r,e){var t=1e3,n=t*60,s=n*60,i=s*24,o=i*365.25;r.exports=function(p,b){b=b||{};var $=typeof p;if($==="string"&&p.length>0)return a(p);if($==="number"&&isNaN(p)===!1)return b.long?c(p):u(p);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(p))};function a(p){if(p=String(p),!(p.length>100)){var b=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(p);if(b){var $=parseFloat(b[1]),h=(b[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return $*o;case"days":case"day":case"d":return $*i;case"hours":case"hour":case"hrs":case"hr":case"h":return $*s;case"minutes":case"minute":case"mins":case"min":case"m":return $*n;case"seconds":case"second":case"secs":case"sec":case"s":return $*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return $;default:return}}}}function u(p){return p>=i?Math.round(p/i)+"d":p>=s?Math.round(p/s)+"h":p>=n?Math.round(p/n)+"m":p>=t?Math.round(p/t)+"s":p+"ms"}function c(p){return f(p,i,"day")||f(p,s,"hour")||f(p,n,"minute")||f(p,t,"second")||p+" ms"}function f(p,b,$){if(!(p<b))return p<b*1.5?Math.floor(p/b)+" "+$:Math.ceil(p/b)+" "+$+"s"}}),,,,(function(r,e,t){r.exports=b,b.sync=C;var n=t(22),s=t(0),i=t(3),o=t(75),a=parseInt("666",8),u={nosort:!0,silent:!0},c=0,f=process.platform==="win32";function p(g){var S=["unlink","chmod","stat","lstat","rmdir","readdir"];S.forEach(function(L){g[L]=g[L]||i[L],L=L+"Sync",g[L]=g[L]||i[L]}),g.maxBusyTries=g.maxBusyTries||3,g.emfileWait=g.emfileWait||1e3,g.glob===!1&&(g.disableGlob=!0),g.disableGlob=g.disableGlob||!1,g.glob=g.glob||u}function b(g,S,L){typeof S=="function"&&(L=S,S={}),n(g,"rimraf: missing path"),n.equal(typeof g,"string","rimraf: path should be a string"),n.equal(typeof L,"function","rimraf: callback function required"),n(S,"rimraf: invalid options argument provided"),n.equal(typeof S,"object","rimraf: options should be object"),p(S);var D=0,P=null,A=0;if(S.disableGlob||!o.hasMagic(g))return l(null,[g]);S.lstat(g,function(d,m){if(!d)return l(null,[g]);o(g,S.glob,l)});function y(d){P=P||d,--A===0&&L(P)}function l(d,m){if(d)return L(d);if(A=m.length,A===0)return L();m.forEach(function(v){$(v,S,function E(O){if(O){if((O.code==="EBUSY"||O.code==="ENOTEMPTY"||O.code==="EPERM")&&D<S.maxBusyTries){D++;var N=D*100;return setTimeout(function(){$(v,S,E)},N)}if(O.code==="EMFILE"&&c<S.emfileWait)return setTimeout(function(){$(v,S,E)},c++);O.code==="ENOENT"&&(O=null)}c=0,y(O)})})}}function $(g,S,L){n(g),n(S),n(typeof L=="function"),S.lstat(g,function(D,P){if(D&&D.code==="ENOENT")return L(null);if(D&&D.code==="EPERM"&&f&&h(g,S,D,L),P&&P.isDirectory())return x(g,S,D,L);S.unlink(g,function(A){if(A){if(A.code==="ENOENT")return L(null);if(A.code==="EPERM")return f?h(g,S,A,L):x(g,S,A,L);if(A.code==="EISDIR")return x(g,S,A,L)}return L(A)})})}function h(g,S,L,D){n(g),n(S),n(typeof D=="function"),L&&n(L instanceof Error),S.chmod(g,a,function(P){P?D(P.code==="ENOENT"?null:L):S.stat(g,function(A,y){A?D(A.code==="ENOENT"?null:L):y.isDirectory()?x(g,S,L,D):S.unlink(g,D)})})}function T(g,S,L){n(g),n(S),L&&n(L instanceof Error);try{S.chmodSync(g,a)}catch(P){if(P.code==="ENOENT")return;throw L}try{var D=S.statSync(g)}catch(P){if(P.code==="ENOENT")return;throw L}D.isDirectory()?I(g,S,L):S.unlinkSync(g)}function x(g,S,L,D){n(g),n(S),L&&n(L instanceof Error),n(typeof D=="function"),S.rmdir(g,function(P){P&&(P.code==="ENOTEMPTY"||P.code==="EEXIST"||P.code==="EPERM")?k(g,S,D):P&&P.code==="ENOTDIR"?D(L):D(P)})}function k(g,S,L){n(g),n(S),n(typeof L=="function"),S.readdir(g,function(D,P){if(D)return L(D);var A=P.length;if(A===0)return S.rmdir(g,L);var y;P.forEach(function(l){b(s.join(g,l),S,function(d){if(!y){if(d)return L(y=d);--A===0&&S.rmdir(g,L)}})})})}function C(g,S){S=S||{},p(S),n(g,"rimraf: missing path"),n.equal(typeof g,"string","rimraf: path should be a string"),n(S,"rimraf: missing options"),n.equal(typeof S,"object","rimraf: options should be object");var L;if(S.disableGlob||!o.hasMagic(g))L=[g];else try{S.lstatSync(g),L=[g]}catch{L=o.sync(g,S.glob)}if(L.length)for(var D=0;D<L.length;D++){var g=L[D];try{var P=S.lstatSync(g)}catch(y){if(y.code==="ENOENT")return;y.code==="EPERM"&&f&&T(g,S,y)}try{P&&P.isDirectory()?I(g,S,null):S.unlinkSync(g)}catch(y){if(y.code==="ENOENT")return;if(y.code==="EPERM")return f?T(g,S,y):I(g,S,y);if(y.code!=="EISDIR")throw y;I(g,S,y)}}}function I(g,S,L){n(g),n(S),L&&n(L instanceof Error);try{S.rmdirSync(g)}catch(D){if(D.code==="ENOENT")return;if(D.code==="ENOTDIR")throw L;(D.code==="ENOTEMPTY"||D.code==="EEXIST"||D.code==="EPERM")&&R(g,S)}}function R(g,S){n(g),n(S),S.readdirSync(g).forEach(function(y){C(s.join(g,y),S)});var L=f?100:1,D=0;do{var P=!0;try{var A=S.rmdirSync(g,S);return P=!1,A}finally{if(++D<L&&P)continue}}while(!0)}}),,,,,,(function(r,e,t){"use strict";var n=t(221),s=function(o){return o===0?!1:{level:o,hasBasic:!0,has256:o>=2,has16m:o>=3}},i=(function(){return n("no-color")||n("no-colors")||n("color=false")?0:n("color=16m")||n("color=full")||n("color=truecolor")?3:n("color=256")?2:n("color")||n("colors")||n("color=true")||n("color=always")?1:process.stdout&&!process.stdout.isTTY?0:process.platform==="win32"?1:"CI"in process.env?"TRAVIS"in process.env||process.env.CI==="Travis"?1:0:"TEAMCITY_VERSION"in process.env?process.env.TEAMCITY_VERSION.match(/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/)===null?0:1:/^(screen|xterm)-256(?:color)?/.test(process.env.TERM)?2:/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)||"COLORTERM"in process.env?1:(process.env.TERM==="dumb",0)})();i===0&&"FORCE_COLOR"in process.env&&(i=1),r.exports=process&&s(i)})])});var ai=Ee((Eb,oi)=>{"use strict";oi.exports=function(e,t){t||(t=[process.stdout,process.stderr]);var n=0;function s(){n===t.length&&process.exit(e)}t.forEach(function(i){i.bufferSize===0?n++:i.write("","utf-8",function(){n++,s()}),i.write=function(){}}),s(),process.on("exit",function(){process.exit(e)})}});var $n=Ee((Gb,Ei)=>{"use strict";var dc=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};Ei.exports=dc});var Bn=Ee((Vb,Si)=>{"use strict";var fc="2.0.0",pc=Number.MAX_SAFE_INTEGER||9007199254740991,hc=16,mc=250,gc=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Si.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:hc,MAX_SAFE_BUILD_LENGTH:mc,MAX_SAFE_INTEGER:pc,RELEASE_TYPES:gc,SEMVER_SPEC_VERSION:fc,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var jn=Ee((Tt,$i)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Ar,MAX_SAFE_BUILD_LENGTH:yc,MAX_LENGTH:vc}=Bn(),bc=$n();Tt=$i.exports={};var Ec=Tt.re=[],Sc=Tt.safeRe=[],J=Tt.src=[],$c=Tt.safeSrc=[],K=Tt.t={},xc=0,Or="[a-zA-Z0-9-]",Tc=[["\\s",1],["\\d",vc],[Or,yc]],Cc=r=>{for(let[e,t]of Tc)r=r.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return r},te=(r,e,t)=>{let n=Cc(e),s=xc++;bc(r,s,e),K[r]=s,J[s]=e,$c[s]=n,Ec[s]=new RegExp(e,t?"g":void 0),Sc[s]=new RegExp(n,t?"g":void 0)};te("NUMERICIDENTIFIER","0|[1-9]\\d*");te("NUMERICIDENTIFIERLOOSE","\\d+");te("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Or}*`);te("MAINVERSION",`(${J[K.NUMERICIDENTIFIER]})\\.(${J[K.NUMERICIDENTIFIER]})\\.(${J[K.NUMERICIDENTIFIER]})`);te("MAINVERSIONLOOSE",`(${J[K.NUMERICIDENTIFIERLOOSE]})\\.(${J[K.NUMERICIDENTIFIERLOOSE]})\\.(${J[K.NUMERICIDENTIFIERLOOSE]})`);te("PRERELEASEIDENTIFIER",`(?:${J[K.NONNUMERICIDENTIFIER]}|${J[K.NUMERICIDENTIFIER]})`);te("PRERELEASEIDENTIFIERLOOSE",`(?:${J[K.NONNUMERICIDENTIFIER]}|${J[K.NUMERICIDENTIFIERLOOSE]})`);te("PRERELEASE",`(?:-(${J[K.PRERELEASEIDENTIFIER]}(?:\\.${J[K.PRERELEASEIDENTIFIER]})*))`);te("PRERELEASELOOSE",`(?:-?(${J[K.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${J[K.PRERELEASEIDENTIFIERLOOSE]})*))`);te("BUILDIDENTIFIER",`${Or}+`);te("BUILD",`(?:\\+(${J[K.BUILDIDENTIFIER]}(?:\\.${J[K.BUILDIDENTIFIER]})*))`);te("FULLPLAIN",`v?${J[K.MAINVERSION]}${J[K.PRERELEASE]}?${J[K.BUILD]}?`);te("FULL",`^${J[K.FULLPLAIN]}$`);te("LOOSEPLAIN",`[v=\\s]*${J[K.MAINVERSIONLOOSE]}${J[K.PRERELEASELOOSE]}?${J[K.BUILD]}?`);te("LOOSE",`^${J[K.LOOSEPLAIN]}$`);te("GTLT","((?:<|>)?=?)");te("XRANGEIDENTIFIERLOOSE",`${J[K.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);te("XRANGEIDENTIFIER",`${J[K.NUMERICIDENTIFIER]}|x|X|\\*`);te("XRANGEPLAIN",`[v=\\s]*(${J[K.XRANGEIDENTIFIER]})(?:\\.(${J[K.XRANGEIDENTIFIER]})(?:\\.(${J[K.XRANGEIDENTIFIER]})(?:${J[K.PRERELEASE]})?${J[K.BUILD]}?)?)?`);te("XRANGEPLAINLOOSE",`[v=\\s]*(${J[K.XRANGEIDENTIFIERLOOSE]})(?:\\.(${J[K.XRANGEIDENTIFIERLOOSE]})(?:\\.(${J[K.XRANGEIDENTIFIERLOOSE]})(?:${J[K.PRERELEASELOOSE]})?${J[K.BUILD]}?)?)?`);te("XRANGE",`^${J[K.GTLT]}\\s*${J[K.XRANGEPLAIN]}$`);te("XRANGELOOSE",`^${J[K.GTLT]}\\s*${J[K.XRANGEPLAINLOOSE]}$`);te("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Ar}})(?:\\.(\\d{1,${Ar}}))?(?:\\.(\\d{1,${Ar}}))?`);te("COERCE",`${J[K.COERCEPLAIN]}(?:$|[^\\d])`);te("COERCEFULL",J[K.COERCEPLAIN]+`(?:${J[K.PRERELEASE]})?(?:${J[K.BUILD]})?(?:$|[^\\d])`);te("COERCERTL",J[K.COERCE],!0);te("COERCERTLFULL",J[K.COERCEFULL],!0);te("LONETILDE","(?:~>?)");te("TILDETRIM",`(\\s*)${J[K.LONETILDE]}\\s+`,!0);Tt.tildeTrimReplace="$1~";te("TILDE",`^${J[K.LONETILDE]}${J[K.XRANGEPLAIN]}$`);te("TILDELOOSE",`^${J[K.LONETILDE]}${J[K.XRANGEPLAINLOOSE]}$`);te("LONECARET","(?:\\^)");te("CARETTRIM",`(\\s*)${J[K.LONECARET]}\\s+`,!0);Tt.caretTrimReplace="$1^";te("CARET",`^${J[K.LONECARET]}${J[K.XRANGEPLAIN]}$`);te("CARETLOOSE",`^${J[K.LONECARET]}${J[K.XRANGEPLAINLOOSE]}$`);te("COMPARATORLOOSE",`^${J[K.GTLT]}\\s*(${J[K.LOOSEPLAIN]})$|^$`);te("COMPARATOR",`^${J[K.GTLT]}\\s*(${J[K.FULLPLAIN]})$|^$`);te("COMPARATORTRIM",`(\\s*)${J[K.GTLT]}\\s*(${J[K.LOOSEPLAIN]}|${J[K.XRANGEPLAIN]})`,!0);Tt.comparatorTrimReplace="$1$2$3";te("HYPHENRANGE",`^\\s*(${J[K.XRANGEPLAIN]})\\s+-\\s+(${J[K.XRANGEPLAIN]})\\s*$`);te("HYPHENRANGELOOSE",`^\\s*(${J[K.XRANGEPLAINLOOSE]})\\s+-\\s+(${J[K.XRANGEPLAINLOOSE]})\\s*$`);te("STAR","(<|>)?=?\\s*\\*");te("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");te("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Un=Ee((Jb,xi)=>{"use strict";var Lc=Object.freeze({loose:!0}),Rc=Object.freeze({}),Ac=r=>r?typeof r!="object"?Lc:r:Rc;xi.exports=Ac});var Ri=Ee((Kb,Li)=>{"use strict";var Ti=/^[0-9]+$/,Ci=(r,e)=>{if(typeof r=="number"&&typeof e=="number")return r===e?0:r<e?-1:1;let t=Ti.test(r),n=Ti.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},Oc=(r,e)=>Ci(e,r);Li.exports={compareIdentifiers:Ci,rcompareIdentifiers:Oc}});var xn=Ee((Yb,Oi)=>{"use strict";var zn=$n(),{MAX_LENGTH:Ai,MAX_SAFE_INTEGER:Wn}=Bn(),{safeRe:Xn,t:Gn}=jn(),Dc=Un(),{compareIdentifiers:Dr}=Ri(),Nr=class r{constructor(e,t){if(t=Dc(t),e instanceof r){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Ai)throw new TypeError(`version is longer than ${Ai} characters`);zn("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?Xn[Gn.LOOSE]:Xn[Gn.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Wn||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Wn||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Wn||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<Wn)return i}return s}):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(e){if(zn("SemVer.compare",this.version,this.options,e),!(e instanceof r)){if(typeof e=="string"&&e===this.version)return 0;e=new r(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof r||(e=new r(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof r||(e=new r(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],s=e.prerelease[t];if(zn("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return Dr(n,s)}while(++t)}compareBuild(e){e instanceof r||(e=new r(e,this.options));let t=0;do{let n=this.build[t],s=e.build[t];if(zn("build compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return Dr(n,s)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(t){let s=`-${t}`.match(this.options.loose?Xn[Gn.PRERELEASELOOSE]:Xn[Gn.PRERELEASE]);if(!s||s[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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":{let s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(t===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(t){let i=[t,s];n===!1&&(i=[t]),Dr(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Oi.exports=Nr});var Qt=Ee((Qb,Ni)=>{"use strict";var Di=xn(),Nc=(r,e,t)=>new Di(r,t).compare(new Di(e,t));Ni.exports=Nc});var wr=Ee((Zb,wi)=>{"use strict";var wc=Qt(),kc=(r,e,t)=>wc(r,e,t)<=0;wi.exports=kc});var Pi=Ee((qb,ki)=>{"use strict";var Pc=xn(),Ic=(r,e)=>new Pc(r,e).major;ki.exports=Ic});var Mi=Ee((_b,Ii)=>{"use strict";var kr=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,t)}return this}};Ii.exports=kr});var Hi=Ee((eE,Fi)=>{"use strict";var Mc=Qt(),Fc=(r,e,t)=>Mc(r,e,t)===0;Fi.exports=Fc});var ji=Ee((tE,Bi)=>{"use strict";var Hc=Qt(),Bc=(r,e,t)=>Hc(r,e,t)!==0;Bi.exports=Bc});var zi=Ee((nE,Ui)=>{"use strict";var jc=Qt(),Uc=(r,e,t)=>jc(r,e,t)>0;Ui.exports=Uc});var Xi=Ee((rE,Wi)=>{"use strict";var zc=Qt(),Wc=(r,e,t)=>zc(r,e,t)>=0;Wi.exports=Wc});var Pr=Ee((sE,Gi)=>{"use strict";var Xc=Qt(),Gc=(r,e,t)=>Xc(r,e,t)<0;Gi.exports=Gc});var Ji=Ee((iE,Vi)=>{"use strict";var Vc=Hi(),Jc=ji(),Kc=zi(),Yc=Xi(),Qc=Pr(),Zc=wr(),qc=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return Vc(r,t,n);case"!=":return Jc(r,t,n);case">":return Kc(r,t,n);case">=":return Yc(r,t,n);case"<":return Qc(r,t,n);case"<=":return Zc(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};Vi.exports=qc});var eo=Ee((oE,_i)=>{"use strict";var Tn=Symbol("SemVer ANY"),Fr=class r{static get ANY(){return Tn}constructor(e,t){if(t=Ki(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Mr("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Tn?this.value="":this.value=this.operator+this.semver.version,Mr("comp",this)}parse(e){let t=this.options.loose?Yi[Qi.COMPARATORLOOSE]:Yi[Qi.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new Zi(n[2],this.options.loose):this.semver=Tn}toString(){return this.value}test(e){if(Mr("Comparator.test",e,this.options.loose),this.semver===Tn||e===Tn)return!0;if(typeof e=="string")try{e=new Zi(e,this.options)}catch{return!1}return Ir(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new qi(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new qi(this.value,t).test(e.semver):(t=Ki(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Ir(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Ir(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};_i.exports=Fr;var Ki=Un(),{safeRe:Yi,t:Qi}=jn(),Ir=Ji(),Mr=$n(),Zi=xn(),qi=Hr()});var Hr=Ee((aE,so)=>{"use strict";var _c=/\s+/g,Br=class r{constructor(e,t){if(t=tu(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof jr)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(_c," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!no(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&lu(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let n=0;n<t.length;n++)n>0&&(this.formatted+=" "),this.formatted+=t[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&ou)|(this.options.loose&&au))+":"+e,s=to.get(n);if(s)return s;let i=this.options.loose,o=i?Je[Ue.HYPHENRANGELOOSE]:Je[Ue.HYPHENRANGE];e=e.replace(o,vu(this.options.includePrerelease)),$e("hyphen replace",e),e=e.replace(Je[Ue.COMPARATORTRIM],ru),$e("comparator trim",e),e=e.replace(Je[Ue.TILDETRIM],su),$e("tilde trim",e),e=e.replace(Je[Ue.CARETTRIM],iu),$e("caret trim",e);let a=e.split(" ").map(p=>cu(p,this.options)).join(" ").split(/\s+/).map(p=>yu(p,this.options));i&&(a=a.filter(p=>($e("loose invalid filter",p,this.options),!!p.match(Je[Ue.COMPARATORLOOSE])))),$e("range list",a);let u=new Map,c=a.map(p=>new jr(p,this.options));for(let p of c){if(no(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let f=[...u.values()];return to.set(n,f),f}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some(n=>ro(n,t)&&e.set.some(s=>ro(s,t)&&n.every(i=>s.every(o=>i.intersects(o,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new nu(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(bu(this.set[t],e,this.options))return!0;return!1}};so.exports=Br;var eu=Mi(),to=new eu,tu=Un(),jr=eo(),$e=$n(),nu=xn(),{safeRe:Je,t:Ue,comparatorTrimReplace:ru,tildeTrimReplace:su,caretTrimReplace:iu}=jn(),{FLAG_INCLUDE_PRERELEASE:ou,FLAG_LOOSE:au}=Bn(),no=r=>r.value==="<0.0.0-0",lu=r=>r.value==="",ro=(r,e)=>{let t=!0,n=r.slice(),s=n.pop();for(;t&&n.length;)t=n.every(i=>s.intersects(i,e)),s=n.pop();return t},cu=(r,e)=>(r=r.replace(Je[Ue.BUILD],""),$e("comp",r,e),r=fu(r,e),$e("caret",r),r=uu(r,e),$e("tildes",r),r=hu(r,e),$e("xrange",r),r=gu(r,e),$e("stars",r),r),Ke=r=>!r||r.toLowerCase()==="x"||r==="*",uu=(r,e)=>r.trim().split(/\s+/).map(t=>du(t,e)).join(" "),du=(r,e)=>{let t=e.loose?Je[Ue.TILDELOOSE]:Je[Ue.TILDE];return r.replace(t,(n,s,i,o,a)=>{$e("tilde",r,n,s,i,o,a);let u;return Ke(s)?u="":Ke(i)?u=`>=${s}.0.0 <${+s+1}.0.0-0`:Ke(o)?u=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:a?($e("replaceTilde pr",a),u=`>=${s}.${i}.${o}-${a} <${s}.${+i+1}.0-0`):u=`>=${s}.${i}.${o} <${s}.${+i+1}.0-0`,$e("tilde return",u),u})},fu=(r,e)=>r.trim().split(/\s+/).map(t=>pu(t,e)).join(" "),pu=(r,e)=>{$e("caret",r,e);let t=e.loose?Je[Ue.CARETLOOSE]:Je[Ue.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(s,i,o,a,u)=>{$e("caret",r,s,i,o,a,u);let c;return Ke(i)?c="":Ke(o)?c=`>=${i}.0.0${n} <${+i+1}.0.0-0`:Ke(a)?i==="0"?c=`>=${i}.${o}.0${n} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.0${n} <${+i+1}.0.0-0`:u?($e("replaceCaret pr",u),i==="0"?o==="0"?c=`>=${i}.${o}.${a}-${u} <${i}.${o}.${+a+1}-0`:c=`>=${i}.${o}.${a}-${u} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.${a}-${u} <${+i+1}.0.0-0`):($e("no pr"),i==="0"?o==="0"?c=`>=${i}.${o}.${a}${n} <${i}.${o}.${+a+1}-0`:c=`>=${i}.${o}.${a}${n} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.${a} <${+i+1}.0.0-0`),$e("caret return",c),c})},hu=(r,e)=>($e("replaceXRanges",r,e),r.split(/\s+/).map(t=>mu(t,e)).join(" ")),mu=(r,e)=>{r=r.trim();let t=e.loose?Je[Ue.XRANGELOOSE]:Je[Ue.XRANGE];return r.replace(t,(n,s,i,o,a,u)=>{$e("xRange",r,n,s,i,o,a,u);let c=Ke(i),f=c||Ke(o),p=f||Ke(a),b=p;return s==="="&&b&&(s=""),u=e.includePrerelease?"-0":"",c?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&b?(f&&(o=0),a=0,s===">"?(s=">=",f?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):s==="<="&&(s="<",f?i=+i+1:o=+o+1),s==="<"&&(u="-0"),n=`${s+i}.${o}.${a}${u}`):f?n=`>=${i}.0.0${u} <${+i+1}.0.0-0`:p&&(n=`>=${i}.${o}.0${u} <${i}.${+o+1}.0-0`),$e("xRange return",n),n})},gu=(r,e)=>($e("replaceStars",r,e),r.trim().replace(Je[Ue.STAR],"")),yu=(r,e)=>($e("replaceGTE0",r,e),r.trim().replace(Je[e.includePrerelease?Ue.GTE0PRE:Ue.GTE0],"")),vu=r=>(e,t,n,s,i,o,a,u,c,f,p,b)=>(Ke(n)?t="":Ke(s)?t=`>=${n}.0.0${r?"-0":""}`:Ke(i)?t=`>=${n}.${s}.0${r?"-0":""}`:o?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,Ke(c)?u="":Ke(f)?u=`<${+c+1}.0.0-0`:Ke(p)?u=`<${c}.${+f+1}.0-0`:b?u=`<=${c}.${f}.${p}-${b}`:r?u=`<${c}.${f}.${+p+1}-0`:u=`<=${u}`,`${t} ${u}`.trim()),bu=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if($e(r[n].semver),r[n].semver!==jr.ANY&&r[n].semver.prerelease.length>0){let s=r[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var oo=Ee((lE,io)=>{"use strict";var Eu=Hr(),Su=(r,e,t)=>{try{e=new Eu(e,t)}catch{return!1}return e.test(r)};io.exports=Su});var Iu={};Vr(Iu,{createNodeLogger:()=>ss,createNodeSys:()=>Oo,setupNodeProcess:()=>ri});module.exports=Bo(Iu);var On=xe(require("./graceful-fs.js")),rs=xe(require("path"));var ee=xe(_r());var rr=["debug","info","warn","error"];var ns=r=>{let e="info",t=null,n=[],s=l=>e=l,i=()=>e,o=l=>t=l,a=(...l)=>{if(tn(e,"info")){let d=St(l,r.getColumns());u(d),console.log(d.join(`
36
- `))}I("I",l)},u=l=>{if(l.length>0){let d=es();l[0]=(0,ee.dim)(d)+l[0].slice(d.length)}},c=(...l)=>{if(tn(e,"warn")){let d=St(l,r.getColumns());f(d),console.warn(`
35
+ See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof R))return new R(g,S);if(T(this,g,S),this.noprocess)return this;var L=this.minimatch.set.length;this.matches=new Array(L);for(var D=0;D<L;D++)this._process(this.minimatch.set[D],D,!1);this._finish()}R.prototype._finish=function(){if(f(this instanceof R),this.realpath){var g=this;this.matches.forEach(function(S,L){var D=g.matches[L]=Object.create(null);for(var P in S)try{P=g._makeAbs(P);var A=s.realpathSync(P,g.realpathCache);D[A]=!0}catch(y){if(y.syscall==="stat")D[g._makeAbs(P)]=!0;else throw y}})}b.finish(this)},R.prototype._process=function(g,S,L){f(this instanceof R);for(var D=0;typeof g[D]=="string";)D++;var P;switch(D){case g.length:this._processSimple(g.join("/"),S);return;case 0:P=null;break;default:P=g.slice(0,D).join("/");break}var A=g.slice(D),y;P===null?y=".":((p(P)||p(g.join("/")))&&(!P||!p(P))&&(P="/"+P),y=P);var l=this._makeAbs(y);if(!k(this,y)){var d=A[0]===i.GLOBSTAR;d?this._processGlobStar(P,y,l,A,S,L):this._processReaddir(P,y,l,A,S,L)}},R.prototype._processReaddir=function(g,S,L,D,P,A){var y=this._readdir(L,A);if(y){for(var l=D[0],d=!!this.minimatch.negate,m=l._glob,v=this.dot||m.charAt(0)===".",E=[],O=0;O<y.length;O++){var N=y[O];if(N.charAt(0)!=="."||v){var w;d&&!g?w=!N.match(l):w=N.match(l),w&&E.push(N)}}var M=E.length;if(M!==0){if(D.length===1&&!this.mark&&!this.stat){this.matches[P]||(this.matches[P]=Object.create(null));for(var O=0;O<M;O++){var N=E[O];g&&(g.slice(-1)!=="/"?N=g+"/"+N:N=g+N),N.charAt(0)==="/"&&!this.nomount&&(N=c.join(this.root,N)),this._emitMatch(P,N)}return}D.shift();for(var O=0;O<M;O++){var N=E[O],j;g?j=[g,N]:j=[N],this._process(j.concat(D),P,A)}}}},R.prototype._emitMatch=function(g,S){if(!C(this,S)){var L=this._makeAbs(S);if(this.mark&&(S=this._mark(S)),this.absolute&&(S=L),!this.matches[g][S]){if(this.nodir){var D=this.cache[L];if(D==="DIR"||Array.isArray(D))return}this.matches[g][S]=!0,this.stat&&this._stat(S)}}},R.prototype._readdirInGlobStar=function(g){if(this.follow)return this._readdir(g,!1);var S,L,D;try{L=n.lstatSync(g)}catch(A){if(A.code==="ENOENT")return null}var P=L&&L.isSymbolicLink();return this.symlinks[g]=P,!P&&L&&!L.isDirectory()?this.cache[g]="FILE":S=this._readdir(g,!1),S},R.prototype._readdir=function(g,S){var L;if(S&&!x(this.symlinks,g))return this._readdirInGlobStar(g);if(x(this.cache,g)){var D=this.cache[g];if(!D||D==="FILE")return null;if(Array.isArray(D))return D}try{return this._readdirEntries(g,n.readdirSync(g))}catch(P){return this._readdirError(g,P),null}},R.prototype._readdirEntries=function(g,S){if(!this.mark&&!this.stat)for(var L=0;L<S.length;L++){var D=S[L];g==="/"?D=g+D:D=g+"/"+D,this.cache[D]=!0}return this.cache[g]=S,S},R.prototype._readdirError=function(g,S){switch(S.code){case"ENOTSUP":case"ENOTDIR":var L=this._makeAbs(g);if(this.cache[L]="FILE",L===this.cwdAbs){var D=new Error(S.code+" invalid cwd "+this.cwd);throw D.path=this.cwd,D.code=S.code,D}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(g)]=!1;break;default:if(this.cache[this._makeAbs(g)]=!1,this.strict)throw S;this.silent||console.error("glob error",S);break}},R.prototype._processGlobStar=function(g,S,L,D,P,A){var y=this._readdir(L,A);if(y){var l=D.slice(1),d=g?[g]:[],m=d.concat(l);this._process(m,P,!1);var v=y.length,E=this.symlinks[L];if(!(E&&A))for(var O=0;O<v;O++){var N=y[O];if(!(N.charAt(0)==="."&&!this.dot)){var w=d.concat(y[O],l);this._process(w,P,!0);var M=d.concat(y[O],D);this._process(M,P,!0)}}}},R.prototype._processSimple=function(g,S){var L=this._stat(g);if(this.matches[S]||(this.matches[S]=Object.create(null)),!!L){if(g&&p(g)&&!this.nomount){var D=/[\/\\]$/.test(g);g.charAt(0)==="/"?g=c.join(this.root,g):(g=c.resolve(this.root,g),D&&(g+="/"))}process.platform==="win32"&&(g=g.replace(/\\/g,"/")),this._emitMatch(S,g)}},R.prototype._stat=function(g){var S=this._makeAbs(g),L=g.slice(-1)==="/";if(g.length>this.maxLength)return!1;if(!this.stat&&x(this.cache,S)){var y=this.cache[S];if(Array.isArray(y)&&(y="DIR"),!L||y==="DIR")return y;if(L&&y==="FILE")return!1}var D,P=this.statCache[S];if(!P){var A;try{A=n.lstatSync(S)}catch(l){if(l&&(l.code==="ENOENT"||l.code==="ENOTDIR"))return this.statCache[S]=!1,!1}if(A&&A.isSymbolicLink())try{P=n.statSync(S)}catch{P=A}else P=A}this.statCache[S]=P;var y=!0;return P&&(y=P.isDirectory()?"DIR":"FILE"),this.cache[S]=this.cache[S]||y,L&&y==="FILE"?!1:y},R.prototype._mark=function(g){return b.mark(this,g)},R.prototype._makeAbs=function(g){return b.makeAbs(this,g)}}),,,(function(r,e,t){"use strict";r.exports=function(n,s){s=s||process.argv;var i=s.indexOf("--"),o=/^--/.test(n)?"":"--",a=s.indexOf(o+n);return a!==-1&&(i!==-1?a<i:!0)}}),,(function(r,e,t){var n=t(123),s=Object.create(null),i=t(61);r.exports=n(o);function o(c,f){return s[c]?(s[c].push(f),null):(s[c]=[f],a(c))}function a(c){return i(function f(){var p=s[c],b=p.length,$=u(arguments);try{for(var h=0;h<b;h++)p[h].apply(null,$)}finally{p.length>b?(p.splice(0,b),process.nextTick(function(){f.apply(null,$)})):delete s[c]}})}function u(c){for(var f=c.length,p=[],b=0;b<f;b++)p[b]=c[b];return p}}),(function(r,e){typeof Object.create=="function"?r.exports=function(n,s){n.super_=s,n.prototype=Object.create(s.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:r.exports=function(n,s){n.super_=s;var i=function(){};i.prototype=s.prototype,n.prototype=new i,n.prototype.constructor=n}}),,,(function(r,e,t){r.exports=typeof t<"u"}),,(function(r,e){var t=1e3,n=t*60,s=n*60,i=s*24,o=i*365.25;r.exports=function(p,b){b=b||{};var $=typeof p;if($==="string"&&p.length>0)return a(p);if($==="number"&&isNaN(p)===!1)return b.long?c(p):u(p);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(p))};function a(p){if(p=String(p),!(p.length>100)){var b=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(p);if(b){var $=parseFloat(b[1]),h=(b[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return $*o;case"days":case"day":case"d":return $*i;case"hours":case"hour":case"hrs":case"hr":case"h":return $*s;case"minutes":case"minute":case"mins":case"min":case"m":return $*n;case"seconds":case"second":case"secs":case"sec":case"s":return $*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return $;default:return}}}}function u(p){return p>=i?Math.round(p/i)+"d":p>=s?Math.round(p/s)+"h":p>=n?Math.round(p/n)+"m":p>=t?Math.round(p/t)+"s":p+"ms"}function c(p){return f(p,i,"day")||f(p,s,"hour")||f(p,n,"minute")||f(p,t,"second")||p+" ms"}function f(p,b,$){if(!(p<b))return p<b*1.5?Math.floor(p/b)+" "+$:Math.ceil(p/b)+" "+$+"s"}}),,,,(function(r,e,t){r.exports=b,b.sync=C;var n=t(22),s=t(0),i=t(3),o=t(75),a=parseInt("666",8),u={nosort:!0,silent:!0},c=0,f=process.platform==="win32";function p(g){var S=["unlink","chmod","stat","lstat","rmdir","readdir"];S.forEach(function(L){g[L]=g[L]||i[L],L=L+"Sync",g[L]=g[L]||i[L]}),g.maxBusyTries=g.maxBusyTries||3,g.emfileWait=g.emfileWait||1e3,g.glob===!1&&(g.disableGlob=!0),g.disableGlob=g.disableGlob||!1,g.glob=g.glob||u}function b(g,S,L){typeof S=="function"&&(L=S,S={}),n(g,"rimraf: missing path"),n.equal(typeof g,"string","rimraf: path should be a string"),n.equal(typeof L,"function","rimraf: callback function required"),n(S,"rimraf: invalid options argument provided"),n.equal(typeof S,"object","rimraf: options should be object"),p(S);var D=0,P=null,A=0;if(S.disableGlob||!o.hasMagic(g))return l(null,[g]);S.lstat(g,function(d,m){if(!d)return l(null,[g]);o(g,S.glob,l)});function y(d){P=P||d,--A===0&&L(P)}function l(d,m){if(d)return L(d);if(A=m.length,A===0)return L();m.forEach(function(v){$(v,S,function E(O){if(O){if((O.code==="EBUSY"||O.code==="ENOTEMPTY"||O.code==="EPERM")&&D<S.maxBusyTries){D++;var N=D*100;return setTimeout(function(){$(v,S,E)},N)}if(O.code==="EMFILE"&&c<S.emfileWait)return setTimeout(function(){$(v,S,E)},c++);O.code==="ENOENT"&&(O=null)}c=0,y(O)})})}}function $(g,S,L){n(g),n(S),n(typeof L=="function"),S.lstat(g,function(D,P){if(D&&D.code==="ENOENT")return L(null);if(D&&D.code==="EPERM"&&f&&h(g,S,D,L),P&&P.isDirectory())return x(g,S,D,L);S.unlink(g,function(A){if(A){if(A.code==="ENOENT")return L(null);if(A.code==="EPERM")return f?h(g,S,A,L):x(g,S,A,L);if(A.code==="EISDIR")return x(g,S,A,L)}return L(A)})})}function h(g,S,L,D){n(g),n(S),n(typeof D=="function"),L&&n(L instanceof Error),S.chmod(g,a,function(P){P?D(P.code==="ENOENT"?null:L):S.stat(g,function(A,y){A?D(A.code==="ENOENT"?null:L):y.isDirectory()?x(g,S,L,D):S.unlink(g,D)})})}function T(g,S,L){n(g),n(S),L&&n(L instanceof Error);try{S.chmodSync(g,a)}catch(P){if(P.code==="ENOENT")return;throw L}try{var D=S.statSync(g)}catch(P){if(P.code==="ENOENT")return;throw L}D.isDirectory()?I(g,S,L):S.unlinkSync(g)}function x(g,S,L,D){n(g),n(S),L&&n(L instanceof Error),n(typeof D=="function"),S.rmdir(g,function(P){P&&(P.code==="ENOTEMPTY"||P.code==="EEXIST"||P.code==="EPERM")?k(g,S,D):P&&P.code==="ENOTDIR"?D(L):D(P)})}function k(g,S,L){n(g),n(S),n(typeof L=="function"),S.readdir(g,function(D,P){if(D)return L(D);var A=P.length;if(A===0)return S.rmdir(g,L);var y;P.forEach(function(l){b(s.join(g,l),S,function(d){if(!y){if(d)return L(y=d);--A===0&&S.rmdir(g,L)}})})})}function C(g,S){S=S||{},p(S),n(g,"rimraf: missing path"),n.equal(typeof g,"string","rimraf: path should be a string"),n(S,"rimraf: missing options"),n.equal(typeof S,"object","rimraf: options should be object");var L;if(S.disableGlob||!o.hasMagic(g))L=[g];else try{S.lstatSync(g),L=[g]}catch{L=o.sync(g,S.glob)}if(L.length)for(var D=0;D<L.length;D++){var g=L[D];try{var P=S.lstatSync(g)}catch(y){if(y.code==="ENOENT")return;y.code==="EPERM"&&f&&T(g,S,y)}try{P&&P.isDirectory()?I(g,S,null):S.unlinkSync(g)}catch(y){if(y.code==="ENOENT")return;if(y.code==="EPERM")return f?T(g,S,y):I(g,S,y);if(y.code!=="EISDIR")throw y;I(g,S,y)}}}function I(g,S,L){n(g),n(S),L&&n(L instanceof Error);try{S.rmdirSync(g)}catch(D){if(D.code==="ENOENT")return;if(D.code==="ENOTDIR")throw L;(D.code==="ENOTEMPTY"||D.code==="EEXIST"||D.code==="EPERM")&&R(g,S)}}function R(g,S){n(g),n(S),S.readdirSync(g).forEach(function(y){C(s.join(g,y),S)});var L=f?100:1,D=0;do{var P=!0;try{var A=S.rmdirSync(g,S);return P=!1,A}finally{if(++D<L&&P)continue}}while(!0)}}),,,,,,(function(r,e,t){"use strict";var n=t(221),s=function(o){return o===0?!1:{level:o,hasBasic:!0,has256:o>=2,has16m:o>=3}},i=(function(){return n("no-color")||n("no-colors")||n("color=false")?0:n("color=16m")||n("color=full")||n("color=truecolor")?3:n("color=256")?2:n("color")||n("colors")||n("color=true")||n("color=always")?1:process.stdout&&!process.stdout.isTTY?0:process.platform==="win32"?1:"CI"in process.env?"TRAVIS"in process.env||process.env.CI==="Travis"?1:0:"TEAMCITY_VERSION"in process.env?process.env.TEAMCITY_VERSION.match(/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/)===null?0:1:/^(screen|xterm)-256(?:color)?/.test(process.env.TERM)?2:/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)||"COLORTERM"in process.env?1:(process.env.TERM==="dumb",0)})();i===0&&"FORCE_COLOR"in process.env&&(i=1),r.exports=process&&s(i)})])});var li=Ee((Rb,ai)=>{"use strict";ai.exports=function(e,t){t||(t=[process.stdout,process.stderr]);var n=0;function s(){n===t.length&&process.exit(e)}t.forEach(function(i){i.bufferSize===0?n++:i.write("","utf-8",function(){n++,s()}),i.write=function(){}}),s(),process.on("exit",function(){process.exit(e)})}});var $n=Ee((qb,Si)=>{"use strict";var fc=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};Si.exports=fc});var jn=Ee((_b,$i)=>{"use strict";var pc="2.0.0",hc=Number.MAX_SAFE_INTEGER||9007199254740991,mc=16,gc=250,yc=["major","premajor","minor","preminor","patch","prepatch","prerelease"];$i.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:mc,MAX_SAFE_BUILD_LENGTH:gc,MAX_SAFE_INTEGER:hc,RELEASE_TYPES:yc,SEMVER_SPEC_VERSION:pc,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Un=Ee((Tt,xi)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Or,MAX_SAFE_BUILD_LENGTH:vc,MAX_LENGTH:bc}=jn(),Ec=$n();Tt=xi.exports={};var Sc=Tt.re=[],$c=Tt.safeRe=[],J=Tt.src=[],xc=Tt.safeSrc=[],K=Tt.t={},Tc=0,Dr="[a-zA-Z0-9-]",Cc=[["\\s",1],["\\d",bc],[Dr,vc]],Lc=r=>{for(let[e,t]of Cc)r=r.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return r},te=(r,e,t)=>{let n=Lc(e),s=Tc++;Ec(r,s,e),K[r]=s,J[s]=e,xc[s]=n,Sc[s]=new RegExp(e,t?"g":void 0),$c[s]=new RegExp(n,t?"g":void 0)};te("NUMERICIDENTIFIER","0|[1-9]\\d*");te("NUMERICIDENTIFIERLOOSE","\\d+");te("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Dr}*`);te("MAINVERSION",`(${J[K.NUMERICIDENTIFIER]})\\.(${J[K.NUMERICIDENTIFIER]})\\.(${J[K.NUMERICIDENTIFIER]})`);te("MAINVERSIONLOOSE",`(${J[K.NUMERICIDENTIFIERLOOSE]})\\.(${J[K.NUMERICIDENTIFIERLOOSE]})\\.(${J[K.NUMERICIDENTIFIERLOOSE]})`);te("PRERELEASEIDENTIFIER",`(?:${J[K.NONNUMERICIDENTIFIER]}|${J[K.NUMERICIDENTIFIER]})`);te("PRERELEASEIDENTIFIERLOOSE",`(?:${J[K.NONNUMERICIDENTIFIER]}|${J[K.NUMERICIDENTIFIERLOOSE]})`);te("PRERELEASE",`(?:-(${J[K.PRERELEASEIDENTIFIER]}(?:\\.${J[K.PRERELEASEIDENTIFIER]})*))`);te("PRERELEASELOOSE",`(?:-?(${J[K.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${J[K.PRERELEASEIDENTIFIERLOOSE]})*))`);te("BUILDIDENTIFIER",`${Dr}+`);te("BUILD",`(?:\\+(${J[K.BUILDIDENTIFIER]}(?:\\.${J[K.BUILDIDENTIFIER]})*))`);te("FULLPLAIN",`v?${J[K.MAINVERSION]}${J[K.PRERELEASE]}?${J[K.BUILD]}?`);te("FULL",`^${J[K.FULLPLAIN]}$`);te("LOOSEPLAIN",`[v=\\s]*${J[K.MAINVERSIONLOOSE]}${J[K.PRERELEASELOOSE]}?${J[K.BUILD]}?`);te("LOOSE",`^${J[K.LOOSEPLAIN]}$`);te("GTLT","((?:<|>)?=?)");te("XRANGEIDENTIFIERLOOSE",`${J[K.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);te("XRANGEIDENTIFIER",`${J[K.NUMERICIDENTIFIER]}|x|X|\\*`);te("XRANGEPLAIN",`[v=\\s]*(${J[K.XRANGEIDENTIFIER]})(?:\\.(${J[K.XRANGEIDENTIFIER]})(?:\\.(${J[K.XRANGEIDENTIFIER]})(?:${J[K.PRERELEASE]})?${J[K.BUILD]}?)?)?`);te("XRANGEPLAINLOOSE",`[v=\\s]*(${J[K.XRANGEIDENTIFIERLOOSE]})(?:\\.(${J[K.XRANGEIDENTIFIERLOOSE]})(?:\\.(${J[K.XRANGEIDENTIFIERLOOSE]})(?:${J[K.PRERELEASELOOSE]})?${J[K.BUILD]}?)?)?`);te("XRANGE",`^${J[K.GTLT]}\\s*${J[K.XRANGEPLAIN]}$`);te("XRANGELOOSE",`^${J[K.GTLT]}\\s*${J[K.XRANGEPLAINLOOSE]}$`);te("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Or}})(?:\\.(\\d{1,${Or}}))?(?:\\.(\\d{1,${Or}}))?`);te("COERCE",`${J[K.COERCEPLAIN]}(?:$|[^\\d])`);te("COERCEFULL",J[K.COERCEPLAIN]+`(?:${J[K.PRERELEASE]})?(?:${J[K.BUILD]})?(?:$|[^\\d])`);te("COERCERTL",J[K.COERCE],!0);te("COERCERTLFULL",J[K.COERCEFULL],!0);te("LONETILDE","(?:~>?)");te("TILDETRIM",`(\\s*)${J[K.LONETILDE]}\\s+`,!0);Tt.tildeTrimReplace="$1~";te("TILDE",`^${J[K.LONETILDE]}${J[K.XRANGEPLAIN]}$`);te("TILDELOOSE",`^${J[K.LONETILDE]}${J[K.XRANGEPLAINLOOSE]}$`);te("LONECARET","(?:\\^)");te("CARETTRIM",`(\\s*)${J[K.LONECARET]}\\s+`,!0);Tt.caretTrimReplace="$1^";te("CARET",`^${J[K.LONECARET]}${J[K.XRANGEPLAIN]}$`);te("CARETLOOSE",`^${J[K.LONECARET]}${J[K.XRANGEPLAINLOOSE]}$`);te("COMPARATORLOOSE",`^${J[K.GTLT]}\\s*(${J[K.LOOSEPLAIN]})$|^$`);te("COMPARATOR",`^${J[K.GTLT]}\\s*(${J[K.FULLPLAIN]})$|^$`);te("COMPARATORTRIM",`(\\s*)${J[K.GTLT]}\\s*(${J[K.LOOSEPLAIN]}|${J[K.XRANGEPLAIN]})`,!0);Tt.comparatorTrimReplace="$1$2$3";te("HYPHENRANGE",`^\\s*(${J[K.XRANGEPLAIN]})\\s+-\\s+(${J[K.XRANGEPLAIN]})\\s*$`);te("HYPHENRANGELOOSE",`^\\s*(${J[K.XRANGEPLAINLOOSE]})\\s+-\\s+(${J[K.XRANGEPLAINLOOSE]})\\s*$`);te("STAR","(<|>)?=?\\s*\\*");te("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");te("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var zn=Ee((eE,Ti)=>{"use strict";var Rc=Object.freeze({loose:!0}),Ac=Object.freeze({}),Oc=r=>r?typeof r!="object"?Rc:r:Ac;Ti.exports=Oc});var Ai=Ee((tE,Ri)=>{"use strict";var Ci=/^[0-9]+$/,Li=(r,e)=>{if(typeof r=="number"&&typeof e=="number")return r===e?0:r<e?-1:1;let t=Ci.test(r),n=Ci.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},Dc=(r,e)=>Li(e,r);Ri.exports={compareIdentifiers:Li,rcompareIdentifiers:Dc}});var xn=Ee((nE,Di)=>{"use strict";var Wn=$n(),{MAX_LENGTH:Oi,MAX_SAFE_INTEGER:Xn}=jn(),{safeRe:Gn,t:Vn}=Un(),Nc=zn(),{compareIdentifiers:Nr}=Ai(),wr=class r{constructor(e,t){if(t=Nc(t),e instanceof r){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Oi)throw new TypeError(`version is longer than ${Oi} characters`);Wn("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?Gn[Vn.LOOSE]:Gn[Vn.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Xn||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Xn||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Xn||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<Xn)return i}return s}):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(e){if(Wn("SemVer.compare",this.version,this.options,e),!(e instanceof r)){if(typeof e=="string"&&e===this.version)return 0;e=new r(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof r||(e=new r(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof r||(e=new r(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],s=e.prerelease[t];if(Wn("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return Nr(n,s)}while(++t)}compareBuild(e){e instanceof r||(e=new r(e,this.options));let t=0;do{let n=this.build[t],s=e.build[t];if(Wn("build compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return Nr(n,s)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(t){let s=`-${t}`.match(this.options.loose?Gn[Vn.PRERELEASELOOSE]:Gn[Vn.PRERELEASE]);if(!s||s[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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":{let s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(t===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(t){let i=[t,s];n===!1&&(i=[t]),Nr(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Di.exports=wr});var Qt=Ee((rE,wi)=>{"use strict";var Ni=xn(),wc=(r,e,t)=>new Ni(r,t).compare(new Ni(e,t));wi.exports=wc});var kr=Ee((sE,ki)=>{"use strict";var kc=Qt(),Pc=(r,e,t)=>kc(r,e,t)<=0;ki.exports=Pc});var Ii=Ee((iE,Pi)=>{"use strict";var Ic=xn(),Mc=(r,e)=>new Ic(r,e).major;Pi.exports=Mc});var Fi=Ee((oE,Mi)=>{"use strict";var Pr=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,t)}return this}};Mi.exports=Pr});var Bi=Ee((aE,Hi)=>{"use strict";var Fc=Qt(),Hc=(r,e,t)=>Fc(r,e,t)===0;Hi.exports=Hc});var Ui=Ee((lE,ji)=>{"use strict";var Bc=Qt(),jc=(r,e,t)=>Bc(r,e,t)!==0;ji.exports=jc});var Wi=Ee((cE,zi)=>{"use strict";var Uc=Qt(),zc=(r,e,t)=>Uc(r,e,t)>0;zi.exports=zc});var Gi=Ee((uE,Xi)=>{"use strict";var Wc=Qt(),Xc=(r,e,t)=>Wc(r,e,t)>=0;Xi.exports=Xc});var Ir=Ee((dE,Vi)=>{"use strict";var Gc=Qt(),Vc=(r,e,t)=>Gc(r,e,t)<0;Vi.exports=Vc});var Ki=Ee((fE,Ji)=>{"use strict";var Jc=Bi(),Kc=Ui(),Yc=Wi(),Qc=Gi(),Zc=Ir(),qc=kr(),_c=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return Jc(r,t,n);case"!=":return Kc(r,t,n);case">":return Yc(r,t,n);case">=":return Qc(r,t,n);case"<":return Zc(r,t,n);case"<=":return qc(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};Ji.exports=_c});var to=Ee((pE,eo)=>{"use strict";var Tn=Symbol("SemVer ANY"),Hr=class r{static get ANY(){return Tn}constructor(e,t){if(t=Yi(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Fr("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Tn?this.value="":this.value=this.operator+this.semver.version,Fr("comp",this)}parse(e){let t=this.options.loose?Qi[Zi.COMPARATORLOOSE]:Qi[Zi.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new qi(n[2],this.options.loose):this.semver=Tn}toString(){return this.value}test(e){if(Fr("Comparator.test",e,this.options.loose),this.semver===Tn||e===Tn)return!0;if(typeof e=="string")try{e=new qi(e,this.options)}catch{return!1}return Mr(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new _i(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new _i(this.value,t).test(e.semver):(t=Yi(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Mr(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Mr(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};eo.exports=Hr;var Yi=zn(),{safeRe:Qi,t:Zi}=Un(),Mr=Ki(),Fr=$n(),qi=xn(),_i=Br()});var Br=Ee((hE,io)=>{"use strict";var eu=/\s+/g,jr=class r{constructor(e,t){if(t=nu(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof Ur)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(eu," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!ro(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&cu(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let n=0;n<t.length;n++)n>0&&(this.formatted+=" "),this.formatted+=t[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&au)|(this.options.loose&&lu))+":"+e,s=no.get(n);if(s)return s;let i=this.options.loose,o=i?Je[Ue.HYPHENRANGELOOSE]:Je[Ue.HYPHENRANGE];e=e.replace(o,bu(this.options.includePrerelease)),$e("hyphen replace",e),e=e.replace(Je[Ue.COMPARATORTRIM],su),$e("comparator trim",e),e=e.replace(Je[Ue.TILDETRIM],iu),$e("tilde trim",e),e=e.replace(Je[Ue.CARETTRIM],ou),$e("caret trim",e);let a=e.split(" ").map(p=>uu(p,this.options)).join(" ").split(/\s+/).map(p=>vu(p,this.options));i&&(a=a.filter(p=>($e("loose invalid filter",p,this.options),!!p.match(Je[Ue.COMPARATORLOOSE])))),$e("range list",a);let u=new Map,c=a.map(p=>new Ur(p,this.options));for(let p of c){if(ro(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let f=[...u.values()];return no.set(n,f),f}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some(n=>so(n,t)&&e.set.some(s=>so(s,t)&&n.every(i=>s.every(o=>i.intersects(o,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new ru(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Eu(this.set[t],e,this.options))return!0;return!1}};io.exports=jr;var tu=Fi(),no=new tu,nu=zn(),Ur=to(),$e=$n(),ru=xn(),{safeRe:Je,t:Ue,comparatorTrimReplace:su,tildeTrimReplace:iu,caretTrimReplace:ou}=Un(),{FLAG_INCLUDE_PRERELEASE:au,FLAG_LOOSE:lu}=jn(),ro=r=>r.value==="<0.0.0-0",cu=r=>r.value==="",so=(r,e)=>{let t=!0,n=r.slice(),s=n.pop();for(;t&&n.length;)t=n.every(i=>s.intersects(i,e)),s=n.pop();return t},uu=(r,e)=>(r=r.replace(Je[Ue.BUILD],""),$e("comp",r,e),r=pu(r,e),$e("caret",r),r=du(r,e),$e("tildes",r),r=mu(r,e),$e("xrange",r),r=yu(r,e),$e("stars",r),r),Ke=r=>!r||r.toLowerCase()==="x"||r==="*",du=(r,e)=>r.trim().split(/\s+/).map(t=>fu(t,e)).join(" "),fu=(r,e)=>{let t=e.loose?Je[Ue.TILDELOOSE]:Je[Ue.TILDE];return r.replace(t,(n,s,i,o,a)=>{$e("tilde",r,n,s,i,o,a);let u;return Ke(s)?u="":Ke(i)?u=`>=${s}.0.0 <${+s+1}.0.0-0`:Ke(o)?u=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:a?($e("replaceTilde pr",a),u=`>=${s}.${i}.${o}-${a} <${s}.${+i+1}.0-0`):u=`>=${s}.${i}.${o} <${s}.${+i+1}.0-0`,$e("tilde return",u),u})},pu=(r,e)=>r.trim().split(/\s+/).map(t=>hu(t,e)).join(" "),hu=(r,e)=>{$e("caret",r,e);let t=e.loose?Je[Ue.CARETLOOSE]:Je[Ue.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(s,i,o,a,u)=>{$e("caret",r,s,i,o,a,u);let c;return Ke(i)?c="":Ke(o)?c=`>=${i}.0.0${n} <${+i+1}.0.0-0`:Ke(a)?i==="0"?c=`>=${i}.${o}.0${n} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.0${n} <${+i+1}.0.0-0`:u?($e("replaceCaret pr",u),i==="0"?o==="0"?c=`>=${i}.${o}.${a}-${u} <${i}.${o}.${+a+1}-0`:c=`>=${i}.${o}.${a}-${u} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.${a}-${u} <${+i+1}.0.0-0`):($e("no pr"),i==="0"?o==="0"?c=`>=${i}.${o}.${a}${n} <${i}.${o}.${+a+1}-0`:c=`>=${i}.${o}.${a}${n} <${i}.${+o+1}.0-0`:c=`>=${i}.${o}.${a} <${+i+1}.0.0-0`),$e("caret return",c),c})},mu=(r,e)=>($e("replaceXRanges",r,e),r.split(/\s+/).map(t=>gu(t,e)).join(" ")),gu=(r,e)=>{r=r.trim();let t=e.loose?Je[Ue.XRANGELOOSE]:Je[Ue.XRANGE];return r.replace(t,(n,s,i,o,a,u)=>{$e("xRange",r,n,s,i,o,a,u);let c=Ke(i),f=c||Ke(o),p=f||Ke(a),b=p;return s==="="&&b&&(s=""),u=e.includePrerelease?"-0":"",c?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&b?(f&&(o=0),a=0,s===">"?(s=">=",f?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):s==="<="&&(s="<",f?i=+i+1:o=+o+1),s==="<"&&(u="-0"),n=`${s+i}.${o}.${a}${u}`):f?n=`>=${i}.0.0${u} <${+i+1}.0.0-0`:p&&(n=`>=${i}.${o}.0${u} <${i}.${+o+1}.0-0`),$e("xRange return",n),n})},yu=(r,e)=>($e("replaceStars",r,e),r.trim().replace(Je[Ue.STAR],"")),vu=(r,e)=>($e("replaceGTE0",r,e),r.trim().replace(Je[e.includePrerelease?Ue.GTE0PRE:Ue.GTE0],"")),bu=r=>(e,t,n,s,i,o,a,u,c,f,p,b)=>(Ke(n)?t="":Ke(s)?t=`>=${n}.0.0${r?"-0":""}`:Ke(i)?t=`>=${n}.${s}.0${r?"-0":""}`:o?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,Ke(c)?u="":Ke(f)?u=`<${+c+1}.0.0-0`:Ke(p)?u=`<${c}.${+f+1}.0-0`:b?u=`<=${c}.${f}.${p}-${b}`:r?u=`<${c}.${f}.${+p+1}-0`:u=`<=${u}`,`${t} ${u}`.trim()),Eu=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if($e(r[n].semver),r[n].semver!==Ur.ANY&&r[n].semver.prerelease.length>0){let s=r[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var ao=Ee((mE,oo)=>{"use strict";var Su=Br(),$u=(r,e,t)=>{try{e=new Su(e,t)}catch{return!1}return e.test(r)};oo.exports=$u});var Mu={};Jr(Mu,{createNodeLogger:()=>is,createNodeSys:()=>Do,setupNodeProcess:()=>si});module.exports=jo(Mu);var On=xe(require("./graceful-fs.js")),ss=xe(require("path"));var ee=xe(es());var sr=["debug","info","warn","error"];var rs=r=>{let e="info",t=null,n=[],s=l=>e=l,i=()=>e,o=l=>t=l,a=(...l)=>{if(tn(e,"info")){let d=St(l,r.getColumns());u(d),console.log(d.join(`
36
+ `))}I("I",l)},u=l=>{if(l.length>0){let d=ts();l[0]=(0,ee.dim)(d)+l[0].slice(d.length)}},c=(...l)=>{if(tn(e,"warn")){let d=St(l,r.getColumns());f(d),console.warn(`
37
37
  `+d.join(`
38
38
  `)+`
39
39
  `)}I("W",l)},f=l=>{if(l.length){let d="[ WARN ]";l[0]=(0,ee.bold)((0,ee.yellow)(d))+l[0].slice(d.length)}},p=(...l)=>{for(let d=0;d<l.length;d++)if(l[d]instanceof Error){let m=l[d];l[d]=m.message,m.stack&&(l[d]+=`
@@ -41,13 +41,13 @@ See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof R))re
41
41
  `+d.join(`
42
42
  `)+`
43
43
  `)}I("E",l)},b=l=>{if(l.length){let d="[ ERROR ]";l[0]=(0,ee.bold)((0,ee.red)(d))+l[0].slice(d.length)}},$=(...l)=>{if(tn(e,"debug")){x(l);let d=St(l,r.getColumns());h(d),console.log(d.join(`
44
- `))}I("D",l)},h=l=>{if(l.length){let d=es();l[0]=(0,ee.cyan)(d)+l[0].slice(d.length)}},T=(l,d,m)=>{let v=[`${l} ${(0,ee.dim)("...")}`];if(d){if(tn(e,"debug")){x(v);let E=St(v,r.getColumns());h(E),console.log(E.join(`
44
+ `))}I("D",l)},h=l=>{if(l.length){let d=ts();l[0]=(0,ee.cyan)(d)+l[0].slice(d.length)}},T=(l,d,m)=>{let v=[`${l} ${(0,ee.dim)("...")}`];if(d){if(tn(e,"debug")){x(v);let E=St(v,r.getColumns());h(E),console.log(E.join(`
45
45
  `)),I("D",[`${l} ...`])}}else{let E=St(v,r.getColumns());u(E),console.log(E.join(`
46
46
  `)),I("I",[`${l} ...`]),m&&m.push(`${l} ...`)}},x=l=>{let d=r.memoryUsage();d>0&&l.push((0,ee.dim)(` MEM: ${(d/1e6).toFixed(1)}MB`))},k=(l,d,m,v,E,O,N)=>{let w=l;if(m&&(w=ee.default[m](l)),v&&(w=(0,ee.bold)(w)),w+=" "+(0,ee.dim)(d),O){if(tn(e,"debug")){let M=[w];x(M);let j=St(M,r.getColumns());h(j),console.log(j.join(`
47
47
  `))}I("D",[`${l} ${d}`])}else{let M=St([w],r.getColumns());u(M),console.log(M.join(`
48
48
  `)),I("I",[`${l} ${d}`]),N&&N.push(`${l} ${d}`)}E&&console.log("")},C=(l,d=!1,m)=>{let v=Date.now(),E=()=>Date.now()-v,O={duration:E,finish:(N,w,M,j)=>{let W=E(),Z;return W>1e3?Z="in "+(W/1e3).toFixed(2)+" s":parseFloat(W.toFixed(3))>0?Z="in "+W+" ms":Z="in less than 1 ms",k(N,Z,w,!!M,!!j,d,m),W}};return T(l,d,m),O},I=(l,d)=>{if(t){let m=new Date,v=""+("0"+m.getHours()).slice(-2)+":"+("0"+m.getMinutes()).slice(-2)+":"+("0"+m.getSeconds()).slice(-2)+"."+("0"+Math.floor(m.getMilliseconds()/1e3*10))+" "+("000"+(r.memoryUsage()/1e6).toFixed(1)).slice(-6)+"MB "+l+" "+d.join(", ");n.push(v)}},R=l=>{if(t)try{I("F",["--------------------------------------"]),r.writeLogs(t,n.join(`
49
49
  `),l)}catch{}n.length=0},g=l=>{ee.default.enabled=l},S=(l,d)=>{if(!l||l.length===0)return;let m=[""];l.forEach(v=>{m=m.concat(L(v,d))}),console.log(m.join(`
50
- `))},L=(l,d)=>{let m=St([l.messageText],r.getColumns()),v="";l.header&&l.header!=="Build Error"&&(v+=l.header),typeof l.absFilePath=="string"&&typeof l.relFilePath!="string"&&(typeof d!="string"&&(d=r.cwd()),l.relFilePath=r.relativePath(d,l.absFilePath),l.relFilePath.includes("/")||(l.relFilePath="./"+l.relFilePath));let E=l.relFilePath;return typeof E!="string"&&(E=l.absFilePath),typeof E=="string"&&(v.length>0&&(v+=": "),v+=(0,ee.cyan)(E),typeof l.lineNumber=="number"&&l.lineNumber>-1&&(v+=(0,ee.dim)(":"),v+=(0,ee.yellow)(`${l.lineNumber}`),typeof l.columnNumber=="number"&&l.columnNumber>-1&&(v+=(0,ee.dim)(":"),v+=(0,ee.yellow)(`${l.columnNumber}`)))),v.length>0&&m.unshift(Ot+v),m.push(""),l.lines&&l.lines.length&&(Go(l.lines).forEach(N=>{if(!Jo(N.text))return;let w="";for(N.lineNumber>-1&&(w=`L${N.lineNumber}: `);w.length<Ot.length;)w=" "+w;let M=N.text;N.errorCharStart>-1&&(M=D(M,N.errorCharStart,N.errorLength)),w=(0,ee.dim)(w),l.language==="typescript"||l.language==="javascript"?w+=P(M):l.language==="scss"||l.language==="css"?w+=A(M):w+=M,m.push(w)}),m.push("")),l.level==="error"?b(m):l.level==="warn"?f(m):l.level==="debug"?h(m):u(m),l.debugText!=null&&e==="debug"&&(m.push(l.debugText),h(St([l.debugText],r.getColumns()))),m},D=(l,d,m=0)=>{let v=l.length-d+m-1;for(;l.length+Ot.length>r.getColumns();)if(d>l.length-d+m&&d>5)l=l.slice(1),d--;else if(v>1)l=l.slice(0,-1),v--;else break;let E=[],O=Math.max(l.length,d+m);for(let N=0;N<O;N++){let w=l.charAt(N);N>=d&&N<d+m&&(w=(0,ee.bgRed)(w===""?" ":w)),E.push(w)}return E.join("")},P=l=>l.trim().startsWith("//")?(0,ee.dim)(l):l.split(" ").map(m=>Ko.indexOf(m)>-1?(0,ee.cyan)(m):m).join(" "),A=l=>{let d=!0,m="abcdefghijklmnopqrstuvwxyz-_",v=".#,:}@$[]/*",E=[];for(let O=0;O<l.length;O++){let N=l.charAt(O);if(N===";"||N==="{"?d=!0:v.indexOf(N)>-1&&(d=!1),d&&m.indexOf(N.toLowerCase())>-1){E.push((0,ee.cyan)(N));continue}E.push(N)}return E.join("")};return{createLineUpdater:r.createLineUpdater,createTimeSpan:C,debug:$,emoji:r.emoji,enableColors:g,error:p,getLevel:i,info:a,printDiagnostics:S,setLevel:s,setLogFilePath:o,warn:c,writeLogs:R,bgRed:ee.bgRed,blue:ee.blue,bold:ee.bold,cyan:ee.cyan,dim:ee.dim,gray:ee.gray,green:ee.green,magenta:ee.magenta,red:ee.red,yellow:ee.yellow}},tn=(r,e)=>rr.indexOf(e)>=rr.indexOf(r),es=()=>{let r=new Date,e=ts(r.getMinutes()),t=ts(r.getSeconds()),n=Math.floor(r.getMilliseconds()/1e3*10);return`[${e}:${t}.${n}]`},ts=r=>("0"+r.toString()).slice(-2),St=(r,e)=>{let t=[],n=[];r.forEach(i=>{i===null?n.push("null"):typeof i>"u"?n.push("undefined"):typeof i=="string"?i.replace(/\s/gm," ").split(" ").forEach(o=>{o.trim().length&&n.push(o.trim())}):typeof i=="number"||typeof i=="boolean"||typeof i=="function"?n.push(i.toString()):Array.isArray(i)?n.push(()=>i.toString()):Object(i)===i?n.push(()=>i.toString()):n.push(i.toString())});let s=Ot;return n.forEach(i=>{t.length>25||(typeof i=="function"?(s.trim().length&&t.push(s),t.push(i()),s=Ot):Ot.length+i.length>e-1?(s.trim().length&&t.push(s),t.push(Ot+i),s=Ot):i.length+s.length>e-1?(t.push(s),s=Ot+i+" "):s+=i+" ")}),s.trim().length&&t.push(s),t.map(i=>i.trimRight())},Go=r=>{let t=JSON.parse(JSON.stringify(r));for(let n=0;n<100;n++){if(!Vo(t))return t;for(let s=0;s<t.length;s++)if(t[s].text=t[s].text.slice(1),t[s].errorCharStart--,!t[s].text.length)return t}return t},Vo=r=>{if(!r.length)return!1;for(let e=0;e<r.length;e++){if(!r[e].text||r[e].text.length<1)return!1;let t=r[e].text.charAt(0);if(t!==" "&&t!==" ")return!1}return!0},Jo=r=>r?(r=r.trim(),r.length>0):!1,Ko=["abstract","any","as","break","boolean","case","catch","class","console","const","continue","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","import","in","implements","Infinity","instanceof","let","module","namespace","NaN","new","number","null","public","private","protected","require","return","static","set","string","super","switch","this","throw","try","true","type","typeof","undefined","var","void","with","while","yield"],Ot=" ";var ss=()=>{let r=Yo();return ns(r)};function Yo(){return{cwd:()=>process.cwd(),emoji:a=>process.platform!=="win32"?a:"",getColumns:()=>{var p,b;let f=(b=(p=process==null?void 0:process.stdout)==null?void 0:p.columns)!=null?b:80;return Math.max(Math.min(f,120),60)},memoryUsage:()=>process.memoryUsage().rss,relativePath:(a,u)=>rs.default.relative(a,u),writeLogs:(a,u,c)=>{if(c)try{On.default.accessSync(a)}catch{c=!1}c?On.default.appendFileSync(a,u):On.default.writeFileSync(a,u)},createLineUpdater:async()=>{let a=await import("readline"),u=Promise.resolve(),c=p=>(p=p.substring(0,process.stdout.columns-5)+"\x1B[0m",u=u.then(()=>new Promise(b=>{a.clearLine(process.stdout,0),a.cursorTo(process.stdout,0,void 0),process.stdout.write(p,b)}))),f=()=>c("\x1B[?25h");return process.stdout.write("\x1B[?25l"),{update:c,stop:f}}}}var os=()=>{};var sr=r=>r.flat?r.flat(1):r.reduce((e,t)=>(e.push(...t),e),[]);var as=r=>typeof r=="function";var Gt=r=>typeof r=="string";var ir=r=>{let e={"{":"}","(":")","[":"]"},t=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;if(r==="")return!1;let n;for(;n=t.exec(r);){if(n[2])return!0;let s=n.index+n[0].length,i=n[1],o=i?e[i]:null;if(i&&o){let a=r.indexOf(o,s);a!==-1&&(s=a+1)}r=r.slice(s)}return!1};var mn=r=>{let e={level:"error",type:"build",header:"Build Error",messageText:"build error",relFilePath:void 0,absFilePath:void 0,lines:[]};return r&&r.push(e),e};var or=(r,e,t)=>{let n={level:"error",type:"build",header:"Build Error",messageText:"build error",lines:[]};return Gt(t)?n.messageText=t.length?t:"UNKNOWN ERROR":e!=null&&(e.stack!=null?n.messageText=e.stack.toString():e.message!=null?n.messageText=e.message.length?e.message:"UNKNOWN ERROR":n.messageText=e.toString()),r!=null&&!ar(n.messageText)&&r.push(n),n};var ar=r=>r===Vt,Vt="task canceled";var Se=(r,e=!0)=>{if(typeof r!="string")throw new Error("invalid path to normalize");r=na(r.trim());let t=ca(r,oa(r)),n=ia(t),s=n[0],i=n[1],o=s+n.slice(1).join("/");return o===""?".":s===""&&i&&r.includes("/")&&!i.startsWith(".")&&!i.startsWith("@")&&e?"./"+o:o},na=r=>r.replace(sa,"/"),ra="\\",ls="://",sa=/\\/g,ia=r=>{if(!Array.isArray(r)||r.length===0)return[];let e=[r[0]];for(let t=1;t<r.length;t++){let n=r[t];if(n&&n!=="."){if(n===".."){if(e.length>1){if(e[e.length-1]!==".."){e.pop();continue}}else if(e[0])continue}e.push(n)}}return e},oa=r=>{let e=aa(r);return e<0?~e:e},aa=r=>{if(!r)return 0;let e=r.charCodeAt(0);if(e===47||e===92){if(r.charCodeAt(1)!==e)return 1;let n=r.indexOf(e===47?"/":ra,2);return n<0?r.length:n+1}if(cs(e)&&r.charCodeAt(1)===58){let n=r.charCodeAt(2);if(n===47||n===92)return 3;if(r.length===2)return 2}let t=r.indexOf(ls);if(t!==-1){let n=t+ls.length,s=r.indexOf("/",n);if(s!==-1){let i=r.slice(0,t),o=r.slice(n,s);if(i==="file"&&(o===""||o==="localhost")&&cs(r.charCodeAt(s+1))){let a=la(r,s+2);if(a!==-1){if(r.charCodeAt(a)===47)return~(a+1);if(a===r.length)return~a}}return~(s+1)}return~r.length}return 0},cs=r=>r>=97&&r<=122||r>=65&&r<=90,la=(r,e)=>{let t=r.charCodeAt(e);if(t===58)return e+1;if(t===37&&r.charCodeAt(e+1)===51){let n=r.charCodeAt(e+2);if(n===97||n===65)return e+3}return-1},ca=(r,e)=>{let t=r.substring(0,e),n=r.substring(e).split("/"),s=n.length;return s>0&&!n[s-1]&&n.pop(),[t,...n]};var Hs=xe($s(),1);var yn=r=>{if(typeof r!="string")throw new TypeError("invalid pattern");if(r.length>65536)throw new TypeError("pattern is too long")};var ya={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},vn=r=>r.replace(/[[\]\\-]/g,"\\$&"),va=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),xs=r=>r.join(""),Ts=(r,e)=>{let t=e;if(r.charAt(t)!=="[")throw new Error("not in a brace expression");let n=[],s=[],i=t+1,o=!1,a=!1,u=!1,c=!1,f=t,p="";e:for(;i<r.length;){let T=r.charAt(i);if((T==="!"||T==="^")&&i===t+1){c=!0,i++;continue}if(T==="]"&&o&&!u){f=i+1;break}if(o=!0,T==="\\"&&!u){u=!0,i++;continue}if(T==="["&&!u){for(let[x,[k,C,I]]of Object.entries(ya))if(r.startsWith(x,i)){if(p)return["$.",!1,r.length-t,!0];i+=x.length,I?s.push(k):n.push(k),a=a||C;continue e}}if(u=!1,p){T>p?n.push(vn(p)+"-"+vn(T)):T===p&&n.push(vn(T)),p="",i++;continue}if(r.startsWith("-]",i+1)){n.push(vn(T+"-")),i+=2;continue}if(r.startsWith("-",i+1)){p=T,i+=2;continue}n.push(vn(T)),i++}if(f<i)return["",!1,0,!1];if(!n.length&&!s.length)return["$.",!1,r.length-t,!0];if(s.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!c){let T=n[0].length===2?n[0].slice(-1):n[0];return[va(T),!1,f-t,!1]}let b="["+(c?"^":"")+xs(n)+"]",$="["+(c?"":"^")+xs(s)+"]";return[n.length&&s.length?"("+b+"|"+$+")":n.length?b:$,a,f-t,!0]};var bt=(r,{windowsPathsNoEscape:e=!1}={})=>e?r.replace(/\[([^\/\\])\]/g,"$1"):r.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var Qe,ba=new Set(["!","?","+","*","@"]),ur=r=>ba.has(r),Cs=r=>ur(r.type),Ea=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),Sa=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),$a=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Ls=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),xa="(?!(?:^|/)\\.\\.?(?:$|/))",Nn="(?!\\.)",Ta=new Set(["[","."]),Ca=new Set(["..","."]),La=new Set("().*{}+?[]^$\\!"),Ra=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),hr="[^/]",Rs=hr+"*?",As=hr+"+?",Oe,ke,Dt,ne,Ce,Ft,Jt,Ht,$t,xt,nn,ce,Os,jt,wn,Ds,dr,kn,Ns,fr,ws,ks,Ps,Pn,pr,Is,Bt=class{constructor(e,t,n={}){Fe(this,ce);Te(this,"type");Fe(this,Oe);Fe(this,ke);Fe(this,Dt,!1);Fe(this,ne,[]);Fe(this,Ce);Fe(this,Ft);Fe(this,Jt);Fe(this,Ht,!1);Fe(this,$t);Fe(this,xt);Fe(this,nn,!1);this.type=e,e&&de(this,ke,!0),de(this,Ce,t),de(this,Oe,B(this,Ce)?B(B(this,Ce),Oe):this),de(this,$t,B(this,Oe)===this?n:B(B(this,Oe),$t)),de(this,Jt,B(this,Oe)===this?[]:B(B(this,Oe),Jt)),e==="!"&&!B(B(this,Oe),Ht)&&B(this,Jt).push(this),de(this,Ft,B(this,Ce)?B(B(this,Ce),ne).length:0)}get hasMagic(){if(B(this,ke)!==void 0)return B(this,ke);for(let e of B(this,ne))if(typeof e!="string"&&(e.type||e.hasMagic))return de(this,ke,!0);return B(this,ke)}toString(){return B(this,xt)!==void 0?B(this,xt):this.type?de(this,xt,this.type+"("+B(this,ne).map(e=>String(e)).join("|")+")"):de(this,xt,B(this,ne).map(e=>String(e)).join(""))}push(...e){for(let t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof Qe&&B(t,Ce)===this))throw new Error("invalid part: "+t);B(this,ne).push(t)}}toJSON(){var t;let e=this.type===null?B(this,ne).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...B(this,ne).map(n=>n.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===B(this,Oe)||B(B(this,Oe),Ht)&&((t=B(this,Ce))==null?void 0:t.type)==="!")&&e.push({}),e}isStart(){var t;if(B(this,Oe)===this)return!0;if(!((t=B(this,Ce))!=null&&t.isStart()))return!1;if(B(this,Ft)===0)return!0;let e=B(this,Ce);for(let n=0;n<B(this,Ft);n++){let s=B(e,ne)[n];if(!(s instanceof Qe&&s.type==="!"))return!1}return!0}isEnd(){var t,n,s;if(B(this,Oe)===this||((t=B(this,Ce))==null?void 0:t.type)==="!")return!0;if(!((n=B(this,Ce))!=null&&n.isEnd()))return!1;if(!this.type)return(s=B(this,Ce))==null?void 0:s.isEnd();let e=B(this,Ce)?B(B(this,Ce),ne).length:0;return B(this,Ft)===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let t=new Qe(this.type,e);for(let n of B(this,ne))t.copyIn(n);return t}static fromGlob(e,t={}){var s;let n=new Qe(null,void 0,t);return le(s=Qe,jt,wn).call(s,e,n,0,t,0),n}toMMPattern(){if(this!==B(this,Oe))return B(this,Oe).toMMPattern();let e=this.toString(),[t,n,s,i]=this.toRegExpSource();if(!(s||B(this,ke)||B(this,$t).nocase&&!B(this,$t).nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(B(this,$t).nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return B(this,$t)}toRegExpSource(e){var u;let t=e!=null?e:!!B(this,$t).dot;if(B(this,Oe)===this&&(le(this,ce,Pn).call(this),le(this,ce,Os).call(this)),!Cs(this)){let c=this.isStart()&&this.isEnd(),f=B(this,ne).map(h=>{var I;let[T,x,k,C]=typeof h=="string"?le(I=Qe,jt,Is).call(I,h,B(this,ke),c):h.toRegExpSource(e);return de(this,ke,B(this,ke)||k),de(this,Dt,B(this,Dt)||C),T}).join(""),p="";if(this.isStart()&&typeof B(this,ne)[0]=="string"&&!(B(this,ne).length===1&&Ca.has(B(this,ne)[0]))){let T=Ta,x=t&&T.has(f.charAt(0))||f.startsWith("\\.")&&T.has(f.charAt(2))||f.startsWith("\\.\\.")&&T.has(f.charAt(4)),k=!t&&!e&&T.has(f.charAt(0));p=x?xa:k?Nn:""}let b="";return this.isEnd()&&B(B(this,Oe),Ht)&&((u=B(this,Ce))==null?void 0:u.type)==="!"&&(b="(?:$|\\/)"),[p+f+b,bt(f),de(this,ke,!!B(this,ke)),B(this,Dt)]}let n=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:",i=le(this,ce,pr).call(this,t);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){let c=this.toString(),f=this;return de(f,ne,[c]),f.type=null,de(f,ke,void 0),[c,bt(this.toString()),!1,!1]}let o=!n||e||t||!Nn?"":le(this,ce,pr).call(this,!0);o===i&&(o=""),o&&(i=`(?:${i})(?:${o})*?`);let a="";if(this.type==="!"&&B(this,nn))a=(this.isStart()&&!t?Nn:"")+As;else{let c=this.type==="!"?"))"+(this.isStart()&&!t&&!e?Nn:"")+Rs+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=s+i+c}return[a,bt(i),de(this,ke,!!B(this,ke)),B(this,Dt)]}};Oe=new WeakMap,ke=new WeakMap,Dt=new WeakMap,ne=new WeakMap,Ce=new WeakMap,Ft=new WeakMap,Jt=new WeakMap,Ht=new WeakMap,$t=new WeakMap,xt=new WeakMap,nn=new WeakMap,ce=new WeakSet,Os=function(){if(this!==B(this,Oe))throw new Error("should only call on root");if(B(this,Ht))return this;this.toString(),de(this,Ht,!0);let e;for(;e=B(this,Jt).pop();){if(e.type!=="!")continue;let t=e,n=B(t,Ce);for(;n;){for(let s=B(t,Ft)+1;!n.type&&s<B(n,ne).length;s++)for(let i of B(e,ne)){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(B(n,ne)[s])}t=n,n=B(t,Ce)}}return this},jt=new WeakSet,wn=function(e,t,n,s,i){var T,x,k,C,I;let o=(T=s.maxExtglobRecursion)!=null?T:2,a=!1,u=!1,c=-1,f=!1;if(t.type===null){let R=n,g="";for(;R<e.length;){let S=e.charAt(R++);if(a||S==="\\"){a=!a,g+=S;continue}if(u){R===c+1?(S==="^"||S==="!")&&(f=!0):S==="]"&&!(R===c+2&&f)&&(u=!1),g+=S;continue}else if(S==="["){u=!0,c=R,f=!1,g+=S;continue}if(!s.noext&&ur(S)&&e.charAt(R)==="("&&i<=o){t.push(g),g="";let D=new Qe(S,t);R=le(x=Qe,jt,wn).call(x,e,D,R,s,i+1),t.push(D);continue}g+=S}return t.push(g),R}let p=n+1,b=new Qe(null,t),$=[],h="";for(;p<e.length;){let R=e.charAt(p++);if(a||R==="\\"){a=!a,h+=R;continue}if(u){p===c+1?(R==="^"||R==="!")&&(f=!0):R==="]"&&!(p===c+2&&f)&&(u=!1),h+=R;continue}else if(R==="["){u=!0,c=p,f=!1,h+=R;continue}if(ur(R)&&e.charAt(p)==="("&&(i<=o||t&&le(k=t,ce,kn).call(k,R))){let S=t&&le(C=t,ce,kn).call(C,R)?0:1;b.push(h),h="";let L=new Qe(R,b);b.push(L),p=le(I=Qe,jt,wn).call(I,e,L,p,s,i+S);continue}if(R==="|"){b.push(h),h="",$.push(b),b=new Qe(null,t);continue}if(R===")")return h===""&&B(t,ne).length===0&&de(t,nn,!0),b.push(h),h="",t.push(...$,b),p;h+=R}return t.type=null,de(t,ke,void 0),de(t,ne,[e.substring(n-1)]),p},Ds=function(e){return le(this,ce,dr).call(this,e,Sa)},dr=function(e,t=Ea){if(!e||typeof e!="object"||e.type!==null||B(e,ne).length!==1||this.type===null)return!1;let n=B(e,ne)[0];return!n||typeof n!="object"||n.type===null?!1:le(this,ce,kn).call(this,n.type,t)},kn=function(e,t=$a){var n;return!!((n=t.get(this.type))!=null&&n.includes(e))},Ns=function(e,t){let n=B(e,ne)[0],s=new Qe(null,n,this.options);B(s,ne).push(""),n.push(s),le(this,ce,fr).call(this,e,t)},fr=function(e,t){let n=B(e,ne)[0];B(this,ne).splice(t,1,...B(n,ne));for(let s of B(n,ne))typeof s=="object"&&de(s,Ce,this);de(this,xt,void 0)},ws=function(e){let t=Ls.get(this.type);return!!(t!=null&&t.has(e))},ks=function(e){if(!e||typeof e!="object"||e.type!==null||B(e,ne).length!==1||this.type===null||B(this,ne).length!==1)return!1;let t=B(e,ne)[0];return!t||typeof t!="object"||t.type===null?!1:le(this,ce,ws).call(this,t.type)},Ps=function(e){let t=Ls.get(this.type),n=B(e,ne)[0],s=t==null?void 0:t.get(n.type);if(!s)return!1;de(this,ne,B(n,ne));for(let i of B(this,ne))typeof i=="object"&&de(i,Ce,this);this.type=s,de(this,xt,void 0),de(this,nn,!1)},Pn=function(){var e,t;if(Cs(this)){let n=0,s=!1;do{s=!0;for(let i=0;i<B(this,ne).length;i++){let o=B(this,ne)[i];typeof o=="object"&&(le(t=o,ce,Pn).call(t),le(this,ce,dr).call(this,o)?(s=!1,le(this,ce,fr).call(this,o,i)):le(this,ce,Ds).call(this,o)?(s=!1,le(this,ce,Ns).call(this,o,i)):le(this,ce,ks).call(this,o)&&(s=!1,le(this,ce,Ps).call(this,o)))}}while(!s&&++n<10)}else for(let n of B(this,ne))typeof n=="object"&&le(e=n,ce,Pn).call(e);de(this,xt,void 0)},pr=function(e){return B(this,ne).map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");let[n,s,i,o]=t.toRegExpSource(e);return de(this,Dt,B(this,Dt)||o),n}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")},Is=function(e,t,n=!1){let s=!1,i="",o=!1,a=!1;for(let u=0;u<e.length;u++){let c=e.charAt(u);if(s){s=!1,i+=(La.has(c)?"\\":"")+c,a=!1;continue}if(c==="\\"){u===e.length-1?i+="\\\\":s=!0;continue}if(c==="["){let[f,p,b,$]=Ts(e,u);if(b){i+=f,o=o||p,u+=b-1,t=t||$,a=!1;continue}}if(c==="*"){if(a)continue;a=!0,i+=n&&/^[*]+$/.test(e)?As:Rs,t=!0;continue}else a=!1;if(c==="?"){i+=hr,t=!0;continue}i+=Ra(c)}return[i,bt(e),!!t,o]},Fe(Bt,jt);Qe=Bt;var rn=(r,{windowsPathsNoEscape:e=!1}={})=>e?r.replace(/[?*()[\]]/g,"[$&]"):r.replace(/[?*()[\]\\]/g,"\\$&");var je=(r,e,t={})=>(yn(e),!t.nocomment&&e.charAt(0)==="#"?!1:new Nt(e,t).match(r)),Aa=/^\*+([^+@!?\*\[\(]*)$/,Oa=r=>e=>!e.startsWith(".")&&e.endsWith(r),Da=r=>e=>e.endsWith(r),Na=r=>(r=r.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(r)),wa=r=>(r=r.toLowerCase(),e=>e.toLowerCase().endsWith(r)),ka=/^\*+\.\*+$/,Pa=r=>!r.startsWith(".")&&r.includes("."),Ia=r=>r!=="."&&r!==".."&&r.includes("."),Ma=/^\.\*+$/,Fa=r=>r!=="."&&r!==".."&&r.startsWith("."),Ha=/^\*+$/,Ba=r=>r.length!==0&&!r.startsWith("."),ja=r=>r.length!==0&&r!=="."&&r!=="..",Ua=/^\?+([^+@!?\*\[\(]*)?$/,za=([r,e=""])=>{let t=Bs([r]);return e?(e=e.toLowerCase(),n=>t(n)&&n.toLowerCase().endsWith(e)):t},Wa=([r,e=""])=>{let t=js([r]);return e?(e=e.toLowerCase(),n=>t(n)&&n.toLowerCase().endsWith(e)):t},Xa=([r,e=""])=>{let t=js([r]);return e?n=>t(n)&&n.endsWith(e):t},Ga=([r,e=""])=>{let t=Bs([r]);return e?n=>t(n)&&n.endsWith(e):t},Bs=([r])=>{let e=r.length;return t=>t.length===e&&!t.startsWith(".")},js=([r])=>{let e=r.length;return t=>t.length===e&&t!=="."&&t!==".."},Us=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Ms={win32:{sep:"\\"},posix:{sep:"/"}},Va=Us==="win32"?Ms.win32.sep:Ms.posix.sep;je.sep=Va;var He=Symbol("globstar **");je.GLOBSTAR=He;var Ja="[^/]",Ka=Ja+"*?",Ya="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Qa="(?:(?!(?:\\/|^)\\.).)*?",Za=(r,e={})=>t=>je(t,r,e);je.filter=Za;var lt=(r,e={})=>Object.assign({},r,e),qa=r=>{if(!r||typeof r!="object"||!Object.keys(r).length)return je;let e=je;return Object.assign((n,s,i={})=>e(n,s,lt(r,i)),{Minimatch:class extends e.Minimatch{constructor(s,i={}){super(s,lt(r,i))}static defaults(s){return e.defaults(lt(r,s)).Minimatch}},AST:class extends e.AST{constructor(s,i,o={}){super(s,i,lt(r,o))}static fromGlob(s,i={}){return e.AST.fromGlob(s,lt(r,i))}},unescape:(n,s={})=>e.unescape(n,lt(r,s)),escape:(n,s={})=>e.escape(n,lt(r,s)),filter:(n,s={})=>e.filter(n,lt(r,s)),defaults:n=>e.defaults(lt(r,n)),makeRe:(n,s={})=>e.makeRe(n,lt(r,s)),braceExpand:(n,s={})=>e.braceExpand(n,lt(r,s)),match:(n,s,i={})=>e.match(n,s,lt(r,i)),sep:e.sep,GLOBSTAR:He})};je.defaults=qa;var zs=(r,e={})=>(yn(r),e.nobrace||!/\{(?:(?!\{).)*\}/.test(r)?[r]:(0,Hs.default)(r));je.braceExpand=zs;var _a=(r,e={})=>new Nt(r,e).makeRe();je.makeRe=_a;var el=(r,e,t={})=>{let n=new Nt(e,t);return r=r.filter(s=>n.match(s)),n.options.nonull&&!r.length&&r.push(e),r};je.match=el;var Fs=/[?*]|[+@!]\(.*?\)|\[|\]/,tl=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),st,Ws,mr,sn,Nt=class{constructor(e,t={}){Fe(this,st);Te(this,"options");Te(this,"set");Te(this,"pattern");Te(this,"windowsPathsNoEscape");Te(this,"nonegate");Te(this,"negate");Te(this,"comment");Te(this,"empty");Te(this,"preserveMultipleSlashes");Te(this,"partial");Te(this,"globSet");Te(this,"globParts");Te(this,"nocase");Te(this,"isWindows");Te(this,"platform");Te(this,"windowsNoMagicRoot");Te(this,"maxGlobstarRecursion");Te(this,"regexp");var n;yn(e),t=t||{},this.options=t,this.maxGlobstarRecursion=(n=t.maxGlobstarRecursion)!=null?n:200,this.pattern=e,this.platform=t.platform||Us,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(i=>this.slashSplit(i));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let s=this.globParts.map((i,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let u=i[0]===""&&i[1]===""&&(i[2]==="?"||!Fs.test(i[2]))&&!Fs.test(i[3]),c=/^[a-z]:/i.test(i[0]);if(u)return[...i.slice(0,4),...i.slice(4).map(f=>this.parse(f))];if(c)return[i[0],...i.slice(1).map(f=>this.parse(f))]}return i.map(u=>this.parse(u))});if(this.debug(this.pattern,s),this.set=s.filter(i=>i.indexOf(!1)===-1),this.isWindows)for(let i=0;i<this.set.length;i++){let o=this.set[i];o[0]===""&&o[1]===""&&this.globParts[i][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let n=0;n<e.length;n++)for(let s=0;s<e[n].length;s++)e[n][s]==="**"&&(e[n][s]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let n=-1;for(;(n=t.indexOf("**",n+1))!==-1;){let s=n;for(;t[s+1]==="**";)s++;s!==n&&t.splice(n,s-n)}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((n,s)=>{let i=n[n.length-1];return s==="**"&&i==="**"?n:s===".."&&i&&i!==".."&&i!=="."&&i!=="**"?(n.pop(),n):(n.push(s),n)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let s=1;s<e.length-1;s++){let i=e[s];s===1&&i===""&&e[0]===""||(i==="."||i==="")&&(t=!0,e.splice(s,1),s--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf("..",n+1))!==-1;){let s=e[n-1];s&&s!=="."&&s!==".."&&s!=="**"&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let s=-1;for(;(s=n.indexOf("**",s+1))!==-1;){let o=s;for(;n[o+1]==="**";)o++;o>s&&n.splice(s+1,o-s);let a=n[s+1],u=n[s+2],c=n[s+3];if(a!==".."||!u||u==="."||u===".."||!c||c==="."||c==="..")continue;t=!0,n.splice(s,1);let f=n.slice(0);f[s]="**",e.push(f),s--}if(!this.preserveMultipleSlashes){for(let o=1;o<n.length-1;o++){let a=n[o];o===1&&a===""&&n[0]===""||(a==="."||a==="")&&(t=!0,n.splice(o,1),o--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(t=!0,n.pop())}let i=0;for(;(i=n.indexOf("..",i+1))!==-1;){let o=n[i-1];if(o&&o!=="."&&o!==".."&&o!=="**"){t=!0;let u=i===1&&n[i+1]==="**"?["."]:[];n.splice(i-1,2,...u),n.length===0&&n.push(""),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let s=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(s){e[t]=[],e[n]=s;break}}return e.filter(t=>t.length)}partsMatch(e,t,n=!1){let s=0,i=0,o=[],a="";for(;s<e.length&&i<t.length;)if(e[s]===t[i])o.push(a==="b"?t[i]:e[s]),s++,i++;else if(n&&e[s]==="**"&&t[i]===e[s+1])o.push(e[s]),s++;else if(n&&t[i]==="**"&&e[s]===t[i+1])o.push(t[i]),i++;else if(e[s]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(a==="b")return!1;a="a",o.push(e[s]),s++,i++}else if(t[i]==="*"&&e[s]&&(this.options.dot||!e[s].startsWith("."))&&e[s]!=="**"){if(a==="a")return!1;a="b",o.push(t[i]),s++,i++}else return!1;return e.length===t.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let s=0;s<e.length&&e.charAt(s)==="!";s++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let s=0,i=0;if(this.isWindows){let a=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),u=!a&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),c=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),f=!c&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),p=u?3:a?0:void 0,b=f?3:c?0:void 0;if(typeof p=="number"&&typeof b=="number"){let[$,h]=[e[p],t[b]];$.toLowerCase()===h.toLowerCase()&&(t[b]=$,i=b,s=p)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(He)?le(this,st,Ws).call(this,e,t,n,s,i):le(this,st,sn).call(this,e,t,n,s,i)}braceExpand(){return zs(this.pattern,this.options)}parse(e){yn(e);let t=this.options;if(e==="**")return He;if(e==="")return"";let n,s=null;(n=e.match(Ha))?s=t.dot?ja:Ba:(n=e.match(Aa))?s=(t.nocase?t.dot?wa:Na:t.dot?Da:Oa)(n[1]):(n=e.match(Ua))?s=(t.nocase?t.dot?Wa:za:t.dot?Xa:Ga)(n):(n=e.match(ka))?s=t.dot?Ia:Pa:(n=e.match(Ma))&&(s=Fa);let i=Bt.fromGlob(e,this.options).toMMPattern();return s&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:s}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?Ka:t.dot?Ya:Qa,s=new Set(t.nocase?["i"]:[]),i=e.map(u=>{let c=u.map(f=>{if(f instanceof RegExp)for(let p of f.flags.split(""))s.add(p);return typeof f=="string"?tl(f):f===He?He:f._src});return c.forEach((f,p)=>{let b=c[p+1],$=c[p-1];f!==He||$===He||($===void 0?b!==void 0&&b!==He?c[p+1]="(?:\\/|"+n+"\\/)?"+b:c[p]=n:b===void 0?c[p-1]=$+"(?:\\/|"+n+")?":b!==He&&(c[p-1]=$+"(?:\\/|\\/"+n+"\\/)"+b,c[p+1]=He))}),c.filter(f=>f!==He).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];i="^"+o+i+a+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let i=this.set;this.debug(this.pattern,"set",i);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<i.length;a++){let u=i[a],c=s;if(n.matchBase&&u.length===1&&(c=[o]),this.matchOne(c,u,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return je.defaults(e).Minimatch}};st=new WeakSet,Ws=function(e,t,n,s,i){let o=t.indexOf(He,i),a=t.lastIndexOf(He),[u,c,f]=n?[t.slice(i,o),t.slice(o+1),[]]:[t.slice(i,o),t.slice(o+1,a),t.slice(a+1)];if(u.length){let C=e.slice(s,s+u.length);if(!le(this,st,sn).call(this,C,u,n,0,0))return!1;s+=u.length}let p=0;if(f.length){if(f.length+s>e.length)return!1;let C=e.length-f.length;if(le(this,st,sn).call(this,e,f,n,C,0))p=f.length;else{if(e[e.length-1]!==""||s+f.length===e.length||(C--,!le(this,st,sn).call(this,e,f,n,C,0)))return!1;p=f.length+1}}if(!c.length){let C=!!p;for(let I=s;I<e.length-p;I++){let R=String(e[I]);if(C=!0,R==="."||R===".."||!this.options.dot&&R.startsWith("."))return!1}return n||C}let b=[[[],0]],$=b[0],h=0,T=[0];for(let C of c)C===He?(T.push(h),$=[[],0],b.push($)):($[0].push(C),h++);let x=b.length-1,k=e.length-p;for(let C of b)C[1]=k-(T[x--]+C[0].length);return!!le(this,st,mr).call(this,e,b,s,0,n,0,!!p)},mr=function(e,t,n,s,i,o,a){let u=t[s];if(!u){for(let p=n;p<e.length;p++){a=!0;let b=e[p];if(b==="."||b===".."||!this.options.dot&&b.startsWith("."))return!1}return a}let[c,f]=u;for(;n<=f;){if(le(this,st,sn).call(this,e.slice(0,n+c.length),c,i,n,0)&&o<this.maxGlobstarRecursion){let $=le(this,st,mr).call(this,e,t,n+c.length,s+1,i,o+1,a);if($!==!1)return $}let b=e[n];if(b==="."||b===".."||!this.options.dot&&b.startsWith("."))return!1;n++}return i||null},sn=function(e,t,n,s,i){let o,a,u,c;for(o=s,a=i,c=e.length,u=t.length;o<c&&a<u;o++,a++){this.debug("matchOne loop");let f=t[a],p=e[o];if(this.debug(t,f,p),f===!1||f===He)return!1;let b;if(typeof f=="string"?(b=p===f,this.debug("string match",f,p,b)):(b=f.test(p),this.debug("pattern match",f,p,b)),!b)return!1}if(o===c&&a===u)return!0;if(o===c)return n;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")};je.AST=Bt;je.Minimatch=Nt;je.escape=rn;je.unescape=bt;var yr={};Vr(yr,{err:()=>Xs,map:()=>nl,ok:()=>gr,unwrap:()=>rl,unwrapErr:()=>sl});var gr=r=>({isOk:!0,isErr:!1,value:r}),Xs=r=>({isOk:!1,isErr:!0,value:r});function nl(r,e){if(r.isOk){let t=e(r.value);return t instanceof Promise?t.then(n=>gr(n)):gr(t)}if(r.isErr){let t=r.value;return Xs(t)}throw"should never get here"}var rl=r=>{if(r.isOk)return r.value;throw r.value},sl=r=>{if(r.isErr)return r.value;throw r.value};var ie={allRenderFn:!1,element:!0,event:!0,hasRenderFn:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,propChangeCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,devTools:!1,shadowDelegatesFocus:!0,shadowSlotAssignmentManual:!1,initializeNextTick:!1,asyncLoading:!0,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1};var ol={isDev:!!ie.isDev,isBrowser:!0,isServer:!1,isTesting:!!ie.isTesting};var Gf=ie.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"];var ct=typeof window<"u"?window:{},_f=ct.HTMLElement||class{};var an=ie.shadowDom;var vr=ie.constructableCSS?(()=>{try{return ct.document.adoptedStyleSheets?(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"):!1}catch{}return!1})():!1;/**
50
+ `))},L=(l,d)=>{let m=St([l.messageText],r.getColumns()),v="";l.header&&l.header!=="Build Error"&&(v+=l.header),typeof l.absFilePath=="string"&&typeof l.relFilePath!="string"&&(typeof d!="string"&&(d=r.cwd()),l.relFilePath=r.relativePath(d,l.absFilePath),l.relFilePath.includes("/")||(l.relFilePath="./"+l.relFilePath));let E=l.relFilePath;return typeof E!="string"&&(E=l.absFilePath),typeof E=="string"&&(v.length>0&&(v+=": "),v+=(0,ee.cyan)(E),typeof l.lineNumber=="number"&&l.lineNumber>-1&&(v+=(0,ee.dim)(":"),v+=(0,ee.yellow)(`${l.lineNumber}`),typeof l.columnNumber=="number"&&l.columnNumber>-1&&(v+=(0,ee.dim)(":"),v+=(0,ee.yellow)(`${l.columnNumber}`)))),v.length>0&&m.unshift(Ot+v),m.push(""),l.lines&&l.lines.length&&(Vo(l.lines).forEach(N=>{if(!Ko(N.text))return;let w="";for(N.lineNumber>-1&&(w=`L${N.lineNumber}: `);w.length<Ot.length;)w=" "+w;let M=N.text;N.errorCharStart>-1&&(M=D(M,N.errorCharStart,N.errorLength)),w=(0,ee.dim)(w),l.language==="typescript"||l.language==="javascript"?w+=P(M):l.language==="scss"||l.language==="css"?w+=A(M):w+=M,m.push(w)}),m.push("")),l.level==="error"?b(m):l.level==="warn"?f(m):l.level==="debug"?h(m):u(m),l.debugText!=null&&e==="debug"&&(m.push(l.debugText),h(St([l.debugText],r.getColumns()))),m},D=(l,d,m=0)=>{let v=l.length-d+m-1;for(;l.length+Ot.length>r.getColumns();)if(d>l.length-d+m&&d>5)l=l.slice(1),d--;else if(v>1)l=l.slice(0,-1),v--;else break;let E=[],O=Math.max(l.length,d+m);for(let N=0;N<O;N++){let w=l.charAt(N);N>=d&&N<d+m&&(w=(0,ee.bgRed)(w===""?" ":w)),E.push(w)}return E.join("")},P=l=>l.trim().startsWith("//")?(0,ee.dim)(l):l.split(" ").map(m=>Yo.indexOf(m)>-1?(0,ee.cyan)(m):m).join(" "),A=l=>{let d=!0,m="abcdefghijklmnopqrstuvwxyz-_",v=".#,:}@$[]/*",E=[];for(let O=0;O<l.length;O++){let N=l.charAt(O);if(N===";"||N==="{"?d=!0:v.indexOf(N)>-1&&(d=!1),d&&m.indexOf(N.toLowerCase())>-1){E.push((0,ee.cyan)(N));continue}E.push(N)}return E.join("")};return{createLineUpdater:r.createLineUpdater,createTimeSpan:C,debug:$,emoji:r.emoji,enableColors:g,error:p,getLevel:i,info:a,printDiagnostics:S,setLevel:s,setLogFilePath:o,warn:c,writeLogs:R,bgRed:ee.bgRed,blue:ee.blue,bold:ee.bold,cyan:ee.cyan,dim:ee.dim,gray:ee.gray,green:ee.green,magenta:ee.magenta,red:ee.red,yellow:ee.yellow}},tn=(r,e)=>sr.indexOf(e)>=sr.indexOf(r),ts=()=>{let r=new Date,e=ns(r.getMinutes()),t=ns(r.getSeconds()),n=Math.floor(r.getMilliseconds()/1e3*10);return`[${e}:${t}.${n}]`},ns=r=>("0"+r.toString()).slice(-2),St=(r,e)=>{let t=[],n=[];r.forEach(i=>{i===null?n.push("null"):typeof i>"u"?n.push("undefined"):typeof i=="string"?i.replace(/\s/gm," ").split(" ").forEach(o=>{o.trim().length&&n.push(o.trim())}):typeof i=="number"||typeof i=="boolean"||typeof i=="function"?n.push(i.toString()):Array.isArray(i)?n.push(()=>i.toString()):Object(i)===i?n.push(()=>i.toString()):n.push(i.toString())});let s=Ot;return n.forEach(i=>{t.length>25||(typeof i=="function"?(s.trim().length&&t.push(s),t.push(i()),s=Ot):Ot.length+i.length>e-1?(s.trim().length&&t.push(s),t.push(Ot+i),s=Ot):i.length+s.length>e-1?(t.push(s),s=Ot+i+" "):s+=i+" ")}),s.trim().length&&t.push(s),t.map(i=>i.trimRight())},Vo=r=>{let t=JSON.parse(JSON.stringify(r));for(let n=0;n<100;n++){if(!Jo(t))return t;for(let s=0;s<t.length;s++)if(t[s].text=t[s].text.slice(1),t[s].errorCharStart--,!t[s].text.length)return t}return t},Jo=r=>{if(!r.length)return!1;for(let e=0;e<r.length;e++){if(!r[e].text||r[e].text.length<1)return!1;let t=r[e].text.charAt(0);if(t!==" "&&t!==" ")return!1}return!0},Ko=r=>r?(r=r.trim(),r.length>0):!1,Yo=["abstract","any","as","break","boolean","case","catch","class","console","const","continue","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","import","in","implements","Infinity","instanceof","let","module","namespace","NaN","new","number","null","public","private","protected","require","return","static","set","string","super","switch","this","throw","try","true","type","typeof","undefined","var","void","with","while","yield"],Ot=" ";var is=()=>{let r=Qo();return rs(r)};function Qo(){return{cwd:()=>process.cwd(),emoji:a=>process.platform!=="win32"?a:"",getColumns:()=>{var p,b;let f=(b=(p=process==null?void 0:process.stdout)==null?void 0:p.columns)!=null?b:80;return Math.max(Math.min(f,120),60)},memoryUsage:()=>process.memoryUsage().rss,relativePath:(a,u)=>ss.default.relative(a,u),writeLogs:(a,u,c)=>{if(c)try{On.default.accessSync(a)}catch{c=!1}c?On.default.appendFileSync(a,u):On.default.writeFileSync(a,u)},createLineUpdater:async()=>{let a=await import("readline"),u=Promise.resolve(),c=p=>(p=p.substring(0,process.stdout.columns-5)+"\x1B[0m",u=u.then(()=>new Promise(b=>{a.clearLine(process.stdout,0),a.cursorTo(process.stdout,0,void 0),process.stdout.write(p,b)}))),f=()=>c("\x1B[?25h");return process.stdout.write("\x1B[?25l"),{update:c,stop:f}}}}var as=()=>{};var ir=r=>r.flat?r.flat(1):r.reduce((e,t)=>(e.push(...t),e),[]);var ls=r=>typeof r=="function";var Gt=r=>typeof r=="string";var or=r=>{let e={"{":"}","(":")","[":"]"},t=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;if(r==="")return!1;let n;for(;n=t.exec(r);){if(n[2])return!0;let s=n.index+n[0].length,i=n[1],o=i?e[i]:null;if(i&&o){let a=r.indexOf(o,s);a!==-1&&(s=a+1)}r=r.slice(s)}return!1};var mn=r=>{let e={level:"error",type:"build",header:"Build Error",messageText:"build error",relFilePath:void 0,absFilePath:void 0,lines:[]};return r&&r.push(e),e};var ar=(r,e,t)=>{let n={level:"error",type:"build",header:"Build Error",messageText:"build error",lines:[]};return Gt(t)?n.messageText=t.length?t:"UNKNOWN ERROR":e!=null&&(e.stack!=null?n.messageText=e.stack.toString():e.message!=null?n.messageText=e.message.length?e.message:"UNKNOWN ERROR":n.messageText=e.toString()),r!=null&&!lr(n.messageText)&&r.push(n),n};var lr=r=>r===Vt,Vt="task canceled";var Se=(r,e=!0)=>{if(typeof r!="string")throw new Error("invalid path to normalize");r=ra(r.trim());let t=ua(r,aa(r)),n=oa(t),s=n[0],i=n[1],o=s+n.slice(1).join("/");return o===""?".":s===""&&i&&r.includes("/")&&!i.startsWith(".")&&!i.startsWith("@")&&e?"./"+o:o},ra=r=>r.replace(ia,"/"),sa="\\",cs="://",ia=/\\/g,oa=r=>{if(!Array.isArray(r)||r.length===0)return[];let e=[r[0]];for(let t=1;t<r.length;t++){let n=r[t];if(n&&n!=="."){if(n===".."){if(e.length>1){if(e[e.length-1]!==".."){e.pop();continue}}else if(e[0])continue}e.push(n)}}return e},aa=r=>{let e=la(r);return e<0?~e:e},la=r=>{if(!r)return 0;let e=r.charCodeAt(0);if(e===47||e===92){if(r.charCodeAt(1)!==e)return 1;let n=r.indexOf(e===47?"/":sa,2);return n<0?r.length:n+1}if(us(e)&&r.charCodeAt(1)===58){let n=r.charCodeAt(2);if(n===47||n===92)return 3;if(r.length===2)return 2}let t=r.indexOf(cs);if(t!==-1){let n=t+cs.length,s=r.indexOf("/",n);if(s!==-1){let i=r.slice(0,t),o=r.slice(n,s);if(i==="file"&&(o===""||o==="localhost")&&us(r.charCodeAt(s+1))){let a=ca(r,s+2);if(a!==-1){if(r.charCodeAt(a)===47)return~(a+1);if(a===r.length)return~a}}return~(s+1)}return~r.length}return 0},us=r=>r>=97&&r<=122||r>=65&&r<=90,ca=(r,e)=>{let t=r.charCodeAt(e);if(t===58)return e+1;if(t===37&&r.charCodeAt(e+1)===51){let n=r.charCodeAt(e+2);if(n===97||n===65)return e+3}return-1},ua=(r,e)=>{let t=r.substring(0,e),n=r.substring(e).split("/"),s=n.length;return s>0&&!n[s-1]&&n.pop(),[t,...n]};var Bs=xe(xs(),1);var yn=r=>{if(typeof r!="string")throw new TypeError("invalid pattern");if(r.length>65536)throw new TypeError("pattern is too long")};var va={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},vn=r=>r.replace(/[[\]\\-]/g,"\\$&"),ba=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ts=r=>r.join(""),Cs=(r,e)=>{let t=e;if(r.charAt(t)!=="[")throw new Error("not in a brace expression");let n=[],s=[],i=t+1,o=!1,a=!1,u=!1,c=!1,f=t,p="";e:for(;i<r.length;){let T=r.charAt(i);if((T==="!"||T==="^")&&i===t+1){c=!0,i++;continue}if(T==="]"&&o&&!u){f=i+1;break}if(o=!0,T==="\\"&&!u){u=!0,i++;continue}if(T==="["&&!u){for(let[x,[k,C,I]]of Object.entries(va))if(r.startsWith(x,i)){if(p)return["$.",!1,r.length-t,!0];i+=x.length,I?s.push(k):n.push(k),a=a||C;continue e}}if(u=!1,p){T>p?n.push(vn(p)+"-"+vn(T)):T===p&&n.push(vn(T)),p="",i++;continue}if(r.startsWith("-]",i+1)){n.push(vn(T+"-")),i+=2;continue}if(r.startsWith("-",i+1)){p=T,i+=2;continue}n.push(vn(T)),i++}if(f<i)return["",!1,0,!1];if(!n.length&&!s.length)return["$.",!1,r.length-t,!0];if(s.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!c){let T=n[0].length===2?n[0].slice(-1):n[0];return[ba(T),!1,f-t,!1]}let b="["+(c?"^":"")+Ts(n)+"]",$="["+(c?"":"^")+Ts(s)+"]";return[n.length&&s.length?"("+b+"|"+$+")":n.length?b:$,a,f-t,!0]};var bt=(r,{windowsPathsNoEscape:e=!1}={})=>e?r.replace(/\[([^\/\\])\]/g,"$1"):r.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var Qe,Ea=new Set(["!","?","+","*","@"]),dr=r=>Ea.has(r),Ls=r=>dr(r.type),Sa=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),$a=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),xa=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Rs=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),Ta="(?!(?:^|/)\\.\\.?(?:$|/))",Nn="(?!\\.)",Ca=new Set(["[","."]),La=new Set(["..","."]),Ra=new Set("().*{}+?[]^$\\!"),Aa=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),mr="[^/]",As=mr+"*?",Os=mr+"+?",Oe,ke,Dt,ne,Ce,Ft,Jt,Ht,$t,xt,nn,ce,Ds,jt,wn,Ns,fr,kn,ws,pr,ks,Ps,Is,Pn,hr,Ms,Bt=class{constructor(e,t,n={}){Fe(this,ce);Te(this,"type");Fe(this,Oe);Fe(this,ke);Fe(this,Dt,!1);Fe(this,ne,[]);Fe(this,Ce);Fe(this,Ft);Fe(this,Jt);Fe(this,Ht,!1);Fe(this,$t);Fe(this,xt);Fe(this,nn,!1);this.type=e,e&&de(this,ke,!0),de(this,Ce,t),de(this,Oe,B(this,Ce)?B(B(this,Ce),Oe):this),de(this,$t,B(this,Oe)===this?n:B(B(this,Oe),$t)),de(this,Jt,B(this,Oe)===this?[]:B(B(this,Oe),Jt)),e==="!"&&!B(B(this,Oe),Ht)&&B(this,Jt).push(this),de(this,Ft,B(this,Ce)?B(B(this,Ce),ne).length:0)}get hasMagic(){if(B(this,ke)!==void 0)return B(this,ke);for(let e of B(this,ne))if(typeof e!="string"&&(e.type||e.hasMagic))return de(this,ke,!0);return B(this,ke)}toString(){return B(this,xt)!==void 0?B(this,xt):this.type?de(this,xt,this.type+"("+B(this,ne).map(e=>String(e)).join("|")+")"):de(this,xt,B(this,ne).map(e=>String(e)).join(""))}push(...e){for(let t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof Qe&&B(t,Ce)===this))throw new Error("invalid part: "+t);B(this,ne).push(t)}}toJSON(){var t;let e=this.type===null?B(this,ne).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...B(this,ne).map(n=>n.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===B(this,Oe)||B(B(this,Oe),Ht)&&((t=B(this,Ce))==null?void 0:t.type)==="!")&&e.push({}),e}isStart(){var t;if(B(this,Oe)===this)return!0;if(!((t=B(this,Ce))!=null&&t.isStart()))return!1;if(B(this,Ft)===0)return!0;let e=B(this,Ce);for(let n=0;n<B(this,Ft);n++){let s=B(e,ne)[n];if(!(s instanceof Qe&&s.type==="!"))return!1}return!0}isEnd(){var t,n,s;if(B(this,Oe)===this||((t=B(this,Ce))==null?void 0:t.type)==="!")return!0;if(!((n=B(this,Ce))!=null&&n.isEnd()))return!1;if(!this.type)return(s=B(this,Ce))==null?void 0:s.isEnd();let e=B(this,Ce)?B(B(this,Ce),ne).length:0;return B(this,Ft)===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let t=new Qe(this.type,e);for(let n of B(this,ne))t.copyIn(n);return t}static fromGlob(e,t={}){var s;let n=new Qe(null,void 0,t);return le(s=Qe,jt,wn).call(s,e,n,0,t,0),n}toMMPattern(){if(this!==B(this,Oe))return B(this,Oe).toMMPattern();let e=this.toString(),[t,n,s,i]=this.toRegExpSource();if(!(s||B(this,ke)||B(this,$t).nocase&&!B(this,$t).nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(B(this,$t).nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return B(this,$t)}toRegExpSource(e){var u;let t=e!=null?e:!!B(this,$t).dot;if(B(this,Oe)===this&&(le(this,ce,Pn).call(this),le(this,ce,Ds).call(this)),!Ls(this)){let c=this.isStart()&&this.isEnd(),f=B(this,ne).map(h=>{var I;let[T,x,k,C]=typeof h=="string"?le(I=Qe,jt,Ms).call(I,h,B(this,ke),c):h.toRegExpSource(e);return de(this,ke,B(this,ke)||k),de(this,Dt,B(this,Dt)||C),T}).join(""),p="";if(this.isStart()&&typeof B(this,ne)[0]=="string"&&!(B(this,ne).length===1&&La.has(B(this,ne)[0]))){let T=Ca,x=t&&T.has(f.charAt(0))||f.startsWith("\\.")&&T.has(f.charAt(2))||f.startsWith("\\.\\.")&&T.has(f.charAt(4)),k=!t&&!e&&T.has(f.charAt(0));p=x?Ta:k?Nn:""}let b="";return this.isEnd()&&B(B(this,Oe),Ht)&&((u=B(this,Ce))==null?void 0:u.type)==="!"&&(b="(?:$|\\/)"),[p+f+b,bt(f),de(this,ke,!!B(this,ke)),B(this,Dt)]}let n=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:",i=le(this,ce,hr).call(this,t);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){let c=this.toString(),f=this;return de(f,ne,[c]),f.type=null,de(f,ke,void 0),[c,bt(this.toString()),!1,!1]}let o=!n||e||t||!Nn?"":le(this,ce,hr).call(this,!0);o===i&&(o=""),o&&(i=`(?:${i})(?:${o})*?`);let a="";if(this.type==="!"&&B(this,nn))a=(this.isStart()&&!t?Nn:"")+Os;else{let c=this.type==="!"?"))"+(this.isStart()&&!t&&!e?Nn:"")+As+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=s+i+c}return[a,bt(i),de(this,ke,!!B(this,ke)),B(this,Dt)]}};Oe=new WeakMap,ke=new WeakMap,Dt=new WeakMap,ne=new WeakMap,Ce=new WeakMap,Ft=new WeakMap,Jt=new WeakMap,Ht=new WeakMap,$t=new WeakMap,xt=new WeakMap,nn=new WeakMap,ce=new WeakSet,Ds=function(){if(this!==B(this,Oe))throw new Error("should only call on root");if(B(this,Ht))return this;this.toString(),de(this,Ht,!0);let e;for(;e=B(this,Jt).pop();){if(e.type!=="!")continue;let t=e,n=B(t,Ce);for(;n;){for(let s=B(t,Ft)+1;!n.type&&s<B(n,ne).length;s++)for(let i of B(e,ne)){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(B(n,ne)[s])}t=n,n=B(t,Ce)}}return this},jt=new WeakSet,wn=function(e,t,n,s,i){var T,x,k,C,I;let o=(T=s.maxExtglobRecursion)!=null?T:2,a=!1,u=!1,c=-1,f=!1;if(t.type===null){let R=n,g="";for(;R<e.length;){let S=e.charAt(R++);if(a||S==="\\"){a=!a,g+=S;continue}if(u){R===c+1?(S==="^"||S==="!")&&(f=!0):S==="]"&&!(R===c+2&&f)&&(u=!1),g+=S;continue}else if(S==="["){u=!0,c=R,f=!1,g+=S;continue}if(!s.noext&&dr(S)&&e.charAt(R)==="("&&i<=o){t.push(g),g="";let D=new Qe(S,t);R=le(x=Qe,jt,wn).call(x,e,D,R,s,i+1),t.push(D);continue}g+=S}return t.push(g),R}let p=n+1,b=new Qe(null,t),$=[],h="";for(;p<e.length;){let R=e.charAt(p++);if(a||R==="\\"){a=!a,h+=R;continue}if(u){p===c+1?(R==="^"||R==="!")&&(f=!0):R==="]"&&!(p===c+2&&f)&&(u=!1),h+=R;continue}else if(R==="["){u=!0,c=p,f=!1,h+=R;continue}if(dr(R)&&e.charAt(p)==="("&&(i<=o||t&&le(k=t,ce,kn).call(k,R))){let S=t&&le(C=t,ce,kn).call(C,R)?0:1;b.push(h),h="";let L=new Qe(R,b);b.push(L),p=le(I=Qe,jt,wn).call(I,e,L,p,s,i+S);continue}if(R==="|"){b.push(h),h="",$.push(b),b=new Qe(null,t);continue}if(R===")")return h===""&&B(t,ne).length===0&&de(t,nn,!0),b.push(h),h="",t.push(...$,b),p;h+=R}return t.type=null,de(t,ke,void 0),de(t,ne,[e.substring(n-1)]),p},Ns=function(e){return le(this,ce,fr).call(this,e,$a)},fr=function(e,t=Sa){if(!e||typeof e!="object"||e.type!==null||B(e,ne).length!==1||this.type===null)return!1;let n=B(e,ne)[0];return!n||typeof n!="object"||n.type===null?!1:le(this,ce,kn).call(this,n.type,t)},kn=function(e,t=xa){var n;return!!((n=t.get(this.type))!=null&&n.includes(e))},ws=function(e,t){let n=B(e,ne)[0],s=new Qe(null,n,this.options);B(s,ne).push(""),n.push(s),le(this,ce,pr).call(this,e,t)},pr=function(e,t){let n=B(e,ne)[0];B(this,ne).splice(t,1,...B(n,ne));for(let s of B(n,ne))typeof s=="object"&&de(s,Ce,this);de(this,xt,void 0)},ks=function(e){let t=Rs.get(this.type);return!!(t!=null&&t.has(e))},Ps=function(e){if(!e||typeof e!="object"||e.type!==null||B(e,ne).length!==1||this.type===null||B(this,ne).length!==1)return!1;let t=B(e,ne)[0];return!t||typeof t!="object"||t.type===null?!1:le(this,ce,ks).call(this,t.type)},Is=function(e){let t=Rs.get(this.type),n=B(e,ne)[0],s=t==null?void 0:t.get(n.type);if(!s)return!1;de(this,ne,B(n,ne));for(let i of B(this,ne))typeof i=="object"&&de(i,Ce,this);this.type=s,de(this,xt,void 0),de(this,nn,!1)},Pn=function(){var e,t;if(Ls(this)){let n=0,s=!1;do{s=!0;for(let i=0;i<B(this,ne).length;i++){let o=B(this,ne)[i];typeof o=="object"&&(le(t=o,ce,Pn).call(t),le(this,ce,fr).call(this,o)?(s=!1,le(this,ce,pr).call(this,o,i)):le(this,ce,Ns).call(this,o)?(s=!1,le(this,ce,ws).call(this,o,i)):le(this,ce,Ps).call(this,o)&&(s=!1,le(this,ce,Is).call(this,o)))}}while(!s&&++n<10)}else for(let n of B(this,ne))typeof n=="object"&&le(e=n,ce,Pn).call(e);de(this,xt,void 0)},hr=function(e){return B(this,ne).map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");let[n,s,i,o]=t.toRegExpSource(e);return de(this,Dt,B(this,Dt)||o),n}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")},Ms=function(e,t,n=!1){let s=!1,i="",o=!1,a=!1;for(let u=0;u<e.length;u++){let c=e.charAt(u);if(s){s=!1,i+=(Ra.has(c)?"\\":"")+c,a=!1;continue}if(c==="\\"){u===e.length-1?i+="\\\\":s=!0;continue}if(c==="["){let[f,p,b,$]=Cs(e,u);if(b){i+=f,o=o||p,u+=b-1,t=t||$,a=!1;continue}}if(c==="*"){if(a)continue;a=!0,i+=n&&/^[*]+$/.test(e)?Os:As,t=!0;continue}else a=!1;if(c==="?"){i+=mr,t=!0;continue}i+=Aa(c)}return[i,bt(e),!!t,o]},Fe(Bt,jt);Qe=Bt;var rn=(r,{windowsPathsNoEscape:e=!1}={})=>e?r.replace(/[?*()[\]]/g,"[$&]"):r.replace(/[?*()[\]\\]/g,"\\$&");var je=(r,e,t={})=>(yn(e),!t.nocomment&&e.charAt(0)==="#"?!1:new Nt(e,t).match(r)),Oa=/^\*+([^+@!?\*\[\(]*)$/,Da=r=>e=>!e.startsWith(".")&&e.endsWith(r),Na=r=>e=>e.endsWith(r),wa=r=>(r=r.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(r)),ka=r=>(r=r.toLowerCase(),e=>e.toLowerCase().endsWith(r)),Pa=/^\*+\.\*+$/,Ia=r=>!r.startsWith(".")&&r.includes("."),Ma=r=>r!=="."&&r!==".."&&r.includes("."),Fa=/^\.\*+$/,Ha=r=>r!=="."&&r!==".."&&r.startsWith("."),Ba=/^\*+$/,ja=r=>r.length!==0&&!r.startsWith("."),Ua=r=>r.length!==0&&r!=="."&&r!=="..",za=/^\?+([^+@!?\*\[\(]*)?$/,Wa=([r,e=""])=>{let t=js([r]);return e?(e=e.toLowerCase(),n=>t(n)&&n.toLowerCase().endsWith(e)):t},Xa=([r,e=""])=>{let t=Us([r]);return e?(e=e.toLowerCase(),n=>t(n)&&n.toLowerCase().endsWith(e)):t},Ga=([r,e=""])=>{let t=Us([r]);return e?n=>t(n)&&n.endsWith(e):t},Va=([r,e=""])=>{let t=js([r]);return e?n=>t(n)&&n.endsWith(e):t},js=([r])=>{let e=r.length;return t=>t.length===e&&!t.startsWith(".")},Us=([r])=>{let e=r.length;return t=>t.length===e&&t!=="."&&t!==".."},zs=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Fs={win32:{sep:"\\"},posix:{sep:"/"}},Ja=zs==="win32"?Fs.win32.sep:Fs.posix.sep;je.sep=Ja;var He=Symbol("globstar **");je.GLOBSTAR=He;var Ka="[^/]",Ya=Ka+"*?",Qa="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Za="(?:(?!(?:\\/|^)\\.).)*?",qa=(r,e={})=>t=>je(t,r,e);je.filter=qa;var lt=(r,e={})=>Object.assign({},r,e),_a=r=>{if(!r||typeof r!="object"||!Object.keys(r).length)return je;let e=je;return Object.assign((n,s,i={})=>e(n,s,lt(r,i)),{Minimatch:class extends e.Minimatch{constructor(s,i={}){super(s,lt(r,i))}static defaults(s){return e.defaults(lt(r,s)).Minimatch}},AST:class extends e.AST{constructor(s,i,o={}){super(s,i,lt(r,o))}static fromGlob(s,i={}){return e.AST.fromGlob(s,lt(r,i))}},unescape:(n,s={})=>e.unescape(n,lt(r,s)),escape:(n,s={})=>e.escape(n,lt(r,s)),filter:(n,s={})=>e.filter(n,lt(r,s)),defaults:n=>e.defaults(lt(r,n)),makeRe:(n,s={})=>e.makeRe(n,lt(r,s)),braceExpand:(n,s={})=>e.braceExpand(n,lt(r,s)),match:(n,s,i={})=>e.match(n,s,lt(r,i)),sep:e.sep,GLOBSTAR:He})};je.defaults=_a;var Ws=(r,e={})=>(yn(r),e.nobrace||!/\{(?:(?!\{).)*\}/.test(r)?[r]:(0,Bs.default)(r));je.braceExpand=Ws;var el=(r,e={})=>new Nt(r,e).makeRe();je.makeRe=el;var tl=(r,e,t={})=>{let n=new Nt(e,t);return r=r.filter(s=>n.match(s)),n.options.nonull&&!r.length&&r.push(e),r};je.match=tl;var Hs=/[?*]|[+@!]\(.*?\)|\[|\]/,nl=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),st,Xs,gr,sn,Nt=class{constructor(e,t={}){Fe(this,st);Te(this,"options");Te(this,"set");Te(this,"pattern");Te(this,"windowsPathsNoEscape");Te(this,"nonegate");Te(this,"negate");Te(this,"comment");Te(this,"empty");Te(this,"preserveMultipleSlashes");Te(this,"partial");Te(this,"globSet");Te(this,"globParts");Te(this,"nocase");Te(this,"isWindows");Te(this,"platform");Te(this,"windowsNoMagicRoot");Te(this,"maxGlobstarRecursion");Te(this,"regexp");var n;yn(e),t=t||{},this.options=t,this.maxGlobstarRecursion=(n=t.maxGlobstarRecursion)!=null?n:200,this.pattern=e,this.platform=t.platform||zs,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(i=>this.slashSplit(i));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let s=this.globParts.map((i,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let u=i[0]===""&&i[1]===""&&(i[2]==="?"||!Hs.test(i[2]))&&!Hs.test(i[3]),c=/^[a-z]:/i.test(i[0]);if(u)return[...i.slice(0,4),...i.slice(4).map(f=>this.parse(f))];if(c)return[i[0],...i.slice(1).map(f=>this.parse(f))]}return i.map(u=>this.parse(u))});if(this.debug(this.pattern,s),this.set=s.filter(i=>i.indexOf(!1)===-1),this.isWindows)for(let i=0;i<this.set.length;i++){let o=this.set[i];o[0]===""&&o[1]===""&&this.globParts[i][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let n=0;n<e.length;n++)for(let s=0;s<e[n].length;s++)e[n][s]==="**"&&(e[n][s]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let n=-1;for(;(n=t.indexOf("**",n+1))!==-1;){let s=n;for(;t[s+1]==="**";)s++;s!==n&&t.splice(n,s-n)}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((n,s)=>{let i=n[n.length-1];return s==="**"&&i==="**"?n:s===".."&&i&&i!==".."&&i!=="."&&i!=="**"?(n.pop(),n):(n.push(s),n)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let s=1;s<e.length-1;s++){let i=e[s];s===1&&i===""&&e[0]===""||(i==="."||i==="")&&(t=!0,e.splice(s,1),s--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf("..",n+1))!==-1;){let s=e[n-1];s&&s!=="."&&s!==".."&&s!=="**"&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let s=-1;for(;(s=n.indexOf("**",s+1))!==-1;){let o=s;for(;n[o+1]==="**";)o++;o>s&&n.splice(s+1,o-s);let a=n[s+1],u=n[s+2],c=n[s+3];if(a!==".."||!u||u==="."||u===".."||!c||c==="."||c==="..")continue;t=!0,n.splice(s,1);let f=n.slice(0);f[s]="**",e.push(f),s--}if(!this.preserveMultipleSlashes){for(let o=1;o<n.length-1;o++){let a=n[o];o===1&&a===""&&n[0]===""||(a==="."||a==="")&&(t=!0,n.splice(o,1),o--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(t=!0,n.pop())}let i=0;for(;(i=n.indexOf("..",i+1))!==-1;){let o=n[i-1];if(o&&o!=="."&&o!==".."&&o!=="**"){t=!0;let u=i===1&&n[i+1]==="**"?["."]:[];n.splice(i-1,2,...u),n.length===0&&n.push(""),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let s=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(s){e[t]=[],e[n]=s;break}}return e.filter(t=>t.length)}partsMatch(e,t,n=!1){let s=0,i=0,o=[],a="";for(;s<e.length&&i<t.length;)if(e[s]===t[i])o.push(a==="b"?t[i]:e[s]),s++,i++;else if(n&&e[s]==="**"&&t[i]===e[s+1])o.push(e[s]),s++;else if(n&&t[i]==="**"&&e[s]===t[i+1])o.push(t[i]),i++;else if(e[s]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(a==="b")return!1;a="a",o.push(e[s]),s++,i++}else if(t[i]==="*"&&e[s]&&(this.options.dot||!e[s].startsWith("."))&&e[s]!=="**"){if(a==="a")return!1;a="b",o.push(t[i]),s++,i++}else return!1;return e.length===t.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let s=0;s<e.length&&e.charAt(s)==="!";s++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let s=0,i=0;if(this.isWindows){let a=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),u=!a&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),c=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),f=!c&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),p=u?3:a?0:void 0,b=f?3:c?0:void 0;if(typeof p=="number"&&typeof b=="number"){let[$,h]=[e[p],t[b]];$.toLowerCase()===h.toLowerCase()&&(t[b]=$,i=b,s=p)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(He)?le(this,st,Xs).call(this,e,t,n,s,i):le(this,st,sn).call(this,e,t,n,s,i)}braceExpand(){return Ws(this.pattern,this.options)}parse(e){yn(e);let t=this.options;if(e==="**")return He;if(e==="")return"";let n,s=null;(n=e.match(Ba))?s=t.dot?Ua:ja:(n=e.match(Oa))?s=(t.nocase?t.dot?ka:wa:t.dot?Na:Da)(n[1]):(n=e.match(za))?s=(t.nocase?t.dot?Xa:Wa:t.dot?Ga:Va)(n):(n=e.match(Pa))?s=t.dot?Ma:Ia:(n=e.match(Fa))&&(s=Ha);let i=Bt.fromGlob(e,this.options).toMMPattern();return s&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:s}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?Ya:t.dot?Qa:Za,s=new Set(t.nocase?["i"]:[]),i=e.map(u=>{let c=u.map(f=>{if(f instanceof RegExp)for(let p of f.flags.split(""))s.add(p);return typeof f=="string"?nl(f):f===He?He:f._src});return c.forEach((f,p)=>{let b=c[p+1],$=c[p-1];f!==He||$===He||($===void 0?b!==void 0&&b!==He?c[p+1]="(?:\\/|"+n+"\\/)?"+b:c[p]=n:b===void 0?c[p-1]=$+"(?:\\/|"+n+")?":b!==He&&(c[p-1]=$+"(?:\\/|\\/"+n+"\\/)"+b,c[p+1]=He))}),c.filter(f=>f!==He).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];i="^"+o+i+a+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let i=this.set;this.debug(this.pattern,"set",i);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<i.length;a++){let u=i[a],c=s;if(n.matchBase&&u.length===1&&(c=[o]),this.matchOne(c,u,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return je.defaults(e).Minimatch}};st=new WeakSet,Xs=function(e,t,n,s,i){let o=t.indexOf(He,i),a=t.lastIndexOf(He),[u,c,f]=n?[t.slice(i,o),t.slice(o+1),[]]:[t.slice(i,o),t.slice(o+1,a),t.slice(a+1)];if(u.length){let C=e.slice(s,s+u.length);if(!le(this,st,sn).call(this,C,u,n,0,0))return!1;s+=u.length}let p=0;if(f.length){if(f.length+s>e.length)return!1;let C=e.length-f.length;if(le(this,st,sn).call(this,e,f,n,C,0))p=f.length;else{if(e[e.length-1]!==""||s+f.length===e.length||(C--,!le(this,st,sn).call(this,e,f,n,C,0)))return!1;p=f.length+1}}if(!c.length){let C=!!p;for(let I=s;I<e.length-p;I++){let R=String(e[I]);if(C=!0,R==="."||R===".."||!this.options.dot&&R.startsWith("."))return!1}return n||C}let b=[[[],0]],$=b[0],h=0,T=[0];for(let C of c)C===He?(T.push(h),$=[[],0],b.push($)):($[0].push(C),h++);let x=b.length-1,k=e.length-p;for(let C of b)C[1]=k-(T[x--]+C[0].length);return!!le(this,st,gr).call(this,e,b,s,0,n,0,!!p)},gr=function(e,t,n,s,i,o,a){let u=t[s];if(!u){for(let p=n;p<e.length;p++){a=!0;let b=e[p];if(b==="."||b===".."||!this.options.dot&&b.startsWith("."))return!1}return a}let[c,f]=u;for(;n<=f;){if(le(this,st,sn).call(this,e.slice(0,n+c.length),c,i,n,0)&&o<this.maxGlobstarRecursion){let $=le(this,st,gr).call(this,e,t,n+c.length,s+1,i,o+1,a);if($!==!1)return $}let b=e[n];if(b==="."||b===".."||!this.options.dot&&b.startsWith("."))return!1;n++}return i||null},sn=function(e,t,n,s,i){let o,a,u,c;for(o=s,a=i,c=e.length,u=t.length;o<c&&a<u;o++,a++){this.debug("matchOne loop");let f=t[a],p=e[o];if(this.debug(t,f,p),f===!1||f===He)return!1;let b;if(typeof f=="string"?(b=p===f,this.debug("string match",f,p,b)):(b=f.test(p),this.debug("pattern match",f,p,b)),!b)return!1}if(o===c&&a===u)return!0;if(o===c)return n;if(a===u)return o===c-1&&e[o]==="";throw new Error("wtf?")};je.AST=Bt;je.Minimatch=Nt;je.escape=rn;je.unescape=bt;var vr={};Jr(vr,{err:()=>Gs,map:()=>rl,ok:()=>yr,unwrap:()=>sl,unwrapErr:()=>il});var yr=r=>({isOk:!0,isErr:!1,value:r}),Gs=r=>({isOk:!1,isErr:!0,value:r});function rl(r,e){if(r.isOk){let t=e(r.value);return t instanceof Promise?t.then(n=>yr(n)):yr(t)}if(r.isErr){let t=r.value;return Gs(t)}throw"should never get here"}var sl=r=>{if(r.isOk)return r.value;throw r.value},il=r=>{if(r.isErr)return r.value;throw r.value};var ie={allRenderFn:!1,element:!0,event:!0,hasRenderFn:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,propChangeCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,devTools:!1,shadowDelegatesFocus:!0,shadowSlotAssignmentManual:!1,initializeNextTick:!1,asyncLoading:!0,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1};var al={isDev:!!ie.isDev,isBrowser:!0,isServer:!1,isTesting:!!ie.isTesting};var Vf=ie.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"];var ct=typeof window<"u"?window:{},ep=ct.HTMLElement||class{};var an=ie.shadowDom;var br=ie.constructableCSS?(()=>{try{return ct.document.adoptedStyleSheets?(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"):!1}catch{}return!1})():!1;/**
51
51
  * @license
52
52
  * Copyright Google Inc. All Rights Reserved.
53
53
  *
@@ -57,6 +57,6 @@ See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof R))re
57
57
  * This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
58
58
  * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
59
59
  * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
60
- */var Zs="-shadowcsshost",Cl="-shadowcssslotted",Ll="-shadowcsscontext",Sr=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Qp=new RegExp("("+Zs+Sr,"gim"),Zp=new RegExp("("+Ll+Sr,"gim"),qp=new RegExp("("+Cl+Sr,"gim"),_p=Zs+"-no-combinator";var Al="Capture",Lh=new RegExp(Al+"$");var Qg=ie.lazyLoad?class{}:globalThis.HTMLElement||class{};var Sn=r=>e=>r(e.toLowerCase()),Ql=Sn(r=>r.endsWith(".d.ts")||r.endsWith(".d.mts")||r.endsWith(".d.cts")),Uv=Sn(r=>!Ql(r)&&(r.endsWith(".ts")||r.endsWith(".mts")||r.endsWith(".cts"))),zv=Sn(r=>r.endsWith(".tsx")||r.endsWith(".mtsx")||r.endsWith(".ctsx")),Wv=Sn(r=>r.endsWith(".jsx")||r.endsWith(".mjsx")||r.endsWith(".cjsx")),Xv=Sn(r=>r.endsWith(".js")||r.endsWith(".mjs")||r.endsWith(".cjs"));function ri(r){r.process.on("unhandledRejection",e=>{if(!ar(e)){let t="unhandledRejection";e!=null&&(typeof e=="string"?t+=": "+e:e.stack?t+=": "+e.stack:e.message&&(t+=": "+e.message)),r.logger.error(t)}})}var Lo=xe(ii()),Wr=require("crypto"),Ro=xe(ai()),me=xe(require("./graceful-fs.js")),ut=require("os"),Ao=xe(require("os")),ge=xe(require("path"));var li=()=>{let r=[],e=i=>{let o=r.findIndex(a=>a.callback===i);return o>-1?(r.splice(o,1),!0):!1};return{emit:(i,o)=>{let a=i.toLowerCase().trim(),u=r.slice();for(let c of u)if(c.eventName==null)try{c.callback(i,o)}catch(f){console.error(f)}else if(c.eventName===a)try{c.callback(o)}catch(f){console.error(f)}},on:(i,o)=>{if(typeof i=="function"){let u=i;return r.push({eventName:null,callback:u}),()=>e(u)}else if(typeof i=="string"&&typeof o=="function"){let a=i.toLowerCase().trim(),u=o;return r.push({eventName:a,callback:u}),()=>e(u)}return()=>!1},unsubscribeAll:()=>{r.length=0}}};var Ut=require("./glob.js");var Lr=(r,e={})=>{Array.isArray(r)||(r=[r]);for(let t of r)if(new Nt(t,e).hasMagic())return!0;return!1};var nc=require("./glob.js");var Db=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux";function Fn(r,e={}){return new Ut.Glob(r,e).streamSync()}function ui(r,e={}){return new Ut.Glob(r,e).stream()}function di(r,e={}){return new Ut.Glob(r,e).walkSync()}async function ci(r,e={}){return new Ut.Glob(r,e).walk()}function Hn(r,e={}){return new Ut.Glob(r,e).iterateSync()}function fi(r,e={}){return new Ut.Glob(r,e).iterate()}var Zl=Fn,ql=Object.assign(ui,{sync:Fn}),_l=Hn,ec=Object.assign(fi,{sync:Hn}),tc=Object.assign(di,{stream:Fn,iterate:Hn}),Mn=Object.assign(ci,{glob:ci,globSync:di,sync:tc,globStream:ui,stream:ql,globStreamSync:Fn,streamSync:Zl,globIterate:fi,iterate:ec,globIterateSync:Hn,iterateSync:_l,Glob:Ut.Glob,hasMagic:Lr,escape:rn,unescape:bt});Mn.glob=Mn;var Et=xe(require("path"));var ln=xe(require("./graceful-fs.js")),cn=require("util"),pi=(0,cn.promisify)(ln.default.copyFile),hi=(0,cn.promisify)(ln.default.mkdir),mi=(0,cn.promisify)(ln.default.readdir),Bb=(0,cn.promisify)(ln.default.readFile),gi=(0,cn.promisify)(ln.default.stat);async function vi(r,e){let t={diagnostics:[],dirPaths:[],filePaths:[]};try{r=sr(await Promise.all(r.map(i=>rc(i,e))));let n=[];for(;r.length>0;){let i=r.splice(0,100);await Promise.all(i.map(o=>bi(t,n,o)))}let s=lc(n);try{await Promise.all(s.map(i=>hi(i,{recursive:!0})))}catch{}for(;n.length>0;){let i=n.splice(0,100);await Promise.all(i.map(o=>pi(o.src,o.dest)))}}catch(n){or(t.diagnostics,n)}return t}async function rc(r,e){return ir(r.src)?await ic(r,e):[{src:sc(e,r.src),dest:r.keepDirStructure?Et.default.join(r.dest,r.src):r.dest,warn:r.warn,ignore:r.ignore,keepDirStructure:r.keepDirStructure}]}function sc(r,e){return Et.default.isAbsolute(e)?e:Et.default.join(r,e)}async function ic(r,e){return(await Rr(r.src,{cwd:e,nodir:!0,ignore:r.ignore})).map(n=>oc(r,e,n))}function oc(r,e,t){let n=Et.default.join(r.dest,r.keepDirStructure?t:Et.default.basename(t));return{src:Et.default.join(e,t),dest:n,ignore:r.ignore,warn:r.warn,keepDirStructure:r.keepDirStructure}}async function bi(r,e,t){try{t.src=Se(t.src),t.dest=Se(t.dest),(await gi(t.src)).isDirectory()?(r.dirPaths.includes(t.dest)||r.dirPaths.push(t.dest),await ac(r,e,t)):uc(t)||(r.filePaths.includes(t.dest)||r.filePaths.push(t.dest),e.push(t))}catch(n){if(t.warn!==!1){let s=mn(r.diagnostics);n instanceof Error&&(s.messageText=n.message)}}}async function ac(r,e,t){try{let n=await mi(t.src);await Promise.all(n.map(async s=>{let i={src:Et.default.join(t.src,s),dest:Et.default.join(t.dest,s),warn:t.warn};await bi(r,e,i)}))}catch(n){or(r.diagnostics,n)}}function lc(r){let e=[];return r.forEach(t=>{cc(e,Et.default.dirname(t.dest))}),e.sort((t,n)=>{let s=t.split("/").length,i=n.split("/").length;return s<i?-1:s>i?1:t<n?-1:t>n?1:0}),e}function cc(r,e){e=Se(e),!(e===yi||e+"/"===yi||e==="")&&(r.includes(e)||r.push(e))}var yi=Se(Et.default.resolve("/"));function uc({src:r,ignore:e=[]}){let t=r.trim().toLowerCase();return e.some(n=>t.endsWith(n))}function Rr(r,e){return Mn(r,e)}var ao=xe(require("./graceful-fs.js")),lo=xe(require("path")),co=xe(wr()),uo=xe(Pi()),fo=xe(oo()),Vn=class{constructor(e,t){this.nodeResolveModule=e;this.lazyDependencies=t}ensured=new Set;async ensure(e,t){let n=[],s=[];if(t.forEach(i=>{if(!this.ensured.has(i)){let{minVersion:o,recommendedVersion:a,maxVersion:u}=this.lazyDependencies[i];try{let c=this.nodeResolveModule.resolveModule(e,i),f=JSON.parse(ao.default.readFileSync(c,"utf8"));if(u?(0,fo.default)(f.version,`${o} - ${(0,uo.default)(u)}.x`):(0,co.default)(o,f.version)){this.ensured.add(i);return}}catch{}s.push(`${i}@${a}`)}}),s.length>0){let i=mn(n);i.header="Please install supported versions of dev dependencies with either npm or yarn.",i.messageText=`npm install --save-dev ${s.join(" ")}`}return n}require(e,t){let n=this.getModulePath(e,t);return require(n)}getModulePath(e,t){let n=this.nodeResolveModule.resolveModule(e,t);return lo.default.dirname(n)}};var Jn=xe(require("./graceful-fs.js")),qe=xe(require("path")),Kn=class{resolveModuleCache=new Map;resolveModule(e,t,n){let s=`${e}:${t}`,i=this.resolveModuleCache.get(s);if(i)return i;if(n&&n.manuallyResolve)return this.resolveModuleManually(e,t,s);if(t.startsWith("@types/"))return this.resolveTypesModule(e,t,s);let o=require("module");e=qe.default.resolve(e);let a=qe.default.join(e,"noop.js"),u=Se(o._resolveFilename(t,{id:a,filename:a,paths:o._nodeModulePaths(e)})),c=Se(qe.default.parse(e).root),f;for(;u!==c;)if(u=Se(qe.default.dirname(u)),f=qe.default.join(u,"package.json"),!!Jn.default.existsSync(f))return this.resolveModuleCache.set(s,f),f;throw new Error(`error loading "${t}" from "${e}"`)}resolveTypesModule(e,t,n){let s=t.split("/"),i=Se(qe.default.parse(e).root),o=Se(qe.default.join(e,"noop.js")),a;for(;o!==i;)if(o=Se(qe.default.dirname(o)),a=qe.default.join(o,"node_modules",s[0],s[1],"package.json"),!!Jn.default.existsSync(a))return this.resolveModuleCache.set(n,a),a;throw new Error(`error loading "${t}" from "${e}"`)}resolveModuleManually(e,t,n){let s=Se(qe.default.parse(e).root),i=Se(qe.default.join(e,"noop.js")),o;for(;i!==s;)if(i=Se(qe.default.dirname(i)),o=qe.default.join(i,"node_modules",t,"package.json"),!!Jn.default.existsSync(o))return this.resolveModuleCache.set(n,o),o;throw new Error(`error loading "${t}" from "${e}"`)}};var zr=xe(require("./graceful-fs.js")),yo=require("os"),vo=xe(require("path")),bo=xe(Pr()),$u="https://registry.npmjs.org/@stencil/core",xu=1e3*60*60*24*7,Ur="https://github.com/stenciljs/core/blob/main/CHANGELOG.md";async function Eo(r,e){try{let t=await Tu(r);if(t!=null)return()=>{(0,bo.default)(e,t)?Au(r,e,t):console.debug(`${r.cyan("@stencil/core")} version ${r.green(e)} is the latest version`)}}catch(t){r.debug(`unable to load latest compiler version: ${t}`)}return os}async function Tu(r){try{let e=await Ru();if(e==null)return po(),null;if(!Lu(Date.now(),e,xu))return null;let t=po(),n=await Cu($u),s=JSON.parse(n);return await t,s["dist-tags"].latest}catch(e){r.debug(`getLatestCompilerVersion error: ${e}`)}return null}async function Cu(r){let e=await import("https");return new Promise((t,n)=>{let s=e.request(r,i=>{if(i.statusCode>299){n(`url: ${r}, staus: ${i.statusCode}`);return}i.once("error",n);let o=[];i.once("end",()=>{t(o.join(""))}),i.on("data",a=>{o.push(a)})});s.once("error",n),s.end()})}function Lu(r,e,t){return e+t<r}function Ru(){return new Promise(r=>{zr.default.readFile(So(),"utf8",(e,t)=>{if(!e&&Gt(t))try{r(JSON.parse(t))}catch{}r(null)})})}function po(){return new Promise(r=>{let e=JSON.stringify(Date.now());zr.default.writeFile(So(),e,()=>{r()})})}function So(){return vo.default.join((0,yo.tmpdir)(),"stencil_last_version_node.json")}function Au(r,e,t){let n="npm install @stencil/core",s=[`Update available: ${e} ${Ou} ${t}`,"To get the latest, please run:",n,Ur],i=s.reduce((f,p)=>p.length>f?p.length:f,0),o=[],a=Du;for(;a.length<=i+Yn*2;)a+=mo;a+=Nu,o.push(a),s.forEach(f=>{let p=ho;for(let b=0;b<Yn;b++)p+=" ";for(p+=f;p.length<=i+Yn*2;)p+=" ";p+=ho,o.push(p)});let u=wu;for(;u.length<=i+Yn*2;)u+=mo;u+=ku,o.push(u);let c=`${go}${o.join(`
61
- ${go}`)}
62
- `;c=c.replace(e,r.red(e)),c=c.replace(t,r.green(t)),c=c.replace(n,r.cyan(n)),c=c.replace(Ur,r.dim(Ur)),console.log(c)}var Ou="\u2192",Du="\u256D",Nu="\u256E",wu="\u2570",ku="\u256F",ho="\u2502",mo="\u2500",Yn=2,go=" ";var To=require("events"),Co=require("os");var $o=xe(require("child_process")),xo=require("events"),Qn=class extends xo.EventEmitter{constructor(t,n){super();this.id=t;this.fork(n)}childProcess;tasks=new Map;exitCode=null;processQueue=!0;sendQueue=[];stopped=!1;successfulMessage=!1;totalTasksAssigned=0;fork(t){let s={execArgv:process.execArgv.filter(i=>!/^--(debug|inspect)/.test(i)),env:process.env,cwd:process.cwd(),silent:!0};this.childProcess=$o.fork(t,[],s),this.childProcess.stdout.setEncoding("utf8"),this.childProcess.stdout.on("data",i=>{console.log(i)}),this.childProcess.stderr.setEncoding("utf8"),this.childProcess.stderr.on("data",i=>{console.log(i)}),this.childProcess.on("message",this.receiveFromWorker.bind(this)),this.childProcess.on("error",i=>{this.emit("error",i)}),this.childProcess.once("exit",i=>{this.exitCode=i,this.emit("exit",i)})}run(t){this.totalTasksAssigned++,this.tasks.set(t.stencilId,t);let[n,...s]=t.inputArgs;this.sendToWorker({stencilId:t.stencilId,method:n,args:s})}sendToWorker(t){if(!this.processQueue){this.sendQueue.push(t);return}(!this.childProcess.send(t,s=>{if(!(s&&s instanceof Error)&&(this.processQueue=!0,this.sendQueue.length>0)){let i=this.sendQueue.slice();this.sendQueue=[],i.forEach(o=>this.sendToWorker(o))}})||/^win/.test(process.platform))&&(this.processQueue=!1)}receiveFromWorker(t){if(this.successfulMessage=!0,this.stopped)return;let n=this.tasks.get(t.stencilId);if(!n){t.stencilRtnError!=null&&this.emit("error",t.stencilRtnError);return}t.stencilRtnError!=null?n.reject(t.stencilRtnError):n.resolve(t.stencilRtnValue),this.tasks.delete(t.stencilId),this.emit("response",t)}stop(){this.stopped=!0,this.tasks.forEach(t=>t.reject(Vt)),this.tasks.clear(),this.successfulMessage?(this.childProcess.send({exit:!0}),setTimeout(()=>{this.exitCode===null&&this.childProcess.kill("SIGKILL")},100)):this.childProcess.kill("SIGKILL")}};var Zn=class extends To.EventEmitter{constructor(t,n){super();this.forkModulePath=t;let s=(0,Co.cpus)().length;this.useForkedWorkers=n>0,this.maxWorkers=Math.max(Math.min(n,s),2)-1,this.useForkedWorkers?this.startWorkers():this.mainThreadRunner=require(t)}workerIds=0;stencilId=0;isEnding=!1;taskQueue=[];workers=[];maxWorkers;useForkedWorkers;mainThreadRunner;onError(t,n){if(t.code==="ERR_IPC_CHANNEL_CLOSED")return this.stopWorker(n);t.code!=="EPIPE"&&console.error(t)}onExit(t){setTimeout(()=>{let n=!1,s=this.workers.find(i=>i.id===t);s&&(s.tasks.forEach(i=>{i.retries++,this.taskQueue.unshift(i),n=!0}),s.tasks.clear()),this.stopWorker(t),n&&this.processTaskQueue()},10)}startWorkers(){for(;this.workers.length<this.maxWorkers;)this.startWorker()}startWorker(){let t=this.workerIds++,n=new Qn(t,this.forkModulePath);n.on("response",this.processTaskQueue.bind(this)),n.once("exit",()=>{this.onExit(t)}),n.on("error",s=>{this.onError(s,t)}),this.workers.push(n)}stopWorker(t){let n=this.workers.find(s=>s.id===t);if(n){n.stop();let s=this.workers.indexOf(n);s>-1&&this.workers.splice(s,1)}}processTaskQueue(){if(!this.isEnding)for(this.useForkedWorkers&&this.startWorkers();this.taskQueue.length>0;){let t=Pu(this.workers);if(!t)break;t.run(this.taskQueue.shift())}}send(...t){return this.isEnding?Promise.reject(Vt):this.useForkedWorkers?new Promise((n,s)=>{let i={stencilId:this.stencilId++,inputArgs:t,retries:0,resolve:n,reject:s};this.taskQueue.push(i),this.processTaskQueue()}):this.mainThreadRunner[t[0]].apply(null,t.slice(1))}handler(t){return(...n)=>this.send(t,...n)}cancelTasks(){for(let t of this.workers)t.tasks.forEach(n=>n.reject(Vt)),t.tasks.clear();this.taskQueue.length=0}destroy(){if(!this.isEnding){this.isEnding=!0;for(let n of this.taskQueue)n.reject(Vt);this.taskQueue.length=0;let t=this.workers.map(n=>n.id);for(let n of t)this.stopWorker(n)}}};function Pu(r){let e=r.filter(n=>!n.stopped);return e.length===0?null:e.sort((n,s)=>n.tasks.size<s.tasks.size?-1:n.tasks.size>s.tasks.size?1:n.totalTasksAssigned<s.totalTasksAssigned?-1:n.totalTasksAssigned>s.totalTasksAssigned?1:0)[0]}function Oo(r={}){var $;let e=($=r==null?void 0:r.process)!=null?$:global.process,t=r==null?void 0:r.logger,n=new Set,s=[],i=(0,ut.cpus)(),o=i.length,a=(0,ut.platform)(),u=ge.default.join(__dirname,"..","..","compiler","stencil.js"),c=ge.default.join(__dirname,"..","..","dev-server","index.js"),f=()=>{let h=[],T;for(;as(T=s.pop());)try{let x=T();h.push(x)}catch{}return Promise.all(h).then(()=>{})},p={name:"node",version:e.versions.node,access(h){return new Promise(T=>{me.default.access(h,x=>T(!x))})},accessSync(h){let T=!1;try{me.default.accessSync(h),T=!0}catch{}return T},addDestroy(h){n.add(h)},removeDestroy(h){n.delete(h)},applyPrerenderGlobalPatch(h){if(typeof global.fetch!="function"){let T=require(ge.default.join(__dirname,"node-fetch.js"));global.fetch=(x,k)=>{if(typeof x=="string"){let C=new URL(x,h.devServerHostUrl).href;return T.fetch(C,k)}else return x.url=new URL(x.url,h.devServerHostUrl).href,T.fetch(x,k)},global.Headers=T.Headers,global.Request=T.Request,global.Response=T.Response,global.FetchError=T.FetchError}h.window.fetch=global.fetch,h.window.Headers=global.Headers,h.window.Request=global.Request,h.window.Response=global.Response,h.window.FetchError=global.FetchError},fetch:(h,T)=>{let x=require(ge.default.join(__dirname,"node-fetch.js"));if(typeof h=="string"){let k=new URL(h).href;return x.fetch(k,T)}else return h.url=new URL(h.url).href,x.fetch(h,T)},checkVersion:Eo,copyFile(h,T){return new Promise(x=>{me.default.copyFile(h,T,k=>{x(!k)})})},createDir(h,T){return new Promise(x=>{T?me.default.mkdir(h,T,k=>{x({basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,newDirs:[],error:k})}):me.default.mkdir(h,k=>{x({basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,newDirs:[],error:k})})})},createDirSync(h,T){let x={basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,newDirs:[],error:null};try{me.default.mkdirSync(h,T)}catch(k){x.error=k}return x},createWorkerController(h){let T=ge.default.join(__dirname,"worker.js");return new Zn(T,h)},async destroy(){let h=[];n.forEach(T=>{try{let x=T();x&&typeof x.then=="function"&&h.push(x)}catch(x){console.error(`node sys destroy: ${x}`)}}),h.length>0&&await Promise.all(h),n.clear()},dynamicImport(h){return Promise.resolve(require(h))},encodeToBase64(h){return Buffer.from(h).toString("base64")},async ensureDependencies(){return console.warn("ensureDependencies will be removed in a future version of Stencil."),console.warn("To get the stencilPath, please use getCompilerExecutingPath()."),{stencilPath:p.getCompilerExecutingPath(),diagnostics:[]}},async ensureResources(){console.warn("ensureResources is a no-op, and will be removed in a future version of Stencil")},exit:async h=>{await f(),(0,Ro.default)(h)},getCurrentDirectory(){return Se(e.cwd())},getCompilerExecutingPath(){return u},getDevServerExecutingPath(){return c},getEnvironmentVar(h){return process.env[h]},getLocalModulePath(){return null},getRemoteModuleUrl(){return null},glob:Rr,hardwareConcurrency:o,isSymbolicLink(h){return new Promise(T=>{try{me.default.lstat(h,(x,k)=>{T(x?!1:k.isSymbolicLink())})}catch{T(!1)}})},nextTick:e.nextTick,normalizePath:Se,onProcessInterrupt:h=>{s.includes(h)||s.push(h)},platformPath:ge.default,readDir(h){return new Promise(T=>{me.default.readdir(h,(x,k)=>{T(x?[]:k.map(C=>Se(ge.default.join(h,C))))})})},parseYarnLockFile(h){return(0,Lo.parse)(h)},isTTY(){var h;return!!((h=process==null?void 0:process.stdout)!=null&&h.isTTY)},readDirSync(h){try{return me.default.readdirSync(h).map(T=>Se(ge.default.join(h,T)))}catch{}return[]},readFile(h,T){return T==="binary"?new Promise(x=>{me.default.readFile(h,(k,C)=>{x(C)})}):new Promise(x=>{me.default.readFile(h,"utf8",(k,C)=>{x(C)})})},readFileSync(h){try{return me.default.readFileSync(h,"utf8")}catch{}},homeDir(){try{return Ao.homedir()}catch{}},realpath(h){return new Promise(T=>{me.default.realpath(h,"utf8",(x,k)=>{T({path:k,error:x})})})},realpathSync(h){let T={path:void 0,error:null};try{T.path=me.default.realpathSync(h,"utf8")}catch(x){T.error=x}return T},rename(h,T){return new Promise(x=>{me.default.rename(h,T,k=>{x({oldPath:h,newPath:T,error:k,oldDirs:[],oldFiles:[],newDirs:[],newFiles:[],renamed:[],isFile:!1,isDirectory:!1})})})},resolvePath(h){return Se(h)},removeDir(h,T){return new Promise(x=>{!!(T&&T.recursive)?me.default.rm(h,{recursive:!0,force:!0},C=>{x({basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:C})}):me.default.rmdir(h,C=>{x({basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:C})})})},removeDirSync(h,T){try{return!!(T&&T.recursive)?me.default.rmSync(h,{recursive:!0,force:!0}):me.default.rmdirSync(h),{basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:null}}catch(x){return{basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:x}}},removeFile(h){return new Promise(T=>{me.default.unlink(h,x=>{T({basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,error:x})})})},removeFileSync(h){let T={basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,error:null};try{me.default.unlinkSync(h)}catch(x){T.error=x}return T},setupCompiler(h){let T=h.ts,x=T.sys.watchDirectory,k=T.sys.watchFile;p.watchTimeout=80,p.events=li(),p.watchDirectory=(C,I,R)=>{t==null||t.debug(`NODE_SYS_DEBUG::watchDir ${C}`);let g=x(C,L=>{t==null||t.debug(`NODE_SYS_DEBUG::watchDir:callback dir=${C} changedPath=${L}`),I(Se(L),"fileUpdate")},R),S=()=>{g.close()};return p.addDestroy(S),{close(){p.removeDestroy(S),g.close()}}},p.watchFile=(C,I)=>{t==null||t.debug(`NODE_SYS_DEBUG::watchFile ${C}`);let R=k(C,(S,L)=>{S=Se(S),L===T.FileWatcherEventKind.Created?(I(S,"fileAdd"),p.events.emit("fileAdd",S)):L===T.FileWatcherEventKind.Changed?(I(S,"fileUpdate"),p.events.emit("fileUpdate",S)):L===T.FileWatcherEventKind.Deleted&&(I(S,"fileDelete"),p.events.emit("fileDelete",S))},250,{watchFile:T.WatchFileKind.FixedPollingInterval,fallbackPolling:T.PollingWatchKind.FixedInterval}),g=()=>{R.close()};return p.addDestroy(g),{close(){p.removeDestroy(g),R.close()}}}},stat(h){return new Promise(T=>{me.default.stat(h,(x,k)=>{T(x?{isDirectory:!1,isFile:!1,isSymbolicLink:!1,size:0,mtimeMs:0,error:x}:{isDirectory:k.isDirectory(),isFile:k.isFile(),isSymbolicLink:k.isSymbolicLink(),size:k.size,mtimeMs:k.mtimeMs,error:null})})})},statSync(h){try{let T=me.default.statSync(h);return{isDirectory:T.isDirectory(),isFile:T.isFile(),isSymbolicLink:T.isSymbolicLink(),size:T.size,mtimeMs:T.mtimeMs,error:null}}catch(T){return{isDirectory:!1,isFile:!1,isSymbolicLink:!1,size:0,mtimeMs:0,error:T}}},tmpDirSync(){return(0,ut.tmpdir)()},writeFile(h,T){return new Promise(x=>{me.default.writeFile(h,T,k=>{x({path:h,error:k})})})},writeFileSync(h,T){let x={path:h,error:null};try{me.default.writeFileSync(h,T)}catch(k){x.error=k}return x},generateContentHash(h,T){let x=(0,Wr.createHash)("sha1").update(h).digest("hex").toLowerCase();return typeof T=="number"&&(x=x.slice(0,T)),Promise.resolve(x)},generateFileHash(h,T){return new Promise((x,k)=>{let C=(0,Wr.createHash)("sha1");me.default.createReadStream(h).on("error",I=>k(I)).on("data",I=>C.update(I)).on("end",()=>{let I=C.digest("hex").toLowerCase();typeof T=="number"&&(I=I.slice(0,T)),x(I)})})},copy:vi,details:{cpuModel:(Array.isArray(i)&&i.length>0?i[0]&&i[0].model:"")||"",freemem(){return(0,ut.freemem)()},platform:a==="darwin"||a==="linux"?a:a==="win32"?"windows":"",release:(0,ut.release)(),totalmem:(0,ut.totalmem)()}},b=new Kn;return p.lazyRequire=new Vn(b,{"@types/jest":{minVersion:"24.9.1",recommendedVersion:"29",maxVersion:"29.0.0"},jest:{minVersion:"24.9.0",recommendedVersion:"29",maxVersion:"29.0.0"},"jest-cli":{minVersion:"24.9.0",recommendedVersion:"29",maxVersion:"29.0.0"},puppeteer:{minVersion:"10.0.0",recommendedVersion:"20"},"puppeteer-core":{minVersion:"10.0.0",recommendedVersion:"20"},"workbox-build":{minVersion:"4.3.1",recommendedVersion:"4.3.1"}}),e.on("SIGINT",f),e.on("exit",f),p}0&&(module.exports={createNodeLogger,createNodeSys,setupNodeProcess});
60
+ */var qs="-shadowcsshost",Ll="-shadowcssslotted",Rl="-shadowcsscontext",$r=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Zp=new RegExp("("+qs+$r,"gim"),qp=new RegExp("("+Rl+$r,"gim"),_p=new RegExp("("+Ll+$r,"gim"),eh=qs+"-no-combinator";var Ol="Capture",Ah=new RegExp(Ol+"$");var ny=ie.lazyLoad?class{}:globalThis.HTMLElement||class{};var Sn=r=>e=>r(e.toLowerCase()),Zl=Sn(r=>r.endsWith(".d.ts")||r.endsWith(".d.mts")||r.endsWith(".d.cts")),Kv=Sn(r=>!Zl(r)&&(r.endsWith(".ts")||r.endsWith(".mts")||r.endsWith(".cts"))),Yv=Sn(r=>r.endsWith(".tsx")||r.endsWith(".mtsx")||r.endsWith(".ctsx")),Qv=Sn(r=>r.endsWith(".jsx")||r.endsWith(".mjsx")||r.endsWith(".cjsx")),Zv=Sn(r=>r.endsWith(".js")||r.endsWith(".mjs")||r.endsWith(".cjs"));function si(r){r.process.on("unhandledRejection",e=>{if(!lr(e)){let t="unhandledRejection";e!=null&&(typeof e=="string"?t+=": "+e:e.stack?t+=": "+e.stack:e.message&&(t+=": "+e.message)),r.logger.error(t)}})}var Ro=xe(oi()),Xr=require("crypto"),Ao=xe(li()),me=xe(require("./graceful-fs.js")),ut=require("os"),Oo=xe(require("os")),ge=xe(require("path"));var ci=()=>{let r=[],e=i=>{let o=r.findIndex(a=>a.callback===i);return o>-1?(r.splice(o,1),!0):!1};return{emit:(i,o)=>{let a=i.toLowerCase().trim(),u=r.slice();for(let c of u)if(c.eventName==null)try{c.callback(i,o)}catch(f){console.error(f)}else if(c.eventName===a)try{c.callback(o)}catch(f){console.error(f)}},on:(i,o)=>{if(typeof i=="function"){let u=i;return r.push({eventName:null,callback:u}),()=>e(u)}else if(typeof i=="string"&&typeof o=="function"){let a=i.toLowerCase().trim(),u=o;return r.push({eventName:a,callback:u}),()=>e(u)}return()=>!1},unsubscribeAll:()=>{r.length=0}}};var Ut=require("./glob.js");var Rr=(r,e={})=>{Array.isArray(r)||(r=[r]);for(let t of r)if(new Nt(t,e).hasMagic())return!0;return!1};var rc=require("./glob.js");var Fb=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux";function Hn(r,e={}){return new Ut.Glob(r,e).streamSync()}function di(r,e={}){return new Ut.Glob(r,e).stream()}function fi(r,e={}){return new Ut.Glob(r,e).walkSync()}async function ui(r,e={}){return new Ut.Glob(r,e).walk()}function Bn(r,e={}){return new Ut.Glob(r,e).iterateSync()}function pi(r,e={}){return new Ut.Glob(r,e).iterate()}var ql=Hn,_l=Object.assign(di,{sync:Hn}),ec=Bn,tc=Object.assign(pi,{sync:Bn}),nc=Object.assign(fi,{stream:Hn,iterate:Bn}),Fn=Object.assign(ui,{glob:ui,globSync:fi,sync:nc,globStream:di,stream:_l,globStreamSync:Hn,streamSync:ql,globIterate:pi,iterate:tc,globIterateSync:Bn,iterateSync:ec,Glob:Ut.Glob,hasMagic:Rr,escape:rn,unescape:bt});Fn.glob=Fn;var Et=xe(require("path"));var ln=xe(require("./graceful-fs.js")),cn=require("util"),hi=(0,cn.promisify)(ln.default.copyFile),mi=(0,cn.promisify)(ln.default.mkdir),gi=(0,cn.promisify)(ln.default.readdir),Vb=(0,cn.promisify)(ln.default.readFile),yi=(0,cn.promisify)(ln.default.stat);async function bi(r,e){let t={diagnostics:[],dirPaths:[],filePaths:[]};try{r=ir(await Promise.all(r.map(i=>sc(i,e))));let n=[];for(;r.length>0;){let i=r.splice(0,100);await Promise.all(i.map(o=>Ei(t,n,o)))}let s=cc(n);try{await Promise.all(s.map(i=>mi(i,{recursive:!0})))}catch{}for(;n.length>0;){let i=n.splice(0,100);await Promise.all(i.map(o=>hi(o.src,o.dest)))}}catch(n){ar(t.diagnostics,n)}return t}async function sc(r,e){return or(r.src)?await oc(r,e):[{src:ic(e,r.src),dest:r.keepDirStructure?Et.default.join(r.dest,r.src):r.dest,warn:r.warn,ignore:r.ignore,keepDirStructure:r.keepDirStructure}]}function ic(r,e){return Et.default.isAbsolute(e)?e:Et.default.join(r,e)}async function oc(r,e){return(await Ar(r.src,{cwd:e,nodir:!0,ignore:r.ignore})).map(n=>ac(r,e,n))}function ac(r,e,t){let n=Et.default.join(r.dest,r.keepDirStructure?t:Et.default.basename(t));return{src:Et.default.join(e,t),dest:n,ignore:r.ignore,warn:r.warn,keepDirStructure:r.keepDirStructure}}async function Ei(r,e,t){try{t.src=Se(t.src),t.dest=Se(t.dest),(await yi(t.src)).isDirectory()?(r.dirPaths.includes(t.dest)||r.dirPaths.push(t.dest),await lc(r,e,t)):dc(t)||(r.filePaths.includes(t.dest)||r.filePaths.push(t.dest),e.push(t))}catch(n){if(t.warn!==!1){let s=mn(r.diagnostics);n instanceof Error&&(s.messageText=n.message)}}}async function lc(r,e,t){try{let n=await gi(t.src);await Promise.all(n.map(async s=>{let i={src:Et.default.join(t.src,s),dest:Et.default.join(t.dest,s),warn:t.warn};await Ei(r,e,i)}))}catch(n){ar(r.diagnostics,n)}}function cc(r){let e=[];return r.forEach(t=>{uc(e,Et.default.dirname(t.dest))}),e.sort((t,n)=>{let s=t.split("/").length,i=n.split("/").length;return s<i?-1:s>i?1:t<n?-1:t>n?1:0}),e}function uc(r,e){e=Se(e),!(e===vi||e+"/"===vi||e==="")&&(r.includes(e)||r.push(e))}var vi=Se(Et.default.resolve("/"));function dc({src:r,ignore:e=[]}){let t=r.trim().toLowerCase();return e.some(n=>t.endsWith(n))}function Ar(r,e){return Fn(r,e)}var lo=xe(require("./graceful-fs.js")),co=xe(require("path")),uo=xe(kr()),fo=xe(Ii()),po=xe(ao()),Jn=class{constructor(e,t){this.nodeResolveModule=e;this.lazyDependencies=t}ensured=new Set;async ensure(e,t){let n=[],s=[];if(t.forEach(i=>{if(!this.ensured.has(i)){let{minVersion:o,recommendedVersion:a,maxVersion:u}=this.lazyDependencies[i];try{let c=this.nodeResolveModule.resolveModule(e,i),f=JSON.parse(lo.default.readFileSync(c,"utf8"));if(u?(0,po.default)(f.version,`${o} - ${(0,fo.default)(u)}.x`):(0,uo.default)(o,f.version)){this.ensured.add(i);return}}catch{}s.push(`${i}@${a}`)}}),s.length>0){let i=mn(n);i.header="Please install supported versions of dev dependencies with either npm or yarn.",i.messageText=`npm install --save-dev ${s.join(" ")}`}return n}require(e,t){let n=this.getModulePath(e,t);return require(n)}getModulePath(e,t){let n=this.nodeResolveModule.resolveModule(e,t);return co.default.dirname(n)}};var Kn=xe(require("./graceful-fs.js")),qe=xe(require("path")),Yn=class{resolveModuleCache=new Map;resolveModule(e,t,n){let s=`${e}:${t}`,i=this.resolveModuleCache.get(s);if(i)return i;if(n&&n.manuallyResolve)return this.resolveModuleManually(e,t,s);if(t.startsWith("@types/"))return this.resolveTypesModule(e,t,s);let o=require("module");e=qe.default.resolve(e);let a=qe.default.join(e,"noop.js"),u=Se(o._resolveFilename(t,{id:a,filename:a,paths:o._nodeModulePaths(e)})),c=Se(qe.default.parse(e).root),f;for(;u!==c;)if(u=Se(qe.default.dirname(u)),f=qe.default.join(u,"package.json"),!!Kn.default.existsSync(f))return this.resolveModuleCache.set(s,f),f;throw new Error(`error loading "${t}" from "${e}"`)}resolveTypesModule(e,t,n){let s=t.split("/"),i=Se(qe.default.parse(e).root),o=Se(qe.default.join(e,"noop.js")),a;for(;o!==i;)if(o=Se(qe.default.dirname(o)),a=qe.default.join(o,"node_modules",s[0],s[1],"package.json"),!!Kn.default.existsSync(a))return this.resolveModuleCache.set(n,a),a;throw new Error(`error loading "${t}" from "${e}"`)}resolveModuleManually(e,t,n){let s=Se(qe.default.parse(e).root),i=Se(qe.default.join(e,"noop.js")),o;for(;i!==s;)if(i=Se(qe.default.dirname(i)),o=qe.default.join(i,"node_modules",t,"package.json"),!!Kn.default.existsSync(o))return this.resolveModuleCache.set(n,o),o;throw new Error(`error loading "${t}" from "${e}"`)}};var Wr=xe(require("./graceful-fs.js")),vo=require("os"),bo=xe(require("path")),Eo=xe(Ir()),xu="https://registry.npmjs.org/@stencil/core",Tu=1e3*60*60*24*7,zr="https://github.com/stenciljs/core/blob/main/CHANGELOG.md";async function So(r,e){try{let t=await Cu(r);if(t!=null)return()=>{(0,Eo.default)(e,t)?Ou(r,e,t):console.debug(`${r.cyan("@stencil/core")} version ${r.green(e)} is the latest version`)}}catch(t){r.debug(`unable to load latest compiler version: ${t}`)}return as}async function Cu(r){try{let e=await Au();if(e==null)return ho(),null;if(!Ru(Date.now(),e,Tu))return null;let t=ho(),n=await Lu(xu),s=JSON.parse(n);return await t,s["dist-tags"].latest}catch(e){r.debug(`getLatestCompilerVersion error: ${e}`)}return null}async function Lu(r){let e=await import("https");return new Promise((t,n)=>{let s=e.request(r,i=>{if(i.statusCode>299){n(`url: ${r}, staus: ${i.statusCode}`);return}i.once("error",n);let o=[];i.once("end",()=>{t(o.join(""))}),i.on("data",a=>{o.push(a)})});s.once("error",n),s.end()})}function Ru(r,e,t){return e+t<r}function Au(){return new Promise(r=>{Wr.default.readFile($o(),"utf8",(e,t)=>{if(!e&&Gt(t))try{r(JSON.parse(t))}catch{}r(null)})})}function ho(){return new Promise(r=>{let e=JSON.stringify(Date.now());Wr.default.writeFile($o(),e,()=>{r()})})}function $o(){return bo.default.join((0,vo.tmpdir)(),"stencil_last_version_node.json")}function Ou(r,e,t){let n="npm install @stencil/core",s=[`Update available: ${e} ${Du} ${t}`,"To get the latest, please run:",n,zr],i=s.reduce((f,p)=>p.length>f?p.length:f,0),o=[],a=Nu;for(;a.length<=i+Qn*2;)a+=go;a+=wu,o.push(a),s.forEach(f=>{let p=mo;for(let b=0;b<Qn;b++)p+=" ";for(p+=f;p.length<=i+Qn*2;)p+=" ";p+=mo,o.push(p)});let u=ku;for(;u.length<=i+Qn*2;)u+=go;u+=Pu,o.push(u);let c=`${yo}${o.join(`
61
+ ${yo}`)}
62
+ `;c=c.replace(e,r.red(e)),c=c.replace(t,r.green(t)),c=c.replace(n,r.cyan(n)),c=c.replace(zr,r.dim(zr)),console.log(c)}var Du="\u2192",Nu="\u256D",wu="\u256E",ku="\u2570",Pu="\u256F",mo="\u2502",go="\u2500",Qn=2,yo=" ";var Co=require("events"),Lo=require("os");var xo=xe(require("child_process")),To=require("events"),Zn=class extends To.EventEmitter{constructor(t,n){super();this.id=t;this.fork(n)}childProcess;tasks=new Map;exitCode=null;processQueue=!0;sendQueue=[];stopped=!1;successfulMessage=!1;totalTasksAssigned=0;fork(t){let s={execArgv:process.execArgv.filter(i=>!/^--(debug|inspect)/.test(i)),env:process.env,cwd:process.cwd(),silent:!0};this.childProcess=xo.fork(t,[],s),this.childProcess.stdout.setEncoding("utf8"),this.childProcess.stdout.on("data",i=>{console.log(i)}),this.childProcess.stderr.setEncoding("utf8"),this.childProcess.stderr.on("data",i=>{console.log(i)}),this.childProcess.on("message",this.receiveFromWorker.bind(this)),this.childProcess.on("error",i=>{this.emit("error",i)}),this.childProcess.once("exit",i=>{this.exitCode=i,this.emit("exit",i)})}run(t){this.totalTasksAssigned++,this.tasks.set(t.stencilId,t);let[n,...s]=t.inputArgs;this.sendToWorker({stencilId:t.stencilId,method:n,args:s})}sendToWorker(t){if(!this.processQueue){this.sendQueue.push(t);return}(!this.childProcess.send(t,s=>{if(!(s&&s instanceof Error)&&(this.processQueue=!0,this.sendQueue.length>0)){let i=this.sendQueue.slice();this.sendQueue=[],i.forEach(o=>this.sendToWorker(o))}})||/^win/.test(process.platform))&&(this.processQueue=!1)}receiveFromWorker(t){if(this.successfulMessage=!0,this.stopped)return;let n=this.tasks.get(t.stencilId);if(!n){t.stencilRtnError!=null&&this.emit("error",t.stencilRtnError);return}t.stencilRtnError!=null?n.reject(t.stencilRtnError):n.resolve(t.stencilRtnValue),this.tasks.delete(t.stencilId),this.emit("response",t)}stop(){this.stopped=!0,this.tasks.forEach(t=>t.reject(Vt)),this.tasks.clear(),this.successfulMessage?(this.childProcess.send({exit:!0}),setTimeout(()=>{this.exitCode===null&&this.childProcess.kill("SIGKILL")},100)):this.childProcess.kill("SIGKILL")}};var qn=class extends Co.EventEmitter{constructor(t,n){super();this.forkModulePath=t;let s=(0,Lo.cpus)().length;this.useForkedWorkers=n>0,this.maxWorkers=Math.max(Math.min(n,s),2)-1,this.useForkedWorkers?this.startWorkers():this.mainThreadRunner=require(t)}workerIds=0;stencilId=0;isEnding=!1;taskQueue=[];workers=[];maxWorkers;useForkedWorkers;mainThreadRunner;onError(t,n){if(t.code==="ERR_IPC_CHANNEL_CLOSED")return this.stopWorker(n);t.code!=="EPIPE"&&console.error(t)}onExit(t){setTimeout(()=>{let n=!1,s=this.workers.find(i=>i.id===t);s&&(s.tasks.forEach(i=>{i.retries++,this.taskQueue.unshift(i),n=!0}),s.tasks.clear()),this.stopWorker(t),n&&this.processTaskQueue()},10)}startWorkers(){for(;this.workers.length<this.maxWorkers;)this.startWorker()}startWorker(){let t=this.workerIds++,n=new Zn(t,this.forkModulePath);n.on("response",this.processTaskQueue.bind(this)),n.once("exit",()=>{this.onExit(t)}),n.on("error",s=>{this.onError(s,t)}),this.workers.push(n)}stopWorker(t){let n=this.workers.find(s=>s.id===t);if(n){n.stop();let s=this.workers.indexOf(n);s>-1&&this.workers.splice(s,1)}}processTaskQueue(){if(!this.isEnding)for(this.useForkedWorkers&&this.startWorkers();this.taskQueue.length>0;){let t=Iu(this.workers);if(!t)break;t.run(this.taskQueue.shift())}}send(...t){return this.isEnding?Promise.reject(Vt):this.useForkedWorkers?new Promise((n,s)=>{let i={stencilId:this.stencilId++,inputArgs:t,retries:0,resolve:n,reject:s};this.taskQueue.push(i),this.processTaskQueue()}):this.mainThreadRunner[t[0]].apply(null,t.slice(1))}handler(t){return(...n)=>this.send(t,...n)}cancelTasks(){for(let t of this.workers)t.tasks.forEach(n=>n.reject(Vt)),t.tasks.clear();this.taskQueue.length=0}destroy(){if(!this.isEnding){this.isEnding=!0;for(let n of this.taskQueue)n.reject(Vt);this.taskQueue.length=0;let t=this.workers.map(n=>n.id);for(let n of t)this.stopWorker(n)}}};function Iu(r){let e=r.filter(n=>!n.stopped);return e.length===0?null:e.sort((n,s)=>n.tasks.size<s.tasks.size?-1:n.tasks.size>s.tasks.size?1:n.totalTasksAssigned<s.totalTasksAssigned?-1:n.totalTasksAssigned>s.totalTasksAssigned?1:0)[0]}function Do(r={}){var $;let e=($=r==null?void 0:r.process)!=null?$:global.process,t=r==null?void 0:r.logger,n=new Set,s=[],i=(0,ut.cpus)(),o=i.length,a=(0,ut.platform)(),u=ge.default.join(__dirname,"..","..","compiler","stencil.js"),c=ge.default.join(__dirname,"..","..","dev-server","index.js"),f=()=>{let h=[],T;for(;ls(T=s.pop());)try{let x=T();h.push(x)}catch{}return Promise.all(h).then(()=>{})},p={name:"node",version:e.versions.node,access(h){return new Promise(T=>{me.default.access(h,x=>T(!x))})},accessSync(h){let T=!1;try{me.default.accessSync(h),T=!0}catch{}return T},addDestroy(h){n.add(h)},removeDestroy(h){n.delete(h)},applyPrerenderGlobalPatch(h){if(typeof global.fetch!="function"){let T=require(ge.default.join(__dirname,"node-fetch.js"));global.fetch=(x,k)=>{if(typeof x=="string"){let C=new URL(x,h.devServerHostUrl).href;return T.fetch(C,k)}else return x.url=new URL(x.url,h.devServerHostUrl).href,T.fetch(x,k)},global.Headers=T.Headers,global.Request=T.Request,global.Response=T.Response,global.FetchError=T.FetchError}h.window.fetch=global.fetch,h.window.Headers=global.Headers,h.window.Request=global.Request,h.window.Response=global.Response,h.window.FetchError=global.FetchError},fetch:(h,T)=>{let x=require(ge.default.join(__dirname,"node-fetch.js"));if(typeof h=="string"){let k=new URL(h).href;return x.fetch(k,T)}else return h.url=new URL(h.url).href,x.fetch(h,T)},checkVersion:So,copyFile(h,T){return new Promise(x=>{me.default.copyFile(h,T,k=>{x(!k)})})},createDir(h,T){return new Promise(x=>{T?me.default.mkdir(h,T,k=>{x({basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,newDirs:[],error:k})}):me.default.mkdir(h,k=>{x({basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,newDirs:[],error:k})})})},createDirSync(h,T){let x={basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,newDirs:[],error:null};try{me.default.mkdirSync(h,T)}catch(k){x.error=k}return x},createWorkerController(h){let T=ge.default.join(__dirname,"worker.js");return new qn(T,h)},async destroy(){let h=[];n.forEach(T=>{try{let x=T();x&&typeof x.then=="function"&&h.push(x)}catch(x){console.error(`node sys destroy: ${x}`)}}),h.length>0&&await Promise.all(h),n.clear()},dynamicImport(h){return Promise.resolve(require(h))},encodeToBase64(h){return Buffer.from(h).toString("base64")},async ensureDependencies(){return console.warn("ensureDependencies will be removed in a future version of Stencil."),console.warn("To get the stencilPath, please use getCompilerExecutingPath()."),{stencilPath:p.getCompilerExecutingPath(),diagnostics:[]}},async ensureResources(){console.warn("ensureResources is a no-op, and will be removed in a future version of Stencil")},exit:async h=>{await f(),(0,Ao.default)(h)},getCurrentDirectory(){return Se(e.cwd())},getCompilerExecutingPath(){return u},getDevServerExecutingPath(){return c},getEnvironmentVar(h){return process.env[h]},getLocalModulePath(){return null},getRemoteModuleUrl(){return null},glob:Ar,hardwareConcurrency:o,isSymbolicLink(h){return new Promise(T=>{try{me.default.lstat(h,(x,k)=>{T(x?!1:k.isSymbolicLink())})}catch{T(!1)}})},nextTick:e.nextTick,normalizePath:Se,onProcessInterrupt:h=>{s.includes(h)||s.push(h)},platformPath:ge.default,readDir(h){return new Promise(T=>{me.default.readdir(h,(x,k)=>{T(x?[]:k.map(C=>Se(ge.default.join(h,C))))})})},parseYarnLockFile(h){return(0,Ro.parse)(h)},isTTY(){var h;return!!((h=process==null?void 0:process.stdout)!=null&&h.isTTY)},readDirSync(h){try{return me.default.readdirSync(h).map(T=>Se(ge.default.join(h,T)))}catch{}return[]},readFile(h,T){return T==="binary"?new Promise(x=>{me.default.readFile(h,(k,C)=>{x(C)})}):new Promise(x=>{me.default.readFile(h,"utf8",(k,C)=>{x(C)})})},readFileSync(h){try{return me.default.readFileSync(h,"utf8")}catch{}},homeDir(){try{return Oo.homedir()}catch{}},realpath(h){return new Promise(T=>{me.default.realpath(h,"utf8",(x,k)=>{T({path:k,error:x})})})},realpathSync(h){let T={path:void 0,error:null};try{T.path=me.default.realpathSync(h,"utf8")}catch(x){T.error=x}return T},rename(h,T){return new Promise(x=>{me.default.rename(h,T,k=>{x({oldPath:h,newPath:T,error:k,oldDirs:[],oldFiles:[],newDirs:[],newFiles:[],renamed:[],isFile:!1,isDirectory:!1})})})},resolvePath(h){return Se(h)},removeDir(h,T){return new Promise(x=>{!!(T&&T.recursive)?me.default.rm(h,{recursive:!0,force:!0},C=>{x({basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:C})}):me.default.rmdir(h,C=>{x({basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:C})})})},removeDirSync(h,T){try{return!!(T&&T.recursive)?me.default.rmSync(h,{recursive:!0,force:!0}):me.default.rmdirSync(h),{basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:null}}catch(x){return{basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:x}}},removeFile(h){return new Promise(T=>{me.default.unlink(h,x=>{T({basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,error:x})})})},removeFileSync(h){let T={basename:ge.default.basename(h),dirname:ge.default.dirname(h),path:h,error:null};try{me.default.unlinkSync(h)}catch(x){T.error=x}return T},setupCompiler(h){let T=h.ts,x=T.sys.watchDirectory,k=T.sys.watchFile;p.watchTimeout=80,p.events=ci(),p.watchDirectory=(C,I,R)=>{t==null||t.debug(`NODE_SYS_DEBUG::watchDir ${C}`);let g=x(C,L=>{t==null||t.debug(`NODE_SYS_DEBUG::watchDir:callback dir=${C} changedPath=${L}`),I(Se(L),"fileUpdate")},R),S=()=>{g.close()};return p.addDestroy(S),{close(){p.removeDestroy(S),g.close()}}},p.watchFile=(C,I)=>{t==null||t.debug(`NODE_SYS_DEBUG::watchFile ${C}`);let R=k(C,(S,L)=>{S=Se(S),L===T.FileWatcherEventKind.Created?(I(S,"fileAdd"),p.events.emit("fileAdd",S)):L===T.FileWatcherEventKind.Changed?(I(S,"fileUpdate"),p.events.emit("fileUpdate",S)):L===T.FileWatcherEventKind.Deleted&&(I(S,"fileDelete"),p.events.emit("fileDelete",S))},250,{watchFile:T.WatchFileKind.FixedPollingInterval,fallbackPolling:T.PollingWatchKind.FixedInterval}),g=()=>{R.close()};return p.addDestroy(g),{close(){p.removeDestroy(g),R.close()}}}},stat(h){return new Promise(T=>{me.default.stat(h,(x,k)=>{T(x?{isDirectory:!1,isFile:!1,isSymbolicLink:!1,size:0,mtimeMs:0,error:x}:{isDirectory:k.isDirectory(),isFile:k.isFile(),isSymbolicLink:k.isSymbolicLink(),size:k.size,mtimeMs:k.mtimeMs,error:null})})})},statSync(h){try{let T=me.default.statSync(h);return{isDirectory:T.isDirectory(),isFile:T.isFile(),isSymbolicLink:T.isSymbolicLink(),size:T.size,mtimeMs:T.mtimeMs,error:null}}catch(T){return{isDirectory:!1,isFile:!1,isSymbolicLink:!1,size:0,mtimeMs:0,error:T}}},tmpDirSync(){return(0,ut.tmpdir)()},writeFile(h,T){return new Promise(x=>{me.default.writeFile(h,T,k=>{x({path:h,error:k})})})},writeFileSync(h,T){let x={path:h,error:null};try{me.default.writeFileSync(h,T)}catch(k){x.error=k}return x},generateContentHash(h,T){let x=(0,Xr.createHash)("sha1").update(h).digest("hex").toLowerCase();return typeof T=="number"&&(x=x.slice(0,T)),Promise.resolve(x)},generateFileHash(h,T){return new Promise((x,k)=>{let C=(0,Xr.createHash)("sha1");me.default.createReadStream(h).on("error",I=>k(I)).on("data",I=>C.update(I)).on("end",()=>{let I=C.digest("hex").toLowerCase();typeof T=="number"&&(I=I.slice(0,T)),x(I)})})},copy:bi,details:{cpuModel:(Array.isArray(i)&&i.length>0?i[0]&&i[0].model:"")||"",freemem(){return(0,ut.freemem)()},platform:a==="darwin"||a==="linux"?a:a==="win32"?"windows":"",release:(0,ut.release)(),totalmem:(0,ut.totalmem)()}},b=new Yn;return p.lazyRequire=new Jn(b,{"@types/jest":{minVersion:"24.9.1",recommendedVersion:"29",maxVersion:"29.0.0"},jest:{minVersion:"24.9.0",recommendedVersion:"29",maxVersion:"29.0.0"},"jest-cli":{minVersion:"24.9.0",recommendedVersion:"29",maxVersion:"29.0.0"},puppeteer:{minVersion:"10.0.0",recommendedVersion:"20"},"puppeteer-core":{minVersion:"10.0.0",recommendedVersion:"20"},"workbox-build":{minVersion:"4.3.1",recommendedVersion:"4.3.1"}}),e.on("SIGINT",f),e.on("exit",f),p}0&&(module.exports={createNodeLogger,createNodeSys,setupNodeProcess});