t<=0?!0:Nu(e,`Expected to be negative (got ${t})`)})}function pBi(){return gA({test:(t,e)=>t>=0?!0:Nu(e,`Expected to be positive (got ${t})`)})}function ABi(t){return gA({test:(e,r)=>e>=t?!0:Nu(r,`Expected to be at least ${t} (got ${e})`)})}function dBi(t){return gA({test:(e,r)=>e<=t?!0:Nu(r,`Expected to be at most ${t} (got ${e})`)})}function hBi(t,e){return gA({test:(r,s)=>r>=t&&r<=e?!0:Nu(s,`Expected to be in the [${t}; ${e}] range (got ${r})`)})}function gBi(t,e){return gA({test:(r,s)=>r>=t&&r 1024&&(S+="? "),S+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Kre(t,e,y,!1,!1)&&(S+=t.dump,s+=S));t.tag=c,t.dump="{"+s+"}"}function Hki(t,e,r,s){var c="",o=t.tag,p=Object.keys(r),d,_,y,S,x,O;if(t.sortKeys===!0)p.sort();else if(typeof t.sortKeys=="function")p.sort(t.sortKeys);else if(t.sortKeys)throw new Pwe("sortKeys must be a boolean or a function");for(d=0,_=p.length;d<_;d+=1)O="",(!s||d!==0)&&(O+=ZCt(t,e)),y=p[d],S=r[y],Kre(t,e+1,y,!0,!0,!0)&&(x=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,x&&(t.dump&&Nwe===t.dump.charCodeAt(0)?O+="?":O+="? "),O+=t.dump,x&&(O+=ZCt(t,e)),Kre(t,e+1,S,!0,x)&&(t.dump&&Nwe===t.dump.charCodeAt(0)?O+=":":O+=": ",O+=t.dump,c+=O));t.tag=o,t.dump=c||"{}"}function CCr(t,e,r){var s,c,o,p,d,_;for(c=r?t.explicitTypes:t.implicitTypes,o=0,p=c.length;o tag resolver accepts not "'+_+'" style');t.dump=s}return!0}return!1}function Kre(t,e,r,s,c,o){t.tag=null,t.dump=r,CCr(t,r,!1)||CCr(t,r,!0);var p=ICr.call(t.dump);s&&(s=t.flowLevel<0||t.flowLevel>e);var d=p==="[object Object]"||p==="[object Array]",_,y;if(d&&(_=t.duplicates.indexOf(r),y=_!==-1),(t.tag!==null&&t.tag!=="?"||y||t.indent!==2&&e>0)&&(c=!1),y&&t.usedDuplicates[_])t.dump="*ref_"+_;else{if(d&&y&&!t.usedDuplicates[_]&&(t.usedDuplicates[_]=!0),p==="[object Object]")s&&Object.keys(t.dump).length!==0?(Hki(t,e,t.dump,c),y&&(t.dump="&ref_"+_+t.dump)):(qki(t,e,t.dump),y&&(t.dump="&ref_"+_+" "+t.dump));else if(p==="[object Array]"){var S=t.noArrayIndent&&e>0?e-1:e;s&&t.dump.length!==0?(Gki(t,S,t.dump,c),y&&(t.dump="&ref_"+_+t.dump)):(Uki(t,S,t.dump),y&&(t.dump="&ref_"+_+" "+t.dump))}else if(p==="[object String]")t.tag!=="?"&&Oki(t,t.dump,e,o);else{if(t.skipInvalid)return!1;throw new Pwe("unacceptable kind of an object to dump "+p)}t.tag!==null&&t.tag!=="?"&&(t.dump="!<"+t.tag+"> "+t.dump)}return!0}function jki(t,e){var r=[],s=[],c,o;for($Ct(t,r,s),c=0,o=s.length;c {function m7i(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}BDr.exports=m7i});var TDr=W((aPo,DDr)=>{var _7i=f3(),E7i=JGe(),y7i=bDr(),C7i=Object.prototype,I7i=C7i.hasOwnProperty;function v7i(t){if(!_7i(t))return y7i(t);var e=E7i(t),r=[];for(var s in t)s=="constructor"&&(e||!I7i.call(t,s))||r.push(s);return r}DDr.exports=v7i});var cne=W((cPo,kDr)=>{var w7i=cIt(),S7i=TDr(),B7i=lSe();function b7i(t){return B7i(t)?w7i(t,!0):S7i(t)}kDr.exports=b7i});var QDr=W((lPo,xDr)=>{var D7i=cz(),T7i=cne();function k7i(t){return D7i(t,T7i(t))}xDr.exports=k7i});var LDr=W((uPo,ODr)=>{var NDr=_It(),x7i=EIt(),Q7i=yIt(),N7i=CIt(),R7i=IIt(),RDr=nSe(),PDr=w9(),P7i=yDr(),F7i=sSe(),O7i=RGe(),L7i=f3(),M7i=KGe(),U7i=jGe(),FDr=vIt(),G7i=QDr();function q7i(t,e,r,s,c,o,p){var d=FDr(t,r),_=FDr(e,r),y=p.get(_);if(y){NDr(t,r,y);return}var S=o?o(d,_,r+"",t,e,p):void 0,x=S===void 0;if(x){var O=PDr(_),V=!O&&F7i(_),N=!O&&!V&&U7i(_);S=_,O||V||N?PDr(d)?S=d:P7i(d)?S=N7i(d):V?(x=!1,S=x7i(_,!0)):N?(x=!1,S=Q7i(_,!0)):S=[]:M7i(_)||RDr(_)?(S=d,RDr(d)?S=G7i(d):(!L7i(d)||O7i(d))&&(S=R7i(_))):x=!1}x&&(p.set(_,S),c(S,_,s,o,p),p.delete(_)),NDr(t,r,S)}ODr.exports=q7i});var GDr=W((fPo,UDr)=>{var H7i=OGe(),j7i=_It(),J7i=sDr(),V7i=LDr(),Y7i=f3(),W7i=cne(),z7i=vIt();function MDr(t,e,r,s,c){t!==e&&J7i(e,function(o,p){if(c||(c=new H7i),Y7i(o))V7i(t,e,p,r,MDr,s,c);else{var d=s?s(z7i(t,p),o,p+"",t,e,c):void 0;d===void 0&&(d=o),j7i(t,p,d)}},W7i)}UDr.exports=MDr});var wIt=W((pPo,qDr)=>{function K7i(t){return t}qDr.exports=K7i});var SIt=W((APo,HDr)=>{function X7i(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}HDr.exports=X7i});var BIt=W((dPo,JDr)=>{var Z7i=SIt(),jDr=Math.max;function $7i(t,e,r){return e=jDr(e===void 0?t.length-1:e,0),function(){for(var s=arguments,c=-1,o=jDr(s.length-e,0),p=Array(o);++c p)throw new Error("Overread");let x=this.libzip.HEAPU8.subarray(_,_+p),O=Buffer.from(x);if(d===0)return this.fileSources.set(e,O),O;if(r.asyncDecompress)return new Promise((V,N)=>{GQr.default.inflateRaw(O,(te,oe)=>{te?N(te):(this.fileSources.set(e,oe),V(oe))})});{let V=GQr.default.inflateRawSync(O);return this.fileSources.set(e,V),V}}finally{this.libzip.fclose(y)}}finally{this.libzip.free(_)}}async fchmodPromise(e,r){return this.chmodPromise(this.fdToPath(e,"fchmod"),r)}fchmodSync(e,r){return this.chmodSync(this.fdToPath(e,"fchmodSync"),r)}async chmodPromise(e,r){return this.chmodSync(e,r)}chmodSync(e,r){if(this.readOnly)throw ql.errors.EROFS(`chmod '${e}'`);r&=493;let s=this.resolveFilename(`chmod '${e}'`,e,!1),c=this.entries.get(s);if(typeof c>"u")throw new Error(`Assertion failed: The entry should have been registered (${s})`);let p=this.getUnixMode(c,zx.constants.S_IFREG|0)&-512|r;if(this.libzip.file.setExternalAttributes(this.zip,c,0,0,this.libzip.ZIP_OPSYS_UNIX,p<<16)===-1)throw this.makeLibzipError(this.libzip.getError(this.zip))}async fchownPromise(e,r,s){return this.chownPromise(this.fdToPath(e,"fchown"),r,s)}fchownSync(e,r,s){return this.chownSync(this.fdToPath(e,"fchownSync"),r,s)}async chownPromise(e,r,s){return this.chownSync(e,r,s)}chownSync(e,r,s){throw new Error("Unimplemented")}async renamePromise(e,r){return this.renameSync(e,r)}renameSync(e,r){throw new Error("Unimplemented")}async copyFilePromise(e,r,s){let{indexSource:c,indexDest:o,resolvedDestP:p}=this.prepareCopyFile(e,r,s),d=await this.getFileSource(c,{asyncDecompress:!0}),_=this.setFileSource(p,d);_!==o&&this.registerEntry(p,_)}copyFileSync(e,r,s=0){let{indexSource:c,indexDest:o,resolvedDestP:p}=this.prepareCopyFile(e,r,s),d=this.getFileSource(c),_=this.setFileSource(p,d);_!==o&&this.registerEntry(p,_)}prepareCopyFile(e,r,s=0){if(this.readOnly)throw ql.errors.EROFS(`copyfile '${e} -> '${r}'`);if((s&zx.constants.COPYFILE_FICLONE_FORCE)!==0)throw ql.errors.ENOSYS("unsupported clone operation",`copyfile '${e}' -> ${r}'`);let c=this.resolveFilename(`copyfile '${e} -> ${r}'`,e),o=this.entries.get(c);if(typeof o>"u")throw ql.errors.EINVAL(`copyfile '${e}' -> '${r}'`);let p=this.resolveFilename(`copyfile '${e}' -> ${r}'`,r),d=this.entries.get(p);if((s&(zx.constants.COPYFILE_EXCL|zx.constants.COPYFILE_FICLONE_FORCE))!==0&&typeof d<"u")throw ql.errors.EEXIST(`copyfile '${e}' -> '${r}'`);return{indexSource:o,resolvedDestP:p,indexDest:d}}async appendFilePromise(e,r,s){if(this.readOnly)throw ql.errors.EROFS(`open '${e}'`);return typeof s>"u"?s={flag:"a"}:typeof s=="string"?s={flag:"a",encoding:s}:typeof s.flag>"u"&&(s={flag:"a",...s}),this.writeFilePromise(e,r,s)}appendFileSync(e,r,s={}){if(this.readOnly)throw ql.errors.EROFS(`open '${e}'`);return typeof s>"u"?s={flag:"a"}:typeof s=="string"?s={flag:"a",encoding:s}:typeof s.flag>"u"&&(s={flag:"a",...s}),this.writeFileSync(e,r,s)}fdToPath(e,r){let s=this.fds.get(e)?.p;if(typeof s>"u")throw ql.errors.EBADF(r);return s}async writeFilePromise(e,r,s){let{encoding:c,mode:o,index:p,resolvedP:d}=this.prepareWriteFile(e,s);p!==void 0&&typeof s=="object"&&s.flag&&s.flag.includes("a")&&(r=Buffer.concat([await this.getFileSource(p,{asyncDecompress:!0}),Buffer.from(r)])),c!==null&&(r=r.toString(c));let _=this.setFileSource(d,r);_!==p&&this.registerEntry(d,_),o!==null&&await this.chmodPromise(d,o)}writeFileSync(e,r,s){let{encoding:c,mode:o,index:p,resolvedP:d}=this.prepareWriteFile(e,s);p!==void 0&&typeof s=="object"&&s.flag&&s.flag.includes("a")&&(r=Buffer.concat([this.getFileSource(p),Buffer.from(r)])),c!==null&&(r=r.toString(c));let _=this.setFileSource(d,r);_!==p&&this.registerEntry(d,_),o!==null&&this.chmodSync(d,o)}prepareWriteFile(e,r){if(typeof e=="number"&&(e=this.fdToPath(e,"read")),this.readOnly)throw ql.errors.EROFS(`open '${e}'`);let s=this.resolveFilename(`open '${e}'`,e);if(this.listings.has(s))throw ql.errors.EISDIR(`open '${e}'`);let c=null,o=null;typeof r=="string"?c=r:typeof r=="object"&&({encoding:c=null,mode:o=null}=r);let p=this.entries.get(s);return{encoding:c,mode:o,resolvedP:s,index:p}}async unlinkPromise(e){return this.unlinkSync(e)}unlinkSync(e){if(this.readOnly)throw ql.errors.EROFS(`unlink '${e}'`);let r=this.resolveFilename(`unlink '${e}'`,e);if(this.listings.has(r))throw ql.errors.EISDIR(`unlink '${e}'`);let s=this.entries.get(r);if(typeof s>"u")throw ql.errors.EINVAL(`unlink '${e}'`);this.deleteEntry(r,s)}async utimesPromise(e,r,s){return this.utimesSync(e,r,s)}utimesSync(e,r,s){if(this.readOnly)throw ql.errors.EROFS(`utimes '${e}'`);let c=this.resolveFilename(`utimes '${e}'`,e);this.utimesImpl(c,s)}async lutimesPromise(e,r,s){return this.lutimesSync(e,r,s)}lutimesSync(e,r,s){if(this.readOnly)throw ql.errors.EROFS(`lutimes '${e}'`);let c=this.resolveFilename(`utimes '${e}'`,e,!1);this.utimesImpl(c,s)}utimesImpl(e,r){this.listings.has(e)&&(this.entries.has(e)||this.hydrateDirectory(e));let s=this.entries.get(e);if(s===void 0)throw new Error("Unreachable");if(this.libzip.file.setMtime(this.zip,s,0,jVi(r),0)===-1)throw this.makeLibzipError(this.libzip.getError(this.zip))}async mkdirPromise(e,r){return this.mkdirSync(e,r)}mkdirSync(e,{mode:r=493,recursive:s=!1}={}){if(s)return this.mkdirpSync(e,{chmod:r});if(this.readOnly)throw ql.errors.EROFS(`mkdir '${e}'`);let c=this.resolveFilename(`mkdir '${e}'`,e);if(this.entries.has(c)||this.listings.has(c))throw ql.errors.EEXIST(`mkdir '${e}'`);this.hydrateDirectory(c),this.chmodSync(c,r)}async rmdirPromise(e,r){return this.rmdirSync(e,r)}rmdirSync(e,{recursive:r=!1}={}){if(this.readOnly)throw ql.errors.EROFS(`rmdir '${e}'`);if(r){this.removeSync(e);return}let s=this.resolveFilename(`rmdir '${e}'`,e),c=this.listings.get(s);if(!c)throw ql.errors.ENOTDIR(`rmdir '${e}'`);if(c.size>0)throw ql.errors.ENOTEMPTY(`rmdir '${e}'`);let o=this.entries.get(s);if(typeof o>"u")throw ql.errors.EINVAL(`rmdir '${e}'`);this.deleteEntry(e,o)}async rmPromise(e,r){return this.rmSync(e,r)}rmSync(e,{recursive:r=!1}={}){if(this.readOnly)throw ql.errors.EROFS(`rm '${e}'`);if(r){this.removeSync(e);return}let s=this.resolveFilename(`rm '${e}'`,e),c=this.listings.get(s);if(!c)throw ql.errors.ENOTDIR(`rm '${e}'`);if(c.size>0)throw ql.errors.ENOTEMPTY(`rm '${e}'`);let o=this.entries.get(s);if(typeof o>"u")throw ql.errors.EINVAL(`rm '${e}'`);this.deleteEntry(e,o)}hydrateDirectory(e){let r=this.libzip.dir.add(this.zip,Ad.ppath.relative(Ad.PortablePath.root,e));if(r===-1)throw this.makeLibzipError(this.libzip.getError(this.zip));return this.registerListing(e),this.registerEntry(e,r),r}async linkPromise(e,r){return this.linkSync(e,r)}linkSync(e,r){throw ql.errors.EOPNOTSUPP(`link '${e}' -> '${r}'`)}async symlinkPromise(e,r){return this.symlinkSync(e,r)}symlinkSync(e,r){if(this.readOnly)throw ql.errors.EROFS(`symlink '${e}' -> '${r}'`);let s=this.resolveFilename(`symlink '${e}' -> '${r}'`,r);if(this.listings.has(s))throw ql.errors.EISDIR(`symlink '${e}' -> '${r}'`);if(this.entries.has(s))throw ql.errors.EEXIST(`symlink '${e}' -> '${r}'`);let c=this.setFileSource(s,e);if(this.registerEntry(s,c),this.libzip.file.setExternalAttributes(this.zip,c,0,0,this.libzip.ZIP_OPSYS_UNIX,(zx.constants.S_IFLNK|511)<<16)===-1)throw this.makeLibzipError(this.libzip.getError(this.zip));this.symlinkCount+=1}async readFilePromise(e,r){typeof r=="object"&&(r=r?r.encoding:void 0);let s=await this.readFileBuffer(e,{asyncDecompress:!0});return r?s.toString(r):s}readFileSync(e,r){typeof r=="object"&&(r=r?r.encoding:void 0);let s=this.readFileBuffer(e);return r?s.toString(r):s}readFileBuffer(e,r={asyncDecompress:!1}){typeof e=="number"&&(e=this.fdToPath(e,"read"));let s=this.resolveFilename(`open '${e}'`,e);if(!this.entries.has(s)&&!this.listings.has(s))throw ql.errors.ENOENT(`open '${e}'`);if(e[e.length-1]==="/"&&!this.listings.has(s))throw ql.errors.ENOTDIR(`open '${e}'`);if(this.listings.has(s))throw ql.errors.EISDIR("read");let c=this.entries.get(s);if(c===void 0)throw new Error("Unreachable");return this.getFileSource(c,r)}async readdirPromise(e,r){return this.readdirSync(e,r)}readdirSync(e,r){let s=this.resolveFilename(`scandir '${e}'`,e);if(!this.entries.has(s)&&!this.listings.has(s))throw ql.errors.ENOENT(`scandir '${e}'`);let c=this.listings.get(s);if(!c)throw ql.errors.ENOTDIR(`scandir '${e}'`);if(r?.recursive)if(r?.withFileTypes){let o=Array.from(c,p=>Object.assign(this.statImpl("lstat",Ad.ppath.join(e,p)),{name:p,path:Ad.PortablePath.dot}));for(let p of o){if(!p.isDirectory())continue;let d=Ad.ppath.join(p.path,p.name),_=this.listings.get(Ad.ppath.join(s,d));for(let y of _)o.push(Object.assign(this.statImpl("lstat",Ad.ppath.join(e,d,y)),{name:y,path:d}))}return o}else{let o=[...c];for(let p of o){let d=this.listings.get(Ad.ppath.join(s,p));if(!(typeof d>"u"))for(let _ of d)o.push(Ad.ppath.join(p,_))}return o}else return r?.withFileTypes?Array.from(c,o=>Object.assign(this.statImpl("lstat",Ad.ppath.join(e,o)),{name:o,path:void 0})):[...c]}async readlinkPromise(e){let r=this.prepareReadlink(e);return(await this.getFileSource(r,{asyncDecompress:!0})).toString()}readlinkSync(e){let r=this.prepareReadlink(e);return this.getFileSource(r).toString()}prepareReadlink(e){let r=this.resolveFilename(`readlink '${e}'`,e,!1);if(!this.entries.has(r)&&!this.listings.has(r))throw ql.errors.ENOENT(`readlink '${e}'`);if(e[e.length-1]==="/"&&!this.listings.has(r))throw ql.errors.ENOTDIR(`open '${e}'`);if(this.listings.has(r))throw ql.errors.EINVAL(`readlink '${e}'`);let s=this.entries.get(r);if(s===void 0)throw new Error("Unreachable");if(!this.isSymbolicLink(s))throw ql.errors.EINVAL(`readlink '${e}'`);return s}async truncatePromise(e,r=0){let s=this.resolveFilename(`open '${e}'`,e),c=this.entries.get(s);if(typeof c>"u")throw ql.errors.EINVAL(`open '${e}'`);let o=await this.getFileSource(c,{asyncDecompress:!0}),p=Buffer.alloc(r,0);return o.copy(p),await this.writeFilePromise(e,p)}truncateSync(e,r=0){let s=this.resolveFilename(`open '${e}'`,e),c=this.entries.get(s);if(typeof c>"u")throw ql.errors.EINVAL(`open '${e}'`);let o=this.getFileSource(c),p=Buffer.alloc(r,0);return o.copy(p),this.writeFileSync(e,p)}async ftruncatePromise(e,r){return this.truncatePromise(this.fdToPath(e,"ftruncate"),r)}ftruncateSync(e,r){return this.truncateSync(this.fdToPath(e,"ftruncateSync"),r)}watch(e,r,s){let c;switch(typeof r){case"function":case"string":case"undefined":c=!0;break;default:({persistent:c=!0}=r);break}if(!c)return{on:()=>{},close:()=>{}};let o=setInterval(()=>{},24*60*60*1e3);return{on:()=>{},close:()=>{clearInterval(o)}}}watchFile(e,r,s){let c=Ad.ppath.resolve(Ad.PortablePath.root,e);return(0,eBt.watchFile)(this,c,r,s)}unwatchFile(e,r){let s=Ad.ppath.resolve(Ad.PortablePath.root,e);return(0,eBt.unwatchFile)(this,s,r)}};NL.ZipFS=tBt});var qQr=W(nBt=>{"use strict";Object.defineProperty(nBt,"__esModule",{value:!0});nBt.mountMemoryDrive=WVi;var JVi=bo(),RHe=oa(),VVi=JVi.__importDefault(Ze("fs")),YVi=rBt();function WVi(t,e,r=Buffer.alloc(0),s){let c=new YVi.ZipFS(r),o=x=>x===e||x.startsWith(`${e}/`)?x.slice(0,e.length):null,p=async(x,O)=>()=>c,d=(x,O)=>c,_={...t},y=new RHe.NodeFS(_),S=new RHe.MountFS({baseFs:y,getMountPoint:o,factoryPromise:p,factorySync:d,magicByte:21,maxAge:1/0,typeCheck:s?.typeCheck});return(0,RHe.patchFs)(VVi.default,new RHe.PosixFS(S)),c}});var jQr=W(yAe=>{"use strict";Object.defineProperty(yAe,"__esModule",{value:!0});yAe.mountMemoryDrive=void 0;var HQr=bo();HQr.__exportStar(MQr(),yAe);HQr.__exportStar(rBt(),yAe);var zVi=qQr();Object.defineProperty(yAe,"mountMemoryDrive",{enumerable:!0,get:function(){return zVi.mountMemoryDrive}})});var QL=W(MSe=>{"use strict";Object.defineProperty(MSe,"__esModule",{value:!0});MSe.getLibzipSync=ZVi;MSe.getLibzipPromise=$Vi;var JQr=bo(),iBt=WSt(),KVi=JQr.__importDefault(FQr()),XVi=OQr();JQr.__exportStar(jQr(),MSe);(0,iBt.setFactory)(()=>{let t=(0,KVi.default)();return(0,XVi.makeInterface)(t)});function ZVi(){return(0,iBt.getInstance)()}async function $Vi(){return(0,iBt.getInstance)()}});var VQr=W(sBt=>{"use strict";Object.defineProperty(sBt,"__esModule",{value:!0});var eYi=oa(),PHe=(Ja(),ya(rl)),tYi=USe(),FHe=class extends PHe.Command{constructor(){super(...arguments),this.cwd=PHe.Option.String("--cwd",process.cwd(),{description:"The directory to run the command in"}),this.commandName=PHe.Option.String(),this.args=PHe.Option.Proxy()}async execute(){let e=this.args.length>0?`${this.commandName} ${this.args.join(" ")}`:this.commandName;return await(0,tYi.execute)(e,[],{cwd:eYi.npath.toPortablePath(this.cwd),stdin:this.context.stdin,stdout:this.context.stdout,stderr:this.context.stderr})}};FHe.usage={description:"run a command using yarn's portable shell",details:`
+ This command will run a command using Yarn's portable shell.
+
+ Make sure to escape glob patterns, redirections, and other features that might be expanded by your own shell.
+
+ Note: To escape something from Yarn's shell, you might have to escape it twice, the first time from your own shell.
+
+ Note: Don't use this command in Yarn scripts, as Yarn's shell is automatically used.
+
+ For a list of features, visit: https://github.com/yarnpkg/berry/blob/master/packages/yarnpkg-shell/README.md.
+ `,examples:[["Run a simple command","$0 echo Hello"],["Run a command with a glob pattern","$0 echo '*.js'"],["Run a command with a redirection","$0 echo Hello World '>' hello.txt"],["Run a command with an escaped glob pattern (The double escape is needed in Unix shells)",`$0 echo '"*.js"'`],["Run a command with a variable (Double quotes are needed in Unix shells, to prevent them from expanding the variable)",'$0 "GREETING=Hello echo $GREETING World"']]};sBt.default=FHe});var YQr=W(OHe=>{"use strict";Object.defineProperty(OHe,"__esModule",{value:!0});OHe.ShellError=void 0;var oBt=class extends Error{constructor(e){super(e),this.name="ShellError"}};OHe.ShellError=oBt});var WQr=W(A3=>{"use strict";Object.defineProperty(A3,"__esModule",{value:!0});A3.fastGlobOptions=A3.micromatchOptions=void 0;A3.isGlobPattern=iYi;A3.match=sYi;A3.isBraceExpansion=oYi;var lBt=bo(),aBt=oa(),rYi=lBt.__importDefault(Sqe()),nYi=lBt.__importDefault(Ze("fs")),cBt=lBt.__importDefault(RD());A3.micromatchOptions={strictBrackets:!0};A3.fastGlobOptions={onlyDirectories:!1,onlyFiles:!1};function iYi(t){if(!cBt.default.scan(t,A3.micromatchOptions).isGlob)return!1;try{cBt.default.parse(t,A3.micromatchOptions)}catch{return!1}return!0}function sYi(t,{cwd:e,baseFs:r}){return(0,rYi.default)(t,{...A3.fastGlobOptions,cwd:aBt.npath.fromPortablePath(e),fs:(0,aBt.extendFs)(nYi.default,new aBt.PosixFS(r))})}function oYi(t){return cBt.default.scan(t,A3.micromatchOptions).isBrace}});var dBt=W(rR=>{"use strict";Object.defineProperty(rR,"__esModule",{value:!0});rR.Handle=rR.ProtectedStream=rR.Pipe=void 0;rR.makeProcess=uYi;rR.makeBuiltin=fYi;rR.start=pYi;rR.createOutputStreamsWithPrefix=AYi;var aYi=bo(),cYi=aYi.__importDefault(ype()),bz=Ze("stream"),lYi=Ze("string_decoder"),wne;(function(t){t[t.STDIN=0]="STDIN",t[t.STDOUT=1]="STDOUT",t[t.STDERR=2]="STDERR"})(wne||(rR.Pipe=wne={}));var vne=new Set;function uBt(){}function fBt(){for(let t of vne)t.kill()}function uYi(t,e,r,s){return c=>{let o=c[0]instanceof bz.Transform?"pipe":c[0],p=c[1]instanceof bz.Transform?"pipe":c[1],d=c[2]instanceof bz.Transform?"pipe":c[2],_=(0,cYi.default)(t,e,{...s,stdio:[o,p,d]});return vne.add(_),vne.size===1&&(process.on("SIGINT",uBt),process.on("SIGTERM",fBt)),c[0]instanceof bz.Transform&&c[0].pipe(_.stdin),c[1]instanceof bz.Transform&&_.stdout.pipe(c[1],{end:!1}),c[2]instanceof bz.Transform&&_.stderr.pipe(c[2],{end:!1}),{stdin:_.stdin,promise:new Promise(y=>{_.on("error",S=>{switch(vne.delete(_),vne.size===0&&(process.off("SIGINT",uBt),process.off("SIGTERM",fBt)),S.code){case"ENOENT":c[2].write(`command not found: ${t}
+`),y(127);break;case"EACCES":c[2].write(`permission denied: ${t}
+`),y(128);break;default:c[2].write(`uncaught error: ${S.message}
+`),y(1);break}}),_.on("close",S=>{vne.delete(_),vne.size===0&&(process.off("SIGINT",uBt),process.off("SIGTERM",fBt)),y(S!==null?S:129)})})}}}function fYi(t){return e=>{let r=e[0]==="pipe"?new bz.PassThrough:e[0];return{stdin:r,promise:Promise.resolve().then(()=>t({stdin:r,stdout:e[1],stderr:e[2]}))}}}var pBt=class{constructor(e){this.stream=e}close(){}get(){return this.stream}};rR.ProtectedStream=pBt;var ABt=class{constructor(){this.stream=null}close(){if(this.stream===null)throw new Error("Assertion failed: No stream attached");this.stream.end()}attach(e){this.stream=e}get(){if(this.stream===null)throw new Error("Assertion failed: No stream attached");return this.stream}},Sne=class{static start(e,{stdin:r,stdout:s,stderr:c}){let o=new Sne(null,e);return o.stdin=r,o.stdout=s,o.stderr=c,o}constructor(e,r){this.stdin=null,this.stdout=null,this.stderr=null,this.pipe=null,this.ancestor=e,this.implementation=r}pipeTo(e,r=wne.STDOUT){let s=new Sne(this,e),c=new ABt;return s.pipe=c,s.stdout=this.stdout,s.stderr=this.stderr,(r&wne.STDOUT)===wne.STDOUT?this.stdout=c:this.ancestor!==null&&(this.stderr=this.ancestor.stdout),(r&wne.STDERR)===wne.STDERR?this.stderr=c:this.ancestor!==null&&(this.stderr=this.ancestor.stderr),s}async exec(){let e=["ignore","ignore","ignore"];if(this.pipe)e[0]="pipe";else{if(this.stdin===null)throw new Error("Assertion failed: No input stream registered");e[0]=this.stdin.get()}let r;if(this.stdout===null)throw new Error("Assertion failed: No output stream registered");r=this.stdout,e[1]=r.get();let s;if(this.stderr===null)throw new Error("Assertion failed: No error stream registered");s=this.stderr,e[2]=s.get();let c=this.implementation(e);return this.pipe&&this.pipe.attach(c.stdin),await c.promise.then(o=>(r.close(),s.close(),o))}async run(){let e=[];for(let s=this;s;s=s.ancestor)e.push(s.exec());return(await Promise.all(e))[0]}};rR.Handle=Sne;function pYi(t,e){return Sne.start(t,e)}function zQr(t,e=null){let r=new bz.PassThrough,s=new lYi.StringDecoder,c="";return r.on("data",o=>{let p=s.write(o),d;do if(d=p.indexOf(`
+`),d!==-1){let _=c+p.substring(0,d);p=p.substring(d+1),c="",t(e!==null?`${e} ${_}`:_)}while(d!==-1);c+=p}),r.on("end",()=>{let o=s.end();o!==""&&t(e!==null?`${e} ${o}`:o)}),r}function AYi(t,{prefix:e}){return{stdout:zQr(r=>t.stdout.write(`${r}
+`),t.stdout.isTTY?e:null),stderr:zQr(r=>t.stderr.write(`${r}
+`),t.stderr.isTTY?e:null)}}});var USe=W(mH=>{"use strict";Object.defineProperty(mH,"__esModule",{value:!0});mH.globUtils=mH.ShellError=mH.EntryCommand=void 0;mH.execute=SYi;var mBt=bo(),RL=oa(),e3r=UN(),dYi=mBt.__importDefault(F2t()),hYi=Ze("os"),P9=Ze("stream"),gYi=Ze("timers/promises"),mYi=mBt.__importDefault(VQr());mH.EntryCommand=mYi.default;var PL=YQr();Object.defineProperty(mH,"ShellError",{enumerable:!0,get:function(){return PL.ShellError}});var _Bt=mBt.__importStar(WQr());mH.globUtils=_Bt;var hBt=dBt(),wS=dBt(),GD;(function(t){t[t.Readable=1]="Readable",t[t.Writable=2]="Writable"})(GD||(GD={}));function KQr(t,e,r){let s=new P9.PassThrough({autoDestroy:!0});switch(t){case wS.Pipe.STDIN:(e&GD.Readable)===GD.Readable&&r.stdin.pipe(s,{end:!1}),(e&GD.Writable)===GD.Writable&&r.stdin instanceof P9.Writable&&s.pipe(r.stdin,{end:!1});break;case wS.Pipe.STDOUT:(e&GD.Readable)===GD.Readable&&r.stdout.pipe(s,{end:!1}),(e&GD.Writable)===GD.Writable&&s.pipe(r.stdout,{end:!1});break;case wS.Pipe.STDERR:(e&GD.Readable)===GD.Readable&&r.stderr.pipe(s,{end:!1}),(e&GD.Writable)===GD.Writable&&s.pipe(r.stderr,{end:!1});break;default:throw new PL.ShellError(`Bad file descriptor: "${t}"`)}return s}function MHe(t,e={}){let r={...t,...e};return r.environment={...t.environment,...e.environment},r.variables={...t.variables,...e.variables},r}var _Yi=new Map([["cd",async([t=(0,hYi.homedir)(),...e],r,s)=>{let c=RL.ppath.resolve(s.cwd,RL.npath.toPortablePath(t));if(!(await r.baseFs.statPromise(c).catch(p=>{throw p.code==="ENOENT"?new PL.ShellError(`cd: no such file or directory: ${t}`):p})).isDirectory())throw new PL.ShellError(`cd: not a directory: ${t}`);return s.cwd=c,0}],["pwd",async(t,e,r)=>(r.stdout.write(`${RL.npath.fromPortablePath(r.cwd)}
+`),0)],[":",async(t,e,r)=>0],["true",async(t,e,r)=>0],["false",async(t,e,r)=>1],["exit",async([t,...e],r,s)=>s.exitCode=parseInt(t??s.variables["?"],10)],["echo",async(t,e,r)=>(r.stdout.write(`${t.join(" ")}
+`),0)],["sleep",async([t],e,r)=>{if(typeof t>"u")throw new PL.ShellError("sleep: missing operand");let s=Number(t);if(Number.isNaN(s))throw new PL.ShellError(`sleep: invalid time interval '${t}'`);return await(0,gYi.setTimeout)(1e3*s,0)}],["__ysh_run_procedure",async(t,e,r)=>{let s=r.procedures[t[0]];return await(0,wS.start)(s,{stdin:new wS.ProtectedStream(r.stdin),stdout:new wS.ProtectedStream(r.stdout),stderr:new wS.ProtectedStream(r.stderr)}).run()}],["__ysh_set_redirects",async(t,e,r)=>{let s=r.stdin,c=r.stdout,o=r.stderr,p=[],d=[],_=[],y=0;for(;t[y]!=="--";){let x=t[y++],{type:O,fd:V}=JSON.parse(x),N=we=>{switch(V){case null:case 0:p.push(we);break;default:throw new Error(`Unsupported file descriptor: "${V}"`)}},te=we=>{switch(V){case null:case 1:d.push(we);break;case 2:_.push(we);break;default:throw new Error(`Unsupported file descriptor: "${V}"`)}},oe=Number(t[y++]),le=y+oe;for(let we=y;we {let r=new INr(t),s=t.maxReadSize||16*1024*1024,c=t.file,o=new Promise((p,d)=>{r.on("error",d),r.on("end",p),GAe.stat(c,(_,y)=>{if(_)d(_);else{let S=new zzi.ReadStream(c,{readSize:s,size:y.size});S.on("error",d),S.pipe(r)}})});return e?o.then(e,e):o},vNr=t=>new INr(t)});var kNr=W((p7o,TNr)=>{"use strict";var eKi=vAe(),jje=Dje(),SNr=UAe(),BNr=Hje(),bNr=Ze("path");TNr.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let s=eKi(t);if(s.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!s.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return s.file&&s.sync?tKi(s,e):s.file?rKi(s,e,r):s.sync?nKi(s,e):iKi(s,e)};var tKi=(t,e)=>{let r=new jje.Sync(t),s=new SNr.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(s),DNr(r,e)},rKi=(t,e,r)=>{let s=new jje(t),c=new SNr.WriteStream(t.file,{mode:t.mode||438});s.pipe(c);let o=new Promise((p,d)=>{c.on("error",d),c.on("close",p),s.on("error",d)});return eDt(s,e),r?o.then(r,r):o},DNr=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?BNr({file:bNr.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:s=>t.add(s)}):t.add(r)}),t.end()},eDt=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return BNr({file:bNr.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:s=>t.add(s)}).then(s=>eDt(t,e));t.add(r)}t.end()},nKi=(t,e)=>{let r=new jje.Sync(t);return DNr(r,e),r},iKi=(t,e)=>{let r=new jje(t);return eDt(r,e),r}});var tDt=W((A7o,ONr)=>{"use strict";var sKi=vAe(),xNr=Dje(),m3=Ze("fs"),QNr=UAe(),NNr=Hje(),RNr=Ze("path"),PNr=kAe();ONr.exports=(t,e,r)=>{let s=sKi(t);if(!s.file)throw new TypeError("file is required");if(s.gzip||s.brotli||s.file.endsWith(".br")||s.file.endsWith(".tbr"))throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),s.sync?oKi(s,e):cKi(s,e,r)};var oKi=(t,e)=>{let r=new xNr.Sync(t),s=!0,c,o;try{try{c=m3.openSync(t.file,"r+")}catch(_){if(_.code==="ENOENT")c=m3.openSync(t.file,"w+");else throw _}let p=m3.fstatSync(c),d=Buffer.alloc(512);e:for(o=0;o 0&&r(d)?e>1?Q5r(d,e-1,r,s,c):J$i(c,d):s||(c[c.length]=d)}return c}N5r.exports=Q5r});var F5r=W((_Oo,P5r)=>{var Y$i=R5r();function W$i(t){var e=t==null?0:t.length;return e?Y$i(t,1):[]}P5r.exports=W$i});var rTt=W((EOo,O5r)=>{var z$i=F5r(),K$i=BIt(),X$i=bIt();function Z$i(t){return X$i(K$i(t,void 0,z$i),t+"")}O5r.exports=Z$i});var nTt=W((yOo,L5r)=>{var $$i=b5r(),ees=rTt(),tes=ees(function(t,e){return t==null?{}:$$i(t,e)});L5r.exports=tes});var M5r=W(yJe=>{"use strict";Object.defineProperty(yJe,"__esModule",{value:!0});yJe.RunInstallPleaseResolver=void 0;var iTt=Jx(),sTt=zN(),oTt=class{constructor(e){this.resolver=e}supportsDescriptor(e,r){return this.resolver.supportsDescriptor(e,r)}supportsLocator(e,r){return this.resolver.supportsLocator(e,r)}shouldPersistResolution(e,r){return this.resolver.shouldPersistResolution(e,r)}bindDescriptor(e,r,s){return this.resolver.bindDescriptor(e,r,s)}getResolutionDependencies(e,r){return this.resolver.getResolutionDependencies(e,r)}async getCandidates(e,r,s){throw new sTt.ReportError(iTt.MessageName.MISSING_LOCKFILE_ENTRY,`This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile`)}async getSatisfying(e,r,s,c){throw new sTt.ReportError(iTt.MessageName.MISSING_LOCKFILE_ENTRY,`This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile`)}async resolve(e,r){throw new sTt.ReportError(iTt.MessageName.MISSING_LOCKFILE_ENTRY,`This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile`)}};yJe.RunInstallPleaseResolver=oTt});var cTt=W(CJe=>{"use strict";Object.defineProperty(CJe,"__esModule",{value:!0});CJe.ThrowReport=void 0;var res=zN(),aTt=class extends res.Report{reportCacheHit(e){}reportCacheMiss(e){}startSectionSync(e,r){return r()}async startSectionPromise(e,r){return await r()}startTimerSync(e,r,s){return(typeof r=="function"?r:s)()}async startTimerPromise(e,r,s){return await(typeof r=="function"?r:s)()}reportSeparator(){}reportInfo(e,r){}reportWarning(e,r){}reportError(e,r){}reportProgress(e){return{...Promise.resolve().then(async()=>{for await(let{}of e);}),stop:()=>{}}}reportJson(e){}reportFold(e,r){}async finalize(){}};CJe.ThrowReport=aTt});var uTt=W(IJe=>{"use strict";Object.defineProperty(IJe,"__esModule",{value:!0});IJe.Workspace=void 0;var DBe=bo(),E3=oa(),nes=DBe.__importDefault(Sqe()),SBe=iAe(),BBe=dne(),U5r=DBe.__importStar(VN()),ies=DBe.__importStar(mz()),ses=DBe.__importStar(lH()),bBe=DBe.__importStar(FD()),lTt=class{constructor(e,{project:r}){this.workspacesCwds=new Set,this.project=r,this.cwd=e}async setup(){this.manifest=await SBe.Manifest.tryFind(this.cwd)??new SBe.Manifest,this.relativeCwd=E3.ppath.relative(this.project.cwd,this.cwd)||E3.PortablePath.dot;let e=this.manifest.name?this.manifest.name:bBe.makeIdent(null,`${this.computeCandidateName()}-${ies.makeHash(this.relativeCwd).substring(0,6)}`);this.anchoredDescriptor=bBe.makeDescriptor(e,`${BBe.WorkspaceResolver.protocol}${this.relativeCwd}`),this.anchoredLocator=bBe.makeLocator(e,`${BBe.WorkspaceResolver.protocol}${this.relativeCwd}`);let r=this.manifest.workspaceDefinitions.map(({pattern:c})=>c);if(r.length===0)return;let s=await(0,nes.default)(r,{cwd:E3.npath.fromPortablePath(this.cwd),onlyDirectories:!0,ignore:["**/node_modules","**/.git","**/.yarn"]});s.sort(),await s.reduce(async(c,o)=>{let p=E3.ppath.resolve(this.cwd,E3.npath.toPortablePath(o)),d=await E3.xfs.existsPromise(E3.ppath.join(p,"package.json"));await c,d&&this.workspacesCwds.add(p)},Promise.resolve())}get anchoredPackage(){let e=this.project.storedPackages.get(this.anchoredLocator.locatorHash);if(!e)throw new Error(`Assertion failed: Expected workspace ${bBe.prettyWorkspace(this.project.configuration,this)} (${U5r.pretty(this.project.configuration,E3.ppath.join(this.cwd,E3.Filename.manifest),U5r.Type.PATH)}) to have been resolved. Run "yarn install" to update the lockfile`);return e}accepts(e){let r=e.indexOf(":"),s=r!==-1?e.slice(0,r+1):null,c=r!==-1?e.slice(r+1):e;if(s===BBe.WorkspaceResolver.protocol&&E3.ppath.normalize(c)===this.relativeCwd||s===BBe.WorkspaceResolver.protocol&&(c==="*"||c==="^"||c==="~"))return!0;let o=ses.validRange(c);return o?s===BBe.WorkspaceResolver.protocol?o.test(this.manifest.version??"0.0.0"):this.project.configuration.get("enableTransparentWorkspaces")&&this.manifest.version!==null?o.test(this.manifest.version):!1:!1}computeCandidateName(){return this.cwd===this.project.cwd?"root-workspace":`${E3.ppath.basename(this.cwd)}`||"unnamed-workspace"}getRecursiveWorkspaceDependencies({dependencies:e=SBe.Manifest.hardDependencies}={}){let r=new Set,s=c=>{for(let o of e)for(let p of c.manifest[o].values()){let d=this.project.tryWorkspaceByDescriptor(p);d===null||r.has(d)||(r.add(d),s(d))}};return s(this),r}getRecursiveWorkspaceDependents({dependencies:e=SBe.Manifest.hardDependencies}={}){let r=new Set,s=c=>{for(let o of this.project.workspaces)e.some(d=>[...o.manifest[d].values()].some(_=>{let y=this.project.tryWorkspaceByDescriptor(_);return y!==null&&bBe.areLocatorsEqual(y.anchoredLocator,c.anchoredLocator)}))&&!r.has(o)&&(r.add(o),s(o))};return s(this),r}getRecursiveWorkspaceChildren(){let e=new Set([this]);for(let r of e)for(let s of r.workspacesCwds){let c=this.project.workspacesByCwd.get(s);c&&e.add(c)}return e.delete(this),Array.from(e)}async persistManifest(){let e={};this.manifest.exportTo(e);let r=E3.ppath.join(this.cwd,SBe.Manifest.fileName),s=`${JSON.stringify(e,null,this.manifest.indent)}
+`;await E3.xfs.changeFilePromise(r,s,{automaticNewlines:!0}),this.manifest.raw=e}};IJe.Workspace=lTt});var $5r=W(lR=>{"use strict";Object.defineProperty(lR,"__esModule",{value:!0});lR.Project=lR.PeerWarningType=lR.InstallMode=lR.LOCKFILE_VERSION=void 0;var uR=bo(),wJe=oa(),Hp=oa(),G5r=UN(),q5r=(Ja(),ya(rl)),fTt=Ze("crypto"),oes=ZDt(),pTt=uR.__importDefault(nTt()),ATt=uR.__importDefault($re()),aes=uR.__importDefault(qm()),X5r=Ze("util"),H5r=uR.__importDefault(Ze("v8")),Z5r=uR.__importDefault(Ze("zlib")),ces=DDt(),TBe=PSe(),kBe=TDt(),les=xDt(),ues=RDt(),j5r=iAe(),g1=Jx(),J5r=Awt(),Wz=zN(),fes=M5r(),V5r=JSe(),Y5r=cTt(),SJe=dne(),pes=uTt(),Aes=Vqe(),gp=uR.__importStar(VN()),Vne=uR.__importStar(mz()),Lg=uR.__importStar(p3()),des=uR.__importStar(IHe()),W5r=uR.__importStar(RBt()),hTt=uR.__importStar(lH()),El=uR.__importStar(FD()),hes=lne(),vJe=lne();lR.LOCKFILE_VERSION=Lg.parseInt(process.env.YARN_LOCKFILE_VERSION_OVERRIDE??8);var ges=3,mes=/ *, */g,z5r=/\/$/,_es=32,Ees=(0,X5r.promisify)(Z5r.default.gzip),yes=(0,X5r.promisify)(Z5r.default.gunzip),ede;(function(t){t.UpdateLockfile="update-lockfile",t.SkipBuild="skip-build"})(ede||(lR.InstallMode=ede={}));var dTt={restoreLinkersCustomData:["linkersCustomData"],restoreResolutions:["accessibleLocators","conditionalLocators","disabledLocators","optionalBuilds","storedDescriptors","storedResolutions","storedPackages","lockFileChecksum"],restoreBuildState:["skippedBuilds","storedBuildState"]},Yne;(function(t){t[t.NotProvided=0]="NotProvided",t[t.NotCompatible=1]="NotCompatible",t[t.NotCompatibleAggregate=2]="NotCompatibleAggregate"})(Yne||(lR.PeerWarningType=Yne={}));var K5r=t=>Vne.makeHash(`${ges}`,t),xBe=class{static async find(e,r){if(!e.projectCwd)throw new q5r.UsageError(`No project found in ${r}`);let s=e.projectCwd,c=r,o=null;for(;o!==e.projectCwd;){if(o=c,Hp.xfs.existsSync(Hp.ppath.join(o,Hp.Filename.manifest))){s=o;break}c=Hp.ppath.dirname(o)}let p=new xBe(e.projectCwd,{configuration:e});TBe.Configuration.telemetry?.reportProject(p.cwd),await p.setupResolutions(),await p.setupWorkspaces(),TBe.Configuration.telemetry?.reportWorkspaceCount(p.workspaces.length),TBe.Configuration.telemetry?.reportDependencyCount(p.workspaces.reduce((N,te)=>N+te.manifest.dependencies.size+te.manifest.devDependencies.size,0));let d=p.tryWorkspaceByCwd(s);if(d)return{project:p,workspace:d,locator:d.anchoredLocator};let _=await p.findLocatorForLocation(`${s}/`,{strict:!0});if(_)return{project:p,locator:_,workspace:null};let y=gp.pretty(e,p.cwd,gp.Type.PATH),S=gp.pretty(e,Hp.ppath.relative(p.cwd,s),gp.Type.PATH),x=`- If ${y} isn't intended to be a project, remove any yarn.lock and/or package.json file there.`,O=`- If ${y} is intended to be a project, it might be that you forgot to list ${S} in its workspace configuration.`,V=`- Finally, if ${y} is fine and you intend ${S} to be treated as a completely separate project (not even a workspace), create an empty yarn.lock file in it.`;throw new q5r.UsageError(`The nearest package directory (${gp.pretty(e,s,gp.Type.PATH)}) doesn't seem to be part of the project declared in ${gp.pretty(e,p.cwd,gp.Type.PATH)}.
+
+${[x,O,V].join(`
+`)}`)}constructor(e,{configuration:r}){this.resolutionAliases=new Map,this.workspaces=[],this.workspacesByCwd=new Map,this.workspacesByIdent=new Map,this.storedResolutions=new Map,this.storedDescriptors=new Map,this.storedPackages=new Map,this.storedChecksums=new Map,this.storedBuildState=new Map,this.accessibleLocators=new Set,this.conditionalLocators=new Set,this.disabledLocators=new Set,this.originalPackages=new Map,this.optionalBuilds=new Set,this.skippedBuilds=new Set,this.lockfileLastVersion=null,this.lockfileNeedsRefresh=!1,this.peerRequirements=new Map,this.peerWarnings=[],this.linkersCustomData=new Map,this.lockFileChecksum=null,this.installStateChecksum=null,this.configuration=r,this.cwd=e}async setupResolutions(){this.storedResolutions=new Map,this.storedDescriptors=new Map,this.storedPackages=new Map,this.lockFileChecksum=null;let e=Hp.ppath.join(this.cwd,Hp.Filename.lockfile),r=this.configuration.get("defaultLanguageName");if(Hp.xfs.existsSync(e)){let s=await Hp.xfs.readFilePromise(e,"utf8");this.lockFileChecksum=K5r(s);let c=(0,G5r.parseSyml)(s);if(c.__metadata){let o=c.__metadata.version,p=c.__metadata.cacheKey;this.lockfileLastVersion=o,this.lockfileNeedsRefresh=o1?Nu(s,`Expected to match exactly a single predicate (matched ${d.join(", ")})`):(p=s?.errors)===null||p===void 0||p.push(..._),!1}});ZW=class extends Error{constructor({errors:e}={}){let r="Type mismatch";if(e&&e.length>0){r+=`
+`;for(let s of e)r+=`
+- ${s}`}super(r)}};_we={missing:(t,e)=>t.has(e),undefined:(t,e,r)=>t.has(e)&&typeof r[e]<"u",nil:(t,e,r)=>t.has(e)&&r[e]!=null,falsy:(t,e,r)=>t.has(e)&&!!r[e]};(function(t){t.Forbids="Forbids",t.Requires="Requires"})(upe||(upe={}));QBi={[upe.Forbids]:{expect:!1,message:"forbids using"},[upe.Requires]:{expect:!0,message:"requires using"}}});var b2,$W=kp(()=>{tH();b2=class{constructor(){this.help=!1}static Usage(e){return e}async catch(e){throw e}async validateAndExecute(){let r=this.constructor.schema;if(Array.isArray(r)){let{isDict:c,isUnknown:o,applyCascade:p}=await Promise.resolve().then(()=>(kD(),Fx)),d=p(c(o()),r),_=[],y=[];if(!d(this,{errors:_,coercions:y}))throw hwe("Invalid option schema",_);for(let[,x]of y)x()}else if(r!=null)throw new Error("Invalid command schema");let s=await this.execute();return typeof s<"u"?s:0}};b2.isOption=dwe;b2.Default=[]});function Ox(t){Hyt&&console.log(t)}function l_r(){let t={nodes:[]};for(let e=0;esetTimeout(d,o*100))}}else await this.unlinkPromise(e)}removeSync(e,{recursive:r=!0}={}){let s;try{s=this.lstatSync(e)}catch(c){if(c.code==="ENOENT")return;throw c}if(s.isDirectory()){if(r)for(let c of this.readdirSync(e))this.removeSync(this.pathUtils.resolve(e,c));this.rmdirSync(e)}else this.unlinkSync(e)}async mkdirpPromise(e,{chmod:r,utimes:s}={}){if(e=this.resolve(e),e===this.pathUtils.dirname(e))return;let c=e.split(this.pathUtils.sep),o;for(let p=2;p<=c.length;++p){let d=c.slice(0,p).join(this.pathUtils.sep);if(!this.existsSync(d)){try{await this.mkdirPromise(d)}catch(_){if(_.code==="EEXIST")continue;throw _}if(o??=d,r!=null&&await this.chmodPromise(d,r),s!=null)await this.utimesPromise(d,s[0],s[1]);else{let _=await this.statPromise(this.pathUtils.dirname(d));await this.utimesPromise(d,_.atime,_.mtime)}}}return o}mkdirpSync(e,{chmod:r,utimes:s}={}){if(e=this.resolve(e),e===this.pathUtils.dirname(e))return;let c=e.split(this.pathUtils.sep),o;for(let p=2;p<=c.length;++p){let d=c.slice(0,p).join(this.pathUtils.sep);if(!this.existsSync(d)){try{this.mkdirSync(d)}catch(_){if(_.code==="EEXIST")continue;throw _}if(o??=d,r!=null&&this.chmodSync(d,r),s!=null)this.utimesSync(d,s[0],s[1]);else{let _=this.statSync(this.pathUtils.dirname(d));this.utimesSync(d,_.atime,_.mtime)}}}return o}async copyPromise(e,r,{baseFs:s=this,overwrite:c=!0,stableSort:o=!1,stableTime:p=!1,linkStrategy:d=null}={}){return await(0,Obi.copyPromise)(this,e,s,r,{overwrite:c,stableSort:o,stableTime:p,linkStrategy:d})}copySync(e,r,{baseFs:s=this,overwrite:c=!0}={}){let o=s.lstatSync(r),p=this.existsSync(e);if(o.isDirectory()){this.mkdirpSync(e);let _=s.readdirSync(r);for(let y of _)this.copySync(this.pathUtils.join(e,y),s.pathUtils.join(r,y),{baseFs:s,overwrite:c})}else if(o.isFile()){if(!p||c){p&&this.removeSync(e);let _=s.readFileSync(r);this.writeFileSync(e,_)}}else if(o.isSymbolicLink()){if(!p||c){p&&this.removeSync(e);let _=s.readlinkSync(r);this.symlinkSync((0,v1r.convertPath)(this.pathUtils,_),e)}}else throw new Error(`Unsupported file type (file: ${r}, mode: 0o${o.mode.toString(8).padStart(6,"0")})`);let d=o.mode&511;this.chmodSync(e,d)}async changeFilePromise(e,r,s={}){return Buffer.isBuffer(r)?this.changeFileBufferPromise(e,r,s):this.changeFileTextPromise(e,r,s)}async changeFileBufferPromise(e,r,{mode:s}={}){let c=Buffer.alloc(0);try{c=await this.readFilePromise(e)}catch{}Buffer.compare(c,r)!==0&&await this.writeFilePromise(e,r,{mode:s})}async changeFileTextPromise(e,r,{automaticNewlines:s,mode:c}={}){let o="";try{o=await this.readFilePromise(e,"utf8")}catch{}let p=s?ACt(o,r):r;o!==p&&await this.writeFilePromise(e,p,{mode:c})}changeFileSync(e,r,s={}){return Buffer.isBuffer(r)?this.changeFileBufferSync(e,r,s):this.changeFileTextSync(e,r,s)}changeFileBufferSync(e,r,{mode:s}={}){let c=Buffer.alloc(0);try{c=this.readFileSync(e)}catch{}Buffer.compare(c,r)!==0&&this.writeFileSync(e,r,{mode:s})}changeFileTextSync(e,r,{automaticNewlines:s=!1,mode:c}={}){let o="";try{o=this.readFileSync(e,"utf8")}catch{}let p=s?ACt(o,r):r;o!==p&&this.writeFileSync(e,p,{mode:c})}async movePromise(e,r){try{await this.renamePromise(e,r)}catch(s){if(s.code==="EXDEV")await this.copyPromise(r,e),await this.removePromise(e);else throw s}}moveSync(e,r){try{this.renameSync(e,r)}catch(s){if(s.code==="EXDEV")this.copySync(r,e),this.removeSync(e);else throw s}}async lockPromise(e,r){let s=`${e}.flock`,c=1e3/60,o=Date.now(),p=null,d=async()=>{let _;try{[_]=await this.readJsonPromise(s)}catch{return Date.now()-o<500}try{return process.kill(_,0),!0}catch{return!1}};for(;p===null;)try{p=await this.openPromise(s,"wx")}catch(_){if(_.code==="EEXIST"){if(!await d())try{await this.unlinkPromise(s);continue}catch{}if(Date.now()-o<60*1e3)await new Promise(y=>setTimeout(y,c));else throw new Error(`Couldn't acquire a lock in a reasonable time (via ${s})`)}else throw _}await this.writePromise(p,JSON.stringify([process.pid]));try{return await r()}finally{try{await this.closePromise(p),await this.unlinkPromise(s)}catch{}}}async readJsonPromise(e){let r=await this.readFilePromise(e,"utf8");try{return JSON.parse(r)}catch(s){throw s.message+=` (in ${e})`,s}}readJsonSync(e){let r=this.readFileSync(e,"utf8");try{return JSON.parse(r)}catch(s){throw s.message+=` (in ${e})`,s}}async writeJsonPromise(e,r,{compact:s=!1}={}){let c=s?0:2;return await this.writeFilePromise(e,`${JSON.stringify(r,null,c)}
+`)}writeJsonSync(e,r,{compact:s=!1}={}){let c=s?0:2;return this.writeFileSync(e,`${JSON.stringify(r,null,c)}
+`)}async preserveTimePromise(e,r){let s=await this.lstatPromise(e),c=await r();typeof c<"u"&&(e=c),await this.lutimesPromise(e,s.atime,s.mtime)}async preserveTimeSync(e,r){let s=this.lstatSync(e),c=r();typeof c<"u"&&(e=c),this.lutimesSync(e,s.atime,s.mtime)}};Mre.FakeFS=PUe;var pCt=class extends PUe{constructor(){super(v1r.ppath)}};Mre.BasePortableFakeFS=pCt;function Lbi(t){let e=t.match(/\r?\n/g);if(e===null)return Fbi.EOL;let r=e.filter(c=>c===`\r
+`).length,s=e.length-r;return r>s?`\r
+`:`
+`}function ACt(t,e){return e.replace(/\r?\n/g,Lbi(t))}});var nH=W(FUe=>{"use strict";Object.defineProperty(FUe,"__esModule",{value:!0});FUe.ProxiedFS=void 0;var Mbi=Ure(),dCt=class extends Mbi.FakeFS{getExtractHint(e){return this.baseFs.getExtractHint(e)}resolve(e){return this.mapFromBase(this.baseFs.resolve(this.mapToBase(e)))}getRealPath(){return this.mapFromBase(this.baseFs.getRealPath())}async openPromise(e,r,s){return this.baseFs.openPromise(this.mapToBase(e),r,s)}openSync(e,r,s){return this.baseFs.openSync(this.mapToBase(e),r,s)}async opendirPromise(e,r){return Object.assign(await this.baseFs.opendirPromise(this.mapToBase(e),r),{path:e})}opendirSync(e,r){return Object.assign(this.baseFs.opendirSync(this.mapToBase(e),r),{path:e})}async readPromise(e,r,s,c,o){return await this.baseFs.readPromise(e,r,s,c,o)}readSync(e,r,s,c,o){return this.baseFs.readSync(e,r,s,c,o)}async writePromise(e,r,s,c,o){return typeof r=="string"?await this.baseFs.writePromise(e,r,s):await this.baseFs.writePromise(e,r,s,c,o)}writeSync(e,r,s,c,o){return typeof r=="string"?this.baseFs.writeSync(e,r,s):this.baseFs.writeSync(e,r,s,c,o)}async closePromise(e){return this.baseFs.closePromise(e)}closeSync(e){this.baseFs.closeSync(e)}createReadStream(e,r){return this.baseFs.createReadStream(e!==null?this.mapToBase(e):e,r)}createWriteStream(e,r){return this.baseFs.createWriteStream(e!==null?this.mapToBase(e):e,r)}async realpathPromise(e){return this.mapFromBase(await this.baseFs.realpathPromise(this.mapToBase(e)))}realpathSync(e){return this.mapFromBase(this.baseFs.realpathSync(this.mapToBase(e)))}async existsPromise(e){return this.baseFs.existsPromise(this.mapToBase(e))}existsSync(e){return this.baseFs.existsSync(this.mapToBase(e))}accessSync(e,r){return this.baseFs.accessSync(this.mapToBase(e),r)}async accessPromise(e,r){return this.baseFs.accessPromise(this.mapToBase(e),r)}async statPromise(e,r){return this.baseFs.statPromise(this.mapToBase(e),r)}statSync(e,r){return this.baseFs.statSync(this.mapToBase(e),r)}async fstatPromise(e,r){return this.baseFs.fstatPromise(e,r)}fstatSync(e,r){return this.baseFs.fstatSync(e,r)}lstatPromise(e,r){return this.baseFs.lstatPromise(this.mapToBase(e),r)}lstatSync(e,r){return this.baseFs.lstatSync(this.mapToBase(e),r)}async fchmodPromise(e,r){return this.baseFs.fchmodPromise(e,r)}fchmodSync(e,r){return this.baseFs.fchmodSync(e,r)}async chmodPromise(e,r){return this.baseFs.chmodPromise(this.mapToBase(e),r)}chmodSync(e,r){return this.baseFs.chmodSync(this.mapToBase(e),r)}async fchownPromise(e,r,s){return this.baseFs.fchownPromise(e,r,s)}fchownSync(e,r,s){return this.baseFs.fchownSync(e,r,s)}async chownPromise(e,r,s){return this.baseFs.chownPromise(this.mapToBase(e),r,s)}chownSync(e,r,s){return this.baseFs.chownSync(this.mapToBase(e),r,s)}async renamePromise(e,r){return this.baseFs.renamePromise(this.mapToBase(e),this.mapToBase(r))}renameSync(e,r){return this.baseFs.renameSync(this.mapToBase(e),this.mapToBase(r))}async copyFilePromise(e,r,s=0){return this.baseFs.copyFilePromise(this.mapToBase(e),this.mapToBase(r),s)}copyFileSync(e,r,s=0){return this.baseFs.copyFileSync(this.mapToBase(e),this.mapToBase(r),s)}async appendFilePromise(e,r,s){return this.baseFs.appendFilePromise(this.fsMapToBase(e),r,s)}appendFileSync(e,r,s){return this.baseFs.appendFileSync(this.fsMapToBase(e),r,s)}async writeFilePromise(e,r,s){return this.baseFs.writeFilePromise(this.fsMapToBase(e),r,s)}writeFileSync(e,r,s){return this.baseFs.writeFileSync(this.fsMapToBase(e),r,s)}async unlinkPromise(e){return this.baseFs.unlinkPromise(this.mapToBase(e))}unlinkSync(e){return this.baseFs.unlinkSync(this.mapToBase(e))}async utimesPromise(e,r,s){return this.baseFs.utimesPromise(this.mapToBase(e),r,s)}utimesSync(e,r,s){return this.baseFs.utimesSync(this.mapToBase(e),r,s)}async lutimesPromise(e,r,s){return this.baseFs.lutimesPromise(this.mapToBase(e),r,s)}lutimesSync(e,r,s){return this.baseFs.lutimesSync(this.mapToBase(e),r,s)}async mkdirPromise(e,r){return this.baseFs.mkdirPromise(this.mapToBase(e),r)}mkdirSync(e,r){return this.baseFs.mkdirSync(this.mapToBase(e),r)}async rmdirPromise(e,r){return this.baseFs.rmdirPromise(this.mapToBase(e),r)}rmdirSync(e,r){return this.baseFs.rmdirSync(this.mapToBase(e),r)}async rmPromise(e,r){return this.baseFs.rmPromise(this.mapToBase(e),r)}rmSync(e,r){return this.baseFs.rmSync(this.mapToBase(e),r)}async linkPromise(e,r){return this.baseFs.linkPromise(this.mapToBase(e),this.mapToBase(r))}linkSync(e,r){return this.baseFs.linkSync(this.mapToBase(e),this.mapToBase(r))}async symlinkPromise(e,r,s){let c=this.mapToBase(r);if(this.pathUtils.isAbsolute(e))return this.baseFs.symlinkPromise(this.mapToBase(e),c,s);let o=this.mapToBase(this.pathUtils.join(this.pathUtils.dirname(r),e)),p=this.baseFs.pathUtils.relative(this.baseFs.pathUtils.dirname(c),o);return this.baseFs.symlinkPromise(p,c,s)}symlinkSync(e,r,s){let c=this.mapToBase(r);if(this.pathUtils.isAbsolute(e))return this.baseFs.symlinkSync(this.mapToBase(e),c,s);let o=this.mapToBase(this.pathUtils.join(this.pathUtils.dirname(r),e)),p=this.baseFs.pathUtils.relative(this.baseFs.pathUtils.dirname(c),o);return this.baseFs.symlinkSync(p,c,s)}async readFilePromise(e,r){return this.baseFs.readFilePromise(this.fsMapToBase(e),r)}readFileSync(e,r){return this.baseFs.readFileSync(this.fsMapToBase(e),r)}readdirPromise(e,r){return this.baseFs.readdirPromise(this.mapToBase(e),r)}readdirSync(e,r){return this.baseFs.readdirSync(this.mapToBase(e),r)}async readlinkPromise(e){return this.mapFromBase(await this.baseFs.readlinkPromise(this.mapToBase(e)))}readlinkSync(e){return this.mapFromBase(this.baseFs.readlinkSync(this.mapToBase(e)))}async truncatePromise(e,r){return this.baseFs.truncatePromise(this.mapToBase(e),r)}truncateSync(e,r){return this.baseFs.truncateSync(this.mapToBase(e),r)}async ftruncatePromise(e,r){return this.baseFs.ftruncatePromise(e,r)}ftruncateSync(e,r){return this.baseFs.ftruncateSync(e,r)}watch(e,r,s){return this.baseFs.watch(this.mapToBase(e),r,s)}watchFile(e,r,s){return this.baseFs.watchFile(this.mapToBase(e),r,s)}unwatchFile(e,r){return this.baseFs.unwatchFile(this.mapToBase(e),r)}fsMapToBase(e){return typeof e=="number"?e:this.mapToBase(e)}};FUe.ProxiedFS=dCt});var w1r=W(OUe=>{"use strict";Object.defineProperty(OUe,"__esModule",{value:!0});OUe.AliasFS=void 0;var Ubi=nH(),hCt=class extends Ubi.ProxiedFS{constructor(e,{baseFs:r,pathUtils:s}){super(s),this.target=e,this.baseFs=r}getRealPath(){return this.target}getBaseFs(){return this.baseFs}mapFromBase(e){return e}mapToBase(e){return e}};OUe.AliasFS=hCt});var Gre=W(LUe=>{"use strict";Object.defineProperty(LUe,"__esModule",{value:!0});LUe.NodeFS=void 0;var Gbi=bo(),qbi=Gbi.__importDefault(Ze("fs")),Hbi=Ure(),Ac=Ux();function S1r(t){let e=t;return typeof t.path=="string"&&(e.path=Ac.npath.toPortablePath(t.path)),e}var gCt=class extends Hbi.BasePortableFakeFS{constructor(e=qbi.default){super(),this.realFs=e}getExtractHint(){return!1}getRealPath(){return Ac.PortablePath.root}resolve(e){return Ac.ppath.resolve(e)}async openPromise(e,r,s){return await new Promise((c,o)=>{this.realFs.open(Ac.npath.fromPortablePath(e),r,s,this.makeCallback(c,o))})}openSync(e,r,s){return this.realFs.openSync(Ac.npath.fromPortablePath(e),r,s)}async opendirPromise(e,r){return await new Promise((s,c)=>{typeof r<"u"?this.realFs.opendir(Ac.npath.fromPortablePath(e),r,this.makeCallback(s,c)):this.realFs.opendir(Ac.npath.fromPortablePath(e),this.makeCallback(s,c))}).then(s=>{let c=s;return Object.defineProperty(c,"path",{value:e,configurable:!0,writable:!0}),c})}opendirSync(e,r){let c=typeof r<"u"?this.realFs.opendirSync(Ac.npath.fromPortablePath(e),r):this.realFs.opendirSync(Ac.npath.fromPortablePath(e));return Object.defineProperty(c,"path",{value:e,configurable:!0,writable:!0}),c}async readPromise(e,r,s=0,c=0,o=-1){return await new Promise((p,d)=>{this.realFs.read(e,r,s,c,o,(_,y)=>{_?d(_):p(y)})})}readSync(e,r,s,c,o){return this.realFs.readSync(e,r,s,c,o)}async writePromise(e,r,s,c,o){return await new Promise((p,d)=>typeof r=="string"?this.realFs.write(e,r,s,this.makeCallback(p,d)):this.realFs.write(e,r,s,c,o,this.makeCallback(p,d)))}writeSync(e,r,s,c,o){return typeof r=="string"?this.realFs.writeSync(e,r,s):this.realFs.writeSync(e,r,s,c,o)}async closePromise(e){await new Promise((r,s)=>{this.realFs.close(e,this.makeCallback(r,s))})}closeSync(e){this.realFs.closeSync(e)}createReadStream(e,r){let s=e!==null?Ac.npath.fromPortablePath(e):e;return this.realFs.createReadStream(s,r)}createWriteStream(e,r){let s=e!==null?Ac.npath.fromPortablePath(e):e;return this.realFs.createWriteStream(s,r)}async realpathPromise(e){return await new Promise((r,s)=>{this.realFs.realpath(Ac.npath.fromPortablePath(e),{},this.makeCallback(r,s))}).then(r=>Ac.npath.toPortablePath(r))}realpathSync(e){return Ac.npath.toPortablePath(this.realFs.realpathSync(Ac.npath.fromPortablePath(e),{}))}async existsPromise(e){return await new Promise(r=>{this.realFs.exists(Ac.npath.fromPortablePath(e),r)})}accessSync(e,r){return this.realFs.accessSync(Ac.npath.fromPortablePath(e),r)}async accessPromise(e,r){return await new Promise((s,c)=>{this.realFs.access(Ac.npath.fromPortablePath(e),r,this.makeCallback(s,c))})}existsSync(e){return this.realFs.existsSync(Ac.npath.fromPortablePath(e))}async statPromise(e,r){return await new Promise((s,c)=>{r?this.realFs.stat(Ac.npath.fromPortablePath(e),r,this.makeCallback(s,c)):this.realFs.stat(Ac.npath.fromPortablePath(e),this.makeCallback(s,c))})}statSync(e,r){return r?this.realFs.statSync(Ac.npath.fromPortablePath(e),r):this.realFs.statSync(Ac.npath.fromPortablePath(e))}async fstatPromise(e,r){return await new Promise((s,c)=>{r?this.realFs.fstat(e,r,this.makeCallback(s,c)):this.realFs.fstat(e,this.makeCallback(s,c))})}fstatSync(e,r){return r?this.realFs.fstatSync(e,r):this.realFs.fstatSync(e)}async lstatPromise(e,r){return await new Promise((s,c)=>{r?this.realFs.lstat(Ac.npath.fromPortablePath(e),r,this.makeCallback(s,c)):this.realFs.lstat(Ac.npath.fromPortablePath(e),this.makeCallback(s,c))})}lstatSync(e,r){return r?this.realFs.lstatSync(Ac.npath.fromPortablePath(e),r):this.realFs.lstatSync(Ac.npath.fromPortablePath(e))}async fchmodPromise(e,r){return await new Promise((s,c)=>{this.realFs.fchmod(e,r,this.makeCallback(s,c))})}fchmodSync(e,r){return this.realFs.fchmodSync(e,r)}async chmodPromise(e,r){return await new Promise((s,c)=>{this.realFs.chmod(Ac.npath.fromPortablePath(e),r,this.makeCallback(s,c))})}chmodSync(e,r){return this.realFs.chmodSync(Ac.npath.fromPortablePath(e),r)}async fchownPromise(e,r,s){return await new Promise((c,o)=>{this.realFs.fchown(e,r,s,this.makeCallback(c,o))})}fchownSync(e,r,s){return this.realFs.fchownSync(e,r,s)}async chownPromise(e,r,s){return await new Promise((c,o)=>{this.realFs.chown(Ac.npath.fromPortablePath(e),r,s,this.makeCallback(c,o))})}chownSync(e,r,s){return this.realFs.chownSync(Ac.npath.fromPortablePath(e),r,s)}async renamePromise(e,r){return await new Promise((s,c)=>{this.realFs.rename(Ac.npath.fromPortablePath(e),Ac.npath.fromPortablePath(r),this.makeCallback(s,c))})}renameSync(e,r){return this.realFs.renameSync(Ac.npath.fromPortablePath(e),Ac.npath.fromPortablePath(r))}async copyFilePromise(e,r,s=0){return await new Promise((c,o)=>{this.realFs.copyFile(Ac.npath.fromPortablePath(e),Ac.npath.fromPortablePath(r),s,this.makeCallback(c,o))})}copyFileSync(e,r,s=0){return this.realFs.copyFileSync(Ac.npath.fromPortablePath(e),Ac.npath.fromPortablePath(r),s)}async appendFilePromise(e,r,s){return await new Promise((c,o)=>{let p=typeof e=="string"?Ac.npath.fromPortablePath(e):e;s?this.realFs.appendFile(p,r,s,this.makeCallback(c,o)):this.realFs.appendFile(p,r,this.makeCallback(c,o))})}appendFileSync(e,r,s){let c=typeof e=="string"?Ac.npath.fromPortablePath(e):e;s?this.realFs.appendFileSync(c,r,s):this.realFs.appendFileSync(c,r)}async writeFilePromise(e,r,s){return await new Promise((c,o)=>{let p=typeof e=="string"?Ac.npath.fromPortablePath(e):e;s?this.realFs.writeFile(p,r,s,this.makeCallback(c,o)):this.realFs.writeFile(p,r,this.makeCallback(c,o))})}writeFileSync(e,r,s){let c=typeof e=="string"?Ac.npath.fromPortablePath(e):e;s?this.realFs.writeFileSync(c,r,s):this.realFs.writeFileSync(c,r)}async unlinkPromise(e){return await new Promise((r,s)=>{this.realFs.unlink(Ac.npath.fromPortablePath(e),this.makeCallback(r,s))})}unlinkSync(e){return this.realFs.unlinkSync(Ac.npath.fromPortablePath(e))}async utimesPromise(e,r,s){return await new Promise((c,o)=>{this.realFs.utimes(Ac.npath.fromPortablePath(e),r,s,this.makeCallback(c,o))})}utimesSync(e,r,s){this.realFs.utimesSync(Ac.npath.fromPortablePath(e),r,s)}async lutimesPromise(e,r,s){return await new Promise((c,o)=>{this.realFs.lutimes(Ac.npath.fromPortablePath(e),r,s,this.makeCallback(c,o))})}lutimesSync(e,r,s){this.realFs.lutimesSync(Ac.npath.fromPortablePath(e),r,s)}async mkdirPromise(e,r){return await new Promise((s,c)=>{this.realFs.mkdir(Ac.npath.fromPortablePath(e),r,this.makeCallback(s,c))})}mkdirSync(e,r){return this.realFs.mkdirSync(Ac.npath.fromPortablePath(e),r)}async rmdirPromise(e,r){return await new Promise((s,c)=>{r?this.realFs.rmdir(Ac.npath.fromPortablePath(e),r,this.makeCallback(s,c)):this.realFs.rmdir(Ac.npath.fromPortablePath(e),this.makeCallback(s,c))})}rmdirSync(e,r){return this.realFs.rmdirSync(Ac.npath.fromPortablePath(e),r)}async rmPromise(e,r){return await new Promise((s,c)=>{r?this.realFs.rm(Ac.npath.fromPortablePath(e),r,this.makeCallback(s,c)):this.realFs.rm(Ac.npath.fromPortablePath(e),this.makeCallback(s,c))})}rmSync(e,r){return this.realFs.rmSync(Ac.npath.fromPortablePath(e),r)}async linkPromise(e,r){return await new Promise((s,c)=>{this.realFs.link(Ac.npath.fromPortablePath(e),Ac.npath.fromPortablePath(r),this.makeCallback(s,c))})}linkSync(e,r){return this.realFs.linkSync(Ac.npath.fromPortablePath(e),Ac.npath.fromPortablePath(r))}async symlinkPromise(e,r,s){return await new Promise((c,o)=>{this.realFs.symlink(Ac.npath.fromPortablePath(e.replace(/\/+$/,"")),Ac.npath.fromPortablePath(r),s,this.makeCallback(c,o))})}symlinkSync(e,r,s){return this.realFs.symlinkSync(Ac.npath.fromPortablePath(e.replace(/\/+$/,"")),Ac.npath.fromPortablePath(r),s)}async readFilePromise(e,r){return await new Promise((s,c)=>{let o=typeof e=="string"?Ac.npath.fromPortablePath(e):e;this.realFs.readFile(o,r,this.makeCallback(s,c))})}readFileSync(e,r){let s=typeof e=="string"?Ac.npath.fromPortablePath(e):e;return this.realFs.readFileSync(s,r)}async readdirPromise(e,r){return await new Promise((s,c)=>{r?r.recursive&&process.platform==="win32"?r.withFileTypes?this.realFs.readdir(Ac.npath.fromPortablePath(e),r,this.makeCallback(o=>s(o.map(S1r)),c)):this.realFs.readdir(Ac.npath.fromPortablePath(e),r,this.makeCallback(o=>s(o.map(Ac.npath.toPortablePath)),c)):this.realFs.readdir(Ac.npath.fromPortablePath(e),r,this.makeCallback(s,c)):this.realFs.readdir(Ac.npath.fromPortablePath(e),this.makeCallback(s,c))})}readdirSync(e,r){return r?r.recursive&&process.platform==="win32"?r.withFileTypes?this.realFs.readdirSync(Ac.npath.fromPortablePath(e),r).map(S1r):this.realFs.readdirSync(Ac.npath.fromPortablePath(e),r).map(Ac.npath.toPortablePath):this.realFs.readdirSync(Ac.npath.fromPortablePath(e),r):this.realFs.readdirSync(Ac.npath.fromPortablePath(e))}async readlinkPromise(e){return await new Promise((r,s)=>{this.realFs.readlink(Ac.npath.fromPortablePath(e),this.makeCallback(r,s))}).then(r=>Ac.npath.toPortablePath(r))}readlinkSync(e){return Ac.npath.toPortablePath(this.realFs.readlinkSync(Ac.npath.fromPortablePath(e)))}async truncatePromise(e,r){return await new Promise((s,c)=>{this.realFs.truncate(Ac.npath.fromPortablePath(e),r,this.makeCallback(s,c))})}truncateSync(e,r){return this.realFs.truncateSync(Ac.npath.fromPortablePath(e),r)}async ftruncatePromise(e,r){return await new Promise((s,c)=>{this.realFs.ftruncate(e,r,this.makeCallback(s,c))})}ftruncateSync(e,r){return this.realFs.ftruncateSync(e,r)}watch(e,r,s){return this.realFs.watch(Ac.npath.fromPortablePath(e),r,s)}watchFile(e,r,s){return this.realFs.watchFile(Ac.npath.fromPortablePath(e),r,s)}unwatchFile(e,r){return this.realFs.unwatchFile(Ac.npath.fromPortablePath(e),r)}makeCallback(e,r){return(s,c)=>{s?r(s):e(c)}}};LUe.NodeFS=gCt});var B1r=W(MUe=>{"use strict";Object.defineProperty(MUe,"__esModule",{value:!0});MUe.CwdFS=void 0;var jbi=Gre(),Jbi=nH(),mCt=Ux(),_Ct=class extends Jbi.ProxiedFS{constructor(e,{baseFs:r=new jbi.NodeFS}={}){super(mCt.ppath),this.target=this.pathUtils.normalize(e),this.baseFs=r}getRealPath(){return this.pathUtils.resolve(this.baseFs.getRealPath(),this.target)}resolve(e){return this.pathUtils.isAbsolute(e)?mCt.ppath.normalize(e):this.baseFs.resolve(mCt.ppath.join(this.target,e))}mapFromBase(e){return e}mapToBase(e){return this.pathUtils.isAbsolute(e)?e:this.pathUtils.join(this.target,e)}};MUe.CwdFS=_Ct});var D1r=W(GUe=>{"use strict";Object.defineProperty(GUe,"__esModule",{value:!0});GUe.JailFS=void 0;var Vbi=Gre(),Ybi=nH(),UUe=Ux(),b1r=UUe.PortablePath.root,ECt=class extends Ybi.ProxiedFS{constructor(e,{baseFs:r=new Vbi.NodeFS}={}){super(UUe.ppath),this.target=this.pathUtils.resolve(UUe.PortablePath.root,e),this.baseFs=r}getRealPath(){return this.pathUtils.resolve(this.baseFs.getRealPath(),this.pathUtils.relative(UUe.PortablePath.root,this.target))}getTarget(){return this.target}getBaseFs(){return this.baseFs}mapToBase(e){let r=this.pathUtils.normalize(e);if(this.pathUtils.isAbsolute(e))return this.pathUtils.resolve(this.target,this.pathUtils.relative(b1r,e));if(r.match(/^\.\.\/?/))throw new Error(`Resolving this path (${e}) would escape the jail`);return this.pathUtils.resolve(this.target,e)}mapFromBase(e){return this.pathUtils.resolve(b1r,this.pathUtils.relative(this.target,e))}};GUe.JailFS=ECt});var T1r=W(qUe=>{"use strict";Object.defineProperty(qUe,"__esModule",{value:!0});qUe.LazyFS=void 0;var Wbi=nH(),yCt=class extends Wbi.ProxiedFS{constructor(e,r){super(r),this.instance=null,this.factory=e}get baseFs(){return this.instance||(this.instance=this.factory()),this.instance}set baseFs(e){this.instance=e}mapFromBase(e){return e}mapToBase(e){return e}};qUe.LazyFS=yCt});var k1r=W(JUe=>{"use strict";Object.defineProperty(JUe,"__esModule",{value:!0});JUe.MountFS=void 0;var zbi=bo(),gpe=Ze("fs"),Kbi=Ure(),Xbi=Gre(),HUe=fCt(),Gx=zbi.__importStar(bUe()),jUe=Ux(),qx=4278190080,CCt=class extends Kbi.BasePortableFakeFS{constructor({baseFs:e=new Xbi.NodeFS,filter:r=null,magicByte:s=42,maxOpenFiles:c=1/0,useCache:o=!0,maxAge:p=5e3,typeCheck:d=gpe.constants.S_IFREG,getMountPoint:_,factoryPromise:y,factorySync:S}){if(Math.floor(s)!==s||!(s>1&&s<=127))throw new Error("The magic byte must be set to a round value between 1 and 127 included");super(),this.fdMap=new Map,this.nextFd=3,this.isMount=new Set,this.notMount=new Set,this.realPaths=new Map,this.limitOpenFilesTimeout=null,this.baseFs=e,this.mountInstances=o?new Map:null,this.factoryPromise=y,this.factorySync=S,this.filter=r,this.getMountPoint=_,this.magic=s<<24,this.maxAge=p,this.maxOpenFiles=c,this.typeCheck=d}getExtractHint(e){return this.baseFs.getExtractHint(e)}getRealPath(){return this.baseFs.getRealPath()}saveAndClose(){if((0,HUe.unwatchAllFiles)(this),this.mountInstances)for(let[e,{childFs:r}]of this.mountInstances.entries())r.saveAndClose?.(),this.mountInstances.delete(e)}discardAndClose(){if((0,HUe.unwatchAllFiles)(this),this.mountInstances)for(let[e,{childFs:r}]of this.mountInstances.entries())r.discardAndClose?.(),this.mountInstances.delete(e)}resolve(e){return this.baseFs.resolve(e)}remapFd(e,r){let s=this.nextFd++|this.magic;return this.fdMap.set(s,[e,r]),s}async openPromise(e,r,s){return await this.makeCallPromise(e,async()=>await this.baseFs.openPromise(e,r,s),async(c,{subPath:o})=>this.remapFd(c,await c.openPromise(o,r,s)))}openSync(e,r,s){return this.makeCallSync(e,()=>this.baseFs.openSync(e,r,s),(c,{subPath:o})=>this.remapFd(c,c.openSync(o,r,s)))}async opendirPromise(e,r){return await this.makeCallPromise(e,async()=>await this.baseFs.opendirPromise(e,r),async(s,{subPath:c})=>await s.opendirPromise(c,r),{requireSubpath:!1})}opendirSync(e,r){return this.makeCallSync(e,()=>this.baseFs.opendirSync(e,r),(s,{subPath:c})=>s.opendirSync(c,r),{requireSubpath:!1})}async readPromise(e,r,s,c,o){if((e&qx)!==this.magic)return await this.baseFs.readPromise(e,r,s,c,o);let p=this.fdMap.get(e);if(typeof p>"u")throw Gx.EBADF("read");let[d,_]=p;return await d.readPromise(_,r,s,c,o)}readSync(e,r,s,c,o){if((e&qx)!==this.magic)return this.baseFs.readSync(e,r,s,c,o);let p=this.fdMap.get(e);if(typeof p>"u")throw Gx.EBADF("readSync");let[d,_]=p;return d.readSync(_,r,s,c,o)}async writePromise(e,r,s,c,o){if((e&qx)!==this.magic)return typeof r=="string"?await this.baseFs.writePromise(e,r,s):await this.baseFs.writePromise(e,r,s,c,o);let p=this.fdMap.get(e);if(typeof p>"u")throw Gx.EBADF("write");let[d,_]=p;return typeof r=="string"?await d.writePromise(_,r,s):await d.writePromise(_,r,s,c,o)}writeSync(e,r,s,c,o){if((e&qx)!==this.magic)return typeof r=="string"?this.baseFs.writeSync(e,r,s):this.baseFs.writeSync(e,r,s,c,o);let p=this.fdMap.get(e);if(typeof p>"u")throw Gx.EBADF("writeSync");let[d,_]=p;return typeof r=="string"?d.writeSync(_,r,s):d.writeSync(_,r,s,c,o)}async closePromise(e){if((e&qx)!==this.magic)return await this.baseFs.closePromise(e);let r=this.fdMap.get(e);if(typeof r>"u")throw Gx.EBADF("close");this.fdMap.delete(e);let[s,c]=r;return await s.closePromise(c)}closeSync(e){if((e&qx)!==this.magic)return this.baseFs.closeSync(e);let r=this.fdMap.get(e);if(typeof r>"u")throw Gx.EBADF("closeSync");this.fdMap.delete(e);let[s,c]=r;return s.closeSync(c)}createReadStream(e,r){return e===null?this.baseFs.createReadStream(e,r):this.makeCallSync(e,()=>this.baseFs.createReadStream(e,r),(s,{archivePath:c,subPath:o})=>{let p=s.createReadStream(o,r);return p.path=jUe.npath.fromPortablePath(this.pathUtils.join(c,o)),p})}createWriteStream(e,r){return e===null?this.baseFs.createWriteStream(e,r):this.makeCallSync(e,()=>this.baseFs.createWriteStream(e,r),(s,{subPath:c})=>s.createWriteStream(c,r))}async realpathPromise(e){return await this.makeCallPromise(e,async()=>await this.baseFs.realpathPromise(e),async(r,{archivePath:s,subPath:c})=>{let o=this.realPaths.get(s);return typeof o>"u"&&(o=await this.baseFs.realpathPromise(s),this.realPaths.set(s,o)),this.pathUtils.join(o,this.pathUtils.relative(jUe.PortablePath.root,await r.realpathPromise(c)))})}realpathSync(e){return this.makeCallSync(e,()=>this.baseFs.realpathSync(e),(r,{archivePath:s,subPath:c})=>{let o=this.realPaths.get(s);return typeof o>"u"&&(o=this.baseFs.realpathSync(s),this.realPaths.set(s,o)),this.pathUtils.join(o,this.pathUtils.relative(jUe.PortablePath.root,r.realpathSync(c)))})}async existsPromise(e){return await this.makeCallPromise(e,async()=>await this.baseFs.existsPromise(e),async(r,{subPath:s})=>await r.existsPromise(s))}existsSync(e){return this.makeCallSync(e,()=>this.baseFs.existsSync(e),(r,{subPath:s})=>r.existsSync(s))}async accessPromise(e,r){return await this.makeCallPromise(e,async()=>await this.baseFs.accessPromise(e,r),async(s,{subPath:c})=>await s.accessPromise(c,r))}accessSync(e,r){return this.makeCallSync(e,()=>this.baseFs.accessSync(e,r),(s,{subPath:c})=>s.accessSync(c,r))}async statPromise(e,r){return await this.makeCallPromise(e,async()=>await this.baseFs.statPromise(e,r),async(s,{subPath:c})=>await s.statPromise(c,r))}statSync(e,r){return this.makeCallSync(e,()=>this.baseFs.statSync(e,r),(s,{subPath:c})=>s.statSync(c,r))}async fstatPromise(e,r){if((e&qx)!==this.magic)return this.baseFs.fstatPromise(e,r);let s=this.fdMap.get(e);if(typeof s>"u")throw Gx.EBADF("fstat");let[c,o]=s;return c.fstatPromise(o,r)}fstatSync(e,r){if((e&qx)!==this.magic)return this.baseFs.fstatSync(e,r);let s=this.fdMap.get(e);if(typeof s>"u")throw Gx.EBADF("fstatSync");let[c,o]=s;return c.fstatSync(o,r)}async lstatPromise(e,r){return await this.makeCallPromise(e,async()=>await this.baseFs.lstatPromise(e,r),async(s,{subPath:c})=>await s.lstatPromise(c,r))}lstatSync(e,r){return this.makeCallSync(e,()=>this.baseFs.lstatSync(e,r),(s,{subPath:c})=>s.lstatSync(c,r))}async fchmodPromise(e,r){if((e&qx)!==this.magic)return this.baseFs.fchmodPromise(e,r);let s=this.fdMap.get(e);if(typeof s>"u")throw Gx.EBADF("fchmod");let[c,o]=s;return c.fchmodPromise(o,r)}fchmodSync(e,r){if((e&qx)!==this.magic)return this.baseFs.fchmodSync(e,r);let s=this.fdMap.get(e);if(typeof s>"u")throw Gx.EBADF("fchmodSync");let[c,o]=s;return c.fchmodSync(o,r)}async chmodPromise(e,r){return await this.makeCallPromise(e,async()=>await this.baseFs.chmodPromise(e,r),async(s,{subPath:c})=>await s.chmodPromise(c,r))}chmodSync(e,r){return this.makeCallSync(e,()=>this.baseFs.chmodSync(e,r),(s,{subPath:c})=>s.chmodSync(c,r))}async fchownPromise(e,r,s){if((e&qx)!==this.magic)return this.baseFs.fchownPromise(e,r,s);let c=this.fdMap.get(e);if(typeof c>"u")throw Gx.EBADF("fchown");let[o,p]=c;return o.fchownPromise(p,r,s)}fchownSync(e,r,s){if((e&qx)!==this.magic)return this.baseFs.fchownSync(e,r,s);let c=this.fdMap.get(e);if(typeof c>"u")throw Gx.EBADF("fchownSync");let[o,p]=c;return o.fchownSync(p,r,s)}async chownPromise(e,r,s){return await this.makeCallPromise(e,async()=>await this.baseFs.chownPromise(e,r,s),async(c,{subPath:o})=>await c.chownPromise(o,r,s))}chownSync(e,r,s){return this.makeCallSync(e,()=>this.baseFs.chownSync(e,r,s),(c,{subPath:o})=>c.chownSync(o,r,s))}async renamePromise(e,r){return await this.makeCallPromise(e,async()=>await this.makeCallPromise(r,async()=>await this.baseFs.renamePromise(e,r),async()=>{throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"})}),async(s,{subPath:c})=>await this.makeCallPromise(r,async()=>{throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"})},async(o,{subPath:p})=>{if(s!==o)throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"});return await s.renamePromise(c,p)}))}renameSync(e,r){return this.makeCallSync(e,()=>this.makeCallSync(r,()=>this.baseFs.renameSync(e,r),()=>{throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"})}),(s,{subPath:c})=>this.makeCallSync(r,()=>{throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"})},(o,{subPath:p})=>{if(s!==o)throw Object.assign(new Error("EEXDEV: cross-device link not permitted"),{code:"EEXDEV"});return s.renameSync(c,p)}))}async copyFilePromise(e,r,s=0){let c=async(o,p,d,_)=>{if((s&gpe.constants.COPYFILE_FICLONE_FORCE)!==0)throw Object.assign(new Error(`EXDEV: cross-device clone not permitted, copyfile '${p}' -> ${_}'`),{code:"EXDEV"});if(s&gpe.constants.COPYFILE_EXCL&&await this.existsPromise(p))throw Object.assign(new Error(`EEXIST: file already exists, copyfile '${p}' -> '${_}'`),{code:"EEXIST"});let y;try{y=await o.readFilePromise(p)}catch{throw Object.assign(new Error(`EINVAL: invalid argument, copyfile '${p}' -> '${_}'`),{code:"EINVAL"})}await d.writeFilePromise(_,y)};return await this.makeCallPromise(e,async()=>await this.makeCallPromise(r,async()=>await this.baseFs.copyFilePromise(e,r,s),async(o,{subPath:p})=>await c(this.baseFs,e,o,p)),async(o,{subPath:p})=>await this.makeCallPromise(r,async()=>await c(o,p,this.baseFs,r),async(d,{subPath:_})=>o!==d?await c(o,p,d,_):await o.copyFilePromise(p,_,s)))}copyFileSync(e,r,s=0){let c=(o,p,d,_)=>{if((s&gpe.constants.COPYFILE_FICLONE_FORCE)!==0)throw Object.assign(new Error(`EXDEV: cross-device clone not permitted, copyfile '${p}' -> ${_}'`),{code:"EXDEV"});if(s&gpe.constants.COPYFILE_EXCL&&this.existsSync(p))throw Object.assign(new Error(`EEXIST: file already exists, copyfile '${p}' -> '${_}'`),{code:"EEXIST"});let y;try{y=o.readFileSync(p)}catch{throw Object.assign(new Error(`EINVAL: invalid argument, copyfile '${p}' -> '${_}'`),{code:"EINVAL"})}d.writeFileSync(_,y)};return this.makeCallSync(e,()=>this.makeCallSync(r,()=>this.baseFs.copyFileSync(e,r,s),(o,{subPath:p})=>c(this.baseFs,e,o,p)),(o,{subPath:p})=>this.makeCallSync(r,()=>c(o,p,this.baseFs,r),(d,{subPath:_})=>o!==d?c(o,p,d,_):o.copyFileSync(p,_,s)))}async appendFilePromise(e,r,s){return await this.makeCallPromise(e,async()=>await this.baseFs.appendFilePromise(e,r,s),async(c,{subPath:o})=>await c.appendFilePromise(o,r,s))}appendFileSync(e,r,s){return this.makeCallSync(e,()=>this.baseFs.appendFileSync(e,r,s),(c,{subPath:o})=>c.appendFileSync(o,r,s))}async writeFilePromise(e,r,s){return await this.makeCallPromise(e,async()=>await this.baseFs.writeFilePromise(e,r,s),async(c,{subPath:o})=>await c.writeFilePromise(o,r,s))}writeFileSync(e,r,s){return this.makeCallSync(e,()=>this.baseFs.writeFileSync(e,r,s),(c,{subPath:o})=>c.writeFileSync(o,r,s))}async unlinkPromise(e){return await this.makeCallPromise(e,async()=>await this.baseFs.unlinkPromise(e),async(r,{subPath:s})=>await r.unlinkPromise(s))}unlinkSync(e){return this.makeCallSync(e,()=>this.baseFs.unlinkSync(e),(r,{subPath:s})=>r.unlinkSync(s))}async utimesPromise(e,r,s){return await this.makeCallPromise(e,async()=>await this.baseFs.utimesPromise(e,r,s),async(c,{subPath:o})=>await c.utimesPromise(o,r,s))}utimesSync(e,r,s){return this.makeCallSync(e,()=>this.baseFs.utimesSync(e,r,s),(c,{subPath:o})=>c.utimesSync(o,r,s))}async lutimesPromise(e,r,s){return await this.makeCallPromise(e,async()=>await this.baseFs.lutimesPromise(e,r,s),async(c,{subPath:o})=>await c.lutimesPromise(o,r,s))}lutimesSync(e,r,s){return this.makeCallSync(e,()=>this.baseFs.lutimesSync(e,r,s),(c,{subPath:o})=>c.lutimesSync(o,r,s))}async mkdirPromise(e,r){return await this.makeCallPromise(e,async()=>await this.baseFs.mkdirPromise(e,r),async(s,{subPath:c})=>await s.mkdirPromise(c,r))}mkdirSync(e,r){return this.makeCallSync(e,()=>this.baseFs.mkdirSync(e,r),(s,{subPath:c})=>s.mkdirSync(c,r))}async rmdirPromise(e,r){return await this.makeCallPromise(e,async()=>await this.baseFs.rmdirPromise(e,r),async(s,{subPath:c})=>await s.rmdirPromise(c,r))}rmdirSync(e,r){return this.makeCallSync(e,()=>this.baseFs.rmdirSync(e,r),(s,{subPath:c})=>s.rmdirSync(c,r))}async rmPromise(e,r){return await this.makeCallPromise(e,async()=>await this.baseFs.rmPromise(e,r),async(s,{subPath:c})=>await s.rmPromise(c,r))}rmSync(e,r){return this.makeCallSync(e,()=>this.baseFs.rmSync(e,r),(s,{subPath:c})=>s.rmSync(c,r))}async linkPromise(e,r){return await this.makeCallPromise(r,async()=>await this.baseFs.linkPromise(e,r),async(s,{subPath:c})=>await s.linkPromise(e,c))}linkSync(e,r){return this.makeCallSync(r,()=>this.baseFs.linkSync(e,r),(s,{subPath:c})=>s.linkSync(e,c))}async symlinkPromise(e,r,s){return await this.makeCallPromise(r,async()=>await this.baseFs.symlinkPromise(e,r,s),async(c,{subPath:o})=>await c.symlinkPromise(e,o))}symlinkSync(e,r,s){return this.makeCallSync(r,()=>this.baseFs.symlinkSync(e,r,s),(c,{subPath:o})=>c.symlinkSync(e,o))}async readFilePromise(e,r){return this.makeCallPromise(e,async()=>await this.baseFs.readFilePromise(e,r),async(s,{subPath:c})=>await s.readFilePromise(c,r))}readFileSync(e,r){return this.makeCallSync(e,()=>this.baseFs.readFileSync(e,r),(s,{subPath:c})=>s.readFileSync(c,r))}async readdirPromise(e,r){return await this.makeCallPromise(e,async()=>await this.baseFs.readdirPromise(e,r),async(s,{subPath:c})=>await s.readdirPromise(c,r),{requireSubpath:!1})}readdirSync(e,r){return this.makeCallSync(e,()=>this.baseFs.readdirSync(e,r),(s,{subPath:c})=>s.readdirSync(c,r),{requireSubpath:!1})}async readlinkPromise(e){return await this.makeCallPromise(e,async()=>await this.baseFs.readlinkPromise(e),async(r,{subPath:s})=>await r.readlinkPromise(s))}readlinkSync(e){return this.makeCallSync(e,()=>this.baseFs.readlinkSync(e),(r,{subPath:s})=>r.readlinkSync(s))}async truncatePromise(e,r){return await this.makeCallPromise(e,async()=>await this.baseFs.truncatePromise(e,r),async(s,{subPath:c})=>await s.truncatePromise(c,r))}truncateSync(e,r){return this.makeCallSync(e,()=>this.baseFs.truncateSync(e,r),(s,{subPath:c})=>s.truncateSync(c,r))}async ftruncatePromise(e,r){if((e&qx)!==this.magic)return this.baseFs.ftruncatePromise(e,r);let s=this.fdMap.get(e);if(typeof s>"u")throw Gx.EBADF("ftruncate");let[c,o]=s;return c.ftruncatePromise(o,r)}ftruncateSync(e,r){if((e&qx)!==this.magic)return this.baseFs.ftruncateSync(e,r);let s=this.fdMap.get(e);if(typeof s>"u")throw Gx.EBADF("ftruncateSync");let[c,o]=s;return c.ftruncateSync(o,r)}watch(e,r,s){return this.makeCallSync(e,()=>this.baseFs.watch(e,r,s),(c,{subPath:o})=>c.watch(o,r,s))}watchFile(e,r,s){return this.makeCallSync(e,()=>this.baseFs.watchFile(e,r,s),()=>(0,HUe.watchFile)(this,e,r,s))}unwatchFile(e,r){return this.makeCallSync(e,()=>this.baseFs.unwatchFile(e,r),()=>(0,HUe.unwatchFile)(this,e,r))}async makeCallPromise(e,r,s,{requireSubpath:c=!0}={}){if(typeof e!="string")return await r();let o=this.resolve(e),p=this.findMount(o);return p?c&&p.subPath==="/"?await r():await this.getMountPromise(p.archivePath,async d=>await s(d,p)):await r()}makeCallSync(e,r,s,{requireSubpath:c=!0}={}){if(typeof e!="string")return r();let o=this.resolve(e),p=this.findMount(o);return!p||c&&p.subPath==="/"?r():this.getMountSync(p.archivePath,d=>s(d,p))}findMount(e){if(this.filter&&!this.filter.test(e))return null;let r="";for(;;){let s=e.substring(r.length),c=this.getMountPoint(s,r);if(!c)return null;if(r=this.pathUtils.join(r,c),!this.isMount.has(r)){if(this.notMount.has(r))continue;try{if(this.typeCheck!==null&&(this.baseFs.lstatSync(r).mode&gpe.constants.S_IFMT)!==this.typeCheck){this.notMount.add(r);continue}}catch{return null}this.isMount.add(r)}return{archivePath:r,subPath:this.pathUtils.join(jUe.PortablePath.root,e.substring(r.length))}}}limitOpenFiles(e){if(this.mountInstances===null)return;let r=Date.now(),s=r+this.maxAge,c=e===null?0:this.mountInstances.size-e;for(let[o,{childFs:p,expiresAt:d,refCount:_}]of this.mountInstances.entries())if(!(_!==0||p.hasOpenFileHandles?.())){if(r>=d){p.saveAndClose?.(),this.mountInstances.delete(o),c-=1;continue}else if(e===null||c<=0){s=d;break}p.saveAndClose?.(),this.mountInstances.delete(o),c-=1}this.limitOpenFilesTimeout===null&&(e===null&&this.mountInstances.size>0||e!==null)&&isFinite(s)&&(this.limitOpenFilesTimeout=setTimeout(()=>{this.limitOpenFilesTimeout=null,this.limitOpenFiles(null)},s-r).unref())}async getMountPromise(e,r){if(this.mountInstances){let s=this.mountInstances.get(e);if(!s){let c=await this.factoryPromise(this.baseFs,e);s=this.mountInstances.get(e),s||(s={childFs:c(),expiresAt:0,refCount:0})}this.mountInstances.delete(e),this.limitOpenFiles(this.maxOpenFiles-1),this.mountInstances.set(e,s),s.expiresAt=Date.now()+this.maxAge,s.refCount+=1;try{return await r(s.childFs)}finally{s.refCount-=1}}else{let s=(await this.factoryPromise(this.baseFs,e))();try{return await r(s)}finally{s.saveAndClose?.()}}}getMountSync(e,r){if(this.mountInstances){let s=this.mountInstances.get(e);return s||(s={childFs:this.factorySync(this.baseFs,e),expiresAt:0,refCount:0}),this.mountInstances.delete(e),this.limitOpenFiles(this.maxOpenFiles-1),this.mountInstances.set(e,s),s.expiresAt=Date.now()+this.maxAge,r(s.childFs)}else{let s=this.factorySync(this.baseFs,e);try{return r(s)}finally{s.saveAndClose?.()}}}};JUe.MountFS=CCt});var x1r=W(VUe=>{"use strict";Object.defineProperty(VUe,"__esModule",{value:!0});VUe.NoFS=void 0;var Zbi=Ure(),$bi=Ux(),ml=()=>Object.assign(new Error("ENOSYS: unsupported filesystem access"),{code:"ENOSYS"}),Bwe=class extends Zbi.FakeFS{constructor(){super($bi.ppath)}getExtractHint(){throw ml()}getRealPath(){throw ml()}resolve(){throw ml()}async openPromise(){throw ml()}openSync(){throw ml()}async opendirPromise(){throw ml()}opendirSync(){throw ml()}async readPromise(){throw ml()}readSync(){throw ml()}async writePromise(){throw ml()}writeSync(){throw ml()}async closePromise(){throw ml()}closeSync(){throw ml()}createWriteStream(){throw ml()}createReadStream(){throw ml()}async realpathPromise(){throw ml()}realpathSync(){throw ml()}async readdirPromise(){throw ml()}readdirSync(){throw ml()}async existsPromise(e){throw ml()}existsSync(e){throw ml()}async accessPromise(){throw ml()}accessSync(){throw ml()}async statPromise(){throw ml()}statSync(){throw ml()}async fstatPromise(e){throw ml()}fstatSync(e){throw ml()}async lstatPromise(e){throw ml()}lstatSync(e){throw ml()}async fchmodPromise(){throw ml()}fchmodSync(){throw ml()}async chmodPromise(){throw ml()}chmodSync(){throw ml()}async fchownPromise(){throw ml()}fchownSync(){throw ml()}async chownPromise(){throw ml()}chownSync(){throw ml()}async mkdirPromise(){throw ml()}mkdirSync(){throw ml()}async rmdirPromise(){throw ml()}rmdirSync(){throw ml()}async rmPromise(){throw ml()}rmSync(){throw ml()}async linkPromise(){throw ml()}linkSync(){throw ml()}async symlinkPromise(){throw ml()}symlinkSync(){throw ml()}async renamePromise(){throw ml()}renameSync(){throw ml()}async copyFilePromise(){throw ml()}copyFileSync(){throw ml()}async appendFilePromise(){throw ml()}appendFileSync(){throw ml()}async writeFilePromise(){throw ml()}writeFileSync(){throw ml()}async unlinkPromise(){throw ml()}unlinkSync(){throw ml()}async utimesPromise(){throw ml()}utimesSync(){throw ml()}async lutimesPromise(){throw ml()}lutimesSync(){throw ml()}async readFilePromise(){throw ml()}readFileSync(){throw ml()}async readlinkPromise(){throw ml()}readlinkSync(){throw ml()}async truncatePromise(){throw ml()}truncateSync(){throw ml()}async ftruncatePromise(e,r){throw ml()}ftruncateSync(e,r){throw ml()}watch(){throw ml()}watchFile(){throw ml()}unwatchFile(){throw ml()}};VUe.NoFS=Bwe;Bwe.instance=new Bwe});var Q1r=W(YUe=>{"use strict";Object.defineProperty(YUe,"__esModule",{value:!0});YUe.PosixFS=void 0;var eDi=nH(),ICt=Ux(),vCt=class extends eDi.ProxiedFS{constructor(e){super(ICt.npath),this.baseFs=e}mapFromBase(e){return ICt.npath.fromPortablePath(e)}mapToBase(e){return ICt.npath.toPortablePath(e)}};YUe.PosixFS=vCt});var N1r=W(WUe=>{"use strict";Object.defineProperty(WUe,"__esModule",{value:!0});WUe.VirtualFS=void 0;var tDi=Gre(),rDi=nH(),E9=Ux(),nDi=/^[0-9]+$/,wCt=/^(\/(?:[^/]+\/)*?(?:\$\$virtual|__virtual__))((?:\/((?:[^/]+-)?[a-f0-9]+)(?:\/([^/]+))?)?((?:\/.*)?))$/,iDi=/^([^/]+-)?[a-f0-9]+$/,CL=class extends rDi.ProxiedFS{static makeVirtualPath(e,r,s){if(E9.ppath.basename(e)!=="__virtual__")throw new Error('Assertion failed: Virtual folders must be named "__virtual__"');if(!E9.ppath.basename(r).match(iDi))throw new Error("Assertion failed: Virtual components must be ended by an hexadecimal hash");let o=E9.ppath.relative(E9.ppath.dirname(e),s).split("/"),p=0;for(;p{"use strict";function kwe(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}kwe.prototype=Object.create(Error.prototype);kwe.prototype.constructor=kwe;kwe.prototype.toString=function(e){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!e&&this.mark&&(r+=" "+this.mark.toString()),r};$Er.exports=kwe});var ryr=W((n3o,tyr)=>{"use strict";var eyr=Jre();function jCt(t,e,r,s,c){this.name=t,this.buffer=e,this.position=r,this.line=s,this.column=c}jCt.prototype.getSnippet=function(e,r){var s,c,o,p,d;if(!this.buffer)return null;for(e=e||4,r=r||75,s="",c=this.position;c>0&&`\0\r
+\x85\u2028\u2029`.indexOf(this.buffer.charAt(c-1))===-1;)if(c-=1,this.position-c>r/2-1){s=" ... ",c+=5;break}for(o="",p=this.position;p{"use strict";var E4i=tw(),y4i=Object.prototype.toString;function C4i(t){if(t===null)return!0;var e,r,s,c,o,p=t;for(o=new Array(p.length),e=0,r=p.length;e0&&(ct=_.slice(0,S),_=_.slice(S),x-=S),Ir&&N===!0&&x>0?(Ir=_.slice(0,x),Ht=_.slice(x)):N===!0?(Ir="",Ht=_):Ir=_,Ir&&Ir!==""&&Ir!=="/"&&Ir!==_&&vwr(Ir.charCodeAt(Ir.length-1))&&(Ir=Ir.slice(0,-1)),r.unescape===!0&&(Ht&&(Ht=ywr.removeBackslashes(Ht)),Ir&&we===!0&&(Ir=ywr.removeBackslashes(Ir)));let Lt={prefix:ct,input:t,start:S,base:Ir,glob:Ht,isBrace:O,isBracket:V,isGlob:N,isExtglob:te,isGlobstar:oe,negated:Ke,negatedExtglob:et};if(r.tokens===!0&&(Lt.maxDepth=0,vwr(Zt)||p.push(er),Lt.tokens=p),r.parts===!0||r.tokens===!0){let on;for(let Vr=0;Vr{function TPi(t,e){return t.has(e)}CBr.exports=TPi});var rIt=W((oRo,vBr)=>{var kPi=_Br(),xPi=yBr(),QPi=IBr(),NPi=1,RPi=2;function PPi(t,e,r,s,c,o){var p=r&NPi,d=t.length,_=e.length;if(d!=_&&!(p&&_>d))return!1;var y=o.get(t),S=o.get(e);if(y&&S)return y==e&&S==t;var x=-1,O=!0,V=r&RPi?new kPi:void 0;for(o.set(t,e),o.set(e,t);++x{var s5i=Array.isArray;PBr.exports=s5i});var sIt=W((ARo,FBr)=>{var o5i=MGe(),a5i=w9();function c5i(t,e,r){var s=e(t);return a5i(t)?s:o5i(s,r(t))}FBr.exports=c5i});var LBr=W((dRo,OBr)=>{function l5i(t,e){for(var r=-1,s=t==null?0:t.length,c=0,o=[];++r{function u5i(){return[]}MBr.exports=u5i});var UGe=W((gRo,GBr)=>{var f5i=LBr(),p5i=oIt(),A5i=Object.prototype,d5i=A5i.propertyIsEnumerable,UBr=Object.getOwnPropertySymbols,h5i=UBr?function(t){return t==null?[]:(t=Object(t),f5i(UBr(t),function(e){return d5i.call(t,e)}))}:p5i;GBr.exports=h5i});var HBr=W((mRo,qBr)=>{function g5i(t,e){for(var r=-1,s=Array(t);++r{var qFi=f3(),dDr=Object.create,HFi=function(){function t(){}return function(e){if(!qFi(e))return{};if(dDr)return dDr(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();hDr.exports=HFi});var zGe=W(($Ro,mDr)=>{var jFi=lIt(),JFi=jFi(Object.getPrototypeOf,Object);mDr.exports=JFi});var IIt=W((ePo,_Dr)=>{var VFi=gDr(),YFi=zGe(),WFi=JGe();function zFi(t){return typeof t.constructor=="function"&&!WFi(t)?VFi(YFi(t)):{}}_Dr.exports=zFi});var yDr=W((tPo,EDr)=>{var KFi=lSe(),XFi=S9();function ZFi(t){return XFi(t)&&KFi(t)}EDr.exports=ZFi});var KGe=W((rPo,IDr)=>{var $Fi=oz(),e7i=zGe(),t7i=S9(),r7i="[object Object]",n7i=Function.prototype,i7i=Object.prototype,CDr=n7i.toString,s7i=i7i.hasOwnProperty,o7i=CDr.call(Object);function a7i(t){if(!t7i(t)||$Fi(t)!=r7i)return!1;var e=e7i(t);if(e===null)return!0;var r=s7i.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&CDr.call(r)==o7i}IDr.exports=a7i});var vIt=W((nPo,vDr)=>{function c7i(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}vDr.exports=c7i});var XGe=W((iPo,wDr)=>{var l7i=YGe(),u7i=sne(),f7i=Object.prototype,p7i=f7i.hasOwnProperty;function A7i(t,e,r){var s=t[e];(!(p7i.call(t,e)&&u7i(s,r))||r===void 0&&!(e in t))&&l7i(t,e,r)}wDr.exports=A7i});var cz=W((sPo,SDr)=>{var d7i=XGe(),h7i=YGe();function g7i(t,e,r,s){var c=!r;r||(r={});for(var o=-1,p=e.length;++o("lookup"in r||(r.lookup=this.lookup),e[lAe](r,s))}uninstall(e){if(txr(e),e[lAe]){if(e[Fwt]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[lAe],delete e[lAe],delete e[Fwt]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=rxr(),(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6)&&this._cache.clear()}clear(e){if(e){this._cache.delete(e);return}this._cache.clear()}};Owt.exports=zqe;Owt.exports.default=zqe});var cxr=W((e9o,axr)=>{"use strict";var sHi="text/plain",oHi="us-ascii",oxr=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),aHi=(t,{stripHash:e})=>{let r=/^data:(?{var i3r=one(),bYi=GHe(),DYi=w9(),TYi=ESe(),kYi=1/0,s3r=i3r?i3r.prototype:void 0,o3r=s3r?s3r.toString:void 0;function a3r(t){if(typeof t=="string")return t;if(DYi(t))return bYi(t,a3r)+"";if(TYi(t))return o3r?o3r.call(t):"";var e=t+"";return e=="0"&&1/t==-kYi?"-0":e}c3r.exports=a3r});var CAe=W((yFo,u3r)=>{var xYi=l3r();function QYi(t){return t==null?"":xYi(t)}u3r.exports=QYi});var yBt=W((CFo,f3r)=>{function NYi(t,e,r){var s=-1,c=t.length;e<0&&(e=-e>c?0:c+e),r=r>c?c:r,r<0&&(r+=c),c=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(c);++s1)r=e;else if(this.head)s=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var c=0;s!==null;c++)r=t(r,s.value,c),s=s.next;return r};am.prototype.reduceReverse=function(t,e){var r,s=this.tail;if(arguments.length>1)r=e;else if(this.tail)s=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var c=this.length-1;s!==null;c--)r=t(r,s.value,c),s=s.prev;return r};am.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};am.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};am.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new am;if(e{"use strict";var Wzi=vAe(),INr=qje(),GAe=Ze("fs"),zzi=UAe(),CNr=Ze("path"),$bt=xAe();wNr.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let s=Wzi(t);if(s.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!s.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&Xzi(s,e),s.noResume||Kzi(s),s.file&&s.sync?Zzi(s):s.file?$zi(s,r):vNr(s)};var Kzi=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},Xzi=(t,e)=>{let r=new Map(e.map(o=>[$bt(o),!0])),s=t.filter,c=(o,p)=>{let d=p||CNr.parse(o).root||".",_=o===d?!1:r.has(o)?r.get(o):c(CNr.dirname(o),d);return r.set(o,_),_};t.filter=s?(o,p)=>s(o,p)&&c($bt(o)):o=>c($bt(o))},Zzi=t=>{let e=vNr(t),r=t.file,s=!0,c;try{let o=GAe.statSync(r),p=t.maxReadSize||16*1024*1024;if(o.size"),e.push(LZi(s.value)),s.added?e.push(""):s.removed&&e.push("")}return e.join("")}function LZi(t){var e=t;return e=e.replace(/&/g,"&"),e=e.replace(//g,">"),e=e.replace(/"/g,"""),e}});var ZDt=W(wC=>{"use strict";Object.defineProperty(wC,"__esModule",{value:!0});Object.defineProperty(wC,"Diff",{enumerable:!0,get:function(){return MZi.default}});Object.defineProperty(wC,"diffChars",{enumerable:!0,get:function(){return UZi.diffChars}});Object.defineProperty(wC,"diffWords",{enumerable:!0,get:function(){return t5r.diffWords}});Object.defineProperty(wC,"diffWordsWithSpace",{enumerable:!0,get:function(){return t5r.diffWordsWithSpace}});Object.defineProperty(wC,"diffLines",{enumerable:!0,get:function(){return r5r.diffLines}});Object.defineProperty(wC,"diffTrimmedLines",{enumerable:!0,get:function(){return r5r.diffTrimmedLines}});Object.defineProperty(wC,"diffSentences",{enumerable:!0,get:function(){return GZi.diffSentences}});Object.defineProperty(wC,"diffCss",{enumerable:!0,get:function(){return qZi.diffCss}});Object.defineProperty(wC,"diffJson",{enumerable:!0,get:function(){return n5r.diffJson}});Object.defineProperty(wC,"canonicalize",{enumerable:!0,get:function(){return n5r.canonicalize}});Object.defineProperty(wC,"diffArrays",{enumerable:!0,get:function(){return HZi.diffArrays}});Object.defineProperty(wC,"applyPatch",{enumerable:!0,get:function(){return i5r.applyPatch}});Object.defineProperty(wC,"applyPatches",{enumerable:!0,get:function(){return i5r.applyPatches}});Object.defineProperty(wC,"parsePatch",{enumerable:!0,get:function(){return jZi.parsePatch}});Object.defineProperty(wC,"merge",{enumerable:!0,get:function(){return JZi.merge}});Object.defineProperty(wC,"structuredPatch",{enumerable:!0,get:function(){return XDt.structuredPatch}});Object.defineProperty(wC,"createTwoFilesPatch",{enumerable:!0,get:function(){return XDt.createTwoFilesPatch}});Object.defineProperty(wC,"createPatch",{enumerable:!0,get:function(){return XDt.createPatch}});Object.defineProperty(wC,"convertChangesToDMP",{enumerable:!0,get:function(){return VZi.convertChangesToDMP}});Object.defineProperty(wC,"convertChangesToXML",{enumerable:!0,get:function(){return YZi.convertChangesToXML}});var MZi=WZi(QH()),UZi=wPr(),t5r=bPr(),r5r=fJe(),GZi=DPr(),qZi=TPr(),n5r=xPr(),HZi=QPr(),i5r=FPr(),jZi=dJe(),JZi=ZPr(),XDt=jDt(),VZi=$Pr(),YZi=e5r();function WZi(t){return t&&t.__esModule?t:{default:t}}});var o5r=W((nOo,s5r)=>{var zZi=w9(),KZi=ESe(),XZi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ZZi=/^\w*$/;function $Zi(t,e){if(zZi(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||KZi(t)?!0:ZZi.test(t)||!XZi.test(t)||e!=null&&t in Object(e)}s5r.exports=$Zi});var l5r=W((iOo,c5r)=>{var a5r=FGe(),e$i="Expected a function";function $Dt(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(e$i);var r=function(){var s=arguments,c=e?e.apply(this,s):s[0],o=r.cache;if(o.has(c))return o.get(c);var p=t.apply(this,s);return r.cache=o.set(c,p)||o,p};return r.cache=new($Dt.Cache||a5r),r}$Dt.Cache=a5r;c5r.exports=$Dt});var f5r=W((sOo,u5r)=>{var t$i=l5r(),r$i=500;function n$i(t){var e=t$i(t,function(s){return r.size===r$i&&r.clear(),s}),r=e.cache;return e}u5r.exports=n$i});var A5r=W((oOo,p5r)=>{var i$i=f5r(),s$i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o$i=/\\(\\)?/g,a$i=i$i(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(s$i,function(r,s,c,o){e.push(c?o.replace(o$i,"$1"):s||r)}),e});p5r.exports=a$i});var Jne=W((aOo,d5r)=>{var c$i=w9(),l$i=o5r(),u$i=A5r(),f$i=CAe();function p$i(t,e){return c$i(t)?t:l$i(t,e)?[t]:u$i(f$i(t))}d5r.exports=p$i});var wBe=W((cOo,h5r)=>{var A$i=ESe(),d$i=1/0;function h$i(t){if(typeof t=="string"||A$i(t))return t;var e=t+"";return e=="0"&&1/t==-d$i?"-0":e}h5r.exports=h$i});var EJe=W((lOo,g5r)=>{var g$i=Jne(),m$i=wBe();function _$i(t,e){e=g$i(e,t);for(var r=0,s=e.length;t!=null&&r{var E$i=XGe(),y$i=Jne(),C$i=oSe(),m5r=f3(),I$i=wBe();function v$i(t,e,r,s){if(!m5r(t))return t;e=y$i(e,t);for(var c=-1,o=e.length,p=o-1,d=t;d!=null&&++c