@turbo/codemod 1.10.13-canary.0 → 1.10.13-canary.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/dist/cli.js +102 -102
- package/dist/transforms/add-package-manager.js +96 -96
- package/dist/transforms/clean-globs.js +36 -36
- package/dist/transforms/migrate-env-var-dependencies.js +41 -41
- package/dist/transforms/set-default-outputs.js +43 -43
- package/dist/transforms/stabilize-env-mode.js +40 -40
- package/dist/transforms/transform-env-literals-to-wildcards.js +41 -41
- package/package.json +9 -9
@@ -1,75 +1,75 @@
|
|
1
|
-
"use strict";var Ns=Object.create;var Ve=Object.defineProperty;var Ms=Object.getOwnPropertyDescriptor;var js=Object.getOwnPropertyNames;var $s=Object.getPrototypeOf,Hs=Object.prototype.hasOwnProperty;var Us=(t,l)=>{for(var n in l)Ve(t,n,{get:l[n],enumerable:!0})},Sn=(t,l,n,s)=>{if(l&&typeof l=="object"||typeof l=="function")for(let i of js(l))!Hs.call(t,i)&&i!==n&&Ve(t,i,{get:()=>l[i],enumerable:!(s=Ms(l,i))||s.enumerable});return t};var Wt=(t,l,n)=>(n=t!=null?Ns($s(t)):{},Sn(l||!t||!t.__esModule?Ve(n,"default",{value:t,enumerable:!0}):n,t)),Gs=t=>Sn(Ve({},"__esModule",{value:!0}),t);var Pp={};Us(Pp,{default:()=>Bp,hasLegacyEnvVarDependencies:()=>_n,migrateConfig:()=>wn,migrateDependencies:()=>Dn,migrateGlobal:()=>Ps,migratePipeline:()=>Bs,transformer:()=>Is});module.exports=Gs(Pp);var gr=Wt(require("fs-extra")),En=Wt(require("path"));var qs=Object.create,br=Object.defineProperty,zs=Object.getOwnPropertyDescriptor,Ws=Object.getOwnPropertyNames,Vs=Object.getPrototypeOf,Ys=Object.prototype.hasOwnProperty,Z=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(l,n)=>(typeof require!="undefined"?require:l)[n]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')}),Ks=(t,l)=>()=>(t&&(l=t(t=0)),l),N=(t,l)=>()=>(l||t((l={exports:{}}).exports,l),l.exports),An=(t,l)=>{for(var n in l)br(t,n,{get:l[n],enumerable:!0})},Js=(t,l,n,s)=>{if(l&&typeof l=="object"||typeof l=="function")for(let i of Ws(l))!Ys.call(t,i)&&i!==n&&br(t,i,{get:()=>l[i],enumerable:!(s=zs(l,i))||s.enumerable});return t},Ot=(t,l,n)=>(n=t!=null?qs(Vs(t)):{},Js(l||!t||!t.__esModule?br(n,"default",{value:t,enumerable:!0}):n,t)),B=Ks(()=>{});var Zs=N((t,l)=>{"use strict";B();var n=(s,i)=>{for(let p of Reflect.ownKeys(i))Object.defineProperty(s,p,Object.getOwnPropertyDescriptor(i,p));return s};l.exports=n,l.exports.default=n}),Ye=N((t,l)=>{"use strict";B();var n=Zs(),s=new WeakMap,i=(p,u={})=>{if(typeof p!="function")throw new TypeError("Expected a function");let r,e=0,f=p.displayName||p.name||"<anonymous>",a=function(...c){if(s.set(a,++e),e===1)r=p.apply(this,c),p=null;else if(u.throw===!0)throw new Error(`Function \`${f}\` can only be called once`);return r};return n(a,p),s.set(a,e),a};l.exports=i,l.exports.default=i,l.exports.callCount=p=>{if(!s.has(p))throw new Error(`The given function \`${p.name}\` is not wrapped by the \`onetime\` package`);return s.get(p)}}),Xs=N((t,l)=>{B(),l.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&l.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&l.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),Ke=N((t,l)=>{B();var n=global.process,s=function(y){return y&&typeof y=="object"&&typeof y.removeListener=="function"&&typeof y.emit=="function"&&typeof y.reallyExit=="function"&&typeof y.listeners=="function"&&typeof y.kill=="function"&&typeof y.pid=="number"&&typeof y.on=="function"};s(n)?(i=Z("assert"),p=Xs(),u=/^win/i.test(n.platform),r=Z("events"),typeof r!="function"&&(r=r.EventEmitter),n.__signal_exit_emitter__?e=n.__signal_exit_emitter__:(e=n.__signal_exit_emitter__=new r,e.count=0,e.emitted={}),e.infinite||(e.setMaxListeners(1/0),e.infinite=!0),l.exports=function(y,D){if(!s(global.process))return function(){};i.equal(typeof y,"function","a callback must be provided for exit handler"),o===!1&&d();var w="exit";D&&D.alwaysLast&&(w="afterexit");var v=function(){e.removeListener(w,y),e.listeners("exit").length===0&&e.listeners("afterexit").length===0&&f()};return e.on(w,y),v},f=function(){!o||!s(global.process)||(o=!1,p.forEach(function(y){try{n.removeListener(y,c[y])}catch{}}),n.emit=b,n.reallyExit=h,e.count-=1)},l.exports.unload=f,a=function(y,D,w){e.emitted[y]||(e.emitted[y]=!0,e.emit(y,D,w))},c={},p.forEach(function(y){c[y]=function(){if(s(global.process)){var D=n.listeners(y);D.length===e.count&&(f(),a("exit",null,y),a("afterexit",null,y),u&&y==="SIGHUP"&&(y="SIGINT"),n.kill(n.pid,y))}}}),l.exports.signals=function(){return p},o=!1,d=function(){o||!s(global.process)||(o=!0,e.count+=1,p=p.filter(function(y){try{return n.on(y,c[y]),!0}catch{return!1}}),n.emit=E,n.reallyExit=g)},l.exports.load=d,h=n.reallyExit,g=function(y){!s(global.process)||(n.exitCode=y||0,a("exit",n.exitCode,null),a("afterexit",n.exitCode,null),h.call(n,n.exitCode))},b=n.emit,E=function(y,D){if(y==="exit"&&s(global.process)){D!==void 0&&(n.exitCode=D);var w=b.apply(this,arguments);return a("exit",n.exitCode,null),a("afterexit",n.exitCode,null),w}else return b.apply(this,arguments)}):l.exports=function(){return function(){}};var i,p,u,r,e,f,a,c,o,d,h,g,b,E});var Qs=N((t,l)=>{"use strict";B();var n=/[|\\{}()[\]^$+*?.]/g;l.exports=function(s){if(typeof s!="string")throw new TypeError("Expected a string");return s.replace(n,"\\$&")}}),to=N((t,l)=>{"use strict";B(),l.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),Cn=N((t,l)=>{B();var n=to(),s={};for(i in n)n.hasOwnProperty(i)&&(s[n[i]]=i);var i,p=l.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(e in p)if(p.hasOwnProperty(e)){if(!("channels"in p[e]))throw new Error("missing channels property: "+e);if(!("labels"in p[e]))throw new Error("missing channel labels property: "+e);if(p[e].labels.length!==p[e].channels)throw new Error("channel and label counts mismatch: "+e);u=p[e].channels,r=p[e].labels,delete p[e].channels,delete p[e].labels,Object.defineProperty(p[e],"channels",{value:u}),Object.defineProperty(p[e],"labels",{value:r})}var u,r,e;p.rgb.hsl=function(a){var c=a[0]/255,o=a[1]/255,d=a[2]/255,h=Math.min(c,o,d),g=Math.max(c,o,d),b=g-h,E,y,D;return g===h?E=0:c===g?E=(o-d)/b:o===g?E=2+(d-c)/b:d===g&&(E=4+(c-o)/b),E=Math.min(E*60,360),E<0&&(E+=360),D=(h+g)/2,g===h?y=0:D<=.5?y=b/(g+h):y=b/(2-g-h),[E,y*100,D*100]},p.rgb.hsv=function(a){var c,o,d,h,g,b=a[0]/255,E=a[1]/255,y=a[2]/255,D=Math.max(b,E,y),w=D-Math.min(b,E,y),v=function(m){return(D-m)/6/w+1/2};return w===0?h=g=0:(g=w/D,c=v(b),o=v(E),d=v(y),b===D?h=d-o:E===D?h=1/3+c-d:y===D&&(h=2/3+o-c),h<0?h+=1:h>1&&(h-=1)),[h*360,g*100,D*100]},p.rgb.hwb=function(a){var c=a[0],o=a[1],d=a[2],h=p.rgb.hsl(a)[0],g=1/255*Math.min(c,Math.min(o,d));return d=1-1/255*Math.max(c,Math.max(o,d)),[h,g*100,d*100]},p.rgb.cmyk=function(a){var c=a[0]/255,o=a[1]/255,d=a[2]/255,h,g,b,E;return E=Math.min(1-c,1-o,1-d),h=(1-c-E)/(1-E)||0,g=(1-o-E)/(1-E)||0,b=(1-d-E)/(1-E)||0,[h*100,g*100,b*100,E*100]};function f(a,c){return Math.pow(a[0]-c[0],2)+Math.pow(a[1]-c[1],2)+Math.pow(a[2]-c[2],2)}p.rgb.keyword=function(a){var c=s[a];if(c)return c;var o=1/0,d;for(var h in n)if(n.hasOwnProperty(h)){var g=n[h],b=f(a,g);b<o&&(o=b,d=h)}return d},p.keyword.rgb=function(a){return n[a]},p.rgb.xyz=function(a){var c=a[0]/255,o=a[1]/255,d=a[2]/255;c=c>.04045?Math.pow((c+.055)/1.055,2.4):c/12.92,o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var h=c*.4124+o*.3576+d*.1805,g=c*.2126+o*.7152+d*.0722,b=c*.0193+o*.1192+d*.9505;return[h*100,g*100,b*100]},p.rgb.lab=function(a){var c=p.rgb.xyz(a),o=c[0],d=c[1],h=c[2],g,b,E;return o/=95.047,d/=100,h/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,h=h>.008856?Math.pow(h,1/3):7.787*h+16/116,g=116*d-16,b=500*(o-d),E=200*(d-h),[g,b,E]},p.hsl.rgb=function(a){var c=a[0]/360,o=a[1]/100,d=a[2]/100,h,g,b,E,y;if(o===0)return y=d*255,[y,y,y];d<.5?g=d*(1+o):g=d+o-d*o,h=2*d-g,E=[0,0,0];for(var D=0;D<3;D++)b=c+1/3*-(D-1),b<0&&b++,b>1&&b--,6*b<1?y=h+(g-h)*6*b:2*b<1?y=g:3*b<2?y=h+(g-h)*(2/3-b)*6:y=h,E[D]=y*255;return E},p.hsl.hsv=function(a){var c=a[0],o=a[1]/100,d=a[2]/100,h=o,g=Math.max(d,.01),b,E;return d*=2,o*=d<=1?d:2-d,h*=g<=1?g:2-g,E=(d+o)/2,b=d===0?2*h/(g+h):2*o/(d+o),[c,b*100,E*100]},p.hsv.rgb=function(a){var c=a[0]/60,o=a[1]/100,d=a[2]/100,h=Math.floor(c)%6,g=c-Math.floor(c),b=255*d*(1-o),E=255*d*(1-o*g),y=255*d*(1-o*(1-g));switch(d*=255,h){case 0:return[d,y,b];case 1:return[E,d,b];case 2:return[b,d,y];case 3:return[b,E,d];case 4:return[y,b,d];case 5:return[d,b,E]}},p.hsv.hsl=function(a){var c=a[0],o=a[1]/100,d=a[2]/100,h=Math.max(d,.01),g,b,E;return E=(2-o)*d,g=(2-o)*h,b=o*h,b/=g<=1?g:2-g,b=b||0,E/=2,[c,b*100,E*100]},p.hwb.rgb=function(a){var c=a[0]/360,o=a[1]/100,d=a[2]/100,h=o+d,g,b,E,y;h>1&&(o/=h,d/=h),g=Math.floor(6*c),b=1-d,E=6*c-g,g&1&&(E=1-E),y=o+E*(b-o);var D,w,v;switch(g){default:case 6:case 0:D=b,w=y,v=o;break;case 1:D=y,w=b,v=o;break;case 2:D=o,w=b,v=y;break;case 3:D=o,w=y,v=b;break;case 4:D=y,w=o,v=b;break;case 5:D=b,w=o,v=y;break}return[D*255,w*255,v*255]},p.cmyk.rgb=function(a){var c=a[0]/100,o=a[1]/100,d=a[2]/100,h=a[3]/100,g,b,E;return g=1-Math.min(1,c*(1-h)+h),b=1-Math.min(1,o*(1-h)+h),E=1-Math.min(1,d*(1-h)+h),[g*255,b*255,E*255]},p.xyz.rgb=function(a){var c=a[0]/100,o=a[1]/100,d=a[2]/100,h,g,b;return h=c*3.2406+o*-1.5372+d*-.4986,g=c*-.9689+o*1.8758+d*.0415,b=c*.0557+o*-.204+d*1.057,h=h>.0031308?1.055*Math.pow(h,1/2.4)-.055:h*12.92,g=g>.0031308?1.055*Math.pow(g,1/2.4)-.055:g*12.92,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b*12.92,h=Math.min(Math.max(0,h),1),g=Math.min(Math.max(0,g),1),b=Math.min(Math.max(0,b),1),[h*255,g*255,b*255]},p.xyz.lab=function(a){var c=a[0],o=a[1],d=a[2],h,g,b;return c/=95.047,o/=100,d/=108.883,c=c>.008856?Math.pow(c,1/3):7.787*c+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,h=116*o-16,g=500*(c-o),b=200*(o-d),[h,g,b]},p.lab.xyz=function(a){var c=a[0],o=a[1],d=a[2],h,g,b;g=(c+16)/116,h=o/500+g,b=g-d/200;var E=Math.pow(g,3),y=Math.pow(h,3),D=Math.pow(b,3);return g=E>.008856?E:(g-16/116)/7.787,h=y>.008856?y:(h-16/116)/7.787,b=D>.008856?D:(b-16/116)/7.787,h*=95.047,g*=100,b*=108.883,[h,g,b]},p.lab.lch=function(a){var c=a[0],o=a[1],d=a[2],h,g,b;return h=Math.atan2(d,o),g=h*360/2/Math.PI,g<0&&(g+=360),b=Math.sqrt(o*o+d*d),[c,b,g]},p.lch.lab=function(a){var c=a[0],o=a[1],d=a[2],h,g,b;return b=d/360*2*Math.PI,h=o*Math.cos(b),g=o*Math.sin(b),[c,h,g]},p.rgb.ansi16=function(a){var c=a[0],o=a[1],d=a[2],h=1 in arguments?arguments[1]:p.rgb.hsv(a)[2];if(h=Math.round(h/50),h===0)return 30;var g=30+(Math.round(d/255)<<2|Math.round(o/255)<<1|Math.round(c/255));return h===2&&(g+=60),g},p.hsv.ansi16=function(a){return p.rgb.ansi16(p.hsv.rgb(a),a[2])},p.rgb.ansi256=function(a){var c=a[0],o=a[1],d=a[2];if(c===o&&o===d)return c<8?16:c>248?231:Math.round((c-8)/247*24)+232;var h=16+36*Math.round(c/255*5)+6*Math.round(o/255*5)+Math.round(d/255*5);return h},p.ansi16.rgb=function(a){var c=a%10;if(c===0||c===7)return a>50&&(c+=3.5),c=c/10.5*255,[c,c,c];var o=(~~(a>50)+1)*.5,d=(c&1)*o*255,h=(c>>1&1)*o*255,g=(c>>2&1)*o*255;return[d,h,g]},p.ansi256.rgb=function(a){if(a>=232){var c=(a-232)*10+8;return[c,c,c]}a-=16;var o,d=Math.floor(a/36)/5*255,h=Math.floor((o=a%36)/6)/5*255,g=o%6/5*255;return[d,h,g]},p.rgb.hex=function(a){var c=((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255),o=c.toString(16).toUpperCase();return"000000".substring(o.length)+o},p.hex.rgb=function(a){var c=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!c)return[0,0,0];var o=c[0];c[0].length===3&&(o=o.split("").map(function(E){return E+E}).join(""));var d=parseInt(o,16),h=d>>16&255,g=d>>8&255,b=d&255;return[h,g,b]},p.rgb.hcg=function(a){var c=a[0]/255,o=a[1]/255,d=a[2]/255,h=Math.max(Math.max(c,o),d),g=Math.min(Math.min(c,o),d),b=h-g,E,y;return b<1?E=g/(1-b):E=0,b<=0?y=0:h===c?y=(o-d)/b%6:h===o?y=2+(d-c)/b:y=4+(c-o)/b+4,y/=6,y%=1,[y*360,b*100,E*100]},p.hsl.hcg=function(a){var c=a[1]/100,o=a[2]/100,d=1,h=0;return o<.5?d=2*c*o:d=2*c*(1-o),d<1&&(h=(o-.5*d)/(1-d)),[a[0],d*100,h*100]},p.hsv.hcg=function(a){var c=a[1]/100,o=a[2]/100,d=c*o,h=0;return d<1&&(h=(o-d)/(1-d)),[a[0],d*100,h*100]},p.hcg.rgb=function(a){var c=a[0]/360,o=a[1]/100,d=a[2]/100;if(o===0)return[d*255,d*255,d*255];var h=[0,0,0],g=c%1*6,b=g%1,E=1-b,y=0;switch(Math.floor(g)){case 0:h[0]=1,h[1]=b,h[2]=0;break;case 1:h[0]=E,h[1]=1,h[2]=0;break;case 2:h[0]=0,h[1]=1,h[2]=b;break;case 3:h[0]=0,h[1]=E,h[2]=1;break;case 4:h[0]=b,h[1]=0,h[2]=1;break;default:h[0]=1,h[1]=0,h[2]=E}return y=(1-o)*d,[(o*h[0]+y)*255,(o*h[1]+y)*255,(o*h[2]+y)*255]},p.hcg.hsv=function(a){var c=a[1]/100,o=a[2]/100,d=c+o*(1-c),h=0;return d>0&&(h=c/d),[a[0],h*100,d*100]},p.hcg.hsl=function(a){var c=a[1]/100,o=a[2]/100,d=o*(1-c)+.5*c,h=0;return d>0&&d<.5?h=c/(2*d):d>=.5&&d<1&&(h=c/(2*(1-d))),[a[0],h*100,d*100]},p.hcg.hwb=function(a){var c=a[1]/100,o=a[2]/100,d=c+o*(1-c);return[a[0],(d-c)*100,(1-d)*100]},p.hwb.hcg=function(a){var c=a[1]/100,o=a[2]/100,d=1-o,h=d-c,g=0;return h<1&&(g=(d-h)/(1-h)),[a[0],h*100,g*100]},p.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},p.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},p.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},p.gray.hsl=p.gray.hsv=function(a){return[0,0,a[0]]},p.gray.hwb=function(a){return[0,100,a[0]]},p.gray.cmyk=function(a){return[0,0,0,a[0]]},p.gray.lab=function(a){return[a[0],0,0]},p.gray.hex=function(a){var c=Math.round(a[0]/100*255)&255,o=(c<<16)+(c<<8)+c,d=o.toString(16).toUpperCase();return"000000".substring(d.length)+d},p.rgb.gray=function(a){var c=(a[0]+a[1]+a[2])/3;return[c/255*100]}}),eo=N((t,l)=>{B();var n=Cn();function s(){for(var r={},e=Object.keys(n),f=e.length,a=0;a<f;a++)r[e[a]]={distance:-1,parent:null};return r}function i(r){var e=s(),f=[r];for(e[r].distance=0;f.length;)for(var a=f.pop(),c=Object.keys(n[a]),o=c.length,d=0;d<o;d++){var h=c[d],g=e[h];g.distance===-1&&(g.distance=e[a].distance+1,g.parent=a,f.unshift(h))}return e}function p(r,e){return function(f){return e(r(f))}}function u(r,e){for(var f=[e[r].parent,r],a=n[e[r].parent][r],c=e[r].parent;e[c].parent;)f.unshift(e[c].parent),a=p(n[e[c].parent][c],a),c=e[c].parent;return a.conversion=f,a}l.exports=function(r){for(var e=i(r),f={},a=Object.keys(e),c=a.length,o=0;o<c;o++){var d=a[o],h=e[d];h.parent!==null&&(f[d]=u(d,e))}return f}}),ro=N((t,l)=>{B();var n=Cn(),s=eo(),i={},p=Object.keys(n);function u(e){var f=function(a){return a==null?a:(arguments.length>1&&(a=Array.prototype.slice.call(arguments)),e(a))};return"conversion"in e&&(f.conversion=e.conversion),f}function r(e){var f=function(a){if(a==null)return a;arguments.length>1&&(a=Array.prototype.slice.call(arguments));var c=e(a);if(typeof c=="object")for(var o=c.length,d=0;d<o;d++)c[d]=Math.round(c[d]);return c};return"conversion"in e&&(f.conversion=e.conversion),f}p.forEach(function(e){i[e]={},Object.defineProperty(i[e],"channels",{value:n[e].channels}),Object.defineProperty(i[e],"labels",{value:n[e].labels});var f=s(e),a=Object.keys(f);a.forEach(function(c){var o=f[c];i[e][c]=r(o),i[e][c].raw=u(o)})}),l.exports=i}),no=N((t,l)=>{"use strict";B();var n=ro(),s=(r,e)=>function(){return`\x1B[${r.apply(n,arguments)+e}m`},i=(r,e)=>function(){let f=r.apply(n,arguments);return`\x1B[${38+e};5;${f}m`},p=(r,e)=>function(){let f=r.apply(n,arguments);return`\x1B[${38+e};2;${f[0]};${f[1]};${f[2]}m`};function u(){let r=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.grey=e.color.gray;for(let c of Object.keys(e)){let o=e[c];for(let d of Object.keys(o)){let h=o[d];e[d]={open:`\x1B[${h[0]}m`,close:`\x1B[${h[1]}m`},o[d]=e[d],r.set(h[0],h[1])}Object.defineProperty(e,c,{value:o,enumerable:!1}),Object.defineProperty(e,"codes",{value:r,enumerable:!1})}let f=c=>c,a=(c,o,d)=>[c,o,d];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:s(f,0)},e.color.ansi256={ansi256:i(f,0)},e.color.ansi16m={rgb:p(a,0)},e.bgColor.ansi={ansi:s(f,10)},e.bgColor.ansi256={ansi256:i(f,10)},e.bgColor.ansi16m={rgb:p(a,10)};for(let c of Object.keys(n)){if(typeof n[c]!="object")continue;let o=n[c];c==="ansi16"&&(c="ansi"),"ansi16"in o&&(e.color.ansi[c]=s(o.ansi16,0),e.bgColor.ansi[c]=s(o.ansi16,10)),"ansi256"in o&&(e.color.ansi256[c]=i(o.ansi256,0),e.bgColor.ansi256[c]=i(o.ansi256,10)),"rgb"in o&&(e.color.ansi16m[c]=p(o.rgb,0),e.bgColor.ansi16m[c]=p(o.rgb,10))}return e}Object.defineProperty(l,"exports",{enumerable:!0,get:u})}),io=N((t,l)=>{"use strict";B(),l.exports=(n,s)=>{s=s||process.argv;let i=n.startsWith("-")?"":n.length===1?"-":"--",p=s.indexOf(i+n),u=s.indexOf("--");return p!==-1&&(u===-1?!0:p<u)}}),so=N((t,l)=>{"use strict";B();var n=Z("os"),s=io(),i=process.env,p;s("no-color")||s("no-colors")||s("color=false")?p=!1:(s("color")||s("colors")||s("color=true")||s("color=always"))&&(p=!0),"FORCE_COLOR"in i&&(p=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function u(f){return f===0?!1:{level:f,hasBasic:!0,has256:f>=2,has16m:f>=3}}function r(f){if(p===!1)return 0;if(s("color=16m")||s("color=full")||s("color=truecolor"))return 3;if(s("color=256"))return 2;if(f&&!f.isTTY&&p!==!0)return 0;let a=p?1:0;if(process.platform==="win32"){let c=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(c[0])>=10&&Number(c[2])>=10586?Number(c[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(c=>c in i)||i.CI_NAME==="codeship"?1:a;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if(i.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in i){let c=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return c>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,a)}function e(f){let a=r(f);return u(a)}l.exports={supportsColor:e,stdout:e(process.stdout),stderr:e(process.stderr)}}),oo=N((t,l)=>{"use strict";B();var n=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,s=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,p=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,u=new Map([["n",`
|
2
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function r(c){return c[0]==="u"&&c.length===5||c[0]==="x"&&c.length===3?String.fromCharCode(parseInt(c.slice(1),16)):u.get(c)||c}function e(c,o){let d=[],h=o.trim().split(/\s*,\s*/g),g;for(let b of h)if(!isNaN(b))d.push(Number(b));else if(g=b.match(i))d.push(g[2].replace(p,(E,y,D)=>y?r(y):D));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${c}')`);return d}function f(c){s.lastIndex=0;let o=[],d;for(;(d=s.exec(c))!==null;){let h=d[1];if(d[2]){let g=e(h,d[2]);o.push([h].concat(g))}else o.push([h])}return o}function a(c,o){let d={};for(let g of o)for(let b of g.styles)d[b[0]]=g.inverse?null:b.slice(1);let h=c;for(let g of Object.keys(d))if(Array.isArray(d[g])){if(!(g in h))throw new Error(`Unknown Chalk style: ${g}`);d[g].length>0?h=h[g].apply(h,d[g]):h=h[g]}return h}l.exports=(c,o)=>{let d=[],h=[],g=[];if(o.replace(n,(b,E,y,D,w,v)=>{if(E)g.push(r(E));else if(D){let m=g.join("");g=[],h.push(d.length===0?m:a(c,d)(m)),d.push({inverse:y,styles:f(D)})}else if(w){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");h.push(a(c,d)(g.join(""))),g=[],d.pop()}else g.push(v)}),h.push(g.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return h.join("")}}),he=N((t,l)=>{"use strict";B();var n=Qs(),s=no(),i=so().stdout,p=oo(),u=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],e=new Set(["gray"]),f=Object.create(null);function a(b,E){E=E||{};let y=i?i.level:0;b.level=E.level===void 0?y:E.level,b.enabled="enabled"in E?E.enabled:b.level>0}function c(b){if(!this||!(this instanceof c)||this.template){let E={};return a(E,b),E.template=function(){let y=[].slice.call(arguments);return g.apply(null,[E.template].concat(y))},Object.setPrototypeOf(E,c.prototype),Object.setPrototypeOf(E.template,E),E.template.constructor=c,E.template}a(this,b)}u&&(s.blue.open="\x1B[94m");for(let b of Object.keys(s))s[b].closeRe=new RegExp(n(s[b].close),"g"),f[b]={get(){let E=s[b];return d.call(this,this._styles?this._styles.concat(E):[E],this._empty,b)}};f.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},s.color.closeRe=new RegExp(n(s.color.close),"g");for(let b of Object.keys(s.color.ansi))e.has(b)||(f[b]={get(){let E=this.level;return function(){let y={open:s.color[r[E]][b].apply(null,arguments),close:s.color.close,closeRe:s.color.closeRe};return d.call(this,this._styles?this._styles.concat(y):[y],this._empty,b)}}});s.bgColor.closeRe=new RegExp(n(s.bgColor.close),"g");for(let b of Object.keys(s.bgColor.ansi)){if(e.has(b))continue;let E="bg"+b[0].toUpperCase()+b.slice(1);f[E]={get(){let y=this.level;return function(){let D={open:s.bgColor[r[y]][b].apply(null,arguments),close:s.bgColor.close,closeRe:s.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(D):[D],this._empty,b)}}}}var o=Object.defineProperties(()=>{},f);function d(b,E,y){let D=function(){return h.apply(D,arguments)};D._styles=b,D._empty=E;let w=this;return Object.defineProperty(D,"level",{enumerable:!0,get(){return w.level},set(v){w.level=v}}),Object.defineProperty(D,"enabled",{enumerable:!0,get(){return w.enabled},set(v){w.enabled=v}}),D.hasGrey=this.hasGrey||y==="gray"||y==="grey",D.__proto__=o,D}function h(){let b=arguments,E=b.length,y=String(arguments[0]);if(E===0)return"";if(E>1)for(let w=1;w<E;w++)y+=" "+b[w];if(!this.enabled||this.level<=0||!y)return this._empty?"":y;let D=s.dim.open;u&&this.hasGrey&&(s.dim.open="");for(let w of this._styles.slice().reverse())y=w.open+y.replace(w.closeRe,w.open)+w.close,y=y.replace(/\r?\n/g,`${w.close}$&${w.open}`);return s.dim.open=D,y}function g(b,E){if(!Array.isArray(E))return[].slice.call(arguments,1).join(" ");let y=[].slice.call(arguments,2),D=[E.raw[0]];for(let w=1;w<E.length;w++)D.push(String(y[w-1]).replace(/[{}\\]/g,"\\$&")),D.push(String(E.raw[w]));return p(b,D.join(""))}Object.defineProperties(c.prototype,f),l.exports=c(),l.exports.supportsColor=i,l.exports.default=l.exports});var uo=N((t,l)=>{"use strict";B(),l.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),xn=N((t,l)=>{B();var n=uo(),s={};for(let u of Object.keys(n))s[n[u]]=u;var i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};l.exports=i;for(let u of Object.keys(i)){if(!("channels"in i[u]))throw new Error("missing channels property: "+u);if(!("labels"in i[u]))throw new Error("missing channel labels property: "+u);if(i[u].labels.length!==i[u].channels)throw new Error("channel and label counts mismatch: "+u);let{channels:r,labels:e}=i[u];delete i[u].channels,delete i[u].labels,Object.defineProperty(i[u],"channels",{value:r}),Object.defineProperty(i[u],"labels",{value:e})}i.rgb.hsl=function(u){let r=u[0]/255,e=u[1]/255,f=u[2]/255,a=Math.min(r,e,f),c=Math.max(r,e,f),o=c-a,d,h;c===a?d=0:r===c?d=(e-f)/o:e===c?d=2+(f-r)/o:f===c&&(d=4+(r-e)/o),d=Math.min(d*60,360),d<0&&(d+=360);let g=(a+c)/2;return c===a?h=0:g<=.5?h=o/(c+a):h=o/(2-c-a),[d,h*100,g*100]},i.rgb.hsv=function(u){let r,e,f,a,c,o=u[0]/255,d=u[1]/255,h=u[2]/255,g=Math.max(o,d,h),b=g-Math.min(o,d,h),E=function(y){return(g-y)/6/b+1/2};return b===0?(a=0,c=0):(c=b/g,r=E(o),e=E(d),f=E(h),o===g?a=f-e:d===g?a=1/3+r-f:h===g&&(a=2/3+e-r),a<0?a+=1:a>1&&(a-=1)),[a*360,c*100,g*100]},i.rgb.hwb=function(u){let r=u[0],e=u[1],f=u[2],a=i.rgb.hsl(u)[0],c=1/255*Math.min(r,Math.min(e,f));return f=1-1/255*Math.max(r,Math.max(e,f)),[a,c*100,f*100]},i.rgb.cmyk=function(u){let r=u[0]/255,e=u[1]/255,f=u[2]/255,a=Math.min(1-r,1-e,1-f),c=(1-r-a)/(1-a)||0,o=(1-e-a)/(1-a)||0,d=(1-f-a)/(1-a)||0;return[c*100,o*100,d*100,a*100]};function p(u,r){return(u[0]-r[0])**2+(u[1]-r[1])**2+(u[2]-r[2])**2}i.rgb.keyword=function(u){let r=s[u];if(r)return r;let e=1/0,f;for(let a of Object.keys(n)){let c=n[a],o=p(u,c);o<e&&(e=o,f=a)}return f},i.keyword.rgb=function(u){return n[u]},i.rgb.xyz=function(u){let r=u[0]/255,e=u[1]/255,f=u[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,f=f>.04045?((f+.055)/1.055)**2.4:f/12.92;let a=r*.4124+e*.3576+f*.1805,c=r*.2126+e*.7152+f*.0722,o=r*.0193+e*.1192+f*.9505;return[a*100,c*100,o*100]},i.rgb.lab=function(u){let r=i.rgb.xyz(u),e=r[0],f=r[1],a=r[2];e/=95.047,f/=100,a/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,f=f>.008856?f**(1/3):7.787*f+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;let c=116*f-16,o=500*(e-f),d=200*(f-a);return[c,o,d]},i.hsl.rgb=function(u){let r=u[0]/360,e=u[1]/100,f=u[2]/100,a,c,o;if(e===0)return o=f*255,[o,o,o];f<.5?a=f*(1+e):a=f+e-f*e;let d=2*f-a,h=[0,0,0];for(let g=0;g<3;g++)c=r+1/3*-(g-1),c<0&&c++,c>1&&c--,6*c<1?o=d+(a-d)*6*c:2*c<1?o=a:3*c<2?o=d+(a-d)*(2/3-c)*6:o=d,h[g]=o*255;return h},i.hsl.hsv=function(u){let r=u[0],e=u[1]/100,f=u[2]/100,a=e,c=Math.max(f,.01);f*=2,e*=f<=1?f:2-f,a*=c<=1?c:2-c;let o=(f+e)/2,d=f===0?2*a/(c+a):2*e/(f+e);return[r,d*100,o*100]},i.hsv.rgb=function(u){let r=u[0]/60,e=u[1]/100,f=u[2]/100,a=Math.floor(r)%6,c=r-Math.floor(r),o=255*f*(1-e),d=255*f*(1-e*c),h=255*f*(1-e*(1-c));switch(f*=255,a){case 0:return[f,h,o];case 1:return[d,f,o];case 2:return[o,f,h];case 3:return[o,d,f];case 4:return[h,o,f];case 5:return[f,o,d]}},i.hsv.hsl=function(u){let r=u[0],e=u[1]/100,f=u[2]/100,a=Math.max(f,.01),c,o;o=(2-e)*f;let d=(2-e)*a;return c=e*a,c/=d<=1?d:2-d,c=c||0,o/=2,[r,c*100,o*100]},i.hwb.rgb=function(u){let r=u[0]/360,e=u[1]/100,f=u[2]/100,a=e+f,c;a>1&&(e/=a,f/=a);let o=Math.floor(6*r),d=1-f;c=6*r-o,o&1&&(c=1-c);let h=e+c*(d-e),g,b,E;switch(o){default:case 6:case 0:g=d,b=h,E=e;break;case 1:g=h,b=d,E=e;break;case 2:g=e,b=d,E=h;break;case 3:g=e,b=h,E=d;break;case 4:g=h,b=e,E=d;break;case 5:g=d,b=e,E=h;break}return[g*255,b*255,E*255]},i.cmyk.rgb=function(u){let r=u[0]/100,e=u[1]/100,f=u[2]/100,a=u[3]/100,c=1-Math.min(1,r*(1-a)+a),o=1-Math.min(1,e*(1-a)+a),d=1-Math.min(1,f*(1-a)+a);return[c*255,o*255,d*255]},i.xyz.rgb=function(u){let r=u[0]/100,e=u[1]/100,f=u[2]/100,a,c,o;return a=r*3.2406+e*-1.5372+f*-.4986,c=r*-.9689+e*1.8758+f*.0415,o=r*.0557+e*-.204+f*1.057,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=Math.min(Math.max(0,a),1),c=Math.min(Math.max(0,c),1),o=Math.min(Math.max(0,o),1),[a*255,c*255,o*255]},i.xyz.lab=function(u){let r=u[0],e=u[1],f=u[2];r/=95.047,e/=100,f/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,e=e>.008856?e**(1/3):7.787*e+16/116,f=f>.008856?f**(1/3):7.787*f+16/116;let a=116*e-16,c=500*(r-e),o=200*(e-f);return[a,c,o]},i.lab.xyz=function(u){let r=u[0],e=u[1],f=u[2],a,c,o;c=(r+16)/116,a=e/500+c,o=c-f/200;let d=c**3,h=a**3,g=o**3;return c=d>.008856?d:(c-16/116)/7.787,a=h>.008856?h:(a-16/116)/7.787,o=g>.008856?g:(o-16/116)/7.787,a*=95.047,c*=100,o*=108.883,[a,c,o]},i.lab.lch=function(u){let r=u[0],e=u[1],f=u[2],a;a=Math.atan2(f,e)*360/2/Math.PI,a<0&&(a+=360);let c=Math.sqrt(e*e+f*f);return[r,c,a]},i.lch.lab=function(u){let r=u[0],e=u[1],f=u[2]/360*2*Math.PI,a=e*Math.cos(f),c=e*Math.sin(f);return[r,a,c]},i.rgb.ansi16=function(u,r=null){let[e,f,a]=u,c=r===null?i.rgb.hsv(u)[2]:r;if(c=Math.round(c/50),c===0)return 30;let o=30+(Math.round(a/255)<<2|Math.round(f/255)<<1|Math.round(e/255));return c===2&&(o+=60),o},i.hsv.ansi16=function(u){return i.rgb.ansi16(i.hsv.rgb(u),u[2])},i.rgb.ansi256=function(u){let r=u[0],e=u[1],f=u[2];return r===e&&e===f?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(e/255*5)+Math.round(f/255*5)},i.ansi16.rgb=function(u){let r=u%10;if(r===0||r===7)return u>50&&(r+=3.5),r=r/10.5*255,[r,r,r];let e=(~~(u>50)+1)*.5,f=(r&1)*e*255,a=(r>>1&1)*e*255,c=(r>>2&1)*e*255;return[f,a,c]},i.ansi256.rgb=function(u){if(u>=232){let c=(u-232)*10+8;return[c,c,c]}u-=16;let r,e=Math.floor(u/36)/5*255,f=Math.floor((r=u%36)/6)/5*255,a=r%6/5*255;return[e,f,a]},i.rgb.hex=function(u){let r=(((Math.round(u[0])&255)<<16)+((Math.round(u[1])&255)<<8)+(Math.round(u[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r},i.hex.rgb=function(u){let r=u.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];let e=r[0];r[0].length===3&&(e=e.split("").map(d=>d+d).join(""));let f=parseInt(e,16),a=f>>16&255,c=f>>8&255,o=f&255;return[a,c,o]},i.rgb.hcg=function(u){let r=u[0]/255,e=u[1]/255,f=u[2]/255,a=Math.max(Math.max(r,e),f),c=Math.min(Math.min(r,e),f),o=a-c,d,h;return o<1?d=c/(1-o):d=0,o<=0?h=0:a===r?h=(e-f)/o%6:a===e?h=2+(f-r)/o:h=4+(r-e)/o,h/=6,h%=1,[h*360,o*100,d*100]},i.hsl.hcg=function(u){let r=u[1]/100,e=u[2]/100,f=e<.5?2*r*e:2*r*(1-e),a=0;return f<1&&(a=(e-.5*f)/(1-f)),[u[0],f*100,a*100]},i.hsv.hcg=function(u){let r=u[1]/100,e=u[2]/100,f=r*e,a=0;return f<1&&(a=(e-f)/(1-f)),[u[0],f*100,a*100]},i.hcg.rgb=function(u){let r=u[0]/360,e=u[1]/100,f=u[2]/100;if(e===0)return[f*255,f*255,f*255];let a=[0,0,0],c=r%1*6,o=c%1,d=1-o,h=0;switch(Math.floor(c)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=d,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=d,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=d}return h=(1-e)*f,[(e*a[0]+h)*255,(e*a[1]+h)*255,(e*a[2]+h)*255]},i.hcg.hsv=function(u){let r=u[1]/100,e=u[2]/100,f=r+e*(1-r),a=0;return f>0&&(a=r/f),[u[0],a*100,f*100]},i.hcg.hsl=function(u){let r=u[1]/100,e=u[2]/100*(1-r)+.5*r,f=0;return e>0&&e<.5?f=r/(2*e):e>=.5&&e<1&&(f=r/(2*(1-e))),[u[0],f*100,e*100]},i.hcg.hwb=function(u){let r=u[1]/100,e=u[2]/100,f=r+e*(1-r);return[u[0],(f-r)*100,(1-f)*100]},i.hwb.hcg=function(u){let r=u[1]/100,e=u[2]/100,f=1-e,a=f-r,c=0;return a<1&&(c=(f-a)/(1-a)),[u[0],a*100,c*100]},i.apple.rgb=function(u){return[u[0]/65535*255,u[1]/65535*255,u[2]/65535*255]},i.rgb.apple=function(u){return[u[0]/255*65535,u[1]/255*65535,u[2]/255*65535]},i.gray.rgb=function(u){return[u[0]/100*255,u[0]/100*255,u[0]/100*255]},i.gray.hsl=function(u){return[0,0,u[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(u){return[0,100,u[0]]},i.gray.cmyk=function(u){return[0,0,0,u[0]]},i.gray.lab=function(u){return[u[0],0,0]},i.gray.hex=function(u){let r=Math.round(u[0]/100*255)&255,e=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(e.length)+e},i.rgb.gray=function(u){return[(u[0]+u[1]+u[2])/3/255*100]}}),ao=N((t,l)=>{B();var n=xn();function s(){let r={},e=Object.keys(n);for(let f=e.length,a=0;a<f;a++)r[e[a]]={distance:-1,parent:null};return r}function i(r){let e=s(),f=[r];for(e[r].distance=0;f.length;){let a=f.pop(),c=Object.keys(n[a]);for(let o=c.length,d=0;d<o;d++){let h=c[d],g=e[h];g.distance===-1&&(g.distance=e[a].distance+1,g.parent=a,f.unshift(h))}}return e}function p(r,e){return function(f){return e(r(f))}}function u(r,e){let f=[e[r].parent,r],a=n[e[r].parent][r],c=e[r].parent;for(;e[c].parent;)f.unshift(e[c].parent),a=p(n[e[c].parent][c],a),c=e[c].parent;return a.conversion=f,a}l.exports=function(r){let e=i(r),f={},a=Object.keys(e);for(let c=a.length,o=0;o<c;o++){let d=a[o];e[d].parent!==null&&(f[d]=u(d,e))}return f}}),lo=N((t,l)=>{B();var n=xn(),s=ao(),i={},p=Object.keys(n);function u(e){let f=function(...a){let c=a[0];return c==null?c:(c.length>1&&(a=c),e(a))};return"conversion"in e&&(f.conversion=e.conversion),f}function r(e){let f=function(...a){let c=a[0];if(c==null)return c;c.length>1&&(a=c);let o=e(a);if(typeof o=="object")for(let d=o.length,h=0;h<d;h++)o[h]=Math.round(o[h]);return o};return"conversion"in e&&(f.conversion=e.conversion),f}p.forEach(e=>{i[e]={},Object.defineProperty(i[e],"channels",{value:n[e].channels}),Object.defineProperty(i[e],"labels",{value:n[e].labels});let f=s(e);Object.keys(f).forEach(a=>{let c=f[a];i[e][a]=r(c),i[e][a].raw=u(c)})}),l.exports=i}),Fn=N((t,l)=>{"use strict";B();var n=(c,o)=>(...d)=>`\x1B[${c(...d)+o}m`,s=(c,o)=>(...d)=>{let h=c(...d);return`\x1B[${38+o};5;${h}m`},i=(c,o)=>(...d)=>{let h=c(...d);return`\x1B[${38+o};2;${h[0]};${h[1]};${h[2]}m`},p=c=>c,u=(c,o,d)=>[c,o,d],r=(c,o,d)=>{Object.defineProperty(c,o,{get:()=>{let h=d();return Object.defineProperty(c,o,{value:h,enumerable:!0,configurable:!0}),h},enumerable:!0,configurable:!0})},e,f=(c,o,d,h)=>{e===void 0&&(e=lo());let g=h?10:0,b={};for(let[E,y]of Object.entries(e)){let D=E==="ansi16"?"ansi":E;E===o?b[D]=c(d,g):typeof y=="object"&&(b[D]=c(y[o],g))}return b};function a(){let c=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.gray=o.color.blackBright,o.bgColor.bgGray=o.bgColor.bgBlackBright,o.color.grey=o.color.blackBright,o.bgColor.bgGrey=o.bgColor.bgBlackBright;for(let[d,h]of Object.entries(o)){for(let[g,b]of Object.entries(h))o[g]={open:`\x1B[${b[0]}m`,close:`\x1B[${b[1]}m`},h[g]=o[g],c.set(b[0],b[1]);Object.defineProperty(o,d,{value:h,enumerable:!1})}return Object.defineProperty(o,"codes",{value:c,enumerable:!1}),o.color.close="\x1B[39m",o.bgColor.close="\x1B[49m",r(o.color,"ansi",()=>f(n,"ansi16",p,!1)),r(o.color,"ansi256",()=>f(s,"ansi256",p,!1)),r(o.color,"ansi16m",()=>f(i,"rgb",u,!1)),r(o.bgColor,"ansi",()=>f(n,"ansi16",p,!0)),r(o.bgColor,"ansi256",()=>f(s,"ansi256",p,!0)),r(o.bgColor,"ansi16m",()=>f(i,"rgb",u,!0)),o}Object.defineProperty(l,"exports",{enumerable:!0,get:a})}),co=N((t,l)=>{"use strict";B(),l.exports=(n,s=process.argv)=>{let i=n.startsWith("-")?"":n.length===1?"-":"--",p=s.indexOf(i+n),u=s.indexOf("--");return p!==-1&&(u===-1||p<u)}}),kn=N((t,l)=>{"use strict";B();var n=Z("os"),s=Z("tty"),i=co(),{env:p}=process,u;i("no-color")||i("no-colors")||i("color=false")||i("color=never")?u=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(u=1),"FORCE_COLOR"in p&&(p.FORCE_COLOR==="true"?u=1:p.FORCE_COLOR==="false"?u=0:u=p.FORCE_COLOR.length===0?1:Math.min(parseInt(p.FORCE_COLOR,10),3));function r(a){return a===0?!1:{level:a,hasBasic:!0,has256:a>=2,has16m:a>=3}}function e(a,c){if(u===0)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(a&&!c&&u===void 0)return 0;let o=u||0;if(p.TERM==="dumb")return o;if(process.platform==="win32"){let d=n.release().split(".");return Number(d[0])>=10&&Number(d[2])>=10586?Number(d[2])>=14931?3:2:1}if("CI"in p)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(d=>d in p)||p.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in p)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(p.TEAMCITY_VERSION)?1:0;if(p.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in p){let d=parseInt((p.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(p.TERM_PROGRAM){case"iTerm.app":return d>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(p.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(p.TERM)||"COLORTERM"in p?1:o}function f(a){let c=e(a,a&&a.isTTY);return r(c)}l.exports={supportsColor:f,stdout:r(e(!0,s.isatty(1))),stderr:r(e(!0,s.isatty(2)))}}),ho=N((t,l)=>{"use strict";B();var n=(i,p,u)=>{let r=i.indexOf(p);if(r===-1)return i;let e=p.length,f=0,a="";do a+=i.substr(f,r-f)+p+u,f=r+e,r=i.indexOf(p,f);while(r!==-1);return a+=i.substr(f),a},s=(i,p,u,r)=>{let e=0,f="";do{let a=i[r-1]==="\r";f+=i.substr(e,(a?r-1:r)-e)+p+(a?`\r
|
1
|
+
"use strict";var Ns=Object.create;var Ve=Object.defineProperty;var js=Object.getOwnPropertyDescriptor;var Ms=Object.getOwnPropertyNames;var $s=Object.getPrototypeOf,Hs=Object.prototype.hasOwnProperty;var Us=(t,l)=>{for(var n in l)Ve(t,n,{get:l[n],enumerable:!0})},Sn=(t,l,n,s)=>{if(l&&typeof l=="object"||typeof l=="function")for(let i of Ms(l))!Hs.call(t,i)&&i!==n&&Ve(t,i,{get:()=>l[i],enumerable:!(s=js(l,i))||s.enumerable});return t};var Wt=(t,l,n)=>(n=t!=null?Ns($s(t)):{},Sn(l||!t||!t.__esModule?Ve(n,"default",{value:t,enumerable:!0}):n,t)),Gs=t=>Sn(Ve({},"__esModule",{value:!0}),t);var Pp={};Us(Pp,{default:()=>Bp,hasLegacyEnvVarDependencies:()=>_n,migrateConfig:()=>wn,migrateDependencies:()=>Dn,migrateGlobal:()=>Ps,migratePipeline:()=>Bs,transformer:()=>Ls});module.exports=Gs(Pp);var gr=Wt(require("fs-extra")),En=Wt(require("path"));var qs=Object.create,br=Object.defineProperty,zs=Object.getOwnPropertyDescriptor,Ws=Object.getOwnPropertyNames,Vs=Object.getPrototypeOf,Ys=Object.prototype.hasOwnProperty,Z=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(l,n)=>(typeof require!="undefined"?require:l)[n]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')}),Ks=(t,l)=>()=>(t&&(l=t(t=0)),l),N=(t,l)=>()=>(l||t((l={exports:{}}).exports,l),l.exports),An=(t,l)=>{for(var n in l)br(t,n,{get:l[n],enumerable:!0})},Js=(t,l,n,s)=>{if(l&&typeof l=="object"||typeof l=="function")for(let i of Ws(l))!Ys.call(t,i)&&i!==n&&br(t,i,{get:()=>l[i],enumerable:!(s=zs(l,i))||s.enumerable});return t},Ot=(t,l,n)=>(n=t!=null?qs(Vs(t)):{},Js(l||!t||!t.__esModule?br(n,"default",{value:t,enumerable:!0}):n,t)),B=Ks(()=>{});var Zs=N((t,l)=>{"use strict";B();var n=(s,i)=>{for(let p of Reflect.ownKeys(i))Object.defineProperty(s,p,Object.getOwnPropertyDescriptor(i,p));return s};l.exports=n,l.exports.default=n}),Ye=N((t,l)=>{"use strict";B();var n=Zs(),s=new WeakMap,i=(p,u={})=>{if(typeof p!="function")throw new TypeError("Expected a function");let r,e=0,f=p.displayName||p.name||"<anonymous>",a=function(...c){if(s.set(a,++e),e===1)r=p.apply(this,c),p=null;else if(u.throw===!0)throw new Error(`Function \`${f}\` can only be called once`);return r};return n(a,p),s.set(a,e),a};l.exports=i,l.exports.default=i,l.exports.callCount=p=>{if(!s.has(p))throw new Error(`The given function \`${p.name}\` is not wrapped by the \`onetime\` package`);return s.get(p)}}),Xs=N((t,l)=>{B(),l.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&l.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&l.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),Ke=N((t,l)=>{B();var n=global.process,s=function(g){return g&&typeof g=="object"&&typeof g.removeListener=="function"&&typeof g.emit=="function"&&typeof g.reallyExit=="function"&&typeof g.listeners=="function"&&typeof g.kill=="function"&&typeof g.pid=="number"&&typeof g.on=="function"};s(n)?(i=Z("assert"),p=Xs(),u=/^win/i.test(n.platform),r=Z("events"),typeof r!="function"&&(r=r.EventEmitter),n.__signal_exit_emitter__?e=n.__signal_exit_emitter__:(e=n.__signal_exit_emitter__=new r,e.count=0,e.emitted={}),e.infinite||(e.setMaxListeners(1/0),e.infinite=!0),l.exports=function(g,D){if(!s(global.process))return function(){};i.equal(typeof g,"function","a callback must be provided for exit handler"),o===!1&&d();var w="exit";D&&D.alwaysLast&&(w="afterexit");var v=function(){e.removeListener(w,g),e.listeners("exit").length===0&&e.listeners("afterexit").length===0&&f()};return e.on(w,g),v},f=function(){!o||!s(global.process)||(o=!1,p.forEach(function(g){try{n.removeListener(g,c[g])}catch{}}),n.emit=b,n.reallyExit=h,e.count-=1)},l.exports.unload=f,a=function(g,D,w){e.emitted[g]||(e.emitted[g]=!0,e.emit(g,D,w))},c={},p.forEach(function(g){c[g]=function(){if(s(global.process)){var D=n.listeners(g);D.length===e.count&&(f(),a("exit",null,g),a("afterexit",null,g),u&&g==="SIGHUP"&&(g="SIGINT"),n.kill(n.pid,g))}}}),l.exports.signals=function(){return p},o=!1,d=function(){o||!s(global.process)||(o=!0,e.count+=1,p=p.filter(function(g){try{return n.on(g,c[g]),!0}catch{return!1}}),n.emit=E,n.reallyExit=y)},l.exports.load=d,h=n.reallyExit,y=function(g){!s(global.process)||(n.exitCode=g||0,a("exit",n.exitCode,null),a("afterexit",n.exitCode,null),h.call(n,n.exitCode))},b=n.emit,E=function(g,D){if(g==="exit"&&s(global.process)){D!==void 0&&(n.exitCode=D);var w=b.apply(this,arguments);return a("exit",n.exitCode,null),a("afterexit",n.exitCode,null),w}else return b.apply(this,arguments)}):l.exports=function(){return function(){}};var i,p,u,r,e,f,a,c,o,d,h,y,b,E});var Qs=N((t,l)=>{"use strict";B();var n=/[|\\{}()[\]^$+*?.]/g;l.exports=function(s){if(typeof s!="string")throw new TypeError("Expected a string");return s.replace(n,"\\$&")}}),to=N((t,l)=>{"use strict";B(),l.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),Cn=N((t,l)=>{B();var n=to(),s={};for(i in n)n.hasOwnProperty(i)&&(s[n[i]]=i);var i,p=l.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(e in p)if(p.hasOwnProperty(e)){if(!("channels"in p[e]))throw new Error("missing channels property: "+e);if(!("labels"in p[e]))throw new Error("missing channel labels property: "+e);if(p[e].labels.length!==p[e].channels)throw new Error("channel and label counts mismatch: "+e);u=p[e].channels,r=p[e].labels,delete p[e].channels,delete p[e].labels,Object.defineProperty(p[e],"channels",{value:u}),Object.defineProperty(p[e],"labels",{value:r})}var u,r,e;p.rgb.hsl=function(a){var c=a[0]/255,o=a[1]/255,d=a[2]/255,h=Math.min(c,o,d),y=Math.max(c,o,d),b=y-h,E,g,D;return y===h?E=0:c===y?E=(o-d)/b:o===y?E=2+(d-c)/b:d===y&&(E=4+(c-o)/b),E=Math.min(E*60,360),E<0&&(E+=360),D=(h+y)/2,y===h?g=0:D<=.5?g=b/(y+h):g=b/(2-y-h),[E,g*100,D*100]},p.rgb.hsv=function(a){var c,o,d,h,y,b=a[0]/255,E=a[1]/255,g=a[2]/255,D=Math.max(b,E,g),w=D-Math.min(b,E,g),v=function(m){return(D-m)/6/w+1/2};return w===0?h=y=0:(y=w/D,c=v(b),o=v(E),d=v(g),b===D?h=d-o:E===D?h=1/3+c-d:g===D&&(h=2/3+o-c),h<0?h+=1:h>1&&(h-=1)),[h*360,y*100,D*100]},p.rgb.hwb=function(a){var c=a[0],o=a[1],d=a[2],h=p.rgb.hsl(a)[0],y=1/255*Math.min(c,Math.min(o,d));return d=1-1/255*Math.max(c,Math.max(o,d)),[h,y*100,d*100]},p.rgb.cmyk=function(a){var c=a[0]/255,o=a[1]/255,d=a[2]/255,h,y,b,E;return E=Math.min(1-c,1-o,1-d),h=(1-c-E)/(1-E)||0,y=(1-o-E)/(1-E)||0,b=(1-d-E)/(1-E)||0,[h*100,y*100,b*100,E*100]};function f(a,c){return Math.pow(a[0]-c[0],2)+Math.pow(a[1]-c[1],2)+Math.pow(a[2]-c[2],2)}p.rgb.keyword=function(a){var c=s[a];if(c)return c;var o=1/0,d;for(var h in n)if(n.hasOwnProperty(h)){var y=n[h],b=f(a,y);b<o&&(o=b,d=h)}return d},p.keyword.rgb=function(a){return n[a]},p.rgb.xyz=function(a){var c=a[0]/255,o=a[1]/255,d=a[2]/255;c=c>.04045?Math.pow((c+.055)/1.055,2.4):c/12.92,o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var h=c*.4124+o*.3576+d*.1805,y=c*.2126+o*.7152+d*.0722,b=c*.0193+o*.1192+d*.9505;return[h*100,y*100,b*100]},p.rgb.lab=function(a){var c=p.rgb.xyz(a),o=c[0],d=c[1],h=c[2],y,b,E;return o/=95.047,d/=100,h/=108.883,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,h=h>.008856?Math.pow(h,1/3):7.787*h+16/116,y=116*d-16,b=500*(o-d),E=200*(d-h),[y,b,E]},p.hsl.rgb=function(a){var c=a[0]/360,o=a[1]/100,d=a[2]/100,h,y,b,E,g;if(o===0)return g=d*255,[g,g,g];d<.5?y=d*(1+o):y=d+o-d*o,h=2*d-y,E=[0,0,0];for(var D=0;D<3;D++)b=c+1/3*-(D-1),b<0&&b++,b>1&&b--,6*b<1?g=h+(y-h)*6*b:2*b<1?g=y:3*b<2?g=h+(y-h)*(2/3-b)*6:g=h,E[D]=g*255;return E},p.hsl.hsv=function(a){var c=a[0],o=a[1]/100,d=a[2]/100,h=o,y=Math.max(d,.01),b,E;return d*=2,o*=d<=1?d:2-d,h*=y<=1?y:2-y,E=(d+o)/2,b=d===0?2*h/(y+h):2*o/(d+o),[c,b*100,E*100]},p.hsv.rgb=function(a){var c=a[0]/60,o=a[1]/100,d=a[2]/100,h=Math.floor(c)%6,y=c-Math.floor(c),b=255*d*(1-o),E=255*d*(1-o*y),g=255*d*(1-o*(1-y));switch(d*=255,h){case 0:return[d,g,b];case 1:return[E,d,b];case 2:return[b,d,g];case 3:return[b,E,d];case 4:return[g,b,d];case 5:return[d,b,E]}},p.hsv.hsl=function(a){var c=a[0],o=a[1]/100,d=a[2]/100,h=Math.max(d,.01),y,b,E;return E=(2-o)*d,y=(2-o)*h,b=o*h,b/=y<=1?y:2-y,b=b||0,E/=2,[c,b*100,E*100]},p.hwb.rgb=function(a){var c=a[0]/360,o=a[1]/100,d=a[2]/100,h=o+d,y,b,E,g;h>1&&(o/=h,d/=h),y=Math.floor(6*c),b=1-d,E=6*c-y,y&1&&(E=1-E),g=o+E*(b-o);var D,w,v;switch(y){default:case 6:case 0:D=b,w=g,v=o;break;case 1:D=g,w=b,v=o;break;case 2:D=o,w=b,v=g;break;case 3:D=o,w=g,v=b;break;case 4:D=g,w=o,v=b;break;case 5:D=b,w=o,v=g;break}return[D*255,w*255,v*255]},p.cmyk.rgb=function(a){var c=a[0]/100,o=a[1]/100,d=a[2]/100,h=a[3]/100,y,b,E;return y=1-Math.min(1,c*(1-h)+h),b=1-Math.min(1,o*(1-h)+h),E=1-Math.min(1,d*(1-h)+h),[y*255,b*255,E*255]},p.xyz.rgb=function(a){var c=a[0]/100,o=a[1]/100,d=a[2]/100,h,y,b;return h=c*3.2406+o*-1.5372+d*-.4986,y=c*-.9689+o*1.8758+d*.0415,b=c*.0557+o*-.204+d*1.057,h=h>.0031308?1.055*Math.pow(h,1/2.4)-.055:h*12.92,y=y>.0031308?1.055*Math.pow(y,1/2.4)-.055:y*12.92,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b*12.92,h=Math.min(Math.max(0,h),1),y=Math.min(Math.max(0,y),1),b=Math.min(Math.max(0,b),1),[h*255,y*255,b*255]},p.xyz.lab=function(a){var c=a[0],o=a[1],d=a[2],h,y,b;return c/=95.047,o/=100,d/=108.883,c=c>.008856?Math.pow(c,1/3):7.787*c+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,h=116*o-16,y=500*(c-o),b=200*(o-d),[h,y,b]},p.lab.xyz=function(a){var c=a[0],o=a[1],d=a[2],h,y,b;y=(c+16)/116,h=o/500+y,b=y-d/200;var E=Math.pow(y,3),g=Math.pow(h,3),D=Math.pow(b,3);return y=E>.008856?E:(y-16/116)/7.787,h=g>.008856?g:(h-16/116)/7.787,b=D>.008856?D:(b-16/116)/7.787,h*=95.047,y*=100,b*=108.883,[h,y,b]},p.lab.lch=function(a){var c=a[0],o=a[1],d=a[2],h,y,b;return h=Math.atan2(d,o),y=h*360/2/Math.PI,y<0&&(y+=360),b=Math.sqrt(o*o+d*d),[c,b,y]},p.lch.lab=function(a){var c=a[0],o=a[1],d=a[2],h,y,b;return b=d/360*2*Math.PI,h=o*Math.cos(b),y=o*Math.sin(b),[c,h,y]},p.rgb.ansi16=function(a){var c=a[0],o=a[1],d=a[2],h=1 in arguments?arguments[1]:p.rgb.hsv(a)[2];if(h=Math.round(h/50),h===0)return 30;var y=30+(Math.round(d/255)<<2|Math.round(o/255)<<1|Math.round(c/255));return h===2&&(y+=60),y},p.hsv.ansi16=function(a){return p.rgb.ansi16(p.hsv.rgb(a),a[2])},p.rgb.ansi256=function(a){var c=a[0],o=a[1],d=a[2];if(c===o&&o===d)return c<8?16:c>248?231:Math.round((c-8)/247*24)+232;var h=16+36*Math.round(c/255*5)+6*Math.round(o/255*5)+Math.round(d/255*5);return h},p.ansi16.rgb=function(a){var c=a%10;if(c===0||c===7)return a>50&&(c+=3.5),c=c/10.5*255,[c,c,c];var o=(~~(a>50)+1)*.5,d=(c&1)*o*255,h=(c>>1&1)*o*255,y=(c>>2&1)*o*255;return[d,h,y]},p.ansi256.rgb=function(a){if(a>=232){var c=(a-232)*10+8;return[c,c,c]}a-=16;var o,d=Math.floor(a/36)/5*255,h=Math.floor((o=a%36)/6)/5*255,y=o%6/5*255;return[d,h,y]},p.rgb.hex=function(a){var c=((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255),o=c.toString(16).toUpperCase();return"000000".substring(o.length)+o},p.hex.rgb=function(a){var c=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!c)return[0,0,0];var o=c[0];c[0].length===3&&(o=o.split("").map(function(E){return E+E}).join(""));var d=parseInt(o,16),h=d>>16&255,y=d>>8&255,b=d&255;return[h,y,b]},p.rgb.hcg=function(a){var c=a[0]/255,o=a[1]/255,d=a[2]/255,h=Math.max(Math.max(c,o),d),y=Math.min(Math.min(c,o),d),b=h-y,E,g;return b<1?E=y/(1-b):E=0,b<=0?g=0:h===c?g=(o-d)/b%6:h===o?g=2+(d-c)/b:g=4+(c-o)/b+4,g/=6,g%=1,[g*360,b*100,E*100]},p.hsl.hcg=function(a){var c=a[1]/100,o=a[2]/100,d=1,h=0;return o<.5?d=2*c*o:d=2*c*(1-o),d<1&&(h=(o-.5*d)/(1-d)),[a[0],d*100,h*100]},p.hsv.hcg=function(a){var c=a[1]/100,o=a[2]/100,d=c*o,h=0;return d<1&&(h=(o-d)/(1-d)),[a[0],d*100,h*100]},p.hcg.rgb=function(a){var c=a[0]/360,o=a[1]/100,d=a[2]/100;if(o===0)return[d*255,d*255,d*255];var h=[0,0,0],y=c%1*6,b=y%1,E=1-b,g=0;switch(Math.floor(y)){case 0:h[0]=1,h[1]=b,h[2]=0;break;case 1:h[0]=E,h[1]=1,h[2]=0;break;case 2:h[0]=0,h[1]=1,h[2]=b;break;case 3:h[0]=0,h[1]=E,h[2]=1;break;case 4:h[0]=b,h[1]=0,h[2]=1;break;default:h[0]=1,h[1]=0,h[2]=E}return g=(1-o)*d,[(o*h[0]+g)*255,(o*h[1]+g)*255,(o*h[2]+g)*255]},p.hcg.hsv=function(a){var c=a[1]/100,o=a[2]/100,d=c+o*(1-c),h=0;return d>0&&(h=c/d),[a[0],h*100,d*100]},p.hcg.hsl=function(a){var c=a[1]/100,o=a[2]/100,d=o*(1-c)+.5*c,h=0;return d>0&&d<.5?h=c/(2*d):d>=.5&&d<1&&(h=c/(2*(1-d))),[a[0],h*100,d*100]},p.hcg.hwb=function(a){var c=a[1]/100,o=a[2]/100,d=c+o*(1-c);return[a[0],(d-c)*100,(1-d)*100]},p.hwb.hcg=function(a){var c=a[1]/100,o=a[2]/100,d=1-o,h=d-c,y=0;return h<1&&(y=(d-h)/(1-h)),[a[0],h*100,y*100]},p.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},p.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},p.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},p.gray.hsl=p.gray.hsv=function(a){return[0,0,a[0]]},p.gray.hwb=function(a){return[0,100,a[0]]},p.gray.cmyk=function(a){return[0,0,0,a[0]]},p.gray.lab=function(a){return[a[0],0,0]},p.gray.hex=function(a){var c=Math.round(a[0]/100*255)&255,o=(c<<16)+(c<<8)+c,d=o.toString(16).toUpperCase();return"000000".substring(d.length)+d},p.rgb.gray=function(a){var c=(a[0]+a[1]+a[2])/3;return[c/255*100]}}),eo=N((t,l)=>{B();var n=Cn();function s(){for(var r={},e=Object.keys(n),f=e.length,a=0;a<f;a++)r[e[a]]={distance:-1,parent:null};return r}function i(r){var e=s(),f=[r];for(e[r].distance=0;f.length;)for(var a=f.pop(),c=Object.keys(n[a]),o=c.length,d=0;d<o;d++){var h=c[d],y=e[h];y.distance===-1&&(y.distance=e[a].distance+1,y.parent=a,f.unshift(h))}return e}function p(r,e){return function(f){return e(r(f))}}function u(r,e){for(var f=[e[r].parent,r],a=n[e[r].parent][r],c=e[r].parent;e[c].parent;)f.unshift(e[c].parent),a=p(n[e[c].parent][c],a),c=e[c].parent;return a.conversion=f,a}l.exports=function(r){for(var e=i(r),f={},a=Object.keys(e),c=a.length,o=0;o<c;o++){var d=a[o],h=e[d];h.parent!==null&&(f[d]=u(d,e))}return f}}),ro=N((t,l)=>{B();var n=Cn(),s=eo(),i={},p=Object.keys(n);function u(e){var f=function(a){return a==null?a:(arguments.length>1&&(a=Array.prototype.slice.call(arguments)),e(a))};return"conversion"in e&&(f.conversion=e.conversion),f}function r(e){var f=function(a){if(a==null)return a;arguments.length>1&&(a=Array.prototype.slice.call(arguments));var c=e(a);if(typeof c=="object")for(var o=c.length,d=0;d<o;d++)c[d]=Math.round(c[d]);return c};return"conversion"in e&&(f.conversion=e.conversion),f}p.forEach(function(e){i[e]={},Object.defineProperty(i[e],"channels",{value:n[e].channels}),Object.defineProperty(i[e],"labels",{value:n[e].labels});var f=s(e),a=Object.keys(f);a.forEach(function(c){var o=f[c];i[e][c]=r(o),i[e][c].raw=u(o)})}),l.exports=i}),no=N((t,l)=>{"use strict";B();var n=ro(),s=(r,e)=>function(){return`\x1B[${r.apply(n,arguments)+e}m`},i=(r,e)=>function(){let f=r.apply(n,arguments);return`\x1B[${38+e};5;${f}m`},p=(r,e)=>function(){let f=r.apply(n,arguments);return`\x1B[${38+e};2;${f[0]};${f[1]};${f[2]}m`};function u(){let r=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.grey=e.color.gray;for(let c of Object.keys(e)){let o=e[c];for(let d of Object.keys(o)){let h=o[d];e[d]={open:`\x1B[${h[0]}m`,close:`\x1B[${h[1]}m`},o[d]=e[d],r.set(h[0],h[1])}Object.defineProperty(e,c,{value:o,enumerable:!1}),Object.defineProperty(e,"codes",{value:r,enumerable:!1})}let f=c=>c,a=(c,o,d)=>[c,o,d];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:s(f,0)},e.color.ansi256={ansi256:i(f,0)},e.color.ansi16m={rgb:p(a,0)},e.bgColor.ansi={ansi:s(f,10)},e.bgColor.ansi256={ansi256:i(f,10)},e.bgColor.ansi16m={rgb:p(a,10)};for(let c of Object.keys(n)){if(typeof n[c]!="object")continue;let o=n[c];c==="ansi16"&&(c="ansi"),"ansi16"in o&&(e.color.ansi[c]=s(o.ansi16,0),e.bgColor.ansi[c]=s(o.ansi16,10)),"ansi256"in o&&(e.color.ansi256[c]=i(o.ansi256,0),e.bgColor.ansi256[c]=i(o.ansi256,10)),"rgb"in o&&(e.color.ansi16m[c]=p(o.rgb,0),e.bgColor.ansi16m[c]=p(o.rgb,10))}return e}Object.defineProperty(l,"exports",{enumerable:!0,get:u})}),io=N((t,l)=>{"use strict";B(),l.exports=(n,s)=>{s=s||process.argv;let i=n.startsWith("-")?"":n.length===1?"-":"--",p=s.indexOf(i+n),u=s.indexOf("--");return p!==-1&&(u===-1?!0:p<u)}}),so=N((t,l)=>{"use strict";B();var n=Z("os"),s=io(),i=process.env,p;s("no-color")||s("no-colors")||s("color=false")?p=!1:(s("color")||s("colors")||s("color=true")||s("color=always"))&&(p=!0),"FORCE_COLOR"in i&&(p=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function u(f){return f===0?!1:{level:f,hasBasic:!0,has256:f>=2,has16m:f>=3}}function r(f){if(p===!1)return 0;if(s("color=16m")||s("color=full")||s("color=truecolor"))return 3;if(s("color=256"))return 2;if(f&&!f.isTTY&&p!==!0)return 0;let a=p?1:0;if(process.platform==="win32"){let c=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(c[0])>=10&&Number(c[2])>=10586?Number(c[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(c=>c in i)||i.CI_NAME==="codeship"?1:a;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if(i.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in i){let c=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return c>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,a)}function e(f){let a=r(f);return u(a)}l.exports={supportsColor:e,stdout:e(process.stdout),stderr:e(process.stderr)}}),oo=N((t,l)=>{"use strict";B();var n=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,s=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,p=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,u=new Map([["n",`
|
2
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function r(c){return c[0]==="u"&&c.length===5||c[0]==="x"&&c.length===3?String.fromCharCode(parseInt(c.slice(1),16)):u.get(c)||c}function e(c,o){let d=[],h=o.trim().split(/\s*,\s*/g),y;for(let b of h)if(!isNaN(b))d.push(Number(b));else if(y=b.match(i))d.push(y[2].replace(p,(E,g,D)=>g?r(g):D));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${c}')`);return d}function f(c){s.lastIndex=0;let o=[],d;for(;(d=s.exec(c))!==null;){let h=d[1];if(d[2]){let y=e(h,d[2]);o.push([h].concat(y))}else o.push([h])}return o}function a(c,o){let d={};for(let y of o)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let h=c;for(let y of Object.keys(d))if(Array.isArray(d[y])){if(!(y in h))throw new Error(`Unknown Chalk style: ${y}`);d[y].length>0?h=h[y].apply(h,d[y]):h=h[y]}return h}l.exports=(c,o)=>{let d=[],h=[],y=[];if(o.replace(n,(b,E,g,D,w,v)=>{if(E)y.push(r(E));else if(D){let m=y.join("");y=[],h.push(d.length===0?m:a(c,d)(m)),d.push({inverse:g,styles:f(D)})}else if(w){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");h.push(a(c,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),h.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return h.join("")}}),he=N((t,l)=>{"use strict";B();var n=Qs(),s=no(),i=so().stdout,p=oo(),u=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],e=new Set(["gray"]),f=Object.create(null);function a(b,E){E=E||{};let g=i?i.level:0;b.level=E.level===void 0?g:E.level,b.enabled="enabled"in E?E.enabled:b.level>0}function c(b){if(!this||!(this instanceof c)||this.template){let E={};return a(E,b),E.template=function(){let g=[].slice.call(arguments);return y.apply(null,[E.template].concat(g))},Object.setPrototypeOf(E,c.prototype),Object.setPrototypeOf(E.template,E),E.template.constructor=c,E.template}a(this,b)}u&&(s.blue.open="\x1B[94m");for(let b of Object.keys(s))s[b].closeRe=new RegExp(n(s[b].close),"g"),f[b]={get(){let E=s[b];return d.call(this,this._styles?this._styles.concat(E):[E],this._empty,b)}};f.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},s.color.closeRe=new RegExp(n(s.color.close),"g");for(let b of Object.keys(s.color.ansi))e.has(b)||(f[b]={get(){let E=this.level;return function(){let g={open:s.color[r[E]][b].apply(null,arguments),close:s.color.close,closeRe:s.color.closeRe};return d.call(this,this._styles?this._styles.concat(g):[g],this._empty,b)}}});s.bgColor.closeRe=new RegExp(n(s.bgColor.close),"g");for(let b of Object.keys(s.bgColor.ansi)){if(e.has(b))continue;let E="bg"+b[0].toUpperCase()+b.slice(1);f[E]={get(){let g=this.level;return function(){let D={open:s.bgColor[r[g]][b].apply(null,arguments),close:s.bgColor.close,closeRe:s.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(D):[D],this._empty,b)}}}}var o=Object.defineProperties(()=>{},f);function d(b,E,g){let D=function(){return h.apply(D,arguments)};D._styles=b,D._empty=E;let w=this;return Object.defineProperty(D,"level",{enumerable:!0,get(){return w.level},set(v){w.level=v}}),Object.defineProperty(D,"enabled",{enumerable:!0,get(){return w.enabled},set(v){w.enabled=v}}),D.hasGrey=this.hasGrey||g==="gray"||g==="grey",D.__proto__=o,D}function h(){let b=arguments,E=b.length,g=String(arguments[0]);if(E===0)return"";if(E>1)for(let w=1;w<E;w++)g+=" "+b[w];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;let D=s.dim.open;u&&this.hasGrey&&(s.dim.open="");for(let w of this._styles.slice().reverse())g=w.open+g.replace(w.closeRe,w.open)+w.close,g=g.replace(/\r?\n/g,`${w.close}$&${w.open}`);return s.dim.open=D,g}function y(b,E){if(!Array.isArray(E))return[].slice.call(arguments,1).join(" ");let g=[].slice.call(arguments,2),D=[E.raw[0]];for(let w=1;w<E.length;w++)D.push(String(g[w-1]).replace(/[{}\\]/g,"\\$&")),D.push(String(E.raw[w]));return p(b,D.join(""))}Object.defineProperties(c.prototype,f),l.exports=c(),l.exports.supportsColor=i,l.exports.default=l.exports});var uo=N((t,l)=>{"use strict";B(),l.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),xn=N((t,l)=>{B();var n=uo(),s={};for(let u of Object.keys(n))s[n[u]]=u;var i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};l.exports=i;for(let u of Object.keys(i)){if(!("channels"in i[u]))throw new Error("missing channels property: "+u);if(!("labels"in i[u]))throw new Error("missing channel labels property: "+u);if(i[u].labels.length!==i[u].channels)throw new Error("channel and label counts mismatch: "+u);let{channels:r,labels:e}=i[u];delete i[u].channels,delete i[u].labels,Object.defineProperty(i[u],"channels",{value:r}),Object.defineProperty(i[u],"labels",{value:e})}i.rgb.hsl=function(u){let r=u[0]/255,e=u[1]/255,f=u[2]/255,a=Math.min(r,e,f),c=Math.max(r,e,f),o=c-a,d,h;c===a?d=0:r===c?d=(e-f)/o:e===c?d=2+(f-r)/o:f===c&&(d=4+(r-e)/o),d=Math.min(d*60,360),d<0&&(d+=360);let y=(a+c)/2;return c===a?h=0:y<=.5?h=o/(c+a):h=o/(2-c-a),[d,h*100,y*100]},i.rgb.hsv=function(u){let r,e,f,a,c,o=u[0]/255,d=u[1]/255,h=u[2]/255,y=Math.max(o,d,h),b=y-Math.min(o,d,h),E=function(g){return(y-g)/6/b+1/2};return b===0?(a=0,c=0):(c=b/y,r=E(o),e=E(d),f=E(h),o===y?a=f-e:d===y?a=1/3+r-f:h===y&&(a=2/3+e-r),a<0?a+=1:a>1&&(a-=1)),[a*360,c*100,y*100]},i.rgb.hwb=function(u){let r=u[0],e=u[1],f=u[2],a=i.rgb.hsl(u)[0],c=1/255*Math.min(r,Math.min(e,f));return f=1-1/255*Math.max(r,Math.max(e,f)),[a,c*100,f*100]},i.rgb.cmyk=function(u){let r=u[0]/255,e=u[1]/255,f=u[2]/255,a=Math.min(1-r,1-e,1-f),c=(1-r-a)/(1-a)||0,o=(1-e-a)/(1-a)||0,d=(1-f-a)/(1-a)||0;return[c*100,o*100,d*100,a*100]};function p(u,r){return(u[0]-r[0])**2+(u[1]-r[1])**2+(u[2]-r[2])**2}i.rgb.keyword=function(u){let r=s[u];if(r)return r;let e=1/0,f;for(let a of Object.keys(n)){let c=n[a],o=p(u,c);o<e&&(e=o,f=a)}return f},i.keyword.rgb=function(u){return n[u]},i.rgb.xyz=function(u){let r=u[0]/255,e=u[1]/255,f=u[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,f=f>.04045?((f+.055)/1.055)**2.4:f/12.92;let a=r*.4124+e*.3576+f*.1805,c=r*.2126+e*.7152+f*.0722,o=r*.0193+e*.1192+f*.9505;return[a*100,c*100,o*100]},i.rgb.lab=function(u){let r=i.rgb.xyz(u),e=r[0],f=r[1],a=r[2];e/=95.047,f/=100,a/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,f=f>.008856?f**(1/3):7.787*f+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;let c=116*f-16,o=500*(e-f),d=200*(f-a);return[c,o,d]},i.hsl.rgb=function(u){let r=u[0]/360,e=u[1]/100,f=u[2]/100,a,c,o;if(e===0)return o=f*255,[o,o,o];f<.5?a=f*(1+e):a=f+e-f*e;let d=2*f-a,h=[0,0,0];for(let y=0;y<3;y++)c=r+1/3*-(y-1),c<0&&c++,c>1&&c--,6*c<1?o=d+(a-d)*6*c:2*c<1?o=a:3*c<2?o=d+(a-d)*(2/3-c)*6:o=d,h[y]=o*255;return h},i.hsl.hsv=function(u){let r=u[0],e=u[1]/100,f=u[2]/100,a=e,c=Math.max(f,.01);f*=2,e*=f<=1?f:2-f,a*=c<=1?c:2-c;let o=(f+e)/2,d=f===0?2*a/(c+a):2*e/(f+e);return[r,d*100,o*100]},i.hsv.rgb=function(u){let r=u[0]/60,e=u[1]/100,f=u[2]/100,a=Math.floor(r)%6,c=r-Math.floor(r),o=255*f*(1-e),d=255*f*(1-e*c),h=255*f*(1-e*(1-c));switch(f*=255,a){case 0:return[f,h,o];case 1:return[d,f,o];case 2:return[o,f,h];case 3:return[o,d,f];case 4:return[h,o,f];case 5:return[f,o,d]}},i.hsv.hsl=function(u){let r=u[0],e=u[1]/100,f=u[2]/100,a=Math.max(f,.01),c,o;o=(2-e)*f;let d=(2-e)*a;return c=e*a,c/=d<=1?d:2-d,c=c||0,o/=2,[r,c*100,o*100]},i.hwb.rgb=function(u){let r=u[0]/360,e=u[1]/100,f=u[2]/100,a=e+f,c;a>1&&(e/=a,f/=a);let o=Math.floor(6*r),d=1-f;c=6*r-o,o&1&&(c=1-c);let h=e+c*(d-e),y,b,E;switch(o){default:case 6:case 0:y=d,b=h,E=e;break;case 1:y=h,b=d,E=e;break;case 2:y=e,b=d,E=h;break;case 3:y=e,b=h,E=d;break;case 4:y=h,b=e,E=d;break;case 5:y=d,b=e,E=h;break}return[y*255,b*255,E*255]},i.cmyk.rgb=function(u){let r=u[0]/100,e=u[1]/100,f=u[2]/100,a=u[3]/100,c=1-Math.min(1,r*(1-a)+a),o=1-Math.min(1,e*(1-a)+a),d=1-Math.min(1,f*(1-a)+a);return[c*255,o*255,d*255]},i.xyz.rgb=function(u){let r=u[0]/100,e=u[1]/100,f=u[2]/100,a,c,o;return a=r*3.2406+e*-1.5372+f*-.4986,c=r*-.9689+e*1.8758+f*.0415,o=r*.0557+e*-.204+f*1.057,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=Math.min(Math.max(0,a),1),c=Math.min(Math.max(0,c),1),o=Math.min(Math.max(0,o),1),[a*255,c*255,o*255]},i.xyz.lab=function(u){let r=u[0],e=u[1],f=u[2];r/=95.047,e/=100,f/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,e=e>.008856?e**(1/3):7.787*e+16/116,f=f>.008856?f**(1/3):7.787*f+16/116;let a=116*e-16,c=500*(r-e),o=200*(e-f);return[a,c,o]},i.lab.xyz=function(u){let r=u[0],e=u[1],f=u[2],a,c,o;c=(r+16)/116,a=e/500+c,o=c-f/200;let d=c**3,h=a**3,y=o**3;return c=d>.008856?d:(c-16/116)/7.787,a=h>.008856?h:(a-16/116)/7.787,o=y>.008856?y:(o-16/116)/7.787,a*=95.047,c*=100,o*=108.883,[a,c,o]},i.lab.lch=function(u){let r=u[0],e=u[1],f=u[2],a;a=Math.atan2(f,e)*360/2/Math.PI,a<0&&(a+=360);let c=Math.sqrt(e*e+f*f);return[r,c,a]},i.lch.lab=function(u){let r=u[0],e=u[1],f=u[2]/360*2*Math.PI,a=e*Math.cos(f),c=e*Math.sin(f);return[r,a,c]},i.rgb.ansi16=function(u,r=null){let[e,f,a]=u,c=r===null?i.rgb.hsv(u)[2]:r;if(c=Math.round(c/50),c===0)return 30;let o=30+(Math.round(a/255)<<2|Math.round(f/255)<<1|Math.round(e/255));return c===2&&(o+=60),o},i.hsv.ansi16=function(u){return i.rgb.ansi16(i.hsv.rgb(u),u[2])},i.rgb.ansi256=function(u){let r=u[0],e=u[1],f=u[2];return r===e&&e===f?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(e/255*5)+Math.round(f/255*5)},i.ansi16.rgb=function(u){let r=u%10;if(r===0||r===7)return u>50&&(r+=3.5),r=r/10.5*255,[r,r,r];let e=(~~(u>50)+1)*.5,f=(r&1)*e*255,a=(r>>1&1)*e*255,c=(r>>2&1)*e*255;return[f,a,c]},i.ansi256.rgb=function(u){if(u>=232){let c=(u-232)*10+8;return[c,c,c]}u-=16;let r,e=Math.floor(u/36)/5*255,f=Math.floor((r=u%36)/6)/5*255,a=r%6/5*255;return[e,f,a]},i.rgb.hex=function(u){let r=(((Math.round(u[0])&255)<<16)+((Math.round(u[1])&255)<<8)+(Math.round(u[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r},i.hex.rgb=function(u){let r=u.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];let e=r[0];r[0].length===3&&(e=e.split("").map(d=>d+d).join(""));let f=parseInt(e,16),a=f>>16&255,c=f>>8&255,o=f&255;return[a,c,o]},i.rgb.hcg=function(u){let r=u[0]/255,e=u[1]/255,f=u[2]/255,a=Math.max(Math.max(r,e),f),c=Math.min(Math.min(r,e),f),o=a-c,d,h;return o<1?d=c/(1-o):d=0,o<=0?h=0:a===r?h=(e-f)/o%6:a===e?h=2+(f-r)/o:h=4+(r-e)/o,h/=6,h%=1,[h*360,o*100,d*100]},i.hsl.hcg=function(u){let r=u[1]/100,e=u[2]/100,f=e<.5?2*r*e:2*r*(1-e),a=0;return f<1&&(a=(e-.5*f)/(1-f)),[u[0],f*100,a*100]},i.hsv.hcg=function(u){let r=u[1]/100,e=u[2]/100,f=r*e,a=0;return f<1&&(a=(e-f)/(1-f)),[u[0],f*100,a*100]},i.hcg.rgb=function(u){let r=u[0]/360,e=u[1]/100,f=u[2]/100;if(e===0)return[f*255,f*255,f*255];let a=[0,0,0],c=r%1*6,o=c%1,d=1-o,h=0;switch(Math.floor(c)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=d,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=d,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=d}return h=(1-e)*f,[(e*a[0]+h)*255,(e*a[1]+h)*255,(e*a[2]+h)*255]},i.hcg.hsv=function(u){let r=u[1]/100,e=u[2]/100,f=r+e*(1-r),a=0;return f>0&&(a=r/f),[u[0],a*100,f*100]},i.hcg.hsl=function(u){let r=u[1]/100,e=u[2]/100*(1-r)+.5*r,f=0;return e>0&&e<.5?f=r/(2*e):e>=.5&&e<1&&(f=r/(2*(1-e))),[u[0],f*100,e*100]},i.hcg.hwb=function(u){let r=u[1]/100,e=u[2]/100,f=r+e*(1-r);return[u[0],(f-r)*100,(1-f)*100]},i.hwb.hcg=function(u){let r=u[1]/100,e=u[2]/100,f=1-e,a=f-r,c=0;return a<1&&(c=(f-a)/(1-a)),[u[0],a*100,c*100]},i.apple.rgb=function(u){return[u[0]/65535*255,u[1]/65535*255,u[2]/65535*255]},i.rgb.apple=function(u){return[u[0]/255*65535,u[1]/255*65535,u[2]/255*65535]},i.gray.rgb=function(u){return[u[0]/100*255,u[0]/100*255,u[0]/100*255]},i.gray.hsl=function(u){return[0,0,u[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(u){return[0,100,u[0]]},i.gray.cmyk=function(u){return[0,0,0,u[0]]},i.gray.lab=function(u){return[u[0],0,0]},i.gray.hex=function(u){let r=Math.round(u[0]/100*255)&255,e=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(e.length)+e},i.rgb.gray=function(u){return[(u[0]+u[1]+u[2])/3/255*100]}}),ao=N((t,l)=>{B();var n=xn();function s(){let r={},e=Object.keys(n);for(let f=e.length,a=0;a<f;a++)r[e[a]]={distance:-1,parent:null};return r}function i(r){let e=s(),f=[r];for(e[r].distance=0;f.length;){let a=f.pop(),c=Object.keys(n[a]);for(let o=c.length,d=0;d<o;d++){let h=c[d],y=e[h];y.distance===-1&&(y.distance=e[a].distance+1,y.parent=a,f.unshift(h))}}return e}function p(r,e){return function(f){return e(r(f))}}function u(r,e){let f=[e[r].parent,r],a=n[e[r].parent][r],c=e[r].parent;for(;e[c].parent;)f.unshift(e[c].parent),a=p(n[e[c].parent][c],a),c=e[c].parent;return a.conversion=f,a}l.exports=function(r){let e=i(r),f={},a=Object.keys(e);for(let c=a.length,o=0;o<c;o++){let d=a[o];e[d].parent!==null&&(f[d]=u(d,e))}return f}}),lo=N((t,l)=>{B();var n=xn(),s=ao(),i={},p=Object.keys(n);function u(e){let f=function(...a){let c=a[0];return c==null?c:(c.length>1&&(a=c),e(a))};return"conversion"in e&&(f.conversion=e.conversion),f}function r(e){let f=function(...a){let c=a[0];if(c==null)return c;c.length>1&&(a=c);let o=e(a);if(typeof o=="object")for(let d=o.length,h=0;h<d;h++)o[h]=Math.round(o[h]);return o};return"conversion"in e&&(f.conversion=e.conversion),f}p.forEach(e=>{i[e]={},Object.defineProperty(i[e],"channels",{value:n[e].channels}),Object.defineProperty(i[e],"labels",{value:n[e].labels});let f=s(e);Object.keys(f).forEach(a=>{let c=f[a];i[e][a]=r(c),i[e][a].raw=u(c)})}),l.exports=i}),Fn=N((t,l)=>{"use strict";B();var n=(c,o)=>(...d)=>`\x1B[${c(...d)+o}m`,s=(c,o)=>(...d)=>{let h=c(...d);return`\x1B[${38+o};5;${h}m`},i=(c,o)=>(...d)=>{let h=c(...d);return`\x1B[${38+o};2;${h[0]};${h[1]};${h[2]}m`},p=c=>c,u=(c,o,d)=>[c,o,d],r=(c,o,d)=>{Object.defineProperty(c,o,{get:()=>{let h=d();return Object.defineProperty(c,o,{value:h,enumerable:!0,configurable:!0}),h},enumerable:!0,configurable:!0})},e,f=(c,o,d,h)=>{e===void 0&&(e=lo());let y=h?10:0,b={};for(let[E,g]of Object.entries(e)){let D=E==="ansi16"?"ansi":E;E===o?b[D]=c(d,y):typeof g=="object"&&(b[D]=c(g[o],y))}return b};function a(){let c=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.gray=o.color.blackBright,o.bgColor.bgGray=o.bgColor.bgBlackBright,o.color.grey=o.color.blackBright,o.bgColor.bgGrey=o.bgColor.bgBlackBright;for(let[d,h]of Object.entries(o)){for(let[y,b]of Object.entries(h))o[y]={open:`\x1B[${b[0]}m`,close:`\x1B[${b[1]}m`},h[y]=o[y],c.set(b[0],b[1]);Object.defineProperty(o,d,{value:h,enumerable:!1})}return Object.defineProperty(o,"codes",{value:c,enumerable:!1}),o.color.close="\x1B[39m",o.bgColor.close="\x1B[49m",r(o.color,"ansi",()=>f(n,"ansi16",p,!1)),r(o.color,"ansi256",()=>f(s,"ansi256",p,!1)),r(o.color,"ansi16m",()=>f(i,"rgb",u,!1)),r(o.bgColor,"ansi",()=>f(n,"ansi16",p,!0)),r(o.bgColor,"ansi256",()=>f(s,"ansi256",p,!0)),r(o.bgColor,"ansi16m",()=>f(i,"rgb",u,!0)),o}Object.defineProperty(l,"exports",{enumerable:!0,get:a})}),co=N((t,l)=>{"use strict";B(),l.exports=(n,s=process.argv)=>{let i=n.startsWith("-")?"":n.length===1?"-":"--",p=s.indexOf(i+n),u=s.indexOf("--");return p!==-1&&(u===-1||p<u)}}),kn=N((t,l)=>{"use strict";B();var n=Z("os"),s=Z("tty"),i=co(),{env:p}=process,u;i("no-color")||i("no-colors")||i("color=false")||i("color=never")?u=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(u=1),"FORCE_COLOR"in p&&(p.FORCE_COLOR==="true"?u=1:p.FORCE_COLOR==="false"?u=0:u=p.FORCE_COLOR.length===0?1:Math.min(parseInt(p.FORCE_COLOR,10),3));function r(a){return a===0?!1:{level:a,hasBasic:!0,has256:a>=2,has16m:a>=3}}function e(a,c){if(u===0)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(a&&!c&&u===void 0)return 0;let o=u||0;if(p.TERM==="dumb")return o;if(process.platform==="win32"){let d=n.release().split(".");return Number(d[0])>=10&&Number(d[2])>=10586?Number(d[2])>=14931?3:2:1}if("CI"in p)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(d=>d in p)||p.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in p)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(p.TEAMCITY_VERSION)?1:0;if(p.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in p){let d=parseInt((p.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(p.TERM_PROGRAM){case"iTerm.app":return d>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(p.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(p.TERM)||"COLORTERM"in p?1:o}function f(a){let c=e(a,a&&a.isTTY);return r(c)}l.exports={supportsColor:f,stdout:r(e(!0,s.isatty(1))),stderr:r(e(!0,s.isatty(2)))}}),ho=N((t,l)=>{"use strict";B();var n=(i,p,u)=>{let r=i.indexOf(p);if(r===-1)return i;let e=p.length,f=0,a="";do a+=i.substr(f,r-f)+p+u,f=r+e,r=i.indexOf(p,f);while(r!==-1);return a+=i.substr(f),a},s=(i,p,u,r)=>{let e=0,f="";do{let a=i[r-1]==="\r";f+=i.substr(e,(a?r-1:r)-e)+p+(a?`\r
|
3
3
|
`:`
|
4
4
|
`)+u,e=r+1,r=i.indexOf(`
|
5
5
|
`,e)}while(r!==-1);return f+=i.substr(e),f};l.exports={stringReplaceAll:n,stringEncaseCRLFWithFirstIndex:s}}),fo=N((t,l)=>{"use strict";B();var n=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,s=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,p=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,u=new Map([["n",`
|
6
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function r(c){let o=c[0]==="u",d=c[1]==="{";return o&&!d&&c.length===5||c[0]==="x"&&c.length===3?String.fromCharCode(parseInt(c.slice(1),16)):o&&d?String.fromCodePoint(parseInt(c.slice(2,-1),16)):u.get(c)||c}function e(c,o){let d=[],h=o.trim().split(/\s*,\s*/g),
|
7
|
-
`);return F!==-1&&(m=u(m,A,S,F)),S+m+A},y,D=(v,...m)=>{let[_]=m;if(!Array.isArray(_))return m.join(" ");let S=m.slice(1),A=[_.raw[0]];for(let F=1;F<_.length;F++)A.push(String(S[F-1]).replace(/[{}\\]/g,"\\$&"),String(_.raw[F]));return y===void 0&&(y=fo()),y(v,A.join(""))};Object.defineProperties(o.prototype,e);var w=o();w.supportsColor=s,w.stderr=o({level:i?i.level:0}),w.stderr.supportsColor=i,w.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"},l.exports=w}),mo=N((t,l)=>{"use strict";B();var n=Ye(),s=Ke();l.exports=n(()=>{s(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})}),yo=N(t=>{"use strict";B();var l=mo(),n=!1;t.show=(s=process.stderr)=>{!s.isTTY||(n=!1,s.write("\x1B[?25h"))},t.hide=(s=process.stderr)=>{!s.isTTY||(l(),n=!0,s.write("\x1B[?25l"))},t.toggle=(s,i)=>{s!==void 0&&(n=s),n?t.show(i):t.hide(i)}}),go=N((t,l)=>{l.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}}),bo=N((t,l)=>{"use strict";B();var n=Object.assign({},go()),s=Object.keys(n);Object.defineProperty(n,"random",{get(){let i=Math.floor(Math.random()*s.length),p=s[i];return n[p]}}),l.exports=n}),vo=N((t,l)=>{"use strict";B();var n=he(),s=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",i={info:n.blue("\u2139"),success:n.green("\u2714"),warning:n.yellow("\u26A0"),error:n.red("\u2716")},p={info:n.blue("i"),success:n.green("\u221A"),warning:n.yellow("\u203C"),error:n.red("\xD7")};l.exports=s?i:p}),Eo=N((t,l)=>{"use strict";B(),l.exports=({onlyFirst:n=!1}={})=>{let s=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(s,n?void 0:"g")}}),_o=N((t,l)=>{"use strict";B();var n=Eo();l.exports=s=>typeof s=="string"?s.replace(n(),""):s}),wo=N((t,l)=>{B();var n=function(){"use strict";function s(f,a,c,o){var d;typeof a=="object"&&(c=a.depth,o=a.prototype,d=a.filter,a=a.circular);var h=[],g=[],b=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof c>"u"&&(c=1/0);function E(y,D){if(y===null)return null;if(D==0)return y;var w,v;if(typeof y!="object")return y;if(s.__isArray(y))w=[];else if(s.__isRegExp(y))w=new RegExp(y.source,e(y)),y.lastIndex&&(w.lastIndex=y.lastIndex);else if(s.__isDate(y))w=new Date(y.getTime());else{if(b&&Buffer.isBuffer(y))return Buffer.allocUnsafe?w=Buffer.allocUnsafe(y.length):w=new Buffer(y.length),y.copy(w),w;typeof o>"u"?(v=Object.getPrototypeOf(y),w=Object.create(v)):(w=Object.create(o),v=o)}if(a){var m=h.indexOf(y);if(m!=-1)return g[m];h.push(y),g.push(w)}for(var _ in y){var S;v&&(S=Object.getOwnPropertyDescriptor(v,_)),!(S&&S.set==null)&&(w[_]=E(y[_],D-1))}return w}return E(f,c)}s.clonePrototype=function(f){if(f===null)return null;var a=function(){};return a.prototype=f,new a};function i(f){return Object.prototype.toString.call(f)}s.__objToStr=i;function p(f){return typeof f=="object"&&i(f)==="[object Date]"}s.__isDate=p;function u(f){return typeof f=="object"&&i(f)==="[object Array]"}s.__isArray=u;function r(f){return typeof f=="object"&&i(f)==="[object RegExp]"}s.__isRegExp=r;function e(f){var a="";return f.global&&(a+="g"),f.ignoreCase&&(a+="i"),f.multiline&&(a+="m"),a}return s.__getRegExpFlags=e,s}();typeof l=="object"&&l.exports&&(l.exports=n)}),Do=N((t,l)=>{B();var n=wo();l.exports=function(s,i){return s=s||{},Object.keys(i).forEach(function(p){typeof s[p]>"u"&&(s[p]=n(i[p]))}),s}}),So=N((t,l)=>{B(),l.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]}),Ao=N((t,l)=>{"use strict";B();var n=Do(),s=So(),i={nul:0,control:0};l.exports=function(e){return p(e,i)},l.exports.config=function(e){return e=n(e||{},i),function(f){return p(f,e)}};function p(e,f){if(typeof e!="string")return u(e,f);for(var a=0,c=0;c<e.length;c++){var o=u(e.charCodeAt(c),f);if(o<0)return-1;a+=o}return a}function u(e,f){return e===0?f.nul:e<32||e>=127&&e<160?f.control:r(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function r(e){var f=0,a=s.length-1,c;if(e<s[0][0]||e>s[a][1])return!1;for(;a>=f;)if(c=Math.floor((f+a)/2),e>s[c][1])f=c+1;else if(e<s[c][0])a=c-1;else return!0;return!1}}),Co=N((t,l)=>{"use strict";B(),l.exports=({stream:n=process.stdout}={})=>!!(n&&n.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}),xo=N((t,l)=>{B();var n=Z("stream");l.exports=s;function s(e){n.apply(this),e=e||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}s.prototype=Object.create(n.prototype),Object.defineProperty(s.prototype,"constructor",{value:s,enumerable:!1}),s.prototype.mute=function(){this.muted=!0},s.prototype.unmute=function(){this.muted=!1},Object.defineProperty(s.prototype,"_onpipe",{value:i,enumerable:!1,writable:!0,configurable:!0});function i(e){this._src=e}Object.defineProperty(s.prototype,"isTTY",{get:p,set:u,enumerable:!0,configurable:!0});function p(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function u(e){Object.defineProperty(this,"isTTY",{value:e,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(s.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0}),s.prototype.pipe=function(e,f){return this._dest=e,n.prototype.pipe.call(this,e,f)},s.prototype.pause=function(){if(this._src)return this._src.pause()},s.prototype.resume=function(){if(this._src)return this._src.resume()},s.prototype.write=function(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return e.indexOf(this._prompt)===0&&(e=e.substr(this._prompt.length),e=e.replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.substr(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)},s.prototype.end=function(e){this.muted&&(e&&this.replace?e=e.toString().replace(/./g,this.replace):e=null),e&&this.emit("data",e),this.emit("end")};function r(e){return function(){var f=this._dest,a=this._src;f&&f[e]&&f[e].apply(f,arguments),a&&a[e]&&a[e].apply(a,arguments)}}s.prototype.destroy=r("destroy"),s.prototype.destroySoon=r("destroySoon"),s.prototype.close=r("close")}),Fo=N((t,l)=>{"use strict";B();var n=Z("readline"),s=po(),i=yo(),p=bo(),u=vo(),r=_o(),e=Ao(),f=Co(),a=xo(),c=Symbol("text"),o=Symbol("prefixText"),d=3,h=class{constructor(){this.requests=0,this.mutedStream=new a,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let y=this;this.ourEmit=function(D,w,...v){let{stdin:m}=process;if(y.requests>0||m.emit===y.ourEmit){if(D==="keypress")return;D==="data"&&w.includes(d)&&process.emit("SIGINT"),Reflect.apply(y.oldEmit,this,[D,w,...v])}else Reflect.apply(process.stdin.emit,this,[D,w,...v])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=n.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},g,b=class{constructor(y){g||(g=new h),typeof y=="string"&&(y={text:y}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...y},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:f({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(y=0){if(!(y>=0&&Number.isInteger(y)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=y}_updateInterval(y){y!==void 0&&(this.interval=y)}get spinner(){return this._spinner}set spinner(y){if(this.frameIndex=0,typeof y=="object"){if(y.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=y}else if(process.platform==="win32")this._spinner=p.line;else if(y===void 0)this._spinner=p.dots;else if(p[y])this._spinner=p[y];else throw new Error(`There is no built-in spinner named '${y}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[c]}get prefixText(){return this[o]}get isSpinning(){return this.id!==void 0}updateLineCount(){let y=this.stream.columns||80,D=typeof this[o]=="string"?this[o]+"-":"";this.lineCount=r(D+"--"+this[c]).split(`
|
8
|
-
`).reduce((w,v)=>w+Math.max(1,Math.ceil(e(v)/
|
9
|
-
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&i.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(
|
10
|
-
`),this}},E=function(
|
6
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function r(c){let o=c[0]==="u",d=c[1]==="{";return o&&!d&&c.length===5||c[0]==="x"&&c.length===3?String.fromCharCode(parseInt(c.slice(1),16)):o&&d?String.fromCodePoint(parseInt(c.slice(2,-1),16)):u.get(c)||c}function e(c,o){let d=[],h=o.trim().split(/\s*,\s*/g),y;for(let b of h){let E=Number(b);if(!Number.isNaN(E))d.push(E);else if(y=b.match(i))d.push(y[2].replace(p,(g,D,w)=>D?r(D):w));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${c}')`)}return d}function f(c){s.lastIndex=0;let o=[],d;for(;(d=s.exec(c))!==null;){let h=d[1];if(d[2]){let y=e(h,d[2]);o.push([h].concat(y))}else o.push([h])}return o}function a(c,o){let d={};for(let y of o)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let h=c;for(let[y,b]of Object.entries(d))if(Array.isArray(b)){if(!(y in h))throw new Error(`Unknown Chalk style: ${y}`);h=b.length>0?h[y](...b):h[y]}return h}l.exports=(c,o)=>{let d=[],h=[],y=[];if(o.replace(n,(b,E,g,D,w,v)=>{if(E)y.push(r(E));else if(D){let m=y.join("");y=[],h.push(d.length===0?m:a(c,d)(m)),d.push({inverse:g,styles:f(D)})}else if(w){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");h.push(a(c,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),h.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return h.join("")}}),po=N((t,l)=>{"use strict";B();var n=Fn(),{stdout:s,stderr:i}=kn(),{stringReplaceAll:p,stringEncaseCRLFWithFirstIndex:u}=ho(),r=["ansi","ansi","ansi256","ansi16m"],e=Object.create(null),f=(v,m={})=>{if(m.level>3||m.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let _=s?s.level:0;v.level=m.level===void 0?_:m.level},a=class{constructor(v){return c(v)}},c=v=>{let m={};return f(m,v),m.template=(..._)=>D(m.template,..._),Object.setPrototypeOf(m,o.prototype),Object.setPrototypeOf(m.template,m),m.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},m.template.Instance=a,m.template};function o(v){return c(v)}for(let[v,m]of Object.entries(n))e[v]={get(){let _=b(this,y(m.open,m.close,this._styler),this._isEmpty);return Object.defineProperty(this,v,{value:_}),_}};e.visible={get(){let v=b(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:v}),v}};var d=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let v of d)e[v]={get(){let{level:m}=this;return function(..._){let S=y(n.color[r[m]][v](..._),n.color.close,this._styler);return b(this,S,this._isEmpty)}}};for(let v of d){let m="bg"+v[0].toUpperCase()+v.slice(1);e[m]={get(){let{level:_}=this;return function(...S){let A=y(n.bgColor[r[_]][v](...S),n.bgColor.close,this._styler);return b(this,A,this._isEmpty)}}}}var h=Object.defineProperties(()=>{},{...e,level:{enumerable:!0,get(){return this._generator.level},set(v){this._generator.level=v}}}),y=(v,m,_)=>{let S,A;return _===void 0?(S=v,A=m):(S=_.openAll+v,A=m+_.closeAll),{open:v,close:m,openAll:S,closeAll:A,parent:_}},b=(v,m,_)=>{let S=(...A)=>E(S,A.length===1?""+A[0]:A.join(" "));return S.__proto__=h,S._generator=v,S._styler=m,S._isEmpty=_,S},E=(v,m)=>{if(v.level<=0||!m)return v._isEmpty?"":m;let _=v._styler;if(_===void 0)return m;let{openAll:S,closeAll:A}=_;if(m.indexOf("\x1B")!==-1)for(;_!==void 0;)m=p(m,_.close,_.open),_=_.parent;let x=m.indexOf(`
|
7
|
+
`);return x!==-1&&(m=u(m,A,S,x)),S+m+A},g,D=(v,...m)=>{let[_]=m;if(!Array.isArray(_))return m.join(" ");let S=m.slice(1),A=[_.raw[0]];for(let x=1;x<_.length;x++)A.push(String(S[x-1]).replace(/[{}\\]/g,"\\$&"),String(_.raw[x]));return g===void 0&&(g=fo()),g(v,A.join(""))};Object.defineProperties(o.prototype,e);var w=o();w.supportsColor=s,w.stderr=o({level:i?i.level:0}),w.stderr.supportsColor=i,w.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"},l.exports=w}),mo=N((t,l)=>{"use strict";B();var n=Ye(),s=Ke();l.exports=n(()=>{s(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})}),yo=N(t=>{"use strict";B();var l=mo(),n=!1;t.show=(s=process.stderr)=>{!s.isTTY||(n=!1,s.write("\x1B[?25h"))},t.hide=(s=process.stderr)=>{!s.isTTY||(l(),n=!0,s.write("\x1B[?25l"))},t.toggle=(s,i)=>{s!==void 0&&(n=s),n?t.show(i):t.hide(i)}}),go=N((t,l)=>{l.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}}),bo=N((t,l)=>{"use strict";B();var n=Object.assign({},go()),s=Object.keys(n);Object.defineProperty(n,"random",{get(){let i=Math.floor(Math.random()*s.length),p=s[i];return n[p]}}),l.exports=n}),vo=N((t,l)=>{"use strict";B();var n=he(),s=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",i={info:n.blue("\u2139"),success:n.green("\u2714"),warning:n.yellow("\u26A0"),error:n.red("\u2716")},p={info:n.blue("i"),success:n.green("\u221A"),warning:n.yellow("\u203C"),error:n.red("\xD7")};l.exports=s?i:p}),Eo=N((t,l)=>{"use strict";B(),l.exports=({onlyFirst:n=!1}={})=>{let s=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(s,n?void 0:"g")}}),_o=N((t,l)=>{"use strict";B();var n=Eo();l.exports=s=>typeof s=="string"?s.replace(n(),""):s}),wo=N((t,l)=>{B();var n=function(){"use strict";function s(f,a,c,o){var d;typeof a=="object"&&(c=a.depth,o=a.prototype,d=a.filter,a=a.circular);var h=[],y=[],b=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof c>"u"&&(c=1/0);function E(g,D){if(g===null)return null;if(D==0)return g;var w,v;if(typeof g!="object")return g;if(s.__isArray(g))w=[];else if(s.__isRegExp(g))w=new RegExp(g.source,e(g)),g.lastIndex&&(w.lastIndex=g.lastIndex);else if(s.__isDate(g))w=new Date(g.getTime());else{if(b&&Buffer.isBuffer(g))return Buffer.allocUnsafe?w=Buffer.allocUnsafe(g.length):w=new Buffer(g.length),g.copy(w),w;typeof o>"u"?(v=Object.getPrototypeOf(g),w=Object.create(v)):(w=Object.create(o),v=o)}if(a){var m=h.indexOf(g);if(m!=-1)return y[m];h.push(g),y.push(w)}for(var _ in g){var S;v&&(S=Object.getOwnPropertyDescriptor(v,_)),!(S&&S.set==null)&&(w[_]=E(g[_],D-1))}return w}return E(f,c)}s.clonePrototype=function(f){if(f===null)return null;var a=function(){};return a.prototype=f,new a};function i(f){return Object.prototype.toString.call(f)}s.__objToStr=i;function p(f){return typeof f=="object"&&i(f)==="[object Date]"}s.__isDate=p;function u(f){return typeof f=="object"&&i(f)==="[object Array]"}s.__isArray=u;function r(f){return typeof f=="object"&&i(f)==="[object RegExp]"}s.__isRegExp=r;function e(f){var a="";return f.global&&(a+="g"),f.ignoreCase&&(a+="i"),f.multiline&&(a+="m"),a}return s.__getRegExpFlags=e,s}();typeof l=="object"&&l.exports&&(l.exports=n)}),Do=N((t,l)=>{B();var n=wo();l.exports=function(s,i){return s=s||{},Object.keys(i).forEach(function(p){typeof s[p]>"u"&&(s[p]=n(i[p]))}),s}}),So=N((t,l)=>{B(),l.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]}),Ao=N((t,l)=>{"use strict";B();var n=Do(),s=So(),i={nul:0,control:0};l.exports=function(e){return p(e,i)},l.exports.config=function(e){return e=n(e||{},i),function(f){return p(f,e)}};function p(e,f){if(typeof e!="string")return u(e,f);for(var a=0,c=0;c<e.length;c++){var o=u(e.charCodeAt(c),f);if(o<0)return-1;a+=o}return a}function u(e,f){return e===0?f.nul:e<32||e>=127&&e<160?f.control:r(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function r(e){var f=0,a=s.length-1,c;if(e<s[0][0]||e>s[a][1])return!1;for(;a>=f;)if(c=Math.floor((f+a)/2),e>s[c][1])f=c+1;else if(e<s[c][0])a=c-1;else return!0;return!1}}),Co=N((t,l)=>{"use strict";B(),l.exports=({stream:n=process.stdout}={})=>!!(n&&n.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}),xo=N((t,l)=>{B();var n=Z("stream");l.exports=s;function s(e){n.apply(this),e=e||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}s.prototype=Object.create(n.prototype),Object.defineProperty(s.prototype,"constructor",{value:s,enumerable:!1}),s.prototype.mute=function(){this.muted=!0},s.prototype.unmute=function(){this.muted=!1},Object.defineProperty(s.prototype,"_onpipe",{value:i,enumerable:!1,writable:!0,configurable:!0});function i(e){this._src=e}Object.defineProperty(s.prototype,"isTTY",{get:p,set:u,enumerable:!0,configurable:!0});function p(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function u(e){Object.defineProperty(this,"isTTY",{value:e,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(s.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0}),s.prototype.pipe=function(e,f){return this._dest=e,n.prototype.pipe.call(this,e,f)},s.prototype.pause=function(){if(this._src)return this._src.pause()},s.prototype.resume=function(){if(this._src)return this._src.resume()},s.prototype.write=function(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return e.indexOf(this._prompt)===0&&(e=e.substr(this._prompt.length),e=e.replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.substr(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)},s.prototype.end=function(e){this.muted&&(e&&this.replace?e=e.toString().replace(/./g,this.replace):e=null),e&&this.emit("data",e),this.emit("end")};function r(e){return function(){var f=this._dest,a=this._src;f&&f[e]&&f[e].apply(f,arguments),a&&a[e]&&a[e].apply(a,arguments)}}s.prototype.destroy=r("destroy"),s.prototype.destroySoon=r("destroySoon"),s.prototype.close=r("close")}),Fo=N((t,l)=>{"use strict";B();var n=Z("readline"),s=po(),i=yo(),p=bo(),u=vo(),r=_o(),e=Ao(),f=Co(),a=xo(),c=Symbol("text"),o=Symbol("prefixText"),d=3,h=class{constructor(){this.requests=0,this.mutedStream=new a,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let g=this;this.ourEmit=function(D,w,...v){let{stdin:m}=process;if(g.requests>0||m.emit===g.ourEmit){if(D==="keypress")return;D==="data"&&w.includes(d)&&process.emit("SIGINT"),Reflect.apply(g.oldEmit,this,[D,w,...v])}else Reflect.apply(process.stdin.emit,this,[D,w,...v])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=n.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},y,b=class{constructor(g){y||(y=new h),typeof g=="string"&&(g={text:g}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...g},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:f({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(g=0){if(!(g>=0&&Number.isInteger(g)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=g}_updateInterval(g){g!==void 0&&(this.interval=g)}get spinner(){return this._spinner}set spinner(g){if(this.frameIndex=0,typeof g=="object"){if(g.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=g}else if(process.platform==="win32")this._spinner=p.line;else if(g===void 0)this._spinner=p.dots;else if(p[g])this._spinner=p[g];else throw new Error(`There is no built-in spinner named '${g}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[c]}get prefixText(){return this[o]}get isSpinning(){return this.id!==void 0}updateLineCount(){let g=this.stream.columns||80,D=typeof this[o]=="string"?this[o]+"-":"";this.lineCount=r(D+"--"+this[c]).split(`
|
8
|
+
`).reduce((w,v)=>w+Math.max(1,Math.ceil(e(v)/g)),0)}set text(g){this[c]=g,this.updateLineCount()}set prefixText(g){this[o]=g,this.updateLineCount()}frame(){let{frames:g}=this.spinner,D=g[this.frameIndex];this.color&&(D=s[this.color](D)),this.frameIndex=++this.frameIndex%g.length;let w=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",v=typeof this.text=="string"?" "+this.text:"";return w+D+v}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let g=0;g<this.linesToClear;g++)g>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this}start(g){return g&&(this.text=g),this.isEnabled?this.isSpinning?this:(this.hideCursor&&i.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,y.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
|
9
|
+
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&i.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(y.stop(),this.isDiscardingStdin=!1),this):this}succeed(g){return this.stopAndPersist({symbol:u.success,text:g})}fail(g){return this.stopAndPersist({symbol:u.error,text:g})}warn(g){return this.stopAndPersist({symbol:u.warning,text:g})}info(g){return this.stopAndPersist({symbol:u.info,text:g})}stopAndPersist(g={}){let D=g.prefixText||this.prefixText,w=typeof D=="string"&&D!==""?D+" ":"",v=g.text||this.text,m=typeof v=="string"?" "+v:"";return this.stop(),this.stream.write(`${w}${g.symbol||" "}${m}
|
10
|
+
`),this}},E=function(g){return new b(g)};l.exports=E,l.exports.promise=(g,D)=>{if(typeof g.then!="function")throw new TypeError("Parameter `action` must be a Promise");let w=new b(D);return w.start(),(async()=>{try{await g,w.succeed()}catch{w.fail()}})(),w}}),ko=N((t,l)=>{"use strict";B();var n=(i,p,u)=>{let r=i.indexOf(p);if(r===-1)return i;let e=p.length,f=0,a="";do a+=i.substr(f,r-f)+p+u,f=r+e,r=i.indexOf(p,f);while(r!==-1);return a+=i.substr(f),a},s=(i,p,u,r)=>{let e=0,f="";do{let a=i[r-1]==="\r";f+=i.substr(e,(a?r-1:r)-e)+p+(a?`\r
|
11
11
|
`:`
|
12
12
|
`)+u,e=r+1,r=i.indexOf(`
|
13
13
|
`,e)}while(r!==-1);return f+=i.substr(e),f};l.exports={stringReplaceAll:n,stringEncaseCRLFWithFirstIndex:s}}),Oo=N((t,l)=>{"use strict";B();var n=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,s=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,p=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,u=new Map([["n",`
|
14
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function r(c){let o=c[0]==="u",d=c[1]==="{";return o&&!d&&c.length===5||c[0]==="x"&&c.length===3?String.fromCharCode(parseInt(c.slice(1),16)):o&&d?String.fromCodePoint(parseInt(c.slice(2,-1),16)):u.get(c)||c}function e(c,o){let d=[],h=o.trim().split(/\s*,\s*/g),
|
15
|
-
`);return P!==-1&&(_=u(_,F,A,P)),A+_+F},D,w=(m,..._)=>{let[S]=_;if(!r(S)||!r(S.raw))return _.join(" ");let A=_.slice(1),F=[S.raw[0]];for(let P=1;P<S.length;P++)F.push(String(A[P-1]).replace(/[{}\\]/g,"\\$&"),String(S.raw[P]));return D===void 0&&(D=Oo()),D(m,F.join(""))};Object.defineProperties(d.prototype,f);var v=d();v.supportsColor=s,v.stderr=d({level:i?i.level:0}),v.stderr.supportsColor=i,l.exports=v}),To=N((t,l)=>{B(),function(n){var s=/^\s+/,i=/\s+$/,p=0,u=n.round,r=n.min,e=n.max,f=n.random;function a($,Y){if($=$||"",Y=Y||{},$ instanceof a)return $;if(!(this instanceof a))return new a($,Y);var C=c($);this._originalInput=$,this._r=C.r,this._g=C.g,this._b=C.b,this._a=C.a,this._roundA=u(100*this._a)/100,this._format=Y.format||C.format,this._gradientType=Y.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=C.ok,this._tc_id=p++}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var $=this.toRgb();return($.r*299+$.g*587+$.b*114)/1e3},getLuminance:function(){var $=this.toRgb(),Y,C,z,X,rt,ht;return Y=$.r/255,C=$.g/255,z=$.b/255,Y<=.03928?X=Y/12.92:X=n.pow((Y+.055)/1.055,2.4),C<=.03928?rt=C/12.92:rt=n.pow((C+.055)/1.055,2.4),z<=.03928?ht=z/12.92:ht=n.pow((z+.055)/1.055,2.4),.2126*X+.7152*rt+.0722*ht},setAlpha:function($){return this._a=et($),this._roundA=u(100*this._a)/100,this},toHsv:function(){var $=g(this._r,this._g,this._b);return{h:$.h*360,s:$.s,v:$.v,a:this._a}},toHsvString:function(){var $=g(this._r,this._g,this._b),Y=u($.h*360),C=u($.s*100),z=u($.v*100);return this._a==1?"hsv("+Y+", "+C+"%, "+z+"%)":"hsva("+Y+", "+C+"%, "+z+"%, "+this._roundA+")"},toHsl:function(){var $=d(this._r,this._g,this._b);return{h:$.h*360,s:$.s,l:$.l,a:this._a}},toHslString:function(){var $=d(this._r,this._g,this._b),Y=u($.h*360),C=u($.s*100),z=u($.l*100);return this._a==1?"hsl("+Y+", "+C+"%, "+z+"%)":"hsla("+Y+", "+C+"%, "+z+"%, "+this._roundA+")"},toHex:function($){return E(this._r,this._g,this._b,$)},toHexString:function($){return"#"+this.toHex($)},toHex8:function($){return y(this._r,this._g,this._b,this._a,$)},toHex8String:function($){return"#"+this.toHex8($)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(I(this._r,255)*100)+"%",g:u(I(this._g,255)*100)+"%",b:u(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+u(I(this._r,255)*100)+"%, "+u(I(this._g,255)*100)+"%, "+u(I(this._b,255)*100)+"%)":"rgba("+u(I(this._r,255)*100)+"%, "+u(I(this._g,255)*100)+"%, "+u(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:q[E(this._r,this._g,this._b,!0)]||!1},toFilter:function($){var Y="#"+D(this._r,this._g,this._b,this._a),C=Y,z=this._gradientType?"GradientType = 1, ":"";if($){var X=a($);C="#"+D(X._r,X._g,X._b,X._a)}return"progid:DXImageTransform.Microsoft.gradient("+z+"startColorstr="+Y+",endColorstr="+C+")"},toString:function($){var Y=!!$;$=$||this._format;var C=!1,z=this._a<1&&this._a>=0,X=!Y&&z&&($==="hex"||$==="hex6"||$==="hex3"||$==="hex4"||$==="hex8"||$==="name");return X?$==="name"&&this._a===0?this.toName():this.toRgbString():($==="rgb"&&(C=this.toRgbString()),$==="prgb"&&(C=this.toPercentageRgbString()),($==="hex"||$==="hex6")&&(C=this.toHexString()),$==="hex3"&&(C=this.toHexString(!0)),$==="hex4"&&(C=this.toHex8String(!0)),$==="hex8"&&(C=this.toHex8String()),$==="name"&&(C=this.toName()),$==="hsl"&&(C=this.toHslString()),$==="hsv"&&(C=this.toHsvString()),C||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function($,Y){var C=$.apply(null,[this].concat([].slice.call(Y)));return this._r=C._r,this._g=C._g,this._b=C._b,this.setAlpha(C._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(A,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(F,arguments)},_applyCombination:function($,Y){return $.apply(null,[this].concat([].slice.call(Y)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(P,arguments)},monochromatic:function(){return this._applyCombination(U,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},a.fromRatio=function($,Y){if(typeof $=="object"){var C={};for(var z in $)$.hasOwnProperty(z)&&(z==="a"?C[z]=$[z]:C[z]=j($[z]));$=C}return a($,Y)};function c($){var Y={r:0,g:0,b:0},C=1,z=null,X=null,rt=null,ht=!1,it=!1;return typeof $=="string"&&($=gt($)),typeof $=="object"&&(ct($.r)&&ct($.g)&&ct($.b)?(Y=o($.r,$.g,$.b),ht=!0,it=String($.r).substr(-1)==="%"?"prgb":"rgb"):ct($.h)&&ct($.s)&&ct($.v)?(z=j($.s),X=j($.v),Y=b($.h,z,X),ht=!0,it="hsv"):ct($.h)&&ct($.s)&&ct($.l)&&(z=j($.s),rt=j($.l),Y=h($.h,z,rt),ht=!0,it="hsl"),$.hasOwnProperty("a")&&(C=$.a)),C=et(C),{ok:ht,format:$.format||it,r:r(255,e(Y.r,0)),g:r(255,e(Y.g,0)),b:r(255,e(Y.b,0)),a:C}}function o($,Y,C){return{r:I($,255)*255,g:I(Y,255)*255,b:I(C,255)*255}}function d($,Y,C){$=I($,255),Y=I(Y,255),C=I(C,255);var z=e($,Y,C),X=r($,Y,C),rt,ht,it=(z+X)/2;if(z==X)rt=ht=0;else{var lt=z-X;switch(ht=it>.5?lt/(2-z-X):lt/(z+X),z){case $:rt=(Y-C)/lt+(Y<C?6:0);break;case Y:rt=(C-$)/lt+2;break;case C:rt=($-Y)/lt+4;break}rt/=6}return{h:rt,s:ht,l:it}}function h($,Y,C){var z,X,rt;$=I($,360),Y=I(Y,100),C=I(C,100);function ht(nt,ft,vt){return vt<0&&(vt+=1),vt>1&&(vt-=1),vt<1/6?nt+(ft-nt)*6*vt:vt<1/2?ft:vt<2/3?nt+(ft-nt)*(2/3-vt)*6:nt}if(Y===0)z=X=rt=C;else{var it=C<.5?C*(1+Y):C+Y-C*Y,lt=2*C-it;z=ht(lt,it,$+1/3),X=ht(lt,it,$),rt=ht(lt,it,$-1/3)}return{r:z*255,g:X*255,b:rt*255}}function g($,Y,C){$=I($,255),Y=I(Y,255),C=I(C,255);var z=e($,Y,C),X=r($,Y,C),rt,ht,it=z,lt=z-X;if(ht=z===0?0:lt/z,z==X)rt=0;else{switch(z){case $:rt=(Y-C)/lt+(Y<C?6:0);break;case Y:rt=(C-$)/lt+2;break;case C:rt=($-Y)/lt+4;break}rt/=6}return{h:rt,s:ht,v:it}}function b($,Y,C){$=I($,360)*6,Y=I(Y,100),C=I(C,100);var z=n.floor($),X=$-z,rt=C*(1-Y),ht=C*(1-X*Y),it=C*(1-(1-X)*Y),lt=z%6,nt=[C,ht,rt,rt,it,C][lt],ft=[it,C,C,ht,rt,rt][lt],vt=[rt,rt,it,C,C,ht][lt];return{r:nt*255,g:ft*255,b:vt*255}}function E($,Y,C,z){var X=[Q(u($).toString(16)),Q(u(Y).toString(16)),Q(u(C).toString(16))];return z&&X[0].charAt(0)==X[0].charAt(1)&&X[1].charAt(0)==X[1].charAt(1)&&X[2].charAt(0)==X[2].charAt(1)?X[0].charAt(0)+X[1].charAt(0)+X[2].charAt(0):X.join("")}function y($,Y,C,z,X){var rt=[Q(u($).toString(16)),Q(u(Y).toString(16)),Q(u(C).toString(16)),Q(W(z))];return X&&rt[0].charAt(0)==rt[0].charAt(1)&&rt[1].charAt(0)==rt[1].charAt(1)&&rt[2].charAt(0)==rt[2].charAt(1)&&rt[3].charAt(0)==rt[3].charAt(1)?rt[0].charAt(0)+rt[1].charAt(0)+rt[2].charAt(0)+rt[3].charAt(0):rt.join("")}function D($,Y,C,z){var X=[Q(W(z)),Q(u($).toString(16)),Q(u(Y).toString(16)),Q(u(C).toString(16))];return X.join("")}a.equals=function($,Y){return!$||!Y?!1:a($).toRgbString()==a(Y).toRgbString()},a.random=function(){return a.fromRatio({r:f(),g:f(),b:f()})};function w($,Y){Y=Y===0?0:Y||10;var C=a($).toHsl();return C.s-=Y/100,C.s=M(C.s),a(C)}function v($,Y){Y=Y===0?0:Y||10;var C=a($).toHsl();return C.s+=Y/100,C.s=M(C.s),a(C)}function m($){return a($).desaturate(100)}function _($,Y){Y=Y===0?0:Y||10;var C=a($).toHsl();return C.l+=Y/100,C.l=M(C.l),a(C)}function S($,Y){Y=Y===0?0:Y||10;var C=a($).toRgb();return C.r=e(0,r(255,C.r-u(255*-(Y/100)))),C.g=e(0,r(255,C.g-u(255*-(Y/100)))),C.b=e(0,r(255,C.b-u(255*-(Y/100)))),a(C)}function A($,Y){Y=Y===0?0:Y||10;var C=a($).toHsl();return C.l-=Y/100,C.l=M(C.l),a(C)}function F($,Y){var C=a($).toHsl(),z=(C.h+Y)%360;return C.h=z<0?360+z:z,a(C)}function P($){var Y=a($).toHsl();return Y.h=(Y.h+180)%360,a(Y)}function T($){var Y=a($).toHsl(),C=Y.h;return[a($),a({h:(C+120)%360,s:Y.s,l:Y.l}),a({h:(C+240)%360,s:Y.s,l:Y.l})]}function O($){var Y=a($).toHsl(),C=Y.h;return[a($),a({h:(C+90)%360,s:Y.s,l:Y.l}),a({h:(C+180)%360,s:Y.s,l:Y.l}),a({h:(C+270)%360,s:Y.s,l:Y.l})]}function x($){var Y=a($).toHsl(),C=Y.h;return[a($),a({h:(C+72)%360,s:Y.s,l:Y.l}),a({h:(C+216)%360,s:Y.s,l:Y.l})]}function k($,Y,C){Y=Y||6,C=C||30;var z=a($).toHsl(),X=360/C,rt=[a($)];for(z.h=(z.h-(X*Y>>1)+720)%360;--Y;)z.h=(z.h+X)%360,rt.push(a(z));return rt}function U($,Y){Y=Y||6;for(var C=a($).toHsv(),z=C.h,X=C.s,rt=C.v,ht=[],it=1/Y;Y--;)ht.push(a({h:z,s:X,v:rt})),rt=(rt+it)%1;return ht}a.mix=function($,Y,C){C=C===0?0:C||50;var z=a($).toRgb(),X=a(Y).toRgb(),rt=C/100,ht={r:(X.r-z.r)*rt+z.r,g:(X.g-z.g)*rt+z.g,b:(X.b-z.b)*rt+z.b,a:(X.a-z.a)*rt+z.a};return a(ht)},a.readability=function($,Y){var C=a($),z=a(Y);return(n.max(C.getLuminance(),z.getLuminance())+.05)/(n.min(C.getLuminance(),z.getLuminance())+.05)},a.isReadable=function($,Y,C){var z=a.readability($,Y),X,rt;switch(rt=!1,X=mt(C),X.level+X.size){case"AAsmall":case"AAAlarge":rt=z>=4.5;break;case"AAlarge":rt=z>=3;break;case"AAAsmall":rt=z>=7;break}return rt},a.mostReadable=function($,Y,C){var z=null,X=0,rt,ht,it,lt;C=C||{},ht=C.includeFallbackColors,it=C.level,lt=C.size;for(var nt=0;nt<Y.length;nt++)rt=a.readability($,Y[nt]),rt>X&&(X=rt,z=a(Y[nt]));return a.isReadable($,z,{level:it,size:lt})||!ht?z:(C.includeFallbackColors=!1,a.mostReadable($,["#fff","#000"],C))};var L=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},q=a.hexNames=V(L);function V($){var Y={};for(var C in $)$.hasOwnProperty(C)&&(Y[$[C]]=C);return Y}function et($){return $=parseFloat($),(isNaN($)||$<0||$>1)&&($=1),$}function I($,Y){J($)&&($="100%");var C=G($);return $=r(Y,e(0,parseFloat($))),C&&($=parseInt($*Y,10)/100),n.abs($-Y)<1e-6?1:$%Y/parseFloat(Y)}function M($){return r(1,e(0,$))}function R($){return parseInt($,16)}function J($){return typeof $=="string"&&$.indexOf(".")!=-1&&parseFloat($)===1}function G($){return typeof $=="string"&&$.indexOf("%")!=-1}function Q($){return $.length==1?"0"+$:""+$}function j($){return $<=1&&($=$*100+"%"),$}function W($){return n.round(parseFloat($)*255).toString(16)}function tt($){return R($)/255}var ot=function(){var $="[-\\+]?\\d+%?",Y="[-\\+]?\\d*\\.\\d+%?",C="(?:"+Y+")|(?:"+$+")",z="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?",X="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?";return{CSS_UNIT:new RegExp(C),rgb:new RegExp("rgb"+z),rgba:new RegExp("rgba"+X),hsl:new RegExp("hsl"+z),hsla:new RegExp("hsla"+X),hsv:new RegExp("hsv"+z),hsva:new RegExp("hsva"+X),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ct($){return!!ot.CSS_UNIT.exec($)}function gt($){$=$.replace(s,"").replace(i,"").toLowerCase();var Y=!1;if(L[$])$=L[$],Y=!0;else if($=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var C;return(C=ot.rgb.exec($))?{r:C[1],g:C[2],b:C[3]}:(C=ot.rgba.exec($))?{r:C[1],g:C[2],b:C[3],a:C[4]}:(C=ot.hsl.exec($))?{h:C[1],s:C[2],l:C[3]}:(C=ot.hsla.exec($))?{h:C[1],s:C[2],l:C[3],a:C[4]}:(C=ot.hsv.exec($))?{h:C[1],s:C[2],v:C[3]}:(C=ot.hsva.exec($))?{h:C[1],s:C[2],v:C[3],a:C[4]}:(C=ot.hex8.exec($))?{r:R(C[1]),g:R(C[2]),b:R(C[3]),a:tt(C[4]),format:Y?"name":"hex8"}:(C=ot.hex6.exec($))?{r:R(C[1]),g:R(C[2]),b:R(C[3]),format:Y?"name":"hex"}:(C=ot.hex4.exec($))?{r:R(C[1]+""+C[1]),g:R(C[2]+""+C[2]),b:R(C[3]+""+C[3]),a:tt(C[4]+""+C[4]),format:Y?"name":"hex8"}:(C=ot.hex3.exec($))?{r:R(C[1]+""+C[1]),g:R(C[2]+""+C[2]),b:R(C[3]+""+C[3]),format:Y?"name":"hex"}:!1}function mt($){var Y,C;return $=$||{level:"AA",size:"small"},Y=($.level||"AA").toUpperCase(),C=($.size||"small").toLowerCase(),Y!=="AA"&&Y!=="AAA"&&(Y="AA"),C!=="small"&&C!=="large"&&(C="small"),{level:Y,size:C}}typeof l<"u"&&l.exports?l.exports=a:typeof define=="function"&&define.amd?define(function(){return a}):window.tinycolor=a}(Math)}),Bo=N((t,l)=>{B();var n=To(),s={r:256,g:256,b:256,a:1},i={h:360,s:1,v:1,a:1};function p(o,d,h){let g={};for(let b in o)o.hasOwnProperty(b)&&(g[b]=h===0?0:(d[b]-o[b])/h);return g}function u(o,d,h,g){let b={};for(let E in d)d.hasOwnProperty(E)&&(b[E]=o[E]*h+d[E],b[E]=b[E]<0?b[E]+g[E]:g[E]!==1?b[E]%g[E]:b[E]);return b}function r(o,d,h){let g=o.color.toRgb(),b=d.color.toRgb(),E=p(g,b,h),y=[o.color];for(let D=1;D<h;D++){let w=u(E,g,D,s);y.push(n(w))}return y}function e(o,d,h,g){let b=o.color.toHsv(),E=d.color.toHsv();if(b.s===0||E.s===0)return r(o,d,h);let y;if(typeof g=="boolean")y=g;else{let m=b.h<E.h&&E.h-b.h<180||b.h>E.h&&b.h-E.h>180;y=g==="long"&&m||g==="short"&&!m}let D=p(b,E,h),w=[o.color],v;b.h<=E.h&&!y||b.h>=E.h&&y?v=E.h-b.h:y?v=360-E.h+b.h:v=360-b.h+E.h,D.h=Math.pow(-1,y?1:0)*Math.abs(v)/h;for(let m=1;m<h;m++){let _=u(D,b,m,i);w.push(n(_))}return w}function f(o,d){let h=o.length;if(d=parseInt(d,10),isNaN(d)||d<2)throw new Error("Invalid number of steps (< 2)");if(d<h)throw new Error("Number of steps cannot be inferior to number of stops");let g=[];for(let E=1;E<h;E++){let y=(d-1)*(o[E].pos-o[E-1].pos);g.push(Math.max(1,Math.round(y)))}let b=1;for(let E=h-1;E--;)b+=g[E];for(;b!==d;)if(b<d){let E=Math.min.apply(null,g);g[g.indexOf(E)]++,b++}else{let E=Math.max.apply(null,g);g[g.indexOf(E)]--,b--}return g}function a(o,d,h,g){if(d<0||d>1)throw new Error("Position must be between 0 and 1");let b,E;for(let w=0,v=o.length;w<v-1;w++)if(d>=o[w].pos&&d<o[w+1].pos){b=o[w],E=o[w+1];break}b||(b=E=o[o.length-1]);let y=p(b.color[h](),E.color[h](),(E.pos-b.pos)*100),D=u(y,b.color[h](),(d-b.pos)*100,g);return n(D)}var c=class{constructor(o){if(o.length<2)throw new Error("Invalid number of stops (< 2)");let d=o[0].pos!==void 0,h=o.length,g=-1,b=!1;this.stops=o.map((E,y)=>{let D=E.pos!==void 0;if(d^D)throw new Error("Cannot mix positionned and not posionned color stops");if(D){let w=E.color!==void 0;if(!w&&(b||y===0||y===h-1))throw new Error("Cannot define two consecutive position-only stops");if(b=!w,E={color:w?n(E.color):null,colorLess:!w,pos:E.pos},E.pos<0||E.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(E.pos<g)throw new Error("Color stops positions are not ordered");g=E.pos}else E={color:n(E.color!==void 0?E.color:E),pos:y/(h-1)};return E}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),h++),this.stops[h-1].pos!==1&&this.stops.push({color:this.stops[h-1].color,pos:1})}reverse(){let o=[];return this.stops.forEach(function(d){o.push({color:d.color,pos:1-d.pos})}),new c(o.reverse())}loop(){let o=[],d=[];return this.stops.forEach(h=>{o.push({color:h.color,pos:h.pos/2})}),this.stops.slice(0,-1).forEach(h=>{d.push({color:h.color,pos:1-h.pos/2})}),new c(o.concat(d.reverse()))}rgb(o){let d=f(this.stops,o),h=[];this.stops.forEach((g,b)=>{g.colorLess&&(g.color=r(this.stops[b-1],this.stops[b+1],2)[1])});for(let g=0,b=this.stops.length;g<b-1;g++){let E=r(this.stops[g],this.stops[g+1],d[g]);h.splice(h.length,0,...E)}return h.push(this.stops[this.stops.length-1].color),h}hsv(o,d){let h=f(this.stops,o),g=[];this.stops.forEach((b,E)=>{b.colorLess&&(b.color=e(this.stops[E-1],this.stops[E+1],2,d)[1])});for(let b=0,E=this.stops.length;b<E-1;b++){let y=e(this.stops[b],this.stops[b+1],h[b],d);g.splice(g.length,0,...y)}return g.push(this.stops[this.stops.length-1].color),g}css(o,d){o=o||"linear",d=d||(o==="linear"?"to right":"ellipse at center");let h=o+"-gradient("+d;return this.stops.forEach(function(g){h+=", "+(g.colorLess?"":g.color.toRgbString()+" ")+g.pos*100+"%"}),h+=")",h}rgbAt(o){return a(this.stops,o,"toRgb",s)}hsvAt(o){return a(this.stops,o,"toHsv",i)}};l.exports=function(o){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');o=arguments[0]}else o=Array.prototype.slice.call(arguments);return new c(o)}}),Po=N((t,l)=>{"use strict";B();var n=Ro(),s=Bo(),i=/\s/g;function p(...c){let o=s.apply(this,c),d=(h,g)=>r(h?h.toString():"",o,g);return d.multiline=(h,g)=>e(h?h.toString():"",o,g),d}var u=(c,o,d)=>o.interpolation.toLowerCase()==="hsv"?c.hsv(d,o.hsvSpin.toLowerCase()):c.rgb(d);function r(c,o,d){let h=f(d),g=Math.max(c.replace(i,"").length,o.stops.length),b=u(o,h,g),E="";for(let y of c)E+=y.match(i)?y:n.hex(b.shift().toHex())(y);return E}function e(c,o,d){let h=f(d),g=c.split(`
|
16
|
-
`),b=Math.max.apply(null,
|
17
|
-
`)}function f(c){let o={interpolation:"rgb",hsvSpin:"short",...c};if(c!==void 0&&typeof c!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof c}\``);if(typeof o.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof o.interpolation}\``);if(o.interpolation.toLowerCase()==="hsv"&&typeof o.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof o.hsvSpin}\``);return o}var a={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};l.exports=p;for(let c in a)l.exports[c]=o=>new p(a[c].colors)(o,a[c].options),l.exports[c].multiline=o=>new p(a[c].colors).multiline(o,a[c].options)}),On={};An(On,{dimmed:()=>Ho,error:()=>Ln,info:()=>jo,item:()=>Uo,turboBlue:()=>ve,turboGradient:()=>Mo,turboLoader:()=>In,turboRed:()=>Bn,warn:()=>$o,yellow:()=>Pn});B();var Je=Ot(he()),Io=Ot(Fo()),Lo=Ot(Po()),Rn="#0099F7",Tn="#F11712",No="#FFFF00",Mo=(0,Lo.default)(Rn,Tn),ve=Je.default.hex(Rn),Bn=Je.default.hex(Tn),Pn=Je.default.hex(No),In=t=>(0,Io.default)({text:t,spinner:{frames:[" ",ve("> "),ve(">> "),ve(">>>")]}}),jo=(...t)=>{console.log(ve.bold(">>>"),...t)},Ln=(...t)=>{console.error(Bn.bold(">>>"),...t)},$o=(...t)=>{console.error(Pn.bold(">>>"),...t)},Ho=(...t)=>{console.log(Je.default.dim(...t))},Uo=(...t)=>{console.log(ve.bold(" \u2022"),...t)};var ai=require("stream"),li=require("util");var se=N((t,l)=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var n=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function s(m){return n.includes(m)}var i=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...n];function p(m){return i.includes(m)}var u=["null","undefined","string","number","bigint","boolean","symbol"];function r(m){return u.includes(m)}function e(m){return _=>typeof _===m}var{toString:f}=Object.prototype,a=m=>{let _=f.call(m).slice(8,-1);if(/HTML\w+Element/.test(_)&&o.domElement(m))return"HTMLElement";if(p(_))return _},c=m=>_=>a(_)===m;function o(m){if(m===null)return"null";switch(typeof m){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(o.observable(m))return"Observable";if(o.array(m))return"Array";if(o.buffer(m))return"Buffer";let _=a(m);if(_)return _;if(m instanceof String||m instanceof Boolean||m instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}o.undefined=e("undefined"),o.string=e("string");var d=e("number");o.number=m=>d(m)&&!o.nan(m),o.bigint=e("bigint"),o.function_=e("function"),o.null_=m=>m===null,o.class_=m=>o.function_(m)&&m.toString().startsWith("class "),o.boolean=m=>m===!0||m===!1,o.symbol=e("symbol"),o.numericString=m=>o.string(m)&&!o.emptyStringOrWhitespace(m)&&!Number.isNaN(Number(m)),o.array=(m,_)=>Array.isArray(m)?o.function_(_)?m.every(_):!0:!1,o.buffer=m=>{var _,S,A,F;return(F=(A=(S=(_=m)===null||_===void 0?void 0:_.constructor)===null||S===void 0?void 0:S.isBuffer)===null||A===void 0?void 0:A.call(S,m))!==null&&F!==void 0?F:!1},o.blob=m=>c("Blob")(m),o.nullOrUndefined=m=>o.null_(m)||o.undefined(m),o.object=m=>!o.null_(m)&&(typeof m=="object"||o.function_(m)),o.iterable=m=>{var _;return o.function_((_=m)===null||_===void 0?void 0:_[Symbol.iterator])},o.asyncIterable=m=>{var _;return o.function_((_=m)===null||_===void 0?void 0:_[Symbol.asyncIterator])},o.generator=m=>{var _,S;return o.iterable(m)&&o.function_((_=m)===null||_===void 0?void 0:_.next)&&o.function_((S=m)===null||S===void 0?void 0:S.throw)},o.asyncGenerator=m=>o.asyncIterable(m)&&o.function_(m.next)&&o.function_(m.throw),o.nativePromise=m=>c("Promise")(m);var h=m=>{var _,S;return o.function_((_=m)===null||_===void 0?void 0:_.then)&&o.function_((S=m)===null||S===void 0?void 0:S.catch)};o.promise=m=>o.nativePromise(m)||h(m),o.generatorFunction=c("GeneratorFunction"),o.asyncGeneratorFunction=m=>a(m)==="AsyncGeneratorFunction",o.asyncFunction=m=>a(m)==="AsyncFunction",o.boundFunction=m=>o.function_(m)&&!m.hasOwnProperty("prototype"),o.regExp=c("RegExp"),o.date=c("Date"),o.error=c("Error"),o.map=m=>c("Map")(m),o.set=m=>c("Set")(m),o.weakMap=m=>c("WeakMap")(m),o.weakSet=m=>c("WeakSet")(m),o.int8Array=c("Int8Array"),o.uint8Array=c("Uint8Array"),o.uint8ClampedArray=c("Uint8ClampedArray"),o.int16Array=c("Int16Array"),o.uint16Array=c("Uint16Array"),o.int32Array=c("Int32Array"),o.uint32Array=c("Uint32Array"),o.float32Array=c("Float32Array"),o.float64Array=c("Float64Array"),o.bigInt64Array=c("BigInt64Array"),o.bigUint64Array=c("BigUint64Array"),o.arrayBuffer=c("ArrayBuffer"),o.sharedArrayBuffer=c("SharedArrayBuffer"),o.dataView=c("DataView"),o.enumCase=(m,_)=>Object.values(_).includes(m),o.directInstanceOf=(m,_)=>Object.getPrototypeOf(m)===_.prototype,o.urlInstance=m=>c("URL")(m),o.urlString=m=>{if(!o.string(m))return!1;try{return new URL(m),!0}catch{return!1}},o.truthy=m=>!!m,o.falsy=m=>!m,o.nan=m=>Number.isNaN(m),o.primitive=m=>o.null_(m)||r(typeof m),o.integer=m=>Number.isInteger(m),o.safeInteger=m=>Number.isSafeInteger(m),o.plainObject=m=>{if(f.call(m)!=="[object Object]")return!1;let _=Object.getPrototypeOf(m);return _===null||_===Object.getPrototypeOf({})},o.typedArray=m=>s(a(m));var g=m=>o.safeInteger(m)&&m>=0;o.arrayLike=m=>!o.nullOrUndefined(m)&&!o.function_(m)&&g(m.length),o.inRange=(m,_)=>{if(o.number(_))return m>=Math.min(0,_)&&m<=Math.max(_,0);if(o.array(_)&&_.length===2)return m>=Math.min(..._)&&m<=Math.max(..._);throw new TypeError(`Invalid range: ${JSON.stringify(_)}`)};var b=1,E=["innerHTML","ownerDocument","style","attributes","nodeValue"];o.domElement=m=>o.object(m)&&m.nodeType===b&&o.string(m.nodeName)&&!o.plainObject(m)&&E.every(_=>_ in m),o.observable=m=>{var _,S,A,F;return m?m===((S=(_=m)[Symbol.observable])===null||S===void 0?void 0:S.call(_))||m===((F=(A=m)["@@observable"])===null||F===void 0?void 0:F.call(A)):!1},o.nodeStream=m=>o.object(m)&&o.function_(m.pipe)&&!o.observable(m),o.infinite=m=>m===1/0||m===-1/0;var y=m=>_=>o.integer(_)&&Math.abs(_%2)===m;o.evenInteger=y(0),o.oddInteger=y(1),o.emptyArray=m=>o.array(m)&&m.length===0,o.nonEmptyArray=m=>o.array(m)&&m.length>0,o.emptyString=m=>o.string(m)&&m.length===0;var D=m=>o.string(m)&&!/\S/.test(m);o.emptyStringOrWhitespace=m=>o.emptyString(m)||D(m),o.nonEmptyString=m=>o.string(m)&&m.length>0,o.nonEmptyStringAndNotWhitespace=m=>o.string(m)&&!o.emptyStringOrWhitespace(m),o.emptyObject=m=>o.object(m)&&!o.map(m)&&!o.set(m)&&Object.keys(m).length===0,o.nonEmptyObject=m=>o.object(m)&&!o.map(m)&&!o.set(m)&&Object.keys(m).length>0,o.emptySet=m=>o.set(m)&&m.size===0,o.nonEmptySet=m=>o.set(m)&&m.size>0,o.emptyMap=m=>o.map(m)&&m.size===0,o.nonEmptyMap=m=>o.map(m)&&m.size>0,o.propertyKey=m=>o.any([o.string,o.number,o.symbol],m),o.formData=m=>c("FormData")(m),o.urlSearchParams=m=>c("URLSearchParams")(m);var w=(m,_,S)=>{if(!o.function_(_))throw new TypeError(`Invalid predicate: ${JSON.stringify(_)}`);if(S.length===0)throw new TypeError("Invalid number of values");return m.call(S,_)};o.any=(m,..._)=>(o.array(m)?m:[m]).some(S=>w(Array.prototype.some,S,_)),o.all=(m,..._)=>w(Array.prototype.every,m,_);var v=(m,_,S,A={})=>{if(!m){let{multipleValues:F}=A,P=F?`received values of types ${[...new Set(S.map(T=>`\`${o(T)}\``))].join(", ")}`:`received value of type \`${o(S)}\``;throw new TypeError(`Expected value which is \`${_}\`, ${P}.`)}};t.assert={undefined:m=>v(o.undefined(m),"undefined",m),string:m=>v(o.string(m),"string",m),number:m=>v(o.number(m),"number",m),bigint:m=>v(o.bigint(m),"bigint",m),function_:m=>v(o.function_(m),"Function",m),null_:m=>v(o.null_(m),"null",m),class_:m=>v(o.class_(m),"Class",m),boolean:m=>v(o.boolean(m),"boolean",m),symbol:m=>v(o.symbol(m),"symbol",m),numericString:m=>v(o.numericString(m),"string with a number",m),array:(m,_)=>{v(o.array(m),"Array",m),_&&m.forEach(_)},buffer:m=>v(o.buffer(m),"Buffer",m),blob:m=>v(o.blob(m),"Blob",m),nullOrUndefined:m=>v(o.nullOrUndefined(m),"null or undefined",m),object:m=>v(o.object(m),"Object",m),iterable:m=>v(o.iterable(m),"Iterable",m),asyncIterable:m=>v(o.asyncIterable(m),"AsyncIterable",m),generator:m=>v(o.generator(m),"Generator",m),asyncGenerator:m=>v(o.asyncGenerator(m),"AsyncGenerator",m),nativePromise:m=>v(o.nativePromise(m),"native Promise",m),promise:m=>v(o.promise(m),"Promise",m),generatorFunction:m=>v(o.generatorFunction(m),"GeneratorFunction",m),asyncGeneratorFunction:m=>v(o.asyncGeneratorFunction(m),"AsyncGeneratorFunction",m),asyncFunction:m=>v(o.asyncFunction(m),"AsyncFunction",m),boundFunction:m=>v(o.boundFunction(m),"Function",m),regExp:m=>v(o.regExp(m),"RegExp",m),date:m=>v(o.date(m),"Date",m),error:m=>v(o.error(m),"Error",m),map:m=>v(o.map(m),"Map",m),set:m=>v(o.set(m),"Set",m),weakMap:m=>v(o.weakMap(m),"WeakMap",m),weakSet:m=>v(o.weakSet(m),"WeakSet",m),int8Array:m=>v(o.int8Array(m),"Int8Array",m),uint8Array:m=>v(o.uint8Array(m),"Uint8Array",m),uint8ClampedArray:m=>v(o.uint8ClampedArray(m),"Uint8ClampedArray",m),int16Array:m=>v(o.int16Array(m),"Int16Array",m),uint16Array:m=>v(o.uint16Array(m),"Uint16Array",m),int32Array:m=>v(o.int32Array(m),"Int32Array",m),uint32Array:m=>v(o.uint32Array(m),"Uint32Array",m),float32Array:m=>v(o.float32Array(m),"Float32Array",m),float64Array:m=>v(o.float64Array(m),"Float64Array",m),bigInt64Array:m=>v(o.bigInt64Array(m),"BigInt64Array",m),bigUint64Array:m=>v(o.bigUint64Array(m),"BigUint64Array",m),arrayBuffer:m=>v(o.arrayBuffer(m),"ArrayBuffer",m),sharedArrayBuffer:m=>v(o.sharedArrayBuffer(m),"SharedArrayBuffer",m),dataView:m=>v(o.dataView(m),"DataView",m),enumCase:(m,_)=>v(o.enumCase(m,_),"EnumCase",m),urlInstance:m=>v(o.urlInstance(m),"URL",m),urlString:m=>v(o.urlString(m),"string with a URL",m),truthy:m=>v(o.truthy(m),"truthy",m),falsy:m=>v(o.falsy(m),"falsy",m),nan:m=>v(o.nan(m),"NaN",m),primitive:m=>v(o.primitive(m),"primitive",m),integer:m=>v(o.integer(m),"integer",m),safeInteger:m=>v(o.safeInteger(m),"integer",m),plainObject:m=>v(o.plainObject(m),"plain object",m),typedArray:m=>v(o.typedArray(m),"TypedArray",m),arrayLike:m=>v(o.arrayLike(m),"array-like",m),domElement:m=>v(o.domElement(m),"HTMLElement",m),observable:m=>v(o.observable(m),"Observable",m),nodeStream:m=>v(o.nodeStream(m),"Node.js Stream",m),infinite:m=>v(o.infinite(m),"infinite number",m),emptyArray:m=>v(o.emptyArray(m),"empty array",m),nonEmptyArray:m=>v(o.nonEmptyArray(m),"non-empty array",m),emptyString:m=>v(o.emptyString(m),"empty string",m),emptyStringOrWhitespace:m=>v(o.emptyStringOrWhitespace(m),"empty string or whitespace",m),nonEmptyString:m=>v(o.nonEmptyString(m),"non-empty string",m),nonEmptyStringAndNotWhitespace:m=>v(o.nonEmptyStringAndNotWhitespace(m),"non-empty string and not whitespace",m),emptyObject:m=>v(o.emptyObject(m),"empty object",m),nonEmptyObject:m=>v(o.nonEmptyObject(m),"non-empty object",m),emptySet:m=>v(o.emptySet(m),"empty set",m),nonEmptySet:m=>v(o.nonEmptySet(m),"non-empty set",m),emptyMap:m=>v(o.emptyMap(m),"empty map",m),nonEmptyMap:m=>v(o.nonEmptyMap(m),"non-empty map",m),propertyKey:m=>v(o.propertyKey(m),"PropertyKey",m),formData:m=>v(o.formData(m),"FormData",m),urlSearchParams:m=>v(o.urlSearchParams(m),"URLSearchParams",m),evenInteger:m=>v(o.evenInteger(m),"even integer",m),oddInteger:m=>v(o.oddInteger(m),"odd integer",m),directInstanceOf:(m,_)=>v(o.directInstanceOf(m,_),"T",m),inRange:(m,_)=>v(o.inRange(m,_),"in range",m),any:(m,..._)=>v(o.any(m,..._),"predicate returns truthy for any value",_,{multipleValues:!0}),all:(m,..._)=>v(o.all(m,..._),"predicate returns truthy for all values",_,{multipleValues:!0})},Object.defineProperties(o,{class:{value:o.class_},function:{value:o.function_},null:{value:o.null_}}),Object.defineProperties(t.assert,{class:{value:t.assert.class_},function:{value:t.assert.function_},null:{value:t.assert.null_}}),t.default=o,l.exports=o,l.exports.default=o,l.exports.assert=t.assert}),Go=N((t,l)=>{"use strict";B();var n=class extends Error{constructor(i){super(i||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},s=class{static fn(i){return(...p)=>new s((u,r,e)=>{p.push(e),i(...p).then(u,r)})}constructor(i){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((p,u)=>{this._reject=u;let r=a=>{(!this._isCanceled||!f.shouldReject)&&(this._isPending=!1,p(a))},e=a=>{this._isPending=!1,u(a)},f=a=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(a)};return Object.defineProperties(f,{shouldReject:{get:()=>this._rejectOnCancel,set:a=>{this._rejectOnCancel=a}}}),i(r,e,f)})}then(i,p){return this._promise.then(i,p)}catch(i){return this._promise.catch(i)}finally(i){return this._promise.finally(i)}cancel(i){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let p of this._cancelHandlers)p()}catch(p){this._reject(p);return}this._rejectOnCancel&&this._reject(new n(i))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(s.prototype,Promise.prototype),l.exports=s,l.exports.CancelError=n}),qo=N((t,l)=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});function n(i){return i.encrypted}var s=(i,p)=>{let u;typeof p=="function"?u={connect:p}:u=p;let r=typeof u.connect=="function",e=typeof u.secureConnect=="function",f=typeof u.close=="function",a=()=>{r&&u.connect(),n(i)&&e&&(i.authorized?u.secureConnect():i.authorizationError||i.once("secureConnect",u.secureConnect)),f&&i.once("close",u.close)};i.writable&&!i.connecting?a():i.connecting?i.once("connect",a):i.destroyed&&f&&u.close(i._hadError)};t.default=s,l.exports=s,l.exports.default=s}),zo=N((t,l)=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var n=qo(),s=Z("util"),i=Number(process.versions.node.split(".")[0]),p=u=>{if(u.timings)return u.timings;let r={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};u.timings=r;let e=o=>{let d=o.emit.bind(o);o.emit=(h,...g)=>(h==="error"&&(r.error=Date.now(),r.phases.total=r.error-r.start,o.emit=d),d(h,...g))};e(u);let f=()=>{r.abort=Date.now(),(!r.response||i>=13)&&(r.phases.total=Date.now()-r.start)};u.prependOnceListener("abort",f);let a=o=>{if(r.socket=Date.now(),r.phases.wait=r.socket-r.start,s.types.isProxy(o))return;let d=()=>{r.lookup=Date.now(),r.phases.dns=r.lookup-r.socket};o.prependOnceListener("lookup",d),n.default(o,{connect:()=>{r.connect=Date.now(),r.lookup===void 0&&(o.removeListener("lookup",d),r.lookup=r.connect,r.phases.dns=r.lookup-r.socket),r.phases.tcp=r.connect-r.lookup},secureConnect:()=>{r.secureConnect=Date.now(),r.phases.tls=r.secureConnect-r.connect}})};u.socket?a(u.socket):u.prependOnceListener("socket",a);let c=()=>{var o;r.upload=Date.now(),r.phases.request=r.upload-((o=r.secureConnect)!==null&&o!==void 0?o:r.connect)};return(()=>typeof u.writableFinished=="boolean"?u.writableFinished:u.finished&&u.outputSize===0&&(!u.socket||u.socket.writableLength===0))()?c():u.prependOnceListener("finish",c),u.prependOnceListener("response",o=>{r.response=Date.now(),r.phases.firstByte=r.response-r.upload,o.timings=r,e(o),o.prependOnceListener("end",()=>{r.end=Date.now(),r.phases.download=r.end-r.response,r.phases.total=r.end-r.start}),o.prependOnceListener("aborted",f)}),r};t.default=p,l.exports=p,l.exports.default=p}),Wo=N((t,l)=>{"use strict";B();var{V4MAPPED:n,ADDRCONFIG:s,ALL:i,promises:{Resolver:p},lookup:u}=Z("dns"),{promisify:r}=Z("util"),e=Z("os"),f=Symbol("cacheableLookupCreateConnection"),a=Symbol("cacheableLookupInstance"),c=Symbol("expires"),o=typeof i=="number",d=w=>{if(!(w&&typeof w.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},h=w=>{for(let v of w)v.family!==6&&(v.address=`::ffff:${v.address}`,v.family=6)},g=()=>{let w=!1,v=!1;for(let m of Object.values(e.networkInterfaces()))for(let _ of m)if(!_.internal&&(_.family==="IPv6"?v=!0:w=!0,w&&v))return{has4:w,has6:v};return{has4:w,has6:v}},b=w=>Symbol.iterator in w,E={ttl:!0},y={all:!0},D=class{constructor({cache:w=new Map,maxTtl:v=1/0,fallbackDuration:m=3600,errorTtl:_=.15,resolver:S=new p,lookup:A=u}={}){if(this.maxTtl=v,this.errorTtl=_,this._cache=w,this._resolver=S,this._dnsLookup=r(A),this._resolver instanceof p?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=r(this._resolver.resolve4.bind(this._resolver)),this._resolve6=r(this._resolver.resolve6.bind(this._resolver))),this._iface=g(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,m<1)this._fallback=!1;else{this._fallback=!0;let F=setInterval(()=>{this._hostnamesToFallback.clear()},m*1e3);F.unref&&F.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(w){this.clear(),this._resolver.setServers(w)}get servers(){return this._resolver.getServers()}lookup(w,v,m){if(typeof v=="function"?(m=v,v={}):typeof v=="number"&&(v={family:v}),!m)throw new Error("Callback must be a function.");this.lookupAsync(w,v).then(_=>{v.all?m(null,_):m(null,_.address,_.family,_.expires,_.ttl)},m)}async lookupAsync(w,v={}){typeof v=="number"&&(v={family:v});let m=await this.query(w);if(v.family===6){let _=m.filter(S=>S.family===6);v.hints&n&&(o&&v.hints&i||_.length===0)?h(m):m=_}else v.family===4&&(m=m.filter(_=>_.family===4));if(v.hints&s){let{_iface:_}=this;m=m.filter(S=>S.family===6?_.has6:_.has4)}if(m.length===0){let _=new Error(`cacheableLookup ENOTFOUND ${w}`);throw _.code="ENOTFOUND",_.hostname=w,_}return v.all?m:m[0]}async query(w){let v=await this._cache.get(w);if(!v){let m=this._pending[w];if(m)v=await m;else{let _=this.queryAndCache(w);this._pending[w]=_;try{v=await _}finally{delete this._pending[w]}}}return v=v.map(m=>({...m})),v}async _resolve(w){let v=async T=>{try{return await T}catch(O){if(O.code==="ENODATA"||O.code==="ENOTFOUND")return[];throw O}},[m,_]=await Promise.all([this._resolve4(w,E),this._resolve6(w,E)].map(T=>v(T))),S=0,A=0,F=0,P=Date.now();for(let T of m)T.family=4,T.expires=P+T.ttl*1e3,S=Math.max(S,T.ttl);for(let T of _)T.family=6,T.expires=P+T.ttl*1e3,A=Math.max(A,T.ttl);return m.length>0?_.length>0?F=Math.min(S,A):F=S:F=A,{entries:[...m,..._],cacheTtl:F}}async _lookup(w){try{return{entries:await this._dnsLookup(w,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(w,v,m){if(this.maxTtl>0&&m>0){m=Math.min(m,this.maxTtl)*1e3,v[c]=Date.now()+m;try{await this._cache.set(w,v,m)}catch(_){this.lookupAsync=async()=>{let S=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw S.cause=_,S}}b(this._cache)&&this._tick(m)}}async queryAndCache(w){if(this._hostnamesToFallback.has(w))return this._dnsLookup(w,y);let v=await this._resolve(w);v.entries.length===0&&this._fallback&&(v=await this._lookup(w),v.entries.length!==0&&this._hostnamesToFallback.add(w));let m=v.entries.length===0?this.errorTtl:v.cacheTtl;return await this._set(w,v.entries,m),v.entries}_tick(w){let v=this._nextRemovalTime;(!v||w<v)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=w,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let m=1/0,_=Date.now();for(let[S,A]of this._cache){let F=A[c];_>=F?this._cache.delete(S):F<m&&(m=F)}m!==1/0&&this._tick(m-_)},w),this._removalTimeout.unref&&this._removalTimeout.unref())}install(w){if(d(w),f in w)throw new Error("CacheableLookup has been already installed");w[f]=w.createConnection,w[a]=this,w.createConnection=(v,m)=>("lookup"in v||(v.lookup=this.lookup),w[f](v,m))}uninstall(w){if(d(w),w[f]){if(w[a]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");w.createConnection=w[f],delete w[f],delete w[a]}}updateInterfaceInfo(){let{_iface:w}=this;this._iface=g(),(w.has4&&!this._iface.has4||w.has6&&!this._iface.has6)&&this._cache.clear()}clear(w){if(w){this._cache.delete(w);return}this._cache.clear()}};l.exports=D,l.exports.default=D}),Vo=N((t,l)=>{"use strict";B();var n="text/plain",s="us-ascii",i=(r,e)=>e.some(f=>f instanceof RegExp?f.test(r):f===r),p=(r,{stripHash:e})=>{let f=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(r);if(!f)throw new Error(`Invalid URL: ${r}`);let{type:a,data:c,hash:o}=f.groups,d=a.split(";");o=e?"":o;let h=!1;d[d.length-1]==="base64"&&(d.pop(),h=!0);let g=(d.shift()||"").toLowerCase(),b=[...d.map(E=>{let[y,D=""]=E.split("=").map(w=>w.trim());return y==="charset"&&(D=D.toLowerCase(),D===s)?"":`${y}${D?`=${D}`:""}`}).filter(Boolean)];return h&&b.push("base64"),(b.length!==0||g&&g!==n)&&b.unshift(g),`data:${b.join(";")},${h?c.trim():c}${o?`#${o}`:""}`},u=(r,e)=>{if(e={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...e},r=r.trim(),/^data:/i.test(r))return p(r,e);if(/^view-source:/i.test(r))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let f=r.startsWith("//");!f&&/^\.*\//.test(r)||(r=r.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let a=new URL(r);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&a.protocol==="https:"&&(a.protocol="http:"),e.forceHttps&&a.protocol==="http:"&&(a.protocol="https:"),e.stripAuthentication&&(a.username="",a.password=""),e.stripHash?a.hash="":e.stripTextFragment&&(a.hash=a.hash.replace(/#?:~:text.*?$/i,"")),a.pathname&&(a.pathname=a.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),a.pathname)try{a.pathname=decodeURI(a.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=a.pathname.split("/"),d=o[o.length-1];i(d,e.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),a.pathname=o.slice(1).join("/")+"/")}if(a.hostname&&(a.hostname=a.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(a.hostname)&&(a.hostname=a.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...a.searchParams.keys()])i(o,e.removeQueryParameters)&&a.searchParams.delete(o);e.removeQueryParameters===!0&&(a.search=""),e.sortQueryParameters&&a.searchParams.sort(),e.removeTrailingSlash&&(a.pathname=a.pathname.replace(/\/$/,""));let c=r;return r=a.toString(),!e.removeSingleSlash&&a.pathname==="/"&&!c.endsWith("/")&&a.hash===""&&(r=r.replace(/\/$/,"")),(e.removeTrailingSlash||a.pathname==="/")&&a.hash===""&&e.removeSingleSlash&&(r=r.replace(/\/$/,"")),f&&!e.normalizeProtocol&&(r=r.replace(/^http:\/\//,"//")),e.stripProtocol&&(r=r.replace(/^(?:https?:)?\/\//,"")),r};l.exports=u}),Yo=N((t,l)=>{B(),l.exports=n;function n(s,i){if(s&&i)return n(s)(i);if(typeof s!="function")throw new TypeError("need wrapper function");return Object.keys(s).forEach(function(u){p[u]=s[u]}),p;function p(){for(var u=new Array(arguments.length),r=0;r<u.length;r++)u[r]=arguments[r];var e=s.apply(this,u),f=u[u.length-1];return typeof e=="function"&&e!==f&&Object.keys(f).forEach(function(a){e[a]=f[a]}),e}}}),Mn=N((t,l)=>{B();var n=Yo();l.exports=n(s),l.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(p){var u=function(){return u.called?u.value:(u.called=!0,u.value=p.apply(this,arguments))};return u.called=!1,u}function i(p){var u=function(){if(u.called)throw new Error(u.onceError);return u.called=!0,u.value=p.apply(this,arguments)},r=p.name||"Function wrapped with `once`";return u.onceError=r+" shouldn't be called more than once",u.called=!1,u}}),Ko=N((t,l)=>{B();var n=Mn(),s=function(){},i=function(r){return r.setHeader&&typeof r.abort=="function"},p=function(r){return r.stdio&&Array.isArray(r.stdio)&&r.stdio.length===3},u=function(r,e,f){if(typeof e=="function")return u(r,null,e);e||(e={}),f=n(f||s);var a=r._writableState,c=r._readableState,o=e.readable||e.readable!==!1&&r.readable,d=e.writable||e.writable!==!1&&r.writable,h=!1,g=function(){r.writable||b()},b=function(){d=!1,o||f.call(r)},E=function(){o=!1,d||f.call(r)},y=function(_){f.call(r,_?new Error("exited with error code: "+_):null)},D=function(_){f.call(r,_)},w=function(){process.nextTick(v)},v=function(){if(!h){if(o&&!(c&&c.ended&&!c.destroyed))return f.call(r,new Error("premature close"));if(d&&!(a&&a.ended&&!a.destroyed))return f.call(r,new Error("premature close"))}},m=function(){r.req.on("finish",b)};return i(r)?(r.on("complete",b),r.on("abort",w),r.req?m():r.on("request",m)):d&&!a&&(r.on("end",g),r.on("close",g)),p(r)&&r.on("exit",y),r.on("end",E),r.on("finish",b),e.error!==!1&&r.on("error",D),r.on("close",w),function(){h=!0,r.removeListener("complete",b),r.removeListener("abort",w),r.removeListener("request",m),r.req&&r.req.removeListener("finish",b),r.removeListener("end",g),r.removeListener("close",g),r.removeListener("finish",b),r.removeListener("exit",y),r.removeListener("end",E),r.removeListener("error",D),r.removeListener("close",w)}};l.exports=u}),Jo=N((t,l)=>{B();var n=Mn(),s=Ko(),i=Z("fs"),p=function(){},u=/^v?\.0/.test(process.version),r=function(h){return typeof h=="function"},e=function(h){return!u||!i?!1:(h instanceof(i.ReadStream||p)||h instanceof(i.WriteStream||p))&&r(h.close)},f=function(h){return h.setHeader&&r(h.abort)},a=function(h,g,b,E){E=n(E);var y=!1;h.on("close",function(){y=!0}),s(h,{readable:g,writable:b},function(w){if(w)return E(w);y=!0,E()});var D=!1;return function(w){if(!y&&!D){if(D=!0,e(h))return h.close(p);if(f(h))return h.abort();if(r(h.destroy))return h.destroy();E(w||new Error("stream was destroyed"))}}},c=function(h){h()},o=function(h,g){return h.pipe(g)},d=function(){var h=Array.prototype.slice.call(arguments),g=r(h[h.length-1]||p)&&h.pop()||p;if(Array.isArray(h[0])&&(h=h[0]),h.length<2)throw new Error("pump requires two streams per minimum");var b,E=h.map(function(y,D){var w=D<h.length-1,v=D>0;return a(y,w,v,function(m){b||(b=m),m&&E.forEach(c),!w&&(E.forEach(c),g(b))})});return h.reduce(o)};l.exports=d}),Zo=N((t,l)=>{"use strict";B();var{PassThrough:n}=Z("stream");l.exports=s=>{s={...s};let{array:i}=s,{encoding:p}=s,u=p==="buffer",r=!1;i?r=!(p||u):p=p||"utf8",u&&(p=null);let e=new n({objectMode:r});p&&e.setEncoding(p);let f=0,a=[];return e.on("data",c=>{a.push(c),r?f=a.length:f+=c.length}),e.getBufferedValue=()=>i?a:u?Buffer.concat(a,f):a.join(""),e.getBufferedLength=()=>f,e}}),Xo=N((t,l)=>{"use strict";B();var{constants:n}=Z("buffer"),s=Jo(),i=Zo(),p=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function u(r,e){if(!r)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:f}=e,a;return await new Promise((c,o)=>{let d=h=>{h&&a.getBufferedLength()<=n.MAX_LENGTH&&(h.bufferedData=a.getBufferedValue()),o(h)};a=s(r,i(e),h=>{if(h){d(h);return}c()}),a.on("data",()=>{a.getBufferedLength()>f&&d(new p)})}),a.getBufferedValue()}l.exports=u,l.exports.default=u,l.exports.buffer=(r,e)=>u(r,{...e,encoding:"buffer"}),l.exports.array=(r,e)=>u(r,{...e,array:!0}),l.exports.MaxBufferError=p}),Qo=N((t,l)=>{"use strict";B();var n=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),s=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),i=new Set([500,502,503,504]),p={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},u={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function r(c){let o=parseInt(c,10);return isFinite(o)?o:0}function e(c){return c?i.has(c.status):!0}function f(c){let o={};if(!c)return o;let d=c.trim().split(/,/);for(let h of d){let[g,b]=h.split(/=/,2);o[g.trim()]=b===void 0?!0:b.trim().replace(/^"|"$/g,"")}return o}function a(c){let o=[];for(let d in c){let h=c[d];o.push(h===!0?d:d+"="+h)}if(o.length)return o.join(", ")}l.exports=class{constructor(c,o,{shared:d,cacheHeuristic:h,immutableMinTimeToLive:g,ignoreCargoCult:b,_fromObject:E}={}){if(E){this._fromObject(E);return}if(!o||!o.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(c),this._responseTime=this.now(),this._isShared=d!==!1,this._cacheHeuristic=h!==void 0?h:.1,this._immutableMinTtl=g!==void 0?g:24*3600*1e3,this._status="status"in o?o.status:200,this._resHeaders=o.headers,this._rescc=f(o.headers["cache-control"]),this._method="method"in c?c.method:"GET",this._url=c.url,this._host=c.headers.host,this._noAuthorization=!c.headers.authorization,this._reqHeaders=o.headers.vary?c.headers:null,this._reqcc=f(c.headers["cache-control"]),b&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":a(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),o.headers["cache-control"]==null&&/no-cache/.test(o.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&s.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||n.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(c){if(!c||!c.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(c){this._assertRequestHasHeaders(c);let o=f(c.headers["cache-control"]);return o["no-cache"]||/no-cache/.test(c.headers.pragma)||o["max-age"]&&this.age()>o["max-age"]||o["min-fresh"]&&this.timeToLive()<1e3*o["min-fresh"]||this.stale()&&!(o["max-stale"]&&!this._rescc["must-revalidate"]&&(o["max-stale"]===!0||o["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(c,!1)}_requestMatches(c,o){return(!this._url||this._url===c.url)&&this._host===c.headers.host&&(!c.method||this._method===c.method||o&&c.method==="HEAD")&&this._varyMatches(c)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(c){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let o=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let d of o)if(c.headers[d]!==this._reqHeaders[d])return!1;return!0}_copyWithoutHopByHopHeaders(c){let o={};for(let d in c)p[d]||(o[d]=c[d]);if(c.connection){let d=c.connection.trim().split(/\s*,\s*/);for(let h of d)delete o[h]}if(o.warning){let d=o.warning.split(/,/).filter(h=>!/^\s*1[0-9][0-9]/.test(h));d.length?o.warning=d.join(",").trim():delete o.warning}return o}responseHeaders(){let c=this._copyWithoutHopByHopHeaders(this._resHeaders),o=this.age();return o>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(c.warning=(c.warning?`${c.warning}, `:"")+'113 - "rfc7234 5.5.4"'),c.age=`${Math.round(o)}`,c.date=new Date(this.now()).toUTCString(),c}date(){let c=Date.parse(this._resHeaders.date);return isFinite(c)?c:this._responseTime}age(){let c=this._ageValue(),o=(this.now()-this._responseTime)/1e3;return c+o}_ageValue(){return r(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return r(this._rescc["s-maxage"])}if(this._rescc["max-age"])return r(this._rescc["max-age"]);let c=this._rescc.immutable?this._immutableMinTtl:0,o=this.date();if(this._resHeaders.expires){let d=Date.parse(this._resHeaders.expires);return Number.isNaN(d)||d<o?0:Math.max(c,(d-o)/1e3)}if(this._resHeaders["last-modified"]){let d=Date.parse(this._resHeaders["last-modified"]);if(isFinite(d)&&o>d)return Math.max(c,(o-d)/1e3*this._cacheHeuristic)}return c}timeToLive(){let c=this.maxAge()-this.age(),o=c+r(this._rescc["stale-if-error"]),d=c+r(this._rescc["stale-while-revalidate"]);return Math.max(0,c,o,d)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+r(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+r(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(c){return new this(void 0,void 0,{_fromObject:c})}_fromObject(c){if(this._responseTime)throw Error("Reinitialized");if(!c||c.v!==1)throw Error("Invalid serialization");this._responseTime=c.t,this._isShared=c.sh,this._cacheHeuristic=c.ch,this._immutableMinTtl=c.imm!==void 0?c.imm:24*3600*1e3,this._status=c.st,this._resHeaders=c.resh,this._rescc=c.rescc,this._method=c.m,this._url=c.u,this._host=c.h,this._noAuthorization=c.a,this._reqHeaders=c.reqh,this._reqcc=c.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(c){this._assertRequestHasHeaders(c);let o=this._copyWithoutHopByHopHeaders(c.headers);if(delete o["if-range"],!this._requestMatches(c,!0)||!this.storable())return delete o["if-none-match"],delete o["if-modified-since"],o;if(this._resHeaders.etag&&(o["if-none-match"]=o["if-none-match"]?`${o["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),o["accept-ranges"]||o["if-match"]||o["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete o["if-modified-since"],o["if-none-match"]){let d=o["if-none-match"].split(/,/).filter(h=>!/^\s*W\//.test(h));d.length?o["if-none-match"]=d.join(",").trim():delete o["if-none-match"]}}else this._resHeaders["last-modified"]&&!o["if-modified-since"]&&(o["if-modified-since"]=this._resHeaders["last-modified"]);return o}revalidatedPolicy(c,o){if(this._assertRequestHasHeaders(c),this._useStaleIfError()&&e(o))return{modified:!1,matches:!1,policy:this};if(!o||!o.headers)throw Error("Response headers missing");let d=!1;if(o.status!==void 0&&o.status!=304?d=!1:o.headers.etag&&!/^\s*W\//.test(o.headers.etag)?d=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===o.headers.etag:this._resHeaders.etag&&o.headers.etag?d=this._resHeaders.etag.replace(/^\s*W\//,"")===o.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?d=this._resHeaders["last-modified"]===o.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!o.headers.etag&&!o.headers["last-modified"]&&(d=!0),!d)return{policy:new this.constructor(c,o),modified:o.status!=304,matches:!1};let h={};for(let b in this._resHeaders)h[b]=b in o.headers&&!u[b]?o.headers[b]:this._resHeaders[b];let g=Object.assign({},o,{status:this._status,method:this._method,headers:h});return{policy:new this.constructor(c,g,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}}),vr=N((t,l)=>{"use strict";B(),l.exports=n=>{let s={};for(let[i,p]of Object.entries(n))s[i.toLowerCase()]=p;return s}}),tu=N((t,l)=>{"use strict";B();var n=Z("stream").Readable,s=vr(),i=class extends n{constructor(p,u,r,e){if(typeof p!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof u!="object")throw new TypeError("Argument `headers` should be an object");if(!(r instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof e!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=p,this.headers=s(u),this.body=r,this.url=e}_read(){this.push(this.body),this.push(null)}};l.exports=i}),eu=N((t,l)=>{"use strict";B();var n=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];l.exports=(s,i)=>{let p=new Set(Object.keys(s).concat(n));for(let u of p)u in i||(i[u]=typeof s[u]=="function"?s[u].bind(s):s[u])}}),ru=N((t,l)=>{"use strict";B();var n=Z("stream").PassThrough,s=eu(),i=p=>{if(!(p&&p.pipe))throw new TypeError("Parameter `response` must be a response stream.");let u=new n;return s(p,u),p.pipe(u)};l.exports=i}),nu=N(t=>{B(),t.stringify=function l(n){if(typeof n>"u")return n;if(n&&Buffer.isBuffer(n))return JSON.stringify(":base64:"+n.toString("base64"));if(n&&n.toJSON&&(n=n.toJSON()),n&&typeof n=="object"){var s="",i=Array.isArray(n);s=i?"[":"{";var p=!0;for(var u in n){var r=typeof n[u]=="function"||!i&&typeof n[u]>"u";Object.hasOwnProperty.call(n,u)&&!r&&(p||(s+=","),p=!1,i?n[u]==null?s+="null":s+=l(n[u]):n[u]!==void 0&&(s+=l(u)+":"+l(n[u])))}return s+=i?"]":"}",s}else return typeof n=="string"?JSON.stringify(/^:/.test(n)?":"+n:n):typeof n>"u"?"null":JSON.stringify(n)},t.parse=function(l){return JSON.parse(l,function(n,s){return typeof s=="string"?/^:base64:/.test(s)?Buffer.from(s.substring(8),"base64"):/^:/.test(s)?s.substring(1):s:s})}}),iu=N((t,l)=>{"use strict";B();var n=Z("events"),s=nu(),i=r=>{let e={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(r.adapter||r.uri){let f=r.adapter||/^[^:+]*/.exec(r.uri)[0];return new(Z(e[f]))(r)}return new Map},p=["sqlite","postgres","mysql","mongo","redis","tiered"],u=class extends n{constructor(r,{emitErrors:e=!0,...f}={}){if(super(),this.opts={namespace:"keyv",serialize:s.stringify,deserialize:s.parse,...typeof r=="string"?{uri:r}:r,...f},!this.opts.store){let c={...this.opts};this.opts.store=i(c)}if(this.opts.compression){let c=this.opts.compression;this.opts.serialize=c.serialize.bind(c),this.opts.deserialize=c.deserialize.bind(c)}typeof this.opts.store.on=="function"&&e&&this.opts.store.on("error",c=>this.emit("error",c)),this.opts.store.namespace=this.opts.namespace;let a=c=>async function*(){for await(let[o,d]of typeof c=="function"?c(this.opts.store.namespace):c){let h=this.opts.deserialize(d);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof h.expires=="number"&&Date.now()>h.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),h.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=a(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=a(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return p.includes(this.opts.store.opts.dialect)||p.findIndex(r=>this.opts.store.opts.url.includes(r))>=0}_getKeyPrefix(r){return`${this.opts.namespace}:${r}`}_getKeyPrefixArray(r){return r.map(e=>`${this.opts.namespace}:${e}`)}_getKeyUnprefix(r){return r.split(":").splice(1).join(":")}get(r,e){let{store:f}=this.opts,a=Array.isArray(r),c=a?this._getKeyPrefixArray(r):this._getKeyPrefix(r);if(a&&f.getMany===void 0){let o=[];for(let d of c)o.push(Promise.resolve().then(()=>f.get(d)).then(h=>typeof h=="string"?this.opts.deserialize(h):this.opts.compression?this.opts.deserialize(h):h).then(h=>{if(h!=null)return typeof h.expires=="number"&&Date.now()>h.expires?this.delete(d).then(()=>{}):e&&e.raw?h:h.value}));return Promise.allSettled(o).then(d=>{let h=[];for(let g of d)h.push(g.value);return h})}return Promise.resolve().then(()=>a?f.getMany(c):f.get(c)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null){if(a){let d=[];for(let h of o){if(typeof h=="string"&&(h=this.opts.deserialize(h)),h==null){d.push(void 0);continue}typeof h.expires=="number"&&Date.now()>h.expires?(this.delete(r).then(()=>{}),d.push(void 0)):d.push(e&&e.raw?h:h.value)}return d}return typeof o.expires=="number"&&Date.now()>o.expires?this.delete(r).then(()=>{}):e&&e.raw?o:o.value}})}set(r,e,f){let a=this._getKeyPrefix(r);typeof f>"u"&&(f=this.opts.ttl),f===0&&(f=void 0);let{store:c}=this.opts;return Promise.resolve().then(()=>{let o=typeof f=="number"?Date.now()+f:null;return typeof e=="symbol"&&this.emit("error","symbol cannot be serialized"),e={value:e,expires:o},this.opts.serialize(e)}).then(o=>c.set(a,o,f)).then(()=>!0)}delete(r){let{store:e}=this.opts;if(Array.isArray(r)){let a=this._getKeyPrefixArray(r);if(e.deleteMany===void 0){let c=[];for(let o of a)c.push(e.delete(o));return Promise.allSettled(c).then(o=>o.every(d=>d.value===!0))}return Promise.resolve().then(()=>e.deleteMany(a))}let f=this._getKeyPrefix(r);return Promise.resolve().then(()=>e.delete(f))}clear(){let{store:r}=this.opts;return Promise.resolve().then(()=>r.clear())}has(r){let e=this._getKeyPrefix(r),{store:f}=this.opts;return Promise.resolve().then(async()=>typeof f.has=="function"?f.has(e):await f.get(e)!==void 0)}disconnect(){let{store:r}=this.opts;if(typeof r.disconnect=="function")return r.disconnect()}};l.exports=u}),su=N((t,l)=>{"use strict";B();var n=Z("events"),s=Z("url"),i=Vo(),p=Xo(),u=Qo(),r=tu(),e=vr(),f=ru(),a=iu(),c=class{constructor(h,g){if(typeof h!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new a({uri:typeof g=="string"&&g,store:typeof g!="string"&&g,namespace:"cacheable-request"}),this.createCacheableRequest(h)}createCacheableRequest(h){return(g,b)=>{let E;if(typeof g=="string")E=d(s.parse(g)),g={};else if(g instanceof s.URL)E=d(s.parse(g.toString())),g={};else{let[S,...A]=(g.path||"").split("?"),F=A.length>0?`?${A.join("?")}`:"";E=d({...g,pathname:S,search:F})}g={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...g,...o(E)},g.headers=e(g.headers);let y=new n,D=i(s.format(E),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),w=`${g.method}:${D}`,v=!1,m=!1,_=S=>{m=!0;let A=!1,F,P=new Promise(O=>{F=()=>{A||(A=!0,O())}}),T=O=>{if(v&&!S.forceRefresh){O.status=O.statusCode;let k=u.fromObject(v.cachePolicy).revalidatedPolicy(S,O);if(!k.modified){let U=k.policy.responseHeaders();O=new r(v.statusCode,U,v.body,v.url),O.cachePolicy=k.policy,O.fromCache=!0}}O.fromCache||(O.cachePolicy=new u(S,O,S),O.fromCache=!1);let x;S.cache&&O.cachePolicy.storable()?(x=f(O),(async()=>{try{let k=p.buffer(O);if(await Promise.race([P,new Promise(V=>O.once("end",V))]),A)return;let U=await k,L={cachePolicy:O.cachePolicy.toObject(),url:O.url,statusCode:O.fromCache?v.statusCode:O.statusCode,body:U},q=S.strictTtl?O.cachePolicy.timeToLive():void 0;S.maxTtl&&(q=q?Math.min(q,S.maxTtl):S.maxTtl),await this.cache.set(w,L,q)}catch(k){y.emit("error",new c.CacheError(k))}})()):S.cache&&v&&(async()=>{try{await this.cache.delete(w)}catch(k){y.emit("error",new c.CacheError(k))}})(),y.emit("response",x||O),typeof b=="function"&&b(x||O)};try{let O=h(S,T);O.once("error",F),O.once("abort",F),y.emit("request",O)}catch(O){y.emit("error",new c.RequestError(O))}};return(async()=>{let S=async F=>{await Promise.resolve();let P=F.cache?await this.cache.get(w):void 0;if(typeof P>"u")return _(F);let T=u.fromObject(P.cachePolicy);if(T.satisfiesWithoutRevalidation(F)&&!F.forceRefresh){let O=T.responseHeaders(),x=new r(P.statusCode,O,P.body,P.url);x.cachePolicy=T,x.fromCache=!0,y.emit("response",x),typeof b=="function"&&b(x)}else v=P,F.headers=T.revalidationHeaders(F),_(F)},A=F=>y.emit("error",new c.CacheError(F));this.cache.once("error",A),y.on("response",()=>this.cache.removeListener("error",A));try{await S(g)}catch(F){g.automaticFailover&&!m&&_(g),y.emit("error",new c.CacheError(F))}})(),y}}};function o(h){let g={...h};return g.path=`${h.pathname||"/"}${h.search||""}`,delete g.pathname,delete g.search,g}function d(h){return{protocol:h.protocol,auth:h.auth,hostname:h.hostname||h.host||"localhost",port:h.port,pathname:h.pathname,search:h.search}}c.RequestError=class extends Error{constructor(h){super(h.message),this.name="RequestError",Object.assign(this,h)}},c.CacheError=class extends Error{constructor(h){super(h.message),this.name="CacheError",Object.assign(this,h)}},l.exports=c}),ou=N((t,l)=>{"use strict";B();var n=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];l.exports=(s,i)=>{if(i._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let p=new Set(Object.keys(s).concat(n)),u={};for(let r of p)r in i||(u[r]={get(){let e=s[r];return typeof e=="function"?e.bind(s):e},set(e){s[r]=e},enumerable:!0,configurable:!1});return Object.defineProperties(i,u),s.once("aborted",()=>{i.destroy(),i.emit("aborted")}),s.once("close",()=>{s.complete&&i.readable?i.once("end",()=>{i.emit("close")}):i.emit("close")}),i}}),uu=N((t,l)=>{"use strict";B();var{Transform:n,PassThrough:s}=Z("stream"),i=Z("zlib"),p=ou();l.exports=u=>{let r=(u.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(r))return u;let e=r==="br";if(e&&typeof i.createBrotliDecompress!="function")return u.destroy(new Error("Brotli is not supported on Node.js < 12")),u;let f=!0,a=new n({transform(d,h,g){f=!1,g(null,d)},flush(d){d()}}),c=new s({autoDestroy:!1,destroy(d,h){u.destroy(),h(d)}}),o=e?i.createBrotliDecompress():i.createUnzip();return o.once("error",d=>{if(f&&!u.readable){c.end();return}c.destroy(d)}),p(u,c),u.pipe(a).pipe(o).pipe(c),c}}),jn=N((t,l)=>{"use strict";B();var n=class{constructor(s={}){if(!(s.maxSize&&s.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=s.maxSize,this.onEviction=s.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(s,i){if(this.cache.set(s,i),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[p,u]of this.oldCache.entries())this.onEviction(p,u);this.oldCache=this.cache,this.cache=new Map}}get(s){if(this.cache.has(s))return this.cache.get(s);if(this.oldCache.has(s)){let i=this.oldCache.get(s);return this.oldCache.delete(s),this._set(s,i),i}}set(s,i){return this.cache.has(s)?this.cache.set(s,i):this._set(s,i),this}has(s){return this.cache.has(s)||this.oldCache.has(s)}peek(s){if(this.cache.has(s))return this.cache.get(s);if(this.oldCache.has(s))return this.oldCache.get(s)}delete(s){let i=this.cache.delete(s);return i&&this._size--,this.oldCache.delete(s)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[s]of this)yield s}*values(){for(let[,s]of this)yield s}*[Symbol.iterator](){for(let s of this.cache)yield s;for(let s of this.oldCache){let[i]=s;this.cache.has(i)||(yield s)}}get size(){let s=0;for(let i of this.oldCache.keys())this.cache.has(i)||s++;return Math.min(this._size+s,this.maxSize)}};l.exports=n}),$n=N((t,l)=>{"use strict";B();var n=Z("events"),s=Z("tls"),i=Z("http2"),p=jn(),u=Symbol("currentStreamsCount"),r=Symbol("request"),e=Symbol("cachedOriginSet"),f=Symbol("gracefullyClosing"),a=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],c=(y,D,w)=>{let v=0,m=y.length;for(;v<m;){let _=v+m>>>1;w(y[_],D)?v=_+1:m=_}return v},o=(y,D)=>y.remoteSettings.maxConcurrentStreams>D.remoteSettings.maxConcurrentStreams,d=(y,D)=>{for(let w of y)w[e].length<D[e].length&&w[e].every(v=>D[e].includes(v))&&w[u]+D[u]<=D.remoteSettings.maxConcurrentStreams&&b(w)},h=(y,D)=>{for(let w of y)D[e].length<w[e].length&&D[e].every(v=>w[e].includes(v))&&D[u]+w[u]<=w.remoteSettings.maxConcurrentStreams&&b(D)},g=({agent:y,isFree:D})=>{let w={};for(let v in y.sessions){let m=y.sessions[v].filter(_=>{let S=_[E.kCurrentStreamsCount]<_.remoteSettings.maxConcurrentStreams;return D?S:!S});m.length!==0&&(w[v]=m)}return w},b=y=>{y[f]=!0,y[u]===0&&y.close()},E=class extends n{constructor({timeout:y=6e4,maxSessions:D=1/0,maxFreeSessions:w=10,maxCachedTlsSessions:v=100}={}){super(),this.sessions={},this.queue={},this.timeout=y,this.maxSessions=D,this.maxFreeSessions=w,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new p({maxSize:v})}static normalizeOrigin(y,D){return typeof y=="string"&&(y=new URL(y)),D&&y.hostname!==D&&(y.hostname=D),y.origin}normalizeOptions(y){let D="";if(y)for(let w of a)y[w]&&(D+=`:${y[w]}`);return D}_tryToCreateNewSession(y,D){if(!(y in this.queue)||!(D in this.queue[y]))return;let w=this.queue[y][D];this._sessionsCount<this.maxSessions&&!w.completed&&(w.completed=!0,w())}getSession(y,D,w){return new Promise((v,m)=>{Array.isArray(w)?(w=[...w],v()):w=[{resolve:v,reject:m}];let _=this.normalizeOptions(D),S=E.normalizeOrigin(y,D&&D.servername);if(S===void 0){for(let{reject:P}of w)P(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(_ in this.sessions){let P=this.sessions[_],T=-1,O=-1,x;for(let k of P){let U=k.remoteSettings.maxConcurrentStreams;if(U<T)break;if(k[e].includes(S)){let L=k[u];if(L>=U||k[f]||k.destroyed)continue;x||(T=U),L>O&&(x=k,O=L)}}if(x){if(w.length!==1){for(let{reject:k}of w){let U=new Error(`Expected the length of listeners to be 1, got ${w.length}.
|
18
|
-
Please report this to https://github.com/szmarczak/http2-wrapper/`);k(U)}return}w[0].resolve(x);return}}if(_ in this.queue){if(S in this.queue[_]){this.queue[_][S].listeners.push(...w),this._tryToCreateNewSession(_,S);return}}else this.queue[_]={};let A=()=>{_ in this.queue&&this.queue[_][S]===F&&(delete this.queue[_][S],Object.keys(this.queue[_]).length===0&&delete this.queue[_])},F=()=>{let P=`${S}:${_}`,T=!1;try{let O=i.connect(y,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(P),...D});O[u]=0,O[f]=!1;let x=()=>O[u]<O.remoteSettings.maxConcurrentStreams,k=!0;O.socket.once("session",L=>{this.tlsSessionCache.set(P,L)}),O.once("error",L=>{for(let{reject:q}of w)q(L);this.tlsSessionCache.delete(P)}),O.setTimeout(this.timeout,()=>{O.destroy()}),O.once("close",()=>{if(T){k&&this._freeSessionsCount--,this._sessionsCount--;let L=this.sessions[_];L.splice(L.indexOf(O),1),L.length===0&&delete this.sessions[_]}else{let L=new Error("Session closed without receiving a SETTINGS frame");L.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:q}of w)q(L);A()}this._tryToCreateNewSession(_,S)});let U=()=>{if(!(!(_ in this.queue)||!x())){for(let L of O[e])if(L in this.queue[_]){let{listeners:q}=this.queue[_][L];for(;q.length!==0&&x();)q.shift().resolve(O);let V=this.queue[_];if(V[L].listeners.length===0&&(delete V[L],Object.keys(V).length===0)){delete this.queue[_];break}if(!x())break}}};O.on("origin",()=>{O[e]=O.originSet,x()&&(U(),d(this.sessions[_],O))}),O.once("remoteSettings",()=>{if(O.ref(),O.unref(),this._sessionsCount++,F.destroyed){let L=new Error("Agent has been destroyed");for(let q of w)q.reject(L);O.destroy();return}O[e]=O.originSet;{let L=this.sessions;if(_ in L){let q=L[_];q.splice(c(q,O,o),0,O)}else L[_]=[O]}this._freeSessionsCount+=1,T=!0,this.emit("session",O),U(),A(),O[u]===0&&this._freeSessionsCount>this.maxFreeSessions&&O.close(),w.length!==0&&(this.getSession(S,D,w),w.length=0),O.on("remoteSettings",()=>{U(),d(this.sessions[_],O)})}),O[r]=O.request,O.request=(L,q)=>{if(O[f])throw new Error("The session is gracefully closing. No new streams are allowed.");let V=O[r](L,q);return O.ref(),++O[u],O[u]===O.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,V.once("close",()=>{if(k=x(),--O[u],!O.destroyed&&!O.closed&&(h(this.sessions[_],O),x()&&!O.closed)){k||(this._freeSessionsCount++,k=!0);let et=O[u]===0;et&&O.unref(),et&&(this._freeSessionsCount>this.maxFreeSessions||O[f])?O.close():(d(this.sessions[_],O),U())}}),V}}catch(O){for(let x of w)x.reject(O);A()}};F.listeners=w,F.completed=!1,F.destroyed=!1,this.queue[_][S]=F,this._tryToCreateNewSession(_,S)})}request(y,D,w,v){return new Promise((m,_)=>{this.getSession(y,D,[{reject:_,resolve:S=>{try{m(S.request(w,v))}catch(A){_(A)}}}])})}createConnection(y,D){return E.connect(y,D)}static connect(y,D){D.ALPNProtocols=["h2"];let w=y.port||443,v=y.hostname||y.host;return typeof D.servername>"u"&&(D.servername=v),s.connect(w,v,D)}closeFreeSessions(){for(let y of Object.values(this.sessions))for(let D of y)D[u]===0&&D.close()}destroy(y){for(let D of Object.values(this.sessions))for(let w of D)w.destroy(y);for(let D of Object.values(this.queue))for(let w of Object.values(D))w.destroyed=!0;this.queue={}}get freeSessions(){return g({agent:this,isFree:!0})}get busySessions(){return g({agent:this,isFree:!1})}};E.kCurrentStreamsCount=u,E.kGracefullyClosing=f,l.exports={Agent:E,globalAgent:new E}}),Hn=N((t,l)=>{"use strict";B();var{Readable:n}=Z("stream"),s=class extends n{constructor(i,p){super({highWaterMark:p,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=i,this.connection=i,this._dumped=!1}_destroy(i){this.req._request.destroy(i)}setTimeout(i,p){return this.req.setTimeout(i,p),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};l.exports=s}),Un=N((t,l)=>{"use strict";B(),l.exports=n=>{let s={protocol:n.protocol,hostname:typeof n.hostname=="string"&&n.hostname.startsWith("[")?n.hostname.slice(1,-1):n.hostname,host:n.host,hash:n.hash,search:n.search,pathname:n.pathname,href:n.href,path:`${n.pathname||""}${n.search||""}`};return typeof n.port=="string"&&n.port.length!==0&&(s.port=Number(n.port)),(n.username||n.password)&&(s.auth=`${n.username||""}:${n.password||""}`),s}}),au=N((t,l)=>{"use strict";B(),l.exports=(n,s,i)=>{for(let p of i)n.on(p,(...u)=>s.emit(p,...u))}}),lu=N((t,l)=>{"use strict";B(),l.exports=n=>{switch(n){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}}),cu=N((t,l)=>{"use strict";B();var n=(s,i,p)=>{l.exports[i]=class extends s{constructor(...u){super(typeof p=="string"?p:p(u)),this.name=`${super.name} [${i}]`,this.code=i}}};n(TypeError,"ERR_INVALID_ARG_TYPE",s=>{let i=s[0].includes(".")?"property":"argument",p=s[1],u=Array.isArray(p);return u&&(p=`${p.slice(0,-1).join(", ")} or ${p.slice(-1)}`),`The "${s[0]}" ${i} must be ${u?"one of":"of"} type ${p}. Received ${typeof s[2]}`}),n(TypeError,"ERR_INVALID_PROTOCOL",s=>`Protocol "${s[0]}" not supported. Expected "${s[1]}"`),n(Error,"ERR_HTTP_HEADERS_SENT",s=>`Cannot ${s[0]} headers after they are sent to the client`),n(TypeError,"ERR_INVALID_HTTP_TOKEN",s=>`${s[0]} must be a valid HTTP token [${s[1]}]`),n(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",s=>`Invalid value "${s[0]} for header "${s[1]}"`),n(TypeError,"ERR_INVALID_CHAR",s=>`Invalid character in ${s[0]} [${s[1]}]`)}),Gn=N((t,l)=>{"use strict";B();var n=Z("http2"),{Writable:s}=Z("stream"),{Agent:i,globalAgent:p}=$n(),u=Hn(),r=Un(),e=au(),f=lu(),{ERR_INVALID_ARG_TYPE:a,ERR_INVALID_PROTOCOL:c,ERR_HTTP_HEADERS_SENT:o,ERR_INVALID_HTTP_TOKEN:d,ERR_HTTP_INVALID_HEADER_VALUE:h,ERR_INVALID_CHAR:g}=cu(),{HTTP2_HEADER_STATUS:b,HTTP2_HEADER_METHOD:E,HTTP2_HEADER_PATH:y,HTTP2_METHOD_CONNECT:D}=n.constants,w=Symbol("headers"),v=Symbol("origin"),m=Symbol("session"),_=Symbol("options"),S=Symbol("flushedHeaders"),A=Symbol("jobs"),F=/^[\^`\-\w!#$%&*+.|~]+$/,P=/[^\t\u0020-\u007E\u0080-\u00FF]/,T=class extends s{constructor(O,x,k){super({autoDestroy:!1});let U=typeof O=="string"||O instanceof URL;if(U&&(O=r(O instanceof URL?O:new URL(O))),typeof x=="function"||x===void 0?(k=x,x=U?O:{...O}):x={...O,...x},x.h2session)this[m]=x.h2session;else if(x.agent===!1)this.agent=new i({maxFreeSessions:0});else if(typeof x.agent>"u"||x.agent===null)typeof x.createConnection=="function"?(this.agent=new i({maxFreeSessions:0}),this.agent.createConnection=x.createConnection):this.agent=p;else if(typeof x.agent.request=="function")this.agent=x.agent;else throw new a("options.agent",["Agent-like Object","undefined","false"],x.agent);if(x.protocol&&x.protocol!=="https:")throw new c(x.protocol,"https:");let L=x.port||x.defaultPort||this.agent&&this.agent.defaultPort||443,q=x.hostname||x.host||"localhost";delete x.hostname,delete x.host,delete x.port;let{timeout:V}=x;if(x.timeout=void 0,this[w]=Object.create(null),this[A]=[],this.socket=null,this.connection=null,this.method=x.method||"GET",this.path=x.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,x.headers)for(let[et,I]of Object.entries(x.headers))this.setHeader(et,I);x.auth&&!("authorization"in this[w])&&(this[w].authorization="Basic "+Buffer.from(x.auth).toString("base64")),x.session=x.tlsSession,x.path=x.socketPath,this[_]=x,L===443?(this[v]=`https://${q}`,":authority"in this[w]||(this[w][":authority"]=q)):(this[v]=`https://${q}:${L}`,":authority"in this[w]||(this[w][":authority"]=`${q}:${L}`)),V&&this.setTimeout(V),k&&this.once("response",k),this[S]=!1}get method(){return this[w][E]}set method(O){O&&(this[w][E]=O.toUpperCase())}get path(){return this[w][y]}set path(O){O&&(this[w][y]=O)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(O,x,k){if(this._mustNotHaveABody){k(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let U=()=>this._request.write(O,x,k);this._request?U():this[A].push(U)}_final(O){if(this.destroyed)return;this.flushHeaders();let x=()=>{if(this._mustNotHaveABody){O();return}this._request.end(O)};this._request?x():this[A].push(x)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(O,x){this.res&&this.res._dump(),this._request&&this._request.destroy(),x(O)}async flushHeaders(){if(this[S]||this.destroyed)return;this[S]=!0;let O=this.method===D,x=k=>{if(this._request=k,this.destroyed){k.destroy();return}O||e(k,this,["timeout","continue","close","error"]);let U=q=>(...V)=>{!this.writable&&!this.destroyed?q(...V):this.once("finish",()=>{q(...V)})};k.once("response",U((q,V,et)=>{let I=new u(this.socket,k.readableHighWaterMark);this.res=I,I.req=this,I.statusCode=q[b],I.headers=q,I.rawHeaders=et,I.once("end",()=>{this.aborted?(I.aborted=!0,I.emit("aborted")):(I.complete=!0,I.socket=null,I.connection=null)}),O?(I.upgrade=!0,this.emit("connect",I,k,Buffer.alloc(0))?this.emit("close"):k.destroy()):(k.on("data",M=>{!I._dumped&&!I.push(M)&&k.pause()}),k.once("end",()=>{I.push(null)}),this.emit("response",I)||I._dump())})),k.once("headers",U(q=>this.emit("information",{statusCode:q[b]}))),k.once("trailers",U((q,V,et)=>{let{res:I}=this;I.trailers=q,I.rawTrailers=et}));let{socket:L}=k.session;this.socket=L,this.connection=L;for(let q of this[A])q();this.emit("socket",this.socket)};if(this[m])try{x(this[m].request(this[w]))}catch(k){this.emit("error",k)}else{this.reusedSocket=!0;try{x(await this.agent.request(this[v],this[_],this[w]))}catch(k){this.emit("error",k)}}}getHeader(O){if(typeof O!="string")throw new a("name","string",O);return this[w][O.toLowerCase()]}get headersSent(){return this[S]}removeHeader(O){if(typeof O!="string")throw new a("name","string",O);if(this.headersSent)throw new o("remove");delete this[w][O.toLowerCase()]}setHeader(O,x){if(this.headersSent)throw new o("set");if(typeof O!="string"||!F.test(O)&&!f(O))throw new d("Header name",O);if(typeof x>"u")throw new h(x,O);if(P.test(x))throw new g("header content",O);this[w][O.toLowerCase()]=x}setNoDelay(){}setSocketKeepAlive(){}setTimeout(O,x){let k=()=>this._request.setTimeout(O,x);return this._request?k():this[A].push(k),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(O){}};l.exports=T}),hu=N((t,l)=>{"use strict";B();var n=Z("tls");l.exports=(s={},i=n.connect)=>new Promise((p,u)=>{let r=!1,e,f=async()=>{await c,e.off("timeout",a),e.off("error",u),s.resolveSocket?(p({alpnProtocol:e.alpnProtocol,socket:e,timeout:r}),r&&(await Promise.resolve(),e.emit("timeout"))):(e.destroy(),p({alpnProtocol:e.alpnProtocol,timeout:r}))},a=async()=>{r=!0,f()},c=(async()=>{try{e=await i(s,f),e.on("error",u),e.once("timeout",a)}catch(o){u(o)}})()})}),fu=N((t,l)=>{"use strict";B();var n=Z("net");l.exports=s=>{let i=s.host,p=s.headers&&s.headers.host;return p&&(p.startsWith("[")?p.indexOf("]")===-1?i=p:i=p.slice(1,-1):i=p.split(":",1)[0]),n.isIP(i)?"":i}}),pu=N((t,l)=>{"use strict";B();var n=Z("http"),s=Z("https"),i=hu(),p=jn(),u=Gn(),r=fu(),e=Un(),f=new p({maxSize:100}),a=new Map,c=(d,h,g)=>{h._httpMessage={shouldKeepAlive:!0};let b=()=>{d.emit("free",h,g)};h.on("free",b);let E=()=>{d.removeSocket(h,g)};h.on("close",E);let y=()=>{d.removeSocket(h,g),h.off("close",E),h.off("free",b),h.off("agentRemove",y)};h.on("agentRemove",y),d.emit("free",h,g)},o=async d=>{let h=`${d.host}:${d.port}:${d.ALPNProtocols.sort()}`;if(!f.has(h)){if(a.has(h))return(await a.get(h)).alpnProtocol;let{path:g,agent:b}=d;d.path=d.socketPath;let E=i(d);a.set(h,E);try{let{socket:y,alpnProtocol:D}=await E;if(f.set(h,D),d.path=g,D==="h2")y.destroy();else{let{globalAgent:w}=s,v=s.Agent.prototype.createConnection;b?b.createConnection===v?c(b,y,d):y.destroy():w.createConnection===v?c(w,y,d):y.destroy()}return a.delete(h),D}catch(y){throw a.delete(h),y}}return f.get(h)};l.exports=async(d,h,g)=>{if((typeof d=="string"||d instanceof URL)&&(d=e(new URL(d))),typeof h=="function"&&(g=h,h=void 0),h={ALPNProtocols:["h2","http/1.1"],...d,...h,resolveSocket:!0},!Array.isArray(h.ALPNProtocols)||h.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");h.protocol=h.protocol||"https:";let b=h.protocol==="https:";h.host=h.hostname||h.host||"localhost",h.session=h.tlsSession,h.servername=h.servername||r(h),h.port=h.port||(b?443:80),h._defaultAgent=b?s.globalAgent:n.globalAgent;let E=h.agent;if(E){if(E.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");h.agent=E[b?"https":"http"]}return b&&await o(h)==="h2"?(E&&(h.agent=E.http2),new u(h,g)):n.request(h,g)},l.exports.protocolCache=f}),du=N((t,l)=>{"use strict";B();var n=Z("http2"),s=$n(),i=Gn(),p=Hn(),u=pu(),r=(f,a,c)=>new i(f,a,c),e=(f,a,c)=>{let o=new i(f,a,c);return o.end(),o};l.exports={...n,ClientRequest:i,IncomingMessage:p,...s,request:r,get:e,auto:u}}),qn=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=se();t.default=n=>l.default.nodeStream(n)&&l.default.function_(n.getBoundary)}),mu=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Z("fs"),n=Z("util"),s=se(),i=qn(),p=n.promisify(l.stat);t.default=async(u,r)=>{if(r&&"content-length"in r)return Number(r["content-length"]);if(!u)return 0;if(s.default.string(u))return Buffer.byteLength(u);if(s.default.buffer(u))return u.length;if(i.default(u))return n.promisify(u.getLength.bind(u))();if(u instanceof l.ReadStream){let{size:e}=await p(u.path);return e===0?void 0:e}}}),zn=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});function l(n,s,i){let p={};for(let u of i)p[u]=(...r)=>{s.emit(u,...r)},n.on(u,p[u]);return()=>{for(let u of i)n.off(u,p[u])}}t.default=l}),yu=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.default=()=>{let l=[];return{once(n,s,i){n.once(s,i),l.push({origin:n,event:s,fn:i})},unhandleAll(){for(let n of l){let{origin:s,event:i,fn:p}=n;s.removeListener(i,p)}l.length=0}}}}),gu=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.TimeoutError=void 0;var l=Z("net"),n=yu(),s=Symbol("reentry"),i=()=>{},p=class extends Error{constructor(u,r){super(`Timeout awaiting '${r}' for ${u}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};t.TimeoutError=p,t.default=(u,r,e)=>{if(s in u)return i;u[s]=!0;let f=[],{once:a,unhandleAll:c}=n.default(),o=(E,y,D)=>{var w;let v=setTimeout(y,E,E,D);(w=v.unref)===null||w===void 0||w.call(v);let m=()=>{clearTimeout(v)};return f.push(m),m},{host:d,hostname:h}=e,g=(E,y)=>{u.destroy(new p(E,y))},b=()=>{for(let E of f)E();c()};if(u.once("error",E=>{if(b(),u.listenerCount("error")===0)throw E}),u.once("close",b),a(u,"response",E=>{a(E,"end",b)}),typeof r.request<"u"&&o(r.request,g,"request"),typeof r.socket<"u"){let E=()=>{g(r.socket,"socket")};u.setTimeout(r.socket,E),f.push(()=>{u.removeListener("timeout",E)})}return a(u,"socket",E=>{var y;let{socketPath:D}=u;if(E.connecting){let w=!!(D!=null?D:l.isIP((y=h!=null?h:d)!==null&&y!==void 0?y:"")!==0);if(typeof r.lookup<"u"&&!w&&typeof E.address().address>"u"){let v=o(r.lookup,g,"lookup");a(E,"lookup",v)}if(typeof r.connect<"u"){let v=()=>o(r.connect,g,"connect");w?a(E,"connect",v()):a(E,"lookup",m=>{m===null&&a(E,"connect",v())})}typeof r.secureConnect<"u"&&e.protocol==="https:"&&a(E,"connect",()=>{let v=o(r.secureConnect,g,"secureConnect");a(E,"secureConnect",v)})}if(typeof r.send<"u"){let w=()=>o(r.send,g,"send");E.connecting?a(E,"connect",()=>{a(u,"upload-complete",w())}):a(u,"upload-complete",w())}}),typeof r.response<"u"&&a(u,"upload-complete",()=>{let E=o(r.response,g,"response");a(u,"response",E)}),b}}),bu=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=se();t.default=n=>{n=n;let s={protocol:n.protocol,hostname:l.default.string(n.hostname)&&n.hostname.startsWith("[")?n.hostname.slice(1,-1):n.hostname,host:n.host,hash:n.hash,search:n.search,pathname:n.pathname,href:n.href,path:`${n.pathname||""}${n.search||""}`};return l.default.string(n.port)&&n.port.length>0&&(s.port=Number(n.port)),(n.username||n.password)&&(s.auth=`${n.username||""}:${n.password||""}`),s}}),vu=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Z("url"),n=["protocol","host","hostname","port","pathname","search"];t.default=(s,i)=>{var p,u;if(i.path){if(i.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(i.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(i.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(i.search&&i.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!s){if(!i.protocol)throw new TypeError("No URL protocol specified");s=`${i.protocol}//${(u=(p=i.hostname)!==null&&p!==void 0?p:i.host)!==null&&u!==void 0?u:""}`}let r=new l.URL(s);if(i.path){let e=i.path.indexOf("?");e===-1?i.pathname=i.path:(i.pathname=i.path.slice(0,e),i.search=i.path.slice(e+1)),delete i.path}for(let e of n)i[e]&&(r[e]=i[e].toString());return r}}),Eu=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(n,s){typeof n=="object"?this.weakMap.set(n,s):this.map.set(n,s)}get(n){return typeof n=="object"?this.weakMap.get(n):this.map.get(n)}has(n){return typeof n=="object"?this.weakMap.has(n):this.map.has(n)}};t.default=l}),Wn=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=async n=>{let s=[],i=0;for await(let p of n)s.push(p),i+=Buffer.byteLength(p);return Buffer.isBuffer(s[0])?Buffer.concat(s,i):Buffer.from(s.join(""))};t.default=l}),_u=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.dnsLookupIpVersionToFamily=t.isDnsLookupIpVersion=void 0;var l={auto:0,ipv4:4,ipv6:6};t.isDnsLookupIpVersion=n=>n in l,t.dnsLookupIpVersionToFamily=n=>{if(t.isDnsLookupIpVersion(n))return l[n];throw new Error("Invalid DNS lookup IP version")}}),Vn=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.isResponseOk=void 0,t.isResponseOk=l=>{let{statusCode:n}=l,s=l.request.options.followRedirect?299:399;return n>=200&&n<=s||n===304}}),wu=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=new Set;t.default=n=>{l.has(n)||(l.add(n),process.emitWarning(`Got: ${n}`,{type:"DeprecationWarning"}))}}),Du=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=se(),n=(s,i)=>{if(l.default.null_(s.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");l.assert.any([l.default.string,l.default.undefined],s.encoding),l.assert.any([l.default.boolean,l.default.undefined],s.resolveBodyOnly),l.assert.any([l.default.boolean,l.default.undefined],s.methodRewriting),l.assert.any([l.default.boolean,l.default.undefined],s.isStream),l.assert.any([l.default.string,l.default.undefined],s.responseType),s.responseType===void 0&&(s.responseType="text");let{retry:p}=s;if(i?s.retry={...i.retry}:s.retry={calculateDelay:u=>u.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},l.default.object(p)?(s.retry={...s.retry,...p},s.retry.methods=[...new Set(s.retry.methods.map(u=>u.toUpperCase()))],s.retry.statusCodes=[...new Set(s.retry.statusCodes)],s.retry.errorCodes=[...new Set(s.retry.errorCodes)]):l.default.number(p)&&(s.retry.limit=p),l.default.undefined(s.retry.maxRetryAfter)&&(s.retry.maxRetryAfter=Math.min(...[s.timeout.request,s.timeout.connect].filter(l.default.number))),l.default.object(s.pagination)){i&&(s.pagination={...i.pagination,...s.pagination});let{pagination:u}=s;if(!l.default.function_(u.transform))throw new Error("`options.pagination.transform` must be implemented");if(!l.default.function_(u.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!l.default.function_(u.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!l.default.function_(u.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return s.responseType==="json"&&s.headers.accept===void 0&&(s.headers.accept="application/json"),s};t.default=n}),Su=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.retryAfterStatusCodes=void 0,t.retryAfterStatusCodes=new Set([413,429,503]);var l=({attemptCount:n,retryOptions:s,error:i,retryAfter:p})=>{if(n>s.limit)return 0;let u=s.methods.includes(i.options.method),r=s.errorCodes.includes(i.code),e=i.response&&s.statusCodes.includes(i.response.statusCode);if(!u||!r&&!e)return 0;if(i.response){if(p)return s.maxRetryAfter===void 0||p>s.maxRetryAfter?0:p;if(i.response.statusCode===413)return 0}let f=Math.random()*100;return 2**(n-1)*1e3+f};t.default=l}),Ze=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedProtocolError=t.ReadError=t.TimeoutError=t.UploadError=t.CacheError=t.HTTPError=t.MaxRedirectsError=t.RequestError=t.setNonEnumerableProperties=t.knownHookEvents=t.withoutBody=t.kIsNormalizedAlready=void 0;var l=Z("util"),n=Z("stream"),s=Z("fs"),i=Z("url"),p=Z("http"),u=Z("http"),r=Z("https"),e=zo(),f=Wo(),a=su(),c=uu(),o=du(),d=vr(),h=se(),g=mu(),b=qn(),E=zn(),y=gu(),D=bu(),w=vu(),v=Eu(),m=Wn(),_=_u(),S=Vn(),A=wu(),F=Du(),P=Su(),T,O=Symbol("request"),x=Symbol("response"),k=Symbol("responseSize"),U=Symbol("downloadedSize"),L=Symbol("bodySize"),q=Symbol("uploadedSize"),V=Symbol("serverResponsesPiped"),et=Symbol("unproxyEvents"),I=Symbol("isFromCache"),M=Symbol("cancelTimeouts"),R=Symbol("startedReading"),J=Symbol("stopReading"),G=Symbol("triggerRead"),Q=Symbol("body"),j=Symbol("jobs"),W=Symbol("originalResponse"),tt=Symbol("retryTimeout");t.kIsNormalizedAlready=Symbol("isNormalizedAlready");var ot=h.default.string(process.versions.brotli);t.withoutBody=new Set(["GET","HEAD"]),t.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function ct(K){for(let H in K){let ut=K[H];if(!h.default.string(ut)&&!h.default.number(ut)&&!h.default.boolean(ut)&&!h.default.null_(ut)&&!h.default.undefined(ut))throw new TypeError(`The \`searchParams\` value '${String(ut)}' must be a string, number, boolean or null`)}}function gt(K){return h.default.object(K)&&!("statusCode"in K)}var mt=new v.default,$=async K=>new Promise((H,ut)=>{let bt=pt=>{ut(pt)};K.pending||H(),K.once("error",bt),K.once("ready",()=>{K.off("error",bt),H()})}),Y=new Set([300,301,302,303,304,307,308]),C=["context","body","json","form"];t.setNonEnumerableProperties=(K,H)=>{let ut={};for(let bt of K)if(bt)for(let pt of C)pt in bt&&(ut[pt]={writable:!0,configurable:!0,enumerable:!1,value:bt[pt]});Object.defineProperties(H,ut)};var z=class extends Error{constructor(K,H,ut){var bt,pt;if(super(K),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(bt=H.code)!==null&&bt!==void 0?bt:"ERR_GOT_REQUEST_ERROR",ut instanceof xt?(Object.defineProperty(this,"request",{enumerable:!1,value:ut}),Object.defineProperty(this,"response",{enumerable:!1,value:ut[x]}),Object.defineProperty(this,"options",{enumerable:!1,value:ut.options})):Object.defineProperty(this,"options",{enumerable:!1,value:ut}),this.timings=(pt=this.request)===null||pt===void 0?void 0:pt.timings,h.default.string(H.stack)&&h.default.string(this.stack)){let at=this.stack.indexOf(this.message)+this.message.length,dt=this.stack.slice(at).split(`
|
19
|
-
`).reverse(),Et=
|
14
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function r(c){let o=c[0]==="u",d=c[1]==="{";return o&&!d&&c.length===5||c[0]==="x"&&c.length===3?String.fromCharCode(parseInt(c.slice(1),16)):o&&d?String.fromCodePoint(parseInt(c.slice(2,-1),16)):u.get(c)||c}function e(c,o){let d=[],h=o.trim().split(/\s*,\s*/g),y;for(let b of h){let E=Number(b);if(!Number.isNaN(E))d.push(E);else if(y=b.match(i))d.push(y[2].replace(p,(g,D,w)=>D?r(D):w));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${c}')`)}return d}function f(c){s.lastIndex=0;let o=[],d;for(;(d=s.exec(c))!==null;){let h=d[1];if(d[2]){let y=e(h,d[2]);o.push([h].concat(y))}else o.push([h])}return o}function a(c,o){let d={};for(let y of o)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let h=c;for(let[y,b]of Object.entries(d))if(Array.isArray(b)){if(!(y in h))throw new Error(`Unknown Chalk style: ${y}`);h=b.length>0?h[y](...b):h[y]}return h}l.exports=(c,o)=>{let d=[],h=[],y=[];if(o.replace(n,(b,E,g,D,w,v)=>{if(E)y.push(r(E));else if(D){let m=y.join("");y=[],h.push(d.length===0?m:a(c,d)(m)),d.push({inverse:g,styles:f(D)})}else if(w){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");h.push(a(c,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),h.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return h.join("")}}),Ro=N((t,l)=>{"use strict";B();var n=Fn(),{stdout:s,stderr:i}=kn(),{stringReplaceAll:p,stringEncaseCRLFWithFirstIndex:u}=ko(),{isArray:r}=Array,e=["ansi","ansi","ansi256","ansi16m"],f=Object.create(null),a=(m,_={})=>{if(_.level&&!(Number.isInteger(_.level)&&_.level>=0&&_.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let S=s?s.level:0;m.level=_.level===void 0?S:_.level},c=class{constructor(m){return o(m)}},o=m=>{let _={};return a(_,m),_.template=(...S)=>w(_.template,...S),Object.setPrototypeOf(_,d.prototype),Object.setPrototypeOf(_.template,_),_.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},_.template.Instance=c,_.template};function d(m){return o(m)}for(let[m,_]of Object.entries(n))f[m]={get(){let S=E(this,b(_.open,_.close,this._styler),this._isEmpty);return Object.defineProperty(this,m,{value:S}),S}};f.visible={get(){let m=E(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:m}),m}};var h=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let m of h)f[m]={get(){let{level:_}=this;return function(...S){let A=b(n.color[e[_]][m](...S),n.color.close,this._styler);return E(this,A,this._isEmpty)}}};for(let m of h){let _="bg"+m[0].toUpperCase()+m.slice(1);f[_]={get(){let{level:S}=this;return function(...A){let x=b(n.bgColor[e[S]][m](...A),n.bgColor.close,this._styler);return E(this,x,this._isEmpty)}}}}var y=Object.defineProperties(()=>{},{...f,level:{enumerable:!0,get(){return this._generator.level},set(m){this._generator.level=m}}}),b=(m,_,S)=>{let A,x;return S===void 0?(A=m,x=_):(A=S.openAll+m,x=_+S.closeAll),{open:m,close:_,openAll:A,closeAll:x,parent:S}},E=(m,_,S)=>{let A=(...x)=>r(x[0])&&r(x[0].raw)?g(A,w(A,...x)):g(A,x.length===1?""+x[0]:x.join(" "));return Object.setPrototypeOf(A,y),A._generator=m,A._styler=_,A._isEmpty=S,A},g=(m,_)=>{if(m.level<=0||!_)return m._isEmpty?"":_;let S=m._styler;if(S===void 0)return _;let{openAll:A,closeAll:x}=S;if(_.indexOf("\x1B")!==-1)for(;S!==void 0;)_=p(_,S.close,S.open),S=S.parent;let L=_.indexOf(`
|
15
|
+
`);return L!==-1&&(_=u(_,x,A,L)),A+_+x},D,w=(m,..._)=>{let[S]=_;if(!r(S)||!r(S.raw))return _.join(" ");let A=_.slice(1),x=[S.raw[0]];for(let L=1;L<S.length;L++)x.push(String(A[L-1]).replace(/[{}\\]/g,"\\$&"),String(S.raw[L]));return D===void 0&&(D=Oo()),D(m,x.join(""))};Object.defineProperties(d.prototype,f);var v=d();v.supportsColor=s,v.stderr=d({level:i?i.level:0}),v.stderr.supportsColor=i,l.exports=v}),To=N((t,l)=>{B(),function(n){var s=/^\s+/,i=/\s+$/,p=0,u=n.round,r=n.min,e=n.max,f=n.random;function a(H,V){if(H=H||"",V=V||{},H instanceof a)return H;if(!(this instanceof a))return new a(H,V);var C=c(H);this._originalInput=H,this._r=C.r,this._g=C.g,this._b=C.b,this._a=C.a,this._roundA=u(100*this._a)/100,this._format=V.format||C.format,this._gradientType=V.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=C.ok,this._tc_id=p++}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var H=this.toRgb();return(H.r*299+H.g*587+H.b*114)/1e3},getLuminance:function(){var H=this.toRgb(),V,C,z,X,rt,ht;return V=H.r/255,C=H.g/255,z=H.b/255,V<=.03928?X=V/12.92:X=n.pow((V+.055)/1.055,2.4),C<=.03928?rt=C/12.92:rt=n.pow((C+.055)/1.055,2.4),z<=.03928?ht=z/12.92:ht=n.pow((z+.055)/1.055,2.4),.2126*X+.7152*rt+.0722*ht},setAlpha:function(H){return this._a=Q(H),this._roundA=u(100*this._a)/100,this},toHsv:function(){var H=y(this._r,this._g,this._b);return{h:H.h*360,s:H.s,v:H.v,a:this._a}},toHsvString:function(){var H=y(this._r,this._g,this._b),V=u(H.h*360),C=u(H.s*100),z=u(H.v*100);return this._a==1?"hsv("+V+", "+C+"%, "+z+"%)":"hsva("+V+", "+C+"%, "+z+"%, "+this._roundA+")"},toHsl:function(){var H=d(this._r,this._g,this._b);return{h:H.h*360,s:H.s,l:H.l,a:this._a}},toHslString:function(){var H=d(this._r,this._g,this._b),V=u(H.h*360),C=u(H.s*100),z=u(H.l*100);return this._a==1?"hsl("+V+", "+C+"%, "+z+"%)":"hsla("+V+", "+C+"%, "+z+"%, "+this._roundA+")"},toHex:function(H){return E(this._r,this._g,this._b,H)},toHexString:function(H){return"#"+this.toHex(H)},toHex8:function(H){return g(this._r,this._g,this._b,this._a,H)},toHex8String:function(H){return"#"+this.toHex8(H)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(P(this._r,255)*100)+"%",g:u(P(this._g,255)*100)+"%",b:u(P(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+u(P(this._r,255)*100)+"%, "+u(P(this._g,255)*100)+"%, "+u(P(this._b,255)*100)+"%)":"rgba("+u(P(this._r,255)*100)+"%, "+u(P(this._g,255)*100)+"%, "+u(P(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:G[E(this._r,this._g,this._b,!0)]||!1},toFilter:function(H){var V="#"+D(this._r,this._g,this._b,this._a),C=V,z=this._gradientType?"GradientType = 1, ":"";if(H){var X=a(H);C="#"+D(X._r,X._g,X._b,X._a)}return"progid:DXImageTransform.Microsoft.gradient("+z+"startColorstr="+V+",endColorstr="+C+")"},toString:function(H){var V=!!H;H=H||this._format;var C=!1,z=this._a<1&&this._a>=0,X=!V&&z&&(H==="hex"||H==="hex6"||H==="hex3"||H==="hex4"||H==="hex8"||H==="name");return X?H==="name"&&this._a===0?this.toName():this.toRgbString():(H==="rgb"&&(C=this.toRgbString()),H==="prgb"&&(C=this.toPercentageRgbString()),(H==="hex"||H==="hex6")&&(C=this.toHexString()),H==="hex3"&&(C=this.toHexString(!0)),H==="hex4"&&(C=this.toHex8String(!0)),H==="hex8"&&(C=this.toHex8String()),H==="name"&&(C=this.toName()),H==="hsl"&&(C=this.toHslString()),H==="hsv"&&(C=this.toHsvString()),C||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function(H,V){var C=H.apply(null,[this].concat([].slice.call(V)));return this._r=C._r,this._g=C._g,this._b=C._b,this.setAlpha(C._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(A,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(H,V){return H.apply(null,[this].concat([].slice.call(V)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(L,arguments)},monochromatic:function(){return this._applyCombination($,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(T,arguments)},tetrad:function(){return this._applyCombination(F,arguments)}},a.fromRatio=function(H,V){if(typeof H=="object"){var C={};for(var z in H)H.hasOwnProperty(z)&&(z==="a"?C[z]=H[z]:C[z]=M(H[z]));H=C}return a(H,V)};function c(H){var V={r:0,g:0,b:0},C=1,z=null,X=null,rt=null,ht=!1,it=!1;return typeof H=="string"&&(H=gt(H)),typeof H=="object"&&(ct(H.r)&&ct(H.g)&&ct(H.b)?(V=o(H.r,H.g,H.b),ht=!0,it=String(H.r).substr(-1)==="%"?"prgb":"rgb"):ct(H.h)&&ct(H.s)&&ct(H.v)?(z=M(H.s),X=M(H.v),V=b(H.h,z,X),ht=!0,it="hsv"):ct(H.h)&&ct(H.s)&&ct(H.l)&&(z=M(H.s),rt=M(H.l),V=h(H.h,z,rt),ht=!0,it="hsl"),H.hasOwnProperty("a")&&(C=H.a)),C=Q(C),{ok:ht,format:H.format||it,r:r(255,e(V.r,0)),g:r(255,e(V.g,0)),b:r(255,e(V.b,0)),a:C}}function o(H,V,C){return{r:P(H,255)*255,g:P(V,255)*255,b:P(C,255)*255}}function d(H,V,C){H=P(H,255),V=P(V,255),C=P(C,255);var z=e(H,V,C),X=r(H,V,C),rt,ht,it=(z+X)/2;if(z==X)rt=ht=0;else{var lt=z-X;switch(ht=it>.5?lt/(2-z-X):lt/(z+X),z){case H:rt=(V-C)/lt+(V<C?6:0);break;case V:rt=(C-H)/lt+2;break;case C:rt=(H-V)/lt+4;break}rt/=6}return{h:rt,s:ht,l:it}}function h(H,V,C){var z,X,rt;H=P(H,360),V=P(V,100),C=P(C,100);function ht(nt,ft,vt){return vt<0&&(vt+=1),vt>1&&(vt-=1),vt<1/6?nt+(ft-nt)*6*vt:vt<1/2?ft:vt<2/3?nt+(ft-nt)*(2/3-vt)*6:nt}if(V===0)z=X=rt=C;else{var it=C<.5?C*(1+V):C+V-C*V,lt=2*C-it;z=ht(lt,it,H+1/3),X=ht(lt,it,H),rt=ht(lt,it,H-1/3)}return{r:z*255,g:X*255,b:rt*255}}function y(H,V,C){H=P(H,255),V=P(V,255),C=P(C,255);var z=e(H,V,C),X=r(H,V,C),rt,ht,it=z,lt=z-X;if(ht=z===0?0:lt/z,z==X)rt=0;else{switch(z){case H:rt=(V-C)/lt+(V<C?6:0);break;case V:rt=(C-H)/lt+2;break;case C:rt=(H-V)/lt+4;break}rt/=6}return{h:rt,s:ht,v:it}}function b(H,V,C){H=P(H,360)*6,V=P(V,100),C=P(C,100);var z=n.floor(H),X=H-z,rt=C*(1-V),ht=C*(1-X*V),it=C*(1-(1-X)*V),lt=z%6,nt=[C,ht,rt,rt,it,C][lt],ft=[it,C,C,ht,rt,rt][lt],vt=[rt,rt,it,C,C,ht][lt];return{r:nt*255,g:ft*255,b:vt*255}}function E(H,V,C,z){var X=[tt(u(H).toString(16)),tt(u(V).toString(16)),tt(u(C).toString(16))];return z&&X[0].charAt(0)==X[0].charAt(1)&&X[1].charAt(0)==X[1].charAt(1)&&X[2].charAt(0)==X[2].charAt(1)?X[0].charAt(0)+X[1].charAt(0)+X[2].charAt(0):X.join("")}function g(H,V,C,z,X){var rt=[tt(u(H).toString(16)),tt(u(V).toString(16)),tt(u(C).toString(16)),tt(Y(z))];return X&&rt[0].charAt(0)==rt[0].charAt(1)&&rt[1].charAt(0)==rt[1].charAt(1)&&rt[2].charAt(0)==rt[2].charAt(1)&&rt[3].charAt(0)==rt[3].charAt(1)?rt[0].charAt(0)+rt[1].charAt(0)+rt[2].charAt(0)+rt[3].charAt(0):rt.join("")}function D(H,V,C,z){var X=[tt(Y(z)),tt(u(H).toString(16)),tt(u(V).toString(16)),tt(u(C).toString(16))];return X.join("")}a.equals=function(H,V){return!H||!V?!1:a(H).toRgbString()==a(V).toRgbString()},a.random=function(){return a.fromRatio({r:f(),g:f(),b:f()})};function w(H,V){V=V===0?0:V||10;var C=a(H).toHsl();return C.s-=V/100,C.s=j(C.s),a(C)}function v(H,V){V=V===0?0:V||10;var C=a(H).toHsl();return C.s+=V/100,C.s=j(C.s),a(C)}function m(H){return a(H).desaturate(100)}function _(H,V){V=V===0?0:V||10;var C=a(H).toHsl();return C.l+=V/100,C.l=j(C.l),a(C)}function S(H,V){V=V===0?0:V||10;var C=a(H).toRgb();return C.r=e(0,r(255,C.r-u(255*-(V/100)))),C.g=e(0,r(255,C.g-u(255*-(V/100)))),C.b=e(0,r(255,C.b-u(255*-(V/100)))),a(C)}function A(H,V){V=V===0?0:V||10;var C=a(H).toHsl();return C.l-=V/100,C.l=j(C.l),a(C)}function x(H,V){var C=a(H).toHsl(),z=(C.h+V)%360;return C.h=z<0?360+z:z,a(C)}function L(H){var V=a(H).toHsl();return V.h=(V.h+180)%360,a(V)}function T(H){var V=a(H).toHsl(),C=V.h;return[a(H),a({h:(C+120)%360,s:V.s,l:V.l}),a({h:(C+240)%360,s:V.s,l:V.l})]}function F(H){var V=a(H).toHsl(),C=V.h;return[a(H),a({h:(C+90)%360,s:V.s,l:V.l}),a({h:(C+180)%360,s:V.s,l:V.l}),a({h:(C+270)%360,s:V.s,l:V.l})]}function O(H){var V=a(H).toHsl(),C=V.h;return[a(H),a({h:(C+72)%360,s:V.s,l:V.l}),a({h:(C+216)%360,s:V.s,l:V.l})]}function I(H,V,C){V=V||6,C=C||30;var z=a(H).toHsl(),X=360/C,rt=[a(H)];for(z.h=(z.h-(X*V>>1)+720)%360;--V;)z.h=(z.h+X)%360,rt.push(a(z));return rt}function $(H,V){V=V||6;for(var C=a(H).toHsv(),z=C.h,X=C.s,rt=C.v,ht=[],it=1/V;V--;)ht.push(a({h:z,s:X,v:rt})),rt=(rt+it)%1;return ht}a.mix=function(H,V,C){C=C===0?0:C||50;var z=a(H).toRgb(),X=a(V).toRgb(),rt=C/100,ht={r:(X.r-z.r)*rt+z.r,g:(X.g-z.g)*rt+z.g,b:(X.b-z.b)*rt+z.b,a:(X.a-z.a)*rt+z.a};return a(ht)},a.readability=function(H,V){var C=a(H),z=a(V);return(n.max(C.getLuminance(),z.getLuminance())+.05)/(n.min(C.getLuminance(),z.getLuminance())+.05)},a.isReadable=function(H,V,C){var z=a.readability(H,V),X,rt;switch(rt=!1,X=mt(C),X.level+X.size){case"AAsmall":case"AAAlarge":rt=z>=4.5;break;case"AAlarge":rt=z>=3;break;case"AAAsmall":rt=z>=7;break}return rt},a.mostReadable=function(H,V,C){var z=null,X=0,rt,ht,it,lt;C=C||{},ht=C.includeFallbackColors,it=C.level,lt=C.size;for(var nt=0;nt<V.length;nt++)rt=a.readability(H,V[nt]),rt>X&&(X=rt,z=a(V[nt]));return a.isReadable(H,z,{level:it,size:lt})||!ht?z:(C.includeFallbackColors=!1,a.mostReadable(H,["#fff","#000"],C))};var R=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},G=a.hexNames=W(R);function W(H){var V={};for(var C in H)H.hasOwnProperty(C)&&(V[H[C]]=C);return V}function Q(H){return H=parseFloat(H),(isNaN(H)||H<0||H>1)&&(H=1),H}function P(H,V){J(H)&&(H="100%");var C=q(H);return H=r(V,e(0,parseFloat(H))),C&&(H=parseInt(H*V,10)/100),n.abs(H-V)<1e-6?1:H%V/parseFloat(V)}function j(H){return r(1,e(0,H))}function k(H){return parseInt(H,16)}function J(H){return typeof H=="string"&&H.indexOf(".")!=-1&&parseFloat(H)===1}function q(H){return typeof H=="string"&&H.indexOf("%")!=-1}function tt(H){return H.length==1?"0"+H:""+H}function M(H){return H<=1&&(H=H*100+"%"),H}function Y(H){return n.round(parseFloat(H)*255).toString(16)}function et(H){return k(H)/255}var ot=function(){var H="[-\\+]?\\d+%?",V="[-\\+]?\\d*\\.\\d+%?",C="(?:"+V+")|(?:"+H+")",z="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?",X="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?";return{CSS_UNIT:new RegExp(C),rgb:new RegExp("rgb"+z),rgba:new RegExp("rgba"+X),hsl:new RegExp("hsl"+z),hsla:new RegExp("hsla"+X),hsv:new RegExp("hsv"+z),hsva:new RegExp("hsva"+X),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ct(H){return!!ot.CSS_UNIT.exec(H)}function gt(H){H=H.replace(s,"").replace(i,"").toLowerCase();var V=!1;if(R[H])H=R[H],V=!0;else if(H=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var C;return(C=ot.rgb.exec(H))?{r:C[1],g:C[2],b:C[3]}:(C=ot.rgba.exec(H))?{r:C[1],g:C[2],b:C[3],a:C[4]}:(C=ot.hsl.exec(H))?{h:C[1],s:C[2],l:C[3]}:(C=ot.hsla.exec(H))?{h:C[1],s:C[2],l:C[3],a:C[4]}:(C=ot.hsv.exec(H))?{h:C[1],s:C[2],v:C[3]}:(C=ot.hsva.exec(H))?{h:C[1],s:C[2],v:C[3],a:C[4]}:(C=ot.hex8.exec(H))?{r:k(C[1]),g:k(C[2]),b:k(C[3]),a:et(C[4]),format:V?"name":"hex8"}:(C=ot.hex6.exec(H))?{r:k(C[1]),g:k(C[2]),b:k(C[3]),format:V?"name":"hex"}:(C=ot.hex4.exec(H))?{r:k(C[1]+""+C[1]),g:k(C[2]+""+C[2]),b:k(C[3]+""+C[3]),a:et(C[4]+""+C[4]),format:V?"name":"hex8"}:(C=ot.hex3.exec(H))?{r:k(C[1]+""+C[1]),g:k(C[2]+""+C[2]),b:k(C[3]+""+C[3]),format:V?"name":"hex"}:!1}function mt(H){var V,C;return H=H||{level:"AA",size:"small"},V=(H.level||"AA").toUpperCase(),C=(H.size||"small").toLowerCase(),V!=="AA"&&V!=="AAA"&&(V="AA"),C!=="small"&&C!=="large"&&(C="small"),{level:V,size:C}}typeof l<"u"&&l.exports?l.exports=a:typeof define=="function"&&define.amd?define(function(){return a}):window.tinycolor=a}(Math)}),Bo=N((t,l)=>{B();var n=To(),s={r:256,g:256,b:256,a:1},i={h:360,s:1,v:1,a:1};function p(o,d,h){let y={};for(let b in o)o.hasOwnProperty(b)&&(y[b]=h===0?0:(d[b]-o[b])/h);return y}function u(o,d,h,y){let b={};for(let E in d)d.hasOwnProperty(E)&&(b[E]=o[E]*h+d[E],b[E]=b[E]<0?b[E]+y[E]:y[E]!==1?b[E]%y[E]:b[E]);return b}function r(o,d,h){let y=o.color.toRgb(),b=d.color.toRgb(),E=p(y,b,h),g=[o.color];for(let D=1;D<h;D++){let w=u(E,y,D,s);g.push(n(w))}return g}function e(o,d,h,y){let b=o.color.toHsv(),E=d.color.toHsv();if(b.s===0||E.s===0)return r(o,d,h);let g;if(typeof y=="boolean")g=y;else{let m=b.h<E.h&&E.h-b.h<180||b.h>E.h&&b.h-E.h>180;g=y==="long"&&m||y==="short"&&!m}let D=p(b,E,h),w=[o.color],v;b.h<=E.h&&!g||b.h>=E.h&&g?v=E.h-b.h:g?v=360-E.h+b.h:v=360-b.h+E.h,D.h=Math.pow(-1,g?1:0)*Math.abs(v)/h;for(let m=1;m<h;m++){let _=u(D,b,m,i);w.push(n(_))}return w}function f(o,d){let h=o.length;if(d=parseInt(d,10),isNaN(d)||d<2)throw new Error("Invalid number of steps (< 2)");if(d<h)throw new Error("Number of steps cannot be inferior to number of stops");let y=[];for(let E=1;E<h;E++){let g=(d-1)*(o[E].pos-o[E-1].pos);y.push(Math.max(1,Math.round(g)))}let b=1;for(let E=h-1;E--;)b+=y[E];for(;b!==d;)if(b<d){let E=Math.min.apply(null,y);y[y.indexOf(E)]++,b++}else{let E=Math.max.apply(null,y);y[y.indexOf(E)]--,b--}return y}function a(o,d,h,y){if(d<0||d>1)throw new Error("Position must be between 0 and 1");let b,E;for(let w=0,v=o.length;w<v-1;w++)if(d>=o[w].pos&&d<o[w+1].pos){b=o[w],E=o[w+1];break}b||(b=E=o[o.length-1]);let g=p(b.color[h](),E.color[h](),(E.pos-b.pos)*100),D=u(g,b.color[h](),(d-b.pos)*100,y);return n(D)}var c=class{constructor(o){if(o.length<2)throw new Error("Invalid number of stops (< 2)");let d=o[0].pos!==void 0,h=o.length,y=-1,b=!1;this.stops=o.map((E,g)=>{let D=E.pos!==void 0;if(d^D)throw new Error("Cannot mix positionned and not posionned color stops");if(D){let w=E.color!==void 0;if(!w&&(b||g===0||g===h-1))throw new Error("Cannot define two consecutive position-only stops");if(b=!w,E={color:w?n(E.color):null,colorLess:!w,pos:E.pos},E.pos<0||E.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(E.pos<y)throw new Error("Color stops positions are not ordered");y=E.pos}else E={color:n(E.color!==void 0?E.color:E),pos:g/(h-1)};return E}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),h++),this.stops[h-1].pos!==1&&this.stops.push({color:this.stops[h-1].color,pos:1})}reverse(){let o=[];return this.stops.forEach(function(d){o.push({color:d.color,pos:1-d.pos})}),new c(o.reverse())}loop(){let o=[],d=[];return this.stops.forEach(h=>{o.push({color:h.color,pos:h.pos/2})}),this.stops.slice(0,-1).forEach(h=>{d.push({color:h.color,pos:1-h.pos/2})}),new c(o.concat(d.reverse()))}rgb(o){let d=f(this.stops,o),h=[];this.stops.forEach((y,b)=>{y.colorLess&&(y.color=r(this.stops[b-1],this.stops[b+1],2)[1])});for(let y=0,b=this.stops.length;y<b-1;y++){let E=r(this.stops[y],this.stops[y+1],d[y]);h.splice(h.length,0,...E)}return h.push(this.stops[this.stops.length-1].color),h}hsv(o,d){let h=f(this.stops,o),y=[];this.stops.forEach((b,E)=>{b.colorLess&&(b.color=e(this.stops[E-1],this.stops[E+1],2,d)[1])});for(let b=0,E=this.stops.length;b<E-1;b++){let g=e(this.stops[b],this.stops[b+1],h[b],d);y.splice(y.length,0,...g)}return y.push(this.stops[this.stops.length-1].color),y}css(o,d){o=o||"linear",d=d||(o==="linear"?"to right":"ellipse at center");let h=o+"-gradient("+d;return this.stops.forEach(function(y){h+=", "+(y.colorLess?"":y.color.toRgbString()+" ")+y.pos*100+"%"}),h+=")",h}rgbAt(o){return a(this.stops,o,"toRgb",s)}hsvAt(o){return a(this.stops,o,"toHsv",i)}};l.exports=function(o){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');o=arguments[0]}else o=Array.prototype.slice.call(arguments);return new c(o)}}),Po=N((t,l)=>{"use strict";B();var n=Ro(),s=Bo(),i=/\s/g;function p(...c){let o=s.apply(this,c),d=(h,y)=>r(h?h.toString():"",o,y);return d.multiline=(h,y)=>e(h?h.toString():"",o,y),d}var u=(c,o,d)=>o.interpolation.toLowerCase()==="hsv"?c.hsv(d,o.hsvSpin.toLowerCase()):c.rgb(d);function r(c,o,d){let h=f(d),y=Math.max(c.replace(i,"").length,o.stops.length),b=u(o,h,y),E="";for(let g of c)E+=g.match(i)?g:n.hex(b.shift().toHex())(g);return E}function e(c,o,d){let h=f(d),y=c.split(`
|
16
|
+
`),b=Math.max.apply(null,y.map(D=>D.length).concat([o.stops.length])),E=u(o,h,b),g=[];for(let D of y){let w=E.slice(0),v="";for(let m of D)v+=n.hex(w.shift().toHex())(m);g.push(v)}return g.join(`
|
17
|
+
`)}function f(c){let o={interpolation:"rgb",hsvSpin:"short",...c};if(c!==void 0&&typeof c!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof c}\``);if(typeof o.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof o.interpolation}\``);if(o.interpolation.toLowerCase()==="hsv"&&typeof o.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof o.hsvSpin}\``);return o}var a={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};l.exports=p;for(let c in a)l.exports[c]=o=>new p(a[c].colors)(o,a[c].options),l.exports[c].multiline=o=>new p(a[c].colors).multiline(o,a[c].options)}),On={};An(On,{dimmed:()=>Ho,error:()=>In,info:()=>Mo,item:()=>Uo,turboBlue:()=>ve,turboGradient:()=>jo,turboLoader:()=>Ln,turboRed:()=>Bn,warn:()=>$o,yellow:()=>Pn});B();var Je=Ot(he()),Lo=Ot(Fo()),Io=Ot(Po()),Rn="#0099F7",Tn="#F11712",No="#FFFF00",jo=(0,Io.default)(Rn,Tn),ve=Je.default.hex(Rn),Bn=Je.default.hex(Tn),Pn=Je.default.hex(No),Ln=t=>(0,Lo.default)({text:t,spinner:{frames:[" ",ve("> "),ve(">> "),ve(">>>")]}}),Mo=(...t)=>{console.log(ve.bold(">>>"),...t)},In=(...t)=>{console.error(Bn.bold(">>>"),...t)},$o=(...t)=>{console.error(Pn.bold(">>>"),...t)},Ho=(...t)=>{console.log(Je.default.dim(...t))},Uo=(...t)=>{console.log(ve.bold(" \u2022"),...t)};var ai=require("stream"),li=require("util");var se=N((t,l)=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var n=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function s(m){return n.includes(m)}var i=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...n];function p(m){return i.includes(m)}var u=["null","undefined","string","number","bigint","boolean","symbol"];function r(m){return u.includes(m)}function e(m){return _=>typeof _===m}var{toString:f}=Object.prototype,a=m=>{let _=f.call(m).slice(8,-1);if(/HTML\w+Element/.test(_)&&o.domElement(m))return"HTMLElement";if(p(_))return _},c=m=>_=>a(_)===m;function o(m){if(m===null)return"null";switch(typeof m){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(o.observable(m))return"Observable";if(o.array(m))return"Array";if(o.buffer(m))return"Buffer";let _=a(m);if(_)return _;if(m instanceof String||m instanceof Boolean||m instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}o.undefined=e("undefined"),o.string=e("string");var d=e("number");o.number=m=>d(m)&&!o.nan(m),o.bigint=e("bigint"),o.function_=e("function"),o.null_=m=>m===null,o.class_=m=>o.function_(m)&&m.toString().startsWith("class "),o.boolean=m=>m===!0||m===!1,o.symbol=e("symbol"),o.numericString=m=>o.string(m)&&!o.emptyStringOrWhitespace(m)&&!Number.isNaN(Number(m)),o.array=(m,_)=>Array.isArray(m)?o.function_(_)?m.every(_):!0:!1,o.buffer=m=>{var _,S,A,x;return(x=(A=(S=(_=m)===null||_===void 0?void 0:_.constructor)===null||S===void 0?void 0:S.isBuffer)===null||A===void 0?void 0:A.call(S,m))!==null&&x!==void 0?x:!1},o.blob=m=>c("Blob")(m),o.nullOrUndefined=m=>o.null_(m)||o.undefined(m),o.object=m=>!o.null_(m)&&(typeof m=="object"||o.function_(m)),o.iterable=m=>{var _;return o.function_((_=m)===null||_===void 0?void 0:_[Symbol.iterator])},o.asyncIterable=m=>{var _;return o.function_((_=m)===null||_===void 0?void 0:_[Symbol.asyncIterator])},o.generator=m=>{var _,S;return o.iterable(m)&&o.function_((_=m)===null||_===void 0?void 0:_.next)&&o.function_((S=m)===null||S===void 0?void 0:S.throw)},o.asyncGenerator=m=>o.asyncIterable(m)&&o.function_(m.next)&&o.function_(m.throw),o.nativePromise=m=>c("Promise")(m);var h=m=>{var _,S;return o.function_((_=m)===null||_===void 0?void 0:_.then)&&o.function_((S=m)===null||S===void 0?void 0:S.catch)};o.promise=m=>o.nativePromise(m)||h(m),o.generatorFunction=c("GeneratorFunction"),o.asyncGeneratorFunction=m=>a(m)==="AsyncGeneratorFunction",o.asyncFunction=m=>a(m)==="AsyncFunction",o.boundFunction=m=>o.function_(m)&&!m.hasOwnProperty("prototype"),o.regExp=c("RegExp"),o.date=c("Date"),o.error=c("Error"),o.map=m=>c("Map")(m),o.set=m=>c("Set")(m),o.weakMap=m=>c("WeakMap")(m),o.weakSet=m=>c("WeakSet")(m),o.int8Array=c("Int8Array"),o.uint8Array=c("Uint8Array"),o.uint8ClampedArray=c("Uint8ClampedArray"),o.int16Array=c("Int16Array"),o.uint16Array=c("Uint16Array"),o.int32Array=c("Int32Array"),o.uint32Array=c("Uint32Array"),o.float32Array=c("Float32Array"),o.float64Array=c("Float64Array"),o.bigInt64Array=c("BigInt64Array"),o.bigUint64Array=c("BigUint64Array"),o.arrayBuffer=c("ArrayBuffer"),o.sharedArrayBuffer=c("SharedArrayBuffer"),o.dataView=c("DataView"),o.enumCase=(m,_)=>Object.values(_).includes(m),o.directInstanceOf=(m,_)=>Object.getPrototypeOf(m)===_.prototype,o.urlInstance=m=>c("URL")(m),o.urlString=m=>{if(!o.string(m))return!1;try{return new URL(m),!0}catch{return!1}},o.truthy=m=>!!m,o.falsy=m=>!m,o.nan=m=>Number.isNaN(m),o.primitive=m=>o.null_(m)||r(typeof m),o.integer=m=>Number.isInteger(m),o.safeInteger=m=>Number.isSafeInteger(m),o.plainObject=m=>{if(f.call(m)!=="[object Object]")return!1;let _=Object.getPrototypeOf(m);return _===null||_===Object.getPrototypeOf({})},o.typedArray=m=>s(a(m));var y=m=>o.safeInteger(m)&&m>=0;o.arrayLike=m=>!o.nullOrUndefined(m)&&!o.function_(m)&&y(m.length),o.inRange=(m,_)=>{if(o.number(_))return m>=Math.min(0,_)&&m<=Math.max(_,0);if(o.array(_)&&_.length===2)return m>=Math.min(..._)&&m<=Math.max(..._);throw new TypeError(`Invalid range: ${JSON.stringify(_)}`)};var b=1,E=["innerHTML","ownerDocument","style","attributes","nodeValue"];o.domElement=m=>o.object(m)&&m.nodeType===b&&o.string(m.nodeName)&&!o.plainObject(m)&&E.every(_=>_ in m),o.observable=m=>{var _,S,A,x;return m?m===((S=(_=m)[Symbol.observable])===null||S===void 0?void 0:S.call(_))||m===((x=(A=m)["@@observable"])===null||x===void 0?void 0:x.call(A)):!1},o.nodeStream=m=>o.object(m)&&o.function_(m.pipe)&&!o.observable(m),o.infinite=m=>m===1/0||m===-1/0;var g=m=>_=>o.integer(_)&&Math.abs(_%2)===m;o.evenInteger=g(0),o.oddInteger=g(1),o.emptyArray=m=>o.array(m)&&m.length===0,o.nonEmptyArray=m=>o.array(m)&&m.length>0,o.emptyString=m=>o.string(m)&&m.length===0;var D=m=>o.string(m)&&!/\S/.test(m);o.emptyStringOrWhitespace=m=>o.emptyString(m)||D(m),o.nonEmptyString=m=>o.string(m)&&m.length>0,o.nonEmptyStringAndNotWhitespace=m=>o.string(m)&&!o.emptyStringOrWhitespace(m),o.emptyObject=m=>o.object(m)&&!o.map(m)&&!o.set(m)&&Object.keys(m).length===0,o.nonEmptyObject=m=>o.object(m)&&!o.map(m)&&!o.set(m)&&Object.keys(m).length>0,o.emptySet=m=>o.set(m)&&m.size===0,o.nonEmptySet=m=>o.set(m)&&m.size>0,o.emptyMap=m=>o.map(m)&&m.size===0,o.nonEmptyMap=m=>o.map(m)&&m.size>0,o.propertyKey=m=>o.any([o.string,o.number,o.symbol],m),o.formData=m=>c("FormData")(m),o.urlSearchParams=m=>c("URLSearchParams")(m);var w=(m,_,S)=>{if(!o.function_(_))throw new TypeError(`Invalid predicate: ${JSON.stringify(_)}`);if(S.length===0)throw new TypeError("Invalid number of values");return m.call(S,_)};o.any=(m,..._)=>(o.array(m)?m:[m]).some(S=>w(Array.prototype.some,S,_)),o.all=(m,..._)=>w(Array.prototype.every,m,_);var v=(m,_,S,A={})=>{if(!m){let{multipleValues:x}=A,L=x?`received values of types ${[...new Set(S.map(T=>`\`${o(T)}\``))].join(", ")}`:`received value of type \`${o(S)}\``;throw new TypeError(`Expected value which is \`${_}\`, ${L}.`)}};t.assert={undefined:m=>v(o.undefined(m),"undefined",m),string:m=>v(o.string(m),"string",m),number:m=>v(o.number(m),"number",m),bigint:m=>v(o.bigint(m),"bigint",m),function_:m=>v(o.function_(m),"Function",m),null_:m=>v(o.null_(m),"null",m),class_:m=>v(o.class_(m),"Class",m),boolean:m=>v(o.boolean(m),"boolean",m),symbol:m=>v(o.symbol(m),"symbol",m),numericString:m=>v(o.numericString(m),"string with a number",m),array:(m,_)=>{v(o.array(m),"Array",m),_&&m.forEach(_)},buffer:m=>v(o.buffer(m),"Buffer",m),blob:m=>v(o.blob(m),"Blob",m),nullOrUndefined:m=>v(o.nullOrUndefined(m),"null or undefined",m),object:m=>v(o.object(m),"Object",m),iterable:m=>v(o.iterable(m),"Iterable",m),asyncIterable:m=>v(o.asyncIterable(m),"AsyncIterable",m),generator:m=>v(o.generator(m),"Generator",m),asyncGenerator:m=>v(o.asyncGenerator(m),"AsyncGenerator",m),nativePromise:m=>v(o.nativePromise(m),"native Promise",m),promise:m=>v(o.promise(m),"Promise",m),generatorFunction:m=>v(o.generatorFunction(m),"GeneratorFunction",m),asyncGeneratorFunction:m=>v(o.asyncGeneratorFunction(m),"AsyncGeneratorFunction",m),asyncFunction:m=>v(o.asyncFunction(m),"AsyncFunction",m),boundFunction:m=>v(o.boundFunction(m),"Function",m),regExp:m=>v(o.regExp(m),"RegExp",m),date:m=>v(o.date(m),"Date",m),error:m=>v(o.error(m),"Error",m),map:m=>v(o.map(m),"Map",m),set:m=>v(o.set(m),"Set",m),weakMap:m=>v(o.weakMap(m),"WeakMap",m),weakSet:m=>v(o.weakSet(m),"WeakSet",m),int8Array:m=>v(o.int8Array(m),"Int8Array",m),uint8Array:m=>v(o.uint8Array(m),"Uint8Array",m),uint8ClampedArray:m=>v(o.uint8ClampedArray(m),"Uint8ClampedArray",m),int16Array:m=>v(o.int16Array(m),"Int16Array",m),uint16Array:m=>v(o.uint16Array(m),"Uint16Array",m),int32Array:m=>v(o.int32Array(m),"Int32Array",m),uint32Array:m=>v(o.uint32Array(m),"Uint32Array",m),float32Array:m=>v(o.float32Array(m),"Float32Array",m),float64Array:m=>v(o.float64Array(m),"Float64Array",m),bigInt64Array:m=>v(o.bigInt64Array(m),"BigInt64Array",m),bigUint64Array:m=>v(o.bigUint64Array(m),"BigUint64Array",m),arrayBuffer:m=>v(o.arrayBuffer(m),"ArrayBuffer",m),sharedArrayBuffer:m=>v(o.sharedArrayBuffer(m),"SharedArrayBuffer",m),dataView:m=>v(o.dataView(m),"DataView",m),enumCase:(m,_)=>v(o.enumCase(m,_),"EnumCase",m),urlInstance:m=>v(o.urlInstance(m),"URL",m),urlString:m=>v(o.urlString(m),"string with a URL",m),truthy:m=>v(o.truthy(m),"truthy",m),falsy:m=>v(o.falsy(m),"falsy",m),nan:m=>v(o.nan(m),"NaN",m),primitive:m=>v(o.primitive(m),"primitive",m),integer:m=>v(o.integer(m),"integer",m),safeInteger:m=>v(o.safeInteger(m),"integer",m),plainObject:m=>v(o.plainObject(m),"plain object",m),typedArray:m=>v(o.typedArray(m),"TypedArray",m),arrayLike:m=>v(o.arrayLike(m),"array-like",m),domElement:m=>v(o.domElement(m),"HTMLElement",m),observable:m=>v(o.observable(m),"Observable",m),nodeStream:m=>v(o.nodeStream(m),"Node.js Stream",m),infinite:m=>v(o.infinite(m),"infinite number",m),emptyArray:m=>v(o.emptyArray(m),"empty array",m),nonEmptyArray:m=>v(o.nonEmptyArray(m),"non-empty array",m),emptyString:m=>v(o.emptyString(m),"empty string",m),emptyStringOrWhitespace:m=>v(o.emptyStringOrWhitespace(m),"empty string or whitespace",m),nonEmptyString:m=>v(o.nonEmptyString(m),"non-empty string",m),nonEmptyStringAndNotWhitespace:m=>v(o.nonEmptyStringAndNotWhitespace(m),"non-empty string and not whitespace",m),emptyObject:m=>v(o.emptyObject(m),"empty object",m),nonEmptyObject:m=>v(o.nonEmptyObject(m),"non-empty object",m),emptySet:m=>v(o.emptySet(m),"empty set",m),nonEmptySet:m=>v(o.nonEmptySet(m),"non-empty set",m),emptyMap:m=>v(o.emptyMap(m),"empty map",m),nonEmptyMap:m=>v(o.nonEmptyMap(m),"non-empty map",m),propertyKey:m=>v(o.propertyKey(m),"PropertyKey",m),formData:m=>v(o.formData(m),"FormData",m),urlSearchParams:m=>v(o.urlSearchParams(m),"URLSearchParams",m),evenInteger:m=>v(o.evenInteger(m),"even integer",m),oddInteger:m=>v(o.oddInteger(m),"odd integer",m),directInstanceOf:(m,_)=>v(o.directInstanceOf(m,_),"T",m),inRange:(m,_)=>v(o.inRange(m,_),"in range",m),any:(m,..._)=>v(o.any(m,..._),"predicate returns truthy for any value",_,{multipleValues:!0}),all:(m,..._)=>v(o.all(m,..._),"predicate returns truthy for all values",_,{multipleValues:!0})},Object.defineProperties(o,{class:{value:o.class_},function:{value:o.function_},null:{value:o.null_}}),Object.defineProperties(t.assert,{class:{value:t.assert.class_},function:{value:t.assert.function_},null:{value:t.assert.null_}}),t.default=o,l.exports=o,l.exports.default=o,l.exports.assert=t.assert}),Go=N((t,l)=>{"use strict";B();var n=class extends Error{constructor(i){super(i||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},s=class{static fn(i){return(...p)=>new s((u,r,e)=>{p.push(e),i(...p).then(u,r)})}constructor(i){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((p,u)=>{this._reject=u;let r=a=>{(!this._isCanceled||!f.shouldReject)&&(this._isPending=!1,p(a))},e=a=>{this._isPending=!1,u(a)},f=a=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(a)};return Object.defineProperties(f,{shouldReject:{get:()=>this._rejectOnCancel,set:a=>{this._rejectOnCancel=a}}}),i(r,e,f)})}then(i,p){return this._promise.then(i,p)}catch(i){return this._promise.catch(i)}finally(i){return this._promise.finally(i)}cancel(i){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let p of this._cancelHandlers)p()}catch(p){this._reject(p);return}this._rejectOnCancel&&this._reject(new n(i))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(s.prototype,Promise.prototype),l.exports=s,l.exports.CancelError=n}),qo=N((t,l)=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});function n(i){return i.encrypted}var s=(i,p)=>{let u;typeof p=="function"?u={connect:p}:u=p;let r=typeof u.connect=="function",e=typeof u.secureConnect=="function",f=typeof u.close=="function",a=()=>{r&&u.connect(),n(i)&&e&&(i.authorized?u.secureConnect():i.authorizationError||i.once("secureConnect",u.secureConnect)),f&&i.once("close",u.close)};i.writable&&!i.connecting?a():i.connecting?i.once("connect",a):i.destroyed&&f&&u.close(i._hadError)};t.default=s,l.exports=s,l.exports.default=s}),zo=N((t,l)=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var n=qo(),s=Z("util"),i=Number(process.versions.node.split(".")[0]),p=u=>{if(u.timings)return u.timings;let r={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};u.timings=r;let e=o=>{let d=o.emit.bind(o);o.emit=(h,...y)=>(h==="error"&&(r.error=Date.now(),r.phases.total=r.error-r.start,o.emit=d),d(h,...y))};e(u);let f=()=>{r.abort=Date.now(),(!r.response||i>=13)&&(r.phases.total=Date.now()-r.start)};u.prependOnceListener("abort",f);let a=o=>{if(r.socket=Date.now(),r.phases.wait=r.socket-r.start,s.types.isProxy(o))return;let d=()=>{r.lookup=Date.now(),r.phases.dns=r.lookup-r.socket};o.prependOnceListener("lookup",d),n.default(o,{connect:()=>{r.connect=Date.now(),r.lookup===void 0&&(o.removeListener("lookup",d),r.lookup=r.connect,r.phases.dns=r.lookup-r.socket),r.phases.tcp=r.connect-r.lookup},secureConnect:()=>{r.secureConnect=Date.now(),r.phases.tls=r.secureConnect-r.connect}})};u.socket?a(u.socket):u.prependOnceListener("socket",a);let c=()=>{var o;r.upload=Date.now(),r.phases.request=r.upload-((o=r.secureConnect)!==null&&o!==void 0?o:r.connect)};return(()=>typeof u.writableFinished=="boolean"?u.writableFinished:u.finished&&u.outputSize===0&&(!u.socket||u.socket.writableLength===0))()?c():u.prependOnceListener("finish",c),u.prependOnceListener("response",o=>{r.response=Date.now(),r.phases.firstByte=r.response-r.upload,o.timings=r,e(o),o.prependOnceListener("end",()=>{r.end=Date.now(),r.phases.download=r.end-r.response,r.phases.total=r.end-r.start}),o.prependOnceListener("aborted",f)}),r};t.default=p,l.exports=p,l.exports.default=p}),Wo=N((t,l)=>{"use strict";B();var{V4MAPPED:n,ADDRCONFIG:s,ALL:i,promises:{Resolver:p},lookup:u}=Z("dns"),{promisify:r}=Z("util"),e=Z("os"),f=Symbol("cacheableLookupCreateConnection"),a=Symbol("cacheableLookupInstance"),c=Symbol("expires"),o=typeof i=="number",d=w=>{if(!(w&&typeof w.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},h=w=>{for(let v of w)v.family!==6&&(v.address=`::ffff:${v.address}`,v.family=6)},y=()=>{let w=!1,v=!1;for(let m of Object.values(e.networkInterfaces()))for(let _ of m)if(!_.internal&&(_.family==="IPv6"?v=!0:w=!0,w&&v))return{has4:w,has6:v};return{has4:w,has6:v}},b=w=>Symbol.iterator in w,E={ttl:!0},g={all:!0},D=class{constructor({cache:w=new Map,maxTtl:v=1/0,fallbackDuration:m=3600,errorTtl:_=.15,resolver:S=new p,lookup:A=u}={}){if(this.maxTtl=v,this.errorTtl=_,this._cache=w,this._resolver=S,this._dnsLookup=r(A),this._resolver instanceof p?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=r(this._resolver.resolve4.bind(this._resolver)),this._resolve6=r(this._resolver.resolve6.bind(this._resolver))),this._iface=y(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,m<1)this._fallback=!1;else{this._fallback=!0;let x=setInterval(()=>{this._hostnamesToFallback.clear()},m*1e3);x.unref&&x.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(w){this.clear(),this._resolver.setServers(w)}get servers(){return this._resolver.getServers()}lookup(w,v,m){if(typeof v=="function"?(m=v,v={}):typeof v=="number"&&(v={family:v}),!m)throw new Error("Callback must be a function.");this.lookupAsync(w,v).then(_=>{v.all?m(null,_):m(null,_.address,_.family,_.expires,_.ttl)},m)}async lookupAsync(w,v={}){typeof v=="number"&&(v={family:v});let m=await this.query(w);if(v.family===6){let _=m.filter(S=>S.family===6);v.hints&n&&(o&&v.hints&i||_.length===0)?h(m):m=_}else v.family===4&&(m=m.filter(_=>_.family===4));if(v.hints&s){let{_iface:_}=this;m=m.filter(S=>S.family===6?_.has6:_.has4)}if(m.length===0){let _=new Error(`cacheableLookup ENOTFOUND ${w}`);throw _.code="ENOTFOUND",_.hostname=w,_}return v.all?m:m[0]}async query(w){let v=await this._cache.get(w);if(!v){let m=this._pending[w];if(m)v=await m;else{let _=this.queryAndCache(w);this._pending[w]=_;try{v=await _}finally{delete this._pending[w]}}}return v=v.map(m=>({...m})),v}async _resolve(w){let v=async T=>{try{return await T}catch(F){if(F.code==="ENODATA"||F.code==="ENOTFOUND")return[];throw F}},[m,_]=await Promise.all([this._resolve4(w,E),this._resolve6(w,E)].map(T=>v(T))),S=0,A=0,x=0,L=Date.now();for(let T of m)T.family=4,T.expires=L+T.ttl*1e3,S=Math.max(S,T.ttl);for(let T of _)T.family=6,T.expires=L+T.ttl*1e3,A=Math.max(A,T.ttl);return m.length>0?_.length>0?x=Math.min(S,A):x=S:x=A,{entries:[...m,..._],cacheTtl:x}}async _lookup(w){try{return{entries:await this._dnsLookup(w,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(w,v,m){if(this.maxTtl>0&&m>0){m=Math.min(m,this.maxTtl)*1e3,v[c]=Date.now()+m;try{await this._cache.set(w,v,m)}catch(_){this.lookupAsync=async()=>{let S=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw S.cause=_,S}}b(this._cache)&&this._tick(m)}}async queryAndCache(w){if(this._hostnamesToFallback.has(w))return this._dnsLookup(w,g);let v=await this._resolve(w);v.entries.length===0&&this._fallback&&(v=await this._lookup(w),v.entries.length!==0&&this._hostnamesToFallback.add(w));let m=v.entries.length===0?this.errorTtl:v.cacheTtl;return await this._set(w,v.entries,m),v.entries}_tick(w){let v=this._nextRemovalTime;(!v||w<v)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=w,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let m=1/0,_=Date.now();for(let[S,A]of this._cache){let x=A[c];_>=x?this._cache.delete(S):x<m&&(m=x)}m!==1/0&&this._tick(m-_)},w),this._removalTimeout.unref&&this._removalTimeout.unref())}install(w){if(d(w),f in w)throw new Error("CacheableLookup has been already installed");w[f]=w.createConnection,w[a]=this,w.createConnection=(v,m)=>("lookup"in v||(v.lookup=this.lookup),w[f](v,m))}uninstall(w){if(d(w),w[f]){if(w[a]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");w.createConnection=w[f],delete w[f],delete w[a]}}updateInterfaceInfo(){let{_iface:w}=this;this._iface=y(),(w.has4&&!this._iface.has4||w.has6&&!this._iface.has6)&&this._cache.clear()}clear(w){if(w){this._cache.delete(w);return}this._cache.clear()}};l.exports=D,l.exports.default=D}),Vo=N((t,l)=>{"use strict";B();var n="text/plain",s="us-ascii",i=(r,e)=>e.some(f=>f instanceof RegExp?f.test(r):f===r),p=(r,{stripHash:e})=>{let f=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(r);if(!f)throw new Error(`Invalid URL: ${r}`);let{type:a,data:c,hash:o}=f.groups,d=a.split(";");o=e?"":o;let h=!1;d[d.length-1]==="base64"&&(d.pop(),h=!0);let y=(d.shift()||"").toLowerCase(),b=[...d.map(E=>{let[g,D=""]=E.split("=").map(w=>w.trim());return g==="charset"&&(D=D.toLowerCase(),D===s)?"":`${g}${D?`=${D}`:""}`}).filter(Boolean)];return h&&b.push("base64"),(b.length!==0||y&&y!==n)&&b.unshift(y),`data:${b.join(";")},${h?c.trim():c}${o?`#${o}`:""}`},u=(r,e)=>{if(e={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...e},r=r.trim(),/^data:/i.test(r))return p(r,e);if(/^view-source:/i.test(r))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let f=r.startsWith("//");!f&&/^\.*\//.test(r)||(r=r.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let a=new URL(r);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&a.protocol==="https:"&&(a.protocol="http:"),e.forceHttps&&a.protocol==="http:"&&(a.protocol="https:"),e.stripAuthentication&&(a.username="",a.password=""),e.stripHash?a.hash="":e.stripTextFragment&&(a.hash=a.hash.replace(/#?:~:text.*?$/i,"")),a.pathname&&(a.pathname=a.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),a.pathname)try{a.pathname=decodeURI(a.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=a.pathname.split("/"),d=o[o.length-1];i(d,e.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),a.pathname=o.slice(1).join("/")+"/")}if(a.hostname&&(a.hostname=a.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(a.hostname)&&(a.hostname=a.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...a.searchParams.keys()])i(o,e.removeQueryParameters)&&a.searchParams.delete(o);e.removeQueryParameters===!0&&(a.search=""),e.sortQueryParameters&&a.searchParams.sort(),e.removeTrailingSlash&&(a.pathname=a.pathname.replace(/\/$/,""));let c=r;return r=a.toString(),!e.removeSingleSlash&&a.pathname==="/"&&!c.endsWith("/")&&a.hash===""&&(r=r.replace(/\/$/,"")),(e.removeTrailingSlash||a.pathname==="/")&&a.hash===""&&e.removeSingleSlash&&(r=r.replace(/\/$/,"")),f&&!e.normalizeProtocol&&(r=r.replace(/^http:\/\//,"//")),e.stripProtocol&&(r=r.replace(/^(?:https?:)?\/\//,"")),r};l.exports=u}),Yo=N((t,l)=>{B(),l.exports=n;function n(s,i){if(s&&i)return n(s)(i);if(typeof s!="function")throw new TypeError("need wrapper function");return Object.keys(s).forEach(function(u){p[u]=s[u]}),p;function p(){for(var u=new Array(arguments.length),r=0;r<u.length;r++)u[r]=arguments[r];var e=s.apply(this,u),f=u[u.length-1];return typeof e=="function"&&e!==f&&Object.keys(f).forEach(function(a){e[a]=f[a]}),e}}}),jn=N((t,l)=>{B();var n=Yo();l.exports=n(s),l.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(p){var u=function(){return u.called?u.value:(u.called=!0,u.value=p.apply(this,arguments))};return u.called=!1,u}function i(p){var u=function(){if(u.called)throw new Error(u.onceError);return u.called=!0,u.value=p.apply(this,arguments)},r=p.name||"Function wrapped with `once`";return u.onceError=r+" shouldn't be called more than once",u.called=!1,u}}),Ko=N((t,l)=>{B();var n=jn(),s=function(){},i=function(r){return r.setHeader&&typeof r.abort=="function"},p=function(r){return r.stdio&&Array.isArray(r.stdio)&&r.stdio.length===3},u=function(r,e,f){if(typeof e=="function")return u(r,null,e);e||(e={}),f=n(f||s);var a=r._writableState,c=r._readableState,o=e.readable||e.readable!==!1&&r.readable,d=e.writable||e.writable!==!1&&r.writable,h=!1,y=function(){r.writable||b()},b=function(){d=!1,o||f.call(r)},E=function(){o=!1,d||f.call(r)},g=function(_){f.call(r,_?new Error("exited with error code: "+_):null)},D=function(_){f.call(r,_)},w=function(){process.nextTick(v)},v=function(){if(!h){if(o&&!(c&&c.ended&&!c.destroyed))return f.call(r,new Error("premature close"));if(d&&!(a&&a.ended&&!a.destroyed))return f.call(r,new Error("premature close"))}},m=function(){r.req.on("finish",b)};return i(r)?(r.on("complete",b),r.on("abort",w),r.req?m():r.on("request",m)):d&&!a&&(r.on("end",y),r.on("close",y)),p(r)&&r.on("exit",g),r.on("end",E),r.on("finish",b),e.error!==!1&&r.on("error",D),r.on("close",w),function(){h=!0,r.removeListener("complete",b),r.removeListener("abort",w),r.removeListener("request",m),r.req&&r.req.removeListener("finish",b),r.removeListener("end",y),r.removeListener("close",y),r.removeListener("finish",b),r.removeListener("exit",g),r.removeListener("end",E),r.removeListener("error",D),r.removeListener("close",w)}};l.exports=u}),Jo=N((t,l)=>{B();var n=jn(),s=Ko(),i=Z("fs"),p=function(){},u=/^v?\.0/.test(process.version),r=function(h){return typeof h=="function"},e=function(h){return!u||!i?!1:(h instanceof(i.ReadStream||p)||h instanceof(i.WriteStream||p))&&r(h.close)},f=function(h){return h.setHeader&&r(h.abort)},a=function(h,y,b,E){E=n(E);var g=!1;h.on("close",function(){g=!0}),s(h,{readable:y,writable:b},function(w){if(w)return E(w);g=!0,E()});var D=!1;return function(w){if(!g&&!D){if(D=!0,e(h))return h.close(p);if(f(h))return h.abort();if(r(h.destroy))return h.destroy();E(w||new Error("stream was destroyed"))}}},c=function(h){h()},o=function(h,y){return h.pipe(y)},d=function(){var h=Array.prototype.slice.call(arguments),y=r(h[h.length-1]||p)&&h.pop()||p;if(Array.isArray(h[0])&&(h=h[0]),h.length<2)throw new Error("pump requires two streams per minimum");var b,E=h.map(function(g,D){var w=D<h.length-1,v=D>0;return a(g,w,v,function(m){b||(b=m),m&&E.forEach(c),!w&&(E.forEach(c),y(b))})});return h.reduce(o)};l.exports=d}),Zo=N((t,l)=>{"use strict";B();var{PassThrough:n}=Z("stream");l.exports=s=>{s={...s};let{array:i}=s,{encoding:p}=s,u=p==="buffer",r=!1;i?r=!(p||u):p=p||"utf8",u&&(p=null);let e=new n({objectMode:r});p&&e.setEncoding(p);let f=0,a=[];return e.on("data",c=>{a.push(c),r?f=a.length:f+=c.length}),e.getBufferedValue=()=>i?a:u?Buffer.concat(a,f):a.join(""),e.getBufferedLength=()=>f,e}}),Xo=N((t,l)=>{"use strict";B();var{constants:n}=Z("buffer"),s=Jo(),i=Zo(),p=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function u(r,e){if(!r)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:f}=e,a;return await new Promise((c,o)=>{let d=h=>{h&&a.getBufferedLength()<=n.MAX_LENGTH&&(h.bufferedData=a.getBufferedValue()),o(h)};a=s(r,i(e),h=>{if(h){d(h);return}c()}),a.on("data",()=>{a.getBufferedLength()>f&&d(new p)})}),a.getBufferedValue()}l.exports=u,l.exports.default=u,l.exports.buffer=(r,e)=>u(r,{...e,encoding:"buffer"}),l.exports.array=(r,e)=>u(r,{...e,array:!0}),l.exports.MaxBufferError=p}),Qo=N((t,l)=>{"use strict";B();var n=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),s=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),i=new Set([500,502,503,504]),p={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},u={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function r(c){let o=parseInt(c,10);return isFinite(o)?o:0}function e(c){return c?i.has(c.status):!0}function f(c){let o={};if(!c)return o;let d=c.trim().split(/,/);for(let h of d){let[y,b]=h.split(/=/,2);o[y.trim()]=b===void 0?!0:b.trim().replace(/^"|"$/g,"")}return o}function a(c){let o=[];for(let d in c){let h=c[d];o.push(h===!0?d:d+"="+h)}if(o.length)return o.join(", ")}l.exports=class{constructor(c,o,{shared:d,cacheHeuristic:h,immutableMinTimeToLive:y,ignoreCargoCult:b,_fromObject:E}={}){if(E){this._fromObject(E);return}if(!o||!o.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(c),this._responseTime=this.now(),this._isShared=d!==!1,this._cacheHeuristic=h!==void 0?h:.1,this._immutableMinTtl=y!==void 0?y:24*3600*1e3,this._status="status"in o?o.status:200,this._resHeaders=o.headers,this._rescc=f(o.headers["cache-control"]),this._method="method"in c?c.method:"GET",this._url=c.url,this._host=c.headers.host,this._noAuthorization=!c.headers.authorization,this._reqHeaders=o.headers.vary?c.headers:null,this._reqcc=f(c.headers["cache-control"]),b&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":a(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),o.headers["cache-control"]==null&&/no-cache/.test(o.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&s.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||n.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(c){if(!c||!c.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(c){this._assertRequestHasHeaders(c);let o=f(c.headers["cache-control"]);return o["no-cache"]||/no-cache/.test(c.headers.pragma)||o["max-age"]&&this.age()>o["max-age"]||o["min-fresh"]&&this.timeToLive()<1e3*o["min-fresh"]||this.stale()&&!(o["max-stale"]&&!this._rescc["must-revalidate"]&&(o["max-stale"]===!0||o["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(c,!1)}_requestMatches(c,o){return(!this._url||this._url===c.url)&&this._host===c.headers.host&&(!c.method||this._method===c.method||o&&c.method==="HEAD")&&this._varyMatches(c)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(c){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let o=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let d of o)if(c.headers[d]!==this._reqHeaders[d])return!1;return!0}_copyWithoutHopByHopHeaders(c){let o={};for(let d in c)p[d]||(o[d]=c[d]);if(c.connection){let d=c.connection.trim().split(/\s*,\s*/);for(let h of d)delete o[h]}if(o.warning){let d=o.warning.split(/,/).filter(h=>!/^\s*1[0-9][0-9]/.test(h));d.length?o.warning=d.join(",").trim():delete o.warning}return o}responseHeaders(){let c=this._copyWithoutHopByHopHeaders(this._resHeaders),o=this.age();return o>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(c.warning=(c.warning?`${c.warning}, `:"")+'113 - "rfc7234 5.5.4"'),c.age=`${Math.round(o)}`,c.date=new Date(this.now()).toUTCString(),c}date(){let c=Date.parse(this._resHeaders.date);return isFinite(c)?c:this._responseTime}age(){let c=this._ageValue(),o=(this.now()-this._responseTime)/1e3;return c+o}_ageValue(){return r(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return r(this._rescc["s-maxage"])}if(this._rescc["max-age"])return r(this._rescc["max-age"]);let c=this._rescc.immutable?this._immutableMinTtl:0,o=this.date();if(this._resHeaders.expires){let d=Date.parse(this._resHeaders.expires);return Number.isNaN(d)||d<o?0:Math.max(c,(d-o)/1e3)}if(this._resHeaders["last-modified"]){let d=Date.parse(this._resHeaders["last-modified"]);if(isFinite(d)&&o>d)return Math.max(c,(o-d)/1e3*this._cacheHeuristic)}return c}timeToLive(){let c=this.maxAge()-this.age(),o=c+r(this._rescc["stale-if-error"]),d=c+r(this._rescc["stale-while-revalidate"]);return Math.max(0,c,o,d)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+r(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+r(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(c){return new this(void 0,void 0,{_fromObject:c})}_fromObject(c){if(this._responseTime)throw Error("Reinitialized");if(!c||c.v!==1)throw Error("Invalid serialization");this._responseTime=c.t,this._isShared=c.sh,this._cacheHeuristic=c.ch,this._immutableMinTtl=c.imm!==void 0?c.imm:24*3600*1e3,this._status=c.st,this._resHeaders=c.resh,this._rescc=c.rescc,this._method=c.m,this._url=c.u,this._host=c.h,this._noAuthorization=c.a,this._reqHeaders=c.reqh,this._reqcc=c.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(c){this._assertRequestHasHeaders(c);let o=this._copyWithoutHopByHopHeaders(c.headers);if(delete o["if-range"],!this._requestMatches(c,!0)||!this.storable())return delete o["if-none-match"],delete o["if-modified-since"],o;if(this._resHeaders.etag&&(o["if-none-match"]=o["if-none-match"]?`${o["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),o["accept-ranges"]||o["if-match"]||o["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete o["if-modified-since"],o["if-none-match"]){let d=o["if-none-match"].split(/,/).filter(h=>!/^\s*W\//.test(h));d.length?o["if-none-match"]=d.join(",").trim():delete o["if-none-match"]}}else this._resHeaders["last-modified"]&&!o["if-modified-since"]&&(o["if-modified-since"]=this._resHeaders["last-modified"]);return o}revalidatedPolicy(c,o){if(this._assertRequestHasHeaders(c),this._useStaleIfError()&&e(o))return{modified:!1,matches:!1,policy:this};if(!o||!o.headers)throw Error("Response headers missing");let d=!1;if(o.status!==void 0&&o.status!=304?d=!1:o.headers.etag&&!/^\s*W\//.test(o.headers.etag)?d=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===o.headers.etag:this._resHeaders.etag&&o.headers.etag?d=this._resHeaders.etag.replace(/^\s*W\//,"")===o.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?d=this._resHeaders["last-modified"]===o.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!o.headers.etag&&!o.headers["last-modified"]&&(d=!0),!d)return{policy:new this.constructor(c,o),modified:o.status!=304,matches:!1};let h={};for(let b in this._resHeaders)h[b]=b in o.headers&&!u[b]?o.headers[b]:this._resHeaders[b];let y=Object.assign({},o,{status:this._status,method:this._method,headers:h});return{policy:new this.constructor(c,y,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}}),vr=N((t,l)=>{"use strict";B(),l.exports=n=>{let s={};for(let[i,p]of Object.entries(n))s[i.toLowerCase()]=p;return s}}),tu=N((t,l)=>{"use strict";B();var n=Z("stream").Readable,s=vr(),i=class extends n{constructor(p,u,r,e){if(typeof p!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof u!="object")throw new TypeError("Argument `headers` should be an object");if(!(r instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof e!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=p,this.headers=s(u),this.body=r,this.url=e}_read(){this.push(this.body),this.push(null)}};l.exports=i}),eu=N((t,l)=>{"use strict";B();var n=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];l.exports=(s,i)=>{let p=new Set(Object.keys(s).concat(n));for(let u of p)u in i||(i[u]=typeof s[u]=="function"?s[u].bind(s):s[u])}}),ru=N((t,l)=>{"use strict";B();var n=Z("stream").PassThrough,s=eu(),i=p=>{if(!(p&&p.pipe))throw new TypeError("Parameter `response` must be a response stream.");let u=new n;return s(p,u),p.pipe(u)};l.exports=i}),nu=N(t=>{B(),t.stringify=function l(n){if(typeof n>"u")return n;if(n&&Buffer.isBuffer(n))return JSON.stringify(":base64:"+n.toString("base64"));if(n&&n.toJSON&&(n=n.toJSON()),n&&typeof n=="object"){var s="",i=Array.isArray(n);s=i?"[":"{";var p=!0;for(var u in n){var r=typeof n[u]=="function"||!i&&typeof n[u]>"u";Object.hasOwnProperty.call(n,u)&&!r&&(p||(s+=","),p=!1,i?n[u]==null?s+="null":s+=l(n[u]):n[u]!==void 0&&(s+=l(u)+":"+l(n[u])))}return s+=i?"]":"}",s}else return typeof n=="string"?JSON.stringify(/^:/.test(n)?":"+n:n):typeof n>"u"?"null":JSON.stringify(n)},t.parse=function(l){return JSON.parse(l,function(n,s){return typeof s=="string"?/^:base64:/.test(s)?Buffer.from(s.substring(8),"base64"):/^:/.test(s)?s.substring(1):s:s})}}),iu=N((t,l)=>{"use strict";B();var n=Z("events"),s=nu(),i=r=>{let e={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(r.adapter||r.uri){let f=r.adapter||/^[^:+]*/.exec(r.uri)[0];return new(Z(e[f]))(r)}return new Map},p=["sqlite","postgres","mysql","mongo","redis","tiered"],u=class extends n{constructor(r,{emitErrors:e=!0,...f}={}){if(super(),this.opts={namespace:"keyv",serialize:s.stringify,deserialize:s.parse,...typeof r=="string"?{uri:r}:r,...f},!this.opts.store){let c={...this.opts};this.opts.store=i(c)}if(this.opts.compression){let c=this.opts.compression;this.opts.serialize=c.serialize.bind(c),this.opts.deserialize=c.deserialize.bind(c)}typeof this.opts.store.on=="function"&&e&&this.opts.store.on("error",c=>this.emit("error",c)),this.opts.store.namespace=this.opts.namespace;let a=c=>async function*(){for await(let[o,d]of typeof c=="function"?c(this.opts.store.namespace):c){let h=this.opts.deserialize(d);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof h.expires=="number"&&Date.now()>h.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),h.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=a(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=a(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return p.includes(this.opts.store.opts.dialect)||p.findIndex(r=>this.opts.store.opts.url.includes(r))>=0}_getKeyPrefix(r){return`${this.opts.namespace}:${r}`}_getKeyPrefixArray(r){return r.map(e=>`${this.opts.namespace}:${e}`)}_getKeyUnprefix(r){return r.split(":").splice(1).join(":")}get(r,e){let{store:f}=this.opts,a=Array.isArray(r),c=a?this._getKeyPrefixArray(r):this._getKeyPrefix(r);if(a&&f.getMany===void 0){let o=[];for(let d of c)o.push(Promise.resolve().then(()=>f.get(d)).then(h=>typeof h=="string"?this.opts.deserialize(h):this.opts.compression?this.opts.deserialize(h):h).then(h=>{if(h!=null)return typeof h.expires=="number"&&Date.now()>h.expires?this.delete(d).then(()=>{}):e&&e.raw?h:h.value}));return Promise.allSettled(o).then(d=>{let h=[];for(let y of d)h.push(y.value);return h})}return Promise.resolve().then(()=>a?f.getMany(c):f.get(c)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null){if(a){let d=[];for(let h of o){if(typeof h=="string"&&(h=this.opts.deserialize(h)),h==null){d.push(void 0);continue}typeof h.expires=="number"&&Date.now()>h.expires?(this.delete(r).then(()=>{}),d.push(void 0)):d.push(e&&e.raw?h:h.value)}return d}return typeof o.expires=="number"&&Date.now()>o.expires?this.delete(r).then(()=>{}):e&&e.raw?o:o.value}})}set(r,e,f){let a=this._getKeyPrefix(r);typeof f>"u"&&(f=this.opts.ttl),f===0&&(f=void 0);let{store:c}=this.opts;return Promise.resolve().then(()=>{let o=typeof f=="number"?Date.now()+f:null;return typeof e=="symbol"&&this.emit("error","symbol cannot be serialized"),e={value:e,expires:o},this.opts.serialize(e)}).then(o=>c.set(a,o,f)).then(()=>!0)}delete(r){let{store:e}=this.opts;if(Array.isArray(r)){let a=this._getKeyPrefixArray(r);if(e.deleteMany===void 0){let c=[];for(let o of a)c.push(e.delete(o));return Promise.allSettled(c).then(o=>o.every(d=>d.value===!0))}return Promise.resolve().then(()=>e.deleteMany(a))}let f=this._getKeyPrefix(r);return Promise.resolve().then(()=>e.delete(f))}clear(){let{store:r}=this.opts;return Promise.resolve().then(()=>r.clear())}has(r){let e=this._getKeyPrefix(r),{store:f}=this.opts;return Promise.resolve().then(async()=>typeof f.has=="function"?f.has(e):await f.get(e)!==void 0)}disconnect(){let{store:r}=this.opts;if(typeof r.disconnect=="function")return r.disconnect()}};l.exports=u}),su=N((t,l)=>{"use strict";B();var n=Z("events"),s=Z("url"),i=Vo(),p=Xo(),u=Qo(),r=tu(),e=vr(),f=ru(),a=iu(),c=class{constructor(h,y){if(typeof h!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new a({uri:typeof y=="string"&&y,store:typeof y!="string"&&y,namespace:"cacheable-request"}),this.createCacheableRequest(h)}createCacheableRequest(h){return(y,b)=>{let E;if(typeof y=="string")E=d(s.parse(y)),y={};else if(y instanceof s.URL)E=d(s.parse(y.toString())),y={};else{let[S,...A]=(y.path||"").split("?"),x=A.length>0?`?${A.join("?")}`:"";E=d({...y,pathname:S,search:x})}y={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...y,...o(E)},y.headers=e(y.headers);let g=new n,D=i(s.format(E),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),w=`${y.method}:${D}`,v=!1,m=!1,_=S=>{m=!0;let A=!1,x,L=new Promise(F=>{x=()=>{A||(A=!0,F())}}),T=F=>{if(v&&!S.forceRefresh){F.status=F.statusCode;let I=u.fromObject(v.cachePolicy).revalidatedPolicy(S,F);if(!I.modified){let $=I.policy.responseHeaders();F=new r(v.statusCode,$,v.body,v.url),F.cachePolicy=I.policy,F.fromCache=!0}}F.fromCache||(F.cachePolicy=new u(S,F,S),F.fromCache=!1);let O;S.cache&&F.cachePolicy.storable()?(O=f(F),(async()=>{try{let I=p.buffer(F);if(await Promise.race([L,new Promise(W=>F.once("end",W))]),A)return;let $=await I,R={cachePolicy:F.cachePolicy.toObject(),url:F.url,statusCode:F.fromCache?v.statusCode:F.statusCode,body:$},G=S.strictTtl?F.cachePolicy.timeToLive():void 0;S.maxTtl&&(G=G?Math.min(G,S.maxTtl):S.maxTtl),await this.cache.set(w,R,G)}catch(I){g.emit("error",new c.CacheError(I))}})()):S.cache&&v&&(async()=>{try{await this.cache.delete(w)}catch(I){g.emit("error",new c.CacheError(I))}})(),g.emit("response",O||F),typeof b=="function"&&b(O||F)};try{let F=h(S,T);F.once("error",x),F.once("abort",x),g.emit("request",F)}catch(F){g.emit("error",new c.RequestError(F))}};return(async()=>{let S=async x=>{await Promise.resolve();let L=x.cache?await this.cache.get(w):void 0;if(typeof L>"u")return _(x);let T=u.fromObject(L.cachePolicy);if(T.satisfiesWithoutRevalidation(x)&&!x.forceRefresh){let F=T.responseHeaders(),O=new r(L.statusCode,F,L.body,L.url);O.cachePolicy=T,O.fromCache=!0,g.emit("response",O),typeof b=="function"&&b(O)}else v=L,x.headers=T.revalidationHeaders(x),_(x)},A=x=>g.emit("error",new c.CacheError(x));this.cache.once("error",A),g.on("response",()=>this.cache.removeListener("error",A));try{await S(y)}catch(x){y.automaticFailover&&!m&&_(y),g.emit("error",new c.CacheError(x))}})(),g}}};function o(h){let y={...h};return y.path=`${h.pathname||"/"}${h.search||""}`,delete y.pathname,delete y.search,y}function d(h){return{protocol:h.protocol,auth:h.auth,hostname:h.hostname||h.host||"localhost",port:h.port,pathname:h.pathname,search:h.search}}c.RequestError=class extends Error{constructor(h){super(h.message),this.name="RequestError",Object.assign(this,h)}},c.CacheError=class extends Error{constructor(h){super(h.message),this.name="CacheError",Object.assign(this,h)}},l.exports=c}),ou=N((t,l)=>{"use strict";B();var n=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];l.exports=(s,i)=>{if(i._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let p=new Set(Object.keys(s).concat(n)),u={};for(let r of p)r in i||(u[r]={get(){let e=s[r];return typeof e=="function"?e.bind(s):e},set(e){s[r]=e},enumerable:!0,configurable:!1});return Object.defineProperties(i,u),s.once("aborted",()=>{i.destroy(),i.emit("aborted")}),s.once("close",()=>{s.complete&&i.readable?i.once("end",()=>{i.emit("close")}):i.emit("close")}),i}}),uu=N((t,l)=>{"use strict";B();var{Transform:n,PassThrough:s}=Z("stream"),i=Z("zlib"),p=ou();l.exports=u=>{let r=(u.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(r))return u;let e=r==="br";if(e&&typeof i.createBrotliDecompress!="function")return u.destroy(new Error("Brotli is not supported on Node.js < 12")),u;let f=!0,a=new n({transform(d,h,y){f=!1,y(null,d)},flush(d){d()}}),c=new s({autoDestroy:!1,destroy(d,h){u.destroy(),h(d)}}),o=e?i.createBrotliDecompress():i.createUnzip();return o.once("error",d=>{if(f&&!u.readable){c.end();return}c.destroy(d)}),p(u,c),u.pipe(a).pipe(o).pipe(c),c}}),Mn=N((t,l)=>{"use strict";B();var n=class{constructor(s={}){if(!(s.maxSize&&s.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=s.maxSize,this.onEviction=s.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(s,i){if(this.cache.set(s,i),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[p,u]of this.oldCache.entries())this.onEviction(p,u);this.oldCache=this.cache,this.cache=new Map}}get(s){if(this.cache.has(s))return this.cache.get(s);if(this.oldCache.has(s)){let i=this.oldCache.get(s);return this.oldCache.delete(s),this._set(s,i),i}}set(s,i){return this.cache.has(s)?this.cache.set(s,i):this._set(s,i),this}has(s){return this.cache.has(s)||this.oldCache.has(s)}peek(s){if(this.cache.has(s))return this.cache.get(s);if(this.oldCache.has(s))return this.oldCache.get(s)}delete(s){let i=this.cache.delete(s);return i&&this._size--,this.oldCache.delete(s)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[s]of this)yield s}*values(){for(let[,s]of this)yield s}*[Symbol.iterator](){for(let s of this.cache)yield s;for(let s of this.oldCache){let[i]=s;this.cache.has(i)||(yield s)}}get size(){let s=0;for(let i of this.oldCache.keys())this.cache.has(i)||s++;return Math.min(this._size+s,this.maxSize)}};l.exports=n}),$n=N((t,l)=>{"use strict";B();var n=Z("events"),s=Z("tls"),i=Z("http2"),p=Mn(),u=Symbol("currentStreamsCount"),r=Symbol("request"),e=Symbol("cachedOriginSet"),f=Symbol("gracefullyClosing"),a=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],c=(g,D,w)=>{let v=0,m=g.length;for(;v<m;){let _=v+m>>>1;w(g[_],D)?v=_+1:m=_}return v},o=(g,D)=>g.remoteSettings.maxConcurrentStreams>D.remoteSettings.maxConcurrentStreams,d=(g,D)=>{for(let w of g)w[e].length<D[e].length&&w[e].every(v=>D[e].includes(v))&&w[u]+D[u]<=D.remoteSettings.maxConcurrentStreams&&b(w)},h=(g,D)=>{for(let w of g)D[e].length<w[e].length&&D[e].every(v=>w[e].includes(v))&&D[u]+w[u]<=w.remoteSettings.maxConcurrentStreams&&b(D)},y=({agent:g,isFree:D})=>{let w={};for(let v in g.sessions){let m=g.sessions[v].filter(_=>{let S=_[E.kCurrentStreamsCount]<_.remoteSettings.maxConcurrentStreams;return D?S:!S});m.length!==0&&(w[v]=m)}return w},b=g=>{g[f]=!0,g[u]===0&&g.close()},E=class extends n{constructor({timeout:g=6e4,maxSessions:D=1/0,maxFreeSessions:w=10,maxCachedTlsSessions:v=100}={}){super(),this.sessions={},this.queue={},this.timeout=g,this.maxSessions=D,this.maxFreeSessions=w,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new p({maxSize:v})}static normalizeOrigin(g,D){return typeof g=="string"&&(g=new URL(g)),D&&g.hostname!==D&&(g.hostname=D),g.origin}normalizeOptions(g){let D="";if(g)for(let w of a)g[w]&&(D+=`:${g[w]}`);return D}_tryToCreateNewSession(g,D){if(!(g in this.queue)||!(D in this.queue[g]))return;let w=this.queue[g][D];this._sessionsCount<this.maxSessions&&!w.completed&&(w.completed=!0,w())}getSession(g,D,w){return new Promise((v,m)=>{Array.isArray(w)?(w=[...w],v()):w=[{resolve:v,reject:m}];let _=this.normalizeOptions(D),S=E.normalizeOrigin(g,D&&D.servername);if(S===void 0){for(let{reject:L}of w)L(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(_ in this.sessions){let L=this.sessions[_],T=-1,F=-1,O;for(let I of L){let $=I.remoteSettings.maxConcurrentStreams;if($<T)break;if(I[e].includes(S)){let R=I[u];if(R>=$||I[f]||I.destroyed)continue;O||(T=$),R>F&&(O=I,F=R)}}if(O){if(w.length!==1){for(let{reject:I}of w){let $=new Error(`Expected the length of listeners to be 1, got ${w.length}.
|
18
|
+
Please report this to https://github.com/szmarczak/http2-wrapper/`);I($)}return}w[0].resolve(O);return}}if(_ in this.queue){if(S in this.queue[_]){this.queue[_][S].listeners.push(...w),this._tryToCreateNewSession(_,S);return}}else this.queue[_]={};let A=()=>{_ in this.queue&&this.queue[_][S]===x&&(delete this.queue[_][S],Object.keys(this.queue[_]).length===0&&delete this.queue[_])},x=()=>{let L=`${S}:${_}`,T=!1;try{let F=i.connect(g,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(L),...D});F[u]=0,F[f]=!1;let O=()=>F[u]<F.remoteSettings.maxConcurrentStreams,I=!0;F.socket.once("session",R=>{this.tlsSessionCache.set(L,R)}),F.once("error",R=>{for(let{reject:G}of w)G(R);this.tlsSessionCache.delete(L)}),F.setTimeout(this.timeout,()=>{F.destroy()}),F.once("close",()=>{if(T){I&&this._freeSessionsCount--,this._sessionsCount--;let R=this.sessions[_];R.splice(R.indexOf(F),1),R.length===0&&delete this.sessions[_]}else{let R=new Error("Session closed without receiving a SETTINGS frame");R.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:G}of w)G(R);A()}this._tryToCreateNewSession(_,S)});let $=()=>{if(!(!(_ in this.queue)||!O())){for(let R of F[e])if(R in this.queue[_]){let{listeners:G}=this.queue[_][R];for(;G.length!==0&&O();)G.shift().resolve(F);let W=this.queue[_];if(W[R].listeners.length===0&&(delete W[R],Object.keys(W).length===0)){delete this.queue[_];break}if(!O())break}}};F.on("origin",()=>{F[e]=F.originSet,O()&&($(),d(this.sessions[_],F))}),F.once("remoteSettings",()=>{if(F.ref(),F.unref(),this._sessionsCount++,x.destroyed){let R=new Error("Agent has been destroyed");for(let G of w)G.reject(R);F.destroy();return}F[e]=F.originSet;{let R=this.sessions;if(_ in R){let G=R[_];G.splice(c(G,F,o),0,F)}else R[_]=[F]}this._freeSessionsCount+=1,T=!0,this.emit("session",F),$(),A(),F[u]===0&&this._freeSessionsCount>this.maxFreeSessions&&F.close(),w.length!==0&&(this.getSession(S,D,w),w.length=0),F.on("remoteSettings",()=>{$(),d(this.sessions[_],F)})}),F[r]=F.request,F.request=(R,G)=>{if(F[f])throw new Error("The session is gracefully closing. No new streams are allowed.");let W=F[r](R,G);return F.ref(),++F[u],F[u]===F.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,W.once("close",()=>{if(I=O(),--F[u],!F.destroyed&&!F.closed&&(h(this.sessions[_],F),O()&&!F.closed)){I||(this._freeSessionsCount++,I=!0);let Q=F[u]===0;Q&&F.unref(),Q&&(this._freeSessionsCount>this.maxFreeSessions||F[f])?F.close():(d(this.sessions[_],F),$())}}),W}}catch(F){for(let O of w)O.reject(F);A()}};x.listeners=w,x.completed=!1,x.destroyed=!1,this.queue[_][S]=x,this._tryToCreateNewSession(_,S)})}request(g,D,w,v){return new Promise((m,_)=>{this.getSession(g,D,[{reject:_,resolve:S=>{try{m(S.request(w,v))}catch(A){_(A)}}}])})}createConnection(g,D){return E.connect(g,D)}static connect(g,D){D.ALPNProtocols=["h2"];let w=g.port||443,v=g.hostname||g.host;return typeof D.servername>"u"&&(D.servername=v),s.connect(w,v,D)}closeFreeSessions(){for(let g of Object.values(this.sessions))for(let D of g)D[u]===0&&D.close()}destroy(g){for(let D of Object.values(this.sessions))for(let w of D)w.destroy(g);for(let D of Object.values(this.queue))for(let w of Object.values(D))w.destroyed=!0;this.queue={}}get freeSessions(){return y({agent:this,isFree:!0})}get busySessions(){return y({agent:this,isFree:!1})}};E.kCurrentStreamsCount=u,E.kGracefullyClosing=f,l.exports={Agent:E,globalAgent:new E}}),Hn=N((t,l)=>{"use strict";B();var{Readable:n}=Z("stream"),s=class extends n{constructor(i,p){super({highWaterMark:p,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=i,this.connection=i,this._dumped=!1}_destroy(i){this.req._request.destroy(i)}setTimeout(i,p){return this.req.setTimeout(i,p),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};l.exports=s}),Un=N((t,l)=>{"use strict";B(),l.exports=n=>{let s={protocol:n.protocol,hostname:typeof n.hostname=="string"&&n.hostname.startsWith("[")?n.hostname.slice(1,-1):n.hostname,host:n.host,hash:n.hash,search:n.search,pathname:n.pathname,href:n.href,path:`${n.pathname||""}${n.search||""}`};return typeof n.port=="string"&&n.port.length!==0&&(s.port=Number(n.port)),(n.username||n.password)&&(s.auth=`${n.username||""}:${n.password||""}`),s}}),au=N((t,l)=>{"use strict";B(),l.exports=(n,s,i)=>{for(let p of i)n.on(p,(...u)=>s.emit(p,...u))}}),lu=N((t,l)=>{"use strict";B(),l.exports=n=>{switch(n){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}}),cu=N((t,l)=>{"use strict";B();var n=(s,i,p)=>{l.exports[i]=class extends s{constructor(...u){super(typeof p=="string"?p:p(u)),this.name=`${super.name} [${i}]`,this.code=i}}};n(TypeError,"ERR_INVALID_ARG_TYPE",s=>{let i=s[0].includes(".")?"property":"argument",p=s[1],u=Array.isArray(p);return u&&(p=`${p.slice(0,-1).join(", ")} or ${p.slice(-1)}`),`The "${s[0]}" ${i} must be ${u?"one of":"of"} type ${p}. Received ${typeof s[2]}`}),n(TypeError,"ERR_INVALID_PROTOCOL",s=>`Protocol "${s[0]}" not supported. Expected "${s[1]}"`),n(Error,"ERR_HTTP_HEADERS_SENT",s=>`Cannot ${s[0]} headers after they are sent to the client`),n(TypeError,"ERR_INVALID_HTTP_TOKEN",s=>`${s[0]} must be a valid HTTP token [${s[1]}]`),n(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",s=>`Invalid value "${s[0]} for header "${s[1]}"`),n(TypeError,"ERR_INVALID_CHAR",s=>`Invalid character in ${s[0]} [${s[1]}]`)}),Gn=N((t,l)=>{"use strict";B();var n=Z("http2"),{Writable:s}=Z("stream"),{Agent:i,globalAgent:p}=$n(),u=Hn(),r=Un(),e=au(),f=lu(),{ERR_INVALID_ARG_TYPE:a,ERR_INVALID_PROTOCOL:c,ERR_HTTP_HEADERS_SENT:o,ERR_INVALID_HTTP_TOKEN:d,ERR_HTTP_INVALID_HEADER_VALUE:h,ERR_INVALID_CHAR:y}=cu(),{HTTP2_HEADER_STATUS:b,HTTP2_HEADER_METHOD:E,HTTP2_HEADER_PATH:g,HTTP2_METHOD_CONNECT:D}=n.constants,w=Symbol("headers"),v=Symbol("origin"),m=Symbol("session"),_=Symbol("options"),S=Symbol("flushedHeaders"),A=Symbol("jobs"),x=/^[\^`\-\w!#$%&*+.|~]+$/,L=/[^\t\u0020-\u007E\u0080-\u00FF]/,T=class extends s{constructor(F,O,I){super({autoDestroy:!1});let $=typeof F=="string"||F instanceof URL;if($&&(F=r(F instanceof URL?F:new URL(F))),typeof O=="function"||O===void 0?(I=O,O=$?F:{...F}):O={...F,...O},O.h2session)this[m]=O.h2session;else if(O.agent===!1)this.agent=new i({maxFreeSessions:0});else if(typeof O.agent>"u"||O.agent===null)typeof O.createConnection=="function"?(this.agent=new i({maxFreeSessions:0}),this.agent.createConnection=O.createConnection):this.agent=p;else if(typeof O.agent.request=="function")this.agent=O.agent;else throw new a("options.agent",["Agent-like Object","undefined","false"],O.agent);if(O.protocol&&O.protocol!=="https:")throw new c(O.protocol,"https:");let R=O.port||O.defaultPort||this.agent&&this.agent.defaultPort||443,G=O.hostname||O.host||"localhost";delete O.hostname,delete O.host,delete O.port;let{timeout:W}=O;if(O.timeout=void 0,this[w]=Object.create(null),this[A]=[],this.socket=null,this.connection=null,this.method=O.method||"GET",this.path=O.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,O.headers)for(let[Q,P]of Object.entries(O.headers))this.setHeader(Q,P);O.auth&&!("authorization"in this[w])&&(this[w].authorization="Basic "+Buffer.from(O.auth).toString("base64")),O.session=O.tlsSession,O.path=O.socketPath,this[_]=O,R===443?(this[v]=`https://${G}`,":authority"in this[w]||(this[w][":authority"]=G)):(this[v]=`https://${G}:${R}`,":authority"in this[w]||(this[w][":authority"]=`${G}:${R}`)),W&&this.setTimeout(W),I&&this.once("response",I),this[S]=!1}get method(){return this[w][E]}set method(F){F&&(this[w][E]=F.toUpperCase())}get path(){return this[w][g]}set path(F){F&&(this[w][g]=F)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(F,O,I){if(this._mustNotHaveABody){I(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let $=()=>this._request.write(F,O,I);this._request?$():this[A].push($)}_final(F){if(this.destroyed)return;this.flushHeaders();let O=()=>{if(this._mustNotHaveABody){F();return}this._request.end(F)};this._request?O():this[A].push(O)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(F,O){this.res&&this.res._dump(),this._request&&this._request.destroy(),O(F)}async flushHeaders(){if(this[S]||this.destroyed)return;this[S]=!0;let F=this.method===D,O=I=>{if(this._request=I,this.destroyed){I.destroy();return}F||e(I,this,["timeout","continue","close","error"]);let $=G=>(...W)=>{!this.writable&&!this.destroyed?G(...W):this.once("finish",()=>{G(...W)})};I.once("response",$((G,W,Q)=>{let P=new u(this.socket,I.readableHighWaterMark);this.res=P,P.req=this,P.statusCode=G[b],P.headers=G,P.rawHeaders=Q,P.once("end",()=>{this.aborted?(P.aborted=!0,P.emit("aborted")):(P.complete=!0,P.socket=null,P.connection=null)}),F?(P.upgrade=!0,this.emit("connect",P,I,Buffer.alloc(0))?this.emit("close"):I.destroy()):(I.on("data",j=>{!P._dumped&&!P.push(j)&&I.pause()}),I.once("end",()=>{P.push(null)}),this.emit("response",P)||P._dump())})),I.once("headers",$(G=>this.emit("information",{statusCode:G[b]}))),I.once("trailers",$((G,W,Q)=>{let{res:P}=this;P.trailers=G,P.rawTrailers=Q}));let{socket:R}=I.session;this.socket=R,this.connection=R;for(let G of this[A])G();this.emit("socket",this.socket)};if(this[m])try{O(this[m].request(this[w]))}catch(I){this.emit("error",I)}else{this.reusedSocket=!0;try{O(await this.agent.request(this[v],this[_],this[w]))}catch(I){this.emit("error",I)}}}getHeader(F){if(typeof F!="string")throw new a("name","string",F);return this[w][F.toLowerCase()]}get headersSent(){return this[S]}removeHeader(F){if(typeof F!="string")throw new a("name","string",F);if(this.headersSent)throw new o("remove");delete this[w][F.toLowerCase()]}setHeader(F,O){if(this.headersSent)throw new o("set");if(typeof F!="string"||!x.test(F)&&!f(F))throw new d("Header name",F);if(typeof O>"u")throw new h(O,F);if(L.test(O))throw new y("header content",F);this[w][F.toLowerCase()]=O}setNoDelay(){}setSocketKeepAlive(){}setTimeout(F,O){let I=()=>this._request.setTimeout(F,O);return this._request?I():this[A].push(I),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(F){}};l.exports=T}),hu=N((t,l)=>{"use strict";B();var n=Z("tls");l.exports=(s={},i=n.connect)=>new Promise((p,u)=>{let r=!1,e,f=async()=>{await c,e.off("timeout",a),e.off("error",u),s.resolveSocket?(p({alpnProtocol:e.alpnProtocol,socket:e,timeout:r}),r&&(await Promise.resolve(),e.emit("timeout"))):(e.destroy(),p({alpnProtocol:e.alpnProtocol,timeout:r}))},a=async()=>{r=!0,f()},c=(async()=>{try{e=await i(s,f),e.on("error",u),e.once("timeout",a)}catch(o){u(o)}})()})}),fu=N((t,l)=>{"use strict";B();var n=Z("net");l.exports=s=>{let i=s.host,p=s.headers&&s.headers.host;return p&&(p.startsWith("[")?p.indexOf("]")===-1?i=p:i=p.slice(1,-1):i=p.split(":",1)[0]),n.isIP(i)?"":i}}),pu=N((t,l)=>{"use strict";B();var n=Z("http"),s=Z("https"),i=hu(),p=Mn(),u=Gn(),r=fu(),e=Un(),f=new p({maxSize:100}),a=new Map,c=(d,h,y)=>{h._httpMessage={shouldKeepAlive:!0};let b=()=>{d.emit("free",h,y)};h.on("free",b);let E=()=>{d.removeSocket(h,y)};h.on("close",E);let g=()=>{d.removeSocket(h,y),h.off("close",E),h.off("free",b),h.off("agentRemove",g)};h.on("agentRemove",g),d.emit("free",h,y)},o=async d=>{let h=`${d.host}:${d.port}:${d.ALPNProtocols.sort()}`;if(!f.has(h)){if(a.has(h))return(await a.get(h)).alpnProtocol;let{path:y,agent:b}=d;d.path=d.socketPath;let E=i(d);a.set(h,E);try{let{socket:g,alpnProtocol:D}=await E;if(f.set(h,D),d.path=y,D==="h2")g.destroy();else{let{globalAgent:w}=s,v=s.Agent.prototype.createConnection;b?b.createConnection===v?c(b,g,d):g.destroy():w.createConnection===v?c(w,g,d):g.destroy()}return a.delete(h),D}catch(g){throw a.delete(h),g}}return f.get(h)};l.exports=async(d,h,y)=>{if((typeof d=="string"||d instanceof URL)&&(d=e(new URL(d))),typeof h=="function"&&(y=h,h=void 0),h={ALPNProtocols:["h2","http/1.1"],...d,...h,resolveSocket:!0},!Array.isArray(h.ALPNProtocols)||h.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");h.protocol=h.protocol||"https:";let b=h.protocol==="https:";h.host=h.hostname||h.host||"localhost",h.session=h.tlsSession,h.servername=h.servername||r(h),h.port=h.port||(b?443:80),h._defaultAgent=b?s.globalAgent:n.globalAgent;let E=h.agent;if(E){if(E.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");h.agent=E[b?"https":"http"]}return b&&await o(h)==="h2"?(E&&(h.agent=E.http2),new u(h,y)):n.request(h,y)},l.exports.protocolCache=f}),du=N((t,l)=>{"use strict";B();var n=Z("http2"),s=$n(),i=Gn(),p=Hn(),u=pu(),r=(f,a,c)=>new i(f,a,c),e=(f,a,c)=>{let o=new i(f,a,c);return o.end(),o};l.exports={...n,ClientRequest:i,IncomingMessage:p,...s,request:r,get:e,auto:u}}),qn=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=se();t.default=n=>l.default.nodeStream(n)&&l.default.function_(n.getBoundary)}),mu=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Z("fs"),n=Z("util"),s=se(),i=qn(),p=n.promisify(l.stat);t.default=async(u,r)=>{if(r&&"content-length"in r)return Number(r["content-length"]);if(!u)return 0;if(s.default.string(u))return Buffer.byteLength(u);if(s.default.buffer(u))return u.length;if(i.default(u))return n.promisify(u.getLength.bind(u))();if(u instanceof l.ReadStream){let{size:e}=await p(u.path);return e===0?void 0:e}}}),zn=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});function l(n,s,i){let p={};for(let u of i)p[u]=(...r)=>{s.emit(u,...r)},n.on(u,p[u]);return()=>{for(let u of i)n.off(u,p[u])}}t.default=l}),yu=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.default=()=>{let l=[];return{once(n,s,i){n.once(s,i),l.push({origin:n,event:s,fn:i})},unhandleAll(){for(let n of l){let{origin:s,event:i,fn:p}=n;s.removeListener(i,p)}l.length=0}}}}),gu=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.TimeoutError=void 0;var l=Z("net"),n=yu(),s=Symbol("reentry"),i=()=>{},p=class extends Error{constructor(u,r){super(`Timeout awaiting '${r}' for ${u}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};t.TimeoutError=p,t.default=(u,r,e)=>{if(s in u)return i;u[s]=!0;let f=[],{once:a,unhandleAll:c}=n.default(),o=(E,g,D)=>{var w;let v=setTimeout(g,E,E,D);(w=v.unref)===null||w===void 0||w.call(v);let m=()=>{clearTimeout(v)};return f.push(m),m},{host:d,hostname:h}=e,y=(E,g)=>{u.destroy(new p(E,g))},b=()=>{for(let E of f)E();c()};if(u.once("error",E=>{if(b(),u.listenerCount("error")===0)throw E}),u.once("close",b),a(u,"response",E=>{a(E,"end",b)}),typeof r.request<"u"&&o(r.request,y,"request"),typeof r.socket<"u"){let E=()=>{y(r.socket,"socket")};u.setTimeout(r.socket,E),f.push(()=>{u.removeListener("timeout",E)})}return a(u,"socket",E=>{var g;let{socketPath:D}=u;if(E.connecting){let w=!!(D!=null?D:l.isIP((g=h!=null?h:d)!==null&&g!==void 0?g:"")!==0);if(typeof r.lookup<"u"&&!w&&typeof E.address().address>"u"){let v=o(r.lookup,y,"lookup");a(E,"lookup",v)}if(typeof r.connect<"u"){let v=()=>o(r.connect,y,"connect");w?a(E,"connect",v()):a(E,"lookup",m=>{m===null&&a(E,"connect",v())})}typeof r.secureConnect<"u"&&e.protocol==="https:"&&a(E,"connect",()=>{let v=o(r.secureConnect,y,"secureConnect");a(E,"secureConnect",v)})}if(typeof r.send<"u"){let w=()=>o(r.send,y,"send");E.connecting?a(E,"connect",()=>{a(u,"upload-complete",w())}):a(u,"upload-complete",w())}}),typeof r.response<"u"&&a(u,"upload-complete",()=>{let E=o(r.response,y,"response");a(u,"response",E)}),b}}),bu=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=se();t.default=n=>{n=n;let s={protocol:n.protocol,hostname:l.default.string(n.hostname)&&n.hostname.startsWith("[")?n.hostname.slice(1,-1):n.hostname,host:n.host,hash:n.hash,search:n.search,pathname:n.pathname,href:n.href,path:`${n.pathname||""}${n.search||""}`};return l.default.string(n.port)&&n.port.length>0&&(s.port=Number(n.port)),(n.username||n.password)&&(s.auth=`${n.username||""}:${n.password||""}`),s}}),vu=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Z("url"),n=["protocol","host","hostname","port","pathname","search"];t.default=(s,i)=>{var p,u;if(i.path){if(i.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(i.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(i.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(i.search&&i.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!s){if(!i.protocol)throw new TypeError("No URL protocol specified");s=`${i.protocol}//${(u=(p=i.hostname)!==null&&p!==void 0?p:i.host)!==null&&u!==void 0?u:""}`}let r=new l.URL(s);if(i.path){let e=i.path.indexOf("?");e===-1?i.pathname=i.path:(i.pathname=i.path.slice(0,e),i.search=i.path.slice(e+1)),delete i.path}for(let e of n)i[e]&&(r[e]=i[e].toString());return r}}),Eu=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(n,s){typeof n=="object"?this.weakMap.set(n,s):this.map.set(n,s)}get(n){return typeof n=="object"?this.weakMap.get(n):this.map.get(n)}has(n){return typeof n=="object"?this.weakMap.has(n):this.map.has(n)}};t.default=l}),Wn=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=async n=>{let s=[],i=0;for await(let p of n)s.push(p),i+=Buffer.byteLength(p);return Buffer.isBuffer(s[0])?Buffer.concat(s,i):Buffer.from(s.join(""))};t.default=l}),_u=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.dnsLookupIpVersionToFamily=t.isDnsLookupIpVersion=void 0;var l={auto:0,ipv4:4,ipv6:6};t.isDnsLookupIpVersion=n=>n in l,t.dnsLookupIpVersionToFamily=n=>{if(t.isDnsLookupIpVersion(n))return l[n];throw new Error("Invalid DNS lookup IP version")}}),Vn=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.isResponseOk=void 0,t.isResponseOk=l=>{let{statusCode:n}=l,s=l.request.options.followRedirect?299:399;return n>=200&&n<=s||n===304}}),wu=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=new Set;t.default=n=>{l.has(n)||(l.add(n),process.emitWarning(`Got: ${n}`,{type:"DeprecationWarning"}))}}),Du=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=se(),n=(s,i)=>{if(l.default.null_(s.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");l.assert.any([l.default.string,l.default.undefined],s.encoding),l.assert.any([l.default.boolean,l.default.undefined],s.resolveBodyOnly),l.assert.any([l.default.boolean,l.default.undefined],s.methodRewriting),l.assert.any([l.default.boolean,l.default.undefined],s.isStream),l.assert.any([l.default.string,l.default.undefined],s.responseType),s.responseType===void 0&&(s.responseType="text");let{retry:p}=s;if(i?s.retry={...i.retry}:s.retry={calculateDelay:u=>u.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},l.default.object(p)?(s.retry={...s.retry,...p},s.retry.methods=[...new Set(s.retry.methods.map(u=>u.toUpperCase()))],s.retry.statusCodes=[...new Set(s.retry.statusCodes)],s.retry.errorCodes=[...new Set(s.retry.errorCodes)]):l.default.number(p)&&(s.retry.limit=p),l.default.undefined(s.retry.maxRetryAfter)&&(s.retry.maxRetryAfter=Math.min(...[s.timeout.request,s.timeout.connect].filter(l.default.number))),l.default.object(s.pagination)){i&&(s.pagination={...i.pagination,...s.pagination});let{pagination:u}=s;if(!l.default.function_(u.transform))throw new Error("`options.pagination.transform` must be implemented");if(!l.default.function_(u.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!l.default.function_(u.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!l.default.function_(u.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return s.responseType==="json"&&s.headers.accept===void 0&&(s.headers.accept="application/json"),s};t.default=n}),Su=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.retryAfterStatusCodes=void 0,t.retryAfterStatusCodes=new Set([413,429,503]);var l=({attemptCount:n,retryOptions:s,error:i,retryAfter:p})=>{if(n>s.limit)return 0;let u=s.methods.includes(i.options.method),r=s.errorCodes.includes(i.code),e=i.response&&s.statusCodes.includes(i.response.statusCode);if(!u||!r&&!e)return 0;if(i.response){if(p)return s.maxRetryAfter===void 0||p>s.maxRetryAfter?0:p;if(i.response.statusCode===413)return 0}let f=Math.random()*100;return 2**(n-1)*1e3+f};t.default=l}),Ze=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedProtocolError=t.ReadError=t.TimeoutError=t.UploadError=t.CacheError=t.HTTPError=t.MaxRedirectsError=t.RequestError=t.setNonEnumerableProperties=t.knownHookEvents=t.withoutBody=t.kIsNormalizedAlready=void 0;var l=Z("util"),n=Z("stream"),s=Z("fs"),i=Z("url"),p=Z("http"),u=Z("http"),r=Z("https"),e=zo(),f=Wo(),a=su(),c=uu(),o=du(),d=vr(),h=se(),y=mu(),b=qn(),E=zn(),g=gu(),D=bu(),w=vu(),v=Eu(),m=Wn(),_=_u(),S=Vn(),A=wu(),x=Du(),L=Su(),T,F=Symbol("request"),O=Symbol("response"),I=Symbol("responseSize"),$=Symbol("downloadedSize"),R=Symbol("bodySize"),G=Symbol("uploadedSize"),W=Symbol("serverResponsesPiped"),Q=Symbol("unproxyEvents"),P=Symbol("isFromCache"),j=Symbol("cancelTimeouts"),k=Symbol("startedReading"),J=Symbol("stopReading"),q=Symbol("triggerRead"),tt=Symbol("body"),M=Symbol("jobs"),Y=Symbol("originalResponse"),et=Symbol("retryTimeout");t.kIsNormalizedAlready=Symbol("isNormalizedAlready");var ot=h.default.string(process.versions.brotli);t.withoutBody=new Set(["GET","HEAD"]),t.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function ct(K){for(let U in K){let ut=K[U];if(!h.default.string(ut)&&!h.default.number(ut)&&!h.default.boolean(ut)&&!h.default.null_(ut)&&!h.default.undefined(ut))throw new TypeError(`The \`searchParams\` value '${String(ut)}' must be a string, number, boolean or null`)}}function gt(K){return h.default.object(K)&&!("statusCode"in K)}var mt=new v.default,H=async K=>new Promise((U,ut)=>{let bt=pt=>{ut(pt)};K.pending||U(),K.once("error",bt),K.once("ready",()=>{K.off("error",bt),U()})}),V=new Set([300,301,302,303,304,307,308]),C=["context","body","json","form"];t.setNonEnumerableProperties=(K,U)=>{let ut={};for(let bt of K)if(bt)for(let pt of C)pt in bt&&(ut[pt]={writable:!0,configurable:!0,enumerable:!1,value:bt[pt]});Object.defineProperties(U,ut)};var z=class extends Error{constructor(K,U,ut){var bt,pt;if(super(K),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(bt=U.code)!==null&&bt!==void 0?bt:"ERR_GOT_REQUEST_ERROR",ut instanceof xt?(Object.defineProperty(this,"request",{enumerable:!1,value:ut}),Object.defineProperty(this,"response",{enumerable:!1,value:ut[O]}),Object.defineProperty(this,"options",{enumerable:!1,value:ut.options})):Object.defineProperty(this,"options",{enumerable:!1,value:ut}),this.timings=(pt=this.request)===null||pt===void 0?void 0:pt.timings,h.default.string(U.stack)&&h.default.string(this.stack)){let at=this.stack.indexOf(this.message)+this.message.length,dt=this.stack.slice(at).split(`
|
19
|
+
`).reverse(),Et=U.stack.slice(U.stack.indexOf(U.message)+U.message.length).split(`
|
20
20
|
`).reverse();for(;Et.length!==0&&Et[0]===dt[0];)dt.shift();this.stack=`${this.stack.slice(0,at)}${dt.reverse().join(`
|
21
21
|
`)}${Et.reverse().join(`
|
22
|
-
`)}`}}};t.RequestError=z;var X=class extends z{constructor(K){super(`Redirected ${K.options.maxRedirects} times. Aborting.`,{},K),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};t.MaxRedirectsError=X;var rt=class extends z{constructor(K){super(`Response code ${K.statusCode} (${K.statusMessage})`,{},K.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};t.HTTPError=rt;var ht=class extends z{constructor(K,H){super(K.message,K,H),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};t.CacheError=ht;var it=class extends z{constructor(K,H){super(K.message,K,H),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};t.UploadError=it;var lt=class extends z{constructor(K,H,ut){super(K.message,K,ut),this.name="TimeoutError",this.event=K.event,this.timings=H}};t.TimeoutError=lt;var nt=class extends z{constructor(K,H){super(K.message,K,H),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};t.ReadError=nt;var ft=class extends z{constructor(K){super(`Unsupported protocol "${K.url.protocol}"`,{},K),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};t.UnsupportedProtocolError=ft;var vt=["socket","connect","continue","information","upgrade","timeout"],xt=class extends n.Duplex{constructor(K,H={},ut){super({autoDestroy:!1,highWaterMark:0}),this[U]=0,this[q]=0,this.requestInitialized=!1,this[V]=new Set,this.redirects=[],this[J]=!1,this[G]=!1,this[j]=[],this.retryCount=0,this._progressCallbacks=[];let bt=()=>this._unlockWrite(),pt=()=>this._lockWrite();this.on("pipe",St=>{St.prependListener("data",bt),St.on("data",pt),St.prependListener("end",bt),St.on("end",pt)}),this.on("unpipe",St=>{St.off("data",bt),St.off("data",pt),St.off("end",bt),St.off("end",pt)}),this.on("pipe",St=>{St instanceof u.IncomingMessage&&(this.options.headers={...St.headers,...this.options.headers})});let{json:at,body:dt,form:Et}=H;if((at||dt||Et)&&this._lockWrite(),t.kIsNormalizedAlready in H)this.options=H;else try{this.options=this.constructor.normalizeArguments(K,H,ut)}catch(St){h.default.nodeStream(H.body)&&H.body.destroy(),this.destroy(St);return}(async()=>{var St;try{this.options.body instanceof s.ReadStream&&await $(this.options.body);let{url:Ht}=this.options;if(!Ht)throw new TypeError("Missing `url` property");if(this.requestUrl=Ht.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(St=this[O])===null||St===void 0||St.destroy();return}for(let Mt of this[j])Mt();this[j].length=0,this.requestInitialized=!0}catch(Ht){if(Ht instanceof z){this._beforeError(Ht);return}this.destroyed||this.destroy(Ht)}})()}static normalizeArguments(K,H,ut){var bt,pt,at,dt,Et;let St=H;if(h.default.object(K)&&!h.default.urlInstance(K))H={...ut,...K,...H};else{if(K&&H&&H.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");H={...ut,...H},K!==void 0&&(H.url=K),h.default.urlInstance(H.url)&&(H.url=new i.URL(H.url.toString()))}if(H.cache===!1&&(H.cache=void 0),H.dnsCache===!1&&(H.dnsCache=void 0),h.assert.any([h.default.string,h.default.undefined],H.method),h.assert.any([h.default.object,h.default.undefined],H.headers),h.assert.any([h.default.string,h.default.urlInstance,h.default.undefined],H.prefixUrl),h.assert.any([h.default.object,h.default.undefined],H.cookieJar),h.assert.any([h.default.object,h.default.string,h.default.undefined],H.searchParams),h.assert.any([h.default.object,h.default.string,h.default.undefined],H.cache),h.assert.any([h.default.object,h.default.number,h.default.undefined],H.timeout),h.assert.any([h.default.object,h.default.undefined],H.context),h.assert.any([h.default.object,h.default.undefined],H.hooks),h.assert.any([h.default.boolean,h.default.undefined],H.decompress),h.assert.any([h.default.boolean,h.default.undefined],H.ignoreInvalidCookies),h.assert.any([h.default.boolean,h.default.undefined],H.followRedirect),h.assert.any([h.default.number,h.default.undefined],H.maxRedirects),h.assert.any([h.default.boolean,h.default.undefined],H.throwHttpErrors),h.assert.any([h.default.boolean,h.default.undefined],H.http2),h.assert.any([h.default.boolean,h.default.undefined],H.allowGetBody),h.assert.any([h.default.string,h.default.undefined],H.localAddress),h.assert.any([_.isDnsLookupIpVersion,h.default.undefined],H.dnsLookupIpVersion),h.assert.any([h.default.object,h.default.undefined],H.https),h.assert.any([h.default.boolean,h.default.undefined],H.rejectUnauthorized),H.https&&(h.assert.any([h.default.boolean,h.default.undefined],H.https.rejectUnauthorized),h.assert.any([h.default.function_,h.default.undefined],H.https.checkServerIdentity),h.assert.any([h.default.string,h.default.object,h.default.array,h.default.undefined],H.https.certificateAuthority),h.assert.any([h.default.string,h.default.object,h.default.array,h.default.undefined],H.https.key),h.assert.any([h.default.string,h.default.object,h.default.array,h.default.undefined],H.https.certificate),h.assert.any([h.default.string,h.default.undefined],H.https.passphrase),h.assert.any([h.default.string,h.default.buffer,h.default.array,h.default.undefined],H.https.pfx)),h.assert.any([h.default.object,h.default.undefined],H.cacheOptions),h.default.string(H.method)?H.method=H.method.toUpperCase():H.method="GET",H.headers===(ut==null?void 0:ut.headers)?H.headers={...H.headers}:H.headers=d({...ut==null?void 0:ut.headers,...H.headers}),"slashes"in H)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in H)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in H&&H.searchParams&&H.searchParams!==(ut==null?void 0:ut.searchParams)){let _t;if(h.default.string(H.searchParams)||H.searchParams instanceof i.URLSearchParams)_t=new i.URLSearchParams(H.searchParams);else{ct(H.searchParams),_t=new i.URLSearchParams;for(let Bt in H.searchParams){let It=H.searchParams[Bt];It===null?_t.append(Bt,""):It!==void 0&&_t.append(Bt,It)}}(bt=ut==null?void 0:ut.searchParams)===null||bt===void 0||bt.forEach((Bt,It)=>{_t.has(It)||_t.append(It,Bt)}),H.searchParams=_t}if(H.username=(pt=H.username)!==null&&pt!==void 0?pt:"",H.password=(at=H.password)!==null&&at!==void 0?at:"",h.default.undefined(H.prefixUrl)?H.prefixUrl=(dt=ut==null?void 0:ut.prefixUrl)!==null&&dt!==void 0?dt:"":(H.prefixUrl=H.prefixUrl.toString(),H.prefixUrl!==""&&!H.prefixUrl.endsWith("/")&&(H.prefixUrl+="/")),h.default.string(H.url)){if(H.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");H.url=w.default(H.prefixUrl+H.url,H)}else(h.default.undefined(H.url)&&H.prefixUrl!==""||H.protocol)&&(H.url=w.default(H.prefixUrl,H));if(H.url){"port"in H&&delete H.port;let{prefixUrl:_t}=H;Object.defineProperty(H,"prefixUrl",{set:It=>{let Ft=H.url;if(!Ft.href.startsWith(It))throw new Error(`Cannot change \`prefixUrl\` from ${_t} to ${It}: ${Ft.href}`);H.url=new i.URL(It+Ft.href.slice(_t.length)),_t=It},get:()=>_t});let{protocol:Bt}=H.url;if(Bt==="unix:"&&(Bt="http:",H.url=new i.URL(`http://unix${H.url.pathname}${H.url.search}`)),H.searchParams&&(H.url.search=H.searchParams.toString()),Bt!=="http:"&&Bt!=="https:")throw new ft(H);H.username===""?H.username=H.url.username:H.url.username=H.username,H.password===""?H.password=H.url.password:H.url.password=H.password}let{cookieJar:Ht}=H;if(Ht){let{setCookie:_t,getCookieString:Bt}=Ht;h.assert.function_(_t),h.assert.function_(Bt),_t.length===4&&Bt.length===0&&(_t=l.promisify(_t.bind(H.cookieJar)),Bt=l.promisify(Bt.bind(H.cookieJar)),H.cookieJar={setCookie:_t,getCookieString:Bt})}let{cache:Mt}=H;if(Mt&&(mt.has(Mt)||mt.set(Mt,new a((_t,Bt)=>{let It=_t[O](_t,Bt);return h.default.promise(It)&&(It.once=(Ft,kt)=>{if(Ft==="error")It.catch(kt);else if(Ft==="abort")(async()=>{try{(await It).once("abort",kt)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${Ft}`);return It}),It},Mt))),H.cacheOptions={...H.cacheOptions},H.dnsCache===!0)T||(T=new f.default),H.dnsCache=T;else if(!h.default.undefined(H.dnsCache)&&!H.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${h.default(H.dnsCache)}`);h.default.number(H.timeout)?H.timeout={request:H.timeout}:ut&&H.timeout!==ut.timeout?H.timeout={...ut.timeout,...H.timeout}:H.timeout={...H.timeout},H.context||(H.context={});let ze=H.hooks===(ut==null?void 0:ut.hooks);H.hooks={...H.hooks};for(let _t of t.knownHookEvents)if(_t in H.hooks)if(h.default.array(H.hooks[_t]))H.hooks[_t]=[...H.hooks[_t]];else throw new TypeError(`Parameter \`${_t}\` must be an Array, got ${h.default(H.hooks[_t])}`);else H.hooks[_t]=[];if(ut&&!ze)for(let _t of t.knownHookEvents)ut.hooks[_t].length>0&&(H.hooks[_t]=[...ut.hooks[_t],...H.hooks[_t]]);if("family"in H&&A.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),ut!=null&&ut.https&&(H.https={...ut.https,...H.https}),"rejectUnauthorized"in H&&A.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in H&&A.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in H&&A.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in H&&A.default('"options.key" was never documented, please use "options.https.key"'),"cert"in H&&A.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in H&&A.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in H&&A.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in H)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(H.agent){for(let _t in H.agent)if(_t!=="http"&&_t!=="https"&&_t!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${_t}\``)}return H.maxRedirects=(Et=H.maxRedirects)!==null&&Et!==void 0?Et:0,t.setNonEnumerableProperties([ut,St],H),F.default(H,ut)}_lockWrite(){let K=()=>{throw new TypeError("The payload has been already provided")};this.write=K,this.end=K}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:K}=this,{headers:H}=K,ut=!h.default.undefined(K.form),bt=!h.default.undefined(K.json),pt=!h.default.undefined(K.body),at=ut||bt||pt,dt=t.withoutBody.has(K.method)&&!(K.method==="GET"&&K.allowGetBody);if(this._cannotHaveBody=dt,at){if(dt)throw new TypeError(`The \`${K.method}\` method cannot be used with a body`);if([pt,ut,bt].filter(Et=>Et).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(pt&&!(K.body instanceof n.Readable)&&!h.default.string(K.body)&&!h.default.buffer(K.body)&&!b.default(K.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(ut&&!h.default.object(K.form))throw new TypeError("The `form` option must be an Object");{let Et=!h.default.string(H["content-type"]);pt?(b.default(K.body)&&Et&&(H["content-type"]=`multipart/form-data; boundary=${K.body.getBoundary()}`),this[Q]=K.body):ut?(Et&&(H["content-type"]="application/x-www-form-urlencoded"),this[Q]=new i.URLSearchParams(K.form).toString()):(Et&&(H["content-type"]="application/json"),this[Q]=K.stringifyJson(K.json));let St=await g.default(this[Q],K.headers);h.default.undefined(H["content-length"])&&h.default.undefined(H["transfer-encoding"])&&!dt&&!h.default.undefined(St)&&(H["content-length"]=String(St))}}else dt?this._lockWrite():this._unlockWrite();this[L]=Number(H["content-length"])||void 0}async _onResponseBase(K){let{options:H}=this,{url:ut}=H;this[W]=K,H.decompress&&(K=c(K));let bt=K.statusCode,pt=K;pt.statusMessage=pt.statusMessage?pt.statusMessage:p.STATUS_CODES[bt],pt.url=H.url.toString(),pt.requestUrl=this.requestUrl,pt.redirectUrls=this.redirects,pt.request=this,pt.isFromCache=K.fromCache||!1,pt.ip=this.ip,pt.retryCount=this.retryCount,this[I]=pt.isFromCache,this[k]=Number(K.headers["content-length"])||void 0,this[x]=K,K.once("end",()=>{this[k]=this[U],this.emit("downloadProgress",this.downloadProgress)}),K.once("error",dt=>{K.destroy(),this._beforeError(new nt(dt,this))}),K.once("aborted",()=>{this._beforeError(new nt({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let at=K.headers["set-cookie"];if(h.default.object(H.cookieJar)&&at){let dt=at.map(async Et=>H.cookieJar.setCookie(Et,ut.toString()));H.ignoreInvalidCookies&&(dt=dt.map(async Et=>Et.catch(()=>{})));try{await Promise.all(dt)}catch(Et){this._beforeError(Et);return}}if(H.followRedirect&&K.headers.location&&Y.has(bt)){if(K.resume(),this[O]&&(this[M](),delete this[O],this[et]()),(bt===303&&H.method!=="GET"&&H.method!=="HEAD"||!H.methodRewriting)&&(H.method="GET","body"in H&&delete H.body,"json"in H&&delete H.json,"form"in H&&delete H.form,this[Q]=void 0,delete H.headers["content-length"]),this.redirects.length>=H.maxRedirects){this._beforeError(new X(this));return}try{let dt=function(Mt){return Mt.protocol==="unix:"||Mt.hostname==="unix"},Et=Buffer.from(K.headers.location,"binary").toString(),St=new i.URL(Et,ut),Ht=St.toString();if(decodeURI(Ht),!dt(ut)&&dt(St)){this._beforeError(new z("Cannot redirect to UNIX socket",{},this));return}St.hostname!==ut.hostname||St.port!==ut.port?("host"in H.headers&&delete H.headers.host,"cookie"in H.headers&&delete H.headers.cookie,"authorization"in H.headers&&delete H.headers.authorization,(H.username||H.password)&&(H.username="",H.password="")):(St.username=H.username,St.password=H.password),this.redirects.push(Ht),H.url=St;for(let Mt of H.hooks.beforeRedirect)await Mt(H,pt);this.emit("redirect",pt,H),await this._makeRequest()}catch(dt){this._beforeError(dt);return}return}if(H.isStream&&H.throwHttpErrors&&!S.isResponseOk(pt)){this._beforeError(new rt(pt));return}K.on("readable",()=>{this[G]&&this._read()}),this.on("resume",()=>{K.resume()}),this.on("pause",()=>{K.pause()}),K.once("end",()=>{this.push(null)}),this.emit("response",K);for(let dt of this[V])if(!dt.headersSent){for(let Et in K.headers){let St=H.decompress?Et!=="content-encoding":!0,Ht=K.headers[Et];St&&dt.setHeader(Et,Ht)}dt.statusCode=bt}}async _onResponse(K){try{await this._onResponseBase(K)}catch(H){this._beforeError(H)}}_onRequest(K){let{options:H}=this,{timeout:ut,url:bt}=H;e.default(K),this[M]=y.default(K,ut,bt);let pt=H.cache?"cacheableResponse":"response";K.once(pt,Et=>{this._onResponse(Et)}),K.once("error",Et=>{var St;K.destroy(),(St=K.res)===null||St===void 0||St.removeAllListeners("end"),Et=Et instanceof y.TimeoutError?new lt(Et,this.timings,this):new z(Et.message,Et,this),this._beforeError(Et)}),this[et]=E.default(K,this,vt),this[O]=K,this.emit("uploadProgress",this.uploadProgress);let at=this[Q],dt=this.redirects.length===0?this:K;h.default.nodeStream(at)?(at.pipe(dt),at.once("error",Et=>{this._beforeError(new it(Et,this))})):(this._unlockWrite(),h.default.undefined(at)?(this._cannotHaveBody||this._noPipe)&&(dt.end(),this._lockWrite()):(this._writeRequest(at,void 0,()=>{}),dt.end(),this._lockWrite())),this.emit("request",K)}async _createCacheableRequest(K,H){return new Promise((ut,bt)=>{Object.assign(H,D.default(K)),delete H.url;let pt,at=mt.get(H.cache)(H,async dt=>{dt._readableState.autoDestroy=!1,pt&&(await pt).emit("cacheableResponse",dt),ut(dt)});H.url=K,at.once("error",bt),at.once("request",async dt=>{pt=dt,ut(pt)})})}async _makeRequest(){var K,H,ut,bt,pt;let{options:at}=this,{headers:dt}=at;for(let kt in dt)if(h.default.undefined(dt[kt]))delete dt[kt];else if(h.default.null_(dt[kt]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${kt}\` header`);if(at.decompress&&h.default.undefined(dt["accept-encoding"])&&(dt["accept-encoding"]=ot?"gzip, deflate, br":"gzip, deflate"),at.cookieJar){let kt=await at.cookieJar.getCookieString(at.url.toString());h.default.nonEmptyString(kt)&&(at.headers.cookie=kt)}for(let kt of at.hooks.beforeRequest){let We=await kt(at);if(!h.default.undefined(We)){at.request=()=>We;break}}at.body&&this[Q]!==at.body&&(this[Q]=at.body);let{agent:Et,request:St,timeout:Ht,url:Mt}=at;if(at.dnsCache&&!("lookup"in at)&&(at.lookup=at.dnsCache.lookup),Mt.hostname==="unix"){let kt=/(?<socketPath>.+?):(?<path>.+)/.exec(`${Mt.pathname}${Mt.search}`);if(kt!=null&&kt.groups){let{socketPath:We,path:Ls}=kt.groups;Object.assign(at,{socketPath:We,path:Ls,host:""})}}let ze=Mt.protocol==="https:",_t;at.http2?_t=o.auto:_t=ze?r.request:p.request;let Bt=(K=at.request)!==null&&K!==void 0?K:_t,It=at.cache?this._createCacheableRequest:Bt;Et&&!at.http2&&(at.agent=Et[ze?"https":"http"]),at[O]=Bt,delete at.request,delete at.timeout;let Ft=at;if(Ft.shared=(H=at.cacheOptions)===null||H===void 0?void 0:H.shared,Ft.cacheHeuristic=(ut=at.cacheOptions)===null||ut===void 0?void 0:ut.cacheHeuristic,Ft.immutableMinTimeToLive=(bt=at.cacheOptions)===null||bt===void 0?void 0:bt.immutableMinTimeToLive,Ft.ignoreCargoCult=(pt=at.cacheOptions)===null||pt===void 0?void 0:pt.ignoreCargoCult,at.dnsLookupIpVersion!==void 0)try{Ft.family=_.dnsLookupIpVersionToFamily(at.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}at.https&&("rejectUnauthorized"in at.https&&(Ft.rejectUnauthorized=at.https.rejectUnauthorized),at.https.checkServerIdentity&&(Ft.checkServerIdentity=at.https.checkServerIdentity),at.https.certificateAuthority&&(Ft.ca=at.https.certificateAuthority),at.https.certificate&&(Ft.cert=at.https.certificate),at.https.key&&(Ft.key=at.https.key),at.https.passphrase&&(Ft.passphrase=at.https.passphrase),at.https.pfx&&(Ft.pfx=at.https.pfx));try{let kt=await It(Mt,Ft);h.default.undefined(kt)&&(kt=_t(Mt,Ft)),at.request=St,at.timeout=Ht,at.agent=Et,at.https&&("rejectUnauthorized"in at.https&&delete Ft.rejectUnauthorized,at.https.checkServerIdentity&&delete Ft.checkServerIdentity,at.https.certificateAuthority&&delete Ft.ca,at.https.certificate&&delete Ft.cert,at.https.key&&delete Ft.key,at.https.passphrase&&delete Ft.passphrase,at.https.pfx&&delete Ft.pfx),gt(kt)?this._onRequest(kt):this.writable?(this.once("finish",()=>{this._onResponse(kt)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(kt)}catch(kt){throw kt instanceof a.CacheError?new ht(kt,this):new z(kt.message,kt,this)}}async _error(K){try{for(let H of this.options.hooks.beforeError)K=await H(K)}catch(H){K=new z(H.message,H,this)}this.destroy(K)}_beforeError(K){if(this[J])return;let{options:H}=this,ut=this.retryCount+1;this[J]=!0,K instanceof z||(K=new z(K.message,K,this));let bt=K,{response:pt}=bt;(async()=>{if(pt&&!pt.body){pt.setEncoding(this._readableState.encoding);try{pt.rawBody=await m.default(pt),pt.body=pt.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let at;try{let dt;pt&&"retry-after"in pt.headers&&(dt=Number(pt.headers["retry-after"]),Number.isNaN(dt)?(dt=Date.parse(pt.headers["retry-after"])-Date.now(),dt<=0&&(dt=1)):dt*=1e3),at=await H.retry.calculateDelay({attemptCount:ut,retryOptions:H.retry,error:bt,retryAfter:dt,computedValue:P.default({attemptCount:ut,retryOptions:H.retry,error:bt,retryAfter:dt,computedValue:0})})}catch(dt){this._error(new z(dt.message,dt,this));return}if(at){let dt=async()=>{try{for(let Et of this.options.hooks.beforeRetry)await Et(this.options,bt,ut)}catch(Et){this._error(new z(Et.message,K,this));return}this.destroyed||(this.destroy(),this.emit("retry",ut,K))};this[tt]=setTimeout(dt,at);return}}this._error(bt)})()}_read(){this[G]=!0;let K=this[x];if(K&&!this[J]){K.readableLength&&(this[G]=!1);let H;for(;(H=K.read())!==null;){this[U]+=H.length,this[R]=!0;let ut=this.downloadProgress;ut.percent<1&&this.emit("downloadProgress",ut),this.push(H)}}}_write(K,H,ut){let bt=()=>{this._writeRequest(K,H,ut)};this.requestInitialized?bt():this[j].push(bt)}_writeRequest(K,H,ut){this[O].destroyed||(this._progressCallbacks.push(()=>{this[q]+=Buffer.byteLength(K,H);let bt=this.uploadProgress;bt.percent<1&&this.emit("uploadProgress",bt)}),this[O].write(K,H,bt=>{!bt&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),ut(bt)}))}_final(K){let H=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(O in this)){K();return}if(this[O].destroyed){K();return}this[O].end(ut=>{ut||(this[L]=this[q],this.emit("uploadProgress",this.uploadProgress),this[O].emit("upload-complete")),K(ut)})};this.requestInitialized?H():this[j].push(H)}_destroy(K,H){var ut;this[J]=!0,clearTimeout(this[tt]),O in this&&(this[M](),!((ut=this[x])===null||ut===void 0)&&ut.complete||this[O].destroy()),K!==null&&!h.default.undefined(K)&&!(K instanceof z)&&(K=new z(K.message,K,this)),H(K)}get _isAboutToError(){return this[J]}get ip(){var K;return(K=this.socket)===null||K===void 0?void 0:K.remoteAddress}get aborted(){var K,H,ut;return((H=(K=this[O])===null||K===void 0?void 0:K.destroyed)!==null&&H!==void 0?H:this.destroyed)&&!(!((ut=this[W])===null||ut===void 0)&&ut.complete)}get socket(){var K,H;return(H=(K=this[O])===null||K===void 0?void 0:K.socket)!==null&&H!==void 0?H:void 0}get downloadProgress(){let K;return this[k]?K=this[U]/this[k]:this[k]===this[U]?K=1:K=0,{percent:K,transferred:this[U],total:this[k]}}get uploadProgress(){let K;return this[L]?K=this[q]/this[L]:this[L]===this[q]?K=1:K=0,{percent:K,transferred:this[q],total:this[L]}}get timings(){var K;return(K=this[O])===null||K===void 0?void 0:K.timings}get isFromCache(){return this[I]}pipe(K,H){if(this[R])throw new Error("Failed to pipe. The response has been emitted already.");return K instanceof u.ServerResponse&&this[V].add(K),super.pipe(K,H)}unpipe(K){return K instanceof u.ServerResponse&&this[V].delete(K),super.unpipe(K),this}};t.default=xt}),Xe=N(t=>{"use strict";B();var l=t&&t.__createBinding||(Object.create?function(u,r,e,f){f===void 0&&(f=e),Object.defineProperty(u,f,{enumerable:!0,get:function(){return r[e]}})}:function(u,r,e,f){f===void 0&&(f=e),u[f]=r[e]}),n=t&&t.__exportStar||function(u,r){for(var e in u)e!=="default"&&!Object.prototype.hasOwnProperty.call(r,e)&&l(r,u,e)};Object.defineProperty(t,"__esModule",{value:!0}),t.CancelError=t.ParseError=void 0;var s=Ze(),i=class extends s.RequestError{constructor(u,r){let{options:e}=r.request;super(`${u.message} in "${e.url.toString()}"`,u,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};t.ParseError=i;var p=class extends s.RequestError{constructor(u){super("Promise was canceled",{},u),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};t.CancelError=p,n(Ze(),t)}),Au=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Xe(),n=(s,i,p,u)=>{let{rawBody:r}=s;try{if(i==="text")return r.toString(u);if(i==="json")return r.length===0?"":p(r.toString());if(i==="buffer")return r;throw new l.ParseError({message:`Unknown body type '${i}'`,name:"Error"},s)}catch(e){throw new l.ParseError(e,s)}};t.default=n}),Yn=N(t=>{"use strict";B();var l=t&&t.__createBinding||(Object.create?function(h,g,b,E){E===void 0&&(E=b),Object.defineProperty(h,E,{enumerable:!0,get:function(){return g[b]}})}:function(h,g,b,E){E===void 0&&(E=b),h[E]=g[b]}),n=t&&t.__exportStar||function(h,g){for(var b in h)b!=="default"&&!Object.prototype.hasOwnProperty.call(g,b)&&l(g,h,b)};Object.defineProperty(t,"__esModule",{value:!0});var s=Z("events"),i=se(),p=Go(),u=Xe(),r=Au(),e=Ze(),f=zn(),a=Wn(),c=Vn(),o=["request","response","redirect","uploadProgress","downloadProgress"];function d(h){let g,b,E=new s.EventEmitter,y=new p((w,v,m)=>{let _=S=>{let A=new e.default(void 0,h);A.retryCount=S,A._noPipe=!0,m(()=>A.destroy()),m.shouldReject=!1,m(()=>v(new u.CancelError(A))),g=A,A.once("response",async T=>{var O;if(T.retryCount=S,T.request.aborted)return;let x;try{x=await a.default(A),T.rawBody=x}catch{return}if(A._isAboutToError)return;let k=((O=T.headers["content-encoding"])!==null&&O!==void 0?O:"").toLowerCase(),U=["gzip","deflate","br"].includes(k),{options:L}=A;if(U&&!L.decompress)T.body=x;else try{T.body=r.default(T,L.responseType,L.parseJson,L.encoding)}catch(q){if(T.body=x.toString(),c.isResponseOk(T)){A._beforeError(q);return}}try{for(let[q,V]of L.hooks.afterResponse.entries())T=await V(T,async et=>{let I=e.default.normalizeArguments(void 0,{...et,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},L);I.hooks.afterResponse=I.hooks.afterResponse.slice(0,q);for(let R of I.hooks.beforeRetry)await R(I);let M=d(I);return m(()=>{M.catch(()=>{}),M.cancel()}),M})}catch(q){A._beforeError(new u.RequestError(q.message,q,A));return}if(b=T,!c.isResponseOk(T)){A._beforeError(new u.HTTPError(T));return}A.destroy(),w(A.options.resolveBodyOnly?T.body:T)});let F=T=>{if(y.isCanceled)return;let{options:O}=A;if(T instanceof u.HTTPError&&!O.throwHttpErrors){let{response:x}=T;w(A.options.resolveBodyOnly?x.body:x);return}v(T)};A.once("error",F);let P=A.options.body;A.once("retry",(T,O)=>{var x,k;if(P===((x=O.request)===null||x===void 0?void 0:x.options.body)&&i.default.nodeStream((k=O.request)===null||k===void 0?void 0:k.options.body)){F(O);return}_(T)}),f.default(A,E,o)};_(0)});y.on=(w,v)=>(E.on(w,v),y);let D=w=>{let v=(async()=>{await y;let{options:m}=b.request;return r.default(b,w,m.parseJson,m.encoding)})();return Object.defineProperties(v,Object.getOwnPropertyDescriptors(y)),v};return y.json=()=>{let{headers:w}=g.options;return!g.writableFinished&&w.accept===void 0&&(w.accept="application/json"),D("json")},y.buffer=()=>D("buffer"),y.text=()=>D("text"),y}t.default=d,n(Xe(),t)}),Cu=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Xe();function n(s,...i){let p=(async()=>{if(s instanceof l.RequestError)try{for(let r of i)if(r)for(let e of r)s=await e(s)}catch(r){s=r}throw s})(),u=()=>p;return p.json=u,p.text=u,p.buffer=u,p.on=u,p}t.default=n}),xu=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=se();function n(s){for(let i of Object.values(s))(l.default.plainObject(i)||l.default.array(i))&&n(i);return Object.freeze(s)}t.default=n}),Fu=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0})}),Nn=N(t=>{"use strict";B();var l=t&&t.__createBinding||(Object.create?function(E,y,D,w){w===void 0&&(w=D),Object.defineProperty(E,w,{enumerable:!0,get:function(){return y[D]}})}:function(E,y,D,w){w===void 0&&(w=D),E[w]=y[D]}),n=t&&t.__exportStar||function(E,y){for(var D in E)D!=="default"&&!Object.prototype.hasOwnProperty.call(y,D)&&l(y,E,D)};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHandler=void 0;var s=se(),i=Yn(),p=Cu(),u=Ze(),r=xu(),e={RequestError:i.RequestError,CacheError:i.CacheError,ReadError:i.ReadError,HTTPError:i.HTTPError,MaxRedirectsError:i.MaxRedirectsError,TimeoutError:i.TimeoutError,ParseError:i.ParseError,CancelError:i.CancelError,UnsupportedProtocolError:i.UnsupportedProtocolError,UploadError:i.UploadError},f=async E=>new Promise(y=>{setTimeout(y,E)}),{normalizeArguments:a}=u.default,c=(...E)=>{let y;for(let D of E)y=a(void 0,D,y);return y},o=E=>E.isStream?new u.default(void 0,E):i.default(E),d=E=>"defaults"in E&&"options"in E.defaults,h=["get","post","put","patch","head","delete"];t.defaultHandler=(E,y)=>y(E);var g=(E,y)=>{if(E)for(let D of E)D(y)},b=E=>{E._rawHandlers=E.handlers,E.handlers=E.handlers.map(w=>(v,m)=>{let _,S=w(v,A=>(_=m(A),_));if(S!==_&&!v.isStream&&_){let A=S,{then:F,catch:P,finally:T}=A;Object.setPrototypeOf(A,Object.getPrototypeOf(_)),Object.defineProperties(A,Object.getOwnPropertyDescriptors(_)),A.then=F,A.catch=P,A.finally=T}return S});let y=(w,v={},m)=>{var _,S;let A=0,F=P=>E.handlers[A++](P,A===E.handlers.length?o:F);if(s.default.plainObject(w)){let P={...w,...v};u.setNonEnumerableProperties([w,v],P),v=P,w=void 0}try{let P;try{g(E.options.hooks.init,v),g((_=v.hooks)===null||_===void 0?void 0:_.init,v)}catch(O){P=O}let T=a(w,v,m!=null?m:E.options);if(T[u.kIsNormalizedAlready]=!0,P)throw new i.RequestError(P.message,P,T);return F(T)}catch(P){if(v.isStream)throw P;return p.default(P,E.options.hooks.beforeError,(S=v.hooks)===null||S===void 0?void 0:S.beforeError)}};y.extend=(...w)=>{let v=[E.options],m=[...E._rawHandlers],_;for(let S of w)d(S)?(v.push(S.defaults.options),m.push(...S.defaults._rawHandlers),_=S.defaults.mutableDefaults):(v.push(S),"handlers"in S&&m.push(...S.handlers),_=S.mutableDefaults);return m=m.filter(S=>S!==t.defaultHandler),m.length===0&&m.push(t.defaultHandler),b({options:c(...v),handlers:m,mutableDefaults:!!_})};let D=async function*(w,v){let m=a(w,v,E.options);m.resolveBodyOnly=!1;let _=m.pagination;if(!s.default.object(_))throw new TypeError("`options.pagination` must be implemented");let S=[],{countLimit:A}=_,F=0;for(;F<_.requestLimit;){F!==0&&await f(_.backoff);let P=await y(void 0,void 0,m),T=await _.transform(P),O=[];for(let k of T)if(_.filter(k,S,O)&&(!_.shouldContinue(k,S,O)||(yield k,_.stackAllItems&&S.push(k),O.push(k),--A<=0)))return;let x=_.paginate(P,S,O);if(x===!1)return;x===P.request.options?m=P.request.options:x!==void 0&&(m=a(void 0,x,m)),F++}};y.paginate=D,y.paginate.all=async(w,v)=>{let m=[];for await(let _ of D(w,v))m.push(_);return m},y.paginate.each=D,y.stream=(w,v)=>y(w,{...v,isStream:!0});for(let w of h)y[w]=(v,m)=>y(v,{...m,method:w}),y.stream[w]=(v,m)=>y(v,{...m,method:w,isStream:!0});return Object.assign(y,e),Object.defineProperty(y,"defaults",{value:E.mutableDefaults?E:r.default(E),writable:E.mutableDefaults,configurable:E.mutableDefaults,enumerable:!0}),y.mergeOptions=c,y};t.default=b,n(Fu(),t)}),ku=N((t,l)=>{"use strict";B();var n=t&&t.__createBinding||(Object.create?function(e,f,a,c){c===void 0&&(c=a),Object.defineProperty(e,c,{enumerable:!0,get:function(){return f[a]}})}:function(e,f,a,c){c===void 0&&(c=a),e[c]=f[a]}),s=t&&t.__exportStar||function(e,f){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(f,a)&&n(f,e,a)};Object.defineProperty(t,"__esModule",{value:!0});var i=Z("url"),p=Nn(),u={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:e})=>e},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:e=>e.request.options.responseType==="json"?e.body:JSON.parse(e.body),paginate:e=>{if(!Reflect.has(e.headers,"link"))return!1;let f=e.headers.link.split(","),a;for(let c of f){let o=c.split(";");if(o[1].includes("next")){a=o[0].trimStart().trim(),a=a.slice(1,-1);break}}return a?{url:new i.URL(a)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:e=>JSON.parse(e),stringifyJson:e=>JSON.stringify(e),cacheOptions:{}},handlers:[p.defaultHandler],mutableDefaults:!1},r=p.default(u);t.default=r,l.exports=r,l.exports.default=r,l.exports.__esModule=!0,s(Nn(),t),s(Yn(),t)}),xe=N((t,l)=>{"use strict";B();var n=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);l.exports=s=>s?Object.keys(s).map(i=>[n.has(i)?n.get(i):i,s[i]]).reduce((i,p)=>(i[p[0]]=p[1],i),Object.create(null)):{}}),Er=N((t,l)=>{"use strict";B();var n=typeof process=="object"&&process?process:{stdout:null,stderr:null},s=Z("events"),i=Z("stream"),p=Z("string_decoder").StringDecoder,u=Symbol("EOF"),r=Symbol("maybeEmitEnd"),e=Symbol("emittedEnd"),f=Symbol("emittingEnd"),a=Symbol("emittedError"),c=Symbol("closed"),o=Symbol("read"),d=Symbol("flush"),h=Symbol("flushChunk"),g=Symbol("encoding"),b=Symbol("decoder"),E=Symbol("flowing"),y=Symbol("paused"),D=Symbol("resume"),w=Symbol("buffer"),v=Symbol("pipes"),m=Symbol("bufferLength"),_=Symbol("bufferPush"),S=Symbol("bufferShift"),A=Symbol("objectMode"),F=Symbol("destroyed"),P=Symbol("emitData"),T=Symbol("emitEnd"),O=Symbol("emitEnd2"),x=Symbol("async"),k=J=>Promise.resolve().then(J),U=global._MP_NO_ITERATOR_SYMBOLS_!=="1",L=U&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),q=U&&Symbol.iterator||Symbol("iterator not implemented"),V=J=>J==="end"||J==="finish"||J==="prefinish",et=J=>J instanceof ArrayBuffer||typeof J=="object"&&J.constructor&&J.constructor.name==="ArrayBuffer"&&J.byteLength>=0,I=J=>!Buffer.isBuffer(J)&&ArrayBuffer.isView(J),M=class{constructor(J,G,Q){this.src=J,this.dest=G,this.opts=Q,this.ondrain=()=>J[D](),G.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},R=class extends M{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(J,G,Q){super(J,G,Q),this.proxyErrors=j=>G.emit("error",j),J.on("error",this.proxyErrors)}};l.exports=class Kn extends i{constructor(G){super(),this[E]=!1,this[y]=!1,this[v]=[],this[w]=[],this[A]=G&&G.objectMode||!1,this[A]?this[g]=null:this[g]=G&&G.encoding||null,this[g]==="buffer"&&(this[g]=null),this[x]=G&&!!G.async||!1,this[b]=this[g]?new p(this[g]):null,this[u]=!1,this[e]=!1,this[f]=!1,this[c]=!1,this[a]=null,this.writable=!0,this.readable=!0,this[m]=0,this[F]=!1,G&&G.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[w]}),G&&G.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[v]})}get bufferLength(){return this[m]}get encoding(){return this[g]}set encoding(G){if(this[A])throw new Error("cannot set encoding in objectMode");if(this[g]&&G!==this[g]&&(this[b]&&this[b].lastNeed||this[m]))throw new Error("cannot change encoding");this[g]!==G&&(this[b]=G?new p(G):null,this[w].length&&(this[w]=this[w].map(Q=>this[b].write(Q)))),this[g]=G}setEncoding(G){this.encoding=G}get objectMode(){return this[A]}set objectMode(G){this[A]=this[A]||!!G}get async(){return this[x]}set async(G){this[x]=this[x]||!!G}write(G,Q,j){if(this[u])throw new Error("write after end");if(this[F])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof Q=="function"&&(j=Q,Q="utf8"),Q||(Q="utf8");let W=this[x]?k:tt=>tt();return!this[A]&&!Buffer.isBuffer(G)&&(I(G)?G=Buffer.from(G.buffer,G.byteOffset,G.byteLength):et(G)?G=Buffer.from(G):typeof G!="string"&&(this.objectMode=!0)),this[A]?(this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",G):this[_](G),this[m]!==0&&this.emit("readable"),j&&W(j),this.flowing):G.length?(typeof G=="string"&&!(Q===this[g]&&!this[b].lastNeed)&&(G=Buffer.from(G,Q)),Buffer.isBuffer(G)&&this[g]&&(G=this[b].write(G)),this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",G):this[_](G),this[m]!==0&&this.emit("readable"),j&&W(j),this.flowing):(this[m]!==0&&this.emit("readable"),j&&W(j),this.flowing)}read(G){if(this[F])return null;if(this[m]===0||G===0||G>this[m])return this[r](),null;this[A]&&(G=null),this[w].length>1&&!this[A]&&(this.encoding?this[w]=[this[w].join("")]:this[w]=[Buffer.concat(this[w],this[m])]);let Q=this[o](G||null,this[w][0]);return this[r](),Q}[o](G,Q){return G===Q.length||G===null?this[S]():(this[w][0]=Q.slice(G),Q=Q.slice(0,G),this[m]-=G),this.emit("data",Q),!this[w].length&&!this[u]&&this.emit("drain"),Q}end(G,Q,j){return typeof G=="function"&&(j=G,G=null),typeof Q=="function"&&(j=Q,Q="utf8"),G&&this.write(G,Q),j&&this.once("end",j),this[u]=!0,this.writable=!1,(this.flowing||!this[y])&&this[r](),this}[D](){this[F]||(this[y]=!1,this[E]=!0,this.emit("resume"),this[w].length?this[d]():this[u]?this[r]():this.emit("drain"))}resume(){return this[D]()}pause(){this[E]=!1,this[y]=!0}get destroyed(){return this[F]}get flowing(){return this[E]}get paused(){return this[y]}[_](G){this[A]?this[m]+=1:this[m]+=G.length,this[w].push(G)}[S](){return this[w].length&&(this[A]?this[m]-=1:this[m]-=this[w][0].length),this[w].shift()}[d](G){do;while(this[h](this[S]()));!G&&!this[w].length&&!this[u]&&this.emit("drain")}[h](G){return G?(this.emit("data",G),this.flowing):!1}pipe(G,Q){if(this[F])return;let j=this[e];return Q=Q||{},G===n.stdout||G===n.stderr?Q.end=!1:Q.end=Q.end!==!1,Q.proxyErrors=!!Q.proxyErrors,j?Q.end&&G.end():(this[v].push(Q.proxyErrors?new R(this,G,Q):new M(this,G,Q)),this[x]?k(()=>this[D]()):this[D]()),G}unpipe(G){let Q=this[v].find(j=>j.dest===G);Q&&(this[v].splice(this[v].indexOf(Q),1),Q.unpipe())}addListener(G,Q){return this.on(G,Q)}on(G,Q){let j=super.on(G,Q);return G==="data"&&!this[v].length&&!this.flowing?this[D]():G==="readable"&&this[m]!==0?super.emit("readable"):V(G)&&this[e]?(super.emit(G),this.removeAllListeners(G)):G==="error"&&this[a]&&(this[x]?k(()=>Q.call(this,this[a])):Q.call(this,this[a])),j}get emittedEnd(){return this[e]}[r](){!this[f]&&!this[e]&&!this[F]&&this[w].length===0&&this[u]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[c]&&this.emit("close"),this[f]=!1)}emit(G,Q,...j){if(G!=="error"&&G!=="close"&&G!==F&&this[F])return;if(G==="data")return Q?this[x]?k(()=>this[P](Q)):this[P](Q):!1;if(G==="end")return this[T]();if(G==="close"){if(this[c]=!0,!this[e]&&!this[F])return;let tt=super.emit("close");return this.removeAllListeners("close"),tt}else if(G==="error"){this[a]=Q;let tt=super.emit("error",Q);return this[r](),tt}else if(G==="resume"){let tt=super.emit("resume");return this[r](),tt}else if(G==="finish"||G==="prefinish"){let tt=super.emit(G);return this.removeAllListeners(G),tt}let W=super.emit(G,Q,...j);return this[r](),W}[P](G){for(let j of this[v])j.dest.write(G)===!1&&this.pause();let Q=super.emit("data",G);return this[r](),Q}[T](){this[e]||(this[e]=!0,this.readable=!1,this[x]?k(()=>this[O]()):this[O]())}[O](){if(this[b]){let Q=this[b].end();if(Q){for(let j of this[v])j.dest.write(Q);super.emit("data",Q)}}for(let Q of this[v])Q.end();let G=super.emit("end");return this.removeAllListeners("end"),G}collect(){let G=[];this[A]||(G.dataLength=0);let Q=this.promise();return this.on("data",j=>{G.push(j),this[A]||(G.dataLength+=j.length)}),Q.then(()=>G)}concat(){return this[A]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(G=>this[A]?Promise.reject(new Error("cannot concat in objectMode")):this[g]?G.join(""):Buffer.concat(G,G.dataLength))}promise(){return new Promise((G,Q)=>{this.on(F,()=>Q(new Error("stream destroyed"))),this.on("error",j=>Q(j)),this.on("end",()=>G())})}[L](){return{next:()=>{let G=this.read();if(G!==null)return Promise.resolve({done:!1,value:G});if(this[u])return Promise.resolve({done:!0});let Q=null,j=null,W=gt=>{this.removeListener("data",tt),this.removeListener("end",ot),j(gt)},tt=gt=>{this.removeListener("error",W),this.removeListener("end",ot),this.pause(),Q({value:gt,done:!!this[u]})},ot=()=>{this.removeListener("error",W),this.removeListener("data",tt),Q({done:!0})},ct=()=>W(new Error("stream destroyed"));return new Promise((gt,mt)=>{j=mt,Q=gt,this.once(F,ct),this.once("error",W),this.once("end",ot),this.once("data",tt)})}}}[q](){return{next:()=>{let G=this.read();return{value:G,done:G===null}}}}destroy(G){return this[F]?(G?this.emit("error",G):this.emit(F),this):(this[F]=!0,this[w].length=0,this[m]=0,typeof this.close=="function"&&!this[c]&&this.close(),G?this.emit("error",G):this.emit(F),this)}static isStream(G){return!!G&&(G instanceof Kn||G instanceof i||G instanceof s&&(typeof G.pipe=="function"||typeof G.write=="function"&&typeof G.end=="function"))}}}),Ou=N((t,l)=>{B();var n=Z("zlib").constants||{ZLIB_VERNUM:4736};l.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},n))}),Jn=N((t,l)=>{"use strict";B();var n=typeof process=="object"&&process?process:{stdout:null,stderr:null},s=Z("events"),i=Z("stream"),p=Z("string_decoder").StringDecoder,u=Symbol("EOF"),r=Symbol("maybeEmitEnd"),e=Symbol("emittedEnd"),f=Symbol("emittingEnd"),a=Symbol("emittedError"),c=Symbol("closed"),o=Symbol("read"),d=Symbol("flush"),h=Symbol("flushChunk"),g=Symbol("encoding"),b=Symbol("decoder"),E=Symbol("flowing"),y=Symbol("paused"),D=Symbol("resume"),w=Symbol("bufferLength"),v=Symbol("bufferPush"),m=Symbol("bufferShift"),_=Symbol("objectMode"),S=Symbol("destroyed"),A=Symbol("emitData"),F=Symbol("emitEnd"),P=Symbol("emitEnd2"),T=Symbol("async"),O=M=>Promise.resolve().then(M),x=global._MP_NO_ITERATOR_SYMBOLS_!=="1",k=x&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),U=x&&Symbol.iterator||Symbol("iterator not implemented"),L=M=>M==="end"||M==="finish"||M==="prefinish",q=M=>M instanceof ArrayBuffer||typeof M=="object"&&M.constructor&&M.constructor.name==="ArrayBuffer"&&M.byteLength>=0,V=M=>!Buffer.isBuffer(M)&&ArrayBuffer.isView(M),et=class{constructor(M,R,J){this.src=M,this.dest=R,this.opts=J,this.ondrain=()=>M[D](),R.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},I=class extends et{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(M,R,J){super(M,R,J),this.proxyErrors=G=>R.emit("error",G),M.on("error",this.proxyErrors)}};l.exports=class Zn extends i{constructor(R){super(),this[E]=!1,this[y]=!1,this.pipes=[],this.buffer=[],this[_]=R&&R.objectMode||!1,this[_]?this[g]=null:this[g]=R&&R.encoding||null,this[g]==="buffer"&&(this[g]=null),this[T]=R&&!!R.async||!1,this[b]=this[g]?new p(this[g]):null,this[u]=!1,this[e]=!1,this[f]=!1,this[c]=!1,this[a]=null,this.writable=!0,this.readable=!0,this[w]=0,this[S]=!1}get bufferLength(){return this[w]}get encoding(){return this[g]}set encoding(R){if(this[_])throw new Error("cannot set encoding in objectMode");if(this[g]&&R!==this[g]&&(this[b]&&this[b].lastNeed||this[w]))throw new Error("cannot change encoding");this[g]!==R&&(this[b]=R?new p(R):null,this.buffer.length&&(this.buffer=this.buffer.map(J=>this[b].write(J)))),this[g]=R}setEncoding(R){this.encoding=R}get objectMode(){return this[_]}set objectMode(R){this[_]=this[_]||!!R}get async(){return this[T]}set async(R){this[T]=this[T]||!!R}write(R,J,G){if(this[u])throw new Error("write after end");if(this[S])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof J=="function"&&(G=J,J="utf8"),J||(J="utf8");let Q=this[T]?O:j=>j();return!this[_]&&!Buffer.isBuffer(R)&&(V(R)?R=Buffer.from(R.buffer,R.byteOffset,R.byteLength):q(R)?R=Buffer.from(R):typeof R!="string"&&(this.objectMode=!0)),this[_]?(this.flowing&&this[w]!==0&&this[d](!0),this.flowing?this.emit("data",R):this[v](R),this[w]!==0&&this.emit("readable"),G&&Q(G),this.flowing):R.length?(typeof R=="string"&&!(J===this[g]&&!this[b].lastNeed)&&(R=Buffer.from(R,J)),Buffer.isBuffer(R)&&this[g]&&(R=this[b].write(R)),this.flowing&&this[w]!==0&&this[d](!0),this.flowing?this.emit("data",R):this[v](R),this[w]!==0&&this.emit("readable"),G&&Q(G),this.flowing):(this[w]!==0&&this.emit("readable"),G&&Q(G),this.flowing)}read(R){if(this[S])return null;if(this[w]===0||R===0||R>this[w])return this[r](),null;this[_]&&(R=null),this.buffer.length>1&&!this[_]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[w])]);let J=this[o](R||null,this.buffer[0]);return this[r](),J}[o](R,J){return R===J.length||R===null?this[m]():(this.buffer[0]=J.slice(R),J=J.slice(0,R),this[w]-=R),this.emit("data",J),!this.buffer.length&&!this[u]&&this.emit("drain"),J}end(R,J,G){return typeof R=="function"&&(G=R,R=null),typeof J=="function"&&(G=J,J="utf8"),R&&this.write(R,J),G&&this.once("end",G),this[u]=!0,this.writable=!1,(this.flowing||!this[y])&&this[r](),this}[D](){this[S]||(this[y]=!1,this[E]=!0,this.emit("resume"),this.buffer.length?this[d]():this[u]?this[r]():this.emit("drain"))}resume(){return this[D]()}pause(){this[E]=!1,this[y]=!0}get destroyed(){return this[S]}get flowing(){return this[E]}get paused(){return this[y]}[v](R){this[_]?this[w]+=1:this[w]+=R.length,this.buffer.push(R)}[m](){return this.buffer.length&&(this[_]?this[w]-=1:this[w]-=this.buffer[0].length),this.buffer.shift()}[d](R){do;while(this[h](this[m]()));!R&&!this.buffer.length&&!this[u]&&this.emit("drain")}[h](R){return R?(this.emit("data",R),this.flowing):!1}pipe(R,J){if(this[S])return;let G=this[e];return J=J||{},R===n.stdout||R===n.stderr?J.end=!1:J.end=J.end!==!1,J.proxyErrors=!!J.proxyErrors,G?J.end&&R.end():(this.pipes.push(J.proxyErrors?new I(this,R,J):new et(this,R,J)),this[T]?O(()=>this[D]()):this[D]()),R}unpipe(R){let J=this.pipes.find(G=>G.dest===R);J&&(this.pipes.splice(this.pipes.indexOf(J),1),J.unpipe())}addListener(R,J){return this.on(R,J)}on(R,J){let G=super.on(R,J);return R==="data"&&!this.pipes.length&&!this.flowing?this[D]():R==="readable"&&this[w]!==0?super.emit("readable"):L(R)&&this[e]?(super.emit(R),this.removeAllListeners(R)):R==="error"&&this[a]&&(this[T]?O(()=>J.call(this,this[a])):J.call(this,this[a])),G}get emittedEnd(){return this[e]}[r](){!this[f]&&!this[e]&&!this[S]&&this.buffer.length===0&&this[u]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[c]&&this.emit("close"),this[f]=!1)}emit(R,J,...G){if(R!=="error"&&R!=="close"&&R!==S&&this[S])return;if(R==="data")return J?this[T]?O(()=>this[A](J)):this[A](J):!1;if(R==="end")return this[F]();if(R==="close"){if(this[c]=!0,!this[e]&&!this[S])return;let j=super.emit("close");return this.removeAllListeners("close"),j}else if(R==="error"){this[a]=J;let j=super.emit("error",J);return this[r](),j}else if(R==="resume"){let j=super.emit("resume");return this[r](),j}else if(R==="finish"||R==="prefinish"){let j=super.emit(R);return this.removeAllListeners(R),j}let Q=super.emit(R,J,...G);return this[r](),Q}[A](R){for(let G of this.pipes)G.dest.write(R)===!1&&this.pause();let J=super.emit("data",R);return this[r](),J}[F](){this[e]||(this[e]=!0,this.readable=!1,this[T]?O(()=>this[P]()):this[P]())}[P](){if(this[b]){let J=this[b].end();if(J){for(let G of this.pipes)G.dest.write(J);super.emit("data",J)}}for(let J of this.pipes)J.end();let R=super.emit("end");return this.removeAllListeners("end"),R}collect(){let R=[];this[_]||(R.dataLength=0);let J=this.promise();return this.on("data",G=>{R.push(G),this[_]||(R.dataLength+=G.length)}),J.then(()=>R)}concat(){return this[_]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(R=>this[_]?Promise.reject(new Error("cannot concat in objectMode")):this[g]?R.join(""):Buffer.concat(R,R.dataLength))}promise(){return new Promise((R,J)=>{this.on(S,()=>J(new Error("stream destroyed"))),this.on("error",G=>J(G)),this.on("end",()=>R())})}[k](){return{next:()=>{let R=this.read();if(R!==null)return Promise.resolve({done:!1,value:R});if(this[u])return Promise.resolve({done:!0});let J=null,G=null,Q=ot=>{this.removeListener("data",j),this.removeListener("end",W),G(ot)},j=ot=>{this.removeListener("error",Q),this.removeListener("end",W),this.pause(),J({value:ot,done:!!this[u]})},W=()=>{this.removeListener("error",Q),this.removeListener("data",j),J({done:!0})},tt=()=>Q(new Error("stream destroyed"));return new Promise((ot,ct)=>{G=ct,J=ot,this.once(S,tt),this.once("error",Q),this.once("end",W),this.once("data",j)})}}}[U](){return{next:()=>{let R=this.read();return{value:R,done:R===null}}}}destroy(R){return this[S]?(R?this.emit("error",R):this.emit(S),this):(this[S]=!0,this.buffer.length=0,this[w]=0,typeof this.close=="function"&&!this[c]&&this.close(),R?this.emit("error",R):this.emit(S),this)}static isStream(R){return!!R&&(R instanceof Zn||R instanceof i||R instanceof s&&(typeof R.pipe=="function"||typeof R.write=="function"&&typeof R.end=="function"))}}}),Xn=N(t=>{"use strict";B();var l=Z("assert"),n=Z("buffer").Buffer,s=Z("zlib"),i=t.constants=Ou(),p=Jn(),u=n.concat,r=Symbol("_superWrite"),e=class extends Error{constructor(L){super("zlib: "+L.message),this.code=L.code,this.errno=L.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+L.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},f=Symbol("opts"),a=Symbol("flushFlag"),c=Symbol("finishFlushFlag"),o=Symbol("fullFlushFlag"),d=Symbol("handle"),h=Symbol("onError"),g=Symbol("sawError"),b=Symbol("level"),E=Symbol("strategy"),y=Symbol("ended"),D=Symbol("_defaultFullFlush"),w=class extends p{constructor(L,q){if(!L||typeof L!="object")throw new TypeError("invalid options for ZlibBase constructor");super(L),this[g]=!1,this[y]=!1,this[f]=L,this[a]=L.flush,this[c]=L.finishFlush;try{this[d]=new s[q](L)}catch(V){throw new e(V)}this[h]=V=>{this[g]||(this[g]=!0,this.close(),this.emit("error",V))},this[d].on("error",V=>this[h](new e(V))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[g])return l(this[d],"zlib binding closed"),this[d].reset()}flush(L){this.ended||(typeof L!="number"&&(L=this[o]),this.write(Object.assign(n.alloc(0),{[a]:L})))}end(L,q,V){return L&&this.write(L,q),this.flush(this[c]),this[y]=!0,super.end(null,null,V)}get ended(){return this[y]}write(L,q,V){if(typeof q=="function"&&(V=q,q="utf8"),typeof L=="string"&&(L=n.from(L,q)),this[g])return;l(this[d],"zlib binding closed");let et=this[d]._handle,I=et.close;et.close=()=>{};let M=this[d].close;this[d].close=()=>{},n.concat=G=>G;let R;try{let G=typeof L[a]=="number"?L[a]:this[a];R=this[d]._processChunk(L,G),n.concat=u}catch(G){n.concat=u,this[h](new e(G))}finally{this[d]&&(this[d]._handle=et,et.close=I,this[d].close=M,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",G=>this[h](new e(G)));let J;if(R)if(Array.isArray(R)&&R.length>0){J=this[r](n.from(R[0]));for(let G=1;G<R.length;G++)J=this[r](R[G])}else J=this[r](n.from(R));return V&&V(),J}[r](L){return super.write(L)}},v=class extends w{constructor(L,q){L=L||{},L.flush=L.flush||i.Z_NO_FLUSH,L.finishFlush=L.finishFlush||i.Z_FINISH,super(L,q),this[o]=i.Z_FULL_FLUSH,this[b]=L.level,this[E]=L.strategy}params(L,q){if(!this[g]){if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[b]!==L||this[E]!==q){this.flush(i.Z_SYNC_FLUSH),l(this[d],"zlib binding closed");let V=this[d].flush;this[d].flush=(et,I)=>{this.flush(et),I()};try{this[d].params(L,q)}finally{this[d].flush=V}this[d]&&(this[b]=L,this[E]=q)}}}},m=class extends v{constructor(L){super(L,"Deflate")}},_=class extends v{constructor(L){super(L,"Inflate")}},S=Symbol("_portable"),A=class extends v{constructor(L){super(L,"Gzip"),this[S]=L&&!!L.portable}[r](L){return this[S]?(this[S]=!1,L[9]=255,super[r](L)):super[r](L)}},F=class extends v{constructor(L){super(L,"Gunzip")}},P=class extends v{constructor(L){super(L,"DeflateRaw")}},T=class extends v{constructor(L){super(L,"InflateRaw")}},O=class extends v{constructor(L){super(L,"Unzip")}},x=class extends w{constructor(L,q){L=L||{},L.flush=L.flush||i.BROTLI_OPERATION_PROCESS,L.finishFlush=L.finishFlush||i.BROTLI_OPERATION_FINISH,super(L,q),this[o]=i.BROTLI_OPERATION_FLUSH}},k=class extends x{constructor(L){super(L,"BrotliCompress")}},U=class extends x{constructor(L){super(L,"BrotliDecompress")}};t.Deflate=m,t.Inflate=_,t.Gzip=A,t.Gunzip=F,t.DeflateRaw=P,t.InflateRaw=T,t.Unzip=O,typeof s.BrotliCompress=="function"?(t.BrotliCompress=k,t.BrotliDecompress=U):t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),Fe=N((t,l)=>{B();var n=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;l.exports=n!=="win32"?s=>s:s=>s&&s.replace(/\\/g,"/")}),_r=N((t,l)=>{"use strict";B();var n=Er(),s=Fe(),i=Symbol("slurp");l.exports=class extends n{constructor(p,u,r){switch(super(),this.pause(),this.extended=u,this.globalExtended=r,this.header=p,this.startBlockSize=512*Math.ceil(p.size/512),this.blockRemain=this.startBlockSize,this.remain=p.size,this.type=p.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=s(p.path),this.mode=p.mode,this.mode&&(this.mode=this.mode&4095),this.uid=p.uid,this.gid=p.gid,this.uname=p.uname,this.gname=p.gname,this.size=p.size,this.mtime=p.mtime,this.atime=p.atime,this.ctime=p.ctime,this.linkpath=s(p.linkpath),this.uname=p.uname,this.gname=p.gname,u&&this[i](u),r&&this[i](r,!0)}write(p){let u=p.length;if(u>this.blockRemain)throw new Error("writing more to entry than is appropriate");let r=this.remain,e=this.blockRemain;return this.remain=Math.max(0,r-u),this.blockRemain=Math.max(0,e-u),this.ignore?!0:r>=u?super.write(p):super.write(p.slice(0,r))}[i](p,u){for(let r in p)p[r]!==null&&p[r]!==void 0&&!(u&&r==="path")&&(this[r]=r==="path"||r==="linkpath"?s(p[r]):p[r])}}}),Qn=N(t=>{"use strict";B(),t.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),t.code=new Map(Array.from(t.name).map(l=>[l[1],l[0]]))}),Ru=N((t,l)=>{"use strict";B();var n=(a,c)=>{if(Number.isSafeInteger(a))a<0?i(a,c):s(a,c);else throw Error("cannot encode number outside of javascript safe integer range");return c},s=(a,c)=>{c[0]=128;for(var o=c.length;o>1;o--)c[o-1]=a&255,a=Math.floor(a/256)},i=(a,c)=>{c[0]=255;var o=!1;a=a*-1;for(var d=c.length;d>1;d--){var h=a&255;a=Math.floor(a/256),o?c[d-1]=e(h):h===0?c[d-1]=0:(o=!0,c[d-1]=f(h))}},p=a=>{let c=a[0],o=c===128?r(a.slice(1,a.length)):c===255?u(a):null;if(o===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(o))throw Error("parsed number outside of javascript safe integer range");return o},u=a=>{for(var c=a.length,o=0,d=!1,h=c-1;h>-1;h--){var g=a[h],b;d?b=e(g):g===0?b=g:(d=!0,b=f(g)),b!==0&&(o-=b*Math.pow(256,c-h-1))}return o},r=a=>{for(var c=a.length,o=0,d=c-1;d>-1;d--){var h=a[d];h!==0&&(o+=h*Math.pow(256,c-d-1))}return o},e=a=>(255^a)&255,f=a=>(255^a)+1&255;l.exports={encode:n,parse:p}}),ke=N((t,l)=>{"use strict";B();var n=Qn(),s=Z("path").posix,i=Ru(),p=Symbol("slurp"),u=Symbol("type"),r=class{constructor(_,S,A,F){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[u]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(_)?this.decode(_,S||0,A,F):_&&this.set(_)}decode(_,S,A,F){if(S||(S=0),!_||!(_.length>=S+512))throw new Error("need 512 bytes for header");if(this.path=f(_,S,100),this.mode=o(_,S+100,8),this.uid=o(_,S+108,8),this.gid=o(_,S+116,8),this.size=o(_,S+124,12),this.mtime=a(_,S+136,12),this.cksum=o(_,S+148,12),this[p](A),this[p](F,!0),this[u]=f(_,S+156,1),this[u]===""&&(this[u]="0"),this[u]==="0"&&this.path.slice(-1)==="/"&&(this[u]="5"),this[u]==="5"&&(this.size=0),this.linkpath=f(_,S+157,100),_.slice(S+257,S+265).toString()==="ustar\x0000")if(this.uname=f(_,S+265,32),this.gname=f(_,S+297,32),this.devmaj=o(_,S+329,8),this.devmin=o(_,S+337,8),_[S+475]!==0){let T=f(_,S+345,155);this.path=T+"/"+this.path}else{let T=f(_,S+345,130);T&&(this.path=T+"/"+this.path),this.atime=a(_,S+476,12),this.ctime=a(_,S+488,12)}let P=8*32;for(let T=S;T<S+148;T++)P+=_[T];for(let T=S+156;T<S+512;T++)P+=_[T];this.cksumValid=P===this.cksum,this.cksum===null&&P===8*32&&(this.nullBlock=!0)}[p](_,S){for(let A in _)_[A]!==null&&_[A]!==void 0&&!(S&&A==="path")&&(this[A]=_[A])}encode(_,S){if(_||(_=this.block=Buffer.alloc(512),S=0),S||(S=0),!(_.length>=S+512))throw new Error("need 512 bytes for header");let A=this.ctime||this.atime?130:155,F=e(this.path||"",A),P=F[0],T=F[1];this.needPax=F[2],this.needPax=m(_,S,100,P)||this.needPax,this.needPax=b(_,S+100,8,this.mode)||this.needPax,this.needPax=b(_,S+108,8,this.uid)||this.needPax,this.needPax=b(_,S+116,8,this.gid)||this.needPax,this.needPax=b(_,S+124,12,this.size)||this.needPax,this.needPax=w(_,S+136,12,this.mtime)||this.needPax,_[S+156]=this[u].charCodeAt(0),this.needPax=m(_,S+157,100,this.linkpath)||this.needPax,_.write("ustar\x0000",S+257,8),this.needPax=m(_,S+265,32,this.uname)||this.needPax,this.needPax=m(_,S+297,32,this.gname)||this.needPax,this.needPax=b(_,S+329,8,this.devmaj)||this.needPax,this.needPax=b(_,S+337,8,this.devmin)||this.needPax,this.needPax=m(_,S+345,A,T)||this.needPax,_[S+475]!==0?this.needPax=m(_,S+345,155,T)||this.needPax:(this.needPax=m(_,S+345,130,T)||this.needPax,this.needPax=w(_,S+476,12,this.atime)||this.needPax,this.needPax=w(_,S+488,12,this.ctime)||this.needPax);let O=8*32;for(let x=S;x<S+148;x++)O+=_[x];for(let x=S+156;x<S+512;x++)O+=_[x];return this.cksum=O,b(_,S+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(_){for(let S in _)_[S]!==null&&_[S]!==void 0&&(this[S]=_[S])}get type(){return n.name.get(this[u])||this[u]}get typeKey(){return this[u]}set type(_){n.code.has(_)?this[u]=n.code.get(_):this[u]=_}},e=(_,S)=>{let A=_,F="",P,T=s.parse(_).root||".";if(Buffer.byteLength(A)<100)P=[A,F,!1];else{F=s.dirname(A),A=s.basename(A);do Buffer.byteLength(A)<=100&&Buffer.byteLength(F)<=S?P=[A,F,!1]:Buffer.byteLength(A)>100&&Buffer.byteLength(F)<=S?P=[A.slice(0,100-1),F,!0]:(A=s.join(s.basename(F),A),F=s.dirname(F));while(F!==T&&!P);P||(P=[_.slice(0,100-1),"",!0])}return P},f=(_,S,A)=>_.slice(S,S+A).toString("utf8").replace(/\0.*/,""),a=(_,S,A)=>c(o(_,S,A)),c=_=>_===null?null:new Date(_*1e3),o=(_,S,A)=>_[S]&128?i.parse(_.slice(S,S+A)):h(_,S,A),d=_=>isNaN(_)?null:_,h=(_,S,A)=>d(parseInt(_.slice(S,S+A).toString("utf8").replace(/\0.*$/,"").trim(),8)),g={12:8589934591,8:2097151},b=(_,S,A,F)=>F===null?!1:F>g[A]||F<0?(i.encode(F,_.slice(S,S+A)),!0):(E(_,S,A,F),!1),E=(_,S,A,F)=>_.write(y(F,A),S,A,"ascii"),y=(_,S)=>D(Math.floor(_).toString(8),S),D=(_,S)=>(_.length===S-1?_:new Array(S-_.length-1).join("0")+_+" ")+"\0",w=(_,S,A,F)=>F===null?!1:b(_,S,A,F.getTime()/1e3),v=new Array(156).join("\0"),m=(_,S,A,F)=>F===null?!1:(_.write(F+v,S,A,"utf8"),F.length!==Buffer.byteLength(F)||F.length>A);l.exports=r}),wr=N((t,l)=>{"use strict";B();var n=ke(),s=Z("path"),i=class{constructor(e,f){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=f||!1}encode(){let e=this.encodeBody();if(e==="")return null;let f=Buffer.byteLength(e),a=512*Math.ceil(1+f/512),c=Buffer.allocUnsafe(a);for(let o=0;o<512;o++)c[o]=0;new n({path:("PaxHeader/"+s.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:f,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(c),c.write(e,512,f,"utf8");for(let o=f+512;o<c.length;o++)c[o]=0;return c}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let f=this[e]instanceof Date?this[e].getTime()/1e3:this[e],a=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+f+`
|
22
|
+
`)}`}}};t.RequestError=z;var X=class extends z{constructor(K){super(`Redirected ${K.options.maxRedirects} times. Aborting.`,{},K),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};t.MaxRedirectsError=X;var rt=class extends z{constructor(K){super(`Response code ${K.statusCode} (${K.statusMessage})`,{},K.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};t.HTTPError=rt;var ht=class extends z{constructor(K,U){super(K.message,K,U),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};t.CacheError=ht;var it=class extends z{constructor(K,U){super(K.message,K,U),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};t.UploadError=it;var lt=class extends z{constructor(K,U,ut){super(K.message,K,ut),this.name="TimeoutError",this.event=K.event,this.timings=U}};t.TimeoutError=lt;var nt=class extends z{constructor(K,U){super(K.message,K,U),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};t.ReadError=nt;var ft=class extends z{constructor(K){super(`Unsupported protocol "${K.url.protocol}"`,{},K),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};t.UnsupportedProtocolError=ft;var vt=["socket","connect","continue","information","upgrade","timeout"],xt=class extends n.Duplex{constructor(K,U={},ut){super({autoDestroy:!1,highWaterMark:0}),this[$]=0,this[G]=0,this.requestInitialized=!1,this[W]=new Set,this.redirects=[],this[J]=!1,this[q]=!1,this[M]=[],this.retryCount=0,this._progressCallbacks=[];let bt=()=>this._unlockWrite(),pt=()=>this._lockWrite();this.on("pipe",St=>{St.prependListener("data",bt),St.on("data",pt),St.prependListener("end",bt),St.on("end",pt)}),this.on("unpipe",St=>{St.off("data",bt),St.off("data",pt),St.off("end",bt),St.off("end",pt)}),this.on("pipe",St=>{St instanceof u.IncomingMessage&&(this.options.headers={...St.headers,...this.options.headers})});let{json:at,body:dt,form:Et}=U;if((at||dt||Et)&&this._lockWrite(),t.kIsNormalizedAlready in U)this.options=U;else try{this.options=this.constructor.normalizeArguments(K,U,ut)}catch(St){h.default.nodeStream(U.body)&&U.body.destroy(),this.destroy(St);return}(async()=>{var St;try{this.options.body instanceof s.ReadStream&&await H(this.options.body);let{url:Ht}=this.options;if(!Ht)throw new TypeError("Missing `url` property");if(this.requestUrl=Ht.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(St=this[F])===null||St===void 0||St.destroy();return}for(let jt of this[M])jt();this[M].length=0,this.requestInitialized=!0}catch(Ht){if(Ht instanceof z){this._beforeError(Ht);return}this.destroyed||this.destroy(Ht)}})()}static normalizeArguments(K,U,ut){var bt,pt,at,dt,Et;let St=U;if(h.default.object(K)&&!h.default.urlInstance(K))U={...ut,...K,...U};else{if(K&&U&&U.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");U={...ut,...U},K!==void 0&&(U.url=K),h.default.urlInstance(U.url)&&(U.url=new i.URL(U.url.toString()))}if(U.cache===!1&&(U.cache=void 0),U.dnsCache===!1&&(U.dnsCache=void 0),h.assert.any([h.default.string,h.default.undefined],U.method),h.assert.any([h.default.object,h.default.undefined],U.headers),h.assert.any([h.default.string,h.default.urlInstance,h.default.undefined],U.prefixUrl),h.assert.any([h.default.object,h.default.undefined],U.cookieJar),h.assert.any([h.default.object,h.default.string,h.default.undefined],U.searchParams),h.assert.any([h.default.object,h.default.string,h.default.undefined],U.cache),h.assert.any([h.default.object,h.default.number,h.default.undefined],U.timeout),h.assert.any([h.default.object,h.default.undefined],U.context),h.assert.any([h.default.object,h.default.undefined],U.hooks),h.assert.any([h.default.boolean,h.default.undefined],U.decompress),h.assert.any([h.default.boolean,h.default.undefined],U.ignoreInvalidCookies),h.assert.any([h.default.boolean,h.default.undefined],U.followRedirect),h.assert.any([h.default.number,h.default.undefined],U.maxRedirects),h.assert.any([h.default.boolean,h.default.undefined],U.throwHttpErrors),h.assert.any([h.default.boolean,h.default.undefined],U.http2),h.assert.any([h.default.boolean,h.default.undefined],U.allowGetBody),h.assert.any([h.default.string,h.default.undefined],U.localAddress),h.assert.any([_.isDnsLookupIpVersion,h.default.undefined],U.dnsLookupIpVersion),h.assert.any([h.default.object,h.default.undefined],U.https),h.assert.any([h.default.boolean,h.default.undefined],U.rejectUnauthorized),U.https&&(h.assert.any([h.default.boolean,h.default.undefined],U.https.rejectUnauthorized),h.assert.any([h.default.function_,h.default.undefined],U.https.checkServerIdentity),h.assert.any([h.default.string,h.default.object,h.default.array,h.default.undefined],U.https.certificateAuthority),h.assert.any([h.default.string,h.default.object,h.default.array,h.default.undefined],U.https.key),h.assert.any([h.default.string,h.default.object,h.default.array,h.default.undefined],U.https.certificate),h.assert.any([h.default.string,h.default.undefined],U.https.passphrase),h.assert.any([h.default.string,h.default.buffer,h.default.array,h.default.undefined],U.https.pfx)),h.assert.any([h.default.object,h.default.undefined],U.cacheOptions),h.default.string(U.method)?U.method=U.method.toUpperCase():U.method="GET",U.headers===(ut==null?void 0:ut.headers)?U.headers={...U.headers}:U.headers=d({...ut==null?void 0:ut.headers,...U.headers}),"slashes"in U)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in U)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in U&&U.searchParams&&U.searchParams!==(ut==null?void 0:ut.searchParams)){let _t;if(h.default.string(U.searchParams)||U.searchParams instanceof i.URLSearchParams)_t=new i.URLSearchParams(U.searchParams);else{ct(U.searchParams),_t=new i.URLSearchParams;for(let Bt in U.searchParams){let Lt=U.searchParams[Bt];Lt===null?_t.append(Bt,""):Lt!==void 0&&_t.append(Bt,Lt)}}(bt=ut==null?void 0:ut.searchParams)===null||bt===void 0||bt.forEach((Bt,Lt)=>{_t.has(Lt)||_t.append(Lt,Bt)}),U.searchParams=_t}if(U.username=(pt=U.username)!==null&&pt!==void 0?pt:"",U.password=(at=U.password)!==null&&at!==void 0?at:"",h.default.undefined(U.prefixUrl)?U.prefixUrl=(dt=ut==null?void 0:ut.prefixUrl)!==null&&dt!==void 0?dt:"":(U.prefixUrl=U.prefixUrl.toString(),U.prefixUrl!==""&&!U.prefixUrl.endsWith("/")&&(U.prefixUrl+="/")),h.default.string(U.url)){if(U.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");U.url=w.default(U.prefixUrl+U.url,U)}else(h.default.undefined(U.url)&&U.prefixUrl!==""||U.protocol)&&(U.url=w.default(U.prefixUrl,U));if(U.url){"port"in U&&delete U.port;let{prefixUrl:_t}=U;Object.defineProperty(U,"prefixUrl",{set:Lt=>{let Ft=U.url;if(!Ft.href.startsWith(Lt))throw new Error(`Cannot change \`prefixUrl\` from ${_t} to ${Lt}: ${Ft.href}`);U.url=new i.URL(Lt+Ft.href.slice(_t.length)),_t=Lt},get:()=>_t});let{protocol:Bt}=U.url;if(Bt==="unix:"&&(Bt="http:",U.url=new i.URL(`http://unix${U.url.pathname}${U.url.search}`)),U.searchParams&&(U.url.search=U.searchParams.toString()),Bt!=="http:"&&Bt!=="https:")throw new ft(U);U.username===""?U.username=U.url.username:U.url.username=U.username,U.password===""?U.password=U.url.password:U.url.password=U.password}let{cookieJar:Ht}=U;if(Ht){let{setCookie:_t,getCookieString:Bt}=Ht;h.assert.function_(_t),h.assert.function_(Bt),_t.length===4&&Bt.length===0&&(_t=l.promisify(_t.bind(U.cookieJar)),Bt=l.promisify(Bt.bind(U.cookieJar)),U.cookieJar={setCookie:_t,getCookieString:Bt})}let{cache:jt}=U;if(jt&&(mt.has(jt)||mt.set(jt,new a((_t,Bt)=>{let Lt=_t[F](_t,Bt);return h.default.promise(Lt)&&(Lt.once=(Ft,kt)=>{if(Ft==="error")Lt.catch(kt);else if(Ft==="abort")(async()=>{try{(await Lt).once("abort",kt)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${Ft}`);return Lt}),Lt},jt))),U.cacheOptions={...U.cacheOptions},U.dnsCache===!0)T||(T=new f.default),U.dnsCache=T;else if(!h.default.undefined(U.dnsCache)&&!U.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${h.default(U.dnsCache)}`);h.default.number(U.timeout)?U.timeout={request:U.timeout}:ut&&U.timeout!==ut.timeout?U.timeout={...ut.timeout,...U.timeout}:U.timeout={...U.timeout},U.context||(U.context={});let ze=U.hooks===(ut==null?void 0:ut.hooks);U.hooks={...U.hooks};for(let _t of t.knownHookEvents)if(_t in U.hooks)if(h.default.array(U.hooks[_t]))U.hooks[_t]=[...U.hooks[_t]];else throw new TypeError(`Parameter \`${_t}\` must be an Array, got ${h.default(U.hooks[_t])}`);else U.hooks[_t]=[];if(ut&&!ze)for(let _t of t.knownHookEvents)ut.hooks[_t].length>0&&(U.hooks[_t]=[...ut.hooks[_t],...U.hooks[_t]]);if("family"in U&&A.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),ut!=null&&ut.https&&(U.https={...ut.https,...U.https}),"rejectUnauthorized"in U&&A.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in U&&A.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in U&&A.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in U&&A.default('"options.key" was never documented, please use "options.https.key"'),"cert"in U&&A.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in U&&A.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in U&&A.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in U)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(U.agent){for(let _t in U.agent)if(_t!=="http"&&_t!=="https"&&_t!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${_t}\``)}return U.maxRedirects=(Et=U.maxRedirects)!==null&&Et!==void 0?Et:0,t.setNonEnumerableProperties([ut,St],U),x.default(U,ut)}_lockWrite(){let K=()=>{throw new TypeError("The payload has been already provided")};this.write=K,this.end=K}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:K}=this,{headers:U}=K,ut=!h.default.undefined(K.form),bt=!h.default.undefined(K.json),pt=!h.default.undefined(K.body),at=ut||bt||pt,dt=t.withoutBody.has(K.method)&&!(K.method==="GET"&&K.allowGetBody);if(this._cannotHaveBody=dt,at){if(dt)throw new TypeError(`The \`${K.method}\` method cannot be used with a body`);if([pt,ut,bt].filter(Et=>Et).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(pt&&!(K.body instanceof n.Readable)&&!h.default.string(K.body)&&!h.default.buffer(K.body)&&!b.default(K.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(ut&&!h.default.object(K.form))throw new TypeError("The `form` option must be an Object");{let Et=!h.default.string(U["content-type"]);pt?(b.default(K.body)&&Et&&(U["content-type"]=`multipart/form-data; boundary=${K.body.getBoundary()}`),this[tt]=K.body):ut?(Et&&(U["content-type"]="application/x-www-form-urlencoded"),this[tt]=new i.URLSearchParams(K.form).toString()):(Et&&(U["content-type"]="application/json"),this[tt]=K.stringifyJson(K.json));let St=await y.default(this[tt],K.headers);h.default.undefined(U["content-length"])&&h.default.undefined(U["transfer-encoding"])&&!dt&&!h.default.undefined(St)&&(U["content-length"]=String(St))}}else dt?this._lockWrite():this._unlockWrite();this[R]=Number(U["content-length"])||void 0}async _onResponseBase(K){let{options:U}=this,{url:ut}=U;this[Y]=K,U.decompress&&(K=c(K));let bt=K.statusCode,pt=K;pt.statusMessage=pt.statusMessage?pt.statusMessage:p.STATUS_CODES[bt],pt.url=U.url.toString(),pt.requestUrl=this.requestUrl,pt.redirectUrls=this.redirects,pt.request=this,pt.isFromCache=K.fromCache||!1,pt.ip=this.ip,pt.retryCount=this.retryCount,this[P]=pt.isFromCache,this[I]=Number(K.headers["content-length"])||void 0,this[O]=K,K.once("end",()=>{this[I]=this[$],this.emit("downloadProgress",this.downloadProgress)}),K.once("error",dt=>{K.destroy(),this._beforeError(new nt(dt,this))}),K.once("aborted",()=>{this._beforeError(new nt({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let at=K.headers["set-cookie"];if(h.default.object(U.cookieJar)&&at){let dt=at.map(async Et=>U.cookieJar.setCookie(Et,ut.toString()));U.ignoreInvalidCookies&&(dt=dt.map(async Et=>Et.catch(()=>{})));try{await Promise.all(dt)}catch(Et){this._beforeError(Et);return}}if(U.followRedirect&&K.headers.location&&V.has(bt)){if(K.resume(),this[F]&&(this[j](),delete this[F],this[Q]()),(bt===303&&U.method!=="GET"&&U.method!=="HEAD"||!U.methodRewriting)&&(U.method="GET","body"in U&&delete U.body,"json"in U&&delete U.json,"form"in U&&delete U.form,this[tt]=void 0,delete U.headers["content-length"]),this.redirects.length>=U.maxRedirects){this._beforeError(new X(this));return}try{let dt=function(jt){return jt.protocol==="unix:"||jt.hostname==="unix"},Et=Buffer.from(K.headers.location,"binary").toString(),St=new i.URL(Et,ut),Ht=St.toString();if(decodeURI(Ht),!dt(ut)&&dt(St)){this._beforeError(new z("Cannot redirect to UNIX socket",{},this));return}St.hostname!==ut.hostname||St.port!==ut.port?("host"in U.headers&&delete U.headers.host,"cookie"in U.headers&&delete U.headers.cookie,"authorization"in U.headers&&delete U.headers.authorization,(U.username||U.password)&&(U.username="",U.password="")):(St.username=U.username,St.password=U.password),this.redirects.push(Ht),U.url=St;for(let jt of U.hooks.beforeRedirect)await jt(U,pt);this.emit("redirect",pt,U),await this._makeRequest()}catch(dt){this._beforeError(dt);return}return}if(U.isStream&&U.throwHttpErrors&&!S.isResponseOk(pt)){this._beforeError(new rt(pt));return}K.on("readable",()=>{this[q]&&this._read()}),this.on("resume",()=>{K.resume()}),this.on("pause",()=>{K.pause()}),K.once("end",()=>{this.push(null)}),this.emit("response",K);for(let dt of this[W])if(!dt.headersSent){for(let Et in K.headers){let St=U.decompress?Et!=="content-encoding":!0,Ht=K.headers[Et];St&&dt.setHeader(Et,Ht)}dt.statusCode=bt}}async _onResponse(K){try{await this._onResponseBase(K)}catch(U){this._beforeError(U)}}_onRequest(K){let{options:U}=this,{timeout:ut,url:bt}=U;e.default(K),this[j]=g.default(K,ut,bt);let pt=U.cache?"cacheableResponse":"response";K.once(pt,Et=>{this._onResponse(Et)}),K.once("error",Et=>{var St;K.destroy(),(St=K.res)===null||St===void 0||St.removeAllListeners("end"),Et=Et instanceof g.TimeoutError?new lt(Et,this.timings,this):new z(Et.message,Et,this),this._beforeError(Et)}),this[Q]=E.default(K,this,vt),this[F]=K,this.emit("uploadProgress",this.uploadProgress);let at=this[tt],dt=this.redirects.length===0?this:K;h.default.nodeStream(at)?(at.pipe(dt),at.once("error",Et=>{this._beforeError(new it(Et,this))})):(this._unlockWrite(),h.default.undefined(at)?(this._cannotHaveBody||this._noPipe)&&(dt.end(),this._lockWrite()):(this._writeRequest(at,void 0,()=>{}),dt.end(),this._lockWrite())),this.emit("request",K)}async _createCacheableRequest(K,U){return new Promise((ut,bt)=>{Object.assign(U,D.default(K)),delete U.url;let pt,at=mt.get(U.cache)(U,async dt=>{dt._readableState.autoDestroy=!1,pt&&(await pt).emit("cacheableResponse",dt),ut(dt)});U.url=K,at.once("error",bt),at.once("request",async dt=>{pt=dt,ut(pt)})})}async _makeRequest(){var K,U,ut,bt,pt;let{options:at}=this,{headers:dt}=at;for(let kt in dt)if(h.default.undefined(dt[kt]))delete dt[kt];else if(h.default.null_(dt[kt]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${kt}\` header`);if(at.decompress&&h.default.undefined(dt["accept-encoding"])&&(dt["accept-encoding"]=ot?"gzip, deflate, br":"gzip, deflate"),at.cookieJar){let kt=await at.cookieJar.getCookieString(at.url.toString());h.default.nonEmptyString(kt)&&(at.headers.cookie=kt)}for(let kt of at.hooks.beforeRequest){let We=await kt(at);if(!h.default.undefined(We)){at.request=()=>We;break}}at.body&&this[tt]!==at.body&&(this[tt]=at.body);let{agent:Et,request:St,timeout:Ht,url:jt}=at;if(at.dnsCache&&!("lookup"in at)&&(at.lookup=at.dnsCache.lookup),jt.hostname==="unix"){let kt=/(?<socketPath>.+?):(?<path>.+)/.exec(`${jt.pathname}${jt.search}`);if(kt!=null&&kt.groups){let{socketPath:We,path:Is}=kt.groups;Object.assign(at,{socketPath:We,path:Is,host:""})}}let ze=jt.protocol==="https:",_t;at.http2?_t=o.auto:_t=ze?r.request:p.request;let Bt=(K=at.request)!==null&&K!==void 0?K:_t,Lt=at.cache?this._createCacheableRequest:Bt;Et&&!at.http2&&(at.agent=Et[ze?"https":"http"]),at[F]=Bt,delete at.request,delete at.timeout;let Ft=at;if(Ft.shared=(U=at.cacheOptions)===null||U===void 0?void 0:U.shared,Ft.cacheHeuristic=(ut=at.cacheOptions)===null||ut===void 0?void 0:ut.cacheHeuristic,Ft.immutableMinTimeToLive=(bt=at.cacheOptions)===null||bt===void 0?void 0:bt.immutableMinTimeToLive,Ft.ignoreCargoCult=(pt=at.cacheOptions)===null||pt===void 0?void 0:pt.ignoreCargoCult,at.dnsLookupIpVersion!==void 0)try{Ft.family=_.dnsLookupIpVersionToFamily(at.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}at.https&&("rejectUnauthorized"in at.https&&(Ft.rejectUnauthorized=at.https.rejectUnauthorized),at.https.checkServerIdentity&&(Ft.checkServerIdentity=at.https.checkServerIdentity),at.https.certificateAuthority&&(Ft.ca=at.https.certificateAuthority),at.https.certificate&&(Ft.cert=at.https.certificate),at.https.key&&(Ft.key=at.https.key),at.https.passphrase&&(Ft.passphrase=at.https.passphrase),at.https.pfx&&(Ft.pfx=at.https.pfx));try{let kt=await Lt(jt,Ft);h.default.undefined(kt)&&(kt=_t(jt,Ft)),at.request=St,at.timeout=Ht,at.agent=Et,at.https&&("rejectUnauthorized"in at.https&&delete Ft.rejectUnauthorized,at.https.checkServerIdentity&&delete Ft.checkServerIdentity,at.https.certificateAuthority&&delete Ft.ca,at.https.certificate&&delete Ft.cert,at.https.key&&delete Ft.key,at.https.passphrase&&delete Ft.passphrase,at.https.pfx&&delete Ft.pfx),gt(kt)?this._onRequest(kt):this.writable?(this.once("finish",()=>{this._onResponse(kt)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(kt)}catch(kt){throw kt instanceof a.CacheError?new ht(kt,this):new z(kt.message,kt,this)}}async _error(K){try{for(let U of this.options.hooks.beforeError)K=await U(K)}catch(U){K=new z(U.message,U,this)}this.destroy(K)}_beforeError(K){if(this[J])return;let{options:U}=this,ut=this.retryCount+1;this[J]=!0,K instanceof z||(K=new z(K.message,K,this));let bt=K,{response:pt}=bt;(async()=>{if(pt&&!pt.body){pt.setEncoding(this._readableState.encoding);try{pt.rawBody=await m.default(pt),pt.body=pt.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let at;try{let dt;pt&&"retry-after"in pt.headers&&(dt=Number(pt.headers["retry-after"]),Number.isNaN(dt)?(dt=Date.parse(pt.headers["retry-after"])-Date.now(),dt<=0&&(dt=1)):dt*=1e3),at=await U.retry.calculateDelay({attemptCount:ut,retryOptions:U.retry,error:bt,retryAfter:dt,computedValue:L.default({attemptCount:ut,retryOptions:U.retry,error:bt,retryAfter:dt,computedValue:0})})}catch(dt){this._error(new z(dt.message,dt,this));return}if(at){let dt=async()=>{try{for(let Et of this.options.hooks.beforeRetry)await Et(this.options,bt,ut)}catch(Et){this._error(new z(Et.message,K,this));return}this.destroyed||(this.destroy(),this.emit("retry",ut,K))};this[et]=setTimeout(dt,at);return}}this._error(bt)})()}_read(){this[q]=!0;let K=this[O];if(K&&!this[J]){K.readableLength&&(this[q]=!1);let U;for(;(U=K.read())!==null;){this[$]+=U.length,this[k]=!0;let ut=this.downloadProgress;ut.percent<1&&this.emit("downloadProgress",ut),this.push(U)}}}_write(K,U,ut){let bt=()=>{this._writeRequest(K,U,ut)};this.requestInitialized?bt():this[M].push(bt)}_writeRequest(K,U,ut){this[F].destroyed||(this._progressCallbacks.push(()=>{this[G]+=Buffer.byteLength(K,U);let bt=this.uploadProgress;bt.percent<1&&this.emit("uploadProgress",bt)}),this[F].write(K,U,bt=>{!bt&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),ut(bt)}))}_final(K){let U=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(F in this)){K();return}if(this[F].destroyed){K();return}this[F].end(ut=>{ut||(this[R]=this[G],this.emit("uploadProgress",this.uploadProgress),this[F].emit("upload-complete")),K(ut)})};this.requestInitialized?U():this[M].push(U)}_destroy(K,U){var ut;this[J]=!0,clearTimeout(this[et]),F in this&&(this[j](),!((ut=this[O])===null||ut===void 0)&&ut.complete||this[F].destroy()),K!==null&&!h.default.undefined(K)&&!(K instanceof z)&&(K=new z(K.message,K,this)),U(K)}get _isAboutToError(){return this[J]}get ip(){var K;return(K=this.socket)===null||K===void 0?void 0:K.remoteAddress}get aborted(){var K,U,ut;return((U=(K=this[F])===null||K===void 0?void 0:K.destroyed)!==null&&U!==void 0?U:this.destroyed)&&!(!((ut=this[Y])===null||ut===void 0)&&ut.complete)}get socket(){var K,U;return(U=(K=this[F])===null||K===void 0?void 0:K.socket)!==null&&U!==void 0?U:void 0}get downloadProgress(){let K;return this[I]?K=this[$]/this[I]:this[I]===this[$]?K=1:K=0,{percent:K,transferred:this[$],total:this[I]}}get uploadProgress(){let K;return this[R]?K=this[G]/this[R]:this[R]===this[G]?K=1:K=0,{percent:K,transferred:this[G],total:this[R]}}get timings(){var K;return(K=this[F])===null||K===void 0?void 0:K.timings}get isFromCache(){return this[P]}pipe(K,U){if(this[k])throw new Error("Failed to pipe. The response has been emitted already.");return K instanceof u.ServerResponse&&this[W].add(K),super.pipe(K,U)}unpipe(K){return K instanceof u.ServerResponse&&this[W].delete(K),super.unpipe(K),this}};t.default=xt}),Xe=N(t=>{"use strict";B();var l=t&&t.__createBinding||(Object.create?function(u,r,e,f){f===void 0&&(f=e),Object.defineProperty(u,f,{enumerable:!0,get:function(){return r[e]}})}:function(u,r,e,f){f===void 0&&(f=e),u[f]=r[e]}),n=t&&t.__exportStar||function(u,r){for(var e in u)e!=="default"&&!Object.prototype.hasOwnProperty.call(r,e)&&l(r,u,e)};Object.defineProperty(t,"__esModule",{value:!0}),t.CancelError=t.ParseError=void 0;var s=Ze(),i=class extends s.RequestError{constructor(u,r){let{options:e}=r.request;super(`${u.message} in "${e.url.toString()}"`,u,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};t.ParseError=i;var p=class extends s.RequestError{constructor(u){super("Promise was canceled",{},u),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};t.CancelError=p,n(Ze(),t)}),Au=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Xe(),n=(s,i,p,u)=>{let{rawBody:r}=s;try{if(i==="text")return r.toString(u);if(i==="json")return r.length===0?"":p(r.toString());if(i==="buffer")return r;throw new l.ParseError({message:`Unknown body type '${i}'`,name:"Error"},s)}catch(e){throw new l.ParseError(e,s)}};t.default=n}),Yn=N(t=>{"use strict";B();var l=t&&t.__createBinding||(Object.create?function(h,y,b,E){E===void 0&&(E=b),Object.defineProperty(h,E,{enumerable:!0,get:function(){return y[b]}})}:function(h,y,b,E){E===void 0&&(E=b),h[E]=y[b]}),n=t&&t.__exportStar||function(h,y){for(var b in h)b!=="default"&&!Object.prototype.hasOwnProperty.call(y,b)&&l(y,h,b)};Object.defineProperty(t,"__esModule",{value:!0});var s=Z("events"),i=se(),p=Go(),u=Xe(),r=Au(),e=Ze(),f=zn(),a=Wn(),c=Vn(),o=["request","response","redirect","uploadProgress","downloadProgress"];function d(h){let y,b,E=new s.EventEmitter,g=new p((w,v,m)=>{let _=S=>{let A=new e.default(void 0,h);A.retryCount=S,A._noPipe=!0,m(()=>A.destroy()),m.shouldReject=!1,m(()=>v(new u.CancelError(A))),y=A,A.once("response",async T=>{var F;if(T.retryCount=S,T.request.aborted)return;let O;try{O=await a.default(A),T.rawBody=O}catch{return}if(A._isAboutToError)return;let I=((F=T.headers["content-encoding"])!==null&&F!==void 0?F:"").toLowerCase(),$=["gzip","deflate","br"].includes(I),{options:R}=A;if($&&!R.decompress)T.body=O;else try{T.body=r.default(T,R.responseType,R.parseJson,R.encoding)}catch(G){if(T.body=O.toString(),c.isResponseOk(T)){A._beforeError(G);return}}try{for(let[G,W]of R.hooks.afterResponse.entries())T=await W(T,async Q=>{let P=e.default.normalizeArguments(void 0,{...Q,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},R);P.hooks.afterResponse=P.hooks.afterResponse.slice(0,G);for(let k of P.hooks.beforeRetry)await k(P);let j=d(P);return m(()=>{j.catch(()=>{}),j.cancel()}),j})}catch(G){A._beforeError(new u.RequestError(G.message,G,A));return}if(b=T,!c.isResponseOk(T)){A._beforeError(new u.HTTPError(T));return}A.destroy(),w(A.options.resolveBodyOnly?T.body:T)});let x=T=>{if(g.isCanceled)return;let{options:F}=A;if(T instanceof u.HTTPError&&!F.throwHttpErrors){let{response:O}=T;w(A.options.resolveBodyOnly?O.body:O);return}v(T)};A.once("error",x);let L=A.options.body;A.once("retry",(T,F)=>{var O,I;if(L===((O=F.request)===null||O===void 0?void 0:O.options.body)&&i.default.nodeStream((I=F.request)===null||I===void 0?void 0:I.options.body)){x(F);return}_(T)}),f.default(A,E,o)};_(0)});g.on=(w,v)=>(E.on(w,v),g);let D=w=>{let v=(async()=>{await g;let{options:m}=b.request;return r.default(b,w,m.parseJson,m.encoding)})();return Object.defineProperties(v,Object.getOwnPropertyDescriptors(g)),v};return g.json=()=>{let{headers:w}=y.options;return!y.writableFinished&&w.accept===void 0&&(w.accept="application/json"),D("json")},g.buffer=()=>D("buffer"),g.text=()=>D("text"),g}t.default=d,n(Xe(),t)}),Cu=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Xe();function n(s,...i){let p=(async()=>{if(s instanceof l.RequestError)try{for(let r of i)if(r)for(let e of r)s=await e(s)}catch(r){s=r}throw s})(),u=()=>p;return p.json=u,p.text=u,p.buffer=u,p.on=u,p}t.default=n}),xu=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=se();function n(s){for(let i of Object.values(s))(l.default.plainObject(i)||l.default.array(i))&&n(i);return Object.freeze(s)}t.default=n}),Fu=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0})}),Nn=N(t=>{"use strict";B();var l=t&&t.__createBinding||(Object.create?function(E,g,D,w){w===void 0&&(w=D),Object.defineProperty(E,w,{enumerable:!0,get:function(){return g[D]}})}:function(E,g,D,w){w===void 0&&(w=D),E[w]=g[D]}),n=t&&t.__exportStar||function(E,g){for(var D in E)D!=="default"&&!Object.prototype.hasOwnProperty.call(g,D)&&l(g,E,D)};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHandler=void 0;var s=se(),i=Yn(),p=Cu(),u=Ze(),r=xu(),e={RequestError:i.RequestError,CacheError:i.CacheError,ReadError:i.ReadError,HTTPError:i.HTTPError,MaxRedirectsError:i.MaxRedirectsError,TimeoutError:i.TimeoutError,ParseError:i.ParseError,CancelError:i.CancelError,UnsupportedProtocolError:i.UnsupportedProtocolError,UploadError:i.UploadError},f=async E=>new Promise(g=>{setTimeout(g,E)}),{normalizeArguments:a}=u.default,c=(...E)=>{let g;for(let D of E)g=a(void 0,D,g);return g},o=E=>E.isStream?new u.default(void 0,E):i.default(E),d=E=>"defaults"in E&&"options"in E.defaults,h=["get","post","put","patch","head","delete"];t.defaultHandler=(E,g)=>g(E);var y=(E,g)=>{if(E)for(let D of E)D(g)},b=E=>{E._rawHandlers=E.handlers,E.handlers=E.handlers.map(w=>(v,m)=>{let _,S=w(v,A=>(_=m(A),_));if(S!==_&&!v.isStream&&_){let A=S,{then:x,catch:L,finally:T}=A;Object.setPrototypeOf(A,Object.getPrototypeOf(_)),Object.defineProperties(A,Object.getOwnPropertyDescriptors(_)),A.then=x,A.catch=L,A.finally=T}return S});let g=(w,v={},m)=>{var _,S;let A=0,x=L=>E.handlers[A++](L,A===E.handlers.length?o:x);if(s.default.plainObject(w)){let L={...w,...v};u.setNonEnumerableProperties([w,v],L),v=L,w=void 0}try{let L;try{y(E.options.hooks.init,v),y((_=v.hooks)===null||_===void 0?void 0:_.init,v)}catch(F){L=F}let T=a(w,v,m!=null?m:E.options);if(T[u.kIsNormalizedAlready]=!0,L)throw new i.RequestError(L.message,L,T);return x(T)}catch(L){if(v.isStream)throw L;return p.default(L,E.options.hooks.beforeError,(S=v.hooks)===null||S===void 0?void 0:S.beforeError)}};g.extend=(...w)=>{let v=[E.options],m=[...E._rawHandlers],_;for(let S of w)d(S)?(v.push(S.defaults.options),m.push(...S.defaults._rawHandlers),_=S.defaults.mutableDefaults):(v.push(S),"handlers"in S&&m.push(...S.handlers),_=S.mutableDefaults);return m=m.filter(S=>S!==t.defaultHandler),m.length===0&&m.push(t.defaultHandler),b({options:c(...v),handlers:m,mutableDefaults:!!_})};let D=async function*(w,v){let m=a(w,v,E.options);m.resolveBodyOnly=!1;let _=m.pagination;if(!s.default.object(_))throw new TypeError("`options.pagination` must be implemented");let S=[],{countLimit:A}=_,x=0;for(;x<_.requestLimit;){x!==0&&await f(_.backoff);let L=await g(void 0,void 0,m),T=await _.transform(L),F=[];for(let I of T)if(_.filter(I,S,F)&&(!_.shouldContinue(I,S,F)||(yield I,_.stackAllItems&&S.push(I),F.push(I),--A<=0)))return;let O=_.paginate(L,S,F);if(O===!1)return;O===L.request.options?m=L.request.options:O!==void 0&&(m=a(void 0,O,m)),x++}};g.paginate=D,g.paginate.all=async(w,v)=>{let m=[];for await(let _ of D(w,v))m.push(_);return m},g.paginate.each=D,g.stream=(w,v)=>g(w,{...v,isStream:!0});for(let w of h)g[w]=(v,m)=>g(v,{...m,method:w}),g.stream[w]=(v,m)=>g(v,{...m,method:w,isStream:!0});return Object.assign(g,e),Object.defineProperty(g,"defaults",{value:E.mutableDefaults?E:r.default(E),writable:E.mutableDefaults,configurable:E.mutableDefaults,enumerable:!0}),g.mergeOptions=c,g};t.default=b,n(Fu(),t)}),ku=N((t,l)=>{"use strict";B();var n=t&&t.__createBinding||(Object.create?function(e,f,a,c){c===void 0&&(c=a),Object.defineProperty(e,c,{enumerable:!0,get:function(){return f[a]}})}:function(e,f,a,c){c===void 0&&(c=a),e[c]=f[a]}),s=t&&t.__exportStar||function(e,f){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(f,a)&&n(f,e,a)};Object.defineProperty(t,"__esModule",{value:!0});var i=Z("url"),p=Nn(),u={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:e})=>e},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:e=>e.request.options.responseType==="json"?e.body:JSON.parse(e.body),paginate:e=>{if(!Reflect.has(e.headers,"link"))return!1;let f=e.headers.link.split(","),a;for(let c of f){let o=c.split(";");if(o[1].includes("next")){a=o[0].trimStart().trim(),a=a.slice(1,-1);break}}return a?{url:new i.URL(a)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:e=>JSON.parse(e),stringifyJson:e=>JSON.stringify(e),cacheOptions:{}},handlers:[p.defaultHandler],mutableDefaults:!1},r=p.default(u);t.default=r,l.exports=r,l.exports.default=r,l.exports.__esModule=!0,s(Nn(),t),s(Yn(),t)}),xe=N((t,l)=>{"use strict";B();var n=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);l.exports=s=>s?Object.keys(s).map(i=>[n.has(i)?n.get(i):i,s[i]]).reduce((i,p)=>(i[p[0]]=p[1],i),Object.create(null)):{}}),Er=N((t,l)=>{"use strict";B();var n=typeof process=="object"&&process?process:{stdout:null,stderr:null},s=Z("events"),i=Z("stream"),p=Z("string_decoder").StringDecoder,u=Symbol("EOF"),r=Symbol("maybeEmitEnd"),e=Symbol("emittedEnd"),f=Symbol("emittingEnd"),a=Symbol("emittedError"),c=Symbol("closed"),o=Symbol("read"),d=Symbol("flush"),h=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),E=Symbol("flowing"),g=Symbol("paused"),D=Symbol("resume"),w=Symbol("buffer"),v=Symbol("pipes"),m=Symbol("bufferLength"),_=Symbol("bufferPush"),S=Symbol("bufferShift"),A=Symbol("objectMode"),x=Symbol("destroyed"),L=Symbol("emitData"),T=Symbol("emitEnd"),F=Symbol("emitEnd2"),O=Symbol("async"),I=J=>Promise.resolve().then(J),$=global._MP_NO_ITERATOR_SYMBOLS_!=="1",R=$&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),G=$&&Symbol.iterator||Symbol("iterator not implemented"),W=J=>J==="end"||J==="finish"||J==="prefinish",Q=J=>J instanceof ArrayBuffer||typeof J=="object"&&J.constructor&&J.constructor.name==="ArrayBuffer"&&J.byteLength>=0,P=J=>!Buffer.isBuffer(J)&&ArrayBuffer.isView(J),j=class{constructor(J,q,tt){this.src=J,this.dest=q,this.opts=tt,this.ondrain=()=>J[D](),q.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},k=class extends j{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(J,q,tt){super(J,q,tt),this.proxyErrors=M=>q.emit("error",M),J.on("error",this.proxyErrors)}};l.exports=class Kn extends i{constructor(q){super(),this[E]=!1,this[g]=!1,this[v]=[],this[w]=[],this[A]=q&&q.objectMode||!1,this[A]?this[y]=null:this[y]=q&&q.encoding||null,this[y]==="buffer"&&(this[y]=null),this[O]=q&&!!q.async||!1,this[b]=this[y]?new p(this[y]):null,this[u]=!1,this[e]=!1,this[f]=!1,this[c]=!1,this[a]=null,this.writable=!0,this.readable=!0,this[m]=0,this[x]=!1,q&&q.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[w]}),q&&q.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[v]})}get bufferLength(){return this[m]}get encoding(){return this[y]}set encoding(q){if(this[A])throw new Error("cannot set encoding in objectMode");if(this[y]&&q!==this[y]&&(this[b]&&this[b].lastNeed||this[m]))throw new Error("cannot change encoding");this[y]!==q&&(this[b]=q?new p(q):null,this[w].length&&(this[w]=this[w].map(tt=>this[b].write(tt)))),this[y]=q}setEncoding(q){this.encoding=q}get objectMode(){return this[A]}set objectMode(q){this[A]=this[A]||!!q}get async(){return this[O]}set async(q){this[O]=this[O]||!!q}write(q,tt,M){if(this[u])throw new Error("write after end");if(this[x])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof tt=="function"&&(M=tt,tt="utf8"),tt||(tt="utf8");let Y=this[O]?I:et=>et();return!this[A]&&!Buffer.isBuffer(q)&&(P(q)?q=Buffer.from(q.buffer,q.byteOffset,q.byteLength):Q(q)?q=Buffer.from(q):typeof q!="string"&&(this.objectMode=!0)),this[A]?(this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",q):this[_](q),this[m]!==0&&this.emit("readable"),M&&Y(M),this.flowing):q.length?(typeof q=="string"&&!(tt===this[y]&&!this[b].lastNeed)&&(q=Buffer.from(q,tt)),Buffer.isBuffer(q)&&this[y]&&(q=this[b].write(q)),this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",q):this[_](q),this[m]!==0&&this.emit("readable"),M&&Y(M),this.flowing):(this[m]!==0&&this.emit("readable"),M&&Y(M),this.flowing)}read(q){if(this[x])return null;if(this[m]===0||q===0||q>this[m])return this[r](),null;this[A]&&(q=null),this[w].length>1&&!this[A]&&(this.encoding?this[w]=[this[w].join("")]:this[w]=[Buffer.concat(this[w],this[m])]);let tt=this[o](q||null,this[w][0]);return this[r](),tt}[o](q,tt){return q===tt.length||q===null?this[S]():(this[w][0]=tt.slice(q),tt=tt.slice(0,q),this[m]-=q),this.emit("data",tt),!this[w].length&&!this[u]&&this.emit("drain"),tt}end(q,tt,M){return typeof q=="function"&&(M=q,q=null),typeof tt=="function"&&(M=tt,tt="utf8"),q&&this.write(q,tt),M&&this.once("end",M),this[u]=!0,this.writable=!1,(this.flowing||!this[g])&&this[r](),this}[D](){this[x]||(this[g]=!1,this[E]=!0,this.emit("resume"),this[w].length?this[d]():this[u]?this[r]():this.emit("drain"))}resume(){return this[D]()}pause(){this[E]=!1,this[g]=!0}get destroyed(){return this[x]}get flowing(){return this[E]}get paused(){return this[g]}[_](q){this[A]?this[m]+=1:this[m]+=q.length,this[w].push(q)}[S](){return this[w].length&&(this[A]?this[m]-=1:this[m]-=this[w][0].length),this[w].shift()}[d](q){do;while(this[h](this[S]()));!q&&!this[w].length&&!this[u]&&this.emit("drain")}[h](q){return q?(this.emit("data",q),this.flowing):!1}pipe(q,tt){if(this[x])return;let M=this[e];return tt=tt||{},q===n.stdout||q===n.stderr?tt.end=!1:tt.end=tt.end!==!1,tt.proxyErrors=!!tt.proxyErrors,M?tt.end&&q.end():(this[v].push(tt.proxyErrors?new k(this,q,tt):new j(this,q,tt)),this[O]?I(()=>this[D]()):this[D]()),q}unpipe(q){let tt=this[v].find(M=>M.dest===q);tt&&(this[v].splice(this[v].indexOf(tt),1),tt.unpipe())}addListener(q,tt){return this.on(q,tt)}on(q,tt){let M=super.on(q,tt);return q==="data"&&!this[v].length&&!this.flowing?this[D]():q==="readable"&&this[m]!==0?super.emit("readable"):W(q)&&this[e]?(super.emit(q),this.removeAllListeners(q)):q==="error"&&this[a]&&(this[O]?I(()=>tt.call(this,this[a])):tt.call(this,this[a])),M}get emittedEnd(){return this[e]}[r](){!this[f]&&!this[e]&&!this[x]&&this[w].length===0&&this[u]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[c]&&this.emit("close"),this[f]=!1)}emit(q,tt,...M){if(q!=="error"&&q!=="close"&&q!==x&&this[x])return;if(q==="data")return tt?this[O]?I(()=>this[L](tt)):this[L](tt):!1;if(q==="end")return this[T]();if(q==="close"){if(this[c]=!0,!this[e]&&!this[x])return;let et=super.emit("close");return this.removeAllListeners("close"),et}else if(q==="error"){this[a]=tt;let et=super.emit("error",tt);return this[r](),et}else if(q==="resume"){let et=super.emit("resume");return this[r](),et}else if(q==="finish"||q==="prefinish"){let et=super.emit(q);return this.removeAllListeners(q),et}let Y=super.emit(q,tt,...M);return this[r](),Y}[L](q){for(let M of this[v])M.dest.write(q)===!1&&this.pause();let tt=super.emit("data",q);return this[r](),tt}[T](){this[e]||(this[e]=!0,this.readable=!1,this[O]?I(()=>this[F]()):this[F]())}[F](){if(this[b]){let tt=this[b].end();if(tt){for(let M of this[v])M.dest.write(tt);super.emit("data",tt)}}for(let tt of this[v])tt.end();let q=super.emit("end");return this.removeAllListeners("end"),q}collect(){let q=[];this[A]||(q.dataLength=0);let tt=this.promise();return this.on("data",M=>{q.push(M),this[A]||(q.dataLength+=M.length)}),tt.then(()=>q)}concat(){return this[A]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(q=>this[A]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?q.join(""):Buffer.concat(q,q.dataLength))}promise(){return new Promise((q,tt)=>{this.on(x,()=>tt(new Error("stream destroyed"))),this.on("error",M=>tt(M)),this.on("end",()=>q())})}[R](){return{next:()=>{let q=this.read();if(q!==null)return Promise.resolve({done:!1,value:q});if(this[u])return Promise.resolve({done:!0});let tt=null,M=null,Y=gt=>{this.removeListener("data",et),this.removeListener("end",ot),M(gt)},et=gt=>{this.removeListener("error",Y),this.removeListener("end",ot),this.pause(),tt({value:gt,done:!!this[u]})},ot=()=>{this.removeListener("error",Y),this.removeListener("data",et),tt({done:!0})},ct=()=>Y(new Error("stream destroyed"));return new Promise((gt,mt)=>{M=mt,tt=gt,this.once(x,ct),this.once("error",Y),this.once("end",ot),this.once("data",et)})}}}[G](){return{next:()=>{let q=this.read();return{value:q,done:q===null}}}}destroy(q){return this[x]?(q?this.emit("error",q):this.emit(x),this):(this[x]=!0,this[w].length=0,this[m]=0,typeof this.close=="function"&&!this[c]&&this.close(),q?this.emit("error",q):this.emit(x),this)}static isStream(q){return!!q&&(q instanceof Kn||q instanceof i||q instanceof s&&(typeof q.pipe=="function"||typeof q.write=="function"&&typeof q.end=="function"))}}}),Ou=N((t,l)=>{B();var n=Z("zlib").constants||{ZLIB_VERNUM:4736};l.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},n))}),Jn=N((t,l)=>{"use strict";B();var n=typeof process=="object"&&process?process:{stdout:null,stderr:null},s=Z("events"),i=Z("stream"),p=Z("string_decoder").StringDecoder,u=Symbol("EOF"),r=Symbol("maybeEmitEnd"),e=Symbol("emittedEnd"),f=Symbol("emittingEnd"),a=Symbol("emittedError"),c=Symbol("closed"),o=Symbol("read"),d=Symbol("flush"),h=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),E=Symbol("flowing"),g=Symbol("paused"),D=Symbol("resume"),w=Symbol("bufferLength"),v=Symbol("bufferPush"),m=Symbol("bufferShift"),_=Symbol("objectMode"),S=Symbol("destroyed"),A=Symbol("emitData"),x=Symbol("emitEnd"),L=Symbol("emitEnd2"),T=Symbol("async"),F=j=>Promise.resolve().then(j),O=global._MP_NO_ITERATOR_SYMBOLS_!=="1",I=O&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),$=O&&Symbol.iterator||Symbol("iterator not implemented"),R=j=>j==="end"||j==="finish"||j==="prefinish",G=j=>j instanceof ArrayBuffer||typeof j=="object"&&j.constructor&&j.constructor.name==="ArrayBuffer"&&j.byteLength>=0,W=j=>!Buffer.isBuffer(j)&&ArrayBuffer.isView(j),Q=class{constructor(j,k,J){this.src=j,this.dest=k,this.opts=J,this.ondrain=()=>j[D](),k.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},P=class extends Q{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(j,k,J){super(j,k,J),this.proxyErrors=q=>k.emit("error",q),j.on("error",this.proxyErrors)}};l.exports=class Zn extends i{constructor(k){super(),this[E]=!1,this[g]=!1,this.pipes=[],this.buffer=[],this[_]=k&&k.objectMode||!1,this[_]?this[y]=null:this[y]=k&&k.encoding||null,this[y]==="buffer"&&(this[y]=null),this[T]=k&&!!k.async||!1,this[b]=this[y]?new p(this[y]):null,this[u]=!1,this[e]=!1,this[f]=!1,this[c]=!1,this[a]=null,this.writable=!0,this.readable=!0,this[w]=0,this[S]=!1}get bufferLength(){return this[w]}get encoding(){return this[y]}set encoding(k){if(this[_])throw new Error("cannot set encoding in objectMode");if(this[y]&&k!==this[y]&&(this[b]&&this[b].lastNeed||this[w]))throw new Error("cannot change encoding");this[y]!==k&&(this[b]=k?new p(k):null,this.buffer.length&&(this.buffer=this.buffer.map(J=>this[b].write(J)))),this[y]=k}setEncoding(k){this.encoding=k}get objectMode(){return this[_]}set objectMode(k){this[_]=this[_]||!!k}get async(){return this[T]}set async(k){this[T]=this[T]||!!k}write(k,J,q){if(this[u])throw new Error("write after end");if(this[S])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof J=="function"&&(q=J,J="utf8"),J||(J="utf8");let tt=this[T]?F:M=>M();return!this[_]&&!Buffer.isBuffer(k)&&(W(k)?k=Buffer.from(k.buffer,k.byteOffset,k.byteLength):G(k)?k=Buffer.from(k):typeof k!="string"&&(this.objectMode=!0)),this[_]?(this.flowing&&this[w]!==0&&this[d](!0),this.flowing?this.emit("data",k):this[v](k),this[w]!==0&&this.emit("readable"),q&&tt(q),this.flowing):k.length?(typeof k=="string"&&!(J===this[y]&&!this[b].lastNeed)&&(k=Buffer.from(k,J)),Buffer.isBuffer(k)&&this[y]&&(k=this[b].write(k)),this.flowing&&this[w]!==0&&this[d](!0),this.flowing?this.emit("data",k):this[v](k),this[w]!==0&&this.emit("readable"),q&&tt(q),this.flowing):(this[w]!==0&&this.emit("readable"),q&&tt(q),this.flowing)}read(k){if(this[S])return null;if(this[w]===0||k===0||k>this[w])return this[r](),null;this[_]&&(k=null),this.buffer.length>1&&!this[_]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[w])]);let J=this[o](k||null,this.buffer[0]);return this[r](),J}[o](k,J){return k===J.length||k===null?this[m]():(this.buffer[0]=J.slice(k),J=J.slice(0,k),this[w]-=k),this.emit("data",J),!this.buffer.length&&!this[u]&&this.emit("drain"),J}end(k,J,q){return typeof k=="function"&&(q=k,k=null),typeof J=="function"&&(q=J,J="utf8"),k&&this.write(k,J),q&&this.once("end",q),this[u]=!0,this.writable=!1,(this.flowing||!this[g])&&this[r](),this}[D](){this[S]||(this[g]=!1,this[E]=!0,this.emit("resume"),this.buffer.length?this[d]():this[u]?this[r]():this.emit("drain"))}resume(){return this[D]()}pause(){this[E]=!1,this[g]=!0}get destroyed(){return this[S]}get flowing(){return this[E]}get paused(){return this[g]}[v](k){this[_]?this[w]+=1:this[w]+=k.length,this.buffer.push(k)}[m](){return this.buffer.length&&(this[_]?this[w]-=1:this[w]-=this.buffer[0].length),this.buffer.shift()}[d](k){do;while(this[h](this[m]()));!k&&!this.buffer.length&&!this[u]&&this.emit("drain")}[h](k){return k?(this.emit("data",k),this.flowing):!1}pipe(k,J){if(this[S])return;let q=this[e];return J=J||{},k===n.stdout||k===n.stderr?J.end=!1:J.end=J.end!==!1,J.proxyErrors=!!J.proxyErrors,q?J.end&&k.end():(this.pipes.push(J.proxyErrors?new P(this,k,J):new Q(this,k,J)),this[T]?F(()=>this[D]()):this[D]()),k}unpipe(k){let J=this.pipes.find(q=>q.dest===k);J&&(this.pipes.splice(this.pipes.indexOf(J),1),J.unpipe())}addListener(k,J){return this.on(k,J)}on(k,J){let q=super.on(k,J);return k==="data"&&!this.pipes.length&&!this.flowing?this[D]():k==="readable"&&this[w]!==0?super.emit("readable"):R(k)&&this[e]?(super.emit(k),this.removeAllListeners(k)):k==="error"&&this[a]&&(this[T]?F(()=>J.call(this,this[a])):J.call(this,this[a])),q}get emittedEnd(){return this[e]}[r](){!this[f]&&!this[e]&&!this[S]&&this.buffer.length===0&&this[u]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[c]&&this.emit("close"),this[f]=!1)}emit(k,J,...q){if(k!=="error"&&k!=="close"&&k!==S&&this[S])return;if(k==="data")return J?this[T]?F(()=>this[A](J)):this[A](J):!1;if(k==="end")return this[x]();if(k==="close"){if(this[c]=!0,!this[e]&&!this[S])return;let M=super.emit("close");return this.removeAllListeners("close"),M}else if(k==="error"){this[a]=J;let M=super.emit("error",J);return this[r](),M}else if(k==="resume"){let M=super.emit("resume");return this[r](),M}else if(k==="finish"||k==="prefinish"){let M=super.emit(k);return this.removeAllListeners(k),M}let tt=super.emit(k,J,...q);return this[r](),tt}[A](k){for(let q of this.pipes)q.dest.write(k)===!1&&this.pause();let J=super.emit("data",k);return this[r](),J}[x](){this[e]||(this[e]=!0,this.readable=!1,this[T]?F(()=>this[L]()):this[L]())}[L](){if(this[b]){let J=this[b].end();if(J){for(let q of this.pipes)q.dest.write(J);super.emit("data",J)}}for(let J of this.pipes)J.end();let k=super.emit("end");return this.removeAllListeners("end"),k}collect(){let k=[];this[_]||(k.dataLength=0);let J=this.promise();return this.on("data",q=>{k.push(q),this[_]||(k.dataLength+=q.length)}),J.then(()=>k)}concat(){return this[_]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(k=>this[_]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?k.join(""):Buffer.concat(k,k.dataLength))}promise(){return new Promise((k,J)=>{this.on(S,()=>J(new Error("stream destroyed"))),this.on("error",q=>J(q)),this.on("end",()=>k())})}[I](){return{next:()=>{let k=this.read();if(k!==null)return Promise.resolve({done:!1,value:k});if(this[u])return Promise.resolve({done:!0});let J=null,q=null,tt=ot=>{this.removeListener("data",M),this.removeListener("end",Y),q(ot)},M=ot=>{this.removeListener("error",tt),this.removeListener("end",Y),this.pause(),J({value:ot,done:!!this[u]})},Y=()=>{this.removeListener("error",tt),this.removeListener("data",M),J({done:!0})},et=()=>tt(new Error("stream destroyed"));return new Promise((ot,ct)=>{q=ct,J=ot,this.once(S,et),this.once("error",tt),this.once("end",Y),this.once("data",M)})}}}[$](){return{next:()=>{let k=this.read();return{value:k,done:k===null}}}}destroy(k){return this[S]?(k?this.emit("error",k):this.emit(S),this):(this[S]=!0,this.buffer.length=0,this[w]=0,typeof this.close=="function"&&!this[c]&&this.close(),k?this.emit("error",k):this.emit(S),this)}static isStream(k){return!!k&&(k instanceof Zn||k instanceof i||k instanceof s&&(typeof k.pipe=="function"||typeof k.write=="function"&&typeof k.end=="function"))}}}),Xn=N(t=>{"use strict";B();var l=Z("assert"),n=Z("buffer").Buffer,s=Z("zlib"),i=t.constants=Ou(),p=Jn(),u=n.concat,r=Symbol("_superWrite"),e=class extends Error{constructor(R){super("zlib: "+R.message),this.code=R.code,this.errno=R.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+R.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},f=Symbol("opts"),a=Symbol("flushFlag"),c=Symbol("finishFlushFlag"),o=Symbol("fullFlushFlag"),d=Symbol("handle"),h=Symbol("onError"),y=Symbol("sawError"),b=Symbol("level"),E=Symbol("strategy"),g=Symbol("ended"),D=Symbol("_defaultFullFlush"),w=class extends p{constructor(R,G){if(!R||typeof R!="object")throw new TypeError("invalid options for ZlibBase constructor");super(R),this[y]=!1,this[g]=!1,this[f]=R,this[a]=R.flush,this[c]=R.finishFlush;try{this[d]=new s[G](R)}catch(W){throw new e(W)}this[h]=W=>{this[y]||(this[y]=!0,this.close(),this.emit("error",W))},this[d].on("error",W=>this[h](new e(W))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[y])return l(this[d],"zlib binding closed"),this[d].reset()}flush(R){this.ended||(typeof R!="number"&&(R=this[o]),this.write(Object.assign(n.alloc(0),{[a]:R})))}end(R,G,W){return R&&this.write(R,G),this.flush(this[c]),this[g]=!0,super.end(null,null,W)}get ended(){return this[g]}write(R,G,W){if(typeof G=="function"&&(W=G,G="utf8"),typeof R=="string"&&(R=n.from(R,G)),this[y])return;l(this[d],"zlib binding closed");let Q=this[d]._handle,P=Q.close;Q.close=()=>{};let j=this[d].close;this[d].close=()=>{},n.concat=q=>q;let k;try{let q=typeof R[a]=="number"?R[a]:this[a];k=this[d]._processChunk(R,q),n.concat=u}catch(q){n.concat=u,this[h](new e(q))}finally{this[d]&&(this[d]._handle=Q,Q.close=P,this[d].close=j,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",q=>this[h](new e(q)));let J;if(k)if(Array.isArray(k)&&k.length>0){J=this[r](n.from(k[0]));for(let q=1;q<k.length;q++)J=this[r](k[q])}else J=this[r](n.from(k));return W&&W(),J}[r](R){return super.write(R)}},v=class extends w{constructor(R,G){R=R||{},R.flush=R.flush||i.Z_NO_FLUSH,R.finishFlush=R.finishFlush||i.Z_FINISH,super(R,G),this[o]=i.Z_FULL_FLUSH,this[b]=R.level,this[E]=R.strategy}params(R,G){if(!this[y]){if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[b]!==R||this[E]!==G){this.flush(i.Z_SYNC_FLUSH),l(this[d],"zlib binding closed");let W=this[d].flush;this[d].flush=(Q,P)=>{this.flush(Q),P()};try{this[d].params(R,G)}finally{this[d].flush=W}this[d]&&(this[b]=R,this[E]=G)}}}},m=class extends v{constructor(R){super(R,"Deflate")}},_=class extends v{constructor(R){super(R,"Inflate")}},S=Symbol("_portable"),A=class extends v{constructor(R){super(R,"Gzip"),this[S]=R&&!!R.portable}[r](R){return this[S]?(this[S]=!1,R[9]=255,super[r](R)):super[r](R)}},x=class extends v{constructor(R){super(R,"Gunzip")}},L=class extends v{constructor(R){super(R,"DeflateRaw")}},T=class extends v{constructor(R){super(R,"InflateRaw")}},F=class extends v{constructor(R){super(R,"Unzip")}},O=class extends w{constructor(R,G){R=R||{},R.flush=R.flush||i.BROTLI_OPERATION_PROCESS,R.finishFlush=R.finishFlush||i.BROTLI_OPERATION_FINISH,super(R,G),this[o]=i.BROTLI_OPERATION_FLUSH}},I=class extends O{constructor(R){super(R,"BrotliCompress")}},$=class extends O{constructor(R){super(R,"BrotliDecompress")}};t.Deflate=m,t.Inflate=_,t.Gzip=A,t.Gunzip=x,t.DeflateRaw=L,t.InflateRaw=T,t.Unzip=F,typeof s.BrotliCompress=="function"?(t.BrotliCompress=I,t.BrotliDecompress=$):t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),Fe=N((t,l)=>{B();var n=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;l.exports=n!=="win32"?s=>s:s=>s&&s.replace(/\\/g,"/")}),_r=N((t,l)=>{"use strict";B();var n=Er(),s=Fe(),i=Symbol("slurp");l.exports=class extends n{constructor(p,u,r){switch(super(),this.pause(),this.extended=u,this.globalExtended=r,this.header=p,this.startBlockSize=512*Math.ceil(p.size/512),this.blockRemain=this.startBlockSize,this.remain=p.size,this.type=p.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=s(p.path),this.mode=p.mode,this.mode&&(this.mode=this.mode&4095),this.uid=p.uid,this.gid=p.gid,this.uname=p.uname,this.gname=p.gname,this.size=p.size,this.mtime=p.mtime,this.atime=p.atime,this.ctime=p.ctime,this.linkpath=s(p.linkpath),this.uname=p.uname,this.gname=p.gname,u&&this[i](u),r&&this[i](r,!0)}write(p){let u=p.length;if(u>this.blockRemain)throw new Error("writing more to entry than is appropriate");let r=this.remain,e=this.blockRemain;return this.remain=Math.max(0,r-u),this.blockRemain=Math.max(0,e-u),this.ignore?!0:r>=u?super.write(p):super.write(p.slice(0,r))}[i](p,u){for(let r in p)p[r]!==null&&p[r]!==void 0&&!(u&&r==="path")&&(this[r]=r==="path"||r==="linkpath"?s(p[r]):p[r])}}}),Qn=N(t=>{"use strict";B(),t.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),t.code=new Map(Array.from(t.name).map(l=>[l[1],l[0]]))}),Ru=N((t,l)=>{"use strict";B();var n=(a,c)=>{if(Number.isSafeInteger(a))a<0?i(a,c):s(a,c);else throw Error("cannot encode number outside of javascript safe integer range");return c},s=(a,c)=>{c[0]=128;for(var o=c.length;o>1;o--)c[o-1]=a&255,a=Math.floor(a/256)},i=(a,c)=>{c[0]=255;var o=!1;a=a*-1;for(var d=c.length;d>1;d--){var h=a&255;a=Math.floor(a/256),o?c[d-1]=e(h):h===0?c[d-1]=0:(o=!0,c[d-1]=f(h))}},p=a=>{let c=a[0],o=c===128?r(a.slice(1,a.length)):c===255?u(a):null;if(o===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(o))throw Error("parsed number outside of javascript safe integer range");return o},u=a=>{for(var c=a.length,o=0,d=!1,h=c-1;h>-1;h--){var y=a[h],b;d?b=e(y):y===0?b=y:(d=!0,b=f(y)),b!==0&&(o-=b*Math.pow(256,c-h-1))}return o},r=a=>{for(var c=a.length,o=0,d=c-1;d>-1;d--){var h=a[d];h!==0&&(o+=h*Math.pow(256,c-d-1))}return o},e=a=>(255^a)&255,f=a=>(255^a)+1&255;l.exports={encode:n,parse:p}}),ke=N((t,l)=>{"use strict";B();var n=Qn(),s=Z("path").posix,i=Ru(),p=Symbol("slurp"),u=Symbol("type"),r=class{constructor(_,S,A,x){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[u]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(_)?this.decode(_,S||0,A,x):_&&this.set(_)}decode(_,S,A,x){if(S||(S=0),!_||!(_.length>=S+512))throw new Error("need 512 bytes for header");if(this.path=f(_,S,100),this.mode=o(_,S+100,8),this.uid=o(_,S+108,8),this.gid=o(_,S+116,8),this.size=o(_,S+124,12),this.mtime=a(_,S+136,12),this.cksum=o(_,S+148,12),this[p](A),this[p](x,!0),this[u]=f(_,S+156,1),this[u]===""&&(this[u]="0"),this[u]==="0"&&this.path.slice(-1)==="/"&&(this[u]="5"),this[u]==="5"&&(this.size=0),this.linkpath=f(_,S+157,100),_.slice(S+257,S+265).toString()==="ustar\x0000")if(this.uname=f(_,S+265,32),this.gname=f(_,S+297,32),this.devmaj=o(_,S+329,8),this.devmin=o(_,S+337,8),_[S+475]!==0){let T=f(_,S+345,155);this.path=T+"/"+this.path}else{let T=f(_,S+345,130);T&&(this.path=T+"/"+this.path),this.atime=a(_,S+476,12),this.ctime=a(_,S+488,12)}let L=8*32;for(let T=S;T<S+148;T++)L+=_[T];for(let T=S+156;T<S+512;T++)L+=_[T];this.cksumValid=L===this.cksum,this.cksum===null&&L===8*32&&(this.nullBlock=!0)}[p](_,S){for(let A in _)_[A]!==null&&_[A]!==void 0&&!(S&&A==="path")&&(this[A]=_[A])}encode(_,S){if(_||(_=this.block=Buffer.alloc(512),S=0),S||(S=0),!(_.length>=S+512))throw new Error("need 512 bytes for header");let A=this.ctime||this.atime?130:155,x=e(this.path||"",A),L=x[0],T=x[1];this.needPax=x[2],this.needPax=m(_,S,100,L)||this.needPax,this.needPax=b(_,S+100,8,this.mode)||this.needPax,this.needPax=b(_,S+108,8,this.uid)||this.needPax,this.needPax=b(_,S+116,8,this.gid)||this.needPax,this.needPax=b(_,S+124,12,this.size)||this.needPax,this.needPax=w(_,S+136,12,this.mtime)||this.needPax,_[S+156]=this[u].charCodeAt(0),this.needPax=m(_,S+157,100,this.linkpath)||this.needPax,_.write("ustar\x0000",S+257,8),this.needPax=m(_,S+265,32,this.uname)||this.needPax,this.needPax=m(_,S+297,32,this.gname)||this.needPax,this.needPax=b(_,S+329,8,this.devmaj)||this.needPax,this.needPax=b(_,S+337,8,this.devmin)||this.needPax,this.needPax=m(_,S+345,A,T)||this.needPax,_[S+475]!==0?this.needPax=m(_,S+345,155,T)||this.needPax:(this.needPax=m(_,S+345,130,T)||this.needPax,this.needPax=w(_,S+476,12,this.atime)||this.needPax,this.needPax=w(_,S+488,12,this.ctime)||this.needPax);let F=8*32;for(let O=S;O<S+148;O++)F+=_[O];for(let O=S+156;O<S+512;O++)F+=_[O];return this.cksum=F,b(_,S+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(_){for(let S in _)_[S]!==null&&_[S]!==void 0&&(this[S]=_[S])}get type(){return n.name.get(this[u])||this[u]}get typeKey(){return this[u]}set type(_){n.code.has(_)?this[u]=n.code.get(_):this[u]=_}},e=(_,S)=>{let A=_,x="",L,T=s.parse(_).root||".";if(Buffer.byteLength(A)<100)L=[A,x,!1];else{x=s.dirname(A),A=s.basename(A);do Buffer.byteLength(A)<=100&&Buffer.byteLength(x)<=S?L=[A,x,!1]:Buffer.byteLength(A)>100&&Buffer.byteLength(x)<=S?L=[A.slice(0,100-1),x,!0]:(A=s.join(s.basename(x),A),x=s.dirname(x));while(x!==T&&!L);L||(L=[_.slice(0,100-1),"",!0])}return L},f=(_,S,A)=>_.slice(S,S+A).toString("utf8").replace(/\0.*/,""),a=(_,S,A)=>c(o(_,S,A)),c=_=>_===null?null:new Date(_*1e3),o=(_,S,A)=>_[S]&128?i.parse(_.slice(S,S+A)):h(_,S,A),d=_=>isNaN(_)?null:_,h=(_,S,A)=>d(parseInt(_.slice(S,S+A).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},b=(_,S,A,x)=>x===null?!1:x>y[A]||x<0?(i.encode(x,_.slice(S,S+A)),!0):(E(_,S,A,x),!1),E=(_,S,A,x)=>_.write(g(x,A),S,A,"ascii"),g=(_,S)=>D(Math.floor(_).toString(8),S),D=(_,S)=>(_.length===S-1?_:new Array(S-_.length-1).join("0")+_+" ")+"\0",w=(_,S,A,x)=>x===null?!1:b(_,S,A,x.getTime()/1e3),v=new Array(156).join("\0"),m=(_,S,A,x)=>x===null?!1:(_.write(x+v,S,A,"utf8"),x.length!==Buffer.byteLength(x)||x.length>A);l.exports=r}),wr=N((t,l)=>{"use strict";B();var n=ke(),s=Z("path"),i=class{constructor(e,f){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=f||!1}encode(){let e=this.encodeBody();if(e==="")return null;let f=Buffer.byteLength(e),a=512*Math.ceil(1+f/512),c=Buffer.allocUnsafe(a);for(let o=0;o<512;o++)c[o]=0;new n({path:("PaxHeader/"+s.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:f,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(c),c.write(e,512,f,"utf8");for(let o=f+512;o<c.length;o++)c[o]=0;return c}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let f=this[e]instanceof Date?this[e].getTime()/1e3:this[e],a=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+f+`
|
23
23
|
`,c=Buffer.byteLength(a),o=Math.floor(Math.log(c)/Math.log(10))+1;return c+o>=Math.pow(10,o)&&(o+=1),o+c+a}};i.parse=(e,f,a)=>new i(p(u(e),f),a);var p=(e,f)=>f?Object.keys(e).reduce((a,c)=>(a[c]=e[c],a),f):e,u=e=>e.replace(/\n$/,"").split(`
|
24
|
-
`).reduce(r,Object.create(null)),r=(e,f)=>{let a=parseInt(f,10);if(a!==Buffer.byteLength(f)+1)return e;f=f.slice((a+" ").length);let c=f.split("="),o=c.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!o)return e;let d=c.join("=");return e[o]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(o)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,e};l.exports=i}),Oe=N((t,l)=>{B(),l.exports=n=>{let s=n.length-1,i=-1;for(;s>-1&&n.charAt(s)==="/";)i=s,s--;return i===-1?n:n.slice(0,i)}}),Dr=N((t,l)=>{"use strict";B(),l.exports=n=>class extends n{warn(s,i,p={}){this.file&&(p.file=this.file),this.cwd&&(p.cwd=this.cwd),p.code=i instanceof Error&&i.code||s,p.tarCode=s,!this.strict&&p.recoverable!==!1?(i instanceof Error&&(p=Object.assign(i,p),i=i.message),this.emit("warn",p.tarCode,i,p)):i instanceof Error?this.emit("error",Object.assign(i,p)):this.emit("error",Object.assign(new Error(`${s}: ${i}`),p))}}}),ti=N((t,l)=>{"use strict";B();var n=["|","<",">","?",":"],s=n.map(u=>String.fromCharCode(61440+u.charCodeAt(0))),i=new Map(n.map((u,r)=>[u,s[r]])),p=new Map(s.map((u,r)=>[u,n[r]]));l.exports={encode:u=>n.reduce((r,e)=>r.split(e).join(i.get(e)),u),decode:u=>s.reduce((r,e)=>r.split(e).join(p.get(e)),u)}}),ei=N((t,l)=>{B();var{isAbsolute:n,parse:s}=Z("path").win32;l.exports=i=>{let p="",u=s(i);for(;n(i)||u.root;){let r=i.charAt(0)==="/"&&i.slice(0,4)!=="//?/"?"/":u.root;i=i.slice(r.length),p+=r,u=s(i)}return[p,i]}}),Tu=N((t,l)=>{"use strict";B(),l.exports=(n,s,i)=>(n&=4095,i&&(n=(n|384)&-19),s&&(n&256&&(n|=64),n&32&&(n|=8),n&4&&(n|=1)),n)}),ri=N((t,l)=>{"use strict";B();var n=Er(),s=wr(),i=ke(),p=Z("fs"),u=Z("path"),r=Fe(),e=Oe(),f=(M,R)=>R?(M=r(M).replace(/^\.(\/|$)/,""),e(R)+"/"+M):r(M),a=16*1024*1024,c=Symbol("process"),o=Symbol("file"),d=Symbol("directory"),h=Symbol("symlink"),g=Symbol("hardlink"),b=Symbol("header"),E=Symbol("read"),y=Symbol("lstat"),D=Symbol("onlstat"),w=Symbol("onread"),v=Symbol("onreadlink"),m=Symbol("openfile"),_=Symbol("onopenfile"),S=Symbol("close"),A=Symbol("mode"),F=Symbol("awaitDrain"),P=Symbol("ondrain"),T=Symbol("prefix"),O=Symbol("hadError"),x=Dr(),k=ti(),U=ei(),L=Tu(),q=x(class extends n{constructor(M,R){if(R=R||{},super(R),typeof M!="string")throw new TypeError("path is required");this.path=r(M),this.portable=!!R.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=R.maxReadSize||a,this.linkCache=R.linkCache||new Map,this.statCache=R.statCache||new Map,this.preservePaths=!!R.preservePaths,this.cwd=r(R.cwd||process.cwd()),this.strict=!!R.strict,this.noPax=!!R.noPax,this.noMtime=!!R.noMtime,this.mtime=R.mtime||null,this.prefix=R.prefix?r(R.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof R.onwarn=="function"&&this.on("warn",R.onwarn);let J=!1;if(!this.preservePaths){let[G,Q]=U(this.path);G&&(this.path=Q,J=G)}this.win32=!!R.win32||process.platform==="win32",this.win32&&(this.path=k.decode(this.path.replace(/\\/g,"/")),M=M.replace(/\\/g,"/")),this.absolute=r(R.absolute||u.resolve(this.cwd,M)),this.path===""&&(this.path="./"),J&&this.warn("TAR_ENTRY_INFO",`stripping ${J} from absolute path`,{entry:this,path:J+this.path}),this.statCache.has(this.absolute)?this[D](this.statCache.get(this.absolute)):this[y]()}emit(M,...R){return M==="error"&&(this[O]=!0),super.emit(M,...R)}[y](){p.lstat(this.absolute,(M,R)=>{if(M)return this.emit("error",M);this[D](R)})}[D](M){this.statCache.set(this.absolute,M),this.stat=M,M.isFile()||(M.size=0),this.type=I(M),this.emit("stat",M),this[c]()}[c](){switch(this.type){case"File":return this[o]();case"Directory":return this[d]();case"SymbolicLink":return this[h]();default:return this.end()}}[A](M){return L(M,this.type==="Directory",this.portable)}[T](M){return f(M,this.prefix)}[b](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new i({path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,mode:this[A](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new s({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[d](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[b](),this.end()}[h](){p.readlink(this.absolute,(M,R)=>{if(M)return this.emit("error",M);this[v](R)})}[v](M){this.linkpath=r(M),this[b](),this.end()}[g](M){this.type="Link",this.linkpath=r(u.relative(this.cwd,M)),this.stat.size=0,this[b](),this.end()}[o](){if(this.stat.nlink>1){let M=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(M)){let R=this.linkCache.get(M);if(R.indexOf(this.cwd)===0)return this[g](R)}this.linkCache.set(M,this.absolute)}if(this[b](),this.stat.size===0)return this.end();this[m]()}[m](){p.open(this.absolute,"r",(M,R)=>{if(M)return this.emit("error",M);this[_](R)})}[_](M){if(this.fd=M,this[O])return this[S]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let R=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(R),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[E]()}[E](){let{fd:M,buf:R,offset:J,length:G,pos:Q}=this;p.read(M,R,J,G,Q,(j,W)=>{if(j)return this[S](()=>this.emit("error",j));this[w](W)})}[S](M){p.close(this.fd,M)}[w](M){if(M<=0&&this.remain>0){let J=new Error("encountered unexpected EOF");return J.path=this.absolute,J.syscall="read",J.code="EOF",this[S](()=>this.emit("error",J))}if(M>this.remain){let J=new Error("did not encounter expected EOF");return J.path=this.absolute,J.syscall="read",J.code="EOF",this[S](()=>this.emit("error",J))}if(M===this.remain)for(let J=M;J<this.length&&M<this.blockRemain;J++)this.buf[J+this.offset]=0,M++,this.remain++;let R=this.offset===0&&M===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+M);this.write(R)?this[P]():this[F](()=>this[P]())}[F](M){this.once("drain",M)}write(M){if(this.blockRemain<M.length){let R=new Error("writing more data than expected");return R.path=this.absolute,this.emit("error",R)}return this.remain-=M.length,this.blockRemain-=M.length,this.pos+=M.length,this.offset+=M.length,super.write(M)}[P](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[S](M=>M?this.emit("error",M):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[E]()}}),V=class extends q{[y](){this[D](p.lstatSync(this.absolute))}[h](){this[v](p.readlinkSync(this.absolute))}[m](){this[_](p.openSync(this.absolute,"r"))}[E](){let M=!0;try{let{fd:R,buf:J,offset:G,length:Q,pos:j}=this,W=p.readSync(R,J,G,Q,j);this[w](W),M=!1}finally{if(M)try{this[S](()=>{})}catch{}}}[F](M){M()}[S](M){p.closeSync(this.fd),M()}},et=x(class extends n{constructor(M,R){R=R||{},super(R),this.preservePaths=!!R.preservePaths,this.portable=!!R.portable,this.strict=!!R.strict,this.noPax=!!R.noPax,this.noMtime=!!R.noMtime,this.readEntry=M,this.type=M.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=R.prefix||null,this.path=r(M.path),this.mode=this[A](M.mode),this.uid=this.portable?null:M.uid,this.gid=this.portable?null:M.gid,this.uname=this.portable?null:M.uname,this.gname=this.portable?null:M.gname,this.size=M.size,this.mtime=this.noMtime?null:R.mtime||M.mtime,this.atime=this.portable?null:M.atime,this.ctime=this.portable?null:M.ctime,this.linkpath=r(M.linkpath),typeof R.onwarn=="function"&&this.on("warn",R.onwarn);let J=!1;if(!this.preservePaths){let[G,Q]=U(this.path);G&&(this.path=Q,J=G)}this.remain=M.size,this.blockRemain=M.startBlockSize,this.header=new i({path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),J&&this.warn("TAR_ENTRY_INFO",`stripping ${J} from absolute path`,{entry:this,path:J+this.path}),this.header.encode()&&!this.noPax&&super.write(new s({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),M.pipe(this)}[T](M){return f(M,this.prefix)}[A](M){return L(M,this.type==="Directory",this.portable)}write(M){let R=M.length;if(R>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=R,super.write(M)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});q.Sync=V,q.Tar=et;var I=M=>M.isFile()?"File":M.isDirectory()?"Directory":M.isSymbolicLink()?"SymbolicLink":"Unsupported";l.exports=q}),Bu=N((t,l)=>{"use strict";B(),l.exports=function(n){n.prototype[Symbol.iterator]=function*(){for(let s=this.head;s;s=s.next)yield s.value}}}),ni=N((t,l)=>{"use strict";B(),l.exports=n,n.Node=u,n.create=n;function n(r){var e=this;if(e instanceof n||(e=new n),e.tail=null,e.head=null,e.length=0,r&&typeof r.forEach=="function")r.forEach(function(c){e.push(c)});else if(arguments.length>0)for(var f=0,a=arguments.length;f<a;f++)e.push(arguments[f]);return e}n.prototype.removeNode=function(r){if(r.list!==this)throw new Error("removing node which does not belong to this list");var e=r.next,f=r.prev;return e&&(e.prev=f),f&&(f.next=e),r===this.head&&(this.head=e),r===this.tail&&(this.tail=f),r.list.length--,r.next=null,r.prev=null,r.list=null,e},n.prototype.unshiftNode=function(r){if(r!==this.head){r.list&&r.list.removeNode(r);var e=this.head;r.list=this,r.next=e,e&&(e.prev=r),this.head=r,this.tail||(this.tail=r),this.length++}},n.prototype.pushNode=function(r){if(r!==this.tail){r.list&&r.list.removeNode(r);var e=this.tail;r.list=this,r.prev=e,e&&(e.next=r),this.tail=r,this.head||(this.head=r),this.length++}},n.prototype.push=function(){for(var r=0,e=arguments.length;r<e;r++)i(this,arguments[r]);return this.length},n.prototype.unshift=function(){for(var r=0,e=arguments.length;r<e;r++)p(this,arguments[r]);return this.length},n.prototype.pop=function(){if(this.tail){var r=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,r}},n.prototype.shift=function(){if(this.head){var r=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,r}},n.prototype.forEach=function(r,e){e=e||this;for(var f=this.head,a=0;f!==null;a++)r.call(e,f.value,a,this),f=f.next},n.prototype.forEachReverse=function(r,e){e=e||this;for(var f=this.tail,a=this.length-1;f!==null;a--)r.call(e,f.value,a,this),f=f.prev},n.prototype.get=function(r){for(var e=0,f=this.head;f!==null&&e<r;e++)f=f.next;if(e===r&&f!==null)return f.value},n.prototype.getReverse=function(r){for(var e=0,f=this.tail;f!==null&&e<r;e++)f=f.prev;if(e===r&&f!==null)return f.value},n.prototype.map=function(r,e){e=e||this;for(var f=new n,a=this.head;a!==null;)f.push(r.call(e,a.value,this)),a=a.next;return f},n.prototype.mapReverse=function(r,e){e=e||this;for(var f=new n,a=this.tail;a!==null;)f.push(r.call(e,a.value,this)),a=a.prev;return f},n.prototype.reduce=function(r,e){var f,a=this.head;if(arguments.length>1)f=e;else if(this.head)a=this.head.next,f=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var c=0;a!==null;c++)f=r(f,a.value,c),a=a.next;return f},n.prototype.reduceReverse=function(r,e){var f,a=this.tail;if(arguments.length>1)f=e;else if(this.tail)a=this.tail.prev,f=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var c=this.length-1;a!==null;c--)f=r(f,a.value,c),a=a.prev;return f},n.prototype.toArray=function(){for(var r=new Array(this.length),e=0,f=this.head;f!==null;e++)r[e]=f.value,f=f.next;return r},n.prototype.toArrayReverse=function(){for(var r=new Array(this.length),e=0,f=this.tail;f!==null;e++)r[e]=f.value,f=f.prev;return r},n.prototype.slice=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var f=new n;if(e<r||e<0)return f;r<0&&(r=0),e>this.length&&(e=this.length);for(var a=0,c=this.head;c!==null&&a<r;a++)c=c.next;for(;c!==null&&a<e;a++,c=c.next)f.push(c.value);return f},n.prototype.sliceReverse=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var f=new n;if(e<r||e<0)return f;r<0&&(r=0),e>this.length&&(e=this.length);for(var a=this.length,c=this.tail;c!==null&&a>e;a--)c=c.prev;for(;c!==null&&a>r;a--,c=c.prev)f.push(c.value);return f},n.prototype.splice=function(r,e,...f){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var a=0,c=this.head;c!==null&&a<r;a++)c=c.next;for(var o=[],a=0;c&&a<e;a++)o.push(c.value),c=this.removeNode(c);c===null&&(c=this.tail),c!==this.head&&c!==this.tail&&(c=c.prev);for(var a=0;a<f.length;a++)c=s(this,c,f[a]);return o},n.prototype.reverse=function(){for(var r=this.head,e=this.tail,f=r;f!==null;f=f.prev){var a=f.prev;f.prev=f.next,f.next=a}return this.head=e,this.tail=r,this};function s(r,e,f){var a=e===r.head?new u(f,null,e,r):new u(f,e,e.next,r);return a.next===null&&(r.tail=a),a.prev===null&&(r.head=a),r.length++,a}function i(r,e){r.tail=new u(e,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function p(r,e){r.head=new u(e,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function u(r,e,f,a){if(!(this instanceof u))return new u(r,e,f,a);this.list=a,this.value=r,e?(e.next=this,this.prev=e):this.prev=null,f?(f.prev=this,this.next=f):this.next=null}try{Bu()(n)}catch{}}),Sr=N((t,l)=>{"use strict";B();var n=class{constructor(I,M){this.path=I||"./",this.absolute=M,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},s=Er(),i=Xn(),p=_r(),u=ri(),r=u.Sync,e=u.Tar,f=ni(),a=Buffer.alloc(1024),c=Symbol("onStat"),o=Symbol("ended"),d=Symbol("queue"),h=Symbol("current"),g=Symbol("process"),b=Symbol("processing"),E=Symbol("processJob"),y=Symbol("jobs"),D=Symbol("jobDone"),w=Symbol("addFSEntry"),v=Symbol("addTarEntry"),m=Symbol("stat"),_=Symbol("readdir"),S=Symbol("onreaddir"),A=Symbol("pipe"),F=Symbol("entry"),P=Symbol("entryOpt"),T=Symbol("writeEntryClass"),O=Symbol("write"),x=Symbol("ondrain"),k=Z("fs"),U=Z("path"),L=Dr(),q=Fe(),V=L(class extends s{constructor(I){super(I),I=I||Object.create(null),this.opt=I,this.file=I.file||"",this.cwd=I.cwd||process.cwd(),this.maxReadSize=I.maxReadSize,this.preservePaths=!!I.preservePaths,this.strict=!!I.strict,this.noPax=!!I.noPax,this.prefix=q(I.prefix||""),this.linkCache=I.linkCache||new Map,this.statCache=I.statCache||new Map,this.readdirCache=I.readdirCache||new Map,this[T]=u,typeof I.onwarn=="function"&&this.on("warn",I.onwarn),this.portable=!!I.portable,this.zip=null,I.gzip?(typeof I.gzip!="object"&&(I.gzip={}),this.portable&&(I.gzip.portable=!0),this.zip=new i.Gzip(I.gzip),this.zip.on("data",M=>super.write(M)),this.zip.on("end",M=>super.end()),this.zip.on("drain",M=>this[x]()),this.on("resume",M=>this.zip.resume())):this.on("drain",this[x]),this.noDirRecurse=!!I.noDirRecurse,this.follow=!!I.follow,this.noMtime=!!I.noMtime,this.mtime=I.mtime||null,this.filter=typeof I.filter=="function"?I.filter:M=>!0,this[d]=new f,this[y]=0,this.jobs=+I.jobs||4,this[b]=!1,this[o]=!1}[O](I){return super.write(I)}add(I){return this.write(I),this}end(I){return I&&this.write(I),this[o]=!0,this[g](),this}write(I){if(this[o])throw new Error("write after end");return I instanceof p?this[v](I):this[w](I),this.flowing}[v](I){let M=q(U.resolve(this.cwd,I.path));if(!this.filter(I.path,I))I.resume();else{let R=new n(I.path,M,!1);R.entry=new e(I,this[P](R)),R.entry.on("end",J=>this[D](R)),this[y]+=1,this[d].push(R)}this[g]()}[w](I){let M=q(U.resolve(this.cwd,I));this[d].push(new n(I,M)),this[g]()}[m](I){I.pending=!0,this[y]+=1;let M=this.follow?"stat":"lstat";k[M](I.absolute,(R,J)=>{I.pending=!1,this[y]-=1,R?this.emit("error",R):this[c](I,J)})}[c](I,M){this.statCache.set(I.absolute,M),I.stat=M,this.filter(I.path,M)||(I.ignore=!0),this[g]()}[_](I){I.pending=!0,this[y]+=1,k.readdir(I.absolute,(M,R)=>{if(I.pending=!1,this[y]-=1,M)return this.emit("error",M);this[S](I,R)})}[S](I,M){this.readdirCache.set(I.absolute,M),I.readdir=M,this[g]()}[g](){if(!this[b]){this[b]=!0;for(let I=this[d].head;I!==null&&this[y]<this.jobs;I=I.next)if(this[E](I.value),I.value.ignore){let M=I.next;this[d].removeNode(I),I.next=M}this[b]=!1,this[o]&&!this[d].length&&this[y]===0&&(this.zip?this.zip.end(a):(super.write(a),super.end()))}}get[h](){return this[d]&&this[d].head&&this[d].head.value}[D](I){this[d].shift(),this[y]-=1,this[g]()}[E](I){if(!I.pending){if(I.entry){I===this[h]&&!I.piped&&this[A](I);return}if(I.stat||(this.statCache.has(I.absolute)?this[c](I,this.statCache.get(I.absolute)):this[m](I)),!!I.stat&&!I.ignore&&!(!this.noDirRecurse&&I.stat.isDirectory()&&!I.readdir&&(this.readdirCache.has(I.absolute)?this[S](I,this.readdirCache.get(I.absolute)):this[_](I),!I.readdir))){if(I.entry=this[F](I),!I.entry){I.ignore=!0;return}I===this[h]&&!I.piped&&this[A](I)}}}[P](I){return{onwarn:(M,R,J)=>this.warn(M,R,J),noPax:this.noPax,cwd:this.cwd,absolute:I.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[F](I){this[y]+=1;try{return new this[T](I.path,this[P](I)).on("end",()=>this[D](I)).on("error",M=>this.emit("error",M))}catch(M){this.emit("error",M)}}[x](){this[h]&&this[h].entry&&this[h].entry.resume()}[A](I){I.piped=!0,I.readdir&&I.readdir.forEach(J=>{let G=I.path,Q=G==="./"?"":G.replace(/\/*$/,"/");this[w](Q+J)});let M=I.entry,R=this.zip;R?M.on("data",J=>{R.write(J)||M.pause()}):M.on("data",J=>{super.write(J)||M.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),et=class extends V{constructor(I){super(I),this[T]=r}pause(){}resume(){}[m](I){let M=this.follow?"statSync":"lstatSync";this[c](I,k[M](I.absolute))}[_](I,M){this[S](I,k.readdirSync(I.absolute))}[A](I){let M=I.entry,R=this.zip;I.readdir&&I.readdir.forEach(J=>{let G=I.path,Q=G==="./"?"":G.replace(/\/*$/,"/");this[w](Q+J)}),R?M.on("data",J=>{R.write(J)}):M.on("data",J=>{super[O](J)})}};V.Sync=et,l.exports=V}),Re=N(t=>{"use strict";B();var l=Jn(),n=Z("events").EventEmitter,s=Z("fs"),i=s.writev;if(!i){let I=process.binding("fs"),M=I.FSReqWrap||I.FSReqCallback;i=(R,J,G,Q)=>{let j=(tt,ot)=>Q(tt,ot,J),W=new M;W.oncomplete=j,I.writeBuffers(R,J,G,W)}}var p=Symbol("_autoClose"),u=Symbol("_close"),r=Symbol("_ended"),e=Symbol("_fd"),f=Symbol("_finished"),a=Symbol("_flags"),c=Symbol("_flush"),o=Symbol("_handleChunk"),d=Symbol("_makeBuf"),h=Symbol("_mode"),g=Symbol("_needDrain"),b=Symbol("_onerror"),E=Symbol("_onopen"),y=Symbol("_onread"),D=Symbol("_onwrite"),w=Symbol("_open"),v=Symbol("_path"),m=Symbol("_pos"),_=Symbol("_queue"),S=Symbol("_read"),A=Symbol("_readSize"),F=Symbol("_reading"),P=Symbol("_remain"),T=Symbol("_size"),O=Symbol("_write"),x=Symbol("_writing"),k=Symbol("_defaultFlag"),U=Symbol("_errored"),L=class extends l{constructor(I,M){if(M=M||{},super(M),this.readable=!0,this.writable=!1,typeof I!="string")throw new TypeError("path must be a string");this[U]=!1,this[e]=typeof M.fd=="number"?M.fd:null,this[v]=I,this[A]=M.readSize||16*1024*1024,this[F]=!1,this[T]=typeof M.size=="number"?M.size:1/0,this[P]=this[T],this[p]=typeof M.autoClose=="boolean"?M.autoClose:!0,typeof this[e]=="number"?this[S]():this[w]()}get fd(){return this[e]}get path(){return this[v]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[w](){s.open(this[v],"r",(I,M)=>this[E](I,M))}[E](I,M){I?this[b](I):(this[e]=M,this.emit("open",M),this[S]())}[d](){return Buffer.allocUnsafe(Math.min(this[A],this[P]))}[S](){if(!this[F]){this[F]=!0;let I=this[d]();if(I.length===0)return process.nextTick(()=>this[y](null,0,I));s.read(this[e],I,0,I.length,null,(M,R,J)=>this[y](M,R,J))}}[y](I,M,R){this[F]=!1,I?this[b](I):this[o](M,R)&&this[S]()}[u](){if(this[p]&&typeof this[e]=="number"){let I=this[e];this[e]=null,s.close(I,M=>M?this.emit("error",M):this.emit("close"))}}[b](I){this[F]=!0,this[u](),this.emit("error",I)}[o](I,M){let R=!1;return this[P]-=I,I>0&&(R=super.write(I<M.length?M.slice(0,I):M)),(I===0||this[P]<=0)&&(R=!1,this[u](),super.end()),R}emit(I,M){switch(I){case"prefinish":case"finish":break;case"drain":typeof this[e]=="number"&&this[S]();break;case"error":return this[U]?void 0:(this[U]=!0,super.emit(I,M));default:return super.emit(I,M)}}},q=class extends L{[w](){let I=!0;try{this[E](null,s.openSync(this[v],"r")),I=!1}finally{I&&this[u]()}}[S](){let I=!0;try{if(!this[F]){this[F]=!0;do{let M=this[d](),R=M.length===0?0:s.readSync(this[e],M,0,M.length,null);if(!this[o](R,M))break}while(!0);this[F]=!1}I=!1}finally{I&&this[u]()}}[u](){if(this[p]&&typeof this[e]=="number"){let I=this[e];this[e]=null,s.closeSync(I),this.emit("close")}}},V=class extends n{constructor(I,M){M=M||{},super(M),this.readable=!1,this.writable=!0,this[U]=!1,this[x]=!1,this[r]=!1,this[g]=!1,this[_]=[],this[v]=I,this[e]=typeof M.fd=="number"?M.fd:null,this[h]=M.mode===void 0?438:M.mode,this[m]=typeof M.start=="number"?M.start:null,this[p]=typeof M.autoClose=="boolean"?M.autoClose:!0;let R=this[m]!==null?"r+":"w";this[k]=M.flags===void 0,this[a]=this[k]?R:M.flags,this[e]===null&&this[w]()}emit(I,M){if(I==="error"){if(this[U])return;this[U]=!0}return super.emit(I,M)}get fd(){return this[e]}get path(){return this[v]}[b](I){this[u](),this[x]=!0,this.emit("error",I)}[w](){s.open(this[v],this[a],this[h],(I,M)=>this[E](I,M))}[E](I,M){this[k]&&this[a]==="r+"&&I&&I.code==="ENOENT"?(this[a]="w",this[w]()):I?this[b](I):(this[e]=M,this.emit("open",M),this[c]())}end(I,M){return I&&this.write(I,M),this[r]=!0,!this[x]&&!this[_].length&&typeof this[e]=="number"&&this[D](null,0),this}write(I,M){return typeof I=="string"&&(I=Buffer.from(I,M)),this[r]?(this.emit("error",new Error("write() after end()")),!1):this[e]===null||this[x]||this[_].length?(this[_].push(I),this[g]=!0,!1):(this[x]=!0,this[O](I),!0)}[O](I){s.write(this[e],I,0,I.length,this[m],(M,R)=>this[D](M,R))}[D](I,M){I?this[b](I):(this[m]!==null&&(this[m]+=M),this[_].length?this[c]():(this[x]=!1,this[r]&&!this[f]?(this[f]=!0,this[u](),this.emit("finish")):this[g]&&(this[g]=!1,this.emit("drain"))))}[c](){if(this[_].length===0)this[r]&&this[D](null,0);else if(this[_].length===1)this[O](this[_].pop());else{let I=this[_];this[_]=[],i(this[e],I,this[m],(M,R)=>this[D](M,R))}}[u](){if(this[p]&&typeof this[e]=="number"){let I=this[e];this[e]=null,s.close(I,M=>M?this.emit("error",M):this.emit("close"))}}},et=class extends V{[w](){let I;if(this[k]&&this[a]==="r+")try{I=s.openSync(this[v],this[a],this[h])}catch(M){if(M.code==="ENOENT")return this[a]="w",this[w]();throw M}else I=s.openSync(this[v],this[a],this[h]);this[E](null,I)}[u](){if(this[p]&&typeof this[e]=="number"){let I=this[e];this[e]=null,s.closeSync(I),this.emit("close")}}[O](I){let M=!0;try{this[D](null,s.writeSync(this[e],I,0,I.length,this[m])),M=!1}finally{if(M)try{this[u]()}catch{}}}};t.ReadStream=L,t.ReadStreamSync=q,t.WriteStream=V,t.WriteStreamSync=et}),Ar=N((t,l)=>{"use strict";B();var n=Dr(),s=ke(),i=Z("events"),p=ni(),u=1024*1024,r=_r(),e=wr(),f=Xn(),{nextTick:a}=Z("process"),c=Buffer.from([31,139]),o=Symbol("state"),d=Symbol("writeEntry"),h=Symbol("readEntry"),g=Symbol("nextEntry"),b=Symbol("processEntry"),E=Symbol("extendedHeader"),y=Symbol("globalExtendedHeader"),D=Symbol("meta"),w=Symbol("emitMeta"),v=Symbol("buffer"),m=Symbol("queue"),_=Symbol("ended"),S=Symbol("emittedEnd"),A=Symbol("emit"),F=Symbol("unzip"),P=Symbol("consumeChunk"),T=Symbol("consumeChunkSub"),O=Symbol("consumeBody"),x=Symbol("consumeMeta"),k=Symbol("consumeHeader"),U=Symbol("consuming"),L=Symbol("bufferConcat"),q=Symbol("maybeEnd"),V=Symbol("writing"),et=Symbol("aborted"),I=Symbol("onDone"),M=Symbol("sawValidEntry"),R=Symbol("sawNullBlock"),J=Symbol("sawEOF"),G=Symbol("closeStream"),Q=j=>!0;l.exports=n(class extends i{constructor(j){j=j||{},super(j),this.file=j.file||"",this[M]=null,this.on(I,W=>{(this[o]==="begin"||this[M]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),j.ondone?this.on(I,j.ondone):this.on(I,W=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!j.strict,this.maxMetaEntrySize=j.maxMetaEntrySize||u,this.filter=typeof j.filter=="function"?j.filter:Q,this.writable=!0,this.readable=!1,this[m]=new p,this[v]=null,this[h]=null,this[d]=null,this[o]="begin",this[D]="",this[E]=null,this[y]=null,this[_]=!1,this[F]=null,this[et]=!1,this[R]=!1,this[J]=!1,this.on("end",()=>this[G]()),typeof j.onwarn=="function"&&this.on("warn",j.onwarn),typeof j.onentry=="function"&&this.on("entry",j.onentry)}[k](j,W){this[M]===null&&(this[M]=!1);let tt;try{tt=new s(j,W,this[E],this[y])}catch(ot){return this.warn("TAR_ENTRY_INVALID",ot)}if(tt.nullBlock)this[R]?(this[J]=!0,this[o]==="begin"&&(this[o]="header"),this[A]("eof")):(this[R]=!0,this[A]("nullBlock"));else if(this[R]=!1,!tt.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:tt});else if(!tt.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:tt});else{let ot=tt.type;if(/^(Symbolic)?Link$/.test(ot)&&!tt.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:tt});else if(!/^(Symbolic)?Link$/.test(ot)&&tt.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:tt});else{let ct=this[d]=new r(tt,this[E],this[y]);if(!this[M])if(ct.remain){let gt=()=>{ct.invalid||(this[M]=!0)};ct.on("end",gt)}else this[M]=!0;ct.meta?ct.size>this.maxMetaEntrySize?(ct.ignore=!0,this[A]("ignoredEntry",ct),this[o]="ignore",ct.resume()):ct.size>0&&(this[D]="",ct.on("data",gt=>this[D]+=gt),this[o]="meta"):(this[E]=null,ct.ignore=ct.ignore||!this.filter(ct.path,ct),ct.ignore?(this[A]("ignoredEntry",ct),this[o]=ct.remain?"ignore":"header",ct.resume()):(ct.remain?this[o]="body":(this[o]="header",ct.end()),this[h]?this[m].push(ct):(this[m].push(ct),this[g]())))}}}[G](){a(()=>this.emit("close"))}[b](j){let W=!0;return j?Array.isArray(j)?this.emit.apply(this,j):(this[h]=j,this.emit("entry",j),j.emittedEnd||(j.on("end",tt=>this[g]()),W=!1)):(this[h]=null,W=!1),W}[g](){do;while(this[b](this[m].shift()));if(!this[m].length){let j=this[h];!j||j.flowing||j.size===j.remain?this[V]||this.emit("drain"):j.once("drain",W=>this.emit("drain"))}}[O](j,W){let tt=this[d],ot=tt.blockRemain,ct=ot>=j.length&&W===0?j:j.slice(W,W+ot);return tt.write(ct),tt.blockRemain||(this[o]="header",this[d]=null,tt.end()),ct.length}[x](j,W){let tt=this[d],ot=this[O](j,W);return this[d]||this[w](tt),ot}[A](j,W,tt){!this[m].length&&!this[h]?this.emit(j,W,tt):this[m].push([j,W,tt])}[w](j){switch(this[A]("meta",this[D]),j.type){case"ExtendedHeader":case"OldExtendedHeader":this[E]=e.parse(this[D],this[E],!1);break;case"GlobalExtendedHeader":this[y]=e.parse(this[D],this[y],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[E]=this[E]||Object.create(null),this[E].path=this[D].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[E]=this[E]||Object.create(null),this[E].linkpath=this[D].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+j.type)}}abort(j){this[et]=!0,this.emit("abort",j),this.warn("TAR_ABORT",j,{recoverable:!1})}write(j){if(this[et])return;if(this[F]===null&&j){if(this[v]&&(j=Buffer.concat([this[v],j]),this[v]=null),j.length<c.length)return this[v]=j,!0;for(let tt=0;this[F]===null&&tt<c.length;tt++)j[tt]!==c[tt]&&(this[F]=!1);if(this[F]===null){let tt=this[_];this[_]=!1,this[F]=new f.Unzip,this[F].on("data",ct=>this[P](ct)),this[F].on("error",ct=>this.abort(ct)),this[F].on("end",ct=>{this[_]=!0,this[P]()}),this[V]=!0;let ot=this[F][tt?"end":"write"](j);return this[V]=!1,ot}}this[V]=!0,this[F]?this[F].write(j):this[P](j),this[V]=!1;let W=this[m].length?!1:this[h]?this[h].flowing:!0;return!W&&!this[m].length&&this[h].once("drain",tt=>this.emit("drain")),W}[L](j){j&&!this[et]&&(this[v]=this[v]?Buffer.concat([this[v],j]):j)}[q](){if(this[_]&&!this[S]&&!this[et]&&!this[U]){this[S]=!0;let j=this[d];if(j&&j.blockRemain){let W=this[v]?this[v].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${j.blockRemain} more bytes, only ${W} available)`,{entry:j}),this[v]&&j.write(this[v]),j.end()}this[A](I)}}[P](j){if(this[U])this[L](j);else if(!j&&!this[v])this[q]();else{if(this[U]=!0,this[v]){this[L](j);let W=this[v];this[v]=null,this[T](W)}else this[T](j);for(;this[v]&&this[v].length>=512&&!this[et]&&!this[J];){let W=this[v];this[v]=null,this[T](W)}this[U]=!1}(!this[v]||this[_])&&this[q]()}[T](j){let W=0,tt=j.length;for(;W+512<=tt&&!this[et]&&!this[J];)switch(this[o]){case"begin":case"header":this[k](j,W),W+=512;break;case"ignore":case"body":W+=this[O](j,W);break;case"meta":W+=this[x](j,W);break;default:throw new Error("invalid state: "+this[o])}W<tt&&(this[v]?this[v]=Buffer.concat([j.slice(W),this[v]]):this[v]=j.slice(W))}end(j){this[et]||(this[F]?this[F].end(j):(this[_]=!0,this.write(j)))}})}),Cr=N((t,l)=>{"use strict";B();var n=xe(),s=Ar(),i=Z("fs"),p=Re(),u=Z("path"),r=Oe();l.exports=(d,h,g)=>{typeof d=="function"?(g=d,h=null,d={}):Array.isArray(d)&&(h=d,d={}),typeof h=="function"&&(g=h,h=null),h?h=Array.from(h):h=[];let b=n(d);if(b.sync&&typeof g=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof g=="function")throw new TypeError("callback only supported with file option");return h.length&&f(b,h),b.noResume||e(b),b.file&&b.sync?a(b):b.file?c(b,g):o(b)};var e=d=>{let h=d.onentry;d.onentry=h?g=>{h(g),g.resume()}:g=>g.resume()},f=(d,h)=>{let g=new Map(h.map(y=>[r(y),!0])),b=d.filter,E=(y,D)=>{let w=D||u.parse(y).root||".",v=y===w?!1:g.has(y)?g.get(y):E(u.dirname(y),w);return g.set(y,v),v};d.filter=b?(y,D)=>b(y,D)&&E(r(y)):y=>E(r(y))},a=d=>{let h=o(d),g=d.file,b=!0,E;try{let y=i.statSync(g),D=d.maxReadSize||16*1024*1024;if(y.size<D)h.end(i.readFileSync(g));else{let w=0,v=Buffer.allocUnsafe(D);for(E=i.openSync(g,"r");w<y.size;){let m=i.readSync(E,v,0,D,w);w+=m,h.write(v.slice(0,m))}h.end()}b=!1}finally{if(b&&E)try{i.closeSync(E)}catch{}}},c=(d,h)=>{let g=new s(d),b=d.maxReadSize||16*1024*1024,E=d.file,y=new Promise((D,w)=>{g.on("error",w),g.on("end",D),i.stat(E,(v,m)=>{if(v)w(v);else{let _=new p.ReadStream(E,{readSize:b,size:m.size});_.on("error",w),_.pipe(g)}})});return h?y.then(h,h):y},o=d=>new s(d)}),Pu=N((t,l)=>{"use strict";B();var n=xe(),s=Sr(),i=Re(),p=Cr(),u=Z("path");l.exports=(d,h,g)=>{if(typeof h=="function"&&(g=h),Array.isArray(d)&&(h=d,d={}),!h||!Array.isArray(h)||!h.length)throw new TypeError("no files or directories specified");h=Array.from(h);let b=n(d);if(b.sync&&typeof g=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof g=="function")throw new TypeError("callback only supported with file option");return b.file&&b.sync?r(b,h):b.file?e(b,h,g):b.sync?c(b,h):o(b,h)};var r=(d,h)=>{let g=new s.Sync(d),b=new i.WriteStreamSync(d.file,{mode:d.mode||438});g.pipe(b),f(g,h)},e=(d,h,g)=>{let b=new s(d),E=new i.WriteStream(d.file,{mode:d.mode||438});b.pipe(E);let y=new Promise((D,w)=>{E.on("error",w),E.on("close",D),b.on("error",w)});return a(b,h),g?y.then(g,g):y},f=(d,h)=>{h.forEach(g=>{g.charAt(0)==="@"?p({file:u.resolve(d.cwd,g.slice(1)),sync:!0,noResume:!0,onentry:b=>d.add(b)}):d.add(g)}),d.end()},a=(d,h)=>{for(;h.length;){let g=h.shift();if(g.charAt(0)==="@")return p({file:u.resolve(d.cwd,g.slice(1)),noResume:!0,onentry:b=>d.add(b)}).then(b=>a(d,h));d.add(g)}d.end()},c=(d,h)=>{let g=new s.Sync(d);return f(g,h),g},o=(d,h)=>{let g=new s(d);return a(g,h),g}}),ii=N((t,l)=>{"use strict";B();var n=xe(),s=Sr(),i=Z("fs"),p=Re(),u=Cr(),r=Z("path"),e=ke();l.exports=(h,g,b)=>{let E=n(h);if(!E.file)throw new TypeError("file is required");if(E.gzip)throw new TypeError("cannot append to compressed archives");if(!g||!Array.isArray(g)||!g.length)throw new TypeError("no files or directories specified");return g=Array.from(g),E.sync?f(E,g):c(E,g,b)};var f=(h,g)=>{let b=new s.Sync(h),E=!0,y,D;try{try{y=i.openSync(h.file,"r+")}catch(m){if(m.code==="ENOENT")y=i.openSync(h.file,"w+");else throw m}let w=i.fstatSync(y),v=Buffer.alloc(512);t:for(D=0;D<w.size;D+=512){for(let S=0,A=0;S<512;S+=A){if(A=i.readSync(y,v,S,v.length-S,D+S),D===0&&v[0]===31&&v[1]===139)throw new Error("cannot append to compressed archives");if(!A)break t}let m=new e(v);if(!m.cksumValid)break;let _=512*Math.ceil(m.size/512);if(D+_+512>w.size)break;D+=_,h.mtimeCache&&h.mtimeCache.set(m.path,m.mtime)}E=!1,a(h,b,D,y,g)}finally{if(E)try{i.closeSync(y)}catch{}}},a=(h,g,b,E,y)=>{let D=new p.WriteStreamSync(h.file,{fd:E,start:b});g.pipe(D),o(g,y)},c=(h,g,b)=>{g=Array.from(g);let E=new s(h),y=(w,v,m)=>{let _=(T,O)=>{T?i.close(w,x=>m(T)):m(null,O)},S=0;if(v===0)return _(null,0);let A=0,F=Buffer.alloc(512),P=(T,O)=>{if(T)return _(T);if(A+=O,A<512&&O)return i.read(w,F,A,F.length-A,S+A,P);if(S===0&&F[0]===31&&F[1]===139)return _(new Error("cannot append to compressed archives"));if(A<512)return _(null,S);let x=new e(F);if(!x.cksumValid)return _(null,S);let k=512*Math.ceil(x.size/512);if(S+k+512>v||(S+=k+512,S>=v))return _(null,S);h.mtimeCache&&h.mtimeCache.set(x.path,x.mtime),A=0,i.read(w,F,0,512,S,P)};i.read(w,F,0,512,S,P)},D=new Promise((w,v)=>{E.on("error",v);let m="r+",_=(S,A)=>{if(S&&S.code==="ENOENT"&&m==="r+")return m="w+",i.open(h.file,m,_);if(S)return v(S);i.fstat(A,(F,P)=>{if(F)return i.close(A,()=>v(F));y(A,P.size,(T,O)=>{if(T)return v(T);let x=new p.WriteStream(h.file,{fd:A,start:O});E.pipe(x),x.on("error",v),x.on("close",w),d(E,g)})})};i.open(h.file,m,_)});return b?D.then(b,b):D},o=(h,g)=>{g.forEach(b=>{b.charAt(0)==="@"?u({file:r.resolve(h.cwd,b.slice(1)),sync:!0,noResume:!0,onentry:E=>h.add(E)}):h.add(b)}),h.end()},d=(h,g)=>{for(;g.length;){let b=g.shift();if(b.charAt(0)==="@")return u({file:r.resolve(h.cwd,b.slice(1)),noResume:!0,onentry:E=>h.add(E)}).then(E=>d(h,g));h.add(b)}h.end()}}),Iu=N((t,l)=>{"use strict";B();var n=xe(),s=ii();l.exports=(p,u,r)=>{let e=n(p);if(!e.file)throw new TypeError("file is required");if(e.gzip)throw new TypeError("cannot append to compressed archives");if(!u||!Array.isArray(u)||!u.length)throw new TypeError("no files or directories specified");return u=Array.from(u),i(e),s(e,u,r)};var i=p=>{let u=p.filter;p.mtimeCache||(p.mtimeCache=new Map),p.filter=u?(r,e)=>u(r,e)&&!(p.mtimeCache.get(r)>e.mtime):(r,e)=>!(p.mtimeCache.get(r)>e.mtime)}}),Lu=N((t,l)=>{B();var{promisify:n}=Z("util"),s=Z("fs"),i=p=>{if(!p)p={mode:511,fs:s};else if(typeof p=="object")p={mode:511,fs:s,...p};else if(typeof p=="number")p={mode:p,fs:s};else if(typeof p=="string")p={mode:parseInt(p,8),fs:s};else throw new TypeError("invalid options argument");return p.mkdir=p.mkdir||p.fs.mkdir||s.mkdir,p.mkdirAsync=n(p.mkdir),p.stat=p.stat||p.fs.stat||s.stat,p.statAsync=n(p.stat),p.statSync=p.statSync||p.fs.statSync||s.statSync,p.mkdirSync=p.mkdirSync||p.fs.mkdirSync||s.mkdirSync,p};l.exports=i}),Nu=N((t,l)=>{B();var n=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:s,parse:i}=Z("path"),p=u=>{if(/\0/.test(u))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:u,code:"ERR_INVALID_ARG_VALUE"});if(u=s(u),n==="win32"){let r=/[*|"<>?:]/,{root:e}=i(u);if(r.test(u.substr(e.length)))throw Object.assign(new Error("Illegal characters in path."),{path:u,code:"EINVAL"})}return u};l.exports=p}),Mu=N((t,l)=>{B();var{dirname:n}=Z("path"),s=(p,u,r=void 0)=>r===u?Promise.resolve():p.statAsync(u).then(e=>e.isDirectory()?r:void 0,e=>e.code==="ENOENT"?s(p,n(u),u):void 0),i=(p,u,r=void 0)=>{if(r!==u)try{return p.statSync(u).isDirectory()?r:void 0}catch(e){return e.code==="ENOENT"?i(p,n(u),u):void 0}};l.exports={findMade:s,findMadeSync:i}}),si=N((t,l)=>{B();var{dirname:n}=Z("path"),s=(p,u,r)=>{u.recursive=!1;let e=n(p);return e===p?u.mkdirAsync(p,u).catch(f=>{if(f.code!=="EISDIR")throw f}):u.mkdirAsync(p,u).then(()=>r||p,f=>{if(f.code==="ENOENT")return s(e,u).then(a=>s(p,u,a));if(f.code!=="EEXIST"&&f.code!=="EROFS")throw f;return u.statAsync(p).then(a=>{if(a.isDirectory())return r;throw f},()=>{throw f})})},i=(p,u,r)=>{let e=n(p);if(u.recursive=!1,e===p)try{return u.mkdirSync(p,u)}catch(f){if(f.code!=="EISDIR")throw f;return}try{return u.mkdirSync(p,u),r||p}catch(f){if(f.code==="ENOENT")return i(p,u,i(e,u,r));if(f.code!=="EEXIST"&&f.code!=="EROFS")throw f;try{if(!u.statSync(p).isDirectory())throw f}catch{throw f}}};l.exports={mkdirpManual:s,mkdirpManualSync:i}}),ju=N((t,l)=>{B();var{dirname:n}=Z("path"),{findMade:s,findMadeSync:i}=Mu(),{mkdirpManual:p,mkdirpManualSync:u}=si(),r=(f,a)=>(a.recursive=!0,n(f)===f?a.mkdirAsync(f,a):s(a,f).then(c=>a.mkdirAsync(f,a).then(()=>c).catch(o=>{if(o.code==="ENOENT")return p(f,a);throw o}))),e=(f,a)=>{if(a.recursive=!0,n(f)===f)return a.mkdirSync(f,a);let c=i(a,f);try{return a.mkdirSync(f,a),c}catch(o){if(o.code==="ENOENT")return u(f,a);throw o}};l.exports={mkdirpNative:r,mkdirpNativeSync:e}}),$u=N((t,l)=>{B();var n=Z("fs"),s=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,i=s.replace(/^v/,"").split("."),p=+i[0]>10||+i[0]==10&&+i[1]>=12,u=p?e=>e.mkdir===n.mkdir:()=>!1,r=p?e=>e.mkdirSync===n.mkdirSync:()=>!1;l.exports={useNative:u,useNativeSync:r}}),Hu=N((t,l)=>{B();var n=Lu(),s=Nu(),{mkdirpNative:i,mkdirpNativeSync:p}=ju(),{mkdirpManual:u,mkdirpManualSync:r}=si(),{useNative:e,useNativeSync:f}=$u(),a=(o,d)=>(o=s(o),d=n(d),e(d)?i(o,d):u(o,d)),c=(o,d)=>(o=s(o),d=n(d),f(d)?p(o,d):r(o,d));a.sync=c,a.native=(o,d)=>i(s(o),n(d)),a.manual=(o,d)=>u(s(o),n(d)),a.nativeSync=(o,d)=>p(s(o),n(d)),a.manualSync=(o,d)=>r(s(o),n(d)),l.exports=a}),Uu=N((t,l)=>{"use strict";B();var n=Z("fs"),s=Z("path"),i=n.lchown?"lchown":"chown",p=n.lchownSync?"lchownSync":"chownSync",u=n.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),r=(D,w,v)=>{try{return n[p](D,w,v)}catch(m){if(m.code!=="ENOENT")throw m}},e=(D,w,v)=>{try{return n.chownSync(D,w,v)}catch(m){if(m.code!=="ENOENT")throw m}},f=u?(D,w,v,m)=>_=>{!_||_.code!=="EISDIR"?m(_):n.chown(D,w,v,m)}:(D,w,v,m)=>m,a=u?(D,w,v)=>{try{return r(D,w,v)}catch(m){if(m.code!=="EISDIR")throw m;e(D,w,v)}}:(D,w,v)=>r(D,w,v),c=process.version,o=(D,w,v)=>n.readdir(D,w,v),d=(D,w)=>n.readdirSync(D,w);/^v4\./.test(c)&&(o=(D,w,v)=>n.readdir(D,v));var h=(D,w,v,m)=>{n[i](D,w,v,f(D,w,v,_=>{m(_&&_.code!=="ENOENT"?_:null)}))},g=(D,w,v,m,_)=>{if(typeof w=="string")return n.lstat(s.resolve(D,w),(S,A)=>{if(S)return _(S.code!=="ENOENT"?S:null);A.name=w,g(D,A,v,m,_)});if(w.isDirectory())b(s.resolve(D,w.name),v,m,S=>{if(S)return _(S);let A=s.resolve(D,w.name);h(A,v,m,_)});else{let S=s.resolve(D,w.name);h(S,v,m,_)}},b=(D,w,v,m)=>{o(D,{withFileTypes:!0},(_,S)=>{if(_){if(_.code==="ENOENT")return m();if(_.code!=="ENOTDIR"&&_.code!=="ENOTSUP")return m(_)}if(_||!S.length)return h(D,w,v,m);let A=S.length,F=null,P=T=>{if(!F){if(T)return m(F=T);if(--A===0)return h(D,w,v,m)}};S.forEach(T=>g(D,T,w,v,P))})},E=(D,w,v,m)=>{if(typeof w=="string")try{let _=n.lstatSync(s.resolve(D,w));_.name=w,w=_}catch(_){if(_.code==="ENOENT")return;throw _}w.isDirectory()&&y(s.resolve(D,w.name),v,m),a(s.resolve(D,w.name),v,m)},y=(D,w,v)=>{let m;try{m=d(D,{withFileTypes:!0})}catch(_){if(_.code==="ENOENT")return;if(_.code==="ENOTDIR"||_.code==="ENOTSUP")return a(D,w,v);throw _}return m&&m.length&&m.forEach(_=>E(D,_,w,v)),a(D,w,v)};l.exports=b,b.sync=y}),Gu=N((t,l)=>{"use strict";B();var n=Hu(),s=Z("fs"),i=Z("path"),p=Uu(),u=Fe(),r=class extends Error{constructor(g,b){super("Cannot extract through symbolic link"),this.path=b,this.symlink=g}get name(){return"SylinkError"}},e=class extends Error{constructor(g,b){super(b+": Cannot cd into '"+g+"'"),this.path=g,this.code=b}get name(){return"CwdError"}},f=(g,b)=>g.get(u(b)),a=(g,b,E)=>g.set(u(b),E),c=(g,b)=>{s.stat(g,(E,y)=>{(E||!y.isDirectory())&&(E=new e(g,E&&E.code||"ENOTDIR")),b(E)})};l.exports=(g,b,E)=>{g=u(g);let y=b.umask,D=b.mode|448,w=(D&y)!==0,v=b.uid,m=b.gid,_=typeof v=="number"&&typeof m=="number"&&(v!==b.processUid||m!==b.processGid),S=b.preserve,A=b.unlink,F=b.cache,P=u(b.cwd),T=(x,k)=>{x?E(x):(a(F,g,!0),k&&_?p(k,v,m,U=>T(U)):w?s.chmod(g,D,E):E())};if(F&&f(F,g)===!0)return T();if(g===P)return c(g,T);if(S)return n(g,{mode:D}).then(x=>T(null,x),T);let O=u(i.relative(P,g)).split("/");o(P,O,D,F,A,P,null,T)};var o=(g,b,E,y,D,w,v,m)=>{if(!b.length)return m(null,v);let _=b.shift(),S=u(i.resolve(g+"/"+_));if(f(y,S))return o(S,b,E,y,D,w,v,m);s.mkdir(S,E,d(S,b,E,y,D,w,v,m))},d=(g,b,E,y,D,w,v,m)=>_=>{_?s.lstat(g,(S,A)=>{if(S)S.path=S.path&&u(S.path),m(S);else if(A.isDirectory())o(g,b,E,y,D,w,v,m);else if(D)s.unlink(g,F=>{if(F)return m(F);s.mkdir(g,E,d(g,b,E,y,D,w,v,m))});else{if(A.isSymbolicLink())return m(new r(g,g+"/"+b.join("/")));m(_)}}):(v=v||g,o(g,b,E,y,D,w,v,m))},h=g=>{let b=!1,E="ENOTDIR";try{b=s.statSync(g).isDirectory()}catch(y){E=y.code}finally{if(!b)throw new e(g,E)}};l.exports.sync=(g,b)=>{g=u(g);let E=b.umask,y=b.mode|448,D=(y&E)!==0,w=b.uid,v=b.gid,m=typeof w=="number"&&typeof v=="number"&&(w!==b.processUid||v!==b.processGid),_=b.preserve,S=b.unlink,A=b.cache,F=u(b.cwd),P=x=>{a(A,g,!0),x&&m&&p.sync(x,w,v),D&&s.chmodSync(g,y)};if(A&&f(A,g)===!0)return P();if(g===F)return h(F),P();if(_)return P(n.sync(g,y));let T=u(i.relative(F,g)).split("/"),O=null;for(let x=T.shift(),k=F;x&&(k+="/"+x);x=T.shift())if(k=u(i.resolve(k)),!f(A,k))try{s.mkdirSync(k,y),O=O||k,a(A,k,!0)}catch{let U=s.lstatSync(k);if(U.isDirectory()){a(A,k,!0);continue}else if(S){s.unlinkSync(k),s.mkdirSync(k,y),O=O||k,a(A,k,!0);continue}else if(U.isSymbolicLink())return new r(k,k+"/"+T.join("/"))}return P(O)}}),oi=N((t,l)=>{B();var n=Object.create(null),{hasOwnProperty:s}=Object.prototype;l.exports=i=>(s.call(n,i)||(n[i]=i.normalize("NFKD")),n[i])}),qu=N((t,l)=>{B();var n=Z("assert"),s=oi(),i=Oe(),{join:p}=Z("path"),u=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,r=u==="win32";l.exports=()=>{let e=new Map,f=new Map,a=b=>b.split("/").slice(0,-1).reduce((E,y)=>(E.length&&(y=p(E[E.length-1],y)),E.push(y||"/"),E),[]),c=new Set,o=b=>{let E=f.get(b);if(!E)throw new Error("function does not have any path reservations");return{paths:E.paths.map(y=>e.get(y)),dirs:[...E.dirs].map(y=>e.get(y))}},d=b=>{let{paths:E,dirs:y}=o(b);return E.every(D=>D[0]===b)&&y.every(D=>D[0]instanceof Set&&D[0].has(b))},h=b=>c.has(b)||!d(b)?!1:(c.add(b),b(()=>g(b)),!0),g=b=>{if(!c.has(b))return!1;let{paths:E,dirs:y}=f.get(b),D=new Set;return E.forEach(w=>{let v=e.get(w);n.equal(v[0],b),v.length===1?e.delete(w):(v.shift(),typeof v[0]=="function"?D.add(v[0]):v[0].forEach(m=>D.add(m)))}),y.forEach(w=>{let v=e.get(w);n(v[0]instanceof Set),v[0].size===1&&v.length===1?e.delete(w):v[0].size===1?(v.shift(),D.add(v[0])):v[0].delete(b)}),c.delete(b),D.forEach(w=>h(w)),!0};return{check:d,reserve:(b,E)=>{b=r?["win32 parallelization disabled"]:b.map(D=>s(i(p(D))).toLowerCase());let y=new Set(b.map(D=>a(D)).reduce((D,w)=>D.concat(w)));return f.set(E,{dirs:y,paths:b}),b.forEach(D=>{let w=e.get(D);w?w.push(E):e.set(D,[E])}),y.forEach(D=>{let w=e.get(D);w?w[w.length-1]instanceof Set?w[w.length-1].add(E):w.push(new Set([E])):e.set(D,[new Set([E])])}),h(E)}}}}),zu=N((t,l)=>{B();var n=process.env.__FAKE_PLATFORM__||process.platform,s=n==="win32",i=global.__FAKE_TESTING_FS__||Z("fs"),{O_CREAT:p,O_TRUNC:u,O_WRONLY:r,UV_FS_O_FILEMAP:e=0}=i.constants,f=s&&!!e,a=512*1024,c=e|u|p|r;l.exports=f?o=>o<a?c:"w":()=>"w"}),ui=N((t,l)=>{"use strict";B();var n=Z("assert"),s=Ar(),i=Z("fs"),p=Re(),u=Z("path"),r=Gu(),e=ti(),f=qu(),a=ei(),c=Fe(),o=Oe(),d=oi(),h=Symbol("onEntry"),g=Symbol("checkFs"),b=Symbol("checkFs2"),E=Symbol("pruneCache"),y=Symbol("isReusable"),D=Symbol("makeFs"),w=Symbol("file"),v=Symbol("directory"),m=Symbol("link"),_=Symbol("symlink"),S=Symbol("hardlink"),A=Symbol("unsupported"),F=Symbol("checkPath"),P=Symbol("mkdir"),T=Symbol("onError"),O=Symbol("pending"),x=Symbol("pend"),k=Symbol("unpend"),U=Symbol("ended"),L=Symbol("maybeClose"),q=Symbol("skip"),V=Symbol("doChown"),et=Symbol("uid"),I=Symbol("gid"),M=Symbol("checkedCwd"),R=Z("crypto"),J=zu(),G=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Q=G==="win32",j=(C,z)=>{if(!Q)return i.unlink(C,z);let X=C+".DELETE."+R.randomBytes(16).toString("hex");i.rename(C,X,rt=>{if(rt)return z(rt);i.unlink(X,z)})},W=C=>{if(!Q)return i.unlinkSync(C);let z=C+".DELETE."+R.randomBytes(16).toString("hex");i.renameSync(C,z),i.unlinkSync(z)},tt=(C,z,X)=>C===C>>>0?C:z===z>>>0?z:X,ot=C=>d(o(c(C))).toLowerCase(),ct=(C,z)=>{z=ot(z);for(let X of C.keys()){let rt=ot(X);(rt===z||rt.indexOf(z+"/")===0)&&C.delete(X)}},gt=C=>{for(let z of C.keys())C.delete(z)},mt=class extends s{constructor(C){if(C||(C={}),C.ondone=z=>{this[U]=!0,this[L]()},super(C),this[M]=!1,this.reservations=f(),this.transform=typeof C.transform=="function"?C.transform:null,this.writable=!0,this.readable=!1,this[O]=0,this[U]=!1,this.dirCache=C.dirCache||new Map,typeof C.uid=="number"||typeof C.gid=="number"){if(typeof C.uid!="number"||typeof C.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(C.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=C.uid,this.gid=C.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;C.preserveOwner===void 0&&typeof C.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!C.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=C.forceChown===!0,this.win32=!!C.win32||Q,this.newer=!!C.newer,this.keep=!!C.keep,this.noMtime=!!C.noMtime,this.preservePaths=!!C.preservePaths,this.unlink=!!C.unlink,this.cwd=c(u.resolve(C.cwd||process.cwd())),this.strip=+C.strip||0,this.processUmask=C.noChmod?0:process.umask(),this.umask=typeof C.umask=="number"?C.umask:this.processUmask,this.dmode=C.dmode||511&~this.umask,this.fmode=C.fmode||438&~this.umask,this.on("entry",z=>this[h](z))}warn(C,z,X={}){return(C==="TAR_BAD_ARCHIVE"||C==="TAR_ABORT")&&(X.recoverable=!1),super.warn(C,z,X)}[L](){this[U]&&this[O]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[F](C){if(this.strip){let z=c(C.path).split("/");if(z.length<this.strip)return!1;if(C.path=z.slice(this.strip).join("/"),C.type==="Link"){let X=c(C.linkpath).split("/");if(X.length>=this.strip)C.linkpath=X.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let z=c(C.path),X=z.split("/");if(X.includes("..")||Q&&/^[a-z]:\.\.$/i.test(X[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:C,path:z}),!1;let[rt,ht]=a(z);rt&&(C.path=ht,this.warn("TAR_ENTRY_INFO",`stripping ${rt} from absolute path`,{entry:C,path:z}))}if(u.isAbsolute(C.path)?C.absolute=c(u.resolve(C.path)):C.absolute=c(u.resolve(this.cwd,C.path)),!this.preservePaths&&C.absolute.indexOf(this.cwd+"/")!==0&&C.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:C,path:c(C.path),resolvedPath:C.absolute,cwd:this.cwd}),!1;if(C.absolute===this.cwd&&C.type!=="Directory"&&C.type!=="GNUDumpDir")return!1;if(this.win32){let{root:z}=u.win32.parse(C.absolute);C.absolute=z+e.encode(C.absolute.slice(z.length));let{root:X}=u.win32.parse(C.path);C.path=X+e.encode(C.path.slice(X.length))}return!0}[h](C){if(!this[F](C))return C.resume();switch(n.equal(typeof C.absolute,"string"),C.type){case"Directory":case"GNUDumpDir":C.mode&&(C.mode=C.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[g](C);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[A](C)}}[T](C,z){C.name==="CwdError"?this.emit("error",C):(this.warn("TAR_ENTRY_ERROR",C,{entry:z}),this[k](),z.resume())}[P](C,z,X){r(c(C),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:z,noChmod:this.noChmod},X)}[V](C){return this.forceChown||this.preserveOwner&&(typeof C.uid=="number"&&C.uid!==this.processUid||typeof C.gid=="number"&&C.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[et](C){return tt(this.uid,C.uid,this.processUid)}[I](C){return tt(this.gid,C.gid,this.processGid)}[w](C,z){let X=C.mode&4095||this.fmode,rt=new p.WriteStream(C.absolute,{flags:J(C.size),mode:X,autoClose:!1});rt.on("error",nt=>{rt.fd&&i.close(rt.fd,()=>{}),rt.write=()=>!0,this[T](nt,C),z()});let ht=1,it=nt=>{if(nt){rt.fd&&i.close(rt.fd,()=>{}),this[T](nt,C),z();return}--ht===0&&i.close(rt.fd,ft=>{ft?this[T](ft,C):this[k](),z()})};rt.on("finish",nt=>{let ft=C.absolute,vt=rt.fd;if(C.mtime&&!this.noMtime){ht++;let xt=C.atime||new Date,K=C.mtime;i.futimes(vt,xt,K,H=>H?i.utimes(ft,xt,K,ut=>it(ut&&H)):it())}if(this[V](C)){ht++;let xt=this[et](C),K=this[I](C);i.fchown(vt,xt,K,H=>H?i.chown(ft,xt,K,ut=>it(ut&&H)):it())}it()});let lt=this.transform&&this.transform(C)||C;lt!==C&&(lt.on("error",nt=>{this[T](nt,C),z()}),C.pipe(lt)),lt.pipe(rt)}[v](C,z){let X=C.mode&4095||this.dmode;this[P](C.absolute,X,rt=>{if(rt){this[T](rt,C),z();return}let ht=1,it=lt=>{--ht===0&&(z(),this[k](),C.resume())};C.mtime&&!this.noMtime&&(ht++,i.utimes(C.absolute,C.atime||new Date,C.mtime,it)),this[V](C)&&(ht++,i.chown(C.absolute,this[et](C),this[I](C),it)),it()})}[A](C){C.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${C.type}`,{entry:C}),C.resume()}[_](C,z){this[m](C,C.linkpath,"symlink",z)}[S](C,z){let X=c(u.resolve(this.cwd,C.linkpath));this[m](C,X,"link",z)}[x](){this[O]++}[k](){this[O]--,this[L]()}[q](C){this[k](),C.resume()}[y](C,z){return C.type==="File"&&!this.unlink&&z.isFile()&&z.nlink<=1&&!Q}[g](C){this[x]();let z=[C.path];C.linkpath&&z.push(C.linkpath),this.reservations.reserve(z,X=>this[b](C,X))}[E](C){C.type==="SymbolicLink"?gt(this.dirCache):C.type!=="Directory"&&ct(this.dirCache,C.absolute)}[b](C,z){this[E](C);let X=lt=>{this[E](C),z(lt)},rt=()=>{this[P](this.cwd,this.dmode,lt=>{if(lt){this[T](lt,C),X();return}this[M]=!0,ht()})},ht=()=>{if(C.absolute!==this.cwd){let lt=c(u.dirname(C.absolute));if(lt!==this.cwd)return this[P](lt,this.dmode,nt=>{if(nt){this[T](nt,C),X();return}it()})}it()},it=()=>{i.lstat(C.absolute,(lt,nt)=>{if(nt&&(this.keep||this.newer&&nt.mtime>C.mtime)){this[q](C),X();return}if(lt||this[y](C,nt))return this[D](null,C,X);if(nt.isDirectory()){if(C.type==="Directory"){let ft=!this.noChmod&&C.mode&&(nt.mode&4095)!==C.mode,vt=xt=>this[D](xt,C,X);return ft?i.chmod(C.absolute,C.mode,vt):vt()}if(C.absolute!==this.cwd)return i.rmdir(C.absolute,ft=>this[D](ft,C,X))}if(C.absolute===this.cwd)return this[D](null,C,X);j(C.absolute,ft=>this[D](ft,C,X))})};this[M]?ht():rt()}[D](C,z,X){if(C){this[T](C,z),X();return}switch(z.type){case"File":case"OldFile":case"ContiguousFile":return this[w](z,X);case"Link":return this[S](z,X);case"SymbolicLink":return this[_](z,X);case"Directory":case"GNUDumpDir":return this[v](z,X)}}[m](C,z,X,rt){i[X](z,C.absolute,ht=>{ht?this[T](ht,C):(this[k](),C.resume()),rt()})}},$=C=>{try{return[null,C()]}catch(z){return[z,null]}},Y=class extends mt{[D](C,z){return super[D](C,z,()=>{})}[g](C){if(this[E](C),!this[M]){let ht=this[P](this.cwd,this.dmode);if(ht)return this[T](ht,C);this[M]=!0}if(C.absolute!==this.cwd){let ht=c(u.dirname(C.absolute));if(ht!==this.cwd){let it=this[P](ht,this.dmode);if(it)return this[T](it,C)}}let[z,X]=$(()=>i.lstatSync(C.absolute));if(X&&(this.keep||this.newer&&X.mtime>C.mtime))return this[q](C);if(z||this[y](C,X))return this[D](null,C);if(X.isDirectory()){if(C.type==="Directory"){let it=!this.noChmod&&C.mode&&(X.mode&4095)!==C.mode,[lt]=it?$(()=>{i.chmodSync(C.absolute,C.mode)}):[];return this[D](lt,C)}let[ht]=$(()=>i.rmdirSync(C.absolute));this[D](ht,C)}let[rt]=C.absolute===this.cwd?[]:$(()=>W(C.absolute));this[D](rt,C)}[w](C,z){let X=C.mode&4095||this.fmode,rt=lt=>{let nt;try{i.closeSync(ht)}catch(ft){nt=ft}(lt||nt)&&this[T](lt||nt,C),z()},ht;try{ht=i.openSync(C.absolute,J(C.size),X)}catch(lt){return rt(lt)}let it=this.transform&&this.transform(C)||C;it!==C&&(it.on("error",lt=>this[T](lt,C)),C.pipe(it)),it.on("data",lt=>{try{i.writeSync(ht,lt,0,lt.length)}catch(nt){rt(nt)}}),it.on("end",lt=>{let nt=null;if(C.mtime&&!this.noMtime){let ft=C.atime||new Date,vt=C.mtime;try{i.futimesSync(ht,ft,vt)}catch(xt){try{i.utimesSync(C.absolute,ft,vt)}catch{nt=xt}}}if(this[V](C)){let ft=this[et](C),vt=this[I](C);try{i.fchownSync(ht,ft,vt)}catch(xt){try{i.chownSync(C.absolute,ft,vt)}catch{nt=nt||xt}}}rt(nt)})}[v](C,z){let X=C.mode&4095||this.dmode,rt=this[P](C.absolute,X);if(rt){this[T](rt,C),z();return}if(C.mtime&&!this.noMtime)try{i.utimesSync(C.absolute,C.atime||new Date,C.mtime)}catch{}if(this[V](C))try{i.chownSync(C.absolute,this[et](C),this[I](C))}catch{}z(),C.resume()}[P](C,z){try{return r.sync(c(C),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:z})}catch(X){return X}}[m](C,z,X,rt){try{i[X+"Sync"](z,C.absolute),rt(),C.resume()}catch(ht){return this[T](ht,C)}}};mt.Sync=Y,l.exports=mt}),Wu=N((t,l)=>{"use strict";B();var n=xe(),s=ui(),i=Z("fs"),p=Re(),u=Z("path"),r=Oe();l.exports=(d,h,g)=>{typeof d=="function"?(g=d,h=null,d={}):Array.isArray(d)&&(h=d,d={}),typeof h=="function"&&(g=h,h=null),h?h=Array.from(h):h=[];let b=n(d);if(b.sync&&typeof g=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof g=="function")throw new TypeError("callback only supported with file option");return h.length&&e(b,h),b.file&&b.sync?f(b):b.file?a(b,g):b.sync?c(b):o(b)};var e=(d,h)=>{let g=new Map(h.map(y=>[r(y),!0])),b=d.filter,E=(y,D)=>{let w=D||u.parse(y).root||".",v=y===w?!1:g.has(y)?g.get(y):E(u.dirname(y),w);return g.set(y,v),v};d.filter=b?(y,D)=>b(y,D)&&E(r(y)):y=>E(r(y))},f=d=>{let h=new s.Sync(d),g=d.file,b=i.statSync(g),E=d.maxReadSize||16*1024*1024;new p.ReadStreamSync(g,{readSize:E,size:b.size}).pipe(h)},a=(d,h)=>{let g=new s(d),b=d.maxReadSize||16*1024*1024,E=d.file,y=new Promise((D,w)=>{g.on("error",w),g.on("close",D),i.stat(E,(v,m)=>{if(v)w(v);else{let _=new p.ReadStream(E,{readSize:b,size:m.size});_.on("error",w),_.pipe(g)}})});return h?y.then(h,h):y},c=d=>new s.Sync(d),o=d=>new s(d)}),Vu=N(t=>{"use strict";B(),t.c=t.create=Pu(),t.r=t.replace=ii(),t.t=t.list=Cr(),t.u=t.update=Iu(),t.x=t.extract=Wu(),t.Pack=Sr(),t.Unpack=ui(),t.Parse=Ar(),t.ReadEntry=_r(),t.WriteEntry=ri(),t.Header=ke(),t.Pax=wr(),t.types=Qn()});B();var Zp=Ot(ku()),Xp=Ot(Vu()),Qp=(0,li.promisify)(ai.Stream.pipeline);var Yu=N((t,l)=>{B();var n=Z("constants"),s=process.cwd,i=null,p=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=s.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(u=process.chdir,process.chdir=function(e){i=null,u.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,u));var u;l.exports=r;function r(e){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&f(e),e.lutimes||a(e),e.chown=d(e.chown),e.fchown=d(e.fchown),e.lchown=d(e.lchown),e.chmod=c(e.chmod),e.fchmod=c(e.fchmod),e.lchmod=c(e.lchmod),e.chownSync=h(e.chownSync),e.fchownSync=h(e.fchownSync),e.lchownSync=h(e.lchownSync),e.chmodSync=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(e.lchmodSync),e.stat=g(e.stat),e.fstat=g(e.fstat),e.lstat=g(e.lstat),e.statSync=b(e.statSync),e.fstatSync=b(e.fstatSync),e.lstatSync=b(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(y,D,w){w&&process.nextTick(w)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(y,D,w,v){v&&process.nextTick(v)},e.lchownSync=function(){}),p==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(y){function D(w,v,m){var _=Date.now(),S=0;y(w,v,function A(F){if(F&&(F.code==="EACCES"||F.code==="EPERM")&&Date.now()-_<6e4){setTimeout(function(){e.stat(v,function(P,T){P&&P.code==="ENOENT"?y(w,v,A):m(F)})},S),S<100&&(S+=10);return}m&&m(F)})}return Object.setPrototypeOf&&Object.setPrototypeOf(D,y),D}(e.rename)),e.read=typeof e.read!="function"?e.read:function(y){function D(w,v,m,_,S,A){var F;if(A&&typeof A=="function"){var P=0;F=function(T,O,x){if(T&&T.code==="EAGAIN"&&P<10)return P++,y.call(e,w,v,m,_,S,F);A.apply(this,arguments)}}return y.call(e,w,v,m,_,S,F)}return Object.setPrototypeOf&&Object.setPrototypeOf(D,y),D}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(y){return function(D,w,v,m,_){for(var S=0;;)try{return y.call(e,D,w,v,m,_)}catch(A){if(A.code==="EAGAIN"&&S<10){S++;continue}throw A}}}(e.readSync);function f(y){y.lchmod=function(D,w,v){y.open(D,n.O_WRONLY|n.O_SYMLINK,w,function(m,_){if(m){v&&v(m);return}y.fchmod(_,w,function(S){y.close(_,function(A){v&&v(S||A)})})})},y.lchmodSync=function(D,w){var v=y.openSync(D,n.O_WRONLY|n.O_SYMLINK,w),m=!0,_;try{_=y.fchmodSync(v,w),m=!1}finally{if(m)try{y.closeSync(v)}catch{}else y.closeSync(v)}return _}}function a(y){n.hasOwnProperty("O_SYMLINK")&&y.futimes?(y.lutimes=function(D,w,v,m){y.open(D,n.O_SYMLINK,function(_,S){if(_){m&&m(_);return}y.futimes(S,w,v,function(A){y.close(S,function(F){m&&m(A||F)})})})},y.lutimesSync=function(D,w,v){var m=y.openSync(D,n.O_SYMLINK),_,S=!0;try{_=y.futimesSync(m,w,v),S=!1}finally{if(S)try{y.closeSync(m)}catch{}else y.closeSync(m)}return _}):y.futimes&&(y.lutimes=function(D,w,v,m){m&&process.nextTick(m)},y.lutimesSync=function(){})}function c(y){return y&&function(D,w,v){return y.call(e,D,w,function(m){E(m)&&(m=null),v&&v.apply(this,arguments)})}}function o(y){return y&&function(D,w){try{return y.call(e,D,w)}catch(v){if(!E(v))throw v}}}function d(y){return y&&function(D,w,v,m){return y.call(e,D,w,v,function(_){E(_)&&(_=null),m&&m.apply(this,arguments)})}}function h(y){return y&&function(D,w,v){try{return y.call(e,D,w,v)}catch(m){if(!E(m))throw m}}}function g(y){return y&&function(D,w,v){typeof w=="function"&&(v=w,w=null);function m(_,S){S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),v&&v.apply(this,arguments)}return w?y.call(e,D,w,m):y.call(e,D,m)}}function b(y){return y&&function(D,w){var v=w?y.call(e,D,w):y.call(e,D);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function E(y){if(!y||y.code==="ENOSYS")return!0;var D=!process.getuid||process.getuid()!==0;return!!(D&&(y.code==="EINVAL"||y.code==="EPERM"))}}}),Ku=N((t,l)=>{B();var n=Z("stream").Stream;l.exports=s;function s(i){return{ReadStream:p,WriteStream:u};function p(r,e){if(!(this instanceof p))return new p(r,e);n.call(this);var f=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,e=e||{};for(var a=Object.keys(e),c=0,o=a.length;c<o;c++){var d=a[c];this[d]=e[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){f._read()});return}i.open(this.path,this.flags,this.mode,function(h,g){if(h){f.emit("error",h),f.readable=!1;return}f.fd=g,f.emit("open",g),f._read()})}function u(r,e){if(!(this instanceof u))return new u(r,e);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,e=e||{};for(var f=Object.keys(e),a=0,c=f.length;a<c;a++){var o=f[a];this[o]=e[o]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),Ju=N((t,l)=>{"use strict";B(),l.exports=s;var n=Object.getPrototypeOf||function(i){return i.__proto__};function s(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var p={__proto__:n(i)};else var p=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(u){Object.defineProperty(p,u,Object.getOwnPropertyDescriptor(i,u))}),p}}),Ct=N((t,l)=>{B();var n=Z("fs"),s=Yu(),i=Ku(),p=Ju(),u=Z("util"),r,e;typeof Symbol=="function"&&typeof Symbol.for=="function"?(r=Symbol.for("graceful-fs.queue"),e=Symbol.for("graceful-fs.previous")):(r="___graceful-fs.queue",e="___graceful-fs.previous");function f(){}function a(y,D){Object.defineProperty(y,r,{get:function(){return D}})}var c=f;u.debuglog?c=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(c=function(){var y=u.format.apply(u,arguments);y="GFS4: "+y.split(/\n/).join(`
|
25
|
-
GFS4: `),console.error(y)}),n[r]||(o=global[r]||[],a(n,o),n.close=function(y){function D(w,v){return y.call(n,w,function(m){m||b(),typeof v=="function"&&v.apply(this,arguments)})}return Object.defineProperty(D,e,{value:y}),D}(n.close),n.closeSync=function(y){function D(w){y.apply(n,arguments),b()}return Object.defineProperty(D,e,{value:y}),D}(n.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){c(n[r]),Z("assert").equal(n[r].length,0)}));var o;global[r]||a(global,n[r]),l.exports=d(p(n)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched&&(l.exports=d(n),n.__patched=!0);function d(y){s(y),y.gracefulify=d,y.createReadStream=R,y.createWriteStream=J;var D=y.readFile;y.readFile=w;function w(j,W,tt){return typeof W=="function"&&(tt=W,W=null),ot(j,W,tt);function ot(ct,gt,mt,$){return D(ct,gt,function(Y){Y&&(Y.code==="EMFILE"||Y.code==="ENFILE")?h([ot,[ct,gt,mt],Y,$||Date.now(),Date.now()]):typeof mt=="function"&&mt.apply(this,arguments)})}}var v=y.writeFile;y.writeFile=m;function m(j,W,tt,ot){return typeof tt=="function"&&(ot=tt,tt=null),ct(j,W,tt,ot);function ct(gt,mt,$,Y,C){return v(gt,mt,$,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?h([ct,[gt,mt,$,Y],z,C||Date.now(),Date.now()]):typeof Y=="function"&&Y.apply(this,arguments)})}}var _=y.appendFile;_&&(y.appendFile=S);function S(j,W,tt,ot){return typeof tt=="function"&&(ot=tt,tt=null),ct(j,W,tt,ot);function ct(gt,mt,$,Y,C){return _(gt,mt,$,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?h([ct,[gt,mt,$,Y],z,C||Date.now(),Date.now()]):typeof Y=="function"&&Y.apply(this,arguments)})}}var A=y.copyFile;A&&(y.copyFile=F);function F(j,W,tt,ot){return typeof tt=="function"&&(ot=tt,tt=0),ct(j,W,tt,ot);function ct(gt,mt,$,Y,C){return A(gt,mt,$,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?h([ct,[gt,mt,$,Y],z,C||Date.now(),Date.now()]):typeof Y=="function"&&Y.apply(this,arguments)})}}var P=y.readdir;y.readdir=O;var T=/^v[0-5]\./;function O(j,W,tt){typeof W=="function"&&(tt=W,W=null);var ot=T.test(process.version)?function(gt,mt,$,Y){return P(gt,ct(gt,mt,$,Y))}:function(gt,mt,$,Y){return P(gt,mt,ct(gt,mt,$,Y))};return ot(j,W,tt);function ct(gt,mt,$,Y){return function(C,z){C&&(C.code==="EMFILE"||C.code==="ENFILE")?h([ot,[gt,mt,$],C,Y||Date.now(),Date.now()]):(z&&z.sort&&z.sort(),typeof $=="function"&&$.call(this,C,z))}}}if(process.version.substr(0,4)==="v0.8"){var x=i(y);V=x.ReadStream,I=x.WriteStream}var k=y.ReadStream;k&&(V.prototype=Object.create(k.prototype),V.prototype.open=et);var U=y.WriteStream;U&&(I.prototype=Object.create(U.prototype),I.prototype.open=M),Object.defineProperty(y,"ReadStream",{get:function(){return V},set:function(j){V=j},enumerable:!0,configurable:!0}),Object.defineProperty(y,"WriteStream",{get:function(){return I},set:function(j){I=j},enumerable:!0,configurable:!0});var L=V;Object.defineProperty(y,"FileReadStream",{get:function(){return L},set:function(j){L=j},enumerable:!0,configurable:!0});var q=I;Object.defineProperty(y,"FileWriteStream",{get:function(){return q},set:function(j){q=j},enumerable:!0,configurable:!0});function V(j,W){return this instanceof V?(k.apply(this,arguments),this):V.apply(Object.create(V.prototype),arguments)}function et(){var j=this;Q(j.path,j.flags,j.mode,function(W,tt){W?(j.autoClose&&j.destroy(),j.emit("error",W)):(j.fd=tt,j.emit("open",tt),j.read())})}function I(j,W){return this instanceof I?(U.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function M(){var j=this;Q(j.path,j.flags,j.mode,function(W,tt){W?(j.destroy(),j.emit("error",W)):(j.fd=tt,j.emit("open",tt))})}function R(j,W){return new y.ReadStream(j,W)}function J(j,W){return new y.WriteStream(j,W)}var G=y.open;y.open=Q;function Q(j,W,tt,ot){return typeof tt=="function"&&(ot=tt,tt=null),ct(j,W,tt,ot);function ct(gt,mt,$,Y,C){return G(gt,mt,$,function(z,X){z&&(z.code==="EMFILE"||z.code==="ENFILE")?h([ct,[gt,mt,$,Y],z,C||Date.now(),Date.now()]):typeof Y=="function"&&Y.apply(this,arguments)})}}return y}function h(y){c("ENQUEUE",y[0].name,y[1]),n[r].push(y),E()}var g;function b(){for(var y=Date.now(),D=0;D<n[r].length;++D)n[r][D].length>2&&(n[r][D][3]=y,n[r][D][4]=y);E()}function E(){if(clearTimeout(g),g=void 0,n[r].length!==0){var y=n[r].shift(),D=y[0],w=y[1],v=y[2],m=y[3],_=y[4];if(m===void 0)c("RETRY",D.name,w),D.apply(null,w);else if(Date.now()-m>=6e4){c("TIMEOUT",D.name,w);var S=w.pop();typeof S=="function"&&S.call(null,v)}else{var A=Date.now()-_,F=Math.max(_-m,1),P=Math.min(F*1.2,100);A>=P?(c("RETRY",D.name,w),D.apply(null,w.concat([m]))):n[r].push(y)}g===void 0&&(g=setTimeout(E,0))}}});var Vt=N(t=>{"use strict";B(),t.fromCallback=function(l){return Object.defineProperty(function(...n){if(typeof n[n.length-1]=="function")l.apply(this,n);else return new Promise((s,i)=>{l.call(this,...n,(p,u)=>p!=null?i(p):s(u))})},"name",{value:l.name})},t.fromPromise=function(l){return Object.defineProperty(function(...n){let s=n[n.length-1];if(typeof s!="function")return l.apply(this,n);l.apply(this,n.slice(0,-1)).then(i=>s(null,i),s)},"name",{value:l.name})}}),Ee=N(t=>{"use strict";B();var l=Vt().fromCallback,n=Ct(),s=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof n[i]=="function");Object.assign(t,n),s.forEach(i=>{t[i]=l(n[i])}),t.exists=function(i,p){return typeof p=="function"?n.exists(i,p):new Promise(u=>n.exists(i,u))},t.read=function(i,p,u,r,e,f){return typeof f=="function"?n.read(i,p,u,r,e,f):new Promise((a,c)=>{n.read(i,p,u,r,e,(o,d,h)=>{if(o)return c(o);a({bytesRead:d,buffer:h})})})},t.write=function(i,p,...u){return typeof u[u.length-1]=="function"?n.write(i,p,...u):new Promise((r,e)=>{n.write(i,p,...u,(f,a,c)=>{if(f)return e(f);r({bytesWritten:a,buffer:c})})})},t.readv=function(i,p,...u){return typeof u[u.length-1]=="function"?n.readv(i,p,...u):new Promise((r,e)=>{n.readv(i,p,...u,(f,a,c)=>{if(f)return e(f);r({bytesRead:a,buffers:c})})})},t.writev=function(i,p,...u){return typeof u[u.length-1]=="function"?n.writev(i,p,...u):new Promise((r,e)=>{n.writev(i,p,...u,(f,a,c)=>{if(f)return e(f);r({bytesWritten:a,buffers:c})})})},typeof n.realpath.native=="function"?t.realpath.native=l(n.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}),Zu=N((t,l)=>{"use strict";B();var n=Z("path");l.exports.checkPath=function(s){if(process.platform==="win32"&&/[<>:"|?*]/.test(s.replace(n.parse(s).root,""))){let i=new Error(`Path contains invalid characters: ${s}`);throw i.code="EINVAL",i}}}),Xu=N((t,l)=>{"use strict";B();var n=Ee(),{checkPath:s}=Zu(),i=p=>typeof p=="number"?p:{...{mode:511},...p}.mode;l.exports.makeDir=async(p,u)=>(s(p),n.mkdir(p,{mode:i(u),recursive:!0})),l.exports.makeDirSync=(p,u)=>(s(p),n.mkdirSync(p,{mode:i(u),recursive:!0}))}),Xt=N((t,l)=>{"use strict";B();var n=Vt().fromPromise,{makeDir:s,makeDirSync:i}=Xu(),p=n(s);l.exports={mkdirs:p,mkdirsSync:i,mkdirp:p,mkdirpSync:i,ensureDir:p,ensureDirSync:i}}),fe=N((t,l)=>{"use strict";B();var n=Vt().fromPromise,s=Ee();function i(p){return s.access(p).then(()=>!0).catch(()=>!1)}l.exports={pathExists:n(i),pathExistsSync:s.existsSync}}),ci=N((t,l)=>{"use strict";B();var n=Ct();function s(p,u,r,e){n.open(p,"r+",(f,a)=>{if(f)return e(f);n.futimes(a,u,r,c=>{n.close(a,o=>{e&&e(c||o)})})})}function i(p,u,r){let e=n.openSync(p,"r+");return n.futimesSync(e,u,r),n.closeSync(e)}l.exports={utimesMillis:s,utimesMillisSync:i}}),_e=N((t,l)=>{"use strict";B();var n=Ee(),s=Z("path"),i=Z("util");function p(h,g,b){let E=b.dereference?y=>n.stat(y,{bigint:!0}):y=>n.lstat(y,{bigint:!0});return Promise.all([E(h),E(g).catch(y=>{if(y.code==="ENOENT")return null;throw y})]).then(([y,D])=>({srcStat:y,destStat:D}))}function u(h,g,b){let E,y=b.dereference?w=>n.statSync(w,{bigint:!0}):w=>n.lstatSync(w,{bigint:!0}),D=y(h);try{E=y(g)}catch(w){if(w.code==="ENOENT")return{srcStat:D,destStat:null};throw w}return{srcStat:D,destStat:E}}function r(h,g,b,E,y){i.callbackify(p)(h,g,E,(D,w)=>{if(D)return y(D);let{srcStat:v,destStat:m}=w;if(m){if(c(v,m)){let _=s.basename(h),S=s.basename(g);return b==="move"&&_!==S&&_.toLowerCase()===S.toLowerCase()?y(null,{srcStat:v,destStat:m,isChangingCase:!0}):y(new Error("Source and destination must not be the same."))}if(v.isDirectory()&&!m.isDirectory())return y(new Error(`Cannot overwrite non-directory '${g}' with directory '${h}'.`));if(!v.isDirectory()&&m.isDirectory())return y(new Error(`Cannot overwrite directory '${g}' with non-directory '${h}'.`))}return v.isDirectory()&&o(h,g)?y(new Error(d(h,g,b))):y(null,{srcStat:v,destStat:m})})}function e(h,g,b,E){let{srcStat:y,destStat:D}=u(h,g,E);if(D){if(c(y,D)){let w=s.basename(h),v=s.basename(g);if(b==="move"&&w!==v&&w.toLowerCase()===v.toLowerCase())return{srcStat:y,destStat:D,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(y.isDirectory()&&!D.isDirectory())throw new Error(`Cannot overwrite non-directory '${g}' with directory '${h}'.`);if(!y.isDirectory()&&D.isDirectory())throw new Error(`Cannot overwrite directory '${g}' with non-directory '${h}'.`)}if(y.isDirectory()&&o(h,g))throw new Error(d(h,g,b));return{srcStat:y,destStat:D}}function f(h,g,b,E,y){let D=s.resolve(s.dirname(h)),w=s.resolve(s.dirname(b));if(w===D||w===s.parse(w).root)return y();n.stat(w,{bigint:!0},(v,m)=>v?v.code==="ENOENT"?y():y(v):c(g,m)?y(new Error(d(h,b,E))):f(h,g,w,E,y))}function a(h,g,b,E){let y=s.resolve(s.dirname(h)),D=s.resolve(s.dirname(b));if(D===y||D===s.parse(D).root)return;let w;try{w=n.statSync(D,{bigint:!0})}catch(v){if(v.code==="ENOENT")return;throw v}if(c(g,w))throw new Error(d(h,b,E));return a(h,g,D,E)}function c(h,g){return g.ino&&g.dev&&g.ino===h.ino&&g.dev===h.dev}function o(h,g){let b=s.resolve(h).split(s.sep).filter(y=>y),E=s.resolve(g).split(s.sep).filter(y=>y);return b.reduce((y,D,w)=>y&&E[w]===D,!0)}function d(h,g,b){return`Cannot ${b} '${h}' to a subdirectory of itself, '${g}'.`}l.exports={checkPaths:r,checkPathsSync:e,checkParentPaths:f,checkParentPathsSync:a,isSrcSubdir:o,areIdentical:c}}),Qu=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=Xt().mkdirs,p=fe().pathExists,u=ci().utimesMillis,r=_e();function e(T,O,x,k){typeof x=="function"&&!k?(k=x,x={}):typeof x=="function"&&(x={filter:x}),k=k||function(){},x=x||{},x.clobber="clobber"in x?!!x.clobber:!0,x.overwrite="overwrite"in x?!!x.overwrite:x.clobber,x.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
24
|
+
`).reduce(r,Object.create(null)),r=(e,f)=>{let a=parseInt(f,10);if(a!==Buffer.byteLength(f)+1)return e;f=f.slice((a+" ").length);let c=f.split("="),o=c.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!o)return e;let d=c.join("=");return e[o]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(o)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,e};l.exports=i}),Oe=N((t,l)=>{B(),l.exports=n=>{let s=n.length-1,i=-1;for(;s>-1&&n.charAt(s)==="/";)i=s,s--;return i===-1?n:n.slice(0,i)}}),Dr=N((t,l)=>{"use strict";B(),l.exports=n=>class extends n{warn(s,i,p={}){this.file&&(p.file=this.file),this.cwd&&(p.cwd=this.cwd),p.code=i instanceof Error&&i.code||s,p.tarCode=s,!this.strict&&p.recoverable!==!1?(i instanceof Error&&(p=Object.assign(i,p),i=i.message),this.emit("warn",p.tarCode,i,p)):i instanceof Error?this.emit("error",Object.assign(i,p)):this.emit("error",Object.assign(new Error(`${s}: ${i}`),p))}}}),ti=N((t,l)=>{"use strict";B();var n=["|","<",">","?",":"],s=n.map(u=>String.fromCharCode(61440+u.charCodeAt(0))),i=new Map(n.map((u,r)=>[u,s[r]])),p=new Map(s.map((u,r)=>[u,n[r]]));l.exports={encode:u=>n.reduce((r,e)=>r.split(e).join(i.get(e)),u),decode:u=>s.reduce((r,e)=>r.split(e).join(p.get(e)),u)}}),ei=N((t,l)=>{B();var{isAbsolute:n,parse:s}=Z("path").win32;l.exports=i=>{let p="",u=s(i);for(;n(i)||u.root;){let r=i.charAt(0)==="/"&&i.slice(0,4)!=="//?/"?"/":u.root;i=i.slice(r.length),p+=r,u=s(i)}return[p,i]}}),Tu=N((t,l)=>{"use strict";B(),l.exports=(n,s,i)=>(n&=4095,i&&(n=(n|384)&-19),s&&(n&256&&(n|=64),n&32&&(n|=8),n&4&&(n|=1)),n)}),ri=N((t,l)=>{"use strict";B();var n=Er(),s=wr(),i=ke(),p=Z("fs"),u=Z("path"),r=Fe(),e=Oe(),f=(j,k)=>k?(j=r(j).replace(/^\.(\/|$)/,""),e(k)+"/"+j):r(j),a=16*1024*1024,c=Symbol("process"),o=Symbol("file"),d=Symbol("directory"),h=Symbol("symlink"),y=Symbol("hardlink"),b=Symbol("header"),E=Symbol("read"),g=Symbol("lstat"),D=Symbol("onlstat"),w=Symbol("onread"),v=Symbol("onreadlink"),m=Symbol("openfile"),_=Symbol("onopenfile"),S=Symbol("close"),A=Symbol("mode"),x=Symbol("awaitDrain"),L=Symbol("ondrain"),T=Symbol("prefix"),F=Symbol("hadError"),O=Dr(),I=ti(),$=ei(),R=Tu(),G=O(class extends n{constructor(j,k){if(k=k||{},super(k),typeof j!="string")throw new TypeError("path is required");this.path=r(j),this.portable=!!k.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=k.maxReadSize||a,this.linkCache=k.linkCache||new Map,this.statCache=k.statCache||new Map,this.preservePaths=!!k.preservePaths,this.cwd=r(k.cwd||process.cwd()),this.strict=!!k.strict,this.noPax=!!k.noPax,this.noMtime=!!k.noMtime,this.mtime=k.mtime||null,this.prefix=k.prefix?r(k.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof k.onwarn=="function"&&this.on("warn",k.onwarn);let J=!1;if(!this.preservePaths){let[q,tt]=$(this.path);q&&(this.path=tt,J=q)}this.win32=!!k.win32||process.platform==="win32",this.win32&&(this.path=I.decode(this.path.replace(/\\/g,"/")),j=j.replace(/\\/g,"/")),this.absolute=r(k.absolute||u.resolve(this.cwd,j)),this.path===""&&(this.path="./"),J&&this.warn("TAR_ENTRY_INFO",`stripping ${J} from absolute path`,{entry:this,path:J+this.path}),this.statCache.has(this.absolute)?this[D](this.statCache.get(this.absolute)):this[g]()}emit(j,...k){return j==="error"&&(this[F]=!0),super.emit(j,...k)}[g](){p.lstat(this.absolute,(j,k)=>{if(j)return this.emit("error",j);this[D](k)})}[D](j){this.statCache.set(this.absolute,j),this.stat=j,j.isFile()||(j.size=0),this.type=P(j),this.emit("stat",j),this[c]()}[c](){switch(this.type){case"File":return this[o]();case"Directory":return this[d]();case"SymbolicLink":return this[h]();default:return this.end()}}[A](j){return R(j,this.type==="Directory",this.portable)}[T](j){return f(j,this.prefix)}[b](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new i({path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,mode:this[A](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new s({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[d](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[b](),this.end()}[h](){p.readlink(this.absolute,(j,k)=>{if(j)return this.emit("error",j);this[v](k)})}[v](j){this.linkpath=r(j),this[b](),this.end()}[y](j){this.type="Link",this.linkpath=r(u.relative(this.cwd,j)),this.stat.size=0,this[b](),this.end()}[o](){if(this.stat.nlink>1){let j=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(j)){let k=this.linkCache.get(j);if(k.indexOf(this.cwd)===0)return this[y](k)}this.linkCache.set(j,this.absolute)}if(this[b](),this.stat.size===0)return this.end();this[m]()}[m](){p.open(this.absolute,"r",(j,k)=>{if(j)return this.emit("error",j);this[_](k)})}[_](j){if(this.fd=j,this[F])return this[S]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let k=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(k),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[E]()}[E](){let{fd:j,buf:k,offset:J,length:q,pos:tt}=this;p.read(j,k,J,q,tt,(M,Y)=>{if(M)return this[S](()=>this.emit("error",M));this[w](Y)})}[S](j){p.close(this.fd,j)}[w](j){if(j<=0&&this.remain>0){let J=new Error("encountered unexpected EOF");return J.path=this.absolute,J.syscall="read",J.code="EOF",this[S](()=>this.emit("error",J))}if(j>this.remain){let J=new Error("did not encounter expected EOF");return J.path=this.absolute,J.syscall="read",J.code="EOF",this[S](()=>this.emit("error",J))}if(j===this.remain)for(let J=j;J<this.length&&j<this.blockRemain;J++)this.buf[J+this.offset]=0,j++,this.remain++;let k=this.offset===0&&j===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+j);this.write(k)?this[L]():this[x](()=>this[L]())}[x](j){this.once("drain",j)}write(j){if(this.blockRemain<j.length){let k=new Error("writing more data than expected");return k.path=this.absolute,this.emit("error",k)}return this.remain-=j.length,this.blockRemain-=j.length,this.pos+=j.length,this.offset+=j.length,super.write(j)}[L](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[S](j=>j?this.emit("error",j):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[E]()}}),W=class extends G{[g](){this[D](p.lstatSync(this.absolute))}[h](){this[v](p.readlinkSync(this.absolute))}[m](){this[_](p.openSync(this.absolute,"r"))}[E](){let j=!0;try{let{fd:k,buf:J,offset:q,length:tt,pos:M}=this,Y=p.readSync(k,J,q,tt,M);this[w](Y),j=!1}finally{if(j)try{this[S](()=>{})}catch{}}}[x](j){j()}[S](j){p.closeSync(this.fd),j()}},Q=O(class extends n{constructor(j,k){k=k||{},super(k),this.preservePaths=!!k.preservePaths,this.portable=!!k.portable,this.strict=!!k.strict,this.noPax=!!k.noPax,this.noMtime=!!k.noMtime,this.readEntry=j,this.type=j.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=k.prefix||null,this.path=r(j.path),this.mode=this[A](j.mode),this.uid=this.portable?null:j.uid,this.gid=this.portable?null:j.gid,this.uname=this.portable?null:j.uname,this.gname=this.portable?null:j.gname,this.size=j.size,this.mtime=this.noMtime?null:k.mtime||j.mtime,this.atime=this.portable?null:j.atime,this.ctime=this.portable?null:j.ctime,this.linkpath=r(j.linkpath),typeof k.onwarn=="function"&&this.on("warn",k.onwarn);let J=!1;if(!this.preservePaths){let[q,tt]=$(this.path);q&&(this.path=tt,J=q)}this.remain=j.size,this.blockRemain=j.startBlockSize,this.header=new i({path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),J&&this.warn("TAR_ENTRY_INFO",`stripping ${J} from absolute path`,{entry:this,path:J+this.path}),this.header.encode()&&!this.noPax&&super.write(new s({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[T](this.path),linkpath:this.type==="Link"?this[T](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),j.pipe(this)}[T](j){return f(j,this.prefix)}[A](j){return R(j,this.type==="Directory",this.portable)}write(j){let k=j.length;if(k>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=k,super.write(j)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});G.Sync=W,G.Tar=Q;var P=j=>j.isFile()?"File":j.isDirectory()?"Directory":j.isSymbolicLink()?"SymbolicLink":"Unsupported";l.exports=G}),Bu=N((t,l)=>{"use strict";B(),l.exports=function(n){n.prototype[Symbol.iterator]=function*(){for(let s=this.head;s;s=s.next)yield s.value}}}),ni=N((t,l)=>{"use strict";B(),l.exports=n,n.Node=u,n.create=n;function n(r){var e=this;if(e instanceof n||(e=new n),e.tail=null,e.head=null,e.length=0,r&&typeof r.forEach=="function")r.forEach(function(c){e.push(c)});else if(arguments.length>0)for(var f=0,a=arguments.length;f<a;f++)e.push(arguments[f]);return e}n.prototype.removeNode=function(r){if(r.list!==this)throw new Error("removing node which does not belong to this list");var e=r.next,f=r.prev;return e&&(e.prev=f),f&&(f.next=e),r===this.head&&(this.head=e),r===this.tail&&(this.tail=f),r.list.length--,r.next=null,r.prev=null,r.list=null,e},n.prototype.unshiftNode=function(r){if(r!==this.head){r.list&&r.list.removeNode(r);var e=this.head;r.list=this,r.next=e,e&&(e.prev=r),this.head=r,this.tail||(this.tail=r),this.length++}},n.prototype.pushNode=function(r){if(r!==this.tail){r.list&&r.list.removeNode(r);var e=this.tail;r.list=this,r.prev=e,e&&(e.next=r),this.tail=r,this.head||(this.head=r),this.length++}},n.prototype.push=function(){for(var r=0,e=arguments.length;r<e;r++)i(this,arguments[r]);return this.length},n.prototype.unshift=function(){for(var r=0,e=arguments.length;r<e;r++)p(this,arguments[r]);return this.length},n.prototype.pop=function(){if(this.tail){var r=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,r}},n.prototype.shift=function(){if(this.head){var r=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,r}},n.prototype.forEach=function(r,e){e=e||this;for(var f=this.head,a=0;f!==null;a++)r.call(e,f.value,a,this),f=f.next},n.prototype.forEachReverse=function(r,e){e=e||this;for(var f=this.tail,a=this.length-1;f!==null;a--)r.call(e,f.value,a,this),f=f.prev},n.prototype.get=function(r){for(var e=0,f=this.head;f!==null&&e<r;e++)f=f.next;if(e===r&&f!==null)return f.value},n.prototype.getReverse=function(r){for(var e=0,f=this.tail;f!==null&&e<r;e++)f=f.prev;if(e===r&&f!==null)return f.value},n.prototype.map=function(r,e){e=e||this;for(var f=new n,a=this.head;a!==null;)f.push(r.call(e,a.value,this)),a=a.next;return f},n.prototype.mapReverse=function(r,e){e=e||this;for(var f=new n,a=this.tail;a!==null;)f.push(r.call(e,a.value,this)),a=a.prev;return f},n.prototype.reduce=function(r,e){var f,a=this.head;if(arguments.length>1)f=e;else if(this.head)a=this.head.next,f=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var c=0;a!==null;c++)f=r(f,a.value,c),a=a.next;return f},n.prototype.reduceReverse=function(r,e){var f,a=this.tail;if(arguments.length>1)f=e;else if(this.tail)a=this.tail.prev,f=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var c=this.length-1;a!==null;c--)f=r(f,a.value,c),a=a.prev;return f},n.prototype.toArray=function(){for(var r=new Array(this.length),e=0,f=this.head;f!==null;e++)r[e]=f.value,f=f.next;return r},n.prototype.toArrayReverse=function(){for(var r=new Array(this.length),e=0,f=this.tail;f!==null;e++)r[e]=f.value,f=f.prev;return r},n.prototype.slice=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var f=new n;if(e<r||e<0)return f;r<0&&(r=0),e>this.length&&(e=this.length);for(var a=0,c=this.head;c!==null&&a<r;a++)c=c.next;for(;c!==null&&a<e;a++,c=c.next)f.push(c.value);return f},n.prototype.sliceReverse=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var f=new n;if(e<r||e<0)return f;r<0&&(r=0),e>this.length&&(e=this.length);for(var a=this.length,c=this.tail;c!==null&&a>e;a--)c=c.prev;for(;c!==null&&a>r;a--,c=c.prev)f.push(c.value);return f},n.prototype.splice=function(r,e,...f){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var a=0,c=this.head;c!==null&&a<r;a++)c=c.next;for(var o=[],a=0;c&&a<e;a++)o.push(c.value),c=this.removeNode(c);c===null&&(c=this.tail),c!==this.head&&c!==this.tail&&(c=c.prev);for(var a=0;a<f.length;a++)c=s(this,c,f[a]);return o},n.prototype.reverse=function(){for(var r=this.head,e=this.tail,f=r;f!==null;f=f.prev){var a=f.prev;f.prev=f.next,f.next=a}return this.head=e,this.tail=r,this};function s(r,e,f){var a=e===r.head?new u(f,null,e,r):new u(f,e,e.next,r);return a.next===null&&(r.tail=a),a.prev===null&&(r.head=a),r.length++,a}function i(r,e){r.tail=new u(e,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function p(r,e){r.head=new u(e,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function u(r,e,f,a){if(!(this instanceof u))return new u(r,e,f,a);this.list=a,this.value=r,e?(e.next=this,this.prev=e):this.prev=null,f?(f.prev=this,this.next=f):this.next=null}try{Bu()(n)}catch{}}),Sr=N((t,l)=>{"use strict";B();var n=class{constructor(P,j){this.path=P||"./",this.absolute=j,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},s=Er(),i=Xn(),p=_r(),u=ri(),r=u.Sync,e=u.Tar,f=ni(),a=Buffer.alloc(1024),c=Symbol("onStat"),o=Symbol("ended"),d=Symbol("queue"),h=Symbol("current"),y=Symbol("process"),b=Symbol("processing"),E=Symbol("processJob"),g=Symbol("jobs"),D=Symbol("jobDone"),w=Symbol("addFSEntry"),v=Symbol("addTarEntry"),m=Symbol("stat"),_=Symbol("readdir"),S=Symbol("onreaddir"),A=Symbol("pipe"),x=Symbol("entry"),L=Symbol("entryOpt"),T=Symbol("writeEntryClass"),F=Symbol("write"),O=Symbol("ondrain"),I=Z("fs"),$=Z("path"),R=Dr(),G=Fe(),W=R(class extends s{constructor(P){super(P),P=P||Object.create(null),this.opt=P,this.file=P.file||"",this.cwd=P.cwd||process.cwd(),this.maxReadSize=P.maxReadSize,this.preservePaths=!!P.preservePaths,this.strict=!!P.strict,this.noPax=!!P.noPax,this.prefix=G(P.prefix||""),this.linkCache=P.linkCache||new Map,this.statCache=P.statCache||new Map,this.readdirCache=P.readdirCache||new Map,this[T]=u,typeof P.onwarn=="function"&&this.on("warn",P.onwarn),this.portable=!!P.portable,this.zip=null,P.gzip?(typeof P.gzip!="object"&&(P.gzip={}),this.portable&&(P.gzip.portable=!0),this.zip=new i.Gzip(P.gzip),this.zip.on("data",j=>super.write(j)),this.zip.on("end",j=>super.end()),this.zip.on("drain",j=>this[O]()),this.on("resume",j=>this.zip.resume())):this.on("drain",this[O]),this.noDirRecurse=!!P.noDirRecurse,this.follow=!!P.follow,this.noMtime=!!P.noMtime,this.mtime=P.mtime||null,this.filter=typeof P.filter=="function"?P.filter:j=>!0,this[d]=new f,this[g]=0,this.jobs=+P.jobs||4,this[b]=!1,this[o]=!1}[F](P){return super.write(P)}add(P){return this.write(P),this}end(P){return P&&this.write(P),this[o]=!0,this[y](),this}write(P){if(this[o])throw new Error("write after end");return P instanceof p?this[v](P):this[w](P),this.flowing}[v](P){let j=G($.resolve(this.cwd,P.path));if(!this.filter(P.path,P))P.resume();else{let k=new n(P.path,j,!1);k.entry=new e(P,this[L](k)),k.entry.on("end",J=>this[D](k)),this[g]+=1,this[d].push(k)}this[y]()}[w](P){let j=G($.resolve(this.cwd,P));this[d].push(new n(P,j)),this[y]()}[m](P){P.pending=!0,this[g]+=1;let j=this.follow?"stat":"lstat";I[j](P.absolute,(k,J)=>{P.pending=!1,this[g]-=1,k?this.emit("error",k):this[c](P,J)})}[c](P,j){this.statCache.set(P.absolute,j),P.stat=j,this.filter(P.path,j)||(P.ignore=!0),this[y]()}[_](P){P.pending=!0,this[g]+=1,I.readdir(P.absolute,(j,k)=>{if(P.pending=!1,this[g]-=1,j)return this.emit("error",j);this[S](P,k)})}[S](P,j){this.readdirCache.set(P.absolute,j),P.readdir=j,this[y]()}[y](){if(!this[b]){this[b]=!0;for(let P=this[d].head;P!==null&&this[g]<this.jobs;P=P.next)if(this[E](P.value),P.value.ignore){let j=P.next;this[d].removeNode(P),P.next=j}this[b]=!1,this[o]&&!this[d].length&&this[g]===0&&(this.zip?this.zip.end(a):(super.write(a),super.end()))}}get[h](){return this[d]&&this[d].head&&this[d].head.value}[D](P){this[d].shift(),this[g]-=1,this[y]()}[E](P){if(!P.pending){if(P.entry){P===this[h]&&!P.piped&&this[A](P);return}if(P.stat||(this.statCache.has(P.absolute)?this[c](P,this.statCache.get(P.absolute)):this[m](P)),!!P.stat&&!P.ignore&&!(!this.noDirRecurse&&P.stat.isDirectory()&&!P.readdir&&(this.readdirCache.has(P.absolute)?this[S](P,this.readdirCache.get(P.absolute)):this[_](P),!P.readdir))){if(P.entry=this[x](P),!P.entry){P.ignore=!0;return}P===this[h]&&!P.piped&&this[A](P)}}}[L](P){return{onwarn:(j,k,J)=>this.warn(j,k,J),noPax:this.noPax,cwd:this.cwd,absolute:P.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[x](P){this[g]+=1;try{return new this[T](P.path,this[L](P)).on("end",()=>this[D](P)).on("error",j=>this.emit("error",j))}catch(j){this.emit("error",j)}}[O](){this[h]&&this[h].entry&&this[h].entry.resume()}[A](P){P.piped=!0,P.readdir&&P.readdir.forEach(J=>{let q=P.path,tt=q==="./"?"":q.replace(/\/*$/,"/");this[w](tt+J)});let j=P.entry,k=this.zip;k?j.on("data",J=>{k.write(J)||j.pause()}):j.on("data",J=>{super.write(J)||j.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),Q=class extends W{constructor(P){super(P),this[T]=r}pause(){}resume(){}[m](P){let j=this.follow?"statSync":"lstatSync";this[c](P,I[j](P.absolute))}[_](P,j){this[S](P,I.readdirSync(P.absolute))}[A](P){let j=P.entry,k=this.zip;P.readdir&&P.readdir.forEach(J=>{let q=P.path,tt=q==="./"?"":q.replace(/\/*$/,"/");this[w](tt+J)}),k?j.on("data",J=>{k.write(J)}):j.on("data",J=>{super[F](J)})}};W.Sync=Q,l.exports=W}),Re=N(t=>{"use strict";B();var l=Jn(),n=Z("events").EventEmitter,s=Z("fs"),i=s.writev;if(!i){let P=process.binding("fs"),j=P.FSReqWrap||P.FSReqCallback;i=(k,J,q,tt)=>{let M=(et,ot)=>tt(et,ot,J),Y=new j;Y.oncomplete=M,P.writeBuffers(k,J,q,Y)}}var p=Symbol("_autoClose"),u=Symbol("_close"),r=Symbol("_ended"),e=Symbol("_fd"),f=Symbol("_finished"),a=Symbol("_flags"),c=Symbol("_flush"),o=Symbol("_handleChunk"),d=Symbol("_makeBuf"),h=Symbol("_mode"),y=Symbol("_needDrain"),b=Symbol("_onerror"),E=Symbol("_onopen"),g=Symbol("_onread"),D=Symbol("_onwrite"),w=Symbol("_open"),v=Symbol("_path"),m=Symbol("_pos"),_=Symbol("_queue"),S=Symbol("_read"),A=Symbol("_readSize"),x=Symbol("_reading"),L=Symbol("_remain"),T=Symbol("_size"),F=Symbol("_write"),O=Symbol("_writing"),I=Symbol("_defaultFlag"),$=Symbol("_errored"),R=class extends l{constructor(P,j){if(j=j||{},super(j),this.readable=!0,this.writable=!1,typeof P!="string")throw new TypeError("path must be a string");this[$]=!1,this[e]=typeof j.fd=="number"?j.fd:null,this[v]=P,this[A]=j.readSize||16*1024*1024,this[x]=!1,this[T]=typeof j.size=="number"?j.size:1/0,this[L]=this[T],this[p]=typeof j.autoClose=="boolean"?j.autoClose:!0,typeof this[e]=="number"?this[S]():this[w]()}get fd(){return this[e]}get path(){return this[v]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[w](){s.open(this[v],"r",(P,j)=>this[E](P,j))}[E](P,j){P?this[b](P):(this[e]=j,this.emit("open",j),this[S]())}[d](){return Buffer.allocUnsafe(Math.min(this[A],this[L]))}[S](){if(!this[x]){this[x]=!0;let P=this[d]();if(P.length===0)return process.nextTick(()=>this[g](null,0,P));s.read(this[e],P,0,P.length,null,(j,k,J)=>this[g](j,k,J))}}[g](P,j,k){this[x]=!1,P?this[b](P):this[o](j,k)&&this[S]()}[u](){if(this[p]&&typeof this[e]=="number"){let P=this[e];this[e]=null,s.close(P,j=>j?this.emit("error",j):this.emit("close"))}}[b](P){this[x]=!0,this[u](),this.emit("error",P)}[o](P,j){let k=!1;return this[L]-=P,P>0&&(k=super.write(P<j.length?j.slice(0,P):j)),(P===0||this[L]<=0)&&(k=!1,this[u](),super.end()),k}emit(P,j){switch(P){case"prefinish":case"finish":break;case"drain":typeof this[e]=="number"&&this[S]();break;case"error":return this[$]?void 0:(this[$]=!0,super.emit(P,j));default:return super.emit(P,j)}}},G=class extends R{[w](){let P=!0;try{this[E](null,s.openSync(this[v],"r")),P=!1}finally{P&&this[u]()}}[S](){let P=!0;try{if(!this[x]){this[x]=!0;do{let j=this[d](),k=j.length===0?0:s.readSync(this[e],j,0,j.length,null);if(!this[o](k,j))break}while(!0);this[x]=!1}P=!1}finally{P&&this[u]()}}[u](){if(this[p]&&typeof this[e]=="number"){let P=this[e];this[e]=null,s.closeSync(P),this.emit("close")}}},W=class extends n{constructor(P,j){j=j||{},super(j),this.readable=!1,this.writable=!0,this[$]=!1,this[O]=!1,this[r]=!1,this[y]=!1,this[_]=[],this[v]=P,this[e]=typeof j.fd=="number"?j.fd:null,this[h]=j.mode===void 0?438:j.mode,this[m]=typeof j.start=="number"?j.start:null,this[p]=typeof j.autoClose=="boolean"?j.autoClose:!0;let k=this[m]!==null?"r+":"w";this[I]=j.flags===void 0,this[a]=this[I]?k:j.flags,this[e]===null&&this[w]()}emit(P,j){if(P==="error"){if(this[$])return;this[$]=!0}return super.emit(P,j)}get fd(){return this[e]}get path(){return this[v]}[b](P){this[u](),this[O]=!0,this.emit("error",P)}[w](){s.open(this[v],this[a],this[h],(P,j)=>this[E](P,j))}[E](P,j){this[I]&&this[a]==="r+"&&P&&P.code==="ENOENT"?(this[a]="w",this[w]()):P?this[b](P):(this[e]=j,this.emit("open",j),this[c]())}end(P,j){return P&&this.write(P,j),this[r]=!0,!this[O]&&!this[_].length&&typeof this[e]=="number"&&this[D](null,0),this}write(P,j){return typeof P=="string"&&(P=Buffer.from(P,j)),this[r]?(this.emit("error",new Error("write() after end()")),!1):this[e]===null||this[O]||this[_].length?(this[_].push(P),this[y]=!0,!1):(this[O]=!0,this[F](P),!0)}[F](P){s.write(this[e],P,0,P.length,this[m],(j,k)=>this[D](j,k))}[D](P,j){P?this[b](P):(this[m]!==null&&(this[m]+=j),this[_].length?this[c]():(this[O]=!1,this[r]&&!this[f]?(this[f]=!0,this[u](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[c](){if(this[_].length===0)this[r]&&this[D](null,0);else if(this[_].length===1)this[F](this[_].pop());else{let P=this[_];this[_]=[],i(this[e],P,this[m],(j,k)=>this[D](j,k))}}[u](){if(this[p]&&typeof this[e]=="number"){let P=this[e];this[e]=null,s.close(P,j=>j?this.emit("error",j):this.emit("close"))}}},Q=class extends W{[w](){let P;if(this[I]&&this[a]==="r+")try{P=s.openSync(this[v],this[a],this[h])}catch(j){if(j.code==="ENOENT")return this[a]="w",this[w]();throw j}else P=s.openSync(this[v],this[a],this[h]);this[E](null,P)}[u](){if(this[p]&&typeof this[e]=="number"){let P=this[e];this[e]=null,s.closeSync(P),this.emit("close")}}[F](P){let j=!0;try{this[D](null,s.writeSync(this[e],P,0,P.length,this[m])),j=!1}finally{if(j)try{this[u]()}catch{}}}};t.ReadStream=R,t.ReadStreamSync=G,t.WriteStream=W,t.WriteStreamSync=Q}),Ar=N((t,l)=>{"use strict";B();var n=Dr(),s=ke(),i=Z("events"),p=ni(),u=1024*1024,r=_r(),e=wr(),f=Xn(),{nextTick:a}=Z("process"),c=Buffer.from([31,139]),o=Symbol("state"),d=Symbol("writeEntry"),h=Symbol("readEntry"),y=Symbol("nextEntry"),b=Symbol("processEntry"),E=Symbol("extendedHeader"),g=Symbol("globalExtendedHeader"),D=Symbol("meta"),w=Symbol("emitMeta"),v=Symbol("buffer"),m=Symbol("queue"),_=Symbol("ended"),S=Symbol("emittedEnd"),A=Symbol("emit"),x=Symbol("unzip"),L=Symbol("consumeChunk"),T=Symbol("consumeChunkSub"),F=Symbol("consumeBody"),O=Symbol("consumeMeta"),I=Symbol("consumeHeader"),$=Symbol("consuming"),R=Symbol("bufferConcat"),G=Symbol("maybeEnd"),W=Symbol("writing"),Q=Symbol("aborted"),P=Symbol("onDone"),j=Symbol("sawValidEntry"),k=Symbol("sawNullBlock"),J=Symbol("sawEOF"),q=Symbol("closeStream"),tt=M=>!0;l.exports=n(class extends i{constructor(M){M=M||{},super(M),this.file=M.file||"",this[j]=null,this.on(P,Y=>{(this[o]==="begin"||this[j]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),M.ondone?this.on(P,M.ondone):this.on(P,Y=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!M.strict,this.maxMetaEntrySize=M.maxMetaEntrySize||u,this.filter=typeof M.filter=="function"?M.filter:tt,this.writable=!0,this.readable=!1,this[m]=new p,this[v]=null,this[h]=null,this[d]=null,this[o]="begin",this[D]="",this[E]=null,this[g]=null,this[_]=!1,this[x]=null,this[Q]=!1,this[k]=!1,this[J]=!1,this.on("end",()=>this[q]()),typeof M.onwarn=="function"&&this.on("warn",M.onwarn),typeof M.onentry=="function"&&this.on("entry",M.onentry)}[I](M,Y){this[j]===null&&(this[j]=!1);let et;try{et=new s(M,Y,this[E],this[g])}catch(ot){return this.warn("TAR_ENTRY_INVALID",ot)}if(et.nullBlock)this[k]?(this[J]=!0,this[o]==="begin"&&(this[o]="header"),this[A]("eof")):(this[k]=!0,this[A]("nullBlock"));else if(this[k]=!1,!et.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:et});else if(!et.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:et});else{let ot=et.type;if(/^(Symbolic)?Link$/.test(ot)&&!et.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:et});else if(!/^(Symbolic)?Link$/.test(ot)&&et.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:et});else{let ct=this[d]=new r(et,this[E],this[g]);if(!this[j])if(ct.remain){let gt=()=>{ct.invalid||(this[j]=!0)};ct.on("end",gt)}else this[j]=!0;ct.meta?ct.size>this.maxMetaEntrySize?(ct.ignore=!0,this[A]("ignoredEntry",ct),this[o]="ignore",ct.resume()):ct.size>0&&(this[D]="",ct.on("data",gt=>this[D]+=gt),this[o]="meta"):(this[E]=null,ct.ignore=ct.ignore||!this.filter(ct.path,ct),ct.ignore?(this[A]("ignoredEntry",ct),this[o]=ct.remain?"ignore":"header",ct.resume()):(ct.remain?this[o]="body":(this[o]="header",ct.end()),this[h]?this[m].push(ct):(this[m].push(ct),this[y]())))}}}[q](){a(()=>this.emit("close"))}[b](M){let Y=!0;return M?Array.isArray(M)?this.emit.apply(this,M):(this[h]=M,this.emit("entry",M),M.emittedEnd||(M.on("end",et=>this[y]()),Y=!1)):(this[h]=null,Y=!1),Y}[y](){do;while(this[b](this[m].shift()));if(!this[m].length){let M=this[h];!M||M.flowing||M.size===M.remain?this[W]||this.emit("drain"):M.once("drain",Y=>this.emit("drain"))}}[F](M,Y){let et=this[d],ot=et.blockRemain,ct=ot>=M.length&&Y===0?M:M.slice(Y,Y+ot);return et.write(ct),et.blockRemain||(this[o]="header",this[d]=null,et.end()),ct.length}[O](M,Y){let et=this[d],ot=this[F](M,Y);return this[d]||this[w](et),ot}[A](M,Y,et){!this[m].length&&!this[h]?this.emit(M,Y,et):this[m].push([M,Y,et])}[w](M){switch(this[A]("meta",this[D]),M.type){case"ExtendedHeader":case"OldExtendedHeader":this[E]=e.parse(this[D],this[E],!1);break;case"GlobalExtendedHeader":this[g]=e.parse(this[D],this[g],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[E]=this[E]||Object.create(null),this[E].path=this[D].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[E]=this[E]||Object.create(null),this[E].linkpath=this[D].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+M.type)}}abort(M){this[Q]=!0,this.emit("abort",M),this.warn("TAR_ABORT",M,{recoverable:!1})}write(M){if(this[Q])return;if(this[x]===null&&M){if(this[v]&&(M=Buffer.concat([this[v],M]),this[v]=null),M.length<c.length)return this[v]=M,!0;for(let et=0;this[x]===null&&et<c.length;et++)M[et]!==c[et]&&(this[x]=!1);if(this[x]===null){let et=this[_];this[_]=!1,this[x]=new f.Unzip,this[x].on("data",ct=>this[L](ct)),this[x].on("error",ct=>this.abort(ct)),this[x].on("end",ct=>{this[_]=!0,this[L]()}),this[W]=!0;let ot=this[x][et?"end":"write"](M);return this[W]=!1,ot}}this[W]=!0,this[x]?this[x].write(M):this[L](M),this[W]=!1;let Y=this[m].length?!1:this[h]?this[h].flowing:!0;return!Y&&!this[m].length&&this[h].once("drain",et=>this.emit("drain")),Y}[R](M){M&&!this[Q]&&(this[v]=this[v]?Buffer.concat([this[v],M]):M)}[G](){if(this[_]&&!this[S]&&!this[Q]&&!this[$]){this[S]=!0;let M=this[d];if(M&&M.blockRemain){let Y=this[v]?this[v].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${M.blockRemain} more bytes, only ${Y} available)`,{entry:M}),this[v]&&M.write(this[v]),M.end()}this[A](P)}}[L](M){if(this[$])this[R](M);else if(!M&&!this[v])this[G]();else{if(this[$]=!0,this[v]){this[R](M);let Y=this[v];this[v]=null,this[T](Y)}else this[T](M);for(;this[v]&&this[v].length>=512&&!this[Q]&&!this[J];){let Y=this[v];this[v]=null,this[T](Y)}this[$]=!1}(!this[v]||this[_])&&this[G]()}[T](M){let Y=0,et=M.length;for(;Y+512<=et&&!this[Q]&&!this[J];)switch(this[o]){case"begin":case"header":this[I](M,Y),Y+=512;break;case"ignore":case"body":Y+=this[F](M,Y);break;case"meta":Y+=this[O](M,Y);break;default:throw new Error("invalid state: "+this[o])}Y<et&&(this[v]?this[v]=Buffer.concat([M.slice(Y),this[v]]):this[v]=M.slice(Y))}end(M){this[Q]||(this[x]?this[x].end(M):(this[_]=!0,this.write(M)))}})}),Cr=N((t,l)=>{"use strict";B();var n=xe(),s=Ar(),i=Z("fs"),p=Re(),u=Z("path"),r=Oe();l.exports=(d,h,y)=>{typeof d=="function"?(y=d,h=null,d={}):Array.isArray(d)&&(h=d,d={}),typeof h=="function"&&(y=h,h=null),h?h=Array.from(h):h=[];let b=n(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return h.length&&f(b,h),b.noResume||e(b),b.file&&b.sync?a(b):b.file?c(b,y):o(b)};var e=d=>{let h=d.onentry;d.onentry=h?y=>{h(y),y.resume()}:y=>y.resume()},f=(d,h)=>{let y=new Map(h.map(g=>[r(g),!0])),b=d.filter,E=(g,D)=>{let w=D||u.parse(g).root||".",v=g===w?!1:y.has(g)?y.get(g):E(u.dirname(g),w);return y.set(g,v),v};d.filter=b?(g,D)=>b(g,D)&&E(r(g)):g=>E(r(g))},a=d=>{let h=o(d),y=d.file,b=!0,E;try{let g=i.statSync(y),D=d.maxReadSize||16*1024*1024;if(g.size<D)h.end(i.readFileSync(y));else{let w=0,v=Buffer.allocUnsafe(D);for(E=i.openSync(y,"r");w<g.size;){let m=i.readSync(E,v,0,D,w);w+=m,h.write(v.slice(0,m))}h.end()}b=!1}finally{if(b&&E)try{i.closeSync(E)}catch{}}},c=(d,h)=>{let y=new s(d),b=d.maxReadSize||16*1024*1024,E=d.file,g=new Promise((D,w)=>{y.on("error",w),y.on("end",D),i.stat(E,(v,m)=>{if(v)w(v);else{let _=new p.ReadStream(E,{readSize:b,size:m.size});_.on("error",w),_.pipe(y)}})});return h?g.then(h,h):g},o=d=>new s(d)}),Pu=N((t,l)=>{"use strict";B();var n=xe(),s=Sr(),i=Re(),p=Cr(),u=Z("path");l.exports=(d,h,y)=>{if(typeof h=="function"&&(y=h),Array.isArray(d)&&(h=d,d={}),!h||!Array.isArray(h)||!h.length)throw new TypeError("no files or directories specified");h=Array.from(h);let b=n(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return b.file&&b.sync?r(b,h):b.file?e(b,h,y):b.sync?c(b,h):o(b,h)};var r=(d,h)=>{let y=new s.Sync(d),b=new i.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(b),f(y,h)},e=(d,h,y)=>{let b=new s(d),E=new i.WriteStream(d.file,{mode:d.mode||438});b.pipe(E);let g=new Promise((D,w)=>{E.on("error",w),E.on("close",D),b.on("error",w)});return a(b,h),y?g.then(y,y):g},f=(d,h)=>{h.forEach(y=>{y.charAt(0)==="@"?p({file:u.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:b=>d.add(b)}):d.add(y)}),d.end()},a=(d,h)=>{for(;h.length;){let y=h.shift();if(y.charAt(0)==="@")return p({file:u.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:b=>d.add(b)}).then(b=>a(d,h));d.add(y)}d.end()},c=(d,h)=>{let y=new s.Sync(d);return f(y,h),y},o=(d,h)=>{let y=new s(d);return a(y,h),y}}),ii=N((t,l)=>{"use strict";B();var n=xe(),s=Sr(),i=Z("fs"),p=Re(),u=Cr(),r=Z("path"),e=ke();l.exports=(h,y,b)=>{let E=n(h);if(!E.file)throw new TypeError("file is required");if(E.gzip)throw new TypeError("cannot append to compressed archives");if(!y||!Array.isArray(y)||!y.length)throw new TypeError("no files or directories specified");return y=Array.from(y),E.sync?f(E,y):c(E,y,b)};var f=(h,y)=>{let b=new s.Sync(h),E=!0,g,D;try{try{g=i.openSync(h.file,"r+")}catch(m){if(m.code==="ENOENT")g=i.openSync(h.file,"w+");else throw m}let w=i.fstatSync(g),v=Buffer.alloc(512);t:for(D=0;D<w.size;D+=512){for(let S=0,A=0;S<512;S+=A){if(A=i.readSync(g,v,S,v.length-S,D+S),D===0&&v[0]===31&&v[1]===139)throw new Error("cannot append to compressed archives");if(!A)break t}let m=new e(v);if(!m.cksumValid)break;let _=512*Math.ceil(m.size/512);if(D+_+512>w.size)break;D+=_,h.mtimeCache&&h.mtimeCache.set(m.path,m.mtime)}E=!1,a(h,b,D,g,y)}finally{if(E)try{i.closeSync(g)}catch{}}},a=(h,y,b,E,g)=>{let D=new p.WriteStreamSync(h.file,{fd:E,start:b});y.pipe(D),o(y,g)},c=(h,y,b)=>{y=Array.from(y);let E=new s(h),g=(w,v,m)=>{let _=(T,F)=>{T?i.close(w,O=>m(T)):m(null,F)},S=0;if(v===0)return _(null,0);let A=0,x=Buffer.alloc(512),L=(T,F)=>{if(T)return _(T);if(A+=F,A<512&&F)return i.read(w,x,A,x.length-A,S+A,L);if(S===0&&x[0]===31&&x[1]===139)return _(new Error("cannot append to compressed archives"));if(A<512)return _(null,S);let O=new e(x);if(!O.cksumValid)return _(null,S);let I=512*Math.ceil(O.size/512);if(S+I+512>v||(S+=I+512,S>=v))return _(null,S);h.mtimeCache&&h.mtimeCache.set(O.path,O.mtime),A=0,i.read(w,x,0,512,S,L)};i.read(w,x,0,512,S,L)},D=new Promise((w,v)=>{E.on("error",v);let m="r+",_=(S,A)=>{if(S&&S.code==="ENOENT"&&m==="r+")return m="w+",i.open(h.file,m,_);if(S)return v(S);i.fstat(A,(x,L)=>{if(x)return i.close(A,()=>v(x));g(A,L.size,(T,F)=>{if(T)return v(T);let O=new p.WriteStream(h.file,{fd:A,start:F});E.pipe(O),O.on("error",v),O.on("close",w),d(E,y)})})};i.open(h.file,m,_)});return b?D.then(b,b):D},o=(h,y)=>{y.forEach(b=>{b.charAt(0)==="@"?u({file:r.resolve(h.cwd,b.slice(1)),sync:!0,noResume:!0,onentry:E=>h.add(E)}):h.add(b)}),h.end()},d=(h,y)=>{for(;y.length;){let b=y.shift();if(b.charAt(0)==="@")return u({file:r.resolve(h.cwd,b.slice(1)),noResume:!0,onentry:E=>h.add(E)}).then(E=>d(h,y));h.add(b)}h.end()}}),Lu=N((t,l)=>{"use strict";B();var n=xe(),s=ii();l.exports=(p,u,r)=>{let e=n(p);if(!e.file)throw new TypeError("file is required");if(e.gzip)throw new TypeError("cannot append to compressed archives");if(!u||!Array.isArray(u)||!u.length)throw new TypeError("no files or directories specified");return u=Array.from(u),i(e),s(e,u,r)};var i=p=>{let u=p.filter;p.mtimeCache||(p.mtimeCache=new Map),p.filter=u?(r,e)=>u(r,e)&&!(p.mtimeCache.get(r)>e.mtime):(r,e)=>!(p.mtimeCache.get(r)>e.mtime)}}),Iu=N((t,l)=>{B();var{promisify:n}=Z("util"),s=Z("fs"),i=p=>{if(!p)p={mode:511,fs:s};else if(typeof p=="object")p={mode:511,fs:s,...p};else if(typeof p=="number")p={mode:p,fs:s};else if(typeof p=="string")p={mode:parseInt(p,8),fs:s};else throw new TypeError("invalid options argument");return p.mkdir=p.mkdir||p.fs.mkdir||s.mkdir,p.mkdirAsync=n(p.mkdir),p.stat=p.stat||p.fs.stat||s.stat,p.statAsync=n(p.stat),p.statSync=p.statSync||p.fs.statSync||s.statSync,p.mkdirSync=p.mkdirSync||p.fs.mkdirSync||s.mkdirSync,p};l.exports=i}),Nu=N((t,l)=>{B();var n=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:s,parse:i}=Z("path"),p=u=>{if(/\0/.test(u))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:u,code:"ERR_INVALID_ARG_VALUE"});if(u=s(u),n==="win32"){let r=/[*|"<>?:]/,{root:e}=i(u);if(r.test(u.substr(e.length)))throw Object.assign(new Error("Illegal characters in path."),{path:u,code:"EINVAL"})}return u};l.exports=p}),ju=N((t,l)=>{B();var{dirname:n}=Z("path"),s=(p,u,r=void 0)=>r===u?Promise.resolve():p.statAsync(u).then(e=>e.isDirectory()?r:void 0,e=>e.code==="ENOENT"?s(p,n(u),u):void 0),i=(p,u,r=void 0)=>{if(r!==u)try{return p.statSync(u).isDirectory()?r:void 0}catch(e){return e.code==="ENOENT"?i(p,n(u),u):void 0}};l.exports={findMade:s,findMadeSync:i}}),si=N((t,l)=>{B();var{dirname:n}=Z("path"),s=(p,u,r)=>{u.recursive=!1;let e=n(p);return e===p?u.mkdirAsync(p,u).catch(f=>{if(f.code!=="EISDIR")throw f}):u.mkdirAsync(p,u).then(()=>r||p,f=>{if(f.code==="ENOENT")return s(e,u).then(a=>s(p,u,a));if(f.code!=="EEXIST"&&f.code!=="EROFS")throw f;return u.statAsync(p).then(a=>{if(a.isDirectory())return r;throw f},()=>{throw f})})},i=(p,u,r)=>{let e=n(p);if(u.recursive=!1,e===p)try{return u.mkdirSync(p,u)}catch(f){if(f.code!=="EISDIR")throw f;return}try{return u.mkdirSync(p,u),r||p}catch(f){if(f.code==="ENOENT")return i(p,u,i(e,u,r));if(f.code!=="EEXIST"&&f.code!=="EROFS")throw f;try{if(!u.statSync(p).isDirectory())throw f}catch{throw f}}};l.exports={mkdirpManual:s,mkdirpManualSync:i}}),Mu=N((t,l)=>{B();var{dirname:n}=Z("path"),{findMade:s,findMadeSync:i}=ju(),{mkdirpManual:p,mkdirpManualSync:u}=si(),r=(f,a)=>(a.recursive=!0,n(f)===f?a.mkdirAsync(f,a):s(a,f).then(c=>a.mkdirAsync(f,a).then(()=>c).catch(o=>{if(o.code==="ENOENT")return p(f,a);throw o}))),e=(f,a)=>{if(a.recursive=!0,n(f)===f)return a.mkdirSync(f,a);let c=i(a,f);try{return a.mkdirSync(f,a),c}catch(o){if(o.code==="ENOENT")return u(f,a);throw o}};l.exports={mkdirpNative:r,mkdirpNativeSync:e}}),$u=N((t,l)=>{B();var n=Z("fs"),s=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,i=s.replace(/^v/,"").split("."),p=+i[0]>10||+i[0]==10&&+i[1]>=12,u=p?e=>e.mkdir===n.mkdir:()=>!1,r=p?e=>e.mkdirSync===n.mkdirSync:()=>!1;l.exports={useNative:u,useNativeSync:r}}),Hu=N((t,l)=>{B();var n=Iu(),s=Nu(),{mkdirpNative:i,mkdirpNativeSync:p}=Mu(),{mkdirpManual:u,mkdirpManualSync:r}=si(),{useNative:e,useNativeSync:f}=$u(),a=(o,d)=>(o=s(o),d=n(d),e(d)?i(o,d):u(o,d)),c=(o,d)=>(o=s(o),d=n(d),f(d)?p(o,d):r(o,d));a.sync=c,a.native=(o,d)=>i(s(o),n(d)),a.manual=(o,d)=>u(s(o),n(d)),a.nativeSync=(o,d)=>p(s(o),n(d)),a.manualSync=(o,d)=>r(s(o),n(d)),l.exports=a}),Uu=N((t,l)=>{"use strict";B();var n=Z("fs"),s=Z("path"),i=n.lchown?"lchown":"chown",p=n.lchownSync?"lchownSync":"chownSync",u=n.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),r=(D,w,v)=>{try{return n[p](D,w,v)}catch(m){if(m.code!=="ENOENT")throw m}},e=(D,w,v)=>{try{return n.chownSync(D,w,v)}catch(m){if(m.code!=="ENOENT")throw m}},f=u?(D,w,v,m)=>_=>{!_||_.code!=="EISDIR"?m(_):n.chown(D,w,v,m)}:(D,w,v,m)=>m,a=u?(D,w,v)=>{try{return r(D,w,v)}catch(m){if(m.code!=="EISDIR")throw m;e(D,w,v)}}:(D,w,v)=>r(D,w,v),c=process.version,o=(D,w,v)=>n.readdir(D,w,v),d=(D,w)=>n.readdirSync(D,w);/^v4\./.test(c)&&(o=(D,w,v)=>n.readdir(D,v));var h=(D,w,v,m)=>{n[i](D,w,v,f(D,w,v,_=>{m(_&&_.code!=="ENOENT"?_:null)}))},y=(D,w,v,m,_)=>{if(typeof w=="string")return n.lstat(s.resolve(D,w),(S,A)=>{if(S)return _(S.code!=="ENOENT"?S:null);A.name=w,y(D,A,v,m,_)});if(w.isDirectory())b(s.resolve(D,w.name),v,m,S=>{if(S)return _(S);let A=s.resolve(D,w.name);h(A,v,m,_)});else{let S=s.resolve(D,w.name);h(S,v,m,_)}},b=(D,w,v,m)=>{o(D,{withFileTypes:!0},(_,S)=>{if(_){if(_.code==="ENOENT")return m();if(_.code!=="ENOTDIR"&&_.code!=="ENOTSUP")return m(_)}if(_||!S.length)return h(D,w,v,m);let A=S.length,x=null,L=T=>{if(!x){if(T)return m(x=T);if(--A===0)return h(D,w,v,m)}};S.forEach(T=>y(D,T,w,v,L))})},E=(D,w,v,m)=>{if(typeof w=="string")try{let _=n.lstatSync(s.resolve(D,w));_.name=w,w=_}catch(_){if(_.code==="ENOENT")return;throw _}w.isDirectory()&&g(s.resolve(D,w.name),v,m),a(s.resolve(D,w.name),v,m)},g=(D,w,v)=>{let m;try{m=d(D,{withFileTypes:!0})}catch(_){if(_.code==="ENOENT")return;if(_.code==="ENOTDIR"||_.code==="ENOTSUP")return a(D,w,v);throw _}return m&&m.length&&m.forEach(_=>E(D,_,w,v)),a(D,w,v)};l.exports=b,b.sync=g}),Gu=N((t,l)=>{"use strict";B();var n=Hu(),s=Z("fs"),i=Z("path"),p=Uu(),u=Fe(),r=class extends Error{constructor(y,b){super("Cannot extract through symbolic link"),this.path=b,this.symlink=y}get name(){return"SylinkError"}},e=class extends Error{constructor(y,b){super(b+": Cannot cd into '"+y+"'"),this.path=y,this.code=b}get name(){return"CwdError"}},f=(y,b)=>y.get(u(b)),a=(y,b,E)=>y.set(u(b),E),c=(y,b)=>{s.stat(y,(E,g)=>{(E||!g.isDirectory())&&(E=new e(y,E&&E.code||"ENOTDIR")),b(E)})};l.exports=(y,b,E)=>{y=u(y);let g=b.umask,D=b.mode|448,w=(D&g)!==0,v=b.uid,m=b.gid,_=typeof v=="number"&&typeof m=="number"&&(v!==b.processUid||m!==b.processGid),S=b.preserve,A=b.unlink,x=b.cache,L=u(b.cwd),T=(O,I)=>{O?E(O):(a(x,y,!0),I&&_?p(I,v,m,$=>T($)):w?s.chmod(y,D,E):E())};if(x&&f(x,y)===!0)return T();if(y===L)return c(y,T);if(S)return n(y,{mode:D}).then(O=>T(null,O),T);let F=u(i.relative(L,y)).split("/");o(L,F,D,x,A,L,null,T)};var o=(y,b,E,g,D,w,v,m)=>{if(!b.length)return m(null,v);let _=b.shift(),S=u(i.resolve(y+"/"+_));if(f(g,S))return o(S,b,E,g,D,w,v,m);s.mkdir(S,E,d(S,b,E,g,D,w,v,m))},d=(y,b,E,g,D,w,v,m)=>_=>{_?s.lstat(y,(S,A)=>{if(S)S.path=S.path&&u(S.path),m(S);else if(A.isDirectory())o(y,b,E,g,D,w,v,m);else if(D)s.unlink(y,x=>{if(x)return m(x);s.mkdir(y,E,d(y,b,E,g,D,w,v,m))});else{if(A.isSymbolicLink())return m(new r(y,y+"/"+b.join("/")));m(_)}}):(v=v||y,o(y,b,E,g,D,w,v,m))},h=y=>{let b=!1,E="ENOTDIR";try{b=s.statSync(y).isDirectory()}catch(g){E=g.code}finally{if(!b)throw new e(y,E)}};l.exports.sync=(y,b)=>{y=u(y);let E=b.umask,g=b.mode|448,D=(g&E)!==0,w=b.uid,v=b.gid,m=typeof w=="number"&&typeof v=="number"&&(w!==b.processUid||v!==b.processGid),_=b.preserve,S=b.unlink,A=b.cache,x=u(b.cwd),L=O=>{a(A,y,!0),O&&m&&p.sync(O,w,v),D&&s.chmodSync(y,g)};if(A&&f(A,y)===!0)return L();if(y===x)return h(x),L();if(_)return L(n.sync(y,g));let T=u(i.relative(x,y)).split("/"),F=null;for(let O=T.shift(),I=x;O&&(I+="/"+O);O=T.shift())if(I=u(i.resolve(I)),!f(A,I))try{s.mkdirSync(I,g),F=F||I,a(A,I,!0)}catch{let $=s.lstatSync(I);if($.isDirectory()){a(A,I,!0);continue}else if(S){s.unlinkSync(I),s.mkdirSync(I,g),F=F||I,a(A,I,!0);continue}else if($.isSymbolicLink())return new r(I,I+"/"+T.join("/"))}return L(F)}}),oi=N((t,l)=>{B();var n=Object.create(null),{hasOwnProperty:s}=Object.prototype;l.exports=i=>(s.call(n,i)||(n[i]=i.normalize("NFKD")),n[i])}),qu=N((t,l)=>{B();var n=Z("assert"),s=oi(),i=Oe(),{join:p}=Z("path"),u=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,r=u==="win32";l.exports=()=>{let e=new Map,f=new Map,a=b=>b.split("/").slice(0,-1).reduce((E,g)=>(E.length&&(g=p(E[E.length-1],g)),E.push(g||"/"),E),[]),c=new Set,o=b=>{let E=f.get(b);if(!E)throw new Error("function does not have any path reservations");return{paths:E.paths.map(g=>e.get(g)),dirs:[...E.dirs].map(g=>e.get(g))}},d=b=>{let{paths:E,dirs:g}=o(b);return E.every(D=>D[0]===b)&&g.every(D=>D[0]instanceof Set&&D[0].has(b))},h=b=>c.has(b)||!d(b)?!1:(c.add(b),b(()=>y(b)),!0),y=b=>{if(!c.has(b))return!1;let{paths:E,dirs:g}=f.get(b),D=new Set;return E.forEach(w=>{let v=e.get(w);n.equal(v[0],b),v.length===1?e.delete(w):(v.shift(),typeof v[0]=="function"?D.add(v[0]):v[0].forEach(m=>D.add(m)))}),g.forEach(w=>{let v=e.get(w);n(v[0]instanceof Set),v[0].size===1&&v.length===1?e.delete(w):v[0].size===1?(v.shift(),D.add(v[0])):v[0].delete(b)}),c.delete(b),D.forEach(w=>h(w)),!0};return{check:d,reserve:(b,E)=>{b=r?["win32 parallelization disabled"]:b.map(D=>s(i(p(D))).toLowerCase());let g=new Set(b.map(D=>a(D)).reduce((D,w)=>D.concat(w)));return f.set(E,{dirs:g,paths:b}),b.forEach(D=>{let w=e.get(D);w?w.push(E):e.set(D,[E])}),g.forEach(D=>{let w=e.get(D);w?w[w.length-1]instanceof Set?w[w.length-1].add(E):w.push(new Set([E])):e.set(D,[new Set([E])])}),h(E)}}}}),zu=N((t,l)=>{B();var n=process.env.__FAKE_PLATFORM__||process.platform,s=n==="win32",i=global.__FAKE_TESTING_FS__||Z("fs"),{O_CREAT:p,O_TRUNC:u,O_WRONLY:r,UV_FS_O_FILEMAP:e=0}=i.constants,f=s&&!!e,a=512*1024,c=e|u|p|r;l.exports=f?o=>o<a?c:"w":()=>"w"}),ui=N((t,l)=>{"use strict";B();var n=Z("assert"),s=Ar(),i=Z("fs"),p=Re(),u=Z("path"),r=Gu(),e=ti(),f=qu(),a=ei(),c=Fe(),o=Oe(),d=oi(),h=Symbol("onEntry"),y=Symbol("checkFs"),b=Symbol("checkFs2"),E=Symbol("pruneCache"),g=Symbol("isReusable"),D=Symbol("makeFs"),w=Symbol("file"),v=Symbol("directory"),m=Symbol("link"),_=Symbol("symlink"),S=Symbol("hardlink"),A=Symbol("unsupported"),x=Symbol("checkPath"),L=Symbol("mkdir"),T=Symbol("onError"),F=Symbol("pending"),O=Symbol("pend"),I=Symbol("unpend"),$=Symbol("ended"),R=Symbol("maybeClose"),G=Symbol("skip"),W=Symbol("doChown"),Q=Symbol("uid"),P=Symbol("gid"),j=Symbol("checkedCwd"),k=Z("crypto"),J=zu(),q=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,tt=q==="win32",M=(C,z)=>{if(!tt)return i.unlink(C,z);let X=C+".DELETE."+k.randomBytes(16).toString("hex");i.rename(C,X,rt=>{if(rt)return z(rt);i.unlink(X,z)})},Y=C=>{if(!tt)return i.unlinkSync(C);let z=C+".DELETE."+k.randomBytes(16).toString("hex");i.renameSync(C,z),i.unlinkSync(z)},et=(C,z,X)=>C===C>>>0?C:z===z>>>0?z:X,ot=C=>d(o(c(C))).toLowerCase(),ct=(C,z)=>{z=ot(z);for(let X of C.keys()){let rt=ot(X);(rt===z||rt.indexOf(z+"/")===0)&&C.delete(X)}},gt=C=>{for(let z of C.keys())C.delete(z)},mt=class extends s{constructor(C){if(C||(C={}),C.ondone=z=>{this[$]=!0,this[R]()},super(C),this[j]=!1,this.reservations=f(),this.transform=typeof C.transform=="function"?C.transform:null,this.writable=!0,this.readable=!1,this[F]=0,this[$]=!1,this.dirCache=C.dirCache||new Map,typeof C.uid=="number"||typeof C.gid=="number"){if(typeof C.uid!="number"||typeof C.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(C.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=C.uid,this.gid=C.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;C.preserveOwner===void 0&&typeof C.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!C.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=C.forceChown===!0,this.win32=!!C.win32||tt,this.newer=!!C.newer,this.keep=!!C.keep,this.noMtime=!!C.noMtime,this.preservePaths=!!C.preservePaths,this.unlink=!!C.unlink,this.cwd=c(u.resolve(C.cwd||process.cwd())),this.strip=+C.strip||0,this.processUmask=C.noChmod?0:process.umask(),this.umask=typeof C.umask=="number"?C.umask:this.processUmask,this.dmode=C.dmode||511&~this.umask,this.fmode=C.fmode||438&~this.umask,this.on("entry",z=>this[h](z))}warn(C,z,X={}){return(C==="TAR_BAD_ARCHIVE"||C==="TAR_ABORT")&&(X.recoverable=!1),super.warn(C,z,X)}[R](){this[$]&&this[F]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[x](C){if(this.strip){let z=c(C.path).split("/");if(z.length<this.strip)return!1;if(C.path=z.slice(this.strip).join("/"),C.type==="Link"){let X=c(C.linkpath).split("/");if(X.length>=this.strip)C.linkpath=X.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let z=c(C.path),X=z.split("/");if(X.includes("..")||tt&&/^[a-z]:\.\.$/i.test(X[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:C,path:z}),!1;let[rt,ht]=a(z);rt&&(C.path=ht,this.warn("TAR_ENTRY_INFO",`stripping ${rt} from absolute path`,{entry:C,path:z}))}if(u.isAbsolute(C.path)?C.absolute=c(u.resolve(C.path)):C.absolute=c(u.resolve(this.cwd,C.path)),!this.preservePaths&&C.absolute.indexOf(this.cwd+"/")!==0&&C.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:C,path:c(C.path),resolvedPath:C.absolute,cwd:this.cwd}),!1;if(C.absolute===this.cwd&&C.type!=="Directory"&&C.type!=="GNUDumpDir")return!1;if(this.win32){let{root:z}=u.win32.parse(C.absolute);C.absolute=z+e.encode(C.absolute.slice(z.length));let{root:X}=u.win32.parse(C.path);C.path=X+e.encode(C.path.slice(X.length))}return!0}[h](C){if(!this[x](C))return C.resume();switch(n.equal(typeof C.absolute,"string"),C.type){case"Directory":case"GNUDumpDir":C.mode&&(C.mode=C.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](C);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[A](C)}}[T](C,z){C.name==="CwdError"?this.emit("error",C):(this.warn("TAR_ENTRY_ERROR",C,{entry:z}),this[I](),z.resume())}[L](C,z,X){r(c(C),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:z,noChmod:this.noChmod},X)}[W](C){return this.forceChown||this.preserveOwner&&(typeof C.uid=="number"&&C.uid!==this.processUid||typeof C.gid=="number"&&C.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Q](C){return et(this.uid,C.uid,this.processUid)}[P](C){return et(this.gid,C.gid,this.processGid)}[w](C,z){let X=C.mode&4095||this.fmode,rt=new p.WriteStream(C.absolute,{flags:J(C.size),mode:X,autoClose:!1});rt.on("error",nt=>{rt.fd&&i.close(rt.fd,()=>{}),rt.write=()=>!0,this[T](nt,C),z()});let ht=1,it=nt=>{if(nt){rt.fd&&i.close(rt.fd,()=>{}),this[T](nt,C),z();return}--ht===0&&i.close(rt.fd,ft=>{ft?this[T](ft,C):this[I](),z()})};rt.on("finish",nt=>{let ft=C.absolute,vt=rt.fd;if(C.mtime&&!this.noMtime){ht++;let xt=C.atime||new Date,K=C.mtime;i.futimes(vt,xt,K,U=>U?i.utimes(ft,xt,K,ut=>it(ut&&U)):it())}if(this[W](C)){ht++;let xt=this[Q](C),K=this[P](C);i.fchown(vt,xt,K,U=>U?i.chown(ft,xt,K,ut=>it(ut&&U)):it())}it()});let lt=this.transform&&this.transform(C)||C;lt!==C&&(lt.on("error",nt=>{this[T](nt,C),z()}),C.pipe(lt)),lt.pipe(rt)}[v](C,z){let X=C.mode&4095||this.dmode;this[L](C.absolute,X,rt=>{if(rt){this[T](rt,C),z();return}let ht=1,it=lt=>{--ht===0&&(z(),this[I](),C.resume())};C.mtime&&!this.noMtime&&(ht++,i.utimes(C.absolute,C.atime||new Date,C.mtime,it)),this[W](C)&&(ht++,i.chown(C.absolute,this[Q](C),this[P](C),it)),it()})}[A](C){C.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${C.type}`,{entry:C}),C.resume()}[_](C,z){this[m](C,C.linkpath,"symlink",z)}[S](C,z){let X=c(u.resolve(this.cwd,C.linkpath));this[m](C,X,"link",z)}[O](){this[F]++}[I](){this[F]--,this[R]()}[G](C){this[I](),C.resume()}[g](C,z){return C.type==="File"&&!this.unlink&&z.isFile()&&z.nlink<=1&&!tt}[y](C){this[O]();let z=[C.path];C.linkpath&&z.push(C.linkpath),this.reservations.reserve(z,X=>this[b](C,X))}[E](C){C.type==="SymbolicLink"?gt(this.dirCache):C.type!=="Directory"&&ct(this.dirCache,C.absolute)}[b](C,z){this[E](C);let X=lt=>{this[E](C),z(lt)},rt=()=>{this[L](this.cwd,this.dmode,lt=>{if(lt){this[T](lt,C),X();return}this[j]=!0,ht()})},ht=()=>{if(C.absolute!==this.cwd){let lt=c(u.dirname(C.absolute));if(lt!==this.cwd)return this[L](lt,this.dmode,nt=>{if(nt){this[T](nt,C),X();return}it()})}it()},it=()=>{i.lstat(C.absolute,(lt,nt)=>{if(nt&&(this.keep||this.newer&&nt.mtime>C.mtime)){this[G](C),X();return}if(lt||this[g](C,nt))return this[D](null,C,X);if(nt.isDirectory()){if(C.type==="Directory"){let ft=!this.noChmod&&C.mode&&(nt.mode&4095)!==C.mode,vt=xt=>this[D](xt,C,X);return ft?i.chmod(C.absolute,C.mode,vt):vt()}if(C.absolute!==this.cwd)return i.rmdir(C.absolute,ft=>this[D](ft,C,X))}if(C.absolute===this.cwd)return this[D](null,C,X);M(C.absolute,ft=>this[D](ft,C,X))})};this[j]?ht():rt()}[D](C,z,X){if(C){this[T](C,z),X();return}switch(z.type){case"File":case"OldFile":case"ContiguousFile":return this[w](z,X);case"Link":return this[S](z,X);case"SymbolicLink":return this[_](z,X);case"Directory":case"GNUDumpDir":return this[v](z,X)}}[m](C,z,X,rt){i[X](z,C.absolute,ht=>{ht?this[T](ht,C):(this[I](),C.resume()),rt()})}},H=C=>{try{return[null,C()]}catch(z){return[z,null]}},V=class extends mt{[D](C,z){return super[D](C,z,()=>{})}[y](C){if(this[E](C),!this[j]){let ht=this[L](this.cwd,this.dmode);if(ht)return this[T](ht,C);this[j]=!0}if(C.absolute!==this.cwd){let ht=c(u.dirname(C.absolute));if(ht!==this.cwd){let it=this[L](ht,this.dmode);if(it)return this[T](it,C)}}let[z,X]=H(()=>i.lstatSync(C.absolute));if(X&&(this.keep||this.newer&&X.mtime>C.mtime))return this[G](C);if(z||this[g](C,X))return this[D](null,C);if(X.isDirectory()){if(C.type==="Directory"){let it=!this.noChmod&&C.mode&&(X.mode&4095)!==C.mode,[lt]=it?H(()=>{i.chmodSync(C.absolute,C.mode)}):[];return this[D](lt,C)}let[ht]=H(()=>i.rmdirSync(C.absolute));this[D](ht,C)}let[rt]=C.absolute===this.cwd?[]:H(()=>Y(C.absolute));this[D](rt,C)}[w](C,z){let X=C.mode&4095||this.fmode,rt=lt=>{let nt;try{i.closeSync(ht)}catch(ft){nt=ft}(lt||nt)&&this[T](lt||nt,C),z()},ht;try{ht=i.openSync(C.absolute,J(C.size),X)}catch(lt){return rt(lt)}let it=this.transform&&this.transform(C)||C;it!==C&&(it.on("error",lt=>this[T](lt,C)),C.pipe(it)),it.on("data",lt=>{try{i.writeSync(ht,lt,0,lt.length)}catch(nt){rt(nt)}}),it.on("end",lt=>{let nt=null;if(C.mtime&&!this.noMtime){let ft=C.atime||new Date,vt=C.mtime;try{i.futimesSync(ht,ft,vt)}catch(xt){try{i.utimesSync(C.absolute,ft,vt)}catch{nt=xt}}}if(this[W](C)){let ft=this[Q](C),vt=this[P](C);try{i.fchownSync(ht,ft,vt)}catch(xt){try{i.chownSync(C.absolute,ft,vt)}catch{nt=nt||xt}}}rt(nt)})}[v](C,z){let X=C.mode&4095||this.dmode,rt=this[L](C.absolute,X);if(rt){this[T](rt,C),z();return}if(C.mtime&&!this.noMtime)try{i.utimesSync(C.absolute,C.atime||new Date,C.mtime)}catch{}if(this[W](C))try{i.chownSync(C.absolute,this[Q](C),this[P](C))}catch{}z(),C.resume()}[L](C,z){try{return r.sync(c(C),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:z})}catch(X){return X}}[m](C,z,X,rt){try{i[X+"Sync"](z,C.absolute),rt(),C.resume()}catch(ht){return this[T](ht,C)}}};mt.Sync=V,l.exports=mt}),Wu=N((t,l)=>{"use strict";B();var n=xe(),s=ui(),i=Z("fs"),p=Re(),u=Z("path"),r=Oe();l.exports=(d,h,y)=>{typeof d=="function"?(y=d,h=null,d={}):Array.isArray(d)&&(h=d,d={}),typeof h=="function"&&(y=h,h=null),h?h=Array.from(h):h=[];let b=n(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return h.length&&e(b,h),b.file&&b.sync?f(b):b.file?a(b,y):b.sync?c(b):o(b)};var e=(d,h)=>{let y=new Map(h.map(g=>[r(g),!0])),b=d.filter,E=(g,D)=>{let w=D||u.parse(g).root||".",v=g===w?!1:y.has(g)?y.get(g):E(u.dirname(g),w);return y.set(g,v),v};d.filter=b?(g,D)=>b(g,D)&&E(r(g)):g=>E(r(g))},f=d=>{let h=new s.Sync(d),y=d.file,b=i.statSync(y),E=d.maxReadSize||16*1024*1024;new p.ReadStreamSync(y,{readSize:E,size:b.size}).pipe(h)},a=(d,h)=>{let y=new s(d),b=d.maxReadSize||16*1024*1024,E=d.file,g=new Promise((D,w)=>{y.on("error",w),y.on("close",D),i.stat(E,(v,m)=>{if(v)w(v);else{let _=new p.ReadStream(E,{readSize:b,size:m.size});_.on("error",w),_.pipe(y)}})});return h?g.then(h,h):g},c=d=>new s.Sync(d),o=d=>new s(d)}),Vu=N(t=>{"use strict";B(),t.c=t.create=Pu(),t.r=t.replace=ii(),t.t=t.list=Cr(),t.u=t.update=Lu(),t.x=t.extract=Wu(),t.Pack=Sr(),t.Unpack=ui(),t.Parse=Ar(),t.ReadEntry=_r(),t.WriteEntry=ri(),t.Header=ke(),t.Pax=wr(),t.types=Qn()});B();var Zp=Ot(ku()),Xp=Ot(Vu()),Qp=(0,li.promisify)(ai.Stream.pipeline);var Yu=N((t,l)=>{B();var n=Z("constants"),s=process.cwd,i=null,p=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=s.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(u=process.chdir,process.chdir=function(e){i=null,u.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,u));var u;l.exports=r;function r(e){n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&f(e),e.lutimes||a(e),e.chown=d(e.chown),e.fchown=d(e.fchown),e.lchown=d(e.lchown),e.chmod=c(e.chmod),e.fchmod=c(e.fchmod),e.lchmod=c(e.lchmod),e.chownSync=h(e.chownSync),e.fchownSync=h(e.fchownSync),e.lchownSync=h(e.lchownSync),e.chmodSync=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(e.lchmodSync),e.stat=y(e.stat),e.fstat=y(e.fstat),e.lstat=y(e.lstat),e.statSync=b(e.statSync),e.fstatSync=b(e.fstatSync),e.lstatSync=b(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(g,D,w){w&&process.nextTick(w)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(g,D,w,v){v&&process.nextTick(v)},e.lchownSync=function(){}),p==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(g){function D(w,v,m){var _=Date.now(),S=0;g(w,v,function A(x){if(x&&(x.code==="EACCES"||x.code==="EPERM")&&Date.now()-_<6e4){setTimeout(function(){e.stat(v,function(L,T){L&&L.code==="ENOENT"?g(w,v,A):m(x)})},S),S<100&&(S+=10);return}m&&m(x)})}return Object.setPrototypeOf&&Object.setPrototypeOf(D,g),D}(e.rename)),e.read=typeof e.read!="function"?e.read:function(g){function D(w,v,m,_,S,A){var x;if(A&&typeof A=="function"){var L=0;x=function(T,F,O){if(T&&T.code==="EAGAIN"&&L<10)return L++,g.call(e,w,v,m,_,S,x);A.apply(this,arguments)}}return g.call(e,w,v,m,_,S,x)}return Object.setPrototypeOf&&Object.setPrototypeOf(D,g),D}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(g){return function(D,w,v,m,_){for(var S=0;;)try{return g.call(e,D,w,v,m,_)}catch(A){if(A.code==="EAGAIN"&&S<10){S++;continue}throw A}}}(e.readSync);function f(g){g.lchmod=function(D,w,v){g.open(D,n.O_WRONLY|n.O_SYMLINK,w,function(m,_){if(m){v&&v(m);return}g.fchmod(_,w,function(S){g.close(_,function(A){v&&v(S||A)})})})},g.lchmodSync=function(D,w){var v=g.openSync(D,n.O_WRONLY|n.O_SYMLINK,w),m=!0,_;try{_=g.fchmodSync(v,w),m=!1}finally{if(m)try{g.closeSync(v)}catch{}else g.closeSync(v)}return _}}function a(g){n.hasOwnProperty("O_SYMLINK")&&g.futimes?(g.lutimes=function(D,w,v,m){g.open(D,n.O_SYMLINK,function(_,S){if(_){m&&m(_);return}g.futimes(S,w,v,function(A){g.close(S,function(x){m&&m(A||x)})})})},g.lutimesSync=function(D,w,v){var m=g.openSync(D,n.O_SYMLINK),_,S=!0;try{_=g.futimesSync(m,w,v),S=!1}finally{if(S)try{g.closeSync(m)}catch{}else g.closeSync(m)}return _}):g.futimes&&(g.lutimes=function(D,w,v,m){m&&process.nextTick(m)},g.lutimesSync=function(){})}function c(g){return g&&function(D,w,v){return g.call(e,D,w,function(m){E(m)&&(m=null),v&&v.apply(this,arguments)})}}function o(g){return g&&function(D,w){try{return g.call(e,D,w)}catch(v){if(!E(v))throw v}}}function d(g){return g&&function(D,w,v,m){return g.call(e,D,w,v,function(_){E(_)&&(_=null),m&&m.apply(this,arguments)})}}function h(g){return g&&function(D,w,v){try{return g.call(e,D,w,v)}catch(m){if(!E(m))throw m}}}function y(g){return g&&function(D,w,v){typeof w=="function"&&(v=w,w=null);function m(_,S){S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),v&&v.apply(this,arguments)}return w?g.call(e,D,w,m):g.call(e,D,m)}}function b(g){return g&&function(D,w){var v=w?g.call(e,D,w):g.call(e,D);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function E(g){if(!g||g.code==="ENOSYS")return!0;var D=!process.getuid||process.getuid()!==0;return!!(D&&(g.code==="EINVAL"||g.code==="EPERM"))}}}),Ku=N((t,l)=>{B();var n=Z("stream").Stream;l.exports=s;function s(i){return{ReadStream:p,WriteStream:u};function p(r,e){if(!(this instanceof p))return new p(r,e);n.call(this);var f=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,e=e||{};for(var a=Object.keys(e),c=0,o=a.length;c<o;c++){var d=a[c];this[d]=e[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){f._read()});return}i.open(this.path,this.flags,this.mode,function(h,y){if(h){f.emit("error",h),f.readable=!1;return}f.fd=y,f.emit("open",y),f._read()})}function u(r,e){if(!(this instanceof u))return new u(r,e);n.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,e=e||{};for(var f=Object.keys(e),a=0,c=f.length;a<c;a++){var o=f[a];this[o]=e[o]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),Ju=N((t,l)=>{"use strict";B(),l.exports=s;var n=Object.getPrototypeOf||function(i){return i.__proto__};function s(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var p={__proto__:n(i)};else var p=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(u){Object.defineProperty(p,u,Object.getOwnPropertyDescriptor(i,u))}),p}}),Ct=N((t,l)=>{B();var n=Z("fs"),s=Yu(),i=Ku(),p=Ju(),u=Z("util"),r,e;typeof Symbol=="function"&&typeof Symbol.for=="function"?(r=Symbol.for("graceful-fs.queue"),e=Symbol.for("graceful-fs.previous")):(r="___graceful-fs.queue",e="___graceful-fs.previous");function f(){}function a(g,D){Object.defineProperty(g,r,{get:function(){return D}})}var c=f;u.debuglog?c=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(c=function(){var g=u.format.apply(u,arguments);g="GFS4: "+g.split(/\n/).join(`
|
25
|
+
GFS4: `),console.error(g)}),n[r]||(o=global[r]||[],a(n,o),n.close=function(g){function D(w,v){return g.call(n,w,function(m){m||b(),typeof v=="function"&&v.apply(this,arguments)})}return Object.defineProperty(D,e,{value:g}),D}(n.close),n.closeSync=function(g){function D(w){g.apply(n,arguments),b()}return Object.defineProperty(D,e,{value:g}),D}(n.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){c(n[r]),Z("assert").equal(n[r].length,0)}));var o;global[r]||a(global,n[r]),l.exports=d(p(n)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched&&(l.exports=d(n),n.__patched=!0);function d(g){s(g),g.gracefulify=d,g.createReadStream=k,g.createWriteStream=J;var D=g.readFile;g.readFile=w;function w(M,Y,et){return typeof Y=="function"&&(et=Y,Y=null),ot(M,Y,et);function ot(ct,gt,mt,H){return D(ct,gt,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?h([ot,[ct,gt,mt],V,H||Date.now(),Date.now()]):typeof mt=="function"&&mt.apply(this,arguments)})}}var v=g.writeFile;g.writeFile=m;function m(M,Y,et,ot){return typeof et=="function"&&(ot=et,et=null),ct(M,Y,et,ot);function ct(gt,mt,H,V,C){return v(gt,mt,H,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?h([ct,[gt,mt,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var _=g.appendFile;_&&(g.appendFile=S);function S(M,Y,et,ot){return typeof et=="function"&&(ot=et,et=null),ct(M,Y,et,ot);function ct(gt,mt,H,V,C){return _(gt,mt,H,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?h([ct,[gt,mt,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var A=g.copyFile;A&&(g.copyFile=x);function x(M,Y,et,ot){return typeof et=="function"&&(ot=et,et=0),ct(M,Y,et,ot);function ct(gt,mt,H,V,C){return A(gt,mt,H,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?h([ct,[gt,mt,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var L=g.readdir;g.readdir=F;var T=/^v[0-5]\./;function F(M,Y,et){typeof Y=="function"&&(et=Y,Y=null);var ot=T.test(process.version)?function(gt,mt,H,V){return L(gt,ct(gt,mt,H,V))}:function(gt,mt,H,V){return L(gt,mt,ct(gt,mt,H,V))};return ot(M,Y,et);function ct(gt,mt,H,V){return function(C,z){C&&(C.code==="EMFILE"||C.code==="ENFILE")?h([ot,[gt,mt,H],C,V||Date.now(),Date.now()]):(z&&z.sort&&z.sort(),typeof H=="function"&&H.call(this,C,z))}}}if(process.version.substr(0,4)==="v0.8"){var O=i(g);W=O.ReadStream,P=O.WriteStream}var I=g.ReadStream;I&&(W.prototype=Object.create(I.prototype),W.prototype.open=Q);var $=g.WriteStream;$&&(P.prototype=Object.create($.prototype),P.prototype.open=j),Object.defineProperty(g,"ReadStream",{get:function(){return W},set:function(M){W=M},enumerable:!0,configurable:!0}),Object.defineProperty(g,"WriteStream",{get:function(){return P},set:function(M){P=M},enumerable:!0,configurable:!0});var R=W;Object.defineProperty(g,"FileReadStream",{get:function(){return R},set:function(M){R=M},enumerable:!0,configurable:!0});var G=P;Object.defineProperty(g,"FileWriteStream",{get:function(){return G},set:function(M){G=M},enumerable:!0,configurable:!0});function W(M,Y){return this instanceof W?(I.apply(this,arguments),this):W.apply(Object.create(W.prototype),arguments)}function Q(){var M=this;tt(M.path,M.flags,M.mode,function(Y,et){Y?(M.autoClose&&M.destroy(),M.emit("error",Y)):(M.fd=et,M.emit("open",et),M.read())})}function P(M,Y){return this instanceof P?($.apply(this,arguments),this):P.apply(Object.create(P.prototype),arguments)}function j(){var M=this;tt(M.path,M.flags,M.mode,function(Y,et){Y?(M.destroy(),M.emit("error",Y)):(M.fd=et,M.emit("open",et))})}function k(M,Y){return new g.ReadStream(M,Y)}function J(M,Y){return new g.WriteStream(M,Y)}var q=g.open;g.open=tt;function tt(M,Y,et,ot){return typeof et=="function"&&(ot=et,et=null),ct(M,Y,et,ot);function ct(gt,mt,H,V,C){return q(gt,mt,H,function(z,X){z&&(z.code==="EMFILE"||z.code==="ENFILE")?h([ct,[gt,mt,H,V],z,C||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return g}function h(g){c("ENQUEUE",g[0].name,g[1]),n[r].push(g),E()}var y;function b(){for(var g=Date.now(),D=0;D<n[r].length;++D)n[r][D].length>2&&(n[r][D][3]=g,n[r][D][4]=g);E()}function E(){if(clearTimeout(y),y=void 0,n[r].length!==0){var g=n[r].shift(),D=g[0],w=g[1],v=g[2],m=g[3],_=g[4];if(m===void 0)c("RETRY",D.name,w),D.apply(null,w);else if(Date.now()-m>=6e4){c("TIMEOUT",D.name,w);var S=w.pop();typeof S=="function"&&S.call(null,v)}else{var A=Date.now()-_,x=Math.max(_-m,1),L=Math.min(x*1.2,100);A>=L?(c("RETRY",D.name,w),D.apply(null,w.concat([m]))):n[r].push(g)}y===void 0&&(y=setTimeout(E,0))}}});var Vt=N(t=>{"use strict";B(),t.fromCallback=function(l){return Object.defineProperty(function(...n){if(typeof n[n.length-1]=="function")l.apply(this,n);else return new Promise((s,i)=>{l.call(this,...n,(p,u)=>p!=null?i(p):s(u))})},"name",{value:l.name})},t.fromPromise=function(l){return Object.defineProperty(function(...n){let s=n[n.length-1];if(typeof s!="function")return l.apply(this,n);l.apply(this,n.slice(0,-1)).then(i=>s(null,i),s)},"name",{value:l.name})}}),Ee=N(t=>{"use strict";B();var l=Vt().fromCallback,n=Ct(),s=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof n[i]=="function");Object.assign(t,n),s.forEach(i=>{t[i]=l(n[i])}),t.exists=function(i,p){return typeof p=="function"?n.exists(i,p):new Promise(u=>n.exists(i,u))},t.read=function(i,p,u,r,e,f){return typeof f=="function"?n.read(i,p,u,r,e,f):new Promise((a,c)=>{n.read(i,p,u,r,e,(o,d,h)=>{if(o)return c(o);a({bytesRead:d,buffer:h})})})},t.write=function(i,p,...u){return typeof u[u.length-1]=="function"?n.write(i,p,...u):new Promise((r,e)=>{n.write(i,p,...u,(f,a,c)=>{if(f)return e(f);r({bytesWritten:a,buffer:c})})})},t.readv=function(i,p,...u){return typeof u[u.length-1]=="function"?n.readv(i,p,...u):new Promise((r,e)=>{n.readv(i,p,...u,(f,a,c)=>{if(f)return e(f);r({bytesRead:a,buffers:c})})})},t.writev=function(i,p,...u){return typeof u[u.length-1]=="function"?n.writev(i,p,...u):new Promise((r,e)=>{n.writev(i,p,...u,(f,a,c)=>{if(f)return e(f);r({bytesWritten:a,buffers:c})})})},typeof n.realpath.native=="function"?t.realpath.native=l(n.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}),Zu=N((t,l)=>{"use strict";B();var n=Z("path");l.exports.checkPath=function(s){if(process.platform==="win32"&&/[<>:"|?*]/.test(s.replace(n.parse(s).root,""))){let i=new Error(`Path contains invalid characters: ${s}`);throw i.code="EINVAL",i}}}),Xu=N((t,l)=>{"use strict";B();var n=Ee(),{checkPath:s}=Zu(),i=p=>typeof p=="number"?p:{...{mode:511},...p}.mode;l.exports.makeDir=async(p,u)=>(s(p),n.mkdir(p,{mode:i(u),recursive:!0})),l.exports.makeDirSync=(p,u)=>(s(p),n.mkdirSync(p,{mode:i(u),recursive:!0}))}),Xt=N((t,l)=>{"use strict";B();var n=Vt().fromPromise,{makeDir:s,makeDirSync:i}=Xu(),p=n(s);l.exports={mkdirs:p,mkdirsSync:i,mkdirp:p,mkdirpSync:i,ensureDir:p,ensureDirSync:i}}),fe=N((t,l)=>{"use strict";B();var n=Vt().fromPromise,s=Ee();function i(p){return s.access(p).then(()=>!0).catch(()=>!1)}l.exports={pathExists:n(i),pathExistsSync:s.existsSync}}),ci=N((t,l)=>{"use strict";B();var n=Ct();function s(p,u,r,e){n.open(p,"r+",(f,a)=>{if(f)return e(f);n.futimes(a,u,r,c=>{n.close(a,o=>{e&&e(c||o)})})})}function i(p,u,r){let e=n.openSync(p,"r+");return n.futimesSync(e,u,r),n.closeSync(e)}l.exports={utimesMillis:s,utimesMillisSync:i}}),_e=N((t,l)=>{"use strict";B();var n=Ee(),s=Z("path"),i=Z("util");function p(h,y,b){let E=b.dereference?g=>n.stat(g,{bigint:!0}):g=>n.lstat(g,{bigint:!0});return Promise.all([E(h),E(y).catch(g=>{if(g.code==="ENOENT")return null;throw g})]).then(([g,D])=>({srcStat:g,destStat:D}))}function u(h,y,b){let E,g=b.dereference?w=>n.statSync(w,{bigint:!0}):w=>n.lstatSync(w,{bigint:!0}),D=g(h);try{E=g(y)}catch(w){if(w.code==="ENOENT")return{srcStat:D,destStat:null};throw w}return{srcStat:D,destStat:E}}function r(h,y,b,E,g){i.callbackify(p)(h,y,E,(D,w)=>{if(D)return g(D);let{srcStat:v,destStat:m}=w;if(m){if(c(v,m)){let _=s.basename(h),S=s.basename(y);return b==="move"&&_!==S&&_.toLowerCase()===S.toLowerCase()?g(null,{srcStat:v,destStat:m,isChangingCase:!0}):g(new Error("Source and destination must not be the same."))}if(v.isDirectory()&&!m.isDirectory())return g(new Error(`Cannot overwrite non-directory '${y}' with directory '${h}'.`));if(!v.isDirectory()&&m.isDirectory())return g(new Error(`Cannot overwrite directory '${y}' with non-directory '${h}'.`))}return v.isDirectory()&&o(h,y)?g(new Error(d(h,y,b))):g(null,{srcStat:v,destStat:m})})}function e(h,y,b,E){let{srcStat:g,destStat:D}=u(h,y,E);if(D){if(c(g,D)){let w=s.basename(h),v=s.basename(y);if(b==="move"&&w!==v&&w.toLowerCase()===v.toLowerCase())return{srcStat:g,destStat:D,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(g.isDirectory()&&!D.isDirectory())throw new Error(`Cannot overwrite non-directory '${y}' with directory '${h}'.`);if(!g.isDirectory()&&D.isDirectory())throw new Error(`Cannot overwrite directory '${y}' with non-directory '${h}'.`)}if(g.isDirectory()&&o(h,y))throw new Error(d(h,y,b));return{srcStat:g,destStat:D}}function f(h,y,b,E,g){let D=s.resolve(s.dirname(h)),w=s.resolve(s.dirname(b));if(w===D||w===s.parse(w).root)return g();n.stat(w,{bigint:!0},(v,m)=>v?v.code==="ENOENT"?g():g(v):c(y,m)?g(new Error(d(h,b,E))):f(h,y,w,E,g))}function a(h,y,b,E){let g=s.resolve(s.dirname(h)),D=s.resolve(s.dirname(b));if(D===g||D===s.parse(D).root)return;let w;try{w=n.statSync(D,{bigint:!0})}catch(v){if(v.code==="ENOENT")return;throw v}if(c(y,w))throw new Error(d(h,b,E));return a(h,y,D,E)}function c(h,y){return y.ino&&y.dev&&y.ino===h.ino&&y.dev===h.dev}function o(h,y){let b=s.resolve(h).split(s.sep).filter(g=>g),E=s.resolve(y).split(s.sep).filter(g=>g);return b.reduce((g,D,w)=>g&&E[w]===D,!0)}function d(h,y,b){return`Cannot ${b} '${h}' to a subdirectory of itself, '${y}'.`}l.exports={checkPaths:r,checkPathsSync:e,checkParentPaths:f,checkParentPathsSync:a,isSrcSubdir:o,areIdentical:c}}),Qu=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=Xt().mkdirs,p=fe().pathExists,u=ci().utimesMillis,r=_e();function e(T,F,O,I){typeof O=="function"&&!I?(I=O,O={}):typeof O=="function"&&(O={filter:O}),I=I||function(){},O=O||{},O.clobber="clobber"in O?!!O.clobber:!0,O.overwrite="overwrite"in O?!!O.overwrite:O.clobber,O.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
26
26
|
|
27
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),r.checkPaths(T,
|
27
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),r.checkPaths(T,F,"copy",O,($,R)=>{if($)return I($);let{srcStat:G,destStat:W}=R;r.checkParentPaths(T,G,F,"copy",Q=>{if(Q)return I(Q);a(T,F,O,(P,j)=>{if(P)return I(P);if(!j)return I();f(W,T,F,O,I)})})})}function f(T,F,O,I,$){let R=s.dirname(O);p(R,(G,W)=>{if(G)return $(G);if(W)return c(T,F,O,I,$);i(R,Q=>Q?$(Q):c(T,F,O,I,$))})}function a(T,F,O,I){if(!O.filter)return I(null,!0);Promise.resolve(O.filter(T,F)).then($=>I(null,$),$=>I($))}function c(T,F,O,I,$){(I.dereference?n.stat:n.lstat)(F,(R,G)=>R?$(R):G.isDirectory()?v(G,T,F,O,I,$):G.isFile()||G.isCharacterDevice()||G.isBlockDevice()?o(G,T,F,O,I,$):G.isSymbolicLink()?x(T,F,O,I,$):G.isSocket()?$(new Error(`Cannot copy a socket file: ${F}`)):G.isFIFO()?$(new Error(`Cannot copy a FIFO pipe: ${F}`)):$(new Error(`Unknown file: ${F}`)))}function o(T,F,O,I,$,R){return F?d(T,O,I,$,R):h(T,O,I,$,R)}function d(T,F,O,I,$){if(I.overwrite)n.unlink(O,R=>R?$(R):h(T,F,O,I,$));else return I.errorOnExist?$(new Error(`'${O}' already exists`)):$()}function h(T,F,O,I,$){n.copyFile(F,O,R=>R?$(R):I.preserveTimestamps?y(T.mode,F,O,$):D(O,T.mode,$))}function y(T,F,O,I){return b(T)?E(O,T,$=>$?I($):g(T,F,O,I)):g(T,F,O,I)}function b(T){return(T&128)===0}function E(T,F,O){return D(T,F|128,O)}function g(T,F,O,I){w(F,O,$=>$?I($):D(O,T,I))}function D(T,F,O){return n.chmod(T,F,O)}function w(T,F,O){n.stat(T,(I,$)=>I?O(I):u(F,$.atime,$.mtime,O))}function v(T,F,O,I,$,R){return F?_(O,I,$,R):m(T.mode,O,I,$,R)}function m(T,F,O,I,$){n.mkdir(O,R=>{if(R)return $(R);_(F,O,I,G=>G?$(G):D(O,T,$))})}function _(T,F,O,I){n.readdir(T,($,R)=>$?I($):S(R,T,F,O,I))}function S(T,F,O,I,$){let R=T.pop();return R?A(T,R,F,O,I,$):$()}function A(T,F,O,I,$,R){let G=s.join(O,F),W=s.join(I,F);a(G,W,$,(Q,P)=>{if(Q)return R(Q);if(!P)return S(T,O,I,$,R);r.checkPaths(G,W,"copy",$,(j,k)=>{if(j)return R(j);let{destStat:J}=k;c(J,G,W,$,q=>q?R(q):S(T,O,I,$,R))})})}function x(T,F,O,I,$){n.readlink(F,(R,G)=>{if(R)return $(R);if(I.dereference&&(G=s.resolve(process.cwd(),G)),T)n.readlink(O,(W,Q)=>W?W.code==="EINVAL"||W.code==="UNKNOWN"?n.symlink(G,O,$):$(W):(I.dereference&&(Q=s.resolve(process.cwd(),Q)),r.isSrcSubdir(G,Q)?$(new Error(`Cannot copy '${G}' to a subdirectory of itself, '${Q}'.`)):r.isSrcSubdir(Q,G)?$(new Error(`Cannot overwrite '${Q}' with '${G}'.`)):L(G,O,$)));else return n.symlink(G,O,$)})}function L(T,F,O){n.unlink(F,I=>I?O(I):n.symlink(T,F,O))}l.exports=e}),ta=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=Xt().mkdirsSync,p=ci().utimesMillisSync,u=_e();function r(_,S,A){typeof A=="function"&&(A={filter:A}),A=A||{},A.clobber="clobber"in A?!!A.clobber:!0,A.overwrite="overwrite"in A?!!A.overwrite:A.clobber,A.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
28
28
|
|
29
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:
|
30
|
-
`,finalEOL:u=!0,replacer:r=null,spaces:e}={}){let f=u?p:"";return JSON.stringify(i,r,e).replace(/\n/g,p)+f}function s(i){return Buffer.isBuffer(i)&&(i=i.toString("utf8")),i.replace(/^\uFEFF/,"")}l.exports={stringify:n,stripBom:s}}),aa=N((t,l)=>{B();var n;try{n=Ct()}catch{n=Z("fs")}var s=Vt(),{stringify:i,stripBom:p}=Fr();async function u(d,h={}){typeof h=="string"&&(h={encoding:h});let g=h.fs||n,b="throws"in h?h.throws:!0,E=await s.fromCallback(g.readFile)(d,h);E=p(E);let y;try{y=JSON.parse(E,h?h.reviver:null)}catch(D){if(b)throw D.message=`${d}: ${D.message}`,D;return null}return y}var r=s.fromPromise(u);function e(d,h={}){typeof h=="string"&&(h={encoding:h});let g=h.fs||n,b="throws"in h?h.throws:!0;try{let E=g.readFileSync(d,h);return E=p(E),JSON.parse(E,h.reviver)}catch(E){if(b)throw E.message=`${d}: ${E.message}`,E;return null}}async function f(d,h,g={}){let b=g.fs||n,E=i(h,g);await s.fromCallback(b.writeFile)(d,E,g)}var a=s.fromPromise(f);function c(d,h,g={}){let b=g.fs||n,E=i(h,g);return b.writeFileSync(d,E,g)}var o={readFile:r,readFileSync:e,writeFile:a,writeFileSync:c};l.exports=o}),la=N((t,l)=>{"use strict";B();var n=aa();l.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}}),kr=N((t,l)=>{"use strict";B();var n=Vt().fromCallback,s=Ct(),i=Z("path"),p=Xt(),u=fe().pathExists;function r(f,a,c,o){typeof c=="function"&&(o=c,c="utf8");let d=i.dirname(f);u(d,(h,g)=>{if(h)return o(h);if(g)return s.writeFile(f,a,c,o);p.mkdirs(d,b=>{if(b)return o(b);s.writeFile(f,a,c,o)})})}function e(f,...a){let c=i.dirname(f);if(s.existsSync(c))return s.writeFileSync(f,...a);p.mkdirsSync(c),s.writeFileSync(f,...a)}l.exports={outputFile:n(r),outputFileSync:e}}),ca=N((t,l)=>{"use strict";B();var{stringify:n}=Fr(),{outputFile:s}=kr();async function i(p,u,r={}){let e=n(u,r);await s(p,e,r)}l.exports=i}),ha=N((t,l)=>{"use strict";B();var{stringify:n}=Fr(),{outputFileSync:s}=kr();function i(p,u,r){let e=n(u,r);s(p,e,r)}l.exports=i}),fa=N((t,l)=>{"use strict";B();var n=Vt().fromPromise,s=la();s.outputJson=n(ca()),s.outputJsonSync=ha(),s.outputJSON=s.outputJson,s.outputJSONSync=s.outputJsonSync,s.writeJSON=s.writeJson,s.writeJSONSync=s.writeJsonSync,s.readJSON=s.readJson,s.readJSONSync=s.readJsonSync,l.exports=s}),pa=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=xr().copy,p=Qe().remove,u=Xt().mkdirp,r=fe().pathExists,e=_e();function f(h,g,b,E){typeof b=="function"&&(E=b,b={}),b=b||{};let y=b.overwrite||b.clobber||!1;e.checkPaths(h,g,"move",b,(D,w)=>{if(D)return E(D);let{srcStat:v,isChangingCase:m=!1}=w;e.checkParentPaths(h,v,g,"move",_=>{if(_)return E(_);if(a(g))return c(h,g,y,m,E);u(s.dirname(g),S=>S?E(S):c(h,g,y,m,E))})})}function a(h){let g=s.dirname(h);return s.parse(g).root===g}function c(h,g,b,E,y){if(E)return o(h,g,b,y);if(b)return p(g,D=>D?y(D):o(h,g,b,y));r(g,(D,w)=>D?y(D):w?y(new Error("dest already exists.")):o(h,g,b,y))}function o(h,g,b,E){n.rename(h,g,y=>y?y.code!=="EXDEV"?E(y):d(h,g,b,E):E())}function d(h,g,b,E){i(h,g,{overwrite:b,errorOnExist:!0,preserveTimestamps:!0},y=>y?E(y):p(h,E))}l.exports=f}),da=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=xr().copySync,p=Qe().removeSync,u=Xt().mkdirpSync,r=_e();function e(d,h,g){g=g||{};let b=g.overwrite||g.clobber||!1,{srcStat:E,isChangingCase:y=!1}=r.checkPathsSync(d,h,"move",g);return r.checkParentPathsSync(d,E,h,"move"),f(h)||u(s.dirname(h)),a(d,h,b,y)}function f(d){let h=s.dirname(d);return s.parse(h).root===h}function a(d,h,g,b){if(b)return c(d,h,g);if(g)return p(h),c(d,h,g);if(n.existsSync(h))throw new Error("dest already exists.");return c(d,h,g)}function c(d,h,g){try{n.renameSync(d,h)}catch(b){if(b.code!=="EXDEV")throw b;return o(d,h,g)}}function o(d,h,g){return i(d,h,{overwrite:g,errorOnExist:!0,preserveTimestamps:!0}),p(d)}l.exports=e}),ma=N((t,l)=>{"use strict";B();var n=Vt().fromCallback;l.exports={move:n(pa()),moveSync:da()}}),oe=N((t,l)=>{"use strict";B(),l.exports={...Ee(),...xr(),...ea(),...ua(),...fa(),...Xt(),...ma(),...kr(),...fe(),...Qe()}});B();var v0=Ot(oe());B();var D0=Ot(oe());var wa=N((t,l)=>{B();function n(s,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(s)),this._timeouts=s,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}l.exports=n,n.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},n.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},n.prototype.retry=function(s){if(this._timeout&&clearTimeout(this._timeout),!s)return!1;var i=new Date().getTime();if(s&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(s),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(s);var p=this._timeouts.shift();if(p===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),p=this._cachedTimeouts.slice(-1);else return!1;var u=this;return this._timer=setTimeout(function(){u._attempts++,u._operationTimeoutCb&&(u._timeout=setTimeout(function(){u._operationTimeoutCb(u._attempts)},u._operationTimeout),u._options.unref&&u._timeout.unref()),u._fn(u._attempts)},p),this._options.unref&&this._timer.unref(),!0},n.prototype.attempt=function(s,i){this._fn=s,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var p=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){p._operationTimeoutCb()},p._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},n.prototype.try=function(s){console.log("Using RetryOperation.try() is deprecated"),this.attempt(s)},n.prototype.start=function(s){console.log("Using RetryOperation.start() is deprecated"),this.attempt(s)},n.prototype.start=n.prototype.try,n.prototype.errors=function(){return this._errors},n.prototype.attempts=function(){return this._attempts},n.prototype.mainError=function(){if(this._errors.length===0)return null;for(var s={},i=null,p=0,u=0;u<this._errors.length;u++){var r=this._errors[u],e=r.message,f=(s[e]||0)+1;s[e]=f,f>=p&&(i=r,p=f)}return i}}),Da=N(t=>{B();var l=wa();t.operation=function(n){var s=t.timeouts(n);return new l(s,{forever:n&&(n.forever||n.retries===1/0),unref:n&&n.unref,maxRetryTime:n&&n.maxRetryTime})},t.timeouts=function(n){if(n instanceof Array)return[].concat(n);var s={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var i in n)s[i]=n[i];if(s.minTimeout>s.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var p=[],u=0;u<s.retries;u++)p.push(this.createTimeout(u,s));return n&&n.forever&&!p.length&&p.push(this.createTimeout(u,s)),p.sort(function(r,e){return r-e}),p},t.createTimeout=function(n,s){var i=s.randomize?Math.random()+1:1,p=Math.round(i*Math.max(s.minTimeout,1)*Math.pow(s.factor,n));return p=Math.min(p,s.maxTimeout),p},t.wrap=function(n,s,i){if(s instanceof Array&&(i=s,s=null),!i){i=[];for(var p in n)typeof n[p]=="function"&&i.push(p)}for(var u=0;u<i.length;u++){var r=i[u],e=n[r];n[r]=function(f){var a=t.operation(s),c=Array.prototype.slice.call(arguments,1),o=c.pop();c.push(function(d){a.retry(d)||(d&&(arguments[0]=a.mainError()),o.apply(this,arguments))}),a.attempt(function(){f.apply(n,c)})}.bind(n,e),n[r].options=s}}}),Sa=N((t,l)=>{B(),l.exports=Da()}),Aa=N((t,l)=>{B();var n=Sa();function s(i,p){function u(r,e){var f=p||{},a;"randomize"in f||(f.randomize=!0),a=n.operation(f);function c(h){e(h||new Error("Aborted"))}function o(h,g){if(h.bail){c(h);return}a.retry(h)?f.onRetry&&f.onRetry(h,g):e(a.mainError())}function d(h){var g;try{g=i(c,h)}catch(b){o(b,h);return}Promise.resolve(g).then(r).catch(function(b){o(b,h)})}a.attempt(d)}return new Promise(u)}l.exports=s});B();B();var T0=Ot(Aa()),B0=Ot(he()),P0=Ot(oe());var Ca=N((t,l)=>{B(),l.exports=p,p.sync=u;var n=Z("fs");function s(r,e){var f=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!f||(f=f.split(";"),f.indexOf("")!==-1))return!0;for(var a=0;a<f.length;a++){var c=f[a].toLowerCase();if(c&&r.substr(-c.length).toLowerCase()===c)return!0}return!1}function i(r,e,f){return!r.isSymbolicLink()&&!r.isFile()?!1:s(e,f)}function p(r,e,f){n.stat(r,function(a,c){f(a,a?!1:i(c,r,e))})}function u(r,e){return i(n.statSync(r),r,e)}}),xa=N((t,l)=>{B(),l.exports=s,s.sync=i;var n=Z("fs");function s(r,e,f){n.stat(r,function(a,c){f(a,a?!1:p(c,e))})}function i(r,e){return p(n.statSync(r),e)}function p(r,e){return r.isFile()&&u(r,e)}function u(r,e){var f=r.mode,a=r.uid,c=r.gid,o=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),d=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),h=parseInt("100",8),g=parseInt("010",8),b=parseInt("001",8),E=h|g,y=f&b||f&g&&c===d||f&h&&a===o||f&E&&o===0;return y}}),Fa=N((t,l)=>{B();var n=Z("fs"),s;process.platform==="win32"||global.TESTING_WINDOWS?s=Ca():s=xa(),l.exports=i,i.sync=p;function i(u,r,e){if(typeof r=="function"&&(e=r,r={}),!e){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(f,a){i(u,r||{},function(c,o){c?a(c):f(o)})})}s(u,r||{},function(f,a){f&&(f.code==="EACCES"||r&&r.ignoreErrors)&&(f=null,a=!1),e(f,a)})}function p(u,r){try{return s.sync(u,r||{})}catch(e){if(r&&r.ignoreErrors||e.code==="EACCES")return!1;throw e}}}),ka=N((t,l)=>{B();var n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",s=Z("path"),i=n?";":":",p=Fa(),u=a=>Object.assign(new Error(`not found: ${a}`),{code:"ENOENT"}),r=(a,c)=>{let o=c.colon||i,d=a.match(/\//)||n&&a.match(/\\/)?[""]:[...n?[process.cwd()]:[],...(c.path||process.env.PATH||"").split(o)],h=n?c.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",g=n?h.split(o):[""];return n&&a.indexOf(".")!==-1&&g[0]!==""&&g.unshift(""),{pathEnv:d,pathExt:g,pathExtExe:h}},e=(a,c,o)=>{typeof c=="function"&&(o=c,c={}),c||(c={});let{pathEnv:d,pathExt:h,pathExtExe:g}=r(a,c),b=[],E=D=>new Promise((w,v)=>{if(D===d.length)return c.all&&b.length?w(b):v(u(a));let m=d[D],_=/^".*"$/.test(m)?m.slice(1,-1):m,S=s.join(_,a),A=!_&&/^\.[\\\/]/.test(a)?a.slice(0,2)+S:S;w(y(A,D,0))}),y=(D,w,v)=>new Promise((m,_)=>{if(v===h.length)return m(E(w+1));let S=h[v];p(D+S,{pathExt:g},(A,F)=>{if(!A&&F)if(c.all)b.push(D+S);else return m(D+S);return m(y(D,w,v+1))})});return o?E(0).then(D=>o(null,D),o):E(0)},f=(a,c)=>{c=c||{};let{pathEnv:o,pathExt:d,pathExtExe:h}=r(a,c),g=[];for(let b=0;b<o.length;b++){let E=o[b],y=/^".*"$/.test(E)?E.slice(1,-1):E,D=s.join(y,a),w=!y&&/^\.[\\\/]/.test(a)?a.slice(0,2)+D:D;for(let v=0;v<d.length;v++){let m=w+d[v];try{if(p.sync(m,{pathExt:h}))if(c.all)g.push(m);else return m}catch{}}}if(c.all&&g.length)return g;if(c.nothrow)return null;throw u(a)};l.exports=e,e.sync=f}),fi=N((t,l)=>{"use strict";B();var n=(s={})=>{let i=s.env||process.env;return(s.platform||process.platform)!=="win32"?"PATH":Object.keys(i).reverse().find(p=>p.toUpperCase()==="PATH")||"Path"};l.exports=n,l.exports.default=n}),Oa=N((t,l)=>{"use strict";B();var n=Z("path"),s=ka(),i=fi();function p(r,e){let f=r.options.env||process.env,a=process.cwd(),c=r.options.cwd!=null,o=c&&process.chdir!==void 0&&!process.chdir.disabled;if(o)try{process.chdir(r.options.cwd)}catch{}let d;try{d=s.sync(r.command,{path:f[i({env:f})],pathExt:e?n.delimiter:void 0})}catch{}finally{o&&process.chdir(a)}return d&&(d=n.resolve(c?r.options.cwd:"",d)),d}function u(r){return p(r)||p(r,!0)}l.exports=u}),Ra=N((t,l)=>{"use strict";B();var n=/([()\][%!^"`<>&|;, *?])/g;function s(p){return p=p.replace(n,"^$1"),p}function i(p,u){return p=`${p}`,p=p.replace(/(\\*)"/g,'$1$1\\"'),p=p.replace(/(\\*)$/,"$1$1"),p=`"${p}"`,p=p.replace(n,"^$1"),u&&(p=p.replace(n,"^$1")),p}l.exports.command=s,l.exports.argument=i}),Ta=N((t,l)=>{"use strict";B(),l.exports=/^#!(.*)/}),Ba=N((t,l)=>{"use strict";B();var n=Ta();l.exports=(s="")=>{let i=s.match(n);if(!i)return null;let[p,u]=i[0].replace(/#! ?/,"").split(" "),r=p.split("/").pop();return r==="env"?u:u?`${r} ${u}`:r}}),Pa=N((t,l)=>{"use strict";B();var n=Z("fs"),s=Ba();function i(p){let u=Buffer.alloc(150),r;try{r=n.openSync(p,"r"),n.readSync(r,u,0,150,0),n.closeSync(r)}catch{}return s(u.toString())}l.exports=i}),Ia=N((t,l)=>{"use strict";B();var n=Z("path"),s=Oa(),i=Ra(),p=Pa(),u=process.platform==="win32",r=/\.(?:com|exe)$/i,e=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function f(o){o.file=s(o);let d=o.file&&p(o.file);return d?(o.args.unshift(o.file),o.command=d,s(o)):o.file}function a(o){if(!u)return o;let d=f(o),h=!r.test(d);if(o.options.forceShell||h){let g=e.test(d);o.command=n.normalize(o.command),o.command=i.command(o.command),o.args=o.args.map(E=>i.argument(E,g));let b=[o.command].concat(o.args).join(" ");o.args=["/d","/s","/c",`"${b}"`],o.command=process.env.comspec||"cmd.exe",o.options.windowsVerbatimArguments=!0}return o}function c(o,d,h){d&&!Array.isArray(d)&&(h=d,d=null),d=d?d.slice(0):[],h=Object.assign({},h);let g={command:o,args:d,options:h,file:void 0,original:{command:o,args:d}};return h.shell?g:a(g)}l.exports=c}),La=N((t,l)=>{"use strict";B();var n=process.platform==="win32";function s(r,e){return Object.assign(new Error(`${e} ${r.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${r.command}`,path:r.command,spawnargs:r.args})}function i(r,e){if(!n)return;let f=r.emit;r.emit=function(a,c){if(a==="exit"){let o=p(c,e,"spawn");if(o)return f.call(r,"error",o)}return f.apply(r,arguments)}}function p(r,e){return n&&r===1&&!e.file?s(e.original,"spawn"):null}function u(r,e){return n&&r===1&&!e.file?s(e.original,"spawnSync"):null}l.exports={hookChildProcess:i,verifyENOENT:p,verifyENOENTSync:u,notFoundError:s}}),Na=N((t,l)=>{"use strict";B();var n=Z("child_process"),s=Ia(),i=La();function p(r,e,f){let a=s(r,e,f),c=n.spawn(a.command,a.args,a.options);return i.hookChildProcess(c,a),c}function u(r,e,f){let a=s(r,e,f),c=n.spawnSync(a.command,a.args,a.options);return c.error=c.error||i.verifyENOENTSync(c.status,a),c}l.exports=p,l.exports.spawn=p,l.exports.sync=u,l.exports._parse=s,l.exports._enoent=i}),Ma=N((t,l)=>{"use strict";B(),l.exports=n=>{let s=typeof n=="string"?`
|
29
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:x,destStat:L}=u.checkPathsSync(_,S,"copy",A);if(u.checkParentPathsSync(_,x,S,"copy"),A.filter&&!A.filter(_,S))return;let T=s.dirname(S);return n.existsSync(T)||i(T),e(L,_,S,A)}function e(_,S,A,x){let L=(x.dereference?n.statSync:n.lstatSync)(S);if(L.isDirectory())return E(L,_,S,A,x);if(L.isFile()||L.isCharacterDevice()||L.isBlockDevice())return f(L,_,S,A,x);if(L.isSymbolicLink())return v(_,S,A,x);throw L.isSocket()?new Error(`Cannot copy a socket file: ${S}`):L.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${S}`):new Error(`Unknown file: ${S}`)}function f(_,S,A,x,L){return S?a(_,A,x,L):c(_,A,x,L)}function a(_,S,A,x){if(x.overwrite)return n.unlinkSync(A),c(_,S,A,x);if(x.errorOnExist)throw new Error(`'${A}' already exists`)}function c(_,S,A,x){return n.copyFileSync(S,A),x.preserveTimestamps&&o(_.mode,S,A),y(A,_.mode)}function o(_,S,A){return d(_)&&h(A,_),b(S,A)}function d(_){return(_&128)===0}function h(_,S){return y(_,S|128)}function y(_,S){return n.chmodSync(_,S)}function b(_,S){let A=n.statSync(_);return p(S,A.atime,A.mtime)}function E(_,S,A,x,L){return S?D(A,x,L):g(_.mode,A,x,L)}function g(_,S,A,x){return n.mkdirSync(A),D(S,A,x),y(A,_)}function D(_,S,A){n.readdirSync(_).forEach(x=>w(x,_,S,A))}function w(_,S,A,x){let L=s.join(S,_),T=s.join(A,_);if(x.filter&&!x.filter(L,T))return;let{destStat:F}=u.checkPathsSync(L,T,"copy",x);return e(F,L,T,x)}function v(_,S,A,x){let L=n.readlinkSync(S);if(x.dereference&&(L=s.resolve(process.cwd(),L)),_){let T;try{T=n.readlinkSync(A)}catch(F){if(F.code==="EINVAL"||F.code==="UNKNOWN")return n.symlinkSync(L,A);throw F}if(x.dereference&&(T=s.resolve(process.cwd(),T)),u.isSrcSubdir(L,T))throw new Error(`Cannot copy '${L}' to a subdirectory of itself, '${T}'.`);if(u.isSrcSubdir(T,L))throw new Error(`Cannot overwrite '${T}' with '${L}'.`);return m(L,A)}else return n.symlinkSync(L,A)}function m(_,S){return n.unlinkSync(S),n.symlinkSync(_,S)}l.exports=r}),xr=N((t,l)=>{"use strict";B();var n=Vt().fromCallback;l.exports={copy:n(Qu()),copySync:ta()}}),Qe=N((t,l)=>{"use strict";B();var n=Ct(),s=Vt().fromCallback;function i(u,r){n.rm(u,{recursive:!0,force:!0},r)}function p(u){n.rmSync(u,{recursive:!0,force:!0})}l.exports={remove:s(i),removeSync:p}}),ea=N((t,l)=>{"use strict";B();var n=Vt().fromPromise,s=Ee(),i=Z("path"),p=Xt(),u=Qe(),r=n(async function(f){let a;try{a=await s.readdir(f)}catch{return p.mkdirs(f)}return Promise.all(a.map(c=>u.remove(i.join(f,c))))});function e(f){let a;try{a=s.readdirSync(f)}catch{return p.mkdirsSync(f)}a.forEach(c=>{c=i.join(f,c),u.removeSync(c)})}l.exports={emptyDirSync:e,emptydirSync:e,emptyDir:r,emptydir:r}}),ra=N((t,l)=>{"use strict";B();var n=Vt().fromCallback,s=Z("path"),i=Ct(),p=Xt();function u(e,f){function a(){i.writeFile(e,"",c=>{if(c)return f(c);f()})}i.stat(e,(c,o)=>{if(!c&&o.isFile())return f();let d=s.dirname(e);i.stat(d,(h,y)=>{if(h)return h.code==="ENOENT"?p.mkdirs(d,b=>{if(b)return f(b);a()}):f(h);y.isDirectory()?a():i.readdir(d,b=>{if(b)return f(b)})})})}function r(e){let f;try{f=i.statSync(e)}catch{}if(f&&f.isFile())return;let a=s.dirname(e);try{i.statSync(a).isDirectory()||i.readdirSync(a)}catch(c){if(c&&c.code==="ENOENT")p.mkdirsSync(a);else throw c}i.writeFileSync(e,"")}l.exports={createFile:n(u),createFileSync:r}}),na=N((t,l)=>{"use strict";B();var n=Vt().fromCallback,s=Z("path"),i=Ct(),p=Xt(),u=fe().pathExists,{areIdentical:r}=_e();function e(a,c,o){function d(h,y){i.link(h,y,b=>{if(b)return o(b);o(null)})}i.lstat(c,(h,y)=>{i.lstat(a,(b,E)=>{if(b)return b.message=b.message.replace("lstat","ensureLink"),o(b);if(y&&r(E,y))return o(null);let g=s.dirname(c);u(g,(D,w)=>{if(D)return o(D);if(w)return d(a,c);p.mkdirs(g,v=>{if(v)return o(v);d(a,c)})})})})}function f(a,c){let o;try{o=i.lstatSync(c)}catch{}try{let h=i.lstatSync(a);if(o&&r(h,o))return}catch(h){throw h.message=h.message.replace("lstat","ensureLink"),h}let d=s.dirname(c);return i.existsSync(d)||p.mkdirsSync(d),i.linkSync(a,c)}l.exports={createLink:n(e),createLinkSync:f}}),ia=N((t,l)=>{"use strict";B();var n=Z("path"),s=Ct(),i=fe().pathExists;function p(r,e,f){if(n.isAbsolute(r))return s.lstat(r,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),f(a)):f(null,{toCwd:r,toDst:r}));{let a=n.dirname(e),c=n.join(a,r);return i(c,(o,d)=>o?f(o):d?f(null,{toCwd:c,toDst:r}):s.lstat(r,h=>h?(h.message=h.message.replace("lstat","ensureSymlink"),f(h)):f(null,{toCwd:r,toDst:n.relative(a,r)})))}}function u(r,e){let f;if(n.isAbsolute(r)){if(f=s.existsSync(r),!f)throw new Error("absolute srcpath does not exist");return{toCwd:r,toDst:r}}else{let a=n.dirname(e),c=n.join(a,r);if(f=s.existsSync(c),f)return{toCwd:c,toDst:r};if(f=s.existsSync(r),!f)throw new Error("relative srcpath does not exist");return{toCwd:r,toDst:n.relative(a,r)}}}l.exports={symlinkPaths:p,symlinkPathsSync:u}}),sa=N((t,l)=>{"use strict";B();var n=Ct();function s(p,u,r){if(r=typeof u=="function"?u:r,u=typeof u=="function"?!1:u,u)return r(null,u);n.lstat(p,(e,f)=>{if(e)return r(null,"file");u=f&&f.isDirectory()?"dir":"file",r(null,u)})}function i(p,u){let r;if(u)return u;try{r=n.lstatSync(p)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}l.exports={symlinkType:s,symlinkTypeSync:i}}),oa=N((t,l)=>{"use strict";B();var n=Vt().fromCallback,s=Z("path"),i=Ee(),p=Xt(),u=p.mkdirs,r=p.mkdirsSync,e=ia(),f=e.symlinkPaths,a=e.symlinkPathsSync,c=sa(),o=c.symlinkType,d=c.symlinkTypeSync,h=fe().pathExists,{areIdentical:y}=_e();function b(D,w,v,m){m=typeof v=="function"?v:m,v=typeof v=="function"?!1:v,i.lstat(w,(_,S)=>{!_&&S.isSymbolicLink()?Promise.all([i.stat(D),i.stat(w)]).then(([A,x])=>{if(y(A,x))return m(null);E(D,w,v,m)}):E(D,w,v,m)})}function E(D,w,v,m){f(D,w,(_,S)=>{if(_)return m(_);D=S.toDst,o(S.toCwd,v,(A,x)=>{if(A)return m(A);let L=s.dirname(w);h(L,(T,F)=>{if(T)return m(T);if(F)return i.symlink(D,w,x,m);u(L,O=>{if(O)return m(O);i.symlink(D,w,x,m)})})})})}function g(D,w,v){let m;try{m=i.lstatSync(w)}catch{}if(m&&m.isSymbolicLink()){let A=i.statSync(D),x=i.statSync(w);if(y(A,x))return}let _=a(D,w);D=_.toDst,v=d(_.toCwd,v);let S=s.dirname(w);return i.existsSync(S)||r(S),i.symlinkSync(D,w,v)}l.exports={createSymlink:n(b),createSymlinkSync:g}}),ua=N((t,l)=>{"use strict";B();var{createFile:n,createFileSync:s}=ra(),{createLink:i,createLinkSync:p}=na(),{createSymlink:u,createSymlinkSync:r}=oa();l.exports={createFile:n,createFileSync:s,ensureFile:n,ensureFileSync:s,createLink:i,createLinkSync:p,ensureLink:i,ensureLinkSync:p,createSymlink:u,createSymlinkSync:r,ensureSymlink:u,ensureSymlinkSync:r}}),Fr=N((t,l)=>{B();function n(i,{EOL:p=`
|
30
|
+
`,finalEOL:u=!0,replacer:r=null,spaces:e}={}){let f=u?p:"";return JSON.stringify(i,r,e).replace(/\n/g,p)+f}function s(i){return Buffer.isBuffer(i)&&(i=i.toString("utf8")),i.replace(/^\uFEFF/,"")}l.exports={stringify:n,stripBom:s}}),aa=N((t,l)=>{B();var n;try{n=Ct()}catch{n=Z("fs")}var s=Vt(),{stringify:i,stripBom:p}=Fr();async function u(d,h={}){typeof h=="string"&&(h={encoding:h});let y=h.fs||n,b="throws"in h?h.throws:!0,E=await s.fromCallback(y.readFile)(d,h);E=p(E);let g;try{g=JSON.parse(E,h?h.reviver:null)}catch(D){if(b)throw D.message=`${d}: ${D.message}`,D;return null}return g}var r=s.fromPromise(u);function e(d,h={}){typeof h=="string"&&(h={encoding:h});let y=h.fs||n,b="throws"in h?h.throws:!0;try{let E=y.readFileSync(d,h);return E=p(E),JSON.parse(E,h.reviver)}catch(E){if(b)throw E.message=`${d}: ${E.message}`,E;return null}}async function f(d,h,y={}){let b=y.fs||n,E=i(h,y);await s.fromCallback(b.writeFile)(d,E,y)}var a=s.fromPromise(f);function c(d,h,y={}){let b=y.fs||n,E=i(h,y);return b.writeFileSync(d,E,y)}var o={readFile:r,readFileSync:e,writeFile:a,writeFileSync:c};l.exports=o}),la=N((t,l)=>{"use strict";B();var n=aa();l.exports={readJson:n.readFile,readJsonSync:n.readFileSync,writeJson:n.writeFile,writeJsonSync:n.writeFileSync}}),kr=N((t,l)=>{"use strict";B();var n=Vt().fromCallback,s=Ct(),i=Z("path"),p=Xt(),u=fe().pathExists;function r(f,a,c,o){typeof c=="function"&&(o=c,c="utf8");let d=i.dirname(f);u(d,(h,y)=>{if(h)return o(h);if(y)return s.writeFile(f,a,c,o);p.mkdirs(d,b=>{if(b)return o(b);s.writeFile(f,a,c,o)})})}function e(f,...a){let c=i.dirname(f);if(s.existsSync(c))return s.writeFileSync(f,...a);p.mkdirsSync(c),s.writeFileSync(f,...a)}l.exports={outputFile:n(r),outputFileSync:e}}),ca=N((t,l)=>{"use strict";B();var{stringify:n}=Fr(),{outputFile:s}=kr();async function i(p,u,r={}){let e=n(u,r);await s(p,e,r)}l.exports=i}),ha=N((t,l)=>{"use strict";B();var{stringify:n}=Fr(),{outputFileSync:s}=kr();function i(p,u,r){let e=n(u,r);s(p,e,r)}l.exports=i}),fa=N((t,l)=>{"use strict";B();var n=Vt().fromPromise,s=la();s.outputJson=n(ca()),s.outputJsonSync=ha(),s.outputJSON=s.outputJson,s.outputJSONSync=s.outputJsonSync,s.writeJSON=s.writeJson,s.writeJSONSync=s.writeJsonSync,s.readJSON=s.readJson,s.readJSONSync=s.readJsonSync,l.exports=s}),pa=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=xr().copy,p=Qe().remove,u=Xt().mkdirp,r=fe().pathExists,e=_e();function f(h,y,b,E){typeof b=="function"&&(E=b,b={}),b=b||{};let g=b.overwrite||b.clobber||!1;e.checkPaths(h,y,"move",b,(D,w)=>{if(D)return E(D);let{srcStat:v,isChangingCase:m=!1}=w;e.checkParentPaths(h,v,y,"move",_=>{if(_)return E(_);if(a(y))return c(h,y,g,m,E);u(s.dirname(y),S=>S?E(S):c(h,y,g,m,E))})})}function a(h){let y=s.dirname(h);return s.parse(y).root===y}function c(h,y,b,E,g){if(E)return o(h,y,b,g);if(b)return p(y,D=>D?g(D):o(h,y,b,g));r(y,(D,w)=>D?g(D):w?g(new Error("dest already exists.")):o(h,y,b,g))}function o(h,y,b,E){n.rename(h,y,g=>g?g.code!=="EXDEV"?E(g):d(h,y,b,E):E())}function d(h,y,b,E){i(h,y,{overwrite:b,errorOnExist:!0,preserveTimestamps:!0},g=>g?E(g):p(h,E))}l.exports=f}),da=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=xr().copySync,p=Qe().removeSync,u=Xt().mkdirpSync,r=_e();function e(d,h,y){y=y||{};let b=y.overwrite||y.clobber||!1,{srcStat:E,isChangingCase:g=!1}=r.checkPathsSync(d,h,"move",y);return r.checkParentPathsSync(d,E,h,"move"),f(h)||u(s.dirname(h)),a(d,h,b,g)}function f(d){let h=s.dirname(d);return s.parse(h).root===h}function a(d,h,y,b){if(b)return c(d,h,y);if(y)return p(h),c(d,h,y);if(n.existsSync(h))throw new Error("dest already exists.");return c(d,h,y)}function c(d,h,y){try{n.renameSync(d,h)}catch(b){if(b.code!=="EXDEV")throw b;return o(d,h,y)}}function o(d,h,y){return i(d,h,{overwrite:y,errorOnExist:!0,preserveTimestamps:!0}),p(d)}l.exports=e}),ma=N((t,l)=>{"use strict";B();var n=Vt().fromCallback;l.exports={move:n(pa()),moveSync:da()}}),oe=N((t,l)=>{"use strict";B(),l.exports={...Ee(),...xr(),...ea(),...ua(),...fa(),...Xt(),...ma(),...kr(),...fe(),...Qe()}});B();var v0=Ot(oe());B();var D0=Ot(oe());var wa=N((t,l)=>{B();function n(s,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(s)),this._timeouts=s,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}l.exports=n,n.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},n.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},n.prototype.retry=function(s){if(this._timeout&&clearTimeout(this._timeout),!s)return!1;var i=new Date().getTime();if(s&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(s),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(s);var p=this._timeouts.shift();if(p===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),p=this._cachedTimeouts.slice(-1);else return!1;var u=this;return this._timer=setTimeout(function(){u._attempts++,u._operationTimeoutCb&&(u._timeout=setTimeout(function(){u._operationTimeoutCb(u._attempts)},u._operationTimeout),u._options.unref&&u._timeout.unref()),u._fn(u._attempts)},p),this._options.unref&&this._timer.unref(),!0},n.prototype.attempt=function(s,i){this._fn=s,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var p=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){p._operationTimeoutCb()},p._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},n.prototype.try=function(s){console.log("Using RetryOperation.try() is deprecated"),this.attempt(s)},n.prototype.start=function(s){console.log("Using RetryOperation.start() is deprecated"),this.attempt(s)},n.prototype.start=n.prototype.try,n.prototype.errors=function(){return this._errors},n.prototype.attempts=function(){return this._attempts},n.prototype.mainError=function(){if(this._errors.length===0)return null;for(var s={},i=null,p=0,u=0;u<this._errors.length;u++){var r=this._errors[u],e=r.message,f=(s[e]||0)+1;s[e]=f,f>=p&&(i=r,p=f)}return i}}),Da=N(t=>{B();var l=wa();t.operation=function(n){var s=t.timeouts(n);return new l(s,{forever:n&&(n.forever||n.retries===1/0),unref:n&&n.unref,maxRetryTime:n&&n.maxRetryTime})},t.timeouts=function(n){if(n instanceof Array)return[].concat(n);var s={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var i in n)s[i]=n[i];if(s.minTimeout>s.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var p=[],u=0;u<s.retries;u++)p.push(this.createTimeout(u,s));return n&&n.forever&&!p.length&&p.push(this.createTimeout(u,s)),p.sort(function(r,e){return r-e}),p},t.createTimeout=function(n,s){var i=s.randomize?Math.random()+1:1,p=Math.round(i*Math.max(s.minTimeout,1)*Math.pow(s.factor,n));return p=Math.min(p,s.maxTimeout),p},t.wrap=function(n,s,i){if(s instanceof Array&&(i=s,s=null),!i){i=[];for(var p in n)typeof n[p]=="function"&&i.push(p)}for(var u=0;u<i.length;u++){var r=i[u],e=n[r];n[r]=function(f){var a=t.operation(s),c=Array.prototype.slice.call(arguments,1),o=c.pop();c.push(function(d){a.retry(d)||(d&&(arguments[0]=a.mainError()),o.apply(this,arguments))}),a.attempt(function(){f.apply(n,c)})}.bind(n,e),n[r].options=s}}}),Sa=N((t,l)=>{B(),l.exports=Da()}),Aa=N((t,l)=>{B();var n=Sa();function s(i,p){function u(r,e){var f=p||{},a;"randomize"in f||(f.randomize=!0),a=n.operation(f);function c(h){e(h||new Error("Aborted"))}function o(h,y){if(h.bail){c(h);return}a.retry(h)?f.onRetry&&f.onRetry(h,y):e(a.mainError())}function d(h){var y;try{y=i(c,h)}catch(b){o(b,h);return}Promise.resolve(y).then(r).catch(function(b){o(b,h)})}a.attempt(d)}return new Promise(u)}l.exports=s});B();B();var T0=Ot(Aa()),B0=Ot(he()),P0=Ot(oe());var Ca=N((t,l)=>{B(),l.exports=p,p.sync=u;var n=Z("fs");function s(r,e){var f=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!f||(f=f.split(";"),f.indexOf("")!==-1))return!0;for(var a=0;a<f.length;a++){var c=f[a].toLowerCase();if(c&&r.substr(-c.length).toLowerCase()===c)return!0}return!1}function i(r,e,f){return!r.isSymbolicLink()&&!r.isFile()?!1:s(e,f)}function p(r,e,f){n.stat(r,function(a,c){f(a,a?!1:i(c,r,e))})}function u(r,e){return i(n.statSync(r),r,e)}}),xa=N((t,l)=>{B(),l.exports=s,s.sync=i;var n=Z("fs");function s(r,e,f){n.stat(r,function(a,c){f(a,a?!1:p(c,e))})}function i(r,e){return p(n.statSync(r),e)}function p(r,e){return r.isFile()&&u(r,e)}function u(r,e){var f=r.mode,a=r.uid,c=r.gid,o=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),d=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),h=parseInt("100",8),y=parseInt("010",8),b=parseInt("001",8),E=h|y,g=f&b||f&y&&c===d||f&h&&a===o||f&E&&o===0;return g}}),Fa=N((t,l)=>{B();var n=Z("fs"),s;process.platform==="win32"||global.TESTING_WINDOWS?s=Ca():s=xa(),l.exports=i,i.sync=p;function i(u,r,e){if(typeof r=="function"&&(e=r,r={}),!e){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(f,a){i(u,r||{},function(c,o){c?a(c):f(o)})})}s(u,r||{},function(f,a){f&&(f.code==="EACCES"||r&&r.ignoreErrors)&&(f=null,a=!1),e(f,a)})}function p(u,r){try{return s.sync(u,r||{})}catch(e){if(r&&r.ignoreErrors||e.code==="EACCES")return!1;throw e}}}),ka=N((t,l)=>{B();var n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",s=Z("path"),i=n?";":":",p=Fa(),u=a=>Object.assign(new Error(`not found: ${a}`),{code:"ENOENT"}),r=(a,c)=>{let o=c.colon||i,d=a.match(/\//)||n&&a.match(/\\/)?[""]:[...n?[process.cwd()]:[],...(c.path||process.env.PATH||"").split(o)],h=n?c.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",y=n?h.split(o):[""];return n&&a.indexOf(".")!==-1&&y[0]!==""&&y.unshift(""),{pathEnv:d,pathExt:y,pathExtExe:h}},e=(a,c,o)=>{typeof c=="function"&&(o=c,c={}),c||(c={});let{pathEnv:d,pathExt:h,pathExtExe:y}=r(a,c),b=[],E=D=>new Promise((w,v)=>{if(D===d.length)return c.all&&b.length?w(b):v(u(a));let m=d[D],_=/^".*"$/.test(m)?m.slice(1,-1):m,S=s.join(_,a),A=!_&&/^\.[\\\/]/.test(a)?a.slice(0,2)+S:S;w(g(A,D,0))}),g=(D,w,v)=>new Promise((m,_)=>{if(v===h.length)return m(E(w+1));let S=h[v];p(D+S,{pathExt:y},(A,x)=>{if(!A&&x)if(c.all)b.push(D+S);else return m(D+S);return m(g(D,w,v+1))})});return o?E(0).then(D=>o(null,D),o):E(0)},f=(a,c)=>{c=c||{};let{pathEnv:o,pathExt:d,pathExtExe:h}=r(a,c),y=[];for(let b=0;b<o.length;b++){let E=o[b],g=/^".*"$/.test(E)?E.slice(1,-1):E,D=s.join(g,a),w=!g&&/^\.[\\\/]/.test(a)?a.slice(0,2)+D:D;for(let v=0;v<d.length;v++){let m=w+d[v];try{if(p.sync(m,{pathExt:h}))if(c.all)y.push(m);else return m}catch{}}}if(c.all&&y.length)return y;if(c.nothrow)return null;throw u(a)};l.exports=e,e.sync=f}),fi=N((t,l)=>{"use strict";B();var n=(s={})=>{let i=s.env||process.env;return(s.platform||process.platform)!=="win32"?"PATH":Object.keys(i).reverse().find(p=>p.toUpperCase()==="PATH")||"Path"};l.exports=n,l.exports.default=n}),Oa=N((t,l)=>{"use strict";B();var n=Z("path"),s=ka(),i=fi();function p(r,e){let f=r.options.env||process.env,a=process.cwd(),c=r.options.cwd!=null,o=c&&process.chdir!==void 0&&!process.chdir.disabled;if(o)try{process.chdir(r.options.cwd)}catch{}let d;try{d=s.sync(r.command,{path:f[i({env:f})],pathExt:e?n.delimiter:void 0})}catch{}finally{o&&process.chdir(a)}return d&&(d=n.resolve(c?r.options.cwd:"",d)),d}function u(r){return p(r)||p(r,!0)}l.exports=u}),Ra=N((t,l)=>{"use strict";B();var n=/([()\][%!^"`<>&|;, *?])/g;function s(p){return p=p.replace(n,"^$1"),p}function i(p,u){return p=`${p}`,p=p.replace(/(\\*)"/g,'$1$1\\"'),p=p.replace(/(\\*)$/,"$1$1"),p=`"${p}"`,p=p.replace(n,"^$1"),u&&(p=p.replace(n,"^$1")),p}l.exports.command=s,l.exports.argument=i}),Ta=N((t,l)=>{"use strict";B(),l.exports=/^#!(.*)/}),Ba=N((t,l)=>{"use strict";B();var n=Ta();l.exports=(s="")=>{let i=s.match(n);if(!i)return null;let[p,u]=i[0].replace(/#! ?/,"").split(" "),r=p.split("/").pop();return r==="env"?u:u?`${r} ${u}`:r}}),Pa=N((t,l)=>{"use strict";B();var n=Z("fs"),s=Ba();function i(p){let u=Buffer.alloc(150),r;try{r=n.openSync(p,"r"),n.readSync(r,u,0,150,0),n.closeSync(r)}catch{}return s(u.toString())}l.exports=i}),La=N((t,l)=>{"use strict";B();var n=Z("path"),s=Oa(),i=Ra(),p=Pa(),u=process.platform==="win32",r=/\.(?:com|exe)$/i,e=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function f(o){o.file=s(o);let d=o.file&&p(o.file);return d?(o.args.unshift(o.file),o.command=d,s(o)):o.file}function a(o){if(!u)return o;let d=f(o),h=!r.test(d);if(o.options.forceShell||h){let y=e.test(d);o.command=n.normalize(o.command),o.command=i.command(o.command),o.args=o.args.map(E=>i.argument(E,y));let b=[o.command].concat(o.args).join(" ");o.args=["/d","/s","/c",`"${b}"`],o.command=process.env.comspec||"cmd.exe",o.options.windowsVerbatimArguments=!0}return o}function c(o,d,h){d&&!Array.isArray(d)&&(h=d,d=null),d=d?d.slice(0):[],h=Object.assign({},h);let y={command:o,args:d,options:h,file:void 0,original:{command:o,args:d}};return h.shell?y:a(y)}l.exports=c}),Ia=N((t,l)=>{"use strict";B();var n=process.platform==="win32";function s(r,e){return Object.assign(new Error(`${e} ${r.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${r.command}`,path:r.command,spawnargs:r.args})}function i(r,e){if(!n)return;let f=r.emit;r.emit=function(a,c){if(a==="exit"){let o=p(c,e,"spawn");if(o)return f.call(r,"error",o)}return f.apply(r,arguments)}}function p(r,e){return n&&r===1&&!e.file?s(e.original,"spawn"):null}function u(r,e){return n&&r===1&&!e.file?s(e.original,"spawnSync"):null}l.exports={hookChildProcess:i,verifyENOENT:p,verifyENOENTSync:u,notFoundError:s}}),Na=N((t,l)=>{"use strict";B();var n=Z("child_process"),s=La(),i=Ia();function p(r,e,f){let a=s(r,e,f),c=n.spawn(a.command,a.args,a.options);return i.hookChildProcess(c,a),c}function u(r,e,f){let a=s(r,e,f),c=n.spawnSync(a.command,a.args,a.options);return c.error=c.error||i.verifyENOENTSync(c.status,a),c}l.exports=p,l.exports.spawn=p,l.exports.sync=u,l.exports._parse=s,l.exports._enoent=i}),ja=N((t,l)=>{"use strict";B(),l.exports=n=>{let s=typeof n=="string"?`
|
31
31
|
`:`
|
32
|
-
`.charCodeAt(),i=typeof n=="string"?"\r":"\r".charCodeAt();return n[n.length-1]===s&&(n=n.slice(0,n.length-1)),n[n.length-1]===i&&(n=n.slice(0,n.length-1)),n}}),
|
32
|
+
`.charCodeAt(),i=typeof n=="string"?"\r":"\r".charCodeAt();return n[n.length-1]===s&&(n=n.slice(0,n.length-1)),n[n.length-1]===i&&(n=n.slice(0,n.length-1)),n}}),Ma=N((t,l)=>{"use strict";B();var n=Z("path"),s=fi(),i=p=>{p={cwd:process.cwd(),path:process.env[s()],execPath:process.execPath,...p};let u,r=n.resolve(p.cwd),e=[];for(;u!==r;)e.push(n.join(r,"node_modules/.bin")),u=r,r=n.resolve(r,"..");let f=n.resolve(p.cwd,p.execPath,"..");return e.push(f),e.concat(p.path).join(n.delimiter)};l.exports=i,l.exports.default=i,l.exports.env=p=>{p={env:process.env,...p};let u={...p.env},r=s({env:u});return p.path=u[r],u[r]=l.exports(p),u}}),$a=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.SIGNALS=void 0;var l=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];t.SIGNALS=l}),pi=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.SIGRTMAX=t.getRealtimeSignals=void 0;var l=function(){let p=i-s+1;return Array.from({length:p},n)};t.getRealtimeSignals=l;var n=function(p,u){return{name:`SIGRT${u+1}`,number:s+u,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},s=34,i=64;t.SIGRTMAX=i}),Ha=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.getSignals=void 0;var l=Z("os"),n=$a(),s=pi(),i=function(){let u=(0,s.getRealtimeSignals)();return[...n.SIGNALS,...u].map(p)};t.getSignals=i;var p=function({name:u,number:r,description:e,action:f,forced:a=!1,standard:c}){let{signals:{[u]:o}}=l.constants,d=o!==void 0;return{name:u,number:d?o:r,description:e,supported:d,action:f,forced:a,standard:c}}}),Ua=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.signalsByNumber=t.signalsByName=void 0;var l=Z("os"),n=Ha(),s=pi(),i=function(){return(0,n.getSignals)().reduce(p,{})},p=function(c,{name:o,number:d,description:h,supported:y,action:b,forced:E,standard:g}){return{...c,[o]:{name:o,number:d,description:h,supported:y,action:b,forced:E,standard:g}}},u=i();t.signalsByName=u;var r=function(){let c=(0,n.getSignals)(),o=s.SIGRTMAX+1,d=Array.from({length:o},(h,y)=>e(y,c));return Object.assign({},...d)},e=function(c,o){let d=f(c,o);if(d===void 0)return{};let{name:h,description:y,supported:b,action:E,forced:g,standard:D}=d;return{[c]:{name:h,number:c,description:y,supported:b,action:E,forced:g,standard:D}}},f=function(c,o){let d=o.find(({name:h})=>l.constants.signals[h]===c);return d!==void 0?d:o.find(h=>h.number===c)},a=r();t.signalsByNumber=a}),Ga=N((t,l)=>{"use strict";B();var{signalsByName:n}=Ua(),s=({timedOut:p,timeout:u,errorCode:r,signal:e,signalDescription:f,exitCode:a,isCanceled:c})=>p?`timed out after ${u} milliseconds`:c?"was canceled":r!==void 0?`failed with ${r}`:e!==void 0?`was killed with ${e} (${f})`:a!==void 0?`failed with exit code ${a}`:"failed",i=({stdout:p,stderr:u,all:r,error:e,signal:f,exitCode:a,command:c,escapedCommand:o,timedOut:d,isCanceled:h,killed:y,parsed:{options:{timeout:b}}})=>{a=a===null?void 0:a,f=f===null?void 0:f;let E=f===void 0?void 0:n[f].description,g=e&&e.code,D=`Command ${s({timedOut:d,timeout:b,errorCode:g,signal:f,signalDescription:E,exitCode:a,isCanceled:h})}: ${c}`,w=Object.prototype.toString.call(e)==="[object Error]",v=w?`${D}
|
33
33
|
${e.message}`:D,m=[v,u,p].filter(Boolean).join(`
|
34
|
-
`);return w?(e.originalMessage=e.message,e.message=m):e=new Error(m),e.shortMessage=v,e.command=c,e.escapedCommand=o,e.exitCode=a,e.signal=f,e.signalDescription=E,e.stdout=p,e.stderr=u,r!==void 0&&(e.all=r),"bufferedData"in e&&delete e.bufferedData,e.failed=!0,e.timedOut=!!d,e.isCanceled=h,e.killed=g&&!d,e};l.exports=i}),qa=N((t,l)=>{"use strict";B();var n=["stdin","stdout","stderr"],s=p=>n.some(u=>p[u]!==void 0),i=p=>{if(!p)return;let{stdio:u}=p;if(u===void 0)return n.map(e=>p[e]);if(s(p))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${n.map(e=>`\`${e}\``).join(", ")}`);if(typeof u=="string")return u;if(!Array.isArray(u))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof u}\``);let r=Math.max(u.length,n.length);return Array.from({length:r},(e,f)=>u[f])};l.exports=i,l.exports.node=p=>{let u=i(p);return u==="ipc"?"ipc":u===void 0||typeof u=="string"?[u,u,u,"ipc"]:u.includes("ipc")?u:[...u,"ipc"]}}),za=N((t,l)=>{"use strict";B();var n=Z("os"),s=Ke(),i=1e3*5,p=(g,b="SIGTERM",E={})=>{let y=g(b);return u(g,b,E,y),y},u=(g,b,E,y)=>{if(!r(b,E,y))return;let D=f(E),w=setTimeout(()=>{g("SIGKILL")},D);w.unref&&w.unref()},r=(g,{forceKillAfterTimeout:b},E)=>e(g)&&b!==!1&&E,e=g=>g===n.constants.signals.SIGTERM||typeof g=="string"&&g.toUpperCase()==="SIGTERM",f=({forceKillAfterTimeout:g=!0})=>{if(g===!0)return i;if(!Number.isFinite(g)||g<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${g}\` (${typeof g})`);return g},a=(g,b)=>{g.kill()&&(b.isCanceled=!0)},c=(g,b,E)=>{g.kill(b),E(Object.assign(new Error("Timed out"),{timedOut:!0,signal:b}))},o=(g,{timeout:b,killSignal:E="SIGTERM"},y)=>{if(b===0||b===void 0)return y;let D,w=new Promise((m,_)=>{D=setTimeout(()=>{c(g,E,_)},b)}),v=y.finally(()=>{clearTimeout(D)});return Promise.race([w,v])},d=({timeout:g})=>{if(g!==void 0&&(!Number.isFinite(g)||g<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${g}\` (${typeof g})`)},h=async(g,{cleanup:b,detached:E},y)=>{if(!b||E)return y;let D=s(()=>{g.kill()});return y.finally(()=>{D()})};l.exports={spawnedKill:p,spawnedCancel:a,setupTimeout:o,validateTimeout:d,setExitHandler:h}}),Wa=N((t,l)=>{"use strict";B();var n=s=>s!==null&&typeof s=="object"&&typeof s.pipe=="function";n.writable=s=>n(s)&&s.writable!==!1&&typeof s._write=="function"&&typeof s._writableState=="object",n.readable=s=>n(s)&&s.readable!==!1&&typeof s._read=="function"&&typeof s._readableState=="object",n.duplex=s=>n.writable(s)&&n.readable(s),n.transform=s=>n.duplex(s)&&typeof s._transform=="function",l.exports=n}),Va=N((t,l)=>{"use strict";B();var{PassThrough:n}=Z("stream");l.exports=s=>{s={...s};let{array:i}=s,{encoding:p}=s,u=p==="buffer",r=!1;i?r=!(p||u):p=p||"utf8",u&&(p=null);let e=new n({objectMode:r});p&&e.setEncoding(p);let f=0,a=[];return e.on("data",c=>{a.push(c),r?f=a.length:f+=c.length}),e.getBufferedValue=()=>i?a:u?Buffer.concat(a,f):a.join(""),e.getBufferedLength=()=>f,e}}),Ya=N((t,l)=>{"use strict";B();var{constants:n}=Z("buffer"),s=Z("stream"),{promisify:i}=Z("util"),p=Va(),u=i(s.pipeline),r=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function e(f,a){if(!f)throw new Error("Expected a stream");a={maxBuffer:1/0,...a};let{maxBuffer:c}=a,o=p(a);return await new Promise((d,h)=>{let g=b=>{b&&o.getBufferedLength()<=n.MAX_LENGTH&&(b.bufferedData=o.getBufferedValue()),h(b)};(async()=>{try{await u(f,o),d()}catch(b){g(b)}})(),o.on("data",()=>{o.getBufferedLength()>c&&g(new r)})}),o.getBufferedValue()}l.exports=e,l.exports.buffer=(f,a)=>e(f,{...a,encoding:"buffer"}),l.exports.array=(f,a)=>e(f,{...a,array:!0}),l.exports.MaxBufferError=r}),Ka=N((t,l)=>{"use strict";B();var{PassThrough:n}=Z("stream");l.exports=function(){var s=[],i=new n({objectMode:!0});return i.setMaxListeners(0),i.add=p,i.isEmpty=u,i.on("unpipe",r),Array.prototype.slice.call(arguments).forEach(p),i;function p(e){return Array.isArray(e)?(e.forEach(p),this):(s.push(e),e.once("end",r.bind(null,e)),e.once("error",i.emit.bind(i,"error")),e.pipe(i,{end:!1}),this)}function u(){return s.length==0}function r(e){s=s.filter(function(f){return f!==e}),!s.length&&i.readable&&i.end()}}}),Ja=N((t,l)=>{"use strict";B();var n=Wa(),s=Ya(),i=Ka(),p=(c,o)=>{o===void 0||c.stdin===void 0||(n(o)?o.pipe(c.stdin):c.stdin.end(o))},u=(c,{all:o})=>{if(!o||!c.stdout&&!c.stderr)return;let d=i();return c.stdout&&d.add(c.stdout),c.stderr&&d.add(c.stderr),d},r=async(c,o)=>{if(c){c.destroy();try{return await o}catch(d){return d.bufferedData}}},e=(c,{encoding:o,buffer:d,maxBuffer:h})=>{if(!(!c||!d))return o?s(c,{encoding:o,maxBuffer:h}):s.buffer(c,{maxBuffer:h})},f=async({stdout:c,stderr:o,all:d},{encoding:h,buffer:g,maxBuffer:b},E)=>{let y=e(c,{encoding:h,buffer:g,maxBuffer:b}),D=e(o,{encoding:h,buffer:g,maxBuffer:b}),w=e(d,{encoding:h,buffer:g,maxBuffer:b*2});try{return await Promise.all([E,y,D,w])}catch(v){return Promise.all([{error:v,signal:v.signal,timedOut:v.timedOut},r(c,y),r(o,D),r(d,w)])}},a=({input:c})=>{if(n(c))throw new TypeError("The `input` option cannot be a stream in sync mode")};l.exports={handleInput:p,makeAllStream:u,getSpawnedResult:f,validateInputSync:a}}),Za=N((t,l)=>{"use strict";B();var n=(async()=>{})().constructor.prototype,s=["then","catch","finally"].map(u=>[u,Reflect.getOwnPropertyDescriptor(n,u)]),i=(u,r)=>{for(let[e,f]of s){let a=typeof r=="function"?(...c)=>Reflect.apply(f.value,r(),c):f.value.bind(r);Reflect.defineProperty(u,e,{...f,value:a})}return u},p=u=>new Promise((r,e)=>{u.on("exit",(f,a)=>{r({exitCode:f,signal:a})}),u.on("error",f=>{e(f)}),u.stdin&&u.stdin.on("error",f=>{e(f)})});l.exports={mergePromise:i,getSpawnedPromise:p}}),Xa=N((t,l)=>{"use strict";B();var n=(a,c=[])=>Array.isArray(c)?[a,...c]:[a],s=/^[\w.-]+$/,i=/"/g,p=a=>typeof a!="string"||s.test(a)?a:`"${a.replace(i,'\\"')}"`,u=(a,c)=>n(a,c).join(" "),r=(a,c)=>n(a,c).map(o=>p(o)).join(" "),e=/ +/g,f=a=>{let c=[];for(let o of a.trim().split(e)){let d=c[c.length-1];d&&d.endsWith("\\")?c[c.length-1]=`${d.slice(0,-1)} ${o}`:c.push(o)}return c};l.exports={joinCommand:u,getEscapedCommand:r,parseCommand:f}}),Qa=N((t,l)=>{"use strict";B();var n=Z("path"),s=Z("child_process"),i=Na(),p=Ma(),u=ja(),r=Ye(),e=Ga(),f=qa(),{spawnedKill:a,spawnedCancel:c,setupTimeout:o,validateTimeout:d,setExitHandler:h}=za(),{handleInput:g,getSpawnedResult:b,makeAllStream:E,validateInputSync:y}=Ja(),{mergePromise:D,getSpawnedPromise:w}=Za(),{joinCommand:v,parseCommand:m,getEscapedCommand:_}=Xa(),S=1e3*1e3*100,A=({env:O,extendEnv:x,preferLocal:k,localDir:U,execPath:L})=>{let q=x?{...process.env,...O}:O;return k?u.env({env:q,cwd:U,execPath:L}):q},F=(O,x,k={})=>{let U=i._parse(O,x,k);return O=U.command,x=U.args,k=U.options,k={maxBuffer:S,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:k.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...k},k.env=A(k),k.stdio=f(k),process.platform==="win32"&&n.basename(O,".exe")==="cmd"&&x.unshift("/q"),{file:O,args:x,options:k,parsed:U}},P=(O,x,k)=>typeof x!="string"&&!Buffer.isBuffer(x)?k===void 0?void 0:"":O.stripFinalNewline?p(x):x,T=(O,x,k)=>{let U=F(O,x,k),L=v(O,x),q=_(O,x);d(U.options);let V;try{V=s.spawn(U.file,U.args,U.options)}catch(G){let Q=new s.ChildProcess,j=Promise.reject(e({error:G,stdout:"",stderr:"",all:"",command:L,escapedCommand:q,parsed:U,timedOut:!1,isCanceled:!1,killed:!1}));return D(Q,j)}let et=w(V),I=o(V,U.options,et),M=h(V,U.options,I),R={isCanceled:!1};V.kill=a.bind(null,V.kill.bind(V)),V.cancel=c.bind(null,V,R);let J=r(async()=>{let[{error:G,exitCode:Q,signal:j,timedOut:W},tt,ot,ct]=await b(V,U.options,M),gt=P(U.options,tt),mt=P(U.options,ot),$=P(U.options,ct);if(G||Q!==0||j!==null){let Y=e({error:G,exitCode:Q,signal:j,stdout:gt,stderr:mt,all:$,command:L,escapedCommand:q,parsed:U,timedOut:W,isCanceled:R.isCanceled,killed:V.killed});if(!U.options.reject)return Y;throw Y}return{command:L,escapedCommand:q,exitCode:0,stdout:gt,stderr:mt,all:$,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return g(V,U.options.input),V.all=E(V,U.options),D(V,J)};l.exports=T,l.exports.sync=(O,x,k)=>{let U=F(O,x,k),L=v(O,x),q=_(O,x);y(U.options);let V;try{V=s.spawnSync(U.file,U.args,U.options)}catch(M){throw e({error:M,stdout:"",stderr:"",all:"",command:L,escapedCommand:q,parsed:U,timedOut:!1,isCanceled:!1,killed:!1})}let et=P(U.options,V.stdout,V.error),I=P(U.options,V.stderr,V.error);if(V.error||V.status!==0||V.signal!==null){let M=e({stdout:et,stderr:I,error:V.error,signal:V.signal,exitCode:V.status,command:L,escapedCommand:q,parsed:U,timedOut:V.error&&V.error.code==="ETIMEDOUT",isCanceled:!1,killed:V.signal!==null});if(!U.options.reject)return M;throw M}return{command:L,escapedCommand:q,exitCode:0,stdout:et,stderr:I,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},l.exports.command=(O,x)=>{let[k,...U]=m(O);return T(k,U,x)},l.exports.commandSync=(O,x)=>{let[k,...U]=m(O);return T.sync(k,U,x)},l.exports.node=(O,x,k={})=>{x&&!Array.isArray(x)&&typeof x=="object"&&(k=x,x=[]);let U=f.node(k),L=process.execArgv.filter(et=>!et.startsWith("--inspect")),{nodePath:q=process.execPath,nodeOptions:V=L}=k;return T(q,[...V,O,...Array.isArray(x)?x:[]],{...k,stdin:void 0,stdout:void 0,stderr:void 0,stdio:U,shell:!1})}});B();var M0=Ot(Qa());B();var z0=Ot(oe()),W0=Ot(he());B();var Or=Wt(require("fs"),1),Te=Wt(require("path"),1);B();function Rr({target:t,cwd:l,contentCheck:n}){let s=Te.default.parse(l).root,i=!1;for(;!i&&l!==s;){if(n)try{let p=Or.default.readFileSync(Te.default.join(l,t)).toString();if(n(p)){i=!0;break}}catch{}else if(Or.default.existsSync(Te.default.join(l,t))){i=!0;break}l=Te.default.dirname(l)}return i?l:null}var or=Wt(require("path"),1),tl=N((t,l)=>{B();function n(s){return l.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},l.exports.__esModule=!0,l.exports.default=l.exports,n(s)}l.exports=n,l.exports.__esModule=!0,l.exports.default=l.exports}),el=N((t,l)=>{B();var n=tl().default;function s(){"use strict";l.exports=s=function(){return i},l.exports.__esModule=!0,l.exports.default=l.exports;var i={},p=Object.prototype,u=p.hasOwnProperty,r=typeof Symbol=="function"?Symbol:{},e=r.iterator||"@@iterator",f=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(x,k,U){return Object.defineProperty(x,k,{value:U,enumerable:!0,configurable:!0,writable:!0}),x[k]}try{c({},"")}catch{c=function(x,k,U){return x[k]=U}}function o(x,k,U,L){var q=k&&k.prototype instanceof g?k:g,V=Object.create(q.prototype),et=new P(L||[]);return V._invoke=function(I,M,R){var J="suspendedStart";return function(G,Q){if(J==="executing")throw new Error("Generator is already running");if(J==="completed"){if(G==="throw")throw Q;return O()}for(R.method=G,R.arg=Q;;){var j=R.delegate;if(j){var W=S(j,R);if(W){if(W===h)continue;return W}}if(R.method==="next")R.sent=R._sent=R.arg;else if(R.method==="throw"){if(J==="suspendedStart")throw J="completed",R.arg;R.dispatchException(R.arg)}else R.method==="return"&&R.abrupt("return",R.arg);J="executing";var tt=d(I,M,R);if(tt.type==="normal"){if(J=R.done?"completed":"suspendedYield",tt.arg===h)continue;return{value:tt.arg,done:R.done}}tt.type==="throw"&&(J="completed",R.method="throw",R.arg=tt.arg)}}}(x,U,et),V}function d(x,k,U){try{return{type:"normal",arg:x.call(k,U)}}catch(L){return{type:"throw",arg:L}}}i.wrap=o;var h={};function g(){}function b(){}function E(){}var y={};c(y,e,function(){return this});var D=Object.getPrototypeOf,w=D&&D(D(T([])));w&&w!==p&&u.call(w,e)&&(y=w);var v=E.prototype=g.prototype=Object.create(y);function m(x){["next","throw","return"].forEach(function(k){c(x,k,function(U){return this._invoke(k,U)})})}function _(x,k){function U(q,V,et,I){var M=d(x[q],x,V);if(M.type!=="throw"){var R=M.arg,J=R.value;return J&&n(J)=="object"&&u.call(J,"__await")?k.resolve(J.__await).then(function(G){U("next",G,et,I)},function(G){U("throw",G,et,I)}):k.resolve(J).then(function(G){R.value=G,et(R)},function(G){return U("throw",G,et,I)})}I(M.arg)}var L;this._invoke=function(q,V){function et(){return new k(function(I,M){U(q,V,I,M)})}return L=L?L.then(et,et):et()}}function S(x,k){var U=x.iterator[k.method];if(U===void 0){if(k.delegate=null,k.method==="throw"){if(x.iterator.return&&(k.method="return",k.arg=void 0,S(x,k),k.method==="throw"))return h;k.method="throw",k.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var L=d(U,x.iterator,k.arg);if(L.type==="throw")return k.method="throw",k.arg=L.arg,k.delegate=null,h;var q=L.arg;return q?q.done?(k[x.resultName]=q.value,k.next=x.nextLoc,k.method!=="return"&&(k.method="next",k.arg=void 0),k.delegate=null,h):q:(k.method="throw",k.arg=new TypeError("iterator result is not an object"),k.delegate=null,h)}function A(x){var k={tryLoc:x[0]};1 in x&&(k.catchLoc=x[1]),2 in x&&(k.finallyLoc=x[2],k.afterLoc=x[3]),this.tryEntries.push(k)}function F(x){var k=x.completion||{};k.type="normal",delete k.arg,x.completion=k}function P(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(A,this),this.reset(!0)}function T(x){if(x){var k=x[e];if(k)return k.call(x);if(typeof x.next=="function")return x;if(!isNaN(x.length)){var U=-1,L=function q(){for(;++U<x.length;)if(u.call(x,U))return q.value=x[U],q.done=!1,q;return q.value=void 0,q.done=!0,q};return L.next=L}}return{next:O}}function O(){return{value:void 0,done:!0}}return b.prototype=E,c(v,"constructor",E),c(E,"constructor",b),b.displayName=c(E,a,"GeneratorFunction"),i.isGeneratorFunction=function(x){var k=typeof x=="function"&&x.constructor;return!!k&&(k===b||(k.displayName||k.name)==="GeneratorFunction")},i.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,E):(x.__proto__=E,c(x,a,"GeneratorFunction")),x.prototype=Object.create(v),x},i.awrap=function(x){return{__await:x}},m(_.prototype),c(_.prototype,f,function(){return this}),i.AsyncIterator=_,i.async=function(x,k,U,L,q){q===void 0&&(q=Promise);var V=new _(o(x,k,U,L),q);return i.isGeneratorFunction(k)?V:V.next().then(function(et){return et.done?et.value:V.next()})},m(v),c(v,a,"Generator"),c(v,e,function(){return this}),c(v,"toString",function(){return"[object Generator]"}),i.keys=function(x){var k=[];for(var U in x)k.push(U);return k.reverse(),function L(){for(;k.length;){var q=k.pop();if(q in x)return L.value=q,L.done=!1,L}return L.done=!0,L}},i.values=T,P.prototype={constructor:P,reset:function(x){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(F),!x)for(var k in this)k.charAt(0)==="t"&&u.call(this,k)&&!isNaN(+k.slice(1))&&(this[k]=void 0)},stop:function(){this.done=!0;var x=this.tryEntries[0].completion;if(x.type==="throw")throw x.arg;return this.rval},dispatchException:function(x){if(this.done)throw x;var k=this;function U(M,R){return V.type="throw",V.arg=x,k.next=M,R&&(k.method="next",k.arg=void 0),!!R}for(var L=this.tryEntries.length-1;L>=0;--L){var q=this.tryEntries[L],V=q.completion;if(q.tryLoc==="root")return U("end");if(q.tryLoc<=this.prev){var et=u.call(q,"catchLoc"),I=u.call(q,"finallyLoc");if(et&&I){if(this.prev<q.catchLoc)return U(q.catchLoc,!0);if(this.prev<q.finallyLoc)return U(q.finallyLoc)}else if(et){if(this.prev<q.catchLoc)return U(q.catchLoc,!0)}else{if(!I)throw new Error("try statement without catch or finally");if(this.prev<q.finallyLoc)return U(q.finallyLoc)}}}},abrupt:function(x,k){for(var U=this.tryEntries.length-1;U>=0;--U){var L=this.tryEntries[U];if(L.tryLoc<=this.prev&&u.call(L,"finallyLoc")&&this.prev<L.finallyLoc){var q=L;break}}q&&(x==="break"||x==="continue")&&q.tryLoc<=k&&k<=q.finallyLoc&&(q=null);var V=q?q.completion:{};return V.type=x,V.arg=k,q?(this.method="next",this.next=q.finallyLoc,h):this.complete(V)},complete:function(x,k){if(x.type==="throw")throw x.arg;return x.type==="break"||x.type==="continue"?this.next=x.arg:x.type==="return"?(this.rval=this.arg=x.arg,this.method="return",this.next="end"):x.type==="normal"&&k&&(this.next=k),h},finish:function(x){for(var k=this.tryEntries.length-1;k>=0;--k){var U=this.tryEntries[k];if(U.finallyLoc===x)return this.complete(U.completion,U.afterLoc),F(U),h}},catch:function(x){for(var k=this.tryEntries.length-1;k>=0;--k){var U=this.tryEntries[k];if(U.tryLoc===x){var L=U.completion;if(L.type==="throw"){var q=L.arg;F(U)}return q}}throw new Error("illegal catch attempt")},delegateYield:function(x,k,U){return this.delegate={iterator:T(x),resultName:k,nextLoc:U},this.method==="next"&&(this.arg=void 0),h}},i}l.exports=s,l.exports.__esModule=!0,l.exports.default=l.exports}),rl=N((t,l)=>{B();var n=el()();l.exports=n;try{regeneratorRuntime=n}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}),nl=N((t,l)=>{"use strict";B();var n=(s,...i)=>new Promise(p=>{p(s(...i))});l.exports=n,l.exports.default=n}),il=N((t,l)=>{"use strict";B();var n=nl(),s=i=>{if(!((Number.isInteger(i)||i===1/0)&&i>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let p=[],u=0,r=()=>{u--,p.length>0&&p.shift()()},e=(c,o,...d)=>{u++;let h=n(c,...d);o(h),h.then(r,r)},f=(c,o,...d)=>{u<i?e(c,o,...d):p.push(e.bind(null,c,o,...d))},a=(c,...o)=>new Promise(d=>f(c,d,...o));return Object.defineProperties(a,{activeCount:{get:()=>u},pendingCount:{get:()=>p.length},clearQueue:{value:()=>{p.length=0}}}),a};l.exports=s,l.exports.default=s}),sl=N((t,l)=>{"use strict";B();var n=il(),s=class extends Error{constructor(r){super(),this.value=r}},i=async(r,e)=>e(await r),p=async r=>{let e=await Promise.all(r);if(e[1]===!0)throw new s(e[0]);return!1},u=async(r,e,f)=>{f={concurrency:1/0,preserveOrder:!0,...f};let a=n(f.concurrency),c=[...r].map(d=>[d,a(i,d,e)]),o=n(f.preserveOrder?1:1/0);try{await Promise.all(c.map(d=>o(p,d)))}catch(d){if(d instanceof s)return d.value;throw d}};l.exports=u,l.exports.default=u}),ol=N((t,l)=>{"use strict";B();var n=Z("path"),s=Z("fs"),{promisify:i}=Z("util"),p=sl(),u=i(s.stat),r=i(s.lstat),e={directory:"isDirectory",file:"isFile"};function f({type:c}){if(!(c in e))throw new Error(`Invalid type specified: ${c}`)}var a=(c,o)=>c===void 0||o[e[c]]();l.exports=async(c,o)=>{o={cwd:process.cwd(),type:"file",allowSymlinks:!0,...o},f(o);let d=o.allowSymlinks?u:r;return p(c,async h=>{try{let g=await d(n.resolve(o.cwd,h));return a(o.type,g)}catch{return!1}},o)},l.exports.sync=(c,o)=>{o={cwd:process.cwd(),allowSymlinks:!0,type:"file",...o},f(o);let d=o.allowSymlinks?s.statSync:s.lstatSync;for(let h of c)try{let g=d(n.resolve(o.cwd,h));if(a(o.type,g))return h}catch{}}}),ul=N((t,l)=>{"use strict";B();var n=Z("fs"),{promisify:s}=Z("util"),i=s(n.access);l.exports=async p=>{try{return await i(p),!0}catch{return!1}},l.exports.sync=p=>{try{return n.accessSync(p),!0}catch{return!1}}}),al=N((t,l)=>{"use strict";B();var n=Z("path"),s=ol(),i=ul(),p=Symbol("findUp.stop");l.exports=async(u,r={})=>{let e=n.resolve(r.cwd||""),{root:f}=n.parse(e),a=[].concat(u),c=async o=>{if(typeof u!="function")return s(a,o);let d=await u(o.cwd);return typeof d=="string"?s([d],o):d};for(;;){let o=await c({...r,cwd:e});if(o===p)return;if(o)return n.resolve(e,o);if(e===f)return;e=n.dirname(e)}},l.exports.sync=(u,r={})=>{let e=n.resolve(r.cwd||""),{root:f}=n.parse(e),a=[].concat(u),c=o=>{if(typeof u!="function")return s.sync(a,o);let d=u(o.cwd);return typeof d=="string"?s.sync([d],o):d};for(;;){let o=c({...r,cwd:e});if(o===p)return;if(o)return n.resolve(e,o);if(e===f)return;e=n.dirname(e)}},l.exports.exists=i,l.exports.sync.exists=i.sync,l.exports.stop=p}),Yt=N(t=>{"use strict";B(),t.fromCallback=function(l){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")l.apply(this,arguments);else return new Promise((n,s)=>{arguments[arguments.length]=(i,p)=>{if(i)return s(i);n(p)},arguments.length++,l.apply(this,arguments)})},"name",{value:l.name})},t.fromPromise=function(l){return Object.defineProperty(function(){let n=arguments[arguments.length-1];if(typeof n!="function")return l.apply(this,arguments);l.apply(this,arguments).then(s=>n(null,s),n)},"name",{value:l.name})}}),mi=N(t=>{"use strict";B();var l=Yt().fromCallback,n=Ct(),s=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof n[i]=="function");Object.keys(n).forEach(i=>{i!=="promises"&&(t[i]=n[i])}),s.forEach(i=>{t[i]=l(n[i])}),t.exists=function(i,p){return typeof p=="function"?n.exists(i,p):new Promise(u=>n.exists(i,u))},t.read=function(i,p,u,r,e,f){return typeof f=="function"?n.read(i,p,u,r,e,f):new Promise((a,c)=>{n.read(i,p,u,r,e,(o,d,h)=>{if(o)return c(o);a({bytesRead:d,buffer:h})})})},t.write=function(i,p,...u){return typeof u[u.length-1]=="function"?n.write(i,p,...u):new Promise((r,e)=>{n.write(i,p,...u,(f,a,c)=>{if(f)return e(f);r({bytesWritten:a,buffer:c})})})},typeof n.realpath.native=="function"&&(t.realpath.native=l(n.realpath.native))}),yi=N((t,l)=>{"use strict";B();var n=Z("path");function s(u){return u=n.normalize(n.resolve(u)).split(n.sep),u.length>0?u[0]:null}var i=/[<>:"|?*]/;function p(u){let r=s(u);return u=u.replace(r,""),i.test(u)}l.exports={getRootPath:s,invalidWin32Path:p}}),ll=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=yi().invalidWin32Path,p=parseInt("0777",8);function u(r,e,f,a){if(typeof e=="function"?(f=e,e={}):(!e||typeof e!="object")&&(e={mode:e}),process.platform==="win32"&&i(r)){let d=new Error(r+" contains invalid WIN32 path characters.");return d.code="EINVAL",f(d)}let c=e.mode,o=e.fs||n;c===void 0&&(c=p&~process.umask()),a||(a=null),f=f||function(){},r=s.resolve(r),o.mkdir(r,c,d=>{if(!d)return a=a||r,f(null,a);switch(d.code){case"ENOENT":if(s.dirname(r)===r)return f(d);u(s.dirname(r),e,(h,g)=>{h?f(h,g):u(r,e,f,g)});break;default:o.stat(r,(h,g)=>{h||!g.isDirectory()?f(d,a):f(null,a)});break}})}l.exports=u}),cl=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=yi().invalidWin32Path,p=parseInt("0777",8);function u(r,e,f){(!e||typeof e!="object")&&(e={mode:e});let a=e.mode,c=e.fs||n;if(process.platform==="win32"&&i(r)){let o=new Error(r+" contains invalid WIN32 path characters.");throw o.code="EINVAL",o}a===void 0&&(a=p&~process.umask()),f||(f=null),r=s.resolve(r);try{c.mkdirSync(r,a),f=f||r}catch(o){if(o.code==="ENOENT"){if(s.dirname(r)===r)throw o;f=u(s.dirname(r),e,f),u(r,e,f)}else{let d;try{d=c.statSync(r)}catch{throw o}if(!d.isDirectory())throw o}}return f}l.exports=u}),Kt=N((t,l)=>{"use strict";B();var n=Yt().fromCallback,s=n(ll()),i=cl();l.exports={mkdirs:s,mkdirsSync:i,mkdirp:s,mkdirpSync:i,ensureDir:s,ensureDirSync:i}}),gi=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("os"),i=Z("path");function p(){let a=i.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));a=i.join(s.tmpdir(),a);let c=new Date(1435410243862);n.writeFileSync(a,"https://github.com/jprichardson/node-fs-extra/pull/141");let o=n.openSync(a,"r+");return n.futimesSync(o,c,c),n.closeSync(o),n.statSync(a).mtime>1435410243e3}function u(a){let c=i.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));c=i.join(s.tmpdir(),c);let o=new Date(1435410243862);n.writeFile(c,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return a(d);n.open(c,"r+",(h,g)=>{if(h)return a(h);n.futimes(g,o,o,b=>{if(b)return a(b);n.close(g,E=>{if(E)return a(E);n.stat(c,(y,D)=>{if(y)return a(y);a(null,D.mtime>1435410243e3)})})})})})}function r(a){if(typeof a=="number")return Math.floor(a/1e3)*1e3;if(a instanceof Date)return new Date(Math.floor(a.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function e(a,c,o,d){n.open(a,"r+",(h,g)=>{if(h)return d(h);n.futimes(g,c,o,b=>{n.close(g,E=>{d&&d(b||E)})})})}function f(a,c,o){let d=n.openSync(a,"r+");return n.futimesSync(d,c,o),n.closeSync(d)}l.exports={hasMillisRes:u,hasMillisResSync:p,timeRemoveMillis:r,utimesMillis:e,utimesMillisSync:f}}),ir=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=10,p=5,u=0,r=process.versions.node.split("."),e=Number.parseInt(r[0],10),f=Number.parseInt(r[1],10),a=Number.parseInt(r[2],10);function c(){return e>i||e===i&&(f>p||f===p&&a>=u)}function o(w,v,m){c()?n.stat(w,{bigint:!0},(_,S)=>{if(_)return m(_);n.stat(v,{bigint:!0},(A,F)=>A?A.code==="ENOENT"?m(null,{srcStat:S,destStat:null}):m(A):m(null,{srcStat:S,destStat:F}))}):n.stat(w,(_,S)=>{if(_)return m(_);n.stat(v,(A,F)=>A?A.code==="ENOENT"?m(null,{srcStat:S,destStat:null}):m(A):m(null,{srcStat:S,destStat:F}))})}function d(w,v){let m,_;c()?m=n.statSync(w,{bigint:!0}):m=n.statSync(w);try{c()?_=n.statSync(v,{bigint:!0}):_=n.statSync(v)}catch(S){if(S.code==="ENOENT")return{srcStat:m,destStat:null};throw S}return{srcStat:m,destStat:_}}function h(w,v,m,_){o(w,v,(S,A)=>{if(S)return _(S);let{srcStat:F,destStat:P}=A;return P&&P.ino&&P.dev&&P.ino===F.ino&&P.dev===F.dev?_(new Error("Source and destination must not be the same.")):F.isDirectory()&&y(w,v)?_(new Error(D(w,v,m))):_(null,{srcStat:F,destStat:P})})}function g(w,v,m){let{srcStat:_,destStat:S}=d(w,v);if(S&&S.ino&&S.dev&&S.ino===_.ino&&S.dev===_.dev)throw new Error("Source and destination must not be the same.");if(_.isDirectory()&&y(w,v))throw new Error(D(w,v,m));return{srcStat:_,destStat:S}}function b(w,v,m,_,S){let A=s.resolve(s.dirname(w)),F=s.resolve(s.dirname(m));if(F===A||F===s.parse(F).root)return S();c()?n.stat(F,{bigint:!0},(P,T)=>P?P.code==="ENOENT"?S():S(P):T.ino&&T.dev&&T.ino===v.ino&&T.dev===v.dev?S(new Error(D(w,m,_))):b(w,v,F,_,S)):n.stat(F,(P,T)=>P?P.code==="ENOENT"?S():S(P):T.ino&&T.dev&&T.ino===v.ino&&T.dev===v.dev?S(new Error(D(w,m,_))):b(w,v,F,_,S))}function E(w,v,m,_){let S=s.resolve(s.dirname(w)),A=s.resolve(s.dirname(m));if(A===S||A===s.parse(A).root)return;let F;try{c()?F=n.statSync(A,{bigint:!0}):F=n.statSync(A)}catch(P){if(P.code==="ENOENT")return;throw P}if(F.ino&&F.dev&&F.ino===v.ino&&F.dev===v.dev)throw new Error(D(w,m,_));return E(w,v,A,_)}function y(w,v){let m=s.resolve(w).split(s.sep).filter(S=>S),_=s.resolve(v).split(s.sep).filter(S=>S);return m.reduce((S,A,F)=>S&&_[F]===A,!0)}function D(w,v,m){return`Cannot ${m} '${w}' to a subdirectory of itself, '${v}'.`}l.exports={checkPaths:h,checkPathsSync:g,checkParentPaths:b,checkParentPathsSync:E,isSrcSubdir:y}}),hl=N((t,l)=>{"use strict";B(),l.exports=function(n){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(n)}catch{return new Buffer(n)}return new Buffer(n)}}),fl=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=Kt().mkdirsSync,p=gi().utimesMillisSync,u=ir();function r(v,m,_){typeof _=="function"&&(_={filter:_}),_=_||{},_.clobber="clobber"in _?!!_.clobber:!0,_.overwrite="overwrite"in _?!!_.overwrite:_.clobber,_.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
34
|
+
`);return w?(e.originalMessage=e.message,e.message=m):e=new Error(m),e.shortMessage=v,e.command=c,e.escapedCommand=o,e.exitCode=a,e.signal=f,e.signalDescription=E,e.stdout=p,e.stderr=u,r!==void 0&&(e.all=r),"bufferedData"in e&&delete e.bufferedData,e.failed=!0,e.timedOut=!!d,e.isCanceled=h,e.killed=y&&!d,e};l.exports=i}),qa=N((t,l)=>{"use strict";B();var n=["stdin","stdout","stderr"],s=p=>n.some(u=>p[u]!==void 0),i=p=>{if(!p)return;let{stdio:u}=p;if(u===void 0)return n.map(e=>p[e]);if(s(p))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${n.map(e=>`\`${e}\``).join(", ")}`);if(typeof u=="string")return u;if(!Array.isArray(u))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof u}\``);let r=Math.max(u.length,n.length);return Array.from({length:r},(e,f)=>u[f])};l.exports=i,l.exports.node=p=>{let u=i(p);return u==="ipc"?"ipc":u===void 0||typeof u=="string"?[u,u,u,"ipc"]:u.includes("ipc")?u:[...u,"ipc"]}}),za=N((t,l)=>{"use strict";B();var n=Z("os"),s=Ke(),i=1e3*5,p=(y,b="SIGTERM",E={})=>{let g=y(b);return u(y,b,E,g),g},u=(y,b,E,g)=>{if(!r(b,E,g))return;let D=f(E),w=setTimeout(()=>{y("SIGKILL")},D);w.unref&&w.unref()},r=(y,{forceKillAfterTimeout:b},E)=>e(y)&&b!==!1&&E,e=y=>y===n.constants.signals.SIGTERM||typeof y=="string"&&y.toUpperCase()==="SIGTERM",f=({forceKillAfterTimeout:y=!0})=>{if(y===!0)return i;if(!Number.isFinite(y)||y<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`);return y},a=(y,b)=>{y.kill()&&(b.isCanceled=!0)},c=(y,b,E)=>{y.kill(b),E(Object.assign(new Error("Timed out"),{timedOut:!0,signal:b}))},o=(y,{timeout:b,killSignal:E="SIGTERM"},g)=>{if(b===0||b===void 0)return g;let D,w=new Promise((m,_)=>{D=setTimeout(()=>{c(y,E,_)},b)}),v=g.finally(()=>{clearTimeout(D)});return Promise.race([w,v])},d=({timeout:y})=>{if(y!==void 0&&(!Number.isFinite(y)||y<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`)},h=async(y,{cleanup:b,detached:E},g)=>{if(!b||E)return g;let D=s(()=>{y.kill()});return g.finally(()=>{D()})};l.exports={spawnedKill:p,spawnedCancel:a,setupTimeout:o,validateTimeout:d,setExitHandler:h}}),Wa=N((t,l)=>{"use strict";B();var n=s=>s!==null&&typeof s=="object"&&typeof s.pipe=="function";n.writable=s=>n(s)&&s.writable!==!1&&typeof s._write=="function"&&typeof s._writableState=="object",n.readable=s=>n(s)&&s.readable!==!1&&typeof s._read=="function"&&typeof s._readableState=="object",n.duplex=s=>n.writable(s)&&n.readable(s),n.transform=s=>n.duplex(s)&&typeof s._transform=="function",l.exports=n}),Va=N((t,l)=>{"use strict";B();var{PassThrough:n}=Z("stream");l.exports=s=>{s={...s};let{array:i}=s,{encoding:p}=s,u=p==="buffer",r=!1;i?r=!(p||u):p=p||"utf8",u&&(p=null);let e=new n({objectMode:r});p&&e.setEncoding(p);let f=0,a=[];return e.on("data",c=>{a.push(c),r?f=a.length:f+=c.length}),e.getBufferedValue=()=>i?a:u?Buffer.concat(a,f):a.join(""),e.getBufferedLength=()=>f,e}}),Ya=N((t,l)=>{"use strict";B();var{constants:n}=Z("buffer"),s=Z("stream"),{promisify:i}=Z("util"),p=Va(),u=i(s.pipeline),r=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function e(f,a){if(!f)throw new Error("Expected a stream");a={maxBuffer:1/0,...a};let{maxBuffer:c}=a,o=p(a);return await new Promise((d,h)=>{let y=b=>{b&&o.getBufferedLength()<=n.MAX_LENGTH&&(b.bufferedData=o.getBufferedValue()),h(b)};(async()=>{try{await u(f,o),d()}catch(b){y(b)}})(),o.on("data",()=>{o.getBufferedLength()>c&&y(new r)})}),o.getBufferedValue()}l.exports=e,l.exports.buffer=(f,a)=>e(f,{...a,encoding:"buffer"}),l.exports.array=(f,a)=>e(f,{...a,array:!0}),l.exports.MaxBufferError=r}),Ka=N((t,l)=>{"use strict";B();var{PassThrough:n}=Z("stream");l.exports=function(){var s=[],i=new n({objectMode:!0});return i.setMaxListeners(0),i.add=p,i.isEmpty=u,i.on("unpipe",r),Array.prototype.slice.call(arguments).forEach(p),i;function p(e){return Array.isArray(e)?(e.forEach(p),this):(s.push(e),e.once("end",r.bind(null,e)),e.once("error",i.emit.bind(i,"error")),e.pipe(i,{end:!1}),this)}function u(){return s.length==0}function r(e){s=s.filter(function(f){return f!==e}),!s.length&&i.readable&&i.end()}}}),Ja=N((t,l)=>{"use strict";B();var n=Wa(),s=Ya(),i=Ka(),p=(c,o)=>{o===void 0||c.stdin===void 0||(n(o)?o.pipe(c.stdin):c.stdin.end(o))},u=(c,{all:o})=>{if(!o||!c.stdout&&!c.stderr)return;let d=i();return c.stdout&&d.add(c.stdout),c.stderr&&d.add(c.stderr),d},r=async(c,o)=>{if(c){c.destroy();try{return await o}catch(d){return d.bufferedData}}},e=(c,{encoding:o,buffer:d,maxBuffer:h})=>{if(!(!c||!d))return o?s(c,{encoding:o,maxBuffer:h}):s.buffer(c,{maxBuffer:h})},f=async({stdout:c,stderr:o,all:d},{encoding:h,buffer:y,maxBuffer:b},E)=>{let g=e(c,{encoding:h,buffer:y,maxBuffer:b}),D=e(o,{encoding:h,buffer:y,maxBuffer:b}),w=e(d,{encoding:h,buffer:y,maxBuffer:b*2});try{return await Promise.all([E,g,D,w])}catch(v){return Promise.all([{error:v,signal:v.signal,timedOut:v.timedOut},r(c,g),r(o,D),r(d,w)])}},a=({input:c})=>{if(n(c))throw new TypeError("The `input` option cannot be a stream in sync mode")};l.exports={handleInput:p,makeAllStream:u,getSpawnedResult:f,validateInputSync:a}}),Za=N((t,l)=>{"use strict";B();var n=(async()=>{})().constructor.prototype,s=["then","catch","finally"].map(u=>[u,Reflect.getOwnPropertyDescriptor(n,u)]),i=(u,r)=>{for(let[e,f]of s){let a=typeof r=="function"?(...c)=>Reflect.apply(f.value,r(),c):f.value.bind(r);Reflect.defineProperty(u,e,{...f,value:a})}return u},p=u=>new Promise((r,e)=>{u.on("exit",(f,a)=>{r({exitCode:f,signal:a})}),u.on("error",f=>{e(f)}),u.stdin&&u.stdin.on("error",f=>{e(f)})});l.exports={mergePromise:i,getSpawnedPromise:p}}),Xa=N((t,l)=>{"use strict";B();var n=(a,c=[])=>Array.isArray(c)?[a,...c]:[a],s=/^[\w.-]+$/,i=/"/g,p=a=>typeof a!="string"||s.test(a)?a:`"${a.replace(i,'\\"')}"`,u=(a,c)=>n(a,c).join(" "),r=(a,c)=>n(a,c).map(o=>p(o)).join(" "),e=/ +/g,f=a=>{let c=[];for(let o of a.trim().split(e)){let d=c[c.length-1];d&&d.endsWith("\\")?c[c.length-1]=`${d.slice(0,-1)} ${o}`:c.push(o)}return c};l.exports={joinCommand:u,getEscapedCommand:r,parseCommand:f}}),Qa=N((t,l)=>{"use strict";B();var n=Z("path"),s=Z("child_process"),i=Na(),p=ja(),u=Ma(),r=Ye(),e=Ga(),f=qa(),{spawnedKill:a,spawnedCancel:c,setupTimeout:o,validateTimeout:d,setExitHandler:h}=za(),{handleInput:y,getSpawnedResult:b,makeAllStream:E,validateInputSync:g}=Ja(),{mergePromise:D,getSpawnedPromise:w}=Za(),{joinCommand:v,parseCommand:m,getEscapedCommand:_}=Xa(),S=1e3*1e3*100,A=({env:F,extendEnv:O,preferLocal:I,localDir:$,execPath:R})=>{let G=O?{...process.env,...F}:F;return I?u.env({env:G,cwd:$,execPath:R}):G},x=(F,O,I={})=>{let $=i._parse(F,O,I);return F=$.command,O=$.args,I=$.options,I={maxBuffer:S,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:I.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...I},I.env=A(I),I.stdio=f(I),process.platform==="win32"&&n.basename(F,".exe")==="cmd"&&O.unshift("/q"),{file:F,args:O,options:I,parsed:$}},L=(F,O,I)=>typeof O!="string"&&!Buffer.isBuffer(O)?I===void 0?void 0:"":F.stripFinalNewline?p(O):O,T=(F,O,I)=>{let $=x(F,O,I),R=v(F,O),G=_(F,O);d($.options);let W;try{W=s.spawn($.file,$.args,$.options)}catch(q){let tt=new s.ChildProcess,M=Promise.reject(e({error:q,stdout:"",stderr:"",all:"",command:R,escapedCommand:G,parsed:$,timedOut:!1,isCanceled:!1,killed:!1}));return D(tt,M)}let Q=w(W),P=o(W,$.options,Q),j=h(W,$.options,P),k={isCanceled:!1};W.kill=a.bind(null,W.kill.bind(W)),W.cancel=c.bind(null,W,k);let J=r(async()=>{let[{error:q,exitCode:tt,signal:M,timedOut:Y},et,ot,ct]=await b(W,$.options,j),gt=L($.options,et),mt=L($.options,ot),H=L($.options,ct);if(q||tt!==0||M!==null){let V=e({error:q,exitCode:tt,signal:M,stdout:gt,stderr:mt,all:H,command:R,escapedCommand:G,parsed:$,timedOut:Y,isCanceled:k.isCanceled,killed:W.killed});if(!$.options.reject)return V;throw V}return{command:R,escapedCommand:G,exitCode:0,stdout:gt,stderr:mt,all:H,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return y(W,$.options.input),W.all=E(W,$.options),D(W,J)};l.exports=T,l.exports.sync=(F,O,I)=>{let $=x(F,O,I),R=v(F,O),G=_(F,O);g($.options);let W;try{W=s.spawnSync($.file,$.args,$.options)}catch(j){throw e({error:j,stdout:"",stderr:"",all:"",command:R,escapedCommand:G,parsed:$,timedOut:!1,isCanceled:!1,killed:!1})}let Q=L($.options,W.stdout,W.error),P=L($.options,W.stderr,W.error);if(W.error||W.status!==0||W.signal!==null){let j=e({stdout:Q,stderr:P,error:W.error,signal:W.signal,exitCode:W.status,command:R,escapedCommand:G,parsed:$,timedOut:W.error&&W.error.code==="ETIMEDOUT",isCanceled:!1,killed:W.signal!==null});if(!$.options.reject)return j;throw j}return{command:R,escapedCommand:G,exitCode:0,stdout:Q,stderr:P,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},l.exports.command=(F,O)=>{let[I,...$]=m(F);return T(I,$,O)},l.exports.commandSync=(F,O)=>{let[I,...$]=m(F);return T.sync(I,$,O)},l.exports.node=(F,O,I={})=>{O&&!Array.isArray(O)&&typeof O=="object"&&(I=O,O=[]);let $=f.node(I),R=process.execArgv.filter(Q=>!Q.startsWith("--inspect")),{nodePath:G=process.execPath,nodeOptions:W=R}=I;return T(G,[...W,F,...Array.isArray(O)?O:[]],{...I,stdin:void 0,stdout:void 0,stderr:void 0,stdio:$,shell:!1})}});B();var j0=Ot(Qa());B();var z0=Ot(oe()),W0=Ot(he());B();var Or=Wt(require("fs"),1),Te=Wt(require("path"),1);B();function Rr({target:t,cwd:l,contentCheck:n}){let s=Te.default.parse(l).root,i=!1;for(;!i&&l!==s;){if(n)try{let p=Or.default.readFileSync(Te.default.join(l,t)).toString();if(n(p)){i=!0;break}}catch{}else if(Or.default.existsSync(Te.default.join(l,t))){i=!0;break}l=Te.default.dirname(l)}return i?l:null}var or=Wt(require("path"),1),tl=N((t,l)=>{B();function n(s){return l.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},l.exports.__esModule=!0,l.exports.default=l.exports,n(s)}l.exports=n,l.exports.__esModule=!0,l.exports.default=l.exports}),el=N((t,l)=>{B();var n=tl().default;function s(){"use strict";l.exports=s=function(){return i},l.exports.__esModule=!0,l.exports.default=l.exports;var i={},p=Object.prototype,u=p.hasOwnProperty,r=Object.defineProperty||function($,R,G){$[R]=G.value},e=typeof Symbol=="function"?Symbol:{},f=e.iterator||"@@iterator",a=e.asyncIterator||"@@asyncIterator",c=e.toStringTag||"@@toStringTag";function o($,R,G){return Object.defineProperty($,R,{value:G,enumerable:!0,configurable:!0,writable:!0}),$[R]}try{o({},"")}catch{o=function($,R,G){return $[R]=G}}function d($,R,G,W){var Q=R&&R.prototype instanceof b?R:b,P=Object.create(Q.prototype),j=new F(W||[]);return r(P,"_invoke",{value:A($,G,j)}),P}function h($,R,G){try{return{type:"normal",arg:$.call(R,G)}}catch(W){return{type:"throw",arg:W}}}i.wrap=d;var y={};function b(){}function E(){}function g(){}var D={};o(D,f,function(){return this});var w=Object.getPrototypeOf,v=w&&w(w(O([])));v&&v!==p&&u.call(v,f)&&(D=v);var m=g.prototype=b.prototype=Object.create(D);function _($){["next","throw","return"].forEach(function(R){o($,R,function(G){return this._invoke(R,G)})})}function S($,R){function G(Q,P,j,k){var J=h($[Q],$,P);if(J.type!=="throw"){var q=J.arg,tt=q.value;return tt&&n(tt)=="object"&&u.call(tt,"__await")?R.resolve(tt.__await).then(function(M){G("next",M,j,k)},function(M){G("throw",M,j,k)}):R.resolve(tt).then(function(M){q.value=M,j(q)},function(M){return G("throw",M,j,k)})}k(J.arg)}var W;r(this,"_invoke",{value:function(Q,P){function j(){return new R(function(k,J){G(Q,P,k,J)})}return W=W?W.then(j,j):j()}})}function A($,R,G){var W="suspendedStart";return function(Q,P){if(W==="executing")throw new Error("Generator is already running");if(W==="completed"){if(Q==="throw")throw P;return I()}for(G.method=Q,G.arg=P;;){var j=G.delegate;if(j){var k=x(j,G);if(k){if(k===y)continue;return k}}if(G.method==="next")G.sent=G._sent=G.arg;else if(G.method==="throw"){if(W==="suspendedStart")throw W="completed",G.arg;G.dispatchException(G.arg)}else G.method==="return"&&G.abrupt("return",G.arg);W="executing";var J=h($,R,G);if(J.type==="normal"){if(W=G.done?"completed":"suspendedYield",J.arg===y)continue;return{value:J.arg,done:G.done}}J.type==="throw"&&(W="completed",G.method="throw",G.arg=J.arg)}}}function x($,R){var G=R.method,W=$.iterator[G];if(W===void 0)return R.delegate=null,G==="throw"&&$.iterator.return&&(R.method="return",R.arg=void 0,x($,R),R.method==="throw")||G!=="return"&&(R.method="throw",R.arg=new TypeError("The iterator does not provide a '"+G+"' method")),y;var Q=h(W,$.iterator,R.arg);if(Q.type==="throw")return R.method="throw",R.arg=Q.arg,R.delegate=null,y;var P=Q.arg;return P?P.done?(R[$.resultName]=P.value,R.next=$.nextLoc,R.method!=="return"&&(R.method="next",R.arg=void 0),R.delegate=null,y):P:(R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,y)}function L($){var R={tryLoc:$[0]};1 in $&&(R.catchLoc=$[1]),2 in $&&(R.finallyLoc=$[2],R.afterLoc=$[3]),this.tryEntries.push(R)}function T($){var R=$.completion||{};R.type="normal",delete R.arg,$.completion=R}function F($){this.tryEntries=[{tryLoc:"root"}],$.forEach(L,this),this.reset(!0)}function O($){if($){var R=$[f];if(R)return R.call($);if(typeof $.next=="function")return $;if(!isNaN($.length)){var G=-1,W=function Q(){for(;++G<$.length;)if(u.call($,G))return Q.value=$[G],Q.done=!1,Q;return Q.value=void 0,Q.done=!0,Q};return W.next=W}}return{next:I}}function I(){return{value:void 0,done:!0}}return E.prototype=g,r(m,"constructor",{value:g,configurable:!0}),r(g,"constructor",{value:E,configurable:!0}),E.displayName=o(g,c,"GeneratorFunction"),i.isGeneratorFunction=function($){var R=typeof $=="function"&&$.constructor;return!!R&&(R===E||(R.displayName||R.name)==="GeneratorFunction")},i.mark=function($){return Object.setPrototypeOf?Object.setPrototypeOf($,g):($.__proto__=g,o($,c,"GeneratorFunction")),$.prototype=Object.create(m),$},i.awrap=function($){return{__await:$}},_(S.prototype),o(S.prototype,a,function(){return this}),i.AsyncIterator=S,i.async=function($,R,G,W,Q){Q===void 0&&(Q=Promise);var P=new S(d($,R,G,W),Q);return i.isGeneratorFunction(R)?P:P.next().then(function(j){return j.done?j.value:P.next()})},_(m),o(m,c,"Generator"),o(m,f,function(){return this}),o(m,"toString",function(){return"[object Generator]"}),i.keys=function($){var R=Object($),G=[];for(var W in R)G.push(W);return G.reverse(),function Q(){for(;G.length;){var P=G.pop();if(P in R)return Q.value=P,Q.done=!1,Q}return Q.done=!0,Q}},i.values=O,F.prototype={constructor:F,reset:function($){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!$)for(var R in this)R.charAt(0)==="t"&&u.call(this,R)&&!isNaN(+R.slice(1))&&(this[R]=void 0)},stop:function(){this.done=!0;var $=this.tryEntries[0].completion;if($.type==="throw")throw $.arg;return this.rval},dispatchException:function($){if(this.done)throw $;var R=this;function G(J,q){return P.type="throw",P.arg=$,R.next=J,q&&(R.method="next",R.arg=void 0),!!q}for(var W=this.tryEntries.length-1;W>=0;--W){var Q=this.tryEntries[W],P=Q.completion;if(Q.tryLoc==="root")return G("end");if(Q.tryLoc<=this.prev){var j=u.call(Q,"catchLoc"),k=u.call(Q,"finallyLoc");if(j&&k){if(this.prev<Q.catchLoc)return G(Q.catchLoc,!0);if(this.prev<Q.finallyLoc)return G(Q.finallyLoc)}else if(j){if(this.prev<Q.catchLoc)return G(Q.catchLoc,!0)}else{if(!k)throw new Error("try statement without catch or finally");if(this.prev<Q.finallyLoc)return G(Q.finallyLoc)}}}},abrupt:function($,R){for(var G=this.tryEntries.length-1;G>=0;--G){var W=this.tryEntries[G];if(W.tryLoc<=this.prev&&u.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var Q=W;break}}Q&&($==="break"||$==="continue")&&Q.tryLoc<=R&&R<=Q.finallyLoc&&(Q=null);var P=Q?Q.completion:{};return P.type=$,P.arg=R,Q?(this.method="next",this.next=Q.finallyLoc,y):this.complete(P)},complete:function($,R){if($.type==="throw")throw $.arg;return $.type==="break"||$.type==="continue"?this.next=$.arg:$.type==="return"?(this.rval=this.arg=$.arg,this.method="return",this.next="end"):$.type==="normal"&&R&&(this.next=R),y},finish:function($){for(var R=this.tryEntries.length-1;R>=0;--R){var G=this.tryEntries[R];if(G.finallyLoc===$)return this.complete(G.completion,G.afterLoc),T(G),y}},catch:function($){for(var R=this.tryEntries.length-1;R>=0;--R){var G=this.tryEntries[R];if(G.tryLoc===$){var W=G.completion;if(W.type==="throw"){var Q=W.arg;T(G)}return Q}}throw new Error("illegal catch attempt")},delegateYield:function($,R,G){return this.delegate={iterator:O($),resultName:R,nextLoc:G},this.method==="next"&&(this.arg=void 0),y}},i}l.exports=s,l.exports.__esModule=!0,l.exports.default=l.exports}),rl=N((t,l)=>{B();var n=el()();l.exports=n;try{regeneratorRuntime=n}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}),nl=N((t,l)=>{"use strict";B();var n=(s,...i)=>new Promise(p=>{p(s(...i))});l.exports=n,l.exports.default=n}),il=N((t,l)=>{"use strict";B();var n=nl(),s=i=>{if(!((Number.isInteger(i)||i===1/0)&&i>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let p=[],u=0,r=()=>{u--,p.length>0&&p.shift()()},e=(c,o,...d)=>{u++;let h=n(c,...d);o(h),h.then(r,r)},f=(c,o,...d)=>{u<i?e(c,o,...d):p.push(e.bind(null,c,o,...d))},a=(c,...o)=>new Promise(d=>f(c,d,...o));return Object.defineProperties(a,{activeCount:{get:()=>u},pendingCount:{get:()=>p.length},clearQueue:{value:()=>{p.length=0}}}),a};l.exports=s,l.exports.default=s}),sl=N((t,l)=>{"use strict";B();var n=il(),s=class extends Error{constructor(r){super(),this.value=r}},i=async(r,e)=>e(await r),p=async r=>{let e=await Promise.all(r);if(e[1]===!0)throw new s(e[0]);return!1},u=async(r,e,f)=>{f={concurrency:1/0,preserveOrder:!0,...f};let a=n(f.concurrency),c=[...r].map(d=>[d,a(i,d,e)]),o=n(f.preserveOrder?1:1/0);try{await Promise.all(c.map(d=>o(p,d)))}catch(d){if(d instanceof s)return d.value;throw d}};l.exports=u,l.exports.default=u}),ol=N((t,l)=>{"use strict";B();var n=Z("path"),s=Z("fs"),{promisify:i}=Z("util"),p=sl(),u=i(s.stat),r=i(s.lstat),e={directory:"isDirectory",file:"isFile"};function f({type:c}){if(!(c in e))throw new Error(`Invalid type specified: ${c}`)}var a=(c,o)=>c===void 0||o[e[c]]();l.exports=async(c,o)=>{o={cwd:process.cwd(),type:"file",allowSymlinks:!0,...o},f(o);let d=o.allowSymlinks?u:r;return p(c,async h=>{try{let y=await d(n.resolve(o.cwd,h));return a(o.type,y)}catch{return!1}},o)},l.exports.sync=(c,o)=>{o={cwd:process.cwd(),allowSymlinks:!0,type:"file",...o},f(o);let d=o.allowSymlinks?s.statSync:s.lstatSync;for(let h of c)try{let y=d(n.resolve(o.cwd,h));if(a(o.type,y))return h}catch{}}}),ul=N((t,l)=>{"use strict";B();var n=Z("fs"),{promisify:s}=Z("util"),i=s(n.access);l.exports=async p=>{try{return await i(p),!0}catch{return!1}},l.exports.sync=p=>{try{return n.accessSync(p),!0}catch{return!1}}}),al=N((t,l)=>{"use strict";B();var n=Z("path"),s=ol(),i=ul(),p=Symbol("findUp.stop");l.exports=async(u,r={})=>{let e=n.resolve(r.cwd||""),{root:f}=n.parse(e),a=[].concat(u),c=async o=>{if(typeof u!="function")return s(a,o);let d=await u(o.cwd);return typeof d=="string"?s([d],o):d};for(;;){let o=await c({...r,cwd:e});if(o===p)return;if(o)return n.resolve(e,o);if(e===f)return;e=n.dirname(e)}},l.exports.sync=(u,r={})=>{let e=n.resolve(r.cwd||""),{root:f}=n.parse(e),a=[].concat(u),c=o=>{if(typeof u!="function")return s.sync(a,o);let d=u(o.cwd);return typeof d=="string"?s.sync([d],o):d};for(;;){let o=c({...r,cwd:e});if(o===p)return;if(o)return n.resolve(e,o);if(e===f)return;e=n.dirname(e)}},l.exports.exists=i,l.exports.sync.exists=i.sync,l.exports.stop=p}),Yt=N(t=>{"use strict";B(),t.fromCallback=function(l){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")l.apply(this,arguments);else return new Promise((n,s)=>{arguments[arguments.length]=(i,p)=>{if(i)return s(i);n(p)},arguments.length++,l.apply(this,arguments)})},"name",{value:l.name})},t.fromPromise=function(l){return Object.defineProperty(function(){let n=arguments[arguments.length-1];if(typeof n!="function")return l.apply(this,arguments);l.apply(this,arguments).then(s=>n(null,s),n)},"name",{value:l.name})}}),mi=N(t=>{"use strict";B();var l=Yt().fromCallback,n=Ct(),s=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof n[i]=="function");Object.keys(n).forEach(i=>{i!=="promises"&&(t[i]=n[i])}),s.forEach(i=>{t[i]=l(n[i])}),t.exists=function(i,p){return typeof p=="function"?n.exists(i,p):new Promise(u=>n.exists(i,u))},t.read=function(i,p,u,r,e,f){return typeof f=="function"?n.read(i,p,u,r,e,f):new Promise((a,c)=>{n.read(i,p,u,r,e,(o,d,h)=>{if(o)return c(o);a({bytesRead:d,buffer:h})})})},t.write=function(i,p,...u){return typeof u[u.length-1]=="function"?n.write(i,p,...u):new Promise((r,e)=>{n.write(i,p,...u,(f,a,c)=>{if(f)return e(f);r({bytesWritten:a,buffer:c})})})},typeof n.realpath.native=="function"&&(t.realpath.native=l(n.realpath.native))}),yi=N((t,l)=>{"use strict";B();var n=Z("path");function s(u){return u=n.normalize(n.resolve(u)).split(n.sep),u.length>0?u[0]:null}var i=/[<>:"|?*]/;function p(u){let r=s(u);return u=u.replace(r,""),i.test(u)}l.exports={getRootPath:s,invalidWin32Path:p}}),ll=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=yi().invalidWin32Path,p=parseInt("0777",8);function u(r,e,f,a){if(typeof e=="function"?(f=e,e={}):(!e||typeof e!="object")&&(e={mode:e}),process.platform==="win32"&&i(r)){let d=new Error(r+" contains invalid WIN32 path characters.");return d.code="EINVAL",f(d)}let c=e.mode,o=e.fs||n;c===void 0&&(c=p&~process.umask()),a||(a=null),f=f||function(){},r=s.resolve(r),o.mkdir(r,c,d=>{if(!d)return a=a||r,f(null,a);switch(d.code){case"ENOENT":if(s.dirname(r)===r)return f(d);u(s.dirname(r),e,(h,y)=>{h?f(h,y):u(r,e,f,y)});break;default:o.stat(r,(h,y)=>{h||!y.isDirectory()?f(d,a):f(null,a)});break}})}l.exports=u}),cl=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=yi().invalidWin32Path,p=parseInt("0777",8);function u(r,e,f){(!e||typeof e!="object")&&(e={mode:e});let a=e.mode,c=e.fs||n;if(process.platform==="win32"&&i(r)){let o=new Error(r+" contains invalid WIN32 path characters.");throw o.code="EINVAL",o}a===void 0&&(a=p&~process.umask()),f||(f=null),r=s.resolve(r);try{c.mkdirSync(r,a),f=f||r}catch(o){if(o.code==="ENOENT"){if(s.dirname(r)===r)throw o;f=u(s.dirname(r),e,f),u(r,e,f)}else{let d;try{d=c.statSync(r)}catch{throw o}if(!d.isDirectory())throw o}}return f}l.exports=u}),Kt=N((t,l)=>{"use strict";B();var n=Yt().fromCallback,s=n(ll()),i=cl();l.exports={mkdirs:s,mkdirsSync:i,mkdirp:s,mkdirpSync:i,ensureDir:s,ensureDirSync:i}}),gi=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("os"),i=Z("path");function p(){let a=i.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));a=i.join(s.tmpdir(),a);let c=new Date(1435410243862);n.writeFileSync(a,"https://github.com/jprichardson/node-fs-extra/pull/141");let o=n.openSync(a,"r+");return n.futimesSync(o,c,c),n.closeSync(o),n.statSync(a).mtime>1435410243e3}function u(a){let c=i.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));c=i.join(s.tmpdir(),c);let o=new Date(1435410243862);n.writeFile(c,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return a(d);n.open(c,"r+",(h,y)=>{if(h)return a(h);n.futimes(y,o,o,b=>{if(b)return a(b);n.close(y,E=>{if(E)return a(E);n.stat(c,(g,D)=>{if(g)return a(g);a(null,D.mtime>1435410243e3)})})})})})}function r(a){if(typeof a=="number")return Math.floor(a/1e3)*1e3;if(a instanceof Date)return new Date(Math.floor(a.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function e(a,c,o,d){n.open(a,"r+",(h,y)=>{if(h)return d(h);n.futimes(y,c,o,b=>{n.close(y,E=>{d&&d(b||E)})})})}function f(a,c,o){let d=n.openSync(a,"r+");return n.futimesSync(d,c,o),n.closeSync(d)}l.exports={hasMillisRes:u,hasMillisResSync:p,timeRemoveMillis:r,utimesMillis:e,utimesMillisSync:f}}),ir=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=10,p=5,u=0,r=process.versions.node.split("."),e=Number.parseInt(r[0],10),f=Number.parseInt(r[1],10),a=Number.parseInt(r[2],10);function c(){return e>i||e===i&&(f>p||f===p&&a>=u)}function o(w,v,m){c()?n.stat(w,{bigint:!0},(_,S)=>{if(_)return m(_);n.stat(v,{bigint:!0},(A,x)=>A?A.code==="ENOENT"?m(null,{srcStat:S,destStat:null}):m(A):m(null,{srcStat:S,destStat:x}))}):n.stat(w,(_,S)=>{if(_)return m(_);n.stat(v,(A,x)=>A?A.code==="ENOENT"?m(null,{srcStat:S,destStat:null}):m(A):m(null,{srcStat:S,destStat:x}))})}function d(w,v){let m,_;c()?m=n.statSync(w,{bigint:!0}):m=n.statSync(w);try{c()?_=n.statSync(v,{bigint:!0}):_=n.statSync(v)}catch(S){if(S.code==="ENOENT")return{srcStat:m,destStat:null};throw S}return{srcStat:m,destStat:_}}function h(w,v,m,_){o(w,v,(S,A)=>{if(S)return _(S);let{srcStat:x,destStat:L}=A;return L&&L.ino&&L.dev&&L.ino===x.ino&&L.dev===x.dev?_(new Error("Source and destination must not be the same.")):x.isDirectory()&&g(w,v)?_(new Error(D(w,v,m))):_(null,{srcStat:x,destStat:L})})}function y(w,v,m){let{srcStat:_,destStat:S}=d(w,v);if(S&&S.ino&&S.dev&&S.ino===_.ino&&S.dev===_.dev)throw new Error("Source and destination must not be the same.");if(_.isDirectory()&&g(w,v))throw new Error(D(w,v,m));return{srcStat:_,destStat:S}}function b(w,v,m,_,S){let A=s.resolve(s.dirname(w)),x=s.resolve(s.dirname(m));if(x===A||x===s.parse(x).root)return S();c()?n.stat(x,{bigint:!0},(L,T)=>L?L.code==="ENOENT"?S():S(L):T.ino&&T.dev&&T.ino===v.ino&&T.dev===v.dev?S(new Error(D(w,m,_))):b(w,v,x,_,S)):n.stat(x,(L,T)=>L?L.code==="ENOENT"?S():S(L):T.ino&&T.dev&&T.ino===v.ino&&T.dev===v.dev?S(new Error(D(w,m,_))):b(w,v,x,_,S))}function E(w,v,m,_){let S=s.resolve(s.dirname(w)),A=s.resolve(s.dirname(m));if(A===S||A===s.parse(A).root)return;let x;try{c()?x=n.statSync(A,{bigint:!0}):x=n.statSync(A)}catch(L){if(L.code==="ENOENT")return;throw L}if(x.ino&&x.dev&&x.ino===v.ino&&x.dev===v.dev)throw new Error(D(w,m,_));return E(w,v,A,_)}function g(w,v){let m=s.resolve(w).split(s.sep).filter(S=>S),_=s.resolve(v).split(s.sep).filter(S=>S);return m.reduce((S,A,x)=>S&&_[x]===A,!0)}function D(w,v,m){return`Cannot ${m} '${w}' to a subdirectory of itself, '${v}'.`}l.exports={checkPaths:h,checkPathsSync:y,checkParentPaths:b,checkParentPathsSync:E,isSrcSubdir:g}}),hl=N((t,l)=>{"use strict";B(),l.exports=function(n){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(n)}catch{return new Buffer(n)}return new Buffer(n)}}),fl=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=Kt().mkdirsSync,p=gi().utimesMillisSync,u=ir();function r(v,m,_){typeof _=="function"&&(_={filter:_}),_=_||{},_.clobber="clobber"in _?!!_.clobber:!0,_.overwrite="overwrite"in _?!!_.overwrite:_.clobber,_.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
35
35
|
|
36
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:S,destStat:A}=u.checkPathsSync(v,m,"copy");return u.checkParentPathsSync(v,S,m,"copy"),e(A,v,m,_)}function e(v,m,_,S){if(S.filter&&!S.filter(m,_))return;let A=s.dirname(_);return n.existsSync(A)||i(A),f(v,m,_,S)}function f(v,m,_,S){if(!(S.filter&&!S.filter(m,_)))return a(v,m,_,S)}function a(v,m,_,S){let A=(S.dereference?n.statSync:n.lstatSync)(m);if(A.isDirectory())return
|
36
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:S,destStat:A}=u.checkPathsSync(v,m,"copy");return u.checkParentPathsSync(v,S,m,"copy"),e(A,v,m,_)}function e(v,m,_,S){if(S.filter&&!S.filter(m,_))return;let A=s.dirname(_);return n.existsSync(A)||i(A),f(v,m,_,S)}function f(v,m,_,S){if(!(S.filter&&!S.filter(m,_)))return a(v,m,_,S)}function a(v,m,_,S){let A=(S.dereference?n.statSync:n.lstatSync)(m);if(A.isDirectory())return y(A,v,m,_,S);if(A.isFile()||A.isCharacterDevice()||A.isBlockDevice())return c(A,v,m,_,S);if(A.isSymbolicLink())return D(v,m,_,S)}function c(v,m,_,S,A){return m?o(v,_,S,A):d(v,_,S,A)}function o(v,m,_,S){if(S.overwrite)return n.unlinkSync(_),d(v,m,_,S);if(S.errorOnExist)throw new Error(`'${_}' already exists`)}function d(v,m,_,S){return typeof n.copyFileSync=="function"?(n.copyFileSync(m,_),n.chmodSync(_,v.mode),S.preserveTimestamps?p(_,v.atime,v.mtime):void 0):h(v,m,_,S)}function h(v,m,_,S){let A=hl()(65536),x=n.openSync(m,"r"),L=n.openSync(_,"w",v.mode),T=0;for(;T<v.size;){let F=n.readSync(x,A,0,65536,T);n.writeSync(L,A,0,F),T+=F}S.preserveTimestamps&&n.futimesSync(L,v.atime,v.mtime),n.closeSync(x),n.closeSync(L)}function y(v,m,_,S,A){if(!m)return b(v,_,S,A);if(m&&!m.isDirectory())throw new Error(`Cannot overwrite non-directory '${S}' with directory '${_}'.`);return E(_,S,A)}function b(v,m,_,S){return n.mkdirSync(_),E(m,_,S),n.chmodSync(_,v.mode)}function E(v,m,_){n.readdirSync(v).forEach(S=>g(S,v,m,_))}function g(v,m,_,S){let A=s.join(m,v),x=s.join(_,v),{destStat:L}=u.checkPathsSync(A,x,"copy");return f(L,A,x,S)}function D(v,m,_,S){let A=n.readlinkSync(m);if(S.dereference&&(A=s.resolve(process.cwd(),A)),v){let x;try{x=n.readlinkSync(_)}catch(L){if(L.code==="EINVAL"||L.code==="UNKNOWN")return n.symlinkSync(A,_);throw L}if(S.dereference&&(x=s.resolve(process.cwd(),x)),u.isSrcSubdir(A,x))throw new Error(`Cannot copy '${A}' to a subdirectory of itself, '${x}'.`);if(n.statSync(_).isDirectory()&&u.isSrcSubdir(x,A))throw new Error(`Cannot overwrite '${x}' with '${A}'.`);return w(A,_)}else return n.symlinkSync(A,_)}function w(v,m){return n.unlinkSync(m),n.symlinkSync(v,m)}l.exports=r}),bi=N((t,l)=>{"use strict";B(),l.exports={copySync:fl()}}),ne=N((t,l)=>{"use strict";B();var n=Yt().fromPromise,s=mi();function i(p){return s.access(p).then(()=>!0).catch(()=>!1)}l.exports={pathExists:n(i),pathExistsSync:s.existsSync}}),pl=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=Kt().mkdirs,p=ne().pathExists,u=gi().utimesMillis,r=ir();function e(A,x,L,T){typeof L=="function"&&!T?(T=L,L={}):typeof L=="function"&&(L={filter:L}),T=T||function(){},L=L||{},L.clobber="clobber"in L?!!L.clobber:!0,L.overwrite="overwrite"in L?!!L.overwrite:L.clobber,L.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
37
37
|
|
38
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`),r.checkPaths(A,F,"copy",(O,x)=>{if(O)return T(O);let{srcStat:k,destStat:U}=x;r.checkParentPaths(A,k,F,"copy",L=>L?T(L):P.filter?a(f,U,A,F,P,T):f(U,A,F,P,T))})}function f(A,F,P,T,O){let x=s.dirname(P);p(x,(k,U)=>{if(k)return O(k);if(U)return c(A,F,P,T,O);i(x,L=>L?O(L):c(A,F,P,T,O))})}function a(A,F,P,T,O,x){Promise.resolve(O.filter(P,T)).then(k=>k?A(F,P,T,O,x):x(),k=>x(k))}function c(A,F,P,T,O){return T.filter?a(o,A,F,P,T,O):o(A,F,P,T,O)}function o(A,F,P,T,O){(T.dereference?n.stat:n.lstat)(F,(x,k)=>{if(x)return O(x);if(k.isDirectory())return y(k,A,F,P,T,O);if(k.isFile()||k.isCharacterDevice()||k.isBlockDevice())return d(k,A,F,P,T,O);if(k.isSymbolicLink())return _(A,F,P,T,O)})}function d(A,F,P,T,O,x){return F?h(A,P,T,O,x):g(A,P,T,O,x)}function h(A,F,P,T,O){if(T.overwrite)n.unlink(P,x=>x?O(x):g(A,F,P,T,O));else return T.errorOnExist?O(new Error(`'${P}' already exists`)):O()}function g(A,F,P,T,O){return typeof n.copyFile=="function"?n.copyFile(F,P,x=>x?O(x):E(A,P,T,O)):b(A,F,P,T,O)}function b(A,F,P,T,O){let x=n.createReadStream(F);x.on("error",k=>O(k)).once("open",()=>{let k=n.createWriteStream(P,{mode:A.mode});k.on("error",U=>O(U)).on("open",()=>x.pipe(k)).once("close",()=>E(A,P,T,O))})}function E(A,F,P,T){n.chmod(F,A.mode,O=>O?T(O):P.preserveTimestamps?u(F,A.atime,A.mtime,T):T())}function y(A,F,P,T,O,x){return F?F&&!F.isDirectory()?x(new Error(`Cannot overwrite non-directory '${T}' with directory '${P}'.`)):w(P,T,O,x):D(A,P,T,O,x)}function D(A,F,P,T,O){n.mkdir(P,x=>{if(x)return O(x);w(F,P,T,k=>k?O(k):n.chmod(P,A.mode,O))})}function w(A,F,P,T){n.readdir(A,(O,x)=>O?T(O):v(x,A,F,P,T))}function v(A,F,P,T,O){let x=A.pop();return x?m(A,x,F,P,T,O):O()}function m(A,F,P,T,O,x){let k=s.join(P,F),U=s.join(T,F);r.checkPaths(k,U,"copy",(L,q)=>{if(L)return x(L);let{destStat:V}=q;c(V,k,U,O,et=>et?x(et):v(A,P,T,O,x))})}function _(A,F,P,T,O){n.readlink(F,(x,k)=>{if(x)return O(x);if(T.dereference&&(k=s.resolve(process.cwd(),k)),A)n.readlink(P,(U,L)=>U?U.code==="EINVAL"||U.code==="UNKNOWN"?n.symlink(k,P,O):O(U):(T.dereference&&(L=s.resolve(process.cwd(),L)),r.isSrcSubdir(k,L)?O(new Error(`Cannot copy '${k}' to a subdirectory of itself, '${L}'.`)):A.isDirectory()&&r.isSrcSubdir(L,k)?O(new Error(`Cannot overwrite '${L}' with '${k}'.`)):S(k,P,O)));else return n.symlink(k,P,O)})}function S(A,F,P){n.unlink(F,T=>T?P(T):n.symlink(A,F,P))}l.exports=e}),vi=N((t,l)=>{"use strict";B();var n=Yt().fromCallback;l.exports={copy:n(pl())}}),dl=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=Z("assert"),p=process.platform==="win32";function u(b){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(E=>{b[E]=b[E]||n[E],E=E+"Sync",b[E]=b[E]||n[E]}),b.maxBusyTries=b.maxBusyTries||3}function r(b,E,y){let D=0;typeof E=="function"&&(y=E,E={}),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i.strictEqual(typeof y,"function","rimraf: callback function required"),i(E,"rimraf: invalid options argument provided"),i.strictEqual(typeof E,"object","rimraf: options should be object"),u(E),e(b,E,function w(v){if(v){if((v.code==="EBUSY"||v.code==="ENOTEMPTY"||v.code==="EPERM")&&D<E.maxBusyTries){D++;let m=D*100;return setTimeout(()=>e(b,E,w),m)}v.code==="ENOENT"&&(v=null)}y(v)})}function e(b,E,y){i(b),i(E),i(typeof y=="function"),E.lstat(b,(D,w)=>{if(D&&D.code==="ENOENT")return y(null);if(D&&D.code==="EPERM"&&p)return f(b,E,D,y);if(w&&w.isDirectory())return c(b,E,D,y);E.unlink(b,v=>{if(v){if(v.code==="ENOENT")return y(null);if(v.code==="EPERM")return p?f(b,E,v,y):c(b,E,v,y);if(v.code==="EISDIR")return c(b,E,v,y)}return y(v)})})}function f(b,E,y,D){i(b),i(E),i(typeof D=="function"),y&&i(y instanceof Error),E.chmod(b,438,w=>{w?D(w.code==="ENOENT"?null:y):E.stat(b,(v,m)=>{v?D(v.code==="ENOENT"?null:y):m.isDirectory()?c(b,E,y,D):E.unlink(b,D)})})}function a(b,E,y){let D;i(b),i(E),y&&i(y instanceof Error);try{E.chmodSync(b,438)}catch(w){if(w.code==="ENOENT")return;throw y}try{D=E.statSync(b)}catch(w){if(w.code==="ENOENT")return;throw y}D.isDirectory()?h(b,E,y):E.unlinkSync(b)}function c(b,E,y,D){i(b),i(E),y&&i(y instanceof Error),i(typeof D=="function"),E.rmdir(b,w=>{w&&(w.code==="ENOTEMPTY"||w.code==="EEXIST"||w.code==="EPERM")?o(b,E,D):w&&w.code==="ENOTDIR"?D(y):D(w)})}function o(b,E,y){i(b),i(E),i(typeof y=="function"),E.readdir(b,(D,w)=>{if(D)return y(D);let v=w.length,m;if(v===0)return E.rmdir(b,y);w.forEach(_=>{r(s.join(b,_),E,S=>{if(!m){if(S)return y(m=S);--v===0&&E.rmdir(b,y)}})})})}function d(b,E){let y;E=E||{},u(E),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i(E,"rimraf: missing options"),i.strictEqual(typeof E,"object","rimraf: options should be object");try{y=E.lstatSync(b)}catch(D){if(D.code==="ENOENT")return;D.code==="EPERM"&&p&&a(b,E,D)}try{y&&y.isDirectory()?h(b,E,null):E.unlinkSync(b)}catch(D){if(D.code==="ENOENT")return;if(D.code==="EPERM")return p?a(b,E,D):h(b,E,D);if(D.code!=="EISDIR")throw D;h(b,E,D)}}function h(b,E,y){i(b),i(E),y&&i(y instanceof Error);try{E.rmdirSync(b)}catch(D){if(D.code==="ENOTDIR")throw y;if(D.code==="ENOTEMPTY"||D.code==="EEXIST"||D.code==="EPERM")g(b,E);else if(D.code!=="ENOENT")throw D}}function g(b,E){if(i(b),i(E),E.readdirSync(b).forEach(y=>d(s.join(b,y),E)),p){let y=Date.now();do try{return E.rmdirSync(b,E)}catch{}while(Date.now()-y<500)}else return E.rmdirSync(b,E)}l.exports=r,r.sync=d}),sr=N((t,l)=>{"use strict";B();var n=Yt().fromCallback,s=dl();l.exports={remove:n(s),removeSync:s.sync}}),ml=N((t,l)=>{"use strict";B();var n=Yt().fromCallback,s=Ct(),i=Z("path"),p=Kt(),u=sr(),r=n(function(f,a){a=a||function(){},s.readdir(f,(c,o)=>{if(c)return p.mkdirs(f,a);o=o.map(h=>i.join(f,h)),d();function d(){let h=o.pop();if(!h)return a();u.remove(h,g=>{if(g)return a(g);d()})}})});function e(f){let a;try{a=s.readdirSync(f)}catch{return p.mkdirsSync(f)}a.forEach(c=>{c=i.join(f,c),u.removeSync(c)})}l.exports={emptyDirSync:e,emptydirSync:e,emptyDir:r,emptydir:r}}),yl=N((t,l)=>{"use strict";B();var n=Yt().fromCallback,s=Z("path"),i=Ct(),p=Kt(),u=ne().pathExists;function r(f,a){function c(){i.writeFile(f,"",o=>{if(o)return a(o);a()})}i.stat(f,(o,d)=>{if(!o&&d.isFile())return a();let h=s.dirname(f);u(h,(g,b)=>{if(g)return a(g);if(b)return c();p.mkdirs(h,E=>{if(E)return a(E);c()})})})}function e(f){let a;try{a=i.statSync(f)}catch{}if(a&&a.isFile())return;let c=s.dirname(f);i.existsSync(c)||p.mkdirsSync(c),i.writeFileSync(f,"")}l.exports={createFile:n(r),createFileSync:e}}),gl=N((t,l)=>{"use strict";B();var n=Yt().fromCallback,s=Z("path"),i=Ct(),p=Kt(),u=ne().pathExists;function r(f,a,c){function o(d,h){i.link(d,h,g=>{if(g)return c(g);c(null)})}u(a,(d,h)=>{if(d)return c(d);if(h)return c(null);i.lstat(f,g=>{if(g)return g.message=g.message.replace("lstat","ensureLink"),c(g);let b=s.dirname(a);u(b,(E,y)=>{if(E)return c(E);if(y)return o(f,a);p.mkdirs(b,D=>{if(D)return c(D);o(f,a)})})})})}function e(f,a){if(i.existsSync(a))return;try{i.lstatSync(f)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let c=s.dirname(a);return i.existsSync(c)||p.mkdirsSync(c),i.linkSync(f,a)}l.exports={createLink:n(r),createLinkSync:e}}),bl=N((t,l)=>{"use strict";B();var n=Z("path"),s=Ct(),i=ne().pathExists;function p(r,e,f){if(n.isAbsolute(r))return s.lstat(r,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),f(a)):f(null,{toCwd:r,toDst:r}));{let a=n.dirname(e),c=n.join(a,r);return i(c,(o,d)=>o?f(o):d?f(null,{toCwd:c,toDst:r}):s.lstat(r,h=>h?(h.message=h.message.replace("lstat","ensureSymlink"),f(h)):f(null,{toCwd:r,toDst:n.relative(a,r)})))}}function u(r,e){let f;if(n.isAbsolute(r)){if(f=s.existsSync(r),!f)throw new Error("absolute srcpath does not exist");return{toCwd:r,toDst:r}}else{let a=n.dirname(e),c=n.join(a,r);if(f=s.existsSync(c),f)return{toCwd:c,toDst:r};if(f=s.existsSync(r),!f)throw new Error("relative srcpath does not exist");return{toCwd:r,toDst:n.relative(a,r)}}}l.exports={symlinkPaths:p,symlinkPathsSync:u}}),vl=N((t,l)=>{"use strict";B();var n=Ct();function s(p,u,r){if(r=typeof u=="function"?u:r,u=typeof u=="function"?!1:u,u)return r(null,u);n.lstat(p,(e,f)=>{if(e)return r(null,"file");u=f&&f.isDirectory()?"dir":"file",r(null,u)})}function i(p,u){let r;if(u)return u;try{r=n.lstatSync(p)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}l.exports={symlinkType:s,symlinkTypeSync:i}}),El=N((t,l)=>{"use strict";B();var n=Yt().fromCallback,s=Z("path"),i=Ct(),p=Kt(),u=p.mkdirs,r=p.mkdirsSync,e=bl(),f=e.symlinkPaths,a=e.symlinkPathsSync,c=vl(),o=c.symlinkType,d=c.symlinkTypeSync,h=ne().pathExists;function g(E,y,D,w){w=typeof D=="function"?D:w,D=typeof D=="function"?!1:D,h(y,(v,m)=>{if(v)return w(v);if(m)return w(null);f(E,y,(_,S)=>{if(_)return w(_);E=S.toDst,o(S.toCwd,D,(A,F)=>{if(A)return w(A);let P=s.dirname(y);h(P,(T,O)=>{if(T)return w(T);if(O)return i.symlink(E,y,F,w);u(P,x=>{if(x)return w(x);i.symlink(E,y,F,w)})})})})})}function b(E,y,D){if(i.existsSync(y))return;let w=a(E,y);E=w.toDst,D=d(w.toCwd,D);let v=s.dirname(y);return i.existsSync(v)||r(v),i.symlinkSync(E,y,D)}l.exports={createSymlink:n(g),createSymlinkSync:b}}),_l=N((t,l)=>{"use strict";B();var n=yl(),s=gl(),i=El();l.exports={createFile:n.createFile,createFileSync:n.createFileSync,ensureFile:n.createFile,ensureFileSync:n.createFileSync,createLink:s.createLink,createLinkSync:s.createLinkSync,ensureLink:s.createLink,ensureLinkSync:s.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}}),wl=N((t,l)=>{B();var n;try{n=Ct()}catch{n=Z("fs")}function s(a,c,o){o==null&&(o=c,c={}),typeof c=="string"&&(c={encoding:c}),c=c||{};var d=c.fs||n,h=!0;"throws"in c&&(h=c.throws),d.readFile(a,c,function(g,b){if(g)return o(g);b=e(b);var E;try{E=JSON.parse(b,c?c.reviver:null)}catch(y){return h?(y.message=a+": "+y.message,o(y)):o(null,null)}o(null,E)})}function i(a,c){c=c||{},typeof c=="string"&&(c={encoding:c});var o=c.fs||n,d=!0;"throws"in c&&(d=c.throws);try{var h=o.readFileSync(a,c);return h=e(h),JSON.parse(h,c.reviver)}catch(g){if(d)throw g.message=a+": "+g.message,g;return null}}function p(a,c){var o,d=`
|
39
|
-
`;typeof c=="object"&&c!==null&&(c.spaces&&(o=c.spaces),c.EOL&&(d=c.EOL));var h=JSON.stringify(a,c?c.replacer:null,o);return h.replace(/\n/g,d)+d}function u(a,c,o,d){d==null&&(d=o,o={}),o=o||{};var h=o.fs||n,g="";try{g=p(c,o)}catch(b){d&&d(b,null);return}h.writeFile(a,g,o,d)}function r(a,c,o){o=o||{};var d=o.fs||n,h=p(c,o);return d.writeFileSync(a,h,o)}function e(a){return Buffer.isBuffer(a)&&(a=a.toString("utf8")),a=a.replace(/^\uFEFF/,""),a}var f={readFile:s,readFileSync:i,writeFile:u,writeFileSync:r};l.exports=f}),$r=N((t,l)=>{"use strict";B();var n=Yt().fromCallback,s=wl();l.exports={readJson:n(s.readFile),readJsonSync:s.readFileSync,writeJson:n(s.writeFile),writeJsonSync:s.writeFileSync}}),Dl=N((t,l)=>{"use strict";B();var n=Z("path"),s=Kt(),i=ne().pathExists,p=$r();function u(r,e,f,a){typeof f=="function"&&(a=f,f={});let c=n.dirname(r);i(c,(o,d)=>{if(o)return a(o);if(d)return p.writeJson(r,e,f,a);s.mkdirs(c,h=>{if(h)return a(h);p.writeJson(r,e,f,a)})})}l.exports=u}),Sl=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=Kt(),p=$r();function u(r,e,f){let a=s.dirname(r);n.existsSync(a)||i.mkdirsSync(a),p.writeJsonSync(r,e,f)}l.exports=u}),Al=N((t,l)=>{"use strict";B();var n=Yt().fromCallback,s=$r();s.outputJson=n(Dl()),s.outputJsonSync=Sl(),s.outputJSON=s.outputJson,s.outputJSONSync=s.outputJsonSync,s.writeJSON=s.writeJson,s.writeJSONSync=s.writeJsonSync,s.readJSON=s.readJson,s.readJSONSync=s.readJsonSync,l.exports=s}),Cl=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=bi().copySync,p=sr().removeSync,u=Kt().mkdirpSync,r=ir();function e(o,d,h){h=h||{};let g=h.overwrite||h.clobber||!1,{srcStat:b}=r.checkPathsSync(o,d,"move");return r.checkParentPathsSync(o,b,d,"move"),u(s.dirname(d)),f(o,d,g)}function f(o,d,h){if(h)return p(d),a(o,d,h);if(n.existsSync(d))throw new Error("dest already exists.");return a(o,d,h)}function a(o,d,h){try{n.renameSync(o,d)}catch(g){if(g.code!=="EXDEV")throw g;return c(o,d,h)}}function c(o,d,h){return i(o,d,{overwrite:h,errorOnExist:!0}),p(o)}l.exports=e}),xl=N((t,l)=>{"use strict";B(),l.exports={moveSync:Cl()}}),Fl=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=vi().copy,p=sr().remove,u=Kt().mkdirp,r=ne().pathExists,e=ir();function f(d,h,g,b){typeof g=="function"&&(b=g,g={});let E=g.overwrite||g.clobber||!1;e.checkPaths(d,h,"move",(y,D)=>{if(y)return b(y);let{srcStat:w}=D;e.checkParentPaths(d,w,h,"move",v=>{if(v)return b(v);u(s.dirname(h),m=>m?b(m):a(d,h,E,b))})})}function a(d,h,g,b){if(g)return p(h,E=>E?b(E):c(d,h,g,b));r(h,(E,y)=>E?b(E):y?b(new Error("dest already exists.")):c(d,h,g,b))}function c(d,h,g,b){n.rename(d,h,E=>E?E.code!=="EXDEV"?b(E):o(d,h,g,b):b())}function o(d,h,g,b){i(d,h,{overwrite:g,errorOnExist:!0},E=>E?b(E):p(d,b))}l.exports=f}),kl=N((t,l)=>{"use strict";B();var n=Yt().fromCallback;l.exports={move:n(Fl())}}),Ol=N((t,l)=>{"use strict";B();var n=Yt().fromCallback,s=Ct(),i=Z("path"),p=Kt(),u=ne().pathExists;function r(f,a,c,o){typeof c=="function"&&(o=c,c="utf8");let d=i.dirname(f);u(d,(h,g)=>{if(h)return o(h);if(g)return s.writeFile(f,a,c,o);p.mkdirs(d,b=>{if(b)return o(b);s.writeFile(f,a,c,o)})})}function e(f,...a){let c=i.dirname(f);if(s.existsSync(c))return s.writeFileSync(f,...a);p.mkdirsSync(c),s.writeFileSync(f,...a)}l.exports={outputFile:n(r),outputFileSync:e}}),Rl=N((t,l)=>{"use strict";B(),l.exports=Object.assign({},mi(),bi(),vi(),ml(),_l(),Al(),Kt(),xl(),kl(),Ol(),ne(),sr());var n=Z("fs");Object.getOwnPropertyDescriptor(n,"promises")&&Object.defineProperty(l.exports,"promises",{get(){return n.promises}})});B();B();var em=Ot(rl());B();B();function Tl(t,l){if(!(t instanceof l))throw new TypeError("Cannot call a class as a function")}B();B();function Ir(t){return Ir=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Ir(t)}B();function Bl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pl(t,l){if(l&&(Ir(l)==="object"||typeof l=="function"))return l;if(l!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bl(t)}B();function rr(t){return rr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(l){return l.__proto__||Object.getPrototypeOf(l)},rr(t)}B();B();function Ie(t,l){return Ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},Ie(t,l)}function Il(t,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(l&&l.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),l&&Ie(t,l)}B();B();function Ll(t){return Function.toString.call(t).indexOf("[native code]")!==-1}B();B();function Nl(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function er(t,l,n){return Nl()?er=Reflect.construct.bind():er=function(s,i,p){var u=[null];u.push.apply(u,i);var r=Function.bind.apply(s,u),e=new r;return p&&Ie(e,p.prototype),e},er.apply(null,arguments)}function Lr(t){var l=typeof Map=="function"?new Map:void 0;return Lr=function(n){if(n===null||!Ll(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof l<"u"){if(l.has(n))return l.get(n);l.set(n,s)}function s(){return er(n,arguments,rr(this).constructor)}return s.prototype=Object.create(n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),Ie(s,n)},Lr(t)}var Ml=Ot(al()),Hr=Ot(Rl()),jl=function(t){Il(l,t);function l(n){var s;return Tl(this,l),s=Pl(this,rr(l).call(this,"No package.json could be found upwards from the directory ".concat(n))),s.directory=n,s}return l}(Lr(Error));function $l(t,l){try{var n=Hr.default.readJsonSync(or.default.join(t,"package.json"));if(l.current===void 0&&(l.current=t),n.workspaces||n.bolt)return t}catch(s){if(s.code!=="ENOENT")throw s}}function Hl(t){try{var l=Hr.default.readJsonSync(or.default.join(t,"lerna.json"));if(l.useWorkspaces!==!0)return t}catch(n){if(n.code!=="ENOENT")throw n}}function Ul(t){var l=Hr.default.existsSync(or.default.join(t,"pnpm-workspace.yaml"));if(l)return t}function Gl(t){var l={current:void 0},n=(0,Ml.sync)(function(s){return[Hl(s),$l(s,l),Ul(s)].find(function(i){return i})},{cwd:t,type:"directory"});if(l.current===void 0)throw new jl(t);return n===void 0?l.current:n}B();var ql=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,zl=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,Wl=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Tr={Space_Separator:ql,ID_Start:zl,ID_Continue:Wl},Pt={isSpaceSeparator(t){return typeof t=="string"&&Tr.Space_Separator.test(t)},isIdStartChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t==="$"||t==="_"||Tr.ID_Start.test(t))},isIdContinueChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||t==="$"||t==="_"||t==="\u200C"||t==="\u200D"||Tr.ID_Continue.test(t))},isDigit(t){return typeof t=="string"&&/[0-9]/.test(t)},isHexDigit(t){return typeof t=="string"&&/[0-9A-Fa-f]/.test(t)}},Nr,Gt,ee,nr,ue,Jt,jt,Ur,Pe,Vl=function(t,l){Nr=String(t),Gt="start",ee=[],nr=0,ue=1,Jt=0,jt=void 0,Ur=void 0,Pe=void 0;do jt=Yl(),Zl[Gt]();while(jt.type!=="eof");return typeof l=="function"?Mr({"":Pe},"",l):Pe};function Mr(t,l,n){let s=t[l];if(s!=null&&typeof s=="object")if(Array.isArray(s))for(let i=0;i<s.length;i++){let p=String(i),u=Mr(s,p,n);u===void 0?delete s[p]:Object.defineProperty(s,p,{value:u,writable:!0,enumerable:!0,configurable:!0})}else for(let i in s){let p=Mr(s,i,n);p===void 0?delete s[i]:Object.defineProperty(s,i,{value:p,writable:!0,enumerable:!0,configurable:!0})}return n.call(t,l,s)}var Dt,wt,Be,te,At;function Yl(){for(Dt="default",wt="",Be=!1,te=1;;){At=re();let t=Ei[Dt]();if(t)return t}}function re(){if(Nr[nr])return String.fromCodePoint(Nr.codePointAt(nr))}function st(){let t=re();return t===`
|
38
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),r.checkPaths(A,x,"copy",(F,O)=>{if(F)return T(F);let{srcStat:I,destStat:$}=O;r.checkParentPaths(A,I,x,"copy",R=>R?T(R):L.filter?a(f,$,A,x,L,T):f($,A,x,L,T))})}function f(A,x,L,T,F){let O=s.dirname(L);p(O,(I,$)=>{if(I)return F(I);if($)return c(A,x,L,T,F);i(O,R=>R?F(R):c(A,x,L,T,F))})}function a(A,x,L,T,F,O){Promise.resolve(F.filter(L,T)).then(I=>I?A(x,L,T,F,O):O(),I=>O(I))}function c(A,x,L,T,F){return T.filter?a(o,A,x,L,T,F):o(A,x,L,T,F)}function o(A,x,L,T,F){(T.dereference?n.stat:n.lstat)(x,(O,I)=>{if(O)return F(O);if(I.isDirectory())return g(I,A,x,L,T,F);if(I.isFile()||I.isCharacterDevice()||I.isBlockDevice())return d(I,A,x,L,T,F);if(I.isSymbolicLink())return _(A,x,L,T,F)})}function d(A,x,L,T,F,O){return x?h(A,L,T,F,O):y(A,L,T,F,O)}function h(A,x,L,T,F){if(T.overwrite)n.unlink(L,O=>O?F(O):y(A,x,L,T,F));else return T.errorOnExist?F(new Error(`'${L}' already exists`)):F()}function y(A,x,L,T,F){return typeof n.copyFile=="function"?n.copyFile(x,L,O=>O?F(O):E(A,L,T,F)):b(A,x,L,T,F)}function b(A,x,L,T,F){let O=n.createReadStream(x);O.on("error",I=>F(I)).once("open",()=>{let I=n.createWriteStream(L,{mode:A.mode});I.on("error",$=>F($)).on("open",()=>O.pipe(I)).once("close",()=>E(A,L,T,F))})}function E(A,x,L,T){n.chmod(x,A.mode,F=>F?T(F):L.preserveTimestamps?u(x,A.atime,A.mtime,T):T())}function g(A,x,L,T,F,O){return x?x&&!x.isDirectory()?O(new Error(`Cannot overwrite non-directory '${T}' with directory '${L}'.`)):w(L,T,F,O):D(A,L,T,F,O)}function D(A,x,L,T,F){n.mkdir(L,O=>{if(O)return F(O);w(x,L,T,I=>I?F(I):n.chmod(L,A.mode,F))})}function w(A,x,L,T){n.readdir(A,(F,O)=>F?T(F):v(O,A,x,L,T))}function v(A,x,L,T,F){let O=A.pop();return O?m(A,O,x,L,T,F):F()}function m(A,x,L,T,F,O){let I=s.join(L,x),$=s.join(T,x);r.checkPaths(I,$,"copy",(R,G)=>{if(R)return O(R);let{destStat:W}=G;c(W,I,$,F,Q=>Q?O(Q):v(A,L,T,F,O))})}function _(A,x,L,T,F){n.readlink(x,(O,I)=>{if(O)return F(O);if(T.dereference&&(I=s.resolve(process.cwd(),I)),A)n.readlink(L,($,R)=>$?$.code==="EINVAL"||$.code==="UNKNOWN"?n.symlink(I,L,F):F($):(T.dereference&&(R=s.resolve(process.cwd(),R)),r.isSrcSubdir(I,R)?F(new Error(`Cannot copy '${I}' to a subdirectory of itself, '${R}'.`)):A.isDirectory()&&r.isSrcSubdir(R,I)?F(new Error(`Cannot overwrite '${R}' with '${I}'.`)):S(I,L,F)));else return n.symlink(I,L,F)})}function S(A,x,L){n.unlink(x,T=>T?L(T):n.symlink(A,x,L))}l.exports=e}),vi=N((t,l)=>{"use strict";B();var n=Yt().fromCallback;l.exports={copy:n(pl())}}),dl=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=Z("assert"),p=process.platform==="win32";function u(b){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(E=>{b[E]=b[E]||n[E],E=E+"Sync",b[E]=b[E]||n[E]}),b.maxBusyTries=b.maxBusyTries||3}function r(b,E,g){let D=0;typeof E=="function"&&(g=E,E={}),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i.strictEqual(typeof g,"function","rimraf: callback function required"),i(E,"rimraf: invalid options argument provided"),i.strictEqual(typeof E,"object","rimraf: options should be object"),u(E),e(b,E,function w(v){if(v){if((v.code==="EBUSY"||v.code==="ENOTEMPTY"||v.code==="EPERM")&&D<E.maxBusyTries){D++;let m=D*100;return setTimeout(()=>e(b,E,w),m)}v.code==="ENOENT"&&(v=null)}g(v)})}function e(b,E,g){i(b),i(E),i(typeof g=="function"),E.lstat(b,(D,w)=>{if(D&&D.code==="ENOENT")return g(null);if(D&&D.code==="EPERM"&&p)return f(b,E,D,g);if(w&&w.isDirectory())return c(b,E,D,g);E.unlink(b,v=>{if(v){if(v.code==="ENOENT")return g(null);if(v.code==="EPERM")return p?f(b,E,v,g):c(b,E,v,g);if(v.code==="EISDIR")return c(b,E,v,g)}return g(v)})})}function f(b,E,g,D){i(b),i(E),i(typeof D=="function"),g&&i(g instanceof Error),E.chmod(b,438,w=>{w?D(w.code==="ENOENT"?null:g):E.stat(b,(v,m)=>{v?D(v.code==="ENOENT"?null:g):m.isDirectory()?c(b,E,g,D):E.unlink(b,D)})})}function a(b,E,g){let D;i(b),i(E),g&&i(g instanceof Error);try{E.chmodSync(b,438)}catch(w){if(w.code==="ENOENT")return;throw g}try{D=E.statSync(b)}catch(w){if(w.code==="ENOENT")return;throw g}D.isDirectory()?h(b,E,g):E.unlinkSync(b)}function c(b,E,g,D){i(b),i(E),g&&i(g instanceof Error),i(typeof D=="function"),E.rmdir(b,w=>{w&&(w.code==="ENOTEMPTY"||w.code==="EEXIST"||w.code==="EPERM")?o(b,E,D):w&&w.code==="ENOTDIR"?D(g):D(w)})}function o(b,E,g){i(b),i(E),i(typeof g=="function"),E.readdir(b,(D,w)=>{if(D)return g(D);let v=w.length,m;if(v===0)return E.rmdir(b,g);w.forEach(_=>{r(s.join(b,_),E,S=>{if(!m){if(S)return g(m=S);--v===0&&E.rmdir(b,g)}})})})}function d(b,E){let g;E=E||{},u(E),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i(E,"rimraf: missing options"),i.strictEqual(typeof E,"object","rimraf: options should be object");try{g=E.lstatSync(b)}catch(D){if(D.code==="ENOENT")return;D.code==="EPERM"&&p&&a(b,E,D)}try{g&&g.isDirectory()?h(b,E,null):E.unlinkSync(b)}catch(D){if(D.code==="ENOENT")return;if(D.code==="EPERM")return p?a(b,E,D):h(b,E,D);if(D.code!=="EISDIR")throw D;h(b,E,D)}}function h(b,E,g){i(b),i(E),g&&i(g instanceof Error);try{E.rmdirSync(b)}catch(D){if(D.code==="ENOTDIR")throw g;if(D.code==="ENOTEMPTY"||D.code==="EEXIST"||D.code==="EPERM")y(b,E);else if(D.code!=="ENOENT")throw D}}function y(b,E){if(i(b),i(E),E.readdirSync(b).forEach(g=>d(s.join(b,g),E)),p){let g=Date.now();do try{return E.rmdirSync(b,E)}catch{}while(Date.now()-g<500)}else return E.rmdirSync(b,E)}l.exports=r,r.sync=d}),sr=N((t,l)=>{"use strict";B();var n=Yt().fromCallback,s=dl();l.exports={remove:n(s),removeSync:s.sync}}),ml=N((t,l)=>{"use strict";B();var n=Yt().fromCallback,s=Ct(),i=Z("path"),p=Kt(),u=sr(),r=n(function(f,a){a=a||function(){},s.readdir(f,(c,o)=>{if(c)return p.mkdirs(f,a);o=o.map(h=>i.join(f,h)),d();function d(){let h=o.pop();if(!h)return a();u.remove(h,y=>{if(y)return a(y);d()})}})});function e(f){let a;try{a=s.readdirSync(f)}catch{return p.mkdirsSync(f)}a.forEach(c=>{c=i.join(f,c),u.removeSync(c)})}l.exports={emptyDirSync:e,emptydirSync:e,emptyDir:r,emptydir:r}}),yl=N((t,l)=>{"use strict";B();var n=Yt().fromCallback,s=Z("path"),i=Ct(),p=Kt(),u=ne().pathExists;function r(f,a){function c(){i.writeFile(f,"",o=>{if(o)return a(o);a()})}i.stat(f,(o,d)=>{if(!o&&d.isFile())return a();let h=s.dirname(f);u(h,(y,b)=>{if(y)return a(y);if(b)return c();p.mkdirs(h,E=>{if(E)return a(E);c()})})})}function e(f){let a;try{a=i.statSync(f)}catch{}if(a&&a.isFile())return;let c=s.dirname(f);i.existsSync(c)||p.mkdirsSync(c),i.writeFileSync(f,"")}l.exports={createFile:n(r),createFileSync:e}}),gl=N((t,l)=>{"use strict";B();var n=Yt().fromCallback,s=Z("path"),i=Ct(),p=Kt(),u=ne().pathExists;function r(f,a,c){function o(d,h){i.link(d,h,y=>{if(y)return c(y);c(null)})}u(a,(d,h)=>{if(d)return c(d);if(h)return c(null);i.lstat(f,y=>{if(y)return y.message=y.message.replace("lstat","ensureLink"),c(y);let b=s.dirname(a);u(b,(E,g)=>{if(E)return c(E);if(g)return o(f,a);p.mkdirs(b,D=>{if(D)return c(D);o(f,a)})})})})}function e(f,a){if(i.existsSync(a))return;try{i.lstatSync(f)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let c=s.dirname(a);return i.existsSync(c)||p.mkdirsSync(c),i.linkSync(f,a)}l.exports={createLink:n(r),createLinkSync:e}}),bl=N((t,l)=>{"use strict";B();var n=Z("path"),s=Ct(),i=ne().pathExists;function p(r,e,f){if(n.isAbsolute(r))return s.lstat(r,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),f(a)):f(null,{toCwd:r,toDst:r}));{let a=n.dirname(e),c=n.join(a,r);return i(c,(o,d)=>o?f(o):d?f(null,{toCwd:c,toDst:r}):s.lstat(r,h=>h?(h.message=h.message.replace("lstat","ensureSymlink"),f(h)):f(null,{toCwd:r,toDst:n.relative(a,r)})))}}function u(r,e){let f;if(n.isAbsolute(r)){if(f=s.existsSync(r),!f)throw new Error("absolute srcpath does not exist");return{toCwd:r,toDst:r}}else{let a=n.dirname(e),c=n.join(a,r);if(f=s.existsSync(c),f)return{toCwd:c,toDst:r};if(f=s.existsSync(r),!f)throw new Error("relative srcpath does not exist");return{toCwd:r,toDst:n.relative(a,r)}}}l.exports={symlinkPaths:p,symlinkPathsSync:u}}),vl=N((t,l)=>{"use strict";B();var n=Ct();function s(p,u,r){if(r=typeof u=="function"?u:r,u=typeof u=="function"?!1:u,u)return r(null,u);n.lstat(p,(e,f)=>{if(e)return r(null,"file");u=f&&f.isDirectory()?"dir":"file",r(null,u)})}function i(p,u){let r;if(u)return u;try{r=n.lstatSync(p)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}l.exports={symlinkType:s,symlinkTypeSync:i}}),El=N((t,l)=>{"use strict";B();var n=Yt().fromCallback,s=Z("path"),i=Ct(),p=Kt(),u=p.mkdirs,r=p.mkdirsSync,e=bl(),f=e.symlinkPaths,a=e.symlinkPathsSync,c=vl(),o=c.symlinkType,d=c.symlinkTypeSync,h=ne().pathExists;function y(E,g,D,w){w=typeof D=="function"?D:w,D=typeof D=="function"?!1:D,h(g,(v,m)=>{if(v)return w(v);if(m)return w(null);f(E,g,(_,S)=>{if(_)return w(_);E=S.toDst,o(S.toCwd,D,(A,x)=>{if(A)return w(A);let L=s.dirname(g);h(L,(T,F)=>{if(T)return w(T);if(F)return i.symlink(E,g,x,w);u(L,O=>{if(O)return w(O);i.symlink(E,g,x,w)})})})})})}function b(E,g,D){if(i.existsSync(g))return;let w=a(E,g);E=w.toDst,D=d(w.toCwd,D);let v=s.dirname(g);return i.existsSync(v)||r(v),i.symlinkSync(E,g,D)}l.exports={createSymlink:n(y),createSymlinkSync:b}}),_l=N((t,l)=>{"use strict";B();var n=yl(),s=gl(),i=El();l.exports={createFile:n.createFile,createFileSync:n.createFileSync,ensureFile:n.createFile,ensureFileSync:n.createFileSync,createLink:s.createLink,createLinkSync:s.createLinkSync,ensureLink:s.createLink,ensureLinkSync:s.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}}),wl=N((t,l)=>{B();var n;try{n=Ct()}catch{n=Z("fs")}function s(a,c,o){o==null&&(o=c,c={}),typeof c=="string"&&(c={encoding:c}),c=c||{};var d=c.fs||n,h=!0;"throws"in c&&(h=c.throws),d.readFile(a,c,function(y,b){if(y)return o(y);b=e(b);var E;try{E=JSON.parse(b,c?c.reviver:null)}catch(g){return h?(g.message=a+": "+g.message,o(g)):o(null,null)}o(null,E)})}function i(a,c){c=c||{},typeof c=="string"&&(c={encoding:c});var o=c.fs||n,d=!0;"throws"in c&&(d=c.throws);try{var h=o.readFileSync(a,c);return h=e(h),JSON.parse(h,c.reviver)}catch(y){if(d)throw y.message=a+": "+y.message,y;return null}}function p(a,c){var o,d=`
|
39
|
+
`;typeof c=="object"&&c!==null&&(c.spaces&&(o=c.spaces),c.EOL&&(d=c.EOL));var h=JSON.stringify(a,c?c.replacer:null,o);return h.replace(/\n/g,d)+d}function u(a,c,o,d){d==null&&(d=o,o={}),o=o||{};var h=o.fs||n,y="";try{y=p(c,o)}catch(b){d&&d(b,null);return}h.writeFile(a,y,o,d)}function r(a,c,o){o=o||{};var d=o.fs||n,h=p(c,o);return d.writeFileSync(a,h,o)}function e(a){return Buffer.isBuffer(a)&&(a=a.toString("utf8")),a=a.replace(/^\uFEFF/,""),a}var f={readFile:s,readFileSync:i,writeFile:u,writeFileSync:r};l.exports=f}),$r=N((t,l)=>{"use strict";B();var n=Yt().fromCallback,s=wl();l.exports={readJson:n(s.readFile),readJsonSync:s.readFileSync,writeJson:n(s.writeFile),writeJsonSync:s.writeFileSync}}),Dl=N((t,l)=>{"use strict";B();var n=Z("path"),s=Kt(),i=ne().pathExists,p=$r();function u(r,e,f,a){typeof f=="function"&&(a=f,f={});let c=n.dirname(r);i(c,(o,d)=>{if(o)return a(o);if(d)return p.writeJson(r,e,f,a);s.mkdirs(c,h=>{if(h)return a(h);p.writeJson(r,e,f,a)})})}l.exports=u}),Sl=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=Kt(),p=$r();function u(r,e,f){let a=s.dirname(r);n.existsSync(a)||i.mkdirsSync(a),p.writeJsonSync(r,e,f)}l.exports=u}),Al=N((t,l)=>{"use strict";B();var n=Yt().fromCallback,s=$r();s.outputJson=n(Dl()),s.outputJsonSync=Sl(),s.outputJSON=s.outputJson,s.outputJSONSync=s.outputJsonSync,s.writeJSON=s.writeJson,s.writeJSONSync=s.writeJsonSync,s.readJSON=s.readJson,s.readJSONSync=s.readJsonSync,l.exports=s}),Cl=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=bi().copySync,p=sr().removeSync,u=Kt().mkdirpSync,r=ir();function e(o,d,h){h=h||{};let y=h.overwrite||h.clobber||!1,{srcStat:b}=r.checkPathsSync(o,d,"move");return r.checkParentPathsSync(o,b,d,"move"),u(s.dirname(d)),f(o,d,y)}function f(o,d,h){if(h)return p(d),a(o,d,h);if(n.existsSync(d))throw new Error("dest already exists.");return a(o,d,h)}function a(o,d,h){try{n.renameSync(o,d)}catch(y){if(y.code!=="EXDEV")throw y;return c(o,d,h)}}function c(o,d,h){return i(o,d,{overwrite:h,errorOnExist:!0}),p(o)}l.exports=e}),xl=N((t,l)=>{"use strict";B(),l.exports={moveSync:Cl()}}),Fl=N((t,l)=>{"use strict";B();var n=Ct(),s=Z("path"),i=vi().copy,p=sr().remove,u=Kt().mkdirp,r=ne().pathExists,e=ir();function f(d,h,y,b){typeof y=="function"&&(b=y,y={});let E=y.overwrite||y.clobber||!1;e.checkPaths(d,h,"move",(g,D)=>{if(g)return b(g);let{srcStat:w}=D;e.checkParentPaths(d,w,h,"move",v=>{if(v)return b(v);u(s.dirname(h),m=>m?b(m):a(d,h,E,b))})})}function a(d,h,y,b){if(y)return p(h,E=>E?b(E):c(d,h,y,b));r(h,(E,g)=>E?b(E):g?b(new Error("dest already exists.")):c(d,h,y,b))}function c(d,h,y,b){n.rename(d,h,E=>E?E.code!=="EXDEV"?b(E):o(d,h,y,b):b())}function o(d,h,y,b){i(d,h,{overwrite:y,errorOnExist:!0},E=>E?b(E):p(d,b))}l.exports=f}),kl=N((t,l)=>{"use strict";B();var n=Yt().fromCallback;l.exports={move:n(Fl())}}),Ol=N((t,l)=>{"use strict";B();var n=Yt().fromCallback,s=Ct(),i=Z("path"),p=Kt(),u=ne().pathExists;function r(f,a,c,o){typeof c=="function"&&(o=c,c="utf8");let d=i.dirname(f);u(d,(h,y)=>{if(h)return o(h);if(y)return s.writeFile(f,a,c,o);p.mkdirs(d,b=>{if(b)return o(b);s.writeFile(f,a,c,o)})})}function e(f,...a){let c=i.dirname(f);if(s.existsSync(c))return s.writeFileSync(f,...a);p.mkdirsSync(c),s.writeFileSync(f,...a)}l.exports={outputFile:n(r),outputFileSync:e}}),Rl=N((t,l)=>{"use strict";B(),l.exports=Object.assign({},mi(),bi(),vi(),ml(),_l(),Al(),Kt(),xl(),kl(),Ol(),ne(),sr());var n=Z("fs");Object.getOwnPropertyDescriptor(n,"promises")&&Object.defineProperty(l.exports,"promises",{get(){return n.promises}})});B();B();var em=Ot(rl());B();B();function Tl(t,l){if(!(t instanceof l))throw new TypeError("Cannot call a class as a function")}B();B();function Lr(t){return Lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},Lr(t)}B();function Bl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pl(t,l){if(l&&(Lr(l)==="object"||typeof l=="function"))return l;if(l!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bl(t)}B();function rr(t){return rr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(l){return l.__proto__||Object.getPrototypeOf(l)},rr(t)}B();B();function Le(t,l){return Le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},Le(t,l)}function Ll(t,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(l&&l.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),l&&Le(t,l)}B();B();function Il(t){return Function.toString.call(t).indexOf("[native code]")!==-1}B();B();function Nl(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function er(t,l,n){return Nl()?er=Reflect.construct.bind():er=function(s,i,p){var u=[null];u.push.apply(u,i);var r=Function.bind.apply(s,u),e=new r;return p&&Le(e,p.prototype),e},er.apply(null,arguments)}function Ir(t){var l=typeof Map=="function"?new Map:void 0;return Ir=function(n){if(n===null||!Il(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof l<"u"){if(l.has(n))return l.get(n);l.set(n,s)}function s(){return er(n,arguments,rr(this).constructor)}return s.prototype=Object.create(n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),Le(s,n)},Ir(t)}var jl=Ot(al()),Hr=Ot(Rl()),Ml=function(t){Ll(l,t);function l(n){var s;return Tl(this,l),s=Pl(this,rr(l).call(this,"No package.json could be found upwards from the directory ".concat(n))),s.directory=n,s}return l}(Ir(Error));function $l(t,l){try{var n=Hr.default.readJsonSync(or.default.join(t,"package.json"));if(l.current===void 0&&(l.current=t),n.workspaces||n.bolt)return t}catch(s){if(s.code!=="ENOENT")throw s}}function Hl(t){try{var l=Hr.default.readJsonSync(or.default.join(t,"lerna.json"));if(l.useWorkspaces!==!0)return t}catch(n){if(n.code!=="ENOENT")throw n}}function Ul(t){var l=Hr.default.existsSync(or.default.join(t,"pnpm-workspace.yaml"));if(l)return t}function Gl(t){var l={current:void 0},n=(0,jl.sync)(function(s){return[Hl(s),$l(s,l),Ul(s)].find(function(i){return i})},{cwd:t,type:"directory"});if(l.current===void 0)throw new Ml(t);return n===void 0?l.current:n}B();var ql=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,zl=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,Wl=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Tr={Space_Separator:ql,ID_Start:zl,ID_Continue:Wl},Pt={isSpaceSeparator(t){return typeof t=="string"&&Tr.Space_Separator.test(t)},isIdStartChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t==="$"||t==="_"||Tr.ID_Start.test(t))},isIdContinueChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||t==="$"||t==="_"||t==="\u200C"||t==="\u200D"||Tr.ID_Continue.test(t))},isDigit(t){return typeof t=="string"&&/[0-9]/.test(t)},isHexDigit(t){return typeof t=="string"&&/[0-9A-Fa-f]/.test(t)}},Nr,Gt,ee,nr,ue,Jt,Mt,Ur,Pe,Vl=function(t,l){Nr=String(t),Gt="start",ee=[],nr=0,ue=1,Jt=0,Mt=void 0,Ur=void 0,Pe=void 0;do Mt=Yl(),Zl[Gt]();while(Mt.type!=="eof");return typeof l=="function"?jr({"":Pe},"",l):Pe};function jr(t,l,n){let s=t[l];if(s!=null&&typeof s=="object")if(Array.isArray(s))for(let i=0;i<s.length;i++){let p=String(i),u=jr(s,p,n);u===void 0?delete s[p]:Object.defineProperty(s,p,{value:u,writable:!0,enumerable:!0,configurable:!0})}else for(let i in s){let p=jr(s,i,n);p===void 0?delete s[i]:Object.defineProperty(s,i,{value:p,writable:!0,enumerable:!0,configurable:!0})}return n.call(t,l,s)}var Dt,wt,Be,te,At;function Yl(){for(Dt="default",wt="",Be=!1,te=1;;){At=re();let t=Ei[Dt]();if(t)return t}}function re(){if(Nr[nr])return String.fromCodePoint(Nr.codePointAt(nr))}function st(){let t=re();return t===`
|
40
40
|
`?(ue++,Jt=0):t?Jt+=t.length:Jt++,t&&(nr+=t.length),t}var Ei={default(){switch(At){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
|
41
41
|
`:case"\r":case"\u2028":case"\u2029":st();return;case"/":st(),Dt="comment";return;case void 0:return st(),Rt("eof")}if(Pt.isSpaceSeparator(At)){st();return}return Ei[Gt]()},comment(){switch(At){case"*":st(),Dt="multiLineComment";return;case"/":st(),Dt="singleLineComment";return}throw Tt(st())},multiLineComment(){switch(At){case"*":st(),Dt="multiLineCommentAsterisk";return;case void 0:throw Tt(st())}st()},multiLineCommentAsterisk(){switch(At){case"*":st();return;case"/":st(),Dt="default";return;case void 0:throw Tt(st())}st(),Dt="multiLineComment"},singleLineComment(){switch(At){case`
|
42
|
-
`:case"\r":case"\u2028":case"\u2029":st(),Dt="default";return;case void 0:return st(),Rt("eof")}st()},value(){switch(At){case"{":case"[":return Rt("punctuator",st());case"n":return st(),pe("ull"),Rt("null",null);case"t":return st(),pe("rue"),Rt("boolean",!0);case"f":return st(),pe("alse"),Rt("boolean",!1);case"-":case"+":st()==="-"&&(te=-1),Dt="sign";return;case".":wt=st(),Dt="decimalPointLeading";return;case"0":wt=st(),Dt="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":wt=st(),Dt="decimalInteger";return;case"I":return st(),pe("nfinity"),Rt("numeric",1/0);case"N":return st(),pe("aN"),Rt("numeric",NaN);case'"':case"'":Be=st()==='"',wt="",Dt="string";return}throw Tt(st())},identifierNameStartEscape(){if(At!=="u")throw Tt(st());st();let t=
|
42
|
+
`:case"\r":case"\u2028":case"\u2029":st(),Dt="default";return;case void 0:return st(),Rt("eof")}st()},value(){switch(At){case"{":case"[":return Rt("punctuator",st());case"n":return st(),pe("ull"),Rt("null",null);case"t":return st(),pe("rue"),Rt("boolean",!0);case"f":return st(),pe("alse"),Rt("boolean",!1);case"-":case"+":st()==="-"&&(te=-1),Dt="sign";return;case".":wt=st(),Dt="decimalPointLeading";return;case"0":wt=st(),Dt="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":wt=st(),Dt="decimalInteger";return;case"I":return st(),pe("nfinity"),Rt("numeric",1/0);case"N":return st(),pe("aN"),Rt("numeric",NaN);case'"':case"'":Be=st()==='"',wt="",Dt="string";return}throw Tt(st())},identifierNameStartEscape(){if(At!=="u")throw Tt(st());st();let t=Mr();switch(t){case"$":case"_":break;default:if(!Pt.isIdStartChar(t))throw di();break}wt+=t,Dt="identifierName"},identifierName(){switch(At){case"$":case"_":case"\u200C":case"\u200D":wt+=st();return;case"\\":st(),Dt="identifierNameEscape";return}if(Pt.isIdContinueChar(At)){wt+=st();return}return Rt("identifier",wt)},identifierNameEscape(){if(At!=="u")throw Tt(st());st();let t=Mr();switch(t){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!Pt.isIdContinueChar(t))throw di();break}wt+=t,Dt="identifierName"},sign(){switch(At){case".":wt=st(),Dt="decimalPointLeading";return;case"0":wt=st(),Dt="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":wt=st(),Dt="decimalInteger";return;case"I":return st(),pe("nfinity"),Rt("numeric",te*(1/0));case"N":return st(),pe("aN"),Rt("numeric",NaN)}throw Tt(st())},zero(){switch(At){case".":wt+=st(),Dt="decimalPoint";return;case"e":case"E":wt+=st(),Dt="decimalExponent";return;case"x":case"X":wt+=st(),Dt="hexadecimal";return}return Rt("numeric",te*0)},decimalInteger(){switch(At){case".":wt+=st(),Dt="decimalPoint";return;case"e":case"E":wt+=st(),Dt="decimalExponent";return}if(Pt.isDigit(At)){wt+=st();return}return Rt("numeric",te*Number(wt))},decimalPointLeading(){if(Pt.isDigit(At)){wt+=st(),Dt="decimalFraction";return}throw Tt(st())},decimalPoint(){switch(At){case"e":case"E":wt+=st(),Dt="decimalExponent";return}if(Pt.isDigit(At)){wt+=st(),Dt="decimalFraction";return}return Rt("numeric",te*Number(wt))},decimalFraction(){switch(At){case"e":case"E":wt+=st(),Dt="decimalExponent";return}if(Pt.isDigit(At)){wt+=st();return}return Rt("numeric",te*Number(wt))},decimalExponent(){switch(At){case"+":case"-":wt+=st(),Dt="decimalExponentSign";return}if(Pt.isDigit(At)){wt+=st(),Dt="decimalExponentInteger";return}throw Tt(st())},decimalExponentSign(){if(Pt.isDigit(At)){wt+=st(),Dt="decimalExponentInteger";return}throw Tt(st())},decimalExponentInteger(){if(Pt.isDigit(At)){wt+=st();return}return Rt("numeric",te*Number(wt))},hexadecimal(){if(Pt.isHexDigit(At)){wt+=st(),Dt="hexadecimalInteger";return}throw Tt(st())},hexadecimalInteger(){if(Pt.isHexDigit(At)){wt+=st();return}return Rt("numeric",te*Number(wt))},string(){switch(At){case"\\":st(),wt+=Kl();return;case'"':if(Be)return st(),Rt("string",wt);wt+=st();return;case"'":if(!Be)return st(),Rt("string",wt);wt+=st();return;case`
|
43
43
|
`:case"\r":throw Tt(st());case"\u2028":case"\u2029":Xl(At);break;case void 0:throw Tt(st())}wt+=st()},start(){switch(At){case"{":case"[":return Rt("punctuator",st())}Dt="value"},beforePropertyName(){switch(At){case"$":case"_":wt=st(),Dt="identifierName";return;case"\\":st(),Dt="identifierNameStartEscape";return;case"}":return Rt("punctuator",st());case'"':case"'":Be=st()==='"',Dt="string";return}if(Pt.isIdStartChar(At)){wt+=st(),Dt="identifierName";return}throw Tt(st())},afterPropertyName(){if(At===":")return Rt("punctuator",st());throw Tt(st())},beforePropertyValue(){Dt="value"},afterPropertyValue(){switch(At){case",":case"}":return Rt("punctuator",st())}throw Tt(st())},beforeArrayValue(){if(At==="]")return Rt("punctuator",st());Dt="value"},afterArrayValue(){switch(At){case",":case"]":return Rt("punctuator",st())}throw Tt(st())},end(){throw Tt(st())}};function Rt(t,l){return{type:t,value:l,line:ue,column:Jt}}function pe(t){for(let l of t){if(re()!==l)throw Tt(st());st()}}function Kl(){switch(re()){case"b":return st(),"\b";case"f":return st(),"\f";case"n":return st(),`
|
44
|
-
`;case"r":return st(),"\r";case"t":return st()," ";case"v":return st(),"\v";case"0":if(st(),Pt.isDigit(re()))throw Tt(st());return"\0";case"x":return st(),Jl();case"u":return st(),
|
44
|
+
`;case"r":return st(),"\r";case"t":return st()," ";case"v":return st(),"\v";case"0":if(st(),Pt.isDigit(re()))throw Tt(st());return"\0";case"x":return st(),Jl();case"u":return st(),Mr();case`
|
45
45
|
`:case"\u2028":case"\u2029":return st(),"";case"\r":return st(),re()===`
|
46
|
-
`&&st(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw Tt(st());case void 0:throw Tt(st())}return st()}function Jl(){let t="",l=re();if(!Pt.isHexDigit(l)||(t+=st(),l=re(),!Pt.isHexDigit(l)))throw Tt(st());return t+=st(),String.fromCodePoint(parseInt(t,16))}function
|
47
|
-
`+i;D=E.join(w),
|
46
|
+
`&&st(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw Tt(st());case void 0:throw Tt(st())}return st()}function Jl(){let t="",l=re();if(!Pt.isHexDigit(l)||(t+=st(),l=re(),!Pt.isHexDigit(l)))throw Tt(st());return t+=st(),String.fromCodePoint(parseInt(t,16))}function Mr(){let t="",l=4;for(;l-- >0;){let n=re();if(!Pt.isHexDigit(n))throw Tt(st());t+=st()}return String.fromCodePoint(parseInt(t,16))}var Zl={start(){if(Mt.type==="eof")throw de();Br()},beforePropertyName(){switch(Mt.type){case"identifier":case"string":Ur=Mt.value,Gt="afterPropertyName";return;case"punctuator":tr();return;case"eof":throw de()}},afterPropertyName(){if(Mt.type==="eof")throw de();Gt="beforePropertyValue"},beforePropertyValue(){if(Mt.type==="eof")throw de();Br()},beforeArrayValue(){if(Mt.type==="eof")throw de();if(Mt.type==="punctuator"&&Mt.value==="]"){tr();return}Br()},afterPropertyValue(){if(Mt.type==="eof")throw de();switch(Mt.value){case",":Gt="beforePropertyName";return;case"}":tr()}},afterArrayValue(){if(Mt.type==="eof")throw de();switch(Mt.value){case",":Gt="beforeArrayValue";return;case"]":tr()}},end(){}};function Br(){let t;switch(Mt.type){case"punctuator":switch(Mt.value){case"{":t={};break;case"[":t=[];break}break;case"null":case"boolean":case"numeric":case"string":t=Mt.value;break}if(Pe===void 0)Pe=t;else{let l=ee[ee.length-1];Array.isArray(l)?l.push(t):Object.defineProperty(l,Ur,{value:t,writable:!0,enumerable:!0,configurable:!0})}if(t!==null&&typeof t=="object")ee.push(t),Array.isArray(t)?Gt="beforeArrayValue":Gt="beforePropertyName";else{let l=ee[ee.length-1];l==null?Gt="end":Array.isArray(l)?Gt="afterArrayValue":Gt="afterPropertyValue"}}function tr(){ee.pop();let t=ee[ee.length-1];t==null?Gt="end":Array.isArray(t)?Gt="afterArrayValue":Gt="afterPropertyValue"}function Tt(t){return Gr(t===void 0?`JSON5: invalid end of input at ${ue}:${Jt}`:`JSON5: invalid character '${_i(t)}' at ${ue}:${Jt}`)}function de(){return Gr(`JSON5: invalid end of input at ${ue}:${Jt}`)}function di(){return Jt-=5,Gr(`JSON5: invalid identifier character at ${ue}:${Jt}`)}function Xl(t){console.warn(`JSON5: '${_i(t)}' in strings is not valid ECMAScript; consider escaping`)}function _i(t){let l={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(l[t])return l[t];if(t<" "){let n=t.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return t}function Gr(t){let l=new SyntaxError(t);return l.lineNumber=ue,l.columnNumber=Jt,l}var Ql=function(t,l,n){let s=[],i="",p,u,r="",e;if(l!=null&&typeof l=="object"&&!Array.isArray(l)&&(n=l.space,e=l.quote,l=l.replacer),typeof l=="function")u=l;else if(Array.isArray(l)){p=[];for(let h of l){let y;typeof h=="string"?y=h:(typeof h=="number"||h instanceof String||h instanceof Number)&&(y=String(h)),y!==void 0&&p.indexOf(y)<0&&p.push(y)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),r=" ".substr(0,n)):typeof n=="string"&&(r=n.substr(0,10)),f("",{"":t});function f(h,y){let b=y[h];switch(b!=null&&(typeof b.toJSON5=="function"?b=b.toJSON5(h):typeof b.toJSON=="function"&&(b=b.toJSON(h))),u&&(b=u.call(y,h,b)),b instanceof Number?b=Number(b):b instanceof String?b=String(b):b instanceof Boolean&&(b=b.valueOf()),b){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof b=="string")return a(b,!1);if(typeof b=="number")return String(b);if(typeof b=="object")return Array.isArray(b)?d(b):c(b)}function a(h){let y={"'":.1,'"':.2},b={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},E="";for(let D=0;D<h.length;D++){let w=h[D];switch(w){case"'":case'"':y[w]++,E+=w;continue;case"\0":if(Pt.isDigit(h[D+1])){E+="\\x00";continue}}if(b[w]){E+=b[w];continue}if(w<" "){let v=w.charCodeAt(0).toString(16);E+="\\x"+("00"+v).substring(v.length);continue}E+=w}let g=e||Object.keys(y).reduce((D,w)=>y[D]<y[w]?D:w);return E=E.replace(new RegExp(g,"g"),b[g]),g+E+g}function c(h){if(s.indexOf(h)>=0)throw TypeError("Converting circular structure to JSON5");s.push(h);let y=i;i=i+r;let b=p||Object.keys(h),E=[];for(let D of b){let w=f(D,h);if(w!==void 0){let v=o(D)+":";r!==""&&(v+=" "),v+=w,E.push(v)}}let g;if(E.length===0)g="{}";else{let D;if(r==="")D=E.join(","),g="{"+D+"}";else{let w=`,
|
47
|
+
`+i;D=E.join(w),g=`{
|
48
48
|
`+i+D+`,
|
49
|
-
`+
|
50
|
-
`+i,D=b.join(
|
49
|
+
`+y+"}"}}return s.pop(),i=y,g}function o(h){if(h.length===0)return a(h,!0);let y=String.fromCodePoint(h.codePointAt(0));if(!Pt.isIdStartChar(y))return a(h,!0);for(let b=y.length;b<h.length;b++)if(!Pt.isIdContinueChar(String.fromCodePoint(h.codePointAt(b))))return a(h,!0);return h}function d(h){if(s.indexOf(h)>=0)throw TypeError("Converting circular structure to JSON5");s.push(h);let y=i;i=i+r;let b=[];for(let g=0;g<h.length;g++){let D=f(String(g),h);b.push(D!==void 0?D:"null")}let E;if(b.length===0)E="[]";else if(r==="")E="["+b.join(",")+"]";else{let g=`,
|
50
|
+
`+i,D=b.join(g);E=`[
|
51
51
|
`+i+D+`,
|
52
|
-
`+g+"]"}return s.pop(),i=g,E}},tc={parse:Vl,stringify:Ql},ec=tc,qr=ec;function rc(t){return!qr.parse(t).extends}var Pr={};function zr(t,l){var n;let s=(n=l==null?void 0:l.cache)!=null?n:!0,i=t||process.cwd();if(s&&Pr[i])return Pr[i];let p=Rr({target:"turbo.json",cwd:i,contentCheck:rc});if(!p)try{if(p=Gl(i),!p)return null}catch{return null}return s&&(Pr[i]=p),p}var Ne=Wt(require("fs"),1),ye=Wt(require("path"),1),nc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.splitWhen=t.flatten=void 0;function l(s){return s.reduce((i,p)=>[].concat(i,p),[])}t.flatten=l;function n(s,i){let p=[[]],u=0;for(let r of s)i(r)?(u++,p[u]=[]):p[u].push(r);return p}t.splitWhen=n}),ic=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.isEnoentCodeError=void 0;function l(n){return n.code==="ENOENT"}t.isEnoentCodeError=l}),sc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createDirentFromStats=void 0;var l=class{constructor(s,i){this.name=s,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function n(s,i){return new l(s,i)}t.createDirentFromStats=n}),oc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.removeLeadingDotSegment=t.escape=t.makeAbsolute=t.unixify=void 0;var l=Z("path"),n=2,s=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function i(e){return e.replace(/\\/g,"/")}t.unixify=i;function p(e,f){return l.resolve(e,f)}t.makeAbsolute=p;function u(e){return e.replace(s,"\\$2")}t.escape=u;function r(e){if(e.charAt(0)==="."){let f=e.charAt(1);if(f==="/"||f==="\\")return e.slice(n)}return e}t.removeLeadingDotSegment=r}),uc=N((t,l)=>{B(),l.exports=function(n){if(typeof n!="string"||n==="")return!1;for(var s;s=/(\\).|([@?!+*]\(.*\))/g.exec(n);){if(s[2])return!0;n=n.slice(s.index+s[0].length)}return!1}}),ac=N((t,l)=>{B();var n=uc(),s={"{":"}","(":")","[":"]"},i=function(u){if(u[0]==="!")return!0;for(var r=0,e=-2,f=-2,a=-2,c=-2,o=-2;r<u.length;){if(u[r]==="*"||u[r+1]==="?"&&/[\].+)]/.test(u[r])||f!==-1&&u[r]==="["&&u[r+1]!=="]"&&(f<r&&(f=u.indexOf("]",r)),f>r&&(o===-1||o>f||(o=u.indexOf("\\",r),o===-1||o>f)))||a!==-1&&u[r]==="{"&&u[r+1]!=="}"&&(a=u.indexOf("}",r),a>r&&(o=u.indexOf("\\",r),o===-1||o>a))||c!==-1&&u[r]==="("&&u[r+1]==="?"&&/[:!=]/.test(u[r+2])&&u[r+3]!==")"&&(c=u.indexOf(")",r),c>r&&(o=u.indexOf("\\",r),o===-1||o>c))||e!==-1&&u[r]==="("&&u[r+1]!=="|"&&(e<r&&(e=u.indexOf("|",r)),e!==-1&&u[e+1]!==")"&&(c=u.indexOf(")",e),c>e&&(o=u.indexOf("\\",e),o===-1||o>c))))return!0;if(u[r]==="\\"){var d=u[r+1];r+=2;var h=s[d];if(h){var g=u.indexOf(h,r);g!==-1&&(r=g+1)}if(u[r]==="!")return!0}else r++}return!1},p=function(u){if(u[0]==="!")return!0;for(var r=0;r<u.length;){if(/[*?{}()[\]]/.test(u[r]))return!0;if(u[r]==="\\"){var e=u[r+1];r+=2;var f=s[e];if(f){var a=u.indexOf(f,r);a!==-1&&(r=a+1)}if(u[r]==="!")return!0}else r++}return!1};l.exports=function(u,r){if(typeof u!="string"||u==="")return!1;if(n(u))return!0;var e=i;return r&&r.strict===!1&&(e=p),e(u)}}),lc=N((t,l)=>{"use strict";B();var n=ac(),s=Z("path").posix.dirname,i=Z("os").platform()==="win32",p="/",u=/\\/g,r=/[\{\[].*[\}\]]$/,e=/(^|[^\\])([\{\[]|\([^\)]+$)/,f=/\\([\!\*\?\|\[\]\(\)\{\}])/g;l.exports=function(a,c){var o=Object.assign({flipBackslashes:!0},c);o.flipBackslashes&&i&&a.indexOf(p)<0&&(a=a.replace(u,p)),r.test(a)&&(a+=p),a+="a";do a=s(a);while(n(a)||e.test(a));return a.replace(f,"$1")}}),en=N(t=>{"use strict";B(),t.isInteger=l=>typeof l=="number"?Number.isInteger(l):typeof l=="string"&&l.trim()!==""?Number.isInteger(Number(l)):!1,t.find=(l,n)=>l.nodes.find(s=>s.type===n),t.exceedsLimit=(l,n,s=1,i)=>i===!1||!t.isInteger(l)||!t.isInteger(n)?!1:(Number(n)-Number(l))/Number(s)>=i,t.escapeNode=(l,n=0,s)=>{let i=l.nodes[n];!i||(s&&i.type===s||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},t.encloseBrace=l=>l.type!=="brace"||l.commas>>0+l.ranges>>0?!1:(l.invalid=!0,!0),t.isInvalidBrace=l=>l.type!=="brace"?!1:l.invalid===!0||l.dollar?!0:!(l.commas>>0+l.ranges>>0)||l.open!==!0||l.close!==!0?(l.invalid=!0,!0):!1,t.isOpenOrClose=l=>l.type==="open"||l.type==="close"?!0:l.open===!0||l.close===!0,t.reduce=l=>l.reduce((n,s)=>(s.type==="text"&&n.push(s.value),s.type==="range"&&(s.type="text"),n),[]),t.flatten=(...l)=>{let n=[],s=i=>{for(let p=0;p<i.length;p++){let u=i[p];Array.isArray(u)?s(u,n):u!==void 0&&n.push(u)}return n};return s(l),n}}),rn=N((t,l)=>{"use strict";B();var n=en();l.exports=(s,i={})=>{let p=(u,r={})=>{let e=i.escapeInvalid&&n.isInvalidBrace(r),f=u.invalid===!0&&i.escapeInvalid===!0,a="";if(u.value)return(e||f)&&n.isOpenOrClose(u)?"\\"+u.value:u.value;if(u.value)return u.value;if(u.nodes)for(let c of u.nodes)a+=p(c);return a};return p(s)}}),cc=N((t,l)=>{"use strict";B(),l.exports=function(n){return typeof n=="number"?n-n===0:typeof n=="string"&&n.trim()!==""?Number.isFinite?Number.isFinite(+n):isFinite(+n):!1}}),hc=N((t,l)=>{"use strict";B();var n=cc(),s=(y,D,w)=>{if(n(y)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(D===void 0||y===D)return String(y);if(n(D)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let v={relaxZeros:!0,...w};typeof v.strictZeros=="boolean"&&(v.relaxZeros=v.strictZeros===!1);let m=String(v.relaxZeros),_=String(v.shorthand),S=String(v.capture),A=String(v.wrap),F=y+":"+D+"="+m+_+S+A;if(s.cache.hasOwnProperty(F))return s.cache[F].result;let P=Math.min(y,D),T=Math.max(y,D);if(Math.abs(P-T)===1){let L=y+"|"+D;return v.capture?`(${L})`:v.wrap===!1?L:`(?:${L})`}let O=b(y)||b(D),x={min:y,max:D,a:P,b:T},k=[],U=[];if(O&&(x.isPadded=O,x.maxLen=String(x.max).length),P<0){let L=T<0?Math.abs(T):1;U=r(L,Math.abs(P),x,v),P=x.a=0}return T>=0&&(k=r(P,T,x,v)),x.negatives=U,x.positives=k,x.result=i(U,k,v),v.capture===!0?x.result=`(${x.result})`:v.wrap!==!1&&k.length+U.length>1&&(x.result=`(?:${x.result})`),s.cache[F]=x,x.result};function i(y,D,w){let v=e(y,D,"-",!1,w)||[],m=e(D,y,"",!1,w)||[],_=e(y,D,"-?",!0,w)||[];return v.concat(_).concat(m).join("|")}function p(y,D){let w=1,v=1,m=o(y,w),_=new Set([D]);for(;y<=m&&m<=D;)_.add(m),w+=1,m=o(y,w);for(m=d(D+1,v)-1;y<m&&m<=D;)_.add(m),v+=1,m=d(D+1,v)-1;return _=[..._],_.sort(a),_}function u(y,D,w){if(y===D)return{pattern:y,count:[],digits:0};let v=f(y,D),m=v.length,_="",S=0;for(let A=0;A<m;A++){let[F,P]=v[A];F===P?_+=F:F!=="0"||P!=="9"?_+=g(F,P,w):S++}return S&&(_+=w.shorthand===!0?"\\d":"[0-9]"),{pattern:_,count:[S],digits:m}}function r(y,D,w,v){let m=p(y,D),_=[],S=y,A;for(let F=0;F<m.length;F++){let P=m[F],T=u(String(S),String(P),v),O="";if(!w.isPadded&&A&&A.pattern===T.pattern){A.count.length>1&&A.count.pop(),A.count.push(T.count[0]),A.string=A.pattern+h(A.count),S=P+1;continue}w.isPadded&&(O=E(P,w,v)),T.string=O+T.pattern+h(T.count),_.push(T),S=P+1,A=T}return _}function e(y,D,w,v,m){let _=[];for(let S of y){let{string:A}=S;!v&&!c(D,"string",A)&&_.push(w+A),v&&c(D,"string",A)&&_.push(w+A)}return _}function f(y,D){let w=[];for(let v=0;v<y.length;v++)w.push([y[v],D[v]]);return w}function a(y,D){return y>D?1:D>y?-1:0}function c(y,D,w){return y.some(v=>v[D]===w)}function o(y,D){return Number(String(y).slice(0,-D)+"9".repeat(D))}function d(y,D){return y-y%Math.pow(10,D)}function h(y){let[D=0,w=""]=y;return w||D>1?`{${D+(w?","+w:"")}}`:""}function g(y,D,w){return`[${y}${D-y===1?"":"-"}${D}]`}function b(y){return/^-?(0+)\d/.test(y)}function E(y,D,w){if(!D.isPadded)return y;let v=Math.abs(D.maxLen-String(y).length),m=w.relaxZeros!==!1;switch(v){case 0:return"";case 1:return m?"0?":"0";case 2:return m?"0{0,2}":"00";default:return m?`0{0,${v}}`:`0{${v}}`}}s.cache={},s.clearCache=()=>s.cache={},l.exports=s}),Ni=N((t,l)=>{"use strict";B();var n=Z("util"),s=hc(),i=v=>v!==null&&typeof v=="object"&&!Array.isArray(v),p=v=>m=>v===!0?Number(m):String(m),u=v=>typeof v=="number"||typeof v=="string"&&v!=="",r=v=>Number.isInteger(+v),e=v=>{let m=`${v}`,_=-1;if(m[0]==="-"&&(m=m.slice(1)),m==="0")return!1;for(;m[++_]==="0";);return _>0},f=(v,m,_)=>typeof v=="string"||typeof m=="string"?!0:_.stringify===!0,a=(v,m,_)=>{if(m>0){let S=v[0]==="-"?"-":"";S&&(v=v.slice(1)),v=S+v.padStart(S?m-1:m,"0")}return _===!1?String(v):v},c=(v,m)=>{let _=v[0]==="-"?"-":"";for(_&&(v=v.slice(1),m--);v.length<m;)v="0"+v;return _?"-"+v:v},o=(v,m)=>{v.negatives.sort((P,T)=>P<T?-1:P>T?1:0),v.positives.sort((P,T)=>P<T?-1:P>T?1:0);let _=m.capture?"":"?:",S="",A="",F;return v.positives.length&&(S=v.positives.join("|")),v.negatives.length&&(A=`-(${_}${v.negatives.join("|")})`),S&&A?F=`${S}|${A}`:F=S||A,m.wrap?`(${_}${F})`:F},d=(v,m,_,S)=>{if(_)return s(v,m,{wrap:!1,...S});let A=String.fromCharCode(v);if(v===m)return A;let F=String.fromCharCode(m);return`[${A}-${F}]`},h=(v,m,_)=>{if(Array.isArray(v)){let S=_.wrap===!0,A=_.capture?"":"?:";return S?`(${A}${v.join("|")})`:v.join("|")}return s(v,m,_)},g=(...v)=>new RangeError("Invalid range arguments: "+n.inspect(...v)),b=(v,m,_)=>{if(_.strictRanges===!0)throw g([v,m]);return[]},E=(v,m)=>{if(m.strictRanges===!0)throw new TypeError(`Expected step "${v}" to be a number`);return[]},y=(v,m,_=1,S={})=>{let A=Number(v),F=Number(m);if(!Number.isInteger(A)||!Number.isInteger(F)){if(S.strictRanges===!0)throw g([v,m]);return[]}A===0&&(A=0),F===0&&(F=0);let P=A>F,T=String(v),O=String(m),x=String(_);_=Math.max(Math.abs(_),1);let k=e(T)||e(O)||e(x),U=k?Math.max(T.length,O.length,x.length):0,L=k===!1&&f(v,m,S)===!1,q=S.transform||p(L);if(S.toRegex&&_===1)return d(c(v,U),c(m,U),!0,S);let V={negatives:[],positives:[]},et=R=>V[R<0?"negatives":"positives"].push(Math.abs(R)),I=[],M=0;for(;P?A>=F:A<=F;)S.toRegex===!0&&_>1?et(A):I.push(a(q(A,M),U,L)),A=P?A-_:A+_,M++;return S.toRegex===!0?_>1?o(V,S):h(I,null,{wrap:!1,...S}):I},D=(v,m,_=1,S={})=>{if(!r(v)&&v.length>1||!r(m)&&m.length>1)return b(v,m,S);let A=S.transform||(L=>String.fromCharCode(L)),F=`${v}`.charCodeAt(0),P=`${m}`.charCodeAt(0),T=F>P,O=Math.min(F,P),x=Math.max(F,P);if(S.toRegex&&_===1)return d(O,x,!1,S);let k=[],U=0;for(;T?F>=P:F<=P;)k.push(A(F,U)),F=T?F-_:F+_,U++;return S.toRegex===!0?h(k,null,{wrap:!1,options:S}):k},w=(v,m,_,S={})=>{if(m==null&&u(v))return[v];if(!u(v)||!u(m))return b(v,m,S);if(typeof _=="function")return w(v,m,1,{transform:_});if(i(_))return w(v,m,0,_);let A={...S};return A.capture===!0&&(A.wrap=!0),_=_||A.step||1,r(_)?r(v)&&r(m)?y(v,m,_,A):D(v,m,Math.max(Math.abs(_),1),A):_!=null&&!i(_)?E(_,A):w(v,m,1,_)};l.exports=w}),fc=N((t,l)=>{"use strict";B();var n=Ni(),s=en(),i=(p,u={})=>{let r=(e,f={})=>{let a=s.isInvalidBrace(f),c=e.invalid===!0&&u.escapeInvalid===!0,o=a===!0||c===!0,d=u.escapeInvalid===!0?"\\":"",h="";if(e.isOpen===!0||e.isClose===!0)return d+e.value;if(e.type==="open")return o?d+e.value:"(";if(e.type==="close")return o?d+e.value:")";if(e.type==="comma")return e.prev.type==="comma"?"":o?e.value:"|";if(e.value)return e.value;if(e.nodes&&e.ranges>0){let g=s.reduce(e.nodes),b=n(...g,{...u,wrap:!1,toRegex:!0});if(b.length!==0)return g.length>1&&b.length>1?`(${b})`:b}if(e.nodes)for(let g of e.nodes)h+=r(g,e);return h};return r(p)};l.exports=i}),pc=N((t,l)=>{"use strict";B();var n=Ni(),s=rn(),i=en(),p=(r="",e="",f=!1)=>{let a=[];if(r=[].concat(r),e=[].concat(e),!e.length)return r;if(!r.length)return f?i.flatten(e).map(c=>`{${c}}`):e;for(let c of r)if(Array.isArray(c))for(let o of c)a.push(p(o,e,f));else for(let o of e)f===!0&&typeof o=="string"&&(o=`{${o}}`),a.push(Array.isArray(o)?p(c,o,f):c+o);return i.flatten(a)},u=(r,e={})=>{let f=e.rangeLimit===void 0?1e3:e.rangeLimit,a=(c,o={})=>{c.queue=[];let d=o,h=o.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,h=d.queue;if(c.invalid||c.dollar){h.push(p(h.pop(),s(c,e)));return}if(c.type==="brace"&&c.invalid!==!0&&c.nodes.length===2){h.push(p(h.pop(),["{}"]));return}if(c.nodes&&c.ranges>0){let y=i.reduce(c.nodes);if(i.exceedsLimit(...y,e.step,f))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let D=n(...y,e);D.length===0&&(D=s(c,e)),h.push(p(h.pop(),D)),c.nodes=[];return}let g=i.encloseBrace(c),b=c.queue,E=c;for(;E.type!=="brace"&&E.type!=="root"&&E.parent;)E=E.parent,b=E.queue;for(let y=0;y<c.nodes.length;y++){let D=c.nodes[y];if(D.type==="comma"&&c.type==="brace"){y===1&&b.push(""),b.push("");continue}if(D.type==="close"){h.push(p(h.pop(),b,g));continue}if(D.value&&D.type!=="open"){b.push(p(b.pop(),D.value));continue}D.nodes&&a(D,c)}return b};return i.flatten(a(r))};l.exports=u}),dc=N((t,l)=>{"use strict";B(),l.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
53
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}),mc=N((t,l)=>{"use strict";B();var n=rn(),{MAX_LENGTH:s,CHAR_BACKSLASH:i,CHAR_BACKTICK:p,CHAR_COMMA:u,CHAR_DOT:r,CHAR_LEFT_PARENTHESES:e,CHAR_RIGHT_PARENTHESES:f,CHAR_LEFT_CURLY_BRACE:a,CHAR_RIGHT_CURLY_BRACE:c,CHAR_LEFT_SQUARE_BRACKET:o,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:h,CHAR_SINGLE_QUOTE:g,CHAR_NO_BREAK_SPACE:b,CHAR_ZERO_WIDTH_NOBREAK_SPACE:E}=dc(),y=(D,w={})=>{if(typeof D!="string")throw new TypeError("Expected a string");let v=w||{},m=typeof v.maxLength=="number"?Math.min(s,v.maxLength):s;if(D.length>m)throw new SyntaxError(`Input length (${D.length}), exceeds max characters (${m})`);let _={type:"root",input:D,nodes:[]},S=[_],A=_,F=_,P=0,T=D.length,O=0,x=0,k,U={},L=()=>D[O++],q=V=>{if(V.type==="text"&&F.type==="dot"&&(F.type="text"),F&&F.type==="text"&&V.type==="text"){F.value+=V.value;return}return A.nodes.push(V),V.parent=A,V.prev=F,F=V,V};for(q({type:"bos"});O<T;)if(A=S[S.length-1],k=L(),!(k===E||k===b)){if(k===i){q({type:"text",value:(w.keepEscaping?k:"")+L()});continue}if(k===d){q({type:"text",value:"\\"+k});continue}if(k===o){P++;let V=!0,et;for(;O<T&&(et=L());){if(k+=et,et===o){P++;continue}if(et===i){k+=L();continue}if(et===d&&(P--,P===0))break}q({type:"text",value:k});continue}if(k===e){A=q({type:"paren",nodes:[]}),S.push(A),q({type:"text",value:k});continue}if(k===f){if(A.type!=="paren"){q({type:"text",value:k});continue}A=S.pop(),q({type:"text",value:k}),A=S[S.length-1];continue}if(k===h||k===g||k===p){let V=k,et;for(w.keepQuotes!==!0&&(k="");O<T&&(et=L());){if(et===i){k+=et+L();continue}if(et===V){w.keepQuotes===!0&&(k+=et);break}k+=et}q({type:"text",value:k});continue}if(k===a){x++;let V=F.value&&F.value.slice(-1)==="$"||A.dollar===!0;A=q({type:"brace",open:!0,close:!1,dollar:V,depth:x,commas:0,ranges:0,nodes:[]}),S.push(A),q({type:"open",value:k});continue}if(k===c){if(A.type!=="brace"){q({type:"text",value:k});continue}let V="close";A=S.pop(),A.close=!0,q({type:V,value:k}),x--,A=S[S.length-1];continue}if(k===u&&x>0){if(A.ranges>0){A.ranges=0;let V=A.nodes.shift();A.nodes=[V,{type:"text",value:n(A)}]}q({type:"comma",value:k}),A.commas++;continue}if(k===r&&x>0&&A.commas===0){let V=A.nodes;if(x===0||V.length===0){q({type:"text",value:k});continue}if(F.type==="dot"){if(A.range=[],F.value+=k,F.type="range",A.nodes.length!==3&&A.nodes.length!==5){A.invalid=!0,A.ranges=0,F.type="text";continue}A.ranges++,A.args=[];continue}if(F.type==="range"){V.pop();let et=V[V.length-1];et.value+=F.value+k,F=et,A.ranges--;continue}q({type:"dot",value:k});continue}q({type:"text",value:k})}do if(A=S.pop(),A.type!=="root"){A.nodes.forEach(I=>{I.nodes||(I.type==="open"&&(I.isOpen=!0),I.type==="close"&&(I.isClose=!0),I.nodes||(I.type="text"),I.invalid=!0)});let V=S[S.length-1],et=V.nodes.indexOf(A);V.nodes.splice(et,1,...A.nodes)}while(S.length>0);return q({type:"eos"}),_};l.exports=y}),yc=N((t,l)=>{"use strict";B();var n=rn(),s=fc(),i=pc(),p=mc(),u=(r,e={})=>{let f=[];if(Array.isArray(r))for(let a of r){let c=u.create(a,e);Array.isArray(c)?f.push(...c):f.push(c)}else f=[].concat(u.create(r,e));return e&&e.expand===!0&&e.nodupes===!0&&(f=[...new Set(f)]),f};u.parse=(r,e={})=>p(r,e),u.stringify=(r,e={})=>n(typeof r=="string"?u.parse(r,e):r,e),u.compile=(r,e={})=>(typeof r=="string"&&(r=u.parse(r,e)),s(r,e)),u.expand=(r,e={})=>{typeof r=="string"&&(r=u.parse(r,e));let f=i(r,e);return e.noempty===!0&&(f=f.filter(Boolean)),e.nodupes===!0&&(f=[...new Set(f)]),f},u.create=(r,e={})=>r===""||r.length<3?[r]:e.expand!==!0?u.compile(r,e):u.expand(r,e),l.exports=u}),fr=N((t,l)=>{"use strict";B();var n=Z("path"),s="\\\\/",i=`[^${s}]`,p="\\.",u="\\+",r="\\?",e="\\/",f="(?=.)",a="[^/]",c=`(?:${e}|$)`,o=`(?:^|${e})`,d=`${p}{1,2}${c}`,h=`(?!${p})`,g=`(?!${o}${d})`,b=`(?!${p}{0,1}${c})`,E=`(?!${d})`,y=`[^.${e}]`,D=`${a}*?`,w={DOT_LITERAL:p,PLUS_LITERAL:u,QMARK_LITERAL:r,SLASH_LITERAL:e,ONE_CHAR:f,QMARK:a,END_ANCHOR:c,DOTS_SLASH:d,NO_DOT:h,NO_DOTS:g,NO_DOT_SLASH:b,NO_DOTS_SLASH:E,QMARK_NO_DOT:y,STAR:D,START_ANCHOR:o},v={...w,SLASH_LITERAL:`[${s}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${p}{1,2}(?:[${s}]|$)`,NO_DOT:`(?!${p})`,NO_DOTS:`(?!(?:^|[${s}])${p}{1,2}(?:[${s}]|$))`,NO_DOT_SLASH:`(?!${p}{0,1}(?:[${s}]|$))`,NO_DOTS_SLASH:`(?!${p}{1,2}(?:[${s}]|$))`,QMARK_NO_DOT:`[^.${s}]`,START_ANCHOR:`(?:^|[${s}])`,END_ANCHOR:`(?:[${s}]|$)`},m={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};l.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:m,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:n.sep,extglobChars(_){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${_.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(_){return _===!0?v:w}}}),pr=N(t=>{"use strict";B();var l=Z("path"),n=process.platform==="win32",{REGEX_BACKSLASH:s,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:p,REGEX_SPECIAL_CHARS_GLOBAL:u}=fr();t.isObject=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),t.hasRegexChars=r=>p.test(r),t.isRegexChar=r=>r.length===1&&t.hasRegexChars(r),t.escapeRegex=r=>r.replace(u,"\\$1"),t.toPosixSlashes=r=>r.replace(s,"/"),t.removeBackslashes=r=>r.replace(i,e=>e==="\\"?"":e),t.supportsLookbehinds=()=>{let r=process.version.slice(1).split(".").map(Number);return r.length===3&&r[0]>=9||r[0]===8&&r[1]>=10},t.isWindows=r=>r&&typeof r.windows=="boolean"?r.windows:n===!0||l.sep==="\\",t.escapeLast=(r,e,f)=>{let a=r.lastIndexOf(e,f);return a===-1?r:r[a-1]==="\\"?t.escapeLast(r,e,a-1):`${r.slice(0,a)}\\${r.slice(a)}`},t.removePrefix=(r,e={})=>{let f=r;return f.startsWith("./")&&(f=f.slice(2),e.prefix="./"),f},t.wrapOutput=(r,e={},f={})=>{let a=f.contains?"":"^",c=f.contains?"":"$",o=`${a}(?:${r})${c}`;return e.negated===!0&&(o=`(?:^(?!${o}).*$)`),o}}),gc=N((t,l)=>{"use strict";B();var n=pr(),{CHAR_ASTERISK:s,CHAR_AT:i,CHAR_BACKWARD_SLASH:p,CHAR_COMMA:u,CHAR_DOT:r,CHAR_EXCLAMATION_MARK:e,CHAR_FORWARD_SLASH:f,CHAR_LEFT_CURLY_BRACE:a,CHAR_LEFT_PARENTHESES:c,CHAR_LEFT_SQUARE_BRACKET:o,CHAR_PLUS:d,CHAR_QUESTION_MARK:h,CHAR_RIGHT_CURLY_BRACE:g,CHAR_RIGHT_PARENTHESES:b,CHAR_RIGHT_SQUARE_BRACKET:E}=fr(),y=v=>v===f||v===p,D=v=>{v.isPrefix!==!0&&(v.depth=v.isGlobstar?1/0:1)},w=(v,m)=>{let _=m||{},S=v.length-1,A=_.parts===!0||_.scanToEnd===!0,F=[],P=[],T=[],O=v,x=-1,k=0,U=0,L=!1,q=!1,V=!1,et=!1,I=!1,M=!1,R=!1,J=!1,G=!1,Q=!1,j=0,W,tt,ot={value:"",depth:0,isGlob:!1},ct=()=>x>=S,gt=()=>O.charCodeAt(x+1),mt=()=>(W=tt,O.charCodeAt(++x));for(;x<S;){tt=mt();let X;if(tt===p){R=ot.backslashes=!0,tt=mt(),tt===a&&(M=!0);continue}if(M===!0||tt===a){for(j++;ct()!==!0&&(tt=mt());){if(tt===p){R=ot.backslashes=!0,mt();continue}if(tt===a){j++;continue}if(M!==!0&&tt===r&&(tt=mt())===r){if(L=ot.isBrace=!0,V=ot.isGlob=!0,Q=!0,A===!0)continue;break}if(M!==!0&&tt===u){if(L=ot.isBrace=!0,V=ot.isGlob=!0,Q=!0,A===!0)continue;break}if(tt===g&&(j--,j===0)){M=!1,L=ot.isBrace=!0,Q=!0;break}}if(A===!0)continue;break}if(tt===f){if(F.push(x),P.push(ot),ot={value:"",depth:0,isGlob:!1},Q===!0)continue;if(W===r&&x===k+1){k+=2;continue}U=x+1;continue}if(_.noext!==!0&&(tt===d||tt===i||tt===s||tt===h||tt===e)&>()===c){if(V=ot.isGlob=!0,et=ot.isExtglob=!0,Q=!0,tt===e&&x===k&&(G=!0),A===!0){for(;ct()!==!0&&(tt=mt());){if(tt===p){R=ot.backslashes=!0,tt=mt();continue}if(tt===b){V=ot.isGlob=!0,Q=!0;break}}continue}break}if(tt===s){if(W===s&&(I=ot.isGlobstar=!0),V=ot.isGlob=!0,Q=!0,A===!0)continue;break}if(tt===h){if(V=ot.isGlob=!0,Q=!0,A===!0)continue;break}if(tt===o){for(;ct()!==!0&&(X=mt());){if(X===p){R=ot.backslashes=!0,mt();continue}if(X===E){q=ot.isBracket=!0,V=ot.isGlob=!0,Q=!0;break}}if(A===!0)continue;break}if(_.nonegate!==!0&&tt===e&&x===k){J=ot.negated=!0,k++;continue}if(_.noparen!==!0&&tt===c){if(V=ot.isGlob=!0,A===!0){for(;ct()!==!0&&(tt=mt());){if(tt===c){R=ot.backslashes=!0,tt=mt();continue}if(tt===b){Q=!0;break}}continue}break}if(V===!0){if(Q=!0,A===!0)continue;break}}_.noext===!0&&(et=!1,V=!1);let $=O,Y="",C="";k>0&&(Y=O.slice(0,k),O=O.slice(k),U-=k),$&&V===!0&&U>0?($=O.slice(0,U),C=O.slice(U)):V===!0?($="",C=O):$=O,$&&$!==""&&$!=="/"&&$!==O&&y($.charCodeAt($.length-1))&&($=$.slice(0,-1)),_.unescape===!0&&(C&&(C=n.removeBackslashes(C)),$&&R===!0&&($=n.removeBackslashes($)));let z={prefix:Y,input:v,start:k,base:$,glob:C,isBrace:L,isBracket:q,isGlob:V,isExtglob:et,isGlobstar:I,negated:J,negatedExtglob:G};if(_.tokens===!0&&(z.maxDepth=0,y(tt)||P.push(ot),z.tokens=P),_.parts===!0||_.tokens===!0){let X;for(let rt=0;rt<F.length;rt++){let ht=X?X+1:k,it=F[rt],lt=v.slice(ht,it);_.tokens&&(rt===0&&k!==0?(P[rt].isPrefix=!0,P[rt].value=Y):P[rt].value=lt,D(P[rt]),z.maxDepth+=P[rt].depth),(rt!==0||lt!=="")&&T.push(lt),X=it}if(X&&X+1<v.length){let rt=v.slice(X+1);T.push(rt),_.tokens&&(P[P.length-1].value=rt,D(P[P.length-1]),z.maxDepth+=P[P.length-1].depth)}z.slashes=F,z.parts=T}return z};l.exports=w}),bc=N((t,l)=>{"use strict";B();var n=fr(),s=pr(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:p,REGEX_NON_SPECIAL_CHARS:u,REGEX_SPECIAL_CHARS_BACKREF:r,REPLACEMENTS:e}=n,f=(o,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...o,d);o.sort();let h=`[${o.join("-")}]`;try{new RegExp(h)}catch{return o.map(g=>s.escapeRegex(g)).join("..")}return h},a=(o,d)=>`Missing ${o}: "${d}" - use "\\\\${d}" to match literal characters`,c=(o,d)=>{if(typeof o!="string")throw new TypeError("Expected a string");o=e[o]||o;let h={...d},g=typeof h.maxLength=="number"?Math.min(i,h.maxLength):i,b=o.length;if(b>g)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${g}`);let E={type:"bos",value:"",output:h.prepend||""},y=[E],D=h.capture?"":"?:",w=s.isWindows(d),v=n.globChars(w),m=n.extglobChars(v),{DOT_LITERAL:_,PLUS_LITERAL:S,SLASH_LITERAL:A,ONE_CHAR:F,DOTS_SLASH:P,NO_DOT:T,NO_DOT_SLASH:O,NO_DOTS_SLASH:x,QMARK:k,QMARK_NO_DOT:U,STAR:L,START_ANCHOR:q}=v,V=it=>`(${D}(?:(?!${q}${it.dot?P:_}).)*?)`,et=h.dot?"":T,I=h.dot?k:U,M=h.bash===!0?V(h):L;h.capture&&(M=`(${M})`),typeof h.noext=="boolean"&&(h.noextglob=h.noext);let R={input:o,index:-1,start:0,dot:h.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:y};o=s.removePrefix(o,R),b=o.length;let J=[],G=[],Q=[],j=E,W,tt=()=>R.index===b-1,ot=R.peek=(it=1)=>o[R.index+it],ct=R.advance=()=>o[++R.index]||"",gt=()=>o.slice(R.index+1),mt=(it="",lt=0)=>{R.consumed+=it,R.index+=lt},$=it=>{R.output+=it.output!=null?it.output:it.value,mt(it.value)},Y=()=>{let it=1;for(;ot()==="!"&&(ot(2)!=="("||ot(3)==="?");)ct(),R.start++,it++;return it%2===0?!1:(R.negated=!0,R.start++,!0)},C=it=>{R[it]++,Q.push(it)},z=it=>{R[it]--,Q.pop()},X=it=>{if(j.type==="globstar"){let lt=R.braces>0&&(it.type==="comma"||it.type==="brace"),nt=it.extglob===!0||J.length&&(it.type==="pipe"||it.type==="paren");it.type!=="slash"&&it.type!=="paren"&&!lt&&!nt&&(R.output=R.output.slice(0,-j.output.length),j.type="star",j.value="*",j.output=M,R.output+=j.output)}if(J.length&&it.type!=="paren"&&(J[J.length-1].inner+=it.value),(it.value||it.output)&&$(it),j&&j.type==="text"&&it.type==="text"){j.value+=it.value,j.output=(j.output||"")+it.value;return}it.prev=j,y.push(it),j=it},rt=(it,lt)=>{let nt={...m[lt],conditions:1,inner:""};nt.prev=j,nt.parens=R.parens,nt.output=R.output;let ft=(h.capture?"(":"")+nt.open;C("parens"),X({type:it,value:lt,output:R.output?"":F}),X({type:"paren",extglob:!0,value:ct(),output:ft}),J.push(nt)},ht=it=>{let lt=it.close+(h.capture?")":""),nt;if(it.type==="negate"){let ft=M;if(it.inner&&it.inner.length>1&&it.inner.includes("/")&&(ft=V(h)),(ft!==M||tt()||/^\)+$/.test(gt()))&&(lt=it.close=`)$))${ft}`),it.inner.includes("*")&&(nt=gt())&&/^\.[^\\/.]+$/.test(nt)){let vt=c(nt,{...d,fastpaths:!1}).output;lt=it.close=`)${vt})${ft})`}it.prev.type==="bos"&&(R.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:W,output:lt}),z("parens")};if(h.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(o)){let it=!1,lt=o.replace(r,(nt,ft,vt,xt,K,H)=>xt==="\\"?(it=!0,nt):xt==="?"?ft?ft+xt+(K?k.repeat(K.length):""):H===0?I+(K?k.repeat(K.length):""):k.repeat(vt.length):xt==="."?_.repeat(vt.length):xt==="*"?ft?ft+xt+(K?M:""):M:ft?nt:`\\${nt}`);return it===!0&&(h.unescape===!0?lt=lt.replace(/\\/g,""):lt=lt.replace(/\\+/g,nt=>nt.length%2===0?"\\\\":nt?"\\":"")),lt===o&&h.contains===!0?(R.output=o,R):(R.output=s.wrapOutput(lt,R,d),R)}for(;!tt();){if(W=ct(),W==="\0")continue;if(W==="\\"){let nt=ot();if(nt==="/"&&h.bash!==!0||nt==="."||nt===";")continue;if(!nt){W+="\\",X({type:"text",value:W});continue}let ft=/^\\+/.exec(gt()),vt=0;if(ft&&ft[0].length>2&&(vt=ft[0].length,R.index+=vt,vt%2!==0&&(W+="\\")),h.unescape===!0?W=ct():W+=ct(),R.brackets===0){X({type:"text",value:W});continue}}if(R.brackets>0&&(W!=="]"||j.value==="["||j.value==="[^")){if(h.posix!==!1&&W===":"){let nt=j.value.slice(1);if(nt.includes("[")&&(j.posix=!0,nt.includes(":"))){let ft=j.value.lastIndexOf("["),vt=j.value.slice(0,ft),xt=j.value.slice(ft+2),K=p[xt];if(K){j.value=vt+K,R.backtrack=!0,ct(),!E.output&&y.indexOf(j)===1&&(E.output=F);continue}}}(W==="["&&ot()!==":"||W==="-"&&ot()==="]")&&(W=`\\${W}`),W==="]"&&(j.value==="["||j.value==="[^")&&(W=`\\${W}`),h.posix===!0&&W==="!"&&j.value==="["&&(W="^"),j.value+=W,$({value:W});continue}if(R.quotes===1&&W!=='"'){W=s.escapeRegex(W),j.value+=W,$({value:W});continue}if(W==='"'){R.quotes=R.quotes===1?0:1,h.keepQuotes===!0&&X({type:"text",value:W});continue}if(W==="("){C("parens"),X({type:"paren",value:W});continue}if(W===")"){if(R.parens===0&&h.strictBrackets===!0)throw new SyntaxError(a("opening","("));let nt=J[J.length-1];if(nt&&R.parens===nt.parens+1){ht(J.pop());continue}X({type:"paren",value:W,output:R.parens?")":"\\)"}),z("parens");continue}if(W==="["){if(h.nobracket===!0||!gt().includes("]")){if(h.nobracket!==!0&&h.strictBrackets===!0)throw new SyntaxError(a("closing","]"));W=`\\${W}`}else C("brackets");X({type:"bracket",value:W});continue}if(W==="]"){if(h.nobracket===!0||j&&j.type==="bracket"&&j.value.length===1){X({type:"text",value:W,output:`\\${W}`});continue}if(R.brackets===0){if(h.strictBrackets===!0)throw new SyntaxError(a("opening","["));X({type:"text",value:W,output:`\\${W}`});continue}z("brackets");let nt=j.value.slice(1);if(j.posix!==!0&&nt[0]==="^"&&!nt.includes("/")&&(W=`/${W}`),j.value+=W,$({value:W}),h.literalBrackets===!1||s.hasRegexChars(nt))continue;let ft=s.escapeRegex(j.value);if(R.output=R.output.slice(0,-j.value.length),h.literalBrackets===!0){R.output+=ft,j.value=ft;continue}j.value=`(${D}${ft}|${j.value})`,R.output+=j.value;continue}if(W==="{"&&h.nobrace!==!0){C("braces");let nt={type:"brace",value:W,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};G.push(nt),X(nt);continue}if(W==="}"){let nt=G[G.length-1];if(h.nobrace===!0||!nt){X({type:"text",value:W,output:W});continue}let ft=")";if(nt.dots===!0){let vt=y.slice(),xt=[];for(let K=vt.length-1;K>=0&&(y.pop(),vt[K].type!=="brace");K--)vt[K].type!=="dots"&&xt.unshift(vt[K].value);ft=f(xt,h),R.backtrack=!0}if(nt.comma!==!0&&nt.dots!==!0){let vt=R.output.slice(0,nt.outputIndex),xt=R.tokens.slice(nt.tokensIndex);nt.value=nt.output="\\{",W=ft="\\}",R.output=vt;for(let K of xt)R.output+=K.output||K.value}X({type:"brace",value:W,output:ft}),z("braces"),G.pop();continue}if(W==="|"){J.length>0&&J[J.length-1].conditions++,X({type:"text",value:W});continue}if(W===","){let nt=W,ft=G[G.length-1];ft&&Q[Q.length-1]==="braces"&&(ft.comma=!0,nt="|"),X({type:"comma",value:W,output:nt});continue}if(W==="/"){if(j.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",y.pop(),j=E;continue}X({type:"slash",value:W,output:A});continue}if(W==="."){if(R.braces>0&&j.type==="dot"){j.value==="."&&(j.output=_);let nt=G[G.length-1];j.type="dots",j.output+=W,j.value+=W,nt.dots=!0;continue}if(R.braces+R.parens===0&&j.type!=="bos"&&j.type!=="slash"){X({type:"text",value:W,output:_});continue}X({type:"dot",value:W,output:_});continue}if(W==="?"){if(!(j&&j.value==="(")&&h.noextglob!==!0&&ot()==="("&&ot(2)!=="?"){rt("qmark",W);continue}if(j&&j.type==="paren"){let nt=ot(),ft=W;if(nt==="<"&&!s.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(j.value==="("&&!/[!=<:]/.test(nt)||nt==="<"&&!/<([!=]|\w+>)/.test(gt()))&&(ft=`\\${W}`),X({type:"text",value:W,output:ft});continue}if(h.dot!==!0&&(j.type==="slash"||j.type==="bos")){X({type:"qmark",value:W,output:U});continue}X({type:"qmark",value:W,output:k});continue}if(W==="!"){if(h.noextglob!==!0&&ot()==="("&&(ot(2)!=="?"||!/[!=<:]/.test(ot(3)))){rt("negate",W);continue}if(h.nonegate!==!0&&R.index===0){Y();continue}}if(W==="+"){if(h.noextglob!==!0&&ot()==="("&&ot(2)!=="?"){rt("plus",W);continue}if(j&&j.value==="("||h.regex===!1){X({type:"plus",value:W,output:S});continue}if(j&&(j.type==="bracket"||j.type==="paren"||j.type==="brace")||R.parens>0){X({type:"plus",value:W});continue}X({type:"plus",value:S});continue}if(W==="@"){if(h.noextglob!==!0&&ot()==="("&&ot(2)!=="?"){X({type:"at",extglob:!0,value:W,output:""});continue}X({type:"text",value:W});continue}if(W!=="*"){(W==="$"||W==="^")&&(W=`\\${W}`);let nt=u.exec(gt());nt&&(W+=nt[0],R.index+=nt[0].length),X({type:"text",value:W});continue}if(j&&(j.type==="globstar"||j.star===!0)){j.type="star",j.star=!0,j.value+=W,j.output=M,R.backtrack=!0,R.globstar=!0,mt(W);continue}let it=gt();if(h.noextglob!==!0&&/^\([^?]/.test(it)){rt("star",W);continue}if(j.type==="star"){if(h.noglobstar===!0){mt(W);continue}let nt=j.prev,ft=nt.prev,vt=nt.type==="slash"||nt.type==="bos",xt=ft&&(ft.type==="star"||ft.type==="globstar");if(h.bash===!0&&(!vt||it[0]&&it[0]!=="/")){X({type:"star",value:W,output:""});continue}let K=R.braces>0&&(nt.type==="comma"||nt.type==="brace"),H=J.length&&(nt.type==="pipe"||nt.type==="paren");if(!vt&&nt.type!=="paren"&&!K&&!H){X({type:"star",value:W,output:""});continue}for(;it.slice(0,3)==="/**";){let ut=o[R.index+4];if(ut&&ut!=="/")break;it=it.slice(3),mt("/**",3)}if(nt.type==="bos"&&tt()){j.type="globstar",j.value+=W,j.output=V(h),R.output=j.output,R.globstar=!0,mt(W);continue}if(nt.type==="slash"&&nt.prev.type!=="bos"&&!xt&&tt()){R.output=R.output.slice(0,-(nt.output+j.output).length),nt.output=`(?:${nt.output}`,j.type="globstar",j.output=V(h)+(h.strictSlashes?")":"|$)"),j.value+=W,R.globstar=!0,R.output+=nt.output+j.output,mt(W);continue}if(nt.type==="slash"&&nt.prev.type!=="bos"&&it[0]==="/"){let ut=it[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(nt.output+j.output).length),nt.output=`(?:${nt.output}`,j.type="globstar",j.output=`${V(h)}${A}|${A}${ut})`,j.value+=W,R.output+=nt.output+j.output,R.globstar=!0,mt(W+ct()),X({type:"slash",value:"/",output:""});continue}if(nt.type==="bos"&&it[0]==="/"){j.type="globstar",j.value+=W,j.output=`(?:^|${A}|${V(h)}${A})`,R.output=j.output,R.globstar=!0,mt(W+ct()),X({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-j.output.length),j.type="globstar",j.output=V(h),j.value+=W,R.output+=j.output,R.globstar=!0,mt(W);continue}let lt={type:"star",value:W,output:M};if(h.bash===!0){lt.output=".*?",(j.type==="bos"||j.type==="slash")&&(lt.output=et+lt.output),X(lt);continue}if(j&&(j.type==="bracket"||j.type==="paren")&&h.regex===!0){lt.output=W,X(lt);continue}(R.index===R.start||j.type==="slash"||j.type==="dot")&&(j.type==="dot"?(R.output+=O,j.output+=O):h.dot===!0?(R.output+=x,j.output+=x):(R.output+=et,j.output+=et),ot()!=="*"&&(R.output+=F,j.output+=F)),X(lt)}for(;R.brackets>0;){if(h.strictBrackets===!0)throw new SyntaxError(a("closing","]"));R.output=s.escapeLast(R.output,"["),z("brackets")}for(;R.parens>0;){if(h.strictBrackets===!0)throw new SyntaxError(a("closing",")"));R.output=s.escapeLast(R.output,"("),z("parens")}for(;R.braces>0;){if(h.strictBrackets===!0)throw new SyntaxError(a("closing","}"));R.output=s.escapeLast(R.output,"{"),z("braces")}if(h.strictSlashes!==!0&&(j.type==="star"||j.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${A}?`}),R.backtrack===!0){R.output="";for(let it of R.tokens)R.output+=it.output!=null?it.output:it.value,it.suffix&&(R.output+=it.suffix)}return R};c.fastpaths=(o,d)=>{let h={...d},g=typeof h.maxLength=="number"?Math.min(i,h.maxLength):i,b=o.length;if(b>g)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${g}`);o=e[o]||o;let E=s.isWindows(d),{DOT_LITERAL:y,SLASH_LITERAL:D,ONE_CHAR:w,DOTS_SLASH:v,NO_DOT:m,NO_DOTS:_,NO_DOTS_SLASH:S,STAR:A,START_ANCHOR:F}=n.globChars(E),P=h.dot?_:m,T=h.dot?S:m,O=h.capture?"":"?:",x={negated:!1,prefix:""},k=h.bash===!0?".*?":A;h.capture&&(k=`(${k})`);let U=et=>et.noglobstar===!0?k:`(${O}(?:(?!${F}${et.dot?v:y}).)*?)`,L=et=>{switch(et){case"*":return`${P}${w}${k}`;case".*":return`${y}${w}${k}`;case"*.*":return`${P}${k}${y}${w}${k}`;case"*/*":return`${P}${k}${D}${w}${T}${k}`;case"**":return P+U(h);case"**/*":return`(?:${P}${U(h)}${D})?${T}${w}${k}`;case"**/*.*":return`(?:${P}${U(h)}${D})?${T}${k}${y}${w}${k}`;case"**/.*":return`(?:${P}${U(h)}${D})?${y}${w}${k}`;default:{let I=/^(.*?)\.(\w+)$/.exec(et);if(!I)return;let M=L(I[1]);return M?M+y+I[2]:void 0}}},q=s.removePrefix(o,x),V=L(q);return V&&h.strictSlashes!==!0&&(V+=`${D}?`),V},l.exports=c}),vc=N((t,l)=>{"use strict";B();var n=Z("path"),s=gc(),i=bc(),p=pr(),u=fr(),r=f=>f&&typeof f=="object"&&!Array.isArray(f),e=(f,a,c=!1)=>{if(Array.isArray(f)){let D=f.map(w=>e(w,a,c));return w=>{for(let v of D){let m=v(w);if(m)return m}return!1}}let o=r(f)&&f.tokens&&f.input;if(f===""||typeof f!="string"&&!o)throw new TypeError("Expected pattern to be a non-empty string");let d=a||{},h=p.isWindows(a),g=o?e.compileRe(f,a):e.makeRe(f,a,!1,!0),b=g.state;delete g.state;let E=()=>!1;if(d.ignore){let D={...a,ignore:null,onMatch:null,onResult:null};E=e(d.ignore,D,c)}let y=(D,w=!1)=>{let{isMatch:v,match:m,output:_}=e.test(D,g,a,{glob:f,posix:h}),S={glob:f,state:b,regex:g,posix:h,input:D,output:_,match:m,isMatch:v};return typeof d.onResult=="function"&&d.onResult(S),v===!1?(S.isMatch=!1,w?S:!1):E(D)?(typeof d.onIgnore=="function"&&d.onIgnore(S),S.isMatch=!1,w?S:!1):(typeof d.onMatch=="function"&&d.onMatch(S),w?S:!0)};return c&&(y.state=b),y};e.test=(f,a,c,{glob:o,posix:d}={})=>{if(typeof f!="string")throw new TypeError("Expected input to be a string");if(f==="")return{isMatch:!1,output:""};let h=c||{},g=h.format||(d?p.toPosixSlashes:null),b=f===o,E=b&&g?g(f):f;return b===!1&&(E=g?g(f):f,b=E===o),(b===!1||h.capture===!0)&&(h.matchBase===!0||h.basename===!0?b=e.matchBase(f,a,c,d):b=a.exec(E)),{isMatch:!!b,match:b,output:E}},e.matchBase=(f,a,c,o=p.isWindows(c))=>(a instanceof RegExp?a:e.makeRe(a,c)).test(n.basename(f)),e.isMatch=(f,a,c)=>e(a,c)(f),e.parse=(f,a)=>Array.isArray(f)?f.map(c=>e.parse(c,a)):i(f,{...a,fastpaths:!1}),e.scan=(f,a)=>s(f,a),e.compileRe=(f,a,c=!1,o=!1)=>{if(c===!0)return f.output;let d=a||{},h=d.contains?"":"^",g=d.contains?"":"$",b=`${h}(?:${f.output})${g}`;f&&f.negated===!0&&(b=`^(?!${b}).*$`);let E=e.toRegex(b,a);return o===!0&&(E.state=f),E},e.makeRe=(f,a={},c=!1,o=!1)=>{if(!f||typeof f!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return a.fastpaths!==!1&&(f[0]==="."||f[0]==="*")&&(d.output=i.fastpaths(f,a)),d.output||(d=i(f,a)),e.compileRe(d,a,c,o)},e.toRegex=(f,a)=>{try{let c=a||{};return new RegExp(f,c.flags||(c.nocase?"i":""))}catch(c){if(a&&a.debug===!0)throw c;return/$^/}},e.constants=u,l.exports=e}),Ec=N((t,l)=>{"use strict";B(),l.exports=vc()}),_c=N((t,l)=>{"use strict";B();var n=Z("util"),s=yc(),i=Ec(),p=pr(),u=e=>e===""||e==="./",r=(e,f,a)=>{f=[].concat(f),e=[].concat(e);let c=new Set,o=new Set,d=new Set,h=0,g=E=>{d.add(E.output),a&&a.onResult&&a.onResult(E)};for(let E=0;E<f.length;E++){let y=i(String(f[E]),{...a,onResult:g},!0),D=y.state.negated||y.state.negatedExtglob;D&&h++;for(let w of e){let v=y(w,!0);!(D?!v.isMatch:v.isMatch)||(D?c.add(v.output):(c.delete(v.output),o.add(v.output)))}}let b=(h===f.length?[...d]:[...o]).filter(E=>!c.has(E));if(a&&b.length===0){if(a.failglob===!0)throw new Error(`No matches found for "${f.join(", ")}"`);if(a.nonull===!0||a.nullglob===!0)return a.unescape?f.map(E=>E.replace(/\\/g,"")):f}return b};r.match=r,r.matcher=(e,f)=>i(e,f),r.isMatch=(e,f,a)=>i(f,a)(e),r.any=r.isMatch,r.not=(e,f,a={})=>{f=[].concat(f).map(String);let c=new Set,o=[],d=g=>{a.onResult&&a.onResult(g),o.push(g.output)},h=new Set(r(e,f,{...a,onResult:d}));for(let g of o)h.has(g)||c.add(g);return[...c]},r.contains=(e,f,a)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${n.inspect(e)}"`);if(Array.isArray(f))return f.some(c=>r.contains(e,c,a));if(typeof f=="string"){if(u(e)||u(f))return!1;if(e.includes(f)||e.startsWith("./")&&e.slice(2).includes(f))return!0}return r.isMatch(e,f,{...a,contains:!0})},r.matchKeys=(e,f,a)=>{if(!p.isObject(e))throw new TypeError("Expected the first argument to be an object");let c=r(Object.keys(e),f,a),o={};for(let d of c)o[d]=e[d];return o},r.some=(e,f,a)=>{let c=[].concat(e);for(let o of[].concat(f)){let d=i(String(o),a);if(c.some(h=>d(h)))return!0}return!1},r.every=(e,f,a)=>{let c=[].concat(e);for(let o of[].concat(f)){let d=i(String(o),a);if(!c.every(h=>d(h)))return!1}return!0},r.all=(e,f,a)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${n.inspect(e)}"`);return[].concat(f).every(c=>i(c,a)(e))},r.capture=(e,f,a)=>{let c=p.isWindows(a),o=i.makeRe(String(e),{...a,capture:!0}).exec(c?p.toPosixSlashes(f):f);if(o)return o.slice(1).map(d=>d===void 0?"":d)},r.makeRe=(...e)=>i.makeRe(...e),r.scan=(...e)=>i.scan(...e),r.parse=(e,f)=>{let a=[];for(let c of[].concat(e||[]))for(let o of s(String(c),f))a.push(i.parse(o,f));return a},r.braces=(e,f)=>{if(typeof e!="string")throw new TypeError("Expected a string");return f&&f.nobrace===!0||!/\{.*\}/.test(e)?[e]:s(e,f)},r.braceExpand=(e,f)=>{if(typeof e!="string")throw new TypeError("Expected a string");return r.braces(e,{...f,expand:!0})},l.exports=r}),wc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.matchAny=t.convertPatternsToRe=t.makeRe=t.getPatternParts=t.expandBraceExpansion=t.expandPatternsWithBraceExpansion=t.isAffectDepthOfReadingPattern=t.endsWithSlashGlobStar=t.hasGlobStar=t.getBaseDirectory=t.isPatternRelatedToParentDirectory=t.getPatternsOutsideCurrentDirectory=t.getPatternsInsideCurrentDirectory=t.getPositivePatterns=t.getNegativePatterns=t.isPositivePattern=t.isNegativePattern=t.convertToNegativePattern=t.convertToPositivePattern=t.isDynamicPattern=t.isStaticPattern=void 0;var l=Z("path"),n=lc(),s=_c(),i="**",p="\\",u=/[*?]|^!/,r=/\[[^[]*]/,e=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,f=/[!*+?@]\([^(]*\)/,a=/,|\.\./;function c(L,q={}){return!o(L,q)}t.isStaticPattern=c;function o(L,q={}){return L===""?!1:!!(q.caseSensitiveMatch===!1||L.includes(p)||u.test(L)||r.test(L)||e.test(L)||q.extglob!==!1&&f.test(L)||q.braceExpansion!==!1&&d(L))}t.isDynamicPattern=o;function d(L){let q=L.indexOf("{");if(q===-1)return!1;let V=L.indexOf("}",q+1);if(V===-1)return!1;let et=L.slice(q,V);return a.test(et)}function h(L){return b(L)?L.slice(1):L}t.convertToPositivePattern=h;function g(L){return"!"+L}t.convertToNegativePattern=g;function b(L){return L.startsWith("!")&&L[1]!=="("}t.isNegativePattern=b;function E(L){return!b(L)}t.isPositivePattern=E;function y(L){return L.filter(b)}t.getNegativePatterns=y;function D(L){return L.filter(E)}t.getPositivePatterns=D;function w(L){return L.filter(q=>!m(q))}t.getPatternsInsideCurrentDirectory=w;function v(L){return L.filter(m)}t.getPatternsOutsideCurrentDirectory=v;function m(L){return L.startsWith("..")||L.startsWith("./..")}t.isPatternRelatedToParentDirectory=m;function _(L){return n(L,{flipBackslashes:!1})}t.getBaseDirectory=_;function S(L){return L.includes(i)}t.hasGlobStar=S;function A(L){return L.endsWith("/"+i)}t.endsWithSlashGlobStar=A;function F(L){let q=l.basename(L);return A(L)||c(q)}t.isAffectDepthOfReadingPattern=F;function P(L){return L.reduce((q,V)=>q.concat(T(V)),[])}t.expandPatternsWithBraceExpansion=P;function T(L){return s.braces(L,{expand:!0,nodupes:!0})}t.expandBraceExpansion=T;function O(L,q){let{parts:V}=s.scan(L,Object.assign(Object.assign({},q),{parts:!0}));return V.length===0&&(V=[L]),V[0].startsWith("/")&&(V[0]=V[0].slice(1),V.unshift("")),V}t.getPatternParts=O;function x(L,q){return s.makeRe(L,q)}t.makeRe=x;function k(L,q){return L.map(V=>x(V,q))}t.convertPatternsToRe=k;function U(L,q){return q.some(V=>V.test(L))}t.matchAny=U}),Dc=N((t,l)=>{"use strict";B();var n=Z("stream"),s=n.PassThrough,i=Array.prototype.slice;l.exports=p;function p(){let r=[],e=i.call(arguments),f=!1,a=e[e.length-1];a&&!Array.isArray(a)&&a.pipe==null?e.pop():a={};let c=a.end!==!1,o=a.pipeError===!0;a.objectMode==null&&(a.objectMode=!0),a.highWaterMark==null&&(a.highWaterMark=64*1024);let d=s(a);function h(){for(let E=0,y=arguments.length;E<y;E++)r.push(u(arguments[E],a));return g(),this}function g(){if(f)return;f=!0;let E=r.shift();if(!E){process.nextTick(b);return}Array.isArray(E)||(E=[E]);let y=E.length+1;function D(){--y>0||(f=!1,g())}function w(v){function m(){v.removeListener("merge2UnpipeEnd",m),v.removeListener("end",m),o&&v.removeListener("error",_),D()}function _(S){d.emit("error",S)}if(v._readableState.endEmitted)return D();v.on("merge2UnpipeEnd",m),v.on("end",m),o&&v.on("error",_),v.pipe(d,{end:!1}),v.resume()}for(let v=0;v<E.length;v++)w(E[v]);D()}function b(){f=!1,d.emit("queueDrain"),c&&d.end()}return d.setMaxListeners(0),d.add=h,d.on("unpipe",function(E){E.emit("merge2UnpipeEnd")}),e.length&&h.apply(null,e),d}function u(r,e){if(Array.isArray(r))for(let f=0,a=r.length;f<a;f++)r[f]=u(r[f],e);else{if(!r._readableState&&r.pipe&&(r=r.pipe(s(e))),!r._readableState||!r.pause||!r.pipe)throw new Error("Only readable stream can be merged.");r.pause()}return r}}),Sc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var l=Dc();function n(i){let p=l(i);return i.forEach(u=>{u.once("error",r=>p.emit("error",r))}),p.once("close",()=>s(i)),p.once("end",()=>s(i)),p}t.merge=n;function s(i){i.forEach(p=>p.emit("close"))}}),Ac=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=t.isString=void 0;function l(s){return typeof s=="string"}t.isString=l;function n(s){return s===""}t.isEmpty=n}),ce=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.string=t.stream=t.pattern=t.path=t.fs=t.errno=t.array=void 0;var l=nc();t.array=l;var n=ic();t.errno=n;var s=sc();t.fs=s;var i=oc();t.path=i;var p=wc();t.pattern=p;var u=Sc();t.stream=u;var r=Ac();t.string=r}),Cc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.convertPatternGroupToTask=t.convertPatternGroupsToTasks=t.groupPatternsByBaseDirectory=t.getNegativePatternsAsPositive=t.getPositivePatterns=t.convertPatternsToTasks=t.generate=void 0;var l=ce();function n(f,a){let c=i(f),o=p(f,a.ignore),d=c.filter(E=>l.pattern.isStaticPattern(E,a)),h=c.filter(E=>l.pattern.isDynamicPattern(E,a)),g=s(d,o,!1),b=s(h,o,!0);return g.concat(b)}t.generate=n;function s(f,a,c){let o=[],d=l.pattern.getPatternsOutsideCurrentDirectory(f),h=l.pattern.getPatternsInsideCurrentDirectory(f),g=u(d),b=u(h);return o.push(...r(g,a,c)),"."in b?o.push(e(".",h,a,c)):o.push(...r(b,a,c)),o}t.convertPatternsToTasks=s;function i(f){return l.pattern.getPositivePatterns(f)}t.getPositivePatterns=i;function p(f,a){return l.pattern.getNegativePatterns(f).concat(a).map(l.pattern.convertToPositivePattern)}t.getNegativePatternsAsPositive=p;function u(f){let a={};return f.reduce((c,o)=>{let d=l.pattern.getBaseDirectory(o);return d in c?c[d].push(o):c[d]=[o],c},a)}t.groupPatternsByBaseDirectory=u;function r(f,a,c){return Object.keys(f).map(o=>e(o,f[o],a,c))}t.convertPatternGroupsToTasks=r;function e(f,a,c,o){return{dynamic:o,positive:a,negative:c,base:f,patterns:[].concat(a,c.map(l.pattern.convertToNegativePattern))}}t.convertPatternGroupToTask=e}),xc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.removeDuplicateSlashes=t.transform=void 0;var l=/(?!^)\/{2,}/g;function n(i){return i.map(p=>s(p))}t.transform=n;function s(i){return i.replace(l,"/")}t.removeDuplicateSlashes=s}),Fc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.read=void 0;function l(i,p,u){p.fs.lstat(i,(r,e)=>{if(r!==null){n(u,r);return}if(!e.isSymbolicLink()||!p.followSymbolicLink){s(u,e);return}p.fs.stat(i,(f,a)=>{if(f!==null){if(p.throwErrorOnBrokenSymbolicLink){n(u,f);return}s(u,e);return}p.markSymbolicLink&&(a.isSymbolicLink=()=>!0),s(u,a)})})}t.read=l;function n(i,p){i(p)}function s(i,p){i(null,p)}}),kc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.read=void 0;function l(n,s){let i=s.fs.lstatSync(n);if(!i.isSymbolicLink()||!s.followSymbolicLink)return i;try{let p=s.fs.statSync(n);return s.markSymbolicLink&&(p.isSymbolicLink=()=>!0),p}catch(p){if(!s.throwErrorOnBrokenSymbolicLink)return i;throw p}}t.read=l}),Oc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;var l=Z("fs");t.FILE_SYSTEM_ADAPTER={lstat:l.lstat,stat:l.stat,lstatSync:l.lstatSync,statSync:l.statSync};function n(s){return s===void 0?t.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),s)}t.createFileSystemAdapter=n}),Rc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Oc(),n=class{constructor(s={}){this._options=s,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=l.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(s,i){return s!=null?s:i}};t.default=n}),Ce=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.statSync=t.stat=t.Settings=void 0;var l=Fc(),n=kc(),s=Rc();t.Settings=s.default;function i(r,e,f){if(typeof e=="function"){l.read(r,u(),e);return}l.read(r,u(e),f)}t.stat=i;function p(r,e){let f=u(e);return n.read(r,f)}t.statSync=p;function u(r={}){return r instanceof s.default?r:new s.default(r)}}),Tc=N((t,l)=>{B();var n;l.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):s=>(n||(n=Promise.resolve())).then(s).catch(i=>setTimeout(()=>{throw i},0))}),Bc=N((t,l)=>{B(),l.exports=s;var n=Tc();function s(i,p){let u,r,e,f=!0;Array.isArray(i)?(u=[],r=i.length):(e=Object.keys(i),u={},r=e.length);function a(o){function d(){p&&p(o,u),p=null}f?n(d):d()}function c(o,d,h){u[o]=h,(--r===0||d)&&a(d)}r?e?e.forEach(function(o){i[o](function(d,h){c(o,d,h)})}):i.forEach(function(o,d){o(function(h,g){c(d,h,g)})}):a(null),f=!1}}),Mi=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var l=process.versions.node.split(".");if(l[0]===void 0||l[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var n=Number.parseInt(l[0],10),s=Number.parseInt(l[1],10),i=10,p=10,u=n>i,r=n===i&&s>=p;t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=u||r}),Pc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createDirentFromStats=void 0;var l=class{constructor(s,i){this.name=s,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function n(s,i){return new l(s,i)}t.createDirentFromStats=n}),ji=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.fs=void 0;var l=Pc();t.fs=l}),$i=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.joinPathSegments=void 0;function l(n,s,i){return n.endsWith(i)?n+s:n+i+s}t.joinPathSegments=l}),Ic=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=t.readdirWithFileTypes=t.read=void 0;var l=Ce(),n=Bc(),s=Mi(),i=ji(),p=$i();function u(o,d,h){if(!d.stats&&s.IS_SUPPORT_READDIR_WITH_FILE_TYPES){r(o,d,h);return}f(o,d,h)}t.read=u;function r(o,d,h){d.fs.readdir(o,{withFileTypes:!0},(g,b)=>{if(g!==null){a(h,g);return}let E=b.map(D=>({dirent:D,name:D.name,path:p.joinPathSegments(o,D.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){c(h,E);return}let y=E.map(D=>e(D,d));n(y,(D,w)=>{if(D!==null){a(h,D);return}c(h,w)})})}t.readdirWithFileTypes=r;function e(o,d){return h=>{if(!o.dirent.isSymbolicLink()){h(null,o);return}d.fs.stat(o.path,(g,b)=>{if(g!==null){if(d.throwErrorOnBrokenSymbolicLink){h(g);return}h(null,o);return}o.dirent=i.fs.createDirentFromStats(o.name,b),h(null,o)})}}function f(o,d,h){d.fs.readdir(o,(g,b)=>{if(g!==null){a(h,g);return}let E=b.map(y=>{let D=p.joinPathSegments(o,y,d.pathSegmentSeparator);return w=>{l.stat(D,d.fsStatSettings,(v,m)=>{if(v!==null){w(v);return}let _={name:y,path:D,dirent:i.fs.createDirentFromStats(y,m)};d.stats&&(_.stats=m),w(null,_)})}});n(E,(y,D)=>{if(y!==null){a(h,y);return}c(h,D)})})}t.readdir=f;function a(o,d){o(d)}function c(o,d){o(null,d)}}),Lc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=t.readdirWithFileTypes=t.read=void 0;var l=Ce(),n=Mi(),s=ji(),i=$i();function p(e,f){return!f.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES?u(e,f):r(e,f)}t.read=p;function u(e,f){return f.fs.readdirSync(e,{withFileTypes:!0}).map(a=>{let c={dirent:a,name:a.name,path:i.joinPathSegments(e,a.name,f.pathSegmentSeparator)};if(c.dirent.isSymbolicLink()&&f.followSymbolicLinks)try{let o=f.fs.statSync(c.path);c.dirent=s.fs.createDirentFromStats(c.name,o)}catch(o){if(f.throwErrorOnBrokenSymbolicLink)throw o}return c})}t.readdirWithFileTypes=u;function r(e,f){return f.fs.readdirSync(e).map(a=>{let c=i.joinPathSegments(e,a,f.pathSegmentSeparator),o=l.statSync(c,f.fsStatSettings),d={name:a,path:c,dirent:s.fs.createDirentFromStats(a,o)};return f.stats&&(d.stats=o),d})}t.readdir=r}),Nc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;var l=Z("fs");t.FILE_SYSTEM_ADAPTER={lstat:l.lstat,stat:l.stat,lstatSync:l.lstatSync,statSync:l.statSync,readdir:l.readdir,readdirSync:l.readdirSync};function n(s){return s===void 0?t.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),s)}t.createFileSystemAdapter=n}),Mc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Z("path"),n=Ce(),s=Nc(),i=class{constructor(p={}){this._options=p,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=s.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,l.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new n.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(p,u){return p!=null?p:u}};t.default=i}),nn=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.scandirSync=t.scandir=void 0;var l=Ic(),n=Lc(),s=Mc();t.Settings=s.default;function i(r,e,f){if(typeof e=="function"){l.read(r,u(),e);return}l.read(r,u(e),f)}t.scandir=i;function p(r,e){let f=u(e);return n.read(r,f)}t.scandirSync=p;function u(r={}){return r instanceof s.default?r:new s.default(r)}}),jc=N((t,l)=>{"use strict";B();function n(s){var i=new s,p=i;function u(){var e=i;return e.next?i=e.next:(i=new s,p=i),e.next=null,e}function r(e){p.next=e,p=e}return{get:u,release:r}}l.exports=n}),$c=N((t,l)=>{"use strict";B();var n=jc();function s(r,e,f){if(typeof r=="function"&&(f=e,e=r,r=null),f<1)throw new Error("fastqueue concurrency must be greater than 1");var a=n(p),c=null,o=null,d=0,h=null,g={push:m,drain:i,saturated:i,pause:E,paused:!1,concurrency:f,running:b,resume:w,idle:v,length:y,getQueue:D,unshift:_,empty:i,kill:A,killAndDrain:F,error:P};return g;function b(){return d}function E(){g.paused=!0}function y(){for(var T=c,O=0;T;)T=T.next,O++;return O}function D(){for(var T=c,O=[];T;)O.push(T.value),T=T.next;return O}function w(){if(g.paused){g.paused=!1;for(var T=0;T<g.concurrency;T++)d++,S()}}function v(){return d===0&&g.length()===0}function m(T,O){var x=a.get();x.context=r,x.release=S,x.value=T,x.callback=O||i,x.errorHandler=h,d===g.concurrency||g.paused?o?(o.next=x,o=x):(c=x,o=x,g.saturated()):(d++,e.call(r,x.value,x.worked))}function _(T,O){var x=a.get();x.context=r,x.release=S,x.value=T,x.callback=O||i,d===g.concurrency||g.paused?c?(x.next=c,c=x):(c=x,o=x,g.saturated()):(d++,e.call(r,x.value,x.worked))}function S(T){T&&a.release(T);var O=c;O?g.paused?d--:(o===c&&(o=null),c=O.next,O.next=null,e.call(r,O.value,O.worked),o===null&&g.empty()):--d===0&&g.drain()}function A(){c=null,o=null,g.drain=i}function F(){c=null,o=null,g.drain(),g.drain=i}function P(T){h=T}}function i(){}function p(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var r=this;this.worked=function(e,f){var a=r.callback,c=r.errorHandler,o=r.value;r.value=null,r.callback=i,r.errorHandler&&c(e,o),a.call(r.context,e,f),r.release(r)}}function u(r,e,f){typeof r=="function"&&(f=e,e=r,r=null);function a(E,y){e.call(this,E).then(function(D){y(null,D)},y)}var c=s(r,a,f),o=c.push,d=c.unshift;return c.push=h,c.unshift=g,c.drained=b,c;function h(E){var y=new Promise(function(D,w){o(E,function(v,m){if(v){w(v);return}D(m)})});return y.catch(i),y}function g(E){var y=new Promise(function(D,w){d(E,function(v,m){if(v){w(v);return}D(m)})});return y.catch(i),y}function b(){var E=c.drain,y=new Promise(function(D){c.drain=function(){E(),D()}});return y}}l.exports=s,l.exports.promise=u}),sn=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.joinPathSegments=t.replacePathSegmentSeparator=t.isAppliedFilter=t.isFatalError=void 0;function l(p,u){return p.errorFilter===null?!0:!p.errorFilter(u)}t.isFatalError=l;function n(p,u){return p===null||p(u)}t.isAppliedFilter=n;function s(p,u){return p.split(/[/\\]/).join(u)}t.replacePathSegmentSeparator=s;function i(p,u,r){return p===""?u:p.endsWith(r)?p+u:p+r+u}t.joinPathSegments=i}),Hi=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=sn(),n=class{constructor(s,i){this._root=s,this._settings=i,this._root=l.replacePathSegmentSeparator(s,i.pathSegmentSeparator)}};t.default=n}),Ui=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Z("events"),n=nn(),s=$c(),i=sn(),p=Hi(),u=class extends p.default{constructor(r,e){super(r,e),this._settings=e,this._scandir=n.scandir,this._emitter=new l.EventEmitter,this._queue=s(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(r){this._emitter.on("entry",r)}onError(r){this._emitter.once("error",r)}onEnd(r){this._emitter.once("end",r)}_pushToQueue(r,e){let f={directory:r,base:e};this._queue.push(f,a=>{a!==null&&this._handleError(a)})}_worker(r,e){this._scandir(r.directory,this._settings.fsScandirSettings,(f,a)=>{if(f!==null){e(f,void 0);return}for(let c of a)this._handleEntry(c,r.base);e(null,void 0)})}_handleError(r){this._isDestroyed||!i.isFatalError(this._settings,r)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",r))}_handleEntry(r,e){if(this._isDestroyed||this._isFatalError)return;let f=r.path;e!==void 0&&(r.path=i.joinPathSegments(e,r.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,r)&&this._emitEntry(r),r.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(f,e===void 0?void 0:r.path)}_emitEntry(r){this._emitter.emit("entry",r)}};t.default=u}),Hc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Ui(),n=class{constructor(p,u){this._root=p,this._settings=u,this._reader=new l.default(this._root,this._settings),this._storage=[]}read(p){this._reader.onError(u=>{s(p,u)}),this._reader.onEntry(u=>{this._storage.push(u)}),this._reader.onEnd(()=>{i(p,this._storage)}),this._reader.read()}};t.default=n;function s(p,u){p(u)}function i(p,u){p(null,u)}}),Uc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Z("stream"),n=Ui(),s=class{constructor(i,p){this._root=i,this._settings=p,this._reader=new n.default(this._root,this._settings),this._stream=new l.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(i=>{this._stream.emit("error",i)}),this._reader.onEntry(i=>{this._stream.push(i)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};t.default=s}),Gc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=nn(),n=sn(),s=Hi(),i=class extends s.default{constructor(){super(...arguments),this._scandir=l.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(p,u){this._queue.add({directory:p,base:u})}_handleQueue(){for(let p of this._queue.values())this._handleDirectory(p.directory,p.base)}_handleDirectory(p,u){try{let r=this._scandir(p,this._settings.fsScandirSettings);for(let e of r)this._handleEntry(e,u)}catch(r){this._handleError(r)}}_handleError(p){if(n.isFatalError(this._settings,p))throw p}_handleEntry(p,u){let r=p.path;u!==void 0&&(p.path=n.joinPathSegments(u,p.name,this._settings.pathSegmentSeparator)),n.isAppliedFilter(this._settings.entryFilter,p)&&this._pushToStorage(p),p.dirent.isDirectory()&&n.isAppliedFilter(this._settings.deepFilter,p)&&this._pushToQueue(r,u===void 0?void 0:p.path)}_pushToStorage(p){this._storage.push(p)}};t.default=i}),qc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Gc(),n=class{constructor(s,i){this._root=s,this._settings=i,this._reader=new l.default(this._root,this._settings)}read(){return this._reader.read()}};t.default=n}),zc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Z("path"),n=nn(),s=class{constructor(i={}){this._options=i,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,l.sep),this.fsScandirSettings=new n.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(i,p){return i!=null?i:p}};t.default=s}),on=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.walkStream=t.walkSync=t.walk=void 0;var l=Hc(),n=Uc(),s=qc(),i=zc();t.Settings=i.default;function p(f,a,c){if(typeof a=="function"){new l.default(f,e()).read(a);return}new l.default(f,e(a)).read(c)}t.walk=p;function u(f,a){let c=e(a);return new s.default(f,c).read()}t.walkSync=u;function r(f,a){let c=e(a);return new n.default(f,c).read()}t.walkStream=r;function e(f={}){return f instanceof i.default?f:new i.default(f)}}),un=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Z("path"),n=Ce(),s=ce(),i=class{constructor(p){this._settings=p,this._fsStatSettings=new n.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(p){return l.resolve(this._settings.cwd,p)}_makeEntry(p,u){let r={name:u,path:u,dirent:s.fs.createDirentFromStats(u,p)};return this._settings.stats&&(r.stats=p),r}_isFatalError(p){return!s.errno.isEnoentCodeError(p)&&!this._settings.suppressErrors}};t.default=i}),Gi=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Z("stream"),n=Ce(),s=on(),i=un(),p=class extends i.default{constructor(){super(...arguments),this._walkStream=s.walkStream,this._stat=n.stat}dynamic(u,r){return this._walkStream(u,r)}static(u,r){let e=u.map(this._getFullEntryPath,this),f=new l.PassThrough({objectMode:!0});f._write=(a,c,o)=>this._getEntry(e[a],u[a],r).then(d=>{d!==null&&r.entryFilter(d)&&f.push(d),a===e.length-1&&f.end(),o()}).catch(o);for(let a=0;a<e.length;a++)f.write(a);return f}_getEntry(u,r,e){return this._getStat(u).then(f=>this._makeEntry(f,r)).catch(f=>{if(e.errorFilter(f))return null;throw f})}_getStat(u){return new Promise((r,e)=>{this._stat(u,this._fsStatSettings,(f,a)=>f===null?r(a):e(f))})}};t.default=p}),Wc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=on(),n=un(),s=Gi(),i=class extends n.default{constructor(){super(...arguments),this._walkAsync=l.walk,this._readerStream=new s.default(this._settings)}dynamic(p,u){return new Promise((r,e)=>{this._walkAsync(p,u,(f,a)=>{f===null?r(a):e(f)})})}async static(p,u){let r=[],e=this._readerStream.static(p,u);return new Promise((f,a)=>{e.once("error",a),e.on("data",c=>r.push(c)),e.once("end",()=>f(r))})}};t.default=i}),Vc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=ce(),n=class{constructor(s,i,p){this._patterns=s,this._settings=i,this._micromatchOptions=p,this._storage=[],this._fillStorage()}_fillStorage(){let s=l.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let i of s){let p=this._getPatternSegments(i),u=this._splitSegmentsIntoSections(p);this._storage.push({complete:u.length<=1,pattern:i,segments:p,sections:u})}}_getPatternSegments(s){return l.pattern.getPatternParts(s,this._micromatchOptions).map(i=>l.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:l.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(s){return l.array.splitWhen(s,i=>i.dynamic&&l.pattern.hasGlobStar(i.pattern))}};t.default=n}),Yc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Vc(),n=class extends l.default{match(s){let i=s.split("/"),p=i.length,u=this._storage.filter(r=>!r.complete||r.segments.length>p);for(let r of u){let e=r.sections[0];if(!r.complete&&p>e.length||i.every((f,a)=>{let c=r.segments[a];return!!(c.dynamic&&c.patternRe.test(f)||!c.dynamic&&c.pattern===f)}))return!0}return!1}};t.default=n}),Kc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=ce(),n=Yc(),s=class{constructor(i,p){this._settings=i,this._micromatchOptions=p}getFilter(i,p,u){let r=this._getMatcher(p),e=this._getNegativePatternsRe(u);return f=>this._filter(i,f,r,e)}_getMatcher(i){return new n.default(i,this._settings,this._micromatchOptions)}_getNegativePatternsRe(i){let p=i.filter(l.pattern.isAffectDepthOfReadingPattern);return l.pattern.convertPatternsToRe(p,this._micromatchOptions)}_filter(i,p,u,r){if(this._isSkippedByDeep(i,p.path)||this._isSkippedSymbolicLink(p))return!1;let e=l.path.removeLeadingDotSegment(p.path);return this._isSkippedByPositivePatterns(e,u)?!1:this._isSkippedByNegativePatterns(e,r)}_isSkippedByDeep(i,p){return this._settings.deep===1/0?!1:this._getEntryLevel(i,p)>=this._settings.deep}_getEntryLevel(i,p){let u=p.split("/").length;if(i==="")return u;let r=i.split("/").length;return u-r}_isSkippedSymbolicLink(i){return!this._settings.followSymbolicLinks&&i.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(i,p){return!this._settings.baseNameMatch&&!p.match(i)}_isSkippedByNegativePatterns(i,p){return!l.pattern.matchAny(i,p)}};t.default=s}),Jc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=ce(),n=class{constructor(s,i){this._settings=s,this._micromatchOptions=i,this.index=new Map}getFilter(s,i){let p=l.pattern.convertPatternsToRe(s,this._micromatchOptions),u=l.pattern.convertPatternsToRe(i,this._micromatchOptions);return r=>this._filter(r,p,u)}_filter(s,i,p){if(this._settings.unique&&this._isDuplicateEntry(s)||this._onlyFileFilter(s)||this._onlyDirectoryFilter(s)||this._isSkippedByAbsoluteNegativePatterns(s.path,p))return!1;let u=this._settings.baseNameMatch?s.name:s.path,r=s.dirent.isDirectory(),e=this._isMatchToPatterns(u,i,r)&&!this._isMatchToPatterns(s.path,p,r);return this._settings.unique&&e&&this._createIndexRecord(s),e}_isDuplicateEntry(s){return this.index.has(s.path)}_createIndexRecord(s){this.index.set(s.path,void 0)}_onlyFileFilter(s){return this._settings.onlyFiles&&!s.dirent.isFile()}_onlyDirectoryFilter(s){return this._settings.onlyDirectories&&!s.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(s,i){if(!this._settings.absolute)return!1;let p=l.path.makeAbsolute(this._settings.cwd,s);return l.pattern.matchAny(p,i)}_isMatchToPatterns(s,i,p){let u=l.path.removeLeadingDotSegment(s),r=l.pattern.matchAny(u,i);return!r&&p?l.pattern.matchAny(u+"/",i):r}};t.default=n}),Zc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=ce(),n=class{constructor(s){this._settings=s}getFilter(){return s=>this._isNonFatalError(s)}_isNonFatalError(s){return l.errno.isEnoentCodeError(s)||this._settings.suppressErrors}};t.default=n}),Xc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=ce(),n=class{constructor(s){this._settings=s}getTransformer(){return s=>this._transform(s)}_transform(s){let i=s.path;return this._settings.absolute&&(i=l.path.makeAbsolute(this._settings.cwd,i),i=l.path.unixify(i)),this._settings.markDirectories&&s.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},s),{path:i}):i}};t.default=n}),an=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Z("path"),n=Kc(),s=Jc(),i=Zc(),p=Xc(),u=class{constructor(r){this._settings=r,this.errorFilter=new i.default(this._settings),this.entryFilter=new s.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new n.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new p.default(this._settings)}_getRootDirectory(r){return l.resolve(this._settings.cwd,r.base)}_getReaderOptions(r){let e=r.base==="."?"":r.base;return{basePath:e,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(e,r.positive,r.negative),entryFilter:this.entryFilter.getFilter(r.positive,r.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};t.default=u}),Qc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Wc(),n=an(),s=class extends n.default{constructor(){super(...arguments),this._reader=new l.default(this._settings)}async read(i){let p=this._getRootDirectory(i),u=this._getReaderOptions(i);return(await this.api(p,i,u)).map(r=>u.transform(r))}api(i,p,u){return p.dynamic?this._reader.dynamic(i,u):this._reader.static(p.patterns,u)}};t.default=s}),th=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Z("stream"),n=Gi(),s=an(),i=class extends s.default{constructor(){super(...arguments),this._reader=new n.default(this._settings)}read(p){let u=this._getRootDirectory(p),r=this._getReaderOptions(p),e=this.api(u,p,r),f=new l.Readable({objectMode:!0,read:()=>{}});return e.once("error",a=>f.emit("error",a)).on("data",a=>f.emit("data",r.transform(a))).once("end",()=>f.emit("end")),f.once("close",()=>e.destroy()),f}api(p,u,r){return u.dynamic?this._reader.dynamic(p,r):this._reader.static(u.patterns,r)}};t.default=i}),eh=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Ce(),n=on(),s=un(),i=class extends s.default{constructor(){super(...arguments),this._walkSync=n.walkSync,this._statSync=l.statSync}dynamic(p,u){return this._walkSync(p,u)}static(p,u){let r=[];for(let e of p){let f=this._getFullEntryPath(e),a=this._getEntry(f,e,u);a===null||!u.entryFilter(a)||r.push(a)}return r}_getEntry(p,u,r){try{let e=this._getStat(p);return this._makeEntry(e,u)}catch(e){if(r.errorFilter(e))return null;throw e}}_getStat(p){return this._statSync(p,this._fsStatSettings)}};t.default=i}),rh=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=eh(),n=an(),s=class extends n.default{constructor(){super(...arguments),this._reader=new l.default(this._settings)}read(i){let p=this._getRootDirectory(i),u=this._getReaderOptions(i);return this.api(p,i,u).map(u.transform)}api(i,p,u){return p.dynamic?this._reader.dynamic(i,u):this._reader.static(p.patterns,u)}};t.default=s}),nh=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var l=Z("fs"),n=Z("os"),s=Math.max(n.cpus().length,1);t.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:l.lstat,lstatSync:l.lstatSync,stat:l.stat,statSync:l.statSync,readdir:l.readdir,readdirSync:l.readdirSync};var i=class{constructor(p={}){this._options=p,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,s),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(p,u){return p===void 0?u:p}_getFileSystemMethods(p={}){return Object.assign(Object.assign({},t.DEFAULT_FILE_SYSTEM_ADAPTER),p)}};t.default=i}),ih=N((t,l)=>{"use strict";B();var n=Cc(),s=xc(),i=Qc(),p=th(),u=rh(),r=nh(),e=ce();async function f(o,d){c(o);let h=a(o,i.default,d),g=await Promise.all(h);return e.array.flatten(g)}(function(o){function d(y,D){c(y);let w=a(y,u.default,D);return e.array.flatten(w)}o.sync=d;function h(y,D){c(y);let w=a(y,p.default,D);return e.stream.merge(w)}o.stream=h;function g(y,D){c(y);let w=s.transform([].concat(y)),v=new r.default(D);return n.generate(w,v)}o.generateTasks=g;function b(y,D){c(y);let w=new r.default(D);return e.pattern.isDynamicPattern(y,w)}o.isDynamicPattern=b;function E(y){return c(y),e.path.escape(y)}o.escapePath=E})(f||(f={}));function a(o,d,h){let g=s.transform([].concat(o)),b=new r.default(h),E=n.generate(g,b),y=new d(b);return E.map(y.read,y)}function c(o){if(![].concat(o).every(d=>e.string.isString(d)&&!e.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}l.exports=f});B();B();function qi(t){return typeof t>"u"||t===null}function sh(t){return typeof t=="object"&&t!==null}function oh(t){return Array.isArray(t)?t:qi(t)?[]:[t]}function uh(t,l){var n,s,i,p;if(l)for(p=Object.keys(l),n=0,s=p.length;n<s;n+=1)i=p[n],t[i]=l[i];return t}function ah(t,l){var n="",s;for(s=0;s<l;s+=1)n+=t;return n}function lh(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var ch=qi,hh=sh,fh=oh,ph=ah,dh=lh,mh=uh,Nt={isNothing:ch,isObject:hh,toArray:fh,repeat:ph,isNegativeZero:dh,extend:mh};function zi(t,l){var n="",s=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!l&&t.mark.snippet&&(n+=`
|
52
|
+
`+y+"]"}return s.pop(),i=y,E}},tc={parse:Vl,stringify:Ql},ec=tc,qr=ec;function rc(t){return!qr.parse(t).extends}var Pr={};function zr(t,l){var n;let s=(n=l==null?void 0:l.cache)!=null?n:!0,i=t||process.cwd();if(s&&Pr[i])return Pr[i];let p=Rr({target:"turbo.json",cwd:i,contentCheck:rc});if(!p)try{if(p=Gl(i),!p)return null}catch{return null}return s&&(Pr[i]=p),p}var Ne=Wt(require("fs"),1),ye=Wt(require("path"),1),nc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.splitWhen=t.flatten=void 0;function l(s){return s.reduce((i,p)=>[].concat(i,p),[])}t.flatten=l;function n(s,i){let p=[[]],u=0;for(let r of s)i(r)?(u++,p[u]=[]):p[u].push(r);return p}t.splitWhen=n}),ic=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.isEnoentCodeError=void 0;function l(n){return n.code==="ENOENT"}t.isEnoentCodeError=l}),sc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createDirentFromStats=void 0;var l=class{constructor(s,i){this.name=s,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function n(s,i){return new l(s,i)}t.createDirentFromStats=n}),oc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.removeLeadingDotSegment=t.escape=t.makeAbsolute=t.unixify=void 0;var l=Z("path"),n=2,s=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function i(e){return e.replace(/\\/g,"/")}t.unixify=i;function p(e,f){return l.resolve(e,f)}t.makeAbsolute=p;function u(e){return e.replace(s,"\\$2")}t.escape=u;function r(e){if(e.charAt(0)==="."){let f=e.charAt(1);if(f==="/"||f==="\\")return e.slice(n)}return e}t.removeLeadingDotSegment=r}),uc=N((t,l)=>{B(),l.exports=function(n){if(typeof n!="string"||n==="")return!1;for(var s;s=/(\\).|([@?!+*]\(.*\))/g.exec(n);){if(s[2])return!0;n=n.slice(s.index+s[0].length)}return!1}}),ac=N((t,l)=>{B();var n=uc(),s={"{":"}","(":")","[":"]"},i=function(u){if(u[0]==="!")return!0;for(var r=0,e=-2,f=-2,a=-2,c=-2,o=-2;r<u.length;){if(u[r]==="*"||u[r+1]==="?"&&/[\].+)]/.test(u[r])||f!==-1&&u[r]==="["&&u[r+1]!=="]"&&(f<r&&(f=u.indexOf("]",r)),f>r&&(o===-1||o>f||(o=u.indexOf("\\",r),o===-1||o>f)))||a!==-1&&u[r]==="{"&&u[r+1]!=="}"&&(a=u.indexOf("}",r),a>r&&(o=u.indexOf("\\",r),o===-1||o>a))||c!==-1&&u[r]==="("&&u[r+1]==="?"&&/[:!=]/.test(u[r+2])&&u[r+3]!==")"&&(c=u.indexOf(")",r),c>r&&(o=u.indexOf("\\",r),o===-1||o>c))||e!==-1&&u[r]==="("&&u[r+1]!=="|"&&(e<r&&(e=u.indexOf("|",r)),e!==-1&&u[e+1]!==")"&&(c=u.indexOf(")",e),c>e&&(o=u.indexOf("\\",e),o===-1||o>c))))return!0;if(u[r]==="\\"){var d=u[r+1];r+=2;var h=s[d];if(h){var y=u.indexOf(h,r);y!==-1&&(r=y+1)}if(u[r]==="!")return!0}else r++}return!1},p=function(u){if(u[0]==="!")return!0;for(var r=0;r<u.length;){if(/[*?{}()[\]]/.test(u[r]))return!0;if(u[r]==="\\"){var e=u[r+1];r+=2;var f=s[e];if(f){var a=u.indexOf(f,r);a!==-1&&(r=a+1)}if(u[r]==="!")return!0}else r++}return!1};l.exports=function(u,r){if(typeof u!="string"||u==="")return!1;if(n(u))return!0;var e=i;return r&&r.strict===!1&&(e=p),e(u)}}),lc=N((t,l)=>{"use strict";B();var n=ac(),s=Z("path").posix.dirname,i=Z("os").platform()==="win32",p="/",u=/\\/g,r=/[\{\[].*[\}\]]$/,e=/(^|[^\\])([\{\[]|\([^\)]+$)/,f=/\\([\!\*\?\|\[\]\(\)\{\}])/g;l.exports=function(a,c){var o=Object.assign({flipBackslashes:!0},c);o.flipBackslashes&&i&&a.indexOf(p)<0&&(a=a.replace(u,p)),r.test(a)&&(a+=p),a+="a";do a=s(a);while(n(a)||e.test(a));return a.replace(f,"$1")}}),en=N(t=>{"use strict";B(),t.isInteger=l=>typeof l=="number"?Number.isInteger(l):typeof l=="string"&&l.trim()!==""?Number.isInteger(Number(l)):!1,t.find=(l,n)=>l.nodes.find(s=>s.type===n),t.exceedsLimit=(l,n,s=1,i)=>i===!1||!t.isInteger(l)||!t.isInteger(n)?!1:(Number(n)-Number(l))/Number(s)>=i,t.escapeNode=(l,n=0,s)=>{let i=l.nodes[n];!i||(s&&i.type===s||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},t.encloseBrace=l=>l.type!=="brace"||l.commas>>0+l.ranges>>0?!1:(l.invalid=!0,!0),t.isInvalidBrace=l=>l.type!=="brace"?!1:l.invalid===!0||l.dollar?!0:!(l.commas>>0+l.ranges>>0)||l.open!==!0||l.close!==!0?(l.invalid=!0,!0):!1,t.isOpenOrClose=l=>l.type==="open"||l.type==="close"?!0:l.open===!0||l.close===!0,t.reduce=l=>l.reduce((n,s)=>(s.type==="text"&&n.push(s.value),s.type==="range"&&(s.type="text"),n),[]),t.flatten=(...l)=>{let n=[],s=i=>{for(let p=0;p<i.length;p++){let u=i[p];Array.isArray(u)?s(u,n):u!==void 0&&n.push(u)}return n};return s(l),n}}),rn=N((t,l)=>{"use strict";B();var n=en();l.exports=(s,i={})=>{let p=(u,r={})=>{let e=i.escapeInvalid&&n.isInvalidBrace(r),f=u.invalid===!0&&i.escapeInvalid===!0,a="";if(u.value)return(e||f)&&n.isOpenOrClose(u)?"\\"+u.value:u.value;if(u.value)return u.value;if(u.nodes)for(let c of u.nodes)a+=p(c);return a};return p(s)}}),cc=N((t,l)=>{"use strict";B(),l.exports=function(n){return typeof n=="number"?n-n===0:typeof n=="string"&&n.trim()!==""?Number.isFinite?Number.isFinite(+n):isFinite(+n):!1}}),hc=N((t,l)=>{"use strict";B();var n=cc(),s=(g,D,w)=>{if(n(g)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(D===void 0||g===D)return String(g);if(n(D)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let v={relaxZeros:!0,...w};typeof v.strictZeros=="boolean"&&(v.relaxZeros=v.strictZeros===!1);let m=String(v.relaxZeros),_=String(v.shorthand),S=String(v.capture),A=String(v.wrap),x=g+":"+D+"="+m+_+S+A;if(s.cache.hasOwnProperty(x))return s.cache[x].result;let L=Math.min(g,D),T=Math.max(g,D);if(Math.abs(L-T)===1){let R=g+"|"+D;return v.capture?`(${R})`:v.wrap===!1?R:`(?:${R})`}let F=b(g)||b(D),O={min:g,max:D,a:L,b:T},I=[],$=[];if(F&&(O.isPadded=F,O.maxLen=String(O.max).length),L<0){let R=T<0?Math.abs(T):1;$=r(R,Math.abs(L),O,v),L=O.a=0}return T>=0&&(I=r(L,T,O,v)),O.negatives=$,O.positives=I,O.result=i($,I,v),v.capture===!0?O.result=`(${O.result})`:v.wrap!==!1&&I.length+$.length>1&&(O.result=`(?:${O.result})`),s.cache[x]=O,O.result};function i(g,D,w){let v=e(g,D,"-",!1,w)||[],m=e(D,g,"",!1,w)||[],_=e(g,D,"-?",!0,w)||[];return v.concat(_).concat(m).join("|")}function p(g,D){let w=1,v=1,m=o(g,w),_=new Set([D]);for(;g<=m&&m<=D;)_.add(m),w+=1,m=o(g,w);for(m=d(D+1,v)-1;g<m&&m<=D;)_.add(m),v+=1,m=d(D+1,v)-1;return _=[..._],_.sort(a),_}function u(g,D,w){if(g===D)return{pattern:g,count:[],digits:0};let v=f(g,D),m=v.length,_="",S=0;for(let A=0;A<m;A++){let[x,L]=v[A];x===L?_+=x:x!=="0"||L!=="9"?_+=y(x,L,w):S++}return S&&(_+=w.shorthand===!0?"\\d":"[0-9]"),{pattern:_,count:[S],digits:m}}function r(g,D,w,v){let m=p(g,D),_=[],S=g,A;for(let x=0;x<m.length;x++){let L=m[x],T=u(String(S),String(L),v),F="";if(!w.isPadded&&A&&A.pattern===T.pattern){A.count.length>1&&A.count.pop(),A.count.push(T.count[0]),A.string=A.pattern+h(A.count),S=L+1;continue}w.isPadded&&(F=E(L,w,v)),T.string=F+T.pattern+h(T.count),_.push(T),S=L+1,A=T}return _}function e(g,D,w,v,m){let _=[];for(let S of g){let{string:A}=S;!v&&!c(D,"string",A)&&_.push(w+A),v&&c(D,"string",A)&&_.push(w+A)}return _}function f(g,D){let w=[];for(let v=0;v<g.length;v++)w.push([g[v],D[v]]);return w}function a(g,D){return g>D?1:D>g?-1:0}function c(g,D,w){return g.some(v=>v[D]===w)}function o(g,D){return Number(String(g).slice(0,-D)+"9".repeat(D))}function d(g,D){return g-g%Math.pow(10,D)}function h(g){let[D=0,w=""]=g;return w||D>1?`{${D+(w?","+w:"")}}`:""}function y(g,D,w){return`[${g}${D-g===1?"":"-"}${D}]`}function b(g){return/^-?(0+)\d/.test(g)}function E(g,D,w){if(!D.isPadded)return g;let v=Math.abs(D.maxLen-String(g).length),m=w.relaxZeros!==!1;switch(v){case 0:return"";case 1:return m?"0?":"0";case 2:return m?"0{0,2}":"00";default:return m?`0{0,${v}}`:`0{${v}}`}}s.cache={},s.clearCache=()=>s.cache={},l.exports=s}),Ni=N((t,l)=>{"use strict";B();var n=Z("util"),s=hc(),i=v=>v!==null&&typeof v=="object"&&!Array.isArray(v),p=v=>m=>v===!0?Number(m):String(m),u=v=>typeof v=="number"||typeof v=="string"&&v!=="",r=v=>Number.isInteger(+v),e=v=>{let m=`${v}`,_=-1;if(m[0]==="-"&&(m=m.slice(1)),m==="0")return!1;for(;m[++_]==="0";);return _>0},f=(v,m,_)=>typeof v=="string"||typeof m=="string"?!0:_.stringify===!0,a=(v,m,_)=>{if(m>0){let S=v[0]==="-"?"-":"";S&&(v=v.slice(1)),v=S+v.padStart(S?m-1:m,"0")}return _===!1?String(v):v},c=(v,m)=>{let _=v[0]==="-"?"-":"";for(_&&(v=v.slice(1),m--);v.length<m;)v="0"+v;return _?"-"+v:v},o=(v,m)=>{v.negatives.sort((L,T)=>L<T?-1:L>T?1:0),v.positives.sort((L,T)=>L<T?-1:L>T?1:0);let _=m.capture?"":"?:",S="",A="",x;return v.positives.length&&(S=v.positives.join("|")),v.negatives.length&&(A=`-(${_}${v.negatives.join("|")})`),S&&A?x=`${S}|${A}`:x=S||A,m.wrap?`(${_}${x})`:x},d=(v,m,_,S)=>{if(_)return s(v,m,{wrap:!1,...S});let A=String.fromCharCode(v);if(v===m)return A;let x=String.fromCharCode(m);return`[${A}-${x}]`},h=(v,m,_)=>{if(Array.isArray(v)){let S=_.wrap===!0,A=_.capture?"":"?:";return S?`(${A}${v.join("|")})`:v.join("|")}return s(v,m,_)},y=(...v)=>new RangeError("Invalid range arguments: "+n.inspect(...v)),b=(v,m,_)=>{if(_.strictRanges===!0)throw y([v,m]);return[]},E=(v,m)=>{if(m.strictRanges===!0)throw new TypeError(`Expected step "${v}" to be a number`);return[]},g=(v,m,_=1,S={})=>{let A=Number(v),x=Number(m);if(!Number.isInteger(A)||!Number.isInteger(x)){if(S.strictRanges===!0)throw y([v,m]);return[]}A===0&&(A=0),x===0&&(x=0);let L=A>x,T=String(v),F=String(m),O=String(_);_=Math.max(Math.abs(_),1);let I=e(T)||e(F)||e(O),$=I?Math.max(T.length,F.length,O.length):0,R=I===!1&&f(v,m,S)===!1,G=S.transform||p(R);if(S.toRegex&&_===1)return d(c(v,$),c(m,$),!0,S);let W={negatives:[],positives:[]},Q=k=>W[k<0?"negatives":"positives"].push(Math.abs(k)),P=[],j=0;for(;L?A>=x:A<=x;)S.toRegex===!0&&_>1?Q(A):P.push(a(G(A,j),$,R)),A=L?A-_:A+_,j++;return S.toRegex===!0?_>1?o(W,S):h(P,null,{wrap:!1,...S}):P},D=(v,m,_=1,S={})=>{if(!r(v)&&v.length>1||!r(m)&&m.length>1)return b(v,m,S);let A=S.transform||(R=>String.fromCharCode(R)),x=`${v}`.charCodeAt(0),L=`${m}`.charCodeAt(0),T=x>L,F=Math.min(x,L),O=Math.max(x,L);if(S.toRegex&&_===1)return d(F,O,!1,S);let I=[],$=0;for(;T?x>=L:x<=L;)I.push(A(x,$)),x=T?x-_:x+_,$++;return S.toRegex===!0?h(I,null,{wrap:!1,options:S}):I},w=(v,m,_,S={})=>{if(m==null&&u(v))return[v];if(!u(v)||!u(m))return b(v,m,S);if(typeof _=="function")return w(v,m,1,{transform:_});if(i(_))return w(v,m,0,_);let A={...S};return A.capture===!0&&(A.wrap=!0),_=_||A.step||1,r(_)?r(v)&&r(m)?g(v,m,_,A):D(v,m,Math.max(Math.abs(_),1),A):_!=null&&!i(_)?E(_,A):w(v,m,1,_)};l.exports=w}),fc=N((t,l)=>{"use strict";B();var n=Ni(),s=en(),i=(p,u={})=>{let r=(e,f={})=>{let a=s.isInvalidBrace(f),c=e.invalid===!0&&u.escapeInvalid===!0,o=a===!0||c===!0,d=u.escapeInvalid===!0?"\\":"",h="";if(e.isOpen===!0||e.isClose===!0)return d+e.value;if(e.type==="open")return o?d+e.value:"(";if(e.type==="close")return o?d+e.value:")";if(e.type==="comma")return e.prev.type==="comma"?"":o?e.value:"|";if(e.value)return e.value;if(e.nodes&&e.ranges>0){let y=s.reduce(e.nodes),b=n(...y,{...u,wrap:!1,toRegex:!0});if(b.length!==0)return y.length>1&&b.length>1?`(${b})`:b}if(e.nodes)for(let y of e.nodes)h+=r(y,e);return h};return r(p)};l.exports=i}),pc=N((t,l)=>{"use strict";B();var n=Ni(),s=rn(),i=en(),p=(r="",e="",f=!1)=>{let a=[];if(r=[].concat(r),e=[].concat(e),!e.length)return r;if(!r.length)return f?i.flatten(e).map(c=>`{${c}}`):e;for(let c of r)if(Array.isArray(c))for(let o of c)a.push(p(o,e,f));else for(let o of e)f===!0&&typeof o=="string"&&(o=`{${o}}`),a.push(Array.isArray(o)?p(c,o,f):c+o);return i.flatten(a)},u=(r,e={})=>{let f=e.rangeLimit===void 0?1e3:e.rangeLimit,a=(c,o={})=>{c.queue=[];let d=o,h=o.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,h=d.queue;if(c.invalid||c.dollar){h.push(p(h.pop(),s(c,e)));return}if(c.type==="brace"&&c.invalid!==!0&&c.nodes.length===2){h.push(p(h.pop(),["{}"]));return}if(c.nodes&&c.ranges>0){let g=i.reduce(c.nodes);if(i.exceedsLimit(...g,e.step,f))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let D=n(...g,e);D.length===0&&(D=s(c,e)),h.push(p(h.pop(),D)),c.nodes=[];return}let y=i.encloseBrace(c),b=c.queue,E=c;for(;E.type!=="brace"&&E.type!=="root"&&E.parent;)E=E.parent,b=E.queue;for(let g=0;g<c.nodes.length;g++){let D=c.nodes[g];if(D.type==="comma"&&c.type==="brace"){g===1&&b.push(""),b.push("");continue}if(D.type==="close"){h.push(p(h.pop(),b,y));continue}if(D.value&&D.type!=="open"){b.push(p(b.pop(),D.value));continue}D.nodes&&a(D,c)}return b};return i.flatten(a(r))};l.exports=u}),dc=N((t,l)=>{"use strict";B(),l.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
53
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}),mc=N((t,l)=>{"use strict";B();var n=rn(),{MAX_LENGTH:s,CHAR_BACKSLASH:i,CHAR_BACKTICK:p,CHAR_COMMA:u,CHAR_DOT:r,CHAR_LEFT_PARENTHESES:e,CHAR_RIGHT_PARENTHESES:f,CHAR_LEFT_CURLY_BRACE:a,CHAR_RIGHT_CURLY_BRACE:c,CHAR_LEFT_SQUARE_BRACKET:o,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:h,CHAR_SINGLE_QUOTE:y,CHAR_NO_BREAK_SPACE:b,CHAR_ZERO_WIDTH_NOBREAK_SPACE:E}=dc(),g=(D,w={})=>{if(typeof D!="string")throw new TypeError("Expected a string");let v=w||{},m=typeof v.maxLength=="number"?Math.min(s,v.maxLength):s;if(D.length>m)throw new SyntaxError(`Input length (${D.length}), exceeds max characters (${m})`);let _={type:"root",input:D,nodes:[]},S=[_],A=_,x=_,L=0,T=D.length,F=0,O=0,I,$={},R=()=>D[F++],G=W=>{if(W.type==="text"&&x.type==="dot"&&(x.type="text"),x&&x.type==="text"&&W.type==="text"){x.value+=W.value;return}return A.nodes.push(W),W.parent=A,W.prev=x,x=W,W};for(G({type:"bos"});F<T;)if(A=S[S.length-1],I=R(),!(I===E||I===b)){if(I===i){G({type:"text",value:(w.keepEscaping?I:"")+R()});continue}if(I===d){G({type:"text",value:"\\"+I});continue}if(I===o){L++;let W=!0,Q;for(;F<T&&(Q=R());){if(I+=Q,Q===o){L++;continue}if(Q===i){I+=R();continue}if(Q===d&&(L--,L===0))break}G({type:"text",value:I});continue}if(I===e){A=G({type:"paren",nodes:[]}),S.push(A),G({type:"text",value:I});continue}if(I===f){if(A.type!=="paren"){G({type:"text",value:I});continue}A=S.pop(),G({type:"text",value:I}),A=S[S.length-1];continue}if(I===h||I===y||I===p){let W=I,Q;for(w.keepQuotes!==!0&&(I="");F<T&&(Q=R());){if(Q===i){I+=Q+R();continue}if(Q===W){w.keepQuotes===!0&&(I+=Q);break}I+=Q}G({type:"text",value:I});continue}if(I===a){O++;let W=x.value&&x.value.slice(-1)==="$"||A.dollar===!0;A=G({type:"brace",open:!0,close:!1,dollar:W,depth:O,commas:0,ranges:0,nodes:[]}),S.push(A),G({type:"open",value:I});continue}if(I===c){if(A.type!=="brace"){G({type:"text",value:I});continue}let W="close";A=S.pop(),A.close=!0,G({type:W,value:I}),O--,A=S[S.length-1];continue}if(I===u&&O>0){if(A.ranges>0){A.ranges=0;let W=A.nodes.shift();A.nodes=[W,{type:"text",value:n(A)}]}G({type:"comma",value:I}),A.commas++;continue}if(I===r&&O>0&&A.commas===0){let W=A.nodes;if(O===0||W.length===0){G({type:"text",value:I});continue}if(x.type==="dot"){if(A.range=[],x.value+=I,x.type="range",A.nodes.length!==3&&A.nodes.length!==5){A.invalid=!0,A.ranges=0,x.type="text";continue}A.ranges++,A.args=[];continue}if(x.type==="range"){W.pop();let Q=W[W.length-1];Q.value+=x.value+I,x=Q,A.ranges--;continue}G({type:"dot",value:I});continue}G({type:"text",value:I})}do if(A=S.pop(),A.type!=="root"){A.nodes.forEach(P=>{P.nodes||(P.type==="open"&&(P.isOpen=!0),P.type==="close"&&(P.isClose=!0),P.nodes||(P.type="text"),P.invalid=!0)});let W=S[S.length-1],Q=W.nodes.indexOf(A);W.nodes.splice(Q,1,...A.nodes)}while(S.length>0);return G({type:"eos"}),_};l.exports=g}),yc=N((t,l)=>{"use strict";B();var n=rn(),s=fc(),i=pc(),p=mc(),u=(r,e={})=>{let f=[];if(Array.isArray(r))for(let a of r){let c=u.create(a,e);Array.isArray(c)?f.push(...c):f.push(c)}else f=[].concat(u.create(r,e));return e&&e.expand===!0&&e.nodupes===!0&&(f=[...new Set(f)]),f};u.parse=(r,e={})=>p(r,e),u.stringify=(r,e={})=>n(typeof r=="string"?u.parse(r,e):r,e),u.compile=(r,e={})=>(typeof r=="string"&&(r=u.parse(r,e)),s(r,e)),u.expand=(r,e={})=>{typeof r=="string"&&(r=u.parse(r,e));let f=i(r,e);return e.noempty===!0&&(f=f.filter(Boolean)),e.nodupes===!0&&(f=[...new Set(f)]),f},u.create=(r,e={})=>r===""||r.length<3?[r]:e.expand!==!0?u.compile(r,e):u.expand(r,e),l.exports=u}),fr=N((t,l)=>{"use strict";B();var n=Z("path"),s="\\\\/",i=`[^${s}]`,p="\\.",u="\\+",r="\\?",e="\\/",f="(?=.)",a="[^/]",c=`(?:${e}|$)`,o=`(?:^|${e})`,d=`${p}{1,2}${c}`,h=`(?!${p})`,y=`(?!${o}${d})`,b=`(?!${p}{0,1}${c})`,E=`(?!${d})`,g=`[^.${e}]`,D=`${a}*?`,w={DOT_LITERAL:p,PLUS_LITERAL:u,QMARK_LITERAL:r,SLASH_LITERAL:e,ONE_CHAR:f,QMARK:a,END_ANCHOR:c,DOTS_SLASH:d,NO_DOT:h,NO_DOTS:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:E,QMARK_NO_DOT:g,STAR:D,START_ANCHOR:o},v={...w,SLASH_LITERAL:`[${s}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${p}{1,2}(?:[${s}]|$)`,NO_DOT:`(?!${p})`,NO_DOTS:`(?!(?:^|[${s}])${p}{1,2}(?:[${s}]|$))`,NO_DOT_SLASH:`(?!${p}{0,1}(?:[${s}]|$))`,NO_DOTS_SLASH:`(?!${p}{1,2}(?:[${s}]|$))`,QMARK_NO_DOT:`[^.${s}]`,START_ANCHOR:`(?:^|[${s}])`,END_ANCHOR:`(?:[${s}]|$)`},m={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};l.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:m,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:n.sep,extglobChars(_){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${_.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(_){return _===!0?v:w}}}),pr=N(t=>{"use strict";B();var l=Z("path"),n=process.platform==="win32",{REGEX_BACKSLASH:s,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:p,REGEX_SPECIAL_CHARS_GLOBAL:u}=fr();t.isObject=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),t.hasRegexChars=r=>p.test(r),t.isRegexChar=r=>r.length===1&&t.hasRegexChars(r),t.escapeRegex=r=>r.replace(u,"\\$1"),t.toPosixSlashes=r=>r.replace(s,"/"),t.removeBackslashes=r=>r.replace(i,e=>e==="\\"?"":e),t.supportsLookbehinds=()=>{let r=process.version.slice(1).split(".").map(Number);return r.length===3&&r[0]>=9||r[0]===8&&r[1]>=10},t.isWindows=r=>r&&typeof r.windows=="boolean"?r.windows:n===!0||l.sep==="\\",t.escapeLast=(r,e,f)=>{let a=r.lastIndexOf(e,f);return a===-1?r:r[a-1]==="\\"?t.escapeLast(r,e,a-1):`${r.slice(0,a)}\\${r.slice(a)}`},t.removePrefix=(r,e={})=>{let f=r;return f.startsWith("./")&&(f=f.slice(2),e.prefix="./"),f},t.wrapOutput=(r,e={},f={})=>{let a=f.contains?"":"^",c=f.contains?"":"$",o=`${a}(?:${r})${c}`;return e.negated===!0&&(o=`(?:^(?!${o}).*$)`),o}}),gc=N((t,l)=>{"use strict";B();var n=pr(),{CHAR_ASTERISK:s,CHAR_AT:i,CHAR_BACKWARD_SLASH:p,CHAR_COMMA:u,CHAR_DOT:r,CHAR_EXCLAMATION_MARK:e,CHAR_FORWARD_SLASH:f,CHAR_LEFT_CURLY_BRACE:a,CHAR_LEFT_PARENTHESES:c,CHAR_LEFT_SQUARE_BRACKET:o,CHAR_PLUS:d,CHAR_QUESTION_MARK:h,CHAR_RIGHT_CURLY_BRACE:y,CHAR_RIGHT_PARENTHESES:b,CHAR_RIGHT_SQUARE_BRACKET:E}=fr(),g=v=>v===f||v===p,D=v=>{v.isPrefix!==!0&&(v.depth=v.isGlobstar?1/0:1)},w=(v,m)=>{let _=m||{},S=v.length-1,A=_.parts===!0||_.scanToEnd===!0,x=[],L=[],T=[],F=v,O=-1,I=0,$=0,R=!1,G=!1,W=!1,Q=!1,P=!1,j=!1,k=!1,J=!1,q=!1,tt=!1,M=0,Y,et,ot={value:"",depth:0,isGlob:!1},ct=()=>O>=S,gt=()=>F.charCodeAt(O+1),mt=()=>(Y=et,F.charCodeAt(++O));for(;O<S;){et=mt();let X;if(et===p){k=ot.backslashes=!0,et=mt(),et===a&&(j=!0);continue}if(j===!0||et===a){for(M++;ct()!==!0&&(et=mt());){if(et===p){k=ot.backslashes=!0,mt();continue}if(et===a){M++;continue}if(j!==!0&&et===r&&(et=mt())===r){if(R=ot.isBrace=!0,W=ot.isGlob=!0,tt=!0,A===!0)continue;break}if(j!==!0&&et===u){if(R=ot.isBrace=!0,W=ot.isGlob=!0,tt=!0,A===!0)continue;break}if(et===y&&(M--,M===0)){j=!1,R=ot.isBrace=!0,tt=!0;break}}if(A===!0)continue;break}if(et===f){if(x.push(O),L.push(ot),ot={value:"",depth:0,isGlob:!1},tt===!0)continue;if(Y===r&&O===I+1){I+=2;continue}$=O+1;continue}if(_.noext!==!0&&(et===d||et===i||et===s||et===h||et===e)&>()===c){if(W=ot.isGlob=!0,Q=ot.isExtglob=!0,tt=!0,et===e&&O===I&&(q=!0),A===!0){for(;ct()!==!0&&(et=mt());){if(et===p){k=ot.backslashes=!0,et=mt();continue}if(et===b){W=ot.isGlob=!0,tt=!0;break}}continue}break}if(et===s){if(Y===s&&(P=ot.isGlobstar=!0),W=ot.isGlob=!0,tt=!0,A===!0)continue;break}if(et===h){if(W=ot.isGlob=!0,tt=!0,A===!0)continue;break}if(et===o){for(;ct()!==!0&&(X=mt());){if(X===p){k=ot.backslashes=!0,mt();continue}if(X===E){G=ot.isBracket=!0,W=ot.isGlob=!0,tt=!0;break}}if(A===!0)continue;break}if(_.nonegate!==!0&&et===e&&O===I){J=ot.negated=!0,I++;continue}if(_.noparen!==!0&&et===c){if(W=ot.isGlob=!0,A===!0){for(;ct()!==!0&&(et=mt());){if(et===c){k=ot.backslashes=!0,et=mt();continue}if(et===b){tt=!0;break}}continue}break}if(W===!0){if(tt=!0,A===!0)continue;break}}_.noext===!0&&(Q=!1,W=!1);let H=F,V="",C="";I>0&&(V=F.slice(0,I),F=F.slice(I),$-=I),H&&W===!0&&$>0?(H=F.slice(0,$),C=F.slice($)):W===!0?(H="",C=F):H=F,H&&H!==""&&H!=="/"&&H!==F&&g(H.charCodeAt(H.length-1))&&(H=H.slice(0,-1)),_.unescape===!0&&(C&&(C=n.removeBackslashes(C)),H&&k===!0&&(H=n.removeBackslashes(H)));let z={prefix:V,input:v,start:I,base:H,glob:C,isBrace:R,isBracket:G,isGlob:W,isExtglob:Q,isGlobstar:P,negated:J,negatedExtglob:q};if(_.tokens===!0&&(z.maxDepth=0,g(et)||L.push(ot),z.tokens=L),_.parts===!0||_.tokens===!0){let X;for(let rt=0;rt<x.length;rt++){let ht=X?X+1:I,it=x[rt],lt=v.slice(ht,it);_.tokens&&(rt===0&&I!==0?(L[rt].isPrefix=!0,L[rt].value=V):L[rt].value=lt,D(L[rt]),z.maxDepth+=L[rt].depth),(rt!==0||lt!=="")&&T.push(lt),X=it}if(X&&X+1<v.length){let rt=v.slice(X+1);T.push(rt),_.tokens&&(L[L.length-1].value=rt,D(L[L.length-1]),z.maxDepth+=L[L.length-1].depth)}z.slashes=x,z.parts=T}return z};l.exports=w}),bc=N((t,l)=>{"use strict";B();var n=fr(),s=pr(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:p,REGEX_NON_SPECIAL_CHARS:u,REGEX_SPECIAL_CHARS_BACKREF:r,REPLACEMENTS:e}=n,f=(o,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...o,d);o.sort();let h=`[${o.join("-")}]`;try{new RegExp(h)}catch{return o.map(y=>s.escapeRegex(y)).join("..")}return h},a=(o,d)=>`Missing ${o}: "${d}" - use "\\\\${d}" to match literal characters`,c=(o,d)=>{if(typeof o!="string")throw new TypeError("Expected a string");o=e[o]||o;let h={...d},y=typeof h.maxLength=="number"?Math.min(i,h.maxLength):i,b=o.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);let E={type:"bos",value:"",output:h.prepend||""},g=[E],D=h.capture?"":"?:",w=s.isWindows(d),v=n.globChars(w),m=n.extglobChars(v),{DOT_LITERAL:_,PLUS_LITERAL:S,SLASH_LITERAL:A,ONE_CHAR:x,DOTS_SLASH:L,NO_DOT:T,NO_DOT_SLASH:F,NO_DOTS_SLASH:O,QMARK:I,QMARK_NO_DOT:$,STAR:R,START_ANCHOR:G}=v,W=it=>`(${D}(?:(?!${G}${it.dot?L:_}).)*?)`,Q=h.dot?"":T,P=h.dot?I:$,j=h.bash===!0?W(h):R;h.capture&&(j=`(${j})`),typeof h.noext=="boolean"&&(h.noextglob=h.noext);let k={input:o,index:-1,start:0,dot:h.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};o=s.removePrefix(o,k),b=o.length;let J=[],q=[],tt=[],M=E,Y,et=()=>k.index===b-1,ot=k.peek=(it=1)=>o[k.index+it],ct=k.advance=()=>o[++k.index]||"",gt=()=>o.slice(k.index+1),mt=(it="",lt=0)=>{k.consumed+=it,k.index+=lt},H=it=>{k.output+=it.output!=null?it.output:it.value,mt(it.value)},V=()=>{let it=1;for(;ot()==="!"&&(ot(2)!=="("||ot(3)==="?");)ct(),k.start++,it++;return it%2===0?!1:(k.negated=!0,k.start++,!0)},C=it=>{k[it]++,tt.push(it)},z=it=>{k[it]--,tt.pop()},X=it=>{if(M.type==="globstar"){let lt=k.braces>0&&(it.type==="comma"||it.type==="brace"),nt=it.extglob===!0||J.length&&(it.type==="pipe"||it.type==="paren");it.type!=="slash"&&it.type!=="paren"&&!lt&&!nt&&(k.output=k.output.slice(0,-M.output.length),M.type="star",M.value="*",M.output=j,k.output+=M.output)}if(J.length&&it.type!=="paren"&&(J[J.length-1].inner+=it.value),(it.value||it.output)&&H(it),M&&M.type==="text"&&it.type==="text"){M.value+=it.value,M.output=(M.output||"")+it.value;return}it.prev=M,g.push(it),M=it},rt=(it,lt)=>{let nt={...m[lt],conditions:1,inner:""};nt.prev=M,nt.parens=k.parens,nt.output=k.output;let ft=(h.capture?"(":"")+nt.open;C("parens"),X({type:it,value:lt,output:k.output?"":x}),X({type:"paren",extglob:!0,value:ct(),output:ft}),J.push(nt)},ht=it=>{let lt=it.close+(h.capture?")":""),nt;if(it.type==="negate"){let ft=j;if(it.inner&&it.inner.length>1&&it.inner.includes("/")&&(ft=W(h)),(ft!==j||et()||/^\)+$/.test(gt()))&&(lt=it.close=`)$))${ft}`),it.inner.includes("*")&&(nt=gt())&&/^\.[^\\/.]+$/.test(nt)){let vt=c(nt,{...d,fastpaths:!1}).output;lt=it.close=`)${vt})${ft})`}it.prev.type==="bos"&&(k.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:Y,output:lt}),z("parens")};if(h.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(o)){let it=!1,lt=o.replace(r,(nt,ft,vt,xt,K,U)=>xt==="\\"?(it=!0,nt):xt==="?"?ft?ft+xt+(K?I.repeat(K.length):""):U===0?P+(K?I.repeat(K.length):""):I.repeat(vt.length):xt==="."?_.repeat(vt.length):xt==="*"?ft?ft+xt+(K?j:""):j:ft?nt:`\\${nt}`);return it===!0&&(h.unescape===!0?lt=lt.replace(/\\/g,""):lt=lt.replace(/\\+/g,nt=>nt.length%2===0?"\\\\":nt?"\\":"")),lt===o&&h.contains===!0?(k.output=o,k):(k.output=s.wrapOutput(lt,k,d),k)}for(;!et();){if(Y=ct(),Y==="\0")continue;if(Y==="\\"){let nt=ot();if(nt==="/"&&h.bash!==!0||nt==="."||nt===";")continue;if(!nt){Y+="\\",X({type:"text",value:Y});continue}let ft=/^\\+/.exec(gt()),vt=0;if(ft&&ft[0].length>2&&(vt=ft[0].length,k.index+=vt,vt%2!==0&&(Y+="\\")),h.unescape===!0?Y=ct():Y+=ct(),k.brackets===0){X({type:"text",value:Y});continue}}if(k.brackets>0&&(Y!=="]"||M.value==="["||M.value==="[^")){if(h.posix!==!1&&Y===":"){let nt=M.value.slice(1);if(nt.includes("[")&&(M.posix=!0,nt.includes(":"))){let ft=M.value.lastIndexOf("["),vt=M.value.slice(0,ft),xt=M.value.slice(ft+2),K=p[xt];if(K){M.value=vt+K,k.backtrack=!0,ct(),!E.output&&g.indexOf(M)===1&&(E.output=x);continue}}}(Y==="["&&ot()!==":"||Y==="-"&&ot()==="]")&&(Y=`\\${Y}`),Y==="]"&&(M.value==="["||M.value==="[^")&&(Y=`\\${Y}`),h.posix===!0&&Y==="!"&&M.value==="["&&(Y="^"),M.value+=Y,H({value:Y});continue}if(k.quotes===1&&Y!=='"'){Y=s.escapeRegex(Y),M.value+=Y,H({value:Y});continue}if(Y==='"'){k.quotes=k.quotes===1?0:1,h.keepQuotes===!0&&X({type:"text",value:Y});continue}if(Y==="("){C("parens"),X({type:"paren",value:Y});continue}if(Y===")"){if(k.parens===0&&h.strictBrackets===!0)throw new SyntaxError(a("opening","("));let nt=J[J.length-1];if(nt&&k.parens===nt.parens+1){ht(J.pop());continue}X({type:"paren",value:Y,output:k.parens?")":"\\)"}),z("parens");continue}if(Y==="["){if(h.nobracket===!0||!gt().includes("]")){if(h.nobracket!==!0&&h.strictBrackets===!0)throw new SyntaxError(a("closing","]"));Y=`\\${Y}`}else C("brackets");X({type:"bracket",value:Y});continue}if(Y==="]"){if(h.nobracket===!0||M&&M.type==="bracket"&&M.value.length===1){X({type:"text",value:Y,output:`\\${Y}`});continue}if(k.brackets===0){if(h.strictBrackets===!0)throw new SyntaxError(a("opening","["));X({type:"text",value:Y,output:`\\${Y}`});continue}z("brackets");let nt=M.value.slice(1);if(M.posix!==!0&&nt[0]==="^"&&!nt.includes("/")&&(Y=`/${Y}`),M.value+=Y,H({value:Y}),h.literalBrackets===!1||s.hasRegexChars(nt))continue;let ft=s.escapeRegex(M.value);if(k.output=k.output.slice(0,-M.value.length),h.literalBrackets===!0){k.output+=ft,M.value=ft;continue}M.value=`(${D}${ft}|${M.value})`,k.output+=M.value;continue}if(Y==="{"&&h.nobrace!==!0){C("braces");let nt={type:"brace",value:Y,output:"(",outputIndex:k.output.length,tokensIndex:k.tokens.length};q.push(nt),X(nt);continue}if(Y==="}"){let nt=q[q.length-1];if(h.nobrace===!0||!nt){X({type:"text",value:Y,output:Y});continue}let ft=")";if(nt.dots===!0){let vt=g.slice(),xt=[];for(let K=vt.length-1;K>=0&&(g.pop(),vt[K].type!=="brace");K--)vt[K].type!=="dots"&&xt.unshift(vt[K].value);ft=f(xt,h),k.backtrack=!0}if(nt.comma!==!0&&nt.dots!==!0){let vt=k.output.slice(0,nt.outputIndex),xt=k.tokens.slice(nt.tokensIndex);nt.value=nt.output="\\{",Y=ft="\\}",k.output=vt;for(let K of xt)k.output+=K.output||K.value}X({type:"brace",value:Y,output:ft}),z("braces"),q.pop();continue}if(Y==="|"){J.length>0&&J[J.length-1].conditions++,X({type:"text",value:Y});continue}if(Y===","){let nt=Y,ft=q[q.length-1];ft&&tt[tt.length-1]==="braces"&&(ft.comma=!0,nt="|"),X({type:"comma",value:Y,output:nt});continue}if(Y==="/"){if(M.type==="dot"&&k.index===k.start+1){k.start=k.index+1,k.consumed="",k.output="",g.pop(),M=E;continue}X({type:"slash",value:Y,output:A});continue}if(Y==="."){if(k.braces>0&&M.type==="dot"){M.value==="."&&(M.output=_);let nt=q[q.length-1];M.type="dots",M.output+=Y,M.value+=Y,nt.dots=!0;continue}if(k.braces+k.parens===0&&M.type!=="bos"&&M.type!=="slash"){X({type:"text",value:Y,output:_});continue}X({type:"dot",value:Y,output:_});continue}if(Y==="?"){if(!(M&&M.value==="(")&&h.noextglob!==!0&&ot()==="("&&ot(2)!=="?"){rt("qmark",Y);continue}if(M&&M.type==="paren"){let nt=ot(),ft=Y;if(nt==="<"&&!s.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(M.value==="("&&!/[!=<:]/.test(nt)||nt==="<"&&!/<([!=]|\w+>)/.test(gt()))&&(ft=`\\${Y}`),X({type:"text",value:Y,output:ft});continue}if(h.dot!==!0&&(M.type==="slash"||M.type==="bos")){X({type:"qmark",value:Y,output:$});continue}X({type:"qmark",value:Y,output:I});continue}if(Y==="!"){if(h.noextglob!==!0&&ot()==="("&&(ot(2)!=="?"||!/[!=<:]/.test(ot(3)))){rt("negate",Y);continue}if(h.nonegate!==!0&&k.index===0){V();continue}}if(Y==="+"){if(h.noextglob!==!0&&ot()==="("&&ot(2)!=="?"){rt("plus",Y);continue}if(M&&M.value==="("||h.regex===!1){X({type:"plus",value:Y,output:S});continue}if(M&&(M.type==="bracket"||M.type==="paren"||M.type==="brace")||k.parens>0){X({type:"plus",value:Y});continue}X({type:"plus",value:S});continue}if(Y==="@"){if(h.noextglob!==!0&&ot()==="("&&ot(2)!=="?"){X({type:"at",extglob:!0,value:Y,output:""});continue}X({type:"text",value:Y});continue}if(Y!=="*"){(Y==="$"||Y==="^")&&(Y=`\\${Y}`);let nt=u.exec(gt());nt&&(Y+=nt[0],k.index+=nt[0].length),X({type:"text",value:Y});continue}if(M&&(M.type==="globstar"||M.star===!0)){M.type="star",M.star=!0,M.value+=Y,M.output=j,k.backtrack=!0,k.globstar=!0,mt(Y);continue}let it=gt();if(h.noextglob!==!0&&/^\([^?]/.test(it)){rt("star",Y);continue}if(M.type==="star"){if(h.noglobstar===!0){mt(Y);continue}let nt=M.prev,ft=nt.prev,vt=nt.type==="slash"||nt.type==="bos",xt=ft&&(ft.type==="star"||ft.type==="globstar");if(h.bash===!0&&(!vt||it[0]&&it[0]!=="/")){X({type:"star",value:Y,output:""});continue}let K=k.braces>0&&(nt.type==="comma"||nt.type==="brace"),U=J.length&&(nt.type==="pipe"||nt.type==="paren");if(!vt&&nt.type!=="paren"&&!K&&!U){X({type:"star",value:Y,output:""});continue}for(;it.slice(0,3)==="/**";){let ut=o[k.index+4];if(ut&&ut!=="/")break;it=it.slice(3),mt("/**",3)}if(nt.type==="bos"&&et()){M.type="globstar",M.value+=Y,M.output=W(h),k.output=M.output,k.globstar=!0,mt(Y);continue}if(nt.type==="slash"&&nt.prev.type!=="bos"&&!xt&&et()){k.output=k.output.slice(0,-(nt.output+M.output).length),nt.output=`(?:${nt.output}`,M.type="globstar",M.output=W(h)+(h.strictSlashes?")":"|$)"),M.value+=Y,k.globstar=!0,k.output+=nt.output+M.output,mt(Y);continue}if(nt.type==="slash"&&nt.prev.type!=="bos"&&it[0]==="/"){let ut=it[1]!==void 0?"|$":"";k.output=k.output.slice(0,-(nt.output+M.output).length),nt.output=`(?:${nt.output}`,M.type="globstar",M.output=`${W(h)}${A}|${A}${ut})`,M.value+=Y,k.output+=nt.output+M.output,k.globstar=!0,mt(Y+ct()),X({type:"slash",value:"/",output:""});continue}if(nt.type==="bos"&&it[0]==="/"){M.type="globstar",M.value+=Y,M.output=`(?:^|${A}|${W(h)}${A})`,k.output=M.output,k.globstar=!0,mt(Y+ct()),X({type:"slash",value:"/",output:""});continue}k.output=k.output.slice(0,-M.output.length),M.type="globstar",M.output=W(h),M.value+=Y,k.output+=M.output,k.globstar=!0,mt(Y);continue}let lt={type:"star",value:Y,output:j};if(h.bash===!0){lt.output=".*?",(M.type==="bos"||M.type==="slash")&&(lt.output=Q+lt.output),X(lt);continue}if(M&&(M.type==="bracket"||M.type==="paren")&&h.regex===!0){lt.output=Y,X(lt);continue}(k.index===k.start||M.type==="slash"||M.type==="dot")&&(M.type==="dot"?(k.output+=F,M.output+=F):h.dot===!0?(k.output+=O,M.output+=O):(k.output+=Q,M.output+=Q),ot()!=="*"&&(k.output+=x,M.output+=x)),X(lt)}for(;k.brackets>0;){if(h.strictBrackets===!0)throw new SyntaxError(a("closing","]"));k.output=s.escapeLast(k.output,"["),z("brackets")}for(;k.parens>0;){if(h.strictBrackets===!0)throw new SyntaxError(a("closing",")"));k.output=s.escapeLast(k.output,"("),z("parens")}for(;k.braces>0;){if(h.strictBrackets===!0)throw new SyntaxError(a("closing","}"));k.output=s.escapeLast(k.output,"{"),z("braces")}if(h.strictSlashes!==!0&&(M.type==="star"||M.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${A}?`}),k.backtrack===!0){k.output="";for(let it of k.tokens)k.output+=it.output!=null?it.output:it.value,it.suffix&&(k.output+=it.suffix)}return k};c.fastpaths=(o,d)=>{let h={...d},y=typeof h.maxLength=="number"?Math.min(i,h.maxLength):i,b=o.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);o=e[o]||o;let E=s.isWindows(d),{DOT_LITERAL:g,SLASH_LITERAL:D,ONE_CHAR:w,DOTS_SLASH:v,NO_DOT:m,NO_DOTS:_,NO_DOTS_SLASH:S,STAR:A,START_ANCHOR:x}=n.globChars(E),L=h.dot?_:m,T=h.dot?S:m,F=h.capture?"":"?:",O={negated:!1,prefix:""},I=h.bash===!0?".*?":A;h.capture&&(I=`(${I})`);let $=Q=>Q.noglobstar===!0?I:`(${F}(?:(?!${x}${Q.dot?v:g}).)*?)`,R=Q=>{switch(Q){case"*":return`${L}${w}${I}`;case".*":return`${g}${w}${I}`;case"*.*":return`${L}${I}${g}${w}${I}`;case"*/*":return`${L}${I}${D}${w}${T}${I}`;case"**":return L+$(h);case"**/*":return`(?:${L}${$(h)}${D})?${T}${w}${I}`;case"**/*.*":return`(?:${L}${$(h)}${D})?${T}${I}${g}${w}${I}`;case"**/.*":return`(?:${L}${$(h)}${D})?${g}${w}${I}`;default:{let P=/^(.*?)\.(\w+)$/.exec(Q);if(!P)return;let j=R(P[1]);return j?j+g+P[2]:void 0}}},G=s.removePrefix(o,O),W=R(G);return W&&h.strictSlashes!==!0&&(W+=`${D}?`),W},l.exports=c}),vc=N((t,l)=>{"use strict";B();var n=Z("path"),s=gc(),i=bc(),p=pr(),u=fr(),r=f=>f&&typeof f=="object"&&!Array.isArray(f),e=(f,a,c=!1)=>{if(Array.isArray(f)){let D=f.map(w=>e(w,a,c));return w=>{for(let v of D){let m=v(w);if(m)return m}return!1}}let o=r(f)&&f.tokens&&f.input;if(f===""||typeof f!="string"&&!o)throw new TypeError("Expected pattern to be a non-empty string");let d=a||{},h=p.isWindows(a),y=o?e.compileRe(f,a):e.makeRe(f,a,!1,!0),b=y.state;delete y.state;let E=()=>!1;if(d.ignore){let D={...a,ignore:null,onMatch:null,onResult:null};E=e(d.ignore,D,c)}let g=(D,w=!1)=>{let{isMatch:v,match:m,output:_}=e.test(D,y,a,{glob:f,posix:h}),S={glob:f,state:b,regex:y,posix:h,input:D,output:_,match:m,isMatch:v};return typeof d.onResult=="function"&&d.onResult(S),v===!1?(S.isMatch=!1,w?S:!1):E(D)?(typeof d.onIgnore=="function"&&d.onIgnore(S),S.isMatch=!1,w?S:!1):(typeof d.onMatch=="function"&&d.onMatch(S),w?S:!0)};return c&&(g.state=b),g};e.test=(f,a,c,{glob:o,posix:d}={})=>{if(typeof f!="string")throw new TypeError("Expected input to be a string");if(f==="")return{isMatch:!1,output:""};let h=c||{},y=h.format||(d?p.toPosixSlashes:null),b=f===o,E=b&&y?y(f):f;return b===!1&&(E=y?y(f):f,b=E===o),(b===!1||h.capture===!0)&&(h.matchBase===!0||h.basename===!0?b=e.matchBase(f,a,c,d):b=a.exec(E)),{isMatch:!!b,match:b,output:E}},e.matchBase=(f,a,c,o=p.isWindows(c))=>(a instanceof RegExp?a:e.makeRe(a,c)).test(n.basename(f)),e.isMatch=(f,a,c)=>e(a,c)(f),e.parse=(f,a)=>Array.isArray(f)?f.map(c=>e.parse(c,a)):i(f,{...a,fastpaths:!1}),e.scan=(f,a)=>s(f,a),e.compileRe=(f,a,c=!1,o=!1)=>{if(c===!0)return f.output;let d=a||{},h=d.contains?"":"^",y=d.contains?"":"$",b=`${h}(?:${f.output})${y}`;f&&f.negated===!0&&(b=`^(?!${b}).*$`);let E=e.toRegex(b,a);return o===!0&&(E.state=f),E},e.makeRe=(f,a={},c=!1,o=!1)=>{if(!f||typeof f!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return a.fastpaths!==!1&&(f[0]==="."||f[0]==="*")&&(d.output=i.fastpaths(f,a)),d.output||(d=i(f,a)),e.compileRe(d,a,c,o)},e.toRegex=(f,a)=>{try{let c=a||{};return new RegExp(f,c.flags||(c.nocase?"i":""))}catch(c){if(a&&a.debug===!0)throw c;return/$^/}},e.constants=u,l.exports=e}),Ec=N((t,l)=>{"use strict";B(),l.exports=vc()}),_c=N((t,l)=>{"use strict";B();var n=Z("util"),s=yc(),i=Ec(),p=pr(),u=e=>e===""||e==="./",r=(e,f,a)=>{f=[].concat(f),e=[].concat(e);let c=new Set,o=new Set,d=new Set,h=0,y=E=>{d.add(E.output),a&&a.onResult&&a.onResult(E)};for(let E=0;E<f.length;E++){let g=i(String(f[E]),{...a,onResult:y},!0),D=g.state.negated||g.state.negatedExtglob;D&&h++;for(let w of e){let v=g(w,!0);!(D?!v.isMatch:v.isMatch)||(D?c.add(v.output):(c.delete(v.output),o.add(v.output)))}}let b=(h===f.length?[...d]:[...o]).filter(E=>!c.has(E));if(a&&b.length===0){if(a.failglob===!0)throw new Error(`No matches found for "${f.join(", ")}"`);if(a.nonull===!0||a.nullglob===!0)return a.unescape?f.map(E=>E.replace(/\\/g,"")):f}return b};r.match=r,r.matcher=(e,f)=>i(e,f),r.isMatch=(e,f,a)=>i(f,a)(e),r.any=r.isMatch,r.not=(e,f,a={})=>{f=[].concat(f).map(String);let c=new Set,o=[],d=y=>{a.onResult&&a.onResult(y),o.push(y.output)},h=new Set(r(e,f,{...a,onResult:d}));for(let y of o)h.has(y)||c.add(y);return[...c]},r.contains=(e,f,a)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${n.inspect(e)}"`);if(Array.isArray(f))return f.some(c=>r.contains(e,c,a));if(typeof f=="string"){if(u(e)||u(f))return!1;if(e.includes(f)||e.startsWith("./")&&e.slice(2).includes(f))return!0}return r.isMatch(e,f,{...a,contains:!0})},r.matchKeys=(e,f,a)=>{if(!p.isObject(e))throw new TypeError("Expected the first argument to be an object");let c=r(Object.keys(e),f,a),o={};for(let d of c)o[d]=e[d];return o},r.some=(e,f,a)=>{let c=[].concat(e);for(let o of[].concat(f)){let d=i(String(o),a);if(c.some(h=>d(h)))return!0}return!1},r.every=(e,f,a)=>{let c=[].concat(e);for(let o of[].concat(f)){let d=i(String(o),a);if(!c.every(h=>d(h)))return!1}return!0},r.all=(e,f,a)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${n.inspect(e)}"`);return[].concat(f).every(c=>i(c,a)(e))},r.capture=(e,f,a)=>{let c=p.isWindows(a),o=i.makeRe(String(e),{...a,capture:!0}).exec(c?p.toPosixSlashes(f):f);if(o)return o.slice(1).map(d=>d===void 0?"":d)},r.makeRe=(...e)=>i.makeRe(...e),r.scan=(...e)=>i.scan(...e),r.parse=(e,f)=>{let a=[];for(let c of[].concat(e||[]))for(let o of s(String(c),f))a.push(i.parse(o,f));return a},r.braces=(e,f)=>{if(typeof e!="string")throw new TypeError("Expected a string");return f&&f.nobrace===!0||!/\{.*\}/.test(e)?[e]:s(e,f)},r.braceExpand=(e,f)=>{if(typeof e!="string")throw new TypeError("Expected a string");return r.braces(e,{...f,expand:!0})},l.exports=r}),wc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.matchAny=t.convertPatternsToRe=t.makeRe=t.getPatternParts=t.expandBraceExpansion=t.expandPatternsWithBraceExpansion=t.isAffectDepthOfReadingPattern=t.endsWithSlashGlobStar=t.hasGlobStar=t.getBaseDirectory=t.isPatternRelatedToParentDirectory=t.getPatternsOutsideCurrentDirectory=t.getPatternsInsideCurrentDirectory=t.getPositivePatterns=t.getNegativePatterns=t.isPositivePattern=t.isNegativePattern=t.convertToNegativePattern=t.convertToPositivePattern=t.isDynamicPattern=t.isStaticPattern=void 0;var l=Z("path"),n=lc(),s=_c(),i="**",p="\\",u=/[*?]|^!/,r=/\[[^[]*]/,e=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,f=/[!*+?@]\([^(]*\)/,a=/,|\.\./;function c(R,G={}){return!o(R,G)}t.isStaticPattern=c;function o(R,G={}){return R===""?!1:!!(G.caseSensitiveMatch===!1||R.includes(p)||u.test(R)||r.test(R)||e.test(R)||G.extglob!==!1&&f.test(R)||G.braceExpansion!==!1&&d(R))}t.isDynamicPattern=o;function d(R){let G=R.indexOf("{");if(G===-1)return!1;let W=R.indexOf("}",G+1);if(W===-1)return!1;let Q=R.slice(G,W);return a.test(Q)}function h(R){return b(R)?R.slice(1):R}t.convertToPositivePattern=h;function y(R){return"!"+R}t.convertToNegativePattern=y;function b(R){return R.startsWith("!")&&R[1]!=="("}t.isNegativePattern=b;function E(R){return!b(R)}t.isPositivePattern=E;function g(R){return R.filter(b)}t.getNegativePatterns=g;function D(R){return R.filter(E)}t.getPositivePatterns=D;function w(R){return R.filter(G=>!m(G))}t.getPatternsInsideCurrentDirectory=w;function v(R){return R.filter(m)}t.getPatternsOutsideCurrentDirectory=v;function m(R){return R.startsWith("..")||R.startsWith("./..")}t.isPatternRelatedToParentDirectory=m;function _(R){return n(R,{flipBackslashes:!1})}t.getBaseDirectory=_;function S(R){return R.includes(i)}t.hasGlobStar=S;function A(R){return R.endsWith("/"+i)}t.endsWithSlashGlobStar=A;function x(R){let G=l.basename(R);return A(R)||c(G)}t.isAffectDepthOfReadingPattern=x;function L(R){return R.reduce((G,W)=>G.concat(T(W)),[])}t.expandPatternsWithBraceExpansion=L;function T(R){return s.braces(R,{expand:!0,nodupes:!0})}t.expandBraceExpansion=T;function F(R,G){let{parts:W}=s.scan(R,Object.assign(Object.assign({},G),{parts:!0}));return W.length===0&&(W=[R]),W[0].startsWith("/")&&(W[0]=W[0].slice(1),W.unshift("")),W}t.getPatternParts=F;function O(R,G){return s.makeRe(R,G)}t.makeRe=O;function I(R,G){return R.map(W=>O(W,G))}t.convertPatternsToRe=I;function $(R,G){return G.some(W=>W.test(R))}t.matchAny=$}),Dc=N((t,l)=>{"use strict";B();var n=Z("stream"),s=n.PassThrough,i=Array.prototype.slice;l.exports=p;function p(){let r=[],e=i.call(arguments),f=!1,a=e[e.length-1];a&&!Array.isArray(a)&&a.pipe==null?e.pop():a={};let c=a.end!==!1,o=a.pipeError===!0;a.objectMode==null&&(a.objectMode=!0),a.highWaterMark==null&&(a.highWaterMark=64*1024);let d=s(a);function h(){for(let E=0,g=arguments.length;E<g;E++)r.push(u(arguments[E],a));return y(),this}function y(){if(f)return;f=!0;let E=r.shift();if(!E){process.nextTick(b);return}Array.isArray(E)||(E=[E]);let g=E.length+1;function D(){--g>0||(f=!1,y())}function w(v){function m(){v.removeListener("merge2UnpipeEnd",m),v.removeListener("end",m),o&&v.removeListener("error",_),D()}function _(S){d.emit("error",S)}if(v._readableState.endEmitted)return D();v.on("merge2UnpipeEnd",m),v.on("end",m),o&&v.on("error",_),v.pipe(d,{end:!1}),v.resume()}for(let v=0;v<E.length;v++)w(E[v]);D()}function b(){f=!1,d.emit("queueDrain"),c&&d.end()}return d.setMaxListeners(0),d.add=h,d.on("unpipe",function(E){E.emit("merge2UnpipeEnd")}),e.length&&h.apply(null,e),d}function u(r,e){if(Array.isArray(r))for(let f=0,a=r.length;f<a;f++)r[f]=u(r[f],e);else{if(!r._readableState&&r.pipe&&(r=r.pipe(s(e))),!r._readableState||!r.pause||!r.pipe)throw new Error("Only readable stream can be merged.");r.pause()}return r}}),Sc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var l=Dc();function n(i){let p=l(i);return i.forEach(u=>{u.once("error",r=>p.emit("error",r))}),p.once("close",()=>s(i)),p.once("end",()=>s(i)),p}t.merge=n;function s(i){i.forEach(p=>p.emit("close"))}}),Ac=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=t.isString=void 0;function l(s){return typeof s=="string"}t.isString=l;function n(s){return s===""}t.isEmpty=n}),ce=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.string=t.stream=t.pattern=t.path=t.fs=t.errno=t.array=void 0;var l=nc();t.array=l;var n=ic();t.errno=n;var s=sc();t.fs=s;var i=oc();t.path=i;var p=wc();t.pattern=p;var u=Sc();t.stream=u;var r=Ac();t.string=r}),Cc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.convertPatternGroupToTask=t.convertPatternGroupsToTasks=t.groupPatternsByBaseDirectory=t.getNegativePatternsAsPositive=t.getPositivePatterns=t.convertPatternsToTasks=t.generate=void 0;var l=ce();function n(f,a){let c=i(f),o=p(f,a.ignore),d=c.filter(E=>l.pattern.isStaticPattern(E,a)),h=c.filter(E=>l.pattern.isDynamicPattern(E,a)),y=s(d,o,!1),b=s(h,o,!0);return y.concat(b)}t.generate=n;function s(f,a,c){let o=[],d=l.pattern.getPatternsOutsideCurrentDirectory(f),h=l.pattern.getPatternsInsideCurrentDirectory(f),y=u(d),b=u(h);return o.push(...r(y,a,c)),"."in b?o.push(e(".",h,a,c)):o.push(...r(b,a,c)),o}t.convertPatternsToTasks=s;function i(f){return l.pattern.getPositivePatterns(f)}t.getPositivePatterns=i;function p(f,a){return l.pattern.getNegativePatterns(f).concat(a).map(l.pattern.convertToPositivePattern)}t.getNegativePatternsAsPositive=p;function u(f){let a={};return f.reduce((c,o)=>{let d=l.pattern.getBaseDirectory(o);return d in c?c[d].push(o):c[d]=[o],c},a)}t.groupPatternsByBaseDirectory=u;function r(f,a,c){return Object.keys(f).map(o=>e(o,f[o],a,c))}t.convertPatternGroupsToTasks=r;function e(f,a,c,o){return{dynamic:o,positive:a,negative:c,base:f,patterns:[].concat(a,c.map(l.pattern.convertToNegativePattern))}}t.convertPatternGroupToTask=e}),xc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.removeDuplicateSlashes=t.transform=void 0;var l=/(?!^)\/{2,}/g;function n(i){return i.map(p=>s(p))}t.transform=n;function s(i){return i.replace(l,"/")}t.removeDuplicateSlashes=s}),Fc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.read=void 0;function l(i,p,u){p.fs.lstat(i,(r,e)=>{if(r!==null){n(u,r);return}if(!e.isSymbolicLink()||!p.followSymbolicLink){s(u,e);return}p.fs.stat(i,(f,a)=>{if(f!==null){if(p.throwErrorOnBrokenSymbolicLink){n(u,f);return}s(u,e);return}p.markSymbolicLink&&(a.isSymbolicLink=()=>!0),s(u,a)})})}t.read=l;function n(i,p){i(p)}function s(i,p){i(null,p)}}),kc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.read=void 0;function l(n,s){let i=s.fs.lstatSync(n);if(!i.isSymbolicLink()||!s.followSymbolicLink)return i;try{let p=s.fs.statSync(n);return s.markSymbolicLink&&(p.isSymbolicLink=()=>!0),p}catch(p){if(!s.throwErrorOnBrokenSymbolicLink)return i;throw p}}t.read=l}),Oc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;var l=Z("fs");t.FILE_SYSTEM_ADAPTER={lstat:l.lstat,stat:l.stat,lstatSync:l.lstatSync,statSync:l.statSync};function n(s){return s===void 0?t.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),s)}t.createFileSystemAdapter=n}),Rc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Oc(),n=class{constructor(s={}){this._options=s,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=l.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(s,i){return s!=null?s:i}};t.default=n}),Ce=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.statSync=t.stat=t.Settings=void 0;var l=Fc(),n=kc(),s=Rc();t.Settings=s.default;function i(r,e,f){if(typeof e=="function"){l.read(r,u(),e);return}l.read(r,u(e),f)}t.stat=i;function p(r,e){let f=u(e);return n.read(r,f)}t.statSync=p;function u(r={}){return r instanceof s.default?r:new s.default(r)}}),Tc=N((t,l)=>{B();var n;l.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):s=>(n||(n=Promise.resolve())).then(s).catch(i=>setTimeout(()=>{throw i},0))}),Bc=N((t,l)=>{B(),l.exports=s;var n=Tc();function s(i,p){let u,r,e,f=!0;Array.isArray(i)?(u=[],r=i.length):(e=Object.keys(i),u={},r=e.length);function a(o){function d(){p&&p(o,u),p=null}f?n(d):d()}function c(o,d,h){u[o]=h,(--r===0||d)&&a(d)}r?e?e.forEach(function(o){i[o](function(d,h){c(o,d,h)})}):i.forEach(function(o,d){o(function(h,y){c(d,h,y)})}):a(null),f=!1}}),ji=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var l=process.versions.node.split(".");if(l[0]===void 0||l[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var n=Number.parseInt(l[0],10),s=Number.parseInt(l[1],10),i=10,p=10,u=n>i,r=n===i&&s>=p;t.IS_SUPPORT_READDIR_WITH_FILE_TYPES=u||r}),Pc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createDirentFromStats=void 0;var l=class{constructor(s,i){this.name=s,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function n(s,i){return new l(s,i)}t.createDirentFromStats=n}),Mi=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.fs=void 0;var l=Pc();t.fs=l}),$i=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.joinPathSegments=void 0;function l(n,s,i){return n.endsWith(i)?n+s:n+i+s}t.joinPathSegments=l}),Lc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=t.readdirWithFileTypes=t.read=void 0;var l=Ce(),n=Bc(),s=ji(),i=Mi(),p=$i();function u(o,d,h){if(!d.stats&&s.IS_SUPPORT_READDIR_WITH_FILE_TYPES){r(o,d,h);return}f(o,d,h)}t.read=u;function r(o,d,h){d.fs.readdir(o,{withFileTypes:!0},(y,b)=>{if(y!==null){a(h,y);return}let E=b.map(D=>({dirent:D,name:D.name,path:p.joinPathSegments(o,D.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){c(h,E);return}let g=E.map(D=>e(D,d));n(g,(D,w)=>{if(D!==null){a(h,D);return}c(h,w)})})}t.readdirWithFileTypes=r;function e(o,d){return h=>{if(!o.dirent.isSymbolicLink()){h(null,o);return}d.fs.stat(o.path,(y,b)=>{if(y!==null){if(d.throwErrorOnBrokenSymbolicLink){h(y);return}h(null,o);return}o.dirent=i.fs.createDirentFromStats(o.name,b),h(null,o)})}}function f(o,d,h){d.fs.readdir(o,(y,b)=>{if(y!==null){a(h,y);return}let E=b.map(g=>{let D=p.joinPathSegments(o,g,d.pathSegmentSeparator);return w=>{l.stat(D,d.fsStatSettings,(v,m)=>{if(v!==null){w(v);return}let _={name:g,path:D,dirent:i.fs.createDirentFromStats(g,m)};d.stats&&(_.stats=m),w(null,_)})}});n(E,(g,D)=>{if(g!==null){a(h,g);return}c(h,D)})})}t.readdir=f;function a(o,d){o(d)}function c(o,d){o(null,d)}}),Ic=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=t.readdirWithFileTypes=t.read=void 0;var l=Ce(),n=ji(),s=Mi(),i=$i();function p(e,f){return!f.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES?u(e,f):r(e,f)}t.read=p;function u(e,f){return f.fs.readdirSync(e,{withFileTypes:!0}).map(a=>{let c={dirent:a,name:a.name,path:i.joinPathSegments(e,a.name,f.pathSegmentSeparator)};if(c.dirent.isSymbolicLink()&&f.followSymbolicLinks)try{let o=f.fs.statSync(c.path);c.dirent=s.fs.createDirentFromStats(c.name,o)}catch(o){if(f.throwErrorOnBrokenSymbolicLink)throw o}return c})}t.readdirWithFileTypes=u;function r(e,f){return f.fs.readdirSync(e).map(a=>{let c=i.joinPathSegments(e,a,f.pathSegmentSeparator),o=l.statSync(c,f.fsStatSettings),d={name:a,path:c,dirent:s.fs.createDirentFromStats(a,o)};return f.stats&&(d.stats=o),d})}t.readdir=r}),Nc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.createFileSystemAdapter=t.FILE_SYSTEM_ADAPTER=void 0;var l=Z("fs");t.FILE_SYSTEM_ADAPTER={lstat:l.lstat,stat:l.stat,lstatSync:l.lstatSync,statSync:l.statSync,readdir:l.readdir,readdirSync:l.readdirSync};function n(s){return s===void 0?t.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},t.FILE_SYSTEM_ADAPTER),s)}t.createFileSystemAdapter=n}),jc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Z("path"),n=Ce(),s=Nc(),i=class{constructor(p={}){this._options=p,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=s.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,l.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new n.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(p,u){return p!=null?p:u}};t.default=i}),nn=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.scandirSync=t.scandir=void 0;var l=Lc(),n=Ic(),s=jc();t.Settings=s.default;function i(r,e,f){if(typeof e=="function"){l.read(r,u(),e);return}l.read(r,u(e),f)}t.scandir=i;function p(r,e){let f=u(e);return n.read(r,f)}t.scandirSync=p;function u(r={}){return r instanceof s.default?r:new s.default(r)}}),Mc=N((t,l)=>{"use strict";B();function n(s){var i=new s,p=i;function u(){var e=i;return e.next?i=e.next:(i=new s,p=i),e.next=null,e}function r(e){p.next=e,p=e}return{get:u,release:r}}l.exports=n}),$c=N((t,l)=>{"use strict";B();var n=Mc();function s(r,e,f){if(typeof r=="function"&&(f=e,e=r,r=null),f<1)throw new Error("fastqueue concurrency must be greater than 1");var a=n(p),c=null,o=null,d=0,h=null,y={push:m,drain:i,saturated:i,pause:E,paused:!1,concurrency:f,running:b,resume:w,idle:v,length:g,getQueue:D,unshift:_,empty:i,kill:A,killAndDrain:x,error:L};return y;function b(){return d}function E(){y.paused=!0}function g(){for(var T=c,F=0;T;)T=T.next,F++;return F}function D(){for(var T=c,F=[];T;)F.push(T.value),T=T.next;return F}function w(){if(y.paused){y.paused=!1;for(var T=0;T<y.concurrency;T++)d++,S()}}function v(){return d===0&&y.length()===0}function m(T,F){var O=a.get();O.context=r,O.release=S,O.value=T,O.callback=F||i,O.errorHandler=h,d===y.concurrency||y.paused?o?(o.next=O,o=O):(c=O,o=O,y.saturated()):(d++,e.call(r,O.value,O.worked))}function _(T,F){var O=a.get();O.context=r,O.release=S,O.value=T,O.callback=F||i,d===y.concurrency||y.paused?c?(O.next=c,c=O):(c=O,o=O,y.saturated()):(d++,e.call(r,O.value,O.worked))}function S(T){T&&a.release(T);var F=c;F?y.paused?d--:(o===c&&(o=null),c=F.next,F.next=null,e.call(r,F.value,F.worked),o===null&&y.empty()):--d===0&&y.drain()}function A(){c=null,o=null,y.drain=i}function x(){c=null,o=null,y.drain(),y.drain=i}function L(T){h=T}}function i(){}function p(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var r=this;this.worked=function(e,f){var a=r.callback,c=r.errorHandler,o=r.value;r.value=null,r.callback=i,r.errorHandler&&c(e,o),a.call(r.context,e,f),r.release(r)}}function u(r,e,f){typeof r=="function"&&(f=e,e=r,r=null);function a(E,g){e.call(this,E).then(function(D){g(null,D)},g)}var c=s(r,a,f),o=c.push,d=c.unshift;return c.push=h,c.unshift=y,c.drained=b,c;function h(E){var g=new Promise(function(D,w){o(E,function(v,m){if(v){w(v);return}D(m)})});return g.catch(i),g}function y(E){var g=new Promise(function(D,w){d(E,function(v,m){if(v){w(v);return}D(m)})});return g.catch(i),g}function b(){var E=c.drain,g=new Promise(function(D){c.drain=function(){E(),D()}});return g}}l.exports=s,l.exports.promise=u}),sn=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.joinPathSegments=t.replacePathSegmentSeparator=t.isAppliedFilter=t.isFatalError=void 0;function l(p,u){return p.errorFilter===null?!0:!p.errorFilter(u)}t.isFatalError=l;function n(p,u){return p===null||p(u)}t.isAppliedFilter=n;function s(p,u){return p.split(/[/\\]/).join(u)}t.replacePathSegmentSeparator=s;function i(p,u,r){return p===""?u:p.endsWith(r)?p+u:p+r+u}t.joinPathSegments=i}),Hi=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=sn(),n=class{constructor(s,i){this._root=s,this._settings=i,this._root=l.replacePathSegmentSeparator(s,i.pathSegmentSeparator)}};t.default=n}),Ui=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Z("events"),n=nn(),s=$c(),i=sn(),p=Hi(),u=class extends p.default{constructor(r,e){super(r,e),this._settings=e,this._scandir=n.scandir,this._emitter=new l.EventEmitter,this._queue=s(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(r){this._emitter.on("entry",r)}onError(r){this._emitter.once("error",r)}onEnd(r){this._emitter.once("end",r)}_pushToQueue(r,e){let f={directory:r,base:e};this._queue.push(f,a=>{a!==null&&this._handleError(a)})}_worker(r,e){this._scandir(r.directory,this._settings.fsScandirSettings,(f,a)=>{if(f!==null){e(f,void 0);return}for(let c of a)this._handleEntry(c,r.base);e(null,void 0)})}_handleError(r){this._isDestroyed||!i.isFatalError(this._settings,r)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",r))}_handleEntry(r,e){if(this._isDestroyed||this._isFatalError)return;let f=r.path;e!==void 0&&(r.path=i.joinPathSegments(e,r.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,r)&&this._emitEntry(r),r.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(f,e===void 0?void 0:r.path)}_emitEntry(r){this._emitter.emit("entry",r)}};t.default=u}),Hc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Ui(),n=class{constructor(p,u){this._root=p,this._settings=u,this._reader=new l.default(this._root,this._settings),this._storage=[]}read(p){this._reader.onError(u=>{s(p,u)}),this._reader.onEntry(u=>{this._storage.push(u)}),this._reader.onEnd(()=>{i(p,this._storage)}),this._reader.read()}};t.default=n;function s(p,u){p(u)}function i(p,u){p(null,u)}}),Uc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Z("stream"),n=Ui(),s=class{constructor(i,p){this._root=i,this._settings=p,this._reader=new n.default(this._root,this._settings),this._stream=new l.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(i=>{this._stream.emit("error",i)}),this._reader.onEntry(i=>{this._stream.push(i)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};t.default=s}),Gc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=nn(),n=sn(),s=Hi(),i=class extends s.default{constructor(){super(...arguments),this._scandir=l.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(p,u){this._queue.add({directory:p,base:u})}_handleQueue(){for(let p of this._queue.values())this._handleDirectory(p.directory,p.base)}_handleDirectory(p,u){try{let r=this._scandir(p,this._settings.fsScandirSettings);for(let e of r)this._handleEntry(e,u)}catch(r){this._handleError(r)}}_handleError(p){if(n.isFatalError(this._settings,p))throw p}_handleEntry(p,u){let r=p.path;u!==void 0&&(p.path=n.joinPathSegments(u,p.name,this._settings.pathSegmentSeparator)),n.isAppliedFilter(this._settings.entryFilter,p)&&this._pushToStorage(p),p.dirent.isDirectory()&&n.isAppliedFilter(this._settings.deepFilter,p)&&this._pushToQueue(r,u===void 0?void 0:p.path)}_pushToStorage(p){this._storage.push(p)}};t.default=i}),qc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Gc(),n=class{constructor(s,i){this._root=s,this._settings=i,this._reader=new l.default(this._root,this._settings)}read(){return this._reader.read()}};t.default=n}),zc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Z("path"),n=nn(),s=class{constructor(i={}){this._options=i,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,l.sep),this.fsScandirSettings=new n.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(i,p){return i!=null?i:p}};t.default=s}),on=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.Settings=t.walkStream=t.walkSync=t.walk=void 0;var l=Hc(),n=Uc(),s=qc(),i=zc();t.Settings=i.default;function p(f,a,c){if(typeof a=="function"){new l.default(f,e()).read(a);return}new l.default(f,e(a)).read(c)}t.walk=p;function u(f,a){let c=e(a);return new s.default(f,c).read()}t.walkSync=u;function r(f,a){let c=e(a);return new n.default(f,c).read()}t.walkStream=r;function e(f={}){return f instanceof i.default?f:new i.default(f)}}),un=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Z("path"),n=Ce(),s=ce(),i=class{constructor(p){this._settings=p,this._fsStatSettings=new n.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(p){return l.resolve(this._settings.cwd,p)}_makeEntry(p,u){let r={name:u,path:u,dirent:s.fs.createDirentFromStats(u,p)};return this._settings.stats&&(r.stats=p),r}_isFatalError(p){return!s.errno.isEnoentCodeError(p)&&!this._settings.suppressErrors}};t.default=i}),Gi=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Z("stream"),n=Ce(),s=on(),i=un(),p=class extends i.default{constructor(){super(...arguments),this._walkStream=s.walkStream,this._stat=n.stat}dynamic(u,r){return this._walkStream(u,r)}static(u,r){let e=u.map(this._getFullEntryPath,this),f=new l.PassThrough({objectMode:!0});f._write=(a,c,o)=>this._getEntry(e[a],u[a],r).then(d=>{d!==null&&r.entryFilter(d)&&f.push(d),a===e.length-1&&f.end(),o()}).catch(o);for(let a=0;a<e.length;a++)f.write(a);return f}_getEntry(u,r,e){return this._getStat(u).then(f=>this._makeEntry(f,r)).catch(f=>{if(e.errorFilter(f))return null;throw f})}_getStat(u){return new Promise((r,e)=>{this._stat(u,this._fsStatSettings,(f,a)=>f===null?r(a):e(f))})}};t.default=p}),Wc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=on(),n=un(),s=Gi(),i=class extends n.default{constructor(){super(...arguments),this._walkAsync=l.walk,this._readerStream=new s.default(this._settings)}dynamic(p,u){return new Promise((r,e)=>{this._walkAsync(p,u,(f,a)=>{f===null?r(a):e(f)})})}async static(p,u){let r=[],e=this._readerStream.static(p,u);return new Promise((f,a)=>{e.once("error",a),e.on("data",c=>r.push(c)),e.once("end",()=>f(r))})}};t.default=i}),Vc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=ce(),n=class{constructor(s,i,p){this._patterns=s,this._settings=i,this._micromatchOptions=p,this._storage=[],this._fillStorage()}_fillStorage(){let s=l.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let i of s){let p=this._getPatternSegments(i),u=this._splitSegmentsIntoSections(p);this._storage.push({complete:u.length<=1,pattern:i,segments:p,sections:u})}}_getPatternSegments(s){return l.pattern.getPatternParts(s,this._micromatchOptions).map(i=>l.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:l.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(s){return l.array.splitWhen(s,i=>i.dynamic&&l.pattern.hasGlobStar(i.pattern))}};t.default=n}),Yc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Vc(),n=class extends l.default{match(s){let i=s.split("/"),p=i.length,u=this._storage.filter(r=>!r.complete||r.segments.length>p);for(let r of u){let e=r.sections[0];if(!r.complete&&p>e.length||i.every((f,a)=>{let c=r.segments[a];return!!(c.dynamic&&c.patternRe.test(f)||!c.dynamic&&c.pattern===f)}))return!0}return!1}};t.default=n}),Kc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=ce(),n=Yc(),s=class{constructor(i,p){this._settings=i,this._micromatchOptions=p}getFilter(i,p,u){let r=this._getMatcher(p),e=this._getNegativePatternsRe(u);return f=>this._filter(i,f,r,e)}_getMatcher(i){return new n.default(i,this._settings,this._micromatchOptions)}_getNegativePatternsRe(i){let p=i.filter(l.pattern.isAffectDepthOfReadingPattern);return l.pattern.convertPatternsToRe(p,this._micromatchOptions)}_filter(i,p,u,r){if(this._isSkippedByDeep(i,p.path)||this._isSkippedSymbolicLink(p))return!1;let e=l.path.removeLeadingDotSegment(p.path);return this._isSkippedByPositivePatterns(e,u)?!1:this._isSkippedByNegativePatterns(e,r)}_isSkippedByDeep(i,p){return this._settings.deep===1/0?!1:this._getEntryLevel(i,p)>=this._settings.deep}_getEntryLevel(i,p){let u=p.split("/").length;if(i==="")return u;let r=i.split("/").length;return u-r}_isSkippedSymbolicLink(i){return!this._settings.followSymbolicLinks&&i.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(i,p){return!this._settings.baseNameMatch&&!p.match(i)}_isSkippedByNegativePatterns(i,p){return!l.pattern.matchAny(i,p)}};t.default=s}),Jc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=ce(),n=class{constructor(s,i){this._settings=s,this._micromatchOptions=i,this.index=new Map}getFilter(s,i){let p=l.pattern.convertPatternsToRe(s,this._micromatchOptions),u=l.pattern.convertPatternsToRe(i,this._micromatchOptions);return r=>this._filter(r,p,u)}_filter(s,i,p){if(this._settings.unique&&this._isDuplicateEntry(s)||this._onlyFileFilter(s)||this._onlyDirectoryFilter(s)||this._isSkippedByAbsoluteNegativePatterns(s.path,p))return!1;let u=this._settings.baseNameMatch?s.name:s.path,r=s.dirent.isDirectory(),e=this._isMatchToPatterns(u,i,r)&&!this._isMatchToPatterns(s.path,p,r);return this._settings.unique&&e&&this._createIndexRecord(s),e}_isDuplicateEntry(s){return this.index.has(s.path)}_createIndexRecord(s){this.index.set(s.path,void 0)}_onlyFileFilter(s){return this._settings.onlyFiles&&!s.dirent.isFile()}_onlyDirectoryFilter(s){return this._settings.onlyDirectories&&!s.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(s,i){if(!this._settings.absolute)return!1;let p=l.path.makeAbsolute(this._settings.cwd,s);return l.pattern.matchAny(p,i)}_isMatchToPatterns(s,i,p){let u=l.path.removeLeadingDotSegment(s),r=l.pattern.matchAny(u,i);return!r&&p?l.pattern.matchAny(u+"/",i):r}};t.default=n}),Zc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=ce(),n=class{constructor(s){this._settings=s}getFilter(){return s=>this._isNonFatalError(s)}_isNonFatalError(s){return l.errno.isEnoentCodeError(s)||this._settings.suppressErrors}};t.default=n}),Xc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=ce(),n=class{constructor(s){this._settings=s}getTransformer(){return s=>this._transform(s)}_transform(s){let i=s.path;return this._settings.absolute&&(i=l.path.makeAbsolute(this._settings.cwd,i),i=l.path.unixify(i)),this._settings.markDirectories&&s.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},s),{path:i}):i}};t.default=n}),an=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Z("path"),n=Kc(),s=Jc(),i=Zc(),p=Xc(),u=class{constructor(r){this._settings=r,this.errorFilter=new i.default(this._settings),this.entryFilter=new s.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new n.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new p.default(this._settings)}_getRootDirectory(r){return l.resolve(this._settings.cwd,r.base)}_getReaderOptions(r){let e=r.base==="."?"":r.base;return{basePath:e,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(e,r.positive,r.negative),entryFilter:this.entryFilter.getFilter(r.positive,r.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};t.default=u}),Qc=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Wc(),n=an(),s=class extends n.default{constructor(){super(...arguments),this._reader=new l.default(this._settings)}async read(i){let p=this._getRootDirectory(i),u=this._getReaderOptions(i);return(await this.api(p,i,u)).map(r=>u.transform(r))}api(i,p,u){return p.dynamic?this._reader.dynamic(i,u):this._reader.static(p.patterns,u)}};t.default=s}),th=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Z("stream"),n=Gi(),s=an(),i=class extends s.default{constructor(){super(...arguments),this._reader=new n.default(this._settings)}read(p){let u=this._getRootDirectory(p),r=this._getReaderOptions(p),e=this.api(u,p,r),f=new l.Readable({objectMode:!0,read:()=>{}});return e.once("error",a=>f.emit("error",a)).on("data",a=>f.emit("data",r.transform(a))).once("end",()=>f.emit("end")),f.once("close",()=>e.destroy()),f}api(p,u,r){return u.dynamic?this._reader.dynamic(p,r):this._reader.static(u.patterns,r)}};t.default=i}),eh=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=Ce(),n=on(),s=un(),i=class extends s.default{constructor(){super(...arguments),this._walkSync=n.walkSync,this._statSync=l.statSync}dynamic(p,u){return this._walkSync(p,u)}static(p,u){let r=[];for(let e of p){let f=this._getFullEntryPath(e),a=this._getEntry(f,e,u);a===null||!u.entryFilter(a)||r.push(a)}return r}_getEntry(p,u,r){try{let e=this._getStat(p);return this._makeEntry(e,u)}catch(e){if(r.errorFilter(e))return null;throw e}}_getStat(p){return this._statSync(p,this._fsStatSettings)}};t.default=i}),rh=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0});var l=eh(),n=an(),s=class extends n.default{constructor(){super(...arguments),this._reader=new l.default(this._settings)}read(i){let p=this._getRootDirectory(i),u=this._getReaderOptions(i);return this.api(p,i,u).map(u.transform)}api(i,p,u){return p.dynamic?this._reader.dynamic(i,u):this._reader.static(p.patterns,u)}};t.default=s}),nh=N(t=>{"use strict";B(),Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var l=Z("fs"),n=Z("os"),s=Math.max(n.cpus().length,1);t.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:l.lstat,lstatSync:l.lstatSync,stat:l.stat,statSync:l.statSync,readdir:l.readdir,readdirSync:l.readdirSync};var i=class{constructor(p={}){this._options=p,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,s),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(p,u){return p===void 0?u:p}_getFileSystemMethods(p={}){return Object.assign(Object.assign({},t.DEFAULT_FILE_SYSTEM_ADAPTER),p)}};t.default=i}),ih=N((t,l)=>{"use strict";B();var n=Cc(),s=xc(),i=Qc(),p=th(),u=rh(),r=nh(),e=ce();async function f(o,d){c(o);let h=a(o,i.default,d),y=await Promise.all(h);return e.array.flatten(y)}(function(o){function d(g,D){c(g);let w=a(g,u.default,D);return e.array.flatten(w)}o.sync=d;function h(g,D){c(g);let w=a(g,p.default,D);return e.stream.merge(w)}o.stream=h;function y(g,D){c(g);let w=s.transform([].concat(g)),v=new r.default(D);return n.generate(w,v)}o.generateTasks=y;function b(g,D){c(g);let w=new r.default(D);return e.pattern.isDynamicPattern(g,w)}o.isDynamicPattern=b;function E(g){return c(g),e.path.escape(g)}o.escapePath=E})(f||(f={}));function a(o,d,h){let y=s.transform([].concat(o)),b=new r.default(h),E=n.generate(y,b),g=new d(b);return E.map(g.read,g)}function c(o){if(![].concat(o).every(d=>e.string.isString(d)&&!e.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}l.exports=f});B();B();function qi(t){return typeof t>"u"||t===null}function sh(t){return typeof t=="object"&&t!==null}function oh(t){return Array.isArray(t)?t:qi(t)?[]:[t]}function uh(t,l){var n,s,i,p;if(l)for(p=Object.keys(l),n=0,s=p.length;n<s;n+=1)i=p[n],t[i]=l[i];return t}function ah(t,l){var n="",s;for(s=0;s<l;s+=1)n+=t;return n}function lh(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var ch=qi,hh=sh,fh=oh,ph=ah,dh=lh,mh=uh,Nt={isNothing:ch,isObject:hh,toArray:fh,repeat:ph,isNegativeZero:dh,extend:mh};function zi(t,l){var n="",s=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!l&&t.mark.snippet&&(n+=`
|
54
54
|
|
55
|
-
`+t.mark.snippet),s+" "+n):s}function
|
55
|
+
`+t.mark.snippet),s+" "+n):s}function je(t,l){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=l,this.message=zi(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}je.prototype=Object.create(Error.prototype);je.prototype.constructor=je;je.prototype.toString=function(t){return this.name+": "+zi(this,t)};var qt=je;function Wr(t,l,n,s,i){var p="",u="",r=Math.floor(i/2)-1;return s-l>r&&(p=" ... ",l=s-r+p.length),n-s>r&&(u=" ...",n=s+r-u.length),{str:p+t.slice(l,n).replace(/\t/g,"\u2192")+u,pos:s-l+p.length}}function Vr(t,l){return Nt.repeat(" ",l-t.length)+t}function yh(t,l){if(l=Object.create(l||null),!t.buffer)return null;l.maxLength||(l.maxLength=79),typeof l.indent!="number"&&(l.indent=1),typeof l.linesBefore!="number"&&(l.linesBefore=3),typeof l.linesAfter!="number"&&(l.linesAfter=2);for(var n=/\r?\n|\r|\0/g,s=[0],i=[],p,u=-1;p=n.exec(t.buffer);)i.push(p.index),s.push(p.index+p[0].length),t.position<=p.index&&u<0&&(u=s.length-2);u<0&&(u=s.length-1);var r="",e,f,a=Math.min(t.line+l.linesAfter,i.length).toString().length,c=l.maxLength-(l.indent+a+3);for(e=1;e<=l.linesBefore&&!(u-e<0);e++)f=Wr(t.buffer,s[u-e],i[u-e],t.position-(s[u]-s[u-e]),c),r=Nt.repeat(" ",l.indent)+Vr((t.line-e+1).toString(),a)+" | "+f.str+`
|
56
56
|
`+r;for(f=Wr(t.buffer,s[u],i[u],t.position,c),r+=Nt.repeat(" ",l.indent)+Vr((t.line+1).toString(),a)+" | "+f.str+`
|
57
57
|
`,r+=Nt.repeat("-",l.indent+a+3+f.pos)+`^
|
58
58
|
`,e=1;e<=l.linesAfter&&!(u+e>=i.length);e++)f=Wr(t.buffer,s[u+e],i[u+e],t.position-(s[u]-s[u+e]),c),r+=Nt.repeat(" ",l.indent)+Vr((t.line+e+1).toString(),a)+" | "+f.str+`
|
59
|
-
`;return r.replace(/\n$/,"")}var gh=yh,bh=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],vh=["scalar","sequence","mapping"];function Eh(t){var l={};return t!==null&&Object.keys(t).forEach(function(n){t[n].forEach(function(s){l[String(s)]=n})}),l}function _h(t,l){if(l=l||{},Object.keys(l).forEach(function(n){if(bh.indexOf(n)===-1)throw new qt('Unknown option "'+n+'" is met in definition of "'+t+'" YAML type.')}),this.options=l,this.tag=t,this.kind=l.kind||null,this.resolve=l.resolve||function(){return!0},this.construct=l.construct||function(n){return n},this.instanceOf=l.instanceOf||null,this.predicate=l.predicate||null,this.represent=l.represent||null,this.representName=l.representName||null,this.defaultStyle=l.defaultStyle||null,this.multi=l.multi||!1,this.styleAliases=Eh(l.styleAliases||null),vh.indexOf(this.kind)===-1)throw new qt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var $t=_h;function wi(t,l){var n=[];return t[l].forEach(function(s){var i=n.length;n.forEach(function(p,u){p.tag===s.tag&&p.kind===s.kind&&p.multi===s.multi&&(i=u)}),n[i]=s}),n}function wh(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},l,n;function s(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(l=0,n=arguments.length;l<n;l+=1)arguments[l].forEach(s);return t}function Jr(t){return this.extend(t)}Jr.prototype.extend=function(t){var l=[],n=[];if(t instanceof $t)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(l=l.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new qt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");l.forEach(function(i){if(!(i instanceof $t))throw new qt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new qt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new qt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(i){if(!(i instanceof $t))throw new qt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(Jr.prototype);return s.implicit=(this.implicit||[]).concat(l),s.explicit=(this.explicit||[]).concat(n),s.compiledImplicit=wi(s,"implicit"),s.compiledExplicit=wi(s,"explicit"),s.compiledTypeMap=wh(s.compiledImplicit,s.compiledExplicit),s};var Wi=Jr,Vi=new $t("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Yi=new $t("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Ki=new $t("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Ji=new Wi({explicit:[Vi,Yi,Ki]});function Dh(t){if(t===null)return!0;var l=t.length;return l===1&&t==="~"||l===4&&(t==="null"||t==="Null"||t==="NULL")}function Sh(){return null}function Ah(t){return t===null}var Zi=new $t("tag:yaml.org,2002:null",{kind:"scalar",resolve:Dh,construct:Sh,predicate:Ah,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Ch(t){if(t===null)return!1;var l=t.length;return l===4&&(t==="true"||t==="True"||t==="TRUE")||l===5&&(t==="false"||t==="False"||t==="FALSE")}function xh(t){return t==="true"||t==="True"||t==="TRUE"}function Fh(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Xi=new $t("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Ch,construct:xh,predicate:Fh,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function kh(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function Oh(t){return 48<=t&&t<=55}function Rh(t){return 48<=t&&t<=57}function Th(t){if(t===null)return!1;var l=t.length,n=0,s=!1,i;if(!l)return!1;if(i=t[n],(i==="-"||i==="+")&&(i=t[++n]),i==="0"){if(n+1===l)return!0;if(i=t[++n],i==="b"){for(n++;n<l;n++)if(i=t[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;s=!0}return s&&i!=="_"}if(i==="x"){for(n++;n<l;n++)if(i=t[n],i!=="_"){if(!kh(t.charCodeAt(n)))return!1;s=!0}return s&&i!=="_"}if(i==="o"){for(n++;n<l;n++)if(i=t[n],i!=="_"){if(!Oh(t.charCodeAt(n)))return!1;s=!0}return s&&i!=="_"}}if(i==="_")return!1;for(;n<l;n++)if(i=t[n],i!=="_"){if(!Rh(t.charCodeAt(n)))return!1;s=!0}return!(!s||i==="_")}function Bh(t){var l=t,n=1,s;if(l.indexOf("_")!==-1&&(l=l.replace(/_/g,"")),s=l[0],(s==="-"||s==="+")&&(s==="-"&&(n=-1),l=l.slice(1),s=l[0]),l==="0")return 0;if(s==="0"){if(l[1]==="b")return n*parseInt(l.slice(2),2);if(l[1]==="x")return n*parseInt(l.slice(2),16);if(l[1]==="o")return n*parseInt(l.slice(2),8)}return n*parseInt(l,10)}function Ph(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Nt.isNegativeZero(t)}var Qi=new $t("tag:yaml.org,2002:int",{kind:"scalar",resolve:Th,construct:Bh,predicate:Ph,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),
|
59
|
+
`;return r.replace(/\n$/,"")}var gh=yh,bh=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],vh=["scalar","sequence","mapping"];function Eh(t){var l={};return t!==null&&Object.keys(t).forEach(function(n){t[n].forEach(function(s){l[String(s)]=n})}),l}function _h(t,l){if(l=l||{},Object.keys(l).forEach(function(n){if(bh.indexOf(n)===-1)throw new qt('Unknown option "'+n+'" is met in definition of "'+t+'" YAML type.')}),this.options=l,this.tag=t,this.kind=l.kind||null,this.resolve=l.resolve||function(){return!0},this.construct=l.construct||function(n){return n},this.instanceOf=l.instanceOf||null,this.predicate=l.predicate||null,this.represent=l.represent||null,this.representName=l.representName||null,this.defaultStyle=l.defaultStyle||null,this.multi=l.multi||!1,this.styleAliases=Eh(l.styleAliases||null),vh.indexOf(this.kind)===-1)throw new qt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var $t=_h;function wi(t,l){var n=[];return t[l].forEach(function(s){var i=n.length;n.forEach(function(p,u){p.tag===s.tag&&p.kind===s.kind&&p.multi===s.multi&&(i=u)}),n[i]=s}),n}function wh(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},l,n;function s(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(l=0,n=arguments.length;l<n;l+=1)arguments[l].forEach(s);return t}function Jr(t){return this.extend(t)}Jr.prototype.extend=function(t){var l=[],n=[];if(t instanceof $t)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(l=l.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new qt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");l.forEach(function(i){if(!(i instanceof $t))throw new qt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new qt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new qt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(i){if(!(i instanceof $t))throw new qt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(Jr.prototype);return s.implicit=(this.implicit||[]).concat(l),s.explicit=(this.explicit||[]).concat(n),s.compiledImplicit=wi(s,"implicit"),s.compiledExplicit=wi(s,"explicit"),s.compiledTypeMap=wh(s.compiledImplicit,s.compiledExplicit),s};var Wi=Jr,Vi=new $t("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Yi=new $t("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Ki=new $t("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Ji=new Wi({explicit:[Vi,Yi,Ki]});function Dh(t){if(t===null)return!0;var l=t.length;return l===1&&t==="~"||l===4&&(t==="null"||t==="Null"||t==="NULL")}function Sh(){return null}function Ah(t){return t===null}var Zi=new $t("tag:yaml.org,2002:null",{kind:"scalar",resolve:Dh,construct:Sh,predicate:Ah,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Ch(t){if(t===null)return!1;var l=t.length;return l===4&&(t==="true"||t==="True"||t==="TRUE")||l===5&&(t==="false"||t==="False"||t==="FALSE")}function xh(t){return t==="true"||t==="True"||t==="TRUE"}function Fh(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Xi=new $t("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Ch,construct:xh,predicate:Fh,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function kh(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function Oh(t){return 48<=t&&t<=55}function Rh(t){return 48<=t&&t<=57}function Th(t){if(t===null)return!1;var l=t.length,n=0,s=!1,i;if(!l)return!1;if(i=t[n],(i==="-"||i==="+")&&(i=t[++n]),i==="0"){if(n+1===l)return!0;if(i=t[++n],i==="b"){for(n++;n<l;n++)if(i=t[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;s=!0}return s&&i!=="_"}if(i==="x"){for(n++;n<l;n++)if(i=t[n],i!=="_"){if(!kh(t.charCodeAt(n)))return!1;s=!0}return s&&i!=="_"}if(i==="o"){for(n++;n<l;n++)if(i=t[n],i!=="_"){if(!Oh(t.charCodeAt(n)))return!1;s=!0}return s&&i!=="_"}}if(i==="_")return!1;for(;n<l;n++)if(i=t[n],i!=="_"){if(!Rh(t.charCodeAt(n)))return!1;s=!0}return!(!s||i==="_")}function Bh(t){var l=t,n=1,s;if(l.indexOf("_")!==-1&&(l=l.replace(/_/g,"")),s=l[0],(s==="-"||s==="+")&&(s==="-"&&(n=-1),l=l.slice(1),s=l[0]),l==="0")return 0;if(s==="0"){if(l[1]==="b")return n*parseInt(l.slice(2),2);if(l[1]==="x")return n*parseInt(l.slice(2),16);if(l[1]==="o")return n*parseInt(l.slice(2),8)}return n*parseInt(l,10)}function Ph(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Nt.isNegativeZero(t)}var Qi=new $t("tag:yaml.org,2002:int",{kind:"scalar",resolve:Th,construct:Bh,predicate:Ph,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Lh=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Ih(t){return!(t===null||!Lh.test(t)||t[t.length-1]==="_")}function Nh(t){var l,n;return l=t.replace(/_/g,"").toLowerCase(),n=l[0]==="-"?-1:1,"+-".indexOf(l[0])>=0&&(l=l.slice(1)),l===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:l===".nan"?NaN:n*parseFloat(l,10)}var jh=/^[-+]?[0-9]+e/;function Mh(t,l){var n;if(isNaN(t))switch(l){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(l){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(l){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Nt.isNegativeZero(t))return"-0.0";return n=t.toString(10),jh.test(n)?n.replace("e",".e"):n}function $h(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Nt.isNegativeZero(t))}var ts=new $t("tag:yaml.org,2002:float",{kind:"scalar",resolve:Ih,construct:Nh,predicate:$h,represent:Mh,defaultStyle:"lowercase"}),es=Ji.extend({implicit:[Zi,Xi,Qi,ts]}),rs=es,ns=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),is=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Hh(t){return t===null?!1:ns.exec(t)!==null||is.exec(t)!==null}function Uh(t){var l,n,s,i,p,u,r,e=0,f=null,a,c,o;if(l=ns.exec(t),l===null&&(l=is.exec(t)),l===null)throw new Error("Date resolve error");if(n=+l[1],s=+l[2]-1,i=+l[3],!l[4])return new Date(Date.UTC(n,s,i));if(p=+l[4],u=+l[5],r=+l[6],l[7]){for(e=l[7].slice(0,3);e.length<3;)e+="0";e=+e}return l[9]&&(a=+l[10],c=+(l[11]||0),f=(a*60+c)*6e4,l[9]==="-"&&(f=-f)),o=new Date(Date.UTC(n,s,i,p,u,r,e)),f&&o.setTime(o.getTime()-f),o}function Gh(t){return t.toISOString()}var ss=new $t("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Hh,construct:Uh,instanceOf:Date,represent:Gh});function qh(t){return t==="<<"||t===null}var os=new $t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:qh}),ln=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
60
60
|
\r`;function zh(t){if(t===null)return!1;var l,n,s=0,i=t.length,p=ln;for(n=0;n<i;n++)if(l=p.indexOf(t.charAt(n)),!(l>64)){if(l<0)return!1;s+=6}return s%8===0}function Wh(t){var l,n,s=t.replace(/[\r\n=]/g,""),i=s.length,p=ln,u=0,r=[];for(l=0;l<i;l++)l%4===0&&l&&(r.push(u>>16&255),r.push(u>>8&255),r.push(u&255)),u=u<<6|p.indexOf(s.charAt(l));return n=i%4*6,n===0?(r.push(u>>16&255),r.push(u>>8&255),r.push(u&255)):n===18?(r.push(u>>10&255),r.push(u>>2&255)):n===12&&r.push(u>>4&255),new Uint8Array(r)}function Vh(t){var l="",n=0,s,i,p=t.length,u=ln;for(s=0;s<p;s++)s%3===0&&s&&(l+=u[n>>18&63],l+=u[n>>12&63],l+=u[n>>6&63],l+=u[n&63]),n=(n<<8)+t[s];return i=p%3,i===0?(l+=u[n>>18&63],l+=u[n>>12&63],l+=u[n>>6&63],l+=u[n&63]):i===2?(l+=u[n>>10&63],l+=u[n>>4&63],l+=u[n<<2&63],l+=u[64]):i===1&&(l+=u[n>>2&63],l+=u[n<<4&63],l+=u[64],l+=u[64]),l}function Yh(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var us=new $t("tag:yaml.org,2002:binary",{kind:"scalar",resolve:zh,construct:Wh,predicate:Yh,represent:Vh}),Kh=Object.prototype.hasOwnProperty,Jh=Object.prototype.toString;function Zh(t){if(t===null)return!0;var l=[],n,s,i,p,u,r=t;for(n=0,s=r.length;n<s;n+=1){if(i=r[n],u=!1,Jh.call(i)!=="[object Object]")return!1;for(p in i)if(Kh.call(i,p))if(!u)u=!0;else return!1;if(!u)return!1;if(l.indexOf(p)===-1)l.push(p);else return!1}return!0}function Xh(t){return t!==null?t:[]}var as=new $t("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Zh,construct:Xh}),Qh=Object.prototype.toString;function tf(t){if(t===null)return!0;var l,n,s,i,p,u=t;for(p=new Array(u.length),l=0,n=u.length;l<n;l+=1){if(s=u[l],Qh.call(s)!=="[object Object]"||(i=Object.keys(s),i.length!==1))return!1;p[l]=[i[0],s[i[0]]]}return!0}function ef(t){if(t===null)return[];var l,n,s,i,p,u=t;for(p=new Array(u.length),l=0,n=u.length;l<n;l+=1)s=u[l],i=Object.keys(s),p[l]=[i[0],s[i[0]]];return p}var ls=new $t("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:tf,construct:ef}),rf=Object.prototype.hasOwnProperty;function nf(t){if(t===null)return!0;var l,n=t;for(l in n)if(rf.call(n,l)&&n[l]!==null)return!1;return!0}function sf(t){return t!==null?t:{}}var cs=new $t("tag:yaml.org,2002:set",{kind:"mapping",resolve:nf,construct:sf}),cn=rs.extend({implicit:[ss,os],explicit:[us,as,ls,cs]}),le=Object.prototype.hasOwnProperty,ur=1,hs=2,fs=3,ar=4,Yr=1,of=2,Di=3,uf=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,af=/[\x85\u2028\u2029]/,lf=/[,\[\]\{\}]/,ps=/^(?:!|!!|![a-z\-]+!)$/i,ds=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Si(t){return Object.prototype.toString.call(t)}function Qt(t){return t===10||t===13}function ge(t){return t===9||t===32}function zt(t){return t===9||t===32||t===10||t===13}function De(t){return t===44||t===91||t===93||t===123||t===125}function cf(t){var l;return 48<=t&&t<=57?t-48:(l=t|32,97<=l&&l<=102?l-97+10:-1)}function hf(t){return t===120?2:t===117?4:t===85?8:0}function ff(t){return 48<=t&&t<=57?t-48:-1}function Ai(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
61
|
-
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function pf(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var ms=new Array(256),ys=new Array(256);for(me=0;me<256;me++)ms[me]=Ai(me)?1:0,ys[me]=Ai(me);var me;function df(t,l){this.input=t,this.filename=l.filename||null,this.schema=l.schema||cn,this.onWarning=l.onWarning||null,this.legacy=l.legacy||!1,this.json=l.json||!1,this.listener=l.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function gs(t,l){var n={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return n.snippet=gh(n),new qt(l,n)}function yt(t,l){throw gs(t,l)}function lr(t,l){t.onWarning&&t.onWarning.call(null,gs(t,l))}var Ci={YAML:function(t,l,n){var s,i,p;t.version!==null&&yt(t,"duplication of %YAML directive"),n.length!==1&&yt(t,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),s===null&&yt(t,"ill-formed argument of the YAML directive"),i=parseInt(s[1],10),p=parseInt(s[2],10),i!==1&&yt(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=p<2,p!==1&&p!==2&&lr(t,"unsupported YAML version of the document")},TAG:function(t,l,n){var s,i;n.length!==2&&yt(t,"TAG directive accepts exactly two arguments"),s=n[0],i=n[1],ps.test(s)||yt(t,"ill-formed tag handle (first argument) of the TAG directive"),le.call(t.tagMap,s)&&yt(t,'there is a previously declared suffix for "'+s+'" tag handle'),ds.test(i)||yt(t,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{yt(t,"tag prefix is malformed: "+i)}t.tagMap[s]=i}};function ae(t,l,n,s){var i,p,u,r;if(l<n){if(r=t.input.slice(l,n),s)for(i=0,p=r.length;i<p;i+=1)u=r.charCodeAt(i),u===9||32<=u&&u<=1114111||yt(t,"expected valid JSON character");else uf.test(r)&&yt(t,"the stream contains non-printable characters");t.result+=r}}function xi(t,l,n,s){var i,p,u,r;for(Nt.isObject(n)||yt(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),u=0,r=i.length;u<r;u+=1)p=i[u],le.call(l,p)||(l[p]=n[p],s[p]=!0)}function Se(t,l,n,s,i,p,u,r,e){var f,a;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),f=0,a=i.length;f<a;f+=1)Array.isArray(i[f])&&yt(t,"nested arrays are not supported inside keys"),typeof i=="object"&&Si(i[f])==="[object Object]"&&(i[f]="[object Object]");if(typeof i=="object"&&Si(i)==="[object Object]"&&(i="[object Object]"),i=String(i),l===null&&(l={}),s==="tag:yaml.org,2002:merge")if(Array.isArray(p))for(f=0,a=p.length;f<a;f+=1)xi(t,l,p[f],n);else xi(t,l,p,n);else!t.json&&!le.call(n,i)&&le.call(l,i)&&(t.line=u||t.line,t.lineStart=r||t.lineStart,t.position=e||t.position,yt(t,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(l,i,{configurable:!0,enumerable:!0,writable:!0,value:p}):l[i]=p,delete n[i];return l}function hn(t){var l;l=t.input.charCodeAt(t.position),l===10?t.position++:l===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):yt(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function
|
62
|
-
`,l-1))}function mf(t,l,n){var s,i,p,u,r,e,f,a,c=t.kind,o=t.result,d;if(d=t.input.charCodeAt(t.position),zt(d)||De(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=t.input.charCodeAt(t.position+1),zt(i)||n&&De(i)))return!1;for(t.kind="scalar",t.result="",p=u=t.position,r=!1;d!==0;){if(d===58){if(i=t.input.charCodeAt(t.position+1),zt(i)||n&&De(i))break}else if(d===35){if(s=t.input.charCodeAt(t.position-1),zt(s))break}else{if(t.position===t.lineStart&&dr(t)||n&&De(d))break;if(Qt(d))if(e=t.line,f=t.lineStart,a=t.lineIndent,
|
61
|
+
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function pf(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var ms=new Array(256),ys=new Array(256);for(me=0;me<256;me++)ms[me]=Ai(me)?1:0,ys[me]=Ai(me);var me;function df(t,l){this.input=t,this.filename=l.filename||null,this.schema=l.schema||cn,this.onWarning=l.onWarning||null,this.legacy=l.legacy||!1,this.json=l.json||!1,this.listener=l.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function gs(t,l){var n={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return n.snippet=gh(n),new qt(l,n)}function yt(t,l){throw gs(t,l)}function lr(t,l){t.onWarning&&t.onWarning.call(null,gs(t,l))}var Ci={YAML:function(t,l,n){var s,i,p;t.version!==null&&yt(t,"duplication of %YAML directive"),n.length!==1&&yt(t,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),s===null&&yt(t,"ill-formed argument of the YAML directive"),i=parseInt(s[1],10),p=parseInt(s[2],10),i!==1&&yt(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=p<2,p!==1&&p!==2&&lr(t,"unsupported YAML version of the document")},TAG:function(t,l,n){var s,i;n.length!==2&&yt(t,"TAG directive accepts exactly two arguments"),s=n[0],i=n[1],ps.test(s)||yt(t,"ill-formed tag handle (first argument) of the TAG directive"),le.call(t.tagMap,s)&&yt(t,'there is a previously declared suffix for "'+s+'" tag handle'),ds.test(i)||yt(t,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{yt(t,"tag prefix is malformed: "+i)}t.tagMap[s]=i}};function ae(t,l,n,s){var i,p,u,r;if(l<n){if(r=t.input.slice(l,n),s)for(i=0,p=r.length;i<p;i+=1)u=r.charCodeAt(i),u===9||32<=u&&u<=1114111||yt(t,"expected valid JSON character");else uf.test(r)&&yt(t,"the stream contains non-printable characters");t.result+=r}}function xi(t,l,n,s){var i,p,u,r;for(Nt.isObject(n)||yt(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),u=0,r=i.length;u<r;u+=1)p=i[u],le.call(l,p)||(l[p]=n[p],s[p]=!0)}function Se(t,l,n,s,i,p,u,r,e){var f,a;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),f=0,a=i.length;f<a;f+=1)Array.isArray(i[f])&&yt(t,"nested arrays are not supported inside keys"),typeof i=="object"&&Si(i[f])==="[object Object]"&&(i[f]="[object Object]");if(typeof i=="object"&&Si(i)==="[object Object]"&&(i="[object Object]"),i=String(i),l===null&&(l={}),s==="tag:yaml.org,2002:merge")if(Array.isArray(p))for(f=0,a=p.length;f<a;f+=1)xi(t,l,p[f],n);else xi(t,l,p,n);else!t.json&&!le.call(n,i)&&le.call(l,i)&&(t.line=u||t.line,t.lineStart=r||t.lineStart,t.position=e||t.position,yt(t,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(l,i,{configurable:!0,enumerable:!0,writable:!0,value:p}):l[i]=p,delete n[i];return l}function hn(t){var l;l=t.input.charCodeAt(t.position),l===10?t.position++:l===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):yt(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function It(t,l,n){for(var s=0,i=t.input.charCodeAt(t.position);i!==0;){for(;ge(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(l&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(Qt(i))for(hn(t),i=t.input.charCodeAt(t.position),s++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return n!==-1&&s!==0&&t.lineIndent<n&&lr(t,"deficient indentation"),s}function dr(t){var l=t.position,n;return n=t.input.charCodeAt(l),!!((n===45||n===46)&&n===t.input.charCodeAt(l+1)&&n===t.input.charCodeAt(l+2)&&(l+=3,n=t.input.charCodeAt(l),n===0||zt(n)))}function fn(t,l){l===1?t.result+=" ":l>1&&(t.result+=Nt.repeat(`
|
62
|
+
`,l-1))}function mf(t,l,n){var s,i,p,u,r,e,f,a,c=t.kind,o=t.result,d;if(d=t.input.charCodeAt(t.position),zt(d)||De(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=t.input.charCodeAt(t.position+1),zt(i)||n&&De(i)))return!1;for(t.kind="scalar",t.result="",p=u=t.position,r=!1;d!==0;){if(d===58){if(i=t.input.charCodeAt(t.position+1),zt(i)||n&&De(i))break}else if(d===35){if(s=t.input.charCodeAt(t.position-1),zt(s))break}else{if(t.position===t.lineStart&&dr(t)||n&&De(d))break;if(Qt(d))if(e=t.line,f=t.lineStart,a=t.lineIndent,It(t,!1,-1),t.lineIndent>=l){r=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=u,t.line=e,t.lineStart=f,t.lineIndent=a;break}}r&&(ae(t,p,u,!1),fn(t,t.line-e),p=u=t.position,r=!1),ge(d)||(u=t.position+1),d=t.input.charCodeAt(++t.position)}return ae(t,p,u,!1),t.result?!0:(t.kind=c,t.result=o,!1)}function yf(t,l){var n,s,i;if(n=t.input.charCodeAt(t.position),n!==39)return!1;for(t.kind="scalar",t.result="",t.position++,s=i=t.position;(n=t.input.charCodeAt(t.position))!==0;)if(n===39)if(ae(t,s,t.position,!0),n=t.input.charCodeAt(++t.position),n===39)s=t.position,t.position++,i=t.position;else return!0;else Qt(n)?(ae(t,s,i,!0),fn(t,It(t,!1,l)),s=i=t.position):t.position===t.lineStart&&dr(t)?yt(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);yt(t,"unexpected end of the stream within a single quoted scalar")}function gf(t,l){var n,s,i,p,u,r;if(r=t.input.charCodeAt(t.position),r!==34)return!1;for(t.kind="scalar",t.result="",t.position++,n=s=t.position;(r=t.input.charCodeAt(t.position))!==0;){if(r===34)return ae(t,n,t.position,!0),t.position++,!0;if(r===92){if(ae(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),Qt(r))It(t,!1,l);else if(r<256&&ms[r])t.result+=ys[r],t.position++;else if((u=hf(r))>0){for(i=u,p=0;i>0;i--)r=t.input.charCodeAt(++t.position),(u=cf(r))>=0?p=(p<<4)+u:yt(t,"expected hexadecimal character");t.result+=pf(p),t.position++}else yt(t,"unknown escape sequence");n=s=t.position}else Qt(r)?(ae(t,n,s,!0),fn(t,It(t,!1,l)),n=s=t.position):t.position===t.lineStart&&dr(t)?yt(t,"unexpected end of the document within a double quoted scalar"):(t.position++,s=t.position)}yt(t,"unexpected end of the stream within a double quoted scalar")}function bf(t,l){var n=!0,s,i,p,u=t.tag,r,e=t.anchor,f,a,c,o,d,h=Object.create(null),y,b,E,g;if(g=t.input.charCodeAt(t.position),g===91)a=93,d=!1,r=[];else if(g===123)a=125,d=!0,r={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=r),g=t.input.charCodeAt(++t.position);g!==0;){if(It(t,!0,l),g=t.input.charCodeAt(t.position),g===a)return t.position++,t.tag=u,t.anchor=e,t.kind=d?"mapping":"sequence",t.result=r,!0;n?g===44&&yt(t,"expected the node content, but found ','"):yt(t,"missed comma between flow collection entries"),b=y=E=null,c=o=!1,g===63&&(f=t.input.charCodeAt(t.position+1),zt(f)&&(c=o=!0,t.position++,It(t,!0,l))),s=t.line,i=t.lineStart,p=t.position,Ae(t,l,ur,!1,!0),b=t.tag,y=t.result,It(t,!0,l),g=t.input.charCodeAt(t.position),(o||t.line===s)&&g===58&&(c=!0,g=t.input.charCodeAt(++t.position),It(t,!0,l),Ae(t,l,ur,!1,!0),E=t.result),d?Se(t,r,h,b,y,E,s,i,p):c?r.push(Se(t,null,h,b,y,E,s,i,p)):r.push(y),It(t,!0,l),g=t.input.charCodeAt(t.position),g===44?(n=!0,g=t.input.charCodeAt(++t.position)):n=!1}yt(t,"unexpected end of the stream within a flow collection")}function vf(t,l){var n,s,i=Yr,p=!1,u=!1,r=l,e=0,f=!1,a,c;if(c=t.input.charCodeAt(t.position),c===124)s=!1;else if(c===62)s=!0;else return!1;for(t.kind="scalar",t.result="";c!==0;)if(c=t.input.charCodeAt(++t.position),c===43||c===45)Yr===i?i=c===43?Di:of:yt(t,"repeat of a chomping mode identifier");else if((a=ff(c))>=0)a===0?yt(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?yt(t,"repeat of an indentation width identifier"):(r=l+a-1,u=!0);else break;if(ge(c)){do c=t.input.charCodeAt(++t.position);while(ge(c));if(c===35)do c=t.input.charCodeAt(++t.position);while(!Qt(c)&&c!==0)}for(;c!==0;){for(hn(t),t.lineIndent=0,c=t.input.charCodeAt(t.position);(!u||t.lineIndent<r)&&c===32;)t.lineIndent++,c=t.input.charCodeAt(++t.position);if(!u&&t.lineIndent>r&&(r=t.lineIndent),Qt(c)){e++;continue}if(t.lineIndent<r){i===Di?t.result+=Nt.repeat(`
|
63
63
|
`,p?1+e:e):i===Yr&&p&&(t.result+=`
|
64
64
|
`);break}for(s?ge(c)?(f=!0,t.result+=Nt.repeat(`
|
65
65
|
`,p?1+e:e)):f?(f=!1,t.result+=Nt.repeat(`
|
66
66
|
`,e+1)):e===0?p&&(t.result+=" "):t.result+=Nt.repeat(`
|
67
67
|
`,e):t.result+=Nt.repeat(`
|
68
|
-
`,p?1+e:e),p=!0,u=!0,e=0,n=t.position;!Qt(c)&&c!==0;)c=t.input.charCodeAt(++t.position);ae(t,n,t.position,!1)}return!0}function Fi(t,l){var n,s=t.tag,i=t.anchor,p=[],u,r=!1,e;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=p),e=t.input.charCodeAt(t.position);e!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,yt(t,"tab characters must not be used in indentation")),!(e!==45||(u=t.input.charCodeAt(t.position+1),!zt(u))));){if(r=!0,t.position++,
|
69
|
-
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var n=new df(t,l),s=t.indexOf("\0");for(s!==-1&&(n.position=s,yt(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Sf(n);return n.documents}function Af(t,l,n){l!==null&&typeof l=="object"&&typeof n>"u"&&(n=l,l=null);var s=bs(t,n);if(typeof l!="function")return s;for(var i=0,p=s.length;i<p;i+=1)l(s[i])}function Cf(t,l){var n=bs(t,l);if(n.length!==0){if(n.length===1)return n[0];throw new qt("expected a single document in the stream, but found more")}}var xf=Af,Ff=Cf,vs={loadAll:xf,load:Ff},Es=Object.prototype.toString,_s=Object.prototype.hasOwnProperty,pn=65279,kf=9,
|
68
|
+
`,p?1+e:e),p=!0,u=!0,e=0,n=t.position;!Qt(c)&&c!==0;)c=t.input.charCodeAt(++t.position);ae(t,n,t.position,!1)}return!0}function Fi(t,l){var n,s=t.tag,i=t.anchor,p=[],u,r=!1,e;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=p),e=t.input.charCodeAt(t.position);e!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,yt(t,"tab characters must not be used in indentation")),!(e!==45||(u=t.input.charCodeAt(t.position+1),!zt(u))));){if(r=!0,t.position++,It(t,!0,-1)&&t.lineIndent<=l){p.push(null),e=t.input.charCodeAt(t.position);continue}if(n=t.line,Ae(t,l,fs,!1,!0),p.push(t.result),It(t,!0,-1),e=t.input.charCodeAt(t.position),(t.line===n||t.lineIndent>l)&&e!==0)yt(t,"bad indentation of a sequence entry");else if(t.lineIndent<l)break}return r?(t.tag=s,t.anchor=i,t.kind="sequence",t.result=p,!0):!1}function Ef(t,l,n){var s,i,p,u,r,e,f=t.tag,a=t.anchor,c={},o=Object.create(null),d=null,h=null,y=null,b=!1,E=!1,g;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=c),g=t.input.charCodeAt(t.position);g!==0;){if(!b&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,yt(t,"tab characters must not be used in indentation")),s=t.input.charCodeAt(t.position+1),p=t.line,(g===63||g===58)&&zt(s))g===63?(b&&(Se(t,c,o,d,h,null,u,r,e),d=h=y=null),E=!0,b=!0,i=!0):b?(b=!1,i=!0):yt(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,g=s;else{if(u=t.line,r=t.lineStart,e=t.position,!Ae(t,n,hs,!1,!0))break;if(t.line===p){for(g=t.input.charCodeAt(t.position);ge(g);)g=t.input.charCodeAt(++t.position);if(g===58)g=t.input.charCodeAt(++t.position),zt(g)||yt(t,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(Se(t,c,o,d,h,null,u,r,e),d=h=y=null),E=!0,b=!1,i=!1,d=t.tag,h=t.result;else if(E)yt(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=f,t.anchor=a,!0}else if(E)yt(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=f,t.anchor=a,!0}if((t.line===p||t.lineIndent>l)&&(b&&(u=t.line,r=t.lineStart,e=t.position),Ae(t,l,ar,!0,i)&&(b?h=t.result:y=t.result),b||(Se(t,c,o,d,h,y,u,r,e),d=h=y=null),It(t,!0,-1),g=t.input.charCodeAt(t.position)),(t.line===p||t.lineIndent>l)&&g!==0)yt(t,"bad indentation of a mapping entry");else if(t.lineIndent<l)break}return b&&Se(t,c,o,d,h,null,u,r,e),E&&(t.tag=f,t.anchor=a,t.kind="mapping",t.result=c),E}function _f(t){var l,n=!1,s=!1,i,p,u;if(u=t.input.charCodeAt(t.position),u!==33)return!1;if(t.tag!==null&&yt(t,"duplication of a tag property"),u=t.input.charCodeAt(++t.position),u===60?(n=!0,u=t.input.charCodeAt(++t.position)):u===33?(s=!0,i="!!",u=t.input.charCodeAt(++t.position)):i="!",l=t.position,n){do u=t.input.charCodeAt(++t.position);while(u!==0&&u!==62);t.position<t.length?(p=t.input.slice(l,t.position),u=t.input.charCodeAt(++t.position)):yt(t,"unexpected end of the stream within a verbatim tag")}else{for(;u!==0&&!zt(u);)u===33&&(s?yt(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(l-1,t.position+1),ps.test(i)||yt(t,"named tag handle cannot contain such characters"),s=!0,l=t.position+1)),u=t.input.charCodeAt(++t.position);p=t.input.slice(l,t.position),lf.test(p)&&yt(t,"tag suffix cannot contain flow indicator characters")}p&&!ds.test(p)&&yt(t,"tag name cannot contain such characters: "+p);try{p=decodeURIComponent(p)}catch{yt(t,"tag name is malformed: "+p)}return n?t.tag=p:le.call(t.tagMap,i)?t.tag=t.tagMap[i]+p:i==="!"?t.tag="!"+p:i==="!!"?t.tag="tag:yaml.org,2002:"+p:yt(t,'undeclared tag handle "'+i+'"'),!0}function wf(t){var l,n;if(n=t.input.charCodeAt(t.position),n!==38)return!1;for(t.anchor!==null&&yt(t,"duplication of an anchor property"),n=t.input.charCodeAt(++t.position),l=t.position;n!==0&&!zt(n)&&!De(n);)n=t.input.charCodeAt(++t.position);return t.position===l&&yt(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(l,t.position),!0}function Df(t){var l,n,s;if(s=t.input.charCodeAt(t.position),s!==42)return!1;for(s=t.input.charCodeAt(++t.position),l=t.position;s!==0&&!zt(s)&&!De(s);)s=t.input.charCodeAt(++t.position);return t.position===l&&yt(t,"name of an alias node must contain at least one character"),n=t.input.slice(l,t.position),le.call(t.anchorMap,n)||yt(t,'unidentified alias "'+n+'"'),t.result=t.anchorMap[n],It(t,!0,-1),!0}function Ae(t,l,n,s,i){var p,u,r,e=1,f=!1,a=!1,c,o,d,h,y,b;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,p=u=r=ar===n||fs===n,s&&It(t,!0,-1)&&(f=!0,t.lineIndent>l?e=1:t.lineIndent===l?e=0:t.lineIndent<l&&(e=-1)),e===1)for(;_f(t)||wf(t);)It(t,!0,-1)?(f=!0,r=p,t.lineIndent>l?e=1:t.lineIndent===l?e=0:t.lineIndent<l&&(e=-1)):r=!1;if(r&&(r=f||i),(e===1||ar===n)&&(ur===n||hs===n?y=l:y=l+1,b=t.position-t.lineStart,e===1?r&&(Fi(t,b)||Ef(t,b,y))||bf(t,y)?a=!0:(u&&vf(t,y)||yf(t,y)||gf(t,y)?a=!0:Df(t)?(a=!0,(t.tag!==null||t.anchor!==null)&&yt(t,"alias node should not have any properties")):mf(t,y,ur===n)&&(a=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):e===0&&(a=r&&Fi(t,b))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&yt(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),c=0,o=t.implicitTypes.length;c<o;c+=1)if(h=t.implicitTypes[c],h.resolve(t.result)){t.result=h.construct(t.result),t.tag=h.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(le.call(t.typeMap[t.kind||"fallback"],t.tag))h=t.typeMap[t.kind||"fallback"][t.tag];else for(h=null,d=t.typeMap.multi[t.kind||"fallback"],c=0,o=d.length;c<o;c+=1)if(t.tag.slice(0,d[c].tag.length)===d[c].tag){h=d[c];break}h||yt(t,"unknown tag !<"+t.tag+">"),t.result!==null&&h.kind!==t.kind&&yt(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+h.kind+'", not "'+t.kind+'"'),h.resolve(t.result,t.tag)?(t.result=h.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):yt(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||a}function Sf(t){var l=t.position,n,s,i,p=!1,u;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(u=t.input.charCodeAt(t.position))!==0&&(It(t,!0,-1),u=t.input.charCodeAt(t.position),!(t.lineIndent>0||u!==37));){for(p=!0,u=t.input.charCodeAt(++t.position),n=t.position;u!==0&&!zt(u);)u=t.input.charCodeAt(++t.position);for(s=t.input.slice(n,t.position),i=[],s.length<1&&yt(t,"directive name must not be less than one character in length");u!==0;){for(;ge(u);)u=t.input.charCodeAt(++t.position);if(u===35){do u=t.input.charCodeAt(++t.position);while(u!==0&&!Qt(u));break}if(Qt(u))break;for(n=t.position;u!==0&&!zt(u);)u=t.input.charCodeAt(++t.position);i.push(t.input.slice(n,t.position))}u!==0&&hn(t),le.call(Ci,s)?Ci[s](t,s,i):lr(t,'unknown document directive "'+s+'"')}if(It(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,It(t,!0,-1)):p&&yt(t,"directives end mark is expected"),Ae(t,t.lineIndent-1,ar,!1,!0),It(t,!0,-1),t.checkLineBreaks&&af.test(t.input.slice(l,t.position))&&lr(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&dr(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,It(t,!0,-1));return}if(t.position<t.length-1)yt(t,"end of the stream or a document separator is expected");else return}function bs(t,l){t=String(t),l=l||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
|
69
|
+
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var n=new df(t,l),s=t.indexOf("\0");for(s!==-1&&(n.position=s,yt(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Sf(n);return n.documents}function Af(t,l,n){l!==null&&typeof l=="object"&&typeof n>"u"&&(n=l,l=null);var s=bs(t,n);if(typeof l!="function")return s;for(var i=0,p=s.length;i<p;i+=1)l(s[i])}function Cf(t,l){var n=bs(t,l);if(n.length!==0){if(n.length===1)return n[0];throw new qt("expected a single document in the stream, but found more")}}var xf=Af,Ff=Cf,vs={loadAll:xf,load:Ff},Es=Object.prototype.toString,_s=Object.prototype.hasOwnProperty,pn=65279,kf=9,Me=10,Of=13,Rf=32,Tf=33,Bf=34,Zr=35,Pf=37,Lf=38,If=39,Nf=42,ws=44,jf=45,cr=58,Mf=61,$f=62,Hf=63,Uf=64,Ds=91,Ss=93,Gf=96,As=123,qf=124,Cs=125,Ut={};Ut[0]="\\0";Ut[7]="\\a";Ut[8]="\\b";Ut[9]="\\t";Ut[10]="\\n";Ut[11]="\\v";Ut[12]="\\f";Ut[13]="\\r";Ut[27]="\\e";Ut[34]='\\"';Ut[92]="\\\\";Ut[133]="\\N";Ut[160]="\\_";Ut[8232]="\\L";Ut[8233]="\\P";var zf=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Wf=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Vf(t,l){var n,s,i,p,u,r,e;if(l===null)return{};for(n={},s=Object.keys(l),i=0,p=s.length;i<p;i+=1)u=s[i],r=String(l[u]),u.slice(0,2)==="!!"&&(u="tag:yaml.org,2002:"+u.slice(2)),e=t.compiledTypeMap.fallback[u],e&&_s.call(e.styleAliases,r)&&(r=e.styleAliases[r]),n[u]=r;return n}function Yf(t){var l,n,s;if(l=t.toString(16).toUpperCase(),t<=255)n="x",s=2;else if(t<=65535)n="u",s=4;else if(t<=4294967295)n="U",s=8;else throw new qt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Nt.repeat("0",s-l.length)+l}var Kf=1,$e=2;function Jf(t){this.schema=t.schema||cn,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Nt.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=Vf(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?$e:Kf,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function ki(t,l){for(var n=Nt.repeat(" ",l),s=0,i=-1,p="",u,r=t.length;s<r;)i=t.indexOf(`
|
70
70
|
`,s),i===-1?(u=t.slice(s),s=r):(u=t.slice(s,i+1),s=i+1),u.length&&u!==`
|
71
71
|
`&&(p+=n),p+=u;return p}function Xr(t,l){return`
|
72
|
-
`+Nt.repeat(" ",t.indent*l)}function Zf(t,l){var n,s,i;for(n=0,s=t.implicitTypes.length;n<s;n+=1)if(i=t.implicitTypes[n],i.resolve(l))return!0;return!1}function hr(t){return t===Rf||t===kf}function He(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==pn||65536<=t&&t<=1114111}function Oi(t){return He(t)&&t!==pn&&t!==Of&&t!==
|
72
|
+
`+Nt.repeat(" ",t.indent*l)}function Zf(t,l){var n,s,i;for(n=0,s=t.implicitTypes.length;n<s;n+=1)if(i=t.implicitTypes[n],i.resolve(l))return!0;return!1}function hr(t){return t===Rf||t===kf}function He(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==pn||65536<=t&&t<=1114111}function Oi(t){return He(t)&&t!==pn&&t!==Of&&t!==Me}function Ri(t,l,n){var s=Oi(t),i=s&&!hr(t);return(n?s:s&&t!==ws&&t!==Ds&&t!==Ss&&t!==As&&t!==Cs)&&t!==Zr&&!(l===cr&&!i)||Oi(l)&&!hr(l)&&t===Zr||l===cr&&i}function Xf(t){return He(t)&&t!==pn&&!hr(t)&&t!==jf&&t!==Hf&&t!==cr&&t!==ws&&t!==Ds&&t!==Ss&&t!==As&&t!==Cs&&t!==Zr&&t!==Lf&&t!==Nf&&t!==Tf&&t!==qf&&t!==Mf&&t!==$f&&t!==If&&t!==Bf&&t!==Pf&&t!==Uf&&t!==Gf}function Qf(t){return!hr(t)&&t!==cr}function Ie(t,l){var n=t.charCodeAt(l),s;return n>=55296&&n<=56319&&l+1<t.length&&(s=t.charCodeAt(l+1),s>=56320&&s<=57343)?(n-55296)*1024+s-56320+65536:n}function xs(t){var l=/^\n* /;return l.test(t)}var Fs=1,Qr=2,ks=3,Os=4,we=5;function tp(t,l,n,s,i,p,u,r){var e,f=0,a=null,c=!1,o=!1,d=s!==-1,h=-1,y=Xf(Ie(t,0))&&Qf(Ie(t,t.length-1));if(l||u)for(e=0;e<t.length;f>=65536?e+=2:e++){if(f=Ie(t,e),!He(f))return we;y=y&&Ri(f,a,r),a=f}else{for(e=0;e<t.length;f>=65536?e+=2:e++){if(f=Ie(t,e),f===Me)c=!0,d&&(o=o||e-h-1>s&&t[h+1]!==" ",h=e);else if(!He(f))return we;y=y&&Ri(f,a,r),a=f}o=o||d&&e-h-1>s&&t[h+1]!==" "}return!c&&!o?y&&!u&&!i(t)?Fs:p===$e?we:Qr:n>9&&xs(t)?we:u?p===$e?we:Qr:o?Os:ks}function ep(t,l,n,s,i){t.dump=function(){if(l.length===0)return t.quotingType===$e?'""':"''";if(!t.noCompatMode&&(zf.indexOf(l)!==-1||Wf.test(l)))return t.quotingType===$e?'"'+l+'"':"'"+l+"'";var p=t.indent*Math.max(1,n),u=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-p),r=s||t.flowLevel>-1&&n>=t.flowLevel;function e(f){return Zf(t,f)}switch(tp(l,r,t.indent,u,e,t.quotingType,t.forceQuotes&&!s,i)){case Fs:return l;case Qr:return"'"+l.replace(/'/g,"''")+"'";case ks:return"|"+Ti(l,t.indent)+Bi(ki(l,p));case Os:return">"+Ti(l,t.indent)+Bi(ki(rp(l,u),p));case we:return'"'+np(l)+'"';default:throw new qt("impossible error: invalid scalar style")}}()}function Ti(t,l){var n=xs(t)?String(l):"",s=t[t.length-1]===`
|
73
73
|
`,i=s&&(t[t.length-2]===`
|
74
74
|
`||t===`
|
75
75
|
`),p=i?"+":s?"":"-";return n+p+`
|
@@ -80,8 +80,8 @@ ${e.message}`:D,m=[v,u,p].filter(Boolean).join(`
|
|
80
80
|
`:"")+Pi(e,l),i=p}return s}function Pi(t,l){if(t===""||t[0]===" ")return t;for(var n=/ [^ ]/g,s,i=0,p,u=0,r=0,e="";s=n.exec(t);)r=s.index,r-i>l&&(p=u>i?u:r,e+=`
|
81
81
|
`+t.slice(i,p),i=p+1),u=r;return e+=`
|
82
82
|
`,t.length-i>l&&u>i?e+=t.slice(i,u)+`
|
83
|
-
`+t.slice(u+1):e+=t.slice(i),e.slice(1)}function np(t){for(var l="",n=0,s,i=0;i<t.length;n>=65536?i+=2:i++)n=
|
84
|
-
`:""}var lp=ap,cp={dump:lp};function dn(t,l){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+l+" instead, which is now safe by default.")}}var hp=$t,fp=Wi,pp=Ji,dp=es,mp=rs,yp=cn,gp=vs.load,bp=vs.loadAll,vp=cp.dump,Ep=qt,_p={binary:us,float:ts,map:Ki,null:Zi,pairs:ls,set:cs,timestamp:ss,bool:Xi,int:Qi,merge:os,omap:as,seq:Yi,str:Vi},wp=dn("safeLoad","load"),Dp=dn("safeLoadAll","loadAll"),Sp=dn("safeDump","dump"),Ap={Type:hp,Schema:fp,FAILSAFE_SCHEMA:pp,JSON_SCHEMA:dp,CORE_SCHEMA:mp,DEFAULT_SCHEMA:yp,load:gp,loadAll:bp,dump:vp,YAMLException:Ep,types:_p,safeLoad:wp,safeLoadAll:Dp,safeDump:Sp},Cp=Ap,xp=Ot(ih()),Fp="turbo.json";var Kr={};function kp(t){try{if(Ne.default.existsSync(ye.default.join(t,"pnpm-workspace.yaml"))){let l=Cp.load(Ne.default.readFileSync(ye.default.join(t,"pnpm-workspace.yaml"),"utf8"));return(l==null?void 0:l.packages)||[]}else{let l=JSON.parse(Ne.default.readFileSync(ye.default.join(t,"package.json"),"utf8"));return l!=null&&l.workspaces?"packages"in(l==null?void 0:l.workspaces)?l.workspaces.packages||[]:(l==null?void 0:l.workspaces)||[]:[]}}catch{return[]}}function mn(t,l){var n;let s=zr(t,l),i=[],p=(n=l==null?void 0:l.cache)!=null?n:!0;if(p&&t&&Kr[t])return Kr[t];if(s){let u=kp(s).map(r=>`${r}/turbo.json`);(0,xp.sync)([Fp,...u],{cwd:s,onlyFiles:!0,followSymbolicLinks:!1,suppressErrors:!0}).map(r=>ye.default.join(s,r)).forEach(r=>{try{let e=Ne.default.readFileSync(r,"utf8"),f=qr.parse(e),a=ye.default.dirname(r)===s;if(a){if("extends"in f)return}else if(!("extends"in f))return;i.push({config:f,turboConfigPath:r,workspacePath:ye.default.dirname(r),isRootConfig:a})}catch(e){console.warn(e)}})}return p&&t&&(Kr[t]=i),i}var qe=Wt(require("chalk"));var mr=Wt(require("chalk")),yr=require("diff"),Ue=Wt(require("fs-extra")),Rs=Wt(require("os")),yn=Wt(require("path")),Ge=class{constructor(l){this.changes=[];if(this.filePath=l.filePath,this.rootPath=l.rootPath,this.after=l.after,this.error=l.error,l.before===void 0)try{yn.default.extname(l.filePath)===".json"?this.before=Ue.default.readJsonSync(l.filePath):this.before=Ue.default.readFileSync(l.filePath)}catch{this.before=""}else l.before===null?this.before="":this.before=l.before;l.after?typeof this.before=="object"||typeof l.after=="object"?this.changes=(0,yr.diffJson)(this.before,l.after):this.changes=(0,yr.diffLines)(this.before,l.after):this.changes=[]}fileName(){return yn.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?Ue.default.writeJsonSync(this.filePath,this.after,{spaces:2}):Ue.default.writeFileSync(this.filePath,this.after))}additions(){return this.changes.filter(l=>l.added).length}deletions(){return this.changes.filter(l=>l.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(l){l.diff?(this.changes.forEach(n=>{n.added?process.stdout.write(mr.default.green(n.value)):n.removed?process.stdout.write(mr.default.red(n.value)):process.stdout.write(mr.default.dim(n.value))}),console.log(Rs.default.EOL)):console.log(this.after)}};var Zt=Wt(require("chalk")),be=class{constructor(l){this.transform=l.transformer,this.dry=l.dry}modified(...l){console.log(Zt.default.green(" MODIFIED "),...l,this.dry?Zt.default.dim("(dry run)"):"")}unchanged(...l){console.log(Zt.default.gray(" UNCHANGED "),...l,this.dry?Zt.default.dim("(dry run)"):"")}skipped(...l){console.log(Zt.default.yellow(" SKIPPED "),...l,this.dry?Zt.default.dim("(dry run)"):"")}error(...l){console.log(Zt.default.red(" ERROR "),...l,this.dry?Zt.default.dim("(dry run)"):"")}info(...l){console.log(Zt.default.bold(" INFO "),...l,this.dry?Zt.default.dim("(dry run)"):"")}};var gn=class{constructor(l){this.modifications={};this.transform=l.transformer,this.rootPath=l.rootPath,this.dry=l.dry,this.print=l.print,this.logger=new be(l)}abortTransform(l){return this.logger.error(l.reason),{fatalError:new Error(l.reason),changes:l.changes||{}}}modifyFile(l){this.modifications[l.filePath]=new Ge({rootPath:this.rootPath,...l})}finish(){let l={changes:{}};return Object.keys(this.modifications).forEach(s=>{let i=this.modifications[s],p={action:"unchanged",additions:i.additions(),deletions:i.deletions()};if(i.hasChanges()){if(this.dry)p.action="skipped",this.logger.skipped(qe.default.dim(i.fileName()));else try{i.write(),p.action="modified",this.logger.modified(qe.default.bold(i.fileName()))}catch(u){let r="Unknown error";u instanceof Error&&(r=u.message),p.error=new Error(r),p.action="error",this.logger.error(i.fileName(),r)}this.print&&i.log({diff:!0})}else this.logger.unchanged(qe.default.dim(i.fileName()));l.changes[i.fileName()]=p}),Object.keys(l.changes).some(s=>l.changes[s].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:l.changes}):l}static logResults(l){let n=Object.keys(l.changes);if(console.log(),n.length>0){console.log(qe.default.bold("Results:"));let s={};n.forEach(i=>{var u;let p=l.changes[i];s[i]={action:p.action,additions:p.additions,deletions:p.deletions,error:((u=p.error)==null?void 0:u.message)||"None"}}),console.table(s),console.log()}}},bn=gn;function vn({transformer:t,rootPath:l,options:n}){let s={transformer:t,rootPath:l,...n},i=new be(s),p=new bn(s);return{log:i,runner:p}}var Ts="migrate-env-var-dependencies",Op='Migrate environment variable dependencies from "dependsOn" to "env" in `turbo.json`',Rp="1.5.0";function _n(t){let n=["extends"in t?[]:t.globalDependencies,Object.values(t.pipeline).flatMap(s=>{var i;return(i=s.dependsOn)!=null?i:[]})].flat().filter(s=>s==null?void 0:s.startsWith("$"));return{hasKeys:!!n.length,envVars:n}}function Dn({env:t,deps:l}){let n=new Set(t),s=[];return l==null||l.forEach(i=>{i.startsWith("$")?n.add(i.slice(1)):s.push(i)}),n.size?{deps:s,env:Array.from(n)}:{env:t,deps:l}}function Bs(t){let{deps:l,env:n}=Dn({env:t.env,deps:t.dependsOn}),s={...t};return l?s.dependsOn=l:delete s.dependsOn,n&&n.length?s.env=n:delete s.env,s}function Ps(t){if("extends"in t)return t;let{deps:l,env:n}=Dn({env:t.globalEnv,deps:t.globalDependencies}),s={...t};return l&&l.length?s.globalDependencies=l:delete s.globalDependencies,n&&n.length?s.globalEnv=n:delete s.globalEnv,s}function wn(t){let l=Ps(t);return Object.keys(t.pipeline).forEach(n=>{if(t.pipeline,l.pipeline&&t.pipeline[n]){let s=l.pipeline[n];l.pipeline[n]={...s,...Bs(s)}}}),l}function
|
83
|
+
`+t.slice(u+1):e+=t.slice(i),e.slice(1)}function np(t){for(var l="",n=0,s,i=0;i<t.length;n>=65536?i+=2:i++)n=Ie(t,i),s=Ut[n],!s&&He(n)?(l+=t[i],n>=65536&&(l+=t[i+1])):l+=s||Yf(n);return l}function ip(t,l,n){var s="",i=t.tag,p,u,r;for(p=0,u=n.length;p<u;p+=1)r=n[p],t.replacer&&(r=t.replacer.call(n,String(p),r)),(ie(t,l,r,!1,!1)||typeof r>"u"&&ie(t,l,null,!1,!1))&&(s!==""&&(s+=","+(t.condenseFlow?"":" ")),s+=t.dump);t.tag=i,t.dump="["+s+"]"}function Li(t,l,n,s){var i="",p=t.tag,u,r,e;for(u=0,r=n.length;u<r;u+=1)e=n[u],t.replacer&&(e=t.replacer.call(n,String(u),e)),(ie(t,l+1,e,!0,!0,!1,!0)||typeof e>"u"&&ie(t,l+1,null,!0,!0,!1,!0))&&((!s||i!=="")&&(i+=Xr(t,l)),t.dump&&Me===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=p,t.dump=i||"[]"}function sp(t,l,n){var s="",i=t.tag,p=Object.keys(n),u,r,e,f,a;for(u=0,r=p.length;u<r;u+=1)a="",s!==""&&(a+=", "),t.condenseFlow&&(a+='"'),e=p[u],f=n[e],t.replacer&&(f=t.replacer.call(n,e,f)),ie(t,l,e,!1,!1)&&(t.dump.length>1024&&(a+="? "),a+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),ie(t,l,f,!1,!1)&&(a+=t.dump,s+=a));t.tag=i,t.dump="{"+s+"}"}function op(t,l,n,s){var i="",p=t.tag,u=Object.keys(n),r,e,f,a,c,o;if(t.sortKeys===!0)u.sort();else if(typeof t.sortKeys=="function")u.sort(t.sortKeys);else if(t.sortKeys)throw new qt("sortKeys must be a boolean or a function");for(r=0,e=u.length;r<e;r+=1)o="",(!s||i!=="")&&(o+=Xr(t,l)),f=u[r],a=n[f],t.replacer&&(a=t.replacer.call(n,f,a)),ie(t,l+1,f,!0,!0,!0)&&(c=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,c&&(t.dump&&Me===t.dump.charCodeAt(0)?o+="?":o+="? "),o+=t.dump,c&&(o+=Xr(t,l)),ie(t,l+1,a,!0,c)&&(t.dump&&Me===t.dump.charCodeAt(0)?o+=":":o+=": ",o+=t.dump,i+=o));t.tag=p,t.dump=i||"{}"}function Ii(t,l,n){var s,i,p,u,r,e;for(i=n?t.explicitTypes:t.implicitTypes,p=0,u=i.length;p<u;p+=1)if(r=i[p],(r.instanceOf||r.predicate)&&(!r.instanceOf||typeof l=="object"&&l instanceof r.instanceOf)&&(!r.predicate||r.predicate(l))){if(n?r.multi&&r.representName?t.tag=r.representName(l):t.tag=r.tag:t.tag="?",r.represent){if(e=t.styleMap[r.tag]||r.defaultStyle,Es.call(r.represent)==="[object Function]")s=r.represent(l,e);else if(_s.call(r.represent,e))s=r.represent[e](l,e);else throw new qt("!<"+r.tag+'> tag resolver accepts not "'+e+'" style');t.dump=s}return!0}return!1}function ie(t,l,n,s,i,p,u){t.tag=null,t.dump=n,Ii(t,n,!1)||Ii(t,n,!0);var r=Es.call(t.dump),e=s,f;s&&(s=t.flowLevel<0||t.flowLevel>l);var a=r==="[object Object]"||r==="[object Array]",c,o;if(a&&(c=t.duplicates.indexOf(n),o=c!==-1),(t.tag!==null&&t.tag!=="?"||o||t.indent!==2&&l>0)&&(i=!1),o&&t.usedDuplicates[c])t.dump="*ref_"+c;else{if(a&&o&&!t.usedDuplicates[c]&&(t.usedDuplicates[c]=!0),r==="[object Object]")s&&Object.keys(t.dump).length!==0?(op(t,l,t.dump,i),o&&(t.dump="&ref_"+c+t.dump)):(sp(t,l,t.dump),o&&(t.dump="&ref_"+c+" "+t.dump));else if(r==="[object Array]")s&&t.dump.length!==0?(t.noArrayIndent&&!u&&l>0?Li(t,l-1,t.dump,i):Li(t,l,t.dump,i),o&&(t.dump="&ref_"+c+t.dump)):(ip(t,l,t.dump),o&&(t.dump="&ref_"+c+" "+t.dump));else if(r==="[object String]")t.tag!=="?"&&ep(t,t.dump,l,p,e);else{if(r==="[object Undefined]"||t.skipInvalid)return!1;throw new qt("unacceptable kind of an object to dump "+r)}t.tag!==null&&t.tag!=="?"&&(f=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",t.dump=f+" "+t.dump)}return!0}function up(t,l){var n=[],s=[],i,p;for(tn(t,n,s),i=0,p=s.length;i<p;i+=1)l.duplicates.push(n[s[i]]);l.usedDuplicates=new Array(p)}function tn(t,l,n){var s,i,p;if(t!==null&&typeof t=="object")if(i=l.indexOf(t),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(l.push(t),Array.isArray(t))for(i=0,p=t.length;i<p;i+=1)tn(t[i],l,n);else for(s=Object.keys(t),i=0,p=s.length;i<p;i+=1)tn(t[s[i]],l,n)}function ap(t,l){l=l||{};var n=new Jf(l);n.noRefs||up(t,n);var s=t;return n.replacer&&(s=n.replacer.call({"":s},"",s)),ie(n,0,s,!0,!0)?n.dump+`
|
84
|
+
`:""}var lp=ap,cp={dump:lp};function dn(t,l){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+l+" instead, which is now safe by default.")}}var hp=$t,fp=Wi,pp=Ji,dp=es,mp=rs,yp=cn,gp=vs.load,bp=vs.loadAll,vp=cp.dump,Ep=qt,_p={binary:us,float:ts,map:Ki,null:Zi,pairs:ls,set:cs,timestamp:ss,bool:Xi,int:Qi,merge:os,omap:as,seq:Yi,str:Vi},wp=dn("safeLoad","load"),Dp=dn("safeLoadAll","loadAll"),Sp=dn("safeDump","dump"),Ap={Type:hp,Schema:fp,FAILSAFE_SCHEMA:pp,JSON_SCHEMA:dp,CORE_SCHEMA:mp,DEFAULT_SCHEMA:yp,load:gp,loadAll:bp,dump:vp,YAMLException:Ep,types:_p,safeLoad:wp,safeLoadAll:Dp,safeDump:Sp},Cp=Ap,xp=Ot(ih()),Fp="turbo.json";var Kr={};function kp(t){try{if(Ne.default.existsSync(ye.default.join(t,"pnpm-workspace.yaml"))){let l=Cp.load(Ne.default.readFileSync(ye.default.join(t,"pnpm-workspace.yaml"),"utf8"));return(l==null?void 0:l.packages)||[]}else{let l=JSON.parse(Ne.default.readFileSync(ye.default.join(t,"package.json"),"utf8"));return l!=null&&l.workspaces?"packages"in(l==null?void 0:l.workspaces)?l.workspaces.packages||[]:(l==null?void 0:l.workspaces)||[]:[]}}catch{return[]}}function mn(t,l){var n;let s=zr(t,l),i=[],p=(n=l==null?void 0:l.cache)!=null?n:!0;if(p&&t&&Kr[t])return Kr[t];if(s){let u=kp(s).map(r=>`${r}/turbo.json`);(0,xp.sync)([Fp,...u],{cwd:s,onlyFiles:!0,followSymbolicLinks:!1,suppressErrors:!0}).map(r=>ye.default.join(s,r)).forEach(r=>{try{let e=Ne.default.readFileSync(r,"utf8"),f=qr.parse(e),a=ye.default.dirname(r)===s;if(a){if("extends"in f)return}else if(!("extends"in f))return;i.push({config:f,turboConfigPath:r,workspacePath:ye.default.dirname(r),isRootConfig:a})}catch(e){console.warn(e)}})}return p&&t&&(Kr[t]=i),i}var qe=Wt(require("chalk"));var mr=Wt(require("chalk")),yr=require("diff"),Ue=Wt(require("fs-extra")),Rs=Wt(require("os")),yn=Wt(require("path")),Ge=class{constructor(l){this.changes=[];if(this.filePath=l.filePath,this.rootPath=l.rootPath,this.after=l.after,this.error=l.error,l.before===void 0)try{yn.default.extname(l.filePath)===".json"?this.before=Ue.default.readJsonSync(l.filePath):this.before=Ue.default.readFileSync(l.filePath)}catch{this.before=""}else l.before===null?this.before="":this.before=l.before;l.after?typeof this.before=="object"||typeof l.after=="object"?this.changes=(0,yr.diffJson)(this.before,l.after):this.changes=(0,yr.diffLines)(this.before,l.after):this.changes=[]}fileName(){return yn.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?Ue.default.writeJsonSync(this.filePath,this.after,{spaces:2}):Ue.default.writeFileSync(this.filePath,this.after))}additions(){return this.changes.filter(l=>l.added).length}deletions(){return this.changes.filter(l=>l.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(l){l.diff?(this.changes.forEach(n=>{n.added?process.stdout.write(mr.default.green(n.value)):n.removed?process.stdout.write(mr.default.red(n.value)):process.stdout.write(mr.default.dim(n.value))}),console.log(Rs.default.EOL)):console.log(this.after)}};var Zt=Wt(require("chalk")),be=class{constructor(l){this.transform=l.transformer,this.dry=l.dry}modified(...l){console.log(Zt.default.green(" MODIFIED "),...l,this.dry?Zt.default.dim("(dry run)"):"")}unchanged(...l){console.log(Zt.default.gray(" UNCHANGED "),...l,this.dry?Zt.default.dim("(dry run)"):"")}skipped(...l){console.log(Zt.default.yellow(" SKIPPED "),...l,this.dry?Zt.default.dim("(dry run)"):"")}error(...l){console.log(Zt.default.red(" ERROR "),...l,this.dry?Zt.default.dim("(dry run)"):"")}info(...l){console.log(Zt.default.bold(" INFO "),...l,this.dry?Zt.default.dim("(dry run)"):"")}};var gn=class{constructor(l){this.modifications={};this.transform=l.transformer,this.rootPath=l.rootPath,this.dry=l.dry,this.print=l.print,this.logger=new be(l)}abortTransform(l){return this.logger.error(l.reason),{fatalError:new Error(l.reason),changes:l.changes||{}}}modifyFile(l){this.modifications[l.filePath]=new Ge({rootPath:this.rootPath,...l})}finish(){let l={changes:{}};return Object.keys(this.modifications).forEach(s=>{let i=this.modifications[s],p={action:"unchanged",additions:i.additions(),deletions:i.deletions()};if(i.hasChanges()){if(this.dry)p.action="skipped",this.logger.skipped(qe.default.dim(i.fileName()));else try{i.write(),p.action="modified",this.logger.modified(qe.default.bold(i.fileName()))}catch(u){let r="Unknown error";u instanceof Error&&(r=u.message),p.error=new Error(r),p.action="error",this.logger.error(i.fileName(),r)}this.print&&i.log({diff:!0})}else this.logger.unchanged(qe.default.dim(i.fileName()));l.changes[i.fileName()]=p}),Object.keys(l.changes).some(s=>l.changes[s].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:l.changes}):l}static logResults(l){let n=Object.keys(l.changes);if(console.log(),n.length>0){console.log(qe.default.bold("Results:"));let s={};n.forEach(i=>{var u;let p=l.changes[i];s[i]={action:p.action,additions:p.additions,deletions:p.deletions,error:((u=p.error)==null?void 0:u.message)||"None"}}),console.table(s),console.log()}}},bn=gn;function vn({transformer:t,rootPath:l,options:n}){let s={transformer:t,rootPath:l,...n},i=new be(s),p=new bn(s);return{log:i,runner:p}}var Ts="migrate-env-var-dependencies",Op='Migrate environment variable dependencies from "dependsOn" to "env" in `turbo.json`',Rp="1.5.0";function _n(t){let n=["extends"in t?[]:t.globalDependencies,Object.values(t.pipeline).flatMap(s=>{var i;return(i=s.dependsOn)!=null?i:[]})].flat().filter(s=>s==null?void 0:s.startsWith("$"));return{hasKeys:!!n.length,envVars:n}}function Dn({env:t,deps:l}){let n=new Set(t),s=[];return l==null||l.forEach(i=>{i.startsWith("$")?n.add(i.slice(1)):s.push(i)}),n.size?{deps:s,env:Array.from(n)}:{env:t,deps:l}}function Bs(t){let{deps:l,env:n}=Dn({env:t.env,deps:t.dependsOn}),s={...t};return l?s.dependsOn=l:delete s.dependsOn,n&&n.length?s.env=n:delete s.env,s}function Ps(t){if("extends"in t)return t;let{deps:l,env:n}=Dn({env:t.globalEnv,deps:t.globalDependencies}),s={...t};return l&&l.length?s.globalDependencies=l:delete s.globalDependencies,n&&n.length?s.globalEnv=n:delete s.globalEnv,s}function wn(t){let l=Ps(t);return Object.keys(t.pipeline).forEach(n=>{if(t.pipeline,l.pipeline&&t.pipeline[n]){let s=l.pipeline[n];l.pipeline[n]={...s,...Bs(s)}}}),l}function Ls({root:t,options:l}){let{log:n,runner:s}=vn({transformer:Ts,rootPath:t,options:l});n.info('Migrating environment variable dependencies from "globalDependencies" and "dependsOn" to "env" in "turbo.json"...');let i=En.default.join(t,"package.json"),p={};try{p=gr.default.readJSONSync(i)}catch{}if("turbo"in p)return s.abortTransform({reason:'"turbo" key detected in package.json. Run `npx @turbo/codemod transform create-turbo-config` first'});let u=En.default.join(t,"turbo.json");if(!gr.default.existsSync(u))return s.abortTransform({reason:`No turbo.json found at ${t}. Is the path correct?`});let r=gr.default.readJsonSync(u);return _n(r).hasKeys&&(r=wn(r)),s.modifyFile({filePath:u,after:r}),mn(t).forEach(f=>{let{config:a,turboConfigPath:c}=f;_n(a).hasKeys&&s.modifyFile({filePath:c,after:wn(a)})}),s.finish()}var Tp={name:Ts,description:Op,introducedIn:Rp,transformer:Ls},Bp=Tp;0&&(module.exports={hasLegacyEnvVarDependencies,migrateConfig,migrateDependencies,migrateGlobal,migratePipeline,transformer});
|
85
85
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
86
86
|
/*!
|
87
87
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|