create-turbo 2.0.4-canary.1 → 2.0.4-canary.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cli.js +35 -35
- package/package.json +3 -3
package/dist/cli.js
CHANGED
@@ -1,63 +1,63 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
"use strict";var IT=Object.create;var Ml=Object.defineProperty;var LT=Object.getOwnPropertyDescriptor;var BT=Object.getOwnPropertyNames;var NT=Object.getPrototypeOf,MT=Object.prototype.hasOwnProperty;var T=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),jT=(t,e)=>{for(var r in e)Ml(t,r,{get:e[r],enumerable:!0})},qT=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of BT(e))!MT.call(t,n)&&n!==r&&Ml(t,n,{get:()=>e[n],enumerable:!(i=LT(e,n))||i.enumerable});return t};var ae=(t,e,r)=>(r=t!=null?IT(NT(t)):{},qT(e||!t||!t.__esModule?Ml(r,"default",{value:t,enumerable:!0}):r,t));var b0=T((s4,Cr)=>{function jl(t){return Cr.exports=jl=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},Cr.exports.__esModule=!0,Cr.exports.default=Cr.exports,jl(t)}Cr.exports=jl,Cr.exports.__esModule=!0,Cr.exports.default=Cr.exports});var w0=T((o4,Rr)=>{var E0=b0().default;function v0(){"use strict";Rr.exports=v0=function(){return e},Rr.exports.__esModule=!0,Rr.exports.default=Rr.exports;var t,e={},r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(I,L,z){I[L]=z.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function c(I,L,z){return Object.defineProperty(I,L,{value:z,enumerable:!0,configurable:!0,writable:!0}),I[L]}try{c({},"")}catch{c=function(z,Z,q){return z[Z]=q}}function l(I,L,z,Z){var q=L&&L.prototype instanceof v?L:v,g=Object.create(q.prototype),_=new ne(Z||[]);return n(g,"_invoke",{value:W(I,z,_)}),g}function h(I,L,z){try{return{type:"normal",arg:I.call(L,z)}}catch(Z){return{type:"throw",arg:Z}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",m="executing",y="completed",p={};function v(){}function C(){}function k(){}var P={};c(P,o,function(){return this});var F=Object.getPrototypeOf,M=F&&F(F(U([])));M&&M!==r&&i.call(M,o)&&(P=M);var S=k.prototype=v.prototype=Object.create(P);function D(I){["next","throw","return"].forEach(function(L){c(I,L,function(z){return this._invoke(L,z)})})}function j(I,L){function z(q,g,_,E){var R=h(I[q],I,g);if(R.type!=="throw"){var x=R.arg,H=x.value;return H&&E0(H)=="object"&&i.call(H,"__await")?L.resolve(H.__await).then(function($){z("next",$,_,E)},function($){z("throw",$,_,E)}):L.resolve(H).then(function($){x.value=$,_(x)},function($){return z("throw",$,_,E)})}E(R.arg)}var Z;n(this,"_invoke",{value:function(g,_){function E(){return new L(function(R,x){z(g,_,R,x)})}return Z=Z?Z.then(E,E):E()}})}function W(I,L,z){var Z=f;return function(q,g){if(Z===m)throw new Error("Generator is already running");if(Z===y){if(q==="throw")throw g;return{value:t,done:!0}}for(z.method=q,z.arg=g;;){var _=z.delegate;if(_){var E=N(_,z);if(E){if(E===p)continue;return E}}if(z.method==="next")z.sent=z._sent=z.arg;else if(z.method==="throw"){if(Z===f)throw Z=y,z.arg;z.dispatchException(z.arg)}else z.method==="return"&&z.abrupt("return",z.arg);Z=m;var R=h(I,L,z);if(R.type==="normal"){if(Z=z.done?y:d,R.arg===p)continue;return{value:R.arg,done:z.done}}R.type==="throw"&&(Z=y,z.method="throw",z.arg=R.arg)}}}function N(I,L){var z=L.method,Z=I.iterator[z];if(Z===t)return L.delegate=null,z==="throw"&&I.iterator.return&&(L.method="return",L.arg=t,N(I,L),L.method==="throw")||z!=="return"&&(L.method="throw",L.arg=new TypeError("The iterator does not provide a '"+z+"' method")),p;var q=h(Z,I.iterator,L.arg);if(q.type==="throw")return L.method="throw",L.arg=q.arg,L.delegate=null,p;var g=q.arg;return g?g.done?(L[I.resultName]=g.value,L.next=I.nextLoc,L.method!=="return"&&(L.method="next",L.arg=t),L.delegate=null,p):g:(L.method="throw",L.arg=new TypeError("iterator result is not an object"),L.delegate=null,p)}function K(I){var L={tryLoc:I[0]};1 in I&&(L.catchLoc=I[1]),2 in I&&(L.finallyLoc=I[2],L.afterLoc=I[3]),this.tryEntries.push(L)}function te(I){var L=I.completion||{};L.type="normal",delete L.arg,I.completion=L}function ne(I){this.tryEntries=[{tryLoc:"root"}],I.forEach(K,this),this.reset(!0)}function U(I){if(I||I===""){var L=I[o];if(L)return L.call(I);if(typeof I.next=="function")return I;if(!isNaN(I.length)){var z=-1,Z=function q(){for(;++z<I.length;)if(i.call(I,z))return q.value=I[z],q.done=!1,q;return q.value=t,q.done=!0,q};return Z.next=Z}}throw new TypeError(E0(I)+" is not iterable")}return C.prototype=k,n(S,"constructor",{value:k,configurable:!0}),n(k,"constructor",{value:C,configurable:!0}),C.displayName=c(k,u,"GeneratorFunction"),e.isGeneratorFunction=function(I){var L=typeof I=="function"&&I.constructor;return!!L&&(L===C||(L.displayName||L.name)==="GeneratorFunction")},e.mark=function(I){return Object.setPrototypeOf?Object.setPrototypeOf(I,k):(I.__proto__=k,c(I,u,"GeneratorFunction")),I.prototype=Object.create(S),I},e.awrap=function(I){return{__await:I}},D(j.prototype),c(j.prototype,a,function(){return this}),e.AsyncIterator=j,e.async=function(I,L,z,Z,q){q===void 0&&(q=Promise);var g=new j(l(I,L,z,Z),q);return e.isGeneratorFunction(L)?g:g.next().then(function(_){return _.done?_.value:g.next()})},D(S),c(S,u,"Generator"),c(S,o,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),e.keys=function(I){var L=Object(I),z=[];for(var Z in L)z.push(Z);return z.reverse(),function q(){for(;z.length;){var g=z.pop();if(g in L)return q.value=g,q.done=!1,q}return q.done=!0,q}},e.values=U,ne.prototype={constructor:ne,reset:function(L){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(te),!L)for(var z in this)z.charAt(0)==="t"&&i.call(this,z)&&!isNaN(+z.slice(1))&&(this[z]=t)},stop:function(){this.done=!0;var L=this.tryEntries[0].completion;if(L.type==="throw")throw L.arg;return this.rval},dispatchException:function(L){if(this.done)throw L;var z=this;function Z(x,H){return _.type="throw",_.arg=L,z.next=x,H&&(z.method="next",z.arg=t),!!H}for(var q=this.tryEntries.length-1;q>=0;--q){var g=this.tryEntries[q],_=g.completion;if(g.tryLoc==="root")return Z("end");if(g.tryLoc<=this.prev){var E=i.call(g,"catchLoc"),R=i.call(g,"finallyLoc");if(E&&R){if(this.prev<g.catchLoc)return Z(g.catchLoc,!0);if(this.prev<g.finallyLoc)return Z(g.finallyLoc)}else if(E){if(this.prev<g.catchLoc)return Z(g.catchLoc,!0)}else{if(!R)throw new Error("try statement without catch or finally");if(this.prev<g.finallyLoc)return Z(g.finallyLoc)}}}},abrupt:function(L,z){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var q=this.tryEntries[Z];if(q.tryLoc<=this.prev&&i.call(q,"finallyLoc")&&this.prev<q.finallyLoc){var g=q;break}}g&&(L==="break"||L==="continue")&&g.tryLoc<=z&&z<=g.finallyLoc&&(g=null);var _=g?g.completion:{};return _.type=L,_.arg=z,g?(this.method="next",this.next=g.finallyLoc,p):this.complete(_)},complete:function(L,z){if(L.type==="throw")throw L.arg;return L.type==="break"||L.type==="continue"?this.next=L.arg:L.type==="return"?(this.rval=this.arg=L.arg,this.method="return",this.next="end"):L.type==="normal"&&z&&(this.next=z),p},finish:function(L){for(var z=this.tryEntries.length-1;z>=0;--z){var Z=this.tryEntries[z];if(Z.finallyLoc===L)return this.complete(Z.completion,Z.afterLoc),te(Z),p}},catch:function(L){for(var z=this.tryEntries.length-1;z>=0;--z){var Z=this.tryEntries[z];if(Z.tryLoc===L){var q=Z.completion;if(q.type==="throw"){var g=q.arg;te(Z)}return g}}throw new Error("illegal catch attempt")},delegateYield:function(L,z,Z){return this.delegate={iterator:U(L),resultName:z,nextLoc:Z},this.method==="next"&&(this.arg=t),p}},e}Rr.exports=v0,Rr.exports.__esModule=!0,Rr.exports.default=Rr.exports});var x0=T((a4,S0)=>{var wa=w0()();S0.exports=wa;try{regeneratorRuntime=wa}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=wa:Function("r","regeneratorRuntime = r")(wa)}});var A0=T((T4,Wl)=>{"use strict";var D0=(t,...e)=>new Promise(r=>{r(t(...e))});Wl.exports=D0;Wl.exports.default=D0});var R0=T((k4,Vl)=>{"use strict";var UT=A0(),C0=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,i=()=>{r--,e.length>0&&e.shift()()},n=(a,u,...c)=>{r++;let l=UT(a,...c);u(l),l.then(i,i)},s=(a,u,...c)=>{r<t?n(a,u,...c):e.push(n.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};Vl.exports=C0;Vl.exports.default=C0});var O0=T((O4,Yl)=>{"use strict";var T0=R0(),Sa=class extends Error{constructor(e){super(),this.value=e}},HT=async(t,e)=>e(await t),$T=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new Sa(e[0]);return!1},k0=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let i=T0(r.concurrency),n=[...t].map(o=>[o,i(HT,o,e)]),s=T0(r.preserveOrder?1:1/0);try{await Promise.all(n.map(o=>s($T,o)))}catch(o){if(o instanceof Sa)return o.value;throw o}};Yl.exports=k0;Yl.exports.default=k0});var N0=T((F4,Kl)=>{"use strict";var F0=require("path"),xa=require("fs"),{promisify:P0}=require("util"),zT=O0(),GT=P0(xa.stat),WT=P0(xa.lstat),I0={directory:"isDirectory",file:"isFile"};function L0({type:t}){if(!(t in I0))throw new Error(`Invalid type specified: ${t}`)}var B0=(t,e)=>t===void 0||e[I0[t]]();Kl.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},L0(e);let r=e.allowSymlinks?GT:WT;return zT(t,async i=>{try{let n=await r(F0.resolve(e.cwd,i));return B0(e.type,n)}catch{return!1}},e)};Kl.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},L0(e);let r=e.allowSymlinks?xa.statSync:xa.lstatSync;for(let i of t)try{let n=r(F0.resolve(e.cwd,i));if(B0(e.type,n))return i}catch{}}});var j0=T((P4,Zl)=>{"use strict";var M0=require("fs"),{promisify:VT}=require("util"),YT=VT(M0.access);Zl.exports=async t=>{try{return await YT(t),!0}catch{return!1}};Zl.exports.sync=t=>{try{return M0.accessSync(t),!0}catch{return!1}}});var U0=T((I4,On)=>{"use strict";var ii=require("path"),Da=N0(),q0=j0(),Jl=Symbol("findUp.stop");On.exports=async(t,e={})=>{let r=ii.resolve(e.cwd||""),{root:i}=ii.parse(r),n=[].concat(t),s=async o=>{if(typeof t!="function")return Da(n,o);let a=await t(o.cwd);return typeof a=="string"?Da([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===Jl)return;if(o)return ii.resolve(r,o);if(r===i)return;r=ii.dirname(r)}};On.exports.sync=(t,e={})=>{let r=ii.resolve(e.cwd||""),{root:i}=ii.parse(r),n=[].concat(t),s=o=>{if(typeof t!="function")return Da.sync(n,o);let a=t(o.cwd);return typeof a=="string"?Da.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===Jl)return;if(o)return ii.resolve(r,o);if(r===i)return;r=ii.dirname(r)}};On.exports.exists=q0;On.exports.sync.exists=q0.sync;On.exports.stop=Jl});var Gg=T(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.splitWhen=Bn.flatten=void 0;function vF(t){return t.reduce((e,r)=>[].concat(e,r),[])}Bn.flatten=vF;function wF(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}Bn.splitWhen=wF});var Wg=T(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.isEnoentCodeError=void 0;function SF(t){return t.code==="ENOENT"}Fa.isEnoentCodeError=SF});var Vg=T(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.createDirentFromStats=void 0;var dh=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 xF(t,e){return new dh(t,e)}Pa.createDirentFromStats=xF});var Yg=T(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.removeLeadingDotSegment=or.escape=or.makeAbsolute=or.unixify=void 0;var DF=require("path"),AF=2,CF=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function RF(t){return t.replace(/\\/g,"/")}or.unixify=RF;function TF(t,e){return DF.resolve(t,e)}or.makeAbsolute=TF;function kF(t){return t.replace(CF,"\\$2")}or.escape=kF;function OF(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(AF)}return t}or.removeLeadingDotSegment=OF});var Zg=T((r9,Kg)=>{Kg.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 Qg=T((i9,Xg)=>{var FF=Zg(),Jg={"{":"}","(":")","[":"]"},PF=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,n=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||i!==-1&&t[e]==="["&&t[e+1]!=="]"&&(i<e&&(i=t.indexOf("]",e)),i>e&&(o===-1||o>i||(o=t.indexOf("\\",e),o===-1||o>i)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||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=Jg[a];if(u){var c=t.indexOf(u,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},IF=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 i=Jg[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};Xg.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(FF(e))return!0;var i=PF;return r&&r.strict===!1&&(i=IF),i(e)}});var t_=T((n9,e_)=>{"use strict";var LF=Qg(),BF=require("path").posix.dirname,NF=require("os").platform()==="win32",ph="/",MF=/\\/g,jF=/[\{\[].*[\}\]]$/,qF=/(^|[^\\])([\{\[]|\([^\)]+$)/,UF=/\\([\!\*\?\|\[\]\(\)\{\}])/g;e_.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&NF&&e.indexOf(ph)<0&&(e=e.replace(MF,ph)),jF.test(e)&&(e+=ph),e+="a";do e=BF(e);while(LF(e)||qF.test(e));return e.replace(UF,"$1")}});var Ia=T(Lt=>{"use strict";Lt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Lt.find=(t,e)=>t.nodes.find(r=>r.type===e);Lt.exceedsLimit=(t,e,r=1,i)=>i===!1||!Lt.isInteger(t)||!Lt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;Lt.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};Lt.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);Lt.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;Lt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Lt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);Lt.flatten=(...t)=>{let e=[],r=i=>{for(let n=0;n<i.length;n++){let s=i[n];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var La=T((o9,i_)=>{"use strict";var r_=Ia();i_.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&r_.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&r_.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let u of i.nodes)a+=r(u);return a};return r(t)}});var s_=T((a9,n_)=>{"use strict";n_.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var p_=T((u9,d_)=>{"use strict";var o_=s_(),zi=(t,e,r)=>{if(o_(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(o_(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),o=String(i.capture),a=String(i.wrap),u=t+":"+e+"="+n+s+o+a;if(zi.cache.hasOwnProperty(u))return zi.cache[u].result;let c=Math.min(t,e),l=Math.max(t,e);if(Math.abs(c-l)===1){let y=t+"|"+e;return i.capture?`(${y})`:i.wrap===!1?y:`(?:${y})`}let h=f_(t)||f_(e),f={min:t,max:e,a:c,b:l},d=[],m=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),c<0){let y=l<0?Math.abs(l):1;m=a_(y,Math.abs(c),f,i),c=f.a=0}return l>=0&&(d=a_(c,l,f,i)),f.negatives=m,f.positives=d,f.result=HF(m,d,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&d.length+m.length>1&&(f.result=`(?:${f.result})`),zi.cache[u]=f,f.result};function HF(t,e,r){let i=mh(t,e,"-",!1,r)||[],n=mh(e,t,"",!1,r)||[],s=mh(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function $F(t,e){let r=1,i=1,n=c_(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=c_(t,r);for(n=l_(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=l_(e+1,i)-1;return s=[...s],s.sort(WF),s}function zF(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=GF(t,e),n=i.length,s="",o=0;for(let a=0;a<n;a++){let[u,c]=i[a];u===c?s+=u:u!=="0"||c!=="9"?s+=VF(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function a_(t,e,r,i){let n=$F(t,e),s=[],o=t,a;for(let u=0;u<n.length;u++){let c=n[u],l=zF(String(o),String(c),i),h="";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+h_(a.count),o=c+1;continue}r.isPadded&&(h=YF(c,r,i)),l.string=h+l.pattern+h_(l.count),s.push(l),o=c+1,a=l}return s}function mh(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!u_(e,"string",a)&&s.push(r+a),i&&u_(e,"string",a)&&s.push(r+a)}return s}function GF(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function WF(t,e){return t>e?1:e>t?-1:0}function u_(t,e,r){return t.some(i=>i[e]===r)}function c_(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function l_(t,e){return t-t%Math.pow(10,e)}function h_(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function VF(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function f_(t){return/^-?(0+)\d/.test(t)}function YF(t,e,r){if(!e.isPadded)return t;let i=Math.abs(e.maxLen-String(t).length),n=r.relaxZeros!==!1;switch(i){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${i}}`:`0{${i}}`}}zi.cache={};zi.clearCache=()=>zi.cache={};d_.exports=zi});var _h=T((c9,w_)=>{"use strict";var KF=require("util"),g_=p_(),m_=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),ZF=t=>e=>t===!0?Number(e):String(e),yh=t=>typeof t=="number"||typeof t=="string"&&t!=="",po=t=>Number.isInteger(+t),gh=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},JF=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,XF=(t,e,r)=>{if(e>0){let i=t[0]==="-"?"-":"";i&&(t=t.slice(1)),t=i+t.padStart(i?e-1:e,"0")}return r===!1?String(t):t},y_=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},QF=(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?"":"?:",i="",n="",s;return t.positives.length&&(i=t.positives.join("|")),t.negatives.length&&(n=`-(${r}${t.negatives.join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,e.wrap?`(${r}${s})`:s},__=(t,e,r,i)=>{if(r)return g_(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},b_=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return g_(t,e,r)},E_=(...t)=>new RangeError("Invalid range arguments: "+KF.inspect(...t)),v_=(t,e,r)=>{if(r.strictRanges===!0)throw E_([t,e]);return[]},eP=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},tP=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw E_([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(t),u=String(e),c=String(r);r=Math.max(Math.abs(r),1);let l=gh(a)||gh(u)||gh(c),h=l?Math.max(a.length,u.length,c.length):0,f=l===!1&&JF(t,e,i)===!1,d=i.transform||ZF(f);if(i.toRegex&&r===1)return __(y_(t,h),y_(e,h),!0,i);let m={negatives:[],positives:[]},y=C=>m[C<0?"negatives":"positives"].push(Math.abs(C)),p=[],v=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?y(n):p.push(XF(d(n,v),h,f)),n=o?n-r:n+r,v++;return i.toRegex===!0?r>1?QF(m,i):b_(p,null,{wrap:!1,...i}):p},rP=(t,e,r=1,i={})=>{if(!po(t)&&t.length>1||!po(e)&&e.length>1)return v_(t,e,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,u=Math.min(s,o),c=Math.max(s,o);if(i.toRegex&&r===1)return __(u,c,!1,i);let l=[],h=0;for(;a?s>=o:s<=o;)l.push(n(s,h)),s=a?s-r:s+r,h++;return i.toRegex===!0?b_(l,null,{wrap:!1,options:i}):l},Ba=(t,e,r,i={})=>{if(e==null&&yh(t))return[t];if(!yh(t)||!yh(e))return v_(t,e,i);if(typeof r=="function")return Ba(t,e,1,{transform:r});if(m_(r))return Ba(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,po(r)?po(t)&&po(e)?tP(t,e,r,n):rP(t,e,Math.max(Math.abs(r),1),n):r!=null&&!m_(r)?eP(r,n):Ba(t,e,1,r)};w_.exports=Ba});var D_=T((l9,x_)=>{"use strict";var iP=_h(),S_=Ia(),nP=(t,e={})=>{let r=(i,n={})=>{let s=S_.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,u=e.escapeInvalid===!0?"\\":"",c="";if(i.isOpen===!0||i.isClose===!0)return u+i.value;if(i.type==="open")return a?u+i.value:"(";if(i.type==="close")return a?u+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":a?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let l=S_.reduce(i.nodes),h=iP(...l,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return l.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let l of i.nodes)c+=r(l,i);return c};return r(t)};x_.exports=nP});var R_=T((h9,C_)=>{"use strict";var sP=_h(),A_=La(),Nn=Ia(),Gi=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Nn.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(Gi(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?Gi(n,s,r):n+s);return Nn.flatten(i)},oP=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(n,s={})=>{n.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(n.invalid||n.dollar){a.push(Gi(a.pop(),A_(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){a.push(Gi(a.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let h=Nn.reduce(n.nodes);if(Nn.exceedsLimit(...h,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=sP(...h,e);f.length===0&&(f=A_(n,e)),a.push(Gi(a.pop(),f)),n.nodes=[];return}let u=Nn.encloseBrace(n),c=n.queue,l=n;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let h=0;h<n.nodes.length;h++){let f=n.nodes[h];if(f.type==="comma"&&n.type==="brace"){h===1&&c.push(""),c.push("");continue}if(f.type==="close"){a.push(Gi(a.pop(),c,u));continue}if(f.value&&f.type!=="open"){c.push(Gi(c.pop(),f.value));continue}f.nodes&&i(f,n)}return c};return Nn.flatten(i(t))};C_.exports=oP});var k_=T((f9,T_)=>{"use strict";T_.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 L_=T((d9,I_)=>{"use strict";var aP=La(),{MAX_LENGTH:O_,CHAR_BACKSLASH:bh,CHAR_BACKTICK:uP,CHAR_COMMA:cP,CHAR_DOT:lP,CHAR_LEFT_PARENTHESES:hP,CHAR_RIGHT_PARENTHESES:fP,CHAR_LEFT_CURLY_BRACE:dP,CHAR_RIGHT_CURLY_BRACE:pP,CHAR_LEFT_SQUARE_BRACKET:F_,CHAR_RIGHT_SQUARE_BRACKET:P_,CHAR_DOUBLE_QUOTE:mP,CHAR_SINGLE_QUOTE:yP,CHAR_NO_BREAK_SPACE:gP,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_P}=k_(),bP=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(O_,r.maxLength):O_;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],o=n,a=n,u=0,c=t.length,l=0,h=0,f,d={},m=()=>t[l++],y=p=>{if(p.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&p.type==="text"){a.value+=p.value;return}return o.nodes.push(p),p.parent=o,p.prev=a,a=p,p};for(y({type:"bos"});l<c;)if(o=s[s.length-1],f=m(),!(f===_P||f===gP)){if(f===bh){y({type:"text",value:(e.keepEscaping?f:"")+m()});continue}if(f===P_){y({type:"text",value:"\\"+f});continue}if(f===F_){u++;let p=!0,v;for(;l<c&&(v=m());){if(f+=v,v===F_){u++;continue}if(v===bh){f+=m();continue}if(v===P_&&(u--,u===0))break}y({type:"text",value:f});continue}if(f===hP){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:f});continue}if(f===fP){if(o.type!=="paren"){y({type:"text",value:f});continue}o=s.pop(),y({type:"text",value:f}),o=s[s.length-1];continue}if(f===mP||f===yP||f===uP){let p=f,v;for(e.keepQuotes!==!0&&(f="");l<c&&(v=m());){if(v===bh){f+=v+m();continue}if(v===p){e.keepQuotes===!0&&(f+=v);break}f+=v}y({type:"text",value:f});continue}if(f===dP){h++;let v={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};o=y(v),s.push(o),y({type:"open",value:f});continue}if(f===pP){if(o.type!=="brace"){y({type:"text",value:f});continue}let p="close";o=s.pop(),o.close=!0,y({type:p,value:f}),h--,o=s[s.length-1];continue}if(f===cP&&h>0){if(o.ranges>0){o.ranges=0;let p=o.nodes.shift();o.nodes=[p,{type:"text",value:aP(o)}]}y({type:"comma",value:f}),o.commas++;continue}if(f===lP&&h>0&&o.commas===0){let p=o.nodes;if(h===0||p.length===0){y({type:"text",value:f});continue}if(a.type==="dot"){if(o.range=[],a.value+=f,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"){p.pop();let v=p[p.length-1];v.value+=a.value+f,a=v,o.ranges--;continue}y({type:"dot",value:f});continue}y({type:"text",value:f})}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 p=s[s.length-1],v=p.nodes.indexOf(o);p.nodes.splice(v,1,...o.nodes)}while(s.length>0);return y({type:"eos"}),n};I_.exports=bP});var M_=T((p9,N_)=>{"use strict";var B_=La(),EP=D_(),vP=R_(),wP=L_(),wt=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=wt.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(wt.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};wt.parse=(t,e={})=>wP(t,e);wt.stringify=(t,e={})=>B_(typeof t=="string"?wt.parse(t,e):t,e);wt.compile=(t,e={})=>(typeof t=="string"&&(t=wt.parse(t,e)),EP(t,e));wt.expand=(t,e={})=>{typeof t=="string"&&(t=wt.parse(t,e));let r=vP(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};wt.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?wt.compile(t,e):wt.expand(t,e);N_.exports=wt});var mo=T((m9,$_)=>{"use strict";var SP=require("path"),ar="\\\\/",j_=`[^${ar}]`,Or="\\.",xP="\\+",DP="\\?",Na="\\/",AP="(?=.)",q_="[^/]",Eh=`(?:${Na}|$)`,U_=`(?:^|${Na})`,vh=`${Or}{1,2}${Eh}`,CP=`(?!${Or})`,RP=`(?!${U_}${vh})`,TP=`(?!${Or}{0,1}${Eh})`,kP=`(?!${vh})`,OP=`[^.${Na}]`,FP=`${q_}*?`,H_={DOT_LITERAL:Or,PLUS_LITERAL:xP,QMARK_LITERAL:DP,SLASH_LITERAL:Na,ONE_CHAR:AP,QMARK:q_,END_ANCHOR:Eh,DOTS_SLASH:vh,NO_DOT:CP,NO_DOTS:RP,NO_DOT_SLASH:TP,NO_DOTS_SLASH:kP,QMARK_NO_DOT:OP,STAR:FP,START_ANCHOR:U_},PP={...H_,SLASH_LITERAL:`[${ar}]`,QMARK:j_,STAR:`${j_}*?`,DOTS_SLASH:`${Or}{1,2}(?:[${ar}]|$)`,NO_DOT:`(?!${Or})`,NO_DOTS:`(?!(?:^|[${ar}])${Or}{1,2}(?:[${ar}]|$))`,NO_DOT_SLASH:`(?!${Or}{0,1}(?:[${ar}]|$))`,NO_DOTS_SLASH:`(?!${Or}{1,2}(?:[${ar}]|$))`,QMARK_NO_DOT:`[^.${ar}]`,START_ANCHOR:`(?:^|[${ar}])`,END_ANCHOR:`(?:[${ar}]|$)`},IP={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"};$_.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:IP,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:SP.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?PP:H_}}});var yo=T(mt=>{"use strict";var LP=require("path"),BP=process.platform==="win32",{REGEX_BACKSLASH:NP,REGEX_REMOVE_BACKSLASH:MP,REGEX_SPECIAL_CHARS:jP,REGEX_SPECIAL_CHARS_GLOBAL:qP}=mo();mt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);mt.hasRegexChars=t=>jP.test(t);mt.isRegexChar=t=>t.length===1&&mt.hasRegexChars(t);mt.escapeRegex=t=>t.replace(qP,"\\$1");mt.toPosixSlashes=t=>t.replace(NP,"/");mt.removeBackslashes=t=>t.replace(MP,e=>e==="\\"?"":e);mt.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};mt.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:BP===!0||LP.sep==="\\";mt.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?mt.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};mt.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};mt.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var J_=T((g9,Z_)=>{"use strict";var z_=yo(),{CHAR_ASTERISK:wh,CHAR_AT:UP,CHAR_BACKWARD_SLASH:go,CHAR_COMMA:HP,CHAR_DOT:Sh,CHAR_EXCLAMATION_MARK:xh,CHAR_FORWARD_SLASH:K_,CHAR_LEFT_CURLY_BRACE:Dh,CHAR_LEFT_PARENTHESES:Ah,CHAR_LEFT_SQUARE_BRACKET:$P,CHAR_PLUS:zP,CHAR_QUESTION_MARK:G_,CHAR_RIGHT_CURLY_BRACE:GP,CHAR_RIGHT_PARENTHESES:W_,CHAR_RIGHT_SQUARE_BRACKET:WP}=mo(),V_=t=>t===K_||t===go,Y_=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},VP=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=t,c=-1,l=0,h=0,f=!1,d=!1,m=!1,y=!1,p=!1,v=!1,C=!1,k=!1,P=!1,F=!1,M=0,S,D,j={value:"",depth:0,isGlob:!1},W=()=>c>=i,N=()=>u.charCodeAt(c+1),K=()=>(S=D,u.charCodeAt(++c));for(;c<i;){D=K();let L;if(D===go){C=j.backslashes=!0,D=K(),D===Dh&&(v=!0);continue}if(v===!0||D===Dh){for(M++;W()!==!0&&(D=K());){if(D===go){C=j.backslashes=!0,K();continue}if(D===Dh){M++;continue}if(v!==!0&&D===Sh&&(D=K())===Sh){if(f=j.isBrace=!0,m=j.isGlob=!0,F=!0,n===!0)continue;break}if(v!==!0&&D===HP){if(f=j.isBrace=!0,m=j.isGlob=!0,F=!0,n===!0)continue;break}if(D===GP&&(M--,M===0)){v=!1,f=j.isBrace=!0,F=!0;break}}if(n===!0)continue;break}if(D===K_){if(s.push(c),o.push(j),j={value:"",depth:0,isGlob:!1},F===!0)continue;if(S===Sh&&c===l+1){l+=2;continue}h=c+1;continue}if(r.noext!==!0&&(D===zP||D===UP||D===wh||D===G_||D===xh)===!0&&N()===Ah){if(m=j.isGlob=!0,y=j.isExtglob=!0,F=!0,D===xh&&c===l&&(P=!0),n===!0){for(;W()!==!0&&(D=K());){if(D===go){C=j.backslashes=!0,D=K();continue}if(D===W_){m=j.isGlob=!0,F=!0;break}}continue}break}if(D===wh){if(S===wh&&(p=j.isGlobstar=!0),m=j.isGlob=!0,F=!0,n===!0)continue;break}if(D===G_){if(m=j.isGlob=!0,F=!0,n===!0)continue;break}if(D===$P){for(;W()!==!0&&(L=K());){if(L===go){C=j.backslashes=!0,K();continue}if(L===WP){d=j.isBracket=!0,m=j.isGlob=!0,F=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&D===xh&&c===l){k=j.negated=!0,l++;continue}if(r.noparen!==!0&&D===Ah){if(m=j.isGlob=!0,n===!0){for(;W()!==!0&&(D=K());){if(D===Ah){C=j.backslashes=!0,D=K();continue}if(D===W_){F=!0;break}}continue}break}if(m===!0){if(F=!0,n===!0)continue;break}}r.noext===!0&&(y=!1,m=!1);let te=u,ne="",U="";l>0&&(ne=u.slice(0,l),u=u.slice(l),h-=l),te&&m===!0&&h>0?(te=u.slice(0,h),U=u.slice(h)):m===!0?(te="",U=u):te=u,te&&te!==""&&te!=="/"&&te!==u&&V_(te.charCodeAt(te.length-1))&&(te=te.slice(0,-1)),r.unescape===!0&&(U&&(U=z_.removeBackslashes(U)),te&&C===!0&&(te=z_.removeBackslashes(te)));let I={prefix:ne,input:t,start:l,base:te,glob:U,isBrace:f,isBracket:d,isGlob:m,isExtglob:y,isGlobstar:p,negated:k,negatedExtglob:P};if(r.tokens===!0&&(I.maxDepth=0,V_(D)||o.push(j),I.tokens=o),r.parts===!0||r.tokens===!0){let L;for(let z=0;z<s.length;z++){let Z=L?L+1:l,q=s[z],g=t.slice(Z,q);r.tokens&&(z===0&&l!==0?(o[z].isPrefix=!0,o[z].value=ne):o[z].value=g,Y_(o[z]),I.maxDepth+=o[z].depth),(z!==0||g!=="")&&a.push(g),L=q}if(L&&L+1<t.length){let z=t.slice(L+1);a.push(z),r.tokens&&(o[o.length-1].value=z,Y_(o[o.length-1]),I.maxDepth+=o[o.length-1].depth)}I.slashes=s,I.parts=a}return I};Z_.exports=VP});var eb=T((_9,Q_)=>{"use strict";var Ma=mo(),St=yo(),{MAX_LENGTH:ja,POSIX_REGEX_SOURCE:YP,REGEX_NON_SPECIAL_CHARS:KP,REGEX_SPECIAL_CHARS_BACKREF:ZP,REPLACEMENTS:X_}=Ma,JP=(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(n=>St.escapeRegex(n)).join("..")}return r},Mn=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Ch=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=X_[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(ja,r.maxLength):ja,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=St.isWindows(e),c=Ma.globChars(u),l=Ma.extglobChars(c),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:m,DOTS_SLASH:y,NO_DOT:p,NO_DOT_SLASH:v,NO_DOTS_SLASH:C,QMARK:k,QMARK_NO_DOT:P,STAR:F,START_ANCHOR:M}=c,S=V=>`(${a}(?:(?!${M}${V.dot?y:h}).)*?)`,D=r.dot?"":p,j=r.dot?k:P,W=r.bash===!0?S(r):F;r.capture&&(W=`(${W})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let N={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=St.removePrefix(t,N),n=t.length;let K=[],te=[],ne=[],U=s,I,L=()=>N.index===n-1,z=N.peek=(V=1)=>t[N.index+V],Z=N.advance=()=>t[++N.index]||"",q=()=>t.slice(N.index+1),g=(V="",he=0)=>{N.consumed+=V,N.index+=he},_=V=>{N.output+=V.output!=null?V.output:V.value,g(V.value)},E=()=>{let V=1;for(;z()==="!"&&(z(2)!=="("||z(3)==="?");)Z(),N.start++,V++;return V%2===0?!1:(N.negated=!0,N.start++,!0)},R=V=>{N[V]++,ne.push(V)},x=V=>{N[V]--,ne.pop()},H=V=>{if(U.type==="globstar"){let he=N.braces>0&&(V.type==="comma"||V.type==="brace"),J=V.extglob===!0||K.length&&(V.type==="pipe"||V.type==="paren");V.type!=="slash"&&V.type!=="paren"&&!he&&!J&&(N.output=N.output.slice(0,-U.output.length),U.type="star",U.value="*",U.output=W,N.output+=U.output)}if(K.length&&V.type!=="paren"&&(K[K.length-1].inner+=V.value),(V.value||V.output)&&_(V),U&&U.type==="text"&&V.type==="text"){U.value+=V.value,U.output=(U.output||"")+V.value;return}V.prev=U,o.push(V),U=V},$=(V,he)=>{let J={...l[he],conditions:1,inner:""};J.prev=U,J.parens=N.parens,J.output=N.output;let w=(r.capture?"(":"")+J.open;R("parens"),H({type:V,value:he,output:N.output?"":m}),H({type:"paren",extglob:!0,value:Z(),output:w}),K.push(J)},re=V=>{let he=V.close+(r.capture?")":""),J;if(V.type==="negate"){let w=W;if(V.inner&&V.inner.length>1&&V.inner.includes("/")&&(w=S(r)),(w!==W||L()||/^\)+$/.test(q()))&&(he=V.close=`)$))${w}`),V.inner.includes("*")&&(J=q())&&/^\.[^\\/.]+$/.test(J)){let B=Ch(J,{...e,fastpaths:!1}).output;he=V.close=`)${B})${w})`}V.prev.type==="bos"&&(N.negatedExtglob=!0)}H({type:"paren",extglob:!0,value:I,output:he}),x("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let V=!1,he=t.replace(ZP,(J,w,B,A,X,b)=>A==="\\"?(V=!0,J):A==="?"?w?w+A+(X?k.repeat(X.length):""):b===0?j+(X?k.repeat(X.length):""):k.repeat(B.length):A==="."?h.repeat(B.length):A==="*"?w?w+A+(X?W:""):W:w?J:`\\${J}`);return V===!0&&(r.unescape===!0?he=he.replace(/\\/g,""):he=he.replace(/\\+/g,J=>J.length%2===0?"\\\\":J?"\\":"")),he===t&&r.contains===!0?(N.output=t,N):(N.output=St.wrapOutput(he,N,e),N)}for(;!L();){if(I=Z(),I==="\0")continue;if(I==="\\"){let J=z();if(J==="/"&&r.bash!==!0||J==="."||J===";")continue;if(!J){I+="\\",H({type:"text",value:I});continue}let w=/^\\+/.exec(q()),B=0;if(w&&w[0].length>2&&(B=w[0].length,N.index+=B,B%2!==0&&(I+="\\")),r.unescape===!0?I=Z():I+=Z(),N.brackets===0){H({type:"text",value:I});continue}}if(N.brackets>0&&(I!=="]"||U.value==="["||U.value==="[^")){if(r.posix!==!1&&I===":"){let J=U.value.slice(1);if(J.includes("[")&&(U.posix=!0,J.includes(":"))){let w=U.value.lastIndexOf("["),B=U.value.slice(0,w),A=U.value.slice(w+2),X=YP[A];if(X){U.value=B+X,N.backtrack=!0,Z(),!s.output&&o.indexOf(U)===1&&(s.output=m);continue}}}(I==="["&&z()!==":"||I==="-"&&z()==="]")&&(I=`\\${I}`),I==="]"&&(U.value==="["||U.value==="[^")&&(I=`\\${I}`),r.posix===!0&&I==="!"&&U.value==="["&&(I="^"),U.value+=I,_({value:I});continue}if(N.quotes===1&&I!=='"'){I=St.escapeRegex(I),U.value+=I,_({value:I});continue}if(I==='"'){N.quotes=N.quotes===1?0:1,r.keepQuotes===!0&&H({type:"text",value:I});continue}if(I==="("){R("parens"),H({type:"paren",value:I});continue}if(I===")"){if(N.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Mn("opening","("));let J=K[K.length-1];if(J&&N.parens===J.parens+1){re(K.pop());continue}H({type:"paren",value:I,output:N.parens?")":"\\)"}),x("parens");continue}if(I==="["){if(r.nobracket===!0||!q().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Mn("closing","]"));I=`\\${I}`}else R("brackets");H({type:"bracket",value:I});continue}if(I==="]"){if(r.nobracket===!0||U&&U.type==="bracket"&&U.value.length===1){H({type:"text",value:I,output:`\\${I}`});continue}if(N.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Mn("opening","["));H({type:"text",value:I,output:`\\${I}`});continue}x("brackets");let J=U.value.slice(1);if(U.posix!==!0&&J[0]==="^"&&!J.includes("/")&&(I=`/${I}`),U.value+=I,_({value:I}),r.literalBrackets===!1||St.hasRegexChars(J))continue;let w=St.escapeRegex(U.value);if(N.output=N.output.slice(0,-U.value.length),r.literalBrackets===!0){N.output+=w,U.value=w;continue}U.value=`(${a}${w}|${U.value})`,N.output+=U.value;continue}if(I==="{"&&r.nobrace!==!0){R("braces");let J={type:"brace",value:I,output:"(",outputIndex:N.output.length,tokensIndex:N.tokens.length};te.push(J),H(J);continue}if(I==="}"){let J=te[te.length-1];if(r.nobrace===!0||!J){H({type:"text",value:I,output:I});continue}let w=")";if(J.dots===!0){let B=o.slice(),A=[];for(let X=B.length-1;X>=0&&(o.pop(),B[X].type!=="brace");X--)B[X].type!=="dots"&&A.unshift(B[X].value);w=JP(A,r),N.backtrack=!0}if(J.comma!==!0&&J.dots!==!0){let B=N.output.slice(0,J.outputIndex),A=N.tokens.slice(J.tokensIndex);J.value=J.output="\\{",I=w="\\}",N.output=B;for(let X of A)N.output+=X.output||X.value}H({type:"brace",value:I,output:w}),x("braces"),te.pop();continue}if(I==="|"){K.length>0&&K[K.length-1].conditions++,H({type:"text",value:I});continue}if(I===","){let J=I,w=te[te.length-1];w&&ne[ne.length-1]==="braces"&&(w.comma=!0,J="|"),H({type:"comma",value:I,output:J});continue}if(I==="/"){if(U.type==="dot"&&N.index===N.start+1){N.start=N.index+1,N.consumed="",N.output="",o.pop(),U=s;continue}H({type:"slash",value:I,output:d});continue}if(I==="."){if(N.braces>0&&U.type==="dot"){U.value==="."&&(U.output=h);let J=te[te.length-1];U.type="dots",U.output+=I,U.value+=I,J.dots=!0;continue}if(N.braces+N.parens===0&&U.type!=="bos"&&U.type!=="slash"){H({type:"text",value:I,output:h});continue}H({type:"dot",value:I,output:h});continue}if(I==="?"){if(!(U&&U.value==="(")&&r.noextglob!==!0&&z()==="("&&z(2)!=="?"){$("qmark",I);continue}if(U&&U.type==="paren"){let w=z(),B=I;if(w==="<"&&!St.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(U.value==="("&&!/[!=<:]/.test(w)||w==="<"&&!/<([!=]|\w+>)/.test(q()))&&(B=`\\${I}`),H({type:"text",value:I,output:B});continue}if(r.dot!==!0&&(U.type==="slash"||U.type==="bos")){H({type:"qmark",value:I,output:P});continue}H({type:"qmark",value:I,output:k});continue}if(I==="!"){if(r.noextglob!==!0&&z()==="("&&(z(2)!=="?"||!/[!=<:]/.test(z(3)))){$("negate",I);continue}if(r.nonegate!==!0&&N.index===0){E();continue}}if(I==="+"){if(r.noextglob!==!0&&z()==="("&&z(2)!=="?"){$("plus",I);continue}if(U&&U.value==="("||r.regex===!1){H({type:"plus",value:I,output:f});continue}if(U&&(U.type==="bracket"||U.type==="paren"||U.type==="brace")||N.parens>0){H({type:"plus",value:I});continue}H({type:"plus",value:f});continue}if(I==="@"){if(r.noextglob!==!0&&z()==="("&&z(2)!=="?"){H({type:"at",extglob:!0,value:I,output:""});continue}H({type:"text",value:I});continue}if(I!=="*"){(I==="$"||I==="^")&&(I=`\\${I}`);let J=KP.exec(q());J&&(I+=J[0],N.index+=J[0].length),H({type:"text",value:I});continue}if(U&&(U.type==="globstar"||U.star===!0)){U.type="star",U.star=!0,U.value+=I,U.output=W,N.backtrack=!0,N.globstar=!0,g(I);continue}let V=q();if(r.noextglob!==!0&&/^\([^?]/.test(V)){$("star",I);continue}if(U.type==="star"){if(r.noglobstar===!0){g(I);continue}let J=U.prev,w=J.prev,B=J.type==="slash"||J.type==="bos",A=w&&(w.type==="star"||w.type==="globstar");if(r.bash===!0&&(!B||V[0]&&V[0]!=="/")){H({type:"star",value:I,output:""});continue}let X=N.braces>0&&(J.type==="comma"||J.type==="brace"),b=K.length&&(J.type==="pipe"||J.type==="paren");if(!B&&J.type!=="paren"&&!X&&!b){H({type:"star",value:I,output:""});continue}for(;V.slice(0,3)==="/**";){let G=t[N.index+4];if(G&&G!=="/")break;V=V.slice(3),g("/**",3)}if(J.type==="bos"&&L()){U.type="globstar",U.value+=I,U.output=S(r),N.output=U.output,N.globstar=!0,g(I);continue}if(J.type==="slash"&&J.prev.type!=="bos"&&!A&&L()){N.output=N.output.slice(0,-(J.output+U.output).length),J.output=`(?:${J.output}`,U.type="globstar",U.output=S(r)+(r.strictSlashes?")":"|$)"),U.value+=I,N.globstar=!0,N.output+=J.output+U.output,g(I);continue}if(J.type==="slash"&&J.prev.type!=="bos"&&V[0]==="/"){let G=V[1]!==void 0?"|$":"";N.output=N.output.slice(0,-(J.output+U.output).length),J.output=`(?:${J.output}`,U.type="globstar",U.output=`${S(r)}${d}|${d}${G})`,U.value+=I,N.output+=J.output+U.output,N.globstar=!0,g(I+Z()),H({type:"slash",value:"/",output:""});continue}if(J.type==="bos"&&V[0]==="/"){U.type="globstar",U.value+=I,U.output=`(?:^|${d}|${S(r)}${d})`,N.output=U.output,N.globstar=!0,g(I+Z()),H({type:"slash",value:"/",output:""});continue}N.output=N.output.slice(0,-U.output.length),U.type="globstar",U.output=S(r),U.value+=I,N.output+=U.output,N.globstar=!0,g(I);continue}let he={type:"star",value:I,output:W};if(r.bash===!0){he.output=".*?",(U.type==="bos"||U.type==="slash")&&(he.output=D+he.output),H(he);continue}if(U&&(U.type==="bracket"||U.type==="paren")&&r.regex===!0){he.output=I,H(he);continue}(N.index===N.start||U.type==="slash"||U.type==="dot")&&(U.type==="dot"?(N.output+=v,U.output+=v):r.dot===!0?(N.output+=C,U.output+=C):(N.output+=D,U.output+=D),z()!=="*"&&(N.output+=m,U.output+=m)),H(he)}for(;N.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Mn("closing","]"));N.output=St.escapeLast(N.output,"["),x("brackets")}for(;N.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Mn("closing",")"));N.output=St.escapeLast(N.output,"("),x("parens")}for(;N.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Mn("closing","}"));N.output=St.escapeLast(N.output,"{"),x("braces")}if(r.strictSlashes!==!0&&(U.type==="star"||U.type==="bracket")&&H({type:"maybe_slash",value:"",output:`${d}?`}),N.backtrack===!0){N.output="";for(let V of N.tokens)N.output+=V.output!=null?V.output:V.value,V.suffix&&(N.output+=V.suffix)}return N};Ch.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(ja,r.maxLength):ja,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=X_[t]||t;let s=St.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:d,START_ANCHOR:m}=Ma.globChars(s),y=r.dot?h:l,p=r.dot?f:l,v=r.capture?"":"?:",C={negated:!1,prefix:""},k=r.bash===!0?".*?":d;r.capture&&(k=`(${k})`);let P=D=>D.noglobstar===!0?k:`(${v}(?:(?!${m}${D.dot?c:o}).)*?)`,F=D=>{switch(D){case"*":return`${y}${u}${k}`;case".*":return`${o}${u}${k}`;case"*.*":return`${y}${k}${o}${u}${k}`;case"*/*":return`${y}${k}${a}${u}${p}${k}`;case"**":return y+P(r);case"**/*":return`(?:${y}${P(r)}${a})?${p}${u}${k}`;case"**/*.*":return`(?:${y}${P(r)}${a})?${p}${k}${o}${u}${k}`;case"**/.*":return`(?:${y}${P(r)}${a})?${o}${u}${k}`;default:{let j=/^(.*?)\.(\w+)$/.exec(D);if(!j)return;let W=F(j[1]);return W?W+o+j[2]:void 0}}},M=St.removePrefix(t,C),S=F(M);return S&&r.strictSlashes!==!0&&(S+=`${a}?`),S};Q_.exports=Ch});var rb=T((b9,tb)=>{"use strict";var XP=require("path"),QP=J_(),Rh=eb(),Th=yo(),eI=mo(),tI=t=>t&&typeof t=="object"&&!Array.isArray(t),Ne=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(f=>Ne(f,e,r));return f=>{for(let d of l){let m=d(f);if(m)return m}return!1}}let i=tI(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=Th.isWindows(e),o=i?Ne.compileRe(t,e):Ne.makeRe(t,e,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(n.ignore){let l={...e,ignore:null,onMatch:null,onResult:null};u=Ne(n.ignore,l,r)}let c=(l,h=!1)=>{let{isMatch:f,match:d,output:m}=Ne.test(l,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:l,output:m,match:d,isMatch:f};return typeof n.onResult=="function"&&n.onResult(y),f===!1?(y.isMatch=!1,h?y:!1):u(l)?(typeof n.onIgnore=="function"&&n.onIgnore(y),y.isMatch=!1,h?y:!1):(typeof n.onMatch=="function"&&n.onMatch(y),h?y:!0)};return r&&(c.state=a),c};Ne.test=(t,e,r,{glob:i,posix:n}={})=>{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||(n?Th.toPosixSlashes:null),a=t===i,u=a&&o?o(t):t;return a===!1&&(u=o?o(t):t,a=u===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Ne.matchBase(t,e,r,n):a=e.exec(u)),{isMatch:!!a,match:a,output:u}};Ne.matchBase=(t,e,r,i=Th.isWindows(r))=>(e instanceof RegExp?e:Ne.makeRe(e,r)).test(XP.basename(t));Ne.isMatch=(t,e,r)=>Ne(e,r)(t);Ne.parse=(t,e)=>Array.isArray(t)?t.map(r=>Ne.parse(r,e)):Rh(t,{...e,fastpaths:!1});Ne.scan=(t,e)=>QP(t,e);Ne.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let u=Ne.toRegex(a,e);return i===!0&&(u.state=t),u};Ne.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=Rh.fastpaths(t,e)),n.output||(n=Rh(t,e)),Ne.compileRe(n,e,r,i)};Ne.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/$^/}};Ne.constants=eI;tb.exports=Ne});var nb=T((E9,ib)=>{"use strict";ib.exports=rb()});var cb=T((v9,ub)=>{"use strict";var ob=require("util"),ab=M_(),ur=nb(),kh=yo(),sb=t=>t===""||t==="./",Le=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=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 h=ur(String(e[l]),{...r,onResult:a},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let d of t){let m=h(d,!0);(f?!m.isMatch:m.isMatch)&&(f?i.add(m.output):(i.delete(m.output),n.add(m.output)))}}let c=(o===e.length?[...s]:[...n]).filter(l=>!i.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};Le.match=Le;Le.matcher=(t,e)=>ur(t,e);Le.isMatch=(t,e,r)=>ur(e,r)(t);Le.any=Le.isMatch;Le.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=a=>{r.onResult&&r.onResult(a),n.push(a.output)},o=new Set(Le(t,e,{...r,onResult:s}));for(let a of n)o.has(a)||i.add(a);return[...i]};Le.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${ob.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>Le.contains(t,i,r));if(typeof e=="string"){if(sb(t)||sb(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return Le.isMatch(t,e,{...r,contains:!0})};Le.matchKeys=(t,e,r)=>{if(!kh.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=Le(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};Le.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=ur(String(n),r);if(i.some(o=>s(o)))return!0}return!1};Le.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=ur(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};Le.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${ob.inspect(t)}"`);return[].concat(e).every(i=>ur(i,r)(t))};Le.capture=(t,e,r)=>{let i=kh.isWindows(r),s=ur.makeRe(String(t),{...r,capture:!0}).exec(i?kh.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Le.makeRe=(...t)=>ur.makeRe(...t);Le.scan=(...t)=>ur.scan(...t);Le.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of ab(String(i),e))r.push(ur.parse(n,e));return r};Le.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:ab(t,e)};Le.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Le.braces(t,{...e,expand:!0})};ub.exports=Le});var gb=T(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.matchAny=_e.convertPatternsToRe=_e.makeRe=_e.getPatternParts=_e.expandBraceExpansion=_e.expandPatternsWithBraceExpansion=_e.isAffectDepthOfReadingPattern=_e.endsWithSlashGlobStar=_e.hasGlobStar=_e.getBaseDirectory=_e.isPatternRelatedToParentDirectory=_e.getPatternsOutsideCurrentDirectory=_e.getPatternsInsideCurrentDirectory=_e.getPositivePatterns=_e.getNegativePatterns=_e.isPositivePattern=_e.isNegativePattern=_e.convertToNegativePattern=_e.convertToPositivePattern=_e.isDynamicPattern=_e.isStaticPattern=void 0;var rI=require("path"),iI=t_(),Oh=cb(),lb="**",nI="\\",sI=/[*?]|^!/,oI=/\[[^[]*]/,aI=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,uI=/[!*+?@]\([^(]*\)/,cI=/,|\.\./;function hb(t,e={}){return!fb(t,e)}_e.isStaticPattern=hb;function fb(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(nI)||sI.test(t)||oI.test(t)||aI.test(t)||e.extglob!==!1&&uI.test(t)||e.braceExpansion!==!1&&lI(t))}_e.isDynamicPattern=fb;function lI(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let i=t.slice(e,r);return cI.test(i)}function hI(t){return qa(t)?t.slice(1):t}_e.convertToPositivePattern=hI;function fI(t){return"!"+t}_e.convertToNegativePattern=fI;function qa(t){return t.startsWith("!")&&t[1]!=="("}_e.isNegativePattern=qa;function db(t){return!qa(t)}_e.isPositivePattern=db;function dI(t){return t.filter(qa)}_e.getNegativePatterns=dI;function pI(t){return t.filter(db)}_e.getPositivePatterns=pI;function mI(t){return t.filter(e=>!Fh(e))}_e.getPatternsInsideCurrentDirectory=mI;function yI(t){return t.filter(Fh)}_e.getPatternsOutsideCurrentDirectory=yI;function Fh(t){return t.startsWith("..")||t.startsWith("./..")}_e.isPatternRelatedToParentDirectory=Fh;function gI(t){return iI(t,{flipBackslashes:!1})}_e.getBaseDirectory=gI;function _I(t){return t.includes(lb)}_e.hasGlobStar=_I;function pb(t){return t.endsWith("/"+lb)}_e.endsWithSlashGlobStar=pb;function bI(t){let e=rI.basename(t);return pb(t)||hb(e)}_e.isAffectDepthOfReadingPattern=bI;function EI(t){return t.reduce((e,r)=>e.concat(mb(r)),[])}_e.expandPatternsWithBraceExpansion=EI;function mb(t){return Oh.braces(t,{expand:!0,nodupes:!0})}_e.expandBraceExpansion=mb;function vI(t,e){let{parts:r}=Oh.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}_e.getPatternParts=vI;function yb(t,e){return Oh.makeRe(t,e)}_e.makeRe=yb;function wI(t,e){return t.map(r=>yb(r,e))}_e.convertPatternsToRe=wI;function SI(t,e){return e.some(r=>r.test(t))}_e.matchAny=SI});var vb=T((S9,Eb)=>{"use strict";var xI=require("stream"),_b=xI.PassThrough,DI=Array.prototype.slice;Eb.exports=AI;function AI(){let t=[],e=DI.call(arguments),r=!1,i=e[e.length-1];i&&!Array.isArray(i)&&i.pipe==null?e.pop():i={};let n=i.end!==!1,s=i.pipeError===!0;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let o=_b(i);function a(){for(let l=0,h=arguments.length;l<h;l++)t.push(bb(arguments[l],i));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 h=l.length+1;function f(){--h>0||(r=!1,u())}function d(m){function y(){m.removeListener("merge2UnpipeEnd",y),m.removeListener("end",y),s&&m.removeListener("error",p),f()}function p(v){o.emit("error",v)}if(m._readableState.endEmitted)return f();m.on("merge2UnpipeEnd",y),m.on("end",y),s&&m.on("error",p),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<l.length;m++)d(l[m]);f()}function c(){r=!1,o.emit("queueDrain"),n&&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 bb(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=bb(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(_b(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Sb=T(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.merge=void 0;var CI=vb();function RI(t){let e=CI(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>wb(t)),e.once("end",()=>wb(t)),e}Ua.merge=RI;function wb(t){t.forEach(e=>e.emit("close"))}});var xb=T(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.isEmpty=jn.isString=void 0;function TI(t){return typeof t=="string"}jn.isString=TI;function kI(t){return t===""}jn.isEmpty=kI});var Fr=T(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.string=rt.stream=rt.pattern=rt.path=rt.fs=rt.errno=rt.array=void 0;var OI=Gg();rt.array=OI;var FI=Wg();rt.errno=FI;var PI=Vg();rt.fs=PI;var II=Yg();rt.path=II;var LI=gb();rt.pattern=LI;var BI=Sb();rt.stream=BI;var NI=xb();rt.string=NI});var Cb=T(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.convertPatternGroupToTask=it.convertPatternGroupsToTasks=it.groupPatternsByBaseDirectory=it.getNegativePatternsAsPositive=it.getPositivePatterns=it.convertPatternsToTasks=it.generate=void 0;var Pr=Fr();function MI(t,e){let r=Db(t),i=Ab(t,e.ignore),n=r.filter(u=>Pr.pattern.isStaticPattern(u,e)),s=r.filter(u=>Pr.pattern.isDynamicPattern(u,e)),o=Ph(n,i,!1),a=Ph(s,i,!0);return o.concat(a)}it.generate=MI;function Ph(t,e,r){let i=[],n=Pr.pattern.getPatternsOutsideCurrentDirectory(t),s=Pr.pattern.getPatternsInsideCurrentDirectory(t),o=Ih(n),a=Ih(s);return i.push(...Lh(o,e,r)),"."in a?i.push(Bh(".",s,e,r)):i.push(...Lh(a,e,r)),i}it.convertPatternsToTasks=Ph;function Db(t){return Pr.pattern.getPositivePatterns(t)}it.getPositivePatterns=Db;function Ab(t,e){return Pr.pattern.getNegativePatterns(t).concat(e).map(Pr.pattern.convertToPositivePattern)}it.getNegativePatternsAsPositive=Ab;function Ih(t){let e={};return t.reduce((r,i)=>{let n=Pr.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}it.groupPatternsByBaseDirectory=Ih;function Lh(t,e,r){return Object.keys(t).map(i=>Bh(i,t[i],e,r))}it.convertPatternGroupsToTasks=Lh;function Bh(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Pr.pattern.convertToNegativePattern))}}it.convertPatternGroupToTask=Bh});var Tb=T(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.removeDuplicateSlashes=qn.transform=void 0;var jI=/(?!^)\/{2,}/g;function qI(t){return t.map(e=>Rb(e))}qn.transform=qI;function Rb(t){return t.replace(jI,"/")}qn.removeDuplicateSlashes=Rb});var Ob=T(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.read=void 0;function UI(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){kb(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){Nh(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){kb(r,s);return}Nh(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Nh(r,o)})})}Ha.read=UI;function kb(t,e){t(e)}function Nh(t,e){t(null,e)}});var Fb=T($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.read=void 0;function HI(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let i=e.fs.statSync(t);return e.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw i}}$a.read=HI});var Pb=T(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.createFileSystemAdapter=oi.FILE_SYSTEM_ADAPTER=void 0;var za=require("fs");oi.FILE_SYSTEM_ADAPTER={lstat:za.lstat,stat:za.stat,lstatSync:za.lstatSync,statSync:za.statSync};function $I(t){return t===void 0?oi.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},oi.FILE_SYSTEM_ADAPTER),t)}oi.createFileSystemAdapter=$I});var Ib=T(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});var zI=Pb(),Mh=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=zI.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}};jh.default=Mh});var Wi=T(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.statSync=ai.stat=ai.Settings=void 0;var Lb=Ob(),GI=Fb(),qh=Ib();ai.Settings=qh.default;function WI(t,e,r){if(typeof e=="function"){Lb.read(t,Uh(),e);return}Lb.read(t,Uh(e),r)}ai.stat=WI;function VI(t,e){let r=Uh(e);return GI.read(t,r)}ai.statSync=VI;function Uh(t={}){return t instanceof qh.default?t:new qh.default(t)}});var Mb=T((I9,Nb)=>{var Bb;Nb.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(Bb||(Bb=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var qb=T((L9,jb)=>{jb.exports=KI;var YI=Mb();function KI(t,e){let r,i,n,s=!0;Array.isArray(t)?(r=[],i=t.length):(n=Object.keys(t),r={},i=n.length);function o(u){function c(){e&&e(u,r),e=null}s?YI(c):c()}function a(u,c,l){r[u]=l,(--i===0||c)&&o(c)}i?n?n.forEach(function(u){t[u](function(c,l){a(u,c,l)})}):t.forEach(function(u,c){u(function(l,h){a(c,l,h)})}):o(null),s=!1}});var Hh=T(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Ga=process.versions.node.split(".");if(Ga[0]===void 0||Ga[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Ub=Number.parseInt(Ga[0],10),ZI=Number.parseInt(Ga[1],10),Hb=10,JI=10,XI=Ub>Hb,QI=Ub===Hb&&ZI>=JI;Wa.IS_SUPPORT_READDIR_WITH_FILE_TYPES=XI||QI});var $b=T(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.createDirentFromStats=void 0;var $h=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 eL(t,e){return new $h(t,e)}Va.createDirentFromStats=eL});var zh=T(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.fs=void 0;var tL=$b();Ya.fs=tL});var Gh=T(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.joinPathSegments=void 0;function rL(t,e,r){return t.endsWith(r)?t+e:t+r+e}Ka.joinPathSegments=rL});var Kb=T(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.readdir=ui.readdirWithFileTypes=ui.read=void 0;var iL=Wi(),zb=qb(),nL=Hh(),Gb=zh(),Wb=Gh();function sL(t,e,r){if(!e.stats&&nL.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Vb(t,e,r);return}Yb(t,e,r)}ui.read=sL;function Vb(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){Za(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:Wb.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Wh(r,s);return}let o=s.map(a=>oL(a,e));zb(o,(a,u)=>{if(a!==null){Za(r,a);return}Wh(r,u)})})}ui.readdirWithFileTypes=Vb;function oL(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(i,n)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){r(i);return}r(null,t);return}t.dirent=Gb.fs.createDirentFromStats(t.name,n),r(null,t)})}}function Yb(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){Za(r,i);return}let s=n.map(o=>{let a=Wb.joinPathSegments(t,o,e.pathSegmentSeparator);return u=>{iL.stat(a,e.fsStatSettings,(c,l)=>{if(c!==null){u(c);return}let h={name:o,path:a,dirent:Gb.fs.createDirentFromStats(o,l)};e.stats&&(h.stats=l),u(null,h)})}});zb(s,(o,a)=>{if(o!==null){Za(r,o);return}Wh(r,a)})})}ui.readdir=Yb;function Za(t,e){t(e)}function Wh(t,e){t(null,e)}});var eE=T(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.readdir=ci.readdirWithFileTypes=ci.read=void 0;var aL=Wi(),uL=Hh(),Zb=zh(),Jb=Gh();function cL(t,e){return!e.stats&&uL.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Xb(t,e):Qb(t,e)}ci.read=cL;function Xb(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:Jb.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=Zb.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}ci.readdirWithFileTypes=Xb;function Qb(t,e){return e.fs.readdirSync(t).map(i=>{let n=Jb.joinPathSegments(t,i,e.pathSegmentSeparator),s=aL.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:Zb.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}ci.readdir=Qb});var tE=T(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.createFileSystemAdapter=li.FILE_SYSTEM_ADAPTER=void 0;var Un=require("fs");li.FILE_SYSTEM_ADAPTER={lstat:Un.lstat,stat:Un.stat,lstatSync:Un.lstatSync,statSync:Un.statSync,readdir:Un.readdir,readdirSync:Un.readdirSync};function lL(t){return t===void 0?li.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},li.FILE_SYSTEM_ADAPTER),t)}li.createFileSystemAdapter=lL});var rE=T(Yh=>{"use strict";Object.defineProperty(Yh,"__esModule",{value:!0});var hL=require("path"),fL=Wi(),dL=tE(),Vh=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=dL.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,hL.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new fL.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Yh.default=Vh});var Ja=T(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.Settings=hi.scandirSync=hi.scandir=void 0;var iE=Kb(),pL=eE(),Kh=rE();hi.Settings=Kh.default;function mL(t,e,r){if(typeof e=="function"){iE.read(t,Zh(),e);return}iE.read(t,Zh(e),r)}hi.scandir=mL;function yL(t,e){let r=Zh(e);return pL.read(t,r)}hi.scandirSync=yL;function Zh(t={}){return t instanceof Kh.default?t:new Kh.default(t)}});var sE=T((G9,nE)=>{"use strict";function gL(t){var e=new t,r=e;function i(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function n(s){r.next=s,r=s}return{get:i,release:n}}nE.exports=gL});var aE=T((W9,Jh)=>{"use strict";var _L=sE();function oE(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 i=_L(bL),n=null,s=null,o=0,a=null,u={push:y,drain:Bt,saturated:Bt,pause:l,paused:!1,concurrency:r,running:c,resume:d,idle:m,length:h,getQueue:f,unshift:p,empty:Bt,kill:C,killAndDrain:k,error:P};return u;function c(){return o}function l(){u.paused=!0}function h(){for(var F=n,M=0;F;)F=F.next,M++;return M}function f(){for(var F=n,M=[];F;)M.push(F.value),F=F.next;return M}function d(){if(u.paused){u.paused=!1;for(var F=0;F<u.concurrency;F++)o++,v()}}function m(){return o===0&&u.length()===0}function y(F,M){var S=i.get();S.context=t,S.release=v,S.value=F,S.callback=M||Bt,S.errorHandler=a,o===u.concurrency||u.paused?s?(s.next=S,s=S):(n=S,s=S,u.saturated()):(o++,e.call(t,S.value,S.worked))}function p(F,M){var S=i.get();S.context=t,S.release=v,S.value=F,S.callback=M||Bt,o===u.concurrency||u.paused?n?(S.next=n,n=S):(n=S,s=S,u.saturated()):(o++,e.call(t,S.value,S.worked))}function v(F){F&&i.release(F);var M=n;M?u.paused?o--:(s===n&&(s=null),n=M.next,M.next=null,e.call(t,M.value,M.worked),s===null&&u.empty()):--o===0&&u.drain()}function C(){n=null,s=null,u.drain=Bt}function k(){n=null,s=null,u.drain(),u.drain=Bt}function P(F){a=F}}function Bt(){}function bL(){this.value=null,this.callback=Bt,this.next=null,this.release=Bt,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var n=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=Bt,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function EL(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(l,h){e.call(this,l).then(function(f){h(null,f)},h)}var n=oE(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=u,n.drained=c,n;function a(l){var h=new Promise(function(f,d){s(l,function(m,y){if(m){d(m);return}f(y)})});return h.catch(Bt),h}function u(l){var h=new Promise(function(f,d){o(l,function(m,y){if(m){d(m);return}f(y)})});return h.catch(Bt),h}function c(){var l=n.drain,h=new Promise(function(f){n.drain=function(){l(),f()}});return h}}Jh.exports=oE;Jh.exports.promise=EL});var Xa=T(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.joinPathSegments=cr.replacePathSegmentSeparator=cr.isAppliedFilter=cr.isFatalError=void 0;function vL(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}cr.isFatalError=vL;function wL(t,e){return t===null||t(e)}cr.isAppliedFilter=wL;function SL(t,e){return t.split(/[/\\]/).join(e)}cr.replacePathSegmentSeparator=SL;function xL(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}cr.joinPathSegments=xL});var ef=T(Qh=>{"use strict";Object.defineProperty(Qh,"__esModule",{value:!0});var DL=Xa(),Xh=class{constructor(e,r){this._root=e,this._settings=r,this._root=DL.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Qh.default=Xh});var nf=T(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});var AL=require("events"),CL=Ja(),RL=aE(),Qa=Xa(),TL=ef(),tf=class extends TL.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=CL.scandir,this._emitter=new AL.EventEmitter,this._queue=RL(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 i={directory:e,base:r};this._queue.push(i,n=>{n!==null&&this._handleError(n)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(i,n)=>{if(i!==null){r(i,void 0);return}for(let s of n)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Qa.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 i=e.path;r!==void 0&&(e.path=Qa.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Qa.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Qa.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};rf.default=tf});var uE=T(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});var kL=nf(),sf=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new kL.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{OL(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{FL(e,this._storage)}),this._reader.read()}};of.default=sf;function OL(t,e){t(e)}function FL(t,e){t(null,e)}});var cE=T(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});var PL=require("stream"),IL=nf(),af=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new IL.default(this._root,this._settings),this._stream=new PL.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}};uf.default=af});var lE=T(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});var LL=Ja(),eu=Xa(),BL=ef(),cf=class extends BL.default{constructor(){super(...arguments),this._scandir=LL.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 i=this._scandir(e,this._settings.fsScandirSettings);for(let n of i)this._handleEntry(n,r)}catch(i){this._handleError(i)}}_handleError(e){if(eu.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=eu.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),eu.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&eu.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};lf.default=cf});var hE=T(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});var NL=lE(),hf=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new NL.default(this._root,this._settings)}read(){return this._reader.read()}};ff.default=hf});var fE=T(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});var ML=require("path"),jL=Ja(),df=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,ML.sep),this.fsScandirSettings=new jL.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}};pf.default=df});var ru=T(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.Settings=lr.walkStream=lr.walkSync=lr.walk=void 0;var dE=uE(),qL=cE(),UL=hE(),mf=fE();lr.Settings=mf.default;function HL(t,e,r){if(typeof e=="function"){new dE.default(t,tu()).read(e);return}new dE.default(t,tu(e)).read(r)}lr.walk=HL;function $L(t,e){let r=tu(e);return new UL.default(t,r).read()}lr.walkSync=$L;function zL(t,e){let r=tu(e);return new qL.default(t,r).read()}lr.walkStream=zL;function tu(t={}){return t instanceof mf.default?t:new mf.default(t)}});var iu=T(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});var GL=require("path"),WL=Wi(),pE=Fr(),yf=class{constructor(e){this._settings=e,this._fsStatSettings=new WL.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return GL.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:pE.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!pE.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};gf.default=yf});var Ef=T(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});var VL=require("stream"),YL=Wi(),KL=ru(),ZL=iu(),_f=class extends ZL.default{constructor(){super(...arguments),this._walkStream=KL.walkStream,this._stat=YL.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new VL.PassThrough({objectMode:!0});n._write=(s,o,a)=>this._getEntry(i[s],e[s],r).then(u=>{u!==null&&r.entryFilter(u)&&n.push(u),s===i.length-1&&n.end(),a()}).catch(a);for(let s=0;s<i.length;s++)n.write(s);return n}_getEntry(e,r,i){return this._getStat(e).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?r(s):i(n))})}};bf.default=_f});var mE=T(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});var JL=ru(),XL=iu(),QL=Ef(),vf=class extends XL.default{constructor(){super(...arguments),this._walkAsync=JL.walk,this._readerStream=new QL.default(this._settings)}dynamic(e,r){return new Promise((i,n)=>{this._walkAsync(e,r,(s,o)=>{s===null?i(o):n(s)})})}async static(e,r){let i=[],n=this._readerStream.static(e,r);return new Promise((s,o)=>{n.once("error",o),n.on("data",a=>i.push(a)),n.once("end",()=>s(i))})}};wf.default=vf});var yE=T(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});var Hn=Fr(),Sf=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Hn.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let i=this._getPatternSegments(r),n=this._splitSegmentsIntoSections(i);this._storage.push({complete:n.length<=1,pattern:r,segments:i,sections:n})}}_getPatternSegments(e){return Hn.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Hn.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Hn.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Hn.array.splitWhen(e,r=>r.dynamic&&Hn.pattern.hasGlobStar(r.pattern))}};xf.default=Sf});var gE=T(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});var e2=yE(),Df=class extends e2.default{match(e){let r=e.split("/"),i=r.length,n=this._storage.filter(s=>!s.complete||s.segments.length>i);for(let s of n){let o=s.sections[0];if(!s.complete&&i>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}};Af.default=Df});var _E=T(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});var nu=Fr(),t2=gE(),Cf=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,i){let n=this._getMatcher(r),s=this._getNegativePatternsRe(i);return o=>this._filter(e,o,n,s)}_getMatcher(e){return new t2.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(nu.pattern.isAffectDepthOfReadingPattern);return nu.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=nu.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,i)?!1:this._isSkippedByNegativePatterns(s,n)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let i=r.split("/").length;if(e==="")return i;let n=e.split("/").length;return i-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!nu.pattern.matchAny(e,r)}};Rf.default=Cf});var bE=T(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});var Vi=Fr(),Tf=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=Vi.pattern.convertPatternsToRe(e,this._micromatchOptions),n=Vi.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,i,n)}_filter(e,r,i){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,i))return!1;let n=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(n,r,s)&&!this._isMatchToPatterns(e.path,i,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 i=Vi.path.makeAbsolute(this._settings.cwd,e);return Vi.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=Vi.path.removeLeadingDotSegment(e),s=Vi.pattern.matchAny(n,r);return!s&&i?Vi.pattern.matchAny(n+"/",r):s}};kf.default=Tf});var EE=T(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});var r2=Fr(),Of=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return r2.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Ff.default=Of});var wE=T(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});var vE=Fr(),Pf=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=vE.path.makeAbsolute(this._settings.cwd,r),r=vE.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};If.default=Pf});var su=T(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});var i2=require("path"),n2=_E(),s2=bE(),o2=EE(),a2=wE(),Lf=class{constructor(e){this._settings=e,this.errorFilter=new o2.default(this._settings),this.entryFilter=new s2.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new n2.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new a2.default(this._settings)}_getRootDirectory(e){return i2.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}}};Bf.default=Lf});var SE=T(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});var u2=mE(),c2=su(),Nf=class extends c2.default{constructor(){super(...arguments),this._reader=new u2.default(this._settings)}async read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return(await this.api(r,e,i)).map(s=>i.transform(s))}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};Mf.default=Nf});var xE=T(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});var l2=require("stream"),h2=Ef(),f2=su(),jf=class extends f2.default{constructor(){super(...arguments),this._reader=new h2.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new l2.Readable({objectMode:!0,read:()=>{}});return n.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",i.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>n.destroy()),s}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};qf.default=jf});var DE=T(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});var d2=Wi(),p2=ru(),m2=iu(),Uf=class extends m2.default{constructor(){super(...arguments),this._walkSync=p2.walkSync,this._statSync=d2.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let i=[];for(let n of e){let s=this._getFullEntryPath(n),o=this._getEntry(s,n,r);o===null||!r.entryFilter(o)||i.push(o)}return i}_getEntry(e,r,i){try{let n=this._getStat(e);return this._makeEntry(n,r)}catch(n){if(i.errorFilter(n))return null;throw n}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Hf.default=Uf});var AE=T(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});var y2=DE(),g2=su(),$f=class extends g2.default{constructor(){super(...arguments),this._reader=new y2.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return this.api(r,e,i).map(i.transform)}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};zf.default=$f});var CE=T(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var $n=require("fs"),_2=require("os"),b2=Math.max(_2.cpus().length,1);zn.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:$n.lstat,lstatSync:$n.lstatSync,stat:$n.stat,statSync:$n.statSync,readdir:$n.readdir,readdirSync:$n.readdirSync};var Gf=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,b2),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({},zn.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};zn.default=Gf});var ou=T((g$,kE)=>{"use strict";var RE=Cb(),TE=Tb(),E2=SE(),v2=xE(),w2=AE(),Wf=CE(),Yi=Fr();async function Vf(t,e){Gn(t);let r=Yf(t,E2.default,e),i=await Promise.all(r);return Yi.array.flatten(i)}(function(t){function e(o,a){Gn(o);let u=Yf(o,w2.default,a);return Yi.array.flatten(u)}t.sync=e;function r(o,a){Gn(o);let u=Yf(o,v2.default,a);return Yi.stream.merge(u)}t.stream=r;function i(o,a){Gn(o);let u=TE.transform([].concat(o)),c=new Wf.default(a);return RE.generate(u,c)}t.generateTasks=i;function n(o,a){Gn(o);let u=new Wf.default(a);return Yi.pattern.isDynamicPattern(o,u)}t.isDynamicPattern=n;function s(o){return Gn(o),Yi.path.escape(o)}t.escapePath=s})(Vf||(Vf={}));function Yf(t,e,r){let i=TE.transform([].concat(t)),n=new Wf.default(r),s=RE.generate(i,n),o=new e(n);return s.map(o.read,o)}function Gn(t){if(![].concat(t).every(i=>Yi.string.isString(i)&&!Yi.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}kE.exports=Vf});var FE=T((_$,Kf)=>{"use strict";var OE=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Kf.exports=OE;Kf.exports.default=OE});var Zf=T((b$,uu)=>{"use strict";var S2=FE(),au=new WeakMap,PE=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,n=t.displayName||t.name||"<anonymous>",s=function(...o){if(au.set(s,++i),i===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return r};return S2(s,t),au.set(s,i),s};uu.exports=PE;uu.exports.default=PE;uu.exports.callCount=t=>{if(!au.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return au.get(t)}});var IE=T((E$,cu)=>{cu.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&cu.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&cu.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Qf=T((v$,Yn)=>{var Be=global.process,Ki=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"};Ki(Be)?(LE=require("assert"),Wn=IE(),BE=/^win/i.test(Be.platform),_o=require("events"),typeof _o!="function"&&(_o=_o.EventEmitter),Be.__signal_exit_emitter__?We=Be.__signal_exit_emitter__:(We=Be.__signal_exit_emitter__=new _o,We.count=0,We.emitted={}),We.infinite||(We.setMaxListeners(1/0),We.infinite=!0),Yn.exports=function(t,e){if(!Ki(global.process))return function(){};LE.equal(typeof t,"function","a callback must be provided for exit handler"),Vn===!1&&Jf();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){We.removeListener(r,t),We.listeners("exit").length===0&&We.listeners("afterexit").length===0&&lu()};return We.on(r,t),i},lu=function(){!Vn||!Ki(global.process)||(Vn=!1,Wn.forEach(function(e){try{Be.removeListener(e,hu[e])}catch{}}),Be.emit=fu,Be.reallyExit=Xf,We.count-=1)},Yn.exports.unload=lu,Zi=function(e,r,i){We.emitted[e]||(We.emitted[e]=!0,We.emit(e,r,i))},hu={},Wn.forEach(function(t){hu[t]=function(){if(Ki(global.process)){var r=Be.listeners(t);r.length===We.count&&(lu(),Zi("exit",null,t),Zi("afterexit",null,t),BE&&t==="SIGHUP"&&(t="SIGINT"),Be.kill(Be.pid,t))}}}),Yn.exports.signals=function(){return Wn},Vn=!1,Jf=function(){Vn||!Ki(global.process)||(Vn=!0,We.count+=1,Wn=Wn.filter(function(e){try{return Be.on(e,hu[e]),!0}catch{return!1}}),Be.emit=ME,Be.reallyExit=NE)},Yn.exports.load=Jf,Xf=Be.reallyExit,NE=function(e){Ki(global.process)&&(Be.exitCode=e||0,Zi("exit",Be.exitCode,null),Zi("afterexit",Be.exitCode,null),Xf.call(Be,Be.exitCode))},fu=Be.emit,ME=function(e,r){if(e==="exit"&&Ki(global.process)){r!==void 0&&(Be.exitCode=r);var i=fu.apply(this,arguments);return Zi("exit",Be.exitCode,null),Zi("afterexit",Be.exitCode,null),i}else return fu.apply(this,arguments)}):Yn.exports=function(){return function(){}};var LE,Wn,BE,_o,We,lu,Zi,hu,Vn,Jf,Xf,NE,fu,ME});var qE=T((w$,jE)=>{"use strict";var x2=Zf(),D2=Qf();jE.exports=x2(()=>{D2(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var UE=T(Kn=>{"use strict";var A2=qE(),du=!1;Kn.show=(t=process.stderr)=>{t.isTTY&&(du=!1,t.write("\x1B[?25h"))};Kn.hide=(t=process.stderr)=>{t.isTTY&&(A2(),du=!0,t.write("\x1B[?25l"))};Kn.toggle=(t,e)=>{t!==void 0&&(du=t),du?Kn.show(e):Kn.hide(e)}});var HE=T((x$,C2)=>{C2.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 GE=T((D$,zE)=>{"use strict";var pu=Object.assign({},HE()),$E=Object.keys(pu);Object.defineProperty(pu,"random",{get(){let t=Math.floor(Math.random()*$E.length),e=$E[t];return pu[e]}});zE.exports=pu});var VE=T((A$,WE)=>{"use strict";var fi=require("chalk"),R2=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",T2={info:fi.blue("\u2139"),success:fi.green("\u2714"),warning:fi.yellow("\u26A0"),error:fi.red("\u2716")},k2={info:fi.blue("i"),success:fi.green("\u221A"),warning:fi.yellow("\u203C"),error:fi.red("\xD7")};WE.exports=R2?T2:k2});var KE=T((C$,YE)=>{"use strict";YE.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 JE=T((R$,ZE)=>{"use strict";var O2=KE();ZE.exports=t=>typeof t=="string"?t.replace(O2(),""):t});var XE=T((T$,mu)=>{var F2=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 h=[],f=[],d=typeof Buffer!="undefined";typeof a=="undefined"&&(a=!0),typeof u=="undefined"&&(u=1/0);function m(y,p){if(y===null)return null;if(p==0)return y;var v,C;if(typeof y!="object")return y;if(t.__isArray(y))v=[];else if(t.__isRegExp(y))v=new RegExp(y.source,s(y)),y.lastIndex&&(v.lastIndex=y.lastIndex);else if(t.__isDate(y))v=new Date(y.getTime());else{if(d&&Buffer.isBuffer(y))return Buffer.allocUnsafe?v=Buffer.allocUnsafe(y.length):v=new Buffer(y.length),y.copy(v),v;typeof c=="undefined"?(C=Object.getPrototypeOf(y),v=Object.create(C)):(v=Object.create(c),C=c)}if(a){var k=h.indexOf(y);if(k!=-1)return f[k];h.push(y),f.push(v)}for(var P in y){var F;C&&(F=Object.getOwnPropertyDescriptor(C,P)),!(F&&F.set==null)&&(v[P]=m(y[P],p-1))}return v}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 i(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=i;function n(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=n;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 mu=="object"&&mu.exports&&(mu.exports=F2)});var ev=T((k$,QE)=>{var P2=XE();QE.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]=="undefined"&&(t[r]=P2(e[r]))}),t}});var rv=T((O$,tv)=>{tv.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 ov=T((F$,ed)=>{"use strict";var I2=ev(),bo=rv(),nv={nul:0,control:0};ed.exports=function(e){return sv(e,nv)};ed.exports.config=function(t){return t=I2(t||{},nv),function(r){return sv(r,t)}};function sv(t,e){if(typeof t!="string")return iv(t,e);for(var r=0,i=0;i<t.length;i++){var n=iv(t.charCodeAt(i),e);if(n<0)return-1;r+=n}return r}function iv(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:L2(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 L2(t){var e=0,r=bo.length-1,i;if(t<bo[0][0]||t>bo[r][1])return!1;for(;r>=e;)if(i=Math.floor((e+r)/2),t>bo[i][1])e=i+1;else if(t<bo[i][0])r=i-1;else return!0;return!1}});var uv=T((P$,av)=>{"use strict";av.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var lv=T((I$,cv)=>{var td=require("stream");cv.exports=Ve;function Ve(t){td.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}Ve.prototype=Object.create(td.prototype);Object.defineProperty(Ve.prototype,"constructor",{value:Ve,enumerable:!1});Ve.prototype.mute=function(){this.muted=!0};Ve.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Ve.prototype,"_onpipe",{value:B2,enumerable:!1,writable:!0,configurable:!0});function B2(t){this._src=t}Object.defineProperty(Ve.prototype,"isTTY",{get:N2,set:M2,enumerable:!0,configurable:!0});function N2(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function M2(t){Object.defineProperty(this,"isTTY",{value:t,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Ve.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Ve.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Ve.prototype.pipe=function(t,e){return this._dest=t,td.prototype.pipe.call(this,t,e)};Ve.prototype.pause=function(){if(this._src)return this._src.pause()};Ve.prototype.resume=function(){if(this._src)return this._src.resume()};Ve.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)};Ve.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 rd(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)}}Ve.prototype.destroy=rd("destroy");Ve.prototype.destroySoon=rd("destroySoon");Ve.prototype.close=rd("close")});var vu=T((L$,sd)=>{"use strict";var j2=require("readline"),q2=require("chalk"),hv=UE(),yu=GE(),gu=VE(),U2=JE(),H2=ov(),$2=uv(),z2=lv(),id=Symbol("text"),_u=Symbol("prefixText"),G2=3,nd=class{constructor(){this.requests=0,this.mutedStream=new z2,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let e=this;this.ourEmit=function(r,i,...n){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&i.includes(G2)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,i,...n])}else Reflect.apply(process.stdin.emit,this,[r,i,...n])}}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=j2.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)}},bu,Eu=class{constructor(e){bu||(bu=new nd),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:$2({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=yu.line;else if(e===void 0)this._spinner=yu.dots;else if(yu[e])this._spinner=yu[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[id]}get prefixText(){return this[_u]}get isSpinning(){return this.id!==void 0}updateLineCount(){let e=this.stream.columns||80,r=typeof this[_u]=="string"?this[_u]+"-":"";this.lineCount=U2(r+"--"+this[id]).split(`
|
4
|
-
`).reduce((i,n)=>i+Math.max(1,Math.ceil(
|
5
|
-
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&
|
6
|
-
`),this}},W2=function(t){return new Eu(t)};sd.exports=W2;sd.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new Eu(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var fv=T((B$,wu)=>{(function(t){var e=/^\s+/,r=/\s+$/,i=0,n=t.round,s=t.min,o=t.max,a=t.random;function u(w,B){if(w=w||"",B=B||{},w instanceof u)return w;if(!(this instanceof u))return new u(w,B);var A=c(w);this._originalInput=w,this._r=A.r,this._g=A.g,this._b=A.b,this._a=A.a,this._roundA=n(100*this._a)/100,this._format=B.format||A.format,this._gradientType=B.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=A.ok,this._tc_id=i++}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 w=this.toRgb();return(w.r*299+w.g*587+w.b*114)/1e3},getLuminance:function(){var w=this.toRgb(),B,A,X,b,G,ee;return B=w.r/255,A=w.g/255,X=w.b/255,B<=.03928?b=B/12.92:b=t.pow((B+.055)/1.055,2.4),A<=.03928?G=A/12.92:G=t.pow((A+.055)/1.055,2.4),X<=.03928?ee=X/12.92:ee=t.pow((X+.055)/1.055,2.4),.2126*b+.7152*G+.0722*ee},setAlpha:function(w){return this._a=z(w),this._roundA=n(100*this._a)/100,this},toHsv:function(){var w=d(this._r,this._g,this._b);return{h:w.h*360,s:w.s,v:w.v,a:this._a}},toHsvString:function(){var w=d(this._r,this._g,this._b),B=n(w.h*360),A=n(w.s*100),X=n(w.v*100);return this._a==1?"hsv("+B+", "+A+"%, "+X+"%)":"hsva("+B+", "+A+"%, "+X+"%, "+this._roundA+")"},toHsl:function(){var w=h(this._r,this._g,this._b);return{h:w.h*360,s:w.s,l:w.l,a:this._a}},toHslString:function(){var w=h(this._r,this._g,this._b),B=n(w.h*360),A=n(w.s*100),X=n(w.l*100);return this._a==1?"hsl("+B+", "+A+"%, "+X+"%)":"hsla("+B+", "+A+"%, "+X+"%, "+this._roundA+")"},toHex:function(w){return y(this._r,this._g,this._b,w)},toHexString:function(w){return"#"+this.toHex(w)},toHex8:function(w){return p(this._r,this._g,this._b,this._a,w)},toHex8String:function(w){return"#"+this.toHex8(w)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(Z(this._r,255)*100)+"%",g:n(Z(this._g,255)*100)+"%",b:n(Z(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(Z(this._r,255)*100)+"%, "+n(Z(this._g,255)*100)+"%, "+n(Z(this._b,255)*100)+"%)":"rgba("+n(Z(this._r,255)*100)+"%, "+n(Z(this._g,255)*100)+"%, "+n(Z(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:I[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(w){var B="#"+v(this._r,this._g,this._b,this._a),A=B,X=this._gradientType?"GradientType = 1, ":"";if(w){var b=u(w);A="#"+v(b._r,b._g,b._b,b._a)}return"progid:DXImageTransform.Microsoft.gradient("+X+"startColorstr="+B+",endColorstr="+A+")"},toString:function(w){var B=!!w;w=w||this._format;var A=!1,X=this._a<1&&this._a>=0,b=!B&&X&&(w==="hex"||w==="hex6"||w==="hex3"||w==="hex4"||w==="hex8"||w==="name");return b?w==="name"&&this._a===0?this.toName():this.toRgbString():(w==="rgb"&&(A=this.toRgbString()),w==="prgb"&&(A=this.toPercentageRgbString()),(w==="hex"||w==="hex6")&&(A=this.toHexString()),w==="hex3"&&(A=this.toHexString(!0)),w==="hex4"&&(A=this.toHex8String(!0)),w==="hex8"&&(A=this.toHex8String()),w==="name"&&(A=this.toName()),w==="hsl"&&(A=this.toHslString()),w==="hsv"&&(A=this.toHsvString()),A||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(w,B){var A=w.apply(null,[this].concat([].slice.call(B)));return this._r=A._r,this._g=A._g,this._b=A._b,this.setAlpha(A._a),this},lighten:function(){return this._applyModification(F,arguments)},brighten:function(){return this._applyModification(M,arguments)},darken:function(){return this._applyModification(S,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(P,arguments)},spin:function(){return this._applyModification(D,arguments)},_applyCombination:function(w,B){return w.apply(null,[this].concat([].slice.call(B)))},analogous:function(){return this._applyCombination(te,arguments)},complement:function(){return this._applyCombination(j,arguments)},monochromatic:function(){return this._applyCombination(ne,arguments)},splitcomplement:function(){return this._applyCombination(K,arguments)},triad:function(){return this._applyCombination(W,arguments)},tetrad:function(){return this._applyCombination(N,arguments)}},u.fromRatio=function(w,B){if(typeof w=="object"){var A={};for(var X in w)w.hasOwnProperty(X)&&(X==="a"?A[X]=w[X]:A[X]=x(w[X]));w=A}return u(w,B)};function c(w){var B={r:0,g:0,b:0},A=1,X=null,b=null,G=null,ee=!1,le=!1;return typeof w=="string"&&(w=he(w)),typeof w=="object"&&(V(w.r)&&V(w.g)&&V(w.b)?(B=l(w.r,w.g,w.b),ee=!0,le=String(w.r).substr(-1)==="%"?"prgb":"rgb"):V(w.h)&&V(w.s)&&V(w.v)?(X=x(w.s),b=x(w.v),B=m(w.h,X,b),ee=!0,le="hsv"):V(w.h)&&V(w.s)&&V(w.l)&&(X=x(w.s),G=x(w.l),B=f(w.h,X,G),ee=!0,le="hsl"),w.hasOwnProperty("a")&&(A=w.a)),A=z(A),{ok:ee,format:w.format||le,r:s(255,o(B.r,0)),g:s(255,o(B.g,0)),b:s(255,o(B.b,0)),a:A}}function l(w,B,A){return{r:Z(w,255)*255,g:Z(B,255)*255,b:Z(A,255)*255}}function h(w,B,A){w=Z(w,255),B=Z(B,255),A=Z(A,255);var X=o(w,B,A),b=s(w,B,A),G,ee,le=(X+b)/2;if(X==b)G=ee=0;else{var pe=X-b;switch(ee=le>.5?pe/(2-X-b):pe/(X+b),X){case w:G=(B-A)/pe+(B<A?6:0);break;case B:G=(A-w)/pe+2;break;case A:G=(w-B)/pe+4;break}G/=6}return{h:G,s:ee,l:le}}function f(w,B,A){var X,b,G;w=Z(w,360),B=Z(B,100),A=Z(A,100);function ee(Se,xe,we){return we<0&&(we+=1),we>1&&(we-=1),we<1/6?Se+(xe-Se)*6*we:we<1/2?xe:we<2/3?Se+(xe-Se)*(2/3-we)*6:Se}if(B===0)X=b=G=A;else{var le=A<.5?A*(1+B):A+B-A*B,pe=2*A-le;X=ee(pe,le,w+1/3),b=ee(pe,le,w),G=ee(pe,le,w-1/3)}return{r:X*255,g:b*255,b:G*255}}function d(w,B,A){w=Z(w,255),B=Z(B,255),A=Z(A,255);var X=o(w,B,A),b=s(w,B,A),G,ee,le=X,pe=X-b;if(ee=X===0?0:pe/X,X==b)G=0;else{switch(X){case w:G=(B-A)/pe+(B<A?6:0);break;case B:G=(A-w)/pe+2;break;case A:G=(w-B)/pe+4;break}G/=6}return{h:G,s:ee,v:le}}function m(w,B,A){w=Z(w,360)*6,B=Z(B,100),A=Z(A,100);var X=t.floor(w),b=w-X,G=A*(1-B),ee=A*(1-b*B),le=A*(1-(1-b)*B),pe=X%6,Se=[A,ee,G,G,le,A][pe],xe=[le,A,A,ee,G,G][pe],we=[G,G,le,A,A,ee][pe];return{r:Se*255,g:xe*255,b:we*255}}function y(w,B,A,X){var b=[R(n(w).toString(16)),R(n(B).toString(16)),R(n(A).toString(16))];return X&&b[0].charAt(0)==b[0].charAt(1)&&b[1].charAt(0)==b[1].charAt(1)&&b[2].charAt(0)==b[2].charAt(1)?b[0].charAt(0)+b[1].charAt(0)+b[2].charAt(0):b.join("")}function p(w,B,A,X,b){var G=[R(n(w).toString(16)),R(n(B).toString(16)),R(n(A).toString(16)),R(H(X))];return b&&G[0].charAt(0)==G[0].charAt(1)&&G[1].charAt(0)==G[1].charAt(1)&&G[2].charAt(0)==G[2].charAt(1)&&G[3].charAt(0)==G[3].charAt(1)?G[0].charAt(0)+G[1].charAt(0)+G[2].charAt(0)+G[3].charAt(0):G.join("")}function v(w,B,A,X){var b=[R(H(X)),R(n(w).toString(16)),R(n(B).toString(16)),R(n(A).toString(16))];return b.join("")}u.equals=function(w,B){return!w||!B?!1:u(w).toRgbString()==u(B).toRgbString()},u.random=function(){return u.fromRatio({r:a(),g:a(),b:a()})};function C(w,B){B=B===0?0:B||10;var A=u(w).toHsl();return A.s-=B/100,A.s=q(A.s),u(A)}function k(w,B){B=B===0?0:B||10;var A=u(w).toHsl();return A.s+=B/100,A.s=q(A.s),u(A)}function P(w){return u(w).desaturate(100)}function F(w,B){B=B===0?0:B||10;var A=u(w).toHsl();return A.l+=B/100,A.l=q(A.l),u(A)}function M(w,B){B=B===0?0:B||10;var A=u(w).toRgb();return A.r=o(0,s(255,A.r-n(255*-(B/100)))),A.g=o(0,s(255,A.g-n(255*-(B/100)))),A.b=o(0,s(255,A.b-n(255*-(B/100)))),u(A)}function S(w,B){B=B===0?0:B||10;var A=u(w).toHsl();return A.l-=B/100,A.l=q(A.l),u(A)}function D(w,B){var A=u(w).toHsl(),X=(A.h+B)%360;return A.h=X<0?360+X:X,u(A)}function j(w){var B=u(w).toHsl();return B.h=(B.h+180)%360,u(B)}function W(w){var B=u(w).toHsl(),A=B.h;return[u(w),u({h:(A+120)%360,s:B.s,l:B.l}),u({h:(A+240)%360,s:B.s,l:B.l})]}function N(w){var B=u(w).toHsl(),A=B.h;return[u(w),u({h:(A+90)%360,s:B.s,l:B.l}),u({h:(A+180)%360,s:B.s,l:B.l}),u({h:(A+270)%360,s:B.s,l:B.l})]}function K(w){var B=u(w).toHsl(),A=B.h;return[u(w),u({h:(A+72)%360,s:B.s,l:B.l}),u({h:(A+216)%360,s:B.s,l:B.l})]}function te(w,B,A){B=B||6,A=A||30;var X=u(w).toHsl(),b=360/A,G=[u(w)];for(X.h=(X.h-(b*B>>1)+720)%360;--B;)X.h=(X.h+b)%360,G.push(u(X));return G}function ne(w,B){B=B||6;for(var A=u(w).toHsv(),X=A.h,b=A.s,G=A.v,ee=[],le=1/B;B--;)ee.push(u({h:X,s:b,v:G})),G=(G+le)%1;return ee}u.mix=function(w,B,A){A=A===0?0:A||50;var X=u(w).toRgb(),b=u(B).toRgb(),G=A/100,ee={r:(b.r-X.r)*G+X.r,g:(b.g-X.g)*G+X.g,b:(b.b-X.b)*G+X.b,a:(b.a-X.a)*G+X.a};return u(ee)},u.readability=function(w,B){var A=u(w),X=u(B);return(t.max(A.getLuminance(),X.getLuminance())+.05)/(t.min(A.getLuminance(),X.getLuminance())+.05)},u.isReadable=function(w,B,A){var X=u.readability(w,B),b,G;switch(G=!1,b=J(A),b.level+b.size){case"AAsmall":case"AAAlarge":G=X>=4.5;break;case"AAlarge":G=X>=3;break;case"AAAsmall":G=X>=7;break}return G},u.mostReadable=function(w,B,A){var X=null,b=0,G,ee,le,pe;A=A||{},ee=A.includeFallbackColors,le=A.level,pe=A.size;for(var Se=0;Se<B.length;Se++)G=u.readability(w,B[Se]),G>b&&(b=G,X=u(B[Se]));return u.isReadable(w,X,{level:le,size:pe})||!ee?X:(A.includeFallbackColors=!1,u.mostReadable(w,["#fff","#000"],A))};var U=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"},I=u.hexNames=L(U);function L(w){var B={};for(var A in w)w.hasOwnProperty(A)&&(B[w[A]]=A);return B}function z(w){return w=parseFloat(w),(isNaN(w)||w<0||w>1)&&(w=1),w}function Z(w,B){_(w)&&(w="100%");var A=E(w);return w=s(B,o(0,parseFloat(w))),A&&(w=parseInt(w*B,10)/100),t.abs(w-B)<1e-6?1:w%B/parseFloat(B)}function q(w){return s(1,o(0,w))}function g(w){return parseInt(w,16)}function _(w){return typeof w=="string"&&w.indexOf(".")!=-1&&parseFloat(w)===1}function E(w){return typeof w=="string"&&w.indexOf("%")!=-1}function R(w){return w.length==1?"0"+w:""+w}function x(w){return w<=1&&(w=w*100+"%"),w}function H(w){return t.round(parseFloat(w)*255).toString(16)}function $(w){return g(w)/255}var re=function(){var w="[-\\+]?\\d+%?",B="[-\\+]?\\d*\\.\\d+%?",A="(?:"+B+")|(?:"+w+")",X="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",b="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?";return{CSS_UNIT:new RegExp(A),rgb:new RegExp("rgb"+X),rgba:new RegExp("rgba"+b),hsl:new RegExp("hsl"+X),hsla:new RegExp("hsla"+b),hsv:new RegExp("hsv"+X),hsva:new RegExp("hsva"+b),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 V(w){return!!re.CSS_UNIT.exec(w)}function he(w){w=w.replace(e,"").replace(r,"").toLowerCase();var B=!1;if(U[w])w=U[w],B=!0;else if(w=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var A;return(A=re.rgb.exec(w))?{r:A[1],g:A[2],b:A[3]}:(A=re.rgba.exec(w))?{r:A[1],g:A[2],b:A[3],a:A[4]}:(A=re.hsl.exec(w))?{h:A[1],s:A[2],l:A[3]}:(A=re.hsla.exec(w))?{h:A[1],s:A[2],l:A[3],a:A[4]}:(A=re.hsv.exec(w))?{h:A[1],s:A[2],v:A[3]}:(A=re.hsva.exec(w))?{h:A[1],s:A[2],v:A[3],a:A[4]}:(A=re.hex8.exec(w))?{r:g(A[1]),g:g(A[2]),b:g(A[3]),a:$(A[4]),format:B?"name":"hex8"}:(A=re.hex6.exec(w))?{r:g(A[1]),g:g(A[2]),b:g(A[3]),format:B?"name":"hex"}:(A=re.hex4.exec(w))?{r:g(A[1]+""+A[1]),g:g(A[2]+""+A[2]),b:g(A[3]+""+A[3]),a:$(A[4]+""+A[4]),format:B?"name":"hex8"}:(A=re.hex3.exec(w))?{r:g(A[1]+""+A[1]),g:g(A[2]+""+A[2]),b:g(A[3]+""+A[3]),format:B?"name":"hex"}:!1}function J(w){var B,A;return w=w||{level:"AA",size:"small"},B=(w.level||"AA").toUpperCase(),A=(w.size||"small").toLowerCase(),B!=="AA"&&B!=="AAA"&&(B="AA"),A!=="small"&&A!=="large"&&(A="small"),{level:B,size:A}}typeof wu!="undefined"&&wu.exports?wu.exports=u:typeof define=="function"&&define.amd?define(function(){return u}):window.tinycolor=u})(Math)});var bv=T((N$,_v)=>{var Eo=fv(),yv={r:256,g:256,b:256,a:1},gv={h:360,s:1,v:1,a:1};function ad(t,e,r){let i={};for(let n in t)t.hasOwnProperty(n)&&(i[n]=r===0?0:(e[n]-t[n])/r);return i}function ud(t,e,r,i){let n={};for(let s in e)e.hasOwnProperty(s)&&(n[s]=t[s]*r+e[s],n[s]=n[s]<0?n[s]+i[s]:i[s]!==1?n[s]%i[s]:n[s]);return n}function od(t,e,r){let i=t.color.toRgb(),n=e.color.toRgb(),s=ad(i,n,r),o=[t.color];for(let a=1;a<r;a++){let u=ud(s,i,a,yv);o.push(Eo(u))}return o}function dv(t,e,r,i){let n=t.color.toHsv(),s=e.color.toHsv();if(n.s===0||s.s===0)return od(t,e,r);let o;if(typeof i=="boolean")o=i;else{let l=n.h<s.h&&s.h-n.h<180||n.h>s.h&&n.h-s.h>180;o=i==="long"&&l||i==="short"&&!l}let a=ad(n,s,r),u=[t.color],c;n.h<=s.h&&!o||n.h>=s.h&&o?c=s.h-n.h:o?c=360-s.h+n.h:c=360-n.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(c)/r;for(let l=1;l<r;l++){let h=ud(a,n,l,gv);u.push(Eo(h))}return u}function pv(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 i=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);i.push(Math.max(1,Math.round(o)))}let n=1;for(let s=r-1;s--;)n+=i[s];for(;n!==e;)if(n<e){let s=Math.min.apply(null,i);i[i.indexOf(s)]++,n++}else{let s=Math.max.apply(null,i);i[i.indexOf(s)]--,n--}return i}function mv(t,e,r,i){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let n,s;for(let u=0,c=t.length;u<c-1;u++)if(e>=t[u].pos&&e<t[u+1].pos){n=t[u],s=t[u+1];break}n||(n=s=t[t.length-1]);let o=ad(n.color[r](),s.color[r](),(s.pos-n.pos)*100),a=ud(o,n.color[r](),(e-n.pos)*100,i);return Eo(a)}var Zn=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,i=e.length,n=-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===i-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!c,o={color:c?Eo(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<n)throw new Error("Color stops positions are not ordered");n=o.pos}else o={color:Eo(o.color!==void 0?o.color:o),pos:a/(i-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),i++),this.stops[i-1].pos!==1&&this.stops.push({color:this.stops[i-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new Zn(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(i=>{e.push({color:i.color,pos:i.pos/2})}),this.stops.slice(0,-1).forEach(i=>{r.push({color:i.color,pos:1-i.pos/2})}),new Zn(e.concat(r.reverse()))}rgb(e){let r=pv(this.stops,e),i=[];this.stops.forEach((n,s)=>{n.colorLess&&(n.color=od(this.stops[s-1],this.stops[s+1],2)[1])});for(let n=0,s=this.stops.length;n<s-1;n++){let o=od(this.stops[n],this.stops[n+1],r[n]);i.splice(i.length,0,...o)}return i.push(this.stops[this.stops.length-1].color),i}hsv(e,r){let i=pv(this.stops,e),n=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=dv(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=dv(this.stops[s],this.stops[s+1],i[s],r);n.splice(n.length,0,...a)}return n.push(this.stops[this.stops.length-1].color),n}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let i=e+"-gradient("+r;return this.stops.forEach(function(n){i+=", "+(n.colorLess?"":n.color.toRgbString()+" ")+n.pos*100+"%"}),i+=")",i}rgbAt(e){return mv(this.stops,e,"toRgb",yv)}hsvAt(e){return mv(this.stops,e,"toHsv",gv)}};_v.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 Zn(t)}});var xu=T((M$,Su)=>{"use strict";var vv=require("chalk"),V2=bv(),Ev=/\s/g;function cd(...t){let e=V2.apply(this,t),r=(i,n)=>Y2(i?i.toString():"",e,n);return r.multiline=(i,n)=>K2(i?i.toString():"",e,n),r}var wv=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function Y2(t,e,r){let i=Sv(r),n=Math.max(t.replace(Ev,"").length,e.stops.length),s=wv(e,i,n),o="";for(let a of t)o+=a.match(Ev)?a:vv.hex(s.shift().toHex())(a);return o}function K2(t,e,r){let i=Sv(r),n=t.split(`
|
7
|
-
`),s=Math.max.apply(null,n.map(u=>u.length).concat([e.stops.length])),o=
|
8
|
-
`)}function
|
2
|
+
"use strict";var LT=Object.create;var Ml=Object.defineProperty;var BT=Object.getOwnPropertyDescriptor;var NT=Object.getOwnPropertyNames;var MT=Object.getPrototypeOf,jT=Object.prototype.hasOwnProperty;var T=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),qT=(t,e)=>{for(var r in e)Ml(t,r,{get:e[r],enumerable:!0})},UT=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of NT(e))!jT.call(t,n)&&n!==r&&Ml(t,n,{get:()=>e[n],enumerable:!(i=BT(e,n))||i.enumerable});return t};var oe=(t,e,r)=>(r=t!=null?LT(MT(t)):{},UT(e||!t||!t.__esModule?Ml(r,"default",{value:t,enumerable:!0}):r,t));var E0=T((o4,Cr)=>{function jl(t){return Cr.exports=jl=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},Cr.exports.__esModule=!0,Cr.exports.default=Cr.exports,jl(t)}Cr.exports=jl,Cr.exports.__esModule=!0,Cr.exports.default=Cr.exports});var S0=T((a4,Rr)=>{var v0=E0().default;function w0(){"use strict";Rr.exports=w0=function(){return e},Rr.exports.__esModule=!0,Rr.exports.default=Rr.exports;var t,e={},r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(I,L,z){I[L]=z.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function c(I,L,z){return Object.defineProperty(I,L,{value:z,enumerable:!0,configurable:!0,writable:!0}),I[L]}try{c({},"")}catch{c=function(z,Z,q){return z[Z]=q}}function l(I,L,z,Z){var q=L&&L.prototype instanceof v?L:v,g=Object.create(q.prototype),_=new ne(Z||[]);return n(g,"_invoke",{value:W(I,z,_)}),g}function h(I,L,z){try{return{type:"normal",arg:I.call(L,z)}}catch(Z){return{type:"throw",arg:Z}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",m="executing",y="completed",p={};function v(){}function C(){}function k(){}var P={};c(P,o,function(){return this});var F=Object.getPrototypeOf,M=F&&F(F(U([])));M&&M!==r&&i.call(M,o)&&(P=M);var S=k.prototype=v.prototype=Object.create(P);function D(I){["next","throw","return"].forEach(function(L){c(I,L,function(z){return this._invoke(L,z)})})}function j(I,L){function z(q,g,_,E){var R=h(I[q],I,g);if(R.type!=="throw"){var x=R.arg,H=x.value;return H&&v0(H)=="object"&&i.call(H,"__await")?L.resolve(H.__await).then(function($){z("next",$,_,E)},function($){z("throw",$,_,E)}):L.resolve(H).then(function($){x.value=$,_(x)},function($){return z("throw",$,_,E)})}E(R.arg)}var Z;n(this,"_invoke",{value:function(g,_){function E(){return new L(function(R,x){z(g,_,R,x)})}return Z=Z?Z.then(E,E):E()}})}function W(I,L,z){var Z=f;return function(q,g){if(Z===m)throw new Error("Generator is already running");if(Z===y){if(q==="throw")throw g;return{value:t,done:!0}}for(z.method=q,z.arg=g;;){var _=z.delegate;if(_){var E=N(_,z);if(E){if(E===p)continue;return E}}if(z.method==="next")z.sent=z._sent=z.arg;else if(z.method==="throw"){if(Z===f)throw Z=y,z.arg;z.dispatchException(z.arg)}else z.method==="return"&&z.abrupt("return",z.arg);Z=m;var R=h(I,L,z);if(R.type==="normal"){if(Z=z.done?y:d,R.arg===p)continue;return{value:R.arg,done:z.done}}R.type==="throw"&&(Z=y,z.method="throw",z.arg=R.arg)}}}function N(I,L){var z=L.method,Z=I.iterator[z];if(Z===t)return L.delegate=null,z==="throw"&&I.iterator.return&&(L.method="return",L.arg=t,N(I,L),L.method==="throw")||z!=="return"&&(L.method="throw",L.arg=new TypeError("The iterator does not provide a '"+z+"' method")),p;var q=h(Z,I.iterator,L.arg);if(q.type==="throw")return L.method="throw",L.arg=q.arg,L.delegate=null,p;var g=q.arg;return g?g.done?(L[I.resultName]=g.value,L.next=I.nextLoc,L.method!=="return"&&(L.method="next",L.arg=t),L.delegate=null,p):g:(L.method="throw",L.arg=new TypeError("iterator result is not an object"),L.delegate=null,p)}function K(I){var L={tryLoc:I[0]};1 in I&&(L.catchLoc=I[1]),2 in I&&(L.finallyLoc=I[2],L.afterLoc=I[3]),this.tryEntries.push(L)}function te(I){var L=I.completion||{};L.type="normal",delete L.arg,I.completion=L}function ne(I){this.tryEntries=[{tryLoc:"root"}],I.forEach(K,this),this.reset(!0)}function U(I){if(I||I===""){var L=I[o];if(L)return L.call(I);if(typeof I.next=="function")return I;if(!isNaN(I.length)){var z=-1,Z=function q(){for(;++z<I.length;)if(i.call(I,z))return q.value=I[z],q.done=!1,q;return q.value=t,q.done=!0,q};return Z.next=Z}}throw new TypeError(v0(I)+" is not iterable")}return C.prototype=k,n(S,"constructor",{value:k,configurable:!0}),n(k,"constructor",{value:C,configurable:!0}),C.displayName=c(k,u,"GeneratorFunction"),e.isGeneratorFunction=function(I){var L=typeof I=="function"&&I.constructor;return!!L&&(L===C||(L.displayName||L.name)==="GeneratorFunction")},e.mark=function(I){return Object.setPrototypeOf?Object.setPrototypeOf(I,k):(I.__proto__=k,c(I,u,"GeneratorFunction")),I.prototype=Object.create(S),I},e.awrap=function(I){return{__await:I}},D(j.prototype),c(j.prototype,a,function(){return this}),e.AsyncIterator=j,e.async=function(I,L,z,Z,q){q===void 0&&(q=Promise);var g=new j(l(I,L,z,Z),q);return e.isGeneratorFunction(L)?g:g.next().then(function(_){return _.done?_.value:g.next()})},D(S),c(S,u,"Generator"),c(S,o,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),e.keys=function(I){var L=Object(I),z=[];for(var Z in L)z.push(Z);return z.reverse(),function q(){for(;z.length;){var g=z.pop();if(g in L)return q.value=g,q.done=!1,q}return q.done=!0,q}},e.values=U,ne.prototype={constructor:ne,reset:function(L){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(te),!L)for(var z in this)z.charAt(0)==="t"&&i.call(this,z)&&!isNaN(+z.slice(1))&&(this[z]=t)},stop:function(){this.done=!0;var L=this.tryEntries[0].completion;if(L.type==="throw")throw L.arg;return this.rval},dispatchException:function(L){if(this.done)throw L;var z=this;function Z(x,H){return _.type="throw",_.arg=L,z.next=x,H&&(z.method="next",z.arg=t),!!H}for(var q=this.tryEntries.length-1;q>=0;--q){var g=this.tryEntries[q],_=g.completion;if(g.tryLoc==="root")return Z("end");if(g.tryLoc<=this.prev){var E=i.call(g,"catchLoc"),R=i.call(g,"finallyLoc");if(E&&R){if(this.prev<g.catchLoc)return Z(g.catchLoc,!0);if(this.prev<g.finallyLoc)return Z(g.finallyLoc)}else if(E){if(this.prev<g.catchLoc)return Z(g.catchLoc,!0)}else{if(!R)throw new Error("try statement without catch or finally");if(this.prev<g.finallyLoc)return Z(g.finallyLoc)}}}},abrupt:function(L,z){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var q=this.tryEntries[Z];if(q.tryLoc<=this.prev&&i.call(q,"finallyLoc")&&this.prev<q.finallyLoc){var g=q;break}}g&&(L==="break"||L==="continue")&&g.tryLoc<=z&&z<=g.finallyLoc&&(g=null);var _=g?g.completion:{};return _.type=L,_.arg=z,g?(this.method="next",this.next=g.finallyLoc,p):this.complete(_)},complete:function(L,z){if(L.type==="throw")throw L.arg;return L.type==="break"||L.type==="continue"?this.next=L.arg:L.type==="return"?(this.rval=this.arg=L.arg,this.method="return",this.next="end"):L.type==="normal"&&z&&(this.next=z),p},finish:function(L){for(var z=this.tryEntries.length-1;z>=0;--z){var Z=this.tryEntries[z];if(Z.finallyLoc===L)return this.complete(Z.completion,Z.afterLoc),te(Z),p}},catch:function(L){for(var z=this.tryEntries.length-1;z>=0;--z){var Z=this.tryEntries[z];if(Z.tryLoc===L){var q=Z.completion;if(q.type==="throw"){var g=q.arg;te(Z)}return g}}throw new Error("illegal catch attempt")},delegateYield:function(L,z,Z){return this.delegate={iterator:U(L),resultName:z,nextLoc:Z},this.method==="next"&&(this.arg=t),p}},e}Rr.exports=w0,Rr.exports.__esModule=!0,Rr.exports.default=Rr.exports});var D0=T((u4,x0)=>{var va=S0()();x0.exports=va;try{regeneratorRuntime=va}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=va:Function("r","regeneratorRuntime = r")(va)}});var C0=T((k4,Wl)=>{"use strict";var A0=(t,...e)=>new Promise(r=>{r(t(...e))});Wl.exports=A0;Wl.exports.default=A0});var T0=T((O4,Vl)=>{"use strict";var HT=C0(),R0=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,i=()=>{r--,e.length>0&&e.shift()()},n=(a,u,...c)=>{r++;let l=HT(a,...c);u(l),l.then(i,i)},s=(a,u,...c)=>{r<t?n(a,u,...c):e.push(n.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};Vl.exports=R0;Vl.exports.default=R0});var F0=T((F4,Yl)=>{"use strict";var k0=T0(),wa=class extends Error{constructor(e){super(),this.value=e}},$T=async(t,e)=>e(await t),zT=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new wa(e[0]);return!1},O0=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let i=k0(r.concurrency),n=[...t].map(o=>[o,i($T,o,e)]),s=k0(r.preserveOrder?1:1/0);try{await Promise.all(n.map(o=>s(zT,o)))}catch(o){if(o instanceof wa)return o.value;throw o}};Yl.exports=O0;Yl.exports.default=O0});var M0=T((P4,Kl)=>{"use strict";var P0=require("path"),Sa=require("fs"),{promisify:I0}=require("util"),GT=F0(),WT=I0(Sa.stat),VT=I0(Sa.lstat),L0={directory:"isDirectory",file:"isFile"};function B0({type:t}){if(!(t in L0))throw new Error(`Invalid type specified: ${t}`)}var N0=(t,e)=>t===void 0||e[L0[t]]();Kl.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},B0(e);let r=e.allowSymlinks?WT:VT;return GT(t,async i=>{try{let n=await r(P0.resolve(e.cwd,i));return N0(e.type,n)}catch{return!1}},e)};Kl.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},B0(e);let r=e.allowSymlinks?Sa.statSync:Sa.lstatSync;for(let i of t)try{let n=r(P0.resolve(e.cwd,i));if(N0(e.type,n))return i}catch{}}});var q0=T((I4,Zl)=>{"use strict";var j0=require("fs"),{promisify:YT}=require("util"),KT=YT(j0.access);Zl.exports=async t=>{try{return await KT(t),!0}catch{return!1}};Zl.exports.sync=t=>{try{return j0.accessSync(t),!0}catch{return!1}}});var H0=T((L4,kn)=>{"use strict";var ii=require("path"),xa=M0(),U0=q0(),Jl=Symbol("findUp.stop");kn.exports=async(t,e={})=>{let r=ii.resolve(e.cwd||""),{root:i}=ii.parse(r),n=[].concat(t),s=async o=>{if(typeof t!="function")return xa(n,o);let a=await t(o.cwd);return typeof a=="string"?xa([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===Jl)return;if(o)return ii.resolve(r,o);if(r===i)return;r=ii.dirname(r)}};kn.exports.sync=(t,e={})=>{let r=ii.resolve(e.cwd||""),{root:i}=ii.parse(r),n=[].concat(t),s=o=>{if(typeof t!="function")return xa.sync(n,o);let a=t(o.cwd);return typeof a=="string"?xa.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===Jl)return;if(o)return ii.resolve(r,o);if(r===i)return;r=ii.dirname(r)}};kn.exports.exists=U0;kn.exports.sync.exists=U0.sync;kn.exports.stop=Jl});var Wg=T(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.splitWhen=Ln.flatten=void 0;function wF(t){return t.reduce((e,r)=>[].concat(e,r),[])}Ln.flatten=wF;function SF(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}Ln.splitWhen=SF});var Vg=T(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.isEnoentCodeError=void 0;function xF(t){return t.code==="ENOENT"}Oa.isEnoentCodeError=xF});var Yg=T(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.createDirentFromStats=void 0;var dh=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 dh(t,e)}Fa.createDirentFromStats=DF});var Kg=T(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.removeLeadingDotSegment=or.escape=or.makeAbsolute=or.unixify=void 0;var AF=require("path"),CF=2,RF=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function TF(t){return t.replace(/\\/g,"/")}or.unixify=TF;function kF(t,e){return AF.resolve(t,e)}or.makeAbsolute=kF;function OF(t){return t.replace(RF,"\\$2")}or.escape=OF;function FF(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(CF)}return t}or.removeLeadingDotSegment=FF});var Jg=T((i9,Zg)=>{Zg.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 e_=T((n9,Qg)=>{var PF=Jg(),Xg={"{":"}","(":")","[":"]"},IF=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,i=-2,n=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||i!==-1&&t[e]==="["&&t[e+1]!=="]"&&(i<e&&(i=t.indexOf("]",e)),i>e&&(o===-1||o>i||(o=t.indexOf("\\",e),o===-1||o>i)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(o=t.indexOf("\\",e),o===-1||o>n))||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=Xg[a];if(u){var c=t.indexOf(u,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},LF=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 i=Xg[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};Qg.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(PF(e))return!0;var i=IF;return r&&r.strict===!1&&(i=LF),i(e)}});var r_=T((s9,t_)=>{"use strict";var BF=e_(),NF=require("path").posix.dirname,MF=require("os").platform()==="win32",ph="/",jF=/\\/g,qF=/[\{\[].*[\}\]]$/,UF=/(^|[^\\])([\{\[]|\([^\)]+$)/,HF=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t_.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&MF&&e.indexOf(ph)<0&&(e=e.replace(jF,ph)),qF.test(e)&&(e+=ph),e+="a";do e=NF(e);while(BF(e)||UF.test(e));return e.replace(HF,"$1")}});var Pa=T(Lt=>{"use strict";Lt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Lt.find=(t,e)=>t.nodes.find(r=>r.type===e);Lt.exceedsLimit=(t,e,r=1,i)=>i===!1||!Lt.isInteger(t)||!Lt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;Lt.escapeNode=(t,e=0,r)=>{let i=t.nodes[e];i&&(r&&i.type===r||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};Lt.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);Lt.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;Lt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Lt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);Lt.flatten=(...t)=>{let e=[],r=i=>{for(let n=0;n<i.length;n++){let s=i[n];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var Ia=T((a9,n_)=>{"use strict";var i_=Pa();n_.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&i_.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a="";if(i.value)return(s||o)&&i_.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let u of i.nodes)a+=r(u);return a};return r(t)}});var o_=T((u9,s_)=>{"use strict";s_.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var m_=T((c9,p_)=>{"use strict";var a_=o_(),zi=(t,e,r)=>{if(a_(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(a_(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};typeof i.strictZeros=="boolean"&&(i.relaxZeros=i.strictZeros===!1);let n=String(i.relaxZeros),s=String(i.shorthand),o=String(i.capture),a=String(i.wrap),u=t+":"+e+"="+n+s+o+a;if(zi.cache.hasOwnProperty(u))return zi.cache[u].result;let c=Math.min(t,e),l=Math.max(t,e);if(Math.abs(c-l)===1){let y=t+"|"+e;return i.capture?`(${y})`:i.wrap===!1?y:`(?:${y})`}let h=d_(t)||d_(e),f={min:t,max:e,a:c,b:l},d=[],m=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),c<0){let y=l<0?Math.abs(l):1;m=u_(y,Math.abs(c),f,i),c=f.a=0}return l>=0&&(d=u_(c,l,f,i)),f.negatives=m,f.positives=d,f.result=$F(m,d,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&d.length+m.length>1&&(f.result=`(?:${f.result})`),zi.cache[u]=f,f.result};function $F(t,e,r){let i=mh(t,e,"-",!1,r)||[],n=mh(e,t,"",!1,r)||[],s=mh(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function zF(t,e){let r=1,i=1,n=l_(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=l_(t,r);for(n=h_(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=h_(e+1,i)-1;return s=[...s],s.sort(VF),s}function GF(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=WF(t,e),n=i.length,s="",o=0;for(let a=0;a<n;a++){let[u,c]=i[a];u===c?s+=u:u!=="0"||c!=="9"?s+=YF(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function u_(t,e,r,i){let n=zF(t,e),s=[],o=t,a;for(let u=0;u<n.length;u++){let c=n[u],l=GF(String(o),String(c),i),h="";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+f_(a.count),o=c+1;continue}r.isPadded&&(h=KF(c,r,i)),l.string=h+l.pattern+f_(l.count),s.push(l),o=c+1,a=l}return s}function mh(t,e,r,i,n){let s=[];for(let o of t){let{string:a}=o;!i&&!c_(e,"string",a)&&s.push(r+a),i&&c_(e,"string",a)&&s.push(r+a)}return s}function WF(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function VF(t,e){return t>e?1:e>t?-1:0}function c_(t,e,r){return t.some(i=>i[e]===r)}function l_(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function h_(t,e){return t-t%Math.pow(10,e)}function f_(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function YF(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function d_(t){return/^-?(0+)\d/.test(t)}function KF(t,e,r){if(!e.isPadded)return t;let i=Math.abs(e.maxLen-String(t).length),n=r.relaxZeros!==!1;switch(i){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${i}}`:`0{${i}}`}}zi.cache={};zi.clearCache=()=>zi.cache={};p_.exports=zi});var _h=T((l9,S_)=>{"use strict";var ZF=require("util"),__=m_(),y_=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),JF=t=>e=>t===!0?Number(e):String(e),yh=t=>typeof t=="number"||typeof t=="string"&&t!=="",fo=t=>Number.isInteger(+t),gh=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},XF=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,QF=(t,e,r)=>{if(e>0){let i=t[0]==="-"?"-":"";i&&(t=t.slice(1)),t=i+t.padStart(i?e-1:e,"0")}return r===!1?String(t):t},g_=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},eP=(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?"":"?:",i="",n="",s;return t.positives.length&&(i=t.positives.join("|")),t.negatives.length&&(n=`-(${r}${t.negatives.join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,e.wrap?`(${r}${s})`:s},b_=(t,e,r,i)=>{if(r)return __(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},E_=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return __(t,e,r)},v_=(...t)=>new RangeError("Invalid range arguments: "+ZF.inspect(...t)),w_=(t,e,r)=>{if(r.strictRanges===!0)throw v_([t,e]);return[]},tP=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},rP=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw v_([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,a=String(t),u=String(e),c=String(r);r=Math.max(Math.abs(r),1);let l=gh(a)||gh(u)||gh(c),h=l?Math.max(a.length,u.length,c.length):0,f=l===!1&&XF(t,e,i)===!1,d=i.transform||JF(f);if(i.toRegex&&r===1)return b_(g_(t,h),g_(e,h),!0,i);let m={negatives:[],positives:[]},y=C=>m[C<0?"negatives":"positives"].push(Math.abs(C)),p=[],v=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?y(n):p.push(QF(d(n,v),h,f)),n=o?n-r:n+r,v++;return i.toRegex===!0?r>1?eP(m,i):E_(p,null,{wrap:!1,...i}):p},iP=(t,e,r=1,i={})=>{if(!fo(t)&&t.length>1||!fo(e)&&e.length>1)return w_(t,e,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,u=Math.min(s,o),c=Math.max(s,o);if(i.toRegex&&r===1)return b_(u,c,!1,i);let l=[],h=0;for(;a?s>=o:s<=o;)l.push(n(s,h)),s=a?s-r:s+r,h++;return i.toRegex===!0?E_(l,null,{wrap:!1,options:i}):l},La=(t,e,r,i={})=>{if(e==null&&yh(t))return[t];if(!yh(t)||!yh(e))return w_(t,e,i);if(typeof r=="function")return La(t,e,1,{transform:r});if(y_(r))return La(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,fo(r)?fo(t)&&fo(e)?rP(t,e,r,n):iP(t,e,Math.max(Math.abs(r),1),n):r!=null&&!y_(r)?tP(r,n):La(t,e,1,r)};S_.exports=La});var A_=T((h9,D_)=>{"use strict";var nP=_h(),x_=Pa(),sP=(t,e={})=>{let r=(i,n={})=>{let s=x_.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,u=e.escapeInvalid===!0?"\\":"",c="";if(i.isOpen===!0||i.isClose===!0)return u+i.value;if(i.type==="open")return a?u+i.value:"(";if(i.type==="close")return a?u+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":a?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let l=x_.reduce(i.nodes),h=nP(...l,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return l.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let l of i.nodes)c+=r(l,i);return c};return r(t)};D_.exports=sP});var T_=T((f9,R_)=>{"use strict";var oP=_h(),C_=Ia(),Bn=Pa(),Gi=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Bn.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(Gi(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?Gi(n,s,r):n+s);return Bn.flatten(i)},aP=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(n,s={})=>{n.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(n.invalid||n.dollar){a.push(Gi(a.pop(),C_(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){a.push(Gi(a.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let h=Bn.reduce(n.nodes);if(Bn.exceedsLimit(...h,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=oP(...h,e);f.length===0&&(f=C_(n,e)),a.push(Gi(a.pop(),f)),n.nodes=[];return}let u=Bn.encloseBrace(n),c=n.queue,l=n;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,c=l.queue;for(let h=0;h<n.nodes.length;h++){let f=n.nodes[h];if(f.type==="comma"&&n.type==="brace"){h===1&&c.push(""),c.push("");continue}if(f.type==="close"){a.push(Gi(a.pop(),c,u));continue}if(f.value&&f.type!=="open"){c.push(Gi(c.pop(),f.value));continue}f.nodes&&i(f,n)}return c};return Bn.flatten(i(t))};R_.exports=aP});var O_=T((d9,k_)=>{"use strict";k_.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 B_=T((p9,L_)=>{"use strict";var uP=Ia(),{MAX_LENGTH:F_,CHAR_BACKSLASH:bh,CHAR_BACKTICK:cP,CHAR_COMMA:lP,CHAR_DOT:hP,CHAR_LEFT_PARENTHESES:fP,CHAR_RIGHT_PARENTHESES:dP,CHAR_LEFT_CURLY_BRACE:pP,CHAR_RIGHT_CURLY_BRACE:mP,CHAR_LEFT_SQUARE_BRACKET:P_,CHAR_RIGHT_SQUARE_BRACKET:I_,CHAR_DOUBLE_QUOTE:yP,CHAR_SINGLE_QUOTE:gP,CHAR_NO_BREAK_SPACE:_P,CHAR_ZERO_WIDTH_NOBREAK_SPACE:bP}=O_(),EP=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(F_,r.maxLength):F_;if(t.length>i)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${i})`);let n={type:"root",input:t,nodes:[]},s=[n],o=n,a=n,u=0,c=t.length,l=0,h=0,f,d={},m=()=>t[l++],y=p=>{if(p.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&p.type==="text"){a.value+=p.value;return}return o.nodes.push(p),p.parent=o,p.prev=a,a=p,p};for(y({type:"bos"});l<c;)if(o=s[s.length-1],f=m(),!(f===bP||f===_P)){if(f===bh){y({type:"text",value:(e.keepEscaping?f:"")+m()});continue}if(f===I_){y({type:"text",value:"\\"+f});continue}if(f===P_){u++;let p=!0,v;for(;l<c&&(v=m());){if(f+=v,v===P_){u++;continue}if(v===bh){f+=m();continue}if(v===I_&&(u--,u===0))break}y({type:"text",value:f});continue}if(f===fP){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:f});continue}if(f===dP){if(o.type!=="paren"){y({type:"text",value:f});continue}o=s.pop(),y({type:"text",value:f}),o=s[s.length-1];continue}if(f===yP||f===gP||f===cP){let p=f,v;for(e.keepQuotes!==!0&&(f="");l<c&&(v=m());){if(v===bh){f+=v+m();continue}if(v===p){e.keepQuotes===!0&&(f+=v);break}f+=v}y({type:"text",value:f});continue}if(f===pP){h++;let v={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};o=y(v),s.push(o),y({type:"open",value:f});continue}if(f===mP){if(o.type!=="brace"){y({type:"text",value:f});continue}let p="close";o=s.pop(),o.close=!0,y({type:p,value:f}),h--,o=s[s.length-1];continue}if(f===lP&&h>0){if(o.ranges>0){o.ranges=0;let p=o.nodes.shift();o.nodes=[p,{type:"text",value:uP(o)}]}y({type:"comma",value:f}),o.commas++;continue}if(f===hP&&h>0&&o.commas===0){let p=o.nodes;if(h===0||p.length===0){y({type:"text",value:f});continue}if(a.type==="dot"){if(o.range=[],a.value+=f,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"){p.pop();let v=p[p.length-1];v.value+=a.value+f,a=v,o.ranges--;continue}y({type:"dot",value:f});continue}y({type:"text",value:f})}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 p=s[s.length-1],v=p.nodes.indexOf(o);p.nodes.splice(v,1,...o.nodes)}while(s.length>0);return y({type:"eos"}),n};L_.exports=EP});var j_=T((m9,M_)=>{"use strict";var N_=Ia(),vP=A_(),wP=T_(),SP=B_(),wt=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=wt.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(wt.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};wt.parse=(t,e={})=>SP(t,e);wt.stringify=(t,e={})=>N_(typeof t=="string"?wt.parse(t,e):t,e);wt.compile=(t,e={})=>(typeof t=="string"&&(t=wt.parse(t,e)),vP(t,e));wt.expand=(t,e={})=>{typeof t=="string"&&(t=wt.parse(t,e));let r=wP(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};wt.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?wt.compile(t,e):wt.expand(t,e);M_.exports=wt});var po=T((y9,z_)=>{"use strict";var xP=require("path"),ar="\\\\/",q_=`[^${ar}]`,Or="\\.",DP="\\+",AP="\\?",Ba="\\/",CP="(?=.)",U_="[^/]",Eh=`(?:${Ba}|$)`,H_=`(?:^|${Ba})`,vh=`${Or}{1,2}${Eh}`,RP=`(?!${Or})`,TP=`(?!${H_}${vh})`,kP=`(?!${Or}{0,1}${Eh})`,OP=`(?!${vh})`,FP=`[^.${Ba}]`,PP=`${U_}*?`,$_={DOT_LITERAL:Or,PLUS_LITERAL:DP,QMARK_LITERAL:AP,SLASH_LITERAL:Ba,ONE_CHAR:CP,QMARK:U_,END_ANCHOR:Eh,DOTS_SLASH:vh,NO_DOT:RP,NO_DOTS:TP,NO_DOT_SLASH:kP,NO_DOTS_SLASH:OP,QMARK_NO_DOT:FP,STAR:PP,START_ANCHOR:H_},IP={...$_,SLASH_LITERAL:`[${ar}]`,QMARK:q_,STAR:`${q_}*?`,DOTS_SLASH:`${Or}{1,2}(?:[${ar}]|$)`,NO_DOT:`(?!${Or})`,NO_DOTS:`(?!(?:^|[${ar}])${Or}{1,2}(?:[${ar}]|$))`,NO_DOT_SLASH:`(?!${Or}{0,1}(?:[${ar}]|$))`,NO_DOTS_SLASH:`(?!${Or}{1,2}(?:[${ar}]|$))`,QMARK_NO_DOT:`[^.${ar}]`,START_ANCHOR:`(?:^|[${ar}])`,END_ANCHOR:`(?:[${ar}]|$)`},LP={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"};z_.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:LP,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:xP.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?IP:$_}}});var mo=T(mt=>{"use strict";var BP=require("path"),NP=process.platform==="win32",{REGEX_BACKSLASH:MP,REGEX_REMOVE_BACKSLASH:jP,REGEX_SPECIAL_CHARS:qP,REGEX_SPECIAL_CHARS_GLOBAL:UP}=po();mt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);mt.hasRegexChars=t=>qP.test(t);mt.isRegexChar=t=>t.length===1&&mt.hasRegexChars(t);mt.escapeRegex=t=>t.replace(UP,"\\$1");mt.toPosixSlashes=t=>t.replace(MP,"/");mt.removeBackslashes=t=>t.replace(jP,e=>e==="\\"?"":e);mt.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};mt.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:NP===!0||BP.sep==="\\";mt.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?mt.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};mt.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};mt.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var X_=T((_9,J_)=>{"use strict";var G_=mo(),{CHAR_ASTERISK:wh,CHAR_AT:HP,CHAR_BACKWARD_SLASH:yo,CHAR_COMMA:$P,CHAR_DOT:Sh,CHAR_EXCLAMATION_MARK:xh,CHAR_FORWARD_SLASH:Z_,CHAR_LEFT_CURLY_BRACE:Dh,CHAR_LEFT_PARENTHESES:Ah,CHAR_LEFT_SQUARE_BRACKET:zP,CHAR_PLUS:GP,CHAR_QUESTION_MARK:W_,CHAR_RIGHT_CURLY_BRACE:WP,CHAR_RIGHT_PARENTHESES:V_,CHAR_RIGHT_SQUARE_BRACKET:VP}=po(),Y_=t=>t===Z_||t===yo,K_=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},YP=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=t,c=-1,l=0,h=0,f=!1,d=!1,m=!1,y=!1,p=!1,v=!1,C=!1,k=!1,P=!1,F=!1,M=0,S,D,j={value:"",depth:0,isGlob:!1},W=()=>c>=i,N=()=>u.charCodeAt(c+1),K=()=>(S=D,u.charCodeAt(++c));for(;c<i;){D=K();let L;if(D===yo){C=j.backslashes=!0,D=K(),D===Dh&&(v=!0);continue}if(v===!0||D===Dh){for(M++;W()!==!0&&(D=K());){if(D===yo){C=j.backslashes=!0,K();continue}if(D===Dh){M++;continue}if(v!==!0&&D===Sh&&(D=K())===Sh){if(f=j.isBrace=!0,m=j.isGlob=!0,F=!0,n===!0)continue;break}if(v!==!0&&D===$P){if(f=j.isBrace=!0,m=j.isGlob=!0,F=!0,n===!0)continue;break}if(D===WP&&(M--,M===0)){v=!1,f=j.isBrace=!0,F=!0;break}}if(n===!0)continue;break}if(D===Z_){if(s.push(c),o.push(j),j={value:"",depth:0,isGlob:!1},F===!0)continue;if(S===Sh&&c===l+1){l+=2;continue}h=c+1;continue}if(r.noext!==!0&&(D===GP||D===HP||D===wh||D===W_||D===xh)===!0&&N()===Ah){if(m=j.isGlob=!0,y=j.isExtglob=!0,F=!0,D===xh&&c===l&&(P=!0),n===!0){for(;W()!==!0&&(D=K());){if(D===yo){C=j.backslashes=!0,D=K();continue}if(D===V_){m=j.isGlob=!0,F=!0;break}}continue}break}if(D===wh){if(S===wh&&(p=j.isGlobstar=!0),m=j.isGlob=!0,F=!0,n===!0)continue;break}if(D===W_){if(m=j.isGlob=!0,F=!0,n===!0)continue;break}if(D===zP){for(;W()!==!0&&(L=K());){if(L===yo){C=j.backslashes=!0,K();continue}if(L===VP){d=j.isBracket=!0,m=j.isGlob=!0,F=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&D===xh&&c===l){k=j.negated=!0,l++;continue}if(r.noparen!==!0&&D===Ah){if(m=j.isGlob=!0,n===!0){for(;W()!==!0&&(D=K());){if(D===Ah){C=j.backslashes=!0,D=K();continue}if(D===V_){F=!0;break}}continue}break}if(m===!0){if(F=!0,n===!0)continue;break}}r.noext===!0&&(y=!1,m=!1);let te=u,ne="",U="";l>0&&(ne=u.slice(0,l),u=u.slice(l),h-=l),te&&m===!0&&h>0?(te=u.slice(0,h),U=u.slice(h)):m===!0?(te="",U=u):te=u,te&&te!==""&&te!=="/"&&te!==u&&Y_(te.charCodeAt(te.length-1))&&(te=te.slice(0,-1)),r.unescape===!0&&(U&&(U=G_.removeBackslashes(U)),te&&C===!0&&(te=G_.removeBackslashes(te)));let I={prefix:ne,input:t,start:l,base:te,glob:U,isBrace:f,isBracket:d,isGlob:m,isExtglob:y,isGlobstar:p,negated:k,negatedExtglob:P};if(r.tokens===!0&&(I.maxDepth=0,Y_(D)||o.push(j),I.tokens=o),r.parts===!0||r.tokens===!0){let L;for(let z=0;z<s.length;z++){let Z=L?L+1:l,q=s[z],g=t.slice(Z,q);r.tokens&&(z===0&&l!==0?(o[z].isPrefix=!0,o[z].value=ne):o[z].value=g,K_(o[z]),I.maxDepth+=o[z].depth),(z!==0||g!=="")&&a.push(g),L=q}if(L&&L+1<t.length){let z=t.slice(L+1);a.push(z),r.tokens&&(o[o.length-1].value=z,K_(o[o.length-1]),I.maxDepth+=o[o.length-1].depth)}I.slashes=s,I.parts=a}return I};J_.exports=YP});var tb=T((b9,eb)=>{"use strict";var Na=po(),St=mo(),{MAX_LENGTH:Ma,POSIX_REGEX_SOURCE:KP,REGEX_NON_SPECIAL_CHARS:ZP,REGEX_SPECIAL_CHARS_BACKREF:JP,REPLACEMENTS:Q_}=Na,XP=(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(n=>St.escapeRegex(n)).join("..")}return r},Nn=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Ch=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Q_[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(Ma,r.maxLength):Ma,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=St.isWindows(e),c=Na.globChars(u),l=Na.extglobChars(c),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:m,DOTS_SLASH:y,NO_DOT:p,NO_DOT_SLASH:v,NO_DOTS_SLASH:C,QMARK:k,QMARK_NO_DOT:P,STAR:F,START_ANCHOR:M}=c,S=V=>`(${a}(?:(?!${M}${V.dot?y:h}).)*?)`,D=r.dot?"":p,j=r.dot?k:P,W=r.bash===!0?S(r):F;r.capture&&(W=`(${W})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let N={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=St.removePrefix(t,N),n=t.length;let K=[],te=[],ne=[],U=s,I,L=()=>N.index===n-1,z=N.peek=(V=1)=>t[N.index+V],Z=N.advance=()=>t[++N.index]||"",q=()=>t.slice(N.index+1),g=(V="",he=0)=>{N.consumed+=V,N.index+=he},_=V=>{N.output+=V.output!=null?V.output:V.value,g(V.value)},E=()=>{let V=1;for(;z()==="!"&&(z(2)!=="("||z(3)==="?");)Z(),N.start++,V++;return V%2===0?!1:(N.negated=!0,N.start++,!0)},R=V=>{N[V]++,ne.push(V)},x=V=>{N[V]--,ne.pop()},H=V=>{if(U.type==="globstar"){let he=N.braces>0&&(V.type==="comma"||V.type==="brace"),J=V.extglob===!0||K.length&&(V.type==="pipe"||V.type==="paren");V.type!=="slash"&&V.type!=="paren"&&!he&&!J&&(N.output=N.output.slice(0,-U.output.length),U.type="star",U.value="*",U.output=W,N.output+=U.output)}if(K.length&&V.type!=="paren"&&(K[K.length-1].inner+=V.value),(V.value||V.output)&&_(V),U&&U.type==="text"&&V.type==="text"){U.value+=V.value,U.output=(U.output||"")+V.value;return}V.prev=U,o.push(V),U=V},$=(V,he)=>{let J={...l[he],conditions:1,inner:""};J.prev=U,J.parens=N.parens,J.output=N.output;let w=(r.capture?"(":"")+J.open;R("parens"),H({type:V,value:he,output:N.output?"":m}),H({type:"paren",extglob:!0,value:Z(),output:w}),K.push(J)},re=V=>{let he=V.close+(r.capture?")":""),J;if(V.type==="negate"){let w=W;if(V.inner&&V.inner.length>1&&V.inner.includes("/")&&(w=S(r)),(w!==W||L()||/^\)+$/.test(q()))&&(he=V.close=`)$))${w}`),V.inner.includes("*")&&(J=q())&&/^\.[^\\/.]+$/.test(J)){let B=Ch(J,{...e,fastpaths:!1}).output;he=V.close=`)${B})${w})`}V.prev.type==="bos"&&(N.negatedExtglob=!0)}H({type:"paren",extglob:!0,value:I,output:he}),x("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let V=!1,he=t.replace(JP,(J,w,B,A,X,b)=>A==="\\"?(V=!0,J):A==="?"?w?w+A+(X?k.repeat(X.length):""):b===0?j+(X?k.repeat(X.length):""):k.repeat(B.length):A==="."?h.repeat(B.length):A==="*"?w?w+A+(X?W:""):W:w?J:`\\${J}`);return V===!0&&(r.unescape===!0?he=he.replace(/\\/g,""):he=he.replace(/\\+/g,J=>J.length%2===0?"\\\\":J?"\\":"")),he===t&&r.contains===!0?(N.output=t,N):(N.output=St.wrapOutput(he,N,e),N)}for(;!L();){if(I=Z(),I==="\0")continue;if(I==="\\"){let J=z();if(J==="/"&&r.bash!==!0||J==="."||J===";")continue;if(!J){I+="\\",H({type:"text",value:I});continue}let w=/^\\+/.exec(q()),B=0;if(w&&w[0].length>2&&(B=w[0].length,N.index+=B,B%2!==0&&(I+="\\")),r.unescape===!0?I=Z():I+=Z(),N.brackets===0){H({type:"text",value:I});continue}}if(N.brackets>0&&(I!=="]"||U.value==="["||U.value==="[^")){if(r.posix!==!1&&I===":"){let J=U.value.slice(1);if(J.includes("[")&&(U.posix=!0,J.includes(":"))){let w=U.value.lastIndexOf("["),B=U.value.slice(0,w),A=U.value.slice(w+2),X=KP[A];if(X){U.value=B+X,N.backtrack=!0,Z(),!s.output&&o.indexOf(U)===1&&(s.output=m);continue}}}(I==="["&&z()!==":"||I==="-"&&z()==="]")&&(I=`\\${I}`),I==="]"&&(U.value==="["||U.value==="[^")&&(I=`\\${I}`),r.posix===!0&&I==="!"&&U.value==="["&&(I="^"),U.value+=I,_({value:I});continue}if(N.quotes===1&&I!=='"'){I=St.escapeRegex(I),U.value+=I,_({value:I});continue}if(I==='"'){N.quotes=N.quotes===1?0:1,r.keepQuotes===!0&&H({type:"text",value:I});continue}if(I==="("){R("parens"),H({type:"paren",value:I});continue}if(I===")"){if(N.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Nn("opening","("));let J=K[K.length-1];if(J&&N.parens===J.parens+1){re(K.pop());continue}H({type:"paren",value:I,output:N.parens?")":"\\)"}),x("parens");continue}if(I==="["){if(r.nobracket===!0||!q().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Nn("closing","]"));I=`\\${I}`}else R("brackets");H({type:"bracket",value:I});continue}if(I==="]"){if(r.nobracket===!0||U&&U.type==="bracket"&&U.value.length===1){H({type:"text",value:I,output:`\\${I}`});continue}if(N.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Nn("opening","["));H({type:"text",value:I,output:`\\${I}`});continue}x("brackets");let J=U.value.slice(1);if(U.posix!==!0&&J[0]==="^"&&!J.includes("/")&&(I=`/${I}`),U.value+=I,_({value:I}),r.literalBrackets===!1||St.hasRegexChars(J))continue;let w=St.escapeRegex(U.value);if(N.output=N.output.slice(0,-U.value.length),r.literalBrackets===!0){N.output+=w,U.value=w;continue}U.value=`(${a}${w}|${U.value})`,N.output+=U.value;continue}if(I==="{"&&r.nobrace!==!0){R("braces");let J={type:"brace",value:I,output:"(",outputIndex:N.output.length,tokensIndex:N.tokens.length};te.push(J),H(J);continue}if(I==="}"){let J=te[te.length-1];if(r.nobrace===!0||!J){H({type:"text",value:I,output:I});continue}let w=")";if(J.dots===!0){let B=o.slice(),A=[];for(let X=B.length-1;X>=0&&(o.pop(),B[X].type!=="brace");X--)B[X].type!=="dots"&&A.unshift(B[X].value);w=XP(A,r),N.backtrack=!0}if(J.comma!==!0&&J.dots!==!0){let B=N.output.slice(0,J.outputIndex),A=N.tokens.slice(J.tokensIndex);J.value=J.output="\\{",I=w="\\}",N.output=B;for(let X of A)N.output+=X.output||X.value}H({type:"brace",value:I,output:w}),x("braces"),te.pop();continue}if(I==="|"){K.length>0&&K[K.length-1].conditions++,H({type:"text",value:I});continue}if(I===","){let J=I,w=te[te.length-1];w&&ne[ne.length-1]==="braces"&&(w.comma=!0,J="|"),H({type:"comma",value:I,output:J});continue}if(I==="/"){if(U.type==="dot"&&N.index===N.start+1){N.start=N.index+1,N.consumed="",N.output="",o.pop(),U=s;continue}H({type:"slash",value:I,output:d});continue}if(I==="."){if(N.braces>0&&U.type==="dot"){U.value==="."&&(U.output=h);let J=te[te.length-1];U.type="dots",U.output+=I,U.value+=I,J.dots=!0;continue}if(N.braces+N.parens===0&&U.type!=="bos"&&U.type!=="slash"){H({type:"text",value:I,output:h});continue}H({type:"dot",value:I,output:h});continue}if(I==="?"){if(!(U&&U.value==="(")&&r.noextglob!==!0&&z()==="("&&z(2)!=="?"){$("qmark",I);continue}if(U&&U.type==="paren"){let w=z(),B=I;if(w==="<"&&!St.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(U.value==="("&&!/[!=<:]/.test(w)||w==="<"&&!/<([!=]|\w+>)/.test(q()))&&(B=`\\${I}`),H({type:"text",value:I,output:B});continue}if(r.dot!==!0&&(U.type==="slash"||U.type==="bos")){H({type:"qmark",value:I,output:P});continue}H({type:"qmark",value:I,output:k});continue}if(I==="!"){if(r.noextglob!==!0&&z()==="("&&(z(2)!=="?"||!/[!=<:]/.test(z(3)))){$("negate",I);continue}if(r.nonegate!==!0&&N.index===0){E();continue}}if(I==="+"){if(r.noextglob!==!0&&z()==="("&&z(2)!=="?"){$("plus",I);continue}if(U&&U.value==="("||r.regex===!1){H({type:"plus",value:I,output:f});continue}if(U&&(U.type==="bracket"||U.type==="paren"||U.type==="brace")||N.parens>0){H({type:"plus",value:I});continue}H({type:"plus",value:f});continue}if(I==="@"){if(r.noextglob!==!0&&z()==="("&&z(2)!=="?"){H({type:"at",extglob:!0,value:I,output:""});continue}H({type:"text",value:I});continue}if(I!=="*"){(I==="$"||I==="^")&&(I=`\\${I}`);let J=ZP.exec(q());J&&(I+=J[0],N.index+=J[0].length),H({type:"text",value:I});continue}if(U&&(U.type==="globstar"||U.star===!0)){U.type="star",U.star=!0,U.value+=I,U.output=W,N.backtrack=!0,N.globstar=!0,g(I);continue}let V=q();if(r.noextglob!==!0&&/^\([^?]/.test(V)){$("star",I);continue}if(U.type==="star"){if(r.noglobstar===!0){g(I);continue}let J=U.prev,w=J.prev,B=J.type==="slash"||J.type==="bos",A=w&&(w.type==="star"||w.type==="globstar");if(r.bash===!0&&(!B||V[0]&&V[0]!=="/")){H({type:"star",value:I,output:""});continue}let X=N.braces>0&&(J.type==="comma"||J.type==="brace"),b=K.length&&(J.type==="pipe"||J.type==="paren");if(!B&&J.type!=="paren"&&!X&&!b){H({type:"star",value:I,output:""});continue}for(;V.slice(0,3)==="/**";){let G=t[N.index+4];if(G&&G!=="/")break;V=V.slice(3),g("/**",3)}if(J.type==="bos"&&L()){U.type="globstar",U.value+=I,U.output=S(r),N.output=U.output,N.globstar=!0,g(I);continue}if(J.type==="slash"&&J.prev.type!=="bos"&&!A&&L()){N.output=N.output.slice(0,-(J.output+U.output).length),J.output=`(?:${J.output}`,U.type="globstar",U.output=S(r)+(r.strictSlashes?")":"|$)"),U.value+=I,N.globstar=!0,N.output+=J.output+U.output,g(I);continue}if(J.type==="slash"&&J.prev.type!=="bos"&&V[0]==="/"){let G=V[1]!==void 0?"|$":"";N.output=N.output.slice(0,-(J.output+U.output).length),J.output=`(?:${J.output}`,U.type="globstar",U.output=`${S(r)}${d}|${d}${G})`,U.value+=I,N.output+=J.output+U.output,N.globstar=!0,g(I+Z()),H({type:"slash",value:"/",output:""});continue}if(J.type==="bos"&&V[0]==="/"){U.type="globstar",U.value+=I,U.output=`(?:^|${d}|${S(r)}${d})`,N.output=U.output,N.globstar=!0,g(I+Z()),H({type:"slash",value:"/",output:""});continue}N.output=N.output.slice(0,-U.output.length),U.type="globstar",U.output=S(r),U.value+=I,N.output+=U.output,N.globstar=!0,g(I);continue}let he={type:"star",value:I,output:W};if(r.bash===!0){he.output=".*?",(U.type==="bos"||U.type==="slash")&&(he.output=D+he.output),H(he);continue}if(U&&(U.type==="bracket"||U.type==="paren")&&r.regex===!0){he.output=I,H(he);continue}(N.index===N.start||U.type==="slash"||U.type==="dot")&&(U.type==="dot"?(N.output+=v,U.output+=v):r.dot===!0?(N.output+=C,U.output+=C):(N.output+=D,U.output+=D),z()!=="*"&&(N.output+=m,U.output+=m)),H(he)}for(;N.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Nn("closing","]"));N.output=St.escapeLast(N.output,"["),x("brackets")}for(;N.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Nn("closing",")"));N.output=St.escapeLast(N.output,"("),x("parens")}for(;N.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Nn("closing","}"));N.output=St.escapeLast(N.output,"{"),x("braces")}if(r.strictSlashes!==!0&&(U.type==="star"||U.type==="bracket")&&H({type:"maybe_slash",value:"",output:`${d}?`}),N.backtrack===!0){N.output="";for(let V of N.tokens)N.output+=V.output!=null?V.output:V.value,V.suffix&&(N.output+=V.suffix)}return N};Ch.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(Ma,r.maxLength):Ma,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=Q_[t]||t;let s=St.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:d,START_ANCHOR:m}=Na.globChars(s),y=r.dot?h:l,p=r.dot?f:l,v=r.capture?"":"?:",C={negated:!1,prefix:""},k=r.bash===!0?".*?":d;r.capture&&(k=`(${k})`);let P=D=>D.noglobstar===!0?k:`(${v}(?:(?!${m}${D.dot?c:o}).)*?)`,F=D=>{switch(D){case"*":return`${y}${u}${k}`;case".*":return`${o}${u}${k}`;case"*.*":return`${y}${k}${o}${u}${k}`;case"*/*":return`${y}${k}${a}${u}${p}${k}`;case"**":return y+P(r);case"**/*":return`(?:${y}${P(r)}${a})?${p}${u}${k}`;case"**/*.*":return`(?:${y}${P(r)}${a})?${p}${k}${o}${u}${k}`;case"**/.*":return`(?:${y}${P(r)}${a})?${o}${u}${k}`;default:{let j=/^(.*?)\.(\w+)$/.exec(D);if(!j)return;let W=F(j[1]);return W?W+o+j[2]:void 0}}},M=St.removePrefix(t,C),S=F(M);return S&&r.strictSlashes!==!0&&(S+=`${a}?`),S};eb.exports=Ch});var ib=T((E9,rb)=>{"use strict";var QP=require("path"),eI=X_(),Rh=tb(),Th=mo(),tI=po(),rI=t=>t&&typeof t=="object"&&!Array.isArray(t),Ne=(t,e,r=!1)=>{if(Array.isArray(t)){let l=t.map(f=>Ne(f,e,r));return f=>{for(let d of l){let m=d(f);if(m)return m}return!1}}let i=rI(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!i)throw new TypeError("Expected pattern to be a non-empty string");let n=e||{},s=Th.isWindows(e),o=i?Ne.compileRe(t,e):Ne.makeRe(t,e,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(n.ignore){let l={...e,ignore:null,onMatch:null,onResult:null};u=Ne(n.ignore,l,r)}let c=(l,h=!1)=>{let{isMatch:f,match:d,output:m}=Ne.test(l,o,e,{glob:t,posix:s}),y={glob:t,state:a,regex:o,posix:s,input:l,output:m,match:d,isMatch:f};return typeof n.onResult=="function"&&n.onResult(y),f===!1?(y.isMatch=!1,h?y:!1):u(l)?(typeof n.onIgnore=="function"&&n.onIgnore(y),y.isMatch=!1,h?y:!1):(typeof n.onMatch=="function"&&n.onMatch(y),h?y:!0)};return r&&(c.state=a),c};Ne.test=(t,e,r,{glob:i,posix:n}={})=>{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||(n?Th.toPosixSlashes:null),a=t===i,u=a&&o?o(t):t;return a===!1&&(u=o?o(t):t,a=u===i),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Ne.matchBase(t,e,r,n):a=e.exec(u)),{isMatch:!!a,match:a,output:u}};Ne.matchBase=(t,e,r,i=Th.isWindows(r))=>(e instanceof RegExp?e:Ne.makeRe(e,r)).test(QP.basename(t));Ne.isMatch=(t,e,r)=>Ne(e,r)(t);Ne.parse=(t,e)=>Array.isArray(t)?t.map(r=>Ne.parse(r,e)):Rh(t,{...e,fastpaths:!1});Ne.scan=(t,e)=>eI(t,e);Ne.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let u=Ne.toRegex(a,e);return i===!0&&(u.state=t),u};Ne.makeRe=(t,e={},r=!1,i=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=Rh.fastpaths(t,e)),n.output||(n=Rh(t,e)),Ne.compileRe(n,e,r,i)};Ne.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/$^/}};Ne.constants=tI;rb.exports=Ne});var sb=T((v9,nb)=>{"use strict";nb.exports=ib()});var lb=T((w9,cb)=>{"use strict";var ab=require("util"),ub=j_(),ur=sb(),kh=mo(),ob=t=>t===""||t==="./",Le=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=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 h=ur(String(e[l]),{...r,onResult:a},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let d of t){let m=h(d,!0);(f?!m.isMatch:m.isMatch)&&(f?i.add(m.output):(i.delete(m.output),n.add(m.output)))}}let c=(o===e.length?[...s]:[...n]).filter(l=>!i.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};Le.match=Le;Le.matcher=(t,e)=>ur(t,e);Le.isMatch=(t,e,r)=>ur(e,r)(t);Le.any=Le.isMatch;Le.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=a=>{r.onResult&&r.onResult(a),n.push(a.output)},o=new Set(Le(t,e,{...r,onResult:s}));for(let a of n)o.has(a)||i.add(a);return[...i]};Le.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${ab.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>Le.contains(t,i,r));if(typeof e=="string"){if(ob(t)||ob(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return Le.isMatch(t,e,{...r,contains:!0})};Le.matchKeys=(t,e,r)=>{if(!kh.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=Le(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};Le.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=ur(String(n),r);if(i.some(o=>s(o)))return!0}return!1};Le.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=ur(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};Le.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${ab.inspect(t)}"`);return[].concat(e).every(i=>ur(i,r)(t))};Le.capture=(t,e,r)=>{let i=kh.isWindows(r),s=ur.makeRe(String(t),{...r,capture:!0}).exec(i?kh.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Le.makeRe=(...t)=>ur.makeRe(...t);Le.scan=(...t)=>ur.scan(...t);Le.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of ub(String(i),e))r.push(ur.parse(n,e));return r};Le.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:ub(t,e)};Le.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Le.braces(t,{...e,expand:!0})};cb.exports=Le});var _b=T(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.matchAny=_e.convertPatternsToRe=_e.makeRe=_e.getPatternParts=_e.expandBraceExpansion=_e.expandPatternsWithBraceExpansion=_e.isAffectDepthOfReadingPattern=_e.endsWithSlashGlobStar=_e.hasGlobStar=_e.getBaseDirectory=_e.isPatternRelatedToParentDirectory=_e.getPatternsOutsideCurrentDirectory=_e.getPatternsInsideCurrentDirectory=_e.getPositivePatterns=_e.getNegativePatterns=_e.isPositivePattern=_e.isNegativePattern=_e.convertToNegativePattern=_e.convertToPositivePattern=_e.isDynamicPattern=_e.isStaticPattern=void 0;var iI=require("path"),nI=r_(),Oh=lb(),hb="**",sI="\\",oI=/[*?]|^!/,aI=/\[[^[]*]/,uI=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,cI=/[!*+?@]\([^(]*\)/,lI=/,|\.\./;function fb(t,e={}){return!db(t,e)}_e.isStaticPattern=fb;function db(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(sI)||oI.test(t)||aI.test(t)||uI.test(t)||e.extglob!==!1&&cI.test(t)||e.braceExpansion!==!1&&hI(t))}_e.isDynamicPattern=db;function hI(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let i=t.slice(e,r);return lI.test(i)}function fI(t){return ja(t)?t.slice(1):t}_e.convertToPositivePattern=fI;function dI(t){return"!"+t}_e.convertToNegativePattern=dI;function ja(t){return t.startsWith("!")&&t[1]!=="("}_e.isNegativePattern=ja;function pb(t){return!ja(t)}_e.isPositivePattern=pb;function pI(t){return t.filter(ja)}_e.getNegativePatterns=pI;function mI(t){return t.filter(pb)}_e.getPositivePatterns=mI;function yI(t){return t.filter(e=>!Fh(e))}_e.getPatternsInsideCurrentDirectory=yI;function gI(t){return t.filter(Fh)}_e.getPatternsOutsideCurrentDirectory=gI;function Fh(t){return t.startsWith("..")||t.startsWith("./..")}_e.isPatternRelatedToParentDirectory=Fh;function _I(t){return nI(t,{flipBackslashes:!1})}_e.getBaseDirectory=_I;function bI(t){return t.includes(hb)}_e.hasGlobStar=bI;function mb(t){return t.endsWith("/"+hb)}_e.endsWithSlashGlobStar=mb;function EI(t){let e=iI.basename(t);return mb(t)||fb(e)}_e.isAffectDepthOfReadingPattern=EI;function vI(t){return t.reduce((e,r)=>e.concat(yb(r)),[])}_e.expandPatternsWithBraceExpansion=vI;function yb(t){return Oh.braces(t,{expand:!0,nodupes:!0})}_e.expandBraceExpansion=yb;function wI(t,e){let{parts:r}=Oh.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}_e.getPatternParts=wI;function gb(t,e){return Oh.makeRe(t,e)}_e.makeRe=gb;function SI(t,e){return t.map(r=>gb(r,e))}_e.convertPatternsToRe=SI;function xI(t,e){return e.some(r=>r.test(t))}_e.matchAny=xI});var wb=T((x9,vb)=>{"use strict";var DI=require("stream"),bb=DI.PassThrough,AI=Array.prototype.slice;vb.exports=CI;function CI(){let t=[],e=AI.call(arguments),r=!1,i=e[e.length-1];i&&!Array.isArray(i)&&i.pipe==null?e.pop():i={};let n=i.end!==!1,s=i.pipeError===!0;i.objectMode==null&&(i.objectMode=!0),i.highWaterMark==null&&(i.highWaterMark=64*1024);let o=bb(i);function a(){for(let l=0,h=arguments.length;l<h;l++)t.push(Eb(arguments[l],i));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 h=l.length+1;function f(){--h>0||(r=!1,u())}function d(m){function y(){m.removeListener("merge2UnpipeEnd",y),m.removeListener("end",y),s&&m.removeListener("error",p),f()}function p(v){o.emit("error",v)}if(m._readableState.endEmitted)return f();m.on("merge2UnpipeEnd",y),m.on("end",y),s&&m.on("error",p),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<l.length;m++)d(l[m]);f()}function c(){r=!1,o.emit("queueDrain"),n&&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 Eb(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=Eb(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(bb(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var xb=T(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.merge=void 0;var RI=wb();function TI(t){let e=RI(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Sb(t)),e.once("end",()=>Sb(t)),e}qa.merge=TI;function Sb(t){t.forEach(e=>e.emit("close"))}});var Db=T(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.isEmpty=Mn.isString=void 0;function kI(t){return typeof t=="string"}Mn.isString=kI;function OI(t){return t===""}Mn.isEmpty=OI});var Fr=T(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.string=rt.stream=rt.pattern=rt.path=rt.fs=rt.errno=rt.array=void 0;var FI=Wg();rt.array=FI;var PI=Vg();rt.errno=PI;var II=Yg();rt.fs=II;var LI=Kg();rt.path=LI;var BI=_b();rt.pattern=BI;var NI=xb();rt.stream=NI;var MI=Db();rt.string=MI});var Rb=T(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.convertPatternGroupToTask=it.convertPatternGroupsToTasks=it.groupPatternsByBaseDirectory=it.getNegativePatternsAsPositive=it.getPositivePatterns=it.convertPatternsToTasks=it.generate=void 0;var Pr=Fr();function jI(t,e){let r=Ab(t),i=Cb(t,e.ignore),n=r.filter(u=>Pr.pattern.isStaticPattern(u,e)),s=r.filter(u=>Pr.pattern.isDynamicPattern(u,e)),o=Ph(n,i,!1),a=Ph(s,i,!0);return o.concat(a)}it.generate=jI;function Ph(t,e,r){let i=[],n=Pr.pattern.getPatternsOutsideCurrentDirectory(t),s=Pr.pattern.getPatternsInsideCurrentDirectory(t),o=Ih(n),a=Ih(s);return i.push(...Lh(o,e,r)),"."in a?i.push(Bh(".",s,e,r)):i.push(...Lh(a,e,r)),i}it.convertPatternsToTasks=Ph;function Ab(t){return Pr.pattern.getPositivePatterns(t)}it.getPositivePatterns=Ab;function Cb(t,e){return Pr.pattern.getNegativePatterns(t).concat(e).map(Pr.pattern.convertToPositivePattern)}it.getNegativePatternsAsPositive=Cb;function Ih(t){let e={};return t.reduce((r,i)=>{let n=Pr.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}it.groupPatternsByBaseDirectory=Ih;function Lh(t,e,r){return Object.keys(t).map(i=>Bh(i,t[i],e,r))}it.convertPatternGroupsToTasks=Lh;function Bh(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Pr.pattern.convertToNegativePattern))}}it.convertPatternGroupToTask=Bh});var kb=T(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.removeDuplicateSlashes=jn.transform=void 0;var qI=/(?!^)\/{2,}/g;function UI(t){return t.map(e=>Tb(e))}jn.transform=UI;function Tb(t){return t.replace(qI,"/")}jn.removeDuplicateSlashes=Tb});var Fb=T(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.read=void 0;function HI(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){Ob(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){Nh(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){Ob(r,s);return}Nh(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Nh(r,o)})})}Ua.read=HI;function Ob(t,e){t(e)}function Nh(t,e){t(null,e)}});var Pb=T(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.read=void 0;function $I(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let i=e.fs.statSync(t);return e.markSymbolicLink&&(i.isSymbolicLink=()=>!0),i}catch(i){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw i}}Ha.read=$I});var Ib=T(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.createFileSystemAdapter=oi.FILE_SYSTEM_ADAPTER=void 0;var $a=require("fs");oi.FILE_SYSTEM_ADAPTER={lstat:$a.lstat,stat:$a.stat,lstatSync:$a.lstatSync,statSync:$a.statSync};function zI(t){return t===void 0?oi.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},oi.FILE_SYSTEM_ADAPTER),t)}oi.createFileSystemAdapter=zI});var Lb=T(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});var GI=Ib(),Mh=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=GI.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}};jh.default=Mh});var Wi=T(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.statSync=ai.stat=ai.Settings=void 0;var Bb=Fb(),WI=Pb(),qh=Lb();ai.Settings=qh.default;function VI(t,e,r){if(typeof e=="function"){Bb.read(t,Uh(),e);return}Bb.read(t,Uh(e),r)}ai.stat=VI;function YI(t,e){let r=Uh(e);return WI.read(t,r)}ai.statSync=YI;function Uh(t={}){return t instanceof qh.default?t:new qh.default(t)}});var jb=T((L9,Mb)=>{var Nb;Mb.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(Nb||(Nb=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Ub=T((B9,qb)=>{qb.exports=ZI;var KI=jb();function ZI(t,e){let r,i,n,s=!0;Array.isArray(t)?(r=[],i=t.length):(n=Object.keys(t),r={},i=n.length);function o(u){function c(){e&&e(u,r),e=null}s?KI(c):c()}function a(u,c,l){r[u]=l,(--i===0||c)&&o(c)}i?n?n.forEach(function(u){t[u](function(c,l){a(u,c,l)})}):t.forEach(function(u,c){u(function(l,h){a(c,l,h)})}):o(null),s=!1}});var Hh=T(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var za=process.versions.node.split(".");if(za[0]===void 0||za[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Hb=Number.parseInt(za[0],10),JI=Number.parseInt(za[1],10),$b=10,XI=10,QI=Hb>$b,eL=Hb===$b&&JI>=XI;Ga.IS_SUPPORT_READDIR_WITH_FILE_TYPES=QI||eL});var zb=T(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.createDirentFromStats=void 0;var $h=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 tL(t,e){return new $h(t,e)}Wa.createDirentFromStats=tL});var zh=T(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.fs=void 0;var rL=zb();Va.fs=rL});var Gh=T(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.joinPathSegments=void 0;function iL(t,e,r){return t.endsWith(r)?t+e:t+r+e}Ya.joinPathSegments=iL});var Zb=T(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.readdir=ui.readdirWithFileTypes=ui.read=void 0;var nL=Wi(),Gb=Ub(),sL=Hh(),Wb=zh(),Vb=Gh();function oL(t,e,r){if(!e.stats&&sL.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Yb(t,e,r);return}Kb(t,e,r)}ui.read=oL;function Yb(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){Ka(r,i);return}let s=n.map(a=>({dirent:a,name:a.name,path:Vb.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Wh(r,s);return}let o=s.map(a=>aL(a,e));Gb(o,(a,u)=>{if(a!==null){Ka(r,a);return}Wh(r,u)})})}ui.readdirWithFileTypes=Yb;function aL(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(i,n)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){r(i);return}r(null,t);return}t.dirent=Wb.fs.createDirentFromStats(t.name,n),r(null,t)})}}function Kb(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){Ka(r,i);return}let s=n.map(o=>{let a=Vb.joinPathSegments(t,o,e.pathSegmentSeparator);return u=>{nL.stat(a,e.fsStatSettings,(c,l)=>{if(c!==null){u(c);return}let h={name:o,path:a,dirent:Wb.fs.createDirentFromStats(o,l)};e.stats&&(h.stats=l),u(null,h)})}});Gb(s,(o,a)=>{if(o!==null){Ka(r,o);return}Wh(r,a)})})}ui.readdir=Kb;function Ka(t,e){t(e)}function Wh(t,e){t(null,e)}});var tE=T(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.readdir=ci.readdirWithFileTypes=ci.read=void 0;var uL=Wi(),cL=Hh(),Jb=zh(),Xb=Gh();function lL(t,e){return!e.stats&&cL.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Qb(t,e):eE(t,e)}ci.read=lL;function Qb(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:Xb.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=Jb.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}ci.readdirWithFileTypes=Qb;function eE(t,e){return e.fs.readdirSync(t).map(i=>{let n=Xb.joinPathSegments(t,i,e.pathSegmentSeparator),s=uL.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:Jb.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}ci.readdir=eE});var rE=T(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.createFileSystemAdapter=li.FILE_SYSTEM_ADAPTER=void 0;var qn=require("fs");li.FILE_SYSTEM_ADAPTER={lstat:qn.lstat,stat:qn.stat,lstatSync:qn.lstatSync,statSync:qn.statSync,readdir:qn.readdir,readdirSync:qn.readdirSync};function hL(t){return t===void 0?li.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},li.FILE_SYSTEM_ADAPTER),t)}li.createFileSystemAdapter=hL});var iE=T(Yh=>{"use strict";Object.defineProperty(Yh,"__esModule",{value:!0});var fL=require("path"),dL=Wi(),pL=rE(),Vh=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=pL.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,fL.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new dL.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Yh.default=Vh});var Za=T(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.Settings=hi.scandirSync=hi.scandir=void 0;var nE=Zb(),mL=tE(),Kh=iE();hi.Settings=Kh.default;function yL(t,e,r){if(typeof e=="function"){nE.read(t,Zh(),e);return}nE.read(t,Zh(e),r)}hi.scandir=yL;function gL(t,e){let r=Zh(e);return mL.read(t,r)}hi.scandirSync=gL;function Zh(t={}){return t instanceof Kh.default?t:new Kh.default(t)}});var oE=T((W9,sE)=>{"use strict";function _L(t){var e=new t,r=e;function i(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function n(s){r.next=s,r=s}return{get:i,release:n}}sE.exports=_L});var uE=T((V9,Jh)=>{"use strict";var bL=oE();function aE(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 i=bL(EL),n=null,s=null,o=0,a=null,u={push:y,drain:Bt,saturated:Bt,pause:l,paused:!1,concurrency:r,running:c,resume:d,idle:m,length:h,getQueue:f,unshift:p,empty:Bt,kill:C,killAndDrain:k,error:P};return u;function c(){return o}function l(){u.paused=!0}function h(){for(var F=n,M=0;F;)F=F.next,M++;return M}function f(){for(var F=n,M=[];F;)M.push(F.value),F=F.next;return M}function d(){if(u.paused){u.paused=!1;for(var F=0;F<u.concurrency;F++)o++,v()}}function m(){return o===0&&u.length()===0}function y(F,M){var S=i.get();S.context=t,S.release=v,S.value=F,S.callback=M||Bt,S.errorHandler=a,o===u.concurrency||u.paused?s?(s.next=S,s=S):(n=S,s=S,u.saturated()):(o++,e.call(t,S.value,S.worked))}function p(F,M){var S=i.get();S.context=t,S.release=v,S.value=F,S.callback=M||Bt,o===u.concurrency||u.paused?n?(S.next=n,n=S):(n=S,s=S,u.saturated()):(o++,e.call(t,S.value,S.worked))}function v(F){F&&i.release(F);var M=n;M?u.paused?o--:(s===n&&(s=null),n=M.next,M.next=null,e.call(t,M.value,M.worked),s===null&&u.empty()):--o===0&&u.drain()}function C(){n=null,s=null,u.drain=Bt}function k(){n=null,s=null,u.drain(),u.drain=Bt}function P(F){a=F}}function Bt(){}function EL(){this.value=null,this.callback=Bt,this.next=null,this.release=Bt,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,i){var n=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=Bt,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function vL(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(l,h){e.call(this,l).then(function(f){h(null,f)},h)}var n=aE(t,i,r),s=n.push,o=n.unshift;return n.push=a,n.unshift=u,n.drained=c,n;function a(l){var h=new Promise(function(f,d){s(l,function(m,y){if(m){d(m);return}f(y)})});return h.catch(Bt),h}function u(l){var h=new Promise(function(f,d){o(l,function(m,y){if(m){d(m);return}f(y)})});return h.catch(Bt),h}function c(){var l=n.drain,h=new Promise(function(f){n.drain=function(){l(),f()}});return h}}Jh.exports=aE;Jh.exports.promise=vL});var Ja=T(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.joinPathSegments=cr.replacePathSegmentSeparator=cr.isAppliedFilter=cr.isFatalError=void 0;function wL(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}cr.isFatalError=wL;function SL(t,e){return t===null||t(e)}cr.isAppliedFilter=SL;function xL(t,e){return t.split(/[/\\]/).join(e)}cr.replacePathSegmentSeparator=xL;function DL(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}cr.joinPathSegments=DL});var ef=T(Qh=>{"use strict";Object.defineProperty(Qh,"__esModule",{value:!0});var AL=Ja(),Xh=class{constructor(e,r){this._root=e,this._settings=r,this._root=AL.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Qh.default=Xh});var nf=T(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});var CL=require("events"),RL=Za(),TL=uE(),Xa=Ja(),kL=ef(),tf=class extends kL.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=RL.scandir,this._emitter=new CL.EventEmitter,this._queue=TL(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 i={directory:e,base:r};this._queue.push(i,n=>{n!==null&&this._handleError(n)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(i,n)=>{if(i!==null){r(i,void 0);return}for(let s of n)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Xa.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 i=e.path;r!==void 0&&(e.path=Xa.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Xa.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Xa.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};rf.default=tf});var cE=T(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});var OL=nf(),sf=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new OL.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{FL(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{PL(e,this._storage)}),this._reader.read()}};of.default=sf;function FL(t,e){t(e)}function PL(t,e){t(null,e)}});var lE=T(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});var IL=require("stream"),LL=nf(),af=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new LL.default(this._root,this._settings),this._stream=new IL.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}};uf.default=af});var hE=T(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});var BL=Za(),Qa=Ja(),NL=ef(),cf=class extends NL.default{constructor(){super(...arguments),this._scandir=BL.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 i=this._scandir(e,this._settings.fsScandirSettings);for(let n of i)this._handleEntry(n,r)}catch(i){this._handleError(i)}}_handleError(e){if(Qa.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=Qa.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Qa.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Qa.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};lf.default=cf});var fE=T(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});var ML=hE(),hf=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new ML.default(this._root,this._settings)}read(){return this._reader.read()}};ff.default=hf});var dE=T(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});var jL=require("path"),qL=Za(),df=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,jL.sep),this.fsScandirSettings=new qL.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}};pf.default=df});var tu=T(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.Settings=lr.walkStream=lr.walkSync=lr.walk=void 0;var pE=cE(),UL=lE(),HL=fE(),mf=dE();lr.Settings=mf.default;function $L(t,e,r){if(typeof e=="function"){new pE.default(t,eu()).read(e);return}new pE.default(t,eu(e)).read(r)}lr.walk=$L;function zL(t,e){let r=eu(e);return new HL.default(t,r).read()}lr.walkSync=zL;function GL(t,e){let r=eu(e);return new UL.default(t,r).read()}lr.walkStream=GL;function eu(t={}){return t instanceof mf.default?t:new mf.default(t)}});var ru=T(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});var WL=require("path"),VL=Wi(),mE=Fr(),yf=class{constructor(e){this._settings=e,this._fsStatSettings=new VL.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return WL.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:mE.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!mE.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};gf.default=yf});var Ef=T(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});var YL=require("stream"),KL=Wi(),ZL=tu(),JL=ru(),_f=class extends JL.default{constructor(){super(...arguments),this._walkStream=ZL.walkStream,this._stat=KL.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new YL.PassThrough({objectMode:!0});n._write=(s,o,a)=>this._getEntry(i[s],e[s],r).then(u=>{u!==null&&r.entryFilter(u)&&n.push(u),s===i.length-1&&n.end(),a()}).catch(a);for(let s=0;s<i.length;s++)n.write(s);return n}_getEntry(e,r,i){return this._getStat(e).then(n=>this._makeEntry(n,r)).catch(n=>{if(i.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((r,i)=>{this._stat(e,this._fsStatSettings,(n,s)=>n===null?r(s):i(n))})}};bf.default=_f});var yE=T(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});var XL=tu(),QL=ru(),e2=Ef(),vf=class extends QL.default{constructor(){super(...arguments),this._walkAsync=XL.walk,this._readerStream=new e2.default(this._settings)}dynamic(e,r){return new Promise((i,n)=>{this._walkAsync(e,r,(s,o)=>{s===null?i(o):n(s)})})}async static(e,r){let i=[],n=this._readerStream.static(e,r);return new Promise((s,o)=>{n.once("error",o),n.on("data",a=>i.push(a)),n.once("end",()=>s(i))})}};wf.default=vf});var gE=T(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});var Un=Fr(),Sf=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Un.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let i=this._getPatternSegments(r),n=this._splitSegmentsIntoSections(i);this._storage.push({complete:n.length<=1,pattern:r,segments:i,sections:n})}}_getPatternSegments(e){return Un.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Un.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Un.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Un.array.splitWhen(e,r=>r.dynamic&&Un.pattern.hasGlobStar(r.pattern))}};xf.default=Sf});var _E=T(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});var t2=gE(),Df=class extends t2.default{match(e){let r=e.split("/"),i=r.length,n=this._storage.filter(s=>!s.complete||s.segments.length>i);for(let s of n){let o=s.sections[0];if(!s.complete&&i>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}};Af.default=Df});var bE=T(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});var iu=Fr(),r2=_E(),Cf=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,i){let n=this._getMatcher(r),s=this._getNegativePatternsRe(i);return o=>this._filter(e,o,n,s)}_getMatcher(e){return new r2.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(iu.pattern.isAffectDepthOfReadingPattern);return iu.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=iu.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,i)?!1:this._isSkippedByNegativePatterns(s,n)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let i=r.split("/").length;if(e==="")return i;let n=e.split("/").length;return i-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!iu.pattern.matchAny(e,r)}};Rf.default=Cf});var EE=T(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});var Vi=Fr(),Tf=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=Vi.pattern.convertPatternsToRe(e,this._micromatchOptions),n=Vi.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,i,n)}_filter(e,r,i){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,i))return!1;let n=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(n,r,s)&&!this._isMatchToPatterns(e.path,i,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 i=Vi.path.makeAbsolute(this._settings.cwd,e);return Vi.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=Vi.path.removeLeadingDotSegment(e),s=Vi.pattern.matchAny(n,r);return!s&&i?Vi.pattern.matchAny(n+"/",r):s}};kf.default=Tf});var vE=T(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});var i2=Fr(),Of=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return i2.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Ff.default=Of});var SE=T(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});var wE=Fr(),Pf=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=wE.path.makeAbsolute(this._settings.cwd,r),r=wE.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};If.default=Pf});var nu=T(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});var n2=require("path"),s2=bE(),o2=EE(),a2=vE(),u2=SE(),Lf=class{constructor(e){this._settings=e,this.errorFilter=new a2.default(this._settings),this.entryFilter=new o2.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new s2.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new u2.default(this._settings)}_getRootDirectory(e){return n2.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}}};Bf.default=Lf});var xE=T(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});var c2=yE(),l2=nu(),Nf=class extends l2.default{constructor(){super(...arguments),this._reader=new c2.default(this._settings)}async read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return(await this.api(r,e,i)).map(s=>i.transform(s))}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};Mf.default=Nf});var DE=T(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});var h2=require("stream"),f2=Ef(),d2=nu(),jf=class extends d2.default{constructor(){super(...arguments),this._reader=new f2.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new h2.Readable({objectMode:!0,read:()=>{}});return n.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",i.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>n.destroy()),s}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};qf.default=jf});var AE=T(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});var p2=Wi(),m2=tu(),y2=ru(),Uf=class extends y2.default{constructor(){super(...arguments),this._walkSync=m2.walkSync,this._statSync=p2.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let i=[];for(let n of e){let s=this._getFullEntryPath(n),o=this._getEntry(s,n,r);o===null||!r.entryFilter(o)||i.push(o)}return i}_getEntry(e,r,i){try{let n=this._getStat(e);return this._makeEntry(n,r)}catch(n){if(i.errorFilter(n))return null;throw n}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Hf.default=Uf});var CE=T(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});var g2=AE(),_2=nu(),$f=class extends _2.default{constructor(){super(...arguments),this._reader=new g2.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e);return this.api(r,e,i).map(i.transform)}api(e,r,i){return r.dynamic?this._reader.dynamic(e,i):this._reader.static(r.patterns,i)}};zf.default=$f});var RE=T($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Hn=require("fs"),b2=require("os"),E2=Math.max(b2.cpus().length,1);$n.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Hn.lstat,lstatSync:Hn.lstatSync,stat:Hn.stat,statSync:Hn.statSync,readdir:Hn.readdir,readdirSync:Hn.readdirSync};var Gf=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,E2),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=Gf});var su=T((_$,OE)=>{"use strict";var TE=Rb(),kE=kb(),v2=xE(),w2=DE(),S2=CE(),Wf=RE(),Yi=Fr();async function Vf(t,e){zn(t);let r=Yf(t,v2.default,e),i=await Promise.all(r);return Yi.array.flatten(i)}(function(t){function e(o,a){zn(o);let u=Yf(o,S2.default,a);return Yi.array.flatten(u)}t.sync=e;function r(o,a){zn(o);let u=Yf(o,w2.default,a);return Yi.stream.merge(u)}t.stream=r;function i(o,a){zn(o);let u=kE.transform([].concat(o)),c=new Wf.default(a);return TE.generate(u,c)}t.generateTasks=i;function n(o,a){zn(o);let u=new Wf.default(a);return Yi.pattern.isDynamicPattern(o,u)}t.isDynamicPattern=n;function s(o){return zn(o),Yi.path.escape(o)}t.escapePath=s})(Vf||(Vf={}));function Yf(t,e,r){let i=kE.transform([].concat(t)),n=new Wf.default(r),s=TE.generate(i,n),o=new e(n);return s.map(o.read,o)}function zn(t){if(![].concat(t).every(i=>Yi.string.isString(i)&&!Yi.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}OE.exports=Vf});var PE=T((b$,Kf)=>{"use strict";var FE=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Kf.exports=FE;Kf.exports.default=FE});var Zf=T((E$,au)=>{"use strict";var x2=PE(),ou=new WeakMap,IE=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,i=0,n=t.displayName||t.name||"<anonymous>",s=function(...o){if(ou.set(s,++i),i===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return r};return x2(s,t),ou.set(s,i),s};au.exports=IE;au.exports.default=IE;au.exports.callCount=t=>{if(!ou.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return ou.get(t)}});var LE=T((v$,uu)=>{uu.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&uu.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&uu.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Qf=T((w$,Vn)=>{var Be=global.process,Ki=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"};Ki(Be)?(BE=require("assert"),Gn=LE(),NE=/^win/i.test(Be.platform),go=require("events"),typeof go!="function"&&(go=go.EventEmitter),Be.__signal_exit_emitter__?We=Be.__signal_exit_emitter__:(We=Be.__signal_exit_emitter__=new go,We.count=0,We.emitted={}),We.infinite||(We.setMaxListeners(1/0),We.infinite=!0),Vn.exports=function(t,e){if(!Ki(global.process))return function(){};BE.equal(typeof t,"function","a callback must be provided for exit handler"),Wn===!1&&Jf();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){We.removeListener(r,t),We.listeners("exit").length===0&&We.listeners("afterexit").length===0&&cu()};return We.on(r,t),i},cu=function(){!Wn||!Ki(global.process)||(Wn=!1,Gn.forEach(function(e){try{Be.removeListener(e,lu[e])}catch{}}),Be.emit=hu,Be.reallyExit=Xf,We.count-=1)},Vn.exports.unload=cu,Zi=function(e,r,i){We.emitted[e]||(We.emitted[e]=!0,We.emit(e,r,i))},lu={},Gn.forEach(function(t){lu[t]=function(){if(Ki(global.process)){var r=Be.listeners(t);r.length===We.count&&(cu(),Zi("exit",null,t),Zi("afterexit",null,t),NE&&t==="SIGHUP"&&(t="SIGINT"),Be.kill(Be.pid,t))}}}),Vn.exports.signals=function(){return Gn},Wn=!1,Jf=function(){Wn||!Ki(global.process)||(Wn=!0,We.count+=1,Gn=Gn.filter(function(e){try{return Be.on(e,lu[e]),!0}catch{return!1}}),Be.emit=jE,Be.reallyExit=ME)},Vn.exports.load=Jf,Xf=Be.reallyExit,ME=function(e){Ki(global.process)&&(Be.exitCode=e||0,Zi("exit",Be.exitCode,null),Zi("afterexit",Be.exitCode,null),Xf.call(Be,Be.exitCode))},hu=Be.emit,jE=function(e,r){if(e==="exit"&&Ki(global.process)){r!==void 0&&(Be.exitCode=r);var i=hu.apply(this,arguments);return Zi("exit",Be.exitCode,null),Zi("afterexit",Be.exitCode,null),i}else return hu.apply(this,arguments)}):Vn.exports=function(){return function(){}};var BE,Gn,NE,go,We,cu,Zi,lu,Wn,Jf,Xf,ME,hu,jE});var UE=T((S$,qE)=>{"use strict";var D2=Zf(),A2=Qf();qE.exports=D2(()=>{A2(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var HE=T(Yn=>{"use strict";var C2=UE(),fu=!1;Yn.show=(t=process.stderr)=>{t.isTTY&&(fu=!1,t.write("\x1B[?25h"))};Yn.hide=(t=process.stderr)=>{t.isTTY&&(C2(),fu=!0,t.write("\x1B[?25l"))};Yn.toggle=(t,e)=>{t!==void 0&&(fu=t),fu?Yn.show(e):Yn.hide(e)}});var $E=T((D$,R2)=>{R2.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 WE=T((A$,GE)=>{"use strict";var du=Object.assign({},$E()),zE=Object.keys(du);Object.defineProperty(du,"random",{get(){let t=Math.floor(Math.random()*zE.length),e=zE[t];return du[e]}});GE.exports=du});var YE=T((C$,VE)=>{"use strict";var fi=require("chalk"),T2=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",k2={info:fi.blue("\u2139"),success:fi.green("\u2714"),warning:fi.yellow("\u26A0"),error:fi.red("\u2716")},O2={info:fi.blue("i"),success:fi.green("\u221A"),warning:fi.yellow("\u203C"),error:fi.red("\xD7")};VE.exports=T2?k2:O2});var ZE=T((R$,KE)=>{"use strict";KE.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 XE=T((T$,JE)=>{"use strict";var F2=ZE();JE.exports=t=>typeof t=="string"?t.replace(F2(),""):t});var QE=T((k$,pu)=>{var P2=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 h=[],f=[],d=typeof Buffer!="undefined";typeof a=="undefined"&&(a=!0),typeof u=="undefined"&&(u=1/0);function m(y,p){if(y===null)return null;if(p==0)return y;var v,C;if(typeof y!="object")return y;if(t.__isArray(y))v=[];else if(t.__isRegExp(y))v=new RegExp(y.source,s(y)),y.lastIndex&&(v.lastIndex=y.lastIndex);else if(t.__isDate(y))v=new Date(y.getTime());else{if(d&&Buffer.isBuffer(y))return Buffer.allocUnsafe?v=Buffer.allocUnsafe(y.length):v=new Buffer(y.length),y.copy(v),v;typeof c=="undefined"?(C=Object.getPrototypeOf(y),v=Object.create(C)):(v=Object.create(c),C=c)}if(a){var k=h.indexOf(y);if(k!=-1)return f[k];h.push(y),f.push(v)}for(var P in y){var F;C&&(F=Object.getOwnPropertyDescriptor(C,P)),!(F&&F.set==null)&&(v[P]=m(y[P],p-1))}return v}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 i(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=i;function n(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=n;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 pu=="object"&&pu.exports&&(pu.exports=P2)});var tv=T((O$,ev)=>{var I2=QE();ev.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]=="undefined"&&(t[r]=I2(e[r]))}),t}});var iv=T((F$,rv)=>{rv.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 av=T((P$,ed)=>{"use strict";var L2=tv(),_o=iv(),sv={nul:0,control:0};ed.exports=function(e){return ov(e,sv)};ed.exports.config=function(t){return t=L2(t||{},sv),function(r){return ov(r,t)}};function ov(t,e){if(typeof t!="string")return nv(t,e);for(var r=0,i=0;i<t.length;i++){var n=nv(t.charCodeAt(i),e);if(n<0)return-1;r+=n}return r}function nv(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:B2(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 B2(t){var e=0,r=_o.length-1,i;if(t<_o[0][0]||t>_o[r][1])return!1;for(;r>=e;)if(i=Math.floor((e+r)/2),t>_o[i][1])e=i+1;else if(t<_o[i][0])r=i-1;else return!0;return!1}});var cv=T((I$,uv)=>{"use strict";uv.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var hv=T((L$,lv)=>{var td=require("stream");lv.exports=Ve;function Ve(t){td.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}Ve.prototype=Object.create(td.prototype);Object.defineProperty(Ve.prototype,"constructor",{value:Ve,enumerable:!1});Ve.prototype.mute=function(){this.muted=!0};Ve.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Ve.prototype,"_onpipe",{value:N2,enumerable:!1,writable:!0,configurable:!0});function N2(t){this._src=t}Object.defineProperty(Ve.prototype,"isTTY",{get:M2,set:j2,enumerable:!0,configurable:!0});function M2(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function j2(t){Object.defineProperty(this,"isTTY",{value:t,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Ve.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Ve.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Ve.prototype.pipe=function(t,e){return this._dest=t,td.prototype.pipe.call(this,t,e)};Ve.prototype.pause=function(){if(this._src)return this._src.pause()};Ve.prototype.resume=function(){if(this._src)return this._src.resume()};Ve.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)};Ve.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 rd(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)}}Ve.prototype.destroy=rd("destroy");Ve.prototype.destroySoon=rd("destroySoon");Ve.prototype.close=rd("close")});var Eu=T((B$,sd)=>{"use strict";var q2=require("readline"),U2=require("chalk"),fv=HE(),mu=WE(),yu=YE(),H2=XE(),$2=av(),z2=cv(),G2=hv(),id=Symbol("text"),gu=Symbol("prefixText"),W2=3,nd=class{constructor(){this.requests=0,this.mutedStream=new G2,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let e=this;this.ourEmit=function(r,i,...n){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&i.includes(W2)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,i,...n])}else Reflect.apply(process.stdin.emit,this,[r,i,...n])}}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=q2.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)}},_u,bu=class{constructor(e){_u||(_u=new nd),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:z2({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=mu.line;else if(e===void 0)this._spinner=mu.dots;else if(mu[e])this._spinner=mu[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[id]}get prefixText(){return this[gu]}get isSpinning(){return this.id!==void 0}updateLineCount(){let e=this.stream.columns||80,r=typeof this[gu]=="string"?this[gu]+"-":"";this.lineCount=H2(r+"--"+this[id]).split(`
|
4
|
+
`).reduce((i,n)=>i+Math.max(1,Math.ceil($2(n)/e)),0)}set text(e){this[id]=e,this.updateLineCount()}set prefixText(e){this[gu]=e,this.updateLineCount()}frame(){let{frames:e}=this.spinner,r=e[this.frameIndex];this.color&&(r=U2[this.color](r)),this.frameIndex=++this.frameIndex%e.length;let i=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",n=typeof this.text=="string"?" "+this.text:"";return i+r+n}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&&fv.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,_u.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
|
5
|
+
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&fv.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(_u.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:yu.success,text:e})}fail(e){return this.stopAndPersist({symbol:yu.error,text:e})}warn(e){return this.stopAndPersist({symbol:yu.warning,text:e})}info(e){return this.stopAndPersist({symbol:yu.info,text:e})}stopAndPersist(e={}){let r=e.prefixText||this.prefixText,i=typeof r=="string"&&r!==""?r+" ":"",n=e.text||this.text,s=typeof n=="string"?" "+n:"";return this.stop(),this.stream.write(`${i}${e.symbol||" "}${s}
|
6
|
+
`),this}},V2=function(t){return new bu(t)};sd.exports=V2;sd.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new bu(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var dv=T((N$,vu)=>{(function(t){var e=/^\s+/,r=/\s+$/,i=0,n=t.round,s=t.min,o=t.max,a=t.random;function u(w,B){if(w=w||"",B=B||{},w instanceof u)return w;if(!(this instanceof u))return new u(w,B);var A=c(w);this._originalInput=w,this._r=A.r,this._g=A.g,this._b=A.b,this._a=A.a,this._roundA=n(100*this._a)/100,this._format=B.format||A.format,this._gradientType=B.gradientType,this._r<1&&(this._r=n(this._r)),this._g<1&&(this._g=n(this._g)),this._b<1&&(this._b=n(this._b)),this._ok=A.ok,this._tc_id=i++}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 w=this.toRgb();return(w.r*299+w.g*587+w.b*114)/1e3},getLuminance:function(){var w=this.toRgb(),B,A,X,b,G,ee;return B=w.r/255,A=w.g/255,X=w.b/255,B<=.03928?b=B/12.92:b=t.pow((B+.055)/1.055,2.4),A<=.03928?G=A/12.92:G=t.pow((A+.055)/1.055,2.4),X<=.03928?ee=X/12.92:ee=t.pow((X+.055)/1.055,2.4),.2126*b+.7152*G+.0722*ee},setAlpha:function(w){return this._a=z(w),this._roundA=n(100*this._a)/100,this},toHsv:function(){var w=d(this._r,this._g,this._b);return{h:w.h*360,s:w.s,v:w.v,a:this._a}},toHsvString:function(){var w=d(this._r,this._g,this._b),B=n(w.h*360),A=n(w.s*100),X=n(w.v*100);return this._a==1?"hsv("+B+", "+A+"%, "+X+"%)":"hsva("+B+", "+A+"%, "+X+"%, "+this._roundA+")"},toHsl:function(){var w=h(this._r,this._g,this._b);return{h:w.h*360,s:w.s,l:w.l,a:this._a}},toHslString:function(){var w=h(this._r,this._g,this._b),B=n(w.h*360),A=n(w.s*100),X=n(w.l*100);return this._a==1?"hsl("+B+", "+A+"%, "+X+"%)":"hsla("+B+", "+A+"%, "+X+"%, "+this._roundA+")"},toHex:function(w){return y(this._r,this._g,this._b,w)},toHexString:function(w){return"#"+this.toHex(w)},toHex8:function(w){return p(this._r,this._g,this._b,this._a,w)},toHex8String:function(w){return"#"+this.toHex8(w)},toRgb:function(){return{r:n(this._r),g:n(this._g),b:n(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+n(this._r)+", "+n(this._g)+", "+n(this._b)+")":"rgba("+n(this._r)+", "+n(this._g)+", "+n(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:n(Z(this._r,255)*100)+"%",g:n(Z(this._g,255)*100)+"%",b:n(Z(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+n(Z(this._r,255)*100)+"%, "+n(Z(this._g,255)*100)+"%, "+n(Z(this._b,255)*100)+"%)":"rgba("+n(Z(this._r,255)*100)+"%, "+n(Z(this._g,255)*100)+"%, "+n(Z(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:I[y(this._r,this._g,this._b,!0)]||!1},toFilter:function(w){var B="#"+v(this._r,this._g,this._b,this._a),A=B,X=this._gradientType?"GradientType = 1, ":"";if(w){var b=u(w);A="#"+v(b._r,b._g,b._b,b._a)}return"progid:DXImageTransform.Microsoft.gradient("+X+"startColorstr="+B+",endColorstr="+A+")"},toString:function(w){var B=!!w;w=w||this._format;var A=!1,X=this._a<1&&this._a>=0,b=!B&&X&&(w==="hex"||w==="hex6"||w==="hex3"||w==="hex4"||w==="hex8"||w==="name");return b?w==="name"&&this._a===0?this.toName():this.toRgbString():(w==="rgb"&&(A=this.toRgbString()),w==="prgb"&&(A=this.toPercentageRgbString()),(w==="hex"||w==="hex6")&&(A=this.toHexString()),w==="hex3"&&(A=this.toHexString(!0)),w==="hex4"&&(A=this.toHex8String(!0)),w==="hex8"&&(A=this.toHex8String()),w==="name"&&(A=this.toName()),w==="hsl"&&(A=this.toHslString()),w==="hsv"&&(A=this.toHsvString()),A||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(w,B){var A=w.apply(null,[this].concat([].slice.call(B)));return this._r=A._r,this._g=A._g,this._b=A._b,this.setAlpha(A._a),this},lighten:function(){return this._applyModification(F,arguments)},brighten:function(){return this._applyModification(M,arguments)},darken:function(){return this._applyModification(S,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(P,arguments)},spin:function(){return this._applyModification(D,arguments)},_applyCombination:function(w,B){return w.apply(null,[this].concat([].slice.call(B)))},analogous:function(){return this._applyCombination(te,arguments)},complement:function(){return this._applyCombination(j,arguments)},monochromatic:function(){return this._applyCombination(ne,arguments)},splitcomplement:function(){return this._applyCombination(K,arguments)},triad:function(){return this._applyCombination(W,arguments)},tetrad:function(){return this._applyCombination(N,arguments)}},u.fromRatio=function(w,B){if(typeof w=="object"){var A={};for(var X in w)w.hasOwnProperty(X)&&(X==="a"?A[X]=w[X]:A[X]=x(w[X]));w=A}return u(w,B)};function c(w){var B={r:0,g:0,b:0},A=1,X=null,b=null,G=null,ee=!1,le=!1;return typeof w=="string"&&(w=he(w)),typeof w=="object"&&(V(w.r)&&V(w.g)&&V(w.b)?(B=l(w.r,w.g,w.b),ee=!0,le=String(w.r).substr(-1)==="%"?"prgb":"rgb"):V(w.h)&&V(w.s)&&V(w.v)?(X=x(w.s),b=x(w.v),B=m(w.h,X,b),ee=!0,le="hsv"):V(w.h)&&V(w.s)&&V(w.l)&&(X=x(w.s),G=x(w.l),B=f(w.h,X,G),ee=!0,le="hsl"),w.hasOwnProperty("a")&&(A=w.a)),A=z(A),{ok:ee,format:w.format||le,r:s(255,o(B.r,0)),g:s(255,o(B.g,0)),b:s(255,o(B.b,0)),a:A}}function l(w,B,A){return{r:Z(w,255)*255,g:Z(B,255)*255,b:Z(A,255)*255}}function h(w,B,A){w=Z(w,255),B=Z(B,255),A=Z(A,255);var X=o(w,B,A),b=s(w,B,A),G,ee,le=(X+b)/2;if(X==b)G=ee=0;else{var pe=X-b;switch(ee=le>.5?pe/(2-X-b):pe/(X+b),X){case w:G=(B-A)/pe+(B<A?6:0);break;case B:G=(A-w)/pe+2;break;case A:G=(w-B)/pe+4;break}G/=6}return{h:G,s:ee,l:le}}function f(w,B,A){var X,b,G;w=Z(w,360),B=Z(B,100),A=Z(A,100);function ee(Se,xe,we){return we<0&&(we+=1),we>1&&(we-=1),we<1/6?Se+(xe-Se)*6*we:we<1/2?xe:we<2/3?Se+(xe-Se)*(2/3-we)*6:Se}if(B===0)X=b=G=A;else{var le=A<.5?A*(1+B):A+B-A*B,pe=2*A-le;X=ee(pe,le,w+1/3),b=ee(pe,le,w),G=ee(pe,le,w-1/3)}return{r:X*255,g:b*255,b:G*255}}function d(w,B,A){w=Z(w,255),B=Z(B,255),A=Z(A,255);var X=o(w,B,A),b=s(w,B,A),G,ee,le=X,pe=X-b;if(ee=X===0?0:pe/X,X==b)G=0;else{switch(X){case w:G=(B-A)/pe+(B<A?6:0);break;case B:G=(A-w)/pe+2;break;case A:G=(w-B)/pe+4;break}G/=6}return{h:G,s:ee,v:le}}function m(w,B,A){w=Z(w,360)*6,B=Z(B,100),A=Z(A,100);var X=t.floor(w),b=w-X,G=A*(1-B),ee=A*(1-b*B),le=A*(1-(1-b)*B),pe=X%6,Se=[A,ee,G,G,le,A][pe],xe=[le,A,A,ee,G,G][pe],we=[G,G,le,A,A,ee][pe];return{r:Se*255,g:xe*255,b:we*255}}function y(w,B,A,X){var b=[R(n(w).toString(16)),R(n(B).toString(16)),R(n(A).toString(16))];return X&&b[0].charAt(0)==b[0].charAt(1)&&b[1].charAt(0)==b[1].charAt(1)&&b[2].charAt(0)==b[2].charAt(1)?b[0].charAt(0)+b[1].charAt(0)+b[2].charAt(0):b.join("")}function p(w,B,A,X,b){var G=[R(n(w).toString(16)),R(n(B).toString(16)),R(n(A).toString(16)),R(H(X))];return b&&G[0].charAt(0)==G[0].charAt(1)&&G[1].charAt(0)==G[1].charAt(1)&&G[2].charAt(0)==G[2].charAt(1)&&G[3].charAt(0)==G[3].charAt(1)?G[0].charAt(0)+G[1].charAt(0)+G[2].charAt(0)+G[3].charAt(0):G.join("")}function v(w,B,A,X){var b=[R(H(X)),R(n(w).toString(16)),R(n(B).toString(16)),R(n(A).toString(16))];return b.join("")}u.equals=function(w,B){return!w||!B?!1:u(w).toRgbString()==u(B).toRgbString()},u.random=function(){return u.fromRatio({r:a(),g:a(),b:a()})};function C(w,B){B=B===0?0:B||10;var A=u(w).toHsl();return A.s-=B/100,A.s=q(A.s),u(A)}function k(w,B){B=B===0?0:B||10;var A=u(w).toHsl();return A.s+=B/100,A.s=q(A.s),u(A)}function P(w){return u(w).desaturate(100)}function F(w,B){B=B===0?0:B||10;var A=u(w).toHsl();return A.l+=B/100,A.l=q(A.l),u(A)}function M(w,B){B=B===0?0:B||10;var A=u(w).toRgb();return A.r=o(0,s(255,A.r-n(255*-(B/100)))),A.g=o(0,s(255,A.g-n(255*-(B/100)))),A.b=o(0,s(255,A.b-n(255*-(B/100)))),u(A)}function S(w,B){B=B===0?0:B||10;var A=u(w).toHsl();return A.l-=B/100,A.l=q(A.l),u(A)}function D(w,B){var A=u(w).toHsl(),X=(A.h+B)%360;return A.h=X<0?360+X:X,u(A)}function j(w){var B=u(w).toHsl();return B.h=(B.h+180)%360,u(B)}function W(w){var B=u(w).toHsl(),A=B.h;return[u(w),u({h:(A+120)%360,s:B.s,l:B.l}),u({h:(A+240)%360,s:B.s,l:B.l})]}function N(w){var B=u(w).toHsl(),A=B.h;return[u(w),u({h:(A+90)%360,s:B.s,l:B.l}),u({h:(A+180)%360,s:B.s,l:B.l}),u({h:(A+270)%360,s:B.s,l:B.l})]}function K(w){var B=u(w).toHsl(),A=B.h;return[u(w),u({h:(A+72)%360,s:B.s,l:B.l}),u({h:(A+216)%360,s:B.s,l:B.l})]}function te(w,B,A){B=B||6,A=A||30;var X=u(w).toHsl(),b=360/A,G=[u(w)];for(X.h=(X.h-(b*B>>1)+720)%360;--B;)X.h=(X.h+b)%360,G.push(u(X));return G}function ne(w,B){B=B||6;for(var A=u(w).toHsv(),X=A.h,b=A.s,G=A.v,ee=[],le=1/B;B--;)ee.push(u({h:X,s:b,v:G})),G=(G+le)%1;return ee}u.mix=function(w,B,A){A=A===0?0:A||50;var X=u(w).toRgb(),b=u(B).toRgb(),G=A/100,ee={r:(b.r-X.r)*G+X.r,g:(b.g-X.g)*G+X.g,b:(b.b-X.b)*G+X.b,a:(b.a-X.a)*G+X.a};return u(ee)},u.readability=function(w,B){var A=u(w),X=u(B);return(t.max(A.getLuminance(),X.getLuminance())+.05)/(t.min(A.getLuminance(),X.getLuminance())+.05)},u.isReadable=function(w,B,A){var X=u.readability(w,B),b,G;switch(G=!1,b=J(A),b.level+b.size){case"AAsmall":case"AAAlarge":G=X>=4.5;break;case"AAlarge":G=X>=3;break;case"AAAsmall":G=X>=7;break}return G},u.mostReadable=function(w,B,A){var X=null,b=0,G,ee,le,pe;A=A||{},ee=A.includeFallbackColors,le=A.level,pe=A.size;for(var Se=0;Se<B.length;Se++)G=u.readability(w,B[Se]),G>b&&(b=G,X=u(B[Se]));return u.isReadable(w,X,{level:le,size:pe})||!ee?X:(A.includeFallbackColors=!1,u.mostReadable(w,["#fff","#000"],A))};var U=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"},I=u.hexNames=L(U);function L(w){var B={};for(var A in w)w.hasOwnProperty(A)&&(B[w[A]]=A);return B}function z(w){return w=parseFloat(w),(isNaN(w)||w<0||w>1)&&(w=1),w}function Z(w,B){_(w)&&(w="100%");var A=E(w);return w=s(B,o(0,parseFloat(w))),A&&(w=parseInt(w*B,10)/100),t.abs(w-B)<1e-6?1:w%B/parseFloat(B)}function q(w){return s(1,o(0,w))}function g(w){return parseInt(w,16)}function _(w){return typeof w=="string"&&w.indexOf(".")!=-1&&parseFloat(w)===1}function E(w){return typeof w=="string"&&w.indexOf("%")!=-1}function R(w){return w.length==1?"0"+w:""+w}function x(w){return w<=1&&(w=w*100+"%"),w}function H(w){return t.round(parseFloat(w)*255).toString(16)}function $(w){return g(w)/255}var re=function(){var w="[-\\+]?\\d+%?",B="[-\\+]?\\d*\\.\\d+%?",A="(?:"+B+")|(?:"+w+")",X="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?",b="[\\s|\\(]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")[,|\\s]+("+A+")\\s*\\)?";return{CSS_UNIT:new RegExp(A),rgb:new RegExp("rgb"+X),rgba:new RegExp("rgba"+b),hsl:new RegExp("hsl"+X),hsla:new RegExp("hsla"+b),hsv:new RegExp("hsv"+X),hsva:new RegExp("hsva"+b),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 V(w){return!!re.CSS_UNIT.exec(w)}function he(w){w=w.replace(e,"").replace(r,"").toLowerCase();var B=!1;if(U[w])w=U[w],B=!0;else if(w=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var A;return(A=re.rgb.exec(w))?{r:A[1],g:A[2],b:A[3]}:(A=re.rgba.exec(w))?{r:A[1],g:A[2],b:A[3],a:A[4]}:(A=re.hsl.exec(w))?{h:A[1],s:A[2],l:A[3]}:(A=re.hsla.exec(w))?{h:A[1],s:A[2],l:A[3],a:A[4]}:(A=re.hsv.exec(w))?{h:A[1],s:A[2],v:A[3]}:(A=re.hsva.exec(w))?{h:A[1],s:A[2],v:A[3],a:A[4]}:(A=re.hex8.exec(w))?{r:g(A[1]),g:g(A[2]),b:g(A[3]),a:$(A[4]),format:B?"name":"hex8"}:(A=re.hex6.exec(w))?{r:g(A[1]),g:g(A[2]),b:g(A[3]),format:B?"name":"hex"}:(A=re.hex4.exec(w))?{r:g(A[1]+""+A[1]),g:g(A[2]+""+A[2]),b:g(A[3]+""+A[3]),a:$(A[4]+""+A[4]),format:B?"name":"hex8"}:(A=re.hex3.exec(w))?{r:g(A[1]+""+A[1]),g:g(A[2]+""+A[2]),b:g(A[3]+""+A[3]),format:B?"name":"hex"}:!1}function J(w){var B,A;return w=w||{level:"AA",size:"small"},B=(w.level||"AA").toUpperCase(),A=(w.size||"small").toLowerCase(),B!=="AA"&&B!=="AAA"&&(B="AA"),A!=="small"&&A!=="large"&&(A="small"),{level:B,size:A}}typeof vu!="undefined"&&vu.exports?vu.exports=u:typeof define=="function"&&define.amd?define(function(){return u}):window.tinycolor=u})(Math)});var Ev=T((M$,bv)=>{var bo=dv(),gv={r:256,g:256,b:256,a:1},_v={h:360,s:1,v:1,a:1};function ad(t,e,r){let i={};for(let n in t)t.hasOwnProperty(n)&&(i[n]=r===0?0:(e[n]-t[n])/r);return i}function ud(t,e,r,i){let n={};for(let s in e)e.hasOwnProperty(s)&&(n[s]=t[s]*r+e[s],n[s]=n[s]<0?n[s]+i[s]:i[s]!==1?n[s]%i[s]:n[s]);return n}function od(t,e,r){let i=t.color.toRgb(),n=e.color.toRgb(),s=ad(i,n,r),o=[t.color];for(let a=1;a<r;a++){let u=ud(s,i,a,gv);o.push(bo(u))}return o}function pv(t,e,r,i){let n=t.color.toHsv(),s=e.color.toHsv();if(n.s===0||s.s===0)return od(t,e,r);let o;if(typeof i=="boolean")o=i;else{let l=n.h<s.h&&s.h-n.h<180||n.h>s.h&&n.h-s.h>180;o=i==="long"&&l||i==="short"&&!l}let a=ad(n,s,r),u=[t.color],c;n.h<=s.h&&!o||n.h>=s.h&&o?c=s.h-n.h:o?c=360-s.h+n.h:c=360-n.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(c)/r;for(let l=1;l<r;l++){let h=ud(a,n,l,_v);u.push(bo(h))}return u}function mv(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 i=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);i.push(Math.max(1,Math.round(o)))}let n=1;for(let s=r-1;s--;)n+=i[s];for(;n!==e;)if(n<e){let s=Math.min.apply(null,i);i[i.indexOf(s)]++,n++}else{let s=Math.max.apply(null,i);i[i.indexOf(s)]--,n--}return i}function yv(t,e,r,i){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let n,s;for(let u=0,c=t.length;u<c-1;u++)if(e>=t[u].pos&&e<t[u+1].pos){n=t[u],s=t[u+1];break}n||(n=s=t[t.length-1]);let o=ad(n.color[r](),s.color[r](),(s.pos-n.pos)*100),a=ud(o,n.color[r](),(e-n.pos)*100,i);return bo(a)}var Kn=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,i=e.length,n=-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===i-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!c,o={color:c?bo(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<n)throw new Error("Color stops positions are not ordered");n=o.pos}else o={color:bo(o.color!==void 0?o.color:o),pos:a/(i-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),i++),this.stops[i-1].pos!==1&&this.stops.push({color:this.stops[i-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new Kn(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(i=>{e.push({color:i.color,pos:i.pos/2})}),this.stops.slice(0,-1).forEach(i=>{r.push({color:i.color,pos:1-i.pos/2})}),new Kn(e.concat(r.reverse()))}rgb(e){let r=mv(this.stops,e),i=[];this.stops.forEach((n,s)=>{n.colorLess&&(n.color=od(this.stops[s-1],this.stops[s+1],2)[1])});for(let n=0,s=this.stops.length;n<s-1;n++){let o=od(this.stops[n],this.stops[n+1],r[n]);i.splice(i.length,0,...o)}return i.push(this.stops[this.stops.length-1].color),i}hsv(e,r){let i=mv(this.stops,e),n=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=pv(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=pv(this.stops[s],this.stops[s+1],i[s],r);n.splice(n.length,0,...a)}return n.push(this.stops[this.stops.length-1].color),n}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let i=e+"-gradient("+r;return this.stops.forEach(function(n){i+=", "+(n.colorLess?"":n.color.toRgbString()+" ")+n.pos*100+"%"}),i+=")",i}rgbAt(e){return yv(this.stops,e,"toRgb",gv)}hsvAt(e){return yv(this.stops,e,"toHsv",_v)}};bv.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 Kn(t)}});var Su=T((j$,wu)=>{"use strict";var wv=require("chalk"),Y2=Ev(),vv=/\s/g;function cd(...t){let e=Y2.apply(this,t),r=(i,n)=>K2(i?i.toString():"",e,n);return r.multiline=(i,n)=>Z2(i?i.toString():"",e,n),r}var Sv=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function K2(t,e,r){let i=xv(r),n=Math.max(t.replace(vv,"").length,e.stops.length),s=Sv(e,i,n),o="";for(let a of t)o+=a.match(vv)?a:wv.hex(s.shift().toHex())(a);return o}function Z2(t,e,r){let i=xv(r),n=t.split(`
|
7
|
+
`),s=Math.max.apply(null,n.map(u=>u.length).concat([e.stops.length])),o=Sv(e,i,s),a=[];for(let u of n){let c=o.slice(0),l="";for(let h of u)l+=wv.hex(c.shift().toHex())(h);a.push(l)}return a.join(`
|
8
|
+
`)}function xv(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 Eo={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"}}};wu.exports=cd;for(let t in Eo)wu.exports[t]=e=>new cd(Eo[t].colors)(e,Eo[t].options),wu.exports[t].multiline=e=>new cd(Eo[t].colors).multiline(e,Eo[t].options)});var Bv=T((z$,Lv)=>{Lv.exports=Iv;Iv.sync=lB;var Fv=require("fs");function cB(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 i=0;i<r.length;i++){var n=r[i].toLowerCase();if(n&&t.substr(-n.length).toLowerCase()===n)return!0}return!1}function Pv(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:cB(e,r)}function Iv(t,e,r){Fv.stat(t,function(i,n){r(i,i?!1:Pv(n,t,e))})}function lB(t,e){return Pv(Fv.statSync(t),t,e)}});var Uv=T((G$,qv)=>{qv.exports=Mv;Mv.sync=hB;var Nv=require("fs");function Mv(t,e,r){Nv.stat(t,function(i,n){r(i,i?!1:jv(n,e))})}function hB(t,e){return jv(Nv.statSync(t),e)}function jv(t,e){return t.isFile()&&fB(t,e)}function fB(t,e){var r=t.mode,i=t.uid,n=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,h=r&c||r&u&&n===o||r&a&&i===s||r&l&&s===0;return h}});var $v=T((V$,Hv)=>{var W$=require("fs"),xu;process.platform==="win32"||global.TESTING_WINDOWS?xu=Bv():xu=Uv();Hv.exports=hd;hd.sync=dB;function hd(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(i,n){hd(t,e||{},function(s,o){s?n(s):i(o)})})}xu(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function dB(t,e){try{return xu.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Zv=T((Y$,Kv)=>{var Jn=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",zv=require("path"),pB=Jn?";":":",Gv=$v(),Wv=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Vv=(t,e)=>{let r=e.colon||pB,i=t.match(/\//)||Jn&&t.match(/\\/)?[""]:[...Jn?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=Jn?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Jn?n.split(r):[""];return Jn&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},Yv=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=Vv(t,e),o=[],a=c=>new Promise((l,h)=>{if(c===i.length)return e.all&&o.length?l(o):h(Wv(t));let f=i[c],d=/^".*"$/.test(f)?f.slice(1,-1):f,m=zv.join(d,t),y=!d&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;l(u(y,c,0))}),u=(c,l,h)=>new Promise((f,d)=>{if(h===n.length)return f(a(l+1));let m=n[h];Gv(c+m,{pathExt:s},(y,p)=>{if(!y&&p)if(e.all)o.push(c+m);else return f(c+m);return f(u(c,l,h+1))})});return r?a(0).then(c=>r(null,c),r):a(0)},mB=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=Vv(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],u=/^".*"$/.test(a)?a.slice(1,-1):a,c=zv.join(u,t),l=!u&&/^\.[\\\/]/.test(t)?t.slice(0,2)+c:c;for(let h=0;h<i.length;h++){let f=l+i[h];try{if(Gv.sync(f,{pathExt:n}))if(e.all)s.push(f);else return f}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw Wv(t)};Kv.exports=Yv;Yv.sync=mB});var dd=T((K$,fd)=>{"use strict";var Jv=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};fd.exports=Jv;fd.exports.default=Jv});var tw=T((Z$,ew)=>{"use strict";var Xv=require("path"),yB=Zv(),gB=dd();function Qv(t,e){let r=t.options.env||process.env,i=process.cwd(),n=t.options.cwd!=null,s=n&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=yB.sync(t.command,{path:r[gB({env:r})],pathExt:e?Xv.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=Xv.resolve(n?t.options.cwd:"",o)),o}function _B(t){return Qv(t)||Qv(t,!0)}ew.exports=_B});var rw=T((J$,md)=>{"use strict";var pd=/([()\][%!^"`<>&|;, *?])/g;function bB(t){return t=t.replace(pd,"^$1"),t}function EB(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(pd,"^$1"),e&&(t=t.replace(pd,"^$1")),t}md.exports.command=bB;md.exports.argument=EB});var nw=T((X$,iw)=>{"use strict";iw.exports=/^#!(.*)/});var ow=T((Q$,sw)=>{"use strict";var vB=nw();sw.exports=(t="")=>{let e=t.match(vB);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var uw=T((e7,aw)=>{"use strict";var yd=require("fs"),wB=ow();function SB(t){let r=Buffer.alloc(150),i;try{i=yd.openSync(t,"r"),yd.readSync(i,r,0,150,0),yd.closeSync(i)}catch{}return wB(r.toString())}aw.exports=SB});var fw=T((t7,hw)=>{"use strict";var xB=require("path"),cw=tw(),lw=rw(),DB=uw(),AB=process.platform==="win32",CB=/\.(?:com|exe)$/i,RB=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function TB(t){t.file=cw(t);let e=t.file&&DB(t.file);return e?(t.args.unshift(t.file),t.command=e,cw(t)):t.file}function kB(t){if(!AB)return t;let e=TB(t),r=!CB.test(e);if(t.options.forceShell||r){let i=RB.test(e);t.command=xB.normalize(t.command),t.command=lw.command(t.command),t.args=t.args.map(s=>lw.argument(s,i));let n=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${n}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function OB(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let i={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?i:kB(i)}hw.exports=OB});var mw=T((r7,pw)=>{"use strict";var gd=process.platform==="win32";function _d(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 FB(t,e){if(!gd)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=dw(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function dw(t,e){return gd&&t===1&&!e.file?_d(e.original,"spawn"):null}function PB(t,e){return gd&&t===1&&!e.file?_d(e.original,"spawnSync"):null}pw.exports={hookChildProcess:FB,verifyENOENT:dw,verifyENOENTSync:PB,notFoundError:_d}});var _w=T((i7,Xn)=>{"use strict";var yw=require("child_process"),bd=fw(),Ed=mw();function gw(t,e,r){let i=bd(t,e,r),n=yw.spawn(i.command,i.args,i.options);return Ed.hookChildProcess(n,i),n}function IB(t,e,r){let i=bd(t,e,r),n=yw.spawnSync(i.command,i.args,i.options);return n.error=n.error||Ed.verifyENOENTSync(n.status,i),n}Xn.exports=gw;Xn.exports.spawn=gw;Xn.exports.sync=IB;Xn.exports._parse=bd;Xn.exports._enoent=Ed});var Ew=T((n7,bw)=>{"use strict";bw.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
|
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 Sw=T((s7,wo)=>{"use strict";var vo=require("path"),vw=dd(),ww=t=>{t={cwd:process.cwd(),path:process.env[vw()],execPath:process.execPath,...t};let e,r=vo.resolve(t.cwd),i=[];for(;e!==r;)i.push(vo.join(r,"node_modules/.bin")),e=r,r=vo.resolve(r,"..");let n=vo.resolve(t.cwd,t.execPath,"..");return i.push(n),i.concat(t.path).join(vo.delimiter)};wo.exports=ww;wo.exports.default=ww;wo.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=vw({env:e});return t.path=e[r],e[r]=wo.exports(t),e}});var xw=T(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.SIGNALS=void 0;var LB=[{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"}];Du.SIGNALS=LB});var vd=T(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.SIGRTMAX=Qn.getRealtimeSignals=void 0;var BB=function(){let t=Aw-Dw+1;return Array.from({length:t},NB)};Qn.getRealtimeSignals=BB;var NB=function(t,e){return{name:`SIGRT${e+1}`,number:Dw+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Dw=34,Aw=64;Qn.SIGRTMAX=Aw});var Cw=T(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.getSignals=void 0;var MB=require("os"),jB=xw(),qB=vd(),UB=function(){let t=(0,qB.getRealtimeSignals)();return[...jB.SIGNALS,...t].map(HB)};Au.getSignals=UB;var HB=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=MB.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:i,forced:n,standard:s}}});var Tw=T(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.signalsByNumber=es.signalsByName=void 0;var $B=require("os"),Rw=Cw(),zB=vd(),GB=function(){return(0,Rw.getSignals)().reduce(WB,{})},WB=function(t,{name:e,number:r,description:i,supported:n,action:s,forced:o,standard:a}){return{...t,[e]:{name:e,number:r,description:i,supported:n,action:s,forced:o,standard:a}}},VB=GB();es.signalsByName=VB;var YB=function(){let t=(0,Rw.getSignals)(),e=zB.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>KB(n,t));return Object.assign({},...r)},KB=function(t,e){let r=ZB(t,e);if(r===void 0)return{};let{name:i,description:n,supported:s,action:o,forced:a,standard:u}=r;return{[t]:{name:i,number:t,description:n,supported:s,action:o,forced:a,standard:u}}},ZB=function(t,e){let r=e.find(({name:i})=>$B.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},JB=YB();es.signalsByNumber=JB});var Ow=T((l7,kw)=>{"use strict";var{signalsByName:XB}=Tw(),QB=({timedOut:t,timeout:e,errorCode:r,signal:i,signalDescription:n,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:i!==void 0?`was killed with ${i} (${n})`:s!==void 0?`failed with exit code ${s}`:"failed",eN=({stdout:t,stderr:e,all:r,error:i,signal:n,exitCode:s,command:o,escapedCommand:a,timedOut:u,isCanceled:c,killed:l,parsed:{options:{timeout:h}}})=>{s=s===null?void 0:s,n=n===null?void 0:n;let f=n===void 0?void 0:XB[n].description,d=i&&i.code,y=`Command ${QB({timedOut:u,timeout:h,errorCode:d,signal:n,signalDescription:f,exitCode:s,isCanceled:c})}: ${o}`,p=Object.prototype.toString.call(i)==="[object Error]",v=p?`${y}
|
11
11
|
${i.message}`:y,C=[v,e,t].filter(Boolean).join(`
|
12
|
-
`);return p?(i.originalMessage=i.message,i.message=C):i=new Error(C),i.shortMessage=v,i.command=o,i.escapedCommand=a,i.exitCode=s,i.signal=n,i.signalDescription=f,i.stdout=t,i.stderr=e,r!==void 0&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!u,i.isCanceled=c,i.killed=l&&!u,i};Tw.exports=QB});var Fw=T((l7,wd)=>{"use strict";var Ru=["stdin","stdout","stderr"],eN=t=>Ru.some(e=>t[e]!==void 0),Ow=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Ru.map(i=>t[i]);if(eN(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Ru.map(i=>`\`${i}\``).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,Ru.length);return Array.from({length:r},(i,n)=>e[n])};wd.exports=Ow;wd.exports.node=t=>{let e=Ow(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var Iw=T((h7,Pw)=>{"use strict";var tN=require("os"),rN=Qf(),iN=1e3*5,nN=(t,e="SIGTERM",r={})=>{let i=t(e);return sN(t,e,r,i),i},sN=(t,e,r,i)=>{if(!oN(e,r,i))return;let n=uN(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},oN=(t,{forceKillAfterTimeout:e},r)=>aN(t)&&e!==!1&&r,aN=t=>t===tN.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",uN=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return iN;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},cN=(t,e)=>{t.kill()&&(e.isCanceled=!0)},lN=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},hN=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((a,u)=>{n=setTimeout(()=>{lN(t,r,u)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},fN=({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})`)},dN=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=rN(()=>{t.kill()});return i.finally(()=>{n()})};Pw.exports={spawnedKill:nN,spawnedCancel:cN,setupTimeout:hN,validateTimeout:fN,setExitHandler:dN}});var Bw=T((f7,Lw)=>{"use strict";var hr=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";hr.writable=t=>hr(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";hr.readable=t=>hr(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";hr.duplex=t=>hr.writable(t)&&hr.readable(t);hr.transform=t=>hr.duplex(t)&&typeof t._transform=="function";Lw.exports=hr});var Mw=T((d7,Nw)=>{"use strict";var{PassThrough:pN}=require("stream");Nw.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,i=r==="buffer",n=!1;e?n=!(r||i):r=r||"utf8",i&&(r=null);let s=new pN({objectMode:n});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),n?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var jw=T((p7,xo)=>{"use strict";var{constants:mN}=require("buffer"),yN=require("stream"),{promisify:gN}=require("util"),_N=Mw(),bN=gN(yN.pipeline),Tu=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Sd(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=_N(e);return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=mN.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};(async()=>{try{await bN(t,i),n()}catch(a){o(a)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new Tu)})}),i.getBufferedValue()}xo.exports=Sd;xo.exports.buffer=(t,e)=>Sd(t,{...e,encoding:"buffer"});xo.exports.array=(t,e)=>Sd(t,{...e,array:!0});xo.exports.MaxBufferError=Tu});var Uw=T((m7,qw)=>{"use strict";var{PassThrough:EN}=require("stream");qw.exports=function(){var t=[],e=new EN({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=i,e.on("unpipe",n),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",n.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function i(){return t.length==0}function n(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var Gw=T((y7,zw)=>{"use strict";var $w=Bw(),Hw=jw(),vN=Uw(),wN=(t,e)=>{e===void 0||t.stdin===void 0||($w(e)?e.pipe(t.stdin):t.stdin.end(e))},SN=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=vN();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},xd=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Dd=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?Hw(t,{encoding:e,maxBuffer:i}):Hw.buffer(t,{maxBuffer:i})},xN=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let a=Dd(t,{encoding:i,buffer:n,maxBuffer:s}),u=Dd(e,{encoding:i,buffer:n,maxBuffer:s}),c=Dd(r,{encoding:i,buffer:n,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},xd(t,a),xd(e,u),xd(r,c)])}},DN=({input:t})=>{if($w(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};zw.exports={handleInput:wN,makeAllStream:SN,getSpawnedResult:xN,validateInputSync:DN}});var Vw=T((g7,Ww)=>{"use strict";var AN=(async()=>{})().constructor.prototype,CN=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(AN,t)]),RN=(t,e)=>{for(let[r,i]of CN){let n=typeof e=="function"?(...s)=>Reflect.apply(i.value,e(),s):i.value.bind(e);Reflect.defineProperty(t,r,{...i,value:n})}return t},TN=t=>new Promise((e,r)=>{t.on("exit",(i,n)=>{e({exitCode:i,signal:n})}),t.on("error",i=>{r(i)}),t.stdin&&t.stdin.on("error",i=>{r(i)})});Ww.exports={mergePromise:RN,getSpawnedPromise:TN}});var Zw=T((_7,Kw)=>{"use strict";var Yw=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],kN=/^[\w.-]+$/,ON=/"/g,FN=t=>typeof t!="string"||kN.test(t)?t:`"${t.replace(ON,'\\"')}"`,PN=(t,e)=>Yw(t,e).join(" "),IN=(t,e)=>Yw(t,e).map(r=>FN(r)).join(" "),LN=/ +/g,BN=t=>{let e=[];for(let r of t.trim().split(LN)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};Kw.exports={joinCommand:PN,getEscapedCommand:IN,parseCommand:BN}});var is=T((b7,rs)=>{"use strict";var NN=require("path"),Ad=require("child_process"),MN=gw(),jN=bw(),qN=ww(),UN=Zf(),ku=kw(),Xw=Fw(),{spawnedKill:HN,spawnedCancel:$N,setupTimeout:zN,validateTimeout:GN,setExitHandler:WN}=Iw(),{handleInput:VN,getSpawnedResult:YN,makeAllStream:KN,validateInputSync:ZN}=Gw(),{mergePromise:Jw,getSpawnedPromise:JN}=Vw(),{joinCommand:Qw,parseCommand:eS,getEscapedCommand:tS}=Zw(),XN=1e3*1e3*100,QN=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?qN.env({env:s,cwd:i,execPath:n}):s},rS=(t,e,r={})=>{let i=MN._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:XN,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=QN(r),r.stdio=Xw(r),process.platform==="win32"&&NN.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},Do=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?jN(e):e,Ou=(t,e,r)=>{let i=rS(t,e,r),n=Qw(t,e),s=tS(t,e);GN(i.options);let o;try{o=Ad.spawn(i.file,i.args,i.options)}catch(d){let m=new Ad.ChildProcess,y=Promise.reject(ku({error:d,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return Jw(m,y)}let a=JN(o),u=zN(o,i.options,a),c=WN(o,i.options,u),l={isCanceled:!1};o.kill=HN.bind(null,o.kill.bind(o)),o.cancel=$N.bind(null,o,l);let f=UN(async()=>{let[{error:d,exitCode:m,signal:y,timedOut:p},v,C,k]=await YN(o,i.options,c),P=Do(i.options,v),F=Do(i.options,C),M=Do(i.options,k);if(d||m!==0||y!==null){let S=ku({error:d,exitCode:m,signal:y,stdout:P,stderr:F,all:M,command:n,escapedCommand:s,parsed:i,timedOut:p,isCanceled:l.isCanceled,killed:o.killed});if(!i.options.reject)return S;throw S}return{command:n,escapedCommand:s,exitCode:0,stdout:P,stderr:F,all:M,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return VN(o,i.options.input),o.all=KN(o,i.options),Jw(o,f)};rs.exports=Ou;rs.exports.sync=(t,e,r)=>{let i=rS(t,e,r),n=Qw(t,e),s=tS(t,e);ZN(i.options);let o;try{o=Ad.spawnSync(i.file,i.args,i.options)}catch(c){throw ku({error:c,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let a=Do(i.options,o.stdout,o.error),u=Do(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=ku({stdout:a,stderr:u,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!i.options.reject)return c;throw c}return{command:n,escapedCommand:s,exitCode:0,stdout:a,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};rs.exports.command=(t,e)=>{let[r,...i]=eS(t);return Ou(r,i,e)};rs.exports.commandSync=(t,e)=>{let[r,...i]=eS(t);return Ou.sync(r,i,e)};rs.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=Xw.node(r),n=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return Ou(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var ns=T((x7,aS)=>{"use strict";var oS=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"]]);aS.exports=t=>t?Object.keys(t).map(e=>[oS.has(e)?oS.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var ju=T((D7,yS)=>{"use strict";var uS=typeof process=="object"&&process?process:{stdout:null,stderr:null},tM=require("events"),cS=require("stream"),lS=require("string_decoder").StringDecoder,Ir=Symbol("EOF"),Lr=Symbol("maybeEmitEnd"),pi=Symbol("emittedEnd"),Iu=Symbol("emittingEnd"),Ro=Symbol("emittedError"),Lu=Symbol("closed"),hS=Symbol("read"),Bu=Symbol("flush"),fS=Symbol("flushChunk"),yt=Symbol("encoding"),Br=Symbol("decoder"),Nu=Symbol("flowing"),To=Symbol("paused"),ss=Symbol("resume"),Me=Symbol("buffer"),fr=Symbol("pipes"),Ye=Symbol("bufferLength"),kd=Symbol("bufferPush"),Od=Symbol("bufferShift"),nt=Symbol("objectMode"),st=Symbol("destroyed"),Fd=Symbol("emitData"),dS=Symbol("emitEnd"),Pd=Symbol("emitEnd2"),Nr=Symbol("async"),ko=t=>Promise.resolve().then(t),pS=global._MP_NO_ITERATOR_SYMBOLS_!=="1",rM=pS&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),iM=pS&&Symbol.iterator||Symbol("iterator not implemented"),nM=t=>t==="end"||t==="finish"||t==="prefinish",sM=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,oM=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Mu=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[ss](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Id=class extends Mu{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};yS.exports=class mS extends cS{constructor(e){super(),this[Nu]=!1,this[To]=!1,this[fr]=[],this[Me]=[],this[nt]=e&&e.objectMode||!1,this[nt]?this[yt]=null:this[yt]=e&&e.encoding||null,this[yt]==="buffer"&&(this[yt]=null),this[Nr]=e&&!!e.async||!1,this[Br]=this[yt]?new lS(this[yt]):null,this[Ir]=!1,this[pi]=!1,this[Iu]=!1,this[Lu]=!1,this[Ro]=null,this.writable=!0,this.readable=!0,this[Ye]=0,this[st]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Me]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[fr]})}get bufferLength(){return this[Ye]}get encoding(){return this[yt]}set encoding(e){if(this[nt])throw new Error("cannot set encoding in objectMode");if(this[yt]&&e!==this[yt]&&(this[Br]&&this[Br].lastNeed||this[Ye]))throw new Error("cannot change encoding");this[yt]!==e&&(this[Br]=e?new lS(e):null,this[Me].length&&(this[Me]=this[Me].map(r=>this[Br].write(r)))),this[yt]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[nt]}set objectMode(e){this[nt]=this[nt]||!!e}get async(){return this[Nr]}set async(e){this[Nr]=this[Nr]||!!e}write(e,r,i){if(this[Ir])throw new Error("write after end");if(this[st])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[Nr]?ko:s=>s();return!this[nt]&&!Buffer.isBuffer(e)&&(oM(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):sM(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[nt]?(this.flowing&&this[Ye]!==0&&this[Bu](!0),this.flowing?this.emit("data",e):this[kd](e),this[Ye]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[yt]&&!this[Br].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[yt]&&(e=this[Br].write(e)),this.flowing&&this[Ye]!==0&&this[Bu](!0),this.flowing?this.emit("data",e):this[kd](e),this[Ye]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Ye]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[st])return null;if(this[Ye]===0||e===0||e>this[Ye])return this[Lr](),null;this[nt]&&(e=null),this[Me].length>1&&!this[nt]&&(this.encoding?this[Me]=[this[Me].join("")]:this[Me]=[Buffer.concat(this[Me],this[Ye])]);let r=this[hS](e||null,this[Me][0]);return this[Lr](),r}[hS](e,r){return e===r.length||e===null?this[Od]():(this[Me][0]=r.slice(e),r=r.slice(0,e),this[Ye]-=e),this.emit("data",r),!this[Me].length&&!this[Ir]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[Ir]=!0,this.writable=!1,(this.flowing||!this[To])&&this[Lr](),this}[ss](){this[st]||(this[To]=!1,this[Nu]=!0,this.emit("resume"),this[Me].length?this[Bu]():this[Ir]?this[Lr]():this.emit("drain"))}resume(){return this[ss]()}pause(){this[Nu]=!1,this[To]=!0}get destroyed(){return this[st]}get flowing(){return this[Nu]}get paused(){return this[To]}[kd](e){this[nt]?this[Ye]+=1:this[Ye]+=e.length,this[Me].push(e)}[Od](){return this[Me].length&&(this[nt]?this[Ye]-=1:this[Ye]-=this[Me][0].length),this[Me].shift()}[Bu](e){do;while(this[fS](this[Od]()));!e&&!this[Me].length&&!this[Ir]&&this.emit("drain")}[fS](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[st])return;let i=this[pi];return r=r||{},e===uS.stdout||e===uS.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[fr].push(r.proxyErrors?new Id(this,e,r):new Mu(this,e,r)),this[Nr]?ko(()=>this[ss]()):this[ss]()),e}unpipe(e){let r=this[fr].find(i=>i.dest===e);r&&(this[fr].splice(this[fr].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this[fr].length&&!this.flowing?this[ss]():e==="readable"&&this[Ye]!==0?super.emit("readable"):nM(e)&&this[pi]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Ro]&&(this[Nr]?ko(()=>r.call(this,this[Ro])):r.call(this,this[Ro])),i}get emittedEnd(){return this[pi]}[Lr](){!this[Iu]&&!this[pi]&&!this[st]&&this[Me].length===0&&this[Ir]&&(this[Iu]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Lu]&&this.emit("close"),this[Iu]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==st&&this[st])return;if(e==="data")return r?this[Nr]?ko(()=>this[Fd](r)):this[Fd](r):!1;if(e==="end")return this[dS]();if(e==="close"){if(this[Lu]=!0,!this[pi]&&!this[st])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Ro]=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 n=super.emit(e,r,...i);return this[Lr](),n}[Fd](e){for(let i of this[fr])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Lr](),r}[dS](){this[pi]||(this[pi]=!0,this.readable=!1,this[Nr]?ko(()=>this[Pd]()):this[Pd]())}[Pd](){if(this[Br]){let r=this[Br].end();if(r){for(let i of this[fr])i.dest.write(r);super.emit("data",r)}}for(let r of this[fr])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[nt]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[nt]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[nt]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[nt]?Promise.reject(new Error("cannot concat in objectMode")):this[yt]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(st,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[rM](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Ir])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[Ir]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{n=l,i=c,this.once(st,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[iM](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[st]?(e?this.emit("error",e):this.emit(st),this):(this[st]=!0,this[Me].length=0,this[Ye]=0,typeof this.close=="function"&&!this[Lu]&&this.close(),e?this.emit("error",e):this.emit(st),this)}static isStream(e){return!!e&&(e instanceof mS||e instanceof cS||e instanceof tM&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var _S=T((A7,gS)=>{var aM=require("zlib").constants||{ZLIB_VERNUM:4736};gS.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},aM))});var qd=T((C7,CS)=>{"use strict";var bS=typeof process=="object"&&process?process:{stdout:null,stderr:null},uM=require("events"),ES=require("stream"),vS=require("string_decoder").StringDecoder,Mr=Symbol("EOF"),jr=Symbol("maybeEmitEnd"),mi=Symbol("emittedEnd"),qu=Symbol("emittingEnd"),Oo=Symbol("emittedError"),Uu=Symbol("closed"),wS=Symbol("read"),Hu=Symbol("flush"),SS=Symbol("flushChunk"),gt=Symbol("encoding"),qr=Symbol("decoder"),$u=Symbol("flowing"),Fo=Symbol("paused"),os=Symbol("resume"),Ke=Symbol("bufferLength"),Ld=Symbol("bufferPush"),Bd=Symbol("bufferShift"),ot=Symbol("objectMode"),at=Symbol("destroyed"),Nd=Symbol("emitData"),xS=Symbol("emitEnd"),Md=Symbol("emitEnd2"),Ur=Symbol("async"),Po=t=>Promise.resolve().then(t),DS=global._MP_NO_ITERATOR_SYMBOLS_!=="1",cM=DS&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),lM=DS&&Symbol.iterator||Symbol("iterator not implemented"),hM=t=>t==="end"||t==="finish"||t==="prefinish",fM=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,dM=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),zu=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[os](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},jd=class extends zu{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};CS.exports=class AS extends ES{constructor(e){super(),this[$u]=!1,this[Fo]=!1,this.pipes=[],this.buffer=[],this[ot]=e&&e.objectMode||!1,this[ot]?this[gt]=null:this[gt]=e&&e.encoding||null,this[gt]==="buffer"&&(this[gt]=null),this[Ur]=e&&!!e.async||!1,this[qr]=this[gt]?new vS(this[gt]):null,this[Mr]=!1,this[mi]=!1,this[qu]=!1,this[Uu]=!1,this[Oo]=null,this.writable=!0,this.readable=!0,this[Ke]=0,this[at]=!1}get bufferLength(){return this[Ke]}get encoding(){return this[gt]}set encoding(e){if(this[ot])throw new Error("cannot set encoding in objectMode");if(this[gt]&&e!==this[gt]&&(this[qr]&&this[qr].lastNeed||this[Ke]))throw new Error("cannot change encoding");this[gt]!==e&&(this[qr]=e?new vS(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[qr].write(r)))),this[gt]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ot]}set objectMode(e){this[ot]=this[ot]||!!e}get async(){return this[Ur]}set async(e){this[Ur]=this[Ur]||!!e}write(e,r,i){if(this[Mr])throw new Error("write after end");if(this[at])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[Ur]?Po:s=>s();return!this[ot]&&!Buffer.isBuffer(e)&&(dM(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):fM(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ot]?(this.flowing&&this[Ke]!==0&&this[Hu](!0),this.flowing?this.emit("data",e):this[Ld](e),this[Ke]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[gt]&&!this[qr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[gt]&&(e=this[qr].write(e)),this.flowing&&this[Ke]!==0&&this[Hu](!0),this.flowing?this.emit("data",e):this[Ld](e),this[Ke]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Ke]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[at])return null;if(this[Ke]===0||e===0||e>this[Ke])return this[jr](),null;this[ot]&&(e=null),this.buffer.length>1&&!this[ot]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Ke])]);let r=this[wS](e||null,this.buffer[0]);return this[jr](),r}[wS](e,r){return e===r.length||e===null?this[Bd]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Ke]-=e),this.emit("data",r),!this.buffer.length&&!this[Mr]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[Mr]=!0,this.writable=!1,(this.flowing||!this[Fo])&&this[jr](),this}[os](){this[at]||(this[Fo]=!1,this[$u]=!0,this.emit("resume"),this.buffer.length?this[Hu]():this[Mr]?this[jr]():this.emit("drain"))}resume(){return this[os]()}pause(){this[$u]=!1,this[Fo]=!0}get destroyed(){return this[at]}get flowing(){return this[$u]}get paused(){return this[Fo]}[Ld](e){this[ot]?this[Ke]+=1:this[Ke]+=e.length,this.buffer.push(e)}[Bd](){return this.buffer.length&&(this[ot]?this[Ke]-=1:this[Ke]-=this.buffer[0].length),this.buffer.shift()}[Hu](e){do;while(this[SS](this[Bd]()));!e&&!this.buffer.length&&!this[Mr]&&this.emit("drain")}[SS](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[at])return;let i=this[mi];return r=r||{},e===bS.stdout||e===bS.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new jd(this,e,r):new zu(this,e,r)),this[Ur]?Po(()=>this[os]()):this[os]()),e}unpipe(e){let r=this.pipes.find(i=>i.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 i=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[os]():e==="readable"&&this[Ke]!==0?super.emit("readable"):hM(e)&&this[mi]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Oo]&&(this[Ur]?Po(()=>r.call(this,this[Oo])):r.call(this,this[Oo])),i}get emittedEnd(){return this[mi]}[jr](){!this[qu]&&!this[mi]&&!this[at]&&this.buffer.length===0&&this[Mr]&&(this[qu]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Uu]&&this.emit("close"),this[qu]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==at&&this[at])return;if(e==="data")return r?this[Ur]?Po(()=>this[Nd](r)):this[Nd](r):!1;if(e==="end")return this[xS]();if(e==="close"){if(this[Uu]=!0,!this[mi]&&!this[at])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Oo]=r;let s=super.emit("error",r);return this[jr](),s}else if(e==="resume"){let s=super.emit("resume");return this[jr](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[jr](),n}[Nd](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[jr](),r}[xS](){this[mi]||(this[mi]=!0,this.readable=!1,this[Ur]?Po(()=>this[Md]()):this[Md]())}[Md](){if(this[qr]){let r=this[qr].end();if(r){for(let i of this.pipes)i.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[ot]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[ot]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[ot]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ot]?Promise.reject(new Error("cannot concat in objectMode")):this[gt]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(at,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[cM](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Mr])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[Mr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{n=l,i=c,this.once(at,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[lM](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[at]?(e?this.emit("error",e):this.emit(at),this):(this[at]=!0,this.buffer.length=0,this[Ke]=0,typeof this.close=="function"&&!this[Uu]&&this.close(),e?this.emit("error",e):this.emit(at),this)}static isStream(e){return!!e&&(e instanceof AS||e instanceof ES||e instanceof uM&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var rp=T(xt=>{"use strict";var Gd=require("assert"),yi=require("buffer").Buffer,kS=require("zlib"),Ji=xt.constants=_S(),pM=qd(),RS=yi.concat,Xi=Symbol("_superWrite"),us=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"}},mM=Symbol("opts"),Io=Symbol("flushFlag"),TS=Symbol("finishFlushFlag"),tp=Symbol("fullFlushFlag"),Oe=Symbol("handle"),Gu=Symbol("onError"),as=Symbol("sawError"),Ud=Symbol("level"),Hd=Symbol("strategy"),$d=Symbol("ended"),R7=Symbol("_defaultFullFlush"),Wu=class extends pM{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[as]=!1,this[$d]=!1,this[mM]=e,this[Io]=e.flush,this[TS]=e.finishFlush;try{this[Oe]=new kS[r](e)}catch(i){throw new us(i)}this[Gu]=i=>{this[as]||(this[as]=!0,this.close(),this.emit("error",i))},this[Oe].on("error",i=>this[Gu](new us(i))),this.once("end",()=>this.close)}close(){this[Oe]&&(this[Oe].close(),this[Oe]=null,this.emit("close"))}reset(){if(!this[as])return Gd(this[Oe],"zlib binding closed"),this[Oe].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[tp]),this.write(Object.assign(yi.alloc(0),{[Io]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[TS]),this[$d]=!0,super.end(null,null,i)}get ended(){return this[$d]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=yi.from(e,r)),this[as])return;Gd(this[Oe],"zlib binding closed");let n=this[Oe]._handle,s=n.close;n.close=()=>{};let o=this[Oe].close;this[Oe].close=()=>{},yi.concat=c=>c;let a;try{let c=typeof e[Io]=="number"?e[Io]:this[Io];a=this[Oe]._processChunk(e,c),yi.concat=RS}catch(c){yi.concat=RS,this[Gu](new us(c))}finally{this[Oe]&&(this[Oe]._handle=n,n.close=s,this[Oe].close=o,this[Oe].removeAllListeners("error"))}this[Oe]&&this[Oe].on("error",c=>this[Gu](new us(c)));let u;if(a)if(Array.isArray(a)&&a.length>0){u=this[Xi](yi.from(a[0]));for(let c=1;c<a.length;c++)u=this[Xi](a[c])}else u=this[Xi](yi.from(a));return i&&i(),u}[Xi](e){return super.write(e)}},Hr=class extends Wu{constructor(e,r){e=e||{},e.flush=e.flush||Ji.Z_NO_FLUSH,e.finishFlush=e.finishFlush||Ji.Z_FINISH,super(e,r),this[tp]=Ji.Z_FULL_FLUSH,this[Ud]=e.level,this[Hd]=e.strategy}params(e,r){if(!this[as]){if(!this[Oe])throw new Error("cannot switch params when binding is closed");if(!this[Oe].params)throw new Error("not supported in this implementation");if(this[Ud]!==e||this[Hd]!==r){this.flush(Ji.Z_SYNC_FLUSH),Gd(this[Oe],"zlib binding closed");let i=this[Oe].flush;this[Oe].flush=(n,s)=>{this.flush(n),s()};try{this[Oe].params(e,r)}finally{this[Oe].flush=i}this[Oe]&&(this[Ud]=e,this[Hd]=r)}}}},Wd=class extends Hr{constructor(e){super(e,"Deflate")}},Vd=class extends Hr{constructor(e){super(e,"Inflate")}},zd=Symbol("_portable"),Yd=class extends Hr{constructor(e){super(e,"Gzip"),this[zd]=e&&!!e.portable}[Xi](e){return this[zd]?(this[zd]=!1,e[9]=255,super[Xi](e)):super[Xi](e)}},Kd=class extends Hr{constructor(e){super(e,"Gunzip")}},Zd=class extends Hr{constructor(e){super(e,"DeflateRaw")}},Jd=class extends Hr{constructor(e){super(e,"InflateRaw")}},Xd=class extends Hr{constructor(e){super(e,"Unzip")}},Vu=class extends Wu{constructor(e,r){e=e||{},e.flush=e.flush||Ji.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||Ji.BROTLI_OPERATION_FINISH,super(e,r),this[tp]=Ji.BROTLI_OPERATION_FLUSH}},Qd=class extends Vu{constructor(e){super(e,"BrotliCompress")}},ep=class extends Vu{constructor(e){super(e,"BrotliDecompress")}};xt.Deflate=Wd;xt.Inflate=Vd;xt.Gzip=Yd;xt.Gunzip=Kd;xt.DeflateRaw=Zd;xt.InflateRaw=Jd;xt.Unzip=Xd;typeof kS.BrotliCompress=="function"?(xt.BrotliCompress=Qd,xt.BrotliDecompress=ep):xt.BrotliCompress=xt.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var cs=T((O7,OS)=>{var yM=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;OS.exports=yM!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var Yu=T((P7,FS)=>{"use strict";var gM=ju(),ip=cs(),np=Symbol("slurp");FS.exports=class extends gM{constructor(e,r,i){switch(super(),this.pause(),this.extended=r,this.globalExtended=i,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=ip(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=ip(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[np](r),i&&this[np](i,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let i=this.remain,n=this.blockRemain;return this.remain=Math.max(0,i-r),this.blockRemain=Math.max(0,n-r),this.ignore?!0:i>=r?super.write(e):super.write(e.slice(0,i))}[np](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?ip(e[i]):e[i])}}});var sp=T(Ku=>{"use strict";Ku.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"]]);Ku.code=new Map(Array.from(Ku.name).map(t=>[t[1],t[0]]))});var BS=T((L7,LS)=>{"use strict";var _M=(t,e)=>{if(Number.isSafeInteger(t))t<0?EM(t,e):bM(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},bM=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},EM=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var i=e.length;i>1;i--){var n=t&255;t=Math.floor(t/256),r?e[i-1]=PS(n):n===0?e[i-1]=0:(r=!0,e[i-1]=IS(n))}},vM=t=>{let e=t[0],r=e===128?SM(t.slice(1,t.length)):e===255?wM(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},wM=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=PS(s):s===0?o=s:(i=!0,o=IS(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},SM=t=>{for(var e=t.length,r=0,i=e-1;i>-1;i--){var n=t[i];n!==0&&(r+=n*Math.pow(256,e-i-1))}return r},PS=t=>(255^t)&255,IS=t=>(255^t)+1&255;LS.exports={encode:_M,parse:vM}});var hs=T((B7,MS)=>{"use strict";var op=sp(),ls=require("path").posix,NS=BS(),ap=Symbol("slurp"),Dt=Symbol("type"),lp=class{constructor(e,r,i,n){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[Dt]="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,i,n):e&&this.set(e)}decode(e,r,i,n){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=Qi(e,r,100),this.mode=gi(e,r+100,8),this.uid=gi(e,r+108,8),this.gid=gi(e,r+116,8),this.size=gi(e,r+124,12),this.mtime=up(e,r+136,12),this.cksum=gi(e,r+148,12),this[ap](i),this[ap](n,!0),this[Dt]=Qi(e,r+156,1),this[Dt]===""&&(this[Dt]="0"),this[Dt]==="0"&&this.path.slice(-1)==="/"&&(this[Dt]="5"),this[Dt]==="5"&&(this.size=0),this.linkpath=Qi(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=Qi(e,r+265,32),this.gname=Qi(e,r+297,32),this.devmaj=gi(e,r+329,8),this.devmin=gi(e,r+337,8),e[r+475]!==0){let o=Qi(e,r+345,155);this.path=o+"/"+this.path}else{let o=Qi(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=up(e,r+476,12),this.ctime=up(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)}[ap](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=e[i])}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 i=this.ctime||this.atime?130:155,n=xM(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=en(e,r,100,s)||this.needPax,this.needPax=_i(e,r+100,8,this.mode)||this.needPax,this.needPax=_i(e,r+108,8,this.uid)||this.needPax,this.needPax=_i(e,r+116,8,this.gid)||this.needPax,this.needPax=_i(e,r+124,12,this.size)||this.needPax,this.needPax=cp(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Dt].charCodeAt(0),this.needPax=en(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=en(e,r+265,32,this.uname)||this.needPax,this.needPax=en(e,r+297,32,this.gname)||this.needPax,this.needPax=_i(e,r+329,8,this.devmaj)||this.needPax,this.needPax=_i(e,r+337,8,this.devmin)||this.needPax,this.needPax=en(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=en(e,r+345,155,o)||this.needPax:(this.needPax=en(e,r+345,130,o)||this.needPax,this.needPax=cp(e,r+476,12,this.atime)||this.needPax,this.needPax=cp(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,_i(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 op.name.get(this[Dt])||this[Dt]}get typeKey(){return this[Dt]}set type(e){op.code.has(e)?this[Dt]=op.code.get(e):this[Dt]=e}},xM=(t,e)=>{let i=t,n="",s,o=ls.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=ls.dirname(i),i=ls.basename(i);do Buffer.byteLength(i)<=100&&Buffer.byteLength(n)<=e?s=[i,n,!1]:Buffer.byteLength(i)>100&&Buffer.byteLength(n)<=e?s=[i.slice(0,100-1),n,!0]:(i=ls.join(ls.basename(n),i),n=ls.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},Qi=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),up=(t,e,r)=>DM(gi(t,e,r)),DM=t=>t===null?null:new Date(t*1e3),gi=(t,e,r)=>t[e]&128?NS.parse(t.slice(e,e+r)):CM(t,e,r),AM=t=>isNaN(t)?null:t,CM=(t,e,r)=>AM(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),RM={12:8589934591,8:2097151},_i=(t,e,r,i)=>i===null?!1:i>RM[r]||i<0?(NS.encode(i,t.slice(e,e+r)),!0):(TM(t,e,r,i),!1),TM=(t,e,r,i)=>t.write(kM(i,r),e,r,"ascii"),kM=(t,e)=>OM(Math.floor(t).toString(8),e),OM=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",cp=(t,e,r,i)=>i===null?!1:_i(t,e,r,i.getTime()/1e3),FM=new Array(156).join("\0"),en=(t,e,r,i)=>i===null?!1:(t.write(i+FM,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);MS.exports=lp});var Zu=T((N7,jS)=>{"use strict";var PM=hs(),IM=require("path"),Lo=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),i=512*Math.ceil(1+r/512),n=Buffer.allocUnsafe(i);for(let s=0;s<512;s++)n[s]=0;new PM({path:("PaxHeader/"+IM.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(n),n.write(e,512,r,"utf8");for(let s=r+512;s<n.length;s++)n[s]=0;return n}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],i=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
|
13
|
-
`,n=Buffer.byteLength(i),s=Math.floor(Math.log(n)/Math.log(10))+1;return n+s>=Math.pow(10,s)&&(s+=1),s+n+i}};
|
14
|
-
`).reduce(NM,Object.create(null)),NM=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let i=e.split("="),n=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!n)return t;let s=i.join("=");return t[n]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};jS.exports=Lo});var fs=T((M7,qS)=>{qS.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 Ju=T((j7,US)=>{"use strict";US.exports=t=>class extends t{warn(e,r,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=r instanceof Error&&r.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(r instanceof Error&&(i=Object.assign(r,i),r=r.message),this.emit("warn",i.tarCode,r,i)):r instanceof Error?this.emit("error",Object.assign(r,i)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),i))}}});var fp=T((U7,HS)=>{"use strict";var Xu=["|","<",">","?",":"],hp=Xu.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),MM=new Map(Xu.map((t,e)=>[t,hp[e]])),jM=new Map(hp.map((t,e)=>[t,Xu[e]]));HS.exports={encode:t=>Xu.reduce((e,r)=>e.split(r).join(MM.get(r)),t),decode:t=>hp.reduce((e,r)=>e.split(r).join(jM.get(r)),t)}});var dp=T((H7,zS)=>{var{isAbsolute:qM,parse:$S}=require("path").win32;zS.exports=t=>{let e="",r=$S(t);for(;qM(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=$S(t)}return[e,t]}});var WS=T(($7,GS)=>{"use strict";GS.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 Sp=T((W7,ox)=>{"use strict";var QS=ju(),ex=Zu(),tx=hs(),pr=require("fs"),VS=require("path"),dr=cs(),UM=fs(),rx=(t,e)=>e?(t=dr(t).replace(/^\.(\/|$)/,""),UM(e)+"/"+t):dr(t),HM=16*1024*1024,YS=Symbol("process"),KS=Symbol("file"),ZS=Symbol("directory"),mp=Symbol("symlink"),JS=Symbol("hardlink"),Bo=Symbol("header"),Qu=Symbol("read"),yp=Symbol("lstat"),ec=Symbol("onlstat"),gp=Symbol("onread"),_p=Symbol("onreadlink"),bp=Symbol("openfile"),Ep=Symbol("onopenfile"),bi=Symbol("close"),tc=Symbol("mode"),vp=Symbol("awaitDrain"),pp=Symbol("ondrain"),mr=Symbol("prefix"),XS=Symbol("hadError"),ix=Ju(),$M=fp(),nx=dp(),sx=WS(),rc=ix(class extends QS{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=dr(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||HM,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=dr(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?dr(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 i=!1;if(!this.preservePaths){let[n,s]=nx(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=$M.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=dr(r.absolute||VS.resolve(this.cwd,e)),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[ec](this.statCache.get(this.absolute)):this[yp]()}emit(e,...r){return e==="error"&&(this[XS]=!0),super.emit(e,...r)}[yp](){pr.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[ec](r)})}[ec](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=GM(e),this.emit("stat",e),this[YS]()}[YS](){switch(this.type){case"File":return this[KS]();case"Directory":return this[ZS]();case"SymbolicLink":return this[mp]();default:return this.end()}}[tc](e){return sx(e,this.type==="Directory",this.portable)}[mr](e){return rx(e,this.prefix)}[Bo](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new tx({path:this[mr](this.path),linkpath:this.type==="Link"?this[mr](this.linkpath):this.linkpath,mode:this[tc](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 ex({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[mr](this.path),linkpath:this.type==="Link"?this[mr](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)}[ZS](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Bo](),this.end()}[mp](){pr.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[_p](r)})}[_p](e){this.linkpath=dr(e),this[Bo](),this.end()}[JS](e){this.type="Link",this.linkpath=dr(VS.relative(this.cwd,e)),this.stat.size=0,this[Bo](),this.end()}[KS](){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[JS](r)}this.linkCache.set(e,this.absolute)}if(this[Bo](),this.stat.size===0)return this.end();this[bp]()}[bp](){pr.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Ep](r)})}[Ep](e){if(this.fd=e,this[XS])return this[bi]();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[Qu]()}[Qu](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;pr.read(e,r,i,n,s,(o,a)=>{if(o)return this[bi](()=>this.emit("error",o));this[gp](a)})}[bi](e){pr.close(this.fd,e)}[gp](e){if(e<=0&&this.remain>0){let n=new Error("encountered unexpected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[bi](()=>this.emit("error",n))}if(e>this.remain){let n=new Error("did not encounter expected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[bi](()=>this.emit("error",n))}if(e===this.remain)for(let n=e;n<this.length&&e<this.blockRemain;n++)this.buf[n+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[pp]():this[vp](()=>this[pp]())}[vp](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)}[pp](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[bi](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[Qu]()}}),wp=class extends rc{[yp](){this[ec](pr.lstatSync(this.absolute))}[mp](){this[_p](pr.readlinkSync(this.absolute))}[bp](){this[Ep](pr.openSync(this.absolute,"r"))}[Qu](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,a=pr.readSync(r,i,n,s,o);this[gp](a),e=!1}finally{if(e)try{this[bi](()=>{})}catch{}}}[vp](e){e()}[bi](e){pr.closeSync(this.fd),e()}},zM=ix(class extends QS{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=dr(e.path),this.mode=this[tc](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=dr(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=nx(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new tx({path:this[mr](this.path),linkpath:this.type==="Link"?this[mr](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}),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.header.encode()&&!this.noPax&&super.write(new ex({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[mr](this.path),linkpath:this.type==="Link"?this[mr](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)}[mr](e){return rx(e,this.prefix)}[tc](e){return sx(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()}});rc.Sync=wp;rc.Tar=zM;var GM=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";ox.exports=rc});var ux=T((V7,ax)=>{"use strict";ax.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var xp=T((Y7,cx)=>{"use strict";cx.exports=De;De.Node=tn;De.create=De;function De(t){var e=this;if(e instanceof De||(e=new De),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(n){e.push(n)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}De.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};De.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++}};De.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++}};De.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)VM(this,arguments[t]);return this.length};De.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)YM(this,arguments[t]);return this.length};De.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}};De.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}};De.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;r!==null;i++)t.call(e,r.value,i,this),r=r.next};De.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;r!==null;i--)t.call(e,r.value,i,this),r=r.prev};De.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};De.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};De.prototype.map=function(t,e){e=e||this;for(var r=new De,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};De.prototype.mapReverse=function(t,e){e=e||this;for(var r=new De,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};De.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;i!==null;n++)r=t(r,i.value,n),i=i.next;return r};De.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;i!==null;n--)r=t(r,i.value,n),i=i.prev;return r};De.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};De.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};De.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 De;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(;n!==null&&i<e;i++,n=n.next)r.push(n.value);return r};De.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 De;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,n=this.tail;n!==null&&i>e;i--)n=n.prev;for(;n!==null&&i>t;i--,n=n.prev)r.push(n.value);return r};De.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(var s=[],i=0;n&&i<e;i++)s.push(n.value),n=this.removeNode(n);n===null&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(var i=0;i<r.length;i++)n=WM(this,n,r[i]);return s};De.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};function WM(t,e,r){var i=e===t.head?new tn(r,null,e,t):new tn(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function VM(t,e){t.tail=new tn(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function YM(t,e){t.head=new tn(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function tn(t,e,r,i){if(!(this instanceof tn))return new tn(t,e,r,i);this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{ux()(De)}catch{}});var hc=T((Z7,yx)=>{"use strict";var cc=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}},KM=ju(),ZM=rp(),JM=Yu(),Pp=Sp(),XM=Pp.Sync,QM=Pp.Tar,e3=xp(),lx=Buffer.alloc(1024),sc=Symbol("onStat"),ic=Symbol("ended"),yr=Symbol("queue"),ds=Symbol("current"),rn=Symbol("process"),nc=Symbol("processing"),hx=Symbol("processJob"),gr=Symbol("jobs"),Dp=Symbol("jobDone"),oc=Symbol("addFSEntry"),fx=Symbol("addTarEntry"),Tp=Symbol("stat"),kp=Symbol("readdir"),ac=Symbol("onreaddir"),uc=Symbol("pipe"),dx=Symbol("entry"),Ap=Symbol("entryOpt"),Op=Symbol("writeEntryClass"),mx=Symbol("write"),Cp=Symbol("ondrain"),lc=require("fs"),px=require("path"),t3=Ju(),Rp=cs(),Ip=t3(class extends KM{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=Rp(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Op]=Pp,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 ZM.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Cp]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Cp]),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[yr]=new e3,this[gr]=0,this.jobs=+e.jobs||4,this[nc]=!1,this[ic]=!1}[mx](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[ic]=!0,this[rn](),this}write(e){if(this[ic])throw new Error("write after end");return e instanceof JM?this[fx](e):this[oc](e),this.flowing}[fx](e){let r=Rp(px.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new cc(e.path,r,!1);i.entry=new QM(e,this[Ap](i)),i.entry.on("end",n=>this[Dp](i)),this[gr]+=1,this[yr].push(i)}this[rn]()}[oc](e){let r=Rp(px.resolve(this.cwd,e));this[yr].push(new cc(e,r)),this[rn]()}[Tp](e){e.pending=!0,this[gr]+=1;let r=this.follow?"stat":"lstat";lc[r](e.absolute,(i,n)=>{e.pending=!1,this[gr]-=1,i?this.emit("error",i):this[sc](e,n)})}[sc](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[rn]()}[kp](e){e.pending=!0,this[gr]+=1,lc.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[gr]-=1,r)return this.emit("error",r);this[ac](e,i)})}[ac](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[rn]()}[rn](){if(!this[nc]){this[nc]=!0;for(let e=this[yr].head;e!==null&&this[gr]<this.jobs;e=e.next)if(this[hx](e.value),e.value.ignore){let r=e.next;this[yr].removeNode(e),e.next=r}this[nc]=!1,this[ic]&&!this[yr].length&&this[gr]===0&&(this.zip?this.zip.end(lx):(super.write(lx),super.end()))}}get[ds](){return this[yr]&&this[yr].head&&this[yr].head.value}[Dp](e){this[yr].shift(),this[gr]-=1,this[rn]()}[hx](e){if(!e.pending){if(e.entry){e===this[ds]&&!e.piped&&this[uc](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[sc](e,this.statCache.get(e.absolute)):this[Tp](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[ac](e,this.readdirCache.get(e.absolute)):this[kp](e),!e.readdir))){if(e.entry=this[dx](e),!e.entry){e.ignore=!0;return}e===this[ds]&&!e.piped&&this[uc](e)}}}[Ap](e){return{onwarn:(r,i,n)=>this.warn(r,i,n),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}}[dx](e){this[gr]+=1;try{return new this[Op](e.path,this[Ap](e)).on("end",()=>this[Dp](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Cp](){this[ds]&&this[ds].entry&&this[ds].entry.resume()}[uc](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[oc](o+n)});let r=e.entry,i=this.zip;i?r.on("data",n=>{i.write(n)||r.pause()}):r.on("data",n=>{super.write(n)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),Fp=class extends Ip{constructor(e){super(e),this[Op]=XM}pause(){}resume(){}[Tp](e){let r=this.follow?"statSync":"lstatSync";this[sc](e,lc[r](e.absolute))}[kp](e,r){this[ac](e,lc.readdirSync(e.absolute))}[uc](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[oc](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[mx](n)})}};Ip.Sync=Fp;yx.exports=Ip});var vs=T(Mo=>{"use strict";var r3=qd(),i3=require("events").EventEmitter,_t=require("fs"),Np=_t.writev;if(!Np){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Np=(r,i,n,s)=>{let o=(u,c)=>s(u,c,i),a=new e;a.oncomplete=o,t.writeBuffers(r,i,n,a)}}var bs=Symbol("_autoClose"),Xt=Symbol("_close"),No=Symbol("_ended"),Te=Symbol("_fd"),gx=Symbol("_finished"),vi=Symbol("_flags"),Lp=Symbol("_flush"),Mp=Symbol("_handleChunk"),jp=Symbol("_makeBuf"),yc=Symbol("_mode"),fc=Symbol("_needDrain"),gs=Symbol("_onerror"),Es=Symbol("_onopen"),Bp=Symbol("_onread"),ms=Symbol("_onwrite"),wi=Symbol("_open"),$r=Symbol("_path"),nn=Symbol("_pos"),_r=Symbol("_queue"),ys=Symbol("_read"),_x=Symbol("_readSize"),Ei=Symbol("_reading"),dc=Symbol("_remain"),bx=Symbol("_size"),pc=Symbol("_write"),ps=Symbol("_writing"),mc=Symbol("_defaultFlag"),_s=Symbol("_errored"),gc=class extends r3{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[_s]=!1,this[Te]=typeof r.fd=="number"?r.fd:null,this[$r]=e,this[_x]=r.readSize||16*1024*1024,this[Ei]=!1,this[bx]=typeof r.size=="number"?r.size:1/0,this[dc]=this[bx],this[bs]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[Te]=="number"?this[ys]():this[wi]()}get fd(){return this[Te]}get path(){return this[$r]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[wi](){_t.open(this[$r],"r",(e,r)=>this[Es](e,r))}[Es](e,r){e?this[gs](e):(this[Te]=r,this.emit("open",r),this[ys]())}[jp](){return Buffer.allocUnsafe(Math.min(this[_x],this[dc]))}[ys](){if(!this[Ei]){this[Ei]=!0;let e=this[jp]();if(e.length===0)return process.nextTick(()=>this[Bp](null,0,e));_t.read(this[Te],e,0,e.length,null,(r,i,n)=>this[Bp](r,i,n))}}[Bp](e,r,i){this[Ei]=!1,e?this[gs](e):this[Mp](r,i)&&this[ys]()}[Xt](){if(this[bs]&&typeof this[Te]=="number"){let e=this[Te];this[Te]=null,_t.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[gs](e){this[Ei]=!0,this[Xt](),this.emit("error",e)}[Mp](e,r){let i=!1;return this[dc]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[dc]<=0)&&(i=!1,this[Xt](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[Te]=="number"&&this[ys]();break;case"error":return this[_s]?void 0:(this[_s]=!0,super.emit(e,r));default:return super.emit(e,r)}}},qp=class extends gc{[wi](){let e=!0;try{this[Es](null,_t.openSync(this[$r],"r")),e=!1}finally{e&&this[Xt]()}}[ys](){let e=!0;try{if(!this[Ei]){this[Ei]=!0;do{let r=this[jp](),i=r.length===0?0:_t.readSync(this[Te],r,0,r.length,null);if(!this[Mp](i,r))break}while(!0);this[Ei]=!1}e=!1}finally{e&&this[Xt]()}}[Xt](){if(this[bs]&&typeof this[Te]=="number"){let e=this[Te];this[Te]=null,_t.closeSync(e),this.emit("close")}}},_c=class extends i3{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[_s]=!1,this[ps]=!1,this[No]=!1,this[fc]=!1,this[_r]=[],this[$r]=e,this[Te]=typeof r.fd=="number"?r.fd:null,this[yc]=r.mode===void 0?438:r.mode,this[nn]=typeof r.start=="number"?r.start:null,this[bs]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[nn]!==null?"r+":"w";this[mc]=r.flags===void 0,this[vi]=this[mc]?i:r.flags,this[Te]===null&&this[wi]()}emit(e,r){if(e==="error"){if(this[_s])return;this[_s]=!0}return super.emit(e,r)}get fd(){return this[Te]}get path(){return this[$r]}[gs](e){this[Xt](),this[ps]=!0,this.emit("error",e)}[wi](){_t.open(this[$r],this[vi],this[yc],(e,r)=>this[Es](e,r))}[Es](e,r){this[mc]&&this[vi]==="r+"&&e&&e.code==="ENOENT"?(this[vi]="w",this[wi]()):e?this[gs](e):(this[Te]=r,this.emit("open",r),this[Lp]())}end(e,r){return e&&this.write(e,r),this[No]=!0,!this[ps]&&!this[_r].length&&typeof this[Te]=="number"&&this[ms](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[No]?(this.emit("error",new Error("write() after end()")),!1):this[Te]===null||this[ps]||this[_r].length?(this[_r].push(e),this[fc]=!0,!1):(this[ps]=!0,this[pc](e),!0)}[pc](e){_t.write(this[Te],e,0,e.length,this[nn],(r,i)=>this[ms](r,i))}[ms](e,r){e?this[gs](e):(this[nn]!==null&&(this[nn]+=r),this[_r].length?this[Lp]():(this[ps]=!1,this[No]&&!this[gx]?(this[gx]=!0,this[Xt](),this.emit("finish")):this[fc]&&(this[fc]=!1,this.emit("drain"))))}[Lp](){if(this[_r].length===0)this[No]&&this[ms](null,0);else if(this[_r].length===1)this[pc](this[_r].pop());else{let e=this[_r];this[_r]=[],Np(this[Te],e,this[nn],(r,i)=>this[ms](r,i))}}[Xt](){if(this[bs]&&typeof this[Te]=="number"){let e=this[Te];this[Te]=null,_t.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},Up=class extends _c{[wi](){let e;if(this[mc]&&this[vi]==="r+")try{e=_t.openSync(this[$r],this[vi],this[yc])}catch(r){if(r.code==="ENOENT")return this[vi]="w",this[wi]();throw r}else e=_t.openSync(this[$r],this[vi],this[yc]);this[Es](null,e)}[Xt](){if(this[bs]&&typeof this[Te]=="number"){let e=this[Te];this[Te]=null,_t.closeSync(e),this.emit("close")}}[pc](e){let r=!0;try{this[ms](null,_t.writeSync(this[Te],e,0,e.length,this[nn])),r=!1}finally{if(r)try{this[Xt]()}catch{}}}};Mo.ReadStream=gc;Mo.ReadStreamSync=qp;Mo.WriteStream=_c;Mo.WriteStreamSync=Up});var Dc=T((Q7,Cx)=>{"use strict";var n3=Ju(),s3=hs(),o3=require("events"),a3=xp(),u3=1024*1024,c3=Yu(),Ex=Zu(),l3=rp(),{nextTick:h3}=require("process"),Hp=Buffer.from([31,139]),jt=Symbol("state"),sn=Symbol("writeEntry"),zr=Symbol("readEntry"),$p=Symbol("nextEntry"),vx=Symbol("processEntry"),qt=Symbol("extendedHeader"),jo=Symbol("globalExtendedHeader"),Si=Symbol("meta"),wx=Symbol("emitMeta"),Fe=Symbol("buffer"),Gr=Symbol("queue"),on=Symbol("ended"),Sx=Symbol("emittedEnd"),an=Symbol("emit"),bt=Symbol("unzip"),bc=Symbol("consumeChunk"),Ec=Symbol("consumeChunkSub"),zp=Symbol("consumeBody"),xx=Symbol("consumeMeta"),Dx=Symbol("consumeHeader"),vc=Symbol("consuming"),Gp=Symbol("bufferConcat"),Wp=Symbol("maybeEnd"),qo=Symbol("writing"),xi=Symbol("aborted"),wc=Symbol("onDone"),un=Symbol("sawValidEntry"),Sc=Symbol("sawNullBlock"),xc=Symbol("sawEOF"),Ax=Symbol("closeStream"),f3=t=>!0;Cx.exports=n3(class extends o3{constructor(e){e=e||{},super(e),this.file=e.file||"",this[un]=null,this.on(wc,r=>{(this[jt]==="begin"||this[un]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(wc,e.ondone):this.on(wc,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||u3,this.filter=typeof e.filter=="function"?e.filter:f3,this.writable=!0,this.readable=!1,this[Gr]=new a3,this[Fe]=null,this[zr]=null,this[sn]=null,this[jt]="begin",this[Si]="",this[qt]=null,this[jo]=null,this[on]=!1,this[bt]=null,this[xi]=!1,this[Sc]=!1,this[xc]=!1,this.on("end",()=>this[Ax]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[Dx](e,r){this[un]===null&&(this[un]=!1);let i;try{i=new s3(e,r,this[qt],this[jo])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[Sc]?(this[xc]=!0,this[jt]==="begin"&&(this[jt]="header"),this[an]("eof")):(this[Sc]=!0,this[an]("nullBlock"));else if(this[Sc]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let n=i.type;if(/^(Symbolic)?Link$/.test(n)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(n)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let s=this[sn]=new c3(i,this[qt],this[jo]);if(!this[un])if(s.remain){let o=()=>{s.invalid||(this[un]=!0)};s.on("end",o)}else this[un]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[an]("ignoredEntry",s),this[jt]="ignore",s.resume()):s.size>0&&(this[Si]="",s.on("data",o=>this[Si]+=o),this[jt]="meta"):(this[qt]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[an]("ignoredEntry",s),this[jt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[jt]="body":(this[jt]="header",s.end()),this[zr]?this[Gr].push(s):(this[Gr].push(s),this[$p]())))}}}[Ax](){h3(()=>this.emit("close"))}[vx](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[zr]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[$p]()),r=!1)):(this[zr]=null,r=!1),r}[$p](){do;while(this[vx](this[Gr].shift()));if(!this[Gr].length){let e=this[zr];!e||e.flowing||e.size===e.remain?this[qo]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[zp](e,r){let i=this[sn],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[jt]="header",this[sn]=null,i.end()),s.length}[xx](e,r){let i=this[sn],n=this[zp](e,r);return this[sn]||this[wx](i),n}[an](e,r,i){!this[Gr].length&&!this[zr]?this.emit(e,r,i):this[Gr].push([e,r,i])}[wx](e){switch(this[an]("meta",this[Si]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[qt]=Ex.parse(this[Si],this[qt],!1);break;case"GlobalExtendedHeader":this[jo]=Ex.parse(this[Si],this[jo],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[qt]=this[qt]||Object.create(null),this[qt].path=this[Si].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[qt]=this[qt]||Object.create(null),this[qt].linkpath=this[Si].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[xi]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[xi])return;if(this[bt]===null&&e){if(this[Fe]&&(e=Buffer.concat([this[Fe],e]),this[Fe]=null),e.length<Hp.length)return this[Fe]=e,!0;for(let i=0;this[bt]===null&&i<Hp.length;i++)e[i]!==Hp[i]&&(this[bt]=!1);if(this[bt]===null){let i=this[on];this[on]=!1,this[bt]=new l3.Unzip,this[bt].on("data",s=>this[bc](s)),this[bt].on("error",s=>this.abort(s)),this[bt].on("end",s=>{this[on]=!0,this[bc]()}),this[qo]=!0;let n=this[bt][i?"end":"write"](e);return this[qo]=!1,n}}this[qo]=!0,this[bt]?this[bt].write(e):this[bc](e),this[qo]=!1;let r=this[Gr].length?!1:this[zr]?this[zr].flowing:!0;return!r&&!this[Gr].length&&this[zr].once("drain",i=>this.emit("drain")),r}[Gp](e){e&&!this[xi]&&(this[Fe]=this[Fe]?Buffer.concat([this[Fe],e]):e)}[Wp](){if(this[on]&&!this[Sx]&&!this[xi]&&!this[vc]){this[Sx]=!0;let e=this[sn];if(e&&e.blockRemain){let r=this[Fe]?this[Fe].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[Fe]&&e.write(this[Fe]),e.end()}this[an](wc)}}[bc](e){if(this[vc])this[Gp](e);else if(!e&&!this[Fe])this[Wp]();else{if(this[vc]=!0,this[Fe]){this[Gp](e);let r=this[Fe];this[Fe]=null,this[Ec](r)}else this[Ec](e);for(;this[Fe]&&this[Fe].length>=512&&!this[xi]&&!this[xc];){let r=this[Fe];this[Fe]=null,this[Ec](r)}this[vc]=!1}(!this[Fe]||this[on])&&this[Wp]()}[Ec](e){let r=0,i=e.length;for(;r+512<=i&&!this[xi]&&!this[xc];)switch(this[jt]){case"begin":case"header":this[Dx](e,r),r+=512;break;case"ignore":case"body":r+=this[zp](e,r);break;case"meta":r+=this[xx](e,r);break;default:throw new Error("invalid state: "+this[jt])}r<i&&(this[Fe]?this[Fe]=Buffer.concat([e.slice(r),this[Fe]]):this[Fe]=e.slice(r))}end(e){this[xi]||(this[bt]?this[bt].end(e):(this[on]=!0,this.write(e)))}})});var Ac=T((ez,Ox)=>{"use strict";var d3=ns(),Tx=Dc(),ws=require("fs"),p3=vs(),Rx=require("path"),Vp=fs();Ox.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 i=d3(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&y3(i,e),i.noResume||m3(i),i.file&&i.sync?g3(i):i.file?_3(i,r):kx(i)};var m3=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},y3=(t,e)=>{let r=new Map(e.map(s=>[Vp(s),!0])),i=t.filter,n=(s,o)=>{let a=o||Rx.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):n(Rx.dirname(s),a);return r.set(s,u),u};t.filter=i?(s,o)=>i(s,o)&&n(Vp(s)):s=>n(Vp(s))},g3=t=>{let e=kx(t),r=t.file,i=!0,n;try{let s=ws.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(ws.readFileSync(r));else{let a=0,u=Buffer.allocUnsafe(o);for(n=ws.openSync(r,"r");a<s.size;){let c=ws.readSync(n,u,0,o,a);a+=c,e.write(u.slice(0,c))}e.end()}i=!1}finally{if(i&&n)try{ws.closeSync(n)}catch{}}},_3=(t,e)=>{let r=new Tx(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),ws.stat(n,(u,c)=>{if(u)a(u);else{let l=new p3.ReadStream(n,{readSize:i,size:c.size});l.on("error",a),l.pipe(r)}})});return e?s.then(e,e):s},kx=t=>new Tx(t)});var Nx=T((tz,Bx)=>{"use strict";var b3=ns(),Cc=hc(),Fx=vs(),Px=Ac(),Ix=require("path");Bx.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 i=b3(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?E3(i,e):i.file?v3(i,e,r):i.sync?w3(i,e):S3(i,e)};var E3=(t,e)=>{let r=new Cc.Sync(t),i=new Fx.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),Lx(r,e)},v3=(t,e,r)=>{let i=new Cc(t),n=new Fx.WriteStream(t.file,{mode:t.mode||438});i.pipe(n);let s=new Promise((o,a)=>{n.on("error",a),n.on("close",o),i.on("error",a)});return Yp(i,e),r?s.then(r,r):s},Lx=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Px({file:Ix.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Yp=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Px({file:Ix.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Yp(t,e));t.add(r)}t.end()},w3=(t,e)=>{let r=new Cc.Sync(t);return Lx(r,e),r},S3=(t,e)=>{let r=new Cc(t);return Yp(r,e),r}});var Kp=T((rz,zx)=>{"use strict";var x3=ns(),Mx=hc(),At=require("fs"),jx=vs(),qx=Ac(),Ux=require("path"),Hx=hs();zx.exports=(t,e,r)=>{let i=x3(t);if(!i.file)throw new TypeError("file is required");if(i.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),i.sync?D3(i,e):C3(i,e,r)};var D3=(t,e)=>{let r=new Mx.Sync(t),i=!0,n,s;try{try{n=At.openSync(t.file,"r+")}catch(u){if(u.code==="ENOENT")n=At.openSync(t.file,"w+");else throw u}let o=At.fstatSync(n),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let l=0,h=0;l<512;l+=h){if(h=At.readSync(n,a,l,a.length-l,s+l),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let u=new Hx(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)}i=!1,A3(t,r,s,n,e)}finally{if(i)try{At.closeSync(n)}catch{}}},A3=(t,e,r,i,n)=>{let s=new jx.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),R3(e,n)},C3=(t,e,r)=>{e=Array.from(e);let i=new Mx(t),n=(o,a,u)=>{let c=(m,y)=>{m?At.close(o,p=>u(m)):u(null,y)},l=0;if(a===0)return c(null,0);let h=0,f=Buffer.alloc(512),d=(m,y)=>{if(m)return c(m);if(h+=y,h<512&&y)return At.read(o,f,h,f.length-h,l+h,d);if(l===0&&f[0]===31&&f[1]===139)return c(new Error("cannot append to compressed archives"));if(h<512)return c(null,l);let p=new Hx(f);if(!p.cksumValid)return c(null,l);let v=512*Math.ceil(p.size/512);if(l+v+512>a||(l+=v+512,l>=a))return c(null,l);t.mtimeCache&&t.mtimeCache.set(p.path,p.mtime),h=0,At.read(o,f,0,512,l,d)};At.read(o,f,0,512,l,d)},s=new Promise((o,a)=>{i.on("error",a);let u="r+",c=(l,h)=>{if(l&&l.code==="ENOENT"&&u==="r+")return u="w+",At.open(t.file,u,c);if(l)return a(l);At.fstat(h,(f,d)=>{if(f)return At.close(h,()=>a(f));n(h,d.size,(m,y)=>{if(m)return a(m);let p=new jx.WriteStream(t.file,{fd:h,start:y});i.pipe(p),p.on("error",a),p.on("close",o),$x(i,e)})})};At.open(t.file,u,c)});return r?s.then(r,r):s},R3=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?qx({file:Ux.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},$x=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return qx({file:Ux.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>$x(t,e));t.add(r)}t.end()}});var Wx=T((iz,Gx)=>{"use strict";var T3=ns(),k3=Kp();Gx.exports=(t,e,r)=>{let i=T3(t);if(!i.file)throw new TypeError("file is required");if(i.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),O3(i),k3(i,e,r)};var O3=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,i)=>e(r,i)&&!(t.mtimeCache.get(r)>i.mtime):(r,i)=>!(t.mtimeCache.get(r)>i.mtime)}});var Kx=T((nz,Yx)=>{var{promisify:Vx}=require("util"),Di=require("fs"),F3=t=>{if(!t)t={mode:511,fs:Di};else if(typeof t=="object")t={mode:511,fs:Di,...t};else if(typeof t=="number")t={mode:t,fs:Di};else if(typeof t=="string")t={mode:parseInt(t,8),fs:Di};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||Di.mkdir,t.mkdirAsync=Vx(t.mkdir),t.stat=t.stat||t.fs.stat||Di.stat,t.statAsync=Vx(t.stat),t.statSync=t.statSync||t.fs.statSync||Di.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Di.mkdirSync,t};Yx.exports=F3});var Jx=T((sz,Zx)=>{var P3=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:I3,parse:L3}=require("path"),B3=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=I3(t),P3==="win32"){let e=/[*|"<>?:]/,{root:r}=L3(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};Zx.exports=B3});var rD=T((oz,tD)=>{var{dirname:Xx}=require("path"),Qx=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?Qx(t,Xx(e),e):void 0),eD=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?eD(t,Xx(e),e):void 0}};tD.exports={findMade:Qx,findMadeSync:eD}});var Xp=T((az,nD)=>{var{dirname:iD}=require("path"),Zp=(t,e,r)=>{e.recursive=!1;let i=iD(t);return i===t?e.mkdirAsync(t,e).catch(n=>{if(n.code!=="EISDIR")throw n}):e.mkdirAsync(t,e).then(()=>r||t,n=>{if(n.code==="ENOENT")return Zp(i,e).then(s=>Zp(t,e,s));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw n},()=>{throw n})})},Jp=(t,e,r)=>{let i=iD(t);if(e.recursive=!1,i===t)try{return e.mkdirSync(t,e)}catch(n){if(n.code!=="EISDIR")throw n;return}try{return e.mkdirSync(t,e),r||t}catch(n){if(n.code==="ENOENT")return Jp(t,e,Jp(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};nD.exports={mkdirpManual:Zp,mkdirpManualSync:Jp}});var aD=T((uz,oD)=>{var{dirname:sD}=require("path"),{findMade:N3,findMadeSync:M3}=rD(),{mkdirpManual:j3,mkdirpManualSync:q3}=Xp(),U3=(t,e)=>(e.recursive=!0,sD(t)===t?e.mkdirAsync(t,e):N3(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return j3(t,e);throw n}))),H3=(t,e)=>{if(e.recursive=!0,sD(t)===t)return e.mkdirSync(t,e);let i=M3(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return q3(t,e);throw n}};oD.exports={mkdirpNative:U3,mkdirpNativeSync:H3}});var hD=T((cz,lD)=>{var uD=require("fs"),$3=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,Qp=$3.replace(/^v/,"").split("."),cD=+Qp[0]>10||+Qp[0]==10&&+Qp[1]>=12,z3=cD?t=>t.mkdir===uD.mkdir:()=>!1,G3=cD?t=>t.mkdirSync===uD.mkdirSync:()=>!1;lD.exports={useNative:z3,useNativeSync:G3}});var gD=T((lz,yD)=>{var Ss=Kx(),xs=Jx(),{mkdirpNative:fD,mkdirpNativeSync:dD}=aD(),{mkdirpManual:pD,mkdirpManualSync:mD}=Xp(),{useNative:W3,useNativeSync:V3}=hD(),Ds=(t,e)=>(t=xs(t),e=Ss(e),W3(e)?fD(t,e):pD(t,e)),Y3=(t,e)=>(t=xs(t),e=Ss(e),V3(e)?dD(t,e):mD(t,e));Ds.sync=Y3;Ds.native=(t,e)=>fD(xs(t),Ss(e));Ds.manual=(t,e)=>pD(xs(t),Ss(e));Ds.nativeSync=(t,e)=>dD(xs(t),Ss(e));Ds.manualSync=(t,e)=>mD(xs(t),Ss(e));yD.exports=Ds});var xD=T((hz,SD)=>{"use strict";var Ut=require("fs"),cn=require("path"),K3=Ut.lchown?"lchown":"chown",Z3=Ut.lchownSync?"lchownSync":"chownSync",bD=Ut.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),_D=(t,e,r)=>{try{return Ut[Z3](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},J3=(t,e,r)=>{try{return Ut.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},X3=bD?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):Ut.chown(t,e,r,i)}:(t,e,r,i)=>i,em=bD?(t,e,r)=>{try{return _D(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;J3(t,e,r)}}:(t,e,r)=>_D(t,e,r),Q3=process.version,ED=(t,e,r)=>Ut.readdir(t,e,r),ej=(t,e)=>Ut.readdirSync(t,e);/^v4\./.test(Q3)&&(ED=(t,e,r)=>Ut.readdir(t,r));var Rc=(t,e,r,i)=>{Ut[K3](t,e,r,X3(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},vD=(t,e,r,i,n)=>{if(typeof e=="string")return Ut.lstat(cn.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,vD(t,o,r,i,n)});if(e.isDirectory())tm(cn.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=cn.resolve(t,e.name);Rc(o,r,i,n)});else{let s=cn.resolve(t,e.name);Rc(s,r,i,n)}},tm=(t,e,r,i)=>{ED(t,{withFileTypes:!0},(n,s)=>{if(n){if(n.code==="ENOENT")return i();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return i(n)}if(n||!s.length)return Rc(t,e,r,i);let o=s.length,a=null,u=c=>{if(!a){if(c)return i(a=c);if(--o===0)return Rc(t,e,r,i)}};s.forEach(c=>vD(t,c,e,r,u))})},tj=(t,e,r,i)=>{if(typeof e=="string")try{let n=Ut.lstatSync(cn.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&wD(cn.resolve(t,e.name),r,i),em(cn.resolve(t,e.name),r,i)},wD=(t,e,r)=>{let i;try{i=ej(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return em(t,e,r);throw n}return i&&i.length&&i.forEach(n=>tj(t,n,e,r)),em(t,e,r)};SD.exports=tm;tm.sync=wD});var RD=T((fz,rm)=>{"use strict";var DD=gD(),Ht=require("fs"),Tc=require("path"),AD=xD(),Qt=cs(),kc=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Oc=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Fc=(t,e)=>t.get(Qt(e)),Uo=(t,e,r)=>t.set(Qt(e),r),rj=(t,e)=>{Ht.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Oc(t,r&&r.code||"ENOTDIR")),e(r)})};rm.exports=(t,e,r)=>{t=Qt(t);let i=e.umask,n=e.mode|448,s=(n&i)!==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,h=e.cache,f=Qt(e.cwd),d=(p,v)=>{p?r(p):(Uo(h,t,!0),v&&u?AD(v,o,a,C=>d(C)):s?Ht.chmod(t,n,r):r())};if(h&&Fc(h,t)===!0)return d();if(t===f)return rj(t,d);if(c)return DD(t,{mode:n}).then(p=>d(null,p),d);let y=Qt(Tc.relative(f,t)).split("/");Pc(f,y,n,h,l,f,null,d)};var Pc=(t,e,r,i,n,s,o,a)=>{if(!e.length)return a(null,o);let u=e.shift(),c=Qt(Tc.resolve(t+"/"+u));if(Fc(i,c))return Pc(c,e,r,i,n,s,o,a);Ht.mkdir(c,r,CD(c,e,r,i,n,s,o,a))},CD=(t,e,r,i,n,s,o,a)=>u=>{u?Ht.lstat(t,(c,l)=>{if(c)c.path=c.path&&Qt(c.path),a(c);else if(l.isDirectory())Pc(t,e,r,i,n,s,o,a);else if(n)Ht.unlink(t,h=>{if(h)return a(h);Ht.mkdir(t,r,CD(t,e,r,i,n,s,o,a))});else{if(l.isSymbolicLink())return a(new kc(t,t+"/"+e.join("/")));a(u)}}):(o=o||t,Pc(t,e,r,i,n,s,o,a))},ij=t=>{let e=!1,r="ENOTDIR";try{e=Ht.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Oc(t,r)}};rm.exports.sync=(t,e)=>{t=Qt(t);let r=e.umask,i=e.mode|448,n=(i&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,h=Qt(e.cwd),f=p=>{Uo(l,t,!0),p&&a&&AD.sync(p,s,o),n&&Ht.chmodSync(t,i)};if(l&&Fc(l,t)===!0)return f();if(t===h)return ij(h),f();if(u)return f(DD.sync(t,i));let m=Qt(Tc.relative(h,t)).split("/"),y=null;for(let p=m.shift(),v=h;p&&(v+="/"+p);p=m.shift())if(v=Qt(Tc.resolve(v)),!Fc(l,v))try{Ht.mkdirSync(v,i),y=y||v,Uo(l,v,!0)}catch{let k=Ht.lstatSync(v);if(k.isDirectory()){Uo(l,v,!0);continue}else if(c){Ht.unlinkSync(v),Ht.mkdirSync(v,i),y=y||v,Uo(l,v,!0);continue}else if(k.isSymbolicLink())return new kc(v,v+"/"+m.join("/"))}return f(y)}});var nm=T((dz,TD)=>{var im=Object.create(null),{hasOwnProperty:nj}=Object.prototype;TD.exports=t=>(nj.call(im,t)||(im[t]=t.normalize("NFKD")),im[t])});var PD=T((pz,FD)=>{var kD=require("assert"),sj=nm(),oj=fs(),{join:OD}=require("path"),aj=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,uj=aj==="win32";FD.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=OD(h[h.length-1],f)),h.push(f||"/"),h),[]),i=new Set,n=c=>{let l=e.get(c);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(h=>t.get(h)),dirs:[...l.dirs].map(h=>t.get(h))}},s=c=>{let{paths:l,dirs:h}=n(c);return l.every(f=>f[0]===c)&&h.every(f=>f[0]instanceof Set&&f[0].has(c))},o=c=>i.has(c)||!s(c)?!1:(i.add(c),c(()=>a(c)),!0),a=c=>{if(!i.has(c))return!1;let{paths:l,dirs:h}=e.get(c),f=new Set;return l.forEach(d=>{let m=t.get(d);kD.equal(m[0],c),m.length===1?t.delete(d):(m.shift(),typeof m[0]=="function"?f.add(m[0]):m[0].forEach(y=>f.add(y)))}),h.forEach(d=>{let m=t.get(d);kD(m[0]instanceof Set),m[0].size===1&&m.length===1?t.delete(d):m[0].size===1?(m.shift(),f.add(m[0])):m[0].delete(c)}),i.delete(c),f.forEach(d=>o(d)),!0};return{check:s,reserve:(c,l)=>{c=uj?["win32 parallelization disabled"]:c.map(f=>sj(oj(OD(f))).toLowerCase());let h=new Set(c.map(f=>r(f)).reduce((f,d)=>f.concat(d)));return e.set(l,{dirs:h,paths:c}),c.forEach(f=>{let d=t.get(f);d?d.push(l):t.set(f,[l])}),h.forEach(f=>{let d=t.get(f);d?d[d.length-1]instanceof Set?d[d.length-1].add(l):d.push(new Set([l])):t.set(f,[new Set([l])])}),o(l)}}}});var BD=T((mz,LD)=>{var cj=process.env.__FAKE_PLATFORM__||process.platform,lj=cj==="win32",hj=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:fj,O_TRUNC:dj,O_WRONLY:pj,UV_FS_O_FILEMAP:ID=0}=hj.constants,mj=lj&&!!ID,yj=512*1024,gj=ID|dj|fj|pj;LD.exports=mj?t=>t<yj?gj:"w":()=>"w"});var dm=T((yz,ZD)=>{"use strict";var _j=require("assert"),bj=Dc(),Ae=require("fs"),Ej=vs(),Wr=require("path"),VD=RD(),ND=fp(),vj=PD(),wj=dp(),Ct=cs(),Sj=fs(),xj=nm(),MD=Symbol("onEntry"),am=Symbol("checkFs"),jD=Symbol("checkFs2"),Bc=Symbol("pruneCache"),um=Symbol("isReusable"),$t=Symbol("makeFs"),cm=Symbol("file"),lm=Symbol("directory"),Nc=Symbol("link"),qD=Symbol("symlink"),UD=Symbol("hardlink"),HD=Symbol("unsupported"),$D=Symbol("checkPath"),Ai=Symbol("mkdir"),ut=Symbol("onError"),Ic=Symbol("pending"),zD=Symbol("pend"),As=Symbol("unpend"),sm=Symbol("ended"),om=Symbol("maybeClose"),hm=Symbol("skip"),Ho=Symbol("doChown"),$o=Symbol("uid"),zo=Symbol("gid"),Go=Symbol("checkedCwd"),YD=require("crypto"),KD=BD(),Dj=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Wo=Dj==="win32",Aj=(t,e)=>{if(!Wo)return Ae.unlink(t,e);let r=t+".DELETE."+YD.randomBytes(16).toString("hex");Ae.rename(t,r,i=>{if(i)return e(i);Ae.unlink(r,e)})},Cj=t=>{if(!Wo)return Ae.unlinkSync(t);let e=t+".DELETE."+YD.randomBytes(16).toString("hex");Ae.renameSync(t,e),Ae.unlinkSync(e)},GD=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,WD=t=>xj(Sj(Ct(t))).toLowerCase(),Rj=(t,e)=>{e=WD(e);for(let r of t.keys()){let i=WD(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},Tj=t=>{for(let e of t.keys())t.delete(e)},Vo=class extends bj{constructor(e){if(e||(e={}),e.ondone=r=>{this[sm]=!0,this[om]()},super(e),this[Go]=!1,this.reservations=vj(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Ic]=0,this[sm]=!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||Wo,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Ct(Wr.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[MD](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[om](){this[sm]&&this[Ic]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[$D](e){if(this.strip){let r=Ct(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=Ct(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=Ct(e.path),i=r.split("/");if(i.includes("..")||Wo&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=wj(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Wr.isAbsolute(e.path)?e.absolute=Ct(Wr.resolve(e.path)):e.absolute=Ct(Wr.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:Ct(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}=Wr.win32.parse(e.absolute);e.absolute=r+ND.encode(e.absolute.slice(r.length));let{root:i}=Wr.win32.parse(e.path);e.path=i+ND.encode(e.path.slice(i.length))}return!0}[MD](e){if(!this[$D](e))return e.resume();switch(_j.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[am](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[HD](e)}}[ut](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[As](),r.resume())}[Ai](e,r,i){VD(Ct(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},i)}[Ho](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}[$o](e){return GD(this.uid,e.uid,this.processUid)}[zo](e){return GD(this.gid,e.gid,this.processGid)}[cm](e,r){let i=e.mode&4095||this.fmode,n=new Ej.WriteStream(e.absolute,{flags:KD(e.size),mode:i,autoClose:!1});n.on("error",u=>{n.fd&&Ae.close(n.fd,()=>{}),n.write=()=>!0,this[ut](u,e),r()});let s=1,o=u=>{if(u){n.fd&&Ae.close(n.fd,()=>{}),this[ut](u,e),r();return}--s===0&&Ae.close(n.fd,c=>{c?this[ut](c,e):this[As](),r()})};n.on("finish",u=>{let c=e.absolute,l=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;Ae.futimes(l,h,f,d=>d?Ae.utimes(c,h,f,m=>o(m&&d)):o())}if(this[Ho](e)){s++;let h=this[$o](e),f=this[zo](e);Ae.fchown(l,h,f,d=>d?Ae.chown(c,h,f,m=>o(m&&d)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",u=>{this[ut](u,e),r()}),e.pipe(a)),a.pipe(n)}[lm](e,r){let i=e.mode&4095||this.dmode;this[Ai](e.absolute,i,n=>{if(n){this[ut](n,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[As](),e.resume())};e.mtime&&!this.noMtime&&(s++,Ae.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Ho](e)&&(s++,Ae.chown(e.absolute,this[$o](e),this[zo](e),o)),o()})}[HD](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[qD](e,r){this[Nc](e,e.linkpath,"symlink",r)}[UD](e,r){let i=Ct(Wr.resolve(this.cwd,e.linkpath));this[Nc](e,i,"link",r)}[zD](){this[Ic]++}[As](){this[Ic]--,this[om]()}[hm](e){this[As](),e.resume()}[um](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Wo}[am](e){this[zD]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[jD](e,i))}[Bc](e){e.type==="SymbolicLink"?Tj(this.dirCache):e.type!=="Directory"&&Rj(this.dirCache,e.absolute)}[jD](e,r){this[Bc](e);let i=a=>{this[Bc](e),r(a)},n=()=>{this[Ai](this.cwd,this.dmode,a=>{if(a){this[ut](a,e),i();return}this[Go]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=Ct(Wr.dirname(e.absolute));if(a!==this.cwd)return this[Ai](a,this.dmode,u=>{if(u){this[ut](u,e),i();return}o()})}o()},o=()=>{Ae.lstat(e.absolute,(a,u)=>{if(u&&(this.keep||this.newer&&u.mtime>e.mtime)){this[hm](e),i();return}if(a||this[um](e,u))return this[$t](null,e,i);if(u.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(u.mode&4095)!==e.mode,l=h=>this[$t](h,e,i);return c?Ae.chmod(e.absolute,e.mode,l):l()}if(e.absolute!==this.cwd)return Ae.rmdir(e.absolute,c=>this[$t](c,e,i))}if(e.absolute===this.cwd)return this[$t](null,e,i);Aj(e.absolute,c=>this[$t](c,e,i))})};this[Go]?s():n()}[$t](e,r,i){if(e){this[ut](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[cm](r,i);case"Link":return this[UD](r,i);case"SymbolicLink":return this[qD](r,i);case"Directory":case"GNUDumpDir":return this[lm](r,i)}}[Nc](e,r,i,n){Ae[i](r,e.absolute,s=>{s?this[ut](s,e):(this[As](),e.resume()),n()})}},Lc=t=>{try{return[null,t()]}catch(e){return[e,null]}},fm=class extends Vo{[$t](e,r){return super[$t](e,r,()=>{})}[am](e){if(this[Bc](e),!this[Go]){let s=this[Ai](this.cwd,this.dmode);if(s)return this[ut](s,e);this[Go]=!0}if(e.absolute!==this.cwd){let s=Ct(Wr.dirname(e.absolute));if(s!==this.cwd){let o=this[Ai](s,this.dmode);if(o)return this[ut](o,e)}}let[r,i]=Lc(()=>Ae.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[hm](e);if(r||this[um](e,i))return this[$t](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[a]=o?Lc(()=>{Ae.chmodSync(e.absolute,e.mode)}):[];return this[$t](a,e)}let[s]=Lc(()=>Ae.rmdirSync(e.absolute));this[$t](s,e)}let[n]=e.absolute===this.cwd?[]:Lc(()=>Cj(e.absolute));this[$t](n,e)}[cm](e,r){let i=e.mode&4095||this.fmode,n=a=>{let u;try{Ae.closeSync(s)}catch(c){u=c}(a||u)&&this[ut](a||u,e),r()},s;try{s=Ae.openSync(e.absolute,KD(e.size),i)}catch(a){return n(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[ut](a,e)),e.pipe(o)),o.on("data",a=>{try{Ae.writeSync(s,a,0,a.length)}catch(u){n(u)}}),o.on("end",a=>{let u=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,l=e.mtime;try{Ae.futimesSync(s,c,l)}catch(h){try{Ae.utimesSync(e.absolute,c,l)}catch{u=h}}}if(this[Ho](e)){let c=this[$o](e),l=this[zo](e);try{Ae.fchownSync(s,c,l)}catch(h){try{Ae.chownSync(e.absolute,c,l)}catch{u=u||h}}}n(u)})}[lm](e,r){let i=e.mode&4095||this.dmode,n=this[Ai](e.absolute,i);if(n){this[ut](n,e),r();return}if(e.mtime&&!this.noMtime)try{Ae.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Ho](e))try{Ae.chownSync(e.absolute,this[$o](e),this[zo](e))}catch{}r(),e.resume()}[Ai](e,r){try{return VD.sync(Ct(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(i){return i}}[Nc](e,r,i,n){try{Ae[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[ut](s,e)}}};Vo.Sync=fm;ZD.exports=Vo});var tA=T((gz,eA)=>{"use strict";var kj=ns(),Mc=dm(),XD=require("fs"),QD=vs(),JD=require("path"),pm=fs();eA.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 i=kj(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&Oj(i,e),i.file&&i.sync?Fj(i):i.file?Pj(i,r):i.sync?Ij(i):Lj(i)};var Oj=(t,e)=>{let r=new Map(e.map(s=>[pm(s),!0])),i=t.filter,n=(s,o)=>{let a=o||JD.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):n(JD.dirname(s),a);return r.set(s,u),u};t.filter=i?(s,o)=>i(s,o)&&n(pm(s)):s=>n(pm(s))},Fj=t=>{let e=new Mc.Sync(t),r=t.file,i=XD.statSync(r),n=t.maxReadSize||16*1024*1024;new QD.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},Pj=(t,e)=>{let r=new Mc(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),XD.stat(n,(u,c)=>{if(u)a(u);else{let l=new QD.ReadStream(n,{readSize:i,size:c.size});l.on("error",a),l.pipe(r)}})});return e?s.then(e,e):s},Ij=t=>new Mc.Sync(t),Lj=t=>new Mc(t)});var rA=T(ze=>{"use strict";ze.c=ze.create=Nx();ze.r=ze.replace=Kp();ze.t=ze.list=Ac();ze.u=ze.update=Wx();ze.x=ze.extract=tA();ze.Pack=hc();ze.Unpack=dm();ze.Parse=Dc();ze.ReadEntry=Yu();ze.WriteEntry=Sp();ze.Header=hs();ze.Pax=Zu();ze.types=sp()});var Yr=T((Vr,jc)=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});var iA=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function Bj(t){return iA.includes(t)}var Nj=["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",...iA];function Mj(t){return Nj.includes(t)}var jj=["null","undefined","string","number","bigint","boolean","symbol"];function qj(t){return jj.includes(t)}function Cs(t){return e=>typeof e===t}var{toString:nA}=Object.prototype,Yo=t=>{let e=nA.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&O.domElement(t))return"HTMLElement";if(Mj(e))return e},ke=t=>e=>Yo(e)===t;function O(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(O.observable(t))return"Observable";if(O.array(t))return"Array";if(O.buffer(t))return"Buffer";let e=Yo(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"}O.undefined=Cs("undefined");O.string=Cs("string");var Uj=Cs("number");O.number=t=>Uj(t)&&!O.nan(t);O.bigint=Cs("bigint");O.function_=Cs("function");O.null_=t=>t===null;O.class_=t=>O.function_(t)&&t.toString().startsWith("class ");O.boolean=t=>t===!0||t===!1;O.symbol=Cs("symbol");O.numericString=t=>O.string(t)&&!O.emptyStringOrWhitespace(t)&&!Number.isNaN(Number(t));O.array=(t,e)=>Array.isArray(t)?O.function_(e)?t.every(e):!0:!1;O.buffer=t=>{var e,r,i,n;return(n=(i=(r=(e=t)===null||e===void 0?void 0:e.constructor)===null||r===void 0?void 0:r.isBuffer)===null||i===void 0?void 0:i.call(r,t))!==null&&n!==void 0?n:!1};O.blob=t=>ke("Blob")(t);O.nullOrUndefined=t=>O.null_(t)||O.undefined(t);O.object=t=>!O.null_(t)&&(typeof t=="object"||O.function_(t));O.iterable=t=>{var e;return O.function_((e=t)===null||e===void 0?void 0:e[Symbol.iterator])};O.asyncIterable=t=>{var e;return O.function_((e=t)===null||e===void 0?void 0:e[Symbol.asyncIterator])};O.generator=t=>{var e,r;return O.iterable(t)&&O.function_((e=t)===null||e===void 0?void 0:e.next)&&O.function_((r=t)===null||r===void 0?void 0:r.throw)};O.asyncGenerator=t=>O.asyncIterable(t)&&O.function_(t.next)&&O.function_(t.throw);O.nativePromise=t=>ke("Promise")(t);var Hj=t=>{var e,r;return O.function_((e=t)===null||e===void 0?void 0:e.then)&&O.function_((r=t)===null||r===void 0?void 0:r.catch)};O.promise=t=>O.nativePromise(t)||Hj(t);O.generatorFunction=ke("GeneratorFunction");O.asyncGeneratorFunction=t=>Yo(t)==="AsyncGeneratorFunction";O.asyncFunction=t=>Yo(t)==="AsyncFunction";O.boundFunction=t=>O.function_(t)&&!t.hasOwnProperty("prototype");O.regExp=ke("RegExp");O.date=ke("Date");O.error=ke("Error");O.map=t=>ke("Map")(t);O.set=t=>ke("Set")(t);O.weakMap=t=>ke("WeakMap")(t);O.weakSet=t=>ke("WeakSet")(t);O.int8Array=ke("Int8Array");O.uint8Array=ke("Uint8Array");O.uint8ClampedArray=ke("Uint8ClampedArray");O.int16Array=ke("Int16Array");O.uint16Array=ke("Uint16Array");O.int32Array=ke("Int32Array");O.uint32Array=ke("Uint32Array");O.float32Array=ke("Float32Array");O.float64Array=ke("Float64Array");O.bigInt64Array=ke("BigInt64Array");O.bigUint64Array=ke("BigUint64Array");O.arrayBuffer=ke("ArrayBuffer");O.sharedArrayBuffer=ke("SharedArrayBuffer");O.dataView=ke("DataView");O.enumCase=(t,e)=>Object.values(e).includes(t);O.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;O.urlInstance=t=>ke("URL")(t);O.urlString=t=>{if(!O.string(t))return!1;try{return new URL(t),!0}catch{return!1}};O.truthy=t=>!!t;O.falsy=t=>!t;O.nan=t=>Number.isNaN(t);O.primitive=t=>O.null_(t)||qj(typeof t);O.integer=t=>Number.isInteger(t);O.safeInteger=t=>Number.isSafeInteger(t);O.plainObject=t=>{if(nA.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})};O.typedArray=t=>Bj(Yo(t));var $j=t=>O.safeInteger(t)&&t>=0;O.arrayLike=t=>!O.nullOrUndefined(t)&&!O.function_(t)&&$j(t.length);O.inRange=(t,e)=>{if(O.number(e))return t>=Math.min(0,e)&&t<=Math.max(e,0);if(O.array(e)&&e.length===2)return t>=Math.min(...e)&&t<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};var zj=1,Gj=["innerHTML","ownerDocument","style","attributes","nodeValue"];O.domElement=t=>O.object(t)&&t.nodeType===zj&&O.string(t.nodeName)&&!O.plainObject(t)&&Gj.every(e=>e in t);O.observable=t=>{var e,r,i,n;return t?t===((r=(e=t)[Symbol.observable])===null||r===void 0?void 0:r.call(e))||t===((n=(i=t)["@@observable"])===null||n===void 0?void 0:n.call(i)):!1};O.nodeStream=t=>O.object(t)&&O.function_(t.pipe)&&!O.observable(t);O.infinite=t=>t===1/0||t===-1/0;var sA=t=>e=>O.integer(e)&&Math.abs(e%2)===t;O.evenInteger=sA(0);O.oddInteger=sA(1);O.emptyArray=t=>O.array(t)&&t.length===0;O.nonEmptyArray=t=>O.array(t)&&t.length>0;O.emptyString=t=>O.string(t)&&t.length===0;var Wj=t=>O.string(t)&&!/\S/.test(t);O.emptyStringOrWhitespace=t=>O.emptyString(t)||Wj(t);O.nonEmptyString=t=>O.string(t)&&t.length>0;O.nonEmptyStringAndNotWhitespace=t=>O.string(t)&&!O.emptyStringOrWhitespace(t);O.emptyObject=t=>O.object(t)&&!O.map(t)&&!O.set(t)&&Object.keys(t).length===0;O.nonEmptyObject=t=>O.object(t)&&!O.map(t)&&!O.set(t)&&Object.keys(t).length>0;O.emptySet=t=>O.set(t)&&t.size===0;O.nonEmptySet=t=>O.set(t)&&t.size>0;O.emptyMap=t=>O.map(t)&&t.size===0;O.nonEmptyMap=t=>O.map(t)&&t.size>0;O.propertyKey=t=>O.any([O.string,O.number,O.symbol],t);O.formData=t=>ke("FormData")(t);O.urlSearchParams=t=>ke("URLSearchParams")(t);var oA=(t,e,r)=>{if(!O.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)};O.any=(t,...e)=>(O.array(t)?t:[t]).some(i=>oA(Array.prototype.some,i,e));O.all=(t,...e)=>oA(Array.prototype.every,t,e);var se=(t,e,r,i={})=>{if(!t){let{multipleValues:n}=i,s=n?`received values of types ${[...new Set(r.map(o=>`\`${O(o)}\``))].join(", ")}`:`received value of type \`${O(r)}\``;throw new TypeError(`Expected value which is \`${e}\`, ${s}.`)}};Vr.assert={undefined:t=>se(O.undefined(t),"undefined",t),string:t=>se(O.string(t),"string",t),number:t=>se(O.number(t),"number",t),bigint:t=>se(O.bigint(t),"bigint",t),function_:t=>se(O.function_(t),"Function",t),null_:t=>se(O.null_(t),"null",t),class_:t=>se(O.class_(t),"Class",t),boolean:t=>se(O.boolean(t),"boolean",t),symbol:t=>se(O.symbol(t),"symbol",t),numericString:t=>se(O.numericString(t),"string with a number",t),array:(t,e)=>{se(O.array(t),"Array",t),e&&t.forEach(e)},buffer:t=>se(O.buffer(t),"Buffer",t),blob:t=>se(O.blob(t),"Blob",t),nullOrUndefined:t=>se(O.nullOrUndefined(t),"null or undefined",t),object:t=>se(O.object(t),"Object",t),iterable:t=>se(O.iterable(t),"Iterable",t),asyncIterable:t=>se(O.asyncIterable(t),"AsyncIterable",t),generator:t=>se(O.generator(t),"Generator",t),asyncGenerator:t=>se(O.asyncGenerator(t),"AsyncGenerator",t),nativePromise:t=>se(O.nativePromise(t),"native Promise",t),promise:t=>se(O.promise(t),"Promise",t),generatorFunction:t=>se(O.generatorFunction(t),"GeneratorFunction",t),asyncGeneratorFunction:t=>se(O.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),asyncFunction:t=>se(O.asyncFunction(t),"AsyncFunction",t),boundFunction:t=>se(O.boundFunction(t),"Function",t),regExp:t=>se(O.regExp(t),"RegExp",t),date:t=>se(O.date(t),"Date",t),error:t=>se(O.error(t),"Error",t),map:t=>se(O.map(t),"Map",t),set:t=>se(O.set(t),"Set",t),weakMap:t=>se(O.weakMap(t),"WeakMap",t),weakSet:t=>se(O.weakSet(t),"WeakSet",t),int8Array:t=>se(O.int8Array(t),"Int8Array",t),uint8Array:t=>se(O.uint8Array(t),"Uint8Array",t),uint8ClampedArray:t=>se(O.uint8ClampedArray(t),"Uint8ClampedArray",t),int16Array:t=>se(O.int16Array(t),"Int16Array",t),uint16Array:t=>se(O.uint16Array(t),"Uint16Array",t),int32Array:t=>se(O.int32Array(t),"Int32Array",t),uint32Array:t=>se(O.uint32Array(t),"Uint32Array",t),float32Array:t=>se(O.float32Array(t),"Float32Array",t),float64Array:t=>se(O.float64Array(t),"Float64Array",t),bigInt64Array:t=>se(O.bigInt64Array(t),"BigInt64Array",t),bigUint64Array:t=>se(O.bigUint64Array(t),"BigUint64Array",t),arrayBuffer:t=>se(O.arrayBuffer(t),"ArrayBuffer",t),sharedArrayBuffer:t=>se(O.sharedArrayBuffer(t),"SharedArrayBuffer",t),dataView:t=>se(O.dataView(t),"DataView",t),enumCase:(t,e)=>se(O.enumCase(t,e),"EnumCase",t),urlInstance:t=>se(O.urlInstance(t),"URL",t),urlString:t=>se(O.urlString(t),"string with a URL",t),truthy:t=>se(O.truthy(t),"truthy",t),falsy:t=>se(O.falsy(t),"falsy",t),nan:t=>se(O.nan(t),"NaN",t),primitive:t=>se(O.primitive(t),"primitive",t),integer:t=>se(O.integer(t),"integer",t),safeInteger:t=>se(O.safeInteger(t),"integer",t),plainObject:t=>se(O.plainObject(t),"plain object",t),typedArray:t=>se(O.typedArray(t),"TypedArray",t),arrayLike:t=>se(O.arrayLike(t),"array-like",t),domElement:t=>se(O.domElement(t),"HTMLElement",t),observable:t=>se(O.observable(t),"Observable",t),nodeStream:t=>se(O.nodeStream(t),"Node.js Stream",t),infinite:t=>se(O.infinite(t),"infinite number",t),emptyArray:t=>se(O.emptyArray(t),"empty array",t),nonEmptyArray:t=>se(O.nonEmptyArray(t),"non-empty array",t),emptyString:t=>se(O.emptyString(t),"empty string",t),emptyStringOrWhitespace:t=>se(O.emptyStringOrWhitespace(t),"empty string or whitespace",t),nonEmptyString:t=>se(O.nonEmptyString(t),"non-empty string",t),nonEmptyStringAndNotWhitespace:t=>se(O.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),emptyObject:t=>se(O.emptyObject(t),"empty object",t),nonEmptyObject:t=>se(O.nonEmptyObject(t),"non-empty object",t),emptySet:t=>se(O.emptySet(t),"empty set",t),nonEmptySet:t=>se(O.nonEmptySet(t),"non-empty set",t),emptyMap:t=>se(O.emptyMap(t),"empty map",t),nonEmptyMap:t=>se(O.nonEmptyMap(t),"non-empty map",t),propertyKey:t=>se(O.propertyKey(t),"PropertyKey",t),formData:t=>se(O.formData(t),"FormData",t),urlSearchParams:t=>se(O.urlSearchParams(t),"URLSearchParams",t),evenInteger:t=>se(O.evenInteger(t),"even integer",t),oddInteger:t=>se(O.oddInteger(t),"odd integer",t),directInstanceOf:(t,e)=>se(O.directInstanceOf(t,e),"T",t),inRange:(t,e)=>se(O.inRange(t,e),"in range",t),any:(t,...e)=>se(O.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(t,...e)=>se(O.all(t,...e),"predicate returns truthy for all values",e,{multipleValues:!0})};Object.defineProperties(O,{class:{value:O.class_},function:{value:O.function_},null:{value:O.null_}});Object.defineProperties(Vr.assert,{class:{value:Vr.assert.class_},function:{value:Vr.assert.function_},null:{value:Vr.assert.null_}});Vr.default=O;jc.exports=O;jc.exports.default=O;jc.exports.assert=Vr.assert});var aA=T((bz,mm)=>{"use strict";var qc=class extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},Rs=class{static fn(e){return(...r)=>new Rs((i,n,s)=>{r.push(s),e(...r).then(i,n)})}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,i)=>{this._reject=i;let n=a=>{(!this._isCanceled||!o.shouldReject)&&(this._isPending=!1,r(a))},s=a=>{this._isPending=!1,i(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(n,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 qc(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(Rs.prototype,Promise.prototype);mm.exports=Rs;mm.exports.CancelError=qc});var uA=T((gm,_m)=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});function Vj(t){return t.encrypted}var ym=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let i=typeof r.connect=="function",n=typeof r.secureConnect=="function",s=typeof r.close=="function",o=()=>{i&&r.connect(),Vj(t)&&n&&(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)};gm.default=ym;_m.exports=ym;_m.exports.default=ym});var cA=T((Em,vm)=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});var Yj=uA(),Kj=require("util"),Zj=Number(process.versions.node.split(".")[0]),bm=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 i=()=>{e.abort=Date.now(),(!e.response||Zj>=13)&&(e.phases.total=Date.now()-e.start)};t.prependOnceListener("abort",i);let n=a=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,Kj.types.isProxy(a))return;let u=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};a.prependOnceListener("lookup",u),Yj.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?n(t.socket):t.prependOnceListener("socket",n);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",i)}),e};Em.default=bm;vm.exports=bm;vm.exports.default=bm});var yA=T((Ez,xm)=>{"use strict";var{V4MAPPED:Jj,ADDRCONFIG:Xj,ALL:mA,promises:{Resolver:lA},lookup:Qj}=require("dns"),{promisify:wm}=require("util"),e8=require("os"),Ts=Symbol("cacheableLookupCreateConnection"),Sm=Symbol("cacheableLookupInstance"),hA=Symbol("expires"),t8=typeof mA=="number",fA=t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},r8=t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},dA=()=>{let t=!1,e=!1;for(let r of Object.values(e8.networkInterfaces()))for(let i of r)if(!i.internal&&(i.family==="IPv6"?e=!0:t=!0,t&&e))return{has4:t,has6:e};return{has4:t,has6:e}},i8=t=>Symbol.iterator in t,pA={ttl:!0},n8={all:!0},Uc=class{constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:i=3600,errorTtl:n=.15,resolver:s=new lA,lookup:o=Qj}={}){if(this.maxTtl=r,this.errorTtl=n,this._cache=e,this._resolver=s,this._dnsLookup=wm(o),this._resolver instanceof lA?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=wm(this._resolver.resolve4.bind(this._resolver)),this._resolve6=wm(this._resolver.resolve6.bind(this._resolver))),this._iface=dA(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,i<1)this._fallback=!1;else{this._fallback=!0;let a=setInterval(()=>{this._hostnamesToFallback.clear()},i*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,i){if(typeof r=="function"?(i=r,r={}):typeof r=="number"&&(r={family:r}),!i)throw new Error("Callback must be a function.");this.lookupAsync(e,r).then(n=>{r.all?i(null,n):i(null,n.address,n.family,n.expires,n.ttl)},i)}async lookupAsync(e,r={}){typeof r=="number"&&(r={family:r});let i=await this.query(e);if(r.family===6){let n=i.filter(s=>s.family===6);r.hints&Jj&&(t8&&r.hints&mA||n.length===0)?r8(i):i=n}else r.family===4&&(i=i.filter(n=>n.family===4));if(r.hints&Xj){let{_iface:n}=this;i=i.filter(s=>s.family===6?n.has6:n.has4)}if(i.length===0){let n=new Error(`cacheableLookup ENOTFOUND ${e}`);throw n.code="ENOTFOUND",n.hostname=e,n}return r.all?i:i[0]}async query(e){let r=await this._cache.get(e);if(!r){let i=this._pending[e];if(i)r=await i;else{let n=this.queryAndCache(e);this._pending[e]=n;try{r=await n}finally{delete this._pending[e]}}}return r=r.map(i=>({...i})),r}async _resolve(e){let r=async c=>{try{return await c}catch(l){if(l.code==="ENODATA"||l.code==="ENOTFOUND")return[];throw l}},[i,n]=await Promise.all([this._resolve4(e,pA),this._resolve6(e,pA)].map(c=>r(c))),s=0,o=0,a=0,u=Date.now();for(let c of i)c.family=4,c.expires=u+c.ttl*1e3,s=Math.max(s,c.ttl);for(let c of n)c.family=6,c.expires=u+c.ttl*1e3,o=Math.max(o,c.ttl);return i.length>0?n.length>0?a=Math.min(s,o):a=s:a=o,{entries:[...i,...n],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,i){if(this.maxTtl>0&&i>0){i=Math.min(i,this.maxTtl)*1e3,r[hA]=Date.now()+i;try{await this._cache.set(e,r,i)}catch(n){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=n,s}}i8(this._cache)&&this._tick(i)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,n8);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 i=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(e,r.entries,i),r.entries}_tick(e){let r=this._nextRemovalTime;(!r||e<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let i=1/0,n=Date.now();for(let[s,o]of this._cache){let a=o[hA];n>=a?this._cache.delete(s):a<i&&(i=a)}i!==1/0&&this._tick(i-n)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(fA(e),Ts in e)throw new Error("CacheableLookup has been already installed");e[Ts]=e.createConnection,e[Sm]=this,e.createConnection=(r,i)=>("lookup"in r||(r.lookup=this.lookup),e[Ts](r,i))}uninstall(e){if(fA(e),e[Ts]){if(e[Sm]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[Ts],delete e[Ts],delete e[Sm]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=dA(),(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()}};xm.exports=Uc;xm.exports.default=Uc});var bA=T((vz,_A)=>{"use strict";var s8="text/plain",o8="us-ascii",gA=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),a8=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:i,data:n,hash:s}=r.groups,o=i.split(";");s=e?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let u=(o.shift()||"").toLowerCase(),l=[...o.map(h=>{let[f,d=""]=h.split("=").map(m=>m.trim());return f==="charset"&&(d=d.toLowerCase(),d===o8)?"":`${f}${d?`=${d}`:""}`}).filter(Boolean)];return a&&l.push("base64"),(l.length!==0||u&&u!==s8)&&l.unshift(u),`data:${l.join(";")},${a?n.trim():n}${s?`#${s}`:""}`},u8=(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 a8(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 n=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&n.protocol==="https:"&&(n.protocol="http:"),e.forceHttps&&n.protocol==="http:"&&(n.protocol="https:"),e.stripAuthentication&&(n.username="",n.password=""),e.stripHash?n.hash="":e.stripTextFragment&&(n.hash=n.hash.replace(/#?:~:text.*?$/i,"")),n.pathname&&(n.pathname=n.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),n.pathname)try{n.pathname=decodeURI(n.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=n.pathname.split("/"),a=o[o.length-1];gA(a,e.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),n.pathname=o.slice(1).join("/")+"/")}if(n.hostname&&(n.hostname=n.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(n.hostname)&&(n.hostname=n.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...n.searchParams.keys()])gA(o,e.removeQueryParameters)&&n.searchParams.delete(o);e.removeQueryParameters===!0&&(n.search=""),e.sortQueryParameters&&n.searchParams.sort(),e.removeTrailingSlash&&(n.pathname=n.pathname.replace(/\/$/,""));let s=t;return t=n.toString(),!e.removeSingleSlash&&n.pathname==="/"&&!s.endsWith("/")&&n.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||n.pathname==="/")&&n.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t};_A.exports=u8});var wA=T((wz,vA)=>{vA.exports=EA;function EA(t,e){if(t&&e)return EA(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(i){r[i]=t[i]}),r;function r(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];var s=t.apply(this,i),o=i[i.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var Am=T((Sz,Dm)=>{var SA=wA();Dm.exports=SA(Hc);Dm.exports.strict=SA(xA);Hc.proto=Hc(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Hc(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return xA(this)},configurable:!0})});function Hc(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function xA(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 CA=T((xz,AA)=>{var c8=Am(),l8=function(){},h8=function(t){return t.setHeader&&typeof t.abort=="function"},f8=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},DA=function(t,e,r){if(typeof e=="function")return DA(t,null,e);e||(e={}),r=c8(r||l8);var i=t._writableState,n=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)},h=function(p){r.call(t,p?new Error("exited with error code: "+p):null)},f=function(p){r.call(t,p)},d=function(){process.nextTick(m)},m=function(){if(!a){if(s&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"));if(o&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"))}},y=function(){t.req.on("finish",c)};return h8(t)?(t.on("complete",c),t.on("abort",d),t.req?y():t.on("request",y)):o&&!i&&(t.on("end",u),t.on("close",u)),f8(t)&&t.on("exit",h),t.on("end",l),t.on("finish",c),e.error!==!1&&t.on("error",f),t.on("close",d),function(){a=!0,t.removeListener("complete",c),t.removeListener("abort",d),t.removeListener("request",y),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("exit",h),t.removeListener("end",l),t.removeListener("error",f),t.removeListener("close",d)}};AA.exports=DA});var kA=T((Dz,TA)=>{var d8=Am(),p8=CA(),Cm=require("fs"),Ko=function(){},m8=/^v?\.0/.test(process.version),$c=function(t){return typeof t=="function"},y8=function(t){return!m8||!Cm?!1:(t instanceof(Cm.ReadStream||Ko)||t instanceof(Cm.WriteStream||Ko))&&$c(t.close)},g8=function(t){return t.setHeader&&$c(t.abort)},_8=function(t,e,r,i){i=d8(i);var n=!1;t.on("close",function(){n=!0}),p8(t,{readable:e,writable:r},function(o){if(o)return i(o);n=!0,i()});var s=!1;return function(o){if(!n&&!s){if(s=!0,y8(t))return t.close(Ko);if(g8(t))return t.abort();if($c(t.destroy))return t.destroy();i(o||new Error("stream was destroyed"))}}},RA=function(t){t()},b8=function(t,e){return t.pipe(e)},E8=function(){var t=Array.prototype.slice.call(arguments),e=$c(t[t.length-1]||Ko)&&t.pop()||Ko;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,i=t.map(function(n,s){var o=s<t.length-1,a=s>0;return _8(n,o,a,function(u){r||(r=u),u&&i.forEach(RA),!o&&(i.forEach(RA),e(r))})});return t.reduce(b8)};TA.exports=E8});var FA=T((Az,OA)=>{"use strict";var{PassThrough:v8}=require("stream");OA.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,i=r==="buffer",n=!1;e?n=!(r||i):r=r||"utf8",i&&(r=null);let s=new v8({objectMode:n});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),n?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var PA=T((Cz,ks)=>{"use strict";var{constants:w8}=require("buffer"),S8=kA(),x8=FA(),zc=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Gc(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i;return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=w8.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};i=S8(t,x8(e),a=>{if(a){o(a);return}n()}),i.on("data",()=>{i.getBufferedLength()>r&&o(new zc)})}),i.getBufferedValue()}ks.exports=Gc;ks.exports.default=Gc;ks.exports.buffer=(t,e)=>Gc(t,{...e,encoding:"buffer"});ks.exports.array=(t,e)=>Gc(t,{...e,array:!0});ks.exports.MaxBufferError=zc});var LA=T((Tz,IA)=>{"use strict";var D8=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),A8=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),C8=new Set([500,502,503,504]),R8={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},T8={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function ln(t){let e=parseInt(t,10);return isFinite(e)?e:0}function k8(t){return t?C8.has(t.status):!0}function Rm(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let i of r){let[n,s]=i.split(/=/,2);e[n.trim()]=s===void 0?!0:s.trim().replace(/^"|"$/g,"")}return e}function O8(t){let e=[];for(let r in t){let i=t[r];e.push(i===!0?r:r+"="+i)}if(e.length)return e.join(", ")}IA.exports=class{constructor(e,r,{shared:i,cacheHeuristic:n,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=i!==!1,this._cacheHeuristic=n!==void 0?n:.1,this._immutableMinTtl=s!==void 0?s:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=Rm(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=Rm(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":O8(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())&&A8.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||D8.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=Rm(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 i of r)if(e.headers[i]!==this._reqHeaders[i])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let i in e)R8[i]||(r[i]=e[i]);if(e.connection){let i=e.connection.trim().split(/\s*,\s*/);for(let n of i)delete r[n]}if(r.warning){let i=r.warning.split(/,/).filter(n=>!/^\s*1[0-9][0-9]/.test(n));i.length?r.warning=i.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 ln(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 ln(this._rescc["s-maxage"])}if(this._rescc["max-age"])return ln(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let i=Date.parse(this._resHeaders.expires);return Number.isNaN(i)||i<r?0:Math.max(e,(i-r)/1e3)}if(this._resHeaders["last-modified"]){let i=Date.parse(this._resHeaders["last-modified"]);if(isFinite(i)&&r>i)return Math.max(e,(r-i)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+ln(this._rescc["stale-if-error"]),i=e+ln(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,i)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+ln(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+ln(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 n=r["if-none-match"].split(/,/).filter(s=>!/^\s*W\//.test(s));n.length?r["if-none-match"]=n.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()&&k8(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let i=!1;if(r.status!==void 0&&r.status!=304?i=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?i=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?i=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?i=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(i=!0),!i)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let n={};for(let o in this._resHeaders)n[o]=o in r.headers&&!T8[o]?r.headers[o]:this._resHeaders[o];let s=Object.assign({},r,{status:this._status,method:this._method,headers:n});return{policy:new this.constructor(e,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var Wc=T((kz,BA)=>{"use strict";BA.exports=t=>{let e={};for(let[r,i]of Object.entries(t))e[r.toLowerCase()]=i;return e}});var MA=T((Oz,NA)=>{"use strict";var F8=require("stream").Readable,P8=Wc(),Tm=class extends F8{constructor(e,r,i,n){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(!(i instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof n!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=P8(r),this.body=i,this.url=n}_read(){this.push(this.body),this.push(null)}};NA.exports=Tm});var qA=T((Fz,jA)=>{"use strict";var I8=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];jA.exports=(t,e)=>{let r=new Set(Object.keys(t).concat(I8));for(let i of r)i in e||(e[i]=typeof t[i]=="function"?t[i].bind(t):t[i])}});var HA=T((Pz,UA)=>{"use strict";var L8=require("stream").PassThrough,B8=qA(),N8=t=>{if(!(t&&t.pipe))throw new TypeError("Parameter `response` must be a response stream.");let e=new L8;return B8(t,e),t.pipe(e)};UA.exports=N8});var $A=T(km=>{km.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="",i=Array.isArray(e);r=i?"[":"{";var n=!0;for(var s in e){var o=typeof e[s]=="function"||!i&&typeof e[s]=="undefined";Object.hasOwnProperty.call(e,s)&&!o&&(n||(r+=","),n=!1,i?e[s]==null?r+="null":r+=t(e[s]):e[s]!==void 0&&(r+=t(s)+":"+t(e[s])))}return r+=i?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e=="undefined"?"null":JSON.stringify(e)};km.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 VA=T((Lz,WA)=>{"use strict";var M8=require("events"),zA=$A(),j8=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},GA=["sqlite","postgres","mysql","mongo","redis","tiered"],Om=class extends M8{constructor(e,{emitErrors:r=!0,...i}={}){if(super(),this.opts={namespace:"keyv",serialize:zA.stringify,deserialize:zA.parse,...typeof e=="string"?{uri:e}:e,...i},!this.opts.store){let s={...this.opts};this.opts.store=j8(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 n=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=n(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=n(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return GA.includes(this.opts.store.opts.dialect)||GA.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:i}=this.opts,n=Array.isArray(e),s=n?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(n&&i.getMany===void 0){let o=[];for(let a of s)o.push(Promise.resolve().then(()=>i.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(()=>n?i.getMany(s):i.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(n){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,i){let n=this._getKeyPrefix(e);typeof i=="undefined"&&(i=this.opts.ttl),i===0&&(i=void 0);let{store:s}=this.opts;return Promise.resolve().then(()=>{let o=typeof i=="number"?Date.now()+i: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(n,o,i)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let n=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let s=[];for(let o of n)s.push(r.delete(o));return Promise.allSettled(s).then(o=>o.every(a=>a.value===!0))}return Promise.resolve().then(()=>r.deleteMany(n))}let i=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(i))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:i}=this.opts;return Promise.resolve().then(async()=>typeof i.has=="function"?i.has(r):await i.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};WA.exports=Om});var ZA=T((Bz,KA)=>{"use strict";var q8=require("events"),Vc=require("url"),U8=bA(),H8=PA(),Fm=LA(),YA=MA(),$8=Wc(),z8=HA(),G8=VA(),er=class{constructor(e,r){if(typeof e!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new G8({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(r,i)=>{let n;if(typeof r=="string")n=Pm(Vc.parse(r)),r={};else if(r instanceof Vc.URL)n=Pm(Vc.parse(r.toString())),r={};else{let[h,...f]=(r.path||"").split("?"),d=f.length>0?`?${f.join("?")}`:"";n=Pm({...r,pathname:h,search:d})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...W8(n)},r.headers=$8(r.headers);let s=new q8,o=U8(Vc.format(n),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),a=`${r.method}:${o}`,u=!1,c=!1,l=h=>{c=!0;let f=!1,d,m=new Promise(p=>{d=()=>{f||(f=!0,p())}}),y=p=>{if(u&&!h.forceRefresh){p.status=p.statusCode;let C=Fm.fromObject(u.cachePolicy).revalidatedPolicy(h,p);if(!C.modified){let k=C.policy.responseHeaders();p=new YA(u.statusCode,k,u.body,u.url),p.cachePolicy=C.policy,p.fromCache=!0}}p.fromCache||(p.cachePolicy=new Fm(h,p,h),p.fromCache=!1);let v;h.cache&&p.cachePolicy.storable()?(v=z8(p),(async()=>{try{let C=H8.buffer(p);if(await Promise.race([m,new Promise(M=>p.once("end",M))]),f)return;let k=await C,P={cachePolicy:p.cachePolicy.toObject(),url:p.url,statusCode:p.fromCache?u.statusCode:p.statusCode,body:k},F=h.strictTtl?p.cachePolicy.timeToLive():void 0;h.maxTtl&&(F=F?Math.min(F,h.maxTtl):h.maxTtl),await this.cache.set(a,P,F)}catch(C){s.emit("error",new er.CacheError(C))}})()):h.cache&&u&&(async()=>{try{await this.cache.delete(a)}catch(C){s.emit("error",new er.CacheError(C))}})(),s.emit("response",v||p),typeof i=="function"&&i(v||p)};try{let p=e(h,y);p.once("error",d),p.once("abort",d),s.emit("request",p)}catch(p){s.emit("error",new er.RequestError(p))}};return(async()=>{let h=async d=>{await Promise.resolve();let m=d.cache?await this.cache.get(a):void 0;if(typeof m=="undefined")return l(d);let y=Fm.fromObject(m.cachePolicy);if(y.satisfiesWithoutRevalidation(d)&&!d.forceRefresh){let p=y.responseHeaders(),v=new YA(m.statusCode,p,m.body,m.url);v.cachePolicy=y,v.fromCache=!0,s.emit("response",v),typeof i=="function"&&i(v)}else u=m,d.headers=y.revalidationHeaders(d),l(d)},f=d=>s.emit("error",new er.CacheError(d));this.cache.once("error",f),s.on("response",()=>this.cache.removeListener("error",f));try{await h(r)}catch(d){r.automaticFailover&&!c&&l(r),s.emit("error",new er.CacheError(d))}})(),s}}};function W8(t){let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e}function Pm(t){return{protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}}er.RequestError=class extends Error{constructor(t){super(t.message),this.name="RequestError",Object.assign(this,t)}};er.CacheError=class extends Error{constructor(t){super(t.message),this.name="CacheError",Object.assign(this,t)}};KA.exports=er});var XA=T((jz,JA)=>{"use strict";var V8=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];JA.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(V8)),i={};for(let n of r)n in e||(i[n]={get(){let s=t[n];return typeof s=="function"?s.bind(t):s},set(s){t[n]=s},enumerable:!0,configurable:!1});return Object.defineProperties(e,i),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 eC=T((qz,QA)=>{"use strict";var{Transform:Y8,PassThrough:K8}=require("stream"),Im=require("zlib"),Z8=XA();QA.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof Im.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let i=!0,n=new Y8({transform(a,u,c){i=!1,c(null,a)},flush(a){a()}}),s=new K8({autoDestroy:!1,destroy(a,u){t.destroy(),u(a)}}),o=r?Im.createBrotliDecompress():Im.createUnzip();return o.once("error",a=>{if(i&&!t.readable){s.end();return}s.destroy(a)}),Z8(t,s),t.pipe(n).pipe(o).pipe(s),s}});var Bm=T((Uz,tC)=>{"use strict";var Lm=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[i,n]of this.oldCache.entries())this.onEviction(i,n);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)}};tC.exports=Lm});var Mm=T((Hz,sC)=>{"use strict";var J8=require("events"),X8=require("tls"),Q8=require("http2"),e5=Bm(),ht=Symbol("currentStreamsCount"),rC=Symbol("request"),zt=Symbol("cachedOriginSet"),Os=Symbol("gracefullyClosing"),t5=["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"],r5=(t,e,r)=>{let i=0,n=t.length;for(;i<n;){let s=i+n>>>1;r(t[s],e)?i=s+1:n=s}return i},i5=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,Nm=(t,e)=>{for(let r of t)r[zt].length<e[zt].length&&r[zt].every(i=>e[zt].includes(i))&&r[ht]+e[ht]<=e.remoteSettings.maxConcurrentStreams&&nC(r)},n5=(t,e)=>{for(let r of t)e[zt].length<r[zt].length&&e[zt].every(i=>r[zt].includes(i))&&e[ht]+r[ht]<=r.remoteSettings.maxConcurrentStreams&&nC(e)},iC=({agent:t,isFree:e})=>{let r={};for(let i in t.sessions){let s=t.sessions[i].filter(o=>{let a=o[br.kCurrentStreamsCount]<o.remoteSettings.maxConcurrentStreams;return e?a:!a});s.length!==0&&(r[i]=s)}return r},nC=t=>{t[Os]=!0,t[ht]===0&&t.close()},br=class extends J8{constructor({timeout:e=6e4,maxSessions:r=1/0,maxFreeSessions:i=10,maxCachedTlsSessions:n=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxFreeSessions=i,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new e5({maxSize:n})}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 i of t5)e[i]&&(r+=`:${e[i]}`);return r}_tryToCreateNewSession(e,r){if(!(e in this.queue)||!(r in this.queue[e]))return;let i=this.queue[e][r];this._sessionsCount<this.maxSessions&&!i.completed&&(i.completed=!0,i())}getSession(e,r,i){return new Promise((n,s)=>{Array.isArray(i)?(i=[...i],n()):i=[{resolve:n,reject:s}];let o=this.normalizeOptions(r),a=br.normalizeOrigin(e,r&&r.servername);if(a===void 0){for(let{reject:l}of i)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],h=-1,f=-1,d;for(let m of l){let y=m.remoteSettings.maxConcurrentStreams;if(y<h)break;if(m[zt].includes(a)){let p=m[ht];if(p>=y||m[Os]||m.destroyed)continue;d||(h=y),p>f&&(d=m,f=p)}}if(d){if(i.length!==1){for(let{reject:m}of i){let y=new Error(`Expected the length of listeners to be 1, got ${i.length}.
|
15
|
-
Please report this to https://github.com/szmarczak/http2-wrapper/`);m(y)}return}i[0].resolve(d);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...i),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}`,h=!1;try{let f=Q8.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(l),...r});f[ht]=0,f[Os]=!1;let d=()=>f[ht]<f.remoteSettings.maxConcurrentStreams,m=!0;f.socket.once("session",p=>{this.tlsSessionCache.set(l,p)}),f.once("error",p=>{for(let{reject:v}of i)v(p);this.tlsSessionCache.delete(l)}),f.setTimeout(this.timeout,()=>{f.destroy()}),f.once("close",()=>{if(h){m&&this._freeSessionsCount--,this._sessionsCount--;let p=this.sessions[o];p.splice(p.indexOf(f),1),p.length===0&&delete this.sessions[o]}else{let p=new Error("Session closed without receiving a SETTINGS frame");p.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:v}of i)v(p);u()}this._tryToCreateNewSession(o,a)});let y=()=>{if(!(!(o in this.queue)||!d())){for(let p of f[zt])if(p in this.queue[o]){let{listeners:v}=this.queue[o][p];for(;v.length!==0&&d();)v.shift().resolve(f);let C=this.queue[o];if(C[p].listeners.length===0&&(delete C[p],Object.keys(C).length===0)){delete this.queue[o];break}if(!d())break}}};f.on("origin",()=>{f[zt]=f.originSet,d()&&(y(),Nm(this.sessions[o],f))}),f.once("remoteSettings",()=>{if(f.ref(),f.unref(),this._sessionsCount++,c.destroyed){let p=new Error("Agent has been destroyed");for(let v of i)v.reject(p);f.destroy();return}f[zt]=f.originSet;{let p=this.sessions;if(o in p){let v=p[o];v.splice(r5(v,f,i5),0,f)}else p[o]=[f]}this._freeSessionsCount+=1,h=!0,this.emit("session",f),y(),u(),f[ht]===0&&this._freeSessionsCount>this.maxFreeSessions&&f.close(),i.length!==0&&(this.getSession(a,r,i),i.length=0),f.on("remoteSettings",()=>{y(),Nm(this.sessions[o],f)})}),f[rC]=f.request,f.request=(p,v)=>{if(f[Os])throw new Error("The session is gracefully closing. No new streams are allowed.");let C=f[rC](p,v);return f.ref(),++f[ht],f[ht]===f.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,C.once("close",()=>{if(m=d(),--f[ht],!f.destroyed&&!f.closed&&(n5(this.sessions[o],f),d()&&!f.closed)){m||(this._freeSessionsCount++,m=!0);let k=f[ht]===0;k&&f.unref(),k&&(this._freeSessionsCount>this.maxFreeSessions||f[Os])?f.close():(Nm(this.sessions[o],f),y())}}),C}}catch(f){for(let d of i)d.reject(f);u()}};c.listeners=i,c.completed=!1,c.destroyed=!1,this.queue[o][a]=c,this._tryToCreateNewSession(o,a)})}request(e,r,i,n){return new Promise((s,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{s(a.request(i,n))}catch(u){o(u)}}}])})}createConnection(e,r){return br.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let i=e.port||443,n=e.hostname||e.host;return typeof r.servername=="undefined"&&(r.servername=n),X8.connect(i,n,r)}closeFreeSessions(){for(let e of Object.values(this.sessions))for(let r of e)r[ht]===0&&r.close()}destroy(e){for(let r of Object.values(this.sessions))for(let i of r)i.destroy(e);for(let r of Object.values(this.queue))for(let i of Object.values(r))i.destroyed=!0;this.queue={}}get freeSessions(){return iC({agent:this,isFree:!0})}get busySessions(){return iC({agent:this,isFree:!1})}};br.kCurrentStreamsCount=ht;br.kGracefullyClosing=Os;sC.exports={Agent:br,globalAgent:new br}});var qm=T(($z,oC)=>{"use strict";var{Readable:s5}=require("stream"),jm=class extends s5{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()}};oC.exports=jm});var Um=T((zz,aC)=>{"use strict";aC.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 cC=T((Gz,uC)=>{"use strict";uC.exports=(t,e,r)=>{for(let i of r)t.on(i,(...n)=>e.emit(i,...n))}});var hC=T((Wz,lC)=>{"use strict";lC.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var dC=T((Yz,fC)=>{"use strict";var Fs=(t,e,r)=>{fC.exports[e]=class extends t{constructor(...n){super(typeof r=="string"?r:r(n)),this.name=`${super.name} [${e}]`,this.code=e}}};Fs(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],i=Array.isArray(r);return i&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${i?"one of":"of"} type ${r}. Received ${typeof t[2]}`});Fs(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);Fs(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);Fs(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);Fs(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);Fs(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`)});var Wm=T((Kz,EC)=>{"use strict";var o5=require("http2"),{Writable:a5}=require("stream"),{Agent:pC,globalAgent:u5}=Mm(),c5=qm(),l5=Um(),h5=cC(),f5=hC(),{ERR_INVALID_ARG_TYPE:Hm,ERR_INVALID_PROTOCOL:d5,ERR_HTTP_HEADERS_SENT:mC,ERR_INVALID_HTTP_TOKEN:p5,ERR_HTTP_INVALID_HEADER_VALUE:m5,ERR_INVALID_CHAR:y5}=dC(),{HTTP2_HEADER_STATUS:yC,HTTP2_HEADER_METHOD:gC,HTTP2_HEADER_PATH:_C,HTTP2_METHOD_CONNECT:g5}=o5.constants,ct=Symbol("headers"),$m=Symbol("origin"),zm=Symbol("session"),bC=Symbol("options"),Yc=Symbol("flushedHeaders"),Zo=Symbol("jobs"),_5=/^[\^`\-\w!#$%&*+.|~]+$/,b5=/[^\t\u0020-\u007E\u0080-\u00FF]/,Gm=class extends a5{constructor(e,r,i){super({autoDestroy:!1});let n=typeof e=="string"||e instanceof URL;if(n&&(e=l5(e instanceof URL?e:new URL(e))),typeof r=="function"||r===void 0?(i=r,r=n?e:{...e}):r={...e,...r},r.h2session)this[zm]=r.h2session;else if(r.agent===!1)this.agent=new pC({maxFreeSessions:0});else if(typeof r.agent=="undefined"||r.agent===null)typeof r.createConnection=="function"?(this.agent=new pC({maxFreeSessions:0}),this.agent.createConnection=r.createConnection):this.agent=u5;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new Hm("options.agent",["Agent-like Object","undefined","false"],r.agent);if(r.protocol&&r.protocol!=="https:")throw new d5(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[ct]=Object.create(null),this[Zo]=[],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[ct])&&(this[ct].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[bC]=r,s===443?(this[$m]=`https://${o}`,":authority"in this[ct]||(this[ct][":authority"]=o)):(this[$m]=`https://${o}:${s}`,":authority"in this[ct]||(this[ct][":authority"]=`${o}:${s}`)),a&&this.setTimeout(a),i&&this.once("response",i),this[Yc]=!1}get method(){return this[ct][gC]}set method(e){e&&(this[ct][gC]=e.toUpperCase())}get path(){return this[ct][_C]}set path(e){e&&(this[ct][_C]=e)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,i){if(this._mustNotHaveABody){i(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let n=()=>this._request.write(e,r,i);this._request?n():this[Zo].push(n)}_final(e){if(this.destroyed)return;this.flushHeaders();let r=()=>{if(this._mustNotHaveABody){e();return}this._request.end(e)};this._request?r():this[Zo].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[Yc]||this.destroyed)return;this[Yc]=!0;let e=this.method===g5,r=i=>{if(this._request=i,this.destroyed){i.destroy();return}e||h5(i,this,["timeout","continue","close","error"]);let n=o=>(...a)=>{!this.writable&&!this.destroyed?o(...a):this.once("finish",()=>{o(...a)})};i.once("response",n((o,a,u)=>{let c=new c5(this.socket,i.readableHighWaterMark);this.res=c,c.req=this,c.statusCode=o[yC],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,i,Buffer.alloc(0))?this.emit("close"):i.destroy()):(i.on("data",l=>{!c._dumped&&!c.push(l)&&i.pause()}),i.once("end",()=>{c.push(null)}),this.emit("response",c)||c._dump())})),i.once("headers",n(o=>this.emit("information",{statusCode:o[yC]}))),i.once("trailers",n((o,a,u)=>{let{res:c}=this;c.trailers=o,c.rawTrailers=u}));let{socket:s}=i.session;this.socket=s,this.connection=s;for(let o of this[Zo])o();this.emit("socket",this.socket)};if(this[zm])try{r(this[zm].request(this[ct]))}catch(i){this.emit("error",i)}else{this.reusedSocket=!0;try{r(await this.agent.request(this[$m],this[bC],this[ct]))}catch(i){this.emit("error",i)}}}getHeader(e){if(typeof e!="string")throw new Hm("name","string",e);return this[ct][e.toLowerCase()]}get headersSent(){return this[Yc]}removeHeader(e){if(typeof e!="string")throw new Hm("name","string",e);if(this.headersSent)throw new mC("remove");delete this[ct][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new mC("set");if(typeof e!="string"||!_5.test(e)&&!f5(e))throw new p5("Header name",e);if(typeof r=="undefined")throw new m5(r,e);if(b5.test(r))throw new y5("header content",e);this[ct][e.toLowerCase()]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let i=()=>this._request.setTimeout(e,r);return this._request?i():this[Zo].push(i),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};EC.exports=Gm});var wC=T((Zz,vC)=>{"use strict";var E5=require("tls");vC.exports=(t={},e=E5.connect)=>new Promise((r,i)=>{let n=!1,s,o=async()=>{await u,s.off("timeout",a),s.off("error",i),t.resolveSocket?(r({alpnProtocol:s.alpnProtocol,socket:s,timeout:n}),n&&(await Promise.resolve(),s.emit("timeout"))):(s.destroy(),r({alpnProtocol:s.alpnProtocol,timeout:n}))},a=async()=>{n=!0,o()},u=(async()=>{try{s=await e(t,o),s.on("error",i),s.once("timeout",a)}catch(c){i(c)}})()})});var xC=T((Jz,SC)=>{"use strict";var v5=require("net");SC.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]),v5.isIP(e)?"":e}});var CC=T((Xz,Ym)=>{"use strict";var DC=require("http"),Vm=require("https"),w5=wC(),S5=Bm(),x5=Wm(),D5=xC(),A5=Um(),Kc=new S5({maxSize:100}),Jo=new Map,AC=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let i=()=>{t.emit("free",e,r)};e.on("free",i);let n=()=>{t.removeSocket(e,r)};e.on("close",n);let s=()=>{t.removeSocket(e,r),e.off("close",n),e.off("free",i),e.off("agentRemove",s)};e.on("agentRemove",s),t.emit("free",e,r)},C5=async t=>{let e=`${t.host}:${t.port}:${t.ALPNProtocols.sort()}`;if(!Kc.has(e)){if(Jo.has(e))return(await Jo.get(e)).alpnProtocol;let{path:r,agent:i}=t;t.path=t.socketPath;let n=w5(t);Jo.set(e,n);try{let{socket:s,alpnProtocol:o}=await n;if(Kc.set(e,o),t.path=r,o==="h2")s.destroy();else{let{globalAgent:a}=Vm,u=Vm.Agent.prototype.createConnection;i?i.createConnection===u?AC(i,s,t):s.destroy():a.createConnection===u?AC(a,s,t):s.destroy()}return Jo.delete(e),o}catch(s){throw Jo.delete(e),s}}return Kc.get(e)};Ym.exports=async(t,e,r)=>{if((typeof t=="string"||t instanceof URL)&&(t=A5(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 i=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||D5(e),e.port=e.port||(i?443:80),e._defaultAgent=i?Vm.globalAgent:DC.globalAgent;let n=e.agent;if(n){if(n.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");e.agent=n[i?"https":"http"]}return i&&await C5(e)==="h2"?(n&&(e.agent=n.http2),new x5(e,r)):DC.request(e,r)};Ym.exports.protocolCache=Kc});var TC=T((Qz,RC)=>{"use strict";var R5=require("http2"),T5=Mm(),Km=Wm(),k5=qm(),O5=CC(),F5=(t,e,r)=>new Km(t,e,r),P5=(t,e,r)=>{let i=new Km(t,e,r);return i.end(),i};RC.exports={...R5,ClientRequest:Km,IncomingMessage:k5,...T5,request:F5,get:P5,auto:O5}});var Jm=T(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});var kC=Yr();Zm.default=t=>kC.default.nodeStream(t)&&kC.default.function_(t.getBoundary)});var IC=T(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});var FC=require("fs"),PC=require("util"),OC=Yr(),I5=Jm(),L5=PC.promisify(FC.stat);Xm.default=async(t,e)=>{if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(OC.default.string(t))return Buffer.byteLength(t);if(OC.default.buffer(t))return t.length;if(I5.default(t))return PC.promisify(t.getLength.bind(t))();if(t instanceof FC.ReadStream){let{size:r}=await L5(t.path);return r===0?void 0:r}}});var ey=T(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});function B5(t,e,r){let i={};for(let n of r)i[n]=(...s)=>{e.emit(n,...s)},t.on(n,i[n]);return()=>{for(let n of r)t.off(n,i[n])}}Qm.default=B5});var LC=T(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});ty.default=()=>{let t=[];return{once(e,r,i){e.once(r,i),t.push({origin:e,event:r,fn:i})},unhandleAll(){for(let e of t){let{origin:r,event:i,fn:n}=e;r.removeListener(i,n)}t.length=0}}}});var NC=T(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.TimeoutError=void 0;var N5=require("net"),M5=LC(),BC=Symbol("reentry"),j5=()=>{},Zc=class extends Error{constructor(e,r){super(`Timeout awaiting '${r}' for ${e}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};Xo.TimeoutError=Zc;Xo.default=(t,e,r)=>{if(BC in t)return j5;t[BC]=!0;let i=[],{once:n,unhandleAll:s}=M5.default(),o=(h,f,d)=>{var m;let y=setTimeout(f,h,h,d);(m=y.unref)===null||m===void 0||m.call(y);let p=()=>{clearTimeout(y)};return i.push(p),p},{host:a,hostname:u}=r,c=(h,f)=>{t.destroy(new Zc(h,f))},l=()=>{for(let h of i)h();s()};if(t.once("error",h=>{if(l(),t.listenerCount("error")===0)throw h}),t.once("close",l),n(t,"response",h=>{n(h,"end",l)}),typeof e.request!="undefined"&&o(e.request,c,"request"),typeof e.socket!="undefined"){let h=()=>{c(e.socket,"socket")};t.setTimeout(e.socket,h),i.push(()=>{t.removeListener("timeout",h)})}return n(t,"socket",h=>{var f;let{socketPath:d}=t;if(h.connecting){let m=!!(d!=null?d:N5.isIP((f=u!=null?u:a)!==null&&f!==void 0?f:"")!==0);if(typeof e.lookup!="undefined"&&!m&&typeof h.address().address=="undefined"){let y=o(e.lookup,c,"lookup");n(h,"lookup",y)}if(typeof e.connect!="undefined"){let y=()=>o(e.connect,c,"connect");m?n(h,"connect",y()):n(h,"lookup",p=>{p===null&&n(h,"connect",y())})}typeof e.secureConnect!="undefined"&&r.protocol==="https:"&&n(h,"connect",()=>{let y=o(e.secureConnect,c,"secureConnect");n(h,"secureConnect",y)})}if(typeof e.send!="undefined"){let m=()=>o(e.send,c,"send");h.connecting?n(h,"connect",()=>{n(t,"upload-complete",m())}):n(t,"upload-complete",m())}}),typeof e.response!="undefined"&&n(t,"upload-complete",()=>{let h=o(e.response,c,"response");n(t,"response",h)}),l}});var jC=T(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});var MC=Yr();ry.default=t=>{t=t;let e={protocol:t.protocol,hostname:MC.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 MC.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 qC=T(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});var q5=require("url"),U5=["protocol","host","hostname","port","pathname","search"];iy.default=(t,e)=>{var r,i;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}//${(i=(r=e.hostname)!==null&&r!==void 0?r:e.host)!==null&&i!==void 0?i:""}`}let n=new q5.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 U5)e[s]&&(n[s]=e[s].toString());return n}});var UC=T(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});var ny=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)}};sy.default=ny});var ay=T(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});var H5=async t=>{let e=[],r=0;for await(let i of t)e.push(i),r+=Buffer.byteLength(i);return Buffer.isBuffer(e[0])?Buffer.concat(e,r):Buffer.from(e.join(""))};oy.default=H5});var $C=T(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.dnsLookupIpVersionToFamily=hn.isDnsLookupIpVersion=void 0;var HC={auto:0,ipv4:4,ipv6:6};hn.isDnsLookupIpVersion=t=>t in HC;hn.dnsLookupIpVersionToFamily=t=>{if(hn.isDnsLookupIpVersion(t))return HC[t];throw new Error("Invalid DNS lookup IP version")}});var uy=T(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.isResponseOk=void 0;Jc.isResponseOk=t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304}});var GC=T(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});var zC=new Set;cy.default=t=>{zC.has(t)||(zC.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}});var WC=T(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});var Pe=Yr(),$5=(t,e)=>{if(Pe.default.null_(t.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");Pe.assert.any([Pe.default.string,Pe.default.undefined],t.encoding),Pe.assert.any([Pe.default.boolean,Pe.default.undefined],t.resolveBodyOnly),Pe.assert.any([Pe.default.boolean,Pe.default.undefined],t.methodRewriting),Pe.assert.any([Pe.default.boolean,Pe.default.undefined],t.isStream),Pe.assert.any([Pe.default.string,Pe.default.undefined],t.responseType),t.responseType===void 0&&(t.responseType="text");let{retry:r}=t;if(e?t.retry={...e.retry}:t.retry={calculateDelay:i=>i.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},Pe.default.object(r)?(t.retry={...t.retry,...r},t.retry.methods=[...new Set(t.retry.methods.map(i=>i.toUpperCase()))],t.retry.statusCodes=[...new Set(t.retry.statusCodes)],t.retry.errorCodes=[...new Set(t.retry.errorCodes)]):Pe.default.number(r)&&(t.retry.limit=r),Pe.default.undefined(t.retry.maxRetryAfter)&&(t.retry.maxRetryAfter=Math.min(...[t.timeout.request,t.timeout.connect].filter(Pe.default.number))),Pe.default.object(t.pagination)){e&&(t.pagination={...e.pagination,...t.pagination});let{pagination:i}=t;if(!Pe.default.function_(i.transform))throw new Error("`options.pagination.transform` must be implemented");if(!Pe.default.function_(i.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!Pe.default.function_(i.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!Pe.default.function_(i.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};ly.default=$5});var VC=T(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.retryAfterStatusCodes=void 0;Qo.retryAfterStatusCodes=new Set([413,429,503]);var z5=({attemptCount:t,retryOptions:e,error:r,retryAfter:i})=>{if(t>e.limit)return 0;let n=e.methods.includes(r.options.method),s=e.errorCodes.includes(r.code),o=r.response&&e.statusCodes.includes(r.response.statusCode);if(!n||!s&&!o)return 0;if(r.response){if(i)return e.maxRetryAfter===void 0||i>e.maxRetryAfter?0:i;if(r.response.statusCode===413)return 0}let a=Math.random()*100;return 2**(t-1)*1e3+a};Qo.default=z5});var ra=T(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.UnsupportedProtocolError=Ce.ReadError=Ce.TimeoutError=Ce.UploadError=Ce.CacheError=Ce.HTTPError=Ce.MaxRedirectsError=Ce.RequestError=Ce.setNonEnumerableProperties=Ce.knownHookEvents=Ce.withoutBody=Ce.kIsNormalizedAlready=void 0;var YC=require("util"),KC=require("stream"),G5=require("fs"),Ci=require("url"),ZC=require("http"),hy=require("http"),W5=require("https"),V5=cA(),Y5=yA(),JC=ZA(),K5=eC(),Z5=TC(),J5=Wc(),Y=Yr(),X5=IC(),XC=Jm(),Q5=ey(),QC=NC(),eq=jC(),e1=qC(),tq=UC(),rq=ay(),t1=$C(),iq=uy(),Ri=GC(),nq=WC(),sq=VC(),fy,Xe=Symbol("request"),el=Symbol("response"),Ps=Symbol("responseSize"),Is=Symbol("downloadedSize"),Ls=Symbol("bodySize"),Bs=Symbol("uploadedSize"),Xc=Symbol("serverResponsesPiped"),r1=Symbol("unproxyEvents"),i1=Symbol("isFromCache"),dy=Symbol("cancelTimeouts"),n1=Symbol("startedReading"),Ns=Symbol("stopReading"),Qc=Symbol("triggerRead"),Ti=Symbol("body"),ea=Symbol("jobs"),s1=Symbol("originalResponse"),o1=Symbol("retryTimeout");Ce.kIsNormalizedAlready=Symbol("isNormalizedAlready");var oq=Y.default.string(process.versions.brotli);Ce.withoutBody=new Set(["GET","HEAD"]);Ce.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function aq(t){for(let e in t){let r=t[e];if(!Y.default.string(r)&&!Y.default.number(r)&&!Y.default.boolean(r)&&!Y.default.null_(r)&&!Y.default.undefined(r))throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}function uq(t){return Y.default.object(t)&&!("statusCode"in t)}var py=new tq.default,cq=async t=>new Promise((e,r)=>{let i=n=>{r(n)};t.pending||e(),t.once("error",i),t.once("ready",()=>{t.off("error",i),e()})}),lq=new Set([300,301,302,303,304,307,308]),hq=["context","body","json","form"];Ce.setNonEnumerableProperties=(t,e)=>{let r={};for(let i of t)if(i)for(let n of hq)n in i&&(r[n]={writable:!0,configurable:!0,enumerable:!1,value:i[n]});Object.defineProperties(e,r)};var je=class extends Error{constructor(e,r,i){var n,s;if(super(e),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(n=r.code)!==null&&n!==void 0?n:"ERR_GOT_REQUEST_ERROR",i instanceof al?(Object.defineProperty(this,"request",{enumerable:!1,value:i}),Object.defineProperty(this,"response",{enumerable:!1,value:i[el]}),Object.defineProperty(this,"options",{enumerable:!1,value:i.options})):Object.defineProperty(this,"options",{enumerable:!1,value:i}),this.timings=(s=this.request)===null||s===void 0?void 0:s.timings,Y.default.string(r.stack)&&Y.default.string(this.stack)){let o=this.stack.indexOf(this.message)+this.message.length,a=this.stack.slice(o).split(`
|
12
|
+
`);return p?(i.originalMessage=i.message,i.message=C):i=new Error(C),i.shortMessage=v,i.command=o,i.escapedCommand=a,i.exitCode=s,i.signal=n,i.signalDescription=f,i.stdout=t,i.stderr=e,r!==void 0&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!u,i.isCanceled=c,i.killed=l&&!u,i};kw.exports=eN});var Pw=T((h7,wd)=>{"use strict";var Cu=["stdin","stdout","stderr"],tN=t=>Cu.some(e=>t[e]!==void 0),Fw=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return Cu.map(i=>t[i]);if(tN(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Cu.map(i=>`\`${i}\``).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,Cu.length);return Array.from({length:r},(i,n)=>e[n])};wd.exports=Fw;wd.exports.node=t=>{let e=Fw(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var Lw=T((f7,Iw)=>{"use strict";var rN=require("os"),iN=Qf(),nN=1e3*5,sN=(t,e="SIGTERM",r={})=>{let i=t(e);return oN(t,e,r,i),i},oN=(t,e,r,i)=>{if(!aN(e,r,i))return;let n=cN(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},aN=(t,{forceKillAfterTimeout:e},r)=>uN(t)&&e!==!1&&r,uN=t=>t===rN.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",cN=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return nN;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},lN=(t,e)=>{t.kill()&&(e.isCanceled=!0)},hN=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},fN=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((a,u)=>{n=setTimeout(()=>{hN(t,r,u)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},dN=({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})`)},pN=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=iN(()=>{t.kill()});return i.finally(()=>{n()})};Iw.exports={spawnedKill:sN,spawnedCancel:lN,setupTimeout:fN,validateTimeout:dN,setExitHandler:pN}});var Nw=T((d7,Bw)=>{"use strict";var hr=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";hr.writable=t=>hr(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";hr.readable=t=>hr(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";hr.duplex=t=>hr.writable(t)&&hr.readable(t);hr.transform=t=>hr.duplex(t)&&typeof t._transform=="function";Bw.exports=hr});var jw=T((p7,Mw)=>{"use strict";var{PassThrough:mN}=require("stream");Mw.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,i=r==="buffer",n=!1;e?n=!(r||i):r=r||"utf8",i&&(r=null);let s=new mN({objectMode:n});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),n?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var qw=T((m7,So)=>{"use strict";var{constants:yN}=require("buffer"),gN=require("stream"),{promisify:_N}=require("util"),bN=jw(),EN=_N(gN.pipeline),Ru=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Sd(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=bN(e);return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=yN.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};(async()=>{try{await EN(t,i),n()}catch(a){o(a)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new Ru)})}),i.getBufferedValue()}So.exports=Sd;So.exports.buffer=(t,e)=>Sd(t,{...e,encoding:"buffer"});So.exports.array=(t,e)=>Sd(t,{...e,array:!0});So.exports.MaxBufferError=Ru});var Hw=T((y7,Uw)=>{"use strict";var{PassThrough:vN}=require("stream");Uw.exports=function(){var t=[],e=new vN({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=i,e.on("unpipe",n),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",n.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function i(){return t.length==0}function n(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var Ww=T((g7,Gw)=>{"use strict";var zw=Nw(),$w=qw(),wN=Hw(),SN=(t,e)=>{e===void 0||t.stdin===void 0||(zw(e)?e.pipe(t.stdin):t.stdin.end(e))},xN=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=wN();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},xd=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},Dd=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?$w(t,{encoding:e,maxBuffer:i}):$w.buffer(t,{maxBuffer:i})},DN=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let a=Dd(t,{encoding:i,buffer:n,maxBuffer:s}),u=Dd(e,{encoding:i,buffer:n,maxBuffer:s}),c=Dd(r,{encoding:i,buffer:n,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},xd(t,a),xd(e,u),xd(r,c)])}},AN=({input:t})=>{if(zw(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};Gw.exports={handleInput:SN,makeAllStream:xN,getSpawnedResult:DN,validateInputSync:AN}});var Yw=T((_7,Vw)=>{"use strict";var CN=(async()=>{})().constructor.prototype,RN=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(CN,t)]),TN=(t,e)=>{for(let[r,i]of RN){let n=typeof e=="function"?(...s)=>Reflect.apply(i.value,e(),s):i.value.bind(e);Reflect.defineProperty(t,r,{...i,value:n})}return t},kN=t=>new Promise((e,r)=>{t.on("exit",(i,n)=>{e({exitCode:i,signal:n})}),t.on("error",i=>{r(i)}),t.stdin&&t.stdin.on("error",i=>{r(i)})});Vw.exports={mergePromise:TN,getSpawnedPromise:kN}});var Jw=T((b7,Zw)=>{"use strict";var Kw=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],ON=/^[\w.-]+$/,FN=/"/g,PN=t=>typeof t!="string"||ON.test(t)?t:`"${t.replace(FN,'\\"')}"`,IN=(t,e)=>Kw(t,e).join(" "),LN=(t,e)=>Kw(t,e).map(r=>PN(r)).join(" "),BN=/ +/g,NN=t=>{let e=[];for(let r of t.trim().split(BN)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};Zw.exports={joinCommand:IN,getEscapedCommand:LN,parseCommand:NN}});var rs=T((E7,ts)=>{"use strict";var MN=require("path"),Ad=require("child_process"),jN=_w(),qN=Ew(),UN=Sw(),HN=Zf(),Tu=Ow(),Qw=Pw(),{spawnedKill:$N,spawnedCancel:zN,setupTimeout:GN,validateTimeout:WN,setExitHandler:VN}=Lw(),{handleInput:YN,getSpawnedResult:KN,makeAllStream:ZN,validateInputSync:JN}=Ww(),{mergePromise:Xw,getSpawnedPromise:XN}=Yw(),{joinCommand:eS,parseCommand:tS,getEscapedCommand:rS}=Jw(),QN=1e3*1e3*100,eM=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?UN.env({env:s,cwd:i,execPath:n}):s},iS=(t,e,r={})=>{let i=jN._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:QN,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=eM(r),r.stdio=Qw(r),process.platform==="win32"&&MN.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},xo=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?qN(e):e,ku=(t,e,r)=>{let i=iS(t,e,r),n=eS(t,e),s=rS(t,e);WN(i.options);let o;try{o=Ad.spawn(i.file,i.args,i.options)}catch(d){let m=new Ad.ChildProcess,y=Promise.reject(Tu({error:d,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return Xw(m,y)}let a=XN(o),u=GN(o,i.options,a),c=VN(o,i.options,u),l={isCanceled:!1};o.kill=$N.bind(null,o.kill.bind(o)),o.cancel=zN.bind(null,o,l);let f=HN(async()=>{let[{error:d,exitCode:m,signal:y,timedOut:p},v,C,k]=await KN(o,i.options,c),P=xo(i.options,v),F=xo(i.options,C),M=xo(i.options,k);if(d||m!==0||y!==null){let S=Tu({error:d,exitCode:m,signal:y,stdout:P,stderr:F,all:M,command:n,escapedCommand:s,parsed:i,timedOut:p,isCanceled:l.isCanceled,killed:o.killed});if(!i.options.reject)return S;throw S}return{command:n,escapedCommand:s,exitCode:0,stdout:P,stderr:F,all:M,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return YN(o,i.options.input),o.all=ZN(o,i.options),Xw(o,f)};ts.exports=ku;ts.exports.sync=(t,e,r)=>{let i=iS(t,e,r),n=eS(t,e),s=rS(t,e);JN(i.options);let o;try{o=Ad.spawnSync(i.file,i.args,i.options)}catch(c){throw Tu({error:c,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let a=xo(i.options,o.stdout,o.error),u=xo(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=Tu({stdout:a,stderr:u,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!i.options.reject)return c;throw c}return{command:n,escapedCommand:s,exitCode:0,stdout:a,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};ts.exports.command=(t,e)=>{let[r,...i]=tS(t);return ku(r,i,e)};ts.exports.commandSync=(t,e)=>{let[r,...i]=tS(t);return ku.sync(r,i,e)};ts.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=Qw.node(r),n=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return ku(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var is=T((D7,uS)=>{"use strict";var aS=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"]]);uS.exports=t=>t?Object.keys(t).map(e=>[aS.has(e)?aS.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var Mu=T((A7,gS)=>{"use strict";var cS=typeof process=="object"&&process?process:{stdout:null,stderr:null},rM=require("events"),lS=require("stream"),hS=require("string_decoder").StringDecoder,Ir=Symbol("EOF"),Lr=Symbol("maybeEmitEnd"),pi=Symbol("emittedEnd"),Pu=Symbol("emittingEnd"),Co=Symbol("emittedError"),Iu=Symbol("closed"),fS=Symbol("read"),Lu=Symbol("flush"),dS=Symbol("flushChunk"),yt=Symbol("encoding"),Br=Symbol("decoder"),Bu=Symbol("flowing"),Ro=Symbol("paused"),ns=Symbol("resume"),Me=Symbol("buffer"),fr=Symbol("pipes"),Ye=Symbol("bufferLength"),kd=Symbol("bufferPush"),Od=Symbol("bufferShift"),nt=Symbol("objectMode"),st=Symbol("destroyed"),Fd=Symbol("emitData"),pS=Symbol("emitEnd"),Pd=Symbol("emitEnd2"),Nr=Symbol("async"),To=t=>Promise.resolve().then(t),mS=global._MP_NO_ITERATOR_SYMBOLS_!=="1",iM=mS&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),nM=mS&&Symbol.iterator||Symbol("iterator not implemented"),sM=t=>t==="end"||t==="finish"||t==="prefinish",oM=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,aM=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Nu=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[ns](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Id=class extends Nu{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};gS.exports=class yS extends lS{constructor(e){super(),this[Bu]=!1,this[Ro]=!1,this[fr]=[],this[Me]=[],this[nt]=e&&e.objectMode||!1,this[nt]?this[yt]=null:this[yt]=e&&e.encoding||null,this[yt]==="buffer"&&(this[yt]=null),this[Nr]=e&&!!e.async||!1,this[Br]=this[yt]?new hS(this[yt]):null,this[Ir]=!1,this[pi]=!1,this[Pu]=!1,this[Iu]=!1,this[Co]=null,this.writable=!0,this.readable=!0,this[Ye]=0,this[st]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Me]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[fr]})}get bufferLength(){return this[Ye]}get encoding(){return this[yt]}set encoding(e){if(this[nt])throw new Error("cannot set encoding in objectMode");if(this[yt]&&e!==this[yt]&&(this[Br]&&this[Br].lastNeed||this[Ye]))throw new Error("cannot change encoding");this[yt]!==e&&(this[Br]=e?new hS(e):null,this[Me].length&&(this[Me]=this[Me].map(r=>this[Br].write(r)))),this[yt]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[nt]}set objectMode(e){this[nt]=this[nt]||!!e}get async(){return this[Nr]}set async(e){this[Nr]=this[Nr]||!!e}write(e,r,i){if(this[Ir])throw new Error("write after end");if(this[st])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[Nr]?To:s=>s();return!this[nt]&&!Buffer.isBuffer(e)&&(aM(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):oM(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[nt]?(this.flowing&&this[Ye]!==0&&this[Lu](!0),this.flowing?this.emit("data",e):this[kd](e),this[Ye]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[yt]&&!this[Br].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[yt]&&(e=this[Br].write(e)),this.flowing&&this[Ye]!==0&&this[Lu](!0),this.flowing?this.emit("data",e):this[kd](e),this[Ye]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Ye]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[st])return null;if(this[Ye]===0||e===0||e>this[Ye])return this[Lr](),null;this[nt]&&(e=null),this[Me].length>1&&!this[nt]&&(this.encoding?this[Me]=[this[Me].join("")]:this[Me]=[Buffer.concat(this[Me],this[Ye])]);let r=this[fS](e||null,this[Me][0]);return this[Lr](),r}[fS](e,r){return e===r.length||e===null?this[Od]():(this[Me][0]=r.slice(e),r=r.slice(0,e),this[Ye]-=e),this.emit("data",r),!this[Me].length&&!this[Ir]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[Ir]=!0,this.writable=!1,(this.flowing||!this[Ro])&&this[Lr](),this}[ns](){this[st]||(this[Ro]=!1,this[Bu]=!0,this.emit("resume"),this[Me].length?this[Lu]():this[Ir]?this[Lr]():this.emit("drain"))}resume(){return this[ns]()}pause(){this[Bu]=!1,this[Ro]=!0}get destroyed(){return this[st]}get flowing(){return this[Bu]}get paused(){return this[Ro]}[kd](e){this[nt]?this[Ye]+=1:this[Ye]+=e.length,this[Me].push(e)}[Od](){return this[Me].length&&(this[nt]?this[Ye]-=1:this[Ye]-=this[Me][0].length),this[Me].shift()}[Lu](e){do;while(this[dS](this[Od]()));!e&&!this[Me].length&&!this[Ir]&&this.emit("drain")}[dS](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[st])return;let i=this[pi];return r=r||{},e===cS.stdout||e===cS.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[fr].push(r.proxyErrors?new Id(this,e,r):new Nu(this,e,r)),this[Nr]?To(()=>this[ns]()):this[ns]()),e}unpipe(e){let r=this[fr].find(i=>i.dest===e);r&&(this[fr].splice(this[fr].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);return e==="data"&&!this[fr].length&&!this.flowing?this[ns]():e==="readable"&&this[Ye]!==0?super.emit("readable"):sM(e)&&this[pi]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Co]&&(this[Nr]?To(()=>r.call(this,this[Co])):r.call(this,this[Co])),i}get emittedEnd(){return this[pi]}[Lr](){!this[Pu]&&!this[pi]&&!this[st]&&this[Me].length===0&&this[Ir]&&(this[Pu]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Iu]&&this.emit("close"),this[Pu]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==st&&this[st])return;if(e==="data")return r?this[Nr]?To(()=>this[Fd](r)):this[Fd](r):!1;if(e==="end")return this[pS]();if(e==="close"){if(this[Iu]=!0,!this[pi]&&!this[st])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Co]=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 n=super.emit(e,r,...i);return this[Lr](),n}[Fd](e){for(let i of this[fr])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Lr](),r}[pS](){this[pi]||(this[pi]=!0,this.readable=!1,this[Nr]?To(()=>this[Pd]()):this[Pd]())}[Pd](){if(this[Br]){let r=this[Br].end();if(r){for(let i of this[fr])i.dest.write(r);super.emit("data",r)}}for(let r of this[fr])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[nt]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[nt]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[nt]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[nt]?Promise.reject(new Error("cannot concat in objectMode")):this[yt]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(st,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[iM](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Ir])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[Ir]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{n=l,i=c,this.once(st,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[nM](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[st]?(e?this.emit("error",e):this.emit(st),this):(this[st]=!0,this[Me].length=0,this[Ye]=0,typeof this.close=="function"&&!this[Iu]&&this.close(),e?this.emit("error",e):this.emit(st),this)}static isStream(e){return!!e&&(e instanceof yS||e instanceof lS||e instanceof rM&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var bS=T((C7,_S)=>{var uM=require("zlib").constants||{ZLIB_VERNUM:4736};_S.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},uM))});var qd=T((R7,RS)=>{"use strict";var ES=typeof process=="object"&&process?process:{stdout:null,stderr:null},cM=require("events"),vS=require("stream"),wS=require("string_decoder").StringDecoder,Mr=Symbol("EOF"),jr=Symbol("maybeEmitEnd"),mi=Symbol("emittedEnd"),ju=Symbol("emittingEnd"),ko=Symbol("emittedError"),qu=Symbol("closed"),SS=Symbol("read"),Uu=Symbol("flush"),xS=Symbol("flushChunk"),gt=Symbol("encoding"),qr=Symbol("decoder"),Hu=Symbol("flowing"),Oo=Symbol("paused"),ss=Symbol("resume"),Ke=Symbol("bufferLength"),Ld=Symbol("bufferPush"),Bd=Symbol("bufferShift"),ot=Symbol("objectMode"),at=Symbol("destroyed"),Nd=Symbol("emitData"),DS=Symbol("emitEnd"),Md=Symbol("emitEnd2"),Ur=Symbol("async"),Fo=t=>Promise.resolve().then(t),AS=global._MP_NO_ITERATOR_SYMBOLS_!=="1",lM=AS&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),hM=AS&&Symbol.iterator||Symbol("iterator not implemented"),fM=t=>t==="end"||t==="finish"||t==="prefinish",dM=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,pM=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),$u=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[ss](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},jd=class extends $u{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};RS.exports=class CS extends vS{constructor(e){super(),this[Hu]=!1,this[Oo]=!1,this.pipes=[],this.buffer=[],this[ot]=e&&e.objectMode||!1,this[ot]?this[gt]=null:this[gt]=e&&e.encoding||null,this[gt]==="buffer"&&(this[gt]=null),this[Ur]=e&&!!e.async||!1,this[qr]=this[gt]?new wS(this[gt]):null,this[Mr]=!1,this[mi]=!1,this[ju]=!1,this[qu]=!1,this[ko]=null,this.writable=!0,this.readable=!0,this[Ke]=0,this[at]=!1}get bufferLength(){return this[Ke]}get encoding(){return this[gt]}set encoding(e){if(this[ot])throw new Error("cannot set encoding in objectMode");if(this[gt]&&e!==this[gt]&&(this[qr]&&this[qr].lastNeed||this[Ke]))throw new Error("cannot change encoding");this[gt]!==e&&(this[qr]=e?new wS(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[qr].write(r)))),this[gt]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ot]}set objectMode(e){this[ot]=this[ot]||!!e}get async(){return this[Ur]}set async(e){this[Ur]=this[Ur]||!!e}write(e,r,i){if(this[Mr])throw new Error("write after end");if(this[at])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[Ur]?Fo:s=>s();return!this[ot]&&!Buffer.isBuffer(e)&&(pM(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):dM(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ot]?(this.flowing&&this[Ke]!==0&&this[Uu](!0),this.flowing?this.emit("data",e):this[Ld](e),this[Ke]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[gt]&&!this[qr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[gt]&&(e=this[qr].write(e)),this.flowing&&this[Ke]!==0&&this[Uu](!0),this.flowing?this.emit("data",e):this[Ld](e),this[Ke]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Ke]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[at])return null;if(this[Ke]===0||e===0||e>this[Ke])return this[jr](),null;this[ot]&&(e=null),this.buffer.length>1&&!this[ot]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Ke])]);let r=this[SS](e||null,this.buffer[0]);return this[jr](),r}[SS](e,r){return e===r.length||e===null?this[Bd]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Ke]-=e),this.emit("data",r),!this.buffer.length&&!this[Mr]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=null),typeof r=="function"&&(i=r,r="utf8"),e&&this.write(e,r),i&&this.once("end",i),this[Mr]=!0,this.writable=!1,(this.flowing||!this[Oo])&&this[jr](),this}[ss](){this[at]||(this[Oo]=!1,this[Hu]=!0,this.emit("resume"),this.buffer.length?this[Uu]():this[Mr]?this[jr]():this.emit("drain"))}resume(){return this[ss]()}pause(){this[Hu]=!1,this[Oo]=!0}get destroyed(){return this[at]}get flowing(){return this[Hu]}get paused(){return this[Oo]}[Ld](e){this[ot]?this[Ke]+=1:this[Ke]+=e.length,this.buffer.push(e)}[Bd](){return this.buffer.length&&(this[ot]?this[Ke]-=1:this[Ke]-=this.buffer[0].length),this.buffer.shift()}[Uu](e){do;while(this[xS](this[Bd]()));!e&&!this.buffer.length&&!this[Mr]&&this.emit("drain")}[xS](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[at])return;let i=this[mi];return r=r||{},e===ES.stdout||e===ES.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new jd(this,e,r):new $u(this,e,r)),this[Ur]?Fo(()=>this[ss]()):this[ss]()),e}unpipe(e){let r=this.pipes.find(i=>i.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 i=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[ss]():e==="readable"&&this[Ke]!==0?super.emit("readable"):fM(e)&&this[mi]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[ko]&&(this[Ur]?Fo(()=>r.call(this,this[ko])):r.call(this,this[ko])),i}get emittedEnd(){return this[mi]}[jr](){!this[ju]&&!this[mi]&&!this[at]&&this.buffer.length===0&&this[Mr]&&(this[ju]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[qu]&&this.emit("close"),this[ju]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==at&&this[at])return;if(e==="data")return r?this[Ur]?Fo(()=>this[Nd](r)):this[Nd](r):!1;if(e==="end")return this[DS]();if(e==="close"){if(this[qu]=!0,!this[mi]&&!this[at])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[ko]=r;let s=super.emit("error",r);return this[jr](),s}else if(e==="resume"){let s=super.emit("resume");return this[jr](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,r,...i);return this[jr](),n}[Nd](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[jr](),r}[DS](){this[mi]||(this[mi]=!0,this.readable=!1,this[Ur]?Fo(()=>this[Md]()):this[Md]())}[Md](){if(this[qr]){let r=this[qr].end();if(r){for(let i of this.pipes)i.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[ot]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[ot]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[ot]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ot]?Promise.reject(new Error("cannot concat in objectMode")):this[gt]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(at,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[lM](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Mr])return Promise.resolve({done:!0});let i=null,n=null,s=c=>{this.removeListener("data",o),this.removeListener("end",a),n(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),i({value:c,done:!!this[Mr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},u=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{n=l,i=c,this.once(at,u),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[hM](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[at]?(e?this.emit("error",e):this.emit(at),this):(this[at]=!0,this.buffer.length=0,this[Ke]=0,typeof this.close=="function"&&!this[qu]&&this.close(),e?this.emit("error",e):this.emit(at),this)}static isStream(e){return!!e&&(e instanceof CS||e instanceof vS||e instanceof cM&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var rp=T(xt=>{"use strict";var Gd=require("assert"),yi=require("buffer").Buffer,OS=require("zlib"),Ji=xt.constants=bS(),mM=qd(),TS=yi.concat,Xi=Symbol("_superWrite"),as=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"}},yM=Symbol("opts"),Po=Symbol("flushFlag"),kS=Symbol("finishFlushFlag"),tp=Symbol("fullFlushFlag"),Oe=Symbol("handle"),zu=Symbol("onError"),os=Symbol("sawError"),Ud=Symbol("level"),Hd=Symbol("strategy"),$d=Symbol("ended"),T7=Symbol("_defaultFullFlush"),Gu=class extends mM{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[os]=!1,this[$d]=!1,this[yM]=e,this[Po]=e.flush,this[kS]=e.finishFlush;try{this[Oe]=new OS[r](e)}catch(i){throw new as(i)}this[zu]=i=>{this[os]||(this[os]=!0,this.close(),this.emit("error",i))},this[Oe].on("error",i=>this[zu](new as(i))),this.once("end",()=>this.close)}close(){this[Oe]&&(this[Oe].close(),this[Oe]=null,this.emit("close"))}reset(){if(!this[os])return Gd(this[Oe],"zlib binding closed"),this[Oe].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[tp]),this.write(Object.assign(yi.alloc(0),{[Po]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[kS]),this[$d]=!0,super.end(null,null,i)}get ended(){return this[$d]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=yi.from(e,r)),this[os])return;Gd(this[Oe],"zlib binding closed");let n=this[Oe]._handle,s=n.close;n.close=()=>{};let o=this[Oe].close;this[Oe].close=()=>{},yi.concat=c=>c;let a;try{let c=typeof e[Po]=="number"?e[Po]:this[Po];a=this[Oe]._processChunk(e,c),yi.concat=TS}catch(c){yi.concat=TS,this[zu](new as(c))}finally{this[Oe]&&(this[Oe]._handle=n,n.close=s,this[Oe].close=o,this[Oe].removeAllListeners("error"))}this[Oe]&&this[Oe].on("error",c=>this[zu](new as(c)));let u;if(a)if(Array.isArray(a)&&a.length>0){u=this[Xi](yi.from(a[0]));for(let c=1;c<a.length;c++)u=this[Xi](a[c])}else u=this[Xi](yi.from(a));return i&&i(),u}[Xi](e){return super.write(e)}},Hr=class extends Gu{constructor(e,r){e=e||{},e.flush=e.flush||Ji.Z_NO_FLUSH,e.finishFlush=e.finishFlush||Ji.Z_FINISH,super(e,r),this[tp]=Ji.Z_FULL_FLUSH,this[Ud]=e.level,this[Hd]=e.strategy}params(e,r){if(!this[os]){if(!this[Oe])throw new Error("cannot switch params when binding is closed");if(!this[Oe].params)throw new Error("not supported in this implementation");if(this[Ud]!==e||this[Hd]!==r){this.flush(Ji.Z_SYNC_FLUSH),Gd(this[Oe],"zlib binding closed");let i=this[Oe].flush;this[Oe].flush=(n,s)=>{this.flush(n),s()};try{this[Oe].params(e,r)}finally{this[Oe].flush=i}this[Oe]&&(this[Ud]=e,this[Hd]=r)}}}},Wd=class extends Hr{constructor(e){super(e,"Deflate")}},Vd=class extends Hr{constructor(e){super(e,"Inflate")}},zd=Symbol("_portable"),Yd=class extends Hr{constructor(e){super(e,"Gzip"),this[zd]=e&&!!e.portable}[Xi](e){return this[zd]?(this[zd]=!1,e[9]=255,super[Xi](e)):super[Xi](e)}},Kd=class extends Hr{constructor(e){super(e,"Gunzip")}},Zd=class extends Hr{constructor(e){super(e,"DeflateRaw")}},Jd=class extends Hr{constructor(e){super(e,"InflateRaw")}},Xd=class extends Hr{constructor(e){super(e,"Unzip")}},Wu=class extends Gu{constructor(e,r){e=e||{},e.flush=e.flush||Ji.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||Ji.BROTLI_OPERATION_FINISH,super(e,r),this[tp]=Ji.BROTLI_OPERATION_FLUSH}},Qd=class extends Wu{constructor(e){super(e,"BrotliCompress")}},ep=class extends Wu{constructor(e){super(e,"BrotliDecompress")}};xt.Deflate=Wd;xt.Inflate=Vd;xt.Gzip=Yd;xt.Gunzip=Kd;xt.DeflateRaw=Zd;xt.InflateRaw=Jd;xt.Unzip=Xd;typeof OS.BrotliCompress=="function"?(xt.BrotliCompress=Qd,xt.BrotliDecompress=ep):xt.BrotliCompress=xt.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var us=T((F7,FS)=>{var gM=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;FS.exports=gM!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var Vu=T((I7,PS)=>{"use strict";var _M=Mu(),ip=us(),np=Symbol("slurp");PS.exports=class extends _M{constructor(e,r,i){switch(super(),this.pause(),this.extended=r,this.globalExtended=i,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=ip(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=ip(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[np](r),i&&this[np](i,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let i=this.remain,n=this.blockRemain;return this.remain=Math.max(0,i-r),this.blockRemain=Math.max(0,n-r),this.ignore?!0:i>=r?super.write(e):super.write(e.slice(0,i))}[np](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?ip(e[i]):e[i])}}});var sp=T(Yu=>{"use strict";Yu.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"]]);Yu.code=new Map(Array.from(Yu.name).map(t=>[t[1],t[0]]))});var NS=T((B7,BS)=>{"use strict";var bM=(t,e)=>{if(Number.isSafeInteger(t))t<0?vM(t,e):EM(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},EM=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},vM=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var i=e.length;i>1;i--){var n=t&255;t=Math.floor(t/256),r?e[i-1]=IS(n):n===0?e[i-1]=0:(r=!0,e[i-1]=LS(n))}},wM=t=>{let e=t[0],r=e===128?xM(t.slice(1,t.length)):e===255?SM(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},SM=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=IS(s):s===0?o=s:(i=!0,o=LS(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},xM=t=>{for(var e=t.length,r=0,i=e-1;i>-1;i--){var n=t[i];n!==0&&(r+=n*Math.pow(256,e-i-1))}return r},IS=t=>(255^t)&255,LS=t=>(255^t)+1&255;BS.exports={encode:bM,parse:wM}});var ls=T((N7,jS)=>{"use strict";var op=sp(),cs=require("path").posix,MS=NS(),ap=Symbol("slurp"),Dt=Symbol("type"),lp=class{constructor(e,r,i,n){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[Dt]="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,i,n):e&&this.set(e)}decode(e,r,i,n){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=Qi(e,r,100),this.mode=gi(e,r+100,8),this.uid=gi(e,r+108,8),this.gid=gi(e,r+116,8),this.size=gi(e,r+124,12),this.mtime=up(e,r+136,12),this.cksum=gi(e,r+148,12),this[ap](i),this[ap](n,!0),this[Dt]=Qi(e,r+156,1),this[Dt]===""&&(this[Dt]="0"),this[Dt]==="0"&&this.path.slice(-1)==="/"&&(this[Dt]="5"),this[Dt]==="5"&&(this.size=0),this.linkpath=Qi(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=Qi(e,r+265,32),this.gname=Qi(e,r+297,32),this.devmaj=gi(e,r+329,8),this.devmin=gi(e,r+337,8),e[r+475]!==0){let o=Qi(e,r+345,155);this.path=o+"/"+this.path}else{let o=Qi(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=up(e,r+476,12),this.ctime=up(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)}[ap](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=e[i])}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 i=this.ctime||this.atime?130:155,n=DM(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=en(e,r,100,s)||this.needPax,this.needPax=_i(e,r+100,8,this.mode)||this.needPax,this.needPax=_i(e,r+108,8,this.uid)||this.needPax,this.needPax=_i(e,r+116,8,this.gid)||this.needPax,this.needPax=_i(e,r+124,12,this.size)||this.needPax,this.needPax=cp(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Dt].charCodeAt(0),this.needPax=en(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=en(e,r+265,32,this.uname)||this.needPax,this.needPax=en(e,r+297,32,this.gname)||this.needPax,this.needPax=_i(e,r+329,8,this.devmaj)||this.needPax,this.needPax=_i(e,r+337,8,this.devmin)||this.needPax,this.needPax=en(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=en(e,r+345,155,o)||this.needPax:(this.needPax=en(e,r+345,130,o)||this.needPax,this.needPax=cp(e,r+476,12,this.atime)||this.needPax,this.needPax=cp(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,_i(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 op.name.get(this[Dt])||this[Dt]}get typeKey(){return this[Dt]}set type(e){op.code.has(e)?this[Dt]=op.code.get(e):this[Dt]=e}},DM=(t,e)=>{let i=t,n="",s,o=cs.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=cs.dirname(i),i=cs.basename(i);do Buffer.byteLength(i)<=100&&Buffer.byteLength(n)<=e?s=[i,n,!1]:Buffer.byteLength(i)>100&&Buffer.byteLength(n)<=e?s=[i.slice(0,100-1),n,!0]:(i=cs.join(cs.basename(n),i),n=cs.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},Qi=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),up=(t,e,r)=>AM(gi(t,e,r)),AM=t=>t===null?null:new Date(t*1e3),gi=(t,e,r)=>t[e]&128?MS.parse(t.slice(e,e+r)):RM(t,e,r),CM=t=>isNaN(t)?null:t,RM=(t,e,r)=>CM(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),TM={12:8589934591,8:2097151},_i=(t,e,r,i)=>i===null?!1:i>TM[r]||i<0?(MS.encode(i,t.slice(e,e+r)),!0):(kM(t,e,r,i),!1),kM=(t,e,r,i)=>t.write(OM(i,r),e,r,"ascii"),OM=(t,e)=>FM(Math.floor(t).toString(8),e),FM=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",cp=(t,e,r,i)=>i===null?!1:_i(t,e,r,i.getTime()/1e3),PM=new Array(156).join("\0"),en=(t,e,r,i)=>i===null?!1:(t.write(i+PM,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);jS.exports=lp});var Ku=T((M7,qS)=>{"use strict";var IM=ls(),LM=require("path"),Io=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),i=512*Math.ceil(1+r/512),n=Buffer.allocUnsafe(i);for(let s=0;s<512;s++)n[s]=0;new IM({path:("PaxHeader/"+LM.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(n),n.write(e,512,r,"utf8");for(let s=r+512;s<n.length;s++)n[s]=0;return n}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],i=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
|
13
|
+
`,n=Buffer.byteLength(i),s=Math.floor(Math.log(n)/Math.log(10))+1;return n+s>=Math.pow(10,s)&&(s+=1),s+n+i}};Io.parse=(t,e,r)=>new Io(BM(NM(t),e),r);var BM=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,NM=t=>t.replace(/\n$/,"").split(`
|
14
|
+
`).reduce(MM,Object.create(null)),MM=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let i=e.split("="),n=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!n)return t;let s=i.join("=");return t[n]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};qS.exports=Io});var hs=T((j7,US)=>{US.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 Zu=T((q7,HS)=>{"use strict";HS.exports=t=>class extends t{warn(e,r,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=r instanceof Error&&r.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(r instanceof Error&&(i=Object.assign(r,i),r=r.message),this.emit("warn",i.tarCode,r,i)):r instanceof Error?this.emit("error",Object.assign(r,i)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),i))}}});var fp=T((H7,$S)=>{"use strict";var Ju=["|","<",">","?",":"],hp=Ju.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),jM=new Map(Ju.map((t,e)=>[t,hp[e]])),qM=new Map(hp.map((t,e)=>[t,Ju[e]]));$S.exports={encode:t=>Ju.reduce((e,r)=>e.split(r).join(jM.get(r)),t),decode:t=>hp.reduce((e,r)=>e.split(r).join(qM.get(r)),t)}});var dp=T(($7,GS)=>{var{isAbsolute:UM,parse:zS}=require("path").win32;GS.exports=t=>{let e="",r=zS(t);for(;UM(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=zS(t)}return[e,t]}});var VS=T((z7,WS)=>{"use strict";WS.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 Sp=T((V7,ax)=>{"use strict";var ex=Mu(),tx=Ku(),rx=ls(),pr=require("fs"),YS=require("path"),dr=us(),HM=hs(),ix=(t,e)=>e?(t=dr(t).replace(/^\.(\/|$)/,""),HM(e)+"/"+t):dr(t),$M=16*1024*1024,KS=Symbol("process"),ZS=Symbol("file"),JS=Symbol("directory"),mp=Symbol("symlink"),XS=Symbol("hardlink"),Lo=Symbol("header"),Xu=Symbol("read"),yp=Symbol("lstat"),Qu=Symbol("onlstat"),gp=Symbol("onread"),_p=Symbol("onreadlink"),bp=Symbol("openfile"),Ep=Symbol("onopenfile"),bi=Symbol("close"),ec=Symbol("mode"),vp=Symbol("awaitDrain"),pp=Symbol("ondrain"),mr=Symbol("prefix"),QS=Symbol("hadError"),nx=Zu(),zM=fp(),sx=dp(),ox=VS(),tc=nx(class extends ex{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=dr(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||$M,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=dr(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?dr(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 i=!1;if(!this.preservePaths){let[n,s]=sx(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=zM.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=dr(r.absolute||YS.resolve(this.cwd,e)),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[Qu](this.statCache.get(this.absolute)):this[yp]()}emit(e,...r){return e==="error"&&(this[QS]=!0),super.emit(e,...r)}[yp](){pr.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Qu](r)})}[Qu](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=WM(e),this.emit("stat",e),this[KS]()}[KS](){switch(this.type){case"File":return this[ZS]();case"Directory":return this[JS]();case"SymbolicLink":return this[mp]();default:return this.end()}}[ec](e){return ox(e,this.type==="Directory",this.portable)}[mr](e){return ix(e,this.prefix)}[Lo](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new rx({path:this[mr](this.path),linkpath:this.type==="Link"?this[mr](this.linkpath):this.linkpath,mode:this[ec](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 tx({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[mr](this.path),linkpath:this.type==="Link"?this[mr](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)}[JS](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Lo](),this.end()}[mp](){pr.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[_p](r)})}[_p](e){this.linkpath=dr(e),this[Lo](),this.end()}[XS](e){this.type="Link",this.linkpath=dr(YS.relative(this.cwd,e)),this.stat.size=0,this[Lo](),this.end()}[ZS](){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[XS](r)}this.linkCache.set(e,this.absolute)}if(this[Lo](),this.stat.size===0)return this.end();this[bp]()}[bp](){pr.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Ep](r)})}[Ep](e){if(this.fd=e,this[QS])return this[bi]();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[Xu]()}[Xu](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;pr.read(e,r,i,n,s,(o,a)=>{if(o)return this[bi](()=>this.emit("error",o));this[gp](a)})}[bi](e){pr.close(this.fd,e)}[gp](e){if(e<=0&&this.remain>0){let n=new Error("encountered unexpected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[bi](()=>this.emit("error",n))}if(e>this.remain){let n=new Error("did not encounter expected EOF");return n.path=this.absolute,n.syscall="read",n.code="EOF",this[bi](()=>this.emit("error",n))}if(e===this.remain)for(let n=e;n<this.length&&e<this.blockRemain;n++)this.buf[n+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[pp]():this[vp](()=>this[pp]())}[vp](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)}[pp](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[bi](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[Xu]()}}),wp=class extends tc{[yp](){this[Qu](pr.lstatSync(this.absolute))}[mp](){this[_p](pr.readlinkSync(this.absolute))}[bp](){this[Ep](pr.openSync(this.absolute,"r"))}[Xu](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,a=pr.readSync(r,i,n,s,o);this[gp](a),e=!1}finally{if(e)try{this[bi](()=>{})}catch{}}}[vp](e){e()}[bi](e){pr.closeSync(this.fd),e()}},GM=nx(class extends ex{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=dr(e.path),this.mode=this[ec](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=dr(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=sx(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new rx({path:this[mr](this.path),linkpath:this.type==="Link"?this[mr](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}),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.header.encode()&&!this.noPax&&super.write(new tx({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[mr](this.path),linkpath:this.type==="Link"?this[mr](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)}[mr](e){return ix(e,this.prefix)}[ec](e){return ox(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()}});tc.Sync=wp;tc.Tar=GM;var WM=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";ax.exports=tc});var cx=T((Y7,ux)=>{"use strict";ux.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var xp=T((K7,lx)=>{"use strict";lx.exports=De;De.Node=tn;De.create=De;function De(t){var e=this;if(e instanceof De||(e=new De),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(n){e.push(n)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}De.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};De.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++}};De.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++}};De.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)YM(this,arguments[t]);return this.length};De.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)KM(this,arguments[t]);return this.length};De.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}};De.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}};De.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;r!==null;i++)t.call(e,r.value,i,this),r=r.next};De.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;r!==null;i--)t.call(e,r.value,i,this),r=r.prev};De.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};De.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};De.prototype.map=function(t,e){e=e||this;for(var r=new De,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};De.prototype.mapReverse=function(t,e){e=e||this;for(var r=new De,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};De.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;i!==null;n++)r=t(r,i.value,n),i=i.next;return r};De.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;i!==null;n--)r=t(r,i.value,n),i=i.prev;return r};De.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};De.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};De.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 De;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(;n!==null&&i<e;i++,n=n.next)r.push(n.value);return r};De.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 De;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,n=this.tail;n!==null&&i>e;i--)n=n.prev;for(;n!==null&&i>t;i--,n=n.prev)r.push(n.value);return r};De.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,n=this.head;n!==null&&i<t;i++)n=n.next;for(var s=[],i=0;n&&i<e;i++)s.push(n.value),n=this.removeNode(n);n===null&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(var i=0;i<r.length;i++)n=VM(this,n,r[i]);return s};De.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};function VM(t,e,r){var i=e===t.head?new tn(r,null,e,t):new tn(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function YM(t,e){t.tail=new tn(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function KM(t,e){t.head=new tn(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function tn(t,e,r,i){if(!(this instanceof tn))return new tn(t,e,r,i);this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{cx()(De)}catch{}});var lc=T((J7,gx)=>{"use strict";var uc=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}},ZM=Mu(),JM=rp(),XM=Vu(),Pp=Sp(),QM=Pp.Sync,e3=Pp.Tar,t3=xp(),hx=Buffer.alloc(1024),nc=Symbol("onStat"),rc=Symbol("ended"),yr=Symbol("queue"),fs=Symbol("current"),rn=Symbol("process"),ic=Symbol("processing"),fx=Symbol("processJob"),gr=Symbol("jobs"),Dp=Symbol("jobDone"),sc=Symbol("addFSEntry"),dx=Symbol("addTarEntry"),Tp=Symbol("stat"),kp=Symbol("readdir"),oc=Symbol("onreaddir"),ac=Symbol("pipe"),px=Symbol("entry"),Ap=Symbol("entryOpt"),Op=Symbol("writeEntryClass"),yx=Symbol("write"),Cp=Symbol("ondrain"),cc=require("fs"),mx=require("path"),r3=Zu(),Rp=us(),Ip=r3(class extends ZM{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=Rp(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Op]=Pp,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 JM.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Cp]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Cp]),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[yr]=new t3,this[gr]=0,this.jobs=+e.jobs||4,this[ic]=!1,this[rc]=!1}[yx](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[rc]=!0,this[rn](),this}write(e){if(this[rc])throw new Error("write after end");return e instanceof XM?this[dx](e):this[sc](e),this.flowing}[dx](e){let r=Rp(mx.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new uc(e.path,r,!1);i.entry=new e3(e,this[Ap](i)),i.entry.on("end",n=>this[Dp](i)),this[gr]+=1,this[yr].push(i)}this[rn]()}[sc](e){let r=Rp(mx.resolve(this.cwd,e));this[yr].push(new uc(e,r)),this[rn]()}[Tp](e){e.pending=!0,this[gr]+=1;let r=this.follow?"stat":"lstat";cc[r](e.absolute,(i,n)=>{e.pending=!1,this[gr]-=1,i?this.emit("error",i):this[nc](e,n)})}[nc](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[rn]()}[kp](e){e.pending=!0,this[gr]+=1,cc.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[gr]-=1,r)return this.emit("error",r);this[oc](e,i)})}[oc](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[rn]()}[rn](){if(!this[ic]){this[ic]=!0;for(let e=this[yr].head;e!==null&&this[gr]<this.jobs;e=e.next)if(this[fx](e.value),e.value.ignore){let r=e.next;this[yr].removeNode(e),e.next=r}this[ic]=!1,this[rc]&&!this[yr].length&&this[gr]===0&&(this.zip?this.zip.end(hx):(super.write(hx),super.end()))}}get[fs](){return this[yr]&&this[yr].head&&this[yr].head.value}[Dp](e){this[yr].shift(),this[gr]-=1,this[rn]()}[fx](e){if(!e.pending){if(e.entry){e===this[fs]&&!e.piped&&this[ac](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[nc](e,this.statCache.get(e.absolute)):this[Tp](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[oc](e,this.readdirCache.get(e.absolute)):this[kp](e),!e.readdir))){if(e.entry=this[px](e),!e.entry){e.ignore=!0;return}e===this[fs]&&!e.piped&&this[ac](e)}}}[Ap](e){return{onwarn:(r,i,n)=>this.warn(r,i,n),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}}[px](e){this[gr]+=1;try{return new this[Op](e.path,this[Ap](e)).on("end",()=>this[Dp](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Cp](){this[fs]&&this[fs].entry&&this[fs].entry.resume()}[ac](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[sc](o+n)});let r=e.entry,i=this.zip;i?r.on("data",n=>{i.write(n)||r.pause()}):r.on("data",n=>{super.write(n)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),Fp=class extends Ip{constructor(e){super(e),this[Op]=QM}pause(){}resume(){}[Tp](e){let r=this.follow?"statSync":"lstatSync";this[nc](e,cc[r](e.absolute))}[kp](e,r){this[oc](e,cc.readdirSync(e.absolute))}[ac](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[sc](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[yx](n)})}};Ip.Sync=Fp;gx.exports=Ip});var Es=T(No=>{"use strict";var i3=qd(),n3=require("events").EventEmitter,_t=require("fs"),Np=_t.writev;if(!Np){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Np=(r,i,n,s)=>{let o=(u,c)=>s(u,c,i),a=new e;a.oncomplete=o,t.writeBuffers(r,i,n,a)}}var _s=Symbol("_autoClose"),Xt=Symbol("_close"),Bo=Symbol("_ended"),Te=Symbol("_fd"),_x=Symbol("_finished"),vi=Symbol("_flags"),Lp=Symbol("_flush"),Mp=Symbol("_handleChunk"),jp=Symbol("_makeBuf"),mc=Symbol("_mode"),hc=Symbol("_needDrain"),ys=Symbol("_onerror"),bs=Symbol("_onopen"),Bp=Symbol("_onread"),ps=Symbol("_onwrite"),wi=Symbol("_open"),$r=Symbol("_path"),nn=Symbol("_pos"),_r=Symbol("_queue"),ms=Symbol("_read"),bx=Symbol("_readSize"),Ei=Symbol("_reading"),fc=Symbol("_remain"),Ex=Symbol("_size"),dc=Symbol("_write"),ds=Symbol("_writing"),pc=Symbol("_defaultFlag"),gs=Symbol("_errored"),yc=class extends i3{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[gs]=!1,this[Te]=typeof r.fd=="number"?r.fd:null,this[$r]=e,this[bx]=r.readSize||16*1024*1024,this[Ei]=!1,this[Ex]=typeof r.size=="number"?r.size:1/0,this[fc]=this[Ex],this[_s]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[Te]=="number"?this[ms]():this[wi]()}get fd(){return this[Te]}get path(){return this[$r]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[wi](){_t.open(this[$r],"r",(e,r)=>this[bs](e,r))}[bs](e,r){e?this[ys](e):(this[Te]=r,this.emit("open",r),this[ms]())}[jp](){return Buffer.allocUnsafe(Math.min(this[bx],this[fc]))}[ms](){if(!this[Ei]){this[Ei]=!0;let e=this[jp]();if(e.length===0)return process.nextTick(()=>this[Bp](null,0,e));_t.read(this[Te],e,0,e.length,null,(r,i,n)=>this[Bp](r,i,n))}}[Bp](e,r,i){this[Ei]=!1,e?this[ys](e):this[Mp](r,i)&&this[ms]()}[Xt](){if(this[_s]&&typeof this[Te]=="number"){let e=this[Te];this[Te]=null,_t.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[ys](e){this[Ei]=!0,this[Xt](),this.emit("error",e)}[Mp](e,r){let i=!1;return this[fc]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[fc]<=0)&&(i=!1,this[Xt](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[Te]=="number"&&this[ms]();break;case"error":return this[gs]?void 0:(this[gs]=!0,super.emit(e,r));default:return super.emit(e,r)}}},qp=class extends yc{[wi](){let e=!0;try{this[bs](null,_t.openSync(this[$r],"r")),e=!1}finally{e&&this[Xt]()}}[ms](){let e=!0;try{if(!this[Ei]){this[Ei]=!0;do{let r=this[jp](),i=r.length===0?0:_t.readSync(this[Te],r,0,r.length,null);if(!this[Mp](i,r))break}while(!0);this[Ei]=!1}e=!1}finally{e&&this[Xt]()}}[Xt](){if(this[_s]&&typeof this[Te]=="number"){let e=this[Te];this[Te]=null,_t.closeSync(e),this.emit("close")}}},gc=class extends n3{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[gs]=!1,this[ds]=!1,this[Bo]=!1,this[hc]=!1,this[_r]=[],this[$r]=e,this[Te]=typeof r.fd=="number"?r.fd:null,this[mc]=r.mode===void 0?438:r.mode,this[nn]=typeof r.start=="number"?r.start:null,this[_s]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[nn]!==null?"r+":"w";this[pc]=r.flags===void 0,this[vi]=this[pc]?i:r.flags,this[Te]===null&&this[wi]()}emit(e,r){if(e==="error"){if(this[gs])return;this[gs]=!0}return super.emit(e,r)}get fd(){return this[Te]}get path(){return this[$r]}[ys](e){this[Xt](),this[ds]=!0,this.emit("error",e)}[wi](){_t.open(this[$r],this[vi],this[mc],(e,r)=>this[bs](e,r))}[bs](e,r){this[pc]&&this[vi]==="r+"&&e&&e.code==="ENOENT"?(this[vi]="w",this[wi]()):e?this[ys](e):(this[Te]=r,this.emit("open",r),this[Lp]())}end(e,r){return e&&this.write(e,r),this[Bo]=!0,!this[ds]&&!this[_r].length&&typeof this[Te]=="number"&&this[ps](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[Bo]?(this.emit("error",new Error("write() after end()")),!1):this[Te]===null||this[ds]||this[_r].length?(this[_r].push(e),this[hc]=!0,!1):(this[ds]=!0,this[dc](e),!0)}[dc](e){_t.write(this[Te],e,0,e.length,this[nn],(r,i)=>this[ps](r,i))}[ps](e,r){e?this[ys](e):(this[nn]!==null&&(this[nn]+=r),this[_r].length?this[Lp]():(this[ds]=!1,this[Bo]&&!this[_x]?(this[_x]=!0,this[Xt](),this.emit("finish")):this[hc]&&(this[hc]=!1,this.emit("drain"))))}[Lp](){if(this[_r].length===0)this[Bo]&&this[ps](null,0);else if(this[_r].length===1)this[dc](this[_r].pop());else{let e=this[_r];this[_r]=[],Np(this[Te],e,this[nn],(r,i)=>this[ps](r,i))}}[Xt](){if(this[_s]&&typeof this[Te]=="number"){let e=this[Te];this[Te]=null,_t.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},Up=class extends gc{[wi](){let e;if(this[pc]&&this[vi]==="r+")try{e=_t.openSync(this[$r],this[vi],this[mc])}catch(r){if(r.code==="ENOENT")return this[vi]="w",this[wi]();throw r}else e=_t.openSync(this[$r],this[vi],this[mc]);this[bs](null,e)}[Xt](){if(this[_s]&&typeof this[Te]=="number"){let e=this[Te];this[Te]=null,_t.closeSync(e),this.emit("close")}}[dc](e){let r=!0;try{this[ps](null,_t.writeSync(this[Te],e,0,e.length,this[nn])),r=!1}finally{if(r)try{this[Xt]()}catch{}}}};No.ReadStream=yc;No.ReadStreamSync=qp;No.WriteStream=gc;No.WriteStreamSync=Up});var xc=T((ez,Rx)=>{"use strict";var s3=Zu(),o3=ls(),a3=require("events"),u3=xp(),c3=1024*1024,l3=Vu(),vx=Ku(),h3=rp(),{nextTick:f3}=require("process"),Hp=Buffer.from([31,139]),jt=Symbol("state"),sn=Symbol("writeEntry"),zr=Symbol("readEntry"),$p=Symbol("nextEntry"),wx=Symbol("processEntry"),qt=Symbol("extendedHeader"),Mo=Symbol("globalExtendedHeader"),Si=Symbol("meta"),Sx=Symbol("emitMeta"),Fe=Symbol("buffer"),Gr=Symbol("queue"),on=Symbol("ended"),xx=Symbol("emittedEnd"),an=Symbol("emit"),bt=Symbol("unzip"),_c=Symbol("consumeChunk"),bc=Symbol("consumeChunkSub"),zp=Symbol("consumeBody"),Dx=Symbol("consumeMeta"),Ax=Symbol("consumeHeader"),Ec=Symbol("consuming"),Gp=Symbol("bufferConcat"),Wp=Symbol("maybeEnd"),jo=Symbol("writing"),xi=Symbol("aborted"),vc=Symbol("onDone"),un=Symbol("sawValidEntry"),wc=Symbol("sawNullBlock"),Sc=Symbol("sawEOF"),Cx=Symbol("closeStream"),d3=t=>!0;Rx.exports=s3(class extends a3{constructor(e){e=e||{},super(e),this.file=e.file||"",this[un]=null,this.on(vc,r=>{(this[jt]==="begin"||this[un]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(vc,e.ondone):this.on(vc,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||c3,this.filter=typeof e.filter=="function"?e.filter:d3,this.writable=!0,this.readable=!1,this[Gr]=new u3,this[Fe]=null,this[zr]=null,this[sn]=null,this[jt]="begin",this[Si]="",this[qt]=null,this[Mo]=null,this[on]=!1,this[bt]=null,this[xi]=!1,this[wc]=!1,this[Sc]=!1,this.on("end",()=>this[Cx]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[Ax](e,r){this[un]===null&&(this[un]=!1);let i;try{i=new o3(e,r,this[qt],this[Mo])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[wc]?(this[Sc]=!0,this[jt]==="begin"&&(this[jt]="header"),this[an]("eof")):(this[wc]=!0,this[an]("nullBlock"));else if(this[wc]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let n=i.type;if(/^(Symbolic)?Link$/.test(n)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(n)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let s=this[sn]=new l3(i,this[qt],this[Mo]);if(!this[un])if(s.remain){let o=()=>{s.invalid||(this[un]=!0)};s.on("end",o)}else this[un]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[an]("ignoredEntry",s),this[jt]="ignore",s.resume()):s.size>0&&(this[Si]="",s.on("data",o=>this[Si]+=o),this[jt]="meta"):(this[qt]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[an]("ignoredEntry",s),this[jt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[jt]="body":(this[jt]="header",s.end()),this[zr]?this[Gr].push(s):(this[Gr].push(s),this[$p]())))}}}[Cx](){f3(()=>this.emit("close"))}[wx](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[zr]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[$p]()),r=!1)):(this[zr]=null,r=!1),r}[$p](){do;while(this[wx](this[Gr].shift()));if(!this[Gr].length){let e=this[zr];!e||e.flowing||e.size===e.remain?this[jo]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[zp](e,r){let i=this[sn],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[jt]="header",this[sn]=null,i.end()),s.length}[Dx](e,r){let i=this[sn],n=this[zp](e,r);return this[sn]||this[Sx](i),n}[an](e,r,i){!this[Gr].length&&!this[zr]?this.emit(e,r,i):this[Gr].push([e,r,i])}[Sx](e){switch(this[an]("meta",this[Si]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[qt]=vx.parse(this[Si],this[qt],!1);break;case"GlobalExtendedHeader":this[Mo]=vx.parse(this[Si],this[Mo],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[qt]=this[qt]||Object.create(null),this[qt].path=this[Si].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[qt]=this[qt]||Object.create(null),this[qt].linkpath=this[Si].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[xi]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[xi])return;if(this[bt]===null&&e){if(this[Fe]&&(e=Buffer.concat([this[Fe],e]),this[Fe]=null),e.length<Hp.length)return this[Fe]=e,!0;for(let i=0;this[bt]===null&&i<Hp.length;i++)e[i]!==Hp[i]&&(this[bt]=!1);if(this[bt]===null){let i=this[on];this[on]=!1,this[bt]=new h3.Unzip,this[bt].on("data",s=>this[_c](s)),this[bt].on("error",s=>this.abort(s)),this[bt].on("end",s=>{this[on]=!0,this[_c]()}),this[jo]=!0;let n=this[bt][i?"end":"write"](e);return this[jo]=!1,n}}this[jo]=!0,this[bt]?this[bt].write(e):this[_c](e),this[jo]=!1;let r=this[Gr].length?!1:this[zr]?this[zr].flowing:!0;return!r&&!this[Gr].length&&this[zr].once("drain",i=>this.emit("drain")),r}[Gp](e){e&&!this[xi]&&(this[Fe]=this[Fe]?Buffer.concat([this[Fe],e]):e)}[Wp](){if(this[on]&&!this[xx]&&!this[xi]&&!this[Ec]){this[xx]=!0;let e=this[sn];if(e&&e.blockRemain){let r=this[Fe]?this[Fe].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[Fe]&&e.write(this[Fe]),e.end()}this[an](vc)}}[_c](e){if(this[Ec])this[Gp](e);else if(!e&&!this[Fe])this[Wp]();else{if(this[Ec]=!0,this[Fe]){this[Gp](e);let r=this[Fe];this[Fe]=null,this[bc](r)}else this[bc](e);for(;this[Fe]&&this[Fe].length>=512&&!this[xi]&&!this[Sc];){let r=this[Fe];this[Fe]=null,this[bc](r)}this[Ec]=!1}(!this[Fe]||this[on])&&this[Wp]()}[bc](e){let r=0,i=e.length;for(;r+512<=i&&!this[xi]&&!this[Sc];)switch(this[jt]){case"begin":case"header":this[Ax](e,r),r+=512;break;case"ignore":case"body":r+=this[zp](e,r);break;case"meta":r+=this[Dx](e,r);break;default:throw new Error("invalid state: "+this[jt])}r<i&&(this[Fe]?this[Fe]=Buffer.concat([e.slice(r),this[Fe]]):this[Fe]=e.slice(r))}end(e){this[xi]||(this[bt]?this[bt].end(e):(this[on]=!0,this.write(e)))}})});var Dc=T((tz,Fx)=>{"use strict";var p3=is(),kx=xc(),vs=require("fs"),m3=Es(),Tx=require("path"),Vp=hs();Fx.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 i=p3(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&g3(i,e),i.noResume||y3(i),i.file&&i.sync?_3(i):i.file?b3(i,r):Ox(i)};var y3=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},g3=(t,e)=>{let r=new Map(e.map(s=>[Vp(s),!0])),i=t.filter,n=(s,o)=>{let a=o||Tx.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):n(Tx.dirname(s),a);return r.set(s,u),u};t.filter=i?(s,o)=>i(s,o)&&n(Vp(s)):s=>n(Vp(s))},_3=t=>{let e=Ox(t),r=t.file,i=!0,n;try{let s=vs.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(vs.readFileSync(r));else{let a=0,u=Buffer.allocUnsafe(o);for(n=vs.openSync(r,"r");a<s.size;){let c=vs.readSync(n,u,0,o,a);a+=c,e.write(u.slice(0,c))}e.end()}i=!1}finally{if(i&&n)try{vs.closeSync(n)}catch{}}},b3=(t,e)=>{let r=new kx(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),vs.stat(n,(u,c)=>{if(u)a(u);else{let l=new m3.ReadStream(n,{readSize:i,size:c.size});l.on("error",a),l.pipe(r)}})});return e?s.then(e,e):s},Ox=t=>new kx(t)});var Mx=T((rz,Nx)=>{"use strict";var E3=is(),Ac=lc(),Px=Es(),Ix=Dc(),Lx=require("path");Nx.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 i=E3(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?v3(i,e):i.file?w3(i,e,r):i.sync?S3(i,e):x3(i,e)};var v3=(t,e)=>{let r=new Ac.Sync(t),i=new Px.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),Bx(r,e)},w3=(t,e,r)=>{let i=new Ac(t),n=new Px.WriteStream(t.file,{mode:t.mode||438});i.pipe(n);let s=new Promise((o,a)=>{n.on("error",a),n.on("close",o),i.on("error",a)});return Yp(i,e),r?s.then(r,r):s},Bx=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Ix({file:Lx.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},Yp=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Ix({file:Lx.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>Yp(t,e));t.add(r)}t.end()},S3=(t,e)=>{let r=new Ac.Sync(t);return Bx(r,e),r},x3=(t,e)=>{let r=new Ac(t);return Yp(r,e),r}});var Kp=T((iz,Gx)=>{"use strict";var D3=is(),jx=lc(),At=require("fs"),qx=Es(),Ux=Dc(),Hx=require("path"),$x=ls();Gx.exports=(t,e,r)=>{let i=D3(t);if(!i.file)throw new TypeError("file is required");if(i.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),i.sync?A3(i,e):R3(i,e,r)};var A3=(t,e)=>{let r=new jx.Sync(t),i=!0,n,s;try{try{n=At.openSync(t.file,"r+")}catch(u){if(u.code==="ENOENT")n=At.openSync(t.file,"w+");else throw u}let o=At.fstatSync(n),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let l=0,h=0;l<512;l+=h){if(h=At.readSync(n,a,l,a.length-l,s+l),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let u=new $x(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)}i=!1,C3(t,r,s,n,e)}finally{if(i)try{At.closeSync(n)}catch{}}},C3=(t,e,r,i,n)=>{let s=new qx.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),T3(e,n)},R3=(t,e,r)=>{e=Array.from(e);let i=new jx(t),n=(o,a,u)=>{let c=(m,y)=>{m?At.close(o,p=>u(m)):u(null,y)},l=0;if(a===0)return c(null,0);let h=0,f=Buffer.alloc(512),d=(m,y)=>{if(m)return c(m);if(h+=y,h<512&&y)return At.read(o,f,h,f.length-h,l+h,d);if(l===0&&f[0]===31&&f[1]===139)return c(new Error("cannot append to compressed archives"));if(h<512)return c(null,l);let p=new $x(f);if(!p.cksumValid)return c(null,l);let v=512*Math.ceil(p.size/512);if(l+v+512>a||(l+=v+512,l>=a))return c(null,l);t.mtimeCache&&t.mtimeCache.set(p.path,p.mtime),h=0,At.read(o,f,0,512,l,d)};At.read(o,f,0,512,l,d)},s=new Promise((o,a)=>{i.on("error",a);let u="r+",c=(l,h)=>{if(l&&l.code==="ENOENT"&&u==="r+")return u="w+",At.open(t.file,u,c);if(l)return a(l);At.fstat(h,(f,d)=>{if(f)return At.close(h,()=>a(f));n(h,d.size,(m,y)=>{if(m)return a(m);let p=new qx.WriteStream(t.file,{fd:h,start:y});i.pipe(p),p.on("error",a),p.on("close",o),zx(i,e)})})};At.open(t.file,u,c)});return r?s.then(r,r):s},T3=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?Ux({file:Hx.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},zx=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return Ux({file:Hx.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>zx(t,e));t.add(r)}t.end()}});var Vx=T((nz,Wx)=>{"use strict";var k3=is(),O3=Kp();Wx.exports=(t,e,r)=>{let i=k3(t);if(!i.file)throw new TypeError("file is required");if(i.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),F3(i),O3(i,e,r)};var F3=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,i)=>e(r,i)&&!(t.mtimeCache.get(r)>i.mtime):(r,i)=>!(t.mtimeCache.get(r)>i.mtime)}});var Zx=T((sz,Kx)=>{var{promisify:Yx}=require("util"),Di=require("fs"),P3=t=>{if(!t)t={mode:511,fs:Di};else if(typeof t=="object")t={mode:511,fs:Di,...t};else if(typeof t=="number")t={mode:t,fs:Di};else if(typeof t=="string")t={mode:parseInt(t,8),fs:Di};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||Di.mkdir,t.mkdirAsync=Yx(t.mkdir),t.stat=t.stat||t.fs.stat||Di.stat,t.statAsync=Yx(t.stat),t.statSync=t.statSync||t.fs.statSync||Di.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Di.mkdirSync,t};Kx.exports=P3});var Xx=T((oz,Jx)=>{var I3=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:L3,parse:B3}=require("path"),N3=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=L3(t),I3==="win32"){let e=/[*|"<>?:]/,{root:r}=B3(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};Jx.exports=N3});var iD=T((az,rD)=>{var{dirname:Qx}=require("path"),eD=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?eD(t,Qx(e),e):void 0),tD=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?tD(t,Qx(e),e):void 0}};rD.exports={findMade:eD,findMadeSync:tD}});var Xp=T((uz,sD)=>{var{dirname:nD}=require("path"),Zp=(t,e,r)=>{e.recursive=!1;let i=nD(t);return i===t?e.mkdirAsync(t,e).catch(n=>{if(n.code!=="EISDIR")throw n}):e.mkdirAsync(t,e).then(()=>r||t,n=>{if(n.code==="ENOENT")return Zp(i,e).then(s=>Zp(t,e,s));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw n},()=>{throw n})})},Jp=(t,e,r)=>{let i=nD(t);if(e.recursive=!1,i===t)try{return e.mkdirSync(t,e)}catch(n){if(n.code!=="EISDIR")throw n;return}try{return e.mkdirSync(t,e),r||t}catch(n){if(n.code==="ENOENT")return Jp(t,e,Jp(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};sD.exports={mkdirpManual:Zp,mkdirpManualSync:Jp}});var uD=T((cz,aD)=>{var{dirname:oD}=require("path"),{findMade:M3,findMadeSync:j3}=iD(),{mkdirpManual:q3,mkdirpManualSync:U3}=Xp(),H3=(t,e)=>(e.recursive=!0,oD(t)===t?e.mkdirAsync(t,e):M3(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return q3(t,e);throw n}))),$3=(t,e)=>{if(e.recursive=!0,oD(t)===t)return e.mkdirSync(t,e);let i=j3(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return U3(t,e);throw n}};aD.exports={mkdirpNative:H3,mkdirpNativeSync:$3}});var fD=T((lz,hD)=>{var cD=require("fs"),z3=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,Qp=z3.replace(/^v/,"").split("."),lD=+Qp[0]>10||+Qp[0]==10&&+Qp[1]>=12,G3=lD?t=>t.mkdir===cD.mkdir:()=>!1,W3=lD?t=>t.mkdirSync===cD.mkdirSync:()=>!1;hD.exports={useNative:G3,useNativeSync:W3}});var _D=T((hz,gD)=>{var ws=Zx(),Ss=Xx(),{mkdirpNative:dD,mkdirpNativeSync:pD}=uD(),{mkdirpManual:mD,mkdirpManualSync:yD}=Xp(),{useNative:V3,useNativeSync:Y3}=fD(),xs=(t,e)=>(t=Ss(t),e=ws(e),V3(e)?dD(t,e):mD(t,e)),K3=(t,e)=>(t=Ss(t),e=ws(e),Y3(e)?pD(t,e):yD(t,e));xs.sync=K3;xs.native=(t,e)=>dD(Ss(t),ws(e));xs.manual=(t,e)=>mD(Ss(t),ws(e));xs.nativeSync=(t,e)=>pD(Ss(t),ws(e));xs.manualSync=(t,e)=>yD(Ss(t),ws(e));gD.exports=xs});var DD=T((fz,xD)=>{"use strict";var Ut=require("fs"),cn=require("path"),Z3=Ut.lchown?"lchown":"chown",J3=Ut.lchownSync?"lchownSync":"chownSync",ED=Ut.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),bD=(t,e,r)=>{try{return Ut[J3](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},X3=(t,e,r)=>{try{return Ut.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},Q3=ED?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):Ut.chown(t,e,r,i)}:(t,e,r,i)=>i,em=ED?(t,e,r)=>{try{return bD(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;X3(t,e,r)}}:(t,e,r)=>bD(t,e,r),ej=process.version,vD=(t,e,r)=>Ut.readdir(t,e,r),tj=(t,e)=>Ut.readdirSync(t,e);/^v4\./.test(ej)&&(vD=(t,e,r)=>Ut.readdir(t,r));var Cc=(t,e,r,i)=>{Ut[Z3](t,e,r,Q3(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},wD=(t,e,r,i,n)=>{if(typeof e=="string")return Ut.lstat(cn.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,wD(t,o,r,i,n)});if(e.isDirectory())tm(cn.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=cn.resolve(t,e.name);Cc(o,r,i,n)});else{let s=cn.resolve(t,e.name);Cc(s,r,i,n)}},tm=(t,e,r,i)=>{vD(t,{withFileTypes:!0},(n,s)=>{if(n){if(n.code==="ENOENT")return i();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return i(n)}if(n||!s.length)return Cc(t,e,r,i);let o=s.length,a=null,u=c=>{if(!a){if(c)return i(a=c);if(--o===0)return Cc(t,e,r,i)}};s.forEach(c=>wD(t,c,e,r,u))})},rj=(t,e,r,i)=>{if(typeof e=="string")try{let n=Ut.lstatSync(cn.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&SD(cn.resolve(t,e.name),r,i),em(cn.resolve(t,e.name),r,i)},SD=(t,e,r)=>{let i;try{i=tj(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return em(t,e,r);throw n}return i&&i.length&&i.forEach(n=>rj(t,n,e,r)),em(t,e,r)};xD.exports=tm;tm.sync=SD});var TD=T((dz,rm)=>{"use strict";var AD=_D(),Ht=require("fs"),Rc=require("path"),CD=DD(),Qt=us(),Tc=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},kc=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Oc=(t,e)=>t.get(Qt(e)),qo=(t,e,r)=>t.set(Qt(e),r),ij=(t,e)=>{Ht.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new kc(t,r&&r.code||"ENOTDIR")),e(r)})};rm.exports=(t,e,r)=>{t=Qt(t);let i=e.umask,n=e.mode|448,s=(n&i)!==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,h=e.cache,f=Qt(e.cwd),d=(p,v)=>{p?r(p):(qo(h,t,!0),v&&u?CD(v,o,a,C=>d(C)):s?Ht.chmod(t,n,r):r())};if(h&&Oc(h,t)===!0)return d();if(t===f)return ij(t,d);if(c)return AD(t,{mode:n}).then(p=>d(null,p),d);let y=Qt(Rc.relative(f,t)).split("/");Fc(f,y,n,h,l,f,null,d)};var Fc=(t,e,r,i,n,s,o,a)=>{if(!e.length)return a(null,o);let u=e.shift(),c=Qt(Rc.resolve(t+"/"+u));if(Oc(i,c))return Fc(c,e,r,i,n,s,o,a);Ht.mkdir(c,r,RD(c,e,r,i,n,s,o,a))},RD=(t,e,r,i,n,s,o,a)=>u=>{u?Ht.lstat(t,(c,l)=>{if(c)c.path=c.path&&Qt(c.path),a(c);else if(l.isDirectory())Fc(t,e,r,i,n,s,o,a);else if(n)Ht.unlink(t,h=>{if(h)return a(h);Ht.mkdir(t,r,RD(t,e,r,i,n,s,o,a))});else{if(l.isSymbolicLink())return a(new Tc(t,t+"/"+e.join("/")));a(u)}}):(o=o||t,Fc(t,e,r,i,n,s,o,a))},nj=t=>{let e=!1,r="ENOTDIR";try{e=Ht.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new kc(t,r)}};rm.exports.sync=(t,e)=>{t=Qt(t);let r=e.umask,i=e.mode|448,n=(i&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,h=Qt(e.cwd),f=p=>{qo(l,t,!0),p&&a&&CD.sync(p,s,o),n&&Ht.chmodSync(t,i)};if(l&&Oc(l,t)===!0)return f();if(t===h)return nj(h),f();if(u)return f(AD.sync(t,i));let m=Qt(Rc.relative(h,t)).split("/"),y=null;for(let p=m.shift(),v=h;p&&(v+="/"+p);p=m.shift())if(v=Qt(Rc.resolve(v)),!Oc(l,v))try{Ht.mkdirSync(v,i),y=y||v,qo(l,v,!0)}catch{let k=Ht.lstatSync(v);if(k.isDirectory()){qo(l,v,!0);continue}else if(c){Ht.unlinkSync(v),Ht.mkdirSync(v,i),y=y||v,qo(l,v,!0);continue}else if(k.isSymbolicLink())return new Tc(v,v+"/"+m.join("/"))}return f(y)}});var nm=T((pz,kD)=>{var im=Object.create(null),{hasOwnProperty:sj}=Object.prototype;kD.exports=t=>(sj.call(im,t)||(im[t]=t.normalize("NFKD")),im[t])});var ID=T((mz,PD)=>{var OD=require("assert"),oj=nm(),aj=hs(),{join:FD}=require("path"),uj=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,cj=uj==="win32";PD.exports=()=>{let t=new Map,e=new Map,r=c=>c.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=FD(h[h.length-1],f)),h.push(f||"/"),h),[]),i=new Set,n=c=>{let l=e.get(c);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(h=>t.get(h)),dirs:[...l.dirs].map(h=>t.get(h))}},s=c=>{let{paths:l,dirs:h}=n(c);return l.every(f=>f[0]===c)&&h.every(f=>f[0]instanceof Set&&f[0].has(c))},o=c=>i.has(c)||!s(c)?!1:(i.add(c),c(()=>a(c)),!0),a=c=>{if(!i.has(c))return!1;let{paths:l,dirs:h}=e.get(c),f=new Set;return l.forEach(d=>{let m=t.get(d);OD.equal(m[0],c),m.length===1?t.delete(d):(m.shift(),typeof m[0]=="function"?f.add(m[0]):m[0].forEach(y=>f.add(y)))}),h.forEach(d=>{let m=t.get(d);OD(m[0]instanceof Set),m[0].size===1&&m.length===1?t.delete(d):m[0].size===1?(m.shift(),f.add(m[0])):m[0].delete(c)}),i.delete(c),f.forEach(d=>o(d)),!0};return{check:s,reserve:(c,l)=>{c=cj?["win32 parallelization disabled"]:c.map(f=>oj(aj(FD(f))).toLowerCase());let h=new Set(c.map(f=>r(f)).reduce((f,d)=>f.concat(d)));return e.set(l,{dirs:h,paths:c}),c.forEach(f=>{let d=t.get(f);d?d.push(l):t.set(f,[l])}),h.forEach(f=>{let d=t.get(f);d?d[d.length-1]instanceof Set?d[d.length-1].add(l):d.push(new Set([l])):t.set(f,[new Set([l])])}),o(l)}}}});var ND=T((yz,BD)=>{var lj=process.env.__FAKE_PLATFORM__||process.platform,hj=lj==="win32",fj=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:dj,O_TRUNC:pj,O_WRONLY:mj,UV_FS_O_FILEMAP:LD=0}=fj.constants,yj=hj&&!!LD,gj=512*1024,_j=LD|pj|dj|mj;BD.exports=yj?t=>t<gj?_j:"w":()=>"w"});var dm=T((gz,JD)=>{"use strict";var bj=require("assert"),Ej=xc(),Ae=require("fs"),vj=Es(),Wr=require("path"),YD=TD(),MD=fp(),wj=ID(),Sj=dp(),Ct=us(),xj=hs(),Dj=nm(),jD=Symbol("onEntry"),am=Symbol("checkFs"),qD=Symbol("checkFs2"),Lc=Symbol("pruneCache"),um=Symbol("isReusable"),$t=Symbol("makeFs"),cm=Symbol("file"),lm=Symbol("directory"),Bc=Symbol("link"),UD=Symbol("symlink"),HD=Symbol("hardlink"),$D=Symbol("unsupported"),zD=Symbol("checkPath"),Ai=Symbol("mkdir"),ut=Symbol("onError"),Pc=Symbol("pending"),GD=Symbol("pend"),Ds=Symbol("unpend"),sm=Symbol("ended"),om=Symbol("maybeClose"),hm=Symbol("skip"),Uo=Symbol("doChown"),Ho=Symbol("uid"),$o=Symbol("gid"),zo=Symbol("checkedCwd"),KD=require("crypto"),ZD=ND(),Aj=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Go=Aj==="win32",Cj=(t,e)=>{if(!Go)return Ae.unlink(t,e);let r=t+".DELETE."+KD.randomBytes(16).toString("hex");Ae.rename(t,r,i=>{if(i)return e(i);Ae.unlink(r,e)})},Rj=t=>{if(!Go)return Ae.unlinkSync(t);let e=t+".DELETE."+KD.randomBytes(16).toString("hex");Ae.renameSync(t,e),Ae.unlinkSync(e)},WD=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,VD=t=>Dj(xj(Ct(t))).toLowerCase(),Tj=(t,e)=>{e=VD(e);for(let r of t.keys()){let i=VD(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},kj=t=>{for(let e of t.keys())t.delete(e)},Wo=class extends Ej{constructor(e){if(e||(e={}),e.ondone=r=>{this[sm]=!0,this[om]()},super(e),this[zo]=!1,this.reservations=wj(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Pc]=0,this[sm]=!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||Go,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Ct(Wr.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[jD](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[om](){this[sm]&&this[Pc]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[zD](e){if(this.strip){let r=Ct(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=Ct(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=Ct(e.path),i=r.split("/");if(i.includes("..")||Go&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=Sj(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Wr.isAbsolute(e.path)?e.absolute=Ct(Wr.resolve(e.path)):e.absolute=Ct(Wr.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:Ct(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}=Wr.win32.parse(e.absolute);e.absolute=r+MD.encode(e.absolute.slice(r.length));let{root:i}=Wr.win32.parse(e.path);e.path=i+MD.encode(e.path.slice(i.length))}return!0}[jD](e){if(!this[zD](e))return e.resume();switch(bj.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[am](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[$D](e)}}[ut](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[Ds](),r.resume())}[Ai](e,r,i){YD(Ct(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},i)}[Uo](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}[Ho](e){return WD(this.uid,e.uid,this.processUid)}[$o](e){return WD(this.gid,e.gid,this.processGid)}[cm](e,r){let i=e.mode&4095||this.fmode,n=new vj.WriteStream(e.absolute,{flags:ZD(e.size),mode:i,autoClose:!1});n.on("error",u=>{n.fd&&Ae.close(n.fd,()=>{}),n.write=()=>!0,this[ut](u,e),r()});let s=1,o=u=>{if(u){n.fd&&Ae.close(n.fd,()=>{}),this[ut](u,e),r();return}--s===0&&Ae.close(n.fd,c=>{c?this[ut](c,e):this[Ds](),r()})};n.on("finish",u=>{let c=e.absolute,l=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;Ae.futimes(l,h,f,d=>d?Ae.utimes(c,h,f,m=>o(m&&d)):o())}if(this[Uo](e)){s++;let h=this[Ho](e),f=this[$o](e);Ae.fchown(l,h,f,d=>d?Ae.chown(c,h,f,m=>o(m&&d)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",u=>{this[ut](u,e),r()}),e.pipe(a)),a.pipe(n)}[lm](e,r){let i=e.mode&4095||this.dmode;this[Ai](e.absolute,i,n=>{if(n){this[ut](n,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[Ds](),e.resume())};e.mtime&&!this.noMtime&&(s++,Ae.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[Uo](e)&&(s++,Ae.chown(e.absolute,this[Ho](e),this[$o](e),o)),o()})}[$D](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[UD](e,r){this[Bc](e,e.linkpath,"symlink",r)}[HD](e,r){let i=Ct(Wr.resolve(this.cwd,e.linkpath));this[Bc](e,i,"link",r)}[GD](){this[Pc]++}[Ds](){this[Pc]--,this[om]()}[hm](e){this[Ds](),e.resume()}[um](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!Go}[am](e){this[GD]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[qD](e,i))}[Lc](e){e.type==="SymbolicLink"?kj(this.dirCache):e.type!=="Directory"&&Tj(this.dirCache,e.absolute)}[qD](e,r){this[Lc](e);let i=a=>{this[Lc](e),r(a)},n=()=>{this[Ai](this.cwd,this.dmode,a=>{if(a){this[ut](a,e),i();return}this[zo]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=Ct(Wr.dirname(e.absolute));if(a!==this.cwd)return this[Ai](a,this.dmode,u=>{if(u){this[ut](u,e),i();return}o()})}o()},o=()=>{Ae.lstat(e.absolute,(a,u)=>{if(u&&(this.keep||this.newer&&u.mtime>e.mtime)){this[hm](e),i();return}if(a||this[um](e,u))return this[$t](null,e,i);if(u.isDirectory()){if(e.type==="Directory"){let c=!this.noChmod&&e.mode&&(u.mode&4095)!==e.mode,l=h=>this[$t](h,e,i);return c?Ae.chmod(e.absolute,e.mode,l):l()}if(e.absolute!==this.cwd)return Ae.rmdir(e.absolute,c=>this[$t](c,e,i))}if(e.absolute===this.cwd)return this[$t](null,e,i);Cj(e.absolute,c=>this[$t](c,e,i))})};this[zo]?s():n()}[$t](e,r,i){if(e){this[ut](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[cm](r,i);case"Link":return this[HD](r,i);case"SymbolicLink":return this[UD](r,i);case"Directory":case"GNUDumpDir":return this[lm](r,i)}}[Bc](e,r,i,n){Ae[i](r,e.absolute,s=>{s?this[ut](s,e):(this[Ds](),e.resume()),n()})}},Ic=t=>{try{return[null,t()]}catch(e){return[e,null]}},fm=class extends Wo{[$t](e,r){return super[$t](e,r,()=>{})}[am](e){if(this[Lc](e),!this[zo]){let s=this[Ai](this.cwd,this.dmode);if(s)return this[ut](s,e);this[zo]=!0}if(e.absolute!==this.cwd){let s=Ct(Wr.dirname(e.absolute));if(s!==this.cwd){let o=this[Ai](s,this.dmode);if(o)return this[ut](o,e)}}let[r,i]=Ic(()=>Ae.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[hm](e);if(r||this[um](e,i))return this[$t](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[a]=o?Ic(()=>{Ae.chmodSync(e.absolute,e.mode)}):[];return this[$t](a,e)}let[s]=Ic(()=>Ae.rmdirSync(e.absolute));this[$t](s,e)}let[n]=e.absolute===this.cwd?[]:Ic(()=>Rj(e.absolute));this[$t](n,e)}[cm](e,r){let i=e.mode&4095||this.fmode,n=a=>{let u;try{Ae.closeSync(s)}catch(c){u=c}(a||u)&&this[ut](a||u,e),r()},s;try{s=Ae.openSync(e.absolute,ZD(e.size),i)}catch(a){return n(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[ut](a,e)),e.pipe(o)),o.on("data",a=>{try{Ae.writeSync(s,a,0,a.length)}catch(u){n(u)}}),o.on("end",a=>{let u=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,l=e.mtime;try{Ae.futimesSync(s,c,l)}catch(h){try{Ae.utimesSync(e.absolute,c,l)}catch{u=h}}}if(this[Uo](e)){let c=this[Ho](e),l=this[$o](e);try{Ae.fchownSync(s,c,l)}catch(h){try{Ae.chownSync(e.absolute,c,l)}catch{u=u||h}}}n(u)})}[lm](e,r){let i=e.mode&4095||this.dmode,n=this[Ai](e.absolute,i);if(n){this[ut](n,e),r();return}if(e.mtime&&!this.noMtime)try{Ae.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[Uo](e))try{Ae.chownSync(e.absolute,this[Ho](e),this[$o](e))}catch{}r(),e.resume()}[Ai](e,r){try{return YD.sync(Ct(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(i){return i}}[Bc](e,r,i,n){try{Ae[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[ut](s,e)}}};Wo.Sync=fm;JD.exports=Wo});var rA=T((_z,tA)=>{"use strict";var Oj=is(),Nc=dm(),QD=require("fs"),eA=Es(),XD=require("path"),pm=hs();tA.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 i=Oj(t);if(i.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&Fj(i,e),i.file&&i.sync?Pj(i):i.file?Ij(i,r):i.sync?Lj(i):Bj(i)};var Fj=(t,e)=>{let r=new Map(e.map(s=>[pm(s),!0])),i=t.filter,n=(s,o)=>{let a=o||XD.parse(s).root||".",u=s===a?!1:r.has(s)?r.get(s):n(XD.dirname(s),a);return r.set(s,u),u};t.filter=i?(s,o)=>i(s,o)&&n(pm(s)):s=>n(pm(s))},Pj=t=>{let e=new Nc.Sync(t),r=t.file,i=QD.statSync(r),n=t.maxReadSize||16*1024*1024;new eA.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},Ij=(t,e)=>{let r=new Nc(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),QD.stat(n,(u,c)=>{if(u)a(u);else{let l=new eA.ReadStream(n,{readSize:i,size:c.size});l.on("error",a),l.pipe(r)}})});return e?s.then(e,e):s},Lj=t=>new Nc.Sync(t),Bj=t=>new Nc(t)});var iA=T(ze=>{"use strict";ze.c=ze.create=Mx();ze.r=ze.replace=Kp();ze.t=ze.list=Dc();ze.u=ze.update=Vx();ze.x=ze.extract=rA();ze.Pack=lc();ze.Unpack=dm();ze.Parse=xc();ze.ReadEntry=Vu();ze.WriteEntry=Sp();ze.Header=ls();ze.Pax=Ku();ze.types=sp()});var Yr=T((Vr,Mc)=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});var nA=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function Nj(t){return nA.includes(t)}var Mj=["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",...nA];function jj(t){return Mj.includes(t)}var qj=["null","undefined","string","number","bigint","boolean","symbol"];function Uj(t){return qj.includes(t)}function As(t){return e=>typeof e===t}var{toString:sA}=Object.prototype,Vo=t=>{let e=sA.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&O.domElement(t))return"HTMLElement";if(jj(e))return e},ke=t=>e=>Vo(e)===t;function O(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(O.observable(t))return"Observable";if(O.array(t))return"Array";if(O.buffer(t))return"Buffer";let e=Vo(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"}O.undefined=As("undefined");O.string=As("string");var Hj=As("number");O.number=t=>Hj(t)&&!O.nan(t);O.bigint=As("bigint");O.function_=As("function");O.null_=t=>t===null;O.class_=t=>O.function_(t)&&t.toString().startsWith("class ");O.boolean=t=>t===!0||t===!1;O.symbol=As("symbol");O.numericString=t=>O.string(t)&&!O.emptyStringOrWhitespace(t)&&!Number.isNaN(Number(t));O.array=(t,e)=>Array.isArray(t)?O.function_(e)?t.every(e):!0:!1;O.buffer=t=>{var e,r,i,n;return(n=(i=(r=(e=t)===null||e===void 0?void 0:e.constructor)===null||r===void 0?void 0:r.isBuffer)===null||i===void 0?void 0:i.call(r,t))!==null&&n!==void 0?n:!1};O.blob=t=>ke("Blob")(t);O.nullOrUndefined=t=>O.null_(t)||O.undefined(t);O.object=t=>!O.null_(t)&&(typeof t=="object"||O.function_(t));O.iterable=t=>{var e;return O.function_((e=t)===null||e===void 0?void 0:e[Symbol.iterator])};O.asyncIterable=t=>{var e;return O.function_((e=t)===null||e===void 0?void 0:e[Symbol.asyncIterator])};O.generator=t=>{var e,r;return O.iterable(t)&&O.function_((e=t)===null||e===void 0?void 0:e.next)&&O.function_((r=t)===null||r===void 0?void 0:r.throw)};O.asyncGenerator=t=>O.asyncIterable(t)&&O.function_(t.next)&&O.function_(t.throw);O.nativePromise=t=>ke("Promise")(t);var $j=t=>{var e,r;return O.function_((e=t)===null||e===void 0?void 0:e.then)&&O.function_((r=t)===null||r===void 0?void 0:r.catch)};O.promise=t=>O.nativePromise(t)||$j(t);O.generatorFunction=ke("GeneratorFunction");O.asyncGeneratorFunction=t=>Vo(t)==="AsyncGeneratorFunction";O.asyncFunction=t=>Vo(t)==="AsyncFunction";O.boundFunction=t=>O.function_(t)&&!t.hasOwnProperty("prototype");O.regExp=ke("RegExp");O.date=ke("Date");O.error=ke("Error");O.map=t=>ke("Map")(t);O.set=t=>ke("Set")(t);O.weakMap=t=>ke("WeakMap")(t);O.weakSet=t=>ke("WeakSet")(t);O.int8Array=ke("Int8Array");O.uint8Array=ke("Uint8Array");O.uint8ClampedArray=ke("Uint8ClampedArray");O.int16Array=ke("Int16Array");O.uint16Array=ke("Uint16Array");O.int32Array=ke("Int32Array");O.uint32Array=ke("Uint32Array");O.float32Array=ke("Float32Array");O.float64Array=ke("Float64Array");O.bigInt64Array=ke("BigInt64Array");O.bigUint64Array=ke("BigUint64Array");O.arrayBuffer=ke("ArrayBuffer");O.sharedArrayBuffer=ke("SharedArrayBuffer");O.dataView=ke("DataView");O.enumCase=(t,e)=>Object.values(e).includes(t);O.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;O.urlInstance=t=>ke("URL")(t);O.urlString=t=>{if(!O.string(t))return!1;try{return new URL(t),!0}catch{return!1}};O.truthy=t=>!!t;O.falsy=t=>!t;O.nan=t=>Number.isNaN(t);O.primitive=t=>O.null_(t)||Uj(typeof t);O.integer=t=>Number.isInteger(t);O.safeInteger=t=>Number.isSafeInteger(t);O.plainObject=t=>{if(sA.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})};O.typedArray=t=>Nj(Vo(t));var zj=t=>O.safeInteger(t)&&t>=0;O.arrayLike=t=>!O.nullOrUndefined(t)&&!O.function_(t)&&zj(t.length);O.inRange=(t,e)=>{if(O.number(e))return t>=Math.min(0,e)&&t<=Math.max(e,0);if(O.array(e)&&e.length===2)return t>=Math.min(...e)&&t<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};var Gj=1,Wj=["innerHTML","ownerDocument","style","attributes","nodeValue"];O.domElement=t=>O.object(t)&&t.nodeType===Gj&&O.string(t.nodeName)&&!O.plainObject(t)&&Wj.every(e=>e in t);O.observable=t=>{var e,r,i,n;return t?t===((r=(e=t)[Symbol.observable])===null||r===void 0?void 0:r.call(e))||t===((n=(i=t)["@@observable"])===null||n===void 0?void 0:n.call(i)):!1};O.nodeStream=t=>O.object(t)&&O.function_(t.pipe)&&!O.observable(t);O.infinite=t=>t===1/0||t===-1/0;var oA=t=>e=>O.integer(e)&&Math.abs(e%2)===t;O.evenInteger=oA(0);O.oddInteger=oA(1);O.emptyArray=t=>O.array(t)&&t.length===0;O.nonEmptyArray=t=>O.array(t)&&t.length>0;O.emptyString=t=>O.string(t)&&t.length===0;var Vj=t=>O.string(t)&&!/\S/.test(t);O.emptyStringOrWhitespace=t=>O.emptyString(t)||Vj(t);O.nonEmptyString=t=>O.string(t)&&t.length>0;O.nonEmptyStringAndNotWhitespace=t=>O.string(t)&&!O.emptyStringOrWhitespace(t);O.emptyObject=t=>O.object(t)&&!O.map(t)&&!O.set(t)&&Object.keys(t).length===0;O.nonEmptyObject=t=>O.object(t)&&!O.map(t)&&!O.set(t)&&Object.keys(t).length>0;O.emptySet=t=>O.set(t)&&t.size===0;O.nonEmptySet=t=>O.set(t)&&t.size>0;O.emptyMap=t=>O.map(t)&&t.size===0;O.nonEmptyMap=t=>O.map(t)&&t.size>0;O.propertyKey=t=>O.any([O.string,O.number,O.symbol],t);O.formData=t=>ke("FormData")(t);O.urlSearchParams=t=>ke("URLSearchParams")(t);var aA=(t,e,r)=>{if(!O.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)};O.any=(t,...e)=>(O.array(t)?t:[t]).some(i=>aA(Array.prototype.some,i,e));O.all=(t,...e)=>aA(Array.prototype.every,t,e);var se=(t,e,r,i={})=>{if(!t){let{multipleValues:n}=i,s=n?`received values of types ${[...new Set(r.map(o=>`\`${O(o)}\``))].join(", ")}`:`received value of type \`${O(r)}\``;throw new TypeError(`Expected value which is \`${e}\`, ${s}.`)}};Vr.assert={undefined:t=>se(O.undefined(t),"undefined",t),string:t=>se(O.string(t),"string",t),number:t=>se(O.number(t),"number",t),bigint:t=>se(O.bigint(t),"bigint",t),function_:t=>se(O.function_(t),"Function",t),null_:t=>se(O.null_(t),"null",t),class_:t=>se(O.class_(t),"Class",t),boolean:t=>se(O.boolean(t),"boolean",t),symbol:t=>se(O.symbol(t),"symbol",t),numericString:t=>se(O.numericString(t),"string with a number",t),array:(t,e)=>{se(O.array(t),"Array",t),e&&t.forEach(e)},buffer:t=>se(O.buffer(t),"Buffer",t),blob:t=>se(O.blob(t),"Blob",t),nullOrUndefined:t=>se(O.nullOrUndefined(t),"null or undefined",t),object:t=>se(O.object(t),"Object",t),iterable:t=>se(O.iterable(t),"Iterable",t),asyncIterable:t=>se(O.asyncIterable(t),"AsyncIterable",t),generator:t=>se(O.generator(t),"Generator",t),asyncGenerator:t=>se(O.asyncGenerator(t),"AsyncGenerator",t),nativePromise:t=>se(O.nativePromise(t),"native Promise",t),promise:t=>se(O.promise(t),"Promise",t),generatorFunction:t=>se(O.generatorFunction(t),"GeneratorFunction",t),asyncGeneratorFunction:t=>se(O.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),asyncFunction:t=>se(O.asyncFunction(t),"AsyncFunction",t),boundFunction:t=>se(O.boundFunction(t),"Function",t),regExp:t=>se(O.regExp(t),"RegExp",t),date:t=>se(O.date(t),"Date",t),error:t=>se(O.error(t),"Error",t),map:t=>se(O.map(t),"Map",t),set:t=>se(O.set(t),"Set",t),weakMap:t=>se(O.weakMap(t),"WeakMap",t),weakSet:t=>se(O.weakSet(t),"WeakSet",t),int8Array:t=>se(O.int8Array(t),"Int8Array",t),uint8Array:t=>se(O.uint8Array(t),"Uint8Array",t),uint8ClampedArray:t=>se(O.uint8ClampedArray(t),"Uint8ClampedArray",t),int16Array:t=>se(O.int16Array(t),"Int16Array",t),uint16Array:t=>se(O.uint16Array(t),"Uint16Array",t),int32Array:t=>se(O.int32Array(t),"Int32Array",t),uint32Array:t=>se(O.uint32Array(t),"Uint32Array",t),float32Array:t=>se(O.float32Array(t),"Float32Array",t),float64Array:t=>se(O.float64Array(t),"Float64Array",t),bigInt64Array:t=>se(O.bigInt64Array(t),"BigInt64Array",t),bigUint64Array:t=>se(O.bigUint64Array(t),"BigUint64Array",t),arrayBuffer:t=>se(O.arrayBuffer(t),"ArrayBuffer",t),sharedArrayBuffer:t=>se(O.sharedArrayBuffer(t),"SharedArrayBuffer",t),dataView:t=>se(O.dataView(t),"DataView",t),enumCase:(t,e)=>se(O.enumCase(t,e),"EnumCase",t),urlInstance:t=>se(O.urlInstance(t),"URL",t),urlString:t=>se(O.urlString(t),"string with a URL",t),truthy:t=>se(O.truthy(t),"truthy",t),falsy:t=>se(O.falsy(t),"falsy",t),nan:t=>se(O.nan(t),"NaN",t),primitive:t=>se(O.primitive(t),"primitive",t),integer:t=>se(O.integer(t),"integer",t),safeInteger:t=>se(O.safeInteger(t),"integer",t),plainObject:t=>se(O.plainObject(t),"plain object",t),typedArray:t=>se(O.typedArray(t),"TypedArray",t),arrayLike:t=>se(O.arrayLike(t),"array-like",t),domElement:t=>se(O.domElement(t),"HTMLElement",t),observable:t=>se(O.observable(t),"Observable",t),nodeStream:t=>se(O.nodeStream(t),"Node.js Stream",t),infinite:t=>se(O.infinite(t),"infinite number",t),emptyArray:t=>se(O.emptyArray(t),"empty array",t),nonEmptyArray:t=>se(O.nonEmptyArray(t),"non-empty array",t),emptyString:t=>se(O.emptyString(t),"empty string",t),emptyStringOrWhitespace:t=>se(O.emptyStringOrWhitespace(t),"empty string or whitespace",t),nonEmptyString:t=>se(O.nonEmptyString(t),"non-empty string",t),nonEmptyStringAndNotWhitespace:t=>se(O.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),emptyObject:t=>se(O.emptyObject(t),"empty object",t),nonEmptyObject:t=>se(O.nonEmptyObject(t),"non-empty object",t),emptySet:t=>se(O.emptySet(t),"empty set",t),nonEmptySet:t=>se(O.nonEmptySet(t),"non-empty set",t),emptyMap:t=>se(O.emptyMap(t),"empty map",t),nonEmptyMap:t=>se(O.nonEmptyMap(t),"non-empty map",t),propertyKey:t=>se(O.propertyKey(t),"PropertyKey",t),formData:t=>se(O.formData(t),"FormData",t),urlSearchParams:t=>se(O.urlSearchParams(t),"URLSearchParams",t),evenInteger:t=>se(O.evenInteger(t),"even integer",t),oddInteger:t=>se(O.oddInteger(t),"odd integer",t),directInstanceOf:(t,e)=>se(O.directInstanceOf(t,e),"T",t),inRange:(t,e)=>se(O.inRange(t,e),"in range",t),any:(t,...e)=>se(O.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(t,...e)=>se(O.all(t,...e),"predicate returns truthy for all values",e,{multipleValues:!0})};Object.defineProperties(O,{class:{value:O.class_},function:{value:O.function_},null:{value:O.null_}});Object.defineProperties(Vr.assert,{class:{value:Vr.assert.class_},function:{value:Vr.assert.function_},null:{value:Vr.assert.null_}});Vr.default=O;Mc.exports=O;Mc.exports.default=O;Mc.exports.assert=Vr.assert});var uA=T((Ez,mm)=>{"use strict";var jc=class extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},Cs=class{static fn(e){return(...r)=>new Cs((i,n,s)=>{r.push(s),e(...r).then(i,n)})}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,i)=>{this._reject=i;let n=a=>{(!this._isCanceled||!o.shouldReject)&&(this._isPending=!1,r(a))},s=a=>{this._isPending=!1,i(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(n,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 jc(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(Cs.prototype,Promise.prototype);mm.exports=Cs;mm.exports.CancelError=jc});var cA=T((gm,_m)=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});function Yj(t){return t.encrypted}var ym=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let i=typeof r.connect=="function",n=typeof r.secureConnect=="function",s=typeof r.close=="function",o=()=>{i&&r.connect(),Yj(t)&&n&&(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)};gm.default=ym;_m.exports=ym;_m.exports.default=ym});var lA=T((Em,vm)=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});var Kj=cA(),Zj=require("util"),Jj=Number(process.versions.node.split(".")[0]),bm=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 i=()=>{e.abort=Date.now(),(!e.response||Jj>=13)&&(e.phases.total=Date.now()-e.start)};t.prependOnceListener("abort",i);let n=a=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,Zj.types.isProxy(a))return;let u=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};a.prependOnceListener("lookup",u),Kj.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?n(t.socket):t.prependOnceListener("socket",n);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",i)}),e};Em.default=bm;vm.exports=bm;vm.exports.default=bm});var gA=T((vz,xm)=>{"use strict";var{V4MAPPED:Xj,ADDRCONFIG:Qj,ALL:yA,promises:{Resolver:hA},lookup:e8}=require("dns"),{promisify:wm}=require("util"),t8=require("os"),Rs=Symbol("cacheableLookupCreateConnection"),Sm=Symbol("cacheableLookupInstance"),fA=Symbol("expires"),r8=typeof yA=="number",dA=t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},i8=t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},pA=()=>{let t=!1,e=!1;for(let r of Object.values(t8.networkInterfaces()))for(let i of r)if(!i.internal&&(i.family==="IPv6"?e=!0:t=!0,t&&e))return{has4:t,has6:e};return{has4:t,has6:e}},n8=t=>Symbol.iterator in t,mA={ttl:!0},s8={all:!0},qc=class{constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:i=3600,errorTtl:n=.15,resolver:s=new hA,lookup:o=e8}={}){if(this.maxTtl=r,this.errorTtl=n,this._cache=e,this._resolver=s,this._dnsLookup=wm(o),this._resolver instanceof hA?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=wm(this._resolver.resolve4.bind(this._resolver)),this._resolve6=wm(this._resolver.resolve6.bind(this._resolver))),this._iface=pA(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,i<1)this._fallback=!1;else{this._fallback=!0;let a=setInterval(()=>{this._hostnamesToFallback.clear()},i*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,i){if(typeof r=="function"?(i=r,r={}):typeof r=="number"&&(r={family:r}),!i)throw new Error("Callback must be a function.");this.lookupAsync(e,r).then(n=>{r.all?i(null,n):i(null,n.address,n.family,n.expires,n.ttl)},i)}async lookupAsync(e,r={}){typeof r=="number"&&(r={family:r});let i=await this.query(e);if(r.family===6){let n=i.filter(s=>s.family===6);r.hints&Xj&&(r8&&r.hints&yA||n.length===0)?i8(i):i=n}else r.family===4&&(i=i.filter(n=>n.family===4));if(r.hints&Qj){let{_iface:n}=this;i=i.filter(s=>s.family===6?n.has6:n.has4)}if(i.length===0){let n=new Error(`cacheableLookup ENOTFOUND ${e}`);throw n.code="ENOTFOUND",n.hostname=e,n}return r.all?i:i[0]}async query(e){let r=await this._cache.get(e);if(!r){let i=this._pending[e];if(i)r=await i;else{let n=this.queryAndCache(e);this._pending[e]=n;try{r=await n}finally{delete this._pending[e]}}}return r=r.map(i=>({...i})),r}async _resolve(e){let r=async c=>{try{return await c}catch(l){if(l.code==="ENODATA"||l.code==="ENOTFOUND")return[];throw l}},[i,n]=await Promise.all([this._resolve4(e,mA),this._resolve6(e,mA)].map(c=>r(c))),s=0,o=0,a=0,u=Date.now();for(let c of i)c.family=4,c.expires=u+c.ttl*1e3,s=Math.max(s,c.ttl);for(let c of n)c.family=6,c.expires=u+c.ttl*1e3,o=Math.max(o,c.ttl);return i.length>0?n.length>0?a=Math.min(s,o):a=s:a=o,{entries:[...i,...n],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,i){if(this.maxTtl>0&&i>0){i=Math.min(i,this.maxTtl)*1e3,r[fA]=Date.now()+i;try{await this._cache.set(e,r,i)}catch(n){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=n,s}}n8(this._cache)&&this._tick(i)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,s8);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 i=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(e,r.entries,i),r.entries}_tick(e){let r=this._nextRemovalTime;(!r||e<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let i=1/0,n=Date.now();for(let[s,o]of this._cache){let a=o[fA];n>=a?this._cache.delete(s):a<i&&(i=a)}i!==1/0&&this._tick(i-n)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(dA(e),Rs in e)throw new Error("CacheableLookup has been already installed");e[Rs]=e.createConnection,e[Sm]=this,e.createConnection=(r,i)=>("lookup"in r||(r.lookup=this.lookup),e[Rs](r,i))}uninstall(e){if(dA(e),e[Rs]){if(e[Sm]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[Rs],delete e[Rs],delete e[Sm]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=pA(),(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()}};xm.exports=qc;xm.exports.default=qc});var EA=T((wz,bA)=>{"use strict";var o8="text/plain",a8="us-ascii",_A=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),u8=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:i,data:n,hash:s}=r.groups,o=i.split(";");s=e?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let u=(o.shift()||"").toLowerCase(),l=[...o.map(h=>{let[f,d=""]=h.split("=").map(m=>m.trim());return f==="charset"&&(d=d.toLowerCase(),d===a8)?"":`${f}${d?`=${d}`:""}`}).filter(Boolean)];return a&&l.push("base64"),(l.length!==0||u&&u!==o8)&&l.unshift(u),`data:${l.join(";")},${a?n.trim():n}${s?`#${s}`:""}`},c8=(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 u8(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 n=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&n.protocol==="https:"&&(n.protocol="http:"),e.forceHttps&&n.protocol==="http:"&&(n.protocol="https:"),e.stripAuthentication&&(n.username="",n.password=""),e.stripHash?n.hash="":e.stripTextFragment&&(n.hash=n.hash.replace(/#?:~:text.*?$/i,"")),n.pathname&&(n.pathname=n.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),n.pathname)try{n.pathname=decodeURI(n.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=n.pathname.split("/"),a=o[o.length-1];_A(a,e.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),n.pathname=o.slice(1).join("/")+"/")}if(n.hostname&&(n.hostname=n.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(n.hostname)&&(n.hostname=n.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...n.searchParams.keys()])_A(o,e.removeQueryParameters)&&n.searchParams.delete(o);e.removeQueryParameters===!0&&(n.search=""),e.sortQueryParameters&&n.searchParams.sort(),e.removeTrailingSlash&&(n.pathname=n.pathname.replace(/\/$/,""));let s=t;return t=n.toString(),!e.removeSingleSlash&&n.pathname==="/"&&!s.endsWith("/")&&n.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||n.pathname==="/")&&n.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t};bA.exports=c8});var SA=T((Sz,wA)=>{wA.exports=vA;function vA(t,e){if(t&&e)return vA(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(i){r[i]=t[i]}),r;function r(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];var s=t.apply(this,i),o=i[i.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var Am=T((xz,Dm)=>{var xA=SA();Dm.exports=xA(Uc);Dm.exports.strict=xA(DA);Uc.proto=Uc(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Uc(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return DA(this)},configurable:!0})});function Uc(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function DA(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 RA=T((Dz,CA)=>{var l8=Am(),h8=function(){},f8=function(t){return t.setHeader&&typeof t.abort=="function"},d8=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},AA=function(t,e,r){if(typeof e=="function")return AA(t,null,e);e||(e={}),r=l8(r||h8);var i=t._writableState,n=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)},h=function(p){r.call(t,p?new Error("exited with error code: "+p):null)},f=function(p){r.call(t,p)},d=function(){process.nextTick(m)},m=function(){if(!a){if(s&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"));if(o&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"))}},y=function(){t.req.on("finish",c)};return f8(t)?(t.on("complete",c),t.on("abort",d),t.req?y():t.on("request",y)):o&&!i&&(t.on("end",u),t.on("close",u)),d8(t)&&t.on("exit",h),t.on("end",l),t.on("finish",c),e.error!==!1&&t.on("error",f),t.on("close",d),function(){a=!0,t.removeListener("complete",c),t.removeListener("abort",d),t.removeListener("request",y),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("exit",h),t.removeListener("end",l),t.removeListener("error",f),t.removeListener("close",d)}};CA.exports=AA});var OA=T((Az,kA)=>{var p8=Am(),m8=RA(),Cm=require("fs"),Yo=function(){},y8=/^v?\.0/.test(process.version),Hc=function(t){return typeof t=="function"},g8=function(t){return!y8||!Cm?!1:(t instanceof(Cm.ReadStream||Yo)||t instanceof(Cm.WriteStream||Yo))&&Hc(t.close)},_8=function(t){return t.setHeader&&Hc(t.abort)},b8=function(t,e,r,i){i=p8(i);var n=!1;t.on("close",function(){n=!0}),m8(t,{readable:e,writable:r},function(o){if(o)return i(o);n=!0,i()});var s=!1;return function(o){if(!n&&!s){if(s=!0,g8(t))return t.close(Yo);if(_8(t))return t.abort();if(Hc(t.destroy))return t.destroy();i(o||new Error("stream was destroyed"))}}},TA=function(t){t()},E8=function(t,e){return t.pipe(e)},v8=function(){var t=Array.prototype.slice.call(arguments),e=Hc(t[t.length-1]||Yo)&&t.pop()||Yo;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,i=t.map(function(n,s){var o=s<t.length-1,a=s>0;return b8(n,o,a,function(u){r||(r=u),u&&i.forEach(TA),!o&&(i.forEach(TA),e(r))})});return t.reduce(E8)};kA.exports=v8});var PA=T((Cz,FA)=>{"use strict";var{PassThrough:w8}=require("stream");FA.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,i=r==="buffer",n=!1;e?n=!(r||i):r=r||"utf8",i&&(r=null);let s=new w8({objectMode:n});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",u=>{a.push(u),n?o=a.length:o+=u.length}),s.getBufferedValue=()=>e?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var IA=T((Rz,Ts)=>{"use strict";var{constants:S8}=require("buffer"),x8=OA(),D8=PA(),$c=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function zc(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i;return await new Promise((n,s)=>{let o=a=>{a&&i.getBufferedLength()<=S8.MAX_LENGTH&&(a.bufferedData=i.getBufferedValue()),s(a)};i=x8(t,D8(e),a=>{if(a){o(a);return}n()}),i.on("data",()=>{i.getBufferedLength()>r&&o(new $c)})}),i.getBufferedValue()}Ts.exports=zc;Ts.exports.default=zc;Ts.exports.buffer=(t,e)=>zc(t,{...e,encoding:"buffer"});Ts.exports.array=(t,e)=>zc(t,{...e,array:!0});Ts.exports.MaxBufferError=$c});var BA=T((kz,LA)=>{"use strict";var A8=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),C8=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),R8=new Set([500,502,503,504]),T8={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},k8={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function ln(t){let e=parseInt(t,10);return isFinite(e)?e:0}function O8(t){return t?R8.has(t.status):!0}function Rm(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let i of r){let[n,s]=i.split(/=/,2);e[n.trim()]=s===void 0?!0:s.trim().replace(/^"|"$/g,"")}return e}function F8(t){let e=[];for(let r in t){let i=t[r];e.push(i===!0?r:r+"="+i)}if(e.length)return e.join(", ")}LA.exports=class{constructor(e,r,{shared:i,cacheHeuristic:n,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=i!==!1,this._cacheHeuristic=n!==void 0?n:.1,this._immutableMinTtl=s!==void 0?s:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=Rm(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=Rm(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":F8(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())&&C8.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||A8.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=Rm(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 i of r)if(e.headers[i]!==this._reqHeaders[i])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let i in e)T8[i]||(r[i]=e[i]);if(e.connection){let i=e.connection.trim().split(/\s*,\s*/);for(let n of i)delete r[n]}if(r.warning){let i=r.warning.split(/,/).filter(n=>!/^\s*1[0-9][0-9]/.test(n));i.length?r.warning=i.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 ln(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 ln(this._rescc["s-maxage"])}if(this._rescc["max-age"])return ln(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let i=Date.parse(this._resHeaders.expires);return Number.isNaN(i)||i<r?0:Math.max(e,(i-r)/1e3)}if(this._resHeaders["last-modified"]){let i=Date.parse(this._resHeaders["last-modified"]);if(isFinite(i)&&r>i)return Math.max(e,(r-i)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+ln(this._rescc["stale-if-error"]),i=e+ln(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,i)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+ln(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+ln(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 n=r["if-none-match"].split(/,/).filter(s=>!/^\s*W\//.test(s));n.length?r["if-none-match"]=n.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()&&O8(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let i=!1;if(r.status!==void 0&&r.status!=304?i=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?i=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?i=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?i=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(i=!0),!i)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let n={};for(let o in this._resHeaders)n[o]=o in r.headers&&!k8[o]?r.headers[o]:this._resHeaders[o];let s=Object.assign({},r,{status:this._status,method:this._method,headers:n});return{policy:new this.constructor(e,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var Gc=T((Oz,NA)=>{"use strict";NA.exports=t=>{let e={};for(let[r,i]of Object.entries(t))e[r.toLowerCase()]=i;return e}});var jA=T((Fz,MA)=>{"use strict";var P8=require("stream").Readable,I8=Gc(),Tm=class extends P8{constructor(e,r,i,n){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(!(i instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof n!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=I8(r),this.body=i,this.url=n}_read(){this.push(this.body),this.push(null)}};MA.exports=Tm});var UA=T((Pz,qA)=>{"use strict";var L8=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];qA.exports=(t,e)=>{let r=new Set(Object.keys(t).concat(L8));for(let i of r)i in e||(e[i]=typeof t[i]=="function"?t[i].bind(t):t[i])}});var $A=T((Iz,HA)=>{"use strict";var B8=require("stream").PassThrough,N8=UA(),M8=t=>{if(!(t&&t.pipe))throw new TypeError("Parameter `response` must be a response stream.");let e=new B8;return N8(t,e),t.pipe(e)};HA.exports=M8});var zA=T(km=>{km.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="",i=Array.isArray(e);r=i?"[":"{";var n=!0;for(var s in e){var o=typeof e[s]=="function"||!i&&typeof e[s]=="undefined";Object.hasOwnProperty.call(e,s)&&!o&&(n||(r+=","),n=!1,i?e[s]==null?r+="null":r+=t(e[s]):e[s]!==void 0&&(r+=t(s)+":"+t(e[s])))}return r+=i?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e=="undefined"?"null":JSON.stringify(e)};km.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 YA=T((Bz,VA)=>{"use strict";var j8=require("events"),GA=zA(),q8=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},WA=["sqlite","postgres","mysql","mongo","redis","tiered"],Om=class extends j8{constructor(e,{emitErrors:r=!0,...i}={}){if(super(),this.opts={namespace:"keyv",serialize:GA.stringify,deserialize:GA.parse,...typeof e=="string"?{uri:e}:e,...i},!this.opts.store){let s={...this.opts};this.opts.store=q8(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 n=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=n(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=n(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return WA.includes(this.opts.store.opts.dialect)||WA.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:i}=this.opts,n=Array.isArray(e),s=n?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(n&&i.getMany===void 0){let o=[];for(let a of s)o.push(Promise.resolve().then(()=>i.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(()=>n?i.getMany(s):i.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(n){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,i){let n=this._getKeyPrefix(e);typeof i=="undefined"&&(i=this.opts.ttl),i===0&&(i=void 0);let{store:s}=this.opts;return Promise.resolve().then(()=>{let o=typeof i=="number"?Date.now()+i: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(n,o,i)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let n=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let s=[];for(let o of n)s.push(r.delete(o));return Promise.allSettled(s).then(o=>o.every(a=>a.value===!0))}return Promise.resolve().then(()=>r.deleteMany(n))}let i=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(i))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:i}=this.opts;return Promise.resolve().then(async()=>typeof i.has=="function"?i.has(r):await i.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};VA.exports=Om});var JA=T((Nz,ZA)=>{"use strict";var U8=require("events"),Wc=require("url"),H8=EA(),$8=IA(),Fm=BA(),KA=jA(),z8=Gc(),G8=$A(),W8=YA(),er=class{constructor(e,r){if(typeof e!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new W8({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(r,i)=>{let n;if(typeof r=="string")n=Pm(Wc.parse(r)),r={};else if(r instanceof Wc.URL)n=Pm(Wc.parse(r.toString())),r={};else{let[h,...f]=(r.path||"").split("?"),d=f.length>0?`?${f.join("?")}`:"";n=Pm({...r,pathname:h,search:d})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...V8(n)},r.headers=z8(r.headers);let s=new U8,o=H8(Wc.format(n),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),a=`${r.method}:${o}`,u=!1,c=!1,l=h=>{c=!0;let f=!1,d,m=new Promise(p=>{d=()=>{f||(f=!0,p())}}),y=p=>{if(u&&!h.forceRefresh){p.status=p.statusCode;let C=Fm.fromObject(u.cachePolicy).revalidatedPolicy(h,p);if(!C.modified){let k=C.policy.responseHeaders();p=new KA(u.statusCode,k,u.body,u.url),p.cachePolicy=C.policy,p.fromCache=!0}}p.fromCache||(p.cachePolicy=new Fm(h,p,h),p.fromCache=!1);let v;h.cache&&p.cachePolicy.storable()?(v=G8(p),(async()=>{try{let C=$8.buffer(p);if(await Promise.race([m,new Promise(M=>p.once("end",M))]),f)return;let k=await C,P={cachePolicy:p.cachePolicy.toObject(),url:p.url,statusCode:p.fromCache?u.statusCode:p.statusCode,body:k},F=h.strictTtl?p.cachePolicy.timeToLive():void 0;h.maxTtl&&(F=F?Math.min(F,h.maxTtl):h.maxTtl),await this.cache.set(a,P,F)}catch(C){s.emit("error",new er.CacheError(C))}})()):h.cache&&u&&(async()=>{try{await this.cache.delete(a)}catch(C){s.emit("error",new er.CacheError(C))}})(),s.emit("response",v||p),typeof i=="function"&&i(v||p)};try{let p=e(h,y);p.once("error",d),p.once("abort",d),s.emit("request",p)}catch(p){s.emit("error",new er.RequestError(p))}};return(async()=>{let h=async d=>{await Promise.resolve();let m=d.cache?await this.cache.get(a):void 0;if(typeof m=="undefined")return l(d);let y=Fm.fromObject(m.cachePolicy);if(y.satisfiesWithoutRevalidation(d)&&!d.forceRefresh){let p=y.responseHeaders(),v=new KA(m.statusCode,p,m.body,m.url);v.cachePolicy=y,v.fromCache=!0,s.emit("response",v),typeof i=="function"&&i(v)}else u=m,d.headers=y.revalidationHeaders(d),l(d)},f=d=>s.emit("error",new er.CacheError(d));this.cache.once("error",f),s.on("response",()=>this.cache.removeListener("error",f));try{await h(r)}catch(d){r.automaticFailover&&!c&&l(r),s.emit("error",new er.CacheError(d))}})(),s}}};function V8(t){let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e}function Pm(t){return{protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}}er.RequestError=class extends Error{constructor(t){super(t.message),this.name="RequestError",Object.assign(this,t)}};er.CacheError=class extends Error{constructor(t){super(t.message),this.name="CacheError",Object.assign(this,t)}};ZA.exports=er});var QA=T((qz,XA)=>{"use strict";var Y8=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];XA.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(Y8)),i={};for(let n of r)n in e||(i[n]={get(){let s=t[n];return typeof s=="function"?s.bind(t):s},set(s){t[n]=s},enumerable:!0,configurable:!1});return Object.defineProperties(e,i),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 tC=T((Uz,eC)=>{"use strict";var{Transform:K8,PassThrough:Z8}=require("stream"),Im=require("zlib"),J8=QA();eC.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof Im.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let i=!0,n=new K8({transform(a,u,c){i=!1,c(null,a)},flush(a){a()}}),s=new Z8({autoDestroy:!1,destroy(a,u){t.destroy(),u(a)}}),o=r?Im.createBrotliDecompress():Im.createUnzip();return o.once("error",a=>{if(i&&!t.readable){s.end();return}s.destroy(a)}),J8(t,s),t.pipe(n).pipe(o).pipe(s),s}});var Bm=T((Hz,rC)=>{"use strict";var Lm=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[i,n]of this.oldCache.entries())this.onEviction(i,n);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)}};rC.exports=Lm});var Mm=T(($z,oC)=>{"use strict";var X8=require("events"),Q8=require("tls"),e5=require("http2"),t5=Bm(),ht=Symbol("currentStreamsCount"),iC=Symbol("request"),zt=Symbol("cachedOriginSet"),ks=Symbol("gracefullyClosing"),r5=["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"],i5=(t,e,r)=>{let i=0,n=t.length;for(;i<n;){let s=i+n>>>1;r(t[s],e)?i=s+1:n=s}return i},n5=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,Nm=(t,e)=>{for(let r of t)r[zt].length<e[zt].length&&r[zt].every(i=>e[zt].includes(i))&&r[ht]+e[ht]<=e.remoteSettings.maxConcurrentStreams&&sC(r)},s5=(t,e)=>{for(let r of t)e[zt].length<r[zt].length&&e[zt].every(i=>r[zt].includes(i))&&e[ht]+r[ht]<=r.remoteSettings.maxConcurrentStreams&&sC(e)},nC=({agent:t,isFree:e})=>{let r={};for(let i in t.sessions){let s=t.sessions[i].filter(o=>{let a=o[br.kCurrentStreamsCount]<o.remoteSettings.maxConcurrentStreams;return e?a:!a});s.length!==0&&(r[i]=s)}return r},sC=t=>{t[ks]=!0,t[ht]===0&&t.close()},br=class extends X8{constructor({timeout:e=6e4,maxSessions:r=1/0,maxFreeSessions:i=10,maxCachedTlsSessions:n=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxFreeSessions=i,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new t5({maxSize:n})}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 i of r5)e[i]&&(r+=`:${e[i]}`);return r}_tryToCreateNewSession(e,r){if(!(e in this.queue)||!(r in this.queue[e]))return;let i=this.queue[e][r];this._sessionsCount<this.maxSessions&&!i.completed&&(i.completed=!0,i())}getSession(e,r,i){return new Promise((n,s)=>{Array.isArray(i)?(i=[...i],n()):i=[{resolve:n,reject:s}];let o=this.normalizeOptions(r),a=br.normalizeOrigin(e,r&&r.servername);if(a===void 0){for(let{reject:l}of i)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],h=-1,f=-1,d;for(let m of l){let y=m.remoteSettings.maxConcurrentStreams;if(y<h)break;if(m[zt].includes(a)){let p=m[ht];if(p>=y||m[ks]||m.destroyed)continue;d||(h=y),p>f&&(d=m,f=p)}}if(d){if(i.length!==1){for(let{reject:m}of i){let y=new Error(`Expected the length of listeners to be 1, got ${i.length}.
|
15
|
+
Please report this to https://github.com/szmarczak/http2-wrapper/`);m(y)}return}i[0].resolve(d);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...i),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}`,h=!1;try{let f=e5.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(l),...r});f[ht]=0,f[ks]=!1;let d=()=>f[ht]<f.remoteSettings.maxConcurrentStreams,m=!0;f.socket.once("session",p=>{this.tlsSessionCache.set(l,p)}),f.once("error",p=>{for(let{reject:v}of i)v(p);this.tlsSessionCache.delete(l)}),f.setTimeout(this.timeout,()=>{f.destroy()}),f.once("close",()=>{if(h){m&&this._freeSessionsCount--,this._sessionsCount--;let p=this.sessions[o];p.splice(p.indexOf(f),1),p.length===0&&delete this.sessions[o]}else{let p=new Error("Session closed without receiving a SETTINGS frame");p.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:v}of i)v(p);u()}this._tryToCreateNewSession(o,a)});let y=()=>{if(!(!(o in this.queue)||!d())){for(let p of f[zt])if(p in this.queue[o]){let{listeners:v}=this.queue[o][p];for(;v.length!==0&&d();)v.shift().resolve(f);let C=this.queue[o];if(C[p].listeners.length===0&&(delete C[p],Object.keys(C).length===0)){delete this.queue[o];break}if(!d())break}}};f.on("origin",()=>{f[zt]=f.originSet,d()&&(y(),Nm(this.sessions[o],f))}),f.once("remoteSettings",()=>{if(f.ref(),f.unref(),this._sessionsCount++,c.destroyed){let p=new Error("Agent has been destroyed");for(let v of i)v.reject(p);f.destroy();return}f[zt]=f.originSet;{let p=this.sessions;if(o in p){let v=p[o];v.splice(i5(v,f,n5),0,f)}else p[o]=[f]}this._freeSessionsCount+=1,h=!0,this.emit("session",f),y(),u(),f[ht]===0&&this._freeSessionsCount>this.maxFreeSessions&&f.close(),i.length!==0&&(this.getSession(a,r,i),i.length=0),f.on("remoteSettings",()=>{y(),Nm(this.sessions[o],f)})}),f[iC]=f.request,f.request=(p,v)=>{if(f[ks])throw new Error("The session is gracefully closing. No new streams are allowed.");let C=f[iC](p,v);return f.ref(),++f[ht],f[ht]===f.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,C.once("close",()=>{if(m=d(),--f[ht],!f.destroyed&&!f.closed&&(s5(this.sessions[o],f),d()&&!f.closed)){m||(this._freeSessionsCount++,m=!0);let k=f[ht]===0;k&&f.unref(),k&&(this._freeSessionsCount>this.maxFreeSessions||f[ks])?f.close():(Nm(this.sessions[o],f),y())}}),C}}catch(f){for(let d of i)d.reject(f);u()}};c.listeners=i,c.completed=!1,c.destroyed=!1,this.queue[o][a]=c,this._tryToCreateNewSession(o,a)})}request(e,r,i,n){return new Promise((s,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{s(a.request(i,n))}catch(u){o(u)}}}])})}createConnection(e,r){return br.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let i=e.port||443,n=e.hostname||e.host;return typeof r.servername=="undefined"&&(r.servername=n),Q8.connect(i,n,r)}closeFreeSessions(){for(let e of Object.values(this.sessions))for(let r of e)r[ht]===0&&r.close()}destroy(e){for(let r of Object.values(this.sessions))for(let i of r)i.destroy(e);for(let r of Object.values(this.queue))for(let i of Object.values(r))i.destroyed=!0;this.queue={}}get freeSessions(){return nC({agent:this,isFree:!0})}get busySessions(){return nC({agent:this,isFree:!1})}};br.kCurrentStreamsCount=ht;br.kGracefullyClosing=ks;oC.exports={Agent:br,globalAgent:new br}});var qm=T((zz,aC)=>{"use strict";var{Readable:o5}=require("stream"),jm=class extends o5{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()}};aC.exports=jm});var Um=T((Gz,uC)=>{"use strict";uC.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 lC=T((Wz,cC)=>{"use strict";cC.exports=(t,e,r)=>{for(let i of r)t.on(i,(...n)=>e.emit(i,...n))}});var fC=T((Vz,hC)=>{"use strict";hC.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var pC=T((Kz,dC)=>{"use strict";var Os=(t,e,r)=>{dC.exports[e]=class extends t{constructor(...n){super(typeof r=="string"?r:r(n)),this.name=`${super.name} [${e}]`,this.code=e}}};Os(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],i=Array.isArray(r);return i&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${i?"one of":"of"} type ${r}. Received ${typeof t[2]}`});Os(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);Os(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);Os(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);Os(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);Os(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`)});var Wm=T((Zz,vC)=>{"use strict";var a5=require("http2"),{Writable:u5}=require("stream"),{Agent:mC,globalAgent:c5}=Mm(),l5=qm(),h5=Um(),f5=lC(),d5=fC(),{ERR_INVALID_ARG_TYPE:Hm,ERR_INVALID_PROTOCOL:p5,ERR_HTTP_HEADERS_SENT:yC,ERR_INVALID_HTTP_TOKEN:m5,ERR_HTTP_INVALID_HEADER_VALUE:y5,ERR_INVALID_CHAR:g5}=pC(),{HTTP2_HEADER_STATUS:gC,HTTP2_HEADER_METHOD:_C,HTTP2_HEADER_PATH:bC,HTTP2_METHOD_CONNECT:_5}=a5.constants,ct=Symbol("headers"),$m=Symbol("origin"),zm=Symbol("session"),EC=Symbol("options"),Vc=Symbol("flushedHeaders"),Ko=Symbol("jobs"),b5=/^[\^`\-\w!#$%&*+.|~]+$/,E5=/[^\t\u0020-\u007E\u0080-\u00FF]/,Gm=class extends u5{constructor(e,r,i){super({autoDestroy:!1});let n=typeof e=="string"||e instanceof URL;if(n&&(e=h5(e instanceof URL?e:new URL(e))),typeof r=="function"||r===void 0?(i=r,r=n?e:{...e}):r={...e,...r},r.h2session)this[zm]=r.h2session;else if(r.agent===!1)this.agent=new mC({maxFreeSessions:0});else if(typeof r.agent=="undefined"||r.agent===null)typeof r.createConnection=="function"?(this.agent=new mC({maxFreeSessions:0}),this.agent.createConnection=r.createConnection):this.agent=c5;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new Hm("options.agent",["Agent-like Object","undefined","false"],r.agent);if(r.protocol&&r.protocol!=="https:")throw new p5(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[ct]=Object.create(null),this[Ko]=[],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[ct])&&(this[ct].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[EC]=r,s===443?(this[$m]=`https://${o}`,":authority"in this[ct]||(this[ct][":authority"]=o)):(this[$m]=`https://${o}:${s}`,":authority"in this[ct]||(this[ct][":authority"]=`${o}:${s}`)),a&&this.setTimeout(a),i&&this.once("response",i),this[Vc]=!1}get method(){return this[ct][_C]}set method(e){e&&(this[ct][_C]=e.toUpperCase())}get path(){return this[ct][bC]}set path(e){e&&(this[ct][bC]=e)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,i){if(this._mustNotHaveABody){i(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let n=()=>this._request.write(e,r,i);this._request?n():this[Ko].push(n)}_final(e){if(this.destroyed)return;this.flushHeaders();let r=()=>{if(this._mustNotHaveABody){e();return}this._request.end(e)};this._request?r():this[Ko].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[Vc]||this.destroyed)return;this[Vc]=!0;let e=this.method===_5,r=i=>{if(this._request=i,this.destroyed){i.destroy();return}e||f5(i,this,["timeout","continue","close","error"]);let n=o=>(...a)=>{!this.writable&&!this.destroyed?o(...a):this.once("finish",()=>{o(...a)})};i.once("response",n((o,a,u)=>{let c=new l5(this.socket,i.readableHighWaterMark);this.res=c,c.req=this,c.statusCode=o[gC],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,i,Buffer.alloc(0))?this.emit("close"):i.destroy()):(i.on("data",l=>{!c._dumped&&!c.push(l)&&i.pause()}),i.once("end",()=>{c.push(null)}),this.emit("response",c)||c._dump())})),i.once("headers",n(o=>this.emit("information",{statusCode:o[gC]}))),i.once("trailers",n((o,a,u)=>{let{res:c}=this;c.trailers=o,c.rawTrailers=u}));let{socket:s}=i.session;this.socket=s,this.connection=s;for(let o of this[Ko])o();this.emit("socket",this.socket)};if(this[zm])try{r(this[zm].request(this[ct]))}catch(i){this.emit("error",i)}else{this.reusedSocket=!0;try{r(await this.agent.request(this[$m],this[EC],this[ct]))}catch(i){this.emit("error",i)}}}getHeader(e){if(typeof e!="string")throw new Hm("name","string",e);return this[ct][e.toLowerCase()]}get headersSent(){return this[Vc]}removeHeader(e){if(typeof e!="string")throw new Hm("name","string",e);if(this.headersSent)throw new yC("remove");delete this[ct][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new yC("set");if(typeof e!="string"||!b5.test(e)&&!d5(e))throw new m5("Header name",e);if(typeof r=="undefined")throw new y5(r,e);if(E5.test(r))throw new g5("header content",e);this[ct][e.toLowerCase()]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let i=()=>this._request.setTimeout(e,r);return this._request?i():this[Ko].push(i),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};vC.exports=Gm});var SC=T((Jz,wC)=>{"use strict";var v5=require("tls");wC.exports=(t={},e=v5.connect)=>new Promise((r,i)=>{let n=!1,s,o=async()=>{await u,s.off("timeout",a),s.off("error",i),t.resolveSocket?(r({alpnProtocol:s.alpnProtocol,socket:s,timeout:n}),n&&(await Promise.resolve(),s.emit("timeout"))):(s.destroy(),r({alpnProtocol:s.alpnProtocol,timeout:n}))},a=async()=>{n=!0,o()},u=(async()=>{try{s=await e(t,o),s.on("error",i),s.once("timeout",a)}catch(c){i(c)}})()})});var DC=T((Xz,xC)=>{"use strict";var w5=require("net");xC.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]),w5.isIP(e)?"":e}});var RC=T((Qz,Ym)=>{"use strict";var AC=require("http"),Vm=require("https"),S5=SC(),x5=Bm(),D5=Wm(),A5=DC(),C5=Um(),Yc=new x5({maxSize:100}),Zo=new Map,CC=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let i=()=>{t.emit("free",e,r)};e.on("free",i);let n=()=>{t.removeSocket(e,r)};e.on("close",n);let s=()=>{t.removeSocket(e,r),e.off("close",n),e.off("free",i),e.off("agentRemove",s)};e.on("agentRemove",s),t.emit("free",e,r)},R5=async t=>{let e=`${t.host}:${t.port}:${t.ALPNProtocols.sort()}`;if(!Yc.has(e)){if(Zo.has(e))return(await Zo.get(e)).alpnProtocol;let{path:r,agent:i}=t;t.path=t.socketPath;let n=S5(t);Zo.set(e,n);try{let{socket:s,alpnProtocol:o}=await n;if(Yc.set(e,o),t.path=r,o==="h2")s.destroy();else{let{globalAgent:a}=Vm,u=Vm.Agent.prototype.createConnection;i?i.createConnection===u?CC(i,s,t):s.destroy():a.createConnection===u?CC(a,s,t):s.destroy()}return Zo.delete(e),o}catch(s){throw Zo.delete(e),s}}return Yc.get(e)};Ym.exports=async(t,e,r)=>{if((typeof t=="string"||t instanceof URL)&&(t=C5(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 i=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||A5(e),e.port=e.port||(i?443:80),e._defaultAgent=i?Vm.globalAgent:AC.globalAgent;let n=e.agent;if(n){if(n.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");e.agent=n[i?"https":"http"]}return i&&await R5(e)==="h2"?(n&&(e.agent=n.http2),new D5(e,r)):AC.request(e,r)};Ym.exports.protocolCache=Yc});var kC=T((eG,TC)=>{"use strict";var T5=require("http2"),k5=Mm(),Km=Wm(),O5=qm(),F5=RC(),P5=(t,e,r)=>new Km(t,e,r),I5=(t,e,r)=>{let i=new Km(t,e,r);return i.end(),i};TC.exports={...T5,ClientRequest:Km,IncomingMessage:O5,...k5,request:P5,get:I5,auto:F5}});var Jm=T(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});var OC=Yr();Zm.default=t=>OC.default.nodeStream(t)&&OC.default.function_(t.getBoundary)});var LC=T(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});var PC=require("fs"),IC=require("util"),FC=Yr(),L5=Jm(),B5=IC.promisify(PC.stat);Xm.default=async(t,e)=>{if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(FC.default.string(t))return Buffer.byteLength(t);if(FC.default.buffer(t))return t.length;if(L5.default(t))return IC.promisify(t.getLength.bind(t))();if(t instanceof PC.ReadStream){let{size:r}=await B5(t.path);return r===0?void 0:r}}});var ey=T(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});function N5(t,e,r){let i={};for(let n of r)i[n]=(...s)=>{e.emit(n,...s)},t.on(n,i[n]);return()=>{for(let n of r)t.off(n,i[n])}}Qm.default=N5});var BC=T(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});ty.default=()=>{let t=[];return{once(e,r,i){e.once(r,i),t.push({origin:e,event:r,fn:i})},unhandleAll(){for(let e of t){let{origin:r,event:i,fn:n}=e;r.removeListener(i,n)}t.length=0}}}});var MC=T(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.TimeoutError=void 0;var M5=require("net"),j5=BC(),NC=Symbol("reentry"),q5=()=>{},Kc=class extends Error{constructor(e,r){super(`Timeout awaiting '${r}' for ${e}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};Jo.TimeoutError=Kc;Jo.default=(t,e,r)=>{if(NC in t)return q5;t[NC]=!0;let i=[],{once:n,unhandleAll:s}=j5.default(),o=(h,f,d)=>{var m;let y=setTimeout(f,h,h,d);(m=y.unref)===null||m===void 0||m.call(y);let p=()=>{clearTimeout(y)};return i.push(p),p},{host:a,hostname:u}=r,c=(h,f)=>{t.destroy(new Kc(h,f))},l=()=>{for(let h of i)h();s()};if(t.once("error",h=>{if(l(),t.listenerCount("error")===0)throw h}),t.once("close",l),n(t,"response",h=>{n(h,"end",l)}),typeof e.request!="undefined"&&o(e.request,c,"request"),typeof e.socket!="undefined"){let h=()=>{c(e.socket,"socket")};t.setTimeout(e.socket,h),i.push(()=>{t.removeListener("timeout",h)})}return n(t,"socket",h=>{var f;let{socketPath:d}=t;if(h.connecting){let m=!!(d!=null?d:M5.isIP((f=u!=null?u:a)!==null&&f!==void 0?f:"")!==0);if(typeof e.lookup!="undefined"&&!m&&typeof h.address().address=="undefined"){let y=o(e.lookup,c,"lookup");n(h,"lookup",y)}if(typeof e.connect!="undefined"){let y=()=>o(e.connect,c,"connect");m?n(h,"connect",y()):n(h,"lookup",p=>{p===null&&n(h,"connect",y())})}typeof e.secureConnect!="undefined"&&r.protocol==="https:"&&n(h,"connect",()=>{let y=o(e.secureConnect,c,"secureConnect");n(h,"secureConnect",y)})}if(typeof e.send!="undefined"){let m=()=>o(e.send,c,"send");h.connecting?n(h,"connect",()=>{n(t,"upload-complete",m())}):n(t,"upload-complete",m())}}),typeof e.response!="undefined"&&n(t,"upload-complete",()=>{let h=o(e.response,c,"response");n(t,"response",h)}),l}});var qC=T(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});var jC=Yr();ry.default=t=>{t=t;let e={protocol:t.protocol,hostname:jC.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 jC.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 UC=T(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});var U5=require("url"),H5=["protocol","host","hostname","port","pathname","search"];iy.default=(t,e)=>{var r,i;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}//${(i=(r=e.hostname)!==null&&r!==void 0?r:e.host)!==null&&i!==void 0?i:""}`}let n=new U5.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 H5)e[s]&&(n[s]=e[s].toString());return n}});var HC=T(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});var ny=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)}};sy.default=ny});var ay=T(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});var $5=async t=>{let e=[],r=0;for await(let i of t)e.push(i),r+=Buffer.byteLength(i);return Buffer.isBuffer(e[0])?Buffer.concat(e,r):Buffer.from(e.join(""))};oy.default=$5});var zC=T(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.dnsLookupIpVersionToFamily=hn.isDnsLookupIpVersion=void 0;var $C={auto:0,ipv4:4,ipv6:6};hn.isDnsLookupIpVersion=t=>t in $C;hn.dnsLookupIpVersionToFamily=t=>{if(hn.isDnsLookupIpVersion(t))return $C[t];throw new Error("Invalid DNS lookup IP version")}});var uy=T(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.isResponseOk=void 0;Zc.isResponseOk=t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304}});var WC=T(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});var GC=new Set;cy.default=t=>{GC.has(t)||(GC.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}});var VC=T(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});var Pe=Yr(),z5=(t,e)=>{if(Pe.default.null_(t.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");Pe.assert.any([Pe.default.string,Pe.default.undefined],t.encoding),Pe.assert.any([Pe.default.boolean,Pe.default.undefined],t.resolveBodyOnly),Pe.assert.any([Pe.default.boolean,Pe.default.undefined],t.methodRewriting),Pe.assert.any([Pe.default.boolean,Pe.default.undefined],t.isStream),Pe.assert.any([Pe.default.string,Pe.default.undefined],t.responseType),t.responseType===void 0&&(t.responseType="text");let{retry:r}=t;if(e?t.retry={...e.retry}:t.retry={calculateDelay:i=>i.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},Pe.default.object(r)?(t.retry={...t.retry,...r},t.retry.methods=[...new Set(t.retry.methods.map(i=>i.toUpperCase()))],t.retry.statusCodes=[...new Set(t.retry.statusCodes)],t.retry.errorCodes=[...new Set(t.retry.errorCodes)]):Pe.default.number(r)&&(t.retry.limit=r),Pe.default.undefined(t.retry.maxRetryAfter)&&(t.retry.maxRetryAfter=Math.min(...[t.timeout.request,t.timeout.connect].filter(Pe.default.number))),Pe.default.object(t.pagination)){e&&(t.pagination={...e.pagination,...t.pagination});let{pagination:i}=t;if(!Pe.default.function_(i.transform))throw new Error("`options.pagination.transform` must be implemented");if(!Pe.default.function_(i.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!Pe.default.function_(i.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!Pe.default.function_(i.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};ly.default=z5});var YC=T(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.retryAfterStatusCodes=void 0;Xo.retryAfterStatusCodes=new Set([413,429,503]);var G5=({attemptCount:t,retryOptions:e,error:r,retryAfter:i})=>{if(t>e.limit)return 0;let n=e.methods.includes(r.options.method),s=e.errorCodes.includes(r.code),o=r.response&&e.statusCodes.includes(r.response.statusCode);if(!n||!s&&!o)return 0;if(r.response){if(i)return e.maxRetryAfter===void 0||i>e.maxRetryAfter?0:i;if(r.response.statusCode===413)return 0}let a=Math.random()*100;return 2**(t-1)*1e3+a};Xo.default=G5});var ta=T(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.UnsupportedProtocolError=Ce.ReadError=Ce.TimeoutError=Ce.UploadError=Ce.CacheError=Ce.HTTPError=Ce.MaxRedirectsError=Ce.RequestError=Ce.setNonEnumerableProperties=Ce.knownHookEvents=Ce.withoutBody=Ce.kIsNormalizedAlready=void 0;var KC=require("util"),ZC=require("stream"),W5=require("fs"),Ci=require("url"),JC=require("http"),hy=require("http"),V5=require("https"),Y5=lA(),K5=gA(),XC=JA(),Z5=tC(),J5=kC(),X5=Gc(),Y=Yr(),Q5=LC(),QC=Jm(),eq=ey(),e1=MC(),tq=qC(),t1=UC(),rq=HC(),iq=ay(),r1=zC(),nq=uy(),Ri=WC(),sq=VC(),oq=YC(),fy,Xe=Symbol("request"),Qc=Symbol("response"),Fs=Symbol("responseSize"),Ps=Symbol("downloadedSize"),Is=Symbol("bodySize"),Ls=Symbol("uploadedSize"),Jc=Symbol("serverResponsesPiped"),i1=Symbol("unproxyEvents"),n1=Symbol("isFromCache"),dy=Symbol("cancelTimeouts"),s1=Symbol("startedReading"),Bs=Symbol("stopReading"),Xc=Symbol("triggerRead"),Ti=Symbol("body"),Qo=Symbol("jobs"),o1=Symbol("originalResponse"),a1=Symbol("retryTimeout");Ce.kIsNormalizedAlready=Symbol("isNormalizedAlready");var aq=Y.default.string(process.versions.brotli);Ce.withoutBody=new Set(["GET","HEAD"]);Ce.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function uq(t){for(let e in t){let r=t[e];if(!Y.default.string(r)&&!Y.default.number(r)&&!Y.default.boolean(r)&&!Y.default.null_(r)&&!Y.default.undefined(r))throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}function cq(t){return Y.default.object(t)&&!("statusCode"in t)}var py=new rq.default,lq=async t=>new Promise((e,r)=>{let i=n=>{r(n)};t.pending||e(),t.once("error",i),t.once("ready",()=>{t.off("error",i),e()})}),hq=new Set([300,301,302,303,304,307,308]),fq=["context","body","json","form"];Ce.setNonEnumerableProperties=(t,e)=>{let r={};for(let i of t)if(i)for(let n of fq)n in i&&(r[n]={writable:!0,configurable:!0,enumerable:!1,value:i[n]});Object.defineProperties(e,r)};var je=class extends Error{constructor(e,r,i){var n,s;if(super(e),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(n=r.code)!==null&&n!==void 0?n:"ERR_GOT_REQUEST_ERROR",i instanceof ol?(Object.defineProperty(this,"request",{enumerable:!1,value:i}),Object.defineProperty(this,"response",{enumerable:!1,value:i[Qc]}),Object.defineProperty(this,"options",{enumerable:!1,value:i.options})):Object.defineProperty(this,"options",{enumerable:!1,value:i}),this.timings=(s=this.request)===null||s===void 0?void 0:s.timings,Y.default.string(r.stack)&&Y.default.string(this.stack)){let o=this.stack.indexOf(this.message)+this.message.length,a=this.stack.slice(o).split(`
|
16
16
|
`).reverse(),u=r.stack.slice(r.stack.indexOf(r.message)+r.message.length).split(`
|
17
17
|
`).reverse();for(;u.length!==0&&u[0]===a[0];)a.shift();this.stack=`${this.stack.slice(0,o)}${a.reverse().join(`
|
18
18
|
`)}${u.reverse().join(`
|
19
|
-
`)}`}}};Ce.RequestError=je;var tl=class extends je{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};Ce.MaxRedirectsError=tl;var rl=class extends je{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};Ce.HTTPError=rl;var il=class extends je{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};Ce.CacheError=il;var nl=class extends je{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};Ce.UploadError=nl;var sl=class extends je{constructor(e,r,i){super(e.message,e,i),this.name="TimeoutError",this.event=e.event,this.timings=r}};Ce.TimeoutError=sl;var ta=class extends je{constructor(e,r){super(e.message,e,r),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};Ce.ReadError=ta;var ol=class extends je{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};Ce.UnsupportedProtocolError=ol;var fq=["socket","connect","continue","information","upgrade","timeout"],al=class extends KC.Duplex{constructor(e,r={},i){super({autoDestroy:!1,highWaterMark:0}),this[Is]=0,this[Bs]=0,this.requestInitialized=!1,this[Xc]=new Set,this.redirects=[],this[Ns]=!1,this[Qc]=!1,this[ea]=[],this.retryCount=0,this._progressCallbacks=[];let n=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",c=>{c.prependListener("data",n),c.on("data",s),c.prependListener("end",n),c.on("end",s)}),this.on("unpipe",c=>{c.off("data",n),c.off("data",s),c.off("end",n),c.off("end",s)}),this.on("pipe",c=>{c instanceof hy.IncomingMessage&&(this.options.headers={...c.headers,...this.options.headers})});let{json:o,body:a,form:u}=r;if((o||a||u)&&this._lockWrite(),Ce.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,i)}catch(c){Y.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(c);return}(async()=>{var c;try{this.options.body instanceof G5.ReadStream&&await cq(this.options.body);let{url:l}=this.options;if(!l)throw new TypeError("Missing `url` property");if(this.requestUrl=l.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(c=this[Xe])===null||c===void 0||c.destroy();return}for(let h of this[ea])h();this[ea].length=0,this.requestInitialized=!0}catch(l){if(l instanceof je){this._beforeError(l);return}this.destroyed||this.destroy(l)}})()}static normalizeArguments(e,r,i){var n,s,o,a,u;let c=r;if(Y.default.object(e)&&!Y.default.urlInstance(e))r={...i,...e,...r};else{if(e&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...i,...r},e!==void 0&&(r.url=e),Y.default.urlInstance(r.url)&&(r.url=new Ci.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),Y.assert.any([Y.default.string,Y.default.undefined],r.method),Y.assert.any([Y.default.object,Y.default.undefined],r.headers),Y.assert.any([Y.default.string,Y.default.urlInstance,Y.default.undefined],r.prefixUrl),Y.assert.any([Y.default.object,Y.default.undefined],r.cookieJar),Y.assert.any([Y.default.object,Y.default.string,Y.default.undefined],r.searchParams),Y.assert.any([Y.default.object,Y.default.string,Y.default.undefined],r.cache),Y.assert.any([Y.default.object,Y.default.number,Y.default.undefined],r.timeout),Y.assert.any([Y.default.object,Y.default.undefined],r.context),Y.assert.any([Y.default.object,Y.default.undefined],r.hooks),Y.assert.any([Y.default.boolean,Y.default.undefined],r.decompress),Y.assert.any([Y.default.boolean,Y.default.undefined],r.ignoreInvalidCookies),Y.assert.any([Y.default.boolean,Y.default.undefined],r.followRedirect),Y.assert.any([Y.default.number,Y.default.undefined],r.maxRedirects),Y.assert.any([Y.default.boolean,Y.default.undefined],r.throwHttpErrors),Y.assert.any([Y.default.boolean,Y.default.undefined],r.http2),Y.assert.any([Y.default.boolean,Y.default.undefined],r.allowGetBody),Y.assert.any([Y.default.string,Y.default.undefined],r.localAddress),Y.assert.any([t1.isDnsLookupIpVersion,Y.default.undefined],r.dnsLookupIpVersion),Y.assert.any([Y.default.object,Y.default.undefined],r.https),Y.assert.any([Y.default.boolean,Y.default.undefined],r.rejectUnauthorized),r.https&&(Y.assert.any([Y.default.boolean,Y.default.undefined],r.https.rejectUnauthorized),Y.assert.any([Y.default.function_,Y.default.undefined],r.https.checkServerIdentity),Y.assert.any([Y.default.string,Y.default.object,Y.default.array,Y.default.undefined],r.https.certificateAuthority),Y.assert.any([Y.default.string,Y.default.object,Y.default.array,Y.default.undefined],r.https.key),Y.assert.any([Y.default.string,Y.default.object,Y.default.array,Y.default.undefined],r.https.certificate),Y.assert.any([Y.default.string,Y.default.undefined],r.https.passphrase),Y.assert.any([Y.default.string,Y.default.buffer,Y.default.array,Y.default.undefined],r.https.pfx)),Y.assert.any([Y.default.object,Y.default.undefined],r.cacheOptions),Y.default.string(r.method)?r.method=r.method.toUpperCase():r.method="GET",r.headers===(i==null?void 0:i.headers)?r.headers={...r.headers}:r.headers=J5({...i==null?void 0:i.headers,...r.headers}),"slashes"in r)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in r)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in r&&r.searchParams&&r.searchParams!==(i==null?void 0:i.searchParams)){let d;if(Y.default.string(r.searchParams)||r.searchParams instanceof Ci.URLSearchParams)d=new Ci.URLSearchParams(r.searchParams);else{aq(r.searchParams),d=new Ci.URLSearchParams;for(let m in r.searchParams){let y=r.searchParams[m];y===null?d.append(m,""):y!==void 0&&d.append(m,y)}}(n=i==null?void 0:i.searchParams)===null||n===void 0||n.forEach((m,y)=>{d.has(y)||d.append(y,m)}),r.searchParams=d}if(r.username=(s=r.username)!==null&&s!==void 0?s:"",r.password=(o=r.password)!==null&&o!==void 0?o:"",Y.default.undefined(r.prefixUrl)?r.prefixUrl=(a=i==null?void 0:i.prefixUrl)!==null&&a!==void 0?a:"":(r.prefixUrl=r.prefixUrl.toString(),r.prefixUrl!==""&&!r.prefixUrl.endsWith("/")&&(r.prefixUrl+="/")),Y.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=e1.default(r.prefixUrl+r.url,r)}else(Y.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=e1.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:d}=r;Object.defineProperty(r,"prefixUrl",{set:y=>{let p=r.url;if(!p.href.startsWith(y))throw new Error(`Cannot change \`prefixUrl\` from ${d} to ${y}: ${p.href}`);r.url=new Ci.URL(y+p.href.slice(d.length)),d=y},get:()=>d});let{protocol:m}=r.url;if(m==="unix:"&&(m="http:",r.url=new Ci.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),m!=="http:"&&m!=="https:")throw new ol(r);r.username===""?r.username=r.url.username:r.url.username=r.username,r.password===""?r.password=r.url.password:r.url.password=r.password}let{cookieJar:l}=r;if(l){let{setCookie:d,getCookieString:m}=l;Y.assert.function_(d),Y.assert.function_(m),d.length===4&&m.length===0&&(d=YC.promisify(d.bind(r.cookieJar)),m=YC.promisify(m.bind(r.cookieJar)),r.cookieJar={setCookie:d,getCookieString:m})}let{cache:h}=r;if(h&&(py.has(h)||py.set(h,new JC((d,m)=>{let y=d[Xe](d,m);return Y.default.promise(y)&&(y.once=(p,v)=>{if(p==="error")y.catch(v);else if(p==="abort")(async()=>{try{(await y).once("abort",v)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${p}`);return y}),y},h))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)fy||(fy=new Y5.default),r.dnsCache=fy;else if(!Y.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${Y.default(r.dnsCache)}`);Y.default.number(r.timeout)?r.timeout={request:r.timeout}:i&&r.timeout!==i.timeout?r.timeout={...i.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});let f=r.hooks===(i==null?void 0:i.hooks);r.hooks={...r.hooks};for(let d of Ce.knownHookEvents)if(d in r.hooks)if(Y.default.array(r.hooks[d]))r.hooks[d]=[...r.hooks[d]];else throw new TypeError(`Parameter \`${d}\` must be an Array, got ${Y.default(r.hooks[d])}`);else r.hooks[d]=[];if(i&&!f)for(let d of Ce.knownHookEvents)i.hooks[d].length>0&&(r.hooks[d]=[...i.hooks[d],...r.hooks[d]]);if("family"in r&&Ri.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),i!=null&&i.https&&(r.https={...i.https,...r.https}),"rejectUnauthorized"in r&&Ri.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&Ri.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&Ri.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&Ri.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&Ri.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&Ri.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&Ri.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in r)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(r.agent){for(let d in r.agent)if(d!=="http"&&d!=="https"&&d!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${d}\``)}return r.maxRedirects=(u=r.maxRedirects)!==null&&u!==void 0?u:0,Ce.setNonEnumerableProperties([i,c],r),nq.default(r,i)}_lockWrite(){let e=()=>{throw new TypeError("The payload has been already provided")};this.write=e,this.end=e}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:e}=this,{headers:r}=e,i=!Y.default.undefined(e.form),n=!Y.default.undefined(e.json),s=!Y.default.undefined(e.body),o=i||n||s,a=Ce.withoutBody.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=a,o){if(a)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);if([s,i,n].filter(u=>u).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(s&&!(e.body instanceof KC.Readable)&&!Y.default.string(e.body)&&!Y.default.buffer(e.body)&&!XC.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(i&&!Y.default.object(e.form))throw new TypeError("The `form` option must be an Object");{let u=!Y.default.string(r["content-type"]);s?(XC.default(e.body)&&u&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[Ti]=e.body):i?(u&&(r["content-type"]="application/x-www-form-urlencoded"),this[Ti]=new Ci.URLSearchParams(e.form).toString()):(u&&(r["content-type"]="application/json"),this[Ti]=e.stringifyJson(e.json));let c=await X5.default(this[Ti],e.headers);Y.default.undefined(r["content-length"])&&Y.default.undefined(r["transfer-encoding"])&&!a&&!Y.default.undefined(c)&&(r["content-length"]=String(c))}}else a?this._lockWrite():this._unlockWrite();this[Ls]=Number(r["content-length"])||void 0}async _onResponseBase(e){let{options:r}=this,{url:i}=r;this[s1]=e,r.decompress&&(e=K5(e));let n=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:ZC.STATUS_CODES[n],s.url=r.url.toString(),s.requestUrl=this.requestUrl,s.redirectUrls=this.redirects,s.request=this,s.isFromCache=e.fromCache||!1,s.ip=this.ip,s.retryCount=this.retryCount,this[i1]=s.isFromCache,this[Ps]=Number(e.headers["content-length"])||void 0,this[el]=e,e.once("end",()=>{this[Ps]=this[Is],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",a=>{e.destroy(),this._beforeError(new ta(a,this))}),e.once("aborted",()=>{this._beforeError(new ta({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=e.headers["set-cookie"];if(Y.default.object(r.cookieJar)&&o){let a=o.map(async u=>r.cookieJar.setCookie(u,i.toString()));r.ignoreInvalidCookies&&(a=a.map(async u=>u.catch(()=>{})));try{await Promise.all(a)}catch(u){this._beforeError(u);return}}if(r.followRedirect&&e.headers.location&&lq.has(n)){if(e.resume(),this[Xe]&&(this[dy](),delete this[Xe],this[r1]()),(n===303&&r.method!=="GET"&&r.method!=="HEAD"||!r.methodRewriting)&&(r.method="GET","body"in r&&delete r.body,"json"in r&&delete r.json,"form"in r&&delete r.form,this[Ti]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new tl(this));return}try{let h=function(f){return f.protocol==="unix:"||f.hostname==="unix"},u=Buffer.from(e.headers.location,"binary").toString(),c=new Ci.URL(u,i),l=c.toString();if(decodeURI(l),!h(i)&&h(c)){this._beforeError(new je("Cannot redirect to UNIX socket",{},this));return}c.hostname!==i.hostname||c.port!==i.port?("host"in r.headers&&delete r.headers.host,"cookie"in r.headers&&delete r.headers.cookie,"authorization"in r.headers&&delete r.headers.authorization,(r.username||r.password)&&(r.username="",r.password="")):(c.username=r.username,c.password=r.password),this.redirects.push(l),r.url=c;for(let f of r.hooks.beforeRedirect)await f(r,s);this.emit("redirect",s,r),await this._makeRequest()}catch(u){this._beforeError(u);return}return}if(r.isStream&&r.throwHttpErrors&&!iq.isResponseOk(s)){this._beforeError(new rl(s));return}e.on("readable",()=>{this[Qc]&&this._read()}),this.on("resume",()=>{e.resume()}),this.on("pause",()=>{e.pause()}),e.once("end",()=>{this.push(null)}),this.emit("response",e);for(let a of this[Xc])if(!a.headersSent){for(let u in e.headers){let c=r.decompress?u!=="content-encoding":!0,l=e.headers[u];c&&a.setHeader(u,l)}a.statusCode=n}}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:i,url:n}=r;V5.default(e),this[dy]=QC.default(e,i,n);let s=r.cache?"cacheableResponse":"response";e.once(s,u=>{this._onResponse(u)}),e.once("error",u=>{var c;e.destroy(),(c=e.res)===null||c===void 0||c.removeAllListeners("end"),u=u instanceof QC.TimeoutError?new sl(u,this.timings,this):new je(u.message,u,this),this._beforeError(u)}),this[r1]=Q5.default(e,this,fq),this[Xe]=e,this.emit("uploadProgress",this.uploadProgress);let o=this[Ti],a=this.redirects.length===0?this:e;Y.default.nodeStream(o)?(o.pipe(a),o.once("error",u=>{this._beforeError(new nl(u,this))})):(this._unlockWrite(),Y.default.undefined(o)?(this._cannotHaveBody||this._noPipe)&&(a.end(),this._lockWrite()):(this._writeRequest(o,void 0,()=>{}),a.end(),this._lockWrite())),this.emit("request",e)}async _createCacheableRequest(e,r){return new Promise((i,n)=>{Object.assign(r,eq.default(e)),delete r.url;let s,o=py.get(r.cache)(r,async a=>{a._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",a),i(a)});r.url=e,o.once("error",n),o.once("request",async a=>{s=a,i(s)})})}async _makeRequest(){var e,r,i,n,s;let{options:o}=this,{headers:a}=o;for(let v in a)if(Y.default.undefined(a[v]))delete a[v];else if(Y.default.null_(a[v]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${v}\` header`);if(o.decompress&&Y.default.undefined(a["accept-encoding"])&&(a["accept-encoding"]=oq?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){let v=await o.cookieJar.getCookieString(o.url.toString());Y.default.nonEmptyString(v)&&(o.headers.cookie=v)}for(let v of o.hooks.beforeRequest){let C=await v(o);if(!Y.default.undefined(C)){o.request=()=>C;break}}o.body&&this[Ti]!==o.body&&(this[Ti]=o.body);let{agent:u,request:c,timeout:l,url:h}=o;if(o.dnsCache&&!("lookup"in o)&&(o.lookup=o.dnsCache.lookup),h.hostname==="unix"){let v=/(?<socketPath>.+?):(?<path>.+)/.exec(`${h.pathname}${h.search}`);if(v!=null&&v.groups){let{socketPath:C,path:k}=v.groups;Object.assign(o,{socketPath:C,path:k,host:""})}}let f=h.protocol==="https:",d;o.http2?d=Z5.auto:d=f?W5.request:ZC.request;let m=(e=o.request)!==null&&e!==void 0?e:d,y=o.cache?this._createCacheableRequest:m;u&&!o.http2&&(o.agent=u[f?"https":"http"]),o[Xe]=m,delete o.request,delete o.timeout;let p=o;if(p.shared=(r=o.cacheOptions)===null||r===void 0?void 0:r.shared,p.cacheHeuristic=(i=o.cacheOptions)===null||i===void 0?void 0:i.cacheHeuristic,p.immutableMinTimeToLive=(n=o.cacheOptions)===null||n===void 0?void 0:n.immutableMinTimeToLive,p.ignoreCargoCult=(s=o.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,o.dnsLookupIpVersion!==void 0)try{p.family=t1.dnsLookupIpVersionToFamily(o.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}o.https&&("rejectUnauthorized"in o.https&&(p.rejectUnauthorized=o.https.rejectUnauthorized),o.https.checkServerIdentity&&(p.checkServerIdentity=o.https.checkServerIdentity),o.https.certificateAuthority&&(p.ca=o.https.certificateAuthority),o.https.certificate&&(p.cert=o.https.certificate),o.https.key&&(p.key=o.https.key),o.https.passphrase&&(p.passphrase=o.https.passphrase),o.https.pfx&&(p.pfx=o.https.pfx));try{let v=await y(h,p);Y.default.undefined(v)&&(v=d(h,p)),o.request=c,o.timeout=l,o.agent=u,o.https&&("rejectUnauthorized"in o.https&&delete p.rejectUnauthorized,o.https.checkServerIdentity&&delete p.checkServerIdentity,o.https.certificateAuthority&&delete p.ca,o.https.certificate&&delete p.cert,o.https.key&&delete p.key,o.https.passphrase&&delete p.passphrase,o.https.pfx&&delete p.pfx),uq(v)?this._onRequest(v):this.writable?(this.once("finish",()=>{this._onResponse(v)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(v)}catch(v){throw v instanceof JC.CacheError?new il(v,this):new je(v.message,v,this)}}async _error(e){try{for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new je(r.message,r,this)}this.destroy(e)}_beforeError(e){if(this[Ns])return;let{options:r}=this,i=this.retryCount+1;this[Ns]=!0,e instanceof je||(e=new je(e.message,e,this));let n=e,{response:s}=n;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await rq.default(s),s.body=s.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let o;try{let a;s&&"retry-after"in s.headers&&(a=Number(s.headers["retry-after"]),Number.isNaN(a)?(a=Date.parse(s.headers["retry-after"])-Date.now(),a<=0&&(a=1)):a*=1e3),o=await r.retry.calculateDelay({attemptCount:i,retryOptions:r.retry,error:n,retryAfter:a,computedValue:sq.default({attemptCount:i,retryOptions:r.retry,error:n,retryAfter:a,computedValue:0})})}catch(a){this._error(new je(a.message,a,this));return}if(o){let a=async()=>{try{for(let u of this.options.hooks.beforeRetry)await u(this.options,n,i)}catch(u){this._error(new je(u.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",i,e))};this[o1]=setTimeout(a,o);return}}this._error(n)})()}_read(){this[Qc]=!0;let e=this[el];if(e&&!this[Ns]){e.readableLength&&(this[Qc]=!1);let r;for(;(r=e.read())!==null;){this[Is]+=r.length,this[n1]=!0;let i=this.downloadProgress;i.percent<1&&this.emit("downloadProgress",i),this.push(r)}}}_write(e,r,i){let n=()=>{this._writeRequest(e,r,i)};this.requestInitialized?n():this[ea].push(n)}_writeRequest(e,r,i){this[Xe].destroyed||(this._progressCallbacks.push(()=>{this[Bs]+=Buffer.byteLength(e,r);let n=this.uploadProgress;n.percent<1&&this.emit("uploadProgress",n)}),this[Xe].write(e,r,n=>{!n&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),i(n)}))}_final(e){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(Xe in this)){e();return}if(this[Xe].destroyed){e();return}this[Xe].end(i=>{i||(this[Ls]=this[Bs],this.emit("uploadProgress",this.uploadProgress),this[Xe].emit("upload-complete")),e(i)})};this.requestInitialized?r():this[ea].push(r)}_destroy(e,r){var i;this[Ns]=!0,clearTimeout(this[o1]),Xe in this&&(this[dy](),!((i=this[el])===null||i===void 0)&&i.complete||this[Xe].destroy()),e!==null&&!Y.default.undefined(e)&&!(e instanceof je)&&(e=new je(e.message,e,this)),r(e)}get _isAboutToError(){return this[Ns]}get ip(){var e;return(e=this.socket)===null||e===void 0?void 0:e.remoteAddress}get aborted(){var e,r,i;return((r=(e=this[Xe])===null||e===void 0?void 0:e.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((i=this[s1])===null||i===void 0)&&i.complete)}get socket(){var e,r;return(r=(e=this[Xe])===null||e===void 0?void 0:e.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let e;return this[Ps]?e=this[Is]/this[Ps]:this[Ps]===this[Is]?e=1:e=0,{percent:e,transferred:this[Is],total:this[Ps]}}get uploadProgress(){let e;return this[Ls]?e=this[Bs]/this[Ls]:this[Ls]===this[Bs]?e=1:e=0,{percent:e,transferred:this[Bs],total:this[Ls]}}get timings(){var e;return(e=this[Xe])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[i1]}pipe(e,r){if(this[n1])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof hy.ServerResponse&&this[Xc].add(e),super.pipe(e,r)}unpipe(e){return e instanceof hy.ServerResponse&&this[Xc].delete(e),super.unpipe(e),this}};Ce.default=al});var ia=T(tr=>{"use strict";var dq=tr&&tr.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),pq=tr&&tr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&dq(e,t,r)};Object.defineProperty(tr,"__esModule",{value:!0});tr.CancelError=tr.ParseError=void 0;var a1=ra(),my=class extends a1.RequestError{constructor(e,r){let{options:i}=r.request;super(`${e.message} in "${i.url.toString()}"`,e,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};tr.ParseError=my;var yy=class extends a1.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};tr.CancelError=yy;pq(ra(),tr)});var c1=T(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0});var u1=ia(),mq=(t,e,r,i)=>{let{rawBody:n}=t;try{if(e==="text")return n.toString(i);if(e==="json")return n.length===0?"":r(n.toString());if(e==="buffer")return n;throw new u1.ParseError({message:`Unknown body type '${e}'`,name:"Error"},t)}catch(s){throw new u1.ParseError(s,t)}};gy.default=mq});var _y=T(ki=>{"use strict";var yq=ki&&ki.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),gq=ki&&ki.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&yq(e,t,r)};Object.defineProperty(ki,"__esModule",{value:!0});var _q=require("events"),bq=Yr(),Eq=aA(),ul=ia(),l1=c1(),h1=ra(),vq=ey(),wq=ay(),f1=uy(),Sq=["request","response","redirect","uploadProgress","downloadProgress"];function d1(t){let e,r,i=new _q.EventEmitter,n=new Eq((o,a,u)=>{let c=l=>{let h=new h1.default(void 0,t);h.retryCount=l,h._noPipe=!0,u(()=>h.destroy()),u.shouldReject=!1,u(()=>a(new ul.CancelError(h))),e=h,h.once("response",async m=>{var y;if(m.retryCount=l,m.request.aborted)return;let p;try{p=await wq.default(h),m.rawBody=p}catch{return}if(h._isAboutToError)return;let v=((y=m.headers["content-encoding"])!==null&&y!==void 0?y:"").toLowerCase(),C=["gzip","deflate","br"].includes(v),{options:k}=h;if(C&&!k.decompress)m.body=p;else try{m.body=l1.default(m,k.responseType,k.parseJson,k.encoding)}catch(P){if(m.body=p.toString(),f1.isResponseOk(m)){h._beforeError(P);return}}try{for(let[P,F]of k.hooks.afterResponse.entries())m=await F(m,async M=>{let S=h1.default.normalizeArguments(void 0,{...M,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},k);S.hooks.afterResponse=S.hooks.afterResponse.slice(0,P);for(let j of S.hooks.beforeRetry)await j(S);let D=d1(S);return u(()=>{D.catch(()=>{}),D.cancel()}),D})}catch(P){h._beforeError(new ul.RequestError(P.message,P,h));return}if(r=m,!f1.isResponseOk(m)){h._beforeError(new ul.HTTPError(m));return}h.destroy(),o(h.options.resolveBodyOnly?m.body:m)});let f=m=>{if(n.isCanceled)return;let{options:y}=h;if(m instanceof ul.HTTPError&&!y.throwHttpErrors){let{response:p}=m;o(h.options.resolveBodyOnly?p.body:p);return}a(m)};h.once("error",f);let d=h.options.body;h.once("retry",(m,y)=>{var p,v;if(d===((p=y.request)===null||p===void 0?void 0:p.options.body)&&bq.default.nodeStream((v=y.request)===null||v===void 0?void 0:v.options.body)){f(y);return}c(m)}),vq.default(h,i,Sq)};c(0)});n.on=(o,a)=>(i.on(o,a),n);let s=o=>{let a=(async()=>{await n;let{options:u}=r.request;return l1.default(r,o,u.parseJson,u.encoding)})();return Object.defineProperties(a,Object.getOwnPropertyDescriptors(n)),a};return n.json=()=>{let{headers:o}=e.options;return!e.writableFinished&&o.accept===void 0&&(o.accept="application/json"),s("json")},n.buffer=()=>s("buffer"),n.text=()=>s("text"),n}ki.default=d1;gq(ia(),ki)});var p1=T(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});var xq=ia();function Dq(t,...e){let r=(async()=>{if(t instanceof xq.RequestError)try{for(let n of e)if(n)for(let s of n)t=await s(t)}catch(n){t=n}throw t})(),i=()=>r;return r.json=i,r.text=i,r.buffer=i,r.on=i,r}by.default=Dq});var g1=T(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});var m1=Yr();function y1(t){for(let e of Object.values(t))(m1.default.plainObject(e)||m1.default.array(e))&&y1(e);return Object.freeze(t)}Ey.default=y1});var b1=T(_1=>{"use strict";Object.defineProperty(_1,"__esModule",{value:!0})});var vy=T(Wt=>{"use strict";var Aq=Wt&&Wt.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),Cq=Wt&&Wt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Aq(e,t,r)};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.defaultHandler=void 0;var E1=Yr(),Gt=_y(),Rq=p1(),ll=ra(),Tq=g1(),kq={RequestError:Gt.RequestError,CacheError:Gt.CacheError,ReadError:Gt.ReadError,HTTPError:Gt.HTTPError,MaxRedirectsError:Gt.MaxRedirectsError,TimeoutError:Gt.TimeoutError,ParseError:Gt.ParseError,CancelError:Gt.CancelError,UnsupportedProtocolError:Gt.UnsupportedProtocolError,UploadError:Gt.UploadError},Oq=async t=>new Promise(e=>{setTimeout(e,t)}),{normalizeArguments:cl}=ll.default,v1=(...t)=>{let e;for(let r of t)e=cl(void 0,r,e);return e},Fq=t=>t.isStream?new ll.default(void 0,t):Gt.default(t),Pq=t=>"defaults"in t&&"options"in t.defaults,Iq=["get","post","put","patch","head","delete"];Wt.defaultHandler=(t,e)=>e(t);var w1=(t,e)=>{if(t)for(let r of t)r(e)},S1=t=>{t._rawHandlers=t.handlers,t.handlers=t.handlers.map(i=>(n,s)=>{let o,a=i(n,u=>(o=s(u),o));if(a!==o&&!n.isStream&&o){let u=a,{then:c,catch:l,finally:h}=u;Object.setPrototypeOf(u,Object.getPrototypeOf(o)),Object.defineProperties(u,Object.getOwnPropertyDescriptors(o)),u.then=c,u.catch=l,u.finally=h}return a});let e=(i,n={},s)=>{var o,a;let u=0,c=l=>t.handlers[u++](l,u===t.handlers.length?Fq:c);if(E1.default.plainObject(i)){let l={...i,...n};ll.setNonEnumerableProperties([i,n],l),n=l,i=void 0}try{let l;try{w1(t.options.hooks.init,n),w1((o=n.hooks)===null||o===void 0?void 0:o.init,n)}catch(f){l=f}let h=cl(i,n,s!=null?s:t.options);if(h[ll.kIsNormalizedAlready]=!0,l)throw new Gt.RequestError(l.message,l,h);return c(h)}catch(l){if(n.isStream)throw l;return Rq.default(l,t.options.hooks.beforeError,(a=n.hooks)===null||a===void 0?void 0:a.beforeError)}};e.extend=(...i)=>{let n=[t.options],s=[...t._rawHandlers],o;for(let a of i)Pq(a)?(n.push(a.defaults.options),s.push(...a.defaults._rawHandlers),o=a.defaults.mutableDefaults):(n.push(a),"handlers"in a&&s.push(...a.handlers),o=a.mutableDefaults);return s=s.filter(a=>a!==Wt.defaultHandler),s.length===0&&s.push(Wt.defaultHandler),S1({options:v1(...n),handlers:s,mutableDefaults:!!o})};let r=async function*(i,n){let s=cl(i,n,t.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!E1.default.object(o))throw new TypeError("`options.pagination` must be implemented");let a=[],{countLimit:u}=o,c=0;for(;c<o.requestLimit;){c!==0&&await Oq(o.backoff);let l=await e(void 0,void 0,s),h=await o.transform(l),f=[];for(let m of h)if(o.filter(m,a,f)&&(!o.shouldContinue(m,a,f)||(yield m,o.stackAllItems&&a.push(m),f.push(m),--u<=0)))return;let d=o.paginate(l,a,f);if(d===!1)return;d===l.request.options?s=l.request.options:d!==void 0&&(s=cl(void 0,d,s)),c++}};e.paginate=r,e.paginate.all=async(i,n)=>{let s=[];for await(let o of r(i,n))s.push(o);return s},e.paginate.each=r,e.stream=(i,n)=>e(i,{...n,isStream:!0});for(let i of Iq)e[i]=(n,s)=>e(n,{...s,method:i}),e.stream[i]=(n,s)=>e(n,{...s,method:i,isStream:!0});return Object.assign(e,kq),Object.defineProperty(e,"defaults",{value:t.mutableDefaults?t:Tq.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),e.mergeOptions=v1,e};Wt.default=S1;Cq(b1(),Wt)});var Sy=T((Kr,hl)=>{"use strict";var Lq=Kr&&Kr.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),x1=Kr&&Kr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Lq(e,t,r)};Object.defineProperty(Kr,"__esModule",{value:!0});var Bq=require("url"),D1=vy(),Nq={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:t})=>t},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:t=>t.request.options.responseType==="json"?t.body:JSON.parse(t.body),paginate:t=>{if(!Reflect.has(t.headers,"link"))return!1;let e=t.headers.link.split(","),r;for(let i of e){let n=i.split(";");if(n[1].includes("next")){r=n[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new Bq.URL(r)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:t=>JSON.parse(t),stringifyJson:t=>JSON.stringify(t),cacheOptions:{}},handlers:[D1.defaultHandler],mutableDefaults:!1},wy=D1.default(Nq);Kr.default=wy;hl.exports=wy;hl.exports.default=wy;hl.exports.__esModule=!0;x1(vy(),Kr);x1(_y(),Kr)});var F1=T((xG,O1)=>{function Vt(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}O1.exports=Vt;Vt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Vt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Vt.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},r),this._options.unref&&this._timer.unref(),!0};Vt.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Vt.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};Vt.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};Vt.prototype.start=Vt.prototype.try;Vt.prototype.errors=function(){return this._errors};Vt.prototype.attempts=function(){return this._attempts};Vt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,i=0;i<this._errors.length;i++){var n=this._errors[i],s=n.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=n,r=o)}return e}});var P1=T(fn=>{var jq=F1();fn.operation=function(t){var e=fn.timeouts(t);return new jq(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};fn.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],n=0;n<e.retries;n++)i.push(this.createTimeout(n,e));return t&&t.forever&&!i.length&&i.push(this.createTimeout(n,e)),i.sort(function(s,o){return s-o}),i};fn.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,i=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return i=Math.min(i,e.maxTimeout),i};fn.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var i in t)typeof t[i]=="function"&&r.push(i)}for(var n=0;n<r.length;n++){var s=r[n],o=t[s];t[s]=function(u){var c=fn.operation(e),l=Array.prototype.slice.call(arguments,1),h=l.pop();l.push(function(f){c.retry(f)||(f&&(arguments[0]=c.mainError()),h.apply(this,arguments))}),c.attempt(function(){u.apply(t,l)})}.bind(t,o),t[s].options=e}}});var L1=T((AG,I1)=>{I1.exports=P1()});var N1=T((CG,B1)=>{var qq=L1();function Uq(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=qq.operation(s);function a(l){n(l||new Error("Aborted"))}function u(l,h){if(l.bail){a(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,h):n(o.mainError())}function c(l){var h;try{h=t(a,l)}catch(f){u(f,l);return}Promise.resolve(h).then(i).catch(function(d){u(d,l)})}o.attempt(c)}return new Promise(r)}B1.exports=Uq});var rR=T(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});function HU(t){return t&&t.__esModule?t:{default:t}}var X1=Object.defineProperty,Z1=Object.getOwnPropertySymbols,$U=Object.prototype.hasOwnProperty,zU=Object.prototype.propertyIsEnumerable,J1=(t,e,r)=>e in t?X1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,GU=(t,e)=>{for(var r in e||(e={}))$U.call(e,r)&&J1(t,r,e[r]);if(Z1)for(var r of Z1(e))zU.call(e,r)&&J1(t,r,e[r]);return t},WU=(t,e)=>{for(var r in e)X1(t,r,{get:e[r],enumerable:!0})},VU=(t,e,r)=>new Promise((i,n)=>{var s=u=>{try{a(r.next(u))}catch(c){n(c)}},o=u=>{try{a(r.throw(u))}catch(c){n(c)}},a=u=>u.done?i(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(t,e)).next())}),Q1={};WU(Q1,{configDir:()=>tR,darwinConfig:()=>Uy,getPathForPlatform:()=>$y,getPlatform:()=>qy,linuxConfig:()=>wl,winConfig:()=>Hy});var YU=require("fs/promises"),KU=require("path"),eR=HU(KU);function qy(){return process.platform}function wl(){if(process.env.XDG_CONFIG_HOME!==void 0)return process.env.XDG_CONFIG_HOME;if(process.env.HOME!==void 0)return eR.default.join(process.env.HOME,".config")}function Uy(){if(process.env.HOME!==void 0)return eR.default.join(process.env.HOME,"/Library/Application Support")}function Hy(){return process.env.APPDATA}function $y({platform:t}){switch(t){case"linux":return wl();case"darwin":return Uy();case"win32":return Hy();default:return wl()}}function tR(){return VU(this,arguments,function*(t={}){var e;let r=(e=t.platform)!=null?e:qy(),i=$y({platform:r});if(i!==void 0){if(t.validate===!1)return i;try{return yield YU.stat.call(void 0,i),i}catch{return}}})}Sr.__spreadValues=GU;Sr.getPlatform=qy;Sr.linuxConfig=wl;Sr.darwinConfig=Uy;Sr.winConfig=Hy;Sr.getPathForPlatform=$y;Sr.configDir=tR;Sr.config_dir_exports=Q1});var iR=T(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0});var ZU=rR();zy.configDir=ZU.configDir});var cR=T((vW,aH)=>{aH.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var fR=T(Ft=>{"use strict";var hR=cR(),Ge=process.env;Object.defineProperty(Ft,"_vendors",{value:hR.map(function(t){return t.constant})});Ft.name=null;Ft.isPR=null;hR.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(i){return lR(i)});if(Ft[t.constant]=r,!!r)switch(Ft.name=t.name,typeof t.pr){case"string":Ft.isPR=!!Ge[t.pr];break;case"object":"env"in t.pr?Ft.isPR=t.pr.env in Ge&&Ge[t.pr.env]!==t.pr.ne:"any"in t.pr?Ft.isPR=t.pr.any.some(function(i){return!!Ge[i]}):Ft.isPR=lR(t.pr);break;default:Ft.isPR=null}});Ft.isCI=!!(Ge.CI!=="false"&&(Ge.BUILD_ID||Ge.BUILD_NUMBER||Ge.CI||Ge.CI_APP_ID||Ge.CI_BUILD_ID||Ge.CI_BUILD_NUMBER||Ge.CI_NAME||Ge.CONTINUOUS_INTEGRATION||Ge.RUN_ID||Ft.name));function lR(t){return typeof t=="string"?!!Ge[t]:"env"in t?Ge[t.env]&&Ge[t.env].includes(t.includes):"any"in t?t.any.some(function(e){return!!Ge[e]}):Object.keys(t).every(function(e){return Ge[e]===t[e]})}});var kT=ae(require("http")),OT=ae(require("https")),g0=ae(require("chalk")),va=require("commander");var KT=ae(x0());function ql(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oo(t){return oo=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},oo(t)}function Ul(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hl(t,e){if(e&&(oo(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ul(t)}function Ui(t){return Ui=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ui(t)}function Tr(t,e){return Tr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Tr(t,e)}function $l(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Tr(t,e)}function zl(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Gl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function kn(t,e,r){return Gl()?kn=Reflect.construct.bind():kn=function(n,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(n,a),c=new u;return o&&Tr(c,o.prototype),c},kn.apply(null,arguments)}function ao(t){var e=typeof Map=="function"?new Map:void 0;return ao=function(i){if(i===null||!zl(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,n)}function n(){return kn(i,arguments,Ui(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Tr(n,i)},ao(t)}var H0=ae(U0());var ZT=ae(require("fs-extra")),H4=function(t){$l(e,t);function e(r){var i;return ql(this,e),i=Hl(this,Ui(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(ao(Error));var JT=ae(require("fs")),XT=ae(require("path"));var sB=ae(require("fs")),oB=ae(require("path"));function ng(t){return typeof t=="undefined"||t===null}function tk(t){return typeof t=="object"&&t!==null}function rk(t){return Array.isArray(t)?t:ng(t)?[]:[t]}function ik(t,e){var r,i,n,s;if(e)for(s=Object.keys(e),r=0,i=s.length;r<i;r+=1)n=s[r],t[n]=e[n];return t}function nk(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function sk(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var ok=ng,ak=tk,uk=rk,ck=nk,lk=sk,hk=ik,$e={isNothing:ok,isObject:ak,toArray:uk,repeat:ck,isNegativeZero:lk,extend:hk};function sg(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
19
|
+
`)}`}}};Ce.RequestError=je;var el=class extends je{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};Ce.MaxRedirectsError=el;var tl=class extends je{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};Ce.HTTPError=tl;var rl=class extends je{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};Ce.CacheError=rl;var il=class extends je{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};Ce.UploadError=il;var nl=class extends je{constructor(e,r,i){super(e.message,e,i),this.name="TimeoutError",this.event=e.event,this.timings=r}};Ce.TimeoutError=nl;var ea=class extends je{constructor(e,r){super(e.message,e,r),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};Ce.ReadError=ea;var sl=class extends je{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};Ce.UnsupportedProtocolError=sl;var dq=["socket","connect","continue","information","upgrade","timeout"],ol=class extends ZC.Duplex{constructor(e,r={},i){super({autoDestroy:!1,highWaterMark:0}),this[Ps]=0,this[Ls]=0,this.requestInitialized=!1,this[Jc]=new Set,this.redirects=[],this[Bs]=!1,this[Xc]=!1,this[Qo]=[],this.retryCount=0,this._progressCallbacks=[];let n=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",c=>{c.prependListener("data",n),c.on("data",s),c.prependListener("end",n),c.on("end",s)}),this.on("unpipe",c=>{c.off("data",n),c.off("data",s),c.off("end",n),c.off("end",s)}),this.on("pipe",c=>{c instanceof hy.IncomingMessage&&(this.options.headers={...c.headers,...this.options.headers})});let{json:o,body:a,form:u}=r;if((o||a||u)&&this._lockWrite(),Ce.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,i)}catch(c){Y.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(c);return}(async()=>{var c;try{this.options.body instanceof W5.ReadStream&&await lq(this.options.body);let{url:l}=this.options;if(!l)throw new TypeError("Missing `url` property");if(this.requestUrl=l.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(c=this[Xe])===null||c===void 0||c.destroy();return}for(let h of this[Qo])h();this[Qo].length=0,this.requestInitialized=!0}catch(l){if(l instanceof je){this._beforeError(l);return}this.destroyed||this.destroy(l)}})()}static normalizeArguments(e,r,i){var n,s,o,a,u;let c=r;if(Y.default.object(e)&&!Y.default.urlInstance(e))r={...i,...e,...r};else{if(e&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...i,...r},e!==void 0&&(r.url=e),Y.default.urlInstance(r.url)&&(r.url=new Ci.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),Y.assert.any([Y.default.string,Y.default.undefined],r.method),Y.assert.any([Y.default.object,Y.default.undefined],r.headers),Y.assert.any([Y.default.string,Y.default.urlInstance,Y.default.undefined],r.prefixUrl),Y.assert.any([Y.default.object,Y.default.undefined],r.cookieJar),Y.assert.any([Y.default.object,Y.default.string,Y.default.undefined],r.searchParams),Y.assert.any([Y.default.object,Y.default.string,Y.default.undefined],r.cache),Y.assert.any([Y.default.object,Y.default.number,Y.default.undefined],r.timeout),Y.assert.any([Y.default.object,Y.default.undefined],r.context),Y.assert.any([Y.default.object,Y.default.undefined],r.hooks),Y.assert.any([Y.default.boolean,Y.default.undefined],r.decompress),Y.assert.any([Y.default.boolean,Y.default.undefined],r.ignoreInvalidCookies),Y.assert.any([Y.default.boolean,Y.default.undefined],r.followRedirect),Y.assert.any([Y.default.number,Y.default.undefined],r.maxRedirects),Y.assert.any([Y.default.boolean,Y.default.undefined],r.throwHttpErrors),Y.assert.any([Y.default.boolean,Y.default.undefined],r.http2),Y.assert.any([Y.default.boolean,Y.default.undefined],r.allowGetBody),Y.assert.any([Y.default.string,Y.default.undefined],r.localAddress),Y.assert.any([r1.isDnsLookupIpVersion,Y.default.undefined],r.dnsLookupIpVersion),Y.assert.any([Y.default.object,Y.default.undefined],r.https),Y.assert.any([Y.default.boolean,Y.default.undefined],r.rejectUnauthorized),r.https&&(Y.assert.any([Y.default.boolean,Y.default.undefined],r.https.rejectUnauthorized),Y.assert.any([Y.default.function_,Y.default.undefined],r.https.checkServerIdentity),Y.assert.any([Y.default.string,Y.default.object,Y.default.array,Y.default.undefined],r.https.certificateAuthority),Y.assert.any([Y.default.string,Y.default.object,Y.default.array,Y.default.undefined],r.https.key),Y.assert.any([Y.default.string,Y.default.object,Y.default.array,Y.default.undefined],r.https.certificate),Y.assert.any([Y.default.string,Y.default.undefined],r.https.passphrase),Y.assert.any([Y.default.string,Y.default.buffer,Y.default.array,Y.default.undefined],r.https.pfx)),Y.assert.any([Y.default.object,Y.default.undefined],r.cacheOptions),Y.default.string(r.method)?r.method=r.method.toUpperCase():r.method="GET",r.headers===(i==null?void 0:i.headers)?r.headers={...r.headers}:r.headers=X5({...i==null?void 0:i.headers,...r.headers}),"slashes"in r)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in r)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in r&&r.searchParams&&r.searchParams!==(i==null?void 0:i.searchParams)){let d;if(Y.default.string(r.searchParams)||r.searchParams instanceof Ci.URLSearchParams)d=new Ci.URLSearchParams(r.searchParams);else{uq(r.searchParams),d=new Ci.URLSearchParams;for(let m in r.searchParams){let y=r.searchParams[m];y===null?d.append(m,""):y!==void 0&&d.append(m,y)}}(n=i==null?void 0:i.searchParams)===null||n===void 0||n.forEach((m,y)=>{d.has(y)||d.append(y,m)}),r.searchParams=d}if(r.username=(s=r.username)!==null&&s!==void 0?s:"",r.password=(o=r.password)!==null&&o!==void 0?o:"",Y.default.undefined(r.prefixUrl)?r.prefixUrl=(a=i==null?void 0:i.prefixUrl)!==null&&a!==void 0?a:"":(r.prefixUrl=r.prefixUrl.toString(),r.prefixUrl!==""&&!r.prefixUrl.endsWith("/")&&(r.prefixUrl+="/")),Y.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=t1.default(r.prefixUrl+r.url,r)}else(Y.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=t1.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:d}=r;Object.defineProperty(r,"prefixUrl",{set:y=>{let p=r.url;if(!p.href.startsWith(y))throw new Error(`Cannot change \`prefixUrl\` from ${d} to ${y}: ${p.href}`);r.url=new Ci.URL(y+p.href.slice(d.length)),d=y},get:()=>d});let{protocol:m}=r.url;if(m==="unix:"&&(m="http:",r.url=new Ci.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),m!=="http:"&&m!=="https:")throw new sl(r);r.username===""?r.username=r.url.username:r.url.username=r.username,r.password===""?r.password=r.url.password:r.url.password=r.password}let{cookieJar:l}=r;if(l){let{setCookie:d,getCookieString:m}=l;Y.assert.function_(d),Y.assert.function_(m),d.length===4&&m.length===0&&(d=KC.promisify(d.bind(r.cookieJar)),m=KC.promisify(m.bind(r.cookieJar)),r.cookieJar={setCookie:d,getCookieString:m})}let{cache:h}=r;if(h&&(py.has(h)||py.set(h,new XC((d,m)=>{let y=d[Xe](d,m);return Y.default.promise(y)&&(y.once=(p,v)=>{if(p==="error")y.catch(v);else if(p==="abort")(async()=>{try{(await y).once("abort",v)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${p}`);return y}),y},h))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)fy||(fy=new K5.default),r.dnsCache=fy;else if(!Y.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${Y.default(r.dnsCache)}`);Y.default.number(r.timeout)?r.timeout={request:r.timeout}:i&&r.timeout!==i.timeout?r.timeout={...i.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});let f=r.hooks===(i==null?void 0:i.hooks);r.hooks={...r.hooks};for(let d of Ce.knownHookEvents)if(d in r.hooks)if(Y.default.array(r.hooks[d]))r.hooks[d]=[...r.hooks[d]];else throw new TypeError(`Parameter \`${d}\` must be an Array, got ${Y.default(r.hooks[d])}`);else r.hooks[d]=[];if(i&&!f)for(let d of Ce.knownHookEvents)i.hooks[d].length>0&&(r.hooks[d]=[...i.hooks[d],...r.hooks[d]]);if("family"in r&&Ri.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),i!=null&&i.https&&(r.https={...i.https,...r.https}),"rejectUnauthorized"in r&&Ri.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&Ri.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&Ri.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&Ri.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&Ri.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&Ri.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&Ri.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in r)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(r.agent){for(let d in r.agent)if(d!=="http"&&d!=="https"&&d!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${d}\``)}return r.maxRedirects=(u=r.maxRedirects)!==null&&u!==void 0?u:0,Ce.setNonEnumerableProperties([i,c],r),sq.default(r,i)}_lockWrite(){let e=()=>{throw new TypeError("The payload has been already provided")};this.write=e,this.end=e}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:e}=this,{headers:r}=e,i=!Y.default.undefined(e.form),n=!Y.default.undefined(e.json),s=!Y.default.undefined(e.body),o=i||n||s,a=Ce.withoutBody.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=a,o){if(a)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);if([s,i,n].filter(u=>u).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(s&&!(e.body instanceof ZC.Readable)&&!Y.default.string(e.body)&&!Y.default.buffer(e.body)&&!QC.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(i&&!Y.default.object(e.form))throw new TypeError("The `form` option must be an Object");{let u=!Y.default.string(r["content-type"]);s?(QC.default(e.body)&&u&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[Ti]=e.body):i?(u&&(r["content-type"]="application/x-www-form-urlencoded"),this[Ti]=new Ci.URLSearchParams(e.form).toString()):(u&&(r["content-type"]="application/json"),this[Ti]=e.stringifyJson(e.json));let c=await Q5.default(this[Ti],e.headers);Y.default.undefined(r["content-length"])&&Y.default.undefined(r["transfer-encoding"])&&!a&&!Y.default.undefined(c)&&(r["content-length"]=String(c))}}else a?this._lockWrite():this._unlockWrite();this[Is]=Number(r["content-length"])||void 0}async _onResponseBase(e){let{options:r}=this,{url:i}=r;this[o1]=e,r.decompress&&(e=Z5(e));let n=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:JC.STATUS_CODES[n],s.url=r.url.toString(),s.requestUrl=this.requestUrl,s.redirectUrls=this.redirects,s.request=this,s.isFromCache=e.fromCache||!1,s.ip=this.ip,s.retryCount=this.retryCount,this[n1]=s.isFromCache,this[Fs]=Number(e.headers["content-length"])||void 0,this[Qc]=e,e.once("end",()=>{this[Fs]=this[Ps],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",a=>{e.destroy(),this._beforeError(new ea(a,this))}),e.once("aborted",()=>{this._beforeError(new ea({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=e.headers["set-cookie"];if(Y.default.object(r.cookieJar)&&o){let a=o.map(async u=>r.cookieJar.setCookie(u,i.toString()));r.ignoreInvalidCookies&&(a=a.map(async u=>u.catch(()=>{})));try{await Promise.all(a)}catch(u){this._beforeError(u);return}}if(r.followRedirect&&e.headers.location&&hq.has(n)){if(e.resume(),this[Xe]&&(this[dy](),delete this[Xe],this[i1]()),(n===303&&r.method!=="GET"&&r.method!=="HEAD"||!r.methodRewriting)&&(r.method="GET","body"in r&&delete r.body,"json"in r&&delete r.json,"form"in r&&delete r.form,this[Ti]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new el(this));return}try{let h=function(f){return f.protocol==="unix:"||f.hostname==="unix"},u=Buffer.from(e.headers.location,"binary").toString(),c=new Ci.URL(u,i),l=c.toString();if(decodeURI(l),!h(i)&&h(c)){this._beforeError(new je("Cannot redirect to UNIX socket",{},this));return}c.hostname!==i.hostname||c.port!==i.port?("host"in r.headers&&delete r.headers.host,"cookie"in r.headers&&delete r.headers.cookie,"authorization"in r.headers&&delete r.headers.authorization,(r.username||r.password)&&(r.username="",r.password="")):(c.username=r.username,c.password=r.password),this.redirects.push(l),r.url=c;for(let f of r.hooks.beforeRedirect)await f(r,s);this.emit("redirect",s,r),await this._makeRequest()}catch(u){this._beforeError(u);return}return}if(r.isStream&&r.throwHttpErrors&&!nq.isResponseOk(s)){this._beforeError(new tl(s));return}e.on("readable",()=>{this[Xc]&&this._read()}),this.on("resume",()=>{e.resume()}),this.on("pause",()=>{e.pause()}),e.once("end",()=>{this.push(null)}),this.emit("response",e);for(let a of this[Jc])if(!a.headersSent){for(let u in e.headers){let c=r.decompress?u!=="content-encoding":!0,l=e.headers[u];c&&a.setHeader(u,l)}a.statusCode=n}}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:i,url:n}=r;Y5.default(e),this[dy]=e1.default(e,i,n);let s=r.cache?"cacheableResponse":"response";e.once(s,u=>{this._onResponse(u)}),e.once("error",u=>{var c;e.destroy(),(c=e.res)===null||c===void 0||c.removeAllListeners("end"),u=u instanceof e1.TimeoutError?new nl(u,this.timings,this):new je(u.message,u,this),this._beforeError(u)}),this[i1]=eq.default(e,this,dq),this[Xe]=e,this.emit("uploadProgress",this.uploadProgress);let o=this[Ti],a=this.redirects.length===0?this:e;Y.default.nodeStream(o)?(o.pipe(a),o.once("error",u=>{this._beforeError(new il(u,this))})):(this._unlockWrite(),Y.default.undefined(o)?(this._cannotHaveBody||this._noPipe)&&(a.end(),this._lockWrite()):(this._writeRequest(o,void 0,()=>{}),a.end(),this._lockWrite())),this.emit("request",e)}async _createCacheableRequest(e,r){return new Promise((i,n)=>{Object.assign(r,tq.default(e)),delete r.url;let s,o=py.get(r.cache)(r,async a=>{a._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",a),i(a)});r.url=e,o.once("error",n),o.once("request",async a=>{s=a,i(s)})})}async _makeRequest(){var e,r,i,n,s;let{options:o}=this,{headers:a}=o;for(let v in a)if(Y.default.undefined(a[v]))delete a[v];else if(Y.default.null_(a[v]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${v}\` header`);if(o.decompress&&Y.default.undefined(a["accept-encoding"])&&(a["accept-encoding"]=aq?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){let v=await o.cookieJar.getCookieString(o.url.toString());Y.default.nonEmptyString(v)&&(o.headers.cookie=v)}for(let v of o.hooks.beforeRequest){let C=await v(o);if(!Y.default.undefined(C)){o.request=()=>C;break}}o.body&&this[Ti]!==o.body&&(this[Ti]=o.body);let{agent:u,request:c,timeout:l,url:h}=o;if(o.dnsCache&&!("lookup"in o)&&(o.lookup=o.dnsCache.lookup),h.hostname==="unix"){let v=/(?<socketPath>.+?):(?<path>.+)/.exec(`${h.pathname}${h.search}`);if(v!=null&&v.groups){let{socketPath:C,path:k}=v.groups;Object.assign(o,{socketPath:C,path:k,host:""})}}let f=h.protocol==="https:",d;o.http2?d=J5.auto:d=f?V5.request:JC.request;let m=(e=o.request)!==null&&e!==void 0?e:d,y=o.cache?this._createCacheableRequest:m;u&&!o.http2&&(o.agent=u[f?"https":"http"]),o[Xe]=m,delete o.request,delete o.timeout;let p=o;if(p.shared=(r=o.cacheOptions)===null||r===void 0?void 0:r.shared,p.cacheHeuristic=(i=o.cacheOptions)===null||i===void 0?void 0:i.cacheHeuristic,p.immutableMinTimeToLive=(n=o.cacheOptions)===null||n===void 0?void 0:n.immutableMinTimeToLive,p.ignoreCargoCult=(s=o.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,o.dnsLookupIpVersion!==void 0)try{p.family=r1.dnsLookupIpVersionToFamily(o.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}o.https&&("rejectUnauthorized"in o.https&&(p.rejectUnauthorized=o.https.rejectUnauthorized),o.https.checkServerIdentity&&(p.checkServerIdentity=o.https.checkServerIdentity),o.https.certificateAuthority&&(p.ca=o.https.certificateAuthority),o.https.certificate&&(p.cert=o.https.certificate),o.https.key&&(p.key=o.https.key),o.https.passphrase&&(p.passphrase=o.https.passphrase),o.https.pfx&&(p.pfx=o.https.pfx));try{let v=await y(h,p);Y.default.undefined(v)&&(v=d(h,p)),o.request=c,o.timeout=l,o.agent=u,o.https&&("rejectUnauthorized"in o.https&&delete p.rejectUnauthorized,o.https.checkServerIdentity&&delete p.checkServerIdentity,o.https.certificateAuthority&&delete p.ca,o.https.certificate&&delete p.cert,o.https.key&&delete p.key,o.https.passphrase&&delete p.passphrase,o.https.pfx&&delete p.pfx),cq(v)?this._onRequest(v):this.writable?(this.once("finish",()=>{this._onResponse(v)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(v)}catch(v){throw v instanceof XC.CacheError?new rl(v,this):new je(v.message,v,this)}}async _error(e){try{for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new je(r.message,r,this)}this.destroy(e)}_beforeError(e){if(this[Bs])return;let{options:r}=this,i=this.retryCount+1;this[Bs]=!0,e instanceof je||(e=new je(e.message,e,this));let n=e,{response:s}=n;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await iq.default(s),s.body=s.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let o;try{let a;s&&"retry-after"in s.headers&&(a=Number(s.headers["retry-after"]),Number.isNaN(a)?(a=Date.parse(s.headers["retry-after"])-Date.now(),a<=0&&(a=1)):a*=1e3),o=await r.retry.calculateDelay({attemptCount:i,retryOptions:r.retry,error:n,retryAfter:a,computedValue:oq.default({attemptCount:i,retryOptions:r.retry,error:n,retryAfter:a,computedValue:0})})}catch(a){this._error(new je(a.message,a,this));return}if(o){let a=async()=>{try{for(let u of this.options.hooks.beforeRetry)await u(this.options,n,i)}catch(u){this._error(new je(u.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",i,e))};this[a1]=setTimeout(a,o);return}}this._error(n)})()}_read(){this[Xc]=!0;let e=this[Qc];if(e&&!this[Bs]){e.readableLength&&(this[Xc]=!1);let r;for(;(r=e.read())!==null;){this[Ps]+=r.length,this[s1]=!0;let i=this.downloadProgress;i.percent<1&&this.emit("downloadProgress",i),this.push(r)}}}_write(e,r,i){let n=()=>{this._writeRequest(e,r,i)};this.requestInitialized?n():this[Qo].push(n)}_writeRequest(e,r,i){this[Xe].destroyed||(this._progressCallbacks.push(()=>{this[Ls]+=Buffer.byteLength(e,r);let n=this.uploadProgress;n.percent<1&&this.emit("uploadProgress",n)}),this[Xe].write(e,r,n=>{!n&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),i(n)}))}_final(e){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(Xe in this)){e();return}if(this[Xe].destroyed){e();return}this[Xe].end(i=>{i||(this[Is]=this[Ls],this.emit("uploadProgress",this.uploadProgress),this[Xe].emit("upload-complete")),e(i)})};this.requestInitialized?r():this[Qo].push(r)}_destroy(e,r){var i;this[Bs]=!0,clearTimeout(this[a1]),Xe in this&&(this[dy](),!((i=this[Qc])===null||i===void 0)&&i.complete||this[Xe].destroy()),e!==null&&!Y.default.undefined(e)&&!(e instanceof je)&&(e=new je(e.message,e,this)),r(e)}get _isAboutToError(){return this[Bs]}get ip(){var e;return(e=this.socket)===null||e===void 0?void 0:e.remoteAddress}get aborted(){var e,r,i;return((r=(e=this[Xe])===null||e===void 0?void 0:e.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((i=this[o1])===null||i===void 0)&&i.complete)}get socket(){var e,r;return(r=(e=this[Xe])===null||e===void 0?void 0:e.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let e;return this[Fs]?e=this[Ps]/this[Fs]:this[Fs]===this[Ps]?e=1:e=0,{percent:e,transferred:this[Ps],total:this[Fs]}}get uploadProgress(){let e;return this[Is]?e=this[Ls]/this[Is]:this[Is]===this[Ls]?e=1:e=0,{percent:e,transferred:this[Ls],total:this[Is]}}get timings(){var e;return(e=this[Xe])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[n1]}pipe(e,r){if(this[s1])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof hy.ServerResponse&&this[Jc].add(e),super.pipe(e,r)}unpipe(e){return e instanceof hy.ServerResponse&&this[Jc].delete(e),super.unpipe(e),this}};Ce.default=ol});var ra=T(tr=>{"use strict";var pq=tr&&tr.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),mq=tr&&tr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&pq(e,t,r)};Object.defineProperty(tr,"__esModule",{value:!0});tr.CancelError=tr.ParseError=void 0;var u1=ta(),my=class extends u1.RequestError{constructor(e,r){let{options:i}=r.request;super(`${e.message} in "${i.url.toString()}"`,e,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};tr.ParseError=my;var yy=class extends u1.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};tr.CancelError=yy;mq(ta(),tr)});var l1=T(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0});var c1=ra(),yq=(t,e,r,i)=>{let{rawBody:n}=t;try{if(e==="text")return n.toString(i);if(e==="json")return n.length===0?"":r(n.toString());if(e==="buffer")return n;throw new c1.ParseError({message:`Unknown body type '${e}'`,name:"Error"},t)}catch(s){throw new c1.ParseError(s,t)}};gy.default=yq});var _y=T(ki=>{"use strict";var gq=ki&&ki.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),_q=ki&&ki.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&gq(e,t,r)};Object.defineProperty(ki,"__esModule",{value:!0});var bq=require("events"),Eq=Yr(),vq=uA(),al=ra(),h1=l1(),f1=ta(),wq=ey(),Sq=ay(),d1=uy(),xq=["request","response","redirect","uploadProgress","downloadProgress"];function p1(t){let e,r,i=new bq.EventEmitter,n=new vq((o,a,u)=>{let c=l=>{let h=new f1.default(void 0,t);h.retryCount=l,h._noPipe=!0,u(()=>h.destroy()),u.shouldReject=!1,u(()=>a(new al.CancelError(h))),e=h,h.once("response",async m=>{var y;if(m.retryCount=l,m.request.aborted)return;let p;try{p=await Sq.default(h),m.rawBody=p}catch{return}if(h._isAboutToError)return;let v=((y=m.headers["content-encoding"])!==null&&y!==void 0?y:"").toLowerCase(),C=["gzip","deflate","br"].includes(v),{options:k}=h;if(C&&!k.decompress)m.body=p;else try{m.body=h1.default(m,k.responseType,k.parseJson,k.encoding)}catch(P){if(m.body=p.toString(),d1.isResponseOk(m)){h._beforeError(P);return}}try{for(let[P,F]of k.hooks.afterResponse.entries())m=await F(m,async M=>{let S=f1.default.normalizeArguments(void 0,{...M,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},k);S.hooks.afterResponse=S.hooks.afterResponse.slice(0,P);for(let j of S.hooks.beforeRetry)await j(S);let D=p1(S);return u(()=>{D.catch(()=>{}),D.cancel()}),D})}catch(P){h._beforeError(new al.RequestError(P.message,P,h));return}if(r=m,!d1.isResponseOk(m)){h._beforeError(new al.HTTPError(m));return}h.destroy(),o(h.options.resolveBodyOnly?m.body:m)});let f=m=>{if(n.isCanceled)return;let{options:y}=h;if(m instanceof al.HTTPError&&!y.throwHttpErrors){let{response:p}=m;o(h.options.resolveBodyOnly?p.body:p);return}a(m)};h.once("error",f);let d=h.options.body;h.once("retry",(m,y)=>{var p,v;if(d===((p=y.request)===null||p===void 0?void 0:p.options.body)&&Eq.default.nodeStream((v=y.request)===null||v===void 0?void 0:v.options.body)){f(y);return}c(m)}),wq.default(h,i,xq)};c(0)});n.on=(o,a)=>(i.on(o,a),n);let s=o=>{let a=(async()=>{await n;let{options:u}=r.request;return h1.default(r,o,u.parseJson,u.encoding)})();return Object.defineProperties(a,Object.getOwnPropertyDescriptors(n)),a};return n.json=()=>{let{headers:o}=e.options;return!e.writableFinished&&o.accept===void 0&&(o.accept="application/json"),s("json")},n.buffer=()=>s("buffer"),n.text=()=>s("text"),n}ki.default=p1;_q(ra(),ki)});var m1=T(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});var Dq=ra();function Aq(t,...e){let r=(async()=>{if(t instanceof Dq.RequestError)try{for(let n of e)if(n)for(let s of n)t=await s(t)}catch(n){t=n}throw t})(),i=()=>r;return r.json=i,r.text=i,r.buffer=i,r.on=i,r}by.default=Aq});var _1=T(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});var y1=Yr();function g1(t){for(let e of Object.values(t))(y1.default.plainObject(e)||y1.default.array(e))&&g1(e);return Object.freeze(t)}Ey.default=g1});var E1=T(b1=>{"use strict";Object.defineProperty(b1,"__esModule",{value:!0})});var vy=T(Wt=>{"use strict";var Cq=Wt&&Wt.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),Rq=Wt&&Wt.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Cq(e,t,r)};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.defaultHandler=void 0;var v1=Yr(),Gt=_y(),Tq=m1(),cl=ta(),kq=_1(),Oq={RequestError:Gt.RequestError,CacheError:Gt.CacheError,ReadError:Gt.ReadError,HTTPError:Gt.HTTPError,MaxRedirectsError:Gt.MaxRedirectsError,TimeoutError:Gt.TimeoutError,ParseError:Gt.ParseError,CancelError:Gt.CancelError,UnsupportedProtocolError:Gt.UnsupportedProtocolError,UploadError:Gt.UploadError},Fq=async t=>new Promise(e=>{setTimeout(e,t)}),{normalizeArguments:ul}=cl.default,w1=(...t)=>{let e;for(let r of t)e=ul(void 0,r,e);return e},Pq=t=>t.isStream?new cl.default(void 0,t):Gt.default(t),Iq=t=>"defaults"in t&&"options"in t.defaults,Lq=["get","post","put","patch","head","delete"];Wt.defaultHandler=(t,e)=>e(t);var S1=(t,e)=>{if(t)for(let r of t)r(e)},x1=t=>{t._rawHandlers=t.handlers,t.handlers=t.handlers.map(i=>(n,s)=>{let o,a=i(n,u=>(o=s(u),o));if(a!==o&&!n.isStream&&o){let u=a,{then:c,catch:l,finally:h}=u;Object.setPrototypeOf(u,Object.getPrototypeOf(o)),Object.defineProperties(u,Object.getOwnPropertyDescriptors(o)),u.then=c,u.catch=l,u.finally=h}return a});let e=(i,n={},s)=>{var o,a;let u=0,c=l=>t.handlers[u++](l,u===t.handlers.length?Pq:c);if(v1.default.plainObject(i)){let l={...i,...n};cl.setNonEnumerableProperties([i,n],l),n=l,i=void 0}try{let l;try{S1(t.options.hooks.init,n),S1((o=n.hooks)===null||o===void 0?void 0:o.init,n)}catch(f){l=f}let h=ul(i,n,s!=null?s:t.options);if(h[cl.kIsNormalizedAlready]=!0,l)throw new Gt.RequestError(l.message,l,h);return c(h)}catch(l){if(n.isStream)throw l;return Tq.default(l,t.options.hooks.beforeError,(a=n.hooks)===null||a===void 0?void 0:a.beforeError)}};e.extend=(...i)=>{let n=[t.options],s=[...t._rawHandlers],o;for(let a of i)Iq(a)?(n.push(a.defaults.options),s.push(...a.defaults._rawHandlers),o=a.defaults.mutableDefaults):(n.push(a),"handlers"in a&&s.push(...a.handlers),o=a.mutableDefaults);return s=s.filter(a=>a!==Wt.defaultHandler),s.length===0&&s.push(Wt.defaultHandler),x1({options:w1(...n),handlers:s,mutableDefaults:!!o})};let r=async function*(i,n){let s=ul(i,n,t.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!v1.default.object(o))throw new TypeError("`options.pagination` must be implemented");let a=[],{countLimit:u}=o,c=0;for(;c<o.requestLimit;){c!==0&&await Fq(o.backoff);let l=await e(void 0,void 0,s),h=await o.transform(l),f=[];for(let m of h)if(o.filter(m,a,f)&&(!o.shouldContinue(m,a,f)||(yield m,o.stackAllItems&&a.push(m),f.push(m),--u<=0)))return;let d=o.paginate(l,a,f);if(d===!1)return;d===l.request.options?s=l.request.options:d!==void 0&&(s=ul(void 0,d,s)),c++}};e.paginate=r,e.paginate.all=async(i,n)=>{let s=[];for await(let o of r(i,n))s.push(o);return s},e.paginate.each=r,e.stream=(i,n)=>e(i,{...n,isStream:!0});for(let i of Lq)e[i]=(n,s)=>e(n,{...s,method:i}),e.stream[i]=(n,s)=>e(n,{...s,method:i,isStream:!0});return Object.assign(e,Oq),Object.defineProperty(e,"defaults",{value:t.mutableDefaults?t:kq.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),e.mergeOptions=w1,e};Wt.default=x1;Rq(E1(),Wt)});var Sy=T((Kr,ll)=>{"use strict";var Bq=Kr&&Kr.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),D1=Kr&&Kr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Bq(e,t,r)};Object.defineProperty(Kr,"__esModule",{value:!0});var Nq=require("url"),A1=vy(),Mq={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:t})=>t},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:t=>t.request.options.responseType==="json"?t.body:JSON.parse(t.body),paginate:t=>{if(!Reflect.has(t.headers,"link"))return!1;let e=t.headers.link.split(","),r;for(let i of e){let n=i.split(";");if(n[1].includes("next")){r=n[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new Nq.URL(r)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:t=>JSON.parse(t),stringifyJson:t=>JSON.stringify(t),cacheOptions:{}},handlers:[A1.defaultHandler],mutableDefaults:!1},wy=A1.default(Mq);Kr.default=wy;ll.exports=wy;ll.exports.default=wy;ll.exports.__esModule=!0;D1(vy(),Kr);D1(_y(),Kr)});var P1=T((DG,F1)=>{function Vt(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}F1.exports=Vt;Vt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Vt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Vt.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},r),this._options.unref&&this._timer.unref(),!0};Vt.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Vt.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};Vt.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};Vt.prototype.start=Vt.prototype.try;Vt.prototype.errors=function(){return this._errors};Vt.prototype.attempts=function(){return this._attempts};Vt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,i=0;i<this._errors.length;i++){var n=this._errors[i],s=n.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=n,r=o)}return e}});var I1=T(fn=>{var qq=P1();fn.operation=function(t){var e=fn.timeouts(t);return new qq(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};fn.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],n=0;n<e.retries;n++)i.push(this.createTimeout(n,e));return t&&t.forever&&!i.length&&i.push(this.createTimeout(n,e)),i.sort(function(s,o){return s-o}),i};fn.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,i=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return i=Math.min(i,e.maxTimeout),i};fn.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var i in t)typeof t[i]=="function"&&r.push(i)}for(var n=0;n<r.length;n++){var s=r[n],o=t[s];t[s]=function(u){var c=fn.operation(e),l=Array.prototype.slice.call(arguments,1),h=l.pop();l.push(function(f){c.retry(f)||(f&&(arguments[0]=c.mainError()),h.apply(this,arguments))}),c.attempt(function(){u.apply(t,l)})}.bind(t,o),t[s].options=e}}});var B1=T((CG,L1)=>{L1.exports=I1()});var M1=T((RG,N1)=>{var Uq=B1();function Hq(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=Uq.operation(s);function a(l){n(l||new Error("Aborted"))}function u(l,h){if(l.bail){a(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,h):n(o.mainError())}function c(l){var h;try{h=t(a,l)}catch(f){u(f,l);return}Promise.resolve(h).then(i).catch(function(d){u(d,l)})}o.attempt(c)}return new Promise(r)}N1.exports=Hq});var iR=T(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});function $U(t){return t&&t.__esModule?t:{default:t}}var Q1=Object.defineProperty,J1=Object.getOwnPropertySymbols,zU=Object.prototype.hasOwnProperty,GU=Object.prototype.propertyIsEnumerable,X1=(t,e,r)=>e in t?Q1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,WU=(t,e)=>{for(var r in e||(e={}))zU.call(e,r)&&X1(t,r,e[r]);if(J1)for(var r of J1(e))GU.call(e,r)&&X1(t,r,e[r]);return t},VU=(t,e)=>{for(var r in e)Q1(t,r,{get:e[r],enumerable:!0})},YU=(t,e,r)=>new Promise((i,n)=>{var s=u=>{try{a(r.next(u))}catch(c){n(c)}},o=u=>{try{a(r.throw(u))}catch(c){n(c)}},a=u=>u.done?i(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(t,e)).next())}),eR={};VU(eR,{configDir:()=>rR,darwinConfig:()=>Uy,getPathForPlatform:()=>$y,getPlatform:()=>qy,linuxConfig:()=>vl,winConfig:()=>Hy});var KU=require("fs/promises"),ZU=require("path"),tR=$U(ZU);function qy(){return process.platform}function vl(){if(process.env.XDG_CONFIG_HOME!==void 0)return process.env.XDG_CONFIG_HOME;if(process.env.HOME!==void 0)return tR.default.join(process.env.HOME,".config")}function Uy(){if(process.env.HOME!==void 0)return tR.default.join(process.env.HOME,"/Library/Application Support")}function Hy(){return process.env.APPDATA}function $y({platform:t}){switch(t){case"linux":return vl();case"darwin":return Uy();case"win32":return Hy();default:return vl()}}function rR(){return YU(this,arguments,function*(t={}){var e;let r=(e=t.platform)!=null?e:qy(),i=$y({platform:r});if(i!==void 0){if(t.validate===!1)return i;try{return yield KU.stat.call(void 0,i),i}catch{return}}})}Sr.__spreadValues=WU;Sr.getPlatform=qy;Sr.linuxConfig=vl;Sr.darwinConfig=Uy;Sr.winConfig=Hy;Sr.getPathForPlatform=$y;Sr.configDir=rR;Sr.config_dir_exports=eR});var nR=T(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0});var JU=iR();zy.configDir=JU.configDir});var lR=T((wW,uH)=>{uH.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var dR=T(Ft=>{"use strict";var fR=lR(),Ge=process.env;Object.defineProperty(Ft,"_vendors",{value:fR.map(function(t){return t.constant})});Ft.name=null;Ft.isPR=null;fR.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(i){return hR(i)});if(Ft[t.constant]=r,!!r)switch(Ft.name=t.name,typeof t.pr){case"string":Ft.isPR=!!Ge[t.pr];break;case"object":"env"in t.pr?Ft.isPR=t.pr.env in Ge&&Ge[t.pr.env]!==t.pr.ne:"any"in t.pr?Ft.isPR=t.pr.any.some(function(i){return!!Ge[i]}):Ft.isPR=hR(t.pr);break;default:Ft.isPR=null}});Ft.isCI=!!(Ge.CI!=="false"&&(Ge.BUILD_ID||Ge.BUILD_NUMBER||Ge.CI||Ge.CI_APP_ID||Ge.CI_BUILD_ID||Ge.CI_BUILD_NUMBER||Ge.CI_NAME||Ge.CONTINUOUS_INTEGRATION||Ge.RUN_ID||Ft.name));function hR(t){return typeof t=="string"?!!Ge[t]:"env"in t?Ge[t.env]&&Ge[t.env].includes(t.includes):"any"in t?t.any.some(function(e){return!!Ge[e]}):Object.keys(t).every(function(e){return Ge[e]===t[e]})}});var wl=T((jW,mH)=>{mH.exports={name:"create-turbo",version:"2.0.4-canary.3",description:"Create a new Turborepo",homepage:"https://turbo.build/repo",license:"MIT",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/create-turbo"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:{"create-turbo":"dist/cli.js"},scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{chalk:"4.1.2",commander:"^11.0.0","fs-extra":"^11.1.1",inquirer:"^8.0.0","proxy-agent":"^6.2.2",rimraf:"^3.0.2",semver:"^7.3.8","update-check":"^1.5.4"},devDependencies:{"@turbo/eslint-config":"workspace:*","@turbo/telemetry":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/utils":"workspace:*","@turbo/workspaces":"workspace:*","@types/fs-extra":"^9.0.13","@types/inquirer":"^7.3.1","@types/jest":"^27.4.0","@types/node":"^18.17.2","@types/rimraf":"^3.0.2","@types/semver":"^7.3.9",jest:"^27.4.3","ts-jest":"^27.1.1",tsup:"^6.7.0",typescript:"^5.2.2"},files:["dist"]}});var OT=oe(require("http")),FT=oe(require("https")),g0=oe(require("chalk")),Ea=require("commander");var ZT=oe(D0());function ql(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function so(t){return so=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},so(t)}function Ul(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hl(t,e){if(e&&(so(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ul(t)}function Ui(t){return Ui=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ui(t)}function Tr(t,e){return Tr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Tr(t,e)}function $l(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Tr(t,e)}function zl(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Gl(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Tn(t,e,r){return Gl()?Tn=Reflect.construct.bind():Tn=function(n,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(n,a),c=new u;return o&&Tr(c,o.prototype),c},Tn.apply(null,arguments)}function oo(t){var e=typeof Map=="function"?new Map:void 0;return oo=function(i){if(i===null||!zl(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(i))return e.get(i);e.set(i,n)}function n(){return Tn(i,arguments,Ui(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Tr(n,i)},oo(t)}var $0=oe(H0());var JT=oe(require("fs-extra")),$4=function(t){$l(e,t);function e(r){var i;return ql(this,e),i=Hl(this,Ui(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(oo(Error));var XT=oe(require("fs")),QT=oe(require("path"));var oB=oe(require("fs")),aB=oe(require("path"));function sg(t){return typeof t=="undefined"||t===null}function rk(t){return typeof t=="object"&&t!==null}function ik(t){return Array.isArray(t)?t:sg(t)?[]:[t]}function nk(t,e){var r,i,n,s;if(e)for(s=Object.keys(e),r=0,i=s.length;r<i;r+=1)n=s[r],t[n]=e[n];return t}function sk(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function ok(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var ak=sg,uk=rk,ck=ik,lk=sk,hk=ok,fk=nk,$e={isNothing:ak,isObject:uk,toArray:ck,repeat:lk,isNegativeZero:hk,extend:fk};function og(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
20
20
|
|
21
|
-
`+t.mark.snippet),i+" "+r):i}function
|
21
|
+
`+t.mark.snippet),i+" "+r):i}function uo(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=og(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}uo.prototype=Object.create(Error.prototype);uo.prototype.constructor=uo;uo.prototype.toString=function(e){return this.name+": "+og(this,e)};var lt=uo;function Xl(t,e,r,i,n){var s="",o="",a=Math.floor(n/2)-1;return i-e>a&&(s=" ... ",e=i-a+s.length),r-i>a&&(o=" ...",r=i+a-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:i-e+s.length}}function Ql(t,e){return $e.repeat(" ",e-t.length)+t}function dk(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],s,o=-1;s=r.exec(t.buffer);)n.push(s.index),i.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a="",u,c,l=Math.min(t.line+e.linesAfter,n.length).toString().length,h=e.maxLength-(e.indent+l+3);for(u=1;u<=e.linesBefore&&!(o-u<0);u++)c=Xl(t.buffer,i[o-u],n[o-u],t.position-(i[o]-i[o-u]),h),a=$e.repeat(" ",e.indent)+Ql((t.line-u+1).toString(),l)+" | "+c.str+`
|
22
22
|
`+a;for(c=Xl(t.buffer,i[o],n[o],t.position,h),a+=$e.repeat(" ",e.indent)+Ql((t.line+1).toString(),l)+" | "+c.str+`
|
23
23
|
`,a+=$e.repeat("-",e.indent+l+3+c.pos)+`^
|
24
24
|
`,u=1;u<=e.linesAfter&&!(o+u>=n.length);u++)c=Xl(t.buffer,i[o+u],n[o+u],t.position-(i[o]-i[o+u]),h),a+=$e.repeat(" ",e.indent)+Ql((t.line+u+1).toString(),l)+" | "+c.str+`
|
25
|
-
`;return a.replace(/\n$/,"")}var dk
|
26
|
-
\r`;function
|
27
|
-
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function
|
28
|
-
`,e-1))}function
|
25
|
+
`;return a.replace(/\n$/,"")}var pk=dk,mk=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],yk=["scalar","sequence","mapping"];function gk(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function _k(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(mk.indexOf(r)===-1)throw new lt('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=gk(e.styleAliases||null),yk.indexOf(this.kind)===-1)throw new lt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Je=_k;function z0(t,e){var r=[];return t[e].forEach(function(i){var n=r.length;r.forEach(function(s,o){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(n=o)}),r[n]=i}),r}function bk(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function th(t){return this.extend(t)}th.prototype.extend=function(e){var r=[],i=[];if(e instanceof Je)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new lt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Je))throw new lt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new lt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new lt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof Je))throw new lt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(th.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=z0(n,"implicit"),n.compiledExplicit=z0(n,"explicit"),n.compiledTypeMap=bk(n.compiledImplicit,n.compiledExplicit),n};var ag=th,ug=new Je("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),cg=new Je("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),lg=new Je("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),hg=new ag({explicit:[ug,cg,lg]});function Ek(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function vk(){return null}function wk(t){return t===null}var fg=new Je("tag:yaml.org,2002:null",{kind:"scalar",resolve:Ek,construct:vk,predicate:wk,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Sk(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function xk(t){return t==="true"||t==="True"||t==="TRUE"}function Dk(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var dg=new Je("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Sk,construct:xk,predicate:Dk,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function Ak(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function Ck(t){return 48<=t&&t<=55}function Rk(t){return 48<=t&&t<=57}function Tk(t){if(t===null)return!1;var e=t.length,r=0,i=!1,n;if(!e)return!1;if(n=t[r],(n==="-"||n==="+")&&(n=t[++r]),n==="0"){if(r+1===e)return!0;if(n=t[++r],n==="b"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!Ak(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!Ck(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!Rk(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function kk(t){var e=t,r=1,i;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),i=e[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),e=e.slice(1),i=e[0]),e==="0")return 0;if(i==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function Ok(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!$e.isNegativeZero(t)}var pg=new Je("tag:yaml.org,2002:int",{kind:"scalar",resolve:Tk,construct:kk,predicate:Ok,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Fk=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Pk(t){return!(t===null||!Fk.test(t)||t[t.length-1]==="_")}function Ik(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var Lk=/^[-+]?[0-9]+e/;function Bk(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if($e.isNegativeZero(t))return"-0.0";return r=t.toString(10),Lk.test(r)?r.replace("e",".e"):r}function Nk(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||$e.isNegativeZero(t))}var mg=new Je("tag:yaml.org,2002:float",{kind:"scalar",resolve:Pk,construct:Ik,predicate:Nk,represent:Bk,defaultStyle:"lowercase"}),yg=hg.extend({implicit:[fg,dg,pg,mg]}),gg=yg,_g=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),bg=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Mk(t){return t===null?!1:_g.exec(t)!==null||bg.exec(t)!==null}function jk(t){var e,r,i,n,s,o,a,u=0,c=null,l,h,f;if(e=_g.exec(t),e===null&&(e=bg.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(r,i,n));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(l=+e[10],h=+(e[11]||0),c=(l*60+h)*6e4,e[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,i,n,s,o,a,u)),c&&f.setTime(f.getTime()-c),f}function qk(t){return t.toISOString()}var Eg=new Je("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Mk,construct:jk,instanceOf:Date,represent:qk});function Uk(t){return t==="<<"||t===null}var vg=new Je("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Uk}),oh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
26
|
+
\r`;function Hk(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=oh;for(r=0;r<n;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function $k(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=oh,o=0,a=[];for(e=0;e<n;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return r=n%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function zk(t){var e="",r=0,i,n,s=t.length,o=oh;for(i=0;i<s;i++)i%3===0&&i&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[i];return n=s%3,n===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):n===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):n===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function Gk(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var wg=new Je("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Hk,construct:$k,predicate:Gk,represent:zk}),Wk=Object.prototype.hasOwnProperty,Vk=Object.prototype.toString;function Yk(t){if(t===null)return!0;var e=[],r,i,n,s,o,a=t;for(r=0,i=a.length;r<i;r+=1){if(n=a[r],o=!1,Vk.call(n)!=="[object Object]")return!1;for(s in n)if(Wk.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function Kk(t){return t!==null?t:[]}var Sg=new Je("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Yk,construct:Kk}),Zk=Object.prototype.toString;function Jk(t){if(t===null)return!0;var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(i=o[e],Zk.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function Xk(t){if(t===null)return[];var e,r,i,n,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1)i=o[e],n=Object.keys(i),s[e]=[n[0],i[n[0]]];return s}var xg=new Je("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Jk,construct:Xk}),Qk=Object.prototype.hasOwnProperty;function eO(t){if(t===null)return!0;var e,r=t;for(e in r)if(Qk.call(r,e)&&r[e]!==null)return!1;return!0}function tO(t){return t!==null?t:{}}var Dg=new Je("tag:yaml.org,2002:set",{kind:"mapping",resolve:eO,construct:tO}),ah=gg.extend({implicit:[Eg,vg],explicit:[wg,Sg,xg,Dg]}),si=Object.prototype.hasOwnProperty,Da=1,Ag=2,Cg=3,Aa=4,eh=1,rO=2,G0=3,iO=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,nO=/[\x85\u2028\u2029]/,sO=/[,\[\]\{\}]/,Rg=/^(?:!|!!|![a-z\-]+!)$/i,Tg=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function W0(t){return Object.prototype.toString.call(t)}function sr(t){return t===10||t===13}function $i(t){return t===9||t===32}function pt(t){return t===9||t===32||t===10||t===13}function Fn(t){return t===44||t===91||t===93||t===123||t===125}function oO(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function aO(t){return t===120?2:t===117?4:t===85?8:0}function uO(t){return 48<=t&&t<=57?t-48:-1}function V0(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
27
|
+
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function cO(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var kg=new Array(256),Og=new Array(256);for(Hi=0;Hi<256;Hi++)kg[Hi]=V0(Hi)?1:0,Og[Hi]=V0(Hi);var Hi;function lO(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||ah,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Fg(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=pk(r),new lt(e,r)}function fe(t,e){throw Fg(t,e)}function Ca(t,e){t.onWarning&&t.onWarning.call(null,Fg(t,e))}var Y0={YAML:function(e,r,i){var n,s,o;e.version!==null&&fe(e,"duplication of %YAML directive"),i.length!==1&&fe(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&fe(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&fe(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&Ca(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&fe(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],Rg.test(n)||fe(e,"ill-formed tag handle (first argument) of the TAG directive"),si.call(e.tagMap,n)&&fe(e,'there is a previously declared suffix for "'+n+'" tag handle'),Tg.test(s)||fe(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{fe(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function ni(t,e,r,i){var n,s,o,a;if(e<r){if(a=t.input.slice(e,r),i)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||fe(t,"expected valid JSON character");else iO.test(a)&&fe(t,"the stream contains non-printable characters");t.result+=a}}function K0(t,e,r,i){var n,s,o,a;for($e.isObject(r)||fe(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,a=n.length;o<a;o+=1)s=n[o],si.call(e,s)||(e[s]=r[s],i[s]=!0)}function Pn(t,e,r,i,n,s,o,a,u){var c,l;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,l=n.length;c<l;c+=1)Array.isArray(n[c])&&fe(t,"nested arrays are not supported inside keys"),typeof n=="object"&&W0(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&W0(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,l=s.length;c<l;c+=1)K0(t,e,s[c],r);else K0(t,e,s,r);else!t.json&&!si.call(r,n)&&si.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=u||t.position,fe(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[n]=s,delete r[n];return e}function uh(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):fe(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Ue(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;$i(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(sr(n))for(uh(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&Ca(t,"deficient indentation"),i}function ka(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||pt(r)))}function ch(t,e){e===1?t.result+=" ":e>1&&(t.result+=$e.repeat(`
|
28
|
+
`,e-1))}function hO(t,e,r){var i,n,s,o,a,u,c,l,h=t.kind,f=t.result,d;if(d=t.input.charCodeAt(t.position),pt(d)||Fn(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=t.input.charCodeAt(t.position+1),pt(n)||r&&Fn(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;d!==0;){if(d===58){if(n=t.input.charCodeAt(t.position+1),pt(n)||r&&Fn(n))break}else if(d===35){if(i=t.input.charCodeAt(t.position-1),pt(i))break}else{if(t.position===t.lineStart&&ka(t)||r&&Fn(d))break;if(sr(d))if(u=t.line,c=t.lineStart,l=t.lineIndent,Ue(t,!1,-1),t.lineIndent>=e){a=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=u,t.lineStart=c,t.lineIndent=l;break}}a&&(ni(t,s,o,!1),ch(t,t.line-u),s=o=t.position,a=!1),$i(d)||(o=t.position+1),d=t.input.charCodeAt(++t.position)}return ni(t,s,o,!1),t.result?!0:(t.kind=h,t.result=f,!1)}function fO(t,e){var r,i,n;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(ni(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,n=t.position;else return!0;else sr(r)?(ni(t,i,n,!0),ch(t,Ue(t,!1,e)),i=n=t.position):t.position===t.lineStart&&ka(t)?fe(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);fe(t,"unexpected end of the stream within a single quoted scalar")}function dO(t,e){var r,i,n,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return ni(t,r,t.position,!0),t.position++,!0;if(a===92){if(ni(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),sr(a))Ue(t,!1,e);else if(a<256&&kg[a])t.result+=Og[a],t.position++;else if((o=aO(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=oO(a))>=0?s=(s<<4)+o:fe(t,"expected hexadecimal character");t.result+=cO(s),t.position++}else fe(t,"unknown escape sequence");r=i=t.position}else sr(a)?(ni(t,r,i,!0),ch(t,Ue(t,!1,e)),r=i=t.position):t.position===t.lineStart&&ka(t)?fe(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}fe(t,"unexpected end of the stream within a double quoted scalar")}function pO(t,e){var r=!0,i,n,s,o=t.tag,a,u=t.anchor,c,l,h,f,d,m=Object.create(null),y,p,v,C;if(C=t.input.charCodeAt(t.position),C===91)l=93,d=!1,a=[];else if(C===123)l=125,d=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),C=t.input.charCodeAt(++t.position);C!==0;){if(Ue(t,!0,e),C=t.input.charCodeAt(t.position),C===l)return t.position++,t.tag=o,t.anchor=u,t.kind=d?"mapping":"sequence",t.result=a,!0;r?C===44&&fe(t,"expected the node content, but found ','"):fe(t,"missed comma between flow collection entries"),p=y=v=null,h=f=!1,C===63&&(c=t.input.charCodeAt(t.position+1),pt(c)&&(h=f=!0,t.position++,Ue(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,In(t,e,Da,!1,!0),p=t.tag,y=t.result,Ue(t,!0,e),C=t.input.charCodeAt(t.position),(f||t.line===i)&&C===58&&(h=!0,C=t.input.charCodeAt(++t.position),Ue(t,!0,e),In(t,e,Da,!1,!0),v=t.result),d?Pn(t,a,m,p,y,v,i,n,s):h?a.push(Pn(t,null,m,p,y,v,i,n,s)):a.push(y),Ue(t,!0,e),C=t.input.charCodeAt(t.position),C===44?(r=!0,C=t.input.charCodeAt(++t.position)):r=!1}fe(t,"unexpected end of the stream within a flow collection")}function mO(t,e){var r,i,n=eh,s=!1,o=!1,a=e,u=0,c=!1,l,h;if(h=t.input.charCodeAt(t.position),h===124)i=!1;else if(h===62)i=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)eh===n?n=h===43?G0:rO:fe(t,"repeat of a chomping mode identifier");else if((l=uO(h))>=0)l===0?fe(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?fe(t,"repeat of an indentation width identifier"):(a=e+l-1,o=!0);else break;if($i(h)){do h=t.input.charCodeAt(++t.position);while($i(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!sr(h)&&h!==0)}for(;h!==0;){for(uh(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),sr(h)){u++;continue}if(t.lineIndent<a){n===G0?t.result+=$e.repeat(`
|
29
29
|
`,s?1+u:u):n===eh&&s&&(t.result+=`
|
30
30
|
`);break}for(i?$i(h)?(c=!0,t.result+=$e.repeat(`
|
31
31
|
`,s?1+u:u)):c?(c=!1,t.result+=$e.repeat(`
|
32
32
|
`,u+1)):u===0?s&&(t.result+=" "):t.result+=$e.repeat(`
|
33
33
|
`,u):t.result+=$e.repeat(`
|
34
|
-
`,s?1+u:u),s=!0,o=!0,u=0,r=t.position;!sr(h)&&h!==0;)h=t.input.charCodeAt(++t.position);ni(t,r,t.position,!1)}return!0}function
|
35
|
-
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new
|
34
|
+
`,s?1+u:u),s=!0,o=!0,u=0,r=t.position;!sr(h)&&h!==0;)h=t.input.charCodeAt(++t.position);ni(t,r,t.position,!1)}return!0}function Z0(t,e){var r,i=t.tag,n=t.anchor,s=[],o,a=!1,u;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),u=t.input.charCodeAt(t.position);u!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,fe(t,"tab characters must not be used in indentation")),!(u!==45||(o=t.input.charCodeAt(t.position+1),!pt(o))));){if(a=!0,t.position++,Ue(t,!0,-1)&&t.lineIndent<=e){s.push(null),u=t.input.charCodeAt(t.position);continue}if(r=t.line,In(t,e,Cg,!1,!0),s.push(t.result),Ue(t,!0,-1),u=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&u!==0)fe(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function yO(t,e,r){var i,n,s,o,a,u,c=t.tag,l=t.anchor,h={},f=Object.create(null),d=null,m=null,y=null,p=!1,v=!1,C;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),C=t.input.charCodeAt(t.position);C!==0;){if(!p&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,fe(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(C===63||C===58)&&pt(i))C===63?(p&&(Pn(t,h,f,d,m,null,o,a,u),d=m=y=null),v=!0,p=!0,n=!0):p?(p=!1,n=!0):fe(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,C=i;else{if(o=t.line,a=t.lineStart,u=t.position,!In(t,r,Ag,!1,!0))break;if(t.line===s){for(C=t.input.charCodeAt(t.position);$i(C);)C=t.input.charCodeAt(++t.position);if(C===58)C=t.input.charCodeAt(++t.position),pt(C)||fe(t,"a whitespace character is expected after the key-value separator within a block mapping"),p&&(Pn(t,h,f,d,m,null,o,a,u),d=m=y=null),v=!0,p=!1,n=!1,d=t.tag,m=t.result;else if(v)fe(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=l,!0}else if(v)fe(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=l,!0}if((t.line===s||t.lineIndent>e)&&(p&&(o=t.line,a=t.lineStart,u=t.position),In(t,e,Aa,!0,n)&&(p?m=t.result:y=t.result),p||(Pn(t,h,f,d,m,y,o,a,u),d=m=y=null),Ue(t,!0,-1),C=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&C!==0)fe(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return p&&Pn(t,h,f,d,m,null,o,a,u),v&&(t.tag=c,t.anchor=l,t.kind="mapping",t.result=h),v}function gO(t){var e,r=!1,i=!1,n,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&fe(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(i=!0,n="!!",o=t.input.charCodeAt(++t.position)):n="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):fe(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!pt(o);)o===33&&(i?fe(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),Rg.test(n)||fe(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),sO.test(s)&&fe(t,"tag suffix cannot contain flow indicator characters")}s&&!Tg.test(s)&&fe(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{fe(t,"tag name is malformed: "+s)}return r?t.tag=s:si.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:fe(t,'undeclared tag handle "'+n+'"'),!0}function _O(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&fe(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!pt(r)&&!Fn(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&fe(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function bO(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!pt(i)&&!Fn(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&fe(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),si.call(t.anchorMap,r)||fe(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Ue(t,!0,-1),!0}function In(t,e,r,i,n){var s,o,a,u=1,c=!1,l=!1,h,f,d,m,y,p;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=Aa===r||Cg===r,i&&Ue(t,!0,-1)&&(c=!0,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)),u===1)for(;gO(t)||_O(t);)Ue(t,!0,-1)?(c=!0,a=s,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)):a=!1;if(a&&(a=c||n),(u===1||Aa===r)&&(Da===r||Ag===r?y=e:y=e+1,p=t.position-t.lineStart,u===1?a&&(Z0(t,p)||yO(t,p,y))||pO(t,y)?l=!0:(o&&mO(t,y)||fO(t,y)||dO(t,y)?l=!0:bO(t)?(l=!0,(t.tag!==null||t.anchor!==null)&&fe(t,"alias node should not have any properties")):hO(t,y,Da===r)&&(l=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):u===0&&(l=a&&Z0(t,p))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&fe(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,f=t.implicitTypes.length;h<f;h+=1)if(m=t.implicitTypes[h],m.resolve(t.result)){t.result=m.construct(t.result),t.tag=m.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(si.call(t.typeMap[t.kind||"fallback"],t.tag))m=t.typeMap[t.kind||"fallback"][t.tag];else for(m=null,d=t.typeMap.multi[t.kind||"fallback"],h=0,f=d.length;h<f;h+=1)if(t.tag.slice(0,d[h].tag.length)===d[h].tag){m=d[h];break}m||fe(t,"unknown tag !<"+t.tag+">"),t.result!==null&&m.kind!==t.kind&&fe(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+m.kind+'", not "'+t.kind+'"'),m.resolve(t.result,t.tag)?(t.result=m.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):fe(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||l}function EO(t){var e=t.position,r,i,n,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&(Ue(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),r=t.position;o!==0&&!pt(o);)o=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),n=[],i.length<1&&fe(t,"directive name must not be less than one character in length");o!==0;){for(;$i(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!sr(o));break}if(sr(o))break;for(r=t.position;o!==0&&!pt(o);)o=t.input.charCodeAt(++t.position);n.push(t.input.slice(r,t.position))}o!==0&&uh(t),si.call(Y0,i)?Y0[i](t,i,n):Ca(t,'unknown document directive "'+i+'"')}if(Ue(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Ue(t,!0,-1)):s&&fe(t,"directives end mark is expected"),In(t,t.lineIndent-1,Aa,!1,!0),Ue(t,!0,-1),t.checkLineBreaks&&nO.test(t.input.slice(e,t.position))&&Ca(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&ka(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Ue(t,!0,-1));return}if(t.position<t.length-1)fe(t,"end of the stream or a document separator is expected");else return}function Pg(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
|
35
|
+
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new lO(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,fe(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)EO(r);return r.documents}function vO(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=Pg(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function wO(t,e){var r=Pg(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new lt("expected a single document in the stream, but found more")}}var SO=vO,xO=wO,Ig={loadAll:SO,load:xO},Lg=Object.prototype.toString,Bg=Object.prototype.hasOwnProperty,lh=65279,DO=9,co=10,AO=13,CO=32,RO=33,TO=34,rh=35,kO=37,OO=38,FO=39,PO=42,Ng=44,IO=45,Ra=58,LO=61,BO=62,NO=63,MO=64,Mg=91,jg=93,jO=96,qg=123,qO=124,Ug=125,tt={};tt[0]="\\0";tt[7]="\\a";tt[8]="\\b";tt[9]="\\t";tt[10]="\\n";tt[11]="\\v";tt[12]="\\f";tt[13]="\\r";tt[27]="\\e";tt[34]='\\"';tt[92]="\\\\";tt[133]="\\N";tt[160]="\\_";tt[8232]="\\L";tt[8233]="\\P";var UO=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],HO=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function $O(t,e){var r,i,n,s,o,a,u;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)o=i[n],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=t.compiledTypeMap.fallback[o],u&&Bg.call(u.styleAliases,a)&&(a=u.styleAliases[a]),r[o]=a;return r}function zO(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new lt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+$e.repeat("0",i-e.length)+e}var GO=1,lo=2;function WO(t){this.schema=t.schema||ah,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=$e.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=$O(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?lo:GO,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function J0(t,e){for(var r=$e.repeat(" ",e),i=0,n=-1,s="",o,a=t.length;i<a;)n=t.indexOf(`
|
36
36
|
`,i),n===-1?(o=t.slice(i),i=a):(o=t.slice(i,n+1),i=n+1),o.length&&o!==`
|
37
37
|
`&&(s+=r),s+=o;return s}function ih(t,e){return`
|
38
|
-
`+$e.repeat(" ",t.indent*e)}function
|
38
|
+
`+$e.repeat(" ",t.indent*e)}function VO(t,e){var r,i,n;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(n=t.implicitTypes[r],n.resolve(e))return!0;return!1}function Ta(t){return t===CO||t===DO}function ho(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==lh||65536<=t&&t<=1114111}function X0(t){return ho(t)&&t!==lh&&t!==AO&&t!==co}function Q0(t,e,r){var i=X0(t),n=i&&!Ta(t);return(r?i:i&&t!==Ng&&t!==Mg&&t!==jg&&t!==qg&&t!==Ug)&&t!==rh&&!(e===Ra&&!n)||X0(e)&&!Ta(e)&&t===rh||e===Ra&&n}function YO(t){return ho(t)&&t!==lh&&!Ta(t)&&t!==IO&&t!==NO&&t!==Ra&&t!==Ng&&t!==Mg&&t!==jg&&t!==qg&&t!==Ug&&t!==rh&&t!==OO&&t!==PO&&t!==RO&&t!==qO&&t!==LO&&t!==BO&&t!==FO&&t!==TO&&t!==kO&&t!==MO&&t!==jO}function KO(t){return!Ta(t)&&t!==Ra}function ao(t,e){var r=t.charCodeAt(e),i;return r>=55296&&r<=56319&&e+1<t.length&&(i=t.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function Hg(t){var e=/^\n* /;return e.test(t)}var $g=1,nh=2,zg=3,Gg=4,On=5;function ZO(t,e,r,i,n,s,o,a){var u,c=0,l=null,h=!1,f=!1,d=i!==-1,m=-1,y=YO(ao(t,0))&&KO(ao(t,t.length-1));if(e||o)for(u=0;u<t.length;c>=65536?u+=2:u++){if(c=ao(t,u),!ho(c))return On;y=y&&Q0(c,l,a),l=c}else{for(u=0;u<t.length;c>=65536?u+=2:u++){if(c=ao(t,u),c===co)h=!0,d&&(f=f||u-m-1>i&&t[m+1]!==" ",m=u);else if(!ho(c))return On;y=y&&Q0(c,l,a),l=c}f=f||d&&u-m-1>i&&t[m+1]!==" "}return!h&&!f?y&&!o&&!n(t)?$g:s===lo?On:nh:r>9&&Hg(t)?On:o?s===lo?On:nh:f?Gg:zg}function JO(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===lo?'""':"''";if(!t.noCompatMode&&(UO.indexOf(e)!==-1||HO.test(e)))return t.quotingType===lo?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=i||t.flowLevel>-1&&r>=t.flowLevel;function u(c){return VO(t,c)}switch(ZO(e,a,t.indent,o,u,t.quotingType,t.forceQuotes&&!i,n)){case $g:return e;case nh:return"'"+e.replace(/'/g,"''")+"'";case zg:return"|"+eg(e,t.indent)+tg(J0(e,s));case Gg:return">"+eg(e,t.indent)+tg(J0(XO(e,o),s));case On:return'"'+QO(e)+'"';default:throw new lt("impossible error: invalid scalar style")}}()}function eg(t,e){var r=Hg(t)?String(e):"",i=t[t.length-1]===`
|
39
39
|
`,n=i&&(t[t.length-2]===`
|
40
40
|
`||t===`
|
41
41
|
`),s=n?"+":i?"":"-";return r+s+`
|
42
|
-
`}function
|
43
|
-
`?t.slice(0,-1):t}function
|
44
|
-
`);return c=c!==-1?c:t.length,r.lastIndex=c,
|
42
|
+
`}function tg(t){return t[t.length-1]===`
|
43
|
+
`?t.slice(0,-1):t}function XO(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var c=t.indexOf(`
|
44
|
+
`);return c=c!==-1?c:t.length,r.lastIndex=c,rg(t.slice(0,c),e)}(),n=t[0]===`
|
45
45
|
`||t[0]===" ",s,o;o=r.exec(t);){var a=o[1],u=o[2];s=u[0]===" ",i+=a+(!n&&!s&&u!==""?`
|
46
|
-
`:"")+
|
46
|
+
`:"")+rg(u,e),n=s}return i}function rg(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,a=0,u="";i=r.exec(t);)a=i.index,a-n>e&&(s=o>n?o:a,u+=`
|
47
47
|
`+t.slice(n,s),n=s+1),o=a;return u+=`
|
48
48
|
`,t.length-n>e&&o>n?u+=t.slice(n,o)+`
|
49
|
-
`+t.slice(o+1):u+=t.slice(n),u.slice(1)}function
|
50
|
-
`:""}var nF
|
49
|
+
`+t.slice(o+1):u+=t.slice(n),u.slice(1)}function QO(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=ao(t,n),i=tt[r],!i&&ho(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||zO(r);return e}function eF(t,e,r){var i="",n=t.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],t.replacer&&(a=t.replacer.call(r,String(s),a)),(kr(t,e,a,!1,!1)||typeof a=="undefined"&&kr(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function ig(t,e,r,i){var n="",s=t.tag,o,a,u;for(o=0,a=r.length;o<a;o+=1)u=r[o],t.replacer&&(u=t.replacer.call(r,String(o),u)),(kr(t,e+1,u,!0,!0,!1,!0)||typeof u=="undefined"&&kr(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=ih(t,e)),t.dump&&co===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function tF(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,a,u,c,l;for(o=0,a=s.length;o<a;o+=1)l="",i!==""&&(l+=", "),t.condenseFlow&&(l+='"'),u=s[o],c=r[u],t.replacer&&(c=t.replacer.call(r,u,c)),kr(t,e,u,!1,!1)&&(t.dump.length>1024&&(l+="? "),l+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),kr(t,e,c,!1,!1)&&(l+=t.dump,i+=l));t.tag=n,t.dump="{"+i+"}"}function rF(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),a,u,c,l,h,f;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new lt("sortKeys must be a boolean or a function");for(a=0,u=o.length;a<u;a+=1)f="",(!i||n!=="")&&(f+=ih(t,e)),c=o[a],l=r[c],t.replacer&&(l=t.replacer.call(r,c,l)),kr(t,e+1,c,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&co===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=ih(t,e)),kr(t,e+1,l,!0,h)&&(t.dump&&co===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,n+=f));t.tag=s,t.dump=n||"{}"}function ng(t,e,r){var i,n,s,o,a,u;for(n=r?t.explicitTypes:t.implicitTypes,s=0,o=n.length;s<o;s+=1)if(a=n[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(u=t.styleMap[a.tag]||a.defaultStyle,Lg.call(a.represent)==="[object Function]")i=a.represent(e,u);else if(Bg.call(a.represent,u))i=a.represent[u](e,u);else throw new lt("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');t.dump=i}return!0}return!1}function kr(t,e,r,i,n,s,o){t.tag=null,t.dump=r,ng(t,r,!1)||ng(t,r,!0);var a=Lg.call(t.dump),u=i,c;i&&(i=t.flowLevel<0||t.flowLevel>e);var l=a==="[object Object]"||a==="[object Array]",h,f;if(l&&(h=t.duplicates.indexOf(r),f=h!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(n=!1),f&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(l&&f&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),a==="[object Object]")i&&Object.keys(t.dump).length!==0?(rF(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(tF(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?ig(t,e-1,t.dump,n):ig(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(eF(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&JO(t,t.dump,e,s,u);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new lt("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}function iF(t,e){var r=[],i=[],n,s;for(sh(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function sh(t,e,r){var i,n,s;if(t!==null&&typeof t=="object")if(n=e.indexOf(t),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,s=t.length;n<s;n+=1)sh(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)sh(t[i[n]],e,r)}function nF(t,e){e=e||{};var r=new WO(e);r.noRefs||iF(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),kr(r,0,i,!0,!0)?r.dump+`
|
50
|
+
`:""}var sF=nF,oF={dump:sF};function hh(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var aF=Je,uF=ag,cF=hg,lF=yg,hF=gg,fF=ah,dF=Ig.load,pF=Ig.loadAll,mF=oF.dump,yF=lt,gF={binary:wg,float:mg,map:lg,null:fg,pairs:xg,set:Dg,timestamp:Eg,bool:dg,int:pg,merge:vg,omap:Sg,seq:cg,str:ug},_F=hh("safeLoad","load"),bF=hh("safeLoadAll","loadAll"),EF=hh("safeDump","dump"),vF={Type:aF,Schema:uF,FAILSAFE_SCHEMA:cF,JSON_SCHEMA:lF,CORE_SCHEMA:hF,DEFAULT_SCHEMA:fF,load:dF,loadAll:pF,dump:mF,YAMLException:yF,types:gF,safeLoad:_F,safeLoadAll:bF,safeDump:EF},fh=vF;var uB=oe(su());var ue={};qT(ue,{bold:()=>eB,dimmed:()=>rB,error:()=>Mt,grey:()=>iB,info:()=>Q2,item:()=>nB,log:()=>Nt,turboBlue:()=>Zn,turboGradient:()=>X2,turboLoader:()=>ld,turboRed:()=>Tv,underline:()=>tB,warn:()=>Ov,yellow:()=>kv});var di=oe(require("chalk")),Dv=oe(Eu()),Av=oe(Su()),Cv="#0099F7",Rv="#F11712",J2="#FFFF00",X2=(0,Av.default)(Cv,Rv),Zn=di.default.hex(Cv),Tv=di.default.hex(Rv),kv=di.default.hex(J2),ld=t=>(0,Dv.default)({text:t,spinner:{frames:[" ",Zn("> "),Zn(">> "),Zn(">>>")]}}),Q2=(...t)=>{Nt(Zn.bold(">>>"),...t)},eB=(...t)=>{Nt(di.default.bold(...t))},tB=(...t)=>{Nt(di.default.underline(...t))},rB=(...t)=>{Nt(di.default.dim(...t))},iB=(...t)=>{Nt(di.default.grey(...t))},nB=(...t)=>{Nt(Zn.bold(" \u2022"),...t)},Nt=(...t)=>{console.log(...t)},Ov=(...t)=>{console.error(kv.bold(">>>"),...t)},Mt=(...t)=>{console.error(Tv.bold(">>>"),...t)};var nS=oe(require("os")),sS=oe(rs());async function Ou(t,e=[],r){let i={cwd:nS.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},...r};try{let{stdout:n}=await(0,sS.default)(t,e,i);return n.trim()}catch{return}}async function Do(){let[t,e,r,i]=await Promise.all([Ou("yarnpkg",["--version"]),Ou("npm",["--version"]),Ou("pnpm",["--version"]),Ou("bun",["--version"])]);return{yarn:t,pnpm:r,npm:e,bun:i}}var oS=oe(require("fs-extra")),tM=[".DS_Store",".git",".gitattributes",".gitignore",".gitlab-ci.yml",".hg",".hgcheck",".hgignore",".idea",".npmignore",".travis.yml","LICENSE","Thumbs.db","docs","mkdocs.yml","npm-debug.log","yarn-debug.log","yarn-error.log","yarnrc.yml",".yarn"];function Ao(t){let e=oS.default.readdirSync(t).filter(r=>!tM.includes(r)).filter(r=>!r.endsWith(".iml"));return{isEmpty:e.length===0,conflicts:e}}var Cd=oe(require("path")),Rd=oe(require("fs-extra")),Td=oe(require("chalk"));function Fu(t){let e=Cd.default.resolve(t),r=Cd.default.basename(e),i=Rd.default.existsSync(e),n=Rd.default.lstatSync(e,{throwIfNoEntry:!1});if(n&&!n.isDirectory())return{valid:!1,root:e,projectName:r,error:`${Td.default.dim(r)} is not a directory - please try a different location`};if(i){let{isEmpty:s,conflicts:o}=Ao(e);if(!s)return{valid:!1,root:e,projectName:r,error:`${Td.default.dim(r)} (${e}) has ${o.length} conflicting ${o.length===1?"file":"files"} - please try a different location`}}return{valid:!0,root:e,projectName:r}}var C1=require("stream"),R1=require("util"),T1=require("path"),k1=require("os"),ia=require("fs"),xy=oe(iA()),fl=oe(Sy()),jq=(0,R1.promisify)(C1.Stream.pipeline);async function hl(t){try{return(await fl.default.head(t)).statusCode===200}catch{return!1}}async function Dy(t,e){let[,r,i,n,s,...o]=t.pathname.split("/"),a=e?e.replace(/^\//,""):o.join("/");if(n===void 0||n===""&&s===void 0)try{let c=await(0,fl.default)(`https://api.github.com/repos/${r}/${i}`),l=JSON.parse(c.body);return{username:r,name:i,branch:l.default_branch,filePath:a}}catch{return}let u=e?`${s}/${o.join("/")}`.replace(new RegExp(`/${a}|/$`),""):s;if(r&&i&&u&&n==="tree")return{username:r,name:i,branch:u,filePath:a}}function Ay({username:t,name:e,branch:r,filePath:i}){let n=`https://api.github.com/repos/${t}/${e}/contents`,s=`${i?`/${i}`:""}/package.json`;return hl(`${n+s}?ref=${r}`)}function Cy(t){try{let e=new URL(t);return hl(e.href)}catch{return hl(`https://api.github.com/repos/vercel/turbo/contents/examples/${encodeURIComponent(t)}`)}}async function O1(t,e){let r=(0,T1.join)((0,k1.tmpdir)(),`${e}.temp-${Date.now()}`);return await jq(fl.default.stream(t),(0,ia.createWriteStream)(r)),r}async function Ry(t,{username:e,name:r,branch:i,filePath:n}){let s=await O1(`https://codeload.github.com/${e}/${r}/tar.gz/${i}`,"turbo-ct-example");await(0,xy.x)({file:s,cwd:t,strip:n?n.split("/").length+1:1,filter:o=>o.startsWith(`${r}-${i.replace(/\//g,"-")}${n?`/${n}/`:"/"}`)}),await ia.promises.unlink(s)}async function Ty(t,e){let r=await O1("https://codeload.github.com/vercel/turbo/tar.gz/main","turbo-ct-example");await(0,xy.x)({file:r,cwd:t,strip:2+e.split("/").length,filter:i=>i.includes(`turbo-main/examples/${e}/`)}),await ia.promises.unlink(r)}var dl=require("fs-extra");async function ky(t){try{return await(0,dl.access)(t,dl.constants.W_OK),!0}catch{return!1}}var Ns=oe(require("path")),Oy=oe(M1()),Zr=oe(require("chalk")),js=require("fs-extra");function $q(t){return typeof t=="object"&&t!==null&&typeof t.message=="string"}var Ms=class extends Error{};async function Fy({appPath:t,example:e,isDefaultExample:r,examplePath:i}){let n,s;if(r)n={username:"vercel",name:"turbo",branch:"main",filePath:"examples/basic"};else{try{s=new URL(e)}catch(p){p.code!=="ERR_INVALID_URL"&&(Mt(p),process.exit(1))}s?(s.origin!=="https://github.com"&&(Mt(`Invalid URL: ${Zr.default.red(`"${e}"`)}. Only GitHub repositories are supported. Please use a GitHub URL and try again.`),process.exit(1)),n=await Dy(s,i),n||(Mt(`Unable to fetch repository information from: ${Zr.default.red(`"${e}"`)}. Please fix the URL and try again.`),process.exit(1)),await Ay(n)||(Mt(`Could not locate the repository for ${Zr.default.red(`"${e}"`)}. Please check that the repository exists and try again.`),process.exit(1))):await Cy(e)||(Mt(`Could not locate an example named ${Zr.default.red(`"${e}"`)}. It could be due to the following:
|
51
51
|
`,`1. Your spelling of example ${Zr.default.red(`"${e}"`)} might be incorrect.
|
52
|
-
`,"2. You might not be connected to the internet or you are behind a proxy."),process.exit(1))}let o=
|
52
|
+
`,"2. You might not be connected to the internet or you are behind a proxy."),process.exit(1))}let o=Ns.default.resolve(t);await ky(Ns.default.dirname(o))||(Mt("The application path is not writable, please check folder permissions and try again."),Mt("It is likely you do not have write permissions for this folder."),process.exit(1));let a=Ns.default.basename(o);try{await(0,js.mkdir)(o,{recursive:!0})}catch(p){Mt("Unable to create project directory"),Mt(p),process.exit(1)}let{isEmpty:u,conflicts:c}=Ao(o);u||(Mt(`${Zr.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 h=ld("Downloading files...");try{!r&&n?(Nt(`
|
53
53
|
Downloading files from repo ${Zr.default.cyan(e)}. This might take a moment.`),Nt(),h.start(),await(0,Oy.default)(()=>Ry(o,n),{retries:3})):(Nt(`
|
54
|
-
Downloading files${r?"":` for example ${Zr.default.cyan(e)}`}. This might take a moment.`),Nt(),h.start(),await(0,Oy.default)(()=>Ty(o,e),{retries:3}))}catch(p){throw new js(Hq(p)?p.message:String(p))}finally{h.stop()}let f=Ms.default.join(o,"package.json"),d=(0,qs.existsSync)(f),m=[];if(d){let p;try{p=(0,qs.readJsonSync)(f)}catch{}p&&m.push(...Object.keys(p.scripts||{}))}let y=t;return Ms.default.join(l,a)===t&&(y=a),{cdPath:y,hasPackageJson:d,availableScripts:m,repoInfo:n}}var Js=require("fs");var aR=ae(require("chalk"));var M1=ae(require("crypto")),yl=new Uint8Array(256),ml=yl.length;function Py(){return ml>yl.length-16&&(M1.default.randomFillSync(yl),ml=0),yl.slice(ml,ml+=16)}var Qe=[];for(let t=0;t<256;++t)Qe.push((t+256).toString(16).slice(1));function j1(t,e=0){return Qe[t[e+0]]+Qe[t[e+1]]+Qe[t[e+2]]+Qe[t[e+3]]+"-"+Qe[t[e+4]]+Qe[t[e+5]]+"-"+Qe[t[e+6]]+Qe[t[e+7]]+"-"+Qe[t[e+8]]+Qe[t[e+9]]+"-"+Qe[t[e+10]]+Qe[t[e+11]]+Qe[t[e+12]]+Qe[t[e+13]]+Qe[t[e+14]]+Qe[t[e+15]]}var q1=ae(require("crypto")),Iy={randomUUID:q1.default.randomUUID};function $q(t,e,r){if(Iy.randomUUID&&!e&&!t)return Iy.randomUUID();t=t||{};let i=t.random||(t.rng||Py)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){r=r||0;for(let n=0;n<16;++n)e[r+n]=i[n];return e}return j1(i)}var dn=$q;var Re;(function(t){t.assertEqual=n=>n;function e(n){}t.assertIs=e;function r(n){throw new Error}t.assertNever=r,t.arrayToEnum=n=>{let s={};for(let o of n)s[o]=o;return s},t.getValidEnumValues=n=>{let s=t.objectKeys(n).filter(a=>typeof n[n[a]]!="number"),o={};for(let a of s)o[a]=n[a];return t.objectValues(o)},t.objectValues=n=>t.objectKeys(n).map(function(s){return n[s]}),t.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{let s=[];for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&s.push(o);return s},t.find=(n,s)=>{for(let o of n)if(s(o))return o},t.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&isFinite(n)&&Math.floor(n)===n;function i(n,s=" | "){return n.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}t.joinValues=i,t.jsonStringifyReplacer=(n,s)=>typeof s=="bigint"?s.toString():s})(Re||(Re={}));var By;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(By||(By={}));var oe=Re.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Oi=t=>{switch(typeof t){case"undefined":return oe.undefined;case"string":return oe.string;case"number":return isNaN(t)?oe.nan:oe.number;case"boolean":return oe.boolean;case"function":return oe.function;case"bigint":return oe.bigint;case"symbol":return oe.symbol;case"object":return Array.isArray(t)?oe.array:t===null?oe.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?oe.promise:typeof Map!="undefined"&&t instanceof Map?oe.map:typeof Set!="undefined"&&t instanceof Set?oe.set:typeof Date!="undefined"&&t instanceof Date?oe.date:oe.object;default:return oe.unknown}},ie=Re.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),zq=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),Tt=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let r=e||function(s){return s.message},i={_errors:[]},n=s=>{for(let o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(n);else if(o.code==="invalid_return_type")n(o.returnTypeError);else if(o.code==="invalid_arguments")n(o.argumentsError);else if(o.path.length===0)i._errors.push(r(o));else{let a=i,u=0;for(;u<o.path.length;){let c=o.path[u];u===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(r(o))):a[c]=a[c]||{_errors:[]},a=a[c],u++}}};return n(this),i}toString(){return this.message}get message(){return JSON.stringify(this.issues,Re.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},i=[];for(let n of this.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(e(n))):i.push(e(n));return{formErrors:i,fieldErrors:r}}get formErrors(){return this.flatten()}};Tt.create=t=>new Tt(t);var sa=(t,e)=>{let r;switch(t.code){case ie.invalid_type:t.received===oe.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case ie.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,Re.jsonStringifyReplacer)}`;break;case ie.unrecognized_keys:r=`Unrecognized key(s) in object: ${Re.joinValues(t.keys,", ")}`;break;case ie.invalid_union:r="Invalid input";break;case ie.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Re.joinValues(t.options)}`;break;case ie.invalid_enum_value:r=`Invalid enum value. Expected ${Re.joinValues(t.options)}, received '${t.received}'`;break;case ie.invalid_arguments:r="Invalid function arguments";break;case ie.invalid_return_type:r="Invalid function return type";break;case ie.invalid_date:r="Invalid date";break;case ie.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:Re.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case ie.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case ie.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case ie.custom:r="Invalid input";break;case ie.invalid_intersection_types:r="Intersection results could not be merged";break;case ie.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case ie.not_finite:r="Number must be finite";break;default:r=e.defaultError,Re.assertNever(t)}return{message:r}},$1=sa;function Gq(t){$1=t}function _l(){return $1}var bl=t=>{let{data:e,path:r,errorMaps:i,issueData:n}=t,s=[...r,...n.path||[]],o={...n,path:s},a="",u=i.filter(c=>!!c).slice().reverse();for(let c of u)a=c(o,{data:e,defaultError:a}).message;return{...n,path:s,message:n.message||a}},Wq=[];function ce(t,e){let r=bl({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,_l(),sa].filter(i=>!!i)});t.common.issues.push(r)}var Ze=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let i=[];for(let n of r){if(n.status==="aborted")return be;n.status==="dirty"&&e.dirty(),i.push(n.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,r){let i=[];for(let n of r)i.push({key:await n.key,value:await n.value});return Ze.mergeObjectSync(e,i)}static mergeObjectSync(e,r){let i={};for(let n of r){let{key:s,value:o}=n;if(s.status==="aborted"||o.status==="aborted")return be;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value!="undefined"||n.alwaysSet)&&(i[s.value]=o.value)}return{status:e.value,value:i}}},be=Object.freeze({status:"aborted"}),z1=t=>({status:"dirty",value:t}),ft=t=>({status:"valid",value:t}),Ny=t=>t.status==="aborted",My=t=>t.status==="dirty",oa=t=>t.status==="valid",El=t=>typeof Promise!="undefined"&&t instanceof Promise,me;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(me||(me={}));var Yt=class{constructor(e,r,i,n){this._cachedPath=[],this.parent=e,this.data=r,this._path=i,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},U1=(t,e)=>{if(oa(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Tt(t.common.issues);return this._error=r,this._error}}};function Ee(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:i,description:n}=t;if(e&&(r||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:n}:{errorMap:(o,a)=>o.code!=="invalid_type"?{message:a.defaultError}:typeof a.data=="undefined"?{message:i!=null?i:a.defaultError}:{message:r!=null?r:a.defaultError},description:n}}var ve=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return Oi(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:Oi(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ze,ctx:{common:e.parent.common,data:e.data,parsedType:Oi(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(El(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let i=this.safeParse(e,r);if(i.success)return i.data;throw i.error}safeParse(e,r){var i;let n={common:{issues:[],async:(i=r==null?void 0:r.async)!==null&&i!==void 0?i:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Oi(e)},s=this._parseSync({data:e,path:n.path,parent:n});return U1(n,s)}async parseAsync(e,r){let i=await this.safeParseAsync(e,r);if(i.success)return i.data;throw i.error}async safeParseAsync(e,r){let i={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Oi(e)},n=this._parse({data:e,path:i.path,parent:i}),s=await(El(n)?n:Promise.resolve(n));return U1(i,s)}refine(e,r){let i=n=>typeof r=="string"||typeof r=="undefined"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,s)=>{let o=e(n),a=()=>s.addIssue({code:ie.custom,...i(n)});return typeof Promise!="undefined"&&o instanceof Promise?o.then(u=>u?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,r){return this._refinement((i,n)=>e(i)?!0:(n.addIssue(typeof r=="function"?r(i,n):r),!1))}_refinement(e){return new Ot({schema:this,typeName:ge.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return rr.create(this,this._def)}nullable(){return ei.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return kt.create(this,this._def)}promise(){return Ii.create(this,this._def)}or(e){return gn.create([this,e],this._def)}and(e){return _n.create(this,e,this._def)}transform(e){return new Ot({...Ee(this._def),schema:this,typeName:ge.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new Sn({...Ee(this._def),innerType:this,defaultValue:r,typeName:ge.ZodDefault})}brand(){return new vl({typeName:ge.ZodBranded,type:this,...Ee(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new Ws({...Ee(this._def),innerType:this,catchValue:r,typeName:ge.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return xn.create(this,e)}readonly(){return Ys.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Vq=/^c[^\s-]{8,}$/i,Yq=/^[a-z][a-z0-9]*$/,Kq=/^[0-9A-HJKMNP-TV-Z]{26}$/,Zq=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Jq=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Xq="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Ly,Qq=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,eU=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,tU=t=>t.precision?t.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):t.precision===0?t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function rU(t,e){return!!((e==="v4"||!e)&&Qq.test(t)||(e==="v6"||!e)&&eU.test(t))}var Rt=class extends ve{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==oe.string){let s=this._getOrReturnCtx(e);return ce(s,{code:ie.invalid_type,expected:oe.string,received:s.parsedType}),be}let i=new Ze,n;for(let s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(n=this._getOrReturnCtx(e,n),ce(n,{code:ie.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="max")e.data.length>s.value&&(n=this._getOrReturnCtx(e,n),ce(n,{code:ie.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="length"){let o=e.data.length>s.value,a=e.data.length<s.value;(o||a)&&(n=this._getOrReturnCtx(e,n),o?ce(n,{code:ie.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&ce(n,{code:ie.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),i.dirty())}else if(s.kind==="email")Jq.test(e.data)||(n=this._getOrReturnCtx(e,n),ce(n,{validation:"email",code:ie.invalid_string,message:s.message}),i.dirty());else if(s.kind==="emoji")Ly||(Ly=new RegExp(Xq,"u")),Ly.test(e.data)||(n=this._getOrReturnCtx(e,n),ce(n,{validation:"emoji",code:ie.invalid_string,message:s.message}),i.dirty());else if(s.kind==="uuid")Zq.test(e.data)||(n=this._getOrReturnCtx(e,n),ce(n,{validation:"uuid",code:ie.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid")Vq.test(e.data)||(n=this._getOrReturnCtx(e,n),ce(n,{validation:"cuid",code:ie.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid2")Yq.test(e.data)||(n=this._getOrReturnCtx(e,n),ce(n,{validation:"cuid2",code:ie.invalid_string,message:s.message}),i.dirty());else if(s.kind==="ulid")Kq.test(e.data)||(n=this._getOrReturnCtx(e,n),ce(n,{validation:"ulid",code:ie.invalid_string,message:s.message}),i.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),ce(n,{validation:"url",code:ie.invalid_string,message:s.message}),i.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),ce(n,{validation:"regex",code:ie.invalid_string,message:s.message}),i.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(n=this._getOrReturnCtx(e,n),ce(n,{code:ie.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),i.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(n=this._getOrReturnCtx(e,n),ce(n,{code:ie.invalid_string,validation:{startsWith:s.value},message:s.message}),i.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(n=this._getOrReturnCtx(e,n),ce(n,{code:ie.invalid_string,validation:{endsWith:s.value},message:s.message}),i.dirty()):s.kind==="datetime"?tU(s).test(e.data)||(n=this._getOrReturnCtx(e,n),ce(n,{code:ie.invalid_string,validation:"datetime",message:s.message}),i.dirty()):s.kind==="ip"?rU(e.data,s.version)||(n=this._getOrReturnCtx(e,n),ce(n,{validation:"ip",code:ie.invalid_string,message:s.message}),i.dirty()):Re.assertNever(s);return{status:i.value,value:e.data}}_regex(e,r,i){return this.refinement(n=>e.test(n),{validation:r,code:ie.invalid_string,...me.errToObj(i)})}_addCheck(e){return new Rt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...me.errToObj(e)})}url(e){return this._addCheck({kind:"url",...me.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...me.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...me.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...me.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...me.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...me.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...me.errToObj(e)})}datetime(e){var r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)=="undefined"?null:e==null?void 0:e.precision,offset:(r=e==null?void 0:e.offset)!==null&&r!==void 0?r:!1,...me.errToObj(e==null?void 0:e.message)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...me.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...me.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...me.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...me.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...me.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...me.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...me.errToObj(r)})}nonempty(e){return this.min(1,me.errToObj(e))}trim(){return new Rt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Rt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Rt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Rt.create=t=>{var e;return new Rt({checks:[],typeName:ge.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Ee(t)})};function iU(t,e){let r=(t.toString().split(".")[1]||"").length,i=(e.toString().split(".")[1]||"").length,n=r>i?r:i,s=parseInt(t.toFixed(n).replace(".","")),o=parseInt(e.toFixed(n).replace(".",""));return s%o/Math.pow(10,n)}var Er=class extends ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==oe.number){let s=this._getOrReturnCtx(e);return ce(s,{code:ie.invalid_type,expected:oe.number,received:s.parsedType}),be}let i,n=new Ze;for(let s of this._def.checks)s.kind==="int"?Re.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{code:ie.invalid_type,expected:"integer",received:"float",message:s.message}),n.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(i=this._getOrReturnCtx(e,i),ce(i,{code:ie.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),n.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(i=this._getOrReturnCtx(e,i),ce(i,{code:ie.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),n.dirty()):s.kind==="multipleOf"?iU(e.data,s.value)!==0&&(i=this._getOrReturnCtx(e,i),ce(i,{code:ie.not_multiple_of,multipleOf:s.value,message:s.message}),n.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{code:ie.not_finite,message:s.message}),n.dirty()):Re.assertNever(s);return{status:n.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,me.toString(r))}gt(e,r){return this.setLimit("min",e,!1,me.toString(r))}lte(e,r){return this.setLimit("max",e,!0,me.toString(r))}lt(e,r){return this.setLimit("max",e,!1,me.toString(r))}setLimit(e,r,i,n){return new Er({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:i,message:me.toString(n)}]})}_addCheck(e){return new Er({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:me.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:me.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:me.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:me.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:me.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:me.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:me.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:me.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:me.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Re.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(r===null||i.value>r)&&(r=i.value):i.kind==="max"&&(e===null||i.value<e)&&(e=i.value)}return Number.isFinite(r)&&Number.isFinite(e)}};Er.create=t=>new Er({checks:[],typeName:ge.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...Ee(t)});var vr=class extends ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==oe.bigint){let s=this._getOrReturnCtx(e);return ce(s,{code:ie.invalid_type,expected:oe.bigint,received:s.parsedType}),be}let i,n=new Ze;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(i=this._getOrReturnCtx(e,i),ce(i,{code:ie.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),n.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(i=this._getOrReturnCtx(e,i),ce(i,{code:ie.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),n.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(i=this._getOrReturnCtx(e,i),ce(i,{code:ie.not_multiple_of,multipleOf:s.value,message:s.message}),n.dirty()):Re.assertNever(s);return{status:n.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,me.toString(r))}gt(e,r){return this.setLimit("min",e,!1,me.toString(r))}lte(e,r){return this.setLimit("max",e,!0,me.toString(r))}lt(e,r){return this.setLimit("max",e,!1,me.toString(r))}setLimit(e,r,i,n){return new vr({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:i,message:me.toString(n)}]})}_addCheck(e){return new vr({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:me.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:me.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:me.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:me.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:me.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};vr.create=t=>{var e;return new vr({checks:[],typeName:ge.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Ee(t)})};var pn=class extends ve{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==oe.boolean){let i=this._getOrReturnCtx(e);return ce(i,{code:ie.invalid_type,expected:oe.boolean,received:i.parsedType}),be}return ft(e.data)}};pn.create=t=>new pn({typeName:ge.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...Ee(t)});var Xr=class extends ve{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==oe.date){let s=this._getOrReturnCtx(e);return ce(s,{code:ie.invalid_type,expected:oe.date,received:s.parsedType}),be}if(isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return ce(s,{code:ie.invalid_date}),be}let i=new Ze,n;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(n=this._getOrReturnCtx(e,n),ce(n,{code:ie.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),i.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(n=this._getOrReturnCtx(e,n),ce(n,{code:ie.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),i.dirty()):Re.assertNever(s);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Xr({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:me.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:me.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};Xr.create=t=>new Xr({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:ge.ZodDate,...Ee(t)});var Hs=class extends ve{_parse(e){if(this._getType(e)!==oe.symbol){let i=this._getOrReturnCtx(e);return ce(i,{code:ie.invalid_type,expected:oe.symbol,received:i.parsedType}),be}return ft(e.data)}};Hs.create=t=>new Hs({typeName:ge.ZodSymbol,...Ee(t)});var mn=class extends ve{_parse(e){if(this._getType(e)!==oe.undefined){let i=this._getOrReturnCtx(e);return ce(i,{code:ie.invalid_type,expected:oe.undefined,received:i.parsedType}),be}return ft(e.data)}};mn.create=t=>new mn({typeName:ge.ZodUndefined,...Ee(t)});var yn=class extends ve{_parse(e){if(this._getType(e)!==oe.null){let i=this._getOrReturnCtx(e);return ce(i,{code:ie.invalid_type,expected:oe.null,received:i.parsedType}),be}return ft(e.data)}};yn.create=t=>new yn({typeName:ge.ZodNull,...Ee(t)});var Pi=class extends ve{constructor(){super(...arguments),this._any=!0}_parse(e){return ft(e.data)}};Pi.create=t=>new Pi({typeName:ge.ZodAny,...Ee(t)});var Jr=class extends ve{constructor(){super(...arguments),this._unknown=!0}_parse(e){return ft(e.data)}};Jr.create=t=>new Jr({typeName:ge.ZodUnknown,...Ee(t)});var ir=class extends ve{_parse(e){let r=this._getOrReturnCtx(e);return ce(r,{code:ie.invalid_type,expected:oe.never,received:r.parsedType}),be}};ir.create=t=>new ir({typeName:ge.ZodNever,...Ee(t)});var $s=class extends ve{_parse(e){if(this._getType(e)!==oe.undefined){let i=this._getOrReturnCtx(e);return ce(i,{code:ie.invalid_type,expected:oe.void,received:i.parsedType}),be}return ft(e.data)}};$s.create=t=>new $s({typeName:ge.ZodVoid,...Ee(t)});var kt=class extends ve{_parse(e){let{ctx:r,status:i}=this._processInputParams(e),n=this._def;if(r.parsedType!==oe.array)return ce(r,{code:ie.invalid_type,expected:oe.array,received:r.parsedType}),be;if(n.exactLength!==null){let o=r.data.length>n.exactLength.value,a=r.data.length<n.exactLength.value;(o||a)&&(ce(r,{code:o?ie.too_big:ie.too_small,minimum:a?n.exactLength.value:void 0,maximum:o?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),i.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(ce(r,{code:ie.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),i.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(ce(r,{code:ie.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),i.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>n.type._parseAsync(new Yt(r,o,r.path,a)))).then(o=>Ze.mergeArray(i,o));let s=[...r.data].map((o,a)=>n.type._parseSync(new Yt(r,o,r.path,a)));return Ze.mergeArray(i,s)}get element(){return this._def.type}min(e,r){return new kt({...this._def,minLength:{value:e,message:me.toString(r)}})}max(e,r){return new kt({...this._def,maxLength:{value:e,message:me.toString(r)}})}length(e,r){return new kt({...this._def,exactLength:{value:e,message:me.toString(r)}})}nonempty(e){return this.min(1,e)}};kt.create=(t,e)=>new kt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ge.ZodArray,...Ee(e)});function Us(t){if(t instanceof Ie){let e={};for(let r in t.shape){let i=t.shape[r];e[r]=rr.create(Us(i))}return new Ie({...t._def,shape:()=>e})}else return t instanceof kt?new kt({...t._def,type:Us(t.element)}):t instanceof rr?rr.create(Us(t.unwrap())):t instanceof ei?ei.create(Us(t.unwrap())):t instanceof Kt?Kt.create(t.items.map(e=>Us(e))):t}var Ie=class extends ve{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=Re.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==oe.object){let c=this._getOrReturnCtx(e);return ce(c,{code:ie.invalid_type,expected:oe.object,received:c.parsedType}),be}let{status:i,ctx:n}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof ir&&this._def.unknownKeys==="strip"))for(let c in n.data)o.includes(c)||a.push(c);let u=[];for(let c of o){let l=s[c],h=n.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new Yt(n,h,n.path,c)),alwaysSet:c in n.data})}if(this._def.catchall instanceof ir){let c=this._def.unknownKeys;if(c==="passthrough")for(let l of a)u.push({key:{status:"valid",value:l},value:{status:"valid",value:n.data[l]}});else if(c==="strict")a.length>0&&(ce(n,{code:ie.unrecognized_keys,keys:a}),i.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let c=this._def.catchall;for(let l of a){let h=n.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new Yt(n,h,n.path,l)),alwaysSet:l in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let c=[];for(let l of u){let h=await l.key;c.push({key:h,value:await l.value,alwaysSet:l.alwaysSet})}return c}).then(c=>Ze.mergeObjectSync(i,c)):Ze.mergeObjectSync(i,u)}get shape(){return this._def.shape()}strict(e){return me.errToObj,new Ie({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,i)=>{var n,s,o,a;let u=(o=(s=(n=this._def).errorMap)===null||s===void 0?void 0:s.call(n,r,i).message)!==null&&o!==void 0?o:i.defaultError;return r.code==="unrecognized_keys"?{message:(a=me.errToObj(e).message)!==null&&a!==void 0?a:u}:{message:u}}}:{}})}strip(){return new Ie({...this._def,unknownKeys:"strip"})}passthrough(){return new Ie({...this._def,unknownKeys:"passthrough"})}extend(e){return new Ie({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Ie({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ge.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new Ie({...this._def,catchall:e})}pick(e){let r={};return Re.objectKeys(e).forEach(i=>{e[i]&&this.shape[i]&&(r[i]=this.shape[i])}),new Ie({...this._def,shape:()=>r})}omit(e){let r={};return Re.objectKeys(this.shape).forEach(i=>{e[i]||(r[i]=this.shape[i])}),new Ie({...this._def,shape:()=>r})}deepPartial(){return Us(this)}partial(e){let r={};return Re.objectKeys(this.shape).forEach(i=>{let n=this.shape[i];e&&!e[i]?r[i]=n:r[i]=n.optional()}),new Ie({...this._def,shape:()=>r})}required(e){let r={};return Re.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])r[i]=this.shape[i];else{let s=this.shape[i];for(;s instanceof rr;)s=s._def.innerType;r[i]=s}}),new Ie({...this._def,shape:()=>r})}keyof(){return G1(Re.objectKeys(this.shape))}};Ie.create=(t,e)=>new Ie({shape:()=>t,unknownKeys:"strip",catchall:ir.create(),typeName:ge.ZodObject,...Ee(e)});Ie.strictCreate=(t,e)=>new Ie({shape:()=>t,unknownKeys:"strict",catchall:ir.create(),typeName:ge.ZodObject,...Ee(e)});Ie.lazycreate=(t,e)=>new Ie({shape:t,unknownKeys:"strip",catchall:ir.create(),typeName:ge.ZodObject,...Ee(e)});var gn=class extends ve{_parse(e){let{ctx:r}=this._processInputParams(e),i=this._def.options;function n(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=s.map(a=>new Tt(a.ctx.common.issues));return ce(r,{code:ie.invalid_union,unionErrors:o}),be}if(r.common.async)return Promise.all(i.map(async s=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(n);{let s,o=[];for(let u of i){let c={...r,common:{...r.common,issues:[]},parent:null},l=u._parseSync({data:r.data,path:r.path,parent:c});if(l.status==="valid")return l;l.status==="dirty"&&!s&&(s={result:l,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(u=>new Tt(u));return ce(r,{code:ie.invalid_union,unionErrors:a}),be}}get options(){return this._def.options}};gn.create=(t,e)=>new gn({options:t,typeName:ge.ZodUnion,...Ee(e)});var gl=t=>t instanceof En?gl(t.schema):t instanceof Ot?gl(t.innerType()):t instanceof vn?[t.value]:t instanceof wr?t.options:t instanceof wn?Object.keys(t.enum):t instanceof Sn?gl(t._def.innerType):t instanceof mn?[void 0]:t instanceof yn?[null]:null,zs=class extends ve{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==oe.object)return ce(r,{code:ie.invalid_type,expected:oe.object,received:r.parsedType}),be;let i=this.discriminator,n=r.data[i],s=this.optionsMap.get(n);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(ce(r,{code:ie.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),be)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,i){let n=new Map;for(let s of r){let o=gl(s.shape[e]);if(!o)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of o){if(n.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);n.set(a,s)}}return new zs({typeName:ge.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:n,...Ee(i)})}};function jy(t,e){let r=Oi(t),i=Oi(e);if(t===e)return{valid:!0,data:t};if(r===oe.object&&i===oe.object){let n=Re.objectKeys(e),s=Re.objectKeys(t).filter(a=>n.indexOf(a)!==-1),o={...t,...e};for(let a of s){let u=jy(t[a],e[a]);if(!u.valid)return{valid:!1};o[a]=u.data}return{valid:!0,data:o}}else if(r===oe.array&&i===oe.array){if(t.length!==e.length)return{valid:!1};let n=[];for(let s=0;s<t.length;s++){let o=t[s],a=e[s],u=jy(o,a);if(!u.valid)return{valid:!1};n.push(u.data)}return{valid:!0,data:n}}else return r===oe.date&&i===oe.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var _n=class extends ve{_parse(e){let{status:r,ctx:i}=this._processInputParams(e),n=(s,o)=>{if(Ny(s)||Ny(o))return be;let a=jy(s.value,o.value);return a.valid?((My(s)||My(o))&&r.dirty(),{status:r.value,value:a.data}):(ce(i,{code:ie.invalid_intersection_types}),be)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([s,o])=>n(s,o)):n(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};_n.create=(t,e,r)=>new _n({left:t,right:e,typeName:ge.ZodIntersection,...Ee(r)});var Kt=class extends ve{_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==oe.array)return ce(i,{code:ie.invalid_type,expected:oe.array,received:i.parsedType}),be;if(i.data.length<this._def.items.length)return ce(i,{code:ie.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),be;!this._def.rest&&i.data.length>this._def.items.length&&(ce(i,{code:ie.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...i.data].map((o,a)=>{let u=this._def.items[a]||this._def.rest;return u?u._parse(new Yt(i,o,i.path,a)):null}).filter(o=>!!o);return i.common.async?Promise.all(s).then(o=>Ze.mergeArray(r,o)):Ze.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new Kt({...this._def,rest:e})}};Kt.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Kt({items:t,typeName:ge.ZodTuple,rest:null,...Ee(e)})};var bn=class extends ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==oe.object)return ce(i,{code:ie.invalid_type,expected:oe.object,received:i.parsedType}),be;let n=[],s=this._def.keyType,o=this._def.valueType;for(let a in i.data)n.push({key:s._parse(new Yt(i,a,i.path,a)),value:o._parse(new Yt(i,i.data[a],i.path,a))});return i.common.async?Ze.mergeObjectAsync(r,n):Ze.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(e,r,i){return r instanceof ve?new bn({keyType:e,valueType:r,typeName:ge.ZodRecord,...Ee(i)}):new bn({keyType:Rt.create(),valueType:e,typeName:ge.ZodRecord,...Ee(r)})}},Gs=class extends ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==oe.map)return ce(i,{code:ie.invalid_type,expected:oe.map,received:i.parsedType}),be;let n=this._def.keyType,s=this._def.valueType,o=[...i.data.entries()].map(([a,u],c)=>({key:n._parse(new Yt(i,a,i.path,[c,"key"])),value:s._parse(new Yt(i,u,i.path,[c,"value"]))}));if(i.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let u of o){let c=await u.key,l=await u.value;if(c.status==="aborted"||l.status==="aborted")return be;(c.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(c.value,l.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let u of o){let c=u.key,l=u.value;if(c.status==="aborted"||l.status==="aborted")return be;(c.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(c.value,l.value)}return{status:r.value,value:a}}}};Gs.create=(t,e,r)=>new Gs({valueType:e,keyType:t,typeName:ge.ZodMap,...Ee(r)});var Qr=class extends ve{_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==oe.set)return ce(i,{code:ie.invalid_type,expected:oe.set,received:i.parsedType}),be;let n=this._def;n.minSize!==null&&i.data.size<n.minSize.value&&(ce(i,{code:ie.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&i.data.size>n.maxSize.value&&(ce(i,{code:ie.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());let s=this._def.valueType;function o(u){let c=new Set;for(let l of u){if(l.status==="aborted")return be;l.status==="dirty"&&r.dirty(),c.add(l.value)}return{status:r.value,value:c}}let a=[...i.data.values()].map((u,c)=>s._parse(new Yt(i,u,i.path,c)));return i.common.async?Promise.all(a).then(u=>o(u)):o(a)}min(e,r){return new Qr({...this._def,minSize:{value:e,message:me.toString(r)}})}max(e,r){return new Qr({...this._def,maxSize:{value:e,message:me.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};Qr.create=(t,e)=>new Qr({valueType:t,minSize:null,maxSize:null,typeName:ge.ZodSet,...Ee(e)});var Fi=class extends ve{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==oe.function)return ce(r,{code:ie.invalid_type,expected:oe.function,received:r.parsedType}),be;function i(a,u){return bl({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,_l(),sa].filter(c=>!!c),issueData:{code:ie.invalid_arguments,argumentsError:u}})}function n(a,u){return bl({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,_l(),sa].filter(c=>!!c),issueData:{code:ie.invalid_return_type,returnTypeError:u}})}let s={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Ii){let a=this;return ft(async function(...u){let c=new Tt([]),l=await a._def.args.parseAsync(u,s).catch(d=>{throw c.addIssue(i(u,d)),c}),h=await Reflect.apply(o,this,l);return await a._def.returns._def.type.parseAsync(h,s).catch(d=>{throw c.addIssue(n(h,d)),c})})}else{let a=this;return ft(function(...u){let c=a._def.args.safeParse(u,s);if(!c.success)throw new Tt([i(u,c.error)]);let l=Reflect.apply(o,this,c.data),h=a._def.returns.safeParse(l,s);if(!h.success)throw new Tt([n(l,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Fi({...this._def,args:Kt.create(e).rest(Jr.create())})}returns(e){return new Fi({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,i){return new Fi({args:e||Kt.create([]).rest(Jr.create()),returns:r||Jr.create(),typeName:ge.ZodFunction,...Ee(i)})}},En=class extends ve{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};En.create=(t,e)=>new En({getter:t,typeName:ge.ZodLazy,...Ee(e)});var vn=class extends ve{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return ce(r,{received:r.data,code:ie.invalid_literal,expected:this._def.value}),be}return{status:"valid",value:e.data}}get value(){return this._def.value}};vn.create=(t,e)=>new vn({value:t,typeName:ge.ZodLiteral,...Ee(e)});function G1(t,e){return new wr({values:t,typeName:ge.ZodEnum,...Ee(e)})}var wr=class extends ve{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),i=this._def.values;return ce(r,{expected:Re.joinValues(i),received:r.parsedType,code:ie.invalid_type}),be}if(this._def.values.indexOf(e.data)===-1){let r=this._getOrReturnCtx(e),i=this._def.values;return ce(r,{received:r.data,code:ie.invalid_enum_value,options:i}),be}return ft(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e){return wr.create(e)}exclude(e){return wr.create(this.options.filter(r=>!e.includes(r)))}};wr.create=G1;var wn=class extends ve{_parse(e){let r=Re.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==oe.string&&i.parsedType!==oe.number){let n=Re.objectValues(r);return ce(i,{expected:Re.joinValues(n),received:i.parsedType,code:ie.invalid_type}),be}if(r.indexOf(e.data)===-1){let n=Re.objectValues(r);return ce(i,{received:i.data,code:ie.invalid_enum_value,options:n}),be}return ft(e.data)}get enum(){return this._def.values}};wn.create=(t,e)=>new wn({values:t,typeName:ge.ZodNativeEnum,...Ee(e)});var Ii=class extends ve{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==oe.promise&&r.common.async===!1)return ce(r,{code:ie.invalid_type,expected:oe.promise,received:r.parsedType}),be;let i=r.parsedType===oe.promise?r.data:Promise.resolve(r.data);return ft(i.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Ii.create=(t,e)=>new Ii({type:t,typeName:ge.ZodPromise,...Ee(e)});var Ot=class extends ve{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ge.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:i}=this._processInputParams(e),n=this._def.effect||null,s={addIssue:o=>{ce(i,o),o.fatal?r.abort():r.dirty()},get path(){return i.path}};if(s.addIssue=s.addIssue.bind(s),n.type==="preprocess"){let o=n.transform(i.data,s);return i.common.issues.length?{status:"dirty",value:i.data}:i.common.async?Promise.resolve(o).then(a=>this._def.schema._parseAsync({data:a,path:i.path,parent:i})):this._def.schema._parseSync({data:o,path:i.path,parent:i})}if(n.type==="refinement"){let o=a=>{let u=n.refinement(a,s);if(i.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(i.common.async===!1){let a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?be:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(a=>a.status==="aborted"?be:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(n.type==="transform")if(i.common.async===!1){let o=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!oa(o))return o;let a=n.transform(o.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(o=>oa(o)?Promise.resolve(n.transform(o.value,s)).then(a=>({status:r.value,value:a})):o);Re.assertNever(n)}};Ot.create=(t,e,r)=>new Ot({schema:t,typeName:ge.ZodEffects,effect:e,...Ee(r)});Ot.createWithPreprocess=(t,e,r)=>new Ot({schema:e,effect:{type:"preprocess",transform:t},typeName:ge.ZodEffects,...Ee(r)});var rr=class extends ve{_parse(e){return this._getType(e)===oe.undefined?ft(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};rr.create=(t,e)=>new rr({innerType:t,typeName:ge.ZodOptional,...Ee(e)});var ei=class extends ve{_parse(e){return this._getType(e)===oe.null?ft(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};ei.create=(t,e)=>new ei({innerType:t,typeName:ge.ZodNullable,...Ee(e)});var Sn=class extends ve{_parse(e){let{ctx:r}=this._processInputParams(e),i=r.data;return r.parsedType===oe.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Sn.create=(t,e)=>new Sn({innerType:t,typeName:ge.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Ee(e)});var Ws=class extends ve{_parse(e){let{ctx:r}=this._processInputParams(e),i={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return El(n)?n.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Tt(i.common.issues)},input:i.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new Tt(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};Ws.create=(t,e)=>new Ws({innerType:t,typeName:ge.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Ee(e)});var Vs=class extends ve{_parse(e){if(this._getType(e)!==oe.nan){let i=this._getOrReturnCtx(e);return ce(i,{code:ie.invalid_type,expected:oe.nan,received:i.parsedType}),be}return{status:"valid",value:e.data}}};Vs.create=t=>new Vs({typeName:ge.ZodNaN,...Ee(t)});var nU=Symbol("zod_brand"),vl=class extends ve{_parse(e){let{ctx:r}=this._processInputParams(e),i=r.data;return this._def.type._parse({data:i,path:r.path,parent:r})}unwrap(){return this._def.type}},xn=class extends ve{_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?be:s.status==="dirty"?(r.dirty(),z1(s.value)):this._def.out._parseAsync({data:s.value,path:i.path,parent:i})})();{let n=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return n.status==="aborted"?be:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:i.path,parent:i})}}static create(e,r){return new xn({in:e,out:r,typeName:ge.ZodPipeline})}},Ys=class extends ve{_parse(e){let r=this._def.innerType._parse(e);return oa(r)&&(r.value=Object.freeze(r.value)),r}};Ys.create=(t,e)=>new Ys({innerType:t,typeName:ge.ZodReadonly,...Ee(e)});var W1=(t,e={},r)=>t?Pi.create().superRefine((i,n)=>{var s,o;if(!t(i)){let a=typeof e=="function"?e(i):typeof e=="string"?{message:e}:e,u=(o=(s=a.fatal)!==null&&s!==void 0?s:r)!==null&&o!==void 0?o:!0,c=typeof a=="string"?{message:a}:a;n.addIssue({code:"custom",...c,fatal:u})}}):Pi.create(),sU={object:Ie.lazycreate},ge;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ge||(ge={}));var oU=(t,e={message:`Input not instance of ${t.name}`})=>W1(r=>r instanceof t,e),V1=Rt.create,Y1=Er.create,aU=Vs.create,uU=vr.create,K1=pn.create,cU=Xr.create,lU=Hs.create,hU=mn.create,fU=yn.create,dU=Pi.create,pU=Jr.create,mU=ir.create,yU=$s.create,gU=kt.create,_U=Ie.create,bU=Ie.strictCreate,EU=gn.create,vU=zs.create,wU=_n.create,SU=Kt.create,xU=bn.create,DU=Gs.create,AU=Qr.create,CU=Fi.create,RU=En.create,TU=vn.create,kU=wr.create,OU=wn.create,FU=Ii.create,H1=Ot.create,PU=rr.create,IU=ei.create,LU=Ot.createWithPreprocess,BU=xn.create,NU=()=>V1().optional(),MU=()=>Y1().optional(),jU=()=>K1().optional(),qU={string:t=>Rt.create({...t,coerce:!0}),number:t=>Er.create({...t,coerce:!0}),boolean:t=>pn.create({...t,coerce:!0}),bigint:t=>vr.create({...t,coerce:!0}),date:t=>Xr.create({...t,coerce:!0})},UU=be,Ks=Object.freeze({__proto__:null,defaultErrorMap:sa,setErrorMap:Gq,getErrorMap:_l,makeIssue:bl,EMPTY_PATH:Wq,addIssueToContext:ce,ParseStatus:Ze,INVALID:be,DIRTY:z1,OK:ft,isAborted:Ny,isDirty:My,isValid:oa,isAsync:El,get util(){return Re},get objectUtil(){return By},ZodParsedType:oe,getParsedType:Oi,ZodType:ve,ZodString:Rt,ZodNumber:Er,ZodBigInt:vr,ZodBoolean:pn,ZodDate:Xr,ZodSymbol:Hs,ZodUndefined:mn,ZodNull:yn,ZodAny:Pi,ZodUnknown:Jr,ZodNever:ir,ZodVoid:$s,ZodArray:kt,ZodObject:Ie,ZodUnion:gn,ZodDiscriminatedUnion:zs,ZodIntersection:_n,ZodTuple:Kt,ZodRecord:bn,ZodMap:Gs,ZodSet:Qr,ZodFunction:Fi,ZodLazy:En,ZodLiteral:vn,ZodEnum:wr,ZodNativeEnum:wn,ZodPromise:Ii,ZodEffects:Ot,ZodTransformer:Ot,ZodOptional:rr,ZodNullable:ei,ZodDefault:Sn,ZodCatch:Ws,ZodNaN:Vs,BRAND:nU,ZodBranded:vl,ZodPipeline:xn,ZodReadonly:Ys,custom:W1,Schema:ve,ZodSchema:ve,late:sU,get ZodFirstPartyTypeKind(){return ge},coerce:qU,any:dU,array:gU,bigint:uU,boolean:K1,date:cU,discriminatedUnion:vU,effect:H1,enum:kU,function:CU,instanceof:oU,intersection:wU,lazy:RU,literal:TU,map:DU,nan:aU,nativeEnum:OU,never:mU,null:fU,nullable:IU,number:Y1,object:_U,oboolean:jU,onumber:MU,optional:PU,ostring:NU,pipeline:BU,preprocess:LU,promise:FU,record:xU,set:AU,strictObject:bU,string:V1,symbol:lU,transformer:H1,tuple:SU,undefined:hU,union:EU,unknown:pU,void:yU,NEVER:UU,ZodIssueCode:ie,quotelessJson:zq,ZodError:Tt});var Gy=ae(require("os")),nR=ae(require("crypto")),sR=ae(require("path")),oR=ae(iR());function JU(t){let e=process.version,r=Gy.default.type(),i=Gy.default.arch();return`${t.name} ${t.version} ${e} ${r} ${i}`}async function XU(){let t=process.env.TURBO_CONFIG_DIR_PATH?process.env.TURBO_CONFIG_DIR_PATH:await(0,oR.configDir)();if(!t)throw new Error("Could not find telemetry config directory");return sR.default.join(t,"turborepo","telemetry.json")}function QU({input:t,salt:e}){return nR.default.createHash("sha256").update(`${e}${t}`).digest("hex")}var Zs={buildUserAgent:JU,oneWayHashWithSalt:QU,defaultConfigPath:XU};var eH="TURBO_TELEMETRY_DEBUG",tH="TURBO_TELEMETRY_DISABLED",rH="TURBO_TELEMETRY_MESSAGE_DISABLED",iH="DO_NOT_TRACK",nH=Ks.object({telemetry_enabled:Ks.boolean(),telemetry_id:Ks.string(),telemetry_salt:Ks.string(),telemetry_alerted:Ks.string().optional()}),Et=class{constructor({configPath:e,config:r}){this.config=r,this.configPath=e}static fromConfigPath(e){try{let r=(0,Js.readFileSync)(e,"utf-8"),i=JSON.parse(r),n=Et.validateConfig(i);return new Et({configPath:e,config:n})}catch{return Et.tryRemove({configPath:e})?Et.create({configPath:e}):void 0}}static async fromDefaultConfig(){try{let e=await Zs.defaultConfigPath();return Et.fromConfigPath(e)}catch{return}}static validateConfig(e){try{return nH.parse(e)}catch{throw new Error("Config is invalid.")}}static create({configPath:e}){let r=dn(),i=dn(),n=Zs.oneWayHashWithSalt({input:r,salt:i}),s=new Et({configPath:e,config:{telemetry_enabled:!0,telemetry_id:n,telemetry_salt:i}});if(s.tryWrite())return s}tryWrite(){try{let e=JSON.stringify(this.config,null,2);return(0,Js.writeFileSync)(this.configPath,e),!0}catch{return!1}}static tryRemove({configPath:e}){try{return(0,Js.rmSync)(e,{force:!0}),!0}catch{return!1}}hasSeenAlert(){return this.config.telemetry_alerted!==void 0}isEnabled(){let e=process.env[iH]||"0",r=process.env[tH]||"0";return e==="1"||e.toLowerCase()==="true"||r==="1"||r.toLowerCase()==="true"?!1:this.config.telemetry_enabled}isTelemetryWarningEnabled(){let e=process.env[rH]||"0";return!(e==="1"||e.toLowerCase()==="true")}get id(){return this.config.telemetry_id}showAlert(){!this.hasSeenAlert()&&this.isEnabled()&&this.isTelemetryWarningEnabled()&&(ue.log(),ue.bold("Attention:"),ue.grey("Turborepo now collects completely anonymous telemetry regarding usage."),ue.grey("This information is used to shape the Turborepo roadmap and prioritize features."),ue.grey("You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:"),ue.underline(aR.default.grey("https://turbo.build/repo/docs/telemetry"))),this.alertShown()}enable(){this.config.telemetry_enabled=!0,this.tryWrite()}disable(){this.config.telemetry_enabled=!1,this.tryWrite()}alertShown(){return this.hasSeenAlert()||(this.config.telemetry_alerted=new Date().toISOString(),this.tryWrite()),!0}oneWayHash(e){return Zs.oneWayHashWithSalt({input:e,salt:this.config.telemetry_salt})}static isDebug(){let e=process.env[eH]||"0";return e==="1"||e.toLowerCase()==="true"}};var uR=ae(Sy());var sH=20,oH="/api/turborepo/v1/events",Dn=class{constructor({api:e,packageInfo:r,config:i,opts:n}){this.batchSize=sH;this.timeout=250;this.sessionId=dn();this.eventBatches=[];this.events=[];let s=new URL(oH,e);this.api=s.toString(),this.packageInfo=r,this.config=i,n!=null&&n.timeout&&(this.timeout=n.timeout),n!=null&&n.batchSize&&(this.batchSize=n.batchSize)}hasPendingEvents(){return this.events.length!==0}async waitForFlush(){await Promise.all(this.eventBatches)}flushEvents(){let e=this.events.splice(0,this.batchSize);this.config.isEnabled()&&this.eventBatches.push(uR.default.post(this.api,{timeout:this.timeout,json:e,headers:{"x-turbo-telemetry-id":this.config.id,"x-turbo-session-id":this.sessionId,"User-Agent":Zs.buildUserAgent(this.packageInfo)}}))}track({key:e,value:r,parentId:i,isSensitive:n}){let s={id:dn(),key:e,value:n?this.config.oneWayHash(r):r,package_name:this.packageInfo.name,package_version:this.packageInfo.version,parent_id:i};return Et.isDebug()&&(ue.log(),ue.bold("[telemetry event]"),ue.dimmed(JSON.stringify(s,null,2)),ue.log()),this.config.isEnabled()&&(this.events.push({package:s}),this.events.length>=this.batchSize&&this.flushEvents()),s}async close(){for(;this.hasPendingEvents();)this.flushEvents();try{await this.waitForFlush()}catch{}}trackCliOption({option:e,value:r}){return this.track({key:`option:${e}`,value:r})}trackCliArgument({argument:e,value:r}){return this.track({key:`argument:${e}`,value:r})}trackCliCommand({command:e,value:r}){return this.track({key:`command:${e}`,value:r})}trackCommandStatus({command:e,status:r}){return this.trackCliCommand({command:e,value:r})}trackCommandWarning(e){return this.track({key:"warning",value:e})}trackCommandError(e){return this.track({key:"error",value:e})}};var aa=class extends Dn{trackOptionExample(e){if(e)return this.trackCliOption({option:"example",value:e})}trackOptionPackageManager(e){if(e)return this.trackCliOption({option:"package_manager",value:e})}trackOptionSkipInstall(e){if(e)return this.trackCliOption({option:"skip_install",value:e.toString()})}trackOptionSkipTransforms(e){if(e)return this.trackCliOption({option:"skip_transforms",value:e.toString()})}trackOptionTurboVersion(e){if(e)return this.trackCliOption({option:"turbo_version",value:e})}trackOptionExamplePath(e){if(e)return this.trackCliOption({option:"example_path",value:e})}trackArgumentDirectory(e){if(e)return this.trackCliArgument({argument:"project_directory",value:"provided"})}trackArgumentPackageManager(e){if(e)return this.trackCliArgument({argument:"package_manager",value:e})}};var dR=ae(fR());var uH=["build","test","lint","typecheck","checktypes","check-types","type-check","check"],ua=class extends Dn{trackCI(){var e;return this.track({key:"ci",value:(e=dR.name)!=null?e:"unknown"})}trackArgumentWorkspace(e){if(e)return this.trackCliArgument({argument:"workspace",value:"provided"})}trackOptionTask(e){if(e)return this.trackCliOption({option:"task",value:uH.includes(e)?e:"other"})}trackOptionFallback(e){if(e)return this.trackCliOption({option:"fallback",value:e})}trackOptionDirectory(e){if(e)return this.trackCliOption({option:"directory",value:"custom"})}trackOptionMaxBuffer(e){if(e!==void 0)return this.trackCliOption({option:"max_buffer",value:e.toString()})}};var cH={"create-turbo":aa,"turbo-ignore":ua},lH="https://telemetry.vercel.com";async function Wy({packageInfo:t,opts:e}){let r=cH[t.name],i=await Et.fromDefaultConfig();return i?(i.showAlert(),{telemetry:new r({api:lH,packageInfo:t,config:i,opts:e})}):{telemetry:void 0}}var ca=ae(require("chalk"));var pR=require("commander"),mR="status",hH=["enable","disable",mR];function fH(t){var r;let e=(r=t.telemetry)==null?void 0:r.config.isEnabled();ue.log(`Status: ${e?ca.default.bold(ca.default.green("Enabled")):ca.default.bold(ca.default.red("Disabled"))}`),ue.log(),e?ue.log("Turborepo telemetry is completely anonymous. Thank you for participating!"):ue.log("You have opted-out of Turborepo anonymous telemetry. No data will be collected from your machine."),ue.log("Learn more: https://turbo.build/repo/docs/telemetry")}function dH(t,e){if(!e.telemetry){ue.error("Telemetry could not be initialized");return}t==="enable"?(e.telemetry.config.enable(),ue.bold("Success!")):t==="disable"&&(e.telemetry.config.disable(),ue.bold("Success!")),ue.log(),fH(e)}function Vy(t){t.command("telemetry").description("Manage telemetry settings").addArgument(new pR.Argument("[action]","Action to perform").choices(hH).default(mR)).action(dH)}var FT=require("proxy-agent");var An={name:"create-turbo",version:"2.0.4-canary.1",description:"Create a new Turborepo",homepage:"https://turbo.build/repo",license:"MIT",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/create-turbo"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:{"create-turbo":"dist/cli.js"},scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{chalk:"4.1.2",commander:"^11.0.0","fs-extra":"^11.1.1",inquirer:"^8.0.0","proxy-agent":"^6.2.2",rimraf:"^3.0.2",semver:"^7.3.8","update-check":"^1.5.4"},devDependencies:{"@turbo/eslint-config":"workspace:*","@turbo/telemetry":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/utils":"workspace:*","@turbo/workspaces":"workspace:*","@types/fs-extra":"^9.0.13","@types/inquirer":"^7.3.1","@types/jest":"^27.4.0","@types/node":"^18.17.2","@types/rimraf":"^3.0.2","@types/semver":"^7.3.9",jest:"^27.4.3","ts-jest":"^27.1.1",tsup:"^6.7.0",typescript:"^5.2.2"},files:["dist"]};var yR=ae(require("chalk")),gR=ae(require("update-check"));var mH=(0,gR.default)(An).catch(()=>null);async function Yy(){try{let t=await mH;t!=null&&t.latest&&(ue.log(),ue.log(yR.default.yellow.bold("A new version of `create-turbo` is available!")),ue.log()),process.exit()}catch{}}var ba=ae(require("path")),et=ae(require("chalk"));var Ni=ae(require("chalk"),1),PR=ae(vu(),1),IR=ae(xu(),1),jR=ae(require("os"),1),qR=ae(is(),1),zW=require("fs-extra");var KW=ae(ou(),1),JW=require("fs-extra"),QW=require("fs-extra"),tV=require("chalk"),HR=require("stream"),$R=require("util"),sV=require("fs-extra"),cV=require("chalk"),hV=require("fs-extra"),Cn=ae(require("path"),1),dt=require("fs-extra"),zR=ae(is(),1),GR=ae(require("path"),1),WR=require("fs-extra"),VR=ae(require("chalk"),1),ri=ae(require("path"),1),YR=ae(is(),1),It=require("fs-extra"),KR=ae(ou(),1);var ha=ae(require("path"),1),xr=require("fs-extra"),ro=ae(require("path"),1),Dr=require("fs-extra"),fa=ae(require("path"),1),Ar=require("fs-extra"),Pt=ae(require("chalk"),1),tT=ae(xu(),1),rT=ae(is(),1),iT=ae(vu(),1),nT=require("semver"),sT=ae(require("chalk"),1),yH=Object.create,Jy=Object.defineProperty,gH=Object.getOwnPropertyDescriptor,_H=Object.getOwnPropertyNames,bH=Object.getPrototypeOf,EH=Object.prototype.hasOwnProperty,ye=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(e,r)=>(typeof require!="undefined"?require:e)[r]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')}),vH=(t,e)=>()=>(t&&(e=t(t=0)),e),de=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),wH=(t,e)=>{for(var r in e)Jy(t,r,{get:e[r],enumerable:!0})},SH=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of _H(e))!EH.call(t,n)&&n!==r&&Jy(t,n,{get:()=>e[n],enumerable:!(i=gH(e,n))||i.enumerable});return t},Al=(t,e,r)=>(r=t!=null?yH(bH(t)):{},SH(e||!t||!t.__esModule?Jy(r,"default",{value:t,enumerable:!0}):r,t)),Q=vH(()=>{}),xH=de((t,e)=>{Q();function r(i){return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,r(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}),DH=de((t,e)=>{Q();var r=xH().default;function i(){"use strict";e.exports=i=function(){return s},e.exports.__esModule=!0,e.exports.default=e.exports;var n,s={},o=Object.prototype,a=o.hasOwnProperty,u=Object.defineProperty||function(q,g,_){q[g]=_.value},c=typeof Symbol=="function"?Symbol:{},l=c.iterator||"@@iterator",h=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function d(q,g,_){return Object.defineProperty(q,g,{value:_,enumerable:!0,configurable:!0,writable:!0}),q[g]}try{d({},"")}catch{d=function(q,g,_){return q[g]=_}}function m(q,g,_,E){var R=g&&g.prototype instanceof F?g:F,x=Object.create(R.prototype),H=new z(E||[]);return u(x,"_invoke",{value:ne(q,_,H)}),x}function y(q,g,_){try{return{type:"normal",arg:q.call(g,_)}}catch(E){return{type:"throw",arg:E}}}s.wrap=m;var p="suspendedStart",v="suspendedYield",C="executing",k="completed",P={};function F(){}function M(){}function S(){}var D={};d(D,l,function(){return this});var j=Object.getPrototypeOf,W=j&&j(j(Z([])));W&&W!==o&&a.call(W,l)&&(D=W);var N=S.prototype=F.prototype=Object.create(D);function K(q){["next","throw","return"].forEach(function(g){d(q,g,function(_){return this._invoke(g,_)})})}function te(q,g){function _(R,x,H,$){var re=y(q[R],q,x);if(re.type!=="throw"){var V=re.arg,he=V.value;return he&&r(he)=="object"&&a.call(he,"__await")?g.resolve(he.__await).then(function(J){_("next",J,H,$)},function(J){_("throw",J,H,$)}):g.resolve(he).then(function(J){V.value=J,H(V)},function(J){return _("throw",J,H,$)})}$(re.arg)}var E;u(this,"_invoke",{value:function(R,x){function H(){return new g(function($,re){_(R,x,$,re)})}return E=E?E.then(H,H):H()}})}function ne(q,g,_){var E=p;return function(R,x){if(E===C)throw new Error("Generator is already running");if(E===k){if(R==="throw")throw x;return{value:n,done:!0}}for(_.method=R,_.arg=x;;){var H=_.delegate;if(H){var $=U(H,_);if($){if($===P)continue;return $}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(E===p)throw E=k,_.arg;_.dispatchException(_.arg)}else _.method==="return"&&_.abrupt("return",_.arg);E=C;var re=y(q,g,_);if(re.type==="normal"){if(E=_.done?k:v,re.arg===P)continue;return{value:re.arg,done:_.done}}re.type==="throw"&&(E=k,_.method="throw",_.arg=re.arg)}}}function U(q,g){var _=g.method,E=q.iterator[_];if(E===n)return g.delegate=null,_==="throw"&&q.iterator.return&&(g.method="return",g.arg=n,U(q,g),g.method==="throw")||_!=="return"&&(g.method="throw",g.arg=new TypeError("The iterator does not provide a '"+_+"' method")),P;var R=y(E,q.iterator,g.arg);if(R.type==="throw")return g.method="throw",g.arg=R.arg,g.delegate=null,P;var x=R.arg;return x?x.done?(g[q.resultName]=x.value,g.next=q.nextLoc,g.method!=="return"&&(g.method="next",g.arg=n),g.delegate=null,P):x:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,P)}function I(q){var g={tryLoc:q[0]};1 in q&&(g.catchLoc=q[1]),2 in q&&(g.finallyLoc=q[2],g.afterLoc=q[3]),this.tryEntries.push(g)}function L(q){var g=q.completion||{};g.type="normal",delete g.arg,q.completion=g}function z(q){this.tryEntries=[{tryLoc:"root"}],q.forEach(I,this),this.reset(!0)}function Z(q){if(q||q===""){var g=q[l];if(g)return g.call(q);if(typeof q.next=="function")return q;if(!isNaN(q.length)){var _=-1,E=function R(){for(;++_<q.length;)if(a.call(q,_))return R.value=q[_],R.done=!1,R;return R.value=n,R.done=!0,R};return E.next=E}}throw new TypeError(r(q)+" is not iterable")}return M.prototype=S,u(N,"constructor",{value:S,configurable:!0}),u(S,"constructor",{value:M,configurable:!0}),M.displayName=d(S,f,"GeneratorFunction"),s.isGeneratorFunction=function(q){var g=typeof q=="function"&&q.constructor;return!!g&&(g===M||(g.displayName||g.name)==="GeneratorFunction")},s.mark=function(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,S):(q.__proto__=S,d(q,f,"GeneratorFunction")),q.prototype=Object.create(N),q},s.awrap=function(q){return{__await:q}},K(te.prototype),d(te.prototype,h,function(){return this}),s.AsyncIterator=te,s.async=function(q,g,_,E,R){R===void 0&&(R=Promise);var x=new te(m(q,g,_,E),R);return s.isGeneratorFunction(g)?x:x.next().then(function(H){return H.done?H.value:x.next()})},K(N),d(N,f,"Generator"),d(N,l,function(){return this}),d(N,"toString",function(){return"[object Generator]"}),s.keys=function(q){var g=Object(q),_=[];for(var E in g)_.push(E);return _.reverse(),function R(){for(;_.length;){var x=_.pop();if(x in g)return R.value=x,R.done=!1,R}return R.done=!0,R}},s.values=Z,z.prototype={constructor:z,reset:function(q){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(L),!q)for(var g in this)g.charAt(0)==="t"&&a.call(this,g)&&!isNaN(+g.slice(1))&&(this[g]=n)},stop:function(){this.done=!0;var q=this.tryEntries[0].completion;if(q.type==="throw")throw q.arg;return this.rval},dispatchException:function(q){if(this.done)throw q;var g=this;function _(re,V){return x.type="throw",x.arg=q,g.next=re,V&&(g.method="next",g.arg=n),!!V}for(var E=this.tryEntries.length-1;E>=0;--E){var R=this.tryEntries[E],x=R.completion;if(R.tryLoc==="root")return _("end");if(R.tryLoc<=this.prev){var H=a.call(R,"catchLoc"),$=a.call(R,"finallyLoc");if(H&&$){if(this.prev<R.catchLoc)return _(R.catchLoc,!0);if(this.prev<R.finallyLoc)return _(R.finallyLoc)}else if(H){if(this.prev<R.catchLoc)return _(R.catchLoc,!0)}else{if(!$)throw new Error("try statement without catch or finally");if(this.prev<R.finallyLoc)return _(R.finallyLoc)}}}},abrupt:function(q,g){for(var _=this.tryEntries.length-1;_>=0;--_){var E=this.tryEntries[_];if(E.tryLoc<=this.prev&&a.call(E,"finallyLoc")&&this.prev<E.finallyLoc){var R=E;break}}R&&(q==="break"||q==="continue")&&R.tryLoc<=g&&g<=R.finallyLoc&&(R=null);var x=R?R.completion:{};return x.type=q,x.arg=g,R?(this.method="next",this.next=R.finallyLoc,P):this.complete(x)},complete:function(q,g){if(q.type==="throw")throw q.arg;return q.type==="break"||q.type==="continue"?this.next=q.arg:q.type==="return"?(this.rval=this.arg=q.arg,this.method="return",this.next="end"):q.type==="normal"&&g&&(this.next=g),P},finish:function(q){for(var g=this.tryEntries.length-1;g>=0;--g){var _=this.tryEntries[g];if(_.finallyLoc===q)return this.complete(_.completion,_.afterLoc),L(_),P}},catch:function(q){for(var g=this.tryEntries.length-1;g>=0;--g){var _=this.tryEntries[g];if(_.tryLoc===q){var E=_.completion;if(E.type==="throw"){var R=E.arg;L(_)}return R}}throw new Error("illegal catch attempt")},delegateYield:function(q,g,_){return this.delegate={iterator:Z(q),resultName:g,nextLoc:_},this.method==="next"&&(this.arg=n),P}},s}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}),AH=de((t,e)=>{Q();var r=DH()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),CH=de((t,e)=>{"use strict";Q();var r=(i,...n)=>new Promise(s=>{s(i(...n))});e.exports=r,e.exports.default=r}),RH=de((t,e)=>{"use strict";Q();var r=CH(),i=n=>{if(!((Number.isInteger(n)||n===1/0)&&n>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let s=[],o=0,a=()=>{o--,s.length>0&&s.shift()()},u=(h,f,...d)=>{o++;let m=r(h,...d);f(m),m.then(a,a)},c=(h,f,...d)=>{o<n?u(h,f,...d):s.push(u.bind(null,h,f,...d))},l=(h,...f)=>new Promise(d=>c(h,d,...f));return Object.defineProperties(l,{activeCount:{get:()=>o},pendingCount:{get:()=>s.length},clearQueue:{value:()=>{s.length=0}}}),l};e.exports=i,e.exports.default=i}),TH=de((t,e)=>{"use strict";Q();var r=RH(),i=class extends Error{constructor(a){super(),this.value=a}},n=async(a,u)=>u(await a),s=async a=>{let u=await Promise.all(a);if(u[1]===!0)throw new i(u[0]);return!1},o=async(a,u,c)=>{c={concurrency:1/0,preserveOrder:!0,...c};let l=r(c.concurrency),h=[...a].map(d=>[d,l(n,d,u)]),f=r(c.preserveOrder?1:1/0);try{await Promise.all(h.map(d=>f(s,d)))}catch(d){if(d instanceof i)return d.value;throw d}};e.exports=o,e.exports.default=o}),kH=de((t,e)=>{"use strict";Q();var r=ye("path"),i=ye("fs"),{promisify:n}=ye("util"),s=TH(),o=n(i.stat),a=n(i.lstat),u={directory:"isDirectory",file:"isFile"};function c({type:h}){if(!(h in u))throw new Error(`Invalid type specified: ${h}`)}var l=(h,f)=>h===void 0||f[u[h]]();e.exports=async(h,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},c(f);let d=f.allowSymlinks?o:a;return s(h,async m=>{try{let y=await d(r.resolve(f.cwd,m));return l(f.type,y)}catch{return!1}},f)},e.exports.sync=(h,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},c(f);let d=f.allowSymlinks?i.statSync:i.lstatSync;for(let m of h)try{let y=d(r.resolve(f.cwd,m));if(l(f.type,y))return m}catch{}}}),OH=de((t,e)=>{"use strict";Q();var r=ye("fs"),{promisify:i}=ye("util"),n=i(r.access);e.exports=async s=>{try{return await n(s),!0}catch{return!1}},e.exports.sync=s=>{try{return r.accessSync(s),!0}catch{return!1}}}),FH=de((t,e)=>{"use strict";Q();var r=ye("path"),i=kH(),n=OH(),s=Symbol("findUp.stop");e.exports=async(o,a={})=>{let u=r.resolve(a.cwd||""),{root:c}=r.parse(u),l=[].concat(o),h=async f=>{if(typeof o!="function")return i(l,f);let d=await o(f.cwd);return typeof d=="string"?i([d],f):d};for(;;){let f=await h({...a,cwd:u});if(f===s)return;if(f)return r.resolve(u,f);if(u===c)return;u=r.dirname(u)}},e.exports.sync=(o,a={})=>{let u=r.resolve(a.cwd||""),{root:c}=r.parse(u),l=[].concat(o),h=f=>{if(typeof o!="function")return i.sync(l,f);let d=o(f.cwd);return typeof d=="string"?i.sync([d],f):d};for(;;){let f=h({...a,cwd:u});if(f===s)return;if(f)return r.resolve(u,f);if(u===c)return;u=r.dirname(u)}},e.exports.exists=n,e.exports.sync.exists=n.sync,e.exports.stop=s}),da=de((t,e)=>{"use strict";Q();var r=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"]]);e.exports=i=>i?Object.keys(i).map(n=>[r.has(n)?r.get(n):n,i[n]]).reduce((n,s)=>(n[s[0]]=s[1],n),Object.create(null)):{}}),Xy=de((t,e)=>{"use strict";Q();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=ye("events"),n=ye("stream"),s=ye("string_decoder").StringDecoder,o=Symbol("EOF"),a=Symbol("maybeEmitEnd"),u=Symbol("emittedEnd"),c=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),d=Symbol("flush"),m=Symbol("flushChunk"),y=Symbol("encoding"),p=Symbol("decoder"),v=Symbol("flowing"),C=Symbol("paused"),k=Symbol("resume"),P=Symbol("buffer"),F=Symbol("pipes"),M=Symbol("bufferLength"),S=Symbol("bufferPush"),D=Symbol("bufferShift"),j=Symbol("objectMode"),W=Symbol("destroyed"),N=Symbol("emitData"),K=Symbol("emitEnd"),te=Symbol("emitEnd2"),ne=Symbol("async"),U=R=>Promise.resolve().then(R),I=global._MP_NO_ITERATOR_SYMBOLS_!=="1",L=I&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),z=I&&Symbol.iterator||Symbol("iterator not implemented"),Z=R=>R==="end"||R==="finish"||R==="prefinish",q=R=>R instanceof ArrayBuffer||typeof R=="object"&&R.constructor&&R.constructor.name==="ArrayBuffer"&&R.byteLength>=0,g=R=>!Buffer.isBuffer(R)&&ArrayBuffer.isView(R),_=class{constructor(R,x,H){this.src=R,this.dest=x,this.opts=H,this.ondrain=()=>R[k](),x.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},E=class extends _{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(R,x,H){super(R,x,H),this.proxyErrors=$=>x.emit("error",$),R.on("error",this.proxyErrors)}};e.exports=class ER extends n{constructor(x){super(),this[v]=!1,this[C]=!1,this[F]=[],this[P]=[],this[j]=x&&x.objectMode||!1,this[j]?this[y]=null:this[y]=x&&x.encoding||null,this[y]==="buffer"&&(this[y]=null),this[ne]=x&&!!x.async||!1,this[p]=this[y]?new s(this[y]):null,this[o]=!1,this[u]=!1,this[c]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[M]=0,this[W]=!1,x&&x.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[P]}),x&&x.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[F]})}get bufferLength(){return this[M]}get encoding(){return this[y]}set encoding(x){if(this[j])throw new Error("cannot set encoding in objectMode");if(this[y]&&x!==this[y]&&(this[p]&&this[p].lastNeed||this[M]))throw new Error("cannot change encoding");this[y]!==x&&(this[p]=x?new s(x):null,this[P].length&&(this[P]=this[P].map(H=>this[p].write(H)))),this[y]=x}setEncoding(x){this.encoding=x}get objectMode(){return this[j]}set objectMode(x){this[j]=this[j]||!!x}get async(){return this[ne]}set async(x){this[ne]=this[ne]||!!x}write(x,H,$){if(this[o])throw new Error("write after end");if(this[W])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof H=="function"&&($=H,H="utf8"),H||(H="utf8");let re=this[ne]?U:V=>V();return!this[j]&&!Buffer.isBuffer(x)&&(g(x)?x=Buffer.from(x.buffer,x.byteOffset,x.byteLength):q(x)?x=Buffer.from(x):typeof x!="string"&&(this.objectMode=!0)),this[j]?(this.flowing&&this[M]!==0&&this[d](!0),this.flowing?this.emit("data",x):this[S](x),this[M]!==0&&this.emit("readable"),$&&re($),this.flowing):x.length?(typeof x=="string"&&!(H===this[y]&&!this[p].lastNeed)&&(x=Buffer.from(x,H)),Buffer.isBuffer(x)&&this[y]&&(x=this[p].write(x)),this.flowing&&this[M]!==0&&this[d](!0),this.flowing?this.emit("data",x):this[S](x),this[M]!==0&&this.emit("readable"),$&&re($),this.flowing):(this[M]!==0&&this.emit("readable"),$&&re($),this.flowing)}read(x){if(this[W])return null;if(this[M]===0||x===0||x>this[M])return this[a](),null;this[j]&&(x=null),this[P].length>1&&!this[j]&&(this.encoding?this[P]=[this[P].join("")]:this[P]=[Buffer.concat(this[P],this[M])]);let H=this[f](x||null,this[P][0]);return this[a](),H}[f](x,H){return x===H.length||x===null?this[D]():(this[P][0]=H.slice(x),H=H.slice(0,x),this[M]-=x),this.emit("data",H),!this[P].length&&!this[o]&&this.emit("drain"),H}end(x,H,$){return typeof x=="function"&&($=x,x=null),typeof H=="function"&&($=H,H="utf8"),x&&this.write(x,H),$&&this.once("end",$),this[o]=!0,this.writable=!1,(this.flowing||!this[C])&&this[a](),this}[k](){this[W]||(this[C]=!1,this[v]=!0,this.emit("resume"),this[P].length?this[d]():this[o]?this[a]():this.emit("drain"))}resume(){return this[k]()}pause(){this[v]=!1,this[C]=!0}get destroyed(){return this[W]}get flowing(){return this[v]}get paused(){return this[C]}[S](x){this[j]?this[M]+=1:this[M]+=x.length,this[P].push(x)}[D](){return this[P].length&&(this[j]?this[M]-=1:this[M]-=this[P][0].length),this[P].shift()}[d](x){do;while(this[m](this[D]()));!x&&!this[P].length&&!this[o]&&this.emit("drain")}[m](x){return x?(this.emit("data",x),this.flowing):!1}pipe(x,H){if(this[W])return;let $=this[u];return H=H||{},x===r.stdout||x===r.stderr?H.end=!1:H.end=H.end!==!1,H.proxyErrors=!!H.proxyErrors,$?H.end&&x.end():(this[F].push(H.proxyErrors?new E(this,x,H):new _(this,x,H)),this[ne]?U(()=>this[k]()):this[k]()),x}unpipe(x){let H=this[F].find($=>$.dest===x);H&&(this[F].splice(this[F].indexOf(H),1),H.unpipe())}addListener(x,H){return this.on(x,H)}on(x,H){let $=super.on(x,H);return x==="data"&&!this[F].length&&!this.flowing?this[k]():x==="readable"&&this[M]!==0?super.emit("readable"):Z(x)&&this[u]?(super.emit(x),this.removeAllListeners(x)):x==="error"&&this[l]&&(this[ne]?U(()=>H.call(this,this[l])):H.call(this,this[l])),$}get emittedEnd(){return this[u]}[a](){!this[c]&&!this[u]&&!this[W]&&this[P].length===0&&this[o]&&(this[c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[c]=!1)}emit(x,H,...$){if(x!=="error"&&x!=="close"&&x!==W&&this[W])return;if(x==="data")return H?this[ne]?U(()=>this[N](H)):this[N](H):!1;if(x==="end")return this[K]();if(x==="close"){if(this[h]=!0,!this[u]&&!this[W])return;let V=super.emit("close");return this.removeAllListeners("close"),V}else if(x==="error"){this[l]=H;let V=super.emit("error",H);return this[a](),V}else if(x==="resume"){let V=super.emit("resume");return this[a](),V}else if(x==="finish"||x==="prefinish"){let V=super.emit(x);return this.removeAllListeners(x),V}let re=super.emit(x,H,...$);return this[a](),re}[N](x){for(let $ of this[F])$.dest.write(x)===!1&&this.pause();let H=super.emit("data",x);return this[a](),H}[K](){this[u]||(this[u]=!0,this.readable=!1,this[ne]?U(()=>this[te]()):this[te]())}[te](){if(this[p]){let H=this[p].end();if(H){for(let $ of this[F])$.dest.write(H);super.emit("data",H)}}for(let H of this[F])H.end();let x=super.emit("end");return this.removeAllListeners("end"),x}collect(){let x=[];this[j]||(x.dataLength=0);let H=this.promise();return this.on("data",$=>{x.push($),this[j]||(x.dataLength+=$.length)}),H.then(()=>x)}concat(){return this[j]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(x=>this[j]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?x.join(""):Buffer.concat(x,x.dataLength))}promise(){return new Promise((x,H)=>{this.on(W,()=>H(new Error("stream destroyed"))),this.on("error",$=>H($)),this.on("end",()=>x())})}[L](){return{next:()=>{let x=this.read();if(x!==null)return Promise.resolve({done:!1,value:x});if(this[o])return Promise.resolve({done:!0});let H=null,$=null,re=w=>{this.removeListener("data",V),this.removeListener("end",he),$(w)},V=w=>{this.removeListener("error",re),this.removeListener("end",he),this.pause(),H({value:w,done:!!this[o]})},he=()=>{this.removeListener("error",re),this.removeListener("data",V),H({done:!0})},J=()=>re(new Error("stream destroyed"));return new Promise((w,B)=>{$=B,H=w,this.once(W,J),this.once("error",re),this.once("end",he),this.once("data",V)})}}}[z](){return{next:()=>{let x=this.read();return{value:x,done:x===null}}}}destroy(x){return this[W]?(x?this.emit("error",x):this.emit(W),this):(this[W]=!0,this[P].length=0,this[M]=0,typeof this.close=="function"&&!this[h]&&this.close(),x?this.emit("error",x):this.emit(W),this)}static isStream(x){return!!x&&(x instanceof ER||x instanceof n||x instanceof i&&(typeof x.pipe=="function"||typeof x.write=="function"&&typeof x.end=="function"))}}}),PH=de((t,e)=>{Q();var r=ye("zlib").constants||{ZLIB_VERNUM:4736};e.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},r))}),vR=de((t,e)=>{"use strict";Q();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=ye("events"),n=ye("stream"),s=ye("string_decoder").StringDecoder,o=Symbol("EOF"),a=Symbol("maybeEmitEnd"),u=Symbol("emittedEnd"),c=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),d=Symbol("flush"),m=Symbol("flushChunk"),y=Symbol("encoding"),p=Symbol("decoder"),v=Symbol("flowing"),C=Symbol("paused"),k=Symbol("resume"),P=Symbol("bufferLength"),F=Symbol("bufferPush"),M=Symbol("bufferShift"),S=Symbol("objectMode"),D=Symbol("destroyed"),j=Symbol("emitData"),W=Symbol("emitEnd"),N=Symbol("emitEnd2"),K=Symbol("async"),te=_=>Promise.resolve().then(_),ne=global._MP_NO_ITERATOR_SYMBOLS_!=="1",U=ne&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),I=ne&&Symbol.iterator||Symbol("iterator not implemented"),L=_=>_==="end"||_==="finish"||_==="prefinish",z=_=>_ instanceof ArrayBuffer||typeof _=="object"&&_.constructor&&_.constructor.name==="ArrayBuffer"&&_.byteLength>=0,Z=_=>!Buffer.isBuffer(_)&&ArrayBuffer.isView(_),q=class{constructor(_,E,R){this.src=_,this.dest=E,this.opts=R,this.ondrain=()=>_[k](),E.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},g=class extends q{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(_,E,R){super(_,E,R),this.proxyErrors=x=>E.emit("error",x),_.on("error",this.proxyErrors)}};e.exports=class wR extends n{constructor(E){super(),this[v]=!1,this[C]=!1,this.pipes=[],this.buffer=[],this[S]=E&&E.objectMode||!1,this[S]?this[y]=null:this[y]=E&&E.encoding||null,this[y]==="buffer"&&(this[y]=null),this[K]=E&&!!E.async||!1,this[p]=this[y]?new s(this[y]):null,this[o]=!1,this[u]=!1,this[c]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[P]=0,this[D]=!1}get bufferLength(){return this[P]}get encoding(){return this[y]}set encoding(E){if(this[S])throw new Error("cannot set encoding in objectMode");if(this[y]&&E!==this[y]&&(this[p]&&this[p].lastNeed||this[P]))throw new Error("cannot change encoding");this[y]!==E&&(this[p]=E?new s(E):null,this.buffer.length&&(this.buffer=this.buffer.map(R=>this[p].write(R)))),this[y]=E}setEncoding(E){this.encoding=E}get objectMode(){return this[S]}set objectMode(E){this[S]=this[S]||!!E}get async(){return this[K]}set async(E){this[K]=this[K]||!!E}write(E,R,x){if(this[o])throw new Error("write after end");if(this[D])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof R=="function"&&(x=R,R="utf8"),R||(R="utf8");let H=this[K]?te:$=>$();return!this[S]&&!Buffer.isBuffer(E)&&(Z(E)?E=Buffer.from(E.buffer,E.byteOffset,E.byteLength):z(E)?E=Buffer.from(E):typeof E!="string"&&(this.objectMode=!0)),this[S]?(this.flowing&&this[P]!==0&&this[d](!0),this.flowing?this.emit("data",E):this[F](E),this[P]!==0&&this.emit("readable"),x&&H(x),this.flowing):E.length?(typeof E=="string"&&!(R===this[y]&&!this[p].lastNeed)&&(E=Buffer.from(E,R)),Buffer.isBuffer(E)&&this[y]&&(E=this[p].write(E)),this.flowing&&this[P]!==0&&this[d](!0),this.flowing?this.emit("data",E):this[F](E),this[P]!==0&&this.emit("readable"),x&&H(x),this.flowing):(this[P]!==0&&this.emit("readable"),x&&H(x),this.flowing)}read(E){if(this[D])return null;if(this[P]===0||E===0||E>this[P])return this[a](),null;this[S]&&(E=null),this.buffer.length>1&&!this[S]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[P])]);let R=this[f](E||null,this.buffer[0]);return this[a](),R}[f](E,R){return E===R.length||E===null?this[M]():(this.buffer[0]=R.slice(E),R=R.slice(0,E),this[P]-=E),this.emit("data",R),!this.buffer.length&&!this[o]&&this.emit("drain"),R}end(E,R,x){return typeof E=="function"&&(x=E,E=null),typeof R=="function"&&(x=R,R="utf8"),E&&this.write(E,R),x&&this.once("end",x),this[o]=!0,this.writable=!1,(this.flowing||!this[C])&&this[a](),this}[k](){this[D]||(this[C]=!1,this[v]=!0,this.emit("resume"),this.buffer.length?this[d]():this[o]?this[a]():this.emit("drain"))}resume(){return this[k]()}pause(){this[v]=!1,this[C]=!0}get destroyed(){return this[D]}get flowing(){return this[v]}get paused(){return this[C]}[F](E){this[S]?this[P]+=1:this[P]+=E.length,this.buffer.push(E)}[M](){return this.buffer.length&&(this[S]?this[P]-=1:this[P]-=this.buffer[0].length),this.buffer.shift()}[d](E){do;while(this[m](this[M]()));!E&&!this.buffer.length&&!this[o]&&this.emit("drain")}[m](E){return E?(this.emit("data",E),this.flowing):!1}pipe(E,R){if(this[D])return;let x=this[u];return R=R||{},E===r.stdout||E===r.stderr?R.end=!1:R.end=R.end!==!1,R.proxyErrors=!!R.proxyErrors,x?R.end&&E.end():(this.pipes.push(R.proxyErrors?new g(this,E,R):new q(this,E,R)),this[K]?te(()=>this[k]()):this[k]()),E}unpipe(E){let R=this.pipes.find(x=>x.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 x=super.on(E,R);return E==="data"&&!this.pipes.length&&!this.flowing?this[k]():E==="readable"&&this[P]!==0?super.emit("readable"):L(E)&&this[u]?(super.emit(E),this.removeAllListeners(E)):E==="error"&&this[l]&&(this[K]?te(()=>R.call(this,this[l])):R.call(this,this[l])),x}get emittedEnd(){return this[u]}[a](){!this[c]&&!this[u]&&!this[D]&&this.buffer.length===0&&this[o]&&(this[c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[c]=!1)}emit(E,R,...x){if(E!=="error"&&E!=="close"&&E!==D&&this[D])return;if(E==="data")return R?this[K]?te(()=>this[j](R)):this[j](R):!1;if(E==="end")return this[W]();if(E==="close"){if(this[h]=!0,!this[u]&&!this[D])return;let $=super.emit("close");return this.removeAllListeners("close"),$}else if(E==="error"){this[l]=R;let $=super.emit("error",R);return this[a](),$}else if(E==="resume"){let $=super.emit("resume");return this[a](),$}else if(E==="finish"||E==="prefinish"){let $=super.emit(E);return this.removeAllListeners(E),$}let H=super.emit(E,R,...x);return this[a](),H}[j](E){for(let x of this.pipes)x.dest.write(E)===!1&&this.pause();let R=super.emit("data",E);return this[a](),R}[W](){this[u]||(this[u]=!0,this.readable=!1,this[K]?te(()=>this[N]()):this[N]())}[N](){if(this[p]){let R=this[p].end();if(R){for(let x of this.pipes)x.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[S]||(E.dataLength=0);let R=this.promise();return this.on("data",x=>{E.push(x),this[S]||(E.dataLength+=x.length)}),R.then(()=>E)}concat(){return this[S]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(E=>this[S]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?E.join(""):Buffer.concat(E,E.dataLength))}promise(){return new Promise((E,R)=>{this.on(D,()=>R(new Error("stream destroyed"))),this.on("error",x=>R(x)),this.on("end",()=>E())})}[U](){return{next:()=>{let E=this.read();if(E!==null)return Promise.resolve({done:!1,value:E});if(this[o])return Promise.resolve({done:!0});let R=null,x=null,H=he=>{this.removeListener("data",$),this.removeListener("end",re),x(he)},$=he=>{this.removeListener("error",H),this.removeListener("end",re),this.pause(),R({value:he,done:!!this[o]})},re=()=>{this.removeListener("error",H),this.removeListener("data",$),R({done:!0})},V=()=>H(new Error("stream destroyed"));return new Promise((he,J)=>{x=J,R=he,this.once(D,V),this.once("error",H),this.once("end",re),this.once("data",$)})}}}[I](){return{next:()=>{let E=this.read();return{value:E,done:E===null}}}}destroy(E){return this[D]?(E?this.emit("error",E):this.emit(D),this):(this[D]=!0,this.buffer.length=0,this[P]=0,typeof this.close=="function"&&!this[h]&&this.close(),E?this.emit("error",E):this.emit(D),this)}static isStream(E){return!!E&&(E instanceof wR||E instanceof n||E instanceof i&&(typeof E.pipe=="function"||typeof E.write=="function"&&typeof E.end=="function"))}}}),SR=de(t=>{"use strict";Q();var e=ye("assert"),r=ye("buffer").Buffer,i=ye("zlib"),n=t.constants=PH(),s=vR(),o=r.concat,a=Symbol("_superWrite"),u=class extends Error{constructor(L){super("zlib: "+L.message),this.code=L.code,this.errno=L.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+L.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},c=Symbol("opts"),l=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),f=Symbol("fullFlushFlag"),d=Symbol("handle"),m=Symbol("onError"),y=Symbol("sawError"),p=Symbol("level"),v=Symbol("strategy"),C=Symbol("ended"),k=Symbol("_defaultFullFlush"),P=class extends s{constructor(L,z){if(!L||typeof L!="object")throw new TypeError("invalid options for ZlibBase constructor");super(L),this[y]=!1,this[C]=!1,this[c]=L,this[l]=L.flush,this[h]=L.finishFlush;try{this[d]=new i[z](L)}catch(Z){throw new u(Z)}this[m]=Z=>{this[y]||(this[y]=!0,this.close(),this.emit("error",Z))},this[d].on("error",Z=>this[m](new u(Z))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[y])return e(this[d],"zlib binding closed"),this[d].reset()}flush(L){this.ended||(typeof L!="number"&&(L=this[f]),this.write(Object.assign(r.alloc(0),{[l]:L})))}end(L,z,Z){return L&&this.write(L,z),this.flush(this[h]),this[C]=!0,super.end(null,null,Z)}get ended(){return this[C]}write(L,z,Z){if(typeof z=="function"&&(Z=z,z="utf8"),typeof L=="string"&&(L=r.from(L,z)),this[y])return;e(this[d],"zlib binding closed");let q=this[d]._handle,g=q.close;q.close=()=>{};let _=this[d].close;this[d].close=()=>{},r.concat=x=>x;let E;try{let x=typeof L[l]=="number"?L[l]:this[l];E=this[d]._processChunk(L,x),r.concat=o}catch(x){r.concat=o,this[m](new u(x))}finally{this[d]&&(this[d]._handle=q,q.close=g,this[d].close=_,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",x=>this[m](new u(x)));let R;if(E)if(Array.isArray(E)&&E.length>0){R=this[a](r.from(E[0]));for(let x=1;x<E.length;x++)R=this[a](E[x])}else R=this[a](r.from(E));return Z&&Z(),R}[a](L){return super.write(L)}},F=class extends P{constructor(L,z){L=L||{},L.flush=L.flush||n.Z_NO_FLUSH,L.finishFlush=L.finishFlush||n.Z_FINISH,super(L,z),this[f]=n.Z_FULL_FLUSH,this[p]=L.level,this[v]=L.strategy}params(L,z){if(!this[y]){if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[p]!==L||this[v]!==z){this.flush(n.Z_SYNC_FLUSH),e(this[d],"zlib binding closed");let Z=this[d].flush;this[d].flush=(q,g)=>{this.flush(q),g()};try{this[d].params(L,z)}finally{this[d].flush=Z}this[d]&&(this[p]=L,this[v]=z)}}}},M=class extends F{constructor(L){super(L,"Deflate")}},S=class extends F{constructor(L){super(L,"Inflate")}},D=Symbol("_portable"),j=class extends F{constructor(L){super(L,"Gzip"),this[D]=L&&!!L.portable}[a](L){return this[D]?(this[D]=!1,L[9]=255,super[a](L)):super[a](L)}},W=class extends F{constructor(L){super(L,"Gunzip")}},N=class extends F{constructor(L){super(L,"DeflateRaw")}},K=class extends F{constructor(L){super(L,"InflateRaw")}},te=class extends F{constructor(L){super(L,"Unzip")}},ne=class extends P{constructor(L,z){L=L||{},L.flush=L.flush||n.BROTLI_OPERATION_PROCESS,L.finishFlush=L.finishFlush||n.BROTLI_OPERATION_FINISH,super(L,z),this[f]=n.BROTLI_OPERATION_FLUSH}},U=class extends ne{constructor(L){super(L,"BrotliCompress")}},I=class extends ne{constructor(L){super(L,"BrotliDecompress")}};t.Deflate=M,t.Inflate=S,t.Gzip=j,t.Gunzip=W,t.DeflateRaw=N,t.InflateRaw=K,t.Unzip=te,typeof i.BrotliCompress=="function"?(t.BrotliCompress=U,t.BrotliDecompress=I):t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),pa=de((t,e)=>{Q();var r=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;e.exports=r!=="win32"?i=>i:i=>i&&i.replace(/\\/g,"/")}),Qy=de((t,e)=>{"use strict";Q();var r=Xy(),i=pa(),n=Symbol("slurp");e.exports=class extends r{constructor(s,o,a){switch(super(),this.pause(),this.extended=o,this.globalExtended=a,this.header=s,this.startBlockSize=512*Math.ceil(s.size/512),this.blockRemain=this.startBlockSize,this.remain=s.size,this.type=s.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=i(s.path),this.mode=s.mode,this.mode&&(this.mode=this.mode&4095),this.uid=s.uid,this.gid=s.gid,this.uname=s.uname,this.gname=s.gname,this.size=s.size,this.mtime=s.mtime,this.atime=s.atime,this.ctime=s.ctime,this.linkpath=i(s.linkpath),this.uname=s.uname,this.gname=s.gname,o&&this[n](o),a&&this[n](a,!0)}write(s){let o=s.length;if(o>this.blockRemain)throw new Error("writing more to entry than is appropriate");let a=this.remain,u=this.blockRemain;return this.remain=Math.max(0,a-o),this.blockRemain=Math.max(0,u-o),this.ignore?!0:a>=o?super.write(s):super.write(s.slice(0,a))}[n](s,o){for(let a in s)s[a]!==null&&s[a]!==void 0&&!(o&&a==="path")&&(this[a]=a==="path"||a==="linkpath"?i(s[a]):s[a])}}}),xR=de(t=>{"use strict";Q(),t.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),t.code=new Map(Array.from(t.name).map(e=>[e[1],e[0]]))}),IH=de((t,e)=>{"use strict";Q();var r=(l,h)=>{if(Number.isSafeInteger(l))l<0?n(l,h):i(l,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},i=(l,h)=>{h[0]=128;for(var f=h.length;f>1;f--)h[f-1]=l&255,l=Math.floor(l/256)},n=(l,h)=>{h[0]=255;var f=!1;l=l*-1;for(var d=h.length;d>1;d--){var m=l&255;l=Math.floor(l/256),f?h[d-1]=u(m):m===0?h[d-1]=0:(f=!0,h[d-1]=c(m))}},s=l=>{let h=l[0],f=h===128?a(l.slice(1,l.length)):h===255?o(l):null;if(f===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(f))throw Error("parsed number outside of javascript safe integer range");return f},o=l=>{for(var h=l.length,f=0,d=!1,m=h-1;m>-1;m--){var y=l[m],p;d?p=u(y):y===0?p=y:(d=!0,p=c(y)),p!==0&&(f-=p*Math.pow(256,h-m-1))}return f},a=l=>{for(var h=l.length,f=0,d=h-1;d>-1;d--){var m=l[d];m!==0&&(f+=m*Math.pow(256,h-d-1))}return f},u=l=>(255^l)&255,c=l=>(255^l)+1&255;e.exports={encode:r,parse:s}}),ma=de((t,e)=>{"use strict";Q();var r=xR(),i=ye("path").posix,n=IH(),s=Symbol("slurp"),o=Symbol("type"),a=class{constructor(S,D,j,W){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[o]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(S)?this.decode(S,D||0,j,W):S&&this.set(S)}decode(S,D,j,W){if(D||(D=0),!S||!(S.length>=D+512))throw new Error("need 512 bytes for header");if(this.path=c(S,D,100),this.mode=f(S,D+100,8),this.uid=f(S,D+108,8),this.gid=f(S,D+116,8),this.size=f(S,D+124,12),this.mtime=l(S,D+136,12),this.cksum=f(S,D+148,12),this[s](j),this[s](W,!0),this[o]=c(S,D+156,1),this[o]===""&&(this[o]="0"),this[o]==="0"&&this.path.slice(-1)==="/"&&(this[o]="5"),this[o]==="5"&&(this.size=0),this.linkpath=c(S,D+157,100),S.slice(D+257,D+265).toString()==="ustar\x0000")if(this.uname=c(S,D+265,32),this.gname=c(S,D+297,32),this.devmaj=f(S,D+329,8),this.devmin=f(S,D+337,8),S[D+475]!==0){let K=c(S,D+345,155);this.path=K+"/"+this.path}else{let K=c(S,D+345,130);K&&(this.path=K+"/"+this.path),this.atime=l(S,D+476,12),this.ctime=l(S,D+488,12)}let N=8*32;for(let K=D;K<D+148;K++)N+=S[K];for(let K=D+156;K<D+512;K++)N+=S[K];this.cksumValid=N===this.cksum,this.cksum===null&&N===8*32&&(this.nullBlock=!0)}[s](S,D){for(let j in S)S[j]!==null&&S[j]!==void 0&&!(D&&j==="path")&&(this[j]=S[j])}encode(S,D){if(S||(S=this.block=Buffer.alloc(512),D=0),D||(D=0),!(S.length>=D+512))throw new Error("need 512 bytes for header");let j=this.ctime||this.atime?130:155,W=u(this.path||"",j),N=W[0],K=W[1];this.needPax=W[2],this.needPax=M(S,D,100,N)||this.needPax,this.needPax=p(S,D+100,8,this.mode)||this.needPax,this.needPax=p(S,D+108,8,this.uid)||this.needPax,this.needPax=p(S,D+116,8,this.gid)||this.needPax,this.needPax=p(S,D+124,12,this.size)||this.needPax,this.needPax=P(S,D+136,12,this.mtime)||this.needPax,S[D+156]=this[o].charCodeAt(0),this.needPax=M(S,D+157,100,this.linkpath)||this.needPax,S.write("ustar\x0000",D+257,8),this.needPax=M(S,D+265,32,this.uname)||this.needPax,this.needPax=M(S,D+297,32,this.gname)||this.needPax,this.needPax=p(S,D+329,8,this.devmaj)||this.needPax,this.needPax=p(S,D+337,8,this.devmin)||this.needPax,this.needPax=M(S,D+345,j,K)||this.needPax,S[D+475]!==0?this.needPax=M(S,D+345,155,K)||this.needPax:(this.needPax=M(S,D+345,130,K)||this.needPax,this.needPax=P(S,D+476,12,this.atime)||this.needPax,this.needPax=P(S,D+488,12,this.ctime)||this.needPax);let te=8*32;for(let ne=D;ne<D+148;ne++)te+=S[ne];for(let ne=D+156;ne<D+512;ne++)te+=S[ne];return this.cksum=te,p(S,D+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(S){for(let D in S)S[D]!==null&&S[D]!==void 0&&(this[D]=S[D])}get type(){return r.name.get(this[o])||this[o]}get typeKey(){return this[o]}set type(S){r.code.has(S)?this[o]=r.code.get(S):this[o]=S}},u=(S,D)=>{let j=S,W="",N,K=i.parse(S).root||".";if(Buffer.byteLength(j)<100)N=[j,W,!1];else{W=i.dirname(j),j=i.basename(j);do Buffer.byteLength(j)<=100&&Buffer.byteLength(W)<=D?N=[j,W,!1]:Buffer.byteLength(j)>100&&Buffer.byteLength(W)<=D?N=[j.slice(0,100-1),W,!0]:(j=i.join(i.basename(W),j),W=i.dirname(W));while(W!==K&&!N);N||(N=[S.slice(0,100-1),"",!0])}return N},c=(S,D,j)=>S.slice(D,D+j).toString("utf8").replace(/\0.*/,""),l=(S,D,j)=>h(f(S,D,j)),h=S=>S===null?null:new Date(S*1e3),f=(S,D,j)=>S[D]&128?n.parse(S.slice(D,D+j)):m(S,D,j),d=S=>isNaN(S)?null:S,m=(S,D,j)=>d(parseInt(S.slice(D,D+j).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},p=(S,D,j,W)=>W===null?!1:W>y[j]||W<0?(n.encode(W,S.slice(D,D+j)),!0):(v(S,D,j,W),!1),v=(S,D,j,W)=>S.write(C(W,j),D,j,"ascii"),C=(S,D)=>k(Math.floor(S).toString(8),D),k=(S,D)=>(S.length===D-1?S:new Array(D-S.length-1).join("0")+S+" ")+"\0",P=(S,D,j,W)=>W===null?!1:p(S,D,j,W.getTime()/1e3),F=new Array(156).join("\0"),M=(S,D,j,W)=>W===null?!1:(S.write(W+F,D,j,"utf8"),W.length!==Buffer.byteLength(W)||W.length>j);e.exports=a}),e0=de((t,e)=>{"use strict";Q();var r=ma(),i=ye("path"),n=class{constructor(u,c){this.atime=u.atime||null,this.charset=u.charset||null,this.comment=u.comment||null,this.ctime=u.ctime||null,this.gid=u.gid||null,this.gname=u.gname||null,this.linkpath=u.linkpath||null,this.mtime=u.mtime||null,this.path=u.path||null,this.size=u.size||null,this.uid=u.uid||null,this.uname=u.uname||null,this.dev=u.dev||null,this.ino=u.ino||null,this.nlink=u.nlink||null,this.global=c||!1}encode(){let u=this.encodeBody();if(u==="")return null;let c=Buffer.byteLength(u),l=512*Math.ceil(1+c/512),h=Buffer.allocUnsafe(l);for(let f=0;f<512;f++)h[f]=0;new r({path:("PaxHeader/"+i.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:c,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(h),h.write(u,512,c,"utf8");for(let f=c+512;f<h.length;f++)h[f]=0;return h}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(u){if(this[u]===null||this[u]===void 0)return"";let c=this[u]instanceof Date?this[u].getTime()/1e3:this[u],l=" "+(u==="dev"||u==="ino"||u==="nlink"?"SCHILY.":"")+u+"="+c+`
|
54
|
+
Downloading files${r?"":` for example ${Zr.default.cyan(e)}`}. This might take a moment.`),Nt(),h.start(),await(0,Oy.default)(()=>Ty(o,e),{retries:3}))}catch(p){throw new Ms($q(p)?p.message:String(p))}finally{h.stop()}let f=Ns.default.join(o,"package.json"),d=(0,js.existsSync)(f),m=[];if(d){let p;try{p=(0,js.readJsonSync)(f)}catch{}p&&m.push(...Object.keys(p.scripts||{}))}let y=t;return Ns.default.join(l,a)===t&&(y=a),{cdPath:y,hasPackageJson:d,availableScripts:m,repoInfo:n}}var Zs=require("fs");var uR=oe(require("chalk"));var j1=oe(require("crypto")),ml=new Uint8Array(256),pl=ml.length;function Py(){return pl>ml.length-16&&(j1.default.randomFillSync(ml),pl=0),ml.slice(pl,pl+=16)}var Qe=[];for(let t=0;t<256;++t)Qe.push((t+256).toString(16).slice(1));function q1(t,e=0){return Qe[t[e+0]]+Qe[t[e+1]]+Qe[t[e+2]]+Qe[t[e+3]]+"-"+Qe[t[e+4]]+Qe[t[e+5]]+"-"+Qe[t[e+6]]+Qe[t[e+7]]+"-"+Qe[t[e+8]]+Qe[t[e+9]]+"-"+Qe[t[e+10]]+Qe[t[e+11]]+Qe[t[e+12]]+Qe[t[e+13]]+Qe[t[e+14]]+Qe[t[e+15]]}var U1=oe(require("crypto")),Iy={randomUUID:U1.default.randomUUID};function zq(t,e,r){if(Iy.randomUUID&&!e&&!t)return Iy.randomUUID();t=t||{};let i=t.random||(t.rng||Py)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){r=r||0;for(let n=0;n<16;++n)e[r+n]=i[n];return e}return q1(i)}var dn=zq;var Re;(function(t){t.assertEqual=n=>n;function e(n){}t.assertIs=e;function r(n){throw new Error}t.assertNever=r,t.arrayToEnum=n=>{let s={};for(let o of n)s[o]=o;return s},t.getValidEnumValues=n=>{let s=t.objectKeys(n).filter(a=>typeof n[n[a]]!="number"),o={};for(let a of s)o[a]=n[a];return t.objectValues(o)},t.objectValues=n=>t.objectKeys(n).map(function(s){return n[s]}),t.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{let s=[];for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&s.push(o);return s},t.find=(n,s)=>{for(let o of n)if(s(o))return o},t.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&isFinite(n)&&Math.floor(n)===n;function i(n,s=" | "){return n.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}t.joinValues=i,t.jsonStringifyReplacer=(n,s)=>typeof s=="bigint"?s.toString():s})(Re||(Re={}));var By;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(By||(By={}));var ae=Re.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Oi=t=>{switch(typeof t){case"undefined":return ae.undefined;case"string":return ae.string;case"number":return isNaN(t)?ae.nan:ae.number;case"boolean":return ae.boolean;case"function":return ae.function;case"bigint":return ae.bigint;case"symbol":return ae.symbol;case"object":return Array.isArray(t)?ae.array:t===null?ae.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?ae.promise:typeof Map!="undefined"&&t instanceof Map?ae.map:typeof Set!="undefined"&&t instanceof Set?ae.set:typeof Date!="undefined"&&t instanceof Date?ae.date:ae.object;default:return ae.unknown}},ie=Re.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Gq=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),Tt=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let r=e||function(s){return s.message},i={_errors:[]},n=s=>{for(let o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(n);else if(o.code==="invalid_return_type")n(o.returnTypeError);else if(o.code==="invalid_arguments")n(o.argumentsError);else if(o.path.length===0)i._errors.push(r(o));else{let a=i,u=0;for(;u<o.path.length;){let c=o.path[u];u===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(r(o))):a[c]=a[c]||{_errors:[]},a=a[c],u++}}};return n(this),i}toString(){return this.message}get message(){return JSON.stringify(this.issues,Re.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},i=[];for(let n of this.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(e(n))):i.push(e(n));return{formErrors:i,fieldErrors:r}}get formErrors(){return this.flatten()}};Tt.create=t=>new Tt(t);var na=(t,e)=>{let r;switch(t.code){case ie.invalid_type:t.received===ae.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case ie.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,Re.jsonStringifyReplacer)}`;break;case ie.unrecognized_keys:r=`Unrecognized key(s) in object: ${Re.joinValues(t.keys,", ")}`;break;case ie.invalid_union:r="Invalid input";break;case ie.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Re.joinValues(t.options)}`;break;case ie.invalid_enum_value:r=`Invalid enum value. Expected ${Re.joinValues(t.options)}, received '${t.received}'`;break;case ie.invalid_arguments:r="Invalid function arguments";break;case ie.invalid_return_type:r="Invalid function return type";break;case ie.invalid_date:r="Invalid date";break;case ie.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:Re.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case ie.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case ie.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case ie.custom:r="Invalid input";break;case ie.invalid_intersection_types:r="Intersection results could not be merged";break;case ie.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case ie.not_finite:r="Number must be finite";break;default:r=e.defaultError,Re.assertNever(t)}return{message:r}},z1=na;function Wq(t){z1=t}function gl(){return z1}var _l=t=>{let{data:e,path:r,errorMaps:i,issueData:n}=t,s=[...r,...n.path||[]],o={...n,path:s},a="",u=i.filter(c=>!!c).slice().reverse();for(let c of u)a=c(o,{data:e,defaultError:a}).message;return{...n,path:s,message:n.message||a}},Vq=[];function ce(t,e){let r=_l({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,gl(),na].filter(i=>!!i)});t.common.issues.push(r)}var Ze=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let i=[];for(let n of r){if(n.status==="aborted")return be;n.status==="dirty"&&e.dirty(),i.push(n.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,r){let i=[];for(let n of r)i.push({key:await n.key,value:await n.value});return Ze.mergeObjectSync(e,i)}static mergeObjectSync(e,r){let i={};for(let n of r){let{key:s,value:o}=n;if(s.status==="aborted"||o.status==="aborted")return be;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value!="undefined"||n.alwaysSet)&&(i[s.value]=o.value)}return{status:e.value,value:i}}},be=Object.freeze({status:"aborted"}),G1=t=>({status:"dirty",value:t}),ft=t=>({status:"valid",value:t}),Ny=t=>t.status==="aborted",My=t=>t.status==="dirty",sa=t=>t.status==="valid",bl=t=>typeof Promise!="undefined"&&t instanceof Promise,me;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(me||(me={}));var Yt=class{constructor(e,r,i,n){this._cachedPath=[],this.parent=e,this.data=r,this._path=i,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},H1=(t,e)=>{if(sa(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Tt(t.common.issues);return this._error=r,this._error}}};function Ee(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:i,description:n}=t;if(e&&(r||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:n}:{errorMap:(o,a)=>o.code!=="invalid_type"?{message:a.defaultError}:typeof a.data=="undefined"?{message:i!=null?i:a.defaultError}:{message:r!=null?r:a.defaultError},description:n}}var ve=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return Oi(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:Oi(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ze,ctx:{common:e.parent.common,data:e.data,parsedType:Oi(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(bl(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let i=this.safeParse(e,r);if(i.success)return i.data;throw i.error}safeParse(e,r){var i;let n={common:{issues:[],async:(i=r==null?void 0:r.async)!==null&&i!==void 0?i:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Oi(e)},s=this._parseSync({data:e,path:n.path,parent:n});return H1(n,s)}async parseAsync(e,r){let i=await this.safeParseAsync(e,r);if(i.success)return i.data;throw i.error}async safeParseAsync(e,r){let i={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Oi(e)},n=this._parse({data:e,path:i.path,parent:i}),s=await(bl(n)?n:Promise.resolve(n));return H1(i,s)}refine(e,r){let i=n=>typeof r=="string"||typeof r=="undefined"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,s)=>{let o=e(n),a=()=>s.addIssue({code:ie.custom,...i(n)});return typeof Promise!="undefined"&&o instanceof Promise?o.then(u=>u?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,r){return this._refinement((i,n)=>e(i)?!0:(n.addIssue(typeof r=="function"?r(i,n):r),!1))}_refinement(e){return new Ot({schema:this,typeName:ge.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return rr.create(this,this._def)}nullable(){return ei.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return kt.create(this,this._def)}promise(){return Ii.create(this,this._def)}or(e){return gn.create([this,e],this._def)}and(e){return _n.create(this,e,this._def)}transform(e){return new Ot({...Ee(this._def),schema:this,typeName:ge.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new Sn({...Ee(this._def),innerType:this,defaultValue:r,typeName:ge.ZodDefault})}brand(){return new El({typeName:ge.ZodBranded,type:this,...Ee(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new Gs({...Ee(this._def),innerType:this,catchValue:r,typeName:ge.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return xn.create(this,e)}readonly(){return Vs.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Yq=/^c[^\s-]{8,}$/i,Kq=/^[a-z][a-z0-9]*$/,Zq=/^[0-9A-HJKMNP-TV-Z]{26}$/,Jq=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Xq=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Qq="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Ly,eU=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,tU=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,rU=t=>t.precision?t.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):t.precision===0?t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function iU(t,e){return!!((e==="v4"||!e)&&eU.test(t)||(e==="v6"||!e)&&tU.test(t))}var Rt=class extends ve{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==ae.string){let s=this._getOrReturnCtx(e);return ce(s,{code:ie.invalid_type,expected:ae.string,received:s.parsedType}),be}let i=new Ze,n;for(let s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(n=this._getOrReturnCtx(e,n),ce(n,{code:ie.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="max")e.data.length>s.value&&(n=this._getOrReturnCtx(e,n),ce(n,{code:ie.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="length"){let o=e.data.length>s.value,a=e.data.length<s.value;(o||a)&&(n=this._getOrReturnCtx(e,n),o?ce(n,{code:ie.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&ce(n,{code:ie.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),i.dirty())}else if(s.kind==="email")Xq.test(e.data)||(n=this._getOrReturnCtx(e,n),ce(n,{validation:"email",code:ie.invalid_string,message:s.message}),i.dirty());else if(s.kind==="emoji")Ly||(Ly=new RegExp(Qq,"u")),Ly.test(e.data)||(n=this._getOrReturnCtx(e,n),ce(n,{validation:"emoji",code:ie.invalid_string,message:s.message}),i.dirty());else if(s.kind==="uuid")Jq.test(e.data)||(n=this._getOrReturnCtx(e,n),ce(n,{validation:"uuid",code:ie.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid")Yq.test(e.data)||(n=this._getOrReturnCtx(e,n),ce(n,{validation:"cuid",code:ie.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid2")Kq.test(e.data)||(n=this._getOrReturnCtx(e,n),ce(n,{validation:"cuid2",code:ie.invalid_string,message:s.message}),i.dirty());else if(s.kind==="ulid")Zq.test(e.data)||(n=this._getOrReturnCtx(e,n),ce(n,{validation:"ulid",code:ie.invalid_string,message:s.message}),i.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),ce(n,{validation:"url",code:ie.invalid_string,message:s.message}),i.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),ce(n,{validation:"regex",code:ie.invalid_string,message:s.message}),i.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(n=this._getOrReturnCtx(e,n),ce(n,{code:ie.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),i.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(n=this._getOrReturnCtx(e,n),ce(n,{code:ie.invalid_string,validation:{startsWith:s.value},message:s.message}),i.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(n=this._getOrReturnCtx(e,n),ce(n,{code:ie.invalid_string,validation:{endsWith:s.value},message:s.message}),i.dirty()):s.kind==="datetime"?rU(s).test(e.data)||(n=this._getOrReturnCtx(e,n),ce(n,{code:ie.invalid_string,validation:"datetime",message:s.message}),i.dirty()):s.kind==="ip"?iU(e.data,s.version)||(n=this._getOrReturnCtx(e,n),ce(n,{validation:"ip",code:ie.invalid_string,message:s.message}),i.dirty()):Re.assertNever(s);return{status:i.value,value:e.data}}_regex(e,r,i){return this.refinement(n=>e.test(n),{validation:r,code:ie.invalid_string,...me.errToObj(i)})}_addCheck(e){return new Rt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...me.errToObj(e)})}url(e){return this._addCheck({kind:"url",...me.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...me.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...me.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...me.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...me.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...me.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...me.errToObj(e)})}datetime(e){var r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)=="undefined"?null:e==null?void 0:e.precision,offset:(r=e==null?void 0:e.offset)!==null&&r!==void 0?r:!1,...me.errToObj(e==null?void 0:e.message)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...me.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...me.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...me.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...me.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...me.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...me.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...me.errToObj(r)})}nonempty(e){return this.min(1,me.errToObj(e))}trim(){return new Rt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Rt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Rt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Rt.create=t=>{var e;return new Rt({checks:[],typeName:ge.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Ee(t)})};function nU(t,e){let r=(t.toString().split(".")[1]||"").length,i=(e.toString().split(".")[1]||"").length,n=r>i?r:i,s=parseInt(t.toFixed(n).replace(".","")),o=parseInt(e.toFixed(n).replace(".",""));return s%o/Math.pow(10,n)}var Er=class extends ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==ae.number){let s=this._getOrReturnCtx(e);return ce(s,{code:ie.invalid_type,expected:ae.number,received:s.parsedType}),be}let i,n=new Ze;for(let s of this._def.checks)s.kind==="int"?Re.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{code:ie.invalid_type,expected:"integer",received:"float",message:s.message}),n.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(i=this._getOrReturnCtx(e,i),ce(i,{code:ie.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),n.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(i=this._getOrReturnCtx(e,i),ce(i,{code:ie.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),n.dirty()):s.kind==="multipleOf"?nU(e.data,s.value)!==0&&(i=this._getOrReturnCtx(e,i),ce(i,{code:ie.not_multiple_of,multipleOf:s.value,message:s.message}),n.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),ce(i,{code:ie.not_finite,message:s.message}),n.dirty()):Re.assertNever(s);return{status:n.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,me.toString(r))}gt(e,r){return this.setLimit("min",e,!1,me.toString(r))}lte(e,r){return this.setLimit("max",e,!0,me.toString(r))}lt(e,r){return this.setLimit("max",e,!1,me.toString(r))}setLimit(e,r,i,n){return new Er({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:i,message:me.toString(n)}]})}_addCheck(e){return new Er({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:me.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:me.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:me.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:me.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:me.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:me.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:me.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:me.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:me.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Re.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(r===null||i.value>r)&&(r=i.value):i.kind==="max"&&(e===null||i.value<e)&&(e=i.value)}return Number.isFinite(r)&&Number.isFinite(e)}};Er.create=t=>new Er({checks:[],typeName:ge.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...Ee(t)});var vr=class extends ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==ae.bigint){let s=this._getOrReturnCtx(e);return ce(s,{code:ie.invalid_type,expected:ae.bigint,received:s.parsedType}),be}let i,n=new Ze;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(i=this._getOrReturnCtx(e,i),ce(i,{code:ie.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),n.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(i=this._getOrReturnCtx(e,i),ce(i,{code:ie.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),n.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(i=this._getOrReturnCtx(e,i),ce(i,{code:ie.not_multiple_of,multipleOf:s.value,message:s.message}),n.dirty()):Re.assertNever(s);return{status:n.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,me.toString(r))}gt(e,r){return this.setLimit("min",e,!1,me.toString(r))}lte(e,r){return this.setLimit("max",e,!0,me.toString(r))}lt(e,r){return this.setLimit("max",e,!1,me.toString(r))}setLimit(e,r,i,n){return new vr({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:i,message:me.toString(n)}]})}_addCheck(e){return new vr({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:me.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:me.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:me.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:me.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:me.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};vr.create=t=>{var e;return new vr({checks:[],typeName:ge.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...Ee(t)})};var pn=class extends ve{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==ae.boolean){let i=this._getOrReturnCtx(e);return ce(i,{code:ie.invalid_type,expected:ae.boolean,received:i.parsedType}),be}return ft(e.data)}};pn.create=t=>new pn({typeName:ge.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...Ee(t)});var Xr=class extends ve{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==ae.date){let s=this._getOrReturnCtx(e);return ce(s,{code:ie.invalid_type,expected:ae.date,received:s.parsedType}),be}if(isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return ce(s,{code:ie.invalid_date}),be}let i=new Ze,n;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(n=this._getOrReturnCtx(e,n),ce(n,{code:ie.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),i.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(n=this._getOrReturnCtx(e,n),ce(n,{code:ie.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),i.dirty()):Re.assertNever(s);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Xr({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:me.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:me.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};Xr.create=t=>new Xr({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:ge.ZodDate,...Ee(t)});var Us=class extends ve{_parse(e){if(this._getType(e)!==ae.symbol){let i=this._getOrReturnCtx(e);return ce(i,{code:ie.invalid_type,expected:ae.symbol,received:i.parsedType}),be}return ft(e.data)}};Us.create=t=>new Us({typeName:ge.ZodSymbol,...Ee(t)});var mn=class extends ve{_parse(e){if(this._getType(e)!==ae.undefined){let i=this._getOrReturnCtx(e);return ce(i,{code:ie.invalid_type,expected:ae.undefined,received:i.parsedType}),be}return ft(e.data)}};mn.create=t=>new mn({typeName:ge.ZodUndefined,...Ee(t)});var yn=class extends ve{_parse(e){if(this._getType(e)!==ae.null){let i=this._getOrReturnCtx(e);return ce(i,{code:ie.invalid_type,expected:ae.null,received:i.parsedType}),be}return ft(e.data)}};yn.create=t=>new yn({typeName:ge.ZodNull,...Ee(t)});var Pi=class extends ve{constructor(){super(...arguments),this._any=!0}_parse(e){return ft(e.data)}};Pi.create=t=>new Pi({typeName:ge.ZodAny,...Ee(t)});var Jr=class extends ve{constructor(){super(...arguments),this._unknown=!0}_parse(e){return ft(e.data)}};Jr.create=t=>new Jr({typeName:ge.ZodUnknown,...Ee(t)});var ir=class extends ve{_parse(e){let r=this._getOrReturnCtx(e);return ce(r,{code:ie.invalid_type,expected:ae.never,received:r.parsedType}),be}};ir.create=t=>new ir({typeName:ge.ZodNever,...Ee(t)});var Hs=class extends ve{_parse(e){if(this._getType(e)!==ae.undefined){let i=this._getOrReturnCtx(e);return ce(i,{code:ie.invalid_type,expected:ae.void,received:i.parsedType}),be}return ft(e.data)}};Hs.create=t=>new Hs({typeName:ge.ZodVoid,...Ee(t)});var kt=class extends ve{_parse(e){let{ctx:r,status:i}=this._processInputParams(e),n=this._def;if(r.parsedType!==ae.array)return ce(r,{code:ie.invalid_type,expected:ae.array,received:r.parsedType}),be;if(n.exactLength!==null){let o=r.data.length>n.exactLength.value,a=r.data.length<n.exactLength.value;(o||a)&&(ce(r,{code:o?ie.too_big:ie.too_small,minimum:a?n.exactLength.value:void 0,maximum:o?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),i.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(ce(r,{code:ie.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),i.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(ce(r,{code:ie.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),i.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>n.type._parseAsync(new Yt(r,o,r.path,a)))).then(o=>Ze.mergeArray(i,o));let s=[...r.data].map((o,a)=>n.type._parseSync(new Yt(r,o,r.path,a)));return Ze.mergeArray(i,s)}get element(){return this._def.type}min(e,r){return new kt({...this._def,minLength:{value:e,message:me.toString(r)}})}max(e,r){return new kt({...this._def,maxLength:{value:e,message:me.toString(r)}})}length(e,r){return new kt({...this._def,exactLength:{value:e,message:me.toString(r)}})}nonempty(e){return this.min(1,e)}};kt.create=(t,e)=>new kt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ge.ZodArray,...Ee(e)});function qs(t){if(t instanceof Ie){let e={};for(let r in t.shape){let i=t.shape[r];e[r]=rr.create(qs(i))}return new Ie({...t._def,shape:()=>e})}else return t instanceof kt?new kt({...t._def,type:qs(t.element)}):t instanceof rr?rr.create(qs(t.unwrap())):t instanceof ei?ei.create(qs(t.unwrap())):t instanceof Kt?Kt.create(t.items.map(e=>qs(e))):t}var Ie=class extends ve{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=Re.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==ae.object){let c=this._getOrReturnCtx(e);return ce(c,{code:ie.invalid_type,expected:ae.object,received:c.parsedType}),be}let{status:i,ctx:n}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof ir&&this._def.unknownKeys==="strip"))for(let c in n.data)o.includes(c)||a.push(c);let u=[];for(let c of o){let l=s[c],h=n.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new Yt(n,h,n.path,c)),alwaysSet:c in n.data})}if(this._def.catchall instanceof ir){let c=this._def.unknownKeys;if(c==="passthrough")for(let l of a)u.push({key:{status:"valid",value:l},value:{status:"valid",value:n.data[l]}});else if(c==="strict")a.length>0&&(ce(n,{code:ie.unrecognized_keys,keys:a}),i.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let c=this._def.catchall;for(let l of a){let h=n.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new Yt(n,h,n.path,l)),alwaysSet:l in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let c=[];for(let l of u){let h=await l.key;c.push({key:h,value:await l.value,alwaysSet:l.alwaysSet})}return c}).then(c=>Ze.mergeObjectSync(i,c)):Ze.mergeObjectSync(i,u)}get shape(){return this._def.shape()}strict(e){return me.errToObj,new Ie({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,i)=>{var n,s,o,a;let u=(o=(s=(n=this._def).errorMap)===null||s===void 0?void 0:s.call(n,r,i).message)!==null&&o!==void 0?o:i.defaultError;return r.code==="unrecognized_keys"?{message:(a=me.errToObj(e).message)!==null&&a!==void 0?a:u}:{message:u}}}:{}})}strip(){return new Ie({...this._def,unknownKeys:"strip"})}passthrough(){return new Ie({...this._def,unknownKeys:"passthrough"})}extend(e){return new Ie({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Ie({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ge.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new Ie({...this._def,catchall:e})}pick(e){let r={};return Re.objectKeys(e).forEach(i=>{e[i]&&this.shape[i]&&(r[i]=this.shape[i])}),new Ie({...this._def,shape:()=>r})}omit(e){let r={};return Re.objectKeys(this.shape).forEach(i=>{e[i]||(r[i]=this.shape[i])}),new Ie({...this._def,shape:()=>r})}deepPartial(){return qs(this)}partial(e){let r={};return Re.objectKeys(this.shape).forEach(i=>{let n=this.shape[i];e&&!e[i]?r[i]=n:r[i]=n.optional()}),new Ie({...this._def,shape:()=>r})}required(e){let r={};return Re.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])r[i]=this.shape[i];else{let s=this.shape[i];for(;s instanceof rr;)s=s._def.innerType;r[i]=s}}),new Ie({...this._def,shape:()=>r})}keyof(){return W1(Re.objectKeys(this.shape))}};Ie.create=(t,e)=>new Ie({shape:()=>t,unknownKeys:"strip",catchall:ir.create(),typeName:ge.ZodObject,...Ee(e)});Ie.strictCreate=(t,e)=>new Ie({shape:()=>t,unknownKeys:"strict",catchall:ir.create(),typeName:ge.ZodObject,...Ee(e)});Ie.lazycreate=(t,e)=>new Ie({shape:t,unknownKeys:"strip",catchall:ir.create(),typeName:ge.ZodObject,...Ee(e)});var gn=class extends ve{_parse(e){let{ctx:r}=this._processInputParams(e),i=this._def.options;function n(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=s.map(a=>new Tt(a.ctx.common.issues));return ce(r,{code:ie.invalid_union,unionErrors:o}),be}if(r.common.async)return Promise.all(i.map(async s=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(n);{let s,o=[];for(let u of i){let c={...r,common:{...r.common,issues:[]},parent:null},l=u._parseSync({data:r.data,path:r.path,parent:c});if(l.status==="valid")return l;l.status==="dirty"&&!s&&(s={result:l,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(u=>new Tt(u));return ce(r,{code:ie.invalid_union,unionErrors:a}),be}}get options(){return this._def.options}};gn.create=(t,e)=>new gn({options:t,typeName:ge.ZodUnion,...Ee(e)});var yl=t=>t instanceof En?yl(t.schema):t instanceof Ot?yl(t.innerType()):t instanceof vn?[t.value]:t instanceof wr?t.options:t instanceof wn?Object.keys(t.enum):t instanceof Sn?yl(t._def.innerType):t instanceof mn?[void 0]:t instanceof yn?[null]:null,$s=class extends ve{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==ae.object)return ce(r,{code:ie.invalid_type,expected:ae.object,received:r.parsedType}),be;let i=this.discriminator,n=r.data[i],s=this.optionsMap.get(n);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(ce(r,{code:ie.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),be)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,i){let n=new Map;for(let s of r){let o=yl(s.shape[e]);if(!o)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of o){if(n.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);n.set(a,s)}}return new $s({typeName:ge.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:n,...Ee(i)})}};function jy(t,e){let r=Oi(t),i=Oi(e);if(t===e)return{valid:!0,data:t};if(r===ae.object&&i===ae.object){let n=Re.objectKeys(e),s=Re.objectKeys(t).filter(a=>n.indexOf(a)!==-1),o={...t,...e};for(let a of s){let u=jy(t[a],e[a]);if(!u.valid)return{valid:!1};o[a]=u.data}return{valid:!0,data:o}}else if(r===ae.array&&i===ae.array){if(t.length!==e.length)return{valid:!1};let n=[];for(let s=0;s<t.length;s++){let o=t[s],a=e[s],u=jy(o,a);if(!u.valid)return{valid:!1};n.push(u.data)}return{valid:!0,data:n}}else return r===ae.date&&i===ae.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var _n=class extends ve{_parse(e){let{status:r,ctx:i}=this._processInputParams(e),n=(s,o)=>{if(Ny(s)||Ny(o))return be;let a=jy(s.value,o.value);return a.valid?((My(s)||My(o))&&r.dirty(),{status:r.value,value:a.data}):(ce(i,{code:ie.invalid_intersection_types}),be)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([s,o])=>n(s,o)):n(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};_n.create=(t,e,r)=>new _n({left:t,right:e,typeName:ge.ZodIntersection,...Ee(r)});var Kt=class extends ve{_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==ae.array)return ce(i,{code:ie.invalid_type,expected:ae.array,received:i.parsedType}),be;if(i.data.length<this._def.items.length)return ce(i,{code:ie.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),be;!this._def.rest&&i.data.length>this._def.items.length&&(ce(i,{code:ie.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...i.data].map((o,a)=>{let u=this._def.items[a]||this._def.rest;return u?u._parse(new Yt(i,o,i.path,a)):null}).filter(o=>!!o);return i.common.async?Promise.all(s).then(o=>Ze.mergeArray(r,o)):Ze.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new Kt({...this._def,rest:e})}};Kt.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Kt({items:t,typeName:ge.ZodTuple,rest:null,...Ee(e)})};var bn=class extends ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==ae.object)return ce(i,{code:ie.invalid_type,expected:ae.object,received:i.parsedType}),be;let n=[],s=this._def.keyType,o=this._def.valueType;for(let a in i.data)n.push({key:s._parse(new Yt(i,a,i.path,a)),value:o._parse(new Yt(i,i.data[a],i.path,a))});return i.common.async?Ze.mergeObjectAsync(r,n):Ze.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(e,r,i){return r instanceof ve?new bn({keyType:e,valueType:r,typeName:ge.ZodRecord,...Ee(i)}):new bn({keyType:Rt.create(),valueType:e,typeName:ge.ZodRecord,...Ee(r)})}},zs=class extends ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==ae.map)return ce(i,{code:ie.invalid_type,expected:ae.map,received:i.parsedType}),be;let n=this._def.keyType,s=this._def.valueType,o=[...i.data.entries()].map(([a,u],c)=>({key:n._parse(new Yt(i,a,i.path,[c,"key"])),value:s._parse(new Yt(i,u,i.path,[c,"value"]))}));if(i.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let u of o){let c=await u.key,l=await u.value;if(c.status==="aborted"||l.status==="aborted")return be;(c.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(c.value,l.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let u of o){let c=u.key,l=u.value;if(c.status==="aborted"||l.status==="aborted")return be;(c.status==="dirty"||l.status==="dirty")&&r.dirty(),a.set(c.value,l.value)}return{status:r.value,value:a}}}};zs.create=(t,e,r)=>new zs({valueType:e,keyType:t,typeName:ge.ZodMap,...Ee(r)});var Qr=class extends ve{_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==ae.set)return ce(i,{code:ie.invalid_type,expected:ae.set,received:i.parsedType}),be;let n=this._def;n.minSize!==null&&i.data.size<n.minSize.value&&(ce(i,{code:ie.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&i.data.size>n.maxSize.value&&(ce(i,{code:ie.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());let s=this._def.valueType;function o(u){let c=new Set;for(let l of u){if(l.status==="aborted")return be;l.status==="dirty"&&r.dirty(),c.add(l.value)}return{status:r.value,value:c}}let a=[...i.data.values()].map((u,c)=>s._parse(new Yt(i,u,i.path,c)));return i.common.async?Promise.all(a).then(u=>o(u)):o(a)}min(e,r){return new Qr({...this._def,minSize:{value:e,message:me.toString(r)}})}max(e,r){return new Qr({...this._def,maxSize:{value:e,message:me.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};Qr.create=(t,e)=>new Qr({valueType:t,minSize:null,maxSize:null,typeName:ge.ZodSet,...Ee(e)});var Fi=class extends ve{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==ae.function)return ce(r,{code:ie.invalid_type,expected:ae.function,received:r.parsedType}),be;function i(a,u){return _l({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,gl(),na].filter(c=>!!c),issueData:{code:ie.invalid_arguments,argumentsError:u}})}function n(a,u){return _l({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,gl(),na].filter(c=>!!c),issueData:{code:ie.invalid_return_type,returnTypeError:u}})}let s={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Ii){let a=this;return ft(async function(...u){let c=new Tt([]),l=await a._def.args.parseAsync(u,s).catch(d=>{throw c.addIssue(i(u,d)),c}),h=await Reflect.apply(o,this,l);return await a._def.returns._def.type.parseAsync(h,s).catch(d=>{throw c.addIssue(n(h,d)),c})})}else{let a=this;return ft(function(...u){let c=a._def.args.safeParse(u,s);if(!c.success)throw new Tt([i(u,c.error)]);let l=Reflect.apply(o,this,c.data),h=a._def.returns.safeParse(l,s);if(!h.success)throw new Tt([n(l,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Fi({...this._def,args:Kt.create(e).rest(Jr.create())})}returns(e){return new Fi({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,i){return new Fi({args:e||Kt.create([]).rest(Jr.create()),returns:r||Jr.create(),typeName:ge.ZodFunction,...Ee(i)})}},En=class extends ve{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};En.create=(t,e)=>new En({getter:t,typeName:ge.ZodLazy,...Ee(e)});var vn=class extends ve{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return ce(r,{received:r.data,code:ie.invalid_literal,expected:this._def.value}),be}return{status:"valid",value:e.data}}get value(){return this._def.value}};vn.create=(t,e)=>new vn({value:t,typeName:ge.ZodLiteral,...Ee(e)});function W1(t,e){return new wr({values:t,typeName:ge.ZodEnum,...Ee(e)})}var wr=class extends ve{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),i=this._def.values;return ce(r,{expected:Re.joinValues(i),received:r.parsedType,code:ie.invalid_type}),be}if(this._def.values.indexOf(e.data)===-1){let r=this._getOrReturnCtx(e),i=this._def.values;return ce(r,{received:r.data,code:ie.invalid_enum_value,options:i}),be}return ft(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e){return wr.create(e)}exclude(e){return wr.create(this.options.filter(r=>!e.includes(r)))}};wr.create=W1;var wn=class extends ve{_parse(e){let r=Re.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==ae.string&&i.parsedType!==ae.number){let n=Re.objectValues(r);return ce(i,{expected:Re.joinValues(n),received:i.parsedType,code:ie.invalid_type}),be}if(r.indexOf(e.data)===-1){let n=Re.objectValues(r);return ce(i,{received:i.data,code:ie.invalid_enum_value,options:n}),be}return ft(e.data)}get enum(){return this._def.values}};wn.create=(t,e)=>new wn({values:t,typeName:ge.ZodNativeEnum,...Ee(e)});var Ii=class extends ve{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==ae.promise&&r.common.async===!1)return ce(r,{code:ie.invalid_type,expected:ae.promise,received:r.parsedType}),be;let i=r.parsedType===ae.promise?r.data:Promise.resolve(r.data);return ft(i.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Ii.create=(t,e)=>new Ii({type:t,typeName:ge.ZodPromise,...Ee(e)});var Ot=class extends ve{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ge.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:i}=this._processInputParams(e),n=this._def.effect||null,s={addIssue:o=>{ce(i,o),o.fatal?r.abort():r.dirty()},get path(){return i.path}};if(s.addIssue=s.addIssue.bind(s),n.type==="preprocess"){let o=n.transform(i.data,s);return i.common.issues.length?{status:"dirty",value:i.data}:i.common.async?Promise.resolve(o).then(a=>this._def.schema._parseAsync({data:a,path:i.path,parent:i})):this._def.schema._parseSync({data:o,path:i.path,parent:i})}if(n.type==="refinement"){let o=a=>{let u=n.refinement(a,s);if(i.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(i.common.async===!1){let a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?be:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(a=>a.status==="aborted"?be:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(n.type==="transform")if(i.common.async===!1){let o=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!sa(o))return o;let a=n.transform(o.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(o=>sa(o)?Promise.resolve(n.transform(o.value,s)).then(a=>({status:r.value,value:a})):o);Re.assertNever(n)}};Ot.create=(t,e,r)=>new Ot({schema:t,typeName:ge.ZodEffects,effect:e,...Ee(r)});Ot.createWithPreprocess=(t,e,r)=>new Ot({schema:e,effect:{type:"preprocess",transform:t},typeName:ge.ZodEffects,...Ee(r)});var rr=class extends ve{_parse(e){return this._getType(e)===ae.undefined?ft(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};rr.create=(t,e)=>new rr({innerType:t,typeName:ge.ZodOptional,...Ee(e)});var ei=class extends ve{_parse(e){return this._getType(e)===ae.null?ft(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};ei.create=(t,e)=>new ei({innerType:t,typeName:ge.ZodNullable,...Ee(e)});var Sn=class extends ve{_parse(e){let{ctx:r}=this._processInputParams(e),i=r.data;return r.parsedType===ae.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Sn.create=(t,e)=>new Sn({innerType:t,typeName:ge.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Ee(e)});var Gs=class extends ve{_parse(e){let{ctx:r}=this._processInputParams(e),i={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return bl(n)?n.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Tt(i.common.issues)},input:i.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new Tt(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};Gs.create=(t,e)=>new Gs({innerType:t,typeName:ge.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Ee(e)});var Ws=class extends ve{_parse(e){if(this._getType(e)!==ae.nan){let i=this._getOrReturnCtx(e);return ce(i,{code:ie.invalid_type,expected:ae.nan,received:i.parsedType}),be}return{status:"valid",value:e.data}}};Ws.create=t=>new Ws({typeName:ge.ZodNaN,...Ee(t)});var sU=Symbol("zod_brand"),El=class extends ve{_parse(e){let{ctx:r}=this._processInputParams(e),i=r.data;return this._def.type._parse({data:i,path:r.path,parent:r})}unwrap(){return this._def.type}},xn=class extends ve{_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?be:s.status==="dirty"?(r.dirty(),G1(s.value)):this._def.out._parseAsync({data:s.value,path:i.path,parent:i})})();{let n=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return n.status==="aborted"?be:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:i.path,parent:i})}}static create(e,r){return new xn({in:e,out:r,typeName:ge.ZodPipeline})}},Vs=class extends ve{_parse(e){let r=this._def.innerType._parse(e);return sa(r)&&(r.value=Object.freeze(r.value)),r}};Vs.create=(t,e)=>new Vs({innerType:t,typeName:ge.ZodReadonly,...Ee(e)});var V1=(t,e={},r)=>t?Pi.create().superRefine((i,n)=>{var s,o;if(!t(i)){let a=typeof e=="function"?e(i):typeof e=="string"?{message:e}:e,u=(o=(s=a.fatal)!==null&&s!==void 0?s:r)!==null&&o!==void 0?o:!0,c=typeof a=="string"?{message:a}:a;n.addIssue({code:"custom",...c,fatal:u})}}):Pi.create(),oU={object:Ie.lazycreate},ge;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ge||(ge={}));var aU=(t,e={message:`Input not instance of ${t.name}`})=>V1(r=>r instanceof t,e),Y1=Rt.create,K1=Er.create,uU=Ws.create,cU=vr.create,Z1=pn.create,lU=Xr.create,hU=Us.create,fU=mn.create,dU=yn.create,pU=Pi.create,mU=Jr.create,yU=ir.create,gU=Hs.create,_U=kt.create,bU=Ie.create,EU=Ie.strictCreate,vU=gn.create,wU=$s.create,SU=_n.create,xU=Kt.create,DU=bn.create,AU=zs.create,CU=Qr.create,RU=Fi.create,TU=En.create,kU=vn.create,OU=wr.create,FU=wn.create,PU=Ii.create,$1=Ot.create,IU=rr.create,LU=ei.create,BU=Ot.createWithPreprocess,NU=xn.create,MU=()=>Y1().optional(),jU=()=>K1().optional(),qU=()=>Z1().optional(),UU={string:t=>Rt.create({...t,coerce:!0}),number:t=>Er.create({...t,coerce:!0}),boolean:t=>pn.create({...t,coerce:!0}),bigint:t=>vr.create({...t,coerce:!0}),date:t=>Xr.create({...t,coerce:!0})},HU=be,Ys=Object.freeze({__proto__:null,defaultErrorMap:na,setErrorMap:Wq,getErrorMap:gl,makeIssue:_l,EMPTY_PATH:Vq,addIssueToContext:ce,ParseStatus:Ze,INVALID:be,DIRTY:G1,OK:ft,isAborted:Ny,isDirty:My,isValid:sa,isAsync:bl,get util(){return Re},get objectUtil(){return By},ZodParsedType:ae,getParsedType:Oi,ZodType:ve,ZodString:Rt,ZodNumber:Er,ZodBigInt:vr,ZodBoolean:pn,ZodDate:Xr,ZodSymbol:Us,ZodUndefined:mn,ZodNull:yn,ZodAny:Pi,ZodUnknown:Jr,ZodNever:ir,ZodVoid:Hs,ZodArray:kt,ZodObject:Ie,ZodUnion:gn,ZodDiscriminatedUnion:$s,ZodIntersection:_n,ZodTuple:Kt,ZodRecord:bn,ZodMap:zs,ZodSet:Qr,ZodFunction:Fi,ZodLazy:En,ZodLiteral:vn,ZodEnum:wr,ZodNativeEnum:wn,ZodPromise:Ii,ZodEffects:Ot,ZodTransformer:Ot,ZodOptional:rr,ZodNullable:ei,ZodDefault:Sn,ZodCatch:Gs,ZodNaN:Ws,BRAND:sU,ZodBranded:El,ZodPipeline:xn,ZodReadonly:Vs,custom:V1,Schema:ve,ZodSchema:ve,late:oU,get ZodFirstPartyTypeKind(){return ge},coerce:UU,any:pU,array:_U,bigint:cU,boolean:Z1,date:lU,discriminatedUnion:wU,effect:$1,enum:OU,function:RU,instanceof:aU,intersection:SU,lazy:TU,literal:kU,map:AU,nan:uU,nativeEnum:FU,never:yU,null:dU,nullable:LU,number:K1,object:bU,oboolean:qU,onumber:jU,optional:IU,ostring:MU,pipeline:NU,preprocess:BU,promise:PU,record:DU,set:CU,strictObject:EU,string:Y1,symbol:hU,transformer:$1,tuple:xU,undefined:fU,union:vU,unknown:mU,void:gU,NEVER:HU,ZodIssueCode:ie,quotelessJson:Gq,ZodError:Tt});var Gy=oe(require("os")),sR=oe(require("crypto")),oR=oe(require("path")),aR=oe(nR());function XU(t){let e=process.version,r=Gy.default.type(),i=Gy.default.arch();return`${t.name} ${t.version} ${e} ${r} ${i}`}async function QU(){let t=process.env.TURBO_CONFIG_DIR_PATH?process.env.TURBO_CONFIG_DIR_PATH:await(0,aR.configDir)();if(!t)throw new Error("Could not find telemetry config directory");return oR.default.join(t,"turborepo","telemetry.json")}function eH({input:t,salt:e}){return sR.default.createHash("sha256").update(`${e}${t}`).digest("hex")}var Ks={buildUserAgent:XU,oneWayHashWithSalt:eH,defaultConfigPath:QU};var tH="TURBO_TELEMETRY_DEBUG",rH="TURBO_TELEMETRY_DISABLED",iH="TURBO_TELEMETRY_MESSAGE_DISABLED",nH="DO_NOT_TRACK",sH=Ys.object({telemetry_enabled:Ys.boolean(),telemetry_id:Ys.string(),telemetry_salt:Ys.string(),telemetry_alerted:Ys.string().optional()}),Et=class{constructor({configPath:e,config:r}){this.config=r,this.configPath=e}static fromConfigPath(e){try{let r=(0,Zs.readFileSync)(e,"utf-8"),i=JSON.parse(r),n=Et.validateConfig(i);return new Et({configPath:e,config:n})}catch{return Et.tryRemove({configPath:e})?Et.create({configPath:e}):void 0}}static async fromDefaultConfig(){try{let e=await Ks.defaultConfigPath();return Et.fromConfigPath(e)}catch{return}}static validateConfig(e){try{return sH.parse(e)}catch{throw new Error("Config is invalid.")}}static create({configPath:e}){let r=dn(),i=dn(),n=Ks.oneWayHashWithSalt({input:r,salt:i}),s=new Et({configPath:e,config:{telemetry_enabled:!0,telemetry_id:n,telemetry_salt:i}});if(s.tryWrite())return s}tryWrite(){try{let e=JSON.stringify(this.config,null,2);return(0,Zs.writeFileSync)(this.configPath,e),!0}catch{return!1}}static tryRemove({configPath:e}){try{return(0,Zs.rmSync)(e,{force:!0}),!0}catch{return!1}}hasSeenAlert(){return this.config.telemetry_alerted!==void 0}isEnabled(){let e=process.env[nH]||"0",r=process.env[rH]||"0";return e==="1"||e.toLowerCase()==="true"||r==="1"||r.toLowerCase()==="true"?!1:this.config.telemetry_enabled}isTelemetryWarningEnabled(){let e=process.env[iH]||"0";return!(e==="1"||e.toLowerCase()==="true")}get id(){return this.config.telemetry_id}showAlert(){!this.hasSeenAlert()&&this.isEnabled()&&this.isTelemetryWarningEnabled()&&(ue.log(),ue.bold("Attention:"),ue.grey("Turborepo now collects completely anonymous telemetry regarding usage."),ue.grey("This information is used to shape the Turborepo roadmap and prioritize features."),ue.grey("You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:"),ue.underline(uR.default.grey("https://turbo.build/repo/docs/telemetry"))),this.alertShown()}enable(){this.config.telemetry_enabled=!0,this.tryWrite()}disable(){this.config.telemetry_enabled=!1,this.tryWrite()}alertShown(){return this.hasSeenAlert()||(this.config.telemetry_alerted=new Date().toISOString(),this.tryWrite()),!0}oneWayHash(e){return Ks.oneWayHashWithSalt({input:e,salt:this.config.telemetry_salt})}static isDebug(){let e=process.env[tH]||"0";return e==="1"||e.toLowerCase()==="true"}};var cR=oe(Sy());var oH=20,aH="/api/turborepo/v1/events",Dn=class{constructor({api:e,packageInfo:r,config:i,opts:n}){this.batchSize=oH;this.timeout=250;this.sessionId=dn();this.eventBatches=[];this.events=[];let s=new URL(aH,e);this.api=s.toString(),this.packageInfo=r,this.config=i,n!=null&&n.timeout&&(this.timeout=n.timeout),n!=null&&n.batchSize&&(this.batchSize=n.batchSize)}hasPendingEvents(){return this.events.length!==0}async waitForFlush(){await Promise.all(this.eventBatches)}flushEvents(){let e=this.events.splice(0,this.batchSize);this.config.isEnabled()&&this.eventBatches.push(cR.default.post(this.api,{timeout:this.timeout,json:e,headers:{"x-turbo-telemetry-id":this.config.id,"x-turbo-session-id":this.sessionId,"User-Agent":Ks.buildUserAgent(this.packageInfo)}}))}track({key:e,value:r,parentId:i,isSensitive:n}){let s={id:dn(),key:e,value:n?this.config.oneWayHash(r):r,package_name:this.packageInfo.name,package_version:this.packageInfo.version,parent_id:i};return Et.isDebug()&&(ue.log(),ue.bold("[telemetry event]"),ue.dimmed(JSON.stringify(s,null,2)),ue.log()),this.config.isEnabled()&&(this.events.push({package:s}),this.events.length>=this.batchSize&&this.flushEvents()),s}async close(){for(;this.hasPendingEvents();)this.flushEvents();try{await this.waitForFlush()}catch{}}trackCliOption({option:e,value:r}){return this.track({key:`option:${e}`,value:r})}trackCliArgument({argument:e,value:r}){return this.track({key:`argument:${e}`,value:r})}trackCliCommand({command:e,value:r}){return this.track({key:`command:${e}`,value:r})}trackCommandStatus({command:e,status:r}){return this.trackCliCommand({command:e,value:r})}trackCommandWarning(e){return this.track({key:"warning",value:e})}trackCommandError(e){return this.track({key:"error",value:e})}};var oa=class extends Dn{trackOptionExample(e){if(e)return this.trackCliOption({option:"example",value:e})}trackOptionPackageManager(e){if(e)return this.trackCliOption({option:"package_manager",value:e})}trackOptionSkipInstall(e){if(e)return this.trackCliOption({option:"skip_install",value:e.toString()})}trackOptionSkipTransforms(e){if(e)return this.trackCliOption({option:"skip_transforms",value:e.toString()})}trackOptionTurboVersion(e){if(e)return this.trackCliOption({option:"turbo_version",value:e})}trackOptionExamplePath(e){if(e)return this.trackCliOption({option:"example_path",value:e})}trackArgumentDirectory(e){if(e)return this.trackCliArgument({argument:"project_directory",value:"provided"})}trackArgumentPackageManager(e){if(e)return this.trackCliArgument({argument:"package_manager",value:e})}};var pR=oe(dR());var cH=["build","test","lint","typecheck","checktypes","check-types","type-check","check"],aa=class extends Dn{trackCI(){var e;return this.track({key:"ci",value:(e=pR.name)!=null?e:"unknown"})}trackArgumentWorkspace(e){if(e)return this.trackCliArgument({argument:"workspace",value:"provided"})}trackOptionTask(e){if(e)return this.trackCliOption({option:"task",value:cH.includes(e)?e:"other"})}trackOptionFallback(e){if(e)return this.trackCliOption({option:"fallback",value:e})}trackOptionDirectory(e){if(e)return this.trackCliOption({option:"directory",value:"custom"})}trackOptionMaxBuffer(e){if(e!==void 0)return this.trackCliOption({option:"max_buffer",value:e.toString()})}};var lH={"create-turbo":oa,"turbo-ignore":aa},hH="https://telemetry.vercel.com";async function Wy({packageInfo:t,opts:e}){let r=lH[t.name],i=await Et.fromDefaultConfig();return i?(i.showAlert(),{telemetry:new r({api:hH,packageInfo:t,config:i,opts:e})}):{telemetry:void 0}}var ua=oe(require("chalk"));var mR=require("commander"),yR="status",fH=["enable","disable",yR];function dH(t){var r;let e=(r=t.telemetry)==null?void 0:r.config.isEnabled();ue.log(`Status: ${e?ua.default.bold(ua.default.green("Enabled")):ua.default.bold(ua.default.red("Disabled"))}`),ue.log(),e?ue.log("Turborepo telemetry is completely anonymous. Thank you for participating!"):ue.log("You have opted-out of Turborepo anonymous telemetry. No data will be collected from your machine."),ue.log("Learn more: https://turbo.build/repo/docs/telemetry")}function pH(t,e){if(!e.telemetry){ue.error("Telemetry could not be initialized");return}t==="enable"?(e.telemetry.config.enable(),ue.bold("Success!")):t==="disable"&&(e.telemetry.config.disable(),ue.bold("Success!")),ue.log(),dH(e)}function Vy(t){t.command("telemetry").description("Manage telemetry settings").addArgument(new mR.Argument("[action]","Action to perform").choices(fH).default(yR)).action(pH)}var PT=require("proxy-agent"),_0=oe(wl());var gR=oe(require("chalk")),_R=oe(require("update-check"));var bR=oe(wl()),yH=(0,_R.default)(bR.default).catch(()=>null);async function Yy(){try{let t=await yH;t!=null&&t.latest&&(ue.log(),ue.log(gR.default.yellow.bold("A new version of `create-turbo` is available!")),ue.log()),process.exit()}catch{}}var _a=oe(require("path")),et=oe(require("chalk"));var Ni=oe(require("chalk"),1),LR=oe(Eu(),1),BR=oe(Su(),1),UR=oe(require("os"),1),HR=oe(rs(),1),zW=require("fs-extra");var KW=oe(su(),1),JW=require("fs-extra"),QW=require("fs-extra"),tV=require("chalk"),zR=require("stream"),GR=require("util"),sV=require("fs-extra"),cV=require("chalk"),hV=require("fs-extra"),An=oe(require("path"),1),dt=require("fs-extra"),WR=oe(rs(),1),VR=oe(require("path"),1),YR=require("fs-extra"),KR=oe(require("chalk"),1),ri=oe(require("path"),1),ZR=oe(rs(),1),It=require("fs-extra"),JR=oe(su(),1);var la=oe(require("path"),1),xr=require("fs-extra"),to=oe(require("path"),1),Dr=require("fs-extra"),ha=oe(require("path"),1),Ar=require("fs-extra"),Pt=oe(require("chalk"),1),iT=oe(Su(),1),nT=oe(rs(),1),sT=oe(Eu(),1),oT=require("semver"),aT=oe(require("chalk"),1),gH=Object.create,Jy=Object.defineProperty,_H=Object.getOwnPropertyDescriptor,bH=Object.getOwnPropertyNames,EH=Object.getPrototypeOf,vH=Object.prototype.hasOwnProperty,ye=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(e,r)=>(typeof require!="undefined"?require:e)[r]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')}),wH=(t,e)=>()=>(t&&(e=t(t=0)),e),de=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),SH=(t,e)=>{for(var r in e)Jy(t,r,{get:e[r],enumerable:!0})},xH=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of bH(e))!vH.call(t,n)&&n!==r&&Jy(t,n,{get:()=>e[n],enumerable:!(i=_H(e,n))||i.enumerable});return t},Al=(t,e,r)=>(r=t!=null?gH(EH(t)):{},xH(e||!t||!t.__esModule?Jy(r,"default",{value:t,enumerable:!0}):r,t)),Q=wH(()=>{}),DH=de((t,e)=>{Q();function r(i){return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,r(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}),AH=de((t,e)=>{Q();var r=DH().default;function i(){"use strict";e.exports=i=function(){return s},e.exports.__esModule=!0,e.exports.default=e.exports;var n,s={},o=Object.prototype,a=o.hasOwnProperty,u=Object.defineProperty||function(q,g,_){q[g]=_.value},c=typeof Symbol=="function"?Symbol:{},l=c.iterator||"@@iterator",h=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function d(q,g,_){return Object.defineProperty(q,g,{value:_,enumerable:!0,configurable:!0,writable:!0}),q[g]}try{d({},"")}catch{d=function(q,g,_){return q[g]=_}}function m(q,g,_,E){var R=g&&g.prototype instanceof F?g:F,x=Object.create(R.prototype),H=new z(E||[]);return u(x,"_invoke",{value:ne(q,_,H)}),x}function y(q,g,_){try{return{type:"normal",arg:q.call(g,_)}}catch(E){return{type:"throw",arg:E}}}s.wrap=m;var p="suspendedStart",v="suspendedYield",C="executing",k="completed",P={};function F(){}function M(){}function S(){}var D={};d(D,l,function(){return this});var j=Object.getPrototypeOf,W=j&&j(j(Z([])));W&&W!==o&&a.call(W,l)&&(D=W);var N=S.prototype=F.prototype=Object.create(D);function K(q){["next","throw","return"].forEach(function(g){d(q,g,function(_){return this._invoke(g,_)})})}function te(q,g){function _(R,x,H,$){var re=y(q[R],q,x);if(re.type!=="throw"){var V=re.arg,he=V.value;return he&&r(he)=="object"&&a.call(he,"__await")?g.resolve(he.__await).then(function(J){_("next",J,H,$)},function(J){_("throw",J,H,$)}):g.resolve(he).then(function(J){V.value=J,H(V)},function(J){return _("throw",J,H,$)})}$(re.arg)}var E;u(this,"_invoke",{value:function(R,x){function H(){return new g(function($,re){_(R,x,$,re)})}return E=E?E.then(H,H):H()}})}function ne(q,g,_){var E=p;return function(R,x){if(E===C)throw new Error("Generator is already running");if(E===k){if(R==="throw")throw x;return{value:n,done:!0}}for(_.method=R,_.arg=x;;){var H=_.delegate;if(H){var $=U(H,_);if($){if($===P)continue;return $}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(E===p)throw E=k,_.arg;_.dispatchException(_.arg)}else _.method==="return"&&_.abrupt("return",_.arg);E=C;var re=y(q,g,_);if(re.type==="normal"){if(E=_.done?k:v,re.arg===P)continue;return{value:re.arg,done:_.done}}re.type==="throw"&&(E=k,_.method="throw",_.arg=re.arg)}}}function U(q,g){var _=g.method,E=q.iterator[_];if(E===n)return g.delegate=null,_==="throw"&&q.iterator.return&&(g.method="return",g.arg=n,U(q,g),g.method==="throw")||_!=="return"&&(g.method="throw",g.arg=new TypeError("The iterator does not provide a '"+_+"' method")),P;var R=y(E,q.iterator,g.arg);if(R.type==="throw")return g.method="throw",g.arg=R.arg,g.delegate=null,P;var x=R.arg;return x?x.done?(g[q.resultName]=x.value,g.next=q.nextLoc,g.method!=="return"&&(g.method="next",g.arg=n),g.delegate=null,P):x:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,P)}function I(q){var g={tryLoc:q[0]};1 in q&&(g.catchLoc=q[1]),2 in q&&(g.finallyLoc=q[2],g.afterLoc=q[3]),this.tryEntries.push(g)}function L(q){var g=q.completion||{};g.type="normal",delete g.arg,q.completion=g}function z(q){this.tryEntries=[{tryLoc:"root"}],q.forEach(I,this),this.reset(!0)}function Z(q){if(q||q===""){var g=q[l];if(g)return g.call(q);if(typeof q.next=="function")return q;if(!isNaN(q.length)){var _=-1,E=function R(){for(;++_<q.length;)if(a.call(q,_))return R.value=q[_],R.done=!1,R;return R.value=n,R.done=!0,R};return E.next=E}}throw new TypeError(r(q)+" is not iterable")}return M.prototype=S,u(N,"constructor",{value:S,configurable:!0}),u(S,"constructor",{value:M,configurable:!0}),M.displayName=d(S,f,"GeneratorFunction"),s.isGeneratorFunction=function(q){var g=typeof q=="function"&&q.constructor;return!!g&&(g===M||(g.displayName||g.name)==="GeneratorFunction")},s.mark=function(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,S):(q.__proto__=S,d(q,f,"GeneratorFunction")),q.prototype=Object.create(N),q},s.awrap=function(q){return{__await:q}},K(te.prototype),d(te.prototype,h,function(){return this}),s.AsyncIterator=te,s.async=function(q,g,_,E,R){R===void 0&&(R=Promise);var x=new te(m(q,g,_,E),R);return s.isGeneratorFunction(g)?x:x.next().then(function(H){return H.done?H.value:x.next()})},K(N),d(N,f,"Generator"),d(N,l,function(){return this}),d(N,"toString",function(){return"[object Generator]"}),s.keys=function(q){var g=Object(q),_=[];for(var E in g)_.push(E);return _.reverse(),function R(){for(;_.length;){var x=_.pop();if(x in g)return R.value=x,R.done=!1,R}return R.done=!0,R}},s.values=Z,z.prototype={constructor:z,reset:function(q){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(L),!q)for(var g in this)g.charAt(0)==="t"&&a.call(this,g)&&!isNaN(+g.slice(1))&&(this[g]=n)},stop:function(){this.done=!0;var q=this.tryEntries[0].completion;if(q.type==="throw")throw q.arg;return this.rval},dispatchException:function(q){if(this.done)throw q;var g=this;function _(re,V){return x.type="throw",x.arg=q,g.next=re,V&&(g.method="next",g.arg=n),!!V}for(var E=this.tryEntries.length-1;E>=0;--E){var R=this.tryEntries[E],x=R.completion;if(R.tryLoc==="root")return _("end");if(R.tryLoc<=this.prev){var H=a.call(R,"catchLoc"),$=a.call(R,"finallyLoc");if(H&&$){if(this.prev<R.catchLoc)return _(R.catchLoc,!0);if(this.prev<R.finallyLoc)return _(R.finallyLoc)}else if(H){if(this.prev<R.catchLoc)return _(R.catchLoc,!0)}else{if(!$)throw new Error("try statement without catch or finally");if(this.prev<R.finallyLoc)return _(R.finallyLoc)}}}},abrupt:function(q,g){for(var _=this.tryEntries.length-1;_>=0;--_){var E=this.tryEntries[_];if(E.tryLoc<=this.prev&&a.call(E,"finallyLoc")&&this.prev<E.finallyLoc){var R=E;break}}R&&(q==="break"||q==="continue")&&R.tryLoc<=g&&g<=R.finallyLoc&&(R=null);var x=R?R.completion:{};return x.type=q,x.arg=g,R?(this.method="next",this.next=R.finallyLoc,P):this.complete(x)},complete:function(q,g){if(q.type==="throw")throw q.arg;return q.type==="break"||q.type==="continue"?this.next=q.arg:q.type==="return"?(this.rval=this.arg=q.arg,this.method="return",this.next="end"):q.type==="normal"&&g&&(this.next=g),P},finish:function(q){for(var g=this.tryEntries.length-1;g>=0;--g){var _=this.tryEntries[g];if(_.finallyLoc===q)return this.complete(_.completion,_.afterLoc),L(_),P}},catch:function(q){for(var g=this.tryEntries.length-1;g>=0;--g){var _=this.tryEntries[g];if(_.tryLoc===q){var E=_.completion;if(E.type==="throw"){var R=E.arg;L(_)}return R}}throw new Error("illegal catch attempt")},delegateYield:function(q,g,_){return this.delegate={iterator:Z(q),resultName:g,nextLoc:_},this.method==="next"&&(this.arg=n),P}},s}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}),CH=de((t,e)=>{Q();var r=AH()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),RH=de((t,e)=>{"use strict";Q();var r=(i,...n)=>new Promise(s=>{s(i(...n))});e.exports=r,e.exports.default=r}),TH=de((t,e)=>{"use strict";Q();var r=RH(),i=n=>{if(!((Number.isInteger(n)||n===1/0)&&n>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let s=[],o=0,a=()=>{o--,s.length>0&&s.shift()()},u=(h,f,...d)=>{o++;let m=r(h,...d);f(m),m.then(a,a)},c=(h,f,...d)=>{o<n?u(h,f,...d):s.push(u.bind(null,h,f,...d))},l=(h,...f)=>new Promise(d=>c(h,d,...f));return Object.defineProperties(l,{activeCount:{get:()=>o},pendingCount:{get:()=>s.length},clearQueue:{value:()=>{s.length=0}}}),l};e.exports=i,e.exports.default=i}),kH=de((t,e)=>{"use strict";Q();var r=TH(),i=class extends Error{constructor(a){super(),this.value=a}},n=async(a,u)=>u(await a),s=async a=>{let u=await Promise.all(a);if(u[1]===!0)throw new i(u[0]);return!1},o=async(a,u,c)=>{c={concurrency:1/0,preserveOrder:!0,...c};let l=r(c.concurrency),h=[...a].map(d=>[d,l(n,d,u)]),f=r(c.preserveOrder?1:1/0);try{await Promise.all(h.map(d=>f(s,d)))}catch(d){if(d instanceof i)return d.value;throw d}};e.exports=o,e.exports.default=o}),OH=de((t,e)=>{"use strict";Q();var r=ye("path"),i=ye("fs"),{promisify:n}=ye("util"),s=kH(),o=n(i.stat),a=n(i.lstat),u={directory:"isDirectory",file:"isFile"};function c({type:h}){if(!(h in u))throw new Error(`Invalid type specified: ${h}`)}var l=(h,f)=>h===void 0||f[u[h]]();e.exports=async(h,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},c(f);let d=f.allowSymlinks?o:a;return s(h,async m=>{try{let y=await d(r.resolve(f.cwd,m));return l(f.type,y)}catch{return!1}},f)},e.exports.sync=(h,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},c(f);let d=f.allowSymlinks?i.statSync:i.lstatSync;for(let m of h)try{let y=d(r.resolve(f.cwd,m));if(l(f.type,y))return m}catch{}}}),FH=de((t,e)=>{"use strict";Q();var r=ye("fs"),{promisify:i}=ye("util"),n=i(r.access);e.exports=async s=>{try{return await n(s),!0}catch{return!1}},e.exports.sync=s=>{try{return r.accessSync(s),!0}catch{return!1}}}),PH=de((t,e)=>{"use strict";Q();var r=ye("path"),i=OH(),n=FH(),s=Symbol("findUp.stop");e.exports=async(o,a={})=>{let u=r.resolve(a.cwd||""),{root:c}=r.parse(u),l=[].concat(o),h=async f=>{if(typeof o!="function")return i(l,f);let d=await o(f.cwd);return typeof d=="string"?i([d],f):d};for(;;){let f=await h({...a,cwd:u});if(f===s)return;if(f)return r.resolve(u,f);if(u===c)return;u=r.dirname(u)}},e.exports.sync=(o,a={})=>{let u=r.resolve(a.cwd||""),{root:c}=r.parse(u),l=[].concat(o),h=f=>{if(typeof o!="function")return i.sync(l,f);let d=o(f.cwd);return typeof d=="string"?i.sync([d],f):d};for(;;){let f=h({...a,cwd:u});if(f===s)return;if(f)return r.resolve(u,f);if(u===c)return;u=r.dirname(u)}},e.exports.exists=n,e.exports.sync.exists=n.sync,e.exports.stop=s}),fa=de((t,e)=>{"use strict";Q();var r=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"]]);e.exports=i=>i?Object.keys(i).map(n=>[r.has(n)?r.get(n):n,i[n]]).reduce((n,s)=>(n[s[0]]=s[1],n),Object.create(null)):{}}),Xy=de((t,e)=>{"use strict";Q();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=ye("events"),n=ye("stream"),s=ye("string_decoder").StringDecoder,o=Symbol("EOF"),a=Symbol("maybeEmitEnd"),u=Symbol("emittedEnd"),c=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),d=Symbol("flush"),m=Symbol("flushChunk"),y=Symbol("encoding"),p=Symbol("decoder"),v=Symbol("flowing"),C=Symbol("paused"),k=Symbol("resume"),P=Symbol("buffer"),F=Symbol("pipes"),M=Symbol("bufferLength"),S=Symbol("bufferPush"),D=Symbol("bufferShift"),j=Symbol("objectMode"),W=Symbol("destroyed"),N=Symbol("emitData"),K=Symbol("emitEnd"),te=Symbol("emitEnd2"),ne=Symbol("async"),U=R=>Promise.resolve().then(R),I=global._MP_NO_ITERATOR_SYMBOLS_!=="1",L=I&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),z=I&&Symbol.iterator||Symbol("iterator not implemented"),Z=R=>R==="end"||R==="finish"||R==="prefinish",q=R=>R instanceof ArrayBuffer||typeof R=="object"&&R.constructor&&R.constructor.name==="ArrayBuffer"&&R.byteLength>=0,g=R=>!Buffer.isBuffer(R)&&ArrayBuffer.isView(R),_=class{constructor(R,x,H){this.src=R,this.dest=x,this.opts=H,this.ondrain=()=>R[k](),x.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},E=class extends _{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(R,x,H){super(R,x,H),this.proxyErrors=$=>x.emit("error",$),R.on("error",this.proxyErrors)}};e.exports=class wR extends n{constructor(x){super(),this[v]=!1,this[C]=!1,this[F]=[],this[P]=[],this[j]=x&&x.objectMode||!1,this[j]?this[y]=null:this[y]=x&&x.encoding||null,this[y]==="buffer"&&(this[y]=null),this[ne]=x&&!!x.async||!1,this[p]=this[y]?new s(this[y]):null,this[o]=!1,this[u]=!1,this[c]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[M]=0,this[W]=!1,x&&x.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[P]}),x&&x.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[F]})}get bufferLength(){return this[M]}get encoding(){return this[y]}set encoding(x){if(this[j])throw new Error("cannot set encoding in objectMode");if(this[y]&&x!==this[y]&&(this[p]&&this[p].lastNeed||this[M]))throw new Error("cannot change encoding");this[y]!==x&&(this[p]=x?new s(x):null,this[P].length&&(this[P]=this[P].map(H=>this[p].write(H)))),this[y]=x}setEncoding(x){this.encoding=x}get objectMode(){return this[j]}set objectMode(x){this[j]=this[j]||!!x}get async(){return this[ne]}set async(x){this[ne]=this[ne]||!!x}write(x,H,$){if(this[o])throw new Error("write after end");if(this[W])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof H=="function"&&($=H,H="utf8"),H||(H="utf8");let re=this[ne]?U:V=>V();return!this[j]&&!Buffer.isBuffer(x)&&(g(x)?x=Buffer.from(x.buffer,x.byteOffset,x.byteLength):q(x)?x=Buffer.from(x):typeof x!="string"&&(this.objectMode=!0)),this[j]?(this.flowing&&this[M]!==0&&this[d](!0),this.flowing?this.emit("data",x):this[S](x),this[M]!==0&&this.emit("readable"),$&&re($),this.flowing):x.length?(typeof x=="string"&&!(H===this[y]&&!this[p].lastNeed)&&(x=Buffer.from(x,H)),Buffer.isBuffer(x)&&this[y]&&(x=this[p].write(x)),this.flowing&&this[M]!==0&&this[d](!0),this.flowing?this.emit("data",x):this[S](x),this[M]!==0&&this.emit("readable"),$&&re($),this.flowing):(this[M]!==0&&this.emit("readable"),$&&re($),this.flowing)}read(x){if(this[W])return null;if(this[M]===0||x===0||x>this[M])return this[a](),null;this[j]&&(x=null),this[P].length>1&&!this[j]&&(this.encoding?this[P]=[this[P].join("")]:this[P]=[Buffer.concat(this[P],this[M])]);let H=this[f](x||null,this[P][0]);return this[a](),H}[f](x,H){return x===H.length||x===null?this[D]():(this[P][0]=H.slice(x),H=H.slice(0,x),this[M]-=x),this.emit("data",H),!this[P].length&&!this[o]&&this.emit("drain"),H}end(x,H,$){return typeof x=="function"&&($=x,x=null),typeof H=="function"&&($=H,H="utf8"),x&&this.write(x,H),$&&this.once("end",$),this[o]=!0,this.writable=!1,(this.flowing||!this[C])&&this[a](),this}[k](){this[W]||(this[C]=!1,this[v]=!0,this.emit("resume"),this[P].length?this[d]():this[o]?this[a]():this.emit("drain"))}resume(){return this[k]()}pause(){this[v]=!1,this[C]=!0}get destroyed(){return this[W]}get flowing(){return this[v]}get paused(){return this[C]}[S](x){this[j]?this[M]+=1:this[M]+=x.length,this[P].push(x)}[D](){return this[P].length&&(this[j]?this[M]-=1:this[M]-=this[P][0].length),this[P].shift()}[d](x){do;while(this[m](this[D]()));!x&&!this[P].length&&!this[o]&&this.emit("drain")}[m](x){return x?(this.emit("data",x),this.flowing):!1}pipe(x,H){if(this[W])return;let $=this[u];return H=H||{},x===r.stdout||x===r.stderr?H.end=!1:H.end=H.end!==!1,H.proxyErrors=!!H.proxyErrors,$?H.end&&x.end():(this[F].push(H.proxyErrors?new E(this,x,H):new _(this,x,H)),this[ne]?U(()=>this[k]()):this[k]()),x}unpipe(x){let H=this[F].find($=>$.dest===x);H&&(this[F].splice(this[F].indexOf(H),1),H.unpipe())}addListener(x,H){return this.on(x,H)}on(x,H){let $=super.on(x,H);return x==="data"&&!this[F].length&&!this.flowing?this[k]():x==="readable"&&this[M]!==0?super.emit("readable"):Z(x)&&this[u]?(super.emit(x),this.removeAllListeners(x)):x==="error"&&this[l]&&(this[ne]?U(()=>H.call(this,this[l])):H.call(this,this[l])),$}get emittedEnd(){return this[u]}[a](){!this[c]&&!this[u]&&!this[W]&&this[P].length===0&&this[o]&&(this[c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[c]=!1)}emit(x,H,...$){if(x!=="error"&&x!=="close"&&x!==W&&this[W])return;if(x==="data")return H?this[ne]?U(()=>this[N](H)):this[N](H):!1;if(x==="end")return this[K]();if(x==="close"){if(this[h]=!0,!this[u]&&!this[W])return;let V=super.emit("close");return this.removeAllListeners("close"),V}else if(x==="error"){this[l]=H;let V=super.emit("error",H);return this[a](),V}else if(x==="resume"){let V=super.emit("resume");return this[a](),V}else if(x==="finish"||x==="prefinish"){let V=super.emit(x);return this.removeAllListeners(x),V}let re=super.emit(x,H,...$);return this[a](),re}[N](x){for(let $ of this[F])$.dest.write(x)===!1&&this.pause();let H=super.emit("data",x);return this[a](),H}[K](){this[u]||(this[u]=!0,this.readable=!1,this[ne]?U(()=>this[te]()):this[te]())}[te](){if(this[p]){let H=this[p].end();if(H){for(let $ of this[F])$.dest.write(H);super.emit("data",H)}}for(let H of this[F])H.end();let x=super.emit("end");return this.removeAllListeners("end"),x}collect(){let x=[];this[j]||(x.dataLength=0);let H=this.promise();return this.on("data",$=>{x.push($),this[j]||(x.dataLength+=$.length)}),H.then(()=>x)}concat(){return this[j]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(x=>this[j]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?x.join(""):Buffer.concat(x,x.dataLength))}promise(){return new Promise((x,H)=>{this.on(W,()=>H(new Error("stream destroyed"))),this.on("error",$=>H($)),this.on("end",()=>x())})}[L](){return{next:()=>{let x=this.read();if(x!==null)return Promise.resolve({done:!1,value:x});if(this[o])return Promise.resolve({done:!0});let H=null,$=null,re=w=>{this.removeListener("data",V),this.removeListener("end",he),$(w)},V=w=>{this.removeListener("error",re),this.removeListener("end",he),this.pause(),H({value:w,done:!!this[o]})},he=()=>{this.removeListener("error",re),this.removeListener("data",V),H({done:!0})},J=()=>re(new Error("stream destroyed"));return new Promise((w,B)=>{$=B,H=w,this.once(W,J),this.once("error",re),this.once("end",he),this.once("data",V)})}}}[z](){return{next:()=>{let x=this.read();return{value:x,done:x===null}}}}destroy(x){return this[W]?(x?this.emit("error",x):this.emit(W),this):(this[W]=!0,this[P].length=0,this[M]=0,typeof this.close=="function"&&!this[h]&&this.close(),x?this.emit("error",x):this.emit(W),this)}static isStream(x){return!!x&&(x instanceof wR||x instanceof n||x instanceof i&&(typeof x.pipe=="function"||typeof x.write=="function"&&typeof x.end=="function"))}}}),IH=de((t,e)=>{Q();var r=ye("zlib").constants||{ZLIB_VERNUM:4736};e.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},r))}),SR=de((t,e)=>{"use strict";Q();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=ye("events"),n=ye("stream"),s=ye("string_decoder").StringDecoder,o=Symbol("EOF"),a=Symbol("maybeEmitEnd"),u=Symbol("emittedEnd"),c=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),d=Symbol("flush"),m=Symbol("flushChunk"),y=Symbol("encoding"),p=Symbol("decoder"),v=Symbol("flowing"),C=Symbol("paused"),k=Symbol("resume"),P=Symbol("bufferLength"),F=Symbol("bufferPush"),M=Symbol("bufferShift"),S=Symbol("objectMode"),D=Symbol("destroyed"),j=Symbol("emitData"),W=Symbol("emitEnd"),N=Symbol("emitEnd2"),K=Symbol("async"),te=_=>Promise.resolve().then(_),ne=global._MP_NO_ITERATOR_SYMBOLS_!=="1",U=ne&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),I=ne&&Symbol.iterator||Symbol("iterator not implemented"),L=_=>_==="end"||_==="finish"||_==="prefinish",z=_=>_ instanceof ArrayBuffer||typeof _=="object"&&_.constructor&&_.constructor.name==="ArrayBuffer"&&_.byteLength>=0,Z=_=>!Buffer.isBuffer(_)&&ArrayBuffer.isView(_),q=class{constructor(_,E,R){this.src=_,this.dest=E,this.opts=R,this.ondrain=()=>_[k](),E.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},g=class extends q{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(_,E,R){super(_,E,R),this.proxyErrors=x=>E.emit("error",x),_.on("error",this.proxyErrors)}};e.exports=class xR extends n{constructor(E){super(),this[v]=!1,this[C]=!1,this.pipes=[],this.buffer=[],this[S]=E&&E.objectMode||!1,this[S]?this[y]=null:this[y]=E&&E.encoding||null,this[y]==="buffer"&&(this[y]=null),this[K]=E&&!!E.async||!1,this[p]=this[y]?new s(this[y]):null,this[o]=!1,this[u]=!1,this[c]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[P]=0,this[D]=!1}get bufferLength(){return this[P]}get encoding(){return this[y]}set encoding(E){if(this[S])throw new Error("cannot set encoding in objectMode");if(this[y]&&E!==this[y]&&(this[p]&&this[p].lastNeed||this[P]))throw new Error("cannot change encoding");this[y]!==E&&(this[p]=E?new s(E):null,this.buffer.length&&(this.buffer=this.buffer.map(R=>this[p].write(R)))),this[y]=E}setEncoding(E){this.encoding=E}get objectMode(){return this[S]}set objectMode(E){this[S]=this[S]||!!E}get async(){return this[K]}set async(E){this[K]=this[K]||!!E}write(E,R,x){if(this[o])throw new Error("write after end");if(this[D])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof R=="function"&&(x=R,R="utf8"),R||(R="utf8");let H=this[K]?te:$=>$();return!this[S]&&!Buffer.isBuffer(E)&&(Z(E)?E=Buffer.from(E.buffer,E.byteOffset,E.byteLength):z(E)?E=Buffer.from(E):typeof E!="string"&&(this.objectMode=!0)),this[S]?(this.flowing&&this[P]!==0&&this[d](!0),this.flowing?this.emit("data",E):this[F](E),this[P]!==0&&this.emit("readable"),x&&H(x),this.flowing):E.length?(typeof E=="string"&&!(R===this[y]&&!this[p].lastNeed)&&(E=Buffer.from(E,R)),Buffer.isBuffer(E)&&this[y]&&(E=this[p].write(E)),this.flowing&&this[P]!==0&&this[d](!0),this.flowing?this.emit("data",E):this[F](E),this[P]!==0&&this.emit("readable"),x&&H(x),this.flowing):(this[P]!==0&&this.emit("readable"),x&&H(x),this.flowing)}read(E){if(this[D])return null;if(this[P]===0||E===0||E>this[P])return this[a](),null;this[S]&&(E=null),this.buffer.length>1&&!this[S]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[P])]);let R=this[f](E||null,this.buffer[0]);return this[a](),R}[f](E,R){return E===R.length||E===null?this[M]():(this.buffer[0]=R.slice(E),R=R.slice(0,E),this[P]-=E),this.emit("data",R),!this.buffer.length&&!this[o]&&this.emit("drain"),R}end(E,R,x){return typeof E=="function"&&(x=E,E=null),typeof R=="function"&&(x=R,R="utf8"),E&&this.write(E,R),x&&this.once("end",x),this[o]=!0,this.writable=!1,(this.flowing||!this[C])&&this[a](),this}[k](){this[D]||(this[C]=!1,this[v]=!0,this.emit("resume"),this.buffer.length?this[d]():this[o]?this[a]():this.emit("drain"))}resume(){return this[k]()}pause(){this[v]=!1,this[C]=!0}get destroyed(){return this[D]}get flowing(){return this[v]}get paused(){return this[C]}[F](E){this[S]?this[P]+=1:this[P]+=E.length,this.buffer.push(E)}[M](){return this.buffer.length&&(this[S]?this[P]-=1:this[P]-=this.buffer[0].length),this.buffer.shift()}[d](E){do;while(this[m](this[M]()));!E&&!this.buffer.length&&!this[o]&&this.emit("drain")}[m](E){return E?(this.emit("data",E),this.flowing):!1}pipe(E,R){if(this[D])return;let x=this[u];return R=R||{},E===r.stdout||E===r.stderr?R.end=!1:R.end=R.end!==!1,R.proxyErrors=!!R.proxyErrors,x?R.end&&E.end():(this.pipes.push(R.proxyErrors?new g(this,E,R):new q(this,E,R)),this[K]?te(()=>this[k]()):this[k]()),E}unpipe(E){let R=this.pipes.find(x=>x.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 x=super.on(E,R);return E==="data"&&!this.pipes.length&&!this.flowing?this[k]():E==="readable"&&this[P]!==0?super.emit("readable"):L(E)&&this[u]?(super.emit(E),this.removeAllListeners(E)):E==="error"&&this[l]&&(this[K]?te(()=>R.call(this,this[l])):R.call(this,this[l])),x}get emittedEnd(){return this[u]}[a](){!this[c]&&!this[u]&&!this[D]&&this.buffer.length===0&&this[o]&&(this[c]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[c]=!1)}emit(E,R,...x){if(E!=="error"&&E!=="close"&&E!==D&&this[D])return;if(E==="data")return R?this[K]?te(()=>this[j](R)):this[j](R):!1;if(E==="end")return this[W]();if(E==="close"){if(this[h]=!0,!this[u]&&!this[D])return;let $=super.emit("close");return this.removeAllListeners("close"),$}else if(E==="error"){this[l]=R;let $=super.emit("error",R);return this[a](),$}else if(E==="resume"){let $=super.emit("resume");return this[a](),$}else if(E==="finish"||E==="prefinish"){let $=super.emit(E);return this.removeAllListeners(E),$}let H=super.emit(E,R,...x);return this[a](),H}[j](E){for(let x of this.pipes)x.dest.write(E)===!1&&this.pause();let R=super.emit("data",E);return this[a](),R}[W](){this[u]||(this[u]=!0,this.readable=!1,this[K]?te(()=>this[N]()):this[N]())}[N](){if(this[p]){let R=this[p].end();if(R){for(let x of this.pipes)x.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[S]||(E.dataLength=0);let R=this.promise();return this.on("data",x=>{E.push(x),this[S]||(E.dataLength+=x.length)}),R.then(()=>E)}concat(){return this[S]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(E=>this[S]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?E.join(""):Buffer.concat(E,E.dataLength))}promise(){return new Promise((E,R)=>{this.on(D,()=>R(new Error("stream destroyed"))),this.on("error",x=>R(x)),this.on("end",()=>E())})}[U](){return{next:()=>{let E=this.read();if(E!==null)return Promise.resolve({done:!1,value:E});if(this[o])return Promise.resolve({done:!0});let R=null,x=null,H=he=>{this.removeListener("data",$),this.removeListener("end",re),x(he)},$=he=>{this.removeListener("error",H),this.removeListener("end",re),this.pause(),R({value:he,done:!!this[o]})},re=()=>{this.removeListener("error",H),this.removeListener("data",$),R({done:!0})},V=()=>H(new Error("stream destroyed"));return new Promise((he,J)=>{x=J,R=he,this.once(D,V),this.once("error",H),this.once("end",re),this.once("data",$)})}}}[I](){return{next:()=>{let E=this.read();return{value:E,done:E===null}}}}destroy(E){return this[D]?(E?this.emit("error",E):this.emit(D),this):(this[D]=!0,this.buffer.length=0,this[P]=0,typeof this.close=="function"&&!this[h]&&this.close(),E?this.emit("error",E):this.emit(D),this)}static isStream(E){return!!E&&(E instanceof xR||E instanceof n||E instanceof i&&(typeof E.pipe=="function"||typeof E.write=="function"&&typeof E.end=="function"))}}}),DR=de(t=>{"use strict";Q();var e=ye("assert"),r=ye("buffer").Buffer,i=ye("zlib"),n=t.constants=IH(),s=SR(),o=r.concat,a=Symbol("_superWrite"),u=class extends Error{constructor(L){super("zlib: "+L.message),this.code=L.code,this.errno=L.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+L.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},c=Symbol("opts"),l=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),f=Symbol("fullFlushFlag"),d=Symbol("handle"),m=Symbol("onError"),y=Symbol("sawError"),p=Symbol("level"),v=Symbol("strategy"),C=Symbol("ended"),k=Symbol("_defaultFullFlush"),P=class extends s{constructor(L,z){if(!L||typeof L!="object")throw new TypeError("invalid options for ZlibBase constructor");super(L),this[y]=!1,this[C]=!1,this[c]=L,this[l]=L.flush,this[h]=L.finishFlush;try{this[d]=new i[z](L)}catch(Z){throw new u(Z)}this[m]=Z=>{this[y]||(this[y]=!0,this.close(),this.emit("error",Z))},this[d].on("error",Z=>this[m](new u(Z))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[y])return e(this[d],"zlib binding closed"),this[d].reset()}flush(L){this.ended||(typeof L!="number"&&(L=this[f]),this.write(Object.assign(r.alloc(0),{[l]:L})))}end(L,z,Z){return L&&this.write(L,z),this.flush(this[h]),this[C]=!0,super.end(null,null,Z)}get ended(){return this[C]}write(L,z,Z){if(typeof z=="function"&&(Z=z,z="utf8"),typeof L=="string"&&(L=r.from(L,z)),this[y])return;e(this[d],"zlib binding closed");let q=this[d]._handle,g=q.close;q.close=()=>{};let _=this[d].close;this[d].close=()=>{},r.concat=x=>x;let E;try{let x=typeof L[l]=="number"?L[l]:this[l];E=this[d]._processChunk(L,x),r.concat=o}catch(x){r.concat=o,this[m](new u(x))}finally{this[d]&&(this[d]._handle=q,q.close=g,this[d].close=_,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",x=>this[m](new u(x)));let R;if(E)if(Array.isArray(E)&&E.length>0){R=this[a](r.from(E[0]));for(let x=1;x<E.length;x++)R=this[a](E[x])}else R=this[a](r.from(E));return Z&&Z(),R}[a](L){return super.write(L)}},F=class extends P{constructor(L,z){L=L||{},L.flush=L.flush||n.Z_NO_FLUSH,L.finishFlush=L.finishFlush||n.Z_FINISH,super(L,z),this[f]=n.Z_FULL_FLUSH,this[p]=L.level,this[v]=L.strategy}params(L,z){if(!this[y]){if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[p]!==L||this[v]!==z){this.flush(n.Z_SYNC_FLUSH),e(this[d],"zlib binding closed");let Z=this[d].flush;this[d].flush=(q,g)=>{this.flush(q),g()};try{this[d].params(L,z)}finally{this[d].flush=Z}this[d]&&(this[p]=L,this[v]=z)}}}},M=class extends F{constructor(L){super(L,"Deflate")}},S=class extends F{constructor(L){super(L,"Inflate")}},D=Symbol("_portable"),j=class extends F{constructor(L){super(L,"Gzip"),this[D]=L&&!!L.portable}[a](L){return this[D]?(this[D]=!1,L[9]=255,super[a](L)):super[a](L)}},W=class extends F{constructor(L){super(L,"Gunzip")}},N=class extends F{constructor(L){super(L,"DeflateRaw")}},K=class extends F{constructor(L){super(L,"InflateRaw")}},te=class extends F{constructor(L){super(L,"Unzip")}},ne=class extends P{constructor(L,z){L=L||{},L.flush=L.flush||n.BROTLI_OPERATION_PROCESS,L.finishFlush=L.finishFlush||n.BROTLI_OPERATION_FINISH,super(L,z),this[f]=n.BROTLI_OPERATION_FLUSH}},U=class extends ne{constructor(L){super(L,"BrotliCompress")}},I=class extends ne{constructor(L){super(L,"BrotliDecompress")}};t.Deflate=M,t.Inflate=S,t.Gzip=j,t.Gunzip=W,t.DeflateRaw=N,t.InflateRaw=K,t.Unzip=te,typeof i.BrotliCompress=="function"?(t.BrotliCompress=U,t.BrotliDecompress=I):t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),da=de((t,e)=>{Q();var r=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;e.exports=r!=="win32"?i=>i:i=>i&&i.replace(/\\/g,"/")}),Qy=de((t,e)=>{"use strict";Q();var r=Xy(),i=da(),n=Symbol("slurp");e.exports=class extends r{constructor(s,o,a){switch(super(),this.pause(),this.extended=o,this.globalExtended=a,this.header=s,this.startBlockSize=512*Math.ceil(s.size/512),this.blockRemain=this.startBlockSize,this.remain=s.size,this.type=s.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=i(s.path),this.mode=s.mode,this.mode&&(this.mode=this.mode&4095),this.uid=s.uid,this.gid=s.gid,this.uname=s.uname,this.gname=s.gname,this.size=s.size,this.mtime=s.mtime,this.atime=s.atime,this.ctime=s.ctime,this.linkpath=i(s.linkpath),this.uname=s.uname,this.gname=s.gname,o&&this[n](o),a&&this[n](a,!0)}write(s){let o=s.length;if(o>this.blockRemain)throw new Error("writing more to entry than is appropriate");let a=this.remain,u=this.blockRemain;return this.remain=Math.max(0,a-o),this.blockRemain=Math.max(0,u-o),this.ignore?!0:a>=o?super.write(s):super.write(s.slice(0,a))}[n](s,o){for(let a in s)s[a]!==null&&s[a]!==void 0&&!(o&&a==="path")&&(this[a]=a==="path"||a==="linkpath"?i(s[a]):s[a])}}}),AR=de(t=>{"use strict";Q(),t.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),t.code=new Map(Array.from(t.name).map(e=>[e[1],e[0]]))}),LH=de((t,e)=>{"use strict";Q();var r=(l,h)=>{if(Number.isSafeInteger(l))l<0?n(l,h):i(l,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},i=(l,h)=>{h[0]=128;for(var f=h.length;f>1;f--)h[f-1]=l&255,l=Math.floor(l/256)},n=(l,h)=>{h[0]=255;var f=!1;l=l*-1;for(var d=h.length;d>1;d--){var m=l&255;l=Math.floor(l/256),f?h[d-1]=u(m):m===0?h[d-1]=0:(f=!0,h[d-1]=c(m))}},s=l=>{let h=l[0],f=h===128?a(l.slice(1,l.length)):h===255?o(l):null;if(f===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(f))throw Error("parsed number outside of javascript safe integer range");return f},o=l=>{for(var h=l.length,f=0,d=!1,m=h-1;m>-1;m--){var y=l[m],p;d?p=u(y):y===0?p=y:(d=!0,p=c(y)),p!==0&&(f-=p*Math.pow(256,h-m-1))}return f},a=l=>{for(var h=l.length,f=0,d=h-1;d>-1;d--){var m=l[d];m!==0&&(f+=m*Math.pow(256,h-d-1))}return f},u=l=>(255^l)&255,c=l=>(255^l)+1&255;e.exports={encode:r,parse:s}}),pa=de((t,e)=>{"use strict";Q();var r=AR(),i=ye("path").posix,n=LH(),s=Symbol("slurp"),o=Symbol("type"),a=class{constructor(S,D,j,W){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[o]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(S)?this.decode(S,D||0,j,W):S&&this.set(S)}decode(S,D,j,W){if(D||(D=0),!S||!(S.length>=D+512))throw new Error("need 512 bytes for header");if(this.path=c(S,D,100),this.mode=f(S,D+100,8),this.uid=f(S,D+108,8),this.gid=f(S,D+116,8),this.size=f(S,D+124,12),this.mtime=l(S,D+136,12),this.cksum=f(S,D+148,12),this[s](j),this[s](W,!0),this[o]=c(S,D+156,1),this[o]===""&&(this[o]="0"),this[o]==="0"&&this.path.slice(-1)==="/"&&(this[o]="5"),this[o]==="5"&&(this.size=0),this.linkpath=c(S,D+157,100),S.slice(D+257,D+265).toString()==="ustar\x0000")if(this.uname=c(S,D+265,32),this.gname=c(S,D+297,32),this.devmaj=f(S,D+329,8),this.devmin=f(S,D+337,8),S[D+475]!==0){let K=c(S,D+345,155);this.path=K+"/"+this.path}else{let K=c(S,D+345,130);K&&(this.path=K+"/"+this.path),this.atime=l(S,D+476,12),this.ctime=l(S,D+488,12)}let N=8*32;for(let K=D;K<D+148;K++)N+=S[K];for(let K=D+156;K<D+512;K++)N+=S[K];this.cksumValid=N===this.cksum,this.cksum===null&&N===8*32&&(this.nullBlock=!0)}[s](S,D){for(let j in S)S[j]!==null&&S[j]!==void 0&&!(D&&j==="path")&&(this[j]=S[j])}encode(S,D){if(S||(S=this.block=Buffer.alloc(512),D=0),D||(D=0),!(S.length>=D+512))throw new Error("need 512 bytes for header");let j=this.ctime||this.atime?130:155,W=u(this.path||"",j),N=W[0],K=W[1];this.needPax=W[2],this.needPax=M(S,D,100,N)||this.needPax,this.needPax=p(S,D+100,8,this.mode)||this.needPax,this.needPax=p(S,D+108,8,this.uid)||this.needPax,this.needPax=p(S,D+116,8,this.gid)||this.needPax,this.needPax=p(S,D+124,12,this.size)||this.needPax,this.needPax=P(S,D+136,12,this.mtime)||this.needPax,S[D+156]=this[o].charCodeAt(0),this.needPax=M(S,D+157,100,this.linkpath)||this.needPax,S.write("ustar\x0000",D+257,8),this.needPax=M(S,D+265,32,this.uname)||this.needPax,this.needPax=M(S,D+297,32,this.gname)||this.needPax,this.needPax=p(S,D+329,8,this.devmaj)||this.needPax,this.needPax=p(S,D+337,8,this.devmin)||this.needPax,this.needPax=M(S,D+345,j,K)||this.needPax,S[D+475]!==0?this.needPax=M(S,D+345,155,K)||this.needPax:(this.needPax=M(S,D+345,130,K)||this.needPax,this.needPax=P(S,D+476,12,this.atime)||this.needPax,this.needPax=P(S,D+488,12,this.ctime)||this.needPax);let te=8*32;for(let ne=D;ne<D+148;ne++)te+=S[ne];for(let ne=D+156;ne<D+512;ne++)te+=S[ne];return this.cksum=te,p(S,D+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(S){for(let D in S)S[D]!==null&&S[D]!==void 0&&(this[D]=S[D])}get type(){return r.name.get(this[o])||this[o]}get typeKey(){return this[o]}set type(S){r.code.has(S)?this[o]=r.code.get(S):this[o]=S}},u=(S,D)=>{let j=S,W="",N,K=i.parse(S).root||".";if(Buffer.byteLength(j)<100)N=[j,W,!1];else{W=i.dirname(j),j=i.basename(j);do Buffer.byteLength(j)<=100&&Buffer.byteLength(W)<=D?N=[j,W,!1]:Buffer.byteLength(j)>100&&Buffer.byteLength(W)<=D?N=[j.slice(0,100-1),W,!0]:(j=i.join(i.basename(W),j),W=i.dirname(W));while(W!==K&&!N);N||(N=[S.slice(0,100-1),"",!0])}return N},c=(S,D,j)=>S.slice(D,D+j).toString("utf8").replace(/\0.*/,""),l=(S,D,j)=>h(f(S,D,j)),h=S=>S===null?null:new Date(S*1e3),f=(S,D,j)=>S[D]&128?n.parse(S.slice(D,D+j)):m(S,D,j),d=S=>isNaN(S)?null:S,m=(S,D,j)=>d(parseInt(S.slice(D,D+j).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},p=(S,D,j,W)=>W===null?!1:W>y[j]||W<0?(n.encode(W,S.slice(D,D+j)),!0):(v(S,D,j,W),!1),v=(S,D,j,W)=>S.write(C(W,j),D,j,"ascii"),C=(S,D)=>k(Math.floor(S).toString(8),D),k=(S,D)=>(S.length===D-1?S:new Array(D-S.length-1).join("0")+S+" ")+"\0",P=(S,D,j,W)=>W===null?!1:p(S,D,j,W.getTime()/1e3),F=new Array(156).join("\0"),M=(S,D,j,W)=>W===null?!1:(S.write(W+F,D,j,"utf8"),W.length!==Buffer.byteLength(W)||W.length>j);e.exports=a}),e0=de((t,e)=>{"use strict";Q();var r=pa(),i=ye("path"),n=class{constructor(u,c){this.atime=u.atime||null,this.charset=u.charset||null,this.comment=u.comment||null,this.ctime=u.ctime||null,this.gid=u.gid||null,this.gname=u.gname||null,this.linkpath=u.linkpath||null,this.mtime=u.mtime||null,this.path=u.path||null,this.size=u.size||null,this.uid=u.uid||null,this.uname=u.uname||null,this.dev=u.dev||null,this.ino=u.ino||null,this.nlink=u.nlink||null,this.global=c||!1}encode(){let u=this.encodeBody();if(u==="")return null;let c=Buffer.byteLength(u),l=512*Math.ceil(1+c/512),h=Buffer.allocUnsafe(l);for(let f=0;f<512;f++)h[f]=0;new r({path:("PaxHeader/"+i.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:c,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(h),h.write(u,512,c,"utf8");for(let f=c+512;f<h.length;f++)h[f]=0;return h}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(u){if(this[u]===null||this[u]===void 0)return"";let c=this[u]instanceof Date?this[u].getTime()/1e3:this[u],l=" "+(u==="dev"||u==="ino"||u==="nlink"?"SCHILY.":"")+u+"="+c+`
|
55
55
|
`,h=Buffer.byteLength(l),f=Math.floor(Math.log(h)/Math.log(10))+1;return h+f>=Math.pow(10,f)&&(f+=1),f+h+l}};n.parse=(u,c,l)=>new n(s(o(u),c),l);var s=(u,c)=>c?Object.keys(u).reduce((l,h)=>(l[h]=u[h],l),c):u,o=u=>u.replace(/\n$/,"").split(`
|
56
|
-
`).reduce(a,Object.create(null)),a=(u,c)=>{let l=parseInt(c,10);if(l!==Buffer.byteLength(c)+1)return u;c=c.slice((l+" ").length);let h=c.split("="),f=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!f)return u;let d=h.join("=");return u[f]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(f)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,u};e.exports=n}),ya=de((t,e)=>{Q(),e.exports=r=>{let i=r.length-1,n=-1;for(;i>-1&&r.charAt(i)==="/";)n=i,i--;return n===-1?r:r.slice(0,n)}}),t0=de((t,e)=>{"use strict";Q(),e.exports=r=>class extends r{warn(i,n,s={}){this.file&&(s.file=this.file),this.cwd&&(s.cwd=this.cwd),s.code=n instanceof Error&&n.code||i,s.tarCode=i,!this.strict&&s.recoverable!==!1?(n instanceof Error&&(s=Object.assign(n,s),n=n.message),this.emit("warn",s.tarCode,n,s)):n instanceof Error?this.emit("error",Object.assign(n,s)):this.emit("error",Object.assign(new Error(`${i}: ${n}`),s))}}}),DR=de((t,e)=>{"use strict";Q();var r=["|","<",">","?",":"],i=r.map(o=>String.fromCharCode(61440+o.charCodeAt(0))),n=new Map(r.map((o,a)=>[o,i[a]])),s=new Map(i.map((o,a)=>[o,r[a]]));e.exports={encode:o=>r.reduce((a,u)=>a.split(u).join(n.get(u)),o),decode:o=>i.reduce((a,u)=>a.split(u).join(s.get(u)),o)}}),AR=de((t,e)=>{Q();var{isAbsolute:r,parse:i}=ye("path").win32;e.exports=n=>{let s="",o=i(n);for(;r(n)||o.root;){let a=n.charAt(0)==="/"&&n.slice(0,4)!=="//?/"?"/":o.root;n=n.slice(a.length),s+=a,o=i(n)}return[s,n]}}),LH=de((t,e)=>{"use strict";Q(),e.exports=(r,i,n)=>(r&=4095,n&&(r=(r|384)&-19),i&&(r&256&&(r|=64),r&32&&(r|=8),r&4&&(r|=1)),r)}),CR=de((t,e)=>{"use strict";Q();var r=Xy(),i=e0(),n=ma(),s=ye("fs"),o=ye("path"),a=pa(),u=ya(),c=(_,E)=>E?(_=a(_).replace(/^\.(\/|$)/,""),u(E)+"/"+_):a(_),l=16*1024*1024,h=Symbol("process"),f=Symbol("file"),d=Symbol("directory"),m=Symbol("symlink"),y=Symbol("hardlink"),p=Symbol("header"),v=Symbol("read"),C=Symbol("lstat"),k=Symbol("onlstat"),P=Symbol("onread"),F=Symbol("onreadlink"),M=Symbol("openfile"),S=Symbol("onopenfile"),D=Symbol("close"),j=Symbol("mode"),W=Symbol("awaitDrain"),N=Symbol("ondrain"),K=Symbol("prefix"),te=Symbol("hadError"),ne=t0(),U=DR(),I=AR(),L=LH(),z=ne(class extends r{constructor(_,E){if(E=E||{},super(E),typeof _!="string")throw new TypeError("path is required");this.path=a(_),this.portable=!!E.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=E.maxReadSize||l,this.linkCache=E.linkCache||new Map,this.statCache=E.statCache||new Map,this.preservePaths=!!E.preservePaths,this.cwd=a(E.cwd||process.cwd()),this.strict=!!E.strict,this.noPax=!!E.noPax,this.noMtime=!!E.noMtime,this.mtime=E.mtime||null,this.prefix=E.prefix?a(E.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 E.onwarn=="function"&&this.on("warn",E.onwarn);let R=!1;if(!this.preservePaths){let[x,H]=I(this.path);x&&(this.path=H,R=x)}this.win32=!!E.win32||process.platform==="win32",this.win32&&(this.path=U.decode(this.path.replace(/\\/g,"/")),_=_.replace(/\\/g,"/")),this.absolute=a(E.absolute||o.resolve(this.cwd,_)),this.path===""&&(this.path="./"),R&&this.warn("TAR_ENTRY_INFO",`stripping ${R} from absolute path`,{entry:this,path:R+this.path}),this.statCache.has(this.absolute)?this[k](this.statCache.get(this.absolute)):this[C]()}emit(_,...E){return _==="error"&&(this[te]=!0),super.emit(_,...E)}[C](){s.lstat(this.absolute,(_,E)=>{if(_)return this.emit("error",_);this[k](E)})}[k](_){this.statCache.set(this.absolute,_),this.stat=_,_.isFile()||(_.size=0),this.type=g(_),this.emit("stat",_),this[h]()}[h](){switch(this.type){case"File":return this[f]();case"Directory":return this[d]();case"SymbolicLink":return this[m]();default:return this.end()}}[j](_){return L(_,this.type==="Directory",this.portable)}[K](_){return c(_,this.prefix)}[p](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new n({path:this[K](this.path),linkpath:this.type==="Link"?this[K](this.linkpath):this.linkpath,mode:this[j](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 i({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[K](this.path),linkpath:this.type==="Link"?this[K](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[d](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[p](),this.end()}[m](){s.readlink(this.absolute,(_,E)=>{if(_)return this.emit("error",_);this[F](E)})}[F](_){this.linkpath=a(_),this[p](),this.end()}[y](_){this.type="Link",this.linkpath=a(o.relative(this.cwd,_)),this.stat.size=0,this[p](),this.end()}[f](){if(this.stat.nlink>1){let _=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(_)){let E=this.linkCache.get(_);if(E.indexOf(this.cwd)===0)return this[y](E)}this.linkCache.set(_,this.absolute)}if(this[p](),this.stat.size===0)return this.end();this[M]()}[M](){s.open(this.absolute,"r",(_,E)=>{if(_)return this.emit("error",_);this[S](E)})}[S](_){if(this.fd=_,this[te])return this[D]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let E=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(E),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[v]()}[v](){let{fd:_,buf:E,offset:R,length:x,pos:H}=this;s.read(_,E,R,x,H,($,re)=>{if($)return this[D](()=>this.emit("error",$));this[P](re)})}[D](_){s.close(this.fd,_)}[P](_){if(_<=0&&this.remain>0){let R=new Error("encountered unexpected EOF");return R.path=this.absolute,R.syscall="read",R.code="EOF",this[D](()=>this.emit("error",R))}if(_>this.remain){let R=new Error("did not encounter expected EOF");return R.path=this.absolute,R.syscall="read",R.code="EOF",this[D](()=>this.emit("error",R))}if(_===this.remain)for(let R=_;R<this.length&&_<this.blockRemain;R++)this.buf[R+this.offset]=0,_++,this.remain++;let E=this.offset===0&&_===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+_);this.write(E)?this[N]():this[W](()=>this[N]())}[W](_){this.once("drain",_)}write(_){if(this.blockRemain<_.length){let E=new Error("writing more data than expected");return E.path=this.absolute,this.emit("error",E)}return this.remain-=_.length,this.blockRemain-=_.length,this.pos+=_.length,this.offset+=_.length,super.write(_)}[N](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[D](_=>_?this.emit("error",_):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[v]()}}),Z=class extends z{[C](){this[k](s.lstatSync(this.absolute))}[m](){this[F](s.readlinkSync(this.absolute))}[M](){this[S](s.openSync(this.absolute,"r"))}[v](){let _=!0;try{let{fd:E,buf:R,offset:x,length:H,pos:$}=this,re=s.readSync(E,R,x,H,$);this[P](re),_=!1}finally{if(_)try{this[D](()=>{})}catch{}}}[W](_){_()}[D](_){s.closeSync(this.fd),_()}},q=ne(class extends r{constructor(_,E){E=E||{},super(E),this.preservePaths=!!E.preservePaths,this.portable=!!E.portable,this.strict=!!E.strict,this.noPax=!!E.noPax,this.noMtime=!!E.noMtime,this.readEntry=_,this.type=_.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=E.prefix||null,this.path=a(_.path),this.mode=this[j](_.mode),this.uid=this.portable?null:_.uid,this.gid=this.portable?null:_.gid,this.uname=this.portable?null:_.uname,this.gname=this.portable?null:_.gname,this.size=_.size,this.mtime=this.noMtime?null:E.mtime||_.mtime,this.atime=this.portable?null:_.atime,this.ctime=this.portable?null:_.ctime,this.linkpath=a(_.linkpath),typeof E.onwarn=="function"&&this.on("warn",E.onwarn);let R=!1;if(!this.preservePaths){let[x,H]=I(this.path);x&&(this.path=H,R=x)}this.remain=_.size,this.blockRemain=_.startBlockSize,this.header=new n({path:this[K](this.path),linkpath:this.type==="Link"?this[K](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}),R&&this.warn("TAR_ENTRY_INFO",`stripping ${R} from absolute path`,{entry:this,path:R+this.path}),this.header.encode()&&!this.noPax&&super.write(new i({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[K](this.path),linkpath:this.type==="Link"?this[K](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),_.pipe(this)}[K](_){return c(_,this.prefix)}[j](_){return L(_,this.type==="Directory",this.portable)}write(_){let E=_.length;if(E>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=E,super.write(_)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});z.Sync=Z,z.Tar=q;var g=_=>_.isFile()?"File":_.isDirectory()?"Directory":_.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=z}),BH=de((t,e)=>{"use strict";Q(),e.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let i=this.head;i;i=i.next)yield i.value}}}),RR=de((t,e)=>{"use strict";Q(),e.exports=r,r.Node=o,r.create=r;function r(a){var u=this;if(u instanceof r||(u=new r),u.tail=null,u.head=null,u.length=0,a&&typeof a.forEach=="function")a.forEach(function(h){u.push(h)});else if(arguments.length>0)for(var c=0,l=arguments.length;c<l;c++)u.push(arguments[c]);return u}r.prototype.removeNode=function(a){if(a.list!==this)throw new Error("removing node which does not belong to this list");var u=a.next,c=a.prev;return u&&(u.prev=c),c&&(c.next=u),a===this.head&&(this.head=u),a===this.tail&&(this.tail=c),a.list.length--,a.next=null,a.prev=null,a.list=null,u},r.prototype.unshiftNode=function(a){if(a!==this.head){a.list&&a.list.removeNode(a);var u=this.head;a.list=this,a.next=u,u&&(u.prev=a),this.head=a,this.tail||(this.tail=a),this.length++}},r.prototype.pushNode=function(a){if(a!==this.tail){a.list&&a.list.removeNode(a);var u=this.tail;a.list=this,a.prev=u,u&&(u.next=a),this.tail=a,this.head||(this.head=a),this.length++}},r.prototype.push=function(){for(var a=0,u=arguments.length;a<u;a++)n(this,arguments[a]);return this.length},r.prototype.unshift=function(){for(var a=0,u=arguments.length;a<u;a++)s(this,arguments[a]);return this.length},r.prototype.pop=function(){if(this.tail){var a=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,a}},r.prototype.shift=function(){if(this.head){var a=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,a}},r.prototype.forEach=function(a,u){u=u||this;for(var c=this.head,l=0;c!==null;l++)a.call(u,c.value,l,this),c=c.next},r.prototype.forEachReverse=function(a,u){u=u||this;for(var c=this.tail,l=this.length-1;c!==null;l--)a.call(u,c.value,l,this),c=c.prev},r.prototype.get=function(a){for(var u=0,c=this.head;c!==null&&u<a;u++)c=c.next;if(u===a&&c!==null)return c.value},r.prototype.getReverse=function(a){for(var u=0,c=this.tail;c!==null&&u<a;u++)c=c.prev;if(u===a&&c!==null)return c.value},r.prototype.map=function(a,u){u=u||this;for(var c=new r,l=this.head;l!==null;)c.push(a.call(u,l.value,this)),l=l.next;return c},r.prototype.mapReverse=function(a,u){u=u||this;for(var c=new r,l=this.tail;l!==null;)c.push(a.call(u,l.value,this)),l=l.prev;return c},r.prototype.reduce=function(a,u){var c,l=this.head;if(arguments.length>1)c=u;else if(this.head)l=this.head.next,c=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=0;l!==null;h++)c=a(c,l.value,h),l=l.next;return c},r.prototype.reduceReverse=function(a,u){var c,l=this.tail;if(arguments.length>1)c=u;else if(this.tail)l=this.tail.prev,c=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=this.length-1;l!==null;h--)c=a(c,l.value,h),l=l.prev;return c},r.prototype.toArray=function(){for(var a=new Array(this.length),u=0,c=this.head;c!==null;u++)a[u]=c.value,c=c.next;return a},r.prototype.toArrayReverse=function(){for(var a=new Array(this.length),u=0,c=this.tail;c!==null;u++)a[u]=c.value,c=c.prev;return a},r.prototype.slice=function(a,u){u=u||this.length,u<0&&(u+=this.length),a=a||0,a<0&&(a+=this.length);var c=new r;if(u<a||u<0)return c;a<0&&(a=0),u>this.length&&(u=this.length);for(var l=0,h=this.head;h!==null&&l<a;l++)h=h.next;for(;h!==null&&l<u;l++,h=h.next)c.push(h.value);return c},r.prototype.sliceReverse=function(a,u){u=u||this.length,u<0&&(u+=this.length),a=a||0,a<0&&(a+=this.length);var c=new r;if(u<a||u<0)return c;a<0&&(a=0),u>this.length&&(u=this.length);for(var l=this.length,h=this.tail;h!==null&&l>u;l--)h=h.prev;for(;h!==null&&l>a;l--,h=h.prev)c.push(h.value);return c},r.prototype.splice=function(a,u,...c){a>this.length&&(a=this.length-1),a<0&&(a=this.length+a);for(var l=0,h=this.head;h!==null&&l<a;l++)h=h.next;for(var f=[],l=0;h&&l<u;l++)f.push(h.value),h=this.removeNode(h);h===null&&(h=this.tail),h!==this.head&&h!==this.tail&&(h=h.prev);for(var l=0;l<c.length;l++)h=i(this,h,c[l]);return f},r.prototype.reverse=function(){for(var a=this.head,u=this.tail,c=a;c!==null;c=c.prev){var l=c.prev;c.prev=c.next,c.next=l}return this.head=u,this.tail=a,this};function i(a,u,c){var l=u===a.head?new o(c,null,u,a):new o(c,u,u.next,a);return l.next===null&&(a.tail=l),l.prev===null&&(a.head=l),a.length++,l}function n(a,u){a.tail=new o(u,a.tail,null,a),a.head||(a.head=a.tail),a.length++}function s(a,u){a.head=new o(u,null,a.head,a),a.tail||(a.tail=a.head),a.length++}function o(a,u,c,l){if(!(this instanceof o))return new o(a,u,c,l);this.list=l,this.value=a,u?(u.next=this,this.prev=u):this.prev=null,c?(c.prev=this,this.next=c):this.next=null}try{BH()(r)}catch{}}),r0=de((t,e)=>{"use strict";Q();var r=class{constructor(g,_){this.path=g||"./",this.absolute=_,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},i=Xy(),n=SR(),s=Qy(),o=CR(),a=o.Sync,u=o.Tar,c=RR(),l=Buffer.alloc(1024),h=Symbol("onStat"),f=Symbol("ended"),d=Symbol("queue"),m=Symbol("current"),y=Symbol("process"),p=Symbol("processing"),v=Symbol("processJob"),C=Symbol("jobs"),k=Symbol("jobDone"),P=Symbol("addFSEntry"),F=Symbol("addTarEntry"),M=Symbol("stat"),S=Symbol("readdir"),D=Symbol("onreaddir"),j=Symbol("pipe"),W=Symbol("entry"),N=Symbol("entryOpt"),K=Symbol("writeEntryClass"),te=Symbol("write"),ne=Symbol("ondrain"),U=ye("fs"),I=ye("path"),L=t0(),z=pa(),Z=L(class extends i{constructor(g){super(g),g=g||Object.create(null),this.opt=g,this.file=g.file||"",this.cwd=g.cwd||process.cwd(),this.maxReadSize=g.maxReadSize,this.preservePaths=!!g.preservePaths,this.strict=!!g.strict,this.noPax=!!g.noPax,this.prefix=z(g.prefix||""),this.linkCache=g.linkCache||new Map,this.statCache=g.statCache||new Map,this.readdirCache=g.readdirCache||new Map,this[K]=o,typeof g.onwarn=="function"&&this.on("warn",g.onwarn),this.portable=!!g.portable,this.zip=null,g.gzip?(typeof g.gzip!="object"&&(g.gzip={}),this.portable&&(g.gzip.portable=!0),this.zip=new n.Gzip(g.gzip),this.zip.on("data",_=>super.write(_)),this.zip.on("end",_=>super.end()),this.zip.on("drain",_=>this[ne]()),this.on("resume",_=>this.zip.resume())):this.on("drain",this[ne]),this.noDirRecurse=!!g.noDirRecurse,this.follow=!!g.follow,this.noMtime=!!g.noMtime,this.mtime=g.mtime||null,this.filter=typeof g.filter=="function"?g.filter:_=>!0,this[d]=new c,this[C]=0,this.jobs=+g.jobs||4,this[p]=!1,this[f]=!1}[te](g){return super.write(g)}add(g){return this.write(g),this}end(g){return g&&this.write(g),this[f]=!0,this[y](),this}write(g){if(this[f])throw new Error("write after end");return g instanceof s?this[F](g):this[P](g),this.flowing}[F](g){let _=z(I.resolve(this.cwd,g.path));if(!this.filter(g.path,g))g.resume();else{let E=new r(g.path,_,!1);E.entry=new u(g,this[N](E)),E.entry.on("end",R=>this[k](E)),this[C]+=1,this[d].push(E)}this[y]()}[P](g){let _=z(I.resolve(this.cwd,g));this[d].push(new r(g,_)),this[y]()}[M](g){g.pending=!0,this[C]+=1;let _=this.follow?"stat":"lstat";U[_](g.absolute,(E,R)=>{g.pending=!1,this[C]-=1,E?this.emit("error",E):this[h](g,R)})}[h](g,_){this.statCache.set(g.absolute,_),g.stat=_,this.filter(g.path,_)||(g.ignore=!0),this[y]()}[S](g){g.pending=!0,this[C]+=1,U.readdir(g.absolute,(_,E)=>{if(g.pending=!1,this[C]-=1,_)return this.emit("error",_);this[D](g,E)})}[D](g,_){this.readdirCache.set(g.absolute,_),g.readdir=_,this[y]()}[y](){if(!this[p]){this[p]=!0;for(let g=this[d].head;g!==null&&this[C]<this.jobs;g=g.next)if(this[v](g.value),g.value.ignore){let _=g.next;this[d].removeNode(g),g.next=_}this[p]=!1,this[f]&&!this[d].length&&this[C]===0&&(this.zip?this.zip.end(l):(super.write(l),super.end()))}}get[m](){return this[d]&&this[d].head&&this[d].head.value}[k](g){this[d].shift(),this[C]-=1,this[y]()}[v](g){if(!g.pending){if(g.entry){g===this[m]&&!g.piped&&this[j](g);return}if(g.stat||(this.statCache.has(g.absolute)?this[h](g,this.statCache.get(g.absolute)):this[M](g)),!!g.stat&&!g.ignore&&!(!this.noDirRecurse&&g.stat.isDirectory()&&!g.readdir&&(this.readdirCache.has(g.absolute)?this[D](g,this.readdirCache.get(g.absolute)):this[S](g),!g.readdir))){if(g.entry=this[W](g),!g.entry){g.ignore=!0;return}g===this[m]&&!g.piped&&this[j](g)}}}[N](g){return{onwarn:(_,E,R)=>this.warn(_,E,R),noPax:this.noPax,cwd:this.cwd,absolute:g.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}}[W](g){this[C]+=1;try{return new this[K](g.path,this[N](g)).on("end",()=>this[k](g)).on("error",_=>this.emit("error",_))}catch(_){this.emit("error",_)}}[ne](){this[m]&&this[m].entry&&this[m].entry.resume()}[j](g){g.piped=!0,g.readdir&&g.readdir.forEach(R=>{let x=g.path,H=x==="./"?"":x.replace(/\/*$/,"/");this[P](H+R)});let _=g.entry,E=this.zip;E?_.on("data",R=>{E.write(R)||_.pause()}):_.on("data",R=>{super.write(R)||_.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),q=class extends Z{constructor(g){super(g),this[K]=a}pause(){}resume(){}[M](g){let _=this.follow?"statSync":"lstatSync";this[h](g,U[_](g.absolute))}[S](g,_){this[D](g,U.readdirSync(g.absolute))}[j](g){let _=g.entry,E=this.zip;g.readdir&&g.readdir.forEach(R=>{let x=g.path,H=x==="./"?"":x.replace(/\/*$/,"/");this[P](H+R)}),E?_.on("data",R=>{E.write(R)}):_.on("data",R=>{super[te](R)})}};Z.Sync=q,e.exports=Z}),ga=de(t=>{"use strict";Q();var e=vR(),r=ye("events").EventEmitter,i=ye("fs"),n=i.writev;if(!n){let g=process.binding("fs"),_=g.FSReqWrap||g.FSReqCallback;n=(E,R,x,H)=>{let $=(V,he)=>H(V,he,R),re=new _;re.oncomplete=$,g.writeBuffers(E,R,x,re)}}var s=Symbol("_autoClose"),o=Symbol("_close"),a=Symbol("_ended"),u=Symbol("_fd"),c=Symbol("_finished"),l=Symbol("_flags"),h=Symbol("_flush"),f=Symbol("_handleChunk"),d=Symbol("_makeBuf"),m=Symbol("_mode"),y=Symbol("_needDrain"),p=Symbol("_onerror"),v=Symbol("_onopen"),C=Symbol("_onread"),k=Symbol("_onwrite"),P=Symbol("_open"),F=Symbol("_path"),M=Symbol("_pos"),S=Symbol("_queue"),D=Symbol("_read"),j=Symbol("_readSize"),W=Symbol("_reading"),N=Symbol("_remain"),K=Symbol("_size"),te=Symbol("_write"),ne=Symbol("_writing"),U=Symbol("_defaultFlag"),I=Symbol("_errored"),L=class extends e{constructor(g,_){if(_=_||{},super(_),this.readable=!0,this.writable=!1,typeof g!="string")throw new TypeError("path must be a string");this[I]=!1,this[u]=typeof _.fd=="number"?_.fd:null,this[F]=g,this[j]=_.readSize||16*1024*1024,this[W]=!1,this[K]=typeof _.size=="number"?_.size:1/0,this[N]=this[K],this[s]=typeof _.autoClose=="boolean"?_.autoClose:!0,typeof this[u]=="number"?this[D]():this[P]()}get fd(){return this[u]}get path(){return this[F]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[P](){i.open(this[F],"r",(g,_)=>this[v](g,_))}[v](g,_){g?this[p](g):(this[u]=_,this.emit("open",_),this[D]())}[d](){return Buffer.allocUnsafe(Math.min(this[j],this[N]))}[D](){if(!this[W]){this[W]=!0;let g=this[d]();if(g.length===0)return process.nextTick(()=>this[C](null,0,g));i.read(this[u],g,0,g.length,null,(_,E,R)=>this[C](_,E,R))}}[C](g,_,E){this[W]=!1,g?this[p](g):this[f](_,E)&&this[D]()}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,i.close(g,_=>_?this.emit("error",_):this.emit("close"))}}[p](g){this[W]=!0,this[o](),this.emit("error",g)}[f](g,_){let E=!1;return this[N]-=g,g>0&&(E=super.write(g<_.length?_.slice(0,g):_)),(g===0||this[N]<=0)&&(E=!1,this[o](),super.end()),E}emit(g,_){switch(g){case"prefinish":case"finish":break;case"drain":typeof this[u]=="number"&&this[D]();break;case"error":return this[I]?void 0:(this[I]=!0,super.emit(g,_));default:return super.emit(g,_)}}},z=class extends L{[P](){let g=!0;try{this[v](null,i.openSync(this[F],"r")),g=!1}finally{g&&this[o]()}}[D](){let g=!0;try{if(!this[W]){this[W]=!0;do{let _=this[d](),E=_.length===0?0:i.readSync(this[u],_,0,_.length,null);if(!this[f](E,_))break}while(!0);this[W]=!1}g=!1}finally{g&&this[o]()}}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,i.closeSync(g),this.emit("close")}}},Z=class extends r{constructor(g,_){_=_||{},super(_),this.readable=!1,this.writable=!0,this[I]=!1,this[ne]=!1,this[a]=!1,this[y]=!1,this[S]=[],this[F]=g,this[u]=typeof _.fd=="number"?_.fd:null,this[m]=_.mode===void 0?438:_.mode,this[M]=typeof _.start=="number"?_.start:null,this[s]=typeof _.autoClose=="boolean"?_.autoClose:!0;let E=this[M]!==null?"r+":"w";this[U]=_.flags===void 0,this[l]=this[U]?E:_.flags,this[u]===null&&this[P]()}emit(g,_){if(g==="error"){if(this[I])return;this[I]=!0}return super.emit(g,_)}get fd(){return this[u]}get path(){return this[F]}[p](g){this[o](),this[ne]=!0,this.emit("error",g)}[P](){i.open(this[F],this[l],this[m],(g,_)=>this[v](g,_))}[v](g,_){this[U]&&this[l]==="r+"&&g&&g.code==="ENOENT"?(this[l]="w",this[P]()):g?this[p](g):(this[u]=_,this.emit("open",_),this[h]())}end(g,_){return g&&this.write(g,_),this[a]=!0,!this[ne]&&!this[S].length&&typeof this[u]=="number"&&this[k](null,0),this}write(g,_){return typeof g=="string"&&(g=Buffer.from(g,_)),this[a]?(this.emit("error",new Error("write() after end()")),!1):this[u]===null||this[ne]||this[S].length?(this[S].push(g),this[y]=!0,!1):(this[ne]=!0,this[te](g),!0)}[te](g){i.write(this[u],g,0,g.length,this[M],(_,E)=>this[k](_,E))}[k](g,_){g?this[p](g):(this[M]!==null&&(this[M]+=_),this[S].length?this[h]():(this[ne]=!1,this[a]&&!this[c]?(this[c]=!0,this[o](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[h](){if(this[S].length===0)this[a]&&this[k](null,0);else if(this[S].length===1)this[te](this[S].pop());else{let g=this[S];this[S]=[],n(this[u],g,this[M],(_,E)=>this[k](_,E))}}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,i.close(g,_=>_?this.emit("error",_):this.emit("close"))}}},q=class extends Z{[P](){let g;if(this[U]&&this[l]==="r+")try{g=i.openSync(this[F],this[l],this[m])}catch(_){if(_.code==="ENOENT")return this[l]="w",this[P]();throw _}else g=i.openSync(this[F],this[l],this[m]);this[v](null,g)}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,i.closeSync(g),this.emit("close")}}[te](g){let _=!0;try{this[k](null,i.writeSync(this[u],g,0,g.length,this[M])),_=!1}finally{if(_)try{this[o]()}catch{}}}};t.ReadStream=L,t.ReadStreamSync=z,t.WriteStream=Z,t.WriteStreamSync=q}),i0=de((t,e)=>{"use strict";Q();var r=t0(),i=ma(),n=ye("events"),s=RR(),o=1024*1024,a=Qy(),u=e0(),c=SR(),{nextTick:l}=ye("process"),h=Buffer.from([31,139]),f=Symbol("state"),d=Symbol("writeEntry"),m=Symbol("readEntry"),y=Symbol("nextEntry"),p=Symbol("processEntry"),v=Symbol("extendedHeader"),C=Symbol("globalExtendedHeader"),k=Symbol("meta"),P=Symbol("emitMeta"),F=Symbol("buffer"),M=Symbol("queue"),S=Symbol("ended"),D=Symbol("emittedEnd"),j=Symbol("emit"),W=Symbol("unzip"),N=Symbol("consumeChunk"),K=Symbol("consumeChunkSub"),te=Symbol("consumeBody"),ne=Symbol("consumeMeta"),U=Symbol("consumeHeader"),I=Symbol("consuming"),L=Symbol("bufferConcat"),z=Symbol("maybeEnd"),Z=Symbol("writing"),q=Symbol("aborted"),g=Symbol("onDone"),_=Symbol("sawValidEntry"),E=Symbol("sawNullBlock"),R=Symbol("sawEOF"),x=Symbol("closeStream"),H=$=>!0;e.exports=r(class extends n{constructor($){$=$||{},super($),this.file=$.file||"",this[_]=null,this.on(g,re=>{(this[f]==="begin"||this[_]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),$.ondone?this.on(g,$.ondone):this.on(g,re=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!$.strict,this.maxMetaEntrySize=$.maxMetaEntrySize||o,this.filter=typeof $.filter=="function"?$.filter:H,this.writable=!0,this.readable=!1,this[M]=new s,this[F]=null,this[m]=null,this[d]=null,this[f]="begin",this[k]="",this[v]=null,this[C]=null,this[S]=!1,this[W]=null,this[q]=!1,this[E]=!1,this[R]=!1,this.on("end",()=>this[x]()),typeof $.onwarn=="function"&&this.on("warn",$.onwarn),typeof $.onentry=="function"&&this.on("entry",$.onentry)}[U]($,re){this[_]===null&&(this[_]=!1);let V;try{V=new i($,re,this[v],this[C])}catch(he){return this.warn("TAR_ENTRY_INVALID",he)}if(V.nullBlock)this[E]?(this[R]=!0,this[f]==="begin"&&(this[f]="header"),this[j]("eof")):(this[E]=!0,this[j]("nullBlock"));else if(this[E]=!1,!V.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:V});else if(!V.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:V});else{let he=V.type;if(/^(Symbolic)?Link$/.test(he)&&!V.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:V});else if(!/^(Symbolic)?Link$/.test(he)&&V.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:V});else{let J=this[d]=new a(V,this[v],this[C]);if(!this[_])if(J.remain){let w=()=>{J.invalid||(this[_]=!0)};J.on("end",w)}else this[_]=!0;J.meta?J.size>this.maxMetaEntrySize?(J.ignore=!0,this[j]("ignoredEntry",J),this[f]="ignore",J.resume()):J.size>0&&(this[k]="",J.on("data",w=>this[k]+=w),this[f]="meta"):(this[v]=null,J.ignore=J.ignore||!this.filter(J.path,J),J.ignore?(this[j]("ignoredEntry",J),this[f]=J.remain?"ignore":"header",J.resume()):(J.remain?this[f]="body":(this[f]="header",J.end()),this[m]?this[M].push(J):(this[M].push(J),this[y]())))}}}[x](){l(()=>this.emit("close"))}[p]($){let re=!0;return $?Array.isArray($)?this.emit.apply(this,$):(this[m]=$,this.emit("entry",$),$.emittedEnd||($.on("end",V=>this[y]()),re=!1)):(this[m]=null,re=!1),re}[y](){do;while(this[p](this[M].shift()));if(!this[M].length){let $=this[m];!$||$.flowing||$.size===$.remain?this[Z]||this.emit("drain"):$.once("drain",re=>this.emit("drain"))}}[te]($,re){let V=this[d],he=V.blockRemain,J=he>=$.length&&re===0?$:$.slice(re,re+he);return V.write(J),V.blockRemain||(this[f]="header",this[d]=null,V.end()),J.length}[ne]($,re){let V=this[d],he=this[te]($,re);return this[d]||this[P](V),he}[j]($,re,V){!this[M].length&&!this[m]?this.emit($,re,V):this[M].push([$,re,V])}[P]($){switch(this[j]("meta",this[k]),$.type){case"ExtendedHeader":case"OldExtendedHeader":this[v]=u.parse(this[k],this[v],!1);break;case"GlobalExtendedHeader":this[C]=u.parse(this[k],this[C],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[v]=this[v]||Object.create(null),this[v].path=this[k].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[v]=this[v]||Object.create(null),this[v].linkpath=this[k].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+$.type)}}abort($){this[q]=!0,this.emit("abort",$),this.warn("TAR_ABORT",$,{recoverable:!1})}write($){if(this[q])return;if(this[W]===null&&$){if(this[F]&&($=Buffer.concat([this[F],$]),this[F]=null),$.length<h.length)return this[F]=$,!0;for(let V=0;this[W]===null&&V<h.length;V++)$[V]!==h[V]&&(this[W]=!1);if(this[W]===null){let V=this[S];this[S]=!1,this[W]=new c.Unzip,this[W].on("data",J=>this[N](J)),this[W].on("error",J=>this.abort(J)),this[W].on("end",J=>{this[S]=!0,this[N]()}),this[Z]=!0;let he=this[W][V?"end":"write"]($);return this[Z]=!1,he}}this[Z]=!0,this[W]?this[W].write($):this[N]($),this[Z]=!1;let re=this[M].length?!1:this[m]?this[m].flowing:!0;return!re&&!this[M].length&&this[m].once("drain",V=>this.emit("drain")),re}[L]($){$&&!this[q]&&(this[F]=this[F]?Buffer.concat([this[F],$]):$)}[z](){if(this[S]&&!this[D]&&!this[q]&&!this[I]){this[D]=!0;let $=this[d];if($&&$.blockRemain){let re=this[F]?this[F].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${$.blockRemain} more bytes, only ${re} available)`,{entry:$}),this[F]&&$.write(this[F]),$.end()}this[j](g)}}[N]($){if(this[I])this[L]($);else if(!$&&!this[F])this[z]();else{if(this[I]=!0,this[F]){this[L]($);let re=this[F];this[F]=null,this[K](re)}else this[K]($);for(;this[F]&&this[F].length>=512&&!this[q]&&!this[R];){let re=this[F];this[F]=null,this[K](re)}this[I]=!1}(!this[F]||this[S])&&this[z]()}[K]($){let re=0,V=$.length;for(;re+512<=V&&!this[q]&&!this[R];)switch(this[f]){case"begin":case"header":this[U]($,re),re+=512;break;case"ignore":case"body":re+=this[te]($,re);break;case"meta":re+=this[ne]($,re);break;default:throw new Error("invalid state: "+this[f])}re<V&&(this[F]?this[F]=Buffer.concat([$.slice(re),this[F]]):this[F]=$.slice(re))}end($){this[q]||(this[W]?this[W].end($):(this[S]=!0,this.write($)))}})}),n0=de((t,e)=>{"use strict";Q();var r=da(),i=i0(),n=ye("fs"),s=ga(),o=ye("path"),a=ya();e.exports=(d,m,y)=>{typeof d=="function"?(y=d,m=null,d={}):Array.isArray(d)&&(m=d,d={}),typeof m=="function"&&(y=m,m=null),m?m=Array.from(m):m=[];let p=r(d);if(p.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!p.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return m.length&&c(p,m),p.noResume||u(p),p.file&&p.sync?l(p):p.file?h(p,y):f(p)};var u=d=>{let m=d.onentry;d.onentry=m?y=>{m(y),y.resume()}:y=>y.resume()},c=(d,m)=>{let y=new Map(m.map(C=>[a(C),!0])),p=d.filter,v=(C,k)=>{let P=k||o.parse(C).root||".",F=C===P?!1:y.has(C)?y.get(C):v(o.dirname(C),P);return y.set(C,F),F};d.filter=p?(C,k)=>p(C,k)&&v(a(C)):C=>v(a(C))},l=d=>{let m=f(d),y=d.file,p=!0,v;try{let C=n.statSync(y),k=d.maxReadSize||16*1024*1024;if(C.size<k)m.end(n.readFileSync(y));else{let P=0,F=Buffer.allocUnsafe(k);for(v=n.openSync(y,"r");P<C.size;){let M=n.readSync(v,F,0,k,P);P+=M,m.write(F.slice(0,M))}m.end()}p=!1}finally{if(p&&v)try{n.closeSync(v)}catch{}}},h=(d,m)=>{let y=new i(d),p=d.maxReadSize||16*1024*1024,v=d.file,C=new Promise((k,P)=>{y.on("error",P),y.on("end",k),n.stat(v,(F,M)=>{if(F)P(F);else{let S=new s.ReadStream(v,{readSize:p,size:M.size});S.on("error",P),S.pipe(y)}})});return m?C.then(m,m):C},f=d=>new i(d)}),NH=de((t,e)=>{"use strict";Q();var r=da(),i=r0(),n=ga(),s=n0(),o=ye("path");e.exports=(d,m,y)=>{if(typeof m=="function"&&(y=m),Array.isArray(d)&&(m=d,d={}),!m||!Array.isArray(m)||!m.length)throw new TypeError("no files or directories specified");m=Array.from(m);let p=r(d);if(p.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!p.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.file&&p.sync?a(p,m):p.file?u(p,m,y):p.sync?h(p,m):f(p,m)};var a=(d,m)=>{let y=new i.Sync(d),p=new n.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(p),c(y,m)},u=(d,m,y)=>{let p=new i(d),v=new n.WriteStream(d.file,{mode:d.mode||438});p.pipe(v);let C=new Promise((k,P)=>{v.on("error",P),v.on("close",k),p.on("error",P)});return l(p,m),y?C.then(y,y):C},c=(d,m)=>{m.forEach(y=>{y.charAt(0)==="@"?s({file:o.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:p=>d.add(p)}):d.add(y)}),d.end()},l=(d,m)=>{for(;m.length;){let y=m.shift();if(y.charAt(0)==="@")return s({file:o.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:p=>d.add(p)}).then(p=>l(d,m));d.add(y)}d.end()},h=(d,m)=>{let y=new i.Sync(d);return c(y,m),y},f=(d,m)=>{let y=new i(d);return l(y,m),y}}),TR=de((t,e)=>{"use strict";Q();var r=da(),i=r0(),n=ye("fs"),s=ga(),o=n0(),a=ye("path"),u=ma();e.exports=(m,y,p)=>{let v=r(m);if(!v.file)throw new TypeError("file is required");if(v.gzip)throw new TypeError("cannot append to compressed archives");if(!y||!Array.isArray(y)||!y.length)throw new TypeError("no files or directories specified");return y=Array.from(y),v.sync?c(v,y):h(v,y,p)};var c=(m,y)=>{let p=new i.Sync(m),v=!0,C,k;try{try{C=n.openSync(m.file,"r+")}catch(M){if(M.code==="ENOENT")C=n.openSync(m.file,"w+");else throw M}let P=n.fstatSync(C),F=Buffer.alloc(512);e:for(k=0;k<P.size;k+=512){for(let D=0,j=0;D<512;D+=j){if(j=n.readSync(C,F,D,F.length-D,k+D),k===0&&F[0]===31&&F[1]===139)throw new Error("cannot append to compressed archives");if(!j)break e}let M=new u(F);if(!M.cksumValid)break;let S=512*Math.ceil(M.size/512);if(k+S+512>P.size)break;k+=S,m.mtimeCache&&m.mtimeCache.set(M.path,M.mtime)}v=!1,l(m,p,k,C,y)}finally{if(v)try{n.closeSync(C)}catch{}}},l=(m,y,p,v,C)=>{let k=new s.WriteStreamSync(m.file,{fd:v,start:p});y.pipe(k),f(y,C)},h=(m,y,p)=>{y=Array.from(y);let v=new i(m),C=(P,F,M)=>{let S=(K,te)=>{K?n.close(P,ne=>M(K)):M(null,te)},D=0;if(F===0)return S(null,0);let j=0,W=Buffer.alloc(512),N=(K,te)=>{if(K)return S(K);if(j+=te,j<512&&te)return n.read(P,W,j,W.length-j,D+j,N);if(D===0&&W[0]===31&&W[1]===139)return S(new Error("cannot append to compressed archives"));if(j<512)return S(null,D);let ne=new u(W);if(!ne.cksumValid)return S(null,D);let U=512*Math.ceil(ne.size/512);if(D+U+512>F||(D+=U+512,D>=F))return S(null,D);m.mtimeCache&&m.mtimeCache.set(ne.path,ne.mtime),j=0,n.read(P,W,0,512,D,N)};n.read(P,W,0,512,D,N)},k=new Promise((P,F)=>{v.on("error",F);let M="r+",S=(D,j)=>{if(D&&D.code==="ENOENT"&&M==="r+")return M="w+",n.open(m.file,M,S);if(D)return F(D);n.fstat(j,(W,N)=>{if(W)return n.close(j,()=>F(W));C(j,N.size,(K,te)=>{if(K)return F(K);let ne=new s.WriteStream(m.file,{fd:j,start:te});v.pipe(ne),ne.on("error",F),ne.on("close",P),d(v,y)})})};n.open(m.file,M,S)});return p?k.then(p,p):k},f=(m,y)=>{y.forEach(p=>{p.charAt(0)==="@"?o({file:a.resolve(m.cwd,p.slice(1)),sync:!0,noResume:!0,onentry:v=>m.add(v)}):m.add(p)}),m.end()},d=(m,y)=>{for(;y.length;){let p=y.shift();if(p.charAt(0)==="@")return o({file:a.resolve(m.cwd,p.slice(1)),noResume:!0,onentry:v=>m.add(v)}).then(v=>d(m,y));m.add(p)}m.end()}}),MH=de((t,e)=>{"use strict";Q();var r=da(),i=TR();e.exports=(s,o,a)=>{let u=r(s);if(!u.file)throw new TypeError("file is required");if(u.gzip)throw new TypeError("cannot append to compressed archives");if(!o||!Array.isArray(o)||!o.length)throw new TypeError("no files or directories specified");return o=Array.from(o),n(u),i(u,o,a)};var n=s=>{let o=s.filter;s.mtimeCache||(s.mtimeCache=new Map),s.filter=o?(a,u)=>o(a,u)&&!(s.mtimeCache.get(a)>u.mtime):(a,u)=>!(s.mtimeCache.get(a)>u.mtime)}}),jH=de((t,e)=>{Q();var{promisify:r}=ye("util"),i=ye("fs"),n=s=>{if(!s)s={mode:511,fs:i};else if(typeof s=="object")s={mode:511,fs:i,...s};else if(typeof s=="number")s={mode:s,fs:i};else if(typeof s=="string")s={mode:parseInt(s,8),fs:i};else throw new TypeError("invalid options argument");return s.mkdir=s.mkdir||s.fs.mkdir||i.mkdir,s.mkdirAsync=r(s.mkdir),s.stat=s.stat||s.fs.stat||i.stat,s.statAsync=r(s.stat),s.statSync=s.statSync||s.fs.statSync||i.statSync,s.mkdirSync=s.mkdirSync||s.fs.mkdirSync||i.mkdirSync,s};e.exports=n}),qH=de((t,e)=>{Q();var r=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:i,parse:n}=ye("path"),s=o=>{if(/\0/.test(o))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:o,code:"ERR_INVALID_ARG_VALUE"});if(o=i(o),r==="win32"){let a=/[*|"<>?:]/,{root:u}=n(o);if(a.test(o.substr(u.length)))throw Object.assign(new Error("Illegal characters in path."),{path:o,code:"EINVAL"})}return o};e.exports=s}),UH=de((t,e)=>{Q();var{dirname:r}=ye("path"),i=(s,o,a=void 0)=>a===o?Promise.resolve():s.statAsync(o).then(u=>u.isDirectory()?a:void 0,u=>u.code==="ENOENT"?i(s,r(o),o):void 0),n=(s,o,a=void 0)=>{if(a!==o)try{return s.statSync(o).isDirectory()?a:void 0}catch(u){return u.code==="ENOENT"?n(s,r(o),o):void 0}};e.exports={findMade:i,findMadeSync:n}}),kR=de((t,e)=>{Q();var{dirname:r}=ye("path"),i=(s,o,a)=>{o.recursive=!1;let u=r(s);return u===s?o.mkdirAsync(s,o).catch(c=>{if(c.code!=="EISDIR")throw c}):o.mkdirAsync(s,o).then(()=>a||s,c=>{if(c.code==="ENOENT")return i(u,o).then(l=>i(s,o,l));if(c.code!=="EEXIST"&&c.code!=="EROFS")throw c;return o.statAsync(s).then(l=>{if(l.isDirectory())return a;throw c},()=>{throw c})})},n=(s,o,a)=>{let u=r(s);if(o.recursive=!1,u===s)try{return o.mkdirSync(s,o)}catch(c){if(c.code!=="EISDIR")throw c;return}try{return o.mkdirSync(s,o),a||s}catch(c){if(c.code==="ENOENT")return n(s,o,n(u,o,a));if(c.code!=="EEXIST"&&c.code!=="EROFS")throw c;try{if(!o.statSync(s).isDirectory())throw c}catch{throw c}}};e.exports={mkdirpManual:i,mkdirpManualSync:n}}),HH=de((t,e)=>{Q();var{dirname:r}=ye("path"),{findMade:i,findMadeSync:n}=UH(),{mkdirpManual:s,mkdirpManualSync:o}=kR(),a=(c,l)=>(l.recursive=!0,r(c)===c?l.mkdirAsync(c,l):i(l,c).then(h=>l.mkdirAsync(c,l).then(()=>h).catch(f=>{if(f.code==="ENOENT")return s(c,l);throw f}))),u=(c,l)=>{if(l.recursive=!0,r(c)===c)return l.mkdirSync(c,l);let h=n(l,c);try{return l.mkdirSync(c,l),h}catch(f){if(f.code==="ENOENT")return o(c,l);throw f}};e.exports={mkdirpNative:a,mkdirpNativeSync:u}}),$H=de((t,e)=>{Q();var r=ye("fs"),i=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,n=i.replace(/^v/,"").split("."),s=+n[0]>10||+n[0]==10&&+n[1]>=12,o=s?u=>u.mkdir===r.mkdir:()=>!1,a=s?u=>u.mkdirSync===r.mkdirSync:()=>!1;e.exports={useNative:o,useNativeSync:a}}),zH=de((t,e)=>{Q();var r=jH(),i=qH(),{mkdirpNative:n,mkdirpNativeSync:s}=HH(),{mkdirpManual:o,mkdirpManualSync:a}=kR(),{useNative:u,useNativeSync:c}=$H(),l=(f,d)=>(f=i(f),d=r(d),u(d)?n(f,d):o(f,d)),h=(f,d)=>(f=i(f),d=r(d),c(d)?s(f,d):a(f,d));l.sync=h,l.native=(f,d)=>n(i(f),r(d)),l.manual=(f,d)=>o(i(f),r(d)),l.nativeSync=(f,d)=>s(i(f),r(d)),l.manualSync=(f,d)=>a(i(f),r(d)),e.exports=l}),GH=de((t,e)=>{"use strict";Q();var r=ye("fs"),i=ye("path"),n=r.lchown?"lchown":"chown",s=r.lchownSync?"lchownSync":"chownSync",o=r.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),a=(k,P,F)=>{try{return r[s](k,P,F)}catch(M){if(M.code!=="ENOENT")throw M}},u=(k,P,F)=>{try{return r.chownSync(k,P,F)}catch(M){if(M.code!=="ENOENT")throw M}},c=o?(k,P,F,M)=>S=>{!S||S.code!=="EISDIR"?M(S):r.chown(k,P,F,M)}:(k,P,F,M)=>M,l=o?(k,P,F)=>{try{return a(k,P,F)}catch(M){if(M.code!=="EISDIR")throw M;u(k,P,F)}}:(k,P,F)=>a(k,P,F),h=process.version,f=(k,P,F)=>r.readdir(k,P,F),d=(k,P)=>r.readdirSync(k,P);/^v4\./.test(h)&&(f=(k,P,F)=>r.readdir(k,F));var m=(k,P,F,M)=>{r[n](k,P,F,c(k,P,F,S=>{M(S&&S.code!=="ENOENT"?S:null)}))},y=(k,P,F,M,S)=>{if(typeof P=="string")return r.lstat(i.resolve(k,P),(D,j)=>{if(D)return S(D.code!=="ENOENT"?D:null);j.name=P,y(k,j,F,M,S)});if(P.isDirectory())p(i.resolve(k,P.name),F,M,D=>{if(D)return S(D);let j=i.resolve(k,P.name);m(j,F,M,S)});else{let D=i.resolve(k,P.name);m(D,F,M,S)}},p=(k,P,F,M)=>{f(k,{withFileTypes:!0},(S,D)=>{if(S){if(S.code==="ENOENT")return M();if(S.code!=="ENOTDIR"&&S.code!=="ENOTSUP")return M(S)}if(S||!D.length)return m(k,P,F,M);let j=D.length,W=null,N=K=>{if(!W){if(K)return M(W=K);if(--j===0)return m(k,P,F,M)}};D.forEach(K=>y(k,K,P,F,N))})},v=(k,P,F,M)=>{if(typeof P=="string")try{let S=r.lstatSync(i.resolve(k,P));S.name=P,P=S}catch(S){if(S.code==="ENOENT")return;throw S}P.isDirectory()&&C(i.resolve(k,P.name),F,M),l(i.resolve(k,P.name),F,M)},C=(k,P,F)=>{let M;try{M=d(k,{withFileTypes:!0})}catch(S){if(S.code==="ENOENT")return;if(S.code==="ENOTDIR"||S.code==="ENOTSUP")return l(k,P,F);throw S}return M&&M.length&&M.forEach(S=>v(k,S,P,F)),l(k,P,F)};e.exports=p,p.sync=C}),WH=de((t,e)=>{"use strict";Q();var r=zH(),i=ye("fs"),n=ye("path"),s=GH(),o=pa(),a=class extends Error{constructor(y,p){super("Cannot extract through symbolic link"),this.path=p,this.symlink=y}get name(){return"SylinkError"}},u=class extends Error{constructor(y,p){super(p+": Cannot cd into '"+y+"'"),this.path=y,this.code=p}get name(){return"CwdError"}},c=(y,p)=>y.get(o(p)),l=(y,p,v)=>y.set(o(p),v),h=(y,p)=>{i.stat(y,(v,C)=>{(v||!C.isDirectory())&&(v=new u(y,v&&v.code||"ENOTDIR")),p(v)})};e.exports=(y,p,v)=>{y=o(y);let C=p.umask,k=p.mode|448,P=(k&C)!==0,F=p.uid,M=p.gid,S=typeof F=="number"&&typeof M=="number"&&(F!==p.processUid||M!==p.processGid),D=p.preserve,j=p.unlink,W=p.cache,N=o(p.cwd),K=(ne,U)=>{ne?v(ne):(l(W,y,!0),U&&S?s(U,F,M,I=>K(I)):P?i.chmod(y,k,v):v())};if(W&&c(W,y)===!0)return K();if(y===N)return h(y,K);if(D)return r(y,{mode:k}).then(ne=>K(null,ne),K);let te=o(n.relative(N,y)).split("/");f(N,te,k,W,j,N,null,K)};var f=(y,p,v,C,k,P,F,M)=>{if(!p.length)return M(null,F);let S=p.shift(),D=o(n.resolve(y+"/"+S));if(c(C,D))return f(D,p,v,C,k,P,F,M);i.mkdir(D,v,d(D,p,v,C,k,P,F,M))},d=(y,p,v,C,k,P,F,M)=>S=>{S?i.lstat(y,(D,j)=>{if(D)D.path=D.path&&o(D.path),M(D);else if(j.isDirectory())f(y,p,v,C,k,P,F,M);else if(k)i.unlink(y,W=>{if(W)return M(W);i.mkdir(y,v,d(y,p,v,C,k,P,F,M))});else{if(j.isSymbolicLink())return M(new a(y,y+"/"+p.join("/")));M(S)}}):(F=F||y,f(y,p,v,C,k,P,F,M))},m=y=>{let p=!1,v="ENOTDIR";try{p=i.statSync(y).isDirectory()}catch(C){v=C.code}finally{if(!p)throw new u(y,v)}};e.exports.sync=(y,p)=>{y=o(y);let v=p.umask,C=p.mode|448,k=(C&v)!==0,P=p.uid,F=p.gid,M=typeof P=="number"&&typeof F=="number"&&(P!==p.processUid||F!==p.processGid),S=p.preserve,D=p.unlink,j=p.cache,W=o(p.cwd),N=ne=>{l(j,y,!0),ne&&M&&s.sync(ne,P,F),k&&i.chmodSync(y,C)};if(j&&c(j,y)===!0)return N();if(y===W)return m(W),N();if(S)return N(r.sync(y,C));let K=o(n.relative(W,y)).split("/"),te=null;for(let ne=K.shift(),U=W;ne&&(U+="/"+ne);ne=K.shift())if(U=o(n.resolve(U)),!c(j,U))try{i.mkdirSync(U,C),te=te||U,l(j,U,!0)}catch{let I=i.lstatSync(U);if(I.isDirectory()){l(j,U,!0);continue}else if(D){i.unlinkSync(U),i.mkdirSync(U,C),te=te||U,l(j,U,!0);continue}else if(I.isSymbolicLink())return new a(U,U+"/"+K.join("/"))}return N(te)}}),OR=de((t,e)=>{Q();var r=Object.create(null),{hasOwnProperty:i}=Object.prototype;e.exports=n=>(i.call(r,n)||(r[n]=n.normalize("NFKD")),r[n])}),VH=de((t,e)=>{Q();var r=ye("assert"),i=OR(),n=ya(),{join:s}=ye("path"),o=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,a=o==="win32";e.exports=()=>{let u=new Map,c=new Map,l=p=>p.split("/").slice(0,-1).reduce((v,C)=>(v.length&&(C=s(v[v.length-1],C)),v.push(C||"/"),v),[]),h=new Set,f=p=>{let v=c.get(p);if(!v)throw new Error("function does not have any path reservations");return{paths:v.paths.map(C=>u.get(C)),dirs:[...v.dirs].map(C=>u.get(C))}},d=p=>{let{paths:v,dirs:C}=f(p);return v.every(k=>k[0]===p)&&C.every(k=>k[0]instanceof Set&&k[0].has(p))},m=p=>h.has(p)||!d(p)?!1:(h.add(p),p(()=>y(p)),!0),y=p=>{if(!h.has(p))return!1;let{paths:v,dirs:C}=c.get(p),k=new Set;return v.forEach(P=>{let F=u.get(P);r.equal(F[0],p),F.length===1?u.delete(P):(F.shift(),typeof F[0]=="function"?k.add(F[0]):F[0].forEach(M=>k.add(M)))}),C.forEach(P=>{let F=u.get(P);r(F[0]instanceof Set),F[0].size===1&&F.length===1?u.delete(P):F[0].size===1?(F.shift(),k.add(F[0])):F[0].delete(p)}),h.delete(p),k.forEach(P=>m(P)),!0};return{check:d,reserve:(p,v)=>{p=a?["win32 parallelization disabled"]:p.map(k=>i(n(s(k))).toLowerCase());let C=new Set(p.map(k=>l(k)).reduce((k,P)=>k.concat(P)));return c.set(v,{dirs:C,paths:p}),p.forEach(k=>{let P=u.get(k);P?P.push(v):u.set(k,[v])}),C.forEach(k=>{let P=u.get(k);P?P[P.length-1]instanceof Set?P[P.length-1].add(v):P.push(new Set([v])):u.set(k,[new Set([v])])}),m(v)}}}}),YH=de((t,e)=>{Q();var r=process.env.__FAKE_PLATFORM__||process.platform,i=r==="win32",n=global.__FAKE_TESTING_FS__||ye("fs"),{O_CREAT:s,O_TRUNC:o,O_WRONLY:a,UV_FS_O_FILEMAP:u=0}=n.constants,c=i&&!!u,l=512*1024,h=u|o|s|a;e.exports=c?f=>f<l?h:"w":()=>"w"}),FR=de((t,e)=>{"use strict";Q();var r=ye("assert"),i=i0(),n=ye("fs"),s=ga(),o=ye("path"),a=WH(),u=DR(),c=VH(),l=AR(),h=pa(),f=ya(),d=OR(),m=Symbol("onEntry"),y=Symbol("checkFs"),p=Symbol("checkFs2"),v=Symbol("pruneCache"),C=Symbol("isReusable"),k=Symbol("makeFs"),P=Symbol("file"),F=Symbol("directory"),M=Symbol("link"),S=Symbol("symlink"),D=Symbol("hardlink"),j=Symbol("unsupported"),W=Symbol("checkPath"),N=Symbol("mkdir"),K=Symbol("onError"),te=Symbol("pending"),ne=Symbol("pend"),U=Symbol("unpend"),I=Symbol("ended"),L=Symbol("maybeClose"),z=Symbol("skip"),Z=Symbol("doChown"),q=Symbol("uid"),g=Symbol("gid"),_=Symbol("checkedCwd"),E=ye("crypto"),R=YH(),x=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,H=x==="win32",$=(b,G)=>{if(!H)return n.unlink(b,G);let ee=b+".DELETE."+E.randomBytes(16).toString("hex");n.rename(b,ee,le=>{if(le)return G(le);n.unlink(ee,G)})},re=b=>{if(!H)return n.unlinkSync(b);let G=b+".DELETE."+E.randomBytes(16).toString("hex");n.renameSync(b,G),n.unlinkSync(G)},V=(b,G,ee)=>b===b>>>0?b:G===G>>>0?G:ee,he=b=>d(f(h(b))).toLowerCase(),J=(b,G)=>{G=he(G);for(let ee of b.keys()){let le=he(ee);(le===G||le.indexOf(G+"/")===0)&&b.delete(ee)}},w=b=>{for(let G of b.keys())b.delete(G)},B=class extends i{constructor(b){if(b||(b={}),b.ondone=G=>{this[I]=!0,this[L]()},super(b),this[_]=!1,this.reservations=c(),this.transform=typeof b.transform=="function"?b.transform:null,this.writable=!0,this.readable=!1,this[te]=0,this[I]=!1,this.dirCache=b.dirCache||new Map,typeof b.uid=="number"||typeof b.gid=="number"){if(typeof b.uid!="number"||typeof b.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(b.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=b.uid,this.gid=b.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;b.preserveOwner===void 0&&typeof b.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!b.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=b.forceChown===!0,this.win32=!!b.win32||H,this.newer=!!b.newer,this.keep=!!b.keep,this.noMtime=!!b.noMtime,this.preservePaths=!!b.preservePaths,this.unlink=!!b.unlink,this.cwd=h(o.resolve(b.cwd||process.cwd())),this.strip=+b.strip||0,this.processUmask=b.noChmod?0:process.umask(),this.umask=typeof b.umask=="number"?b.umask:this.processUmask,this.dmode=b.dmode||511&~this.umask,this.fmode=b.fmode||438&~this.umask,this.on("entry",G=>this[m](G))}warn(b,G,ee={}){return(b==="TAR_BAD_ARCHIVE"||b==="TAR_ABORT")&&(ee.recoverable=!1),super.warn(b,G,ee)}[L](){this[I]&&this[te]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[W](b){if(this.strip){let G=h(b.path).split("/");if(G.length<this.strip)return!1;if(b.path=G.slice(this.strip).join("/"),b.type==="Link"){let ee=h(b.linkpath).split("/");if(ee.length>=this.strip)b.linkpath=ee.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let G=h(b.path),ee=G.split("/");if(ee.includes("..")||H&&/^[a-z]:\.\.$/i.test(ee[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:b,path:G}),!1;let[le,pe]=l(G);le&&(b.path=pe,this.warn("TAR_ENTRY_INFO",`stripping ${le} from absolute path`,{entry:b,path:G}))}if(o.isAbsolute(b.path)?b.absolute=h(o.resolve(b.path)):b.absolute=h(o.resolve(this.cwd,b.path)),!this.preservePaths&&b.absolute.indexOf(this.cwd+"/")!==0&&b.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:b,path:h(b.path),resolvedPath:b.absolute,cwd:this.cwd}),!1;if(b.absolute===this.cwd&&b.type!=="Directory"&&b.type!=="GNUDumpDir")return!1;if(this.win32){let{root:G}=o.win32.parse(b.absolute);b.absolute=G+u.encode(b.absolute.slice(G.length));let{root:ee}=o.win32.parse(b.path);b.path=ee+u.encode(b.path.slice(ee.length))}return!0}[m](b){if(!this[W](b))return b.resume();switch(r.equal(typeof b.absolute,"string"),b.type){case"Directory":case"GNUDumpDir":b.mode&&(b.mode=b.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](b);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[j](b)}}[K](b,G){b.name==="CwdError"?this.emit("error",b):(this.warn("TAR_ENTRY_ERROR",b,{entry:G}),this[U](),G.resume())}[N](b,G,ee){a(h(b),{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:G,noChmod:this.noChmod},ee)}[Z](b){return this.forceChown||this.preserveOwner&&(typeof b.uid=="number"&&b.uid!==this.processUid||typeof b.gid=="number"&&b.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[q](b){return V(this.uid,b.uid,this.processUid)}[g](b){return V(this.gid,b.gid,this.processGid)}[P](b,G){let ee=b.mode&4095||this.fmode,le=new s.WriteStream(b.absolute,{flags:R(b.size),mode:ee,autoClose:!1});le.on("error",we=>{le.fd&&n.close(le.fd,()=>{}),le.write=()=>!0,this[K](we,b),G()});let pe=1,Se=we=>{if(we){le.fd&&n.close(le.fd,()=>{}),this[K](we,b),G();return}--pe===0&&n.close(le.fd,He=>{He?this[K](He,b):this[U](),G()})};le.on("finish",we=>{let He=b.absolute,Zt=le.fd;if(b.mtime&&!this.noMtime){pe++;let Jt=b.atime||new Date,no=b.mtime;n.futimes(Zt,Jt,no,so=>so?n.utimes(He,Jt,no,Nl=>Se(Nl&&so)):Se())}if(this[Z](b)){pe++;let Jt=this[q](b),no=this[g](b);n.fchown(Zt,Jt,no,so=>so?n.chown(He,Jt,no,Nl=>Se(Nl&&so)):Se())}Se()});let xe=this.transform&&this.transform(b)||b;xe!==b&&(xe.on("error",we=>{this[K](we,b),G()}),b.pipe(xe)),xe.pipe(le)}[F](b,G){let ee=b.mode&4095||this.dmode;this[N](b.absolute,ee,le=>{if(le){this[K](le,b),G();return}let pe=1,Se=xe=>{--pe===0&&(G(),this[U](),b.resume())};b.mtime&&!this.noMtime&&(pe++,n.utimes(b.absolute,b.atime||new Date,b.mtime,Se)),this[Z](b)&&(pe++,n.chown(b.absolute,this[q](b),this[g](b),Se)),Se()})}[j](b){b.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${b.type}`,{entry:b}),b.resume()}[S](b,G){this[M](b,b.linkpath,"symlink",G)}[D](b,G){let ee=h(o.resolve(this.cwd,b.linkpath));this[M](b,ee,"link",G)}[ne](){this[te]++}[U](){this[te]--,this[L]()}[z](b){this[U](),b.resume()}[C](b,G){return b.type==="File"&&!this.unlink&&G.isFile()&&G.nlink<=1&&!H}[y](b){this[ne]();let G=[b.path];b.linkpath&&G.push(b.linkpath),this.reservations.reserve(G,ee=>this[p](b,ee))}[v](b){b.type==="SymbolicLink"?w(this.dirCache):b.type!=="Directory"&&J(this.dirCache,b.absolute)}[p](b,G){this[v](b);let ee=xe=>{this[v](b),G(xe)},le=()=>{this[N](this.cwd,this.dmode,xe=>{if(xe){this[K](xe,b),ee();return}this[_]=!0,pe()})},pe=()=>{if(b.absolute!==this.cwd){let xe=h(o.dirname(b.absolute));if(xe!==this.cwd)return this[N](xe,this.dmode,we=>{if(we){this[K](we,b),ee();return}Se()})}Se()},Se=()=>{n.lstat(b.absolute,(xe,we)=>{if(we&&(this.keep||this.newer&&we.mtime>b.mtime)){this[z](b),ee();return}if(xe||this[C](b,we))return this[k](null,b,ee);if(we.isDirectory()){if(b.type==="Directory"){let He=!this.noChmod&&b.mode&&(we.mode&4095)!==b.mode,Zt=Jt=>this[k](Jt,b,ee);return He?n.chmod(b.absolute,b.mode,Zt):Zt()}if(b.absolute!==this.cwd)return n.rmdir(b.absolute,He=>this[k](He,b,ee))}if(b.absolute===this.cwd)return this[k](null,b,ee);$(b.absolute,He=>this[k](He,b,ee))})};this[_]?pe():le()}[k](b,G,ee){if(b){this[K](b,G),ee();return}switch(G.type){case"File":case"OldFile":case"ContiguousFile":return this[P](G,ee);case"Link":return this[D](G,ee);case"SymbolicLink":return this[S](G,ee);case"Directory":case"GNUDumpDir":return this[F](G,ee)}}[M](b,G,ee,le){n[ee](G,b.absolute,pe=>{pe?this[K](pe,b):(this[U](),b.resume()),le()})}},A=b=>{try{return[null,b()]}catch(G){return[G,null]}},X=class extends B{[k](b,G){return super[k](b,G,()=>{})}[y](b){if(this[v](b),!this[_]){let pe=this[N](this.cwd,this.dmode);if(pe)return this[K](pe,b);this[_]=!0}if(b.absolute!==this.cwd){let pe=h(o.dirname(b.absolute));if(pe!==this.cwd){let Se=this[N](pe,this.dmode);if(Se)return this[K](Se,b)}}let[G,ee]=A(()=>n.lstatSync(b.absolute));if(ee&&(this.keep||this.newer&&ee.mtime>b.mtime))return this[z](b);if(G||this[C](b,ee))return this[k](null,b);if(ee.isDirectory()){if(b.type==="Directory"){let Se=!this.noChmod&&b.mode&&(ee.mode&4095)!==b.mode,[xe]=Se?A(()=>{n.chmodSync(b.absolute,b.mode)}):[];return this[k](xe,b)}let[pe]=A(()=>n.rmdirSync(b.absolute));this[k](pe,b)}let[le]=b.absolute===this.cwd?[]:A(()=>re(b.absolute));this[k](le,b)}[P](b,G){let ee=b.mode&4095||this.fmode,le=xe=>{let we;try{n.closeSync(pe)}catch(He){we=He}(xe||we)&&this[K](xe||we,b),G()},pe;try{pe=n.openSync(b.absolute,R(b.size),ee)}catch(xe){return le(xe)}let Se=this.transform&&this.transform(b)||b;Se!==b&&(Se.on("error",xe=>this[K](xe,b)),b.pipe(Se)),Se.on("data",xe=>{try{n.writeSync(pe,xe,0,xe.length)}catch(we){le(we)}}),Se.on("end",xe=>{let we=null;if(b.mtime&&!this.noMtime){let He=b.atime||new Date,Zt=b.mtime;try{n.futimesSync(pe,He,Zt)}catch(Jt){try{n.utimesSync(b.absolute,He,Zt)}catch{we=Jt}}}if(this[Z](b)){let He=this[q](b),Zt=this[g](b);try{n.fchownSync(pe,He,Zt)}catch(Jt){try{n.chownSync(b.absolute,He,Zt)}catch{we=we||Jt}}}le(we)})}[F](b,G){let ee=b.mode&4095||this.dmode,le=this[N](b.absolute,ee);if(le){this[K](le,b),G();return}if(b.mtime&&!this.noMtime)try{n.utimesSync(b.absolute,b.atime||new Date,b.mtime)}catch{}if(this[Z](b))try{n.chownSync(b.absolute,this[q](b),this[g](b))}catch{}G(),b.resume()}[N](b,G){try{return a.sync(h(b),{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:G})}catch(ee){return ee}}[M](b,G,ee,le){try{n[ee+"Sync"](G,b.absolute),le(),b.resume()}catch(pe){return this[K](pe,b)}}};B.Sync=X,e.exports=B}),KH=de((t,e)=>{"use strict";Q();var r=da(),i=FR(),n=ye("fs"),s=ga(),o=ye("path"),a=ya();e.exports=(d,m,y)=>{typeof d=="function"?(y=d,m=null,d={}):Array.isArray(d)&&(m=d,d={}),typeof m=="function"&&(y=m,m=null),m?m=Array.from(m):m=[];let p=r(d);if(p.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!p.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return m.length&&u(p,m),p.file&&p.sync?c(p):p.file?l(p,y):p.sync?h(p):f(p)};var u=(d,m)=>{let y=new Map(m.map(C=>[a(C),!0])),p=d.filter,v=(C,k)=>{let P=k||o.parse(C).root||".",F=C===P?!1:y.has(C)?y.get(C):v(o.dirname(C),P);return y.set(C,F),F};d.filter=p?(C,k)=>p(C,k)&&v(a(C)):C=>v(a(C))},c=d=>{let m=new i.Sync(d),y=d.file,p=n.statSync(y),v=d.maxReadSize||16*1024*1024;new s.ReadStreamSync(y,{readSize:v,size:p.size}).pipe(m)},l=(d,m)=>{let y=new i(d),p=d.maxReadSize||16*1024*1024,v=d.file,C=new Promise((k,P)=>{y.on("error",P),y.on("close",k),n.stat(v,(F,M)=>{if(F)P(F);else{let S=new s.ReadStream(v,{readSize:p,size:M.size});S.on("error",P),S.pipe(y)}})});return m?C.then(m,m):C},h=d=>new i.Sync(d),f=d=>new i(d)}),ZH=de(t=>{"use strict";Q(),t.c=t.create=NH(),t.r=t.replace=TR(),t.t=t.list=n0(),t.u=t.update=MH(),t.x=t.extract=KH(),t.Pack=r0(),t.Unpack=FR(),t.Parse=i0(),t.ReadEntry=Qy(),t.WriteEntry=CR(),t.Header=ma(),t.Pax=e0(),t.types=xR()}),JH=de((t,e)=>{Q();function r(i,n){typeof n=="boolean"&&(n={forever:n}),this._originalTimeouts=JSON.parse(JSON.stringify(i)),this._timeouts=i,this._options=n||{},this._maxRetryTime=n&&n.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}e.exports=r,r.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},r.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},r.prototype.retry=function(i){if(this._timeout&&clearTimeout(this._timeout),!i)return!1;var n=new Date().getTime();if(i&&n-this._operationStart>=this._maxRetryTime)return this._errors.push(i),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(i);var s=this._timeouts.shift();if(s===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),s=this._cachedTimeouts.slice(-1);else return!1;var o=this;return this._timer=setTimeout(function(){o._attempts++,o._operationTimeoutCb&&(o._timeout=setTimeout(function(){o._operationTimeoutCb(o._attempts)},o._operationTimeout),o._options.unref&&o._timeout.unref()),o._fn(o._attempts)},s),this._options.unref&&this._timer.unref(),!0},r.prototype.attempt=function(i,n){this._fn=i,n&&(n.timeout&&(this._operationTimeout=n.timeout),n.cb&&(this._operationTimeoutCb=n.cb));var s=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){s._operationTimeoutCb()},s._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},r.prototype.try=function(i){console.log("Using RetryOperation.try() is deprecated"),this.attempt(i)},r.prototype.start=function(i){console.log("Using RetryOperation.start() is deprecated"),this.attempt(i)},r.prototype.start=r.prototype.try,r.prototype.errors=function(){return this._errors},r.prototype.attempts=function(){return this._attempts},r.prototype.mainError=function(){if(this._errors.length===0)return null;for(var i={},n=null,s=0,o=0;o<this._errors.length;o++){var a=this._errors[o],u=a.message,c=(i[u]||0)+1;i[u]=c,c>=s&&(n=a,s=c)}return n}}),XH=de(t=>{Q();var e=JH();t.operation=function(r){var i=t.timeouts(r);return new e(i,{forever:r&&(r.forever||r.retries===1/0),unref:r&&r.unref,maxRetryTime:r&&r.maxRetryTime})},t.timeouts=function(r){if(r instanceof Array)return[].concat(r);var i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in r)i[n]=r[n];if(i.minTimeout>i.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var s=[],o=0;o<i.retries;o++)s.push(this.createTimeout(o,i));return r&&r.forever&&!s.length&&s.push(this.createTimeout(o,i)),s.sort(function(a,u){return a-u}),s},t.createTimeout=function(r,i){var n=i.randomize?Math.random()+1:1,s=Math.round(n*Math.max(i.minTimeout,1)*Math.pow(i.factor,r));return s=Math.min(s,i.maxTimeout),s},t.wrap=function(r,i,n){if(i instanceof Array&&(n=i,i=null),!n){n=[];for(var s in r)typeof r[s]=="function"&&n.push(s)}for(var o=0;o<n.length;o++){var a=n[o],u=r[a];r[a]=function(c){var l=t.operation(i),h=Array.prototype.slice.call(arguments,1),f=h.pop();h.push(function(d){l.retry(d)||(d&&(arguments[0]=l.mainError()),f.apply(this,arguments))}),l.attempt(function(){c.apply(r,h)})}.bind(r,u),r[a].options=i}}}),QH=de((t,e)=>{Q(),e.exports=XH()}),e6=de((t,e)=>{Q();var r=QH();function i(n,s){function o(a,u){var c=s||{},l;"randomize"in c||(c.randomize=!0),l=r.operation(c);function h(m){u(m||new Error("Aborted"))}function f(m,y){if(m.bail){h(m);return}l.retry(m)?c.onRetry&&c.onRetry(m,y):u(l.mainError())}function d(m){var y;try{y=n(h,m)}catch(p){f(p,m);return}Promise.resolve(y).then(a).catch(function(p){f(p,m)})}l.attempt(d)}return new Promise(o)}e.exports=i}),t6={};wH(t6,{bold:()=>o6,dimmed:()=>u6,error:()=>f6,grey:()=>c6,info:()=>s6,item:()=>l6,log:()=>Tn,turboBlue:()=>eo,turboGradient:()=>i6,turboLoader:()=>n6,turboRed:()=>NR,underline:()=>a6,warn:()=>h6,yellow:()=>MR});Q();var LR="#0099F7",BR="#F11712",r6="#FFFF00",i6=(0,IR.default)(LR,BR),eo=Ni.default.hex(LR),NR=Ni.default.hex(BR),MR=Ni.default.hex(r6),n6=t=>(0,PR.default)({text:t,spinner:{frames:[" ",eo("> "),eo(">> "),eo(">>>")]}}),s6=(...t)=>{Tn(eo.bold(">>>"),...t)},o6=(...t)=>{Tn(Ni.default.bold(...t))},a6=(...t)=>{Tn(Ni.default.underline(...t))},u6=(...t)=>{Tn(Ni.default.dim(...t))},c6=(...t)=>{Tn(Ni.default.grey(...t))},l6=(...t)=>{Tn(eo.bold(" \u2022"),...t)},Tn=(...t)=>{console.log(...t)},h6=(...t)=>{console.error(MR.bold(">>>"),...t)},f6=(...t)=>{console.error(NR.bold(">>>"),...t)};Q();async function Sl(t,e=[],r){let i={cwd:jR.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},...r};try{let{stdout:n}=await(0,qR.default)(t,e,i);return n.trim()}catch{return}}async function UR(){let[t,e,r,i]=await Promise.all([Sl("yarnpkg",["--version"]),Sl("npm",["--version"]),Sl("pnpm",["--version"]),Sl("bun",["--version"])]);return{yarn:t,pnpm:r,npm:e,bun:i}}Q();Q();Q();var HW=Al(AH());Q();Q();function d6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Q();Q();function Ky(t){return Ky=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},Ky(t)}Q();function p6(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m6(t,e){if(e&&(Ky(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p6(t)}Q();function Dl(t){return Dl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dl(t)}Q();Q();function la(t,e){return la=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},la(t,e)}function y6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&la(t,e)}Q();Q();function g6(t){return Function.toString.call(t).indexOf("[native code]")!==-1}Q();Q();function _6(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xl(t,e,r){return _6()?xl=Reflect.construct.bind():xl=function(i,n,s){var o=[null];o.push.apply(o,n);var a=Function.bind.apply(i,o),u=new a;return s&&la(u,s.prototype),u},xl.apply(null,arguments)}function Zy(t){var e=typeof Map=="function"?new Map:void 0;return Zy=function(r){if(r===null||!g6(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return xl(r,arguments,Dl(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),la(i,r)},Zy(t)}var $W=Al(FH()),WW=function(t){y6(e,t);function e(r){var i;return d6(this,e),i=m6(this,Dl(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Zy(Error));Q();Q();Q();Q();Q();Q();var iV=Al(ZH()),nV=(0,$R.promisify)(HR.Stream.pipeline);Q();Q();var uV=Al(e6());Q();Q();Q();var qe=class extends Error{constructor(t,e){var r;super(t),this.name="ConvertError",this.type=(r=e==null?void 0:e.type)!=null?r:"unknown",Error.captureStackTrace(this,qe)}};Q();Q();Q();Q();var b6=/^(?!_)(?<manager>.+)@(?<version>.+)$/;function vt({workspaceRoot:t}){let e=ri.default.join(t,"package.json");try{return(0,It.readJsonSync)(e,"utf8")}catch(r){if(r&&typeof r=="object"&&"code"in r){if(r.code==="ENOENT")throw new qe(`no "package.json" found at ${t}`,{type:"package_json-missing"});if(r.code==="EJSONPARSE")throw new qe(`failed to parse "package.json" at ${t}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${t}`)}}function Cl({workspaceRoot:t}){let{packageManager:e}=vt({workspaceRoot:t});if(e)try{let r=b6.exec(e);if(r){let[i,n]=r;return n}}catch{}}function _a({workspaceRoot:t}){let e=vt({workspaceRoot:t}),r=ri.default.basename(t),{name:i=r,description:n}=e;return{name:i,description:n}}function _R({workspaceRoot:t}){let e=ri.default.join(t,"pnpm-workspace.yaml");if((0,It.existsSync)(e))try{let r=fh.load((0,It.readFileSync)(e,"utf8"));if(r instanceof Object&&"packages"in r&&Array.isArray(r.packages))return r.packages}catch{throw new qe(`failed to parse ${e}`,{type:"pnpm-workspace_parse_error"})}return[]}function Rl({root:t,lockFile:e,workspaceConfig:r}){let i=s=>ri.default.join(t,s),n={root:t,lockfile:i(e),packageJson:i("package.json"),nodeModules:i("node_modules")};return r&&(n.workspaceConfig=i(r)),n}function s0({workspaces:t}){var e;return t?Array.isArray(t)?t:"packages"in t?(e=t.packages)!=null?e:[]:[]:[]}function Tl({workspaceRoot:t,workspaceGlobs:e}){if(!e)return[];let r=e.filter(i=>i.startsWith("!")).map(i=>i.slice(1));return e.filter(i=>!i.startsWith("!")).flatMap(i=>{let n=[`${i}/package.json`];return(0,KR.sync)(n,{onlyFiles:!0,absolute:!0,cwd:t,ignore:["**/node_modules/**",...r]})}).map(i=>{let n=ri.default.dirname(i),{name:s,description:o}=_a({workspaceRoot:n});return{name:s,description:o,paths:{root:n,packageJson:i,nodeModules:ri.default.join(n,"node_modules")}}})}function E6({directory:t}){let e=ri.default.resolve(process.cwd(),t);return{exists:(0,It.existsSync)(e),absolute:e}}function Mi({packageManager:t,action:e,project:r}){let i=r.workspaceData.globs.length>0;return`${e==="remove"?"Removing":"Adding"} ${t} ${i?"workspaces":""} ${e==="remove"?"from":"to"} ${r.name}`}function v6({project:t}){let e=r=>!(r.includes("*")&&(r.includes("**")||r.split("/").slice(0,-1).join("/").includes("*"))||["!","[","]","{","}"].some(i=>r.includes(i)));return t.workspaceData.globs.every(e)}function ti({project:t,options:e}){e!=null&&e.dry||(0,It.rmSync)(t.paths.lockfile,{force:!0})}async function ZR({project:t,options:e}){if(!(e!=null&&e.dry)&&(0,It.existsSync)(t.paths.lockfile))try{let{stdout:r}=await(0,YR.default)("bun",["bun.lockb"],{stdin:"ignore",cwd:t.paths.root});await(0,It.writeFile)(ri.default.join(t.paths.root,"yarn.lock"),r)}catch{}finally{(0,It.rmSync)(t.paths.lockfile,{force:!0})}}function w6({dependencyList:t,project:e,to:r}){let i=[];return e.workspaceData.workspaces.forEach(n=>{let{name:s}=n;if(t[s]){let o=t[s],a=o.startsWith("workspace:")?o.slice(10):o;t[s]=r.name==="pnpm"?`workspace:${a}`:a,i.push(s)}}),{dependencyList:t,updated:i}}function Li({project:t,workspace:e,to:r,logger:i,options:n}){if(["yarn","npm","bun"].includes(r.name)&&["yarn","npm","bun"].includes(t.packageManager))return;let s=vt({workspaceRoot:e.paths.root}),o={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},a=["dependencies","devDependencies","peerDependencies","optionalDependencies"];a.forEach(h=>{let f=s[h];if(f){let{updated:d,dependencyList:m}=w6({dependencyList:f,project:t,to:r});s[h]=m,o[h]=d}});let u=h=>{let f=o[h].length;if(f>0)return`${VR.default.green(f.toString())} ${h}`},c=a.map(u).filter(Boolean),l=`./${GR.default.relative(t.paths.root,e.paths.packageJson)}`;if(c.length>=1){let h="updating";c.forEach((f,d)=>{c.length===1?h+=` ${f} in ${l}`:d===c.length-1?h+=`and ${f} in ${l}`:h+=` ${f}, `}),i.workspaceStep(h)}else i.workspaceStep(`no workspace dependencies found in ${l}`);n!=null&&n.dry||(0,WR.writeJSONSync)(e.paths.packageJson,s,{spaces:2})}var Bi={name:"pnpm",lock:"pnpm-lock.yaml"};async function JR(t){let e=Cn.default.join(t.workspaceRoot,Bi.lock),r=Cn.default.join(t.workspaceRoot,"pnpm-workspace.yaml"),i=Cl({workspaceRoot:t.workspaceRoot});return(0,dt.existsSync)(e)||(0,dt.existsSync)(r)||i===Bi.name}async function S6(t){if(!await JR(t))throw new qe("Not a pnpm project",{type:"package_manager-unexpected"});let{name:e,description:r}=_a(t);return{name:e,description:r,packageManager:Bi.name,paths:Rl({root:t.workspaceRoot,lockFile:Bi.lock,workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:_R(t),workspaces:Tl({workspaceGlobs:_R(t),...t})}}}async function x6(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(Mi({action:"create",packageManager:Bi.name,project:e}));let o=vt({workspaceRoot:e.paths.root});i.rootHeader(),o.packageManager=`${r.name}@${r.version}`,i.rootStep(`adding "packageManager" field to ${e.name} root "package.json"`),n!=null&&n.dry||((0,dt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),s&&(i.rootStep('adding "pnpm-workspace.yaml"'),(0,dt.writeFileSync)(Cn.default.join(e.paths.root,"pnpm-workspace.yaml"),`packages:
|
56
|
+
`).reduce(a,Object.create(null)),a=(u,c)=>{let l=parseInt(c,10);if(l!==Buffer.byteLength(c)+1)return u;c=c.slice((l+" ").length);let h=c.split("="),f=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!f)return u;let d=h.join("=");return u[f]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(f)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,u};e.exports=n}),ma=de((t,e)=>{Q(),e.exports=r=>{let i=r.length-1,n=-1;for(;i>-1&&r.charAt(i)==="/";)n=i,i--;return n===-1?r:r.slice(0,n)}}),t0=de((t,e)=>{"use strict";Q(),e.exports=r=>class extends r{warn(i,n,s={}){this.file&&(s.file=this.file),this.cwd&&(s.cwd=this.cwd),s.code=n instanceof Error&&n.code||i,s.tarCode=i,!this.strict&&s.recoverable!==!1?(n instanceof Error&&(s=Object.assign(n,s),n=n.message),this.emit("warn",s.tarCode,n,s)):n instanceof Error?this.emit("error",Object.assign(n,s)):this.emit("error",Object.assign(new Error(`${i}: ${n}`),s))}}}),CR=de((t,e)=>{"use strict";Q();var r=["|","<",">","?",":"],i=r.map(o=>String.fromCharCode(61440+o.charCodeAt(0))),n=new Map(r.map((o,a)=>[o,i[a]])),s=new Map(i.map((o,a)=>[o,r[a]]));e.exports={encode:o=>r.reduce((a,u)=>a.split(u).join(n.get(u)),o),decode:o=>i.reduce((a,u)=>a.split(u).join(s.get(u)),o)}}),RR=de((t,e)=>{Q();var{isAbsolute:r,parse:i}=ye("path").win32;e.exports=n=>{let s="",o=i(n);for(;r(n)||o.root;){let a=n.charAt(0)==="/"&&n.slice(0,4)!=="//?/"?"/":o.root;n=n.slice(a.length),s+=a,o=i(n)}return[s,n]}}),BH=de((t,e)=>{"use strict";Q(),e.exports=(r,i,n)=>(r&=4095,n&&(r=(r|384)&-19),i&&(r&256&&(r|=64),r&32&&(r|=8),r&4&&(r|=1)),r)}),TR=de((t,e)=>{"use strict";Q();var r=Xy(),i=e0(),n=pa(),s=ye("fs"),o=ye("path"),a=da(),u=ma(),c=(_,E)=>E?(_=a(_).replace(/^\.(\/|$)/,""),u(E)+"/"+_):a(_),l=16*1024*1024,h=Symbol("process"),f=Symbol("file"),d=Symbol("directory"),m=Symbol("symlink"),y=Symbol("hardlink"),p=Symbol("header"),v=Symbol("read"),C=Symbol("lstat"),k=Symbol("onlstat"),P=Symbol("onread"),F=Symbol("onreadlink"),M=Symbol("openfile"),S=Symbol("onopenfile"),D=Symbol("close"),j=Symbol("mode"),W=Symbol("awaitDrain"),N=Symbol("ondrain"),K=Symbol("prefix"),te=Symbol("hadError"),ne=t0(),U=CR(),I=RR(),L=BH(),z=ne(class extends r{constructor(_,E){if(E=E||{},super(E),typeof _!="string")throw new TypeError("path is required");this.path=a(_),this.portable=!!E.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=E.maxReadSize||l,this.linkCache=E.linkCache||new Map,this.statCache=E.statCache||new Map,this.preservePaths=!!E.preservePaths,this.cwd=a(E.cwd||process.cwd()),this.strict=!!E.strict,this.noPax=!!E.noPax,this.noMtime=!!E.noMtime,this.mtime=E.mtime||null,this.prefix=E.prefix?a(E.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 E.onwarn=="function"&&this.on("warn",E.onwarn);let R=!1;if(!this.preservePaths){let[x,H]=I(this.path);x&&(this.path=H,R=x)}this.win32=!!E.win32||process.platform==="win32",this.win32&&(this.path=U.decode(this.path.replace(/\\/g,"/")),_=_.replace(/\\/g,"/")),this.absolute=a(E.absolute||o.resolve(this.cwd,_)),this.path===""&&(this.path="./"),R&&this.warn("TAR_ENTRY_INFO",`stripping ${R} from absolute path`,{entry:this,path:R+this.path}),this.statCache.has(this.absolute)?this[k](this.statCache.get(this.absolute)):this[C]()}emit(_,...E){return _==="error"&&(this[te]=!0),super.emit(_,...E)}[C](){s.lstat(this.absolute,(_,E)=>{if(_)return this.emit("error",_);this[k](E)})}[k](_){this.statCache.set(this.absolute,_),this.stat=_,_.isFile()||(_.size=0),this.type=g(_),this.emit("stat",_),this[h]()}[h](){switch(this.type){case"File":return this[f]();case"Directory":return this[d]();case"SymbolicLink":return this[m]();default:return this.end()}}[j](_){return L(_,this.type==="Directory",this.portable)}[K](_){return c(_,this.prefix)}[p](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new n({path:this[K](this.path),linkpath:this.type==="Link"?this[K](this.linkpath):this.linkpath,mode:this[j](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 i({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[K](this.path),linkpath:this.type==="Link"?this[K](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[d](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[p](),this.end()}[m](){s.readlink(this.absolute,(_,E)=>{if(_)return this.emit("error",_);this[F](E)})}[F](_){this.linkpath=a(_),this[p](),this.end()}[y](_){this.type="Link",this.linkpath=a(o.relative(this.cwd,_)),this.stat.size=0,this[p](),this.end()}[f](){if(this.stat.nlink>1){let _=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(_)){let E=this.linkCache.get(_);if(E.indexOf(this.cwd)===0)return this[y](E)}this.linkCache.set(_,this.absolute)}if(this[p](),this.stat.size===0)return this.end();this[M]()}[M](){s.open(this.absolute,"r",(_,E)=>{if(_)return this.emit("error",_);this[S](E)})}[S](_){if(this.fd=_,this[te])return this[D]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let E=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(E),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[v]()}[v](){let{fd:_,buf:E,offset:R,length:x,pos:H}=this;s.read(_,E,R,x,H,($,re)=>{if($)return this[D](()=>this.emit("error",$));this[P](re)})}[D](_){s.close(this.fd,_)}[P](_){if(_<=0&&this.remain>0){let R=new Error("encountered unexpected EOF");return R.path=this.absolute,R.syscall="read",R.code="EOF",this[D](()=>this.emit("error",R))}if(_>this.remain){let R=new Error("did not encounter expected EOF");return R.path=this.absolute,R.syscall="read",R.code="EOF",this[D](()=>this.emit("error",R))}if(_===this.remain)for(let R=_;R<this.length&&_<this.blockRemain;R++)this.buf[R+this.offset]=0,_++,this.remain++;let E=this.offset===0&&_===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+_);this.write(E)?this[N]():this[W](()=>this[N]())}[W](_){this.once("drain",_)}write(_){if(this.blockRemain<_.length){let E=new Error("writing more data than expected");return E.path=this.absolute,this.emit("error",E)}return this.remain-=_.length,this.blockRemain-=_.length,this.pos+=_.length,this.offset+=_.length,super.write(_)}[N](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[D](_=>_?this.emit("error",_):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[v]()}}),Z=class extends z{[C](){this[k](s.lstatSync(this.absolute))}[m](){this[F](s.readlinkSync(this.absolute))}[M](){this[S](s.openSync(this.absolute,"r"))}[v](){let _=!0;try{let{fd:E,buf:R,offset:x,length:H,pos:$}=this,re=s.readSync(E,R,x,H,$);this[P](re),_=!1}finally{if(_)try{this[D](()=>{})}catch{}}}[W](_){_()}[D](_){s.closeSync(this.fd),_()}},q=ne(class extends r{constructor(_,E){E=E||{},super(E),this.preservePaths=!!E.preservePaths,this.portable=!!E.portable,this.strict=!!E.strict,this.noPax=!!E.noPax,this.noMtime=!!E.noMtime,this.readEntry=_,this.type=_.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=E.prefix||null,this.path=a(_.path),this.mode=this[j](_.mode),this.uid=this.portable?null:_.uid,this.gid=this.portable?null:_.gid,this.uname=this.portable?null:_.uname,this.gname=this.portable?null:_.gname,this.size=_.size,this.mtime=this.noMtime?null:E.mtime||_.mtime,this.atime=this.portable?null:_.atime,this.ctime=this.portable?null:_.ctime,this.linkpath=a(_.linkpath),typeof E.onwarn=="function"&&this.on("warn",E.onwarn);let R=!1;if(!this.preservePaths){let[x,H]=I(this.path);x&&(this.path=H,R=x)}this.remain=_.size,this.blockRemain=_.startBlockSize,this.header=new n({path:this[K](this.path),linkpath:this.type==="Link"?this[K](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}),R&&this.warn("TAR_ENTRY_INFO",`stripping ${R} from absolute path`,{entry:this,path:R+this.path}),this.header.encode()&&!this.noPax&&super.write(new i({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[K](this.path),linkpath:this.type==="Link"?this[K](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),_.pipe(this)}[K](_){return c(_,this.prefix)}[j](_){return L(_,this.type==="Directory",this.portable)}write(_){let E=_.length;if(E>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=E,super.write(_)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});z.Sync=Z,z.Tar=q;var g=_=>_.isFile()?"File":_.isDirectory()?"Directory":_.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=z}),NH=de((t,e)=>{"use strict";Q(),e.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let i=this.head;i;i=i.next)yield i.value}}}),kR=de((t,e)=>{"use strict";Q(),e.exports=r,r.Node=o,r.create=r;function r(a){var u=this;if(u instanceof r||(u=new r),u.tail=null,u.head=null,u.length=0,a&&typeof a.forEach=="function")a.forEach(function(h){u.push(h)});else if(arguments.length>0)for(var c=0,l=arguments.length;c<l;c++)u.push(arguments[c]);return u}r.prototype.removeNode=function(a){if(a.list!==this)throw new Error("removing node which does not belong to this list");var u=a.next,c=a.prev;return u&&(u.prev=c),c&&(c.next=u),a===this.head&&(this.head=u),a===this.tail&&(this.tail=c),a.list.length--,a.next=null,a.prev=null,a.list=null,u},r.prototype.unshiftNode=function(a){if(a!==this.head){a.list&&a.list.removeNode(a);var u=this.head;a.list=this,a.next=u,u&&(u.prev=a),this.head=a,this.tail||(this.tail=a),this.length++}},r.prototype.pushNode=function(a){if(a!==this.tail){a.list&&a.list.removeNode(a);var u=this.tail;a.list=this,a.prev=u,u&&(u.next=a),this.tail=a,this.head||(this.head=a),this.length++}},r.prototype.push=function(){for(var a=0,u=arguments.length;a<u;a++)n(this,arguments[a]);return this.length},r.prototype.unshift=function(){for(var a=0,u=arguments.length;a<u;a++)s(this,arguments[a]);return this.length},r.prototype.pop=function(){if(this.tail){var a=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,a}},r.prototype.shift=function(){if(this.head){var a=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,a}},r.prototype.forEach=function(a,u){u=u||this;for(var c=this.head,l=0;c!==null;l++)a.call(u,c.value,l,this),c=c.next},r.prototype.forEachReverse=function(a,u){u=u||this;for(var c=this.tail,l=this.length-1;c!==null;l--)a.call(u,c.value,l,this),c=c.prev},r.prototype.get=function(a){for(var u=0,c=this.head;c!==null&&u<a;u++)c=c.next;if(u===a&&c!==null)return c.value},r.prototype.getReverse=function(a){for(var u=0,c=this.tail;c!==null&&u<a;u++)c=c.prev;if(u===a&&c!==null)return c.value},r.prototype.map=function(a,u){u=u||this;for(var c=new r,l=this.head;l!==null;)c.push(a.call(u,l.value,this)),l=l.next;return c},r.prototype.mapReverse=function(a,u){u=u||this;for(var c=new r,l=this.tail;l!==null;)c.push(a.call(u,l.value,this)),l=l.prev;return c},r.prototype.reduce=function(a,u){var c,l=this.head;if(arguments.length>1)c=u;else if(this.head)l=this.head.next,c=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=0;l!==null;h++)c=a(c,l.value,h),l=l.next;return c},r.prototype.reduceReverse=function(a,u){var c,l=this.tail;if(arguments.length>1)c=u;else if(this.tail)l=this.tail.prev,c=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=this.length-1;l!==null;h--)c=a(c,l.value,h),l=l.prev;return c},r.prototype.toArray=function(){for(var a=new Array(this.length),u=0,c=this.head;c!==null;u++)a[u]=c.value,c=c.next;return a},r.prototype.toArrayReverse=function(){for(var a=new Array(this.length),u=0,c=this.tail;c!==null;u++)a[u]=c.value,c=c.prev;return a},r.prototype.slice=function(a,u){u=u||this.length,u<0&&(u+=this.length),a=a||0,a<0&&(a+=this.length);var c=new r;if(u<a||u<0)return c;a<0&&(a=0),u>this.length&&(u=this.length);for(var l=0,h=this.head;h!==null&&l<a;l++)h=h.next;for(;h!==null&&l<u;l++,h=h.next)c.push(h.value);return c},r.prototype.sliceReverse=function(a,u){u=u||this.length,u<0&&(u+=this.length),a=a||0,a<0&&(a+=this.length);var c=new r;if(u<a||u<0)return c;a<0&&(a=0),u>this.length&&(u=this.length);for(var l=this.length,h=this.tail;h!==null&&l>u;l--)h=h.prev;for(;h!==null&&l>a;l--,h=h.prev)c.push(h.value);return c},r.prototype.splice=function(a,u,...c){a>this.length&&(a=this.length-1),a<0&&(a=this.length+a);for(var l=0,h=this.head;h!==null&&l<a;l++)h=h.next;for(var f=[],l=0;h&&l<u;l++)f.push(h.value),h=this.removeNode(h);h===null&&(h=this.tail),h!==this.head&&h!==this.tail&&(h=h.prev);for(var l=0;l<c.length;l++)h=i(this,h,c[l]);return f},r.prototype.reverse=function(){for(var a=this.head,u=this.tail,c=a;c!==null;c=c.prev){var l=c.prev;c.prev=c.next,c.next=l}return this.head=u,this.tail=a,this};function i(a,u,c){var l=u===a.head?new o(c,null,u,a):new o(c,u,u.next,a);return l.next===null&&(a.tail=l),l.prev===null&&(a.head=l),a.length++,l}function n(a,u){a.tail=new o(u,a.tail,null,a),a.head||(a.head=a.tail),a.length++}function s(a,u){a.head=new o(u,null,a.head,a),a.tail||(a.tail=a.head),a.length++}function o(a,u,c,l){if(!(this instanceof o))return new o(a,u,c,l);this.list=l,this.value=a,u?(u.next=this,this.prev=u):this.prev=null,c?(c.prev=this,this.next=c):this.next=null}try{NH()(r)}catch{}}),r0=de((t,e)=>{"use strict";Q();var r=class{constructor(g,_){this.path=g||"./",this.absolute=_,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},i=Xy(),n=DR(),s=Qy(),o=TR(),a=o.Sync,u=o.Tar,c=kR(),l=Buffer.alloc(1024),h=Symbol("onStat"),f=Symbol("ended"),d=Symbol("queue"),m=Symbol("current"),y=Symbol("process"),p=Symbol("processing"),v=Symbol("processJob"),C=Symbol("jobs"),k=Symbol("jobDone"),P=Symbol("addFSEntry"),F=Symbol("addTarEntry"),M=Symbol("stat"),S=Symbol("readdir"),D=Symbol("onreaddir"),j=Symbol("pipe"),W=Symbol("entry"),N=Symbol("entryOpt"),K=Symbol("writeEntryClass"),te=Symbol("write"),ne=Symbol("ondrain"),U=ye("fs"),I=ye("path"),L=t0(),z=da(),Z=L(class extends i{constructor(g){super(g),g=g||Object.create(null),this.opt=g,this.file=g.file||"",this.cwd=g.cwd||process.cwd(),this.maxReadSize=g.maxReadSize,this.preservePaths=!!g.preservePaths,this.strict=!!g.strict,this.noPax=!!g.noPax,this.prefix=z(g.prefix||""),this.linkCache=g.linkCache||new Map,this.statCache=g.statCache||new Map,this.readdirCache=g.readdirCache||new Map,this[K]=o,typeof g.onwarn=="function"&&this.on("warn",g.onwarn),this.portable=!!g.portable,this.zip=null,g.gzip?(typeof g.gzip!="object"&&(g.gzip={}),this.portable&&(g.gzip.portable=!0),this.zip=new n.Gzip(g.gzip),this.zip.on("data",_=>super.write(_)),this.zip.on("end",_=>super.end()),this.zip.on("drain",_=>this[ne]()),this.on("resume",_=>this.zip.resume())):this.on("drain",this[ne]),this.noDirRecurse=!!g.noDirRecurse,this.follow=!!g.follow,this.noMtime=!!g.noMtime,this.mtime=g.mtime||null,this.filter=typeof g.filter=="function"?g.filter:_=>!0,this[d]=new c,this[C]=0,this.jobs=+g.jobs||4,this[p]=!1,this[f]=!1}[te](g){return super.write(g)}add(g){return this.write(g),this}end(g){return g&&this.write(g),this[f]=!0,this[y](),this}write(g){if(this[f])throw new Error("write after end");return g instanceof s?this[F](g):this[P](g),this.flowing}[F](g){let _=z(I.resolve(this.cwd,g.path));if(!this.filter(g.path,g))g.resume();else{let E=new r(g.path,_,!1);E.entry=new u(g,this[N](E)),E.entry.on("end",R=>this[k](E)),this[C]+=1,this[d].push(E)}this[y]()}[P](g){let _=z(I.resolve(this.cwd,g));this[d].push(new r(g,_)),this[y]()}[M](g){g.pending=!0,this[C]+=1;let _=this.follow?"stat":"lstat";U[_](g.absolute,(E,R)=>{g.pending=!1,this[C]-=1,E?this.emit("error",E):this[h](g,R)})}[h](g,_){this.statCache.set(g.absolute,_),g.stat=_,this.filter(g.path,_)||(g.ignore=!0),this[y]()}[S](g){g.pending=!0,this[C]+=1,U.readdir(g.absolute,(_,E)=>{if(g.pending=!1,this[C]-=1,_)return this.emit("error",_);this[D](g,E)})}[D](g,_){this.readdirCache.set(g.absolute,_),g.readdir=_,this[y]()}[y](){if(!this[p]){this[p]=!0;for(let g=this[d].head;g!==null&&this[C]<this.jobs;g=g.next)if(this[v](g.value),g.value.ignore){let _=g.next;this[d].removeNode(g),g.next=_}this[p]=!1,this[f]&&!this[d].length&&this[C]===0&&(this.zip?this.zip.end(l):(super.write(l),super.end()))}}get[m](){return this[d]&&this[d].head&&this[d].head.value}[k](g){this[d].shift(),this[C]-=1,this[y]()}[v](g){if(!g.pending){if(g.entry){g===this[m]&&!g.piped&&this[j](g);return}if(g.stat||(this.statCache.has(g.absolute)?this[h](g,this.statCache.get(g.absolute)):this[M](g)),!!g.stat&&!g.ignore&&!(!this.noDirRecurse&&g.stat.isDirectory()&&!g.readdir&&(this.readdirCache.has(g.absolute)?this[D](g,this.readdirCache.get(g.absolute)):this[S](g),!g.readdir))){if(g.entry=this[W](g),!g.entry){g.ignore=!0;return}g===this[m]&&!g.piped&&this[j](g)}}}[N](g){return{onwarn:(_,E,R)=>this.warn(_,E,R),noPax:this.noPax,cwd:this.cwd,absolute:g.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}}[W](g){this[C]+=1;try{return new this[K](g.path,this[N](g)).on("end",()=>this[k](g)).on("error",_=>this.emit("error",_))}catch(_){this.emit("error",_)}}[ne](){this[m]&&this[m].entry&&this[m].entry.resume()}[j](g){g.piped=!0,g.readdir&&g.readdir.forEach(R=>{let x=g.path,H=x==="./"?"":x.replace(/\/*$/,"/");this[P](H+R)});let _=g.entry,E=this.zip;E?_.on("data",R=>{E.write(R)||_.pause()}):_.on("data",R=>{super.write(R)||_.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),q=class extends Z{constructor(g){super(g),this[K]=a}pause(){}resume(){}[M](g){let _=this.follow?"statSync":"lstatSync";this[h](g,U[_](g.absolute))}[S](g,_){this[D](g,U.readdirSync(g.absolute))}[j](g){let _=g.entry,E=this.zip;g.readdir&&g.readdir.forEach(R=>{let x=g.path,H=x==="./"?"":x.replace(/\/*$/,"/");this[P](H+R)}),E?_.on("data",R=>{E.write(R)}):_.on("data",R=>{super[te](R)})}};Z.Sync=q,e.exports=Z}),ya=de(t=>{"use strict";Q();var e=SR(),r=ye("events").EventEmitter,i=ye("fs"),n=i.writev;if(!n){let g=process.binding("fs"),_=g.FSReqWrap||g.FSReqCallback;n=(E,R,x,H)=>{let $=(V,he)=>H(V,he,R),re=new _;re.oncomplete=$,g.writeBuffers(E,R,x,re)}}var s=Symbol("_autoClose"),o=Symbol("_close"),a=Symbol("_ended"),u=Symbol("_fd"),c=Symbol("_finished"),l=Symbol("_flags"),h=Symbol("_flush"),f=Symbol("_handleChunk"),d=Symbol("_makeBuf"),m=Symbol("_mode"),y=Symbol("_needDrain"),p=Symbol("_onerror"),v=Symbol("_onopen"),C=Symbol("_onread"),k=Symbol("_onwrite"),P=Symbol("_open"),F=Symbol("_path"),M=Symbol("_pos"),S=Symbol("_queue"),D=Symbol("_read"),j=Symbol("_readSize"),W=Symbol("_reading"),N=Symbol("_remain"),K=Symbol("_size"),te=Symbol("_write"),ne=Symbol("_writing"),U=Symbol("_defaultFlag"),I=Symbol("_errored"),L=class extends e{constructor(g,_){if(_=_||{},super(_),this.readable=!0,this.writable=!1,typeof g!="string")throw new TypeError("path must be a string");this[I]=!1,this[u]=typeof _.fd=="number"?_.fd:null,this[F]=g,this[j]=_.readSize||16*1024*1024,this[W]=!1,this[K]=typeof _.size=="number"?_.size:1/0,this[N]=this[K],this[s]=typeof _.autoClose=="boolean"?_.autoClose:!0,typeof this[u]=="number"?this[D]():this[P]()}get fd(){return this[u]}get path(){return this[F]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[P](){i.open(this[F],"r",(g,_)=>this[v](g,_))}[v](g,_){g?this[p](g):(this[u]=_,this.emit("open",_),this[D]())}[d](){return Buffer.allocUnsafe(Math.min(this[j],this[N]))}[D](){if(!this[W]){this[W]=!0;let g=this[d]();if(g.length===0)return process.nextTick(()=>this[C](null,0,g));i.read(this[u],g,0,g.length,null,(_,E,R)=>this[C](_,E,R))}}[C](g,_,E){this[W]=!1,g?this[p](g):this[f](_,E)&&this[D]()}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,i.close(g,_=>_?this.emit("error",_):this.emit("close"))}}[p](g){this[W]=!0,this[o](),this.emit("error",g)}[f](g,_){let E=!1;return this[N]-=g,g>0&&(E=super.write(g<_.length?_.slice(0,g):_)),(g===0||this[N]<=0)&&(E=!1,this[o](),super.end()),E}emit(g,_){switch(g){case"prefinish":case"finish":break;case"drain":typeof this[u]=="number"&&this[D]();break;case"error":return this[I]?void 0:(this[I]=!0,super.emit(g,_));default:return super.emit(g,_)}}},z=class extends L{[P](){let g=!0;try{this[v](null,i.openSync(this[F],"r")),g=!1}finally{g&&this[o]()}}[D](){let g=!0;try{if(!this[W]){this[W]=!0;do{let _=this[d](),E=_.length===0?0:i.readSync(this[u],_,0,_.length,null);if(!this[f](E,_))break}while(!0);this[W]=!1}g=!1}finally{g&&this[o]()}}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,i.closeSync(g),this.emit("close")}}},Z=class extends r{constructor(g,_){_=_||{},super(_),this.readable=!1,this.writable=!0,this[I]=!1,this[ne]=!1,this[a]=!1,this[y]=!1,this[S]=[],this[F]=g,this[u]=typeof _.fd=="number"?_.fd:null,this[m]=_.mode===void 0?438:_.mode,this[M]=typeof _.start=="number"?_.start:null,this[s]=typeof _.autoClose=="boolean"?_.autoClose:!0;let E=this[M]!==null?"r+":"w";this[U]=_.flags===void 0,this[l]=this[U]?E:_.flags,this[u]===null&&this[P]()}emit(g,_){if(g==="error"){if(this[I])return;this[I]=!0}return super.emit(g,_)}get fd(){return this[u]}get path(){return this[F]}[p](g){this[o](),this[ne]=!0,this.emit("error",g)}[P](){i.open(this[F],this[l],this[m],(g,_)=>this[v](g,_))}[v](g,_){this[U]&&this[l]==="r+"&&g&&g.code==="ENOENT"?(this[l]="w",this[P]()):g?this[p](g):(this[u]=_,this.emit("open",_),this[h]())}end(g,_){return g&&this.write(g,_),this[a]=!0,!this[ne]&&!this[S].length&&typeof this[u]=="number"&&this[k](null,0),this}write(g,_){return typeof g=="string"&&(g=Buffer.from(g,_)),this[a]?(this.emit("error",new Error("write() after end()")),!1):this[u]===null||this[ne]||this[S].length?(this[S].push(g),this[y]=!0,!1):(this[ne]=!0,this[te](g),!0)}[te](g){i.write(this[u],g,0,g.length,this[M],(_,E)=>this[k](_,E))}[k](g,_){g?this[p](g):(this[M]!==null&&(this[M]+=_),this[S].length?this[h]():(this[ne]=!1,this[a]&&!this[c]?(this[c]=!0,this[o](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[h](){if(this[S].length===0)this[a]&&this[k](null,0);else if(this[S].length===1)this[te](this[S].pop());else{let g=this[S];this[S]=[],n(this[u],g,this[M],(_,E)=>this[k](_,E))}}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,i.close(g,_=>_?this.emit("error",_):this.emit("close"))}}},q=class extends Z{[P](){let g;if(this[U]&&this[l]==="r+")try{g=i.openSync(this[F],this[l],this[m])}catch(_){if(_.code==="ENOENT")return this[l]="w",this[P]();throw _}else g=i.openSync(this[F],this[l],this[m]);this[v](null,g)}[o](){if(this[s]&&typeof this[u]=="number"){let g=this[u];this[u]=null,i.closeSync(g),this.emit("close")}}[te](g){let _=!0;try{this[k](null,i.writeSync(this[u],g,0,g.length,this[M])),_=!1}finally{if(_)try{this[o]()}catch{}}}};t.ReadStream=L,t.ReadStreamSync=z,t.WriteStream=Z,t.WriteStreamSync=q}),i0=de((t,e)=>{"use strict";Q();var r=t0(),i=pa(),n=ye("events"),s=kR(),o=1024*1024,a=Qy(),u=e0(),c=DR(),{nextTick:l}=ye("process"),h=Buffer.from([31,139]),f=Symbol("state"),d=Symbol("writeEntry"),m=Symbol("readEntry"),y=Symbol("nextEntry"),p=Symbol("processEntry"),v=Symbol("extendedHeader"),C=Symbol("globalExtendedHeader"),k=Symbol("meta"),P=Symbol("emitMeta"),F=Symbol("buffer"),M=Symbol("queue"),S=Symbol("ended"),D=Symbol("emittedEnd"),j=Symbol("emit"),W=Symbol("unzip"),N=Symbol("consumeChunk"),K=Symbol("consumeChunkSub"),te=Symbol("consumeBody"),ne=Symbol("consumeMeta"),U=Symbol("consumeHeader"),I=Symbol("consuming"),L=Symbol("bufferConcat"),z=Symbol("maybeEnd"),Z=Symbol("writing"),q=Symbol("aborted"),g=Symbol("onDone"),_=Symbol("sawValidEntry"),E=Symbol("sawNullBlock"),R=Symbol("sawEOF"),x=Symbol("closeStream"),H=$=>!0;e.exports=r(class extends n{constructor($){$=$||{},super($),this.file=$.file||"",this[_]=null,this.on(g,re=>{(this[f]==="begin"||this[_]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),$.ondone?this.on(g,$.ondone):this.on(g,re=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!$.strict,this.maxMetaEntrySize=$.maxMetaEntrySize||o,this.filter=typeof $.filter=="function"?$.filter:H,this.writable=!0,this.readable=!1,this[M]=new s,this[F]=null,this[m]=null,this[d]=null,this[f]="begin",this[k]="",this[v]=null,this[C]=null,this[S]=!1,this[W]=null,this[q]=!1,this[E]=!1,this[R]=!1,this.on("end",()=>this[x]()),typeof $.onwarn=="function"&&this.on("warn",$.onwarn),typeof $.onentry=="function"&&this.on("entry",$.onentry)}[U]($,re){this[_]===null&&(this[_]=!1);let V;try{V=new i($,re,this[v],this[C])}catch(he){return this.warn("TAR_ENTRY_INVALID",he)}if(V.nullBlock)this[E]?(this[R]=!0,this[f]==="begin"&&(this[f]="header"),this[j]("eof")):(this[E]=!0,this[j]("nullBlock"));else if(this[E]=!1,!V.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:V});else if(!V.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:V});else{let he=V.type;if(/^(Symbolic)?Link$/.test(he)&&!V.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:V});else if(!/^(Symbolic)?Link$/.test(he)&&V.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:V});else{let J=this[d]=new a(V,this[v],this[C]);if(!this[_])if(J.remain){let w=()=>{J.invalid||(this[_]=!0)};J.on("end",w)}else this[_]=!0;J.meta?J.size>this.maxMetaEntrySize?(J.ignore=!0,this[j]("ignoredEntry",J),this[f]="ignore",J.resume()):J.size>0&&(this[k]="",J.on("data",w=>this[k]+=w),this[f]="meta"):(this[v]=null,J.ignore=J.ignore||!this.filter(J.path,J),J.ignore?(this[j]("ignoredEntry",J),this[f]=J.remain?"ignore":"header",J.resume()):(J.remain?this[f]="body":(this[f]="header",J.end()),this[m]?this[M].push(J):(this[M].push(J),this[y]())))}}}[x](){l(()=>this.emit("close"))}[p]($){let re=!0;return $?Array.isArray($)?this.emit.apply(this,$):(this[m]=$,this.emit("entry",$),$.emittedEnd||($.on("end",V=>this[y]()),re=!1)):(this[m]=null,re=!1),re}[y](){do;while(this[p](this[M].shift()));if(!this[M].length){let $=this[m];!$||$.flowing||$.size===$.remain?this[Z]||this.emit("drain"):$.once("drain",re=>this.emit("drain"))}}[te]($,re){let V=this[d],he=V.blockRemain,J=he>=$.length&&re===0?$:$.slice(re,re+he);return V.write(J),V.blockRemain||(this[f]="header",this[d]=null,V.end()),J.length}[ne]($,re){let V=this[d],he=this[te]($,re);return this[d]||this[P](V),he}[j]($,re,V){!this[M].length&&!this[m]?this.emit($,re,V):this[M].push([$,re,V])}[P]($){switch(this[j]("meta",this[k]),$.type){case"ExtendedHeader":case"OldExtendedHeader":this[v]=u.parse(this[k],this[v],!1);break;case"GlobalExtendedHeader":this[C]=u.parse(this[k],this[C],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[v]=this[v]||Object.create(null),this[v].path=this[k].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[v]=this[v]||Object.create(null),this[v].linkpath=this[k].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+$.type)}}abort($){this[q]=!0,this.emit("abort",$),this.warn("TAR_ABORT",$,{recoverable:!1})}write($){if(this[q])return;if(this[W]===null&&$){if(this[F]&&($=Buffer.concat([this[F],$]),this[F]=null),$.length<h.length)return this[F]=$,!0;for(let V=0;this[W]===null&&V<h.length;V++)$[V]!==h[V]&&(this[W]=!1);if(this[W]===null){let V=this[S];this[S]=!1,this[W]=new c.Unzip,this[W].on("data",J=>this[N](J)),this[W].on("error",J=>this.abort(J)),this[W].on("end",J=>{this[S]=!0,this[N]()}),this[Z]=!0;let he=this[W][V?"end":"write"]($);return this[Z]=!1,he}}this[Z]=!0,this[W]?this[W].write($):this[N]($),this[Z]=!1;let re=this[M].length?!1:this[m]?this[m].flowing:!0;return!re&&!this[M].length&&this[m].once("drain",V=>this.emit("drain")),re}[L]($){$&&!this[q]&&(this[F]=this[F]?Buffer.concat([this[F],$]):$)}[z](){if(this[S]&&!this[D]&&!this[q]&&!this[I]){this[D]=!0;let $=this[d];if($&&$.blockRemain){let re=this[F]?this[F].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${$.blockRemain} more bytes, only ${re} available)`,{entry:$}),this[F]&&$.write(this[F]),$.end()}this[j](g)}}[N]($){if(this[I])this[L]($);else if(!$&&!this[F])this[z]();else{if(this[I]=!0,this[F]){this[L]($);let re=this[F];this[F]=null,this[K](re)}else this[K]($);for(;this[F]&&this[F].length>=512&&!this[q]&&!this[R];){let re=this[F];this[F]=null,this[K](re)}this[I]=!1}(!this[F]||this[S])&&this[z]()}[K]($){let re=0,V=$.length;for(;re+512<=V&&!this[q]&&!this[R];)switch(this[f]){case"begin":case"header":this[U]($,re),re+=512;break;case"ignore":case"body":re+=this[te]($,re);break;case"meta":re+=this[ne]($,re);break;default:throw new Error("invalid state: "+this[f])}re<V&&(this[F]?this[F]=Buffer.concat([$.slice(re),this[F]]):this[F]=$.slice(re))}end($){this[q]||(this[W]?this[W].end($):(this[S]=!0,this.write($)))}})}),n0=de((t,e)=>{"use strict";Q();var r=fa(),i=i0(),n=ye("fs"),s=ya(),o=ye("path"),a=ma();e.exports=(d,m,y)=>{typeof d=="function"?(y=d,m=null,d={}):Array.isArray(d)&&(m=d,d={}),typeof m=="function"&&(y=m,m=null),m?m=Array.from(m):m=[];let p=r(d);if(p.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!p.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return m.length&&c(p,m),p.noResume||u(p),p.file&&p.sync?l(p):p.file?h(p,y):f(p)};var u=d=>{let m=d.onentry;d.onentry=m?y=>{m(y),y.resume()}:y=>y.resume()},c=(d,m)=>{let y=new Map(m.map(C=>[a(C),!0])),p=d.filter,v=(C,k)=>{let P=k||o.parse(C).root||".",F=C===P?!1:y.has(C)?y.get(C):v(o.dirname(C),P);return y.set(C,F),F};d.filter=p?(C,k)=>p(C,k)&&v(a(C)):C=>v(a(C))},l=d=>{let m=f(d),y=d.file,p=!0,v;try{let C=n.statSync(y),k=d.maxReadSize||16*1024*1024;if(C.size<k)m.end(n.readFileSync(y));else{let P=0,F=Buffer.allocUnsafe(k);for(v=n.openSync(y,"r");P<C.size;){let M=n.readSync(v,F,0,k,P);P+=M,m.write(F.slice(0,M))}m.end()}p=!1}finally{if(p&&v)try{n.closeSync(v)}catch{}}},h=(d,m)=>{let y=new i(d),p=d.maxReadSize||16*1024*1024,v=d.file,C=new Promise((k,P)=>{y.on("error",P),y.on("end",k),n.stat(v,(F,M)=>{if(F)P(F);else{let S=new s.ReadStream(v,{readSize:p,size:M.size});S.on("error",P),S.pipe(y)}})});return m?C.then(m,m):C},f=d=>new i(d)}),MH=de((t,e)=>{"use strict";Q();var r=fa(),i=r0(),n=ya(),s=n0(),o=ye("path");e.exports=(d,m,y)=>{if(typeof m=="function"&&(y=m),Array.isArray(d)&&(m=d,d={}),!m||!Array.isArray(m)||!m.length)throw new TypeError("no files or directories specified");m=Array.from(m);let p=r(d);if(p.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!p.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.file&&p.sync?a(p,m):p.file?u(p,m,y):p.sync?h(p,m):f(p,m)};var a=(d,m)=>{let y=new i.Sync(d),p=new n.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(p),c(y,m)},u=(d,m,y)=>{let p=new i(d),v=new n.WriteStream(d.file,{mode:d.mode||438});p.pipe(v);let C=new Promise((k,P)=>{v.on("error",P),v.on("close",k),p.on("error",P)});return l(p,m),y?C.then(y,y):C},c=(d,m)=>{m.forEach(y=>{y.charAt(0)==="@"?s({file:o.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:p=>d.add(p)}):d.add(y)}),d.end()},l=(d,m)=>{for(;m.length;){let y=m.shift();if(y.charAt(0)==="@")return s({file:o.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:p=>d.add(p)}).then(p=>l(d,m));d.add(y)}d.end()},h=(d,m)=>{let y=new i.Sync(d);return c(y,m),y},f=(d,m)=>{let y=new i(d);return l(y,m),y}}),OR=de((t,e)=>{"use strict";Q();var r=fa(),i=r0(),n=ye("fs"),s=ya(),o=n0(),a=ye("path"),u=pa();e.exports=(m,y,p)=>{let v=r(m);if(!v.file)throw new TypeError("file is required");if(v.gzip)throw new TypeError("cannot append to compressed archives");if(!y||!Array.isArray(y)||!y.length)throw new TypeError("no files or directories specified");return y=Array.from(y),v.sync?c(v,y):h(v,y,p)};var c=(m,y)=>{let p=new i.Sync(m),v=!0,C,k;try{try{C=n.openSync(m.file,"r+")}catch(M){if(M.code==="ENOENT")C=n.openSync(m.file,"w+");else throw M}let P=n.fstatSync(C),F=Buffer.alloc(512);e:for(k=0;k<P.size;k+=512){for(let D=0,j=0;D<512;D+=j){if(j=n.readSync(C,F,D,F.length-D,k+D),k===0&&F[0]===31&&F[1]===139)throw new Error("cannot append to compressed archives");if(!j)break e}let M=new u(F);if(!M.cksumValid)break;let S=512*Math.ceil(M.size/512);if(k+S+512>P.size)break;k+=S,m.mtimeCache&&m.mtimeCache.set(M.path,M.mtime)}v=!1,l(m,p,k,C,y)}finally{if(v)try{n.closeSync(C)}catch{}}},l=(m,y,p,v,C)=>{let k=new s.WriteStreamSync(m.file,{fd:v,start:p});y.pipe(k),f(y,C)},h=(m,y,p)=>{y=Array.from(y);let v=new i(m),C=(P,F,M)=>{let S=(K,te)=>{K?n.close(P,ne=>M(K)):M(null,te)},D=0;if(F===0)return S(null,0);let j=0,W=Buffer.alloc(512),N=(K,te)=>{if(K)return S(K);if(j+=te,j<512&&te)return n.read(P,W,j,W.length-j,D+j,N);if(D===0&&W[0]===31&&W[1]===139)return S(new Error("cannot append to compressed archives"));if(j<512)return S(null,D);let ne=new u(W);if(!ne.cksumValid)return S(null,D);let U=512*Math.ceil(ne.size/512);if(D+U+512>F||(D+=U+512,D>=F))return S(null,D);m.mtimeCache&&m.mtimeCache.set(ne.path,ne.mtime),j=0,n.read(P,W,0,512,D,N)};n.read(P,W,0,512,D,N)},k=new Promise((P,F)=>{v.on("error",F);let M="r+",S=(D,j)=>{if(D&&D.code==="ENOENT"&&M==="r+")return M="w+",n.open(m.file,M,S);if(D)return F(D);n.fstat(j,(W,N)=>{if(W)return n.close(j,()=>F(W));C(j,N.size,(K,te)=>{if(K)return F(K);let ne=new s.WriteStream(m.file,{fd:j,start:te});v.pipe(ne),ne.on("error",F),ne.on("close",P),d(v,y)})})};n.open(m.file,M,S)});return p?k.then(p,p):k},f=(m,y)=>{y.forEach(p=>{p.charAt(0)==="@"?o({file:a.resolve(m.cwd,p.slice(1)),sync:!0,noResume:!0,onentry:v=>m.add(v)}):m.add(p)}),m.end()},d=(m,y)=>{for(;y.length;){let p=y.shift();if(p.charAt(0)==="@")return o({file:a.resolve(m.cwd,p.slice(1)),noResume:!0,onentry:v=>m.add(v)}).then(v=>d(m,y));m.add(p)}m.end()}}),jH=de((t,e)=>{"use strict";Q();var r=fa(),i=OR();e.exports=(s,o,a)=>{let u=r(s);if(!u.file)throw new TypeError("file is required");if(u.gzip)throw new TypeError("cannot append to compressed archives");if(!o||!Array.isArray(o)||!o.length)throw new TypeError("no files or directories specified");return o=Array.from(o),n(u),i(u,o,a)};var n=s=>{let o=s.filter;s.mtimeCache||(s.mtimeCache=new Map),s.filter=o?(a,u)=>o(a,u)&&!(s.mtimeCache.get(a)>u.mtime):(a,u)=>!(s.mtimeCache.get(a)>u.mtime)}}),qH=de((t,e)=>{Q();var{promisify:r}=ye("util"),i=ye("fs"),n=s=>{if(!s)s={mode:511,fs:i};else if(typeof s=="object")s={mode:511,fs:i,...s};else if(typeof s=="number")s={mode:s,fs:i};else if(typeof s=="string")s={mode:parseInt(s,8),fs:i};else throw new TypeError("invalid options argument");return s.mkdir=s.mkdir||s.fs.mkdir||i.mkdir,s.mkdirAsync=r(s.mkdir),s.stat=s.stat||s.fs.stat||i.stat,s.statAsync=r(s.stat),s.statSync=s.statSync||s.fs.statSync||i.statSync,s.mkdirSync=s.mkdirSync||s.fs.mkdirSync||i.mkdirSync,s};e.exports=n}),UH=de((t,e)=>{Q();var r=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:i,parse:n}=ye("path"),s=o=>{if(/\0/.test(o))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:o,code:"ERR_INVALID_ARG_VALUE"});if(o=i(o),r==="win32"){let a=/[*|"<>?:]/,{root:u}=n(o);if(a.test(o.substr(u.length)))throw Object.assign(new Error("Illegal characters in path."),{path:o,code:"EINVAL"})}return o};e.exports=s}),HH=de((t,e)=>{Q();var{dirname:r}=ye("path"),i=(s,o,a=void 0)=>a===o?Promise.resolve():s.statAsync(o).then(u=>u.isDirectory()?a:void 0,u=>u.code==="ENOENT"?i(s,r(o),o):void 0),n=(s,o,a=void 0)=>{if(a!==o)try{return s.statSync(o).isDirectory()?a:void 0}catch(u){return u.code==="ENOENT"?n(s,r(o),o):void 0}};e.exports={findMade:i,findMadeSync:n}}),FR=de((t,e)=>{Q();var{dirname:r}=ye("path"),i=(s,o,a)=>{o.recursive=!1;let u=r(s);return u===s?o.mkdirAsync(s,o).catch(c=>{if(c.code!=="EISDIR")throw c}):o.mkdirAsync(s,o).then(()=>a||s,c=>{if(c.code==="ENOENT")return i(u,o).then(l=>i(s,o,l));if(c.code!=="EEXIST"&&c.code!=="EROFS")throw c;return o.statAsync(s).then(l=>{if(l.isDirectory())return a;throw c},()=>{throw c})})},n=(s,o,a)=>{let u=r(s);if(o.recursive=!1,u===s)try{return o.mkdirSync(s,o)}catch(c){if(c.code!=="EISDIR")throw c;return}try{return o.mkdirSync(s,o),a||s}catch(c){if(c.code==="ENOENT")return n(s,o,n(u,o,a));if(c.code!=="EEXIST"&&c.code!=="EROFS")throw c;try{if(!o.statSync(s).isDirectory())throw c}catch{throw c}}};e.exports={mkdirpManual:i,mkdirpManualSync:n}}),$H=de((t,e)=>{Q();var{dirname:r}=ye("path"),{findMade:i,findMadeSync:n}=HH(),{mkdirpManual:s,mkdirpManualSync:o}=FR(),a=(c,l)=>(l.recursive=!0,r(c)===c?l.mkdirAsync(c,l):i(l,c).then(h=>l.mkdirAsync(c,l).then(()=>h).catch(f=>{if(f.code==="ENOENT")return s(c,l);throw f}))),u=(c,l)=>{if(l.recursive=!0,r(c)===c)return l.mkdirSync(c,l);let h=n(l,c);try{return l.mkdirSync(c,l),h}catch(f){if(f.code==="ENOENT")return o(c,l);throw f}};e.exports={mkdirpNative:a,mkdirpNativeSync:u}}),zH=de((t,e)=>{Q();var r=ye("fs"),i=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,n=i.replace(/^v/,"").split("."),s=+n[0]>10||+n[0]==10&&+n[1]>=12,o=s?u=>u.mkdir===r.mkdir:()=>!1,a=s?u=>u.mkdirSync===r.mkdirSync:()=>!1;e.exports={useNative:o,useNativeSync:a}}),GH=de((t,e)=>{Q();var r=qH(),i=UH(),{mkdirpNative:n,mkdirpNativeSync:s}=$H(),{mkdirpManual:o,mkdirpManualSync:a}=FR(),{useNative:u,useNativeSync:c}=zH(),l=(f,d)=>(f=i(f),d=r(d),u(d)?n(f,d):o(f,d)),h=(f,d)=>(f=i(f),d=r(d),c(d)?s(f,d):a(f,d));l.sync=h,l.native=(f,d)=>n(i(f),r(d)),l.manual=(f,d)=>o(i(f),r(d)),l.nativeSync=(f,d)=>s(i(f),r(d)),l.manualSync=(f,d)=>a(i(f),r(d)),e.exports=l}),WH=de((t,e)=>{"use strict";Q();var r=ye("fs"),i=ye("path"),n=r.lchown?"lchown":"chown",s=r.lchownSync?"lchownSync":"chownSync",o=r.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),a=(k,P,F)=>{try{return r[s](k,P,F)}catch(M){if(M.code!=="ENOENT")throw M}},u=(k,P,F)=>{try{return r.chownSync(k,P,F)}catch(M){if(M.code!=="ENOENT")throw M}},c=o?(k,P,F,M)=>S=>{!S||S.code!=="EISDIR"?M(S):r.chown(k,P,F,M)}:(k,P,F,M)=>M,l=o?(k,P,F)=>{try{return a(k,P,F)}catch(M){if(M.code!=="EISDIR")throw M;u(k,P,F)}}:(k,P,F)=>a(k,P,F),h=process.version,f=(k,P,F)=>r.readdir(k,P,F),d=(k,P)=>r.readdirSync(k,P);/^v4\./.test(h)&&(f=(k,P,F)=>r.readdir(k,F));var m=(k,P,F,M)=>{r[n](k,P,F,c(k,P,F,S=>{M(S&&S.code!=="ENOENT"?S:null)}))},y=(k,P,F,M,S)=>{if(typeof P=="string")return r.lstat(i.resolve(k,P),(D,j)=>{if(D)return S(D.code!=="ENOENT"?D:null);j.name=P,y(k,j,F,M,S)});if(P.isDirectory())p(i.resolve(k,P.name),F,M,D=>{if(D)return S(D);let j=i.resolve(k,P.name);m(j,F,M,S)});else{let D=i.resolve(k,P.name);m(D,F,M,S)}},p=(k,P,F,M)=>{f(k,{withFileTypes:!0},(S,D)=>{if(S){if(S.code==="ENOENT")return M();if(S.code!=="ENOTDIR"&&S.code!=="ENOTSUP")return M(S)}if(S||!D.length)return m(k,P,F,M);let j=D.length,W=null,N=K=>{if(!W){if(K)return M(W=K);if(--j===0)return m(k,P,F,M)}};D.forEach(K=>y(k,K,P,F,N))})},v=(k,P,F,M)=>{if(typeof P=="string")try{let S=r.lstatSync(i.resolve(k,P));S.name=P,P=S}catch(S){if(S.code==="ENOENT")return;throw S}P.isDirectory()&&C(i.resolve(k,P.name),F,M),l(i.resolve(k,P.name),F,M)},C=(k,P,F)=>{let M;try{M=d(k,{withFileTypes:!0})}catch(S){if(S.code==="ENOENT")return;if(S.code==="ENOTDIR"||S.code==="ENOTSUP")return l(k,P,F);throw S}return M&&M.length&&M.forEach(S=>v(k,S,P,F)),l(k,P,F)};e.exports=p,p.sync=C}),VH=de((t,e)=>{"use strict";Q();var r=GH(),i=ye("fs"),n=ye("path"),s=WH(),o=da(),a=class extends Error{constructor(y,p){super("Cannot extract through symbolic link"),this.path=p,this.symlink=y}get name(){return"SylinkError"}},u=class extends Error{constructor(y,p){super(p+": Cannot cd into '"+y+"'"),this.path=y,this.code=p}get name(){return"CwdError"}},c=(y,p)=>y.get(o(p)),l=(y,p,v)=>y.set(o(p),v),h=(y,p)=>{i.stat(y,(v,C)=>{(v||!C.isDirectory())&&(v=new u(y,v&&v.code||"ENOTDIR")),p(v)})};e.exports=(y,p,v)=>{y=o(y);let C=p.umask,k=p.mode|448,P=(k&C)!==0,F=p.uid,M=p.gid,S=typeof F=="number"&&typeof M=="number"&&(F!==p.processUid||M!==p.processGid),D=p.preserve,j=p.unlink,W=p.cache,N=o(p.cwd),K=(ne,U)=>{ne?v(ne):(l(W,y,!0),U&&S?s(U,F,M,I=>K(I)):P?i.chmod(y,k,v):v())};if(W&&c(W,y)===!0)return K();if(y===N)return h(y,K);if(D)return r(y,{mode:k}).then(ne=>K(null,ne),K);let te=o(n.relative(N,y)).split("/");f(N,te,k,W,j,N,null,K)};var f=(y,p,v,C,k,P,F,M)=>{if(!p.length)return M(null,F);let S=p.shift(),D=o(n.resolve(y+"/"+S));if(c(C,D))return f(D,p,v,C,k,P,F,M);i.mkdir(D,v,d(D,p,v,C,k,P,F,M))},d=(y,p,v,C,k,P,F,M)=>S=>{S?i.lstat(y,(D,j)=>{if(D)D.path=D.path&&o(D.path),M(D);else if(j.isDirectory())f(y,p,v,C,k,P,F,M);else if(k)i.unlink(y,W=>{if(W)return M(W);i.mkdir(y,v,d(y,p,v,C,k,P,F,M))});else{if(j.isSymbolicLink())return M(new a(y,y+"/"+p.join("/")));M(S)}}):(F=F||y,f(y,p,v,C,k,P,F,M))},m=y=>{let p=!1,v="ENOTDIR";try{p=i.statSync(y).isDirectory()}catch(C){v=C.code}finally{if(!p)throw new u(y,v)}};e.exports.sync=(y,p)=>{y=o(y);let v=p.umask,C=p.mode|448,k=(C&v)!==0,P=p.uid,F=p.gid,M=typeof P=="number"&&typeof F=="number"&&(P!==p.processUid||F!==p.processGid),S=p.preserve,D=p.unlink,j=p.cache,W=o(p.cwd),N=ne=>{l(j,y,!0),ne&&M&&s.sync(ne,P,F),k&&i.chmodSync(y,C)};if(j&&c(j,y)===!0)return N();if(y===W)return m(W),N();if(S)return N(r.sync(y,C));let K=o(n.relative(W,y)).split("/"),te=null;for(let ne=K.shift(),U=W;ne&&(U+="/"+ne);ne=K.shift())if(U=o(n.resolve(U)),!c(j,U))try{i.mkdirSync(U,C),te=te||U,l(j,U,!0)}catch{let I=i.lstatSync(U);if(I.isDirectory()){l(j,U,!0);continue}else if(D){i.unlinkSync(U),i.mkdirSync(U,C),te=te||U,l(j,U,!0);continue}else if(I.isSymbolicLink())return new a(U,U+"/"+K.join("/"))}return N(te)}}),PR=de((t,e)=>{Q();var r=Object.create(null),{hasOwnProperty:i}=Object.prototype;e.exports=n=>(i.call(r,n)||(r[n]=n.normalize("NFKD")),r[n])}),YH=de((t,e)=>{Q();var r=ye("assert"),i=PR(),n=ma(),{join:s}=ye("path"),o=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,a=o==="win32";e.exports=()=>{let u=new Map,c=new Map,l=p=>p.split("/").slice(0,-1).reduce((v,C)=>(v.length&&(C=s(v[v.length-1],C)),v.push(C||"/"),v),[]),h=new Set,f=p=>{let v=c.get(p);if(!v)throw new Error("function does not have any path reservations");return{paths:v.paths.map(C=>u.get(C)),dirs:[...v.dirs].map(C=>u.get(C))}},d=p=>{let{paths:v,dirs:C}=f(p);return v.every(k=>k[0]===p)&&C.every(k=>k[0]instanceof Set&&k[0].has(p))},m=p=>h.has(p)||!d(p)?!1:(h.add(p),p(()=>y(p)),!0),y=p=>{if(!h.has(p))return!1;let{paths:v,dirs:C}=c.get(p),k=new Set;return v.forEach(P=>{let F=u.get(P);r.equal(F[0],p),F.length===1?u.delete(P):(F.shift(),typeof F[0]=="function"?k.add(F[0]):F[0].forEach(M=>k.add(M)))}),C.forEach(P=>{let F=u.get(P);r(F[0]instanceof Set),F[0].size===1&&F.length===1?u.delete(P):F[0].size===1?(F.shift(),k.add(F[0])):F[0].delete(p)}),h.delete(p),k.forEach(P=>m(P)),!0};return{check:d,reserve:(p,v)=>{p=a?["win32 parallelization disabled"]:p.map(k=>i(n(s(k))).toLowerCase());let C=new Set(p.map(k=>l(k)).reduce((k,P)=>k.concat(P)));return c.set(v,{dirs:C,paths:p}),p.forEach(k=>{let P=u.get(k);P?P.push(v):u.set(k,[v])}),C.forEach(k=>{let P=u.get(k);P?P[P.length-1]instanceof Set?P[P.length-1].add(v):P.push(new Set([v])):u.set(k,[new Set([v])])}),m(v)}}}}),KH=de((t,e)=>{Q();var r=process.env.__FAKE_PLATFORM__||process.platform,i=r==="win32",n=global.__FAKE_TESTING_FS__||ye("fs"),{O_CREAT:s,O_TRUNC:o,O_WRONLY:a,UV_FS_O_FILEMAP:u=0}=n.constants,c=i&&!!u,l=512*1024,h=u|o|s|a;e.exports=c?f=>f<l?h:"w":()=>"w"}),IR=de((t,e)=>{"use strict";Q();var r=ye("assert"),i=i0(),n=ye("fs"),s=ya(),o=ye("path"),a=VH(),u=CR(),c=YH(),l=RR(),h=da(),f=ma(),d=PR(),m=Symbol("onEntry"),y=Symbol("checkFs"),p=Symbol("checkFs2"),v=Symbol("pruneCache"),C=Symbol("isReusable"),k=Symbol("makeFs"),P=Symbol("file"),F=Symbol("directory"),M=Symbol("link"),S=Symbol("symlink"),D=Symbol("hardlink"),j=Symbol("unsupported"),W=Symbol("checkPath"),N=Symbol("mkdir"),K=Symbol("onError"),te=Symbol("pending"),ne=Symbol("pend"),U=Symbol("unpend"),I=Symbol("ended"),L=Symbol("maybeClose"),z=Symbol("skip"),Z=Symbol("doChown"),q=Symbol("uid"),g=Symbol("gid"),_=Symbol("checkedCwd"),E=ye("crypto"),R=KH(),x=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,H=x==="win32",$=(b,G)=>{if(!H)return n.unlink(b,G);let ee=b+".DELETE."+E.randomBytes(16).toString("hex");n.rename(b,ee,le=>{if(le)return G(le);n.unlink(ee,G)})},re=b=>{if(!H)return n.unlinkSync(b);let G=b+".DELETE."+E.randomBytes(16).toString("hex");n.renameSync(b,G),n.unlinkSync(G)},V=(b,G,ee)=>b===b>>>0?b:G===G>>>0?G:ee,he=b=>d(f(h(b))).toLowerCase(),J=(b,G)=>{G=he(G);for(let ee of b.keys()){let le=he(ee);(le===G||le.indexOf(G+"/")===0)&&b.delete(ee)}},w=b=>{for(let G of b.keys())b.delete(G)},B=class extends i{constructor(b){if(b||(b={}),b.ondone=G=>{this[I]=!0,this[L]()},super(b),this[_]=!1,this.reservations=c(),this.transform=typeof b.transform=="function"?b.transform:null,this.writable=!0,this.readable=!1,this[te]=0,this[I]=!1,this.dirCache=b.dirCache||new Map,typeof b.uid=="number"||typeof b.gid=="number"){if(typeof b.uid!="number"||typeof b.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(b.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=b.uid,this.gid=b.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;b.preserveOwner===void 0&&typeof b.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!b.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=b.forceChown===!0,this.win32=!!b.win32||H,this.newer=!!b.newer,this.keep=!!b.keep,this.noMtime=!!b.noMtime,this.preservePaths=!!b.preservePaths,this.unlink=!!b.unlink,this.cwd=h(o.resolve(b.cwd||process.cwd())),this.strip=+b.strip||0,this.processUmask=b.noChmod?0:process.umask(),this.umask=typeof b.umask=="number"?b.umask:this.processUmask,this.dmode=b.dmode||511&~this.umask,this.fmode=b.fmode||438&~this.umask,this.on("entry",G=>this[m](G))}warn(b,G,ee={}){return(b==="TAR_BAD_ARCHIVE"||b==="TAR_ABORT")&&(ee.recoverable=!1),super.warn(b,G,ee)}[L](){this[I]&&this[te]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[W](b){if(this.strip){let G=h(b.path).split("/");if(G.length<this.strip)return!1;if(b.path=G.slice(this.strip).join("/"),b.type==="Link"){let ee=h(b.linkpath).split("/");if(ee.length>=this.strip)b.linkpath=ee.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let G=h(b.path),ee=G.split("/");if(ee.includes("..")||H&&/^[a-z]:\.\.$/i.test(ee[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:b,path:G}),!1;let[le,pe]=l(G);le&&(b.path=pe,this.warn("TAR_ENTRY_INFO",`stripping ${le} from absolute path`,{entry:b,path:G}))}if(o.isAbsolute(b.path)?b.absolute=h(o.resolve(b.path)):b.absolute=h(o.resolve(this.cwd,b.path)),!this.preservePaths&&b.absolute.indexOf(this.cwd+"/")!==0&&b.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:b,path:h(b.path),resolvedPath:b.absolute,cwd:this.cwd}),!1;if(b.absolute===this.cwd&&b.type!=="Directory"&&b.type!=="GNUDumpDir")return!1;if(this.win32){let{root:G}=o.win32.parse(b.absolute);b.absolute=G+u.encode(b.absolute.slice(G.length));let{root:ee}=o.win32.parse(b.path);b.path=ee+u.encode(b.path.slice(ee.length))}return!0}[m](b){if(!this[W](b))return b.resume();switch(r.equal(typeof b.absolute,"string"),b.type){case"Directory":case"GNUDumpDir":b.mode&&(b.mode=b.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](b);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[j](b)}}[K](b,G){b.name==="CwdError"?this.emit("error",b):(this.warn("TAR_ENTRY_ERROR",b,{entry:G}),this[U](),G.resume())}[N](b,G,ee){a(h(b),{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:G,noChmod:this.noChmod},ee)}[Z](b){return this.forceChown||this.preserveOwner&&(typeof b.uid=="number"&&b.uid!==this.processUid||typeof b.gid=="number"&&b.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[q](b){return V(this.uid,b.uid,this.processUid)}[g](b){return V(this.gid,b.gid,this.processGid)}[P](b,G){let ee=b.mode&4095||this.fmode,le=new s.WriteStream(b.absolute,{flags:R(b.size),mode:ee,autoClose:!1});le.on("error",we=>{le.fd&&n.close(le.fd,()=>{}),le.write=()=>!0,this[K](we,b),G()});let pe=1,Se=we=>{if(we){le.fd&&n.close(le.fd,()=>{}),this[K](we,b),G();return}--pe===0&&n.close(le.fd,He=>{He?this[K](He,b):this[U](),G()})};le.on("finish",we=>{let He=b.absolute,Zt=le.fd;if(b.mtime&&!this.noMtime){pe++;let Jt=b.atime||new Date,io=b.mtime;n.futimes(Zt,Jt,io,no=>no?n.utimes(He,Jt,io,Nl=>Se(Nl&&no)):Se())}if(this[Z](b)){pe++;let Jt=this[q](b),io=this[g](b);n.fchown(Zt,Jt,io,no=>no?n.chown(He,Jt,io,Nl=>Se(Nl&&no)):Se())}Se()});let xe=this.transform&&this.transform(b)||b;xe!==b&&(xe.on("error",we=>{this[K](we,b),G()}),b.pipe(xe)),xe.pipe(le)}[F](b,G){let ee=b.mode&4095||this.dmode;this[N](b.absolute,ee,le=>{if(le){this[K](le,b),G();return}let pe=1,Se=xe=>{--pe===0&&(G(),this[U](),b.resume())};b.mtime&&!this.noMtime&&(pe++,n.utimes(b.absolute,b.atime||new Date,b.mtime,Se)),this[Z](b)&&(pe++,n.chown(b.absolute,this[q](b),this[g](b),Se)),Se()})}[j](b){b.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${b.type}`,{entry:b}),b.resume()}[S](b,G){this[M](b,b.linkpath,"symlink",G)}[D](b,G){let ee=h(o.resolve(this.cwd,b.linkpath));this[M](b,ee,"link",G)}[ne](){this[te]++}[U](){this[te]--,this[L]()}[z](b){this[U](),b.resume()}[C](b,G){return b.type==="File"&&!this.unlink&&G.isFile()&&G.nlink<=1&&!H}[y](b){this[ne]();let G=[b.path];b.linkpath&&G.push(b.linkpath),this.reservations.reserve(G,ee=>this[p](b,ee))}[v](b){b.type==="SymbolicLink"?w(this.dirCache):b.type!=="Directory"&&J(this.dirCache,b.absolute)}[p](b,G){this[v](b);let ee=xe=>{this[v](b),G(xe)},le=()=>{this[N](this.cwd,this.dmode,xe=>{if(xe){this[K](xe,b),ee();return}this[_]=!0,pe()})},pe=()=>{if(b.absolute!==this.cwd){let xe=h(o.dirname(b.absolute));if(xe!==this.cwd)return this[N](xe,this.dmode,we=>{if(we){this[K](we,b),ee();return}Se()})}Se()},Se=()=>{n.lstat(b.absolute,(xe,we)=>{if(we&&(this.keep||this.newer&&we.mtime>b.mtime)){this[z](b),ee();return}if(xe||this[C](b,we))return this[k](null,b,ee);if(we.isDirectory()){if(b.type==="Directory"){let He=!this.noChmod&&b.mode&&(we.mode&4095)!==b.mode,Zt=Jt=>this[k](Jt,b,ee);return He?n.chmod(b.absolute,b.mode,Zt):Zt()}if(b.absolute!==this.cwd)return n.rmdir(b.absolute,He=>this[k](He,b,ee))}if(b.absolute===this.cwd)return this[k](null,b,ee);$(b.absolute,He=>this[k](He,b,ee))})};this[_]?pe():le()}[k](b,G,ee){if(b){this[K](b,G),ee();return}switch(G.type){case"File":case"OldFile":case"ContiguousFile":return this[P](G,ee);case"Link":return this[D](G,ee);case"SymbolicLink":return this[S](G,ee);case"Directory":case"GNUDumpDir":return this[F](G,ee)}}[M](b,G,ee,le){n[ee](G,b.absolute,pe=>{pe?this[K](pe,b):(this[U](),b.resume()),le()})}},A=b=>{try{return[null,b()]}catch(G){return[G,null]}},X=class extends B{[k](b,G){return super[k](b,G,()=>{})}[y](b){if(this[v](b),!this[_]){let pe=this[N](this.cwd,this.dmode);if(pe)return this[K](pe,b);this[_]=!0}if(b.absolute!==this.cwd){let pe=h(o.dirname(b.absolute));if(pe!==this.cwd){let Se=this[N](pe,this.dmode);if(Se)return this[K](Se,b)}}let[G,ee]=A(()=>n.lstatSync(b.absolute));if(ee&&(this.keep||this.newer&&ee.mtime>b.mtime))return this[z](b);if(G||this[C](b,ee))return this[k](null,b);if(ee.isDirectory()){if(b.type==="Directory"){let Se=!this.noChmod&&b.mode&&(ee.mode&4095)!==b.mode,[xe]=Se?A(()=>{n.chmodSync(b.absolute,b.mode)}):[];return this[k](xe,b)}let[pe]=A(()=>n.rmdirSync(b.absolute));this[k](pe,b)}let[le]=b.absolute===this.cwd?[]:A(()=>re(b.absolute));this[k](le,b)}[P](b,G){let ee=b.mode&4095||this.fmode,le=xe=>{let we;try{n.closeSync(pe)}catch(He){we=He}(xe||we)&&this[K](xe||we,b),G()},pe;try{pe=n.openSync(b.absolute,R(b.size),ee)}catch(xe){return le(xe)}let Se=this.transform&&this.transform(b)||b;Se!==b&&(Se.on("error",xe=>this[K](xe,b)),b.pipe(Se)),Se.on("data",xe=>{try{n.writeSync(pe,xe,0,xe.length)}catch(we){le(we)}}),Se.on("end",xe=>{let we=null;if(b.mtime&&!this.noMtime){let He=b.atime||new Date,Zt=b.mtime;try{n.futimesSync(pe,He,Zt)}catch(Jt){try{n.utimesSync(b.absolute,He,Zt)}catch{we=Jt}}}if(this[Z](b)){let He=this[q](b),Zt=this[g](b);try{n.fchownSync(pe,He,Zt)}catch(Jt){try{n.chownSync(b.absolute,He,Zt)}catch{we=we||Jt}}}le(we)})}[F](b,G){let ee=b.mode&4095||this.dmode,le=this[N](b.absolute,ee);if(le){this[K](le,b),G();return}if(b.mtime&&!this.noMtime)try{n.utimesSync(b.absolute,b.atime||new Date,b.mtime)}catch{}if(this[Z](b))try{n.chownSync(b.absolute,this[q](b),this[g](b))}catch{}G(),b.resume()}[N](b,G){try{return a.sync(h(b),{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:G})}catch(ee){return ee}}[M](b,G,ee,le){try{n[ee+"Sync"](G,b.absolute),le(),b.resume()}catch(pe){return this[K](pe,b)}}};B.Sync=X,e.exports=B}),ZH=de((t,e)=>{"use strict";Q();var r=fa(),i=IR(),n=ye("fs"),s=ya(),o=ye("path"),a=ma();e.exports=(d,m,y)=>{typeof d=="function"?(y=d,m=null,d={}):Array.isArray(d)&&(m=d,d={}),typeof m=="function"&&(y=m,m=null),m?m=Array.from(m):m=[];let p=r(d);if(p.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!p.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return m.length&&u(p,m),p.file&&p.sync?c(p):p.file?l(p,y):p.sync?h(p):f(p)};var u=(d,m)=>{let y=new Map(m.map(C=>[a(C),!0])),p=d.filter,v=(C,k)=>{let P=k||o.parse(C).root||".",F=C===P?!1:y.has(C)?y.get(C):v(o.dirname(C),P);return y.set(C,F),F};d.filter=p?(C,k)=>p(C,k)&&v(a(C)):C=>v(a(C))},c=d=>{let m=new i.Sync(d),y=d.file,p=n.statSync(y),v=d.maxReadSize||16*1024*1024;new s.ReadStreamSync(y,{readSize:v,size:p.size}).pipe(m)},l=(d,m)=>{let y=new i(d),p=d.maxReadSize||16*1024*1024,v=d.file,C=new Promise((k,P)=>{y.on("error",P),y.on("close",k),n.stat(v,(F,M)=>{if(F)P(F);else{let S=new s.ReadStream(v,{readSize:p,size:M.size});S.on("error",P),S.pipe(y)}})});return m?C.then(m,m):C},h=d=>new i.Sync(d),f=d=>new i(d)}),JH=de(t=>{"use strict";Q(),t.c=t.create=MH(),t.r=t.replace=OR(),t.t=t.list=n0(),t.u=t.update=jH(),t.x=t.extract=ZH(),t.Pack=r0(),t.Unpack=IR(),t.Parse=i0(),t.ReadEntry=Qy(),t.WriteEntry=TR(),t.Header=pa(),t.Pax=e0(),t.types=AR()}),XH=de((t,e)=>{Q();function r(i,n){typeof n=="boolean"&&(n={forever:n}),this._originalTimeouts=JSON.parse(JSON.stringify(i)),this._timeouts=i,this._options=n||{},this._maxRetryTime=n&&n.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}e.exports=r,r.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},r.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},r.prototype.retry=function(i){if(this._timeout&&clearTimeout(this._timeout),!i)return!1;var n=new Date().getTime();if(i&&n-this._operationStart>=this._maxRetryTime)return this._errors.push(i),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(i);var s=this._timeouts.shift();if(s===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),s=this._cachedTimeouts.slice(-1);else return!1;var o=this;return this._timer=setTimeout(function(){o._attempts++,o._operationTimeoutCb&&(o._timeout=setTimeout(function(){o._operationTimeoutCb(o._attempts)},o._operationTimeout),o._options.unref&&o._timeout.unref()),o._fn(o._attempts)},s),this._options.unref&&this._timer.unref(),!0},r.prototype.attempt=function(i,n){this._fn=i,n&&(n.timeout&&(this._operationTimeout=n.timeout),n.cb&&(this._operationTimeoutCb=n.cb));var s=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){s._operationTimeoutCb()},s._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},r.prototype.try=function(i){console.log("Using RetryOperation.try() is deprecated"),this.attempt(i)},r.prototype.start=function(i){console.log("Using RetryOperation.start() is deprecated"),this.attempt(i)},r.prototype.start=r.prototype.try,r.prototype.errors=function(){return this._errors},r.prototype.attempts=function(){return this._attempts},r.prototype.mainError=function(){if(this._errors.length===0)return null;for(var i={},n=null,s=0,o=0;o<this._errors.length;o++){var a=this._errors[o],u=a.message,c=(i[u]||0)+1;i[u]=c,c>=s&&(n=a,s=c)}return n}}),QH=de(t=>{Q();var e=XH();t.operation=function(r){var i=t.timeouts(r);return new e(i,{forever:r&&(r.forever||r.retries===1/0),unref:r&&r.unref,maxRetryTime:r&&r.maxRetryTime})},t.timeouts=function(r){if(r instanceof Array)return[].concat(r);var i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in r)i[n]=r[n];if(i.minTimeout>i.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var s=[],o=0;o<i.retries;o++)s.push(this.createTimeout(o,i));return r&&r.forever&&!s.length&&s.push(this.createTimeout(o,i)),s.sort(function(a,u){return a-u}),s},t.createTimeout=function(r,i){var n=i.randomize?Math.random()+1:1,s=Math.round(n*Math.max(i.minTimeout,1)*Math.pow(i.factor,r));return s=Math.min(s,i.maxTimeout),s},t.wrap=function(r,i,n){if(i instanceof Array&&(n=i,i=null),!n){n=[];for(var s in r)typeof r[s]=="function"&&n.push(s)}for(var o=0;o<n.length;o++){var a=n[o],u=r[a];r[a]=function(c){var l=t.operation(i),h=Array.prototype.slice.call(arguments,1),f=h.pop();h.push(function(d){l.retry(d)||(d&&(arguments[0]=l.mainError()),f.apply(this,arguments))}),l.attempt(function(){c.apply(r,h)})}.bind(r,u),r[a].options=i}}}),e6=de((t,e)=>{Q(),e.exports=QH()}),t6=de((t,e)=>{Q();var r=e6();function i(n,s){function o(a,u){var c=s||{},l;"randomize"in c||(c.randomize=!0),l=r.operation(c);function h(m){u(m||new Error("Aborted"))}function f(m,y){if(m.bail){h(m);return}l.retry(m)?c.onRetry&&c.onRetry(m,y):u(l.mainError())}function d(m){var y;try{y=n(h,m)}catch(p){f(p,m);return}Promise.resolve(y).then(a).catch(function(p){f(p,m)})}l.attempt(d)}return new Promise(o)}e.exports=i}),r6={};SH(r6,{bold:()=>a6,dimmed:()=>c6,error:()=>d6,grey:()=>l6,info:()=>o6,item:()=>h6,log:()=>Rn,turboBlue:()=>Qs,turboGradient:()=>n6,turboLoader:()=>s6,turboRed:()=>jR,underline:()=>u6,warn:()=>f6,yellow:()=>qR});Q();var NR="#0099F7",MR="#F11712",i6="#FFFF00",n6=(0,BR.default)(NR,MR),Qs=Ni.default.hex(NR),jR=Ni.default.hex(MR),qR=Ni.default.hex(i6),s6=t=>(0,LR.default)({text:t,spinner:{frames:[" ",Qs("> "),Qs(">> "),Qs(">>>")]}}),o6=(...t)=>{Rn(Qs.bold(">>>"),...t)},a6=(...t)=>{Rn(Ni.default.bold(...t))},u6=(...t)=>{Rn(Ni.default.underline(...t))},c6=(...t)=>{Rn(Ni.default.dim(...t))},l6=(...t)=>{Rn(Ni.default.grey(...t))},h6=(...t)=>{Rn(Qs.bold(" \u2022"),...t)},Rn=(...t)=>{console.log(...t)},f6=(...t)=>{console.error(qR.bold(">>>"),...t)},d6=(...t)=>{console.error(jR.bold(">>>"),...t)};Q();async function Sl(t,e=[],r){let i={cwd:UR.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},...r};try{let{stdout:n}=await(0,HR.default)(t,e,i);return n.trim()}catch{return}}async function $R(){let[t,e,r,i]=await Promise.all([Sl("yarnpkg",["--version"]),Sl("npm",["--version"]),Sl("pnpm",["--version"]),Sl("bun",["--version"])]);return{yarn:t,pnpm:r,npm:e,bun:i}}Q();Q();Q();var HW=Al(CH());Q();Q();function p6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Q();Q();function Ky(t){return Ky=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},Ky(t)}Q();function m6(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y6(t,e){if(e&&(Ky(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m6(t)}Q();function Dl(t){return Dl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dl(t)}Q();Q();function ca(t,e){return ca=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ca(t,e)}function g6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ca(t,e)}Q();Q();function _6(t){return Function.toString.call(t).indexOf("[native code]")!==-1}Q();Q();function b6(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xl(t,e,r){return b6()?xl=Reflect.construct.bind():xl=function(i,n,s){var o=[null];o.push.apply(o,n);var a=Function.bind.apply(i,o),u=new a;return s&&ca(u,s.prototype),u},xl.apply(null,arguments)}function Zy(t){var e=typeof Map=="function"?new Map:void 0;return Zy=function(r){if(r===null||!_6(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return xl(r,arguments,Dl(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ca(i,r)},Zy(t)}var $W=Al(PH()),WW=function(t){g6(e,t);function e(r){var i;return p6(this,e),i=y6(this,Dl(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Zy(Error));Q();Q();Q();Q();Q();Q();var iV=Al(JH()),nV=(0,GR.promisify)(zR.Stream.pipeline);Q();Q();var uV=Al(t6());Q();Q();Q();var qe=class extends Error{constructor(t,e){var r;super(t),this.name="ConvertError",this.type=(r=e==null?void 0:e.type)!=null?r:"unknown",Error.captureStackTrace(this,qe)}};Q();Q();Q();Q();var E6=/^(?!_)(?<manager>.+)@(?<version>.+)$/;function vt({workspaceRoot:t}){let e=ri.default.join(t,"package.json");try{return(0,It.readJsonSync)(e,"utf8")}catch(r){if(r&&typeof r=="object"&&"code"in r){if(r.code==="ENOENT")throw new qe(`no "package.json" found at ${t}`,{type:"package_json-missing"});if(r.code==="EJSONPARSE")throw new qe(`failed to parse "package.json" at ${t}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${t}`)}}function Cl({workspaceRoot:t}){let{packageManager:e}=vt({workspaceRoot:t});if(e)try{let r=E6.exec(e);if(r){let[i,n]=r;return n}}catch{}}function ga({workspaceRoot:t}){let e=vt({workspaceRoot:t}),r=ri.default.basename(t),{name:i=r,description:n}=e;return{name:i,description:n}}function ER({workspaceRoot:t}){let e=ri.default.join(t,"pnpm-workspace.yaml");if((0,It.existsSync)(e))try{let r=fh.load((0,It.readFileSync)(e,"utf8"));if(r instanceof Object&&"packages"in r&&Array.isArray(r.packages))return r.packages}catch{throw new qe(`failed to parse ${e}`,{type:"pnpm-workspace_parse_error"})}return[]}function Rl({root:t,lockFile:e,workspaceConfig:r}){let i=s=>ri.default.join(t,s),n={root:t,lockfile:i(e),packageJson:i("package.json"),nodeModules:i("node_modules")};return r&&(n.workspaceConfig=i(r)),n}function s0({workspaces:t}){var e;return t?Array.isArray(t)?t:"packages"in t?(e=t.packages)!=null?e:[]:[]:[]}function Tl({workspaceRoot:t,workspaceGlobs:e}){if(!e)return[];let r=e.filter(i=>i.startsWith("!")).map(i=>i.slice(1));return e.filter(i=>!i.startsWith("!")).flatMap(i=>{let n=[`${i}/package.json`];return(0,JR.sync)(n,{onlyFiles:!0,absolute:!0,cwd:t,ignore:["**/node_modules/**",...r]})}).map(i=>{let n=ri.default.dirname(i),{name:s,description:o}=ga({workspaceRoot:n});return{name:s,description:o,paths:{root:n,packageJson:i,nodeModules:ri.default.join(n,"node_modules")}}})}function v6({directory:t}){let e=ri.default.resolve(process.cwd(),t);return{exists:(0,It.existsSync)(e),absolute:e}}function Mi({packageManager:t,action:e,project:r}){let i=r.workspaceData.globs.length>0;return`${e==="remove"?"Removing":"Adding"} ${t} ${i?"workspaces":""} ${e==="remove"?"from":"to"} ${r.name}`}function w6({project:t}){let e=r=>!(r.includes("*")&&(r.includes("**")||r.split("/").slice(0,-1).join("/").includes("*"))||["!","[","]","{","}"].some(i=>r.includes(i)));return t.workspaceData.globs.every(e)}function ti({project:t,options:e}){e!=null&&e.dry||(0,It.rmSync)(t.paths.lockfile,{force:!0})}async function XR({project:t,options:e}){if(!(e!=null&&e.dry)&&(0,It.existsSync)(t.paths.lockfile))try{let{stdout:r}=await(0,ZR.default)("bun",["bun.lockb"],{stdin:"ignore",cwd:t.paths.root});await(0,It.writeFile)(ri.default.join(t.paths.root,"yarn.lock"),r)}catch{}finally{(0,It.rmSync)(t.paths.lockfile,{force:!0})}}function S6({dependencyList:t,project:e,to:r}){let i=[];return e.workspaceData.workspaces.forEach(n=>{let{name:s}=n;if(t[s]){let o=t[s],a=o.startsWith("workspace:")?o.slice(10):o;t[s]=r.name==="pnpm"?`workspace:${a}`:a,i.push(s)}}),{dependencyList:t,updated:i}}function Li({project:t,workspace:e,to:r,logger:i,options:n}){if(["yarn","npm","bun"].includes(r.name)&&["yarn","npm","bun"].includes(t.packageManager))return;let s=vt({workspaceRoot:e.paths.root}),o={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},a=["dependencies","devDependencies","peerDependencies","optionalDependencies"];a.forEach(h=>{let f=s[h];if(f){let{updated:d,dependencyList:m}=S6({dependencyList:f,project:t,to:r});s[h]=m,o[h]=d}});let u=h=>{let f=o[h].length;if(f>0)return`${KR.default.green(f.toString())} ${h}`},c=a.map(u).filter(Boolean),l=`./${VR.default.relative(t.paths.root,e.paths.packageJson)}`;if(c.length>=1){let h="updating";c.forEach((f,d)=>{c.length===1?h+=` ${f} in ${l}`:d===c.length-1?h+=`and ${f} in ${l}`:h+=` ${f}, `}),i.workspaceStep(h)}else i.workspaceStep(`no workspace dependencies found in ${l}`);n!=null&&n.dry||(0,YR.writeJSONSync)(e.paths.packageJson,s,{spaces:2})}var Bi={name:"pnpm",lock:"pnpm-lock.yaml"};async function QR(t){let e=An.default.join(t.workspaceRoot,Bi.lock),r=An.default.join(t.workspaceRoot,"pnpm-workspace.yaml"),i=Cl({workspaceRoot:t.workspaceRoot});return(0,dt.existsSync)(e)||(0,dt.existsSync)(r)||i===Bi.name}async function x6(t){if(!await QR(t))throw new qe("Not a pnpm project",{type:"package_manager-unexpected"});let{name:e,description:r}=ga(t);return{name:e,description:r,packageManager:Bi.name,paths:Rl({root:t.workspaceRoot,lockFile:Bi.lock,workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:ER(t),workspaces:Tl({workspaceGlobs:ER(t),...t})}}}async function D6(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(Mi({action:"create",packageManager:Bi.name,project:e}));let o=vt({workspaceRoot:e.paths.root});i.rootHeader(),o.packageManager=`${r.name}@${r.version}`,i.rootStep(`adding "packageManager" field to ${e.name} root "package.json"`),n!=null&&n.dry||((0,dt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),s&&(i.rootStep('adding "pnpm-workspace.yaml"'),(0,dt.writeFileSync)(An.default.join(e.paths.root,"pnpm-workspace.yaml"),`packages:
|
57
57
|
${e.workspaceData.globs.map(a=>` - "${a}"`).join(`
|
58
|
-
`)}`))),s&&(Li({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{Li({workspace:a,project:e,to:r,logger:i,options:n})}))}async function D6(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(Mi({action:"remove",packageManager:Bi.name,project:e}));let s=vt({workspaceRoot:e.paths.root});if(e.paths.workspaceConfig&&n&&(r.subStep('removing "pnpm-workspace.yaml"'),i!=null&&i.dry||(0,dt.rmSync)(e.paths.workspaceConfig,{force:!0})),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,dt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,dt.rm)(a,{recursive:!0,force:!0})))}catch{throw new qe("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function A6(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${Cn.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,dt.rmSync)(e.paths.lockfile,{force:!0})}async function C6(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${Cn.default.relative(e.paths.root,e.paths.lockfile)} to ${Bi.lock}`)},s=async()=>{if(!(r!=null&&r.dry)&&(0,dt.existsSync)(e.paths.lockfile))try{await(0,zR.default)(Bi.name,["import"],{stdio:"ignore",cwd:e.paths.root})}catch{}finally{ti({project:e,options:r})}};switch(e.packageManager){case"pnpm":break;case"bun":n(),await ZR({project:e,options:r}),await s(),(0,dt.rmSync)(Cn.default.join(e.paths.root,"yarn.lock"),{force:!0});break;case"npm":n(),await s();break;case"yarn":n(),await s();break}}var R6={detect:JR,read:S6,create:x6,remove:D6,clean:A6,convertLock:C6};Q();var to={name:"npm",lock:"package-lock.json"};async function XR(t){let e=ha.default.join(t.workspaceRoot,to.lock),r=Cl({workspaceRoot:t.workspaceRoot});return(0,xr.existsSync)(e)||r===to.name}async function T6(t){if(!await XR(t))throw new qe("Not an npm project",{type:"package_manager-unexpected"});let e=vt(t),{name:r,description:i}=_a(t),n=s0({workspaces:e.workspaces});return{name:r,description:i,packageManager:to.name,paths:Rl({root:t.workspaceRoot,lockFile:to.lock}),workspaceData:{globs:n,workspaces:Tl({workspaceGlobs:n,...t})}}}async function k6(t){let{project:e,options:r,to:i,logger:n}=t,s=e.workspaceData.globs.length>0;n.mainStep(Mi({packageManager:to.name,action:"create",project:e}));let o=vt({workspaceRoot:e.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${ha.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${i.name}@${i.version}`,s?(n.rootStep(`adding "workspaces" field to ${ha.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,r!=null&&r.dry||(0,xr.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),Li({workspace:{name:"root",paths:e.paths},project:e,to:i,logger:n,options:r}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{Li({workspace:a,project:e,to:i,logger:n,options:r})})):r!=null&&r.dry||(0,xr.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function O6(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(Mi({packageManager:to.name,action:"remove",project:e}));let s=vt({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,xr.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,xr.rm)(a,{recursive:!0,force:!0})))}catch{throw new qe("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function F6(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${ha.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,xr.rmSync)(e.paths.lockfile,{force:!0})}async function P6(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":ti({project:e,options:r});break;case"bun":ti({project:e,options:r});break;case"npm":break;case"yarn":ti({project:e,options:r});break}}var I6={detect:XR,read:T6,create:k6,remove:O6,clean:F6,convertLock:P6};Q();var Rn={name:"yarn",lock:"yarn.lock"};async function QR(t){let e=ro.default.join(t.workspaceRoot,Rn.lock),r=Cl({workspaceRoot:t.workspaceRoot});return(0,Dr.existsSync)(e)||r===Rn.name}async function L6(t){if(!await QR(t))throw new qe("Not a yarn project",{type:"package_manager-unexpected"});let e=vt(t),{name:r,description:i}=_a(t),n=s0({workspaces:e.workspaces});return{name:r,description:i,packageManager:Rn.name,paths:Rl({root:t.workspaceRoot,lockFile:Rn.lock}),workspaceData:{globs:n,workspaces:Tl({workspaceGlobs:n,...t})}}}async function B6(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(Mi({packageManager:Rn.name,action:"create",project:e}));let o=vt({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${ro.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${ro.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,Dr.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),Li({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{Li({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,Dr.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function N6(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(Mi({packageManager:Rn.name,action:"remove",project:e}));let s=vt({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Dr.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Dr.rm)(a,{recursive:!0,force:!0})))}catch{throw new qe("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function M6(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${ro.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,Dr.rmSync)(e.paths.lockfile,{force:!0})}async function j6(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${ro.default.relative(e.paths.root,e.paths.lockfile)} to ${Rn.lock}`)};switch(e.packageManager){case"pnpm":ti({project:e,options:r});break;case"bun":n(),await ZR({project:e,options:r});break;case"npm":ti({project:e,options:r});break;case"yarn":break}}var q6={detect:QR,read:L6,create:B6,remove:N6,clean:M6,convertLock:j6};Q();var io={name:"bun",lock:"bun.lockb"};async function eT(t){let e=fa.default.join(t.workspaceRoot,io.lock),r=Cl({workspaceRoot:t.workspaceRoot});return(0,Ar.existsSync)(e)||r===io.name}async function U6(t){if(!await eT(t))throw new qe("Not a bun project",{type:"package_manager-unexpected"});let e=vt(t),{name:r,description:i}=_a(t),n=s0({workspaces:e.workspaces});return{name:r,description:i,packageManager:io.name,paths:Rl({root:t.workspaceRoot,lockFile:io.lock}),workspaceData:{globs:n,workspaces:Tl({workspaceGlobs:n,...t})}}}async function H6(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;if(!v6({project:e}))throw new qe("Unable to convert project to bun - workspace globs unsupported",{type:"bun-workspace_glob_error"});i.mainStep(Mi({packageManager:io.name,action:"create",project:e}));let o=vt({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${fa.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${fa.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,Ar.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),Li({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{Li({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,Ar.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function $6(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(Mi({packageManager:io.name,action:"remove",project:e}));let s=vt({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Ar.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Ar.rm)(a,{recursive:!0,force:!0})))}catch{throw new qe("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function z6(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${fa.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,Ar.rmSync)(e.paths.lockfile,{force:!0})}async function G6(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":ti({project:e,options:r});break;case"bun":break;case"npm":ti({project:e,options:r});break;case"yarn":ti({project:e,options:r});break}}var W6={detect:eT,read:U6,create:H6,remove:$6,clean:z6,convertLock:G6},Qs={pnpm:R6,yarn:q6,npm:I6,bun:W6};Q();async function kl({root:t}){let{exists:e,absolute:r}=E6({directory:t});if(!e)throw new qe(`Could not find directory at ${r}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:i,read:n}of Object.values(Qs))if(await i({workspaceRoot:r}))return n({workspaceRoot:r});throw new qe("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}Q();var Xs=2,o0=class{constructor({interactive:t,dry:e}={}){this.interactive=t!=null?t:!0,this.dry=e!=null?e:!1,this.step=1}logger(...t){this.interactive&&console.log(...t)}indented(t,...e){this.logger(" ".repeat(Xs*t),...e)}header(t){this.blankLine(),this.logger(Pt.default.bold(t))}installerFrames(){let t=`${" ".repeat(Xs)} - ${this.dry?Pt.default.yellow("SKIPPED | "):Pt.default.green("OK | ")}`;return[`${t} `,`${t}> `,`${t}>> `,`${t}>>>`]}gradient(t){return(0,tT.default)("#0099F7","#F11712")(t.toString())}hero(){this.logger(Pt.default.bold(this.gradient(`
|
58
|
+
`)}`))),s&&(Li({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{Li({workspace:a,project:e,to:r,logger:i,options:n})}))}async function A6(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(Mi({action:"remove",packageManager:Bi.name,project:e}));let s=vt({workspaceRoot:e.paths.root});if(e.paths.workspaceConfig&&n&&(r.subStep('removing "pnpm-workspace.yaml"'),i!=null&&i.dry||(0,dt.rmSync)(e.paths.workspaceConfig,{force:!0})),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,dt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,dt.rm)(a,{recursive:!0,force:!0})))}catch{throw new qe("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function C6(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${An.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,dt.rmSync)(e.paths.lockfile,{force:!0})}async function R6(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${An.default.relative(e.paths.root,e.paths.lockfile)} to ${Bi.lock}`)},s=async()=>{if(!(r!=null&&r.dry)&&(0,dt.existsSync)(e.paths.lockfile))try{await(0,WR.default)(Bi.name,["import"],{stdio:"ignore",cwd:e.paths.root})}catch{}finally{ti({project:e,options:r})}};switch(e.packageManager){case"pnpm":break;case"bun":n(),await XR({project:e,options:r}),await s(),(0,dt.rmSync)(An.default.join(e.paths.root,"yarn.lock"),{force:!0});break;case"npm":n(),await s();break;case"yarn":n(),await s();break}}var T6={detect:QR,read:x6,create:D6,remove:A6,clean:C6,convertLock:R6};Q();var eo={name:"npm",lock:"package-lock.json"};async function eT(t){let e=la.default.join(t.workspaceRoot,eo.lock),r=Cl({workspaceRoot:t.workspaceRoot});return(0,xr.existsSync)(e)||r===eo.name}async function k6(t){if(!await eT(t))throw new qe("Not an npm project",{type:"package_manager-unexpected"});let e=vt(t),{name:r,description:i}=ga(t),n=s0({workspaces:e.workspaces});return{name:r,description:i,packageManager:eo.name,paths:Rl({root:t.workspaceRoot,lockFile:eo.lock}),workspaceData:{globs:n,workspaces:Tl({workspaceGlobs:n,...t})}}}async function O6(t){let{project:e,options:r,to:i,logger:n}=t,s=e.workspaceData.globs.length>0;n.mainStep(Mi({packageManager:eo.name,action:"create",project:e}));let o=vt({workspaceRoot:e.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${la.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${i.name}@${i.version}`,s?(n.rootStep(`adding "workspaces" field to ${la.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,r!=null&&r.dry||(0,xr.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),Li({workspace:{name:"root",paths:e.paths},project:e,to:i,logger:n,options:r}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{Li({workspace:a,project:e,to:i,logger:n,options:r})})):r!=null&&r.dry||(0,xr.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function F6(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(Mi({packageManager:eo.name,action:"remove",project:e}));let s=vt({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,xr.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,xr.rm)(a,{recursive:!0,force:!0})))}catch{throw new qe("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function P6(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${la.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,xr.rmSync)(e.paths.lockfile,{force:!0})}async function I6(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":ti({project:e,options:r});break;case"bun":ti({project:e,options:r});break;case"npm":break;case"yarn":ti({project:e,options:r});break}}var L6={detect:eT,read:k6,create:O6,remove:F6,clean:P6,convertLock:I6};Q();var Cn={name:"yarn",lock:"yarn.lock"};async function tT(t){let e=to.default.join(t.workspaceRoot,Cn.lock),r=Cl({workspaceRoot:t.workspaceRoot});return(0,Dr.existsSync)(e)||r===Cn.name}async function B6(t){if(!await tT(t))throw new qe("Not a yarn project",{type:"package_manager-unexpected"});let e=vt(t),{name:r,description:i}=ga(t),n=s0({workspaces:e.workspaces});return{name:r,description:i,packageManager:Cn.name,paths:Rl({root:t.workspaceRoot,lockFile:Cn.lock}),workspaceData:{globs:n,workspaces:Tl({workspaceGlobs:n,...t})}}}async function N6(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(Mi({packageManager:Cn.name,action:"create",project:e}));let o=vt({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${to.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${to.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,Dr.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),Li({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{Li({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,Dr.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function M6(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(Mi({packageManager:Cn.name,action:"remove",project:e}));let s=vt({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Dr.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Dr.rm)(a,{recursive:!0,force:!0})))}catch{throw new qe("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function j6(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${to.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,Dr.rmSync)(e.paths.lockfile,{force:!0})}async function q6(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${to.default.relative(e.paths.root,e.paths.lockfile)} to ${Cn.lock}`)};switch(e.packageManager){case"pnpm":ti({project:e,options:r});break;case"bun":n(),await XR({project:e,options:r});break;case"npm":ti({project:e,options:r});break;case"yarn":break}}var U6={detect:tT,read:B6,create:N6,remove:M6,clean:j6,convertLock:q6};Q();var ro={name:"bun",lock:"bun.lockb"};async function rT(t){let e=ha.default.join(t.workspaceRoot,ro.lock),r=Cl({workspaceRoot:t.workspaceRoot});return(0,Ar.existsSync)(e)||r===ro.name}async function H6(t){if(!await rT(t))throw new qe("Not a bun project",{type:"package_manager-unexpected"});let e=vt(t),{name:r,description:i}=ga(t),n=s0({workspaces:e.workspaces});return{name:r,description:i,packageManager:ro.name,paths:Rl({root:t.workspaceRoot,lockFile:ro.lock}),workspaceData:{globs:n,workspaces:Tl({workspaceGlobs:n,...t})}}}async function $6(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;if(!w6({project:e}))throw new qe("Unable to convert project to bun - workspace globs unsupported",{type:"bun-workspace_glob_error"});i.mainStep(Mi({packageManager:ro.name,action:"create",project:e}));let o=vt({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${ha.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${ha.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,Ar.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),Li({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(a=>{Li({workspace:a,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,Ar.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function z6(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(Mi({packageManager:ro.name,action:"remove",project:e}));let s=vt({workspaceRoot:e.paths.root});if(n&&(r.subStep(`removing "workspaces" field in ${e.name} root "package.json"`),delete s.workspaces),r.subStep(`removing "packageManager" field in ${e.name} root "package.json"`),delete s.packageManager,!(i!=null&&i.dry)){(0,Ar.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(a=>a.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(a=>(0,Ar.rm)(a,{recursive:!0,force:!0})))}catch{throw new qe("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function G6(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${ha.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,Ar.rmSync)(e.paths.lockfile,{force:!0})}async function W6(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":ti({project:e,options:r});break;case"bun":break;case"npm":ti({project:e,options:r});break;case"yarn":ti({project:e,options:r});break}}var V6={detect:rT,read:H6,create:$6,remove:z6,clean:G6,convertLock:W6},Xs={pnpm:T6,yarn:U6,npm:L6,bun:V6};Q();async function kl({root:t}){let{exists:e,absolute:r}=v6({directory:t});if(!e)throw new qe(`Could not find directory at ${r}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:i,read:n}of Object.values(Xs))if(await i({workspaceRoot:r}))return n({workspaceRoot:r});throw new qe("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}Q();var Js=2,o0=class{constructor({interactive:t,dry:e}={}){this.interactive=t!=null?t:!0,this.dry=e!=null?e:!1,this.step=1}logger(...t){this.interactive&&console.log(...t)}indented(t,...e){this.logger(" ".repeat(Js*t),...e)}header(t){this.blankLine(),this.logger(Pt.default.bold(t))}installerFrames(){let t=`${" ".repeat(Js)} - ${this.dry?Pt.default.yellow("SKIPPED | "):Pt.default.green("OK | ")}`;return[`${t} `,`${t}> `,`${t}>> `,`${t}>>>`]}gradient(t){return(0,iT.default)("#0099F7","#F11712")(t.toString())}hero(){this.logger(Pt.default.bold(this.gradient(`
|
59
59
|
>>> TURBOREPO
|
60
|
-
`)))}info(...t){this.logger(...t)}mainStep(t){this.blankLine(),this.logger(`${this.step}. ${Pt.default.underline(t)}`),this.step+=1}subStep(...t){this.logger(" ".repeat(
|
60
|
+
`)))}info(...t){this.logger(...t)}mainStep(t){this.blankLine(),this.logger(`${this.step}. ${Pt.default.underline(t)}`),this.step+=1}subStep(...t){this.logger(" ".repeat(Js),"-",this.dry?Pt.default.yellow("SKIPPED |"):Pt.default.green("OK |"),...t)}subStepFailure(...t){this.logger(" ".repeat(Js),"-",Pt.default.red("ERROR |"),...t)}rootHeader(){this.blankLine(),this.indented(2,"Root:")}rootStep(...t){this.logger(" ".repeat(Js*3),"-",this.dry?Pt.default.yellow("SKIPPED |"):Pt.default.green("OK |"),...t)}workspaceHeader(){this.blankLine(),this.indented(2,"Workspaces:")}workspaceStep(...t){this.logger(" ".repeat(Js*3),"-",this.dry?Pt.default.yellow("SKIPPED |"):Pt.default.green("OK |"),...t)}blankLine(){this.logger()}error(...t){console.error(...t)}};Q();var vR={npm:[{name:"npm",template:"npm",command:"npm",installArgs:["install"],version:"latest",executable:"npx",semver:"*",default:!0}],pnpm:[{name:"pnpm6",template:"pnpm",command:"pnpm",installArgs:["install"],version:"latest-6",executable:"pnpx",semver:"6.x"},{name:"pnpm",template:"pnpm",command:"pnpm",installArgs:["install","--fix-lockfile"],version:"latest",executable:"pnpm dlx",semver:">=7",default:!0}],yarn:[{name:"yarn",template:"yarn",command:"yarn",installArgs:["install"],version:"1.x",executable:"npx",semver:"<2",default:!0},{name:"berry",template:"berry",command:"yarn",installArgs:["install","--no-immutable"],version:"stable",executable:"yarn dlx",semver:">=2"}],bun:[{name:"bun",template:"bun",command:"bun",installArgs:["install"],version:"latest",executable:"bunx",semver:"^1.0.1",default:!0}]};function Ol(t){let{version:e,name:r}=t;return e?vR[r].find(i=>(0,oT.satisfies)(e,i.semver)):vR[r].find(i=>i.default)}async function Fl(t){let{to:e,logger:r,options:i}=t,n=r!=null?r:new o0(i),s=Ol(e);if(!s)throw new qe("Unsupported package manager version.",{type:"package_manager-unsupported_version"});if(n.subStep(`running "${s.command} ${s.installArgs.join(" ")}"`),!(i!=null&&i.dry)){let o;n.interactive&&(o=(0,sT.default)({text:"installing dependencies...",spinner:{frames:n.installerFrames()}}).start());try{await(0,nT.default)(s.command,s.installArgs,{cwd:t.project.paths.root}),o&&o.stop(),n.subStep("dependencies installed")}catch(a){throw n.subStepFailure("failed to install dependencies"),a}}}Q();async function uT({project:t,convertTo:e,logger:r,options:i}){if(r.header(`Converting project from ${t.packageManager} to ${e.name}.`),t.packageManager===e.name)throw new qe("You are already using this package manager",{type:"package_manager-already_in_use"});if(!e.version)throw new qe(`${e.name} is not installed, or could not be located`,{type:"package_manager-could_not_be_found"});let n=e;await Xs[t.packageManager].remove({project:t,to:n,logger:r,options:i}),await Xs[n.name].create({project:t,to:n,logger:r,options:i}),r.mainStep("Installing dependencies"),i!=null&&i.skipInstall?r.subStep(aT.default.yellow("Skipping install")):(await Xs[n.name].convertLock({project:t,to:n,logger:r,options:i}),await Fl({project:t,to:n,logger:r,options:i})),r.mainStep(`Cleaning up ${t.packageManager} workspaces`),await Xs[t.packageManager].clean({project:t,logger:r})}Q();async function cT({root:t,to:e,options:r}){let i=new o0({...r,interactive:!1}),[n,s]=await Promise.all([kl({root:t}),$R()]);await uT({project:n,convertTo:{name:e,version:s[e]},logger:i,options:r})}var ji=require("child_process"),lT=oe(require("path")),hT=require("rimraf"),fT=`
|
61
61
|
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
62
62
|
|
63
63
|
# dependencies
|
@@ -82,9 +82,9 @@ yarn-error.log*
|
|
82
82
|
|
83
83
|
# vercel
|
84
84
|
.vercel
|
85
|
-
`,
|
85
|
+
`,Y6="git rev-parse --is-inside-work-tree",K6="hg --cwd . root";function Z6(){try{return(0,ji.execSync)(Y6,{stdio:"ignore"}),!0}catch{}return!1}function J6(){try{return(0,ji.execSync)(K6,{stdio:"ignore"}),!0}catch{}return!1}function dT(t,e){let r=!1;try{return Z6()||J6()?!1:((0,ji.execSync)("git init",{stdio:"ignore"}),(0,ji.execSync)("git add -A",{stdio:"ignore"}),r=!0,(0,ji.execSync)("git checkout -b main",{stdio:"ignore"}),mT(e),!0)}catch{if(r)try{(0,hT.sync)(lT.default.join(t,".git"))}catch{}return!1}}function a0(t){try{return mT(t),!0}catch{return!1}}function pT(){try{X6()}catch{}}function X6(){(0,ji.execSync)("git add -A",{stdio:"ignore"})}function mT(t){(0,ji.execSync)(`git commit --author="Turbobot <turbobot@vercel.com>" -am "${t}"`,{stdio:"ignore"})}var yT=require("child_process"),u0=oe(require("dns")),gT=oe(require("url"));function Q6(){if(process.env.https_proxy)return process.env.https_proxy;try{let t=(0,yT.execSync)("npm config get https-proxy").toString().trim();return t!=="null"?t:void 0}catch{}}function _T(){return new Promise(t=>{u0.default.lookup("registry.yarnpkg.com",e=>{if(!e){t(!0);return}let r=Q6();if(!r){t(!1);return}let{hostname:i}=gT.default.parse(r);if(!i){t(!1);return}u0.default.lookup(i,n=>{t(n===null)})})})}var bT={name:"package-manager"};async function ET(t){let{project:e,prompts:r}=t,{root:i,packageManager:n}=r;if(n&&e.packageManager!==n.name)await cT({root:i,to:n.name,options:{skipInstall:!0}});else return{result:"not-applicable",...bT};return{result:"success",...bT}}var c0=oe(require("path")),qi=require("fs-extra");var e4=new Set(["basic","default"]);function Pl(t){return e4.has(t)}var nr=class extends Error{constructor(r,i){var n,s;super(r);this.name="TransformError",this.transform=(n=i==null?void 0:i.transform)!=null?n:"unknown",this.fatal=(s=i==null?void 0:i.fatal)!=null?s:!0,Error.captureStackTrace(this,nr)}};var Il={name:"official-starter"};async function vT(t){var c;let{prompts:e,example:r,opts:i}=t,n=Pl(r.name);if(!(!r.repo||r.repo.username==="vercel"&&r.repo.name==="turbo"))return{result:"not-applicable",...Il};let o=c0.default.join(e.root,"package.json"),a=c0.default.join(e.root,"meta.json"),u=(0,qi.existsSync)(o);try{(0,qi.rmSync)(a,{force:!0})}catch{}if(u){let l;try{l=(0,qi.readJsonSync)(o)}catch{throw new nr("Unable to read package.json",{transform:Il.name,fatal:!1})}if(l){if(n&&(l.name=e.projectName),(c=l.devDependencies)!=null&&c.turbo)if(i.turboVersion)l.devDependencies.turbo=i.turboVersion;else{let h=wl().version;l.devDependencies.turbo=`^${h}`}try{(0,qi.writeJsonSync)(o,l,{spaces:2})}catch{throw new nr("Unable to write package.json",{transform:Il.name,fatal:!1})}}}return{result:"success",...Il}}var wT=oe(require("path")),h0=oe(require("fs-extra"));var l0={name:"git-ignore"};async function ST(t){let{prompts:e}=t,r=wT.default.join(e.root,".gitignore");try{if(!h0.default.existsSync(r))h0.default.writeFileSync(r,fT);else return{result:"not-applicable",...l0}}catch{throw new nr("Unable to write .gitignore",{transform:l0.name,fatal:!1})}return{result:"success",...l0}}var Ll=require("fs-extra"),xT={name:"pnpm-eslint"},t4={"eslint.workingDirectories":[{mode:"auto"}]};async function DT(t){let{project:e,prompts:r}=t,{packageManager:i}=r;if((i==null?void 0:i.name)==="pnpm")await(0,Ll.mkdir)(`${e.paths.root}/.vscode`,{recursive:!0}),await(0,Ll.writeJson)(`${e.paths.root}/.vscode/settings.json`,t4,{spaces:2});else return{result:"not-applicable",...xT};return{result:"success",...xT}}var AT=[vT,ST,ET,DT];var f0=oe(require("inquirer"));async function CT({dir:t}){let e=await f0.default.prompt({type:"input",name:"projectDirectory",message:"Where would you like to create your turborepo?",when:!t,default:"./my-turborepo",validate:i=>{let{valid:n,error:s}=Fu(i);return!n&&s?s:!0},filter:i=>i.trim()}),{projectDirectory:r=t}=e;return Fu(r)}async function RT({manager:t,skipTransforms:e}){if(e)return;let r=await Do(),i=await f0.default.prompt({name:"packageManagerInput",type:"list",message:"Which package manager do you want to use?",when:!t||!r[t],choices:[{pm:"npm",label:"npm workspaces"},{pm:"pnpm",label:"pnpm workspaces"},{pm:"yarn",label:"yarn workspaces"},{pm:"bun",label:"bun workspaces (beta)"}].map(({pm:s,label:o})=>({name:o,value:s,disabled:r[s]?!1:"not installed"}))}),{packageManagerInput:n=t}=i;return{name:n,version:r[n]}}var{turboGradient:d0,turboLoader:i4,info:TT,error:ba,warn:p0}=ue;function n4(t){var e,r,i,n,s,o;(e=t.telemetry)==null||e.trackOptionPackageManager(t.packageManager),(r=t.telemetry)==null||r.trackOptionSkipInstall(t.skipInstall),(i=t.telemetry)==null||i.trackOptionSkipTransforms(t.skipTransforms),(n=t.telemetry)==null||n.trackOptionExample(t.example),(s=t.telemetry)==null||s.trackOptionTurboVersion(t.turboVersion),(o=t.telemetry)==null||o.trackOptionExamplePath(t.examplePath)}function m0(t,e){if(e==null||e.trackCommandStatus({command:"create",status:"error"}),t instanceof nr)ba(et.default.bold(t.transform),et.default.red(t.message)),t.fatal&&process.exit(1);else if(t instanceof qe&&t.type!=="unknown")ba(et.default.red(t.message)),process.exit(1);else if(t instanceof Ms)ba(et.default.red("Unable to download template from Github")),ba(et.default.red(t.message)),process.exit(1);else throw t}var kT={build:"Build",dev:"Develop",test:"Test",lint:"Lint"};async function y0(t,e){var M,S,D;(M=e.telemetry)==null||M.trackCommandStatus({command:"create",status:"start"}),(S=e.telemetry)==null||S.trackArgumentDirectory(!!t),n4(e);let{packageManager:r,skipInstall:i,skipTransforms:n}=e;ue.log(et.default.bold(d0(`
|
86
86
|
>>> TURBOREPO
|
87
|
-
`))),
|
87
|
+
`))),TT("Welcome to Turborepo! Let's get you set up with a new codebase."),ue.log();let[s,o]=await Promise.all([_T(),Do()]);s||(ba("You appear to be offline. Please check your network connection and try again."),process.exit(1));let{root:a,projectName:u}=await CT({dir:t}),c=_a.default.relative(process.cwd(),a),l=c==="",h=await RT({manager:r,skipTransforms:n});r&&e.skipTransforms&&p0("--skip-transforms conflicts with <package-manager>. The package manager argument will be ignored.");let{example:f,examplePath:d}=e,m=f&&f!=="default"?f:"basic",y={};try{y=await Fy({appPath:a,example:m,isDefaultExample:Pl(m),examplePath:d})}catch(j){m0(j,e.telemetry)}let{hasPackageJson:p,availableScripts:v,repoInfo:C}=y;dT(a,`feat(create-turbo): create ${m}`);let k={};try{k=await kl({root:a})}catch(j){m0(j,e.telemetry)}if(!n)for(let j of AT)try{let W=await j({example:{repo:C,name:m},project:k,prompts:{projectName:u,root:a,packageManager:h},opts:e});W.result==="success"&&(pT(),a0(`feat(create-turbo): apply ${W.name} transform`))}catch(W){m0(W,e.telemetry)}let P=n||!h?{name:k.packageManager,version:o[k.packageManager]}:h;if(TT("Created a new Turborepo with the following:"),ue.log(),k.workspaceData.workspaces.length>0){let j=k.workspaceData.workspaces.map(N=>({group:_a.default.relative(a,N.paths.root).split(_a.default.sep)[0]||"",title:_a.default.relative(a,N.paths.root),description:N.description})).sort((N,K)=>N.title.localeCompare(K.title)),W;j.forEach(({group:N,title:K,description:te},ne)=>{(ne===0||N!==W)&&ue.log(et.default.cyan(N)),ue.log(` - ${et.default.bold(K)}${te?`: ${te}`:""}`),W=N})}else ue.log(et.default.cyan("apps")),ue.log(` - ${et.default.bold(u)}`);if(ue.log(),p&&!i){if(e.skipTransforms&&!o[k.packageManager])p0(`Unable to install dependencies - "${m}" uses "${k.packageManager}" which could not be found.`),p0(`Try running without "--skip-transforms" to convert "${m}" to a package manager that is available on your system.`),ue.log();else if(P.version){ue.log("Installing packages. This might take a couple of minutes."),ue.log();let j=i4("Installing dependencies...").start();await Fl({project:k,to:P,options:{interactive:!1}}),a0("feat(create-turbo): install dependencies"),j.stop()}}l?ue.log(`${et.default.bold(d0(">>> Success!"))} Your new Turborepo is ready.`):ue.log(`${et.default.bold(d0(">>> Success!"))} Created a new Turborepo at "${c}".`);let F=Ol(P);F&&p&&(ue.log(`Inside ${l?"this":"that"} directory, you can run several commands:`),ue.log(),v.filter(j=>kT[j]).forEach(j=>{ue.log(et.default.cyan(` ${F.command} run ${j}`)),ue.log(` ${kT[j]} all apps and packages`),ue.log()}),ue.log("Turborepo will cache locally by default. For an additional"),ue.log("speed boost, enable Remote Caching with Vercel by"),ue.log("entering the following command:"),ue.log(),ue.log(et.default.cyan(` ${F.executable} turbo login`)),ue.log(),ue.log("We suggest that you begin by typing:"),ue.log(),l||ue.log(` ${et.default.cyan("cd")} ${c}`),ue.log(et.default.cyan(` ${F.executable} turbo login`)),ue.log()),(D=e.telemetry)==null||D.trackCommandStatus({command:"create",status:"end"})}var Bl,IT=new PT.ProxyAgent;OT.default.globalAgent=IT;FT.default.globalAgent=IT;var b0=new Ea.Command;b0.name(g0.default.bold(ue.turboGradient("create-turbo"))).description("Create a new Turborepo").usage(`${g0.default.bold("<project-directory>")} [options]`).hook("preAction",async(t,e)=>{let{telemetry:r}=await Wy({packageInfo:{name:"create-turbo",version:_0.default.version}});e.addOption(new Ea.Option("--telemetry").default(r).hideHelp()),Bl=r}).hook("postAction",async()=>{await(Bl==null?void 0:Bl.close())}).argument("[project-directory]").addOption(new Ea.Option("-m, --package-manager <package-manager>","Specify the package manager to use").choices(["npm","yarn","pnpm","bun"])).option("--skip-install","Do not run a package manager install after creating the project",!1).option("--skip-transforms","Do not run any code transformation after creating the project",!1).option("--turbo-version <version>","Use a specific version of turbo (default: latest)").option("-e, --example [name]|[github-url]",`
|
88
88
|
An example to bootstrap the app with. You can use an example name
|
89
89
|
from the official Turborepo repo or a GitHub URL. The URL can use
|
90
90
|
any branch and/or subdirectory
|
@@ -93,7 +93,7 @@ yarn-error.log*
|
|
93
93
|
a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).
|
94
94
|
In this case, you must specify the path to the example separately:
|
95
95
|
--example-path foo/bar
|
96
|
-
`).version(
|
96
|
+
`).version(_0.default.version,"-v, --version","Output the current version").helpOption("-h, --help","Display help for command").action(y0);Vy(b0);b0.parseAsync().then(Yy).catch(async t=>{ue.log(),ue.error("Unexpected error. Please report it as a bug:"),ue.log(t),ue.log(),await Yy(),process.exit(1)});
|
97
97
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
98
98
|
/*! Bundled license information:
|
99
99
|
|