@turbo/codemod 1.13.1-canary.1 → 1.13.1-canary.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +26 -26
- package/dist/transforms/add-package-manager.js +21 -21
- package/dist/transforms/clean-globs.js +40 -40
- package/dist/transforms/create-turbo-config.js +27 -27
- package/dist/transforms/migrate-env-var-dependencies.js +40 -40
- package/dist/transforms/set-default-outputs.js +40 -40
- package/dist/transforms/stabilize-env-mode.js +40 -40
- package/dist/transforms/transform-env-literals-to-wildcards.js +40 -40
- package/package.json +4 -4
@@ -1,46 +1,46 @@
|
|
1
|
-
"use strict";var
|
1
|
+
"use strict";var y_=Object.create;var Kn=Object.defineProperty;var g_=Object.getOwnPropertyDescriptor;var E_=Object.getOwnPropertyNames;var D_=Object.getPrototypeOf,__=Object.prototype.hasOwnProperty;var H=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Oh=(t,e)=>{for(var r in e)Kn(t,r,{get:e[r],enumerable:!0})},Th=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of E_(e))!__.call(t,n)&&n!==r&&Kn(t,n,{get:()=>e[n],enumerable:!(i=g_(e,n))||i.enumerable});return t};var ie=(t,e,r)=>(r=t!=null?y_(D_(t)):{},Th(e||!t||!t.__esModule?Kn(r,"default",{value:t,enumerable:!0}):r,t)),b_=t=>Th(Kn({},"__esModule",{value:!0}),t);var Ih=H((zk,Ph)=>{Ph.exports=Bh;Bh.sync=S_;var kh=require("fs");function w_(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 Lh(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:w_(e,r)}function Bh(t,e,r){kh.stat(t,function(i,n){r(i,i?!1:Lh(n,t,e))})}function S_(t,e){return Lh(kh.statSync(t),t,e)}});var qh=H((Wk,Hh)=>{Hh.exports=Mh;Mh.sync=A_;var Nh=require("fs");function Mh(t,e,r){Nh.stat(t,function(i,n){r(i,i?!1:jh(n,e))})}function A_(t,e){return jh(Nh.statSync(t),e)}function jh(t,e){return t.isFile()&&v_(t,e)}function v_(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(),u=parseInt("100",8),a=parseInt("010",8),l=parseInt("001",8),c=u|a,h=r&l||r&a&&n===o||r&u&&i===s||r&c&&s===0;return h}});var Uh=H((Kk,$h)=>{var Yk=require("fs"),Vn;process.platform==="win32"||global.TESTING_WINDOWS?Vn=Ih():Vn=qh();$h.exports=au;au.sync=C_;function au(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){au(t,e||{},function(s,o){s?n(s):i(o)})})}Vn(t,e||{},function(i,n){i&&(i.code==="EACCES"||e&&e.ignoreErrors)&&(i=null,n=!1),r(i,n)})}function C_(t,e){try{return Vn.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Zh=H((Vk,Vh)=>{var ei=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Gh=require("path"),R_=ei?";":":",zh=Uh(),Wh=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Yh=(t,e)=>{let r=e.colon||R_,i=t.match(/\//)||ei&&t.match(/\\/)?[""]:[...ei?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],n=ei?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=ei?n.split(r):[""];return ei&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},Kh=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:i,pathExt:n,pathExtExe:s}=Yh(t,e),o=[],u=l=>new Promise((c,h)=>{if(l===i.length)return e.all&&o.length?c(o):h(Wh(t));let f=i[l],d=/^".*"$/.test(f)?f.slice(1,-1):f,g=Gh.join(d,t),y=!d&&/^\.[\\\/]/.test(t)?t.slice(0,2)+g:g;c(a(y,l,0))}),a=(l,c,h)=>new Promise((f,d)=>{if(h===n.length)return f(u(c+1));let g=n[h];zh(l+g,{pathExt:s},(y,E)=>{if(!y&&E)if(e.all)o.push(l+g);else return f(l+g);return f(a(l,c,h+1))})});return r?u(0).then(l=>r(null,l),r):u(0)},x_=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:i,pathExtExe:n}=Yh(t,e),s=[];for(let o=0;o<r.length;o++){let u=r[o],a=/^".*"$/.test(u)?u.slice(1,-1):u,l=Gh.join(a,t),c=!a&&/^\.[\\\/]/.test(t)?t.slice(0,2)+l:l;for(let h=0;h<i.length;h++){let f=c+i[h];try{if(zh.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 Wh(t)};Vh.exports=Kh;Kh.sync=x_});var cu=H((Zk,lu)=>{"use strict";var Jh=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(i=>i.toUpperCase()==="PATH")||"Path"};lu.exports=Jh;lu.exports.default=Jh});var tf=H((Jk,ef)=>{"use strict";var Xh=require("path"),F_=Zh(),O_=cu();function Qh(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=F_.sync(t.command,{path:r[O_({env:r})],pathExt:e?Xh.delimiter:void 0})}catch{}finally{s&&process.chdir(i)}return o&&(o=Xh.resolve(n?t.options.cwd:"",o)),o}function T_(t){return Qh(t)||Qh(t,!0)}ef.exports=T_});var rf=H((Xk,fu)=>{"use strict";var hu=/([()\][%!^"`<>&|;, *?])/g;function k_(t){return t=t.replace(hu,"^$1"),t}function L_(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(hu,"^$1"),e&&(t=t.replace(hu,"^$1")),t}fu.exports.command=k_;fu.exports.argument=L_});var sf=H((Qk,nf)=>{"use strict";nf.exports=/^#!(.*)/});var uf=H((eL,of)=>{"use strict";var B_=sf();of.exports=(t="")=>{let e=t.match(B_);if(!e)return null;let[r,i]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return n==="env"?i:i?`${n} ${i}`:n}});var lf=H((tL,af)=>{"use strict";var pu=require("fs"),P_=uf();function I_(t){let r=Buffer.alloc(150),i;try{i=pu.openSync(t,"r"),pu.readSync(i,r,0,150,0),pu.closeSync(i)}catch{}return P_(r.toString())}af.exports=I_});var pf=H((rL,ff)=>{"use strict";var N_=require("path"),cf=tf(),hf=rf(),M_=lf(),j_=process.platform==="win32",H_=/\.(?:com|exe)$/i,q_=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function $_(t){t.file=cf(t);let e=t.file&&M_(t.file);return e?(t.args.unshift(t.file),t.command=e,cf(t)):t.file}function U_(t){if(!j_)return t;let e=$_(t),r=!H_.test(e);if(t.options.forceShell||r){let i=q_.test(e);t.command=N_.normalize(t.command),t.command=hf.command(t.command),t.args=t.args.map(s=>hf.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 G_(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:U_(i)}ff.exports=G_});var yf=H((iL,mf)=>{"use strict";var du=process.platform==="win32";function mu(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 z_(t,e){if(!du)return;let r=t.emit;t.emit=function(i,n){if(i==="exit"){let s=df(n,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function df(t,e){return du&&t===1&&!e.file?mu(e.original,"spawn"):null}function W_(t,e){return du&&t===1&&!e.file?mu(e.original,"spawnSync"):null}mf.exports={hookChildProcess:z_,verifyENOENT:df,verifyENOENTSync:W_,notFoundError:mu}});var Df=H((nL,ti)=>{"use strict";var gf=require("child_process"),yu=pf(),gu=yf();function Ef(t,e,r){let i=yu(t,e,r),n=gf.spawn(i.command,i.args,i.options);return gu.hookChildProcess(n,i),n}function Y_(t,e,r){let i=yu(t,e,r),n=gf.spawnSync(i.command,i.args,i.options);return n.error=n.error||gu.verifyENOENTSync(n.status,i),n}ti.exports=Ef;ti.exports.spawn=Ef;ti.exports.sync=Y_;ti.exports._parse=yu;ti.exports._enoent=gu});var bf=H((sL,_f)=>{"use strict";_f.exports=t=>{let e=typeof t=="string"?`
|
2
2
|
`:`
|
3
|
-
`.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 Af=H((
|
4
|
-
${i.message}`:
|
5
|
-
`);return y?(i.originalMessage=i.message,i.message=F):i=new Error(F),i.shortMessage=v,i.command=o,i.escapedCommand=u,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=!!a,i.isCanceled=l,i.killed=c&&!a,i};Pf.exports=pb});var Mf=H((cL,_u)=>{"use strict";var es=["stdin","stdout","stderr"],db=t=>es.some(e=>t[e]!==void 0),Nf=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return es.map(i=>t[i]);if(db(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${es.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,es.length);return Array.from({length:r},(i,n)=>e[n])};_u.exports=Nf;_u.exports.node=t=>{let e=Nf(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var jf=H((hL,ts)=>{ts.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&ts.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&ts.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Gf=H((fL,ri)=>{var me=global.process,vr=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"};vr(me)?(Hf=require("assert"),ei=jf(),qf=/^win/i.test(me.platform),rn=require("events"),typeof rn!="function"&&(rn=rn.EventEmitter),me.__signal_exit_emitter__?Ce=me.__signal_exit_emitter__:(Ce=me.__signal_exit_emitter__=new rn,Ce.count=0,Ce.emitted={}),Ce.infinite||(Ce.setMaxListeners(1/0),Ce.infinite=!0),ri.exports=function(t,e){if(!vr(global.process))return function(){};Hf.equal(typeof t,"function","a callback must be provided for exit handler"),ti===!1&&bu();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){Ce.removeListener(r,t),Ce.listeners("exit").length===0&&Ce.listeners("afterexit").length===0&&rs()};return Ce.on(r,t),i},rs=function(){!ti||!vr(global.process)||(ti=!1,ei.forEach(function(e){try{me.removeListener(e,is[e])}catch{}}),me.emit=ns,me.reallyExit=wu,Ce.count-=1)},ri.exports.unload=rs,Cr=function(e,r,i){Ce.emitted[e]||(Ce.emitted[e]=!0,Ce.emit(e,r,i))},is={},ei.forEach(function(t){is[t]=function(){if(vr(global.process)){var r=me.listeners(t);r.length===Ce.count&&(rs(),Cr("exit",null,t),Cr("afterexit",null,t),qf&&t==="SIGHUP"&&(t="SIGINT"),me.kill(me.pid,t))}}}),ri.exports.signals=function(){return ei},ti=!1,bu=function(){ti||!vr(global.process)||(ti=!0,Ce.count+=1,ei=ei.filter(function(e){try{return me.on(e,is[e]),!0}catch{return!1}}),me.emit=Uf,me.reallyExit=$f)},ri.exports.load=bu,wu=me.reallyExit,$f=function(e){vr(global.process)&&(me.exitCode=e||0,Cr("exit",me.exitCode,null),Cr("afterexit",me.exitCode,null),wu.call(me,me.exitCode))},ns=me.emit,Uf=function(e,r){if(e==="exit"&&vr(global.process)){r!==void 0&&(me.exitCode=r);var i=ns.apply(this,arguments);return Cr("exit",me.exitCode,null),Cr("afterexit",me.exitCode,null),i}else return ns.apply(this,arguments)}):ri.exports=function(){return function(){}};var Hf,ei,qf,rn,Ce,rs,Cr,is,ti,bu,wu,$f,ns,Uf});var Wf=H((pL,zf)=>{"use strict";var mb=require("os"),yb=Gf(),gb=1e3*5,Eb=(t,e="SIGTERM",r={})=>{let i=t(e);return Db(t,e,r,i),i},Db=(t,e,r,i)=>{if(!_b(e,r,i))return;let n=wb(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},_b=(t,{forceKillAfterTimeout:e},r)=>bb(t)&&e!==!1&&r,bb=t=>t===mb.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",wb=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return gb;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},Sb=(t,e)=>{t.kill()&&(e.isCanceled=!0)},Ab=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},vb=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((u,a)=>{n=setTimeout(()=>{Ab(t,r,a)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},Cb=({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})`)},Rb=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=yb(()=>{t.kill()});return i.finally(()=>{n()})};zf.exports={spawnedKill:Eb,spawnedCancel:Sb,setupTimeout:vb,validateTimeout:Cb,setExitHandler:Rb}});var Kf=H((dL,Yf)=>{"use strict";var mt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";mt.writable=t=>mt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";mt.readable=t=>mt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";mt.duplex=t=>mt.writable(t)&&mt.readable(t);mt.transform=t=>mt.duplex(t)&&typeof t._transform=="function";Yf.exports=mt});var Zf=H((mL,Vf)=>{"use strict";var{PassThrough:xb}=require("stream");Vf.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 xb({objectMode:n});r&&s.setEncoding(r);let o=0,u=[];return s.on("data",a=>{u.push(a),n?o=u.length:o+=a.length}),s.getBufferedValue=()=>e?u:i?Buffer.concat(u,o):u.join(""),s.getBufferedLength=()=>o,s}});var Jf=H((yL,nn)=>{"use strict";var{constants:Fb}=require("buffer"),Ob=require("stream"),{promisify:Tb}=require("util"),kb=Zf(),Lb=Tb(Ob.pipeline),ss=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Su(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=kb(e);return await new Promise((n,s)=>{let o=u=>{u&&i.getBufferedLength()<=Fb.MAX_LENGTH&&(u.bufferedData=i.getBufferedValue()),s(u)};(async()=>{try{await Lb(t,i),n()}catch(u){o(u)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new ss)})}),i.getBufferedValue()}nn.exports=Su;nn.exports.buffer=(t,e)=>Su(t,{...e,encoding:"buffer"});nn.exports.array=(t,e)=>Su(t,{...e,array:!0});nn.exports.MaxBufferError=ss});var Qf=H((gL,Xf)=>{"use strict";var{PassThrough:Bb}=require("stream");Xf.exports=function(){var t=[],e=new Bb({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 ip=H((EL,rp)=>{"use strict";var tp=Kf(),ep=Jf(),Pb=Qf(),Ib=(t,e)=>{e===void 0||t.stdin===void 0||(tp(e)?e.pipe(t.stdin):t.stdin.end(e))},Nb=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=Pb();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Au=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},vu=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?ep(t,{encoding:e,maxBuffer:i}):ep.buffer(t,{maxBuffer:i})},Mb=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let u=vu(t,{encoding:i,buffer:n,maxBuffer:s}),a=vu(e,{encoding:i,buffer:n,maxBuffer:s}),l=vu(r,{encoding:i,buffer:n,maxBuffer:s*2});try{return await Promise.all([o,u,a,l])}catch(c){return Promise.all([{error:c,signal:c.signal,timedOut:c.timedOut},Au(t,u),Au(e,a),Au(r,l)])}},jb=({input:t})=>{if(tp(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};rp.exports={handleInput:Ib,makeAllStream:Nb,getSpawnedResult:Mb,validateInputSync:jb}});var sp=H((DL,np)=>{"use strict";var Hb=(async()=>{})().constructor.prototype,qb=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(Hb,t)]),$b=(t,e)=>{for(let[r,i]of qb){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},Ub=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)})});np.exports={mergePromise:$b,getSpawnedPromise:Ub}});var ap=H((_L,up)=>{"use strict";var op=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],Gb=/^[\w.-]+$/,zb=/"/g,Wb=t=>typeof t!="string"||Gb.test(t)?t:`"${t.replace(zb,'\\"')}"`,Yb=(t,e)=>op(t,e).join(" "),Kb=(t,e)=>op(t,e).map(r=>Wb(r)).join(" "),Vb=/ +/g,Zb=t=>{let e=[];for(let r of t.trim().split(Vb)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};up.exports={joinCommand:Yb,getEscapedCommand:Kb,parseCommand:Zb}});var ni=H((bL,ii)=>{"use strict";var Jb=require("path"),Cu=require("child_process"),Xb=Df(),Qb=bf(),ew=Af(),tw=xf(),os=If(),cp=Mf(),{spawnedKill:rw,spawnedCancel:iw,setupTimeout:nw,validateTimeout:sw,setExitHandler:ow}=Wf(),{handleInput:uw,getSpawnedResult:aw,makeAllStream:lw,validateInputSync:cw}=ip(),{mergePromise:lp,getSpawnedPromise:hw}=sp(),{joinCommand:hp,parseCommand:fp,getEscapedCommand:pp}=ap(),fw=1e3*1e3*100,pw=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?ew.env({env:s,cwd:i,execPath:n}):s},dp=(t,e,r={})=>{let i=Xb._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:fw,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=pw(r),r.stdio=cp(r),process.platform==="win32"&&Jb.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},sn=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?Qb(e):e,us=(t,e,r)=>{let i=dp(t,e,r),n=hp(t,e),s=pp(t,e);sw(i.options);let o;try{o=Cu.spawn(i.file,i.args,i.options)}catch(p){let m=new Cu.ChildProcess,d=Promise.reject(os({error:p,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return lp(m,d)}let u=hw(o),a=nw(o,i.options,u),l=ow(o,i.options,a),c={isCanceled:!1};o.kill=rw.bind(null,o.kill.bind(o)),o.cancel=iw.bind(null,o,c);let f=tw(async()=>{let[{error:p,exitCode:m,signal:d,timedOut:y},v,F,T]=await aw(o,i.options,l),O=sn(i.options,v),x=sn(i.options,F),B=sn(i.options,T);if(p||m!==0||d!==null){let b=os({error:p,exitCode:m,signal:d,stdout:O,stderr:x,all:B,command:n,escapedCommand:s,parsed:i,timedOut:y,isCanceled:c.isCanceled,killed:o.killed});if(!i.options.reject)return b;throw b}return{command:n,escapedCommand:s,exitCode:0,stdout:O,stderr:x,all:B,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return uw(o,i.options.input),o.all=lw(o,i.options),lp(o,f)};ii.exports=us;ii.exports.sync=(t,e,r)=>{let i=dp(t,e,r),n=hp(t,e),s=pp(t,e);cw(i.options);let o;try{o=Cu.spawnSync(i.file,i.args,i.options)}catch(l){throw os({error:l,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let u=sn(i.options,o.stdout,o.error),a=sn(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let l=os({stdout:u,stderr:a,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 l;throw l}return{command:n,escapedCommand:s,exitCode:0,stdout:u,stderr:a,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};ii.exports.command=(t,e)=>{let[r,...i]=fp(t);return us(r,i,e)};ii.exports.commandSync=(t,e)=>{let[r,...i]=fp(t);return us.sync(r,i,e)};ii.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=cp.node(r),n=process.execArgv.filter(u=>!u.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return us(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var gd=H(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.splitWhen=li.flatten=void 0;function BA(t){return t.reduce((e,r)=>[].concat(e,r),[])}li.flatten=BA;function PA(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}li.splitWhen=PA});var Ed=H(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.isEnoentCodeError=void 0;function IA(t){return t.code==="ENOENT"}ds.isEnoentCodeError=IA});var Dd=H(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.createDirentFromStats=void 0;var $u=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 NA(t,e){return new $u(t,e)}ms.createDirentFromStats=NA});var _d=H(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.removeLeadingDotSegment=gt.escape=gt.makeAbsolute=gt.unixify=void 0;var MA=require("path"),jA=2,HA=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function qA(t){return t.replace(/\\/g,"/")}gt.unixify=qA;function $A(t,e){return MA.resolve(t,e)}gt.makeAbsolute=$A;function UA(t){return t.replace(HA,"\\$2")}gt.escape=UA;function GA(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(jA)}return t}gt.removeLeadingDotSegment=GA});var wd=H((RL,bd)=>{bd.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 vd=H((xL,Ad)=>{var zA=wd(),Sd={"{":"}","(":")","[":"]"},WA=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 u=t[e+1];e+=2;var a=Sd[u];if(a){var l=t.indexOf(a,e);l!==-1&&(e=l+1)}if(t[e]==="!")return!0}else e++}return!1},YA=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=Sd[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};Ad.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(zA(e))return!0;var i=WA;return r&&r.strict===!1&&(i=YA),i(e)}});var Rd=H((FL,Cd)=>{"use strict";var KA=vd(),VA=require("path").posix.dirname,ZA=require("os").platform()==="win32",Uu="/",JA=/\\/g,XA=/[\{\[].*[\}\]]$/,QA=/(^|[^\\])([\{\[]|\([^\)]+$)/,ev=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Cd.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&ZA&&e.indexOf(Uu)<0&&(e=e.replace(JA,Uu)),XA.test(e)&&(e+=Uu),e+="a";do e=VA(e);while(KA(e)||QA.test(e));return e.replace(ev,"$1")}});var ys=H(tt=>{"use strict";tt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;tt.find=(t,e)=>t.nodes.find(r=>r.type===e);tt.exceedsLimit=(t,e,r=1,i)=>i===!1||!tt.isInteger(t)||!tt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;tt.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)};tt.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);tt.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;tt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;tt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);tt.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 gs=H((TL,Fd)=>{"use strict";var xd=ys();Fd.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&xd.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,u="";if(i.value)return(s||o)&&xd.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let a of i.nodes)u+=r(a);return u};return r(t)}});var Td=H((kL,Od)=>{"use strict";Od.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Hd=H((LL,jd)=>{"use strict";var kd=Td(),Fr=(t,e,r)=>{if(kd(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(kd(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),u=String(i.wrap),a=t+":"+e+"="+n+s+o+u;if(Fr.cache.hasOwnProperty(a))return Fr.cache[a].result;let l=Math.min(t,e),c=Math.max(t,e);if(Math.abs(l-c)===1){let d=t+"|"+e;return i.capture?`(${d})`:i.wrap===!1?d:`(?:${d})`}let h=Md(t)||Md(e),f={min:t,max:e,a:l,b:c},p=[],m=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),l<0){let d=c<0?Math.abs(c):1;m=Ld(d,Math.abs(l),f,i),l=f.a=0}return c>=0&&(p=Ld(l,c,f,i)),f.negatives=m,f.positives=p,f.result=tv(m,p,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&p.length+m.length>1&&(f.result=`(?:${f.result})`),Fr.cache[a]=f,f.result};function tv(t,e,r){let i=Gu(t,e,"-",!1,r)||[],n=Gu(e,t,"",!1,r)||[],s=Gu(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function rv(t,e){let r=1,i=1,n=Pd(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Pd(t,r);for(n=Id(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Id(e+1,i)-1;return s=[...s],s.sort(sv),s}function iv(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=nv(t,e),n=i.length,s="",o=0;for(let u=0;u<n;u++){let[a,l]=i[u];a===l?s+=a:a!=="0"||l!=="9"?s+=ov(a,l,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Ld(t,e,r,i){let n=rv(t,e),s=[],o=t,u;for(let a=0;a<n.length;a++){let l=n[a],c=iv(String(o),String(l),i),h="";if(!r.isPadded&&u&&u.pattern===c.pattern){u.count.length>1&&u.count.pop(),u.count.push(c.count[0]),u.string=u.pattern+Nd(u.count),o=l+1;continue}r.isPadded&&(h=uv(l,r,i)),c.string=h+c.pattern+Nd(c.count),s.push(c),o=l+1,u=c}return s}function Gu(t,e,r,i,n){let s=[];for(let o of t){let{string:u}=o;!i&&!Bd(e,"string",u)&&s.push(r+u),i&&Bd(e,"string",u)&&s.push(r+u)}return s}function nv(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function sv(t,e){return t>e?1:e>t?-1:0}function Bd(t,e,r){return t.some(i=>i[e]===r)}function Pd(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Id(t,e){return t-t%Math.pow(10,e)}function Nd(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function ov(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Md(t){return/^-?(0+)\d/.test(t)}function uv(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}}`}}Fr.cache={};Fr.clearCache=()=>Fr.cache={};jd.exports=Fr});var Yu=H((BL,Kd)=>{"use strict";var av=require("util"),Ud=Hd(),qd=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),lv=t=>e=>t===!0?Number(e):String(e),zu=t=>typeof t=="number"||typeof t=="string"&&t!=="",hn=t=>Number.isInteger(+t),Wu=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},cv=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,hv=(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},$d=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},fv=(t,e)=>{t.negatives.sort((o,u)=>o<u?-1:o>u?1:0),t.positives.sort((o,u)=>o<u?-1:o>u?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},Gd=(t,e,r,i)=>{if(r)return Ud(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},zd=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return Ud(t,e,r)},Wd=(...t)=>new RangeError("Invalid range arguments: "+av.inspect(...t)),Yd=(t,e,r)=>{if(r.strictRanges===!0)throw Wd([t,e]);return[]},pv=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},dv=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw Wd([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,u=String(t),a=String(e),l=String(r);r=Math.max(Math.abs(r),1);let c=Wu(u)||Wu(a)||Wu(l),h=c?Math.max(u.length,a.length,l.length):0,f=c===!1&&cv(t,e,i)===!1,p=i.transform||lv(f);if(i.toRegex&&r===1)return Gd($d(t,h),$d(e,h),!0,i);let m={negatives:[],positives:[]},d=F=>m[F<0?"negatives":"positives"].push(Math.abs(F)),y=[],v=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?d(n):y.push(hv(p(n,v),h,f)),n=o?n-r:n+r,v++;return i.toRegex===!0?r>1?fv(m,i):zd(y,null,{wrap:!1,...i}):y},mv=(t,e,r=1,i={})=>{if(!hn(t)&&t.length>1||!hn(e)&&e.length>1)return Yd(t,e,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),u=s>o,a=Math.min(s,o),l=Math.max(s,o);if(i.toRegex&&r===1)return Gd(a,l,!1,i);let c=[],h=0;for(;u?s>=o:s<=o;)c.push(n(s,h)),s=u?s-r:s+r,h++;return i.toRegex===!0?zd(c,null,{wrap:!1,options:i}):c},Es=(t,e,r,i={})=>{if(e==null&&zu(t))return[t];if(!zu(t)||!zu(e))return Yd(t,e,i);if(typeof r=="function")return Es(t,e,1,{transform:r});if(qd(r))return Es(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,hn(r)?hn(t)&&hn(e)?dv(t,e,r,n):mv(t,e,Math.max(Math.abs(r),1),n):r!=null&&!qd(r)?pv(r,n):Es(t,e,1,r)};Kd.exports=Es});var Jd=H((PL,Zd)=>{"use strict";var yv=Yu(),Vd=ys(),gv=(t,e={})=>{let r=(i,n={})=>{let s=Vd.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,u=s===!0||o===!0,a=e.escapeInvalid===!0?"\\":"",l="";if(i.isOpen===!0||i.isClose===!0)return a+i.value;if(i.type==="open")return u?a+i.value:"(";if(i.type==="close")return u?a+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":u?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let c=Vd.reduce(i.nodes),h=yv(...c,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return c.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let c of i.nodes)l+=r(c,i);return l};return r(t)};Zd.exports=gv});var em=H((IL,Qd)=>{"use strict";var Ev=Yu(),Xd=gs(),ci=ys(),Or=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?ci.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(Or(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?Or(n,s,r):n+s);return ci.flatten(i)},Dv=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(n,s={})=>{n.queue=[];let o=s,u=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,u=o.queue;if(n.invalid||n.dollar){u.push(Or(u.pop(),Xd(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){u.push(Or(u.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let h=ci.reduce(n.nodes);if(ci.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=Ev(...h,e);f.length===0&&(f=Xd(n,e)),u.push(Or(u.pop(),f)),n.nodes=[];return}let a=ci.encloseBrace(n),l=n.queue,c=n;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,l=c.queue;for(let h=0;h<n.nodes.length;h++){let f=n.nodes[h];if(f.type==="comma"&&n.type==="brace"){h===1&&l.push(""),l.push("");continue}if(f.type==="close"){u.push(Or(u.pop(),l,a));continue}if(f.value&&f.type!=="open"){l.push(Or(l.pop(),f.value));continue}f.nodes&&i(f,n)}return l};return ci.flatten(i(t))};Qd.exports=Dv});var rm=H((NL,tm)=>{"use strict";tm.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:`
|
6
|
-
`,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 um=H((ML,om)=>{"use strict";var _v=gs(),{MAX_LENGTH:im,CHAR_BACKSLASH:Ku,CHAR_BACKTICK:bv,CHAR_COMMA:wv,CHAR_DOT:Sv,CHAR_LEFT_PARENTHESES:Av,CHAR_RIGHT_PARENTHESES:vv,CHAR_LEFT_CURLY_BRACE:Cv,CHAR_RIGHT_CURLY_BRACE:Rv,CHAR_LEFT_SQUARE_BRACKET:nm,CHAR_RIGHT_SQUARE_BRACKET:sm,CHAR_DOUBLE_QUOTE:xv,CHAR_SINGLE_QUOTE:Fv,CHAR_NO_BREAK_SPACE:Ov,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Tv}=rm(),kv=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(im,r.maxLength):im;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,u=n,a=0,l=t.length,c=0,h=0,f,p={},m=()=>t[c++],d=y=>{if(y.type==="text"&&u.type==="dot"&&(u.type="text"),u&&u.type==="text"&&y.type==="text"){u.value+=y.value;return}return o.nodes.push(y),y.parent=o,y.prev=u,u=y,y};for(d({type:"bos"});c<l;)if(o=s[s.length-1],f=m(),!(f===Tv||f===Ov)){if(f===Ku){d({type:"text",value:(e.keepEscaping?f:"")+m()});continue}if(f===sm){d({type:"text",value:"\\"+f});continue}if(f===nm){a++;let y=!0,v;for(;c<l&&(v=m());){if(f+=v,v===nm){a++;continue}if(v===Ku){f+=m();continue}if(v===sm&&(a--,a===0))break}d({type:"text",value:f});continue}if(f===Av){o=d({type:"paren",nodes:[]}),s.push(o),d({type:"text",value:f});continue}if(f===vv){if(o.type!=="paren"){d({type:"text",value:f});continue}o=s.pop(),d({type:"text",value:f}),o=s[s.length-1];continue}if(f===xv||f===Fv||f===bv){let y=f,v;for(e.keepQuotes!==!0&&(f="");c<l&&(v=m());){if(v===Ku){f+=v+m();continue}if(v===y){e.keepQuotes===!0&&(f+=v);break}f+=v}d({type:"text",value:f});continue}if(f===Cv){h++;let v={type:"brace",open:!0,close:!1,dollar:u.value&&u.value.slice(-1)==="$"||o.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};o=d(v),s.push(o),d({type:"open",value:f});continue}if(f===Rv){if(o.type!=="brace"){d({type:"text",value:f});continue}let y="close";o=s.pop(),o.close=!0,d({type:y,value:f}),h--,o=s[s.length-1];continue}if(f===wv&&h>0){if(o.ranges>0){o.ranges=0;let y=o.nodes.shift();o.nodes=[y,{type:"text",value:_v(o)}]}d({type:"comma",value:f}),o.commas++;continue}if(f===Sv&&h>0&&o.commas===0){let y=o.nodes;if(h===0||y.length===0){d({type:"text",value:f});continue}if(u.type==="dot"){if(o.range=[],u.value+=f,u.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,u.type="text";continue}o.ranges++,o.args=[];continue}if(u.type==="range"){y.pop();let v=y[y.length-1];v.value+=u.value+f,u=v,o.ranges--;continue}d({type:"dot",value:f});continue}d({type:"text",value:f})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(F=>{F.nodes||(F.type==="open"&&(F.isOpen=!0),F.type==="close"&&(F.isClose=!0),F.nodes||(F.type="text"),F.invalid=!0)});let y=s[s.length-1],v=y.nodes.indexOf(o);y.nodes.splice(v,1,...o.nodes)}while(s.length>0);return d({type:"eos"}),n};om.exports=kv});var cm=H((jL,lm)=>{"use strict";var am=gs(),Lv=Jd(),Bv=em(),Pv=um(),Ke=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=Ke.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(Ke.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Ke.parse=(t,e={})=>Pv(t,e);Ke.stringify=(t,e={})=>am(typeof t=="string"?Ke.parse(t,e):t,e);Ke.compile=(t,e={})=>(typeof t=="string"&&(t=Ke.parse(t,e)),Lv(t,e));Ke.expand=(t,e={})=>{typeof t=="string"&&(t=Ke.parse(t,e));let r=Bv(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Ke.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Ke.compile(t,e):Ke.expand(t,e);lm.exports=Ke});var fn=H((HL,mm)=>{"use strict";var Iv=require("path"),Et="\\\\/",hm=`[^${Et}]`,Lt="\\.",Nv="\\+",Mv="\\?",Ds="\\/",jv="(?=.)",fm="[^/]",Vu=`(?:${Ds}|$)`,pm=`(?:^|${Ds})`,Zu=`${Lt}{1,2}${Vu}`,Hv=`(?!${Lt})`,qv=`(?!${pm}${Zu})`,$v=`(?!${Lt}{0,1}${Vu})`,Uv=`(?!${Zu})`,Gv=`[^.${Ds}]`,zv=`${fm}*?`,dm={DOT_LITERAL:Lt,PLUS_LITERAL:Nv,QMARK_LITERAL:Mv,SLASH_LITERAL:Ds,ONE_CHAR:jv,QMARK:fm,END_ANCHOR:Vu,DOTS_SLASH:Zu,NO_DOT:Hv,NO_DOTS:qv,NO_DOT_SLASH:$v,NO_DOTS_SLASH:Uv,QMARK_NO_DOT:Gv,STAR:zv,START_ANCHOR:pm},Wv={...dm,SLASH_LITERAL:`[${Et}]`,QMARK:hm,STAR:`${hm}*?`,DOTS_SLASH:`${Lt}{1,2}(?:[${Et}]|$)`,NO_DOT:`(?!${Lt})`,NO_DOTS:`(?!(?:^|[${Et}])${Lt}{1,2}(?:[${Et}]|$))`,NO_DOT_SLASH:`(?!${Lt}{0,1}(?:[${Et}]|$))`,NO_DOTS_SLASH:`(?!${Lt}{1,2}(?:[${Et}]|$))`,QMARK_NO_DOT:`[^.${Et}]`,START_ANCHOR:`(?:^|[${Et}])`,END_ANCHOR:`(?:[${Et}]|$)`},Yv={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"};mm.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Yv,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:Iv.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?Wv:dm}}});var pn=H($e=>{"use strict";var Kv=require("path"),Vv=process.platform==="win32",{REGEX_BACKSLASH:Zv,REGEX_REMOVE_BACKSLASH:Jv,REGEX_SPECIAL_CHARS:Xv,REGEX_SPECIAL_CHARS_GLOBAL:Qv}=fn();$e.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);$e.hasRegexChars=t=>Xv.test(t);$e.isRegexChar=t=>t.length===1&&$e.hasRegexChars(t);$e.escapeRegex=t=>t.replace(Qv,"\\$1");$e.toPosixSlashes=t=>t.replace(Zv,"/");$e.removeBackslashes=t=>t.replace(Jv,e=>e==="\\"?"":e);$e.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};$e.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:Vv===!0||Kv.sep==="\\";$e.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?$e.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};$e.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};$e.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Sm=H(($L,wm)=>{"use strict";var ym=pn(),{CHAR_ASTERISK:Ju,CHAR_AT:e1,CHAR_BACKWARD_SLASH:dn,CHAR_COMMA:t1,CHAR_DOT:Xu,CHAR_EXCLAMATION_MARK:Qu,CHAR_FORWARD_SLASH:bm,CHAR_LEFT_CURLY_BRACE:ea,CHAR_LEFT_PARENTHESES:ta,CHAR_LEFT_SQUARE_BRACKET:r1,CHAR_PLUS:i1,CHAR_QUESTION_MARK:gm,CHAR_RIGHT_CURLY_BRACE:n1,CHAR_RIGHT_PARENTHESES:Em,CHAR_RIGHT_SQUARE_BRACKET:s1}=fn(),Dm=t=>t===bm||t===dn,_m=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},o1=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],u=[],a=t,l=-1,c=0,h=0,f=!1,p=!1,m=!1,d=!1,y=!1,v=!1,F=!1,T=!1,O=!1,x=!1,B=0,b,S,M={value:"",depth:0,isGlob:!1},U=()=>l>=i,L=()=>a.charCodeAt(l+1),k=()=>(b=S,a.charCodeAt(++l));for(;l<i;){S=k();let A;if(S===dn){F=M.backslashes=!0,S=k(),S===ea&&(v=!0);continue}if(v===!0||S===ea){for(B++;U()!==!0&&(S=k());){if(S===dn){F=M.backslashes=!0,k();continue}if(S===ea){B++;continue}if(v!==!0&&S===Xu&&(S=k())===Xu){if(f=M.isBrace=!0,m=M.isGlob=!0,x=!0,n===!0)continue;break}if(v!==!0&&S===t1){if(f=M.isBrace=!0,m=M.isGlob=!0,x=!0,n===!0)continue;break}if(S===n1&&(B--,B===0)){v=!1,f=M.isBrace=!0,x=!0;break}}if(n===!0)continue;break}if(S===bm){if(s.push(l),o.push(M),M={value:"",depth:0,isGlob:!1},x===!0)continue;if(b===Xu&&l===c+1){c+=2;continue}h=l+1;continue}if(r.noext!==!0&&(S===i1||S===e1||S===Ju||S===gm||S===Qu)===!0&&L()===ta){if(m=M.isGlob=!0,d=M.isExtglob=!0,x=!0,S===Qu&&l===c&&(O=!0),n===!0){for(;U()!==!0&&(S=k());){if(S===dn){F=M.backslashes=!0,S=k();continue}if(S===Em){m=M.isGlob=!0,x=!0;break}}continue}break}if(S===Ju){if(b===Ju&&(y=M.isGlobstar=!0),m=M.isGlob=!0,x=!0,n===!0)continue;break}if(S===gm){if(m=M.isGlob=!0,x=!0,n===!0)continue;break}if(S===r1){for(;U()!==!0&&(A=k());){if(A===dn){F=M.backslashes=!0,k();continue}if(A===s1){p=M.isBracket=!0,m=M.isGlob=!0,x=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&S===Qu&&l===c){T=M.negated=!0,c++;continue}if(r.noparen!==!0&&S===ta){if(m=M.isGlob=!0,n===!0){for(;U()!==!0&&(S=k());){if(S===ta){F=M.backslashes=!0,S=k();continue}if(S===Em){x=!0;break}}continue}break}if(m===!0){if(x=!0,n===!0)continue;break}}r.noext===!0&&(d=!1,m=!1);let I=a,j="",R="";c>0&&(j=a.slice(0,c),a=a.slice(c),h-=c),I&&m===!0&&h>0?(I=a.slice(0,h),R=a.slice(h)):m===!0?(I="",R=a):I=a,I&&I!==""&&I!=="/"&&I!==a&&Dm(I.charCodeAt(I.length-1))&&(I=I.slice(0,-1)),r.unescape===!0&&(R&&(R=ym.removeBackslashes(R)),I&&F===!0&&(I=ym.removeBackslashes(I)));let D={prefix:j,input:t,start:c,base:I,glob:R,isBrace:f,isBracket:p,isGlob:m,isExtglob:d,isGlobstar:y,negated:T,negatedExtglob:O};if(r.tokens===!0&&(D.maxDepth=0,Dm(S)||o.push(M),D.tokens=o),r.parts===!0||r.tokens===!0){let A;for(let N=0;N<s.length;N++){let Y=A?A+1:c,W=s[N],E=t.slice(Y,W);r.tokens&&(N===0&&c!==0?(o[N].isPrefix=!0,o[N].value=j):o[N].value=E,_m(o[N]),D.maxDepth+=o[N].depth),(N!==0||E!=="")&&u.push(E),A=W}if(A&&A+1<t.length){let N=t.slice(A+1);u.push(N),r.tokens&&(o[o.length-1].value=N,_m(o[o.length-1]),D.maxDepth+=o[o.length-1].depth)}D.slashes=s,D.parts=u}return D};wm.exports=o1});var Cm=H((UL,vm)=>{"use strict";var _s=fn(),Ve=pn(),{MAX_LENGTH:bs,POSIX_REGEX_SOURCE:u1,REGEX_NON_SPECIAL_CHARS:a1,REGEX_SPECIAL_CHARS_BACKREF:l1,REPLACEMENTS:Am}=_s,c1=(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=>Ve.escapeRegex(n)).join("..")}return r},hi=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,ra=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Am[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(bs,r.maxLength):bs,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],u=r.capture?"":"?:",a=Ve.isWindows(e),l=_s.globChars(a),c=_s.extglobChars(l),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:p,ONE_CHAR:m,DOTS_SLASH:d,NO_DOT:y,NO_DOT_SLASH:v,NO_DOTS_SLASH:F,QMARK:T,QMARK_NO_DOT:O,STAR:x,START_ANCHOR:B}=l,b=G=>`(${u}(?:(?!${B}${G.dot?d:h}).)*?)`,S=r.dot?"":y,M=r.dot?T:O,U=r.bash===!0?b(r):x;r.capture&&(U=`(${U})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let L={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=Ve.removePrefix(t,L),n=t.length;let k=[],I=[],j=[],R=s,D,A=()=>L.index===n-1,N=L.peek=(G=1)=>t[L.index+G],Y=L.advance=()=>t[++L.index]||"",W=()=>t.slice(L.index+1),E=(G="",ee=0)=>{L.consumed+=G,L.index+=ee},g=G=>{L.output+=G.output!=null?G.output:G.value,E(G.value)},_=()=>{let G=1;for(;N()==="!"&&(N(2)!=="("||N(3)==="?");)Y(),L.start++,G++;return G%2===0?!1:(L.negated=!0,L.start++,!0)},P=G=>{L[G]++,j.push(G)},C=G=>{L[G]--,j.pop()},$=G=>{if(R.type==="globstar"){let ee=L.braces>0&&(G.type==="comma"||G.type==="brace"),z=G.extglob===!0||k.length&&(G.type==="pipe"||G.type==="paren");G.type!=="slash"&&G.type!=="paren"&&!ee&&!z&&(L.output=L.output.slice(0,-R.output.length),R.type="star",R.value="*",R.output=U,L.output+=R.output)}if(k.length&&G.type!=="paren"&&(k[k.length-1].inner+=G.value),(G.value||G.output)&&g(G),R&&R.type==="text"&&G.type==="text"){R.value+=G.value,R.output=(R.output||"")+G.value;return}G.prev=R,o.push(G),R=G},q=(G,ee)=>{let z={...c[ee],conditions:1,inner:""};z.prev=R,z.parens=L.parens,z.output=L.output;let re=(r.capture?"(":"")+z.open;P("parens"),$({type:G,value:ee,output:L.output?"":m}),$({type:"paren",extglob:!0,value:Y(),output:re}),k.push(z)},Z=G=>{let ee=G.close+(r.capture?")":""),z;if(G.type==="negate"){let re=U;if(G.inner&&G.inner.length>1&&G.inner.includes("/")&&(re=b(r)),(re!==U||A()||/^\)+$/.test(W()))&&(ee=G.close=`)$))${re}`),G.inner.includes("*")&&(z=W())&&/^\.[^\\/.]+$/.test(z)){let le=ra(z,{...e,fastpaths:!1}).output;ee=G.close=`)${le})${re})`}G.prev.type==="bos"&&(L.negatedExtglob=!0)}$({type:"paren",extglob:!0,value:D,output:ee}),C("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let G=!1,ee=t.replace(l1,(z,re,le,be,Ee,w)=>be==="\\"?(G=!0,z):be==="?"?re?re+be+(Ee?T.repeat(Ee.length):""):w===0?M+(Ee?T.repeat(Ee.length):""):T.repeat(le.length):be==="."?h.repeat(le.length):be==="*"?re?re+be+(Ee?U:""):U:re?z:`\\${z}`);return G===!0&&(r.unescape===!0?ee=ee.replace(/\\/g,""):ee=ee.replace(/\\+/g,z=>z.length%2===0?"\\\\":z?"\\":"")),ee===t&&r.contains===!0?(L.output=t,L):(L.output=Ve.wrapOutput(ee,L,e),L)}for(;!A();){if(D=Y(),D==="\0")continue;if(D==="\\"){let z=N();if(z==="/"&&r.bash!==!0||z==="."||z===";")continue;if(!z){D+="\\",$({type:"text",value:D});continue}let re=/^\\+/.exec(W()),le=0;if(re&&re[0].length>2&&(le=re[0].length,L.index+=le,le%2!==0&&(D+="\\")),r.unescape===!0?D=Y():D+=Y(),L.brackets===0){$({type:"text",value:D});continue}}if(L.brackets>0&&(D!=="]"||R.value==="["||R.value==="[^")){if(r.posix!==!1&&D===":"){let z=R.value.slice(1);if(z.includes("[")&&(R.posix=!0,z.includes(":"))){let re=R.value.lastIndexOf("["),le=R.value.slice(0,re),be=R.value.slice(re+2),Ee=u1[be];if(Ee){R.value=le+Ee,L.backtrack=!0,Y(),!s.output&&o.indexOf(R)===1&&(s.output=m);continue}}}(D==="["&&N()!==":"||D==="-"&&N()==="]")&&(D=`\\${D}`),D==="]"&&(R.value==="["||R.value==="[^")&&(D=`\\${D}`),r.posix===!0&&D==="!"&&R.value==="["&&(D="^"),R.value+=D,g({value:D});continue}if(L.quotes===1&&D!=='"'){D=Ve.escapeRegex(D),R.value+=D,g({value:D});continue}if(D==='"'){L.quotes=L.quotes===1?0:1,r.keepQuotes===!0&&$({type:"text",value:D});continue}if(D==="("){P("parens"),$({type:"paren",value:D});continue}if(D===")"){if(L.parens===0&&r.strictBrackets===!0)throw new SyntaxError(hi("opening","("));let z=k[k.length-1];if(z&&L.parens===z.parens+1){Z(k.pop());continue}$({type:"paren",value:D,output:L.parens?")":"\\)"}),C("parens");continue}if(D==="["){if(r.nobracket===!0||!W().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(hi("closing","]"));D=`\\${D}`}else P("brackets");$({type:"bracket",value:D});continue}if(D==="]"){if(r.nobracket===!0||R&&R.type==="bracket"&&R.value.length===1){$({type:"text",value:D,output:`\\${D}`});continue}if(L.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(hi("opening","["));$({type:"text",value:D,output:`\\${D}`});continue}C("brackets");let z=R.value.slice(1);if(R.posix!==!0&&z[0]==="^"&&!z.includes("/")&&(D=`/${D}`),R.value+=D,g({value:D}),r.literalBrackets===!1||Ve.hasRegexChars(z))continue;let re=Ve.escapeRegex(R.value);if(L.output=L.output.slice(0,-R.value.length),r.literalBrackets===!0){L.output+=re,R.value=re;continue}R.value=`(${u}${re}|${R.value})`,L.output+=R.value;continue}if(D==="{"&&r.nobrace!==!0){P("braces");let z={type:"brace",value:D,output:"(",outputIndex:L.output.length,tokensIndex:L.tokens.length};I.push(z),$(z);continue}if(D==="}"){let z=I[I.length-1];if(r.nobrace===!0||!z){$({type:"text",value:D,output:D});continue}let re=")";if(z.dots===!0){let le=o.slice(),be=[];for(let Ee=le.length-1;Ee>=0&&(o.pop(),le[Ee].type!=="brace");Ee--)le[Ee].type!=="dots"&&be.unshift(le[Ee].value);re=c1(be,r),L.backtrack=!0}if(z.comma!==!0&&z.dots!==!0){let le=L.output.slice(0,z.outputIndex),be=L.tokens.slice(z.tokensIndex);z.value=z.output="\\{",D=re="\\}",L.output=le;for(let Ee of be)L.output+=Ee.output||Ee.value}$({type:"brace",value:D,output:re}),C("braces"),I.pop();continue}if(D==="|"){k.length>0&&k[k.length-1].conditions++,$({type:"text",value:D});continue}if(D===","){let z=D,re=I[I.length-1];re&&j[j.length-1]==="braces"&&(re.comma=!0,z="|"),$({type:"comma",value:D,output:z});continue}if(D==="/"){if(R.type==="dot"&&L.index===L.start+1){L.start=L.index+1,L.consumed="",L.output="",o.pop(),R=s;continue}$({type:"slash",value:D,output:p});continue}if(D==="."){if(L.braces>0&&R.type==="dot"){R.value==="."&&(R.output=h);let z=I[I.length-1];R.type="dots",R.output+=D,R.value+=D,z.dots=!0;continue}if(L.braces+L.parens===0&&R.type!=="bos"&&R.type!=="slash"){$({type:"text",value:D,output:h});continue}$({type:"dot",value:D,output:h});continue}if(D==="?"){if(!(R&&R.value==="(")&&r.noextglob!==!0&&N()==="("&&N(2)!=="?"){q("qmark",D);continue}if(R&&R.type==="paren"){let re=N(),le=D;if(re==="<"&&!Ve.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(R.value==="("&&!/[!=<:]/.test(re)||re==="<"&&!/<([!=]|\w+>)/.test(W()))&&(le=`\\${D}`),$({type:"text",value:D,output:le});continue}if(r.dot!==!0&&(R.type==="slash"||R.type==="bos")){$({type:"qmark",value:D,output:O});continue}$({type:"qmark",value:D,output:T});continue}if(D==="!"){if(r.noextglob!==!0&&N()==="("&&(N(2)!=="?"||!/[!=<:]/.test(N(3)))){q("negate",D);continue}if(r.nonegate!==!0&&L.index===0){_();continue}}if(D==="+"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){q("plus",D);continue}if(R&&R.value==="("||r.regex===!1){$({type:"plus",value:D,output:f});continue}if(R&&(R.type==="bracket"||R.type==="paren"||R.type==="brace")||L.parens>0){$({type:"plus",value:D});continue}$({type:"plus",value:f});continue}if(D==="@"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){$({type:"at",extglob:!0,value:D,output:""});continue}$({type:"text",value:D});continue}if(D!=="*"){(D==="$"||D==="^")&&(D=`\\${D}`);let z=a1.exec(W());z&&(D+=z[0],L.index+=z[0].length),$({type:"text",value:D});continue}if(R&&(R.type==="globstar"||R.star===!0)){R.type="star",R.star=!0,R.value+=D,R.output=U,L.backtrack=!0,L.globstar=!0,E(D);continue}let G=W();if(r.noextglob!==!0&&/^\([^?]/.test(G)){q("star",D);continue}if(R.type==="star"){if(r.noglobstar===!0){E(D);continue}let z=R.prev,re=z.prev,le=z.type==="slash"||z.type==="bos",be=re&&(re.type==="star"||re.type==="globstar");if(r.bash===!0&&(!le||G[0]&&G[0]!=="/")){$({type:"star",value:D,output:""});continue}let Ee=L.braces>0&&(z.type==="comma"||z.type==="brace"),w=k.length&&(z.type==="pipe"||z.type==="paren");if(!le&&z.type!=="paren"&&!Ee&&!w){$({type:"star",value:D,output:""});continue}for(;G.slice(0,3)==="/**";){let V=t[L.index+4];if(V&&V!=="/")break;G=G.slice(3),E("/**",3)}if(z.type==="bos"&&A()){R.type="globstar",R.value+=D,R.output=b(r),L.output=R.output,L.globstar=!0,E(D);continue}if(z.type==="slash"&&z.prev.type!=="bos"&&!be&&A()){L.output=L.output.slice(0,-(z.output+R.output).length),z.output=`(?:${z.output}`,R.type="globstar",R.output=b(r)+(r.strictSlashes?")":"|$)"),R.value+=D,L.globstar=!0,L.output+=z.output+R.output,E(D);continue}if(z.type==="slash"&&z.prev.type!=="bos"&&G[0]==="/"){let V=G[1]!==void 0?"|$":"";L.output=L.output.slice(0,-(z.output+R.output).length),z.output=`(?:${z.output}`,R.type="globstar",R.output=`${b(r)}${p}|${p}${V})`,R.value+=D,L.output+=z.output+R.output,L.globstar=!0,E(D+Y()),$({type:"slash",value:"/",output:""});continue}if(z.type==="bos"&&G[0]==="/"){R.type="globstar",R.value+=D,R.output=`(?:^|${p}|${b(r)}${p})`,L.output=R.output,L.globstar=!0,E(D+Y()),$({type:"slash",value:"/",output:""});continue}L.output=L.output.slice(0,-R.output.length),R.type="globstar",R.output=b(r),R.value+=D,L.output+=R.output,L.globstar=!0,E(D);continue}let ee={type:"star",value:D,output:U};if(r.bash===!0){ee.output=".*?",(R.type==="bos"||R.type==="slash")&&(ee.output=S+ee.output),$(ee);continue}if(R&&(R.type==="bracket"||R.type==="paren")&&r.regex===!0){ee.output=D,$(ee);continue}(L.index===L.start||R.type==="slash"||R.type==="dot")&&(R.type==="dot"?(L.output+=v,R.output+=v):r.dot===!0?(L.output+=F,R.output+=F):(L.output+=S,R.output+=S),N()!=="*"&&(L.output+=m,R.output+=m)),$(ee)}for(;L.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(hi("closing","]"));L.output=Ve.escapeLast(L.output,"["),C("brackets")}for(;L.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(hi("closing",")"));L.output=Ve.escapeLast(L.output,"("),C("parens")}for(;L.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(hi("closing","}"));L.output=Ve.escapeLast(L.output,"{"),C("braces")}if(r.strictSlashes!==!0&&(R.type==="star"||R.type==="bracket")&&$({type:"maybe_slash",value:"",output:`${p}?`}),L.backtrack===!0){L.output="";for(let G of L.tokens)L.output+=G.output!=null?G.output:G.value,G.suffix&&(L.output+=G.suffix)}return L};ra.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(bs,r.maxLength):bs,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=Am[t]||t;let s=Ve.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:u,ONE_CHAR:a,DOTS_SLASH:l,NO_DOT:c,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:p,START_ANCHOR:m}=_s.globChars(s),d=r.dot?h:c,y=r.dot?f:c,v=r.capture?"":"?:",F={negated:!1,prefix:""},T=r.bash===!0?".*?":p;r.capture&&(T=`(${T})`);let O=S=>S.noglobstar===!0?T:`(${v}(?:(?!${m}${S.dot?l:o}).)*?)`,x=S=>{switch(S){case"*":return`${d}${a}${T}`;case".*":return`${o}${a}${T}`;case"*.*":return`${d}${T}${o}${a}${T}`;case"*/*":return`${d}${T}${u}${a}${y}${T}`;case"**":return d+O(r);case"**/*":return`(?:${d}${O(r)}${u})?${y}${a}${T}`;case"**/*.*":return`(?:${d}${O(r)}${u})?${y}${T}${o}${a}${T}`;case"**/.*":return`(?:${d}${O(r)}${u})?${o}${a}${T}`;default:{let M=/^(.*?)\.(\w+)$/.exec(S);if(!M)return;let U=x(M[1]);return U?U+o+M[2]:void 0}}},B=Ve.removePrefix(t,F),b=x(B);return b&&r.strictSlashes!==!0&&(b+=`${u}?`),b};vm.exports=ra});var xm=H((GL,Rm)=>{"use strict";var h1=require("path"),f1=Sm(),ia=Cm(),na=pn(),p1=fn(),d1=t=>t&&typeof t=="object"&&!Array.isArray(t),De=(t,e,r=!1)=>{if(Array.isArray(t)){let c=t.map(f=>De(f,e,r));return f=>{for(let p of c){let m=p(f);if(m)return m}return!1}}let i=d1(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=na.isWindows(e),o=i?De.compileRe(t,e):De.makeRe(t,e,!1,!0),u=o.state;delete o.state;let a=()=>!1;if(n.ignore){let c={...e,ignore:null,onMatch:null,onResult:null};a=De(n.ignore,c,r)}let l=(c,h=!1)=>{let{isMatch:f,match:p,output:m}=De.test(c,o,e,{glob:t,posix:s}),d={glob:t,state:u,regex:o,posix:s,input:c,output:m,match:p,isMatch:f};return typeof n.onResult=="function"&&n.onResult(d),f===!1?(d.isMatch=!1,h?d:!1):a(c)?(typeof n.onIgnore=="function"&&n.onIgnore(d),d.isMatch=!1,h?d:!1):(typeof n.onMatch=="function"&&n.onMatch(d),h?d:!0)};return r&&(l.state=u),l};De.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?na.toPosixSlashes:null),u=t===i,a=u&&o?o(t):t;return u===!1&&(a=o?o(t):t,u=a===i),(u===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?u=De.matchBase(t,e,r,n):u=e.exec(a)),{isMatch:!!u,match:u,output:a}};De.matchBase=(t,e,r,i=na.isWindows(r))=>(e instanceof RegExp?e:De.makeRe(e,r)).test(h1.basename(t));De.isMatch=(t,e,r)=>De(e,r)(t);De.parse=(t,e)=>Array.isArray(t)?t.map(r=>De.parse(r,e)):ia(t,{...e,fastpaths:!1});De.scan=(t,e)=>f1(t,e);De.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",u=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(u=`^(?!${u}).*$`);let a=De.toRegex(u,e);return i===!0&&(a.state=t),a};De.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=ia.fastpaths(t,e)),n.output||(n=ia(t,e)),De.compileRe(n,e,r,i)};De.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/$^/}};De.constants=p1;Rm.exports=De});var Om=H((zL,Fm)=>{"use strict";Fm.exports=xm()});var Pm=H((WL,Bm)=>{"use strict";var km=require("util"),Lm=cm(),Dt=Om(),sa=pn(),Tm=t=>t===""||t==="./",ye=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=new Set,s=new Set,o=0,u=c=>{s.add(c.output),r&&r.onResult&&r.onResult(c)};for(let c=0;c<e.length;c++){let h=Dt(String(e[c]),{...r,onResult:u},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let p of t){let m=h(p,!0);(f?!m.isMatch:m.isMatch)&&(f?i.add(m.output):(i.delete(m.output),n.add(m.output)))}}let l=(o===e.length?[...s]:[...n]).filter(c=>!i.has(c));if(r&&l.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(c=>c.replace(/\\/g,"")):e}return l};ye.match=ye;ye.matcher=(t,e)=>Dt(t,e);ye.isMatch=(t,e,r)=>Dt(e,r)(t);ye.any=ye.isMatch;ye.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=u=>{r.onResult&&r.onResult(u),n.push(u.output)},o=new Set(ye(t,e,{...r,onResult:s}));for(let u of n)o.has(u)||i.add(u);return[...i]};ye.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${km.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>ye.contains(t,i,r));if(typeof e=="string"){if(Tm(t)||Tm(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return ye.isMatch(t,e,{...r,contains:!0})};ye.matchKeys=(t,e,r)=>{if(!sa.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=ye(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};ye.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Dt(String(n),r);if(i.some(o=>s(o)))return!0}return!1};ye.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Dt(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};ye.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${km.inspect(t)}"`);return[].concat(e).every(i=>Dt(i,r)(t))};ye.capture=(t,e,r)=>{let i=sa.isWindows(r),s=Dt.makeRe(String(t),{...r,capture:!0}).exec(i?sa.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};ye.makeRe=(...t)=>Dt.makeRe(...t);ye.scan=(...t)=>Dt.scan(...t);ye.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of Lm(String(i),e))r.push(Dt.parse(n,e));return r};ye.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Lm(t,e)};ye.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return ye.braces(t,{...e,expand:!0})};Bm.exports=ye});var Um=H(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.matchAny=ne.convertPatternsToRe=ne.makeRe=ne.getPatternParts=ne.expandBraceExpansion=ne.expandPatternsWithBraceExpansion=ne.isAffectDepthOfReadingPattern=ne.endsWithSlashGlobStar=ne.hasGlobStar=ne.getBaseDirectory=ne.isPatternRelatedToParentDirectory=ne.getPatternsOutsideCurrentDirectory=ne.getPatternsInsideCurrentDirectory=ne.getPositivePatterns=ne.getNegativePatterns=ne.isPositivePattern=ne.isNegativePattern=ne.convertToNegativePattern=ne.convertToPositivePattern=ne.isDynamicPattern=ne.isStaticPattern=void 0;var m1=require("path"),y1=Rd(),oa=Pm(),Im="**",g1="\\",E1=/[*?]|^!/,D1=/\[[^[]*]/,_1=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,b1=/[!*+?@]\([^(]*\)/,w1=/,|\.\./;function Nm(t,e={}){return!Mm(t,e)}ne.isStaticPattern=Nm;function Mm(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(g1)||E1.test(t)||D1.test(t)||_1.test(t)||e.extglob!==!1&&b1.test(t)||e.braceExpansion!==!1&&S1(t))}ne.isDynamicPattern=Mm;function S1(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 w1.test(i)}function A1(t){return ws(t)?t.slice(1):t}ne.convertToPositivePattern=A1;function v1(t){return"!"+t}ne.convertToNegativePattern=v1;function ws(t){return t.startsWith("!")&&t[1]!=="("}ne.isNegativePattern=ws;function jm(t){return!ws(t)}ne.isPositivePattern=jm;function C1(t){return t.filter(ws)}ne.getNegativePatterns=C1;function R1(t){return t.filter(jm)}ne.getPositivePatterns=R1;function x1(t){return t.filter(e=>!ua(e))}ne.getPatternsInsideCurrentDirectory=x1;function F1(t){return t.filter(ua)}ne.getPatternsOutsideCurrentDirectory=F1;function ua(t){return t.startsWith("..")||t.startsWith("./..")}ne.isPatternRelatedToParentDirectory=ua;function O1(t){return y1(t,{flipBackslashes:!1})}ne.getBaseDirectory=O1;function T1(t){return t.includes(Im)}ne.hasGlobStar=T1;function Hm(t){return t.endsWith("/"+Im)}ne.endsWithSlashGlobStar=Hm;function k1(t){let e=m1.basename(t);return Hm(t)||Nm(e)}ne.isAffectDepthOfReadingPattern=k1;function L1(t){return t.reduce((e,r)=>e.concat(qm(r)),[])}ne.expandPatternsWithBraceExpansion=L1;function qm(t){return oa.braces(t,{expand:!0,nodupes:!0})}ne.expandBraceExpansion=qm;function B1(t,e){let{parts:r}=oa.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}ne.getPatternParts=B1;function $m(t,e){return oa.makeRe(t,e)}ne.makeRe=$m;function P1(t,e){return t.map(r=>$m(r,e))}ne.convertPatternsToRe=P1;function I1(t,e){return e.some(r=>r.test(t))}ne.matchAny=I1});var Ym=H((KL,Wm)=>{"use strict";var N1=require("stream"),Gm=N1.PassThrough,M1=Array.prototype.slice;Wm.exports=j1;function j1(){let t=[],e=M1.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=Gm(i);function u(){for(let c=0,h=arguments.length;c<h;c++)t.push(zm(arguments[c],i));return a(),this}function a(){if(r)return;r=!0;let c=t.shift();if(!c){process.nextTick(l);return}Array.isArray(c)||(c=[c]);let h=c.length+1;function f(){--h>0||(r=!1,a())}function p(m){function d(){m.removeListener("merge2UnpipeEnd",d),m.removeListener("end",d),s&&m.removeListener("error",y),f()}function y(v){o.emit("error",v)}if(m._readableState.endEmitted)return f();m.on("merge2UnpipeEnd",d),m.on("end",d),s&&m.on("error",y),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<c.length;m++)p(c[m]);f()}function l(){r=!1,o.emit("queueDrain"),n&&o.end()}return o.setMaxListeners(0),o.add=u,o.on("unpipe",function(c){c.emit("merge2UnpipeEnd")}),e.length&&u.apply(null,e),o}function zm(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=zm(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Gm(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Vm=H(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.merge=void 0;var H1=Ym();function q1(t){let e=H1(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Km(t)),e.once("end",()=>Km(t)),e}Ss.merge=q1;function Km(t){t.forEach(e=>e.emit("close"))}});var Zm=H(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.isEmpty=fi.isString=void 0;function $1(t){return typeof t=="string"}fi.isString=$1;function U1(t){return t===""}fi.isEmpty=U1});var Bt=H(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.string=Te.stream=Te.pattern=Te.path=Te.fs=Te.errno=Te.array=void 0;var G1=gd();Te.array=G1;var z1=Ed();Te.errno=z1;var W1=Dd();Te.fs=W1;var Y1=_d();Te.path=Y1;var K1=Um();Te.pattern=K1;var V1=Vm();Te.stream=V1;var Z1=Zm();Te.string=Z1});var Qm=H(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.convertPatternGroupToTask=ke.convertPatternGroupsToTasks=ke.groupPatternsByBaseDirectory=ke.getNegativePatternsAsPositive=ke.getPositivePatterns=ke.convertPatternsToTasks=ke.generate=void 0;var Pt=Bt();function J1(t,e){let r=Jm(t),i=Xm(t,e.ignore),n=r.filter(a=>Pt.pattern.isStaticPattern(a,e)),s=r.filter(a=>Pt.pattern.isDynamicPattern(a,e)),o=aa(n,i,!1),u=aa(s,i,!0);return o.concat(u)}ke.generate=J1;function aa(t,e,r){let i=[],n=Pt.pattern.getPatternsOutsideCurrentDirectory(t),s=Pt.pattern.getPatternsInsideCurrentDirectory(t),o=la(n),u=la(s);return i.push(...ca(o,e,r)),"."in u?i.push(ha(".",s,e,r)):i.push(...ca(u,e,r)),i}ke.convertPatternsToTasks=aa;function Jm(t){return Pt.pattern.getPositivePatterns(t)}ke.getPositivePatterns=Jm;function Xm(t,e){return Pt.pattern.getNegativePatterns(t).concat(e).map(Pt.pattern.convertToPositivePattern)}ke.getNegativePatternsAsPositive=Xm;function la(t){let e={};return t.reduce((r,i)=>{let n=Pt.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}ke.groupPatternsByBaseDirectory=la;function ca(t,e,r){return Object.keys(t).map(i=>ha(i,t[i],e,r))}ke.convertPatternGroupsToTasks=ca;function ha(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Pt.pattern.convertToNegativePattern))}}ke.convertPatternGroupToTask=ha});var t0=H(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.removeDuplicateSlashes=pi.transform=void 0;var X1=/(?!^)\/{2,}/g;function Q1(t){return t.map(e=>e0(e))}pi.transform=Q1;function e0(t){return t.replace(X1,"/")}pi.removeDuplicateSlashes=e0});var i0=H(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.read=void 0;function eC(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){r0(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){fa(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){r0(r,s);return}fa(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),fa(r,o)})})}As.read=eC;function r0(t,e){t(e)}function fa(t,e){t(null,e)}});var n0=H(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.read=void 0;function tC(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}}vs.read=tC});var s0=H(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.createFileSystemAdapter=rr.FILE_SYSTEM_ADAPTER=void 0;var Cs=require("fs");rr.FILE_SYSTEM_ADAPTER={lstat:Cs.lstat,stat:Cs.stat,lstatSync:Cs.lstatSync,statSync:Cs.statSync};function rC(t){return t===void 0?rr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},rr.FILE_SYSTEM_ADAPTER),t)}rr.createFileSystemAdapter=rC});var o0=H(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});var iC=s0(),pa=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=iC.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}};da.default=pa});var Tr=H(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.statSync=ir.stat=ir.Settings=void 0;var u0=i0(),nC=n0(),ma=o0();ir.Settings=ma.default;function sC(t,e,r){if(typeof e=="function"){u0.read(t,ya(),e);return}u0.read(t,ya(e),r)}ir.stat=sC;function oC(t,e){let r=ya(e);return nC.read(t,r)}ir.statSync=oC;function ya(t={}){return t instanceof ma.default?t:new ma.default(t)}});var c0=H((sB,l0)=>{var a0;l0.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(a0||(a0=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var f0=H((oB,h0)=>{h0.exports=aC;var uC=c0();function aC(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(a){function l(){e&&e(a,r),e=null}s?uC(l):l()}function u(a,l,c){r[a]=c,(--i===0||l)&&o(l)}i?n?n.forEach(function(a){t[a](function(l,c){u(a,l,c)})}):t.forEach(function(a,l){a(function(c,h){u(l,c,h)})}):o(null),s=!1}});var ga=H(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Rs=process.versions.node.split(".");if(Rs[0]===void 0||Rs[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var p0=Number.parseInt(Rs[0],10),lC=Number.parseInt(Rs[1],10),d0=10,cC=10,hC=p0>d0,fC=p0===d0&&lC>=cC;xs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=hC||fC});var m0=H(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.createDirentFromStats=void 0;var Ea=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 pC(t,e){return new Ea(t,e)}Fs.createDirentFromStats=pC});var Da=H(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.fs=void 0;var dC=m0();Os.fs=dC});var _a=H(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.joinPathSegments=void 0;function mC(t,e,r){return t.endsWith(r)?t+e:t+r+e}Ts.joinPathSegments=mC});var b0=H(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.readdir=nr.readdirWithFileTypes=nr.read=void 0;var yC=Tr(),y0=f0(),gC=ga(),g0=Da(),E0=_a();function EC(t,e,r){if(!e.stats&&gC.IS_SUPPORT_READDIR_WITH_FILE_TYPES){D0(t,e,r);return}_0(t,e,r)}nr.read=EC;function D0(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){ks(r,i);return}let s=n.map(u=>({dirent:u,name:u.name,path:E0.joinPathSegments(t,u.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){ba(r,s);return}let o=s.map(u=>DC(u,e));y0(o,(u,a)=>{if(u!==null){ks(r,u);return}ba(r,a)})})}nr.readdirWithFileTypes=D0;function DC(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=g0.fs.createDirentFromStats(t.name,n),r(null,t)})}}function _0(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){ks(r,i);return}let s=n.map(o=>{let u=E0.joinPathSegments(t,o,e.pathSegmentSeparator);return a=>{yC.stat(u,e.fsStatSettings,(l,c)=>{if(l!==null){a(l);return}let h={name:o,path:u,dirent:g0.fs.createDirentFromStats(o,c)};e.stats&&(h.stats=c),a(null,h)})}});y0(s,(o,u)=>{if(o!==null){ks(r,o);return}ba(r,u)})})}nr.readdir=_0;function ks(t,e){t(e)}function ba(t,e){t(null,e)}});var C0=H(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.readdir=sr.readdirWithFileTypes=sr.read=void 0;var _C=Tr(),bC=ga(),w0=Da(),S0=_a();function wC(t,e){return!e.stats&&bC.IS_SUPPORT_READDIR_WITH_FILE_TYPES?A0(t,e):v0(t,e)}sr.read=wC;function A0(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:S0.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=w0.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}sr.readdirWithFileTypes=A0;function v0(t,e){return e.fs.readdirSync(t).map(i=>{let n=S0.joinPathSegments(t,i,e.pathSegmentSeparator),s=_C.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:w0.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}sr.readdir=v0});var R0=H(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.createFileSystemAdapter=or.FILE_SYSTEM_ADAPTER=void 0;var di=require("fs");or.FILE_SYSTEM_ADAPTER={lstat:di.lstat,stat:di.stat,lstatSync:di.lstatSync,statSync:di.statSync,readdir:di.readdir,readdirSync:di.readdirSync};function SC(t){return t===void 0?or.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},or.FILE_SYSTEM_ADAPTER),t)}or.createFileSystemAdapter=SC});var x0=H(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});var AC=require("path"),vC=Tr(),CC=R0(),wa=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=CC.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,AC.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new vC.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Sa.default=wa});var Ls=H(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.Settings=ur.scandirSync=ur.scandir=void 0;var F0=b0(),RC=C0(),Aa=x0();ur.Settings=Aa.default;function xC(t,e,r){if(typeof e=="function"){F0.read(t,va(),e);return}F0.read(t,va(e),r)}ur.scandir=xC;function FC(t,e){let r=va(e);return RC.read(t,r)}ur.scandirSync=FC;function va(t={}){return t instanceof Aa.default?t:new Aa.default(t)}});var T0=H((yB,O0)=>{"use strict";function OC(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}}O0.exports=OC});var L0=H((gB,Ca)=>{"use strict";var TC=T0();function k0(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=TC(kC),n=null,s=null,o=0,u=null,a={push:d,drain:rt,saturated:rt,pause:c,paused:!1,concurrency:r,running:l,resume:p,idle:m,length:h,getQueue:f,unshift:y,empty:rt,kill:F,killAndDrain:T,error:O};return a;function l(){return o}function c(){a.paused=!0}function h(){for(var x=n,B=0;x;)x=x.next,B++;return B}function f(){for(var x=n,B=[];x;)B.push(x.value),x=x.next;return B}function p(){if(a.paused){a.paused=!1;for(var x=0;x<a.concurrency;x++)o++,v()}}function m(){return o===0&&a.length()===0}function d(x,B){var b=i.get();b.context=t,b.release=v,b.value=x,b.callback=B||rt,b.errorHandler=u,o===a.concurrency||a.paused?s?(s.next=b,s=b):(n=b,s=b,a.saturated()):(o++,e.call(t,b.value,b.worked))}function y(x,B){var b=i.get();b.context=t,b.release=v,b.value=x,b.callback=B||rt,o===a.concurrency||a.paused?n?(b.next=n,n=b):(n=b,s=b,a.saturated()):(o++,e.call(t,b.value,b.worked))}function v(x){x&&i.release(x);var B=n;B?a.paused?o--:(s===n&&(s=null),n=B.next,B.next=null,e.call(t,B.value,B.worked),s===null&&a.empty()):--o===0&&a.drain()}function F(){n=null,s=null,a.drain=rt}function T(){n=null,s=null,a.drain(),a.drain=rt}function O(x){u=x}}function rt(){}function kC(){this.value=null,this.callback=rt,this.next=null,this.release=rt,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=rt,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function LC(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(c,h){e.call(this,c).then(function(f){h(null,f)},h)}var n=k0(t,i,r),s=n.push,o=n.unshift;return n.push=u,n.unshift=a,n.drained=l,n;function u(c){var h=new Promise(function(f,p){s(c,function(m,d){if(m){p(m);return}f(d)})});return h.catch(rt),h}function a(c){var h=new Promise(function(f,p){o(c,function(m,d){if(m){p(m);return}f(d)})});return h.catch(rt),h}function l(){var c=n.drain,h=new Promise(function(f){n.drain=function(){c(),f()}});return h}}Ca.exports=k0;Ca.exports.promise=LC});var Bs=H(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.joinPathSegments=_t.replacePathSegmentSeparator=_t.isAppliedFilter=_t.isFatalError=void 0;function BC(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}_t.isFatalError=BC;function PC(t,e){return t===null||t(e)}_t.isAppliedFilter=PC;function IC(t,e){return t.split(/[/\\]/).join(e)}_t.replacePathSegmentSeparator=IC;function NC(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}_t.joinPathSegments=NC});var Fa=H(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});var MC=Bs(),Ra=class{constructor(e,r){this._root=e,this._settings=r,this._root=MC.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};xa.default=Ra});var ka=H(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});var jC=require("events"),HC=Ls(),qC=L0(),Ps=Bs(),$C=Fa(),Oa=class extends $C.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=HC.scandir,this._emitter=new jC.EventEmitter,this._queue=qC(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||!Ps.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=Ps.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Ps.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Ps.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Ta.default=Oa});var B0=H(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});var UC=ka(),La=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new UC.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{GC(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{zC(e,this._storage)}),this._reader.read()}};Ba.default=La;function GC(t,e){t(e)}function zC(t,e){t(null,e)}});var P0=H(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var WC=require("stream"),YC=ka(),Pa=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new YC.default(this._root,this._settings),this._stream=new WC.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}};Ia.default=Pa});var I0=H(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});var KC=Ls(),Is=Bs(),VC=Fa(),Na=class extends VC.default{constructor(){super(...arguments),this._scandir=KC.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(Is.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=Is.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Is.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Is.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Ma.default=Na});var N0=H(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var ZC=I0(),ja=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new ZC.default(this._root,this._settings)}read(){return this._reader.read()}};Ha.default=ja});var M0=H($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var JC=require("path"),XC=Ls(),qa=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,JC.sep),this.fsScandirSettings=new XC.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}};$a.default=qa});var Ms=H(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.Settings=bt.walkStream=bt.walkSync=bt.walk=void 0;var j0=B0(),QC=P0(),eR=N0(),Ua=M0();bt.Settings=Ua.default;function tR(t,e,r){if(typeof e=="function"){new j0.default(t,Ns()).read(e);return}new j0.default(t,Ns(e)).read(r)}bt.walk=tR;function rR(t,e){let r=Ns(e);return new eR.default(t,r).read()}bt.walkSync=rR;function iR(t,e){let r=Ns(e);return new QC.default(t,r).read()}bt.walkStream=iR;function Ns(t={}){return t instanceof Ua.default?t:new Ua.default(t)}});var js=H(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});var nR=require("path"),sR=Tr(),H0=Bt(),Ga=class{constructor(e){this._settings=e,this._fsStatSettings=new sR.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return nR.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:H0.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!H0.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};za.default=Ga});var Ka=H(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var oR=require("stream"),uR=Tr(),aR=Ms(),lR=js(),Wa=class extends lR.default{constructor(){super(...arguments),this._walkStream=aR.walkStream,this._stat=uR.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new oR.PassThrough({objectMode:!0});n._write=(s,o,u)=>this._getEntry(i[s],e[s],r).then(a=>{a!==null&&r.entryFilter(a)&&n.push(a),s===i.length-1&&n.end(),u()}).catch(u);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))})}};Ya.default=Wa});var q0=H(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});var cR=Ms(),hR=js(),fR=Ka(),Va=class extends hR.default{constructor(){super(...arguments),this._walkAsync=cR.walk,this._readerStream=new fR.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",u=>i.push(u)),n.once("end",()=>s(i))})}};Za.default=Va});var $0=H(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});var mi=Bt(),Ja=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=mi.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 mi.pattern.getPatternParts(e,this._micromatchOptions).map(i=>mi.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:mi.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return mi.array.splitWhen(e,r=>r.dynamic&&mi.pattern.hasGlobStar(r.pattern))}};Xa.default=Ja});var U0=H(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var pR=$0(),Qa=class extends pR.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((a,l)=>{let c=s.segments[l];return!!(c.dynamic&&c.patternRe.test(a)||!c.dynamic&&c.pattern===a)}))return!0}return!1}};el.default=Qa});var G0=H(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var Hs=Bt(),dR=U0(),tl=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 dR.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Hs.pattern.isAffectDepthOfReadingPattern);return Hs.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Hs.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!Hs.pattern.matchAny(e,r)}};rl.default=tl});var z0=H(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var kr=Bt(),il=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=kr.pattern.convertPatternsToRe(e,this._micromatchOptions),n=kr.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=kr.path.makeAbsolute(this._settings.cwd,e);return kr.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=kr.path.removeLeadingDotSegment(e),s=kr.pattern.matchAny(n,r);return!s&&i?kr.pattern.matchAny(n+"/",r):s}};nl.default=il});var W0=H(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var mR=Bt(),sl=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return mR.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};ol.default=sl});var K0=H(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});var Y0=Bt(),ul=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Y0.path.makeAbsolute(this._settings.cwd,r),r=Y0.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};al.default=ul});var qs=H(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var yR=require("path"),gR=G0(),ER=z0(),DR=W0(),_R=K0(),ll=class{constructor(e){this._settings=e,this.errorFilter=new DR.default(this._settings),this.entryFilter=new ER.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new gR.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new _R.default(this._settings)}_getRootDirectory(e){return yR.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}}};cl.default=ll});var V0=H(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var bR=q0(),wR=qs(),hl=class extends wR.default{constructor(){super(...arguments),this._reader=new bR.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)}};fl.default=hl});var Z0=H(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var SR=require("stream"),AR=Ka(),vR=qs(),pl=class extends vR.default{constructor(){super(...arguments),this._reader=new AR.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new SR.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)}};dl.default=pl});var J0=H(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var CR=Tr(),RR=Ms(),xR=js(),ml=class extends xR.default{constructor(){super(...arguments),this._walkSync=RR.walkSync,this._statSync=CR.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)}};yl.default=ml});var X0=H(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var FR=J0(),OR=qs(),gl=class extends OR.default{constructor(){super(...arguments),this._reader=new FR.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)}};El.default=gl});var Q0=H(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var yi=require("fs"),TR=require("os"),kR=Math.max(TR.cpus().length,1);gi.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:yi.lstat,lstatSync:yi.lstatSync,stat:yi.stat,statSync:yi.statSync,readdir:yi.readdir,readdirSync:yi.readdirSync};var Dl=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,kR),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({},gi.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};gi.default=Dl});var $s=H(($B,ry)=>{"use strict";var ey=Qm(),ty=t0(),LR=V0(),BR=Z0(),PR=X0(),_l=Q0(),Lr=Bt();async function bl(t,e){Ei(t);let r=wl(t,LR.default,e),i=await Promise.all(r);return Lr.array.flatten(i)}(function(t){function e(o,u){Ei(o);let a=wl(o,PR.default,u);return Lr.array.flatten(a)}t.sync=e;function r(o,u){Ei(o);let a=wl(o,BR.default,u);return Lr.stream.merge(a)}t.stream=r;function i(o,u){Ei(o);let a=ty.transform([].concat(o)),l=new _l.default(u);return ey.generate(a,l)}t.generateTasks=i;function n(o,u){Ei(o);let a=new _l.default(u);return Lr.pattern.isDynamicPattern(o,a)}t.isDynamicPattern=n;function s(o){return Ei(o),Lr.path.escape(o)}t.escapePath=s})(bl||(bl={}));function wl(t,e,r){let i=ty.transform([].concat(t)),n=new _l.default(r),s=ey.generate(i,n),o=new e(n);return s.map(o.read,o)}function Ei(t){if(![].concat(t).every(i=>Lr.string.isString(i)&&!Lr.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}ry.exports=bl});var Ny=H((cP,Mt)=>{function Pl(t){return Mt.exports=Pl=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},Mt.exports.__esModule=!0,Mt.exports.default=Mt.exports,Pl(t)}Mt.exports=Pl,Mt.exports.__esModule=!0,Mt.exports.default=Mt.exports});var jy=H((hP,jt)=>{var EF=Ny().default;function My(){"use strict";jt.exports=My=function(){return t},jt.exports.__esModule=!0,jt.exports.default=jt.exports;var t={},e=Object.prototype,r=e.hasOwnProperty,i=Object.defineProperty||function(k,I,j){k[I]=j.value},n=typeof Symbol=="function"?Symbol:{},s=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",u=n.toStringTag||"@@toStringTag";function a(k,I,j){return Object.defineProperty(k,I,{value:j,enumerable:!0,configurable:!0,writable:!0}),k[I]}try{a({},"")}catch{a=function(j,R,D){return j[R]=D}}function l(k,I,j,R){var D=I&&I.prototype instanceof f?I:f,A=Object.create(D.prototype),N=new M(R||[]);return i(A,"_invoke",{value:x(k,j,N)}),A}function c(k,I,j){try{return{type:"normal",arg:k.call(I,j)}}catch(R){return{type:"throw",arg:R}}}t.wrap=l;var h={};function f(){}function p(){}function m(){}var d={};a(d,s,function(){return this});var y=Object.getPrototypeOf,v=y&&y(y(U([])));v&&v!==e&&r.call(v,s)&&(d=v);var F=m.prototype=f.prototype=Object.create(d);function T(k){["next","throw","return"].forEach(function(I){a(k,I,function(j){return this._invoke(I,j)})})}function O(k,I){function j(D,A,N,Y){var W=c(k[D],k,A);if(W.type!=="throw"){var E=W.arg,g=E.value;return g&&EF(g)=="object"&&r.call(g,"__await")?I.resolve(g.__await).then(function(_){j("next",_,N,Y)},function(_){j("throw",_,N,Y)}):I.resolve(g).then(function(_){E.value=_,N(E)},function(_){return j("throw",_,N,Y)})}Y(W.arg)}var R;i(this,"_invoke",{value:function(A,N){function Y(){return new I(function(W,E){j(A,N,W,E)})}return R=R?R.then(Y,Y):Y()}})}function x(k,I,j){var R="suspendedStart";return function(D,A){if(R==="executing")throw new Error("Generator is already running");if(R==="completed"){if(D==="throw")throw A;return L()}for(j.method=D,j.arg=A;;){var N=j.delegate;if(N){var Y=B(N,j);if(Y){if(Y===h)continue;return Y}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(R==="suspendedStart")throw R="completed",j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);R="executing";var W=c(k,I,j);if(W.type==="normal"){if(R=j.done?"completed":"suspendedYield",W.arg===h)continue;return{value:W.arg,done:j.done}}W.type==="throw"&&(R="completed",j.method="throw",j.arg=W.arg)}}}function B(k,I){var j=I.method,R=k.iterator[j];if(R===void 0)return I.delegate=null,j==="throw"&&k.iterator.return&&(I.method="return",I.arg=void 0,B(k,I),I.method==="throw")||j!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+j+"' method")),h;var D=c(R,k.iterator,I.arg);if(D.type==="throw")return I.method="throw",I.arg=D.arg,I.delegate=null,h;var A=D.arg;return A?A.done?(I[k.resultName]=A.value,I.next=k.nextLoc,I.method!=="return"&&(I.method="next",I.arg=void 0),I.delegate=null,h):A:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,h)}function b(k){var I={tryLoc:k[0]};1 in k&&(I.catchLoc=k[1]),2 in k&&(I.finallyLoc=k[2],I.afterLoc=k[3]),this.tryEntries.push(I)}function S(k){var I=k.completion||{};I.type="normal",delete I.arg,k.completion=I}function M(k){this.tryEntries=[{tryLoc:"root"}],k.forEach(b,this),this.reset(!0)}function U(k){if(k){var I=k[s];if(I)return I.call(k);if(typeof k.next=="function")return k;if(!isNaN(k.length)){var j=-1,R=function D(){for(;++j<k.length;)if(r.call(k,j))return D.value=k[j],D.done=!1,D;return D.value=void 0,D.done=!0,D};return R.next=R}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=m,i(F,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:p,configurable:!0}),p.displayName=a(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(k){var I=typeof k=="function"&&k.constructor;return!!I&&(I===p||(I.displayName||I.name)==="GeneratorFunction")},t.mark=function(k){return Object.setPrototypeOf?Object.setPrototypeOf(k,m):(k.__proto__=m,a(k,u,"GeneratorFunction")),k.prototype=Object.create(F),k},t.awrap=function(k){return{__await:k}},T(O.prototype),a(O.prototype,o,function(){return this}),t.AsyncIterator=O,t.async=function(k,I,j,R,D){D===void 0&&(D=Promise);var A=new O(l(k,I,j,R),D);return t.isGeneratorFunction(I)?A:A.next().then(function(N){return N.done?N.value:A.next()})},T(F),a(F,u,"Generator"),a(F,s,function(){return this}),a(F,"toString",function(){return"[object Generator]"}),t.keys=function(k){var I=Object(k),j=[];for(var R in I)j.push(R);return j.reverse(),function D(){for(;j.length;){var A=j.pop();if(A in I)return D.value=A,D.done=!1,D}return D.done=!0,D}},t.values=U,M.prototype={constructor:M,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!I)for(var j in this)j.charAt(0)==="t"&&r.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=void 0)},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var j=this;function R(E,g){return N.type="throw",N.arg=I,j.next=E,g&&(j.method="next",j.arg=void 0),!!g}for(var D=this.tryEntries.length-1;D>=0;--D){var A=this.tryEntries[D],N=A.completion;if(A.tryLoc==="root")return R("end");if(A.tryLoc<=this.prev){var Y=r.call(A,"catchLoc"),W=r.call(A,"finallyLoc");if(Y&&W){if(this.prev<A.catchLoc)return R(A.catchLoc,!0);if(this.prev<A.finallyLoc)return R(A.finallyLoc)}else if(Y){if(this.prev<A.catchLoc)return R(A.catchLoc,!0)}else{if(!W)throw new Error("try statement without catch or finally");if(this.prev<A.finallyLoc)return R(A.finallyLoc)}}}},abrupt:function(I,j){for(var R=this.tryEntries.length-1;R>=0;--R){var D=this.tryEntries[R];if(D.tryLoc<=this.prev&&r.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var A=D;break}}A&&(I==="break"||I==="continue")&&A.tryLoc<=j&&j<=A.finallyLoc&&(A=null);var N=A?A.completion:{};return N.type=I,N.arg=j,A?(this.method="next",this.next=A.finallyLoc,h):this.complete(N)},complete:function(I,j){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&j&&(this.next=j),h},finish:function(I){for(var j=this.tryEntries.length-1;j>=0;--j){var R=this.tryEntries[j];if(R.finallyLoc===I)return this.complete(R.completion,R.afterLoc),S(R),h}},catch:function(I){for(var j=this.tryEntries.length-1;j>=0;--j){var R=this.tryEntries[j];if(R.tryLoc===I){var D=R.completion;if(D.type==="throw"){var A=D.arg;S(R)}return A}}throw new Error("illegal catch attempt")},delegateYield:function(I,j,R){return this.delegate={iterator:U(I),resultName:j,nextLoc:R},this.method==="next"&&(this.arg=void 0),h}},t}jt.exports=My,jt.exports.__esModule=!0,jt.exports.default=jt.exports});var qy=H((fP,Hy)=>{var Vs=jy()();Hy.exports=Vs;try{regeneratorRuntime=Vs}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Vs:Function("r","regeneratorRuntime = r")(Vs)}});var xi=H((nI,rg)=>{"use strict";var tg=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"]]);rg.exports=t=>t?Object.keys(t).map(e=>[tg.has(e)?tg.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var ro=H((sI,hg)=>{"use strict";var ig=typeof process=="object"&&process?process:{stdout:null,stderr:null},jF=require("events"),ng=require("stream"),sg=require("string_decoder").StringDecoder,qt=Symbol("EOF"),$t=Symbol("maybeEmitEnd"),hr=Symbol("emittedEnd"),Js=Symbol("emittingEnd"),Rn=Symbol("emittedError"),Xs=Symbol("closed"),og=Symbol("read"),Qs=Symbol("flush"),ug=Symbol("flushChunk"),Ge=Symbol("encoding"),Ut=Symbol("decoder"),eo=Symbol("flowing"),xn=Symbol("paused"),Fi=Symbol("resume"),_e=Symbol("buffer"),vt=Symbol("pipes"),Re=Symbol("bufferLength"),Ul=Symbol("bufferPush"),Gl=Symbol("bufferShift"),Be=Symbol("objectMode"),Pe=Symbol("destroyed"),zl=Symbol("emitData"),ag=Symbol("emitEnd"),Wl=Symbol("emitEnd2"),Gt=Symbol("async"),Fn=t=>Promise.resolve().then(t),lg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",HF=lg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),qF=lg&&Symbol.iterator||Symbol("iterator not implemented"),$F=t=>t==="end"||t==="finish"||t==="prefinish",UF=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,GF=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),to=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Fi](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Yl=class extends to{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)}};hg.exports=class cg extends ng{constructor(e){super(),this[eo]=!1,this[xn]=!1,this[vt]=[],this[_e]=[],this[Be]=e&&e.objectMode||!1,this[Be]?this[Ge]=null:this[Ge]=e&&e.encoding||null,this[Ge]==="buffer"&&(this[Ge]=null),this[Gt]=e&&!!e.async||!1,this[Ut]=this[Ge]?new sg(this[Ge]):null,this[qt]=!1,this[hr]=!1,this[Js]=!1,this[Xs]=!1,this[Rn]=null,this.writable=!0,this.readable=!0,this[Re]=0,this[Pe]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[_e]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[vt]})}get bufferLength(){return this[Re]}get encoding(){return this[Ge]}set encoding(e){if(this[Be])throw new Error("cannot set encoding in objectMode");if(this[Ge]&&e!==this[Ge]&&(this[Ut]&&this[Ut].lastNeed||this[Re]))throw new Error("cannot change encoding");this[Ge]!==e&&(this[Ut]=e?new sg(e):null,this[_e].length&&(this[_e]=this[_e].map(r=>this[Ut].write(r)))),this[Ge]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Be]}set objectMode(e){this[Be]=this[Be]||!!e}get async(){return this[Gt]}set async(e){this[Gt]=this[Gt]||!!e}write(e,r,i){if(this[qt])throw new Error("write after end");if(this[Pe])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[Gt]?Fn:s=>s();return!this[Be]&&!Buffer.isBuffer(e)&&(GF(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):UF(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Be]?(this.flowing&&this[Re]!==0&&this[Qs](!0),this.flowing?this.emit("data",e):this[Ul](e),this[Re]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ge]&&!this[Ut].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ge]&&(e=this[Ut].write(e)),this.flowing&&this[Re]!==0&&this[Qs](!0),this.flowing?this.emit("data",e):this[Ul](e),this[Re]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Re]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Pe])return null;if(this[Re]===0||e===0||e>this[Re])return this[$t](),null;this[Be]&&(e=null),this[_e].length>1&&!this[Be]&&(this.encoding?this[_e]=[this[_e].join("")]:this[_e]=[Buffer.concat(this[_e],this[Re])]);let r=this[og](e||null,this[_e][0]);return this[$t](),r}[og](e,r){return e===r.length||e===null?this[Gl]():(this[_e][0]=r.slice(e),r=r.slice(0,e),this[Re]-=e),this.emit("data",r),!this[_e].length&&!this[qt]&&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[qt]=!0,this.writable=!1,(this.flowing||!this[xn])&&this[$t](),this}[Fi](){this[Pe]||(this[xn]=!1,this[eo]=!0,this.emit("resume"),this[_e].length?this[Qs]():this[qt]?this[$t]():this.emit("drain"))}resume(){return this[Fi]()}pause(){this[eo]=!1,this[xn]=!0}get destroyed(){return this[Pe]}get flowing(){return this[eo]}get paused(){return this[xn]}[Ul](e){this[Be]?this[Re]+=1:this[Re]+=e.length,this[_e].push(e)}[Gl](){return this[_e].length&&(this[Be]?this[Re]-=1:this[Re]-=this[_e][0].length),this[_e].shift()}[Qs](e){do;while(this[ug](this[Gl]()));!e&&!this[_e].length&&!this[qt]&&this.emit("drain")}[ug](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Pe])return;let i=this[hr];return r=r||{},e===ig.stdout||e===ig.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[vt].push(r.proxyErrors?new Yl(this,e,r):new to(this,e,r)),this[Gt]?Fn(()=>this[Fi]()):this[Fi]()),e}unpipe(e){let r=this[vt].find(i=>i.dest===e);r&&(this[vt].splice(this[vt].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[vt].length&&!this.flowing?this[Fi]():e==="readable"&&this[Re]!==0?super.emit("readable"):$F(e)&&this[hr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Rn]&&(this[Gt]?Fn(()=>r.call(this,this[Rn])):r.call(this,this[Rn])),i}get emittedEnd(){return this[hr]}[$t](){!this[Js]&&!this[hr]&&!this[Pe]&&this[_e].length===0&&this[qt]&&(this[Js]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Xs]&&this.emit("close"),this[Js]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Pe&&this[Pe])return;if(e==="data")return r?this[Gt]?Fn(()=>this[zl](r)):this[zl](r):!1;if(e==="end")return this[ag]();if(e==="close"){if(this[Xs]=!0,!this[hr]&&!this[Pe])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Rn]=r;let s=super.emit("error",r);return this[$t](),s}else if(e==="resume"){let s=super.emit("resume");return this[$t](),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[$t](),n}[zl](e){for(let i of this[vt])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[$t](),r}[ag](){this[hr]||(this[hr]=!0,this.readable=!1,this[Gt]?Fn(()=>this[Wl]()):this[Wl]())}[Wl](){if(this[Ut]){let r=this[Ut].end();if(r){for(let i of this[vt])i.dest.write(r);super.emit("data",r)}}for(let r of this[vt])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Be]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Be]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Be]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Be]?Promise.reject(new Error("cannot concat in objectMode")):this[Ge]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Pe,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[HF](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[qt])return Promise.resolve({done:!0});let i=null,n=null,s=l=>{this.removeListener("data",o),this.removeListener("end",u),n(l)},o=l=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),i({value:l,done:!!this[qt]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((l,c)=>{n=c,i=l,this.once(Pe,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[qF](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Pe]?(e?this.emit("error",e):this.emit(Pe),this):(this[Pe]=!0,this[_e].length=0,this[Re]=0,typeof this.close=="function"&&!this[Xs]&&this.close(),e?this.emit("error",e):this.emit(Pe),this)}static isStream(e){return!!e&&(e instanceof cg||e instanceof ng||e instanceof jF&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var pg=H((oI,fg)=>{var zF=require("zlib").constants||{ZLIB_VERNUM:4736};fg.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},zF))});var Ql=H((uI,wg)=>{"use strict";var dg=typeof process=="object"&&process?process:{stdout:null,stderr:null},WF=require("events"),mg=require("stream"),yg=require("string_decoder").StringDecoder,zt=Symbol("EOF"),Wt=Symbol("maybeEmitEnd"),fr=Symbol("emittedEnd"),io=Symbol("emittingEnd"),On=Symbol("emittedError"),no=Symbol("closed"),gg=Symbol("read"),so=Symbol("flush"),Eg=Symbol("flushChunk"),ze=Symbol("encoding"),Yt=Symbol("decoder"),oo=Symbol("flowing"),Tn=Symbol("paused"),Oi=Symbol("resume"),xe=Symbol("bufferLength"),Kl=Symbol("bufferPush"),Vl=Symbol("bufferShift"),Ie=Symbol("objectMode"),Ne=Symbol("destroyed"),Zl=Symbol("emitData"),Dg=Symbol("emitEnd"),Jl=Symbol("emitEnd2"),Kt=Symbol("async"),kn=t=>Promise.resolve().then(t),_g=global._MP_NO_ITERATOR_SYMBOLS_!=="1",YF=_g&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),KF=_g&&Symbol.iterator||Symbol("iterator not implemented"),VF=t=>t==="end"||t==="finish"||t==="prefinish",ZF=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,JF=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),uo=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Oi](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Xl=class extends uo{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)}};wg.exports=class bg extends mg{constructor(e){super(),this[oo]=!1,this[Tn]=!1,this.pipes=[],this.buffer=[],this[Ie]=e&&e.objectMode||!1,this[Ie]?this[ze]=null:this[ze]=e&&e.encoding||null,this[ze]==="buffer"&&(this[ze]=null),this[Kt]=e&&!!e.async||!1,this[Yt]=this[ze]?new yg(this[ze]):null,this[zt]=!1,this[fr]=!1,this[io]=!1,this[no]=!1,this[On]=null,this.writable=!0,this.readable=!0,this[xe]=0,this[Ne]=!1}get bufferLength(){return this[xe]}get encoding(){return this[ze]}set encoding(e){if(this[Ie])throw new Error("cannot set encoding in objectMode");if(this[ze]&&e!==this[ze]&&(this[Yt]&&this[Yt].lastNeed||this[xe]))throw new Error("cannot change encoding");this[ze]!==e&&(this[Yt]=e?new yg(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Yt].write(r)))),this[ze]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Ie]}set objectMode(e){this[Ie]=this[Ie]||!!e}get async(){return this[Kt]}set async(e){this[Kt]=this[Kt]||!!e}write(e,r,i){if(this[zt])throw new Error("write after end");if(this[Ne])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[Kt]?kn:s=>s();return!this[Ie]&&!Buffer.isBuffer(e)&&(JF(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):ZF(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Ie]?(this.flowing&&this[xe]!==0&&this[so](!0),this.flowing?this.emit("data",e):this[Kl](e),this[xe]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[ze]&&!this[Yt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[ze]&&(e=this[Yt].write(e)),this.flowing&&this[xe]!==0&&this[so](!0),this.flowing?this.emit("data",e):this[Kl](e),this[xe]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[xe]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Ne])return null;if(this[xe]===0||e===0||e>this[xe])return this[Wt](),null;this[Ie]&&(e=null),this.buffer.length>1&&!this[Ie]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[xe])]);let r=this[gg](e||null,this.buffer[0]);return this[Wt](),r}[gg](e,r){return e===r.length||e===null?this[Vl]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[xe]-=e),this.emit("data",r),!this.buffer.length&&!this[zt]&&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[zt]=!0,this.writable=!1,(this.flowing||!this[Tn])&&this[Wt](),this}[Oi](){this[Ne]||(this[Tn]=!1,this[oo]=!0,this.emit("resume"),this.buffer.length?this[so]():this[zt]?this[Wt]():this.emit("drain"))}resume(){return this[Oi]()}pause(){this[oo]=!1,this[Tn]=!0}get destroyed(){return this[Ne]}get flowing(){return this[oo]}get paused(){return this[Tn]}[Kl](e){this[Ie]?this[xe]+=1:this[xe]+=e.length,this.buffer.push(e)}[Vl](){return this.buffer.length&&(this[Ie]?this[xe]-=1:this[xe]-=this.buffer[0].length),this.buffer.shift()}[so](e){do;while(this[Eg](this[Vl]()));!e&&!this.buffer.length&&!this[zt]&&this.emit("drain")}[Eg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Ne])return;let i=this[fr];return r=r||{},e===dg.stdout||e===dg.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Xl(this,e,r):new uo(this,e,r)),this[Kt]?kn(()=>this[Oi]()):this[Oi]()),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[Oi]():e==="readable"&&this[xe]!==0?super.emit("readable"):VF(e)&&this[fr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[On]&&(this[Kt]?kn(()=>r.call(this,this[On])):r.call(this,this[On])),i}get emittedEnd(){return this[fr]}[Wt](){!this[io]&&!this[fr]&&!this[Ne]&&this.buffer.length===0&&this[zt]&&(this[io]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[no]&&this.emit("close"),this[io]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Ne&&this[Ne])return;if(e==="data")return r?this[Kt]?kn(()=>this[Zl](r)):this[Zl](r):!1;if(e==="end")return this[Dg]();if(e==="close"){if(this[no]=!0,!this[fr]&&!this[Ne])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[On]=r;let s=super.emit("error",r);return this[Wt](),s}else if(e==="resume"){let s=super.emit("resume");return this[Wt](),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[Wt](),n}[Zl](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Wt](),r}[Dg](){this[fr]||(this[fr]=!0,this.readable=!1,this[Kt]?kn(()=>this[Jl]()):this[Jl]())}[Jl](){if(this[Yt]){let r=this[Yt].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[Ie]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Ie]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Ie]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Ie]?Promise.reject(new Error("cannot concat in objectMode")):this[ze]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Ne,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[YF](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[zt])return Promise.resolve({done:!0});let i=null,n=null,s=l=>{this.removeListener("data",o),this.removeListener("end",u),n(l)},o=l=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),i({value:l,done:!!this[zt]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((l,c)=>{n=c,i=l,this.once(Ne,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[KF](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Ne]?(e?this.emit("error",e):this.emit(Ne),this):(this[Ne]=!0,this.buffer.length=0,this[xe]=0,typeof this.close=="function"&&!this[no]&&this.close(),e?this.emit("error",e):this.emit(Ne),this)}static isStream(e){return!!e&&(e instanceof bg||e instanceof mg||e instanceof WF&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var mc=H(Je=>{"use strict";var nc=require("assert"),pr=require("buffer").Buffer,vg=require("zlib"),Nr=Je.constants=pg(),XF=Ql(),Sg=pr.concat,Mr=Symbol("_superWrite"),ki=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"}},QF=Symbol("opts"),Ln=Symbol("flushFlag"),Ag=Symbol("finishFlushFlag"),dc=Symbol("fullFlushFlag"),pe=Symbol("handle"),ao=Symbol("onError"),Ti=Symbol("sawError"),ec=Symbol("level"),tc=Symbol("strategy"),rc=Symbol("ended"),aI=Symbol("_defaultFullFlush"),lo=class extends XF{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[Ti]=!1,this[rc]=!1,this[QF]=e,this[Ln]=e.flush,this[Ag]=e.finishFlush;try{this[pe]=new vg[r](e)}catch(i){throw new ki(i)}this[ao]=i=>{this[Ti]||(this[Ti]=!0,this.close(),this.emit("error",i))},this[pe].on("error",i=>this[ao](new ki(i))),this.once("end",()=>this.close)}close(){this[pe]&&(this[pe].close(),this[pe]=null,this.emit("close"))}reset(){if(!this[Ti])return nc(this[pe],"zlib binding closed"),this[pe].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[dc]),this.write(Object.assign(pr.alloc(0),{[Ln]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[Ag]),this[rc]=!0,super.end(null,null,i)}get ended(){return this[rc]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=pr.from(e,r)),this[Ti])return;nc(this[pe],"zlib binding closed");let n=this[pe]._handle,s=n.close;n.close=()=>{};let o=this[pe].close;this[pe].close=()=>{},pr.concat=l=>l;let u;try{let l=typeof e[Ln]=="number"?e[Ln]:this[Ln];u=this[pe]._processChunk(e,l),pr.concat=Sg}catch(l){pr.concat=Sg,this[ao](new ki(l))}finally{this[pe]&&(this[pe]._handle=n,n.close=s,this[pe].close=o,this[pe].removeAllListeners("error"))}this[pe]&&this[pe].on("error",l=>this[ao](new ki(l)));let a;if(u)if(Array.isArray(u)&&u.length>0){a=this[Mr](pr.from(u[0]));for(let l=1;l<u.length;l++)a=this[Mr](u[l])}else a=this[Mr](pr.from(u));return i&&i(),a}[Mr](e){return super.write(e)}},Vt=class extends lo{constructor(e,r){e=e||{},e.flush=e.flush||Nr.Z_NO_FLUSH,e.finishFlush=e.finishFlush||Nr.Z_FINISH,super(e,r),this[dc]=Nr.Z_FULL_FLUSH,this[ec]=e.level,this[tc]=e.strategy}params(e,r){if(!this[Ti]){if(!this[pe])throw new Error("cannot switch params when binding is closed");if(!this[pe].params)throw new Error("not supported in this implementation");if(this[ec]!==e||this[tc]!==r){this.flush(Nr.Z_SYNC_FLUSH),nc(this[pe],"zlib binding closed");let i=this[pe].flush;this[pe].flush=(n,s)=>{this.flush(n),s()};try{this[pe].params(e,r)}finally{this[pe].flush=i}this[pe]&&(this[ec]=e,this[tc]=r)}}}},sc=class extends Vt{constructor(e){super(e,"Deflate")}},oc=class extends Vt{constructor(e){super(e,"Inflate")}},ic=Symbol("_portable"),uc=class extends Vt{constructor(e){super(e,"Gzip"),this[ic]=e&&!!e.portable}[Mr](e){return this[ic]?(this[ic]=!1,e[9]=255,super[Mr](e)):super[Mr](e)}},ac=class extends Vt{constructor(e){super(e,"Gunzip")}},lc=class extends Vt{constructor(e){super(e,"DeflateRaw")}},cc=class extends Vt{constructor(e){super(e,"InflateRaw")}},hc=class extends Vt{constructor(e){super(e,"Unzip")}},co=class extends lo{constructor(e,r){e=e||{},e.flush=e.flush||Nr.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||Nr.BROTLI_OPERATION_FINISH,super(e,r),this[dc]=Nr.BROTLI_OPERATION_FLUSH}},fc=class extends co{constructor(e){super(e,"BrotliCompress")}},pc=class extends co{constructor(e){super(e,"BrotliDecompress")}};Je.Deflate=sc;Je.Inflate=oc;Je.Gzip=uc;Je.Gunzip=ac;Je.DeflateRaw=lc;Je.InflateRaw=cc;Je.Unzip=hc;typeof vg.BrotliCompress=="function"?(Je.BrotliCompress=fc,Je.BrotliDecompress=pc):Je.BrotliCompress=Je.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Li=H((hI,Cg)=>{var eO=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;Cg.exports=eO!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var ho=H((pI,Rg)=>{"use strict";var tO=ro(),yc=Li(),gc=Symbol("slurp");Rg.exports=class extends tO{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=yc(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=yc(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[gc](r),i&&this[gc](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))}[gc](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?yc(e[i]):e[i])}}});var Ec=H(fo=>{"use strict";fo.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"]]);fo.code=new Map(Array.from(fo.name).map(t=>[t[1],t[0]]))});var Tg=H((mI,Og)=>{"use strict";var rO=(t,e)=>{if(Number.isSafeInteger(t))t<0?nO(t,e):iO(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},iO=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},nO=(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]=xg(n):n===0?e[i-1]=0:(r=!0,e[i-1]=Fg(n))}},sO=t=>{let e=t[0],r=e===128?uO(t.slice(1,t.length)):e===255?oO(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},oO=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=xg(s):s===0?o=s:(i=!0,o=Fg(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},uO=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},xg=t=>(255^t)&255,Fg=t=>(255^t)+1&255;Og.exports={encode:rO,parse:sO}});var Pi=H((yI,Lg)=>{"use strict";var Dc=Ec(),Bi=require("path").posix,kg=Tg(),_c=Symbol("slurp"),Xe=Symbol("type"),Sc=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[Xe]="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=jr(e,r,100),this.mode=dr(e,r+100,8),this.uid=dr(e,r+108,8),this.gid=dr(e,r+116,8),this.size=dr(e,r+124,12),this.mtime=bc(e,r+136,12),this.cksum=dr(e,r+148,12),this[_c](i),this[_c](n,!0),this[Xe]=jr(e,r+156,1),this[Xe]===""&&(this[Xe]="0"),this[Xe]==="0"&&this.path.slice(-1)==="/"&&(this[Xe]="5"),this[Xe]==="5"&&(this.size=0),this.linkpath=jr(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=jr(e,r+265,32),this.gname=jr(e,r+297,32),this.devmaj=dr(e,r+329,8),this.devmin=dr(e,r+337,8),e[r+475]!==0){let o=jr(e,r+345,155);this.path=o+"/"+this.path}else{let o=jr(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=bc(e,r+476,12),this.ctime=bc(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)}[_c](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=aO(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=Hr(e,r,100,s)||this.needPax,this.needPax=mr(e,r+100,8,this.mode)||this.needPax,this.needPax=mr(e,r+108,8,this.uid)||this.needPax,this.needPax=mr(e,r+116,8,this.gid)||this.needPax,this.needPax=mr(e,r+124,12,this.size)||this.needPax,this.needPax=wc(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Xe].charCodeAt(0),this.needPax=Hr(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=Hr(e,r+265,32,this.uname)||this.needPax,this.needPax=Hr(e,r+297,32,this.gname)||this.needPax,this.needPax=mr(e,r+329,8,this.devmaj)||this.needPax,this.needPax=mr(e,r+337,8,this.devmin)||this.needPax,this.needPax=Hr(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=Hr(e,r+345,155,o)||this.needPax:(this.needPax=Hr(e,r+345,130,o)||this.needPax,this.needPax=wc(e,r+476,12,this.atime)||this.needPax,this.needPax=wc(e,r+488,12,this.ctime)||this.needPax);let u=8*32;for(let a=r;a<r+148;a++)u+=e[a];for(let a=r+156;a<r+512;a++)u+=e[a];return this.cksum=u,mr(e,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let r in e)e[r]!==null&&e[r]!==void 0&&(this[r]=e[r])}get type(){return Dc.name.get(this[Xe])||this[Xe]}get typeKey(){return this[Xe]}set type(e){Dc.code.has(e)?this[Xe]=Dc.code.get(e):this[Xe]=e}},aO=(t,e)=>{let i=t,n="",s,o=Bi.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=Bi.dirname(i),i=Bi.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=Bi.join(Bi.basename(n),i),n=Bi.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},jr=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),bc=(t,e,r)=>lO(dr(t,e,r)),lO=t=>t===null?null:new Date(t*1e3),dr=(t,e,r)=>t[e]&128?kg.parse(t.slice(e,e+r)):hO(t,e,r),cO=t=>isNaN(t)?null:t,hO=(t,e,r)=>cO(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),fO={12:8589934591,8:2097151},mr=(t,e,r,i)=>i===null?!1:i>fO[r]||i<0?(kg.encode(i,t.slice(e,e+r)),!0):(pO(t,e,r,i),!1),pO=(t,e,r,i)=>t.write(dO(i,r),e,r,"ascii"),dO=(t,e)=>mO(Math.floor(t).toString(8),e),mO=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",wc=(t,e,r,i)=>i===null?!1:mr(t,e,r,i.getTime()/1e3),yO=new Array(156).join("\0"),Hr=(t,e,r,i)=>i===null?!1:(t.write(i+yO,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);Lg.exports=Sc});var po=H((gI,Bg)=>{"use strict";var gO=Pi(),EO=require("path"),Bn=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 gO({path:("PaxHeader/"+EO.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+`
|
7
|
-
`,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}};Bn.parse=(t,e,r)=>new Bn(
|
8
|
-
`).reduce(bO,Object.create(null)),bO=(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};Bg.exports=Bn});var Ii=H((EI,Pg)=>{Pg.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 mo=H((DI,Ig)=>{"use strict";Ig.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 vc=H((bI,Ng)=>{"use strict";var yo=["|","<",">","?",":"],Ac=yo.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),wO=new Map(yo.map((t,e)=>[t,Ac[e]])),SO=new Map(Ac.map((t,e)=>[t,yo[e]]));Ng.exports={encode:t=>yo.reduce((e,r)=>e.split(r).join(wO.get(r)),t),decode:t=>Ac.reduce((e,r)=>e.split(r).join(SO.get(r)),t)}});var Cc=H((wI,jg)=>{var{isAbsolute:AO,parse:Mg}=require("path").win32;jg.exports=t=>{let e="",r=Mg(t);for(;AO(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=Mg(t)}return[e,t]}});var qg=H((SI,Hg)=>{"use strict";Hg.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 Ic=H((CI,tE)=>{"use strict";var Kg=ro(),Vg=po(),Zg=Pi(),Rt=require("fs"),$g=require("path"),Ct=Li(),vO=Ii(),Jg=(t,e)=>e?(t=Ct(t).replace(/^\.(\/|$)/,""),vO(e)+"/"+t):Ct(t),CO=16*1024*1024,Ug=Symbol("process"),Gg=Symbol("file"),zg=Symbol("directory"),xc=Symbol("symlink"),Wg=Symbol("hardlink"),Pn=Symbol("header"),go=Symbol("read"),Fc=Symbol("lstat"),Eo=Symbol("onlstat"),Oc=Symbol("onread"),Tc=Symbol("onreadlink"),kc=Symbol("openfile"),Lc=Symbol("onopenfile"),yr=Symbol("close"),Do=Symbol("mode"),Bc=Symbol("awaitDrain"),Rc=Symbol("ondrain"),xt=Symbol("prefix"),Yg=Symbol("hadError"),Xg=mo(),RO=vc(),Qg=Cc(),eE=qg(),_o=Xg(class extends Kg{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=Ct(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||CO,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Ct(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?Ct(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]=Qg(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=RO.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=Ct(r.absolute||$g.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[Eo](this.statCache.get(this.absolute)):this[Fc]()}emit(e,...r){return e==="error"&&(this[Yg]=!0),super.emit(e,...r)}[Fc](){Rt.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Eo](r)})}[Eo](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=FO(e),this.emit("stat",e),this[Ug]()}[Ug](){switch(this.type){case"File":return this[Gg]();case"Directory":return this[zg]();case"SymbolicLink":return this[xc]();default:return this.end()}}[Do](e){return eE(e,this.type==="Directory",this.portable)}[xt](e){return Jg(e,this.prefix)}[Pn](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new Zg({path:this[xt](this.path),linkpath:this.type==="Link"?this[xt](this.linkpath):this.linkpath,mode:this[Do](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 Vg({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[xt](this.path),linkpath:this.type==="Link"?this[xt](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)}[zg](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Pn](),this.end()}[xc](){Rt.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Tc](r)})}[Tc](e){this.linkpath=Ct(e),this[Pn](),this.end()}[Wg](e){this.type="Link",this.linkpath=Ct($g.relative(this.cwd,e)),this.stat.size=0,this[Pn](),this.end()}[Gg](){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[Wg](r)}this.linkCache.set(e,this.absolute)}if(this[Pn](),this.stat.size===0)return this.end();this[kc]()}[kc](){Rt.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Lc](r)})}[Lc](e){if(this.fd=e,this[Yg])return this[yr]();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[go]()}[go](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;Rt.read(e,r,i,n,s,(o,u)=>{if(o)return this[yr](()=>this.emit("error",o));this[Oc](u)})}[yr](e){Rt.close(this.fd,e)}[Oc](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[yr](()=>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[yr](()=>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[Rc]():this[Bc](()=>this[Rc]())}[Bc](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)}[Rc](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[yr](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[go]()}}),Pc=class extends _o{[Fc](){this[Eo](Rt.lstatSync(this.absolute))}[xc](){this[Tc](Rt.readlinkSync(this.absolute))}[kc](){this[Lc](Rt.openSync(this.absolute,"r"))}[go](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,u=Rt.readSync(r,i,n,s,o);this[Oc](u),e=!1}finally{if(e)try{this[yr](()=>{})}catch{}}}[Bc](e){e()}[yr](e){Rt.closeSync(this.fd),e()}},xO=Xg(class extends Kg{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=Ct(e.path),this.mode=this[Do](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=Ct(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=Qg(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new Zg({path:this[xt](this.path),linkpath:this.type==="Link"?this[xt](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 Vg({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[xt](this.path),linkpath:this.type==="Link"?this[xt](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)}[xt](e){return Jg(e,this.prefix)}[Do](e){return eE(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()}});_o.Sync=Pc;_o.Tar=xO;var FO=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";tE.exports=_o});var iE=H((RI,rE)=>{"use strict";rE.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Nc=H((xI,nE)=>{"use strict";nE.exports=oe;oe.Node=qr;oe.create=oe;function oe(t){var e=this;if(e instanceof oe||(e=new oe),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}oe.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};oe.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++}};oe.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++}};oe.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)TO(this,arguments[t]);return this.length};oe.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)kO(this,arguments[t]);return this.length};oe.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}};oe.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}};oe.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};oe.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};oe.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};oe.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};oe.prototype.map=function(t,e){e=e||this;for(var r=new oe,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};oe.prototype.mapReverse=function(t,e){e=e||this;for(var r=new oe,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};oe.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};oe.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};oe.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};oe.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};oe.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 oe;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};oe.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 oe;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};oe.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=OO(this,n,r[i]);return s};oe.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 OO(t,e,r){var i=e===t.head?new qr(r,null,e,t):new qr(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function TO(t,e){t.tail=new qr(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function kO(t,e){t.head=new qr(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function qr(t,e,r,i){if(!(this instanceof qr))return new qr(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{iE()(oe)}catch{}});var Fo=H((OI,hE)=>{"use strict";var Ro=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}},LO=ro(),BO=mc(),PO=ho(),Wc=Ic(),IO=Wc.Sync,NO=Wc.Tar,MO=Nc(),sE=Buffer.alloc(1024),So=Symbol("onStat"),bo=Symbol("ended"),Ft=Symbol("queue"),Ni=Symbol("current"),$r=Symbol("process"),wo=Symbol("processing"),oE=Symbol("processJob"),Ot=Symbol("jobs"),Mc=Symbol("jobDone"),Ao=Symbol("addFSEntry"),uE=Symbol("addTarEntry"),$c=Symbol("stat"),Uc=Symbol("readdir"),vo=Symbol("onreaddir"),Co=Symbol("pipe"),aE=Symbol("entry"),jc=Symbol("entryOpt"),Gc=Symbol("writeEntryClass"),cE=Symbol("write"),Hc=Symbol("ondrain"),xo=require("fs"),lE=require("path"),jO=mo(),qc=Li(),Yc=jO(class extends LO{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=qc(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Gc]=Wc,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 BO.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Hc]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Hc]),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[Ft]=new MO,this[Ot]=0,this.jobs=+e.jobs||4,this[wo]=!1,this[bo]=!1}[cE](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[bo]=!0,this[$r](),this}write(e){if(this[bo])throw new Error("write after end");return e instanceof PO?this[uE](e):this[Ao](e),this.flowing}[uE](e){let r=qc(lE.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new Ro(e.path,r,!1);i.entry=new NO(e,this[jc](i)),i.entry.on("end",n=>this[Mc](i)),this[Ot]+=1,this[Ft].push(i)}this[$r]()}[Ao](e){let r=qc(lE.resolve(this.cwd,e));this[Ft].push(new Ro(e,r)),this[$r]()}[$c](e){e.pending=!0,this[Ot]+=1;let r=this.follow?"stat":"lstat";xo[r](e.absolute,(i,n)=>{e.pending=!1,this[Ot]-=1,i?this.emit("error",i):this[So](e,n)})}[So](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[$r]()}[Uc](e){e.pending=!0,this[Ot]+=1,xo.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[Ot]-=1,r)return this.emit("error",r);this[vo](e,i)})}[vo](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[$r]()}[$r](){if(!this[wo]){this[wo]=!0;for(let e=this[Ft].head;e!==null&&this[Ot]<this.jobs;e=e.next)if(this[oE](e.value),e.value.ignore){let r=e.next;this[Ft].removeNode(e),e.next=r}this[wo]=!1,this[bo]&&!this[Ft].length&&this[Ot]===0&&(this.zip?this.zip.end(sE):(super.write(sE),super.end()))}}get[Ni](){return this[Ft]&&this[Ft].head&&this[Ft].head.value}[Mc](e){this[Ft].shift(),this[Ot]-=1,this[$r]()}[oE](e){if(!e.pending){if(e.entry){e===this[Ni]&&!e.piped&&this[Co](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[So](e,this.statCache.get(e.absolute)):this[$c](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[vo](e,this.readdirCache.get(e.absolute)):this[Uc](e),!e.readdir))){if(e.entry=this[aE](e),!e.entry){e.ignore=!0;return}e===this[Ni]&&!e.piped&&this[Co](e)}}}[jc](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}}[aE](e){this[Ot]+=1;try{return new this[Gc](e.path,this[jc](e)).on("end",()=>this[Mc](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Hc](){this[Ni]&&this[Ni].entry&&this[Ni].entry.resume()}[Co](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ao](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()}}),zc=class extends Yc{constructor(e){super(e),this[Gc]=IO}pause(){}resume(){}[$c](e){let r=this.follow?"statSync":"lstatSync";this[So](e,xo[r](e.absolute))}[Uc](e,r){this[vo](e,xo.readdirSync(e.absolute))}[Co](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ao](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[cE](n)})}};Yc.Sync=zc;hE.exports=Yc});var zi=H(Nn=>{"use strict";var HO=Ql(),qO=require("events").EventEmitter,We=require("fs"),Zc=We.writev;if(!Zc){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Zc=(r,i,n,s)=>{let o=(a,l)=>s(a,l,i),u=new e;u.oncomplete=o,t.writeBuffers(r,i,n,u)}}var Ui=Symbol("_autoClose"),ft=Symbol("_close"),In=Symbol("_ended"),he=Symbol("_fd"),fE=Symbol("_finished"),Er=Symbol("_flags"),Kc=Symbol("_flush"),Jc=Symbol("_handleChunk"),Xc=Symbol("_makeBuf"),Bo=Symbol("_mode"),Oo=Symbol("_needDrain"),qi=Symbol("_onerror"),Gi=Symbol("_onopen"),Vc=Symbol("_onread"),ji=Symbol("_onwrite"),Dr=Symbol("_open"),Zt=Symbol("_path"),Ur=Symbol("_pos"),Tt=Symbol("_queue"),Hi=Symbol("_read"),pE=Symbol("_readSize"),gr=Symbol("_reading"),To=Symbol("_remain"),dE=Symbol("_size"),ko=Symbol("_write"),Mi=Symbol("_writing"),Lo=Symbol("_defaultFlag"),$i=Symbol("_errored"),Po=class extends HO{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[$i]=!1,this[he]=typeof r.fd=="number"?r.fd:null,this[Zt]=e,this[pE]=r.readSize||16*1024*1024,this[gr]=!1,this[dE]=typeof r.size=="number"?r.size:1/0,this[To]=this[dE],this[Ui]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[he]=="number"?this[Hi]():this[Dr]()}get fd(){return this[he]}get path(){return this[Zt]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Dr](){We.open(this[Zt],"r",(e,r)=>this[Gi](e,r))}[Gi](e,r){e?this[qi](e):(this[he]=r,this.emit("open",r),this[Hi]())}[Xc](){return Buffer.allocUnsafe(Math.min(this[pE],this[To]))}[Hi](){if(!this[gr]){this[gr]=!0;let e=this[Xc]();if(e.length===0)return process.nextTick(()=>this[Vc](null,0,e));We.read(this[he],e,0,e.length,null,(r,i,n)=>this[Vc](r,i,n))}}[Vc](e,r,i){this[gr]=!1,e?this[qi](e):this[Jc](r,i)&&this[Hi]()}[ft](){if(this[Ui]&&typeof this[he]=="number"){let e=this[he];this[he]=null,We.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[qi](e){this[gr]=!0,this[ft](),this.emit("error",e)}[Jc](e,r){let i=!1;return this[To]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[To]<=0)&&(i=!1,this[ft](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[he]=="number"&&this[Hi]();break;case"error":return this[$i]?void 0:(this[$i]=!0,super.emit(e,r));default:return super.emit(e,r)}}},Qc=class extends Po{[Dr](){let e=!0;try{this[Gi](null,We.openSync(this[Zt],"r")),e=!1}finally{e&&this[ft]()}}[Hi](){let e=!0;try{if(!this[gr]){this[gr]=!0;do{let r=this[Xc](),i=r.length===0?0:We.readSync(this[he],r,0,r.length,null);if(!this[Jc](i,r))break}while(!0);this[gr]=!1}e=!1}finally{e&&this[ft]()}}[ft](){if(this[Ui]&&typeof this[he]=="number"){let e=this[he];this[he]=null,We.closeSync(e),this.emit("close")}}},Io=class extends qO{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[$i]=!1,this[Mi]=!1,this[In]=!1,this[Oo]=!1,this[Tt]=[],this[Zt]=e,this[he]=typeof r.fd=="number"?r.fd:null,this[Bo]=r.mode===void 0?438:r.mode,this[Ur]=typeof r.start=="number"?r.start:null,this[Ui]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[Ur]!==null?"r+":"w";this[Lo]=r.flags===void 0,this[Er]=this[Lo]?i:r.flags,this[he]===null&&this[Dr]()}emit(e,r){if(e==="error"){if(this[$i])return;this[$i]=!0}return super.emit(e,r)}get fd(){return this[he]}get path(){return this[Zt]}[qi](e){this[ft](),this[Mi]=!0,this.emit("error",e)}[Dr](){We.open(this[Zt],this[Er],this[Bo],(e,r)=>this[Gi](e,r))}[Gi](e,r){this[Lo]&&this[Er]==="r+"&&e&&e.code==="ENOENT"?(this[Er]="w",this[Dr]()):e?this[qi](e):(this[he]=r,this.emit("open",r),this[Kc]())}end(e,r){return e&&this.write(e,r),this[In]=!0,!this[Mi]&&!this[Tt].length&&typeof this[he]=="number"&&this[ji](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[In]?(this.emit("error",new Error("write() after end()")),!1):this[he]===null||this[Mi]||this[Tt].length?(this[Tt].push(e),this[Oo]=!0,!1):(this[Mi]=!0,this[ko](e),!0)}[ko](e){We.write(this[he],e,0,e.length,this[Ur],(r,i)=>this[ji](r,i))}[ji](e,r){e?this[qi](e):(this[Ur]!==null&&(this[Ur]+=r),this[Tt].length?this[Kc]():(this[Mi]=!1,this[In]&&!this[fE]?(this[fE]=!0,this[ft](),this.emit("finish")):this[Oo]&&(this[Oo]=!1,this.emit("drain"))))}[Kc](){if(this[Tt].length===0)this[In]&&this[ji](null,0);else if(this[Tt].length===1)this[ko](this[Tt].pop());else{let e=this[Tt];this[Tt]=[],Zc(this[he],e,this[Ur],(r,i)=>this[ji](r,i))}}[ft](){if(this[Ui]&&typeof this[he]=="number"){let e=this[he];this[he]=null,We.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},eh=class extends Io{[Dr](){let e;if(this[Lo]&&this[Er]==="r+")try{e=We.openSync(this[Zt],this[Er],this[Bo])}catch(r){if(r.code==="ENOENT")return this[Er]="w",this[Dr]();throw r}else e=We.openSync(this[Zt],this[Er],this[Bo]);this[Gi](null,e)}[ft](){if(this[Ui]&&typeof this[he]=="number"){let e=this[he];this[he]=null,We.closeSync(e),this.emit("close")}}[ko](e){let r=!0;try{this[ji](null,We.writeSync(this[he],e,0,e.length,this[Ur])),r=!1}finally{if(r)try{this[ft]()}catch{}}}};Nn.ReadStream=Po;Nn.ReadStreamSync=Qc;Nn.WriteStream=Io;Nn.WriteStreamSync=eh});var Uo=H((LI,wE)=>{"use strict";var $O=mo(),UO=Pi(),GO=require("events"),zO=Nc(),WO=1024*1024,YO=ho(),mE=po(),KO=mc(),{nextTick:VO}=require("process"),th=Buffer.from([31,139]),nt=Symbol("state"),Gr=Symbol("writeEntry"),Jt=Symbol("readEntry"),rh=Symbol("nextEntry"),yE=Symbol("processEntry"),st=Symbol("extendedHeader"),Mn=Symbol("globalExtendedHeader"),_r=Symbol("meta"),gE=Symbol("emitMeta"),de=Symbol("buffer"),Xt=Symbol("queue"),zr=Symbol("ended"),EE=Symbol("emittedEnd"),Wr=Symbol("emit"),Ye=Symbol("unzip"),No=Symbol("consumeChunk"),Mo=Symbol("consumeChunkSub"),ih=Symbol("consumeBody"),DE=Symbol("consumeMeta"),_E=Symbol("consumeHeader"),jo=Symbol("consuming"),nh=Symbol("bufferConcat"),sh=Symbol("maybeEnd"),jn=Symbol("writing"),br=Symbol("aborted"),Ho=Symbol("onDone"),Yr=Symbol("sawValidEntry"),qo=Symbol("sawNullBlock"),$o=Symbol("sawEOF"),bE=Symbol("closeStream"),ZO=t=>!0;wE.exports=$O(class extends GO{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Yr]=null,this.on(Ho,r=>{(this[nt]==="begin"||this[Yr]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Ho,e.ondone):this.on(Ho,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||WO,this.filter=typeof e.filter=="function"?e.filter:ZO,this.writable=!0,this.readable=!1,this[Xt]=new zO,this[de]=null,this[Jt]=null,this[Gr]=null,this[nt]="begin",this[_r]="",this[st]=null,this[Mn]=null,this[zr]=!1,this[Ye]=null,this[br]=!1,this[qo]=!1,this[$o]=!1,this.on("end",()=>this[bE]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[_E](e,r){this[Yr]===null&&(this[Yr]=!1);let i;try{i=new UO(e,r,this[st],this[Mn])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[qo]?(this[$o]=!0,this[nt]==="begin"&&(this[nt]="header"),this[Wr]("eof")):(this[qo]=!0,this[Wr]("nullBlock"));else if(this[qo]=!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[Gr]=new YO(i,this[st],this[Mn]);if(!this[Yr])if(s.remain){let o=()=>{s.invalid||(this[Yr]=!0)};s.on("end",o)}else this[Yr]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Wr]("ignoredEntry",s),this[nt]="ignore",s.resume()):s.size>0&&(this[_r]="",s.on("data",o=>this[_r]+=o),this[nt]="meta"):(this[st]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Wr]("ignoredEntry",s),this[nt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[nt]="body":(this[nt]="header",s.end()),this[Jt]?this[Xt].push(s):(this[Xt].push(s),this[rh]())))}}}[bE](){VO(()=>this.emit("close"))}[yE](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Jt]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[rh]()),r=!1)):(this[Jt]=null,r=!1),r}[rh](){do;while(this[yE](this[Xt].shift()));if(!this[Xt].length){let e=this[Jt];!e||e.flowing||e.size===e.remain?this[jn]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[ih](e,r){let i=this[Gr],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[nt]="header",this[Gr]=null,i.end()),s.length}[DE](e,r){let i=this[Gr],n=this[ih](e,r);return this[Gr]||this[gE](i),n}[Wr](e,r,i){!this[Xt].length&&!this[Jt]?this.emit(e,r,i):this[Xt].push([e,r,i])}[gE](e){switch(this[Wr]("meta",this[_r]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[st]=mE.parse(this[_r],this[st],!1);break;case"GlobalExtendedHeader":this[Mn]=mE.parse(this[_r],this[Mn],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[st]=this[st]||Object.create(null),this[st].path=this[_r].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[st]=this[st]||Object.create(null),this[st].linkpath=this[_r].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[br]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[br])return;if(this[Ye]===null&&e){if(this[de]&&(e=Buffer.concat([this[de],e]),this[de]=null),e.length<th.length)return this[de]=e,!0;for(let i=0;this[Ye]===null&&i<th.length;i++)e[i]!==th[i]&&(this[Ye]=!1);if(this[Ye]===null){let i=this[zr];this[zr]=!1,this[Ye]=new KO.Unzip,this[Ye].on("data",s=>this[No](s)),this[Ye].on("error",s=>this.abort(s)),this[Ye].on("end",s=>{this[zr]=!0,this[No]()}),this[jn]=!0;let n=this[Ye][i?"end":"write"](e);return this[jn]=!1,n}}this[jn]=!0,this[Ye]?this[Ye].write(e):this[No](e),this[jn]=!1;let r=this[Xt].length?!1:this[Jt]?this[Jt].flowing:!0;return!r&&!this[Xt].length&&this[Jt].once("drain",i=>this.emit("drain")),r}[nh](e){e&&!this[br]&&(this[de]=this[de]?Buffer.concat([this[de],e]):e)}[sh](){if(this[zr]&&!this[EE]&&!this[br]&&!this[jo]){this[EE]=!0;let e=this[Gr];if(e&&e.blockRemain){let r=this[de]?this[de].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[de]&&e.write(this[de]),e.end()}this[Wr](Ho)}}[No](e){if(this[jo])this[nh](e);else if(!e&&!this[de])this[sh]();else{if(this[jo]=!0,this[de]){this[nh](e);let r=this[de];this[de]=null,this[Mo](r)}else this[Mo](e);for(;this[de]&&this[de].length>=512&&!this[br]&&!this[$o];){let r=this[de];this[de]=null,this[Mo](r)}this[jo]=!1}(!this[de]||this[zr])&&this[sh]()}[Mo](e){let r=0,i=e.length;for(;r+512<=i&&!this[br]&&!this[$o];)switch(this[nt]){case"begin":case"header":this[_E](e,r),r+=512;break;case"ignore":case"body":r+=this[ih](e,r);break;case"meta":r+=this[DE](e,r);break;default:throw new Error("invalid state: "+this[nt])}r<i&&(this[de]?this[de]=Buffer.concat([e.slice(r),this[de]]):this[de]=e.slice(r))}end(e){this[br]||(this[Ye]?this[Ye].end(e):(this[zr]=!0,this.write(e)))}})});var Go=H((BI,CE)=>{"use strict";var JO=xi(),AE=Uo(),Wi=require("fs"),XO=zi(),SE=require("path"),oh=Ii();CE.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=JO(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&&eT(i,e),i.noResume||QO(i),i.file&&i.sync?tT(i):i.file?rT(i,r):vE(i)};var QO=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},eT=(t,e)=>{let r=new Map(e.map(s=>[oh(s),!0])),i=t.filter,n=(s,o)=>{let u=o||SE.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):n(SE.dirname(s),u);return r.set(s,a),a};t.filter=i?(s,o)=>i(s,o)&&n(oh(s)):s=>n(oh(s))},tT=t=>{let e=vE(t),r=t.file,i=!0,n;try{let s=Wi.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(Wi.readFileSync(r));else{let u=0,a=Buffer.allocUnsafe(o);for(n=Wi.openSync(r,"r");u<s.size;){let l=Wi.readSync(n,a,0,o,u);u+=l,e.write(a.slice(0,l))}e.end()}i=!1}finally{if(i&&n)try{Wi.closeSync(n)}catch{}}},rT=(t,e)=>{let r=new AE(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,u)=>{r.on("error",u),r.on("end",o),Wi.stat(n,(a,l)=>{if(a)u(a);else{let c=new XO.ReadStream(n,{readSize:i,size:l.size});c.on("error",u),c.pipe(r)}})});return e?s.then(e,e):s},vE=t=>new AE(t)});var kE=H((PI,TE)=>{"use strict";var iT=xi(),zo=Fo(),RE=zi(),xE=Go(),FE=require("path");TE.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=iT(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?nT(i,e):i.file?sT(i,e,r):i.sync?oT(i,e):uT(i,e)};var nT=(t,e)=>{let r=new zo.Sync(t),i=new RE.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),OE(r,e)},sT=(t,e,r)=>{let i=new zo(t),n=new RE.WriteStream(t.file,{mode:t.mode||438});i.pipe(n);let s=new Promise((o,u)=>{n.on("error",u),n.on("close",o),i.on("error",u)});return uh(i,e),r?s.then(r,r):s},OE=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?xE({file:FE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},uh=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return xE({file:FE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>uh(t,e));t.add(r)}t.end()},oT=(t,e)=>{let r=new zo.Sync(t);return OE(r,e),r},uT=(t,e)=>{let r=new zo(t);return uh(r,e),r}});var ah=H((II,jE)=>{"use strict";var aT=xi(),LE=Fo(),Qe=require("fs"),BE=zi(),PE=Go(),IE=require("path"),NE=Pi();jE.exports=(t,e,r)=>{let i=aT(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?lT(i,e):hT(i,e,r)};var lT=(t,e)=>{let r=new LE.Sync(t),i=!0,n,s;try{try{n=Qe.openSync(t.file,"r+")}catch(a){if(a.code==="ENOENT")n=Qe.openSync(t.file,"w+");else throw a}let o=Qe.fstatSync(n),u=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let c=0,h=0;c<512;c+=h){if(h=Qe.readSync(n,u,c,u.length-c,s+c),s===0&&u[0]===31&&u[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let a=new NE(u);if(!a.cksumValid)break;let l=512*Math.ceil(a.size/512);if(s+l+512>o.size)break;s+=l,t.mtimeCache&&t.mtimeCache.set(a.path,a.mtime)}i=!1,cT(t,r,s,n,e)}finally{if(i)try{Qe.closeSync(n)}catch{}}},cT=(t,e,r,i,n)=>{let s=new BE.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),fT(e,n)},hT=(t,e,r)=>{e=Array.from(e);let i=new LE(t),n=(o,u,a)=>{let l=(m,d)=>{m?Qe.close(o,y=>a(m)):a(null,d)},c=0;if(u===0)return l(null,0);let h=0,f=Buffer.alloc(512),p=(m,d)=>{if(m)return l(m);if(h+=d,h<512&&d)return Qe.read(o,f,h,f.length-h,c+h,p);if(c===0&&f[0]===31&&f[1]===139)return l(new Error("cannot append to compressed archives"));if(h<512)return l(null,c);let y=new NE(f);if(!y.cksumValid)return l(null,c);let v=512*Math.ceil(y.size/512);if(c+v+512>u||(c+=v+512,c>=u))return l(null,c);t.mtimeCache&&t.mtimeCache.set(y.path,y.mtime),h=0,Qe.read(o,f,0,512,c,p)};Qe.read(o,f,0,512,c,p)},s=new Promise((o,u)=>{i.on("error",u);let a="r+",l=(c,h)=>{if(c&&c.code==="ENOENT"&&a==="r+")return a="w+",Qe.open(t.file,a,l);if(c)return u(c);Qe.fstat(h,(f,p)=>{if(f)return Qe.close(h,()=>u(f));n(h,p.size,(m,d)=>{if(m)return u(m);let y=new BE.WriteStream(t.file,{fd:h,start:d});i.pipe(y),y.on("error",u),y.on("close",o),ME(i,e)})})};Qe.open(t.file,a,l)});return r?s.then(r,r):s},fT=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?PE({file:IE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},ME=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return PE({file:IE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>ME(t,e));t.add(r)}t.end()}});var qE=H((NI,HE)=>{"use strict";var pT=xi(),dT=ah();HE.exports=(t,e,r)=>{let i=pT(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),mT(i),dT(i,e,r)};var mT=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 GE=H((MI,UE)=>{var{promisify:$E}=require("util"),wr=require("fs"),yT=t=>{if(!t)t={mode:511,fs:wr};else if(typeof t=="object")t={mode:511,fs:wr,...t};else if(typeof t=="number")t={mode:t,fs:wr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:wr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||wr.mkdir,t.mkdirAsync=$E(t.mkdir),t.stat=t.stat||t.fs.stat||wr.stat,t.statAsync=$E(t.stat),t.statSync=t.statSync||t.fs.statSync||wr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||wr.mkdirSync,t};UE.exports=yT});var WE=H((jI,zE)=>{var gT=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:ET,parse:DT}=require("path"),_T=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=ET(t),gT==="win32"){let e=/[*|"<>?:]/,{root:r}=DT(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};zE.exports=_T});var JE=H((HI,ZE)=>{var{dirname:YE}=require("path"),KE=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?KE(t,YE(e),e):void 0),VE=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?VE(t,YE(e),e):void 0}};ZE.exports={findMade:KE,findMadeSync:VE}});var hh=H((qI,QE)=>{var{dirname:XE}=require("path"),lh=(t,e,r)=>{e.recursive=!1;let i=XE(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 lh(i,e).then(s=>lh(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})})},ch=(t,e,r)=>{let i=XE(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 ch(t,e,ch(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};QE.exports={mkdirpManual:lh,mkdirpManualSync:ch}});var rD=H(($I,tD)=>{var{dirname:eD}=require("path"),{findMade:bT,findMadeSync:wT}=JE(),{mkdirpManual:ST,mkdirpManualSync:AT}=hh(),vT=(t,e)=>(e.recursive=!0,eD(t)===t?e.mkdirAsync(t,e):bT(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return ST(t,e);throw n}))),CT=(t,e)=>{if(e.recursive=!0,eD(t)===t)return e.mkdirSync(t,e);let i=wT(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return AT(t,e);throw n}};tD.exports={mkdirpNative:vT,mkdirpNativeSync:CT}});var oD=H((UI,sD)=>{var iD=require("fs"),RT=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,fh=RT.replace(/^v/,"").split("."),nD=+fh[0]>10||+fh[0]==10&&+fh[1]>=12,xT=nD?t=>t.mkdir===iD.mkdir:()=>!1,FT=nD?t=>t.mkdirSync===iD.mkdirSync:()=>!1;sD.exports={useNative:xT,useNativeSync:FT}});var fD=H((GI,hD)=>{var Yi=GE(),Ki=WE(),{mkdirpNative:uD,mkdirpNativeSync:aD}=rD(),{mkdirpManual:lD,mkdirpManualSync:cD}=hh(),{useNative:OT,useNativeSync:TT}=oD(),Vi=(t,e)=>(t=Ki(t),e=Yi(e),OT(e)?uD(t,e):lD(t,e)),kT=(t,e)=>(t=Ki(t),e=Yi(e),TT(e)?aD(t,e):cD(t,e));Vi.sync=kT;Vi.native=(t,e)=>uD(Ki(t),Yi(e));Vi.manual=(t,e)=>lD(Ki(t),Yi(e));Vi.nativeSync=(t,e)=>aD(Ki(t),Yi(e));Vi.manualSync=(t,e)=>cD(Ki(t),Yi(e));hD.exports=Vi});var DD=H((zI,ED)=>{"use strict";var ot=require("fs"),Kr=require("path"),LT=ot.lchown?"lchown":"chown",BT=ot.lchownSync?"lchownSync":"chownSync",dD=ot.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),pD=(t,e,r)=>{try{return ot[BT](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},PT=(t,e,r)=>{try{return ot.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},IT=dD?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):ot.chown(t,e,r,i)}:(t,e,r,i)=>i,ph=dD?(t,e,r)=>{try{return pD(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;PT(t,e,r)}}:(t,e,r)=>pD(t,e,r),NT=process.version,mD=(t,e,r)=>ot.readdir(t,e,r),MT=(t,e)=>ot.readdirSync(t,e);/^v4\./.test(NT)&&(mD=(t,e,r)=>ot.readdir(t,r));var Wo=(t,e,r,i)=>{ot[LT](t,e,r,IT(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},yD=(t,e,r,i,n)=>{if(typeof e=="string")return ot.lstat(Kr.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,yD(t,o,r,i,n)});if(e.isDirectory())dh(Kr.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=Kr.resolve(t,e.name);Wo(o,r,i,n)});else{let s=Kr.resolve(t,e.name);Wo(s,r,i,n)}},dh=(t,e,r,i)=>{mD(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 Wo(t,e,r,i);let o=s.length,u=null,a=l=>{if(!u){if(l)return i(u=l);if(--o===0)return Wo(t,e,r,i)}};s.forEach(l=>yD(t,l,e,r,a))})},jT=(t,e,r,i)=>{if(typeof e=="string")try{let n=ot.lstatSync(Kr.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&gD(Kr.resolve(t,e.name),r,i),ph(Kr.resolve(t,e.name),r,i)},gD=(t,e,r)=>{let i;try{i=MT(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return ph(t,e,r);throw n}return i&&i.length&&i.forEach(n=>jT(t,n,e,r)),ph(t,e,r)};ED.exports=dh;dh.sync=gD});var SD=H((WI,mh)=>{"use strict";var _D=fD(),ut=require("fs"),Yo=require("path"),bD=DD(),pt=Li(),Ko=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Vo=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Zo=(t,e)=>t.get(pt(e)),Hn=(t,e,r)=>t.set(pt(e),r),HT=(t,e)=>{ut.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Vo(t,r&&r.code||"ENOTDIR")),e(r)})};mh.exports=(t,e,r)=>{t=pt(t);let i=e.umask,n=e.mode|448,s=(n&i)!==0,o=e.uid,u=e.gid,a=typeof o=="number"&&typeof u=="number"&&(o!==e.processUid||u!==e.processGid),l=e.preserve,c=e.unlink,h=e.cache,f=pt(e.cwd),p=(y,v)=>{y?r(y):(Hn(h,t,!0),v&&a?bD(v,o,u,F=>p(F)):s?ut.chmod(t,n,r):r())};if(h&&Zo(h,t)===!0)return p();if(t===f)return HT(t,p);if(l)return _D(t,{mode:n}).then(y=>p(null,y),p);let d=pt(Yo.relative(f,t)).split("/");Jo(f,d,n,h,c,f,null,p)};var Jo=(t,e,r,i,n,s,o,u)=>{if(!e.length)return u(null,o);let a=e.shift(),l=pt(Yo.resolve(t+"/"+a));if(Zo(i,l))return Jo(l,e,r,i,n,s,o,u);ut.mkdir(l,r,wD(l,e,r,i,n,s,o,u))},wD=(t,e,r,i,n,s,o,u)=>a=>{a?ut.lstat(t,(l,c)=>{if(l)l.path=l.path&&pt(l.path),u(l);else if(c.isDirectory())Jo(t,e,r,i,n,s,o,u);else if(n)ut.unlink(t,h=>{if(h)return u(h);ut.mkdir(t,r,wD(t,e,r,i,n,s,o,u))});else{if(c.isSymbolicLink())return u(new Ko(t,t+"/"+e.join("/")));u(a)}}):(o=o||t,Jo(t,e,r,i,n,s,o,u))},qT=t=>{let e=!1,r="ENOTDIR";try{e=ut.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Vo(t,r)}};mh.exports.sync=(t,e)=>{t=pt(t);let r=e.umask,i=e.mode|448,n=(i&r)!==0,s=e.uid,o=e.gid,u=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),a=e.preserve,l=e.unlink,c=e.cache,h=pt(e.cwd),f=y=>{Hn(c,t,!0),y&&u&&bD.sync(y,s,o),n&&ut.chmodSync(t,i)};if(c&&Zo(c,t)===!0)return f();if(t===h)return qT(h),f();if(a)return f(_D.sync(t,i));let m=pt(Yo.relative(h,t)).split("/"),d=null;for(let y=m.shift(),v=h;y&&(v+="/"+y);y=m.shift())if(v=pt(Yo.resolve(v)),!Zo(c,v))try{ut.mkdirSync(v,i),d=d||v,Hn(c,v,!0)}catch{let T=ut.lstatSync(v);if(T.isDirectory()){Hn(c,v,!0);continue}else if(l){ut.unlinkSync(v),ut.mkdirSync(v,i),d=d||v,Hn(c,v,!0);continue}else if(T.isSymbolicLink())return new Ko(v,v+"/"+m.join("/"))}return f(d)}});var gh=H((YI,AD)=>{var yh=Object.create(null),{hasOwnProperty:$T}=Object.prototype;AD.exports=t=>($T.call(yh,t)||(yh[t]=t.normalize("NFKD")),yh[t])});var xD=H((KI,RD)=>{var vD=require("assert"),UT=gh(),GT=Ii(),{join:CD}=require("path"),zT=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,WT=zT==="win32";RD.exports=()=>{let t=new Map,e=new Map,r=l=>l.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=CD(h[h.length-1],f)),h.push(f||"/"),h),[]),i=new Set,n=l=>{let c=e.get(l);if(!c)throw new Error("function does not have any path reservations");return{paths:c.paths.map(h=>t.get(h)),dirs:[...c.dirs].map(h=>t.get(h))}},s=l=>{let{paths:c,dirs:h}=n(l);return c.every(f=>f[0]===l)&&h.every(f=>f[0]instanceof Set&&f[0].has(l))},o=l=>i.has(l)||!s(l)?!1:(i.add(l),l(()=>u(l)),!0),u=l=>{if(!i.has(l))return!1;let{paths:c,dirs:h}=e.get(l),f=new Set;return c.forEach(p=>{let m=t.get(p);vD.equal(m[0],l),m.length===1?t.delete(p):(m.shift(),typeof m[0]=="function"?f.add(m[0]):m[0].forEach(d=>f.add(d)))}),h.forEach(p=>{let m=t.get(p);vD(m[0]instanceof Set),m[0].size===1&&m.length===1?t.delete(p):m[0].size===1?(m.shift(),f.add(m[0])):m[0].delete(l)}),i.delete(l),f.forEach(p=>o(p)),!0};return{check:s,reserve:(l,c)=>{l=WT?["win32 parallelization disabled"]:l.map(f=>UT(GT(CD(f))).toLowerCase());let h=new Set(l.map(f=>r(f)).reduce((f,p)=>f.concat(p)));return e.set(c,{dirs:h,paths:l}),l.forEach(f=>{let p=t.get(f);p?p.push(c):t.set(f,[c])}),h.forEach(f=>{let p=t.get(f);p?p[p.length-1]instanceof Set?p[p.length-1].add(c):p.push(new Set([c])):t.set(f,[new Set([c])])}),o(c)}}}});var TD=H((VI,OD)=>{var YT=process.env.__FAKE_PLATFORM__||process.platform,KT=YT==="win32",VT=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:ZT,O_TRUNC:JT,O_WRONLY:XT,UV_FS_O_FILEMAP:FD=0}=VT.constants,QT=KT&&!!FD,ek=512*1024,tk=FD|JT|ZT|XT;OD.exports=QT?t=>t<ek?tk:"w":()=>"w"});var Ch=H((ZI,zD)=>{"use strict";var rk=require("assert"),ik=Uo(),ue=require("fs"),nk=zi(),Qt=require("path"),$D=SD(),kD=vc(),sk=xD(),ok=Cc(),et=Li(),uk=Ii(),ak=gh(),LD=Symbol("onEntry"),_h=Symbol("checkFs"),BD=Symbol("checkFs2"),eu=Symbol("pruneCache"),bh=Symbol("isReusable"),at=Symbol("makeFs"),wh=Symbol("file"),Sh=Symbol("directory"),tu=Symbol("link"),PD=Symbol("symlink"),ID=Symbol("hardlink"),ND=Symbol("unsupported"),MD=Symbol("checkPath"),Sr=Symbol("mkdir"),Me=Symbol("onError"),Xo=Symbol("pending"),jD=Symbol("pend"),Zi=Symbol("unpend"),Eh=Symbol("ended"),Dh=Symbol("maybeClose"),Ah=Symbol("skip"),qn=Symbol("doChown"),$n=Symbol("uid"),Un=Symbol("gid"),Gn=Symbol("checkedCwd"),UD=require("crypto"),GD=TD(),lk=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,zn=lk==="win32",ck=(t,e)=>{if(!zn)return ue.unlink(t,e);let r=t+".DELETE."+UD.randomBytes(16).toString("hex");ue.rename(t,r,i=>{if(i)return e(i);ue.unlink(r,e)})},hk=t=>{if(!zn)return ue.unlinkSync(t);let e=t+".DELETE."+UD.randomBytes(16).toString("hex");ue.renameSync(t,e),ue.unlinkSync(e)},HD=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,qD=t=>ak(uk(et(t))).toLowerCase(),fk=(t,e)=>{e=qD(e);for(let r of t.keys()){let i=qD(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},pk=t=>{for(let e of t.keys())t.delete(e)},Wn=class extends ik{constructor(e){if(e||(e={}),e.ondone=r=>{this[Eh]=!0,this[Dh]()},super(e),this[Gn]=!1,this.reservations=sk(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Xo]=0,this[Eh]=!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||zn,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=et(Qt.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[LD](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[Dh](){this[Eh]&&this[Xo]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[MD](e){if(this.strip){let r=et(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=et(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=et(e.path),i=r.split("/");if(i.includes("..")||zn&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=ok(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Qt.isAbsolute(e.path)?e.absolute=et(Qt.resolve(e.path)):e.absolute=et(Qt.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:et(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}=Qt.win32.parse(e.absolute);e.absolute=r+kD.encode(e.absolute.slice(r.length));let{root:i}=Qt.win32.parse(e.path);e.path=i+kD.encode(e.path.slice(i.length))}return!0}[LD](e){if(!this[MD](e))return e.resume();switch(rk.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[_h](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[ND](e)}}[Me](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[Zi](),r.resume())}[Sr](e,r,i){$D(et(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)}[qn](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}[$n](e){return HD(this.uid,e.uid,this.processUid)}[Un](e){return HD(this.gid,e.gid,this.processGid)}[wh](e,r){let i=e.mode&4095||this.fmode,n=new nk.WriteStream(e.absolute,{flags:GD(e.size),mode:i,autoClose:!1});n.on("error",a=>{n.fd&&ue.close(n.fd,()=>{}),n.write=()=>!0,this[Me](a,e),r()});let s=1,o=a=>{if(a){n.fd&&ue.close(n.fd,()=>{}),this[Me](a,e),r();return}--s===0&&ue.close(n.fd,l=>{l?this[Me](l,e):this[Zi](),r()})};n.on("finish",a=>{let l=e.absolute,c=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;ue.futimes(c,h,f,p=>p?ue.utimes(l,h,f,m=>o(m&&p)):o())}if(this[qn](e)){s++;let h=this[$n](e),f=this[Un](e);ue.fchown(c,h,f,p=>p?ue.chown(l,h,f,m=>o(m&&p)):o())}o()});let u=this.transform&&this.transform(e)||e;u!==e&&(u.on("error",a=>{this[Me](a,e),r()}),e.pipe(u)),u.pipe(n)}[Sh](e,r){let i=e.mode&4095||this.dmode;this[Sr](e.absolute,i,n=>{if(n){this[Me](n,e),r();return}let s=1,o=u=>{--s===0&&(r(),this[Zi](),e.resume())};e.mtime&&!this.noMtime&&(s++,ue.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[qn](e)&&(s++,ue.chown(e.absolute,this[$n](e),this[Un](e),o)),o()})}[ND](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[PD](e,r){this[tu](e,e.linkpath,"symlink",r)}[ID](e,r){let i=et(Qt.resolve(this.cwd,e.linkpath));this[tu](e,i,"link",r)}[jD](){this[Xo]++}[Zi](){this[Xo]--,this[Dh]()}[Ah](e){this[Zi](),e.resume()}[bh](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!zn}[_h](e){this[jD]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[BD](e,i))}[eu](e){e.type==="SymbolicLink"?pk(this.dirCache):e.type!=="Directory"&&fk(this.dirCache,e.absolute)}[BD](e,r){this[eu](e);let i=u=>{this[eu](e),r(u)},n=()=>{this[Sr](this.cwd,this.dmode,u=>{if(u){this[Me](u,e),i();return}this[Gn]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let u=et(Qt.dirname(e.absolute));if(u!==this.cwd)return this[Sr](u,this.dmode,a=>{if(a){this[Me](a,e),i();return}o()})}o()},o=()=>{ue.lstat(e.absolute,(u,a)=>{if(a&&(this.keep||this.newer&&a.mtime>e.mtime)){this[Ah](e),i();return}if(u||this[bh](e,a))return this[at](null,e,i);if(a.isDirectory()){if(e.type==="Directory"){let l=!this.noChmod&&e.mode&&(a.mode&4095)!==e.mode,c=h=>this[at](h,e,i);return l?ue.chmod(e.absolute,e.mode,c):c()}if(e.absolute!==this.cwd)return ue.rmdir(e.absolute,l=>this[at](l,e,i))}if(e.absolute===this.cwd)return this[at](null,e,i);ck(e.absolute,l=>this[at](l,e,i))})};this[Gn]?s():n()}[at](e,r,i){if(e){this[Me](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[wh](r,i);case"Link":return this[ID](r,i);case"SymbolicLink":return this[PD](r,i);case"Directory":case"GNUDumpDir":return this[Sh](r,i)}}[tu](e,r,i,n){ue[i](r,e.absolute,s=>{s?this[Me](s,e):(this[Zi](),e.resume()),n()})}},Qo=t=>{try{return[null,t()]}catch(e){return[e,null]}},vh=class extends Wn{[at](e,r){return super[at](e,r,()=>{})}[_h](e){if(this[eu](e),!this[Gn]){let s=this[Sr](this.cwd,this.dmode);if(s)return this[Me](s,e);this[Gn]=!0}if(e.absolute!==this.cwd){let s=et(Qt.dirname(e.absolute));if(s!==this.cwd){let o=this[Sr](s,this.dmode);if(o)return this[Me](o,e)}}let[r,i]=Qo(()=>ue.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[Ah](e);if(r||this[bh](e,i))return this[at](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[u]=o?Qo(()=>{ue.chmodSync(e.absolute,e.mode)}):[];return this[at](u,e)}let[s]=Qo(()=>ue.rmdirSync(e.absolute));this[at](s,e)}let[n]=e.absolute===this.cwd?[]:Qo(()=>hk(e.absolute));this[at](n,e)}[wh](e,r){let i=e.mode&4095||this.fmode,n=u=>{let a;try{ue.closeSync(s)}catch(l){a=l}(u||a)&&this[Me](u||a,e),r()},s;try{s=ue.openSync(e.absolute,GD(e.size),i)}catch(u){return n(u)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",u=>this[Me](u,e)),e.pipe(o)),o.on("data",u=>{try{ue.writeSync(s,u,0,u.length)}catch(a){n(a)}}),o.on("end",u=>{let a=null;if(e.mtime&&!this.noMtime){let l=e.atime||new Date,c=e.mtime;try{ue.futimesSync(s,l,c)}catch(h){try{ue.utimesSync(e.absolute,l,c)}catch{a=h}}}if(this[qn](e)){let l=this[$n](e),c=this[Un](e);try{ue.fchownSync(s,l,c)}catch(h){try{ue.chownSync(e.absolute,l,c)}catch{a=a||h}}}n(a)})}[Sh](e,r){let i=e.mode&4095||this.dmode,n=this[Sr](e.absolute,i);if(n){this[Me](n,e),r();return}if(e.mtime&&!this.noMtime)try{ue.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[qn](e))try{ue.chownSync(e.absolute,this[$n](e),this[Un](e))}catch{}r(),e.resume()}[Sr](e,r){try{return $D.sync(et(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}}[tu](e,r,i,n){try{ue[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Me](s,e)}}};Wn.Sync=vh;zD.exports=Wn});var ZD=H((JI,VD)=>{"use strict";var dk=xi(),ru=Ch(),YD=require("fs"),KD=zi(),WD=require("path"),Rh=Ii();VD.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=dk(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&&mk(i,e),i.file&&i.sync?yk(i):i.file?gk(i,r):i.sync?Ek(i):Dk(i)};var mk=(t,e)=>{let r=new Map(e.map(s=>[Rh(s),!0])),i=t.filter,n=(s,o)=>{let u=o||WD.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):n(WD.dirname(s),u);return r.set(s,a),a};t.filter=i?(s,o)=>i(s,o)&&n(Rh(s)):s=>n(Rh(s))},yk=t=>{let e=new ru.Sync(t),r=t.file,i=YD.statSync(r),n=t.maxReadSize||16*1024*1024;new KD.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},gk=(t,e)=>{let r=new ru(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,u)=>{r.on("error",u),r.on("close",o),YD.stat(n,(a,l)=>{if(a)u(a);else{let c=new KD.ReadStream(n,{readSize:i,size:l.size});c.on("error",u),c.pipe(r)}})});return e?s.then(e,e):s},Ek=t=>new ru.Sync(t),Dk=t=>new ru(t)});var JD=H(ve=>{"use strict";ve.c=ve.create=kE();ve.r=ve.replace=ah();ve.t=ve.list=Go();ve.u=ve.update=qE();ve.x=ve.extract=ZD();ve.Pack=Fo();ve.Unpack=Ch();ve.Parse=Uo();ve.ReadEntry=ho();ve.WriteEntry=Ic();ve.Header=Pi();ve.Pax=po();ve.types=Ec()});var i_=H((rN,r_)=>{function lt(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))}r_.exports=lt;lt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};lt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};lt.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};lt.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)};lt.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};lt.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};lt.prototype.start=lt.prototype.try;lt.prototype.errors=function(){return this._errors};lt.prototype.attempts=function(){return this._attempts};lt.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 n_=H(Vr=>{var Sk=i_();Vr.operation=function(t){var e=Vr.timeouts(t);return new Sk(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Vr.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};Vr.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};Vr.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(a){var l=Vr.operation(e),c=Array.prototype.slice.call(arguments,1),h=c.pop();c.push(function(f){l.retry(f)||(f&&(arguments[0]=l.mainError()),h.apply(this,arguments))}),l.attempt(function(){a.apply(t,c)})}.bind(t,o),t[s].options=e}}});var o_=H((nN,s_)=>{s_.exports=n_()});var a_=H((sN,u_)=>{var Ak=o_();function vk(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=Ak.operation(s);function u(c){n(c||new Error("Aborted"))}function a(c,h){if(c.bail){u(c);return}o.retry(c)?s.onRetry&&s.onRetry(c,h):n(o.mainError())}function l(c){var h;try{h=t(u,c)}catch(f){a(f,c);return}Promise.resolve(h).then(i).catch(function(p){a(p,c)})}o.attempt(l)}return new Promise(r)}u_.exports=vk});var jk={};Oh(jk,{default:()=>Mk,transformer:()=>d_});module.exports=__(jk);var h_=ie(require("path")),f_=require("fs-extra");var Si=ie(require("chalk"),1),gy=ie(require("ora"),1),Ey=ie(require("gradient-string"),1);var Tx=ie(ni(),1),zB=require("fs-extra");function Op(t){return typeof t=="undefined"||t===null}function dw(t){return typeof t=="object"&&t!==null}function mw(t){return Array.isArray(t)?t:Op(t)?[]:[t]}function yw(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 gw(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function Ew(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var Dw=Op,_w=dw,bw=mw,ww=gw,Sw=Ew,Aw=yw,Ae={isNothing:Dw,isObject:_w,toArray:bw,repeat:ww,isNegativeZero:Sw,extend:Aw};function Tp(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+=`
|
3
|
+
`.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 Af=H((oL,rn)=>{"use strict";var tn=require("path"),wf=cu(),Sf=t=>{t={cwd:process.cwd(),path:process.env[wf()],execPath:process.execPath,...t};let e,r=tn.resolve(t.cwd),i=[];for(;e!==r;)i.push(tn.join(r,"node_modules/.bin")),e=r,r=tn.resolve(r,"..");let n=tn.resolve(t.cwd,t.execPath,"..");return i.push(n),i.concat(t.path).join(tn.delimiter)};rn.exports=Sf;rn.exports.default=Sf;rn.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=wf({env:e});return t.path=e[r],e[r]=rn.exports(t),e}});var Cf=H((uL,Eu)=>{"use strict";var vf=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};Eu.exports=vf;Eu.exports.default=vf});var xf=H((aL,Jn)=>{"use strict";var K_=Cf(),Zn=new WeakMap,Rf=(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(Zn.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 K_(s,t),Zn.set(s,i),s};Jn.exports=Rf;Jn.exports.default=Rf;Jn.exports.callCount=t=>{if(!Zn.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Zn.get(t)}});var Ff=H(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.SIGNALS=void 0;var V_=[{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"}];Xn.SIGNALS=V_});var Du=H(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.SIGRTMAX=ri.getRealtimeSignals=void 0;var Z_=function(){let t=Tf-Of+1;return Array.from({length:t},J_)};ri.getRealtimeSignals=Z_;var J_=function(t,e){return{name:`SIGRT${e+1}`,number:Of+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Of=34,Tf=64;ri.SIGRTMAX=Tf});var kf=H(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.getSignals=void 0;var X_=require("os"),Q_=Ff(),eb=Du(),tb=function(){let t=(0,eb.getRealtimeSignals)();return[...Q_.SIGNALS,...t].map(rb)};Qn.getSignals=tb;var rb=function({name:t,number:e,description:r,action:i,forced:n=!1,standard:s}){let{signals:{[t]:o}}=X_.constants,u=o!==void 0;return{name:t,number:u?o:e,description:r,supported:u,action:i,forced:n,standard:s}}});var Bf=H(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.signalsByNumber=ii.signalsByName=void 0;var ib=require("os"),Lf=kf(),nb=Du(),sb=function(){return(0,Lf.getSignals)().reduce(ob,{})},ob=function(t,{name:e,number:r,description:i,supported:n,action:s,forced:o,standard:u}){return{...t,[e]:{name:e,number:r,description:i,supported:n,action:s,forced:o,standard:u}}},ub=sb();ii.signalsByName=ub;var ab=function(){let t=(0,Lf.getSignals)(),e=nb.SIGRTMAX+1,r=Array.from({length:e},(i,n)=>lb(n,t));return Object.assign({},...r)},lb=function(t,e){let r=cb(t,e);if(r===void 0)return{};let{name:i,description:n,supported:s,action:o,forced:u,standard:a}=r;return{[t]:{name:i,number:t,description:n,supported:s,action:o,forced:u,standard:a}}},cb=function(t,e){let r=e.find(({name:i})=>ib.constants.signals[i]===t);return r!==void 0?r:e.find(i=>i.number===t)},hb=ab();ii.signalsByNumber=hb});var If=H((pL,Pf)=>{"use strict";var{signalsByName:fb}=Bf(),pb=({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",db=({stdout:t,stderr:e,all:r,error:i,signal:n,exitCode:s,command:o,escapedCommand:u,timedOut:a,isCanceled:l,killed:c,parsed:{options:{timeout:h}}})=>{s=s===null?void 0:s,n=n===null?void 0:n;let f=n===void 0?void 0:fb[n].description,d=i&&i.code,y=`Command ${pb({timedOut:a,timeout:h,errorCode:d,signal:n,signalDescription:f,exitCode:s,isCanceled:l})}: ${o}`,E=Object.prototype.toString.call(i)==="[object Error]",v=E?`${y}
|
4
|
+
${i.message}`:y,F=[v,e,t].filter(Boolean).join(`
|
5
|
+
`);return E?(i.originalMessage=i.message,i.message=F):i=new Error(F),i.shortMessage=v,i.command=o,i.escapedCommand=u,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=!!a,i.isCanceled=l,i.killed=c&&!a,i};Pf.exports=db});var Mf=H((dL,_u)=>{"use strict";var es=["stdin","stdout","stderr"],mb=t=>es.some(e=>t[e]!==void 0),Nf=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return es.map(i=>t[i]);if(mb(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${es.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,es.length);return Array.from({length:r},(i,n)=>e[n])};_u.exports=Nf;_u.exports.node=t=>{let e=Nf(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var jf=H((mL,ts)=>{ts.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&ts.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&ts.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Gf=H((yL,oi)=>{var me=global.process,xr=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"};xr(me)?(Hf=require("assert"),ni=jf(),qf=/^win/i.test(me.platform),nn=require("events"),typeof nn!="function"&&(nn=nn.EventEmitter),me.__signal_exit_emitter__?Ce=me.__signal_exit_emitter__:(Ce=me.__signal_exit_emitter__=new nn,Ce.count=0,Ce.emitted={}),Ce.infinite||(Ce.setMaxListeners(1/0),Ce.infinite=!0),oi.exports=function(t,e){if(!xr(global.process))return function(){};Hf.equal(typeof t,"function","a callback must be provided for exit handler"),si===!1&&bu();var r="exit";e&&e.alwaysLast&&(r="afterexit");var i=function(){Ce.removeListener(r,t),Ce.listeners("exit").length===0&&Ce.listeners("afterexit").length===0&&rs()};return Ce.on(r,t),i},rs=function(){!si||!xr(global.process)||(si=!1,ni.forEach(function(e){try{me.removeListener(e,is[e])}catch{}}),me.emit=ns,me.reallyExit=wu,Ce.count-=1)},oi.exports.unload=rs,Fr=function(e,r,i){Ce.emitted[e]||(Ce.emitted[e]=!0,Ce.emit(e,r,i))},is={},ni.forEach(function(t){is[t]=function(){if(xr(global.process)){var r=me.listeners(t);r.length===Ce.count&&(rs(),Fr("exit",null,t),Fr("afterexit",null,t),qf&&t==="SIGHUP"&&(t="SIGINT"),me.kill(me.pid,t))}}}),oi.exports.signals=function(){return ni},si=!1,bu=function(){si||!xr(global.process)||(si=!0,Ce.count+=1,ni=ni.filter(function(e){try{return me.on(e,is[e]),!0}catch{return!1}}),me.emit=Uf,me.reallyExit=$f)},oi.exports.load=bu,wu=me.reallyExit,$f=function(e){xr(global.process)&&(me.exitCode=e||0,Fr("exit",me.exitCode,null),Fr("afterexit",me.exitCode,null),wu.call(me,me.exitCode))},ns=me.emit,Uf=function(e,r){if(e==="exit"&&xr(global.process)){r!==void 0&&(me.exitCode=r);var i=ns.apply(this,arguments);return Fr("exit",me.exitCode,null),Fr("afterexit",me.exitCode,null),i}else return ns.apply(this,arguments)}):oi.exports=function(){return function(){}};var Hf,ni,qf,nn,Ce,rs,Fr,is,si,bu,wu,$f,ns,Uf});var Wf=H((gL,zf)=>{"use strict";var yb=require("os"),gb=Gf(),Eb=1e3*5,Db=(t,e="SIGTERM",r={})=>{let i=t(e);return _b(t,e,r,i),i},_b=(t,e,r,i)=>{if(!bb(e,r,i))return;let n=Sb(r),s=setTimeout(()=>{t("SIGKILL")},n);s.unref&&s.unref()},bb=(t,{forceKillAfterTimeout:e},r)=>wb(t)&&e!==!1&&r,wb=t=>t===yb.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",Sb=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return Eb;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},Ab=(t,e)=>{t.kill()&&(e.isCanceled=!0)},vb=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},Cb=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(e===0||e===void 0)return i;let n,s=new Promise((u,a)=>{n=setTimeout(()=>{vb(t,r,a)},e)}),o=i.finally(()=>{clearTimeout(n)});return Promise.race([s,o])},Rb=({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})`)},xb=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;let n=gb(()=>{t.kill()});return i.finally(()=>{n()})};zf.exports={spawnedKill:Db,spawnedCancel:Ab,setupTimeout:Cb,validateTimeout:Rb,setExitHandler:xb}});var Kf=H((EL,Yf)=>{"use strict";var mt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";mt.writable=t=>mt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";mt.readable=t=>mt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";mt.duplex=t=>mt.writable(t)&&mt.readable(t);mt.transform=t=>mt.duplex(t)&&typeof t._transform=="function";Yf.exports=mt});var Zf=H((DL,Vf)=>{"use strict";var{PassThrough:Fb}=require("stream");Vf.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 Fb({objectMode:n});r&&s.setEncoding(r);let o=0,u=[];return s.on("data",a=>{u.push(a),n?o=u.length:o+=a.length}),s.getBufferedValue=()=>e?u:i?Buffer.concat(u,o):u.join(""),s.getBufferedLength=()=>o,s}});var Jf=H((_L,sn)=>{"use strict";var{constants:Ob}=require("buffer"),Tb=require("stream"),{promisify:kb}=require("util"),Lb=Zf(),Bb=kb(Tb.pipeline),ss=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Su(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,i=Lb(e);return await new Promise((n,s)=>{let o=u=>{u&&i.getBufferedLength()<=Ob.MAX_LENGTH&&(u.bufferedData=i.getBufferedValue()),s(u)};(async()=>{try{await Bb(t,i),n()}catch(u){o(u)}})(),i.on("data",()=>{i.getBufferedLength()>r&&o(new ss)})}),i.getBufferedValue()}sn.exports=Su;sn.exports.buffer=(t,e)=>Su(t,{...e,encoding:"buffer"});sn.exports.array=(t,e)=>Su(t,{...e,array:!0});sn.exports.MaxBufferError=ss});var Qf=H((bL,Xf)=>{"use strict";var{PassThrough:Pb}=require("stream");Xf.exports=function(){var t=[],e=new Pb({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 ip=H((wL,rp)=>{"use strict";var tp=Kf(),ep=Jf(),Ib=Qf(),Nb=(t,e)=>{e===void 0||t.stdin===void 0||(tp(e)?e.pipe(t.stdin):t.stdin.end(e))},Mb=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=Ib();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},Au=async(t,e)=>{if(t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},vu=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(!(!t||!r))return e?ep(t,{encoding:e,maxBuffer:i}):ep.buffer(t,{maxBuffer:i})},jb=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:n,maxBuffer:s},o)=>{let u=vu(t,{encoding:i,buffer:n,maxBuffer:s}),a=vu(e,{encoding:i,buffer:n,maxBuffer:s}),l=vu(r,{encoding:i,buffer:n,maxBuffer:s*2});try{return await Promise.all([o,u,a,l])}catch(c){return Promise.all([{error:c,signal:c.signal,timedOut:c.timedOut},Au(t,u),Au(e,a),Au(r,l)])}},Hb=({input:t})=>{if(tp(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};rp.exports={handleInput:Nb,makeAllStream:Mb,getSpawnedResult:jb,validateInputSync:Hb}});var sp=H((SL,np)=>{"use strict";var qb=(async()=>{})().constructor.prototype,$b=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(qb,t)]),Ub=(t,e)=>{for(let[r,i]of $b){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},Gb=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)})});np.exports={mergePromise:Ub,getSpawnedPromise:Gb}});var ap=H((AL,up)=>{"use strict";var op=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],zb=/^[\w.-]+$/,Wb=/"/g,Yb=t=>typeof t!="string"||zb.test(t)?t:`"${t.replace(Wb,'\\"')}"`,Kb=(t,e)=>op(t,e).join(" "),Vb=(t,e)=>op(t,e).map(r=>Yb(r)).join(" "),Zb=/ +/g,Jb=t=>{let e=[];for(let r of t.trim().split(Zb)){let i=e[e.length-1];i&&i.endsWith("\\")?e[e.length-1]=`${i.slice(0,-1)} ${r}`:e.push(r)}return e};up.exports={joinCommand:Kb,getEscapedCommand:Vb,parseCommand:Jb}});var ai=H((vL,ui)=>{"use strict";var Xb=require("path"),Cu=require("child_process"),Qb=Df(),ew=bf(),tw=Af(),rw=xf(),os=If(),cp=Mf(),{spawnedKill:iw,spawnedCancel:nw,setupTimeout:sw,validateTimeout:ow,setExitHandler:uw}=Wf(),{handleInput:aw,getSpawnedResult:lw,makeAllStream:cw,validateInputSync:hw}=ip(),{mergePromise:lp,getSpawnedPromise:fw}=sp(),{joinCommand:hp,parseCommand:fp,getEscapedCommand:pp}=ap(),pw=1e3*1e3*100,dw=({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:n})=>{let s=e?{...process.env,...t}:t;return r?tw.env({env:s,cwd:i,execPath:n}):s},dp=(t,e,r={})=>{let i=Qb._parse(t,e,r);return t=i.command,e=i.args,r=i.options,r={maxBuffer:pw,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=dw(r),r.stdio=cp(r),process.platform==="win32"&&Xb.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},on=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?ew(e):e,us=(t,e,r)=>{let i=dp(t,e,r),n=hp(t,e),s=pp(t,e);ow(i.options);let o;try{o=Cu.spawn(i.file,i.args,i.options)}catch(d){let g=new Cu.ChildProcess,y=Promise.reject(os({error:d,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return lp(g,y)}let u=fw(o),a=sw(o,i.options,u),l=uw(o,i.options,a),c={isCanceled:!1};o.kill=iw.bind(null,o.kill.bind(o)),o.cancel=nw.bind(null,o,c);let f=rw(async()=>{let[{error:d,exitCode:g,signal:y,timedOut:E},v,F,O]=await lw(o,i.options,l),x=on(i.options,v),R=on(i.options,F),L=on(i.options,O);if(d||g!==0||y!==null){let _=os({error:d,exitCode:g,signal:y,stdout:x,stderr:R,all:L,command:n,escapedCommand:s,parsed:i,timedOut:E,isCanceled:c.isCanceled,killed:o.killed});if(!i.options.reject)return _;throw _}return{command:n,escapedCommand:s,exitCode:0,stdout:x,stderr:R,all:L,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return aw(o,i.options.input),o.all=cw(o,i.options),lp(o,f)};ui.exports=us;ui.exports.sync=(t,e,r)=>{let i=dp(t,e,r),n=hp(t,e),s=pp(t,e);hw(i.options);let o;try{o=Cu.spawnSync(i.file,i.args,i.options)}catch(l){throw os({error:l,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let u=on(i.options,o.stdout,o.error),a=on(i.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let l=os({stdout:u,stderr:a,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 l;throw l}return{command:n,escapedCommand:s,exitCode:0,stdout:u,stderr:a,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};ui.exports.command=(t,e)=>{let[r,...i]=fp(t);return us(r,i,e)};ui.exports.commandSync=(t,e)=>{let[r,...i]=fp(t);return us.sync(r,i,e)};ui.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let i=cp.node(r),n=process.execArgv.filter(u=>!u.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return us(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})}});var gd=H(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.splitWhen=pi.flatten=void 0;function PA(t){return t.reduce((e,r)=>[].concat(e,r),[])}pi.flatten=PA;function IA(t,e){let r=[[]],i=0;for(let n of t)e(n)?(i++,r[i]=[]):r[i].push(n);return r}pi.splitWhen=IA});var Ed=H(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.isEnoentCodeError=void 0;function NA(t){return t.code==="ENOENT"}ds.isEnoentCodeError=NA});var Dd=H(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.createDirentFromStats=void 0;var $u=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 MA(t,e){return new $u(t,e)}ms.createDirentFromStats=MA});var _d=H(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.removeLeadingDotSegment=gt.escape=gt.makeAbsolute=gt.unixify=void 0;var jA=require("path"),HA=2,qA=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function $A(t){return t.replace(/\\/g,"/")}gt.unixify=$A;function UA(t,e){return jA.resolve(t,e)}gt.makeAbsolute=UA;function GA(t){return t.replace(qA,"\\$2")}gt.escape=GA;function zA(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(HA)}return t}gt.removeLeadingDotSegment=zA});var wd=H((TL,bd)=>{bd.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 vd=H((kL,Ad)=>{var WA=wd(),Sd={"{":"}","(":")","[":"]"},YA=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 u=t[e+1];e+=2;var a=Sd[u];if(a){var l=t.indexOf(a,e);l!==-1&&(e=l+1)}if(t[e]==="!")return!0}else e++}return!1},KA=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=Sd[r];if(i){var n=t.indexOf(i,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1};Ad.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(WA(e))return!0;var i=YA;return r&&r.strict===!1&&(i=KA),i(e)}});var Rd=H((LL,Cd)=>{"use strict";var VA=vd(),ZA=require("path").posix.dirname,JA=require("os").platform()==="win32",Uu="/",XA=/\\/g,QA=/[\{\[].*[\}\]]$/,ev=/(^|[^\\])([\{\[]|\([^\)]+$)/,tv=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Cd.exports=function(e,r){var i=Object.assign({flipBackslashes:!0},r);i.flipBackslashes&&JA&&e.indexOf(Uu)<0&&(e=e.replace(XA,Uu)),QA.test(e)&&(e+=Uu),e+="a";do e=ZA(e);while(VA(e)||ev.test(e));return e.replace(tv,"$1")}});var ys=H(tt=>{"use strict";tt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;tt.find=(t,e)=>t.nodes.find(r=>r.type===e);tt.exceedsLimit=(t,e,r=1,i)=>i===!1||!tt.isInteger(t)||!tt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=i;tt.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)};tt.encloseBrace=t=>t.type!=="brace"||t.commas>>0+t.ranges>>0?!1:(t.invalid=!0,!0);tt.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;tt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;tt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);tt.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 gs=H((PL,Fd)=>{"use strict";var xd=ys();Fd.exports=(t,e={})=>{let r=(i,n={})=>{let s=e.escapeInvalid&&xd.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,u="";if(i.value)return(s||o)&&xd.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let a of i.nodes)u+=r(a);return u};return r(t)}});var Td=H((IL,Od)=>{"use strict";Od.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Hd=H((NL,jd)=>{"use strict";var kd=Td(),kr=(t,e,r)=>{if(kd(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(kd(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),u=String(i.wrap),a=t+":"+e+"="+n+s+o+u;if(kr.cache.hasOwnProperty(a))return kr.cache[a].result;let l=Math.min(t,e),c=Math.max(t,e);if(Math.abs(l-c)===1){let y=t+"|"+e;return i.capture?`(${y})`:i.wrap===!1?y:`(?:${y})`}let h=Md(t)||Md(e),f={min:t,max:e,a:l,b:c},d=[],g=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),l<0){let y=c<0?Math.abs(c):1;g=Ld(y,Math.abs(l),f,i),l=f.a=0}return c>=0&&(d=Ld(l,c,f,i)),f.negatives=g,f.positives=d,f.result=rv(g,d,i),i.capture===!0?f.result=`(${f.result})`:i.wrap!==!1&&d.length+g.length>1&&(f.result=`(?:${f.result})`),kr.cache[a]=f,f.result};function rv(t,e,r){let i=Gu(t,e,"-",!1,r)||[],n=Gu(e,t,"",!1,r)||[],s=Gu(t,e,"-?",!0,r)||[];return i.concat(s).concat(n).join("|")}function iv(t,e){let r=1,i=1,n=Pd(t,r),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),r+=1,n=Pd(t,r);for(n=Id(e+1,i)-1;t<n&&n<=e;)s.add(n),i+=1,n=Id(e+1,i)-1;return s=[...s],s.sort(ov),s}function nv(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let i=sv(t,e),n=i.length,s="",o=0;for(let u=0;u<n;u++){let[a,l]=i[u];a===l?s+=a:a!=="0"||l!=="9"?s+=uv(a,l,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:n}}function Ld(t,e,r,i){let n=iv(t,e),s=[],o=t,u;for(let a=0;a<n.length;a++){let l=n[a],c=nv(String(o),String(l),i),h="";if(!r.isPadded&&u&&u.pattern===c.pattern){u.count.length>1&&u.count.pop(),u.count.push(c.count[0]),u.string=u.pattern+Nd(u.count),o=l+1;continue}r.isPadded&&(h=av(l,r,i)),c.string=h+c.pattern+Nd(c.count),s.push(c),o=l+1,u=c}return s}function Gu(t,e,r,i,n){let s=[];for(let o of t){let{string:u}=o;!i&&!Bd(e,"string",u)&&s.push(r+u),i&&Bd(e,"string",u)&&s.push(r+u)}return s}function sv(t,e){let r=[];for(let i=0;i<t.length;i++)r.push([t[i],e[i]]);return r}function ov(t,e){return t>e?1:e>t?-1:0}function Bd(t,e,r){return t.some(i=>i[e]===r)}function Pd(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Id(t,e){return t-t%Math.pow(10,e)}function Nd(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function uv(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Md(t){return/^-?(0+)\d/.test(t)}function av(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}}`}}kr.cache={};kr.clearCache=()=>kr.cache={};jd.exports=kr});var Yu=H((ML,Kd)=>{"use strict";var lv=require("util"),Ud=Hd(),qd=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),cv=t=>e=>t===!0?Number(e):String(e),zu=t=>typeof t=="number"||typeof t=="string"&&t!=="",fn=t=>Number.isInteger(+t),Wu=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},hv=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,fv=(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},$d=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},pv=(t,e)=>{t.negatives.sort((o,u)=>o<u?-1:o>u?1:0),t.positives.sort((o,u)=>o<u?-1:o>u?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},Gd=(t,e,r,i)=>{if(r)return Ud(t,e,{wrap:!1,...i});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},zd=(t,e,r)=>{if(Array.isArray(t)){let i=r.wrap===!0,n=r.capture?"":"?:";return i?`(${n}${t.join("|")})`:t.join("|")}return Ud(t,e,r)},Wd=(...t)=>new RangeError("Invalid range arguments: "+lv.inspect(...t)),Yd=(t,e,r)=>{if(r.strictRanges===!0)throw Wd([t,e]);return[]},dv=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},mv=(t,e,r=1,i={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(i.strictRanges===!0)throw Wd([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let o=n>s,u=String(t),a=String(e),l=String(r);r=Math.max(Math.abs(r),1);let c=Wu(u)||Wu(a)||Wu(l),h=c?Math.max(u.length,a.length,l.length):0,f=c===!1&&hv(t,e,i)===!1,d=i.transform||cv(f);if(i.toRegex&&r===1)return Gd($d(t,h),$d(e,h),!0,i);let g={negatives:[],positives:[]},y=F=>g[F<0?"negatives":"positives"].push(Math.abs(F)),E=[],v=0;for(;o?n>=s:n<=s;)i.toRegex===!0&&r>1?y(n):E.push(fv(d(n,v),h,f)),n=o?n-r:n+r,v++;return i.toRegex===!0?r>1?pv(g,i):zd(E,null,{wrap:!1,...i}):E},yv=(t,e,r=1,i={})=>{if(!fn(t)&&t.length>1||!fn(e)&&e.length>1)return Yd(t,e,i);let n=i.transform||(f=>String.fromCharCode(f)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),u=s>o,a=Math.min(s,o),l=Math.max(s,o);if(i.toRegex&&r===1)return Gd(a,l,!1,i);let c=[],h=0;for(;u?s>=o:s<=o;)c.push(n(s,h)),s=u?s-r:s+r,h++;return i.toRegex===!0?zd(c,null,{wrap:!1,options:i}):c},Es=(t,e,r,i={})=>{if(e==null&&zu(t))return[t];if(!zu(t)||!zu(e))return Yd(t,e,i);if(typeof r=="function")return Es(t,e,1,{transform:r});if(qd(r))return Es(t,e,0,r);let n={...i};return n.capture===!0&&(n.wrap=!0),r=r||n.step||1,fn(r)?fn(t)&&fn(e)?mv(t,e,r,n):yv(t,e,Math.max(Math.abs(r),1),n):r!=null&&!qd(r)?dv(r,n):Es(t,e,1,r)};Kd.exports=Es});var Jd=H((jL,Zd)=>{"use strict";var gv=Yu(),Vd=ys(),Ev=(t,e={})=>{let r=(i,n={})=>{let s=Vd.isInvalidBrace(n),o=i.invalid===!0&&e.escapeInvalid===!0,u=s===!0||o===!0,a=e.escapeInvalid===!0?"\\":"",l="";if(i.isOpen===!0||i.isClose===!0)return a+i.value;if(i.type==="open")return u?a+i.value:"(";if(i.type==="close")return u?a+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":u?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let c=Vd.reduce(i.nodes),h=gv(...c,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return c.length>1&&h.length>1?`(${h})`:h}if(i.nodes)for(let c of i.nodes)l+=r(c,i);return l};return r(t)};Zd.exports=Ev});var em=H((HL,Qd)=>{"use strict";var Dv=Yu(),Xd=gs(),di=ys(),Lr=(t="",e="",r=!1)=>{let i=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?di.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)i.push(Lr(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),i.push(Array.isArray(s)?Lr(n,s,r):n+s);return di.flatten(i)},_v=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,i=(n,s={})=>{n.queue=[];let o=s,u=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,u=o.queue;if(n.invalid||n.dollar){u.push(Lr(u.pop(),Xd(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){u.push(Lr(u.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let h=di.reduce(n.nodes);if(di.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=Dv(...h,e);f.length===0&&(f=Xd(n,e)),u.push(Lr(u.pop(),f)),n.nodes=[];return}let a=di.encloseBrace(n),l=n.queue,c=n;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,l=c.queue;for(let h=0;h<n.nodes.length;h++){let f=n.nodes[h];if(f.type==="comma"&&n.type==="brace"){h===1&&l.push(""),l.push("");continue}if(f.type==="close"){u.push(Lr(u.pop(),l,a));continue}if(f.value&&f.type!=="open"){l.push(Lr(l.pop(),f.value));continue}f.nodes&&i(f,n)}return l};return di.flatten(i(t))};Qd.exports=_v});var rm=H((qL,tm)=>{"use strict";tm.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:`
|
6
|
+
`,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 um=H(($L,om)=>{"use strict";var bv=gs(),{MAX_LENGTH:im,CHAR_BACKSLASH:Ku,CHAR_BACKTICK:wv,CHAR_COMMA:Sv,CHAR_DOT:Av,CHAR_LEFT_PARENTHESES:vv,CHAR_RIGHT_PARENTHESES:Cv,CHAR_LEFT_CURLY_BRACE:Rv,CHAR_RIGHT_CURLY_BRACE:xv,CHAR_LEFT_SQUARE_BRACKET:nm,CHAR_RIGHT_SQUARE_BRACKET:sm,CHAR_DOUBLE_QUOTE:Fv,CHAR_SINGLE_QUOTE:Ov,CHAR_NO_BREAK_SPACE:Tv,CHAR_ZERO_WIDTH_NOBREAK_SPACE:kv}=rm(),Lv=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},i=typeof r.maxLength=="number"?Math.min(im,r.maxLength):im;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,u=n,a=0,l=t.length,c=0,h=0,f,d={},g=()=>t[c++],y=E=>{if(E.type==="text"&&u.type==="dot"&&(u.type="text"),u&&u.type==="text"&&E.type==="text"){u.value+=E.value;return}return o.nodes.push(E),E.parent=o,E.prev=u,u=E,E};for(y({type:"bos"});c<l;)if(o=s[s.length-1],f=g(),!(f===kv||f===Tv)){if(f===Ku){y({type:"text",value:(e.keepEscaping?f:"")+g()});continue}if(f===sm){y({type:"text",value:"\\"+f});continue}if(f===nm){a++;let E=!0,v;for(;c<l&&(v=g());){if(f+=v,v===nm){a++;continue}if(v===Ku){f+=g();continue}if(v===sm&&(a--,a===0))break}y({type:"text",value:f});continue}if(f===vv){o=y({type:"paren",nodes:[]}),s.push(o),y({type:"text",value:f});continue}if(f===Cv){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===Fv||f===Ov||f===wv){let E=f,v;for(e.keepQuotes!==!0&&(f="");c<l&&(v=g());){if(v===Ku){f+=v+g();continue}if(v===E){e.keepQuotes===!0&&(f+=v);break}f+=v}y({type:"text",value:f});continue}if(f===Rv){h++;let v={type:"brace",open:!0,close:!1,dollar:u.value&&u.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===xv){if(o.type!=="brace"){y({type:"text",value:f});continue}let E="close";o=s.pop(),o.close=!0,y({type:E,value:f}),h--,o=s[s.length-1];continue}if(f===Sv&&h>0){if(o.ranges>0){o.ranges=0;let E=o.nodes.shift();o.nodes=[E,{type:"text",value:bv(o)}]}y({type:"comma",value:f}),o.commas++;continue}if(f===Av&&h>0&&o.commas===0){let E=o.nodes;if(h===0||E.length===0){y({type:"text",value:f});continue}if(u.type==="dot"){if(o.range=[],u.value+=f,u.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,u.type="text";continue}o.ranges++,o.args=[];continue}if(u.type==="range"){E.pop();let v=E[E.length-1];v.value+=u.value+f,u=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(F=>{F.nodes||(F.type==="open"&&(F.isOpen=!0),F.type==="close"&&(F.isClose=!0),F.nodes||(F.type="text"),F.invalid=!0)});let E=s[s.length-1],v=E.nodes.indexOf(o);E.nodes.splice(v,1,...o.nodes)}while(s.length>0);return y({type:"eos"}),n};om.exports=Lv});var cm=H((UL,lm)=>{"use strict";var am=gs(),Bv=Jd(),Pv=em(),Iv=um(),Ke=(t,e={})=>{let r=[];if(Array.isArray(t))for(let i of t){let n=Ke.create(i,e);Array.isArray(n)?r.push(...n):r.push(n)}else r=[].concat(Ke.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Ke.parse=(t,e={})=>Iv(t,e);Ke.stringify=(t,e={})=>am(typeof t=="string"?Ke.parse(t,e):t,e);Ke.compile=(t,e={})=>(typeof t=="string"&&(t=Ke.parse(t,e)),Bv(t,e));Ke.expand=(t,e={})=>{typeof t=="string"&&(t=Ke.parse(t,e));let r=Pv(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Ke.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Ke.compile(t,e):Ke.expand(t,e);lm.exports=Ke});var pn=H((GL,mm)=>{"use strict";var Nv=require("path"),Et="\\\\/",hm=`[^${Et}]`,Lt="\\.",Mv="\\+",jv="\\?",Ds="\\/",Hv="(?=.)",fm="[^/]",Vu=`(?:${Ds}|$)`,pm=`(?:^|${Ds})`,Zu=`${Lt}{1,2}${Vu}`,qv=`(?!${Lt})`,$v=`(?!${pm}${Zu})`,Uv=`(?!${Lt}{0,1}${Vu})`,Gv=`(?!${Zu})`,zv=`[^.${Ds}]`,Wv=`${fm}*?`,dm={DOT_LITERAL:Lt,PLUS_LITERAL:Mv,QMARK_LITERAL:jv,SLASH_LITERAL:Ds,ONE_CHAR:Hv,QMARK:fm,END_ANCHOR:Vu,DOTS_SLASH:Zu,NO_DOT:qv,NO_DOTS:$v,NO_DOT_SLASH:Uv,NO_DOTS_SLASH:Gv,QMARK_NO_DOT:zv,STAR:Wv,START_ANCHOR:pm},Yv={...dm,SLASH_LITERAL:`[${Et}]`,QMARK:hm,STAR:`${hm}*?`,DOTS_SLASH:`${Lt}{1,2}(?:[${Et}]|$)`,NO_DOT:`(?!${Lt})`,NO_DOTS:`(?!(?:^|[${Et}])${Lt}{1,2}(?:[${Et}]|$))`,NO_DOT_SLASH:`(?!${Lt}{0,1}(?:[${Et}]|$))`,NO_DOTS_SLASH:`(?!${Lt}{1,2}(?:[${Et}]|$))`,QMARK_NO_DOT:`[^.${Et}]`,START_ANCHOR:`(?:^|[${Et}])`,END_ANCHOR:`(?:[${Et}]|$)`},Kv={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"};mm.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Kv,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:Nv.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?Yv:dm}}});var dn=H($e=>{"use strict";var Vv=require("path"),Zv=process.platform==="win32",{REGEX_BACKSLASH:Jv,REGEX_REMOVE_BACKSLASH:Xv,REGEX_SPECIAL_CHARS:Qv,REGEX_SPECIAL_CHARS_GLOBAL:e1}=pn();$e.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);$e.hasRegexChars=t=>Qv.test(t);$e.isRegexChar=t=>t.length===1&&$e.hasRegexChars(t);$e.escapeRegex=t=>t.replace(e1,"\\$1");$e.toPosixSlashes=t=>t.replace(Jv,"/");$e.removeBackslashes=t=>t.replace(Xv,e=>e==="\\"?"":e);$e.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};$e.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:Zv===!0||Vv.sep==="\\";$e.escapeLast=(t,e,r)=>{let i=t.lastIndexOf(e,r);return i===-1?t:t[i-1]==="\\"?$e.escapeLast(t,e,i-1):`${t.slice(0,i)}\\${t.slice(i)}`};$e.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};$e.wrapOutput=(t,e={},r={})=>{let i=r.contains?"":"^",n=r.contains?"":"$",s=`${i}(?:${t})${n}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Sm=H((WL,wm)=>{"use strict";var ym=dn(),{CHAR_ASTERISK:Ju,CHAR_AT:t1,CHAR_BACKWARD_SLASH:mn,CHAR_COMMA:r1,CHAR_DOT:Xu,CHAR_EXCLAMATION_MARK:Qu,CHAR_FORWARD_SLASH:bm,CHAR_LEFT_CURLY_BRACE:ea,CHAR_LEFT_PARENTHESES:ta,CHAR_LEFT_SQUARE_BRACKET:i1,CHAR_PLUS:n1,CHAR_QUESTION_MARK:gm,CHAR_RIGHT_CURLY_BRACE:s1,CHAR_RIGHT_PARENTHESES:Em,CHAR_RIGHT_SQUARE_BRACKET:o1}=pn(),Dm=t=>t===bm||t===mn,_m=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},u1=(t,e)=>{let r=e||{},i=t.length-1,n=r.parts===!0||r.scanToEnd===!0,s=[],o=[],u=[],a=t,l=-1,c=0,h=0,f=!1,d=!1,g=!1,y=!1,E=!1,v=!1,F=!1,O=!1,x=!1,R=!1,L=0,_,S,N={value:"",depth:0,isGlob:!1},q=()=>l>=i,k=()=>a.charCodeAt(l+1),U=()=>(_=S,a.charCodeAt(++l));for(;l<i;){S=U();let T;if(S===mn){F=N.backslashes=!0,S=U(),S===ea&&(v=!0);continue}if(v===!0||S===ea){for(L++;q()!==!0&&(S=U());){if(S===mn){F=N.backslashes=!0,U();continue}if(S===ea){L++;continue}if(v!==!0&&S===Xu&&(S=U())===Xu){if(f=N.isBrace=!0,g=N.isGlob=!0,R=!0,n===!0)continue;break}if(v!==!0&&S===r1){if(f=N.isBrace=!0,g=N.isGlob=!0,R=!0,n===!0)continue;break}if(S===s1&&(L--,L===0)){v=!1,f=N.isBrace=!0,R=!0;break}}if(n===!0)continue;break}if(S===bm){if(s.push(l),o.push(N),N={value:"",depth:0,isGlob:!1},R===!0)continue;if(_===Xu&&l===c+1){c+=2;continue}h=l+1;continue}if(r.noext!==!0&&(S===n1||S===t1||S===Ju||S===gm||S===Qu)===!0&&k()===ta){if(g=N.isGlob=!0,y=N.isExtglob=!0,R=!0,S===Qu&&l===c&&(x=!0),n===!0){for(;q()!==!0&&(S=U());){if(S===mn){F=N.backslashes=!0,S=U();continue}if(S===Em){g=N.isGlob=!0,R=!0;break}}continue}break}if(S===Ju){if(_===Ju&&(E=N.isGlobstar=!0),g=N.isGlob=!0,R=!0,n===!0)continue;break}if(S===gm){if(g=N.isGlob=!0,R=!0,n===!0)continue;break}if(S===i1){for(;q()!==!0&&(T=U());){if(T===mn){F=N.backslashes=!0,U();continue}if(T===o1){d=N.isBracket=!0,g=N.isGlob=!0,R=!0;break}}if(n===!0)continue;break}if(r.nonegate!==!0&&S===Qu&&l===c){O=N.negated=!0,c++;continue}if(r.noparen!==!0&&S===ta){if(g=N.isGlob=!0,n===!0){for(;q()!==!0&&(S=U());){if(S===ta){F=N.backslashes=!0,S=U();continue}if(S===Em){R=!0;break}}continue}break}if(g===!0){if(R=!0,n===!0)continue;break}}r.noext===!0&&(y=!1,g=!1);let K=a,V="",B="";c>0&&(V=a.slice(0,c),a=a.slice(c),h-=c),K&&g===!0&&h>0?(K=a.slice(0,h),B=a.slice(h)):g===!0?(K="",B=a):K=a,K&&K!==""&&K!=="/"&&K!==a&&Dm(K.charCodeAt(K.length-1))&&(K=K.slice(0,-1)),r.unescape===!0&&(B&&(B=ym.removeBackslashes(B)),K&&F===!0&&(K=ym.removeBackslashes(K)));let C={prefix:V,input:t,start:c,base:K,glob:B,isBrace:f,isBracket:d,isGlob:g,isExtglob:y,isGlobstar:E,negated:O,negatedExtglob:x};if(r.tokens===!0&&(C.maxDepth=0,Dm(S)||o.push(N),C.tokens=o),r.parts===!0||r.tokens===!0){let T;for(let j=0;j<s.length;j++){let z=T?T+1:c,P=s[j],p=t.slice(z,P);r.tokens&&(j===0&&c!==0?(o[j].isPrefix=!0,o[j].value=V):o[j].value=p,_m(o[j]),C.maxDepth+=o[j].depth),(j!==0||p!=="")&&u.push(p),T=P}if(T&&T+1<t.length){let j=t.slice(T+1);u.push(j),r.tokens&&(o[o.length-1].value=j,_m(o[o.length-1]),C.maxDepth+=o[o.length-1].depth)}C.slashes=s,C.parts=u}return C};wm.exports=u1});var Cm=H((YL,vm)=>{"use strict";var _s=pn(),Ve=dn(),{MAX_LENGTH:bs,POSIX_REGEX_SOURCE:a1,REGEX_NON_SPECIAL_CHARS:l1,REGEX_SPECIAL_CHARS_BACKREF:c1,REPLACEMENTS:Am}=_s,h1=(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=>Ve.escapeRegex(n)).join("..")}return r},mi=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,ra=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Am[t]||t;let r={...e},i=typeof r.maxLength=="number"?Math.min(bs,r.maxLength):bs,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],u=r.capture?"":"?:",a=Ve.isWindows(e),l=_s.globChars(a),c=_s.extglobChars(l),{DOT_LITERAL:h,PLUS_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:g,DOTS_SLASH:y,NO_DOT:E,NO_DOT_SLASH:v,NO_DOTS_SLASH:F,QMARK:O,QMARK_NO_DOT:x,STAR:R,START_ANCHOR:L}=l,_=$=>`(${u}(?:(?!${L}${$.dot?y:h}).)*?)`,S=r.dot?"":E,N=r.dot?O:x,q=r.bash===!0?_(r):R;r.capture&&(q=`(${q})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let k={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=Ve.removePrefix(t,k),n=t.length;let U=[],K=[],V=[],B=s,C,T=()=>k.index===n-1,j=k.peek=($=1)=>t[k.index+$],z=k.advance=()=>t[++k.index]||"",P=()=>t.slice(k.index+1),p=($="",X=0)=>{k.consumed+=$,k.index+=X},m=$=>{k.output+=$.output!=null?$.output:$.value,p($.value)},D=()=>{let $=1;for(;j()==="!"&&(j(2)!=="("||j(3)==="?");)z(),k.start++,$++;return $%2===0?!1:(k.negated=!0,k.start++,!0)},A=$=>{k[$]++,V.push($)},w=$=>{k[$]--,V.pop()},I=$=>{if(B.type==="globstar"){let X=k.braces>0&&($.type==="comma"||$.type==="brace"),G=$.extglob===!0||U.length&&($.type==="pipe"||$.type==="paren");$.type!=="slash"&&$.type!=="paren"&&!X&&!G&&(k.output=k.output.slice(0,-B.output.length),B.type="star",B.value="*",B.output=q,k.output+=B.output)}if(U.length&&$.type!=="paren"&&(U[U.length-1].inner+=$.value),($.value||$.output)&&m($),B&&B.type==="text"&&$.type==="text"){B.value+=$.value,B.output=(B.output||"")+$.value;return}$.prev=B,o.push($),B=$},M=($,X)=>{let G={...c[X],conditions:1,inner:""};G.prev=B,G.parens=k.parens,G.output=k.output;let re=(r.capture?"(":"")+G.open;A("parens"),I({type:$,value:X,output:k.output?"":g}),I({type:"paren",extglob:!0,value:z(),output:re}),U.push(G)},Z=$=>{let X=$.close+(r.capture?")":""),G;if($.type==="negate"){let re=q;if($.inner&&$.inner.length>1&&$.inner.includes("/")&&(re=_(r)),(re!==q||T()||/^\)+$/.test(P()))&&(X=$.close=`)$))${re}`),$.inner.includes("*")&&(G=P())&&/^\.[^\\/.]+$/.test(G)){let le=ra(G,{...e,fastpaths:!1}).output;X=$.close=`)${le})${re})`}$.prev.type==="bos"&&(k.negatedExtglob=!0)}I({type:"paren",extglob:!0,value:C,output:X}),w("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let $=!1,X=t.replace(c1,(G,re,le,be,Ee,b)=>be==="\\"?($=!0,G):be==="?"?re?re+be+(Ee?O.repeat(Ee.length):""):b===0?N+(Ee?O.repeat(Ee.length):""):O.repeat(le.length):be==="."?h.repeat(le.length):be==="*"?re?re+be+(Ee?q:""):q:re?G:`\\${G}`);return $===!0&&(r.unescape===!0?X=X.replace(/\\/g,""):X=X.replace(/\\+/g,G=>G.length%2===0?"\\\\":G?"\\":"")),X===t&&r.contains===!0?(k.output=t,k):(k.output=Ve.wrapOutput(X,k,e),k)}for(;!T();){if(C=z(),C==="\0")continue;if(C==="\\"){let G=j();if(G==="/"&&r.bash!==!0||G==="."||G===";")continue;if(!G){C+="\\",I({type:"text",value:C});continue}let re=/^\\+/.exec(P()),le=0;if(re&&re[0].length>2&&(le=re[0].length,k.index+=le,le%2!==0&&(C+="\\")),r.unescape===!0?C=z():C+=z(),k.brackets===0){I({type:"text",value:C});continue}}if(k.brackets>0&&(C!=="]"||B.value==="["||B.value==="[^")){if(r.posix!==!1&&C===":"){let G=B.value.slice(1);if(G.includes("[")&&(B.posix=!0,G.includes(":"))){let re=B.value.lastIndexOf("["),le=B.value.slice(0,re),be=B.value.slice(re+2),Ee=a1[be];if(Ee){B.value=le+Ee,k.backtrack=!0,z(),!s.output&&o.indexOf(B)===1&&(s.output=g);continue}}}(C==="["&&j()!==":"||C==="-"&&j()==="]")&&(C=`\\${C}`),C==="]"&&(B.value==="["||B.value==="[^")&&(C=`\\${C}`),r.posix===!0&&C==="!"&&B.value==="["&&(C="^"),B.value+=C,m({value:C});continue}if(k.quotes===1&&C!=='"'){C=Ve.escapeRegex(C),B.value+=C,m({value:C});continue}if(C==='"'){k.quotes=k.quotes===1?0:1,r.keepQuotes===!0&&I({type:"text",value:C});continue}if(C==="("){A("parens"),I({type:"paren",value:C});continue}if(C===")"){if(k.parens===0&&r.strictBrackets===!0)throw new SyntaxError(mi("opening","("));let G=U[U.length-1];if(G&&k.parens===G.parens+1){Z(U.pop());continue}I({type:"paren",value:C,output:k.parens?")":"\\)"}),w("parens");continue}if(C==="["){if(r.nobracket===!0||!P().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(mi("closing","]"));C=`\\${C}`}else A("brackets");I({type:"bracket",value:C});continue}if(C==="]"){if(r.nobracket===!0||B&&B.type==="bracket"&&B.value.length===1){I({type:"text",value:C,output:`\\${C}`});continue}if(k.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(mi("opening","["));I({type:"text",value:C,output:`\\${C}`});continue}w("brackets");let G=B.value.slice(1);if(B.posix!==!0&&G[0]==="^"&&!G.includes("/")&&(C=`/${C}`),B.value+=C,m({value:C}),r.literalBrackets===!1||Ve.hasRegexChars(G))continue;let re=Ve.escapeRegex(B.value);if(k.output=k.output.slice(0,-B.value.length),r.literalBrackets===!0){k.output+=re,B.value=re;continue}B.value=`(${u}${re}|${B.value})`,k.output+=B.value;continue}if(C==="{"&&r.nobrace!==!0){A("braces");let G={type:"brace",value:C,output:"(",outputIndex:k.output.length,tokensIndex:k.tokens.length};K.push(G),I(G);continue}if(C==="}"){let G=K[K.length-1];if(r.nobrace===!0||!G){I({type:"text",value:C,output:C});continue}let re=")";if(G.dots===!0){let le=o.slice(),be=[];for(let Ee=le.length-1;Ee>=0&&(o.pop(),le[Ee].type!=="brace");Ee--)le[Ee].type!=="dots"&&be.unshift(le[Ee].value);re=h1(be,r),k.backtrack=!0}if(G.comma!==!0&&G.dots!==!0){let le=k.output.slice(0,G.outputIndex),be=k.tokens.slice(G.tokensIndex);G.value=G.output="\\{",C=re="\\}",k.output=le;for(let Ee of be)k.output+=Ee.output||Ee.value}I({type:"brace",value:C,output:re}),w("braces"),K.pop();continue}if(C==="|"){U.length>0&&U[U.length-1].conditions++,I({type:"text",value:C});continue}if(C===","){let G=C,re=K[K.length-1];re&&V[V.length-1]==="braces"&&(re.comma=!0,G="|"),I({type:"comma",value:C,output:G});continue}if(C==="/"){if(B.type==="dot"&&k.index===k.start+1){k.start=k.index+1,k.consumed="",k.output="",o.pop(),B=s;continue}I({type:"slash",value:C,output:d});continue}if(C==="."){if(k.braces>0&&B.type==="dot"){B.value==="."&&(B.output=h);let G=K[K.length-1];B.type="dots",B.output+=C,B.value+=C,G.dots=!0;continue}if(k.braces+k.parens===0&&B.type!=="bos"&&B.type!=="slash"){I({type:"text",value:C,output:h});continue}I({type:"dot",value:C,output:h});continue}if(C==="?"){if(!(B&&B.value==="(")&&r.noextglob!==!0&&j()==="("&&j(2)!=="?"){M("qmark",C);continue}if(B&&B.type==="paren"){let re=j(),le=C;if(re==="<"&&!Ve.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(B.value==="("&&!/[!=<:]/.test(re)||re==="<"&&!/<([!=]|\w+>)/.test(P()))&&(le=`\\${C}`),I({type:"text",value:C,output:le});continue}if(r.dot!==!0&&(B.type==="slash"||B.type==="bos")){I({type:"qmark",value:C,output:x});continue}I({type:"qmark",value:C,output:O});continue}if(C==="!"){if(r.noextglob!==!0&&j()==="("&&(j(2)!=="?"||!/[!=<:]/.test(j(3)))){M("negate",C);continue}if(r.nonegate!==!0&&k.index===0){D();continue}}if(C==="+"){if(r.noextglob!==!0&&j()==="("&&j(2)!=="?"){M("plus",C);continue}if(B&&B.value==="("||r.regex===!1){I({type:"plus",value:C,output:f});continue}if(B&&(B.type==="bracket"||B.type==="paren"||B.type==="brace")||k.parens>0){I({type:"plus",value:C});continue}I({type:"plus",value:f});continue}if(C==="@"){if(r.noextglob!==!0&&j()==="("&&j(2)!=="?"){I({type:"at",extglob:!0,value:C,output:""});continue}I({type:"text",value:C});continue}if(C!=="*"){(C==="$"||C==="^")&&(C=`\\${C}`);let G=l1.exec(P());G&&(C+=G[0],k.index+=G[0].length),I({type:"text",value:C});continue}if(B&&(B.type==="globstar"||B.star===!0)){B.type="star",B.star=!0,B.value+=C,B.output=q,k.backtrack=!0,k.globstar=!0,p(C);continue}let $=P();if(r.noextglob!==!0&&/^\([^?]/.test($)){M("star",C);continue}if(B.type==="star"){if(r.noglobstar===!0){p(C);continue}let G=B.prev,re=G.prev,le=G.type==="slash"||G.type==="bos",be=re&&(re.type==="star"||re.type==="globstar");if(r.bash===!0&&(!le||$[0]&&$[0]!=="/")){I({type:"star",value:C,output:""});continue}let Ee=k.braces>0&&(G.type==="comma"||G.type==="brace"),b=U.length&&(G.type==="pipe"||G.type==="paren");if(!le&&G.type!=="paren"&&!Ee&&!b){I({type:"star",value:C,output:""});continue}for(;$.slice(0,3)==="/**";){let Y=t[k.index+4];if(Y&&Y!=="/")break;$=$.slice(3),p("/**",3)}if(G.type==="bos"&&T()){B.type="globstar",B.value+=C,B.output=_(r),k.output=B.output,k.globstar=!0,p(C);continue}if(G.type==="slash"&&G.prev.type!=="bos"&&!be&&T()){k.output=k.output.slice(0,-(G.output+B.output).length),G.output=`(?:${G.output}`,B.type="globstar",B.output=_(r)+(r.strictSlashes?")":"|$)"),B.value+=C,k.globstar=!0,k.output+=G.output+B.output,p(C);continue}if(G.type==="slash"&&G.prev.type!=="bos"&&$[0]==="/"){let Y=$[1]!==void 0?"|$":"";k.output=k.output.slice(0,-(G.output+B.output).length),G.output=`(?:${G.output}`,B.type="globstar",B.output=`${_(r)}${d}|${d}${Y})`,B.value+=C,k.output+=G.output+B.output,k.globstar=!0,p(C+z()),I({type:"slash",value:"/",output:""});continue}if(G.type==="bos"&&$[0]==="/"){B.type="globstar",B.value+=C,B.output=`(?:^|${d}|${_(r)}${d})`,k.output=B.output,k.globstar=!0,p(C+z()),I({type:"slash",value:"/",output:""});continue}k.output=k.output.slice(0,-B.output.length),B.type="globstar",B.output=_(r),B.value+=C,k.output+=B.output,k.globstar=!0,p(C);continue}let X={type:"star",value:C,output:q};if(r.bash===!0){X.output=".*?",(B.type==="bos"||B.type==="slash")&&(X.output=S+X.output),I(X);continue}if(B&&(B.type==="bracket"||B.type==="paren")&&r.regex===!0){X.output=C,I(X);continue}(k.index===k.start||B.type==="slash"||B.type==="dot")&&(B.type==="dot"?(k.output+=v,B.output+=v):r.dot===!0?(k.output+=F,B.output+=F):(k.output+=S,B.output+=S),j()!=="*"&&(k.output+=g,B.output+=g)),I(X)}for(;k.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(mi("closing","]"));k.output=Ve.escapeLast(k.output,"["),w("brackets")}for(;k.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(mi("closing",")"));k.output=Ve.escapeLast(k.output,"("),w("parens")}for(;k.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(mi("closing","}"));k.output=Ve.escapeLast(k.output,"{"),w("braces")}if(r.strictSlashes!==!0&&(B.type==="star"||B.type==="bracket")&&I({type:"maybe_slash",value:"",output:`${d}?`}),k.backtrack===!0){k.output="";for(let $ of k.tokens)k.output+=$.output!=null?$.output:$.value,$.suffix&&(k.output+=$.suffix)}return k};ra.fastpaths=(t,e)=>{let r={...e},i=typeof r.maxLength=="number"?Math.min(bs,r.maxLength):bs,n=t.length;if(n>i)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${i}`);t=Am[t]||t;let s=Ve.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:u,ONE_CHAR:a,DOTS_SLASH:l,NO_DOT:c,NO_DOTS:h,NO_DOTS_SLASH:f,STAR:d,START_ANCHOR:g}=_s.globChars(s),y=r.dot?h:c,E=r.dot?f:c,v=r.capture?"":"?:",F={negated:!1,prefix:""},O=r.bash===!0?".*?":d;r.capture&&(O=`(${O})`);let x=S=>S.noglobstar===!0?O:`(${v}(?:(?!${g}${S.dot?l:o}).)*?)`,R=S=>{switch(S){case"*":return`${y}${a}${O}`;case".*":return`${o}${a}${O}`;case"*.*":return`${y}${O}${o}${a}${O}`;case"*/*":return`${y}${O}${u}${a}${E}${O}`;case"**":return y+x(r);case"**/*":return`(?:${y}${x(r)}${u})?${E}${a}${O}`;case"**/*.*":return`(?:${y}${x(r)}${u})?${E}${O}${o}${a}${O}`;case"**/.*":return`(?:${y}${x(r)}${u})?${o}${a}${O}`;default:{let N=/^(.*?)\.(\w+)$/.exec(S);if(!N)return;let q=R(N[1]);return q?q+o+N[2]:void 0}}},L=Ve.removePrefix(t,F),_=R(L);return _&&r.strictSlashes!==!0&&(_+=`${u}?`),_};vm.exports=ra});var xm=H((KL,Rm)=>{"use strict";var f1=require("path"),p1=Sm(),ia=Cm(),na=dn(),d1=pn(),m1=t=>t&&typeof t=="object"&&!Array.isArray(t),De=(t,e,r=!1)=>{if(Array.isArray(t)){let c=t.map(f=>De(f,e,r));return f=>{for(let d of c){let g=d(f);if(g)return g}return!1}}let i=m1(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=na.isWindows(e),o=i?De.compileRe(t,e):De.makeRe(t,e,!1,!0),u=o.state;delete o.state;let a=()=>!1;if(n.ignore){let c={...e,ignore:null,onMatch:null,onResult:null};a=De(n.ignore,c,r)}let l=(c,h=!1)=>{let{isMatch:f,match:d,output:g}=De.test(c,o,e,{glob:t,posix:s}),y={glob:t,state:u,regex:o,posix:s,input:c,output:g,match:d,isMatch:f};return typeof n.onResult=="function"&&n.onResult(y),f===!1?(y.isMatch=!1,h?y:!1):a(c)?(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&&(l.state=u),l};De.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?na.toPosixSlashes:null),u=t===i,a=u&&o?o(t):t;return u===!1&&(a=o?o(t):t,u=a===i),(u===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?u=De.matchBase(t,e,r,n):u=e.exec(a)),{isMatch:!!u,match:u,output:a}};De.matchBase=(t,e,r,i=na.isWindows(r))=>(e instanceof RegExp?e:De.makeRe(e,r)).test(f1.basename(t));De.isMatch=(t,e,r)=>De(e,r)(t);De.parse=(t,e)=>Array.isArray(t)?t.map(r=>De.parse(r,e)):ia(t,{...e,fastpaths:!1});De.scan=(t,e)=>p1(t,e);De.compileRe=(t,e,r=!1,i=!1)=>{if(r===!0)return t.output;let n=e||{},s=n.contains?"":"^",o=n.contains?"":"$",u=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(u=`^(?!${u}).*$`);let a=De.toRegex(u,e);return i===!0&&(a.state=t),a};De.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=ia.fastpaths(t,e)),n.output||(n=ia(t,e)),De.compileRe(n,e,r,i)};De.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/$^/}};De.constants=d1;Rm.exports=De});var Om=H((VL,Fm)=>{"use strict";Fm.exports=xm()});var Pm=H((ZL,Bm)=>{"use strict";var km=require("util"),Lm=cm(),Dt=Om(),sa=dn(),Tm=t=>t===""||t==="./",ye=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let i=new Set,n=new Set,s=new Set,o=0,u=c=>{s.add(c.output),r&&r.onResult&&r.onResult(c)};for(let c=0;c<e.length;c++){let h=Dt(String(e[c]),{...r,onResult:u},!0),f=h.state.negated||h.state.negatedExtglob;f&&o++;for(let d of t){let g=h(d,!0);(f?!g.isMatch:g.isMatch)&&(f?i.add(g.output):(i.delete(g.output),n.add(g.output)))}}let l=(o===e.length?[...s]:[...n]).filter(c=>!i.has(c));if(r&&l.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(c=>c.replace(/\\/g,"")):e}return l};ye.match=ye;ye.matcher=(t,e)=>Dt(t,e);ye.isMatch=(t,e,r)=>Dt(e,r)(t);ye.any=ye.isMatch;ye.not=(t,e,r={})=>{e=[].concat(e).map(String);let i=new Set,n=[],s=u=>{r.onResult&&r.onResult(u),n.push(u.output)},o=new Set(ye(t,e,{...r,onResult:s}));for(let u of n)o.has(u)||i.add(u);return[...i]};ye.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${km.inspect(t)}"`);if(Array.isArray(e))return e.some(i=>ye.contains(t,i,r));if(typeof e=="string"){if(Tm(t)||Tm(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return ye.isMatch(t,e,{...r,contains:!0})};ye.matchKeys=(t,e,r)=>{if(!sa.isObject(t))throw new TypeError("Expected the first argument to be an object");let i=ye(Object.keys(t),e,r),n={};for(let s of i)n[s]=t[s];return n};ye.some=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Dt(String(n),r);if(i.some(o=>s(o)))return!0}return!1};ye.every=(t,e,r)=>{let i=[].concat(t);for(let n of[].concat(e)){let s=Dt(String(n),r);if(!i.every(o=>s(o)))return!1}return!0};ye.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${km.inspect(t)}"`);return[].concat(e).every(i=>Dt(i,r)(t))};ye.capture=(t,e,r)=>{let i=sa.isWindows(r),s=Dt.makeRe(String(t),{...r,capture:!0}).exec(i?sa.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};ye.makeRe=(...t)=>Dt.makeRe(...t);ye.scan=(...t)=>Dt.scan(...t);ye.parse=(t,e)=>{let r=[];for(let i of[].concat(t||[]))for(let n of Lm(String(i),e))r.push(Dt.parse(n,e));return r};ye.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Lm(t,e)};ye.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return ye.braces(t,{...e,expand:!0})};Bm.exports=ye});var Um=H(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.matchAny=ne.convertPatternsToRe=ne.makeRe=ne.getPatternParts=ne.expandBraceExpansion=ne.expandPatternsWithBraceExpansion=ne.isAffectDepthOfReadingPattern=ne.endsWithSlashGlobStar=ne.hasGlobStar=ne.getBaseDirectory=ne.isPatternRelatedToParentDirectory=ne.getPatternsOutsideCurrentDirectory=ne.getPatternsInsideCurrentDirectory=ne.getPositivePatterns=ne.getNegativePatterns=ne.isPositivePattern=ne.isNegativePattern=ne.convertToNegativePattern=ne.convertToPositivePattern=ne.isDynamicPattern=ne.isStaticPattern=void 0;var y1=require("path"),g1=Rd(),oa=Pm(),Im="**",E1="\\",D1=/[*?]|^!/,_1=/\[[^[]*]/,b1=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,w1=/[!*+?@]\([^(]*\)/,S1=/,|\.\./;function Nm(t,e={}){return!Mm(t,e)}ne.isStaticPattern=Nm;function Mm(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(E1)||D1.test(t)||_1.test(t)||b1.test(t)||e.extglob!==!1&&w1.test(t)||e.braceExpansion!==!1&&A1(t))}ne.isDynamicPattern=Mm;function A1(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 S1.test(i)}function v1(t){return ws(t)?t.slice(1):t}ne.convertToPositivePattern=v1;function C1(t){return"!"+t}ne.convertToNegativePattern=C1;function ws(t){return t.startsWith("!")&&t[1]!=="("}ne.isNegativePattern=ws;function jm(t){return!ws(t)}ne.isPositivePattern=jm;function R1(t){return t.filter(ws)}ne.getNegativePatterns=R1;function x1(t){return t.filter(jm)}ne.getPositivePatterns=x1;function F1(t){return t.filter(e=>!ua(e))}ne.getPatternsInsideCurrentDirectory=F1;function O1(t){return t.filter(ua)}ne.getPatternsOutsideCurrentDirectory=O1;function ua(t){return t.startsWith("..")||t.startsWith("./..")}ne.isPatternRelatedToParentDirectory=ua;function T1(t){return g1(t,{flipBackslashes:!1})}ne.getBaseDirectory=T1;function k1(t){return t.includes(Im)}ne.hasGlobStar=k1;function Hm(t){return t.endsWith("/"+Im)}ne.endsWithSlashGlobStar=Hm;function L1(t){let e=y1.basename(t);return Hm(t)||Nm(e)}ne.isAffectDepthOfReadingPattern=L1;function B1(t){return t.reduce((e,r)=>e.concat(qm(r)),[])}ne.expandPatternsWithBraceExpansion=B1;function qm(t){return oa.braces(t,{expand:!0,nodupes:!0})}ne.expandBraceExpansion=qm;function P1(t,e){let{parts:r}=oa.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}ne.getPatternParts=P1;function $m(t,e){return oa.makeRe(t,e)}ne.makeRe=$m;function I1(t,e){return t.map(r=>$m(r,e))}ne.convertPatternsToRe=I1;function N1(t,e){return e.some(r=>r.test(t))}ne.matchAny=N1});var Ym=H((XL,Wm)=>{"use strict";var M1=require("stream"),Gm=M1.PassThrough,j1=Array.prototype.slice;Wm.exports=H1;function H1(){let t=[],e=j1.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=Gm(i);function u(){for(let c=0,h=arguments.length;c<h;c++)t.push(zm(arguments[c],i));return a(),this}function a(){if(r)return;r=!0;let c=t.shift();if(!c){process.nextTick(l);return}Array.isArray(c)||(c=[c]);let h=c.length+1;function f(){--h>0||(r=!1,a())}function d(g){function y(){g.removeListener("merge2UnpipeEnd",y),g.removeListener("end",y),s&&g.removeListener("error",E),f()}function E(v){o.emit("error",v)}if(g._readableState.endEmitted)return f();g.on("merge2UnpipeEnd",y),g.on("end",y),s&&g.on("error",E),g.pipe(o,{end:!1}),g.resume()}for(let g=0;g<c.length;g++)d(c[g]);f()}function l(){r=!1,o.emit("queueDrain"),n&&o.end()}return o.setMaxListeners(0),o.add=u,o.on("unpipe",function(c){c.emit("merge2UnpipeEnd")}),e.length&&u.apply(null,e),o}function zm(t,e){if(Array.isArray(t))for(let r=0,i=t.length;r<i;r++)t[r]=zm(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Gm(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var Vm=H(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.merge=void 0;var q1=Ym();function $1(t){let e=q1(t);return t.forEach(r=>{r.once("error",i=>e.emit("error",i))}),e.once("close",()=>Km(t)),e.once("end",()=>Km(t)),e}Ss.merge=$1;function Km(t){t.forEach(e=>e.emit("close"))}});var Zm=H(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.isEmpty=yi.isString=void 0;function U1(t){return typeof t=="string"}yi.isString=U1;function G1(t){return t===""}yi.isEmpty=G1});var Bt=H(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.string=Te.stream=Te.pattern=Te.path=Te.fs=Te.errno=Te.array=void 0;var z1=gd();Te.array=z1;var W1=Ed();Te.errno=W1;var Y1=Dd();Te.fs=Y1;var K1=_d();Te.path=K1;var V1=Um();Te.pattern=V1;var Z1=Vm();Te.stream=Z1;var J1=Zm();Te.string=J1});var Qm=H(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.convertPatternGroupToTask=ke.convertPatternGroupsToTasks=ke.groupPatternsByBaseDirectory=ke.getNegativePatternsAsPositive=ke.getPositivePatterns=ke.convertPatternsToTasks=ke.generate=void 0;var Pt=Bt();function X1(t,e){let r=Jm(t),i=Xm(t,e.ignore),n=r.filter(a=>Pt.pattern.isStaticPattern(a,e)),s=r.filter(a=>Pt.pattern.isDynamicPattern(a,e)),o=aa(n,i,!1),u=aa(s,i,!0);return o.concat(u)}ke.generate=X1;function aa(t,e,r){let i=[],n=Pt.pattern.getPatternsOutsideCurrentDirectory(t),s=Pt.pattern.getPatternsInsideCurrentDirectory(t),o=la(n),u=la(s);return i.push(...ca(o,e,r)),"."in u?i.push(ha(".",s,e,r)):i.push(...ca(u,e,r)),i}ke.convertPatternsToTasks=aa;function Jm(t){return Pt.pattern.getPositivePatterns(t)}ke.getPositivePatterns=Jm;function Xm(t,e){return Pt.pattern.getNegativePatterns(t).concat(e).map(Pt.pattern.convertToPositivePattern)}ke.getNegativePatternsAsPositive=Xm;function la(t){let e={};return t.reduce((r,i)=>{let n=Pt.pattern.getBaseDirectory(i);return n in r?r[n].push(i):r[n]=[i],r},e)}ke.groupPatternsByBaseDirectory=la;function ca(t,e,r){return Object.keys(t).map(i=>ha(i,t[i],e,r))}ke.convertPatternGroupsToTasks=ca;function ha(t,e,r,i){return{dynamic:i,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Pt.pattern.convertToNegativePattern))}}ke.convertPatternGroupToTask=ha});var t0=H(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.removeDuplicateSlashes=gi.transform=void 0;var Q1=/(?!^)\/{2,}/g;function eC(t){return t.map(e=>e0(e))}gi.transform=eC;function e0(t){return t.replace(Q1,"/")}gi.removeDuplicateSlashes=e0});var i0=H(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.read=void 0;function tC(t,e,r){e.fs.lstat(t,(i,n)=>{if(i!==null){r0(r,i);return}if(!n.isSymbolicLink()||!e.followSymbolicLink){fa(r,n);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){r0(r,s);return}fa(r,n);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),fa(r,o)})})}As.read=tC;function r0(t,e){t(e)}function fa(t,e){t(null,e)}});var n0=H(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.read=void 0;function rC(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}}vs.read=rC});var s0=H(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.createFileSystemAdapter=rr.FILE_SYSTEM_ADAPTER=void 0;var Cs=require("fs");rr.FILE_SYSTEM_ADAPTER={lstat:Cs.lstat,stat:Cs.stat,lstatSync:Cs.lstatSync,statSync:Cs.statSync};function iC(t){return t===void 0?rr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},rr.FILE_SYSTEM_ADAPTER),t)}rr.createFileSystemAdapter=iC});var o0=H(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});var nC=s0(),pa=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=nC.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}};da.default=pa});var Br=H(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.statSync=ir.stat=ir.Settings=void 0;var u0=i0(),sC=n0(),ma=o0();ir.Settings=ma.default;function oC(t,e,r){if(typeof e=="function"){u0.read(t,ya(),e);return}u0.read(t,ya(e),r)}ir.stat=oC;function uC(t,e){let r=ya(e);return sC.read(t,r)}ir.statSync=uC;function ya(t={}){return t instanceof ma.default?t:new ma.default(t)}});var c0=H((lB,l0)=>{var a0;l0.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):t=>(a0||(a0=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var f0=H((cB,h0)=>{h0.exports=lC;var aC=c0();function lC(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(a){function l(){e&&e(a,r),e=null}s?aC(l):l()}function u(a,l,c){r[a]=c,(--i===0||l)&&o(l)}i?n?n.forEach(function(a){t[a](function(l,c){u(a,l,c)})}):t.forEach(function(a,l){a(function(c,h){u(l,c,h)})}):o(null),s=!1}});var ga=H(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Rs=process.versions.node.split(".");if(Rs[0]===void 0||Rs[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var p0=Number.parseInt(Rs[0],10),cC=Number.parseInt(Rs[1],10),d0=10,hC=10,fC=p0>d0,pC=p0===d0&&cC>=hC;xs.IS_SUPPORT_READDIR_WITH_FILE_TYPES=fC||pC});var m0=H(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.createDirentFromStats=void 0;var Ea=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 dC(t,e){return new Ea(t,e)}Fs.createDirentFromStats=dC});var Da=H(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.fs=void 0;var mC=m0();Os.fs=mC});var _a=H(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.joinPathSegments=void 0;function yC(t,e,r){return t.endsWith(r)?t+e:t+r+e}Ts.joinPathSegments=yC});var b0=H(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.readdir=nr.readdirWithFileTypes=nr.read=void 0;var gC=Br(),y0=f0(),EC=ga(),g0=Da(),E0=_a();function DC(t,e,r){if(!e.stats&&EC.IS_SUPPORT_READDIR_WITH_FILE_TYPES){D0(t,e,r);return}_0(t,e,r)}nr.read=DC;function D0(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(i,n)=>{if(i!==null){ks(r,i);return}let s=n.map(u=>({dirent:u,name:u.name,path:E0.joinPathSegments(t,u.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){ba(r,s);return}let o=s.map(u=>_C(u,e));y0(o,(u,a)=>{if(u!==null){ks(r,u);return}ba(r,a)})})}nr.readdirWithFileTypes=D0;function _C(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=g0.fs.createDirentFromStats(t.name,n),r(null,t)})}}function _0(t,e,r){e.fs.readdir(t,(i,n)=>{if(i!==null){ks(r,i);return}let s=n.map(o=>{let u=E0.joinPathSegments(t,o,e.pathSegmentSeparator);return a=>{gC.stat(u,e.fsStatSettings,(l,c)=>{if(l!==null){a(l);return}let h={name:o,path:u,dirent:g0.fs.createDirentFromStats(o,c)};e.stats&&(h.stats=c),a(null,h)})}});y0(s,(o,u)=>{if(o!==null){ks(r,o);return}ba(r,u)})})}nr.readdir=_0;function ks(t,e){t(e)}function ba(t,e){t(null,e)}});var C0=H(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.readdir=sr.readdirWithFileTypes=sr.read=void 0;var bC=Br(),wC=ga(),w0=Da(),S0=_a();function SC(t,e){return!e.stats&&wC.IS_SUPPORT_READDIR_WITH_FILE_TYPES?A0(t,e):v0(t,e)}sr.read=SC;function A0(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(i=>{let n={dirent:i,name:i.name,path:S0.joinPathSegments(t,i.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(n.path);n.dirent=w0.fs.createDirentFromStats(n.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return n})}sr.readdirWithFileTypes=A0;function v0(t,e){return e.fs.readdirSync(t).map(i=>{let n=S0.joinPathSegments(t,i,e.pathSegmentSeparator),s=bC.statSync(n,e.fsStatSettings),o={name:i,path:n,dirent:w0.fs.createDirentFromStats(i,s)};return e.stats&&(o.stats=s),o})}sr.readdir=v0});var R0=H(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.createFileSystemAdapter=or.FILE_SYSTEM_ADAPTER=void 0;var Ei=require("fs");or.FILE_SYSTEM_ADAPTER={lstat:Ei.lstat,stat:Ei.stat,lstatSync:Ei.lstatSync,statSync:Ei.statSync,readdir:Ei.readdir,readdirSync:Ei.readdirSync};function AC(t){return t===void 0?or.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},or.FILE_SYSTEM_ADAPTER),t)}or.createFileSystemAdapter=AC});var x0=H(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});var vC=require("path"),CC=Br(),RC=R0(),wa=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=RC.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,vC.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new CC.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};Sa.default=wa});var Ls=H(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.Settings=ur.scandirSync=ur.scandir=void 0;var F0=b0(),xC=C0(),Aa=x0();ur.Settings=Aa.default;function FC(t,e,r){if(typeof e=="function"){F0.read(t,va(),e);return}F0.read(t,va(e),r)}ur.scandir=FC;function OC(t,e){let r=va(e);return xC.read(t,r)}ur.scandirSync=OC;function va(t={}){return t instanceof Aa.default?t:new Aa.default(t)}});var T0=H((_B,O0)=>{"use strict";function TC(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}}O0.exports=TC});var L0=H((bB,Ca)=>{"use strict";var kC=T0();function k0(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=kC(LC),n=null,s=null,o=0,u=null,a={push:y,drain:rt,saturated:rt,pause:c,paused:!1,concurrency:r,running:l,resume:d,idle:g,length:h,getQueue:f,unshift:E,empty:rt,kill:F,killAndDrain:O,error:x};return a;function l(){return o}function c(){a.paused=!0}function h(){for(var R=n,L=0;R;)R=R.next,L++;return L}function f(){for(var R=n,L=[];R;)L.push(R.value),R=R.next;return L}function d(){if(a.paused){a.paused=!1;for(var R=0;R<a.concurrency;R++)o++,v()}}function g(){return o===0&&a.length()===0}function y(R,L){var _=i.get();_.context=t,_.release=v,_.value=R,_.callback=L||rt,_.errorHandler=u,o===a.concurrency||a.paused?s?(s.next=_,s=_):(n=_,s=_,a.saturated()):(o++,e.call(t,_.value,_.worked))}function E(R,L){var _=i.get();_.context=t,_.release=v,_.value=R,_.callback=L||rt,o===a.concurrency||a.paused?n?(_.next=n,n=_):(n=_,s=_,a.saturated()):(o++,e.call(t,_.value,_.worked))}function v(R){R&&i.release(R);var L=n;L?a.paused?o--:(s===n&&(s=null),n=L.next,L.next=null,e.call(t,L.value,L.worked),s===null&&a.empty()):--o===0&&a.drain()}function F(){n=null,s=null,a.drain=rt}function O(){n=null,s=null,a.drain(),a.drain=rt}function x(R){u=R}}function rt(){}function LC(){this.value=null,this.callback=rt,this.next=null,this.release=rt,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=rt,t.errorHandler&&s(r,o),n.call(t.context,r,i),t.release(t)}}function BC(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function i(c,h){e.call(this,c).then(function(f){h(null,f)},h)}var n=k0(t,i,r),s=n.push,o=n.unshift;return n.push=u,n.unshift=a,n.drained=l,n;function u(c){var h=new Promise(function(f,d){s(c,function(g,y){if(g){d(g);return}f(y)})});return h.catch(rt),h}function a(c){var h=new Promise(function(f,d){o(c,function(g,y){if(g){d(g);return}f(y)})});return h.catch(rt),h}function l(){var c=n.drain,h=new Promise(function(f){n.drain=function(){c(),f()}});return h}}Ca.exports=k0;Ca.exports.promise=BC});var Bs=H(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.joinPathSegments=_t.replacePathSegmentSeparator=_t.isAppliedFilter=_t.isFatalError=void 0;function PC(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}_t.isFatalError=PC;function IC(t,e){return t===null||t(e)}_t.isAppliedFilter=IC;function NC(t,e){return t.split(/[/\\]/).join(e)}_t.replacePathSegmentSeparator=NC;function MC(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}_t.joinPathSegments=MC});var Fa=H(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});var jC=Bs(),Ra=class{constructor(e,r){this._root=e,this._settings=r,this._root=jC.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};xa.default=Ra});var ka=H(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});var HC=require("events"),qC=Ls(),$C=L0(),Ps=Bs(),UC=Fa(),Oa=class extends UC.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=qC.scandir,this._emitter=new HC.EventEmitter,this._queue=$C(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||!Ps.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=Ps.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Ps.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Ps.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Ta.default=Oa});var B0=H(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});var GC=ka(),La=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new GC.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{zC(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{WC(e,this._storage)}),this._reader.read()}};Ba.default=La;function zC(t,e){t(e)}function WC(t,e){t(null,e)}});var P0=H(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var YC=require("stream"),KC=ka(),Pa=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new KC.default(this._root,this._settings),this._stream=new YC.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}};Ia.default=Pa});var I0=H(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});var VC=Ls(),Is=Bs(),ZC=Fa(),Na=class extends ZC.default{constructor(){super(...arguments),this._scandir=VC.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(Is.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let i=e.path;r!==void 0&&(e.path=Is.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Is.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Is.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(i,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Ma.default=Na});var N0=H(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var JC=I0(),ja=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new JC.default(this._root,this._settings)}read(){return this._reader.read()}};Ha.default=ja});var M0=H($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var XC=require("path"),QC=Ls(),qa=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,XC.sep),this.fsScandirSettings=new QC.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}};$a.default=qa});var Ms=H(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.Settings=bt.walkStream=bt.walkSync=bt.walk=void 0;var j0=B0(),eR=P0(),tR=N0(),Ua=M0();bt.Settings=Ua.default;function rR(t,e,r){if(typeof e=="function"){new j0.default(t,Ns()).read(e);return}new j0.default(t,Ns(e)).read(r)}bt.walk=rR;function iR(t,e){let r=Ns(e);return new tR.default(t,r).read()}bt.walkSync=iR;function nR(t,e){let r=Ns(e);return new eR.default(t,r).read()}bt.walkStream=nR;function Ns(t={}){return t instanceof Ua.default?t:new Ua.default(t)}});var js=H(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});var sR=require("path"),oR=Br(),H0=Bt(),Ga=class{constructor(e){this._settings=e,this._fsStatSettings=new oR.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return sR.resolve(this._settings.cwd,e)}_makeEntry(e,r){let i={name:r,path:r,dirent:H0.fs.createDirentFromStats(r,e)};return this._settings.stats&&(i.stats=e),i}_isFatalError(e){return!H0.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};za.default=Ga});var Ka=H(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var uR=require("stream"),aR=Br(),lR=Ms(),cR=js(),Wa=class extends cR.default{constructor(){super(...arguments),this._walkStream=lR.walkStream,this._stat=aR.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let i=e.map(this._getFullEntryPath,this),n=new uR.PassThrough({objectMode:!0});n._write=(s,o,u)=>this._getEntry(i[s],e[s],r).then(a=>{a!==null&&r.entryFilter(a)&&n.push(a),s===i.length-1&&n.end(),u()}).catch(u);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))})}};Ya.default=Wa});var q0=H(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});var hR=Ms(),fR=js(),pR=Ka(),Va=class extends fR.default{constructor(){super(...arguments),this._walkAsync=hR.walk,this._readerStream=new pR.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",u=>i.push(u)),n.once("end",()=>s(i))})}};Za.default=Va});var $0=H(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});var Di=Bt(),Ja=class{constructor(e,r,i){this._patterns=e,this._settings=r,this._micromatchOptions=i,this._storage=[],this._fillStorage()}_fillStorage(){let e=Di.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 Di.pattern.getPatternParts(e,this._micromatchOptions).map(i=>Di.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:Di.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(e){return Di.array.splitWhen(e,r=>r.dynamic&&Di.pattern.hasGlobStar(r.pattern))}};Xa.default=Ja});var U0=H(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var dR=$0(),Qa=class extends dR.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((a,l)=>{let c=s.segments[l];return!!(c.dynamic&&c.patternRe.test(a)||!c.dynamic&&c.pattern===a)}))return!0}return!1}};el.default=Qa});var G0=H(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var Hs=Bt(),mR=U0(),tl=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 mR.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Hs.pattern.isAffectDepthOfReadingPattern);return Hs.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,i,n){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Hs.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!Hs.pattern.matchAny(e,r)}};rl.default=tl});var z0=H(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var Pr=Bt(),il=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let i=Pr.pattern.convertPatternsToRe(e,this._micromatchOptions),n=Pr.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=Pr.path.makeAbsolute(this._settings.cwd,e);return Pr.pattern.matchAny(i,r)}_isMatchToPatterns(e,r,i){let n=Pr.path.removeLeadingDotSegment(e),s=Pr.pattern.matchAny(n,r);return!s&&i?Pr.pattern.matchAny(n+"/",r):s}};nl.default=il});var W0=H(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var yR=Bt(),sl=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return yR.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};ol.default=sl});var K0=H(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});var Y0=Bt(),ul=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=Y0.path.makeAbsolute(this._settings.cwd,r),r=Y0.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};al.default=ul});var qs=H(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var gR=require("path"),ER=G0(),DR=z0(),_R=W0(),bR=K0(),ll=class{constructor(e){this._settings=e,this.errorFilter=new _R.default(this._settings),this.entryFilter=new DR.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new ER.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new bR.default(this._settings)}_getRootDirectory(e){return gR.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}}};cl.default=ll});var V0=H(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var wR=q0(),SR=qs(),hl=class extends SR.default{constructor(){super(...arguments),this._reader=new wR.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)}};fl.default=hl});var Z0=H(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var AR=require("stream"),vR=Ka(),CR=qs(),pl=class extends CR.default{constructor(){super(...arguments),this._reader=new vR.default(this._settings)}read(e){let r=this._getRootDirectory(e),i=this._getReaderOptions(e),n=this.api(r,e,i),s=new AR.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)}};dl.default=pl});var J0=H(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var RR=Br(),xR=Ms(),FR=js(),ml=class extends FR.default{constructor(){super(...arguments),this._walkSync=xR.walkSync,this._statSync=RR.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)}};yl.default=ml});var X0=H(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});var OR=J0(),TR=qs(),gl=class extends TR.default{constructor(){super(...arguments),this._reader=new OR.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)}};El.default=gl});var Q0=H(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var _i=require("fs"),kR=require("os"),LR=Math.max(kR.cpus().length,1);bi.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:_i.lstat,lstatSync:_i.lstatSync,stat:_i.stat,statSync:_i.statSync,readdir:_i.readdir,readdirSync:_i.readdirSync};var Dl=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,LR),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({},bi.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};bi.default=Dl});var $s=H((WB,ry)=>{"use strict";var ey=Qm(),ty=t0(),BR=V0(),PR=Z0(),IR=X0(),_l=Q0(),Ir=Bt();async function bl(t,e){wi(t);let r=wl(t,BR.default,e),i=await Promise.all(r);return Ir.array.flatten(i)}(function(t){function e(o,u){wi(o);let a=wl(o,IR.default,u);return Ir.array.flatten(a)}t.sync=e;function r(o,u){wi(o);let a=wl(o,PR.default,u);return Ir.stream.merge(a)}t.stream=r;function i(o,u){wi(o);let a=ty.transform([].concat(o)),l=new _l.default(u);return ey.generate(a,l)}t.generateTasks=i;function n(o,u){wi(o);let a=new _l.default(u);return Ir.pattern.isDynamicPattern(o,a)}t.isDynamicPattern=n;function s(o){return wi(o),Ir.path.escape(o)}t.escapePath=s})(bl||(bl={}));function wl(t,e,r){let i=ty.transform([].concat(t)),n=new _l.default(r),s=ey.generate(i,n),o=new e(n);return s.map(o.read,o)}function wi(t){if(![].concat(t).every(i=>Ir.string.isString(i)&&!Ir.string.isEmpty(i)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}ry.exports=bl});var Ny=H((dP,Mt)=>{function Pl(t){return Mt.exports=Pl=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},Mt.exports.__esModule=!0,Mt.exports.default=Mt.exports,Pl(t)}Mt.exports=Pl,Mt.exports.__esModule=!0,Mt.exports.default=Mt.exports});var Hy=H((mP,jt)=>{var My=Ny().default;function jy(){"use strict";jt.exports=jy=function(){return e},jt.exports.__esModule=!0,jt.exports.default=jt.exports;var t,e={},r=Object.prototype,i=r.hasOwnProperty,n=Object.defineProperty||function(C,T,j){C[T]=j.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",a=s.toStringTag||"@@toStringTag";function l(C,T,j){return Object.defineProperty(C,T,{value:j,enumerable:!0,configurable:!0,writable:!0}),C[T]}try{l({},"")}catch{l=function(j,z,P){return j[z]=P}}function c(C,T,j,z){var P=T&&T.prototype instanceof v?T:v,p=Object.create(P.prototype),m=new V(z||[]);return n(p,"_invoke",{value:q(C,j,m)}),p}function h(C,T,j){try{return{type:"normal",arg:C.call(T,j)}}catch(z){return{type:"throw",arg:z}}}e.wrap=c;var f="suspendedStart",d="suspendedYield",g="executing",y="completed",E={};function v(){}function F(){}function O(){}var x={};l(x,o,function(){return this});var R=Object.getPrototypeOf,L=R&&R(R(B([])));L&&L!==r&&i.call(L,o)&&(x=L);var _=O.prototype=v.prototype=Object.create(x);function S(C){["next","throw","return"].forEach(function(T){l(C,T,function(j){return this._invoke(T,j)})})}function N(C,T){function j(P,p,m,D){var A=h(C[P],C,p);if(A.type!=="throw"){var w=A.arg,I=w.value;return I&&My(I)=="object"&&i.call(I,"__await")?T.resolve(I.__await).then(function(M){j("next",M,m,D)},function(M){j("throw",M,m,D)}):T.resolve(I).then(function(M){w.value=M,m(w)},function(M){return j("throw",M,m,D)})}D(A.arg)}var z;n(this,"_invoke",{value:function(p,m){function D(){return new T(function(A,w){j(p,m,A,w)})}return z=z?z.then(D,D):D()}})}function q(C,T,j){var z=f;return function(P,p){if(z===g)throw new Error("Generator is already running");if(z===y){if(P==="throw")throw p;return{value:t,done:!0}}for(j.method=P,j.arg=p;;){var m=j.delegate;if(m){var D=k(m,j);if(D){if(D===E)continue;return D}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(z===f)throw z=y,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);z=g;var A=h(C,T,j);if(A.type==="normal"){if(z=j.done?y:d,A.arg===E)continue;return{value:A.arg,done:j.done}}A.type==="throw"&&(z=y,j.method="throw",j.arg=A.arg)}}}function k(C,T){var j=T.method,z=C.iterator[j];if(z===t)return T.delegate=null,j==="throw"&&C.iterator.return&&(T.method="return",T.arg=t,k(C,T),T.method==="throw")||j!=="return"&&(T.method="throw",T.arg=new TypeError("The iterator does not provide a '"+j+"' method")),E;var P=h(z,C.iterator,T.arg);if(P.type==="throw")return T.method="throw",T.arg=P.arg,T.delegate=null,E;var p=P.arg;return p?p.done?(T[C.resultName]=p.value,T.next=C.nextLoc,T.method!=="return"&&(T.method="next",T.arg=t),T.delegate=null,E):p:(T.method="throw",T.arg=new TypeError("iterator result is not an object"),T.delegate=null,E)}function U(C){var T={tryLoc:C[0]};1 in C&&(T.catchLoc=C[1]),2 in C&&(T.finallyLoc=C[2],T.afterLoc=C[3]),this.tryEntries.push(T)}function K(C){var T=C.completion||{};T.type="normal",delete T.arg,C.completion=T}function V(C){this.tryEntries=[{tryLoc:"root"}],C.forEach(U,this),this.reset(!0)}function B(C){if(C||C===""){var T=C[o];if(T)return T.call(C);if(typeof C.next=="function")return C;if(!isNaN(C.length)){var j=-1,z=function P(){for(;++j<C.length;)if(i.call(C,j))return P.value=C[j],P.done=!1,P;return P.value=t,P.done=!0,P};return z.next=z}}throw new TypeError(My(C)+" is not iterable")}return F.prototype=O,n(_,"constructor",{value:O,configurable:!0}),n(O,"constructor",{value:F,configurable:!0}),F.displayName=l(O,a,"GeneratorFunction"),e.isGeneratorFunction=function(C){var T=typeof C=="function"&&C.constructor;return!!T&&(T===F||(T.displayName||T.name)==="GeneratorFunction")},e.mark=function(C){return Object.setPrototypeOf?Object.setPrototypeOf(C,O):(C.__proto__=O,l(C,a,"GeneratorFunction")),C.prototype=Object.create(_),C},e.awrap=function(C){return{__await:C}},S(N.prototype),l(N.prototype,u,function(){return this}),e.AsyncIterator=N,e.async=function(C,T,j,z,P){P===void 0&&(P=Promise);var p=new N(c(C,T,j,z),P);return e.isGeneratorFunction(T)?p:p.next().then(function(m){return m.done?m.value:p.next()})},S(_),l(_,a,"Generator"),l(_,o,function(){return this}),l(_,"toString",function(){return"[object Generator]"}),e.keys=function(C){var T=Object(C),j=[];for(var z in T)j.push(z);return j.reverse(),function P(){for(;j.length;){var p=j.pop();if(p in T)return P.value=p,P.done=!1,P}return P.done=!0,P}},e.values=B,V.prototype={constructor:V,reset:function(T){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(K),!T)for(var j in this)j.charAt(0)==="t"&&i.call(this,j)&&!isNaN(+j.slice(1))&&(this[j]=t)},stop:function(){this.done=!0;var T=this.tryEntries[0].completion;if(T.type==="throw")throw T.arg;return this.rval},dispatchException:function(T){if(this.done)throw T;var j=this;function z(w,I){return m.type="throw",m.arg=T,j.next=w,I&&(j.method="next",j.arg=t),!!I}for(var P=this.tryEntries.length-1;P>=0;--P){var p=this.tryEntries[P],m=p.completion;if(p.tryLoc==="root")return z("end");if(p.tryLoc<=this.prev){var D=i.call(p,"catchLoc"),A=i.call(p,"finallyLoc");if(D&&A){if(this.prev<p.catchLoc)return z(p.catchLoc,!0);if(this.prev<p.finallyLoc)return z(p.finallyLoc)}else if(D){if(this.prev<p.catchLoc)return z(p.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<p.finallyLoc)return z(p.finallyLoc)}}}},abrupt:function(T,j){for(var z=this.tryEntries.length-1;z>=0;--z){var P=this.tryEntries[z];if(P.tryLoc<=this.prev&&i.call(P,"finallyLoc")&&this.prev<P.finallyLoc){var p=P;break}}p&&(T==="break"||T==="continue")&&p.tryLoc<=j&&j<=p.finallyLoc&&(p=null);var m=p?p.completion:{};return m.type=T,m.arg=j,p?(this.method="next",this.next=p.finallyLoc,E):this.complete(m)},complete:function(T,j){if(T.type==="throw")throw T.arg;return T.type==="break"||T.type==="continue"?this.next=T.arg:T.type==="return"?(this.rval=this.arg=T.arg,this.method="return",this.next="end"):T.type==="normal"&&j&&(this.next=j),E},finish:function(T){for(var j=this.tryEntries.length-1;j>=0;--j){var z=this.tryEntries[j];if(z.finallyLoc===T)return this.complete(z.completion,z.afterLoc),K(z),E}},catch:function(T){for(var j=this.tryEntries.length-1;j>=0;--j){var z=this.tryEntries[j];if(z.tryLoc===T){var P=z.completion;if(P.type==="throw"){var p=P.arg;K(z)}return p}}throw new Error("illegal catch attempt")},delegateYield:function(T,j,z){return this.delegate={iterator:B(T),resultName:j,nextLoc:z},this.method==="next"&&(this.arg=t),E}},e}jt.exports=jy,jt.exports.__esModule=!0,jt.exports.default=jt.exports});var $y=H((yP,qy)=>{var Vs=Hy()();qy.exports=Vs;try{regeneratorRuntime=Vs}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Vs:Function("r","regeneratorRuntime = r")(Vs)}});var Fi=H((aI,ig)=>{"use strict";var rg=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"]]);ig.exports=t=>t?Object.keys(t).map(e=>[rg.has(e)?rg.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var ro=H((lI,fg)=>{"use strict";var ng=typeof process=="object"&&process?process:{stdout:null,stderr:null},UF=require("events"),sg=require("stream"),og=require("string_decoder").StringDecoder,qt=Symbol("EOF"),$t=Symbol("maybeEmitEnd"),dr=Symbol("emittedEnd"),Js=Symbol("emittingEnd"),Rn=Symbol("emittedError"),Xs=Symbol("closed"),ug=Symbol("read"),Qs=Symbol("flush"),ag=Symbol("flushChunk"),Ge=Symbol("encoding"),Ut=Symbol("decoder"),eo=Symbol("flowing"),xn=Symbol("paused"),Oi=Symbol("resume"),_e=Symbol("buffer"),vt=Symbol("pipes"),Re=Symbol("bufferLength"),Ul=Symbol("bufferPush"),Gl=Symbol("bufferShift"),Be=Symbol("objectMode"),Pe=Symbol("destroyed"),zl=Symbol("emitData"),lg=Symbol("emitEnd"),Wl=Symbol("emitEnd2"),Gt=Symbol("async"),Fn=t=>Promise.resolve().then(t),cg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",GF=cg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),zF=cg&&Symbol.iterator||Symbol("iterator not implemented"),WF=t=>t==="end"||t==="finish"||t==="prefinish",YF=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,KF=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),to=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Oi](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Yl=class extends to{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)}};fg.exports=class hg extends sg{constructor(e){super(),this[eo]=!1,this[xn]=!1,this[vt]=[],this[_e]=[],this[Be]=e&&e.objectMode||!1,this[Be]?this[Ge]=null:this[Ge]=e&&e.encoding||null,this[Ge]==="buffer"&&(this[Ge]=null),this[Gt]=e&&!!e.async||!1,this[Ut]=this[Ge]?new og(this[Ge]):null,this[qt]=!1,this[dr]=!1,this[Js]=!1,this[Xs]=!1,this[Rn]=null,this.writable=!0,this.readable=!0,this[Re]=0,this[Pe]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[_e]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[vt]})}get bufferLength(){return this[Re]}get encoding(){return this[Ge]}set encoding(e){if(this[Be])throw new Error("cannot set encoding in objectMode");if(this[Ge]&&e!==this[Ge]&&(this[Ut]&&this[Ut].lastNeed||this[Re]))throw new Error("cannot change encoding");this[Ge]!==e&&(this[Ut]=e?new og(e):null,this[_e].length&&(this[_e]=this[_e].map(r=>this[Ut].write(r)))),this[Ge]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Be]}set objectMode(e){this[Be]=this[Be]||!!e}get async(){return this[Gt]}set async(e){this[Gt]=this[Gt]||!!e}write(e,r,i){if(this[qt])throw new Error("write after end");if(this[Pe])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[Gt]?Fn:s=>s();return!this[Be]&&!Buffer.isBuffer(e)&&(KF(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):YF(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Be]?(this.flowing&&this[Re]!==0&&this[Qs](!0),this.flowing?this.emit("data",e):this[Ul](e),this[Re]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ge]&&!this[Ut].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ge]&&(e=this[Ut].write(e)),this.flowing&&this[Re]!==0&&this[Qs](!0),this.flowing?this.emit("data",e):this[Ul](e),this[Re]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[Re]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Pe])return null;if(this[Re]===0||e===0||e>this[Re])return this[$t](),null;this[Be]&&(e=null),this[_e].length>1&&!this[Be]&&(this.encoding?this[_e]=[this[_e].join("")]:this[_e]=[Buffer.concat(this[_e],this[Re])]);let r=this[ug](e||null,this[_e][0]);return this[$t](),r}[ug](e,r){return e===r.length||e===null?this[Gl]():(this[_e][0]=r.slice(e),r=r.slice(0,e),this[Re]-=e),this.emit("data",r),!this[_e].length&&!this[qt]&&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[qt]=!0,this.writable=!1,(this.flowing||!this[xn])&&this[$t](),this}[Oi](){this[Pe]||(this[xn]=!1,this[eo]=!0,this.emit("resume"),this[_e].length?this[Qs]():this[qt]?this[$t]():this.emit("drain"))}resume(){return this[Oi]()}pause(){this[eo]=!1,this[xn]=!0}get destroyed(){return this[Pe]}get flowing(){return this[eo]}get paused(){return this[xn]}[Ul](e){this[Be]?this[Re]+=1:this[Re]+=e.length,this[_e].push(e)}[Gl](){return this[_e].length&&(this[Be]?this[Re]-=1:this[Re]-=this[_e][0].length),this[_e].shift()}[Qs](e){do;while(this[ag](this[Gl]()));!e&&!this[_e].length&&!this[qt]&&this.emit("drain")}[ag](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Pe])return;let i=this[dr];return r=r||{},e===ng.stdout||e===ng.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[vt].push(r.proxyErrors?new Yl(this,e,r):new to(this,e,r)),this[Gt]?Fn(()=>this[Oi]()):this[Oi]()),e}unpipe(e){let r=this[vt].find(i=>i.dest===e);r&&(this[vt].splice(this[vt].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[vt].length&&!this.flowing?this[Oi]():e==="readable"&&this[Re]!==0?super.emit("readable"):WF(e)&&this[dr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[Rn]&&(this[Gt]?Fn(()=>r.call(this,this[Rn])):r.call(this,this[Rn])),i}get emittedEnd(){return this[dr]}[$t](){!this[Js]&&!this[dr]&&!this[Pe]&&this[_e].length===0&&this[qt]&&(this[Js]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Xs]&&this.emit("close"),this[Js]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Pe&&this[Pe])return;if(e==="data")return r?this[Gt]?Fn(()=>this[zl](r)):this[zl](r):!1;if(e==="end")return this[lg]();if(e==="close"){if(this[Xs]=!0,!this[dr]&&!this[Pe])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Rn]=r;let s=super.emit("error",r);return this[$t](),s}else if(e==="resume"){let s=super.emit("resume");return this[$t](),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[$t](),n}[zl](e){for(let i of this[vt])i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[$t](),r}[lg](){this[dr]||(this[dr]=!0,this.readable=!1,this[Gt]?Fn(()=>this[Wl]()):this[Wl]())}[Wl](){if(this[Ut]){let r=this[Ut].end();if(r){for(let i of this[vt])i.dest.write(r);super.emit("data",r)}}for(let r of this[vt])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[Be]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Be]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Be]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Be]?Promise.reject(new Error("cannot concat in objectMode")):this[Ge]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Pe,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[GF](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[qt])return Promise.resolve({done:!0});let i=null,n=null,s=l=>{this.removeListener("data",o),this.removeListener("end",u),n(l)},o=l=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),i({value:l,done:!!this[qt]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((l,c)=>{n=c,i=l,this.once(Pe,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[zF](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Pe]?(e?this.emit("error",e):this.emit(Pe),this):(this[Pe]=!0,this[_e].length=0,this[Re]=0,typeof this.close=="function"&&!this[Xs]&&this.close(),e?this.emit("error",e):this.emit(Pe),this)}static isStream(e){return!!e&&(e instanceof hg||e instanceof sg||e instanceof UF&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var dg=H((cI,pg)=>{var VF=require("zlib").constants||{ZLIB_VERNUM:4736};pg.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},VF))});var Ql=H((hI,Sg)=>{"use strict";var mg=typeof process=="object"&&process?process:{stdout:null,stderr:null},ZF=require("events"),yg=require("stream"),gg=require("string_decoder").StringDecoder,zt=Symbol("EOF"),Wt=Symbol("maybeEmitEnd"),mr=Symbol("emittedEnd"),io=Symbol("emittingEnd"),On=Symbol("emittedError"),no=Symbol("closed"),Eg=Symbol("read"),so=Symbol("flush"),Dg=Symbol("flushChunk"),ze=Symbol("encoding"),Yt=Symbol("decoder"),oo=Symbol("flowing"),Tn=Symbol("paused"),Ti=Symbol("resume"),xe=Symbol("bufferLength"),Kl=Symbol("bufferPush"),Vl=Symbol("bufferShift"),Ie=Symbol("objectMode"),Ne=Symbol("destroyed"),Zl=Symbol("emitData"),_g=Symbol("emitEnd"),Jl=Symbol("emitEnd2"),Kt=Symbol("async"),kn=t=>Promise.resolve().then(t),bg=global._MP_NO_ITERATOR_SYMBOLS_!=="1",JF=bg&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),XF=bg&&Symbol.iterator||Symbol("iterator not implemented"),QF=t=>t==="end"||t==="finish"||t==="prefinish",eO=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,tO=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),uo=class{constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[Ti](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Xl=class extends uo{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)}};Sg.exports=class wg extends yg{constructor(e){super(),this[oo]=!1,this[Tn]=!1,this.pipes=[],this.buffer=[],this[Ie]=e&&e.objectMode||!1,this[Ie]?this[ze]=null:this[ze]=e&&e.encoding||null,this[ze]==="buffer"&&(this[ze]=null),this[Kt]=e&&!!e.async||!1,this[Yt]=this[ze]?new gg(this[ze]):null,this[zt]=!1,this[mr]=!1,this[io]=!1,this[no]=!1,this[On]=null,this.writable=!0,this.readable=!0,this[xe]=0,this[Ne]=!1}get bufferLength(){return this[xe]}get encoding(){return this[ze]}set encoding(e){if(this[Ie])throw new Error("cannot set encoding in objectMode");if(this[ze]&&e!==this[ze]&&(this[Yt]&&this[Yt].lastNeed||this[xe]))throw new Error("cannot change encoding");this[ze]!==e&&(this[Yt]=e?new gg(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Yt].write(r)))),this[ze]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[Ie]}set objectMode(e){this[Ie]=this[Ie]||!!e}get async(){return this[Kt]}set async(e){this[Kt]=this[Kt]||!!e}write(e,r,i){if(this[zt])throw new Error("write after end");if(this[Ne])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[Kt]?kn:s=>s();return!this[Ie]&&!Buffer.isBuffer(e)&&(tO(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):eO(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[Ie]?(this.flowing&&this[xe]!==0&&this[so](!0),this.flowing?this.emit("data",e):this[Kl](e),this[xe]!==0&&this.emit("readable"),i&&n(i),this.flowing):e.length?(typeof e=="string"&&!(r===this[ze]&&!this[Yt].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[ze]&&(e=this[Yt].write(e)),this.flowing&&this[xe]!==0&&this[so](!0),this.flowing?this.emit("data",e):this[Kl](e),this[xe]!==0&&this.emit("readable"),i&&n(i),this.flowing):(this[xe]!==0&&this.emit("readable"),i&&n(i),this.flowing)}read(e){if(this[Ne])return null;if(this[xe]===0||e===0||e>this[xe])return this[Wt](),null;this[Ie]&&(e=null),this.buffer.length>1&&!this[Ie]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[xe])]);let r=this[Eg](e||null,this.buffer[0]);return this[Wt](),r}[Eg](e,r){return e===r.length||e===null?this[Vl]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[xe]-=e),this.emit("data",r),!this.buffer.length&&!this[zt]&&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[zt]=!0,this.writable=!1,(this.flowing||!this[Tn])&&this[Wt](),this}[Ti](){this[Ne]||(this[Tn]=!1,this[oo]=!0,this.emit("resume"),this.buffer.length?this[so]():this[zt]?this[Wt]():this.emit("drain"))}resume(){return this[Ti]()}pause(){this[oo]=!1,this[Tn]=!0}get destroyed(){return this[Ne]}get flowing(){return this[oo]}get paused(){return this[Tn]}[Kl](e){this[Ie]?this[xe]+=1:this[xe]+=e.length,this.buffer.push(e)}[Vl](){return this.buffer.length&&(this[Ie]?this[xe]-=1:this[xe]-=this.buffer[0].length),this.buffer.shift()}[so](e){do;while(this[Dg](this[Vl]()));!e&&!this.buffer.length&&!this[zt]&&this.emit("drain")}[Dg](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[Ne])return;let i=this[mr];return r=r||{},e===mg.stdout||e===mg.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this.pipes.push(r.proxyErrors?new Xl(this,e,r):new uo(this,e,r)),this[Kt]?kn(()=>this[Ti]()):this[Ti]()),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[Ti]():e==="readable"&&this[xe]!==0?super.emit("readable"):QF(e)&&this[mr]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[On]&&(this[Kt]?kn(()=>r.call(this,this[On])):r.call(this,this[On])),i}get emittedEnd(){return this[mr]}[Wt](){!this[io]&&!this[mr]&&!this[Ne]&&this.buffer.length===0&&this[zt]&&(this[io]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[no]&&this.emit("close"),this[io]=!1)}emit(e,r,...i){if(e!=="error"&&e!=="close"&&e!==Ne&&this[Ne])return;if(e==="data")return r?this[Kt]?kn(()=>this[Zl](r)):this[Zl](r):!1;if(e==="end")return this[_g]();if(e==="close"){if(this[no]=!0,!this[mr]&&!this[Ne])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[On]=r;let s=super.emit("error",r);return this[Wt](),s}else if(e==="resume"){let s=super.emit("resume");return this[Wt](),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[Wt](),n}[Zl](e){for(let i of this.pipes)i.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Wt](),r}[_g](){this[mr]||(this[mr]=!0,this.readable=!1,this[Kt]?kn(()=>this[Jl]()):this[Jl]())}[Jl](){if(this[Yt]){let r=this[Yt].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[Ie]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Ie]||(e.dataLength+=i.length)}),r.then(()=>e)}concat(){return this[Ie]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[Ie]?Promise.reject(new Error("cannot concat in objectMode")):this[ze]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(Ne,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[JF](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[zt])return Promise.resolve({done:!0});let i=null,n=null,s=l=>{this.removeListener("data",o),this.removeListener("end",u),n(l)},o=l=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),i({value:l,done:!!this[zt]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),i({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((l,c)=>{n=c,i=l,this.once(Ne,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[XF](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[Ne]?(e?this.emit("error",e):this.emit(Ne),this):(this[Ne]=!0,this.buffer.length=0,this[xe]=0,typeof this.close=="function"&&!this[no]&&this.close(),e?this.emit("error",e):this.emit(Ne),this)}static isStream(e){return!!e&&(e instanceof wg||e instanceof yg||e instanceof ZF&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var mc=H(Je=>{"use strict";var nc=require("assert"),yr=require("buffer").Buffer,Cg=require("zlib"),qr=Je.constants=dg(),rO=Ql(),Ag=yr.concat,$r=Symbol("_superWrite"),Li=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"}},iO=Symbol("opts"),Ln=Symbol("flushFlag"),vg=Symbol("finishFlushFlag"),dc=Symbol("fullFlushFlag"),pe=Symbol("handle"),ao=Symbol("onError"),ki=Symbol("sawError"),ec=Symbol("level"),tc=Symbol("strategy"),rc=Symbol("ended"),fI=Symbol("_defaultFullFlush"),lo=class extends rO{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[ki]=!1,this[rc]=!1,this[iO]=e,this[Ln]=e.flush,this[vg]=e.finishFlush;try{this[pe]=new Cg[r](e)}catch(i){throw new Li(i)}this[ao]=i=>{this[ki]||(this[ki]=!0,this.close(),this.emit("error",i))},this[pe].on("error",i=>this[ao](new Li(i))),this.once("end",()=>this.close)}close(){this[pe]&&(this[pe].close(),this[pe]=null,this.emit("close"))}reset(){if(!this[ki])return nc(this[pe],"zlib binding closed"),this[pe].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[dc]),this.write(Object.assign(yr.alloc(0),{[Ln]:e})))}end(e,r,i){return e&&this.write(e,r),this.flush(this[vg]),this[rc]=!0,super.end(null,null,i)}get ended(){return this[rc]}write(e,r,i){if(typeof r=="function"&&(i=r,r="utf8"),typeof e=="string"&&(e=yr.from(e,r)),this[ki])return;nc(this[pe],"zlib binding closed");let n=this[pe]._handle,s=n.close;n.close=()=>{};let o=this[pe].close;this[pe].close=()=>{},yr.concat=l=>l;let u;try{let l=typeof e[Ln]=="number"?e[Ln]:this[Ln];u=this[pe]._processChunk(e,l),yr.concat=Ag}catch(l){yr.concat=Ag,this[ao](new Li(l))}finally{this[pe]&&(this[pe]._handle=n,n.close=s,this[pe].close=o,this[pe].removeAllListeners("error"))}this[pe]&&this[pe].on("error",l=>this[ao](new Li(l)));let a;if(u)if(Array.isArray(u)&&u.length>0){a=this[$r](yr.from(u[0]));for(let l=1;l<u.length;l++)a=this[$r](u[l])}else a=this[$r](yr.from(u));return i&&i(),a}[$r](e){return super.write(e)}},Vt=class extends lo{constructor(e,r){e=e||{},e.flush=e.flush||qr.Z_NO_FLUSH,e.finishFlush=e.finishFlush||qr.Z_FINISH,super(e,r),this[dc]=qr.Z_FULL_FLUSH,this[ec]=e.level,this[tc]=e.strategy}params(e,r){if(!this[ki]){if(!this[pe])throw new Error("cannot switch params when binding is closed");if(!this[pe].params)throw new Error("not supported in this implementation");if(this[ec]!==e||this[tc]!==r){this.flush(qr.Z_SYNC_FLUSH),nc(this[pe],"zlib binding closed");let i=this[pe].flush;this[pe].flush=(n,s)=>{this.flush(n),s()};try{this[pe].params(e,r)}finally{this[pe].flush=i}this[pe]&&(this[ec]=e,this[tc]=r)}}}},sc=class extends Vt{constructor(e){super(e,"Deflate")}},oc=class extends Vt{constructor(e){super(e,"Inflate")}},ic=Symbol("_portable"),uc=class extends Vt{constructor(e){super(e,"Gzip"),this[ic]=e&&!!e.portable}[$r](e){return this[ic]?(this[ic]=!1,e[9]=255,super[$r](e)):super[$r](e)}},ac=class extends Vt{constructor(e){super(e,"Gunzip")}},lc=class extends Vt{constructor(e){super(e,"DeflateRaw")}},cc=class extends Vt{constructor(e){super(e,"InflateRaw")}},hc=class extends Vt{constructor(e){super(e,"Unzip")}},co=class extends lo{constructor(e,r){e=e||{},e.flush=e.flush||qr.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||qr.BROTLI_OPERATION_FINISH,super(e,r),this[dc]=qr.BROTLI_OPERATION_FLUSH}},fc=class extends co{constructor(e){super(e,"BrotliCompress")}},pc=class extends co{constructor(e){super(e,"BrotliDecompress")}};Je.Deflate=sc;Je.Inflate=oc;Je.Gzip=uc;Je.Gunzip=ac;Je.DeflateRaw=lc;Je.InflateRaw=cc;Je.Unzip=hc;typeof Cg.BrotliCompress=="function"?(Je.BrotliCompress=fc,Je.BrotliDecompress=pc):Je.BrotliCompress=Je.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Bi=H((mI,Rg)=>{var nO=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;Rg.exports=nO!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var ho=H((gI,xg)=>{"use strict";var sO=ro(),yc=Bi(),gc=Symbol("slurp");xg.exports=class extends sO{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=yc(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=yc(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[gc](r),i&&this[gc](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))}[gc](e,r){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(r&&i==="path")&&(this[i]=i==="path"||i==="linkpath"?yc(e[i]):e[i])}}});var Ec=H(fo=>{"use strict";fo.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"]]);fo.code=new Map(Array.from(fo.name).map(t=>[t[1],t[0]]))});var kg=H((DI,Tg)=>{"use strict";var oO=(t,e)=>{if(Number.isSafeInteger(t))t<0?aO(t,e):uO(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},uO=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},aO=(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]=Fg(n):n===0?e[i-1]=0:(r=!0,e[i-1]=Og(n))}},lO=t=>{let e=t[0],r=e===128?hO(t.slice(1,t.length)):e===255?cO(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},cO=t=>{for(var e=t.length,r=0,i=!1,n=e-1;n>-1;n--){var s=t[n],o;i?o=Fg(s):s===0?o=s:(i=!0,o=Og(s)),o!==0&&(r-=o*Math.pow(256,e-n-1))}return r},hO=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},Fg=t=>(255^t)&255,Og=t=>(255^t)+1&255;Tg.exports={encode:oO,parse:lO}});var Ii=H((_I,Bg)=>{"use strict";var Dc=Ec(),Pi=require("path").posix,Lg=kg(),_c=Symbol("slurp"),Xe=Symbol("type"),Sc=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[Xe]="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=Ur(e,r,100),this.mode=gr(e,r+100,8),this.uid=gr(e,r+108,8),this.gid=gr(e,r+116,8),this.size=gr(e,r+124,12),this.mtime=bc(e,r+136,12),this.cksum=gr(e,r+148,12),this[_c](i),this[_c](n,!0),this[Xe]=Ur(e,r+156,1),this[Xe]===""&&(this[Xe]="0"),this[Xe]==="0"&&this.path.slice(-1)==="/"&&(this[Xe]="5"),this[Xe]==="5"&&(this.size=0),this.linkpath=Ur(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=Ur(e,r+265,32),this.gname=Ur(e,r+297,32),this.devmaj=gr(e,r+329,8),this.devmin=gr(e,r+337,8),e[r+475]!==0){let o=Ur(e,r+345,155);this.path=o+"/"+this.path}else{let o=Ur(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=bc(e,r+476,12),this.ctime=bc(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)}[_c](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=fO(this.path||"",i),s=n[0],o=n[1];this.needPax=n[2],this.needPax=Gr(e,r,100,s)||this.needPax,this.needPax=Er(e,r+100,8,this.mode)||this.needPax,this.needPax=Er(e,r+108,8,this.uid)||this.needPax,this.needPax=Er(e,r+116,8,this.gid)||this.needPax,this.needPax=Er(e,r+124,12,this.size)||this.needPax,this.needPax=wc(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Xe].charCodeAt(0),this.needPax=Gr(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=Gr(e,r+265,32,this.uname)||this.needPax,this.needPax=Gr(e,r+297,32,this.gname)||this.needPax,this.needPax=Er(e,r+329,8,this.devmaj)||this.needPax,this.needPax=Er(e,r+337,8,this.devmin)||this.needPax,this.needPax=Gr(e,r+345,i,o)||this.needPax,e[r+475]!==0?this.needPax=Gr(e,r+345,155,o)||this.needPax:(this.needPax=Gr(e,r+345,130,o)||this.needPax,this.needPax=wc(e,r+476,12,this.atime)||this.needPax,this.needPax=wc(e,r+488,12,this.ctime)||this.needPax);let u=8*32;for(let a=r;a<r+148;a++)u+=e[a];for(let a=r+156;a<r+512;a++)u+=e[a];return this.cksum=u,Er(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 Dc.name.get(this[Xe])||this[Xe]}get typeKey(){return this[Xe]}set type(e){Dc.code.has(e)?this[Xe]=Dc.code.get(e):this[Xe]=e}},fO=(t,e)=>{let i=t,n="",s,o=Pi.parse(t).root||".";if(Buffer.byteLength(i)<100)s=[i,n,!1];else{n=Pi.dirname(i),i=Pi.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=Pi.join(Pi.basename(n),i),n=Pi.dirname(n));while(n!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},Ur=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),bc=(t,e,r)=>pO(gr(t,e,r)),pO=t=>t===null?null:new Date(t*1e3),gr=(t,e,r)=>t[e]&128?Lg.parse(t.slice(e,e+r)):mO(t,e,r),dO=t=>isNaN(t)?null:t,mO=(t,e,r)=>dO(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),yO={12:8589934591,8:2097151},Er=(t,e,r,i)=>i===null?!1:i>yO[r]||i<0?(Lg.encode(i,t.slice(e,e+r)),!0):(gO(t,e,r,i),!1),gO=(t,e,r,i)=>t.write(EO(i,r),e,r,"ascii"),EO=(t,e)=>DO(Math.floor(t).toString(8),e),DO=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",wc=(t,e,r,i)=>i===null?!1:Er(t,e,r,i.getTime()/1e3),_O=new Array(156).join("\0"),Gr=(t,e,r,i)=>i===null?!1:(t.write(i+_O,e,r,"utf8"),i.length!==Buffer.byteLength(i)||i.length>r);Bg.exports=Sc});var po=H((bI,Pg)=>{"use strict";var bO=Ii(),wO=require("path"),Bn=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 bO({path:("PaxHeader/"+wO.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+`
|
7
|
+
`,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}};Bn.parse=(t,e,r)=>new Bn(SO(AO(t),e),r);var SO=(t,e)=>e?Object.keys(t).reduce((r,i)=>(r[i]=t[i],r),e):t,AO=t=>t.replace(/\n$/,"").split(`
|
8
|
+
`).reduce(vO,Object.create(null)),vO=(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};Pg.exports=Bn});var Ni=H((wI,Ig)=>{Ig.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 mo=H((SI,Ng)=>{"use strict";Ng.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 vc=H((vI,Mg)=>{"use strict";var yo=["|","<",">","?",":"],Ac=yo.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),CO=new Map(yo.map((t,e)=>[t,Ac[e]])),RO=new Map(Ac.map((t,e)=>[t,yo[e]]));Mg.exports={encode:t=>yo.reduce((e,r)=>e.split(r).join(CO.get(r)),t),decode:t=>Ac.reduce((e,r)=>e.split(r).join(RO.get(r)),t)}});var Cc=H((CI,Hg)=>{var{isAbsolute:xO,parse:jg}=require("path").win32;Hg.exports=t=>{let e="",r=jg(t);for(;xO(t)||r.root;){let i=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(i.length),e+=i,r=jg(t)}return[e,t]}});var $g=H((RI,qg)=>{"use strict";qg.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 Ic=H((OI,rE)=>{"use strict";var Vg=ro(),Zg=po(),Jg=Ii(),Rt=require("fs"),Ug=require("path"),Ct=Bi(),FO=Ni(),Xg=(t,e)=>e?(t=Ct(t).replace(/^\.(\/|$)/,""),FO(e)+"/"+t):Ct(t),OO=16*1024*1024,Gg=Symbol("process"),zg=Symbol("file"),Wg=Symbol("directory"),xc=Symbol("symlink"),Yg=Symbol("hardlink"),Pn=Symbol("header"),go=Symbol("read"),Fc=Symbol("lstat"),Eo=Symbol("onlstat"),Oc=Symbol("onread"),Tc=Symbol("onreadlink"),kc=Symbol("openfile"),Lc=Symbol("onopenfile"),Dr=Symbol("close"),Do=Symbol("mode"),Bc=Symbol("awaitDrain"),Rc=Symbol("ondrain"),xt=Symbol("prefix"),Kg=Symbol("hadError"),Qg=mo(),TO=vc(),eE=Cc(),tE=$g(),_o=Qg(class extends Vg{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=Ct(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||OO,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Ct(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?Ct(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]=eE(this.path);n&&(this.path=s,i=n)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=TO.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=Ct(r.absolute||Ug.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[Eo](this.statCache.get(this.absolute)):this[Fc]()}emit(e,...r){return e==="error"&&(this[Kg]=!0),super.emit(e,...r)}[Fc](){Rt.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Eo](r)})}[Eo](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=LO(e),this.emit("stat",e),this[Gg]()}[Gg](){switch(this.type){case"File":return this[zg]();case"Directory":return this[Wg]();case"SymbolicLink":return this[xc]();default:return this.end()}}[Do](e){return tE(e,this.type==="Directory",this.portable)}[xt](e){return Xg(e,this.prefix)}[Pn](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new Jg({path:this[xt](this.path),linkpath:this.type==="Link"?this[xt](this.linkpath):this.linkpath,mode:this[Do](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 Zg({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[xt](this.path),linkpath:this.type==="Link"?this[xt](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)}[Wg](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Pn](),this.end()}[xc](){Rt.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Tc](r)})}[Tc](e){this.linkpath=Ct(e),this[Pn](),this.end()}[Yg](e){this.type="Link",this.linkpath=Ct(Ug.relative(this.cwd,e)),this.stat.size=0,this[Pn](),this.end()}[zg](){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[Yg](r)}this.linkCache.set(e,this.absolute)}if(this[Pn](),this.stat.size===0)return this.end();this[kc]()}[kc](){Rt.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Lc](r)})}[Lc](e){if(this.fd=e,this[Kg])return this[Dr]();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[go]()}[go](){let{fd:e,buf:r,offset:i,length:n,pos:s}=this;Rt.read(e,r,i,n,s,(o,u)=>{if(o)return this[Dr](()=>this.emit("error",o));this[Oc](u)})}[Dr](e){Rt.close(this.fd,e)}[Oc](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[Dr](()=>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[Dr](()=>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[Rc]():this[Bc](()=>this[Rc]())}[Bc](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)}[Rc](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Dr](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[go]()}}),Pc=class extends _o{[Fc](){this[Eo](Rt.lstatSync(this.absolute))}[xc](){this[Tc](Rt.readlinkSync(this.absolute))}[kc](){this[Lc](Rt.openSync(this.absolute,"r"))}[go](){let e=!0;try{let{fd:r,buf:i,offset:n,length:s,pos:o}=this,u=Rt.readSync(r,i,n,s,o);this[Oc](u),e=!1}finally{if(e)try{this[Dr](()=>{})}catch{}}}[Bc](e){e()}[Dr](e){Rt.closeSync(this.fd),e()}},kO=Qg(class extends Vg{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=Ct(e.path),this.mode=this[Do](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=Ct(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let i=!1;if(!this.preservePaths){let[n,s]=eE(this.path);n&&(this.path=s,i=n)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new Jg({path:this[xt](this.path),linkpath:this.type==="Link"?this[xt](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 Zg({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[xt](this.path),linkpath:this.type==="Link"?this[xt](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)}[xt](e){return Xg(e,this.prefix)}[Do](e){return tE(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()}});_o.Sync=Pc;_o.Tar=kO;var LO=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";rE.exports=_o});var nE=H((TI,iE)=>{"use strict";iE.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Nc=H((kI,sE)=>{"use strict";sE.exports=oe;oe.Node=zr;oe.create=oe;function oe(t){var e=this;if(e instanceof oe||(e=new oe),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}oe.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};oe.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++}};oe.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++}};oe.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)PO(this,arguments[t]);return this.length};oe.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)IO(this,arguments[t]);return this.length};oe.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}};oe.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}};oe.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};oe.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};oe.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};oe.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};oe.prototype.map=function(t,e){e=e||this;for(var r=new oe,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};oe.prototype.mapReverse=function(t,e){e=e||this;for(var r=new oe,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};oe.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};oe.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};oe.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};oe.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};oe.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 oe;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};oe.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 oe;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};oe.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=BO(this,n,r[i]);return s};oe.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 BO(t,e,r){var i=e===t.head?new zr(r,null,e,t):new zr(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function PO(t,e){t.tail=new zr(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function IO(t,e){t.head=new zr(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function zr(t,e,r,i){if(!(this instanceof zr))return new zr(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{nE()(oe)}catch{}});var Fo=H((BI,fE)=>{"use strict";var Ro=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}},NO=ro(),MO=mc(),jO=ho(),Wc=Ic(),HO=Wc.Sync,qO=Wc.Tar,$O=Nc(),oE=Buffer.alloc(1024),So=Symbol("onStat"),bo=Symbol("ended"),Ft=Symbol("queue"),Mi=Symbol("current"),Wr=Symbol("process"),wo=Symbol("processing"),uE=Symbol("processJob"),Ot=Symbol("jobs"),Mc=Symbol("jobDone"),Ao=Symbol("addFSEntry"),aE=Symbol("addTarEntry"),$c=Symbol("stat"),Uc=Symbol("readdir"),vo=Symbol("onreaddir"),Co=Symbol("pipe"),lE=Symbol("entry"),jc=Symbol("entryOpt"),Gc=Symbol("writeEntryClass"),hE=Symbol("write"),Hc=Symbol("ondrain"),xo=require("fs"),cE=require("path"),UO=mo(),qc=Bi(),Yc=UO(class extends NO{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=qc(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[Gc]=Wc,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 MO.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[Hc]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[Hc]),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[Ft]=new $O,this[Ot]=0,this.jobs=+e.jobs||4,this[wo]=!1,this[bo]=!1}[hE](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[bo]=!0,this[Wr](),this}write(e){if(this[bo])throw new Error("write after end");return e instanceof jO?this[aE](e):this[Ao](e),this.flowing}[aE](e){let r=qc(cE.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let i=new Ro(e.path,r,!1);i.entry=new qO(e,this[jc](i)),i.entry.on("end",n=>this[Mc](i)),this[Ot]+=1,this[Ft].push(i)}this[Wr]()}[Ao](e){let r=qc(cE.resolve(this.cwd,e));this[Ft].push(new Ro(e,r)),this[Wr]()}[$c](e){e.pending=!0,this[Ot]+=1;let r=this.follow?"stat":"lstat";xo[r](e.absolute,(i,n)=>{e.pending=!1,this[Ot]-=1,i?this.emit("error",i):this[So](e,n)})}[So](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[Wr]()}[Uc](e){e.pending=!0,this[Ot]+=1,xo.readdir(e.absolute,(r,i)=>{if(e.pending=!1,this[Ot]-=1,r)return this.emit("error",r);this[vo](e,i)})}[vo](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[Wr]()}[Wr](){if(!this[wo]){this[wo]=!0;for(let e=this[Ft].head;e!==null&&this[Ot]<this.jobs;e=e.next)if(this[uE](e.value),e.value.ignore){let r=e.next;this[Ft].removeNode(e),e.next=r}this[wo]=!1,this[bo]&&!this[Ft].length&&this[Ot]===0&&(this.zip?this.zip.end(oE):(super.write(oE),super.end()))}}get[Mi](){return this[Ft]&&this[Ft].head&&this[Ft].head.value}[Mc](e){this[Ft].shift(),this[Ot]-=1,this[Wr]()}[uE](e){if(!e.pending){if(e.entry){e===this[Mi]&&!e.piped&&this[Co](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[So](e,this.statCache.get(e.absolute)):this[$c](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[vo](e,this.readdirCache.get(e.absolute)):this[Uc](e),!e.readdir))){if(e.entry=this[lE](e),!e.entry){e.ignore=!0;return}e===this[Mi]&&!e.piped&&this[Co](e)}}}[jc](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}}[lE](e){this[Ot]+=1;try{return new this[Gc](e.path,this[jc](e)).on("end",()=>this[Mc](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[Hc](){this[Mi]&&this[Mi].entry&&this[Mi].entry.resume()}[Co](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ao](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()}}),zc=class extends Yc{constructor(e){super(e),this[Gc]=HO}pause(){}resume(){}[$c](e){let r=this.follow?"statSync":"lstatSync";this[So](e,xo[r](e.absolute))}[Uc](e,r){this[vo](e,xo.readdirSync(e.absolute))}[Co](e){let r=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ao](o+n)}),i?r.on("data",n=>{i.write(n)}):r.on("data",n=>{super[hE](n)})}};Yc.Sync=zc;fE.exports=Yc});var Wi=H(Nn=>{"use strict";var GO=Ql(),zO=require("events").EventEmitter,We=require("fs"),Zc=We.writev;if(!Zc){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;Zc=(r,i,n,s)=>{let o=(a,l)=>s(a,l,i),u=new e;u.oncomplete=o,t.writeBuffers(r,i,n,u)}}var Gi=Symbol("_autoClose"),ft=Symbol("_close"),In=Symbol("_ended"),he=Symbol("_fd"),pE=Symbol("_finished"),br=Symbol("_flags"),Kc=Symbol("_flush"),Jc=Symbol("_handleChunk"),Xc=Symbol("_makeBuf"),Bo=Symbol("_mode"),Oo=Symbol("_needDrain"),$i=Symbol("_onerror"),zi=Symbol("_onopen"),Vc=Symbol("_onread"),Hi=Symbol("_onwrite"),wr=Symbol("_open"),Zt=Symbol("_path"),Yr=Symbol("_pos"),Tt=Symbol("_queue"),qi=Symbol("_read"),dE=Symbol("_readSize"),_r=Symbol("_reading"),To=Symbol("_remain"),mE=Symbol("_size"),ko=Symbol("_write"),ji=Symbol("_writing"),Lo=Symbol("_defaultFlag"),Ui=Symbol("_errored"),Po=class extends GO{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[Ui]=!1,this[he]=typeof r.fd=="number"?r.fd:null,this[Zt]=e,this[dE]=r.readSize||16*1024*1024,this[_r]=!1,this[mE]=typeof r.size=="number"?r.size:1/0,this[To]=this[mE],this[Gi]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[he]=="number"?this[qi]():this[wr]()}get fd(){return this[he]}get path(){return this[Zt]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[wr](){We.open(this[Zt],"r",(e,r)=>this[zi](e,r))}[zi](e,r){e?this[$i](e):(this[he]=r,this.emit("open",r),this[qi]())}[Xc](){return Buffer.allocUnsafe(Math.min(this[dE],this[To]))}[qi](){if(!this[_r]){this[_r]=!0;let e=this[Xc]();if(e.length===0)return process.nextTick(()=>this[Vc](null,0,e));We.read(this[he],e,0,e.length,null,(r,i,n)=>this[Vc](r,i,n))}}[Vc](e,r,i){this[_r]=!1,e?this[$i](e):this[Jc](r,i)&&this[qi]()}[ft](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,We.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[$i](e){this[_r]=!0,this[ft](),this.emit("error",e)}[Jc](e,r){let i=!1;return this[To]-=e,e>0&&(i=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[To]<=0)&&(i=!1,this[ft](),super.end()),i}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[he]=="number"&&this[qi]();break;case"error":return this[Ui]?void 0:(this[Ui]=!0,super.emit(e,r));default:return super.emit(e,r)}}},Qc=class extends Po{[wr](){let e=!0;try{this[zi](null,We.openSync(this[Zt],"r")),e=!1}finally{e&&this[ft]()}}[qi](){let e=!0;try{if(!this[_r]){this[_r]=!0;do{let r=this[Xc](),i=r.length===0?0:We.readSync(this[he],r,0,r.length,null);if(!this[Jc](i,r))break}while(!0);this[_r]=!1}e=!1}finally{e&&this[ft]()}}[ft](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,We.closeSync(e),this.emit("close")}}},Io=class extends zO{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[Ui]=!1,this[ji]=!1,this[In]=!1,this[Oo]=!1,this[Tt]=[],this[Zt]=e,this[he]=typeof r.fd=="number"?r.fd:null,this[Bo]=r.mode===void 0?438:r.mode,this[Yr]=typeof r.start=="number"?r.start:null,this[Gi]=typeof r.autoClose=="boolean"?r.autoClose:!0;let i=this[Yr]!==null?"r+":"w";this[Lo]=r.flags===void 0,this[br]=this[Lo]?i:r.flags,this[he]===null&&this[wr]()}emit(e,r){if(e==="error"){if(this[Ui])return;this[Ui]=!0}return super.emit(e,r)}get fd(){return this[he]}get path(){return this[Zt]}[$i](e){this[ft](),this[ji]=!0,this.emit("error",e)}[wr](){We.open(this[Zt],this[br],this[Bo],(e,r)=>this[zi](e,r))}[zi](e,r){this[Lo]&&this[br]==="r+"&&e&&e.code==="ENOENT"?(this[br]="w",this[wr]()):e?this[$i](e):(this[he]=r,this.emit("open",r),this[Kc]())}end(e,r){return e&&this.write(e,r),this[In]=!0,!this[ji]&&!this[Tt].length&&typeof this[he]=="number"&&this[Hi](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[In]?(this.emit("error",new Error("write() after end()")),!1):this[he]===null||this[ji]||this[Tt].length?(this[Tt].push(e),this[Oo]=!0,!1):(this[ji]=!0,this[ko](e),!0)}[ko](e){We.write(this[he],e,0,e.length,this[Yr],(r,i)=>this[Hi](r,i))}[Hi](e,r){e?this[$i](e):(this[Yr]!==null&&(this[Yr]+=r),this[Tt].length?this[Kc]():(this[ji]=!1,this[In]&&!this[pE]?(this[pE]=!0,this[ft](),this.emit("finish")):this[Oo]&&(this[Oo]=!1,this.emit("drain"))))}[Kc](){if(this[Tt].length===0)this[In]&&this[Hi](null,0);else if(this[Tt].length===1)this[ko](this[Tt].pop());else{let e=this[Tt];this[Tt]=[],Zc(this[he],e,this[Yr],(r,i)=>this[Hi](r,i))}}[ft](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,We.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},eh=class extends Io{[wr](){let e;if(this[Lo]&&this[br]==="r+")try{e=We.openSync(this[Zt],this[br],this[Bo])}catch(r){if(r.code==="ENOENT")return this[br]="w",this[wr]();throw r}else e=We.openSync(this[Zt],this[br],this[Bo]);this[zi](null,e)}[ft](){if(this[Gi]&&typeof this[he]=="number"){let e=this[he];this[he]=null,We.closeSync(e),this.emit("close")}}[ko](e){let r=!0;try{this[Hi](null,We.writeSync(this[he],e,0,e.length,this[Yr])),r=!1}finally{if(r)try{this[ft]()}catch{}}}};Nn.ReadStream=Po;Nn.ReadStreamSync=Qc;Nn.WriteStream=Io;Nn.WriteStreamSync=eh});var Uo=H((NI,SE)=>{"use strict";var WO=mo(),YO=Ii(),KO=require("events"),VO=Nc(),ZO=1024*1024,JO=ho(),yE=po(),XO=mc(),{nextTick:QO}=require("process"),th=Buffer.from([31,139]),nt=Symbol("state"),Kr=Symbol("writeEntry"),Jt=Symbol("readEntry"),rh=Symbol("nextEntry"),gE=Symbol("processEntry"),st=Symbol("extendedHeader"),Mn=Symbol("globalExtendedHeader"),Sr=Symbol("meta"),EE=Symbol("emitMeta"),de=Symbol("buffer"),Xt=Symbol("queue"),Vr=Symbol("ended"),DE=Symbol("emittedEnd"),Zr=Symbol("emit"),Ye=Symbol("unzip"),No=Symbol("consumeChunk"),Mo=Symbol("consumeChunkSub"),ih=Symbol("consumeBody"),_E=Symbol("consumeMeta"),bE=Symbol("consumeHeader"),jo=Symbol("consuming"),nh=Symbol("bufferConcat"),sh=Symbol("maybeEnd"),jn=Symbol("writing"),Ar=Symbol("aborted"),Ho=Symbol("onDone"),Jr=Symbol("sawValidEntry"),qo=Symbol("sawNullBlock"),$o=Symbol("sawEOF"),wE=Symbol("closeStream"),eT=t=>!0;SE.exports=WO(class extends KO{constructor(e){e=e||{},super(e),this.file=e.file||"",this[Jr]=null,this.on(Ho,r=>{(this[nt]==="begin"||this[Jr]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Ho,e.ondone):this.on(Ho,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||ZO,this.filter=typeof e.filter=="function"?e.filter:eT,this.writable=!0,this.readable=!1,this[Xt]=new VO,this[de]=null,this[Jt]=null,this[Kr]=null,this[nt]="begin",this[Sr]="",this[st]=null,this[Mn]=null,this[Vr]=!1,this[Ye]=null,this[Ar]=!1,this[qo]=!1,this[$o]=!1,this.on("end",()=>this[wE]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[bE](e,r){this[Jr]===null&&(this[Jr]=!1);let i;try{i=new YO(e,r,this[st],this[Mn])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[qo]?(this[$o]=!0,this[nt]==="begin"&&(this[nt]="header"),this[Zr]("eof")):(this[qo]=!0,this[Zr]("nullBlock"));else if(this[qo]=!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[Kr]=new JO(i,this[st],this[Mn]);if(!this[Jr])if(s.remain){let o=()=>{s.invalid||(this[Jr]=!0)};s.on("end",o)}else this[Jr]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[Zr]("ignoredEntry",s),this[nt]="ignore",s.resume()):s.size>0&&(this[Sr]="",s.on("data",o=>this[Sr]+=o),this[nt]="meta"):(this[st]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[Zr]("ignoredEntry",s),this[nt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[nt]="body":(this[nt]="header",s.end()),this[Jt]?this[Xt].push(s):(this[Xt].push(s),this[rh]())))}}}[wE](){QO(()=>this.emit("close"))}[gE](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[Jt]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[rh]()),r=!1)):(this[Jt]=null,r=!1),r}[rh](){do;while(this[gE](this[Xt].shift()));if(!this[Xt].length){let e=this[Jt];!e||e.flowing||e.size===e.remain?this[jn]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[ih](e,r){let i=this[Kr],n=i.blockRemain,s=n>=e.length&&r===0?e:e.slice(r,r+n);return i.write(s),i.blockRemain||(this[nt]="header",this[Kr]=null,i.end()),s.length}[_E](e,r){let i=this[Kr],n=this[ih](e,r);return this[Kr]||this[EE](i),n}[Zr](e,r,i){!this[Xt].length&&!this[Jt]?this.emit(e,r,i):this[Xt].push([e,r,i])}[EE](e){switch(this[Zr]("meta",this[Sr]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[st]=yE.parse(this[Sr],this[st],!1);break;case"GlobalExtendedHeader":this[Mn]=yE.parse(this[Sr],this[Mn],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[st]=this[st]||Object.create(null),this[st].path=this[Sr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[st]=this[st]||Object.create(null),this[st].linkpath=this[Sr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Ar]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Ar])return;if(this[Ye]===null&&e){if(this[de]&&(e=Buffer.concat([this[de],e]),this[de]=null),e.length<th.length)return this[de]=e,!0;for(let i=0;this[Ye]===null&&i<th.length;i++)e[i]!==th[i]&&(this[Ye]=!1);if(this[Ye]===null){let i=this[Vr];this[Vr]=!1,this[Ye]=new XO.Unzip,this[Ye].on("data",s=>this[No](s)),this[Ye].on("error",s=>this.abort(s)),this[Ye].on("end",s=>{this[Vr]=!0,this[No]()}),this[jn]=!0;let n=this[Ye][i?"end":"write"](e);return this[jn]=!1,n}}this[jn]=!0,this[Ye]?this[Ye].write(e):this[No](e),this[jn]=!1;let r=this[Xt].length?!1:this[Jt]?this[Jt].flowing:!0;return!r&&!this[Xt].length&&this[Jt].once("drain",i=>this.emit("drain")),r}[nh](e){e&&!this[Ar]&&(this[de]=this[de]?Buffer.concat([this[de],e]):e)}[sh](){if(this[Vr]&&!this[DE]&&!this[Ar]&&!this[jo]){this[DE]=!0;let e=this[Kr];if(e&&e.blockRemain){let r=this[de]?this[de].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[de]&&e.write(this[de]),e.end()}this[Zr](Ho)}}[No](e){if(this[jo])this[nh](e);else if(!e&&!this[de])this[sh]();else{if(this[jo]=!0,this[de]){this[nh](e);let r=this[de];this[de]=null,this[Mo](r)}else this[Mo](e);for(;this[de]&&this[de].length>=512&&!this[Ar]&&!this[$o];){let r=this[de];this[de]=null,this[Mo](r)}this[jo]=!1}(!this[de]||this[Vr])&&this[sh]()}[Mo](e){let r=0,i=e.length;for(;r+512<=i&&!this[Ar]&&!this[$o];)switch(this[nt]){case"begin":case"header":this[bE](e,r),r+=512;break;case"ignore":case"body":r+=this[ih](e,r);break;case"meta":r+=this[_E](e,r);break;default:throw new Error("invalid state: "+this[nt])}r<i&&(this[de]?this[de]=Buffer.concat([e.slice(r),this[de]]):this[de]=e.slice(r))}end(e){this[Ar]||(this[Ye]?this[Ye].end(e):(this[Vr]=!0,this.write(e)))}})});var Go=H((MI,RE)=>{"use strict";var tT=Fi(),vE=Uo(),Yi=require("fs"),rT=Wi(),AE=require("path"),oh=Ni();RE.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=tT(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&&nT(i,e),i.noResume||iT(i),i.file&&i.sync?sT(i):i.file?oT(i,r):CE(i)};var iT=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},nT=(t,e)=>{let r=new Map(e.map(s=>[oh(s),!0])),i=t.filter,n=(s,o)=>{let u=o||AE.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):n(AE.dirname(s),u);return r.set(s,a),a};t.filter=i?(s,o)=>i(s,o)&&n(oh(s)):s=>n(oh(s))},sT=t=>{let e=CE(t),r=t.file,i=!0,n;try{let s=Yi.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(Yi.readFileSync(r));else{let u=0,a=Buffer.allocUnsafe(o);for(n=Yi.openSync(r,"r");u<s.size;){let l=Yi.readSync(n,a,0,o,u);u+=l,e.write(a.slice(0,l))}e.end()}i=!1}finally{if(i&&n)try{Yi.closeSync(n)}catch{}}},oT=(t,e)=>{let r=new vE(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,u)=>{r.on("error",u),r.on("end",o),Yi.stat(n,(a,l)=>{if(a)u(a);else{let c=new rT.ReadStream(n,{readSize:i,size:l.size});c.on("error",u),c.pipe(r)}})});return e?s.then(e,e):s},CE=t=>new vE(t)});var LE=H((jI,kE)=>{"use strict";var uT=Fi(),zo=Fo(),xE=Wi(),FE=Go(),OE=require("path");kE.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=uT(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?aT(i,e):i.file?lT(i,e,r):i.sync?cT(i,e):hT(i,e)};var aT=(t,e)=>{let r=new zo.Sync(t),i=new xE.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(i),TE(r,e)},lT=(t,e,r)=>{let i=new zo(t),n=new xE.WriteStream(t.file,{mode:t.mode||438});i.pipe(n);let s=new Promise((o,u)=>{n.on("error",u),n.on("close",o),i.on("error",u)});return uh(i,e),r?s.then(r,r):s},TE=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?FE({file:OE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},uh=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return FE({file:OE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>uh(t,e));t.add(r)}t.end()},cT=(t,e)=>{let r=new zo.Sync(t);return TE(r,e),r},hT=(t,e)=>{let r=new zo(t);return uh(r,e),r}});var ah=H((HI,HE)=>{"use strict";var fT=Fi(),BE=Fo(),Qe=require("fs"),PE=Wi(),IE=Go(),NE=require("path"),ME=Ii();HE.exports=(t,e,r)=>{let i=fT(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?pT(i,e):mT(i,e,r)};var pT=(t,e)=>{let r=new BE.Sync(t),i=!0,n,s;try{try{n=Qe.openSync(t.file,"r+")}catch(a){if(a.code==="ENOENT")n=Qe.openSync(t.file,"w+");else throw a}let o=Qe.fstatSync(n),u=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let c=0,h=0;c<512;c+=h){if(h=Qe.readSync(n,u,c,u.length-c,s+c),s===0&&u[0]===31&&u[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let a=new ME(u);if(!a.cksumValid)break;let l=512*Math.ceil(a.size/512);if(s+l+512>o.size)break;s+=l,t.mtimeCache&&t.mtimeCache.set(a.path,a.mtime)}i=!1,dT(t,r,s,n,e)}finally{if(i)try{Qe.closeSync(n)}catch{}}},dT=(t,e,r,i,n)=>{let s=new PE.WriteStreamSync(t.file,{fd:i,start:r});e.pipe(s),yT(e,n)},mT=(t,e,r)=>{e=Array.from(e);let i=new BE(t),n=(o,u,a)=>{let l=(g,y)=>{g?Qe.close(o,E=>a(g)):a(null,y)},c=0;if(u===0)return l(null,0);let h=0,f=Buffer.alloc(512),d=(g,y)=>{if(g)return l(g);if(h+=y,h<512&&y)return Qe.read(o,f,h,f.length-h,c+h,d);if(c===0&&f[0]===31&&f[1]===139)return l(new Error("cannot append to compressed archives"));if(h<512)return l(null,c);let E=new ME(f);if(!E.cksumValid)return l(null,c);let v=512*Math.ceil(E.size/512);if(c+v+512>u||(c+=v+512,c>=u))return l(null,c);t.mtimeCache&&t.mtimeCache.set(E.path,E.mtime),h=0,Qe.read(o,f,0,512,c,d)};Qe.read(o,f,0,512,c,d)},s=new Promise((o,u)=>{i.on("error",u);let a="r+",l=(c,h)=>{if(c&&c.code==="ENOENT"&&a==="r+")return a="w+",Qe.open(t.file,a,l);if(c)return u(c);Qe.fstat(h,(f,d)=>{if(f)return Qe.close(h,()=>u(f));n(h,d.size,(g,y)=>{if(g)return u(g);let E=new PE.WriteStream(t.file,{fd:h,start:y});i.pipe(E),E.on("error",u),E.on("close",o),jE(i,e)})})};Qe.open(t.file,a,l)});return r?s.then(r,r):s},yT=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?IE({file:NE.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:i=>t.add(i)}):t.add(r)}),t.end()},jE=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return IE({file:NE.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:i=>t.add(i)}).then(i=>jE(t,e));t.add(r)}t.end()}});var $E=H((qI,qE)=>{"use strict";var gT=Fi(),ET=ah();qE.exports=(t,e,r)=>{let i=gT(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),DT(i),ET(i,e,r)};var DT=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 zE=H(($I,GE)=>{var{promisify:UE}=require("util"),vr=require("fs"),_T=t=>{if(!t)t={mode:511,fs:vr};else if(typeof t=="object")t={mode:511,fs:vr,...t};else if(typeof t=="number")t={mode:t,fs:vr};else if(typeof t=="string")t={mode:parseInt(t,8),fs:vr};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||vr.mkdir,t.mkdirAsync=UE(t.mkdir),t.stat=t.stat||t.fs.stat||vr.stat,t.statAsync=UE(t.stat),t.statSync=t.statSync||t.fs.statSync||vr.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||vr.mkdirSync,t};GE.exports=_T});var YE=H((UI,WE)=>{var bT=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:wT,parse:ST}=require("path"),AT=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=wT(t),bT==="win32"){let e=/[*|"<>?:]/,{root:r}=ST(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};WE.exports=AT});var XE=H((GI,JE)=>{var{dirname:KE}=require("path"),VE=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(i=>i.isDirectory()?r:void 0,i=>i.code==="ENOENT"?VE(t,KE(e),e):void 0),ZE=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(i){return i.code==="ENOENT"?ZE(t,KE(e),e):void 0}};JE.exports={findMade:VE,findMadeSync:ZE}});var hh=H((zI,eD)=>{var{dirname:QE}=require("path"),lh=(t,e,r)=>{e.recursive=!1;let i=QE(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 lh(i,e).then(s=>lh(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})})},ch=(t,e,r)=>{let i=QE(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 ch(t,e,ch(i,e,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(t).isDirectory())throw n}catch{throw n}}};eD.exports={mkdirpManual:lh,mkdirpManualSync:ch}});var iD=H((WI,rD)=>{var{dirname:tD}=require("path"),{findMade:vT,findMadeSync:CT}=XE(),{mkdirpManual:RT,mkdirpManualSync:xT}=hh(),FT=(t,e)=>(e.recursive=!0,tD(t)===t?e.mkdirAsync(t,e):vT(e,t).then(i=>e.mkdirAsync(t,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return RT(t,e);throw n}))),OT=(t,e)=>{if(e.recursive=!0,tD(t)===t)return e.mkdirSync(t,e);let i=CT(e,t);try{return e.mkdirSync(t,e),i}catch(n){if(n.code==="ENOENT")return xT(t,e);throw n}};rD.exports={mkdirpNative:FT,mkdirpNativeSync:OT}});var uD=H((YI,oD)=>{var nD=require("fs"),TT=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,fh=TT.replace(/^v/,"").split("."),sD=+fh[0]>10||+fh[0]==10&&+fh[1]>=12,kT=sD?t=>t.mkdir===nD.mkdir:()=>!1,LT=sD?t=>t.mkdirSync===nD.mkdirSync:()=>!1;oD.exports={useNative:kT,useNativeSync:LT}});var pD=H((KI,fD)=>{var Ki=zE(),Vi=YE(),{mkdirpNative:aD,mkdirpNativeSync:lD}=iD(),{mkdirpManual:cD,mkdirpManualSync:hD}=hh(),{useNative:BT,useNativeSync:PT}=uD(),Zi=(t,e)=>(t=Vi(t),e=Ki(e),BT(e)?aD(t,e):cD(t,e)),IT=(t,e)=>(t=Vi(t),e=Ki(e),PT(e)?lD(t,e):hD(t,e));Zi.sync=IT;Zi.native=(t,e)=>aD(Vi(t),Ki(e));Zi.manual=(t,e)=>cD(Vi(t),Ki(e));Zi.nativeSync=(t,e)=>lD(Vi(t),Ki(e));Zi.manualSync=(t,e)=>hD(Vi(t),Ki(e));fD.exports=Zi});var _D=H((VI,DD)=>{"use strict";var ot=require("fs"),Xr=require("path"),NT=ot.lchown?"lchown":"chown",MT=ot.lchownSync?"lchownSync":"chownSync",mD=ot.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),dD=(t,e,r)=>{try{return ot[MT](t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},jT=(t,e,r)=>{try{return ot.chownSync(t,e,r)}catch(i){if(i.code!=="ENOENT")throw i}},HT=mD?(t,e,r,i)=>n=>{!n||n.code!=="EISDIR"?i(n):ot.chown(t,e,r,i)}:(t,e,r,i)=>i,ph=mD?(t,e,r)=>{try{return dD(t,e,r)}catch(i){if(i.code!=="EISDIR")throw i;jT(t,e,r)}}:(t,e,r)=>dD(t,e,r),qT=process.version,yD=(t,e,r)=>ot.readdir(t,e,r),$T=(t,e)=>ot.readdirSync(t,e);/^v4\./.test(qT)&&(yD=(t,e,r)=>ot.readdir(t,r));var Wo=(t,e,r,i)=>{ot[NT](t,e,r,HT(t,e,r,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},gD=(t,e,r,i,n)=>{if(typeof e=="string")return ot.lstat(Xr.resolve(t,e),(s,o)=>{if(s)return n(s.code!=="ENOENT"?s:null);o.name=e,gD(t,o,r,i,n)});if(e.isDirectory())dh(Xr.resolve(t,e.name),r,i,s=>{if(s)return n(s);let o=Xr.resolve(t,e.name);Wo(o,r,i,n)});else{let s=Xr.resolve(t,e.name);Wo(s,r,i,n)}},dh=(t,e,r,i)=>{yD(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 Wo(t,e,r,i);let o=s.length,u=null,a=l=>{if(!u){if(l)return i(u=l);if(--o===0)return Wo(t,e,r,i)}};s.forEach(l=>gD(t,l,e,r,a))})},UT=(t,e,r,i)=>{if(typeof e=="string")try{let n=ot.lstatSync(Xr.resolve(t,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&ED(Xr.resolve(t,e.name),r,i),ph(Xr.resolve(t,e.name),r,i)},ED=(t,e,r)=>{let i;try{i=$T(t,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return ph(t,e,r);throw n}return i&&i.length&&i.forEach(n=>UT(t,n,e,r)),ph(t,e,r)};DD.exports=dh;dh.sync=ED});var AD=H((ZI,mh)=>{"use strict";var bD=pD(),ut=require("fs"),Yo=require("path"),wD=_D(),pt=Bi(),Ko=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},Vo=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},Zo=(t,e)=>t.get(pt(e)),Hn=(t,e,r)=>t.set(pt(e),r),GT=(t,e)=>{ut.stat(t,(r,i)=>{(r||!i.isDirectory())&&(r=new Vo(t,r&&r.code||"ENOTDIR")),e(r)})};mh.exports=(t,e,r)=>{t=pt(t);let i=e.umask,n=e.mode|448,s=(n&i)!==0,o=e.uid,u=e.gid,a=typeof o=="number"&&typeof u=="number"&&(o!==e.processUid||u!==e.processGid),l=e.preserve,c=e.unlink,h=e.cache,f=pt(e.cwd),d=(E,v)=>{E?r(E):(Hn(h,t,!0),v&&a?wD(v,o,u,F=>d(F)):s?ut.chmod(t,n,r):r())};if(h&&Zo(h,t)===!0)return d();if(t===f)return GT(t,d);if(l)return bD(t,{mode:n}).then(E=>d(null,E),d);let y=pt(Yo.relative(f,t)).split("/");Jo(f,y,n,h,c,f,null,d)};var Jo=(t,e,r,i,n,s,o,u)=>{if(!e.length)return u(null,o);let a=e.shift(),l=pt(Yo.resolve(t+"/"+a));if(Zo(i,l))return Jo(l,e,r,i,n,s,o,u);ut.mkdir(l,r,SD(l,e,r,i,n,s,o,u))},SD=(t,e,r,i,n,s,o,u)=>a=>{a?ut.lstat(t,(l,c)=>{if(l)l.path=l.path&&pt(l.path),u(l);else if(c.isDirectory())Jo(t,e,r,i,n,s,o,u);else if(n)ut.unlink(t,h=>{if(h)return u(h);ut.mkdir(t,r,SD(t,e,r,i,n,s,o,u))});else{if(c.isSymbolicLink())return u(new Ko(t,t+"/"+e.join("/")));u(a)}}):(o=o||t,Jo(t,e,r,i,n,s,o,u))},zT=t=>{let e=!1,r="ENOTDIR";try{e=ut.statSync(t).isDirectory()}catch(i){r=i.code}finally{if(!e)throw new Vo(t,r)}};mh.exports.sync=(t,e)=>{t=pt(t);let r=e.umask,i=e.mode|448,n=(i&r)!==0,s=e.uid,o=e.gid,u=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),a=e.preserve,l=e.unlink,c=e.cache,h=pt(e.cwd),f=E=>{Hn(c,t,!0),E&&u&&wD.sync(E,s,o),n&&ut.chmodSync(t,i)};if(c&&Zo(c,t)===!0)return f();if(t===h)return zT(h),f();if(a)return f(bD.sync(t,i));let g=pt(Yo.relative(h,t)).split("/"),y=null;for(let E=g.shift(),v=h;E&&(v+="/"+E);E=g.shift())if(v=pt(Yo.resolve(v)),!Zo(c,v))try{ut.mkdirSync(v,i),y=y||v,Hn(c,v,!0)}catch{let O=ut.lstatSync(v);if(O.isDirectory()){Hn(c,v,!0);continue}else if(l){ut.unlinkSync(v),ut.mkdirSync(v,i),y=y||v,Hn(c,v,!0);continue}else if(O.isSymbolicLink())return new Ko(v,v+"/"+g.join("/"))}return f(y)}});var gh=H((JI,vD)=>{var yh=Object.create(null),{hasOwnProperty:WT}=Object.prototype;vD.exports=t=>(WT.call(yh,t)||(yh[t]=t.normalize("NFKD")),yh[t])});var FD=H((XI,xD)=>{var CD=require("assert"),YT=gh(),KT=Ni(),{join:RD}=require("path"),VT=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,ZT=VT==="win32";xD.exports=()=>{let t=new Map,e=new Map,r=l=>l.split("/").slice(0,-1).reduce((h,f)=>(h.length&&(f=RD(h[h.length-1],f)),h.push(f||"/"),h),[]),i=new Set,n=l=>{let c=e.get(l);if(!c)throw new Error("function does not have any path reservations");return{paths:c.paths.map(h=>t.get(h)),dirs:[...c.dirs].map(h=>t.get(h))}},s=l=>{let{paths:c,dirs:h}=n(l);return c.every(f=>f[0]===l)&&h.every(f=>f[0]instanceof Set&&f[0].has(l))},o=l=>i.has(l)||!s(l)?!1:(i.add(l),l(()=>u(l)),!0),u=l=>{if(!i.has(l))return!1;let{paths:c,dirs:h}=e.get(l),f=new Set;return c.forEach(d=>{let g=t.get(d);CD.equal(g[0],l),g.length===1?t.delete(d):(g.shift(),typeof g[0]=="function"?f.add(g[0]):g[0].forEach(y=>f.add(y)))}),h.forEach(d=>{let g=t.get(d);CD(g[0]instanceof Set),g[0].size===1&&g.length===1?t.delete(d):g[0].size===1?(g.shift(),f.add(g[0])):g[0].delete(l)}),i.delete(l),f.forEach(d=>o(d)),!0};return{check:s,reserve:(l,c)=>{l=ZT?["win32 parallelization disabled"]:l.map(f=>YT(KT(RD(f))).toLowerCase());let h=new Set(l.map(f=>r(f)).reduce((f,d)=>f.concat(d)));return e.set(c,{dirs:h,paths:l}),l.forEach(f=>{let d=t.get(f);d?d.push(c):t.set(f,[c])}),h.forEach(f=>{let d=t.get(f);d?d[d.length-1]instanceof Set?d[d.length-1].add(c):d.push(new Set([c])):t.set(f,[new Set([c])])}),o(c)}}}});var kD=H((QI,TD)=>{var JT=process.env.__FAKE_PLATFORM__||process.platform,XT=JT==="win32",QT=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:ek,O_TRUNC:tk,O_WRONLY:rk,UV_FS_O_FILEMAP:OD=0}=QT.constants,ik=XT&&!!OD,nk=512*1024,sk=OD|tk|ek|rk;TD.exports=ik?t=>t<nk?sk:"w":()=>"w"});var Ch=H((eN,WD)=>{"use strict";var ok=require("assert"),uk=Uo(),ue=require("fs"),ak=Wi(),Qt=require("path"),UD=AD(),LD=vc(),lk=FD(),ck=Cc(),et=Bi(),hk=Ni(),fk=gh(),BD=Symbol("onEntry"),_h=Symbol("checkFs"),PD=Symbol("checkFs2"),eu=Symbol("pruneCache"),bh=Symbol("isReusable"),at=Symbol("makeFs"),wh=Symbol("file"),Sh=Symbol("directory"),tu=Symbol("link"),ID=Symbol("symlink"),ND=Symbol("hardlink"),MD=Symbol("unsupported"),jD=Symbol("checkPath"),Cr=Symbol("mkdir"),Me=Symbol("onError"),Xo=Symbol("pending"),HD=Symbol("pend"),Ji=Symbol("unpend"),Eh=Symbol("ended"),Dh=Symbol("maybeClose"),Ah=Symbol("skip"),qn=Symbol("doChown"),$n=Symbol("uid"),Un=Symbol("gid"),Gn=Symbol("checkedCwd"),GD=require("crypto"),zD=kD(),pk=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,zn=pk==="win32",dk=(t,e)=>{if(!zn)return ue.unlink(t,e);let r=t+".DELETE."+GD.randomBytes(16).toString("hex");ue.rename(t,r,i=>{if(i)return e(i);ue.unlink(r,e)})},mk=t=>{if(!zn)return ue.unlinkSync(t);let e=t+".DELETE."+GD.randomBytes(16).toString("hex");ue.renameSync(t,e),ue.unlinkSync(e)},qD=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,$D=t=>fk(hk(et(t))).toLowerCase(),yk=(t,e)=>{e=$D(e);for(let r of t.keys()){let i=$D(r);(i===e||i.indexOf(e+"/")===0)&&t.delete(r)}},gk=t=>{for(let e of t.keys())t.delete(e)},Wn=class extends uk{constructor(e){if(e||(e={}),e.ondone=r=>{this[Eh]=!0,this[Dh]()},super(e),this[Gn]=!1,this.reservations=lk(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[Xo]=0,this[Eh]=!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||zn,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=et(Qt.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[BD](r))}warn(e,r,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,r,i)}[Dh](){this[Eh]&&this[Xo]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[jD](e){if(this.strip){let r=et(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let i=et(e.linkpath).split("/");if(i.length>=this.strip)e.linkpath=i.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=et(e.path),i=r.split("/");if(i.includes("..")||zn&&/^[a-z]:\.\.$/i.test(i[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[n,s]=ck(r);n&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:r}))}if(Qt.isAbsolute(e.path)?e.absolute=et(Qt.resolve(e.path)):e.absolute=et(Qt.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:et(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}=Qt.win32.parse(e.absolute);e.absolute=r+LD.encode(e.absolute.slice(r.length));let{root:i}=Qt.win32.parse(e.path);e.path=i+LD.encode(e.path.slice(i.length))}return!0}[BD](e){if(!this[jD](e))return e.resume();switch(ok.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[_h](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[MD](e)}}[Me](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[Ji](),r.resume())}[Cr](e,r,i){UD(et(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)}[qn](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}[$n](e){return qD(this.uid,e.uid,this.processUid)}[Un](e){return qD(this.gid,e.gid,this.processGid)}[wh](e,r){let i=e.mode&4095||this.fmode,n=new ak.WriteStream(e.absolute,{flags:zD(e.size),mode:i,autoClose:!1});n.on("error",a=>{n.fd&&ue.close(n.fd,()=>{}),n.write=()=>!0,this[Me](a,e),r()});let s=1,o=a=>{if(a){n.fd&&ue.close(n.fd,()=>{}),this[Me](a,e),r();return}--s===0&&ue.close(n.fd,l=>{l?this[Me](l,e):this[Ji](),r()})};n.on("finish",a=>{let l=e.absolute,c=n.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,f=e.mtime;ue.futimes(c,h,f,d=>d?ue.utimes(l,h,f,g=>o(g&&d)):o())}if(this[qn](e)){s++;let h=this[$n](e),f=this[Un](e);ue.fchown(c,h,f,d=>d?ue.chown(l,h,f,g=>o(g&&d)):o())}o()});let u=this.transform&&this.transform(e)||e;u!==e&&(u.on("error",a=>{this[Me](a,e),r()}),e.pipe(u)),u.pipe(n)}[Sh](e,r){let i=e.mode&4095||this.dmode;this[Cr](e.absolute,i,n=>{if(n){this[Me](n,e),r();return}let s=1,o=u=>{--s===0&&(r(),this[Ji](),e.resume())};e.mtime&&!this.noMtime&&(s++,ue.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[qn](e)&&(s++,ue.chown(e.absolute,this[$n](e),this[Un](e),o)),o()})}[MD](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[ID](e,r){this[tu](e,e.linkpath,"symlink",r)}[ND](e,r){let i=et(Qt.resolve(this.cwd,e.linkpath));this[tu](e,i,"link",r)}[HD](){this[Xo]++}[Ji](){this[Xo]--,this[Dh]()}[Ah](e){this[Ji](),e.resume()}[bh](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!zn}[_h](e){this[HD]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,i=>this[PD](e,i))}[eu](e){e.type==="SymbolicLink"?gk(this.dirCache):e.type!=="Directory"&&yk(this.dirCache,e.absolute)}[PD](e,r){this[eu](e);let i=u=>{this[eu](e),r(u)},n=()=>{this[Cr](this.cwd,this.dmode,u=>{if(u){this[Me](u,e),i();return}this[Gn]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let u=et(Qt.dirname(e.absolute));if(u!==this.cwd)return this[Cr](u,this.dmode,a=>{if(a){this[Me](a,e),i();return}o()})}o()},o=()=>{ue.lstat(e.absolute,(u,a)=>{if(a&&(this.keep||this.newer&&a.mtime>e.mtime)){this[Ah](e),i();return}if(u||this[bh](e,a))return this[at](null,e,i);if(a.isDirectory()){if(e.type==="Directory"){let l=!this.noChmod&&e.mode&&(a.mode&4095)!==e.mode,c=h=>this[at](h,e,i);return l?ue.chmod(e.absolute,e.mode,c):c()}if(e.absolute!==this.cwd)return ue.rmdir(e.absolute,l=>this[at](l,e,i))}if(e.absolute===this.cwd)return this[at](null,e,i);dk(e.absolute,l=>this[at](l,e,i))})};this[Gn]?s():n()}[at](e,r,i){if(e){this[Me](e,r),i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[wh](r,i);case"Link":return this[ND](r,i);case"SymbolicLink":return this[ID](r,i);case"Directory":case"GNUDumpDir":return this[Sh](r,i)}}[tu](e,r,i,n){ue[i](r,e.absolute,s=>{s?this[Me](s,e):(this[Ji](),e.resume()),n()})}},Qo=t=>{try{return[null,t()]}catch(e){return[e,null]}},vh=class extends Wn{[at](e,r){return super[at](e,r,()=>{})}[_h](e){if(this[eu](e),!this[Gn]){let s=this[Cr](this.cwd,this.dmode);if(s)return this[Me](s,e);this[Gn]=!0}if(e.absolute!==this.cwd){let s=et(Qt.dirname(e.absolute));if(s!==this.cwd){let o=this[Cr](s,this.dmode);if(o)return this[Me](o,e)}}let[r,i]=Qo(()=>ue.lstatSync(e.absolute));if(i&&(this.keep||this.newer&&i.mtime>e.mtime))return this[Ah](e);if(r||this[bh](e,i))return this[at](null,e);if(i.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(i.mode&4095)!==e.mode,[u]=o?Qo(()=>{ue.chmodSync(e.absolute,e.mode)}):[];return this[at](u,e)}let[s]=Qo(()=>ue.rmdirSync(e.absolute));this[at](s,e)}let[n]=e.absolute===this.cwd?[]:Qo(()=>mk(e.absolute));this[at](n,e)}[wh](e,r){let i=e.mode&4095||this.fmode,n=u=>{let a;try{ue.closeSync(s)}catch(l){a=l}(u||a)&&this[Me](u||a,e),r()},s;try{s=ue.openSync(e.absolute,zD(e.size),i)}catch(u){return n(u)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",u=>this[Me](u,e)),e.pipe(o)),o.on("data",u=>{try{ue.writeSync(s,u,0,u.length)}catch(a){n(a)}}),o.on("end",u=>{let a=null;if(e.mtime&&!this.noMtime){let l=e.atime||new Date,c=e.mtime;try{ue.futimesSync(s,l,c)}catch(h){try{ue.utimesSync(e.absolute,l,c)}catch{a=h}}}if(this[qn](e)){let l=this[$n](e),c=this[Un](e);try{ue.fchownSync(s,l,c)}catch(h){try{ue.chownSync(e.absolute,l,c)}catch{a=a||h}}}n(a)})}[Sh](e,r){let i=e.mode&4095||this.dmode,n=this[Cr](e.absolute,i);if(n){this[Me](n,e),r();return}if(e.mtime&&!this.noMtime)try{ue.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[qn](e))try{ue.chownSync(e.absolute,this[$n](e),this[Un](e))}catch{}r(),e.resume()}[Cr](e,r){try{return UD.sync(et(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}}[tu](e,r,i,n){try{ue[i+"Sync"](r,e.absolute),n(),e.resume()}catch(s){return this[Me](s,e)}}};Wn.Sync=vh;WD.exports=Wn});var JD=H((tN,ZD)=>{"use strict";var Ek=Fi(),ru=Ch(),KD=require("fs"),VD=Wi(),YD=require("path"),Rh=Ni();ZD.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=Ek(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&&Dk(i,e),i.file&&i.sync?_k(i):i.file?bk(i,r):i.sync?wk(i):Sk(i)};var Dk=(t,e)=>{let r=new Map(e.map(s=>[Rh(s),!0])),i=t.filter,n=(s,o)=>{let u=o||YD.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):n(YD.dirname(s),u);return r.set(s,a),a};t.filter=i?(s,o)=>i(s,o)&&n(Rh(s)):s=>n(Rh(s))},_k=t=>{let e=new ru.Sync(t),r=t.file,i=KD.statSync(r),n=t.maxReadSize||16*1024*1024;new VD.ReadStreamSync(r,{readSize:n,size:i.size}).pipe(e)},bk=(t,e)=>{let r=new ru(t),i=t.maxReadSize||16*1024*1024,n=t.file,s=new Promise((o,u)=>{r.on("error",u),r.on("close",o),KD.stat(n,(a,l)=>{if(a)u(a);else{let c=new VD.ReadStream(n,{readSize:i,size:l.size});c.on("error",u),c.pipe(r)}})});return e?s.then(e,e):s},wk=t=>new ru.Sync(t),Sk=t=>new ru(t)});var XD=H(ve=>{"use strict";ve.c=ve.create=LE();ve.r=ve.replace=ah();ve.t=ve.list=Go();ve.u=ve.update=$E();ve.x=ve.extract=JD();ve.Pack=Fo();ve.Unpack=Ch();ve.Parse=Uo();ve.ReadEntry=ho();ve.WriteEntry=Ic();ve.Header=Ii();ve.Pax=po();ve.types=Ec()});var n_=H((oN,i_)=>{function lt(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))}i_.exports=lt;lt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};lt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};lt.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};lt.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)};lt.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};lt.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};lt.prototype.start=lt.prototype.try;lt.prototype.errors=function(){return this._errors};lt.prototype.attempts=function(){return this._attempts};lt.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 s_=H(Qr=>{var Rk=n_();Qr.operation=function(t){var e=Qr.timeouts(t);return new Rk(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Qr.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};Qr.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};Qr.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(a){var l=Qr.operation(e),c=Array.prototype.slice.call(arguments,1),h=c.pop();c.push(function(f){l.retry(f)||(f&&(arguments[0]=l.mainError()),h.apply(this,arguments))}),l.attempt(function(){a.apply(t,c)})}.bind(t,o),t[s].options=e}}});var u_=H((aN,o_)=>{o_.exports=s_()});var l_=H((lN,a_)=>{var xk=u_();function Fk(t,e){function r(i,n){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=xk.operation(s);function u(c){n(c||new Error("Aborted"))}function a(c,h){if(c.bail){u(c);return}o.retry(c)?s.onRetry&&s.onRetry(c,h):n(o.mainError())}function l(c){var h;try{h=t(u,c)}catch(f){a(f,c);return}Promise.resolve(h).then(i).catch(function(d){a(d,c)})}o.attempt(l)}return new Promise(r)}a_.exports=Fk});var Uk={};Oh(Uk,{default:()=>$k,transformer:()=>m_});module.exports=b_(Uk);var f_=ie(require("path")),p_=require("fs-extra");var cr=ie(require("chalk"),1),gy=ie(require("ora"),1),Ey=ie(require("gradient-string"),1);var Bx=ie(ai(),1),VB=require("fs-extra");function Op(t){return typeof t=="undefined"||t===null}function mw(t){return typeof t=="object"&&t!==null}function yw(t){return Array.isArray(t)?t:Op(t)?[]:[t]}function gw(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 Ew(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function Dw(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var _w=Op,bw=mw,ww=yw,Sw=Ew,Aw=Dw,vw=gw,Ae={isNothing:_w,isObject:bw,toArray:ww,repeat:Sw,isNegativeZero:Aw,extend:vw};function Tp(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+=`
|
9
9
|
|
10
|
-
`+t.mark.snippet),i+" "+r):i}function
|
10
|
+
`+t.mark.snippet),i+" "+r):i}function an(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Tp(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}an.prototype=Object.create(Error.prototype);an.prototype.constructor=an;an.prototype.toString=function(e){return this.name+": "+Tp(this,e)};var je=an;function Ru(t,e,r,i,n){var s="",o="",u=Math.floor(n/2)-1;return i-e>u&&(s=" ... ",e=i-u+s.length),r-i>u&&(o=" ...",r=i+u-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:i-e+s.length}}function xu(t,e){return Ae.repeat(" ",e-t.length)+t}function Cw(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 u="",a,l,c=Math.min(t.line+e.linesAfter,n.length).toString().length,h=e.maxLength-(e.indent+c+3);for(a=1;a<=e.linesBefore&&!(o-a<0);a++)l=Ru(t.buffer,i[o-a],n[o-a],t.position-(i[o]-i[o-a]),h),u=Ae.repeat(" ",e.indent)+xu((t.line-a+1).toString(),c)+" | "+l.str+`
|
11
11
|
`+u;for(l=Ru(t.buffer,i[o],n[o],t.position,h),u+=Ae.repeat(" ",e.indent)+xu((t.line+1).toString(),c)+" | "+l.str+`
|
12
12
|
`,u+=Ae.repeat("-",e.indent+c+3+l.pos)+`^
|
13
13
|
`,a=1;a<=e.linesAfter&&!(o+a>=n.length);a++)l=Ru(t.buffer,i[o+a],n[o+a],t.position-(i[o]-i[o+a]),h),u+=Ae.repeat(" ",e.indent)+xu((t.line+a+1).toString(),c)+" | "+l.str+`
|
14
|
-
`;return u.replace(/\n$/,"")}var Cw
|
15
|
-
\r`;function
|
16
|
-
`: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
|
17
|
-
`,e-1))}function
|
14
|
+
`;return u.replace(/\n$/,"")}var Rw=Cw,xw=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Fw=["scalar","sequence","mapping"];function Ow(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function Tw(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(xw.indexOf(r)===-1)throw new je('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=Ow(e.styleAliases||null),Fw.indexOf(this.kind)===-1)throw new je('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Fe=Tw;function mp(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 kw(){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 Ou(t){return this.extend(t)}Ou.prototype.extend=function(e){var r=[],i=[];if(e instanceof Fe)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 je("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Fe))throw new je("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new je("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 je("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 Fe))throw new je("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Ou.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=mp(n,"implicit"),n.compiledExplicit=mp(n,"explicit"),n.compiledTypeMap=kw(n.compiledImplicit,n.compiledExplicit),n};var kp=Ou,Lp=new Fe("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Bp=new Fe("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Pp=new Fe("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Ip=new kp({explicit:[Lp,Bp,Pp]});function Lw(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Bw(){return null}function Pw(t){return t===null}var Np=new Fe("tag:yaml.org,2002:null",{kind:"scalar",resolve:Lw,construct:Bw,predicate:Pw,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Iw(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 Nw(t){return t==="true"||t==="True"||t==="TRUE"}function Mw(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Mp=new Fe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Iw,construct:Nw,predicate:Mw,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 jw(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function Hw(t){return 48<=t&&t<=55}function qw(t){return 48<=t&&t<=57}function $w(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(!jw(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<e;r++)if(n=t[r],n!=="_"){if(!Hw(t.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<e;r++)if(n=t[r],n!=="_"){if(!qw(t.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}function Uw(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 Gw(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Ae.isNegativeZero(t)}var jp=new Fe("tag:yaml.org,2002:int",{kind:"scalar",resolve:$w,construct:Uw,predicate:Gw,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"]}}),zw=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Ww(t){return!(t===null||!zw.test(t)||t[t.length-1]==="_")}function Yw(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 Kw=/^[-+]?[0-9]+e/;function Vw(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(Ae.isNegativeZero(t))return"-0.0";return r=t.toString(10),Kw.test(r)?r.replace("e",".e"):r}function Zw(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Ae.isNegativeZero(t))}var Hp=new Fe("tag:yaml.org,2002:float",{kind:"scalar",resolve:Ww,construct:Yw,predicate:Zw,represent:Vw,defaultStyle:"lowercase"}),qp=Ip.extend({implicit:[Np,Mp,jp,Hp]}),$p=qp,Up=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Gp=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 Jw(t){return t===null?!1:Up.exec(t)!==null||Gp.exec(t)!==null}function Xw(t){var e,r,i,n,s,o,u,a=0,l=null,c,h,f;if(e=Up.exec(t),e===null&&(e=Gp.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],u=+e[6],e[7]){for(a=e[7].slice(0,3);a.length<3;)a+="0";a=+a}return e[9]&&(c=+e[10],h=+(e[11]||0),l=(c*60+h)*6e4,e[9]==="-"&&(l=-l)),f=new Date(Date.UTC(r,i,n,s,o,u,a)),l&&f.setTime(f.getTime()-l),f}function Qw(t){return t.toISOString()}var zp=new Fe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Jw,construct:Xw,instanceOf:Date,represent:Qw});function eS(t){return t==="<<"||t===null}var Wp=new Fe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:eS}),Pu=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
15
|
+
\r`;function tS(t){if(t===null)return!1;var e,r,i=0,n=t.length,s=Pu;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 rS(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,s=Pu,o=0,u=[];for(e=0;e<n;e++)e%4===0&&e&&(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)),o=o<<6|s.indexOf(i.charAt(e));return r=n%4*6,r===0?(u.push(o>>16&255),u.push(o>>8&255),u.push(o&255)):r===18?(u.push(o>>10&255),u.push(o>>2&255)):r===12&&u.push(o>>4&255),new Uint8Array(u)}function iS(t){var e="",r=0,i,n,s=t.length,o=Pu;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 nS(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Yp=new Fe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:tS,construct:rS,predicate:nS,represent:iS}),sS=Object.prototype.hasOwnProperty,oS=Object.prototype.toString;function uS(t){if(t===null)return!0;var e=[],r,i,n,s,o,u=t;for(r=0,i=u.length;r<i;r+=1){if(n=u[r],o=!1,oS.call(n)!=="[object Object]")return!1;for(s in n)if(sS.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 aS(t){return t!==null?t:[]}var Kp=new Fe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:uS,construct:aS}),lS=Object.prototype.toString;function cS(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],lS.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[e]=[n[0],i[n[0]]]}return!0}function hS(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 Vp=new Fe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:cS,construct:hS}),fS=Object.prototype.hasOwnProperty;function pS(t){if(t===null)return!0;var e,r=t;for(e in r)if(fS.call(r,e)&&r[e]!==null)return!1;return!0}function dS(t){return t!==null?t:{}}var Zp=new Fe("tag:yaml.org,2002:set",{kind:"mapping",resolve:pS,construct:dS}),Iu=$p.extend({implicit:[zp,Wp],explicit:[Yp,Kp,Vp,Zp]}),tr=Object.prototype.hasOwnProperty,as=1,Jp=2,Xp=3,ls=4,Fu=1,mS=2,yp=3,yS=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,gS=/[\x85\u2028\u2029]/,ES=/[,\[\]\{\}]/,Qp=/^(?:!|!!|![a-z\-]+!)$/i,ed=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function gp(t){return Object.prototype.toString.call(t)}function yt(t){return t===10||t===13}function Tr(t){return t===9||t===32}function qe(t){return t===9||t===32||t===10||t===13}function ci(t){return t===44||t===91||t===93||t===123||t===125}function DS(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function _S(t){return t===120?2:t===117?4:t===85?8:0}function bS(t){return 48<=t&&t<=57?t-48:-1}function Ep(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
16
|
+
`: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 wS(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var td=new Array(256),rd=new Array(256);for(Or=0;Or<256;Or++)td[Or]=Ep(Or)?1:0,rd[Or]=Ep(Or);var Or;function SS(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Iu,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 id(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=Rw(r),new je(e,r)}function Q(t,e){throw id(t,e)}function cs(t,e){t.onWarning&&t.onWarning.call(null,id(t,e))}var Dp={YAML:function(e,r,i){var n,s,o;e.version!==null&&Q(e,"duplication of %YAML directive"),i.length!==1&&Q(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&Q(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&Q(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&cs(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var n,s;i.length!==2&&Q(e,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],Qp.test(n)||Q(e,"ill-formed tag handle (first argument) of the TAG directive"),tr.call(e.tagMap,n)&&Q(e,'there is a previously declared suffix for "'+n+'" tag handle'),ed.test(s)||Q(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Q(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function er(t,e,r,i){var n,s,o,u;if(e<r){if(u=t.input.slice(e,r),i)for(n=0,s=u.length;n<s;n+=1)o=u.charCodeAt(n),o===9||32<=o&&o<=1114111||Q(t,"expected valid JSON character");else yS.test(u)&&Q(t,"the stream contains non-printable characters");t.result+=u}}function _p(t,e,r,i){var n,s,o,u;for(Ae.isObject(r)||Q(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,u=n.length;o<u;o+=1)s=n[o],tr.call(e,s)||(e[s]=r[s],i[s]=!0)}function hi(t,e,r,i,n,s,o,u,a){var l,c;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),l=0,c=n.length;l<c;l+=1)Array.isArray(n[l])&&Q(t,"nested arrays are not supported inside keys"),typeof n=="object"&&gp(n[l])==="[object Object]"&&(n[l]="[object Object]");if(typeof n=="object"&&gp(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(l=0,c=s.length;l<c;l+=1)_p(t,e,s[l],r);else _p(t,e,s,r);else!t.json&&!tr.call(r,n)&&tr.call(e,n)&&(t.line=o||t.line,t.lineStart=u||t.lineStart,t.position=a||t.position,Q(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 Nu(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++):Q(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function we(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);n!==0;){for(;Tr(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(yt(n))for(Nu(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&&cs(t,"deficient indentation"),i}function ps(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||qe(r)))}function Mu(t,e){e===1?t.result+=" ":e>1&&(t.result+=Ae.repeat(`
|
17
|
+
`,e-1))}function AS(t,e,r){var i,n,s,o,u,a,l,c,h=t.kind,f=t.result,d;if(d=t.input.charCodeAt(t.position),qe(d)||ci(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),qe(n)||r&&ci(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,u=!1;d!==0;){if(d===58){if(n=t.input.charCodeAt(t.position+1),qe(n)||r&&ci(n))break}else if(d===35){if(i=t.input.charCodeAt(t.position-1),qe(i))break}else{if(t.position===t.lineStart&&ps(t)||r&&ci(d))break;if(yt(d))if(a=t.line,l=t.lineStart,c=t.lineIndent,we(t,!1,-1),t.lineIndent>=e){u=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=a,t.lineStart=l,t.lineIndent=c;break}}u&&(er(t,s,o,!1),Mu(t,t.line-a),s=o=t.position,u=!1),Tr(d)||(o=t.position+1),d=t.input.charCodeAt(++t.position)}return er(t,s,o,!1),t.result?!0:(t.kind=h,t.result=f,!1)}function vS(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(er(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 yt(r)?(er(t,i,n,!0),Mu(t,we(t,!1,e)),i=n=t.position):t.position===t.lineStart&&ps(t)?Q(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);Q(t,"unexpected end of the stream within a single quoted scalar")}function CS(t,e){var r,i,n,s,o,u;if(u=t.input.charCodeAt(t.position),u!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(u=t.input.charCodeAt(t.position))!==0;){if(u===34)return er(t,r,t.position,!0),t.position++,!0;if(u===92){if(er(t,r,t.position,!0),u=t.input.charCodeAt(++t.position),yt(u))we(t,!1,e);else if(u<256&&td[u])t.result+=rd[u],t.position++;else if((o=_S(u))>0){for(n=o,s=0;n>0;n--)u=t.input.charCodeAt(++t.position),(o=DS(u))>=0?s=(s<<4)+o:Q(t,"expected hexadecimal character");t.result+=wS(s),t.position++}else Q(t,"unknown escape sequence");r=i=t.position}else yt(u)?(er(t,r,i,!0),Mu(t,we(t,!1,e)),r=i=t.position):t.position===t.lineStart&&ps(t)?Q(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}Q(t,"unexpected end of the stream within a double quoted scalar")}function RS(t,e){var r=!0,i,n,s,o=t.tag,u,a=t.anchor,l,c,h,f,d,g=Object.create(null),y,E,v,F;if(F=t.input.charCodeAt(t.position),F===91)c=93,d=!1,u=[];else if(F===123)c=125,d=!0,u={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=u),F=t.input.charCodeAt(++t.position);F!==0;){if(we(t,!0,e),F=t.input.charCodeAt(t.position),F===c)return t.position++,t.tag=o,t.anchor=a,t.kind=d?"mapping":"sequence",t.result=u,!0;r?F===44&&Q(t,"expected the node content, but found ','"):Q(t,"missed comma between flow collection entries"),E=y=v=null,h=f=!1,F===63&&(l=t.input.charCodeAt(t.position+1),qe(l)&&(h=f=!0,t.position++,we(t,!0,e))),i=t.line,n=t.lineStart,s=t.position,fi(t,e,as,!1,!0),E=t.tag,y=t.result,we(t,!0,e),F=t.input.charCodeAt(t.position),(f||t.line===i)&&F===58&&(h=!0,F=t.input.charCodeAt(++t.position),we(t,!0,e),fi(t,e,as,!1,!0),v=t.result),d?hi(t,u,g,E,y,v,i,n,s):h?u.push(hi(t,null,g,E,y,v,i,n,s)):u.push(y),we(t,!0,e),F=t.input.charCodeAt(t.position),F===44?(r=!0,F=t.input.charCodeAt(++t.position)):r=!1}Q(t,"unexpected end of the stream within a flow collection")}function xS(t,e){var r,i,n=Fu,s=!1,o=!1,u=e,a=0,l=!1,c,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)Fu===n?n=h===43?yp:mS:Q(t,"repeat of a chomping mode identifier");else if((c=bS(h))>=0)c===0?Q(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Q(t,"repeat of an indentation width identifier"):(u=e+c-1,o=!0);else break;if(Tr(h)){do h=t.input.charCodeAt(++t.position);while(Tr(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!yt(h)&&h!==0)}for(;h!==0;){for(Nu(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!o||t.lineIndent<u)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>u&&(u=t.lineIndent),yt(h)){a++;continue}if(t.lineIndent<u){n===yp?t.result+=Ae.repeat(`
|
18
18
|
`,s?1+a:a):n===Fu&&s&&(t.result+=`
|
19
|
-
`);break}for(i?
|
19
|
+
`);break}for(i?Tr(h)?(l=!0,t.result+=Ae.repeat(`
|
20
20
|
`,s?1+a:a)):l?(l=!1,t.result+=Ae.repeat(`
|
21
21
|
`,a+1)):a===0?s&&(t.result+=" "):t.result+=Ae.repeat(`
|
22
22
|
`,a):t.result+=Ae.repeat(`
|
23
|
-
`,s?1+a:a),s=!0,o=!0,a=0,r=t.position;!yt(h)&&h!==0;)h=t.input.charCodeAt(++t.position);er(t,r,t.position,!1)}return!0}function bp(t,e){var r,i=t.tag,n=t.anchor,s=[],o,u=!1,a;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),a=t.input.charCodeAt(t.position);a!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,
|
24
|
-
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new
|
23
|
+
`,s?1+a:a),s=!0,o=!0,a=0,r=t.position;!yt(h)&&h!==0;)h=t.input.charCodeAt(++t.position);er(t,r,t.position,!1)}return!0}function bp(t,e){var r,i=t.tag,n=t.anchor,s=[],o,u=!1,a;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),a=t.input.charCodeAt(t.position);a!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Q(t,"tab characters must not be used in indentation")),!(a!==45||(o=t.input.charCodeAt(t.position+1),!qe(o))));){if(u=!0,t.position++,we(t,!0,-1)&&t.lineIndent<=e){s.push(null),a=t.input.charCodeAt(t.position);continue}if(r=t.line,fi(t,e,Xp,!1,!0),s.push(t.result),we(t,!0,-1),a=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&a!==0)Q(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return u?(t.tag=i,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function FS(t,e,r){var i,n,s,o,u,a,l=t.tag,c=t.anchor,h={},f=Object.create(null),d=null,g=null,y=null,E=!1,v=!1,F;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),F=t.input.charCodeAt(t.position);F!==0;){if(!E&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Q(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),s=t.line,(F===63||F===58)&&qe(i))F===63?(E&&(hi(t,h,f,d,g,null,o,u,a),d=g=y=null),v=!0,E=!0,n=!0):E?(E=!1,n=!0):Q(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,F=i;else{if(o=t.line,u=t.lineStart,a=t.position,!fi(t,r,Jp,!1,!0))break;if(t.line===s){for(F=t.input.charCodeAt(t.position);Tr(F);)F=t.input.charCodeAt(++t.position);if(F===58)F=t.input.charCodeAt(++t.position),qe(F)||Q(t,"a whitespace character is expected after the key-value separator within a block mapping"),E&&(hi(t,h,f,d,g,null,o,u,a),d=g=y=null),v=!0,E=!1,n=!1,d=t.tag,g=t.result;else if(v)Q(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=l,t.anchor=c,!0}else if(v)Q(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=l,t.anchor=c,!0}if((t.line===s||t.lineIndent>e)&&(E&&(o=t.line,u=t.lineStart,a=t.position),fi(t,e,ls,!0,n)&&(E?g=t.result:y=t.result),E||(hi(t,h,f,d,g,y,o,u,a),d=g=y=null),we(t,!0,-1),F=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&F!==0)Q(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return E&&hi(t,h,f,d,g,null,o,u,a),v&&(t.tag=l,t.anchor=c,t.kind="mapping",t.result=h),v}function OS(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&&Q(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)):Q(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!qe(o);)o===33&&(i?Q(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),Qp.test(n)||Q(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),ES.test(s)&&Q(t,"tag suffix cannot contain flow indicator characters")}s&&!ed.test(s)&&Q(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Q(t,"tag name is malformed: "+s)}return r?t.tag=s:tr.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:Q(t,'undeclared tag handle "'+n+'"'),!0}function TS(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Q(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!qe(r)&&!ci(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Q(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function kS(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&&!qe(i)&&!ci(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&Q(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),tr.call(t.anchorMap,r)||Q(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],we(t,!0,-1),!0}function fi(t,e,r,i,n){var s,o,u,a=1,l=!1,c=!1,h,f,d,g,y,E;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=u=ls===r||Xp===r,i&&we(t,!0,-1)&&(l=!0,t.lineIndent>e?a=1:t.lineIndent===e?a=0:t.lineIndent<e&&(a=-1)),a===1)for(;OS(t)||TS(t);)we(t,!0,-1)?(l=!0,u=s,t.lineIndent>e?a=1:t.lineIndent===e?a=0:t.lineIndent<e&&(a=-1)):u=!1;if(u&&(u=l||n),(a===1||ls===r)&&(as===r||Jp===r?y=e:y=e+1,E=t.position-t.lineStart,a===1?u&&(bp(t,E)||FS(t,E,y))||RS(t,y)?c=!0:(o&&xS(t,y)||vS(t,y)||CS(t,y)?c=!0:kS(t)?(c=!0,(t.tag!==null||t.anchor!==null)&&Q(t,"alias node should not have any properties")):AS(t,y,as===r)&&(c=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):a===0&&(c=u&&bp(t,E))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&Q(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,f=t.implicitTypes.length;h<f;h+=1)if(g=t.implicitTypes[h],g.resolve(t.result)){t.result=g.construct(t.result),t.tag=g.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(tr.call(t.typeMap[t.kind||"fallback"],t.tag))g=t.typeMap[t.kind||"fallback"][t.tag];else for(g=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){g=d[h];break}g||Q(t,"unknown tag !<"+t.tag+">"),t.result!==null&&g.kind!==t.kind&&Q(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):Q(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||c}function LS(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&&(we(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&&!qe(o);)o=t.input.charCodeAt(++t.position);for(i=t.input.slice(r,t.position),n=[],i.length<1&&Q(t,"directive name must not be less than one character in length");o!==0;){for(;Tr(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!yt(o));break}if(yt(o))break;for(r=t.position;o!==0&&!qe(o);)o=t.input.charCodeAt(++t.position);n.push(t.input.slice(r,t.position))}o!==0&&Nu(t),tr.call(Dp,i)?Dp[i](t,i,n):cs(t,'unknown document directive "'+i+'"')}if(we(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,we(t,!0,-1)):s&&Q(t,"directives end mark is expected"),fi(t,t.lineIndent-1,ls,!1,!0),we(t,!0,-1),t.checkLineBreaks&&gS.test(t.input.slice(e,t.position))&&cs(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&ps(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,we(t,!0,-1));return}if(t.position<t.length-1)Q(t,"end of the stream or a document separator is expected");else return}function nd(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
|
24
|
+
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new SS(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,Q(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;)LS(r);return r.documents}function BS(t,e,r){e!==null&&typeof e=="object"&&typeof r=="undefined"&&(r=e,e=null);var i=nd(t,r);if(typeof e!="function")return i;for(var n=0,s=i.length;n<s;n+=1)e(i[n])}function PS(t,e){var r=nd(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new je("expected a single document in the stream, but found more")}}var IS=BS,NS=PS,sd={loadAll:IS,load:NS},od=Object.prototype.toString,ud=Object.prototype.hasOwnProperty,ju=65279,MS=9,ln=10,jS=13,HS=32,qS=33,$S=34,Tu=35,US=37,GS=38,zS=39,WS=42,ad=44,YS=45,hs=58,KS=61,VS=62,ZS=63,JS=64,ld=91,cd=93,XS=96,hd=123,QS=124,fd=125,Oe={};Oe[0]="\\0";Oe[7]="\\a";Oe[8]="\\b";Oe[9]="\\t";Oe[10]="\\n";Oe[11]="\\v";Oe[12]="\\f";Oe[13]="\\r";Oe[27]="\\e";Oe[34]='\\"';Oe[92]="\\\\";Oe[133]="\\N";Oe[160]="\\_";Oe[8232]="\\L";Oe[8233]="\\P";var eA=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],tA=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function rA(t,e){var r,i,n,s,o,u,a;if(e===null)return{};for(r={},i=Object.keys(e),n=0,s=i.length;n<s;n+=1)o=i[n],u=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),a=t.compiledTypeMap.fallback[o],a&&ud.call(a.styleAliases,u)&&(u=a.styleAliases[u]),r[o]=u;return r}function iA(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 je("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Ae.repeat("0",i-e.length)+e}var nA=1,cn=2;function sA(t){this.schema=t.schema||Iu,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Ae.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=rA(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==='"'?cn:nA,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 wp(t,e){for(var r=Ae.repeat(" ",e),i=0,n=-1,s="",o,u=t.length;i<u;)n=t.indexOf(`
|
25
25
|
`,i),n===-1?(o=t.slice(i),i=u):(o=t.slice(i,n+1),i=n+1),o.length&&o!==`
|
26
26
|
`&&(s+=r),s+=o;return s}function ku(t,e){return`
|
27
|
-
`+Ae.repeat(" ",t.indent*e)}function
|
27
|
+
`+Ae.repeat(" ",t.indent*e)}function oA(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 fs(t){return t===HS||t===MS}function hn(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==ju||65536<=t&&t<=1114111}function Sp(t){return hn(t)&&t!==ju&&t!==jS&&t!==ln}function Ap(t,e,r){var i=Sp(t),n=i&&!fs(t);return(r?i:i&&t!==ad&&t!==ld&&t!==cd&&t!==hd&&t!==fd)&&t!==Tu&&!(e===hs&&!n)||Sp(e)&&!fs(e)&&t===Tu||e===hs&&n}function uA(t){return hn(t)&&t!==ju&&!fs(t)&&t!==YS&&t!==ZS&&t!==hs&&t!==ad&&t!==ld&&t!==cd&&t!==hd&&t!==fd&&t!==Tu&&t!==GS&&t!==WS&&t!==qS&&t!==QS&&t!==KS&&t!==VS&&t!==zS&&t!==$S&&t!==US&&t!==JS&&t!==XS}function aA(t){return!fs(t)&&t!==hs}function un(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 pd(t){var e=/^\n* /;return e.test(t)}var dd=1,Lu=2,md=3,yd=4,li=5;function lA(t,e,r,i,n,s,o,u){var a,l=0,c=null,h=!1,f=!1,d=i!==-1,g=-1,y=uA(un(t,0))&&aA(un(t,t.length-1));if(e||o)for(a=0;a<t.length;l>=65536?a+=2:a++){if(l=un(t,a),!hn(l))return li;y=y&&Ap(l,c,u),c=l}else{for(a=0;a<t.length;l>=65536?a+=2:a++){if(l=un(t,a),l===ln)h=!0,d&&(f=f||a-g-1>i&&t[g+1]!==" ",g=a);else if(!hn(l))return li;y=y&&Ap(l,c,u),c=l}f=f||d&&a-g-1>i&&t[g+1]!==" "}return!h&&!f?y&&!o&&!n(t)?dd:s===cn?li:Lu:r>9&&pd(t)?li:o?s===cn?li:Lu:f?yd:md}function cA(t,e,r,i,n){t.dump=function(){if(e.length===0)return t.quotingType===cn?'""':"''";if(!t.noCompatMode&&(eA.indexOf(e)!==-1||tA.test(e)))return t.quotingType===cn?'"'+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),u=i||t.flowLevel>-1&&r>=t.flowLevel;function a(l){return oA(t,l)}switch(lA(e,u,t.indent,o,a,t.quotingType,t.forceQuotes&&!i,n)){case dd:return e;case Lu:return"'"+e.replace(/'/g,"''")+"'";case md:return"|"+vp(e,t.indent)+Cp(wp(e,s));case yd:return">"+vp(e,t.indent)+Cp(wp(hA(e,o),s));case li:return'"'+fA(e)+'"';default:throw new je("impossible error: invalid scalar style")}}()}function vp(t,e){var r=pd(t)?String(e):"",i=t[t.length-1]===`
|
28
28
|
`,n=i&&(t[t.length-2]===`
|
29
29
|
`||t===`
|
30
30
|
`),s=n?"+":i?"":"-";return r+s+`
|
31
31
|
`}function Cp(t){return t[t.length-1]===`
|
32
|
-
`?t.slice(0,-1):t}function
|
32
|
+
`?t.slice(0,-1):t}function hA(t,e){for(var r=/(\n+)([^\n]*)/g,i=function(){var l=t.indexOf(`
|
33
33
|
`);return l=l!==-1?l:t.length,r.lastIndex=l,Rp(t.slice(0,l),e)}(),n=t[0]===`
|
34
34
|
`||t[0]===" ",s,o;o=r.exec(t);){var u=o[1],a=o[2];s=a[0]===" ",i+=u+(!n&&!s&&a!==""?`
|
35
35
|
`:"")+Rp(a,e),n=s}return i}function Rp(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,i,n=0,s,o=0,u=0,a="";i=r.exec(t);)u=i.index,u-n>e&&(s=o>n?o:u,a+=`
|
36
36
|
`+t.slice(n,s),n=s+1),o=u;return a+=`
|
37
37
|
`,t.length-n>e&&o>n?a+=t.slice(n,o)+`
|
38
|
-
`+t.slice(o+1):a+=t.slice(n),a.slice(1)}function
|
39
|
-
`:""}var gA=yA,EA={dump:gA};function Hu(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 DA=Fe,_A=kp,bA=Ip,wA=qp,SA=$p,AA=Iu,vA=sd.load,CA=sd.loadAll,RA=EA.dump,xA=je,FA={binary:Yp,float:Hp,map:Pp,null:Np,pairs:Vp,set:Zp,timestamp:zp,bool:Mp,int:jp,merge:Wp,omap:Kp,seq:Bp,str:Lp},OA=Hu("safeLoad","load"),TA=Hu("safeLoadAll","loadAll"),kA=Hu("safeDump","dump"),LA={Type:DA,Schema:_A,FAILSAFE_SCHEMA:bA,JSON_SCHEMA:wA,CORE_SCHEMA:SA,DEFAULT_SCHEMA:AA,load:vA,loadAll:CA,dump:RA,YAMLException:xA,types:FA,safeLoad:OA,safeLoadAll:TA,safeDump:kA},qu=LA;var ZB=ie($s(),1),XB=require("fs-extra"),e2=require("fs-extra"),r2=require("chalk"),Sy=require("stream"),Ay=require("util"),o2=require("fs-extra"),c2=require("chalk"),f2=require("fs-extra"),Br=ie(require("path"),1),He=require("fs-extra"),vy=ie(ni(),1),Cy=ie(require("path"),1),Ry=require("fs-extra"),xy=ie(require("chalk"),1),Nt=ie(require("path"),1),Fy=ie(ni(),1),Ze=require("fs-extra"),Oy=ie($s(),1);var yn=ie(require("path"),1),wt=require("fs-extra"),bi=ie(require("path"),1),St=require("fs-extra"),gn=ie(require("path"),1),At=require("fs-extra"),fF=ie(require("chalk"),1),pF=ie(require("gradient-string"),1),dF=ie(ni(),1),mF=ie(require("ora"),1),yF=require("semver"),gF=ie(require("chalk"),1),IR=Object.create,vl=Object.defineProperty,NR=Object.getOwnPropertyDescriptor,MR=Object.getOwnPropertyNames,jR=Object.getPrototypeOf,HR=Object.prototype.hasOwnProperty,te=(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')}),qR=(t,e)=>()=>(t&&(e=t(t=0)),e),Q=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),$R=(t,e)=>{for(var r in e)vl(t,r,{get:e[r],enumerable:!0})},UR=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of MR(e))!HR.call(t,n)&&n!==r&&vl(t,n,{get:()=>e[n],enumerable:!(i=NR(e,n))||i.enumerable});return t},zs=(t,e,r)=>(r=t!=null?IR(jR(t)):{},UR(e||!t||!t.__esModule?vl(r,"default",{value:t,enumerable:!0}):r,t)),K=qR(()=>{}),GR=Q((t,e)=>{K();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}),zR=Q((t,e)=>{K();var r=GR().default;function i(){"use strict";e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var n={},s=Object.prototype,o=s.hasOwnProperty,u=Object.defineProperty||function(D,A,N){D[A]=N.value},a=typeof Symbol=="function"?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",h=a.toStringTag||"@@toStringTag";function f(D,A,N){return Object.defineProperty(D,A,{value:N,enumerable:!0,configurable:!0,writable:!0}),D[A]}try{f({},"")}catch{f=function(D,A,N){return D[A]=N}}function p(D,A,N,Y){var W=A&&A.prototype instanceof y?A:y,E=Object.create(W.prototype),g=new I(Y||[]);return u(E,"_invoke",{value:M(D,N,g)}),E}function m(D,A,N){try{return{type:"normal",arg:D.call(A,N)}}catch(Y){return{type:"throw",arg:Y}}}n.wrap=p;var d={};function y(){}function v(){}function F(){}var T={};f(T,l,function(){return this});var O=Object.getPrototypeOf,x=O&&O(O(j([])));x&&x!==s&&o.call(x,l)&&(T=x);var B=F.prototype=y.prototype=Object.create(T);function b(D){["next","throw","return"].forEach(function(A){f(D,A,function(N){return this._invoke(A,N)})})}function S(D,A){function N(W,E,g,_){var P=m(D[W],D,E);if(P.type!=="throw"){var C=P.arg,$=C.value;return $&&r($)=="object"&&o.call($,"__await")?A.resolve($.__await).then(function(q){N("next",q,g,_)},function(q){N("throw",q,g,_)}):A.resolve($).then(function(q){C.value=q,g(C)},function(q){return N("throw",q,g,_)})}_(P.arg)}var Y;u(this,"_invoke",{value:function(W,E){function g(){return new A(function(_,P){N(W,E,_,P)})}return Y=Y?Y.then(g,g):g()}})}function M(D,A,N){var Y="suspendedStart";return function(W,E){if(Y==="executing")throw new Error("Generator is already running");if(Y==="completed"){if(W==="throw")throw E;return R()}for(N.method=W,N.arg=E;;){var g=N.delegate;if(g){var _=U(g,N);if(_){if(_===d)continue;return _}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(Y==="suspendedStart")throw Y="completed",N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);Y="executing";var P=m(D,A,N);if(P.type==="normal"){if(Y=N.done?"completed":"suspendedYield",P.arg===d)continue;return{value:P.arg,done:N.done}}P.type==="throw"&&(Y="completed",N.method="throw",N.arg=P.arg)}}}function U(D,A){var N=A.method,Y=D.iterator[N];if(Y===void 0)return A.delegate=null,N==="throw"&&D.iterator.return&&(A.method="return",A.arg=void 0,U(D,A),A.method==="throw")||N!=="return"&&(A.method="throw",A.arg=new TypeError("The iterator does not provide a '"+N+"' method")),d;var W=m(Y,D.iterator,A.arg);if(W.type==="throw")return A.method="throw",A.arg=W.arg,A.delegate=null,d;var E=W.arg;return E?E.done?(A[D.resultName]=E.value,A.next=D.nextLoc,A.method!=="return"&&(A.method="next",A.arg=void 0),A.delegate=null,d):E:(A.method="throw",A.arg=new TypeError("iterator result is not an object"),A.delegate=null,d)}function L(D){var A={tryLoc:D[0]};1 in D&&(A.catchLoc=D[1]),2 in D&&(A.finallyLoc=D[2],A.afterLoc=D[3]),this.tryEntries.push(A)}function k(D){var A=D.completion||{};A.type="normal",delete A.arg,D.completion=A}function I(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(L,this),this.reset(!0)}function j(D){if(D){var A=D[l];if(A)return A.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var N=-1,Y=function W(){for(;++N<D.length;)if(o.call(D,N))return W.value=D[N],W.done=!1,W;return W.value=void 0,W.done=!0,W};return Y.next=Y}}return{next:R}}function R(){return{value:void 0,done:!0}}return v.prototype=F,u(B,"constructor",{value:F,configurable:!0}),u(F,"constructor",{value:v,configurable:!0}),v.displayName=f(F,h,"GeneratorFunction"),n.isGeneratorFunction=function(D){var A=typeof D=="function"&&D.constructor;return!!A&&(A===v||(A.displayName||A.name)==="GeneratorFunction")},n.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,F):(D.__proto__=F,f(D,h,"GeneratorFunction")),D.prototype=Object.create(B),D},n.awrap=function(D){return{__await:D}},b(S.prototype),f(S.prototype,c,function(){return this}),n.AsyncIterator=S,n.async=function(D,A,N,Y,W){W===void 0&&(W=Promise);var E=new S(p(D,A,N,Y),W);return n.isGeneratorFunction(A)?E:E.next().then(function(g){return g.done?g.value:E.next()})},b(B),f(B,h,"Generator"),f(B,l,function(){return this}),f(B,"toString",function(){return"[object Generator]"}),n.keys=function(D){var A=Object(D),N=[];for(var Y in A)N.push(Y);return N.reverse(),function W(){for(;N.length;){var E=N.pop();if(E in A)return W.value=E,W.done=!1,W}return W.done=!0,W}},n.values=j,I.prototype={constructor:I,reset:function(D){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!D)for(var A in this)A.charAt(0)==="t"&&o.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var D=this.tryEntries[0].completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(D){if(this.done)throw D;var A=this;function N(P,C){return E.type="throw",E.arg=D,A.next=P,C&&(A.method="next",A.arg=void 0),!!C}for(var Y=this.tryEntries.length-1;Y>=0;--Y){var W=this.tryEntries[Y],E=W.completion;if(W.tryLoc==="root")return N("end");if(W.tryLoc<=this.prev){var g=o.call(W,"catchLoc"),_=o.call(W,"finallyLoc");if(g&&_){if(this.prev<W.catchLoc)return N(W.catchLoc,!0);if(this.prev<W.finallyLoc)return N(W.finallyLoc)}else if(g){if(this.prev<W.catchLoc)return N(W.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<W.finallyLoc)return N(W.finallyLoc)}}}},abrupt:function(D,A){for(var N=this.tryEntries.length-1;N>=0;--N){var Y=this.tryEntries[N];if(Y.tryLoc<=this.prev&&o.call(Y,"finallyLoc")&&this.prev<Y.finallyLoc){var W=Y;break}}W&&(D==="break"||D==="continue")&&W.tryLoc<=A&&A<=W.finallyLoc&&(W=null);var E=W?W.completion:{};return E.type=D,E.arg=A,W?(this.method="next",this.next=W.finallyLoc,d):this.complete(E)},complete:function(D,A){if(D.type==="throw")throw D.arg;return D.type==="break"||D.type==="continue"?this.next=D.arg:D.type==="return"?(this.rval=this.arg=D.arg,this.method="return",this.next="end"):D.type==="normal"&&A&&(this.next=A),d},finish:function(D){for(var A=this.tryEntries.length-1;A>=0;--A){var N=this.tryEntries[A];if(N.finallyLoc===D)return this.complete(N.completion,N.afterLoc),k(N),d}},catch:function(D){for(var A=this.tryEntries.length-1;A>=0;--A){var N=this.tryEntries[A];if(N.tryLoc===D){var Y=N.completion;if(Y.type==="throw"){var W=Y.arg;k(N)}return W}}throw new Error("illegal catch attempt")},delegateYield:function(D,A,N){return this.delegate={iterator:j(D),resultName:A,nextLoc:N},this.method==="next"&&(this.arg=void 0),d}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}),WR=Q((t,e)=>{K();var r=zR()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),YR=Q((t,e)=>{"use strict";K();var r=(i,...n)=>new Promise(s=>{s(i(...n))});e.exports=r,e.exports.default=r}),KR=Q((t,e)=>{"use strict";K();var r=YR(),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,u=()=>{o--,s.length>0&&s.shift()()},a=(h,f,...p)=>{o++;let m=r(h,...p);f(m),m.then(u,u)},l=(h,f,...p)=>{o<n?a(h,f,...p):s.push(a.bind(null,h,f,...p))},c=(h,...f)=>new Promise(p=>l(h,p,...f));return Object.defineProperties(c,{activeCount:{get:()=>o},pendingCount:{get:()=>s.length},clearQueue:{value:()=>{s.length=0}}}),c};e.exports=i,e.exports.default=i}),VR=Q((t,e)=>{"use strict";K();var r=KR(),i=class extends Error{constructor(u){super(),this.value=u}},n=async(u,a)=>a(await u),s=async u=>{let a=await Promise.all(u);if(a[1]===!0)throw new i(a[0]);return!1},o=async(u,a,l)=>{l={concurrency:1/0,preserveOrder:!0,...l};let c=r(l.concurrency),h=[...u].map(p=>[p,c(n,p,a)]),f=r(l.preserveOrder?1:1/0);try{await Promise.all(h.map(p=>f(s,p)))}catch(p){if(p instanceof i)return p.value;throw p}};e.exports=o,e.exports.default=o}),ZR=Q((t,e)=>{"use strict";K();var r=te("path"),i=te("fs"),{promisify:n}=te("util"),s=VR(),o=n(i.stat),u=n(i.lstat),a={directory:"isDirectory",file:"isFile"};function l({type:h}){if(!(h in a))throw new Error(`Invalid type specified: ${h}`)}var c=(h,f)=>h===void 0||f[a[h]]();e.exports=async(h,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},l(f);let p=f.allowSymlinks?o:u;return s(h,async m=>{try{let d=await p(r.resolve(f.cwd,m));return c(f.type,d)}catch{return!1}},f)},e.exports.sync=(h,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},l(f);let p=f.allowSymlinks?i.statSync:i.lstatSync;for(let m of h)try{let d=p(r.resolve(f.cwd,m));if(c(f.type,d))return m}catch{}}}),JR=Q((t,e)=>{"use strict";K();var r=te("fs"),{promisify:i}=te("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}}}),XR=Q((t,e)=>{"use strict";K();var r=te("path"),i=ZR(),n=JR(),s=Symbol("findUp.stop");e.exports=async(o,u={})=>{let a=r.resolve(u.cwd||""),{root:l}=r.parse(a),c=[].concat(o),h=async f=>{if(typeof o!="function")return i(c,f);let p=await o(f.cwd);return typeof p=="string"?i([p],f):p};for(;;){let f=await h({...u,cwd:a});if(f===s)return;if(f)return r.resolve(a,f);if(a===l)return;a=r.dirname(a)}},e.exports.sync=(o,u={})=>{let a=r.resolve(u.cwd||""),{root:l}=r.parse(a),c=[].concat(o),h=f=>{if(typeof o!="function")return i.sync(c,f);let p=o(f.cwd);return typeof p=="string"?i.sync([p],f):p};for(;;){let f=h({...u,cwd:a});if(f===s)return;if(f)return r.resolve(a,f);if(a===l)return;a=r.dirname(a)}},e.exports.exists=n,e.exports.sync.exists=n.sync,e.exports.stop=s}),En=Q((t,e)=>{"use strict";K();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)):{}}),Cl=Q((t,e)=>{"use strict";K();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=te("events"),n=te("stream"),s=te("string_decoder").StringDecoder,o=Symbol("EOF"),u=Symbol("maybeEmitEnd"),a=Symbol("emittedEnd"),l=Symbol("emittingEnd"),c=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),p=Symbol("flush"),m=Symbol("flushChunk"),d=Symbol("encoding"),y=Symbol("decoder"),v=Symbol("flowing"),F=Symbol("paused"),T=Symbol("resume"),O=Symbol("buffer"),x=Symbol("pipes"),B=Symbol("bufferLength"),b=Symbol("bufferPush"),S=Symbol("bufferShift"),M=Symbol("objectMode"),U=Symbol("destroyed"),L=Symbol("emitData"),k=Symbol("emitEnd"),I=Symbol("emitEnd2"),j=Symbol("async"),R=P=>Promise.resolve().then(P),D=global._MP_NO_ITERATOR_SYMBOLS_!=="1",A=D&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),N=D&&Symbol.iterator||Symbol("iterator not implemented"),Y=P=>P==="end"||P==="finish"||P==="prefinish",W=P=>P instanceof ArrayBuffer||typeof P=="object"&&P.constructor&&P.constructor.name==="ArrayBuffer"&&P.byteLength>=0,E=P=>!Buffer.isBuffer(P)&&ArrayBuffer.isView(P),g=class{constructor(P,C,$){this.src=P,this.dest=C,this.opts=$,this.ondrain=()=>P[T](),C.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},_=class extends g{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(P,C,$){super(P,C,$),this.proxyErrors=q=>C.emit("error",q),P.on("error",this.proxyErrors)}};e.exports=class ny extends n{constructor(C){super(),this[v]=!1,this[F]=!1,this[x]=[],this[O]=[],this[M]=C&&C.objectMode||!1,this[M]?this[d]=null:this[d]=C&&C.encoding||null,this[d]==="buffer"&&(this[d]=null),this[j]=C&&!!C.async||!1,this[y]=this[d]?new s(this[d]):null,this[o]=!1,this[a]=!1,this[l]=!1,this[h]=!1,this[c]=null,this.writable=!0,this.readable=!0,this[B]=0,this[U]=!1,C&&C.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[O]}),C&&C.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[x]})}get bufferLength(){return this[B]}get encoding(){return this[d]}set encoding(C){if(this[M])throw new Error("cannot set encoding in objectMode");if(this[d]&&C!==this[d]&&(this[y]&&this[y].lastNeed||this[B]))throw new Error("cannot change encoding");this[d]!==C&&(this[y]=C?new s(C):null,this[O].length&&(this[O]=this[O].map($=>this[y].write($)))),this[d]=C}setEncoding(C){this.encoding=C}get objectMode(){return this[M]}set objectMode(C){this[M]=this[M]||!!C}get async(){return this[j]}set async(C){this[j]=this[j]||!!C}write(C,$,q){if(this[o])throw new Error("write after end");if(this[U])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof $=="function"&&(q=$,$="utf8"),$||($="utf8");let Z=this[j]?R:G=>G();return!this[M]&&!Buffer.isBuffer(C)&&(E(C)?C=Buffer.from(C.buffer,C.byteOffset,C.byteLength):W(C)?C=Buffer.from(C):typeof C!="string"&&(this.objectMode=!0)),this[M]?(this.flowing&&this[B]!==0&&this[p](!0),this.flowing?this.emit("data",C):this[b](C),this[B]!==0&&this.emit("readable"),q&&Z(q),this.flowing):C.length?(typeof C=="string"&&!($===this[d]&&!this[y].lastNeed)&&(C=Buffer.from(C,$)),Buffer.isBuffer(C)&&this[d]&&(C=this[y].write(C)),this.flowing&&this[B]!==0&&this[p](!0),this.flowing?this.emit("data",C):this[b](C),this[B]!==0&&this.emit("readable"),q&&Z(q),this.flowing):(this[B]!==0&&this.emit("readable"),q&&Z(q),this.flowing)}read(C){if(this[U])return null;if(this[B]===0||C===0||C>this[B])return this[u](),null;this[M]&&(C=null),this[O].length>1&&!this[M]&&(this.encoding?this[O]=[this[O].join("")]:this[O]=[Buffer.concat(this[O],this[B])]);let $=this[f](C||null,this[O][0]);return this[u](),$}[f](C,$){return C===$.length||C===null?this[S]():(this[O][0]=$.slice(C),$=$.slice(0,C),this[B]-=C),this.emit("data",$),!this[O].length&&!this[o]&&this.emit("drain"),$}end(C,$,q){return typeof C=="function"&&(q=C,C=null),typeof $=="function"&&(q=$,$="utf8"),C&&this.write(C,$),q&&this.once("end",q),this[o]=!0,this.writable=!1,(this.flowing||!this[F])&&this[u](),this}[T](){this[U]||(this[F]=!1,this[v]=!0,this.emit("resume"),this[O].length?this[p]():this[o]?this[u]():this.emit("drain"))}resume(){return this[T]()}pause(){this[v]=!1,this[F]=!0}get destroyed(){return this[U]}get flowing(){return this[v]}get paused(){return this[F]}[b](C){this[M]?this[B]+=1:this[B]+=C.length,this[O].push(C)}[S](){return this[O].length&&(this[M]?this[B]-=1:this[B]-=this[O][0].length),this[O].shift()}[p](C){do;while(this[m](this[S]()));!C&&!this[O].length&&!this[o]&&this.emit("drain")}[m](C){return C?(this.emit("data",C),this.flowing):!1}pipe(C,$){if(this[U])return;let q=this[a];return $=$||{},C===r.stdout||C===r.stderr?$.end=!1:$.end=$.end!==!1,$.proxyErrors=!!$.proxyErrors,q?$.end&&C.end():(this[x].push($.proxyErrors?new _(this,C,$):new g(this,C,$)),this[j]?R(()=>this[T]()):this[T]()),C}unpipe(C){let $=this[x].find(q=>q.dest===C);$&&(this[x].splice(this[x].indexOf($),1),$.unpipe())}addListener(C,$){return this.on(C,$)}on(C,$){let q=super.on(C,$);return C==="data"&&!this[x].length&&!this.flowing?this[T]():C==="readable"&&this[B]!==0?super.emit("readable"):Y(C)&&this[a]?(super.emit(C),this.removeAllListeners(C)):C==="error"&&this[c]&&(this[j]?R(()=>$.call(this,this[c])):$.call(this,this[c])),q}get emittedEnd(){return this[a]}[u](){!this[l]&&!this[a]&&!this[U]&&this[O].length===0&&this[o]&&(this[l]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[l]=!1)}emit(C,$,...q){if(C!=="error"&&C!=="close"&&C!==U&&this[U])return;if(C==="data")return $?this[j]?R(()=>this[L]($)):this[L]($):!1;if(C==="end")return this[k]();if(C==="close"){if(this[h]=!0,!this[a]&&!this[U])return;let G=super.emit("close");return this.removeAllListeners("close"),G}else if(C==="error"){this[c]=$;let G=super.emit("error",$);return this[u](),G}else if(C==="resume"){let G=super.emit("resume");return this[u](),G}else if(C==="finish"||C==="prefinish"){let G=super.emit(C);return this.removeAllListeners(C),G}let Z=super.emit(C,$,...q);return this[u](),Z}[L](C){for(let q of this[x])q.dest.write(C)===!1&&this.pause();let $=super.emit("data",C);return this[u](),$}[k](){this[a]||(this[a]=!0,this.readable=!1,this[j]?R(()=>this[I]()):this[I]())}[I](){if(this[y]){let $=this[y].end();if($){for(let q of this[x])q.dest.write($);super.emit("data",$)}}for(let $ of this[x])$.end();let C=super.emit("end");return this.removeAllListeners("end"),C}collect(){let C=[];this[M]||(C.dataLength=0);let $=this.promise();return this.on("data",q=>{C.push(q),this[M]||(C.dataLength+=q.length)}),$.then(()=>C)}concat(){return this[M]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(C=>this[M]?Promise.reject(new Error("cannot concat in objectMode")):this[d]?C.join(""):Buffer.concat(C,C.dataLength))}promise(){return new Promise((C,$)=>{this.on(U,()=>$(new Error("stream destroyed"))),this.on("error",q=>$(q)),this.on("end",()=>C())})}[A](){return{next:()=>{let C=this.read();if(C!==null)return Promise.resolve({done:!1,value:C});if(this[o])return Promise.resolve({done:!0});let $=null,q=null,Z=re=>{this.removeListener("data",G),this.removeListener("end",ee),q(re)},G=re=>{this.removeListener("error",Z),this.removeListener("end",ee),this.pause(),$({value:re,done:!!this[o]})},ee=()=>{this.removeListener("error",Z),this.removeListener("data",G),$({done:!0})},z=()=>Z(new Error("stream destroyed"));return new Promise((re,le)=>{q=le,$=re,this.once(U,z),this.once("error",Z),this.once("end",ee),this.once("data",G)})}}}[N](){return{next:()=>{let C=this.read();return{value:C,done:C===null}}}}destroy(C){return this[U]?(C?this.emit("error",C):this.emit(U),this):(this[U]=!0,this[O].length=0,this[B]=0,typeof this.close=="function"&&!this[h]&&this.close(),C?this.emit("error",C):this.emit(U),this)}static isStream(C){return!!C&&(C instanceof ny||C instanceof n||C instanceof i&&(typeof C.pipe=="function"||typeof C.write=="function"&&typeof C.end=="function"))}}}),QR=Q((t,e)=>{K();var r=te("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))}),sy=Q((t,e)=>{"use strict";K();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=te("events"),n=te("stream"),s=te("string_decoder").StringDecoder,o=Symbol("EOF"),u=Symbol("maybeEmitEnd"),a=Symbol("emittedEnd"),l=Symbol("emittingEnd"),c=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),p=Symbol("flush"),m=Symbol("flushChunk"),d=Symbol("encoding"),y=Symbol("decoder"),v=Symbol("flowing"),F=Symbol("paused"),T=Symbol("resume"),O=Symbol("bufferLength"),x=Symbol("bufferPush"),B=Symbol("bufferShift"),b=Symbol("objectMode"),S=Symbol("destroyed"),M=Symbol("emitData"),U=Symbol("emitEnd"),L=Symbol("emitEnd2"),k=Symbol("async"),I=g=>Promise.resolve().then(g),j=global._MP_NO_ITERATOR_SYMBOLS_!=="1",R=j&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),D=j&&Symbol.iterator||Symbol("iterator not implemented"),A=g=>g==="end"||g==="finish"||g==="prefinish",N=g=>g instanceof ArrayBuffer||typeof g=="object"&&g.constructor&&g.constructor.name==="ArrayBuffer"&&g.byteLength>=0,Y=g=>!Buffer.isBuffer(g)&&ArrayBuffer.isView(g),W=class{constructor(g,_,P){this.src=g,this.dest=_,this.opts=P,this.ondrain=()=>g[T](),_.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},E=class extends W{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(g,_,P){super(g,_,P),this.proxyErrors=C=>_.emit("error",C),g.on("error",this.proxyErrors)}};e.exports=class oy extends n{constructor(_){super(),this[v]=!1,this[F]=!1,this.pipes=[],this.buffer=[],this[b]=_&&_.objectMode||!1,this[b]?this[d]=null:this[d]=_&&_.encoding||null,this[d]==="buffer"&&(this[d]=null),this[k]=_&&!!_.async||!1,this[y]=this[d]?new s(this[d]):null,this[o]=!1,this[a]=!1,this[l]=!1,this[h]=!1,this[c]=null,this.writable=!0,this.readable=!0,this[O]=0,this[S]=!1}get bufferLength(){return this[O]}get encoding(){return this[d]}set encoding(_){if(this[b])throw new Error("cannot set encoding in objectMode");if(this[d]&&_!==this[d]&&(this[y]&&this[y].lastNeed||this[O]))throw new Error("cannot change encoding");this[d]!==_&&(this[y]=_?new s(_):null,this.buffer.length&&(this.buffer=this.buffer.map(P=>this[y].write(P)))),this[d]=_}setEncoding(_){this.encoding=_}get objectMode(){return this[b]}set objectMode(_){this[b]=this[b]||!!_}get async(){return this[k]}set async(_){this[k]=this[k]||!!_}write(_,P,C){if(this[o])throw new Error("write after end");if(this[S])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof P=="function"&&(C=P,P="utf8"),P||(P="utf8");let $=this[k]?I:q=>q();return!this[b]&&!Buffer.isBuffer(_)&&(Y(_)?_=Buffer.from(_.buffer,_.byteOffset,_.byteLength):N(_)?_=Buffer.from(_):typeof _!="string"&&(this.objectMode=!0)),this[b]?(this.flowing&&this[O]!==0&&this[p](!0),this.flowing?this.emit("data",_):this[x](_),this[O]!==0&&this.emit("readable"),C&&$(C),this.flowing):_.length?(typeof _=="string"&&!(P===this[d]&&!this[y].lastNeed)&&(_=Buffer.from(_,P)),Buffer.isBuffer(_)&&this[d]&&(_=this[y].write(_)),this.flowing&&this[O]!==0&&this[p](!0),this.flowing?this.emit("data",_):this[x](_),this[O]!==0&&this.emit("readable"),C&&$(C),this.flowing):(this[O]!==0&&this.emit("readable"),C&&$(C),this.flowing)}read(_){if(this[S])return null;if(this[O]===0||_===0||_>this[O])return this[u](),null;this[b]&&(_=null),this.buffer.length>1&&!this[b]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[O])]);let P=this[f](_||null,this.buffer[0]);return this[u](),P}[f](_,P){return _===P.length||_===null?this[B]():(this.buffer[0]=P.slice(_),P=P.slice(0,_),this[O]-=_),this.emit("data",P),!this.buffer.length&&!this[o]&&this.emit("drain"),P}end(_,P,C){return typeof _=="function"&&(C=_,_=null),typeof P=="function"&&(C=P,P="utf8"),_&&this.write(_,P),C&&this.once("end",C),this[o]=!0,this.writable=!1,(this.flowing||!this[F])&&this[u](),this}[T](){this[S]||(this[F]=!1,this[v]=!0,this.emit("resume"),this.buffer.length?this[p]():this[o]?this[u]():this.emit("drain"))}resume(){return this[T]()}pause(){this[v]=!1,this[F]=!0}get destroyed(){return this[S]}get flowing(){return this[v]}get paused(){return this[F]}[x](_){this[b]?this[O]+=1:this[O]+=_.length,this.buffer.push(_)}[B](){return this.buffer.length&&(this[b]?this[O]-=1:this[O]-=this.buffer[0].length),this.buffer.shift()}[p](_){do;while(this[m](this[B]()));!_&&!this.buffer.length&&!this[o]&&this.emit("drain")}[m](_){return _?(this.emit("data",_),this.flowing):!1}pipe(_,P){if(this[S])return;let C=this[a];return P=P||{},_===r.stdout||_===r.stderr?P.end=!1:P.end=P.end!==!1,P.proxyErrors=!!P.proxyErrors,C?P.end&&_.end():(this.pipes.push(P.proxyErrors?new E(this,_,P):new W(this,_,P)),this[k]?I(()=>this[T]()):this[T]()),_}unpipe(_){let P=this.pipes.find(C=>C.dest===_);P&&(this.pipes.splice(this.pipes.indexOf(P),1),P.unpipe())}addListener(_,P){return this.on(_,P)}on(_,P){let C=super.on(_,P);return _==="data"&&!this.pipes.length&&!this.flowing?this[T]():_==="readable"&&this[O]!==0?super.emit("readable"):A(_)&&this[a]?(super.emit(_),this.removeAllListeners(_)):_==="error"&&this[c]&&(this[k]?I(()=>P.call(this,this[c])):P.call(this,this[c])),C}get emittedEnd(){return this[a]}[u](){!this[l]&&!this[a]&&!this[S]&&this.buffer.length===0&&this[o]&&(this[l]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[l]=!1)}emit(_,P,...C){if(_!=="error"&&_!=="close"&&_!==S&&this[S])return;if(_==="data")return P?this[k]?I(()=>this[M](P)):this[M](P):!1;if(_==="end")return this[U]();if(_==="close"){if(this[h]=!0,!this[a]&&!this[S])return;let q=super.emit("close");return this.removeAllListeners("close"),q}else if(_==="error"){this[c]=P;let q=super.emit("error",P);return this[u](),q}else if(_==="resume"){let q=super.emit("resume");return this[u](),q}else if(_==="finish"||_==="prefinish"){let q=super.emit(_);return this.removeAllListeners(_),q}let $=super.emit(_,P,...C);return this[u](),$}[M](_){for(let C of this.pipes)C.dest.write(_)===!1&&this.pause();let P=super.emit("data",_);return this[u](),P}[U](){this[a]||(this[a]=!0,this.readable=!1,this[k]?I(()=>this[L]()):this[L]())}[L](){if(this[y]){let P=this[y].end();if(P){for(let C of this.pipes)C.dest.write(P);super.emit("data",P)}}for(let P of this.pipes)P.end();let _=super.emit("end");return this.removeAllListeners("end"),_}collect(){let _=[];this[b]||(_.dataLength=0);let P=this.promise();return this.on("data",C=>{_.push(C),this[b]||(_.dataLength+=C.length)}),P.then(()=>_)}concat(){return this[b]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(_=>this[b]?Promise.reject(new Error("cannot concat in objectMode")):this[d]?_.join(""):Buffer.concat(_,_.dataLength))}promise(){return new Promise((_,P)=>{this.on(S,()=>P(new Error("stream destroyed"))),this.on("error",C=>P(C)),this.on("end",()=>_())})}[R](){return{next:()=>{let _=this.read();if(_!==null)return Promise.resolve({done:!1,value:_});if(this[o])return Promise.resolve({done:!0});let P=null,C=null,$=ee=>{this.removeListener("data",q),this.removeListener("end",Z),C(ee)},q=ee=>{this.removeListener("error",$),this.removeListener("end",Z),this.pause(),P({value:ee,done:!!this[o]})},Z=()=>{this.removeListener("error",$),this.removeListener("data",q),P({done:!0})},G=()=>$(new Error("stream destroyed"));return new Promise((ee,z)=>{C=z,P=ee,this.once(S,G),this.once("error",$),this.once("end",Z),this.once("data",q)})}}}[D](){return{next:()=>{let _=this.read();return{value:_,done:_===null}}}}destroy(_){return this[S]?(_?this.emit("error",_):this.emit(S),this):(this[S]=!0,this.buffer.length=0,this[O]=0,typeof this.close=="function"&&!this[h]&&this.close(),_?this.emit("error",_):this.emit(S),this)}static isStream(_){return!!_&&(_ instanceof oy||_ instanceof n||_ instanceof i&&(typeof _.pipe=="function"||typeof _.write=="function"&&typeof _.end=="function"))}}}),uy=Q(t=>{"use strict";K();var e=te("assert"),r=te("buffer").Buffer,i=te("zlib"),n=t.constants=QR(),s=sy(),o=r.concat,u=Symbol("_superWrite"),a=class extends Error{constructor(A){super("zlib: "+A.message),this.code=A.code,this.errno=A.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+A.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},l=Symbol("opts"),c=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),f=Symbol("fullFlushFlag"),p=Symbol("handle"),m=Symbol("onError"),d=Symbol("sawError"),y=Symbol("level"),v=Symbol("strategy"),F=Symbol("ended"),T=Symbol("_defaultFullFlush"),O=class extends s{constructor(A,N){if(!A||typeof A!="object")throw new TypeError("invalid options for ZlibBase constructor");super(A),this[d]=!1,this[F]=!1,this[l]=A,this[c]=A.flush,this[h]=A.finishFlush;try{this[p]=new i[N](A)}catch(Y){throw new a(Y)}this[m]=Y=>{this[d]||(this[d]=!0,this.close(),this.emit("error",Y))},this[p].on("error",Y=>this[m](new a(Y))),this.once("end",()=>this.close)}close(){this[p]&&(this[p].close(),this[p]=null,this.emit("close"))}reset(){if(!this[d])return e(this[p],"zlib binding closed"),this[p].reset()}flush(A){this.ended||(typeof A!="number"&&(A=this[f]),this.write(Object.assign(r.alloc(0),{[c]:A})))}end(A,N,Y){return A&&this.write(A,N),this.flush(this[h]),this[F]=!0,super.end(null,null,Y)}get ended(){return this[F]}write(A,N,Y){if(typeof N=="function"&&(Y=N,N="utf8"),typeof A=="string"&&(A=r.from(A,N)),this[d])return;e(this[p],"zlib binding closed");let W=this[p]._handle,E=W.close;W.close=()=>{};let g=this[p].close;this[p].close=()=>{},r.concat=C=>C;let _;try{let C=typeof A[c]=="number"?A[c]:this[c];_=this[p]._processChunk(A,C),r.concat=o}catch(C){r.concat=o,this[m](new a(C))}finally{this[p]&&(this[p]._handle=W,W.close=E,this[p].close=g,this[p].removeAllListeners("error"))}this[p]&&this[p].on("error",C=>this[m](new a(C)));let P;if(_)if(Array.isArray(_)&&_.length>0){P=this[u](r.from(_[0]));for(let C=1;C<_.length;C++)P=this[u](_[C])}else P=this[u](r.from(_));return Y&&Y(),P}[u](A){return super.write(A)}},x=class extends O{constructor(A,N){A=A||{},A.flush=A.flush||n.Z_NO_FLUSH,A.finishFlush=A.finishFlush||n.Z_FINISH,super(A,N),this[f]=n.Z_FULL_FLUSH,this[y]=A.level,this[v]=A.strategy}params(A,N){if(!this[d]){if(!this[p])throw new Error("cannot switch params when binding is closed");if(!this[p].params)throw new Error("not supported in this implementation");if(this[y]!==A||this[v]!==N){this.flush(n.Z_SYNC_FLUSH),e(this[p],"zlib binding closed");let Y=this[p].flush;this[p].flush=(W,E)=>{this.flush(W),E()};try{this[p].params(A,N)}finally{this[p].flush=Y}this[p]&&(this[y]=A,this[v]=N)}}}},B=class extends x{constructor(A){super(A,"Deflate")}},b=class extends x{constructor(A){super(A,"Inflate")}},S=Symbol("_portable"),M=class extends x{constructor(A){super(A,"Gzip"),this[S]=A&&!!A.portable}[u](A){return this[S]?(this[S]=!1,A[9]=255,super[u](A)):super[u](A)}},U=class extends x{constructor(A){super(A,"Gunzip")}},L=class extends x{constructor(A){super(A,"DeflateRaw")}},k=class extends x{constructor(A){super(A,"InflateRaw")}},I=class extends x{constructor(A){super(A,"Unzip")}},j=class extends O{constructor(A,N){A=A||{},A.flush=A.flush||n.BROTLI_OPERATION_PROCESS,A.finishFlush=A.finishFlush||n.BROTLI_OPERATION_FINISH,super(A,N),this[f]=n.BROTLI_OPERATION_FLUSH}},R=class extends j{constructor(A){super(A,"BrotliCompress")}},D=class extends j{constructor(A){super(A,"BrotliDecompress")}};t.Deflate=B,t.Inflate=b,t.Gzip=M,t.Gunzip=U,t.DeflateRaw=L,t.InflateRaw=k,t.Unzip=I,typeof i.BrotliCompress=="function"?(t.BrotliCompress=R,t.BrotliDecompress=D):t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),Dn=Q((t,e)=>{K();var r=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;e.exports=r!=="win32"?i=>i:i=>i&&i.replace(/\\/g,"/")}),Rl=Q((t,e)=>{"use strict";K();var r=Cl(),i=Dn(),n=Symbol("slurp");e.exports=class extends r{constructor(s,o,u){switch(super(),this.pause(),this.extended=o,this.globalExtended=u,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),u&&this[n](u,!0)}write(s){let o=s.length;if(o>this.blockRemain)throw new Error("writing more to entry than is appropriate");let u=this.remain,a=this.blockRemain;return this.remain=Math.max(0,u-o),this.blockRemain=Math.max(0,a-o),this.ignore?!0:u>=o?super.write(s):super.write(s.slice(0,u))}[n](s,o){for(let u in s)s[u]!==null&&s[u]!==void 0&&!(o&&u==="path")&&(this[u]=u==="path"||u==="linkpath"?i(s[u]):s[u])}}}),ay=Q(t=>{"use strict";K(),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]]))}),ex=Q((t,e)=>{"use strict";K();var r=(c,h)=>{if(Number.isSafeInteger(c))c<0?n(c,h):i(c,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},i=(c,h)=>{h[0]=128;for(var f=h.length;f>1;f--)h[f-1]=c&255,c=Math.floor(c/256)},n=(c,h)=>{h[0]=255;var f=!1;c=c*-1;for(var p=h.length;p>1;p--){var m=c&255;c=Math.floor(c/256),f?h[p-1]=a(m):m===0?h[p-1]=0:(f=!0,h[p-1]=l(m))}},s=c=>{let h=c[0],f=h===128?u(c.slice(1,c.length)):h===255?o(c):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=c=>{for(var h=c.length,f=0,p=!1,m=h-1;m>-1;m--){var d=c[m],y;p?y=a(d):d===0?y=d:(p=!0,y=l(d)),y!==0&&(f-=y*Math.pow(256,h-m-1))}return f},u=c=>{for(var h=c.length,f=0,p=h-1;p>-1;p--){var m=c[p];m!==0&&(f+=m*Math.pow(256,h-p-1))}return f},a=c=>(255^c)&255,l=c=>(255^c)+1&255;e.exports={encode:r,parse:s}}),_n=Q((t,e)=>{"use strict";K();var r=ay(),i=te("path").posix,n=ex(),s=Symbol("slurp"),o=Symbol("type"),u=class{constructor(b,S,M,U){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(b)?this.decode(b,S||0,M,U):b&&this.set(b)}decode(b,S,M,U){if(S||(S=0),!b||!(b.length>=S+512))throw new Error("need 512 bytes for header");if(this.path=l(b,S,100),this.mode=f(b,S+100,8),this.uid=f(b,S+108,8),this.gid=f(b,S+116,8),this.size=f(b,S+124,12),this.mtime=c(b,S+136,12),this.cksum=f(b,S+148,12),this[s](M),this[s](U,!0),this[o]=l(b,S+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=l(b,S+157,100),b.slice(S+257,S+265).toString()==="ustar\x0000")if(this.uname=l(b,S+265,32),this.gname=l(b,S+297,32),this.devmaj=f(b,S+329,8),this.devmin=f(b,S+337,8),b[S+475]!==0){let k=l(b,S+345,155);this.path=k+"/"+this.path}else{let k=l(b,S+345,130);k&&(this.path=k+"/"+this.path),this.atime=c(b,S+476,12),this.ctime=c(b,S+488,12)}let L=8*32;for(let k=S;k<S+148;k++)L+=b[k];for(let k=S+156;k<S+512;k++)L+=b[k];this.cksumValid=L===this.cksum,this.cksum===null&&L===8*32&&(this.nullBlock=!0)}[s](b,S){for(let M in b)b[M]!==null&&b[M]!==void 0&&!(S&&M==="path")&&(this[M]=b[M])}encode(b,S){if(b||(b=this.block=Buffer.alloc(512),S=0),S||(S=0),!(b.length>=S+512))throw new Error("need 512 bytes for header");let M=this.ctime||this.atime?130:155,U=a(this.path||"",M),L=U[0],k=U[1];this.needPax=U[2],this.needPax=B(b,S,100,L)||this.needPax,this.needPax=y(b,S+100,8,this.mode)||this.needPax,this.needPax=y(b,S+108,8,this.uid)||this.needPax,this.needPax=y(b,S+116,8,this.gid)||this.needPax,this.needPax=y(b,S+124,12,this.size)||this.needPax,this.needPax=O(b,S+136,12,this.mtime)||this.needPax,b[S+156]=this[o].charCodeAt(0),this.needPax=B(b,S+157,100,this.linkpath)||this.needPax,b.write("ustar\x0000",S+257,8),this.needPax=B(b,S+265,32,this.uname)||this.needPax,this.needPax=B(b,S+297,32,this.gname)||this.needPax,this.needPax=y(b,S+329,8,this.devmaj)||this.needPax,this.needPax=y(b,S+337,8,this.devmin)||this.needPax,this.needPax=B(b,S+345,M,k)||this.needPax,b[S+475]!==0?this.needPax=B(b,S+345,155,k)||this.needPax:(this.needPax=B(b,S+345,130,k)||this.needPax,this.needPax=O(b,S+476,12,this.atime)||this.needPax,this.needPax=O(b,S+488,12,this.ctime)||this.needPax);let I=8*32;for(let j=S;j<S+148;j++)I+=b[j];for(let j=S+156;j<S+512;j++)I+=b[j];return this.cksum=I,y(b,S+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(b){for(let S in b)b[S]!==null&&b[S]!==void 0&&(this[S]=b[S])}get type(){return r.name.get(this[o])||this[o]}get typeKey(){return this[o]}set type(b){r.code.has(b)?this[o]=r.code.get(b):this[o]=b}},a=(b,S)=>{let M=b,U="",L,k=i.parse(b).root||".";if(Buffer.byteLength(M)<100)L=[M,U,!1];else{U=i.dirname(M),M=i.basename(M);do Buffer.byteLength(M)<=100&&Buffer.byteLength(U)<=S?L=[M,U,!1]:Buffer.byteLength(M)>100&&Buffer.byteLength(U)<=S?L=[M.slice(0,100-1),U,!0]:(M=i.join(i.basename(U),M),U=i.dirname(U));while(U!==k&&!L);L||(L=[b.slice(0,100-1),"",!0])}return L},l=(b,S,M)=>b.slice(S,S+M).toString("utf8").replace(/\0.*/,""),c=(b,S,M)=>h(f(b,S,M)),h=b=>b===null?null:new Date(b*1e3),f=(b,S,M)=>b[S]&128?n.parse(b.slice(S,S+M)):m(b,S,M),p=b=>isNaN(b)?null:b,m=(b,S,M)=>p(parseInt(b.slice(S,S+M).toString("utf8").replace(/\0.*$/,"").trim(),8)),d={12:8589934591,8:2097151},y=(b,S,M,U)=>U===null?!1:U>d[M]||U<0?(n.encode(U,b.slice(S,S+M)),!0):(v(b,S,M,U),!1),v=(b,S,M,U)=>b.write(F(U,M),S,M,"ascii"),F=(b,S)=>T(Math.floor(b).toString(8),S),T=(b,S)=>(b.length===S-1?b:new Array(S-b.length-1).join("0")+b+" ")+"\0",O=(b,S,M,U)=>U===null?!1:y(b,S,M,U.getTime()/1e3),x=new Array(156).join("\0"),B=(b,S,M,U)=>U===null?!1:(b.write(U+x,S,M,"utf8"),U.length!==Buffer.byteLength(U)||U.length>M);e.exports=u}),xl=Q((t,e)=>{"use strict";K();var r=_n(),i=te("path"),n=class{constructor(a,l){this.atime=a.atime||null,this.charset=a.charset||null,this.comment=a.comment||null,this.ctime=a.ctime||null,this.gid=a.gid||null,this.gname=a.gname||null,this.linkpath=a.linkpath||null,this.mtime=a.mtime||null,this.path=a.path||null,this.size=a.size||null,this.uid=a.uid||null,this.uname=a.uname||null,this.dev=a.dev||null,this.ino=a.ino||null,this.nlink=a.nlink||null,this.global=l||!1}encode(){let a=this.encodeBody();if(a==="")return null;let l=Buffer.byteLength(a),c=512*Math.ceil(1+l/512),h=Buffer.allocUnsafe(c);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:l,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(a,512,l,"utf8");for(let f=l+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(a){if(this[a]===null||this[a]===void 0)return"";let l=this[a]instanceof Date?this[a].getTime()/1e3:this[a],c=" "+(a==="dev"||a==="ino"||a==="nlink"?"SCHILY.":"")+a+"="+l+`
|
38
|
+
`+t.slice(o+1):a+=t.slice(n),a.slice(1)}function fA(t){for(var e="",r=0,i,n=0;n<t.length;r>=65536?n+=2:n++)r=un(t,n),i=Oe[r],!i&&hn(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||iA(r);return e}function pA(t,e,r){var i="",n=t.tag,s,o,u;for(s=0,o=r.length;s<o;s+=1)u=r[s],t.replacer&&(u=t.replacer.call(r,String(s),u)),(kt(t,e,u,!1,!1)||typeof u=="undefined"&&kt(t,e,null,!1,!1))&&(i!==""&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=n,t.dump="["+i+"]"}function xp(t,e,r,i){var n="",s=t.tag,o,u,a;for(o=0,u=r.length;o<u;o+=1)a=r[o],t.replacer&&(a=t.replacer.call(r,String(o),a)),(kt(t,e+1,a,!0,!0,!1,!0)||typeof a=="undefined"&&kt(t,e+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=ku(t,e)),t.dump&&ln===t.dump.charCodeAt(0)?n+="-":n+="- ",n+=t.dump);t.tag=s,t.dump=n||"[]"}function dA(t,e,r){var i="",n=t.tag,s=Object.keys(r),o,u,a,l,c;for(o=0,u=s.length;o<u;o+=1)c="",i!==""&&(c+=", "),t.condenseFlow&&(c+='"'),a=s[o],l=r[a],t.replacer&&(l=t.replacer.call(r,a,l)),kt(t,e,a,!1,!1)&&(t.dump.length>1024&&(c+="? "),c+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),kt(t,e,l,!1,!1)&&(c+=t.dump,i+=c));t.tag=n,t.dump="{"+i+"}"}function mA(t,e,r,i){var n="",s=t.tag,o=Object.keys(r),u,a,l,c,h,f;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new je("sortKeys must be a boolean or a function");for(u=0,a=o.length;u<a;u+=1)f="",(!i||n!=="")&&(f+=ku(t,e)),l=o[u],c=r[l],t.replacer&&(c=t.replacer.call(r,l,c)),kt(t,e+1,l,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&ln===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=ku(t,e)),kt(t,e+1,c,!0,h)&&(t.dump&&ln===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,n+=f));t.tag=s,t.dump=n||"{}"}function Fp(t,e,r){var i,n,s,o,u,a;for(n=r?t.explicitTypes:t.implicitTypes,s=0,o=n.length;s<o;s+=1)if(u=n[s],(u.instanceOf||u.predicate)&&(!u.instanceOf||typeof e=="object"&&e instanceof u.instanceOf)&&(!u.predicate||u.predicate(e))){if(r?u.multi&&u.representName?t.tag=u.representName(e):t.tag=u.tag:t.tag="?",u.represent){if(a=t.styleMap[u.tag]||u.defaultStyle,od.call(u.represent)==="[object Function]")i=u.represent(e,a);else if(ud.call(u.represent,a))i=u.represent[a](e,a);else throw new je("!<"+u.tag+'> tag resolver accepts not "'+a+'" style');t.dump=i}return!0}return!1}function kt(t,e,r,i,n,s,o){t.tag=null,t.dump=r,Fp(t,r,!1)||Fp(t,r,!0);var u=od.call(t.dump),a=i,l;i&&(i=t.flowLevel<0||t.flowLevel>e);var c=u==="[object Object]"||u==="[object Array]",h,f;if(c&&(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(c&&f&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),u==="[object Object]")i&&Object.keys(t.dump).length!==0?(mA(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(dA(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(u==="[object Array]")i&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?xp(t,e-1,t.dump,n):xp(t,e,t.dump,n),f&&(t.dump="&ref_"+h+t.dump)):(pA(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(u==="[object String]")t.tag!=="?"&&cA(t,t.dump,e,s,a);else{if(u==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new je("unacceptable kind of an object to dump "+u)}t.tag!==null&&t.tag!=="?"&&(l=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",t.dump=l+" "+t.dump)}return!0}function yA(t,e){var r=[],i=[],n,s;for(Bu(t,r,i),n=0,s=i.length;n<s;n+=1)e.duplicates.push(r[i[n]]);e.usedDuplicates=new Array(s)}function Bu(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)Bu(t[n],e,r);else for(i=Object.keys(t),n=0,s=i.length;n<s;n+=1)Bu(t[i[n]],e,r)}function gA(t,e){e=e||{};var r=new sA(e);r.noRefs||yA(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),kt(r,0,i,!0,!0)?r.dump+`
|
39
|
+
`:""}var EA=gA,DA={dump:EA};function Hu(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 _A=Fe,bA=kp,wA=Ip,SA=qp,AA=$p,vA=Iu,CA=sd.load,RA=sd.loadAll,xA=DA.dump,FA=je,OA={binary:Yp,float:Hp,map:Pp,null:Np,pairs:Vp,set:Zp,timestamp:zp,bool:Mp,int:jp,merge:Wp,omap:Kp,seq:Bp,str:Lp},TA=Hu("safeLoad","load"),kA=Hu("safeLoadAll","loadAll"),LA=Hu("safeDump","dump"),BA={Type:_A,Schema:bA,FAILSAFE_SCHEMA:wA,JSON_SCHEMA:SA,CORE_SCHEMA:AA,DEFAULT_SCHEMA:vA,load:CA,loadAll:RA,dump:xA,YAMLException:FA,types:OA,safeLoad:TA,safeLoadAll:kA,safeDump:LA},qu=BA;var e2=ie($s(),1),r2=require("fs-extra"),n2=require("fs-extra"),o2=require("chalk"),Sy=require("stream"),Ay=require("util"),c2=require("fs-extra"),d2=require("chalk"),y2=require("fs-extra"),Nr=ie(require("path"),1),He=require("fs-extra"),vy=ie(ai(),1),Cy=ie(require("path"),1),Ry=require("fs-extra"),xy=ie(require("chalk"),1),Nt=ie(require("path"),1),Fy=ie(ai(),1),Ze=require("fs-extra"),Oy=ie($s(),1);var gn=ie(require("path"),1),wt=require("fs-extra"),vi=ie(require("path"),1),St=require("fs-extra"),En=ie(require("path"),1),At=require("fs-extra"),mF=ie(require("chalk"),1),yF=ie(require("gradient-string"),1),gF=ie(ai(),1),EF=ie(require("ora"),1),DF=require("semver"),_F=ie(require("chalk"),1),NR=Object.create,vl=Object.defineProperty,MR=Object.getOwnPropertyDescriptor,jR=Object.getOwnPropertyNames,HR=Object.getPrototypeOf,qR=Object.prototype.hasOwnProperty,te=(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')}),$R=(t,e)=>()=>(t&&(e=t(t=0)),e),ee=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),UR=(t,e)=>{for(var r in e)vl(t,r,{get:e[r],enumerable:!0})},GR=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of jR(e))!qR.call(t,n)&&n!==r&&vl(t,n,{get:()=>e[n],enumerable:!(i=MR(e,n))||i.enumerable});return t},zs=(t,e,r)=>(r=t!=null?NR(HR(t)):{},GR(e||!t||!t.__esModule?vl(r,"default",{value:t,enumerable:!0}):r,t)),W=$R(()=>{}),zR=ee((t,e)=>{W();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}),WR=ee((t,e)=>{W();var r=zR().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,u=o.hasOwnProperty,a=Object.defineProperty||function(P,p,m){P[p]=m.value},l=typeof Symbol=="function"?Symbol:{},c=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",f=l.toStringTag||"@@toStringTag";function d(P,p,m){return Object.defineProperty(P,p,{value:m,enumerable:!0,configurable:!0,writable:!0}),P[p]}try{d({},"")}catch{d=function(P,p,m){return P[p]=m}}function g(P,p,m,D){var A=p&&p.prototype instanceof R?p:R,w=Object.create(A.prototype),I=new j(D||[]);return a(w,"_invoke",{value:V(P,m,I)}),w}function y(P,p,m){try{return{type:"normal",arg:P.call(p,m)}}catch(D){return{type:"throw",arg:D}}}s.wrap=g;var E="suspendedStart",v="suspendedYield",F="executing",O="completed",x={};function R(){}function L(){}function _(){}var S={};d(S,c,function(){return this});var N=Object.getPrototypeOf,q=N&&N(N(z([])));q&&q!==o&&u.call(q,c)&&(S=q);var k=_.prototype=R.prototype=Object.create(S);function U(P){["next","throw","return"].forEach(function(p){d(P,p,function(m){return this._invoke(p,m)})})}function K(P,p){function m(A,w,I,M){var Z=y(P[A],P,w);if(Z.type!=="throw"){var $=Z.arg,X=$.value;return X&&r(X)=="object"&&u.call(X,"__await")?p.resolve(X.__await).then(function(G){m("next",G,I,M)},function(G){m("throw",G,I,M)}):p.resolve(X).then(function(G){$.value=G,I($)},function(G){return m("throw",G,I,M)})}M(Z.arg)}var D;a(this,"_invoke",{value:function(A,w){function I(){return new p(function(M,Z){m(A,w,M,Z)})}return D=D?D.then(I,I):I()}})}function V(P,p,m){var D=E;return function(A,w){if(D===F)throw new Error("Generator is already running");if(D===O){if(A==="throw")throw w;return{value:n,done:!0}}for(m.method=A,m.arg=w;;){var I=m.delegate;if(I){var M=B(I,m);if(M){if(M===x)continue;return M}}if(m.method==="next")m.sent=m._sent=m.arg;else if(m.method==="throw"){if(D===E)throw D=O,m.arg;m.dispatchException(m.arg)}else m.method==="return"&&m.abrupt("return",m.arg);D=F;var Z=y(P,p,m);if(Z.type==="normal"){if(D=m.done?O:v,Z.arg===x)continue;return{value:Z.arg,done:m.done}}Z.type==="throw"&&(D=O,m.method="throw",m.arg=Z.arg)}}}function B(P,p){var m=p.method,D=P.iterator[m];if(D===n)return p.delegate=null,m==="throw"&&P.iterator.return&&(p.method="return",p.arg=n,B(P,p),p.method==="throw")||m!=="return"&&(p.method="throw",p.arg=new TypeError("The iterator does not provide a '"+m+"' method")),x;var A=y(D,P.iterator,p.arg);if(A.type==="throw")return p.method="throw",p.arg=A.arg,p.delegate=null,x;var w=A.arg;return w?w.done?(p[P.resultName]=w.value,p.next=P.nextLoc,p.method!=="return"&&(p.method="next",p.arg=n),p.delegate=null,x):w:(p.method="throw",p.arg=new TypeError("iterator result is not an object"),p.delegate=null,x)}function C(P){var p={tryLoc:P[0]};1 in P&&(p.catchLoc=P[1]),2 in P&&(p.finallyLoc=P[2],p.afterLoc=P[3]),this.tryEntries.push(p)}function T(P){var p=P.completion||{};p.type="normal",delete p.arg,P.completion=p}function j(P){this.tryEntries=[{tryLoc:"root"}],P.forEach(C,this),this.reset(!0)}function z(P){if(P||P===""){var p=P[c];if(p)return p.call(P);if(typeof P.next=="function")return P;if(!isNaN(P.length)){var m=-1,D=function A(){for(;++m<P.length;)if(u.call(P,m))return A.value=P[m],A.done=!1,A;return A.value=n,A.done=!0,A};return D.next=D}}throw new TypeError(r(P)+" is not iterable")}return L.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:L,configurable:!0}),L.displayName=d(_,f,"GeneratorFunction"),s.isGeneratorFunction=function(P){var p=typeof P=="function"&&P.constructor;return!!p&&(p===L||(p.displayName||p.name)==="GeneratorFunction")},s.mark=function(P){return Object.setPrototypeOf?Object.setPrototypeOf(P,_):(P.__proto__=_,d(P,f,"GeneratorFunction")),P.prototype=Object.create(k),P},s.awrap=function(P){return{__await:P}},U(K.prototype),d(K.prototype,h,function(){return this}),s.AsyncIterator=K,s.async=function(P,p,m,D,A){A===void 0&&(A=Promise);var w=new K(g(P,p,m,D),A);return s.isGeneratorFunction(p)?w:w.next().then(function(I){return I.done?I.value:w.next()})},U(k),d(k,f,"Generator"),d(k,c,function(){return this}),d(k,"toString",function(){return"[object Generator]"}),s.keys=function(P){var p=Object(P),m=[];for(var D in p)m.push(D);return m.reverse(),function A(){for(;m.length;){var w=m.pop();if(w in p)return A.value=w,A.done=!1,A}return A.done=!0,A}},s.values=z,j.prototype={constructor:j,reset:function(P){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(T),!P)for(var p in this)p.charAt(0)==="t"&&u.call(this,p)&&!isNaN(+p.slice(1))&&(this[p]=n)},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var p=this;function m(Z,$){return w.type="throw",w.arg=P,p.next=Z,$&&(p.method="next",p.arg=n),!!$}for(var D=this.tryEntries.length-1;D>=0;--D){var A=this.tryEntries[D],w=A.completion;if(A.tryLoc==="root")return m("end");if(A.tryLoc<=this.prev){var I=u.call(A,"catchLoc"),M=u.call(A,"finallyLoc");if(I&&M){if(this.prev<A.catchLoc)return m(A.catchLoc,!0);if(this.prev<A.finallyLoc)return m(A.finallyLoc)}else if(I){if(this.prev<A.catchLoc)return m(A.catchLoc,!0)}else{if(!M)throw new Error("try statement without catch or finally");if(this.prev<A.finallyLoc)return m(A.finallyLoc)}}}},abrupt:function(P,p){for(var m=this.tryEntries.length-1;m>=0;--m){var D=this.tryEntries[m];if(D.tryLoc<=this.prev&&u.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var A=D;break}}A&&(P==="break"||P==="continue")&&A.tryLoc<=p&&p<=A.finallyLoc&&(A=null);var w=A?A.completion:{};return w.type=P,w.arg=p,A?(this.method="next",this.next=A.finallyLoc,x):this.complete(w)},complete:function(P,p){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&p&&(this.next=p),x},finish:function(P){for(var p=this.tryEntries.length-1;p>=0;--p){var m=this.tryEntries[p];if(m.finallyLoc===P)return this.complete(m.completion,m.afterLoc),T(m),x}},catch:function(P){for(var p=this.tryEntries.length-1;p>=0;--p){var m=this.tryEntries[p];if(m.tryLoc===P){var D=m.completion;if(D.type==="throw"){var A=D.arg;T(m)}return A}}throw new Error("illegal catch attempt")},delegateYield:function(P,p,m){return this.delegate={iterator:z(P),resultName:p,nextLoc:m},this.method==="next"&&(this.arg=n),x}},s}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}),YR=ee((t,e)=>{W();var r=WR()();e.exports=r;try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}),KR=ee((t,e)=>{"use strict";W();var r=(i,...n)=>new Promise(s=>{s(i(...n))});e.exports=r,e.exports.default=r}),VR=ee((t,e)=>{"use strict";W();var r=KR(),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,u=()=>{o--,s.length>0&&s.shift()()},a=(h,f,...d)=>{o++;let g=r(h,...d);f(g),g.then(u,u)},l=(h,f,...d)=>{o<n?a(h,f,...d):s.push(a.bind(null,h,f,...d))},c=(h,...f)=>new Promise(d=>l(h,d,...f));return Object.defineProperties(c,{activeCount:{get:()=>o},pendingCount:{get:()=>s.length},clearQueue:{value:()=>{s.length=0}}}),c};e.exports=i,e.exports.default=i}),ZR=ee((t,e)=>{"use strict";W();var r=VR(),i=class extends Error{constructor(u){super(),this.value=u}},n=async(u,a)=>a(await u),s=async u=>{let a=await Promise.all(u);if(a[1]===!0)throw new i(a[0]);return!1},o=async(u,a,l)=>{l={concurrency:1/0,preserveOrder:!0,...l};let c=r(l.concurrency),h=[...u].map(d=>[d,c(n,d,a)]),f=r(l.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}),JR=ee((t,e)=>{"use strict";W();var r=te("path"),i=te("fs"),{promisify:n}=te("util"),s=ZR(),o=n(i.stat),u=n(i.lstat),a={directory:"isDirectory",file:"isFile"};function l({type:h}){if(!(h in a))throw new Error(`Invalid type specified: ${h}`)}var c=(h,f)=>h===void 0||f[a[h]]();e.exports=async(h,f)=>{f={cwd:process.cwd(),type:"file",allowSymlinks:!0,...f},l(f);let d=f.allowSymlinks?o:u;return s(h,async g=>{try{let y=await d(r.resolve(f.cwd,g));return c(f.type,y)}catch{return!1}},f)},e.exports.sync=(h,f)=>{f={cwd:process.cwd(),allowSymlinks:!0,type:"file",...f},l(f);let d=f.allowSymlinks?i.statSync:i.lstatSync;for(let g of h)try{let y=d(r.resolve(f.cwd,g));if(c(f.type,y))return g}catch{}}}),XR=ee((t,e)=>{"use strict";W();var r=te("fs"),{promisify:i}=te("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}}}),QR=ee((t,e)=>{"use strict";W();var r=te("path"),i=JR(),n=XR(),s=Symbol("findUp.stop");e.exports=async(o,u={})=>{let a=r.resolve(u.cwd||""),{root:l}=r.parse(a),c=[].concat(o),h=async f=>{if(typeof o!="function")return i(c,f);let d=await o(f.cwd);return typeof d=="string"?i([d],f):d};for(;;){let f=await h({...u,cwd:a});if(f===s)return;if(f)return r.resolve(a,f);if(a===l)return;a=r.dirname(a)}},e.exports.sync=(o,u={})=>{let a=r.resolve(u.cwd||""),{root:l}=r.parse(a),c=[].concat(o),h=f=>{if(typeof o!="function")return i.sync(c,f);let d=o(f.cwd);return typeof d=="string"?i.sync([d],f):d};for(;;){let f=h({...u,cwd:a});if(f===s)return;if(f)return r.resolve(a,f);if(a===l)return;a=r.dirname(a)}},e.exports.exists=n,e.exports.sync.exists=n.sync,e.exports.stop=s}),Dn=ee((t,e)=>{"use strict";W();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)):{}}),Cl=ee((t,e)=>{"use strict";W();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=te("events"),n=te("stream"),s=te("string_decoder").StringDecoder,o=Symbol("EOF"),u=Symbol("maybeEmitEnd"),a=Symbol("emittedEnd"),l=Symbol("emittingEnd"),c=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),d=Symbol("flush"),g=Symbol("flushChunk"),y=Symbol("encoding"),E=Symbol("decoder"),v=Symbol("flowing"),F=Symbol("paused"),O=Symbol("resume"),x=Symbol("buffer"),R=Symbol("pipes"),L=Symbol("bufferLength"),_=Symbol("bufferPush"),S=Symbol("bufferShift"),N=Symbol("objectMode"),q=Symbol("destroyed"),k=Symbol("emitData"),U=Symbol("emitEnd"),K=Symbol("emitEnd2"),V=Symbol("async"),B=A=>Promise.resolve().then(A),C=global._MP_NO_ITERATOR_SYMBOLS_!=="1",T=C&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),j=C&&Symbol.iterator||Symbol("iterator not implemented"),z=A=>A==="end"||A==="finish"||A==="prefinish",P=A=>A instanceof ArrayBuffer||typeof A=="object"&&A.constructor&&A.constructor.name==="ArrayBuffer"&&A.byteLength>=0,p=A=>!Buffer.isBuffer(A)&&ArrayBuffer.isView(A),m=class{constructor(A,w,I){this.src=A,this.dest=w,this.opts=I,this.ondrain=()=>A[O](),w.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},D=class extends m{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(A,w,I){super(A,w,I),this.proxyErrors=M=>w.emit("error",M),A.on("error",this.proxyErrors)}};e.exports=class ny extends n{constructor(w){super(),this[v]=!1,this[F]=!1,this[R]=[],this[x]=[],this[N]=w&&w.objectMode||!1,this[N]?this[y]=null:this[y]=w&&w.encoding||null,this[y]==="buffer"&&(this[y]=null),this[V]=w&&!!w.async||!1,this[E]=this[y]?new s(this[y]):null,this[o]=!1,this[a]=!1,this[l]=!1,this[h]=!1,this[c]=null,this.writable=!0,this.readable=!0,this[L]=0,this[q]=!1,w&&w.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[x]}),w&&w.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[R]})}get bufferLength(){return this[L]}get encoding(){return this[y]}set encoding(w){if(this[N])throw new Error("cannot set encoding in objectMode");if(this[y]&&w!==this[y]&&(this[E]&&this[E].lastNeed||this[L]))throw new Error("cannot change encoding");this[y]!==w&&(this[E]=w?new s(w):null,this[x].length&&(this[x]=this[x].map(I=>this[E].write(I)))),this[y]=w}setEncoding(w){this.encoding=w}get objectMode(){return this[N]}set objectMode(w){this[N]=this[N]||!!w}get async(){return this[V]}set async(w){this[V]=this[V]||!!w}write(w,I,M){if(this[o])throw new Error("write after end");if(this[q])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof I=="function"&&(M=I,I="utf8"),I||(I="utf8");let Z=this[V]?B:$=>$();return!this[N]&&!Buffer.isBuffer(w)&&(p(w)?w=Buffer.from(w.buffer,w.byteOffset,w.byteLength):P(w)?w=Buffer.from(w):typeof w!="string"&&(this.objectMode=!0)),this[N]?(this.flowing&&this[L]!==0&&this[d](!0),this.flowing?this.emit("data",w):this[_](w),this[L]!==0&&this.emit("readable"),M&&Z(M),this.flowing):w.length?(typeof w=="string"&&!(I===this[y]&&!this[E].lastNeed)&&(w=Buffer.from(w,I)),Buffer.isBuffer(w)&&this[y]&&(w=this[E].write(w)),this.flowing&&this[L]!==0&&this[d](!0),this.flowing?this.emit("data",w):this[_](w),this[L]!==0&&this.emit("readable"),M&&Z(M),this.flowing):(this[L]!==0&&this.emit("readable"),M&&Z(M),this.flowing)}read(w){if(this[q])return null;if(this[L]===0||w===0||w>this[L])return this[u](),null;this[N]&&(w=null),this[x].length>1&&!this[N]&&(this.encoding?this[x]=[this[x].join("")]:this[x]=[Buffer.concat(this[x],this[L])]);let I=this[f](w||null,this[x][0]);return this[u](),I}[f](w,I){return w===I.length||w===null?this[S]():(this[x][0]=I.slice(w),I=I.slice(0,w),this[L]-=w),this.emit("data",I),!this[x].length&&!this[o]&&this.emit("drain"),I}end(w,I,M){return typeof w=="function"&&(M=w,w=null),typeof I=="function"&&(M=I,I="utf8"),w&&this.write(w,I),M&&this.once("end",M),this[o]=!0,this.writable=!1,(this.flowing||!this[F])&&this[u](),this}[O](){this[q]||(this[F]=!1,this[v]=!0,this.emit("resume"),this[x].length?this[d]():this[o]?this[u]():this.emit("drain"))}resume(){return this[O]()}pause(){this[v]=!1,this[F]=!0}get destroyed(){return this[q]}get flowing(){return this[v]}get paused(){return this[F]}[_](w){this[N]?this[L]+=1:this[L]+=w.length,this[x].push(w)}[S](){return this[x].length&&(this[N]?this[L]-=1:this[L]-=this[x][0].length),this[x].shift()}[d](w){do;while(this[g](this[S]()));!w&&!this[x].length&&!this[o]&&this.emit("drain")}[g](w){return w?(this.emit("data",w),this.flowing):!1}pipe(w,I){if(this[q])return;let M=this[a];return I=I||{},w===r.stdout||w===r.stderr?I.end=!1:I.end=I.end!==!1,I.proxyErrors=!!I.proxyErrors,M?I.end&&w.end():(this[R].push(I.proxyErrors?new D(this,w,I):new m(this,w,I)),this[V]?B(()=>this[O]()):this[O]()),w}unpipe(w){let I=this[R].find(M=>M.dest===w);I&&(this[R].splice(this[R].indexOf(I),1),I.unpipe())}addListener(w,I){return this.on(w,I)}on(w,I){let M=super.on(w,I);return w==="data"&&!this[R].length&&!this.flowing?this[O]():w==="readable"&&this[L]!==0?super.emit("readable"):z(w)&&this[a]?(super.emit(w),this.removeAllListeners(w)):w==="error"&&this[c]&&(this[V]?B(()=>I.call(this,this[c])):I.call(this,this[c])),M}get emittedEnd(){return this[a]}[u](){!this[l]&&!this[a]&&!this[q]&&this[x].length===0&&this[o]&&(this[l]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[l]=!1)}emit(w,I,...M){if(w!=="error"&&w!=="close"&&w!==q&&this[q])return;if(w==="data")return I?this[V]?B(()=>this[k](I)):this[k](I):!1;if(w==="end")return this[U]();if(w==="close"){if(this[h]=!0,!this[a]&&!this[q])return;let $=super.emit("close");return this.removeAllListeners("close"),$}else if(w==="error"){this[c]=I;let $=super.emit("error",I);return this[u](),$}else if(w==="resume"){let $=super.emit("resume");return this[u](),$}else if(w==="finish"||w==="prefinish"){let $=super.emit(w);return this.removeAllListeners(w),$}let Z=super.emit(w,I,...M);return this[u](),Z}[k](w){for(let M of this[R])M.dest.write(w)===!1&&this.pause();let I=super.emit("data",w);return this[u](),I}[U](){this[a]||(this[a]=!0,this.readable=!1,this[V]?B(()=>this[K]()):this[K]())}[K](){if(this[E]){let I=this[E].end();if(I){for(let M of this[R])M.dest.write(I);super.emit("data",I)}}for(let I of this[R])I.end();let w=super.emit("end");return this.removeAllListeners("end"),w}collect(){let w=[];this[N]||(w.dataLength=0);let I=this.promise();return this.on("data",M=>{w.push(M),this[N]||(w.dataLength+=M.length)}),I.then(()=>w)}concat(){return this[N]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(w=>this[N]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?w.join(""):Buffer.concat(w,w.dataLength))}promise(){return new Promise((w,I)=>{this.on(q,()=>I(new Error("stream destroyed"))),this.on("error",M=>I(M)),this.on("end",()=>w())})}[T](){return{next:()=>{let w=this.read();if(w!==null)return Promise.resolve({done:!1,value:w});if(this[o])return Promise.resolve({done:!0});let I=null,M=null,Z=re=>{this.removeListener("data",$),this.removeListener("end",X),M(re)},$=re=>{this.removeListener("error",Z),this.removeListener("end",X),this.pause(),I({value:re,done:!!this[o]})},X=()=>{this.removeListener("error",Z),this.removeListener("data",$),I({done:!0})},G=()=>Z(new Error("stream destroyed"));return new Promise((re,le)=>{M=le,I=re,this.once(q,G),this.once("error",Z),this.once("end",X),this.once("data",$)})}}}[j](){return{next:()=>{let w=this.read();return{value:w,done:w===null}}}}destroy(w){return this[q]?(w?this.emit("error",w):this.emit(q),this):(this[q]=!0,this[x].length=0,this[L]=0,typeof this.close=="function"&&!this[h]&&this.close(),w?this.emit("error",w):this.emit(q),this)}static isStream(w){return!!w&&(w instanceof ny||w instanceof n||w instanceof i&&(typeof w.pipe=="function"||typeof w.write=="function"&&typeof w.end=="function"))}}}),ex=ee((t,e)=>{W();var r=te("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))}),sy=ee((t,e)=>{"use strict";W();var r=typeof process=="object"&&process?process:{stdout:null,stderr:null},i=te("events"),n=te("stream"),s=te("string_decoder").StringDecoder,o=Symbol("EOF"),u=Symbol("maybeEmitEnd"),a=Symbol("emittedEnd"),l=Symbol("emittingEnd"),c=Symbol("emittedError"),h=Symbol("closed"),f=Symbol("read"),d=Symbol("flush"),g=Symbol("flushChunk"),y=Symbol("encoding"),E=Symbol("decoder"),v=Symbol("flowing"),F=Symbol("paused"),O=Symbol("resume"),x=Symbol("bufferLength"),R=Symbol("bufferPush"),L=Symbol("bufferShift"),_=Symbol("objectMode"),S=Symbol("destroyed"),N=Symbol("emitData"),q=Symbol("emitEnd"),k=Symbol("emitEnd2"),U=Symbol("async"),K=m=>Promise.resolve().then(m),V=global._MP_NO_ITERATOR_SYMBOLS_!=="1",B=V&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),C=V&&Symbol.iterator||Symbol("iterator not implemented"),T=m=>m==="end"||m==="finish"||m==="prefinish",j=m=>m instanceof ArrayBuffer||typeof m=="object"&&m.constructor&&m.constructor.name==="ArrayBuffer"&&m.byteLength>=0,z=m=>!Buffer.isBuffer(m)&&ArrayBuffer.isView(m),P=class{constructor(m,D,A){this.src=m,this.dest=D,this.opts=A,this.ondrain=()=>m[O](),D.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},p=class extends P{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(m,D,A){super(m,D,A),this.proxyErrors=w=>D.emit("error",w),m.on("error",this.proxyErrors)}};e.exports=class oy extends n{constructor(D){super(),this[v]=!1,this[F]=!1,this.pipes=[],this.buffer=[],this[_]=D&&D.objectMode||!1,this[_]?this[y]=null:this[y]=D&&D.encoding||null,this[y]==="buffer"&&(this[y]=null),this[U]=D&&!!D.async||!1,this[E]=this[y]?new s(this[y]):null,this[o]=!1,this[a]=!1,this[l]=!1,this[h]=!1,this[c]=null,this.writable=!0,this.readable=!0,this[x]=0,this[S]=!1}get bufferLength(){return this[x]}get encoding(){return this[y]}set encoding(D){if(this[_])throw new Error("cannot set encoding in objectMode");if(this[y]&&D!==this[y]&&(this[E]&&this[E].lastNeed||this[x]))throw new Error("cannot change encoding");this[y]!==D&&(this[E]=D?new s(D):null,this.buffer.length&&(this.buffer=this.buffer.map(A=>this[E].write(A)))),this[y]=D}setEncoding(D){this.encoding=D}get objectMode(){return this[_]}set objectMode(D){this[_]=this[_]||!!D}get async(){return this[U]}set async(D){this[U]=this[U]||!!D}write(D,A,w){if(this[o])throw new Error("write after end");if(this[S])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof A=="function"&&(w=A,A="utf8"),A||(A="utf8");let I=this[U]?K:M=>M();return!this[_]&&!Buffer.isBuffer(D)&&(z(D)?D=Buffer.from(D.buffer,D.byteOffset,D.byteLength):j(D)?D=Buffer.from(D):typeof D!="string"&&(this.objectMode=!0)),this[_]?(this.flowing&&this[x]!==0&&this[d](!0),this.flowing?this.emit("data",D):this[R](D),this[x]!==0&&this.emit("readable"),w&&I(w),this.flowing):D.length?(typeof D=="string"&&!(A===this[y]&&!this[E].lastNeed)&&(D=Buffer.from(D,A)),Buffer.isBuffer(D)&&this[y]&&(D=this[E].write(D)),this.flowing&&this[x]!==0&&this[d](!0),this.flowing?this.emit("data",D):this[R](D),this[x]!==0&&this.emit("readable"),w&&I(w),this.flowing):(this[x]!==0&&this.emit("readable"),w&&I(w),this.flowing)}read(D){if(this[S])return null;if(this[x]===0||D===0||D>this[x])return this[u](),null;this[_]&&(D=null),this.buffer.length>1&&!this[_]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[x])]);let A=this[f](D||null,this.buffer[0]);return this[u](),A}[f](D,A){return D===A.length||D===null?this[L]():(this.buffer[0]=A.slice(D),A=A.slice(0,D),this[x]-=D),this.emit("data",A),!this.buffer.length&&!this[o]&&this.emit("drain"),A}end(D,A,w){return typeof D=="function"&&(w=D,D=null),typeof A=="function"&&(w=A,A="utf8"),D&&this.write(D,A),w&&this.once("end",w),this[o]=!0,this.writable=!1,(this.flowing||!this[F])&&this[u](),this}[O](){this[S]||(this[F]=!1,this[v]=!0,this.emit("resume"),this.buffer.length?this[d]():this[o]?this[u]():this.emit("drain"))}resume(){return this[O]()}pause(){this[v]=!1,this[F]=!0}get destroyed(){return this[S]}get flowing(){return this[v]}get paused(){return this[F]}[R](D){this[_]?this[x]+=1:this[x]+=D.length,this.buffer.push(D)}[L](){return this.buffer.length&&(this[_]?this[x]-=1:this[x]-=this.buffer[0].length),this.buffer.shift()}[d](D){do;while(this[g](this[L]()));!D&&!this.buffer.length&&!this[o]&&this.emit("drain")}[g](D){return D?(this.emit("data",D),this.flowing):!1}pipe(D,A){if(this[S])return;let w=this[a];return A=A||{},D===r.stdout||D===r.stderr?A.end=!1:A.end=A.end!==!1,A.proxyErrors=!!A.proxyErrors,w?A.end&&D.end():(this.pipes.push(A.proxyErrors?new p(this,D,A):new P(this,D,A)),this[U]?K(()=>this[O]()):this[O]()),D}unpipe(D){let A=this.pipes.find(w=>w.dest===D);A&&(this.pipes.splice(this.pipes.indexOf(A),1),A.unpipe())}addListener(D,A){return this.on(D,A)}on(D,A){let w=super.on(D,A);return D==="data"&&!this.pipes.length&&!this.flowing?this[O]():D==="readable"&&this[x]!==0?super.emit("readable"):T(D)&&this[a]?(super.emit(D),this.removeAllListeners(D)):D==="error"&&this[c]&&(this[U]?K(()=>A.call(this,this[c])):A.call(this,this[c])),w}get emittedEnd(){return this[a]}[u](){!this[l]&&!this[a]&&!this[S]&&this.buffer.length===0&&this[o]&&(this[l]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[l]=!1)}emit(D,A,...w){if(D!=="error"&&D!=="close"&&D!==S&&this[S])return;if(D==="data")return A?this[U]?K(()=>this[N](A)):this[N](A):!1;if(D==="end")return this[q]();if(D==="close"){if(this[h]=!0,!this[a]&&!this[S])return;let M=super.emit("close");return this.removeAllListeners("close"),M}else if(D==="error"){this[c]=A;let M=super.emit("error",A);return this[u](),M}else if(D==="resume"){let M=super.emit("resume");return this[u](),M}else if(D==="finish"||D==="prefinish"){let M=super.emit(D);return this.removeAllListeners(D),M}let I=super.emit(D,A,...w);return this[u](),I}[N](D){for(let w of this.pipes)w.dest.write(D)===!1&&this.pause();let A=super.emit("data",D);return this[u](),A}[q](){this[a]||(this[a]=!0,this.readable=!1,this[U]?K(()=>this[k]()):this[k]())}[k](){if(this[E]){let A=this[E].end();if(A){for(let w of this.pipes)w.dest.write(A);super.emit("data",A)}}for(let A of this.pipes)A.end();let D=super.emit("end");return this.removeAllListeners("end"),D}collect(){let D=[];this[_]||(D.dataLength=0);let A=this.promise();return this.on("data",w=>{D.push(w),this[_]||(D.dataLength+=w.length)}),A.then(()=>D)}concat(){return this[_]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(D=>this[_]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?D.join(""):Buffer.concat(D,D.dataLength))}promise(){return new Promise((D,A)=>{this.on(S,()=>A(new Error("stream destroyed"))),this.on("error",w=>A(w)),this.on("end",()=>D())})}[B](){return{next:()=>{let D=this.read();if(D!==null)return Promise.resolve({done:!1,value:D});if(this[o])return Promise.resolve({done:!0});let A=null,w=null,I=X=>{this.removeListener("data",M),this.removeListener("end",Z),w(X)},M=X=>{this.removeListener("error",I),this.removeListener("end",Z),this.pause(),A({value:X,done:!!this[o]})},Z=()=>{this.removeListener("error",I),this.removeListener("data",M),A({done:!0})},$=()=>I(new Error("stream destroyed"));return new Promise((X,G)=>{w=G,A=X,this.once(S,$),this.once("error",I),this.once("end",Z),this.once("data",M)})}}}[C](){return{next:()=>{let D=this.read();return{value:D,done:D===null}}}}destroy(D){return this[S]?(D?this.emit("error",D):this.emit(S),this):(this[S]=!0,this.buffer.length=0,this[x]=0,typeof this.close=="function"&&!this[h]&&this.close(),D?this.emit("error",D):this.emit(S),this)}static isStream(D){return!!D&&(D instanceof oy||D instanceof n||D instanceof i&&(typeof D.pipe=="function"||typeof D.write=="function"&&typeof D.end=="function"))}}}),uy=ee(t=>{"use strict";W();var e=te("assert"),r=te("buffer").Buffer,i=te("zlib"),n=t.constants=ex(),s=sy(),o=r.concat,u=Symbol("_superWrite"),a=class extends Error{constructor(T){super("zlib: "+T.message),this.code=T.code,this.errno=T.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+T.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},l=Symbol("opts"),c=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),f=Symbol("fullFlushFlag"),d=Symbol("handle"),g=Symbol("onError"),y=Symbol("sawError"),E=Symbol("level"),v=Symbol("strategy"),F=Symbol("ended"),O=Symbol("_defaultFullFlush"),x=class extends s{constructor(T,j){if(!T||typeof T!="object")throw new TypeError("invalid options for ZlibBase constructor");super(T),this[y]=!1,this[F]=!1,this[l]=T,this[c]=T.flush,this[h]=T.finishFlush;try{this[d]=new i[j](T)}catch(z){throw new a(z)}this[g]=z=>{this[y]||(this[y]=!0,this.close(),this.emit("error",z))},this[d].on("error",z=>this[g](new a(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(T){this.ended||(typeof T!="number"&&(T=this[f]),this.write(Object.assign(r.alloc(0),{[c]:T})))}end(T,j,z){return T&&this.write(T,j),this.flush(this[h]),this[F]=!0,super.end(null,null,z)}get ended(){return this[F]}write(T,j,z){if(typeof j=="function"&&(z=j,j="utf8"),typeof T=="string"&&(T=r.from(T,j)),this[y])return;e(this[d],"zlib binding closed");let P=this[d]._handle,p=P.close;P.close=()=>{};let m=this[d].close;this[d].close=()=>{},r.concat=w=>w;let D;try{let w=typeof T[c]=="number"?T[c]:this[c];D=this[d]._processChunk(T,w),r.concat=o}catch(w){r.concat=o,this[g](new a(w))}finally{this[d]&&(this[d]._handle=P,P.close=p,this[d].close=m,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",w=>this[g](new a(w)));let A;if(D)if(Array.isArray(D)&&D.length>0){A=this[u](r.from(D[0]));for(let w=1;w<D.length;w++)A=this[u](D[w])}else A=this[u](r.from(D));return z&&z(),A}[u](T){return super.write(T)}},R=class extends x{constructor(T,j){T=T||{},T.flush=T.flush||n.Z_NO_FLUSH,T.finishFlush=T.finishFlush||n.Z_FINISH,super(T,j),this[f]=n.Z_FULL_FLUSH,this[E]=T.level,this[v]=T.strategy}params(T,j){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[E]!==T||this[v]!==j){this.flush(n.Z_SYNC_FLUSH),e(this[d],"zlib binding closed");let z=this[d].flush;this[d].flush=(P,p)=>{this.flush(P),p()};try{this[d].params(T,j)}finally{this[d].flush=z}this[d]&&(this[E]=T,this[v]=j)}}}},L=class extends R{constructor(T){super(T,"Deflate")}},_=class extends R{constructor(T){super(T,"Inflate")}},S=Symbol("_portable"),N=class extends R{constructor(T){super(T,"Gzip"),this[S]=T&&!!T.portable}[u](T){return this[S]?(this[S]=!1,T[9]=255,super[u](T)):super[u](T)}},q=class extends R{constructor(T){super(T,"Gunzip")}},k=class extends R{constructor(T){super(T,"DeflateRaw")}},U=class extends R{constructor(T){super(T,"InflateRaw")}},K=class extends R{constructor(T){super(T,"Unzip")}},V=class extends x{constructor(T,j){T=T||{},T.flush=T.flush||n.BROTLI_OPERATION_PROCESS,T.finishFlush=T.finishFlush||n.BROTLI_OPERATION_FINISH,super(T,j),this[f]=n.BROTLI_OPERATION_FLUSH}},B=class extends V{constructor(T){super(T,"BrotliCompress")}},C=class extends V{constructor(T){super(T,"BrotliDecompress")}};t.Deflate=L,t.Inflate=_,t.Gzip=N,t.Gunzip=q,t.DeflateRaw=k,t.InflateRaw=U,t.Unzip=K,typeof i.BrotliCompress=="function"?(t.BrotliCompress=B,t.BrotliDecompress=C):t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),_n=ee((t,e)=>{W();var r=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;e.exports=r!=="win32"?i=>i:i=>i&&i.replace(/\\/g,"/")}),Rl=ee((t,e)=>{"use strict";W();var r=Cl(),i=_n(),n=Symbol("slurp");e.exports=class extends r{constructor(s,o,u){switch(super(),this.pause(),this.extended=o,this.globalExtended=u,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),u&&this[n](u,!0)}write(s){let o=s.length;if(o>this.blockRemain)throw new Error("writing more to entry than is appropriate");let u=this.remain,a=this.blockRemain;return this.remain=Math.max(0,u-o),this.blockRemain=Math.max(0,a-o),this.ignore?!0:u>=o?super.write(s):super.write(s.slice(0,u))}[n](s,o){for(let u in s)s[u]!==null&&s[u]!==void 0&&!(o&&u==="path")&&(this[u]=u==="path"||u==="linkpath"?i(s[u]):s[u])}}}),ay=ee(t=>{"use strict";W(),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]]))}),tx=ee((t,e)=>{"use strict";W();var r=(c,h)=>{if(Number.isSafeInteger(c))c<0?n(c,h):i(c,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},i=(c,h)=>{h[0]=128;for(var f=h.length;f>1;f--)h[f-1]=c&255,c=Math.floor(c/256)},n=(c,h)=>{h[0]=255;var f=!1;c=c*-1;for(var d=h.length;d>1;d--){var g=c&255;c=Math.floor(c/256),f?h[d-1]=a(g):g===0?h[d-1]=0:(f=!0,h[d-1]=l(g))}},s=c=>{let h=c[0],f=h===128?u(c.slice(1,c.length)):h===255?o(c):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=c=>{for(var h=c.length,f=0,d=!1,g=h-1;g>-1;g--){var y=c[g],E;d?E=a(y):y===0?E=y:(d=!0,E=l(y)),E!==0&&(f-=E*Math.pow(256,h-g-1))}return f},u=c=>{for(var h=c.length,f=0,d=h-1;d>-1;d--){var g=c[d];g!==0&&(f+=g*Math.pow(256,h-d-1))}return f},a=c=>(255^c)&255,l=c=>(255^c)+1&255;e.exports={encode:r,parse:s}}),bn=ee((t,e)=>{"use strict";W();var r=ay(),i=te("path").posix,n=tx(),s=Symbol("slurp"),o=Symbol("type"),u=class{constructor(_,S,N,q){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(_)?this.decode(_,S||0,N,q):_&&this.set(_)}decode(_,S,N,q){if(S||(S=0),!_||!(_.length>=S+512))throw new Error("need 512 bytes for header");if(this.path=l(_,S,100),this.mode=f(_,S+100,8),this.uid=f(_,S+108,8),this.gid=f(_,S+116,8),this.size=f(_,S+124,12),this.mtime=c(_,S+136,12),this.cksum=f(_,S+148,12),this[s](N),this[s](q,!0),this[o]=l(_,S+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=l(_,S+157,100),_.slice(S+257,S+265).toString()==="ustar\x0000")if(this.uname=l(_,S+265,32),this.gname=l(_,S+297,32),this.devmaj=f(_,S+329,8),this.devmin=f(_,S+337,8),_[S+475]!==0){let U=l(_,S+345,155);this.path=U+"/"+this.path}else{let U=l(_,S+345,130);U&&(this.path=U+"/"+this.path),this.atime=c(_,S+476,12),this.ctime=c(_,S+488,12)}let k=8*32;for(let U=S;U<S+148;U++)k+=_[U];for(let U=S+156;U<S+512;U++)k+=_[U];this.cksumValid=k===this.cksum,this.cksum===null&&k===8*32&&(this.nullBlock=!0)}[s](_,S){for(let N in _)_[N]!==null&&_[N]!==void 0&&!(S&&N==="path")&&(this[N]=_[N])}encode(_,S){if(_||(_=this.block=Buffer.alloc(512),S=0),S||(S=0),!(_.length>=S+512))throw new Error("need 512 bytes for header");let N=this.ctime||this.atime?130:155,q=a(this.path||"",N),k=q[0],U=q[1];this.needPax=q[2],this.needPax=L(_,S,100,k)||this.needPax,this.needPax=E(_,S+100,8,this.mode)||this.needPax,this.needPax=E(_,S+108,8,this.uid)||this.needPax,this.needPax=E(_,S+116,8,this.gid)||this.needPax,this.needPax=E(_,S+124,12,this.size)||this.needPax,this.needPax=x(_,S+136,12,this.mtime)||this.needPax,_[S+156]=this[o].charCodeAt(0),this.needPax=L(_,S+157,100,this.linkpath)||this.needPax,_.write("ustar\x0000",S+257,8),this.needPax=L(_,S+265,32,this.uname)||this.needPax,this.needPax=L(_,S+297,32,this.gname)||this.needPax,this.needPax=E(_,S+329,8,this.devmaj)||this.needPax,this.needPax=E(_,S+337,8,this.devmin)||this.needPax,this.needPax=L(_,S+345,N,U)||this.needPax,_[S+475]!==0?this.needPax=L(_,S+345,155,U)||this.needPax:(this.needPax=L(_,S+345,130,U)||this.needPax,this.needPax=x(_,S+476,12,this.atime)||this.needPax,this.needPax=x(_,S+488,12,this.ctime)||this.needPax);let K=8*32;for(let V=S;V<S+148;V++)K+=_[V];for(let V=S+156;V<S+512;V++)K+=_[V];return this.cksum=K,E(_,S+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(_){for(let S in _)_[S]!==null&&_[S]!==void 0&&(this[S]=_[S])}get type(){return r.name.get(this[o])||this[o]}get typeKey(){return this[o]}set type(_){r.code.has(_)?this[o]=r.code.get(_):this[o]=_}},a=(_,S)=>{let N=_,q="",k,U=i.parse(_).root||".";if(Buffer.byteLength(N)<100)k=[N,q,!1];else{q=i.dirname(N),N=i.basename(N);do Buffer.byteLength(N)<=100&&Buffer.byteLength(q)<=S?k=[N,q,!1]:Buffer.byteLength(N)>100&&Buffer.byteLength(q)<=S?k=[N.slice(0,100-1),q,!0]:(N=i.join(i.basename(q),N),q=i.dirname(q));while(q!==U&&!k);k||(k=[_.slice(0,100-1),"",!0])}return k},l=(_,S,N)=>_.slice(S,S+N).toString("utf8").replace(/\0.*/,""),c=(_,S,N)=>h(f(_,S,N)),h=_=>_===null?null:new Date(_*1e3),f=(_,S,N)=>_[S]&128?n.parse(_.slice(S,S+N)):g(_,S,N),d=_=>isNaN(_)?null:_,g=(_,S,N)=>d(parseInt(_.slice(S,S+N).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},E=(_,S,N,q)=>q===null?!1:q>y[N]||q<0?(n.encode(q,_.slice(S,S+N)),!0):(v(_,S,N,q),!1),v=(_,S,N,q)=>_.write(F(q,N),S,N,"ascii"),F=(_,S)=>O(Math.floor(_).toString(8),S),O=(_,S)=>(_.length===S-1?_:new Array(S-_.length-1).join("0")+_+" ")+"\0",x=(_,S,N,q)=>q===null?!1:E(_,S,N,q.getTime()/1e3),R=new Array(156).join("\0"),L=(_,S,N,q)=>q===null?!1:(_.write(q+R,S,N,"utf8"),q.length!==Buffer.byteLength(q)||q.length>N);e.exports=u}),xl=ee((t,e)=>{"use strict";W();var r=bn(),i=te("path"),n=class{constructor(a,l){this.atime=a.atime||null,this.charset=a.charset||null,this.comment=a.comment||null,this.ctime=a.ctime||null,this.gid=a.gid||null,this.gname=a.gname||null,this.linkpath=a.linkpath||null,this.mtime=a.mtime||null,this.path=a.path||null,this.size=a.size||null,this.uid=a.uid||null,this.uname=a.uname||null,this.dev=a.dev||null,this.ino=a.ino||null,this.nlink=a.nlink||null,this.global=l||!1}encode(){let a=this.encodeBody();if(a==="")return null;let l=Buffer.byteLength(a),c=512*Math.ceil(1+l/512),h=Buffer.allocUnsafe(c);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:l,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(a,512,l,"utf8");for(let f=l+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(a){if(this[a]===null||this[a]===void 0)return"";let l=this[a]instanceof Date?this[a].getTime()/1e3:this[a],c=" "+(a==="dev"||a==="ino"||a==="nlink"?"SCHILY.":"")+a+"="+l+`
|
40
40
|
`,h=Buffer.byteLength(c),f=Math.floor(Math.log(h)/Math.log(10))+1;return h+f>=Math.pow(10,f)&&(f+=1),f+h+c}};n.parse=(a,l,c)=>new n(s(o(a),l),c);var s=(a,l)=>l?Object.keys(a).reduce((c,h)=>(c[h]=a[h],c),l):a,o=a=>a.replace(/\n$/,"").split(`
|
41
|
-
`).reduce(u,Object.create(null)),u=(a,l)=>{let c=parseInt(l,10);if(c!==Buffer.byteLength(l)+1)return a;l=l.slice((c+" ").length);let h=l.split("="),f=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!f)return a;let p=h.join("=");return a[f]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(f)?new Date(p*1e3):/^[0-9]+$/.test(p)?+p:p,a};e.exports=n}),bn=Q((t,e)=>{K(),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)}}),Fl=Q((t,e)=>{"use strict";K(),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))}}}),ly=Q((t,e)=>{"use strict";K();var r=["|","<",">","?",":"],i=r.map(o=>String.fromCharCode(61440+o.charCodeAt(0))),n=new Map(r.map((o,u)=>[o,i[u]])),s=new Map(i.map((o,u)=>[o,r[u]]));e.exports={encode:o=>r.reduce((u,a)=>u.split(a).join(n.get(a)),o),decode:o=>i.reduce((u,a)=>u.split(a).join(s.get(a)),o)}}),cy=Q((t,e)=>{K();var{isAbsolute:r,parse:i}=te("path").win32;e.exports=n=>{let s="",o=i(n);for(;r(n)||o.root;){let u=n.charAt(0)==="/"&&n.slice(0,4)!=="//?/"?"/":o.root;n=n.slice(u.length),s+=u,o=i(n)}return[s,n]}}),tx=Q((t,e)=>{"use strict";K(),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)}),hy=Q((t,e)=>{"use strict";K();var r=Cl(),i=xl(),n=_n(),s=te("fs"),o=te("path"),u=Dn(),a=bn(),l=(g,_)=>_?(g=u(g).replace(/^\.(\/|$)/,""),a(_)+"/"+g):u(g),c=16*1024*1024,h=Symbol("process"),f=Symbol("file"),p=Symbol("directory"),m=Symbol("symlink"),d=Symbol("hardlink"),y=Symbol("header"),v=Symbol("read"),F=Symbol("lstat"),T=Symbol("onlstat"),O=Symbol("onread"),x=Symbol("onreadlink"),B=Symbol("openfile"),b=Symbol("onopenfile"),S=Symbol("close"),M=Symbol("mode"),U=Symbol("awaitDrain"),L=Symbol("ondrain"),k=Symbol("prefix"),I=Symbol("hadError"),j=Fl(),R=ly(),D=cy(),A=tx(),N=j(class extends r{constructor(g,_){if(_=_||{},super(_),typeof g!="string")throw new TypeError("path is required");this.path=u(g),this.portable=!!_.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=_.maxReadSize||c,this.linkCache=_.linkCache||new Map,this.statCache=_.statCache||new Map,this.preservePaths=!!_.preservePaths,this.cwd=u(_.cwd||process.cwd()),this.strict=!!_.strict,this.noPax=!!_.noPax,this.noMtime=!!_.noMtime,this.mtime=_.mtime||null,this.prefix=_.prefix?u(_.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 _.onwarn=="function"&&this.on("warn",_.onwarn);let P=!1;if(!this.preservePaths){let[C,$]=D(this.path);C&&(this.path=$,P=C)}this.win32=!!_.win32||process.platform==="win32",this.win32&&(this.path=R.decode(this.path.replace(/\\/g,"/")),g=g.replace(/\\/g,"/")),this.absolute=u(_.absolute||o.resolve(this.cwd,g)),this.path===""&&(this.path="./"),P&&this.warn("TAR_ENTRY_INFO",`stripping ${P} from absolute path`,{entry:this,path:P+this.path}),this.statCache.has(this.absolute)?this[T](this.statCache.get(this.absolute)):this[F]()}emit(g,..._){return g==="error"&&(this[I]=!0),super.emit(g,..._)}[F](){s.lstat(this.absolute,(g,_)=>{if(g)return this.emit("error",g);this[T](_)})}[T](g){this.statCache.set(this.absolute,g),this.stat=g,g.isFile()||(g.size=0),this.type=E(g),this.emit("stat",g),this[h]()}[h](){switch(this.type){case"File":return this[f]();case"Directory":return this[p]();case"SymbolicLink":return this[m]();default:return this.end()}}[M](g){return A(g,this.type==="Directory",this.portable)}[k](g){return l(g,this.prefix)}[y](){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[M](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)}[p](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[y](),this.end()}[m](){s.readlink(this.absolute,(g,_)=>{if(g)return this.emit("error",g);this[x](_)})}[x](g){this.linkpath=u(g),this[y](),this.end()}[d](g){this.type="Link",this.linkpath=u(o.relative(this.cwd,g)),this.stat.size=0,this[y](),this.end()}[f](){if(this.stat.nlink>1){let g=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(g)){let _=this.linkCache.get(g);if(_.indexOf(this.cwd)===0)return this[d](_)}this.linkCache.set(g,this.absolute)}if(this[y](),this.stat.size===0)return this.end();this[B]()}[B](){s.open(this.absolute,"r",(g,_)=>{if(g)return this.emit("error",g);this[b](_)})}[b](g){if(this.fd=g,this[I])return this[S]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let _=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(_),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[v]()}[v](){let{fd:g,buf:_,offset:P,length:C,pos:$}=this;s.read(g,_,P,C,$,(q,Z)=>{if(q)return this[S](()=>this.emit("error",q));this[O](Z)})}[S](g){s.close(this.fd,g)}[O](g){if(g<=0&&this.remain>0){let P=new Error("encountered unexpected EOF");return P.path=this.absolute,P.syscall="read",P.code="EOF",this[S](()=>this.emit("error",P))}if(g>this.remain){let P=new Error("did not encounter expected EOF");return P.path=this.absolute,P.syscall="read",P.code="EOF",this[S](()=>this.emit("error",P))}if(g===this.remain)for(let P=g;P<this.length&&g<this.blockRemain;P++)this.buf[P+this.offset]=0,g++,this.remain++;let _=this.offset===0&&g===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+g);this.write(_)?this[L]():this[U](()=>this[L]())}[U](g){this.once("drain",g)}write(g){if(this.blockRemain<g.length){let _=new Error("writing more data than expected");return _.path=this.absolute,this.emit("error",_)}return this.remain-=g.length,this.blockRemain-=g.length,this.pos+=g.length,this.offset+=g.length,super.write(g)}[L](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[S](g=>g?this.emit("error",g):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]()}}),Y=class extends N{[F](){this[T](s.lstatSync(this.absolute))}[m](){this[x](s.readlinkSync(this.absolute))}[B](){this[b](s.openSync(this.absolute,"r"))}[v](){let g=!0;try{let{fd:_,buf:P,offset:C,length:$,pos:q}=this,Z=s.readSync(_,P,C,$,q);this[O](Z),g=!1}finally{if(g)try{this[S](()=>{})}catch{}}}[U](g){g()}[S](g){s.closeSync(this.fd),g()}},W=j(class extends r{constructor(g,_){_=_||{},super(_),this.preservePaths=!!_.preservePaths,this.portable=!!_.portable,this.strict=!!_.strict,this.noPax=!!_.noPax,this.noMtime=!!_.noMtime,this.readEntry=g,this.type=g.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=_.prefix||null,this.path=u(g.path),this.mode=this[M](g.mode),this.uid=this.portable?null:g.uid,this.gid=this.portable?null:g.gid,this.uname=this.portable?null:g.uname,this.gname=this.portable?null:g.gname,this.size=g.size,this.mtime=this.noMtime?null:_.mtime||g.mtime,this.atime=this.portable?null:g.atime,this.ctime=this.portable?null:g.ctime,this.linkpath=u(g.linkpath),typeof _.onwarn=="function"&&this.on("warn",_.onwarn);let P=!1;if(!this.preservePaths){let[C,$]=D(this.path);C&&(this.path=$,P=C)}this.remain=g.size,this.blockRemain=g.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}),P&&this.warn("TAR_ENTRY_INFO",`stripping ${P} from absolute path`,{entry:this,path:P+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),g.pipe(this)}[k](g){return l(g,this.prefix)}[M](g){return A(g,this.type==="Directory",this.portable)}write(g){let _=g.length;if(_>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=_,super.write(g)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});N.Sync=Y,N.Tar=W;var E=g=>g.isFile()?"File":g.isDirectory()?"Directory":g.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=N}),rx=Q((t,e)=>{"use strict";K(),e.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let i=this.head;i;i=i.next)yield i.value}}}),fy=Q((t,e)=>{"use strict";K(),e.exports=r,r.Node=o,r.create=r;function r(u){var a=this;if(a instanceof r||(a=new r),a.tail=null,a.head=null,a.length=0,u&&typeof u.forEach=="function")u.forEach(function(h){a.push(h)});else if(arguments.length>0)for(var l=0,c=arguments.length;l<c;l++)a.push(arguments[l]);return a}r.prototype.removeNode=function(u){if(u.list!==this)throw new Error("removing node which does not belong to this list");var a=u.next,l=u.prev;return a&&(a.prev=l),l&&(l.next=a),u===this.head&&(this.head=a),u===this.tail&&(this.tail=l),u.list.length--,u.next=null,u.prev=null,u.list=null,a},r.prototype.unshiftNode=function(u){if(u!==this.head){u.list&&u.list.removeNode(u);var a=this.head;u.list=this,u.next=a,a&&(a.prev=u),this.head=u,this.tail||(this.tail=u),this.length++}},r.prototype.pushNode=function(u){if(u!==this.tail){u.list&&u.list.removeNode(u);var a=this.tail;u.list=this,u.prev=a,a&&(a.next=u),this.tail=u,this.head||(this.head=u),this.length++}},r.prototype.push=function(){for(var u=0,a=arguments.length;u<a;u++)n(this,arguments[u]);return this.length},r.prototype.unshift=function(){for(var u=0,a=arguments.length;u<a;u++)s(this,arguments[u]);return this.length},r.prototype.pop=function(){if(this.tail){var u=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,u}},r.prototype.shift=function(){if(this.head){var u=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,u}},r.prototype.forEach=function(u,a){a=a||this;for(var l=this.head,c=0;l!==null;c++)u.call(a,l.value,c,this),l=l.next},r.prototype.forEachReverse=function(u,a){a=a||this;for(var l=this.tail,c=this.length-1;l!==null;c--)u.call(a,l.value,c,this),l=l.prev},r.prototype.get=function(u){for(var a=0,l=this.head;l!==null&&a<u;a++)l=l.next;if(a===u&&l!==null)return l.value},r.prototype.getReverse=function(u){for(var a=0,l=this.tail;l!==null&&a<u;a++)l=l.prev;if(a===u&&l!==null)return l.value},r.prototype.map=function(u,a){a=a||this;for(var l=new r,c=this.head;c!==null;)l.push(u.call(a,c.value,this)),c=c.next;return l},r.prototype.mapReverse=function(u,a){a=a||this;for(var l=new r,c=this.tail;c!==null;)l.push(u.call(a,c.value,this)),c=c.prev;return l},r.prototype.reduce=function(u,a){var l,c=this.head;if(arguments.length>1)l=a;else if(this.head)c=this.head.next,l=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=0;c!==null;h++)l=u(l,c.value,h),c=c.next;return l},r.prototype.reduceReverse=function(u,a){var l,c=this.tail;if(arguments.length>1)l=a;else if(this.tail)c=this.tail.prev,l=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=this.length-1;c!==null;h--)l=u(l,c.value,h),c=c.prev;return l},r.prototype.toArray=function(){for(var u=new Array(this.length),a=0,l=this.head;l!==null;a++)u[a]=l.value,l=l.next;return u},r.prototype.toArrayReverse=function(){for(var u=new Array(this.length),a=0,l=this.tail;l!==null;a++)u[a]=l.value,l=l.prev;return u},r.prototype.slice=function(u,a){a=a||this.length,a<0&&(a+=this.length),u=u||0,u<0&&(u+=this.length);var l=new r;if(a<u||a<0)return l;u<0&&(u=0),a>this.length&&(a=this.length);for(var c=0,h=this.head;h!==null&&c<u;c++)h=h.next;for(;h!==null&&c<a;c++,h=h.next)l.push(h.value);return l},r.prototype.sliceReverse=function(u,a){a=a||this.length,a<0&&(a+=this.length),u=u||0,u<0&&(u+=this.length);var l=new r;if(a<u||a<0)return l;u<0&&(u=0),a>this.length&&(a=this.length);for(var c=this.length,h=this.tail;h!==null&&c>a;c--)h=h.prev;for(;h!==null&&c>u;c--,h=h.prev)l.push(h.value);return l},r.prototype.splice=function(u,a,...l){u>this.length&&(u=this.length-1),u<0&&(u=this.length+u);for(var c=0,h=this.head;h!==null&&c<u;c++)h=h.next;for(var f=[],c=0;h&&c<a;c++)f.push(h.value),h=this.removeNode(h);h===null&&(h=this.tail),h!==this.head&&h!==this.tail&&(h=h.prev);for(var c=0;c<l.length;c++)h=i(this,h,l[c]);return f},r.prototype.reverse=function(){for(var u=this.head,a=this.tail,l=u;l!==null;l=l.prev){var c=l.prev;l.prev=l.next,l.next=c}return this.head=a,this.tail=u,this};function i(u,a,l){var c=a===u.head?new o(l,null,a,u):new o(l,a,a.next,u);return c.next===null&&(u.tail=c),c.prev===null&&(u.head=c),u.length++,c}function n(u,a){u.tail=new o(a,u.tail,null,u),u.head||(u.head=u.tail),u.length++}function s(u,a){u.head=new o(a,null,u.head,u),u.tail||(u.tail=u.head),u.length++}function o(u,a,l,c){if(!(this instanceof o))return new o(u,a,l,c);this.list=c,this.value=u,a?(a.next=this,this.prev=a):this.prev=null,l?(l.prev=this,this.next=l):this.next=null}try{rx()(r)}catch{}}),Ol=Q((t,e)=>{"use strict";K();var r=class{constructor(E,g){this.path=E||"./",this.absolute=g,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},i=Cl(),n=uy(),s=Rl(),o=hy(),u=o.Sync,a=o.Tar,l=fy(),c=Buffer.alloc(1024),h=Symbol("onStat"),f=Symbol("ended"),p=Symbol("queue"),m=Symbol("current"),d=Symbol("process"),y=Symbol("processing"),v=Symbol("processJob"),F=Symbol("jobs"),T=Symbol("jobDone"),O=Symbol("addFSEntry"),x=Symbol("addTarEntry"),B=Symbol("stat"),b=Symbol("readdir"),S=Symbol("onreaddir"),M=Symbol("pipe"),U=Symbol("entry"),L=Symbol("entryOpt"),k=Symbol("writeEntryClass"),I=Symbol("write"),j=Symbol("ondrain"),R=te("fs"),D=te("path"),A=Fl(),N=Dn(),Y=A(class extends i{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=N(E.prefix||""),this.linkCache=E.linkCache||new Map,this.statCache=E.statCache||new Map,this.readdirCache=E.readdirCache||new Map,this[k]=o,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 n.Gzip(E.gzip),this.zip.on("data",g=>super.write(g)),this.zip.on("end",g=>super.end()),this.zip.on("drain",g=>this[j]()),this.on("resume",g=>this.zip.resume())):this.on("drain",this[j]),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:g=>!0,this[p]=new l,this[F]=0,this.jobs=+E.jobs||4,this[y]=!1,this[f]=!1}[I](E){return super.write(E)}add(E){return this.write(E),this}end(E){return E&&this.write(E),this[f]=!0,this[d](),this}write(E){if(this[f])throw new Error("write after end");return E instanceof s?this[x](E):this[O](E),this.flowing}[x](E){let g=N(D.resolve(this.cwd,E.path));if(!this.filter(E.path,E))E.resume();else{let _=new r(E.path,g,!1);_.entry=new a(E,this[L](_)),_.entry.on("end",P=>this[T](_)),this[F]+=1,this[p].push(_)}this[d]()}[O](E){let g=N(D.resolve(this.cwd,E));this[p].push(new r(E,g)),this[d]()}[B](E){E.pending=!0,this[F]+=1;let g=this.follow?"stat":"lstat";R[g](E.absolute,(_,P)=>{E.pending=!1,this[F]-=1,_?this.emit("error",_):this[h](E,P)})}[h](E,g){this.statCache.set(E.absolute,g),E.stat=g,this.filter(E.path,g)||(E.ignore=!0),this[d]()}[b](E){E.pending=!0,this[F]+=1,R.readdir(E.absolute,(g,_)=>{if(E.pending=!1,this[F]-=1,g)return this.emit("error",g);this[S](E,_)})}[S](E,g){this.readdirCache.set(E.absolute,g),E.readdir=g,this[d]()}[d](){if(!this[y]){this[y]=!0;for(let E=this[p].head;E!==null&&this[F]<this.jobs;E=E.next)if(this[v](E.value),E.value.ignore){let g=E.next;this[p].removeNode(E),E.next=g}this[y]=!1,this[f]&&!this[p].length&&this[F]===0&&(this.zip?this.zip.end(c):(super.write(c),super.end()))}}get[m](){return this[p]&&this[p].head&&this[p].head.value}[T](E){this[p].shift(),this[F]-=1,this[d]()}[v](E){if(!E.pending){if(E.entry){E===this[m]&&!E.piped&&this[M](E);return}if(E.stat||(this.statCache.has(E.absolute)?this[h](E,this.statCache.get(E.absolute)):this[B](E)),!!E.stat&&!E.ignore&&!(!this.noDirRecurse&&E.stat.isDirectory()&&!E.readdir&&(this.readdirCache.has(E.absolute)?this[S](E,this.readdirCache.get(E.absolute)):this[b](E),!E.readdir))){if(E.entry=this[U](E),!E.entry){E.ignore=!0;return}E===this[m]&&!E.piped&&this[M](E)}}}[L](E){return{onwarn:(g,_,P)=>this.warn(g,_,P),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}}[U](E){this[F]+=1;try{return new this[k](E.path,this[L](E)).on("end",()=>this[T](E)).on("error",g=>this.emit("error",g))}catch(g){this.emit("error",g)}}[j](){this[m]&&this[m].entry&&this[m].entry.resume()}[M](E){E.piped=!0,E.readdir&&E.readdir.forEach(P=>{let C=E.path,$=C==="./"?"":C.replace(/\/*$/,"/");this[O]($+P)});let g=E.entry,_=this.zip;_?g.on("data",P=>{_.write(P)||g.pause()}):g.on("data",P=>{super.write(P)||g.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),W=class extends Y{constructor(E){super(E),this[k]=u}pause(){}resume(){}[B](E){let g=this.follow?"statSync":"lstatSync";this[h](E,R[g](E.absolute))}[b](E,g){this[S](E,R.readdirSync(E.absolute))}[M](E){let g=E.entry,_=this.zip;E.readdir&&E.readdir.forEach(P=>{let C=E.path,$=C==="./"?"":C.replace(/\/*$/,"/");this[O]($+P)}),_?g.on("data",P=>{_.write(P)}):g.on("data",P=>{super[I](P)})}};Y.Sync=W,e.exports=Y}),wn=Q(t=>{"use strict";K();var e=sy(),r=te("events").EventEmitter,i=te("fs"),n=i.writev;if(!n){let E=process.binding("fs"),g=E.FSReqWrap||E.FSReqCallback;n=(_,P,C,$)=>{let q=(G,ee)=>$(G,ee,P),Z=new g;Z.oncomplete=q,E.writeBuffers(_,P,C,Z)}}var s=Symbol("_autoClose"),o=Symbol("_close"),u=Symbol("_ended"),a=Symbol("_fd"),l=Symbol("_finished"),c=Symbol("_flags"),h=Symbol("_flush"),f=Symbol("_handleChunk"),p=Symbol("_makeBuf"),m=Symbol("_mode"),d=Symbol("_needDrain"),y=Symbol("_onerror"),v=Symbol("_onopen"),F=Symbol("_onread"),T=Symbol("_onwrite"),O=Symbol("_open"),x=Symbol("_path"),B=Symbol("_pos"),b=Symbol("_queue"),S=Symbol("_read"),M=Symbol("_readSize"),U=Symbol("_reading"),L=Symbol("_remain"),k=Symbol("_size"),I=Symbol("_write"),j=Symbol("_writing"),R=Symbol("_defaultFlag"),D=Symbol("_errored"),A=class extends e{constructor(E,g){if(g=g||{},super(g),this.readable=!0,this.writable=!1,typeof E!="string")throw new TypeError("path must be a string");this[D]=!1,this[a]=typeof g.fd=="number"?g.fd:null,this[x]=E,this[M]=g.readSize||16*1024*1024,this[U]=!1,this[k]=typeof g.size=="number"?g.size:1/0,this[L]=this[k],this[s]=typeof g.autoClose=="boolean"?g.autoClose:!0,typeof this[a]=="number"?this[S]():this[O]()}get fd(){return this[a]}get path(){return this[x]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[O](){i.open(this[x],"r",(E,g)=>this[v](E,g))}[v](E,g){E?this[y](E):(this[a]=g,this.emit("open",g),this[S]())}[p](){return Buffer.allocUnsafe(Math.min(this[M],this[L]))}[S](){if(!this[U]){this[U]=!0;let E=this[p]();if(E.length===0)return process.nextTick(()=>this[F](null,0,E));i.read(this[a],E,0,E.length,null,(g,_,P)=>this[F](g,_,P))}}[F](E,g,_){this[U]=!1,E?this[y](E):this[f](g,_)&&this[S]()}[o](){if(this[s]&&typeof this[a]=="number"){let E=this[a];this[a]=null,i.close(E,g=>g?this.emit("error",g):this.emit("close"))}}[y](E){this[U]=!0,this[o](),this.emit("error",E)}[f](E,g){let _=!1;return this[L]-=E,E>0&&(_=super.write(E<g.length?g.slice(0,E):g)),(E===0||this[L]<=0)&&(_=!1,this[o](),super.end()),_}emit(E,g){switch(E){case"prefinish":case"finish":break;case"drain":typeof this[a]=="number"&&this[S]();break;case"error":return this[D]?void 0:(this[D]=!0,super.emit(E,g));default:return super.emit(E,g)}}},N=class extends A{[O](){let E=!0;try{this[v](null,i.openSync(this[x],"r")),E=!1}finally{E&&this[o]()}}[S](){let E=!0;try{if(!this[U]){this[U]=!0;do{let g=this[p](),_=g.length===0?0:i.readSync(this[a],g,0,g.length,null);if(!this[f](_,g))break}while(!0);this[U]=!1}E=!1}finally{E&&this[o]()}}[o](){if(this[s]&&typeof this[a]=="number"){let E=this[a];this[a]=null,i.closeSync(E),this.emit("close")}}},Y=class extends r{constructor(E,g){g=g||{},super(g),this.readable=!1,this.writable=!0,this[D]=!1,this[j]=!1,this[u]=!1,this[d]=!1,this[b]=[],this[x]=E,this[a]=typeof g.fd=="number"?g.fd:null,this[m]=g.mode===void 0?438:g.mode,this[B]=typeof g.start=="number"?g.start:null,this[s]=typeof g.autoClose=="boolean"?g.autoClose:!0;let _=this[B]!==null?"r+":"w";this[R]=g.flags===void 0,this[c]=this[R]?_:g.flags,this[a]===null&&this[O]()}emit(E,g){if(E==="error"){if(this[D])return;this[D]=!0}return super.emit(E,g)}get fd(){return this[a]}get path(){return this[x]}[y](E){this[o](),this[j]=!0,this.emit("error",E)}[O](){i.open(this[x],this[c],this[m],(E,g)=>this[v](E,g))}[v](E,g){this[R]&&this[c]==="r+"&&E&&E.code==="ENOENT"?(this[c]="w",this[O]()):E?this[y](E):(this[a]=g,this.emit("open",g),this[h]())}end(E,g){return E&&this.write(E,g),this[u]=!0,!this[j]&&!this[b].length&&typeof this[a]=="number"&&this[T](null,0),this}write(E,g){return typeof E=="string"&&(E=Buffer.from(E,g)),this[u]?(this.emit("error",new Error("write() after end()")),!1):this[a]===null||this[j]||this[b].length?(this[b].push(E),this[d]=!0,!1):(this[j]=!0,this[I](E),!0)}[I](E){i.write(this[a],E,0,E.length,this[B],(g,_)=>this[T](g,_))}[T](E,g){E?this[y](E):(this[B]!==null&&(this[B]+=g),this[b].length?this[h]():(this[j]=!1,this[u]&&!this[l]?(this[l]=!0,this[o](),this.emit("finish")):this[d]&&(this[d]=!1,this.emit("drain"))))}[h](){if(this[b].length===0)this[u]&&this[T](null,0);else if(this[b].length===1)this[I](this[b].pop());else{let E=this[b];this[b]=[],n(this[a],E,this[B],(g,_)=>this[T](g,_))}}[o](){if(this[s]&&typeof this[a]=="number"){let E=this[a];this[a]=null,i.close(E,g=>g?this.emit("error",g):this.emit("close"))}}},W=class extends Y{[O](){let E;if(this[R]&&this[c]==="r+")try{E=i.openSync(this[x],this[c],this[m])}catch(g){if(g.code==="ENOENT")return this[c]="w",this[O]();throw g}else E=i.openSync(this[x],this[c],this[m]);this[v](null,E)}[o](){if(this[s]&&typeof this[a]=="number"){let E=this[a];this[a]=null,i.closeSync(E),this.emit("close")}}[I](E){let g=!0;try{this[T](null,i.writeSync(this[a],E,0,E.length,this[B])),g=!1}finally{if(g)try{this[o]()}catch{}}}};t.ReadStream=A,t.ReadStreamSync=N,t.WriteStream=Y,t.WriteStreamSync=W}),Tl=Q((t,e)=>{"use strict";K();var r=Fl(),i=_n(),n=te("events"),s=fy(),o=1024*1024,u=Rl(),a=xl(),l=uy(),{nextTick:c}=te("process"),h=Buffer.from([31,139]),f=Symbol("state"),p=Symbol("writeEntry"),m=Symbol("readEntry"),d=Symbol("nextEntry"),y=Symbol("processEntry"),v=Symbol("extendedHeader"),F=Symbol("globalExtendedHeader"),T=Symbol("meta"),O=Symbol("emitMeta"),x=Symbol("buffer"),B=Symbol("queue"),b=Symbol("ended"),S=Symbol("emittedEnd"),M=Symbol("emit"),U=Symbol("unzip"),L=Symbol("consumeChunk"),k=Symbol("consumeChunkSub"),I=Symbol("consumeBody"),j=Symbol("consumeMeta"),R=Symbol("consumeHeader"),D=Symbol("consuming"),A=Symbol("bufferConcat"),N=Symbol("maybeEnd"),Y=Symbol("writing"),W=Symbol("aborted"),E=Symbol("onDone"),g=Symbol("sawValidEntry"),_=Symbol("sawNullBlock"),P=Symbol("sawEOF"),C=Symbol("closeStream"),$=q=>!0;e.exports=r(class extends n{constructor(q){q=q||{},super(q),this.file=q.file||"",this[g]=null,this.on(E,Z=>{(this[f]==="begin"||this[g]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),q.ondone?this.on(E,q.ondone):this.on(E,Z=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!q.strict,this.maxMetaEntrySize=q.maxMetaEntrySize||o,this.filter=typeof q.filter=="function"?q.filter:$,this.writable=!0,this.readable=!1,this[B]=new s,this[x]=null,this[m]=null,this[p]=null,this[f]="begin",this[T]="",this[v]=null,this[F]=null,this[b]=!1,this[U]=null,this[W]=!1,this[_]=!1,this[P]=!1,this.on("end",()=>this[C]()),typeof q.onwarn=="function"&&this.on("warn",q.onwarn),typeof q.onentry=="function"&&this.on("entry",q.onentry)}[R](q,Z){this[g]===null&&(this[g]=!1);let G;try{G=new i(q,Z,this[v],this[F])}catch(ee){return this.warn("TAR_ENTRY_INVALID",ee)}if(G.nullBlock)this[_]?(this[P]=!0,this[f]==="begin"&&(this[f]="header"),this[M]("eof")):(this[_]=!0,this[M]("nullBlock"));else if(this[_]=!1,!G.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:G});else if(!G.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:G});else{let ee=G.type;if(/^(Symbolic)?Link$/.test(ee)&&!G.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:G});else if(!/^(Symbolic)?Link$/.test(ee)&&G.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:G});else{let z=this[p]=new u(G,this[v],this[F]);if(!this[g])if(z.remain){let re=()=>{z.invalid||(this[g]=!0)};z.on("end",re)}else this[g]=!0;z.meta?z.size>this.maxMetaEntrySize?(z.ignore=!0,this[M]("ignoredEntry",z),this[f]="ignore",z.resume()):z.size>0&&(this[T]="",z.on("data",re=>this[T]+=re),this[f]="meta"):(this[v]=null,z.ignore=z.ignore||!this.filter(z.path,z),z.ignore?(this[M]("ignoredEntry",z),this[f]=z.remain?"ignore":"header",z.resume()):(z.remain?this[f]="body":(this[f]="header",z.end()),this[m]?this[B].push(z):(this[B].push(z),this[d]())))}}}[C](){c(()=>this.emit("close"))}[y](q){let Z=!0;return q?Array.isArray(q)?this.emit.apply(this,q):(this[m]=q,this.emit("entry",q),q.emittedEnd||(q.on("end",G=>this[d]()),Z=!1)):(this[m]=null,Z=!1),Z}[d](){do;while(this[y](this[B].shift()));if(!this[B].length){let q=this[m];!q||q.flowing||q.size===q.remain?this[Y]||this.emit("drain"):q.once("drain",Z=>this.emit("drain"))}}[I](q,Z){let G=this[p],ee=G.blockRemain,z=ee>=q.length&&Z===0?q:q.slice(Z,Z+ee);return G.write(z),G.blockRemain||(this[f]="header",this[p]=null,G.end()),z.length}[j](q,Z){let G=this[p],ee=this[I](q,Z);return this[p]||this[O](G),ee}[M](q,Z,G){!this[B].length&&!this[m]?this.emit(q,Z,G):this[B].push([q,Z,G])}[O](q){switch(this[M]("meta",this[T]),q.type){case"ExtendedHeader":case"OldExtendedHeader":this[v]=a.parse(this[T],this[v],!1);break;case"GlobalExtendedHeader":this[F]=a.parse(this[T],this[F],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[v]=this[v]||Object.create(null),this[v].path=this[T].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[v]=this[v]||Object.create(null),this[v].linkpath=this[T].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+q.type)}}abort(q){this[W]=!0,this.emit("abort",q),this.warn("TAR_ABORT",q,{recoverable:!1})}write(q){if(this[W])return;if(this[U]===null&&q){if(this[x]&&(q=Buffer.concat([this[x],q]),this[x]=null),q.length<h.length)return this[x]=q,!0;for(let G=0;this[U]===null&&G<h.length;G++)q[G]!==h[G]&&(this[U]=!1);if(this[U]===null){let G=this[b];this[b]=!1,this[U]=new l.Unzip,this[U].on("data",z=>this[L](z)),this[U].on("error",z=>this.abort(z)),this[U].on("end",z=>{this[b]=!0,this[L]()}),this[Y]=!0;let ee=this[U][G?"end":"write"](q);return this[Y]=!1,ee}}this[Y]=!0,this[U]?this[U].write(q):this[L](q),this[Y]=!1;let Z=this[B].length?!1:this[m]?this[m].flowing:!0;return!Z&&!this[B].length&&this[m].once("drain",G=>this.emit("drain")),Z}[A](q){q&&!this[W]&&(this[x]=this[x]?Buffer.concat([this[x],q]):q)}[N](){if(this[b]&&!this[S]&&!this[W]&&!this[D]){this[S]=!0;let q=this[p];if(q&&q.blockRemain){let Z=this[x]?this[x].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${q.blockRemain} more bytes, only ${Z} available)`,{entry:q}),this[x]&&q.write(this[x]),q.end()}this[M](E)}}[L](q){if(this[D])this[A](q);else if(!q&&!this[x])this[N]();else{if(this[D]=!0,this[x]){this[A](q);let Z=this[x];this[x]=null,this[k](Z)}else this[k](q);for(;this[x]&&this[x].length>=512&&!this[W]&&!this[P];){let Z=this[x];this[x]=null,this[k](Z)}this[D]=!1}(!this[x]||this[b])&&this[N]()}[k](q){let Z=0,G=q.length;for(;Z+512<=G&&!this[W]&&!this[P];)switch(this[f]){case"begin":case"header":this[R](q,Z),Z+=512;break;case"ignore":case"body":Z+=this[I](q,Z);break;case"meta":Z+=this[j](q,Z);break;default:throw new Error("invalid state: "+this[f])}Z<G&&(this[x]?this[x]=Buffer.concat([q.slice(Z),this[x]]):this[x]=q.slice(Z))}end(q){this[W]||(this[U]?this[U].end(q):(this[b]=!0,this.write(q)))}})}),kl=Q((t,e)=>{"use strict";K();var r=En(),i=Tl(),n=te("fs"),s=wn(),o=te("path"),u=bn();e.exports=(p,m,d)=>{typeof p=="function"?(d=p,m=null,p={}):Array.isArray(p)&&(m=p,p={}),typeof m=="function"&&(d=m,m=null),m?m=Array.from(m):m=[];let y=r(p);if(y.sync&&typeof d=="function")throw new TypeError("callback not supported for sync tar functions");if(!y.file&&typeof d=="function")throw new TypeError("callback only supported with file option");return m.length&&l(y,m),y.noResume||a(y),y.file&&y.sync?c(y):y.file?h(y,d):f(y)};var a=p=>{let m=p.onentry;p.onentry=m?d=>{m(d),d.resume()}:d=>d.resume()},l=(p,m)=>{let d=new Map(m.map(F=>[u(F),!0])),y=p.filter,v=(F,T)=>{let O=T||o.parse(F).root||".",x=F===O?!1:d.has(F)?d.get(F):v(o.dirname(F),O);return d.set(F,x),x};p.filter=y?(F,T)=>y(F,T)&&v(u(F)):F=>v(u(F))},c=p=>{let m=f(p),d=p.file,y=!0,v;try{let F=n.statSync(d),T=p.maxReadSize||16*1024*1024;if(F.size<T)m.end(n.readFileSync(d));else{let O=0,x=Buffer.allocUnsafe(T);for(v=n.openSync(d,"r");O<F.size;){let B=n.readSync(v,x,0,T,O);O+=B,m.write(x.slice(0,B))}m.end()}y=!1}finally{if(y&&v)try{n.closeSync(v)}catch{}}},h=(p,m)=>{let d=new i(p),y=p.maxReadSize||16*1024*1024,v=p.file,F=new Promise((T,O)=>{d.on("error",O),d.on("end",T),n.stat(v,(x,B)=>{if(x)O(x);else{let b=new s.ReadStream(v,{readSize:y,size:B.size});b.on("error",O),b.pipe(d)}})});return m?F.then(m,m):F},f=p=>new i(p)}),ix=Q((t,e)=>{"use strict";K();var r=En(),i=Ol(),n=wn(),s=kl(),o=te("path");e.exports=(p,m,d)=>{if(typeof m=="function"&&(d=m),Array.isArray(p)&&(m=p,p={}),!m||!Array.isArray(m)||!m.length)throw new TypeError("no files or directories specified");m=Array.from(m);let y=r(p);if(y.sync&&typeof d=="function")throw new TypeError("callback not supported for sync tar functions");if(!y.file&&typeof d=="function")throw new TypeError("callback only supported with file option");return y.file&&y.sync?u(y,m):y.file?a(y,m,d):y.sync?h(y,m):f(y,m)};var u=(p,m)=>{let d=new i.Sync(p),y=new n.WriteStreamSync(p.file,{mode:p.mode||438});d.pipe(y),l(d,m)},a=(p,m,d)=>{let y=new i(p),v=new n.WriteStream(p.file,{mode:p.mode||438});y.pipe(v);let F=new Promise((T,O)=>{v.on("error",O),v.on("close",T),y.on("error",O)});return c(y,m),d?F.then(d,d):F},l=(p,m)=>{m.forEach(d=>{d.charAt(0)==="@"?s({file:o.resolve(p.cwd,d.slice(1)),sync:!0,noResume:!0,onentry:y=>p.add(y)}):p.add(d)}),p.end()},c=(p,m)=>{for(;m.length;){let d=m.shift();if(d.charAt(0)==="@")return s({file:o.resolve(p.cwd,d.slice(1)),noResume:!0,onentry:y=>p.add(y)}).then(y=>c(p,m));p.add(d)}p.end()},h=(p,m)=>{let d=new i.Sync(p);return l(d,m),d},f=(p,m)=>{let d=new i(p);return c(d,m),d}}),py=Q((t,e)=>{"use strict";K();var r=En(),i=Ol(),n=te("fs"),s=wn(),o=kl(),u=te("path"),a=_n();e.exports=(m,d,y)=>{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(!d||!Array.isArray(d)||!d.length)throw new TypeError("no files or directories specified");return d=Array.from(d),v.sync?l(v,d):h(v,d,y)};var l=(m,d)=>{let y=new i.Sync(m),v=!0,F,T;try{try{F=n.openSync(m.file,"r+")}catch(B){if(B.code==="ENOENT")F=n.openSync(m.file,"w+");else throw B}let O=n.fstatSync(F),x=Buffer.alloc(512);e:for(T=0;T<O.size;T+=512){for(let S=0,M=0;S<512;S+=M){if(M=n.readSync(F,x,S,x.length-S,T+S),T===0&&x[0]===31&&x[1]===139)throw new Error("cannot append to compressed archives");if(!M)break e}let B=new a(x);if(!B.cksumValid)break;let b=512*Math.ceil(B.size/512);if(T+b+512>O.size)break;T+=b,m.mtimeCache&&m.mtimeCache.set(B.path,B.mtime)}v=!1,c(m,y,T,F,d)}finally{if(v)try{n.closeSync(F)}catch{}}},c=(m,d,y,v,F)=>{let T=new s.WriteStreamSync(m.file,{fd:v,start:y});d.pipe(T),f(d,F)},h=(m,d,y)=>{d=Array.from(d);let v=new i(m),F=(O,x,B)=>{let b=(k,I)=>{k?n.close(O,j=>B(k)):B(null,I)},S=0;if(x===0)return b(null,0);let M=0,U=Buffer.alloc(512),L=(k,I)=>{if(k)return b(k);if(M+=I,M<512&&I)return n.read(O,U,M,U.length-M,S+M,L);if(S===0&&U[0]===31&&U[1]===139)return b(new Error("cannot append to compressed archives"));if(M<512)return b(null,S);let j=new a(U);if(!j.cksumValid)return b(null,S);let R=512*Math.ceil(j.size/512);if(S+R+512>x||(S+=R+512,S>=x))return b(null,S);m.mtimeCache&&m.mtimeCache.set(j.path,j.mtime),M=0,n.read(O,U,0,512,S,L)};n.read(O,U,0,512,S,L)},T=new Promise((O,x)=>{v.on("error",x);let B="r+",b=(S,M)=>{if(S&&S.code==="ENOENT"&&B==="r+")return B="w+",n.open(m.file,B,b);if(S)return x(S);n.fstat(M,(U,L)=>{if(U)return n.close(M,()=>x(U));F(M,L.size,(k,I)=>{if(k)return x(k);let j=new s.WriteStream(m.file,{fd:M,start:I});v.pipe(j),j.on("error",x),j.on("close",O),p(v,d)})})};n.open(m.file,B,b)});return y?T.then(y,y):T},f=(m,d)=>{d.forEach(y=>{y.charAt(0)==="@"?o({file:u.resolve(m.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:v=>m.add(v)}):m.add(y)}),m.end()},p=(m,d)=>{for(;d.length;){let y=d.shift();if(y.charAt(0)==="@")return o({file:u.resolve(m.cwd,y.slice(1)),noResume:!0,onentry:v=>m.add(v)}).then(v=>p(m,d));m.add(y)}m.end()}}),nx=Q((t,e)=>{"use strict";K();var r=En(),i=py();e.exports=(s,o,u)=>{let a=r(s);if(!a.file)throw new TypeError("file is required");if(a.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(a),i(a,o,u)};var n=s=>{let o=s.filter;s.mtimeCache||(s.mtimeCache=new Map),s.filter=o?(u,a)=>o(u,a)&&!(s.mtimeCache.get(u)>a.mtime):(u,a)=>!(s.mtimeCache.get(u)>a.mtime)}}),sx=Q((t,e)=>{K();var{promisify:r}=te("util"),i=te("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}),ox=Q((t,e)=>{K();var r=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:i,parse:n}=te("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 u=/[*|"<>?:]/,{root:a}=n(o);if(u.test(o.substr(a.length)))throw Object.assign(new Error("Illegal characters in path."),{path:o,code:"EINVAL"})}return o};e.exports=s}),ux=Q((t,e)=>{K();var{dirname:r}=te("path"),i=(s,o,u=void 0)=>u===o?Promise.resolve():s.statAsync(o).then(a=>a.isDirectory()?u:void 0,a=>a.code==="ENOENT"?i(s,r(o),o):void 0),n=(s,o,u=void 0)=>{if(u!==o)try{return s.statSync(o).isDirectory()?u:void 0}catch(a){return a.code==="ENOENT"?n(s,r(o),o):void 0}};e.exports={findMade:i,findMadeSync:n}}),dy=Q((t,e)=>{K();var{dirname:r}=te("path"),i=(s,o,u)=>{o.recursive=!1;let a=r(s);return a===s?o.mkdirAsync(s,o).catch(l=>{if(l.code!=="EISDIR")throw l}):o.mkdirAsync(s,o).then(()=>u||s,l=>{if(l.code==="ENOENT")return i(a,o).then(c=>i(s,o,c));if(l.code!=="EEXIST"&&l.code!=="EROFS")throw l;return o.statAsync(s).then(c=>{if(c.isDirectory())return u;throw l},()=>{throw l})})},n=(s,o,u)=>{let a=r(s);if(o.recursive=!1,a===s)try{return o.mkdirSync(s,o)}catch(l){if(l.code!=="EISDIR")throw l;return}try{return o.mkdirSync(s,o),u||s}catch(l){if(l.code==="ENOENT")return n(s,o,n(a,o,u));if(l.code!=="EEXIST"&&l.code!=="EROFS")throw l;try{if(!o.statSync(s).isDirectory())throw l}catch{throw l}}};e.exports={mkdirpManual:i,mkdirpManualSync:n}}),ax=Q((t,e)=>{K();var{dirname:r}=te("path"),{findMade:i,findMadeSync:n}=ux(),{mkdirpManual:s,mkdirpManualSync:o}=dy(),u=(l,c)=>(c.recursive=!0,r(l)===l?c.mkdirAsync(l,c):i(c,l).then(h=>c.mkdirAsync(l,c).then(()=>h).catch(f=>{if(f.code==="ENOENT")return s(l,c);throw f}))),a=(l,c)=>{if(c.recursive=!0,r(l)===l)return c.mkdirSync(l,c);let h=n(c,l);try{return c.mkdirSync(l,c),h}catch(f){if(f.code==="ENOENT")return o(l,c);throw f}};e.exports={mkdirpNative:u,mkdirpNativeSync:a}}),lx=Q((t,e)=>{K();var r=te("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?a=>a.mkdir===r.mkdir:()=>!1,u=s?a=>a.mkdirSync===r.mkdirSync:()=>!1;e.exports={useNative:o,useNativeSync:u}}),cx=Q((t,e)=>{K();var r=sx(),i=ox(),{mkdirpNative:n,mkdirpNativeSync:s}=ax(),{mkdirpManual:o,mkdirpManualSync:u}=dy(),{useNative:a,useNativeSync:l}=lx(),c=(f,p)=>(f=i(f),p=r(p),a(p)?n(f,p):o(f,p)),h=(f,p)=>(f=i(f),p=r(p),l(p)?s(f,p):u(f,p));c.sync=h,c.native=(f,p)=>n(i(f),r(p)),c.manual=(f,p)=>o(i(f),r(p)),c.nativeSync=(f,p)=>s(i(f),r(p)),c.manualSync=(f,p)=>u(i(f),r(p)),e.exports=c}),hx=Q((t,e)=>{"use strict";K();var r=te("fs"),i=te("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]/),u=(T,O,x)=>{try{return r[s](T,O,x)}catch(B){if(B.code!=="ENOENT")throw B}},a=(T,O,x)=>{try{return r.chownSync(T,O,x)}catch(B){if(B.code!=="ENOENT")throw B}},l=o?(T,O,x,B)=>b=>{!b||b.code!=="EISDIR"?B(b):r.chown(T,O,x,B)}:(T,O,x,B)=>B,c=o?(T,O,x)=>{try{return u(T,O,x)}catch(B){if(B.code!=="EISDIR")throw B;a(T,O,x)}}:(T,O,x)=>u(T,O,x),h=process.version,f=(T,O,x)=>r.readdir(T,O,x),p=(T,O)=>r.readdirSync(T,O);/^v4\./.test(h)&&(f=(T,O,x)=>r.readdir(T,x));var m=(T,O,x,B)=>{r[n](T,O,x,l(T,O,x,b=>{B(b&&b.code!=="ENOENT"?b:null)}))},d=(T,O,x,B,b)=>{if(typeof O=="string")return r.lstat(i.resolve(T,O),(S,M)=>{if(S)return b(S.code!=="ENOENT"?S:null);M.name=O,d(T,M,x,B,b)});if(O.isDirectory())y(i.resolve(T,O.name),x,B,S=>{if(S)return b(S);let M=i.resolve(T,O.name);m(M,x,B,b)});else{let S=i.resolve(T,O.name);m(S,x,B,b)}},y=(T,O,x,B)=>{f(T,{withFileTypes:!0},(b,S)=>{if(b){if(b.code==="ENOENT")return B();if(b.code!=="ENOTDIR"&&b.code!=="ENOTSUP")return B(b)}if(b||!S.length)return m(T,O,x,B);let M=S.length,U=null,L=k=>{if(!U){if(k)return B(U=k);if(--M===0)return m(T,O,x,B)}};S.forEach(k=>d(T,k,O,x,L))})},v=(T,O,x,B)=>{if(typeof O=="string")try{let b=r.lstatSync(i.resolve(T,O));b.name=O,O=b}catch(b){if(b.code==="ENOENT")return;throw b}O.isDirectory()&&F(i.resolve(T,O.name),x,B),c(i.resolve(T,O.name),x,B)},F=(T,O,x)=>{let B;try{B=p(T,{withFileTypes:!0})}catch(b){if(b.code==="ENOENT")return;if(b.code==="ENOTDIR"||b.code==="ENOTSUP")return c(T,O,x);throw b}return B&&B.length&&B.forEach(b=>v(T,b,O,x)),c(T,O,x)};e.exports=y,y.sync=F}),fx=Q((t,e)=>{"use strict";K();var r=cx(),i=te("fs"),n=te("path"),s=hx(),o=Dn(),u=class extends Error{constructor(d,y){super("Cannot extract through symbolic link"),this.path=y,this.symlink=d}get name(){return"SylinkError"}},a=class extends Error{constructor(d,y){super(y+": Cannot cd into '"+d+"'"),this.path=d,this.code=y}get name(){return"CwdError"}},l=(d,y)=>d.get(o(y)),c=(d,y,v)=>d.set(o(y),v),h=(d,y)=>{i.stat(d,(v,F)=>{(v||!F.isDirectory())&&(v=new a(d,v&&v.code||"ENOTDIR")),y(v)})};e.exports=(d,y,v)=>{d=o(d);let F=y.umask,T=y.mode|448,O=(T&F)!==0,x=y.uid,B=y.gid,b=typeof x=="number"&&typeof B=="number"&&(x!==y.processUid||B!==y.processGid),S=y.preserve,M=y.unlink,U=y.cache,L=o(y.cwd),k=(j,R)=>{j?v(j):(c(U,d,!0),R&&b?s(R,x,B,D=>k(D)):O?i.chmod(d,T,v):v())};if(U&&l(U,d)===!0)return k();if(d===L)return h(d,k);if(S)return r(d,{mode:T}).then(j=>k(null,j),k);let I=o(n.relative(L,d)).split("/");f(L,I,T,U,M,L,null,k)};var f=(d,y,v,F,T,O,x,B)=>{if(!y.length)return B(null,x);let b=y.shift(),S=o(n.resolve(d+"/"+b));if(l(F,S))return f(S,y,v,F,T,O,x,B);i.mkdir(S,v,p(S,y,v,F,T,O,x,B))},p=(d,y,v,F,T,O,x,B)=>b=>{b?i.lstat(d,(S,M)=>{if(S)S.path=S.path&&o(S.path),B(S);else if(M.isDirectory())f(d,y,v,F,T,O,x,B);else if(T)i.unlink(d,U=>{if(U)return B(U);i.mkdir(d,v,p(d,y,v,F,T,O,x,B))});else{if(M.isSymbolicLink())return B(new u(d,d+"/"+y.join("/")));B(b)}}):(x=x||d,f(d,y,v,F,T,O,x,B))},m=d=>{let y=!1,v="ENOTDIR";try{y=i.statSync(d).isDirectory()}catch(F){v=F.code}finally{if(!y)throw new a(d,v)}};e.exports.sync=(d,y)=>{d=o(d);let v=y.umask,F=y.mode|448,T=(F&v)!==0,O=y.uid,x=y.gid,B=typeof O=="number"&&typeof x=="number"&&(O!==y.processUid||x!==y.processGid),b=y.preserve,S=y.unlink,M=y.cache,U=o(y.cwd),L=j=>{c(M,d,!0),j&&B&&s.sync(j,O,x),T&&i.chmodSync(d,F)};if(M&&l(M,d)===!0)return L();if(d===U)return m(U),L();if(b)return L(r.sync(d,F));let k=o(n.relative(U,d)).split("/"),I=null;for(let j=k.shift(),R=U;j&&(R+="/"+j);j=k.shift())if(R=o(n.resolve(R)),!l(M,R))try{i.mkdirSync(R,F),I=I||R,c(M,R,!0)}catch{let D=i.lstatSync(R);if(D.isDirectory()){c(M,R,!0);continue}else if(S){i.unlinkSync(R),i.mkdirSync(R,F),I=I||R,c(M,R,!0);continue}else if(D.isSymbolicLink())return new u(R,R+"/"+k.join("/"))}return L(I)}}),my=Q((t,e)=>{K();var r=Object.create(null),{hasOwnProperty:i}=Object.prototype;e.exports=n=>(i.call(r,n)||(r[n]=n.normalize("NFKD")),r[n])}),px=Q((t,e)=>{K();var r=te("assert"),i=my(),n=bn(),{join:s}=te("path"),o=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,u=o==="win32";e.exports=()=>{let a=new Map,l=new Map,c=y=>y.split("/").slice(0,-1).reduce((v,F)=>(v.length&&(F=s(v[v.length-1],F)),v.push(F||"/"),v),[]),h=new Set,f=y=>{let v=l.get(y);if(!v)throw new Error("function does not have any path reservations");return{paths:v.paths.map(F=>a.get(F)),dirs:[...v.dirs].map(F=>a.get(F))}},p=y=>{let{paths:v,dirs:F}=f(y);return v.every(T=>T[0]===y)&&F.every(T=>T[0]instanceof Set&&T[0].has(y))},m=y=>h.has(y)||!p(y)?!1:(h.add(y),y(()=>d(y)),!0),d=y=>{if(!h.has(y))return!1;let{paths:v,dirs:F}=l.get(y),T=new Set;return v.forEach(O=>{let x=a.get(O);r.equal(x[0],y),x.length===1?a.delete(O):(x.shift(),typeof x[0]=="function"?T.add(x[0]):x[0].forEach(B=>T.add(B)))}),F.forEach(O=>{let x=a.get(O);r(x[0]instanceof Set),x[0].size===1&&x.length===1?a.delete(O):x[0].size===1?(x.shift(),T.add(x[0])):x[0].delete(y)}),h.delete(y),T.forEach(O=>m(O)),!0};return{check:p,reserve:(y,v)=>{y=u?["win32 parallelization disabled"]:y.map(T=>i(n(s(T))).toLowerCase());let F=new Set(y.map(T=>c(T)).reduce((T,O)=>T.concat(O)));return l.set(v,{dirs:F,paths:y}),y.forEach(T=>{let O=a.get(T);O?O.push(v):a.set(T,[v])}),F.forEach(T=>{let O=a.get(T);O?O[O.length-1]instanceof Set?O[O.length-1].add(v):O.push(new Set([v])):a.set(T,[new Set([v])])}),m(v)}}}}),dx=Q((t,e)=>{K();var r=process.env.__FAKE_PLATFORM__||process.platform,i=r==="win32",n=global.__FAKE_TESTING_FS__||te("fs"),{O_CREAT:s,O_TRUNC:o,O_WRONLY:u,UV_FS_O_FILEMAP:a=0}=n.constants,l=i&&!!a,c=512*1024,h=a|o|s|u;e.exports=l?f=>f<c?h:"w":()=>"w"}),yy=Q((t,e)=>{"use strict";K();var r=te("assert"),i=Tl(),n=te("fs"),s=wn(),o=te("path"),u=fx(),a=ly(),l=px(),c=cy(),h=Dn(),f=bn(),p=my(),m=Symbol("onEntry"),d=Symbol("checkFs"),y=Symbol("checkFs2"),v=Symbol("pruneCache"),F=Symbol("isReusable"),T=Symbol("makeFs"),O=Symbol("file"),x=Symbol("directory"),B=Symbol("link"),b=Symbol("symlink"),S=Symbol("hardlink"),M=Symbol("unsupported"),U=Symbol("checkPath"),L=Symbol("mkdir"),k=Symbol("onError"),I=Symbol("pending"),j=Symbol("pend"),R=Symbol("unpend"),D=Symbol("ended"),A=Symbol("maybeClose"),N=Symbol("skip"),Y=Symbol("doChown"),W=Symbol("uid"),E=Symbol("gid"),g=Symbol("checkedCwd"),_=te("crypto"),P=dx(),C=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,$=C==="win32",q=(w,V)=>{if(!$)return n.unlink(w,V);let J=w+".DELETE."+_.randomBytes(16).toString("hex");n.rename(w,J,se=>{if(se)return V(se);n.unlink(J,V)})},Z=w=>{if(!$)return n.unlinkSync(w);let V=w+".DELETE."+_.randomBytes(16).toString("hex");n.renameSync(w,V),n.unlinkSync(V)},G=(w,V,J)=>w===w>>>0?w:V===V>>>0?V:J,ee=w=>p(f(h(w))).toLowerCase(),z=(w,V)=>{V=ee(V);for(let J of w.keys()){let se=ee(J);(se===V||se.indexOf(V+"/")===0)&&w.delete(J)}},re=w=>{for(let V of w.keys())w.delete(V)},le=class extends i{constructor(w){if(w||(w={}),w.ondone=V=>{this[D]=!0,this[A]()},super(w),this[g]=!1,this.reservations=l(),this.transform=typeof w.transform=="function"?w.transform:null,this.writable=!0,this.readable=!1,this[I]=0,this[D]=!1,this.dirCache=w.dirCache||new Map,typeof w.uid=="number"||typeof w.gid=="number"){if(typeof w.uid!="number"||typeof w.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(w.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=w.uid,this.gid=w.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;w.preserveOwner===void 0&&typeof w.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!w.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=w.forceChown===!0,this.win32=!!w.win32||$,this.newer=!!w.newer,this.keep=!!w.keep,this.noMtime=!!w.noMtime,this.preservePaths=!!w.preservePaths,this.unlink=!!w.unlink,this.cwd=h(o.resolve(w.cwd||process.cwd())),this.strip=+w.strip||0,this.processUmask=w.noChmod?0:process.umask(),this.umask=typeof w.umask=="number"?w.umask:this.processUmask,this.dmode=w.dmode||511&~this.umask,this.fmode=w.fmode||438&~this.umask,this.on("entry",V=>this[m](V))}warn(w,V,J={}){return(w==="TAR_BAD_ARCHIVE"||w==="TAR_ABORT")&&(J.recoverable=!1),super.warn(w,V,J)}[A](){this[D]&&this[I]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[U](w){if(this.strip){let V=h(w.path).split("/");if(V.length<this.strip)return!1;if(w.path=V.slice(this.strip).join("/"),w.type==="Link"){let J=h(w.linkpath).split("/");if(J.length>=this.strip)w.linkpath=J.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let V=h(w.path),J=V.split("/");if(J.includes("..")||$&&/^[a-z]:\.\.$/i.test(J[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:w,path:V}),!1;let[se,ae]=c(V);se&&(w.path=ae,this.warn("TAR_ENTRY_INFO",`stripping ${se} from absolute path`,{entry:w,path:V}))}if(o.isAbsolute(w.path)?w.absolute=h(o.resolve(w.path)):w.absolute=h(o.resolve(this.cwd,w.path)),!this.preservePaths&&w.absolute.indexOf(this.cwd+"/")!==0&&w.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:w,path:h(w.path),resolvedPath:w.absolute,cwd:this.cwd}),!1;if(w.absolute===this.cwd&&w.type!=="Directory"&&w.type!=="GNUDumpDir")return!1;if(this.win32){let{root:V}=o.win32.parse(w.absolute);w.absolute=V+a.encode(w.absolute.slice(V.length));let{root:J}=o.win32.parse(w.path);w.path=J+a.encode(w.path.slice(J.length))}return!0}[m](w){if(!this[U](w))return w.resume();switch(r.equal(typeof w.absolute,"string"),w.type){case"Directory":case"GNUDumpDir":w.mode&&(w.mode=w.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[d](w);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[M](w)}}[k](w,V){w.name==="CwdError"?this.emit("error",w):(this.warn("TAR_ENTRY_ERROR",w,{entry:V}),this[R](),V.resume())}[L](w,V,J){u(h(w),{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:V,noChmod:this.noChmod},J)}[Y](w){return this.forceChown||this.preserveOwner&&(typeof w.uid=="number"&&w.uid!==this.processUid||typeof w.gid=="number"&&w.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[W](w){return G(this.uid,w.uid,this.processUid)}[E](w){return G(this.gid,w.gid,this.processGid)}[O](w,V){let J=w.mode&4095||this.fmode,se=new s.WriteStream(w.absolute,{flags:P(w.size),mode:J,autoClose:!1});se.on("error",fe=>{se.fd&&n.close(se.fd,()=>{}),se.write=()=>!0,this[k](fe,w),V()});let ae=1,ge=fe=>{if(fe){se.fd&&n.close(se.fd,()=>{}),this[k](fe,w),V();return}--ae===0&&n.close(se.fd,Se=>{Se?this[k](Se,w):this[R](),V()})};se.on("finish",fe=>{let Se=w.absolute,ct=se.fd;if(w.mtime&&!this.noMtime){ae++;let ht=w.atime||new Date,Xi=w.mtime;n.futimes(ct,ht,Xi,Qi=>Qi?n.utimes(Se,ht,Xi,uu=>ge(uu&&Qi)):ge())}if(this[Y](w)){ae++;let ht=this[W](w),Xi=this[E](w);n.fchown(ct,ht,Xi,Qi=>Qi?n.chown(Se,ht,Xi,uu=>ge(uu&&Qi)):ge())}ge()});let ce=this.transform&&this.transform(w)||w;ce!==w&&(ce.on("error",fe=>{this[k](fe,w),V()}),w.pipe(ce)),ce.pipe(se)}[x](w,V){let J=w.mode&4095||this.dmode;this[L](w.absolute,J,se=>{if(se){this[k](se,w),V();return}let ae=1,ge=ce=>{--ae===0&&(V(),this[R](),w.resume())};w.mtime&&!this.noMtime&&(ae++,n.utimes(w.absolute,w.atime||new Date,w.mtime,ge)),this[Y](w)&&(ae++,n.chown(w.absolute,this[W](w),this[E](w),ge)),ge()})}[M](w){w.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${w.type}`,{entry:w}),w.resume()}[b](w,V){this[B](w,w.linkpath,"symlink",V)}[S](w,V){let J=h(o.resolve(this.cwd,w.linkpath));this[B](w,J,"link",V)}[j](){this[I]++}[R](){this[I]--,this[A]()}[N](w){this[R](),w.resume()}[F](w,V){return w.type==="File"&&!this.unlink&&V.isFile()&&V.nlink<=1&&!$}[d](w){this[j]();let V=[w.path];w.linkpath&&V.push(w.linkpath),this.reservations.reserve(V,J=>this[y](w,J))}[v](w){w.type==="SymbolicLink"?re(this.dirCache):w.type!=="Directory"&&z(this.dirCache,w.absolute)}[y](w,V){this[v](w);let J=ce=>{this[v](w),V(ce)},se=()=>{this[L](this.cwd,this.dmode,ce=>{if(ce){this[k](ce,w),J();return}this[g]=!0,ae()})},ae=()=>{if(w.absolute!==this.cwd){let ce=h(o.dirname(w.absolute));if(ce!==this.cwd)return this[L](ce,this.dmode,fe=>{if(fe){this[k](fe,w),J();return}ge()})}ge()},ge=()=>{n.lstat(w.absolute,(ce,fe)=>{if(fe&&(this.keep||this.newer&&fe.mtime>w.mtime)){this[N](w),J();return}if(ce||this[F](w,fe))return this[T](null,w,J);if(fe.isDirectory()){if(w.type==="Directory"){let Se=!this.noChmod&&w.mode&&(fe.mode&4095)!==w.mode,ct=ht=>this[T](ht,w,J);return Se?n.chmod(w.absolute,w.mode,ct):ct()}if(w.absolute!==this.cwd)return n.rmdir(w.absolute,Se=>this[T](Se,w,J))}if(w.absolute===this.cwd)return this[T](null,w,J);q(w.absolute,Se=>this[T](Se,w,J))})};this[g]?ae():se()}[T](w,V,J){if(w){this[k](w,V),J();return}switch(V.type){case"File":case"OldFile":case"ContiguousFile":return this[O](V,J);case"Link":return this[S](V,J);case"SymbolicLink":return this[b](V,J);case"Directory":case"GNUDumpDir":return this[x](V,J)}}[B](w,V,J,se){n[J](V,w.absolute,ae=>{ae?this[k](ae,w):(this[R](),w.resume()),se()})}},be=w=>{try{return[null,w()]}catch(V){return[V,null]}},Ee=class extends le{[T](w,V){return super[T](w,V,()=>{})}[d](w){if(this[v](w),!this[g]){let ae=this[L](this.cwd,this.dmode);if(ae)return this[k](ae,w);this[g]=!0}if(w.absolute!==this.cwd){let ae=h(o.dirname(w.absolute));if(ae!==this.cwd){let ge=this[L](ae,this.dmode);if(ge)return this[k](ge,w)}}let[V,J]=be(()=>n.lstatSync(w.absolute));if(J&&(this.keep||this.newer&&J.mtime>w.mtime))return this[N](w);if(V||this[F](w,J))return this[T](null,w);if(J.isDirectory()){if(w.type==="Directory"){let ge=!this.noChmod&&w.mode&&(J.mode&4095)!==w.mode,[ce]=ge?be(()=>{n.chmodSync(w.absolute,w.mode)}):[];return this[T](ce,w)}let[ae]=be(()=>n.rmdirSync(w.absolute));this[T](ae,w)}let[se]=w.absolute===this.cwd?[]:be(()=>Z(w.absolute));this[T](se,w)}[O](w,V){let J=w.mode&4095||this.fmode,se=ce=>{let fe;try{n.closeSync(ae)}catch(Se){fe=Se}(ce||fe)&&this[k](ce||fe,w),V()},ae;try{ae=n.openSync(w.absolute,P(w.size),J)}catch(ce){return se(ce)}let ge=this.transform&&this.transform(w)||w;ge!==w&&(ge.on("error",ce=>this[k](ce,w)),w.pipe(ge)),ge.on("data",ce=>{try{n.writeSync(ae,ce,0,ce.length)}catch(fe){se(fe)}}),ge.on("end",ce=>{let fe=null;if(w.mtime&&!this.noMtime){let Se=w.atime||new Date,ct=w.mtime;try{n.futimesSync(ae,Se,ct)}catch(ht){try{n.utimesSync(w.absolute,Se,ct)}catch{fe=ht}}}if(this[Y](w)){let Se=this[W](w),ct=this[E](w);try{n.fchownSync(ae,Se,ct)}catch(ht){try{n.chownSync(w.absolute,Se,ct)}catch{fe=fe||ht}}}se(fe)})}[x](w,V){let J=w.mode&4095||this.dmode,se=this[L](w.absolute,J);if(se){this[k](se,w),V();return}if(w.mtime&&!this.noMtime)try{n.utimesSync(w.absolute,w.atime||new Date,w.mtime)}catch{}if(this[Y](w))try{n.chownSync(w.absolute,this[W](w),this[E](w))}catch{}V(),w.resume()}[L](w,V){try{return u.sync(h(w),{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:V})}catch(J){return J}}[B](w,V,J,se){try{n[J+"Sync"](V,w.absolute),se(),w.resume()}catch(ae){return this[k](ae,w)}}};le.Sync=Ee,e.exports=le}),mx=Q((t,e)=>{"use strict";K();var r=En(),i=yy(),n=te("fs"),s=wn(),o=te("path"),u=bn();e.exports=(p,m,d)=>{typeof p=="function"?(d=p,m=null,p={}):Array.isArray(p)&&(m=p,p={}),typeof m=="function"&&(d=m,m=null),m?m=Array.from(m):m=[];let y=r(p);if(y.sync&&typeof d=="function")throw new TypeError("callback not supported for sync tar functions");if(!y.file&&typeof d=="function")throw new TypeError("callback only supported with file option");return m.length&&a(y,m),y.file&&y.sync?l(y):y.file?c(y,d):y.sync?h(y):f(y)};var a=(p,m)=>{let d=new Map(m.map(F=>[u(F),!0])),y=p.filter,v=(F,T)=>{let O=T||o.parse(F).root||".",x=F===O?!1:d.has(F)?d.get(F):v(o.dirname(F),O);return d.set(F,x),x};p.filter=y?(F,T)=>y(F,T)&&v(u(F)):F=>v(u(F))},l=p=>{let m=new i.Sync(p),d=p.file,y=n.statSync(d),v=p.maxReadSize||16*1024*1024;new s.ReadStreamSync(d,{readSize:v,size:y.size}).pipe(m)},c=(p,m)=>{let d=new i(p),y=p.maxReadSize||16*1024*1024,v=p.file,F=new Promise((T,O)=>{d.on("error",O),d.on("close",T),n.stat(v,(x,B)=>{if(x)O(x);else{let b=new s.ReadStream(v,{readSize:y,size:B.size});b.on("error",O),b.pipe(d)}})});return m?F.then(m,m):F},h=p=>new i.Sync(p),f=p=>new i(p)}),yx=Q(t=>{"use strict";K(),t.c=t.create=ix(),t.r=t.replace=py(),t.t=t.list=kl(),t.u=t.update=nx(),t.x=t.extract=mx(),t.Pack=Ol(),t.Unpack=yy(),t.Parse=Tl(),t.ReadEntry=Rl(),t.WriteEntry=hy(),t.Header=_n(),t.Pax=xl(),t.types=ay()}),gx=Q((t,e)=>{K();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 u=this._errors[o],a=u.message,l=(i[a]||0)+1;i[a]=l,l>=s&&(n=u,s=l)}return n}}),Ex=Q(t=>{K();var e=gx();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(u,a){return u-a}),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 u=n[o],a=r[u];r[u]=function(l){var c=t.operation(i),h=Array.prototype.slice.call(arguments,1),f=h.pop();h.push(function(p){c.retry(p)||(p&&(arguments[0]=c.mainError()),f.apply(this,arguments))}),c.attempt(function(){l.apply(r,h)})}.bind(r,a),r[u].options=i}}}),Dx=Q((t,e)=>{K(),e.exports=Ex()}),_x=Q((t,e)=>{K();var r=Dx();function i(n,s){function o(u,a){var l=s||{},c;"randomize"in l||(l.randomize=!0),c=r.operation(l);function h(m){a(m||new Error("Aborted"))}function f(m,d){if(m.bail){h(m);return}c.retry(m)?l.onRetry&&l.onRetry(m,d):a(c.mainError())}function p(m){var d;try{d=n(h,m)}catch(y){f(y,m);return}Promise.resolve(d).then(u).catch(function(y){f(y,m)})}c.attempt(p)}return new Promise(o)}e.exports=i}),bx={};$R(bx,{bold:()=>Cx,dimmed:()=>Rx,error:()=>Ox,info:()=>vx,item:()=>xx,log:()=>Sn,turboBlue:()=>Di,turboGradient:()=>Sx,turboLoader:()=>Ax,turboRed:()=>by,warn:()=>Fx,yellow:()=>wy});K();var Dy="#0099F7",_y="#F11712",wx="#FFFF00",Sx=(0,Ey.default)(Dy,_y),Di=Si.default.hex(Dy),by=Si.default.hex(_y),wy=Si.default.hex(wx),Ax=t=>(0,gy.default)({text:t,spinner:{frames:[" ",Di("> "),Di(">> "),Di(">>>")]}}),vx=(...t)=>{Sn(Di.bold(">>>"),...t)},Cx=(...t)=>{Sn(Si.default.bold(...t))},Rx=(...t)=>{Sn(Si.default.dim(...t))},xx=(...t)=>{Sn(Di.bold(" \u2022"),...t)},Sn=(...t)=>{console.log(...t)},Fx=(...t)=>{console.error(wy.bold(">>>"),...t)},Ox=(...t)=>{console.error(by.bold(">>>"),...t)};K();K();K();K();var UB=zs(WR());K();K();function kx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}K();K();function Sl(t){return Sl=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},Sl(t)}K();function Lx(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Bx(t,e){if(e&&(Sl(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lx(t)}K();function Gs(t){return Gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gs(t)}K();K();function mn(t,e){return mn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},mn(t,e)}function Px(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&&mn(t,e)}K();K();function Ix(t){return Function.toString.call(t).indexOf("[native code]")!==-1}K();K();function Nx(){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 Us(t,e,r){return Nx()?Us=Reflect.construct.bind():Us=function(i,n,s){var o=[null];o.push.apply(o,n);var u=Function.bind.apply(i,o),a=new u;return s&&mn(a,s.prototype),a},Us.apply(null,arguments)}function Al(t){var e=typeof Map=="function"?new Map:void 0;return Al=function(r){if(r===null||!Ix(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 Us(r,arguments,Gs(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),mn(i,r)},Al(t)}var GB=zs(XR()),YB=function(t){Px(e,t);function e(r){var i;return kx(this,e),i=Bx(this,Gs(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Al(Error));K();K();K();K();K();K();var n2=zs(yx()),s2=(0,Ay.promisify)(Sy.Stream.pipeline);K();K();var l2=zs(_x());K();K();K();var Le=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,Le)}};K();K();K();K();var Mx=/^(?!_)(?<manager>.+)@(?<version>.+)$/;function Ue({workspaceRoot:t}){let e=Nt.default.join(t,"package.json");try{return(0,Ze.readJsonSync)(e,"utf8")}catch(r){if(r&&typeof r=="object"&&"code"in r){if(r.code==="ENOENT")throw new Le(`no "package.json" found at ${t}`,{type:"package_json-missing"});if(r.code==="EJSONPARSE")throw new Le(`failed to parse "package.json" at ${t}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${t}`)}}function Ws({workspaceRoot:t}){let{packageManager:e}=Ue({workspaceRoot:t});if(e)try{let r=Mx.exec(e);if(r){let[i,n]=r;return n}}catch{}}function An({workspaceRoot:t}){let e=Ue({workspaceRoot:t}),r=Nt.default.basename(t),{name:i=r,description:n}=e;return{name:i,description:n}}function iy({workspaceRoot:t}){let e=Nt.default.join(t,"pnpm-workspace.yaml");if((0,Ze.existsSync)(e))try{let r=qu.load((0,Ze.readFileSync)(e,"utf8"));if(r instanceof Object&&"packages"in r&&Array.isArray(r.packages))return r.packages}catch{throw new Le(`failed to parse ${e}`,{type:"pnpm-workspace_parse_error"})}return[]}function Ys({root:t,lockFile:e,workspaceConfig:r}){let i=s=>Nt.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 Ll({workspaces:t}){var e;return t?Array.isArray(t)?t:"packages"in t?(e=t.packages)!=null?e:[]:[]:[]}function Ks({workspaceRoot:t,workspaceGlobs:e}){return e?e.flatMap(r=>{let i=[`${r}/package.json`];return(0,Oy.sync)(i,{onlyFiles:!0,absolute:!0,cwd:t,ignore:["**/node_modules/**"]})}).map(r=>{let i=Nt.default.dirname(r),{name:n,description:s}=An({workspaceRoot:i});return{name:n,description:s,paths:{root:i,packageJson:r,nodeModules:Nt.default.join(i,"node_modules")}}}):[]}function jx({directory:t}){let e=Nt.default.resolve(process.cwd(),t);return{exists:(0,Ze.existsSync)(e),absolute:e}}function cr({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 Hx({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 It({project:t,options:e}){e!=null&&e.dry||(0,Ze.rmSync)(t.paths.lockfile,{force:!0})}async function Ty({project:t,options:e}){if(!(e!=null&&e.dry)&&(0,Ze.existsSync)(t.paths.lockfile))try{let{stdout:r}=await(0,Fy.default)("bun",["bun.lockb"],{stdin:"ignore",cwd:t.paths.root});await(0,Ze.writeFile)(Nt.default.join(t.paths.root,"yarn.lock"),r)}catch{}finally{(0,Ze.rmSync)(t.paths.lockfile,{force:!0})}}function qx({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],u=o.startsWith("workspace:")?o.slice(10):o;t[s]=r.name==="pnpm"?`workspace:${u}`:u,i.push(s)}}),{dependencyList:t,updated:i}}function ar({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=Ue({workspaceRoot:e.paths.root}),o={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},u=["dependencies","devDependencies","peerDependencies","optionalDependencies"];u.forEach(h=>{let f=s[h];if(f){let{updated:p,dependencyList:m}=qx({dependencyList:f,project:t,to:r});s[h]=m,o[h]=p}});let a=h=>{let f=o[h].length;if(f>0)return`${xy.default.green(f.toString())} ${h}`},l=u.map(a).filter(Boolean),c=`./${Cy.default.relative(t.paths.root,e.paths.packageJson)}`;if(l.length>=1){let h="updating";l.forEach((f,p)=>{l.length===1?h+=` ${f} in ${c}`:p===l.length-1?h+=`and ${f} in ${c}`:h+=` ${f}, `}),i.workspaceStep(h)}else i.workspaceStep(`no workspace dependencies found in ${c}`);n!=null&&n.dry||(0,Ry.writeJSONSync)(e.paths.packageJson,s,{spaces:2})}var lr={name:"pnpm",lock:"pnpm-lock.yaml"};async function ky(t){let e=Br.default.join(t.workspaceRoot,lr.lock),r=Br.default.join(t.workspaceRoot,"pnpm-workspace.yaml"),i=Ws({workspaceRoot:t.workspaceRoot});return(0,He.existsSync)(e)||(0,He.existsSync)(r)||i===lr.name}async function $x(t){if(!await ky(t))throw new Le("Not a pnpm project",{type:"package_manager-unexpected"});let{name:e,description:r}=An(t);return{name:e,description:r,packageManager:lr.name,paths:Ys({root:t.workspaceRoot,lockFile:lr.lock,workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:iy(t),workspaces:Ks({workspaceGlobs:iy(t),...t})}}}async function Ux(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(cr({action:"create",packageManager:lr.name,project:e}));let o=Ue({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,He.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),s&&(i.rootStep('adding "pnpm-workspace.yaml"'),(0,He.writeFileSync)(Br.default.join(e.paths.root,"pnpm-workspace.yaml"),`packages:
|
41
|
+
`).reduce(u,Object.create(null)),u=(a,l)=>{let c=parseInt(l,10);if(c!==Buffer.byteLength(l)+1)return a;l=l.slice((c+" ").length);let h=l.split("="),f=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!f)return a;let d=h.join("=");return a[f]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(f)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,a};e.exports=n}),wn=ee((t,e)=>{W(),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)}}),Fl=ee((t,e)=>{"use strict";W(),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))}}}),ly=ee((t,e)=>{"use strict";W();var r=["|","<",">","?",":"],i=r.map(o=>String.fromCharCode(61440+o.charCodeAt(0))),n=new Map(r.map((o,u)=>[o,i[u]])),s=new Map(i.map((o,u)=>[o,r[u]]));e.exports={encode:o=>r.reduce((u,a)=>u.split(a).join(n.get(a)),o),decode:o=>i.reduce((u,a)=>u.split(a).join(s.get(a)),o)}}),cy=ee((t,e)=>{W();var{isAbsolute:r,parse:i}=te("path").win32;e.exports=n=>{let s="",o=i(n);for(;r(n)||o.root;){let u=n.charAt(0)==="/"&&n.slice(0,4)!=="//?/"?"/":o.root;n=n.slice(u.length),s+=u,o=i(n)}return[s,n]}}),rx=ee((t,e)=>{"use strict";W(),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)}),hy=ee((t,e)=>{"use strict";W();var r=Cl(),i=xl(),n=bn(),s=te("fs"),o=te("path"),u=_n(),a=wn(),l=(m,D)=>D?(m=u(m).replace(/^\.(\/|$)/,""),a(D)+"/"+m):u(m),c=16*1024*1024,h=Symbol("process"),f=Symbol("file"),d=Symbol("directory"),g=Symbol("symlink"),y=Symbol("hardlink"),E=Symbol("header"),v=Symbol("read"),F=Symbol("lstat"),O=Symbol("onlstat"),x=Symbol("onread"),R=Symbol("onreadlink"),L=Symbol("openfile"),_=Symbol("onopenfile"),S=Symbol("close"),N=Symbol("mode"),q=Symbol("awaitDrain"),k=Symbol("ondrain"),U=Symbol("prefix"),K=Symbol("hadError"),V=Fl(),B=ly(),C=cy(),T=rx(),j=V(class extends r{constructor(m,D){if(D=D||{},super(D),typeof m!="string")throw new TypeError("path is required");this.path=u(m),this.portable=!!D.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=D.maxReadSize||c,this.linkCache=D.linkCache||new Map,this.statCache=D.statCache||new Map,this.preservePaths=!!D.preservePaths,this.cwd=u(D.cwd||process.cwd()),this.strict=!!D.strict,this.noPax=!!D.noPax,this.noMtime=!!D.noMtime,this.mtime=D.mtime||null,this.prefix=D.prefix?u(D.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 D.onwarn=="function"&&this.on("warn",D.onwarn);let A=!1;if(!this.preservePaths){let[w,I]=C(this.path);w&&(this.path=I,A=w)}this.win32=!!D.win32||process.platform==="win32",this.win32&&(this.path=B.decode(this.path.replace(/\\/g,"/")),m=m.replace(/\\/g,"/")),this.absolute=u(D.absolute||o.resolve(this.cwd,m)),this.path===""&&(this.path="./"),A&&this.warn("TAR_ENTRY_INFO",`stripping ${A} from absolute path`,{entry:this,path:A+this.path}),this.statCache.has(this.absolute)?this[O](this.statCache.get(this.absolute)):this[F]()}emit(m,...D){return m==="error"&&(this[K]=!0),super.emit(m,...D)}[F](){s.lstat(this.absolute,(m,D)=>{if(m)return this.emit("error",m);this[O](D)})}[O](m){this.statCache.set(this.absolute,m),this.stat=m,m.isFile()||(m.size=0),this.type=p(m),this.emit("stat",m),this[h]()}[h](){switch(this.type){case"File":return this[f]();case"Directory":return this[d]();case"SymbolicLink":return this[g]();default:return this.end()}}[N](m){return T(m,this.type==="Directory",this.portable)}[U](m){return l(m,this.prefix)}[E](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new n({path:this[U](this.path),linkpath:this.type==="Link"?this[U](this.linkpath):this.linkpath,mode:this[N](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[U](this.path),linkpath:this.type==="Link"?this[U](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[E](),this.end()}[g](){s.readlink(this.absolute,(m,D)=>{if(m)return this.emit("error",m);this[R](D)})}[R](m){this.linkpath=u(m),this[E](),this.end()}[y](m){this.type="Link",this.linkpath=u(o.relative(this.cwd,m)),this.stat.size=0,this[E](),this.end()}[f](){if(this.stat.nlink>1){let m=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(m)){let D=this.linkCache.get(m);if(D.indexOf(this.cwd)===0)return this[y](D)}this.linkCache.set(m,this.absolute)}if(this[E](),this.stat.size===0)return this.end();this[L]()}[L](){s.open(this.absolute,"r",(m,D)=>{if(m)return this.emit("error",m);this[_](D)})}[_](m){if(this.fd=m,this[K])return this[S]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let D=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(D),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[v]()}[v](){let{fd:m,buf:D,offset:A,length:w,pos:I}=this;s.read(m,D,A,w,I,(M,Z)=>{if(M)return this[S](()=>this.emit("error",M));this[x](Z)})}[S](m){s.close(this.fd,m)}[x](m){if(m<=0&&this.remain>0){let A=new Error("encountered unexpected EOF");return A.path=this.absolute,A.syscall="read",A.code="EOF",this[S](()=>this.emit("error",A))}if(m>this.remain){let A=new Error("did not encounter expected EOF");return A.path=this.absolute,A.syscall="read",A.code="EOF",this[S](()=>this.emit("error",A))}if(m===this.remain)for(let A=m;A<this.length&&m<this.blockRemain;A++)this.buf[A+this.offset]=0,m++,this.remain++;let D=this.offset===0&&m===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+m);this.write(D)?this[k]():this[q](()=>this[k]())}[q](m){this.once("drain",m)}write(m){if(this.blockRemain<m.length){let D=new Error("writing more data than expected");return D.path=this.absolute,this.emit("error",D)}return this.remain-=m.length,this.blockRemain-=m.length,this.pos+=m.length,this.offset+=m.length,super.write(m)}[k](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[S](m=>m?this.emit("error",m):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[v]()}}),z=class extends j{[F](){this[O](s.lstatSync(this.absolute))}[g](){this[R](s.readlinkSync(this.absolute))}[L](){this[_](s.openSync(this.absolute,"r"))}[v](){let m=!0;try{let{fd:D,buf:A,offset:w,length:I,pos:M}=this,Z=s.readSync(D,A,w,I,M);this[x](Z),m=!1}finally{if(m)try{this[S](()=>{})}catch{}}}[q](m){m()}[S](m){s.closeSync(this.fd),m()}},P=V(class extends r{constructor(m,D){D=D||{},super(D),this.preservePaths=!!D.preservePaths,this.portable=!!D.portable,this.strict=!!D.strict,this.noPax=!!D.noPax,this.noMtime=!!D.noMtime,this.readEntry=m,this.type=m.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=D.prefix||null,this.path=u(m.path),this.mode=this[N](m.mode),this.uid=this.portable?null:m.uid,this.gid=this.portable?null:m.gid,this.uname=this.portable?null:m.uname,this.gname=this.portable?null:m.gname,this.size=m.size,this.mtime=this.noMtime?null:D.mtime||m.mtime,this.atime=this.portable?null:m.atime,this.ctime=this.portable?null:m.ctime,this.linkpath=u(m.linkpath),typeof D.onwarn=="function"&&this.on("warn",D.onwarn);let A=!1;if(!this.preservePaths){let[w,I]=C(this.path);w&&(this.path=I,A=w)}this.remain=m.size,this.blockRemain=m.startBlockSize,this.header=new n({path:this[U](this.path),linkpath:this.type==="Link"?this[U](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}),A&&this.warn("TAR_ENTRY_INFO",`stripping ${A} from absolute path`,{entry:this,path:A+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[U](this.path),linkpath:this.type==="Link"?this[U](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),m.pipe(this)}[U](m){return l(m,this.prefix)}[N](m){return T(m,this.type==="Directory",this.portable)}write(m){let D=m.length;if(D>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=D,super.write(m)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});j.Sync=z,j.Tar=P;var p=m=>m.isFile()?"File":m.isDirectory()?"Directory":m.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=j}),ix=ee((t,e)=>{"use strict";W(),e.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let i=this.head;i;i=i.next)yield i.value}}}),fy=ee((t,e)=>{"use strict";W(),e.exports=r,r.Node=o,r.create=r;function r(u){var a=this;if(a instanceof r||(a=new r),a.tail=null,a.head=null,a.length=0,u&&typeof u.forEach=="function")u.forEach(function(h){a.push(h)});else if(arguments.length>0)for(var l=0,c=arguments.length;l<c;l++)a.push(arguments[l]);return a}r.prototype.removeNode=function(u){if(u.list!==this)throw new Error("removing node which does not belong to this list");var a=u.next,l=u.prev;return a&&(a.prev=l),l&&(l.next=a),u===this.head&&(this.head=a),u===this.tail&&(this.tail=l),u.list.length--,u.next=null,u.prev=null,u.list=null,a},r.prototype.unshiftNode=function(u){if(u!==this.head){u.list&&u.list.removeNode(u);var a=this.head;u.list=this,u.next=a,a&&(a.prev=u),this.head=u,this.tail||(this.tail=u),this.length++}},r.prototype.pushNode=function(u){if(u!==this.tail){u.list&&u.list.removeNode(u);var a=this.tail;u.list=this,u.prev=a,a&&(a.next=u),this.tail=u,this.head||(this.head=u),this.length++}},r.prototype.push=function(){for(var u=0,a=arguments.length;u<a;u++)n(this,arguments[u]);return this.length},r.prototype.unshift=function(){for(var u=0,a=arguments.length;u<a;u++)s(this,arguments[u]);return this.length},r.prototype.pop=function(){if(this.tail){var u=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,u}},r.prototype.shift=function(){if(this.head){var u=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,u}},r.prototype.forEach=function(u,a){a=a||this;for(var l=this.head,c=0;l!==null;c++)u.call(a,l.value,c,this),l=l.next},r.prototype.forEachReverse=function(u,a){a=a||this;for(var l=this.tail,c=this.length-1;l!==null;c--)u.call(a,l.value,c,this),l=l.prev},r.prototype.get=function(u){for(var a=0,l=this.head;l!==null&&a<u;a++)l=l.next;if(a===u&&l!==null)return l.value},r.prototype.getReverse=function(u){for(var a=0,l=this.tail;l!==null&&a<u;a++)l=l.prev;if(a===u&&l!==null)return l.value},r.prototype.map=function(u,a){a=a||this;for(var l=new r,c=this.head;c!==null;)l.push(u.call(a,c.value,this)),c=c.next;return l},r.prototype.mapReverse=function(u,a){a=a||this;for(var l=new r,c=this.tail;c!==null;)l.push(u.call(a,c.value,this)),c=c.prev;return l},r.prototype.reduce=function(u,a){var l,c=this.head;if(arguments.length>1)l=a;else if(this.head)c=this.head.next,l=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=0;c!==null;h++)l=u(l,c.value,h),c=c.next;return l},r.prototype.reduceReverse=function(u,a){var l,c=this.tail;if(arguments.length>1)l=a;else if(this.tail)c=this.tail.prev,l=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=this.length-1;c!==null;h--)l=u(l,c.value,h),c=c.prev;return l},r.prototype.toArray=function(){for(var u=new Array(this.length),a=0,l=this.head;l!==null;a++)u[a]=l.value,l=l.next;return u},r.prototype.toArrayReverse=function(){for(var u=new Array(this.length),a=0,l=this.tail;l!==null;a++)u[a]=l.value,l=l.prev;return u},r.prototype.slice=function(u,a){a=a||this.length,a<0&&(a+=this.length),u=u||0,u<0&&(u+=this.length);var l=new r;if(a<u||a<0)return l;u<0&&(u=0),a>this.length&&(a=this.length);for(var c=0,h=this.head;h!==null&&c<u;c++)h=h.next;for(;h!==null&&c<a;c++,h=h.next)l.push(h.value);return l},r.prototype.sliceReverse=function(u,a){a=a||this.length,a<0&&(a+=this.length),u=u||0,u<0&&(u+=this.length);var l=new r;if(a<u||a<0)return l;u<0&&(u=0),a>this.length&&(a=this.length);for(var c=this.length,h=this.tail;h!==null&&c>a;c--)h=h.prev;for(;h!==null&&c>u;c--,h=h.prev)l.push(h.value);return l},r.prototype.splice=function(u,a,...l){u>this.length&&(u=this.length-1),u<0&&(u=this.length+u);for(var c=0,h=this.head;h!==null&&c<u;c++)h=h.next;for(var f=[],c=0;h&&c<a;c++)f.push(h.value),h=this.removeNode(h);h===null&&(h=this.tail),h!==this.head&&h!==this.tail&&(h=h.prev);for(var c=0;c<l.length;c++)h=i(this,h,l[c]);return f},r.prototype.reverse=function(){for(var u=this.head,a=this.tail,l=u;l!==null;l=l.prev){var c=l.prev;l.prev=l.next,l.next=c}return this.head=a,this.tail=u,this};function i(u,a,l){var c=a===u.head?new o(l,null,a,u):new o(l,a,a.next,u);return c.next===null&&(u.tail=c),c.prev===null&&(u.head=c),u.length++,c}function n(u,a){u.tail=new o(a,u.tail,null,u),u.head||(u.head=u.tail),u.length++}function s(u,a){u.head=new o(a,null,u.head,u),u.tail||(u.tail=u.head),u.length++}function o(u,a,l,c){if(!(this instanceof o))return new o(u,a,l,c);this.list=c,this.value=u,a?(a.next=this,this.prev=a):this.prev=null,l?(l.prev=this,this.next=l):this.next=null}try{ix()(r)}catch{}}),Ol=ee((t,e)=>{"use strict";W();var r=class{constructor(p,m){this.path=p||"./",this.absolute=m,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},i=Cl(),n=uy(),s=Rl(),o=hy(),u=o.Sync,a=o.Tar,l=fy(),c=Buffer.alloc(1024),h=Symbol("onStat"),f=Symbol("ended"),d=Symbol("queue"),g=Symbol("current"),y=Symbol("process"),E=Symbol("processing"),v=Symbol("processJob"),F=Symbol("jobs"),O=Symbol("jobDone"),x=Symbol("addFSEntry"),R=Symbol("addTarEntry"),L=Symbol("stat"),_=Symbol("readdir"),S=Symbol("onreaddir"),N=Symbol("pipe"),q=Symbol("entry"),k=Symbol("entryOpt"),U=Symbol("writeEntryClass"),K=Symbol("write"),V=Symbol("ondrain"),B=te("fs"),C=te("path"),T=Fl(),j=_n(),z=T(class extends i{constructor(p){super(p),p=p||Object.create(null),this.opt=p,this.file=p.file||"",this.cwd=p.cwd||process.cwd(),this.maxReadSize=p.maxReadSize,this.preservePaths=!!p.preservePaths,this.strict=!!p.strict,this.noPax=!!p.noPax,this.prefix=j(p.prefix||""),this.linkCache=p.linkCache||new Map,this.statCache=p.statCache||new Map,this.readdirCache=p.readdirCache||new Map,this[U]=o,typeof p.onwarn=="function"&&this.on("warn",p.onwarn),this.portable=!!p.portable,this.zip=null,p.gzip?(typeof p.gzip!="object"&&(p.gzip={}),this.portable&&(p.gzip.portable=!0),this.zip=new n.Gzip(p.gzip),this.zip.on("data",m=>super.write(m)),this.zip.on("end",m=>super.end()),this.zip.on("drain",m=>this[V]()),this.on("resume",m=>this.zip.resume())):this.on("drain",this[V]),this.noDirRecurse=!!p.noDirRecurse,this.follow=!!p.follow,this.noMtime=!!p.noMtime,this.mtime=p.mtime||null,this.filter=typeof p.filter=="function"?p.filter:m=>!0,this[d]=new l,this[F]=0,this.jobs=+p.jobs||4,this[E]=!1,this[f]=!1}[K](p){return super.write(p)}add(p){return this.write(p),this}end(p){return p&&this.write(p),this[f]=!0,this[y](),this}write(p){if(this[f])throw new Error("write after end");return p instanceof s?this[R](p):this[x](p),this.flowing}[R](p){let m=j(C.resolve(this.cwd,p.path));if(!this.filter(p.path,p))p.resume();else{let D=new r(p.path,m,!1);D.entry=new a(p,this[k](D)),D.entry.on("end",A=>this[O](D)),this[F]+=1,this[d].push(D)}this[y]()}[x](p){let m=j(C.resolve(this.cwd,p));this[d].push(new r(p,m)),this[y]()}[L](p){p.pending=!0,this[F]+=1;let m=this.follow?"stat":"lstat";B[m](p.absolute,(D,A)=>{p.pending=!1,this[F]-=1,D?this.emit("error",D):this[h](p,A)})}[h](p,m){this.statCache.set(p.absolute,m),p.stat=m,this.filter(p.path,m)||(p.ignore=!0),this[y]()}[_](p){p.pending=!0,this[F]+=1,B.readdir(p.absolute,(m,D)=>{if(p.pending=!1,this[F]-=1,m)return this.emit("error",m);this[S](p,D)})}[S](p,m){this.readdirCache.set(p.absolute,m),p.readdir=m,this[y]()}[y](){if(!this[E]){this[E]=!0;for(let p=this[d].head;p!==null&&this[F]<this.jobs;p=p.next)if(this[v](p.value),p.value.ignore){let m=p.next;this[d].removeNode(p),p.next=m}this[E]=!1,this[f]&&!this[d].length&&this[F]===0&&(this.zip?this.zip.end(c):(super.write(c),super.end()))}}get[g](){return this[d]&&this[d].head&&this[d].head.value}[O](p){this[d].shift(),this[F]-=1,this[y]()}[v](p){if(!p.pending){if(p.entry){p===this[g]&&!p.piped&&this[N](p);return}if(p.stat||(this.statCache.has(p.absolute)?this[h](p,this.statCache.get(p.absolute)):this[L](p)),!!p.stat&&!p.ignore&&!(!this.noDirRecurse&&p.stat.isDirectory()&&!p.readdir&&(this.readdirCache.has(p.absolute)?this[S](p,this.readdirCache.get(p.absolute)):this[_](p),!p.readdir))){if(p.entry=this[q](p),!p.entry){p.ignore=!0;return}p===this[g]&&!p.piped&&this[N](p)}}}[k](p){return{onwarn:(m,D,A)=>this.warn(m,D,A),noPax:this.noPax,cwd:this.cwd,absolute:p.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[q](p){this[F]+=1;try{return new this[U](p.path,this[k](p)).on("end",()=>this[O](p)).on("error",m=>this.emit("error",m))}catch(m){this.emit("error",m)}}[V](){this[g]&&this[g].entry&&this[g].entry.resume()}[N](p){p.piped=!0,p.readdir&&p.readdir.forEach(A=>{let w=p.path,I=w==="./"?"":w.replace(/\/*$/,"/");this[x](I+A)});let m=p.entry,D=this.zip;D?m.on("data",A=>{D.write(A)||m.pause()}):m.on("data",A=>{super.write(A)||m.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),P=class extends z{constructor(p){super(p),this[U]=u}pause(){}resume(){}[L](p){let m=this.follow?"statSync":"lstatSync";this[h](p,B[m](p.absolute))}[_](p,m){this[S](p,B.readdirSync(p.absolute))}[N](p){let m=p.entry,D=this.zip;p.readdir&&p.readdir.forEach(A=>{let w=p.path,I=w==="./"?"":w.replace(/\/*$/,"/");this[x](I+A)}),D?m.on("data",A=>{D.write(A)}):m.on("data",A=>{super[K](A)})}};z.Sync=P,e.exports=z}),Sn=ee(t=>{"use strict";W();var e=sy(),r=te("events").EventEmitter,i=te("fs"),n=i.writev;if(!n){let p=process.binding("fs"),m=p.FSReqWrap||p.FSReqCallback;n=(D,A,w,I)=>{let M=($,X)=>I($,X,A),Z=new m;Z.oncomplete=M,p.writeBuffers(D,A,w,Z)}}var s=Symbol("_autoClose"),o=Symbol("_close"),u=Symbol("_ended"),a=Symbol("_fd"),l=Symbol("_finished"),c=Symbol("_flags"),h=Symbol("_flush"),f=Symbol("_handleChunk"),d=Symbol("_makeBuf"),g=Symbol("_mode"),y=Symbol("_needDrain"),E=Symbol("_onerror"),v=Symbol("_onopen"),F=Symbol("_onread"),O=Symbol("_onwrite"),x=Symbol("_open"),R=Symbol("_path"),L=Symbol("_pos"),_=Symbol("_queue"),S=Symbol("_read"),N=Symbol("_readSize"),q=Symbol("_reading"),k=Symbol("_remain"),U=Symbol("_size"),K=Symbol("_write"),V=Symbol("_writing"),B=Symbol("_defaultFlag"),C=Symbol("_errored"),T=class extends e{constructor(p,m){if(m=m||{},super(m),this.readable=!0,this.writable=!1,typeof p!="string")throw new TypeError("path must be a string");this[C]=!1,this[a]=typeof m.fd=="number"?m.fd:null,this[R]=p,this[N]=m.readSize||16*1024*1024,this[q]=!1,this[U]=typeof m.size=="number"?m.size:1/0,this[k]=this[U],this[s]=typeof m.autoClose=="boolean"?m.autoClose:!0,typeof this[a]=="number"?this[S]():this[x]()}get fd(){return this[a]}get path(){return this[R]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[x](){i.open(this[R],"r",(p,m)=>this[v](p,m))}[v](p,m){p?this[E](p):(this[a]=m,this.emit("open",m),this[S]())}[d](){return Buffer.allocUnsafe(Math.min(this[N],this[k]))}[S](){if(!this[q]){this[q]=!0;let p=this[d]();if(p.length===0)return process.nextTick(()=>this[F](null,0,p));i.read(this[a],p,0,p.length,null,(m,D,A)=>this[F](m,D,A))}}[F](p,m,D){this[q]=!1,p?this[E](p):this[f](m,D)&&this[S]()}[o](){if(this[s]&&typeof this[a]=="number"){let p=this[a];this[a]=null,i.close(p,m=>m?this.emit("error",m):this.emit("close"))}}[E](p){this[q]=!0,this[o](),this.emit("error",p)}[f](p,m){let D=!1;return this[k]-=p,p>0&&(D=super.write(p<m.length?m.slice(0,p):m)),(p===0||this[k]<=0)&&(D=!1,this[o](),super.end()),D}emit(p,m){switch(p){case"prefinish":case"finish":break;case"drain":typeof this[a]=="number"&&this[S]();break;case"error":return this[C]?void 0:(this[C]=!0,super.emit(p,m));default:return super.emit(p,m)}}},j=class extends T{[x](){let p=!0;try{this[v](null,i.openSync(this[R],"r")),p=!1}finally{p&&this[o]()}}[S](){let p=!0;try{if(!this[q]){this[q]=!0;do{let m=this[d](),D=m.length===0?0:i.readSync(this[a],m,0,m.length,null);if(!this[f](D,m))break}while(!0);this[q]=!1}p=!1}finally{p&&this[o]()}}[o](){if(this[s]&&typeof this[a]=="number"){let p=this[a];this[a]=null,i.closeSync(p),this.emit("close")}}},z=class extends r{constructor(p,m){m=m||{},super(m),this.readable=!1,this.writable=!0,this[C]=!1,this[V]=!1,this[u]=!1,this[y]=!1,this[_]=[],this[R]=p,this[a]=typeof m.fd=="number"?m.fd:null,this[g]=m.mode===void 0?438:m.mode,this[L]=typeof m.start=="number"?m.start:null,this[s]=typeof m.autoClose=="boolean"?m.autoClose:!0;let D=this[L]!==null?"r+":"w";this[B]=m.flags===void 0,this[c]=this[B]?D:m.flags,this[a]===null&&this[x]()}emit(p,m){if(p==="error"){if(this[C])return;this[C]=!0}return super.emit(p,m)}get fd(){return this[a]}get path(){return this[R]}[E](p){this[o](),this[V]=!0,this.emit("error",p)}[x](){i.open(this[R],this[c],this[g],(p,m)=>this[v](p,m))}[v](p,m){this[B]&&this[c]==="r+"&&p&&p.code==="ENOENT"?(this[c]="w",this[x]()):p?this[E](p):(this[a]=m,this.emit("open",m),this[h]())}end(p,m){return p&&this.write(p,m),this[u]=!0,!this[V]&&!this[_].length&&typeof this[a]=="number"&&this[O](null,0),this}write(p,m){return typeof p=="string"&&(p=Buffer.from(p,m)),this[u]?(this.emit("error",new Error("write() after end()")),!1):this[a]===null||this[V]||this[_].length?(this[_].push(p),this[y]=!0,!1):(this[V]=!0,this[K](p),!0)}[K](p){i.write(this[a],p,0,p.length,this[L],(m,D)=>this[O](m,D))}[O](p,m){p?this[E](p):(this[L]!==null&&(this[L]+=m),this[_].length?this[h]():(this[V]=!1,this[u]&&!this[l]?(this[l]=!0,this[o](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[h](){if(this[_].length===0)this[u]&&this[O](null,0);else if(this[_].length===1)this[K](this[_].pop());else{let p=this[_];this[_]=[],n(this[a],p,this[L],(m,D)=>this[O](m,D))}}[o](){if(this[s]&&typeof this[a]=="number"){let p=this[a];this[a]=null,i.close(p,m=>m?this.emit("error",m):this.emit("close"))}}},P=class extends z{[x](){let p;if(this[B]&&this[c]==="r+")try{p=i.openSync(this[R],this[c],this[g])}catch(m){if(m.code==="ENOENT")return this[c]="w",this[x]();throw m}else p=i.openSync(this[R],this[c],this[g]);this[v](null,p)}[o](){if(this[s]&&typeof this[a]=="number"){let p=this[a];this[a]=null,i.closeSync(p),this.emit("close")}}[K](p){let m=!0;try{this[O](null,i.writeSync(this[a],p,0,p.length,this[L])),m=!1}finally{if(m)try{this[o]()}catch{}}}};t.ReadStream=T,t.ReadStreamSync=j,t.WriteStream=z,t.WriteStreamSync=P}),Tl=ee((t,e)=>{"use strict";W();var r=Fl(),i=bn(),n=te("events"),s=fy(),o=1024*1024,u=Rl(),a=xl(),l=uy(),{nextTick:c}=te("process"),h=Buffer.from([31,139]),f=Symbol("state"),d=Symbol("writeEntry"),g=Symbol("readEntry"),y=Symbol("nextEntry"),E=Symbol("processEntry"),v=Symbol("extendedHeader"),F=Symbol("globalExtendedHeader"),O=Symbol("meta"),x=Symbol("emitMeta"),R=Symbol("buffer"),L=Symbol("queue"),_=Symbol("ended"),S=Symbol("emittedEnd"),N=Symbol("emit"),q=Symbol("unzip"),k=Symbol("consumeChunk"),U=Symbol("consumeChunkSub"),K=Symbol("consumeBody"),V=Symbol("consumeMeta"),B=Symbol("consumeHeader"),C=Symbol("consuming"),T=Symbol("bufferConcat"),j=Symbol("maybeEnd"),z=Symbol("writing"),P=Symbol("aborted"),p=Symbol("onDone"),m=Symbol("sawValidEntry"),D=Symbol("sawNullBlock"),A=Symbol("sawEOF"),w=Symbol("closeStream"),I=M=>!0;e.exports=r(class extends n{constructor(M){M=M||{},super(M),this.file=M.file||"",this[m]=null,this.on(p,Z=>{(this[f]==="begin"||this[m]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),M.ondone?this.on(p,M.ondone):this.on(p,Z=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!M.strict,this.maxMetaEntrySize=M.maxMetaEntrySize||o,this.filter=typeof M.filter=="function"?M.filter:I,this.writable=!0,this.readable=!1,this[L]=new s,this[R]=null,this[g]=null,this[d]=null,this[f]="begin",this[O]="",this[v]=null,this[F]=null,this[_]=!1,this[q]=null,this[P]=!1,this[D]=!1,this[A]=!1,this.on("end",()=>this[w]()),typeof M.onwarn=="function"&&this.on("warn",M.onwarn),typeof M.onentry=="function"&&this.on("entry",M.onentry)}[B](M,Z){this[m]===null&&(this[m]=!1);let $;try{$=new i(M,Z,this[v],this[F])}catch(X){return this.warn("TAR_ENTRY_INVALID",X)}if($.nullBlock)this[D]?(this[A]=!0,this[f]==="begin"&&(this[f]="header"),this[N]("eof")):(this[D]=!0,this[N]("nullBlock"));else if(this[D]=!1,!$.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:$});else if(!$.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:$});else{let X=$.type;if(/^(Symbolic)?Link$/.test(X)&&!$.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:$});else if(!/^(Symbolic)?Link$/.test(X)&&$.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:$});else{let G=this[d]=new u($,this[v],this[F]);if(!this[m])if(G.remain){let re=()=>{G.invalid||(this[m]=!0)};G.on("end",re)}else this[m]=!0;G.meta?G.size>this.maxMetaEntrySize?(G.ignore=!0,this[N]("ignoredEntry",G),this[f]="ignore",G.resume()):G.size>0&&(this[O]="",G.on("data",re=>this[O]+=re),this[f]="meta"):(this[v]=null,G.ignore=G.ignore||!this.filter(G.path,G),G.ignore?(this[N]("ignoredEntry",G),this[f]=G.remain?"ignore":"header",G.resume()):(G.remain?this[f]="body":(this[f]="header",G.end()),this[g]?this[L].push(G):(this[L].push(G),this[y]())))}}}[w](){c(()=>this.emit("close"))}[E](M){let Z=!0;return M?Array.isArray(M)?this.emit.apply(this,M):(this[g]=M,this.emit("entry",M),M.emittedEnd||(M.on("end",$=>this[y]()),Z=!1)):(this[g]=null,Z=!1),Z}[y](){do;while(this[E](this[L].shift()));if(!this[L].length){let M=this[g];!M||M.flowing||M.size===M.remain?this[z]||this.emit("drain"):M.once("drain",Z=>this.emit("drain"))}}[K](M,Z){let $=this[d],X=$.blockRemain,G=X>=M.length&&Z===0?M:M.slice(Z,Z+X);return $.write(G),$.blockRemain||(this[f]="header",this[d]=null,$.end()),G.length}[V](M,Z){let $=this[d],X=this[K](M,Z);return this[d]||this[x]($),X}[N](M,Z,$){!this[L].length&&!this[g]?this.emit(M,Z,$):this[L].push([M,Z,$])}[x](M){switch(this[N]("meta",this[O]),M.type){case"ExtendedHeader":case"OldExtendedHeader":this[v]=a.parse(this[O],this[v],!1);break;case"GlobalExtendedHeader":this[F]=a.parse(this[O],this[F],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[v]=this[v]||Object.create(null),this[v].path=this[O].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[v]=this[v]||Object.create(null),this[v].linkpath=this[O].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+M.type)}}abort(M){this[P]=!0,this.emit("abort",M),this.warn("TAR_ABORT",M,{recoverable:!1})}write(M){if(this[P])return;if(this[q]===null&&M){if(this[R]&&(M=Buffer.concat([this[R],M]),this[R]=null),M.length<h.length)return this[R]=M,!0;for(let $=0;this[q]===null&&$<h.length;$++)M[$]!==h[$]&&(this[q]=!1);if(this[q]===null){let $=this[_];this[_]=!1,this[q]=new l.Unzip,this[q].on("data",G=>this[k](G)),this[q].on("error",G=>this.abort(G)),this[q].on("end",G=>{this[_]=!0,this[k]()}),this[z]=!0;let X=this[q][$?"end":"write"](M);return this[z]=!1,X}}this[z]=!0,this[q]?this[q].write(M):this[k](M),this[z]=!1;let Z=this[L].length?!1:this[g]?this[g].flowing:!0;return!Z&&!this[L].length&&this[g].once("drain",$=>this.emit("drain")),Z}[T](M){M&&!this[P]&&(this[R]=this[R]?Buffer.concat([this[R],M]):M)}[j](){if(this[_]&&!this[S]&&!this[P]&&!this[C]){this[S]=!0;let M=this[d];if(M&&M.blockRemain){let Z=this[R]?this[R].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${M.blockRemain} more bytes, only ${Z} available)`,{entry:M}),this[R]&&M.write(this[R]),M.end()}this[N](p)}}[k](M){if(this[C])this[T](M);else if(!M&&!this[R])this[j]();else{if(this[C]=!0,this[R]){this[T](M);let Z=this[R];this[R]=null,this[U](Z)}else this[U](M);for(;this[R]&&this[R].length>=512&&!this[P]&&!this[A];){let Z=this[R];this[R]=null,this[U](Z)}this[C]=!1}(!this[R]||this[_])&&this[j]()}[U](M){let Z=0,$=M.length;for(;Z+512<=$&&!this[P]&&!this[A];)switch(this[f]){case"begin":case"header":this[B](M,Z),Z+=512;break;case"ignore":case"body":Z+=this[K](M,Z);break;case"meta":Z+=this[V](M,Z);break;default:throw new Error("invalid state: "+this[f])}Z<$&&(this[R]?this[R]=Buffer.concat([M.slice(Z),this[R]]):this[R]=M.slice(Z))}end(M){this[P]||(this[q]?this[q].end(M):(this[_]=!0,this.write(M)))}})}),kl=ee((t,e)=>{"use strict";W();var r=Dn(),i=Tl(),n=te("fs"),s=Sn(),o=te("path"),u=wn();e.exports=(d,g,y)=>{typeof d=="function"?(y=d,g=null,d={}):Array.isArray(d)&&(g=d,d={}),typeof g=="function"&&(y=g,g=null),g?g=Array.from(g):g=[];let E=r(d);if(E.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!E.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return g.length&&l(E,g),E.noResume||a(E),E.file&&E.sync?c(E):E.file?h(E,y):f(E)};var a=d=>{let g=d.onentry;d.onentry=g?y=>{g(y),y.resume()}:y=>y.resume()},l=(d,g)=>{let y=new Map(g.map(F=>[u(F),!0])),E=d.filter,v=(F,O)=>{let x=O||o.parse(F).root||".",R=F===x?!1:y.has(F)?y.get(F):v(o.dirname(F),x);return y.set(F,R),R};d.filter=E?(F,O)=>E(F,O)&&v(u(F)):F=>v(u(F))},c=d=>{let g=f(d),y=d.file,E=!0,v;try{let F=n.statSync(y),O=d.maxReadSize||16*1024*1024;if(F.size<O)g.end(n.readFileSync(y));else{let x=0,R=Buffer.allocUnsafe(O);for(v=n.openSync(y,"r");x<F.size;){let L=n.readSync(v,R,0,O,x);x+=L,g.write(R.slice(0,L))}g.end()}E=!1}finally{if(E&&v)try{n.closeSync(v)}catch{}}},h=(d,g)=>{let y=new i(d),E=d.maxReadSize||16*1024*1024,v=d.file,F=new Promise((O,x)=>{y.on("error",x),y.on("end",O),n.stat(v,(R,L)=>{if(R)x(R);else{let _=new s.ReadStream(v,{readSize:E,size:L.size});_.on("error",x),_.pipe(y)}})});return g?F.then(g,g):F},f=d=>new i(d)}),nx=ee((t,e)=>{"use strict";W();var r=Dn(),i=Ol(),n=Sn(),s=kl(),o=te("path");e.exports=(d,g,y)=>{if(typeof g=="function"&&(y=g),Array.isArray(d)&&(g=d,d={}),!g||!Array.isArray(g)||!g.length)throw new TypeError("no files or directories specified");g=Array.from(g);let E=r(d);if(E.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!E.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return E.file&&E.sync?u(E,g):E.file?a(E,g,y):E.sync?h(E,g):f(E,g)};var u=(d,g)=>{let y=new i.Sync(d),E=new n.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(E),l(y,g)},a=(d,g,y)=>{let E=new i(d),v=new n.WriteStream(d.file,{mode:d.mode||438});E.pipe(v);let F=new Promise((O,x)=>{v.on("error",x),v.on("close",O),E.on("error",x)});return c(E,g),y?F.then(y,y):F},l=(d,g)=>{g.forEach(y=>{y.charAt(0)==="@"?s({file:o.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:E=>d.add(E)}):d.add(y)}),d.end()},c=(d,g)=>{for(;g.length;){let y=g.shift();if(y.charAt(0)==="@")return s({file:o.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:E=>d.add(E)}).then(E=>c(d,g));d.add(y)}d.end()},h=(d,g)=>{let y=new i.Sync(d);return l(y,g),y},f=(d,g)=>{let y=new i(d);return c(y,g),y}}),py=ee((t,e)=>{"use strict";W();var r=Dn(),i=Ol(),n=te("fs"),s=Sn(),o=kl(),u=te("path"),a=bn();e.exports=(g,y,E)=>{let v=r(g);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?l(v,y):h(v,y,E)};var l=(g,y)=>{let E=new i.Sync(g),v=!0,F,O;try{try{F=n.openSync(g.file,"r+")}catch(L){if(L.code==="ENOENT")F=n.openSync(g.file,"w+");else throw L}let x=n.fstatSync(F),R=Buffer.alloc(512);e:for(O=0;O<x.size;O+=512){for(let S=0,N=0;S<512;S+=N){if(N=n.readSync(F,R,S,R.length-S,O+S),O===0&&R[0]===31&&R[1]===139)throw new Error("cannot append to compressed archives");if(!N)break e}let L=new a(R);if(!L.cksumValid)break;let _=512*Math.ceil(L.size/512);if(O+_+512>x.size)break;O+=_,g.mtimeCache&&g.mtimeCache.set(L.path,L.mtime)}v=!1,c(g,E,O,F,y)}finally{if(v)try{n.closeSync(F)}catch{}}},c=(g,y,E,v,F)=>{let O=new s.WriteStreamSync(g.file,{fd:v,start:E});y.pipe(O),f(y,F)},h=(g,y,E)=>{y=Array.from(y);let v=new i(g),F=(x,R,L)=>{let _=(U,K)=>{U?n.close(x,V=>L(U)):L(null,K)},S=0;if(R===0)return _(null,0);let N=0,q=Buffer.alloc(512),k=(U,K)=>{if(U)return _(U);if(N+=K,N<512&&K)return n.read(x,q,N,q.length-N,S+N,k);if(S===0&&q[0]===31&&q[1]===139)return _(new Error("cannot append to compressed archives"));if(N<512)return _(null,S);let V=new a(q);if(!V.cksumValid)return _(null,S);let B=512*Math.ceil(V.size/512);if(S+B+512>R||(S+=B+512,S>=R))return _(null,S);g.mtimeCache&&g.mtimeCache.set(V.path,V.mtime),N=0,n.read(x,q,0,512,S,k)};n.read(x,q,0,512,S,k)},O=new Promise((x,R)=>{v.on("error",R);let L="r+",_=(S,N)=>{if(S&&S.code==="ENOENT"&&L==="r+")return L="w+",n.open(g.file,L,_);if(S)return R(S);n.fstat(N,(q,k)=>{if(q)return n.close(N,()=>R(q));F(N,k.size,(U,K)=>{if(U)return R(U);let V=new s.WriteStream(g.file,{fd:N,start:K});v.pipe(V),V.on("error",R),V.on("close",x),d(v,y)})})};n.open(g.file,L,_)});return E?O.then(E,E):O},f=(g,y)=>{y.forEach(E=>{E.charAt(0)==="@"?o({file:u.resolve(g.cwd,E.slice(1)),sync:!0,noResume:!0,onentry:v=>g.add(v)}):g.add(E)}),g.end()},d=(g,y)=>{for(;y.length;){let E=y.shift();if(E.charAt(0)==="@")return o({file:u.resolve(g.cwd,E.slice(1)),noResume:!0,onentry:v=>g.add(v)}).then(v=>d(g,y));g.add(E)}g.end()}}),sx=ee((t,e)=>{"use strict";W();var r=Dn(),i=py();e.exports=(s,o,u)=>{let a=r(s);if(!a.file)throw new TypeError("file is required");if(a.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(a),i(a,o,u)};var n=s=>{let o=s.filter;s.mtimeCache||(s.mtimeCache=new Map),s.filter=o?(u,a)=>o(u,a)&&!(s.mtimeCache.get(u)>a.mtime):(u,a)=>!(s.mtimeCache.get(u)>a.mtime)}}),ox=ee((t,e)=>{W();var{promisify:r}=te("util"),i=te("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}),ux=ee((t,e)=>{W();var r=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:i,parse:n}=te("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 u=/[*|"<>?:]/,{root:a}=n(o);if(u.test(o.substr(a.length)))throw Object.assign(new Error("Illegal characters in path."),{path:o,code:"EINVAL"})}return o};e.exports=s}),ax=ee((t,e)=>{W();var{dirname:r}=te("path"),i=(s,o,u=void 0)=>u===o?Promise.resolve():s.statAsync(o).then(a=>a.isDirectory()?u:void 0,a=>a.code==="ENOENT"?i(s,r(o),o):void 0),n=(s,o,u=void 0)=>{if(u!==o)try{return s.statSync(o).isDirectory()?u:void 0}catch(a){return a.code==="ENOENT"?n(s,r(o),o):void 0}};e.exports={findMade:i,findMadeSync:n}}),dy=ee((t,e)=>{W();var{dirname:r}=te("path"),i=(s,o,u)=>{o.recursive=!1;let a=r(s);return a===s?o.mkdirAsync(s,o).catch(l=>{if(l.code!=="EISDIR")throw l}):o.mkdirAsync(s,o).then(()=>u||s,l=>{if(l.code==="ENOENT")return i(a,o).then(c=>i(s,o,c));if(l.code!=="EEXIST"&&l.code!=="EROFS")throw l;return o.statAsync(s).then(c=>{if(c.isDirectory())return u;throw l},()=>{throw l})})},n=(s,o,u)=>{let a=r(s);if(o.recursive=!1,a===s)try{return o.mkdirSync(s,o)}catch(l){if(l.code!=="EISDIR")throw l;return}try{return o.mkdirSync(s,o),u||s}catch(l){if(l.code==="ENOENT")return n(s,o,n(a,o,u));if(l.code!=="EEXIST"&&l.code!=="EROFS")throw l;try{if(!o.statSync(s).isDirectory())throw l}catch{throw l}}};e.exports={mkdirpManual:i,mkdirpManualSync:n}}),lx=ee((t,e)=>{W();var{dirname:r}=te("path"),{findMade:i,findMadeSync:n}=ax(),{mkdirpManual:s,mkdirpManualSync:o}=dy(),u=(l,c)=>(c.recursive=!0,r(l)===l?c.mkdirAsync(l,c):i(c,l).then(h=>c.mkdirAsync(l,c).then(()=>h).catch(f=>{if(f.code==="ENOENT")return s(l,c);throw f}))),a=(l,c)=>{if(c.recursive=!0,r(l)===l)return c.mkdirSync(l,c);let h=n(c,l);try{return c.mkdirSync(l,c),h}catch(f){if(f.code==="ENOENT")return o(l,c);throw f}};e.exports={mkdirpNative:u,mkdirpNativeSync:a}}),cx=ee((t,e)=>{W();var r=te("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?a=>a.mkdir===r.mkdir:()=>!1,u=s?a=>a.mkdirSync===r.mkdirSync:()=>!1;e.exports={useNative:o,useNativeSync:u}}),hx=ee((t,e)=>{W();var r=ox(),i=ux(),{mkdirpNative:n,mkdirpNativeSync:s}=lx(),{mkdirpManual:o,mkdirpManualSync:u}=dy(),{useNative:a,useNativeSync:l}=cx(),c=(f,d)=>(f=i(f),d=r(d),a(d)?n(f,d):o(f,d)),h=(f,d)=>(f=i(f),d=r(d),l(d)?s(f,d):u(f,d));c.sync=h,c.native=(f,d)=>n(i(f),r(d)),c.manual=(f,d)=>o(i(f),r(d)),c.nativeSync=(f,d)=>s(i(f),r(d)),c.manualSync=(f,d)=>u(i(f),r(d)),e.exports=c}),fx=ee((t,e)=>{"use strict";W();var r=te("fs"),i=te("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]/),u=(O,x,R)=>{try{return r[s](O,x,R)}catch(L){if(L.code!=="ENOENT")throw L}},a=(O,x,R)=>{try{return r.chownSync(O,x,R)}catch(L){if(L.code!=="ENOENT")throw L}},l=o?(O,x,R,L)=>_=>{!_||_.code!=="EISDIR"?L(_):r.chown(O,x,R,L)}:(O,x,R,L)=>L,c=o?(O,x,R)=>{try{return u(O,x,R)}catch(L){if(L.code!=="EISDIR")throw L;a(O,x,R)}}:(O,x,R)=>u(O,x,R),h=process.version,f=(O,x,R)=>r.readdir(O,x,R),d=(O,x)=>r.readdirSync(O,x);/^v4\./.test(h)&&(f=(O,x,R)=>r.readdir(O,R));var g=(O,x,R,L)=>{r[n](O,x,R,l(O,x,R,_=>{L(_&&_.code!=="ENOENT"?_:null)}))},y=(O,x,R,L,_)=>{if(typeof x=="string")return r.lstat(i.resolve(O,x),(S,N)=>{if(S)return _(S.code!=="ENOENT"?S:null);N.name=x,y(O,N,R,L,_)});if(x.isDirectory())E(i.resolve(O,x.name),R,L,S=>{if(S)return _(S);let N=i.resolve(O,x.name);g(N,R,L,_)});else{let S=i.resolve(O,x.name);g(S,R,L,_)}},E=(O,x,R,L)=>{f(O,{withFileTypes:!0},(_,S)=>{if(_){if(_.code==="ENOENT")return L();if(_.code!=="ENOTDIR"&&_.code!=="ENOTSUP")return L(_)}if(_||!S.length)return g(O,x,R,L);let N=S.length,q=null,k=U=>{if(!q){if(U)return L(q=U);if(--N===0)return g(O,x,R,L)}};S.forEach(U=>y(O,U,x,R,k))})},v=(O,x,R,L)=>{if(typeof x=="string")try{let _=r.lstatSync(i.resolve(O,x));_.name=x,x=_}catch(_){if(_.code==="ENOENT")return;throw _}x.isDirectory()&&F(i.resolve(O,x.name),R,L),c(i.resolve(O,x.name),R,L)},F=(O,x,R)=>{let L;try{L=d(O,{withFileTypes:!0})}catch(_){if(_.code==="ENOENT")return;if(_.code==="ENOTDIR"||_.code==="ENOTSUP")return c(O,x,R);throw _}return L&&L.length&&L.forEach(_=>v(O,_,x,R)),c(O,x,R)};e.exports=E,E.sync=F}),px=ee((t,e)=>{"use strict";W();var r=hx(),i=te("fs"),n=te("path"),s=fx(),o=_n(),u=class extends Error{constructor(y,E){super("Cannot extract through symbolic link"),this.path=E,this.symlink=y}get name(){return"SylinkError"}},a=class extends Error{constructor(y,E){super(E+": Cannot cd into '"+y+"'"),this.path=y,this.code=E}get name(){return"CwdError"}},l=(y,E)=>y.get(o(E)),c=(y,E,v)=>y.set(o(E),v),h=(y,E)=>{i.stat(y,(v,F)=>{(v||!F.isDirectory())&&(v=new a(y,v&&v.code||"ENOTDIR")),E(v)})};e.exports=(y,E,v)=>{y=o(y);let F=E.umask,O=E.mode|448,x=(O&F)!==0,R=E.uid,L=E.gid,_=typeof R=="number"&&typeof L=="number"&&(R!==E.processUid||L!==E.processGid),S=E.preserve,N=E.unlink,q=E.cache,k=o(E.cwd),U=(V,B)=>{V?v(V):(c(q,y,!0),B&&_?s(B,R,L,C=>U(C)):x?i.chmod(y,O,v):v())};if(q&&l(q,y)===!0)return U();if(y===k)return h(y,U);if(S)return r(y,{mode:O}).then(V=>U(null,V),U);let K=o(n.relative(k,y)).split("/");f(k,K,O,q,N,k,null,U)};var f=(y,E,v,F,O,x,R,L)=>{if(!E.length)return L(null,R);let _=E.shift(),S=o(n.resolve(y+"/"+_));if(l(F,S))return f(S,E,v,F,O,x,R,L);i.mkdir(S,v,d(S,E,v,F,O,x,R,L))},d=(y,E,v,F,O,x,R,L)=>_=>{_?i.lstat(y,(S,N)=>{if(S)S.path=S.path&&o(S.path),L(S);else if(N.isDirectory())f(y,E,v,F,O,x,R,L);else if(O)i.unlink(y,q=>{if(q)return L(q);i.mkdir(y,v,d(y,E,v,F,O,x,R,L))});else{if(N.isSymbolicLink())return L(new u(y,y+"/"+E.join("/")));L(_)}}):(R=R||y,f(y,E,v,F,O,x,R,L))},g=y=>{let E=!1,v="ENOTDIR";try{E=i.statSync(y).isDirectory()}catch(F){v=F.code}finally{if(!E)throw new a(y,v)}};e.exports.sync=(y,E)=>{y=o(y);let v=E.umask,F=E.mode|448,O=(F&v)!==0,x=E.uid,R=E.gid,L=typeof x=="number"&&typeof R=="number"&&(x!==E.processUid||R!==E.processGid),_=E.preserve,S=E.unlink,N=E.cache,q=o(E.cwd),k=V=>{c(N,y,!0),V&&L&&s.sync(V,x,R),O&&i.chmodSync(y,F)};if(N&&l(N,y)===!0)return k();if(y===q)return g(q),k();if(_)return k(r.sync(y,F));let U=o(n.relative(q,y)).split("/"),K=null;for(let V=U.shift(),B=q;V&&(B+="/"+V);V=U.shift())if(B=o(n.resolve(B)),!l(N,B))try{i.mkdirSync(B,F),K=K||B,c(N,B,!0)}catch{let C=i.lstatSync(B);if(C.isDirectory()){c(N,B,!0);continue}else if(S){i.unlinkSync(B),i.mkdirSync(B,F),K=K||B,c(N,B,!0);continue}else if(C.isSymbolicLink())return new u(B,B+"/"+U.join("/"))}return k(K)}}),my=ee((t,e)=>{W();var r=Object.create(null),{hasOwnProperty:i}=Object.prototype;e.exports=n=>(i.call(r,n)||(r[n]=n.normalize("NFKD")),r[n])}),dx=ee((t,e)=>{W();var r=te("assert"),i=my(),n=wn(),{join:s}=te("path"),o=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,u=o==="win32";e.exports=()=>{let a=new Map,l=new Map,c=E=>E.split("/").slice(0,-1).reduce((v,F)=>(v.length&&(F=s(v[v.length-1],F)),v.push(F||"/"),v),[]),h=new Set,f=E=>{let v=l.get(E);if(!v)throw new Error("function does not have any path reservations");return{paths:v.paths.map(F=>a.get(F)),dirs:[...v.dirs].map(F=>a.get(F))}},d=E=>{let{paths:v,dirs:F}=f(E);return v.every(O=>O[0]===E)&&F.every(O=>O[0]instanceof Set&&O[0].has(E))},g=E=>h.has(E)||!d(E)?!1:(h.add(E),E(()=>y(E)),!0),y=E=>{if(!h.has(E))return!1;let{paths:v,dirs:F}=l.get(E),O=new Set;return v.forEach(x=>{let R=a.get(x);r.equal(R[0],E),R.length===1?a.delete(x):(R.shift(),typeof R[0]=="function"?O.add(R[0]):R[0].forEach(L=>O.add(L)))}),F.forEach(x=>{let R=a.get(x);r(R[0]instanceof Set),R[0].size===1&&R.length===1?a.delete(x):R[0].size===1?(R.shift(),O.add(R[0])):R[0].delete(E)}),h.delete(E),O.forEach(x=>g(x)),!0};return{check:d,reserve:(E,v)=>{E=u?["win32 parallelization disabled"]:E.map(O=>i(n(s(O))).toLowerCase());let F=new Set(E.map(O=>c(O)).reduce((O,x)=>O.concat(x)));return l.set(v,{dirs:F,paths:E}),E.forEach(O=>{let x=a.get(O);x?x.push(v):a.set(O,[v])}),F.forEach(O=>{let x=a.get(O);x?x[x.length-1]instanceof Set?x[x.length-1].add(v):x.push(new Set([v])):a.set(O,[new Set([v])])}),g(v)}}}}),mx=ee((t,e)=>{W();var r=process.env.__FAKE_PLATFORM__||process.platform,i=r==="win32",n=global.__FAKE_TESTING_FS__||te("fs"),{O_CREAT:s,O_TRUNC:o,O_WRONLY:u,UV_FS_O_FILEMAP:a=0}=n.constants,l=i&&!!a,c=512*1024,h=a|o|s|u;e.exports=l?f=>f<c?h:"w":()=>"w"}),yy=ee((t,e)=>{"use strict";W();var r=te("assert"),i=Tl(),n=te("fs"),s=Sn(),o=te("path"),u=px(),a=ly(),l=dx(),c=cy(),h=_n(),f=wn(),d=my(),g=Symbol("onEntry"),y=Symbol("checkFs"),E=Symbol("checkFs2"),v=Symbol("pruneCache"),F=Symbol("isReusable"),O=Symbol("makeFs"),x=Symbol("file"),R=Symbol("directory"),L=Symbol("link"),_=Symbol("symlink"),S=Symbol("hardlink"),N=Symbol("unsupported"),q=Symbol("checkPath"),k=Symbol("mkdir"),U=Symbol("onError"),K=Symbol("pending"),V=Symbol("pend"),B=Symbol("unpend"),C=Symbol("ended"),T=Symbol("maybeClose"),j=Symbol("skip"),z=Symbol("doChown"),P=Symbol("uid"),p=Symbol("gid"),m=Symbol("checkedCwd"),D=te("crypto"),A=mx(),w=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,I=w==="win32",M=(b,Y)=>{if(!I)return n.unlink(b,Y);let J=b+".DELETE."+D.randomBytes(16).toString("hex");n.rename(b,J,se=>{if(se)return Y(se);n.unlink(J,Y)})},Z=b=>{if(!I)return n.unlinkSync(b);let Y=b+".DELETE."+D.randomBytes(16).toString("hex");n.renameSync(b,Y),n.unlinkSync(Y)},$=(b,Y,J)=>b===b>>>0?b:Y===Y>>>0?Y:J,X=b=>d(f(h(b))).toLowerCase(),G=(b,Y)=>{Y=X(Y);for(let J of b.keys()){let se=X(J);(se===Y||se.indexOf(Y+"/")===0)&&b.delete(J)}},re=b=>{for(let Y of b.keys())b.delete(Y)},le=class extends i{constructor(b){if(b||(b={}),b.ondone=Y=>{this[C]=!0,this[T]()},super(b),this[m]=!1,this.reservations=l(),this.transform=typeof b.transform=="function"?b.transform:null,this.writable=!0,this.readable=!1,this[K]=0,this[C]=!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||I,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",Y=>this[g](Y))}warn(b,Y,J={}){return(b==="TAR_BAD_ARCHIVE"||b==="TAR_ABORT")&&(J.recoverable=!1),super.warn(b,Y,J)}[T](){this[C]&&this[K]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[q](b){if(this.strip){let Y=h(b.path).split("/");if(Y.length<this.strip)return!1;if(b.path=Y.slice(this.strip).join("/"),b.type==="Link"){let J=h(b.linkpath).split("/");if(J.length>=this.strip)b.linkpath=J.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let Y=h(b.path),J=Y.split("/");if(J.includes("..")||I&&/^[a-z]:\.\.$/i.test(J[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:b,path:Y}),!1;let[se,ae]=c(Y);se&&(b.path=ae,this.warn("TAR_ENTRY_INFO",`stripping ${se} from absolute path`,{entry:b,path:Y}))}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:Y}=o.win32.parse(b.absolute);b.absolute=Y+a.encode(b.absolute.slice(Y.length));let{root:J}=o.win32.parse(b.path);b.path=J+a.encode(b.path.slice(J.length))}return!0}[g](b){if(!this[q](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[N](b)}}[U](b,Y){b.name==="CwdError"?this.emit("error",b):(this.warn("TAR_ENTRY_ERROR",b,{entry:Y}),this[B](),Y.resume())}[k](b,Y,J){u(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:Y,noChmod:this.noChmod},J)}[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}[P](b){return $(this.uid,b.uid,this.processUid)}[p](b){return $(this.gid,b.gid,this.processGid)}[x](b,Y){let J=b.mode&4095||this.fmode,se=new s.WriteStream(b.absolute,{flags:A(b.size),mode:J,autoClose:!1});se.on("error",fe=>{se.fd&&n.close(se.fd,()=>{}),se.write=()=>!0,this[U](fe,b),Y()});let ae=1,ge=fe=>{if(fe){se.fd&&n.close(se.fd,()=>{}),this[U](fe,b),Y();return}--ae===0&&n.close(se.fd,Se=>{Se?this[U](Se,b):this[B](),Y()})};se.on("finish",fe=>{let Se=b.absolute,ct=se.fd;if(b.mtime&&!this.noMtime){ae++;let ht=b.atime||new Date,Qi=b.mtime;n.futimes(ct,ht,Qi,en=>en?n.utimes(Se,ht,Qi,uu=>ge(uu&&en)):ge())}if(this[z](b)){ae++;let ht=this[P](b),Qi=this[p](b);n.fchown(ct,ht,Qi,en=>en?n.chown(Se,ht,Qi,uu=>ge(uu&&en)):ge())}ge()});let ce=this.transform&&this.transform(b)||b;ce!==b&&(ce.on("error",fe=>{this[U](fe,b),Y()}),b.pipe(ce)),ce.pipe(se)}[R](b,Y){let J=b.mode&4095||this.dmode;this[k](b.absolute,J,se=>{if(se){this[U](se,b),Y();return}let ae=1,ge=ce=>{--ae===0&&(Y(),this[B](),b.resume())};b.mtime&&!this.noMtime&&(ae++,n.utimes(b.absolute,b.atime||new Date,b.mtime,ge)),this[z](b)&&(ae++,n.chown(b.absolute,this[P](b),this[p](b),ge)),ge()})}[N](b){b.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${b.type}`,{entry:b}),b.resume()}[_](b,Y){this[L](b,b.linkpath,"symlink",Y)}[S](b,Y){let J=h(o.resolve(this.cwd,b.linkpath));this[L](b,J,"link",Y)}[V](){this[K]++}[B](){this[K]--,this[T]()}[j](b){this[B](),b.resume()}[F](b,Y){return b.type==="File"&&!this.unlink&&Y.isFile()&&Y.nlink<=1&&!I}[y](b){this[V]();let Y=[b.path];b.linkpath&&Y.push(b.linkpath),this.reservations.reserve(Y,J=>this[E](b,J))}[v](b){b.type==="SymbolicLink"?re(this.dirCache):b.type!=="Directory"&&G(this.dirCache,b.absolute)}[E](b,Y){this[v](b);let J=ce=>{this[v](b),Y(ce)},se=()=>{this[k](this.cwd,this.dmode,ce=>{if(ce){this[U](ce,b),J();return}this[m]=!0,ae()})},ae=()=>{if(b.absolute!==this.cwd){let ce=h(o.dirname(b.absolute));if(ce!==this.cwd)return this[k](ce,this.dmode,fe=>{if(fe){this[U](fe,b),J();return}ge()})}ge()},ge=()=>{n.lstat(b.absolute,(ce,fe)=>{if(fe&&(this.keep||this.newer&&fe.mtime>b.mtime)){this[j](b),J();return}if(ce||this[F](b,fe))return this[O](null,b,J);if(fe.isDirectory()){if(b.type==="Directory"){let Se=!this.noChmod&&b.mode&&(fe.mode&4095)!==b.mode,ct=ht=>this[O](ht,b,J);return Se?n.chmod(b.absolute,b.mode,ct):ct()}if(b.absolute!==this.cwd)return n.rmdir(b.absolute,Se=>this[O](Se,b,J))}if(b.absolute===this.cwd)return this[O](null,b,J);M(b.absolute,Se=>this[O](Se,b,J))})};this[m]?ae():se()}[O](b,Y,J){if(b){this[U](b,Y),J();return}switch(Y.type){case"File":case"OldFile":case"ContiguousFile":return this[x](Y,J);case"Link":return this[S](Y,J);case"SymbolicLink":return this[_](Y,J);case"Directory":case"GNUDumpDir":return this[R](Y,J)}}[L](b,Y,J,se){n[J](Y,b.absolute,ae=>{ae?this[U](ae,b):(this[B](),b.resume()),se()})}},be=b=>{try{return[null,b()]}catch(Y){return[Y,null]}},Ee=class extends le{[O](b,Y){return super[O](b,Y,()=>{})}[y](b){if(this[v](b),!this[m]){let ae=this[k](this.cwd,this.dmode);if(ae)return this[U](ae,b);this[m]=!0}if(b.absolute!==this.cwd){let ae=h(o.dirname(b.absolute));if(ae!==this.cwd){let ge=this[k](ae,this.dmode);if(ge)return this[U](ge,b)}}let[Y,J]=be(()=>n.lstatSync(b.absolute));if(J&&(this.keep||this.newer&&J.mtime>b.mtime))return this[j](b);if(Y||this[F](b,J))return this[O](null,b);if(J.isDirectory()){if(b.type==="Directory"){let ge=!this.noChmod&&b.mode&&(J.mode&4095)!==b.mode,[ce]=ge?be(()=>{n.chmodSync(b.absolute,b.mode)}):[];return this[O](ce,b)}let[ae]=be(()=>n.rmdirSync(b.absolute));this[O](ae,b)}let[se]=b.absolute===this.cwd?[]:be(()=>Z(b.absolute));this[O](se,b)}[x](b,Y){let J=b.mode&4095||this.fmode,se=ce=>{let fe;try{n.closeSync(ae)}catch(Se){fe=Se}(ce||fe)&&this[U](ce||fe,b),Y()},ae;try{ae=n.openSync(b.absolute,A(b.size),J)}catch(ce){return se(ce)}let ge=this.transform&&this.transform(b)||b;ge!==b&&(ge.on("error",ce=>this[U](ce,b)),b.pipe(ge)),ge.on("data",ce=>{try{n.writeSync(ae,ce,0,ce.length)}catch(fe){se(fe)}}),ge.on("end",ce=>{let fe=null;if(b.mtime&&!this.noMtime){let Se=b.atime||new Date,ct=b.mtime;try{n.futimesSync(ae,Se,ct)}catch(ht){try{n.utimesSync(b.absolute,Se,ct)}catch{fe=ht}}}if(this[z](b)){let Se=this[P](b),ct=this[p](b);try{n.fchownSync(ae,Se,ct)}catch(ht){try{n.chownSync(b.absolute,Se,ct)}catch{fe=fe||ht}}}se(fe)})}[R](b,Y){let J=b.mode&4095||this.dmode,se=this[k](b.absolute,J);if(se){this[U](se,b),Y();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[P](b),this[p](b))}catch{}Y(),b.resume()}[k](b,Y){try{return u.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:Y})}catch(J){return J}}[L](b,Y,J,se){try{n[J+"Sync"](Y,b.absolute),se(),b.resume()}catch(ae){return this[U](ae,b)}}};le.Sync=Ee,e.exports=le}),yx=ee((t,e)=>{"use strict";W();var r=Dn(),i=yy(),n=te("fs"),s=Sn(),o=te("path"),u=wn();e.exports=(d,g,y)=>{typeof d=="function"?(y=d,g=null,d={}):Array.isArray(d)&&(g=d,d={}),typeof g=="function"&&(y=g,g=null),g?g=Array.from(g):g=[];let E=r(d);if(E.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!E.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return g.length&&a(E,g),E.file&&E.sync?l(E):E.file?c(E,y):E.sync?h(E):f(E)};var a=(d,g)=>{let y=new Map(g.map(F=>[u(F),!0])),E=d.filter,v=(F,O)=>{let x=O||o.parse(F).root||".",R=F===x?!1:y.has(F)?y.get(F):v(o.dirname(F),x);return y.set(F,R),R};d.filter=E?(F,O)=>E(F,O)&&v(u(F)):F=>v(u(F))},l=d=>{let g=new i.Sync(d),y=d.file,E=n.statSync(y),v=d.maxReadSize||16*1024*1024;new s.ReadStreamSync(y,{readSize:v,size:E.size}).pipe(g)},c=(d,g)=>{let y=new i(d),E=d.maxReadSize||16*1024*1024,v=d.file,F=new Promise((O,x)=>{y.on("error",x),y.on("close",O),n.stat(v,(R,L)=>{if(R)x(R);else{let _=new s.ReadStream(v,{readSize:E,size:L.size});_.on("error",x),_.pipe(y)}})});return g?F.then(g,g):F},h=d=>new i.Sync(d),f=d=>new i(d)}),gx=ee(t=>{"use strict";W(),t.c=t.create=nx(),t.r=t.replace=py(),t.t=t.list=kl(),t.u=t.update=sx(),t.x=t.extract=yx(),t.Pack=Ol(),t.Unpack=yy(),t.Parse=Tl(),t.ReadEntry=Rl(),t.WriteEntry=hy(),t.Header=bn(),t.Pax=xl(),t.types=ay()}),Ex=ee((t,e)=>{W();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 u=this._errors[o],a=u.message,l=(i[a]||0)+1;i[a]=l,l>=s&&(n=u,s=l)}return n}}),Dx=ee(t=>{W();var e=Ex();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(u,a){return u-a}),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 u=n[o],a=r[u];r[u]=function(l){var c=t.operation(i),h=Array.prototype.slice.call(arguments,1),f=h.pop();h.push(function(d){c.retry(d)||(d&&(arguments[0]=c.mainError()),f.apply(this,arguments))}),c.attempt(function(){l.apply(r,h)})}.bind(r,a),r[u].options=i}}}),_x=ee((t,e)=>{W(),e.exports=Dx()}),bx=ee((t,e)=>{W();var r=_x();function i(n,s){function o(u,a){var l=s||{},c;"randomize"in l||(l.randomize=!0),c=r.operation(l);function h(g){a(g||new Error("Aborted"))}function f(g,y){if(g.bail){h(g);return}c.retry(g)?l.onRetry&&l.onRetry(g,y):a(c.mainError())}function d(g){var y;try{y=n(h,g)}catch(E){f(E,g);return}Promise.resolve(y).then(u).catch(function(E){f(E,g)})}c.attempt(d)}return new Promise(o)}e.exports=i}),wx={};UR(wx,{bold:()=>Rx,dimmed:()=>Fx,error:()=>Lx,grey:()=>Ox,info:()=>Cx,item:()=>Tx,log:()=>jr,turboBlue:()=>Si,turboGradient:()=>Ax,turboLoader:()=>vx,turboRed:()=>by,underline:()=>xx,warn:()=>kx,yellow:()=>wy});W();var Dy="#0099F7",_y="#F11712",Sx="#FFFF00",Ax=(0,Ey.default)(Dy,_y),Si=cr.default.hex(Dy),by=cr.default.hex(_y),wy=cr.default.hex(Sx),vx=t=>(0,gy.default)({text:t,spinner:{frames:[" ",Si("> "),Si(">> "),Si(">>>")]}}),Cx=(...t)=>{jr(Si.bold(">>>"),...t)},Rx=(...t)=>{jr(cr.default.bold(...t))},xx=(...t)=>{jr(cr.default.underline(...t))},Fx=(...t)=>{jr(cr.default.dim(...t))},Ox=(...t)=>{jr(cr.default.grey(...t))},Tx=(...t)=>{jr(Si.bold(" \u2022"),...t)},jr=(...t)=>{console.log(...t)},kx=(...t)=>{console.error(wy.bold(">>>"),...t)},Lx=(...t)=>{console.error(by.bold(">>>"),...t)};W();W();W();W();var YB=zs(YR());W();W();function Px(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}W();W();function Sl(t){return Sl=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},Sl(t)}W();function Ix(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Nx(t,e){if(e&&(Sl(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ix(t)}W();function Gs(t){return Gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gs(t)}W();W();function yn(t,e){return yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},yn(t,e)}function Mx(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&&yn(t,e)}W();W();function jx(t){return Function.toString.call(t).indexOf("[native code]")!==-1}W();W();function Hx(){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 Us(t,e,r){return Hx()?Us=Reflect.construct.bind():Us=function(i,n,s){var o=[null];o.push.apply(o,n);var u=Function.bind.apply(i,o),a=new u;return s&&yn(a,s.prototype),a},Us.apply(null,arguments)}function Al(t){var e=typeof Map=="function"?new Map:void 0;return Al=function(r){if(r===null||!jx(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 Us(r,arguments,Gs(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),yn(i,r)},Al(t)}var KB=zs(QR()),JB=function(t){Mx(e,t);function e(r){var i;return Px(this,e),i=Nx(this,Gs(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Al(Error));W();W();W();W();W();W();var a2=zs(gx()),l2=(0,Ay.promisify)(Sy.Stream.pipeline);W();W();var p2=zs(bx());W();W();W();var Le=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,Le)}};W();W();W();W();var qx=/^(?!_)(?<manager>.+)@(?<version>.+)$/;function Ue({workspaceRoot:t}){let e=Nt.default.join(t,"package.json");try{return(0,Ze.readJsonSync)(e,"utf8")}catch(r){if(r&&typeof r=="object"&&"code"in r){if(r.code==="ENOENT")throw new Le(`no "package.json" found at ${t}`,{type:"package_json-missing"});if(r.code==="EJSONPARSE")throw new Le(`failed to parse "package.json" at ${t}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${t}`)}}function Ws({workspaceRoot:t}){let{packageManager:e}=Ue({workspaceRoot:t});if(e)try{let r=qx.exec(e);if(r){let[i,n]=r;return n}}catch{}}function An({workspaceRoot:t}){let e=Ue({workspaceRoot:t}),r=Nt.default.basename(t),{name:i=r,description:n}=e;return{name:i,description:n}}function iy({workspaceRoot:t}){let e=Nt.default.join(t,"pnpm-workspace.yaml");if((0,Ze.existsSync)(e))try{let r=qu.load((0,Ze.readFileSync)(e,"utf8"));if(r instanceof Object&&"packages"in r&&Array.isArray(r.packages))return r.packages}catch{throw new Le(`failed to parse ${e}`,{type:"pnpm-workspace_parse_error"})}return[]}function Ys({root:t,lockFile:e,workspaceConfig:r}){let i=s=>Nt.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 Ll({workspaces:t}){var e;return t?Array.isArray(t)?t:"packages"in t?(e=t.packages)!=null?e:[]:[]:[]}function Ks({workspaceRoot:t,workspaceGlobs:e}){return e?e.flatMap(r=>{let i=[`${r}/package.json`];return(0,Oy.sync)(i,{onlyFiles:!0,absolute:!0,cwd:t,ignore:["**/node_modules/**"]})}).map(r=>{let i=Nt.default.dirname(r),{name:n,description:s}=An({workspaceRoot:i});return{name:n,description:s,paths:{root:i,packageJson:r,nodeModules:Nt.default.join(i,"node_modules")}}}):[]}function $x({directory:t}){let e=Nt.default.resolve(process.cwd(),t);return{exists:(0,Ze.existsSync)(e),absolute:e}}function hr({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 Ux({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 It({project:t,options:e}){e!=null&&e.dry||(0,Ze.rmSync)(t.paths.lockfile,{force:!0})}async function Ty({project:t,options:e}){if(!(e!=null&&e.dry)&&(0,Ze.existsSync)(t.paths.lockfile))try{let{stdout:r}=await(0,Fy.default)("bun",["bun.lockb"],{stdin:"ignore",cwd:t.paths.root});await(0,Ze.writeFile)(Nt.default.join(t.paths.root,"yarn.lock"),r)}catch{}finally{(0,Ze.rmSync)(t.paths.lockfile,{force:!0})}}function Gx({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],u=o.startsWith("workspace:")?o.slice(10):o;t[s]=r.name==="pnpm"?`workspace:${u}`:u,i.push(s)}}),{dependencyList:t,updated:i}}function ar({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=Ue({workspaceRoot:e.paths.root}),o={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},u=["dependencies","devDependencies","peerDependencies","optionalDependencies"];u.forEach(h=>{let f=s[h];if(f){let{updated:d,dependencyList:g}=Gx({dependencyList:f,project:t,to:r});s[h]=g,o[h]=d}});let a=h=>{let f=o[h].length;if(f>0)return`${xy.default.green(f.toString())} ${h}`},l=u.map(a).filter(Boolean),c=`./${Cy.default.relative(t.paths.root,e.paths.packageJson)}`;if(l.length>=1){let h="updating";l.forEach((f,d)=>{l.length===1?h+=` ${f} in ${c}`:d===l.length-1?h+=`and ${f} in ${c}`:h+=` ${f}, `}),i.workspaceStep(h)}else i.workspaceStep(`no workspace dependencies found in ${c}`);n!=null&&n.dry||(0,Ry.writeJSONSync)(e.paths.packageJson,s,{spaces:2})}var lr={name:"pnpm",lock:"pnpm-lock.yaml"};async function ky(t){let e=Nr.default.join(t.workspaceRoot,lr.lock),r=Nr.default.join(t.workspaceRoot,"pnpm-workspace.yaml"),i=Ws({workspaceRoot:t.workspaceRoot});return(0,He.existsSync)(e)||(0,He.existsSync)(r)||i===lr.name}async function zx(t){if(!await ky(t))throw new Le("Not a pnpm project",{type:"package_manager-unexpected"});let{name:e,description:r}=An(t);return{name:e,description:r,packageManager:lr.name,paths:Ys({root:t.workspaceRoot,lockFile:lr.lock,workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:iy(t),workspaces:Ks({workspaceGlobs:iy(t),...t})}}}async function Wx(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(hr({action:"create",packageManager:lr.name,project:e}));let o=Ue({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,He.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),s&&(i.rootStep('adding "pnpm-workspace.yaml"'),(0,He.writeFileSync)(Nr.default.join(e.paths.root,"pnpm-workspace.yaml"),`packages:
|
42
42
|
${e.workspaceData.globs.map(u=>` - "${u}"`).join(`
|
43
|
-
`)}`))),s&&(ar({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(u=>{ar({workspace:u,project:e,to:r,logger:i,options:n})}))}async function Gx(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(cr({action:"remove",packageManager:lr.name,project:e}));let s=Ue({workspaceRoot:e.paths.root});if(e.paths.workspaceConfig&&n&&(r.subStep('removing "pnpm-workspace.yaml"'),i!=null&&i.dry||(0,He.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,He.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(u=>u.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(u=>(0,He.rm)(u,{recursive:!0,force:!0})))}catch{throw new Le("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function zx(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${Br.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,He.rmSync)(e.paths.lockfile,{force:!0})}async function Wx(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${Br.default.relative(e.paths.root,e.paths.lockfile)} to ${lr.lock}`)},s=async()=>{if(!(r!=null&&r.dry)&&(0,He.existsSync)(e.paths.lockfile))try{await(0,vy.default)(lr.name,["import"],{stdio:"ignore",cwd:e.paths.root})}catch{}finally{It({project:e,options:r})}};switch(e.packageManager){case"pnpm":break;case"bun":n(),await Ty({project:e,options:r}),await s(),(0,He.rmSync)(Br.default.join(e.paths.root,"yarn.lock"),{force:!0});break;case"npm":n(),await s();break;case"yarn":n(),await s();break}}var Yx={detect:ky,read:$x,create:Ux,remove:Gx,clean:zx,convertLock:Wx};K();var _i={name:"npm",lock:"package-lock.json"};async function Ly(t){let e=yn.default.join(t.workspaceRoot,_i.lock),r=Ws({workspaceRoot:t.workspaceRoot});return(0,wt.existsSync)(e)||r===_i.name}async function Kx(t){if(!await Ly(t))throw new Le("Not an npm project",{type:"package_manager-unexpected"});let e=Ue(t),{name:r,description:i}=An(t),n=Ll({workspaces:e.workspaces});return{name:r,description:i,packageManager:_i.name,paths:Ys({root:t.workspaceRoot,lockFile:_i.lock}),workspaceData:{globs:n,workspaces:Ks({workspaceGlobs:n,...t})}}}async function Vx(t){let{project:e,options:r,to:i,logger:n}=t,s=e.workspaceData.globs.length>0;n.mainStep(cr({packageManager:_i.name,action:"create",project:e}));let o=Ue({workspaceRoot:e.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${yn.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${i.name}@${i.version}`,s?(n.rootStep(`adding "workspaces" field to ${yn.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,r!=null&&r.dry||(0,wt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ar({workspace:{name:"root",paths:e.paths},project:e,to:i,logger:n,options:r}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(u=>{ar({workspace:u,project:e,to:i,logger:n,options:r})})):r!=null&&r.dry||(0,wt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function Zx(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(cr({packageManager:_i.name,action:"remove",project:e}));let s=Ue({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,wt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(u=>u.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(u=>(0,wt.rm)(u,{recursive:!0,force:!0})))}catch{throw new Le("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function Jx(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${yn.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,wt.rmSync)(e.paths.lockfile,{force:!0})}async function Xx(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":It({project:e,options:r});break;case"bun":It({project:e,options:r});break;case"npm":break;case"yarn":It({project:e,options:r});break}}var Qx={detect:Ly,read:Kx,create:Vx,remove:Zx,clean:Jx,convertLock:Xx};K();var Pr={name:"yarn",lock:"yarn.lock"};async function By(t){let e=bi.default.join(t.workspaceRoot,Pr.lock),r=Ws({workspaceRoot:t.workspaceRoot});return(0,St.existsSync)(e)||r===Pr.name}async function eF(t){if(!await By(t))throw new Le("Not a yarn project",{type:"package_manager-unexpected"});let e=Ue(t),{name:r,description:i}=An(t),n=Ll({workspaces:e.workspaces});return{name:r,description:i,packageManager:Pr.name,paths:Ys({root:t.workspaceRoot,lockFile:Pr.lock}),workspaceData:{globs:n,workspaces:Ks({workspaceGlobs:n,...t})}}}async function tF(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(cr({packageManager:Pr.name,action:"create",project:e}));let o=Ue({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${bi.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${bi.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,St.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ar({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(u=>{ar({workspace:u,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,St.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function rF(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(cr({packageManager:Pr.name,action:"remove",project:e}));let s=Ue({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,St.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(u=>u.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(u=>(0,St.rm)(u,{recursive:!0,force:!0})))}catch{throw new Le("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function iF(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${bi.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,St.rmSync)(e.paths.lockfile,{force:!0})}async function nF(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${bi.default.relative(e.paths.root,e.paths.lockfile)} to ${Pr.lock}`)};switch(e.packageManager){case"pnpm":It({project:e,options:r});break;case"bun":n(),await Ty({project:e,options:r});break;case"npm":It({project:e,options:r});break;case"yarn":break}}var sF={detect:By,read:eF,create:tF,remove:rF,clean:iF,convertLock:nF};K();var wi={name:"bun",lock:"bun.lockb"};async function Py(t){let e=gn.default.join(t.workspaceRoot,wi.lock),r=Ws({workspaceRoot:t.workspaceRoot});return(0,At.existsSync)(e)||r===wi.name}async function oF(t){if(!await Py(t))throw new Le("Not a bun project",{type:"package_manager-unexpected"});let e=Ue(t),{name:r,description:i}=An(t),n=Ll({workspaces:e.workspaces});return{name:r,description:i,packageManager:wi.name,paths:Ys({root:t.workspaceRoot,lockFile:wi.lock}),workspaceData:{globs:n,workspaces:Ks({workspaceGlobs:n,...t})}}}async function uF(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;if(!Hx({project:e}))throw new Le("Unable to convert project to bun - workspace globs unsupported",{type:"bun-workspace_glob_error"});i.mainStep(cr({packageManager:wi.name,action:"create",project:e}));let o=Ue({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${gn.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${gn.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,At.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ar({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(u=>{ar({workspace:u,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,At.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function aF(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(cr({packageManager:wi.name,action:"remove",project:e}));let s=Ue({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,At.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(u=>u.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(u=>(0,At.rm)(u,{recursive:!0,force:!0})))}catch{throw new Le("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function lF(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${gn.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,At.rmSync)(e.paths.lockfile,{force:!0})}async function cF(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":It({project:e,options:r});break;case"bun":break;case"npm":It({project:e,options:r});break;case"yarn":It({project:e,options:r});break}}var hF={detect:Py,read:oF,create:uF,remove:aF,clean:lF,convertLock:cF},Iy={pnpm:Yx,yarn:sF,npm:Qx,bun:hF};K();async function Bl({root:t}){let{exists:e,absolute:r}=jx({directory:t});if(!e)throw new Le(`Could not find directory at ${r}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:i,read:n}of Object.values(Iy))if(await i({workspaceRoot:r}))return n({workspaceRoot:r});throw new Le("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}K();K();K();K();var DF=ie(qy());function Il(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vn(t){return vn=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},vn(t)}function Nl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ml(t,e){if(e&&(vn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nl(t)}function Ir(t){return Ir=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ir(t)}function Ht(t,e){return Ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Ht(t,e)}function jl(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&&Ht(t,e)}function Hl(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function ql(){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 Ai(t,e,r){return ql()?Ai=Reflect.construct.bind():Ai=function(n,s,o){var u=[null];u.push.apply(u,s);var a=Function.bind.apply(n,u),l=new a;return o&&Ht(l,o.prototype),l},Ai.apply(null,arguments)}function Cn(t){var e=typeof Map=="function"?new Map:void 0;return Cn=function(i){if(i===null||!Hl(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 Ai(i,arguments,Ir(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ht(n,i)},Cn(t)}var $y=ie(require("find-up"));var _F=ie(require("fs-extra")),qP=function(t){jl(e,t);function e(r){var i;return Il(this,e),i=Ml(this,Ir(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Cn(Error));var bF=ie(require("fs")),wF=ie(require("path"));var kF=ie(require("fs")),LF=ie(require("path"));var BF=ie($s());var it={};Oh(it,{bold:()=>xF,dimmed:()=>FF,error:()=>Jy,info:()=>RF,item:()=>OF,log:()=>Ri,turboBlue:()=>vi,turboGradient:()=>CF,turboLoader:()=>Vy,turboRed:()=>Yy,warn:()=>Zy,yellow:()=>Ky});var Ci=ie(require("chalk")),Uy=ie(require("ora")),Gy=ie(require("gradient-string")),zy="#0099F7",Wy="#F11712",vF="#FFFF00",CF=(0,Gy.default)(zy,Wy),vi=Ci.default.hex(zy),Yy=Ci.default.hex(Wy),Ky=Ci.default.hex(vF),Vy=t=>(0,Uy.default)({text:t,spinner:{frames:[" ",vi("> "),vi(">> "),vi(">>>")]}}),RF=(...t)=>{Ri(vi.bold(">>>"),...t)},xF=(...t)=>{Ri(Ci.default.bold(...t))},FF=(...t)=>{Ri(Ci.default.dim(...t))},OF=(...t)=>{Ri(vi.bold(" \u2022"),...t)},Ri=(...t)=>{console.log(...t)},Zy=(...t)=>{console.error(Ky.bold(">>>"),...t)},Jy=(...t)=>{console.error(Yy.bold(">>>"),...t)};var Xy=ie(require("os")),Qy=ie(ni());async function Zs(t,e=[],r){let i={cwd:Xy.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},...r};try{let{stdout:n}=await(0,Qy.default)(t,e,i);return n.trim()}catch{return}}async function $l(){let[t,e,r,i]=await Promise.all([Zs("yarnpkg",["--version"]),Zs("npm",["--version"]),Zs("pnpm",["--version"]),Zs("bun",["--version"])]);return{yarn:t,pnpm:r,npm:e,bun:i}}var PF=ie(require("fs-extra"));var IF=ie(require("path")),NF=ie(require("fs-extra")),MF=ie(require("chalk"));var XD=require("stream"),QD=require("util"),_k=require("path"),bk=require("os"),e_=require("fs"),wk=ie(JD());var QI=(0,QD.promisify)(XD.Stream.pipeline);var t_=require("fs-extra");var kk=ie(require("path")),Lk=ie(a_()),Bk=ie(require("chalk")),xh=require("fs-extra");var ou=ie(require("chalk"));var dt=ie(require("chalk")),Ji=class{constructor(e){this.transform=e.transformer,this.dry=e.dry}_log(...e){console.log(...e)}modified(...e){this._log(dt.default.green(" MODIFIED "),...e,this.dry?dt.default.dim("(dry run)"):"")}unchanged(...e){this._log(dt.default.gray(" UNCHANGED "),...e,this.dry?dt.default.dim("(dry run)"):"")}skipped(...e){this._log(dt.default.yellow(" SKIPPED "),...e,this.dry?dt.default.dim("(dry run)"):"")}error(...e){this._log(dt.default.red(" ERROR "),...e,this.dry?dt.default.dim("(dry run)"):"")}info(...e){this._log(dt.default.bold(" INFO "),...e,this.dry?dt.default.dim("(dry run)"):"")}};var l_=ie(require("os")),Fh=ie(require("path"));var iu=ie(require("chalk")),su=require("diff"),Ar=require("fs-extra"),nu=class{constructor(e){this.changes=[];if(this.filePath=e.filePath,this.rootPath=e.rootPath,this.after=e.after,this.error=e.error,e.before===void 0)try{Fh.default.extname(e.filePath)===".json"?this.before=(0,Ar.readJsonSync)(e.filePath):this.before=(0,Ar.readFileSync)(e.filePath)}catch{this.before=""}else e.before===null?this.before="":this.before=e.before;e.after?typeof this.before=="object"||typeof e.after=="object"?this.changes=(0,su.diffJson)(this.before,e.after):this.changes=(0,su.diffLines)(this.before,e.after):this.changes=[]}fileName(){return Fh.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?(0,Ar.writeJsonSync)(this.filePath,this.after,{spaces:2}):(0,Ar.writeFileSync)(this.filePath,this.after))}additions(){return this.changes.filter(e=>e.added).length}deletions(){return this.changes.filter(e=>e.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(e){e.diff?(this.changes.forEach(r=>{r.added?process.stdout.write(iu.default.green(r.value)):r.removed?process.stdout.write(iu.default.red(r.value)):process.stdout.write(iu.default.dim(r.value))}),it.log(l_.default.EOL)):it.log(this.after)}};var Yn=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dry,this.print=e.print,this.logger=new Ji(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new nu({rootPath:this.rootPath,...e})}finish(){let e={changes:{}};return Object.keys(this.modifications).forEach(i=>{let n=this.modifications[i],s={action:"unchanged",additions:n.additions(),deletions:n.deletions()};if(n.hasChanges()){if(this.dry)s.action="skipped",this.logger.skipped(ou.default.dim(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified(ou.default.bold(n.fileName()))}catch(o){let u="Unknown error";o instanceof Error&&(u=o.message),s.error=new Error(u),s.action="error",this.logger.error(n.fileName(),u)}this.print&&n.log({diff:!0})}else this.logger.unchanged(ou.default.dim(n.fileName()));e.changes[n.fileName()]=s}),Object.keys(e.changes).some(i=>e.changes[i].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:e.changes}):e}static logResults(e){let r=Object.keys(e.changes);if(it.log(),r.length>0){it.bold("Results:");let i={};r.forEach(n=>{var o;let s=e.changes[n];i[n]={action:s.action,additions:s.additions,deletions:s.deletions,error:((o=s.error)==null?void 0:o.message)||"None"}}),console.table(i),it.log()}}};function c_({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new Ji(i),s=new Yn(i);return{log:n,runner:s}}var p_="add-package-manager",Pk="Set the `packageManager` key in root `package.json` file",Ik="1.1.0";async function d_({root:t,options:e}){let{log:r,runner:i}=c_({transformer:p_,rootPath:t,options:e});r.info('Set "packageManager" key in root "package.json" file...');let n;try{n=await Bl({root:t})}catch{return i.abortTransform({reason:`Unable to determine package manager for ${t}`})}let s=await $l(),{packageManager:o}=n,u=s[o];if(!u)return i.abortTransform({reason:`Unable to determine package manager version for ${t}`});let a=`${o}@${u}`,l=h_.default.join(t,"package.json"),c=(0,f_.readJsonSync)(l),h=[{name:"package.json",path:t,packageJson:{...c,packageJsonPath:l}}];for(let f of h){let{packageJsonPath:p,...m}=f.packageJson,d={...m,packageManager:a};i.modifyFile({filePath:p,after:d})}return i.finish()}var Nk={name:p_,description:Pk,introducedIn:Ik,transformer:d_},Mk=Nk;0&&(module.exports={transformer});
|
43
|
+
`)}`))),s&&(ar({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(u=>{ar({workspace:u,project:e,to:r,logger:i,options:n})}))}async function Yx(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(hr({action:"remove",packageManager:lr.name,project:e}));let s=Ue({workspaceRoot:e.paths.root});if(e.paths.workspaceConfig&&n&&(r.subStep('removing "pnpm-workspace.yaml"'),i!=null&&i.dry||(0,He.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,He.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(u=>u.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(u=>(0,He.rm)(u,{recursive:!0,force:!0})))}catch{throw new Le("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function Kx(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${Nr.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,He.rmSync)(e.paths.lockfile,{force:!0})}async function Vx(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${Nr.default.relative(e.paths.root,e.paths.lockfile)} to ${lr.lock}`)},s=async()=>{if(!(r!=null&&r.dry)&&(0,He.existsSync)(e.paths.lockfile))try{await(0,vy.default)(lr.name,["import"],{stdio:"ignore",cwd:e.paths.root})}catch{}finally{It({project:e,options:r})}};switch(e.packageManager){case"pnpm":break;case"bun":n(),await Ty({project:e,options:r}),await s(),(0,He.rmSync)(Nr.default.join(e.paths.root,"yarn.lock"),{force:!0});break;case"npm":n(),await s();break;case"yarn":n(),await s();break}}var Zx={detect:ky,read:zx,create:Wx,remove:Yx,clean:Kx,convertLock:Vx};W();var Ai={name:"npm",lock:"package-lock.json"};async function Ly(t){let e=gn.default.join(t.workspaceRoot,Ai.lock),r=Ws({workspaceRoot:t.workspaceRoot});return(0,wt.existsSync)(e)||r===Ai.name}async function Jx(t){if(!await Ly(t))throw new Le("Not an npm project",{type:"package_manager-unexpected"});let e=Ue(t),{name:r,description:i}=An(t),n=Ll({workspaces:e.workspaces});return{name:r,description:i,packageManager:Ai.name,paths:Ys({root:t.workspaceRoot,lockFile:Ai.lock}),workspaceData:{globs:n,workspaces:Ks({workspaceGlobs:n,...t})}}}async function Xx(t){let{project:e,options:r,to:i,logger:n}=t,s=e.workspaceData.globs.length>0;n.mainStep(hr({packageManager:Ai.name,action:"create",project:e}));let o=Ue({workspaceRoot:e.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${gn.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${i.name}@${i.version}`,s?(n.rootStep(`adding "workspaces" field to ${gn.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,r!=null&&r.dry||(0,wt.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ar({workspace:{name:"root",paths:e.paths},project:e,to:i,logger:n,options:r}),n.workspaceHeader(),e.workspaceData.workspaces.forEach(u=>{ar({workspace:u,project:e,to:i,logger:n,options:r})})):r!=null&&r.dry||(0,wt.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function Qx(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(hr({packageManager:Ai.name,action:"remove",project:e}));let s=Ue({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,wt.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(u=>u.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(u=>(0,wt.rm)(u,{recursive:!0,force:!0})))}catch{throw new Le("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function eF(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${gn.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,wt.rmSync)(e.paths.lockfile,{force:!0})}async function tF(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":It({project:e,options:r});break;case"bun":It({project:e,options:r});break;case"npm":break;case"yarn":It({project:e,options:r});break}}var rF={detect:Ly,read:Jx,create:Xx,remove:Qx,clean:eF,convertLock:tF};W();var Mr={name:"yarn",lock:"yarn.lock"};async function By(t){let e=vi.default.join(t.workspaceRoot,Mr.lock),r=Ws({workspaceRoot:t.workspaceRoot});return(0,St.existsSync)(e)||r===Mr.name}async function iF(t){if(!await By(t))throw new Le("Not a yarn project",{type:"package_manager-unexpected"});let e=Ue(t),{name:r,description:i}=An(t),n=Ll({workspaces:e.workspaces});return{name:r,description:i,packageManager:Mr.name,paths:Ys({root:t.workspaceRoot,lockFile:Mr.lock}),workspaceData:{globs:n,workspaces:Ks({workspaceGlobs:n,...t})}}}async function nF(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;i.mainStep(hr({packageManager:Mr.name,action:"create",project:e}));let o=Ue({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${vi.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${vi.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,St.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ar({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(u=>{ar({workspace:u,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,St.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function sF(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(hr({packageManager:Mr.name,action:"remove",project:e}));let s=Ue({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,St.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(u=>u.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(u=>(0,St.rm)(u,{recursive:!0,force:!0})))}catch{throw new Le("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function oF(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${vi.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,St.rmSync)(e.paths.lockfile,{force:!0})}async function uF(t){let{project:e,options:r,logger:i}=t,n=()=>{i.subStep(`converting ${vi.default.relative(e.paths.root,e.paths.lockfile)} to ${Mr.lock}`)};switch(e.packageManager){case"pnpm":It({project:e,options:r});break;case"bun":n(),await Ty({project:e,options:r});break;case"npm":It({project:e,options:r});break;case"yarn":break}}var aF={detect:By,read:iF,create:nF,remove:sF,clean:oF,convertLock:uF};W();var Ci={name:"bun",lock:"bun.lockb"};async function Py(t){let e=En.default.join(t.workspaceRoot,Ci.lock),r=Ws({workspaceRoot:t.workspaceRoot});return(0,At.existsSync)(e)||r===Ci.name}async function lF(t){if(!await Py(t))throw new Le("Not a bun project",{type:"package_manager-unexpected"});let e=Ue(t),{name:r,description:i}=An(t),n=Ll({workspaces:e.workspaces});return{name:r,description:i,packageManager:Ci.name,paths:Ys({root:t.workspaceRoot,lockFile:Ci.lock}),workspaceData:{globs:n,workspaces:Ks({workspaceGlobs:n,...t})}}}async function cF(t){let{project:e,to:r,logger:i,options:n}=t,s=e.workspaceData.globs.length>0;if(!Ux({project:e}))throw new Le("Unable to convert project to bun - workspace globs unsupported",{type:"bun-workspace_glob_error"});i.mainStep(hr({packageManager:Ci.name,action:"create",project:e}));let o=Ue({workspaceRoot:e.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${En.default.relative(e.paths.root,e.paths.packageJson)}`),o.packageManager=`${r.name}@${r.version}`,s?(i.rootStep(`adding "workspaces" field to ${En.default.relative(e.paths.root,e.paths.packageJson)}`),o.workspaces=e.workspaceData.globs,n!=null&&n.dry||(0,At.writeJSONSync)(e.paths.packageJson,o,{spaces:2}),ar({workspace:{name:"root",paths:e.paths},project:e,to:r,logger:i,options:n}),i.workspaceHeader(),e.workspaceData.workspaces.forEach(u=>{ar({workspace:u,project:e,to:r,logger:i,options:n})})):n!=null&&n.dry||(0,At.writeJSONSync)(e.paths.packageJson,o,{spaces:2})}async function hF(t){let{project:e,logger:r,options:i}=t,n=e.workspaceData.globs.length>0;r.mainStep(hr({packageManager:Ci.name,action:"remove",project:e}));let s=Ue({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,At.writeJSONSync)(e.paths.packageJson,s,{spaces:2});let o=[e.paths.nodeModules,...e.workspaceData.workspaces.map(u=>u.paths.nodeModules)];try{r.subStep('removing "node_modules"'),await Promise.all(o.map(u=>(0,At.rm)(u,{recursive:!0,force:!0})))}catch{throw new Le("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function fF(t){let{project:e,logger:r,options:i}=t;r.subStep(`removing ${En.default.relative(e.paths.root,e.paths.lockfile)}`),i!=null&&i.dry||(0,At.rmSync)(e.paths.lockfile,{force:!0})}async function pF(t){let{project:e,options:r}=t;switch(e.packageManager){case"pnpm":It({project:e,options:r});break;case"bun":break;case"npm":It({project:e,options:r});break;case"yarn":It({project:e,options:r});break}}var dF={detect:Py,read:lF,create:cF,remove:hF,clean:fF,convertLock:pF},Iy={pnpm:Zx,yarn:aF,npm:rF,bun:dF};W();async function Bl({root:t}){let{exists:e,absolute:r}=$x({directory:t});if(!e)throw new Le(`Could not find directory at ${r}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:i,read:n}of Object.values(Iy))if(await i({workspaceRoot:r}))return n({workspaceRoot:r});throw new Le("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}W();W();W();W();var bF=ie($y());function Il(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vn(t){return vn=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},vn(t)}function Nl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ml(t,e){if(e&&(vn(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nl(t)}function Hr(t){return Hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hr(t)}function Ht(t,e){return Ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Ht(t,e)}function jl(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&&Ht(t,e)}function Hl(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function ql(){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 Ri(t,e,r){return ql()?Ri=Reflect.construct.bind():Ri=function(n,s,o){var u=[null];u.push.apply(u,s);var a=Function.bind.apply(n,u),l=new a;return o&&Ht(l,o.prototype),l},Ri.apply(null,arguments)}function Cn(t){var e=typeof Map=="function"?new Map:void 0;return Cn=function(i){if(i===null||!Hl(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 Ri(i,arguments,Hr(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ht(n,i)},Cn(t)}var Uy=ie(require("find-up"));var wF=ie(require("fs-extra")),zP=function(t){jl(e,t);function e(r){var i;return Il(this,e),i=Ml(this,Hr(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),i.directory=r,i}return e}(Cn(Error));var SF=ie(require("fs")),AF=ie(require("path"));var IF=ie(require("fs")),NF=ie(require("path"));var MF=ie($s());var it={};Oh(it,{bold:()=>OF,dimmed:()=>kF,error:()=>Xy,grey:()=>LF,info:()=>FF,item:()=>BF,log:()=>pr,turboBlue:()=>xi,turboGradient:()=>xF,turboLoader:()=>Zy,turboRed:()=>Ky,underline:()=>TF,warn:()=>Jy,yellow:()=>Vy});var fr=ie(require("chalk")),Gy=ie(require("ora")),zy=ie(require("gradient-string")),Wy="#0099F7",Yy="#F11712",RF="#FFFF00",xF=(0,zy.default)(Wy,Yy),xi=fr.default.hex(Wy),Ky=fr.default.hex(Yy),Vy=fr.default.hex(RF),Zy=t=>(0,Gy.default)({text:t,spinner:{frames:[" ",xi("> "),xi(">> "),xi(">>>")]}}),FF=(...t)=>{pr(xi.bold(">>>"),...t)},OF=(...t)=>{pr(fr.default.bold(...t))},TF=(...t)=>{pr(fr.default.underline(...t))},kF=(...t)=>{pr(fr.default.dim(...t))},LF=(...t)=>{pr(fr.default.grey(...t))},BF=(...t)=>{pr(xi.bold(" \u2022"),...t)},pr=(...t)=>{console.log(...t)},Jy=(...t)=>{console.error(Vy.bold(">>>"),...t)},Xy=(...t)=>{console.error(Ky.bold(">>>"),...t)};var Qy=ie(require("os")),eg=ie(ai());async function Zs(t,e=[],r){let i={cwd:Qy.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},...r};try{let{stdout:n}=await(0,eg.default)(t,e,i);return n.trim()}catch{return}}async function $l(){let[t,e,r,i]=await Promise.all([Zs("yarnpkg",["--version"]),Zs("npm",["--version"]),Zs("pnpm",["--version"]),Zs("bun",["--version"])]);return{yarn:t,pnpm:r,npm:e,bun:i}}var jF=ie(require("fs-extra"));var HF=ie(require("path")),qF=ie(require("fs-extra")),$F=ie(require("chalk"));var QD=require("stream"),e_=require("util"),Ak=require("path"),vk=require("os"),t_=require("fs"),Ck=ie(XD());var iN=(0,e_.promisify)(QD.Stream.pipeline);var r_=require("fs-extra");var Ik=ie(require("path")),Nk=ie(l_()),Mk=ie(require("chalk")),xh=require("fs-extra");var ou=ie(require("chalk"));var dt=ie(require("chalk")),Xi=class{constructor(e){this.transform=e.transformer,this.dry=e.dry}_log(...e){console.log(...e)}modified(...e){this._log(dt.default.green(" MODIFIED "),...e,this.dry?dt.default.dim("(dry run)"):"")}unchanged(...e){this._log(dt.default.gray(" UNCHANGED "),...e,this.dry?dt.default.dim("(dry run)"):"")}skipped(...e){this._log(dt.default.yellow(" SKIPPED "),...e,this.dry?dt.default.dim("(dry run)"):"")}error(...e){this._log(dt.default.red(" ERROR "),...e,this.dry?dt.default.dim("(dry run)"):"")}info(...e){this._log(dt.default.bold(" INFO "),...e,this.dry?dt.default.dim("(dry run)"):"")}};var c_=ie(require("os")),Fh=ie(require("path"));var iu=ie(require("chalk")),su=require("diff"),Rr=require("fs-extra"),nu=class{constructor(e){this.changes=[];if(this.filePath=e.filePath,this.rootPath=e.rootPath,this.after=e.after,this.error=e.error,e.before===void 0)try{Fh.default.extname(e.filePath)===".json"?this.before=(0,Rr.readJsonSync)(e.filePath):this.before=(0,Rr.readFileSync)(e.filePath)}catch{this.before=""}else e.before===null?this.before="":this.before=e.before;e.after?typeof this.before=="object"||typeof e.after=="object"?this.changes=(0,su.diffJson)(this.before,e.after):this.changes=(0,su.diffLines)(this.before,e.after):this.changes=[]}fileName(){return Fh.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?(0,Rr.writeJsonSync)(this.filePath,this.after,{spaces:2}):(0,Rr.writeFileSync)(this.filePath,this.after))}additions(){return this.changes.filter(e=>e.added).length}deletions(){return this.changes.filter(e=>e.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(e){e.diff?(this.changes.forEach(r=>{r.added?process.stdout.write(iu.default.green(r.value)):r.removed?process.stdout.write(iu.default.red(r.value)):process.stdout.write(iu.default.dim(r.value))}),it.log(c_.default.EOL)):it.log(this.after)}};var Yn=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dry,this.print=e.print,this.logger=new Xi(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new nu({rootPath:this.rootPath,...e})}finish(){let e={changes:{}};return Object.keys(this.modifications).forEach(i=>{let n=this.modifications[i],s={action:"unchanged",additions:n.additions(),deletions:n.deletions()};if(n.hasChanges()){if(this.dry)s.action="skipped",this.logger.skipped(ou.default.dim(n.fileName()));else try{n.write(),s.action="modified",this.logger.modified(ou.default.bold(n.fileName()))}catch(o){let u="Unknown error";o instanceof Error&&(u=o.message),s.error=new Error(u),s.action="error",this.logger.error(n.fileName(),u)}this.print&&n.log({diff:!0})}else this.logger.unchanged(ou.default.dim(n.fileName()));e.changes[n.fileName()]=s}),Object.keys(e.changes).some(i=>e.changes[i].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:e.changes}):e}static logResults(e){let r=Object.keys(e.changes);if(it.log(),r.length>0){it.bold("Results:");let i={};r.forEach(n=>{var o;let s=e.changes[n];i[n]={action:s.action,additions:s.additions,deletions:s.deletions,error:((o=s.error)==null?void 0:o.message)||"None"}}),console.table(i),it.log()}}};function h_({transformer:t,rootPath:e,options:r}){let i={transformer:t,rootPath:e,...r},n=new Xi(i),s=new Yn(i);return{log:n,runner:s}}var d_="add-package-manager",jk="Set the `packageManager` key in root `package.json` file",Hk="1.1.0";async function m_({root:t,options:e}){let{log:r,runner:i}=h_({transformer:d_,rootPath:t,options:e});r.info('Set "packageManager" key in root "package.json" file...');let n;try{n=await Bl({root:t})}catch{return i.abortTransform({reason:`Unable to determine package manager for ${t}`})}let s=await $l(),{packageManager:o}=n,u=s[o];if(!u)return i.abortTransform({reason:`Unable to determine package manager version for ${t}`});let a=`${o}@${u}`,l=f_.default.join(t,"package.json"),c=(0,p_.readJsonSync)(l),h=[{name:"package.json",path:t,packageJson:{...c,packageJsonPath:l}}];for(let f of h){let{packageJsonPath:d,...g}=f.packageJson,y={...g,packageManager:a};i.modifyFile({filePath:d,after:y})}return i.finish()}var qk={name:d_,description:jk,introducedIn:Hk,transformer:m_},$k=qk;0&&(module.exports={transformer});
|
44
44
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
45
45
|
/*! Bundled license information:
|
46
46
|
|