eslint-plugin-turbo 2.4.3-canary.3 → 2.4.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/LICENSE +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright (c)
|
|
1
|
+
Copyright (c) 2025 Vercel, Inc
|
|
2
2
|
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
4
|
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ GFS4: `),console.error(e)});_e[Ne]||(od=global[Ne]||[],ad(_e,od),_e.close=functi
|
|
|
27
27
|
${n.message}`:g,C=[D,t,e].filter(Boolean).join(`
|
|
28
28
|
`);return v?(n.originalMessage=n.message,n.message=C):n=new Error(C),n.shortMessage=D,n.command=o,n.escapedCommand=u,n.exitCode=s,n.signal=i,n.signalDescription=h,n.stdout=e,n.stderr=t,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!a,n.isCanceled=c,n.killed=l&&!a,n};RD.exports=k8});var kD=m((fq,Ch)=>{"use strict";var Ru=["stdin","stdout","stderr"],B8=e=>Ru.some(t=>e[t]!==void 0),OD=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return Ru.map(n=>e[n]);if(B8(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Ru.map(n=>`\`${n}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,Ru.length);return Array.from({length:r},(n,i)=>t[i])};Ch.exports=OD;Ch.exports.node=e=>{let t=OD(e);return t==="ipc"?"ipc":t===void 0||typeof t=="string"?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]}});var PD=m((hq,BD)=>{"use strict";var P8=require("os"),I8=Wf(),L8=1e3*5,N8=(e,t="SIGTERM",r={})=>{let n=e(t);return M8(e,t,r,n),n},M8=(e,t,r,n)=>{if(!q8(t,r,n))return;let i=H8(r),s=setTimeout(()=>{e("SIGKILL")},i);s.unref&&s.unref()},q8=(e,{forceKillAfterTimeout:t},r)=>j8(e)&&t!==!1&&r,j8=e=>e===P8.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",H8=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return L8;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},$8=(e,t)=>{e.kill()&&(t.isCanceled=!0)},U8=(e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},G8=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{if(t===0||t===void 0)return n;let i,s=new Promise((u,a)=>{i=setTimeout(()=>{U8(e,r,a)},t)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},W8=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},V8=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=I8(()=>{e.kill()});return n.finally(()=>{i()})};BD.exports={spawnedKill:N8,spawnedCancel:$8,setupTimeout:G8,validateTimeout:W8,setExitHandler:V8}});var LD=m((pq,ID)=>{"use strict";var Ut=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";Ut.writable=e=>Ut(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";Ut.readable=e=>Ut(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";Ut.duplex=e=>Ut.writable(e)&&Ut.readable(e);Ut.transform=e=>Ut.duplex(e)&&typeof e._transform=="function";ID.exports=Ut});var MD=m((dq,ND)=>{"use strict";var{PassThrough:Y8}=require("stream");ND.exports=e=>{e={...e};let{array:t}=e,{encoding:r}=e,n=r==="buffer",i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new Y8({objectMode:i});r&&s.setEncoding(r);let o=0,u=[];return s.on("data",a=>{u.push(a),i?o=u.length:o+=a.length}),s.getBufferedValue=()=>t?u:n?Buffer.concat(u,o):u.join(""),s.getBufferedLength=()=>o,s}});var qD=m((mq,Ds)=>{"use strict";var{constants:z8}=require("buffer"),K8=require("stream"),{promisify:X8}=require("util"),J8=MD(),Z8=X8(K8.pipeline),Tu=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Fh(e,t){if(!e)throw new Error("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n=J8(t);return await new Promise((i,s)=>{let o=u=>{u&&n.getBufferedLength()<=z8.MAX_LENGTH&&(u.bufferedData=n.getBufferedValue()),s(u)};(async()=>{try{await Z8(e,n),i()}catch(u){o(u)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new Tu)})}),n.getBufferedValue()}Ds.exports=Fh;Ds.exports.buffer=(e,t)=>Fh(e,{...t,encoding:"buffer"});Ds.exports.array=(e,t)=>Fh(e,{...t,array:!0});Ds.exports.MaxBufferError=Tu});var HD=m((gq,jD)=>{"use strict";var{PassThrough:Q8}=require("stream");jD.exports=function(){var e=[],t=new Q8({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=n,t.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),t;function r(s){return Array.isArray(s)?(s.forEach(r),this):(e.push(s),s.once("end",i.bind(null,s)),s.once("error",t.emit.bind(t,"error")),s.pipe(t,{end:!1}),this)}function n(){return e.length==0}function i(s){e=e.filter(function(o){return o!==s}),!e.length&&t.readable&&t.end()}}});var WD=m((yq,GD)=>{"use strict";var UD=LD(),$D=qD(),eI=HD(),tI=(e,t)=>{t===void 0||e.stdin===void 0||(UD(t)?t.pipe(e.stdin):e.stdin.end(t))},rI=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=eI();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},Rh=async(e,t)=>{if(e){e.destroy();try{return await t}catch(r){return r.bufferedData}}},Th=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(!(!e||!r))return t?$D(e,{encoding:t,maxBuffer:n}):$D.buffer(e,{maxBuffer:n})},nI=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let u=Th(e,{encoding:n,buffer:i,maxBuffer:s}),a=Th(t,{encoding:n,buffer:i,maxBuffer:s}),c=Th(r,{encoding:n,buffer:i,maxBuffer:s*2});try{return await Promise.all([o,u,a,c])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},Rh(e,u),Rh(t,a),Rh(r,c)])}},iI=({input:e})=>{if(UD(e))throw new TypeError("The `input` option cannot be a stream in sync mode")};GD.exports={handleInput:tI,makeAllStream:rI,getSpawnedResult:nI,validateInputSync:iI}});var YD=m((Eq,VD)=>{"use strict";var sI=(async()=>{})().constructor.prototype,oI=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(sI,e)]),uI=(e,t)=>{for(let[r,n]of oI){let i=typeof t=="function"?(...s)=>Reflect.apply(n.value,t(),s):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}return e},aI=e=>new Promise((t,r)=>{e.on("exit",(n,i)=>{t({exitCode:n,signal:i})}),e.on("error",n=>{r(n)}),e.stdin&&e.stdin.on("error",n=>{r(n)})});VD.exports={mergePromise:uI,getSpawnedPromise:aI}});var XD=m((_q,KD)=>{"use strict";var zD=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],cI=/^[\w.-]+$/,lI=/"/g,fI=e=>typeof e!="string"||cI.test(e)?e:`"${e.replace(lI,'\\"')}"`,hI=(e,t)=>zD(e,t).join(" "),pI=(e,t)=>zD(e,t).map(r=>fI(r)).join(" "),dI=/ +/g,mI=e=>{let t=[];for(let r of e.trim().split(dI)){let n=t[t.length-1];n&&n.endsWith("\\")?t[t.length-1]=`${n.slice(0,-1)} ${r}`:t.push(r)}return t};KD.exports={joinCommand:hI,getEscapedCommand:pI,parseCommand:mI}});var nx=m((vq,hi)=>{"use strict";var gI=require("path"),Oh=require("child_process"),yI=yD(),EI=_D(),_I=DD(),vI=$f(),Ou=TD(),ZD=kD(),{spawnedKill:bI,spawnedCancel:DI,setupTimeout:xI,validateTimeout:SI,setExitHandler:AI}=PD(),{handleInput:wI,getSpawnedResult:CI,makeAllStream:FI,validateInputSync:RI}=WD(),{mergePromise:JD,getSpawnedPromise:TI}=YD(),{joinCommand:QD,parseCommand:ex,getEscapedCommand:tx}=XD(),OI=1e3*1e3*100,kI=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let s=t?{...process.env,...e}:e;return r?_I.env({env:s,cwd:n,execPath:i}):s},rx=(e,t,r={})=>{let n=yI._parse(e,t,r);return e=n.command,t=n.args,r=n.options,r={maxBuffer:OI,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=kI(r),r.stdio=ZD(r),process.platform==="win32"&&gI.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},xs=(e,t,r)=>typeof t!="string"&&!Buffer.isBuffer(t)?r===void 0?void 0:"":e.stripFinalNewline?EI(t):t,ku=(e,t,r)=>{let n=rx(e,t,r),i=QD(e,t),s=tx(e,t);SI(n.options);let o;try{o=Oh.spawn(n.file,n.args,n.options)}catch(E){let _=new Oh.ChildProcess,g=Promise.reject(Ou({error:E,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return JD(_,g)}let u=TI(o),a=xI(o,n.options,u),c=AI(o,n.options,a),l={isCanceled:!1};o.kill=bI.bind(null,o.kill.bind(o)),o.cancel=DI.bind(null,o,l);let h=vI(async()=>{let[{error:E,exitCode:_,signal:g,timedOut:v},D,C,O]=await CI(o,n.options,c),U=xs(n.options,D),N=xs(n.options,C),X=xs(n.options,O);if(E||_!==0||g!==null){let W=Ou({error:E,exitCode:_,signal:g,stdout:U,stderr:N,all:X,command:i,escapedCommand:s,parsed:n,timedOut:v,isCanceled:l.isCanceled,killed:o.killed});if(!n.options.reject)return W;throw W}return{command:i,escapedCommand:s,exitCode:0,stdout:U,stderr:N,all:X,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return wI(o,n.options.input),o.all=FI(o,n.options),JD(o,h)};hi.exports=ku;hi.exports.sync=(e,t,r)=>{let n=rx(e,t,r),i=QD(e,t),s=tx(e,t);RI(n.options);let o;try{o=Oh.spawnSync(n.file,n.args,n.options)}catch(c){throw Ou({error:c,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let u=xs(n.options,o.stdout,o.error),a=xs(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let c=Ou({stdout:u,stderr:a,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:s,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return c;throw c}return{command:i,escapedCommand:s,exitCode:0,stdout:u,stderr:a,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};hi.exports.command=(e,t)=>{let[r,...n]=ex(e);return ku(r,n,t)};hi.exports.commandSync=(e,t)=>{let[r,...n]=ex(e);return ku.sync(r,n,t)};hi.exports.node=(e,t,r={})=>{t&&!Array.isArray(t)&&typeof t=="object"&&(r=t,t=[]);let n=ZD.node(r),i=process.execArgv.filter(u=>!u.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return ku(s,[...o,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var pi=m((Aq,ox)=>{"use strict";var sx=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"]]);ox.exports=e=>e?Object.keys(e).map(t=>[sx.has(t)?sx.get(t):t,e[t]]).reduce((t,r)=>(t[r[0]]=r[1],t),Object.create(null)):{}});var Mu=m((wq,mx)=>{"use strict";var ux=typeof process=="object"&&process?process:{stdout:null,stderr:null},LI=require("events"),ax=require("stream"),cx=require("string_decoder").StringDecoder,ur=Symbol("EOF"),ar=Symbol("maybeEmitEnd"),Lr=Symbol("emittedEnd"),Bu=Symbol("emittingEnd"),Ss=Symbol("emittedError"),Pu=Symbol("closed"),lx=Symbol("read"),Iu=Symbol("flush"),fx=Symbol("flushChunk"),ot=Symbol("encoding"),cr=Symbol("decoder"),Lu=Symbol("flowing"),As=Symbol("paused"),di=Symbol("resume"),Se=Symbol("buffer"),Gt=Symbol("pipes"),Ie=Symbol("bufferLength"),kh=Symbol("bufferPush"),Bh=Symbol("bufferShift"),We=Symbol("objectMode"),Ve=Symbol("destroyed"),Ph=Symbol("emitData"),hx=Symbol("emitEnd"),Ih=Symbol("emitEnd2"),lr=Symbol("async"),ws=e=>Promise.resolve().then(e),px=global._MP_NO_ITERATOR_SYMBOLS_!=="1",NI=px&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),MI=px&&Symbol.iterator||Symbol("iterator not implemented"),qI=e=>e==="end"||e==="finish"||e==="prefinish",jI=e=>e instanceof ArrayBuffer||typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,HI=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),Nu=class{constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[di](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Lh=class extends Nu{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,n){super(t,r,n),this.proxyErrors=i=>r.emit("error",i),t.on("error",this.proxyErrors)}};mx.exports=class dx extends ax{constructor(t){super(),this[Lu]=!1,this[As]=!1,this[Gt]=[],this[Se]=[],this[We]=t&&t.objectMode||!1,this[We]?this[ot]=null:this[ot]=t&&t.encoding||null,this[ot]==="buffer"&&(this[ot]=null),this[lr]=t&&!!t.async||!1,this[cr]=this[ot]?new cx(this[ot]):null,this[ur]=!1,this[Lr]=!1,this[Bu]=!1,this[Pu]=!1,this[Ss]=null,this.writable=!0,this.readable=!0,this[Ie]=0,this[Ve]=!1,t&&t.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Se]}),t&&t.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Gt]})}get bufferLength(){return this[Ie]}get encoding(){return this[ot]}set encoding(t){if(this[We])throw new Error("cannot set encoding in objectMode");if(this[ot]&&t!==this[ot]&&(this[cr]&&this[cr].lastNeed||this[Ie]))throw new Error("cannot change encoding");this[ot]!==t&&(this[cr]=t?new cx(t):null,this[Se].length&&(this[Se]=this[Se].map(r=>this[cr].write(r)))),this[ot]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[We]}set objectMode(t){this[We]=this[We]||!!t}get async(){return this[lr]}set async(t){this[lr]=this[lr]||!!t}write(t,r,n){if(this[ur])throw new Error("write after end");if(this[Ve])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[lr]?ws:s=>s();return!this[We]&&!Buffer.isBuffer(t)&&(HI(t)?t=Buffer.from(t.buffer,t.byteOffset,t.byteLength):jI(t)?t=Buffer.from(t):typeof t!="string"&&(this.objectMode=!0)),this[We]?(this.flowing&&this[Ie]!==0&&this[Iu](!0),this.flowing?this.emit("data",t):this[kh](t),this[Ie]!==0&&this.emit("readable"),n&&i(n),this.flowing):t.length?(typeof t=="string"&&!(r===this[ot]&&!this[cr].lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[ot]&&(t=this[cr].write(t)),this.flowing&&this[Ie]!==0&&this[Iu](!0),this.flowing?this.emit("data",t):this[kh](t),this[Ie]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Ie]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(t){if(this[Ve])return null;if(this[Ie]===0||t===0||t>this[Ie])return this[ar](),null;this[We]&&(t=null),this[Se].length>1&&!this[We]&&(this.encoding?this[Se]=[this[Se].join("")]:this[Se]=[Buffer.concat(this[Se],this[Ie])]);let r=this[lx](t||null,this[Se][0]);return this[ar](),r}[lx](t,r){return t===r.length||t===null?this[Bh]():(this[Se][0]=r.slice(t),r=r.slice(0,t),this[Ie]-=t),this.emit("data",r),!this[Se].length&&!this[ur]&&this.emit("drain"),r}end(t,r,n){return typeof t=="function"&&(n=t,t=null),typeof r=="function"&&(n=r,r="utf8"),t&&this.write(t,r),n&&this.once("end",n),this[ur]=!0,this.writable=!1,(this.flowing||!this[As])&&this[ar](),this}[di](){this[Ve]||(this[As]=!1,this[Lu]=!0,this.emit("resume"),this[Se].length?this[Iu]():this[ur]?this[ar]():this.emit("drain"))}resume(){return this[di]()}pause(){this[Lu]=!1,this[As]=!0}get destroyed(){return this[Ve]}get flowing(){return this[Lu]}get paused(){return this[As]}[kh](t){this[We]?this[Ie]+=1:this[Ie]+=t.length,this[Se].push(t)}[Bh](){return this[Se].length&&(this[We]?this[Ie]-=1:this[Ie]-=this[Se][0].length),this[Se].shift()}[Iu](t){do;while(this[fx](this[Bh]()));!t&&!this[Se].length&&!this[ur]&&this.emit("drain")}[fx](t){return t?(this.emit("data",t),this.flowing):!1}pipe(t,r){if(this[Ve])return;let n=this[Lr];return r=r||{},t===ux.stdout||t===ux.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this[Gt].push(r.proxyErrors?new Lh(this,t,r):new Nu(this,t,r)),this[lr]?ws(()=>this[di]()):this[di]()),t}unpipe(t){let r=this[Gt].find(n=>n.dest===t);r&&(this[Gt].splice(this[Gt].indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let n=super.on(t,r);return t==="data"&&!this[Gt].length&&!this.flowing?this[di]():t==="readable"&&this[Ie]!==0?super.emit("readable"):qI(t)&&this[Lr]?(super.emit(t),this.removeAllListeners(t)):t==="error"&&this[Ss]&&(this[lr]?ws(()=>r.call(this,this[Ss])):r.call(this,this[Ss])),n}get emittedEnd(){return this[Lr]}[ar](){!this[Bu]&&!this[Lr]&&!this[Ve]&&this[Se].length===0&&this[ur]&&(this[Bu]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Pu]&&this.emit("close"),this[Bu]=!1)}emit(t,r,...n){if(t!=="error"&&t!=="close"&&t!==Ve&&this[Ve])return;if(t==="data")return r?this[lr]?ws(()=>this[Ph](r)):this[Ph](r):!1;if(t==="end")return this[hx]();if(t==="close"){if(this[Pu]=!0,!this[Lr]&&!this[Ve])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[Ss]=r;let s=super.emit("error",r);return this[ar](),s}else if(t==="resume"){let s=super.emit("resume");return this[ar](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let i=super.emit(t,r,...n);return this[ar](),i}[Ph](t){for(let n of this[Gt])n.dest.write(t)===!1&&this.pause();let r=super.emit("data",t);return this[ar](),r}[hx](){this[Lr]||(this[Lr]=!0,this.readable=!1,this[lr]?ws(()=>this[Ih]()):this[Ih]())}[Ih](){if(this[cr]){let r=this[cr].end();if(r){for(let n of this[Gt])n.dest.write(r);super.emit("data",r)}}for(let r of this[Gt])r.end();let t=super.emit("end");return this.removeAllListeners("end"),t}collect(){let t=[];this[We]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[We]||(t.dataLength+=n.length)}),r.then(()=>t)}concat(){return this[We]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(t=>this[We]?Promise.reject(new Error("cannot concat in objectMode")):this[ot]?t.join(""):Buffer.concat(t,t.dataLength))}promise(){return new Promise((t,r)=>{this.on(Ve,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>t())})}[NI](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[ur])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",u),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),n({value:c,done:!!this[ur]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once(Ve,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[MI](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(t){return this[Ve]?(t?this.emit("error",t):this.emit(Ve),this):(this[Ve]=!0,this[Se].length=0,this[Ie]=0,typeof this.close=="function"&&!this[Pu]&&this.close(),t?this.emit("error",t):this.emit(Ve),this)}static isStream(t){return!!t&&(t instanceof dx||t instanceof ax||t instanceof LI&&(typeof t.pipe=="function"||typeof t.write=="function"&&typeof t.end=="function"))}}});var yx=m((Cq,gx)=>{var $I=require("zlib").constants||{ZLIB_VERNUM:4736};gx.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},$I))});var $h=m((Fq,wx)=>{"use strict";var Ex=typeof process=="object"&&process?process:{stdout:null,stderr:null},UI=require("events"),_x=require("stream"),vx=require("string_decoder").StringDecoder,fr=Symbol("EOF"),hr=Symbol("maybeEmitEnd"),Nr=Symbol("emittedEnd"),qu=Symbol("emittingEnd"),Cs=Symbol("emittedError"),ju=Symbol("closed"),bx=Symbol("read"),Hu=Symbol("flush"),Dx=Symbol("flushChunk"),ut=Symbol("encoding"),pr=Symbol("decoder"),$u=Symbol("flowing"),Fs=Symbol("paused"),mi=Symbol("resume"),Le=Symbol("bufferLength"),Nh=Symbol("bufferPush"),Mh=Symbol("bufferShift"),Ye=Symbol("objectMode"),ze=Symbol("destroyed"),qh=Symbol("emitData"),xx=Symbol("emitEnd"),jh=Symbol("emitEnd2"),dr=Symbol("async"),Rs=e=>Promise.resolve().then(e),Sx=global._MP_NO_ITERATOR_SYMBOLS_!=="1",GI=Sx&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),WI=Sx&&Symbol.iterator||Symbol("iterator not implemented"),VI=e=>e==="end"||e==="finish"||e==="prefinish",YI=e=>e instanceof ArrayBuffer||typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,zI=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),Uu=class{constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[mi](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Hh=class extends Uu{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,n){super(t,r,n),this.proxyErrors=i=>r.emit("error",i),t.on("error",this.proxyErrors)}};wx.exports=class Ax extends _x{constructor(t){super(),this[$u]=!1,this[Fs]=!1,this.pipes=[],this.buffer=[],this[Ye]=t&&t.objectMode||!1,this[Ye]?this[ut]=null:this[ut]=t&&t.encoding||null,this[ut]==="buffer"&&(this[ut]=null),this[dr]=t&&!!t.async||!1,this[pr]=this[ut]?new vx(this[ut]):null,this[fr]=!1,this[Nr]=!1,this[qu]=!1,this[ju]=!1,this[Cs]=null,this.writable=!0,this.readable=!0,this[Le]=0,this[ze]=!1}get bufferLength(){return this[Le]}get encoding(){return this[ut]}set encoding(t){if(this[Ye])throw new Error("cannot set encoding in objectMode");if(this[ut]&&t!==this[ut]&&(this[pr]&&this[pr].lastNeed||this[Le]))throw new Error("cannot change encoding");this[ut]!==t&&(this[pr]=t?new vx(t):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[pr].write(r)))),this[ut]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[Ye]}set objectMode(t){this[Ye]=this[Ye]||!!t}get async(){return this[dr]}set async(t){this[dr]=this[dr]||!!t}write(t,r,n){if(this[fr])throw new Error("write after end");if(this[ze])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[dr]?Rs:s=>s();return!this[Ye]&&!Buffer.isBuffer(t)&&(zI(t)?t=Buffer.from(t.buffer,t.byteOffset,t.byteLength):YI(t)?t=Buffer.from(t):typeof t!="string"&&(this.objectMode=!0)),this[Ye]?(this.flowing&&this[Le]!==0&&this[Hu](!0),this.flowing?this.emit("data",t):this[Nh](t),this[Le]!==0&&this.emit("readable"),n&&i(n),this.flowing):t.length?(typeof t=="string"&&!(r===this[ut]&&!this[pr].lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[ut]&&(t=this[pr].write(t)),this.flowing&&this[Le]!==0&&this[Hu](!0),this.flowing?this.emit("data",t):this[Nh](t),this[Le]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Le]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(t){if(this[ze])return null;if(this[Le]===0||t===0||t>this[Le])return this[hr](),null;this[Ye]&&(t=null),this.buffer.length>1&&!this[Ye]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Le])]);let r=this[bx](t||null,this.buffer[0]);return this[hr](),r}[bx](t,r){return t===r.length||t===null?this[Mh]():(this.buffer[0]=r.slice(t),r=r.slice(0,t),this[Le]-=t),this.emit("data",r),!this.buffer.length&&!this[fr]&&this.emit("drain"),r}end(t,r,n){return typeof t=="function"&&(n=t,t=null),typeof r=="function"&&(n=r,r="utf8"),t&&this.write(t,r),n&&this.once("end",n),this[fr]=!0,this.writable=!1,(this.flowing||!this[Fs])&&this[hr](),this}[mi](){this[ze]||(this[Fs]=!1,this[$u]=!0,this.emit("resume"),this.buffer.length?this[Hu]():this[fr]?this[hr]():this.emit("drain"))}resume(){return this[mi]()}pause(){this[$u]=!1,this[Fs]=!0}get destroyed(){return this[ze]}get flowing(){return this[$u]}get paused(){return this[Fs]}[Nh](t){this[Ye]?this[Le]+=1:this[Le]+=t.length,this.buffer.push(t)}[Mh](){return this.buffer.length&&(this[Ye]?this[Le]-=1:this[Le]-=this.buffer[0].length),this.buffer.shift()}[Hu](t){do;while(this[Dx](this[Mh]()));!t&&!this.buffer.length&&!this[fr]&&this.emit("drain")}[Dx](t){return t?(this.emit("data",t),this.flowing):!1}pipe(t,r){if(this[ze])return;let n=this[Nr];return r=r||{},t===Ex.stdout||t===Ex.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this.pipes.push(r.proxyErrors?new Hh(this,t,r):new Uu(this,t,r)),this[dr]?Rs(()=>this[mi]()):this[mi]()),t}unpipe(t){let r=this.pipes.find(n=>n.dest===t);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let n=super.on(t,r);return t==="data"&&!this.pipes.length&&!this.flowing?this[mi]():t==="readable"&&this[Le]!==0?super.emit("readable"):VI(t)&&this[Nr]?(super.emit(t),this.removeAllListeners(t)):t==="error"&&this[Cs]&&(this[dr]?Rs(()=>r.call(this,this[Cs])):r.call(this,this[Cs])),n}get emittedEnd(){return this[Nr]}[hr](){!this[qu]&&!this[Nr]&&!this[ze]&&this.buffer.length===0&&this[fr]&&(this[qu]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ju]&&this.emit("close"),this[qu]=!1)}emit(t,r,...n){if(t!=="error"&&t!=="close"&&t!==ze&&this[ze])return;if(t==="data")return r?this[dr]?Rs(()=>this[qh](r)):this[qh](r):!1;if(t==="end")return this[xx]();if(t==="close"){if(this[ju]=!0,!this[Nr]&&!this[ze])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[Cs]=r;let s=super.emit("error",r);return this[hr](),s}else if(t==="resume"){let s=super.emit("resume");return this[hr](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let i=super.emit(t,r,...n);return this[hr](),i}[qh](t){for(let n of this.pipes)n.dest.write(t)===!1&&this.pause();let r=super.emit("data",t);return this[hr](),r}[xx](){this[Nr]||(this[Nr]=!0,this.readable=!1,this[dr]?Rs(()=>this[jh]()):this[jh]())}[jh](){if(this[pr]){let r=this[pr].end();if(r){for(let n of this.pipes)n.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let t=super.emit("end");return this.removeAllListeners("end"),t}collect(){let t=[];this[Ye]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[Ye]||(t.dataLength+=n.length)}),r.then(()=>t)}concat(){return this[Ye]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(t=>this[Ye]?Promise.reject(new Error("cannot concat in objectMode")):this[ut]?t.join(""):Buffer.concat(t,t.dataLength))}promise(){return new Promise((t,r)=>{this.on(ze,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>t())})}[GI](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[fr])return Promise.resolve({done:!0});let n=null,i=null,s=c=>{this.removeListener("data",o),this.removeListener("end",u),i(c)},o=c=>{this.removeListener("error",s),this.removeListener("end",u),this.pause(),n({value:c,done:!!this[fr]})},u=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},a=()=>s(new Error("stream destroyed"));return new Promise((c,l)=>{i=l,n=c,this.once(ze,a),this.once("error",s),this.once("end",u),this.once("data",o)})}}}[WI](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(t){return this[ze]?(t?this.emit("error",t):this.emit(ze),this):(this[ze]=!0,this.buffer.length=0,this[Le]=0,typeof this.close=="function"&&!this[ju]&&this.close(),t?this.emit("error",t):this.emit(ze),this)}static isStream(t){return!!t&&(t instanceof Ax||t instanceof _x||t instanceof UI&&(typeof t.pipe=="function"||typeof t.write=="function"&&typeof t.end=="function"))}}});var i0=m(dt=>{"use strict";var Yh=require("assert"),Mr=require("buffer").Buffer,Rx=require("zlib"),dn=dt.constants=yx(),KI=$h(),Cx=Mr.concat,mn=Symbol("_superWrite"),yi=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"}},XI=Symbol("opts"),Ts=Symbol("flushFlag"),Fx=Symbol("finishFlushFlag"),n0=Symbol("fullFlushFlag"),le=Symbol("handle"),Gu=Symbol("onError"),gi=Symbol("sawError"),Uh=Symbol("level"),Gh=Symbol("strategy"),Wh=Symbol("ended"),Rq=Symbol("_defaultFullFlush"),Wu=class extends KI{constructor(t,r){if(!t||typeof t!="object")throw new TypeError("invalid options for ZlibBase constructor");super(t),this[gi]=!1,this[Wh]=!1,this[XI]=t,this[Ts]=t.flush,this[Fx]=t.finishFlush;try{this[le]=new Rx[r](t)}catch(n){throw new yi(n)}this[Gu]=n=>{this[gi]||(this[gi]=!0,this.close(),this.emit("error",n))},this[le].on("error",n=>this[Gu](new yi(n))),this.once("end",()=>this.close)}close(){this[le]&&(this[le].close(),this[le]=null,this.emit("close"))}reset(){if(!this[gi])return Yh(this[le],"zlib binding closed"),this[le].reset()}flush(t){this.ended||(typeof t!="number"&&(t=this[n0]),this.write(Object.assign(Mr.alloc(0),{[Ts]:t})))}end(t,r,n){return t&&this.write(t,r),this.flush(this[Fx]),this[Wh]=!0,super.end(null,null,n)}get ended(){return this[Wh]}write(t,r,n){if(typeof r=="function"&&(n=r,r="utf8"),typeof t=="string"&&(t=Mr.from(t,r)),this[gi])return;Yh(this[le],"zlib binding closed");let i=this[le]._handle,s=i.close;i.close=()=>{};let o=this[le].close;this[le].close=()=>{},Mr.concat=c=>c;let u;try{let c=typeof t[Ts]=="number"?t[Ts]:this[Ts];u=this[le]._processChunk(t,c),Mr.concat=Cx}catch(c){Mr.concat=Cx,this[Gu](new yi(c))}finally{this[le]&&(this[le]._handle=i,i.close=s,this[le].close=o,this[le].removeAllListeners("error"))}this[le]&&this[le].on("error",c=>this[Gu](new yi(c)));let a;if(u)if(Array.isArray(u)&&u.length>0){a=this[mn](Mr.from(u[0]));for(let c=1;c<u.length;c++)a=this[mn](u[c])}else a=this[mn](Mr.from(u));return n&&n(),a}[mn](t){return super.write(t)}},mr=class extends Wu{constructor(t,r){t=t||{},t.flush=t.flush||dn.Z_NO_FLUSH,t.finishFlush=t.finishFlush||dn.Z_FINISH,super(t,r),this[n0]=dn.Z_FULL_FLUSH,this[Uh]=t.level,this[Gh]=t.strategy}params(t,r){if(!this[gi]){if(!this[le])throw new Error("cannot switch params when binding is closed");if(!this[le].params)throw new Error("not supported in this implementation");if(this[Uh]!==t||this[Gh]!==r){this.flush(dn.Z_SYNC_FLUSH),Yh(this[le],"zlib binding closed");let n=this[le].flush;this[le].flush=(i,s)=>{this.flush(i),s()};try{this[le].params(t,r)}finally{this[le].flush=n}this[le]&&(this[Uh]=t,this[Gh]=r)}}}},zh=class extends mr{constructor(t){super(t,"Deflate")}},Kh=class extends mr{constructor(t){super(t,"Inflate")}},Vh=Symbol("_portable"),Xh=class extends mr{constructor(t){super(t,"Gzip"),this[Vh]=t&&!!t.portable}[mn](t){return this[Vh]?(this[Vh]=!1,t[9]=255,super[mn](t)):super[mn](t)}},Jh=class extends mr{constructor(t){super(t,"Gunzip")}},Zh=class extends mr{constructor(t){super(t,"DeflateRaw")}},Qh=class extends mr{constructor(t){super(t,"InflateRaw")}},e0=class extends mr{constructor(t){super(t,"Unzip")}},Vu=class extends Wu{constructor(t,r){t=t||{},t.flush=t.flush||dn.BROTLI_OPERATION_PROCESS,t.finishFlush=t.finishFlush||dn.BROTLI_OPERATION_FINISH,super(t,r),this[n0]=dn.BROTLI_OPERATION_FLUSH}},t0=class extends Vu{constructor(t){super(t,"BrotliCompress")}},r0=class extends Vu{constructor(t){super(t,"BrotliDecompress")}};dt.Deflate=zh;dt.Inflate=Kh;dt.Gzip=Xh;dt.Gunzip=Jh;dt.DeflateRaw=Zh;dt.InflateRaw=Qh;dt.Unzip=e0;typeof Rx.BrotliCompress=="function"?(dt.BrotliCompress=t0,dt.BrotliDecompress=r0):dt.BrotliCompress=dt.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var Ei=m((kq,Tx)=>{var JI=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;Tx.exports=JI!=="win32"?e=>e:e=>e&&e.replace(/\\/g,"/")});var Yu=m((Pq,Ox)=>{"use strict";var ZI=Mu(),s0=Ei(),o0=Symbol("slurp");Ox.exports=class extends ZI{constructor(t,r,n){switch(super(),this.pause(),this.extended=r,this.globalExtended=n,this.header=t,this.startBlockSize=512*Math.ceil(t.size/512),this.blockRemain=this.startBlockSize,this.remain=t.size,this.type=t.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=s0(t.path),this.mode=t.mode,this.mode&&(this.mode=this.mode&4095),this.uid=t.uid,this.gid=t.gid,this.uname=t.uname,this.gname=t.gname,this.size=t.size,this.mtime=t.mtime,this.atime=t.atime,this.ctime=t.ctime,this.linkpath=s0(t.linkpath),this.uname=t.uname,this.gname=t.gname,r&&this[o0](r),n&&this[o0](n,!0)}write(t){let r=t.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let n=this.remain,i=this.blockRemain;return this.remain=Math.max(0,n-r),this.blockRemain=Math.max(0,i-r),this.ignore?!0:n>=r?super.write(t):super.write(t.slice(0,n))}[o0](t,r){for(let n in t)t[n]!==null&&t[n]!==void 0&&!(r&&n==="path")&&(this[n]=n==="path"||n==="linkpath"?s0(t[n]):t[n])}}});var u0=m(zu=>{"use strict";zu.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"]]);zu.code=new Map(Array.from(zu.name).map(e=>[e[1],e[0]]))});var Ix=m((Lq,Px)=>{"use strict";var QI=(e,t)=>{if(Number.isSafeInteger(e))e<0?t6(e,t):e6(e,t);else throw Error("cannot encode number outside of javascript safe integer range");return t},e6=(e,t)=>{t[0]=128;for(var r=t.length;r>1;r--)t[r-1]=e&255,e=Math.floor(e/256)},t6=(e,t)=>{t[0]=255;var r=!1;e=e*-1;for(var n=t.length;n>1;n--){var i=e&255;e=Math.floor(e/256),r?t[n-1]=kx(i):i===0?t[n-1]=0:(r=!0,t[n-1]=Bx(i))}},r6=e=>{let t=e[0],r=t===128?i6(e.slice(1,e.length)):t===255?n6(e):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},n6=e=>{for(var t=e.length,r=0,n=!1,i=t-1;i>-1;i--){var s=e[i],o;n?o=kx(s):s===0?o=s:(n=!0,o=Bx(s)),o!==0&&(r-=o*Math.pow(256,t-i-1))}return r},i6=e=>{for(var t=e.length,r=0,n=t-1;n>-1;n--){var i=e[n];i!==0&&(r+=i*Math.pow(256,t-n-1))}return r},kx=e=>(255^e)&255,Bx=e=>(255^e)+1&255;Px.exports={encode:QI,parse:r6}});var vi=m((Nq,Nx)=>{"use strict";var a0=u0(),_i=require("path").posix,Lx=Ix(),c0=Symbol("slurp"),mt=Symbol("type"),h0=class{constructor(t,r,n,i){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[mt]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(t)?this.decode(t,r||0,n,i):t&&this.set(t)}decode(t,r,n,i){if(r||(r=0),!t||!(t.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=gn(t,r,100),this.mode=qr(t,r+100,8),this.uid=qr(t,r+108,8),this.gid=qr(t,r+116,8),this.size=qr(t,r+124,12),this.mtime=l0(t,r+136,12),this.cksum=qr(t,r+148,12),this[c0](n),this[c0](i,!0),this[mt]=gn(t,r+156,1),this[mt]===""&&(this[mt]="0"),this[mt]==="0"&&this.path.slice(-1)==="/"&&(this[mt]="5"),this[mt]==="5"&&(this.size=0),this.linkpath=gn(t,r+157,100),t.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=gn(t,r+265,32),this.gname=gn(t,r+297,32),this.devmaj=qr(t,r+329,8),this.devmin=qr(t,r+337,8),t[r+475]!==0){let o=gn(t,r+345,155);this.path=o+"/"+this.path}else{let o=gn(t,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=l0(t,r+476,12),this.ctime=l0(t,r+488,12)}let s=8*32;for(let o=r;o<r+148;o++)s+=t[o];for(let o=r+156;o<r+512;o++)s+=t[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[c0](t,r){for(let n in t)t[n]!==null&&t[n]!==void 0&&!(r&&n==="path")&&(this[n]=t[n])}encode(t,r){if(t||(t=this.block=Buffer.alloc(512),r=0),r||(r=0),!(t.length>=r+512))throw new Error("need 512 bytes for header");let n=this.ctime||this.atime?130:155,i=s6(this.path||"",n),s=i[0],o=i[1];this.needPax=i[2],this.needPax=yn(t,r,100,s)||this.needPax,this.needPax=jr(t,r+100,8,this.mode)||this.needPax,this.needPax=jr(t,r+108,8,this.uid)||this.needPax,this.needPax=jr(t,r+116,8,this.gid)||this.needPax,this.needPax=jr(t,r+124,12,this.size)||this.needPax,this.needPax=f0(t,r+136,12,this.mtime)||this.needPax,t[r+156]=this[mt].charCodeAt(0),this.needPax=yn(t,r+157,100,this.linkpath)||this.needPax,t.write("ustar\x0000",r+257,8),this.needPax=yn(t,r+265,32,this.uname)||this.needPax,this.needPax=yn(t,r+297,32,this.gname)||this.needPax,this.needPax=jr(t,r+329,8,this.devmaj)||this.needPax,this.needPax=jr(t,r+337,8,this.devmin)||this.needPax,this.needPax=yn(t,r+345,n,o)||this.needPax,t[r+475]!==0?this.needPax=yn(t,r+345,155,o)||this.needPax:(this.needPax=yn(t,r+345,130,o)||this.needPax,this.needPax=f0(t,r+476,12,this.atime)||this.needPax,this.needPax=f0(t,r+488,12,this.ctime)||this.needPax);let u=8*32;for(let a=r;a<r+148;a++)u+=t[a];for(let a=r+156;a<r+512;a++)u+=t[a];return this.cksum=u,jr(t,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(t){for(let r in t)t[r]!==null&&t[r]!==void 0&&(this[r]=t[r])}get type(){return a0.name.get(this[mt])||this[mt]}get typeKey(){return this[mt]}set type(t){a0.code.has(t)?this[mt]=a0.code.get(t):this[mt]=t}},s6=(e,t)=>{let n=e,i="",s,o=_i.parse(e).root||".";if(Buffer.byteLength(n)<100)s=[n,i,!1];else{i=_i.dirname(n),n=_i.basename(n);do Buffer.byteLength(n)<=100&&Buffer.byteLength(i)<=t?s=[n,i,!1]:Buffer.byteLength(n)>100&&Buffer.byteLength(i)<=t?s=[n.slice(0,100-1),i,!0]:(n=_i.join(_i.basename(i),n),i=_i.dirname(i));while(i!==o&&!s);s||(s=[e.slice(0,100-1),"",!0])}return s},gn=(e,t,r)=>e.slice(t,t+r).toString("utf8").replace(/\0.*/,""),l0=(e,t,r)=>o6(qr(e,t,r)),o6=e=>e===null?null:new Date(e*1e3),qr=(e,t,r)=>e[t]&128?Lx.parse(e.slice(t,t+r)):a6(e,t,r),u6=e=>isNaN(e)?null:e,a6=(e,t,r)=>u6(parseInt(e.slice(t,t+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),c6={12:8589934591,8:2097151},jr=(e,t,r,n)=>n===null?!1:n>c6[r]||n<0?(Lx.encode(n,e.slice(t,t+r)),!0):(l6(e,t,r,n),!1),l6=(e,t,r,n)=>e.write(f6(n,r),t,r,"ascii"),f6=(e,t)=>h6(Math.floor(e).toString(8),t),h6=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0",f0=(e,t,r,n)=>n===null?!1:jr(e,t,r,n.getTime()/1e3),p6=new Array(156).join("\0"),yn=(e,t,r,n)=>n===null?!1:(e.write(n+p6,t,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);Nx.exports=h0});var Ku=m((Mq,Mx)=>{"use strict";var d6=vi(),m6=require("path"),Os=class{constructor(t,r){this.atime=t.atime||null,this.charset=t.charset||null,this.comment=t.comment||null,this.ctime=t.ctime||null,this.gid=t.gid||null,this.gname=t.gname||null,this.linkpath=t.linkpath||null,this.mtime=t.mtime||null,this.path=t.path||null,this.size=t.size||null,this.uid=t.uid||null,this.uname=t.uname||null,this.dev=t.dev||null,this.ino=t.ino||null,this.nlink=t.nlink||null,this.global=r||!1}encode(){let t=this.encodeBody();if(t==="")return null;let r=Buffer.byteLength(t),n=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(n);for(let s=0;s<512;s++)i[s]=0;new d6({path:("PaxHeader/"+m6.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(i),i.write(t,512,r,"utf8");for(let s=r+512;s<i.length;s++)i[s]=0;return i}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(t){if(this[t]===null||this[t]===void 0)return"";let r=this[t]instanceof Date?this[t].getTime()/1e3:this[t],n=" "+(t==="dev"||t==="ino"||t==="nlink"?"SCHILY.":"")+t+"="+r+`
|
|
29
29
|
`,i=Buffer.byteLength(n),s=Math.floor(Math.log(i)/Math.log(10))+1;return i+s>=Math.pow(10,s)&&(s+=1),s+i+n}};Os.parse=(e,t,r)=>new Os(g6(y6(e),t),r);var g6=(e,t)=>t?Object.keys(e).reduce((r,n)=>(r[n]=e[n],r),t):e,y6=e=>e.replace(/\n$/,"").split(`
|
|
30
|
-
`).reduce(E6,Object.create(null)),E6=(e,t)=>{let r=parseInt(t,10);if(r!==Buffer.byteLength(t)+1)return e;t=t.slice((r+" ").length);let n=t.split("="),i=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return e;let s=n.join("=");return e[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,e};Mx.exports=Os});var bi=m((qq,qx)=>{qx.exports=e=>{let t=e.length-1,r=-1;for(;t>-1&&e.charAt(t)==="/";)r=t,t--;return r===-1?e:e.slice(0,r)}});var Xu=m((jq,jx)=>{"use strict";jx.exports=e=>class extends e{warn(t,r,n={}){this.file&&(n.file=this.file),this.cwd&&(n.cwd=this.cwd),n.code=r instanceof Error&&r.code||t,n.tarCode=t,!this.strict&&n.recoverable!==!1?(r instanceof Error&&(n=Object.assign(r,n),r=r.message),this.emit("warn",n.tarCode,r,n)):r instanceof Error?this.emit("error",Object.assign(r,n)):this.emit("error",Object.assign(new Error(`${t}: ${r}`),n))}}});var d0=m(($q,Hx)=>{"use strict";var Ju=["|","<",">","?",":"],p0=Ju.map(e=>String.fromCharCode(61440+e.charCodeAt(0))),_6=new Map(Ju.map((e,t)=>[e,p0[t]])),v6=new Map(p0.map((e,t)=>[e,Ju[t]]));Hx.exports={encode:e=>Ju.reduce((t,r)=>t.split(r).join(_6.get(r)),e),decode:e=>p0.reduce((t,r)=>t.split(r).join(v6.get(r)),e)}});var m0=m((Uq,Ux)=>{var{isAbsolute:b6,parse:$x}=require("path").win32;Ux.exports=e=>{let t="",r=$x(e);for(;b6(e)||r.root;){let n=e.charAt(0)==="/"&&e.slice(0,4)!=="//?/"?"/":r.root;e=e.slice(n.length),t+=n,r=$x(e)}return[t,e]}});var Wx=m((Gq,Gx)=>{"use strict";Gx.exports=(e,t,r)=>(e&=4095,r&&(e=(e|384)&-19),t&&(e&256&&(e|=64),e&32&&(e|=8),e&4&&(e|=1)),e)});var A0=m((Yq,s2)=>{"use strict";var Zx=Mu(),Qx=Ku(),e2=vi(),Vt=require("fs"),Vx=require("path"),Wt=Ei(),D6=bi(),t2=(e,t)=>t?(e=Wt(e).replace(/^\.(\/|$)/,""),D6(t)+"/"+e):Wt(e),x6=16*1024*1024,Yx=Symbol("process"),zx=Symbol("file"),Kx=Symbol("directory"),y0=Symbol("symlink"),Xx=Symbol("hardlink"),ks=Symbol("header"),Zu=Symbol("read"),E0=Symbol("lstat"),Qu=Symbol("onlstat"),_0=Symbol("onread"),v0=Symbol("onreadlink"),b0=Symbol("openfile"),D0=Symbol("onopenfile"),Hr=Symbol("close"),ea=Symbol("mode"),x0=Symbol("awaitDrain"),g0=Symbol("ondrain"),Yt=Symbol("prefix"),Jx=Symbol("hadError"),r2=Xu(),S6=d0(),n2=m0(),i2=Wx(),ta=r2(class extends Zx{constructor(t,r){if(r=r||{},super(r),typeof t!="string")throw new TypeError("path is required");this.path=Wt(t),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||x6,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Wt(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?Wt(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=n2(this.path);i&&(this.path=s,n=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=S6.decode(this.path.replace(/\\/g,"/")),t=t.replace(/\\/g,"/")),this.absolute=Wt(r.absolute||Vx.resolve(this.cwd,t)),this.path===""&&(this.path="./"),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.statCache.has(this.absolute)?this[Qu](this.statCache.get(this.absolute)):this[E0]()}emit(t,...r){return t==="error"&&(this[Jx]=!0),super.emit(t,...r)}[E0](){Vt.lstat(this.absolute,(t,r)=>{if(t)return this.emit("error",t);this[Qu](r)})}[Qu](t){this.statCache.set(this.absolute,t),this.stat=t,t.isFile()||(t.size=0),this.type=w6(t),this.emit("stat",t),this[Yx]()}[Yx](){switch(this.type){case"File":return this[zx]();case"Directory":return this[Kx]();case"SymbolicLink":return this[y0]();default:return this.end()}}[ea](t){return i2(t,this.type==="Directory",this.portable)}[Yt](t){return t2(t,this.prefix)}[ks](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new e2({path:this[Yt](this.path),linkpath:this.type==="Link"?this[Yt](this.linkpath):this.linkpath,mode:this[ea](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 Qx({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[Yt](this.path),linkpath:this.type==="Link"?this[Yt](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)}[Kx](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[ks](),this.end()}[y0](){Vt.readlink(this.absolute,(t,r)=>{if(t)return this.emit("error",t);this[v0](r)})}[v0](t){this.linkpath=Wt(t),this[ks](),this.end()}[Xx](t){this.type="Link",this.linkpath=Wt(Vx.relative(this.cwd,t)),this.stat.size=0,this[ks](),this.end()}[zx](){if(this.stat.nlink>1){let t=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(t)){let r=this.linkCache.get(t);if(r.indexOf(this.cwd)===0)return this[Xx](r)}this.linkCache.set(t,this.absolute)}if(this[ks](),this.stat.size===0)return this.end();this[b0]()}[b0](){Vt.open(this.absolute,"r",(t,r)=>{if(t)return this.emit("error",t);this[D0](r)})}[D0](t){if(this.fd=t,this[Jx])return this[Hr]();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[Zu]()}[Zu](){let{fd:t,buf:r,offset:n,length:i,pos:s}=this;Vt.read(t,r,n,i,s,(o,u)=>{if(o)return this[Hr](()=>this.emit("error",o));this[_0](u)})}[Hr](t){Vt.close(this.fd,t)}[_0](t){if(t<=0&&this.remain>0){let i=new Error("encountered unexpected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Hr](()=>this.emit("error",i))}if(t>this.remain){let i=new Error("did not encounter expected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Hr](()=>this.emit("error",i))}if(t===this.remain)for(let i=t;i<this.length&&t<this.blockRemain;i++)this.buf[i+this.offset]=0,t++,this.remain++;let r=this.offset===0&&t===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+t);this.write(r)?this[g0]():this[x0](()=>this[g0]())}[x0](t){this.once("drain",t)}write(t){if(this.blockRemain<t.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=t.length,this.blockRemain-=t.length,this.pos+=t.length,this.offset+=t.length,super.write(t)}[g0](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Hr](t=>t?this.emit("error",t):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[Zu]()}}),S0=class extends ta{[E0](){this[Qu](Vt.lstatSync(this.absolute))}[y0](){this[v0](Vt.readlinkSync(this.absolute))}[b0](){this[D0](Vt.openSync(this.absolute,"r"))}[Zu](){let t=!0;try{let{fd:r,buf:n,offset:i,length:s,pos:o}=this,u=Vt.readSync(r,n,i,s,o);this[_0](u),t=!1}finally{if(t)try{this[Hr](()=>{})}catch{}}}[x0](t){t()}[Hr](t){Vt.closeSync(this.fd),t()}},A6=r2(class extends Zx{constructor(t,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=t,this.type=t.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Wt(t.path),this.mode=this[ea](t.mode),this.uid=this.portable?null:t.uid,this.gid=this.portable?null:t.gid,this.uname=this.portable?null:t.uname,this.gname=this.portable?null:t.gname,this.size=t.size,this.mtime=this.noMtime?null:r.mtime||t.mtime,this.atime=this.portable?null:t.atime,this.ctime=this.portable?null:t.ctime,this.linkpath=Wt(t.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=n2(this.path);i&&(this.path=s,n=i)}this.remain=t.size,this.blockRemain=t.startBlockSize,this.header=new e2({path:this[Yt](this.path),linkpath:this.type==="Link"?this[Yt](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.header.encode()&&!this.noPax&&super.write(new Qx({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[Yt](this.path),linkpath:this.type==="Link"?this[Yt](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),t.pipe(this)}[Yt](t){return t2(t,this.prefix)}[ea](t){return i2(t,this.type==="Directory",this.portable)}write(t){let r=t.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(t)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});ta.Sync=S0;ta.Tar=A6;var w6=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported";s2.exports=ta});var u2=m((zq,o2)=>{"use strict";o2.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}});var w0=m((Kq,a2)=>{"use strict";a2.exports=re;re.Node=En;re.create=re;function re(e){var t=this;if(t instanceof re||(t=new re),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}re.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};re.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};re.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};re.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)F6(this,arguments[e]);return this.length};re.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)R6(this,arguments[e]);return this.length};re.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};re.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};re.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};re.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};re.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};re.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};re.prototype.map=function(e,t){t=t||this;for(var r=new re,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};re.prototype.mapReverse=function(e,t){t=t||this;for(var r=new re,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};re.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=e(r,n.value,i),n=n.next;return r};re.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=e(r,n.value,i),n=n.prev;return r};re.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};re.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};re.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new re;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(;i!==null&&n<t;n++,i=i.next)r.push(i.value);return r};re.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new re;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,i=this.tail;i!==null&&n>t;n--)i=i.prev;for(;i!==null&&n>e;n--,i=i.prev)r.push(i.value);return r};re.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(var s=[],n=0;i&&n<t;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=C6(this,i,r[n]);return s};re.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};function C6(e,t,r){var n=t===e.head?new En(r,null,t,e):new En(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function F6(e,t){e.tail=new En(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function R6(e,t){e.head=new En(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function En(e,t,r,n){if(!(this instanceof En))return new En(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{u2()(re)}catch{}});var la=m((Jq,m2)=>{"use strict";var aa=class{constructor(t,r){this.path=t||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},T6=Mu(),O6=i0(),k6=Yu(),I0=A0(),B6=I0.Sync,P6=I0.Tar,I6=w0(),c2=Buffer.alloc(1024),ia=Symbol("onStat"),ra=Symbol("ended"),zt=Symbol("queue"),Di=Symbol("current"),_n=Symbol("process"),na=Symbol("processing"),l2=Symbol("processJob"),Kt=Symbol("jobs"),C0=Symbol("jobDone"),sa=Symbol("addFSEntry"),f2=Symbol("addTarEntry"),O0=Symbol("stat"),k0=Symbol("readdir"),oa=Symbol("onreaddir"),ua=Symbol("pipe"),h2=Symbol("entry"),F0=Symbol("entryOpt"),B0=Symbol("writeEntryClass"),d2=Symbol("write"),R0=Symbol("ondrain"),ca=require("fs"),p2=require("path"),L6=Xu(),T0=Ei(),L0=L6(class extends T6{constructor(t){super(t),t=t||Object.create(null),this.opt=t,this.file=t.file||"",this.cwd=t.cwd||process.cwd(),this.maxReadSize=t.maxReadSize,this.preservePaths=!!t.preservePaths,this.strict=!!t.strict,this.noPax=!!t.noPax,this.prefix=T0(t.prefix||""),this.linkCache=t.linkCache||new Map,this.statCache=t.statCache||new Map,this.readdirCache=t.readdirCache||new Map,this[B0]=I0,typeof t.onwarn=="function"&&this.on("warn",t.onwarn),this.portable=!!t.portable,this.zip=null,t.gzip?(typeof t.gzip!="object"&&(t.gzip={}),this.portable&&(t.gzip.portable=!0),this.zip=new O6.Gzip(t.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[R0]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[R0]),this.noDirRecurse=!!t.noDirRecurse,this.follow=!!t.follow,this.noMtime=!!t.noMtime,this.mtime=t.mtime||null,this.filter=typeof t.filter=="function"?t.filter:r=>!0,this[zt]=new I6,this[Kt]=0,this.jobs=+t.jobs||4,this[na]=!1,this[ra]=!1}[d2](t){return super.write(t)}add(t){return this.write(t),this}end(t){return t&&this.write(t),this[ra]=!0,this[_n](),this}write(t){if(this[ra])throw new Error("write after end");return t instanceof k6?this[f2](t):this[sa](t),this.flowing}[f2](t){let r=T0(p2.resolve(this.cwd,t.path));if(!this.filter(t.path,t))t.resume();else{let n=new aa(t.path,r,!1);n.entry=new P6(t,this[F0](n)),n.entry.on("end",i=>this[C0](n)),this[Kt]+=1,this[zt].push(n)}this[_n]()}[sa](t){let r=T0(p2.resolve(this.cwd,t));this[zt].push(new aa(t,r)),this[_n]()}[O0](t){t.pending=!0,this[Kt]+=1;let r=this.follow?"stat":"lstat";ca[r](t.absolute,(n,i)=>{t.pending=!1,this[Kt]-=1,n?this.emit("error",n):this[ia](t,i)})}[ia](t,r){this.statCache.set(t.absolute,r),t.stat=r,this.filter(t.path,r)||(t.ignore=!0),this[_n]()}[k0](t){t.pending=!0,this[Kt]+=1,ca.readdir(t.absolute,(r,n)=>{if(t.pending=!1,this[Kt]-=1,r)return this.emit("error",r);this[oa](t,n)})}[oa](t,r){this.readdirCache.set(t.absolute,r),t.readdir=r,this[_n]()}[_n](){if(!this[na]){this[na]=!0;for(let t=this[zt].head;t!==null&&this[Kt]<this.jobs;t=t.next)if(this[l2](t.value),t.value.ignore){let r=t.next;this[zt].removeNode(t),t.next=r}this[na]=!1,this[ra]&&!this[zt].length&&this[Kt]===0&&(this.zip?this.zip.end(c2):(super.write(c2),super.end()))}}get[Di](){return this[zt]&&this[zt].head&&this[zt].head.value}[C0](t){this[zt].shift(),this[Kt]-=1,this[_n]()}[l2](t){if(!t.pending){if(t.entry){t===this[Di]&&!t.piped&&this[ua](t);return}if(t.stat||(this.statCache.has(t.absolute)?this[ia](t,this.statCache.get(t.absolute)):this[O0](t)),!!t.stat&&!t.ignore&&!(!this.noDirRecurse&&t.stat.isDirectory()&&!t.readdir&&(this.readdirCache.has(t.absolute)?this[oa](t,this.readdirCache.get(t.absolute)):this[k0](t),!t.readdir))){if(t.entry=this[h2](t),!t.entry){t.ignore=!0;return}t===this[Di]&&!t.piped&&this[ua](t)}}}[F0](t){return{onwarn:(r,n,i)=>this.warn(r,n,i),noPax:this.noPax,cwd:this.cwd,absolute:t.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}}[h2](t){this[Kt]+=1;try{return new this[B0](t.path,this[F0](t)).on("end",()=>this[C0](t)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[R0](){this[Di]&&this[Di].entry&&this[Di].entry.resume()}[ua](t){t.piped=!0,t.readdir&&t.readdir.forEach(i=>{let s=t.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[sa](o+i)});let r=t.entry,n=this.zip;n?r.on("data",i=>{n.write(i)||r.pause()}):r.on("data",i=>{super.write(i)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),P0=class extends L0{constructor(t){super(t),this[B0]=B6}pause(){}resume(){}[O0](t){let r=this.follow?"statSync":"lstatSync";this[ia](t,ca[r](t.absolute))}[k0](t,r){this[oa](t,ca.readdirSync(t.absolute))}[ua](t){let r=t.entry,n=this.zip;t.readdir&&t.readdir.forEach(i=>{let s=t.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[sa](o+i)}),n?r.on("data",i=>{n.write(i)}):r.on("data",i=>{super[d2](i)})}};L0.Sync=P0;m2.exports=L0});var Ti=m(Ps=>{"use strict";var N6=$h(),M6=require("events").EventEmitter,at=require("fs"),q0=at.writev;if(!q0){let e=process.binding("fs"),t=e.FSReqWrap||e.FSReqCallback;q0=(r,n,i,s)=>{let o=(a,c)=>s(a,c,n),u=new t;u.oncomplete=o,e.writeBuffers(r,n,i,u)}}var Fi=Symbol("_autoClose"),Pt=Symbol("_close"),Bs=Symbol("_ended"),ae=Symbol("_fd"),g2=Symbol("_finished"),Ur=Symbol("_flags"),N0=Symbol("_flush"),j0=Symbol("_handleChunk"),H0=Symbol("_makeBuf"),ma=Symbol("_mode"),fa=Symbol("_needDrain"),wi=Symbol("_onerror"),Ri=Symbol("_onopen"),M0=Symbol("_onread"),Si=Symbol("_onwrite"),Gr=Symbol("_open"),gr=Symbol("_path"),vn=Symbol("_pos"),Xt=Symbol("_queue"),Ai=Symbol("_read"),y2=Symbol("_readSize"),$r=Symbol("_reading"),ha=Symbol("_remain"),E2=Symbol("_size"),pa=Symbol("_write"),xi=Symbol("_writing"),da=Symbol("_defaultFlag"),Ci=Symbol("_errored"),ga=class extends N6{constructor(t,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof t!="string")throw new TypeError("path must be a string");this[Ci]=!1,this[ae]=typeof r.fd=="number"?r.fd:null,this[gr]=t,this[y2]=r.readSize||16*1024*1024,this[$r]=!1,this[E2]=typeof r.size=="number"?r.size:1/0,this[ha]=this[E2],this[Fi]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[ae]=="number"?this[Ai]():this[Gr]()}get fd(){return this[ae]}get path(){return this[gr]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Gr](){at.open(this[gr],"r",(t,r)=>this[Ri](t,r))}[Ri](t,r){t?this[wi](t):(this[ae]=r,this.emit("open",r),this[Ai]())}[H0](){return Buffer.allocUnsafe(Math.min(this[y2],this[ha]))}[Ai](){if(!this[$r]){this[$r]=!0;let t=this[H0]();if(t.length===0)return process.nextTick(()=>this[M0](null,0,t));at.read(this[ae],t,0,t.length,null,(r,n,i)=>this[M0](r,n,i))}}[M0](t,r,n){this[$r]=!1,t?this[wi](t):this[j0](r,n)&&this[Ai]()}[Pt](){if(this[Fi]&&typeof this[ae]=="number"){let t=this[ae];this[ae]=null,at.close(t,r=>r?this.emit("error",r):this.emit("close"))}}[wi](t){this[$r]=!0,this[Pt](),this.emit("error",t)}[j0](t,r){let n=!1;return this[ha]-=t,t>0&&(n=super.write(t<r.length?r.slice(0,t):r)),(t===0||this[ha]<=0)&&(n=!1,this[Pt](),super.end()),n}emit(t,r){switch(t){case"prefinish":case"finish":break;case"drain":typeof this[ae]=="number"&&this[Ai]();break;case"error":return this[Ci]?void 0:(this[Ci]=!0,super.emit(t,r));default:return super.emit(t,r)}}},$0=class extends ga{[Gr](){let t=!0;try{this[Ri](null,at.openSync(this[gr],"r")),t=!1}finally{t&&this[Pt]()}}[Ai](){let t=!0;try{if(!this[$r]){this[$r]=!0;do{let r=this[H0](),n=r.length===0?0:at.readSync(this[ae],r,0,r.length,null);if(!this[j0](n,r))break}while(!0);this[$r]=!1}t=!1}finally{t&&this[Pt]()}}[Pt](){if(this[Fi]&&typeof this[ae]=="number"){let t=this[ae];this[ae]=null,at.closeSync(t),this.emit("close")}}},ya=class extends M6{constructor(t,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[Ci]=!1,this[xi]=!1,this[Bs]=!1,this[fa]=!1,this[Xt]=[],this[gr]=t,this[ae]=typeof r.fd=="number"?r.fd:null,this[ma]=r.mode===void 0?438:r.mode,this[vn]=typeof r.start=="number"?r.start:null,this[Fi]=typeof r.autoClose=="boolean"?r.autoClose:!0;let n=this[vn]!==null?"r+":"w";this[da]=r.flags===void 0,this[Ur]=this[da]?n:r.flags,this[ae]===null&&this[Gr]()}emit(t,r){if(t==="error"){if(this[Ci])return;this[Ci]=!0}return super.emit(t,r)}get fd(){return this[ae]}get path(){return this[gr]}[wi](t){this[Pt](),this[xi]=!0,this.emit("error",t)}[Gr](){at.open(this[gr],this[Ur],this[ma],(t,r)=>this[Ri](t,r))}[Ri](t,r){this[da]&&this[Ur]==="r+"&&t&&t.code==="ENOENT"?(this[Ur]="w",this[Gr]()):t?this[wi](t):(this[ae]=r,this.emit("open",r),this[N0]())}end(t,r){return t&&this.write(t,r),this[Bs]=!0,!this[xi]&&!this[Xt].length&&typeof this[ae]=="number"&&this[Si](null,0),this}write(t,r){return typeof t=="string"&&(t=Buffer.from(t,r)),this[Bs]?(this.emit("error",new Error("write() after end()")),!1):this[ae]===null||this[xi]||this[Xt].length?(this[Xt].push(t),this[fa]=!0,!1):(this[xi]=!0,this[pa](t),!0)}[pa](t){at.write(this[ae],t,0,t.length,this[vn],(r,n)=>this[Si](r,n))}[Si](t,r){t?this[wi](t):(this[vn]!==null&&(this[vn]+=r),this[Xt].length?this[N0]():(this[xi]=!1,this[Bs]&&!this[g2]?(this[g2]=!0,this[Pt](),this.emit("finish")):this[fa]&&(this[fa]=!1,this.emit("drain"))))}[N0](){if(this[Xt].length===0)this[Bs]&&this[Si](null,0);else if(this[Xt].length===1)this[pa](this[Xt].pop());else{let t=this[Xt];this[Xt]=[],q0(this[ae],t,this[vn],(r,n)=>this[Si](r,n))}}[Pt](){if(this[Fi]&&typeof this[ae]=="number"){let t=this[ae];this[ae]=null,at.close(t,r=>r?this.emit("error",r):this.emit("close"))}}},U0=class extends ya{[Gr](){let t;if(this[da]&&this[Ur]==="r+")try{t=at.openSync(this[gr],this[Ur],this[ma])}catch(r){if(r.code==="ENOENT")return this[Ur]="w",this[Gr]();throw r}else t=at.openSync(this[gr],this[Ur],this[ma]);this[Ri](null,t)}[Pt](){if(this[Fi]&&typeof this[ae]=="number"){let t=this[ae];this[ae]=null,at.closeSync(t),this.emit("close")}}[pa](t){let r=!0;try{this[Si](null,at.writeSync(this[ae],t,0,t.length,this[vn])),r=!1}finally{if(r)try{this[Pt]()}catch{}}}};Ps.ReadStream=ga;Ps.ReadStreamSync=$0;Ps.WriteStream=ya;Ps.WriteStreamSync=U0});var Sa=m((ej,w2)=>{"use strict";var q6=Xu(),j6=vi(),H6=require("events"),$6=w0(),U6=1024*1024,G6=Yu(),_2=Ku(),W6=i0(),{nextTick:V6}=require("process"),G0=Buffer.from([31,139]),St=Symbol("state"),bn=Symbol("writeEntry"),yr=Symbol("readEntry"),W0=Symbol("nextEntry"),v2=Symbol("processEntry"),At=Symbol("extendedHeader"),Is=Symbol("globalExtendedHeader"),Wr=Symbol("meta"),b2=Symbol("emitMeta"),pe=Symbol("buffer"),Er=Symbol("queue"),Dn=Symbol("ended"),D2=Symbol("emittedEnd"),xn=Symbol("emit"),ct=Symbol("unzip"),Ea=Symbol("consumeChunk"),_a=Symbol("consumeChunkSub"),V0=Symbol("consumeBody"),x2=Symbol("consumeMeta"),S2=Symbol("consumeHeader"),va=Symbol("consuming"),Y0=Symbol("bufferConcat"),z0=Symbol("maybeEnd"),Ls=Symbol("writing"),Vr=Symbol("aborted"),ba=Symbol("onDone"),Sn=Symbol("sawValidEntry"),Da=Symbol("sawNullBlock"),xa=Symbol("sawEOF"),A2=Symbol("closeStream"),Y6=e=>!0;w2.exports=q6(class extends H6{constructor(t){t=t||{},super(t),this.file=t.file||"",this[Sn]=null,this.on(ba,r=>{(this[St]==="begin"||this[Sn]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),t.ondone?this.on(ba,t.ondone):this.on(ba,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!t.strict,this.maxMetaEntrySize=t.maxMetaEntrySize||U6,this.filter=typeof t.filter=="function"?t.filter:Y6,this.writable=!0,this.readable=!1,this[Er]=new $6,this[pe]=null,this[yr]=null,this[bn]=null,this[St]="begin",this[Wr]="",this[At]=null,this[Is]=null,this[Dn]=!1,this[ct]=null,this[Vr]=!1,this[Da]=!1,this[xa]=!1,this.on("end",()=>this[A2]()),typeof t.onwarn=="function"&&this.on("warn",t.onwarn),typeof t.onentry=="function"&&this.on("entry",t.onentry)}[S2](t,r){this[Sn]===null&&(this[Sn]=!1);let n;try{n=new j6(t,r,this[At],this[Is])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(n.nullBlock)this[Da]?(this[xa]=!0,this[St]==="begin"&&(this[St]="header"),this[xn]("eof")):(this[Da]=!0,this[xn]("nullBlock"));else if(this[Da]=!1,!n.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n});else if(!n.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else{let i=n.type;if(/^(Symbolic)?Link$/.test(i)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(!/^(Symbolic)?Link$/.test(i)&&n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n});else{let s=this[bn]=new G6(n,this[At],this[Is]);if(!this[Sn])if(s.remain){let o=()=>{s.invalid||(this[Sn]=!0)};s.on("end",o)}else this[Sn]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[xn]("ignoredEntry",s),this[St]="ignore",s.resume()):s.size>0&&(this[Wr]="",s.on("data",o=>this[Wr]+=o),this[St]="meta"):(this[At]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[xn]("ignoredEntry",s),this[St]=s.remain?"ignore":"header",s.resume()):(s.remain?this[St]="body":(this[St]="header",s.end()),this[yr]?this[Er].push(s):(this[Er].push(s),this[W0]())))}}}[A2](){V6(()=>this.emit("close"))}[v2](t){let r=!0;return t?Array.isArray(t)?this.emit.apply(this,t):(this[yr]=t,this.emit("entry",t),t.emittedEnd||(t.on("end",n=>this[W0]()),r=!1)):(this[yr]=null,r=!1),r}[W0](){do;while(this[v2](this[Er].shift()));if(!this[Er].length){let t=this[yr];!t||t.flowing||t.size===t.remain?this[Ls]||this.emit("drain"):t.once("drain",n=>this.emit("drain"))}}[V0](t,r){let n=this[bn],i=n.blockRemain,s=i>=t.length&&r===0?t:t.slice(r,r+i);return n.write(s),n.blockRemain||(this[St]="header",this[bn]=null,n.end()),s.length}[x2](t,r){let n=this[bn],i=this[V0](t,r);return this[bn]||this[b2](n),i}[xn](t,r,n){!this[Er].length&&!this[yr]?this.emit(t,r,n):this[Er].push([t,r,n])}[b2](t){switch(this[xn]("meta",this[Wr]),t.type){case"ExtendedHeader":case"OldExtendedHeader":this[At]=_2.parse(this[Wr],this[At],!1);break;case"GlobalExtendedHeader":this[Is]=_2.parse(this[Wr],this[Is],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[At]=this[At]||Object.create(null),this[At].path=this[Wr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[At]=this[At]||Object.create(null),this[At].linkpath=this[Wr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+t.type)}}abort(t){this[Vr]=!0,this.emit("abort",t),this.warn("TAR_ABORT",t,{recoverable:!1})}write(t){if(this[Vr])return;if(this[ct]===null&&t){if(this[pe]&&(t=Buffer.concat([this[pe],t]),this[pe]=null),t.length<G0.length)return this[pe]=t,!0;for(let n=0;this[ct]===null&&n<G0.length;n++)t[n]!==G0[n]&&(this[ct]=!1);if(this[ct]===null){let n=this[Dn];this[Dn]=!1,this[ct]=new W6.Unzip,this[ct].on("data",s=>this[Ea](s)),this[ct].on("error",s=>this.abort(s)),this[ct].on("end",s=>{this[Dn]=!0,this[Ea]()}),this[Ls]=!0;let i=this[ct][n?"end":"write"](t);return this[Ls]=!1,i}}this[Ls]=!0,this[ct]?this[ct].write(t):this[Ea](t),this[Ls]=!1;let r=this[Er].length?!1:this[yr]?this[yr].flowing:!0;return!r&&!this[Er].length&&this[yr].once("drain",n=>this.emit("drain")),r}[Y0](t){t&&!this[Vr]&&(this[pe]=this[pe]?Buffer.concat([this[pe],t]):t)}[z0](){if(this[Dn]&&!this[D2]&&!this[Vr]&&!this[va]){this[D2]=!0;let t=this[bn];if(t&&t.blockRemain){let r=this[pe]?this[pe].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${t.blockRemain} more bytes, only ${r} available)`,{entry:t}),this[pe]&&t.write(this[pe]),t.end()}this[xn](ba)}}[Ea](t){if(this[va])this[Y0](t);else if(!t&&!this[pe])this[z0]();else{if(this[va]=!0,this[pe]){this[Y0](t);let r=this[pe];this[pe]=null,this[_a](r)}else this[_a](t);for(;this[pe]&&this[pe].length>=512&&!this[Vr]&&!this[xa];){let r=this[pe];this[pe]=null,this[_a](r)}this[va]=!1}(!this[pe]||this[Dn])&&this[z0]()}[_a](t){let r=0,n=t.length;for(;r+512<=n&&!this[Vr]&&!this[xa];)switch(this[St]){case"begin":case"header":this[S2](t,r),r+=512;break;case"ignore":case"body":r+=this[V0](t,r);break;case"meta":r+=this[x2](t,r);break;default:throw new Error("invalid state: "+this[St])}r<n&&(this[pe]?this[pe]=Buffer.concat([t.slice(r),this[pe]]):this[pe]=t.slice(r))}end(t){this[Vr]||(this[ct]?this[ct].end(t):(this[Dn]=!0,this.write(t)))}})});var Aa=m((tj,T2)=>{"use strict";var z6=pi(),F2=Sa(),Oi=require("fs"),K6=Ti(),C2=require("path"),K0=bi();T2.exports=(e,t,r)=>{typeof e=="function"?(r=e,t=null,e={}):Array.isArray(e)&&(t=e,e={}),typeof t=="function"&&(r=t,t=null),t?t=Array.from(t):t=[];let n=z6(e);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return t.length&&J6(n,t),n.noResume||X6(n),n.file&&n.sync?Z6(n):n.file?Q6(n,r):R2(n)};var X6=e=>{let t=e.onentry;e.onentry=t?r=>{t(r),r.resume()}:r=>r.resume()},J6=(e,t)=>{let r=new Map(t.map(s=>[K0(s),!0])),n=e.filter,i=(s,o)=>{let u=o||C2.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):i(C2.dirname(s),u);return r.set(s,a),a};e.filter=n?(s,o)=>n(s,o)&&i(K0(s)):s=>i(K0(s))},Z6=e=>{let t=R2(e),r=e.file,n=!0,i;try{let s=Oi.statSync(r),o=e.maxReadSize||16*1024*1024;if(s.size<o)t.end(Oi.readFileSync(r));else{let u=0,a=Buffer.allocUnsafe(o);for(i=Oi.openSync(r,"r");u<s.size;){let c=Oi.readSync(i,a,0,o,u);u+=c,t.write(a.slice(0,c))}t.end()}n=!1}finally{if(n&&i)try{Oi.closeSync(i)}catch{}}},Q6=(e,t)=>{let r=new F2(e),n=e.maxReadSize||16*1024*1024,i=e.file,s=new Promise((o,u)=>{r.on("error",u),r.on("end",o),Oi.stat(i,(a,c)=>{if(a)u(a);else{let l=new K6.ReadStream(i,{readSize:n,size:c.size});l.on("error",u),l.pipe(r)}})});return t?s.then(t,t):s},R2=e=>new F2(e)});var L2=m((rj,I2)=>{"use strict";var eL=pi(),wa=la(),O2=Ti(),k2=Aa(),B2=require("path");I2.exports=(e,t,r)=>{if(typeof t=="function"&&(r=t),Array.isArray(e)&&(t=e,e={}),!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);let n=eL(e);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return n.file&&n.sync?tL(n,t):n.file?rL(n,t,r):n.sync?nL(n,t):iL(n,t)};var tL=(e,t)=>{let r=new wa.Sync(e),n=new O2.WriteStreamSync(e.file,{mode:e.mode||438});r.pipe(n),P2(r,t)},rL=(e,t,r)=>{let n=new wa(e),i=new O2.WriteStream(e.file,{mode:e.mode||438});n.pipe(i);let s=new Promise((o,u)=>{i.on("error",u),i.on("close",o),n.on("error",u)});return X0(n,t),r?s.then(r,r):s},P2=(e,t)=>{t.forEach(r=>{r.charAt(0)==="@"?k2({file:B2.resolve(e.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>e.add(n)}):e.add(r)}),e.end()},X0=(e,t)=>{for(;t.length;){let r=t.shift();if(r.charAt(0)==="@")return k2({file:B2.resolve(e.cwd,r.slice(1)),noResume:!0,onentry:n=>e.add(n)}).then(n=>X0(e,t));e.add(r)}e.end()},nL=(e,t)=>{let r=new wa.Sync(e);return P2(r,t),r},iL=(e,t)=>{let r=new wa(e);return X0(r,t),r}});var J0=m((nj,U2)=>{"use strict";var sL=pi(),N2=la(),gt=require("fs"),M2=Ti(),q2=Aa(),j2=require("path"),H2=vi();U2.exports=(e,t,r)=>{let n=sL(e);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");return t=Array.from(t),n.sync?oL(n,t):aL(n,t,r)};var oL=(e,t)=>{let r=new N2.Sync(e),n=!0,i,s;try{try{i=gt.openSync(e.file,"r+")}catch(a){if(a.code==="ENOENT")i=gt.openSync(e.file,"w+");else throw a}let o=gt.fstatSync(i),u=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let l=0,f=0;l<512;l+=f){if(f=gt.readSync(i,u,l,u.length-l,s+l),s===0&&u[0]===31&&u[1]===139)throw new Error("cannot append to compressed archives");if(!f)break e}let a=new H2(u);if(!a.cksumValid)break;let c=512*Math.ceil(a.size/512);if(s+c+512>o.size)break;s+=c,e.mtimeCache&&e.mtimeCache.set(a.path,a.mtime)}n=!1,uL(e,r,s,i,t)}finally{if(n)try{gt.closeSync(i)}catch{}}},uL=(e,t,r,n,i)=>{let s=new M2.WriteStreamSync(e.file,{fd:n,start:r});t.pipe(s),cL(t,i)},aL=(e,t,r)=>{t=Array.from(t);let n=new N2(e),i=(o,u,a)=>{let c=(_,g)=>{_?gt.close(o,v=>a(_)):a(null,g)},l=0;if(u===0)return c(null,0);let f=0,h=Buffer.alloc(512),E=(_,g)=>{if(_)return c(_);if(f+=g,f<512&&g)return gt.read(o,h,f,h.length-f,l+f,E);if(l===0&&h[0]===31&&h[1]===139)return c(new Error("cannot append to compressed archives"));if(f<512)return c(null,l);let v=new H2(h);if(!v.cksumValid)return c(null,l);let D=512*Math.ceil(v.size/512);if(l+D+512>u||(l+=D+512,l>=u))return c(null,l);e.mtimeCache&&e.mtimeCache.set(v.path,v.mtime),f=0,gt.read(o,h,0,512,l,E)};gt.read(o,h,0,512,l,E)},s=new Promise((o,u)=>{n.on("error",u);let a="r+",c=(l,f)=>{if(l&&l.code==="ENOENT"&&a==="r+")return a="w+",gt.open(e.file,a,c);if(l)return u(l);gt.fstat(f,(h,E)=>{if(h)return gt.close(f,()=>u(h));i(f,E.size,(_,g)=>{if(_)return u(_);let v=new M2.WriteStream(e.file,{fd:f,start:g});n.pipe(v),v.on("error",u),v.on("close",o),$2(n,t)})})};gt.open(e.file,a,c)});return r?s.then(r,r):s},cL=(e,t)=>{t.forEach(r=>{r.charAt(0)==="@"?q2({file:j2.resolve(e.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>e.add(n)}):e.add(r)}),e.end()},$2=(e,t)=>{for(;t.length;){let r=t.shift();if(r.charAt(0)==="@")return q2({file:j2.resolve(e.cwd,r.slice(1)),noResume:!0,onentry:n=>e.add(n)}).then(n=>$2(e,t));e.add(r)}e.end()}});var W2=m((ij,G2)=>{"use strict";var lL=pi(),fL=J0();G2.exports=(e,t,r)=>{let n=lL(e);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");return t=Array.from(t),hL(n),fL(n,t,r)};var hL=e=>{let t=e.filter;e.mtimeCache||(e.mtimeCache=new Map),e.filter=t?(r,n)=>t(r,n)&&!(e.mtimeCache.get(r)>n.mtime):(r,n)=>!(e.mtimeCache.get(r)>n.mtime)}});var z2=m((sj,Y2)=>{var{promisify:V2}=require("util"),Yr=require("fs"),pL=e=>{if(!e)e={mode:511,fs:Yr};else if(typeof e=="object")e={mode:511,fs:Yr,...e};else if(typeof e=="number")e={mode:e,fs:Yr};else if(typeof e=="string")e={mode:parseInt(e,8),fs:Yr};else throw new TypeError("invalid options argument");return e.mkdir=e.mkdir||e.fs.mkdir||Yr.mkdir,e.mkdirAsync=V2(e.mkdir),e.stat=e.stat||e.fs.stat||Yr.stat,e.statAsync=V2(e.stat),e.statSync=e.statSync||e.fs.statSync||Yr.statSync,e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||Yr.mkdirSync,e};Y2.exports=pL});var X2=m((oj,K2)=>{var dL=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:mL,parse:gL}=require("path"),yL=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=mL(e),dL==="win32"){let t=/[*|"<>?:]/,{root:r}=gL(e);if(t.test(e.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e};K2.exports=yL});var tS=m((uj,eS)=>{var{dirname:J2}=require("path"),Z2=(e,t,r=void 0)=>r===t?Promise.resolve():e.statAsync(t).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?Z2(e,J2(t),t):void 0),Q2=(e,t,r=void 0)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?Q2(e,J2(t),t):void 0}};eS.exports={findMade:Z2,findMadeSync:Q2}});var ep=m((aj,nS)=>{var{dirname:rS}=require("path"),Z0=(e,t,r)=>{t.recursive=!1;let n=rS(e);return n===e?t.mkdirAsync(e,t).catch(i=>{if(i.code!=="EISDIR")throw i}):t.mkdirAsync(e,t).then(()=>r||e,i=>{if(i.code==="ENOENT")return Z0(n,t).then(s=>Z0(e,t,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return t.statAsync(e).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},Q0=(e,t,r)=>{let n=rS(e);if(t.recursive=!1,n===e)try{return t.mkdirSync(e,t)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return t.mkdirSync(e,t),r||e}catch(i){if(i.code==="ENOENT")return Q0(e,t,Q0(n,t,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!t.statSync(e).isDirectory())throw i}catch{throw i}}};nS.exports={mkdirpManual:Z0,mkdirpManualSync:Q0}});var oS=m((cj,sS)=>{var{dirname:iS}=require("path"),{findMade:EL,findMadeSync:_L}=tS(),{mkdirpManual:vL,mkdirpManualSync:bL}=ep(),DL=(e,t)=>(t.recursive=!0,iS(e)===e?t.mkdirAsync(e,t):EL(t,e).then(n=>t.mkdirAsync(e,t).then(()=>n).catch(i=>{if(i.code==="ENOENT")return vL(e,t);throw i}))),xL=(e,t)=>{if(t.recursive=!0,iS(e)===e)return t.mkdirSync(e,t);let n=_L(t,e);try{return t.mkdirSync(e,t),n}catch(i){if(i.code==="ENOENT")return bL(e,t);throw i}};sS.exports={mkdirpNative:DL,mkdirpNativeSync:xL}});var lS=m((lj,cS)=>{var uS=require("fs"),SL=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,tp=SL.replace(/^v/,"").split("."),aS=+tp[0]>10||+tp[0]==10&&+tp[1]>=12,AL=aS?e=>e.mkdir===uS.mkdir:()=>!1,wL=aS?e=>e.mkdirSync===uS.mkdirSync:()=>!1;cS.exports={useNative:AL,useNativeSync:wL}});var gS=m((fj,mS)=>{var ki=z2(),Bi=X2(),{mkdirpNative:fS,mkdirpNativeSync:hS}=oS(),{mkdirpManual:pS,mkdirpManualSync:dS}=ep(),{useNative:CL,useNativeSync:FL}=lS(),Pi=(e,t)=>(e=Bi(e),t=ki(t),CL(t)?fS(e,t):pS(e,t)),RL=(e,t)=>(e=Bi(e),t=ki(t),FL(t)?hS(e,t):dS(e,t));Pi.sync=RL;Pi.native=(e,t)=>fS(Bi(e),ki(t));Pi.manual=(e,t)=>pS(Bi(e),ki(t));Pi.nativeSync=(e,t)=>hS(Bi(e),ki(t));Pi.manualSync=(e,t)=>dS(Bi(e),ki(t));mS.exports=Pi});var xS=m((hj,DS)=>{"use strict";var wt=require("fs"),An=require("path"),TL=wt.lchown?"lchown":"chown",OL=wt.lchownSync?"lchownSync":"chownSync",ES=wt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),yS=(e,t,r)=>{try{return wt[OL](e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},kL=(e,t,r)=>{try{return wt.chownSync(e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},BL=ES?(e,t,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):wt.chown(e,t,r,n)}:(e,t,r,n)=>n,rp=ES?(e,t,r)=>{try{return yS(e,t,r)}catch(n){if(n.code!=="EISDIR")throw n;kL(e,t,r)}}:(e,t,r)=>yS(e,t,r),PL=process.version,_S=(e,t,r)=>wt.readdir(e,t,r),IL=(e,t)=>wt.readdirSync(e,t);/^v4\./.test(PL)&&(_S=(e,t,r)=>wt.readdir(e,r));var Ca=(e,t,r,n)=>{wt[TL](e,t,r,BL(e,t,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},vS=(e,t,r,n,i)=>{if(typeof t=="string")return wt.lstat(An.resolve(e,t),(s,o)=>{if(s)return i(s.code!=="ENOENT"?s:null);o.name=t,vS(e,o,r,n,i)});if(t.isDirectory())np(An.resolve(e,t.name),r,n,s=>{if(s)return i(s);let o=An.resolve(e,t.name);Ca(o,r,n,i)});else{let s=An.resolve(e,t.name);Ca(s,r,n,i)}},np=(e,t,r,n)=>{_S(e,{withFileTypes:!0},(i,s)=>{if(i){if(i.code==="ENOENT")return n();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return Ca(e,t,r,n);let o=s.length,u=null,a=c=>{if(!u){if(c)return n(u=c);if(--o===0)return Ca(e,t,r,n)}};s.forEach(c=>vS(e,c,t,r,a))})},LL=(e,t,r,n)=>{if(typeof t=="string")try{let i=wt.lstatSync(An.resolve(e,t));i.name=t,t=i}catch(i){if(i.code==="ENOENT")return;throw i}t.isDirectory()&&bS(An.resolve(e,t.name),r,n),rp(An.resolve(e,t.name),r,n)},bS=(e,t,r)=>{let n;try{n=IL(e,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return rp(e,t,r);throw i}return n&&n.length&&n.forEach(i=>LL(e,i,t,r)),rp(e,t,r)};DS.exports=np;np.sync=bS});var CS=m((pj,ip)=>{"use strict";var SS=gS(),Ct=require("fs"),Fa=require("path"),AS=xS(),It=Ei(),Ra=class extends Error{constructor(t,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=t}get name(){return"SylinkError"}},Ta=class extends Error{constructor(t,r){super(r+": Cannot cd into '"+t+"'"),this.path=t,this.code=r}get name(){return"CwdError"}},Oa=(e,t)=>e.get(It(t)),Ns=(e,t,r)=>e.set(It(t),r),NL=(e,t)=>{Ct.stat(e,(r,n)=>{(r||!n.isDirectory())&&(r=new Ta(e,r&&r.code||"ENOTDIR")),t(r)})};ip.exports=(e,t,r)=>{e=It(e);let n=t.umask,i=t.mode|448,s=(i&n)!==0,o=t.uid,u=t.gid,a=typeof o=="number"&&typeof u=="number"&&(o!==t.processUid||u!==t.processGid),c=t.preserve,l=t.unlink,f=t.cache,h=It(t.cwd),E=(v,D)=>{v?r(v):(Ns(f,e,!0),D&&a?AS(D,o,u,C=>E(C)):s?Ct.chmod(e,i,r):r())};if(f&&Oa(f,e)===!0)return E();if(e===h)return NL(e,E);if(c)return SS(e,{mode:i}).then(v=>E(null,v),E);let g=It(Fa.relative(h,e)).split("/");ka(h,g,i,f,l,h,null,E)};var ka=(e,t,r,n,i,s,o,u)=>{if(!t.length)return u(null,o);let a=t.shift(),c=It(Fa.resolve(e+"/"+a));if(Oa(n,c))return ka(c,t,r,n,i,s,o,u);Ct.mkdir(c,r,wS(c,t,r,n,i,s,o,u))},wS=(e,t,r,n,i,s,o,u)=>a=>{a?Ct.lstat(e,(c,l)=>{if(c)c.path=c.path&&It(c.path),u(c);else if(l.isDirectory())ka(e,t,r,n,i,s,o,u);else if(i)Ct.unlink(e,f=>{if(f)return u(f);Ct.mkdir(e,r,wS(e,t,r,n,i,s,o,u))});else{if(l.isSymbolicLink())return u(new Ra(e,e+"/"+t.join("/")));u(a)}}):(o=o||e,ka(e,t,r,n,i,s,o,u))},ML=e=>{let t=!1,r="ENOTDIR";try{t=Ct.statSync(e).isDirectory()}catch(n){r=n.code}finally{if(!t)throw new Ta(e,r)}};ip.exports.sync=(e,t)=>{e=It(e);let r=t.umask,n=t.mode|448,i=(n&r)!==0,s=t.uid,o=t.gid,u=typeof s=="number"&&typeof o=="number"&&(s!==t.processUid||o!==t.processGid),a=t.preserve,c=t.unlink,l=t.cache,f=It(t.cwd),h=v=>{Ns(l,e,!0),v&&u&&AS.sync(v,s,o),i&&Ct.chmodSync(e,n)};if(l&&Oa(l,e)===!0)return h();if(e===f)return ML(f),h();if(a)return h(SS.sync(e,n));let _=It(Fa.relative(f,e)).split("/"),g=null;for(let v=_.shift(),D=f;v&&(D+="/"+v);v=_.shift())if(D=It(Fa.resolve(D)),!Oa(l,D))try{Ct.mkdirSync(D,n),g=g||D,Ns(l,D,!0)}catch{let O=Ct.lstatSync(D);if(O.isDirectory()){Ns(l,D,!0);continue}else if(c){Ct.unlinkSync(D),Ct.mkdirSync(D,n),g=g||D,Ns(l,D,!0);continue}else if(O.isSymbolicLink())return new Ra(D,D+"/"+_.join("/"))}return h(g)}});var op=m((dj,FS)=>{var sp=Object.create(null),{hasOwnProperty:qL}=Object.prototype;FS.exports=e=>(qL.call(sp,e)||(sp[e]=e.normalize("NFKD")),sp[e])});var kS=m((mj,OS)=>{var RS=require("assert"),jL=op(),HL=bi(),{join:TS}=require("path"),$L=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,UL=$L==="win32";OS.exports=()=>{let e=new Map,t=new Map,r=c=>c.split("/").slice(0,-1).reduce((f,h)=>(f.length&&(h=TS(f[f.length-1],h)),f.push(h||"/"),f),[]),n=new Set,i=c=>{let l=t.get(c);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(f=>e.get(f)),dirs:[...l.dirs].map(f=>e.get(f))}},s=c=>{let{paths:l,dirs:f}=i(c);return l.every(h=>h[0]===c)&&f.every(h=>h[0]instanceof Set&&h[0].has(c))},o=c=>n.has(c)||!s(c)?!1:(n.add(c),c(()=>u(c)),!0),u=c=>{if(!n.has(c))return!1;let{paths:l,dirs:f}=t.get(c),h=new Set;return l.forEach(E=>{let _=e.get(E);RS.equal(_[0],c),_.length===1?e.delete(E):(_.shift(),typeof _[0]=="function"?h.add(_[0]):_[0].forEach(g=>h.add(g)))}),f.forEach(E=>{let _=e.get(E);RS(_[0]instanceof Set),_[0].size===1&&_.length===1?e.delete(E):_[0].size===1?(_.shift(),h.add(_[0])):_[0].delete(c)}),n.delete(c),h.forEach(E=>o(E)),!0};return{check:s,reserve:(c,l)=>{c=UL?["win32 parallelization disabled"]:c.map(h=>jL(HL(TS(h))).toLowerCase());let f=new Set(c.map(h=>r(h)).reduce((h,E)=>h.concat(E)));return t.set(l,{dirs:f,paths:c}),c.forEach(h=>{let E=e.get(h);E?E.push(l):e.set(h,[l])}),f.forEach(h=>{let E=e.get(h);E?E[E.length-1]instanceof Set?E[E.length-1].add(l):E.push(new Set([l])):e.set(h,[new Set([l])])}),o(l)}}}});var IS=m((gj,PS)=>{var GL=process.env.__FAKE_PLATFORM__||process.platform,WL=GL==="win32",VL=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:YL,O_TRUNC:zL,O_WRONLY:KL,UV_FS_O_FILEMAP:BS=0}=VL.constants,XL=WL&&!!BS,JL=512*1024,ZL=BS|zL|YL|KL;PS.exports=XL?e=>e<JL?ZL:"w":()=>"w"});var mp=m((yj,KS)=>{"use strict";var QL=require("assert"),eN=Sa(),ne=require("fs"),tN=Ti(),_r=require("path"),VS=CS(),LS=d0(),rN=kS(),nN=m0(),yt=Ei(),iN=bi(),sN=op(),NS=Symbol("onEntry"),cp=Symbol("checkFs"),MS=Symbol("checkFs2"),Ia=Symbol("pruneCache"),lp=Symbol("isReusable"),Ft=Symbol("makeFs"),fp=Symbol("file"),hp=Symbol("directory"),La=Symbol("link"),qS=Symbol("symlink"),jS=Symbol("hardlink"),HS=Symbol("unsupported"),$S=Symbol("checkPath"),zr=Symbol("mkdir"),Ke=Symbol("onError"),Ba=Symbol("pending"),US=Symbol("pend"),Ii=Symbol("unpend"),up=Symbol("ended"),ap=Symbol("maybeClose"),pp=Symbol("skip"),Ms=Symbol("doChown"),qs=Symbol("uid"),js=Symbol("gid"),Hs=Symbol("checkedCwd"),YS=require("crypto"),zS=IS(),oN=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,$s=oN==="win32",uN=(e,t)=>{if(!$s)return ne.unlink(e,t);let r=e+".DELETE."+YS.randomBytes(16).toString("hex");ne.rename(e,r,n=>{if(n)return t(n);ne.unlink(r,t)})},aN=e=>{if(!$s)return ne.unlinkSync(e);let t=e+".DELETE."+YS.randomBytes(16).toString("hex");ne.renameSync(e,t),ne.unlinkSync(t)},GS=(e,t,r)=>e===e>>>0?e:t===t>>>0?t:r,WS=e=>sN(iN(yt(e))).toLowerCase(),cN=(e,t)=>{t=WS(t);for(let r of e.keys()){let n=WS(r);(n===t||n.indexOf(t+"/")===0)&&e.delete(r)}},lN=e=>{for(let t of e.keys())e.delete(t)},Us=class extends eN{constructor(t){if(t||(t={}),t.ondone=r=>{this[up]=!0,this[ap]()},super(t),this[Hs]=!1,this.reservations=rN(),this.transform=typeof t.transform=="function"?t.transform:null,this.writable=!0,this.readable=!1,this[Ba]=0,this[up]=!1,this.dirCache=t.dirCache||new Map,typeof t.uid=="number"||typeof t.gid=="number"){if(typeof t.uid!="number"||typeof t.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(t.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=t.uid,this.gid=t.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;t.preserveOwner===void 0&&typeof t.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!t.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=t.forceChown===!0,this.win32=!!t.win32||$s,this.newer=!!t.newer,this.keep=!!t.keep,this.noMtime=!!t.noMtime,this.preservePaths=!!t.preservePaths,this.unlink=!!t.unlink,this.cwd=yt(_r.resolve(t.cwd||process.cwd())),this.strip=+t.strip||0,this.processUmask=t.noChmod?0:process.umask(),this.umask=typeof t.umask=="number"?t.umask:this.processUmask,this.dmode=t.dmode||511&~this.umask,this.fmode=t.fmode||438&~this.umask,this.on("entry",r=>this[NS](r))}warn(t,r,n={}){return(t==="TAR_BAD_ARCHIVE"||t==="TAR_ABORT")&&(n.recoverable=!1),super.warn(t,r,n)}[ap](){this[up]&&this[Ba]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[$S](t){if(this.strip){let r=yt(t.path).split("/");if(r.length<this.strip)return!1;if(t.path=r.slice(this.strip).join("/"),t.type==="Link"){let n=yt(t.linkpath).split("/");if(n.length>=this.strip)t.linkpath=n.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=yt(t.path),n=r.split("/");if(n.includes("..")||$s&&/^[a-z]:\.\.$/i.test(n[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:t,path:r}),!1;let[i,s]=nN(r);i&&(t.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:t,path:r}))}if(_r.isAbsolute(t.path)?t.absolute=yt(_r.resolve(t.path)):t.absolute=yt(_r.resolve(this.cwd,t.path)),!this.preservePaths&&t.absolute.indexOf(this.cwd+"/")!==0&&t.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:t,path:yt(t.path),resolvedPath:t.absolute,cwd:this.cwd}),!1;if(t.absolute===this.cwd&&t.type!=="Directory"&&t.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=_r.win32.parse(t.absolute);t.absolute=r+LS.encode(t.absolute.slice(r.length));let{root:n}=_r.win32.parse(t.path);t.path=n+LS.encode(t.path.slice(n.length))}return!0}[NS](t){if(!this[$S](t))return t.resume();switch(QL.equal(typeof t.absolute,"string"),t.type){case"Directory":case"GNUDumpDir":t.mode&&(t.mode=t.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[cp](t);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[HS](t)}}[Ke](t,r){t.name==="CwdError"?this.emit("error",t):(this.warn("TAR_ENTRY_ERROR",t,{entry:r}),this[Ii](),r.resume())}[zr](t,r,n){VS(yt(t),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},n)}[Ms](t){return this.forceChown||this.preserveOwner&&(typeof t.uid=="number"&&t.uid!==this.processUid||typeof t.gid=="number"&&t.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[qs](t){return GS(this.uid,t.uid,this.processUid)}[js](t){return GS(this.gid,t.gid,this.processGid)}[fp](t,r){let n=t.mode&4095||this.fmode,i=new tN.WriteStream(t.absolute,{flags:zS(t.size),mode:n,autoClose:!1});i.on("error",a=>{i.fd&&ne.close(i.fd,()=>{}),i.write=()=>!0,this[Ke](a,t),r()});let s=1,o=a=>{if(a){i.fd&&ne.close(i.fd,()=>{}),this[Ke](a,t),r();return}--s===0&&ne.close(i.fd,c=>{c?this[Ke](c,t):this[Ii](),r()})};i.on("finish",a=>{let c=t.absolute,l=i.fd;if(t.mtime&&!this.noMtime){s++;let f=t.atime||new Date,h=t.mtime;ne.futimes(l,f,h,E=>E?ne.utimes(c,f,h,_=>o(_&&E)):o())}if(this[Ms](t)){s++;let f=this[qs](t),h=this[js](t);ne.fchown(l,f,h,E=>E?ne.chown(c,f,h,_=>o(_&&E)):o())}o()});let u=this.transform&&this.transform(t)||t;u!==t&&(u.on("error",a=>{this[Ke](a,t),r()}),t.pipe(u)),u.pipe(i)}[hp](t,r){let n=t.mode&4095||this.dmode;this[zr](t.absolute,n,i=>{if(i){this[Ke](i,t),r();return}let s=1,o=u=>{--s===0&&(r(),this[Ii](),t.resume())};t.mtime&&!this.noMtime&&(s++,ne.utimes(t.absolute,t.atime||new Date,t.mtime,o)),this[Ms](t)&&(s++,ne.chown(t.absolute,this[qs](t),this[js](t),o)),o()})}[HS](t){t.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${t.type}`,{entry:t}),t.resume()}[qS](t,r){this[La](t,t.linkpath,"symlink",r)}[jS](t,r){let n=yt(_r.resolve(this.cwd,t.linkpath));this[La](t,n,"link",r)}[US](){this[Ba]++}[Ii](){this[Ba]--,this[ap]()}[pp](t){this[Ii](),t.resume()}[lp](t,r){return t.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!$s}[cp](t){this[US]();let r=[t.path];t.linkpath&&r.push(t.linkpath),this.reservations.reserve(r,n=>this[MS](t,n))}[Ia](t){t.type==="SymbolicLink"?lN(this.dirCache):t.type!=="Directory"&&cN(this.dirCache,t.absolute)}[MS](t,r){this[Ia](t);let n=u=>{this[Ia](t),r(u)},i=()=>{this[zr](this.cwd,this.dmode,u=>{if(u){this[Ke](u,t),n();return}this[Hs]=!0,s()})},s=()=>{if(t.absolute!==this.cwd){let u=yt(_r.dirname(t.absolute));if(u!==this.cwd)return this[zr](u,this.dmode,a=>{if(a){this[Ke](a,t),n();return}o()})}o()},o=()=>{ne.lstat(t.absolute,(u,a)=>{if(a&&(this.keep||this.newer&&a.mtime>t.mtime)){this[pp](t),n();return}if(u||this[lp](t,a))return this[Ft](null,t,n);if(a.isDirectory()){if(t.type==="Directory"){let c=!this.noChmod&&t.mode&&(a.mode&4095)!==t.mode,l=f=>this[Ft](f,t,n);return c?ne.chmod(t.absolute,t.mode,l):l()}if(t.absolute!==this.cwd)return ne.rmdir(t.absolute,c=>this[Ft](c,t,n))}if(t.absolute===this.cwd)return this[Ft](null,t,n);uN(t.absolute,c=>this[Ft](c,t,n))})};this[Hs]?s():i()}[Ft](t,r,n){if(t){this[Ke](t,r),n();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[fp](r,n);case"Link":return this[jS](r,n);case"SymbolicLink":return this[qS](r,n);case"Directory":case"GNUDumpDir":return this[hp](r,n)}}[La](t,r,n,i){ne[n](r,t.absolute,s=>{s?this[Ke](s,t):(this[Ii](),t.resume()),i()})}},Pa=e=>{try{return[null,e()]}catch(t){return[t,null]}},dp=class extends Us{[Ft](t,r){return super[Ft](t,r,()=>{})}[cp](t){if(this[Ia](t),!this[Hs]){let s=this[zr](this.cwd,this.dmode);if(s)return this[Ke](s,t);this[Hs]=!0}if(t.absolute!==this.cwd){let s=yt(_r.dirname(t.absolute));if(s!==this.cwd){let o=this[zr](s,this.dmode);if(o)return this[Ke](o,t)}}let[r,n]=Pa(()=>ne.lstatSync(t.absolute));if(n&&(this.keep||this.newer&&n.mtime>t.mtime))return this[pp](t);if(r||this[lp](t,n))return this[Ft](null,t);if(n.isDirectory()){if(t.type==="Directory"){let o=!this.noChmod&&t.mode&&(n.mode&4095)!==t.mode,[u]=o?Pa(()=>{ne.chmodSync(t.absolute,t.mode)}):[];return this[Ft](u,t)}let[s]=Pa(()=>ne.rmdirSync(t.absolute));this[Ft](s,t)}let[i]=t.absolute===this.cwd?[]:Pa(()=>aN(t.absolute));this[Ft](i,t)}[fp](t,r){let n=t.mode&4095||this.fmode,i=u=>{let a;try{ne.closeSync(s)}catch(c){a=c}(u||a)&&this[Ke](u||a,t),r()},s;try{s=ne.openSync(t.absolute,zS(t.size),n)}catch(u){return i(u)}let o=this.transform&&this.transform(t)||t;o!==t&&(o.on("error",u=>this[Ke](u,t)),t.pipe(o)),o.on("data",u=>{try{ne.writeSync(s,u,0,u.length)}catch(a){i(a)}}),o.on("end",u=>{let a=null;if(t.mtime&&!this.noMtime){let c=t.atime||new Date,l=t.mtime;try{ne.futimesSync(s,c,l)}catch(f){try{ne.utimesSync(t.absolute,c,l)}catch{a=f}}}if(this[Ms](t)){let c=this[qs](t),l=this[js](t);try{ne.fchownSync(s,c,l)}catch(f){try{ne.chownSync(t.absolute,c,l)}catch{a=a||f}}}i(a)})}[hp](t,r){let n=t.mode&4095||this.dmode,i=this[zr](t.absolute,n);if(i){this[Ke](i,t),r();return}if(t.mtime&&!this.noMtime)try{ne.utimesSync(t.absolute,t.atime||new Date,t.mtime)}catch{}if(this[Ms](t))try{ne.chownSync(t.absolute,this[qs](t),this[js](t))}catch{}r(),t.resume()}[zr](t,r){try{return VS.sync(yt(t),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(n){return n}}[La](t,r,n,i){try{ne[n+"Sync"](r,t.absolute),i(),t.resume()}catch(s){return this[Ke](s,t)}}};Us.Sync=dp;KS.exports=Us});var eA=m((Ej,QS)=>{"use strict";var fN=pi(),Na=mp(),JS=require("fs"),ZS=Ti(),XS=require("path"),gp=bi();QS.exports=(e,t,r)=>{typeof e=="function"?(r=e,t=null,e={}):Array.isArray(e)&&(t=e,e={}),typeof t=="function"&&(r=t,t=null),t?t=Array.from(t):t=[];let n=fN(e);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return t.length&&hN(n,t),n.file&&n.sync?pN(n):n.file?dN(n,r):n.sync?mN(n):gN(n)};var hN=(e,t)=>{let r=new Map(t.map(s=>[gp(s),!0])),n=e.filter,i=(s,o)=>{let u=o||XS.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):i(XS.dirname(s),u);return r.set(s,a),a};e.filter=n?(s,o)=>n(s,o)&&i(gp(s)):s=>i(gp(s))},pN=e=>{let t=new Na.Sync(e),r=e.file,n=JS.statSync(r),i=e.maxReadSize||16*1024*1024;new ZS.ReadStreamSync(r,{readSize:i,size:n.size}).pipe(t)},dN=(e,t)=>{let r=new Na(e),n=e.maxReadSize||16*1024*1024,i=e.file,s=new Promise((o,u)=>{r.on("error",u),r.on("close",o),JS.stat(i,(a,c)=>{if(a)u(a);else{let l=new ZS.ReadStream(i,{readSize:n,size:c.size});l.on("error",u),l.pipe(r)}})});return t?s.then(t,t):s},mN=e=>new Na.Sync(e),gN=e=>new Na(e)});var tA=m(Te=>{"use strict";Te.c=Te.create=L2();Te.r=Te.replace=J0();Te.t=Te.list=Aa();Te.u=Te.update=W2();Te.x=Te.extract=eA();Te.Pack=la();Te.Unpack=mp();Te.Parse=Sa();Te.ReadEntry=Yu();Te.WriteEntry=A0();Te.Header=vi();Te.Pax=Ku();Te.types=u0()});var oA=m((xj,sA)=>{function Rt(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.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))}sA.exports=Rt;Rt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Rt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Rt.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);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 n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};Rt.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Rt.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};Rt.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};Rt.prototype.start=Rt.prototype.try;Rt.prototype.errors=function(){return this._errors};Rt.prototype.attempts=function(){return this._attempts};Rt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(e[s]||0)+1;e[s]=o,o>=r&&(t=i,r=o)}return t}});var uA=m(wn=>{var vN=oA();wn.operation=function(e){var t=wn.timeouts(e);return new vN(t,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};wn.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<t.retries;i++)n.push(this.createTimeout(i,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(i,t)),n.sort(function(s,o){return s-o}),n};wn.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1,n=Math.round(r*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout),n};wn.wrap=function(e,t,r){if(t instanceof Array&&(r=t,t=null),!r){r=[];for(var n in e)typeof e[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=e[s];e[s]=function(a){var c=wn.operation(t),l=Array.prototype.slice.call(arguments,1),f=l.pop();l.push(function(h){c.retry(h)||(h&&(arguments[0]=c.mainError()),f.apply(this,arguments))}),c.attempt(function(){a.apply(e,l)})}.bind(e,o),e[s].options=t}}});var cA=m((Aj,aA)=>{aA.exports=uA()});var fA=m((wj,lA)=>{var bN=cA();function DN(e,t){function r(n,i){var s=t||{},o;"randomize"in s||(s.randomize=!0),o=bN.operation(s);function u(l){i(l||new Error("Aborted"))}function a(l,f){if(l.bail){u(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,f):i(o.mainError())}function c(l){var f;try{f=e(u,l)}catch(h){a(h,l);return}Promise.resolve(f).then(n).catch(function(E){a(E,l)})}o.attempt(c)}return new Promise(r)}lA.exports=DN});var XN={};Ap(XN,{configs:()=>zN,default:()=>KN,rules:()=>YN});module.exports=HA(XN);var Fp="eslint-plugin-turbo",Rp="2.4.3-canary.3";var vr={noUndeclaredEnvVars:"no-undeclared-env-vars"};var xp=de(require("path")),TA=require("fs");var oF=de(Ip());function Ha(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ni(e){return Ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ni(e)}function $a(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ua(e,t){if(t&&(Ni(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $a(e)}function Xr(e){return Xr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xr(e)}function Qt(e,t){return Qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qt(e,t)}function Ga(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qt(e,t)}function Wa(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Va(){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 Cn(e,t,r){return Va()?Cn=Reflect.construct.bind():Cn=function(i,s,o){var u=[null];u.push.apply(u,s);var a=Function.bind.apply(i,u),c=new a;return o&&Qt(c,o.prototype),c},Cn.apply(null,arguments)}function Mi(e){var t=typeof Map=="function"?new Map:void 0;return Mi=function(n){if(n===null||!Wa(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return Cn(n,arguments,Xr(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Qt(i,n)},Mi(e)}var Dc=de(Zp()),uo=de(require("path")),ao=de(hg()),uF=function(e){Ga(t,e);function t(r){var n;return Ha(this,t),n=Ua(this,Xr(t).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return t}(Mi(Error));function aF(e,t){try{var r=ao.default.readJsonSync(uo.default.join(e,"package.json"));if(t.current===void 0&&(t.current=e),r.workspaces||r.bolt)return e}catch(n){if(n.code!=="ENOENT")throw n}}function cF(e){try{var t=ao.default.readJsonSync(uo.default.join(e,"lerna.json"));if(t.useWorkspaces!==!0)return e}catch(r){if(r.code!=="ENOENT")throw r}}function lF(e){var t=ao.default.existsSync(uo.default.join(e,"pnpm-workspace.yaml"));if(t)return e}function pg(e){var t={current:void 0},r=(0,Dc.sync)(function(n){return[cF(n),aF(n,t),lF(n)].find(function(i){return i})},{cwd:e,type:"directory"});if(t.current===void 0)throw new uF(e);return r===void 0?t.current:r}var fF=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,hF=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,pF=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,xc={Space_Separator:fF,ID_Start:hF,ID_Continue:pF},De={isSpaceSeparator(e){return typeof e=="string"&&xc.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||xc.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||xc.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},Ac,Ze,tr,lo,Sr,Ot,Oe,Fc,Zi,dF=function(t,r){Ac=String(t),Ze="start",tr=[],lo=0,Sr=1,Ot=0,Oe=void 0,Fc=void 0,Zi=void 0;do Oe=mF(),EF[Ze]();while(Oe.type!=="eof");return typeof r=="function"?wc({"":Zi},"",r):Zi};function wc(e,t,r){let n=e[t];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let i=0;i<n.length;i++){let s=String(i),o=wc(n,s,r);o===void 0?delete n[s]:Object.defineProperty(n,s,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(let i in n){let s=wc(n,i,r);s===void 0?delete n[i]:Object.defineProperty(n,i,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(e,t,n)}var Q,Z,Ji,er,ee;function mF(){for(Q="default",Z="",Ji=!1,er=1;;){ee=rr();let e=mg[Q]();if(e)return e}}function rr(){if(Ac[lo])return String.fromCodePoint(Ac.codePointAt(lo))}function F(){let e=rr();return e===`
|
|
30
|
+
`).reduce(E6,Object.create(null)),E6=(e,t)=>{let r=parseInt(t,10);if(r!==Buffer.byteLength(t)+1)return e;t=t.slice((r+" ").length);let n=t.split("="),i=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return e;let s=n.join("=");return e[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,e};Mx.exports=Os});var bi=m((qq,qx)=>{qx.exports=e=>{let t=e.length-1,r=-1;for(;t>-1&&e.charAt(t)==="/";)r=t,t--;return r===-1?e:e.slice(0,r)}});var Xu=m((jq,jx)=>{"use strict";jx.exports=e=>class extends e{warn(t,r,n={}){this.file&&(n.file=this.file),this.cwd&&(n.cwd=this.cwd),n.code=r instanceof Error&&r.code||t,n.tarCode=t,!this.strict&&n.recoverable!==!1?(r instanceof Error&&(n=Object.assign(r,n),r=r.message),this.emit("warn",n.tarCode,r,n)):r instanceof Error?this.emit("error",Object.assign(r,n)):this.emit("error",Object.assign(new Error(`${t}: ${r}`),n))}}});var d0=m(($q,Hx)=>{"use strict";var Ju=["|","<",">","?",":"],p0=Ju.map(e=>String.fromCharCode(61440+e.charCodeAt(0))),_6=new Map(Ju.map((e,t)=>[e,p0[t]])),v6=new Map(p0.map((e,t)=>[e,Ju[t]]));Hx.exports={encode:e=>Ju.reduce((t,r)=>t.split(r).join(_6.get(r)),e),decode:e=>p0.reduce((t,r)=>t.split(r).join(v6.get(r)),e)}});var m0=m((Uq,Ux)=>{var{isAbsolute:b6,parse:$x}=require("path").win32;Ux.exports=e=>{let t="",r=$x(e);for(;b6(e)||r.root;){let n=e.charAt(0)==="/"&&e.slice(0,4)!=="//?/"?"/":r.root;e=e.slice(n.length),t+=n,r=$x(e)}return[t,e]}});var Wx=m((Gq,Gx)=>{"use strict";Gx.exports=(e,t,r)=>(e&=4095,r&&(e=(e|384)&-19),t&&(e&256&&(e|=64),e&32&&(e|=8),e&4&&(e|=1)),e)});var A0=m((Yq,s2)=>{"use strict";var Zx=Mu(),Qx=Ku(),e2=vi(),Vt=require("fs"),Vx=require("path"),Wt=Ei(),D6=bi(),t2=(e,t)=>t?(e=Wt(e).replace(/^\.(\/|$)/,""),D6(t)+"/"+e):Wt(e),x6=16*1024*1024,Yx=Symbol("process"),zx=Symbol("file"),Kx=Symbol("directory"),y0=Symbol("symlink"),Xx=Symbol("hardlink"),ks=Symbol("header"),Zu=Symbol("read"),E0=Symbol("lstat"),Qu=Symbol("onlstat"),_0=Symbol("onread"),v0=Symbol("onreadlink"),b0=Symbol("openfile"),D0=Symbol("onopenfile"),Hr=Symbol("close"),ea=Symbol("mode"),x0=Symbol("awaitDrain"),g0=Symbol("ondrain"),Yt=Symbol("prefix"),Jx=Symbol("hadError"),r2=Xu(),S6=d0(),n2=m0(),i2=Wx(),ta=r2(class extends Zx{constructor(t,r){if(r=r||{},super(r),typeof t!="string")throw new TypeError("path is required");this.path=Wt(t),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||x6,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Wt(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?Wt(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=n2(this.path);i&&(this.path=s,n=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=S6.decode(this.path.replace(/\\/g,"/")),t=t.replace(/\\/g,"/")),this.absolute=Wt(r.absolute||Vx.resolve(this.cwd,t)),this.path===""&&(this.path="./"),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.statCache.has(this.absolute)?this[Qu](this.statCache.get(this.absolute)):this[E0]()}emit(t,...r){return t==="error"&&(this[Jx]=!0),super.emit(t,...r)}[E0](){Vt.lstat(this.absolute,(t,r)=>{if(t)return this.emit("error",t);this[Qu](r)})}[Qu](t){this.statCache.set(this.absolute,t),this.stat=t,t.isFile()||(t.size=0),this.type=w6(t),this.emit("stat",t),this[Yx]()}[Yx](){switch(this.type){case"File":return this[zx]();case"Directory":return this[Kx]();case"SymbolicLink":return this[y0]();default:return this.end()}}[ea](t){return i2(t,this.type==="Directory",this.portable)}[Yt](t){return t2(t,this.prefix)}[ks](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new e2({path:this[Yt](this.path),linkpath:this.type==="Link"?this[Yt](this.linkpath):this.linkpath,mode:this[ea](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 Qx({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[Yt](this.path),linkpath:this.type==="Link"?this[Yt](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)}[Kx](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[ks](),this.end()}[y0](){Vt.readlink(this.absolute,(t,r)=>{if(t)return this.emit("error",t);this[v0](r)})}[v0](t){this.linkpath=Wt(t),this[ks](),this.end()}[Xx](t){this.type="Link",this.linkpath=Wt(Vx.relative(this.cwd,t)),this.stat.size=0,this[ks](),this.end()}[zx](){if(this.stat.nlink>1){let t=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(t)){let r=this.linkCache.get(t);if(r.indexOf(this.cwd)===0)return this[Xx](r)}this.linkCache.set(t,this.absolute)}if(this[ks](),this.stat.size===0)return this.end();this[b0]()}[b0](){Vt.open(this.absolute,"r",(t,r)=>{if(t)return this.emit("error",t);this[D0](r)})}[D0](t){if(this.fd=t,this[Jx])return this[Hr]();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[Zu]()}[Zu](){let{fd:t,buf:r,offset:n,length:i,pos:s}=this;Vt.read(t,r,n,i,s,(o,u)=>{if(o)return this[Hr](()=>this.emit("error",o));this[_0](u)})}[Hr](t){Vt.close(this.fd,t)}[_0](t){if(t<=0&&this.remain>0){let i=new Error("encountered unexpected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Hr](()=>this.emit("error",i))}if(t>this.remain){let i=new Error("did not encounter expected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Hr](()=>this.emit("error",i))}if(t===this.remain)for(let i=t;i<this.length&&t<this.blockRemain;i++)this.buf[i+this.offset]=0,t++,this.remain++;let r=this.offset===0&&t===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+t);this.write(r)?this[g0]():this[x0](()=>this[g0]())}[x0](t){this.once("drain",t)}write(t){if(this.blockRemain<t.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=t.length,this.blockRemain-=t.length,this.pos+=t.length,this.offset+=t.length,super.write(t)}[g0](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Hr](t=>t?this.emit("error",t):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[Zu]()}}),S0=class extends ta{[E0](){this[Qu](Vt.lstatSync(this.absolute))}[y0](){this[v0](Vt.readlinkSync(this.absolute))}[b0](){this[D0](Vt.openSync(this.absolute,"r"))}[Zu](){let t=!0;try{let{fd:r,buf:n,offset:i,length:s,pos:o}=this,u=Vt.readSync(r,n,i,s,o);this[_0](u),t=!1}finally{if(t)try{this[Hr](()=>{})}catch{}}}[x0](t){t()}[Hr](t){Vt.closeSync(this.fd),t()}},A6=r2(class extends Zx{constructor(t,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=t,this.type=t.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Wt(t.path),this.mode=this[ea](t.mode),this.uid=this.portable?null:t.uid,this.gid=this.portable?null:t.gid,this.uname=this.portable?null:t.uname,this.gname=this.portable?null:t.gname,this.size=t.size,this.mtime=this.noMtime?null:r.mtime||t.mtime,this.atime=this.portable?null:t.atime,this.ctime=this.portable?null:t.ctime,this.linkpath=Wt(t.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=n2(this.path);i&&(this.path=s,n=i)}this.remain=t.size,this.blockRemain=t.startBlockSize,this.header=new e2({path:this[Yt](this.path),linkpath:this.type==="Link"?this[Yt](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.header.encode()&&!this.noPax&&super.write(new Qx({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[Yt](this.path),linkpath:this.type==="Link"?this[Yt](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),t.pipe(this)}[Yt](t){return t2(t,this.prefix)}[ea](t){return i2(t,this.type==="Directory",this.portable)}write(t){let r=t.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(t)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});ta.Sync=S0;ta.Tar=A6;var w6=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported";s2.exports=ta});var u2=m((zq,o2)=>{"use strict";o2.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}});var w0=m((Kq,a2)=>{"use strict";a2.exports=re;re.Node=En;re.create=re;function re(e){var t=this;if(t instanceof re||(t=new re),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}re.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};re.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};re.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};re.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)F6(this,arguments[e]);return this.length};re.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)R6(this,arguments[e]);return this.length};re.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};re.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};re.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};re.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};re.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};re.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};re.prototype.map=function(e,t){t=t||this;for(var r=new re,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};re.prototype.mapReverse=function(e,t){t=t||this;for(var r=new re,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};re.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=e(r,n.value,i),n=n.next;return r};re.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=e(r,n.value,i),n=n.prev;return r};re.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};re.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};re.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new re;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(;i!==null&&n<t;n++,i=i.next)r.push(i.value);return r};re.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new re;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,i=this.tail;i!==null&&n>t;n--)i=i.prev;for(;i!==null&&n>e;n--,i=i.prev)r.push(i.value);return r};re.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(var s=[],n=0;i&&n<t;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=C6(this,i,r[n]);return s};re.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};function C6(e,t,r){var n=t===e.head?new En(r,null,t,e):new En(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function F6(e,t){e.tail=new En(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function R6(e,t){e.head=new En(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function En(e,t,r,n){if(!(this instanceof En))return new En(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{u2()(re)}catch{}});var la=m((Jq,m2)=>{"use strict";var aa=class{constructor(t,r){this.path=t||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},T6=Mu(),O6=i0(),k6=Yu(),I0=A0(),B6=I0.Sync,P6=I0.Tar,I6=w0(),c2=Buffer.alloc(1024),ia=Symbol("onStat"),ra=Symbol("ended"),zt=Symbol("queue"),Di=Symbol("current"),_n=Symbol("process"),na=Symbol("processing"),l2=Symbol("processJob"),Kt=Symbol("jobs"),C0=Symbol("jobDone"),sa=Symbol("addFSEntry"),f2=Symbol("addTarEntry"),O0=Symbol("stat"),k0=Symbol("readdir"),oa=Symbol("onreaddir"),ua=Symbol("pipe"),h2=Symbol("entry"),F0=Symbol("entryOpt"),B0=Symbol("writeEntryClass"),d2=Symbol("write"),R0=Symbol("ondrain"),ca=require("fs"),p2=require("path"),L6=Xu(),T0=Ei(),L0=L6(class extends T6{constructor(t){super(t),t=t||Object.create(null),this.opt=t,this.file=t.file||"",this.cwd=t.cwd||process.cwd(),this.maxReadSize=t.maxReadSize,this.preservePaths=!!t.preservePaths,this.strict=!!t.strict,this.noPax=!!t.noPax,this.prefix=T0(t.prefix||""),this.linkCache=t.linkCache||new Map,this.statCache=t.statCache||new Map,this.readdirCache=t.readdirCache||new Map,this[B0]=I0,typeof t.onwarn=="function"&&this.on("warn",t.onwarn),this.portable=!!t.portable,this.zip=null,t.gzip?(typeof t.gzip!="object"&&(t.gzip={}),this.portable&&(t.gzip.portable=!0),this.zip=new O6.Gzip(t.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[R0]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[R0]),this.noDirRecurse=!!t.noDirRecurse,this.follow=!!t.follow,this.noMtime=!!t.noMtime,this.mtime=t.mtime||null,this.filter=typeof t.filter=="function"?t.filter:r=>!0,this[zt]=new I6,this[Kt]=0,this.jobs=+t.jobs||4,this[na]=!1,this[ra]=!1}[d2](t){return super.write(t)}add(t){return this.write(t),this}end(t){return t&&this.write(t),this[ra]=!0,this[_n](),this}write(t){if(this[ra])throw new Error("write after end");return t instanceof k6?this[f2](t):this[sa](t),this.flowing}[f2](t){let r=T0(p2.resolve(this.cwd,t.path));if(!this.filter(t.path,t))t.resume();else{let n=new aa(t.path,r,!1);n.entry=new P6(t,this[F0](n)),n.entry.on("end",i=>this[C0](n)),this[Kt]+=1,this[zt].push(n)}this[_n]()}[sa](t){let r=T0(p2.resolve(this.cwd,t));this[zt].push(new aa(t,r)),this[_n]()}[O0](t){t.pending=!0,this[Kt]+=1;let r=this.follow?"stat":"lstat";ca[r](t.absolute,(n,i)=>{t.pending=!1,this[Kt]-=1,n?this.emit("error",n):this[ia](t,i)})}[ia](t,r){this.statCache.set(t.absolute,r),t.stat=r,this.filter(t.path,r)||(t.ignore=!0),this[_n]()}[k0](t){t.pending=!0,this[Kt]+=1,ca.readdir(t.absolute,(r,n)=>{if(t.pending=!1,this[Kt]-=1,r)return this.emit("error",r);this[oa](t,n)})}[oa](t,r){this.readdirCache.set(t.absolute,r),t.readdir=r,this[_n]()}[_n](){if(!this[na]){this[na]=!0;for(let t=this[zt].head;t!==null&&this[Kt]<this.jobs;t=t.next)if(this[l2](t.value),t.value.ignore){let r=t.next;this[zt].removeNode(t),t.next=r}this[na]=!1,this[ra]&&!this[zt].length&&this[Kt]===0&&(this.zip?this.zip.end(c2):(super.write(c2),super.end()))}}get[Di](){return this[zt]&&this[zt].head&&this[zt].head.value}[C0](t){this[zt].shift(),this[Kt]-=1,this[_n]()}[l2](t){if(!t.pending){if(t.entry){t===this[Di]&&!t.piped&&this[ua](t);return}if(t.stat||(this.statCache.has(t.absolute)?this[ia](t,this.statCache.get(t.absolute)):this[O0](t)),!!t.stat&&!t.ignore&&!(!this.noDirRecurse&&t.stat.isDirectory()&&!t.readdir&&(this.readdirCache.has(t.absolute)?this[oa](t,this.readdirCache.get(t.absolute)):this[k0](t),!t.readdir))){if(t.entry=this[h2](t),!t.entry){t.ignore=!0;return}t===this[Di]&&!t.piped&&this[ua](t)}}}[F0](t){return{onwarn:(r,n,i)=>this.warn(r,n,i),noPax:this.noPax,cwd:this.cwd,absolute:t.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}}[h2](t){this[Kt]+=1;try{return new this[B0](t.path,this[F0](t)).on("end",()=>this[C0](t)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[R0](){this[Di]&&this[Di].entry&&this[Di].entry.resume()}[ua](t){t.piped=!0,t.readdir&&t.readdir.forEach(i=>{let s=t.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[sa](o+i)});let r=t.entry,n=this.zip;n?r.on("data",i=>{n.write(i)||r.pause()}):r.on("data",i=>{super.write(i)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),P0=class extends L0{constructor(t){super(t),this[B0]=B6}pause(){}resume(){}[O0](t){let r=this.follow?"statSync":"lstatSync";this[ia](t,ca[r](t.absolute))}[k0](t,r){this[oa](t,ca.readdirSync(t.absolute))}[ua](t){let r=t.entry,n=this.zip;t.readdir&&t.readdir.forEach(i=>{let s=t.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[sa](o+i)}),n?r.on("data",i=>{n.write(i)}):r.on("data",i=>{super[d2](i)})}};L0.Sync=P0;m2.exports=L0});var Ti=m(Ps=>{"use strict";var N6=$h(),M6=require("events").EventEmitter,at=require("fs"),q0=at.writev;if(!q0){let e=process.binding("fs"),t=e.FSReqWrap||e.FSReqCallback;q0=(r,n,i,s)=>{let o=(a,c)=>s(a,c,n),u=new t;u.oncomplete=o,e.writeBuffers(r,n,i,u)}}var Fi=Symbol("_autoClose"),Pt=Symbol("_close"),Bs=Symbol("_ended"),ae=Symbol("_fd"),g2=Symbol("_finished"),Ur=Symbol("_flags"),N0=Symbol("_flush"),j0=Symbol("_handleChunk"),H0=Symbol("_makeBuf"),ma=Symbol("_mode"),fa=Symbol("_needDrain"),wi=Symbol("_onerror"),Ri=Symbol("_onopen"),M0=Symbol("_onread"),Si=Symbol("_onwrite"),Gr=Symbol("_open"),gr=Symbol("_path"),vn=Symbol("_pos"),Xt=Symbol("_queue"),Ai=Symbol("_read"),y2=Symbol("_readSize"),$r=Symbol("_reading"),ha=Symbol("_remain"),E2=Symbol("_size"),pa=Symbol("_write"),xi=Symbol("_writing"),da=Symbol("_defaultFlag"),Ci=Symbol("_errored"),ga=class extends N6{constructor(t,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof t!="string")throw new TypeError("path must be a string");this[Ci]=!1,this[ae]=typeof r.fd=="number"?r.fd:null,this[gr]=t,this[y2]=r.readSize||16*1024*1024,this[$r]=!1,this[E2]=typeof r.size=="number"?r.size:1/0,this[ha]=this[E2],this[Fi]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[ae]=="number"?this[Ai]():this[Gr]()}get fd(){return this[ae]}get path(){return this[gr]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Gr](){at.open(this[gr],"r",(t,r)=>this[Ri](t,r))}[Ri](t,r){t?this[wi](t):(this[ae]=r,this.emit("open",r),this[Ai]())}[H0](){return Buffer.allocUnsafe(Math.min(this[y2],this[ha]))}[Ai](){if(!this[$r]){this[$r]=!0;let t=this[H0]();if(t.length===0)return process.nextTick(()=>this[M0](null,0,t));at.read(this[ae],t,0,t.length,null,(r,n,i)=>this[M0](r,n,i))}}[M0](t,r,n){this[$r]=!1,t?this[wi](t):this[j0](r,n)&&this[Ai]()}[Pt](){if(this[Fi]&&typeof this[ae]=="number"){let t=this[ae];this[ae]=null,at.close(t,r=>r?this.emit("error",r):this.emit("close"))}}[wi](t){this[$r]=!0,this[Pt](),this.emit("error",t)}[j0](t,r){let n=!1;return this[ha]-=t,t>0&&(n=super.write(t<r.length?r.slice(0,t):r)),(t===0||this[ha]<=0)&&(n=!1,this[Pt](),super.end()),n}emit(t,r){switch(t){case"prefinish":case"finish":break;case"drain":typeof this[ae]=="number"&&this[Ai]();break;case"error":return this[Ci]?void 0:(this[Ci]=!0,super.emit(t,r));default:return super.emit(t,r)}}},$0=class extends ga{[Gr](){let t=!0;try{this[Ri](null,at.openSync(this[gr],"r")),t=!1}finally{t&&this[Pt]()}}[Ai](){let t=!0;try{if(!this[$r]){this[$r]=!0;do{let r=this[H0](),n=r.length===0?0:at.readSync(this[ae],r,0,r.length,null);if(!this[j0](n,r))break}while(!0);this[$r]=!1}t=!1}finally{t&&this[Pt]()}}[Pt](){if(this[Fi]&&typeof this[ae]=="number"){let t=this[ae];this[ae]=null,at.closeSync(t),this.emit("close")}}},ya=class extends M6{constructor(t,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[Ci]=!1,this[xi]=!1,this[Bs]=!1,this[fa]=!1,this[Xt]=[],this[gr]=t,this[ae]=typeof r.fd=="number"?r.fd:null,this[ma]=r.mode===void 0?438:r.mode,this[vn]=typeof r.start=="number"?r.start:null,this[Fi]=typeof r.autoClose=="boolean"?r.autoClose:!0;let n=this[vn]!==null?"r+":"w";this[da]=r.flags===void 0,this[Ur]=this[da]?n:r.flags,this[ae]===null&&this[Gr]()}emit(t,r){if(t==="error"){if(this[Ci])return;this[Ci]=!0}return super.emit(t,r)}get fd(){return this[ae]}get path(){return this[gr]}[wi](t){this[Pt](),this[xi]=!0,this.emit("error",t)}[Gr](){at.open(this[gr],this[Ur],this[ma],(t,r)=>this[Ri](t,r))}[Ri](t,r){this[da]&&this[Ur]==="r+"&&t&&t.code==="ENOENT"?(this[Ur]="w",this[Gr]()):t?this[wi](t):(this[ae]=r,this.emit("open",r),this[N0]())}end(t,r){return t&&this.write(t,r),this[Bs]=!0,!this[xi]&&!this[Xt].length&&typeof this[ae]=="number"&&this[Si](null,0),this}write(t,r){return typeof t=="string"&&(t=Buffer.from(t,r)),this[Bs]?(this.emit("error",new Error("write() after end()")),!1):this[ae]===null||this[xi]||this[Xt].length?(this[Xt].push(t),this[fa]=!0,!1):(this[xi]=!0,this[pa](t),!0)}[pa](t){at.write(this[ae],t,0,t.length,this[vn],(r,n)=>this[Si](r,n))}[Si](t,r){t?this[wi](t):(this[vn]!==null&&(this[vn]+=r),this[Xt].length?this[N0]():(this[xi]=!1,this[Bs]&&!this[g2]?(this[g2]=!0,this[Pt](),this.emit("finish")):this[fa]&&(this[fa]=!1,this.emit("drain"))))}[N0](){if(this[Xt].length===0)this[Bs]&&this[Si](null,0);else if(this[Xt].length===1)this[pa](this[Xt].pop());else{let t=this[Xt];this[Xt]=[],q0(this[ae],t,this[vn],(r,n)=>this[Si](r,n))}}[Pt](){if(this[Fi]&&typeof this[ae]=="number"){let t=this[ae];this[ae]=null,at.close(t,r=>r?this.emit("error",r):this.emit("close"))}}},U0=class extends ya{[Gr](){let t;if(this[da]&&this[Ur]==="r+")try{t=at.openSync(this[gr],this[Ur],this[ma])}catch(r){if(r.code==="ENOENT")return this[Ur]="w",this[Gr]();throw r}else t=at.openSync(this[gr],this[Ur],this[ma]);this[Ri](null,t)}[Pt](){if(this[Fi]&&typeof this[ae]=="number"){let t=this[ae];this[ae]=null,at.closeSync(t),this.emit("close")}}[pa](t){let r=!0;try{this[Si](null,at.writeSync(this[ae],t,0,t.length,this[vn])),r=!1}finally{if(r)try{this[Pt]()}catch{}}}};Ps.ReadStream=ga;Ps.ReadStreamSync=$0;Ps.WriteStream=ya;Ps.WriteStreamSync=U0});var Sa=m((ej,w2)=>{"use strict";var q6=Xu(),j6=vi(),H6=require("events"),$6=w0(),U6=1024*1024,G6=Yu(),_2=Ku(),W6=i0(),{nextTick:V6}=require("process"),G0=Buffer.from([31,139]),St=Symbol("state"),bn=Symbol("writeEntry"),yr=Symbol("readEntry"),W0=Symbol("nextEntry"),v2=Symbol("processEntry"),At=Symbol("extendedHeader"),Is=Symbol("globalExtendedHeader"),Wr=Symbol("meta"),b2=Symbol("emitMeta"),pe=Symbol("buffer"),Er=Symbol("queue"),Dn=Symbol("ended"),D2=Symbol("emittedEnd"),xn=Symbol("emit"),ct=Symbol("unzip"),Ea=Symbol("consumeChunk"),_a=Symbol("consumeChunkSub"),V0=Symbol("consumeBody"),x2=Symbol("consumeMeta"),S2=Symbol("consumeHeader"),va=Symbol("consuming"),Y0=Symbol("bufferConcat"),z0=Symbol("maybeEnd"),Ls=Symbol("writing"),Vr=Symbol("aborted"),ba=Symbol("onDone"),Sn=Symbol("sawValidEntry"),Da=Symbol("sawNullBlock"),xa=Symbol("sawEOF"),A2=Symbol("closeStream"),Y6=e=>!0;w2.exports=q6(class extends H6{constructor(t){t=t||{},super(t),this.file=t.file||"",this[Sn]=null,this.on(ba,r=>{(this[St]==="begin"||this[Sn]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),t.ondone?this.on(ba,t.ondone):this.on(ba,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!t.strict,this.maxMetaEntrySize=t.maxMetaEntrySize||U6,this.filter=typeof t.filter=="function"?t.filter:Y6,this.writable=!0,this.readable=!1,this[Er]=new $6,this[pe]=null,this[yr]=null,this[bn]=null,this[St]="begin",this[Wr]="",this[At]=null,this[Is]=null,this[Dn]=!1,this[ct]=null,this[Vr]=!1,this[Da]=!1,this[xa]=!1,this.on("end",()=>this[A2]()),typeof t.onwarn=="function"&&this.on("warn",t.onwarn),typeof t.onentry=="function"&&this.on("entry",t.onentry)}[S2](t,r){this[Sn]===null&&(this[Sn]=!1);let n;try{n=new j6(t,r,this[At],this[Is])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(n.nullBlock)this[Da]?(this[xa]=!0,this[St]==="begin"&&(this[St]="header"),this[xn]("eof")):(this[Da]=!0,this[xn]("nullBlock"));else if(this[Da]=!1,!n.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n});else if(!n.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else{let i=n.type;if(/^(Symbolic)?Link$/.test(i)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(!/^(Symbolic)?Link$/.test(i)&&n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n});else{let s=this[bn]=new G6(n,this[At],this[Is]);if(!this[Sn])if(s.remain){let o=()=>{s.invalid||(this[Sn]=!0)};s.on("end",o)}else this[Sn]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[xn]("ignoredEntry",s),this[St]="ignore",s.resume()):s.size>0&&(this[Wr]="",s.on("data",o=>this[Wr]+=o),this[St]="meta"):(this[At]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[xn]("ignoredEntry",s),this[St]=s.remain?"ignore":"header",s.resume()):(s.remain?this[St]="body":(this[St]="header",s.end()),this[yr]?this[Er].push(s):(this[Er].push(s),this[W0]())))}}}[A2](){V6(()=>this.emit("close"))}[v2](t){let r=!0;return t?Array.isArray(t)?this.emit.apply(this,t):(this[yr]=t,this.emit("entry",t),t.emittedEnd||(t.on("end",n=>this[W0]()),r=!1)):(this[yr]=null,r=!1),r}[W0](){do;while(this[v2](this[Er].shift()));if(!this[Er].length){let t=this[yr];!t||t.flowing||t.size===t.remain?this[Ls]||this.emit("drain"):t.once("drain",n=>this.emit("drain"))}}[V0](t,r){let n=this[bn],i=n.blockRemain,s=i>=t.length&&r===0?t:t.slice(r,r+i);return n.write(s),n.blockRemain||(this[St]="header",this[bn]=null,n.end()),s.length}[x2](t,r){let n=this[bn],i=this[V0](t,r);return this[bn]||this[b2](n),i}[xn](t,r,n){!this[Er].length&&!this[yr]?this.emit(t,r,n):this[Er].push([t,r,n])}[b2](t){switch(this[xn]("meta",this[Wr]),t.type){case"ExtendedHeader":case"OldExtendedHeader":this[At]=_2.parse(this[Wr],this[At],!1);break;case"GlobalExtendedHeader":this[Is]=_2.parse(this[Wr],this[Is],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[At]=this[At]||Object.create(null),this[At].path=this[Wr].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[At]=this[At]||Object.create(null),this[At].linkpath=this[Wr].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+t.type)}}abort(t){this[Vr]=!0,this.emit("abort",t),this.warn("TAR_ABORT",t,{recoverable:!1})}write(t){if(this[Vr])return;if(this[ct]===null&&t){if(this[pe]&&(t=Buffer.concat([this[pe],t]),this[pe]=null),t.length<G0.length)return this[pe]=t,!0;for(let n=0;this[ct]===null&&n<G0.length;n++)t[n]!==G0[n]&&(this[ct]=!1);if(this[ct]===null){let n=this[Dn];this[Dn]=!1,this[ct]=new W6.Unzip,this[ct].on("data",s=>this[Ea](s)),this[ct].on("error",s=>this.abort(s)),this[ct].on("end",s=>{this[Dn]=!0,this[Ea]()}),this[Ls]=!0;let i=this[ct][n?"end":"write"](t);return this[Ls]=!1,i}}this[Ls]=!0,this[ct]?this[ct].write(t):this[Ea](t),this[Ls]=!1;let r=this[Er].length?!1:this[yr]?this[yr].flowing:!0;return!r&&!this[Er].length&&this[yr].once("drain",n=>this.emit("drain")),r}[Y0](t){t&&!this[Vr]&&(this[pe]=this[pe]?Buffer.concat([this[pe],t]):t)}[z0](){if(this[Dn]&&!this[D2]&&!this[Vr]&&!this[va]){this[D2]=!0;let t=this[bn];if(t&&t.blockRemain){let r=this[pe]?this[pe].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${t.blockRemain} more bytes, only ${r} available)`,{entry:t}),this[pe]&&t.write(this[pe]),t.end()}this[xn](ba)}}[Ea](t){if(this[va])this[Y0](t);else if(!t&&!this[pe])this[z0]();else{if(this[va]=!0,this[pe]){this[Y0](t);let r=this[pe];this[pe]=null,this[_a](r)}else this[_a](t);for(;this[pe]&&this[pe].length>=512&&!this[Vr]&&!this[xa];){let r=this[pe];this[pe]=null,this[_a](r)}this[va]=!1}(!this[pe]||this[Dn])&&this[z0]()}[_a](t){let r=0,n=t.length;for(;r+512<=n&&!this[Vr]&&!this[xa];)switch(this[St]){case"begin":case"header":this[S2](t,r),r+=512;break;case"ignore":case"body":r+=this[V0](t,r);break;case"meta":r+=this[x2](t,r);break;default:throw new Error("invalid state: "+this[St])}r<n&&(this[pe]?this[pe]=Buffer.concat([t.slice(r),this[pe]]):this[pe]=t.slice(r))}end(t){this[Vr]||(this[ct]?this[ct].end(t):(this[Dn]=!0,this.write(t)))}})});var Aa=m((tj,T2)=>{"use strict";var z6=pi(),F2=Sa(),Oi=require("fs"),K6=Ti(),C2=require("path"),K0=bi();T2.exports=(e,t,r)=>{typeof e=="function"?(r=e,t=null,e={}):Array.isArray(e)&&(t=e,e={}),typeof t=="function"&&(r=t,t=null),t?t=Array.from(t):t=[];let n=z6(e);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return t.length&&J6(n,t),n.noResume||X6(n),n.file&&n.sync?Z6(n):n.file?Q6(n,r):R2(n)};var X6=e=>{let t=e.onentry;e.onentry=t?r=>{t(r),r.resume()}:r=>r.resume()},J6=(e,t)=>{let r=new Map(t.map(s=>[K0(s),!0])),n=e.filter,i=(s,o)=>{let u=o||C2.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):i(C2.dirname(s),u);return r.set(s,a),a};e.filter=n?(s,o)=>n(s,o)&&i(K0(s)):s=>i(K0(s))},Z6=e=>{let t=R2(e),r=e.file,n=!0,i;try{let s=Oi.statSync(r),o=e.maxReadSize||16*1024*1024;if(s.size<o)t.end(Oi.readFileSync(r));else{let u=0,a=Buffer.allocUnsafe(o);for(i=Oi.openSync(r,"r");u<s.size;){let c=Oi.readSync(i,a,0,o,u);u+=c,t.write(a.slice(0,c))}t.end()}n=!1}finally{if(n&&i)try{Oi.closeSync(i)}catch{}}},Q6=(e,t)=>{let r=new F2(e),n=e.maxReadSize||16*1024*1024,i=e.file,s=new Promise((o,u)=>{r.on("error",u),r.on("end",o),Oi.stat(i,(a,c)=>{if(a)u(a);else{let l=new K6.ReadStream(i,{readSize:n,size:c.size});l.on("error",u),l.pipe(r)}})});return t?s.then(t,t):s},R2=e=>new F2(e)});var L2=m((rj,I2)=>{"use strict";var eL=pi(),wa=la(),O2=Ti(),k2=Aa(),B2=require("path");I2.exports=(e,t,r)=>{if(typeof t=="function"&&(r=t),Array.isArray(e)&&(t=e,e={}),!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);let n=eL(e);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return n.file&&n.sync?tL(n,t):n.file?rL(n,t,r):n.sync?nL(n,t):iL(n,t)};var tL=(e,t)=>{let r=new wa.Sync(e),n=new O2.WriteStreamSync(e.file,{mode:e.mode||438});r.pipe(n),P2(r,t)},rL=(e,t,r)=>{let n=new wa(e),i=new O2.WriteStream(e.file,{mode:e.mode||438});n.pipe(i);let s=new Promise((o,u)=>{i.on("error",u),i.on("close",o),n.on("error",u)});return X0(n,t),r?s.then(r,r):s},P2=(e,t)=>{t.forEach(r=>{r.charAt(0)==="@"?k2({file:B2.resolve(e.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>e.add(n)}):e.add(r)}),e.end()},X0=(e,t)=>{for(;t.length;){let r=t.shift();if(r.charAt(0)==="@")return k2({file:B2.resolve(e.cwd,r.slice(1)),noResume:!0,onentry:n=>e.add(n)}).then(n=>X0(e,t));e.add(r)}e.end()},nL=(e,t)=>{let r=new wa.Sync(e);return P2(r,t),r},iL=(e,t)=>{let r=new wa(e);return X0(r,t),r}});var J0=m((nj,U2)=>{"use strict";var sL=pi(),N2=la(),gt=require("fs"),M2=Ti(),q2=Aa(),j2=require("path"),H2=vi();U2.exports=(e,t,r)=>{let n=sL(e);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");return t=Array.from(t),n.sync?oL(n,t):aL(n,t,r)};var oL=(e,t)=>{let r=new N2.Sync(e),n=!0,i,s;try{try{i=gt.openSync(e.file,"r+")}catch(a){if(a.code==="ENOENT")i=gt.openSync(e.file,"w+");else throw a}let o=gt.fstatSync(i),u=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let l=0,f=0;l<512;l+=f){if(f=gt.readSync(i,u,l,u.length-l,s+l),s===0&&u[0]===31&&u[1]===139)throw new Error("cannot append to compressed archives");if(!f)break e}let a=new H2(u);if(!a.cksumValid)break;let c=512*Math.ceil(a.size/512);if(s+c+512>o.size)break;s+=c,e.mtimeCache&&e.mtimeCache.set(a.path,a.mtime)}n=!1,uL(e,r,s,i,t)}finally{if(n)try{gt.closeSync(i)}catch{}}},uL=(e,t,r,n,i)=>{let s=new M2.WriteStreamSync(e.file,{fd:n,start:r});t.pipe(s),cL(t,i)},aL=(e,t,r)=>{t=Array.from(t);let n=new N2(e),i=(o,u,a)=>{let c=(_,g)=>{_?gt.close(o,v=>a(_)):a(null,g)},l=0;if(u===0)return c(null,0);let f=0,h=Buffer.alloc(512),E=(_,g)=>{if(_)return c(_);if(f+=g,f<512&&g)return gt.read(o,h,f,h.length-f,l+f,E);if(l===0&&h[0]===31&&h[1]===139)return c(new Error("cannot append to compressed archives"));if(f<512)return c(null,l);let v=new H2(h);if(!v.cksumValid)return c(null,l);let D=512*Math.ceil(v.size/512);if(l+D+512>u||(l+=D+512,l>=u))return c(null,l);e.mtimeCache&&e.mtimeCache.set(v.path,v.mtime),f=0,gt.read(o,h,0,512,l,E)};gt.read(o,h,0,512,l,E)},s=new Promise((o,u)=>{n.on("error",u);let a="r+",c=(l,f)=>{if(l&&l.code==="ENOENT"&&a==="r+")return a="w+",gt.open(e.file,a,c);if(l)return u(l);gt.fstat(f,(h,E)=>{if(h)return gt.close(f,()=>u(h));i(f,E.size,(_,g)=>{if(_)return u(_);let v=new M2.WriteStream(e.file,{fd:f,start:g});n.pipe(v),v.on("error",u),v.on("close",o),$2(n,t)})})};gt.open(e.file,a,c)});return r?s.then(r,r):s},cL=(e,t)=>{t.forEach(r=>{r.charAt(0)==="@"?q2({file:j2.resolve(e.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>e.add(n)}):e.add(r)}),e.end()},$2=(e,t)=>{for(;t.length;){let r=t.shift();if(r.charAt(0)==="@")return q2({file:j2.resolve(e.cwd,r.slice(1)),noResume:!0,onentry:n=>e.add(n)}).then(n=>$2(e,t));e.add(r)}e.end()}});var W2=m((ij,G2)=>{"use strict";var lL=pi(),fL=J0();G2.exports=(e,t,r)=>{let n=lL(e);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");return t=Array.from(t),hL(n),fL(n,t,r)};var hL=e=>{let t=e.filter;e.mtimeCache||(e.mtimeCache=new Map),e.filter=t?(r,n)=>t(r,n)&&!(e.mtimeCache.get(r)>n.mtime):(r,n)=>!(e.mtimeCache.get(r)>n.mtime)}});var z2=m((sj,Y2)=>{var{promisify:V2}=require("util"),Yr=require("fs"),pL=e=>{if(!e)e={mode:511,fs:Yr};else if(typeof e=="object")e={mode:511,fs:Yr,...e};else if(typeof e=="number")e={mode:e,fs:Yr};else if(typeof e=="string")e={mode:parseInt(e,8),fs:Yr};else throw new TypeError("invalid options argument");return e.mkdir=e.mkdir||e.fs.mkdir||Yr.mkdir,e.mkdirAsync=V2(e.mkdir),e.stat=e.stat||e.fs.stat||Yr.stat,e.statAsync=V2(e.stat),e.statSync=e.statSync||e.fs.statSync||Yr.statSync,e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||Yr.mkdirSync,e};Y2.exports=pL});var X2=m((oj,K2)=>{var dL=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:mL,parse:gL}=require("path"),yL=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=mL(e),dL==="win32"){let t=/[*|"<>?:]/,{root:r}=gL(e);if(t.test(e.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e};K2.exports=yL});var tS=m((uj,eS)=>{var{dirname:J2}=require("path"),Z2=(e,t,r=void 0)=>r===t?Promise.resolve():e.statAsync(t).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?Z2(e,J2(t),t):void 0),Q2=(e,t,r=void 0)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?Q2(e,J2(t),t):void 0}};eS.exports={findMade:Z2,findMadeSync:Q2}});var ep=m((aj,nS)=>{var{dirname:rS}=require("path"),Z0=(e,t,r)=>{t.recursive=!1;let n=rS(e);return n===e?t.mkdirAsync(e,t).catch(i=>{if(i.code!=="EISDIR")throw i}):t.mkdirAsync(e,t).then(()=>r||e,i=>{if(i.code==="ENOENT")return Z0(n,t).then(s=>Z0(e,t,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return t.statAsync(e).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},Q0=(e,t,r)=>{let n=rS(e);if(t.recursive=!1,n===e)try{return t.mkdirSync(e,t)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return t.mkdirSync(e,t),r||e}catch(i){if(i.code==="ENOENT")return Q0(e,t,Q0(n,t,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!t.statSync(e).isDirectory())throw i}catch{throw i}}};nS.exports={mkdirpManual:Z0,mkdirpManualSync:Q0}});var oS=m((cj,sS)=>{var{dirname:iS}=require("path"),{findMade:EL,findMadeSync:_L}=tS(),{mkdirpManual:vL,mkdirpManualSync:bL}=ep(),DL=(e,t)=>(t.recursive=!0,iS(e)===e?t.mkdirAsync(e,t):EL(t,e).then(n=>t.mkdirAsync(e,t).then(()=>n).catch(i=>{if(i.code==="ENOENT")return vL(e,t);throw i}))),xL=(e,t)=>{if(t.recursive=!0,iS(e)===e)return t.mkdirSync(e,t);let n=_L(t,e);try{return t.mkdirSync(e,t),n}catch(i){if(i.code==="ENOENT")return bL(e,t);throw i}};sS.exports={mkdirpNative:DL,mkdirpNativeSync:xL}});var lS=m((lj,cS)=>{var uS=require("fs"),SL=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,tp=SL.replace(/^v/,"").split("."),aS=+tp[0]>10||+tp[0]==10&&+tp[1]>=12,AL=aS?e=>e.mkdir===uS.mkdir:()=>!1,wL=aS?e=>e.mkdirSync===uS.mkdirSync:()=>!1;cS.exports={useNative:AL,useNativeSync:wL}});var gS=m((fj,mS)=>{var ki=z2(),Bi=X2(),{mkdirpNative:fS,mkdirpNativeSync:hS}=oS(),{mkdirpManual:pS,mkdirpManualSync:dS}=ep(),{useNative:CL,useNativeSync:FL}=lS(),Pi=(e,t)=>(e=Bi(e),t=ki(t),CL(t)?fS(e,t):pS(e,t)),RL=(e,t)=>(e=Bi(e),t=ki(t),FL(t)?hS(e,t):dS(e,t));Pi.sync=RL;Pi.native=(e,t)=>fS(Bi(e),ki(t));Pi.manual=(e,t)=>pS(Bi(e),ki(t));Pi.nativeSync=(e,t)=>hS(Bi(e),ki(t));Pi.manualSync=(e,t)=>dS(Bi(e),ki(t));mS.exports=Pi});var xS=m((hj,DS)=>{"use strict";var wt=require("fs"),An=require("path"),TL=wt.lchown?"lchown":"chown",OL=wt.lchownSync?"lchownSync":"chownSync",ES=wt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),yS=(e,t,r)=>{try{return wt[OL](e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},kL=(e,t,r)=>{try{return wt.chownSync(e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},BL=ES?(e,t,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):wt.chown(e,t,r,n)}:(e,t,r,n)=>n,rp=ES?(e,t,r)=>{try{return yS(e,t,r)}catch(n){if(n.code!=="EISDIR")throw n;kL(e,t,r)}}:(e,t,r)=>yS(e,t,r),PL=process.version,_S=(e,t,r)=>wt.readdir(e,t,r),IL=(e,t)=>wt.readdirSync(e,t);/^v4\./.test(PL)&&(_S=(e,t,r)=>wt.readdir(e,r));var Ca=(e,t,r,n)=>{wt[TL](e,t,r,BL(e,t,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},vS=(e,t,r,n,i)=>{if(typeof t=="string")return wt.lstat(An.resolve(e,t),(s,o)=>{if(s)return i(s.code!=="ENOENT"?s:null);o.name=t,vS(e,o,r,n,i)});if(t.isDirectory())np(An.resolve(e,t.name),r,n,s=>{if(s)return i(s);let o=An.resolve(e,t.name);Ca(o,r,n,i)});else{let s=An.resolve(e,t.name);Ca(s,r,n,i)}},np=(e,t,r,n)=>{_S(e,{withFileTypes:!0},(i,s)=>{if(i){if(i.code==="ENOENT")return n();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return Ca(e,t,r,n);let o=s.length,u=null,a=c=>{if(!u){if(c)return n(u=c);if(--o===0)return Ca(e,t,r,n)}};s.forEach(c=>vS(e,c,t,r,a))})},LL=(e,t,r,n)=>{if(typeof t=="string")try{let i=wt.lstatSync(An.resolve(e,t));i.name=t,t=i}catch(i){if(i.code==="ENOENT")return;throw i}t.isDirectory()&&bS(An.resolve(e,t.name),r,n),rp(An.resolve(e,t.name),r,n)},bS=(e,t,r)=>{let n;try{n=IL(e,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return rp(e,t,r);throw i}return n&&n.length&&n.forEach(i=>LL(e,i,t,r)),rp(e,t,r)};DS.exports=np;np.sync=bS});var CS=m((pj,ip)=>{"use strict";var SS=gS(),Ct=require("fs"),Fa=require("path"),AS=xS(),It=Ei(),Ra=class extends Error{constructor(t,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=t}get name(){return"SylinkError"}},Ta=class extends Error{constructor(t,r){super(r+": Cannot cd into '"+t+"'"),this.path=t,this.code=r}get name(){return"CwdError"}},Oa=(e,t)=>e.get(It(t)),Ns=(e,t,r)=>e.set(It(t),r),NL=(e,t)=>{Ct.stat(e,(r,n)=>{(r||!n.isDirectory())&&(r=new Ta(e,r&&r.code||"ENOTDIR")),t(r)})};ip.exports=(e,t,r)=>{e=It(e);let n=t.umask,i=t.mode|448,s=(i&n)!==0,o=t.uid,u=t.gid,a=typeof o=="number"&&typeof u=="number"&&(o!==t.processUid||u!==t.processGid),c=t.preserve,l=t.unlink,f=t.cache,h=It(t.cwd),E=(v,D)=>{v?r(v):(Ns(f,e,!0),D&&a?AS(D,o,u,C=>E(C)):s?Ct.chmod(e,i,r):r())};if(f&&Oa(f,e)===!0)return E();if(e===h)return NL(e,E);if(c)return SS(e,{mode:i}).then(v=>E(null,v),E);let g=It(Fa.relative(h,e)).split("/");ka(h,g,i,f,l,h,null,E)};var ka=(e,t,r,n,i,s,o,u)=>{if(!t.length)return u(null,o);let a=t.shift(),c=It(Fa.resolve(e+"/"+a));if(Oa(n,c))return ka(c,t,r,n,i,s,o,u);Ct.mkdir(c,r,wS(c,t,r,n,i,s,o,u))},wS=(e,t,r,n,i,s,o,u)=>a=>{a?Ct.lstat(e,(c,l)=>{if(c)c.path=c.path&&It(c.path),u(c);else if(l.isDirectory())ka(e,t,r,n,i,s,o,u);else if(i)Ct.unlink(e,f=>{if(f)return u(f);Ct.mkdir(e,r,wS(e,t,r,n,i,s,o,u))});else{if(l.isSymbolicLink())return u(new Ra(e,e+"/"+t.join("/")));u(a)}}):(o=o||e,ka(e,t,r,n,i,s,o,u))},ML=e=>{let t=!1,r="ENOTDIR";try{t=Ct.statSync(e).isDirectory()}catch(n){r=n.code}finally{if(!t)throw new Ta(e,r)}};ip.exports.sync=(e,t)=>{e=It(e);let r=t.umask,n=t.mode|448,i=(n&r)!==0,s=t.uid,o=t.gid,u=typeof s=="number"&&typeof o=="number"&&(s!==t.processUid||o!==t.processGid),a=t.preserve,c=t.unlink,l=t.cache,f=It(t.cwd),h=v=>{Ns(l,e,!0),v&&u&&AS.sync(v,s,o),i&&Ct.chmodSync(e,n)};if(l&&Oa(l,e)===!0)return h();if(e===f)return ML(f),h();if(a)return h(SS.sync(e,n));let _=It(Fa.relative(f,e)).split("/"),g=null;for(let v=_.shift(),D=f;v&&(D+="/"+v);v=_.shift())if(D=It(Fa.resolve(D)),!Oa(l,D))try{Ct.mkdirSync(D,n),g=g||D,Ns(l,D,!0)}catch{let O=Ct.lstatSync(D);if(O.isDirectory()){Ns(l,D,!0);continue}else if(c){Ct.unlinkSync(D),Ct.mkdirSync(D,n),g=g||D,Ns(l,D,!0);continue}else if(O.isSymbolicLink())return new Ra(D,D+"/"+_.join("/"))}return h(g)}});var op=m((dj,FS)=>{var sp=Object.create(null),{hasOwnProperty:qL}=Object.prototype;FS.exports=e=>(qL.call(sp,e)||(sp[e]=e.normalize("NFKD")),sp[e])});var kS=m((mj,OS)=>{var RS=require("assert"),jL=op(),HL=bi(),{join:TS}=require("path"),$L=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,UL=$L==="win32";OS.exports=()=>{let e=new Map,t=new Map,r=c=>c.split("/").slice(0,-1).reduce((f,h)=>(f.length&&(h=TS(f[f.length-1],h)),f.push(h||"/"),f),[]),n=new Set,i=c=>{let l=t.get(c);if(!l)throw new Error("function does not have any path reservations");return{paths:l.paths.map(f=>e.get(f)),dirs:[...l.dirs].map(f=>e.get(f))}},s=c=>{let{paths:l,dirs:f}=i(c);return l.every(h=>h[0]===c)&&f.every(h=>h[0]instanceof Set&&h[0].has(c))},o=c=>n.has(c)||!s(c)?!1:(n.add(c),c(()=>u(c)),!0),u=c=>{if(!n.has(c))return!1;let{paths:l,dirs:f}=t.get(c),h=new Set;return l.forEach(E=>{let _=e.get(E);RS.equal(_[0],c),_.length===1?e.delete(E):(_.shift(),typeof _[0]=="function"?h.add(_[0]):_[0].forEach(g=>h.add(g)))}),f.forEach(E=>{let _=e.get(E);RS(_[0]instanceof Set),_[0].size===1&&_.length===1?e.delete(E):_[0].size===1?(_.shift(),h.add(_[0])):_[0].delete(c)}),n.delete(c),h.forEach(E=>o(E)),!0};return{check:s,reserve:(c,l)=>{c=UL?["win32 parallelization disabled"]:c.map(h=>jL(HL(TS(h))).toLowerCase());let f=new Set(c.map(h=>r(h)).reduce((h,E)=>h.concat(E)));return t.set(l,{dirs:f,paths:c}),c.forEach(h=>{let E=e.get(h);E?E.push(l):e.set(h,[l])}),f.forEach(h=>{let E=e.get(h);E?E[E.length-1]instanceof Set?E[E.length-1].add(l):E.push(new Set([l])):e.set(h,[new Set([l])])}),o(l)}}}});var IS=m((gj,PS)=>{var GL=process.env.__FAKE_PLATFORM__||process.platform,WL=GL==="win32",VL=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:YL,O_TRUNC:zL,O_WRONLY:KL,UV_FS_O_FILEMAP:BS=0}=VL.constants,XL=WL&&!!BS,JL=512*1024,ZL=BS|zL|YL|KL;PS.exports=XL?e=>e<JL?ZL:"w":()=>"w"});var mp=m((yj,KS)=>{"use strict";var QL=require("assert"),eN=Sa(),ne=require("fs"),tN=Ti(),_r=require("path"),VS=CS(),LS=d0(),rN=kS(),nN=m0(),yt=Ei(),iN=bi(),sN=op(),NS=Symbol("onEntry"),cp=Symbol("checkFs"),MS=Symbol("checkFs2"),Ia=Symbol("pruneCache"),lp=Symbol("isReusable"),Ft=Symbol("makeFs"),fp=Symbol("file"),hp=Symbol("directory"),La=Symbol("link"),qS=Symbol("symlink"),jS=Symbol("hardlink"),HS=Symbol("unsupported"),$S=Symbol("checkPath"),zr=Symbol("mkdir"),Ke=Symbol("onError"),Ba=Symbol("pending"),US=Symbol("pend"),Ii=Symbol("unpend"),up=Symbol("ended"),ap=Symbol("maybeClose"),pp=Symbol("skip"),Ms=Symbol("doChown"),qs=Symbol("uid"),js=Symbol("gid"),Hs=Symbol("checkedCwd"),YS=require("crypto"),zS=IS(),oN=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,$s=oN==="win32",uN=(e,t)=>{if(!$s)return ne.unlink(e,t);let r=e+".DELETE."+YS.randomBytes(16).toString("hex");ne.rename(e,r,n=>{if(n)return t(n);ne.unlink(r,t)})},aN=e=>{if(!$s)return ne.unlinkSync(e);let t=e+".DELETE."+YS.randomBytes(16).toString("hex");ne.renameSync(e,t),ne.unlinkSync(t)},GS=(e,t,r)=>e===e>>>0?e:t===t>>>0?t:r,WS=e=>sN(iN(yt(e))).toLowerCase(),cN=(e,t)=>{t=WS(t);for(let r of e.keys()){let n=WS(r);(n===t||n.indexOf(t+"/")===0)&&e.delete(r)}},lN=e=>{for(let t of e.keys())e.delete(t)},Us=class extends eN{constructor(t){if(t||(t={}),t.ondone=r=>{this[up]=!0,this[ap]()},super(t),this[Hs]=!1,this.reservations=rN(),this.transform=typeof t.transform=="function"?t.transform:null,this.writable=!0,this.readable=!1,this[Ba]=0,this[up]=!1,this.dirCache=t.dirCache||new Map,typeof t.uid=="number"||typeof t.gid=="number"){if(typeof t.uid!="number"||typeof t.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(t.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=t.uid,this.gid=t.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;t.preserveOwner===void 0&&typeof t.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!t.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=t.forceChown===!0,this.win32=!!t.win32||$s,this.newer=!!t.newer,this.keep=!!t.keep,this.noMtime=!!t.noMtime,this.preservePaths=!!t.preservePaths,this.unlink=!!t.unlink,this.cwd=yt(_r.resolve(t.cwd||process.cwd())),this.strip=+t.strip||0,this.processUmask=t.noChmod?0:process.umask(),this.umask=typeof t.umask=="number"?t.umask:this.processUmask,this.dmode=t.dmode||511&~this.umask,this.fmode=t.fmode||438&~this.umask,this.on("entry",r=>this[NS](r))}warn(t,r,n={}){return(t==="TAR_BAD_ARCHIVE"||t==="TAR_ABORT")&&(n.recoverable=!1),super.warn(t,r,n)}[ap](){this[up]&&this[Ba]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[$S](t){if(this.strip){let r=yt(t.path).split("/");if(r.length<this.strip)return!1;if(t.path=r.slice(this.strip).join("/"),t.type==="Link"){let n=yt(t.linkpath).split("/");if(n.length>=this.strip)t.linkpath=n.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=yt(t.path),n=r.split("/");if(n.includes("..")||$s&&/^[a-z]:\.\.$/i.test(n[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:t,path:r}),!1;let[i,s]=nN(r);i&&(t.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:t,path:r}))}if(_r.isAbsolute(t.path)?t.absolute=yt(_r.resolve(t.path)):t.absolute=yt(_r.resolve(this.cwd,t.path)),!this.preservePaths&&t.absolute.indexOf(this.cwd+"/")!==0&&t.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:t,path:yt(t.path),resolvedPath:t.absolute,cwd:this.cwd}),!1;if(t.absolute===this.cwd&&t.type!=="Directory"&&t.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=_r.win32.parse(t.absolute);t.absolute=r+LS.encode(t.absolute.slice(r.length));let{root:n}=_r.win32.parse(t.path);t.path=n+LS.encode(t.path.slice(n.length))}return!0}[NS](t){if(!this[$S](t))return t.resume();switch(QL.equal(typeof t.absolute,"string"),t.type){case"Directory":case"GNUDumpDir":t.mode&&(t.mode=t.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[cp](t);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[HS](t)}}[Ke](t,r){t.name==="CwdError"?this.emit("error",t):(this.warn("TAR_ENTRY_ERROR",t,{entry:r}),this[Ii](),r.resume())}[zr](t,r,n){VS(yt(t),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},n)}[Ms](t){return this.forceChown||this.preserveOwner&&(typeof t.uid=="number"&&t.uid!==this.processUid||typeof t.gid=="number"&&t.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[qs](t){return GS(this.uid,t.uid,this.processUid)}[js](t){return GS(this.gid,t.gid,this.processGid)}[fp](t,r){let n=t.mode&4095||this.fmode,i=new tN.WriteStream(t.absolute,{flags:zS(t.size),mode:n,autoClose:!1});i.on("error",a=>{i.fd&&ne.close(i.fd,()=>{}),i.write=()=>!0,this[Ke](a,t),r()});let s=1,o=a=>{if(a){i.fd&&ne.close(i.fd,()=>{}),this[Ke](a,t),r();return}--s===0&&ne.close(i.fd,c=>{c?this[Ke](c,t):this[Ii](),r()})};i.on("finish",a=>{let c=t.absolute,l=i.fd;if(t.mtime&&!this.noMtime){s++;let f=t.atime||new Date,h=t.mtime;ne.futimes(l,f,h,E=>E?ne.utimes(c,f,h,_=>o(_&&E)):o())}if(this[Ms](t)){s++;let f=this[qs](t),h=this[js](t);ne.fchown(l,f,h,E=>E?ne.chown(c,f,h,_=>o(_&&E)):o())}o()});let u=this.transform&&this.transform(t)||t;u!==t&&(u.on("error",a=>{this[Ke](a,t),r()}),t.pipe(u)),u.pipe(i)}[hp](t,r){let n=t.mode&4095||this.dmode;this[zr](t.absolute,n,i=>{if(i){this[Ke](i,t),r();return}let s=1,o=u=>{--s===0&&(r(),this[Ii](),t.resume())};t.mtime&&!this.noMtime&&(s++,ne.utimes(t.absolute,t.atime||new Date,t.mtime,o)),this[Ms](t)&&(s++,ne.chown(t.absolute,this[qs](t),this[js](t),o)),o()})}[HS](t){t.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${t.type}`,{entry:t}),t.resume()}[qS](t,r){this[La](t,t.linkpath,"symlink",r)}[jS](t,r){let n=yt(_r.resolve(this.cwd,t.linkpath));this[La](t,n,"link",r)}[US](){this[Ba]++}[Ii](){this[Ba]--,this[ap]()}[pp](t){this[Ii](),t.resume()}[lp](t,r){return t.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!$s}[cp](t){this[US]();let r=[t.path];t.linkpath&&r.push(t.linkpath),this.reservations.reserve(r,n=>this[MS](t,n))}[Ia](t){t.type==="SymbolicLink"?lN(this.dirCache):t.type!=="Directory"&&cN(this.dirCache,t.absolute)}[MS](t,r){this[Ia](t);let n=u=>{this[Ia](t),r(u)},i=()=>{this[zr](this.cwd,this.dmode,u=>{if(u){this[Ke](u,t),n();return}this[Hs]=!0,s()})},s=()=>{if(t.absolute!==this.cwd){let u=yt(_r.dirname(t.absolute));if(u!==this.cwd)return this[zr](u,this.dmode,a=>{if(a){this[Ke](a,t),n();return}o()})}o()},o=()=>{ne.lstat(t.absolute,(u,a)=>{if(a&&(this.keep||this.newer&&a.mtime>t.mtime)){this[pp](t),n();return}if(u||this[lp](t,a))return this[Ft](null,t,n);if(a.isDirectory()){if(t.type==="Directory"){let c=!this.noChmod&&t.mode&&(a.mode&4095)!==t.mode,l=f=>this[Ft](f,t,n);return c?ne.chmod(t.absolute,t.mode,l):l()}if(t.absolute!==this.cwd)return ne.rmdir(t.absolute,c=>this[Ft](c,t,n))}if(t.absolute===this.cwd)return this[Ft](null,t,n);uN(t.absolute,c=>this[Ft](c,t,n))})};this[Hs]?s():i()}[Ft](t,r,n){if(t){this[Ke](t,r),n();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[fp](r,n);case"Link":return this[jS](r,n);case"SymbolicLink":return this[qS](r,n);case"Directory":case"GNUDumpDir":return this[hp](r,n)}}[La](t,r,n,i){ne[n](r,t.absolute,s=>{s?this[Ke](s,t):(this[Ii](),t.resume()),i()})}},Pa=e=>{try{return[null,e()]}catch(t){return[t,null]}},dp=class extends Us{[Ft](t,r){return super[Ft](t,r,()=>{})}[cp](t){if(this[Ia](t),!this[Hs]){let s=this[zr](this.cwd,this.dmode);if(s)return this[Ke](s,t);this[Hs]=!0}if(t.absolute!==this.cwd){let s=yt(_r.dirname(t.absolute));if(s!==this.cwd){let o=this[zr](s,this.dmode);if(o)return this[Ke](o,t)}}let[r,n]=Pa(()=>ne.lstatSync(t.absolute));if(n&&(this.keep||this.newer&&n.mtime>t.mtime))return this[pp](t);if(r||this[lp](t,n))return this[Ft](null,t);if(n.isDirectory()){if(t.type==="Directory"){let o=!this.noChmod&&t.mode&&(n.mode&4095)!==t.mode,[u]=o?Pa(()=>{ne.chmodSync(t.absolute,t.mode)}):[];return this[Ft](u,t)}let[s]=Pa(()=>ne.rmdirSync(t.absolute));this[Ft](s,t)}let[i]=t.absolute===this.cwd?[]:Pa(()=>aN(t.absolute));this[Ft](i,t)}[fp](t,r){let n=t.mode&4095||this.fmode,i=u=>{let a;try{ne.closeSync(s)}catch(c){a=c}(u||a)&&this[Ke](u||a,t),r()},s;try{s=ne.openSync(t.absolute,zS(t.size),n)}catch(u){return i(u)}let o=this.transform&&this.transform(t)||t;o!==t&&(o.on("error",u=>this[Ke](u,t)),t.pipe(o)),o.on("data",u=>{try{ne.writeSync(s,u,0,u.length)}catch(a){i(a)}}),o.on("end",u=>{let a=null;if(t.mtime&&!this.noMtime){let c=t.atime||new Date,l=t.mtime;try{ne.futimesSync(s,c,l)}catch(f){try{ne.utimesSync(t.absolute,c,l)}catch{a=f}}}if(this[Ms](t)){let c=this[qs](t),l=this[js](t);try{ne.fchownSync(s,c,l)}catch(f){try{ne.chownSync(t.absolute,c,l)}catch{a=a||f}}}i(a)})}[hp](t,r){let n=t.mode&4095||this.dmode,i=this[zr](t.absolute,n);if(i){this[Ke](i,t),r();return}if(t.mtime&&!this.noMtime)try{ne.utimesSync(t.absolute,t.atime||new Date,t.mtime)}catch{}if(this[Ms](t))try{ne.chownSync(t.absolute,this[qs](t),this[js](t))}catch{}r(),t.resume()}[zr](t,r){try{return VS.sync(yt(t),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(n){return n}}[La](t,r,n,i){try{ne[n+"Sync"](r,t.absolute),i(),t.resume()}catch(s){return this[Ke](s,t)}}};Us.Sync=dp;KS.exports=Us});var eA=m((Ej,QS)=>{"use strict";var fN=pi(),Na=mp(),JS=require("fs"),ZS=Ti(),XS=require("path"),gp=bi();QS.exports=(e,t,r)=>{typeof e=="function"?(r=e,t=null,e={}):Array.isArray(e)&&(t=e,e={}),typeof t=="function"&&(r=t,t=null),t?t=Array.from(t):t=[];let n=fN(e);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return t.length&&hN(n,t),n.file&&n.sync?pN(n):n.file?dN(n,r):n.sync?mN(n):gN(n)};var hN=(e,t)=>{let r=new Map(t.map(s=>[gp(s),!0])),n=e.filter,i=(s,o)=>{let u=o||XS.parse(s).root||".",a=s===u?!1:r.has(s)?r.get(s):i(XS.dirname(s),u);return r.set(s,a),a};e.filter=n?(s,o)=>n(s,o)&&i(gp(s)):s=>i(gp(s))},pN=e=>{let t=new Na.Sync(e),r=e.file,n=JS.statSync(r),i=e.maxReadSize||16*1024*1024;new ZS.ReadStreamSync(r,{readSize:i,size:n.size}).pipe(t)},dN=(e,t)=>{let r=new Na(e),n=e.maxReadSize||16*1024*1024,i=e.file,s=new Promise((o,u)=>{r.on("error",u),r.on("close",o),JS.stat(i,(a,c)=>{if(a)u(a);else{let l=new ZS.ReadStream(i,{readSize:n,size:c.size});l.on("error",u),l.pipe(r)}})});return t?s.then(t,t):s},mN=e=>new Na.Sync(e),gN=e=>new Na(e)});var tA=m(Te=>{"use strict";Te.c=Te.create=L2();Te.r=Te.replace=J0();Te.t=Te.list=Aa();Te.u=Te.update=W2();Te.x=Te.extract=eA();Te.Pack=la();Te.Unpack=mp();Te.Parse=Sa();Te.ReadEntry=Yu();Te.WriteEntry=A0();Te.Header=vi();Te.Pax=Ku();Te.types=u0()});var oA=m((xj,sA)=>{function Rt(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.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))}sA.exports=Rt;Rt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Rt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Rt.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);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 n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};Rt.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Rt.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};Rt.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};Rt.prototype.start=Rt.prototype.try;Rt.prototype.errors=function(){return this._errors};Rt.prototype.attempts=function(){return this._attempts};Rt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(e[s]||0)+1;e[s]=o,o>=r&&(t=i,r=o)}return t}});var uA=m(wn=>{var vN=oA();wn.operation=function(e){var t=wn.timeouts(e);return new vN(t,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};wn.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<t.retries;i++)n.push(this.createTimeout(i,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(i,t)),n.sort(function(s,o){return s-o}),n};wn.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1,n=Math.round(r*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout),n};wn.wrap=function(e,t,r){if(t instanceof Array&&(r=t,t=null),!r){r=[];for(var n in e)typeof e[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=e[s];e[s]=function(a){var c=wn.operation(t),l=Array.prototype.slice.call(arguments,1),f=l.pop();l.push(function(h){c.retry(h)||(h&&(arguments[0]=c.mainError()),f.apply(this,arguments))}),c.attempt(function(){a.apply(e,l)})}.bind(e,o),e[s].options=t}}});var cA=m((Aj,aA)=>{aA.exports=uA()});var fA=m((wj,lA)=>{var bN=cA();function DN(e,t){function r(n,i){var s=t||{},o;"randomize"in s||(s.randomize=!0),o=bN.operation(s);function u(l){i(l||new Error("Aborted"))}function a(l,f){if(l.bail){u(l);return}o.retry(l)?s.onRetry&&s.onRetry(l,f):i(o.mainError())}function c(l){var f;try{f=e(u,l)}catch(h){a(h,l);return}Promise.resolve(f).then(n).catch(function(E){a(E,l)})}o.attempt(c)}return new Promise(r)}lA.exports=DN});var XN={};Ap(XN,{configs:()=>zN,default:()=>KN,rules:()=>YN});module.exports=HA(XN);var Fp="eslint-plugin-turbo",Rp="2.4.3";var vr={noUndeclaredEnvVars:"no-undeclared-env-vars"};var xp=de(require("path")),TA=require("fs");var oF=de(Ip());function Ha(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ni(e){return Ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ni(e)}function $a(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ua(e,t){if(t&&(Ni(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $a(e)}function Xr(e){return Xr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xr(e)}function Qt(e,t){return Qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qt(e,t)}function Ga(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qt(e,t)}function Wa(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Va(){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 Cn(e,t,r){return Va()?Cn=Reflect.construct.bind():Cn=function(i,s,o){var u=[null];u.push.apply(u,s);var a=Function.bind.apply(i,u),c=new a;return o&&Qt(c,o.prototype),c},Cn.apply(null,arguments)}function Mi(e){var t=typeof Map=="function"?new Map:void 0;return Mi=function(n){if(n===null||!Wa(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return Cn(n,arguments,Xr(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Qt(i,n)},Mi(e)}var Dc=de(Zp()),uo=de(require("path")),ao=de(hg()),uF=function(e){Ga(t,e);function t(r){var n;return Ha(this,t),n=Ua(this,Xr(t).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return t}(Mi(Error));function aF(e,t){try{var r=ao.default.readJsonSync(uo.default.join(e,"package.json"));if(t.current===void 0&&(t.current=e),r.workspaces||r.bolt)return e}catch(n){if(n.code!=="ENOENT")throw n}}function cF(e){try{var t=ao.default.readJsonSync(uo.default.join(e,"lerna.json"));if(t.useWorkspaces!==!0)return e}catch(r){if(r.code!=="ENOENT")throw r}}function lF(e){var t=ao.default.existsSync(uo.default.join(e,"pnpm-workspace.yaml"));if(t)return e}function pg(e){var t={current:void 0},r=(0,Dc.sync)(function(n){return[cF(n),aF(n,t),lF(n)].find(function(i){return i})},{cwd:e,type:"directory"});if(t.current===void 0)throw new uF(e);return r===void 0?t.current:r}var fF=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,hF=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,pF=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,xc={Space_Separator:fF,ID_Start:hF,ID_Continue:pF},De={isSpaceSeparator(e){return typeof e=="string"&&xc.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||xc.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||xc.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}},Ac,Ze,tr,lo,Sr,Ot,Oe,Fc,Zi,dF=function(t,r){Ac=String(t),Ze="start",tr=[],lo=0,Sr=1,Ot=0,Oe=void 0,Fc=void 0,Zi=void 0;do Oe=mF(),EF[Ze]();while(Oe.type!=="eof");return typeof r=="function"?wc({"":Zi},"",r):Zi};function wc(e,t,r){let n=e[t];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let i=0;i<n.length;i++){let s=String(i),o=wc(n,s,r);o===void 0?delete n[s]:Object.defineProperty(n,s,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(let i in n){let s=wc(n,i,r);s===void 0?delete n[i]:Object.defineProperty(n,i,{value:s,writable:!0,enumerable:!0,configurable:!0})}return r.call(e,t,n)}var Q,Z,Ji,er,ee;function mF(){for(Q="default",Z="",Ji=!1,er=1;;){ee=rr();let e=mg[Q]();if(e)return e}}function rr(){if(Ac[lo])return String.fromCodePoint(Ac.codePointAt(lo))}function F(){let e=rr();return e===`
|
|
31
31
|
`?(Sr++,Ot=0):e?Ot+=e.length:Ot++,e&&(lo+=e.length),e}var mg={default(){switch(ee){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
|
|
32
32
|
`:case"\r":case"\u2028":case"\u2029":F();return;case"/":F(),Q="comment";return;case void 0:return F(),fe("eof")}if(De.isSpaceSeparator(ee)){F();return}return mg[Ze]()},comment(){switch(ee){case"*":F(),Q="multiLineComment";return;case"/":F(),Q="singleLineComment";return}throw he(F())},multiLineComment(){switch(ee){case"*":F(),Q="multiLineCommentAsterisk";return;case void 0:throw he(F())}F()},multiLineCommentAsterisk(){switch(ee){case"*":F();return;case"/":F(),Q="default";return;case void 0:throw he(F())}F(),Q="multiLineComment"},singleLineComment(){switch(ee){case`
|
|
33
33
|
`:case"\r":case"\u2028":case"\u2029":F(),Q="default";return;case void 0:return F(),fe("eof")}F()},value(){switch(ee){case"{":case"[":return fe("punctuator",F());case"n":return F(),en("ull"),fe("null",null);case"t":return F(),en("rue"),fe("boolean",!0);case"f":return F(),en("alse"),fe("boolean",!1);case"-":case"+":F()==="-"&&(er=-1),Q="sign";return;case".":Z=F(),Q="decimalPointLeading";return;case"0":Z=F(),Q="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":Z=F(),Q="decimalInteger";return;case"I":return F(),en("nfinity"),fe("numeric",1/0);case"N":return F(),en("aN"),fe("numeric",NaN);case'"':case"'":Ji=F()==='"',Z="",Q="string";return}throw he(F())},identifierNameStartEscape(){if(ee!=="u")throw he(F());F();let e=Cc();switch(e){case"$":case"_":break;default:if(!De.isIdStartChar(e))throw dg();break}Z+=e,Q="identifierName"},identifierName(){switch(ee){case"$":case"_":case"\u200C":case"\u200D":Z+=F();return;case"\\":F(),Q="identifierNameEscape";return}if(De.isIdContinueChar(ee)){Z+=F();return}return fe("identifier",Z)},identifierNameEscape(){if(ee!=="u")throw he(F());F();let e=Cc();switch(e){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!De.isIdContinueChar(e))throw dg();break}Z+=e,Q="identifierName"},sign(){switch(ee){case".":Z=F(),Q="decimalPointLeading";return;case"0":Z=F(),Q="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":Z=F(),Q="decimalInteger";return;case"I":return F(),en("nfinity"),fe("numeric",er*(1/0));case"N":return F(),en("aN"),fe("numeric",NaN)}throw he(F())},zero(){switch(ee){case".":Z+=F(),Q="decimalPoint";return;case"e":case"E":Z+=F(),Q="decimalExponent";return;case"x":case"X":Z+=F(),Q="hexadecimal";return}return fe("numeric",er*0)},decimalInteger(){switch(ee){case".":Z+=F(),Q="decimalPoint";return;case"e":case"E":Z+=F(),Q="decimalExponent";return}if(De.isDigit(ee)){Z+=F();return}return fe("numeric",er*Number(Z))},decimalPointLeading(){if(De.isDigit(ee)){Z+=F(),Q="decimalFraction";return}throw he(F())},decimalPoint(){switch(ee){case"e":case"E":Z+=F(),Q="decimalExponent";return}if(De.isDigit(ee)){Z+=F(),Q="decimalFraction";return}return fe("numeric",er*Number(Z))},decimalFraction(){switch(ee){case"e":case"E":Z+=F(),Q="decimalExponent";return}if(De.isDigit(ee)){Z+=F();return}return fe("numeric",er*Number(Z))},decimalExponent(){switch(ee){case"+":case"-":Z+=F(),Q="decimalExponentSign";return}if(De.isDigit(ee)){Z+=F(),Q="decimalExponentInteger";return}throw he(F())},decimalExponentSign(){if(De.isDigit(ee)){Z+=F(),Q="decimalExponentInteger";return}throw he(F())},decimalExponentInteger(){if(De.isDigit(ee)){Z+=F();return}return fe("numeric",er*Number(Z))},hexadecimal(){if(De.isHexDigit(ee)){Z+=F(),Q="hexadecimalInteger";return}throw he(F())},hexadecimalInteger(){if(De.isHexDigit(ee)){Z+=F();return}return fe("numeric",er*Number(Z))},string(){switch(ee){case"\\":F(),Z+=gF();return;case'"':if(Ji)return F(),fe("string",Z);Z+=F();return;case"'":if(!Ji)return F(),fe("string",Z);Z+=F();return;case`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-turbo",
|
|
3
|
-
"version": "2.4.3
|
|
3
|
+
"version": "2.4.3",
|
|
4
4
|
"description": "ESLint plugin for Turborepo",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"turbo",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"ts-jest": "^29.2.5",
|
|
37
37
|
"tsup": "^6.2.0",
|
|
38
38
|
"typescript": "5.5.4",
|
|
39
|
-
"@turbo/tsconfig": "0.0.0",
|
|
40
|
-
"@turbo/utils": "0.0.0",
|
|
41
39
|
"@turbo/eslint-config": "0.0.0",
|
|
42
40
|
"@turbo/test-utils": "0.0.0",
|
|
43
|
-
"@turbo/
|
|
41
|
+
"@turbo/tsconfig": "0.0.0",
|
|
42
|
+
"@turbo/types": "2.4.3",
|
|
43
|
+
"@turbo/utils": "0.0.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"eslint": ">6.6.0",
|