@stencil/core 4.40.0 → 4.40.1
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/cli/index.cjs +4 -1
- package/cli/index.js +4 -1
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +41 -38
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +5 -2
- package/internal/app-data/package.json +1 -1
- package/internal/app-globals/package.json +1 -1
- package/internal/client/index.js +4 -1
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +1 -1
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +35 -33
- package/internal/package.json +1 -1
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +1 -1
- package/mock-doc/index.js +1 -1
- package/mock-doc/package.json +1 -1
- package/package.json +1 -1
- package/screenshot/index.js +4 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/index.js +10 -10
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +1 -1
- package/testing/package.json +1 -1
package/sys/node/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Node System v4.40.
|
|
2
|
+
Stencil Node System v4.40.1 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
"use strict";var vo=Object.create;var ln=Object.defineProperty;var bo=Object.getOwnPropertyDescriptor;var Eo=Object.getOwnPropertyNames;var So=Object.getPrototypeOf,$o=Object.prototype.hasOwnProperty;var Fr=r=>{throw TypeError(r)};var xo=(r,e,t)=>e in r?ln(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var ge=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Hr=(r,e)=>{for(var t in e)ln(r,t,{get:e[t],enumerable:!0})},Br=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Eo(e))!$o.call(r,s)&&s!==t&&ln(r,s,{get:()=>e[s],enumerable:!(n=bo(e,s))||n.enumerable});return r};var be=(r,e,t)=>(t=r!=null?vo(So(r)):{},Br(e||!r||!r.__esModule?ln(t,"default",{value:r,enumerable:!0}):t,r)),To=r=>Br(ln({},"__esModule",{value:!0}),r);var Yn=(r,e,t)=>xo(r,typeof e!="symbol"?e+"":e,t),Qn=(r,e,t)=>e.has(r)||Fr("Cannot "+t);var W=(r,e,t)=>(Qn(r,e,"read from private field"),t?t.call(r):e.get(r)),ze=(r,e,t)=>e.has(r)?Fr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),Se=(r,e,t,n)=>(Qn(r,e,"write to private field"),n?n.call(r,t):e.set(r,t),t),wt=(r,e,t)=>(Qn(r,e,"access private method"),t);var Wr=ge((vu,cn)=>{"use strict";var Co=typeof process<"u"&&process.env.TERM_PROGRAM==="Hyper",Lo=typeof process<"u"&&process.platform==="win32",jr=typeof process<"u"&&process.platform==="linux",Zn={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"},Ur=Object.assign({},Zn,{check:"\u221A",cross:"\xD7",ellipsisLarge:"...",ellipsis:"...",info:"i",questionSmall:"?",pointer:">",pointerSmall:"\xBB",radioOff:"( )",radioOn:"(*)",warning:"\u203C"}),zr=Object.assign({},Zn,{ballotCross:"\u2718",check:"\u2714",cross:"\u2716",ellipsisLarge:"\u22EF",ellipsis:"\u2026",info:"\u2139",questionFull:"\uFF1F",questionSmall:"\uFE56",pointer:jr?"\u25B8":"\u276F",pointerSmall:jr?"\u2023":"\u203A",radioOff:"\u25EF",radioOn:"\u25C9",warning:"\u26A0"});cn.exports=Lo&&!Co?Ur:zr;Reflect.defineProperty(cn.exports,"common",{enumerable:!1,value:Zn});Reflect.defineProperty(cn.exports,"windows",{enumerable:!1,value:Ur});Reflect.defineProperty(cn.exports,"other",{enumerable:!1,value:zr})});var Gr=ge((bu,qn)=>{"use strict";var Ro=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),Ao=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,Oo=()=>typeof process<"u"?process.env.FORCE_COLOR!=="0":!1,Xr=()=>{let r={enabled:Oo(),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,p)=>{c.includes(a)&&(c=c.replace(u,a+o));let m=o+c+a;return p?m.replace(/\r*\n/g,`${a}$&${o}`):m},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=p=>n(p,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=Ao,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(!Ro(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=Wr(),r.define=s,r};qn.exports=Xr();qn.exports.create=Xr});var os=ge((ad,is)=>{"use strict";is.exports=rs;function rs(r,e,t){r instanceof RegExp&&(r=ns(r,t)),e instanceof RegExp&&(e=ns(e,t));var n=ss(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 ns(r,e){var t=e.match(r);return t?t[0]:null}rs.range=ss;function ss(r,e,t){var n,s,i,o,a,u=t.indexOf(r),c=t.indexOf(e,u+1),p=u;if(u>=0&&c>0){if(r===e)return[u,c];for(n=[],i=t.length;p>=0&&!a;)p==u?(n.push(p),u=t.indexOf(r,p+1)):n.length==1?a=[n.pop(),c]:(s=n.pop(),s<i&&(i=s,o=c),c=t.indexOf(e,p+1)),p=u<c&&u>=0?u:c;n.length&&(a=[i,o])}return a}});var hs=ge((ld,ps)=>{var as=os();ps.exports=Zo;var ls="\0SLASH"+Math.random()+"\0",cs="\0OPEN"+Math.random()+"\0",ir="\0CLOSE"+Math.random()+"\0",us="\0COMMA"+Math.random()+"\0",ds="\0PERIOD"+Math.random()+"\0";function sr(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function Yo(r){return r.split("\\\\").join(ls).split("\\{").join(cs).split("\\}").join(ir).split("\\,").join(us).split("\\.").join(ds)}function Qo(r){return r.split(ls).join("\\").split(cs).join("{").split(ir).join("}").split(us).join(",").split(ds).join(".")}function fs(r){if(!r)return[""];var e=[],t=as("{","}",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=fs(i);return i.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function Zo(r){return r?(r.substr(0,2)==="{}"&&(r="\\{\\}"+r.substr(2)),dn(Yo(r),!0).map(Qo)):[]}function qo(r){return"{"+r+"}"}function _o(r){return/^-?0\d/.test(r)}function ea(r,e){return r<=e}function ta(r,e){return r>=e}function dn(r,e){var t=[],n=as("{","}",r);if(!n)return[r];var s=n.pre,i=n.post.length?dn(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),p=u||c,m=n.body.indexOf(",")>=0;if(!p&&!m)return n.post.match(/,(?!,).*\}/)?(r=n.pre+"{"+n.body+ir+n.post,dn(r)):[r];var S;if(p)S=n.body.split(/\.\./);else if(S=fs(n.body),S.length===1&&(S=dn(S[0],!1).map(qo),S.length===1))return i.map(function(L){return n.pre+S[0]+L});var T;if(p){var h=sr(S[0]),b=sr(S[1]),$=Math.max(S[0].length,S[1].length),D=S.length==3?Math.abs(sr(S[2])):1,A=ea,I=b<h;I&&(D*=-1,A=ta);var w=S.some(_o);T=[];for(var g=h;A(g,b);g+=D){var x;if(c)x=String.fromCharCode(g),x==="\\"&&(x="");else if(x=String(g),w){var C=$-x.length;if(C>0){var O=new Array(C+1).join("0");g<0?x="-"+O+x.slice(1):x=O+x}}T.push(x)}}else{T=[];for(var k=0;k<S.length;k++)T.push.apply(T,dn(S[k],!1))}for(var k=0;k<T.length;k++)for(var o=0;o<i.length;o++){var a=s+T[k]+i[o];(!e||p||a)&&t.push(a)}}return t}});var Xs=ge((kv,Ws)=>{Ws.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 p(m,S){try{var T=a[m](S),h=T.value}catch(b){c(b);return}if(T.done)u(h);else return s.default.resolve(h).then(function(b){p("next",b)},function(b){p("throw",b)})}return p("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,p){super(c),this.code=p}}e.MessageError=n;class s extends n{constructor(c,p,m){super(c,p),this.process=m}}e.ProcessSpawnError=s;class i extends n{}e.SecurityError=i;class o extends n{}e.ProcessTermError=o;class a extends Error{constructor(c,p){super(c),this.responseCode=p}}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*(J,U,j,G){let ne=(()=>{var ae=(0,(n||s()).default)(function*(we){let me=we.src,re=we.dest,an=we.type,Qe=we.onFresh||tt,$e=we.onDone||tt;if(le.has(re.toLowerCase())?G.verbose(`The case-insensitive file ${re} shouldn't be copied twice in one bulk copy`):le.add(re.toLowerCase()),an==="symlink"){yield Ce((l||d()).default.dirname(re)),Qe(),Fe.symlink.push({dest:re,linkname:me}),$e();return}if(U.ignoreBasenames.indexOf((l||d()).default.basename(me))>=0)return;let xe=yield Oe(me),St;xe.isDirectory()&&(St=yield Ne(me));let Je;try{Je=yield Oe(re)}catch(Ue){if(Ue.code!=="ENOENT")throw Ue}if(Je){let Ue=xe.isSymbolicLink()&&Je.isSymbolicLink(),$t=xe.isDirectory()&&Je.isDirectory(),pt=xe.isFile()&&Je.isFile();if(pt&&he.has(re)){$e(),G.verbose(G.lang("verboseFileSkipArtifact",me));return}if(pt&&xe.size===Je.size&&(0,(z||Z()).fileDatesEqual)(xe.mtime,Je.mtime)){$e(),G.verbose(G.lang("verboseFileSkip",me,re,xe.size,+xe.mtime));return}if(Ue){let Pe=yield ce(me);if(Pe===(yield ce(re))){$e(),G.verbose(G.lang("verboseFileSkipSymlink",me,re,Pe));return}}if($t){let Pe=yield Ne(re);Kt(St,"src files not initialised");for(var ut=Pe,At=Array.isArray(ut),Ze=0,ut=At?ut:ut[Symbol.iterator]();;){var Qt;if(At){if(Ze>=ut.length)break;Qt=ut[Ze++]}else{if(Ze=ut.next(),Ze.done)break;Qt=Ze.value}let Nt=Qt;if(St.indexOf(Nt)<0){let xt=(l||d()).default.join(re,Nt);if(j.add(xt),(yield Oe(xt)).isDirectory())for(var dt=yield Ne(xt),Ot=Array.isArray(dt),qe=0,dt=Ot?dt:dt[Symbol.iterator]();;){var Zt;if(Ot){if(qe>=dt.length)break;Zt=dt[qe++]}else{if(qe=dt.next(),qe.done)break;Zt=qe.value}let Kn=Zt;j.add((l||d()).default.join(xt,Kn))}}}}}if(Je&&Je.isSymbolicLink()&&(yield(0,(z||Z()).unlink)(re),Je=null),xe.isSymbolicLink()){Qe();let Ue=yield ce(me);Fe.symlink.push({dest:re,linkname:Ue}),$e()}else if(xe.isDirectory()){Je||(G.verbose(G.lang("verboseFileFolder",re)),yield Ce(re));let Ue=re.split((l||d()).default.sep);for(;Ue.length;)le.add(Ue.join((l||d()).default.sep).toLowerCase()),Ue.pop();Kt(St,"src files not initialised");let $t=St.length;$t||$e();for(var ft=St,Dt=Array.isArray(ft),_e=0,ft=Dt?ft:ft[Symbol.iterator]();;){var je;if(Dt){if(_e>=ft.length)break;je=ft[_e++]}else{if(_e=ft.next(),_e.done)break;je=_e.value}let pt=je;J.push({dest:(l||d()).default.join(re,pt),onFresh:Qe,onDone:(function(Pe){function Nt(){return Pe.apply(this,arguments)}return Nt.toString=function(){return Pe.toString()},Nt})(function(){--$t===0&&$e()}),src:(l||d()).default.join(me,pt)})}}else if(xe.isFile())Qe(),Fe.file.push({src:me,dest:re,atime:xe.atime,mtime:xe.mtime,mode:xe.mode}),$e();else throw new Error(`unsure how to copy this: ${me}`)});return function(me){return ae.apply(this,arguments)}})(),he=new Set(U.artifactFiles||[]),le=new Set;for(var oe=J,ue=Array.isArray(oe),ie=0,oe=ue?oe:oe[Symbol.iterator]();;){var Ye;if(ue){if(ie>=oe.length)break;Ye=oe[ie++]}else{if(ie=oe.next(),ie.done)break;Ye=ie.value}let ae=Ye,we=ae.onDone;ae.onDone=function(){U.onProgress(ae.dest),we&&we()}}U.onStart(J.length);let Fe={file:[],symlink:[],link:[]};for(;J.length;){let ae=J.splice(0,Ft);yield Promise.all(ae.map(ne))}for(var He=he,Rt=Array.isArray(He),lt=0,He=Rt?He:He[Symbol.iterator]();;){var Ht;if(Rt){if(lt>=He.length)break;Ht=He[lt++]}else{if(lt=He.next(),lt.done)break;Ht=lt.value}let ae=Ht;j.has(ae)&&(G.verbose(G.lang("verboseFilePhantomExtraneous",ae)),j.delete(ae))}for(var Be=j,on=Array.isArray(Be),ct=0,Be=on?Be:Be[Symbol.iterator]();;){var Bt;if(on){if(ct>=Be.length)break;Bt=Be[ct++]}else{if(ct=Be.next(),ct.done)break;Bt=ct.value}let ae=Bt;le.has(ae.toLowerCase())&&j.delete(ae)}return Fe});return function(U,j,G,ne){return Y.apply(this,arguments)}})(),o=(()=>{var Y=(0,(n||s()).default)(function*(J,U,j,G){let ne=(()=>{var ae=(0,(n||s()).default)(function*(we){let me=we.src,re=we.dest,an=we.onFresh||tt,Qe=we.onDone||tt;if(le.has(re.toLowerCase())){Qe();return}if(le.add(re.toLowerCase()),U.ignoreBasenames.indexOf((l||d()).default.basename(me))>=0)return;let $e=yield Oe(me),xe;$e.isDirectory()&&(xe=yield Ne(me));let St=yield at(re);if(St){let je=yield Oe(re),Ue=$e.isSymbolicLink()&&je.isSymbolicLink(),$t=$e.isDirectory()&&je.isDirectory(),pt=$e.isFile()&&je.isFile();if($e.mode!==je.mode)try{yield Re(re,$e.mode)}catch(Pe){G.verbose(Pe)}if(pt&&he.has(re)){Qe(),G.verbose(G.lang("verboseFileSkipArtifact",me));return}if(pt&&$e.ino!==null&&$e.ino===je.ino){Qe(),G.verbose(G.lang("verboseFileSkip",me,re,$e.ino));return}if(Ue){let Pe=yield ce(me);if(Pe===(yield ce(re))){Qe(),G.verbose(G.lang("verboseFileSkipSymlink",me,re,Pe));return}}if($t){let Pe=yield Ne(re);Kt(xe,"src files not initialised");for(var Ze=Pe,Je=Array.isArray(Ze),At=0,Ze=Je?Ze:Ze[Symbol.iterator]();;){var ut;if(Je){if(At>=Ze.length)break;ut=Ze[At++]}else{if(At=Ze.next(),At.done)break;ut=At.value}let Nt=ut;if(xe.indexOf(Nt)<0){let xt=(l||d()).default.join(re,Nt);if(j.add(xt),(yield Oe(xt)).isDirectory())for(var qe=yield Ne(xt),Qt=Array.isArray(qe),Ot=0,qe=Qt?qe:qe[Symbol.iterator]();;){var dt;if(Qt){if(Ot>=qe.length)break;dt=qe[Ot++]}else{if(Ot=qe.next(),Ot.done)break;dt=Ot.value}let Kn=dt;j.add((l||d()).default.join(xt,Kn))}}}}}if($e.isSymbolicLink()){an();let je=yield ce(me);Fe.symlink.push({dest:re,linkname:je}),Qe()}else if($e.isDirectory()){G.verbose(G.lang("verboseFileFolder",re)),yield Ce(re);let je=re.split((l||d()).default.sep);for(;je.length;)le.add(je.join((l||d()).default.sep).toLowerCase()),je.pop();Kt(xe,"src files not initialised");let Ue=xe.length;Ue||Qe();for(var _e=xe,Zt=Array.isArray(_e),Dt=0,_e=Zt?_e:_e[Symbol.iterator]();;){var ft;if(Zt){if(Dt>=_e.length)break;ft=_e[Dt++]}else{if(Dt=_e.next(),Dt.done)break;ft=Dt.value}let $t=ft;J.push({onFresh:an,src:(l||d()).default.join(me,$t),dest:(l||d()).default.join(re,$t),onDone:(function(pt){function Pe(){return pt.apply(this,arguments)}return Pe.toString=function(){return pt.toString()},Pe})(function(){--Ue===0&&Qe()})})}}else if($e.isFile())an(),Fe.link.push({src:me,dest:re,removeDest:St}),Qe();else throw new Error(`unsure how to copy this: ${me}`)});return function(me){return ae.apply(this,arguments)}})(),he=new Set(U.artifactFiles||[]),le=new Set;for(var oe=J,ue=Array.isArray(oe),ie=0,oe=ue?oe:oe[Symbol.iterator]();;){var Ye;if(ue){if(ie>=oe.length)break;Ye=oe[ie++]}else{if(ie=oe.next(),ie.done)break;Ye=ie.value}let ae=Ye,we=ae.onDone||tt;ae.onDone=function(){U.onProgress(ae.dest),we()}}U.onStart(J.length);let Fe={file:[],symlink:[],link:[]};for(;J.length;){let ae=J.splice(0,Ft);yield Promise.all(ae.map(ne))}for(var He=he,Rt=Array.isArray(He),lt=0,He=Rt?He:He[Symbol.iterator]();;){var Ht;if(Rt){if(lt>=He.length)break;Ht=He[lt++]}else{if(lt=He.next(),lt.done)break;Ht=lt.value}let ae=Ht;j.has(ae)&&(G.verbose(G.lang("verboseFilePhantomExtraneous",ae)),j.delete(ae))}for(var Be=j,on=Array.isArray(Be),ct=0,Be=on?Be:Be[Symbol.iterator]();;){var Bt;if(on){if(ct>=Be.length)break;Bt=Be[ct++]}else{if(ct=Be.next(),ct.done)break;Bt=ct.value}let ae=Bt;le.has(ae.toLowerCase())&&j.delete(ae)}return Fe});return function(U,j,G,ne){return Y.apply(this,arguments)}})(),a=e.copyBulk=(()=>{var Y=(0,(n||s()).default)(function*(J,U,j){let G={onStart:j&&j.onStart||tt,onProgress:j&&j.onProgress||tt,possibleExtraneous:j?j.possibleExtraneous:new Set,ignoreBasenames:j&&j.ignoreBasenames||[],artifactFiles:j&&j.artifactFiles||[]},ne=yield i(J,G,G.possibleExtraneous,U);G.onStart(ne.file.length+ne.symlink.length+ne.link.length);let he=ne.file,le=new Map;yield(E||R()).queue(he,(()=>{var ie=(0,(n||s()).default)(function*(oe){let Ye;for(;Ye=le.get(oe.dest);)yield Ye;U.verbose(U.lang("verboseFileCopy",oe.src,oe.dest));let Fe=(0,(z||Z()).copyFile)(oe,function(){return le.delete(oe.dest)});return le.set(oe.dest,Fe),G.onProgress(oe.dest),Fe});return function(oe){return ie.apply(this,arguments)}})(),Ft);let ue=ne.symlink;yield(E||R()).queue(ue,function(ie){let oe=(l||d()).default.resolve((l||d()).default.dirname(ie.dest),ie.linkname);return U.verbose(U.lang("verboseFileSymlink",ie.dest,oe)),T(oe,ie.dest)})});return function(U,j,G){return Y.apply(this,arguments)}})(),u=e.hardlinkBulk=(()=>{var Y=(0,(n||s()).default)(function*(J,U,j){let G={onStart:j&&j.onStart||tt,onProgress:j&&j.onProgress||tt,possibleExtraneous:j?j.possibleExtraneous:new Set,artifactFiles:j&&j.artifactFiles||[],ignoreBasenames:[]},ne=yield o(J,G,G.possibleExtraneous,U);G.onStart(ne.file.length+ne.symlink.length+ne.link.length);let he=ne.link;yield(E||R()).queue(he,(()=>{var ue=(0,(n||s()).default)(function*(ie){U.verbose(U.lang("verboseFileLink",ie.src,ie.dest)),ie.removeDest&&(yield(0,(z||Z()).unlink)(ie.dest)),yield $n(ie.src,ie.dest)});return function(ie){return ue.apply(this,arguments)}})(),Ft);let le=ne.symlink;yield(E||R()).queue(le,function(ue){let ie=(l||d()).default.resolve((l||d()).default.dirname(ue.dest),ue.linkname);return U.verbose(U.lang("verboseFileSymlink",ue.dest,ie)),T(ie,ue.dest)})});return function(U,j,G){return Y.apply(this,arguments)}})(),c=e.readFileAny=(()=>{var Y=(0,(n||s()).default)(function*(J){for(var G=J,U=Array.isArray(G),j=0,G=U?G:G[Symbol.iterator]();;){var ne;if(U){if(j>=G.length)break;ne=G[j++]}else{if(j=G.next(),j.done)break;ne=j.value}let he=ne;if(yield at(he))return Vn(he)}return null});return function(U){return Y.apply(this,arguments)}})(),p=e.readJson=(()=>{var Y=(0,(n||s()).default)(function*(J){return(yield m(J)).object});return function(U){return Y.apply(this,arguments)}})(),m=e.readJsonAndFile=(()=>{var Y=(0,(n||s()).default)(function*(J){let U=yield Vn(J);try{return{object:(0,(M||B()).default)(JSON.parse(sn(U))),content:U}}catch(j){throw j.message=`${J}: ${j.message}`,j}});return function(U){return Y.apply(this,arguments)}})(),S=e.find=(()=>{var Y=(0,(n||s()).default)(function*(J,U){let j=U.split((l||d()).default.sep);for(;j.length;){let G=j.concat(J).join((l||d()).default.sep);if(yield at(G))return G;j.pop()}return!1});return function(U,j){return Y.apply(this,arguments)}})(),T=e.symlink=(()=>{var Y=(0,(n||s()).default)(function*(J,U){try{if((yield Oe(U)).isSymbolicLink()&&(yield ke(U))===J)return}catch(j){if(j.code!=="ENOENT")throw j}if(yield(0,(z||Z()).unlink)(U),process.platform==="win32")yield Tn(J,U,"junction");else{let j;try{j=(l||d()).default.relative((x||C()).default.realpathSync((l||d()).default.dirname(U)),(x||C()).default.realpathSync(J))}catch(G){if(G.code!=="ENOENT")throw G;j=(l||d()).default.relative((l||d()).default.dirname(U),J)}yield Tn(j||".",U)}});return function(U,j){return Y.apply(this,arguments)}})(),h=e.walk=(()=>{var Y=(0,(n||s()).default)(function*(J,U,j=new Set){let G=[],ne=yield Ne(J);j.size&&(ne=ne.filter(function(oe){return!j.has(oe)}));for(var ue=ne,he=Array.isArray(ue),le=0,ue=he?ue:ue[Symbol.iterator]();;){var ie;if(he){if(le>=ue.length)break;ie=ue[le++]}else{if(le=ue.next(),le.done)break;ie=le.value}let oe=ie,Ye=U?(l||d()).default.join(U,oe):oe,Fe=(l||d()).default.join(J,oe),Rt=yield Oe(Fe);G.push({relative:Ye,basename:oe,absolute:Fe,mtime:+Rt.mtime}),Rt.isDirectory()&&(G=G.concat(yield h(Fe,Ye,j)))}return G});return function(U,j){return Y.apply(this,arguments)}})(),b=e.getFileSizeOnDisk=(()=>{var Y=(0,(n||s()).default)(function*(J){let U=yield Oe(J),j=U.size,G=U.blksize;return Math.ceil(j/G)*G});return function(U){return Y.apply(this,arguments)}})(),$=(()=>{var Y=(0,(n||s()).default)(function*(J){if(!(yield at(J)))return;let U=yield Q(J);for(let j=0;j<U.length;++j){if(U[j]===go)return`\r
|
|
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=p=>n(p,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=Ao,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(!Ro(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=Wr(),r.define=s,r};qn.exports=Xr();qn.exports.create=Xr});var os=ge((ad,is)=>{"use strict";is.exports=rs;function rs(r,e,t){r instanceof RegExp&&(r=ns(r,t)),e instanceof RegExp&&(e=ns(e,t));var n=ss(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 ns(r,e){var t=e.match(r);return t?t[0]:null}rs.range=ss;function ss(r,e,t){var n,s,i,o,a,u=t.indexOf(r),c=t.indexOf(e,u+1),p=u;if(u>=0&&c>0){if(r===e)return[u,c];for(n=[],i=t.length;p>=0&&!a;)p==u?(n.push(p),u=t.indexOf(r,p+1)):n.length==1?a=[n.pop(),c]:(s=n.pop(),s<i&&(i=s,o=c),c=t.indexOf(e,p+1)),p=u<c&&u>=0?u:c;n.length&&(a=[i,o])}return a}});var hs=ge((ld,ps)=>{var as=os();ps.exports=Zo;var ls="\0SLASH"+Math.random()+"\0",cs="\0OPEN"+Math.random()+"\0",ir="\0CLOSE"+Math.random()+"\0",us="\0COMMA"+Math.random()+"\0",ds="\0PERIOD"+Math.random()+"\0";function sr(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function Yo(r){return r.split("\\\\").join(ls).split("\\{").join(cs).split("\\}").join(ir).split("\\,").join(us).split("\\.").join(ds)}function Qo(r){return r.split(ls).join("\\").split(cs).join("{").split(ir).join("}").split(us).join(",").split(ds).join(".")}function fs(r){if(!r)return[""];var e=[],t=as("{","}",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=fs(i);return i.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function Zo(r){return r?(r.substr(0,2)==="{}"&&(r="\\{\\}"+r.substr(2)),dn(Yo(r),!0).map(Qo)):[]}function qo(r){return"{"+r+"}"}function _o(r){return/^-?0\d/.test(r)}function ea(r,e){return r<=e}function ta(r,e){return r>=e}function dn(r,e){var t=[],n=as("{","}",r);if(!n)return[r];var s=n.pre,i=n.post.length?dn(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),p=u||c,m=n.body.indexOf(",")>=0;if(!p&&!m)return n.post.match(/,(?!,).*\}/)?(r=n.pre+"{"+n.body+ir+n.post,dn(r)):[r];var S;if(p)S=n.body.split(/\.\./);else if(S=fs(n.body),S.length===1&&(S=dn(S[0],!1).map(qo),S.length===1))return i.map(function(L){return n.pre+S[0]+L});var T;if(p){var h=sr(S[0]),b=sr(S[1]),$=Math.max(S[0].length,S[1].length),D=S.length==3?Math.abs(sr(S[2])):1,A=ea,I=b<h;I&&(D*=-1,A=ta);var w=S.some(_o);T=[];for(var g=h;A(g,b);g+=D){var x;if(c)x=String.fromCharCode(g),x==="\\"&&(x="");else if(x=String(g),w){var C=$-x.length;if(C>0){var O=new Array(C+1).join("0");g<0?x="-"+O+x.slice(1):x=O+x}}T.push(x)}}else{T=[];for(var k=0;k<S.length;k++)T.push.apply(T,dn(S[k],!1))}for(var k=0;k<T.length;k++)for(var o=0;o<i.length;o++){var a=s+T[k]+i[o];(!e||p||a)&&t.push(a)}}return t}});var Xs=ge((kv,Ws)=>{Ws.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 p(m,S){try{var T=a[m](S),h=T.value}catch(b){c(b);return}if(T.done)u(h);else return s.default.resolve(h).then(function(b){p("next",b)},function(b){p("throw",b)})}return p("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,p){super(c),this.code=p}}e.MessageError=n;class s extends n{constructor(c,p,m){super(c,p),this.process=m}}e.ProcessSpawnError=s;class i extends n{}e.SecurityError=i;class o extends n{}e.ProcessTermError=o;class a extends Error{constructor(c,p){super(c),this.responseCode=p}}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*(J,U,j,G){let ne=(()=>{var ae=(0,(n||s()).default)(function*(we){let me=we.src,re=we.dest,an=we.type,Qe=we.onFresh||tt,$e=we.onDone||tt;if(le.has(re.toLowerCase())?G.verbose(`The case-insensitive file ${re} shouldn't be copied twice in one bulk copy`):le.add(re.toLowerCase()),an==="symlink"){yield Ce((l||d()).default.dirname(re)),Qe(),Fe.symlink.push({dest:re,linkname:me}),$e();return}if(U.ignoreBasenames.indexOf((l||d()).default.basename(me))>=0)return;let xe=yield Oe(me),St;xe.isDirectory()&&(St=yield Ne(me));let Je;try{Je=yield Oe(re)}catch(Ue){if(Ue.code!=="ENOENT")throw Ue}if(Je){let Ue=xe.isSymbolicLink()&&Je.isSymbolicLink(),$t=xe.isDirectory()&&Je.isDirectory(),ht=xe.isFile()&&Je.isFile();if(ht&&he.has(re)){$e(),G.verbose(G.lang("verboseFileSkipArtifact",me));return}if(ht&&xe.size===Je.size&&(0,(z||Z()).fileDatesEqual)(xe.mtime,Je.mtime)){$e(),G.verbose(G.lang("verboseFileSkip",me,re,xe.size,+xe.mtime));return}if(Ue){let Pe=yield ce(me);if(Pe===(yield ce(re))){$e(),G.verbose(G.lang("verboseFileSkipSymlink",me,re,Pe));return}}if($t){let Pe=yield Ne(re);Kt(St,"src files not initialised");for(var dt=Pe,At=Array.isArray(dt),Ze=0,dt=At?dt:dt[Symbol.iterator]();;){var Qt;if(At){if(Ze>=dt.length)break;Qt=dt[Ze++]}else{if(Ze=dt.next(),Ze.done)break;Qt=Ze.value}let Nt=Qt;if(St.indexOf(Nt)<0){let xt=(l||d()).default.join(re,Nt);if(j.add(xt),(yield Oe(xt)).isDirectory())for(var ft=yield Ne(xt),Ot=Array.isArray(ft),qe=0,ft=Ot?ft:ft[Symbol.iterator]();;){var Zt;if(Ot){if(qe>=ft.length)break;Zt=ft[qe++]}else{if(qe=ft.next(),qe.done)break;Zt=qe.value}let Kn=Zt;j.add((l||d()).default.join(xt,Kn))}}}}}if(Je&&Je.isSymbolicLink()&&(yield(0,(z||Z()).unlink)(re),Je=null),xe.isSymbolicLink()){Qe();let Ue=yield ce(me);Fe.symlink.push({dest:re,linkname:Ue}),$e()}else if(xe.isDirectory()){Je||(G.verbose(G.lang("verboseFileFolder",re)),yield Ce(re));let Ue=re.split((l||d()).default.sep);for(;Ue.length;)le.add(Ue.join((l||d()).default.sep).toLowerCase()),Ue.pop();Kt(St,"src files not initialised");let $t=St.length;$t||$e();for(var pt=St,Dt=Array.isArray(pt),_e=0,pt=Dt?pt:pt[Symbol.iterator]();;){var je;if(Dt){if(_e>=pt.length)break;je=pt[_e++]}else{if(_e=pt.next(),_e.done)break;je=_e.value}let ht=je;J.push({dest:(l||d()).default.join(re,ht),onFresh:Qe,onDone:(function(Pe){function Nt(){return Pe.apply(this,arguments)}return Nt.toString=function(){return Pe.toString()},Nt})(function(){--$t===0&&$e()}),src:(l||d()).default.join(me,ht)})}}else if(xe.isFile())Qe(),Fe.file.push({src:me,dest:re,atime:xe.atime,mtime:xe.mtime,mode:xe.mode}),$e();else throw new Error(`unsure how to copy this: ${me}`)});return function(me){return ae.apply(this,arguments)}})(),he=new Set(U.artifactFiles||[]),le=new Set;for(var oe=J,ue=Array.isArray(oe),ie=0,oe=ue?oe:oe[Symbol.iterator]();;){var Ye;if(ue){if(ie>=oe.length)break;Ye=oe[ie++]}else{if(ie=oe.next(),ie.done)break;Ye=ie.value}let ae=Ye,we=ae.onDone;ae.onDone=function(){U.onProgress(ae.dest),we&&we()}}U.onStart(J.length);let Fe={file:[],symlink:[],link:[]};for(;J.length;){let ae=J.splice(0,Ft);yield Promise.all(ae.map(ne))}for(var He=he,Rt=Array.isArray(He),ct=0,He=Rt?He:He[Symbol.iterator]();;){var Ht;if(Rt){if(ct>=He.length)break;Ht=He[ct++]}else{if(ct=He.next(),ct.done)break;Ht=ct.value}let ae=Ht;j.has(ae)&&(G.verbose(G.lang("verboseFilePhantomExtraneous",ae)),j.delete(ae))}for(var Be=j,on=Array.isArray(Be),ut=0,Be=on?Be:Be[Symbol.iterator]();;){var Bt;if(on){if(ut>=Be.length)break;Bt=Be[ut++]}else{if(ut=Be.next(),ut.done)break;Bt=ut.value}let ae=Bt;le.has(ae.toLowerCase())&&j.delete(ae)}return Fe});return function(U,j,G,ne){return Y.apply(this,arguments)}})(),o=(()=>{var Y=(0,(n||s()).default)(function*(J,U,j,G){let ne=(()=>{var ae=(0,(n||s()).default)(function*(we){let me=we.src,re=we.dest,an=we.onFresh||tt,Qe=we.onDone||tt;if(le.has(re.toLowerCase())){Qe();return}if(le.add(re.toLowerCase()),U.ignoreBasenames.indexOf((l||d()).default.basename(me))>=0)return;let $e=yield Oe(me),xe;$e.isDirectory()&&(xe=yield Ne(me));let St=yield lt(re);if(St){let je=yield Oe(re),Ue=$e.isSymbolicLink()&&je.isSymbolicLink(),$t=$e.isDirectory()&&je.isDirectory(),ht=$e.isFile()&&je.isFile();if($e.mode!==je.mode)try{yield Re(re,$e.mode)}catch(Pe){G.verbose(Pe)}if(ht&&he.has(re)){Qe(),G.verbose(G.lang("verboseFileSkipArtifact",me));return}if(ht&&$e.ino!==null&&$e.ino===je.ino){Qe(),G.verbose(G.lang("verboseFileSkip",me,re,$e.ino));return}if(Ue){let Pe=yield ce(me);if(Pe===(yield ce(re))){Qe(),G.verbose(G.lang("verboseFileSkipSymlink",me,re,Pe));return}}if($t){let Pe=yield Ne(re);Kt(xe,"src files not initialised");for(var Ze=Pe,Je=Array.isArray(Ze),At=0,Ze=Je?Ze:Ze[Symbol.iterator]();;){var dt;if(Je){if(At>=Ze.length)break;dt=Ze[At++]}else{if(At=Ze.next(),At.done)break;dt=At.value}let Nt=dt;if(xe.indexOf(Nt)<0){let xt=(l||d()).default.join(re,Nt);if(j.add(xt),(yield Oe(xt)).isDirectory())for(var qe=yield Ne(xt),Qt=Array.isArray(qe),Ot=0,qe=Qt?qe:qe[Symbol.iterator]();;){var ft;if(Qt){if(Ot>=qe.length)break;ft=qe[Ot++]}else{if(Ot=qe.next(),Ot.done)break;ft=Ot.value}let Kn=ft;j.add((l||d()).default.join(xt,Kn))}}}}}if($e.isSymbolicLink()){an();let je=yield ce(me);Fe.symlink.push({dest:re,linkname:je}),Qe()}else if($e.isDirectory()){G.verbose(G.lang("verboseFileFolder",re)),yield Ce(re);let je=re.split((l||d()).default.sep);for(;je.length;)le.add(je.join((l||d()).default.sep).toLowerCase()),je.pop();Kt(xe,"src files not initialised");let Ue=xe.length;Ue||Qe();for(var _e=xe,Zt=Array.isArray(_e),Dt=0,_e=Zt?_e:_e[Symbol.iterator]();;){var pt;if(Zt){if(Dt>=_e.length)break;pt=_e[Dt++]}else{if(Dt=_e.next(),Dt.done)break;pt=Dt.value}let $t=pt;J.push({onFresh:an,src:(l||d()).default.join(me,$t),dest:(l||d()).default.join(re,$t),onDone:(function(ht){function Pe(){return ht.apply(this,arguments)}return Pe.toString=function(){return ht.toString()},Pe})(function(){--Ue===0&&Qe()})})}}else if($e.isFile())an(),Fe.link.push({src:me,dest:re,removeDest:St}),Qe();else throw new Error(`unsure how to copy this: ${me}`)});return function(me){return ae.apply(this,arguments)}})(),he=new Set(U.artifactFiles||[]),le=new Set;for(var oe=J,ue=Array.isArray(oe),ie=0,oe=ue?oe:oe[Symbol.iterator]();;){var Ye;if(ue){if(ie>=oe.length)break;Ye=oe[ie++]}else{if(ie=oe.next(),ie.done)break;Ye=ie.value}let ae=Ye,we=ae.onDone||tt;ae.onDone=function(){U.onProgress(ae.dest),we()}}U.onStart(J.length);let Fe={file:[],symlink:[],link:[]};for(;J.length;){let ae=J.splice(0,Ft);yield Promise.all(ae.map(ne))}for(var He=he,Rt=Array.isArray(He),ct=0,He=Rt?He:He[Symbol.iterator]();;){var Ht;if(Rt){if(ct>=He.length)break;Ht=He[ct++]}else{if(ct=He.next(),ct.done)break;Ht=ct.value}let ae=Ht;j.has(ae)&&(G.verbose(G.lang("verboseFilePhantomExtraneous",ae)),j.delete(ae))}for(var Be=j,on=Array.isArray(Be),ut=0,Be=on?Be:Be[Symbol.iterator]();;){var Bt;if(on){if(ut>=Be.length)break;Bt=Be[ut++]}else{if(ut=Be.next(),ut.done)break;Bt=ut.value}let ae=Bt;le.has(ae.toLowerCase())&&j.delete(ae)}return Fe});return function(U,j,G,ne){return Y.apply(this,arguments)}})(),a=e.copyBulk=(()=>{var Y=(0,(n||s()).default)(function*(J,U,j){let G={onStart:j&&j.onStart||tt,onProgress:j&&j.onProgress||tt,possibleExtraneous:j?j.possibleExtraneous:new Set,ignoreBasenames:j&&j.ignoreBasenames||[],artifactFiles:j&&j.artifactFiles||[]},ne=yield i(J,G,G.possibleExtraneous,U);G.onStart(ne.file.length+ne.symlink.length+ne.link.length);let he=ne.file,le=new Map;yield(E||R()).queue(he,(()=>{var ie=(0,(n||s()).default)(function*(oe){let Ye;for(;Ye=le.get(oe.dest);)yield Ye;U.verbose(U.lang("verboseFileCopy",oe.src,oe.dest));let Fe=(0,(z||Z()).copyFile)(oe,function(){return le.delete(oe.dest)});return le.set(oe.dest,Fe),G.onProgress(oe.dest),Fe});return function(oe){return ie.apply(this,arguments)}})(),Ft);let ue=ne.symlink;yield(E||R()).queue(ue,function(ie){let oe=(l||d()).default.resolve((l||d()).default.dirname(ie.dest),ie.linkname);return U.verbose(U.lang("verboseFileSymlink",ie.dest,oe)),T(oe,ie.dest)})});return function(U,j,G){return Y.apply(this,arguments)}})(),u=e.hardlinkBulk=(()=>{var Y=(0,(n||s()).default)(function*(J,U,j){let G={onStart:j&&j.onStart||tt,onProgress:j&&j.onProgress||tt,possibleExtraneous:j?j.possibleExtraneous:new Set,artifactFiles:j&&j.artifactFiles||[],ignoreBasenames:[]},ne=yield o(J,G,G.possibleExtraneous,U);G.onStart(ne.file.length+ne.symlink.length+ne.link.length);let he=ne.link;yield(E||R()).queue(he,(()=>{var ue=(0,(n||s()).default)(function*(ie){U.verbose(U.lang("verboseFileLink",ie.src,ie.dest)),ie.removeDest&&(yield(0,(z||Z()).unlink)(ie.dest)),yield $n(ie.src,ie.dest)});return function(ie){return ue.apply(this,arguments)}})(),Ft);let le=ne.symlink;yield(E||R()).queue(le,function(ue){let ie=(l||d()).default.resolve((l||d()).default.dirname(ue.dest),ue.linkname);return U.verbose(U.lang("verboseFileSymlink",ue.dest,ie)),T(ie,ue.dest)})});return function(U,j,G){return Y.apply(this,arguments)}})(),c=e.readFileAny=(()=>{var Y=(0,(n||s()).default)(function*(J){for(var G=J,U=Array.isArray(G),j=0,G=U?G:G[Symbol.iterator]();;){var ne;if(U){if(j>=G.length)break;ne=G[j++]}else{if(j=G.next(),j.done)break;ne=j.value}let he=ne;if(yield lt(he))return Vn(he)}return null});return function(U){return Y.apply(this,arguments)}})(),p=e.readJson=(()=>{var Y=(0,(n||s()).default)(function*(J){return(yield m(J)).object});return function(U){return Y.apply(this,arguments)}})(),m=e.readJsonAndFile=(()=>{var Y=(0,(n||s()).default)(function*(J){let U=yield Vn(J);try{return{object:(0,(M||B()).default)(JSON.parse(sn(U))),content:U}}catch(j){throw j.message=`${J}: ${j.message}`,j}});return function(U){return Y.apply(this,arguments)}})(),S=e.find=(()=>{var Y=(0,(n||s()).default)(function*(J,U){let j=U.split((l||d()).default.sep);for(;j.length;){let G=j.concat(J).join((l||d()).default.sep);if(yield lt(G))return G;j.pop()}return!1});return function(U,j){return Y.apply(this,arguments)}})(),T=e.symlink=(()=>{var Y=(0,(n||s()).default)(function*(J,U){try{if((yield Oe(U)).isSymbolicLink()&&(yield ke(U))===J)return}catch(j){if(j.code!=="ENOENT")throw j}if(yield(0,(z||Z()).unlink)(U),process.platform==="win32")yield Tn(J,U,"junction");else{let j;try{j=(l||d()).default.relative((x||C()).default.realpathSync((l||d()).default.dirname(U)),(x||C()).default.realpathSync(J))}catch(G){if(G.code!=="ENOENT")throw G;j=(l||d()).default.relative((l||d()).default.dirname(U),J)}yield Tn(j||".",U)}});return function(U,j){return Y.apply(this,arguments)}})(),h=e.walk=(()=>{var Y=(0,(n||s()).default)(function*(J,U,j=new Set){let G=[],ne=yield Ne(J);j.size&&(ne=ne.filter(function(oe){return!j.has(oe)}));for(var ue=ne,he=Array.isArray(ue),le=0,ue=he?ue:ue[Symbol.iterator]();;){var ie;if(he){if(le>=ue.length)break;ie=ue[le++]}else{if(le=ue.next(),le.done)break;ie=le.value}let oe=ie,Ye=U?(l||d()).default.join(U,oe):oe,Fe=(l||d()).default.join(J,oe),Rt=yield Oe(Fe);G.push({relative:Ye,basename:oe,absolute:Fe,mtime:+Rt.mtime}),Rt.isDirectory()&&(G=G.concat(yield h(Fe,Ye,j)))}return G});return function(U,j){return Y.apply(this,arguments)}})(),b=e.getFileSizeOnDisk=(()=>{var Y=(0,(n||s()).default)(function*(J){let U=yield Oe(J),j=U.size,G=U.blksize;return Math.ceil(j/G)*G});return function(U){return Y.apply(this,arguments)}})(),$=(()=>{var Y=(0,(n||s()).default)(function*(J){if(!(yield lt(J)))return;let U=yield Q(J);for(let j=0;j<U.length;++j){if(U[j]===go)return`\r
|
|
6
6
|
`;if(U[j]===yo)return`
|
|
7
7
|
`}});return function(U){return Y.apply(this,arguments)}})(),D=e.writeFilePreservingEol=(()=>{var Y=(0,(n||s()).default)(function*(J,U){let j=(yield $(J))||(L||y()).default.EOL;j!==`
|
|
8
|
-
`&&(U=U.replace(/\n/g,j)),yield pe(J,U)});return function(U,j){return Y.apply(this,arguments)}})(),A=e.hardlinksWork=(()=>{var Y=(0,(n||s()).default)(function*(J){let U="test-file"+Math.random(),j=(l||d()).default.join(J,U),G=(l||d()).default.join(J,U+"-link");try{yield pe(j,"test"),yield $n(j,G)}catch{return!1}finally{yield(0,(z||Z()).unlink)(j),yield(0,(z||Z()).unlink)(G)}return!0});return function(U){return Y.apply(this,arguments)}})(),I=e.makeTempDir=(()=>{var Y=(0,(n||s()).default)(function*(J){let U=(l||d()).default.join((L||y()).default.tmpdir(),`yarn-${J||""}-${Date.now()}-${Math.random()}`);return yield(0,(z||Z()).unlink)(U),yield Ce(U),U});return function(U){return Y.apply(this,arguments)}})(),w=e.readFirstAvailableStream=(()=>{var Y=(0,(n||s()).default)(function*(J){for(var G=J,U=Array.isArray(G),j=0,G=U?G:G[Symbol.iterator]();;){var ne;if(U){if(j>=G.length)break;ne=G[j++]}else{if(j=G.next(),j.done)break;ne=j.value}let he=ne;try{let le=yield _(he,"r");return(x||C()).default.createReadStream(he,{fd:le})}catch{}}return null});return function(U){return Y.apply(this,arguments)}})(),g=e.getFirstSuitableFolder=(()=>{var Y=(0,(n||s()).default)(function*(J,U=X.W_OK|X.X_OK){let j={skipped:[],folder:null};for(var he=J,G=Array.isArray(he),ne=0,he=G?he:he[Symbol.iterator]();;){var le;if(G){if(ne>=he.length)break;le=he[ne++]}else{if(ne=he.next(),ne.done)break;le=ne.value}let ue=le;try{return yield Ce(ue),yield Re(ue,U),j.folder=ue,j}catch(ie){j.skipped.push({error:ie,folder:ue})}}return j});return function(U){return Y.apply(this,arguments)}})();e.copy=Cn,e.readFile=Vn,e.readFileRaw=mo,e.normalizeOS=Mr;var x;function C(){return x=F(t(3))}var O;function k(){return O=F(t(75))}var L;function y(){return L=F(t(36))}var l;function d(){return l=F(t(0))}var f;function v(){return f=F(t(84))}var E;function R(){return E=H(t(40))}var N;function P(){return N=t(40)}var M;function B(){return M=F(t(20))}var z;function Z(){return z=t(164)}function H(Y){if(Y&&Y.__esModule)return Y;var J={};if(Y!=null)for(var U in Y)Object.prototype.hasOwnProperty.call(Y,U)&&(J[U]=Y[U]);return J.default=Y,J}function F(Y){return Y&&Y.__esModule?Y:{default:Y}}let X=e.constants=typeof(x||C()).default.constants<"u"?(x||C()).default.constants:{R_OK:(x||C()).default.R_OK,W_OK:(x||C()).default.W_OK,X_OK:(x||C()).default.X_OK},q=e.lockQueue=new(f||v()).default("fs lock"),Q=e.readFileBuffer=(0,(N||P()).promisify)((x||C()).default.readFile),_=e.open=(0,(N||P()).promisify)((x||C()).default.open),pe=e.writeFile=(0,(N||P()).promisify)((x||C()).default.writeFile),ce=e.readlink=(0,(N||P()).promisify)((x||C()).default.readlink),ke=e.realpath=(0,(N||P()).promisify)((x||C()).default.realpath),Ne=e.readdir=(0,(N||P()).promisify)((x||C()).default.readdir),
|
|
9
|
-
`)}let go=13,yo=10}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPathKey=Re;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,p=t(227),m=e.DEPENDENCY_TYPES=["devDependencies","dependencies","optionalDependencies","peerDependencies"],S=e.RESOLUTIONS="resolutions",T=e.MANIFEST_FIELDS=[S,...m],h=e.SUPPORTED_NODE_VERSIONS="^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0",b=e.YARN_REGISTRY="https://registry.yarnpkg.com",$=e.YARN_DOCS="https://yarnpkg.com/en/docs/cli/",D=e.YARN_INSTALLER_SH="https://yarnpkg.com/install.sh",A=e.YARN_INSTALLER_MSI="https://yarnpkg.com/latest.msi",I=e.SELF_UPDATE_VERSION_URL="https://yarnpkg.com/latest-version",w=e.CACHE_VERSION=2,g=e.LOCKFILE_VERSION=1,x=e.NETWORK_CONCURRENCY=8,C=e.NETWORK_TIMEOUT=30*1e3,O=e.CHILD_CONCURRENCY=5,k=e.REQUIRED_PACKAGE_KEYS=["name","version","_uid"];function L(){let Ce=[a()];return process.getuid&&Ce.push(s.join(n.tmpdir(),`.yarn-cache-${process.getuid()}`)),Ce.push(s.join(n.tmpdir(),".yarn-cache")),Ce}let y=e.PREFERRED_MODULE_CACHE_DIRECTORIES=L(),l=e.CONFIG_DIRECTORY=u(),d=e.DATA_DIRECTORY=c(),f=e.LINK_REGISTRY_DIRECTORY=s.join(d,"link"),v=e.GLOBAL_MODULE_DIRECTORY=s.join(d,"global"),E=e.NODE_BIN_PATH=process.execPath,R=e.YARN_BIN_PATH=N();function N(){return p?__filename:s.join(__dirname,"..","bin","yarn.js")}let P=e.NODE_MODULES_FOLDER="node_modules",M=e.NODE_PACKAGE_JSON="package.json",B=e.POSIX_GLOBAL_PREFIX=`${process.env.DESTDIR||""}/usr/local`,z=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",pe=e.NPM_SHRINKWRAP_FILENAME="npm-shrinkwrap.json",ce=e.DEFAULT_INDENT=" ",ke=e.SINGLE_INSTANCE_PORT=31997,Ne=e.SINGLE_INSTANCE_FILENAME=".yarn-single-instance",ot=e.ENV_PATH_KEY=Re(process.platform,process.env);function Re(Ce,at){let Oe="PATH";if(Ce==="win32"){Oe="Path";for(let Et in at)Et.toLowerCase()==="path"&&(Oe=Et)}return Oe}let Ae=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,p,m,S){if(n!=="production"&&o===void 0)throw new Error("invariant requires an error message argument");if(!i){var T;if(o===void 0)T=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,p,m,S],b=0;T=new Error(o.replace(/%s/g,function(){return h[b++]})),T.name="Invariant Violation"}throw T.framesToPop=1,T}};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=p,e.compareSortedArrays=m,e.sleep=S;let n=t(176);function s(T,h){let b=Math.min(T.length,h.length);for(let $=0;$<b;$++){let D=T.charCodeAt($),A=h.charCodeAt($);if(D!==A)return D-A}return T.length-h.length}function i(T){let h=[];if(T)for(let b in T)h.push([b,T[b]]);return h}function o(T,h){return T.startsWith(h)&&(T=T.slice(h.length)),T}function a(T,h){return T.endsWith(h)?T.slice(0,-h.length):T}function u(T,h){return T.endsWith(h)?T:T+h}function c(T){return T.replace(/[A-Z]/g,h=>"-"+h.charAt(0).toLowerCase())}function p(T){return/[A-Z]/.test(T)?null:n(T)}function m(T,h){if(T.length!==h.length)return!1;for(let b=0,$=T.length;b<$;b++)if(T[b]!==h[b])return!1;return!0}function S(T){return new Promise(h=>{setTimeout(h,T)})}}),(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=w(t(1))}var i;function o(){return i=t(81)}Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return w(i||o()).default}});var a;function u(){return a=t(150)}Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return w(a||u()).default}}),e.implodeEntry=l,e.explodeEntry=d;var c;function p(){return c=t(12)}var m;function S(){return m=t(29)}var T;function h(){return T=w(t(81))}var b;function $(){return b=t(6)}var D;function A(){return D=I(t(5))}function I(v){if(v&&v.__esModule)return v;var E={};if(v!=null)for(var R in v)Object.prototype.hasOwnProperty.call(v,R)&&(E[R]=v[R]);return E.default=v,E}function w(v){return v&&v.__esModule?v:{default:v}}let g=t(7),x=t(0),C=t(55);function O(v){return(0,(m||S()).normalizePattern)(v).name}function k(v){return v&&Object.keys(v).length?v:void 0}function L(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 R=O(v),N=E.integrity?y(E.integrity):"",P={name:R===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:k(E.dependencies),optionalDependencies:k(E.optionalDependencies),permissions:k(E.permissions),prebuiltVariants:k(E.prebuiltVariants)};return N&&(P.integrity=N),P}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||O(v);let R=E.integrity;return R&&R.isIntegrity&&(E.integrity=C.parse(R)),E}class f{constructor({cache:E,source:R,parseResultType:N}={}){this.source=R||"",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,R){return(0,(n||s()).default)(function*(){let N=x.join(E,(b||$()).LOCKFILE_FILENAME),P,M="",B;return(yield(D||A()).exists(N))?(M=yield(D||A()).readFile(N),B=(0,(T||h()).default)(M,N),R&&(B.type==="merge"?R.info(R.lang("lockfileMerged")):B.type==="conflict"&&R.warn(R.lang("lockfileConflict"))),P=B.object):R&&R.info(R.lang("noLockfileFound")),new f({cache:P,source:M,parseResultType:B&&B.type})})()}getLocked(E){let R=this.cache;if(!R)return;let N=E in R&&R[E];if(typeof N=="string")return this.getLocked(N);if(N)return d(E,N),N}removePattern(E){let R=this.cache;R&&delete R[E]}getLockfile(E){let R={},N=new Map,P=Object.keys(E).sort((c||p()).sortAlpha);for(var z=P,M=Array.isArray(z),B=0,z=M?z:z[Symbol.iterator]();;){var Z;if(M){if(B>=z.length)break;Z=z[B++]}else{if(B=z.next(),B.done)break;Z=B.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=L(X),_=Q&&N.get(Q);if(_){R[H]=_,!_.name&&O(H)!==F.name&&(_.name=F.name);continue}let pe=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});R[H]=pe,Q&&N.set(Q,pe)}return R}}e.default=f}),,,(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 p=s(a);return u!==void 0?typeof c=="string"?p.fill(u,c):p.fill(u):p.fill(0),p},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,p){u.push(function(m,...S){let T=S;S.length<=1&&(T=S[0]),a&&(T=m,m=null),m?p(m):c(T)}),o.apply(null,u)})}}function i(o,a,u=1/0){u=Math.min(u,o.length),o=o.slice();let c=[],p=o.length;return p?new Promise((m,S)=>{for(let h=0;h<u;h++)T();function T(){let h=o.shift();a(h).then(function($){c.push($),p--,p===0?m(c):o.length&&T()},S)}}):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(p,m,S){var T=p&c.F,h=p&c.G,b=p&c.S,$=p&c.P,D=p&c.B,A=p&c.W,I=h?s:s[m]||(s[m]={}),w=I[u],g=h?n:b?n[m]:(n[m]||{})[u],x,C,O;h&&(S=m);for(x in S)C=!T&&g&&g[x]!==void 0,!(C&&a(I,x))&&(O=C?g[x]:S[x],I[x]=h&&typeof g[x]!="function"?S[x]:D&&C?i(O,n):A&&g[x]==O?(function(k){var L=function(y,l,d){if(this instanceof k){switch(arguments.length){case 0:return new k;case 1:return new k(y);case 2:return new k(y,l)}return new k(y,l,d)}return k.apply(this,arguments)};return L[u]=k[u],L})(O):$&&typeof O=="function"?i(Function.call,O):O,$&&((I.virtual||(I.virtual={}))[x]=O,p&c.R&&w&&!w[x]&&o(w,x,O)))};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,p){if(n(u),c=i(c,!0),n(p),s)try{return o(u,c,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(u[c]=p.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]*)*$/,p=/^[\x21-\x7E]+$/;class m{get isHash(){return!0}constructor(y,l){let d=!!(l&&l.strict);this.source=y.trim();let f=this.source.match(d?c:u);if(!f||d&&!o.some(E=>E===f[1]))return;this.algorithm=f[1],this.digest=f[2];let v=f[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(p))))return"";let l=this.options&&this.options.length?`?${this.options.join("?")}`:"";return`${this.algorithm}-${this.digest}${l}`}}class S{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(f=>m.prototype.toString.call(f,y)).filter(f=>f.length).join(l)).filter(d=>d.length).join(l)}concat(y,l){let d=typeof y=="string"?y:b(y,l);return T(`${this.toString(l)} ${d}`,l)}hexDigest(){return T(this,{single:!0}).hexDigest()}match(y,l){let d=T(y,l),f=d.pickAlgorithm(l);return this[f]&&d[f]&&this[f].find(v=>d[f].find(E=>v.digest===E.digest))||!1}pickAlgorithm(y){let l=y&&y.pickAlgorithm||k,d=Object.keys(this);if(!d.length)throw new Error(`No algorithms available for ${JSON.stringify(this.toString())}`);return d.reduce((f,v)=>l(f,v)||f)}}r.exports.parse=T;function T(L,y){if(y=y||{},typeof L=="string")return h(L,y);if(L.algorithm&&L.digest){let l=new S;return l[L.algorithm]=[L],h(b(l,y),y)}else return h(b(L,y),y)}function h(L,y){return y.single?new m(L,y):L.trim().split(/\s+/).reduce((l,d)=>{let f=new m(d,y);if(f.algorithm&&f.digest){let v=f.algorithm;l[v]||(l[v]=[]),l[v].push(f)}return l},new S)}r.exports.stringify=b;function b(L,y){return L.algorithm&&L.digest?m.prototype.toString.call(L,y):typeof L=="string"?b(T(L,y),y):S.prototype.toString.call(L,y)}r.exports.fromHex=$;function $(L,y,l){let d=l&&l.options&&l.options.length?`?${l.options.join("?")}`:"";return T(`${y}-${n.from(L,"hex").toString("base64")}${d}`,l)}r.exports.fromData=D;function D(L,y){y=y||{};let l=y.algorithms||["sha512"],d=y.options&&y.options.length?`?${y.options.join("?")}`:"";return l.reduce((f,v)=>{let E=s.createHash(v).update(L).digest("base64"),R=new m(`${v}-${E}${d}`,y);if(R.algorithm&&R.digest){let N=R.algorithm;f[N]||(f[N]=[]),f[N].push(R)}return f},new S)}r.exports.fromStream=A;function A(L,y){y=y||{};let l=y.Promise||Promise,d=g(y);return new l((f,v)=>{L.pipe(d),L.on("error",v),d.on("error",v);let E;d.on("integrity",R=>{E=R}),d.on("end",()=>f(E)),d.on("data",()=>{})})}r.exports.checkData=I;function I(L,y,l){if(l=l||{},y=T(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),f=s.createHash(d).update(L).digest("base64"),v=T({algorithm:d,digest:f}),E=v.match(y,l);if(E||!l.error)return E;if(typeof l.size=="number"&&L.length!==l.size){let R=new Error(`data size mismatch when checking ${y}.
|
|
8
|
+
`&&(U=U.replace(/\n/g,j)),yield pe(J,U)});return function(U,j){return Y.apply(this,arguments)}})(),A=e.hardlinksWork=(()=>{var Y=(0,(n||s()).default)(function*(J){let U="test-file"+Math.random(),j=(l||d()).default.join(J,U),G=(l||d()).default.join(J,U+"-link");try{yield pe(j,"test"),yield $n(j,G)}catch{return!1}finally{yield(0,(z||Z()).unlink)(j),yield(0,(z||Z()).unlink)(G)}return!0});return function(U){return Y.apply(this,arguments)}})(),I=e.makeTempDir=(()=>{var Y=(0,(n||s()).default)(function*(J){let U=(l||d()).default.join((L||y()).default.tmpdir(),`yarn-${J||""}-${Date.now()}-${Math.random()}`);return yield(0,(z||Z()).unlink)(U),yield Ce(U),U});return function(U){return Y.apply(this,arguments)}})(),w=e.readFirstAvailableStream=(()=>{var Y=(0,(n||s()).default)(function*(J){for(var G=J,U=Array.isArray(G),j=0,G=U?G:G[Symbol.iterator]();;){var ne;if(U){if(j>=G.length)break;ne=G[j++]}else{if(j=G.next(),j.done)break;ne=j.value}let he=ne;try{let le=yield _(he,"r");return(x||C()).default.createReadStream(he,{fd:le})}catch{}}return null});return function(U){return Y.apply(this,arguments)}})(),g=e.getFirstSuitableFolder=(()=>{var Y=(0,(n||s()).default)(function*(J,U=X.W_OK|X.X_OK){let j={skipped:[],folder:null};for(var he=J,G=Array.isArray(he),ne=0,he=G?he:he[Symbol.iterator]();;){var le;if(G){if(ne>=he.length)break;le=he[ne++]}else{if(ne=he.next(),ne.done)break;le=ne.value}let ue=le;try{return yield Ce(ue),yield Re(ue,U),j.folder=ue,j}catch(ie){j.skipped.push({error:ie,folder:ue})}}return j});return function(U){return Y.apply(this,arguments)}})();e.copy=Cn,e.readFile=Vn,e.readFileRaw=mo,e.normalizeOS=Mr;var x;function C(){return x=F(t(3))}var O;function k(){return O=F(t(75))}var L;function y(){return L=F(t(36))}var l;function d(){return l=F(t(0))}var f;function v(){return f=F(t(84))}var E;function R(){return E=H(t(40))}var N;function P(){return N=t(40)}var M;function B(){return M=F(t(20))}var z;function Z(){return z=t(164)}function H(Y){if(Y&&Y.__esModule)return Y;var J={};if(Y!=null)for(var U in Y)Object.prototype.hasOwnProperty.call(Y,U)&&(J[U]=Y[U]);return J.default=Y,J}function F(Y){return Y&&Y.__esModule?Y:{default:Y}}let X=e.constants=typeof(x||C()).default.constants<"u"?(x||C()).default.constants:{R_OK:(x||C()).default.R_OK,W_OK:(x||C()).default.W_OK,X_OK:(x||C()).default.X_OK},q=e.lockQueue=new(f||v()).default("fs lock"),Q=e.readFileBuffer=(0,(N||P()).promisify)((x||C()).default.readFile),_=e.open=(0,(N||P()).promisify)((x||C()).default.open),pe=e.writeFile=(0,(N||P()).promisify)((x||C()).default.writeFile),ce=e.readlink=(0,(N||P()).promisify)((x||C()).default.readlink),ke=e.realpath=(0,(N||P()).promisify)((x||C()).default.realpath),Ne=e.readdir=(0,(N||P()).promisify)((x||C()).default.readdir),at=e.rename=(0,(N||P()).promisify)((x||C()).default.rename),Re=e.access=(0,(N||P()).promisify)((x||C()).default.access),Ae=e.stat=(0,(N||P()).promisify)((x||C()).default.stat),Ce=e.mkdirp=(0,(N||P()).promisify)(t(116)),lt=e.exists=(0,(N||P()).promisify)((x||C()).default.exists,!0),Oe=e.lstat=(0,(N||P()).promisify)((x||C()).default.lstat),Et=e.chmod=(0,(N||P()).promisify)((x||C()).default.chmod),$n=e.link=(0,(N||P()).promisify)((x||C()).default.link),xn=e.glob=(0,(N||P()).promisify)((O||k()).default);e.unlink=(z||Z()).unlink;let Ft=(x||C()).default.copyFile?128:4,Tn=(0,(N||P()).promisify)((x||C()).default.symlink),Kt=t(7),sn=t(122),tt=()=>{};function Cn(Y,J,U){return a([{src:Y,dest:J}],U)}function Yt(Y,J){return new Promise((U,j)=>{(x||C()).default.readFile(Y,J,function(G,ne){G?j(G):U(ne)})})}function Vn(Y){return Yt(Y,"utf8").then(Mr)}function mo(Y){return Yt(Y,"binary")}function Mr(Y){return Y.replace(/\r\n/g,`
|
|
9
|
+
`)}let go=13,yo=10}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPathKey=Re;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,p=t(227),m=e.DEPENDENCY_TYPES=["devDependencies","dependencies","optionalDependencies","peerDependencies"],S=e.RESOLUTIONS="resolutions",T=e.MANIFEST_FIELDS=[S,...m],h=e.SUPPORTED_NODE_VERSIONS="^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0",b=e.YARN_REGISTRY="https://registry.yarnpkg.com",$=e.YARN_DOCS="https://yarnpkg.com/en/docs/cli/",D=e.YARN_INSTALLER_SH="https://yarnpkg.com/install.sh",A=e.YARN_INSTALLER_MSI="https://yarnpkg.com/latest.msi",I=e.SELF_UPDATE_VERSION_URL="https://yarnpkg.com/latest-version",w=e.CACHE_VERSION=2,g=e.LOCKFILE_VERSION=1,x=e.NETWORK_CONCURRENCY=8,C=e.NETWORK_TIMEOUT=30*1e3,O=e.CHILD_CONCURRENCY=5,k=e.REQUIRED_PACKAGE_KEYS=["name","version","_uid"];function L(){let Ce=[a()];return process.getuid&&Ce.push(s.join(n.tmpdir(),`.yarn-cache-${process.getuid()}`)),Ce.push(s.join(n.tmpdir(),".yarn-cache")),Ce}let y=e.PREFERRED_MODULE_CACHE_DIRECTORIES=L(),l=e.CONFIG_DIRECTORY=u(),d=e.DATA_DIRECTORY=c(),f=e.LINK_REGISTRY_DIRECTORY=s.join(d,"link"),v=e.GLOBAL_MODULE_DIRECTORY=s.join(d,"global"),E=e.NODE_BIN_PATH=process.execPath,R=e.YARN_BIN_PATH=N();function N(){return p?__filename:s.join(__dirname,"..","bin","yarn.js")}let P=e.NODE_MODULES_FOLDER="node_modules",M=e.NODE_PACKAGE_JSON="package.json",B=e.POSIX_GLOBAL_PREFIX=`${process.env.DESTDIR||""}/usr/local`,z=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",pe=e.NPM_SHRINKWRAP_FILENAME="npm-shrinkwrap.json",ce=e.DEFAULT_INDENT=" ",ke=e.SINGLE_INSTANCE_PORT=31997,Ne=e.SINGLE_INSTANCE_FILENAME=".yarn-single-instance",at=e.ENV_PATH_KEY=Re(process.platform,process.env);function Re(Ce,lt){let Oe="PATH";if(Ce==="win32"){Oe="Path";for(let Et in lt)Et.toLowerCase()==="path"&&(Oe=Et)}return Oe}let Ae=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,p,m,S){if(n!=="production"&&o===void 0)throw new Error("invariant requires an error message argument");if(!i){var T;if(o===void 0)T=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,p,m,S],b=0;T=new Error(o.replace(/%s/g,function(){return h[b++]})),T.name="Invariant Violation"}throw T.framesToPop=1,T}};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=p,e.compareSortedArrays=m,e.sleep=S;let n=t(176);function s(T,h){let b=Math.min(T.length,h.length);for(let $=0;$<b;$++){let D=T.charCodeAt($),A=h.charCodeAt($);if(D!==A)return D-A}return T.length-h.length}function i(T){let h=[];if(T)for(let b in T)h.push([b,T[b]]);return h}function o(T,h){return T.startsWith(h)&&(T=T.slice(h.length)),T}function a(T,h){return T.endsWith(h)?T.slice(0,-h.length):T}function u(T,h){return T.endsWith(h)?T:T+h}function c(T){return T.replace(/[A-Z]/g,h=>"-"+h.charAt(0).toLowerCase())}function p(T){return/[A-Z]/.test(T)?null:n(T)}function m(T,h){if(T.length!==h.length)return!1;for(let b=0,$=T.length;b<$;b++)if(T[b]!==h[b])return!1;return!0}function S(T){return new Promise(h=>{setTimeout(h,T)})}}),(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=w(t(1))}var i;function o(){return i=t(81)}Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return w(i||o()).default}});var a;function u(){return a=t(150)}Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return w(a||u()).default}}),e.implodeEntry=l,e.explodeEntry=d;var c;function p(){return c=t(12)}var m;function S(){return m=t(29)}var T;function h(){return T=w(t(81))}var b;function $(){return b=t(6)}var D;function A(){return D=I(t(5))}function I(v){if(v&&v.__esModule)return v;var E={};if(v!=null)for(var R in v)Object.prototype.hasOwnProperty.call(v,R)&&(E[R]=v[R]);return E.default=v,E}function w(v){return v&&v.__esModule?v:{default:v}}let g=t(7),x=t(0),C=t(55);function O(v){return(0,(m||S()).normalizePattern)(v).name}function k(v){return v&&Object.keys(v).length?v:void 0}function L(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 R=O(v),N=E.integrity?y(E.integrity):"",P={name:R===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:k(E.dependencies),optionalDependencies:k(E.optionalDependencies),permissions:k(E.permissions),prebuiltVariants:k(E.prebuiltVariants)};return N&&(P.integrity=N),P}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||O(v);let R=E.integrity;return R&&R.isIntegrity&&(E.integrity=C.parse(R)),E}class f{constructor({cache:E,source:R,parseResultType:N}={}){this.source=R||"",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,R){return(0,(n||s()).default)(function*(){let N=x.join(E,(b||$()).LOCKFILE_FILENAME),P,M="",B;return(yield(D||A()).exists(N))?(M=yield(D||A()).readFile(N),B=(0,(T||h()).default)(M,N),R&&(B.type==="merge"?R.info(R.lang("lockfileMerged")):B.type==="conflict"&&R.warn(R.lang("lockfileConflict"))),P=B.object):R&&R.info(R.lang("noLockfileFound")),new f({cache:P,source:M,parseResultType:B&&B.type})})()}getLocked(E){let R=this.cache;if(!R)return;let N=E in R&&R[E];if(typeof N=="string")return this.getLocked(N);if(N)return d(E,N),N}removePattern(E){let R=this.cache;R&&delete R[E]}getLockfile(E){let R={},N=new Map,P=Object.keys(E).sort((c||p()).sortAlpha);for(var z=P,M=Array.isArray(z),B=0,z=M?z:z[Symbol.iterator]();;){var Z;if(M){if(B>=z.length)break;Z=z[B++]}else{if(B=z.next(),B.done)break;Z=B.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=L(X),_=Q&&N.get(Q);if(_){R[H]=_,!_.name&&O(H)!==F.name&&(_.name=F.name);continue}let pe=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});R[H]=pe,Q&&N.set(Q,pe)}return R}}e.default=f}),,,(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 p=s(a);return u!==void 0?typeof c=="string"?p.fill(u,c):p.fill(u):p.fill(0),p},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,p){u.push(function(m,...S){let T=S;S.length<=1&&(T=S[0]),a&&(T=m,m=null),m?p(m):c(T)}),o.apply(null,u)})}}function i(o,a,u=1/0){u=Math.min(u,o.length),o=o.slice();let c=[],p=o.length;return p?new Promise((m,S)=>{for(let h=0;h<u;h++)T();function T(){let h=o.shift();a(h).then(function($){c.push($),p--,p===0?m(c):o.length&&T()},S)}}):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(p,m,S){var T=p&c.F,h=p&c.G,b=p&c.S,$=p&c.P,D=p&c.B,A=p&c.W,I=h?s:s[m]||(s[m]={}),w=I[u],g=h?n:b?n[m]:(n[m]||{})[u],x,C,O;h&&(S=m);for(x in S)C=!T&&g&&g[x]!==void 0,!(C&&a(I,x))&&(O=C?g[x]:S[x],I[x]=h&&typeof g[x]!="function"?S[x]:D&&C?i(O,n):A&&g[x]==O?(function(k){var L=function(y,l,d){if(this instanceof k){switch(arguments.length){case 0:return new k;case 1:return new k(y);case 2:return new k(y,l)}return new k(y,l,d)}return k.apply(this,arguments)};return L[u]=k[u],L})(O):$&&typeof O=="function"?i(Function.call,O):O,$&&((I.virtual||(I.virtual={}))[x]=O,p&c.R&&w&&!w[x]&&o(w,x,O)))};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,p){if(n(u),c=i(c,!0),n(p),s)try{return o(u,c,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(u[c]=p.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]*)*$/,p=/^[\x21-\x7E]+$/;class m{get isHash(){return!0}constructor(y,l){let d=!!(l&&l.strict);this.source=y.trim();let f=this.source.match(d?c:u);if(!f||d&&!o.some(E=>E===f[1]))return;this.algorithm=f[1],this.digest=f[2];let v=f[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(p))))return"";let l=this.options&&this.options.length?`?${this.options.join("?")}`:"";return`${this.algorithm}-${this.digest}${l}`}}class S{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(f=>m.prototype.toString.call(f,y)).filter(f=>f.length).join(l)).filter(d=>d.length).join(l)}concat(y,l){let d=typeof y=="string"?y:b(y,l);return T(`${this.toString(l)} ${d}`,l)}hexDigest(){return T(this,{single:!0}).hexDigest()}match(y,l){let d=T(y,l),f=d.pickAlgorithm(l);return this[f]&&d[f]&&this[f].find(v=>d[f].find(E=>v.digest===E.digest))||!1}pickAlgorithm(y){let l=y&&y.pickAlgorithm||k,d=Object.keys(this);if(!d.length)throw new Error(`No algorithms available for ${JSON.stringify(this.toString())}`);return d.reduce((f,v)=>l(f,v)||f)}}r.exports.parse=T;function T(L,y){if(y=y||{},typeof L=="string")return h(L,y);if(L.algorithm&&L.digest){let l=new S;return l[L.algorithm]=[L],h(b(l,y),y)}else return h(b(L,y),y)}function h(L,y){return y.single?new m(L,y):L.trim().split(/\s+/).reduce((l,d)=>{let f=new m(d,y);if(f.algorithm&&f.digest){let v=f.algorithm;l[v]||(l[v]=[]),l[v].push(f)}return l},new S)}r.exports.stringify=b;function b(L,y){return L.algorithm&&L.digest?m.prototype.toString.call(L,y):typeof L=="string"?b(T(L,y),y):S.prototype.toString.call(L,y)}r.exports.fromHex=$;function $(L,y,l){let d=l&&l.options&&l.options.length?`?${l.options.join("?")}`:"";return T(`${y}-${n.from(L,"hex").toString("base64")}${d}`,l)}r.exports.fromData=D;function D(L,y){y=y||{};let l=y.algorithms||["sha512"],d=y.options&&y.options.length?`?${y.options.join("?")}`:"";return l.reduce((f,v)=>{let E=s.createHash(v).update(L).digest("base64"),R=new m(`${v}-${E}${d}`,y);if(R.algorithm&&R.digest){let N=R.algorithm;f[N]||(f[N]=[]),f[N].push(R)}return f},new S)}r.exports.fromStream=A;function A(L,y){y=y||{};let l=y.Promise||Promise,d=g(y);return new l((f,v)=>{L.pipe(d),L.on("error",v),d.on("error",v);let E;d.on("integrity",R=>{E=R}),d.on("end",()=>f(E)),d.on("data",()=>{})})}r.exports.checkData=I;function I(L,y,l){if(l=l||{},y=T(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),f=s.createHash(d).update(L).digest("base64"),v=T({algorithm:d,digest:f}),E=v.match(y,l);if(E||!l.error)return E;if(typeof l.size=="number"&&L.length!==l.size){let R=new Error(`data size mismatch when checking ${y}.
|
|
10
10
|
Wanted: ${l.size}
|
|
11
11
|
Found: ${L.length}`);throw R.code="EBADSIZE",R.found=L.length,R.expected=l.size,R.sri=y,R}else{let R=new Error(`Integrity checksum failed when using ${d}: Wanted ${y}, but got ${v}. (${L.length} bytes)`);throw R.code="EINTEGRITY",R.found=v,R.expected=y,R.algorithm=d,R.sri=y,R}}r.exports.checkStream=w;function w(L,y,l){l=l||{};let d=l.Promise||Promise,f=g(Object.assign({},l,{integrity:y}));return new d((v,E)=>{L.pipe(f),L.on("error",E),f.on("error",E);let R;f.on("verified",N=>{R=N}),f.on("end",()=>v(R)),f.on("data",()=>{})})}r.exports.integrityStream=g;function g(L){L=L||{};let y=L.integrity&&T(L.integrity,L),l=y&&Object.keys(y).length,d=l&&y.pickAlgorithm(L),f=l&&y[d],v=Array.from(new Set((L.algorithms||["sha512"]).concat(d?[d]:[]))),E=v.map(s.createHash),R=0,N=new i({transform(P,M,B){R+=P.length,E.forEach(z=>z.update(P,M)),B(null,P,M)}}).on("end",()=>{let P=L.options&&L.options.length?`?${L.options.join("?")}`:"",M=T(E.map((z,Z)=>`${v[Z]}-${z.digest("base64")}${P}`).join(" "),L),B=l&&M.match(y,L);if(typeof L.size=="number"&&R!==L.size){let z=new Error(`stream size mismatch when checking ${y}.
|
|
12
12
|
Wanted: ${L.size}
|
|
13
13
|
Found: ${R}`);z.code="EBADSIZE",z.found=R,z.expected=L.size,z.sri=y,N.emit("error",z)}else if(L.integrity&&!B){let z=new Error(`${y} integrity checksum failed when using ${d}: wanted ${f} but got ${M}. (${R} bytes)`);z.code="EINTEGRITY",z.found=M,z.expected=f,z.algorithm=d,z.sri=y,N.emit("error",z)}else N.emit("size",R),N.emit("integrity",M),B&&N.emit("verified",B)});return N}r.exports.create=x;function x(L){L=L||{};let y=L.algorithms||["sha512"],l=L.options&&L.options.length?`?${L.options.join("?")}`:"",d=y.map(s.createHash);return{update:function(f,v){return d.forEach(E=>E.update(f,v)),this},digest:function(f){return y.reduce((E,R)=>{let N=d.shift().digest("base64"),P=new m(`${R}-${N}${l}`,L);if(P.algorithm&&P.digest){let M=P.algorithm;E[M]||(E[M]=[]),E[M].push(P)}return E},new S)}}}let C=new Set(s.getHashes()),O=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(L=>C.has(L));function k(L,y){return O.indexOf(L.toLowerCase())>=O.indexOf(y.toLowerCase())?L:y}}),,,,,(function(r,e,t){r.exports=$,$.Minimatch=D;var n={sep:"/"};try{n=t(0)}catch{}var s=$.GLOBSTAR=D.GLOBSTAR={},i=t(175),o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",u=a+"*?",c="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",p="(?:(?!(?:\\/|^)\\.).)*?",m=S("().*{}+?[]^$\\!");function S(y){return y.split("").reduce(function(l,d){return l[d]=!0,l},{})}var T=/\/+/;$.filter=h;function h(y,l){return l=l||{},function(d,f,v){return $(d,y,l)}}function b(y,l){y=y||{},l=l||{};var d={};return Object.keys(l).forEach(function(f){d[f]=l[f]}),Object.keys(y).forEach(function(f){d[f]=y[f]}),d}$.defaults=function(y){if(!y||!Object.keys(y).length)return $;var l=$,d=function(v,E,R){return l.minimatch(v,E,b(y,R))};return d.Minimatch=function(v,E){return new l.Minimatch(v,b(y,E))},d},D.defaults=function(y){return!y||!Object.keys(y).length?D:$.defaults(y).Minimatch};function $(y,l,d){if(typeof l!="string")throw new TypeError("glob pattern string required");return d||(d={}),!d.nocomment&&l.charAt(0)==="#"?!1:l.trim()===""?y==="":new D(l,d).match(y)}function D(y,l){if(!(this instanceof D))return new D(y,l);if(typeof y!="string")throw new TypeError("glob pattern string required");l||(l={}),y=y.trim(),n.sep!=="/"&&(y=y.split(n.sep).join("/")),this.options=l,this.set=[],this.pattern=y,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}D.prototype.debug=function(){},D.prototype.make=A;function A(){if(!this._made){var y=this.pattern,l=this.options;if(!l.nocomment&&y.charAt(0)==="#"){this.comment=!0;return}if(!y){this.empty=!0;return}this.parseNegate();var d=this.globSet=this.braceExpand();l.debug&&(this.debug=console.error),this.debug(this.pattern,d),d=this.globParts=d.map(function(f){return f.split(T)}),this.debug(this.pattern,d),d=d.map(function(f,v,E){return f.map(this.parse,this)},this),this.debug(this.pattern,d),d=d.filter(function(f){return f.indexOf(!1)===-1}),this.debug(this.pattern,d),this.set=d}}D.prototype.parseNegate=I;function I(){var y=this.pattern,l=!1,d=this.options,f=0;if(!d.nonegate){for(var v=0,E=y.length;v<E&&y.charAt(v)==="!";v++)l=!l,f++;f&&(this.pattern=y.substr(f)),this.negate=l}}$.braceExpand=function(y,l){return w(y,l)},D.prototype.braceExpand=w;function w(y,l){if(l||(this instanceof D?l=this.options:l={}),y=typeof y>"u"?this.pattern:y,typeof y>"u")throw new TypeError("undefined pattern");return l.nobrace||!y.match(/\{.*\}/)?[y]:i(y)}D.prototype.parse=x;var g={};function x(y,l){if(y.length>1024*64)throw new TypeError("pattern is too long");var d=this.options;if(!d.noglobstar&&y==="**")return s;if(y==="")return"";var f="",v=!!d.nocase,E=!1,R=[],N=[],P,M=!1,B=-1,z=-1,Z=y.charAt(0)==="."?"":d.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",H=this;function F(){if(P){switch(P){case"*":f+=u,v=!0;break;case"?":f+=a,v=!0;break;default:f+="\\"+P;break}H.debug("clearStateChar %j %j",P,f),P=!1}}for(var X=0,q=y.length,Q;X<q&&(Q=y.charAt(X));X++){if(this.debug("%s %s %s %j",y,X,f,Q),E&&m[Q]){f+="\\"+Q,E=!1;continue}switch(Q){case"/":return!1;case"\\":F(),E=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",y,X,f,Q),M){this.debug(" in class"),Q==="!"&&X===z+1&&(Q="^"),f+=Q;continue}H.debug("call clearStateChar %j",P),F(),P=Q,d.noext&&F();continue;case"(":if(M){f+="(";continue}if(!P){f+="\\(";continue}R.push({type:P,start:X-1,reStart:f.length,open:o[P].open,close:o[P].close}),f+=P==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",P,f),P=!1;continue;case")":if(M||!R.length){f+="\\)";continue}F(),v=!0;var _=R.pop();f+=_.close,_.type==="!"&&N.push(_),_.reEnd=f.length;continue;case"|":if(M||!R.length||E){f+="\\|",E=!1;continue}F(),f+="|";continue;case"[":if(F(),M){f+="\\"+Q;continue}M=!0,z=X,B=f.length,f+=Q;continue;case"]":if(X===z+1||!M){f+="\\"+Q,E=!1;continue}if(M){var pe=y.substring(z+1,X);try{RegExp("["+pe+"]")}catch{var ce=this.parse(pe,g);f=f.substr(0,B)+"\\["+ce[0]+"\\]",v=v||ce[1],M=!1;continue}}v=!0,M=!1,f+=Q;continue;default:F(),E?E=!1:m[Q]&&!(Q==="^"&&M)&&(f+="\\"),f+=Q}}for(M&&(pe=y.substr(z+1),ce=this.parse(pe,g),f=f.substr(0,B)+"\\["+ce[0],v=v||ce[1]),_=R.pop();_;_=R.pop()){var ke=f.slice(_.reStart+_.open.length);this.debug("setting tail",f,_),ke=ke.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(tt,Cn,Yt){return Yt||(Yt="\\"),Cn+Cn+Yt+"|"}),this.debug(`tail=%j
|
|
14
|
-
%s`,ke,ke,_,f);var Ne=_.type==="*"?u:_.type==="?"?a:"\\"+_.type;v=!0,f=f.slice(0,_.reStart)+Ne+"\\("+ke}F(),E&&(f+="\\\\");var
|
|
14
|
+
%s`,ke,ke,_,f);var Ne=_.type==="*"?u:_.type==="?"?a:"\\"+_.type;v=!0,f=f.slice(0,_.reStart)+Ne+"\\("+ke}F(),E&&(f+="\\\\");var at=!1;switch(f.charAt(0)){case".":case"[":case"(":at=!0}for(var Re=N.length-1;Re>-1;Re--){var Ae=N[Re],Ce=f.slice(0,Ae.reStart),lt=f.slice(Ae.reStart,Ae.reEnd-8),Oe=f.slice(Ae.reEnd-8,Ae.reEnd),Et=f.slice(Ae.reEnd);Oe+=Et;var $n=Ce.split("(").length-1,xn=Et;for(X=0;X<$n;X++)xn=xn.replace(/\)[+*?]?/,"");Et=xn;var Ft="";Et===""&&l!==g&&(Ft="$");var Tn=Ce+lt+Et+Ft+Oe;f=Tn}if(f!==""&&v&&(f="(?=.)"+f),at&&(f=Z+f),l===g)return[f,v];if(!v)return k(y);var Kt=d.nocase?"i":"";try{var sn=new RegExp("^"+f+"$",Kt)}catch{return new RegExp("$.")}return sn._glob=y,sn._src=f,sn}$.makeRe=function(y,l){return new D(y,l||{}).makeRe()},D.prototype.makeRe=C;function C(){if(this.regexp||this.regexp===!1)return this.regexp;var y=this.set;if(!y.length)return this.regexp=!1,this.regexp;var l=this.options,d=l.noglobstar?u:l.dot?c:p,f=l.nocase?"i":"",v=y.map(function(E){return E.map(function(R){return R===s?d:typeof R=="string"?L(R):R._src}).join("\\/")}).join("|");v="^(?:"+v+")$",this.negate&&(v="^(?!"+v+").*$");try{this.regexp=new RegExp(v,f)}catch{this.regexp=!1}return this.regexp}$.match=function(y,l,d){d=d||{};var f=new D(l,d);return y=y.filter(function(v){return f.match(v)}),f.options.nonull&&!y.length&&y.push(l),y},D.prototype.match=O;function O(y,l){if(this.debug("match",y,this.pattern),this.comment)return!1;if(this.empty)return y==="";if(y==="/"&&l)return!0;var d=this.options;n.sep!=="/"&&(y=y.split(n.sep).join("/")),y=y.split(T),this.debug(this.pattern,"split",y);var f=this.set;this.debug(this.pattern,"set",f);var v,E;for(E=y.length-1;E>=0&&(v=y[E],!v);E--);for(E=0;E<f.length;E++){var R=f[E],N=y;d.matchBase&&R.length===1&&(N=[v]);var P=this.matchOne(N,R,l);if(P)return d.flipNegate?!0:!this.negate}return d.flipNegate?!1:this.negate}D.prototype.matchOne=function(y,l,d){var f=this.options;this.debug("matchOne",{this:this,file:y,pattern:l}),this.debug("matchOne",y.length,l.length);for(var v=0,E=0,R=y.length,N=l.length;v<R&&E<N;v++,E++){this.debug("matchOne loop");var P=l[E],M=y[v];if(this.debug(l,P,M),P===!1)return!1;if(P===s){this.debug("GLOBSTAR",[l,P,M]);var B=v,z=E+1;if(z===N){for(this.debug("** at the end");v<R;v++)if(y[v]==="."||y[v]===".."||!f.dot&&y[v].charAt(0)===".")return!1;return!0}for(;B<R;){var Z=y[B];if(this.debug(`
|
|
15
15
|
globstar while`,y,B,l,z,Z),this.matchOne(y.slice(B),l.slice(z),d))return this.debug("globstar found match!",B,R,Z),!0;if(Z==="."||Z===".."||!f.dot&&Z.charAt(0)==="."){this.debug("dot detected!",y,B,l,z);break}this.debug("globstar swallow a segment, and continue"),B++}return!!(d&&(this.debug(`
|
|
16
16
|
>>> no match, partial?`,y,B,l,z),B===R))}var H;if(typeof P=="string"?(f.nocase?H=M.toLowerCase()===P.toLowerCase():H=M===P,this.debug("string match",P,M,H)):(H=M.match(P),this.debug("pattern match",P,M,H)),!H)return!1}if(v===R&&E===N)return!0;if(v===R)return d;if(E===N){var F=v===R-1&&y[v]==="";return F}throw new Error("wtf?")};function k(y){return y.replace(/\\(.)/g,"$1")}function L(y){return y.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}}),(function(r,e,t){var n=t(123);r.exports=n(s),r.exports.strict=n(i),s.proto=s(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return s(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})});function s(o){var a=function(){return a.called?a.value:(a.called=!0,a.value=o.apply(this,arguments))};return a.called=!1,a}function i(o){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=o.apply(this,arguments)},u=o.name||"Function wrapped with `once`";return a.onceError=u+" shouldn't be called more than once",a.called=!1,a}}),,(function(r,e){r.exports=require("buffer")}),,,,(function(r,e){r.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}}),(function(r,e,t){var n=t(34),s=t(11).document,i=n(s)&&n(s.createElement);r.exports=function(o){return i?s.createElement(o):{}}}),(function(r,e){r.exports=!0}),(function(r,e,t){"use strict";var n=t(46);function s(i){var o,a;this.promise=new i(function(u,c){if(o!==void 0||a!==void 0)throw TypeError("Bad Promise constructor");o=u,a=c}),this.resolve=n(o),this.reject=n(a)}r.exports.f=function(i){return new s(i)}}),(function(r,e,t){var n=t(50).f,s=t(49),i=t(13)("toStringTag");r.exports=function(o,a,u){o&&!s(o=u?o:o.prototype,i)&&n(o,i,{configurable:!0,value:a})}}),(function(r,e,t){var n=t(107)("keys"),s=t(111);r.exports=function(i){return n[i]||(n[i]=s(i))}}),(function(r,e){var t=Math.ceil,n=Math.floor;r.exports=function(s){return isNaN(s=+s)?0:(s>0?n:t)(s)}}),(function(r,e,t){var n=t(131),s=t(67);r.exports=function(i){return n(s(i))}}),(function(r,e,t){r.exports=C;var n=t(3),s=t(114),i=t(60),o=i.Minimatch,a=t(42),u=t(54).EventEmitter,c=t(0),p=t(22),m=t(76),S=t(218),T=t(115),h=T.alphasort,b=T.alphasorti,$=T.setopts,D=T.ownProp,A=t(223),I=t(2),w=T.childrenIgnored,g=T.isIgnored,x=t(61);function C(l,d,f){if(typeof d=="function"&&(f=d,d={}),d||(d={}),d.sync){if(f)throw new TypeError("callback provided to sync glob");return S(l,d)}return new L(l,d,f)}C.sync=S;var O=C.GlobSync=S.GlobSync;C.glob=C;function k(l,d){if(d===null||typeof d!="object")return l;for(var f=Object.keys(d),v=f.length;v--;)l[f[v]]=d[f[v]];return l}C.hasMagic=function(l,d){var f=k({},d);f.noprocess=!0;var v=new L(l,f),E=v.minimatch.set;if(!l)return!1;if(E.length>1)return!0;for(var R=0;R<E[0].length;R++)if(typeof E[0][R]!="string")return!0;return!1},C.Glob=L,a(L,u);function L(l,d,f){if(typeof d=="function"&&(f=d,d=null),d&&d.sync){if(f)throw new TypeError("callback provided to sync glob");return new O(l,d)}if(!(this instanceof L))return new L(l,d,f);$(this,l,d),this._didRealPath=!1;var v=this.minimatch.set.length;this.matches=new Array(v),typeof f=="function"&&(f=x(f),this.on("error",f),this.on("end",function(M){f(null,M)}));var E=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(v===0)return P();for(var R=!0,N=0;N<v;N++)this._process(this.minimatch.set[N],N,!1,P);R=!1;function P(){--E._processing,E._processing<=0&&(R?process.nextTick(function(){E._finish()}):E._finish())}}L.prototype._finish=function(){if(p(this instanceof L),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();T.finish(this),this.emit("end",this.found)}},L.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var l=this.matches.length;if(l===0)return this._finish();for(var d=this,f=0;f<this.matches.length;f++)this._realpathSet(f,v);function v(){--l===0&&d._finish()}},L.prototype._realpathSet=function(l,d){var f=this.matches[l];if(!f)return d();var v=Object.keys(f),E=this,R=v.length;if(R===0)return d();var N=this.matches[l]=Object.create(null);v.forEach(function(P,M){P=E._makeAbs(P),s.realpath(P,E.realpathCache,function(B,z){B?B.syscall==="stat"?N[P]=!0:E.emit("error",B):N[z]=!0,--R===0&&(E.matches[l]=N,d())})})},L.prototype._mark=function(l){return T.mark(this,l)},L.prototype._makeAbs=function(l){return T.makeAbs(this,l)},L.prototype.abort=function(){this.aborted=!0,this.emit("abort")},L.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},L.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var l=this._emitQueue.slice(0);this._emitQueue.length=0;for(var d=0;d<l.length;d++){var f=l[d];this._emitMatch(f[0],f[1])}}if(this._processQueue.length){var v=this._processQueue.slice(0);this._processQueue.length=0;for(var d=0;d<v.length;d++){var E=v[d];this._processing--,this._process(E[0],E[1],E[2],E[3])}}}},L.prototype._process=function(l,d,f,v){if(p(this instanceof L),p(typeof v=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([l,d,f,v]);return}for(var E=0;typeof l[E]=="string";)E++;var R;switch(E){case l.length:this._processSimple(l.join("/"),d,v);return;case 0:R=null;break;default:R=l.slice(0,E).join("/");break}var N=l.slice(E),P;R===null?P=".":((m(R)||m(l.join("/")))&&(!R||!m(R))&&(R="/"+R),P=R);var M=this._makeAbs(P);if(w(this,P))return v();var B=N[0]===i.GLOBSTAR;B?this._processGlobStar(R,P,M,N,d,f,v):this._processReaddir(R,P,M,N,d,f,v)}},L.prototype._processReaddir=function(l,d,f,v,E,R,N){var P=this;this._readdir(f,R,function(M,B){return P._processReaddir2(l,d,f,v,E,R,B,N)})},L.prototype._processReaddir2=function(l,d,f,v,E,R,N,P){if(!N)return P();for(var M=v[0],B=!!this.minimatch.negate,z=M._glob,Z=this.dot||z.charAt(0)===".",H=[],F=0;F<N.length;F++){var X=N[F];if(X.charAt(0)!=="."||Z){var q;B&&!l?q=!X.match(M):q=X.match(M),q&&H.push(X)}}var Q=H.length;if(Q===0)return P();if(v.length===1&&!this.mark&&!this.stat){this.matches[E]||(this.matches[E]=Object.create(null));for(var F=0;F<Q;F++){var X=H[F];l&&(l!=="/"?X=l+"/"+X:X=l+X),X.charAt(0)==="/"&&!this.nomount&&(X=c.join(this.root,X)),this._emitMatch(E,X)}return P()}v.shift();for(var F=0;F<Q;F++){var X=H[F],_;l&&(l!=="/"?X=l+"/"+X:X=l+X),this._process([X].concat(v),E,R,P)}P()},L.prototype._emitMatch=function(l,d){if(!this.aborted&&!g(this,d)){if(this.paused){this._emitQueue.push([l,d]);return}var f=m(d)?d:this._makeAbs(d);if(this.mark&&(d=this._mark(d)),this.absolute&&(d=f),!this.matches[l][d]){if(this.nodir){var v=this.cache[f];if(v==="DIR"||Array.isArray(v))return}this.matches[l][d]=!0;var E=this.statCache[f];E&&this.emit("stat",d,E),this.emit("match",d)}}},L.prototype._readdirInGlobStar=function(l,d){if(this.aborted)return;if(this.follow)return this._readdir(l,!1,d);var f="lstat\0"+l,v=this,E=A(f,R);E&&n.lstat(l,E);function R(N,P){if(N&&N.code==="ENOENT")return d();var M=P&&P.isSymbolicLink();v.symlinks[l]=M,!M&&P&&!P.isDirectory()?(v.cache[l]="FILE",d()):v._readdir(l,!1,d)}},L.prototype._readdir=function(l,d,f){if(!this.aborted&&(f=A("readdir\0"+l+"\0"+d,f),!!f)){if(d&&!D(this.symlinks,l))return this._readdirInGlobStar(l,f);if(D(this.cache,l)){var v=this.cache[l];if(!v||v==="FILE")return f();if(Array.isArray(v))return f(null,v)}var E=this;n.readdir(l,y(this,l,f))}};function y(l,d,f){return function(v,E){v?l._readdirError(d,v,f):l._readdirEntries(d,E,f)}}L.prototype._readdirEntries=function(l,d,f){if(!this.aborted){if(!this.mark&&!this.stat)for(var v=0;v<d.length;v++){var E=d[v];l==="/"?E=l+E:E=l+"/"+E,this.cache[E]=!0}return this.cache[l]=d,f(null,d)}},L.prototype._readdirError=function(l,d,f){if(!this.aborted){switch(d.code){case"ENOTSUP":case"ENOTDIR":var v=this._makeAbs(l);if(this.cache[v]="FILE",v===this.cwdAbs){var E=new Error(d.code+" invalid cwd "+this.cwd);E.path=this.cwd,E.code=d.code,this.emit("error",E),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(l)]=!1;break;default:this.cache[this._makeAbs(l)]=!1,this.strict&&(this.emit("error",d),this.abort()),this.silent||console.error("glob error",d);break}return f()}},L.prototype._processGlobStar=function(l,d,f,v,E,R,N){var P=this;this._readdir(f,R,function(M,B){P._processGlobStar2(l,d,f,v,E,R,B,N)})},L.prototype._processGlobStar2=function(l,d,f,v,E,R,N,P){if(!N)return P();var M=v.slice(1),B=l?[l]:[],z=B.concat(M);this._process(z,E,!1,P);var Z=this.symlinks[f],H=N.length;if(Z&&R)return P();for(var F=0;F<H;F++){var X=N[F];if(!(X.charAt(0)==="."&&!this.dot)){var q=B.concat(N[F],M);this._process(q,E,!0,P);var Q=B.concat(N[F],v);this._process(Q,E,!0,P)}}P()},L.prototype._processSimple=function(l,d,f){var v=this;this._stat(l,function(E,R){v._processSimple2(l,d,E,R,f)})},L.prototype._processSimple2=function(l,d,f,v,E){if(this.matches[d]||(this.matches[d]=Object.create(null)),!v)return E();if(l&&m(l)&&!this.nomount){var R=/[\/\\]$/.test(l);l.charAt(0)==="/"?l=c.join(this.root,l):(l=c.resolve(this.root,l),R&&(l+="/"))}process.platform==="win32"&&(l=l.replace(/\\/g,"/")),this._emitMatch(d,l),E()},L.prototype._stat=function(l,d){var f=this._makeAbs(l),v=l.slice(-1)==="/";if(l.length>this.maxLength)return d();if(!this.stat&&D(this.cache,f)){var E=this.cache[f];if(Array.isArray(E)&&(E="DIR"),!v||E==="DIR")return d(null,E);if(v&&E==="FILE")return d()}var R,N=this.statCache[f];if(N!==void 0){if(N===!1)return d(null,N);var P=N.isDirectory()?"DIR":"FILE";return v&&P==="FILE"?d():d(null,P,N)}var M=this,B=A("stat\0"+f,z);B&&n.lstat(f,B);function z(Z,H){if(H&&H.isSymbolicLink())return n.stat(f,function(F,X){F?M._stat2(l,f,null,H,d):M._stat2(l,f,F,X,d)});M._stat2(l,f,Z,H,d)}},L.prototype._stat2=function(l,d,f,v,E){if(f&&(f.code==="ENOENT"||f.code==="ENOTDIR"))return this.statCache[d]=!1,E();var R=l.slice(-1)==="/";if(this.statCache[d]=v,d.slice(-1)==="/"&&v&&!v.isDirectory())return E(null,!1,v);var N=!0;return v&&(N=v.isDirectory()?"DIR":"FILE"),this.cache[d]=this.cache[d]||N,R&&N==="FILE"?E():E(null,N,v)}}),(function(r,e,t){"use strict";function n(i){return i.charAt(0)==="/"}function s(i){var o=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,a=o.exec(i),u=a[1]||"",c=!!(u&&u.charAt(1)!==":");return!!(a[2]||c)}r.exports=process.platform==="win32"?s:n,r.exports.posix=n,r.exports.win32=s}),,,(function(r,e){r.exports=require("tty")}),,(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(f,v="lockfile"){return f=(0,(a||u()).default)(f),y(f)?d(f,v):{type:"success",object:l(f,v)}};var n;function s(){return n=b(t(2))}var i;function o(){return i=b(t(7))}var a;function u(){return a=b(t(122))}var c;function p(){return c=t(6)}var m;function S(){return m=t(4)}var T;function h(){return T=b(t(20))}function b(f){return f&&f.__esModule?f:{default:f}}let $=/^yarn lockfile v(\d+)$/,D={boolean:"BOOLEAN",string:"STRING",identifier:"IDENTIFIER",eof:"EOF",colon:"COLON",newline:"NEWLINE",comment:"COMMENT",indent:"INDENT",invalid:"INVALID",number:"NUMBER",comma:"COMMA"},A=[D.boolean,D.string,D.number];function I(f){return A.indexOf(f.type)>=0}function*w(f){let v=!1,E=1,R=0;function N(P,M){return{line:E,col:R,type:P,value:M}}for(;f.length;){let P=0;if(f[0]===`
|
|
17
17
|
`||f[0]==="\r")P++,f[1]===`
|
|
@@ -26,7 +26,7 @@ ${h(O,{indent:A+" "})}`+(D.topLevel?`
|
|
|
26
26
|
`:""));else throw new TypeError;g=g.concat(k)}return A+I.join(`
|
|
27
27
|
${A}`)}function b($,D,A){let I=h($,{indent:"",topLevel:!0});if(D)return I;let w=[];return w.push("# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."),w.push(`# yarn lockfile v${(i||o()).LOCKFILE_VERSION}`),A&&(w.push(`# yarn v${(a||u()).version}`),w.push(`# node ${c}`)),w.push(`
|
|
28
28
|
`),w.push(I),w.join(`
|
|
29
|
-
`)}}),,,,,,,,,,,,,,(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fileDatesEqual=e.copyFile=e.unlink=void 0;var n;function s(){return n=p(t(1))}let i=(()=>{var C=(0,(n||s()).default)(function*(O,k,L){let y=O===void 0,l=O||-1;if(m===void 0){let d=yield h(k);m=x(d.mtime,L.mtime)}if(!m){if(y)try{l=yield b(k,"a",L.mode)}catch{try{l=yield b(k,"r",L.mode)}catch{return}}try{l&&(yield $(l,L.atime,L.mtime))}catch{}finally{y&&l&&(yield T(l))}}});return function(k,L,y){return C.apply(this,arguments)}})();var o;function a(){return o=p(t(3))}var u;function c(){return u=t(40)}function p(C){return C&&C.__esModule?C:{default:C}}let m,S=(0,(u||c()).promisify)((o||a()).default.readFile),T=(0,(u||c()).promisify)((o||a()).default.close),h=(0,(u||c()).promisify)((o||a()).default.lstat),b=(0,(u||c()).promisify)((o||a()).default.open),$=(0,(u||c()).promisify)((o||a()).default.futimes),D=(0,(u||c()).promisify)((o||a()).default.write),A=e.unlink=(0,(u||c()).promisify)(t(233)),I=e.copyFile=(()=>{var C=(0,(n||s()).default)(function*(O,k){try{yield A(O.dest),yield w(O.src,O.dest,0,O)}finally{k&&k()}});return function(k,L){return C.apply(this,arguments)}})(),w=(C,O,k,L)=>(o||a()).default.copyFile?new Promise((y,l)=>(o||a()).default.copyFile(C,O,k,d=>{d?l(d):i(void 0,O,L).then(()=>y()).catch(f=>l(f))})):g(C,O,k,L),g=(()=>{var C=(0,(n||s()).default)(function*(O,k,L,y){let l=yield b(k,"w",y.mode);try{let d=yield S(O);yield D(l,d,0,d.length),yield i(l,k,y)}finally{yield T(l)}});return function(k,L,y,l){return C.apply(this,arguments)}})(),x=e.fileDatesEqual=(C,O)=>{let k=C.getTime(),L=O.getTime();if(process.platform!=="win32")return k===L;if(Math.abs(k-L)<=1)return!0;let y=Math.floor(k/1e3),l=Math.floor(L/1e3);return k-y*1e3===0||L-l*1e3===0?y===l:k===L}}),,,,,(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isFakeRoot=s,e.isRootUser=i;function n(){return process.platform!=="win32"&&process.getuid?process.getuid():null}e.default=i(n())&&!s();function s(){return!!process.env.FAKEROOTKEY}function i(o){return o===0}}),,(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDataDir=a,e.getCacheDir=u,e.getConfigDir=c;let n=t(0),s=t(45).default,i=n.join(s,".config","yarn"),o=n.join(s,".cache","yarn");function a(){if(process.platform==="win32"){let m=p();return m==null?i:n.join(m,"Data")}else return process.env.XDG_DATA_HOME?n.join(process.env.XDG_DATA_HOME,"yarn"):i}function u(){return process.platform==="win32"?n.join(p()||n.join(s,"AppData","Local","Yarn"),"Cache"):process.env.XDG_CACHE_HOME?n.join(process.env.XDG_CACHE_HOME,"yarn"):process.platform==="darwin"?n.join(s,"Library","Caches","Yarn"):o}function c(){if(process.platform==="win32"){let m=p();return m==null?i:n.join(m,"Config")}else return process.env.XDG_CONFIG_HOME?n.join(process.env.XDG_CONFIG_HOME,"yarn"):i}function p(){return process.env.LOCALAPPDATA?n.join(process.env.LOCALAPPDATA,"Yarn"):null}}),,(function(r,e,t){r.exports={default:t(179),__esModule:!0}}),(function(r,e,t){"use strict";r.exports=n;function n(o,a,u){o instanceof RegExp&&(o=s(o,u)),a instanceof RegExp&&(a=s(a,u));var c=i(o,a,u);return c&&{start:c[0],end:c[1],pre:u.slice(0,c[0]),body:u.slice(c[0]+o.length,c[1]),post:u.slice(c[1]+a.length)}}function s(o,a){var u=a.match(o);return u?u[0]:null}n.range=i;function i(o,a,u){var c,p,m,S,T,h=u.indexOf(o),b=u.indexOf(a,h+1),$=h;if(h>=0&&b>0){for(c=[],m=u.length;$>=0&&!T;)$==h?(c.push($),h=u.indexOf(o,$+1)):c.length==1?T=[c.pop(),b]:(p=c.pop(),p<m&&(m=p,S=b),b=u.indexOf(a,$+1)),$=h<b&&h>=0?h:b;c.length&&(T=[m,S])}return T}}),(function(r,e,t){var n=t(178),s=t(174);r.exports=h;var i="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",u="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function p(g){return parseInt(g,10)==g?parseInt(g,10):g.charCodeAt(0)}function m(g){return g.split("\\\\").join(i).split("\\{").join(o).split("\\}").join(a).split("\\,").join(u).split("\\.").join(c)}function S(g){return g.split(i).join("\\").split(o).join("{").split(a).join("}").split(u).join(",").split(c).join(".")}function T(g){if(!g)return[""];var x=[],C=s("{","}",g);if(!C)return g.split(",");var O=C.pre,k=C.body,L=C.post,y=O.split(",");y[y.length-1]+="{"+k+"}";var l=T(L);return L.length&&(y[y.length-1]+=l.shift(),y.push.apply(y,l)),x.push.apply(x,y),x}function h(g){return g?(g.substr(0,2)==="{}"&&(g="\\{\\}"+g.substr(2)),w(m(g),!0).map(S)):[]}function b(g){return g}function $(g){return"{"+g+"}"}function D(g){return/^-?0\d/.test(g)}function A(g,x){return g<=x}function I(g,x){return g>=x}function w(g,x){var C=[],O=s("{","}",g);if(!O||/\$$/.test(O.pre))return[g];var k=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(O.body),L=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(O.body),y=k||L,l=O.body.indexOf(",")>=0;if(!y&&!l)return O.post.match(/,.*\}/)?(g=O.pre+"{"+O.body+a+O.post,w(g)):[g];var d;if(y)d=O.body.split(/\.\./);else if(d=T(O.body),d.length===1&&(d=w(d[0],!1).map($),d.length===1)){var v=O.post.length?w(O.post,!1):[""];return v.map(function(ke){return O.pre+d[0]+ke})}var f=O.pre,v=O.post.length?w(O.post,!1):[""],E;if(y){var R=p(d[0]),N=p(d[1]),P=Math.max(d[0].length,d[1].length),M=d.length==3?Math.abs(p(d[2])):1,B=A,z=N<R;z&&(M*=-1,B=I);var Z=d.some(D);E=[];for(var H=R;B(H,N);H+=M){var F;if(L)F=String.fromCharCode(H),F==="\\"&&(F="");else if(F=String(H),Z){var X=P-F.length;if(X>0){var q=new Array(X+1).join("0");H<0?F="-"+q+F.slice(1):F=q+F}}E.push(F)}}else E=n(d,function(ce){return w(ce,!1)});for(var Q=0;Q<E.length;Q++)for(var _=0;_<v.length;_++){var pe=f+E[Q]+v[_];(!x||y||pe)&&C.push(pe)}return C}}),(function(r,e,t){"use strict";function n(s){let i=!1,o=!1,a=!1;for(let u=0;u<s.length;u++){let c=s[u];i&&/[a-zA-Z]/.test(c)&&c.toUpperCase()===c?(s=s.substr(0,u)+"-"+s.substr(u),i=!1,a=o,o=!0,u++):o&&a&&/[a-zA-Z]/.test(c)&&c.toLowerCase()===c?(s=s.substr(0,u-1)+"-"+s.substr(u-1),a=o,o=!1,i=!0):(i=c.toLowerCase()===c,a=o,o=c.toUpperCase()===c)}return s}r.exports=function(s){return arguments.length>1?s=Array.from(arguments).map(o=>o.trim()).filter(o=>o.length).join("-"):s=s.trim(),s.length===0?"":s.length===1?s.toLowerCase():/^[a-z0-9]+$/.test(s)?s:(s!==s.toLowerCase()&&(s=n(s)),s.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(o,a)=>a.toUpperCase()))}}),,(function(r,e){r.exports=function(n,s){for(var i=[],o=0;o<n.length;o++){var a=s(n[o],o);t(a)?i.push.apply(i,a):i.push(a)}return i};var t=Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"}}),(function(r,e,t){t(205),t(207),t(210),t(206),t(208),t(209),r.exports=t(23).Promise}),(function(r,e){r.exports=function(){}}),(function(r,e){r.exports=function(t,n,s,i){if(!(t instanceof n)||i!==void 0&&i in t)throw TypeError(s+": incorrect invocation!");return t}}),(function(r,e,t){var n=t(74),s=t(110),i=t(200);r.exports=function(o){return function(a,u,c){var p=n(a),m=s(p.length),S=i(c,m),T;if(o&&u!=u){for(;m>S;)if(T=p[S++],T!=T)return!0}else for(;m>S;S++)if((o||S in p)&&p[S]===u)return o||S||0;return!o&&-1}}}),(function(r,m,t){var n=t(48),s=t(187),i=t(186),o=t(27),a=t(110),u=t(203),c={},p={},m=r.exports=function(S,T,h,b,$){var D=$?function(){return S}:u(S),A=n(h,b,T?2:1),I=0,w,g,x,C;if(typeof D!="function")throw TypeError(S+" is not iterable!");if(i(D)){for(w=a(S.length);w>I;I++)if(C=T?A(o(g=S[I])[0],g[1]):A(S[I]),C===c||C===p)return C}else for(x=D.call(S);!(g=x.next()).done;)if(C=s(x,A,g.value,T),C===c||C===p)return C};m.BREAK=c,m.RETURN=p}),(function(r,e,t){r.exports=!t(33)&&!t(85)(function(){return Object.defineProperty(t(68)("div"),"a",{get:function(){return 7}}).a!=7})}),(function(r,e){r.exports=function(t,n,s){var i=s===void 0;switch(n.length){case 0:return i?t():t.call(s);case 1:return i?t(n[0]):t.call(s,n[0]);case 2:return i?t(n[0],n[1]):t.call(s,n[0],n[1]);case 3:return i?t(n[0],n[1],n[2]):t.call(s,n[0],n[1],n[2]);case 4:return i?t(n[0],n[1],n[2],n[3]):t.call(s,n[0],n[1],n[2],n[3])}return t.apply(s,n)}}),(function(r,e,t){var n=t(35),s=t(13)("iterator"),i=Array.prototype;r.exports=function(o){return o!==void 0&&(n.Array===o||i[s]===o)}}),(function(r,e,t){var n=t(27);r.exports=function(s,i,o,a){try{return a?i(n(o)[0],o[1]):i(o)}catch(c){var u=s.return;throw u!==void 0&&n(u.call(s)),c}}}),(function(r,e,t){"use strict";var n=t(192),s=t(106),i=t(71),o={};t(31)(o,t(13)("iterator"),function(){return this}),r.exports=function(a,u,c){a.prototype=n(o,{next:s(1,c)}),i(a,u+" Iterator")}}),(function(r,e,t){var n=t(13)("iterator"),s=!1;try{var i=[7][n]();i.return=function(){s=!0},Array.from(i,function(){throw 2})}catch{}r.exports=function(o,a){if(!a&&!s)return!1;var u=!1;try{var c=[7],p=c[n]();p.next=function(){return{done:u=!0}},c[n]=function(){return p},o(c)}catch{}return u}}),(function(r,e){r.exports=function(t,n){return{value:n,done:!!t}}}),(function(r,e,t){var n=t(11),s=t(109).set,i=n.MutationObserver||n.WebKitMutationObserver,o=n.process,a=n.Promise,u=t(47)(o)=="process";r.exports=function(){var c,p,m,S=function(){var $,D;for(u&&($=o.domain)&&$.exit();c;){D=c.fn,c=c.next;try{D()}catch(A){throw c?m():p=void 0,A}}p=void 0,$&&$.enter()};if(u)m=function(){o.nextTick(S)};else if(i&&!(n.navigator&&n.navigator.standalone)){var T=!0,h=document.createTextNode("");new i(S).observe(h,{characterData:!0}),m=function(){h.data=T=!T}}else if(a&&a.resolve){var b=a.resolve(void 0);m=function(){b.then(S)}}else m=function(){s.call(n,S)};return function($){var D={fn:$,next:void 0};p&&(p.next=D),c||(c=D,m()),p=D}}}),(function(r,e,t){var n=t(27),s=t(193),i=t(101),o=t(72)("IE_PROTO"),a=function(){},u="prototype",c=function(){var p=t(68)("iframe"),m=i.length,S="<",T=">",h;for(p.style.display="none",t(102).appendChild(p),p.src="javascript:",h=p.contentWindow.document,h.open(),h.write(S+"script"+T+"document.F=Object"+S+"/script"+T),h.close(),c=h.F;m--;)delete c[u][i[m]];return c()};r.exports=Object.create||function(m,S){var T;return m!==null?(a[u]=n(m),T=new a,a[u]=null,T[o]=m):T=c(),S===void 0?T:s(T,S)}}),(function(r,e,t){var n=t(50),s=t(27),i=t(132);r.exports=t(33)?Object.defineProperties:function(a,u){s(a);for(var c=i(u),p=c.length,m=0,S;p>m;)n.f(a,S=c[m++],u[S]);return a}}),(function(r,e,t){var n=t(49),s=t(133),i=t(72)("IE_PROTO"),o=Object.prototype;r.exports=Object.getPrototypeOf||function(a){return a=s(a),n(a,i)?a[i]:typeof a.constructor=="function"&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?o:null}}),(function(r,e,t){var n=t(49),s=t(74),i=t(182)(!1),o=t(72)("IE_PROTO");r.exports=function(a,u){var c=s(a),p=0,m=[],S;for(S in c)S!=o&&n(c,S)&&m.push(S);for(;u.length>p;)n(c,S=u[p++])&&(~i(m,S)||m.push(S));return m}}),(function(r,e,t){var n=t(31);r.exports=function(s,i,o){for(var a in i)o&&s[a]?s[a]=i[a]:n(s,a,i[a]);return s}}),(function(r,e,t){r.exports=t(31)}),(function(r,e,t){"use strict";var n=t(11),s=t(23),i=t(50),o=t(33),a=t(13)("species");r.exports=function(u){var c=typeof s[u]=="function"?s[u]:n[u];o&&c&&!c[a]&&i.f(c,a,{configurable:!0,get:function(){return this}})}}),(function(r,e,t){var n=t(73),s=t(67);r.exports=function(i){return function(o,a){var u=String(s(o)),c=n(a),p=u.length,m,S;return c<0||c>=p?i?"":void 0:(m=u.charCodeAt(c),m<55296||m>56319||c+1===p||(S=u.charCodeAt(c+1))<56320||S>57343?i?u.charAt(c):m:i?u.slice(c,c+2):(m-55296<<10)+(S-56320)+65536)}}}),(function(r,e,t){var n=t(73),s=Math.max,i=Math.min;r.exports=function(o,a){return o=n(o),o<0?s(o+a,0):i(o,a)}}),(function(r,e,t){var n=t(34);r.exports=function(s,i){if(!n(s))return s;var o,a;if(i&&typeof(o=s.toString)=="function"&&!n(a=o.call(s))||typeof(o=s.valueOf)=="function"&&!n(a=o.call(s))||!i&&typeof(o=s.toString)=="function"&&!n(a=o.call(s)))return a;throw TypeError("Can't convert object to primitive value")}}),(function(r,e,t){var n=t(11),s=n.navigator;r.exports=s&&s.userAgent||""}),(function(r,e,t){var n=t(100),s=t(13)("iterator"),i=t(35);r.exports=t(23).getIteratorMethod=function(o){if(o!=null)return o[s]||o["@@iterator"]||i[n(o)]}}),(function(r,e,t){"use strict";var n=t(180),s=t(190),i=t(35),o=t(74);r.exports=t(103)(Array,"Array",function(a,u){this._t=o(a),this._i=0,this._k=u},function(){var a=this._t,u=this._k,c=this._i++;return!a||c>=a.length?(this._t=void 0,s(1)):u=="keys"?s(0,c):u=="values"?s(0,a[c]):s(0,[c,a[c]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")}),(function(r,e){}),(function(r,e,t){"use strict";var n=t(69),s=t(11),i=t(48),o=t(100),a=t(41),u=t(34),c=t(46),p=t(181),m=t(183),S=t(108),T=t(109).set,h=t(191)(),b=t(70),$=t(104),D=t(202),A=t(105),I="Promise",w=s.TypeError,g=s.process,x=g&&g.versions,C=x&&x.v8||"",O=s[I],k=o(g)=="process",L=function(){},y,l,d,f,v=l=b.f,E=!!(function(){try{var H=O.resolve(1),F=(H.constructor={})[t(13)("species")]=function(X){X(L,L)};return(k||typeof PromiseRejectionEvent=="function")&&H.then(L)instanceof F&&C.indexOf("6.6")!==0&&D.indexOf("Chrome/66")===-1}catch{}})(),R=function(H){var F;return u(H)&&typeof(F=H.then)=="function"?F:!1},N=function(H,F){if(!H._n){H._n=!0;var X=H._c;h(function(){for(var q=H._v,Q=H._s==1,_=0,pe=function(ce){var ke=Q?ce.ok:ce.fail,Ne=ce.resolve,ot=ce.reject,Re=ce.domain,Ae,Ce,at;try{ke?(Q||(H._h==2&&B(H),H._h=1),ke===!0?Ae=q:(Re&&Re.enter(),Ae=ke(q),Re&&(Re.exit(),at=!0)),Ae===ce.promise?ot(w("Promise-chain cycle")):(Ce=R(Ae))?Ce.call(Ae,Ne,ot):Ne(Ae)):ot(q)}catch(Oe){Re&&!at&&Re.exit(),ot(Oe)}};X.length>_;)pe(X[_++]);H._c=[],H._n=!1,F&&!H._h&&P(H)})}},P=function(H){T.call(s,function(){var F=H._v,X=M(H),q,Q,_;if(X&&(q=$(function(){k?g.emit("unhandledRejection",F,H):(Q=s.onunhandledrejection)?Q({promise:H,reason:F}):(_=s.console)&&_.error&&_.error("Unhandled promise rejection",F)}),H._h=k||M(H)?2:1),H._a=void 0,X&&q.e)throw q.v})},M=function(H){return H._h!==1&&(H._a||H._c).length===0},B=function(H){T.call(s,function(){var F;k?g.emit("rejectionHandled",H):(F=s.onrejectionhandled)&&F({promise:H,reason:H._v})})},z=function(H){var F=this;F._d||(F._d=!0,F=F._w||F,F._v=H,F._s=2,F._a||(F._a=F._c.slice()),N(F,!0))},Z=function(H){var F=this,X;if(!F._d){F._d=!0,F=F._w||F;try{if(F===H)throw w("Promise can't be resolved itself");(X=R(H))?h(function(){var q={_w:F,_d:!1};try{X.call(H,i(Z,q,1),i(z,q,1))}catch(Q){z.call(q,Q)}}):(F._v=H,F._s=1,N(F,!1))}catch(q){z.call({_w:F,_d:!1},q)}}};E||(O=function(F){p(this,O,I,"_h"),c(F),y.call(this);try{F(i(Z,this,1),i(z,this,1))}catch(X){z.call(this,X)}},y=function(F){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},y.prototype=t(196)(O.prototype,{then:function(F,X){var q=v(S(this,O));return q.ok=typeof F=="function"?F:!0,q.fail=typeof X=="function"&&X,q.domain=k?g.domain:void 0,this._c.push(q),this._a&&this._a.push(q),this._s&&N(this,!1),q.promise},catch:function(H){return this.then(void 0,H)}}),d=function(){var H=new y;this.promise=H,this.resolve=i(Z,H,1),this.reject=i(z,H,1)},b.f=v=function(H){return H===O||H===f?new d(H):l(H)}),a(a.G+a.W+a.F*!E,{Promise:O}),t(71)(O,I),t(198)(I),f=t(23)[I],a(a.S+a.F*!E,I,{reject:function(F){var X=v(this),q=X.reject;return q(F),X.promise}}),a(a.S+a.F*(n||!E),I,{resolve:function(F){return A(n&&this===f?O:this,F)}}),a(a.S+a.F*!(E&&t(189)(function(H){O.all(H).catch(L)})),I,{all:function(F){var X=this,q=v(X),Q=q.resolve,_=q.reject,pe=$(function(){var ce=[],ke=0,Ne=1;m(F,!1,function(ot){var Re=ke++,Ae=!1;ce.push(void 0),Ne++,X.resolve(ot).then(function(Ce){Ae||(Ae=!0,ce[Re]=Ce,--Ne||Q(ce))},_)}),--Ne||Q(ce)});return pe.e&&_(pe.v),q.promise},race:function(F){var X=this,q=v(X),Q=q.reject,_=$(function(){m(F,!1,function(pe){X.resolve(pe).then(q.resolve,Q)})});return _.e&&Q(_.v),q.promise}})}),(function(r,e,t){"use strict";var n=t(199)(!0);t(103)(String,"String",function(s){this._t=String(s),this._i=0},function(){var s=this._t,i=this._i,o;return i>=s.length?{value:void 0,done:!0}:(o=n(s,i),this._i+=o.length,{value:o,done:!1})})}),(function(r,e,t){"use strict";var n=t(41),s=t(23),i=t(11),o=t(108),a=t(105);n(n.P+n.R,"Promise",{finally:function(u){var c=o(this,s.Promise||i.Promise),p=typeof u=="function";return this.then(p?function(m){return a(c,u()).then(function(){return m})}:u,p?function(m){return a(c,u()).then(function(){throw m})}:u)}})}),(function(r,e,t){"use strict";var n=t(41),s=t(70),i=t(104);n(n.S,"Promise",{try:function(o){var a=s.f(this),u=i(o);return(u.e?a.reject:a.resolve)(u.v),a.promise}})}),(function(r,e,t){t(204);for(var n=t(11),s=t(31),i=t(35),o=t(13)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var c=a[u],p=n[c],m=p&&p.prototype;m&&!m[o]&&s(m,o,c),i[c]=i.Array}}),(function(r,e,t){e=r.exports=t(112),e.log=i,e.formatArgs=s,e.save=o,e.load=a,e.useColors=n,e.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:u(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}e.formatters.j=function(c){try{return JSON.stringify(c)}catch(p){return"[UnexpectedJSONParseError]: "+p.message}};function s(c){var p=this.useColors;if(c[0]=(p?"%c":"")+this.namespace+(p?" %c":" ")+c[0]+(p?"%c ":" ")+"+"+e.humanize(this.diff),!!p){var m="color: "+this.color;c.splice(1,0,m,"color: inherit");var S=0,T=0;c[0].replace(/%[a-zA-Z%]/g,function(h){h!=="%%"&&(S++,h==="%c"&&(T=S))}),c.splice(T,0,m)}}function i(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(c){try{c==null?e.storage.removeItem("debug"):e.storage.debug=c}catch{}}function a(){var c;try{c=e.storage.debug}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=process.env.DEBUG),c}e.enable(a());function u(){try{return window.localStorage}catch{}}}),(function(r,e,t){typeof process>"u"||process.type==="renderer"?r.exports=t(211):r.exports=t(213)}),(function(r,e,t){var n=t(79),s=t(2);e=r.exports=t(112),e.init=S,e.log=c,e.formatArgs=a,e.save=p,e.load=m,e.useColors=o,e.colors=[6,2,3,4,5,1];try{var i=t(239);i&&i.level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(process.env).filter(function(T){return/^debug_/i.test(T)}).reduce(function(T,h){var b=h.substring(6).toLowerCase().replace(/_([a-z])/g,function(D,A){return A.toUpperCase()}),$=process.env[h];return/^(yes|on|true|enabled)$/i.test($)?$=!0:/^(no|off|false|disabled)$/i.test($)?$=!1:$==="null"?$=null:$=Number($),T[b]=$,T},{});function o(){return"colors"in e.inspectOpts?!!e.inspectOpts.colors:n.isatty(process.stderr.fd)}e.formatters.o=function(T){return this.inspectOpts.colors=this.useColors,s.inspect(T,this.inspectOpts).split(`
|
|
29
|
+
`)}}),,,,,,,,,,,,,,(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fileDatesEqual=e.copyFile=e.unlink=void 0;var n;function s(){return n=p(t(1))}let i=(()=>{var C=(0,(n||s()).default)(function*(O,k,L){let y=O===void 0,l=O||-1;if(m===void 0){let d=yield h(k);m=x(d.mtime,L.mtime)}if(!m){if(y)try{l=yield b(k,"a",L.mode)}catch{try{l=yield b(k,"r",L.mode)}catch{return}}try{l&&(yield $(l,L.atime,L.mtime))}catch{}finally{y&&l&&(yield T(l))}}});return function(k,L,y){return C.apply(this,arguments)}})();var o;function a(){return o=p(t(3))}var u;function c(){return u=t(40)}function p(C){return C&&C.__esModule?C:{default:C}}let m,S=(0,(u||c()).promisify)((o||a()).default.readFile),T=(0,(u||c()).promisify)((o||a()).default.close),h=(0,(u||c()).promisify)((o||a()).default.lstat),b=(0,(u||c()).promisify)((o||a()).default.open),$=(0,(u||c()).promisify)((o||a()).default.futimes),D=(0,(u||c()).promisify)((o||a()).default.write),A=e.unlink=(0,(u||c()).promisify)(t(233)),I=e.copyFile=(()=>{var C=(0,(n||s()).default)(function*(O,k){try{yield A(O.dest),yield w(O.src,O.dest,0,O)}finally{k&&k()}});return function(k,L){return C.apply(this,arguments)}})(),w=(C,O,k,L)=>(o||a()).default.copyFile?new Promise((y,l)=>(o||a()).default.copyFile(C,O,k,d=>{d?l(d):i(void 0,O,L).then(()=>y()).catch(f=>l(f))})):g(C,O,k,L),g=(()=>{var C=(0,(n||s()).default)(function*(O,k,L,y){let l=yield b(k,"w",y.mode);try{let d=yield S(O);yield D(l,d,0,d.length),yield i(l,k,y)}finally{yield T(l)}});return function(k,L,y,l){return C.apply(this,arguments)}})(),x=e.fileDatesEqual=(C,O)=>{let k=C.getTime(),L=O.getTime();if(process.platform!=="win32")return k===L;if(Math.abs(k-L)<=1)return!0;let y=Math.floor(k/1e3),l=Math.floor(L/1e3);return k-y*1e3===0||L-l*1e3===0?y===l:k===L}}),,,,,(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isFakeRoot=s,e.isRootUser=i;function n(){return process.platform!=="win32"&&process.getuid?process.getuid():null}e.default=i(n())&&!s();function s(){return!!process.env.FAKEROOTKEY}function i(o){return o===0}}),,(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDataDir=a,e.getCacheDir=u,e.getConfigDir=c;let n=t(0),s=t(45).default,i=n.join(s,".config","yarn"),o=n.join(s,".cache","yarn");function a(){if(process.platform==="win32"){let m=p();return m==null?i:n.join(m,"Data")}else return process.env.XDG_DATA_HOME?n.join(process.env.XDG_DATA_HOME,"yarn"):i}function u(){return process.platform==="win32"?n.join(p()||n.join(s,"AppData","Local","Yarn"),"Cache"):process.env.XDG_CACHE_HOME?n.join(process.env.XDG_CACHE_HOME,"yarn"):process.platform==="darwin"?n.join(s,"Library","Caches","Yarn"):o}function c(){if(process.platform==="win32"){let m=p();return m==null?i:n.join(m,"Config")}else return process.env.XDG_CONFIG_HOME?n.join(process.env.XDG_CONFIG_HOME,"yarn"):i}function p(){return process.env.LOCALAPPDATA?n.join(process.env.LOCALAPPDATA,"Yarn"):null}}),,(function(r,e,t){r.exports={default:t(179),__esModule:!0}}),(function(r,e,t){"use strict";r.exports=n;function n(o,a,u){o instanceof RegExp&&(o=s(o,u)),a instanceof RegExp&&(a=s(a,u));var c=i(o,a,u);return c&&{start:c[0],end:c[1],pre:u.slice(0,c[0]),body:u.slice(c[0]+o.length,c[1]),post:u.slice(c[1]+a.length)}}function s(o,a){var u=a.match(o);return u?u[0]:null}n.range=i;function i(o,a,u){var c,p,m,S,T,h=u.indexOf(o),b=u.indexOf(a,h+1),$=h;if(h>=0&&b>0){for(c=[],m=u.length;$>=0&&!T;)$==h?(c.push($),h=u.indexOf(o,$+1)):c.length==1?T=[c.pop(),b]:(p=c.pop(),p<m&&(m=p,S=b),b=u.indexOf(a,$+1)),$=h<b&&h>=0?h:b;c.length&&(T=[m,S])}return T}}),(function(r,e,t){var n=t(178),s=t(174);r.exports=h;var i="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",u="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function p(g){return parseInt(g,10)==g?parseInt(g,10):g.charCodeAt(0)}function m(g){return g.split("\\\\").join(i).split("\\{").join(o).split("\\}").join(a).split("\\,").join(u).split("\\.").join(c)}function S(g){return g.split(i).join("\\").split(o).join("{").split(a).join("}").split(u).join(",").split(c).join(".")}function T(g){if(!g)return[""];var x=[],C=s("{","}",g);if(!C)return g.split(",");var O=C.pre,k=C.body,L=C.post,y=O.split(",");y[y.length-1]+="{"+k+"}";var l=T(L);return L.length&&(y[y.length-1]+=l.shift(),y.push.apply(y,l)),x.push.apply(x,y),x}function h(g){return g?(g.substr(0,2)==="{}"&&(g="\\{\\}"+g.substr(2)),w(m(g),!0).map(S)):[]}function b(g){return g}function $(g){return"{"+g+"}"}function D(g){return/^-?0\d/.test(g)}function A(g,x){return g<=x}function I(g,x){return g>=x}function w(g,x){var C=[],O=s("{","}",g);if(!O||/\$$/.test(O.pre))return[g];var k=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(O.body),L=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(O.body),y=k||L,l=O.body.indexOf(",")>=0;if(!y&&!l)return O.post.match(/,.*\}/)?(g=O.pre+"{"+O.body+a+O.post,w(g)):[g];var d;if(y)d=O.body.split(/\.\./);else if(d=T(O.body),d.length===1&&(d=w(d[0],!1).map($),d.length===1)){var v=O.post.length?w(O.post,!1):[""];return v.map(function(ke){return O.pre+d[0]+ke})}var f=O.pre,v=O.post.length?w(O.post,!1):[""],E;if(y){var R=p(d[0]),N=p(d[1]),P=Math.max(d[0].length,d[1].length),M=d.length==3?Math.abs(p(d[2])):1,B=A,z=N<R;z&&(M*=-1,B=I);var Z=d.some(D);E=[];for(var H=R;B(H,N);H+=M){var F;if(L)F=String.fromCharCode(H),F==="\\"&&(F="");else if(F=String(H),Z){var X=P-F.length;if(X>0){var q=new Array(X+1).join("0");H<0?F="-"+q+F.slice(1):F=q+F}}E.push(F)}}else E=n(d,function(ce){return w(ce,!1)});for(var Q=0;Q<E.length;Q++)for(var _=0;_<v.length;_++){var pe=f+E[Q]+v[_];(!x||y||pe)&&C.push(pe)}return C}}),(function(r,e,t){"use strict";function n(s){let i=!1,o=!1,a=!1;for(let u=0;u<s.length;u++){let c=s[u];i&&/[a-zA-Z]/.test(c)&&c.toUpperCase()===c?(s=s.substr(0,u)+"-"+s.substr(u),i=!1,a=o,o=!0,u++):o&&a&&/[a-zA-Z]/.test(c)&&c.toLowerCase()===c?(s=s.substr(0,u-1)+"-"+s.substr(u-1),a=o,o=!1,i=!0):(i=c.toLowerCase()===c,a=o,o=c.toUpperCase()===c)}return s}r.exports=function(s){return arguments.length>1?s=Array.from(arguments).map(o=>o.trim()).filter(o=>o.length).join("-"):s=s.trim(),s.length===0?"":s.length===1?s.toLowerCase():/^[a-z0-9]+$/.test(s)?s:(s!==s.toLowerCase()&&(s=n(s)),s.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(o,a)=>a.toUpperCase()))}}),,(function(r,e){r.exports=function(n,s){for(var i=[],o=0;o<n.length;o++){var a=s(n[o],o);t(a)?i.push.apply(i,a):i.push(a)}return i};var t=Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"}}),(function(r,e,t){t(205),t(207),t(210),t(206),t(208),t(209),r.exports=t(23).Promise}),(function(r,e){r.exports=function(){}}),(function(r,e){r.exports=function(t,n,s,i){if(!(t instanceof n)||i!==void 0&&i in t)throw TypeError(s+": incorrect invocation!");return t}}),(function(r,e,t){var n=t(74),s=t(110),i=t(200);r.exports=function(o){return function(a,u,c){var p=n(a),m=s(p.length),S=i(c,m),T;if(o&&u!=u){for(;m>S;)if(T=p[S++],T!=T)return!0}else for(;m>S;S++)if((o||S in p)&&p[S]===u)return o||S||0;return!o&&-1}}}),(function(r,m,t){var n=t(48),s=t(187),i=t(186),o=t(27),a=t(110),u=t(203),c={},p={},m=r.exports=function(S,T,h,b,$){var D=$?function(){return S}:u(S),A=n(h,b,T?2:1),I=0,w,g,x,C;if(typeof D!="function")throw TypeError(S+" is not iterable!");if(i(D)){for(w=a(S.length);w>I;I++)if(C=T?A(o(g=S[I])[0],g[1]):A(S[I]),C===c||C===p)return C}else for(x=D.call(S);!(g=x.next()).done;)if(C=s(x,A,g.value,T),C===c||C===p)return C};m.BREAK=c,m.RETURN=p}),(function(r,e,t){r.exports=!t(33)&&!t(85)(function(){return Object.defineProperty(t(68)("div"),"a",{get:function(){return 7}}).a!=7})}),(function(r,e){r.exports=function(t,n,s){var i=s===void 0;switch(n.length){case 0:return i?t():t.call(s);case 1:return i?t(n[0]):t.call(s,n[0]);case 2:return i?t(n[0],n[1]):t.call(s,n[0],n[1]);case 3:return i?t(n[0],n[1],n[2]):t.call(s,n[0],n[1],n[2]);case 4:return i?t(n[0],n[1],n[2],n[3]):t.call(s,n[0],n[1],n[2],n[3])}return t.apply(s,n)}}),(function(r,e,t){var n=t(35),s=t(13)("iterator"),i=Array.prototype;r.exports=function(o){return o!==void 0&&(n.Array===o||i[s]===o)}}),(function(r,e,t){var n=t(27);r.exports=function(s,i,o,a){try{return a?i(n(o)[0],o[1]):i(o)}catch(c){var u=s.return;throw u!==void 0&&n(u.call(s)),c}}}),(function(r,e,t){"use strict";var n=t(192),s=t(106),i=t(71),o={};t(31)(o,t(13)("iterator"),function(){return this}),r.exports=function(a,u,c){a.prototype=n(o,{next:s(1,c)}),i(a,u+" Iterator")}}),(function(r,e,t){var n=t(13)("iterator"),s=!1;try{var i=[7][n]();i.return=function(){s=!0},Array.from(i,function(){throw 2})}catch{}r.exports=function(o,a){if(!a&&!s)return!1;var u=!1;try{var c=[7],p=c[n]();p.next=function(){return{done:u=!0}},c[n]=function(){return p},o(c)}catch{}return u}}),(function(r,e){r.exports=function(t,n){return{value:n,done:!!t}}}),(function(r,e,t){var n=t(11),s=t(109).set,i=n.MutationObserver||n.WebKitMutationObserver,o=n.process,a=n.Promise,u=t(47)(o)=="process";r.exports=function(){var c,p,m,S=function(){var $,D;for(u&&($=o.domain)&&$.exit();c;){D=c.fn,c=c.next;try{D()}catch(A){throw c?m():p=void 0,A}}p=void 0,$&&$.enter()};if(u)m=function(){o.nextTick(S)};else if(i&&!(n.navigator&&n.navigator.standalone)){var T=!0,h=document.createTextNode("");new i(S).observe(h,{characterData:!0}),m=function(){h.data=T=!T}}else if(a&&a.resolve){var b=a.resolve(void 0);m=function(){b.then(S)}}else m=function(){s.call(n,S)};return function($){var D={fn:$,next:void 0};p&&(p.next=D),c||(c=D,m()),p=D}}}),(function(r,e,t){var n=t(27),s=t(193),i=t(101),o=t(72)("IE_PROTO"),a=function(){},u="prototype",c=function(){var p=t(68)("iframe"),m=i.length,S="<",T=">",h;for(p.style.display="none",t(102).appendChild(p),p.src="javascript:",h=p.contentWindow.document,h.open(),h.write(S+"script"+T+"document.F=Object"+S+"/script"+T),h.close(),c=h.F;m--;)delete c[u][i[m]];return c()};r.exports=Object.create||function(m,S){var T;return m!==null?(a[u]=n(m),T=new a,a[u]=null,T[o]=m):T=c(),S===void 0?T:s(T,S)}}),(function(r,e,t){var n=t(50),s=t(27),i=t(132);r.exports=t(33)?Object.defineProperties:function(a,u){s(a);for(var c=i(u),p=c.length,m=0,S;p>m;)n.f(a,S=c[m++],u[S]);return a}}),(function(r,e,t){var n=t(49),s=t(133),i=t(72)("IE_PROTO"),o=Object.prototype;r.exports=Object.getPrototypeOf||function(a){return a=s(a),n(a,i)?a[i]:typeof a.constructor=="function"&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?o:null}}),(function(r,e,t){var n=t(49),s=t(74),i=t(182)(!1),o=t(72)("IE_PROTO");r.exports=function(a,u){var c=s(a),p=0,m=[],S;for(S in c)S!=o&&n(c,S)&&m.push(S);for(;u.length>p;)n(c,S=u[p++])&&(~i(m,S)||m.push(S));return m}}),(function(r,e,t){var n=t(31);r.exports=function(s,i,o){for(var a in i)o&&s[a]?s[a]=i[a]:n(s,a,i[a]);return s}}),(function(r,e,t){r.exports=t(31)}),(function(r,e,t){"use strict";var n=t(11),s=t(23),i=t(50),o=t(33),a=t(13)("species");r.exports=function(u){var c=typeof s[u]=="function"?s[u]:n[u];o&&c&&!c[a]&&i.f(c,a,{configurable:!0,get:function(){return this}})}}),(function(r,e,t){var n=t(73),s=t(67);r.exports=function(i){return function(o,a){var u=String(s(o)),c=n(a),p=u.length,m,S;return c<0||c>=p?i?"":void 0:(m=u.charCodeAt(c),m<55296||m>56319||c+1===p||(S=u.charCodeAt(c+1))<56320||S>57343?i?u.charAt(c):m:i?u.slice(c,c+2):(m-55296<<10)+(S-56320)+65536)}}}),(function(r,e,t){var n=t(73),s=Math.max,i=Math.min;r.exports=function(o,a){return o=n(o),o<0?s(o+a,0):i(o,a)}}),(function(r,e,t){var n=t(34);r.exports=function(s,i){if(!n(s))return s;var o,a;if(i&&typeof(o=s.toString)=="function"&&!n(a=o.call(s))||typeof(o=s.valueOf)=="function"&&!n(a=o.call(s))||!i&&typeof(o=s.toString)=="function"&&!n(a=o.call(s)))return a;throw TypeError("Can't convert object to primitive value")}}),(function(r,e,t){var n=t(11),s=n.navigator;r.exports=s&&s.userAgent||""}),(function(r,e,t){var n=t(100),s=t(13)("iterator"),i=t(35);r.exports=t(23).getIteratorMethod=function(o){if(o!=null)return o[s]||o["@@iterator"]||i[n(o)]}}),(function(r,e,t){"use strict";var n=t(180),s=t(190),i=t(35),o=t(74);r.exports=t(103)(Array,"Array",function(a,u){this._t=o(a),this._i=0,this._k=u},function(){var a=this._t,u=this._k,c=this._i++;return!a||c>=a.length?(this._t=void 0,s(1)):u=="keys"?s(0,c):u=="values"?s(0,a[c]):s(0,[c,a[c]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")}),(function(r,e){}),(function(r,e,t){"use strict";var n=t(69),s=t(11),i=t(48),o=t(100),a=t(41),u=t(34),c=t(46),p=t(181),m=t(183),S=t(108),T=t(109).set,h=t(191)(),b=t(70),$=t(104),D=t(202),A=t(105),I="Promise",w=s.TypeError,g=s.process,x=g&&g.versions,C=x&&x.v8||"",O=s[I],k=o(g)=="process",L=function(){},y,l,d,f,v=l=b.f,E=!!(function(){try{var H=O.resolve(1),F=(H.constructor={})[t(13)("species")]=function(X){X(L,L)};return(k||typeof PromiseRejectionEvent=="function")&&H.then(L)instanceof F&&C.indexOf("6.6")!==0&&D.indexOf("Chrome/66")===-1}catch{}})(),R=function(H){var F;return u(H)&&typeof(F=H.then)=="function"?F:!1},N=function(H,F){if(!H._n){H._n=!0;var X=H._c;h(function(){for(var q=H._v,Q=H._s==1,_=0,pe=function(ce){var ke=Q?ce.ok:ce.fail,Ne=ce.resolve,at=ce.reject,Re=ce.domain,Ae,Ce,lt;try{ke?(Q||(H._h==2&&B(H),H._h=1),ke===!0?Ae=q:(Re&&Re.enter(),Ae=ke(q),Re&&(Re.exit(),lt=!0)),Ae===ce.promise?at(w("Promise-chain cycle")):(Ce=R(Ae))?Ce.call(Ae,Ne,at):Ne(Ae)):at(q)}catch(Oe){Re&&!lt&&Re.exit(),at(Oe)}};X.length>_;)pe(X[_++]);H._c=[],H._n=!1,F&&!H._h&&P(H)})}},P=function(H){T.call(s,function(){var F=H._v,X=M(H),q,Q,_;if(X&&(q=$(function(){k?g.emit("unhandledRejection",F,H):(Q=s.onunhandledrejection)?Q({promise:H,reason:F}):(_=s.console)&&_.error&&_.error("Unhandled promise rejection",F)}),H._h=k||M(H)?2:1),H._a=void 0,X&&q.e)throw q.v})},M=function(H){return H._h!==1&&(H._a||H._c).length===0},B=function(H){T.call(s,function(){var F;k?g.emit("rejectionHandled",H):(F=s.onrejectionhandled)&&F({promise:H,reason:H._v})})},z=function(H){var F=this;F._d||(F._d=!0,F=F._w||F,F._v=H,F._s=2,F._a||(F._a=F._c.slice()),N(F,!0))},Z=function(H){var F=this,X;if(!F._d){F._d=!0,F=F._w||F;try{if(F===H)throw w("Promise can't be resolved itself");(X=R(H))?h(function(){var q={_w:F,_d:!1};try{X.call(H,i(Z,q,1),i(z,q,1))}catch(Q){z.call(q,Q)}}):(F._v=H,F._s=1,N(F,!1))}catch(q){z.call({_w:F,_d:!1},q)}}};E||(O=function(F){p(this,O,I,"_h"),c(F),y.call(this);try{F(i(Z,this,1),i(z,this,1))}catch(X){z.call(this,X)}},y=function(F){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},y.prototype=t(196)(O.prototype,{then:function(F,X){var q=v(S(this,O));return q.ok=typeof F=="function"?F:!0,q.fail=typeof X=="function"&&X,q.domain=k?g.domain:void 0,this._c.push(q),this._a&&this._a.push(q),this._s&&N(this,!1),q.promise},catch:function(H){return this.then(void 0,H)}}),d=function(){var H=new y;this.promise=H,this.resolve=i(Z,H,1),this.reject=i(z,H,1)},b.f=v=function(H){return H===O||H===f?new d(H):l(H)}),a(a.G+a.W+a.F*!E,{Promise:O}),t(71)(O,I),t(198)(I),f=t(23)[I],a(a.S+a.F*!E,I,{reject:function(F){var X=v(this),q=X.reject;return q(F),X.promise}}),a(a.S+a.F*(n||!E),I,{resolve:function(F){return A(n&&this===f?O:this,F)}}),a(a.S+a.F*!(E&&t(189)(function(H){O.all(H).catch(L)})),I,{all:function(F){var X=this,q=v(X),Q=q.resolve,_=q.reject,pe=$(function(){var ce=[],ke=0,Ne=1;m(F,!1,function(at){var Re=ke++,Ae=!1;ce.push(void 0),Ne++,X.resolve(at).then(function(Ce){Ae||(Ae=!0,ce[Re]=Ce,--Ne||Q(ce))},_)}),--Ne||Q(ce)});return pe.e&&_(pe.v),q.promise},race:function(F){var X=this,q=v(X),Q=q.reject,_=$(function(){m(F,!1,function(pe){X.resolve(pe).then(q.resolve,Q)})});return _.e&&Q(_.v),q.promise}})}),(function(r,e,t){"use strict";var n=t(199)(!0);t(103)(String,"String",function(s){this._t=String(s),this._i=0},function(){var s=this._t,i=this._i,o;return i>=s.length?{value:void 0,done:!0}:(o=n(s,i),this._i+=o.length,{value:o,done:!1})})}),(function(r,e,t){"use strict";var n=t(41),s=t(23),i=t(11),o=t(108),a=t(105);n(n.P+n.R,"Promise",{finally:function(u){var c=o(this,s.Promise||i.Promise),p=typeof u=="function";return this.then(p?function(m){return a(c,u()).then(function(){return m})}:u,p?function(m){return a(c,u()).then(function(){throw m})}:u)}})}),(function(r,e,t){"use strict";var n=t(41),s=t(70),i=t(104);n(n.S,"Promise",{try:function(o){var a=s.f(this),u=i(o);return(u.e?a.reject:a.resolve)(u.v),a.promise}})}),(function(r,e,t){t(204);for(var n=t(11),s=t(31),i=t(35),o=t(13)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var c=a[u],p=n[c],m=p&&p.prototype;m&&!m[o]&&s(m,o,c),i[c]=i.Array}}),(function(r,e,t){e=r.exports=t(112),e.log=i,e.formatArgs=s,e.save=o,e.load=a,e.useColors=n,e.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:u(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}e.formatters.j=function(c){try{return JSON.stringify(c)}catch(p){return"[UnexpectedJSONParseError]: "+p.message}};function s(c){var p=this.useColors;if(c[0]=(p?"%c":"")+this.namespace+(p?" %c":" ")+c[0]+(p?"%c ":" ")+"+"+e.humanize(this.diff),!!p){var m="color: "+this.color;c.splice(1,0,m,"color: inherit");var S=0,T=0;c[0].replace(/%[a-zA-Z%]/g,function(h){h!=="%%"&&(S++,h==="%c"&&(T=S))}),c.splice(T,0,m)}}function i(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(c){try{c==null?e.storage.removeItem("debug"):e.storage.debug=c}catch{}}function a(){var c;try{c=e.storage.debug}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=process.env.DEBUG),c}e.enable(a());function u(){try{return window.localStorage}catch{}}}),(function(r,e,t){typeof process>"u"||process.type==="renderer"?r.exports=t(211):r.exports=t(213)}),(function(r,e,t){var n=t(79),s=t(2);e=r.exports=t(112),e.init=S,e.log=c,e.formatArgs=a,e.save=p,e.load=m,e.useColors=o,e.colors=[6,2,3,4,5,1];try{var i=t(239);i&&i.level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(process.env).filter(function(T){return/^debug_/i.test(T)}).reduce(function(T,h){var b=h.substring(6).toLowerCase().replace(/_([a-z])/g,function(D,A){return A.toUpperCase()}),$=process.env[h];return/^(yes|on|true|enabled)$/i.test($)?$=!0:/^(no|off|false|disabled)$/i.test($)?$=!1:$==="null"?$=null:$=Number($),T[b]=$,T},{});function o(){return"colors"in e.inspectOpts?!!e.inspectOpts.colors:n.isatty(process.stderr.fd)}e.formatters.o=function(T){return this.inspectOpts.colors=this.useColors,s.inspect(T,this.inspectOpts).split(`
|
|
30
30
|
`).map(function(h){return h.trim()}).join(" ")},e.formatters.O=function(T){return this.inspectOpts.colors=this.useColors,s.inspect(T,this.inspectOpts)};function a(T){var h=this.namespace,b=this.useColors;if(b){var $=this.color,D="\x1B[3"+($<8?$:"8;5;"+$),A=" "+D+";1m"+h+" \x1B[0m";T[0]=A+T[0].split(`
|
|
31
31
|
`).join(`
|
|
32
32
|
`+A),T.push(D+"m+"+e.humanize(this.diff)+"\x1B[0m")}else T[0]=u()+h+" "+T[0]}function u(){return e.inspectOpts.hideDate?"":new Date().toISOString()+" "}function c(){return process.stderr.write(s.format.apply(s,arguments)+`
|
|
@@ -47,9 +47,9 @@ See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof w))re
|
|
|
47
47
|
`))}I("D",[`${l} ${d}`])}else{let M=yt([P],r.getColumns());u(M),console.log(M.join(`
|
|
48
48
|
`)),I("I",[`${l} ${d}`]),N&&N.push(`${l} ${d}`)}E&&console.log("")},A=(l,d=!1,f)=>{let v=Date.now(),E=()=>Date.now()-v,R={duration:E,finish:(N,P,M,B)=>{let z=E(),Z;return z>1e3?Z="in "+(z/1e3).toFixed(2)+" s":parseFloat(z.toFixed(3))>0?Z="in "+z+" ms":Z="in less than 1 ms",D(N,Z,P,!!M,!!B,d,f),z}};return b(l,d,f),R},I=(l,d)=>{if(t){let f=new Date,v=""+("0"+f.getHours()).slice(-2)+":"+("0"+f.getMinutes()).slice(-2)+":"+("0"+f.getSeconds()).slice(-2)+"."+("0"+Math.floor(f.getMilliseconds()/1e3*10))+" "+("000"+(r.memoryUsage()/1e6).toFixed(1)).slice(-6)+"MB "+l+" "+d.join(", ");n.push(v)}},w=l=>{if(t)try{I("F",["--------------------------------------"]),r.writeLogs(t,n.join(`
|
|
49
49
|
`),l)}catch{}n.length=0},g=l=>{ee.default.enabled=l},x=(l,d)=>{if(!l||l.length===0)return;let f=[""];l.forEach(v=>{f=f.concat(C(v,d))}),console.log(f.join(`
|
|
50
|
-
`))},C=(l,d)=>{let f=yt([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&&f.unshift(Tt+v),f.push(""),l.lines&&l.lines.length&&(Do(l.lines).forEach(N=>{if(!wo(N.text))return;let P="";for(N.lineNumber>-1&&(P=`L${N.lineNumber}: `);P.length<Tt.length;)P=" "+P;let M=N.text;N.errorCharStart>-1&&(M=O(M,N.errorCharStart,N.errorLength)),P=(0,ee.dim)(P),l.language==="typescript"||l.language==="javascript"?P+=k(M):l.language==="scss"||l.language==="css"?P+=L(M):P+=M,f.push(P)}),f.push("")),l.level==="error"?S(f):l.level==="warn"?p(f):l.level==="debug"?h(f):u(f),l.debugText!=null&&e==="debug"&&(f.push(l.debugText),h(yt([l.debugText],r.getColumns()))),f},O=(l,d,f=0)=>{let v=l.length-d+f-1;for(;l.length+Tt.length>r.getColumns();)if(d>l.length-d+f&&d>5)l=l.slice(1),d--;else if(v>1)l=l.slice(0,-1),v--;else break;let E=[],R=Math.max(l.length,d+f);for(let N=0;N<R;N++){let P=l.charAt(N);N>=d&&N<d+f&&(P=(0,ee.bgRed)(P===""?" ":P)),E.push(P)}return E.join("")},k=l=>l.trim().startsWith("//")?(0,ee.dim)(l):l.split(" ").map(f=>Po.indexOf(f)>-1?(0,ee.cyan)(f):f).join(" "),L=l=>{let d=!0,f="abcdefghijklmnopqrstuvwxyz-_",v=".#,:}@$[]/*",E=[];for(let R=0;R<l.length;R++){let N=l.charAt(R);if(N===";"||N==="{"?d=!0:v.indexOf(N)>-1&&(d=!1),d&&f.indexOf(N.toLowerCase())>-1){E.push((0,ee.cyan)(N));continue}E.push(N)}return E.join("")};return{createLineUpdater:r.createLineUpdater,createTimeSpan:A,debug:T,emoji:r.emoji,enableColors:g,error:m,getLevel:i,info:a,printDiagnostics:x,setLevel:s,setLogFilePath:o,warn:c,writeLogs:w,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}},qt=(r,e)=>_n.indexOf(e)>=_n.indexOf(r),Jr=()=>{let r=new Date,e=Vr(r.getMinutes()),t=Vr(r.getSeconds()),n=Math.floor(r.getMilliseconds()/1e3*10);return`[${e}:${t}.${n}]`},Vr=r=>("0"+r.toString()).slice(-2),yt=(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=Tt;return n.forEach(i=>{t.length>25||(typeof i=="function"?(s.trim().length&&t.push(s),t.push(i()),s=Tt):Tt.length+i.length>e-1?(s.trim().length&&t.push(s),t.push(Tt+i),s=Tt):i.length+s.length>e-1?(t.push(s),s=Tt+i+" "):s+=i+" ")}),s.trim().length&&t.push(s),t.map(i=>i.trimRight())},Do=r=>{let t=JSON.parse(JSON.stringify(r));for(let n=0;n<100;n++){if(!No(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},No=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},wo=r=>r?(r=r.trim(),r.length>0):!1,Po=["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"],Tt=" ";var Qr=()=>{let r=ko();return Kr(r)};function ko(){return{cwd:()=>process.cwd(),emoji:a=>process.platform!=="win32"?a:"",getColumns:()=>{var m,S;let p=(S=(m=process==null?void 0:process.stdout)==null?void 0:m.columns)!=null?S:80;return Math.max(Math.min(p,120),60)},memoryUsage:()=>process.memoryUsage().rss,relativePath:(a,u)=>Yr.default.relative(a,u),writeLogs:(a,u,c)=>{if(c)try{Ln.default.accessSync(a)}catch{c=!1}c?Ln.default.appendFileSync(a,u):Ln.default.writeFileSync(a,u)},createLineUpdater:async()=>{let a=await import("readline"),u=Promise.resolve(),c=m=>(m=m.substring(0,process.stdout.columns-5)+"\x1B[0m",u=u.then(()=>new Promise(S=>{a.clearLine(process.stdout,0),a.cursorTo(process.stdout,0,void 0),process.stdout.write(m,S)}))),p=()=>c("\x1B[?25h");return process.stdout.write("\x1B[?25l"),{update:c,stop:p}}}}var qr=()=>{};var er=r=>r.flat?r.flat(1):r.reduce((e,t)=>(e.push(...t),e),[]);var _r=r=>typeof r=="function";var jt=r=>typeof r=="string";var tr=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 un=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 nr=(r,e,t)=>{let n={level:"error",type:"build",header:"Build Error",messageText:"build error",lines:[]};return jt(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&&!rr(n.messageText)&&r.push(n),n};var rr=r=>r===Ut,Ut="task canceled";var ye=(r,e=!0)=>{if(typeof r!="string")throw new Error("invalid path to normalize");r=Uo(r.trim());let t=Ko(r,Go(r)),n=Xo(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},Uo=r=>r.replace(Wo,"/"),zo="\\",es="://",Wo=/\\/g,Xo=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},Go=r=>{let e=Jo(r);return e<0?~e:e},Jo=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?"/":zo,2);return n<0?r.length:n+1}if(ts(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(es);if(t!==-1){let n=t+es.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")&&ts(r.charCodeAt(s+1))){let a=Vo(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},ts=r=>r>=97&&r<=122||r>=65&&r<=90,Vo=(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},Ko=(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 Ts=be(hs(),1);var fn=r=>{if(typeof r!="string")throw new TypeError("invalid pattern");if(r.length>65536)throw new TypeError("pattern is too long")};var na={"[: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]},pn=r=>r.replace(/[[\]\\-]/g,"\\$&"),ra=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),ms=r=>r.join(""),gs=(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,p=t,m="";e:for(;i<r.length;){let b=r.charAt(i);if((b==="!"||b==="^")&&i===t+1){c=!0,i++;continue}if(b==="]"&&o&&!u){p=i+1;break}if(o=!0,b==="\\"&&!u){u=!0,i++;continue}if(b==="["&&!u){for(let[$,[D,A,I]]of Object.entries(na))if(r.startsWith($,i)){if(m)return["$.",!1,r.length-t,!0];i+=$.length,I?s.push(D):n.push(D),a=a||A;continue e}}if(u=!1,m){b>m?n.push(pn(m)+"-"+pn(b)):b===m&&n.push(pn(b)),m="",i++;continue}if(r.startsWith("-]",i+1)){n.push(pn(b+"-")),i+=2;continue}if(r.startsWith("-",i+1)){m=b,i+=2;continue}n.push(pn(b)),i++}if(p<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 b=n[0].length===2?n[0].slice(-1):n[0];return[ra(b),!1,p-t,!1]}let S="["+(c?"^":"")+ms(n)+"]",T="["+(c?"":"^")+ms(s)+"]";return[n.length&&s.length?"("+S+"|"+T+")":n.length?S:T,a,p-t,!0]};var ht=(r,{windowsPathsNoEscape:e=!1}={})=>e?r.replace(/\[([^\/\\])\]/g,"$1"):r.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var sa=new Set(["!","?","+","*","@"]),ys=r=>sa.has(r),ia="(?!(?:^|/)\\.\\.?(?:$|/))",An="(?!\\.)",oa=new Set(["[","."]),aa=new Set(["..","."]),la=new Set("().*{}+?[]^$\\!"),ca=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),ar="[^/]",vs=ar+"*?",bs=ar+"+?",Le,De,Ct,Ee,Te,Pt,zt,kt,vt,Wt,hn,Xt,Es,It,On,or,Ss,We=class We{constructor(e,t,n={}){ze(this,Xt);Yn(this,"type");ze(this,Le);ze(this,De);ze(this,Ct,!1);ze(this,Ee,[]);ze(this,Te);ze(this,Pt);ze(this,zt);ze(this,kt,!1);ze(this,vt);ze(this,Wt);ze(this,hn,!1);this.type=e,e&&Se(this,De,!0),Se(this,Te,t),Se(this,Le,W(this,Te)?W(W(this,Te),Le):this),Se(this,vt,W(this,Le)===this?n:W(W(this,Le),vt)),Se(this,zt,W(this,Le)===this?[]:W(W(this,Le),zt)),e==="!"&&!W(W(this,Le),kt)&&W(this,zt).push(this),Se(this,Pt,W(this,Te)?W(W(this,Te),Ee).length:0)}get hasMagic(){if(W(this,De)!==void 0)return W(this,De);for(let e of W(this,Ee))if(typeof e!="string"&&(e.type||e.hasMagic))return Se(this,De,!0);return W(this,De)}toString(){return W(this,Wt)!==void 0?W(this,Wt):this.type?Se(this,Wt,this.type+"("+W(this,Ee).map(e=>String(e)).join("|")+")"):Se(this,Wt,W(this,Ee).map(e=>String(e)).join(""))}push(...e){for(let t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof We&&W(t,Te)===this))throw new Error("invalid part: "+t);W(this,Ee).push(t)}}toJSON(){var t;let e=this.type===null?W(this,Ee).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...W(this,Ee).map(n=>n.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===W(this,Le)||W(W(this,Le),kt)&&((t=W(this,Te))==null?void 0:t.type)==="!")&&e.push({}),e}isStart(){var t;if(W(this,Le)===this)return!0;if(!((t=W(this,Te))!=null&&t.isStart()))return!1;if(W(this,Pt)===0)return!0;let e=W(this,Te);for(let n=0;n<W(this,Pt);n++){let s=W(e,Ee)[n];if(!(s instanceof We&&s.type==="!"))return!1}return!0}isEnd(){var t,n,s;if(W(this,Le)===this||((t=W(this,Te))==null?void 0:t.type)==="!")return!0;if(!((n=W(this,Te))!=null&&n.isEnd()))return!1;if(!this.type)return(s=W(this,Te))==null?void 0:s.isEnd();let e=W(this,Te)?W(W(this,Te),Ee).length:0;return W(this,Pt)===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let t=new We(this.type,e);for(let n of W(this,Ee))t.copyIn(n);return t}static fromGlob(e,t={}){var s;let n=new We(null,void 0,t);return wt(s=We,It,On).call(s,e,n,0,t),n}toMMPattern(){if(this!==W(this,Le))return W(this,Le).toMMPattern();let e=this.toString(),[t,n,s,i]=this.toRegExpSource();if(!(s||W(this,De)||W(this,vt).nocase&&!W(this,vt).nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(W(this,vt).nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return W(this,vt)}toRegExpSource(e){var u;let t=e!=null?e:!!W(this,vt).dot;if(W(this,Le)===this&&wt(this,Xt,Es).call(this),!this.type){let c=this.isStart()&&this.isEnd(),p=W(this,Ee).map(h=>{var I;let[b,$,D,A]=typeof h=="string"?wt(I=We,It,Ss).call(I,h,W(this,De),c):h.toRegExpSource(e);return Se(this,De,W(this,De)||D),Se(this,Ct,W(this,Ct)||A),b}).join(""),m="";if(this.isStart()&&typeof W(this,Ee)[0]=="string"&&!(W(this,Ee).length===1&&aa.has(W(this,Ee)[0]))){let b=oa,$=t&&b.has(p.charAt(0))||p.startsWith("\\.")&&b.has(p.charAt(2))||p.startsWith("\\.\\.")&&b.has(p.charAt(4)),D=!t&&!e&&b.has(p.charAt(0));m=$?ia:D?An:""}let S="";return this.isEnd()&&W(W(this,Le),kt)&&((u=W(this,Te))==null?void 0:u.type)==="!"&&(S="(?:$|\\/)"),[m+p+S,ht(p),Se(this,De,!!W(this,De)),W(this,Ct)]}let n=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:",i=wt(this,Xt,or).call(this,t);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){let c=this.toString();return Se(this,Ee,[c]),this.type=null,Se(this,De,void 0),[c,ht(this.toString()),!1,!1]}let o=!n||e||t||!An?"":wt(this,Xt,or).call(this,!0);o===i&&(o=""),o&&(i=`(?:${i})(?:${o})*?`);let a="";if(this.type==="!"&&W(this,hn))a=(this.isStart()&&!t?An:"")+bs;else{let c=this.type==="!"?"))"+(this.isStart()&&!t&&!e?An:"")+vs+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=s+i+c}return[a,ht(i),Se(this,De,!!W(this,De)),W(this,Ct)]}};Le=new WeakMap,De=new WeakMap,Ct=new WeakMap,Ee=new WeakMap,Te=new WeakMap,Pt=new WeakMap,zt=new WeakMap,kt=new WeakMap,vt=new WeakMap,Wt=new WeakMap,hn=new WeakMap,Xt=new WeakSet,Es=function(){if(this!==W(this,Le))throw new Error("should only call on root");if(W(this,kt))return this;this.toString(),Se(this,kt,!0);let e;for(;e=W(this,zt).pop();){if(e.type!=="!")continue;let t=e,n=W(t,Te);for(;n;){for(let s=W(t,Pt)+1;!n.type&&s<W(n,Ee).length;s++)for(let i of W(e,Ee)){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(W(n,Ee)[s])}t=n,n=W(t,Te)}}return this},It=new WeakSet,On=function(e,t,n,s){var T,h;let i=!1,o=!1,a=-1,u=!1;if(t.type===null){let b=n,$="";for(;b<e.length;){let D=e.charAt(b++);if(i||D==="\\"){i=!i,$+=D;continue}if(o){b===a+1?(D==="^"||D==="!")&&(u=!0):D==="]"&&!(b===a+2&&u)&&(o=!1),$+=D;continue}else if(D==="["){o=!0,a=b,u=!1,$+=D;continue}if(!s.noext&&ys(D)&&e.charAt(b)==="("){t.push($),$="";let A=new We(D,t);b=wt(T=We,It,On).call(T,e,A,b,s),t.push(A);continue}$+=D}return t.push($),b}let c=n+1,p=new We(null,t),m=[],S="";for(;c<e.length;){let b=e.charAt(c++);if(i||b==="\\"){i=!i,S+=b;continue}if(o){c===a+1?(b==="^"||b==="!")&&(u=!0):b==="]"&&!(c===a+2&&u)&&(o=!1),S+=b;continue}else if(b==="["){o=!0,a=c,u=!1,S+=b;continue}if(ys(b)&&e.charAt(c)==="("){p.push(S),S="";let $=new We(b,p);p.push($),c=wt(h=We,It,On).call(h,e,$,c,s);continue}if(b==="|"){p.push(S),S="",m.push(p),p=new We(null,t);continue}if(b===")")return S===""&&W(t,Ee).length===0&&Se(t,hn,!0),p.push(S),S="",t.push(...m,p),c;S+=b}return t.type=null,Se(t,De,void 0),Se(t,Ee,[e.substring(n-1)]),c},or=function(e){return W(this,Ee).map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");let[n,s,i,o]=t.toRegExpSource(e);return Se(this,Ct,W(this,Ct)||o),n}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")},Ss=function(e,t,n=!1){let s=!1,i="",o=!1;for(let a=0;a<e.length;a++){let u=e.charAt(a);if(s){s=!1,i+=(la.has(u)?"\\":"")+u;continue}if(u==="\\"){a===e.length-1?i+="\\\\":s=!0;continue}if(u==="["){let[c,p,m,S]=gs(e,a);if(m){i+=c,o=o||p,a+=m-1,t=t||S;continue}}if(u==="*"){n&&e==="*"?i+=bs:i+=vs,t=!0;continue}if(u==="?"){i+=ar,t=!0;continue}i+=ca(u)}return[i,ht(e),!!t,o]},ze(We,It);var _t=We;var en=(r,{windowsPathsNoEscape:e=!1}={})=>e?r.replace(/[?*()[\]]/g,"[$&]"):r.replace(/[?*()[\]\\]/g,"\\$&");var Ie=(r,e,t={})=>(fn(e),!t.nocomment&&e.charAt(0)==="#"?!1:new Lt(e,t).match(r)),ua=/^\*+([^+@!?\*\[\(]*)$/,da=r=>e=>!e.startsWith(".")&&e.endsWith(r),fa=r=>e=>e.endsWith(r),pa=r=>(r=r.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(r)),ha=r=>(r=r.toLowerCase(),e=>e.toLowerCase().endsWith(r)),ma=/^\*+\.\*+$/,ga=r=>!r.startsWith(".")&&r.includes("."),ya=r=>r!=="."&&r!==".."&&r.includes("."),va=/^\.\*+$/,ba=r=>r!=="."&&r!==".."&&r.startsWith("."),Ea=/^\*+$/,Sa=r=>r.length!==0&&!r.startsWith("."),$a=r=>r.length!==0&&r!=="."&&r!=="..",xa=/^\?+([^+@!?\*\[\(]*)?$/,Ta=([r,e=""])=>{let t=Cs([r]);return e?(e=e.toLowerCase(),n=>t(n)&&n.toLowerCase().endsWith(e)):t},Ca=([r,e=""])=>{let t=Ls([r]);return e?(e=e.toLowerCase(),n=>t(n)&&n.toLowerCase().endsWith(e)):t},La=([r,e=""])=>{let t=Ls([r]);return e?n=>t(n)&&n.endsWith(e):t},Ra=([r,e=""])=>{let t=Cs([r]);return e?n=>t(n)&&n.endsWith(e):t},Cs=([r])=>{let e=r.length;return t=>t.length===e&&!t.startsWith(".")},Ls=([r])=>{let e=r.length;return t=>t.length===e&&t!=="."&&t!==".."},Rs=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",$s={win32:{sep:"\\"},posix:{sep:"/"}},Aa=Rs==="win32"?$s.win32.sep:$s.posix.sep;Ie.sep=Aa;var et=Symbol("globstar **");Ie.GLOBSTAR=et;var Oa="[^/]",Da=Oa+"*?",Na="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",wa="(?:(?!(?:\\/|^)\\.).)*?",Pa=(r,e={})=>t=>Ie(t,r,e);Ie.filter=Pa;var rt=(r,e={})=>Object.assign({},r,e),ka=r=>{if(!r||typeof r!="object"||!Object.keys(r).length)return Ie;let e=Ie;return Object.assign((n,s,i={})=>e(n,s,rt(r,i)),{Minimatch:class extends e.Minimatch{constructor(s,i={}){super(s,rt(r,i))}static defaults(s){return e.defaults(rt(r,s)).Minimatch}},AST:class extends e.AST{constructor(s,i,o={}){super(s,i,rt(r,o))}static fromGlob(s,i={}){return e.AST.fromGlob(s,rt(r,i))}},unescape:(n,s={})=>e.unescape(n,rt(r,s)),escape:(n,s={})=>e.escape(n,rt(r,s)),filter:(n,s={})=>e.filter(n,rt(r,s)),defaults:n=>e.defaults(rt(r,n)),makeRe:(n,s={})=>e.makeRe(n,rt(r,s)),braceExpand:(n,s={})=>e.braceExpand(n,rt(r,s)),match:(n,s,i={})=>e.match(n,s,rt(r,i)),sep:e.sep,GLOBSTAR:et})};Ie.defaults=ka;var As=(r,e={})=>(fn(r),e.nobrace||!/\{(?:(?!\{).)*\}/.test(r)?[r]:(0,Ts.default)(r));Ie.braceExpand=As;var Ia=(r,e={})=>new Lt(r,e).makeRe();Ie.makeRe=Ia;var Ma=(r,e,t={})=>{let n=new Lt(e,t);return r=r.filter(s=>n.match(s)),n.options.nonull&&!r.length&&r.push(e),r};Ie.match=Ma;var xs=/[?*]|[+@!]\(.*?\)|\[|\]/,Fa=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Lt=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){fn(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||Rs,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]==="?"||!xs.test(i[2]))&&!xs.test(i[3]),c=/^[a-z]:/i.test(i[0]);if(u)return[...i.slice(0,4),...i.slice(4).map(p=>this.parse(p))];if(c)return[i[0],...i.slice(1).map(p=>this.parse(p))]}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 p=n.slice(0);p[s]="**",e.push(p),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);s&&(e[t]=s,e[n]=[])}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=this.options;if(this.isWindows){let b=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),$=!b&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),D=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),A=!D&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),I=$?3:b?0:void 0,w=A?3:D?0:void 0;if(typeof I=="number"&&typeof w=="number"){let[g,x]=[e[I],t[w]];g.toLowerCase()===x.toLowerCase()&&(t[w]=g,w>I?t=t.slice(w):I>w&&(e=e.slice(I)))}}let{optimizationLevel:i=1}=this.options;i>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,a=0,u=e.length,c=t.length;o<u&&a<c;o++,a++){this.debug("matchOne loop");var p=t[a],m=e[o];if(this.debug(t,p,m),p===!1)return!1;if(p===et){this.debug("GLOBSTAR",[t,p,m]);var S=o,T=a+1;if(T===c){for(this.debug("** at the end");o<u;o++)if(e[o]==="."||e[o]===".."||!s.dot&&e[o].charAt(0)===".")return!1;return!0}for(;S<u;){var h=e[S];if(this.debug(`
|
|
50
|
+
`))},C=(l,d)=>{let f=yt([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&&f.unshift(Tt+v),f.push(""),l.lines&&l.lines.length&&(Do(l.lines).forEach(N=>{if(!wo(N.text))return;let P="";for(N.lineNumber>-1&&(P=`L${N.lineNumber}: `);P.length<Tt.length;)P=" "+P;let M=N.text;N.errorCharStart>-1&&(M=O(M,N.errorCharStart,N.errorLength)),P=(0,ee.dim)(P),l.language==="typescript"||l.language==="javascript"?P+=k(M):l.language==="scss"||l.language==="css"?P+=L(M):P+=M,f.push(P)}),f.push("")),l.level==="error"?S(f):l.level==="warn"?p(f):l.level==="debug"?h(f):u(f),l.debugText!=null&&e==="debug"&&(f.push(l.debugText),h(yt([l.debugText],r.getColumns()))),f},O=(l,d,f=0)=>{let v=l.length-d+f-1;for(;l.length+Tt.length>r.getColumns();)if(d>l.length-d+f&&d>5)l=l.slice(1),d--;else if(v>1)l=l.slice(0,-1),v--;else break;let E=[],R=Math.max(l.length,d+f);for(let N=0;N<R;N++){let P=l.charAt(N);N>=d&&N<d+f&&(P=(0,ee.bgRed)(P===""?" ":P)),E.push(P)}return E.join("")},k=l=>l.trim().startsWith("//")?(0,ee.dim)(l):l.split(" ").map(f=>Po.indexOf(f)>-1?(0,ee.cyan)(f):f).join(" "),L=l=>{let d=!0,f="abcdefghijklmnopqrstuvwxyz-_",v=".#,:}@$[]/*",E=[];for(let R=0;R<l.length;R++){let N=l.charAt(R);if(N===";"||N==="{"?d=!0:v.indexOf(N)>-1&&(d=!1),d&&f.indexOf(N.toLowerCase())>-1){E.push((0,ee.cyan)(N));continue}E.push(N)}return E.join("")};return{createLineUpdater:r.createLineUpdater,createTimeSpan:A,debug:T,emoji:r.emoji,enableColors:g,error:m,getLevel:i,info:a,printDiagnostics:x,setLevel:s,setLogFilePath:o,warn:c,writeLogs:w,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}},qt=(r,e)=>_n.indexOf(e)>=_n.indexOf(r),Jr=()=>{let r=new Date,e=Vr(r.getMinutes()),t=Vr(r.getSeconds()),n=Math.floor(r.getMilliseconds()/1e3*10);return`[${e}:${t}.${n}]`},Vr=r=>("0"+r.toString()).slice(-2),yt=(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=Tt;return n.forEach(i=>{t.length>25||(typeof i=="function"?(s.trim().length&&t.push(s),t.push(i()),s=Tt):Tt.length+i.length>e-1?(s.trim().length&&t.push(s),t.push(Tt+i),s=Tt):i.length+s.length>e-1?(t.push(s),s=Tt+i+" "):s+=i+" ")}),s.trim().length&&t.push(s),t.map(i=>i.trimRight())},Do=r=>{let t=JSON.parse(JSON.stringify(r));for(let n=0;n<100;n++){if(!No(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},No=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},wo=r=>r?(r=r.trim(),r.length>0):!1,Po=["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"],Tt=" ";var Qr=()=>{let r=ko();return Kr(r)};function ko(){return{cwd:()=>process.cwd(),emoji:a=>process.platform!=="win32"?a:"",getColumns:()=>{var m,S;let p=(S=(m=process==null?void 0:process.stdout)==null?void 0:m.columns)!=null?S:80;return Math.max(Math.min(p,120),60)},memoryUsage:()=>process.memoryUsage().rss,relativePath:(a,u)=>Yr.default.relative(a,u),writeLogs:(a,u,c)=>{if(c)try{Ln.default.accessSync(a)}catch{c=!1}c?Ln.default.appendFileSync(a,u):Ln.default.writeFileSync(a,u)},createLineUpdater:async()=>{let a=await import("readline"),u=Promise.resolve(),c=m=>(m=m.substring(0,process.stdout.columns-5)+"\x1B[0m",u=u.then(()=>new Promise(S=>{a.clearLine(process.stdout,0),a.cursorTo(process.stdout,0,void 0),process.stdout.write(m,S)}))),p=()=>c("\x1B[?25h");return process.stdout.write("\x1B[?25l"),{update:c,stop:p}}}}var qr=()=>{};var er=r=>r.flat?r.flat(1):r.reduce((e,t)=>(e.push(...t),e),[]);var _r=r=>typeof r=="function";var jt=r=>typeof r=="string";var tr=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 un=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 nr=(r,e,t)=>{let n={level:"error",type:"build",header:"Build Error",messageText:"build error",lines:[]};return jt(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&&!rr(n.messageText)&&r.push(n),n};var rr=r=>r===Ut,Ut="task canceled";var ye=(r,e=!0)=>{if(typeof r!="string")throw new Error("invalid path to normalize");r=Uo(r.trim());let t=Ko(r,Go(r)),n=Xo(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},Uo=r=>r.replace(Wo,"/"),zo="\\",es="://",Wo=/\\/g,Xo=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},Go=r=>{let e=Jo(r);return e<0?~e:e},Jo=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?"/":zo,2);return n<0?r.length:n+1}if(ts(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(es);if(t!==-1){let n=t+es.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")&&ts(r.charCodeAt(s+1))){let a=Vo(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},ts=r=>r>=97&&r<=122||r>=65&&r<=90,Vo=(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},Ko=(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 Ts=be(hs(),1);var fn=r=>{if(typeof r!="string")throw new TypeError("invalid pattern");if(r.length>65536)throw new TypeError("pattern is too long")};var na={"[: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]},pn=r=>r.replace(/[[\]\\-]/g,"\\$&"),ra=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),ms=r=>r.join(""),gs=(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,p=t,m="";e:for(;i<r.length;){let b=r.charAt(i);if((b==="!"||b==="^")&&i===t+1){c=!0,i++;continue}if(b==="]"&&o&&!u){p=i+1;break}if(o=!0,b==="\\"&&!u){u=!0,i++;continue}if(b==="["&&!u){for(let[$,[D,A,I]]of Object.entries(na))if(r.startsWith($,i)){if(m)return["$.",!1,r.length-t,!0];i+=$.length,I?s.push(D):n.push(D),a=a||A;continue e}}if(u=!1,m){b>m?n.push(pn(m)+"-"+pn(b)):b===m&&n.push(pn(b)),m="",i++;continue}if(r.startsWith("-]",i+1)){n.push(pn(b+"-")),i+=2;continue}if(r.startsWith("-",i+1)){m=b,i+=2;continue}n.push(pn(b)),i++}if(p<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 b=n[0].length===2?n[0].slice(-1):n[0];return[ra(b),!1,p-t,!1]}let S="["+(c?"^":"")+ms(n)+"]",T="["+(c?"":"^")+ms(s)+"]";return[n.length&&s.length?"("+S+"|"+T+")":n.length?S:T,a,p-t,!0]};var mt=(r,{windowsPathsNoEscape:e=!1}={})=>e?r.replace(/\[([^\/\\])\]/g,"$1"):r.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var sa=new Set(["!","?","+","*","@"]),ys=r=>sa.has(r),ia="(?!(?:^|/)\\.\\.?(?:$|/))",An="(?!\\.)",oa=new Set(["[","."]),aa=new Set(["..","."]),la=new Set("().*{}+?[]^$\\!"),ca=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),ar="[^/]",vs=ar+"*?",bs=ar+"+?",Le,De,Ct,Ee,Te,Pt,zt,kt,vt,Wt,hn,Xt,Es,It,On,or,Ss,We=class We{constructor(e,t,n={}){ze(this,Xt);Yn(this,"type");ze(this,Le);ze(this,De);ze(this,Ct,!1);ze(this,Ee,[]);ze(this,Te);ze(this,Pt);ze(this,zt);ze(this,kt,!1);ze(this,vt);ze(this,Wt);ze(this,hn,!1);this.type=e,e&&Se(this,De,!0),Se(this,Te,t),Se(this,Le,W(this,Te)?W(W(this,Te),Le):this),Se(this,vt,W(this,Le)===this?n:W(W(this,Le),vt)),Se(this,zt,W(this,Le)===this?[]:W(W(this,Le),zt)),e==="!"&&!W(W(this,Le),kt)&&W(this,zt).push(this),Se(this,Pt,W(this,Te)?W(W(this,Te),Ee).length:0)}get hasMagic(){if(W(this,De)!==void 0)return W(this,De);for(let e of W(this,Ee))if(typeof e!="string"&&(e.type||e.hasMagic))return Se(this,De,!0);return W(this,De)}toString(){return W(this,Wt)!==void 0?W(this,Wt):this.type?Se(this,Wt,this.type+"("+W(this,Ee).map(e=>String(e)).join("|")+")"):Se(this,Wt,W(this,Ee).map(e=>String(e)).join(""))}push(...e){for(let t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof We&&W(t,Te)===this))throw new Error("invalid part: "+t);W(this,Ee).push(t)}}toJSON(){var t;let e=this.type===null?W(this,Ee).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...W(this,Ee).map(n=>n.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===W(this,Le)||W(W(this,Le),kt)&&((t=W(this,Te))==null?void 0:t.type)==="!")&&e.push({}),e}isStart(){var t;if(W(this,Le)===this)return!0;if(!((t=W(this,Te))!=null&&t.isStart()))return!1;if(W(this,Pt)===0)return!0;let e=W(this,Te);for(let n=0;n<W(this,Pt);n++){let s=W(e,Ee)[n];if(!(s instanceof We&&s.type==="!"))return!1}return!0}isEnd(){var t,n,s;if(W(this,Le)===this||((t=W(this,Te))==null?void 0:t.type)==="!")return!0;if(!((n=W(this,Te))!=null&&n.isEnd()))return!1;if(!this.type)return(s=W(this,Te))==null?void 0:s.isEnd();let e=W(this,Te)?W(W(this,Te),Ee).length:0;return W(this,Pt)===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let t=new We(this.type,e);for(let n of W(this,Ee))t.copyIn(n);return t}static fromGlob(e,t={}){var s;let n=new We(null,void 0,t);return wt(s=We,It,On).call(s,e,n,0,t),n}toMMPattern(){if(this!==W(this,Le))return W(this,Le).toMMPattern();let e=this.toString(),[t,n,s,i]=this.toRegExpSource();if(!(s||W(this,De)||W(this,vt).nocase&&!W(this,vt).nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(W(this,vt).nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return W(this,vt)}toRegExpSource(e){var u;let t=e!=null?e:!!W(this,vt).dot;if(W(this,Le)===this&&wt(this,Xt,Es).call(this),!this.type){let c=this.isStart()&&this.isEnd(),p=W(this,Ee).map(h=>{var I;let[b,$,D,A]=typeof h=="string"?wt(I=We,It,Ss).call(I,h,W(this,De),c):h.toRegExpSource(e);return Se(this,De,W(this,De)||D),Se(this,Ct,W(this,Ct)||A),b}).join(""),m="";if(this.isStart()&&typeof W(this,Ee)[0]=="string"&&!(W(this,Ee).length===1&&aa.has(W(this,Ee)[0]))){let b=oa,$=t&&b.has(p.charAt(0))||p.startsWith("\\.")&&b.has(p.charAt(2))||p.startsWith("\\.\\.")&&b.has(p.charAt(4)),D=!t&&!e&&b.has(p.charAt(0));m=$?ia:D?An:""}let S="";return this.isEnd()&&W(W(this,Le),kt)&&((u=W(this,Te))==null?void 0:u.type)==="!"&&(S="(?:$|\\/)"),[m+p+S,mt(p),Se(this,De,!!W(this,De)),W(this,Ct)]}let n=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:",i=wt(this,Xt,or).call(this,t);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){let c=this.toString();return Se(this,Ee,[c]),this.type=null,Se(this,De,void 0),[c,mt(this.toString()),!1,!1]}let o=!n||e||t||!An?"":wt(this,Xt,or).call(this,!0);o===i&&(o=""),o&&(i=`(?:${i})(?:${o})*?`);let a="";if(this.type==="!"&&W(this,hn))a=(this.isStart()&&!t?An:"")+bs;else{let c=this.type==="!"?"))"+(this.isStart()&&!t&&!e?An:"")+vs+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=s+i+c}return[a,mt(i),Se(this,De,!!W(this,De)),W(this,Ct)]}};Le=new WeakMap,De=new WeakMap,Ct=new WeakMap,Ee=new WeakMap,Te=new WeakMap,Pt=new WeakMap,zt=new WeakMap,kt=new WeakMap,vt=new WeakMap,Wt=new WeakMap,hn=new WeakMap,Xt=new WeakSet,Es=function(){if(this!==W(this,Le))throw new Error("should only call on root");if(W(this,kt))return this;this.toString(),Se(this,kt,!0);let e;for(;e=W(this,zt).pop();){if(e.type!=="!")continue;let t=e,n=W(t,Te);for(;n;){for(let s=W(t,Pt)+1;!n.type&&s<W(n,Ee).length;s++)for(let i of W(e,Ee)){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(W(n,Ee)[s])}t=n,n=W(t,Te)}}return this},It=new WeakSet,On=function(e,t,n,s){var T,h;let i=!1,o=!1,a=-1,u=!1;if(t.type===null){let b=n,$="";for(;b<e.length;){let D=e.charAt(b++);if(i||D==="\\"){i=!i,$+=D;continue}if(o){b===a+1?(D==="^"||D==="!")&&(u=!0):D==="]"&&!(b===a+2&&u)&&(o=!1),$+=D;continue}else if(D==="["){o=!0,a=b,u=!1,$+=D;continue}if(!s.noext&&ys(D)&&e.charAt(b)==="("){t.push($),$="";let A=new We(D,t);b=wt(T=We,It,On).call(T,e,A,b,s),t.push(A);continue}$+=D}return t.push($),b}let c=n+1,p=new We(null,t),m=[],S="";for(;c<e.length;){let b=e.charAt(c++);if(i||b==="\\"){i=!i,S+=b;continue}if(o){c===a+1?(b==="^"||b==="!")&&(u=!0):b==="]"&&!(c===a+2&&u)&&(o=!1),S+=b;continue}else if(b==="["){o=!0,a=c,u=!1,S+=b;continue}if(ys(b)&&e.charAt(c)==="("){p.push(S),S="";let $=new We(b,p);p.push($),c=wt(h=We,It,On).call(h,e,$,c,s);continue}if(b==="|"){p.push(S),S="",m.push(p),p=new We(null,t);continue}if(b===")")return S===""&&W(t,Ee).length===0&&Se(t,hn,!0),p.push(S),S="",t.push(...m,p),c;S+=b}return t.type=null,Se(t,De,void 0),Se(t,Ee,[e.substring(n-1)]),c},or=function(e){return W(this,Ee).map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");let[n,s,i,o]=t.toRegExpSource(e);return Se(this,Ct,W(this,Ct)||o),n}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")},Ss=function(e,t,n=!1){let s=!1,i="",o=!1;for(let a=0;a<e.length;a++){let u=e.charAt(a);if(s){s=!1,i+=(la.has(u)?"\\":"")+u;continue}if(u==="\\"){a===e.length-1?i+="\\\\":s=!0;continue}if(u==="["){let[c,p,m,S]=gs(e,a);if(m){i+=c,o=o||p,a+=m-1,t=t||S;continue}}if(u==="*"){n&&e==="*"?i+=bs:i+=vs,t=!0;continue}if(u==="?"){i+=ar,t=!0;continue}i+=ca(u)}return[i,mt(e),!!t,o]},ze(We,It);var _t=We;var en=(r,{windowsPathsNoEscape:e=!1}={})=>e?r.replace(/[?*()[\]]/g,"[$&]"):r.replace(/[?*()[\]\\]/g,"\\$&");var Ie=(r,e,t={})=>(fn(e),!t.nocomment&&e.charAt(0)==="#"?!1:new Lt(e,t).match(r)),ua=/^\*+([^+@!?\*\[\(]*)$/,da=r=>e=>!e.startsWith(".")&&e.endsWith(r),fa=r=>e=>e.endsWith(r),pa=r=>(r=r.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(r)),ha=r=>(r=r.toLowerCase(),e=>e.toLowerCase().endsWith(r)),ma=/^\*+\.\*+$/,ga=r=>!r.startsWith(".")&&r.includes("."),ya=r=>r!=="."&&r!==".."&&r.includes("."),va=/^\.\*+$/,ba=r=>r!=="."&&r!==".."&&r.startsWith("."),Ea=/^\*+$/,Sa=r=>r.length!==0&&!r.startsWith("."),$a=r=>r.length!==0&&r!=="."&&r!=="..",xa=/^\?+([^+@!?\*\[\(]*)?$/,Ta=([r,e=""])=>{let t=Cs([r]);return e?(e=e.toLowerCase(),n=>t(n)&&n.toLowerCase().endsWith(e)):t},Ca=([r,e=""])=>{let t=Ls([r]);return e?(e=e.toLowerCase(),n=>t(n)&&n.toLowerCase().endsWith(e)):t},La=([r,e=""])=>{let t=Ls([r]);return e?n=>t(n)&&n.endsWith(e):t},Ra=([r,e=""])=>{let t=Cs([r]);return e?n=>t(n)&&n.endsWith(e):t},Cs=([r])=>{let e=r.length;return t=>t.length===e&&!t.startsWith(".")},Ls=([r])=>{let e=r.length;return t=>t.length===e&&t!=="."&&t!==".."},Rs=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",$s={win32:{sep:"\\"},posix:{sep:"/"}},Aa=Rs==="win32"?$s.win32.sep:$s.posix.sep;Ie.sep=Aa;var et=Symbol("globstar **");Ie.GLOBSTAR=et;var Oa="[^/]",Da=Oa+"*?",Na="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",wa="(?:(?!(?:\\/|^)\\.).)*?",Pa=(r,e={})=>t=>Ie(t,r,e);Ie.filter=Pa;var rt=(r,e={})=>Object.assign({},r,e),ka=r=>{if(!r||typeof r!="object"||!Object.keys(r).length)return Ie;let e=Ie;return Object.assign((n,s,i={})=>e(n,s,rt(r,i)),{Minimatch:class extends e.Minimatch{constructor(s,i={}){super(s,rt(r,i))}static defaults(s){return e.defaults(rt(r,s)).Minimatch}},AST:class extends e.AST{constructor(s,i,o={}){super(s,i,rt(r,o))}static fromGlob(s,i={}){return e.AST.fromGlob(s,rt(r,i))}},unescape:(n,s={})=>e.unescape(n,rt(r,s)),escape:(n,s={})=>e.escape(n,rt(r,s)),filter:(n,s={})=>e.filter(n,rt(r,s)),defaults:n=>e.defaults(rt(r,n)),makeRe:(n,s={})=>e.makeRe(n,rt(r,s)),braceExpand:(n,s={})=>e.braceExpand(n,rt(r,s)),match:(n,s,i={})=>e.match(n,s,rt(r,i)),sep:e.sep,GLOBSTAR:et})};Ie.defaults=ka;var As=(r,e={})=>(fn(r),e.nobrace||!/\{(?:(?!\{).)*\}/.test(r)?[r]:(0,Ts.default)(r));Ie.braceExpand=As;var Ia=(r,e={})=>new Lt(r,e).makeRe();Ie.makeRe=Ia;var Ma=(r,e,t={})=>{let n=new Lt(e,t);return r=r.filter(s=>n.match(s)),n.options.nonull&&!r.length&&r.push(e),r};Ie.match=Ma;var xs=/[?*]|[+@!]\(.*?\)|\[|\]/,Fa=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Lt=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){fn(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||Rs,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]==="?"||!xs.test(i[2]))&&!xs.test(i[3]),c=/^[a-z]:/i.test(i[0]);if(u)return[...i.slice(0,4),...i.slice(4).map(p=>this.parse(p))];if(c)return[i[0],...i.slice(1).map(p=>this.parse(p))]}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 p=n.slice(0);p[s]="**",e.push(p),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);s&&(e[t]=s,e[n]=[])}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=this.options;if(this.isWindows){let b=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),$=!b&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),D=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),A=!D&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),I=$?3:b?0:void 0,w=A?3:D?0:void 0;if(typeof I=="number"&&typeof w=="number"){let[g,x]=[e[I],t[w]];g.toLowerCase()===x.toLowerCase()&&(t[w]=g,w>I?t=t.slice(w):I>w&&(e=e.slice(I)))}}let{optimizationLevel:i=1}=this.options;i>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,a=0,u=e.length,c=t.length;o<u&&a<c;o++,a++){this.debug("matchOne loop");var p=t[a],m=e[o];if(this.debug(t,p,m),p===!1)return!1;if(p===et){this.debug("GLOBSTAR",[t,p,m]);var S=o,T=a+1;if(T===c){for(this.debug("** at the end");o<u;o++)if(e[o]==="."||e[o]===".."||!s.dot&&e[o].charAt(0)===".")return!1;return!0}for(;S<u;){var h=e[S];if(this.debug(`
|
|
51
51
|
globstar while`,e,S,t,T,h),this.matchOne(e.slice(S),t.slice(T),n))return this.debug("globstar found match!",S,u,h),!0;if(h==="."||h===".."||!s.dot&&h.charAt(0)==="."){this.debug("dot detected!",e,S,t,T);break}this.debug("globstar swallow a segment, and continue"),S++}return!!(n&&(this.debug(`
|
|
52
|
-
>>> no match, partial?`,e,S,t,T),S===u))}let b;if(typeof p=="string"?(b=m===p,this.debug("string match",p,m,b)):(b=p.test(m),this.debug("pattern match",p,m,b)),!b)return!1}if(o===u&&a===c)return!0;if(o===u)return n;if(a===c)return o===u-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return As(this.pattern,this.options)}parse(e){fn(e);let t=this.options;if(e==="**")return et;if(e==="")return"";let n,s=null;(n=e.match(Ea))?s=t.dot?$a:Sa:(n=e.match(ua))?s=(t.nocase?t.dot?ha:pa:t.dot?fa:da)(n[1]):(n=e.match(xa))?s=(t.nocase?t.dot?Ca:Ta:t.dot?La:Ra)(n):(n=e.match(ma))?s=t.dot?ya:ga:(n=e.match(va))&&(s=ba);let i=_t.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?Da:t.dot?Na:wa,s=new Set(t.nocase?["i"]:[]),i=e.map(u=>{let c=u.map(p=>{if(p instanceof RegExp)for(let m of p.flags.split(""))s.add(m);return typeof p=="string"?Fa(p):p===et?et:p._src});return c.forEach((p,m)=>{let S=c[m+1],T=c[m-1];p!==et||T===et||(T===void 0?S!==void 0&&S!==et?c[m+1]="(?:\\/|"+n+"\\/)?"+S:c[m]=n:S===void 0?c[m-1]=T+"(?:\\/|"+n+")?":S!==et&&(c[m-1]=T+"(?:\\/|\\/"+n+"\\/)"+S,c[m+1]=et))}),c.filter(p=>p!==et).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 Ie.defaults(e).Minimatch}};Ie.AST=_t;Ie.Minimatch=Lt;Ie.escape=en;Ie.unescape=
|
|
52
|
+
>>> no match, partial?`,e,S,t,T),S===u))}let b;if(typeof p=="string"?(b=m===p,this.debug("string match",p,m,b)):(b=p.test(m),this.debug("pattern match",p,m,b)),!b)return!1}if(o===u&&a===c)return!0;if(o===u)return n;if(a===c)return o===u-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return As(this.pattern,this.options)}parse(e){fn(e);let t=this.options;if(e==="**")return et;if(e==="")return"";let n,s=null;(n=e.match(Ea))?s=t.dot?$a:Sa:(n=e.match(ua))?s=(t.nocase?t.dot?ha:pa:t.dot?fa:da)(n[1]):(n=e.match(xa))?s=(t.nocase?t.dot?Ca:Ta:t.dot?La:Ra)(n):(n=e.match(ma))?s=t.dot?ya:ga:(n=e.match(va))&&(s=ba);let i=_t.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?Da:t.dot?Na:wa,s=new Set(t.nocase?["i"]:[]),i=e.map(u=>{let c=u.map(p=>{if(p instanceof RegExp)for(let m of p.flags.split(""))s.add(m);return typeof p=="string"?Fa(p):p===et?et:p._src});return c.forEach((p,m)=>{let S=c[m+1],T=c[m-1];p!==et||T===et||(T===void 0?S!==void 0&&S!==et?c[m+1]="(?:\\/|"+n+"\\/)?"+S:c[m]=n:S===void 0?c[m-1]=T+"(?:\\/|"+n+")?":S!==et&&(c[m-1]=T+"(?:\\/|\\/"+n+"\\/)"+S,c[m+1]=et))}),c.filter(p=>p!==et).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 Ie.defaults(e).Minimatch}};Ie.AST=_t;Ie.Minimatch=Lt;Ie.escape=en;Ie.unescape=mt;var Os=r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var cr={};Hr(cr,{err:()=>Ds,map:()=>Ha,ok:()=>lr,unwrap:()=>Ba,unwrapErr:()=>ja});var lr=r=>({isOk:!0,isErr:!1,value:r}),Ds=r=>({isOk:!1,isErr:!0,value:r});function Ha(r,e){if(r.isOk){let t=e(r.value);return t instanceof Promise?t.then(n=>lr(n)):lr(t)}if(r.isErr){let t=r.value;return Ds(t)}throw"should never get here"}var Ba=r=>{if(r.isOk)return r.value;throw r.value},ja=r=>{if(r.isErr)return r.value;throw r.value};var se={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 za={isDev:!!se.isDev,isBrowser:!0,isServer:!1,isTesting:!!se.isTesting};var $f=se.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"];var st=typeof window<"u"?window:{},Df=st.HTMLElement||class{};var tn=se.shadowDom;var ur=se.constructableCSS?(()=>{try{return st.document.adoptedStyleSheets?(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"):!1}catch{}return!1})():!1;/**
|
|
53
53
|
* @license
|
|
54
54
|
* Copyright Google Inc. All Rights Reserved.
|
|
55
55
|
*
|
|
@@ -59,6 +59,6 @@ globstar while`,e,S,t,T,h),this.matchOne(e.slice(S),t.slice(T),n))return this.de
|
|
|
59
59
|
* This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
|
|
60
60
|
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
61
61
|
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
62
|
-
*/var Fs="-shadowcsshost",il="-shadowcssslotted",ol="-shadowcsscontext",pr=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Cp=new RegExp("("+Fs+pr,"gim"),Lp=new RegExp("("+ol+pr,"gim"),Rp=new RegExp("("+il+pr,"gim"),Ap=Fs+"-no-combinator";var hr=r=>{let e=Os(r);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")},Op=hr("::slotted"),Dp=hr(":host"),Np=hr(":host-context");var ll="Capture",th=new RegExp(ll+"$");var Sg=se.lazyLoad?class{}:globalThis.HTMLElement||class{};var vn=r=>e=>r(e.toLowerCase()),Nl=vn(r=>r.endsWith(".d.ts")||r.endsWith(".d.mts")||r.endsWith(".d.cts")),nv=vn(r=>!Nl(r)&&(r.endsWith(".ts")||r.endsWith(".mts")||r.endsWith(".cts"))),rv=vn(r=>r.endsWith(".tsx")||r.endsWith(".mtsx")||r.endsWith(".ctsx")),sv=vn(r=>r.endsWith(".jsx")||r.endsWith(".mjsx")||r.endsWith(".cjsx")),iv=vn(r=>r.endsWith(".js")||r.endsWith(".mjs")||r.endsWith(".cjs"));function zs(r){r.process.on("unhandledRejection",e=>{if(!rr(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 uo=be(Xs()),Ir=require("crypto"),fo=be(Js()),de=be(require("./graceful-fs.js")),
|
|
62
|
+
*/var Fs="-shadowcsshost",il="-shadowcssslotted",ol="-shadowcsscontext",pr=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Cp=new RegExp("("+Fs+pr,"gim"),Lp=new RegExp("("+ol+pr,"gim"),Rp=new RegExp("("+il+pr,"gim"),Ap=Fs+"-no-combinator";var hr=r=>{let e=Os(r);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")},Op=hr("::slotted"),Dp=hr(":host"),Np=hr(":host-context");var ll="Capture",th=new RegExp(ll+"$");var Sg=se.lazyLoad?class{}:globalThis.HTMLElement||class{};var vn=r=>e=>r(e.toLowerCase()),Nl=vn(r=>r.endsWith(".d.ts")||r.endsWith(".d.mts")||r.endsWith(".d.cts")),nv=vn(r=>!Nl(r)&&(r.endsWith(".ts")||r.endsWith(".mts")||r.endsWith(".cts"))),rv=vn(r=>r.endsWith(".tsx")||r.endsWith(".mtsx")||r.endsWith(".ctsx")),sv=vn(r=>r.endsWith(".jsx")||r.endsWith(".mjsx")||r.endsWith(".cjsx")),iv=vn(r=>r.endsWith(".js")||r.endsWith(".mjs")||r.endsWith(".cjs"));function zs(r){r.process.on("unhandledRejection",e=>{if(!rr(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 uo=be(Xs()),Ir=require("crypto"),fo=be(Js()),de=be(require("./graceful-fs.js")),ot=require("os"),po=be(require("os")),fe=be(require("path"));var Vs=()=>{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(p){console.error(p)}else if(c.eventName===a)try{c.callback(o)}catch(p){console.error(p)}},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 Mt=require("./glob.js");var vr=(r,e={})=>{Array.isArray(r)||(r=[r]);for(let t of r)if(new Lt(t,e).hasMagic())return!0;return!1};var Fl=require("./glob.js");var Gv=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux";function wn(r,e={}){return new Mt.Glob(r,e).streamSync()}function Ys(r,e={}){return new Mt.Glob(r,e).stream()}function Qs(r,e={}){return new Mt.Glob(r,e).walkSync()}async function Ks(r,e={}){return new Mt.Glob(r,e).walk()}function Pn(r,e={}){return new Mt.Glob(r,e).iterateSync()}function Zs(r,e={}){return new Mt.Glob(r,e).iterate()}var wl=wn,Pl=Object.assign(Ys,{sync:wn}),kl=Pn,Il=Object.assign(Zs,{sync:Pn}),Ml=Object.assign(Qs,{stream:wn,iterate:Pn}),Nn=Object.assign(Ks,{glob:Ks,globSync:Qs,sync:Ml,globStream:Ys,stream:Pl,globStreamSync:wn,streamSync:wl,globIterate:Zs,iterate:Il,globIterateSync:Pn,iterateSync:kl,Glob:Mt.Glob,hasMagic:vr,escape:en,unescape:mt});Nn.glob=Nn;var gt=be(require("path"));var nn=be(require("./graceful-fs.js")),rn=require("util"),qs=(0,rn.promisify)(nn.default.copyFile),_s=(0,rn.promisify)(nn.default.mkdir),ei=(0,rn.promisify)(nn.default.readdir),eb=(0,rn.promisify)(nn.default.readFile),ti=(0,rn.promisify)(nn.default.stat);async function ri(r,e){let t={diagnostics:[],dirPaths:[],filePaths:[]};try{r=er(await Promise.all(r.map(i=>Hl(i,e))));let n=[];for(;r.length>0;){let i=r.splice(0,100);await Promise.all(i.map(o=>si(t,n,o)))}let s=Wl(n);try{await Promise.all(s.map(i=>_s(i,{recursive:!0})))}catch{}for(;n.length>0;){let i=n.splice(0,100);await Promise.all(i.map(o=>qs(o.src,o.dest)))}}catch(n){nr(t.diagnostics,n)}return t}async function Hl(r,e){return tr(r.src)?await jl(r,e):[{src:Bl(e,r.src),dest:r.keepDirStructure?gt.default.join(r.dest,r.src):r.dest,warn:r.warn,ignore:r.ignore,keepDirStructure:r.keepDirStructure}]}function Bl(r,e){return gt.default.isAbsolute(e)?e:gt.default.join(r,e)}async function jl(r,e){return(await br(r.src,{cwd:e,nodir:!0,ignore:r.ignore})).map(n=>Ul(r,e,n))}function Ul(r,e,t){let n=gt.default.join(r.dest,r.keepDirStructure?t:gt.default.basename(t));return{src:gt.default.join(e,t),dest:n,ignore:r.ignore,warn:r.warn,keepDirStructure:r.keepDirStructure}}async function si(r,e,t){try{t.src=ye(t.src),t.dest=ye(t.dest),(await ti(t.src)).isDirectory()?(r.dirPaths.includes(t.dest)||r.dirPaths.push(t.dest),await zl(r,e,t)):Gl(t)||(r.filePaths.includes(t.dest)||r.filePaths.push(t.dest),e.push(t))}catch(n){if(t.warn!==!1){let s=un(r.diagnostics);n instanceof Error&&(s.messageText=n.message)}}}async function zl(r,e,t){try{let n=await ei(t.src);await Promise.all(n.map(async s=>{let i={src:gt.default.join(t.src,s),dest:gt.default.join(t.dest,s),warn:t.warn};await si(r,e,i)}))}catch(n){nr(r.diagnostics,n)}}function Wl(r){let e=[];return r.forEach(t=>{Xl(e,gt.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 Xl(r,e){e=ye(e),!(e===ni||e+"/"===ni||e==="")&&(r.includes(e)||r.push(e))}var ni=ye(gt.default.resolve("/"));function Gl({src:r,ignore:e=[]}){let t=r.trim().toLowerCase();return e.some(n=>t.endsWith(n))}function br(r,e){return Nn(r,e)}var Ji=be(require("./graceful-fs.js")),Vi=be(require("path")),Ki=be(Tr()),Yi=be(bi()),Qi=be(Gi()),Un=class{constructor(e,t){this.nodeResolveModule=e;this.lazyDependencies=t;this.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),p=JSON.parse(Ji.default.readFileSync(c,"utf8"));if(u?(0,Qi.default)(p.version,`${o} - ${(0,Yi.default)(u)}.x`):(0,Ki.default)(o,p.version)){this.ensured.add(i);return}}catch{}s.push(`${i}@${a}`)}}),s.length>0){let i=un(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 Vi.default.dirname(n)}};var zn=be(require("./graceful-fs.js")),Ke=be(require("path")),Wn=class{constructor(){this.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=Ke.default.resolve(e);let a=Ke.default.join(e,"noop.js"),u=ye(o._resolveFilename(t,{id:a,filename:a,paths:o._nodeModulePaths(e)})),c=ye(Ke.default.parse(e).root),p;for(;u!==c;)if(u=ye(Ke.default.dirname(u)),p=Ke.default.join(u,"package.json"),!!zn.default.existsSync(p))return this.resolveModuleCache.set(s,p),p;throw new Error(`error loading "${t}" from "${e}"`)}resolveTypesModule(e,t,n){let s=t.split("/"),i=ye(Ke.default.parse(e).root),o=ye(Ke.default.join(e,"noop.js")),a;for(;o!==i;)if(o=ye(Ke.default.dirname(o)),a=Ke.default.join(o,"node_modules",s[0],s[1],"package.json"),!!zn.default.existsSync(a))return this.resolveModuleCache.set(n,a),a;throw new Error(`error loading "${t}" from "${e}"`)}resolveModuleManually(e,t,n){let s=ye(Ke.default.parse(e).root),i=ye(Ke.default.join(e,"noop.js")),o;for(;i!==s;)if(i=ye(Ke.default.dirname(i)),o=Ke.default.join(i,"node_modules",t,"package.json"),!!zn.default.existsSync(o))return this.resolveModuleCache.set(n,o),o;throw new Error(`error loading "${t}" from "${e}"`)}};var kr=be(require("./graceful-fs.js")),to=require("os"),no=be(require("path")),ro=be(Lr()),ru="https://registry.npmjs.org/@stencil/core",su=1e3*60*60*24*7,Pr="https://github.com/stenciljs/core/blob/main/CHANGELOG.md";async function so(r,e){try{let t=await iu(r);if(t!=null)return()=>{(0,ro.default)(e,t)?cu(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 qr}async function iu(r){try{let e=await lu();if(e==null)return Zi(),null;if(!au(Date.now(),e,su))return null;let t=Zi(),n=await ou(ru),s=JSON.parse(n);return await t,s["dist-tags"].latest}catch(e){r.debug(`getLatestCompilerVersion error: ${e}`)}return null}async function ou(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 au(r,e,t){return e+t<r}function lu(){return new Promise(r=>{kr.default.readFile(io(),"utf8",(e,t)=>{if(!e&&jt(t))try{r(JSON.parse(t))}catch{}r(null)})})}function Zi(){return new Promise(r=>{let e=JSON.stringify(Date.now());kr.default.writeFile(io(),e,()=>{r()})})}function io(){return no.default.join((0,to.tmpdir)(),"stencil_last_version_node.json")}function cu(r,e,t){let n="npm install @stencil/core",s=[`Update available: ${e} ${uu} ${t}`,"To get the latest, please run:",n,Pr],i=s.reduce((p,m)=>m.length>p?m.length:p,0),o=[],a=du;for(;a.length<=i+Xn*2;)a+=_i;a+=fu,o.push(a),s.forEach(p=>{let m=qi;for(let S=0;S<Xn;S++)m+=" ";for(m+=p;m.length<=i+Xn*2;)m+=" ";m+=qi,o.push(m)});let u=pu;for(;u.length<=i+Xn*2;)u+=_i;u+=hu,o.push(u);let c=`${eo}${o.join(`
|
|
63
63
|
${eo}`)}
|
|
64
|
-
`;c=c.replace(e,r.red(e)),c=c.replace(t,r.green(t)),c=c.replace(n,r.cyan(n)),c=c.replace(Pr,r.dim(Pr)),console.log(c)}var uu="\u2192",du="\u256D",fu="\u256E",pu="\u2570",hu="\u256F",qi="\u2502",_i="\u2500",Xn=2,eo=" ";var lo=require("events"),co=require("os");var oo=be(require("child_process")),ao=require("events"),Gn=class extends ao.EventEmitter{constructor(t,n){super();this.id=t;this.tasks=new Map;this.exitCode=null;this.processQueue=!0;this.sendQueue=[];this.stopped=!1;this.successfulMessage=!1;this.totalTasksAssigned=0;this.fork(n)}fork(t){let s={execArgv:process.execArgv.filter(i=>!/^--(debug|inspect)/.test(i)),env:process.env,cwd:process.cwd(),silent:!0};this.childProcess=oo.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(Ut)),this.tasks.clear(),this.successfulMessage?(this.childProcess.send({exit:!0}),setTimeout(()=>{this.exitCode===null&&this.childProcess.kill("SIGKILL")},100)):this.childProcess.kill("SIGKILL")}};var Jn=class extends lo.EventEmitter{constructor(t,n){super();this.forkModulePath=t;this.workerIds=0;this.stencilId=0;this.isEnding=!1;this.taskQueue=[];this.workers=[];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)}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 Gn(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=mu(this.workers);if(!t)break;t.run(this.taskQueue.shift())}}send(...t){return this.isEnding?Promise.reject(Ut):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(Ut)),t.tasks.clear();this.taskQueue.length=0}destroy(){if(!this.isEnding){this.isEnding=!0;for(let n of this.taskQueue)n.reject(Ut);this.taskQueue.length=0;let t=this.workers.map(n=>n.id);for(let n of t)this.stopWorker(n)}}};function mu(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 ho(r={}){var T;let e=(T=r==null?void 0:r.process)!=null?T:global.process,t=r==null?void 0:r.logger,n=new Set,s=[],i=(0,it.cpus)(),o=i.length,a=(0,it.platform)(),u=fe.default.join(__dirname,"..","..","compiler","stencil.js"),c=fe.default.join(__dirname,"..","..","dev-server","index.js"),p=()=>{let h=[],b;for(;_r(b=s.pop());)try{let $=b();h.push($)}catch{}return Promise.all(h).then(()=>{})},m={name:"node",version:e.versions.node,access(h){return new Promise(b=>{de.default.access(h,$=>b(!$))})},accessSync(h){let b=!1;try{de.default.accessSync(h),b=!0}catch{}return b},addDestroy(h){n.add(h)},removeDestroy(h){n.delete(h)},applyPrerenderGlobalPatch(h){if(typeof global.fetch!="function"){let b=require(fe.default.join(__dirname,"node-fetch.js"));global.fetch=($,D)=>{if(typeof $=="string"){let A=new URL($,h.devServerHostUrl).href;return b.fetch(A,D)}else return $.url=new URL($.url,h.devServerHostUrl).href,b.fetch($,D)},global.Headers=b.Headers,global.Request=b.Request,global.Response=b.Response,global.FetchError=b.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,b)=>{let $=require(fe.default.join(__dirname,"node-fetch.js"));if(typeof h=="string"){let D=new URL(h).href;return $.fetch(D,b)}else return h.url=new URL(h.url).href,$.fetch(h,b)},checkVersion:so,copyFile(h,b){return new Promise($=>{de.default.copyFile(h,b,D=>{$(!D)})})},createDir(h,b){return new Promise($=>{b?de.default.mkdir(h,b,D=>{$({basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,newDirs:[],error:D})}):de.default.mkdir(h,D=>{$({basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,newDirs:[],error:D})})})},createDirSync(h,b){let $={basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,newDirs:[],error:null};try{de.default.mkdirSync(h,b)}catch(D){$.error=D}return $},createWorkerController(h){let b=fe.default.join(__dirname,"worker.js");return new Jn(b,h)},async destroy(){let h=[];n.forEach(b=>{try{let $=b();$&&typeof $.then=="function"&&h.push($)}catch($){console.error(`node sys destroy: ${$}`)}}),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:m.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 p(),(0,fo.default)(h)},getCurrentDirectory(){return ye(e.cwd())},getCompilerExecutingPath(){return u},getDevServerExecutingPath(){return c},getEnvironmentVar(h){return process.env[h]},getLocalModulePath(){return null},getRemoteModuleUrl(){return null},glob:br,hardwareConcurrency:o,isSymbolicLink(h){return new Promise(b=>{try{de.default.lstat(h,($,D)=>{b($?!1:D.isSymbolicLink())})}catch{b(!1)}})},nextTick:e.nextTick,normalizePath:ye,onProcessInterrupt:h=>{s.includes(h)||s.push(h)},platformPath:fe.default,readDir(h){return new Promise(b=>{de.default.readdir(h,($,D)=>{b($?[]:D.map(A=>ye(fe.default.join(h,A))))})})},parseYarnLockFile(h){return(0,uo.parse)(h)},isTTY(){var h;return!!((h=process==null?void 0:process.stdout)!=null&&h.isTTY)},readDirSync(h){try{return de.default.readdirSync(h).map(b=>ye(fe.default.join(h,b)))}catch{}return[]},readFile(h,b){return b==="binary"?new Promise($=>{de.default.readFile(h,(D,A)=>{$(A)})}):new Promise($=>{de.default.readFile(h,"utf8",(D,A)=>{$(A)})})},readFileSync(h){try{return de.default.readFileSync(h,"utf8")}catch{}},homeDir(){try{return po.homedir()}catch{}},realpath(h){return new Promise(b=>{de.default.realpath(h,"utf8",($,D)=>{b({path:D,error:$})})})},realpathSync(h){let b={path:void 0,error:null};try{b.path=de.default.realpathSync(h,"utf8")}catch($){b.error=$}return b},rename(h,b){return new Promise($=>{de.default.rename(h,b,D=>{$({oldPath:h,newPath:b,error:D,oldDirs:[],oldFiles:[],newDirs:[],newFiles:[],renamed:[],isFile:!1,isDirectory:!1})})})},resolvePath(h){return ye(h)},removeDir(h,b){return new Promise($=>{!!(b&&b.recursive)?de.default.rm(h,{recursive:!0,force:!0},A=>{$({basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:A})}):de.default.rmdir(h,A=>{$({basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:A})})})},removeDirSync(h,b){try{return!!(b&&b.recursive)?de.default.rmSync(h,{recursive:!0,force:!0}):de.default.rmdirSync(h),{basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:null}}catch($){return{basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:$}}},removeFile(h){return new Promise(b=>{de.default.unlink(h,$=>{b({basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,error:$})})})},removeFileSync(h){let b={basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,error:null};try{de.default.unlinkSync(h)}catch($){b.error=$}return b},setupCompiler(h){let b=h.ts,$=b.sys.watchDirectory,D=b.sys.watchFile;m.watchTimeout=80,m.events=Vs(),m.watchDirectory=(A,I,w)=>{t==null||t.debug(`NODE_SYS_DEBUG::watchDir ${A}`);let g=$(A,C=>{t==null||t.debug(`NODE_SYS_DEBUG::watchDir:callback dir=${A} changedPath=${C}`),I(ye(C),"fileUpdate")},w),x=()=>{g.close()};return m.addDestroy(x),{close(){m.removeDestroy(x),g.close()}}},m.watchFile=(A,I)=>{t==null||t.debug(`NODE_SYS_DEBUG::watchFile ${A}`);let w=D(A,(x,C)=>{x=ye(x),C===b.FileWatcherEventKind.Created?(I(x,"fileAdd"),m.events.emit("fileAdd",x)):C===b.FileWatcherEventKind.Changed?(I(x,"fileUpdate"),m.events.emit("fileUpdate",x)):C===b.FileWatcherEventKind.Deleted&&(I(x,"fileDelete"),m.events.emit("fileDelete",x))},250,{watchFile:b.WatchFileKind.FixedPollingInterval,fallbackPolling:b.PollingWatchKind.FixedInterval}),g=()=>{w.close()};return m.addDestroy(g),{close(){m.removeDestroy(g),w.close()}}}},stat(h){return new Promise(b=>{de.default.stat(h,($,D)=>{b($?{isDirectory:!1,isFile:!1,isSymbolicLink:!1,size:0,mtimeMs:0,error:$}:{isDirectory:D.isDirectory(),isFile:D.isFile(),isSymbolicLink:D.isSymbolicLink(),size:D.size,mtimeMs:D.mtimeMs,error:null})})})},statSync(h){try{let b=de.default.statSync(h);return{isDirectory:b.isDirectory(),isFile:b.isFile(),isSymbolicLink:b.isSymbolicLink(),size:b.size,mtimeMs:b.mtimeMs,error:null}}catch(b){return{isDirectory:!1,isFile:!1,isSymbolicLink:!1,size:0,mtimeMs:0,error:b}}},tmpDirSync(){return(0,it.tmpdir)()},writeFile(h,b){return new Promise($=>{de.default.writeFile(h,b,D=>{$({path:h,error:D})})})},writeFileSync(h,b){let $={path:h,error:null};try{de.default.writeFileSync(h,b)}catch(D){$.error=D}return $},generateContentHash(h,b){let $=(0,Ir.createHash)("sha1").update(h).digest("hex").toLowerCase();return typeof b=="number"&&($=$.slice(0,b)),Promise.resolve($)},generateFileHash(h,b){return new Promise(($,D)=>{let A=(0,Ir.createHash)("sha1");de.default.createReadStream(h).on("error",I=>D(I)).on("data",I=>A.update(I)).on("end",()=>{let I=A.digest("hex").toLowerCase();typeof b=="number"&&(I=I.slice(0,b)),$(I)})})},copy:ri,details:{cpuModel:(Array.isArray(i)&&i.length>0?i[0]&&i[0].model:"")||"",freemem(){return(0,it.freemem)()},platform:a==="darwin"||a==="linux"?a:a==="win32"?"windows":"",release:(0,it.release)(),totalmem:(0,it.totalmem)()}},S=new Wn;return m.lazyRequire=new Un(S,{"@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",p),e.on("exit",p),m}0&&(module.exports={createNodeLogger,createNodeSys,setupNodeProcess});
|
|
64
|
+
`;c=c.replace(e,r.red(e)),c=c.replace(t,r.green(t)),c=c.replace(n,r.cyan(n)),c=c.replace(Pr,r.dim(Pr)),console.log(c)}var uu="\u2192",du="\u256D",fu="\u256E",pu="\u2570",hu="\u256F",qi="\u2502",_i="\u2500",Xn=2,eo=" ";var lo=require("events"),co=require("os");var oo=be(require("child_process")),ao=require("events"),Gn=class extends ao.EventEmitter{constructor(t,n){super();this.id=t;this.tasks=new Map;this.exitCode=null;this.processQueue=!0;this.sendQueue=[];this.stopped=!1;this.successfulMessage=!1;this.totalTasksAssigned=0;this.fork(n)}fork(t){let s={execArgv:process.execArgv.filter(i=>!/^--(debug|inspect)/.test(i)),env:process.env,cwd:process.cwd(),silent:!0};this.childProcess=oo.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(Ut)),this.tasks.clear(),this.successfulMessage?(this.childProcess.send({exit:!0}),setTimeout(()=>{this.exitCode===null&&this.childProcess.kill("SIGKILL")},100)):this.childProcess.kill("SIGKILL")}};var Jn=class extends lo.EventEmitter{constructor(t,n){super();this.forkModulePath=t;this.workerIds=0;this.stencilId=0;this.isEnding=!1;this.taskQueue=[];this.workers=[];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)}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 Gn(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=mu(this.workers);if(!t)break;t.run(this.taskQueue.shift())}}send(...t){return this.isEnding?Promise.reject(Ut):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(Ut)),t.tasks.clear();this.taskQueue.length=0}destroy(){if(!this.isEnding){this.isEnding=!0;for(let n of this.taskQueue)n.reject(Ut);this.taskQueue.length=0;let t=this.workers.map(n=>n.id);for(let n of t)this.stopWorker(n)}}};function mu(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 ho(r={}){var T;let e=(T=r==null?void 0:r.process)!=null?T:global.process,t=r==null?void 0:r.logger,n=new Set,s=[],i=(0,ot.cpus)(),o=i.length,a=(0,ot.platform)(),u=fe.default.join(__dirname,"..","..","compiler","stencil.js"),c=fe.default.join(__dirname,"..","..","dev-server","index.js"),p=()=>{let h=[],b;for(;_r(b=s.pop());)try{let $=b();h.push($)}catch{}return Promise.all(h).then(()=>{})},m={name:"node",version:e.versions.node,access(h){return new Promise(b=>{de.default.access(h,$=>b(!$))})},accessSync(h){let b=!1;try{de.default.accessSync(h),b=!0}catch{}return b},addDestroy(h){n.add(h)},removeDestroy(h){n.delete(h)},applyPrerenderGlobalPatch(h){if(typeof global.fetch!="function"){let b=require(fe.default.join(__dirname,"node-fetch.js"));global.fetch=($,D)=>{if(typeof $=="string"){let A=new URL($,h.devServerHostUrl).href;return b.fetch(A,D)}else return $.url=new URL($.url,h.devServerHostUrl).href,b.fetch($,D)},global.Headers=b.Headers,global.Request=b.Request,global.Response=b.Response,global.FetchError=b.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,b)=>{let $=require(fe.default.join(__dirname,"node-fetch.js"));if(typeof h=="string"){let D=new URL(h).href;return $.fetch(D,b)}else return h.url=new URL(h.url).href,$.fetch(h,b)},checkVersion:so,copyFile(h,b){return new Promise($=>{de.default.copyFile(h,b,D=>{$(!D)})})},createDir(h,b){return new Promise($=>{b?de.default.mkdir(h,b,D=>{$({basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,newDirs:[],error:D})}):de.default.mkdir(h,D=>{$({basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,newDirs:[],error:D})})})},createDirSync(h,b){let $={basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,newDirs:[],error:null};try{de.default.mkdirSync(h,b)}catch(D){$.error=D}return $},createWorkerController(h){let b=fe.default.join(__dirname,"worker.js");return new Jn(b,h)},async destroy(){let h=[];n.forEach(b=>{try{let $=b();$&&typeof $.then=="function"&&h.push($)}catch($){console.error(`node sys destroy: ${$}`)}}),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:m.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 p(),(0,fo.default)(h)},getCurrentDirectory(){return ye(e.cwd())},getCompilerExecutingPath(){return u},getDevServerExecutingPath(){return c},getEnvironmentVar(h){return process.env[h]},getLocalModulePath(){return null},getRemoteModuleUrl(){return null},glob:br,hardwareConcurrency:o,isSymbolicLink(h){return new Promise(b=>{try{de.default.lstat(h,($,D)=>{b($?!1:D.isSymbolicLink())})}catch{b(!1)}})},nextTick:e.nextTick,normalizePath:ye,onProcessInterrupt:h=>{s.includes(h)||s.push(h)},platformPath:fe.default,readDir(h){return new Promise(b=>{de.default.readdir(h,($,D)=>{b($?[]:D.map(A=>ye(fe.default.join(h,A))))})})},parseYarnLockFile(h){return(0,uo.parse)(h)},isTTY(){var h;return!!((h=process==null?void 0:process.stdout)!=null&&h.isTTY)},readDirSync(h){try{return de.default.readdirSync(h).map(b=>ye(fe.default.join(h,b)))}catch{}return[]},readFile(h,b){return b==="binary"?new Promise($=>{de.default.readFile(h,(D,A)=>{$(A)})}):new Promise($=>{de.default.readFile(h,"utf8",(D,A)=>{$(A)})})},readFileSync(h){try{return de.default.readFileSync(h,"utf8")}catch{}},homeDir(){try{return po.homedir()}catch{}},realpath(h){return new Promise(b=>{de.default.realpath(h,"utf8",($,D)=>{b({path:D,error:$})})})},realpathSync(h){let b={path:void 0,error:null};try{b.path=de.default.realpathSync(h,"utf8")}catch($){b.error=$}return b},rename(h,b){return new Promise($=>{de.default.rename(h,b,D=>{$({oldPath:h,newPath:b,error:D,oldDirs:[],oldFiles:[],newDirs:[],newFiles:[],renamed:[],isFile:!1,isDirectory:!1})})})},resolvePath(h){return ye(h)},removeDir(h,b){return new Promise($=>{!!(b&&b.recursive)?de.default.rm(h,{recursive:!0,force:!0},A=>{$({basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:A})}):de.default.rmdir(h,A=>{$({basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:A})})})},removeDirSync(h,b){try{return!!(b&&b.recursive)?de.default.rmSync(h,{recursive:!0,force:!0}):de.default.rmdirSync(h),{basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:null}}catch($){return{basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,removedDirs:[],removedFiles:[],error:$}}},removeFile(h){return new Promise(b=>{de.default.unlink(h,$=>{b({basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,error:$})})})},removeFileSync(h){let b={basename:fe.default.basename(h),dirname:fe.default.dirname(h),path:h,error:null};try{de.default.unlinkSync(h)}catch($){b.error=$}return b},setupCompiler(h){let b=h.ts,$=b.sys.watchDirectory,D=b.sys.watchFile;m.watchTimeout=80,m.events=Vs(),m.watchDirectory=(A,I,w)=>{t==null||t.debug(`NODE_SYS_DEBUG::watchDir ${A}`);let g=$(A,C=>{t==null||t.debug(`NODE_SYS_DEBUG::watchDir:callback dir=${A} changedPath=${C}`),I(ye(C),"fileUpdate")},w),x=()=>{g.close()};return m.addDestroy(x),{close(){m.removeDestroy(x),g.close()}}},m.watchFile=(A,I)=>{t==null||t.debug(`NODE_SYS_DEBUG::watchFile ${A}`);let w=D(A,(x,C)=>{x=ye(x),C===b.FileWatcherEventKind.Created?(I(x,"fileAdd"),m.events.emit("fileAdd",x)):C===b.FileWatcherEventKind.Changed?(I(x,"fileUpdate"),m.events.emit("fileUpdate",x)):C===b.FileWatcherEventKind.Deleted&&(I(x,"fileDelete"),m.events.emit("fileDelete",x))},250,{watchFile:b.WatchFileKind.FixedPollingInterval,fallbackPolling:b.PollingWatchKind.FixedInterval}),g=()=>{w.close()};return m.addDestroy(g),{close(){m.removeDestroy(g),w.close()}}}},stat(h){return new Promise(b=>{de.default.stat(h,($,D)=>{b($?{isDirectory:!1,isFile:!1,isSymbolicLink:!1,size:0,mtimeMs:0,error:$}:{isDirectory:D.isDirectory(),isFile:D.isFile(),isSymbolicLink:D.isSymbolicLink(),size:D.size,mtimeMs:D.mtimeMs,error:null})})})},statSync(h){try{let b=de.default.statSync(h);return{isDirectory:b.isDirectory(),isFile:b.isFile(),isSymbolicLink:b.isSymbolicLink(),size:b.size,mtimeMs:b.mtimeMs,error:null}}catch(b){return{isDirectory:!1,isFile:!1,isSymbolicLink:!1,size:0,mtimeMs:0,error:b}}},tmpDirSync(){return(0,ot.tmpdir)()},writeFile(h,b){return new Promise($=>{de.default.writeFile(h,b,D=>{$({path:h,error:D})})})},writeFileSync(h,b){let $={path:h,error:null};try{de.default.writeFileSync(h,b)}catch(D){$.error=D}return $},generateContentHash(h,b){let $=(0,Ir.createHash)("sha1").update(h).digest("hex").toLowerCase();return typeof b=="number"&&($=$.slice(0,b)),Promise.resolve($)},generateFileHash(h,b){return new Promise(($,D)=>{let A=(0,Ir.createHash)("sha1");de.default.createReadStream(h).on("error",I=>D(I)).on("data",I=>A.update(I)).on("end",()=>{let I=A.digest("hex").toLowerCase();typeof b=="number"&&(I=I.slice(0,b)),$(I)})})},copy:ri,details:{cpuModel:(Array.isArray(i)&&i.length>0?i[0]&&i[0].model:"")||"",freemem(){return(0,ot.freemem)()},platform:a==="darwin"||a==="linux"?a:a==="win32"?"windows":"",release:(0,ot.release)(),totalmem:(0,ot.totalmem)()}},S=new Wn;return m.lazyRequire=new Un(S,{"@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",p),e.on("exit",p),m}0&&(module.exports={createNodeLogger,createNodeSys,setupNodeProcess});
|