@turbo/gen 1.10.17-canary.5 → 1.10.17-canary.7
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 +7 -7
- package/package.json +4 -4
package/dist/cli.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var _v=Object.create;var Zu=Object.defineProperty;var Ev=Object.getOwnPropertyDescriptor;var bv=Object.getOwnPropertyNames;var Dv=Object.getPrototypeOf,wv=Object.prototype.hasOwnProperty;var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Av=(t,e)=>{for(var r in e)Zu(t,r,{get:e[r],enumerable:!0})},xv=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of bv(e))!wv.call(t,i)&&i!==r&&Zu(t,i,{get:()=>e[i],enumerable:!(n=Ev(e,i))||n.enumerable});return t};var X=(t,e,r)=>(r=t!=null?_v(Dv(t)):{},xv(e||!t||!t.__esModule?Zu(r,"default",{value:t,enumerable:!0}):r,t));var gm=b((KM,Kt)=>{function Qu(t){return Kt.exports=Qu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt.exports.__esModule=!0,Kt.exports.default=Kt.exports,Qu(t)}Kt.exports=Qu,Kt.exports.__esModule=!0,Kt.exports.default=Kt.exports});var _m=b((JM,Jt)=>{var Sv=gm().default;function ym(){"use strict";Jt.exports=ym=function(){return t},Jt.exports.__esModule=!0,Jt.exports.default=Jt.exports;var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(O,v,k){O[v]=k.value},i=typeof Symbol=="function"?Symbol:{},s=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function u(O,v,k){return Object.defineProperty(O,v,{value:k,enumerable:!0,configurable:!0,writable:!0}),O[v]}try{u({},"")}catch{u=function(k,A,x){return k[A]=x}}function c(O,v,k,A){var x=v&&v.prototype instanceof h?v:h,j=Object.create(x.prototype),U=new ee(A||[]);return n(j,"_invoke",{value:N(O,k,U)}),j}function l(O,v,k){try{return{type:"normal",arg:O.call(v,k)}}catch(A){return{type:"throw",arg:A}}}t.wrap=c;var f={};function h(){}function p(){}function m(){}var _={};u(_,s,function(){return this});var g=Object.getPrototypeOf,D=g&&g(g(_e([])));D&&D!==e&&r.call(D,s)&&(_=D);var C=m.prototype=h.prototype=Object.create(_);function q(O){["next","throw","return"].forEach(function(v){u(O,v,function(k){return this._invoke(v,k)})})}function $(O,v){function k(x,j,U,V){var ae=l(O[x],O,j);if(ae.type!=="throw"){var re=ae.arg,Ve=re.value;return Ve&&Sv(Ve)=="object"&&r.call(Ve,"__await")?v.resolve(Ve.__await).then(function(Ct){k("next",Ct,U,V)},function(Ct){k("throw",Ct,U,V)}):v.resolve(Ve).then(function(Ct){re.value=Ct,U(re)},function(Ct){return k("throw",Ct,U,V)})}V(ae.arg)}var A;n(this,"_invoke",{value:function(j,U){function V(){return new v(function(ae,re){k(j,U,ae,re)})}return A=A?A.then(V,V):V()}})}function N(O,v,k){var A="suspendedStart";return function(x,j){if(A==="executing")throw new Error("Generator is already running");if(A==="completed"){if(x==="throw")throw j;return R()}for(k.method=x,k.arg=j;;){var U=k.delegate;if(U){var V=K(U,k);if(V){if(V===f)continue;return V}}if(k.method==="next")k.sent=k._sent=k.arg;else if(k.method==="throw"){if(A==="suspendedStart")throw A="completed",k.arg;k.dispatchException(k.arg)}else k.method==="return"&&k.abrupt("return",k.arg);A="executing";var ae=l(O,v,k);if(ae.type==="normal"){if(A=k.done?"completed":"suspendedYield",ae.arg===f)continue;return{value:ae.arg,done:k.done}}ae.type==="throw"&&(A="completed",k.method="throw",k.arg=ae.arg)}}}function K(O,v){var k=v.method,A=O.iterator[k];if(A===void 0)return v.delegate=null,k==="throw"&&O.iterator.return&&(v.method="return",v.arg=void 0,K(O,v),v.method==="throw")||k!=="return"&&(v.method="throw",v.arg=new TypeError("The iterator does not provide a '"+k+"' method")),f;var x=l(A,O.iterator,v.arg);if(x.type==="throw")return v.method="throw",v.arg=x.arg,v.delegate=null,f;var j=x.arg;return j?j.done?(v[O.resultName]=j.value,v.next=O.nextLoc,v.method!=="return"&&(v.method="next",v.arg=void 0),v.delegate=null,f):j:(v.method="throw",v.arg=new TypeError("iterator result is not an object"),v.delegate=null,f)}function z(O){var v={tryLoc:O[0]};1 in O&&(v.catchLoc=O[1]),2 in O&&(v.finallyLoc=O[2],v.afterLoc=O[3]),this.tryEntries.push(v)}function W(O){var v=O.completion||{};v.type="normal",delete v.arg,O.completion=v}function ee(O){this.tryEntries=[{tryLoc:"root"}],O.forEach(z,this),this.reset(!0)}function _e(O){if(O){var v=O[s];if(v)return v.call(O);if(typeof O.next=="function")return O;if(!isNaN(O.length)){var k=-1,A=function x(){for(;++k<O.length;)if(r.call(O,k))return x.value=O[k],x.done=!1,x;return x.value=void 0,x.done=!0,x};return A.next=A}}return{next:R}}function R(){return{value:void 0,done:!0}}return p.prototype=m,n(C,"constructor",{value:m,configurable:!0}),n(m,"constructor",{value:p,configurable:!0}),p.displayName=u(m,a,"GeneratorFunction"),t.isGeneratorFunction=function(O){var v=typeof O=="function"&&O.constructor;return!!v&&(v===p||(v.displayName||v.name)==="GeneratorFunction")},t.mark=function(O){return Object.setPrototypeOf?Object.setPrototypeOf(O,m):(O.__proto__=m,u(O,a,"GeneratorFunction")),O.prototype=Object.create(C),O},t.awrap=function(O){return{__await:O}},q($.prototype),u($.prototype,o,function(){return this}),t.AsyncIterator=$,t.async=function(O,v,k,A,x){x===void 0&&(x=Promise);var j=new $(c(O,v,k,A),x);return t.isGeneratorFunction(v)?j:j.next().then(function(U){return U.done?U.value:j.next()})},q(C),u(C,a,"Generator"),u(C,s,function(){return this}),u(C,"toString",function(){return"[object Generator]"}),t.keys=function(O){var v=Object(O),k=[];for(var A in v)k.push(A);return k.reverse(),function x(){for(;k.length;){var j=k.pop();if(j in v)return x.value=j,x.done=!1,x}return x.done=!0,x}},t.values=_e,ee.prototype={constructor:ee,reset:function(v){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(W),!v)for(var k in this)k.charAt(0)==="t"&&r.call(this,k)&&!isNaN(+k.slice(1))&&(this[k]=void 0)},stop:function(){this.done=!0;var v=this.tryEntries[0].completion;if(v.type==="throw")throw v.arg;return this.rval},dispatchException:function(v){if(this.done)throw v;var k=this;function A(re,Ve){return U.type="throw",U.arg=v,k.next=re,Ve&&(k.method="next",k.arg=void 0),!!Ve}for(var x=this.tryEntries.length-1;x>=0;--x){var j=this.tryEntries[x],U=j.completion;if(j.tryLoc==="root")return A("end");if(j.tryLoc<=this.prev){var V=r.call(j,"catchLoc"),ae=r.call(j,"finallyLoc");if(V&&ae){if(this.prev<j.catchLoc)return A(j.catchLoc,!0);if(this.prev<j.finallyLoc)return A(j.finallyLoc)}else if(V){if(this.prev<j.catchLoc)return A(j.catchLoc,!0)}else{if(!ae)throw new Error("try statement without catch or finally");if(this.prev<j.finallyLoc)return A(j.finallyLoc)}}}},abrupt:function(v,k){for(var A=this.tryEntries.length-1;A>=0;--A){var x=this.tryEntries[A];if(x.tryLoc<=this.prev&&r.call(x,"finallyLoc")&&this.prev<x.finallyLoc){var j=x;break}}j&&(v==="break"||v==="continue")&&j.tryLoc<=k&&k<=j.finallyLoc&&(j=null);var U=j?j.completion:{};return U.type=v,U.arg=k,j?(this.method="next",this.next=j.finallyLoc,f):this.complete(U)},complete:function(v,k){if(v.type==="throw")throw v.arg;return v.type==="break"||v.type==="continue"?this.next=v.arg:v.type==="return"?(this.rval=this.arg=v.arg,this.method="return",this.next="end"):v.type==="normal"&&k&&(this.next=k),f},finish:function(v){for(var k=this.tryEntries.length-1;k>=0;--k){var A=this.tryEntries[k];if(A.finallyLoc===v)return this.complete(A.completion,A.afterLoc),W(A),f}},catch:function(v){for(var k=this.tryEntries.length-1;k>=0;--k){var A=this.tryEntries[k];if(A.tryLoc===v){var x=A.completion;if(x.type==="throw"){var j=x.arg;W(A)}return j}}throw new Error("illegal catch attempt")},delegateYield:function(v,k,A){return this.delegate={iterator:_e(v),resultName:k,nextLoc:A},this.method==="next"&&(this.arg=void 0),f}},t}Jt.exports=ym,Jt.exports.__esModule=!0,Jt.exports.default=Jt.exports});var bm=b((XM,Em)=>{var Ys=_m()();Em.exports=Ys;try{regeneratorRuntime=Ys}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Ys:Function("r","regeneratorRuntime = r")(Ys)}});var wm=b((Eq,oc)=>{"use strict";var Dm=(t,...e)=>new Promise(r=>{r(t(...e))});oc.exports=Dm;oc.exports.default=Dm});var xm=b((bq,ac)=>{"use strict";var Cv=wm(),Am=t=>{if(!((Number.isInteger(t)||t===1/0)&&t>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let e=[],r=0,n=()=>{r--,e.length>0&&e.shift()()},i=(a,u,...c)=>{r++;let l=Cv(a,...c);u(l),l.then(n,n)},s=(a,u,...c)=>{r<t?i(a,u,...c):e.push(i.bind(null,a,u,...c))},o=(a,...u)=>new Promise(c=>s(a,c,...u));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>e.length},clearQueue:{value:()=>{e.length=0}}}),o};ac.exports=Am;ac.exports.default=Am});var vm=b((Dq,uc)=>{"use strict";var Sm=xm(),Ks=class extends Error{constructor(e){super(),this.value=e}},vv=async(t,e)=>e(await t),Rv=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new Ks(e[0]);return!1},Cm=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=Sm(r.concurrency),i=[...t].map(o=>[o,n(vv,o,e)]),s=Sm(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(Rv,o)))}catch(o){if(o instanceof Ks)return o.value;throw o}};uc.exports=Cm;uc.exports.default=Cm});var Pm=b((wq,cc)=>{"use strict";var Rm=require("path"),Js=require("fs"),{promisify:Fm}=require("util"),Fv=vm(),Tv=Fm(Js.stat),Ov=Fm(Js.lstat),Tm={directory:"isDirectory",file:"isFile"};function Om({type:t}){if(!(t in Tm))throw new Error(`Invalid type specified: ${t}`)}var km=(t,e)=>t===void 0||e[Tm[t]]();cc.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},Om(e);let r=e.allowSymlinks?Tv:Ov;return Fv(t,async n=>{try{let i=await r(Rm.resolve(e.cwd,n));return km(e.type,i)}catch{return!1}},e)};cc.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},Om(e);let r=e.allowSymlinks?Js.statSync:Js.lstatSync;for(let n of t)try{let i=r(Rm.resolve(e.cwd,n));if(km(e.type,i))return n}catch{}}});var Im=b((Aq,lc)=>{"use strict";var Bm=require("fs"),{promisify:kv}=require("util"),Pv=kv(Bm.access);lc.exports=async t=>{try{return await Pv(t),!0}catch{return!1}};lc.exports.sync=t=>{try{return Bm.accessSync(t),!0}catch{return!1}}});var Nm=b((xq,Fn)=>{"use strict";var Ar=require("path"),Xs=Pm(),Lm=Im(),fc=Symbol("findUp.stop");Fn.exports=async(t,e={})=>{let r=Ar.resolve(e.cwd||""),{root:n}=Ar.parse(r),i=[].concat(t),s=async o=>{if(typeof t!="function")return Xs(i,o);let a=await t(o.cwd);return typeof a=="string"?Xs([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===fc)return;if(o)return Ar.resolve(r,o);if(r===n)return;r=Ar.dirname(r)}};Fn.exports.sync=(t,e={})=>{let r=Ar.resolve(e.cwd||""),{root:n}=Ar.parse(r),i=[].concat(t),s=o=>{if(typeof t!="function")return Xs.sync(i,o);let a=t(o.cwd);return typeof a=="string"?Xs.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===fc)return;if(o)return Ar.resolve(r,o);if(r===n)return;r=Ar.dirname(r)}};Fn.exports.exists=Lm;Fn.exports.sync.exists=Lm.sync;Fn.exports.stop=fc});var W0=b(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.splitWhen=Bn.flatten=void 0;function _F(t){return t.reduce((e,r)=>[].concat(e,r),[])}Bn.flatten=_F;function EF(t,e){let r=[[]],n=0;for(let i of t)e(i)?(n++,r[n]=[]):r[n].push(i);return r}Bn.splitWhen=EF});var z0=b(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.isEnoentCodeError=void 0;function bF(t){return t.code==="ENOENT"}lo.isEnoentCodeError=bF});var V0=b(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.createDirentFromStats=void 0;var Ic=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function DF(t,e){return new Ic(t,e)}fo.createDirentFromStats=DF});var Y0=b(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.removeLeadingDotSegment=Bt.escape=Bt.makeAbsolute=Bt.unixify=void 0;var wF=require("path"),AF=2,xF=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function SF(t){return t.replace(/\\/g,"/")}Bt.unixify=SF;function CF(t,e){return wF.resolve(t,e)}Bt.makeAbsolute=CF;function vF(t){return t.replace(xF,"\\$2")}Bt.escape=vF;function RF(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(AF)}return t}Bt.removeLeadingDotSegment=RF});var J0=b((Gq,K0)=>{K0.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var Q0=b((Wq,Z0)=>{var FF=J0(),X0={"{":"}","(":")","[":"]"},TF=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,i=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(o===-1||o>n||(o=t.indexOf("\\",e),o===-1||o>n)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var u=X0[a];if(u){var c=t.indexOf(u,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},OF=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var n=X0[r];if(n){var i=t.indexOf(n,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};Z0.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(FF(e))return!0;var n=TF;return r&&r.strict===!1&&(n=OF),n(e)}});var tg=b((zq,eg)=>{"use strict";var kF=Q0(),PF=require("path").posix.dirname,BF=require("os").platform()==="win32",Lc="/",IF=/\\/g,LF=/[\{\[].*[\}\]]$/,NF=/(^|[^\\])([\{\[]|\([^\)]+$)/,MF=/\\([\!\*\?\|\[\]\(\)\{\}])/g;eg.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&BF&&e.indexOf(Lc)<0&&(e=e.replace(IF,Lc)),LF.test(e)&&(e+=Lc),e+="a";do e=PF(e);while(kF(e)||NF.test(e));return e.replace(MF,"$1")}});var ho=b(ht=>{"use strict";ht.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;ht.find=(t,e)=>t.nodes.find(r=>r.type===e);ht.exceedsLimit=(t,e,r=1,n)=>n===!1||!ht.isInteger(t)||!ht.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;ht.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};ht.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);ht.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;ht.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;ht.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);ht.flatten=(...t)=>{let e=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var po=b((Yq,ng)=>{"use strict";var rg=ho();ng.exports=(t,e={})=>{let r=(n,i={})=>{let s=e.escapeInvalid&&rg.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a="";if(n.value)return(s||o)&&rg.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(t)}});var sg=b((Kq,ig)=>{"use strict";ig.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var pg=b((Jq,dg)=>{"use strict";var og=sg(),nn=(t,e,r)=>{if(og(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(og(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),u=t+":"+e+"="+i+s+o+a;if(nn.cache.hasOwnProperty(u))return nn.cache[u].result;let c=Math.min(t,e),l=Math.max(t,e);if(Math.abs(c-l)===1){let _=t+"|"+e;return n.capture?`(${_})`:n.wrap===!1?_:`(?:${_})`}let f=hg(t)||hg(e),h={min:t,max:e,a:c,b:l},p=[],m=[];if(f&&(h.isPadded=f,h.maxLen=String(h.max).length),c<0){let _=l<0?Math.abs(l):1;m=ag(_,Math.abs(c),h,n),c=h.a=0}return l>=0&&(p=ag(c,l,h,n)),h.negatives=m,h.positives=p,h.result=qF(m,p,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&p.length+m.length>1&&(h.result=`(?:${h.result})`),nn.cache[u]=h,h.result};function qF(t,e,r){let n=Nc(t,e,"-",!1,r)||[],i=Nc(e,t,"",!1,r)||[],s=Nc(t,e,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function HF(t,e){let r=1,n=1,i=cg(t,r),s=new Set([e]);for(;t<=i&&i<=e;)s.add(i),r+=1,i=cg(t,r);for(i=lg(e+1,n)-1;t<i&&i<=e;)s.add(i),n+=1,i=lg(e+1,n)-1;return s=[...s],s.sort(UF),s}function jF(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=$F(t,e),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[u,c]=n[a];u===c?s+=u:u!=="0"||c!=="9"?s+=GF(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function ag(t,e,r,n){let i=HF(t,e),s=[],o=t,a;for(let u=0;u<i.length;u++){let c=i[u],l=jF(String(o),String(c),n),f="";if(!r.isPadded&&a&&a.pattern===l.pattern){a.count.length>1&&a.count.pop(),a.count.push(l.count[0]),a.string=a.pattern+fg(a.count),o=c+1;continue}r.isPadded&&(f=WF(c,r,n)),l.string=f+l.pattern+fg(l.count),s.push(l),o=c+1,a=l}return s}function Nc(t,e,r,n,i){let s=[];for(let o of t){let{string:a}=o;!n&&!ug(e,"string",a)&&s.push(r+a),n&&ug(e,"string",a)&&s.push(r+a)}return s}function $F(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function UF(t,e){return t>e?1:e>t?-1:0}function ug(t,e,r){return t.some(n=>n[e]===r)}function cg(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function lg(t,e){return t-t%Math.pow(10,e)}function fg(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function GF(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function hg(t){return/^-?(0+)\d/.test(t)}function WF(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}nn.cache={};nn.clearCache=()=>nn.cache={};dg.exports=nn});var Hc=b((Xq,wg)=>{"use strict";var zF=require("util"),yg=pg(),mg=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),VF=t=>e=>t===!0?Number(e):String(e),Mc=t=>typeof t=="number"||typeof t=="string"&&t!=="",Xi=t=>Number.isInteger(+t),qc=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},YF=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,KF=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},gg=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},JF=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",n="",i="",s;return t.positives.length&&(n=t.positives.join("|")),t.negatives.length&&(i=`-(${r}${t.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,e.wrap?`(${r}${s})`:s},_g=(t,e,r,n)=>{if(r)return yg(t,e,{wrap:!1,...n});let i=String.fromCharCode(t);if(t===e)return i;let s=String.fromCharCode(e);return`[${i}-${s}]`},Eg=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${t.join("|")})`:t.join("|")}return yg(t,e,r)},bg=(...t)=>new RangeError("Invalid range arguments: "+zF.inspect(...t)),Dg=(t,e,r)=>{if(r.strictRanges===!0)throw bg([t,e]);return[]},XF=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},ZF=(t,e,r=1,n={})=>{let i=Number(t),s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw bg([t,e]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(t),u=String(e),c=String(r);r=Math.max(Math.abs(r),1);let l=qc(a)||qc(u)||qc(c),f=l?Math.max(a.length,u.length,c.length):0,h=l===!1&&YF(t,e,n)===!1,p=n.transform||VF(h);if(n.toRegex&&r===1)return _g(gg(t,f),gg(e,f),!0,n);let m={negatives:[],positives:[]},_=C=>m[C<0?"negatives":"positives"].push(Math.abs(C)),g=[],D=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?_(i):g.push(KF(p(i,D),f,h)),i=o?i-r:i+r,D++;return n.toRegex===!0?r>1?JF(m,n):Eg(g,null,{wrap:!1,...n}):g},QF=(t,e,r=1,n={})=>{if(!Xi(t)&&t.length>1||!Xi(e)&&e.length>1)return Dg(t,e,n);let i=n.transform||(h=>String.fromCharCode(h)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,u=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return _g(u,c,!1,n);let l=[],f=0;for(;a?s>=o:s<=o;)l.push(i(s,f)),s=a?s-r:s+r,f++;return n.toRegex===!0?Eg(l,null,{wrap:!1,options:n}):l},mo=(t,e,r,n={})=>{if(e==null&&Mc(t))return[t];if(!Mc(t)||!Mc(e))return Dg(t,e,n);if(typeof r=="function")return mo(t,e,1,{transform:r});if(mg(r))return mo(t,e,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Xi(r)?Xi(t)&&Xi(e)?ZF(t,e,r,i):QF(t,e,Math.max(Math.abs(r),1),i):r!=null&&!mg(r)?XF(r,i):mo(t,e,1,r)};wg.exports=mo});var Sg=b((Zq,xg)=>{"use strict";var eT=Hc(),Ag=ho(),tT=(t,e={})=>{let r=(n,i={})=>{let s=Ag.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,u=e.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0||n.isClose===!0)return u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=Ag.reduce(n.nodes),f=eT(...l,{...e,wrap:!1,toRegex:!0});if(f.length!==0)return l.length>1&&f.length>1?`(${f})`:f}if(n.nodes)for(let l of n.nodes)c+=r(l,n);return c};return r(t)};xg.exports=tT});var Rg=b((Qq,vg)=>{"use strict";var rT=Hc(),Cg=po(),In=ho(),sn=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?In.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let s of i)n.push(sn(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?sn(i,s,r):i+s);return In.flatten(n)},nT=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(sn(a.pop(),Cg(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(sn(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let f=In.reduce(i.nodes);if(In.exceedsLimit(...f,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=rT(...f,e);h.length===0&&(h=Cg(i,e)),a.push(sn(a.pop(),h)),i.nodes=[];return}let u=In.encloseBrace(i),c=i.queue,l=i;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let f=0;f<i.nodes.length;f++){let h=i.nodes[f];if(h.type==="comma"&&i.type==="brace"){f===1&&c.push(""),c.push("");continue}if(h.type==="close"){a.push(sn(a.pop(),c,u));continue}if(h.value&&h.type!=="open"){c.push(sn(c.pop(),h.value));continue}h.nodes&&n(h,i)}return c};return In.flatten(n(t))};vg.exports=nT});var Tg=b((e5,Fg)=>{"use strict";Fg.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:`
|
|
3
|
-
`,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"}});var Ig=b((t5,Bg)=>{"use strict";var iT=po(),{MAX_LENGTH:Og,CHAR_BACKSLASH:jc,CHAR_BACKTICK:sT,CHAR_COMMA:oT,CHAR_DOT:aT,CHAR_LEFT_PARENTHESES:uT,CHAR_RIGHT_PARENTHESES:cT,CHAR_LEFT_CURLY_BRACE:lT,CHAR_RIGHT_CURLY_BRACE:fT,CHAR_LEFT_SQUARE_BRACKET:kg,CHAR_RIGHT_SQUARE_BRACKET:Pg,CHAR_DOUBLE_QUOTE:hT,CHAR_SINGLE_QUOTE:dT,CHAR_NO_BREAK_SPACE:pT,CHAR_ZERO_WIDTH_NOBREAK_SPACE:mT}=Tg(),gT=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(Og,r.maxLength):Og;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let i={type:"root",input:t,nodes:[]},s=[i],o=i,a=i,u=0,c=t.length,l=0,f=0,h,p={},m=()=>t[l++],_=g=>{if(g.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&g.type==="text"){a.value+=g.value;return}return o.nodes.push(g),g.parent=o,g.prev=a,a=g,g};for(_({type:"bos"});l<c;)if(o=s[s.length-1],h=m(),!(h===mT||h===pT)){if(h===jc){_({type:"text",value:(e.keepEscaping?h:"")+m()});continue}if(h===Pg){_({type:"text",value:"\\"+h});continue}if(h===kg){u++;let g=!0,D;for(;l<c&&(D=m());){if(h+=D,D===kg){u++;continue}if(D===jc){h+=m();continue}if(D===Pg&&(u--,u===0))break}_({type:"text",value:h});continue}if(h===uT){o=_({type:"paren",nodes:[]}),s.push(o),_({type:"text",value:h});continue}if(h===cT){if(o.type!=="paren"){_({type:"text",value:h});continue}o=s.pop(),_({type:"text",value:h}),o=s[s.length-1];continue}if(h===hT||h===dT||h===sT){let g=h,D;for(e.keepQuotes!==!0&&(h="");l<c&&(D=m());){if(D===jc){h+=D+m();continue}if(D===g){e.keepQuotes===!0&&(h+=D);break}h+=D}_({type:"text",value:h});continue}if(h===lT){f++;let D={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};o=_(D),s.push(o),_({type:"open",value:h});continue}if(h===fT){if(o.type!=="brace"){_({type:"text",value:h});continue}let g="close";o=s.pop(),o.close=!0,_({type:g,value:h}),f--,o=s[s.length-1];continue}if(h===oT&&f>0){if(o.ranges>0){o.ranges=0;let g=o.nodes.shift();o.nodes=[g,{type:"text",value:iT(o)}]}_({type:"comma",value:h}),o.commas++;continue}if(h===aT&&f>0&&o.commas===0){let g=o.nodes;if(f===0||g.length===0){_({type:"text",value:h});continue}if(a.type==="dot"){if(o.range=[],a.value+=h,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){g.pop();let D=g[g.length-1];D.value+=a.value+h,a=D,o.ranges--;continue}_({type:"dot",value:h});continue}_({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(C=>{C.nodes||(C.type==="open"&&(C.isOpen=!0),C.type==="close"&&(C.isClose=!0),C.nodes||(C.type="text"),C.invalid=!0)});let g=s[s.length-1],D=g.nodes.indexOf(o);g.nodes.splice(D,1,...o.nodes)}while(s.length>0);return _({type:"eos"}),i};Bg.exports=gT});var Mg=b((r5,Ng)=>{"use strict";var Lg=po(),yT=Sg(),_T=Rg(),ET=Ig(),st=(t,e={})=>{let r=[];if(Array.isArray(t))for(let n of t){let i=st.create(n,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(st.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};st.parse=(t,e={})=>ET(t,e);st.stringify=(t,e={})=>Lg(typeof t=="string"?st.parse(t,e):t,e);st.compile=(t,e={})=>(typeof t=="string"&&(t=st.parse(t,e)),yT(t,e));st.expand=(t,e={})=>{typeof t=="string"&&(t=st.parse(t,e));let r=_T(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};st.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?st.compile(t,e):st.expand(t,e);Ng.exports=st});var Zi=b((n5,Ug)=>{"use strict";var bT=require("path"),It="\\\\/",qg=`[^${It}]`,rr="\\.",DT="\\+",wT="\\?",go="\\/",AT="(?=.)",Hg="[^/]",$c=`(?:${go}|$)`,jg=`(?:^|${go})`,Uc=`${rr}{1,2}${$c}`,xT=`(?!${rr})`,ST=`(?!${jg}${Uc})`,CT=`(?!${rr}{0,1}${$c})`,vT=`(?!${Uc})`,RT=`[^.${go}]`,FT=`${Hg}*?`,$g={DOT_LITERAL:rr,PLUS_LITERAL:DT,QMARK_LITERAL:wT,SLASH_LITERAL:go,ONE_CHAR:AT,QMARK:Hg,END_ANCHOR:$c,DOTS_SLASH:Uc,NO_DOT:xT,NO_DOTS:ST,NO_DOT_SLASH:CT,NO_DOTS_SLASH:vT,QMARK_NO_DOT:RT,STAR:FT,START_ANCHOR:jg},TT={...$g,SLASH_LITERAL:`[${It}]`,QMARK:qg,STAR:`${qg}*?`,DOTS_SLASH:`${rr}{1,2}(?:[${It}]|$)`,NO_DOT:`(?!${rr})`,NO_DOTS:`(?!(?:^|[${It}])${rr}{1,2}(?:[${It}]|$))`,NO_DOT_SLASH:`(?!${rr}{0,1}(?:[${It}]|$))`,NO_DOTS_SLASH:`(?!${rr}{1,2}(?:[${It}]|$))`,QMARK_NO_DOT:`[^.${It}]`,START_ANCHOR:`(?:^|[${It}])`,END_ANCHOR:`(?:[${It}]|$)`},OT={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"};Ug.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:OT,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:bT.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?TT:$g}}});var Qi=b(Ze=>{"use strict";var kT=require("path"),PT=process.platform==="win32",{REGEX_BACKSLASH:BT,REGEX_REMOVE_BACKSLASH:IT,REGEX_SPECIAL_CHARS:LT,REGEX_SPECIAL_CHARS_GLOBAL:NT}=Zi();Ze.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Ze.hasRegexChars=t=>LT.test(t);Ze.isRegexChar=t=>t.length===1&&Ze.hasRegexChars(t);Ze.escapeRegex=t=>t.replace(NT,"\\$1");Ze.toPosixSlashes=t=>t.replace(BT,"/");Ze.removeBackslashes=t=>t.replace(IT,e=>e==="\\"?"":e);Ze.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Ze.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:PT===!0||kT.sep==="\\";Ze.escapeLast=(t,e,r)=>{let n=t.lastIndexOf(e,r);return n===-1?t:t[n-1]==="\\"?Ze.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`};Ze.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Ze.wrapOutput=(t,e={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${t})${i}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Xg=b((s5,Jg)=>{"use strict";var Gg=Qi(),{CHAR_ASTERISK:Gc,CHAR_AT:MT,CHAR_BACKWARD_SLASH:es,CHAR_COMMA:qT,CHAR_DOT:Wc,CHAR_EXCLAMATION_MARK:zc,CHAR_FORWARD_SLASH:Kg,CHAR_LEFT_CURLY_BRACE:Vc,CHAR_LEFT_PARENTHESES:Yc,CHAR_LEFT_SQUARE_BRACKET:HT,CHAR_PLUS:jT,CHAR_QUESTION_MARK:Wg,CHAR_RIGHT_CURLY_BRACE:$T,CHAR_RIGHT_PARENTHESES:zg,CHAR_RIGHT_SQUARE_BRACKET:UT}=Zi(),Vg=t=>t===Kg||t===es,Yg=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},GT=(t,e)=>{let r=e||{},n=t.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=t,c=-1,l=0,f=0,h=!1,p=!1,m=!1,_=!1,g=!1,D=!1,C=!1,q=!1,$=!1,N=!1,K=0,z,W,ee={value:"",depth:0,isGlob:!1},_e=()=>c>=n,R=()=>u.charCodeAt(c+1),O=()=>(z=W,u.charCodeAt(++c));for(;c<n;){W=O();let j;if(W===es){C=ee.backslashes=!0,W=O(),W===Vc&&(D=!0);continue}if(D===!0||W===Vc){for(K++;_e()!==!0&&(W=O());){if(W===es){C=ee.backslashes=!0,O();continue}if(W===Vc){K++;continue}if(D!==!0&&W===Wc&&(W=O())===Wc){if(h=ee.isBrace=!0,m=ee.isGlob=!0,N=!0,i===!0)continue;break}if(D!==!0&&W===qT){if(h=ee.isBrace=!0,m=ee.isGlob=!0,N=!0,i===!0)continue;break}if(W===$T&&(K--,K===0)){D=!1,h=ee.isBrace=!0,N=!0;break}}if(i===!0)continue;break}if(W===Kg){if(s.push(c),o.push(ee),ee={value:"",depth:0,isGlob:!1},N===!0)continue;if(z===Wc&&c===l+1){l+=2;continue}f=c+1;continue}if(r.noext!==!0&&(W===jT||W===MT||W===Gc||W===Wg||W===zc)===!0&&R()===Yc){if(m=ee.isGlob=!0,_=ee.isExtglob=!0,N=!0,W===zc&&c===l&&($=!0),i===!0){for(;_e()!==!0&&(W=O());){if(W===es){C=ee.backslashes=!0,W=O();continue}if(W===zg){m=ee.isGlob=!0,N=!0;break}}continue}break}if(W===Gc){if(z===Gc&&(g=ee.isGlobstar=!0),m=ee.isGlob=!0,N=!0,i===!0)continue;break}if(W===Wg){if(m=ee.isGlob=!0,N=!0,i===!0)continue;break}if(W===HT){for(;_e()!==!0&&(j=O());){if(j===es){C=ee.backslashes=!0,O();continue}if(j===UT){p=ee.isBracket=!0,m=ee.isGlob=!0,N=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&W===zc&&c===l){q=ee.negated=!0,l++;continue}if(r.noparen!==!0&&W===Yc){if(m=ee.isGlob=!0,i===!0){for(;_e()!==!0&&(W=O());){if(W===Yc){C=ee.backslashes=!0,W=O();continue}if(W===zg){N=!0;break}}continue}break}if(m===!0){if(N=!0,i===!0)continue;break}}r.noext===!0&&(_=!1,m=!1);let v=u,k="",A="";l>0&&(k=u.slice(0,l),u=u.slice(l),f-=l),v&&m===!0&&f>0?(v=u.slice(0,f),A=u.slice(f)):m===!0?(v="",A=u):v=u,v&&v!==""&&v!=="/"&&v!==u&&Vg(v.charCodeAt(v.length-1))&&(v=v.slice(0,-1)),r.unescape===!0&&(A&&(A=Gg.removeBackslashes(A)),v&&C===!0&&(v=Gg.removeBackslashes(v)));let x={prefix:k,input:t,start:l,base:v,glob:A,isBrace:h,isBracket:p,isGlob:m,isExtglob:_,isGlobstar:g,negated:q,negatedExtglob:$};if(r.tokens===!0&&(x.maxDepth=0,Vg(W)||o.push(ee),x.tokens=o),r.parts===!0||r.tokens===!0){let j;for(let U=0;U<s.length;U++){let V=j?j+1:l,ae=s[U],re=t.slice(V,ae);r.tokens&&(U===0&&l!==0?(o[U].isPrefix=!0,o[U].value=k):o[U].value=re,Yg(o[U]),x.maxDepth+=o[U].depth),(U!==0||re!=="")&&a.push(re),j=ae}if(j&&j+1<t.length){let U=t.slice(j+1);a.push(U),r.tokens&&(o[o.length-1].value=U,Yg(o[o.length-1]),x.maxDepth+=o[o.length-1].depth)}x.slashes=s,x.parts=a}return x};Jg.exports=GT});var ey=b((o5,Qg)=>{"use strict";var yo=Zi(),ot=Qi(),{MAX_LENGTH:_o,POSIX_REGEX_SOURCE:WT,REGEX_NON_SPECIAL_CHARS:zT,REGEX_SPECIAL_CHARS_BACKREF:VT,REPLACEMENTS:Zg}=yo,YT=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(i=>ot.escapeRegex(i)).join("..")}return r},Ln=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Kc=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Zg[t]||t;let r={...e},n=typeof r.maxLength=="number"?Math.min(_o,r.maxLength):_o,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=ot.isWindows(e),c=yo.globChars(u),l=yo.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:h,SLASH_LITERAL:p,ONE_CHAR:m,DOTS_SLASH:_,NO_DOT:g,NO_DOT_SLASH:D,NO_DOTS_SLASH:C,QMARK:q,QMARK_NO_DOT:$,STAR:N,START_ANCHOR:K}=c,z=I=>`(${a}(?:(?!${K}${I.dot?_:f}).)*?)`,W=r.dot?"":g,ee=r.dot?q:$,_e=r.bash===!0?z(r):N;r.capture&&(_e=`(${_e})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let R={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=ot.removePrefix(t,R),i=t.length;let O=[],v=[],k=[],A=s,x,j=()=>R.index===i-1,U=R.peek=(I=1)=>t[R.index+I],V=R.advance=()=>t[++R.index]||"",ae=()=>t.slice(R.index+1),re=(I="",ce=0)=>{R.consumed+=I,R.index+=ce},Ve=I=>{R.output+=I.output!=null?I.output:I.value,re(I.value)},Ct=()=>{let I=1;for(;U()==="!"&&(U(2)!=="("||U(3)==="?");)V(),R.start++,I++;return I%2===0?!1:(R.negated=!0,R.start++,!0)},Ne=I=>{R[I]++,k.push(I)},nt=I=>{R[I]--,k.pop()},Q=I=>{if(A.type==="globstar"){let ce=R.braces>0&&(I.type==="comma"||I.type==="brace"),B=I.extglob===!0||O.length&&(I.type==="pipe"||I.type==="paren");I.type!=="slash"&&I.type!=="paren"&&!ce&&!B&&(R.output=R.output.slice(0,-A.output.length),A.type="star",A.value="*",A.output=_e,R.output+=A.output)}if(O.length&&I.type!=="paren"&&(O[O.length-1].inner+=I.value),(I.value||I.output)&&Ve(I),A&&A.type==="text"&&I.type==="text"){A.value+=I.value,A.output=(A.output||"")+I.value;return}I.prev=A,o.push(I),A=I},Xr=(I,ce)=>{let B={...l[ce],conditions:1,inner:""};B.prev=A,B.parens=R.parens,B.output=R.output;let d=(r.capture?"(":"")+B.open;Ne("parens"),Q({type:I,value:ce,output:R.output?"":m}),Q({type:"paren",extglob:!0,value:V(),output:d}),O.push(B)},it=I=>{let ce=I.close+(r.capture?")":""),B;if(I.type==="negate"){let d=_e;if(I.inner&&I.inner.length>1&&I.inner.includes("/")&&(d=z(r)),(d!==_e||j()||/^\)+$/.test(ae()))&&(ce=I.close=`)$))${d}`),I.inner.includes("*")&&(B=ae())&&/^\.[^\\/.]+$/.test(B)){let w=Kc(B,{...e,fastpaths:!1}).output;ce=I.close=`)${w})${d})`}I.prev.type==="bos"&&(R.negatedExtglob=!0)}Q({type:"paren",extglob:!0,value:x,output:ce}),nt("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let I=!1,ce=t.replace(VT,(B,d,w,y,T,H)=>y==="\\"?(I=!0,B):y==="?"?d?d+y+(T?q.repeat(T.length):""):H===0?ee+(T?q.repeat(T.length):""):q.repeat(w.length):y==="."?f.repeat(w.length):y==="*"?d?d+y+(T?_e:""):_e:d?B:`\\${B}`);return I===!0&&(r.unescape===!0?ce=ce.replace(/\\/g,""):ce=ce.replace(/\\+/g,B=>B.length%2===0?"\\\\":B?"\\":"")),ce===t&&r.contains===!0?(R.output=t,R):(R.output=ot.wrapOutput(ce,R,e),R)}for(;!j();){if(x=V(),x==="\0")continue;if(x==="\\"){let B=U();if(B==="/"&&r.bash!==!0||B==="."||B===";")continue;if(!B){x+="\\",Q({type:"text",value:x});continue}let d=/^\\+/.exec(ae()),w=0;if(d&&d[0].length>2&&(w=d[0].length,R.index+=w,w%2!==0&&(x+="\\")),r.unescape===!0?x=V():x+=V(),R.brackets===0){Q({type:"text",value:x});continue}}if(R.brackets>0&&(x!=="]"||A.value==="["||A.value==="[^")){if(r.posix!==!1&&x===":"){let B=A.value.slice(1);if(B.includes("[")&&(A.posix=!0,B.includes(":"))){let d=A.value.lastIndexOf("["),w=A.value.slice(0,d),y=A.value.slice(d+2),T=WT[y];if(T){A.value=w+T,R.backtrack=!0,V(),!s.output&&o.indexOf(A)===1&&(s.output=m);continue}}}(x==="["&&U()!==":"||x==="-"&&U()==="]")&&(x=`\\${x}`),x==="]"&&(A.value==="["||A.value==="[^")&&(x=`\\${x}`),r.posix===!0&&x==="!"&&A.value==="["&&(x="^"),A.value+=x,Ve({value:x});continue}if(R.quotes===1&&x!=='"'){x=ot.escapeRegex(x),A.value+=x,Ve({value:x});continue}if(x==='"'){R.quotes=R.quotes===1?0:1,r.keepQuotes===!0&&Q({type:"text",value:x});continue}if(x==="("){Ne("parens"),Q({type:"paren",value:x});continue}if(x===")"){if(R.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Ln("opening","("));let B=O[O.length-1];if(B&&R.parens===B.parens+1){it(O.pop());continue}Q({type:"paren",value:x,output:R.parens?")":"\\)"}),nt("parens");continue}if(x==="["){if(r.nobracket===!0||!ae().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Ln("closing","]"));x=`\\${x}`}else Ne("brackets");Q({type:"bracket",value:x});continue}if(x==="]"){if(r.nobracket===!0||A&&A.type==="bracket"&&A.value.length===1){Q({type:"text",value:x,output:`\\${x}`});continue}if(R.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Ln("opening","["));Q({type:"text",value:x,output:`\\${x}`});continue}nt("brackets");let B=A.value.slice(1);if(A.posix!==!0&&B[0]==="^"&&!B.includes("/")&&(x=`/${x}`),A.value+=x,Ve({value:x}),r.literalBrackets===!1||ot.hasRegexChars(B))continue;let d=ot.escapeRegex(A.value);if(R.output=R.output.slice(0,-A.value.length),r.literalBrackets===!0){R.output+=d,A.value=d;continue}A.value=`(${a}${d}|${A.value})`,R.output+=A.value;continue}if(x==="{"&&r.nobrace!==!0){Ne("braces");let B={type:"brace",value:x,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};v.push(B),Q(B);continue}if(x==="}"){let B=v[v.length-1];if(r.nobrace===!0||!B){Q({type:"text",value:x,output:x});continue}let d=")";if(B.dots===!0){let w=o.slice(),y=[];for(let T=w.length-1;T>=0&&(o.pop(),w[T].type!=="brace");T--)w[T].type!=="dots"&&y.unshift(w[T].value);d=YT(y,r),R.backtrack=!0}if(B.comma!==!0&&B.dots!==!0){let w=R.output.slice(0,B.outputIndex),y=R.tokens.slice(B.tokensIndex);B.value=B.output="\\{",x=d="\\}",R.output=w;for(let T of y)R.output+=T.output||T.value}Q({type:"brace",value:x,output:d}),nt("braces"),v.pop();continue}if(x==="|"){O.length>0&&O[O.length-1].conditions++,Q({type:"text",value:x});continue}if(x===","){let B=x,d=v[v.length-1];d&&k[k.length-1]==="braces"&&(d.comma=!0,B="|"),Q({type:"comma",value:x,output:B});continue}if(x==="/"){if(A.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",o.pop(),A=s;continue}Q({type:"slash",value:x,output:p});continue}if(x==="."){if(R.braces>0&&A.type==="dot"){A.value==="."&&(A.output=f);let B=v[v.length-1];A.type="dots",A.output+=x,A.value+=x,B.dots=!0;continue}if(R.braces+R.parens===0&&A.type!=="bos"&&A.type!=="slash"){Q({type:"text",value:x,output:f});continue}Q({type:"dot",value:x,output:f});continue}if(x==="?"){if(!(A&&A.value==="(")&&r.noextglob!==!0&&U()==="("&&U(2)!=="?"){Xr("qmark",x);continue}if(A&&A.type==="paren"){let d=U(),w=x;if(d==="<"&&!ot.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(A.value==="("&&!/[!=<:]/.test(d)||d==="<"&&!/<([!=]|\w+>)/.test(ae()))&&(w=`\\${x}`),Q({type:"text",value:x,output:w});continue}if(r.dot!==!0&&(A.type==="slash"||A.type==="bos")){Q({type:"qmark",value:x,output:$});continue}Q({type:"qmark",value:x,output:q});continue}if(x==="!"){if(r.noextglob!==!0&&U()==="("&&(U(2)!=="?"||!/[!=<:]/.test(U(3)))){Xr("negate",x);continue}if(r.nonegate!==!0&&R.index===0){Ct();continue}}if(x==="+"){if(r.noextglob!==!0&&U()==="("&&U(2)!=="?"){Xr("plus",x);continue}if(A&&A.value==="("||r.regex===!1){Q({type:"plus",value:x,output:h});continue}if(A&&(A.type==="bracket"||A.type==="paren"||A.type==="brace")||R.parens>0){Q({type:"plus",value:x});continue}Q({type:"plus",value:h});continue}if(x==="@"){if(r.noextglob!==!0&&U()==="("&&U(2)!=="?"){Q({type:"at",extglob:!0,value:x,output:""});continue}Q({type:"text",value:x});continue}if(x!=="*"){(x==="$"||x==="^")&&(x=`\\${x}`);let B=zT.exec(ae());B&&(x+=B[0],R.index+=B[0].length),Q({type:"text",value:x});continue}if(A&&(A.type==="globstar"||A.star===!0)){A.type="star",A.star=!0,A.value+=x,A.output=_e,R.backtrack=!0,R.globstar=!0,re(x);continue}let I=ae();if(r.noextglob!==!0&&/^\([^?]/.test(I)){Xr("star",x);continue}if(A.type==="star"){if(r.noglobstar===!0){re(x);continue}let B=A.prev,d=B.prev,w=B.type==="slash"||B.type==="bos",y=d&&(d.type==="star"||d.type==="globstar");if(r.bash===!0&&(!w||I[0]&&I[0]!=="/")){Q({type:"star",value:x,output:""});continue}let T=R.braces>0&&(B.type==="comma"||B.type==="brace"),H=O.length&&(B.type==="pipe"||B.type==="paren");if(!w&&B.type!=="paren"&&!T&&!H){Q({type:"star",value:x,output:""});continue}for(;I.slice(0,3)==="/**";){let M=t[R.index+4];if(M&&M!=="/")break;I=I.slice(3),re("/**",3)}if(B.type==="bos"&&j()){A.type="globstar",A.value+=x,A.output=z(r),R.output=A.output,R.globstar=!0,re(x);continue}if(B.type==="slash"&&B.prev.type!=="bos"&&!y&&j()){R.output=R.output.slice(0,-(B.output+A.output).length),B.output=`(?:${B.output}`,A.type="globstar",A.output=z(r)+(r.strictSlashes?")":"|$)"),A.value+=x,R.globstar=!0,R.output+=B.output+A.output,re(x);continue}if(B.type==="slash"&&B.prev.type!=="bos"&&I[0]==="/"){let M=I[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(B.output+A.output).length),B.output=`(?:${B.output}`,A.type="globstar",A.output=`${z(r)}${p}|${p}${M})`,A.value+=x,R.output+=B.output+A.output,R.globstar=!0,re(x+V()),Q({type:"slash",value:"/",output:""});continue}if(B.type==="bos"&&I[0]==="/"){A.type="globstar",A.value+=x,A.output=`(?:^|${p}|${z(r)}${p})`,R.output=A.output,R.globstar=!0,re(x+V()),Q({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-A.output.length),A.type="globstar",A.output=z(r),A.value+=x,R.output+=A.output,R.globstar=!0,re(x);continue}let ce={type:"star",value:x,output:_e};if(r.bash===!0){ce.output=".*?",(A.type==="bos"||A.type==="slash")&&(ce.output=W+ce.output),Q(ce);continue}if(A&&(A.type==="bracket"||A.type==="paren")&&r.regex===!0){ce.output=x,Q(ce);continue}(R.index===R.start||A.type==="slash"||A.type==="dot")&&(A.type==="dot"?(R.output+=D,A.output+=D):r.dot===!0?(R.output+=C,A.output+=C):(R.output+=W,A.output+=W),U()!=="*"&&(R.output+=m,A.output+=m)),Q(ce)}for(;R.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ln("closing","]"));R.output=ot.escapeLast(R.output,"["),nt("brackets")}for(;R.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ln("closing",")"));R.output=ot.escapeLast(R.output,"("),nt("parens")}for(;R.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ln("closing","}"));R.output=ot.escapeLast(R.output,"{"),nt("braces")}if(r.strictSlashes!==!0&&(A.type==="star"||A.type==="bracket")&&Q({type:"maybe_slash",value:"",output:`${p}?`}),R.backtrack===!0){R.output="";for(let I of R.tokens)R.output+=I.output!=null?I.output:I.value,I.suffix&&(R.output+=I.suffix)}return R};Kc.fastpaths=(t,e)=>{let r={...e},n=typeof r.maxLength=="number"?Math.min(_o,r.maxLength):_o,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);t=Zg[t]||t;let s=ot.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:f,NO_DOTS_SLASH:h,STAR:p,START_ANCHOR:m}=yo.globChars(s),_=r.dot?f:l,g=r.dot?h:l,D=r.capture?"":"?:",C={negated:!1,prefix:""},q=r.bash===!0?".*?":p;r.capture&&(q=`(${q})`);let $=W=>W.noglobstar===!0?q:`(${D}(?:(?!${m}${W.dot?c:o}).)*?)`,N=W=>{switch(W){case"*":return`${_}${u}${q}`;case".*":return`${o}${u}${q}`;case"*.*":return`${_}${q}${o}${u}${q}`;case"*/*":return`${_}${q}${a}${u}${g}${q}`;case"**":return _+$(r);case"**/*":return`(?:${_}${$(r)}${a})?${g}${u}${q}`;case"**/*.*":return`(?:${_}${$(r)}${a})?${g}${q}${o}${u}${q}`;case"**/.*":return`(?:${_}${$(r)}${a})?${o}${u}${q}`;default:{let ee=/^(.*?)\.(\w+)$/.exec(W);if(!ee)return;let _e=N(ee[1]);return _e?_e+o+ee[2]:void 0}}},K=ot.removePrefix(t,C),z=N(K);return z&&r.strictSlashes!==!0&&(z+=`${a}?`),z};Qg.exports=Kc});var ry=b((a5,ty)=>{"use strict";var KT=require("path"),JT=Xg(),Jc=ey(),Xc=Qi(),XT=Zi(),ZT=t=>t&&typeof t=="object"&&!Array.isArray(t),we=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(h=>we(h,e,r));return h=>{for(let p of l){let m=p(h);if(m)return m}return!1}}let n=ZT(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},s=Xc.isWindows(e),o=n?we.compileRe(t,e):we.makeRe(t,e,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let l={...e,ignore:null,onMatch:null,onResult:null};u=we(i.ignore,l,r)}let c=(l,f=!1)=>{let{isMatch:h,match:p,output:m}=we.test(l,o,e,{glob:t,posix:s}),_={glob:t,state:a,regex:o,posix:s,input:l,output:m,match:p,isMatch:h};return typeof i.onResult=="function"&&i.onResult(_),h===!1?(_.isMatch=!1,f?_:!1):u(l)?(typeof i.onIgnore=="function"&&i.onIgnore(_),_.isMatch=!1,f?_:!1):(typeof i.onMatch=="function"&&i.onMatch(_),f?_:!0)};return r&&(c.state=a),c};we.test=(t,e,r,{glob:n,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?Xc.toPosixSlashes:null),a=t===n,u=a&&o?o(t):t;return a===!1&&(u=o?o(t):t,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=we.matchBase(t,e,r,i):a=e.exec(u)),{isMatch:!!a,match:a,output:u}};we.matchBase=(t,e,r,n=Xc.isWindows(r))=>(e instanceof RegExp?e:we.makeRe(e,r)).test(KT.basename(t));we.isMatch=(t,e,r)=>we(e,r)(t);we.parse=(t,e)=>Array.isArray(t)?t.map(r=>we.parse(r,e)):Jc(t,{...e,fastpaths:!1});we.scan=(t,e)=>JT(t,e);we.compileRe=(t,e,r=!1,n=!1)=>{if(r===!0)return t.output;let i=e||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let u=we.toRegex(a,e);return n===!0&&(u.state=t),u};we.makeRe=(t,e={},r=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=Jc.fastpaths(t,e)),i.output||(i=Jc(t,e)),we.compileRe(i,e,r,n)};we.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};we.constants=XT;ty.exports=we});var iy=b((u5,ny)=>{"use strict";ny.exports=ry()});var cy=b((c5,uy)=>{"use strict";var oy=require("util"),ay=Mg(),Lt=iy(),Zc=Qi(),sy=t=>t===""||t==="./",ge=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,i=new Set,s=new Set,o=0,a=l=>{s.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<e.length;l++){let f=Lt(String(e[l]),{...r,onResult:a},!0),h=f.state.negated||f.state.negatedExtglob;h&&o++;for(let p of t){let m=f(p,!0);(h?!m.isMatch:m.isMatch)&&(h?n.add(m.output):(n.delete(m.output),i.add(m.output)))}}let c=(o===e.length?[...s]:[...i]).filter(l=>!n.has(l));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(l=>l.replace(/\\/g,"")):e}return c};ge.match=ge;ge.matcher=(t,e)=>Lt(t,e);ge.isMatch=(t,e,r)=>Lt(e,r)(t);ge.any=ge.isMatch;ge.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(ge(t,e,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};ge.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${oy.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>ge.contains(t,n,r));if(typeof e=="string"){if(sy(t)||sy(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return ge.isMatch(t,e,{...r,contains:!0})};ge.matchKeys=(t,e,r)=>{if(!Zc.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=ge(Object.keys(t),e,r),i={};for(let s of n)i[s]=t[s];return i};ge.some=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=Lt(String(i),r);if(n.some(o=>s(o)))return!0}return!1};ge.every=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=Lt(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};ge.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${oy.inspect(t)}"`);return[].concat(e).every(n=>Lt(n,r)(t))};ge.capture=(t,e,r)=>{let n=Zc.isWindows(r),s=Lt.makeRe(String(t),{...r,capture:!0}).exec(n?Zc.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};ge.makeRe=(...t)=>Lt.makeRe(...t);ge.scan=(...t)=>Lt.scan(...t);ge.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let i of ay(String(n),e))r.push(Lt.parse(i,e));return r};ge.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:ay(t,e)};ge.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return ge.braces(t,{...e,expand:!0})};uy.exports=ge});var yy=b(Y=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});Y.matchAny=Y.convertPatternsToRe=Y.makeRe=Y.getPatternParts=Y.expandBraceExpansion=Y.expandPatternsWithBraceExpansion=Y.isAffectDepthOfReadingPattern=Y.endsWithSlashGlobStar=Y.hasGlobStar=Y.getBaseDirectory=Y.isPatternRelatedToParentDirectory=Y.getPatternsOutsideCurrentDirectory=Y.getPatternsInsideCurrentDirectory=Y.getPositivePatterns=Y.getNegativePatterns=Y.isPositivePattern=Y.isNegativePattern=Y.convertToNegativePattern=Y.convertToPositivePattern=Y.isDynamicPattern=Y.isStaticPattern=void 0;var QT=require("path"),eO=tg(),Qc=cy(),ly="**",tO="\\",rO=/[*?]|^!/,nO=/\[[^[]*]/,iO=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,sO=/[!*+?@]\([^(]*\)/,oO=/,|\.\./;function fy(t,e={}){return!hy(t,e)}Y.isStaticPattern=fy;function hy(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(tO)||rO.test(t)||nO.test(t)||iO.test(t)||e.extglob!==!1&&sO.test(t)||e.braceExpansion!==!1&&aO(t))}Y.isDynamicPattern=hy;function aO(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return oO.test(n)}function uO(t){return Eo(t)?t.slice(1):t}Y.convertToPositivePattern=uO;function cO(t){return"!"+t}Y.convertToNegativePattern=cO;function Eo(t){return t.startsWith("!")&&t[1]!=="("}Y.isNegativePattern=Eo;function dy(t){return!Eo(t)}Y.isPositivePattern=dy;function lO(t){return t.filter(Eo)}Y.getNegativePatterns=lO;function fO(t){return t.filter(dy)}Y.getPositivePatterns=fO;function hO(t){return t.filter(e=>!el(e))}Y.getPatternsInsideCurrentDirectory=hO;function dO(t){return t.filter(el)}Y.getPatternsOutsideCurrentDirectory=dO;function el(t){return t.startsWith("..")||t.startsWith("./..")}Y.isPatternRelatedToParentDirectory=el;function pO(t){return eO(t,{flipBackslashes:!1})}Y.getBaseDirectory=pO;function mO(t){return t.includes(ly)}Y.hasGlobStar=mO;function py(t){return t.endsWith("/"+ly)}Y.endsWithSlashGlobStar=py;function gO(t){let e=QT.basename(t);return py(t)||fy(e)}Y.isAffectDepthOfReadingPattern=gO;function yO(t){return t.reduce((e,r)=>e.concat(my(r)),[])}Y.expandPatternsWithBraceExpansion=yO;function my(t){return Qc.braces(t,{expand:!0,nodupes:!0})}Y.expandBraceExpansion=my;function _O(t,e){let{parts:r}=Qc.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}Y.getPatternParts=_O;function gy(t,e){return Qc.makeRe(t,e)}Y.makeRe=gy;function EO(t,e){return t.map(r=>gy(r,e))}Y.convertPatternsToRe=EO;function bO(t,e){return e.some(r=>r.test(t))}Y.matchAny=bO});var Dy=b((f5,by)=>{"use strict";var DO=require("stream"),_y=DO.PassThrough,wO=Array.prototype.slice;by.exports=AO;function AO(){let t=[],e=wO.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=_y(n);function a(){for(let l=0,f=arguments.length;l<f;l++)t.push(Ey(arguments[l],n));return u(),this}function u(){if(r)return;r=!0;let l=t.shift();if(!l){process.nextTick(c);return}Array.isArray(l)||(l=[l]);let f=l.length+1;function h(){--f>0||(r=!1,u())}function p(m){function _(){m.removeListener("merge2UnpipeEnd",_),m.removeListener("end",_),s&&m.removeListener("error",g),h()}function g(D){o.emit("error",D)}if(m._readableState.endEmitted)return h();m.on("merge2UnpipeEnd",_),m.on("end",_),s&&m.on("error",g),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<l.length;m++)p(l[m]);h()}function c(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function Ey(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=Ey(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(_y(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Ay=b(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.merge=void 0;var xO=Dy();function SO(t){let e=xO(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>wy(t)),e.once("end",()=>wy(t)),e}bo.merge=SO;function wy(t){t.forEach(e=>e.emit("close"))}});var xy=b(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.isEmpty=Nn.isString=void 0;function CO(t){return typeof t=="string"}Nn.isString=CO;function vO(t){return t===""}Nn.isEmpty=vO});var nr=b(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.string=qe.stream=qe.pattern=qe.path=qe.fs=qe.errno=qe.array=void 0;var RO=W0();qe.array=RO;var FO=z0();qe.errno=FO;var TO=V0();qe.fs=TO;var OO=Y0();qe.path=OO;var kO=yy();qe.pattern=kO;var PO=Ay();qe.stream=PO;var BO=xy();qe.string=BO});var vy=b(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.convertPatternGroupToTask=He.convertPatternGroupsToTasks=He.groupPatternsByBaseDirectory=He.getNegativePatternsAsPositive=He.getPositivePatterns=He.convertPatternsToTasks=He.generate=void 0;var ir=nr();function IO(t,e){let r=Sy(t),n=Cy(t,e.ignore),i=r.filter(u=>ir.pattern.isStaticPattern(u,e)),s=r.filter(u=>ir.pattern.isDynamicPattern(u,e)),o=tl(i,n,!1),a=tl(s,n,!0);return o.concat(a)}He.generate=IO;function tl(t,e,r){let n=[],i=ir.pattern.getPatternsOutsideCurrentDirectory(t),s=ir.pattern.getPatternsInsideCurrentDirectory(t),o=rl(i),a=rl(s);return n.push(...nl(o,e,r)),"."in a?n.push(il(".",s,e,r)):n.push(...nl(a,e,r)),n}He.convertPatternsToTasks=tl;function Sy(t){return ir.pattern.getPositivePatterns(t)}He.getPositivePatterns=Sy;function Cy(t,e){return ir.pattern.getNegativePatterns(t).concat(e).map(ir.pattern.convertToPositivePattern)}He.getNegativePatternsAsPositive=Cy;function rl(t){let e={};return t.reduce((r,n)=>{let i=ir.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},e)}He.groupPatternsByBaseDirectory=rl;function nl(t,e,r){return Object.keys(t).map(n=>il(n,t[n],e,r))}He.convertPatternGroupsToTasks=nl;function il(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(ir.pattern.convertToNegativePattern))}}He.convertPatternGroupToTask=il});var Fy=b(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.removeDuplicateSlashes=Mn.transform=void 0;var LO=/(?!^)\/{2,}/g;function NO(t){return t.map(e=>Ry(e))}Mn.transform=NO;function Ry(t){return t.replace(LO,"/")}Mn.removeDuplicateSlashes=Ry});var Oy=b(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.read=void 0;function MO(t,e,r){e.fs.lstat(t,(n,i)=>{if(n!==null){Ty(r,n);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){sl(r,i);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Ty(r,s);return}sl(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),sl(r,o)})})}Do.read=MO;function Ty(t,e){t(e)}function sl(t,e){t(null,e)}});var ky=b(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.read=void 0;function qO(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}wo.read=qO});var Py=b(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.createFileSystemAdapter=vr.FILE_SYSTEM_ADAPTER=void 0;var Ao=require("fs");vr.FILE_SYSTEM_ADAPTER={lstat:Ao.lstat,stat:Ao.stat,lstatSync:Ao.lstatSync,statSync:Ao.statSync};function HO(t){return t===void 0?vr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},vr.FILE_SYSTEM_ADAPTER),t)}vr.createFileSystemAdapter=HO});var By=b(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});var jO=Py(),ol=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=jO.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e!=null?e:r}};al.default=ol});var on=b(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.statSync=Rr.stat=Rr.Settings=void 0;var Iy=Oy(),$O=ky(),ul=By();Rr.Settings=ul.default;function UO(t,e,r){if(typeof e=="function"){Iy.read(t,cl(),e);return}Iy.read(t,cl(e),r)}Rr.stat=UO;function GO(t,e){let r=cl(e);return $O.read(t,r)}Rr.statSync=GO;function cl(t={}){return t instanceof ul.default?t:new ul.default(t)}});var My=b((w5,Ny)=>{var Ly;Ny.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(Ly||(Ly=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Hy=b((A5,qy)=>{qy.exports=zO;var WO=My();function zO(t,e){let r,n,i,s=!0;Array.isArray(t)?(r=[],n=t.length):(i=Object.keys(t),r={},n=i.length);function o(u){function c(){e&&e(u,r),e=null}s?WO(c):c()}function a(u,c,l){r[u]=l,(--n===0||c)&&o(c)}n?i?i.forEach(function(u){t[u](function(c,l){a(u,c,l)})}):t.forEach(function(u,c){u(function(l,f){a(c,l,f)})}):o(null),s=!1}});var ll=b(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var xo=process.versions.node.split(".");if(xo[0]===void 0||xo[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var jy=Number.parseInt(xo[0],10),VO=Number.parseInt(xo[1],10),$y=10,YO=10,KO=jy>$y,JO=jy===$y&&VO>=YO;So.IS_SUPPORT_READDIR_WITH_FILE_TYPES=KO||JO});var Uy=b(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.createDirentFromStats=void 0;var fl=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function XO(t,e){return new fl(t,e)}Co.createDirentFromStats=XO});var hl=b(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.fs=void 0;var ZO=Uy();vo.fs=ZO});var dl=b(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.joinPathSegments=void 0;function QO(t,e,r){return t.endsWith(r)?t+e:t+r+e}Ro.joinPathSegments=QO});var Ky=b(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.readdir=Fr.readdirWithFileTypes=Fr.read=void 0;var ek=on(),Gy=Hy(),tk=ll(),Wy=hl(),zy=dl();function rk(t,e,r){if(!e.stats&&tk.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Vy(t,e,r);return}Yy(t,e,r)}Fr.read=rk;function Vy(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,i)=>{if(n!==null){Fo(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:zy.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){pl(r,s);return}let o=s.map(a=>nk(a,e));Gy(o,(a,u)=>{if(a!==null){Fo(r,a);return}pl(r,u)})})}Fr.readdirWithFileTypes=Vy;function nk(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,i)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=Wy.fs.createDirentFromStats(t.name,i),r(null,t)})}}function Yy(t,e,r){e.fs.readdir(t,(n,i)=>{if(n!==null){Fo(r,n);return}let s=i.map(o=>{let a=zy.joinPathSegments(t,o,e.pathSegmentSeparator);return u=>{ek.stat(a,e.fsStatSettings,(c,l)=>{if(c!==null){u(c);return}let f={name:o,path:a,dirent:Wy.fs.createDirentFromStats(o,l)};e.stats&&(f.stats=l),u(null,f)})}});Gy(s,(o,a)=>{if(o!==null){Fo(r,o);return}pl(r,a)})})}Fr.readdir=Yy;function Fo(t,e){t(e)}function pl(t,e){t(null,e)}});var e_=b(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.readdir=Tr.readdirWithFileTypes=Tr.read=void 0;var ik=on(),sk=ll(),Jy=hl(),Xy=dl();function ok(t,e){return!e.stats&&sk.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Zy(t,e):Qy(t,e)}Tr.read=ok;function Zy(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Xy.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(i.path);i.dirent=Jy.fs.createDirentFromStats(i.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return i})}Tr.readdirWithFileTypes=Zy;function Qy(t,e){return e.fs.readdirSync(t).map(n=>{let i=Xy.joinPathSegments(t,n,e.pathSegmentSeparator),s=ik.statSync(i,e.fsStatSettings),o={name:n,path:i,dirent:Jy.fs.createDirentFromStats(n,s)};return e.stats&&(o.stats=s),o})}Tr.readdir=Qy});var t_=b(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.createFileSystemAdapter=Or.FILE_SYSTEM_ADAPTER=void 0;var qn=require("fs");Or.FILE_SYSTEM_ADAPTER={lstat:qn.lstat,stat:qn.stat,lstatSync:qn.lstatSync,statSync:qn.statSync,readdir:qn.readdir,readdirSync:qn.readdirSync};function ak(t){return t===void 0?Or.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Or.FILE_SYSTEM_ADAPTER),t)}Or.createFileSystemAdapter=ak});var r_=b(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var uk=require("path"),ck=on(),lk=t_(),ml=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=lk.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,uk.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new ck.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};gl.default=ml});var To=b(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.Settings=kr.scandirSync=kr.scandir=void 0;var n_=Ky(),fk=e_(),yl=r_();kr.Settings=yl.default;function hk(t,e,r){if(typeof e=="function"){n_.read(t,_l(),e);return}n_.read(t,_l(e),r)}kr.scandir=hk;function dk(t,e){let r=_l(e);return fk.read(t,r)}kr.scandirSync=dk;function _l(t={}){return t instanceof yl.default?t:new yl.default(t)}});var s_=b((P5,i_)=>{"use strict";function pk(t){var e=new t,r=e;function n(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}i_.exports=pk});var a_=b((B5,El)=>{"use strict";var mk=s_();function o_(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=mk(gk),i=null,s=null,o=0,a=null,u={push:_,drain:dt,saturated:dt,pause:l,paused:!1,concurrency:r,running:c,resume:p,idle:m,length:f,getQueue:h,unshift:g,empty:dt,kill:C,killAndDrain:q,error:$};return u;function c(){return o}function l(){u.paused=!0}function f(){for(var N=i,K=0;N;)N=N.next,K++;return K}function h(){for(var N=i,K=[];N;)K.push(N.value),N=N.next;return K}function p(){if(u.paused){u.paused=!1;for(var N=0;N<u.concurrency;N++)o++,D()}}function m(){return o===0&&u.length()===0}function _(N,K){var z=n.get();z.context=t,z.release=D,z.value=N,z.callback=K||dt,z.errorHandler=a,o===u.concurrency||u.paused?s?(s.next=z,s=z):(i=z,s=z,u.saturated()):(o++,e.call(t,z.value,z.worked))}function g(N,K){var z=n.get();z.context=t,z.release=D,z.value=N,z.callback=K||dt,o===u.concurrency||u.paused?i?(z.next=i,i=z):(i=z,s=z,u.saturated()):(o++,e.call(t,z.value,z.worked))}function D(N){N&&n.release(N);var K=i;K?u.paused?o--:(s===i&&(s=null),i=K.next,K.next=null,e.call(t,K.value,K.worked),s===null&&u.empty()):--o===0&&u.drain()}function C(){i=null,s=null,u.drain=dt}function q(){i=null,s=null,u.drain(),u.drain=dt}function $(N){a=N}}function dt(){}function gk(){this.value=null,this.callback=dt,this.next=null,this.release=dt,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var i=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=dt,t.errorHandler&&s(r,o),i.call(t.context,r,n),t.release(t)}}function yk(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(l,f){e.call(this,l).then(function(h){f(null,h)},f)}var i=o_(t,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=u,i.drained=c,i;function a(l){var f=new Promise(function(h,p){s(l,function(m,_){if(m){p(m);return}h(_)})});return f.catch(dt),f}function u(l){var f=new Promise(function(h,p){o(l,function(m,_){if(m){p(m);return}h(_)})});return f.catch(dt),f}function c(){var l=i.drain,f=new Promise(function(h){i.drain=function(){l(),h()}});return f}}El.exports=o_;El.exports.promise=yk});var Oo=b(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.joinPathSegments=Nt.replacePathSegmentSeparator=Nt.isAppliedFilter=Nt.isFatalError=void 0;function _k(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Nt.isFatalError=_k;function Ek(t,e){return t===null||t(e)}Nt.isAppliedFilter=Ek;function bk(t,e){return t.split(/[/\\]/).join(e)}Nt.replacePathSegmentSeparator=bk;function Dk(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Nt.joinPathSegments=Dk});var wl=b(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});var wk=Oo(),bl=class{constructor(e,r){this._root=e,this._settings=r,this._root=wk.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Dl.default=bl});var Sl=b(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var Ak=require("events"),xk=To(),Sk=a_(),ko=Oo(),Ck=wl(),Al=class extends Ck.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=xk.scandir,this._emitter=new Ak.EventEmitter,this._queue=Sk(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(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!ko.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=ko.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),ko.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&ko.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};xl.default=Al});var u_=b(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var vk=Sl(),Cl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new vk.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{Rk(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Fk(e,this._storage)}),this._reader.read()}};vl.default=Cl;function Rk(t,e){t(e)}function Fk(t,e){t(null,e)}});var c_=b(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var Tk=require("stream"),Ok=Sl(),Rl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Ok.default(this._root,this._settings),this._stream=new Tk.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Fl.default=Rl});var l_=b(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var kk=To(),Po=Oo(),Pk=wl(),Tl=class extends Pk.default{constructor(){super(...arguments),this._scandir=kk.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(e){if(Po.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=Po.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Po.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Po.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Ol.default=Tl});var f_=b(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});var Bk=l_(),kl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Bk.default(this._root,this._settings)}read(){return this._reader.read()}};Pl.default=kl});var h_=b(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var Ik=require("path"),Lk=To(),Bl=class{constructor(e={}){this._options=e,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,Ik.sep),this.fsScandirSettings=new Lk.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Il.default=Bl});var Io=b(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.Settings=Mt.walkStream=Mt.walkSync=Mt.walk=void 0;var d_=u_(),Nk=c_(),Mk=f_(),Ll=h_();Mt.Settings=Ll.default;function qk(t,e,r){if(typeof e=="function"){new d_.default(t,Bo()).read(e);return}new d_.default(t,Bo(e)).read(r)}Mt.walk=qk;function Hk(t,e){let r=Bo(e);return new Mk.default(t,r).read()}Mt.walkSync=Hk;function jk(t,e){let r=Bo(e);return new Nk.default(t,r).read()}Mt.walkStream=jk;function Bo(t={}){return t instanceof Ll.default?t:new Ll.default(t)}});var Lo=b(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});var $k=require("path"),Uk=on(),p_=nr(),Nl=class{constructor(e){this._settings=e,this._fsStatSettings=new Uk.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return $k.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:p_.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!p_.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Ml.default=Nl});var jl=b(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var Gk=require("stream"),Wk=on(),zk=Io(),Vk=Lo(),ql=class extends Vk.default{constructor(){super(...arguments),this._walkStream=zk.walkStream,this._stat=Wk.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),i=new Gk.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],e[s],r).then(u=>{u!==null&&r.entryFilter(u)&&i.push(u),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(e,r,n){return this._getStat(e).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Hl.default=ql});var m_=b(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var Yk=Io(),Kk=Lo(),Jk=jl(),$l=class extends Kk.default{constructor(){super(...arguments),this._walkAsync=Yk.walk,this._readerStream=new Jk.default(this._settings)}dynamic(e,r){return new Promise((n,i)=>{this._walkAsync(e,r,(s,o)=>{s===null?n(o):i(s)})})}async static(e,r){let n=[],i=this._readerStream.static(e,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};Ul.default=$l});var g_=b(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var Hn=nr(),Gl=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let e=Hn.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(e){return Hn.pattern.getPatternParts(e,this._micromatchOptions).map(n=>Hn.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Hn.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return Hn.array.splitWhen(e,r=>r.dynamic&&Hn.pattern.hasGlobStar(r.pattern))}};Wl.default=Gl});var y_=b(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var Xk=g_(),zl=class extends Xk.default{match(e){let r=e.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((u,c)=>{let l=s.segments[c];return!!(l.dynamic&&l.patternRe.test(u)||!l.dynamic&&l.pattern===u)}))return!0}return!1}};Vl.default=zl});var __=b(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});var No=nr(),Zk=y_(),Yl=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(e,o,i,s)}_getMatcher(e){return new Zk.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(No.pattern.isAffectDepthOfReadingPattern);return No.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,i){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=No.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let i=e.split("/").length;return n-i}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!No.pattern.matchAny(e,r)}};Kl.default=Yl});var E_=b(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var an=nr(),Jl=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let n=an.pattern.convertPatternsToRe(e,this._micromatchOptions),i=an.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(e,r,n){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,n))return!1;let i=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(e.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let n=an.path.makeAbsolute(this._settings.cwd,e);return an.pattern.matchAny(n,r)}_isMatchToPatterns(e,r,n){let i=an.path.removeLeadingDotSegment(e),s=an.pattern.matchAny(i,r);return!s&&n?an.pattern.matchAny(i+"/",r):s}};Xl.default=Jl});var b_=b(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});var Qk=nr(),Zl=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return Qk.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Ql.default=Zl});var w_=b(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});var D_=nr(),ef=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=D_.path.makeAbsolute(this._settings.cwd,r),r=D_.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};tf.default=ef});var Mo=b(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});var eP=require("path"),tP=__(),rP=E_(),nP=b_(),iP=w_(),rf=class{constructor(e){this._settings=e,this.errorFilter=new nP.default(this._settings),this.entryFilter=new rP.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new tP.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new iP.default(this._settings)}_getRootDirectory(e){return eP.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.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}}};nf.default=rf});var A_=b(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});var sP=m_(),oP=Mo(),sf=class extends oP.default{constructor(){super(...arguments),this._reader=new sP.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(s=>n.transform(s))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};of.default=sf});var x_=b(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});var aP=require("stream"),uP=jl(),cP=Mo(),af=class extends cP.default{constructor(){super(...arguments),this._reader=new uP.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),i=this.api(r,e,n),s=new aP.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};uf.default=af});var S_=b(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});var lP=on(),fP=Io(),hP=Lo(),cf=class extends hP.default{constructor(){super(...arguments),this._walkSync=fP.walkSync,this._statSync=lP.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let i of e){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(e,r,n){try{let i=this._getStat(e);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};lf.default=cf});var C_=b(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});var dP=S_(),pP=Mo(),ff=class extends pP.default{constructor(){super(...arguments),this._reader=new dP.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};hf.default=ff});var v_=b($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var jn=require("fs"),mP=require("os"),gP=Math.max(mP.cpus().length,1);$n.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:jn.lstat,lstatSync:jn.lstatSync,stat:jn.stat,statSync:jn.statSync,readdir:jn.readdir,readdirSync:jn.readdirSync};var df=class{constructor(e={}){this._options=e,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,gP),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(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},$n.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};$n.default=df});var O_=b((s6,T_)=>{"use strict";var R_=vy(),F_=Fy(),yP=A_(),_P=x_(),EP=C_(),pf=v_(),un=nr();async function mf(t,e){Un(t);let r=gf(t,yP.default,e),n=await Promise.all(r);return un.array.flatten(n)}(function(t){function e(o,a){Un(o);let u=gf(o,EP.default,a);return un.array.flatten(u)}t.sync=e;function r(o,a){Un(o);let u=gf(o,_P.default,a);return un.stream.merge(u)}t.stream=r;function n(o,a){Un(o);let u=F_.transform([].concat(o)),c=new pf.default(a);return R_.generate(u,c)}t.generateTasks=n;function i(o,a){Un(o);let u=new pf.default(a);return un.pattern.isDynamicPattern(o,u)}t.isDynamicPattern=i;function s(o){return Un(o),un.path.escape(o)}t.escapePath=s})(mf||(mf={}));function gf(t,e,r){let n=F_.transform([].concat(t)),i=new pf.default(r),s=R_.generate(n,i),o=new e(i);return s.map(o.read,o)}function Un(t){if(![].concat(t).every(n=>un.string.isString(n)&&!un.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}T_.exports=mf});var P_=b((o6,yf)=>{"use strict";var k_=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};yf.exports=k_;yf.exports.default=k_});var _f=b((a6,Ho)=>{"use strict";var bP=P_(),qo=new WeakMap,B_=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(qo.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return bP(s,t),qo.set(s,n),s};Ho.exports=B_;Ho.exports.default=B_;Ho.exports.callCount=t=>{if(!qo.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return qo.get(t)}});var I_=b((u6,jo)=>{jo.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&jo.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&jo.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Df=b((c6,zn)=>{var ye=global.process,cn=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};cn(ye)?(L_=require("assert"),Gn=I_(),N_=/^win/i.test(ye.platform),ts=require("events"),typeof ts!="function"&&(ts=ts.EventEmitter),ye.__signal_exit_emitter__?Fe=ye.__signal_exit_emitter__:(Fe=ye.__signal_exit_emitter__=new ts,Fe.count=0,Fe.emitted={}),Fe.infinite||(Fe.setMaxListeners(1/0),Fe.infinite=!0),zn.exports=function(t,e){if(!cn(global.process))return function(){};L_.equal(typeof t,"function","a callback must be provided for exit handler"),Wn===!1&&Ef();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){Fe.removeListener(r,t),Fe.listeners("exit").length===0&&Fe.listeners("afterexit").length===0&&$o()};return Fe.on(r,t),n},$o=function(){!Wn||!cn(global.process)||(Wn=!1,Gn.forEach(function(e){try{ye.removeListener(e,Uo[e])}catch{}}),ye.emit=Go,ye.reallyExit=bf,Fe.count-=1)},zn.exports.unload=$o,ln=function(e,r,n){Fe.emitted[e]||(Fe.emitted[e]=!0,Fe.emit(e,r,n))},Uo={},Gn.forEach(function(t){Uo[t]=function(){if(cn(global.process)){var r=ye.listeners(t);r.length===Fe.count&&($o(),ln("exit",null,t),ln("afterexit",null,t),N_&&t==="SIGHUP"&&(t="SIGINT"),ye.kill(ye.pid,t))}}}),zn.exports.signals=function(){return Gn},Wn=!1,Ef=function(){Wn||!cn(global.process)||(Wn=!0,Fe.count+=1,Gn=Gn.filter(function(e){try{return ye.on(e,Uo[e]),!0}catch{return!1}}),ye.emit=q_,ye.reallyExit=M_)},zn.exports.load=Ef,bf=ye.reallyExit,M_=function(e){cn(global.process)&&(ye.exitCode=e||0,ln("exit",ye.exitCode,null),ln("afterexit",ye.exitCode,null),bf.call(ye,ye.exitCode))},Go=ye.emit,q_=function(e,r){if(e==="exit"&&cn(global.process)){r!==void 0&&(ye.exitCode=r);var n=Go.apply(this,arguments);return ln("exit",ye.exitCode,null),ln("afterexit",ye.exitCode,null),n}else return Go.apply(this,arguments)}):zn.exports=function(){return function(){}};var L_,Gn,N_,ts,Fe,$o,ln,Uo,Wn,Ef,bf,M_,Go,q_});var j_=b((l6,H_)=>{"use strict";var DP=_f(),wP=Df();H_.exports=DP(()=>{wP(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var $_=b(Vn=>{"use strict";var AP=j_(),Wo=!1;Vn.show=(t=process.stderr)=>{t.isTTY&&(Wo=!1,t.write("\x1B[?25h"))};Vn.hide=(t=process.stderr)=>{t.isTTY&&(AP(),Wo=!0,t.write("\x1B[?25l"))};Vn.toggle=(t,e)=>{t!==void 0&&(Wo=t),Wo?Vn.show(e):Vn.hide(e)}});var U_=b((h6,xP)=>{xP.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"]}}});var z_=b((d6,W_)=>{"use strict";var zo=Object.assign({},U_()),G_=Object.keys(zo);Object.defineProperty(zo,"random",{get(){let t=Math.floor(Math.random()*G_.length),e=G_[t];return zo[e]}});W_.exports=zo});var Y_=b((p6,V_)=>{"use strict";var Pr=require("chalk"),SP=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",CP={info:Pr.blue("\u2139"),success:Pr.green("\u2714"),warning:Pr.yellow("\u26A0"),error:Pr.red("\u2716")},vP={info:Pr.blue("i"),success:Pr.green("\u221A"),warning:Pr.yellow("\u203C"),error:Pr.red("\xD7")};V_.exports=SP?CP:vP});var J_=b((m6,K_)=>{"use strict";K_.exports=({onlyFirst:t=!1}={})=>{let e=["[\\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(e,t?void 0:"g")}});var Z_=b((g6,X_)=>{"use strict";var RP=J_();X_.exports=t=>typeof t=="string"?t.replace(RP(),""):t});var Q_=b((y6,Vo)=>{var FP=function(){"use strict";function t(o,a,u,c){var l;typeof a=="object"&&(u=a.depth,c=a.prototype,l=a.filter,a=a.circular);var f=[],h=[],p=typeof Buffer!="undefined";typeof a=="undefined"&&(a=!0),typeof u=="undefined"&&(u=1/0);function m(_,g){if(_===null)return null;if(g==0)return _;var D,C;if(typeof _!="object")return _;if(t.__isArray(_))D=[];else if(t.__isRegExp(_))D=new RegExp(_.source,s(_)),_.lastIndex&&(D.lastIndex=_.lastIndex);else if(t.__isDate(_))D=new Date(_.getTime());else{if(p&&Buffer.isBuffer(_))return Buffer.allocUnsafe?D=Buffer.allocUnsafe(_.length):D=new Buffer(_.length),_.copy(D),D;typeof c=="undefined"?(C=Object.getPrototypeOf(_),D=Object.create(C)):(D=Object.create(c),C=c)}if(a){var q=f.indexOf(_);if(q!=-1)return h[q];f.push(_),h.push(D)}for(var $ in _){var N;C&&(N=Object.getOwnPropertyDescriptor(C,$)),!(N&&N.set==null)&&(D[$]=m(_[$],g-1))}return D}return m(o,u)}t.clonePrototype=function(a){if(a===null)return null;var u=function(){};return u.prototype=a,new u};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function n(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=n;function i(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=s,t}();typeof Vo=="object"&&Vo.exports&&(Vo.exports=FP)});var tE=b((_6,eE)=>{var TP=Q_();eE.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]=="undefined"&&(t[r]=TP(e[r]))}),t}});var nE=b((E6,rE)=>{rE.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]]});var aE=b((b6,wf)=>{"use strict";var OP=tE(),rs=nE(),sE={nul:0,control:0};wf.exports=function(e){return oE(e,sE)};wf.exports.config=function(t){return t=OP(t||{},sE),function(r){return oE(r,t)}};function oE(t,e){if(typeof t!="string")return iE(t,e);for(var r=0,n=0;n<t.length;n++){var i=iE(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function iE(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:kP(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function kP(t){var e=0,r=rs.length-1,n;if(t<rs[0][0]||t>rs[r][1])return!1;for(;r>=e;)if(n=Math.floor((e+r)/2),t>rs[n][1])e=n+1;else if(t<rs[n][0])r=n-1;else return!0;return!1}});var cE=b((D6,uE)=>{"use strict";uE.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var fE=b((w6,lE)=>{var Af=require("stream");lE.exports=Te;function Te(t){Af.apply(this),t=t||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=t.replace,this._prompt=t.prompt||null,this._hadControl=!1}Te.prototype=Object.create(Af.prototype);Object.defineProperty(Te.prototype,"constructor",{value:Te,enumerable:!1});Te.prototype.mute=function(){this.muted=!0};Te.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Te.prototype,"_onpipe",{value:PP,enumerable:!1,writable:!0,configurable:!0});function PP(t){this._src=t}Object.defineProperty(Te.prototype,"isTTY",{get:BP,set:IP,enumerable:!0,configurable:!0});function BP(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function IP(t){Object.defineProperty(this,"isTTY",{value:t,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Te.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Te.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Te.prototype.pipe=function(t,e){return this._dest=t,Af.prototype.pipe.call(this,t,e)};Te.prototype.pause=function(){if(this._src)return this._src.pause()};Te.prototype.resume=function(){if(this._src)return this._src.resume()};Te.prototype.write=function(t){if(this.muted){if(!this.replace)return!0;if(t.match(/^\u001b/))return t.indexOf(this._prompt)===0&&(t=t.substr(this._prompt.length),t=t.replace(/./g,this.replace),t=this._prompt+t),this._hadControl=!0,this.emit("data",t);this._prompt&&this._hadControl&&t.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),t=t.substr(this._prompt.length)),t=t.toString().replace(/./g,this.replace)}this.emit("data",t)};Te.prototype.end=function(t){this.muted&&(t&&this.replace?t=t.toString().replace(/./g,this.replace):t=null),t&&this.emit("data",t),this.emit("end")};function xf(t){return function(){var e=this._dest,r=this._src;e&&e[t]&&e[t].apply(e,arguments),r&&r[t]&&r[t].apply(r,arguments)}}Te.prototype.destroy=xf("destroy");Te.prototype.destroySoon=xf("destroySoon");Te.prototype.close=xf("close")});var dE=b((A6,vf)=>{"use strict";var LP=require("readline"),NP=require("chalk"),hE=$_(),Yo=z_(),Ko=Y_(),MP=Z_(),qP=aE(),HP=cE(),jP=fE(),Sf=Symbol("text"),Jo=Symbol("prefixText"),$P=3,Cf=class{constructor(){this.requests=0,this.mutedStream=new jP,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let e=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&n.includes($P)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,n,...i])}else Reflect.apply(process.stdin.emit,this,[r,n,...i])}}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=LP.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)}},Xo,Zo=class{constructor(e){Xo||(Xo=new Cf),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},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:HP({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(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e}_updateInterval(e){e!==void 0&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(process.platform==="win32")this._spinner=Yo.line;else if(e===void 0)this._spinner=Yo.dots;else if(Yo[e])this._spinner=Yo[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[Sf]}get prefixText(){return this[Jo]}get isSpinning(){return this.id!==void 0}updateLineCount(){let e=this.stream.columns||80,r=typeof this[Jo]=="string"?this[Jo]+"-":"";this.lineCount=MP(r+"--"+this[Sf]).split(`
|
|
2
|
+
"use strict";var _v=Object.create;var Zu=Object.defineProperty;var Ev=Object.getOwnPropertyDescriptor;var bv=Object.getOwnPropertyNames;var Dv=Object.getPrototypeOf,wv=Object.prototype.hasOwnProperty;var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Av=(t,e)=>{for(var r in e)Zu(t,r,{get:e[r],enumerable:!0})},xv=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of bv(e))!wv.call(t,i)&&i!==r&&Zu(t,i,{get:()=>e[i],enumerable:!(n=Ev(e,i))||n.enumerable});return t};var X=(t,e,r)=>(r=t!=null?_v(Dv(t)):{},xv(e||!t||!t.__esModule?Zu(r,"default",{value:t,enumerable:!0}):r,t));var gm=b((KM,Kt)=>{function Qu(t){return Kt.exports=Qu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt.exports.__esModule=!0,Kt.exports.default=Kt.exports,Qu(t)}Kt.exports=Qu,Kt.exports.__esModule=!0,Kt.exports.default=Kt.exports});var _m=b((JM,Jt)=>{var Sv=gm().default;function ym(){"use strict";Jt.exports=ym=function(){return t},Jt.exports.__esModule=!0,Jt.exports.default=Jt.exports;var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(O,v,k){O[v]=k.value},i=typeof Symbol=="function"?Symbol:{},s=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function u(O,v,k){return Object.defineProperty(O,v,{value:k,enumerable:!0,configurable:!0,writable:!0}),O[v]}try{u({},"")}catch{u=function(k,A,x){return k[A]=x}}function c(O,v,k,A){var x=v&&v.prototype instanceof h?v:h,j=Object.create(x.prototype),U=new ee(A||[]);return n(j,"_invoke",{value:N(O,k,U)}),j}function l(O,v,k){try{return{type:"normal",arg:O.call(v,k)}}catch(A){return{type:"throw",arg:A}}}t.wrap=c;var f={};function h(){}function p(){}function m(){}var _={};u(_,s,function(){return this});var g=Object.getPrototypeOf,D=g&&g(g(_e([])));D&&D!==e&&r.call(D,s)&&(_=D);var C=m.prototype=h.prototype=Object.create(_);function q(O){["next","throw","return"].forEach(function(v){u(O,v,function(k){return this._invoke(v,k)})})}function $(O,v){function k(x,j,U,V){var ae=l(O[x],O,j);if(ae.type!=="throw"){var re=ae.arg,Ve=re.value;return Ve&&Sv(Ve)=="object"&&r.call(Ve,"__await")?v.resolve(Ve.__await).then(function(Ct){k("next",Ct,U,V)},function(Ct){k("throw",Ct,U,V)}):v.resolve(Ve).then(function(Ct){re.value=Ct,U(re)},function(Ct){return k("throw",Ct,U,V)})}V(ae.arg)}var A;n(this,"_invoke",{value:function(j,U){function V(){return new v(function(ae,re){k(j,U,ae,re)})}return A=A?A.then(V,V):V()}})}function N(O,v,k){var A="suspendedStart";return function(x,j){if(A==="executing")throw new Error("Generator is already running");if(A==="completed"){if(x==="throw")throw j;return R()}for(k.method=x,k.arg=j;;){var U=k.delegate;if(U){var V=K(U,k);if(V){if(V===f)continue;return V}}if(k.method==="next")k.sent=k._sent=k.arg;else if(k.method==="throw"){if(A==="suspendedStart")throw A="completed",k.arg;k.dispatchException(k.arg)}else k.method==="return"&&k.abrupt("return",k.arg);A="executing";var ae=l(O,v,k);if(ae.type==="normal"){if(A=k.done?"completed":"suspendedYield",ae.arg===f)continue;return{value:ae.arg,done:k.done}}ae.type==="throw"&&(A="completed",k.method="throw",k.arg=ae.arg)}}}function K(O,v){var k=v.method,A=O.iterator[k];if(A===void 0)return v.delegate=null,k==="throw"&&O.iterator.return&&(v.method="return",v.arg=void 0,K(O,v),v.method==="throw")||k!=="return"&&(v.method="throw",v.arg=new TypeError("The iterator does not provide a '"+k+"' method")),f;var x=l(A,O.iterator,v.arg);if(x.type==="throw")return v.method="throw",v.arg=x.arg,v.delegate=null,f;var j=x.arg;return j?j.done?(v[O.resultName]=j.value,v.next=O.nextLoc,v.method!=="return"&&(v.method="next",v.arg=void 0),v.delegate=null,f):j:(v.method="throw",v.arg=new TypeError("iterator result is not an object"),v.delegate=null,f)}function z(O){var v={tryLoc:O[0]};1 in O&&(v.catchLoc=O[1]),2 in O&&(v.finallyLoc=O[2],v.afterLoc=O[3]),this.tryEntries.push(v)}function W(O){var v=O.completion||{};v.type="normal",delete v.arg,O.completion=v}function ee(O){this.tryEntries=[{tryLoc:"root"}],O.forEach(z,this),this.reset(!0)}function _e(O){if(O){var v=O[s];if(v)return v.call(O);if(typeof O.next=="function")return O;if(!isNaN(O.length)){var k=-1,A=function x(){for(;++k<O.length;)if(r.call(O,k))return x.value=O[k],x.done=!1,x;return x.value=void 0,x.done=!0,x};return A.next=A}}return{next:R}}function R(){return{value:void 0,done:!0}}return p.prototype=m,n(C,"constructor",{value:m,configurable:!0}),n(m,"constructor",{value:p,configurable:!0}),p.displayName=u(m,a,"GeneratorFunction"),t.isGeneratorFunction=function(O){var v=typeof O=="function"&&O.constructor;return!!v&&(v===p||(v.displayName||v.name)==="GeneratorFunction")},t.mark=function(O){return Object.setPrototypeOf?Object.setPrototypeOf(O,m):(O.__proto__=m,u(O,a,"GeneratorFunction")),O.prototype=Object.create(C),O},t.awrap=function(O){return{__await:O}},q($.prototype),u($.prototype,o,function(){return this}),t.AsyncIterator=$,t.async=function(O,v,k,A,x){x===void 0&&(x=Promise);var j=new $(c(O,v,k,A),x);return t.isGeneratorFunction(v)?j:j.next().then(function(U){return U.done?U.value:j.next()})},q(C),u(C,a,"Generator"),u(C,s,function(){return this}),u(C,"toString",function(){return"[object Generator]"}),t.keys=function(O){var v=Object(O),k=[];for(var A in v)k.push(A);return k.reverse(),function x(){for(;k.length;){var j=k.pop();if(j in v)return x.value=j,x.done=!1,x}return x.done=!0,x}},t.values=_e,ee.prototype={constructor:ee,reset:function(v){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(W),!v)for(var k in this)k.charAt(0)==="t"&&r.call(this,k)&&!isNaN(+k.slice(1))&&(this[k]=void 0)},stop:function(){this.done=!0;var v=this.tryEntries[0].completion;if(v.type==="throw")throw v.arg;return this.rval},dispatchException:function(v){if(this.done)throw v;var k=this;function A(re,Ve){return U.type="throw",U.arg=v,k.next=re,Ve&&(k.method="next",k.arg=void 0),!!Ve}for(var x=this.tryEntries.length-1;x>=0;--x){var j=this.tryEntries[x],U=j.completion;if(j.tryLoc==="root")return A("end");if(j.tryLoc<=this.prev){var V=r.call(j,"catchLoc"),ae=r.call(j,"finallyLoc");if(V&&ae){if(this.prev<j.catchLoc)return A(j.catchLoc,!0);if(this.prev<j.finallyLoc)return A(j.finallyLoc)}else if(V){if(this.prev<j.catchLoc)return A(j.catchLoc,!0)}else{if(!ae)throw new Error("try statement without catch or finally");if(this.prev<j.finallyLoc)return A(j.finallyLoc)}}}},abrupt:function(v,k){for(var A=this.tryEntries.length-1;A>=0;--A){var x=this.tryEntries[A];if(x.tryLoc<=this.prev&&r.call(x,"finallyLoc")&&this.prev<x.finallyLoc){var j=x;break}}j&&(v==="break"||v==="continue")&&j.tryLoc<=k&&k<=j.finallyLoc&&(j=null);var U=j?j.completion:{};return U.type=v,U.arg=k,j?(this.method="next",this.next=j.finallyLoc,f):this.complete(U)},complete:function(v,k){if(v.type==="throw")throw v.arg;return v.type==="break"||v.type==="continue"?this.next=v.arg:v.type==="return"?(this.rval=this.arg=v.arg,this.method="return",this.next="end"):v.type==="normal"&&k&&(this.next=k),f},finish:function(v){for(var k=this.tryEntries.length-1;k>=0;--k){var A=this.tryEntries[k];if(A.finallyLoc===v)return this.complete(A.completion,A.afterLoc),W(A),f}},catch:function(v){for(var k=this.tryEntries.length-1;k>=0;--k){var A=this.tryEntries[k];if(A.tryLoc===v){var x=A.completion;if(x.type==="throw"){var j=x.arg;W(A)}return j}}throw new Error("illegal catch attempt")},delegateYield:function(v,k,A){return this.delegate={iterator:_e(v),resultName:k,nextLoc:A},this.method==="next"&&(this.arg=void 0),f}},t}Jt.exports=ym,Jt.exports.__esModule=!0,Jt.exports.default=Jt.exports});var bm=b((XM,Em)=>{var Ys=_m()();Em.exports=Ys;try{regeneratorRuntime=Ys}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Ys:Function("r","regeneratorRuntime = r")(Ys)}});var wm=b((Eq,oc)=>{"use strict";var Dm=(t,...e)=>new Promise(r=>{r(t(...e))});oc.exports=Dm;oc.exports.default=Dm});var xm=b((bq,ac)=>{"use strict";var Cv=wm(),Am=t=>{if(!((Number.isInteger(t)||t===1/0)&&t>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let e=[],r=0,n=()=>{r--,e.length>0&&e.shift()()},i=(a,u,...c)=>{r++;let l=Cv(a,...c);u(l),l.then(n,n)},s=(a,u,...c)=>{r<t?i(a,u,...c):e.push(i.bind(null,a,u,...c))},o=(a,...u)=>new Promise(c=>s(a,c,...u));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>e.length},clearQueue:{value:()=>{e.length=0}}}),o};ac.exports=Am;ac.exports.default=Am});var vm=b((Dq,uc)=>{"use strict";var Sm=xm(),Ks=class extends Error{constructor(e){super(),this.value=e}},vv=async(t,e)=>e(await t),Rv=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new Ks(e[0]);return!1},Cm=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=Sm(r.concurrency),i=[...t].map(o=>[o,n(vv,o,e)]),s=Sm(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(Rv,o)))}catch(o){if(o instanceof Ks)return o.value;throw o}};uc.exports=Cm;uc.exports.default=Cm});var Pm=b((wq,cc)=>{"use strict";var Rm=require("path"),Js=require("fs"),{promisify:Fm}=require("util"),Fv=vm(),Tv=Fm(Js.stat),Ov=Fm(Js.lstat),Tm={directory:"isDirectory",file:"isFile"};function Om({type:t}){if(!(t in Tm))throw new Error(`Invalid type specified: ${t}`)}var km=(t,e)=>t===void 0||e[Tm[t]]();cc.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},Om(e);let r=e.allowSymlinks?Tv:Ov;return Fv(t,async n=>{try{let i=await r(Rm.resolve(e.cwd,n));return km(e.type,i)}catch{return!1}},e)};cc.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},Om(e);let r=e.allowSymlinks?Js.statSync:Js.lstatSync;for(let n of t)try{let i=r(Rm.resolve(e.cwd,n));if(km(e.type,i))return n}catch{}}});var Im=b((Aq,lc)=>{"use strict";var Bm=require("fs"),{promisify:kv}=require("util"),Pv=kv(Bm.access);lc.exports=async t=>{try{return await Pv(t),!0}catch{return!1}};lc.exports.sync=t=>{try{return Bm.accessSync(t),!0}catch{return!1}}});var Nm=b((xq,Fn)=>{"use strict";var Ar=require("path"),Xs=Pm(),Lm=Im(),fc=Symbol("findUp.stop");Fn.exports=async(t,e={})=>{let r=Ar.resolve(e.cwd||""),{root:n}=Ar.parse(r),i=[].concat(t),s=async o=>{if(typeof t!="function")return Xs(i,o);let a=await t(o.cwd);return typeof a=="string"?Xs([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===fc)return;if(o)return Ar.resolve(r,o);if(r===n)return;r=Ar.dirname(r)}};Fn.exports.sync=(t,e={})=>{let r=Ar.resolve(e.cwd||""),{root:n}=Ar.parse(r),i=[].concat(t),s=o=>{if(typeof t!="function")return Xs.sync(i,o);let a=t(o.cwd);return typeof a=="string"?Xs.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===fc)return;if(o)return Ar.resolve(r,o);if(r===n)return;r=Ar.dirname(r)}};Fn.exports.exists=Lm;Fn.exports.sync.exists=Lm.sync;Fn.exports.stop=fc});var W0=b(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.splitWhen=Bn.flatten=void 0;function _F(t){return t.reduce((e,r)=>[].concat(e,r),[])}Bn.flatten=_F;function EF(t,e){let r=[[]],n=0;for(let i of t)e(i)?(n++,r[n]=[]):r[n].push(i);return r}Bn.splitWhen=EF});var z0=b(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.isEnoentCodeError=void 0;function bF(t){return t.code==="ENOENT"}lo.isEnoentCodeError=bF});var V0=b(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.createDirentFromStats=void 0;var Ic=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function DF(t,e){return new Ic(t,e)}fo.createDirentFromStats=DF});var Y0=b(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.removeLeadingDotSegment=Bt.escape=Bt.makeAbsolute=Bt.unixify=void 0;var wF=require("path"),AF=2,xF=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function SF(t){return t.replace(/\\/g,"/")}Bt.unixify=SF;function CF(t,e){return wF.resolve(t,e)}Bt.makeAbsolute=CF;function vF(t){return t.replace(xF,"\\$2")}Bt.escape=vF;function RF(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(AF)}return t}Bt.removeLeadingDotSegment=RF});var J0=b((Gq,K0)=>{K0.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var Q0=b((Wq,Z0)=>{var FF=J0(),X0={"{":"}","(":")","[":"]"},TF=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,i=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(o===-1||o>n||(o=t.indexOf("\\",e),o===-1||o>n)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var u=X0[a];if(u){var c=t.indexOf(u,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},OF=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var n=X0[r];if(n){var i=t.indexOf(n,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};Z0.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(FF(e))return!0;var n=TF;return r&&r.strict===!1&&(n=OF),n(e)}});var tg=b((zq,eg)=>{"use strict";var kF=Q0(),PF=require("path").posix.dirname,BF=require("os").platform()==="win32",Lc="/",IF=/\\/g,LF=/[\{\[].*[\}\]]$/,NF=/(^|[^\\])([\{\[]|\([^\)]+$)/,MF=/\\([\!\*\?\|\[\]\(\)\{\}])/g;eg.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&BF&&e.indexOf(Lc)<0&&(e=e.replace(IF,Lc)),LF.test(e)&&(e+=Lc),e+="a";do e=PF(e);while(kF(e)||NF.test(e));return e.replace(MF,"$1")}});var ho=b(ht=>{"use strict";ht.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;ht.find=(t,e)=>t.nodes.find(r=>r.type===e);ht.exceedsLimit=(t,e,r=1,n)=>n===!1||!ht.isInteger(t)||!ht.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;ht.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};ht.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);ht.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:!(t.commas>>0+t.ranges>>0)||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;ht.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;ht.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);ht.flatten=(...t)=>{let e=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var po=b((Yq,ng)=>{"use strict";var rg=ho();ng.exports=(t,e={})=>{let r=(n,i={})=>{let s=e.escapeInvalid&&rg.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a="";if(n.value)return(s||o)&&rg.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(t)}});var sg=b((Kq,ig)=>{"use strict";ig.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var pg=b((Jq,dg)=>{"use strict";var og=sg(),nn=(t,e,r)=>{if(og(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(og(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),u=t+":"+e+"="+i+s+o+a;if(nn.cache.hasOwnProperty(u))return nn.cache[u].result;let c=Math.min(t,e),l=Math.max(t,e);if(Math.abs(c-l)===1){let _=t+"|"+e;return n.capture?`(${_})`:n.wrap===!1?_:`(?:${_})`}let f=hg(t)||hg(e),h={min:t,max:e,a:c,b:l},p=[],m=[];if(f&&(h.isPadded=f,h.maxLen=String(h.max).length),c<0){let _=l<0?Math.abs(l):1;m=ag(_,Math.abs(c),h,n),c=h.a=0}return l>=0&&(p=ag(c,l,h,n)),h.negatives=m,h.positives=p,h.result=qF(m,p,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&p.length+m.length>1&&(h.result=`(?:${h.result})`),nn.cache[u]=h,h.result};function qF(t,e,r){let n=Nc(t,e,"-",!1,r)||[],i=Nc(e,t,"",!1,r)||[],s=Nc(t,e,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function HF(t,e){let r=1,n=1,i=cg(t,r),s=new Set([e]);for(;t<=i&&i<=e;)s.add(i),r+=1,i=cg(t,r);for(i=lg(e+1,n)-1;t<i&&i<=e;)s.add(i),n+=1,i=lg(e+1,n)-1;return s=[...s],s.sort(UF),s}function jF(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=$F(t,e),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[u,c]=n[a];u===c?s+=u:u!=="0"||c!=="9"?s+=GF(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function ag(t,e,r,n){let i=HF(t,e),s=[],o=t,a;for(let u=0;u<i.length;u++){let c=i[u],l=jF(String(o),String(c),n),f="";if(!r.isPadded&&a&&a.pattern===l.pattern){a.count.length>1&&a.count.pop(),a.count.push(l.count[0]),a.string=a.pattern+fg(a.count),o=c+1;continue}r.isPadded&&(f=WF(c,r,n)),l.string=f+l.pattern+fg(l.count),s.push(l),o=c+1,a=l}return s}function Nc(t,e,r,n,i){let s=[];for(let o of t){let{string:a}=o;!n&&!ug(e,"string",a)&&s.push(r+a),n&&ug(e,"string",a)&&s.push(r+a)}return s}function $F(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function UF(t,e){return t>e?1:e>t?-1:0}function ug(t,e,r){return t.some(n=>n[e]===r)}function cg(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function lg(t,e){return t-t%Math.pow(10,e)}function fg(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function GF(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function hg(t){return/^-?(0+)\d/.test(t)}function WF(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}nn.cache={};nn.clearCache=()=>nn.cache={};dg.exports=nn});var Hc=b((Xq,wg)=>{"use strict";var zF=require("util"),yg=pg(),mg=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),VF=t=>e=>t===!0?Number(e):String(e),Mc=t=>typeof t=="number"||typeof t=="string"&&t!=="",Xi=t=>Number.isInteger(+t),qc=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},YF=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,KF=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},gg=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},JF=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",n="",i="",s;return t.positives.length&&(n=t.positives.join("|")),t.negatives.length&&(i=`-(${r}${t.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,e.wrap?`(${r}${s})`:s},_g=(t,e,r,n)=>{if(r)return yg(t,e,{wrap:!1,...n});let i=String.fromCharCode(t);if(t===e)return i;let s=String.fromCharCode(e);return`[${i}-${s}]`},Eg=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${t.join("|")})`:t.join("|")}return yg(t,e,r)},bg=(...t)=>new RangeError("Invalid range arguments: "+zF.inspect(...t)),Dg=(t,e,r)=>{if(r.strictRanges===!0)throw bg([t,e]);return[]},XF=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},ZF=(t,e,r=1,n={})=>{let i=Number(t),s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw bg([t,e]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(t),u=String(e),c=String(r);r=Math.max(Math.abs(r),1);let l=qc(a)||qc(u)||qc(c),f=l?Math.max(a.length,u.length,c.length):0,h=l===!1&&YF(t,e,n)===!1,p=n.transform||VF(h);if(n.toRegex&&r===1)return _g(gg(t,f),gg(e,f),!0,n);let m={negatives:[],positives:[]},_=C=>m[C<0?"negatives":"positives"].push(Math.abs(C)),g=[],D=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?_(i):g.push(KF(p(i,D),f,h)),i=o?i-r:i+r,D++;return n.toRegex===!0?r>1?JF(m,n):Eg(g,null,{wrap:!1,...n}):g},QF=(t,e,r=1,n={})=>{if(!Xi(t)&&t.length>1||!Xi(e)&&e.length>1)return Dg(t,e,n);let i=n.transform||(h=>String.fromCharCode(h)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,u=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return _g(u,c,!1,n);let l=[],f=0;for(;a?s>=o:s<=o;)l.push(i(s,f)),s=a?s-r:s+r,f++;return n.toRegex===!0?Eg(l,null,{wrap:!1,options:n}):l},mo=(t,e,r,n={})=>{if(e==null&&Mc(t))return[t];if(!Mc(t)||!Mc(e))return Dg(t,e,n);if(typeof r=="function")return mo(t,e,1,{transform:r});if(mg(r))return mo(t,e,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Xi(r)?Xi(t)&&Xi(e)?ZF(t,e,r,i):QF(t,e,Math.max(Math.abs(r),1),i):r!=null&&!mg(r)?XF(r,i):mo(t,e,1,r)};wg.exports=mo});var Sg=b((Zq,xg)=>{"use strict";var eT=Hc(),Ag=ho(),tT=(t,e={})=>{let r=(n,i={})=>{let s=Ag.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,u=e.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0||n.isClose===!0)return u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=Ag.reduce(n.nodes),f=eT(...l,{...e,wrap:!1,toRegex:!0});if(f.length!==0)return l.length>1&&f.length>1?`(${f})`:f}if(n.nodes)for(let l of n.nodes)c+=r(l,n);return c};return r(t)};xg.exports=tT});var Rg=b((Qq,vg)=>{"use strict";var rT=Hc(),Cg=po(),In=ho(),sn=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?In.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let s of i)n.push(sn(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?sn(i,s,r):i+s);return In.flatten(n)},nT=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(sn(a.pop(),Cg(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(sn(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let f=In.reduce(i.nodes);if(In.exceedsLimit(...f,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=rT(...f,e);h.length===0&&(h=Cg(i,e)),a.push(sn(a.pop(),h)),i.nodes=[];return}let u=In.encloseBrace(i),c=i.queue,l=i;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let f=0;f<i.nodes.length;f++){let h=i.nodes[f];if(h.type==="comma"&&i.type==="brace"){f===1&&c.push(""),c.push("");continue}if(h.type==="close"){a.push(sn(a.pop(),c,u));continue}if(h.value&&h.type!=="open"){c.push(sn(c.pop(),h.value));continue}h.nodes&&n(h,i)}return c};return In.flatten(n(t))};vg.exports=nT});var Tg=b((e6,Fg)=>{"use strict";Fg.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:`
|
|
3
|
+
`,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"}});var Ig=b((t6,Bg)=>{"use strict";var iT=po(),{MAX_LENGTH:Og,CHAR_BACKSLASH:jc,CHAR_BACKTICK:sT,CHAR_COMMA:oT,CHAR_DOT:aT,CHAR_LEFT_PARENTHESES:uT,CHAR_RIGHT_PARENTHESES:cT,CHAR_LEFT_CURLY_BRACE:lT,CHAR_RIGHT_CURLY_BRACE:fT,CHAR_LEFT_SQUARE_BRACKET:kg,CHAR_RIGHT_SQUARE_BRACKET:Pg,CHAR_DOUBLE_QUOTE:hT,CHAR_SINGLE_QUOTE:dT,CHAR_NO_BREAK_SPACE:pT,CHAR_ZERO_WIDTH_NOBREAK_SPACE:mT}=Tg(),gT=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(Og,r.maxLength):Og;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let i={type:"root",input:t,nodes:[]},s=[i],o=i,a=i,u=0,c=t.length,l=0,f=0,h,p={},m=()=>t[l++],_=g=>{if(g.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&g.type==="text"){a.value+=g.value;return}return o.nodes.push(g),g.parent=o,g.prev=a,a=g,g};for(_({type:"bos"});l<c;)if(o=s[s.length-1],h=m(),!(h===mT||h===pT)){if(h===jc){_({type:"text",value:(e.keepEscaping?h:"")+m()});continue}if(h===Pg){_({type:"text",value:"\\"+h});continue}if(h===kg){u++;let g=!0,D;for(;l<c&&(D=m());){if(h+=D,D===kg){u++;continue}if(D===jc){h+=m();continue}if(D===Pg&&(u--,u===0))break}_({type:"text",value:h});continue}if(h===uT){o=_({type:"paren",nodes:[]}),s.push(o),_({type:"text",value:h});continue}if(h===cT){if(o.type!=="paren"){_({type:"text",value:h});continue}o=s.pop(),_({type:"text",value:h}),o=s[s.length-1];continue}if(h===hT||h===dT||h===sT){let g=h,D;for(e.keepQuotes!==!0&&(h="");l<c&&(D=m());){if(D===jc){h+=D+m();continue}if(D===g){e.keepQuotes===!0&&(h+=D);break}h+=D}_({type:"text",value:h});continue}if(h===lT){f++;let D={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};o=_(D),s.push(o),_({type:"open",value:h});continue}if(h===fT){if(o.type!=="brace"){_({type:"text",value:h});continue}let g="close";o=s.pop(),o.close=!0,_({type:g,value:h}),f--,o=s[s.length-1];continue}if(h===oT&&f>0){if(o.ranges>0){o.ranges=0;let g=o.nodes.shift();o.nodes=[g,{type:"text",value:iT(o)}]}_({type:"comma",value:h}),o.commas++;continue}if(h===aT&&f>0&&o.commas===0){let g=o.nodes;if(f===0||g.length===0){_({type:"text",value:h});continue}if(a.type==="dot"){if(o.range=[],a.value+=h,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){g.pop();let D=g[g.length-1];D.value+=a.value+h,a=D,o.ranges--;continue}_({type:"dot",value:h});continue}_({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(C=>{C.nodes||(C.type==="open"&&(C.isOpen=!0),C.type==="close"&&(C.isClose=!0),C.nodes||(C.type="text"),C.invalid=!0)});let g=s[s.length-1],D=g.nodes.indexOf(o);g.nodes.splice(D,1,...o.nodes)}while(s.length>0);return _({type:"eos"}),i};Bg.exports=gT});var Mg=b((r6,Ng)=>{"use strict";var Lg=po(),yT=Sg(),_T=Rg(),ET=Ig(),st=(t,e={})=>{let r=[];if(Array.isArray(t))for(let n of t){let i=st.create(n,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(st.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};st.parse=(t,e={})=>ET(t,e);st.stringify=(t,e={})=>Lg(typeof t=="string"?st.parse(t,e):t,e);st.compile=(t,e={})=>(typeof t=="string"&&(t=st.parse(t,e)),yT(t,e));st.expand=(t,e={})=>{typeof t=="string"&&(t=st.parse(t,e));let r=_T(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};st.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?st.compile(t,e):st.expand(t,e);Ng.exports=st});var Zi=b((n6,Ug)=>{"use strict";var bT=require("path"),It="\\\\/",qg=`[^${It}]`,rr="\\.",DT="\\+",wT="\\?",go="\\/",AT="(?=.)",Hg="[^/]",$c=`(?:${go}|$)`,jg=`(?:^|${go})`,Uc=`${rr}{1,2}${$c}`,xT=`(?!${rr})`,ST=`(?!${jg}${Uc})`,CT=`(?!${rr}{0,1}${$c})`,vT=`(?!${Uc})`,RT=`[^.${go}]`,FT=`${Hg}*?`,$g={DOT_LITERAL:rr,PLUS_LITERAL:DT,QMARK_LITERAL:wT,SLASH_LITERAL:go,ONE_CHAR:AT,QMARK:Hg,END_ANCHOR:$c,DOTS_SLASH:Uc,NO_DOT:xT,NO_DOTS:ST,NO_DOT_SLASH:CT,NO_DOTS_SLASH:vT,QMARK_NO_DOT:RT,STAR:FT,START_ANCHOR:jg},TT={...$g,SLASH_LITERAL:`[${It}]`,QMARK:qg,STAR:`${qg}*?`,DOTS_SLASH:`${rr}{1,2}(?:[${It}]|$)`,NO_DOT:`(?!${rr})`,NO_DOTS:`(?!(?:^|[${It}])${rr}{1,2}(?:[${It}]|$))`,NO_DOT_SLASH:`(?!${rr}{0,1}(?:[${It}]|$))`,NO_DOTS_SLASH:`(?!${rr}{1,2}(?:[${It}]|$))`,QMARK_NO_DOT:`[^.${It}]`,START_ANCHOR:`(?:^|[${It}])`,END_ANCHOR:`(?:[${It}]|$)`},OT={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"};Ug.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:OT,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:bT.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?TT:$g}}});var Qi=b(Ze=>{"use strict";var kT=require("path"),PT=process.platform==="win32",{REGEX_BACKSLASH:BT,REGEX_REMOVE_BACKSLASH:IT,REGEX_SPECIAL_CHARS:LT,REGEX_SPECIAL_CHARS_GLOBAL:NT}=Zi();Ze.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Ze.hasRegexChars=t=>LT.test(t);Ze.isRegexChar=t=>t.length===1&&Ze.hasRegexChars(t);Ze.escapeRegex=t=>t.replace(NT,"\\$1");Ze.toPosixSlashes=t=>t.replace(BT,"/");Ze.removeBackslashes=t=>t.replace(IT,e=>e==="\\"?"":e);Ze.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Ze.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:PT===!0||kT.sep==="\\";Ze.escapeLast=(t,e,r)=>{let n=t.lastIndexOf(e,r);return n===-1?t:t[n-1]==="\\"?Ze.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`};Ze.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Ze.wrapOutput=(t,e={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${t})${i}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Xg=b((s6,Jg)=>{"use strict";var Gg=Qi(),{CHAR_ASTERISK:Gc,CHAR_AT:MT,CHAR_BACKWARD_SLASH:es,CHAR_COMMA:qT,CHAR_DOT:Wc,CHAR_EXCLAMATION_MARK:zc,CHAR_FORWARD_SLASH:Kg,CHAR_LEFT_CURLY_BRACE:Vc,CHAR_LEFT_PARENTHESES:Yc,CHAR_LEFT_SQUARE_BRACKET:HT,CHAR_PLUS:jT,CHAR_QUESTION_MARK:Wg,CHAR_RIGHT_CURLY_BRACE:$T,CHAR_RIGHT_PARENTHESES:zg,CHAR_RIGHT_SQUARE_BRACKET:UT}=Zi(),Vg=t=>t===Kg||t===es,Yg=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},GT=(t,e)=>{let r=e||{},n=t.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=t,c=-1,l=0,f=0,h=!1,p=!1,m=!1,_=!1,g=!1,D=!1,C=!1,q=!1,$=!1,N=!1,K=0,z,W,ee={value:"",depth:0,isGlob:!1},_e=()=>c>=n,R=()=>u.charCodeAt(c+1),O=()=>(z=W,u.charCodeAt(++c));for(;c<n;){W=O();let j;if(W===es){C=ee.backslashes=!0,W=O(),W===Vc&&(D=!0);continue}if(D===!0||W===Vc){for(K++;_e()!==!0&&(W=O());){if(W===es){C=ee.backslashes=!0,O();continue}if(W===Vc){K++;continue}if(D!==!0&&W===Wc&&(W=O())===Wc){if(h=ee.isBrace=!0,m=ee.isGlob=!0,N=!0,i===!0)continue;break}if(D!==!0&&W===qT){if(h=ee.isBrace=!0,m=ee.isGlob=!0,N=!0,i===!0)continue;break}if(W===$T&&(K--,K===0)){D=!1,h=ee.isBrace=!0,N=!0;break}}if(i===!0)continue;break}if(W===Kg){if(s.push(c),o.push(ee),ee={value:"",depth:0,isGlob:!1},N===!0)continue;if(z===Wc&&c===l+1){l+=2;continue}f=c+1;continue}if(r.noext!==!0&&(W===jT||W===MT||W===Gc||W===Wg||W===zc)===!0&&R()===Yc){if(m=ee.isGlob=!0,_=ee.isExtglob=!0,N=!0,W===zc&&c===l&&($=!0),i===!0){for(;_e()!==!0&&(W=O());){if(W===es){C=ee.backslashes=!0,W=O();continue}if(W===zg){m=ee.isGlob=!0,N=!0;break}}continue}break}if(W===Gc){if(z===Gc&&(g=ee.isGlobstar=!0),m=ee.isGlob=!0,N=!0,i===!0)continue;break}if(W===Wg){if(m=ee.isGlob=!0,N=!0,i===!0)continue;break}if(W===HT){for(;_e()!==!0&&(j=O());){if(j===es){C=ee.backslashes=!0,O();continue}if(j===UT){p=ee.isBracket=!0,m=ee.isGlob=!0,N=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&W===zc&&c===l){q=ee.negated=!0,l++;continue}if(r.noparen!==!0&&W===Yc){if(m=ee.isGlob=!0,i===!0){for(;_e()!==!0&&(W=O());){if(W===Yc){C=ee.backslashes=!0,W=O();continue}if(W===zg){N=!0;break}}continue}break}if(m===!0){if(N=!0,i===!0)continue;break}}r.noext===!0&&(_=!1,m=!1);let v=u,k="",A="";l>0&&(k=u.slice(0,l),u=u.slice(l),f-=l),v&&m===!0&&f>0?(v=u.slice(0,f),A=u.slice(f)):m===!0?(v="",A=u):v=u,v&&v!==""&&v!=="/"&&v!==u&&Vg(v.charCodeAt(v.length-1))&&(v=v.slice(0,-1)),r.unescape===!0&&(A&&(A=Gg.removeBackslashes(A)),v&&C===!0&&(v=Gg.removeBackslashes(v)));let x={prefix:k,input:t,start:l,base:v,glob:A,isBrace:h,isBracket:p,isGlob:m,isExtglob:_,isGlobstar:g,negated:q,negatedExtglob:$};if(r.tokens===!0&&(x.maxDepth=0,Vg(W)||o.push(ee),x.tokens=o),r.parts===!0||r.tokens===!0){let j;for(let U=0;U<s.length;U++){let V=j?j+1:l,ae=s[U],re=t.slice(V,ae);r.tokens&&(U===0&&l!==0?(o[U].isPrefix=!0,o[U].value=k):o[U].value=re,Yg(o[U]),x.maxDepth+=o[U].depth),(U!==0||re!=="")&&a.push(re),j=ae}if(j&&j+1<t.length){let U=t.slice(j+1);a.push(U),r.tokens&&(o[o.length-1].value=U,Yg(o[o.length-1]),x.maxDepth+=o[o.length-1].depth)}x.slashes=s,x.parts=a}return x};Jg.exports=GT});var ey=b((o6,Qg)=>{"use strict";var yo=Zi(),ot=Qi(),{MAX_LENGTH:_o,POSIX_REGEX_SOURCE:WT,REGEX_NON_SPECIAL_CHARS:zT,REGEX_SPECIAL_CHARS_BACKREF:VT,REPLACEMENTS:Zg}=yo,YT=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(i=>ot.escapeRegex(i)).join("..")}return r},Ln=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Kc=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Zg[t]||t;let r={...e},n=typeof r.maxLength=="number"?Math.min(_o,r.maxLength):_o,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=ot.isWindows(e),c=yo.globChars(u),l=yo.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:h,SLASH_LITERAL:p,ONE_CHAR:m,DOTS_SLASH:_,NO_DOT:g,NO_DOT_SLASH:D,NO_DOTS_SLASH:C,QMARK:q,QMARK_NO_DOT:$,STAR:N,START_ANCHOR:K}=c,z=I=>`(${a}(?:(?!${K}${I.dot?_:f}).)*?)`,W=r.dot?"":g,ee=r.dot?q:$,_e=r.bash===!0?z(r):N;r.capture&&(_e=`(${_e})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let R={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=ot.removePrefix(t,R),i=t.length;let O=[],v=[],k=[],A=s,x,j=()=>R.index===i-1,U=R.peek=(I=1)=>t[R.index+I],V=R.advance=()=>t[++R.index]||"",ae=()=>t.slice(R.index+1),re=(I="",ce=0)=>{R.consumed+=I,R.index+=ce},Ve=I=>{R.output+=I.output!=null?I.output:I.value,re(I.value)},Ct=()=>{let I=1;for(;U()==="!"&&(U(2)!=="("||U(3)==="?");)V(),R.start++,I++;return I%2===0?!1:(R.negated=!0,R.start++,!0)},Ne=I=>{R[I]++,k.push(I)},nt=I=>{R[I]--,k.pop()},Q=I=>{if(A.type==="globstar"){let ce=R.braces>0&&(I.type==="comma"||I.type==="brace"),B=I.extglob===!0||O.length&&(I.type==="pipe"||I.type==="paren");I.type!=="slash"&&I.type!=="paren"&&!ce&&!B&&(R.output=R.output.slice(0,-A.output.length),A.type="star",A.value="*",A.output=_e,R.output+=A.output)}if(O.length&&I.type!=="paren"&&(O[O.length-1].inner+=I.value),(I.value||I.output)&&Ve(I),A&&A.type==="text"&&I.type==="text"){A.value+=I.value,A.output=(A.output||"")+I.value;return}I.prev=A,o.push(I),A=I},Xr=(I,ce)=>{let B={...l[ce],conditions:1,inner:""};B.prev=A,B.parens=R.parens,B.output=R.output;let d=(r.capture?"(":"")+B.open;Ne("parens"),Q({type:I,value:ce,output:R.output?"":m}),Q({type:"paren",extglob:!0,value:V(),output:d}),O.push(B)},it=I=>{let ce=I.close+(r.capture?")":""),B;if(I.type==="negate"){let d=_e;if(I.inner&&I.inner.length>1&&I.inner.includes("/")&&(d=z(r)),(d!==_e||j()||/^\)+$/.test(ae()))&&(ce=I.close=`)$))${d}`),I.inner.includes("*")&&(B=ae())&&/^\.[^\\/.]+$/.test(B)){let w=Kc(B,{...e,fastpaths:!1}).output;ce=I.close=`)${w})${d})`}I.prev.type==="bos"&&(R.negatedExtglob=!0)}Q({type:"paren",extglob:!0,value:x,output:ce}),nt("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let I=!1,ce=t.replace(VT,(B,d,w,y,T,H)=>y==="\\"?(I=!0,B):y==="?"?d?d+y+(T?q.repeat(T.length):""):H===0?ee+(T?q.repeat(T.length):""):q.repeat(w.length):y==="."?f.repeat(w.length):y==="*"?d?d+y+(T?_e:""):_e:d?B:`\\${B}`);return I===!0&&(r.unescape===!0?ce=ce.replace(/\\/g,""):ce=ce.replace(/\\+/g,B=>B.length%2===0?"\\\\":B?"\\":"")),ce===t&&r.contains===!0?(R.output=t,R):(R.output=ot.wrapOutput(ce,R,e),R)}for(;!j();){if(x=V(),x==="\0")continue;if(x==="\\"){let B=U();if(B==="/"&&r.bash!==!0||B==="."||B===";")continue;if(!B){x+="\\",Q({type:"text",value:x});continue}let d=/^\\+/.exec(ae()),w=0;if(d&&d[0].length>2&&(w=d[0].length,R.index+=w,w%2!==0&&(x+="\\")),r.unescape===!0?x=V():x+=V(),R.brackets===0){Q({type:"text",value:x});continue}}if(R.brackets>0&&(x!=="]"||A.value==="["||A.value==="[^")){if(r.posix!==!1&&x===":"){let B=A.value.slice(1);if(B.includes("[")&&(A.posix=!0,B.includes(":"))){let d=A.value.lastIndexOf("["),w=A.value.slice(0,d),y=A.value.slice(d+2),T=WT[y];if(T){A.value=w+T,R.backtrack=!0,V(),!s.output&&o.indexOf(A)===1&&(s.output=m);continue}}}(x==="["&&U()!==":"||x==="-"&&U()==="]")&&(x=`\\${x}`),x==="]"&&(A.value==="["||A.value==="[^")&&(x=`\\${x}`),r.posix===!0&&x==="!"&&A.value==="["&&(x="^"),A.value+=x,Ve({value:x});continue}if(R.quotes===1&&x!=='"'){x=ot.escapeRegex(x),A.value+=x,Ve({value:x});continue}if(x==='"'){R.quotes=R.quotes===1?0:1,r.keepQuotes===!0&&Q({type:"text",value:x});continue}if(x==="("){Ne("parens"),Q({type:"paren",value:x});continue}if(x===")"){if(R.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Ln("opening","("));let B=O[O.length-1];if(B&&R.parens===B.parens+1){it(O.pop());continue}Q({type:"paren",value:x,output:R.parens?")":"\\)"}),nt("parens");continue}if(x==="["){if(r.nobracket===!0||!ae().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Ln("closing","]"));x=`\\${x}`}else Ne("brackets");Q({type:"bracket",value:x});continue}if(x==="]"){if(r.nobracket===!0||A&&A.type==="bracket"&&A.value.length===1){Q({type:"text",value:x,output:`\\${x}`});continue}if(R.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Ln("opening","["));Q({type:"text",value:x,output:`\\${x}`});continue}nt("brackets");let B=A.value.slice(1);if(A.posix!==!0&&B[0]==="^"&&!B.includes("/")&&(x=`/${x}`),A.value+=x,Ve({value:x}),r.literalBrackets===!1||ot.hasRegexChars(B))continue;let d=ot.escapeRegex(A.value);if(R.output=R.output.slice(0,-A.value.length),r.literalBrackets===!0){R.output+=d,A.value=d;continue}A.value=`(${a}${d}|${A.value})`,R.output+=A.value;continue}if(x==="{"&&r.nobrace!==!0){Ne("braces");let B={type:"brace",value:x,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};v.push(B),Q(B);continue}if(x==="}"){let B=v[v.length-1];if(r.nobrace===!0||!B){Q({type:"text",value:x,output:x});continue}let d=")";if(B.dots===!0){let w=o.slice(),y=[];for(let T=w.length-1;T>=0&&(o.pop(),w[T].type!=="brace");T--)w[T].type!=="dots"&&y.unshift(w[T].value);d=YT(y,r),R.backtrack=!0}if(B.comma!==!0&&B.dots!==!0){let w=R.output.slice(0,B.outputIndex),y=R.tokens.slice(B.tokensIndex);B.value=B.output="\\{",x=d="\\}",R.output=w;for(let T of y)R.output+=T.output||T.value}Q({type:"brace",value:x,output:d}),nt("braces"),v.pop();continue}if(x==="|"){O.length>0&&O[O.length-1].conditions++,Q({type:"text",value:x});continue}if(x===","){let B=x,d=v[v.length-1];d&&k[k.length-1]==="braces"&&(d.comma=!0,B="|"),Q({type:"comma",value:x,output:B});continue}if(x==="/"){if(A.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",o.pop(),A=s;continue}Q({type:"slash",value:x,output:p});continue}if(x==="."){if(R.braces>0&&A.type==="dot"){A.value==="."&&(A.output=f);let B=v[v.length-1];A.type="dots",A.output+=x,A.value+=x,B.dots=!0;continue}if(R.braces+R.parens===0&&A.type!=="bos"&&A.type!=="slash"){Q({type:"text",value:x,output:f});continue}Q({type:"dot",value:x,output:f});continue}if(x==="?"){if(!(A&&A.value==="(")&&r.noextglob!==!0&&U()==="("&&U(2)!=="?"){Xr("qmark",x);continue}if(A&&A.type==="paren"){let d=U(),w=x;if(d==="<"&&!ot.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(A.value==="("&&!/[!=<:]/.test(d)||d==="<"&&!/<([!=]|\w+>)/.test(ae()))&&(w=`\\${x}`),Q({type:"text",value:x,output:w});continue}if(r.dot!==!0&&(A.type==="slash"||A.type==="bos")){Q({type:"qmark",value:x,output:$});continue}Q({type:"qmark",value:x,output:q});continue}if(x==="!"){if(r.noextglob!==!0&&U()==="("&&(U(2)!=="?"||!/[!=<:]/.test(U(3)))){Xr("negate",x);continue}if(r.nonegate!==!0&&R.index===0){Ct();continue}}if(x==="+"){if(r.noextglob!==!0&&U()==="("&&U(2)!=="?"){Xr("plus",x);continue}if(A&&A.value==="("||r.regex===!1){Q({type:"plus",value:x,output:h});continue}if(A&&(A.type==="bracket"||A.type==="paren"||A.type==="brace")||R.parens>0){Q({type:"plus",value:x});continue}Q({type:"plus",value:h});continue}if(x==="@"){if(r.noextglob!==!0&&U()==="("&&U(2)!=="?"){Q({type:"at",extglob:!0,value:x,output:""});continue}Q({type:"text",value:x});continue}if(x!=="*"){(x==="$"||x==="^")&&(x=`\\${x}`);let B=zT.exec(ae());B&&(x+=B[0],R.index+=B[0].length),Q({type:"text",value:x});continue}if(A&&(A.type==="globstar"||A.star===!0)){A.type="star",A.star=!0,A.value+=x,A.output=_e,R.backtrack=!0,R.globstar=!0,re(x);continue}let I=ae();if(r.noextglob!==!0&&/^\([^?]/.test(I)){Xr("star",x);continue}if(A.type==="star"){if(r.noglobstar===!0){re(x);continue}let B=A.prev,d=B.prev,w=B.type==="slash"||B.type==="bos",y=d&&(d.type==="star"||d.type==="globstar");if(r.bash===!0&&(!w||I[0]&&I[0]!=="/")){Q({type:"star",value:x,output:""});continue}let T=R.braces>0&&(B.type==="comma"||B.type==="brace"),H=O.length&&(B.type==="pipe"||B.type==="paren");if(!w&&B.type!=="paren"&&!T&&!H){Q({type:"star",value:x,output:""});continue}for(;I.slice(0,3)==="/**";){let M=t[R.index+4];if(M&&M!=="/")break;I=I.slice(3),re("/**",3)}if(B.type==="bos"&&j()){A.type="globstar",A.value+=x,A.output=z(r),R.output=A.output,R.globstar=!0,re(x);continue}if(B.type==="slash"&&B.prev.type!=="bos"&&!y&&j()){R.output=R.output.slice(0,-(B.output+A.output).length),B.output=`(?:${B.output}`,A.type="globstar",A.output=z(r)+(r.strictSlashes?")":"|$)"),A.value+=x,R.globstar=!0,R.output+=B.output+A.output,re(x);continue}if(B.type==="slash"&&B.prev.type!=="bos"&&I[0]==="/"){let M=I[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(B.output+A.output).length),B.output=`(?:${B.output}`,A.type="globstar",A.output=`${z(r)}${p}|${p}${M})`,A.value+=x,R.output+=B.output+A.output,R.globstar=!0,re(x+V()),Q({type:"slash",value:"/",output:""});continue}if(B.type==="bos"&&I[0]==="/"){A.type="globstar",A.value+=x,A.output=`(?:^|${p}|${z(r)}${p})`,R.output=A.output,R.globstar=!0,re(x+V()),Q({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-A.output.length),A.type="globstar",A.output=z(r),A.value+=x,R.output+=A.output,R.globstar=!0,re(x);continue}let ce={type:"star",value:x,output:_e};if(r.bash===!0){ce.output=".*?",(A.type==="bos"||A.type==="slash")&&(ce.output=W+ce.output),Q(ce);continue}if(A&&(A.type==="bracket"||A.type==="paren")&&r.regex===!0){ce.output=x,Q(ce);continue}(R.index===R.start||A.type==="slash"||A.type==="dot")&&(A.type==="dot"?(R.output+=D,A.output+=D):r.dot===!0?(R.output+=C,A.output+=C):(R.output+=W,A.output+=W),U()!=="*"&&(R.output+=m,A.output+=m)),Q(ce)}for(;R.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ln("closing","]"));R.output=ot.escapeLast(R.output,"["),nt("brackets")}for(;R.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ln("closing",")"));R.output=ot.escapeLast(R.output,"("),nt("parens")}for(;R.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Ln("closing","}"));R.output=ot.escapeLast(R.output,"{"),nt("braces")}if(r.strictSlashes!==!0&&(A.type==="star"||A.type==="bracket")&&Q({type:"maybe_slash",value:"",output:`${p}?`}),R.backtrack===!0){R.output="";for(let I of R.tokens)R.output+=I.output!=null?I.output:I.value,I.suffix&&(R.output+=I.suffix)}return R};Kc.fastpaths=(t,e)=>{let r={...e},n=typeof r.maxLength=="number"?Math.min(_o,r.maxLength):_o,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);t=Zg[t]||t;let s=ot.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:f,NO_DOTS_SLASH:h,STAR:p,START_ANCHOR:m}=yo.globChars(s),_=r.dot?f:l,g=r.dot?h:l,D=r.capture?"":"?:",C={negated:!1,prefix:""},q=r.bash===!0?".*?":p;r.capture&&(q=`(${q})`);let $=W=>W.noglobstar===!0?q:`(${D}(?:(?!${m}${W.dot?c:o}).)*?)`,N=W=>{switch(W){case"*":return`${_}${u}${q}`;case".*":return`${o}${u}${q}`;case"*.*":return`${_}${q}${o}${u}${q}`;case"*/*":return`${_}${q}${a}${u}${g}${q}`;case"**":return _+$(r);case"**/*":return`(?:${_}${$(r)}${a})?${g}${u}${q}`;case"**/*.*":return`(?:${_}${$(r)}${a})?${g}${q}${o}${u}${q}`;case"**/.*":return`(?:${_}${$(r)}${a})?${o}${u}${q}`;default:{let ee=/^(.*?)\.(\w+)$/.exec(W);if(!ee)return;let _e=N(ee[1]);return _e?_e+o+ee[2]:void 0}}},K=ot.removePrefix(t,C),z=N(K);return z&&r.strictSlashes!==!0&&(z+=`${a}?`),z};Qg.exports=Kc});var ry=b((a6,ty)=>{"use strict";var KT=require("path"),JT=Xg(),Jc=ey(),Xc=Qi(),XT=Zi(),ZT=t=>t&&typeof t=="object"&&!Array.isArray(t),we=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(h=>we(h,e,r));return h=>{for(let p of l){let m=p(h);if(m)return m}return!1}}let n=ZT(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},s=Xc.isWindows(e),o=n?we.compileRe(t,e):we.makeRe(t,e,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let l={...e,ignore:null,onMatch:null,onResult:null};u=we(i.ignore,l,r)}let c=(l,f=!1)=>{let{isMatch:h,match:p,output:m}=we.test(l,o,e,{glob:t,posix:s}),_={glob:t,state:a,regex:o,posix:s,input:l,output:m,match:p,isMatch:h};return typeof i.onResult=="function"&&i.onResult(_),h===!1?(_.isMatch=!1,f?_:!1):u(l)?(typeof i.onIgnore=="function"&&i.onIgnore(_),_.isMatch=!1,f?_:!1):(typeof i.onMatch=="function"&&i.onMatch(_),f?_:!0)};return r&&(c.state=a),c};we.test=(t,e,r,{glob:n,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?Xc.toPosixSlashes:null),a=t===n,u=a&&o?o(t):t;return a===!1&&(u=o?o(t):t,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=we.matchBase(t,e,r,i):a=e.exec(u)),{isMatch:!!a,match:a,output:u}};we.matchBase=(t,e,r,n=Xc.isWindows(r))=>(e instanceof RegExp?e:we.makeRe(e,r)).test(KT.basename(t));we.isMatch=(t,e,r)=>we(e,r)(t);we.parse=(t,e)=>Array.isArray(t)?t.map(r=>we.parse(r,e)):Jc(t,{...e,fastpaths:!1});we.scan=(t,e)=>JT(t,e);we.compileRe=(t,e,r=!1,n=!1)=>{if(r===!0)return t.output;let i=e||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let u=we.toRegex(a,e);return n===!0&&(u.state=t),u};we.makeRe=(t,e={},r=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=Jc.fastpaths(t,e)),i.output||(i=Jc(t,e)),we.compileRe(i,e,r,n)};we.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};we.constants=XT;ty.exports=we});var iy=b((u6,ny)=>{"use strict";ny.exports=ry()});var cy=b((c6,uy)=>{"use strict";var oy=require("util"),ay=Mg(),Lt=iy(),Zc=Qi(),sy=t=>t===""||t==="./",ge=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,i=new Set,s=new Set,o=0,a=l=>{s.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<e.length;l++){let f=Lt(String(e[l]),{...r,onResult:a},!0),h=f.state.negated||f.state.negatedExtglob;h&&o++;for(let p of t){let m=f(p,!0);(h?!m.isMatch:m.isMatch)&&(h?n.add(m.output):(n.delete(m.output),i.add(m.output)))}}let c=(o===e.length?[...s]:[...i]).filter(l=>!n.has(l));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(l=>l.replace(/\\/g,"")):e}return c};ge.match=ge;ge.matcher=(t,e)=>Lt(t,e);ge.isMatch=(t,e,r)=>Lt(e,r)(t);ge.any=ge.isMatch;ge.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(ge(t,e,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};ge.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${oy.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>ge.contains(t,n,r));if(typeof e=="string"){if(sy(t)||sy(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return ge.isMatch(t,e,{...r,contains:!0})};ge.matchKeys=(t,e,r)=>{if(!Zc.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=ge(Object.keys(t),e,r),i={};for(let s of n)i[s]=t[s];return i};ge.some=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=Lt(String(i),r);if(n.some(o=>s(o)))return!0}return!1};ge.every=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=Lt(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};ge.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${oy.inspect(t)}"`);return[].concat(e).every(n=>Lt(n,r)(t))};ge.capture=(t,e,r)=>{let n=Zc.isWindows(r),s=Lt.makeRe(String(t),{...r,capture:!0}).exec(n?Zc.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};ge.makeRe=(...t)=>Lt.makeRe(...t);ge.scan=(...t)=>Lt.scan(...t);ge.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let i of ay(String(n),e))r.push(Lt.parse(i,e));return r};ge.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:ay(t,e)};ge.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return ge.braces(t,{...e,expand:!0})};uy.exports=ge});var yy=b(Y=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});Y.matchAny=Y.convertPatternsToRe=Y.makeRe=Y.getPatternParts=Y.expandBraceExpansion=Y.expandPatternsWithBraceExpansion=Y.isAffectDepthOfReadingPattern=Y.endsWithSlashGlobStar=Y.hasGlobStar=Y.getBaseDirectory=Y.isPatternRelatedToParentDirectory=Y.getPatternsOutsideCurrentDirectory=Y.getPatternsInsideCurrentDirectory=Y.getPositivePatterns=Y.getNegativePatterns=Y.isPositivePattern=Y.isNegativePattern=Y.convertToNegativePattern=Y.convertToPositivePattern=Y.isDynamicPattern=Y.isStaticPattern=void 0;var QT=require("path"),eO=tg(),Qc=cy(),ly="**",tO="\\",rO=/[*?]|^!/,nO=/\[[^[]*]/,iO=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,sO=/[!*+?@]\([^(]*\)/,oO=/,|\.\./;function fy(t,e={}){return!hy(t,e)}Y.isStaticPattern=fy;function hy(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(tO)||rO.test(t)||nO.test(t)||iO.test(t)||e.extglob!==!1&&sO.test(t)||e.braceExpansion!==!1&&aO(t))}Y.isDynamicPattern=hy;function aO(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return oO.test(n)}function uO(t){return Eo(t)?t.slice(1):t}Y.convertToPositivePattern=uO;function cO(t){return"!"+t}Y.convertToNegativePattern=cO;function Eo(t){return t.startsWith("!")&&t[1]!=="("}Y.isNegativePattern=Eo;function dy(t){return!Eo(t)}Y.isPositivePattern=dy;function lO(t){return t.filter(Eo)}Y.getNegativePatterns=lO;function fO(t){return t.filter(dy)}Y.getPositivePatterns=fO;function hO(t){return t.filter(e=>!el(e))}Y.getPatternsInsideCurrentDirectory=hO;function dO(t){return t.filter(el)}Y.getPatternsOutsideCurrentDirectory=dO;function el(t){return t.startsWith("..")||t.startsWith("./..")}Y.isPatternRelatedToParentDirectory=el;function pO(t){return eO(t,{flipBackslashes:!1})}Y.getBaseDirectory=pO;function mO(t){return t.includes(ly)}Y.hasGlobStar=mO;function py(t){return t.endsWith("/"+ly)}Y.endsWithSlashGlobStar=py;function gO(t){let e=QT.basename(t);return py(t)||fy(e)}Y.isAffectDepthOfReadingPattern=gO;function yO(t){return t.reduce((e,r)=>e.concat(my(r)),[])}Y.expandPatternsWithBraceExpansion=yO;function my(t){return Qc.braces(t,{expand:!0,nodupes:!0})}Y.expandBraceExpansion=my;function _O(t,e){let{parts:r}=Qc.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}Y.getPatternParts=_O;function gy(t,e){return Qc.makeRe(t,e)}Y.makeRe=gy;function EO(t,e){return t.map(r=>gy(r,e))}Y.convertPatternsToRe=EO;function bO(t,e){return e.some(r=>r.test(t))}Y.matchAny=bO});var Dy=b((f6,by)=>{"use strict";var DO=require("stream"),_y=DO.PassThrough,wO=Array.prototype.slice;by.exports=AO;function AO(){let t=[],e=wO.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=_y(n);function a(){for(let l=0,f=arguments.length;l<f;l++)t.push(Ey(arguments[l],n));return u(),this}function u(){if(r)return;r=!0;let l=t.shift();if(!l){process.nextTick(c);return}Array.isArray(l)||(l=[l]);let f=l.length+1;function h(){--f>0||(r=!1,u())}function p(m){function _(){m.removeListener("merge2UnpipeEnd",_),m.removeListener("end",_),s&&m.removeListener("error",g),h()}function g(D){o.emit("error",D)}if(m._readableState.endEmitted)return h();m.on("merge2UnpipeEnd",_),m.on("end",_),s&&m.on("error",g),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<l.length;m++)p(l[m]);h()}function c(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function Ey(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=Ey(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(_y(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Ay=b(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.merge=void 0;var xO=Dy();function SO(t){let e=xO(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>wy(t)),e.once("end",()=>wy(t)),e}bo.merge=SO;function wy(t){t.forEach(e=>e.emit("close"))}});var xy=b(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.isEmpty=Nn.isString=void 0;function CO(t){return typeof t=="string"}Nn.isString=CO;function vO(t){return t===""}Nn.isEmpty=vO});var nr=b(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.string=qe.stream=qe.pattern=qe.path=qe.fs=qe.errno=qe.array=void 0;var RO=W0();qe.array=RO;var FO=z0();qe.errno=FO;var TO=V0();qe.fs=TO;var OO=Y0();qe.path=OO;var kO=yy();qe.pattern=kO;var PO=Ay();qe.stream=PO;var BO=xy();qe.string=BO});var vy=b(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.convertPatternGroupToTask=He.convertPatternGroupsToTasks=He.groupPatternsByBaseDirectory=He.getNegativePatternsAsPositive=He.getPositivePatterns=He.convertPatternsToTasks=He.generate=void 0;var ir=nr();function IO(t,e){let r=Sy(t),n=Cy(t,e.ignore),i=r.filter(u=>ir.pattern.isStaticPattern(u,e)),s=r.filter(u=>ir.pattern.isDynamicPattern(u,e)),o=tl(i,n,!1),a=tl(s,n,!0);return o.concat(a)}He.generate=IO;function tl(t,e,r){let n=[],i=ir.pattern.getPatternsOutsideCurrentDirectory(t),s=ir.pattern.getPatternsInsideCurrentDirectory(t),o=rl(i),a=rl(s);return n.push(...nl(o,e,r)),"."in a?n.push(il(".",s,e,r)):n.push(...nl(a,e,r)),n}He.convertPatternsToTasks=tl;function Sy(t){return ir.pattern.getPositivePatterns(t)}He.getPositivePatterns=Sy;function Cy(t,e){return ir.pattern.getNegativePatterns(t).concat(e).map(ir.pattern.convertToPositivePattern)}He.getNegativePatternsAsPositive=Cy;function rl(t){let e={};return t.reduce((r,n)=>{let i=ir.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},e)}He.groupPatternsByBaseDirectory=rl;function nl(t,e,r){return Object.keys(t).map(n=>il(n,t[n],e,r))}He.convertPatternGroupsToTasks=nl;function il(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(ir.pattern.convertToNegativePattern))}}He.convertPatternGroupToTask=il});var Fy=b(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.removeDuplicateSlashes=Mn.transform=void 0;var LO=/(?!^)\/{2,}/g;function NO(t){return t.map(e=>Ry(e))}Mn.transform=NO;function Ry(t){return t.replace(LO,"/")}Mn.removeDuplicateSlashes=Ry});var Oy=b(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.read=void 0;function MO(t,e,r){e.fs.lstat(t,(n,i)=>{if(n!==null){Ty(r,n);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){sl(r,i);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Ty(r,s);return}sl(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),sl(r,o)})})}Do.read=MO;function Ty(t,e){t(e)}function sl(t,e){t(null,e)}});var ky=b(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.read=void 0;function qO(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}wo.read=qO});var Py=b(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.createFileSystemAdapter=vr.FILE_SYSTEM_ADAPTER=void 0;var Ao=require("fs");vr.FILE_SYSTEM_ADAPTER={lstat:Ao.lstat,stat:Ao.stat,lstatSync:Ao.lstatSync,statSync:Ao.statSync};function HO(t){return t===void 0?vr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},vr.FILE_SYSTEM_ADAPTER),t)}vr.createFileSystemAdapter=HO});var By=b(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});var jO=Py(),ol=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=jO.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e!=null?e:r}};al.default=ol});var on=b(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.statSync=Rr.stat=Rr.Settings=void 0;var Iy=Oy(),$O=ky(),ul=By();Rr.Settings=ul.default;function UO(t,e,r){if(typeof e=="function"){Iy.read(t,cl(),e);return}Iy.read(t,cl(e),r)}Rr.stat=UO;function GO(t,e){let r=cl(e);return $O.read(t,r)}Rr.statSync=GO;function cl(t={}){return t instanceof ul.default?t:new ul.default(t)}});var My=b((w6,Ny)=>{var Ly;Ny.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(Ly||(Ly=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Hy=b((A6,qy)=>{qy.exports=zO;var WO=My();function zO(t,e){let r,n,i,s=!0;Array.isArray(t)?(r=[],n=t.length):(i=Object.keys(t),r={},n=i.length);function o(u){function c(){e&&e(u,r),e=null}s?WO(c):c()}function a(u,c,l){r[u]=l,(--n===0||c)&&o(c)}n?i?i.forEach(function(u){t[u](function(c,l){a(u,c,l)})}):t.forEach(function(u,c){u(function(l,f){a(c,l,f)})}):o(null),s=!1}});var ll=b(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var xo=process.versions.node.split(".");if(xo[0]===void 0||xo[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var jy=Number.parseInt(xo[0],10),VO=Number.parseInt(xo[1],10),$y=10,YO=10,KO=jy>$y,JO=jy===$y&&VO>=YO;So.IS_SUPPORT_READDIR_WITH_FILE_TYPES=KO||JO});var Uy=b(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.createDirentFromStats=void 0;var fl=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function XO(t,e){return new fl(t,e)}Co.createDirentFromStats=XO});var hl=b(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.fs=void 0;var ZO=Uy();vo.fs=ZO});var dl=b(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.joinPathSegments=void 0;function QO(t,e,r){return t.endsWith(r)?t+e:t+r+e}Ro.joinPathSegments=QO});var Ky=b(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.readdir=Fr.readdirWithFileTypes=Fr.read=void 0;var ek=on(),Gy=Hy(),tk=ll(),Wy=hl(),zy=dl();function rk(t,e,r){if(!e.stats&&tk.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Vy(t,e,r);return}Yy(t,e,r)}Fr.read=rk;function Vy(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,i)=>{if(n!==null){Fo(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:zy.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){pl(r,s);return}let o=s.map(a=>nk(a,e));Gy(o,(a,u)=>{if(a!==null){Fo(r,a);return}pl(r,u)})})}Fr.readdirWithFileTypes=Vy;function nk(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,i)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=Wy.fs.createDirentFromStats(t.name,i),r(null,t)})}}function Yy(t,e,r){e.fs.readdir(t,(n,i)=>{if(n!==null){Fo(r,n);return}let s=i.map(o=>{let a=zy.joinPathSegments(t,o,e.pathSegmentSeparator);return u=>{ek.stat(a,e.fsStatSettings,(c,l)=>{if(c!==null){u(c);return}let f={name:o,path:a,dirent:Wy.fs.createDirentFromStats(o,l)};e.stats&&(f.stats=l),u(null,f)})}});Gy(s,(o,a)=>{if(o!==null){Fo(r,o);return}pl(r,a)})})}Fr.readdir=Yy;function Fo(t,e){t(e)}function pl(t,e){t(null,e)}});var e_=b(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.readdir=Tr.readdirWithFileTypes=Tr.read=void 0;var ik=on(),sk=ll(),Jy=hl(),Xy=dl();function ok(t,e){return!e.stats&&sk.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Zy(t,e):Qy(t,e)}Tr.read=ok;function Zy(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Xy.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(i.path);i.dirent=Jy.fs.createDirentFromStats(i.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return i})}Tr.readdirWithFileTypes=Zy;function Qy(t,e){return e.fs.readdirSync(t).map(n=>{let i=Xy.joinPathSegments(t,n,e.pathSegmentSeparator),s=ik.statSync(i,e.fsStatSettings),o={name:n,path:i,dirent:Jy.fs.createDirentFromStats(n,s)};return e.stats&&(o.stats=s),o})}Tr.readdir=Qy});var t_=b(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.createFileSystemAdapter=Or.FILE_SYSTEM_ADAPTER=void 0;var qn=require("fs");Or.FILE_SYSTEM_ADAPTER={lstat:qn.lstat,stat:qn.stat,lstatSync:qn.lstatSync,statSync:qn.statSync,readdir:qn.readdir,readdirSync:qn.readdirSync};function ak(t){return t===void 0?Or.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Or.FILE_SYSTEM_ADAPTER),t)}Or.createFileSystemAdapter=ak});var r_=b(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var uk=require("path"),ck=on(),lk=t_(),ml=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=lk.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,uk.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new ck.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};gl.default=ml});var To=b(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.Settings=kr.scandirSync=kr.scandir=void 0;var n_=Ky(),fk=e_(),yl=r_();kr.Settings=yl.default;function hk(t,e,r){if(typeof e=="function"){n_.read(t,_l(),e);return}n_.read(t,_l(e),r)}kr.scandir=hk;function dk(t,e){let r=_l(e);return fk.read(t,r)}kr.scandirSync=dk;function _l(t={}){return t instanceof yl.default?t:new yl.default(t)}});var s_=b((P6,i_)=>{"use strict";function pk(t){var e=new t,r=e;function n(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}i_.exports=pk});var a_=b((B6,El)=>{"use strict";var mk=s_();function o_(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=mk(gk),i=null,s=null,o=0,a=null,u={push:_,drain:dt,saturated:dt,pause:l,paused:!1,concurrency:r,running:c,resume:p,idle:m,length:f,getQueue:h,unshift:g,empty:dt,kill:C,killAndDrain:q,error:$};return u;function c(){return o}function l(){u.paused=!0}function f(){for(var N=i,K=0;N;)N=N.next,K++;return K}function h(){for(var N=i,K=[];N;)K.push(N.value),N=N.next;return K}function p(){if(u.paused){u.paused=!1;for(var N=0;N<u.concurrency;N++)o++,D()}}function m(){return o===0&&u.length()===0}function _(N,K){var z=n.get();z.context=t,z.release=D,z.value=N,z.callback=K||dt,z.errorHandler=a,o===u.concurrency||u.paused?s?(s.next=z,s=z):(i=z,s=z,u.saturated()):(o++,e.call(t,z.value,z.worked))}function g(N,K){var z=n.get();z.context=t,z.release=D,z.value=N,z.callback=K||dt,o===u.concurrency||u.paused?i?(z.next=i,i=z):(i=z,s=z,u.saturated()):(o++,e.call(t,z.value,z.worked))}function D(N){N&&n.release(N);var K=i;K?u.paused?o--:(s===i&&(s=null),i=K.next,K.next=null,e.call(t,K.value,K.worked),s===null&&u.empty()):--o===0&&u.drain()}function C(){i=null,s=null,u.drain=dt}function q(){i=null,s=null,u.drain(),u.drain=dt}function $(N){a=N}}function dt(){}function gk(){this.value=null,this.callback=dt,this.next=null,this.release=dt,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var i=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=dt,t.errorHandler&&s(r,o),i.call(t.context,r,n),t.release(t)}}function yk(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(l,f){e.call(this,l).then(function(h){f(null,h)},f)}var i=o_(t,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=u,i.drained=c,i;function a(l){var f=new Promise(function(h,p){s(l,function(m,_){if(m){p(m);return}h(_)})});return f.catch(dt),f}function u(l){var f=new Promise(function(h,p){o(l,function(m,_){if(m){p(m);return}h(_)})});return f.catch(dt),f}function c(){var l=i.drain,f=new Promise(function(h){i.drain=function(){l(),h()}});return f}}El.exports=o_;El.exports.promise=yk});var Oo=b(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.joinPathSegments=Nt.replacePathSegmentSeparator=Nt.isAppliedFilter=Nt.isFatalError=void 0;function _k(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Nt.isFatalError=_k;function Ek(t,e){return t===null||t(e)}Nt.isAppliedFilter=Ek;function bk(t,e){return t.split(/[/\\]/).join(e)}Nt.replacePathSegmentSeparator=bk;function Dk(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Nt.joinPathSegments=Dk});var wl=b(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});var wk=Oo(),bl=class{constructor(e,r){this._root=e,this._settings=r,this._root=wk.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Dl.default=bl});var Sl=b(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var Ak=require("events"),xk=To(),Sk=a_(),ko=Oo(),Ck=wl(),Al=class extends Ck.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=xk.scandir,this._emitter=new Ak.EventEmitter,this._queue=Sk(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(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!ko.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=ko.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),ko.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&ko.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};xl.default=Al});var u_=b(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var vk=Sl(),Cl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new vk.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{Rk(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Fk(e,this._storage)}),this._reader.read()}};vl.default=Cl;function Rk(t,e){t(e)}function Fk(t,e){t(null,e)}});var c_=b(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var Tk=require("stream"),Ok=Sl(),Rl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Ok.default(this._root,this._settings),this._stream=new Tk.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Fl.default=Rl});var l_=b(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var kk=To(),Po=Oo(),Pk=wl(),Tl=class extends Pk.default{constructor(){super(...arguments),this._scandir=kk.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(e){if(Po.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=Po.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Po.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Po.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Ol.default=Tl});var f_=b(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});var Bk=l_(),kl=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Bk.default(this._root,this._settings)}read(){return this._reader.read()}};Pl.default=kl});var h_=b(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var Ik=require("path"),Lk=To(),Bl=class{constructor(e={}){this._options=e,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,Ik.sep),this.fsScandirSettings=new Lk.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Il.default=Bl});var Io=b(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.Settings=Mt.walkStream=Mt.walkSync=Mt.walk=void 0;var d_=u_(),Nk=c_(),Mk=f_(),Ll=h_();Mt.Settings=Ll.default;function qk(t,e,r){if(typeof e=="function"){new d_.default(t,Bo()).read(e);return}new d_.default(t,Bo(e)).read(r)}Mt.walk=qk;function Hk(t,e){let r=Bo(e);return new Mk.default(t,r).read()}Mt.walkSync=Hk;function jk(t,e){let r=Bo(e);return new Nk.default(t,r).read()}Mt.walkStream=jk;function Bo(t={}){return t instanceof Ll.default?t:new Ll.default(t)}});var Lo=b(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});var $k=require("path"),Uk=on(),p_=nr(),Nl=class{constructor(e){this._settings=e,this._fsStatSettings=new Uk.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return $k.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:p_.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!p_.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Ml.default=Nl});var jl=b(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var Gk=require("stream"),Wk=on(),zk=Io(),Vk=Lo(),ql=class extends Vk.default{constructor(){super(...arguments),this._walkStream=zk.walkStream,this._stat=Wk.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),i=new Gk.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],e[s],r).then(u=>{u!==null&&r.entryFilter(u)&&i.push(u),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(e,r,n){return this._getStat(e).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Hl.default=ql});var m_=b(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var Yk=Io(),Kk=Lo(),Jk=jl(),$l=class extends Kk.default{constructor(){super(...arguments),this._walkAsync=Yk.walk,this._readerStream=new Jk.default(this._settings)}dynamic(e,r){return new Promise((n,i)=>{this._walkAsync(e,r,(s,o)=>{s===null?n(o):i(s)})})}async static(e,r){let n=[],i=this._readerStream.static(e,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};Ul.default=$l});var g_=b(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var Hn=nr(),Gl=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let e=Hn.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(e){return Hn.pattern.getPatternParts(e,this._micromatchOptions).map(n=>Hn.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Hn.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return Hn.array.splitWhen(e,r=>r.dynamic&&Hn.pattern.hasGlobStar(r.pattern))}};Wl.default=Gl});var y_=b(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var Xk=g_(),zl=class extends Xk.default{match(e){let r=e.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((u,c)=>{let l=s.segments[c];return!!(l.dynamic&&l.patternRe.test(u)||!l.dynamic&&l.pattern===u)}))return!0}return!1}};Vl.default=zl});var __=b(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});var No=nr(),Zk=y_(),Yl=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(e,o,i,s)}_getMatcher(e){return new Zk.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(No.pattern.isAffectDepthOfReadingPattern);return No.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,i){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=No.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let i=e.split("/").length;return n-i}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!No.pattern.matchAny(e,r)}};Kl.default=Yl});var E_=b(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});var an=nr(),Jl=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let n=an.pattern.convertPatternsToRe(e,this._micromatchOptions),i=an.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(e,r,n){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,n))return!1;let i=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(e.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let n=an.path.makeAbsolute(this._settings.cwd,e);return an.pattern.matchAny(n,r)}_isMatchToPatterns(e,r,n){let i=an.path.removeLeadingDotSegment(e),s=an.pattern.matchAny(i,r);return!s&&n?an.pattern.matchAny(i+"/",r):s}};Xl.default=Jl});var b_=b(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});var Qk=nr(),Zl=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return Qk.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Ql.default=Zl});var w_=b(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});var D_=nr(),ef=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=D_.path.makeAbsolute(this._settings.cwd,r),r=D_.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};tf.default=ef});var Mo=b(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});var eP=require("path"),tP=__(),rP=E_(),nP=b_(),iP=w_(),rf=class{constructor(e){this._settings=e,this.errorFilter=new nP.default(this._settings),this.entryFilter=new rP.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new tP.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new iP.default(this._settings)}_getRootDirectory(e){return eP.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.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}}};nf.default=rf});var A_=b(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});var sP=m_(),oP=Mo(),sf=class extends oP.default{constructor(){super(...arguments),this._reader=new sP.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(s=>n.transform(s))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};of.default=sf});var x_=b(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});var aP=require("stream"),uP=jl(),cP=Mo(),af=class extends cP.default{constructor(){super(...arguments),this._reader=new uP.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),i=this.api(r,e,n),s=new aP.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};uf.default=af});var S_=b(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});var lP=on(),fP=Io(),hP=Lo(),cf=class extends hP.default{constructor(){super(...arguments),this._walkSync=fP.walkSync,this._statSync=lP.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let i of e){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(e,r,n){try{let i=this._getStat(e);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};lf.default=cf});var C_=b(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});var dP=S_(),pP=Mo(),ff=class extends pP.default{constructor(){super(...arguments),this._reader=new dP.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};hf.default=ff});var v_=b($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var jn=require("fs"),mP=require("os"),gP=Math.max(mP.cpus().length,1);$n.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:jn.lstat,lstatSync:jn.lstatSync,stat:jn.stat,statSync:jn.statSync,readdir:jn.readdir,readdirSync:jn.readdirSync};var df=class{constructor(e={}){this._options=e,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,gP),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(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},$n.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};$n.default=df});var O_=b((s5,T_)=>{"use strict";var R_=vy(),F_=Fy(),yP=A_(),_P=x_(),EP=C_(),pf=v_(),un=nr();async function mf(t,e){Un(t);let r=gf(t,yP.default,e),n=await Promise.all(r);return un.array.flatten(n)}(function(t){function e(o,a){Un(o);let u=gf(o,EP.default,a);return un.array.flatten(u)}t.sync=e;function r(o,a){Un(o);let u=gf(o,_P.default,a);return un.stream.merge(u)}t.stream=r;function n(o,a){Un(o);let u=F_.transform([].concat(o)),c=new pf.default(a);return R_.generate(u,c)}t.generateTasks=n;function i(o,a){Un(o);let u=new pf.default(a);return un.pattern.isDynamicPattern(o,u)}t.isDynamicPattern=i;function s(o){return Un(o),un.path.escape(o)}t.escapePath=s})(mf||(mf={}));function gf(t,e,r){let n=F_.transform([].concat(t)),i=new pf.default(r),s=R_.generate(n,i),o=new e(i);return s.map(o.read,o)}function Un(t){if(![].concat(t).every(n=>un.string.isString(n)&&!un.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}T_.exports=mf});var P_=b((o5,yf)=>{"use strict";var k_=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};yf.exports=k_;yf.exports.default=k_});var _f=b((a5,Ho)=>{"use strict";var bP=P_(),qo=new WeakMap,B_=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(qo.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return bP(s,t),qo.set(s,n),s};Ho.exports=B_;Ho.exports.default=B_;Ho.exports.callCount=t=>{if(!qo.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return qo.get(t)}});var I_=b((u5,jo)=>{jo.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&jo.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&jo.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Df=b((c5,zn)=>{var ye=global.process,cn=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};cn(ye)?(L_=require("assert"),Gn=I_(),N_=/^win/i.test(ye.platform),ts=require("events"),typeof ts!="function"&&(ts=ts.EventEmitter),ye.__signal_exit_emitter__?Fe=ye.__signal_exit_emitter__:(Fe=ye.__signal_exit_emitter__=new ts,Fe.count=0,Fe.emitted={}),Fe.infinite||(Fe.setMaxListeners(1/0),Fe.infinite=!0),zn.exports=function(t,e){if(!cn(global.process))return function(){};L_.equal(typeof t,"function","a callback must be provided for exit handler"),Wn===!1&&Ef();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){Fe.removeListener(r,t),Fe.listeners("exit").length===0&&Fe.listeners("afterexit").length===0&&$o()};return Fe.on(r,t),n},$o=function(){!Wn||!cn(global.process)||(Wn=!1,Gn.forEach(function(e){try{ye.removeListener(e,Uo[e])}catch{}}),ye.emit=Go,ye.reallyExit=bf,Fe.count-=1)},zn.exports.unload=$o,ln=function(e,r,n){Fe.emitted[e]||(Fe.emitted[e]=!0,Fe.emit(e,r,n))},Uo={},Gn.forEach(function(t){Uo[t]=function(){if(cn(global.process)){var r=ye.listeners(t);r.length===Fe.count&&($o(),ln("exit",null,t),ln("afterexit",null,t),N_&&t==="SIGHUP"&&(t="SIGINT"),ye.kill(ye.pid,t))}}}),zn.exports.signals=function(){return Gn},Wn=!1,Ef=function(){Wn||!cn(global.process)||(Wn=!0,Fe.count+=1,Gn=Gn.filter(function(e){try{return ye.on(e,Uo[e]),!0}catch{return!1}}),ye.emit=q_,ye.reallyExit=M_)},zn.exports.load=Ef,bf=ye.reallyExit,M_=function(e){cn(global.process)&&(ye.exitCode=e||0,ln("exit",ye.exitCode,null),ln("afterexit",ye.exitCode,null),bf.call(ye,ye.exitCode))},Go=ye.emit,q_=function(e,r){if(e==="exit"&&cn(global.process)){r!==void 0&&(ye.exitCode=r);var n=Go.apply(this,arguments);return ln("exit",ye.exitCode,null),ln("afterexit",ye.exitCode,null),n}else return Go.apply(this,arguments)}):zn.exports=function(){return function(){}};var L_,Gn,N_,ts,Fe,$o,ln,Uo,Wn,Ef,bf,M_,Go,q_});var j_=b((l5,H_)=>{"use strict";var DP=_f(),wP=Df();H_.exports=DP(()=>{wP(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var $_=b(Vn=>{"use strict";var AP=j_(),Wo=!1;Vn.show=(t=process.stderr)=>{t.isTTY&&(Wo=!1,t.write("\x1B[?25h"))};Vn.hide=(t=process.stderr)=>{t.isTTY&&(AP(),Wo=!0,t.write("\x1B[?25l"))};Vn.toggle=(t,e)=>{t!==void 0&&(Wo=t),Wo?Vn.show(e):Vn.hide(e)}});var U_=b((h5,xP)=>{xP.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"]}}});var z_=b((d5,W_)=>{"use strict";var zo=Object.assign({},U_()),G_=Object.keys(zo);Object.defineProperty(zo,"random",{get(){let t=Math.floor(Math.random()*G_.length),e=G_[t];return zo[e]}});W_.exports=zo});var Y_=b((p5,V_)=>{"use strict";var Pr=require("chalk"),SP=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",CP={info:Pr.blue("\u2139"),success:Pr.green("\u2714"),warning:Pr.yellow("\u26A0"),error:Pr.red("\u2716")},vP={info:Pr.blue("i"),success:Pr.green("\u221A"),warning:Pr.yellow("\u203C"),error:Pr.red("\xD7")};V_.exports=SP?CP:vP});var J_=b((m5,K_)=>{"use strict";K_.exports=({onlyFirst:t=!1}={})=>{let e=["[\\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(e,t?void 0:"g")}});var Z_=b((g5,X_)=>{"use strict";var RP=J_();X_.exports=t=>typeof t=="string"?t.replace(RP(),""):t});var Q_=b((y5,Vo)=>{var FP=function(){"use strict";function t(o,a,u,c){var l;typeof a=="object"&&(u=a.depth,c=a.prototype,l=a.filter,a=a.circular);var f=[],h=[],p=typeof Buffer!="undefined";typeof a=="undefined"&&(a=!0),typeof u=="undefined"&&(u=1/0);function m(_,g){if(_===null)return null;if(g==0)return _;var D,C;if(typeof _!="object")return _;if(t.__isArray(_))D=[];else if(t.__isRegExp(_))D=new RegExp(_.source,s(_)),_.lastIndex&&(D.lastIndex=_.lastIndex);else if(t.__isDate(_))D=new Date(_.getTime());else{if(p&&Buffer.isBuffer(_))return Buffer.allocUnsafe?D=Buffer.allocUnsafe(_.length):D=new Buffer(_.length),_.copy(D),D;typeof c=="undefined"?(C=Object.getPrototypeOf(_),D=Object.create(C)):(D=Object.create(c),C=c)}if(a){var q=f.indexOf(_);if(q!=-1)return h[q];f.push(_),h.push(D)}for(var $ in _){var N;C&&(N=Object.getOwnPropertyDescriptor(C,$)),!(N&&N.set==null)&&(D[$]=m(_[$],g-1))}return D}return m(o,u)}t.clonePrototype=function(a){if(a===null)return null;var u=function(){};return u.prototype=a,new u};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function n(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=n;function i(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=s,t}();typeof Vo=="object"&&Vo.exports&&(Vo.exports=FP)});var tE=b((_5,eE)=>{var TP=Q_();eE.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]=="undefined"&&(t[r]=TP(e[r]))}),t}});var nE=b((E5,rE)=>{rE.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]]});var aE=b((b5,wf)=>{"use strict";var OP=tE(),rs=nE(),sE={nul:0,control:0};wf.exports=function(e){return oE(e,sE)};wf.exports.config=function(t){return t=OP(t||{},sE),function(r){return oE(r,t)}};function oE(t,e){if(typeof t!="string")return iE(t,e);for(var r=0,n=0;n<t.length;n++){var i=iE(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function iE(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:kP(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function kP(t){var e=0,r=rs.length-1,n;if(t<rs[0][0]||t>rs[r][1])return!1;for(;r>=e;)if(n=Math.floor((e+r)/2),t>rs[n][1])e=n+1;else if(t<rs[n][0])r=n-1;else return!0;return!1}});var cE=b((D5,uE)=>{"use strict";uE.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var fE=b((w5,lE)=>{var Af=require("stream");lE.exports=Te;function Te(t){Af.apply(this),t=t||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=t.replace,this._prompt=t.prompt||null,this._hadControl=!1}Te.prototype=Object.create(Af.prototype);Object.defineProperty(Te.prototype,"constructor",{value:Te,enumerable:!1});Te.prototype.mute=function(){this.muted=!0};Te.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Te.prototype,"_onpipe",{value:PP,enumerable:!1,writable:!0,configurable:!0});function PP(t){this._src=t}Object.defineProperty(Te.prototype,"isTTY",{get:BP,set:IP,enumerable:!0,configurable:!0});function BP(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function IP(t){Object.defineProperty(this,"isTTY",{value:t,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Te.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Te.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Te.prototype.pipe=function(t,e){return this._dest=t,Af.prototype.pipe.call(this,t,e)};Te.prototype.pause=function(){if(this._src)return this._src.pause()};Te.prototype.resume=function(){if(this._src)return this._src.resume()};Te.prototype.write=function(t){if(this.muted){if(!this.replace)return!0;if(t.match(/^\u001b/))return t.indexOf(this._prompt)===0&&(t=t.substr(this._prompt.length),t=t.replace(/./g,this.replace),t=this._prompt+t),this._hadControl=!0,this.emit("data",t);this._prompt&&this._hadControl&&t.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),t=t.substr(this._prompt.length)),t=t.toString().replace(/./g,this.replace)}this.emit("data",t)};Te.prototype.end=function(t){this.muted&&(t&&this.replace?t=t.toString().replace(/./g,this.replace):t=null),t&&this.emit("data",t),this.emit("end")};function xf(t){return function(){var e=this._dest,r=this._src;e&&e[t]&&e[t].apply(e,arguments),r&&r[t]&&r[t].apply(r,arguments)}}Te.prototype.destroy=xf("destroy");Te.prototype.destroySoon=xf("destroySoon");Te.prototype.close=xf("close")});var dE=b((A5,vf)=>{"use strict";var LP=require("readline"),NP=require("chalk"),hE=$_(),Yo=z_(),Ko=Y_(),MP=Z_(),qP=aE(),HP=cE(),jP=fE(),Sf=Symbol("text"),Jo=Symbol("prefixText"),$P=3,Cf=class{constructor(){this.requests=0,this.mutedStream=new jP,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let e=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&n.includes($P)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,n,...i])}else Reflect.apply(process.stdin.emit,this,[r,n,...i])}}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=LP.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)}},Xo,Zo=class{constructor(e){Xo||(Xo=new Cf),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},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:HP({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(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e}_updateInterval(e){e!==void 0&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(process.platform==="win32")this._spinner=Yo.line;else if(e===void 0)this._spinner=Yo.dots;else if(Yo[e])this._spinner=Yo[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[Sf]}get prefixText(){return this[Jo]}get isSpinning(){return this.id!==void 0}updateLineCount(){let e=this.stream.columns||80,r=typeof this[Jo]=="string"?this[Jo]+"-":"";this.lineCount=MP(r+"--"+this[Sf]).split(`
|
|
4
4
|
`).reduce((n,i)=>n+Math.max(1,Math.ceil(qP(i)/e)),0)}set text(e){this[Sf]=e,this.updateLineCount()}set prefixText(e){this[Jo]=e,this.updateLineCount()}frame(){let{frames:e}=this.spinner,r=e[this.frameIndex];this.color&&(r=NP[this.color](r)),this.frameIndex=++this.frameIndex%e.length;let n=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let e=0;e<this.linesToClear;e++)e>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(e){return e&&(this.text=e),this.isEnabled?this.isSpinning?this:(this.hideCursor&&hE.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,Xo.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
|
|
5
5
|
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&hE.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(Xo.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:Ko.success,text:e})}fail(e){return this.stopAndPersist({symbol:Ko.error,text:e})}warn(e){return this.stopAndPersist({symbol:Ko.warning,text:e})}info(e){return this.stopAndPersist({symbol:Ko.info,text:e})}stopAndPersist(e={}){let r=e.prefixText||this.prefixText,n=typeof r=="string"&&r!==""?r+" ":"",i=e.text||this.text,s=typeof i=="string"?" "+i:"";return this.stop(),this.stream.write(`${n}${e.symbol||" "}${s}
|
|
6
|
-
`),this}},UP=function(t){return new Zo(t)};vf.exports=UP;vf.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new Zo(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var pE=b((x6,Qo)=>{(function(t){var e=/^\s+/,r=/\s+$/,n=0,i=t.round,s=t.min,o=t.max,a=t.random;function u(d,w){if(d=d||"",w=w||{},d instanceof u)return d;if(!(this instanceof u))return new u(d,w);var y=c(d);this._originalInput=d,this._r=y.r,this._g=y.g,this._b=y.b,this._a=y.a,this._roundA=i(100*this._a)/100,this._format=w.format||y.format,this._gradientType=w.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=y.ok,this._tc_id=n++}u.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 d=this.toRgb();return(d.r*299+d.g*587+d.b*114)/1e3},getLuminance:function(){var d=this.toRgb(),w,y,T,H,M,oe;return w=d.r/255,y=d.g/255,T=d.b/255,w<=.03928?H=w/12.92:H=t.pow((w+.055)/1.055,2.4),y<=.03928?M=y/12.92:M=t.pow((y+.055)/1.055,2.4),T<=.03928?oe=T/12.92:oe=t.pow((T+.055)/1.055,2.4),.2126*H+.7152*M+.0722*oe},setAlpha:function(d){return this._a=U(d),this._roundA=i(100*this._a)/100,this},toHsv:function(){var d=p(this._r,this._g,this._b);return{h:d.h*360,s:d.s,v:d.v,a:this._a}},toHsvString:function(){var d=p(this._r,this._g,this._b),w=i(d.h*360),y=i(d.s*100),T=i(d.v*100);return this._a==1?"hsv("+w+", "+y+"%, "+T+"%)":"hsva("+w+", "+y+"%, "+T+"%, "+this._roundA+")"},toHsl:function(){var d=f(this._r,this._g,this._b);return{h:d.h*360,s:d.s,l:d.l,a:this._a}},toHslString:function(){var d=f(this._r,this._g,this._b),w=i(d.h*360),y=i(d.s*100),T=i(d.l*100);return this._a==1?"hsl("+w+", "+y+"%, "+T+"%)":"hsla("+w+", "+y+"%, "+T+"%, "+this._roundA+")"},toHex:function(d){return _(this._r,this._g,this._b,d)},toHexString:function(d){return"#"+this.toHex(d)},toHex8:function(d){return g(this._r,this._g,this._b,this._a,d)},toHex8String:function(d){return"#"+this.toHex8(d)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(V(this._r,255)*100)+"%",g:i(V(this._g,255)*100)+"%",b:i(V(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(V(this._r,255)*100)+"%, "+i(V(this._g,255)*100)+"%, "+i(V(this._b,255)*100)+"%)":"rgba("+i(V(this._r,255)*100)+"%, "+i(V(this._g,255)*100)+"%, "+i(V(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:x[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(d){var w="#"+D(this._r,this._g,this._b,this._a),y=w,T=this._gradientType?"GradientType = 1, ":"";if(d){var H=u(d);y="#"+D(H._r,H._g,H._b,H._a)}return"progid:DXImageTransform.Microsoft.gradient("+T+"startColorstr="+w+",endColorstr="+y+")"},toString:function(d){var w=!!d;d=d||this._format;var y=!1,T=this._a<1&&this._a>=0,H=!w&&T&&(d==="hex"||d==="hex6"||d==="hex3"||d==="hex4"||d==="hex8"||d==="name");return H?d==="name"&&this._a===0?this.toName():this.toRgbString():(d==="rgb"&&(y=this.toRgbString()),d==="prgb"&&(y=this.toPercentageRgbString()),(d==="hex"||d==="hex6")&&(y=this.toHexString()),d==="hex3"&&(y=this.toHexString(!0)),d==="hex4"&&(y=this.toHex8String(!0)),d==="hex8"&&(y=this.toHex8String()),d==="name"&&(y=this.toName()),d==="hsl"&&(y=this.toHslString()),d==="hsv"&&(y=this.toHsvString()),y||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(d,w){var y=d.apply(null,[this].concat([].slice.call(w)));return this._r=y._r,this._g=y._g,this._b=y._b,this.setAlpha(y._a),this},lighten:function(){return this._applyModification(N,arguments)},brighten:function(){return this._applyModification(K,arguments)},darken:function(){return this._applyModification(z,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(q,arguments)},greyscale:function(){return this._applyModification($,arguments)},spin:function(){return this._applyModification(W,arguments)},_applyCombination:function(d,w){return d.apply(null,[this].concat([].slice.call(w)))},analogous:function(){return this._applyCombination(v,arguments)},complement:function(){return this._applyCombination(ee,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(_e,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},u.fromRatio=function(d,w){if(typeof d=="object"){var y={};for(var T in d)d.hasOwnProperty(T)&&(T==="a"?y[T]=d[T]:y[T]=nt(d[T]));d=y}return u(d,w)};function c(d){var w={r:0,g:0,b:0},y=1,T=null,H=null,M=null,oe=!1,Ee=!1;return typeof d=="string"&&(d=ce(d)),typeof d=="object"&&(I(d.r)&&I(d.g)&&I(d.b)?(w=l(d.r,d.g,d.b),oe=!0,Ee=String(d.r).substr(-1)==="%"?"prgb":"rgb"):I(d.h)&&I(d.s)&&I(d.v)?(T=nt(d.s),H=nt(d.v),w=m(d.h,T,H),oe=!0,Ee="hsv"):I(d.h)&&I(d.s)&&I(d.l)&&(T=nt(d.s),M=nt(d.l),w=h(d.h,T,M),oe=!0,Ee="hsl"),d.hasOwnProperty("a")&&(y=d.a)),y=U(y),{ok:oe,format:d.format||Ee,r:s(255,o(w.r,0)),g:s(255,o(w.g,0)),b:s(255,o(w.b,0)),a:y}}function l(d,w,y){return{r:V(d,255)*255,g:V(w,255)*255,b:V(y,255)*255}}function f(d,w,y){d=V(d,255),w=V(w,255),y=V(y,255);var T=o(d,w,y),H=s(d,w,y),M,oe,Ee=(T+H)/2;if(T==H)M=oe=0;else{var be=T-H;switch(oe=Ee>.5?be/(2-T-H):be/(T+H),T){case d:M=(w-y)/be+(w<y?6:0);break;case w:M=(y-d)/be+2;break;case y:M=(d-w)/be+4;break}M/=6}return{h:M,s:oe,l:Ee}}function h(d,w,y){var T,H,M;d=V(d,360),w=V(w,100),y=V(y,100);function oe(ft,Mi,vt){return vt<0&&(vt+=1),vt>1&&(vt-=1),vt<1/6?ft+(Mi-ft)*6*vt:vt<1/2?Mi:vt<2/3?ft+(Mi-ft)*(2/3-vt)*6:ft}if(w===0)T=H=M=y;else{var Ee=y<.5?y*(1+w):y+w-y*w,be=2*y-Ee;T=oe(be,Ee,d+1/3),H=oe(be,Ee,d),M=oe(be,Ee,d-1/3)}return{r:T*255,g:H*255,b:M*255}}function p(d,w,y){d=V(d,255),w=V(w,255),y=V(y,255);var T=o(d,w,y),H=s(d,w,y),M,oe,Ee=T,be=T-H;if(oe=T===0?0:be/T,T==H)M=0;else{switch(T){case d:M=(w-y)/be+(w<y?6:0);break;case w:M=(y-d)/be+2;break;case y:M=(d-w)/be+4;break}M/=6}return{h:M,s:oe,v:Ee}}function m(d,w,y){d=V(d,360)*6,w=V(w,100),y=V(y,100);var T=t.floor(d),H=d-T,M=y*(1-w),oe=y*(1-H*w),Ee=y*(1-(1-H)*w),be=T%6,ft=[y,oe,M,M,Ee,y][be],Mi=[Ee,y,y,oe,M,M][be],vt=[M,M,Ee,y,y,oe][be];return{r:ft*255,g:Mi*255,b:vt*255}}function _(d,w,y,T){var H=[Ne(i(d).toString(16)),Ne(i(w).toString(16)),Ne(i(y).toString(16))];return T&&H[0].charAt(0)==H[0].charAt(1)&&H[1].charAt(0)==H[1].charAt(1)&&H[2].charAt(0)==H[2].charAt(1)?H[0].charAt(0)+H[1].charAt(0)+H[2].charAt(0):H.join("")}function g(d,w,y,T,H){var M=[Ne(i(d).toString(16)),Ne(i(w).toString(16)),Ne(i(y).toString(16)),Ne(Q(T))];return H&&M[0].charAt(0)==M[0].charAt(1)&&M[1].charAt(0)==M[1].charAt(1)&&M[2].charAt(0)==M[2].charAt(1)&&M[3].charAt(0)==M[3].charAt(1)?M[0].charAt(0)+M[1].charAt(0)+M[2].charAt(0)+M[3].charAt(0):M.join("")}function D(d,w,y,T){var H=[Ne(Q(T)),Ne(i(d).toString(16)),Ne(i(w).toString(16)),Ne(i(y).toString(16))];return H.join("")}u.equals=function(d,w){return!d||!w?!1:u(d).toRgbString()==u(w).toRgbString()},u.random=function(){return u.fromRatio({r:a(),g:a(),b:a()})};function C(d,w){w=w===0?0:w||10;var y=u(d).toHsl();return y.s-=w/100,y.s=ae(y.s),u(y)}function q(d,w){w=w===0?0:w||10;var y=u(d).toHsl();return y.s+=w/100,y.s=ae(y.s),u(y)}function $(d){return u(d).desaturate(100)}function N(d,w){w=w===0?0:w||10;var y=u(d).toHsl();return y.l+=w/100,y.l=ae(y.l),u(y)}function K(d,w){w=w===0?0:w||10;var y=u(d).toRgb();return y.r=o(0,s(255,y.r-i(255*-(w/100)))),y.g=o(0,s(255,y.g-i(255*-(w/100)))),y.b=o(0,s(255,y.b-i(255*-(w/100)))),u(y)}function z(d,w){w=w===0?0:w||10;var y=u(d).toHsl();return y.l-=w/100,y.l=ae(y.l),u(y)}function W(d,w){var y=u(d).toHsl(),T=(y.h+w)%360;return y.h=T<0?360+T:T,u(y)}function ee(d){var w=u(d).toHsl();return w.h=(w.h+180)%360,u(w)}function _e(d){var w=u(d).toHsl(),y=w.h;return[u(d),u({h:(y+120)%360,s:w.s,l:w.l}),u({h:(y+240)%360,s:w.s,l:w.l})]}function R(d){var w=u(d).toHsl(),y=w.h;return[u(d),u({h:(y+90)%360,s:w.s,l:w.l}),u({h:(y+180)%360,s:w.s,l:w.l}),u({h:(y+270)%360,s:w.s,l:w.l})]}function O(d){var w=u(d).toHsl(),y=w.h;return[u(d),u({h:(y+72)%360,s:w.s,l:w.l}),u({h:(y+216)%360,s:w.s,l:w.l})]}function v(d,w,y){w=w||6,y=y||30;var T=u(d).toHsl(),H=360/y,M=[u(d)];for(T.h=(T.h-(H*w>>1)+720)%360;--w;)T.h=(T.h+H)%360,M.push(u(T));return M}function k(d,w){w=w||6;for(var y=u(d).toHsv(),T=y.h,H=y.s,M=y.v,oe=[],Ee=1/w;w--;)oe.push(u({h:T,s:H,v:M})),M=(M+Ee)%1;return oe}u.mix=function(d,w,y){y=y===0?0:y||50;var T=u(d).toRgb(),H=u(w).toRgb(),M=y/100,oe={r:(H.r-T.r)*M+T.r,g:(H.g-T.g)*M+T.g,b:(H.b-T.b)*M+T.b,a:(H.a-T.a)*M+T.a};return u(oe)},u.readability=function(d,w){var y=u(d),T=u(w);return(t.max(y.getLuminance(),T.getLuminance())+.05)/(t.min(y.getLuminance(),T.getLuminance())+.05)},u.isReadable=function(d,w,y){var T=u.readability(d,w),H,M;switch(M=!1,H=B(y),H.level+H.size){case"AAsmall":case"AAAlarge":M=T>=4.5;break;case"AAlarge":M=T>=3;break;case"AAAsmall":M=T>=7;break}return M},u.mostReadable=function(d,w,y){var T=null,H=0,M,oe,Ee,be;y=y||{},oe=y.includeFallbackColors,Ee=y.level,be=y.size;for(var ft=0;ft<w.length;ft++)M=u.readability(d,w[ft]),M>H&&(H=M,T=u(w[ft]));return u.isReadable(d,T,{level:Ee,size:be})||!oe?T:(y.includeFallbackColors=!1,u.mostReadable(d,["#fff","#000"],y))};var A=u.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"},x=u.hexNames=j(A);function j(d){var w={};for(var y in d)d.hasOwnProperty(y)&&(w[d[y]]=y);return w}function U(d){return d=parseFloat(d),(isNaN(d)||d<0||d>1)&&(d=1),d}function V(d,w){Ve(d)&&(d="100%");var y=Ct(d);return d=s(w,o(0,parseFloat(d))),y&&(d=parseInt(d*w,10)/100),t.abs(d-w)<1e-6?1:d%w/parseFloat(w)}function ae(d){return s(1,o(0,d))}function re(d){return parseInt(d,16)}function Ve(d){return typeof d=="string"&&d.indexOf(".")!=-1&&parseFloat(d)===1}function Ct(d){return typeof d=="string"&&d.indexOf("%")!=-1}function Ne(d){return d.length==1?"0"+d:""+d}function nt(d){return d<=1&&(d=d*100+"%"),d}function Q(d){return t.round(parseFloat(d)*255).toString(16)}function Xr(d){return re(d)/255}var it=function(){var d="[-\\+]?\\d+%?",w="[-\\+]?\\d*\\.\\d+%?",y="(?:"+w+")|(?:"+d+")",T="[\\s|\\(]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")\\s*\\)?",H="[\\s|\\(]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")\\s*\\)?";return{CSS_UNIT:new RegExp(y),rgb:new RegExp("rgb"+T),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+T),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+T),hsva:new RegExp("hsva"+H),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 I(d){return!!it.CSS_UNIT.exec(d)}function ce(d){d=d.replace(e,"").replace(r,"").toLowerCase();var w=!1;if(A[d])d=A[d],w=!0;else if(d=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var y;return(y=it.rgb.exec(d))?{r:y[1],g:y[2],b:y[3]}:(y=it.rgba.exec(d))?{r:y[1],g:y[2],b:y[3],a:y[4]}:(y=it.hsl.exec(d))?{h:y[1],s:y[2],l:y[3]}:(y=it.hsla.exec(d))?{h:y[1],s:y[2],l:y[3],a:y[4]}:(y=it.hsv.exec(d))?{h:y[1],s:y[2],v:y[3]}:(y=it.hsva.exec(d))?{h:y[1],s:y[2],v:y[3],a:y[4]}:(y=it.hex8.exec(d))?{r:re(y[1]),g:re(y[2]),b:re(y[3]),a:Xr(y[4]),format:w?"name":"hex8"}:(y=it.hex6.exec(d))?{r:re(y[1]),g:re(y[2]),b:re(y[3]),format:w?"name":"hex"}:(y=it.hex4.exec(d))?{r:re(y[1]+""+y[1]),g:re(y[2]+""+y[2]),b:re(y[3]+""+y[3]),a:Xr(y[4]+""+y[4]),format:w?"name":"hex8"}:(y=it.hex3.exec(d))?{r:re(y[1]+""+y[1]),g:re(y[2]+""+y[2]),b:re(y[3]+""+y[3]),format:w?"name":"hex"}:!1}function B(d){var w,y;return d=d||{level:"AA",size:"small"},w=(d.level||"AA").toUpperCase(),y=(d.size||"small").toLowerCase(),w!=="AA"&&w!=="AAA"&&(w="AA"),y!=="small"&&y!=="large"&&(y="small"),{level:w,size:y}}typeof Qo!="undefined"&&Qo.exports?Qo.exports=u:typeof define=="function"&&define.amd?define(function(){return u}):window.tinycolor=u})(Math)});var DE=b((S6,bE)=>{var ns=pE(),_E={r:256,g:256,b:256,a:1},EE={h:360,s:1,v:1,a:1};function Ff(t,e,r){let n={};for(let i in t)t.hasOwnProperty(i)&&(n[i]=r===0?0:(e[i]-t[i])/r);return n}function Tf(t,e,r,n){let i={};for(let s in e)e.hasOwnProperty(s)&&(i[s]=t[s]*r+e[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function Rf(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=Ff(n,i,r),o=[t.color];for(let a=1;a<r;a++){let u=Tf(s,n,a,_E);o.push(ns(u))}return o}function mE(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return Rf(t,e,r);let o;if(typeof n=="boolean")o=n;else{let l=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&l||n==="short"&&!l}let a=Ff(i,s,r),u=[t.color],c;i.h<=s.h&&!o||i.h>=s.h&&o?c=s.h-i.h:o?c=360-s.h+i.h:c=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(c)/r;for(let l=1;l<r;l++){let f=Tf(a,i,l,EE);u.push(ns(f))}return u}function gE(t,e){let r=t.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==e;)if(i<e){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function yE(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let u=0,c=t.length;u<c-1;u++)if(e>=t[u].pos&&e<t[u+1].pos){i=t[u],s=t[u+1];break}i||(i=s=t[t.length-1]);let o=Ff(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=Tf(o,i.color[r](),(e-i.pos)*100,n);return ns(a)}var Yn=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,n=e.length,i=-1,s=!1;this.stops=e.map((o,a)=>{let u=o.pos!==void 0;if(r^u)throw new Error("Cannot mix positionned and not posionned color stops");if(u){let c=o.color!==void 0;if(!c&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!c,o={color:c?ns(o.color):null,colorLess:!c,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:ns(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new Yn(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(n=>{e.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new Yn(e.concat(r.reverse()))}rgb(e){let r=gE(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Rf(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Rf(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(e,r){let n=gE(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=mE(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let a=mE(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let n=e+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(e){return yE(this.stops,e,"toRgb",_E)}hsvAt(e){return yE(this.stops,e,"toHsv",EE)}};bE.exports=function(t){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');t=arguments[0]}else t=Array.prototype.slice.call(arguments);return new Yn(t)}});var CE=b((C6,ea)=>{"use strict";var AE=require("chalk"),GP=DE(),wE=/\s/g;function Of(...t){let e=GP.apply(this,t),r=(n,i)=>WP(n?n.toString():"",e,i);return r.multiline=(n,i)=>zP(n?n.toString():"",e,i),r}var xE=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function WP(t,e,r){let n=SE(r),i=Math.max(t.replace(wE,"").length,e.stops.length),s=xE(e,n,i),o="";for(let a of t)o+=a.match(wE)?a:AE.hex(s.shift().toHex())(a);return o}function zP(t,e,r){let n=SE(r),i=t.split(`
|
|
6
|
+
`),this}},UP=function(t){return new Zo(t)};vf.exports=UP;vf.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new Zo(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var pE=b((x5,Qo)=>{(function(t){var e=/^\s+/,r=/\s+$/,n=0,i=t.round,s=t.min,o=t.max,a=t.random;function u(d,w){if(d=d||"",w=w||{},d instanceof u)return d;if(!(this instanceof u))return new u(d,w);var y=c(d);this._originalInput=d,this._r=y.r,this._g=y.g,this._b=y.b,this._a=y.a,this._roundA=i(100*this._a)/100,this._format=w.format||y.format,this._gradientType=w.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=y.ok,this._tc_id=n++}u.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 d=this.toRgb();return(d.r*299+d.g*587+d.b*114)/1e3},getLuminance:function(){var d=this.toRgb(),w,y,T,H,M,oe;return w=d.r/255,y=d.g/255,T=d.b/255,w<=.03928?H=w/12.92:H=t.pow((w+.055)/1.055,2.4),y<=.03928?M=y/12.92:M=t.pow((y+.055)/1.055,2.4),T<=.03928?oe=T/12.92:oe=t.pow((T+.055)/1.055,2.4),.2126*H+.7152*M+.0722*oe},setAlpha:function(d){return this._a=U(d),this._roundA=i(100*this._a)/100,this},toHsv:function(){var d=p(this._r,this._g,this._b);return{h:d.h*360,s:d.s,v:d.v,a:this._a}},toHsvString:function(){var d=p(this._r,this._g,this._b),w=i(d.h*360),y=i(d.s*100),T=i(d.v*100);return this._a==1?"hsv("+w+", "+y+"%, "+T+"%)":"hsva("+w+", "+y+"%, "+T+"%, "+this._roundA+")"},toHsl:function(){var d=f(this._r,this._g,this._b);return{h:d.h*360,s:d.s,l:d.l,a:this._a}},toHslString:function(){var d=f(this._r,this._g,this._b),w=i(d.h*360),y=i(d.s*100),T=i(d.l*100);return this._a==1?"hsl("+w+", "+y+"%, "+T+"%)":"hsla("+w+", "+y+"%, "+T+"%, "+this._roundA+")"},toHex:function(d){return _(this._r,this._g,this._b,d)},toHexString:function(d){return"#"+this.toHex(d)},toHex8:function(d){return g(this._r,this._g,this._b,this._a,d)},toHex8String:function(d){return"#"+this.toHex8(d)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(V(this._r,255)*100)+"%",g:i(V(this._g,255)*100)+"%",b:i(V(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(V(this._r,255)*100)+"%, "+i(V(this._g,255)*100)+"%, "+i(V(this._b,255)*100)+"%)":"rgba("+i(V(this._r,255)*100)+"%, "+i(V(this._g,255)*100)+"%, "+i(V(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:x[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(d){var w="#"+D(this._r,this._g,this._b,this._a),y=w,T=this._gradientType?"GradientType = 1, ":"";if(d){var H=u(d);y="#"+D(H._r,H._g,H._b,H._a)}return"progid:DXImageTransform.Microsoft.gradient("+T+"startColorstr="+w+",endColorstr="+y+")"},toString:function(d){var w=!!d;d=d||this._format;var y=!1,T=this._a<1&&this._a>=0,H=!w&&T&&(d==="hex"||d==="hex6"||d==="hex3"||d==="hex4"||d==="hex8"||d==="name");return H?d==="name"&&this._a===0?this.toName():this.toRgbString():(d==="rgb"&&(y=this.toRgbString()),d==="prgb"&&(y=this.toPercentageRgbString()),(d==="hex"||d==="hex6")&&(y=this.toHexString()),d==="hex3"&&(y=this.toHexString(!0)),d==="hex4"&&(y=this.toHex8String(!0)),d==="hex8"&&(y=this.toHex8String()),d==="name"&&(y=this.toName()),d==="hsl"&&(y=this.toHslString()),d==="hsv"&&(y=this.toHsvString()),y||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(d,w){var y=d.apply(null,[this].concat([].slice.call(w)));return this._r=y._r,this._g=y._g,this._b=y._b,this.setAlpha(y._a),this},lighten:function(){return this._applyModification(N,arguments)},brighten:function(){return this._applyModification(K,arguments)},darken:function(){return this._applyModification(z,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(q,arguments)},greyscale:function(){return this._applyModification($,arguments)},spin:function(){return this._applyModification(W,arguments)},_applyCombination:function(d,w){return d.apply(null,[this].concat([].slice.call(w)))},analogous:function(){return this._applyCombination(v,arguments)},complement:function(){return this._applyCombination(ee,arguments)},monochromatic:function(){return this._applyCombination(k,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(_e,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},u.fromRatio=function(d,w){if(typeof d=="object"){var y={};for(var T in d)d.hasOwnProperty(T)&&(T==="a"?y[T]=d[T]:y[T]=nt(d[T]));d=y}return u(d,w)};function c(d){var w={r:0,g:0,b:0},y=1,T=null,H=null,M=null,oe=!1,Ee=!1;return typeof d=="string"&&(d=ce(d)),typeof d=="object"&&(I(d.r)&&I(d.g)&&I(d.b)?(w=l(d.r,d.g,d.b),oe=!0,Ee=String(d.r).substr(-1)==="%"?"prgb":"rgb"):I(d.h)&&I(d.s)&&I(d.v)?(T=nt(d.s),H=nt(d.v),w=m(d.h,T,H),oe=!0,Ee="hsv"):I(d.h)&&I(d.s)&&I(d.l)&&(T=nt(d.s),M=nt(d.l),w=h(d.h,T,M),oe=!0,Ee="hsl"),d.hasOwnProperty("a")&&(y=d.a)),y=U(y),{ok:oe,format:d.format||Ee,r:s(255,o(w.r,0)),g:s(255,o(w.g,0)),b:s(255,o(w.b,0)),a:y}}function l(d,w,y){return{r:V(d,255)*255,g:V(w,255)*255,b:V(y,255)*255}}function f(d,w,y){d=V(d,255),w=V(w,255),y=V(y,255);var T=o(d,w,y),H=s(d,w,y),M,oe,Ee=(T+H)/2;if(T==H)M=oe=0;else{var be=T-H;switch(oe=Ee>.5?be/(2-T-H):be/(T+H),T){case d:M=(w-y)/be+(w<y?6:0);break;case w:M=(y-d)/be+2;break;case y:M=(d-w)/be+4;break}M/=6}return{h:M,s:oe,l:Ee}}function h(d,w,y){var T,H,M;d=V(d,360),w=V(w,100),y=V(y,100);function oe(ft,Mi,vt){return vt<0&&(vt+=1),vt>1&&(vt-=1),vt<1/6?ft+(Mi-ft)*6*vt:vt<1/2?Mi:vt<2/3?ft+(Mi-ft)*(2/3-vt)*6:ft}if(w===0)T=H=M=y;else{var Ee=y<.5?y*(1+w):y+w-y*w,be=2*y-Ee;T=oe(be,Ee,d+1/3),H=oe(be,Ee,d),M=oe(be,Ee,d-1/3)}return{r:T*255,g:H*255,b:M*255}}function p(d,w,y){d=V(d,255),w=V(w,255),y=V(y,255);var T=o(d,w,y),H=s(d,w,y),M,oe,Ee=T,be=T-H;if(oe=T===0?0:be/T,T==H)M=0;else{switch(T){case d:M=(w-y)/be+(w<y?6:0);break;case w:M=(y-d)/be+2;break;case y:M=(d-w)/be+4;break}M/=6}return{h:M,s:oe,v:Ee}}function m(d,w,y){d=V(d,360)*6,w=V(w,100),y=V(y,100);var T=t.floor(d),H=d-T,M=y*(1-w),oe=y*(1-H*w),Ee=y*(1-(1-H)*w),be=T%6,ft=[y,oe,M,M,Ee,y][be],Mi=[Ee,y,y,oe,M,M][be],vt=[M,M,Ee,y,y,oe][be];return{r:ft*255,g:Mi*255,b:vt*255}}function _(d,w,y,T){var H=[Ne(i(d).toString(16)),Ne(i(w).toString(16)),Ne(i(y).toString(16))];return T&&H[0].charAt(0)==H[0].charAt(1)&&H[1].charAt(0)==H[1].charAt(1)&&H[2].charAt(0)==H[2].charAt(1)?H[0].charAt(0)+H[1].charAt(0)+H[2].charAt(0):H.join("")}function g(d,w,y,T,H){var M=[Ne(i(d).toString(16)),Ne(i(w).toString(16)),Ne(i(y).toString(16)),Ne(Q(T))];return H&&M[0].charAt(0)==M[0].charAt(1)&&M[1].charAt(0)==M[1].charAt(1)&&M[2].charAt(0)==M[2].charAt(1)&&M[3].charAt(0)==M[3].charAt(1)?M[0].charAt(0)+M[1].charAt(0)+M[2].charAt(0)+M[3].charAt(0):M.join("")}function D(d,w,y,T){var H=[Ne(Q(T)),Ne(i(d).toString(16)),Ne(i(w).toString(16)),Ne(i(y).toString(16))];return H.join("")}u.equals=function(d,w){return!d||!w?!1:u(d).toRgbString()==u(w).toRgbString()},u.random=function(){return u.fromRatio({r:a(),g:a(),b:a()})};function C(d,w){w=w===0?0:w||10;var y=u(d).toHsl();return y.s-=w/100,y.s=ae(y.s),u(y)}function q(d,w){w=w===0?0:w||10;var y=u(d).toHsl();return y.s+=w/100,y.s=ae(y.s),u(y)}function $(d){return u(d).desaturate(100)}function N(d,w){w=w===0?0:w||10;var y=u(d).toHsl();return y.l+=w/100,y.l=ae(y.l),u(y)}function K(d,w){w=w===0?0:w||10;var y=u(d).toRgb();return y.r=o(0,s(255,y.r-i(255*-(w/100)))),y.g=o(0,s(255,y.g-i(255*-(w/100)))),y.b=o(0,s(255,y.b-i(255*-(w/100)))),u(y)}function z(d,w){w=w===0?0:w||10;var y=u(d).toHsl();return y.l-=w/100,y.l=ae(y.l),u(y)}function W(d,w){var y=u(d).toHsl(),T=(y.h+w)%360;return y.h=T<0?360+T:T,u(y)}function ee(d){var w=u(d).toHsl();return w.h=(w.h+180)%360,u(w)}function _e(d){var w=u(d).toHsl(),y=w.h;return[u(d),u({h:(y+120)%360,s:w.s,l:w.l}),u({h:(y+240)%360,s:w.s,l:w.l})]}function R(d){var w=u(d).toHsl(),y=w.h;return[u(d),u({h:(y+90)%360,s:w.s,l:w.l}),u({h:(y+180)%360,s:w.s,l:w.l}),u({h:(y+270)%360,s:w.s,l:w.l})]}function O(d){var w=u(d).toHsl(),y=w.h;return[u(d),u({h:(y+72)%360,s:w.s,l:w.l}),u({h:(y+216)%360,s:w.s,l:w.l})]}function v(d,w,y){w=w||6,y=y||30;var T=u(d).toHsl(),H=360/y,M=[u(d)];for(T.h=(T.h-(H*w>>1)+720)%360;--w;)T.h=(T.h+H)%360,M.push(u(T));return M}function k(d,w){w=w||6;for(var y=u(d).toHsv(),T=y.h,H=y.s,M=y.v,oe=[],Ee=1/w;w--;)oe.push(u({h:T,s:H,v:M})),M=(M+Ee)%1;return oe}u.mix=function(d,w,y){y=y===0?0:y||50;var T=u(d).toRgb(),H=u(w).toRgb(),M=y/100,oe={r:(H.r-T.r)*M+T.r,g:(H.g-T.g)*M+T.g,b:(H.b-T.b)*M+T.b,a:(H.a-T.a)*M+T.a};return u(oe)},u.readability=function(d,w){var y=u(d),T=u(w);return(t.max(y.getLuminance(),T.getLuminance())+.05)/(t.min(y.getLuminance(),T.getLuminance())+.05)},u.isReadable=function(d,w,y){var T=u.readability(d,w),H,M;switch(M=!1,H=B(y),H.level+H.size){case"AAsmall":case"AAAlarge":M=T>=4.5;break;case"AAlarge":M=T>=3;break;case"AAAsmall":M=T>=7;break}return M},u.mostReadable=function(d,w,y){var T=null,H=0,M,oe,Ee,be;y=y||{},oe=y.includeFallbackColors,Ee=y.level,be=y.size;for(var ft=0;ft<w.length;ft++)M=u.readability(d,w[ft]),M>H&&(H=M,T=u(w[ft]));return u.isReadable(d,T,{level:Ee,size:be})||!oe?T:(y.includeFallbackColors=!1,u.mostReadable(d,["#fff","#000"],y))};var A=u.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"},x=u.hexNames=j(A);function j(d){var w={};for(var y in d)d.hasOwnProperty(y)&&(w[d[y]]=y);return w}function U(d){return d=parseFloat(d),(isNaN(d)||d<0||d>1)&&(d=1),d}function V(d,w){Ve(d)&&(d="100%");var y=Ct(d);return d=s(w,o(0,parseFloat(d))),y&&(d=parseInt(d*w,10)/100),t.abs(d-w)<1e-6?1:d%w/parseFloat(w)}function ae(d){return s(1,o(0,d))}function re(d){return parseInt(d,16)}function Ve(d){return typeof d=="string"&&d.indexOf(".")!=-1&&parseFloat(d)===1}function Ct(d){return typeof d=="string"&&d.indexOf("%")!=-1}function Ne(d){return d.length==1?"0"+d:""+d}function nt(d){return d<=1&&(d=d*100+"%"),d}function Q(d){return t.round(parseFloat(d)*255).toString(16)}function Xr(d){return re(d)/255}var it=function(){var d="[-\\+]?\\d+%?",w="[-\\+]?\\d*\\.\\d+%?",y="(?:"+w+")|(?:"+d+")",T="[\\s|\\(]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")\\s*\\)?",H="[\\s|\\(]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")\\s*\\)?";return{CSS_UNIT:new RegExp(y),rgb:new RegExp("rgb"+T),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+T),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+T),hsva:new RegExp("hsva"+H),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 I(d){return!!it.CSS_UNIT.exec(d)}function ce(d){d=d.replace(e,"").replace(r,"").toLowerCase();var w=!1;if(A[d])d=A[d],w=!0;else if(d=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var y;return(y=it.rgb.exec(d))?{r:y[1],g:y[2],b:y[3]}:(y=it.rgba.exec(d))?{r:y[1],g:y[2],b:y[3],a:y[4]}:(y=it.hsl.exec(d))?{h:y[1],s:y[2],l:y[3]}:(y=it.hsla.exec(d))?{h:y[1],s:y[2],l:y[3],a:y[4]}:(y=it.hsv.exec(d))?{h:y[1],s:y[2],v:y[3]}:(y=it.hsva.exec(d))?{h:y[1],s:y[2],v:y[3],a:y[4]}:(y=it.hex8.exec(d))?{r:re(y[1]),g:re(y[2]),b:re(y[3]),a:Xr(y[4]),format:w?"name":"hex8"}:(y=it.hex6.exec(d))?{r:re(y[1]),g:re(y[2]),b:re(y[3]),format:w?"name":"hex"}:(y=it.hex4.exec(d))?{r:re(y[1]+""+y[1]),g:re(y[2]+""+y[2]),b:re(y[3]+""+y[3]),a:Xr(y[4]+""+y[4]),format:w?"name":"hex8"}:(y=it.hex3.exec(d))?{r:re(y[1]+""+y[1]),g:re(y[2]+""+y[2]),b:re(y[3]+""+y[3]),format:w?"name":"hex"}:!1}function B(d){var w,y;return d=d||{level:"AA",size:"small"},w=(d.level||"AA").toUpperCase(),y=(d.size||"small").toLowerCase(),w!=="AA"&&w!=="AAA"&&(w="AA"),y!=="small"&&y!=="large"&&(y="small"),{level:w,size:y}}typeof Qo!="undefined"&&Qo.exports?Qo.exports=u:typeof define=="function"&&define.amd?define(function(){return u}):window.tinycolor=u})(Math)});var DE=b((S5,bE)=>{var ns=pE(),_E={r:256,g:256,b:256,a:1},EE={h:360,s:1,v:1,a:1};function Ff(t,e,r){let n={};for(let i in t)t.hasOwnProperty(i)&&(n[i]=r===0?0:(e[i]-t[i])/r);return n}function Tf(t,e,r,n){let i={};for(let s in e)e.hasOwnProperty(s)&&(i[s]=t[s]*r+e[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function Rf(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=Ff(n,i,r),o=[t.color];for(let a=1;a<r;a++){let u=Tf(s,n,a,_E);o.push(ns(u))}return o}function mE(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return Rf(t,e,r);let o;if(typeof n=="boolean")o=n;else{let l=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&l||n==="short"&&!l}let a=Ff(i,s,r),u=[t.color],c;i.h<=s.h&&!o||i.h>=s.h&&o?c=s.h-i.h:o?c=360-s.h+i.h:c=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(c)/r;for(let l=1;l<r;l++){let f=Tf(a,i,l,EE);u.push(ns(f))}return u}function gE(t,e){let r=t.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==e;)if(i<e){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function yE(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let u=0,c=t.length;u<c-1;u++)if(e>=t[u].pos&&e<t[u+1].pos){i=t[u],s=t[u+1];break}i||(i=s=t[t.length-1]);let o=Ff(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=Tf(o,i.color[r](),(e-i.pos)*100,n);return ns(a)}var Yn=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,n=e.length,i=-1,s=!1;this.stops=e.map((o,a)=>{let u=o.pos!==void 0;if(r^u)throw new Error("Cannot mix positionned and not posionned color stops");if(u){let c=o.color!==void 0;if(!c&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!c,o={color:c?ns(o.color):null,colorLess:!c,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:ns(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new Yn(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(n=>{e.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new Yn(e.concat(r.reverse()))}rgb(e){let r=gE(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Rf(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Rf(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(e,r){let n=gE(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=mE(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let a=mE(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let n=e+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(e){return yE(this.stops,e,"toRgb",_E)}hsvAt(e){return yE(this.stops,e,"toHsv",EE)}};bE.exports=function(t){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');t=arguments[0]}else t=Array.prototype.slice.call(arguments);return new Yn(t)}});var CE=b((C5,ea)=>{"use strict";var AE=require("chalk"),GP=DE(),wE=/\s/g;function Of(...t){let e=GP.apply(this,t),r=(n,i)=>WP(n?n.toString():"",e,i);return r.multiline=(n,i)=>zP(n?n.toString():"",e,i),r}var xE=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function WP(t,e,r){let n=SE(r),i=Math.max(t.replace(wE,"").length,e.stops.length),s=xE(e,n,i),o="";for(let a of t)o+=a.match(wE)?a:AE.hex(s.shift().toHex())(a);return o}function zP(t,e,r){let n=SE(r),i=t.split(`
|
|
7
7
|
`),s=Math.max.apply(null,i.map(u=>u.length).concat([e.stops.length])),o=xE(e,n,s),a=[];for(let u of i){let c=o.slice(0),l="";for(let f of u)l+=AE.hex(c.shift().toHex())(f);a.push(l)}return a.join(`
|
|
8
|
-
`)}function SE(t){let e={interpolation:"rgb",hsvSpin:"short",...t};if(t!==void 0&&typeof t!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof t}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof e.hsvSpin}\``);return e}var is={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"}}};ea.exports=Of;for(let t in is)ea.exports[t]=e=>new Of(is[t].colors)(e,is[t].options),ea.exports[t].multiline=e=>new Of(is[t].colors).multiline(e,is[t].options)});var ME=b((
|
|
8
|
+
`)}function SE(t){let e={interpolation:"rgb",hsvSpin:"short",...t};if(t!==void 0&&typeof t!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof t}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof e.hsvSpin}\``);return e}var is={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"}}};ea.exports=Of;for(let t in is)ea.exports[t]=e=>new Of(is[t].colors)(e,is[t].options),ea.exports[t].multiline=e=>new Of(is[t].colors).multiline(e,is[t].options)});var ME=b((O5,NE)=>{NE.exports=LE;LE.sync=r2;var BE=require("fs");function t2(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function IE(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:t2(e,r)}function LE(t,e,r){BE.stat(t,function(n,i){r(n,n?!1:IE(i,t,e))})}function r2(t,e){return IE(BE.statSync(t),t,e)}});var UE=b((k5,$E)=>{$E.exports=HE;HE.sync=n2;var qE=require("fs");function HE(t,e,r){qE.stat(t,function(n,i){r(n,n?!1:jE(i,e))})}function n2(t,e){return jE(qE.statSync(t),e)}function jE(t,e){return t.isFile()&&i2(t,e)}function i2(t,e){var r=t.mode,n=t.uid,i=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),c=parseInt("001",8),l=a|u,f=r&c||r&u&&i===o||r&a&&n===s||r&l&&s===0;return f}});var WE=b((B5,GE)=>{var P5=require("fs"),ta;process.platform==="win32"||global.TESTING_WINDOWS?ta=ME():ta=UE();GE.exports=Lf;Lf.sync=s2;function Lf(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){Lf(t,e||{},function(s,o){s?i(s):n(o)})})}ta(t,e||{},function(n,i){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function s2(t,e){try{return ta.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var ZE=b((I5,XE)=>{var Xn=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",zE=require("path"),o2=Xn?";":":",VE=WE(),YE=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),KE=(t,e)=>{let r=e.colon||o2,n=t.match(/\//)||Xn&&t.match(/\\/)?[""]:[...Xn?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],i=Xn?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Xn?i.split(r):[""];return Xn&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},JE=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:i,pathExtExe:s}=KE(t,e),o=[],a=c=>new Promise((l,f)=>{if(c===n.length)return e.all&&o.length?l(o):f(YE(t));let h=n[c],p=/^".*"$/.test(h)?h.slice(1,-1):h,m=zE.join(p,t),_=!p&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;l(u(_,c,0))}),u=(c,l,f)=>new Promise((h,p)=>{if(f===i.length)return h(a(l+1));let m=i[f];VE(c+m,{pathExt:s},(_,g)=>{if(!_&&g)if(e.all)o.push(c+m);else return h(c+m);return h(u(c,l,f+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},a2=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=KE(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],u=/^".*"$/.test(a)?a.slice(1,-1):a,c=zE.join(u,t),l=!u&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let f=0;f<n.length;f++){let h=l+n[f];try{if(VE.sync(h,{pathExt:i}))if(e.all)s.push(h);else return h}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw YE(t)};XE.exports=JE;JE.sync=a2});var Mf=b((L5,Nf)=>{"use strict";var QE=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};Nf.exports=QE;Nf.exports.default=QE});var nb=b((N5,rb)=>{"use strict";var eb=require("path"),u2=ZE(),c2=Mf();function tb(t,e){let r=t.options.env||process.env,n=process.cwd(),i=t.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=u2.sync(t.command,{path:r[c2({env:r})],pathExt:e?eb.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=eb.resolve(i?t.options.cwd:"",o)),o}function l2(t){return tb(t)||tb(t,!0)}rb.exports=l2});var ib=b((M5,Hf)=>{"use strict";var qf=/([()\][%!^"`<>&|;, *?])/g;function f2(t){return t=t.replace(qf,"^$1"),t}function h2(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(qf,"^$1"),e&&(t=t.replace(qf,"^$1")),t}Hf.exports.command=f2;Hf.exports.argument=h2});var ob=b((q5,sb)=>{"use strict";sb.exports=/^#!(.*)/});var ub=b((H5,ab)=>{"use strict";var d2=ob();ab.exports=(t="")=>{let e=t.match(d2);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var lb=b((j5,cb)=>{"use strict";var jf=require("fs"),p2=ub();function m2(t){let r=Buffer.alloc(150),n;try{n=jf.openSync(t,"r"),jf.readSync(n,r,0,150,0),jf.closeSync(n)}catch{}return p2(r.toString())}cb.exports=m2});var pb=b(($5,db)=>{"use strict";var g2=require("path"),fb=nb(),hb=ib(),y2=lb(),_2=process.platform==="win32",E2=/\.(?:com|exe)$/i,b2=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function D2(t){t.file=fb(t);let e=t.file&&y2(t.file);return e?(t.args.unshift(t.file),t.command=e,fb(t)):t.file}function w2(t){if(!_2)return t;let e=D2(t),r=!E2.test(e);if(t.options.forceShell||r){let n=b2.test(e);t.command=g2.normalize(t.command),t.command=hb.command(t.command),t.args=t.args.map(s=>hb.argument(s,n));let i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function A2(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:w2(n)}db.exports=A2});var yb=b((U5,gb)=>{"use strict";var $f=process.platform==="win32";function Uf(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function x2(t,e){if(!$f)return;let r=t.emit;t.emit=function(n,i){if(n==="exit"){let s=mb(i,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function mb(t,e){return $f&&t===1&&!e.file?Uf(e.original,"spawn"):null}function S2(t,e){return $f&&t===1&&!e.file?Uf(e.original,"spawnSync"):null}gb.exports={hookChildProcess:x2,verifyENOENT:mb,verifyENOENTSync:S2,notFoundError:Uf}});var bb=b((G5,Zn)=>{"use strict";var _b=require("child_process"),Gf=pb(),Wf=yb();function Eb(t,e,r){let n=Gf(t,e,r),i=_b.spawn(n.command,n.args,n.options);return Wf.hookChildProcess(i,n),i}function C2(t,e,r){let n=Gf(t,e,r),i=_b.spawnSync(n.command,n.args,n.options);return i.error=i.error||Wf.verifyENOENTSync(i.status,n),i}Zn.exports=Eb;Zn.exports.spawn=Eb;Zn.exports.sync=C2;Zn.exports._parse=Gf;Zn.exports._enoent=Wf});var wb=b((W5,Db)=>{"use strict";Db.exports=t=>{let e=typeof t=="string"?`
|
|
9
9
|
`:`
|
|
10
|
-
`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var Sb=b((
|
|
10
|
+
`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var Sb=b((z5,as)=>{"use strict";var os=require("path"),Ab=Mf(),xb=t=>{t={cwd:process.cwd(),path:process.env[Ab()],execPath:process.execPath,...t};let e,r=os.resolve(t.cwd),n=[];for(;e!==r;)n.push(os.join(r,"node_modules/.bin")),e=r,r=os.resolve(r,"..");let i=os.resolve(t.cwd,t.execPath,"..");return n.push(i),n.concat(t.path).join(os.delimiter)};as.exports=xb;as.exports.default=xb;as.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=Ab({env:e});return t.path=e[r],e[r]=as.exports(t),e}});var Cb=b(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.SIGNALS=void 0;var v2=[{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"}];ra.SIGNALS=v2});var zf=b(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.SIGRTMAX=Qn.getRealtimeSignals=void 0;var R2=function(){let t=Rb-vb+1;return Array.from({length:t},F2)};Qn.getRealtimeSignals=R2;var F2=function(t,e){return{name:`SIGRT${e+1}`,number:vb+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},vb=34,Rb=64;Qn.SIGRTMAX=Rb});var Fb=b(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.getSignals=void 0;var T2=require("os"),O2=Cb(),k2=zf(),P2=function(){let t=(0,k2.getRealtimeSignals)();return[...O2.SIGNALS,...t].map(B2)};na.getSignals=P2;var B2=function({name:t,number:e,description:r,action:n,forced:i=!1,standard:s}){let{signals:{[t]:o}}=T2.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:n,forced:i,standard:s}}});var Ob=b(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.signalsByNumber=ei.signalsByName=void 0;var I2=require("os"),Tb=Fb(),L2=zf(),N2=function(){return(0,Tb.getSignals)().reduce(M2,{})},M2=function(t,{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}){return{...t,[e]:{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}}},q2=N2();ei.signalsByName=q2;var H2=function(){let t=(0,Tb.getSignals)(),e=L2.SIGRTMAX+1,r=Array.from({length:e},(n,i)=>j2(i,t));return Object.assign({},...r)},j2=function(t,e){let r=$2(t,e);if(r===void 0)return{};let{name:n,description:i,supported:s,action:o,forced:a,standard:u}=r;return{[t]:{name:n,number:t,description:i,supported:s,action:o,forced:a,standard:u}}},$2=function(t,e){let r=e.find(({name:n})=>I2.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},U2=H2();ei.signalsByNumber=U2});var Pb=b((X5,kb)=>{"use strict";var{signalsByName:G2}=Ob(),W2=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${i})`:s!==void 0?`failed with exit code ${s}`:"failed",z2=({stdout:t,stderr:e,all:r,error:n,signal:i,exitCode:s,command:o,escapedCommand:a,timedOut:u,isCanceled:c,killed:l,parsed:{options:{timeout:f}}})=>{s=s===null?void 0:s,i=i===null?void 0:i;let h=i===void 0?void 0:G2[i].description,p=n&&n.code,_=`Command ${W2({timedOut:u,timeout:f,errorCode:p,signal:i,signalDescription:h,exitCode:s,isCanceled:c})}: ${o}`,g=Object.prototype.toString.call(n)==="[object Error]",D=g?`${_}
|
|
11
11
|
${n.message}`:_,C=[D,e,t].filter(Boolean).join(`
|
|
12
|
-
`);return g?(n.originalMessage=n.message,n.message=C):n=new Error(C),n.shortMessage=D,n.command=o,n.escapedCommand=a,n.exitCode=s,n.signal=i,n.signalDescription=h,n.stdout=t,n.stderr=e,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!u,n.isCanceled=c,n.killed=l&&!u,n};kb.exports=z2});var Ib=b((Z6,Vf)=>{"use strict";var ia=["stdin","stdout","stderr"],V2=t=>ia.some(e=>t[e]!==void 0),Bb=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return ia.map(n=>t[n]);if(V2(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${ia.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,ia.length);return Array.from({length:r},(n,i)=>e[i])};Vf.exports=Bb;Vf.exports.node=t=>{let e=Bb(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var Nb=b((Q6,Lb)=>{"use strict";var Y2=require("os"),K2=Df(),J2=1e3*5,X2=(t,e="SIGTERM",r={})=>{let n=t(e);return Z2(t,e,r,n),n},Z2=(t,e,r,n)=>{if(!Q2(e,r,n))return;let i=tB(r),s=setTimeout(()=>{t("SIGKILL")},i);s.unref&&s.unref()},Q2=(t,{forceKillAfterTimeout:e},r)=>eB(t)&&e!==!1&&r,eB=t=>t===Y2.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",tB=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return J2;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},rB=(t,e)=>{t.kill()&&(e.isCanceled=!0)},nB=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},iB=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let i,s=new Promise((a,u)=>{i=setTimeout(()=>{nB(t,r,u)},e)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},sB=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},oB=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let i=K2(()=>{t.kill()});return n.finally(()=>{i()})};Lb.exports={spawnedKill:X2,spawnedCancel:rB,setupTimeout:iB,validateTimeout:sB,setExitHandler:oB}});var qb=b((eH,Mb)=>{"use strict";var Ht=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Ht.writable=t=>Ht(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Ht.readable=t=>Ht(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Ht.duplex=t=>Ht.writable(t)&&Ht.readable(t);Ht.transform=t=>Ht.duplex(t)&&typeof t._transform=="function";Mb.exports=Ht});var jb=b((tH,Hb)=>{"use strict";var{PassThrough:aB}=require("stream");Hb.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new aB({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),i?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var $b=b((rH,us)=>{"use strict";var{constants:uB}=require("buffer"),cB=require("stream"),{promisify:lB}=require("util"),fB=jb(),hB=lB(cB.pipeline),sa=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Yf(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n=fB(e);return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=uB.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};(async()=>{try{await hB(t,n),i()}catch(a){o(a)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new sa)})}),n.getBufferedValue()}us.exports=Yf;us.exports.buffer=(t,e)=>Yf(t,{...e,encoding:"buffer"});us.exports.array=(t,e)=>Yf(t,{...e,array:!0});us.exports.MaxBufferError=sa});var Gb=b((nH,Ub)=>{"use strict";var{PassThrough:dB}=require("stream");Ub.exports=function(){var t=[],e=new dB({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),e;function r(s){return Array.isArray(s)?(s.forEach(r),this):(t.push(s),s.once("end",i.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function n(){return t.length==0}function i(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var Yb=b((iH,Vb)=>{"use strict";var zb=qb(),Wb=$b(),pB=Gb(),mB=(t,e)=>{e===void 0||t.stdin===void 0||(zb(e)?e.pipe(t.stdin):t.stdin.end(e))},gB=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=pB();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Kf=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Jf=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?Wb(t,{encoding:e,maxBuffer:n}):Wb.buffer(t,{maxBuffer:n})},yB=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let a=Jf(t,{encoding:n,buffer:i,maxBuffer:s}),u=Jf(e,{encoding:n,buffer:i,maxBuffer:s}),c=Jf(r,{encoding:n,buffer:i,maxBuffer:s*2});try{return await Promise.all([o,a,u,c])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},Kf(t,a),Kf(e,u),Kf(r,c)])}},_B=({input:t})=>{if(zb(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Vb.exports={handleInput:mB,makeAllStream:gB,getSpawnedResult:yB,validateInputSync:_B}});var Jb=b((sH,Kb)=>{"use strict";var EB=(async()=>{})().constructor.prototype,bB=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(EB,t)]),DB=(t,e)=>{for(let[r,n]of bB){let i=typeof e=="function"?(...s)=>Reflect.apply(n.value,e(),s):n.value.bind(e);Reflect.defineProperty(t,r,{...n,value:i})}return t},wB=t=>new Promise((e,r)=>{t.on("exit",(n,i)=>{e({exitCode:n,signal:i})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});Kb.exports={mergePromise:DB,getSpawnedPromise:wB}});var Qb=b((oH,Zb)=>{"use strict";var Xb=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],AB=/^[\w.-]+$/,xB=/"/g,SB=t=>typeof t!="string"||AB.test(t)?t:`"${t.replace(xB,'\\"')}"`,CB=(t,e)=>Xb(t,e).join(" "),vB=(t,e)=>Xb(t,e).map(r=>SB(r)).join(" "),RB=/ +/g,FB=t=>{let e=[];for(let r of t.trim().split(RB)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};Zb.exports={joinCommand:CB,getEscapedCommand:vB,parseCommand:FB}});var oD=b((aH,ti)=>{"use strict";var TB=require("path"),Xf=require("child_process"),OB=bb(),kB=wb(),PB=Sb(),BB=_f(),oa=Pb(),tD=Ib(),{spawnedKill:IB,spawnedCancel:LB,setupTimeout:NB,validateTimeout:MB,setExitHandler:qB}=Nb(),{handleInput:HB,getSpawnedResult:jB,makeAllStream:$B,validateInputSync:UB}=Yb(),{mergePromise:eD,getSpawnedPromise:GB}=Jb(),{joinCommand:rD,parseCommand:nD,getEscapedCommand:iD}=Qb(),WB=1e3*1e3*100,zB=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:i})=>{let s=e?{...process.env,...t}:t;return r?PB.env({env:s,cwd:n,execPath:i}):s},sD=(t,e,r={})=>{let n=OB._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r={maxBuffer:WB,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r},r.env=zB(r),r.stdio=tD(r),process.platform==="win32"&&TB.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},cs=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?kB(e):e,aa=(t,e,r)=>{let n=sD(t,e,r),i=rD(t,e),s=iD(t,e);MB(n.options);let o;try{o=Xf.spawn(n.file,n.args,n.options)}catch(p){let m=new Xf.ChildProcess,_=Promise.reject(oa({error:p,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return eD(m,_)}let a=GB(o),u=NB(o,n.options,a),c=qB(o,n.options,u),l={isCanceled:!1};o.kill=IB.bind(null,o.kill.bind(o)),o.cancel=LB.bind(null,o,l);let h=BB(async()=>{let[{error:p,exitCode:m,signal:_,timedOut:g},D,C,q]=await jB(o,n.options,c),$=cs(n.options,D),N=cs(n.options,C),K=cs(n.options,q);if(p||m!==0||_!==null){let z=oa({error:p,exitCode:m,signal:_,stdout:$,stderr:N,all:K,command:i,escapedCommand:s,parsed:n,timedOut:g,isCanceled:l.isCanceled,killed:o.killed});if(!n.options.reject)return z;throw z}return{command:i,escapedCommand:s,exitCode:0,stdout:$,stderr:N,all:K,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return HB(o,n.options.input),o.all=$B(o,n.options),eD(o,h)};ti.exports=aa;ti.exports.sync=(t,e,r)=>{let n=sD(t,e,r),i=rD(t,e),s=iD(t,e);UB(n.options);let o;try{o=Xf.spawnSync(n.file,n.args,n.options)}catch(c){throw oa({error:c,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let a=cs(n.options,o.stdout,o.error),u=cs(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=oa({stdout:a,stderr:u,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:s,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return c;throw c}return{command:i,escapedCommand:s,exitCode:0,stdout:a,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};ti.exports.command=(t,e)=>{let[r,...n]=nD(t);return aa(r,n,e)};ti.exports.commandSync=(t,e)=>{let[r,...n]=nD(t);return aa.sync(r,n,e)};ti.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=tD.node(r),i=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return aa(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var ri=b((hH,cD)=>{"use strict";var uD=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"]]);cD.exports=t=>t?Object.keys(t).map(e=>[uD.has(e)?uD.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var pa=b((dH,_D)=>{"use strict";var lD=typeof process=="object"&&process?process:{stdout:null,stderr:null},JB=require("events"),fD=require("stream"),hD=require("string_decoder").StringDecoder,sr=Symbol("EOF"),or=Symbol("maybeEmitEnd"),Br=Symbol("emittedEnd"),ca=Symbol("emittingEnd"),fs=Symbol("emittedError"),la=Symbol("closed"),dD=Symbol("read"),fa=Symbol("flush"),pD=Symbol("flushChunk"),Qe=Symbol("encoding"),ar=Symbol("decoder"),ha=Symbol("flowing"),hs=Symbol("paused"),ni=Symbol("resume"),Ae=Symbol("buffer"),jt=Symbol("pipes"),Oe=Symbol("bufferLength"),th=Symbol("bufferPush"),rh=Symbol("bufferShift"),je=Symbol("objectMode"),$e=Symbol("destroyed"),nh=Symbol("emitData"),mD=Symbol("emitEnd"),ih=Symbol("emitEnd2"),ur=Symbol("async"),ds=t=>Promise.resolve().then(t),gD=global._MP_NO_ITERATOR_SYMBOLS_!=="1",XB=gD&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),ZB=gD&&Symbol.iterator||Symbol("iterator not implemented"),QB=t=>t==="end"||t==="finish"||t==="prefinish",eI=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,tI=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),da=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[ni](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},sh=class extends da{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};_D.exports=class yD extends fD{constructor(e){super(),this[ha]=!1,this[hs]=!1,this[jt]=[],this[Ae]=[],this[je]=e&&e.objectMode||!1,this[je]?this[Qe]=null:this[Qe]=e&&e.encoding||null,this[Qe]==="buffer"&&(this[Qe]=null),this[ur]=e&&!!e.async||!1,this[ar]=this[Qe]?new hD(this[Qe]):null,this[sr]=!1,this[Br]=!1,this[ca]=!1,this[la]=!1,this[fs]=null,this.writable=!0,this.readable=!0,this[Oe]=0,this[$e]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Ae]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[jt]})}get bufferLength(){return this[Oe]}get encoding(){return this[Qe]}set encoding(e){if(this[je])throw new Error("cannot set encoding in objectMode");if(this[Qe]&&e!==this[Qe]&&(this[ar]&&this[ar].lastNeed||this[Oe]))throw new Error("cannot change encoding");this[Qe]!==e&&(this[ar]=e?new hD(e):null,this[Ae].length&&(this[Ae]=this[Ae].map(r=>this[ar].write(r)))),this[Qe]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[je]}set objectMode(e){this[je]=this[je]||!!e}get async(){return this[ur]}set async(e){this[ur]=this[ur]||!!e}write(e,r,n){if(this[sr])throw new Error("write after end");if(this[$e])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[ur]?ds:s=>s();return!this[je]&&!Buffer.isBuffer(e)&&(tI(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):eI(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[je]?(this.flowing&&this[Oe]!==0&&this[fa](!0),this.flowing?this.emit("data",e):this[th](e),this[Oe]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[Qe]&&!this[ar].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Qe]&&(e=this[ar].write(e)),this.flowing&&this[Oe]!==0&&this[fa](!0),this.flowing?this.emit("data",e):this[th](e),this[Oe]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Oe]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[$e])return null;if(this[Oe]===0||e===0||e>this[Oe])return this[or](),null;this[je]&&(e=null),this[Ae].length>1&&!this[je]&&(this.encoding?this[Ae]=[this[Ae].join("")]:this[Ae]=[Buffer.concat(this[Ae],this[Oe])]);let r=this[dD](e||null,this[Ae][0]);return this[or](),r}[dD](e,r){return e===r.length||e===null?this[rh]():(this[Ae][0]=r.slice(e),r=r.slice(0,e),this[Oe]-=e),this.emit("data",r),!this[Ae].length&&!this[sr]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[sr]=!0,this.writable=!1,(this.flowing||!this[hs])&&this[or](),this}[ni](){this[$e]||(this[hs]=!1,this[ha]=!0,this.emit("resume"),this[Ae].length?this[fa]():this[sr]?this[or]():this.emit("drain"))}resume(){return this[ni]()}pause(){this[ha]=!1,this[hs]=!0}get destroyed(){return this[$e]}get flowing(){return this[ha]}get paused(){return this[hs]}[th](e){this[je]?this[Oe]+=1:this[Oe]+=e.length,this[Ae].push(e)}[rh](){return this[Ae].length&&(this[je]?this[Oe]-=1:this[Oe]-=this[Ae][0].length),this[Ae].shift()}[fa](e){do;while(this[pD](this[rh]()));!e&&!this[Ae].length&&!this[sr]&&this.emit("drain")}[pD](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[$e])return;let n=this[Br];return r=r||{},e===lD.stdout||e===lD.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this[jt].push(r.proxyErrors?new sh(this,e,r):new da(this,e,r)),this[ur]?ds(()=>this[ni]()):this[ni]()),e}unpipe(e){let r=this[jt].find(n=>n.dest===e);r&&(this[jt].splice(this[jt].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this[jt].length&&!this.flowing?this[ni]():e==="readable"&&this[Oe]!==0?super.emit("readable"):QB(e)&&this[Br]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[fs]&&(this[ur]?ds(()=>r.call(this,this[fs])):r.call(this,this[fs])),n}get emittedEnd(){return this[Br]}[or](){!this[ca]&&!this[Br]&&!this[$e]&&this[Ae].length===0&&this[sr]&&(this[ca]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[la]&&this.emit("close"),this[ca]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==$e&&this[$e])return;if(e==="data")return r?this[ur]?ds(()=>this[nh](r)):this[nh](r):!1;if(e==="end")return this[mD]();if(e==="close"){if(this[la]=!0,!this[Br]&&!this[$e])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[fs]=r;let s=super.emit("error",r);return this[or](),s}else if(e==="resume"){let s=super.emit("resume");return this[or](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[or](),i}[nh](e){for(let n of this[jt])n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[or](),r}[mD](){this[Br]||(this[Br]=!0,this.readable=!1,this[ur]?ds(()=>this[ih]()):this[ih]())}[ih](){if(this[ar]){let r=this[ar].end();if(r){for(let n of this[jt])n.dest.write(r);super.emit("data",r)}}for(let r of this[jt])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[je]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[je]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[je]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[je]?Promise.reject(new Error("cannot concat in objectMode")):this[Qe]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on($e,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[XB](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[sr])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:c,done:!!this[sr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once($e,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[ZB](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[$e]?(e?this.emit("error",e):this.emit($e),this):(this[$e]=!0,this[Ae].length=0,this[Oe]=0,typeof this.close=="function"&&!this[la]&&this.close(),e?this.emit("error",e):this.emit($e),this)}static isStream(e){return!!e&&(e instanceof yD||e instanceof fD||e instanceof JB&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var bD=b((pH,ED)=>{var rI=require("zlib").constants||{ZLIB_VERNUM:4736};ED.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},rI))});var fh=b((mH,FD)=>{"use strict";var DD=typeof process=="object"&&process?process:{stdout:null,stderr:null},nI=require("events"),wD=require("stream"),AD=require("string_decoder").StringDecoder,cr=Symbol("EOF"),lr=Symbol("maybeEmitEnd"),Ir=Symbol("emittedEnd"),ma=Symbol("emittingEnd"),ps=Symbol("emittedError"),ga=Symbol("closed"),xD=Symbol("read"),ya=Symbol("flush"),SD=Symbol("flushChunk"),et=Symbol("encoding"),fr=Symbol("decoder"),_a=Symbol("flowing"),ms=Symbol("paused"),ii=Symbol("resume"),ke=Symbol("bufferLength"),oh=Symbol("bufferPush"),ah=Symbol("bufferShift"),Ue=Symbol("objectMode"),Ge=Symbol("destroyed"),uh=Symbol("emitData"),CD=Symbol("emitEnd"),ch=Symbol("emitEnd2"),hr=Symbol("async"),gs=t=>Promise.resolve().then(t),vD=global._MP_NO_ITERATOR_SYMBOLS_!=="1",iI=vD&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),sI=vD&&Symbol.iterator||Symbol("iterator not implemented"),oI=t=>t==="end"||t==="finish"||t==="prefinish",aI=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,uI=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Ea=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[ii](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},lh=class extends Ea{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};FD.exports=class RD extends wD{constructor(e){super(),this[_a]=!1,this[ms]=!1,this.pipes=[],this.buffer=[],this[Ue]=e&&e.objectMode||!1,this[Ue]?this[et]=null:this[et]=e&&e.encoding||null,this[et]==="buffer"&&(this[et]=null),this[hr]=e&&!!e.async||!1,this[fr]=this[et]?new AD(this[et]):null,this[cr]=!1,this[Ir]=!1,this[ma]=!1,this[ga]=!1,this[ps]=null,this.writable=!0,this.readable=!0,this[ke]=0,this[Ge]=!1}get bufferLength(){return this[ke]}get encoding(){return this[et]}set encoding(e){if(this[Ue])throw new Error("cannot set encoding in objectMode");if(this[et]&&e!==this[et]&&(this[fr]&&this[fr].lastNeed||this[ke]))throw new Error("cannot change encoding");this[et]!==e&&(this[fr]=e?new AD(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[fr].write(r)))),this[et]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Ue]}set objectMode(e){this[Ue]=this[Ue]||!!e}get async(){return this[hr]}set async(e){this[hr]=this[hr]||!!e}write(e,r,n){if(this[cr])throw new Error("write after end");if(this[Ge])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[hr]?gs:s=>s();return!this[Ue]&&!Buffer.isBuffer(e)&&(uI(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):aI(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Ue]?(this.flowing&&this[ke]!==0&&this[ya](!0),this.flowing?this.emit("data",e):this[oh](e),this[ke]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[et]&&!this[fr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[et]&&(e=this[fr].write(e)),this.flowing&&this[ke]!==0&&this[ya](!0),this.flowing?this.emit("data",e):this[oh](e),this[ke]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[ke]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[Ge])return null;if(this[ke]===0||e===0||e>this[ke])return this[lr](),null;this[Ue]&&(e=null),this.buffer.length>1&&!this[Ue]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[ke])]);let r=this[xD](e||null,this.buffer[0]);return this[lr](),r}[xD](e,r){return e===r.length||e===null?this[ah]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[ke]-=e),this.emit("data",r),!this.buffer.length&&!this[cr]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[cr]=!0,this.writable=!1,(this.flowing||!this[ms])&&this[lr](),this}[ii](){this[Ge]||(this[ms]=!1,this[_a]=!0,this.emit("resume"),this.buffer.length?this[ya]():this[cr]?this[lr]():this.emit("drain"))}resume(){return this[ii]()}pause(){this[_a]=!1,this[ms]=!0}get destroyed(){return this[Ge]}get flowing(){return this[_a]}get paused(){return this[ms]}[oh](e){this[Ue]?this[ke]+=1:this[ke]+=e.length,this.buffer.push(e)}[ah](){return this.buffer.length&&(this[Ue]?this[ke]-=1:this[ke]-=this.buffer[0].length),this.buffer.shift()}[ya](e){do;while(this[SD](this[ah]()));!e&&!this.buffer.length&&!this[cr]&&this.emit("drain")}[SD](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Ge])return;let n=this[Ir];return r=r||{},e===DD.stdout||e===DD.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this.pipes.push(r.proxyErrors?new lh(this,e,r):new Ea(this,e,r)),this[hr]?gs(()=>this[ii]()):this[ii]()),e}unpipe(e){let r=this.pipes.find(n=>n.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[ii]():e==="readable"&&this[ke]!==0?super.emit("readable"):oI(e)&&this[Ir]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[ps]&&(this[hr]?gs(()=>r.call(this,this[ps])):r.call(this,this[ps])),n}get emittedEnd(){return this[Ir]}[lr](){!this[ma]&&!this[Ir]&&!this[Ge]&&this.buffer.length===0&&this[cr]&&(this[ma]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ga]&&this.emit("close"),this[ma]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==Ge&&this[Ge])return;if(e==="data")return r?this[hr]?gs(()=>this[uh](r)):this[uh](r):!1;if(e==="end")return this[CD]();if(e==="close"){if(this[ga]=!0,!this[Ir]&&!this[Ge])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[ps]=r;let s=super.emit("error",r);return this[lr](),s}else if(e==="resume"){let s=super.emit("resume");return this[lr](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[lr](),i}[uh](e){for(let n of this.pipes)n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[lr](),r}[CD](){this[Ir]||(this[Ir]=!0,this.readable=!1,this[hr]?gs(()=>this[ch]()):this[ch]())}[ch](){if(this[fr]){let r=this[fr].end();if(r){for(let n of this.pipes)n.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Ue]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[Ue]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[Ue]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Ue]?Promise.reject(new Error("cannot concat in objectMode")):this[et]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Ge,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[iI](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[cr])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:c,done:!!this[cr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once(Ge,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[sI](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Ge]?(e?this.emit("error",e):this.emit(Ge),this):(this[Ge]=!0,this.buffer.length=0,this[ke]=0,typeof this.close=="function"&&!this[ga]&&this.close(),e?this.emit("error",e):this.emit(Ge),this)}static isStream(e){return!!e&&(e instanceof RD||e instanceof wD||e instanceof nI&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var vh=b(at=>{"use strict";var gh=require("assert"),Lr=require("buffer").Buffer,kD=require("zlib"),hn=at.constants=bD(),cI=fh(),TD=Lr.concat,dn=Symbol("_superWrite"),oi=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},lI=Symbol("opts"),ys=Symbol("flushFlag"),OD=Symbol("finishFlushFlag"),Ch=Symbol("fullFlushFlag"),fe=Symbol("handle"),ba=Symbol("onError"),si=Symbol("sawError"),hh=Symbol("level"),dh=Symbol("strategy"),ph=Symbol("ended"),gH=Symbol("_defaultFullFlush"),Da=class extends cI{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[si]=!1,this[ph]=!1,this[lI]=e,this[ys]=e.flush,this[OD]=e.finishFlush;try{this[fe]=new kD[r](e)}catch(n){throw new oi(n)}this[ba]=n=>{this[si]||(this[si]=!0,this.close(),this.emit("error",n))},this[fe].on("error",n=>this[ba](new oi(n))),this.once("end",()=>this.close)}close(){this[fe]&&(this[fe].close(),this[fe]=null,this.emit("close"))}reset(){if(!this[si])return gh(this[fe],"zlib binding closed"),this[fe].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[Ch]),this.write(Object.assign(Lr.alloc(0),{[ys]:e})))}end(e,r,n){return e&&this.write(e,r),this.flush(this[OD]),this[ph]=!0,super.end(null,null,n)}get ended(){return this[ph]}write(e,r,n){if(typeof r=="function"&&(n=r,r="utf8"),typeof e=="string"&&(e=Lr.from(e,r)),this[si])return;gh(this[fe],"zlib binding closed");let i=this[fe]._handle,s=i.close;i.close=()=>{};let o=this[fe].close;this[fe].close=()=>{},Lr.concat=c=>c;let a;try{let c=typeof e[ys]=="number"?e[ys]:this[ys];a=this[fe]._processChunk(e,c),Lr.concat=TD}catch(c){Lr.concat=TD,this[ba](new oi(c))}finally{this[fe]&&(this[fe]._handle=i,i.close=s,this[fe].close=o,this[fe].removeAllListeners("error"))}this[fe]&&this[fe].on("error",c=>this[ba](new oi(c)));let u;if(a)if(Array.isArray(a)&&a.length>0){u=this[dn](Lr.from(a[0]));for(let c=1;c<a.length;c++)u=this[dn](a[c])}else u=this[dn](Lr.from(a));return n&&n(),u}[dn](e){return super.write(e)}},dr=class extends Da{constructor(e,r){e=e||{},e.flush=e.flush||hn.Z_NO_FLUSH,e.finishFlush=e.finishFlush||hn.Z_FINISH,super(e,r),this[Ch]=hn.Z_FULL_FLUSH,this[hh]=e.level,this[dh]=e.strategy}params(e,r){if(!this[si]){if(!this[fe])throw new Error("cannot switch params when binding is closed");if(!this[fe].params)throw new Error("not supported in this implementation");if(this[hh]!==e||this[dh]!==r){this.flush(hn.Z_SYNC_FLUSH),gh(this[fe],"zlib binding closed");let n=this[fe].flush;this[fe].flush=(i,s)=>{this.flush(i),s()};try{this[fe].params(e,r)}finally{this[fe].flush=n}this[fe]&&(this[hh]=e,this[dh]=r)}}}},yh=class extends dr{constructor(e){super(e,"Deflate")}},_h=class extends dr{constructor(e){super(e,"Inflate")}},mh=Symbol("_portable"),Eh=class extends dr{constructor(e){super(e,"Gzip"),this[mh]=e&&!!e.portable}[dn](e){return this[mh]?(this[mh]=!1,e[9]=255,super[dn](e)):super[dn](e)}},bh=class extends dr{constructor(e){super(e,"Gunzip")}},Dh=class extends dr{constructor(e){super(e,"DeflateRaw")}},wh=class extends dr{constructor(e){super(e,"InflateRaw")}},Ah=class extends dr{constructor(e){super(e,"Unzip")}},wa=class extends Da{constructor(e,r){e=e||{},e.flush=e.flush||hn.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||hn.BROTLI_OPERATION_FINISH,super(e,r),this[Ch]=hn.BROTLI_OPERATION_FLUSH}},xh=class extends wa{constructor(e){super(e,"BrotliCompress")}},Sh=class extends wa{constructor(e){super(e,"BrotliDecompress")}};at.Deflate=yh;at.Inflate=_h;at.Gzip=Eh;at.Gunzip=bh;at.DeflateRaw=Dh;at.InflateRaw=wh;at.Unzip=Ah;typeof kD.BrotliCompress=="function"?(at.BrotliCompress=xh,at.BrotliDecompress=Sh):at.BrotliCompress=at.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var ai=b((EH,PD)=>{var fI=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;PD.exports=fI!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var Aa=b((DH,BD)=>{"use strict";var hI=pa(),Rh=ai(),Fh=Symbol("slurp");BD.exports=class extends hI{constructor(e,r,n){switch(super(),this.pause(),this.extended=r,this.globalExtended=n,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.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=Rh(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=Rh(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[Fh](r),n&&this[Fh](n,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let n=this.remain,i=this.blockRemain;return this.remain=Math.max(0,n-r),this.blockRemain=Math.max(0,i-r),this.ignore?!0:n>=r?super.write(e):super.write(e.slice(0,n))}[Fh](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=n==="path"||n==="linkpath"?Rh(e[n]):e[n])}}});var Th=b(xa=>{"use strict";xa.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"]]);xa.code=new Map(Array.from(xa.name).map(t=>[t[1],t[0]]))});var MD=b((AH,ND)=>{"use strict";var dI=(t,e)=>{if(Number.isSafeInteger(t))t<0?mI(t,e):pI(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},pI=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},mI=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var n=e.length;n>1;n--){var i=t&255;t=Math.floor(t/256),r?e[n-1]=ID(i):i===0?e[n-1]=0:(r=!0,e[n-1]=LD(i))}},gI=t=>{let e=t[0],r=e===128?_I(t.slice(1,t.length)):e===255?yI(t):null;if(r===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r},yI=t=>{for(var e=t.length,r=0,n=!1,i=e-1;i>-1;i--){var s=t[i],o;n?o=ID(s):s===0?o=s:(n=!0,o=LD(s)),o!==0&&(r-=o*Math.pow(256,e-i-1))}return r},_I=t=>{for(var e=t.length,r=0,n=e-1;n>-1;n--){var i=t[n];i!==0&&(r+=i*Math.pow(256,e-n-1))}return r},ID=t=>(255^t)&255,LD=t=>(255^t)+1&255;ND.exports={encode:dI,parse:gI}});var ci=b((xH,HD)=>{"use strict";var Oh=Th(),ui=require("path").posix,qD=MD(),kh=Symbol("slurp"),ut=Symbol("type"),Ih=class{constructor(e,r,n,i){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[ut]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,n,i):e&&this.set(e)}decode(e,r,n,i){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=pn(e,r,100),this.mode=Nr(e,r+100,8),this.uid=Nr(e,r+108,8),this.gid=Nr(e,r+116,8),this.size=Nr(e,r+124,12),this.mtime=Ph(e,r+136,12),this.cksum=Nr(e,r+148,12),this[kh](n),this[kh](i,!0),this[ut]=pn(e,r+156,1),this[ut]===""&&(this[ut]="0"),this[ut]==="0"&&this.path.slice(-1)==="/"&&(this[ut]="5"),this[ut]==="5"&&(this.size=0),this.linkpath=pn(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=pn(e,r+265,32),this.gname=pn(e,r+297,32),this.devmaj=Nr(e,r+329,8),this.devmin=Nr(e,r+337,8),e[r+475]!==0){let o=pn(e,r+345,155);this.path=o+"/"+this.path}else{let o=pn(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=Ph(e,r+476,12),this.ctime=Ph(e,r+488,12)}let s=8*32;for(let o=r;o<r+148;o++)s+=e[o];for(let o=r+156;o<r+512;o++)s+=e[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[kh](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=e[n])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let n=this.ctime||this.atime?130:155,i=EI(this.path||"",n),s=i[0],o=i[1];this.needPax=i[2],this.needPax=mn(e,r,100,s)||this.needPax,this.needPax=Mr(e,r+100,8,this.mode)||this.needPax,this.needPax=Mr(e,r+108,8,this.uid)||this.needPax,this.needPax=Mr(e,r+116,8,this.gid)||this.needPax,this.needPax=Mr(e,r+124,12,this.size)||this.needPax,this.needPax=Bh(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[ut].charCodeAt(0),this.needPax=mn(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=mn(e,r+265,32,this.uname)||this.needPax,this.needPax=mn(e,r+297,32,this.gname)||this.needPax,this.needPax=Mr(e,r+329,8,this.devmaj)||this.needPax,this.needPax=Mr(e,r+337,8,this.devmin)||this.needPax,this.needPax=mn(e,r+345,n,o)||this.needPax,e[r+475]!==0?this.needPax=mn(e,r+345,155,o)||this.needPax:(this.needPax=mn(e,r+345,130,o)||this.needPax,this.needPax=Bh(e,r+476,12,this.atime)||this.needPax,this.needPax=Bh(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let u=r;u<r+148;u++)a+=e[u];for(let u=r+156;u<r+512;u++)a+=e[u];return this.cksum=a,Mr(e,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let r in e)e[r]!==null&&e[r]!==void 0&&(this[r]=e[r])}get type(){return Oh.name.get(this[ut])||this[ut]}get typeKey(){return this[ut]}set type(e){Oh.code.has(e)?this[ut]=Oh.code.get(e):this[ut]=e}},EI=(t,e)=>{let n=t,i="",s,o=ui.parse(t).root||".";if(Buffer.byteLength(n)<100)s=[n,i,!1];else{i=ui.dirname(n),n=ui.basename(n);do Buffer.byteLength(n)<=100&&Buffer.byteLength(i)<=e?s=[n,i,!1]:Buffer.byteLength(n)>100&&Buffer.byteLength(i)<=e?s=[n.slice(0,100-1),i,!0]:(n=ui.join(ui.basename(i),n),i=ui.dirname(i));while(i!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},pn=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),Ph=(t,e,r)=>bI(Nr(t,e,r)),bI=t=>t===null?null:new Date(t*1e3),Nr=(t,e,r)=>t[e]&128?qD.parse(t.slice(e,e+r)):wI(t,e,r),DI=t=>isNaN(t)?null:t,wI=(t,e,r)=>DI(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),AI={12:8589934591,8:2097151},Mr=(t,e,r,n)=>n===null?!1:n>AI[r]||n<0?(qD.encode(n,t.slice(e,e+r)),!0):(xI(t,e,r,n),!1),xI=(t,e,r,n)=>t.write(SI(n,r),e,r,"ascii"),SI=(t,e)=>CI(Math.floor(t).toString(8),e),CI=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",Bh=(t,e,r,n)=>n===null?!1:Mr(t,e,r,n.getTime()/1e3),vI=new Array(156).join("\0"),mn=(t,e,r,n)=>n===null?!1:(t.write(n+vI,e,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);HD.exports=Ih});var Sa=b((SH,jD)=>{"use strict";var RI=ci(),FI=require("path"),_s=class{constructor(e,r){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=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),n=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(n);for(let s=0;s<512;s++)i[s]=0;new RI({path:("PaxHeader/"+FI.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,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(i),i.write(e,512,r,"utf8");for(let s=r+512;s<i.length;s++)i[s]=0;return i}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 r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],n=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
|
|
12
|
+
`);return g?(n.originalMessage=n.message,n.message=C):n=new Error(C),n.shortMessage=D,n.command=o,n.escapedCommand=a,n.exitCode=s,n.signal=i,n.signalDescription=h,n.stdout=t,n.stderr=e,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!u,n.isCanceled=c,n.killed=l&&!u,n};kb.exports=z2});var Ib=b((Z5,Vf)=>{"use strict";var ia=["stdin","stdout","stderr"],V2=t=>ia.some(e=>t[e]!==void 0),Bb=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return ia.map(n=>t[n]);if(V2(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${ia.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,ia.length);return Array.from({length:r},(n,i)=>e[i])};Vf.exports=Bb;Vf.exports.node=t=>{let e=Bb(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var Nb=b((Q5,Lb)=>{"use strict";var Y2=require("os"),K2=Df(),J2=1e3*5,X2=(t,e="SIGTERM",r={})=>{let n=t(e);return Z2(t,e,r,n),n},Z2=(t,e,r,n)=>{if(!Q2(e,r,n))return;let i=tB(r),s=setTimeout(()=>{t("SIGKILL")},i);s.unref&&s.unref()},Q2=(t,{forceKillAfterTimeout:e},r)=>eB(t)&&e!==!1&&r,eB=t=>t===Y2.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",tB=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return J2;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},rB=(t,e)=>{t.kill()&&(e.isCanceled=!0)},nB=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},iB=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let i,s=new Promise((a,u)=>{i=setTimeout(()=>{nB(t,r,u)},e)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},sB=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},oB=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let i=K2(()=>{t.kill()});return n.finally(()=>{i()})};Lb.exports={spawnedKill:X2,spawnedCancel:rB,setupTimeout:iB,validateTimeout:sB,setExitHandler:oB}});var qb=b((eH,Mb)=>{"use strict";var Ht=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Ht.writable=t=>Ht(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Ht.readable=t=>Ht(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Ht.duplex=t=>Ht.writable(t)&&Ht.readable(t);Ht.transform=t=>Ht.duplex(t)&&typeof t._transform=="function";Mb.exports=Ht});var jb=b((tH,Hb)=>{"use strict";var{PassThrough:aB}=require("stream");Hb.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new aB({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),i?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var $b=b((rH,us)=>{"use strict";var{constants:uB}=require("buffer"),cB=require("stream"),{promisify:lB}=require("util"),fB=jb(),hB=lB(cB.pipeline),sa=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Yf(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n=fB(e);return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=uB.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};(async()=>{try{await hB(t,n),i()}catch(a){o(a)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new sa)})}),n.getBufferedValue()}us.exports=Yf;us.exports.buffer=(t,e)=>Yf(t,{...e,encoding:"buffer"});us.exports.array=(t,e)=>Yf(t,{...e,array:!0});us.exports.MaxBufferError=sa});var Gb=b((nH,Ub)=>{"use strict";var{PassThrough:dB}=require("stream");Ub.exports=function(){var t=[],e=new dB({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),e;function r(s){return Array.isArray(s)?(s.forEach(r),this):(t.push(s),s.once("end",i.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function n(){return t.length==0}function i(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var Yb=b((iH,Vb)=>{"use strict";var zb=qb(),Wb=$b(),pB=Gb(),mB=(t,e)=>{e===void 0||t.stdin===void 0||(zb(e)?e.pipe(t.stdin):t.stdin.end(e))},gB=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=pB();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Kf=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Jf=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?Wb(t,{encoding:e,maxBuffer:n}):Wb.buffer(t,{maxBuffer:n})},yB=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let a=Jf(t,{encoding:n,buffer:i,maxBuffer:s}),u=Jf(e,{encoding:n,buffer:i,maxBuffer:s}),c=Jf(r,{encoding:n,buffer:i,maxBuffer:s*2});try{return await Promise.all([o,a,u,c])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},Kf(t,a),Kf(e,u),Kf(r,c)])}},_B=({input:t})=>{if(zb(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Vb.exports={handleInput:mB,makeAllStream:gB,getSpawnedResult:yB,validateInputSync:_B}});var Jb=b((sH,Kb)=>{"use strict";var EB=(async()=>{})().constructor.prototype,bB=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(EB,t)]),DB=(t,e)=>{for(let[r,n]of bB){let i=typeof e=="function"?(...s)=>Reflect.apply(n.value,e(),s):n.value.bind(e);Reflect.defineProperty(t,r,{...n,value:i})}return t},wB=t=>new Promise((e,r)=>{t.on("exit",(n,i)=>{e({exitCode:n,signal:i})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});Kb.exports={mergePromise:DB,getSpawnedPromise:wB}});var Qb=b((oH,Zb)=>{"use strict";var Xb=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],AB=/^[\w.-]+$/,xB=/"/g,SB=t=>typeof t!="string"||AB.test(t)?t:`"${t.replace(xB,'\\"')}"`,CB=(t,e)=>Xb(t,e).join(" "),vB=(t,e)=>Xb(t,e).map(r=>SB(r)).join(" "),RB=/ +/g,FB=t=>{let e=[];for(let r of t.trim().split(RB)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};Zb.exports={joinCommand:CB,getEscapedCommand:vB,parseCommand:FB}});var oD=b((aH,ti)=>{"use strict";var TB=require("path"),Xf=require("child_process"),OB=bb(),kB=wb(),PB=Sb(),BB=_f(),oa=Pb(),tD=Ib(),{spawnedKill:IB,spawnedCancel:LB,setupTimeout:NB,validateTimeout:MB,setExitHandler:qB}=Nb(),{handleInput:HB,getSpawnedResult:jB,makeAllStream:$B,validateInputSync:UB}=Yb(),{mergePromise:eD,getSpawnedPromise:GB}=Jb(),{joinCommand:rD,parseCommand:nD,getEscapedCommand:iD}=Qb(),WB=1e3*1e3*100,zB=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:i})=>{let s=e?{...process.env,...t}:t;return r?PB.env({env:s,cwd:n,execPath:i}):s},sD=(t,e,r={})=>{let n=OB._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r={maxBuffer:WB,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r},r.env=zB(r),r.stdio=tD(r),process.platform==="win32"&&TB.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},cs=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?kB(e):e,aa=(t,e,r)=>{let n=sD(t,e,r),i=rD(t,e),s=iD(t,e);MB(n.options);let o;try{o=Xf.spawn(n.file,n.args,n.options)}catch(p){let m=new Xf.ChildProcess,_=Promise.reject(oa({error:p,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return eD(m,_)}let a=GB(o),u=NB(o,n.options,a),c=qB(o,n.options,u),l={isCanceled:!1};o.kill=IB.bind(null,o.kill.bind(o)),o.cancel=LB.bind(null,o,l);let h=BB(async()=>{let[{error:p,exitCode:m,signal:_,timedOut:g},D,C,q]=await jB(o,n.options,c),$=cs(n.options,D),N=cs(n.options,C),K=cs(n.options,q);if(p||m!==0||_!==null){let z=oa({error:p,exitCode:m,signal:_,stdout:$,stderr:N,all:K,command:i,escapedCommand:s,parsed:n,timedOut:g,isCanceled:l.isCanceled,killed:o.killed});if(!n.options.reject)return z;throw z}return{command:i,escapedCommand:s,exitCode:0,stdout:$,stderr:N,all:K,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return HB(o,n.options.input),o.all=$B(o,n.options),eD(o,h)};ti.exports=aa;ti.exports.sync=(t,e,r)=>{let n=sD(t,e,r),i=rD(t,e),s=iD(t,e);UB(n.options);let o;try{o=Xf.spawnSync(n.file,n.args,n.options)}catch(c){throw oa({error:c,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let a=cs(n.options,o.stdout,o.error),u=cs(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=oa({stdout:a,stderr:u,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:s,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return c;throw c}return{command:i,escapedCommand:s,exitCode:0,stdout:a,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};ti.exports.command=(t,e)=>{let[r,...n]=nD(t);return aa(r,n,e)};ti.exports.commandSync=(t,e)=>{let[r,...n]=nD(t);return aa.sync(r,n,e)};ti.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=tD.node(r),i=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return aa(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var ri=b((hH,cD)=>{"use strict";var uD=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"]]);cD.exports=t=>t?Object.keys(t).map(e=>[uD.has(e)?uD.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var pa=b((dH,_D)=>{"use strict";var lD=typeof process=="object"&&process?process:{stdout:null,stderr:null},JB=require("events"),fD=require("stream"),hD=require("string_decoder").StringDecoder,sr=Symbol("EOF"),or=Symbol("maybeEmitEnd"),Br=Symbol("emittedEnd"),ca=Symbol("emittingEnd"),fs=Symbol("emittedError"),la=Symbol("closed"),dD=Symbol("read"),fa=Symbol("flush"),pD=Symbol("flushChunk"),Qe=Symbol("encoding"),ar=Symbol("decoder"),ha=Symbol("flowing"),hs=Symbol("paused"),ni=Symbol("resume"),Ae=Symbol("buffer"),jt=Symbol("pipes"),Oe=Symbol("bufferLength"),th=Symbol("bufferPush"),rh=Symbol("bufferShift"),je=Symbol("objectMode"),$e=Symbol("destroyed"),nh=Symbol("emitData"),mD=Symbol("emitEnd"),ih=Symbol("emitEnd2"),ur=Symbol("async"),ds=t=>Promise.resolve().then(t),gD=global._MP_NO_ITERATOR_SYMBOLS_!=="1",XB=gD&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),ZB=gD&&Symbol.iterator||Symbol("iterator not implemented"),QB=t=>t==="end"||t==="finish"||t==="prefinish",eI=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,tI=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),da=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[ni](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},sh=class extends da{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};_D.exports=class yD extends fD{constructor(e){super(),this[ha]=!1,this[hs]=!1,this[jt]=[],this[Ae]=[],this[je]=e&&e.objectMode||!1,this[je]?this[Qe]=null:this[Qe]=e&&e.encoding||null,this[Qe]==="buffer"&&(this[Qe]=null),this[ur]=e&&!!e.async||!1,this[ar]=this[Qe]?new hD(this[Qe]):null,this[sr]=!1,this[Br]=!1,this[ca]=!1,this[la]=!1,this[fs]=null,this.writable=!0,this.readable=!0,this[Oe]=0,this[$e]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Ae]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[jt]})}get bufferLength(){return this[Oe]}get encoding(){return this[Qe]}set encoding(e){if(this[je])throw new Error("cannot set encoding in objectMode");if(this[Qe]&&e!==this[Qe]&&(this[ar]&&this[ar].lastNeed||this[Oe]))throw new Error("cannot change encoding");this[Qe]!==e&&(this[ar]=e?new hD(e):null,this[Ae].length&&(this[Ae]=this[Ae].map(r=>this[ar].write(r)))),this[Qe]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[je]}set objectMode(e){this[je]=this[je]||!!e}get async(){return this[ur]}set async(e){this[ur]=this[ur]||!!e}write(e,r,n){if(this[sr])throw new Error("write after end");if(this[$e])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[ur]?ds:s=>s();return!this[je]&&!Buffer.isBuffer(e)&&(tI(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):eI(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[je]?(this.flowing&&this[Oe]!==0&&this[fa](!0),this.flowing?this.emit("data",e):this[th](e),this[Oe]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[Qe]&&!this[ar].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Qe]&&(e=this[ar].write(e)),this.flowing&&this[Oe]!==0&&this[fa](!0),this.flowing?this.emit("data",e):this[th](e),this[Oe]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Oe]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[$e])return null;if(this[Oe]===0||e===0||e>this[Oe])return this[or](),null;this[je]&&(e=null),this[Ae].length>1&&!this[je]&&(this.encoding?this[Ae]=[this[Ae].join("")]:this[Ae]=[Buffer.concat(this[Ae],this[Oe])]);let r=this[dD](e||null,this[Ae][0]);return this[or](),r}[dD](e,r){return e===r.length||e===null?this[rh]():(this[Ae][0]=r.slice(e),r=r.slice(0,e),this[Oe]-=e),this.emit("data",r),!this[Ae].length&&!this[sr]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[sr]=!0,this.writable=!1,(this.flowing||!this[hs])&&this[or](),this}[ni](){this[$e]||(this[hs]=!1,this[ha]=!0,this.emit("resume"),this[Ae].length?this[fa]():this[sr]?this[or]():this.emit("drain"))}resume(){return this[ni]()}pause(){this[ha]=!1,this[hs]=!0}get destroyed(){return this[$e]}get flowing(){return this[ha]}get paused(){return this[hs]}[th](e){this[je]?this[Oe]+=1:this[Oe]+=e.length,this[Ae].push(e)}[rh](){return this[Ae].length&&(this[je]?this[Oe]-=1:this[Oe]-=this[Ae][0].length),this[Ae].shift()}[fa](e){do;while(this[pD](this[rh]()));!e&&!this[Ae].length&&!this[sr]&&this.emit("drain")}[pD](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[$e])return;let n=this[Br];return r=r||{},e===lD.stdout||e===lD.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this[jt].push(r.proxyErrors?new sh(this,e,r):new da(this,e,r)),this[ur]?ds(()=>this[ni]()):this[ni]()),e}unpipe(e){let r=this[jt].find(n=>n.dest===e);r&&(this[jt].splice(this[jt].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this[jt].length&&!this.flowing?this[ni]():e==="readable"&&this[Oe]!==0?super.emit("readable"):QB(e)&&this[Br]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[fs]&&(this[ur]?ds(()=>r.call(this,this[fs])):r.call(this,this[fs])),n}get emittedEnd(){return this[Br]}[or](){!this[ca]&&!this[Br]&&!this[$e]&&this[Ae].length===0&&this[sr]&&(this[ca]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[la]&&this.emit("close"),this[ca]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==$e&&this[$e])return;if(e==="data")return r?this[ur]?ds(()=>this[nh](r)):this[nh](r):!1;if(e==="end")return this[mD]();if(e==="close"){if(this[la]=!0,!this[Br]&&!this[$e])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[fs]=r;let s=super.emit("error",r);return this[or](),s}else if(e==="resume"){let s=super.emit("resume");return this[or](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[or](),i}[nh](e){for(let n of this[jt])n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[or](),r}[mD](){this[Br]||(this[Br]=!0,this.readable=!1,this[ur]?ds(()=>this[ih]()):this[ih]())}[ih](){if(this[ar]){let r=this[ar].end();if(r){for(let n of this[jt])n.dest.write(r);super.emit("data",r)}}for(let r of this[jt])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[je]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[je]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[je]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[je]?Promise.reject(new Error("cannot concat in objectMode")):this[Qe]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on($e,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[XB](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[sr])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:c,done:!!this[sr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once($e,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[ZB](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[$e]?(e?this.emit("error",e):this.emit($e),this):(this[$e]=!0,this[Ae].length=0,this[Oe]=0,typeof this.close=="function"&&!this[la]&&this.close(),e?this.emit("error",e):this.emit($e),this)}static isStream(e){return!!e&&(e instanceof yD||e instanceof fD||e instanceof JB&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var bD=b((pH,ED)=>{var rI=require("zlib").constants||{ZLIB_VERNUM:4736};ED.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},rI))});var fh=b((mH,FD)=>{"use strict";var DD=typeof process=="object"&&process?process:{stdout:null,stderr:null},nI=require("events"),wD=require("stream"),AD=require("string_decoder").StringDecoder,cr=Symbol("EOF"),lr=Symbol("maybeEmitEnd"),Ir=Symbol("emittedEnd"),ma=Symbol("emittingEnd"),ps=Symbol("emittedError"),ga=Symbol("closed"),xD=Symbol("read"),ya=Symbol("flush"),SD=Symbol("flushChunk"),et=Symbol("encoding"),fr=Symbol("decoder"),_a=Symbol("flowing"),ms=Symbol("paused"),ii=Symbol("resume"),ke=Symbol("bufferLength"),oh=Symbol("bufferPush"),ah=Symbol("bufferShift"),Ue=Symbol("objectMode"),Ge=Symbol("destroyed"),uh=Symbol("emitData"),CD=Symbol("emitEnd"),ch=Symbol("emitEnd2"),hr=Symbol("async"),gs=t=>Promise.resolve().then(t),vD=global._MP_NO_ITERATOR_SYMBOLS_!=="1",iI=vD&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),sI=vD&&Symbol.iterator||Symbol("iterator not implemented"),oI=t=>t==="end"||t==="finish"||t==="prefinish",aI=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,uI=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Ea=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[ii](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},lh=class extends Ea{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};FD.exports=class RD extends wD{constructor(e){super(),this[_a]=!1,this[ms]=!1,this.pipes=[],this.buffer=[],this[Ue]=e&&e.objectMode||!1,this[Ue]?this[et]=null:this[et]=e&&e.encoding||null,this[et]==="buffer"&&(this[et]=null),this[hr]=e&&!!e.async||!1,this[fr]=this[et]?new AD(this[et]):null,this[cr]=!1,this[Ir]=!1,this[ma]=!1,this[ga]=!1,this[ps]=null,this.writable=!0,this.readable=!0,this[ke]=0,this[Ge]=!1}get bufferLength(){return this[ke]}get encoding(){return this[et]}set encoding(e){if(this[Ue])throw new Error("cannot set encoding in objectMode");if(this[et]&&e!==this[et]&&(this[fr]&&this[fr].lastNeed||this[ke]))throw new Error("cannot change encoding");this[et]!==e&&(this[fr]=e?new AD(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[fr].write(r)))),this[et]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Ue]}set objectMode(e){this[Ue]=this[Ue]||!!e}get async(){return this[hr]}set async(e){this[hr]=this[hr]||!!e}write(e,r,n){if(this[cr])throw new Error("write after end");if(this[Ge])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[hr]?gs:s=>s();return!this[Ue]&&!Buffer.isBuffer(e)&&(uI(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):aI(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Ue]?(this.flowing&&this[ke]!==0&&this[ya](!0),this.flowing?this.emit("data",e):this[oh](e),this[ke]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[et]&&!this[fr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[et]&&(e=this[fr].write(e)),this.flowing&&this[ke]!==0&&this[ya](!0),this.flowing?this.emit("data",e):this[oh](e),this[ke]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[ke]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[Ge])return null;if(this[ke]===0||e===0||e>this[ke])return this[lr](),null;this[Ue]&&(e=null),this.buffer.length>1&&!this[Ue]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[ke])]);let r=this[xD](e||null,this.buffer[0]);return this[lr](),r}[xD](e,r){return e===r.length||e===null?this[ah]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[ke]-=e),this.emit("data",r),!this.buffer.length&&!this[cr]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[cr]=!0,this.writable=!1,(this.flowing||!this[ms])&&this[lr](),this}[ii](){this[Ge]||(this[ms]=!1,this[_a]=!0,this.emit("resume"),this.buffer.length?this[ya]():this[cr]?this[lr]():this.emit("drain"))}resume(){return this[ii]()}pause(){this[_a]=!1,this[ms]=!0}get destroyed(){return this[Ge]}get flowing(){return this[_a]}get paused(){return this[ms]}[oh](e){this[Ue]?this[ke]+=1:this[ke]+=e.length,this.buffer.push(e)}[ah](){return this.buffer.length&&(this[Ue]?this[ke]-=1:this[ke]-=this.buffer[0].length),this.buffer.shift()}[ya](e){do;while(this[SD](this[ah]()));!e&&!this.buffer.length&&!this[cr]&&this.emit("drain")}[SD](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Ge])return;let n=this[Ir];return r=r||{},e===DD.stdout||e===DD.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this.pipes.push(r.proxyErrors?new lh(this,e,r):new Ea(this,e,r)),this[hr]?gs(()=>this[ii]()):this[ii]()),e}unpipe(e){let r=this.pipes.find(n=>n.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[ii]():e==="readable"&&this[ke]!==0?super.emit("readable"):oI(e)&&this[Ir]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[ps]&&(this[hr]?gs(()=>r.call(this,this[ps])):r.call(this,this[ps])),n}get emittedEnd(){return this[Ir]}[lr](){!this[ma]&&!this[Ir]&&!this[Ge]&&this.buffer.length===0&&this[cr]&&(this[ma]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ga]&&this.emit("close"),this[ma]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==Ge&&this[Ge])return;if(e==="data")return r?this[hr]?gs(()=>this[uh](r)):this[uh](r):!1;if(e==="end")return this[CD]();if(e==="close"){if(this[ga]=!0,!this[Ir]&&!this[Ge])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[ps]=r;let s=super.emit("error",r);return this[lr](),s}else if(e==="resume"){let s=super.emit("resume");return this[lr](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[lr](),i}[uh](e){for(let n of this.pipes)n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[lr](),r}[CD](){this[Ir]||(this[Ir]=!0,this.readable=!1,this[hr]?gs(()=>this[ch]()):this[ch]())}[ch](){if(this[fr]){let r=this[fr].end();if(r){for(let n of this.pipes)n.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Ue]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[Ue]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[Ue]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Ue]?Promise.reject(new Error("cannot concat in objectMode")):this[et]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Ge,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[iI](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[cr])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:c,done:!!this[cr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once(Ge,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[sI](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Ge]?(e?this.emit("error",e):this.emit(Ge),this):(this[Ge]=!0,this.buffer.length=0,this[ke]=0,typeof this.close=="function"&&!this[ga]&&this.close(),e?this.emit("error",e):this.emit(Ge),this)}static isStream(e){return!!e&&(e instanceof RD||e instanceof wD||e instanceof nI&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var vh=b(at=>{"use strict";var gh=require("assert"),Lr=require("buffer").Buffer,kD=require("zlib"),hn=at.constants=bD(),cI=fh(),TD=Lr.concat,dn=Symbol("_superWrite"),oi=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},lI=Symbol("opts"),ys=Symbol("flushFlag"),OD=Symbol("finishFlushFlag"),Ch=Symbol("fullFlushFlag"),fe=Symbol("handle"),ba=Symbol("onError"),si=Symbol("sawError"),hh=Symbol("level"),dh=Symbol("strategy"),ph=Symbol("ended"),gH=Symbol("_defaultFullFlush"),Da=class extends cI{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[si]=!1,this[ph]=!1,this[lI]=e,this[ys]=e.flush,this[OD]=e.finishFlush;try{this[fe]=new kD[r](e)}catch(n){throw new oi(n)}this[ba]=n=>{this[si]||(this[si]=!0,this.close(),this.emit("error",n))},this[fe].on("error",n=>this[ba](new oi(n))),this.once("end",()=>this.close)}close(){this[fe]&&(this[fe].close(),this[fe]=null,this.emit("close"))}reset(){if(!this[si])return gh(this[fe],"zlib binding closed"),this[fe].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[Ch]),this.write(Object.assign(Lr.alloc(0),{[ys]:e})))}end(e,r,n){return e&&this.write(e,r),this.flush(this[OD]),this[ph]=!0,super.end(null,null,n)}get ended(){return this[ph]}write(e,r,n){if(typeof r=="function"&&(n=r,r="utf8"),typeof e=="string"&&(e=Lr.from(e,r)),this[si])return;gh(this[fe],"zlib binding closed");let i=this[fe]._handle,s=i.close;i.close=()=>{};let o=this[fe].close;this[fe].close=()=>{},Lr.concat=c=>c;let a;try{let c=typeof e[ys]=="number"?e[ys]:this[ys];a=this[fe]._processChunk(e,c),Lr.concat=TD}catch(c){Lr.concat=TD,this[ba](new oi(c))}finally{this[fe]&&(this[fe]._handle=i,i.close=s,this[fe].close=o,this[fe].removeAllListeners("error"))}this[fe]&&this[fe].on("error",c=>this[ba](new oi(c)));let u;if(a)if(Array.isArray(a)&&a.length>0){u=this[dn](Lr.from(a[0]));for(let c=1;c<a.length;c++)u=this[dn](a[c])}else u=this[dn](Lr.from(a));return n&&n(),u}[dn](e){return super.write(e)}},dr=class extends Da{constructor(e,r){e=e||{},e.flush=e.flush||hn.Z_NO_FLUSH,e.finishFlush=e.finishFlush||hn.Z_FINISH,super(e,r),this[Ch]=hn.Z_FULL_FLUSH,this[hh]=e.level,this[dh]=e.strategy}params(e,r){if(!this[si]){if(!this[fe])throw new Error("cannot switch params when binding is closed");if(!this[fe].params)throw new Error("not supported in this implementation");if(this[hh]!==e||this[dh]!==r){this.flush(hn.Z_SYNC_FLUSH),gh(this[fe],"zlib binding closed");let n=this[fe].flush;this[fe].flush=(i,s)=>{this.flush(i),s()};try{this[fe].params(e,r)}finally{this[fe].flush=n}this[fe]&&(this[hh]=e,this[dh]=r)}}}},yh=class extends dr{constructor(e){super(e,"Deflate")}},_h=class extends dr{constructor(e){super(e,"Inflate")}},mh=Symbol("_portable"),Eh=class extends dr{constructor(e){super(e,"Gzip"),this[mh]=e&&!!e.portable}[dn](e){return this[mh]?(this[mh]=!1,e[9]=255,super[dn](e)):super[dn](e)}},bh=class extends dr{constructor(e){super(e,"Gunzip")}},Dh=class extends dr{constructor(e){super(e,"DeflateRaw")}},wh=class extends dr{constructor(e){super(e,"InflateRaw")}},Ah=class extends dr{constructor(e){super(e,"Unzip")}},wa=class extends Da{constructor(e,r){e=e||{},e.flush=e.flush||hn.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||hn.BROTLI_OPERATION_FINISH,super(e,r),this[Ch]=hn.BROTLI_OPERATION_FLUSH}},xh=class extends wa{constructor(e){super(e,"BrotliCompress")}},Sh=class extends wa{constructor(e){super(e,"BrotliDecompress")}};at.Deflate=yh;at.Inflate=_h;at.Gzip=Eh;at.Gunzip=bh;at.DeflateRaw=Dh;at.InflateRaw=wh;at.Unzip=Ah;typeof kD.BrotliCompress=="function"?(at.BrotliCompress=xh,at.BrotliDecompress=Sh):at.BrotliCompress=at.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var ai=b((EH,PD)=>{var fI=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;PD.exports=fI!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var Aa=b((DH,BD)=>{"use strict";var hI=pa(),Rh=ai(),Fh=Symbol("slurp");BD.exports=class extends hI{constructor(e,r,n){switch(super(),this.pause(),this.extended=r,this.globalExtended=n,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.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=Rh(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=Rh(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[Fh](r),n&&this[Fh](n,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let n=this.remain,i=this.blockRemain;return this.remain=Math.max(0,n-r),this.blockRemain=Math.max(0,i-r),this.ignore?!0:n>=r?super.write(e):super.write(e.slice(0,n))}[Fh](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=n==="path"||n==="linkpath"?Rh(e[n]):e[n])}}});var Th=b(xa=>{"use strict";xa.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"]]);xa.code=new Map(Array.from(xa.name).map(t=>[t[1],t[0]]))});var MD=b((AH,ND)=>{"use strict";var dI=(t,e)=>{if(Number.isSafeInteger(t))t<0?mI(t,e):pI(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},pI=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},mI=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var n=e.length;n>1;n--){var i=t&255;t=Math.floor(t/256),r?e[n-1]=ID(i):i===0?e[n-1]=0:(r=!0,e[n-1]=LD(i))}},gI=t=>{let e=t[0],r=e===128?_I(t.slice(1,t.length)):e===255?yI(t):null;if(r===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r},yI=t=>{for(var e=t.length,r=0,n=!1,i=e-1;i>-1;i--){var s=t[i],o;n?o=ID(s):s===0?o=s:(n=!0,o=LD(s)),o!==0&&(r-=o*Math.pow(256,e-i-1))}return r},_I=t=>{for(var e=t.length,r=0,n=e-1;n>-1;n--){var i=t[n];i!==0&&(r+=i*Math.pow(256,e-n-1))}return r},ID=t=>(255^t)&255,LD=t=>(255^t)+1&255;ND.exports={encode:dI,parse:gI}});var ci=b((xH,HD)=>{"use strict";var Oh=Th(),ui=require("path").posix,qD=MD(),kh=Symbol("slurp"),ut=Symbol("type"),Ih=class{constructor(e,r,n,i){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[ut]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,n,i):e&&this.set(e)}decode(e,r,n,i){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=pn(e,r,100),this.mode=Nr(e,r+100,8),this.uid=Nr(e,r+108,8),this.gid=Nr(e,r+116,8),this.size=Nr(e,r+124,12),this.mtime=Ph(e,r+136,12),this.cksum=Nr(e,r+148,12),this[kh](n),this[kh](i,!0),this[ut]=pn(e,r+156,1),this[ut]===""&&(this[ut]="0"),this[ut]==="0"&&this.path.slice(-1)==="/"&&(this[ut]="5"),this[ut]==="5"&&(this.size=0),this.linkpath=pn(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=pn(e,r+265,32),this.gname=pn(e,r+297,32),this.devmaj=Nr(e,r+329,8),this.devmin=Nr(e,r+337,8),e[r+475]!==0){let o=pn(e,r+345,155);this.path=o+"/"+this.path}else{let o=pn(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=Ph(e,r+476,12),this.ctime=Ph(e,r+488,12)}let s=8*32;for(let o=r;o<r+148;o++)s+=e[o];for(let o=r+156;o<r+512;o++)s+=e[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[kh](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=e[n])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let n=this.ctime||this.atime?130:155,i=EI(this.path||"",n),s=i[0],o=i[1];this.needPax=i[2],this.needPax=mn(e,r,100,s)||this.needPax,this.needPax=Mr(e,r+100,8,this.mode)||this.needPax,this.needPax=Mr(e,r+108,8,this.uid)||this.needPax,this.needPax=Mr(e,r+116,8,this.gid)||this.needPax,this.needPax=Mr(e,r+124,12,this.size)||this.needPax,this.needPax=Bh(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[ut].charCodeAt(0),this.needPax=mn(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=mn(e,r+265,32,this.uname)||this.needPax,this.needPax=mn(e,r+297,32,this.gname)||this.needPax,this.needPax=Mr(e,r+329,8,this.devmaj)||this.needPax,this.needPax=Mr(e,r+337,8,this.devmin)||this.needPax,this.needPax=mn(e,r+345,n,o)||this.needPax,e[r+475]!==0?this.needPax=mn(e,r+345,155,o)||this.needPax:(this.needPax=mn(e,r+345,130,o)||this.needPax,this.needPax=Bh(e,r+476,12,this.atime)||this.needPax,this.needPax=Bh(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let u=r;u<r+148;u++)a+=e[u];for(let u=r+156;u<r+512;u++)a+=e[u];return this.cksum=a,Mr(e,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let r in e)e[r]!==null&&e[r]!==void 0&&(this[r]=e[r])}get type(){return Oh.name.get(this[ut])||this[ut]}get typeKey(){return this[ut]}set type(e){Oh.code.has(e)?this[ut]=Oh.code.get(e):this[ut]=e}},EI=(t,e)=>{let n=t,i="",s,o=ui.parse(t).root||".";if(Buffer.byteLength(n)<100)s=[n,i,!1];else{i=ui.dirname(n),n=ui.basename(n);do Buffer.byteLength(n)<=100&&Buffer.byteLength(i)<=e?s=[n,i,!1]:Buffer.byteLength(n)>100&&Buffer.byteLength(i)<=e?s=[n.slice(0,100-1),i,!0]:(n=ui.join(ui.basename(i),n),i=ui.dirname(i));while(i!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},pn=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),Ph=(t,e,r)=>bI(Nr(t,e,r)),bI=t=>t===null?null:new Date(t*1e3),Nr=(t,e,r)=>t[e]&128?qD.parse(t.slice(e,e+r)):wI(t,e,r),DI=t=>isNaN(t)?null:t,wI=(t,e,r)=>DI(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),AI={12:8589934591,8:2097151},Mr=(t,e,r,n)=>n===null?!1:n>AI[r]||n<0?(qD.encode(n,t.slice(e,e+r)),!0):(xI(t,e,r,n),!1),xI=(t,e,r,n)=>t.write(SI(n,r),e,r,"ascii"),SI=(t,e)=>CI(Math.floor(t).toString(8),e),CI=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",Bh=(t,e,r,n)=>n===null?!1:Mr(t,e,r,n.getTime()/1e3),vI=new Array(156).join("\0"),mn=(t,e,r,n)=>n===null?!1:(t.write(n+vI,e,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);HD.exports=Ih});var Sa=b((SH,jD)=>{"use strict";var RI=ci(),FI=require("path"),_s=class{constructor(e,r){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=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),n=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(n);for(let s=0;s<512;s++)i[s]=0;new RI({path:("PaxHeader/"+FI.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,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(i),i.write(e,512,r,"utf8");for(let s=r+512;s<i.length;s++)i[s]=0;return i}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 r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],n=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
|
|
13
13
|
`,i=Buffer.byteLength(n),s=Math.floor(Math.log(i)/Math.log(10))+1;return i+s>=Math.pow(10,s)&&(s+=1),s+i+n}};_s.parse=(t,e,r)=>new _s(TI(OI(t),e),r);var TI=(t,e)=>e?Object.keys(t).reduce((r,n)=>(r[n]=t[n],r),e):t,OI=t=>t.replace(/\n$/,"").split(`
|
|
14
14
|
`).reduce(kI,Object.create(null)),kI=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let n=e.split("="),i=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return t;let s=n.join("=");return t[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};jD.exports=_s});var li=b((CH,$D)=>{$D.exports=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)}});var Ca=b((vH,UD)=>{"use strict";UD.exports=t=>class extends t{warn(e,r,n={}){this.file&&(n.file=this.file),this.cwd&&(n.cwd=this.cwd),n.code=r instanceof Error&&r.code||e,n.tarCode=e,!this.strict&&n.recoverable!==!1?(r instanceof Error&&(n=Object.assign(r,n),r=r.message),this.emit("warn",n.tarCode,r,n)):r instanceof Error?this.emit("error",Object.assign(r,n)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),n))}}});var Nh=b((FH,GD)=>{"use strict";var va=["|","<",">","?",":"],Lh=va.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),PI=new Map(va.map((t,e)=>[t,Lh[e]])),BI=new Map(Lh.map((t,e)=>[t,va[e]]));GD.exports={encode:t=>va.reduce((e,r)=>e.split(r).join(PI.get(r)),t),decode:t=>Lh.reduce((e,r)=>e.split(r).join(BI.get(r)),t)}});var Mh=b((TH,zD)=>{var{isAbsolute:II,parse:WD}=require("path").win32;zD.exports=t=>{let e="",r=WD(t);for(;II(t)||r.root;){let n=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(n.length),e+=n,r=WD(t)}return[e,t]}});var YD=b((OH,VD)=>{"use strict";VD.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&-19),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var Yh=b((BH,uw)=>{"use strict";var tw=pa(),rw=Sa(),nw=ci(),Ut=require("fs"),KD=require("path"),$t=ai(),LI=li(),iw=(t,e)=>e?(t=$t(t).replace(/^\.(\/|$)/,""),LI(e)+"/"+t):$t(t),NI=16*1024*1024,JD=Symbol("process"),XD=Symbol("file"),ZD=Symbol("directory"),Hh=Symbol("symlink"),QD=Symbol("hardlink"),Es=Symbol("header"),Ra=Symbol("read"),jh=Symbol("lstat"),Fa=Symbol("onlstat"),$h=Symbol("onread"),Uh=Symbol("onreadlink"),Gh=Symbol("openfile"),Wh=Symbol("onopenfile"),qr=Symbol("close"),Ta=Symbol("mode"),zh=Symbol("awaitDrain"),qh=Symbol("ondrain"),Gt=Symbol("prefix"),ew=Symbol("hadError"),sw=Ca(),MI=Nh(),ow=Mh(),aw=YD(),Oa=sw(class extends tw{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=$t(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||NI,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=$t(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?$t(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 n=!1;if(!this.preservePaths){let[i,s]=ow(this.path);i&&(this.path=s,n=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=MI.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=$t(r.absolute||KD.resolve(this.cwd,e)),this.path===""&&(this.path="./"),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.statCache.has(this.absolute)?this[Fa](this.statCache.get(this.absolute)):this[jh]()}emit(e,...r){return e==="error"&&(this[ew]=!0),super.emit(e,...r)}[jh](){Ut.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Fa](r)})}[Fa](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=HI(e),this.emit("stat",e),this[JD]()}[JD](){switch(this.type){case"File":return this[XD]();case"Directory":return this[ZD]();case"SymbolicLink":return this[Hh]();default:return this.end()}}[Ta](e){return aw(e,this.type==="Directory",this.portable)}[Gt](e){return iw(e,this.prefix)}[Es](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new nw({path:this[Gt](this.path),linkpath:this.type==="Link"?this[Gt](this.linkpath):this.linkpath,mode:this[Ta](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 rw({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[Gt](this.path),linkpath:this.type==="Link"?this[Gt](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)}[ZD](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Es](),this.end()}[Hh](){Ut.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Uh](r)})}[Uh](e){this.linkpath=$t(e),this[Es](),this.end()}[QD](e){this.type="Link",this.linkpath=$t(KD.relative(this.cwd,e)),this.stat.size=0,this[Es](),this.end()}[XD](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let r=this.linkCache.get(e);if(r.indexOf(this.cwd)===0)return this[QD](r)}this.linkCache.set(e,this.absolute)}if(this[Es](),this.stat.size===0)return this.end();this[Gh]()}[Gh](){Ut.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Wh](r)})}[Wh](e){if(this.fd=e,this[ew])return this[qr]();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[Ra]()}[Ra](){let{fd:e,buf:r,offset:n,length:i,pos:s}=this;Ut.read(e,r,n,i,s,(o,a)=>{if(o)return this[qr](()=>this.emit("error",o));this[$h](a)})}[qr](e){Ut.close(this.fd,e)}[$h](e){if(e<=0&&this.remain>0){let i=new Error("encountered unexpected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[qr](()=>this.emit("error",i))}if(e>this.remain){let i=new Error("did not encounter expected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[qr](()=>this.emit("error",i))}if(e===this.remain)for(let i=e;i<this.length&&e<this.blockRemain;i++)this.buf[i+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[qh]():this[zh](()=>this[qh]())}[zh](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[qh](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[qr](e=>e?this.emit("error",e):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[Ra]()}}),Vh=class extends Oa{[jh](){this[Fa](Ut.lstatSync(this.absolute))}[Hh](){this[Uh](Ut.readlinkSync(this.absolute))}[Gh](){this[Wh](Ut.openSync(this.absolute,"r"))}[Ra](){let e=!0;try{let{fd:r,buf:n,offset:i,length:s,pos:o}=this,a=Ut.readSync(r,n,i,s,o);this[$h](a),e=!1}finally{if(e)try{this[qr](()=>{})}catch{}}}[zh](e){e()}[qr](e){Ut.closeSync(this.fd),e()}},qI=sw(class extends tw{constructor(e,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=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=$t(e.path),this.mode=this[Ta](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=$t(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=ow(this.path);i&&(this.path=s,n=i)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new nw({path:this[Gt](this.path),linkpath:this.type==="Link"?this[Gt](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}),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.header.encode()&&!this.noPax&&super.write(new rw({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[Gt](this.path),linkpath:this.type==="Link"?this[Gt](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),e.pipe(this)}[Gt](e){return iw(e,this.prefix)}[Ta](e){return aw(e,this.type==="Directory",this.portable)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});Oa.Sync=Vh;Oa.Tar=qI;var HI=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";uw.exports=Oa});var lw=b((IH,cw)=>{"use strict";cw.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Kh=b((LH,fw)=>{"use strict";fw.exports=ne;ne.Node=gn;ne.create=ne;function ne(t){var e=this;if(e instanceof ne||(e=new ne),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)e.push(arguments[r]);return e}ne.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};ne.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};ne.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};ne.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)$I(this,arguments[t]);return this.length};ne.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)UI(this,arguments[t]);return this.length};ne.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};ne.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};ne.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;r!==null;n++)t.call(e,r.value,n,this),r=r.next};ne.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;r!==null;n--)t.call(e,r.value,n,this),r=r.prev};ne.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};ne.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};ne.prototype.map=function(t,e){e=e||this;for(var r=new ne,n=this.head;n!==null;)r.push(t.call(e,n.value,this)),n=n.next;return r};ne.prototype.mapReverse=function(t,e){e=e||this;for(var r=new ne,n=this.tail;n!==null;)r.push(t.call(e,n.value,this)),n=n.prev;return r};ne.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=t(r,n.value,i),n=n.next;return r};ne.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=t(r,n.value,i),n=n.prev;return r};ne.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};ne.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};ne.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new ne;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(;i!==null&&n<e;n++,i=i.next)r.push(i.value);return r};ne.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new ne;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=this.length,i=this.tail;i!==null&&n>e;n--)i=i.prev;for(;i!==null&&n>t;n--,i=i.prev)r.push(i.value);return r};ne.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(var s=[],n=0;i&&n<e;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=jI(this,i,r[n]);return s};ne.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};function jI(t,e,r){var n=e===t.head?new gn(r,null,e,t):new gn(r,e,e.next,t);return n.next===null&&(t.tail=n),n.prev===null&&(t.head=n),t.length++,n}function $I(t,e){t.tail=new gn(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function UI(t,e){t.head=new gn(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function gn(t,e,r,n){if(!(this instanceof gn))return new gn(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{lw()(ne)}catch{}});var Ha=b((MH,_w)=>{"use strict";var Ma=class{constructor(e,r){this.path=e||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},GI=pa(),WI=vh(),zI=Aa(),id=Yh(),VI=id.Sync,YI=id.Tar,KI=Kh(),hw=Buffer.alloc(1024),Ba=Symbol("onStat"),ka=Symbol("ended"),Wt=Symbol("queue"),fi=Symbol("current"),yn=Symbol("process"),Pa=Symbol("processing"),dw=Symbol("processJob"),zt=Symbol("jobs"),Jh=Symbol("jobDone"),Ia=Symbol("addFSEntry"),pw=Symbol("addTarEntry"),ed=Symbol("stat"),td=Symbol("readdir"),La=Symbol("onreaddir"),Na=Symbol("pipe"),mw=Symbol("entry"),Xh=Symbol("entryOpt"),rd=Symbol("writeEntryClass"),yw=Symbol("write"),Zh=Symbol("ondrain"),qa=require("fs"),gw=require("path"),JI=Ca(),Qh=ai(),sd=JI(class extends GI{constructor(e){super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=Qh(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[rd]=id,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new WI.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Zh]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Zh]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[Wt]=new KI,this[zt]=0,this.jobs=+e.jobs||4,this[Pa]=!1,this[ka]=!1}[yw](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[ka]=!0,this[yn](),this}write(e){if(this[ka])throw new Error("write after end");return e instanceof zI?this[pw](e):this[Ia](e),this.flowing}[pw](e){let r=Qh(gw.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let n=new Ma(e.path,r,!1);n.entry=new YI(e,this[Xh](n)),n.entry.on("end",i=>this[Jh](n)),this[zt]+=1,this[Wt].push(n)}this[yn]()}[Ia](e){let r=Qh(gw.resolve(this.cwd,e));this[Wt].push(new Ma(e,r)),this[yn]()}[ed](e){e.pending=!0,this[zt]+=1;let r=this.follow?"stat":"lstat";qa[r](e.absolute,(n,i)=>{e.pending=!1,this[zt]-=1,n?this.emit("error",n):this[Ba](e,i)})}[Ba](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[yn]()}[td](e){e.pending=!0,this[zt]+=1,qa.readdir(e.absolute,(r,n)=>{if(e.pending=!1,this[zt]-=1,r)return this.emit("error",r);this[La](e,n)})}[La](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[yn]()}[yn](){if(!this[Pa]){this[Pa]=!0;for(let e=this[Wt].head;e!==null&&this[zt]<this.jobs;e=e.next)if(this[dw](e.value),e.value.ignore){let r=e.next;this[Wt].removeNode(e),e.next=r}this[Pa]=!1,this[ka]&&!this[Wt].length&&this[zt]===0&&(this.zip?this.zip.end(hw):(super.write(hw),super.end()))}}get[fi](){return this[Wt]&&this[Wt].head&&this[Wt].head.value}[Jh](e){this[Wt].shift(),this[zt]-=1,this[yn]()}[dw](e){if(!e.pending){if(e.entry){e===this[fi]&&!e.piped&&this[Na](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Ba](e,this.statCache.get(e.absolute)):this[ed](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[La](e,this.readdirCache.get(e.absolute)):this[td](e),!e.readdir))){if(e.entry=this[mw](e),!e.entry){e.ignore=!0;return}e===this[fi]&&!e.piped&&this[Na](e)}}}[Xh](e){return{onwarn:(r,n,i)=>this.warn(r,n,i),noPax:this.noPax,cwd:this.cwd,absolute:e.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}}[mw](e){this[zt]+=1;try{return new this[rd](e.path,this[Xh](e)).on("end",()=>this[Jh](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Zh](){this[fi]&&this[fi].entry&&this[fi].entry.resume()}[Na](e){e.piped=!0,e.readdir&&e.readdir.forEach(i=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ia](o+i)});let r=e.entry,n=this.zip;n?r.on("data",i=>{n.write(i)||r.pause()}):r.on("data",i=>{super.write(i)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),nd=class extends sd{constructor(e){super(e),this[rd]=VI}pause(){}resume(){}[ed](e){let r=this.follow?"statSync":"lstatSync";this[Ba](e,qa[r](e.absolute))}[td](e,r){this[La](e,qa.readdirSync(e.absolute))}[Na](e){let r=e.entry,n=this.zip;e.readdir&&e.readdir.forEach(i=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ia](o+i)}),n?r.on("data",i=>{n.write(i)}):r.on("data",i=>{super[yw](i)})}};sd.Sync=nd;_w.exports=sd});var Ei=b(Ds=>{"use strict";var XI=fh(),ZI=require("events").EventEmitter,tt=require("fs"),ud=tt.writev;if(!ud){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;ud=(r,n,i,s)=>{let o=(u,c)=>s(u,c,n),a=new e;a.oncomplete=o,t.writeBuffers(r,n,i,a)}}var yi=Symbol("_autoClose"),Ft=Symbol("_close"),bs=Symbol("_ended"),ue=Symbol("_fd"),Ew=Symbol("_finished"),jr=Symbol("_flags"),od=Symbol("_flush"),cd=Symbol("_handleChunk"),ld=Symbol("_makeBuf"),Wa=Symbol("_mode"),ja=Symbol("_needDrain"),mi=Symbol("_onerror"),_i=Symbol("_onopen"),ad=Symbol("_onread"),di=Symbol("_onwrite"),$r=Symbol("_open"),pr=Symbol("_path"),_n=Symbol("_pos"),Vt=Symbol("_queue"),pi=Symbol("_read"),bw=Symbol("_readSize"),Hr=Symbol("_reading"),$a=Symbol("_remain"),Dw=Symbol("_size"),Ua=Symbol("_write"),hi=Symbol("_writing"),Ga=Symbol("_defaultFlag"),gi=Symbol("_errored"),za=class extends XI{constructor(e,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[gi]=!1,this[ue]=typeof r.fd=="number"?r.fd:null,this[pr]=e,this[bw]=r.readSize||16*1024*1024,this[Hr]=!1,this[Dw]=typeof r.size=="number"?r.size:1/0,this[$a]=this[Dw],this[yi]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[ue]=="number"?this[pi]():this[$r]()}get fd(){return this[ue]}get path(){return this[pr]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[$r](){tt.open(this[pr],"r",(e,r)=>this[_i](e,r))}[_i](e,r){e?this[mi](e):(this[ue]=r,this.emit("open",r),this[pi]())}[ld](){return Buffer.allocUnsafe(Math.min(this[bw],this[$a]))}[pi](){if(!this[Hr]){this[Hr]=!0;let e=this[ld]();if(e.length===0)return process.nextTick(()=>this[ad](null,0,e));tt.read(this[ue],e,0,e.length,null,(r,n,i)=>this[ad](r,n,i))}}[ad](e,r,n){this[Hr]=!1,e?this[mi](e):this[cd](r,n)&&this[pi]()}[Ft](){if(this[yi]&&typeof this[ue]=="number"){let e=this[ue];this[ue]=null,tt.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[mi](e){this[Hr]=!0,this[Ft](),this.emit("error",e)}[cd](e,r){let n=!1;return this[$a]-=e,e>0&&(n=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[$a]<=0)&&(n=!1,this[Ft](),super.end()),n}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[ue]=="number"&&this[pi]();break;case"error":return this[gi]?void 0:(this[gi]=!0,super.emit(e,r));default:return super.emit(e,r)}}},fd=class extends za{[$r](){let e=!0;try{this[_i](null,tt.openSync(this[pr],"r")),e=!1}finally{e&&this[Ft]()}}[pi](){let e=!0;try{if(!this[Hr]){this[Hr]=!0;do{let r=this[ld](),n=r.length===0?0:tt.readSync(this[ue],r,0,r.length,null);if(!this[cd](n,r))break}while(!0);this[Hr]=!1}e=!1}finally{e&&this[Ft]()}}[Ft](){if(this[yi]&&typeof this[ue]=="number"){let e=this[ue];this[ue]=null,tt.closeSync(e),this.emit("close")}}},Va=class extends ZI{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[gi]=!1,this[hi]=!1,this[bs]=!1,this[ja]=!1,this[Vt]=[],this[pr]=e,this[ue]=typeof r.fd=="number"?r.fd:null,this[Wa]=r.mode===void 0?438:r.mode,this[_n]=typeof r.start=="number"?r.start:null,this[yi]=typeof r.autoClose=="boolean"?r.autoClose:!0;let n=this[_n]!==null?"r+":"w";this[Ga]=r.flags===void 0,this[jr]=this[Ga]?n:r.flags,this[ue]===null&&this[$r]()}emit(e,r){if(e==="error"){if(this[gi])return;this[gi]=!0}return super.emit(e,r)}get fd(){return this[ue]}get path(){return this[pr]}[mi](e){this[Ft](),this[hi]=!0,this.emit("error",e)}[$r](){tt.open(this[pr],this[jr],this[Wa],(e,r)=>this[_i](e,r))}[_i](e,r){this[Ga]&&this[jr]==="r+"&&e&&e.code==="ENOENT"?(this[jr]="w",this[$r]()):e?this[mi](e):(this[ue]=r,this.emit("open",r),this[od]())}end(e,r){return e&&this.write(e,r),this[bs]=!0,!this[hi]&&!this[Vt].length&&typeof this[ue]=="number"&&this[di](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[bs]?(this.emit("error",new Error("write() after end()")),!1):this[ue]===null||this[hi]||this[Vt].length?(this[Vt].push(e),this[ja]=!0,!1):(this[hi]=!0,this[Ua](e),!0)}[Ua](e){tt.write(this[ue],e,0,e.length,this[_n],(r,n)=>this[di](r,n))}[di](e,r){e?this[mi](e):(this[_n]!==null&&(this[_n]+=r),this[Vt].length?this[od]():(this[hi]=!1,this[bs]&&!this[Ew]?(this[Ew]=!0,this[Ft](),this.emit("finish")):this[ja]&&(this[ja]=!1,this.emit("drain"))))}[od](){if(this[Vt].length===0)this[bs]&&this[di](null,0);else if(this[Vt].length===1)this[Ua](this[Vt].pop());else{let e=this[Vt];this[Vt]=[],ud(this[ue],e,this[_n],(r,n)=>this[di](r,n))}}[Ft](){if(this[yi]&&typeof this[ue]=="number"){let e=this[ue];this[ue]=null,tt.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},hd=class extends Va{[$r](){let e;if(this[Ga]&&this[jr]==="r+")try{e=tt.openSync(this[pr],this[jr],this[Wa])}catch(r){if(r.code==="ENOENT")return this[jr]="w",this[$r]();throw r}else e=tt.openSync(this[pr],this[jr],this[Wa]);this[_i](null,e)}[Ft](){if(this[yi]&&typeof this[ue]=="number"){let e=this[ue];this[ue]=null,tt.closeSync(e),this.emit("close")}}[Ua](e){let r=!0;try{this[di](null,tt.writeSync(this[ue],e,0,e.length,this[_n])),r=!1}finally{if(r)try{this[Ft]()}catch{}}}};Ds.ReadStream=za;Ds.ReadStreamSync=fd;Ds.WriteStream=Va;Ds.WriteStreamSync=hd});var eu=b((jH,Fw)=>{"use strict";var QI=Ca(),eL=ci(),tL=require("events"),rL=Kh(),nL=1024*1024,iL=Aa(),ww=Sa(),sL=vh(),{nextTick:oL}=require("process"),dd=Buffer.from([31,139]),mt=Symbol("state"),En=Symbol("writeEntry"),mr=Symbol("readEntry"),pd=Symbol("nextEntry"),Aw=Symbol("processEntry"),gt=Symbol("extendedHeader"),ws=Symbol("globalExtendedHeader"),Ur=Symbol("meta"),xw=Symbol("emitMeta"),pe=Symbol("buffer"),gr=Symbol("queue"),bn=Symbol("ended"),Sw=Symbol("emittedEnd"),Dn=Symbol("emit"),rt=Symbol("unzip"),Ya=Symbol("consumeChunk"),Ka=Symbol("consumeChunkSub"),md=Symbol("consumeBody"),Cw=Symbol("consumeMeta"),vw=Symbol("consumeHeader"),Ja=Symbol("consuming"),gd=Symbol("bufferConcat"),yd=Symbol("maybeEnd"),As=Symbol("writing"),Gr=Symbol("aborted"),Xa=Symbol("onDone"),wn=Symbol("sawValidEntry"),Za=Symbol("sawNullBlock"),Qa=Symbol("sawEOF"),Rw=Symbol("closeStream"),aL=t=>!0;Fw.exports=QI(class extends tL{constructor(e){e=e||{},super(e),this.file=e.file||"",this[wn]=null,this.on(Xa,r=>{(this[mt]==="begin"||this[wn]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Xa,e.ondone):this.on(Xa,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||nL,this.filter=typeof e.filter=="function"?e.filter:aL,this.writable=!0,this.readable=!1,this[gr]=new rL,this[pe]=null,this[mr]=null,this[En]=null,this[mt]="begin",this[Ur]="",this[gt]=null,this[ws]=null,this[bn]=!1,this[rt]=null,this[Gr]=!1,this[Za]=!1,this[Qa]=!1,this.on("end",()=>this[Rw]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[vw](e,r){this[wn]===null&&(this[wn]=!1);let n;try{n=new eL(e,r,this[gt],this[ws])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(n.nullBlock)this[Za]?(this[Qa]=!0,this[mt]==="begin"&&(this[mt]="header"),this[Dn]("eof")):(this[Za]=!0,this[Dn]("nullBlock"));else if(this[Za]=!1,!n.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n});else if(!n.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else{let i=n.type;if(/^(Symbolic)?Link$/.test(i)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(!/^(Symbolic)?Link$/.test(i)&&n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n});else{let s=this[En]=new iL(n,this[gt],this[ws]);if(!this[wn])if(s.remain){let o=()=>{s.invalid||(this[wn]=!0)};s.on("end",o)}else this[wn]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Dn]("ignoredEntry",s),this[mt]="ignore",s.resume()):s.size>0&&(this[Ur]="",s.on("data",o=>this[Ur]+=o),this[mt]="meta"):(this[gt]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Dn]("ignoredEntry",s),this[mt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[mt]="body":(this[mt]="header",s.end()),this[mr]?this[gr].push(s):(this[gr].push(s),this[pd]())))}}}[Rw](){oL(()=>this.emit("close"))}[Aw](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[mr]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",n=>this[pd]()),r=!1)):(this[mr]=null,r=!1),r}[pd](){do;while(this[Aw](this[gr].shift()));if(!this[gr].length){let e=this[mr];!e||e.flowing||e.size===e.remain?this[As]||this.emit("drain"):e.once("drain",n=>this.emit("drain"))}}[md](e,r){let n=this[En],i=n.blockRemain,s=i>=e.length&&r===0?e:e.slice(r,r+i);return n.write(s),n.blockRemain||(this[mt]="header",this[En]=null,n.end()),s.length}[Cw](e,r){let n=this[En],i=this[md](e,r);return this[En]||this[xw](n),i}[Dn](e,r,n){!this[gr].length&&!this[mr]?this.emit(e,r,n):this[gr].push([e,r,n])}[xw](e){switch(this[Dn]("meta",this[Ur]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[gt]=ww.parse(this[Ur],this[gt],!1);break;case"GlobalExtendedHeader":this[ws]=ww.parse(this[Ur],this[ws],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[gt]=this[gt]||Object.create(null),this[gt].path=this[Ur].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[gt]=this[gt]||Object.create(null),this[gt].linkpath=this[Ur].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Gr]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Gr])return;if(this[rt]===null&&e){if(this[pe]&&(e=Buffer.concat([this[pe],e]),this[pe]=null),e.length<dd.length)return this[pe]=e,!0;for(let n=0;this[rt]===null&&n<dd.length;n++)e[n]!==dd[n]&&(this[rt]=!1);if(this[rt]===null){let n=this[bn];this[bn]=!1,this[rt]=new sL.Unzip,this[rt].on("data",s=>this[Ya](s)),this[rt].on("error",s=>this.abort(s)),this[rt].on("end",s=>{this[bn]=!0,this[Ya]()}),this[As]=!0;let i=this[rt][n?"end":"write"](e);return this[As]=!1,i}}this[As]=!0,this[rt]?this[rt].write(e):this[Ya](e),this[As]=!1;let r=this[gr].length?!1:this[mr]?this[mr].flowing:!0;return!r&&!this[gr].length&&this[mr].once("drain",n=>this.emit("drain")),r}[gd](e){e&&!this[Gr]&&(this[pe]=this[pe]?Buffer.concat([this[pe],e]):e)}[yd](){if(this[bn]&&!this[Sw]&&!this[Gr]&&!this[Ja]){this[Sw]=!0;let e=this[En];if(e&&e.blockRemain){let r=this[pe]?this[pe].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[pe]&&e.write(this[pe]),e.end()}this[Dn](Xa)}}[Ya](e){if(this[Ja])this[gd](e);else if(!e&&!this[pe])this[yd]();else{if(this[Ja]=!0,this[pe]){this[gd](e);let r=this[pe];this[pe]=null,this[Ka](r)}else this[Ka](e);for(;this[pe]&&this[pe].length>=512&&!this[Gr]&&!this[Qa];){let r=this[pe];this[pe]=null,this[Ka](r)}this[Ja]=!1}(!this[pe]||this[bn])&&this[yd]()}[Ka](e){let r=0,n=e.length;for(;r+512<=n&&!this[Gr]&&!this[Qa];)switch(this[mt]){case"begin":case"header":this[vw](e,r),r+=512;break;case"ignore":case"body":r+=this[md](e,r);break;case"meta":r+=this[Cw](e,r);break;default:throw new Error("invalid state: "+this[mt])}r<n&&(this[pe]?this[pe]=Buffer.concat([e.slice(r),this[pe]]):this[pe]=e.slice(r))}end(e){this[Gr]||(this[rt]?this[rt].end(e):(this[bn]=!0,this.write(e)))}})});var tu=b(($H,Pw)=>{"use strict";var uL=ri(),Ow=eu(),bi=require("fs"),cL=Ei(),Tw=require("path"),_d=li();Pw.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let n=uL(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&fL(n,e),n.noResume||lL(n),n.file&&n.sync?hL(n):n.file?dL(n,r):kw(n)};var lL=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},fL=(t,e)=>{let r=new Map(e.map(s=>[_d(s),!0])),n=t.filter,i=(s,o)=>{let a=o||Tw.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):i(Tw.dirname(s),a);return r.set(s,u),u};t.filter=n?(s,o)=>n(s,o)&&i(_d(s)):s=>i(_d(s))},hL=t=>{let e=kw(t),r=t.file,n=!0,i;try{let s=bi.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(bi.readFileSync(r));else{let a=0,u=Buffer.allocUnsafe(o);for(i=bi.openSync(r,"r");a<s.size;){let c=bi.readSync(i,u,0,o,a);a+=c,e.write(u.slice(0,c))}e.end()}n=!1}finally{if(n&&i)try{bi.closeSync(i)}catch{}}},dL=(t,e)=>{let r=new Ow(t),n=t.maxReadSize||16*1024*1024,i=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),bi.stat(i,(u,c)=>{if(u)a(u);else{let l=new cL.ReadStream(i,{readSize:n,size:c.size});l.on("error",a),l.pipe(r)}})});return e?s.then(e,e):s},kw=t=>new Ow(t)});var qw=b((UH,Mw)=>{"use strict";var pL=ri(),ru=Ha(),Bw=Ei(),Iw=tu(),Lw=require("path");Mw.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let n=pL(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return n.file&&n.sync?mL(n,e):n.file?gL(n,e,r):n.sync?yL(n,e):_L(n,e)};var mL=(t,e)=>{let r=new ru.Sync(t),n=new Bw.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(n),Nw(r,e)},gL=(t,e,r)=>{let n=new ru(t),i=new Bw.WriteStream(t.file,{mode:t.mode||438});n.pipe(i);let s=new Promise((o,a)=>{i.on("error",a),i.on("close",o),n.on("error",a)});return Ed(n,e),r?s.then(r,r):s},Nw=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Iw({file:Lw.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>t.add(n)}):t.add(r)}),t.end()},Ed=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Iw({file:Lw.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:n=>t.add(n)}).then(n=>Ed(t,e));t.add(r)}t.end()},yL=(t,e)=>{let r=new ru.Sync(t);return Nw(r,e),r},_L=(t,e)=>{let r=new ru(t);return Ed(r,e),r}});var bd=b((GH,zw)=>{"use strict";var EL=ri(),Hw=Ha(),ct=require("fs"),jw=Ei(),$w=tu(),Uw=require("path"),Gw=ci();zw.exports=(t,e,r)=>{let n=EL(t);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),n.sync?bL(n,e):wL(n,e,r)};var bL=(t,e)=>{let r=new Hw.Sync(t),n=!0,i,s;try{try{i=ct.openSync(t.file,"r+")}catch(u){if(u.code==="ENOENT")i=ct.openSync(t.file,"w+");else throw u}let o=ct.fstatSync(i),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let l=0,f=0;l<512;l+=f){if(f=ct.readSync(i,a,l,a.length-l,s+l),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!f)break e}let u=new Gw(a);if(!u.cksumValid)break;let c=512*Math.ceil(u.size/512);if(s+c+512>o.size)break;s+=c,t.mtimeCache&&t.mtimeCache.set(u.path,u.mtime)}n=!1,DL(t,r,s,i,e)}finally{if(n)try{ct.closeSync(i)}catch{}}},DL=(t,e,r,n,i)=>{let s=new jw.WriteStreamSync(t.file,{fd:n,start:r});e.pipe(s),AL(e,i)},wL=(t,e,r)=>{e=Array.from(e);let n=new Hw(t),i=(o,a,u)=>{let c=(m,_)=>{m?ct.close(o,g=>u(m)):u(null,_)},l=0;if(a===0)return c(null,0);let f=0,h=Buffer.alloc(512),p=(m,_)=>{if(m)return c(m);if(f+=_,f<512&&_)return ct.read(o,h,f,h.length-f,l+f,p);if(l===0&&h[0]===31&&h[1]===139)return c(new Error("cannot append to compressed archives"));if(f<512)return c(null,l);let g=new Gw(h);if(!g.cksumValid)return c(null,l);let D=512*Math.ceil(g.size/512);if(l+D+512>a||(l+=D+512,l>=a))return c(null,l);t.mtimeCache&&t.mtimeCache.set(g.path,g.mtime),f=0,ct.read(o,h,0,512,l,p)};ct.read(o,h,0,512,l,p)},s=new Promise((o,a)=>{n.on("error",a);let u="r+",c=(l,f)=>{if(l&&l.code==="ENOENT"&&u==="r+")return u="w+",ct.open(t.file,u,c);if(l)return a(l);ct.fstat(f,(h,p)=>{if(h)return ct.close(f,()=>a(h));i(f,p.size,(m,_)=>{if(m)return a(m);let g=new jw.WriteStream(t.file,{fd:f,start:_});n.pipe(g),g.on("error",a),g.on("close",o),Ww(n,e)})})};ct.open(t.file,u,c)});return r?s.then(r,r):s},AL=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?$w({file:Uw.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>t.add(n)}):t.add(r)}),t.end()},Ww=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return $w({file:Uw.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:n=>t.add(n)}).then(n=>Ww(t,e));t.add(r)}t.end()}});var Yw=b((WH,Vw)=>{"use strict";var xL=ri(),SL=bd();Vw.exports=(t,e,r)=>{let n=xL(t);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),CL(n),SL(n,e,r)};var CL=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,n)=>e(r,n)&&!(t.mtimeCache.get(r)>n.mtime):(r,n)=>!(t.mtimeCache.get(r)>n.mtime)}});var Xw=b((zH,Jw)=>{var{promisify:Kw}=require("util"),Wr=require("fs"),vL=t=>{if(!t)t={mode:511,fs:Wr};else if(typeof t=="object")t={mode:511,fs:Wr,...t};else if(typeof t=="number")t={mode:t,fs:Wr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:Wr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||Wr.mkdir,t.mkdirAsync=Kw(t.mkdir),t.stat=t.stat||t.fs.stat||Wr.stat,t.statAsync=Kw(t.stat),t.statSync=t.statSync||t.fs.statSync||Wr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Wr.mkdirSync,t};Jw.exports=vL});var Qw=b((VH,Zw)=>{var RL=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:FL,parse:TL}=require("path"),OL=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=FL(t),RL==="win32"){let e=/[*|"<>?:]/,{root:r}=TL(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};Zw.exports=OL});var iA=b((YH,nA)=>{var{dirname:eA}=require("path"),tA=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?tA(t,eA(e),e):void 0),rA=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?rA(t,eA(e),e):void 0}};nA.exports={findMade:tA,findMadeSync:rA}});var Ad=b((KH,oA)=>{var{dirname:sA}=require("path"),Dd=(t,e,r)=>{e.recursive=!1;let n=sA(t);return n===t?e.mkdirAsync(t,e).catch(i=>{if(i.code!=="EISDIR")throw i}):e.mkdirAsync(t,e).then(()=>r||t,i=>{if(i.code==="ENOENT")return Dd(n,e).then(s=>Dd(t,e,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},wd=(t,e,r)=>{let n=sA(t);if(e.recursive=!1,n===t)try{return e.mkdirSync(t,e)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return e.mkdirSync(t,e),r||t}catch(i){if(i.code==="ENOENT")return wd(t,e,wd(n,e,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!e.statSync(t).isDirectory())throw i}catch{throw i}}};oA.exports={mkdirpManual:Dd,mkdirpManualSync:wd}});var cA=b((JH,uA)=>{var{dirname:aA}=require("path"),{findMade:kL,findMadeSync:PL}=iA(),{mkdirpManual:BL,mkdirpManualSync:IL}=Ad(),LL=(t,e)=>(e.recursive=!0,aA(t)===t?e.mkdirAsync(t,e):kL(e,t).then(n=>e.mkdirAsync(t,e).then(()=>n).catch(i=>{if(i.code==="ENOENT")return BL(t,e);throw i}))),NL=(t,e)=>{if(e.recursive=!0,aA(t)===t)return e.mkdirSync(t,e);let n=PL(e,t);try{return e.mkdirSync(t,e),n}catch(i){if(i.code==="ENOENT")return IL(t,e);throw i}};uA.exports={mkdirpNative:LL,mkdirpNativeSync:NL}});var dA=b((XH,hA)=>{var lA=require("fs"),ML=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,xd=ML.replace(/^v/,"").split("."),fA=+xd[0]>10||+xd[0]==10&&+xd[1]>=12,qL=fA?t=>t.mkdir===lA.mkdir:()=>!1,HL=fA?t=>t.mkdirSync===lA.mkdirSync:()=>!1;hA.exports={useNative:qL,useNativeSync:HL}});var EA=b((ZH,_A)=>{var Di=Xw(),wi=Qw(),{mkdirpNative:pA,mkdirpNativeSync:mA}=cA(),{mkdirpManual:gA,mkdirpManualSync:yA}=Ad(),{useNative:jL,useNativeSync:$L}=dA(),Ai=(t,e)=>(t=wi(t),e=Di(e),jL(e)?pA(t,e):gA(t,e)),UL=(t,e)=>(t=wi(t),e=Di(e),$L(e)?mA(t,e):yA(t,e));Ai.sync=UL;Ai.native=(t,e)=>pA(wi(t),Di(e));Ai.manual=(t,e)=>gA(wi(t),Di(e));Ai.nativeSync=(t,e)=>mA(wi(t),Di(e));Ai.manualSync=(t,e)=>yA(wi(t),Di(e));_A.exports=Ai});var CA=b((QH,SA)=>{"use strict";var yt=require("fs"),An=require("path"),GL=yt.lchown?"lchown":"chown",WL=yt.lchownSync?"lchownSync":"chownSync",DA=yt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),bA=(t,e,r)=>{try{return yt[WL](t,e,r)}catch(n){if(n.code!=="ENOENT")throw n}},zL=(t,e,r)=>{try{return yt.chownSync(t,e,r)}catch(n){if(n.code!=="ENOENT")throw n}},VL=DA?(t,e,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):yt.chown(t,e,r,n)}:(t,e,r,n)=>n,Sd=DA?(t,e,r)=>{try{return bA(t,e,r)}catch(n){if(n.code!=="EISDIR")throw n;zL(t,e,r)}}:(t,e,r)=>bA(t,e,r),YL=process.version,wA=(t,e,r)=>yt.readdir(t,e,r),KL=(t,e)=>yt.readdirSync(t,e);/^v4\./.test(YL)&&(wA=(t,e,r)=>yt.readdir(t,r));var nu=(t,e,r,n)=>{yt[GL](t,e,r,VL(t,e,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},AA=(t,e,r,n,i)=>{if(typeof e=="string")return yt.lstat(An.resolve(t,e),(s,o)=>{if(s)return i(s.code!=="ENOENT"?s:null);o.name=e,AA(t,o,r,n,i)});if(e.isDirectory())Cd(An.resolve(t,e.name),r,n,s=>{if(s)return i(s);let o=An.resolve(t,e.name);nu(o,r,n,i)});else{let s=An.resolve(t,e.name);nu(s,r,n,i)}},Cd=(t,e,r,n)=>{wA(t,{withFileTypes:!0},(i,s)=>{if(i){if(i.code==="ENOENT")return n();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return nu(t,e,r,n);let o=s.length,a=null,u=c=>{if(!a){if(c)return n(a=c);if(--o===0)return nu(t,e,r,n)}};s.forEach(c=>AA(t,c,e,r,u))})},JL=(t,e,r,n)=>{if(typeof e=="string")try{let i=yt.lstatSync(An.resolve(t,e));i.name=e,e=i}catch(i){if(i.code==="ENOENT")return;throw i}e.isDirectory()&&xA(An.resolve(t,e.name),r,n),Sd(An.resolve(t,e.name),r,n)},xA=(t,e,r)=>{let n;try{n=KL(t,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return Sd(t,e,r);throw i}return n&&n.length&&n.forEach(i=>JL(t,i,e,r)),Sd(t,e,r)};SA.exports=Cd;Cd.sync=xA});var TA=b((e4,vd)=>{"use strict";var vA=EA(),_t=require("fs"),iu=require("path"),RA=CA(),Tt=ai(),su=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},ou=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},au=(t,e)=>t.get(Tt(e)),xs=(t,e,r)=>t.set(Tt(e),r),XL=(t,e)=>{_t.stat(t,(r,n)=>{(r||!n.isDirectory())&&(r=new ou(t,r&&r.code||"ENOTDIR")),e(r)})};vd.exports=(t,e,r)=>{t=Tt(t);let n=e.umask,i=e.mode|448,s=(i&n)!==0,o=e.uid,a=e.gid,u=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),c=e.preserve,l=e.unlink,f=e.cache,h=Tt(e.cwd),p=(g,D)=>{g?r(g):(xs(f,t,!0),D&&u?RA(D,o,a,C=>p(C)):s?_t.chmod(t,i,r):r())};if(f&&au(f,t)===!0)return p();if(t===h)return XL(t,p);if(c)return vA(t,{mode:i}).then(g=>p(null,g),p);let _=Tt(iu.relative(h,t)).split("/");uu(h,_,i,f,l,h,null,p)};var uu=(t,e,r,n,i,s,o,a)=>{if(!e.length)return a(null,o);let u=e.shift(),c=Tt(iu.resolve(t+"/"+u));if(au(n,c))return uu(c,e,r,n,i,s,o,a);_t.mkdir(c,r,FA(c,e,r,n,i,s,o,a))},FA=(t,e,r,n,i,s,o,a)=>u=>{u?_t.lstat(t,(c,l)=>{if(c)c.path=c.path&&Tt(c.path),a(c);else if(l.isDirectory())uu(t,e,r,n,i,s,o,a);else if(i)_t.unlink(t,f=>{if(f)return a(f);_t.mkdir(t,r,FA(t,e,r,n,i,s,o,a))});else{if(l.isSymbolicLink())return a(new su(t,t+"/"+e.join("/")));a(u)}}):(o=o||t,uu(t,e,r,n,i,s,o,a))},ZL=t=>{let e=!1,r="ENOTDIR";try{e=_t.statSync(t).isDirectory()}catch(n){r=n.code}finally{if(!e)throw new ou(t,r)}};vd.exports.sync=(t,e)=>{t=Tt(t);let r=e.umask,n=e.mode|448,i=(n&r)!==0,s=e.uid,o=e.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),u=e.preserve,c=e.unlink,l=e.cache,f=Tt(e.cwd),h=g=>{xs(l,t,!0),g&&a&&RA.sync(g,s,o),i&&_t.chmodSync(t,n)};if(l&&au(l,t)===!0)return h();if(t===f)return ZL(f),h();if(u)return h(vA.sync(t,n));let m=Tt(iu.relative(f,t)).split("/"),_=null;for(let g=m.shift(),D=f;g&&(D+="/"+g);g=m.shift())if(D=Tt(iu.resolve(D)),!au(l,D))try{_t.mkdirSync(D,n),_=_||D,xs(l,D,!0)}catch{let q=_t.lstatSync(D);if(q.isDirectory()){xs(l,D,!0);continue}else if(c){_t.unlinkSync(D),_t.mkdirSync(D,n),_=_||D,xs(l,D,!0);continue}else if(q.isSymbolicLink())return new su(D,D+"/"+m.join("/"))}return h(_)}});var Fd=b((t4,OA)=>{var Rd=Object.create(null),{hasOwnProperty:QL}=Object.prototype;OA.exports=t=>(QL.call(Rd,t)||(Rd[t]=t.normalize("NFKD")),Rd[t])});var IA=b((r4,BA)=>{var kA=require("assert"),eN=Fd(),tN=li(),{join:PA}=require("path"),rN=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,nN=rN==="win32";BA.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((f,h)=>(f.length&&(h=PA(f[f.length-1],h)),f.push(h||"/"),f),[]),n=new Set,i=c=>{let l=e.get(c);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(f=>t.get(f)),dirs:[...l.dirs].map(f=>t.get(f))}},s=c=>{let{paths:l,dirs:f}=i(c);return l.every(h=>h[0]===c)&&f.every(h=>h[0]instanceof Set&&h[0].has(c))},o=c=>n.has(c)||!s(c)?!1:(n.add(c),c(()=>a(c)),!0),a=c=>{if(!n.has(c))return!1;let{paths:l,dirs:f}=e.get(c),h=new Set;return l.forEach(p=>{let m=t.get(p);kA.equal(m[0],c),m.length===1?t.delete(p):(m.shift(),typeof m[0]=="function"?h.add(m[0]):m[0].forEach(_=>h.add(_)))}),f.forEach(p=>{let m=t.get(p);kA(m[0]instanceof Set),m[0].size===1&&m.length===1?t.delete(p):m[0].size===1?(m.shift(),h.add(m[0])):m[0].delete(c)}),n.delete(c),h.forEach(p=>o(p)),!0};return{check:s,reserve:(c,l)=>{c=nN?["win32 parallelization disabled"]:c.map(h=>eN(tN(PA(h))).toLowerCase());let f=new Set(c.map(h=>r(h)).reduce((h,p)=>h.concat(p)));return e.set(l,{dirs:f,paths:c}),c.forEach(h=>{let p=t.get(h);p?p.push(l):t.set(h,[l])}),f.forEach(h=>{let p=t.get(h);p?p[p.length-1]instanceof Set?p[p.length-1].add(l):p.push(new Set([l])):t.set(h,[new Set([l])])}),o(l)}}}});var MA=b((n4,NA)=>{var iN=process.env.__FAKE_PLATFORM__||process.platform,sN=iN==="win32",oN=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:aN,O_TRUNC:uN,O_WRONLY:cN,UV_FS_O_FILEMAP:LA=0}=oN.constants,lN=sN&&!!LA,fN=512*1024,hN=LA|uN|aN|cN;NA.exports=lN?t=>t<fN?hN:"w":()=>"w"});var Md=b((i4,ZA)=>{"use strict";var dN=require("assert"),pN=eu(),ie=require("fs"),mN=Ei(),yr=require("path"),KA=TA(),qA=Nh(),gN=IA(),yN=Mh(),lt=ai(),_N=li(),EN=Fd(),HA=Symbol("onEntry"),kd=Symbol("checkFs"),jA=Symbol("checkFs2"),fu=Symbol("pruneCache"),Pd=Symbol("isReusable"),Et=Symbol("makeFs"),Bd=Symbol("file"),Id=Symbol("directory"),hu=Symbol("link"),$A=Symbol("symlink"),UA=Symbol("hardlink"),GA=Symbol("unsupported"),WA=Symbol("checkPath"),zr=Symbol("mkdir"),We=Symbol("onError"),cu=Symbol("pending"),zA=Symbol("pend"),xi=Symbol("unpend"),Td=Symbol("ended"),Od=Symbol("maybeClose"),Ld=Symbol("skip"),Ss=Symbol("doChown"),Cs=Symbol("uid"),vs=Symbol("gid"),Rs=Symbol("checkedCwd"),JA=require("crypto"),XA=MA(),bN=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Fs=bN==="win32",DN=(t,e)=>{if(!Fs)return ie.unlink(t,e);let r=t+".DELETE."+JA.randomBytes(16).toString("hex");ie.rename(t,r,n=>{if(n)return e(n);ie.unlink(r,e)})},wN=t=>{if(!Fs)return ie.unlinkSync(t);let e=t+".DELETE."+JA.randomBytes(16).toString("hex");ie.renameSync(t,e),ie.unlinkSync(e)},VA=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,YA=t=>EN(_N(lt(t))).toLowerCase(),AN=(t,e)=>{e=YA(e);for(let r of t.keys()){let n=YA(r);(n===e||n.indexOf(e+"/")===0)&&t.delete(r)}},xN=t=>{for(let e of t.keys())t.delete(e)},Ts=class extends pN{constructor(e){if(e||(e={}),e.ondone=r=>{this[Td]=!0,this[Od]()},super(e),this[Rs]=!1,this.reservations=gN(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[cu]=0,this[Td]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.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=e.forceChown===!0,this.win32=!!e.win32||Fs,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=lt(yr.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[HA](r))}warn(e,r,n={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(n.recoverable=!1),super.warn(e,r,n)}[Od](){this[Td]&&this[cu]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[WA](e){if(this.strip){let r=lt(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let n=lt(e.linkpath).split("/");if(n.length>=this.strip)e.linkpath=n.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=lt(e.path),n=r.split("/");if(n.includes("..")||Fs&&/^[a-z]:\.\.$/i.test(n[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[i,s]=yN(r);i&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:e,path:r}))}if(yr.isAbsolute(e.path)?e.absolute=lt(yr.resolve(e.path)):e.absolute=lt(yr.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:lt(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=yr.win32.parse(e.absolute);e.absolute=r+qA.encode(e.absolute.slice(r.length));let{root:n}=yr.win32.parse(e.path);e.path=n+qA.encode(e.path.slice(n.length))}return!0}[HA](e){if(!this[WA](e))return e.resume();switch(dN.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[kd](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[GA](e)}}[We](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[xi](),r.resume())}[zr](e,r,n){KA(lt(e),{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:r,noChmod:this.noChmod},n)}[Ss](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Cs](e){return VA(this.uid,e.uid,this.processUid)}[vs](e){return VA(this.gid,e.gid,this.processGid)}[Bd](e,r){let n=e.mode&4095||this.fmode,i=new mN.WriteStream(e.absolute,{flags:XA(e.size),mode:n,autoClose:!1});i.on("error",u=>{i.fd&&ie.close(i.fd,()=>{}),i.write=()=>!0,this[We](u,e),r()});let s=1,o=u=>{if(u){i.fd&&ie.close(i.fd,()=>{}),this[We](u,e),r();return}--s===0&&ie.close(i.fd,c=>{c?this[We](c,e):this[xi](),r()})};i.on("finish",u=>{let c=e.absolute,l=i.fd;if(e.mtime&&!this.noMtime){s++;let f=e.atime||new Date,h=e.mtime;ie.futimes(l,f,h,p=>p?ie.utimes(c,f,h,m=>o(m&&p)):o())}if(this[Ss](e)){s++;let f=this[Cs](e),h=this[vs](e);ie.fchown(l,f,h,p=>p?ie.chown(c,f,h,m=>o(m&&p)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",u=>{this[We](u,e),r()}),e.pipe(a)),a.pipe(i)}[Id](e,r){let n=e.mode&4095||this.dmode;this[zr](e.absolute,n,i=>{if(i){this[We](i,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[xi](),e.resume())};e.mtime&&!this.noMtime&&(s++,ie.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Ss](e)&&(s++,ie.chown(e.absolute,this[Cs](e),this[vs](e),o)),o()})}[GA](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[$A](e,r){this[hu](e,e.linkpath,"symlink",r)}[UA](e,r){let n=lt(yr.resolve(this.cwd,e.linkpath));this[hu](e,n,"link",r)}[zA](){this[cu]++}[xi](){this[cu]--,this[Od]()}[Ld](e){this[xi](),e.resume()}[Pd](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Fs}[kd](e){this[zA]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,n=>this[jA](e,n))}[fu](e){e.type==="SymbolicLink"?xN(this.dirCache):e.type!=="Directory"&&AN(this.dirCache,e.absolute)}[jA](e,r){this[fu](e);let n=a=>{this[fu](e),r(a)},i=()=>{this[zr](this.cwd,this.dmode,a=>{if(a){this[We](a,e),n();return}this[Rs]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=lt(yr.dirname(e.absolute));if(a!==this.cwd)return this[zr](a,this.dmode,u=>{if(u){this[We](u,e),n();return}o()})}o()},o=()=>{ie.lstat(e.absolute,(a,u)=>{if(u&&(this.keep||this.newer&&u.mtime>e.mtime)){this[Ld](e),n();return}if(a||this[Pd](e,u))return this[Et](null,e,n);if(u.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(u.mode&4095)!==e.mode,l=f=>this[Et](f,e,n);return c?ie.chmod(e.absolute,e.mode,l):l()}if(e.absolute!==this.cwd)return ie.rmdir(e.absolute,c=>this[Et](c,e,n))}if(e.absolute===this.cwd)return this[Et](null,e,n);DN(e.absolute,c=>this[Et](c,e,n))})};this[Rs]?s():i()}[Et](e,r,n){if(e){this[We](e,r),n();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[Bd](r,n);case"Link":return this[UA](r,n);case"SymbolicLink":return this[$A](r,n);case"Directory":case"GNUDumpDir":return this[Id](r,n)}}[hu](e,r,n,i){ie[n](r,e.absolute,s=>{s?this[We](s,e):(this[xi](),e.resume()),i()})}},lu=t=>{try{return[null,t()]}catch(e){return[e,null]}},Nd=class extends Ts{[Et](e,r){return super[Et](e,r,()=>{})}[kd](e){if(this[fu](e),!this[Rs]){let s=this[zr](this.cwd,this.dmode);if(s)return this[We](s,e);this[Rs]=!0}if(e.absolute!==this.cwd){let s=lt(yr.dirname(e.absolute));if(s!==this.cwd){let o=this[zr](s,this.dmode);if(o)return this[We](o,e)}}let[r,n]=lu(()=>ie.lstatSync(e.absolute));if(n&&(this.keep||this.newer&&n.mtime>e.mtime))return this[Ld](e);if(r||this[Pd](e,n))return this[Et](null,e);if(n.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(n.mode&4095)!==e.mode,[a]=o?lu(()=>{ie.chmodSync(e.absolute,e.mode)}):[];return this[Et](a,e)}let[s]=lu(()=>ie.rmdirSync(e.absolute));this[Et](s,e)}let[i]=e.absolute===this.cwd?[]:lu(()=>wN(e.absolute));this[Et](i,e)}[Bd](e,r){let n=e.mode&4095||this.fmode,i=a=>{let u;try{ie.closeSync(s)}catch(c){u=c}(a||u)&&this[We](a||u,e),r()},s;try{s=ie.openSync(e.absolute,XA(e.size),n)}catch(a){return i(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[We](a,e)),e.pipe(o)),o.on("data",a=>{try{ie.writeSync(s,a,0,a.length)}catch(u){i(u)}}),o.on("end",a=>{let u=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,l=e.mtime;try{ie.futimesSync(s,c,l)}catch(f){try{ie.utimesSync(e.absolute,c,l)}catch{u=f}}}if(this[Ss](e)){let c=this[Cs](e),l=this[vs](e);try{ie.fchownSync(s,c,l)}catch(f){try{ie.chownSync(e.absolute,c,l)}catch{u=u||f}}}i(u)})}[Id](e,r){let n=e.mode&4095||this.dmode,i=this[zr](e.absolute,n);if(i){this[We](i,e),r();return}if(e.mtime&&!this.noMtime)try{ie.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Ss](e))try{ie.chownSync(e.absolute,this[Cs](e),this[vs](e))}catch{}r(),e.resume()}[zr](e,r){try{return KA.sync(lt(e),{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:r})}catch(n){return n}}[hu](e,r,n,i){try{ie[n+"Sync"](r,e.absolute),i(),e.resume()}catch(s){return this[We](s,e)}}};Ts.Sync=Nd;ZA.exports=Ts});var nx=b((s4,rx)=>{"use strict";var SN=ri(),du=Md(),ex=require("fs"),tx=Ei(),QA=require("path"),qd=li();rx.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let n=SN(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&CN(n,e),n.file&&n.sync?vN(n):n.file?RN(n,r):n.sync?FN(n):TN(n)};var CN=(t,e)=>{let r=new Map(e.map(s=>[qd(s),!0])),n=t.filter,i=(s,o)=>{let a=o||QA.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):i(QA.dirname(s),a);return r.set(s,u),u};t.filter=n?(s,o)=>n(s,o)&&i(qd(s)):s=>i(qd(s))},vN=t=>{let e=new du.Sync(t),r=t.file,n=ex.statSync(r),i=t.maxReadSize||16*1024*1024;new tx.ReadStreamSync(r,{readSize:i,size:n.size}).pipe(e)},RN=(t,e)=>{let r=new du(t),n=t.maxReadSize||16*1024*1024,i=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),ex.stat(i,(u,c)=>{if(u)a(u);else{let l=new tx.ReadStream(i,{readSize:n,size:c.size});l.on("error",a),l.pipe(r)}})});return e?s.then(e,e):s},FN=t=>new du.Sync(t),TN=t=>new du(t)});var ix=b(ve=>{"use strict";ve.c=ve.create=qw();ve.r=ve.replace=bd();ve.t=ve.list=tu();ve.u=ve.update=Yw();ve.x=ve.extract=nx();ve.Pack=Ha();ve.Unpack=Md();ve.Parse=eu();ve.ReadEntry=Aa();ve.WriteEntry=Yh();ve.Header=ci();ve.Pax=Sa();ve.types=Th()});var Er=b((_r,pu)=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});var sx=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function ON(t){return sx.includes(t)}var kN=["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",...sx];function PN(t){return kN.includes(t)}var BN=["null","undefined","string","number","bigint","boolean","symbol"];function IN(t){return BN.includes(t)}function Si(t){return e=>typeof e===t}var{toString:ox}=Object.prototype,Os=t=>{let e=ox.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&E.domElement(t))return"HTMLElement";if(PN(e))return e},le=t=>e=>Os(e)===t;function E(t){if(t===null)return"null";switch(typeof t){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(E.observable(t))return"Observable";if(E.array(t))return"Array";if(E.buffer(t))return"Buffer";let e=Os(t);if(e)return e;if(t instanceof String||t instanceof Boolean||t instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}E.undefined=Si("undefined");E.string=Si("string");var LN=Si("number");E.number=t=>LN(t)&&!E.nan(t);E.bigint=Si("bigint");E.function_=Si("function");E.null_=t=>t===null;E.class_=t=>E.function_(t)&&t.toString().startsWith("class ");E.boolean=t=>t===!0||t===!1;E.symbol=Si("symbol");E.numericString=t=>E.string(t)&&!E.emptyStringOrWhitespace(t)&&!Number.isNaN(Number(t));E.array=(t,e)=>Array.isArray(t)?E.function_(e)?t.every(e):!0:!1;E.buffer=t=>{var e,r,n,i;return(i=(n=(r=(e=t)===null||e===void 0?void 0:e.constructor)===null||r===void 0?void 0:r.isBuffer)===null||n===void 0?void 0:n.call(r,t))!==null&&i!==void 0?i:!1};E.blob=t=>le("Blob")(t);E.nullOrUndefined=t=>E.null_(t)||E.undefined(t);E.object=t=>!E.null_(t)&&(typeof t=="object"||E.function_(t));E.iterable=t=>{var e;return E.function_((e=t)===null||e===void 0?void 0:e[Symbol.iterator])};E.asyncIterable=t=>{var e;return E.function_((e=t)===null||e===void 0?void 0:e[Symbol.asyncIterator])};E.generator=t=>{var e,r;return E.iterable(t)&&E.function_((e=t)===null||e===void 0?void 0:e.next)&&E.function_((r=t)===null||r===void 0?void 0:r.throw)};E.asyncGenerator=t=>E.asyncIterable(t)&&E.function_(t.next)&&E.function_(t.throw);E.nativePromise=t=>le("Promise")(t);var NN=t=>{var e,r;return E.function_((e=t)===null||e===void 0?void 0:e.then)&&E.function_((r=t)===null||r===void 0?void 0:r.catch)};E.promise=t=>E.nativePromise(t)||NN(t);E.generatorFunction=le("GeneratorFunction");E.asyncGeneratorFunction=t=>Os(t)==="AsyncGeneratorFunction";E.asyncFunction=t=>Os(t)==="AsyncFunction";E.boundFunction=t=>E.function_(t)&&!t.hasOwnProperty("prototype");E.regExp=le("RegExp");E.date=le("Date");E.error=le("Error");E.map=t=>le("Map")(t);E.set=t=>le("Set")(t);E.weakMap=t=>le("WeakMap")(t);E.weakSet=t=>le("WeakSet")(t);E.int8Array=le("Int8Array");E.uint8Array=le("Uint8Array");E.uint8ClampedArray=le("Uint8ClampedArray");E.int16Array=le("Int16Array");E.uint16Array=le("Uint16Array");E.int32Array=le("Int32Array");E.uint32Array=le("Uint32Array");E.float32Array=le("Float32Array");E.float64Array=le("Float64Array");E.bigInt64Array=le("BigInt64Array");E.bigUint64Array=le("BigUint64Array");E.arrayBuffer=le("ArrayBuffer");E.sharedArrayBuffer=le("SharedArrayBuffer");E.dataView=le("DataView");E.enumCase=(t,e)=>Object.values(e).includes(t);E.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;E.urlInstance=t=>le("URL")(t);E.urlString=t=>{if(!E.string(t))return!1;try{return new URL(t),!0}catch{return!1}};E.truthy=t=>!!t;E.falsy=t=>!t;E.nan=t=>Number.isNaN(t);E.primitive=t=>E.null_(t)||IN(typeof t);E.integer=t=>Number.isInteger(t);E.safeInteger=t=>Number.isSafeInteger(t);E.plainObject=t=>{if(ox.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})};E.typedArray=t=>ON(Os(t));var MN=t=>E.safeInteger(t)&&t>=0;E.arrayLike=t=>!E.nullOrUndefined(t)&&!E.function_(t)&&MN(t.length);E.inRange=(t,e)=>{if(E.number(e))return t>=Math.min(0,e)&&t<=Math.max(e,0);if(E.array(e)&&e.length===2)return t>=Math.min(...e)&&t<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};var qN=1,HN=["innerHTML","ownerDocument","style","attributes","nodeValue"];E.domElement=t=>E.object(t)&&t.nodeType===qN&&E.string(t.nodeName)&&!E.plainObject(t)&&HN.every(e=>e in t);E.observable=t=>{var e,r,n,i;return t?t===((r=(e=t)[Symbol.observable])===null||r===void 0?void 0:r.call(e))||t===((i=(n=t)["@@observable"])===null||i===void 0?void 0:i.call(n)):!1};E.nodeStream=t=>E.object(t)&&E.function_(t.pipe)&&!E.observable(t);E.infinite=t=>t===1/0||t===-1/0;var ax=t=>e=>E.integer(e)&&Math.abs(e%2)===t;E.evenInteger=ax(0);E.oddInteger=ax(1);E.emptyArray=t=>E.array(t)&&t.length===0;E.nonEmptyArray=t=>E.array(t)&&t.length>0;E.emptyString=t=>E.string(t)&&t.length===0;var jN=t=>E.string(t)&&!/\S/.test(t);E.emptyStringOrWhitespace=t=>E.emptyString(t)||jN(t);E.nonEmptyString=t=>E.string(t)&&t.length>0;E.nonEmptyStringAndNotWhitespace=t=>E.string(t)&&!E.emptyStringOrWhitespace(t);E.emptyObject=t=>E.object(t)&&!E.map(t)&&!E.set(t)&&Object.keys(t).length===0;E.nonEmptyObject=t=>E.object(t)&&!E.map(t)&&!E.set(t)&&Object.keys(t).length>0;E.emptySet=t=>E.set(t)&&t.size===0;E.nonEmptySet=t=>E.set(t)&&t.size>0;E.emptyMap=t=>E.map(t)&&t.size===0;E.nonEmptyMap=t=>E.map(t)&&t.size>0;E.propertyKey=t=>E.any([E.string,E.number,E.symbol],t);E.formData=t=>le("FormData")(t);E.urlSearchParams=t=>le("URLSearchParams")(t);var ux=(t,e,r)=>{if(!E.function_(e))throw new TypeError(`Invalid predicate: ${JSON.stringify(e)}`);if(r.length===0)throw new TypeError("Invalid number of values");return t.call(r,e)};E.any=(t,...e)=>(E.array(t)?t:[t]).some(n=>ux(Array.prototype.some,n,e));E.all=(t,...e)=>ux(Array.prototype.every,t,e);var P=(t,e,r,n={})=>{if(!t){let{multipleValues:i}=n,s=i?`received values of types ${[...new Set(r.map(o=>`\`${E(o)}\``))].join(", ")}`:`received value of type \`${E(r)}\``;throw new TypeError(`Expected value which is \`${e}\`, ${s}.`)}};_r.assert={undefined:t=>P(E.undefined(t),"undefined",t),string:t=>P(E.string(t),"string",t),number:t=>P(E.number(t),"number",t),bigint:t=>P(E.bigint(t),"bigint",t),function_:t=>P(E.function_(t),"Function",t),null_:t=>P(E.null_(t),"null",t),class_:t=>P(E.class_(t),"Class",t),boolean:t=>P(E.boolean(t),"boolean",t),symbol:t=>P(E.symbol(t),"symbol",t),numericString:t=>P(E.numericString(t),"string with a number",t),array:(t,e)=>{P(E.array(t),"Array",t),e&&t.forEach(e)},buffer:t=>P(E.buffer(t),"Buffer",t),blob:t=>P(E.blob(t),"Blob",t),nullOrUndefined:t=>P(E.nullOrUndefined(t),"null or undefined",t),object:t=>P(E.object(t),"Object",t),iterable:t=>P(E.iterable(t),"Iterable",t),asyncIterable:t=>P(E.asyncIterable(t),"AsyncIterable",t),generator:t=>P(E.generator(t),"Generator",t),asyncGenerator:t=>P(E.asyncGenerator(t),"AsyncGenerator",t),nativePromise:t=>P(E.nativePromise(t),"native Promise",t),promise:t=>P(E.promise(t),"Promise",t),generatorFunction:t=>P(E.generatorFunction(t),"GeneratorFunction",t),asyncGeneratorFunction:t=>P(E.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),asyncFunction:t=>P(E.asyncFunction(t),"AsyncFunction",t),boundFunction:t=>P(E.boundFunction(t),"Function",t),regExp:t=>P(E.regExp(t),"RegExp",t),date:t=>P(E.date(t),"Date",t),error:t=>P(E.error(t),"Error",t),map:t=>P(E.map(t),"Map",t),set:t=>P(E.set(t),"Set",t),weakMap:t=>P(E.weakMap(t),"WeakMap",t),weakSet:t=>P(E.weakSet(t),"WeakSet",t),int8Array:t=>P(E.int8Array(t),"Int8Array",t),uint8Array:t=>P(E.uint8Array(t),"Uint8Array",t),uint8ClampedArray:t=>P(E.uint8ClampedArray(t),"Uint8ClampedArray",t),int16Array:t=>P(E.int16Array(t),"Int16Array",t),uint16Array:t=>P(E.uint16Array(t),"Uint16Array",t),int32Array:t=>P(E.int32Array(t),"Int32Array",t),uint32Array:t=>P(E.uint32Array(t),"Uint32Array",t),float32Array:t=>P(E.float32Array(t),"Float32Array",t),float64Array:t=>P(E.float64Array(t),"Float64Array",t),bigInt64Array:t=>P(E.bigInt64Array(t),"BigInt64Array",t),bigUint64Array:t=>P(E.bigUint64Array(t),"BigUint64Array",t),arrayBuffer:t=>P(E.arrayBuffer(t),"ArrayBuffer",t),sharedArrayBuffer:t=>P(E.sharedArrayBuffer(t),"SharedArrayBuffer",t),dataView:t=>P(E.dataView(t),"DataView",t),enumCase:(t,e)=>P(E.enumCase(t,e),"EnumCase",t),urlInstance:t=>P(E.urlInstance(t),"URL",t),urlString:t=>P(E.urlString(t),"string with a URL",t),truthy:t=>P(E.truthy(t),"truthy",t),falsy:t=>P(E.falsy(t),"falsy",t),nan:t=>P(E.nan(t),"NaN",t),primitive:t=>P(E.primitive(t),"primitive",t),integer:t=>P(E.integer(t),"integer",t),safeInteger:t=>P(E.safeInteger(t),"integer",t),plainObject:t=>P(E.plainObject(t),"plain object",t),typedArray:t=>P(E.typedArray(t),"TypedArray",t),arrayLike:t=>P(E.arrayLike(t),"array-like",t),domElement:t=>P(E.domElement(t),"HTMLElement",t),observable:t=>P(E.observable(t),"Observable",t),nodeStream:t=>P(E.nodeStream(t),"Node.js Stream",t),infinite:t=>P(E.infinite(t),"infinite number",t),emptyArray:t=>P(E.emptyArray(t),"empty array",t),nonEmptyArray:t=>P(E.nonEmptyArray(t),"non-empty array",t),emptyString:t=>P(E.emptyString(t),"empty string",t),emptyStringOrWhitespace:t=>P(E.emptyStringOrWhitespace(t),"empty string or whitespace",t),nonEmptyString:t=>P(E.nonEmptyString(t),"non-empty string",t),nonEmptyStringAndNotWhitespace:t=>P(E.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),emptyObject:t=>P(E.emptyObject(t),"empty object",t),nonEmptyObject:t=>P(E.nonEmptyObject(t),"non-empty object",t),emptySet:t=>P(E.emptySet(t),"empty set",t),nonEmptySet:t=>P(E.nonEmptySet(t),"non-empty set",t),emptyMap:t=>P(E.emptyMap(t),"empty map",t),nonEmptyMap:t=>P(E.nonEmptyMap(t),"non-empty map",t),propertyKey:t=>P(E.propertyKey(t),"PropertyKey",t),formData:t=>P(E.formData(t),"FormData",t),urlSearchParams:t=>P(E.urlSearchParams(t),"URLSearchParams",t),evenInteger:t=>P(E.evenInteger(t),"even integer",t),oddInteger:t=>P(E.oddInteger(t),"odd integer",t),directInstanceOf:(t,e)=>P(E.directInstanceOf(t,e),"T",t),inRange:(t,e)=>P(E.inRange(t,e),"in range",t),any:(t,...e)=>P(E.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(t,...e)=>P(E.all(t,...e),"predicate returns truthy for all values",e,{multipleValues:!0})};Object.defineProperties(E,{class:{value:E.class_},function:{value:E.function_},null:{value:E.null_}});Object.defineProperties(_r.assert,{class:{value:_r.assert.class_},function:{value:_r.assert.function_},null:{value:_r.assert.null_}});_r.default=E;pu.exports=E;pu.exports.default=E;pu.exports.assert=_r.assert});var cx=b((a4,Hd)=>{"use strict";var mu=class extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},Ci=class{static fn(e){return(...r)=>new Ci((n,i,s)=>{r.push(s),e(...r).then(n,i)})}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,n)=>{this._reject=n;let i=a=>{(!this._isCanceled||!o.shouldReject)&&(this._isPending=!1,r(a))},s=a=>{this._isPending=!1,n(a)},o=a=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(a)};return Object.defineProperties(o,{shouldReject:{get:()=>this._rejectOnCancel,set:a=>{this._rejectOnCancel=a}}}),e(i,s,o)})}then(e,r){return this._promise.then(e,r)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let r of this._cancelHandlers)r()}catch(r){this._reject(r);return}this._rejectOnCancel&&this._reject(new mu(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(Ci.prototype,Promise.prototype);Hd.exports=Ci;Hd.exports.CancelError=mu});var lx=b(($d,Ud)=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});function $N(t){return t.encrypted}var jd=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let n=typeof r.connect=="function",i=typeof r.secureConnect=="function",s=typeof r.close=="function",o=()=>{n&&r.connect(),$N(t)&&i&&(t.authorized?r.secureConnect():t.authorizationError||t.once("secureConnect",r.secureConnect)),s&&t.once("close",r.close)};t.writable&&!t.connecting?o():t.connecting?t.once("connect",o):t.destroyed&&s&&r.close(t._hadError)};$d.default=jd;Ud.exports=jd;Ud.exports.default=jd});var fx=b((Wd,zd)=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});var UN=lx(),GN=require("util"),WN=Number(process.versions.node.split(".")[0]),Gd=t=>{if(t.timings)return t.timings;let e={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}};t.timings=e;let r=a=>{let u=a.emit.bind(a);a.emit=(c,...l)=>(c==="error"&&(e.error=Date.now(),e.phases.total=e.error-e.start,a.emit=u),u(c,...l))};r(t);let n=()=>{e.abort=Date.now(),(!e.response||WN>=13)&&(e.phases.total=Date.now()-e.start)};t.prependOnceListener("abort",n);let i=a=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,GN.types.isProxy(a))return;let u=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};a.prependOnceListener("lookup",u),UN.default(a,{connect:()=>{e.connect=Date.now(),e.lookup===void 0&&(a.removeListener("lookup",u),e.lookup=e.connect,e.phases.dns=e.lookup-e.socket),e.phases.tcp=e.connect-e.lookup},secureConnect:()=>{e.secureConnect=Date.now(),e.phases.tls=e.secureConnect-e.connect}})};t.socket?i(t.socket):t.prependOnceListener("socket",i);let s=()=>{var a;e.upload=Date.now(),e.phases.request=e.upload-((a=e.secureConnect)!==null&&a!==void 0?a:e.connect)};return(()=>typeof t.writableFinished=="boolean"?t.writableFinished:t.finished&&t.outputSize===0&&(!t.socket||t.socket.writableLength===0))()?s():t.prependOnceListener("finish",s),t.prependOnceListener("response",a=>{e.response=Date.now(),e.phases.firstByte=e.response-e.upload,a.timings=e,r(a),a.prependOnceListener("end",()=>{e.end=Date.now(),e.phases.download=e.end-e.response,e.phases.total=e.end-e.start}),a.prependOnceListener("aborted",n)}),e};Wd.default=Gd;zd.exports=Gd;zd.exports.default=Gd});var _x=b((u4,Kd)=>{"use strict";var{V4MAPPED:zN,ADDRCONFIG:VN,ALL:yx,promises:{Resolver:hx},lookup:YN}=require("dns"),{promisify:Vd}=require("util"),KN=require("os"),vi=Symbol("cacheableLookupCreateConnection"),Yd=Symbol("cacheableLookupInstance"),dx=Symbol("expires"),JN=typeof yx=="number",px=t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},XN=t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},mx=()=>{let t=!1,e=!1;for(let r of Object.values(KN.networkInterfaces()))for(let n of r)if(!n.internal&&(n.family==="IPv6"?e=!0:t=!0,t&&e))return{has4:t,has6:e};return{has4:t,has6:e}},ZN=t=>Symbol.iterator in t,gx={ttl:!0},QN={all:!0},gu=class{constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:n=3600,errorTtl:i=.15,resolver:s=new hx,lookup:o=YN}={}){if(this.maxTtl=r,this.errorTtl=i,this._cache=e,this._resolver=s,this._dnsLookup=Vd(o),this._resolver instanceof hx?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=Vd(this._resolver.resolve4.bind(this._resolver)),this._resolve6=Vd(this._resolver.resolve6.bind(this._resolver))),this._iface=mx(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,n<1)this._fallback=!1;else{this._fallback=!0;let a=setInterval(()=>{this._hostnamesToFallback.clear()},n*1e3);a.unref&&a.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.clear(),this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,r,n){if(typeof r=="function"?(n=r,r={}):typeof r=="number"&&(r={family:r}),!n)throw new Error("Callback must be a function.");this.lookupAsync(e,r).then(i=>{r.all?n(null,i):n(null,i.address,i.family,i.expires,i.ttl)},n)}async lookupAsync(e,r={}){typeof r=="number"&&(r={family:r});let n=await this.query(e);if(r.family===6){let i=n.filter(s=>s.family===6);r.hints&zN&&(JN&&r.hints&yx||i.length===0)?XN(n):n=i}else r.family===4&&(n=n.filter(i=>i.family===4));if(r.hints&VN){let{_iface:i}=this;n=n.filter(s=>s.family===6?i.has6:i.has4)}if(n.length===0){let i=new Error(`cacheableLookup ENOTFOUND ${e}`);throw i.code="ENOTFOUND",i.hostname=e,i}return r.all?n:n[0]}async query(e){let r=await this._cache.get(e);if(!r){let n=this._pending[e];if(n)r=await n;else{let i=this.queryAndCache(e);this._pending[e]=i;try{r=await i}finally{delete this._pending[e]}}}return r=r.map(n=>({...n})),r}async _resolve(e){let r=async c=>{try{return await c}catch(l){if(l.code==="ENODATA"||l.code==="ENOTFOUND")return[];throw l}},[n,i]=await Promise.all([this._resolve4(e,gx),this._resolve6(e,gx)].map(c=>r(c))),s=0,o=0,a=0,u=Date.now();for(let c of n)c.family=4,c.expires=u+c.ttl*1e3,s=Math.max(s,c.ttl);for(let c of i)c.family=6,c.expires=u+c.ttl*1e3,o=Math.max(o,c.ttl);return n.length>0?i.length>0?a=Math.min(s,o):a=s:a=o,{entries:[...n,...i],cacheTtl:a}}async _lookup(e){try{return{entries:await this._dnsLookup(e,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(e,r,n){if(this.maxTtl>0&&n>0){n=Math.min(n,this.maxTtl)*1e3,r[dx]=Date.now()+n;try{await this._cache.set(e,r,n)}catch(i){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=i,s}}ZN(this._cache)&&this._tick(n)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,QN);let r=await this._resolve(e);r.entries.length===0&&this._fallback&&(r=await this._lookup(e),r.entries.length!==0&&this._hostnamesToFallback.add(e));let n=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(e,r.entries,n),r.entries}_tick(e){let r=this._nextRemovalTime;(!r||e<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let n=1/0,i=Date.now();for(let[s,o]of this._cache){let a=o[dx];i>=a?this._cache.delete(s):a<n&&(n=a)}n!==1/0&&this._tick(n-i)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(px(e),vi in e)throw new Error("CacheableLookup has been already installed");e[vi]=e.createConnection,e[Yd]=this,e.createConnection=(r,n)=>("lookup"in r||(r.lookup=this.lookup),e[vi](r,n))}uninstall(e){if(px(e),e[vi]){if(e[Yd]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[vi],delete e[vi],delete e[Yd]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=mx(),(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6)&&this._cache.clear()}clear(e){if(e){this._cache.delete(e);return}this._cache.clear()}};Kd.exports=gu;Kd.exports.default=gu});var Dx=b((c4,bx)=>{"use strict";var e3="text/plain",t3="us-ascii",Ex=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),r3=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:n,data:i,hash:s}=r.groups,o=n.split(";");s=e?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let u=(o.shift()||"").toLowerCase(),l=[...o.map(f=>{let[h,p=""]=f.split("=").map(m=>m.trim());return h==="charset"&&(p=p.toLowerCase(),p===t3)?"":`${h}${p?`=${p}`:""}`}).filter(Boolean)];return a&&l.push("base64"),(l.length!==0||u&&u!==e3)&&l.unshift(u),`data:${l.join(";")},${a?i.trim():i}${s?`#${s}`:""}`},n3=(t,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},t=t.trim(),/^data:/i.test(t))return r3(t,e);if(/^view-source:/i.test(t))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=t.startsWith("//");!r&&/^\.*\//.test(t)||(t=t.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let i=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),e.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),e.stripAuthentication&&(i.username="",i.password=""),e.stripHash?i.hash="":e.stripTextFragment&&(i.hash=i.hash.replace(/#?:~:text.*?$/i,"")),i.pathname&&(i.pathname=i.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),i.pathname)try{i.pathname=decodeURI(i.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),a=o[o.length-1];Ex(a,e.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...i.searchParams.keys()])Ex(o,e.removeQueryParameters)&&i.searchParams.delete(o);e.removeQueryParameters===!0&&(i.search=""),e.sortQueryParameters&&i.searchParams.sort(),e.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=t;return t=i.toString(),!e.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t};bx.exports=n3});var xx=b((l4,Ax)=>{Ax.exports=wx;function wx(t,e){if(t&&e)return wx(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=t.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var Xd=b((f4,Jd)=>{var Sx=xx();Jd.exports=Sx(yu);Jd.exports.strict=Sx(Cx);yu.proto=yu(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return yu(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Cx(this)},configurable:!0})});function yu(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function Cx(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var Fx=b((h4,Rx)=>{var i3=Xd(),s3=function(){},o3=function(t){return t.setHeader&&typeof t.abort=="function"},a3=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},vx=function(t,e,r){if(typeof e=="function")return vx(t,null,e);e||(e={}),r=i3(r||s3);var n=t._writableState,i=t._readableState,s=e.readable||e.readable!==!1&&t.readable,o=e.writable||e.writable!==!1&&t.writable,a=!1,u=function(){t.writable||c()},c=function(){o=!1,s||r.call(t)},l=function(){s=!1,o||r.call(t)},f=function(g){r.call(t,g?new Error("exited with error code: "+g):null)},h=function(g){r.call(t,g)},p=function(){process.nextTick(m)},m=function(){if(!a){if(s&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"))}},_=function(){t.req.on("finish",c)};return o3(t)?(t.on("complete",c),t.on("abort",p),t.req?_():t.on("request",_)):o&&!n&&(t.on("end",u),t.on("close",u)),a3(t)&&t.on("exit",f),t.on("end",l),t.on("finish",c),e.error!==!1&&t.on("error",h),t.on("close",p),function(){a=!0,t.removeListener("complete",c),t.removeListener("abort",p),t.removeListener("request",_),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("exit",f),t.removeListener("end",l),t.removeListener("error",h),t.removeListener("close",p)}};Rx.exports=vx});var kx=b((d4,Ox)=>{var u3=Xd(),c3=Fx(),Zd=require("fs"),ks=function(){},l3=/^v?\.0/.test(process.version),_u=function(t){return typeof t=="function"},f3=function(t){return!l3||!Zd?!1:(t instanceof(Zd.ReadStream||ks)||t instanceof(Zd.WriteStream||ks))&&_u(t.close)},h3=function(t){return t.setHeader&&_u(t.abort)},d3=function(t,e,r,n){n=u3(n);var i=!1;t.on("close",function(){i=!0}),c3(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,f3(t))return t.close(ks);if(h3(t))return t.abort();if(_u(t.destroy))return t.destroy();n(o||new Error("stream was destroyed"))}}},Tx=function(t){t()},p3=function(t,e){return t.pipe(e)},m3=function(){var t=Array.prototype.slice.call(arguments),e=_u(t[t.length-1]||ks)&&t.pop()||ks;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,n=t.map(function(i,s){var o=s<t.length-1,a=s>0;return d3(i,o,a,function(u){r||(r=u),u&&n.forEach(Tx),!o&&(n.forEach(Tx),e(r))})});return t.reduce(p3)};Ox.exports=m3});var Bx=b((p4,Px)=>{"use strict";var{PassThrough:g3}=require("stream");Px.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new g3({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),i?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var Ix=b((m4,Ri)=>{"use strict";var{constants:y3}=require("buffer"),_3=kx(),E3=Bx(),Eu=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function bu(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n;return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=y3.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};n=_3(t,E3(e),a=>{if(a){o(a);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&o(new Eu)})}),n.getBufferedValue()}Ri.exports=bu;Ri.exports.default=bu;Ri.exports.buffer=(t,e)=>bu(t,{...e,encoding:"buffer"});Ri.exports.array=(t,e)=>bu(t,{...e,array:!0});Ri.exports.MaxBufferError=Eu});var Nx=b((y4,Lx)=>{"use strict";var b3=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),D3=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),w3=new Set([500,502,503,504]),A3={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},x3={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function xn(t){let e=parseInt(t,10);return isFinite(e)?e:0}function S3(t){return t?w3.has(t.status):!0}function Qd(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let n of r){let[i,s]=n.split(/=/,2);e[i.trim()]=s===void 0?!0:s.trim().replace(/^"|"$/g,"")}return e}function C3(t){let e=[];for(let r in t){let n=t[r];e.push(n===!0?r:r+"="+n)}if(e.length)return e.join(", ")}Lx.exports=class{constructor(e,r,{shared:n,cacheHeuristic:i,immutableMinTimeToLive:s,ignoreCargoCult:o,_fromObject:a}={}){if(a){this._fromObject(a);return}if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(e),this._responseTime=this.now(),this._isShared=n!==!1,this._cacheHeuristic=i!==void 0?i:.1,this._immutableMinTtl=s!==void 0?s:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=Qd(r.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=r.headers.vary?e.headers:null,this._reqcc=Qd(e.headers["cache-control"]),o&&"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":C3(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),r.headers["cache-control"]==null&&/no-cache/.test(r.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())&&D3.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||b3.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);let r=Qd(e.headers["cache-control"]);return r["no-cache"]||/no-cache/.test(e.headers.pragma)||r["max-age"]&&this.age()>r["max-age"]||r["min-fresh"]&&this.timeToLive()<1e3*r["min-fresh"]||this.stale()&&!(r["max-stale"]&&!this._rescc["must-revalidate"]&&(r["max-stale"]===!0||r["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(e,!1)}_requestMatches(e,r){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||r&&e.method==="HEAD")&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let r=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let n of r)if(e.headers[n]!==this._reqHeaders[n])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let n in e)A3[n]||(r[n]=e[n]);if(e.connection){let n=e.connection.trim().split(/\s*,\s*/);for(let i of n)delete r[i]}if(r.warning){let n=r.warning.split(/,/).filter(i=>!/^\s*1[0-9][0-9]/.test(i));n.length?r.warning=n.join(",").trim():delete r.warning}return r}responseHeaders(){let e=this._copyWithoutHopByHopHeaders(this._resHeaders),r=this.age();return r>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'),e.age=`${Math.round(r)}`,e.date=new Date(this.now()).toUTCString(),e}date(){let e=Date.parse(this._resHeaders.date);return isFinite(e)?e:this._responseTime}age(){let e=this._ageValue(),r=(this.now()-this._responseTime)/1e3;return e+r}_ageValue(){return xn(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 xn(this._rescc["s-maxage"])}if(this._rescc["max-age"])return xn(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let n=Date.parse(this._resHeaders.expires);return Number.isNaN(n)||n<r?0:Math.max(e,(n-r)/1e3)}if(this._resHeaders["last-modified"]){let n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&r>n)return Math.max(e,(r-n)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+xn(this._rescc["stale-if-error"]),n=e+xn(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,n)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+xn(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+xn(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=e.imm!==void 0?e.imm:24*3600*1e3,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.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(e){this._assertRequestHasHeaders(e);let r=this._copyWithoutHopByHopHeaders(e.headers);if(delete r["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete r["if-none-match"],delete r["if-modified-since"],r;if(this._resHeaders.etag&&(r["if-none-match"]=r["if-none-match"]?`${r["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),r["accept-ranges"]||r["if-match"]||r["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete r["if-modified-since"],r["if-none-match"]){let i=r["if-none-match"].split(/,/).filter(s=>!/^\s*W\//.test(s));i.length?r["if-none-match"]=i.join(",").trim():delete r["if-none-match"]}}else this._resHeaders["last-modified"]&&!r["if-modified-since"]&&(r["if-modified-since"]=this._resHeaders["last-modified"]);return r}revalidatedPolicy(e,r){if(this._assertRequestHasHeaders(e),this._useStaleIfError()&&S3(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let n=!1;if(r.status!==void 0&&r.status!=304?n=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?n=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?n=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?n=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(n=!0),!n)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let i={};for(let o in this._resHeaders)i[o]=o in r.headers&&!x3[o]?r.headers[o]:this._resHeaders[o];let s=Object.assign({},r,{status:this._status,method:this._method,headers:i});return{policy:new this.constructor(e,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var Du=b((_4,Mx)=>{"use strict";Mx.exports=t=>{let e={};for(let[r,n]of Object.entries(t))e[r.toLowerCase()]=n;return e}});var Hx=b((E4,qx)=>{"use strict";var v3=require("stream").Readable,R3=Du(),ep=class extends v3{constructor(e,r,n,i){if(typeof e!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof r!="object")throw new TypeError("Argument `headers` should be an object");if(!(n instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof i!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=R3(r),this.body=n,this.url=i}_read(){this.push(this.body),this.push(null)}};qx.exports=ep});var $x=b((b4,jx)=>{"use strict";var F3=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];jx.exports=(t,e)=>{let r=new Set(Object.keys(t).concat(F3));for(let n of r)n in e||(e[n]=typeof t[n]=="function"?t[n].bind(t):t[n])}});var Gx=b((D4,Ux)=>{"use strict";var T3=require("stream").PassThrough,O3=$x(),k3=t=>{if(!(t&&t.pipe))throw new TypeError("Parameter `response` must be a response stream.");let e=new T3;return O3(t,e),t.pipe(e)};Ux.exports=k3});var Wx=b(tp=>{tp.stringify=function t(e){if(typeof e=="undefined")return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON&&(e=e.toJSON()),e&&typeof e=="object"){var r="",n=Array.isArray(e);r=n?"[":"{";var i=!0;for(var s in e){var o=typeof e[s]=="function"||!n&&typeof e[s]=="undefined";Object.hasOwnProperty.call(e,s)&&!o&&(i||(r+=","),i=!1,n?e[s]==null?r+="null":r+=t(e[s]):e[s]!==void 0&&(r+=t(s)+":"+t(e[s])))}return r+=n?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e=="undefined"?"null":JSON.stringify(e)};tp.parse=function(t){return JSON.parse(t,function(e,r){return typeof r=="string"?/^:base64:/.test(r)?Buffer.from(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var Kx=b((A4,Yx)=>{"use strict";var P3=require("events"),zx=Wx(),B3=t=>{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(t.adapter||t.uri){let r=t.adapter||/^[^:+]*/.exec(t.uri)[0];return new(require(e[r]))(t)}return new Map},Vx=["sqlite","postgres","mysql","mongo","redis","tiered"],rp=class extends P3{constructor(e,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:zx.stringify,deserialize:zx.parse,...typeof e=="string"?{uri:e}:e,...n},!this.opts.store){let s={...this.opts};this.opts.store=B3(s)}if(this.opts.compression){let s=this.opts.compression;this.opts.serialize=s.serialize.bind(s),this.opts.deserialize=s.deserialize.bind(s)}typeof this.opts.store.on=="function"&&r&&this.opts.store.on("error",s=>this.emit("error",s)),this.opts.store.namespace=this.opts.namespace;let i=s=>async function*(){for await(let[o,a]of typeof s=="function"?s(this.opts.store.namespace):s){let u=this.opts.deserialize(a);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof u.expires=="number"&&Date.now()>u.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),u.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=i(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=i(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return Vx.includes(this.opts.store.opts.dialect)||Vx.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(r=>`${this.opts.namespace}:${r}`)}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,r){let{store:n}=this.opts,i=Array.isArray(e),s=i?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(i&&n.getMany===void 0){let o=[];for(let a of s)o.push(Promise.resolve().then(()=>n.get(a)).then(u=>typeof u=="string"?this.opts.deserialize(u):this.opts.compression?this.opts.deserialize(u):u).then(u=>{if(u!=null)return typeof u.expires=="number"&&Date.now()>u.expires?this.delete(a).then(()=>{}):r&&r.raw?u:u.value}));return Promise.allSettled(o).then(a=>{let u=[];for(let c of a)u.push(c.value);return u})}return Promise.resolve().then(()=>i?n.getMany(s):n.get(s)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null){if(i){let a=[];for(let u of o){if(typeof u=="string"&&(u=this.opts.deserialize(u)),u==null){a.push(void 0);continue}typeof u.expires=="number"&&Date.now()>u.expires?(this.delete(e).then(()=>{}),a.push(void 0)):a.push(r&&r.raw?u:u.value)}return a}return typeof o.expires=="number"&&Date.now()>o.expires?this.delete(e).then(()=>{}):r&&r.raw?o:o.value}})}set(e,r,n){let i=this._getKeyPrefix(e);typeof n=="undefined"&&(n=this.opts.ttl),n===0&&(n=void 0);let{store:s}=this.opts;return Promise.resolve().then(()=>{let o=typeof n=="number"?Date.now()+n:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:o},this.opts.serialize(r)}).then(o=>s.set(i,o,n)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let i=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let s=[];for(let o of i)s.push(r.delete(o));return Promise.allSettled(s).then(o=>o.every(a=>a.value===!0))}return Promise.resolve().then(()=>r.deleteMany(i))}let n=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(n))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:n}=this.opts;return Promise.resolve().then(async()=>typeof n.has=="function"?n.has(r):await n.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};Yx.exports=rp});var Zx=b((x4,Xx)=>{"use strict";var I3=require("events"),wu=require("url"),L3=Dx(),N3=Ix(),np=Nx(),Jx=Hx(),M3=Du(),q3=Gx(),H3=Kx(),Ot=class{constructor(e,r){if(typeof e!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new H3({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(r,n)=>{let i;if(typeof r=="string")i=ip(wu.parse(r)),r={};else if(r instanceof wu.URL)i=ip(wu.parse(r.toString())),r={};else{let[f,...h]=(r.path||"").split("?"),p=h.length>0?`?${h.join("?")}`:"";i=ip({...r,pathname:f,search:p})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...j3(i)},r.headers=M3(r.headers);let s=new I3,o=L3(wu.format(i),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),a=`${r.method}:${o}`,u=!1,c=!1,l=f=>{c=!0;let h=!1,p,m=new Promise(g=>{p=()=>{h||(h=!0,g())}}),_=g=>{if(u&&!f.forceRefresh){g.status=g.statusCode;let C=np.fromObject(u.cachePolicy).revalidatedPolicy(f,g);if(!C.modified){let q=C.policy.responseHeaders();g=new Jx(u.statusCode,q,u.body,u.url),g.cachePolicy=C.policy,g.fromCache=!0}}g.fromCache||(g.cachePolicy=new np(f,g,f),g.fromCache=!1);let D;f.cache&&g.cachePolicy.storable()?(D=q3(g),(async()=>{try{let C=N3.buffer(g);if(await Promise.race([m,new Promise(K=>g.once("end",K))]),h)return;let q=await C,$={cachePolicy:g.cachePolicy.toObject(),url:g.url,statusCode:g.fromCache?u.statusCode:g.statusCode,body:q},N=f.strictTtl?g.cachePolicy.timeToLive():void 0;f.maxTtl&&(N=N?Math.min(N,f.maxTtl):f.maxTtl),await this.cache.set(a,$,N)}catch(C){s.emit("error",new Ot.CacheError(C))}})()):f.cache&&u&&(async()=>{try{await this.cache.delete(a)}catch(C){s.emit("error",new Ot.CacheError(C))}})(),s.emit("response",D||g),typeof n=="function"&&n(D||g)};try{let g=e(f,_);g.once("error",p),g.once("abort",p),s.emit("request",g)}catch(g){s.emit("error",new Ot.RequestError(g))}};return(async()=>{let f=async p=>{await Promise.resolve();let m=p.cache?await this.cache.get(a):void 0;if(typeof m=="undefined")return l(p);let _=np.fromObject(m.cachePolicy);if(_.satisfiesWithoutRevalidation(p)&&!p.forceRefresh){let g=_.responseHeaders(),D=new Jx(m.statusCode,g,m.body,m.url);D.cachePolicy=_,D.fromCache=!0,s.emit("response",D),typeof n=="function"&&n(D)}else u=m,p.headers=_.revalidationHeaders(p),l(p)},h=p=>s.emit("error",new Ot.CacheError(p));this.cache.once("error",h),s.on("response",()=>this.cache.removeListener("error",h));try{await f(r)}catch(p){r.automaticFailover&&!c&&l(r),s.emit("error",new Ot.CacheError(p))}})(),s}}};function j3(t){let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e}function ip(t){return{protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}}Ot.RequestError=class extends Error{constructor(t){super(t.message),this.name="RequestError",Object.assign(this,t)}};Ot.CacheError=class extends Error{constructor(t){super(t.message),this.name="CacheError",Object.assign(this,t)}};Xx.exports=Ot});var eS=b((v4,Qx)=>{"use strict";var $3=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];Qx.exports=(t,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set(Object.keys(t).concat($3)),n={};for(let i of r)i in e||(n[i]={get(){let s=t[i];return typeof s=="function"?s.bind(t):s},set(s){t[i]=s},enumerable:!0,configurable:!1});return Object.defineProperties(e,n),t.once("aborted",()=>{e.destroy(),e.emit("aborted")}),t.once("close",()=>{t.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var rS=b((R4,tS)=>{"use strict";var{Transform:U3,PassThrough:G3}=require("stream"),sp=require("zlib"),W3=eS();tS.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof sp.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let n=!0,i=new U3({transform(a,u,c){n=!1,c(null,a)},flush(a){a()}}),s=new G3({autoDestroy:!1,destroy(a,u){t.destroy(),u(a)}}),o=r?sp.createBrotliDecompress():sp.createUnzip();return o.once("error",a=>{if(n&&!t.readable){s.end();return}s.destroy(a)}),W3(t,s),t.pipe(i).pipe(o).pipe(s),s}});var ap=b((F4,nS)=>{"use strict";var op=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,r){if(this.cache.set(e,r),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[n,i]of this.oldCache.entries())this.onEviction(n,i);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){let r=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,r),r}}set(e,r){return this.cache.has(e)?this.cache.set(e,r):this._set(e,r),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e))return this.oldCache.get(e)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache)yield e;for(let e of this.oldCache){let[r]=e;this.cache.has(r)||(yield e)}}get size(){let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}};nS.exports=op});var cp=b((T4,aS)=>{"use strict";var z3=require("events"),V3=require("tls"),Y3=require("http2"),K3=ap(),Je=Symbol("currentStreamsCount"),iS=Symbol("request"),bt=Symbol("cachedOriginSet"),Fi=Symbol("gracefullyClosing"),J3=["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"],X3=(t,e,r)=>{let n=0,i=t.length;for(;n<i;){let s=n+i>>>1;r(t[s],e)?n=s+1:i=s}return n},Z3=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,up=(t,e)=>{for(let r of t)r[bt].length<e[bt].length&&r[bt].every(n=>e[bt].includes(n))&&r[Je]+e[Je]<=e.remoteSettings.maxConcurrentStreams&&oS(r)},Q3=(t,e)=>{for(let r of t)e[bt].length<r[bt].length&&e[bt].every(n=>r[bt].includes(n))&&e[Je]+r[Je]<=r.remoteSettings.maxConcurrentStreams&&oS(e)},sS=({agent:t,isFree:e})=>{let r={};for(let n in t.sessions){let s=t.sessions[n].filter(o=>{let a=o[Yt.kCurrentStreamsCount]<o.remoteSettings.maxConcurrentStreams;return e?a:!a});s.length!==0&&(r[n]=s)}return r},oS=t=>{t[Fi]=!0,t[Je]===0&&t.close()},Yt=class extends z3{constructor({timeout:e=6e4,maxSessions:r=1/0,maxFreeSessions:n=10,maxCachedTlsSessions:i=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxFreeSessions=n,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new K3({maxSize:i})}static normalizeOrigin(e,r){return typeof e=="string"&&(e=new URL(e)),r&&e.hostname!==r&&(e.hostname=r),e.origin}normalizeOptions(e){let r="";if(e)for(let n of J3)e[n]&&(r+=`:${e[n]}`);return r}_tryToCreateNewSession(e,r){if(!(e in this.queue)||!(r in this.queue[e]))return;let n=this.queue[e][r];this._sessionsCount<this.maxSessions&&!n.completed&&(n.completed=!0,n())}getSession(e,r,n){return new Promise((i,s)=>{Array.isArray(n)?(n=[...n],i()):n=[{resolve:i,reject:s}];let o=this.normalizeOptions(r),a=Yt.normalizeOrigin(e,r&&r.servername);if(a===void 0){for(let{reject:l}of n)l(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(o in this.sessions){let l=this.sessions[o],f=-1,h=-1,p;for(let m of l){let _=m.remoteSettings.maxConcurrentStreams;if(_<f)break;if(m[bt].includes(a)){let g=m[Je];if(g>=_||m[Fi]||m.destroyed)continue;p||(f=_),g>h&&(p=m,h=g)}}if(p){if(n.length!==1){for(let{reject:m}of n){let _=new Error(`Expected the length of listeners to be 1, got ${n.length}.
|
|
15
15
|
Please report this to https://github.com/szmarczak/http2-wrapper/`);m(_)}return}n[0].resolve(p);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...n),this._tryToCreateNewSession(o,a);return}}else this.queue[o]={};let u=()=>{o in this.queue&&this.queue[o][a]===c&&(delete this.queue[o][a],Object.keys(this.queue[o]).length===0&&delete this.queue[o])},c=()=>{let l=`${a}:${o}`,f=!1;try{let h=Y3.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(l),...r});h[Je]=0,h[Fi]=!1;let p=()=>h[Je]<h.remoteSettings.maxConcurrentStreams,m=!0;h.socket.once("session",g=>{this.tlsSessionCache.set(l,g)}),h.once("error",g=>{for(let{reject:D}of n)D(g);this.tlsSessionCache.delete(l)}),h.setTimeout(this.timeout,()=>{h.destroy()}),h.once("close",()=>{if(f){m&&this._freeSessionsCount--,this._sessionsCount--;let g=this.sessions[o];g.splice(g.indexOf(h),1),g.length===0&&delete this.sessions[o]}else{let g=new Error("Session closed without receiving a SETTINGS frame");g.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:D}of n)D(g);u()}this._tryToCreateNewSession(o,a)});let _=()=>{if(!(!(o in this.queue)||!p())){for(let g of h[bt])if(g in this.queue[o]){let{listeners:D}=this.queue[o][g];for(;D.length!==0&&p();)D.shift().resolve(h);let C=this.queue[o];if(C[g].listeners.length===0&&(delete C[g],Object.keys(C).length===0)){delete this.queue[o];break}if(!p())break}}};h.on("origin",()=>{h[bt]=h.originSet,p()&&(_(),up(this.sessions[o],h))}),h.once("remoteSettings",()=>{if(h.ref(),h.unref(),this._sessionsCount++,c.destroyed){let g=new Error("Agent has been destroyed");for(let D of n)D.reject(g);h.destroy();return}h[bt]=h.originSet;{let g=this.sessions;if(o in g){let D=g[o];D.splice(X3(D,h,Z3),0,h)}else g[o]=[h]}this._freeSessionsCount+=1,f=!0,this.emit("session",h),_(),u(),h[Je]===0&&this._freeSessionsCount>this.maxFreeSessions&&h.close(),n.length!==0&&(this.getSession(a,r,n),n.length=0),h.on("remoteSettings",()=>{_(),up(this.sessions[o],h)})}),h[iS]=h.request,h.request=(g,D)=>{if(h[Fi])throw new Error("The session is gracefully closing. No new streams are allowed.");let C=h[iS](g,D);return h.ref(),++h[Je],h[Je]===h.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,C.once("close",()=>{if(m=p(),--h[Je],!h.destroyed&&!h.closed&&(Q3(this.sessions[o],h),p()&&!h.closed)){m||(this._freeSessionsCount++,m=!0);let q=h[Je]===0;q&&h.unref(),q&&(this._freeSessionsCount>this.maxFreeSessions||h[Fi])?h.close():(up(this.sessions[o],h),_())}}),C}}catch(h){for(let p of n)p.reject(h);u()}};c.listeners=n,c.completed=!1,c.destroyed=!1,this.queue[o][a]=c,this._tryToCreateNewSession(o,a)})}request(e,r,n,i){return new Promise((s,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{s(a.request(n,i))}catch(u){o(u)}}}])})}createConnection(e,r){return Yt.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let n=e.port||443,i=e.hostname||e.host;return typeof r.servername=="undefined"&&(r.servername=i),V3.connect(n,i,r)}closeFreeSessions(){for(let e of Object.values(this.sessions))for(let r of e)r[Je]===0&&r.close()}destroy(e){for(let r of Object.values(this.sessions))for(let n of r)n.destroy(e);for(let r of Object.values(this.queue))for(let n of Object.values(r))n.destroyed=!0;this.queue={}}get freeSessions(){return sS({agent:this,isFree:!0})}get busySessions(){return sS({agent:this,isFree:!1})}};Yt.kCurrentStreamsCount=Je;Yt.kGracefullyClosing=Fi;aS.exports={Agent:Yt,globalAgent:new Yt}});var fp=b((O4,uS)=>{"use strict";var{Readable:e8}=require("stream"),lp=class extends e8{constructor(e,r){super({highWaterMark:r,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=e,this.connection=e,this._dumped=!1}_destroy(e){this.req._request.destroy(e)}setTimeout(e,r){return this.req.setTimeout(e,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};uS.exports=lp});var hp=b((k4,cS)=>{"use strict";cS.exports=t=>{let e={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var fS=b((P4,lS)=>{"use strict";lS.exports=(t,e,r)=>{for(let n of r)t.on(n,(...i)=>e.emit(n,...i))}});var dS=b((B4,hS)=>{"use strict";hS.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var mS=b((L4,pS)=>{"use strict";var Ti=(t,e,r)=>{pS.exports[e]=class extends t{constructor(...i){super(typeof r=="string"?r:r(i)),this.name=`${super.name} [${e}]`,this.code=e}}};Ti(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],n=Array.isArray(r);return n&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${n?"one of":"of"} type ${r}. Received ${typeof t[2]}`});Ti(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);Ti(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);Ti(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);Ti(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);Ti(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`)});var yp=b((N4,wS)=>{"use strict";var t8=require("http2"),{Writable:r8}=require("stream"),{Agent:gS,globalAgent:n8}=cp(),i8=fp(),s8=hp(),o8=fS(),a8=dS(),{ERR_INVALID_ARG_TYPE:dp,ERR_INVALID_PROTOCOL:u8,ERR_HTTP_HEADERS_SENT:yS,ERR_INVALID_HTTP_TOKEN:c8,ERR_HTTP_INVALID_HEADER_VALUE:l8,ERR_INVALID_CHAR:f8}=mS(),{HTTP2_HEADER_STATUS:_S,HTTP2_HEADER_METHOD:ES,HTTP2_HEADER_PATH:bS,HTTP2_METHOD_CONNECT:h8}=t8.constants,ze=Symbol("headers"),pp=Symbol("origin"),mp=Symbol("session"),DS=Symbol("options"),Au=Symbol("flushedHeaders"),Ps=Symbol("jobs"),d8=/^[\^`\-\w!#$%&*+.|~]+$/,p8=/[^\t\u0020-\u007E\u0080-\u00FF]/,gp=class extends r8{constructor(e,r,n){super({autoDestroy:!1});let i=typeof e=="string"||e instanceof URL;if(i&&(e=s8(e instanceof URL?e:new URL(e))),typeof r=="function"||r===void 0?(n=r,r=i?e:{...e}):r={...e,...r},r.h2session)this[mp]=r.h2session;else if(r.agent===!1)this.agent=new gS({maxFreeSessions:0});else if(typeof r.agent=="undefined"||r.agent===null)typeof r.createConnection=="function"?(this.agent=new gS({maxFreeSessions:0}),this.agent.createConnection=r.createConnection):this.agent=n8;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new dp("options.agent",["Agent-like Object","undefined","false"],r.agent);if(r.protocol&&r.protocol!=="https:")throw new u8(r.protocol,"https:");let s=r.port||r.defaultPort||this.agent&&this.agent.defaultPort||443,o=r.hostname||r.host||"localhost";delete r.hostname,delete r.host,delete r.port;let{timeout:a}=r;if(r.timeout=void 0,this[ze]=Object.create(null),this[Ps]=[],this.socket=null,this.connection=null,this.method=r.method||"GET",this.path=r.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,r.headers)for(let[u,c]of Object.entries(r.headers))this.setHeader(u,c);r.auth&&!("authorization"in this[ze])&&(this[ze].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[DS]=r,s===443?(this[pp]=`https://${o}`,":authority"in this[ze]||(this[ze][":authority"]=o)):(this[pp]=`https://${o}:${s}`,":authority"in this[ze]||(this[ze][":authority"]=`${o}:${s}`)),a&&this.setTimeout(a),n&&this.once("response",n),this[Au]=!1}get method(){return this[ze][ES]}set method(e){e&&(this[ze][ES]=e.toUpperCase())}get path(){return this[ze][bS]}set path(e){e&&(this[ze][bS]=e)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,n){if(this._mustNotHaveABody){n(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let i=()=>this._request.write(e,r,n);this._request?i():this[Ps].push(i)}_final(e){if(this.destroyed)return;this.flushHeaders();let r=()=>{if(this._mustNotHaveABody){e();return}this._request.end(e)};this._request?r():this[Ps].push(r)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(e,r){this.res&&this.res._dump(),this._request&&this._request.destroy(),r(e)}async flushHeaders(){if(this[Au]||this.destroyed)return;this[Au]=!0;let e=this.method===h8,r=n=>{if(this._request=n,this.destroyed){n.destroy();return}e||o8(n,this,["timeout","continue","close","error"]);let i=o=>(...a)=>{!this.writable&&!this.destroyed?o(...a):this.once("finish",()=>{o(...a)})};n.once("response",i((o,a,u)=>{let c=new i8(this.socket,n.readableHighWaterMark);this.res=c,c.req=this,c.statusCode=o[_S],c.headers=o,c.rawHeaders=u,c.once("end",()=>{this.aborted?(c.aborted=!0,c.emit("aborted")):(c.complete=!0,c.socket=null,c.connection=null)}),e?(c.upgrade=!0,this.emit("connect",c,n,Buffer.alloc(0))?this.emit("close"):n.destroy()):(n.on("data",l=>{!c._dumped&&!c.push(l)&&n.pause()}),n.once("end",()=>{c.push(null)}),this.emit("response",c)||c._dump())})),n.once("headers",i(o=>this.emit("information",{statusCode:o[_S]}))),n.once("trailers",i((o,a,u)=>{let{res:c}=this;c.trailers=o,c.rawTrailers=u}));let{socket:s}=n.session;this.socket=s,this.connection=s;for(let o of this[Ps])o();this.emit("socket",this.socket)};if(this[mp])try{r(this[mp].request(this[ze]))}catch(n){this.emit("error",n)}else{this.reusedSocket=!0;try{r(await this.agent.request(this[pp],this[DS],this[ze]))}catch(n){this.emit("error",n)}}}getHeader(e){if(typeof e!="string")throw new dp("name","string",e);return this[ze][e.toLowerCase()]}get headersSent(){return this[Au]}removeHeader(e){if(typeof e!="string")throw new dp("name","string",e);if(this.headersSent)throw new yS("remove");delete this[ze][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new yS("set");if(typeof e!="string"||!d8.test(e)&&!a8(e))throw new c8("Header name",e);if(typeof r=="undefined")throw new l8(r,e);if(p8.test(r))throw new f8("header content",e);this[ze][e.toLowerCase()]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let n=()=>this._request.setTimeout(e,r);return this._request?n():this[Ps].push(n),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};wS.exports=gp});var xS=b((M4,AS)=>{"use strict";var m8=require("tls");AS.exports=(t={},e=m8.connect)=>new Promise((r,n)=>{let i=!1,s,o=async()=>{await u,s.off("timeout",a),s.off("error",n),t.resolveSocket?(r({alpnProtocol:s.alpnProtocol,socket:s,timeout:i}),i&&(await Promise.resolve(),s.emit("timeout"))):(s.destroy(),r({alpnProtocol:s.alpnProtocol,timeout:i}))},a=async()=>{i=!0,o()},u=(async()=>{try{s=await e(t,o),s.on("error",n),s.once("timeout",a)}catch(c){n(c)}})()})});var CS=b((q4,SS)=>{"use strict";var g8=require("net");SS.exports=t=>{let e=t.host,r=t.headers&&t.headers.host;return r&&(r.startsWith("[")?r.indexOf("]")===-1?e=r:e=r.slice(1,-1):e=r.split(":",1)[0]),g8.isIP(e)?"":e}});var FS=b((H4,Ep)=>{"use strict";var vS=require("http"),_p=require("https"),y8=xS(),_8=ap(),E8=yp(),b8=CS(),D8=hp(),xu=new _8({maxSize:100}),Bs=new Map,RS=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let n=()=>{t.emit("free",e,r)};e.on("free",n);let i=()=>{t.removeSocket(e,r)};e.on("close",i);let s=()=>{t.removeSocket(e,r),e.off("close",i),e.off("free",n),e.off("agentRemove",s)};e.on("agentRemove",s),t.emit("free",e,r)},w8=async t=>{let e=`${t.host}:${t.port}:${t.ALPNProtocols.sort()}`;if(!xu.has(e)){if(Bs.has(e))return(await Bs.get(e)).alpnProtocol;let{path:r,agent:n}=t;t.path=t.socketPath;let i=y8(t);Bs.set(e,i);try{let{socket:s,alpnProtocol:o}=await i;if(xu.set(e,o),t.path=r,o==="h2")s.destroy();else{let{globalAgent:a}=_p,u=_p.Agent.prototype.createConnection;n?n.createConnection===u?RS(n,s,t):s.destroy():a.createConnection===u?RS(a,s,t):s.destroy()}return Bs.delete(e),o}catch(s){throw Bs.delete(e),s}}return xu.get(e)};Ep.exports=async(t,e,r)=>{if((typeof t=="string"||t instanceof URL)&&(t=D8(new URL(t))),typeof e=="function"&&(r=e,e=void 0),e={ALPNProtocols:["h2","http/1.1"],...t,...e,resolveSocket:!0},!Array.isArray(e.ALPNProtocols)||e.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");e.protocol=e.protocol||"https:";let n=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||b8(e),e.port=e.port||(n?443:80),e._defaultAgent=n?_p.globalAgent:vS.globalAgent;let i=e.agent;if(i){if(i.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");e.agent=i[n?"https":"http"]}return n&&await w8(e)==="h2"?(i&&(e.agent=i.http2),new E8(e,r)):vS.request(e,r)};Ep.exports.protocolCache=xu});var OS=b((j4,TS)=>{"use strict";var A8=require("http2"),x8=cp(),bp=yp(),S8=fp(),C8=FS(),v8=(t,e,r)=>new bp(t,e,r),R8=(t,e,r)=>{let n=new bp(t,e,r);return n.end(),n};TS.exports={...A8,ClientRequest:bp,IncomingMessage:S8,...x8,request:v8,get:R8,auto:C8}});var wp=b(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});var kS=Er();Dp.default=t=>kS.default.nodeStream(t)&&kS.default.function_(t.getBoundary)});var LS=b(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});var BS=require("fs"),IS=require("util"),PS=Er(),F8=wp(),T8=IS.promisify(BS.stat);Ap.default=async(t,e)=>{if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(PS.default.string(t))return Buffer.byteLength(t);if(PS.default.buffer(t))return t.length;if(F8.default(t))return IS.promisify(t.getLength.bind(t))();if(t instanceof BS.ReadStream){let{size:r}=await T8(t.path);return r===0?void 0:r}}});var Sp=b(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});function O8(t,e,r){let n={};for(let i of r)n[i]=(...s)=>{e.emit(i,...s)},t.on(i,n[i]);return()=>{for(let i of r)t.off(i,n[i])}}xp.default=O8});var NS=b(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});Cp.default=()=>{let t=[];return{once(e,r,n){e.once(r,n),t.push({origin:e,event:r,fn:n})},unhandleAll(){for(let e of t){let{origin:r,event:n,fn:i}=e;r.removeListener(n,i)}t.length=0}}}});var qS=b(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.TimeoutError=void 0;var k8=require("net"),P8=NS(),MS=Symbol("reentry"),B8=()=>{},Su=class extends Error{constructor(e,r){super(`Timeout awaiting '${r}' for ${e}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};Is.TimeoutError=Su;Is.default=(t,e,r)=>{if(MS in t)return B8;t[MS]=!0;let n=[],{once:i,unhandleAll:s}=P8.default(),o=(f,h,p)=>{var m;let _=setTimeout(h,f,f,p);(m=_.unref)===null||m===void 0||m.call(_);let g=()=>{clearTimeout(_)};return n.push(g),g},{host:a,hostname:u}=r,c=(f,h)=>{t.destroy(new Su(f,h))},l=()=>{for(let f of n)f();s()};if(t.once("error",f=>{if(l(),t.listenerCount("error")===0)throw f}),t.once("close",l),i(t,"response",f=>{i(f,"end",l)}),typeof e.request!="undefined"&&o(e.request,c,"request"),typeof e.socket!="undefined"){let f=()=>{c(e.socket,"socket")};t.setTimeout(e.socket,f),n.push(()=>{t.removeListener("timeout",f)})}return i(t,"socket",f=>{var h;let{socketPath:p}=t;if(f.connecting){let m=!!(p!=null?p:k8.isIP((h=u!=null?u:a)!==null&&h!==void 0?h:"")!==0);if(typeof e.lookup!="undefined"&&!m&&typeof f.address().address=="undefined"){let _=o(e.lookup,c,"lookup");i(f,"lookup",_)}if(typeof e.connect!="undefined"){let _=()=>o(e.connect,c,"connect");m?i(f,"connect",_()):i(f,"lookup",g=>{g===null&&i(f,"connect",_())})}typeof e.secureConnect!="undefined"&&r.protocol==="https:"&&i(f,"connect",()=>{let _=o(e.secureConnect,c,"secureConnect");i(f,"secureConnect",_)})}if(typeof e.send!="undefined"){let m=()=>o(e.send,c,"send");f.connecting?i(f,"connect",()=>{i(t,"upload-complete",m())}):i(t,"upload-complete",m())}}),typeof e.response!="undefined"&&i(t,"upload-complete",()=>{let f=o(e.response,c,"response");i(t,"response",f)}),l}});var jS=b(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});var HS=Er();vp.default=t=>{t=t;let e={protocol:t.protocol,hostname:HS.default.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return HS.default.string(t.port)&&t.port.length>0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var $S=b(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});var I8=require("url"),L8=["protocol","host","hostname","port","pathname","search"];Rp.default=(t,e)=>{var r,n;if(e.path){if(e.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(e.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(e.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(e.search&&e.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!t){if(!e.protocol)throw new TypeError("No URL protocol specified");t=`${e.protocol}//${(n=(r=e.hostname)!==null&&r!==void 0?r:e.host)!==null&&n!==void 0?n:""}`}let i=new I8.URL(t);if(e.path){let s=e.path.indexOf("?");s===-1?e.pathname=e.path:(e.pathname=e.path.slice(0,s),e.search=e.path.slice(s+1)),delete e.path}for(let s of L8)e[s]&&(i[s]=e[s].toString());return i}});var US=b(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});var Fp=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(e,r){typeof e=="object"?this.weakMap.set(e,r):this.map.set(e,r)}get(e){return typeof e=="object"?this.weakMap.get(e):this.map.get(e)}has(e){return typeof e=="object"?this.weakMap.has(e):this.map.has(e)}};Tp.default=Fp});var kp=b(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});var N8=async t=>{let e=[],r=0;for await(let n of t)e.push(n),r+=Buffer.byteLength(n);return Buffer.isBuffer(e[0])?Buffer.concat(e,r):Buffer.from(e.join(""))};Op.default=N8});var WS=b(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.dnsLookupIpVersionToFamily=Sn.isDnsLookupIpVersion=void 0;var GS={auto:0,ipv4:4,ipv6:6};Sn.isDnsLookupIpVersion=t=>t in GS;Sn.dnsLookupIpVersionToFamily=t=>{if(Sn.isDnsLookupIpVersion(t))return GS[t];throw new Error("Invalid DNS lookup IP version")}});var Pp=b(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.isResponseOk=void 0;Cu.isResponseOk=t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304}});var VS=b(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});var zS=new Set;Bp.default=t=>{zS.has(t)||(zS.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}});var YS=b(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});var me=Er(),M8=(t,e)=>{if(me.default.null_(t.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");me.assert.any([me.default.string,me.default.undefined],t.encoding),me.assert.any([me.default.boolean,me.default.undefined],t.resolveBodyOnly),me.assert.any([me.default.boolean,me.default.undefined],t.methodRewriting),me.assert.any([me.default.boolean,me.default.undefined],t.isStream),me.assert.any([me.default.string,me.default.undefined],t.responseType),t.responseType===void 0&&(t.responseType="text");let{retry:r}=t;if(e?t.retry={...e.retry}:t.retry={calculateDelay:n=>n.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},me.default.object(r)?(t.retry={...t.retry,...r},t.retry.methods=[...new Set(t.retry.methods.map(n=>n.toUpperCase()))],t.retry.statusCodes=[...new Set(t.retry.statusCodes)],t.retry.errorCodes=[...new Set(t.retry.errorCodes)]):me.default.number(r)&&(t.retry.limit=r),me.default.undefined(t.retry.maxRetryAfter)&&(t.retry.maxRetryAfter=Math.min(...[t.timeout.request,t.timeout.connect].filter(me.default.number))),me.default.object(t.pagination)){e&&(t.pagination={...e.pagination,...t.pagination});let{pagination:n}=t;if(!me.default.function_(n.transform))throw new Error("`options.pagination.transform` must be implemented");if(!me.default.function_(n.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!me.default.function_(n.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!me.default.function_(n.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return t.responseType==="json"&&t.headers.accept===void 0&&(t.headers.accept="application/json"),t};Ip.default=M8});var KS=b(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.retryAfterStatusCodes=void 0;Ls.retryAfterStatusCodes=new Set([413,429,503]);var q8=({attemptCount:t,retryOptions:e,error:r,retryAfter:n})=>{if(t>e.limit)return 0;let i=e.methods.includes(r.options.method),s=e.errorCodes.includes(r.code),o=r.response&&e.statusCodes.includes(r.response.statusCode);if(!i||!s&&!o)return 0;if(r.response){if(n)return e.maxRetryAfter===void 0||n>e.maxRetryAfter?0:n;if(r.response.statusCode===413)return 0}let a=Math.random()*100;return 2**(t-1)*1e3+a};Ls.default=q8});var qs=b(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.UnsupportedProtocolError=se.ReadError=se.TimeoutError=se.UploadError=se.CacheError=se.HTTPError=se.MaxRedirectsError=se.RequestError=se.setNonEnumerableProperties=se.knownHookEvents=se.withoutBody=se.kIsNormalizedAlready=void 0;var JS=require("util"),XS=require("stream"),H8=require("fs"),Vr=require("url"),ZS=require("http"),Lp=require("http"),j8=require("https"),$8=fx(),U8=_x(),QS=Zx(),G8=rS(),W8=OS(),z8=Du(),S=Er(),V8=LS(),eC=wp(),Y8=Sp(),tC=qS(),K8=jS(),rC=$S(),J8=US(),X8=kp(),nC=WS(),Z8=Pp(),Yr=VS(),Q8=YS(),eM=KS(),Np,Be=Symbol("request"),Fu=Symbol("response"),Oi=Symbol("responseSize"),ki=Symbol("downloadedSize"),Pi=Symbol("bodySize"),Bi=Symbol("uploadedSize"),vu=Symbol("serverResponsesPiped"),iC=Symbol("unproxyEvents"),sC=Symbol("isFromCache"),Mp=Symbol("cancelTimeouts"),oC=Symbol("startedReading"),Ii=Symbol("stopReading"),Ru=Symbol("triggerRead"),Kr=Symbol("body"),Ns=Symbol("jobs"),aC=Symbol("originalResponse"),uC=Symbol("retryTimeout");se.kIsNormalizedAlready=Symbol("isNormalizedAlready");var tM=S.default.string(process.versions.brotli);se.withoutBody=new Set(["GET","HEAD"]);se.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function rM(t){for(let e in t){let r=t[e];if(!S.default.string(r)&&!S.default.number(r)&&!S.default.boolean(r)&&!S.default.null_(r)&&!S.default.undefined(r))throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}function nM(t){return S.default.object(t)&&!("statusCode"in t)}var qp=new J8.default,iM=async t=>new Promise((e,r)=>{let n=i=>{r(i)};t.pending||e(),t.once("error",n),t.once("ready",()=>{t.off("error",n),e()})}),sM=new Set([300,301,302,303,304,307,308]),oM=["context","body","json","form"];se.setNonEnumerableProperties=(t,e)=>{let r={};for(let n of t)if(n)for(let i of oM)i in n&&(r[i]={writable:!0,configurable:!0,enumerable:!1,value:n[i]});Object.defineProperties(e,r)};var xe=class extends Error{constructor(e,r,n){var i,s;if(super(e),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(i=r.code)!==null&&i!==void 0?i:"ERR_GOT_REQUEST_ERROR",n instanceof Lu?(Object.defineProperty(this,"request",{enumerable:!1,value:n}),Object.defineProperty(this,"response",{enumerable:!1,value:n[Fu]}),Object.defineProperty(this,"options",{enumerable:!1,value:n.options})):Object.defineProperty(this,"options",{enumerable:!1,value:n}),this.timings=(s=this.request)===null||s===void 0?void 0:s.timings,S.default.string(r.stack)&&S.default.string(this.stack)){let o=this.stack.indexOf(this.message)+this.message.length,a=this.stack.slice(o).split(`
|
|
@@ -64,7 +64,7 @@ Please report this to https://github.com/szmarczak/http2-wrapper/`);m(_)}return}
|
|
|
64
64
|
`,`1. Your spelling of example ${Dr.default.red(`"${e}"`)} might be incorrect.
|
|
65
65
|
`,"2. You might not be connected to the internet or you are behind a proxy."),process.exit(1))}let o=Li.default.resolve(t);await em(Li.default.dirname(o))||(pt("The application path is not writable, please check folder permissions and try again."),pt("It is likely you do not have write permissions for this folder."),process.exit(1));let a=Li.default.basename(o);try{await(0,Ni.mkdir)(o,{recursive:!0})}catch(g){pt("Unable to create project directory"),pt(g),process.exit(1)}let{isEmpty:u,conflicts:c}=ls(o);u||(pt(`${Dr.default.dim(o)} has ${c.length} conflicting ${c.length===1?"file":"files"} - please try a different location`),process.exit(1));let l=process.cwd();process.chdir(o);let f=kf("Downloading files...");try{!r&&i?(qt(`
|
|
66
66
|
Downloading files from repo ${Dr.default.cyan(e)}. This might take a moment.`),qt(),f.start(),await(0,tm.default)(()=>Zp(o,i),{retries:3})):(qt(`
|
|
67
|
-
Downloading files${r?"":` for example ${Dr.default.cyan(e)}`}. This might take a moment.`),qt(),f.start(),await(0,tm.default)(()=>Qp(o,e),{retries:3}))}catch(g){throw new Gu(NM(g)?g.message:String(g))}finally{f.stop()}let h=Li.default.join(o,"package.json"),p=(0,Ni.existsSync)(h),m=[];if(p){let g;try{g=(0,Ni.readJsonSync)(h)}catch{}g&&m.push(...Object.keys(g.scripts||{}))}let _=t;return Li.default.join(l,a)===t&&(_=a),{cdPath:_,hasPackageJson:p,availableScripts:m,repoInfo:i}}function nm(t,e={to:"camel"}){switch(e.to){case"camel":return t.replace(/(?:[-_][a-z])/g,r=>r.toUpperCase().replace("-","").replace("_",""));default:throw new Error("Not implemented")}}var gv=require("proxy-agent");var $s={name:"@turbo/gen",version:"1.10.17-canary.5",description:"Extend a Turborepo",homepage:"https://turbo.build/repo",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/turbo-gen"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:"dist/cli.js",types:"dist/types.d.ts",scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit"},dependencies:{"@turbo/workspaces":"workspace:*",chalk:"2.4.2",commander:"^10.0.0","fs-extra":"^10.1.0",inquirer:"^8.2.4",minimatch:"^9.0.0","node-plop":"^0.26.3","proxy-agent":"^6.2.2","ts-node":"^10.9.1","update-check":"^1.5.4","validate-npm-package-name":"^5.0.0"},devDependencies:{"@turbo/eslint-config":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/utils":"workspace:*","@types/fs-extra":"^9.0.13","@types/inquirer":"^8.2.5","@types/jest":"^27.4.0","@types/node":"^18.17.2","@types/validate-npm-package-name":"^4.0.0",jest:"^27.4.3","ts-jest":"^27.1.1",tsup:"^6.7.0",typescript:"^4.5.5"},files:["dist"],publishConfig:{access:"public"}};var jC=X(require("chalk")),$C=X(require("update-check"));var qM=(0,$C.default)($s).catch(()=>null);async function im(){try{let t=await qM;t!=null&&t.latest&&(L.log(),L.log(jC.default.yellow.bold(`A new version of \`${$s.name}\` is available!`)),L.log()),process.exit()}catch{}}var UC=require("@turbo/workspaces");async function Wu({root:t}){let e=t||process.cwd(),r=Wi(e);if(!r)L.error("Unable to infer repository root - override with --root");else try{return(0,UC.getWorkspaceDetails)({root:r})}catch{L.error(`Unable to determine workspace details. Make sure "${e}" is the root, or add "packageManager" to "package.json" or ensure a lockfile is present.`)}process.exit(1)}var wr=X(require("path")),Vu=X(require("fs-extra")),zu=X(require("node-plop")),GC=require("ts-node"),WC=require("inquirer");var Ie=class extends Error{constructor(r,n){var i;super(r);this.name="GenerateError",this.type=(i=n==null?void 0:n.type)!=null?i:"unknown",Error.captureStackTrace(this,Ie)}};var zC=["ts","js","cjs"],HM=wr.default.join("turbo","generators"),VC=zC.map(t=>wr.default.join(HM,`config.${t}`)),jM=[...VC,...zC.map(t=>wr.default.join(`plopfile.${t}`))];function YC({project:t,configPath:e}){(0,GC.register)({transpileOnly:!0,cwd:t.paths.root,compilerOptions:{module:"nodenext",moduleResolution:"nodenext"}});let r=UM({project:t}),n;if(e){if(!Vu.default.existsSync(e))throw new Ie(`No config at "${e}"`,{type:"plop_no_config"});try{n=(0,zu.default)(e,{destBasePath:e,force:!1})}catch(i){L.error(i)}}else{for(let i of jM){let s=wr.default.join(t.paths.root,i);if(Vu.default.existsSync(s))try{n=(0,zu.default)(s,{destBasePath:t.paths.root,force:!1});break}catch(o){L.error(o)}}!n&&r.length>0&&(n=(0,zu.default)(r[0].config,{destBasePath:r[0].root,force:!1}),r.shift())}return n&&r.forEach(i=>{try{n==null||n.load(i.config,{destBasePath:i.root,force:!1})}catch(s){L.error(s)}}),n}function sm({project:t,configPath:e}){let r=YC({project:t,configPath:e});if(!r)return[];let i=r.getGeneratorList().map(a=>r.getGenerator(a.name)),s={};i.forEach(a=>{let u=a,c=t.workspaceData.workspaces.find(l=>{if(u.basePath===t.paths.root)return!1;let f=u.basePath.split(wr.default.sep);return f.pop(),f.pop(),wr.default.join("/",...f)===l.paths.root});c?(c.name in s||(s[c.name]=[]),s[c.name].push(u)):("root"in s||(s.root=[]),s.root.push(u))});let o=[];return Object.keys(s).forEach(a=>{o.push(new WC.Separator(a)),o.push(...s[a])}),o}function $M({project:t,generator:e}){let r={root:t.paths.root,workspace:e.basePath?Gi({cwd:e.basePath,target:"package.json"}):void 0},n={};try{n=If(e.basePath)}catch{}return{turbo:{paths:r,configs:n}}}function UM({project:t}){let e=[];return t.workspaceData.workspaces.forEach(r=>{for(let n of VC)Vu.default.existsSync(wr.default.join(r.paths.root,n))&&e.push({config:wr.default.join(r.paths.root,n),root:r.paths.root})}),e}async function KC({project:t,generator:e,bypassArgs:r,configPath:n}){let i=YC({project:t,configPath:n});if(!i)throw new Ie("Unable to load generators",{type:"plop_unable_to_load_config"});let s=i.getGenerator(e);if(!s)throw new Ie(`Generator ${e} not found`,{type:"plop_generator_not_found"});let o=await s.runPrompts(r),a=await s.runActions({...o,...$M({project:t,generator:s})},{onComment:u=>{L.dimmed(u)}});if(a.failures.length>0)throw a.failures.forEach(u=>{u instanceof Error?L.error(`Error - ${u.message}`):L.error(`Error - ${u.error}. Unable to ${u.type} to "${u.path}"`)}),new Ie(`Failed to run "${e}" generator`,{type:"plop_error_running_generator"});a.changes.length>0&&(L.info("Changes made:"),a.changes.forEach(u=>{u.path&&L.item(`${u.path} (${u.type})`)}))}var vn=require("inquirer");async function JC({generators:t,generator:e}){if(e){if(t.find(n=>!(n instanceof vn.Separator)&&n.name===e))return{selectedGenerator:e};L.warn(`Generator "${e}" not found`),L.log()}return await(0,vn.prompt)({type:"list",name:"selectedGenerator",message:"Select generator to run",choices:t.map(n=>n instanceof vn.Separator?n:{name:n.description?` ${n.name}: ${n.description}`:` ${n.name}`,value:n.name})})}async function XC(){return(0,vn.prompt)({type:"list",name:"answer",message:"Should the generator config be created with TS or JS?",default:"ts",choices:[{name:"JavaScript",value:"js"},{name:"TypeScript",value:"ts"}]})}async function ZC({message:t}){return(0,vn.prompt)({type:"confirm",name:"answer",message:t})}var om=X(require("path")),Yu=require("fs-extra");async function QC({project:t,template:e}){let r=om.default.join(t.paths.root,"turbo","generators"),n=`simple-${e}`;if(await(0,Yu.pathExists)(r))throw new Ie(`Generator config directory already exists at ${r}`,{type:"config_directory_already_exists"});await(0,Yu.copy)(om.default.join(__dirname,"templates",n),r,{recursive:!0})}async function am({generator:t,project:e,opts:r}){let n=!1,i=sm({project:e,configPath:r.config});if(!i.length){L.error("No generators found."),L.log();let{answer:o}=await ZC({message:`Would you like to add a config with a sample custom generator to ${e.name}?`});if(o){n=!0;let{answer:a}=await XC();try{await QC({project:e,template:a})}catch(u){throw u instanceof Ie||L.error("Failed to create generator config"),u}if(L.log(),L.info("Generator config successfully created!"),L.info("Loading generator config..."),L.log(),i=sm({project:e,configPath:r.config}),!i.length){L.error("Error loading generator");return}}else{L.log(),L.dimmed("Learn more about custom Turborepo generators - https://turbo.build/repo/docs/core-concepts/monorepos/code-generation#custom-generators");return}}let{selectedGenerator:s}=await JC({generators:i,generator:t});try{await KC({project:e,generator:s,bypassArgs:r.args,configPath:r.config})}catch(o){if(o instanceof Ie)throw o;let a="Failed to run generator";throw o instanceof Error&&(a=o.message),new Ie(a,{type:"plop_error_running_generator"})}finally{n&&(L.log(),L.info("Congrats! You just ran your first Turborepo generator"),L.dimmed("Learn more about custom Turborepo generators - https://turbo.build/repo/docs/core-concepts/monorepos/code-generation#custom-generators"))}L.log(),L.bold(L.turboGradient(">>> Success!"))}var fm=X(require("path")),Gs=require("fs-extra"),lv=X(require("chalk"));var Us=X(require("path")),nv=require("fs-extra"),xt=require("inquirer"),iv=require("minimatch"),lm=X(require("validate-npm-package-name"));var um=X(require("path"));var ev=X(require("path"));function tv({project:t}){let r=t.workspaceData.workspaces.map(i=>ev.default.relative(t.paths.root,i.paths.root)),n=new Set;return t.workspaceData.globs.forEach(i=>{if(!r.includes(i)){if(!i.startsWith("!")){let o=i.split("/")[0];n.add(o)}}}),Array.from(n)}function cm({project:t,workspace:e}){return um.default.relative(t.paths.root,e.paths.root).split(um.default.sep)[0]}function Ku({project:t}){let e=tv({project:t}),r=e.includes("apps"),n=e.includes("packages"),i={},s=[];return t.workspaceData.workspaces.forEach(o=>{let a=cm({project:t,workspace:o});a!=="apps"&&s.push(o),a in i||(i[a]=[]),i[a].push(o)}),{hasRootApps:r,hasRootPackages:n,workspacesByGroup:i,nonAppWorkspaces:s}}var rv=require("inquirer");function Ju({project:t,type:e,showAllDependencies:r}){let n=Ku({project:t}),i=[],s=t.workspaceData.workspaces;r||(e==="app"&&n.hasRootApps?s=n.workspacesByGroup.apps:e==="package"&&n.nonAppWorkspaces.length>0&&(s=n.nonAppWorkspaces));let o;return s.forEach(a=>{let u=cm({project:t,workspace:a});u!==o&&i.push(new rv.Separator(u)),o=u,i.push(a)}),i}async function sv({override:t,suggestion:e,workspaceType:r}){let{validForNewPackages:n}=(0,lm.default)(t||"");return t&&n?{answer:t}:(0,xt.prompt)({type:"input",name:"answer",default:e,validate:i=>{let{validForNewPackages:s}=(0,lm.default)(i);return s||`Invalid ${r} name`},message:`What is the name of the ${r}?`})}async function ov({override:t,message:e}){return t?{answer:t}:(0,xt.prompt)({type:"list",name:"answer",message:e!=null?e:"What type of workspace should be added?",choices:[{name:"app",value:"app"},{name:"package",value:"package"}]})}async function av({workspaceType:t,workspaceName:e,destination:r,project:n}){let i=e.includes("/")?e.split("/")[1]:e;if(r){let{valid:u,root:c}=ua(r);if(u)return{absolute:c,relative:Us.default.relative(n.paths.root,c)}}let s,o=Ku({project:n});t==="app"&&o.hasRootApps?s=`${n.paths.root}/apps/${i}`:t==="package"&&o.hasRootPackages&&(s=`${n.paths.root}/packages/${i}`);let{answer:a}=await(0,xt.prompt)({type:"input",name:"answer",message:`Where should "${e}" be added?`,default:s?Us.default.relative(n.paths.root,s):void 0,validate:u=>{let c=Us.default.join(n.paths.root,u),{valid:l,error:f}=ua(c),h=n.workspaceData.globs.some(p=>(0,iv.minimatch)(u,p));return l&&h?!0:h?f:`${u} is not a valid workspace location`}});return{absolute:Us.default.join(n.paths.root,a),relative:a}}async function uv({override:t,workspaces:e,workspaceName:r}){if(t){let i=e.find(s=>s instanceof xt.Separator?!1:s.name===t);if(i)return{answer:i};L.warn(`Workspace "${t}" not found`),L.log()}return await(0,xt.prompt)({type:"list",name:"answer",loop:!1,pageSize:25,message:`Which workspace should "${r}" start from?`,choices:e.map(i=>i instanceof xt.Separator?i:{name:` ${i.name}`,value:i})})}async function cv({workspaceName:t,project:e,workspaceSource:r,showAllDependencies:n}){let i={dependencies:{},devDependencies:{},peerDependencies:{},optionalDependencies:{}},{answer:s}=await WM({message:`Add workspace dependencies to "${t}"?`});if(!s)return i;let{answer:o}=await(0,xt.prompt)({type:"checkbox",name:"answer",message:`Select all dependencies types to modify for "${t}"`,loop:!1,choices:[{name:"dependencies",value:"dependencies"},{name:"devDependencies",value:"devDependencies"},{name:"peerDependencies",value:"peerDependencies"},{name:"optionalDependencies",value:"optionalDependencies"}]}),a=Ju({project:e,type:"package",showAllDependencies:n}),u=r?(0,nv.readJsonSync)(r.paths.packageJson):void 0;for(let c of o){let{answer:l}=await(0,xt.prompt)({type:"checkbox",name:"answer",default:u&&Object.keys(u[c]||{}),pageSize:15,message:`Which packages should be added as ${c} to "${t}?`,loop:!1,choices:a.map(h=>h instanceof xt.Separator?h:{name:` ${h.name}`,value:h.name})}),f=(u==null?void 0:u[c])||{};if(Object.keys(f).length){let h=new Set(Object.keys(f));l.forEach(p=>{h.has(p)||(f[p]=e.packageManager==="pnpm"?"workspace:*":"*")}),i[c]=f}else i[c]=l.reduce((h,p)=>({...h,[p]:e.packageManager==="pnpm"?"workspace:*":"*"}),{})}return i}async function WM({message:t}){return(0,xt.prompt)({type:"confirm",name:"answer",message:t})}async function Xu({project:t,opts:e}){var u;let r,n=e.method==="copy"&&e.copy.type==="external"?((u=e.examplePath)==null?void 0:u.split("/").pop())||e.copy.source.split("/").pop():void 0,{answer:i}=await ov({override:e.type,message:e.method==="copy"&&e.copy.source==="external"&&n?`What type of workspace should "${n}" be created as?`:void 0}),{answer:s}=await sv({override:e.name,workspaceType:i,suggestion:n});if(e.method==="copy"&&e.copy.type==="internal"){let{answer:c}=await uv({override:e.copy.source,workspaces:Ju({project:t,type:i}),workspaceName:s});r=c}let o=await av({workspaceType:i,workspaceName:s,project:t,destination:e.destination}),a=await cv({workspaceName:s,project:t,workspaceSource:r,showAllDependencies:e.showAllDependencies});return{type:i,name:s,location:o,source:r,dependencies:a}}async function hm({project:t,opts:e}){let{name:r,location:n,dependencies:i}=await Xu({project:t,opts:e}),s={name:r,version:"0.0.0",private:!0,scripts:{dev:"echo 'Add dev script here'",build:"echo 'Add build script here'",test:"echo 'Add test script here'",lint:"echo 'Add lint script here'"}};Object.keys(i).forEach(o=>{let a=i[o];a&&Object.keys(a).length>0&&(s[o]=a)}),(0,Gs.mkdirSync)(n.absolute,{recursive:!0}),(0,Gs.writeFileSync)(fm.default.join(n.absolute,"package.json"),JSON.stringify(s,null,2)),(0,Gs.writeFileSync)(fm.default.join(n.absolute,"README.md"),`# \`${r}\``),L.log(),L.log(`${lv.default.bold(L.turboGradient(">>> Success!"))} Created ${r} at "${n.relative}"`)}var dm=X(require("path")),St=require("fs-extra"),fv=X(require("chalk"));async function pm({project:t,opts:e}){let{name:r,type:n,location:i,source:s,dependencies:o}=await Xu({project:t,opts:e}),a=dm.default.join(i.absolute,"package.json");if(e.copy.type==="external"){L.log(),L.warn("Some manual modifications may be required."),L.dimmed(`This ${n} may require local dependencies or a different package manager than what is available in this repo`),await rm({appPath:i.absolute,example:e.copy.source,examplePath:e.examplePath});try{if((0,St.existsSync)(a)){if((await(0,St.readJSON)(a)).workspaces)throw new Error("New workspace root detected - unexpected 'workspaces' field in package.json")}else throw new Error("New workspace is missing a package.json file");if((0,St.existsSync)(dm.default.join(i.absolute,"pnpm-workspace.yaml")))throw new Error("New workspace root detected - unexpected pnpm-workspace.yaml")}catch(c){let l="UNKNOWN_ERROR";c instanceof Error&&(l=c.message),L.error(l),await(0,St.rm)(i.absolute,{recursive:!0,force:!0});return}}else if(s){let c=async f=>Promise.resolve(!f.includes("node_modules")),l=L.turboLoader(`Creating "${r}" from "${s.name}"...`);l.start(),await(0,St.copy)(s.paths.root,i.absolute,{filter:c}),l.stop()}let u=await(0,St.readJSON)(a);u.name=r,Object.keys(o).forEach(c=>{let l=o[c];l&&Object.keys(l).length>0&&(u[c]=l)}),await(0,St.writeJSON)(a,u,{spaces:2}),L.log(),L.log(`${fv.default.bold(L.turboGradient(">>> Success!"))} Created ${r} at "${i.relative}"`)}function VM(t){let{copy:e,...r}=t,n=e===!0||typeof e=="string"?"copy":"empty",i=typeof e=="string"?e:"",s=typeof e=="string"&&e.startsWith("https://")?"external":"internal";return{method:n,copy:{type:s,source:i},...r}}async function Ws(t){let e=await Wu(t),r=VM(t);L.log();let n={project:e,opts:r};r.method==="copy"?(r.copy.type==="external"?L.info(`Copy a remote workspace from ${r.copy.source}`):L.info(`Copy an existing workspace from "${e.name}"`),L.log(),await pm(n)):(L.info(`Add an empty workspace to "${e.name}"`),L.log(),await hm(n))}async function zs(t,e){let r=await Wu(e);L.log(),L.info(`Modify "${r.name}" using custom generators`),L.log(),await am({generator:t,project:r,opts:e})}function hv(t){try{let e=JSON.parse(t),r={};for(let n in e){let i=nm(n,{to:"camel"});r[i]=e[n]}return r}catch(e){L.error("Error parsing arguments",e),process.exit(1)}}async function mm(t,e){var r;if(t==="workspace"){let n=hv(e.json);n.showAllDependencies=(r=n.showAllDependencies)!=null?r:!1;let i=!1,s=n.empty||!0;n.copy===""||n.copy===!0?(i=!0,s=!1):n.copy&&n.copy.length>0&&(i=n.copy,s=!1),n.copy=i,n.empty=s,await Ws(n)}else if(t==="run"){let n=hv(e.json),{generatorName:i,...s}=n;await zs(i,s)}else L.error(`Received unknown command - "${t}" (must be one of "workspace" | "run")`),process.exit(1)}var yv=new gv.ProxyAgent;dv.default.globalAgent=yv;pv.default.globalAgent=yv;var Vs=new Le.Command;Vs.name(mv.default.bold(L.turboGradient("@turbo/gen"))).description("Extend your Turborepo").version($s.version,"-v, --version","Output the current version").helpOption("-h, --help","Display help for command").showHelpAfterError(!1);Vs.command("run",{isDefault:!0}).alias("r").description("Run custom generators").addArgument(new Le.Argument("[generator-name]","The name of the generator to run")).addOption(new Le.Option("-c, --config <config>","Generator configuration file (default: turbo/generators/config.js")).addOption(new Le.Option("-r, --root <dir>","The root of your repository (default: directory with root turbo.json)")).addOption(new Le.Option("-a, --args <args...>","Arguments passed directly to generator").default([])).action(zs);Vs.command("workspace").aliases(["w"]).description("Add a new package or app to your project").addOption(new Le.Option("-n, --name <workspace-name>","Name for the new workspace")).addOption(new Le.Option("-b, --empty","Generate an empty workspace").conflicts("copy").default(!0)).addOption(new Le.Option("-c, --copy [source]",`Generate a workspace using an existing workspace as a template. Can be the name of a local workspace
|
|
67
|
+
Downloading files${r?"":` for example ${Dr.default.cyan(e)}`}. This might take a moment.`),qt(),f.start(),await(0,tm.default)(()=>Qp(o,e),{retries:3}))}catch(g){throw new Gu(NM(g)?g.message:String(g))}finally{f.stop()}let h=Li.default.join(o,"package.json"),p=(0,Ni.existsSync)(h),m=[];if(p){let g;try{g=(0,Ni.readJsonSync)(h)}catch{}g&&m.push(...Object.keys(g.scripts||{}))}let _=t;return Li.default.join(l,a)===t&&(_=a),{cdPath:_,hasPackageJson:p,availableScripts:m,repoInfo:i}}function nm(t,e={to:"camel"}){switch(e.to){case"camel":return t.replace(/(?:[-_][a-z])/g,r=>r.toUpperCase().replace("-","").replace("_",""));default:throw new Error("Not implemented")}}var gv=require("proxy-agent");var $s={name:"@turbo/gen",version:"1.10.17-canary.7",description:"Extend a Turborepo",homepage:"https://turbo.build/repo",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/turbo-gen"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:"dist/cli.js",types:"dist/types.d.ts",scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit"},dependencies:{"@turbo/workspaces":"workspace:*",chalk:"2.4.2",commander:"^10.0.0","fs-extra":"^10.1.0",inquirer:"^8.2.4",minimatch:"^9.0.0","node-plop":"^0.26.3","proxy-agent":"^6.2.2","ts-node":"^10.9.1","update-check":"^1.5.4","validate-npm-package-name":"^5.0.0"},devDependencies:{"@turbo/eslint-config":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/utils":"workspace:*","@types/fs-extra":"^9.0.13","@types/inquirer":"^8.2.5","@types/jest":"^27.4.0","@types/node":"^18.17.2","@types/validate-npm-package-name":"^4.0.0",jest:"^27.4.3","ts-jest":"^27.1.1",tsup:"^6.7.0",typescript:"^4.5.5"},files:["dist"],publishConfig:{access:"public"}};var jC=X(require("chalk")),$C=X(require("update-check"));var qM=(0,$C.default)($s).catch(()=>null);async function im(){try{let t=await qM;t!=null&&t.latest&&(L.log(),L.log(jC.default.yellow.bold(`A new version of \`${$s.name}\` is available!`)),L.log()),process.exit()}catch{}}var UC=require("@turbo/workspaces");async function Wu({root:t}){let e=t||process.cwd(),r=Wi(e);if(!r)L.error("Unable to infer repository root - override with --root");else try{return(0,UC.getWorkspaceDetails)({root:r})}catch{L.error(`Unable to determine workspace details. Make sure "${e}" is the root, or add "packageManager" to "package.json" or ensure a lockfile is present.`)}process.exit(1)}var wr=X(require("path")),Vu=X(require("fs-extra")),zu=X(require("node-plop")),GC=require("ts-node"),WC=require("inquirer");var Ie=class extends Error{constructor(r,n){var i;super(r);this.name="GenerateError",this.type=(i=n==null?void 0:n.type)!=null?i:"unknown",Error.captureStackTrace(this,Ie)}};var zC=["ts","js","cjs"],HM=wr.default.join("turbo","generators"),VC=zC.map(t=>wr.default.join(HM,`config.${t}`)),jM=[...VC,...zC.map(t=>wr.default.join(`plopfile.${t}`))];function YC({project:t,configPath:e}){(0,GC.register)({transpileOnly:!0,cwd:t.paths.root,compilerOptions:{module:"nodenext",moduleResolution:"nodenext"}});let r=UM({project:t}),n;if(e){if(!Vu.default.existsSync(e))throw new Ie(`No config at "${e}"`,{type:"plop_no_config"});try{n=(0,zu.default)(e,{destBasePath:e,force:!1})}catch(i){L.error(i)}}else{for(let i of jM){let s=wr.default.join(t.paths.root,i);if(Vu.default.existsSync(s))try{n=(0,zu.default)(s,{destBasePath:t.paths.root,force:!1});break}catch(o){L.error(o)}}!n&&r.length>0&&(n=(0,zu.default)(r[0].config,{destBasePath:r[0].root,force:!1}),r.shift())}return n&&r.forEach(i=>{try{n==null||n.load(i.config,{destBasePath:i.root,force:!1})}catch(s){L.error(s)}}),n}function sm({project:t,configPath:e}){let r=YC({project:t,configPath:e});if(!r)return[];let i=r.getGeneratorList().map(a=>r.getGenerator(a.name)),s={};i.forEach(a=>{let u=a,c=t.workspaceData.workspaces.find(l=>{if(u.basePath===t.paths.root)return!1;let f=u.basePath.split(wr.default.sep);return f.pop(),f.pop(),wr.default.join("/",...f)===l.paths.root});c?(c.name in s||(s[c.name]=[]),s[c.name].push(u)):("root"in s||(s.root=[]),s.root.push(u))});let o=[];return Object.keys(s).forEach(a=>{o.push(new WC.Separator(a)),o.push(...s[a])}),o}function $M({project:t,generator:e}){let r={root:t.paths.root,workspace:e.basePath?Gi({cwd:e.basePath,target:"package.json"}):void 0},n={};try{n=If(e.basePath)}catch{}return{turbo:{paths:r,configs:n}}}function UM({project:t}){let e=[];return t.workspaceData.workspaces.forEach(r=>{for(let n of VC)Vu.default.existsSync(wr.default.join(r.paths.root,n))&&e.push({config:wr.default.join(r.paths.root,n),root:r.paths.root})}),e}async function KC({project:t,generator:e,bypassArgs:r,configPath:n}){let i=YC({project:t,configPath:n});if(!i)throw new Ie("Unable to load generators",{type:"plop_unable_to_load_config"});let s=i.getGenerator(e);if(!s)throw new Ie(`Generator ${e} not found`,{type:"plop_generator_not_found"});let o=await s.runPrompts(r),a=await s.runActions({...o,...$M({project:t,generator:s})},{onComment:u=>{L.dimmed(u)}});if(a.failures.length>0)throw a.failures.forEach(u=>{u instanceof Error?L.error(`Error - ${u.message}`):L.error(`Error - ${u.error}. Unable to ${u.type} to "${u.path}"`)}),new Ie(`Failed to run "${e}" generator`,{type:"plop_error_running_generator"});a.changes.length>0&&(L.info("Changes made:"),a.changes.forEach(u=>{u.path&&L.item(`${u.path} (${u.type})`)}))}var vn=require("inquirer");async function JC({generators:t,generator:e}){if(e){if(t.find(n=>!(n instanceof vn.Separator)&&n.name===e))return{selectedGenerator:e};L.warn(`Generator "${e}" not found`),L.log()}return await(0,vn.prompt)({type:"list",name:"selectedGenerator",message:"Select generator to run",choices:t.map(n=>n instanceof vn.Separator?n:{name:n.description?` ${n.name}: ${n.description}`:` ${n.name}`,value:n.name})})}async function XC(){return(0,vn.prompt)({type:"list",name:"answer",message:"Should the generator config be created with TS or JS?",default:"ts",choices:[{name:"JavaScript",value:"js"},{name:"TypeScript",value:"ts"}]})}async function ZC({message:t}){return(0,vn.prompt)({type:"confirm",name:"answer",message:t})}var om=X(require("path")),Yu=require("fs-extra");async function QC({project:t,template:e}){let r=om.default.join(t.paths.root,"turbo","generators"),n=`simple-${e}`;if(await(0,Yu.pathExists)(r))throw new Ie(`Generator config directory already exists at ${r}`,{type:"config_directory_already_exists"});await(0,Yu.copy)(om.default.join(__dirname,"templates",n),r,{recursive:!0})}async function am({generator:t,project:e,opts:r}){let n=!1,i=sm({project:e,configPath:r.config});if(!i.length){L.error("No generators found."),L.log();let{answer:o}=await ZC({message:`Would you like to add a config with a sample custom generator to ${e.name}?`});if(o){n=!0;let{answer:a}=await XC();try{await QC({project:e,template:a})}catch(u){throw u instanceof Ie||L.error("Failed to create generator config"),u}if(L.log(),L.info("Generator config successfully created!"),L.info("Loading generator config..."),L.log(),i=sm({project:e,configPath:r.config}),!i.length){L.error("Error loading generator");return}}else{L.log(),L.dimmed("Learn more about custom Turborepo generators - https://turbo.build/repo/docs/core-concepts/monorepos/code-generation#custom-generators");return}}let{selectedGenerator:s}=await JC({generators:i,generator:t});try{await KC({project:e,generator:s,bypassArgs:r.args,configPath:r.config})}catch(o){if(o instanceof Ie)throw o;let a="Failed to run generator";throw o instanceof Error&&(a=o.message),new Ie(a,{type:"plop_error_running_generator"})}finally{n&&(L.log(),L.info("Congrats! You just ran your first Turborepo generator"),L.dimmed("Learn more about custom Turborepo generators - https://turbo.build/repo/docs/core-concepts/monorepos/code-generation#custom-generators"))}L.log(),L.bold(L.turboGradient(">>> Success!"))}var fm=X(require("path")),Gs=require("fs-extra"),lv=X(require("chalk"));var Us=X(require("path")),nv=require("fs-extra"),xt=require("inquirer"),iv=require("minimatch"),lm=X(require("validate-npm-package-name"));var um=X(require("path"));var ev=X(require("path"));function tv({project:t}){let r=t.workspaceData.workspaces.map(i=>ev.default.relative(t.paths.root,i.paths.root)),n=new Set;return t.workspaceData.globs.forEach(i=>{if(!r.includes(i)){if(!i.startsWith("!")){let o=i.split("/")[0];n.add(o)}}}),Array.from(n)}function cm({project:t,workspace:e}){return um.default.relative(t.paths.root,e.paths.root).split(um.default.sep)[0]}function Ku({project:t}){let e=tv({project:t}),r=e.includes("apps"),n=e.includes("packages"),i={},s=[];return t.workspaceData.workspaces.forEach(o=>{let a=cm({project:t,workspace:o});a!=="apps"&&s.push(o),a in i||(i[a]=[]),i[a].push(o)}),{hasRootApps:r,hasRootPackages:n,workspacesByGroup:i,nonAppWorkspaces:s}}var rv=require("inquirer");function Ju({project:t,type:e,showAllDependencies:r}){let n=Ku({project:t}),i=[],s=t.workspaceData.workspaces;r||(e==="app"&&n.hasRootApps?s=n.workspacesByGroup.apps:e==="package"&&n.nonAppWorkspaces.length>0&&(s=n.nonAppWorkspaces));let o;return s.forEach(a=>{let u=cm({project:t,workspace:a});u!==o&&i.push(new rv.Separator(u)),o=u,i.push(a)}),i}async function sv({override:t,suggestion:e,workspaceType:r}){let{validForNewPackages:n}=(0,lm.default)(t||"");return t&&n?{answer:t}:(0,xt.prompt)({type:"input",name:"answer",default:e,validate:i=>{let{validForNewPackages:s}=(0,lm.default)(i);return s||`Invalid ${r} name`},message:`What is the name of the ${r}?`})}async function ov({override:t,message:e}){return t?{answer:t}:(0,xt.prompt)({type:"list",name:"answer",message:e!=null?e:"What type of workspace should be added?",choices:[{name:"app",value:"app"},{name:"package",value:"package"}]})}async function av({workspaceType:t,workspaceName:e,destination:r,project:n}){let i=e.includes("/")?e.split("/")[1]:e;if(r){let{valid:u,root:c}=ua(r);if(u)return{absolute:c,relative:Us.default.relative(n.paths.root,c)}}let s,o=Ku({project:n});t==="app"&&o.hasRootApps?s=`${n.paths.root}/apps/${i}`:t==="package"&&o.hasRootPackages&&(s=`${n.paths.root}/packages/${i}`);let{answer:a}=await(0,xt.prompt)({type:"input",name:"answer",message:`Where should "${e}" be added?`,default:s?Us.default.relative(n.paths.root,s):void 0,validate:u=>{let c=Us.default.join(n.paths.root,u),{valid:l,error:f}=ua(c),h=n.workspaceData.globs.some(p=>(0,iv.minimatch)(u,p));return l&&h?!0:h?f:`${u} is not a valid workspace location`}});return{absolute:Us.default.join(n.paths.root,a),relative:a}}async function uv({override:t,workspaces:e,workspaceName:r}){if(t){let i=e.find(s=>s instanceof xt.Separator?!1:s.name===t);if(i)return{answer:i};L.warn(`Workspace "${t}" not found`),L.log()}return await(0,xt.prompt)({type:"list",name:"answer",loop:!1,pageSize:25,message:`Which workspace should "${r}" start from?`,choices:e.map(i=>i instanceof xt.Separator?i:{name:` ${i.name}`,value:i})})}async function cv({workspaceName:t,project:e,workspaceSource:r,showAllDependencies:n}){let i={dependencies:{},devDependencies:{},peerDependencies:{},optionalDependencies:{}},{answer:s}=await WM({message:`Add workspace dependencies to "${t}"?`});if(!s)return i;let{answer:o}=await(0,xt.prompt)({type:"checkbox",name:"answer",message:`Select all dependencies types to modify for "${t}"`,loop:!1,choices:[{name:"dependencies",value:"dependencies"},{name:"devDependencies",value:"devDependencies"},{name:"peerDependencies",value:"peerDependencies"},{name:"optionalDependencies",value:"optionalDependencies"}]}),a=Ju({project:e,type:"package",showAllDependencies:n}),u=r?(0,nv.readJsonSync)(r.paths.packageJson):void 0;for(let c of o){let{answer:l}=await(0,xt.prompt)({type:"checkbox",name:"answer",default:u&&Object.keys(u[c]||{}),pageSize:15,message:`Which packages should be added as ${c} to "${t}?`,loop:!1,choices:a.map(h=>h instanceof xt.Separator?h:{name:` ${h.name}`,value:h.name})}),f=(u==null?void 0:u[c])||{};if(Object.keys(f).length){let h=new Set(Object.keys(f));l.forEach(p=>{h.has(p)||(f[p]=e.packageManager==="pnpm"?"workspace:*":"*")}),i[c]=f}else i[c]=l.reduce((h,p)=>({...h,[p]:e.packageManager==="pnpm"?"workspace:*":"*"}),{})}return i}async function WM({message:t}){return(0,xt.prompt)({type:"confirm",name:"answer",message:t})}async function Xu({project:t,opts:e}){var u;let r,n=e.method==="copy"&&e.copy.type==="external"?((u=e.examplePath)==null?void 0:u.split("/").pop())||e.copy.source.split("/").pop():void 0,{answer:i}=await ov({override:e.type,message:e.method==="copy"&&e.copy.source==="external"&&n?`What type of workspace should "${n}" be created as?`:void 0}),{answer:s}=await sv({override:e.name,workspaceType:i,suggestion:n});if(e.method==="copy"&&e.copy.type==="internal"){let{answer:c}=await uv({override:e.copy.source,workspaces:Ju({project:t,type:i}),workspaceName:s});r=c}let o=await av({workspaceType:i,workspaceName:s,project:t,destination:e.destination}),a=await cv({workspaceName:s,project:t,workspaceSource:r,showAllDependencies:e.showAllDependencies});return{type:i,name:s,location:o,source:r,dependencies:a}}async function hm({project:t,opts:e}){let{name:r,location:n,dependencies:i}=await Xu({project:t,opts:e}),s={name:r,version:"0.0.0",private:!0,scripts:{dev:"echo 'Add dev script here'",build:"echo 'Add build script here'",test:"echo 'Add test script here'",lint:"echo 'Add lint script here'"}};Object.keys(i).forEach(o=>{let a=i[o];a&&Object.keys(a).length>0&&(s[o]=a)}),(0,Gs.mkdirSync)(n.absolute,{recursive:!0}),(0,Gs.writeFileSync)(fm.default.join(n.absolute,"package.json"),JSON.stringify(s,null,2)),(0,Gs.writeFileSync)(fm.default.join(n.absolute,"README.md"),`# \`${r}\``),L.log(),L.log(`${lv.default.bold(L.turboGradient(">>> Success!"))} Created ${r} at "${n.relative}"`)}var dm=X(require("path")),St=require("fs-extra"),fv=X(require("chalk"));async function pm({project:t,opts:e}){let{name:r,type:n,location:i,source:s,dependencies:o}=await Xu({project:t,opts:e}),a=dm.default.join(i.absolute,"package.json");if(e.copy.type==="external"){L.log(),L.warn("Some manual modifications may be required."),L.dimmed(`This ${n} may require local dependencies or a different package manager than what is available in this repo`),await rm({appPath:i.absolute,example:e.copy.source,examplePath:e.examplePath});try{if((0,St.existsSync)(a)){if((await(0,St.readJSON)(a)).workspaces)throw new Error("New workspace root detected - unexpected 'workspaces' field in package.json")}else throw new Error("New workspace is missing a package.json file");if((0,St.existsSync)(dm.default.join(i.absolute,"pnpm-workspace.yaml")))throw new Error("New workspace root detected - unexpected pnpm-workspace.yaml")}catch(c){let l="UNKNOWN_ERROR";c instanceof Error&&(l=c.message),L.error(l),await(0,St.rm)(i.absolute,{recursive:!0,force:!0});return}}else if(s){let c=async f=>Promise.resolve(!f.includes("node_modules")),l=L.turboLoader(`Creating "${r}" from "${s.name}"...`);l.start(),await(0,St.copy)(s.paths.root,i.absolute,{filter:c}),l.stop()}let u=await(0,St.readJSON)(a);u.name=r,Object.keys(o).forEach(c=>{let l=o[c];l&&Object.keys(l).length>0&&(u[c]=l)}),await(0,St.writeJSON)(a,u,{spaces:2}),L.log(),L.log(`${fv.default.bold(L.turboGradient(">>> Success!"))} Created ${r} at "${i.relative}"`)}function VM(t){let{copy:e,...r}=t,n=e===!0||typeof e=="string"?"copy":"empty",i=typeof e=="string"?e:"",s=typeof e=="string"&&e.startsWith("https://")?"external":"internal";return{method:n,copy:{type:s,source:i},...r}}async function Ws(t){let e=await Wu(t),r=VM(t);L.log();let n={project:e,opts:r};r.method==="copy"?(r.copy.type==="external"?L.info(`Copy a remote workspace from ${r.copy.source}`):L.info(`Copy an existing workspace from "${e.name}"`),L.log(),await pm(n)):(L.info(`Add an empty workspace to "${e.name}"`),L.log(),await hm(n))}async function zs(t,e){let r=await Wu(e);L.log(),L.info(`Modify "${r.name}" using custom generators`),L.log(),await am({generator:t,project:r,opts:e})}function hv(t){try{let e=JSON.parse(t),r={};for(let n in e){let i=nm(n,{to:"camel"});r[i]=e[n]}return r}catch(e){L.error("Error parsing arguments",e),process.exit(1)}}async function mm(t,e){var r;if(t==="workspace"){let n=hv(e.json);n.showAllDependencies=(r=n.showAllDependencies)!=null?r:!1;let i=!1,s=n.empty||!0;n.copy===""||n.copy===!0?(i=!0,s=!1):n.copy&&n.copy.length>0&&(i=n.copy,s=!1),n.copy=i,n.empty=s,await Ws(n)}else if(t==="run"){let n=hv(e.json),{generatorName:i,...s}=n;await zs(i,s)}else L.error(`Received unknown command - "${t}" (must be one of "workspace" | "run")`),process.exit(1)}var yv=new gv.ProxyAgent;dv.default.globalAgent=yv;pv.default.globalAgent=yv;var Vs=new Le.Command;Vs.name(mv.default.bold(L.turboGradient("@turbo/gen"))).description("Extend your Turborepo").version($s.version,"-v, --version","Output the current version").helpOption("-h, --help","Display help for command").showHelpAfterError(!1);Vs.command("run",{isDefault:!0}).alias("r").description("Run custom generators").addArgument(new Le.Argument("[generator-name]","The name of the generator to run")).addOption(new Le.Option("-c, --config <config>","Generator configuration file (default: turbo/generators/config.js")).addOption(new Le.Option("-r, --root <dir>","The root of your repository (default: directory with root turbo.json)")).addOption(new Le.Option("-a, --args <args...>","Arguments passed directly to generator").default([])).action(zs);Vs.command("workspace").aliases(["w"]).description("Add a new package or app to your project").addOption(new Le.Option("-n, --name <workspace-name>","Name for the new workspace")).addOption(new Le.Option("-b, --empty","Generate an empty workspace").conflicts("copy").default(!0)).addOption(new Le.Option("-c, --copy [source]",`Generate a workspace using an existing workspace as a template. Can be the name of a local workspace
|
|
68
68
|
within your monorepo, or a fully qualified GitHub URL with any branch and/or subdirectory.
|
|
69
69
|
`).conflicts("empty")).addOption(new Le.Option("-d, --destination <dir>","Where the new workspace should be created")).addOption(new Le.Option("-t, --type <type>","The type of workspace to create").choices(["app","package"])).addOption(new Le.Option("-r, --root <dir>","The root of your repository (default: directory with root turbo.json)")).addOption(new Le.Option("-p, --example-path <path-to-example>",`In a rare case, your GitHub URL might contain a branch name with
|
|
70
70
|
a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).
|