lix 15.12.1 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/haxelibshim.js +1 -1
- package/bin/haxeshim.js +1 -1
- package/bin/lix.js +1 -1
- package/bin/nekoshim.js +1 -1
- package/bin/postinstall.js +1 -1
- package/package.json +2 -2
package/bin/nekoshim.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
module.exports=function(e,t){"use strict";var i={};function __webpack_require__(t){if(i[t]){return i[t].exports}var n=i[t]={i:t,l:false,exports:{}};e[t].call(n.exports,n,n.exports,__webpack_require__);n.l=true;return n.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(895)}return startup()}({60:function(e,t,i){const n=i(761).constants||{ZLIB_VERNUM:4736};e.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:Infinity,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},n))},63:function(e,t,i){"use strict";const n=i(357);const r=i(614).EventEmitter;const s=i(203);const o=i(747);const a=i(827);const l=i(622);const u=i(577);const c=u.sync;const h=i(478);const f=i(182);const d=Symbol("onEntry");const m=Symbol("checkFs");const p=Symbol("checkFs2");const v=Symbol("isReusable");const y=Symbol("makeFs");const _=Symbol("file");const w=Symbol("directory");const g=Symbol("link");const S=Symbol("symlink");const b=Symbol("hardlink");const E=Symbol("unsupported");const R=Symbol("unknown");const x=Symbol("checkPath");const O=Symbol("mkdir");const L=Symbol("onError");const I=Symbol("pending");const N=Symbol("pend");const C=Symbol("unpend");const D=Symbol("ended");const A=Symbol("maybeClose");const k=Symbol("skip");const B=Symbol("doChown");const F=Symbol("uid");const P=Symbol("gid");const T=i(417);const z=i(953);const M=()=>{throw new Error("sync function called cb somehow?!?")};const U=(e,t)=>{if(process.platform!=="win32")return o.unlink(e,t);const i=e+".DELETE."+T.randomBytes(16).toString("hex");o.rename(e,i,e=>{if(e)return t(e);o.unlink(i,t)})};const W=e=>{if(process.platform!=="win32")return o.unlinkSync(e);const t=e+".DELETE."+T.randomBytes(16).toString("hex");o.renameSync(e,t);o.unlinkSync(t)};const Z=(e,t,i)=>e===e>>>0?e:t===t>>>0?t:i;class Unpack extends s{constructor(e){if(!e)e={};e.ondone=(e=>{this[D]=true;this[A]()});super(e);this.reservations=f();this.transform=typeof e.transform==="function"?e.transform:null;this.writable=true;this.readable=false;this[I]=0;this[D]=false;this.dirCache=e.dirCache||new Map;if(typeof e.uid==="number"||typeof e.gid==="number"){if(typeof e.uid!=="number"||typeof e.gid!=="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid;this.gid=e.gid;this.setOwner=true}else{this.uid=null;this.gid=null;this.setOwner=false}if(e.preserveOwner===undefined&&typeof e.uid!=="number")this.preserveOwner=process.getuid&&process.getuid()===0;else this.preserveOwner=!!e.preserveOwner;this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null;this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null;this.forceChown=e.forceChown===true;this.win32=!!e.win32||process.platform==="win32";this.newer=!!e.newer;this.keep=!!e.keep;this.noMtime=!!e.noMtime;this.preservePaths=!!e.preservePaths;this.unlink=!!e.unlink;this.cwd=l.resolve(e.cwd||process.cwd());this.strip=+e.strip||0;this.processUmask=process.umask();this.umask=typeof e.umask==="number"?e.umask:this.processUmask;this.dmode=e.dmode||511&~this.umask;this.fmode=e.fmode||438&~this.umask;this.on("entry",e=>this[d](e))}warn(e,t,i={}){if(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")i.recoverable=false;return super.warn(e,t,i)}[A](){if(this[D]&&this[I]===0){this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")}}[x](e){if(this.strip){const t=e.path.split(/\/|\\/);if(t.length<this.strip)return false;e.path=t.slice(this.strip).join("/");if(e.type==="Link"){const t=e.linkpath.split(/\/|\\/);if(t.length>=this.strip)e.linkpath=t.slice(this.strip).join("/")}}if(!this.preservePaths){const t=e.path;if(t.match(/(^|\/|\\)\.\.(\\|\/|$)/)){this.warn("TAR_ENTRY_ERROR",`path contains '..'`,{entry:e,path:t});return false}if(l.win32.isAbsolute(t)){const i=l.win32.parse(t);e.path=t.substr(i.root.length);const n=i.root;this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:t})}}if(this.win32){const t=l.win32.parse(e.path);e.path=t.root===""?h.encode(e.path):t.root+h.encode(e.path.substr(t.root.length))}if(l.isAbsolute(e.path))e.absolute=e.path;else e.absolute=l.resolve(this.cwd,e.path);return true}[d](e){if(!this[x](e))return e.resume();n.equal(typeof e.absolute,"string");switch(e.type){case"Directory":case"GNUDumpDir":if(e.mode)e.mode=e.mode|448;case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[m](e);case"CharacterDevice":case"BlockDevice":case"FIFO":return this[E](e)}}[L](e,t){if(e.name==="CwdError")this.emit("error",e);else{this.warn("TAR_ENTRY_ERROR",e,{entry:t});this[C]();t.resume()}}[O](e,t,i){u(e,{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t},i)}[B](e){return this.forceChown||this.preserveOwner&&(typeof e.uid==="number"&&e.uid!==this.processUid||typeof e.gid==="number"&&e.gid!==this.processGid)||(typeof this.uid==="number"&&this.uid!==this.processUid||typeof this.gid==="number"&&this.gid!==this.processGid)}[F](e){return Z(this.uid,e.uid,this.processUid)}[P](e){return Z(this.gid,e.gid,this.processGid)}[_](e,t){const i=e.mode&4095||this.fmode;const n=new a.WriteStream(e.absolute,{flags:z(e.size),mode:i,autoClose:false});n.on("error",t=>this[L](t,e));let r=1;const s=i=>{if(i)return this[L](i,e);if(--r===0){o.close(n.fd,i=>{t();i?this[L](i,e):this[C]()})}};n.on("finish",t=>{const i=e.absolute;const a=n.fd;if(e.mtime&&!this.noMtime){r++;const t=e.atime||new Date;const n=e.mtime;o.futimes(a,t,n,e=>e?o.utimes(i,t,n,t=>s(t&&e)):s())}if(this[B](e)){r++;const t=this[F](e);const n=this[P](e);o.fchown(a,t,n,e=>e?o.chown(i,t,n,t=>s(t&&e)):s())}s()});const l=this.transform?this.transform(e)||e:e;if(l!==e){l.on("error",t=>this[L](t,e));e.pipe(l)}l.pipe(n)}[w](e,t){const i=e.mode&4095||this.dmode;this[O](e.absolute,i,i=>{if(i){t();return this[L](i,e)}let n=1;const r=i=>{if(--n===0){t();this[C]();e.resume()}};if(e.mtime&&!this.noMtime){n++;o.utimes(e.absolute,e.atime||new Date,e.mtime,r)}if(this[B](e)){n++;o.chown(e.absolute,this[F](e),this[P](e),r)}r()})}[E](e){e.unsupported=true;this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e});e.resume()}[S](e,t){this[g](e,e.linkpath,"symlink",t)}[b](e,t){this[g](e,l.resolve(this.cwd,e.linkpath),"link",t)}[N](){this[I]++}[C](){this[I]--;this[A]()}[k](e){this[C]();e.resume()}[v](e,t){return e.type==="File"&&!this.unlink&&t.isFile()&&t.nlink<=1&&process.platform!=="win32"}[m](e){this[N]();const t=[e.path];if(e.linkpath)t.push(e.linkpath);this.reservations.reserve(t,t=>this[p](e,t))}[p](e,t){this[O](l.dirname(e.absolute),this.dmode,i=>{if(i){t();return this[L](i,e)}o.lstat(e.absolute,(i,n)=>{if(n&&(this.keep||this.newer&&n.mtime>e.mtime)){this[k](e);t()}else if(i||this[v](e,n)){this[y](null,e,t)}else if(n.isDirectory()){if(e.type==="Directory"){if(!e.mode||(n.mode&4095)===e.mode)this[y](null,e,t);else o.chmod(e.absolute,e.mode,i=>this[y](i,e,t))}else o.rmdir(e.absolute,i=>this[y](i,e,t))}else U(e.absolute,i=>this[y](i,e,t))})})}[y](e,t,i){if(e)return this[L](e,t);switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[_](t,i);case"Link":return this[b](t,i);case"SymbolicLink":return this[S](t,i);case"Directory":case"GNUDumpDir":return this[w](t,i)}}[g](e,t,i,n){o[i](t,e.absolute,t=>{if(t)return this[L](t,e);n();this[C]();e.resume()})}}class UnpackSync extends Unpack{constructor(e){super(e)}[m](e){const t=this[O](l.dirname(e.absolute),this.dmode,M);if(t)return this[L](t,e);try{const i=o.lstatSync(e.absolute);if(this.keep||this.newer&&i.mtime>e.mtime)return this[k](e);else if(this[v](e,i))return this[y](null,e,M);else{try{if(i.isDirectory()){if(e.type==="Directory"){if(e.mode&&(i.mode&4095)!==e.mode)o.chmodSync(e.absolute,e.mode)}else o.rmdirSync(e.absolute)}else W(e.absolute);return this[y](null,e,M)}catch(t){return this[L](t,e)}}}catch(t){return this[y](null,e,M)}}[_](e,t){const i=e.mode&4095||this.fmode;const n=t=>{let i;try{o.closeSync(s)}catch(e){i=e}if(t||i)this[L](t||i,e)};let r;let s;try{s=o.openSync(e.absolute,z(e.size),i)}catch(e){return n(e)}const a=this.transform?this.transform(e)||e:e;if(a!==e){a.on("error",t=>this[L](t,e));e.pipe(a)}a.on("data",e=>{try{o.writeSync(s,e,0,e.length)}catch(e){n(e)}});a.on("end",t=>{let i=null;if(e.mtime&&!this.noMtime){const t=e.atime||new Date;const n=e.mtime;try{o.futimesSync(s,t,n)}catch(r){try{o.utimesSync(e.absolute,t,n)}catch(e){i=r}}}if(this[B](e)){const t=this[F](e);const n=this[P](e);try{o.fchownSync(s,t,n)}catch(r){try{o.chownSync(e.absolute,t,n)}catch(e){i=i||r}}}n(i)})}[w](e,t){const i=e.mode&4095||this.dmode;const n=this[O](e.absolute,i);if(n)return this[L](n,e);if(e.mtime&&!this.noMtime){try{o.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch(n){}}if(this[B](e)){try{o.chownSync(e.absolute,this[F](e),this[P](e))}catch(n){}}e.resume()}[O](e,t){try{return u.sync(e,{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t})}catch(e){return e}}[g](e,t,i,n){try{o[i+"Sync"](t,e.absolute);e.resume()}catch(t){return this[L](t,e)}}}Unpack.Sync=UnpackSync;e.exports=Unpack},92:function(e,t,i){const{dirname:n}=i(622);const r=(e,t,i=undefined)=>{if(i===t)return Promise.resolve();return e.statAsync(t).then(e=>e.isDirectory()?i:undefined,i=>i.code==="ENOENT"?r(e,n(t),t):undefined)};const s=(e,t,i=undefined)=>{if(i===t)return undefined;try{return e.statSync(t).isDirectory()?i:undefined}catch(i){return i.code==="ENOENT"?s(e,n(t),t):undefined}};e.exports={findMade:r,findMadeSync:s}},93:function(e,t,i){var n=i(413).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,i){if(!(this instanceof ReadStream))return new ReadStream(t,i);n.call(this);var r=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;i=i||{};var s=Object.keys(i);for(var o=0,a=s.length;o<a;o++){var l=s[o];this[l]=i[l]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick(function(){r._read()});return}e.open(this.path,this.flags,this.mode,function(e,t){if(e){r.emit("error",e);r.readable=false;return}r.fd=t;r.emit("open",t);r._read()})}function WriteStream(t,i){if(!(this instanceof WriteStream))return new WriteStream(t,i);n.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;i=i||{};var r=Object.keys(i);for(var s=0,o=r.length;s<o;s++){var a=r[s];this[a]=i[a]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},129:function(e){e.exports=require("child_process")},133:function(e,t,i){"use strict";const n=i(357);const r=i(293).Buffer;const s=i(761);const o=t.constants=i(60);const a=i(720);const l=r.concat;const u=Symbol("_superWrite");class ZlibError extends Error{constructor(e){super("zlib: "+e.message);this.code=e.code;this.errno=e.errno;if(!this.code)this.code="ZLIB_ERROR";this.message="zlib: "+e.message;Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}}const c=Symbol("opts");const h=Symbol("flushFlag");const f=Symbol("finishFlushFlag");const d=Symbol("fullFlushFlag");const m=Symbol("handle");const p=Symbol("onError");const v=Symbol("sawError");const y=Symbol("level");const _=Symbol("strategy");const w=Symbol("ended");const g=Symbol("_defaultFullFlush");class ZlibBase extends a{constructor(e,t){if(!e||typeof e!=="object")throw new TypeError("invalid options for ZlibBase constructor");super(e);this[w]=false;this[c]=e;this[h]=e.flush;this[f]=e.finishFlush;try{this[m]=new s[t](e)}catch(e){throw new ZlibError(e)}this[p]=(e=>{this[v]=true;this.close();this.emit("error",e)});this[m].on("error",e=>this[p](new ZlibError(e)));this.once("end",()=>this.close)}close(){if(this[m]){this[m].close();this[m]=null;this.emit("close")}}reset(){if(!this[v]){n(this[m],"zlib binding closed");return this[m].reset()}}flush(e){if(this.ended)return;if(typeof e!=="number")e=this[d];this.write(Object.assign(r.alloc(0),{[h]:e}))}end(e,t,i){if(e)this.write(e,t);this.flush(this[f]);this[w]=true;return super.end(null,null,i)}get ended(){return this[w]}write(e,t,i){if(typeof t==="function")i=t,t="utf8";if(typeof e==="string")e=r.from(e,t);if(this[v])return;n(this[m],"zlib binding closed");const s=this[m]._handle;const o=s.close;s.close=(()=>{});const a=this[m].close;this[m].close=(()=>{});r.concat=(e=>e);let c;try{const t=typeof e[h]==="number"?e[h]:this[h];c=this[m]._processChunk(e,t);r.concat=l}catch(e){r.concat=l;this[p](new ZlibError(e))}finally{if(this[m]){this[m]._handle=s;s.close=o;this[m].close=a;this[m].removeAllListeners("error")}}let f;if(c){if(Array.isArray(c)&&c.length>0){f=this[u](r.from(c[0]));for(let e=1;e<c.length;e++){f=this[u](c[e])}}else{f=this[u](r.from(c))}}if(i)i();return f}[u](e){return super.write(e)}}class Zlib extends ZlibBase{constructor(e,t){e=e||{};e.flush=e.flush||o.Z_NO_FLUSH;e.finishFlush=e.finishFlush||o.Z_FINISH;super(e,t);this[d]=o.Z_FULL_FLUSH;this[y]=e.level;this[_]=e.strategy}params(e,t){if(this[v])return;if(!this[m])throw new Error("cannot switch params when binding is closed");if(!this[m].params)throw new Error("not supported in this implementation");if(this[y]!==e||this[_]!==t){this.flush(o.Z_SYNC_FLUSH);n(this[m],"zlib binding closed");const i=this[m].flush;this[m].flush=((e,t)=>{this.flush(e);t()});try{this[m].params(e,t)}finally{this[m].flush=i}if(this[m]){this[y]=e;this[_]=t}}}}class Deflate extends Zlib{constructor(e){super(e,"Deflate")}}class Inflate extends Zlib{constructor(e){super(e,"Inflate")}}const S=Symbol("_portable");class Gzip extends Zlib{constructor(e){super(e,"Gzip");this[S]=e&&!!e.portable}[u](e){if(!this[S])return super[u](e);this[S]=false;e[9]=255;return super[u](e)}}class Gunzip extends Zlib{constructor(e){super(e,"Gunzip")}}class DeflateRaw extends Zlib{constructor(e){super(e,"DeflateRaw")}}class InflateRaw extends Zlib{constructor(e){super(e,"InflateRaw")}}class Unzip extends Zlib{constructor(e){super(e,"Unzip")}}class Brotli extends ZlibBase{constructor(e,t){e=e||{};e.flush=e.flush||o.BROTLI_OPERATION_PROCESS;e.finishFlush=e.finishFlush||o.BROTLI_OPERATION_FINISH;super(e,t);this[d]=o.BROTLI_OPERATION_FLUSH}}class BrotliCompress extends Brotli{constructor(e){super(e,"BrotliCompress")}}class BrotliDecompress extends Brotli{constructor(e){super(e,"BrotliDecompress")}}t.Deflate=Deflate;t.Inflate=Inflate;t.Gzip=Gzip;t.Gunzip=Gunzip;t.DeflateRaw=DeflateRaw;t.InflateRaw=InflateRaw;t.Unzip=Unzip;if(typeof s.BrotliCompress==="function"){t.BrotliCompress=BrotliCompress;t.BrotliDecompress=BrotliDecompress}else{t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}},159:function(e,t,i){"use strict";const n=i(891);const r=i(726);const s=i(747);const o=i(827);const a=i(381);const l=i(622);const u=e.exports=((e,t,i)=>{if(typeof t==="function")i=t;if(Array.isArray(e))t=e,e={};if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);const r=n(e);if(r.sync&&typeof i==="function")throw new TypeError("callback not supported for sync tar functions");if(!r.file&&typeof i==="function")throw new TypeError("callback only supported with file option");return r.file&&r.sync?c(r,t):r.file?h(r,t,i):r.sync?m(r,t):p(r,t)});const c=(e,t)=>{const i=new r.Sync(e);const n=new o.WriteStreamSync(e.file,{mode:e.mode||438});i.pipe(n);f(i,t)};const h=(e,t,i)=>{const n=new r(e);const s=new o.WriteStream(e.file,{mode:e.mode||438});n.pipe(s);const a=new Promise((e,t)=>{s.on("error",t);s.on("close",e);n.on("error",t)});d(n,t);return i?a.then(i,i):a};const f=(e,t)=>{t.forEach(t=>{if(t.charAt(0)==="@")a({file:l.resolve(e.cwd,t.substr(1)),sync:true,noResume:true,onentry:t=>e.add(t)});else e.add(t)});e.end()};const d=(e,t)=>{while(t.length){const i=t.shift();if(i.charAt(0)==="@")return a({file:l.resolve(e.cwd,i.substr(1)),noResume:true,onentry:t=>e.add(t)}).then(i=>d(e,t));else e.add(i)}e.end()};const m=(e,t)=>{const i=new r.Sync(e);f(i,t);return i};const p=(e,t)=>{const i=new r(e);d(i,t);return i}},182:function(e,t,i){const n=i(357);e.exports=(()=>{const e=new Map;const t=new Map;const{join:r}=i(622);const s=e=>r(e).split(/[\\\/]/).slice(0,-1).reduce((e,t)=>e.length?e.concat(r(e[e.length-1],t)):[t],[]);const o=new Set;const a=i=>{const n=t.get(i);if(!n)throw new Error("function does not have any path reservations");return{paths:n.paths.map(t=>e.get(t)),dirs:[...n.dirs].map(t=>e.get(t))}};const l=e=>{const{paths:t,dirs:i}=a(e);return t.every(t=>t[0]===e)&&i.every(t=>t[0]instanceof Set&&t[0].has(e))};const u=e=>{if(o.has(e)||!l(e))return false;o.add(e);e(()=>c(e));return true};const c=i=>{if(!o.has(i))return false;const{paths:r,dirs:s}=t.get(i);const a=new Set;r.forEach(t=>{const r=e.get(t);n.equal(r[0],i);if(r.length===1)e.delete(t);else{r.shift();if(typeof r[0]==="function")a.add(r[0]);else r[0].forEach(e=>a.add(e))}});s.forEach(t=>{const r=e.get(t);n(r[0]instanceof Set);if(r[0].size===1&&r.length===1){e.delete(t)}else if(r[0].size===1){r.shift();a.add(r[0])}else r[0].delete(i)});o.delete(i);a.forEach(e=>u(e));return true};const h=(i,n)=>{const r=new Set(i.map(e=>s(e)).reduce((e,t)=>e.concat(t)));t.set(n,{dirs:r,paths:i});i.forEach(t=>{const i=e.get(t);if(!i)e.set(t,[n]);else i.push(n)});r.forEach(t=>{const i=e.get(t);if(!i)e.set(t,[new Set([n])]);else if(i[i.length-1]instanceof Set)i[i.length-1].add(n);else i.push(new Set([n]))});return u(n)};return{check:l,reserve:h}})},203:function(e,t,i){"use strict";const n=i(796);const r=i(622);const s=i(232);const o=i(614);const a=i(612);const l=1024*1024;const u=i(662);const c=i(582);const h=i(133);const f=Buffer.from([31,139]);const d=Symbol("state");const m=Symbol("writeEntry");const p=Symbol("readEntry");const v=Symbol("nextEntry");const y=Symbol("processEntry");const _=Symbol("extendedHeader");const w=Symbol("globalExtendedHeader");const g=Symbol("meta");const S=Symbol("emitMeta");const b=Symbol("buffer");const E=Symbol("queue");const R=Symbol("ended");const x=Symbol("emittedEnd");const O=Symbol("emit");const L=Symbol("unzip");const I=Symbol("consumeChunk");const N=Symbol("consumeChunkSub");const C=Symbol("consumeBody");const D=Symbol("consumeMeta");const A=Symbol("consumeHeader");const k=Symbol("consuming");const B=Symbol("bufferConcat");const F=Symbol("maybeEnd");const P=Symbol("writing");const T=Symbol("aborted");const z=Symbol("onDone");const M=Symbol("sawValidEntry");const U=Symbol("sawNullBlock");const W=Symbol("sawEOF");const Z=e=>true;e.exports=n(class Parser extends o{constructor(e){e=e||{};super(e);this.file=e.file||"";this[M]=null;this.on(z,e=>{if(this[d]==="begin"||this[M]===false){this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}});if(e.ondone)this.on(z,e.ondone);else this.on(z,e=>{this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")});this.strict=!!e.strict;this.maxMetaEntrySize=e.maxMetaEntrySize||l;this.filter=typeof e.filter==="function"?e.filter:Z;this.writable=true;this.readable=false;this[E]=new a;this[b]=null;this[p]=null;this[m]=null;this[d]="begin";this[g]="";this[_]=null;this[w]=null;this[R]=false;this[L]=null;this[T]=false;this[U]=false;this[W]=false;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);if(typeof e.onentry==="function")this.on("entry",e.onentry)}[A](e,t){if(this[M]===null)this[M]=false;let i;try{i=new s(e,t,this[_],this[w])}catch(e){return this.warn("TAR_ENTRY_INVALID",e)}if(i.nullBlock){if(this[U]){this[W]=true;if(this[d]==="begin")this[d]="header";this[O]("eof")}else{this[U]=true;this[O]("nullBlock")}}else{this[U]=false;if(!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{const e=i.type;if(/^(Symbolic)?Link$/.test(e)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(e)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{const e=this[m]=new u(i,this[_],this[w]);if(!this[M]){if(e.remain){const t=()=>{if(!e.invalid)this[M]=true};e.on("end",t)}else{this[M]=true}}if(e.meta){if(e.size>this.maxMetaEntrySize){e.ignore=true;this[O]("ignoredEntry",e);this[d]="ignore";e.resume()}else if(e.size>0){this[g]="";e.on("data",e=>this[g]+=e);this[d]="meta"}}else{this[_]=null;e.ignore=e.ignore||!this.filter(e.path,e);if(e.ignore){this[O]("ignoredEntry",e);this[d]=e.remain?"ignore":"header";e.resume()}else{if(e.remain)this[d]="body";else{this[d]="header";e.end()}if(!this[p]){this[E].push(e);this[v]()}else this[E].push(e)}}}}}}[y](e){let t=true;if(!e){this[p]=null;t=false}else if(Array.isArray(e))this.emit.apply(this,e);else{this[p]=e;this.emit("entry",e);if(!e.emittedEnd){e.on("end",e=>this[v]());t=false}}return t}[v](){do{}while(this[y](this[E].shift()));if(!this[E].length){const e=this[p];const t=!e||e.flowing||e.size===e.remain;if(t){if(!this[P])this.emit("drain")}else e.once("drain",e=>this.emit("drain"))}}[C](e,t){const i=this[m];const n=i.blockRemain;const r=n>=e.length&&t===0?e:e.slice(t,t+n);i.write(r);if(!i.blockRemain){this[d]="header";this[m]=null;i.end()}return r.length}[D](e,t){const i=this[m];const n=this[C](e,t);if(!this[m])this[S](i);return n}[O](e,t,i){if(!this[E].length&&!this[p])this.emit(e,t,i);else this[E].push([e,t,i])}[S](e){this[O]("meta",this[g]);switch(e.type){case"ExtendedHeader":case"OldExtendedHeader":this[_]=c.parse(this[g],this[_],false);break;case"GlobalExtendedHeader":this[w]=c.parse(this[g],this[w],true);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[_]=this[_]||Object.create(null);this[_].path=this[g].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[_]=this[_]||Object.create(null);this[_].linkpath=this[g].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[T]=true;this.emit("abort",e);this.warn("TAR_ABORT",e,{recoverable:false})}write(e){if(this[T])return;if(this[L]===null&&e){if(this[b]){e=Buffer.concat([this[b],e]);this[b]=null}if(e.length<f.length){this[b]=e;return true}for(let t=0;this[L]===null&&t<f.length;t++){if(e[t]!==f[t])this[L]=false}if(this[L]===null){const t=this[R];this[R]=false;this[L]=new h.Unzip;this[L].on("data",e=>this[I](e));this[L].on("error",e=>this.abort(e));this[L].on("end",e=>{this[R]=true;this[I]()});this[P]=true;const i=this[L][t?"end":"write"](e);this[P]=false;return i}}this[P]=true;if(this[L])this[L].write(e);else this[I](e);this[P]=false;const t=this[E].length?false:this[p]?this[p].flowing:true;if(!t&&!this[E].length)this[p].once("drain",e=>this.emit("drain"));return t}[B](e){if(e&&!this[T])this[b]=this[b]?Buffer.concat([this[b],e]):e}[F](){if(this[R]&&!this[x]&&!this[T]&&!this[k]){this[x]=true;const e=this[m];if(e&&e.blockRemain){const t=this[b]?this[b].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${t} available)`,{entry:e});if(this[b])e.write(this[b]);e.end()}this[O](z)}}[I](e){if(this[k])this[B](e);else if(!e&&!this[b])this[F]();else{this[k]=true;if(this[b]){this[B](e);const t=this[b];this[b]=null;this[N](t)}else{this[N](e)}while(this[b]&&this[b].length>=512&&!this[T]&&!this[W]){const e=this[b];this[b]=null;this[N](e)}this[k]=false}if(!this[b]||this[R])this[F]()}[N](e){let t=0;let i=e.length;while(t+512<=i&&!this[T]&&!this[W]){switch(this[d]){case"begin":case"header":this[A](e,t);t+=512;break;case"ignore":case"body":t+=this[C](e,t);break;case"meta":t+=this[D](e,t);break;default:throw new Error("invalid state: "+this[d])}}if(t<i){if(this[b])this[b]=Buffer.concat([e.slice(t),this[b]]);else this[b]=e.slice(t)}}end(e){if(!this[T]){if(this[L])this[L].end(e);else{this[R]=true;this.write(e)}}}})},211:function(e){e.exports=require("https")},232:function(e,t,i){"use strict";const n=i(554);const r=i(622).posix;const s=i(858);const o=Symbol("slurp");const a=Symbol("type");class Header{constructor(e,t,i,n){this.cksumValid=false;this.needPax=false;this.nullBlock=false;this.block=null;this.path=null;this.mode=null;this.uid=null;this.gid=null;this.size=null;this.mtime=null;this.cksum=null;this[a]="0";this.linkpath=null;this.uname=null;this.gname=null;this.devmaj=0;this.devmin=0;this.atime=null;this.ctime=null;if(Buffer.isBuffer(e))this.decode(e,t||0,i,n);else if(e)this.set(e)}decode(e,t,i,n){if(!t)t=0;if(!e||!(e.length>=t+512))throw new Error("need 512 bytes for header");this.path=u(e,t,100);this.mode=f(e,t+100,8);this.uid=f(e,t+108,8);this.gid=f(e,t+116,8);this.size=f(e,t+124,12);this.mtime=c(e,t+136,12);this.cksum=f(e,t+148,12);this[o](i);this[o](n,true);this[a]=u(e,t+156,1);if(this[a]==="")this[a]="0";if(this[a]==="0"&&this.path.substr(-1)==="/")this[a]="5";if(this[a]==="5")this.size=0;this.linkpath=u(e,t+157,100);if(e.slice(t+257,t+265).toString()==="ustar\x0000"){this.uname=u(e,t+265,32);this.gname=u(e,t+297,32);this.devmaj=f(e,t+329,8);this.devmin=f(e,t+337,8);if(e[t+475]!==0){const i=u(e,t+345,155);this.path=i+"/"+this.path}else{const i=u(e,t+345,130);if(i)this.path=i+"/"+this.path;this.atime=c(e,t+476,12);this.ctime=c(e,t+488,12)}}let r=8*32;for(let i=t;i<t+148;i++){r+=e[i]}for(let i=t+156;i<t+512;i++){r+=e[i]}this.cksumValid=r===this.cksum;if(this.cksum===null&&r===8*32)this.nullBlock=true}[o](e,t){for(let i in e){if(e[i]!==null&&e[i]!==undefined&&!(t&&i==="path"))this[i]=e[i]}}encode(e,t){if(!e){e=this.block=Buffer.alloc(512);t=0}if(!t)t=0;if(!(e.length>=t+512))throw new Error("need 512 bytes for header");const i=this.ctime||this.atime?130:155;const n=l(this.path||"",i);const r=n[0];const s=n[1];this.needPax=n[2];this.needPax=b(e,t,100,r)||this.needPax;this.needPax=v(e,t+100,8,this.mode)||this.needPax;this.needPax=v(e,t+108,8,this.uid)||this.needPax;this.needPax=v(e,t+116,8,this.gid)||this.needPax;this.needPax=v(e,t+124,12,this.size)||this.needPax;this.needPax=g(e,t+136,12,this.mtime)||this.needPax;e[t+156]=this[a].charCodeAt(0);this.needPax=b(e,t+157,100,this.linkpath)||this.needPax;e.write("ustar\x0000",t+257,8);this.needPax=b(e,t+265,32,this.uname)||this.needPax;this.needPax=b(e,t+297,32,this.gname)||this.needPax;this.needPax=v(e,t+329,8,this.devmaj)||this.needPax;this.needPax=v(e,t+337,8,this.devmin)||this.needPax;this.needPax=b(e,t+345,i,s)||this.needPax;if(e[t+475]!==0)this.needPax=b(e,t+345,155,s)||this.needPax;else{this.needPax=b(e,t+345,130,s)||this.needPax;this.needPax=g(e,t+476,12,this.atime)||this.needPax;this.needPax=g(e,t+488,12,this.ctime)||this.needPax}let o=8*32;for(let i=t;i<t+148;i++){o+=e[i]}for(let i=t+156;i<t+512;i++){o+=e[i]}this.cksum=o;v(e,t+148,8,this.cksum);this.cksumValid=true;return this.needPax}set(e){for(let t in e){if(e[t]!==null&&e[t]!==undefined)this[t]=e[t]}}get type(){return n.name.get(this[a])||this[a]}get typeKey(){return this[a]}set type(e){if(n.code.has(e))this[a]=n.code.get(e);else this[a]=e}}const l=(e,t)=>{const i=100;let n=e;let s="";let o;const a=r.parse(e).root||".";if(Buffer.byteLength(n)<i)o=[n,s,false];else{s=r.dirname(n);n=r.basename(n);do{if(Buffer.byteLength(n)<=i&&Buffer.byteLength(s)<=t)o=[n,s,false];else if(Buffer.byteLength(n)>i&&Buffer.byteLength(s)<=t)o=[n.substr(0,i-1),s,true];else{n=r.join(r.basename(s),n);s=r.dirname(s)}}while(s!==a&&!o);if(!o)o=[e.substr(0,i-1),"",true]}return o};const u=(e,t,i)=>e.slice(t,t+i).toString("utf8").replace(/\0.*/,"");const c=(e,t,i)=>h(f(e,t,i));const h=e=>e===null?null:new Date(e*1e3);const f=(e,t,i)=>e[t]&128?s.parse(e.slice(t,t+i)):m(e,t,i);const d=e=>isNaN(e)?null:e;const m=(e,t,i)=>d(parseInt(e.slice(t,t+i).toString("utf8").replace(/\0.*$/,"").trim(),8));const p={12:8589934591,8:2097151};const v=(e,t,i,n)=>n===null?false:n>p[i]||n<0?(s.encode(n,e.slice(t,t+i)),true):(y(e,t,i,n),false);const y=(e,t,i,n)=>e.write(_(n,i),t,i,"ascii");const _=(e,t)=>w(Math.floor(e).toString(8),t);const w=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0";const g=(e,t,i,n)=>n===null?false:v(e,t,i,n.getTime()/1e3);const S=new Array(156).join("\0");const b=(e,t,i,n)=>n===null?false:(e.write(n+S,t,i,"utf8"),n.length!==Buffer.byteLength(n)||n.length>i);e.exports=Header},250:function(e,t,i){var n=i(619);var r=process.cwd;var s=null;var o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!s)s=r.call(process);return s};try{process.cwd()}catch(e){}var a=process.chdir;process.chdir=function(e){s=null;a.call(process,e)};e.exports=patch;function patch(e){if(n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(!e.lchmod){e.lchmod=function(e,t,i){if(i)process.nextTick(i)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,t,i,n){if(n)process.nextTick(n)};e.lchownSync=function(){}}if(o==="win32"){e.rename=function(t){return function(i,n,r){var s=Date.now();var o=0;t(i,n,function CB(a){if(a&&(a.code==="EACCES"||a.code==="EPERM")&&Date.now()-s<6e4){setTimeout(function(){e.stat(n,function(e,s){if(e&&e.code==="ENOENT")t(i,n,CB);else r(a)})},o);if(o<100)o+=10;return}if(r)r(a)})}}(e.rename)}e.read=function(t){function read(i,n,r,s,o,a){var l;if(a&&typeof a==="function"){var u=0;l=function(c,h,f){if(c&&c.code==="EAGAIN"&&u<10){u++;return t.call(e,i,n,r,s,o,l)}a.apply(this,arguments)}}return t.call(e,i,n,r,s,o,l)}read.__proto__=t;return read}(e.read);e.readSync=function(t){return function(i,n,r,s,o){var a=0;while(true){try{return t.call(e,i,n,r,s,o)}catch(e){if(e.code==="EAGAIN"&&a<10){a++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,i,r){e.open(t,n.O_WRONLY|n.O_SYMLINK,i,function(t,n){if(t){if(r)r(t);return}e.fchmod(n,i,function(t){e.close(n,function(e){if(r)r(t||e)})})})};e.lchmodSync=function(t,i){var r=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,i);var s=true;var o;try{o=e.fchmodSync(r,i);s=false}finally{if(s){try{e.closeSync(r)}catch(e){}}else{e.closeSync(r)}}return o}}function patchLutimes(e){if(n.hasOwnProperty("O_SYMLINK")){e.lutimes=function(t,i,r,s){e.open(t,n.O_SYMLINK,function(t,n){if(t){if(s)s(t);return}e.futimes(n,i,r,function(t){e.close(n,function(e){if(s)s(t||e)})})})};e.lutimesSync=function(t,i,r){var s=e.openSync(t,n.O_SYMLINK);var o;var a=true;try{o=e.futimesSync(s,i,r);a=false}finally{if(a){try{e.closeSync(s)}catch(e){}}else{e.closeSync(s)}}return o}}else{e.lutimes=function(e,t,i,n){if(n)process.nextTick(n)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(i,n,r){return t.call(e,i,n,function(e){if(chownErOk(e))e=null;if(r)r.apply(this,arguments)})}}function chmodFixSync(t){if(!t)return t;return function(i,n){try{return t.call(e,i,n)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(i,n,r,s){return t.call(e,i,n,r,function(e){if(chownErOk(e))e=null;if(s)s.apply(this,arguments)})}}function chownFixSync(t){if(!t)return t;return function(i,n,r){try{return t.call(e,i,n,r)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(i,n,r){if(typeof n==="function"){r=n;n=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(r)r.apply(this,arguments)}return n?t.call(e,i,n,callback):t.call(e,i,callback)}}function statFixSync(t){if(!t)return t;return function(i,n){var r=n?t.call(e,i,n):t.call(e,i);if(r.uid<0)r.uid+=4294967296;if(r.gid<0)r.gid+=4294967296;return r}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},293:function(e){e.exports=require("buffer")},303:function(e,t,i){"use strict";const n=i(720);const r=i(582);const s=i(232);const o=i(662);const a=i(747);const l=i(622);const u=i(554);const c=16*1024*1024;const h=Symbol("process");const f=Symbol("file");const d=Symbol("directory");const m=Symbol("symlink");const p=Symbol("hardlink");const v=Symbol("header");const y=Symbol("read");const _=Symbol("lstat");const w=Symbol("onlstat");const g=Symbol("onread");const S=Symbol("onreadlink");const b=Symbol("openfile");const E=Symbol("onopenfile");const R=Symbol("close");const x=Symbol("mode");const O=i(796);const L=i(478);const I=i(904);const N=O(class WriteEntry extends n{constructor(e,t){t=t||{};super(t);if(typeof e!=="string")throw new TypeError("path is required");this.path=e;this.portable=!!t.portable;this.myuid=process.getuid&&process.getuid();this.myuser=process.env.USER||"";this.maxReadSize=t.maxReadSize||c;this.linkCache=t.linkCache||new Map;this.statCache=t.statCache||new Map;this.preservePaths=!!t.preservePaths;this.cwd=t.cwd||process.cwd();this.strict=!!t.strict;this.noPax=!!t.noPax;this.noMtime=!!t.noMtime;this.mtime=t.mtime||null;if(typeof t.onwarn==="function")this.on("warn",t.onwarn);let i=false;if(!this.preservePaths&&l.win32.isAbsolute(e)){const t=l.win32.parse(e);this.path=e.substr(t.root.length);i=t.root}this.win32=!!t.win32||process.platform==="win32";if(this.win32){this.path=L.decode(this.path.replace(/\\/g,"/"));e=e.replace(/\\/g,"/")}this.absolute=t.absolute||l.resolve(this.cwd,e);if(this.path==="")this.path="./";if(i){this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path})}if(this.statCache.has(this.absolute))this[w](this.statCache.get(this.absolute));else this[_]()}[_](){a.lstat(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[w](t)})}[w](e){this.statCache.set(this.absolute,e);this.stat=e;if(!e.isFile())e.size=0;this.type=D(e);this.emit("stat",e);this[h]()}[h](){switch(this.type){case"File":return this[f]();case"Directory":return this[d]();case"SymbolicLink":return this[m]();default:return this.end()}}[x](e){return I(e,this.type==="Directory",this.portable)}[v](){if(this.type==="Directory"&&this.portable)this.noMtime=true;this.header=new s({path:this.path,linkpath:this.linkpath,mode:this[x](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime});if(this.header.encode()&&!this.noPax)this.write(new r({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this.path,linkpath:this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode());this.write(this.header.block)}[d](){if(this.path.substr(-1)!=="/")this.path+="/";this.stat.size=0;this[v]();this.end()}[m](){a.readlink(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[S](t)})}[S](e){this.linkpath=e.replace(/\\/g,"/");this[v]();this.end()}[p](e){this.type="Link";this.linkpath=l.relative(this.cwd,e).replace(/\\/g,"/");this.stat.size=0;this[v]();this.end()}[f](){if(this.stat.nlink>1){const e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){const t=this.linkCache.get(e);if(t.indexOf(this.cwd)===0)return this[p](t)}this.linkCache.set(e,this.absolute)}this[v]();if(this.stat.size===0)return this.end();this[b]()}[b](){a.open(this.absolute,"r",(e,t)=>{if(e)return this.emit("error",e);this[E](t)})}[E](e){const t=512*Math.ceil(this.stat.size/512);const i=Math.min(t,this.maxReadSize);const n=Buffer.allocUnsafe(i);this[y](e,n,0,n.length,0,this.stat.size,t)}[y](e,t,i,n,r,s,o){a.read(e,t,i,n,r,(a,l)=>{if(a){return this[R](e,()=>this.emit("error",a))}this[g](e,t,i,n,r,s,o,l)})}[R](e,t){a.close(e,t)}[g](e,t,i,n,r,s,o,a){if(a<=0&&s>0){const t=new Error("encountered unexpected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";return this[R](e,()=>this.emit("error",t))}if(a>s){const t=new Error("did not encounter expected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";return this[R](e,()=>this.emit("error",t))}if(a===s){for(let e=a;e<n&&a<o;e++){t[e+i]=0;a++;s++}}const l=i===0&&a===t.length?t:t.slice(i,i+a);s-=a;o-=a;r+=a;i+=a;this.write(l);if(!s){if(o)this.write(Buffer.alloc(o));return this[R](e,e=>e?this.emit("error",e):this.end())}if(i>=n){t=Buffer.allocUnsafe(n);i=0}n=t.length-i;this[y](e,t,i,n,r,s,o)}});class WriteEntrySync extends N{constructor(e,t){super(e,t)}[_](){this[w](a.lstatSync(this.absolute))}[m](){this[S](a.readlinkSync(this.absolute))}[b](){this[E](a.openSync(this.absolute,"r"))}[y](e,t,i,n,r,s,o){let l=true;try{const u=a.readSync(e,t,i,n,r);this[g](e,t,i,n,r,s,o,u);l=false}finally{if(l)try{this[R](e,()=>{})}catch(e){}}}[R](e,t){a.closeSync(e);t()}}const C=O(class WriteEntryTar extends n{constructor(e,t){t=t||{};super(t);this.preservePaths=!!t.preservePaths;this.portable=!!t.portable;this.strict=!!t.strict;this.noPax=!!t.noPax;this.noMtime=!!t.noMtime;this.readEntry=e;this.type=e.type;if(this.type==="Directory"&&this.portable)this.noMtime=true;this.path=e.path;this.mode=this[x](e.mode);this.uid=this.portable?null:e.uid;this.gid=this.portable?null:e.gid;this.uname=this.portable?null:e.uname;this.gname=this.portable?null:e.gname;this.size=e.size;this.mtime=this.noMtime?null:t.mtime||e.mtime;this.atime=this.portable?null:e.atime;this.ctime=this.portable?null:e.ctime;this.linkpath=e.linkpath;if(typeof t.onwarn==="function")this.on("warn",t.onwarn);let i=false;if(l.isAbsolute(this.path)&&!this.preservePaths){const e=l.parse(this.path);i=e.root;this.path=this.path.substr(e.root.length)}this.remain=e.size;this.blockRemain=e.startBlockSize;this.header=new s({path:this.path,linkpath:this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime});if(i){this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path})}if(this.header.encode()&&!this.noPax)super.write(new r({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this.path,linkpath:this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode());super.write(this.header.block);e.pipe(this)}[x](e){return I(e,this.type==="Directory",this.portable)}write(e){const t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");this.blockRemain-=t;return super.write(e)}end(){if(this.blockRemain)this.write(Buffer.alloc(this.blockRemain));return super.end()}});N.Sync=WriteEntrySync;N.Tar=C;const D=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=N},304:function(e){e.exports=require("string_decoder")},324:function(e,t,i){var n=i(747);var r=i(669);var s=i(413);var o=s.Readable;var a=s.Writable;var l=s.PassThrough;var u=i(965);var c=i(614).EventEmitter;t.createFromBuffer=createFromBuffer;t.createFromFd=createFromFd;t.BufferSlicer=BufferSlicer;t.FdSlicer=FdSlicer;r.inherits(FdSlicer,c);function FdSlicer(e,t){t=t||{};c.call(this);this.fd=e;this.pend=new u;this.pend.max=1;this.refCount=0;this.autoClose=!!t.autoClose}FdSlicer.prototype.read=function(e,t,i,r,s){var o=this;o.pend.go(function(a){n.read(o.fd,e,t,i,r,function(e,t,i){a();s(e,t,i)})})};FdSlicer.prototype.write=function(e,t,i,r,s){var o=this;o.pend.go(function(a){n.write(o.fd,e,t,i,r,function(e,t,i){a();s(e,t,i)})})};FdSlicer.prototype.createReadStream=function(e){return new ReadStream(this,e)};FdSlicer.prototype.createWriteStream=function(e){return new WriteStream(this,e)};FdSlicer.prototype.ref=function(){this.refCount+=1};FdSlicer.prototype.unref=function(){var e=this;e.refCount-=1;if(e.refCount>0)return;if(e.refCount<0)throw new Error("invalid unref");if(e.autoClose){n.close(e.fd,onCloseDone)}function onCloseDone(t){if(t){e.emit("error",t)}else{e.emit("close")}}};r.inherits(ReadStream,o);function ReadStream(e,t){t=t||{};o.call(this,t);this.context=e;this.context.ref();this.start=t.start||0;this.endOffset=t.end;this.pos=this.start;this.destroyed=false}ReadStream.prototype._read=function(e){var t=this;if(t.destroyed)return;var i=Math.min(t._readableState.highWaterMark,e);if(t.endOffset!=null){i=Math.min(i,t.endOffset-t.pos)}if(i<=0){t.destroyed=true;t.push(null);t.context.unref();return}t.context.pend.go(function(e){if(t.destroyed)return e();var r=new Buffer(i);n.read(t.context.fd,r,0,i,t.pos,function(i,n){if(i){t.destroy(i)}else if(n===0){t.destroyed=true;t.push(null);t.context.unref()}else{t.pos+=n;t.push(r.slice(0,n))}e()})})};ReadStream.prototype.destroy=function(e){if(this.destroyed)return;e=e||new Error("stream destroyed");this.destroyed=true;this.emit("error",e);this.context.unref()};r.inherits(WriteStream,a);function WriteStream(e,t){t=t||{};a.call(this,t);this.context=e;this.context.ref();this.start=t.start||0;this.endOffset=t.end==null?Infinity:+t.end;this.bytesWritten=0;this.pos=this.start;this.destroyed=false;this.on("finish",this.destroy.bind(this))}WriteStream.prototype._write=function(e,t,i){var r=this;if(r.destroyed)return;if(r.pos+e.length>r.endOffset){var s=new Error("maximum file length exceeded");s.code="ETOOBIG";r.destroy();i(s);return}r.context.pend.go(function(t){if(r.destroyed)return t();n.write(r.context.fd,e,0,e.length,r.pos,function(e,n){if(e){r.destroy();t();i(e)}else{r.bytesWritten+=n;r.pos+=n;r.emit("progress");t();i()}})})};WriteStream.prototype.destroy=function(){if(this.destroyed)return;this.destroyed=true;this.context.unref()};r.inherits(BufferSlicer,c);function BufferSlicer(e,t){c.call(this);t=t||{};this.refCount=0;this.buffer=e;this.maxChunkSize=t.maxChunkSize||Number.MAX_SAFE_INTEGER}BufferSlicer.prototype.read=function(e,t,i,n,r){var s=n+i;var o=s-this.buffer.length;var a=o>0?o:i;this.buffer.copy(e,t,n,s);setImmediate(function(){r(null,a)})};BufferSlicer.prototype.write=function(e,t,i,n,r){e.copy(this.buffer,n,t,t+i);setImmediate(function(){r(null,i,e)})};BufferSlicer.prototype.createReadStream=function(e){e=e||{};var t=new l(e);t.destroyed=false;t.start=e.start||0;t.endOffset=e.end;t.pos=t.endOffset||this.buffer.length;var i=this.buffer.slice(t.start,t.pos);var n=0;while(true){var r=n+this.maxChunkSize;if(r>=i.length){if(n<i.length){t.write(i.slice(n,i.length))}break}t.write(i.slice(n,r));n=r}t.end();t.destroy=function(){t.destroyed=true};return t};BufferSlicer.prototype.createWriteStream=function(e){var t=this;e=e||{};var i=new a(e);i.start=e.start||0;i.endOffset=e.end==null?this.buffer.length:+e.end;i.bytesWritten=0;i.pos=i.start;i.destroyed=false;i._write=function(e,n,r){if(i.destroyed)return;var s=i.pos+e.length;if(s>i.endOffset){var o=new Error("maximum file length exceeded");o.code="ETOOBIG";i.destroyed=true;r(o);return}e.copy(t.buffer,i.pos,0,e.length);i.bytesWritten+=e.length;i.pos=s;i.emit("progress");r()};i.destroy=function(){i.destroyed=true};return i};BufferSlicer.prototype.ref=function(){this.refCount+=1};BufferSlicer.prototype.unref=function(){this.refCount-=1;if(this.refCount<0){throw new Error("invalid unref")}};function createFromBuffer(e,t){return new BufferSlicer(e,t)}function createFromFd(e,t){return new FdSlicer(e,t)}},336:function(e,t,i){const n=i(747);const r=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version;const s=r.replace(/^v/,"").split(".");const o=+s[0]>10||+s[0]===10&&+s[1]>=12;const a=!o?()=>false:e=>e.mkdir===n.mkdir;const l=!o?()=>false:e=>e.mkdirSync===n.mkdirSync;e.exports={useNative:a,useNativeSync:l}},357:function(e){e.exports=require("assert")},381:function(e,t,i){"use strict";const n=i(891);const r=i(203);const s=i(747);const o=i(827);const a=i(622);const l=e.exports=((e,t,i)=>{if(typeof e==="function")i=e,t=null,e={};else if(Array.isArray(e))t=e,e={};if(typeof t==="function")i=t,t=null;if(!t)t=[];else t=Array.from(t);const r=n(e);if(r.sync&&typeof i==="function")throw new TypeError("callback not supported for sync tar functions");if(!r.file&&typeof i==="function")throw new TypeError("callback only supported with file option");if(t.length)c(r,t);if(!r.noResume)u(r);return r.file&&r.sync?h(r):r.file?f(r,i):d(r)});const u=e=>{const t=e.onentry;e.onentry=t?e=>{t(e);e.resume()}:e=>e.resume()};const c=(e,t)=>{const i=new Map(t.map(e=>[e.replace(/\/+$/,""),true]));const n=e.filter;const r=(e,t)=>{const n=t||a.parse(e).root||".";const s=e===n?false:i.has(e)?i.get(e):r(a.dirname(e),n);i.set(e,s);return s};e.filter=n?(e,t)=>n(e,t)&&r(e.replace(/\/+$/,"")):e=>r(e.replace(/\/+$/,""))};const h=e=>{const t=d(e);const i=e.file;let n=true;let r;try{const o=s.statSync(i);const a=e.maxReadSize||16*1024*1024;if(o.size<a){t.end(s.readFileSync(i))}else{let e=0;const n=Buffer.allocUnsafe(a);r=s.openSync(i,"r");while(e<o.size){let i=s.readSync(r,n,0,a,e);e+=i;t.write(n.slice(0,i))}t.end()}n=false}finally{if(n&&r)try{s.closeSync(r)}catch(e){}}};const f=(e,t)=>{const i=new r(e);const n=e.maxReadSize||16*1024*1024;const a=e.file;const l=new Promise((e,t)=>{i.on("error",t);i.on("end",e);s.stat(a,(e,r)=>{if(e)t(e);else{const e=new o.ReadStream(a,{readSize:n,size:r.size});e.on("error",t);e.pipe(i)}})});return t?l.then(t,t):l};const d=e=>new r(e)},396:function(e){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},413:function(e){e.exports=require("stream")},417:function(e){e.exports=require("crypto")},478:function(e){"use strict";const t=["|","<",">","?",":"];const i=t.map(e=>String.fromCharCode(61440+e.charCodeAt(0)));const n=new Map(t.map((e,t)=>[e,i[t]]));const r=new Map(i.map((e,i)=>[e,t[i]]));e.exports={encode:e=>t.reduce((e,t)=>e.split(t).join(n.get(t)),e),decode:e=>i.reduce((e,t)=>e.split(t).join(r.get(t)),e)}},538:function(e,t,i){var n=i(293).Buffer;var r=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];if(typeof Int32Array!=="undefined"){r=new Int32Array(r)}function ensureBuffer(e){if(n.isBuffer(e)){return e}var t=typeof n.alloc==="function"&&typeof n.from==="function";if(typeof e==="number"){return t?n.alloc(e):new n(e)}else if(typeof e==="string"){return t?n.from(e):new n(e)}else{throw new Error("input must be buffer, number, or string, received "+typeof e)}}function bufferizeInt(e){var t=ensureBuffer(4);t.writeInt32BE(e,0);return t}function _crc32(e,t){e=ensureBuffer(e);if(n.isBuffer(t)){t=t.readUInt32BE(0)}var i=~~t^-1;for(var s=0;s<e.length;s++){i=r[(i^e[s])&255]^i>>>8}return i^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};e.exports=crc32},554:function(e,t){"use strict";t.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);t.code=new Map(Array.from(t.name).map(e=>[e[1],e[0]]))},561:function(e,t,i){const{dirname:n}=i(622);const{findMade:r,findMadeSync:s}=i(92);const{mkdirpManual:o,mkdirpManualSync:a}=i(806);const l=(e,t)=>{t.recursive=true;const i=n(e);if(i===e)return t.mkdirAsync(e,t);return r(t,e).then(i=>t.mkdirAsync(e,t).then(()=>i).catch(i=>{if(i.code==="ENOENT")return o(e,t);else throw i}))};const u=(e,t)=>{t.recursive=true;const i=n(e);if(i===e)return t.mkdirSync(e,t);const r=s(t,e);try{t.mkdirSync(e,t);return r}catch(i){if(i.code==="ENOENT")return a(e,t);else throw i}};e.exports={mkdirpNative:l,mkdirpNativeSync:u}},577:function(e,t,i){"use strict";const n=i(626);const r=i(747);const s=i(622);const o=i(941);class SymlinkError extends Error{constructor(e,t){super("Cannot extract through symbolic link");this.path=t;this.symlink=e}get name(){return"SylinkError"}}class CwdError extends Error{constructor(e,t){super(t+": Cannot cd into '"+e+"'");this.path=e;this.code=t}get name(){return"CwdError"}}const a=e.exports=((e,t,i)=>{const a=t.umask;const u=t.mode|448;const c=(u&a)!==0;const h=t.uid;const f=t.gid;const d=typeof h==="number"&&typeof f==="number"&&(h!==t.processUid||f!==t.processGid);const m=t.preserve;const p=t.unlink;const v=t.cache;const y=t.cwd;const _=(t,n)=>{if(t)i(t);else{v.set(e,true);if(n&&d)o(n,h,f,e=>_(e));else if(c)r.chmod(e,u,i);else i()}};if(v&&v.get(e)===true)return _();if(e===y)return r.stat(e,(t,i)=>{if(t||!i.isDirectory())t=new CwdError(e,t&&t.code||"ENOTDIR");_(t)});if(m)return n(e,{mode:u}).then(e=>_(null,e),_);const w=s.relative(y,e);const g=w.split(/\/|\\/);l(y,g,u,v,p,y,null,_)});const l=(e,t,i,n,s,o,a,c)=>{if(!t.length)return c(null,a);const h=t.shift();const f=e+"/"+h;if(n.get(f))return l(f,t,i,n,s,o,a,c);r.mkdir(f,i,u(f,t,i,n,s,o,a,c))};const u=(e,t,i,n,o,a,c,h)=>f=>{if(f){if(f.path&&s.dirname(f.path)===a&&(f.code==="ENOTDIR"||f.code==="ENOENT"))return h(new CwdError(a,f.code));r.lstat(e,(s,d)=>{if(s)h(s);else if(d.isDirectory())l(e,t,i,n,o,a,c,h);else if(o)r.unlink(e,s=>{if(s)return h(s);r.mkdir(e,i,u(e,t,i,n,o,a,c,h))});else if(d.isSymbolicLink())return h(new SymlinkError(e,e+"/"+t.join("/")));else h(f)})}else{c=c||e;l(e,t,i,n,o,a,c,h)}};const c=e.exports.sync=((e,t)=>{const i=t.umask;const a=t.mode|448;const l=(a&i)!==0;const u=t.uid;const c=t.gid;const h=typeof u==="number"&&typeof c==="number"&&(u!==t.processUid||c!==t.processGid);const f=t.preserve;const d=t.unlink;const m=t.cache;const p=t.cwd;const v=t=>{m.set(e,true);if(t&&h)o.sync(t,u,c);if(l)r.chmodSync(e,a)};if(m&&m.get(e)===true)return v();if(e===p){let t=false;let i="ENOTDIR";try{t=r.statSync(e).isDirectory()}catch(e){i=e.code}finally{if(!t)throw new CwdError(e,i)}v();return}if(f)return v(n.sync(e,a));const y=s.relative(p,e);const _=y.split(/\/|\\/);let w=null;for(let e=_.shift(),t=p;e&&(t+="/"+e);e=_.shift()){if(m.get(t))continue;try{r.mkdirSync(t,a);w=w||t;m.set(t,true)}catch(e){if(e.path&&s.dirname(e.path)===p&&(e.code==="ENOTDIR"||e.code==="ENOENT"))return new CwdError(p,e.code);const i=r.lstatSync(t);if(i.isDirectory()){m.set(t,true);continue}else if(d){r.unlinkSync(t);r.mkdirSync(t,a);w=w||t;m.set(t,true);continue}else if(i.isSymbolicLink())return new SymlinkError(t,t+"/"+_.join("/"))}}return v(w)})},582:function(e,t,i){"use strict";const n=i(232);const r=i(622);class Pax{constructor(e,t){this.atime=e.atime||null;this.charset=e.charset||null;this.comment=e.comment||null;this.ctime=e.ctime||null;this.gid=e.gid||null;this.gname=e.gname||null;this.linkpath=e.linkpath||null;this.mtime=e.mtime||null;this.path=e.path||null;this.size=e.size||null;this.uid=e.uid||null;this.uname=e.uname||null;this.dev=e.dev||null;this.ino=e.ino||null;this.nlink=e.nlink||null;this.global=t||false}encode(){const e=this.encodeBody();if(e==="")return null;const t=Buffer.byteLength(e);const i=512*Math.ceil(1+t/512);const s=Buffer.allocUnsafe(i);for(let e=0;e<512;e++){s[e]=0}new n({path:("PaxHeader/"+r.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:t,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(s);s.write(e,512,t,"utf8");for(let e=t+512;e<s.length;e++){s[e]=0}return s}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===undefined)return"";const t=this[e]instanceof Date?this[e].getTime()/1e3:this[e];const i=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+t+"\n";const n=Buffer.byteLength(i);let r=Math.floor(Math.log(n)/Math.log(10))+1;if(n+r>=Math.pow(10,r))r+=1;const s=r+n;return s+i}}Pax.parse=((e,t,i)=>new Pax(s(o(e),t),i));const s=(e,t)=>t?Object.keys(e).reduce((t,i)=>(t[i]=e[i],t),t):e;const o=e=>e.replace(/\n$/,"").split("\n").reduce(a,Object.create(null));const a=(e,t)=>{const i=parseInt(t,10);if(i!==Buffer.byteLength(t)+1)return e;t=t.substr((i+" ").length);const n=t.split("=");const r=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!r)return e;const s=n.join("=");e[r]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(r)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s;return e};e.exports=Pax},598:function(e,t,i){var n=i(747);var r=i(250);var s=i(93);var o=i(608);var a=i(669);var l;var u;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){l=Symbol.for("graceful-fs.queue");u=Symbol.for("graceful-fs.previous")}else{l="___graceful-fs.queue";u="___graceful-fs.previous"}function noop(){}var c=noop;if(a.debuglog)c=a.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))c=function(){var e=a.format.apply(a,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!global[l]){var h=[];Object.defineProperty(global,l,{get:function(){return h}});n.close=function(e){function close(t,i){return e.call(n,t,function(e){if(!e){retry()}if(typeof i==="function")i.apply(this,arguments)})}Object.defineProperty(close,u,{value:e});return close}(n.close);n.closeSync=function(e){function closeSync(t){e.apply(n,arguments);retry()}Object.defineProperty(closeSync,u,{value:e});return closeSync}(n.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",function(){c(global[l]);i(357).equal(global[l].length,0)})}}e.exports=patch(o(n));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched){e.exports=patch(n);n.__patched=true}function patch(e){r(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,i,n){if(typeof i==="function")n=i,i=null;return go$readFile(e,i,n);function go$readFile(e,i,n){return t(e,i,function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,i,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}})}}var i=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,n,r){if(typeof n==="function")r=n,n=null;return go$writeFile(e,t,n,r);function go$writeFile(e,t,n,r){return i(e,t,n,function(i){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$writeFile,[e,t,n,r]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}})}}var n=e.appendFile;if(n)e.appendFile=appendFile;function appendFile(e,t,i,r){if(typeof i==="function")r=i,i=null;return go$appendFile(e,t,i,r);function go$appendFile(e,t,i,r){return n(e,t,i,function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$appendFile,[e,t,i,r]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}})}}var o=e.readdir;e.readdir=readdir;function readdir(e,t,i){var n=[e];if(typeof t!=="function"){n.push(t)}else{i=t}n.push(go$readdir$cb);return go$readdir(n);function go$readdir$cb(e,t){if(t&&t.sort)t.sort();if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))enqueue([go$readdir,[n]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}}}function go$readdir(t){return o.apply(e,t)}if(process.version.substr(0,4)==="v0.8"){var a=s(e);ReadStream=a.ReadStream;WriteStream=a.WriteStream}var l=e.ReadStream;if(l){ReadStream.prototype=Object.create(l.prototype);ReadStream.prototype.open=ReadStream$open}var u=e.WriteStream;if(u){WriteStream.prototype=Object.create(u.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var c=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return c},set:function(e){c=e},enumerable:true,configurable:true});var h=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(e){h=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return l.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,i){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=i;e.emit("open",i);e.read()}})}function WriteStream(e,t){if(this instanceof WriteStream)return u.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,i){if(t){e.destroy();e.emit("error",t)}else{e.fd=i;e.emit("open",i)}})}function createReadStream(t,i){return new e.ReadStream(t,i)}function createWriteStream(t,i){return new e.WriteStream(t,i)}var f=e.open;e.open=open;function open(e,t,i,n){if(typeof i==="function")n=i,i=null;return go$open(e,t,i,n);function go$open(e,t,i,n){return f(e,t,i,function(r,s){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$open,[e,t,i,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}})}}return e}function enqueue(e){c("ENQUEUE",e[0].name,e[1]);global[l].push(e)}function retry(){var e=global[l].shift();if(e){c("RETRY",e[0].name,e[1]);e[0].apply(null,e[1])}}},605:function(e){e.exports=require("http")},608:function(e){"use strict";e.exports=clone;function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var t={__proto__:e.__proto__};else var t=Object.create(null);Object.getOwnPropertyNames(e).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))});return t}},612:function(e,t,i){"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach(function(e){t.push(e)})}else if(arguments.length>0){for(var i=0,n=arguments.length;i<n;i++){t.push(arguments[i])}}return t}Yallist.prototype.removeNode=function(e){if(e.list!==this){throw new Error("removing node which does not belong to this list")}var t=e.next;var i=e.prev;if(t){t.prev=i}if(i){i.next=t}if(e===this.head){this.head=t}if(e===this.tail){this.tail=i}e.list.length--;e.next=null;e.prev=null;e.list=null;return t};Yallist.prototype.unshiftNode=function(e){if(e===this.head){return}if(e.list){e.list.removeNode(e)}var t=this.head;e.list=this;e.next=t;if(t){t.prev=e}this.head=e;if(!this.tail){this.tail=e}this.length++};Yallist.prototype.pushNode=function(e){if(e===this.tail){return}if(e.list){e.list.removeNode(e)}var t=this.tail;e.list=this;e.prev=t;if(t){t.next=e}this.tail=e;if(!this.head){this.head=e}this.length++};Yallist.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++){push(this,arguments[e])}return this.length};Yallist.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++){unshift(this,arguments[e])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var e=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return e};Yallist.prototype.shift=function(){if(!this.head){return undefined}var e=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return e};Yallist.prototype.forEach=function(e,t){t=t||this;for(var i=this.head,n=0;i!==null;n++){e.call(t,i.value,n,this);i=i.next}};Yallist.prototype.forEachReverse=function(e,t){t=t||this;for(var i=this.tail,n=this.length-1;i!==null;n--){e.call(t,i.value,n,this);i=i.prev}};Yallist.prototype.get=function(e){for(var t=0,i=this.head;i!==null&&t<e;t++){i=i.next}if(t===e&&i!==null){return i.value}};Yallist.prototype.getReverse=function(e){for(var t=0,i=this.tail;i!==null&&t<e;t++){i=i.prev}if(t===e&&i!==null){return i.value}};Yallist.prototype.map=function(e,t){t=t||this;var i=new Yallist;for(var n=this.head;n!==null;){i.push(e.call(t,n.value,this));n=n.next}return i};Yallist.prototype.mapReverse=function(e,t){t=t||this;var i=new Yallist;for(var n=this.tail;n!==null;){i.push(e.call(t,n.value,this));n=n.prev}return i};Yallist.prototype.reduce=function(e,t){var i;var n=this.head;if(arguments.length>1){i=t}else if(this.head){n=this.head.next;i=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var r=0;n!==null;r++){i=e(i,n.value,r);n=n.next}return i};Yallist.prototype.reduceReverse=function(e,t){var i;var n=this.tail;if(arguments.length>1){i=t}else if(this.tail){n=this.tail.prev;i=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var r=this.length-1;n!==null;r--){i=e(i,n.value,r);n=n.prev}return i};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,i=this.head;i!==null;t++){e[t]=i.value;i=i.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,i=this.tail;i!==null;t++){e[t]=i.value;i=i.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var i=new Yallist;if(t<e||t<0){return i}if(e<0){e=0}if(t>this.length){t=this.length}for(var n=0,r=this.head;r!==null&&n<e;n++){r=r.next}for(;r!==null&&n<t;n++,r=r.next){i.push(r.value)}return i};Yallist.prototype.sliceReverse=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var i=new Yallist;if(t<e||t<0){return i}if(e<0){e=0}if(t>this.length){t=this.length}for(var n=this.length,r=this.tail;r!==null&&n>t;n--){r=r.prev}for(;r!==null&&n>e;n--,r=r.prev){i.push(r.value)}return i};Yallist.prototype.splice=function(e,t,...i){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var n=0,r=this.head;r!==null&&n<e;n++){r=r.next}var s=[];for(var n=0;r&&n<t;n++){s.push(r.value);r=this.removeNode(r)}if(r===null){r=this.tail}if(r!==this.head&&r!==this.tail){r=r.prev}for(var n=0;n<i.length;n++){r=insert(this,r,i[n])}return s};Yallist.prototype.reverse=function(){var e=this.head;var t=this.tail;for(var i=e;i!==null;i=i.prev){var n=i.prev;i.prev=i.next;i.next=n}this.head=t;this.tail=e;return this};function insert(e,t,i){var n=t===e.head?new Node(i,null,t,e):new Node(i,t,t.next,e);if(n.next===null){e.tail=n}if(n.prev===null){e.head=n}e.length++;return n}function push(e,t){e.tail=new Node(t,e.tail,null,e);if(!e.head){e.head=e.tail}e.length++}function unshift(e,t){e.head=new Node(t,null,e.head,e);if(!e.tail){e.tail=e.head}e.length++}function Node(e,t,i,n){if(!(this instanceof Node)){return new Node(e,t,i,n)}this.list=n;this.value=e;if(t){t.next=this;this.prev=t}else{this.prev=null}if(i){i.prev=this;this.next=i}else{this.next=null}}try{i(396)(Yallist)}catch(e){}},614:function(e){e.exports=require("events")},619:function(e){e.exports=require("constants")},622:function(e){e.exports=require("path")},626:function(e,t,i){const n=i(795);const r=i(870);const{mkdirpNative:s,mkdirpNativeSync:o}=i(561);const{mkdirpManual:a,mkdirpManualSync:l}=i(806);const{useNative:u,useNativeSync:c}=i(336);const h=(e,t)=>{e=r(e);t=n(t);return u(t)?s(e,t):a(e,t)};const f=(e,t)=>{e=r(e);t=n(t);return c(t)?o(e,t):l(e,t)};h.sync=f;h.native=((e,t)=>s(r(e),n(t)));h.manual=((e,t)=>a(r(e),n(t)));h.nativeSync=((e,t)=>o(r(e),n(t)));h.manualSync=((e,t)=>l(r(e),n(t)));e.exports=h},630:function(e,t,i){"use strict";const n=i(891);const r=i(726);const s=i(203);const o=i(747);const a=i(827);const l=i(381);const u=i(622);const c=i(232);const h=e.exports=((e,t,i)=>{const r=n(e);if(!r.file)throw new TypeError("file is required");if(r.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);return r.sync?f(r,t):m(r,t,i)});const f=(e,t)=>{const i=new r.Sync(e);let n=true;let s;let a;try{try{s=o.openSync(e.file,"r+")}catch(t){if(t.code==="ENOENT")s=o.openSync(e.file,"w+");else throw t}const r=o.fstatSync(s);const l=Buffer.alloc(512);e:for(a=0;a<r.size;a+=512){for(let e=0,t=0;e<512;e+=t){t=o.readSync(s,l,e,l.length-e,a+e);if(a===0&&l[0]===31&&l[1]===139)throw new Error("cannot append to compressed archives");if(!t)break e}let t=new c(l);if(!t.cksumValid)break;let i=512*Math.ceil(t.size/512);if(a+i+512>r.size)break;a+=i;if(e.mtimeCache)e.mtimeCache.set(t.path,t.mtime)}n=false;d(e,i,a,s,t)}finally{if(n)try{o.closeSync(s)}catch(e){}}};const d=(e,t,i,n,r)=>{const s=new a.WriteStreamSync(e.file,{fd:n,start:i});t.pipe(s);p(t,r)};const m=(e,t,i)=>{t=Array.from(t);const n=new r(e);const s=(t,i,n)=>{const r=(e,i)=>{if(e)o.close(t,t=>n(e));else n(null,i)};let s=0;if(i===0)return r(null,0);let a=0;const l=Buffer.alloc(512);const u=(n,h)=>{if(n)return r(n);a+=h;if(a<512&&h)return o.read(t,l,a,l.length-a,s+a,u);if(s===0&&l[0]===31&&l[1]===139)return r(new Error("cannot append to compressed archives"));if(a<512)return r(null,s);const f=new c(l);if(!f.cksumValid)return r(null,s);const d=512*Math.ceil(f.size/512);if(s+d+512>i)return r(null,s);s+=d+512;if(s>=i)return r(null,s);if(e.mtimeCache)e.mtimeCache.set(f.path,f.mtime);a=0;o.read(t,l,0,512,s,u)};o.read(t,l,0,512,s,u)};const l=new Promise((i,r)=>{n.on("error",r);let l="r+";const u=(c,h)=>{if(c&&c.code==="ENOENT"&&l==="r+"){l="w+";return o.open(e.file,l,u)}if(c)return r(c);o.fstat(h,(o,l)=>{if(o)return r(o);s(h,l.size,(s,o)=>{if(s)return r(s);const l=new a.WriteStream(e.file,{fd:h,start:o});n.pipe(l);l.on("error",r);l.on("close",i);v(n,t)})})};o.open(e.file,l,u)});return i?l.then(i,i):l};const p=(e,t)=>{t.forEach(t=>{if(t.charAt(0)==="@")l({file:u.resolve(e.cwd,t.substr(1)),sync:true,noResume:true,onentry:t=>e.add(t)});else e.add(t)});e.end()};const v=(e,t)=>{while(t.length){const i=t.shift();if(i.charAt(0)==="@")return l({file:u.resolve(e.cwd,i.substr(1)),noResume:true,onentry:t=>e.add(t)}).then(i=>v(e,t));else e.add(i)}e.end()}},656:function(e,t,i){"use strict";const n=i(891);const r=i(63);const s=i(747);const o=i(827);const a=i(622);const l=e.exports=((e,t,i)=>{if(typeof e==="function")i=e,t=null,e={};else if(Array.isArray(e))t=e,e={};if(typeof t==="function")i=t,t=null;if(!t)t=[];else t=Array.from(t);const r=n(e);if(r.sync&&typeof i==="function")throw new TypeError("callback not supported for sync tar functions");if(!r.file&&typeof i==="function")throw new TypeError("callback only supported with file option");if(t.length)u(r,t);return r.file&&r.sync?c(r):r.file?h(r,i):r.sync?f(r):d(r)});const u=(e,t)=>{const i=new Map(t.map(e=>[e.replace(/\/+$/,""),true]));const n=e.filter;const r=(e,t)=>{const n=t||a.parse(e).root||".";const s=e===n?false:i.has(e)?i.get(e):r(a.dirname(e),n);i.set(e,s);return s};e.filter=n?(e,t)=>n(e,t)&&r(e.replace(/\/+$/,"")):e=>r(e.replace(/\/+$/,""))};const c=e=>{const t=new r.Sync(e);const i=e.file;let n=true;let a;const l=s.statSync(i);const u=e.maxReadSize||16*1024*1024;const c=new o.ReadStreamSync(i,{readSize:u,size:l.size});c.pipe(t)};const h=(e,t)=>{const i=new r(e);const n=e.maxReadSize||16*1024*1024;const a=e.file;const l=new Promise((e,t)=>{i.on("error",t);i.on("close",e);s.stat(a,(e,r)=>{if(e)t(e);else{const e=new o.ReadStream(a,{readSize:n,size:r.size});e.on("error",t);e.pipe(i)}})});return t?l.then(t,t):l};const f=e=>{return new r.Sync(e)};const d=e=>{return new r(e)}},662:function(e,t,i){"use strict";const n=i(554);const r=i(720);const s=Symbol("slurp");e.exports=class ReadEntry extends r{constructor(e,t,i){super();this.pause();this.extended=t;this.globalExtended=i;this.header=e;this.startBlockSize=512*Math.ceil(e.size/512);this.blockRemain=this.startBlockSize;this.remain=e.size;this.type=e.type;this.meta=false;this.ignore=false;switch(this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=true;break;default:this.ignore=true}this.path=e.path;this.mode=e.mode;if(this.mode)this.mode=this.mode&4095;this.uid=e.uid;this.gid=e.gid;this.uname=e.uname;this.gname=e.gname;this.size=e.size;this.mtime=e.mtime;this.atime=e.atime;this.ctime=e.ctime;this.linkpath=e.linkpath;this.uname=e.uname;this.gname=e.gname;if(t)this[s](t);if(i)this[s](i,true)}write(e){const t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");const i=this.remain;const n=this.blockRemain;this.remain=Math.max(0,i-t);this.blockRemain=Math.max(0,n-t);if(this.ignore)return true;if(i>=t)return super.write(e);return super.write(e.slice(0,i))}[s](e,t){for(let i in e){if(e[i]!==null&&e[i]!==undefined&&!(t&&i==="path"))this[i]=e[i]}}}},669:function(e){e.exports=require("util")},720:function(e,t,i){"use strict";const n=i(614);const r=i(413);const s=i(612);const o=i(304).StringDecoder;const a=Symbol("EOF");const l=Symbol("maybeEmitEnd");const u=Symbol("emittedEnd");const c=Symbol("emittingEnd");const h=Symbol("closed");const f=Symbol("read");const d=Symbol("flush");const m=Symbol("flushChunk");const p=Symbol("encoding");const v=Symbol("decoder");const y=Symbol("flowing");const _=Symbol("paused");const w=Symbol("resume");const g=Symbol("bufferLength");const S=Symbol("bufferPush");const b=Symbol("bufferShift");const E=Symbol("objectMode");const R=Symbol("destroyed");const x=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const O=x&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const L=x&&Symbol.iterator||Symbol("iterator not implemented");const I=e=>e==="end"||e==="finish"||e==="prefinish";const N=e=>e instanceof ArrayBuffer||typeof e==="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0;const C=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e);e.exports=class Minipass extends r{constructor(e){super();this[y]=false;this[_]=false;this.pipes=new s;this.buffer=new s;this[E]=e&&e.objectMode||false;if(this[E])this[p]=null;else this[p]=e&&e.encoding||null;if(this[p]==="buffer")this[p]=null;this[v]=this[p]?new o(this[p]):null;this[a]=false;this[u]=false;this[c]=false;this[h]=false;this.writable=true;this.readable=true;this[g]=0;this[R]=false}get bufferLength(){return this[g]}get encoding(){return this[p]}set encoding(e){if(this[E])throw new Error("cannot set encoding in objectMode");if(this[p]&&e!==this[p]&&(this[v]&&this[v].lastNeed||this[g]))throw new Error("cannot change encoding");if(this[p]!==e){this[v]=e?new o(e):null;if(this.buffer.length)this.buffer=this.buffer.map(e=>this[v].write(e))}this[p]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[E]}set objectMode(e){this[E]=this[E]||!!e}write(e,t,i){if(this[a])throw new Error("write after end");if(this[R]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof t==="function")i=t,t="utf8";if(!t)t="utf8";if(!this[E]&&!Buffer.isBuffer(e)){if(C(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(N(e))e=Buffer.from(e);else if(typeof e!=="string")this.objectMode=true}if(!this.objectMode&&!e.length){const e=this.flowing;if(this[g]!==0)this.emit("readable");if(i)i();return e}if(typeof e==="string"&&!this[E]&&!(t===this[p]&&!this[v].lastNeed)){e=Buffer.from(e,t)}if(Buffer.isBuffer(e)&&this[p])e=this[v].write(e);try{return this.flowing?(this.emit("data",e),this.flowing):(this[S](e),false)}finally{if(this[g]!==0)this.emit("readable");if(i)i()}}read(e){if(this[R])return null;try{if(this[g]===0||e===0||e>this[g])return null;if(this[E])e=null;if(this.buffer.length>1&&!this[E]){if(this.encoding)this.buffer=new s([Array.from(this.buffer).join("")]);else this.buffer=new s([Buffer.concat(Array.from(this.buffer),this[g])])}return this[f](e||null,this.buffer.head.value)}finally{this[l]()}}[f](e,t){if(e===t.length||e===null)this[b]();else{this.buffer.head.value=t.slice(e);t=t.slice(0,e);this[g]-=e}this.emit("data",t);if(!this.buffer.length&&!this[a])this.emit("drain");return t}end(e,t,i){if(typeof e==="function")i=e,e=null;if(typeof t==="function")i=t,t="utf8";if(e)this.write(e,t);if(i)this.once("end",i);this[a]=true;this.writable=false;if(this.flowing||!this[_])this[l]();return this}[w](){if(this[R])return;this[_]=false;this[y]=true;this.emit("resume");if(this.buffer.length)this[d]();else if(this[a])this[l]();else this.emit("drain")}resume(){return this[w]()}pause(){this[y]=false;this[_]=true}get destroyed(){return this[R]}get flowing(){return this[y]}get paused(){return this[_]}[S](e){if(this[E])this[g]+=1;else this[g]+=e.length;return this.buffer.push(e)}[b](){if(this.buffer.length){if(this[E])this[g]-=1;else this[g]-=this.buffer.head.value.length}return this.buffer.shift()}[d](){do{}while(this[m](this[b]()));if(!this.buffer.length&&!this[a])this.emit("drain")}[m](e){return e?(this.emit("data",e),this.flowing):false}pipe(e,t){if(this[R])return;const i=this[u];t=t||{};if(e===process.stdout||e===process.stderr)t.end=false;else t.end=t.end!==false;const n={dest:e,opts:t,ondrain:e=>this[w]()};this.pipes.push(n);e.on("drain",n.ondrain);this[w]();if(i&&n.opts.end)n.dest.end();return e}addListener(e,t){return this.on(e,t)}on(e,t){try{return super.on(e,t)}finally{if(e==="data"&&!this.pipes.length&&!this.flowing)this[w]();else if(I(e)&&this[u]){super.emit(e);this.removeAllListeners(e)}}}get emittedEnd(){return this[u]}[l](){if(!this[c]&&!this[u]&&!this[R]&&this.buffer.length===0&&this[a]){this[c]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[h])this.emit("close");this[c]=false}}emit(e,t){if(e!=="error"&&e!=="close"&&e!==R&&this[R])return;else if(e==="data"){if(!t)return;if(this.pipes.length)this.pipes.forEach(e=>e.dest.write(t)===false&&this.pause())}else if(e==="end"){if(this[u]===true)return;this[u]=true;this.readable=false;if(this[v]){t=this[v].end();if(t){this.pipes.forEach(e=>e.dest.write(t));super.emit("data",t)}}this.pipes.forEach(e=>{e.dest.removeListener("drain",e.ondrain);if(e.opts.end)e.dest.end()})}else if(e==="close"){this[h]=true;if(!this[u]&&!this[R])return}const i=new Array(arguments.length);i[0]=e;i[1]=t;if(arguments.length>2){for(let e=2;e<arguments.length;e++){i[e]=arguments[e]}}try{return super.emit.apply(this,i)}finally{if(!I(e))this[l]();else this.removeAllListeners(e)}}collect(){const e=[];if(!this[E])e.dataLength=0;const t=this.promise();this.on("data",t=>{e.push(t);if(!this[E])e.dataLength+=t.length});return t.then(()=>e)}concat(){return this[E]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[E]?Promise.reject(new Error("cannot concat in objectMode")):this[p]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,t)=>{this.on(R,()=>t(new Error("stream destroyed")));this.on("end",()=>e());this.on("error",e=>t(e))})}[O](){const e=()=>{const e=this.read();if(e!==null)return Promise.resolve({done:false,value:e});if(this[a])return Promise.resolve({done:true});let t=null;let i=null;const n=e=>{this.removeListener("data",r);this.removeListener("end",s);i(e)};const r=e=>{this.removeListener("error",n);this.removeListener("end",s);this.pause();t({value:e,done:!!this[a]})};const s=()=>{this.removeListener("error",n);this.removeListener("data",r);t({done:true})};const o=()=>n(new Error("stream destroyed"));return new Promise((e,a)=>{i=a;t=e;this.once(R,o);this.once("error",n);this.once("end",s);this.once("data",r)})};return{next:e}}[L](){const e=()=>{const e=this.read();const t=e===null;return{value:e,done:t}};return{next:e}}destroy(e){if(this[R]){if(e)this.emit("error",e);else this.emit(R);return this}this[R]=true;this.buffer=new s;this[g]=0;if(typeof this.close==="function"&&!this[h])this.close();if(e)this.emit("error",e);else this.emit(R);return this}static isStream(e){return!!e&&(e instanceof Minipass||e instanceof r||e instanceof n&&(typeof e.pipe==="function"||typeof e.write==="function"&&typeof e.end==="function"))}}},726:function(e,t,i){"use strict";class PackJob{constructor(e,t){this.path=e||"./";this.absolute=t;this.entry=null;this.stat=null;this.readdir=null;this.pending=false;this.ignore=false;this.piped=false}}const n=i(720);const r=i(133);const s=i(662);const o=i(303);const a=o.Sync;const l=o.Tar;const u=i(612);const c=Buffer.alloc(1024);const h=Symbol("onStat");const f=Symbol("ended");const d=Symbol("queue");const m=Symbol("current");const p=Symbol("process");const v=Symbol("processing");const y=Symbol("processJob");const _=Symbol("jobs");const w=Symbol("jobDone");const g=Symbol("addFSEntry");const S=Symbol("addTarEntry");const b=Symbol("stat");const E=Symbol("readdir");const R=Symbol("onreaddir");const x=Symbol("pipe");const O=Symbol("entry");const L=Symbol("entryOpt");const I=Symbol("writeEntryClass");const N=Symbol("write");const C=Symbol("ondrain");const D=i(747);const A=i(622);const k=i(796);const B=k(class Pack extends n{constructor(e){super(e);e=e||Object.create(null);this.opt=e;this.file=e.file||"";this.cwd=e.cwd||process.cwd();this.maxReadSize=e.maxReadSize;this.preservePaths=!!e.preservePaths;this.strict=!!e.strict;this.noPax=!!e.noPax;this.prefix=(e.prefix||"").replace(/(\\|\/)+$/,"");this.linkCache=e.linkCache||new Map;this.statCache=e.statCache||new Map;this.readdirCache=e.readdirCache||new Map;this[I]=o;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);this.portable=!!e.portable;this.zip=null;if(e.gzip){if(typeof e.gzip!=="object")e.gzip={};if(this.portable)e.gzip.portable=true;this.zip=new r.Gzip(e.gzip);this.zip.on("data",e=>super.write(e));this.zip.on("end",e=>super.end());this.zip.on("drain",e=>this[C]());this.on("resume",e=>this.zip.resume())}else this.on("drain",this[C]);this.noDirRecurse=!!e.noDirRecurse;this.follow=!!e.follow;this.noMtime=!!e.noMtime;this.mtime=e.mtime||null;this.filter=typeof e.filter==="function"?e.filter:e=>true;this[d]=new u;this[_]=0;this.jobs=+e.jobs||4;this[v]=false;this[f]=false}[N](e){return super.write(e)}add(e){this.write(e);return this}end(e){if(e)this.write(e);this[f]=true;this[p]();return this}write(e){if(this[f])throw new Error("write after end");if(e instanceof s)this[S](e);else this[g](e);return this.flowing}[S](e){const t=A.resolve(this.cwd,e.path);if(this.prefix)e.path=this.prefix+"/"+e.path.replace(/^\.(\/+|$)/,"");if(!this.filter(e.path,e))e.resume();else{const i=new PackJob(e.path,t,false);i.entry=new l(e,this[L](i));i.entry.on("end",e=>this[w](i));this[_]+=1;this[d].push(i)}this[p]()}[g](e){const t=A.resolve(this.cwd,e);if(this.prefix)e=this.prefix+"/"+e.replace(/^\.(\/+|$)/,"");this[d].push(new PackJob(e,t));this[p]()}[b](e){e.pending=true;this[_]+=1;const t=this.follow?"stat":"lstat";D[t](e.absolute,(t,i)=>{e.pending=false;this[_]-=1;if(t)this.emit("error",t);else this[h](e,i)})}[h](e,t){this.statCache.set(e.absolute,t);e.stat=t;if(!this.filter(e.path,t))e.ignore=true;this[p]()}[E](e){e.pending=true;this[_]+=1;D.readdir(e.absolute,(t,i)=>{e.pending=false;this[_]-=1;if(t)return this.emit("error",t);this[R](e,i)})}[R](e,t){this.readdirCache.set(e.absolute,t);e.readdir=t;this[p]()}[p](){if(this[v])return;this[v]=true;for(let e=this[d].head;e!==null&&this[_]<this.jobs;e=e.next){this[y](e.value);if(e.value.ignore){const t=e.next;this[d].removeNode(e);e.next=t}}this[v]=false;if(this[f]&&!this[d].length&&this[_]===0){if(this.zip)this.zip.end(c);else{super.write(c);super.end()}}}get[m](){return this[d]&&this[d].head&&this[d].head.value}[w](e){this[d].shift();this[_]-=1;this[p]()}[y](e){if(e.pending)return;if(e.entry){if(e===this[m]&&!e.piped)this[x](e);return}if(!e.stat){if(this.statCache.has(e.absolute))this[h](e,this.statCache.get(e.absolute));else this[b](e)}if(!e.stat)return;if(e.ignore)return;if(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir){if(this.readdirCache.has(e.absolute))this[R](e,this.readdirCache.get(e.absolute));else this[E](e);if(!e.readdir)return}e.entry=this[O](e);if(!e.entry){e.ignore=true;return}if(e===this[m]&&!e.piped)this[x](e)}[L](e){return{onwarn:(e,t,i)=>this.warn(e,t,i),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime}}[O](e){this[_]+=1;try{return new this[I](e.path,this[L](e)).on("end",()=>this[w](e)).on("error",e=>this.emit("error",e))}catch(e){this.emit("error",e)}}[C](){if(this[m]&&this[m].entry)this[m].entry.resume()}[x](e){e.piped=true;if(e.readdir)e.readdir.forEach(t=>{const i=this.prefix?e.path.slice(this.prefix.length+1)||"./":e.path;const n=i==="./"?"":i.replace(/\/*$/,"/");this[g](n+t)});const t=e.entry;const i=this.zip;if(i)t.on("data",e=>{if(!i.write(e))t.pause()});else t.on("data",e=>{if(!super.write(e))t.pause()})}pause(){if(this.zip)this.zip.pause();return super.pause()}});class PackSync extends B{constructor(e){super(e);this[I]=a}pause(){}resume(){}[b](e){const t=this.follow?"statSync":"lstatSync";this[h](e,D[t](e.absolute))}[E](e,t){this[R](e,D.readdirSync(e.absolute))}[x](e){const t=e.entry;const i=this.zip;if(e.readdir)e.readdir.forEach(t=>{const i=this.prefix?e.path.slice(this.prefix.length+1)||"./":e.path;const n=i==="./"?"":i.replace(/\/*$/,"/");this[g](n+t)});if(i)t.on("data",e=>{i.write(e)});else t.on("data",e=>{super[N](e)})}}B.Sync=PackSync;e.exports=B},747:function(e){e.exports=require("fs")},761:function(e){e.exports=require("zlib")},766:function(e,t,i){var n=i(747);var r=i(761);var s=i(324);var o=i(538);var a=i(669);var l=i(614).EventEmitter;var u=i(413).Transform;var c=i(413).PassThrough;var h=i(413).Writable;t.open=open;t.fromFd=fromFd;t.fromBuffer=fromBuffer;t.fromRandomAccessReader=fromRandomAccessReader;t.dosDateTimeToDate=dosDateTimeToDate;t.validateFileName=validateFileName;t.ZipFile=ZipFile;t.Entry=Entry;t.RandomAccessReader=RandomAccessReader;function open(e,t,i){if(typeof t==="function"){i=t;t=null}if(t==null)t={};if(t.autoClose==null)t.autoClose=true;if(t.lazyEntries==null)t.lazyEntries=false;if(t.decodeStrings==null)t.decodeStrings=true;if(t.validateEntrySizes==null)t.validateEntrySizes=true;if(t.strictFileNames==null)t.strictFileNames=false;if(i==null)i=defaultCallback;n.open(e,"r",function(e,r){if(e)return i(e);fromFd(r,t,function(e,t){if(e)n.close(r,defaultCallback);i(e,t)})})}function fromFd(e,t,i){if(typeof t==="function"){i=t;t=null}if(t==null)t={};if(t.autoClose==null)t.autoClose=false;if(t.lazyEntries==null)t.lazyEntries=false;if(t.decodeStrings==null)t.decodeStrings=true;if(t.validateEntrySizes==null)t.validateEntrySizes=true;if(t.strictFileNames==null)t.strictFileNames=false;if(i==null)i=defaultCallback;n.fstat(e,function(n,r){if(n)return i(n);var o=s.createFromFd(e,{autoClose:true});fromRandomAccessReader(o,r.size,t,i)})}function fromBuffer(e,t,i){if(typeof t==="function"){i=t;t=null}if(t==null)t={};t.autoClose=false;if(t.lazyEntries==null)t.lazyEntries=false;if(t.decodeStrings==null)t.decodeStrings=true;if(t.validateEntrySizes==null)t.validateEntrySizes=true;if(t.strictFileNames==null)t.strictFileNames=false;var n=s.createFromBuffer(e,{maxChunkSize:65536});fromRandomAccessReader(n,e.length,t,i)}function fromRandomAccessReader(e,t,i,n){if(typeof i==="function"){n=i;i=null}if(i==null)i={};if(i.autoClose==null)i.autoClose=true;if(i.lazyEntries==null)i.lazyEntries=false;if(i.decodeStrings==null)i.decodeStrings=true;var r=!!i.decodeStrings;if(i.validateEntrySizes==null)i.validateEntrySizes=true;if(i.strictFileNames==null)i.strictFileNames=false;if(n==null)n=defaultCallback;if(typeof t!=="number")throw new Error("expected totalSize parameter to be a number");if(t>Number.MAX_SAFE_INTEGER){throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.")}e.ref();var s=22;var o=65535;var a=Math.min(s+o,t);var l=d(a);var u=t-l.length;readAndAssertNoEof(e,l,0,a,u,function(o){if(o)return n(o);for(var c=a-s;c>=0;c-=1){if(l.readUInt32LE(c)!==101010256)continue;var h=l.slice(c);var f=h.readUInt16LE(4);if(f!==0){return n(new Error("multi-disk zip files are not supported: found disk number: "+f))}var m=h.readUInt16LE(10);var p=h.readUInt32LE(16);var v=h.readUInt16LE(20);var y=h.length-s;if(v!==y){return n(new Error("invalid comment length. expected: "+y+". found: "+v))}var _=r?decodeBuffer(h,22,h.length,false):h.slice(22);if(!(m===65535||p===4294967295)){return n(null,new ZipFile(e,p,t,m,_,i.autoClose,i.lazyEntries,r,i.validateEntrySizes,i.strictFileNames))}var w=d(20);var g=u+c-w.length;readAndAssertNoEof(e,w,0,w.length,g,function(s){if(s)return n(s);if(w.readUInt32LE(0)!==117853008){return n(new Error("invalid zip64 end of central directory locator signature"))}var o=readUInt64LE(w,8);var a=d(56);readAndAssertNoEof(e,a,0,a.length,o,function(s){if(s)return n(s);if(a.readUInt32LE(0)!==101075792){return n(new Error("invalid zip64 end of central directory record signature"))}m=readUInt64LE(a,32);p=readUInt64LE(a,48);return n(null,new ZipFile(e,p,t,m,_,i.autoClose,i.lazyEntries,r,i.validateEntrySizes,i.strictFileNames))})});return}n(new Error("end of central directory record signature not found"))})}a.inherits(ZipFile,l);function ZipFile(e,t,i,n,r,s,o,a,u,c){var h=this;l.call(h);h.reader=e;h.reader.on("error",function(e){emitError(h,e)});h.reader.once("close",function(){h.emit("close")});h.readEntryCursor=t;h.fileSize=i;h.entryCount=n;h.comment=r;h.entriesRead=0;h.autoClose=!!s;h.lazyEntries=!!o;h.decodeStrings=!!a;h.validateEntrySizes=!!u;h.strictFileNames=!!c;h.isOpen=true;h.emittedError=false;if(!h.lazyEntries)h._readEntry()}ZipFile.prototype.close=function(){if(!this.isOpen)return;this.isOpen=false;this.reader.unref()};function emitErrorAndAutoClose(e,t){if(e.autoClose)e.close();emitError(e,t)}function emitError(e,t){if(e.emittedError)return;e.emittedError=true;e.emit("error",t)}ZipFile.prototype.readEntry=function(){if(!this.lazyEntries)throw new Error("readEntry() called without lazyEntries:true");this._readEntry()};ZipFile.prototype._readEntry=function(){var e=this;if(e.entryCount===e.entriesRead){setImmediate(function(){if(e.autoClose)e.close();if(e.emittedError)return;e.emit("end")});return}if(e.emittedError)return;var i=d(46);readAndAssertNoEof(e.reader,i,0,i.length,e.readEntryCursor,function(n){if(n)return emitErrorAndAutoClose(e,n);if(e.emittedError)return;var r=new Entry;var s=i.readUInt32LE(0);if(s!==33639248)return emitErrorAndAutoClose(e,new Error("invalid central directory file header signature: 0x"+s.toString(16)));r.versionMadeBy=i.readUInt16LE(4);r.versionNeededToExtract=i.readUInt16LE(6);r.generalPurposeBitFlag=i.readUInt16LE(8);r.compressionMethod=i.readUInt16LE(10);r.lastModFileTime=i.readUInt16LE(12);r.lastModFileDate=i.readUInt16LE(14);r.crc32=i.readUInt32LE(16);r.compressedSize=i.readUInt32LE(20);r.uncompressedSize=i.readUInt32LE(24);r.fileNameLength=i.readUInt16LE(28);r.extraFieldLength=i.readUInt16LE(30);r.fileCommentLength=i.readUInt16LE(32);r.internalFileAttributes=i.readUInt16LE(36);r.externalFileAttributes=i.readUInt32LE(38);r.relativeOffsetOfLocalHeader=i.readUInt32LE(42);if(r.generalPurposeBitFlag&64)return emitErrorAndAutoClose(e,new Error("strong encryption is not supported"));e.readEntryCursor+=46;i=d(r.fileNameLength+r.extraFieldLength+r.fileCommentLength);readAndAssertNoEof(e.reader,i,0,i.length,e.readEntryCursor,function(n){if(n)return emitErrorAndAutoClose(e,n);if(e.emittedError)return;var s=(r.generalPurposeBitFlag&2048)!==0;r.fileName=e.decodeStrings?decodeBuffer(i,0,r.fileNameLength,s):i.slice(0,r.fileNameLength);var a=r.fileNameLength+r.extraFieldLength;var l=i.slice(r.fileNameLength,a);r.extraFields=[];var u=0;while(u<l.length-3){var c=l.readUInt16LE(u+0);var h=l.readUInt16LE(u+2);var f=u+4;var m=f+h;if(m>l.length)return emitErrorAndAutoClose(e,new Error("extra field length exceeds extra field buffer size"));var p=d(h);l.copy(p,0,f,m);r.extraFields.push({id:c,data:p});u=m}r.fileComment=e.decodeStrings?decodeBuffer(i,a,a+r.fileCommentLength,s):i.slice(a,a+r.fileCommentLength);r.comment=r.fileComment;e.readEntryCursor+=i.length;e.entriesRead+=1;if(r.uncompressedSize===4294967295||r.compressedSize===4294967295||r.relativeOffsetOfLocalHeader===4294967295){var v=null;for(var u=0;u<r.extraFields.length;u++){var y=r.extraFields[u];if(y.id===1){v=y.data;break}}if(v==null){return emitErrorAndAutoClose(e,new Error("expected zip64 extended information extra field"))}var _=0;if(r.uncompressedSize===4294967295){if(_+8>v.length){return emitErrorAndAutoClose(e,new Error("zip64 extended information extra field does not include uncompressed size"))}r.uncompressedSize=readUInt64LE(v,_);_+=8}if(r.compressedSize===4294967295){if(_+8>v.length){return emitErrorAndAutoClose(e,new Error("zip64 extended information extra field does not include compressed size"))}r.compressedSize=readUInt64LE(v,_);_+=8}if(r.relativeOffsetOfLocalHeader===4294967295){if(_+8>v.length){return emitErrorAndAutoClose(e,new Error("zip64 extended information extra field does not include relative header offset"))}r.relativeOffsetOfLocalHeader=readUInt64LE(v,_);_+=8}}if(e.decodeStrings){for(var u=0;u<r.extraFields.length;u++){var y=r.extraFields[u];if(y.id===28789){if(y.data.length<6){continue}if(y.data.readUInt8(0)!==1){continue}var w=y.data.readUInt32LE(1);if(o.unsigned(i.slice(0,r.fileNameLength))!==w){continue}r.fileName=decodeBuffer(y.data,5,y.data.length,true);break}}}if(e.validateEntrySizes&&r.compressionMethod===0){var g=r.uncompressedSize;if(r.isEncrypted()){g+=12}if(r.compressedSize!==g){var S="compressed/uncompressed size mismatch for stored file: "+r.compressedSize+" != "+r.uncompressedSize;return emitErrorAndAutoClose(e,new Error(S))}}if(e.decodeStrings){if(!e.strictFileNames){r.fileName=r.fileName.replace(/\\/g,"/")}var b=t.validateFileName(r.fileName);if(b!=null)return emitErrorAndAutoClose(e,new Error(b))}e.emit("entry",r);if(!e.lazyEntries)e._readEntry()})})};ZipFile.prototype.openReadStream=function(e,t,i){var n=this;var s=0;var o=e.compressedSize;if(i==null){i=t;t={}}else{if(t.decrypt!=null){if(!e.isEncrypted()){throw new Error("options.decrypt can only be specified for encrypted entries")}if(t.decrypt!==false)throw new Error("invalid options.decrypt value: "+t.decrypt);if(e.isCompressed()){if(t.decompress!==false)throw new Error("entry is encrypted and compressed, and options.decompress !== false")}}if(t.decompress!=null){if(!e.isCompressed()){throw new Error("options.decompress can only be specified for compressed entries")}if(!(t.decompress===false||t.decompress===true)){throw new Error("invalid options.decompress value: "+t.decompress)}}if(t.start!=null||t.end!=null){if(e.isCompressed()&&t.decompress!==false){throw new Error("start/end range not allowed for compressed entry without options.decompress === false")}if(e.isEncrypted()&&t.decrypt!==false){throw new Error("start/end range not allowed for encrypted entry without options.decrypt === false")}}if(t.start!=null){s=t.start;if(s<0)throw new Error("options.start < 0");if(s>e.compressedSize)throw new Error("options.start > entry.compressedSize")}if(t.end!=null){o=t.end;if(o<0)throw new Error("options.end < 0");if(o>e.compressedSize)throw new Error("options.end > entry.compressedSize");if(o<s)throw new Error("options.end < options.start")}}if(!n.isOpen)return i(new Error("closed"));if(e.isEncrypted()){if(t.decrypt!==false)return i(new Error("entry is encrypted, and options.decrypt !== false"))}n.reader.ref();var a=d(30);readAndAssertNoEof(n.reader,a,0,a.length,e.relativeOffsetOfLocalHeader,function(l){try{if(l)return i(l);var u=a.readUInt32LE(0);if(u!==67324752){return i(new Error("invalid local file header signature: 0x"+u.toString(16)))}var c=a.readUInt16LE(26);var h=a.readUInt16LE(28);var f=e.relativeOffsetOfLocalHeader+a.length+c+h;var d;if(e.compressionMethod===0){d=false}else if(e.compressionMethod===8){d=t.decompress!=null?t.decompress:true}else{return i(new Error("unsupported compression method: "+e.compressionMethod))}var m=f;var p=m+e.compressedSize;if(e.compressedSize!==0){if(p>n.fileSize){return i(new Error("file data overflows file bounds: "+m+" + "+e.compressedSize+" > "+n.fileSize))}}var v=n.reader.createReadStream({start:m+s,end:m+o});var y=v;if(d){var _=false;var w=r.createInflateRaw();v.on("error",function(e){setImmediate(function(){if(!_)w.emit("error",e)})});v.pipe(w);if(n.validateEntrySizes){y=new AssertByteCountStream(e.uncompressedSize);w.on("error",function(e){setImmediate(function(){if(!_)y.emit("error",e)})});w.pipe(y)}else{y=w}y.destroy=function(){_=true;if(w!==y)w.unpipe(y);v.unpipe(w);v.destroy()}}i(null,y)}finally{n.reader.unref()}})};function Entry(){}Entry.prototype.getLastModDate=function(){return dosDateTimeToDate(this.lastModFileDate,this.lastModFileTime)};Entry.prototype.isEncrypted=function(){return(this.generalPurposeBitFlag&1)!==0};Entry.prototype.isCompressed=function(){return this.compressionMethod===8};function dosDateTimeToDate(e,t){var i=e&31;var n=(e>>5&15)-1;var r=(e>>9&127)+1980;var s=0;var o=(t&31)*2;var a=t>>5&63;var l=t>>11&31;return new Date(r,n,i,l,a,o,s)}function validateFileName(e){if(e.indexOf("\\")!==-1){return"invalid characters in fileName: "+e}if(/^[a-zA-Z]:/.test(e)||/^\//.test(e)){return"absolute path: "+e}if(e.split("/").indexOf("..")!==-1){return"invalid relative path: "+e}return null}function readAndAssertNoEof(e,t,i,n,r,s){if(n===0){return setImmediate(function(){s(null,d(0))})}e.read(t,i,n,r,function(e,t){if(e)return s(e);if(t<n){return s(new Error("unexpected EOF"))}s()})}a.inherits(AssertByteCountStream,u);function AssertByteCountStream(e){u.call(this);this.actualByteCount=0;this.expectedByteCount=e}AssertByteCountStream.prototype._transform=function(e,t,i){this.actualByteCount+=e.length;if(this.actualByteCount>this.expectedByteCount){var n="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return i(new Error(n))}i(null,e)};AssertByteCountStream.prototype._flush=function(e){if(this.actualByteCount<this.expectedByteCount){var t="not enough bytes in the stream. expected "+this.expectedByteCount+". got only "+this.actualByteCount;return e(new Error(t))}e()};a.inherits(RandomAccessReader,l);function RandomAccessReader(){l.call(this);this.refCount=0}RandomAccessReader.prototype.ref=function(){this.refCount+=1};RandomAccessReader.prototype.unref=function(){var e=this;e.refCount-=1;if(e.refCount>0)return;if(e.refCount<0)throw new Error("invalid unref");e.close(onCloseDone);function onCloseDone(t){if(t)return e.emit("error",t);e.emit("close")}};RandomAccessReader.prototype.createReadStream=function(e){var t=e.start;var i=e.end;if(t===i){var n=new c;setImmediate(function(){n.end()});return n}var r=this._readStreamForRange(t,i);var s=false;var o=new RefUnrefFilter(this);r.on("error",function(e){setImmediate(function(){if(!s)o.emit("error",e)})});o.destroy=function(){r.unpipe(o);o.unref();r.destroy()};var a=new AssertByteCountStream(i-t);o.on("error",function(e){setImmediate(function(){if(!s)a.emit("error",e)})});a.destroy=function(){s=true;o.unpipe(a);o.destroy()};return r.pipe(o).pipe(a)};RandomAccessReader.prototype._readStreamForRange=function(e,t){throw new Error("not implemented")};RandomAccessReader.prototype.read=function(e,t,i,n,r){var s=this.createReadStream({start:n,end:n+i});var o=new h;var a=0;o._write=function(i,n,r){i.copy(e,t+a,0,i.length);a+=i.length;r()};o.on("finish",r);s.on("error",function(e){r(e)});s.pipe(o)};RandomAccessReader.prototype.close=function(e){setImmediate(e)};a.inherits(RefUnrefFilter,c);function RefUnrefFilter(e){c.call(this);this.context=e;this.context.ref();this.unreffedYet=false}RefUnrefFilter.prototype._flush=function(e){this.unref();e()};RefUnrefFilter.prototype.unref=function(e){if(this.unreffedYet)return;this.unreffedYet=true;this.context.unref()};var f="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ";function decodeBuffer(e,t,i,n){if(n){return e.toString("utf8",t,i)}else{var r="";for(var s=t;s<i;s++){r+=f[e[s]]}return r}}function readUInt64LE(e,t){var i=e.readUInt32LE(t);var n=e.readUInt32LE(t+4);return n*4294967296+i}var d;if(typeof Buffer.allocUnsafe==="function"){d=function(e){return Buffer.allocUnsafe(e)}}else{d=function(e){return new Buffer(e)}}function defaultCallback(e){if(e)throw e}},795:function(e,t,i){const{promisify:n}=i(669);const r=i(747);const s=e=>{if(!e)e={mode:511&~process.umask(),fs:r};else if(typeof e==="object")e={mode:511&~process.umask(),fs:r,...e};else if(typeof e==="number")e={mode:e,fs:r};else if(typeof e==="string")e={mode:parseInt(e,8),fs:r};else throw new TypeError("invalid options argument");e.mkdir=e.mkdir||e.fs.mkdir||r.mkdir;e.mkdirAsync=n(e.mkdir);e.stat=e.stat||e.fs.stat||r.stat;e.statAsync=n(e.stat);e.statSync=e.statSync||e.fs.statSync||r.statSync;e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||r.mkdirSync;return e};e.exports=s},796:function(e){"use strict";e.exports=(e=>(class extends e{warn(e,t,i={}){if(this.file)i.file=this.file;if(this.cwd)i.cwd=this.cwd;i.code=t instanceof Error&&t.code||e;i.tarCode=e;if(!this.strict&&i.recoverable!==false){if(t instanceof Error){i=Object.assign(t,i);t=t.message}this.emit("warn",i.tarCode,t,i)}else if(t instanceof Error){this.emit("error",Object.assign(t,i))}else this.emit("error",Object.assign(new Error(`${e}: ${t}`),i))}}))},806:function(e,t,i){const{dirname:n}=i(622);const r=(e,t,i)=>{t.recursive=false;const s=n(e);if(s===e){return t.mkdirAsync(e,t).catch(e=>{if(e.code!=="EISDIR")throw e})}return t.mkdirAsync(e,t).then(()=>i||e,n=>{if(n.code==="ENOENT")return r(s,t).then(i=>r(e,t,i));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;return t.statAsync(e).then(e=>{if(e.isDirectory())return i;else throw n},()=>{throw n})})};const s=(e,t,i)=>{const r=n(e);t.recursive=false;if(r===e){try{return t.mkdirSync(e,t)}catch(e){if(e.code!=="EISDIR")throw e;else return}}try{t.mkdirSync(e,t);return i||e}catch(n){if(n.code==="ENOENT")return s(e,t,s(r,t,i));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!t.statSync(e).isDirectory())throw n}catch(e){throw n}}};e.exports={mkdirpManual:r,mkdirpManualSync:s}},827:function(e,t,i){"use strict";const n=i(720);const r=i(614).EventEmitter;const s=i(747);let o=s.writev;if(!o){const e=process.binding("fs");const t=e.FSReqWrap||e.FSReqCallback;o=((i,n,r,s)=>{const o=(e,t)=>s(e,t,n);const a=new t;a.oncomplete=o;e.writeBuffers(i,n,r,a)})}const a=Symbol("_autoClose");const l=Symbol("_close");const u=Symbol("_ended");const c=Symbol("_fd");const h=Symbol("_finished");const f=Symbol("_flags");const d=Symbol("_flush");const m=Symbol("_handleChunk");const p=Symbol("_makeBuf");const v=Symbol("_mode");const y=Symbol("_needDrain");const _=Symbol("_onerror");const w=Symbol("_onopen");const g=Symbol("_onread");const S=Symbol("_onwrite");const b=Symbol("_open");const E=Symbol("_path");const R=Symbol("_pos");const x=Symbol("_queue");const O=Symbol("_read");const L=Symbol("_readSize");const I=Symbol("_reading");const N=Symbol("_remain");const C=Symbol("_size");const D=Symbol("_write");const A=Symbol("_writing");const k=Symbol("_defaultFlag");const B=Symbol("_errored");class ReadStream extends n{constructor(e,t){t=t||{};super(t);this.readable=true;this.writable=false;if(typeof e!=="string")throw new TypeError("path must be a string");this[B]=false;this[c]=typeof t.fd==="number"?t.fd:null;this[E]=e;this[L]=t.readSize||16*1024*1024;this[I]=false;this[C]=typeof t.size==="number"?t.size:Infinity;this[N]=this[C];this[a]=typeof t.autoClose==="boolean"?t.autoClose:true;if(typeof this[c]==="number")this[O]();else this[b]()}get fd(){return this[c]}get path(){return this[E]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[b](){s.open(this[E],"r",(e,t)=>this[w](e,t))}[w](e,t){if(e)this[_](e);else{this[c]=t;this.emit("open",t);this[O]()}}[p](){return Buffer.allocUnsafe(Math.min(this[L],this[N]))}[O](){if(!this[I]){this[I]=true;const e=this[p]();if(e.length===0)return process.nextTick(()=>this[g](null,0,e));s.read(this[c],e,0,e.length,null,(e,t,i)=>this[g](e,t,i))}}[g](e,t,i){this[I]=false;if(e)this[_](e);else if(this[m](t,i))this[O]()}[l](){if(this[a]&&typeof this[c]==="number"){const e=this[c];this[c]=null;s.close(e,e=>e?this.emit("error",e):this.emit("close"))}}[_](e){this[I]=true;this[l]();this.emit("error",e)}[m](e,t){let i=false;this[N]-=e;if(e>0)i=super.write(e<t.length?t.slice(0,e):t);if(e===0||this[N]<=0){i=false;this[l]();super.end()}return i}emit(e,t){switch(e){case"prefinish":case"finish":break;case"drain":if(typeof this[c]==="number")this[O]();break;case"error":if(this[B])return;this[B]=true;return super.emit(e,t);default:return super.emit(e,t)}}}class ReadStreamSync extends ReadStream{[b](){let e=true;try{this[w](null,s.openSync(this[E],"r"));e=false}finally{if(e)this[l]()}}[O](){let e=true;try{if(!this[I]){this[I]=true;do{const e=this[p]();const t=e.length===0?0:s.readSync(this[c],e,0,e.length,null);if(!this[m](t,e))break}while(true);this[I]=false}e=false}finally{if(e)this[l]()}}[l](){if(this[a]&&typeof this[c]==="number"){const e=this[c];this[c]=null;s.closeSync(e);this.emit("close")}}}class WriteStream extends r{constructor(e,t){t=t||{};super(t);this.readable=false;this.writable=true;this[B]=false;this[A]=false;this[u]=false;this[y]=false;this[x]=[];this[E]=e;this[c]=typeof t.fd==="number"?t.fd:null;this[v]=t.mode===undefined?438:t.mode;this[R]=typeof t.start==="number"?t.start:null;this[a]=typeof t.autoClose==="boolean"?t.autoClose:true;const i=this[R]!==null?"r+":"w";this[k]=t.flags===undefined;this[f]=this[k]?i:t.flags;if(this[c]===null)this[b]()}emit(e,t){if(e==="error"){if(this[B])return;this[B]=true}return super.emit(e,t)}get fd(){return this[c]}get path(){return this[E]}[_](e){this[l]();this[A]=true;this.emit("error",e)}[b](){s.open(this[E],this[f],this[v],(e,t)=>this[w](e,t))}[w](e,t){if(this[k]&&this[f]==="r+"&&e&&e.code==="ENOENT"){this[f]="w";this[b]()}else if(e)this[_](e);else{this[c]=t;this.emit("open",t);this[d]()}}end(e,t){if(e)this.write(e,t);this[u]=true;if(!this[A]&&!this[x].length&&typeof this[c]==="number")this[S](null,0);return this}write(e,t){if(typeof e==="string")e=Buffer.from(e,t);if(this[u]){this.emit("error",new Error("write() after end()"));return false}if(this[c]===null||this[A]||this[x].length){this[x].push(e);this[y]=true;return false}this[A]=true;this[D](e);return true}[D](e){s.write(this[c],e,0,e.length,this[R],(e,t)=>this[S](e,t))}[S](e,t){if(e)this[_](e);else{if(this[R]!==null)this[R]+=t;if(this[x].length)this[d]();else{this[A]=false;if(this[u]&&!this[h]){this[h]=true;this[l]();this.emit("finish")}else if(this[y]){this[y]=false;this.emit("drain")}}}}[d](){if(this[x].length===0){if(this[u])this[S](null,0)}else if(this[x].length===1)this[D](this[x].pop());else{const e=this[x];this[x]=[];o(this[c],e,this[R],(e,t)=>this[S](e,t))}}[l](){if(this[a]&&typeof this[c]==="number"){const e=this[c];this[c]=null;s.close(e,e=>e?this.emit("error",e):this.emit("close"))}}}class WriteStreamSync extends WriteStream{[b](){let e;if(this[k]&&this[f]==="r+"){try{e=s.openSync(this[E],this[f],this[v])}catch(e){if(e.code==="ENOENT"){this[f]="w";return this[b]()}else throw e}}else e=s.openSync(this[E],this[f],this[v]);this[w](null,e)}[l](){if(this[a]&&typeof this[c]==="number"){const e=this[c];this[c]=null;s.closeSync(e);this.emit("close")}}[D](e){let t=true;try{this[S](null,s.writeSync(this[c],e,0,e.length,this[R]));t=false}finally{if(t)try{this[l]()}catch(e){}}}}t.ReadStream=ReadStream;t.ReadStreamSync=ReadStreamSync;t.WriteStream=WriteStream;t.WriteStreamSync=WriteStreamSync},835:function(e){e.exports=require("url")},858:function(e,t){"use strict";const i=t.encode=((e,t)=>{if(!Number.isSafeInteger(e))throw Error("cannot encode number outside of javascript safe integer range");else if(e<0)r(e,t);else n(e,t);return t});const n=(e,t)=>{t[0]=128;for(var i=t.length;i>1;i--){t[i-1]=e&255;e=Math.floor(e/256)}};const r=(e,t)=>{t[0]=255;var i=false;e=e*-1;for(var n=t.length;n>1;n--){var r=e&255;e=Math.floor(e/256);if(i)t[n-1]=l(r);else if(r===0)t[n-1]=0;else{i=true;t[n-1]=u(r)}}};const s=t.parse=(e=>{var t=e[e.length-1];var i=e[0];var n;if(i===128)n=a(e.slice(1,e.length));else if(i===255)n=o(e);else throw Error("invalid base256 encoding");if(!Number.isSafeInteger(n))throw Error("parsed number outside of javascript safe integer range");return n});const o=e=>{var t=e.length;var i=0;var n=false;for(var r=t-1;r>-1;r--){var s=e[r];var o;if(n)o=l(s);else if(s===0)o=s;else{n=true;o=u(s)}if(o!==0)i-=o*Math.pow(256,t-r-1)}return i};const a=e=>{var t=e.length;var i=0;for(var n=t-1;n>-1;n--){var r=e[n];if(r!==0)i+=r*Math.pow(256,t-n-1)}return i};const l=e=>(255^e)&255;const u=e=>(255^e)+1&255},870:function(e,t,i){const n=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform;const{resolve:r,parse:s}=i(622);const o=e=>{if(/\0/.test(e)){throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"})}e=r(e);if(n==="win32"){const t=/[*|"<>?:]/;const{root:i}=s(e);if(t.test(e.substr(i.length))){throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}}return e};e.exports=o},885:function(e,t,i){"use strict";t.c=t.create=i(159);t.r=t.replace=i(630);t.t=t.list=i(381);t.u=t.update=i(966);t.x=t.extract=i(656);t.Pack=i(726);t.Unpack=i(63);t.Parse=i(203);t.ReadEntry=i(662);t.WriteEntry=i(303);t.Header=i(232);t.Pax=i(582);t.types=i(554)},891:function(e){"use strict";const t=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);const i=e.exports=(e=>e?Object.keys(e).map(i=>[t.has(i)?t.get(i):i,e[i]]).reduce((e,t)=>(e[t[0]]=t[1],e),Object.create(null)):{})},895:function(e,t,i){(function(e){"use strict";var t=function(){return u.__string_rec(this,"")},n=n||{},r;function $extend(e,t){var i=Object.create(e);for(var n in t)i[n]=t[n];if(t.toString!==Object.prototype.toString)i.toString=t.toString;return i}var s=n["Attribute"]={__ename__:true,__constructs__:["Off","Bold","Underline","Blink","ReverseVideo","Concealed","BoldOff","UnderlineOff","BlinkOff","NormalVideo","ConcealedOff","Black","Red","Green","Yellow","Blue","Magenta","Cyan","White","DefaultForeground","BlackBack","RedBack","GreenBack","YellowBack","BlueBack","MagentaBack","CyanBack","WhiteBack","DefaultBackground"],Off:{_hx_index:0,__enum__:"Attribute",toString:t},Bold:{_hx_index:1,__enum__:"Attribute",toString:t},Underline:{_hx_index:2,__enum__:"Attribute",toString:t},Blink:{_hx_index:3,__enum__:"Attribute",toString:t},ReverseVideo:{_hx_index:4,__enum__:"Attribute",toString:t},Concealed:{_hx_index:5,__enum__:"Attribute",toString:t},BoldOff:{_hx_index:6,__enum__:"Attribute",toString:t},UnderlineOff:{_hx_index:7,__enum__:"Attribute",toString:t},BlinkOff:{_hx_index:8,__enum__:"Attribute",toString:t},NormalVideo:{_hx_index:9,__enum__:"Attribute",toString:t},ConcealedOff:{_hx_index:10,__enum__:"Attribute",toString:t},Black:{_hx_index:11,__enum__:"Attribute",toString:t},Red:{_hx_index:12,__enum__:"Attribute",toString:t},Green:{_hx_index:13,__enum__:"Attribute",toString:t},Yellow:{_hx_index:14,__enum__:"Attribute",toString:t},Blue:{_hx_index:15,__enum__:"Attribute",toString:t},Magenta:{_hx_index:16,__enum__:"Attribute",toString:t},Cyan:{_hx_index:17,__enum__:"Attribute",toString:t},White:{_hx_index:18,__enum__:"Attribute",toString:t},DefaultForeground:{_hx_index:19,__enum__:"Attribute",toString:t},BlackBack:{_hx_index:20,__enum__:"Attribute",toString:t},RedBack:{_hx_index:21,__enum__:"Attribute",toString:t},GreenBack:{_hx_index:22,__enum__:"Attribute",toString:t},YellowBack:{_hx_index:23,__enum__:"Attribute",toString:t},BlueBack:{_hx_index:24,__enum__:"Attribute",toString:t},MagentaBack:{_hx_index:25,__enum__:"Attribute",toString:t},CyanBack:{_hx_index:26,__enum__:"Attribute",toString:t},WhiteBack:{_hx_index:27,__enum__:"Attribute",toString:t},DefaultBackground:{_hx_index:28,__enum__:"Attribute",toString:t}};var o=function(){};o.__name__=true;o.systemName=function(){var e=process.platform;switch(e){case"darwin":return"Mac";case"freebsd":return"BSD";case"linux":return"Linux";case"win32":return"Windows";default:var t=e;return t}};var a=i(129);var l=function(){};l.__name__=true;l.field=function(e,t){try{return e[t]}catch(e){var i=e instanceof H?e.val:e;return null}};l.fields=function(e){var t=[];if(e!=null){var i=Object.prototype.hasOwnProperty;for(var n in e){if(n!="__id__"&&n!="hx__closures__"&&i.call(e,n)){t.push(n)}}}return t};l.compare=function(e,t){if(e==t){return 0}else if(e>t){return 1}else{return-1}};l.isEnumValue=function(e){if(e!=null){return e.__enum__!=null}else{return false}};l.copy=function(e){if(e==null){return null}var t={};var i=0;var n=l.fields(e);while(i<n.length){var r=n[i];++i;t[r]=l.field(e,r)}return t};var u=function(){};u.__name__=true;u.getClass=function(e){if(e==null){return null}else if(e instanceof Array){return Array}else{var t=e.__class__;if(t!=null){return t}var i=u.__nativeClassName(e);if(i!=null){return u.__resolveNativeClass(i)}return null}};u.__string_rec=function(e,t){if(e==null){return"null"}if(t.length>=5){return"<...>"}var i=typeof e;if(i=="function"&&(e.__name__||e.__ename__)){i="object"}switch(i){case"function":return"<function>";case"object":if(e.__enum__){var r=n[e.__enum__];var s=r.__constructs__[e._hx_index];var o=r[s];if(o.__params__){t=t+"\t";return s+"("+function(i){var n;var r=[];{var s=0;var a=o.__params__;while(true){if(!(s<a.length)){break}var l=a[s];s=s+1;r.push(u.__string_rec(e[l],t))}}n=r;return n}(this).join(",")+")"}else{return s}}if(e instanceof Array){var a="[";t+="\t";var l=0;var c=e.length;while(l<c){var h=l++;a+=(h>0?",":"")+u.__string_rec(e[h],t)}a+="]";return a}var f;try{f=e.toString}catch(e){var d=e instanceof H?e.val:e;return"???"}if(f!=null&&f!=Object.toString&&typeof f=="function"){var m=e.toString();if(m!="[object Object]"){return m}}var p="{\n";t+="\t";var v=e.hasOwnProperty!=null;var y=null;for(y in e){if(v&&!e.hasOwnProperty(y)){continue}if(y=="prototype"||y=="__class__"||y=="__super__"||y=="__interfaces__"||y=="__properties__"){continue}if(p.length!=2){p+=", \n"}p+=t+y+" : "+u.__string_rec(e[y],t)}t=t.substring(1);p+="\n"+t+"}";return p;case"string":return e;default:return String(e)}};u.__interfLoop=function(e,t){if(e==null){return false}if(e==t){return true}if(Object.prototype.hasOwnProperty.call(e,"__interfaces__")){var i=e.__interfaces__;var n=0;var r=i.length;while(n<r){var s=n++;var o=i[s];if(o==t||u.__interfLoop(o,t)){return true}}}return u.__interfLoop(e.__super__,t)};u.__instanceof=function(e,t){if(t==null){return false}switch(t){case Array:return e instanceof Array;case Le:return typeof e=="boolean";case xe:return e!=null;case Oe:return typeof e=="number";case Re:if(typeof e=="number"){return(e|0)===e}else{return false}break;case String:return typeof e=="string";default:if(e!=null){if(typeof t=="function"){if(u.__downcastCheck(e,t)){return true}}else if(typeof t=="object"&&u.__isNativeObj(t)){if(e instanceof t){return true}}}else{return false}if(t==Ie?e.__name__!=null:false){return true}if(t==Ne?e.__ename__!=null:false){return true}return e.__enum__!=null?n[e.__enum__]==t:false}};u.__downcastCheck=function(e,t){if(!(e instanceof t)){if(t.__isInterface__){return u.__interfLoop(u.getClass(e),t)}else{return false}}else{return true}};u.__nativeClassName=function(e){var t=u.__toStr.call(e).slice(8,-1);if(t=="Object"||t=="Function"||t=="Math"||t=="JSON"){return null}return t};u.__isNativeObj=function(e){return u.__nativeClassName(e)!=null};u.__resolveNativeClass=function(t){return e[t]};var c=function(){};c.__name__=true;c.string=function(e){return u.__string_rec(e,"")};c.parseInt=function(e){if(e!=null){var t=0;var i=e.length;while(t<i){var n=t++;var r=e.charCodeAt(n);if(r<=8||r>=14&&r!=32&&r!=45){var s=parseInt(e,e[n+1]=="x"||e[n+1]=="X"?16:10);if(isNaN(s)){return null}else{return s}}}}return null};var h=function(){};h.__name__=true;h.aset=function(e){if(h.strip||h.stripIfUnavailable&&!h.available){return""}var t=""+"[";var i=[];var n=0;while(n<e.length){var r=e[n];++n;if(!u.__instanceof(r,s)){throw new H("Set argument is not an Attribute: "+c.string(r))}i.push(h.values.get(r))}return t+i.join(";")+"m"};h.detectSupport=function(){if(o.systemName().toLowerCase().indexOf("window")==-1){var e=-1;try{e=a.spawnSync("tput",["colors"]).error==null?0:125}catch(e){var t=e instanceof H?e.val:e}return e==0}else{return process.env["ANSICON"]!=null}};var f=function(){};f.__name__=true;f.cca=function(e,t){var i=e.charCodeAt(t);if(i!=i){return undefined}return i};f.substr=function(e,t,i){if(i==null){i=e.length}else if(i<0){if(t==0){i=e.length+i}else{return""}}return e.substr(t,i)};f.iter=function(e){return{cur:0,arr:e,hasNext:function(){return this.cur<this.arr.length},next:function(){return this.arr[this.cur++]}}};Math.__name__=true;var d=function(){};d.__name__=true;d.startsWith=function(e,t){if(e.length>=t.length){return e.lastIndexOf(t,0)==0}else{return false}};d.endsWith=function(e,t){var i=t.length;var n=e.length;if(n>=i){return e.indexOf(t,n-i)==n-i}else{return false}};d.lpad=function(e,t,i){if(t.length<=0){return e}var n="";i-=e.length;while(n.length<i)n+=t==null?"null":""+t;n+=e==null?"null":""+e;return n};d.replace=function(e,t,i){return e.split(t).join(i)};var m=function(){};m.__name__=true;m.prototype={writeByte:function(e){throw new H("Not implemented")},writeBytes:function(e,t,i){if(t<0||i<0||t+i>e.length){throw new H(L.OutsideBounds)}var n=e.b;var r=i;while(r>0){this.writeByte(n[t]);++t;--r}return i},writeFullBytes:function(e,t,i){while(i>0){var n=this.writeBytes(e,t,i);t+=n;i-=n}},writeString:function(e,t){var i=x.ofString(e,t);this.writeFullBytes(i,0,i.length)},__class__:m};var p=function(e){this.fd=e};p.__name__=true;p.__super__=m;p.prototype=$extend(m.prototype,{writeByte:function(e){U.writeSync(this.fd,String.fromCodePoint(e))},writeBytes:function(e,t,i){var n=e.b;return U.writeSync(this.fd,Q.from(n.buffer,n.byteOffset,e.length),t,i)},writeString:function(e,t){U.writeSync(this.fd,e)},__class__:p});var v=function(){};v.__name__=true;v.enumParameters=function(e){var t=n[e.__enum__];var i=t.__constructs__[e._hx_index];var r=t[i].__params__;if(r!=null){var s=[];var o=0;while(o<r.length){var a=r[o];++o;s.push(e[a])}return s}else{return[]}};var y=n["haxe.StackItem"]={__ename__:true,__constructs__:["CFunction","Module","FilePos","Method","LocalFunction"],CFunction:{_hx_index:0,__enum__:"haxe.StackItem",toString:t},Module:(r=function(e){return{_hx_index:1,m:e,__enum__:"haxe.StackItem",toString:t}},r.__params__=["m"],r),FilePos:(r=function(e,i,n,r){return{_hx_index:2,s:e,file:i,line:n,column:r,__enum__:"haxe.StackItem",toString:t}},r.__params__=["s","file","line","column"],r),Method:(r=function(e,i){return{_hx_index:3,classname:e,method:i,__enum__:"haxe.StackItem",toString:t}},r.__params__=["classname","method"],r),LocalFunction:(r=function(e){return{_hx_index:4,v:e,__enum__:"haxe.StackItem",toString:t}},r.__params__=["v"],r)};var _=function(){};_.__name__=true;_.__isInterface__=true;var w=function(e){var t=this;this.id=setInterval(function(){t.run()},e)};w.__name__=true;w.delay=function(e,t){var i=new w(t);i.run=function(){i.stop();e()};return i};w.prototype={stop:function(){if(this.id==null){return}clearInterval(this.id);this.id=null},run:function(){},__class__:w};var g=function(){};g.__name__=true;g.__interfaces__=[_];g.prototype={set:function(e,t){this.root=this.setLoop(e,t,this.root)},get:function(e){var t=this.root;while(t!=null){var i=this.compare(e,t.key);if(i==0){return t.value}if(i<0){t=t.left}else{t=t.right}}return null},setLoop:function(e,t,i){if(i==null){return new S(null,e,t,null)}var n=this.compare(e,i.key);if(n==0){return new S(i.left,e,t,i.right,i==null?0:i._height)}else if(n<0){var r=this.setLoop(e,t,i.left);return this.balance(r,i.key,i.value,i.right)}else{var s=this.setLoop(e,t,i.right);return this.balance(i.left,i.key,i.value,s)}},balance:function(e,t,i,n){var r=e==null?0:e._height;var s=n==null?0:n._height;if(r>s+2){var o=e.left;var a=e.right;if((o==null?0:o._height)>=(a==null?0:a._height)){return new S(e.left,e.key,e.value,new S(e.right,t,i,n))}else{return new S(new S(e.left,e.key,e.value,e.right.left),e.right.key,e.right.value,new S(e.right.right,t,i,n))}}else if(s>r+2){var l=n.right;var u=n.left;if((l==null?0:l._height)>(u==null?0:u._height)){return new S(new S(e,t,i,n.left),n.key,n.value,n.right)}else{return new S(new S(e,t,i,n.left.left),n.left.key,n.left.value,new S(n.left.right,n.key,n.value,n.right))}}else{return new S(e,t,i,n,(r>s?r:s)+1)}},compare:function(e,t){return l.compare(e,t)},__class__:g};var S=function(e,t,i,n,r){if(r==null){r=-1}this.left=e;this.key=t;this.value=i;this.right=n;if(r==-1){var s;var o=this.left;var a=this.right;if((o==null?0:o._height)>(a==null?0:a._height)){var l=this.left;s=l==null?0:l._height}else{var u=this.right;s=u==null?0:u._height}this._height=s+1}else{this._height=r}};S.__name__=true;S.prototype={__class__:S};var b=function(){g.call(this)};b.__name__=true;b.__interfaces__=[_];b.__super__=g;b.prototype=$extend(g.prototype,{compare:function(e,t){var i=e._hx_index-t._hx_index;if(i!=0){return i}var n=v.enumParameters(e);var r=v.enumParameters(t);if(n.length==0&&r.length==0){return 0}return this.compareArgs(n,r)},compareArgs:function(e,t){var i=e.length-t.length;if(i!=0){return i}var n=0;var r=e.length;while(n<r){var s=n++;var o=this.compareArg(e[s],t[s]);if(o!=0){return o}}return 0},compareArg:function(e,t){if(l.isEnumValue(e)&&l.isEnumValue(t)){return this.compare(e,t)}else if(e instanceof Array&&t instanceof Array){return this.compareArgs(e,t)}else{return l.compare(e,t)}},__class__:b});var E=n["haxe.ds.Option"]={__ename__:true,__constructs__:["Some","None"],Some:(r=function(e){return{_hx_index:0,v:e,__enum__:"haxe.ds.Option",toString:t}},r.__params__=["v"],r),None:{_hx_index:1,__enum__:"haxe.ds.Option",toString:t}};var R=function(){this.h={}};R.__name__=true;R.__interfaces__=[_];R.prototype={setReserved:function(e,t){if(this.rh==null){this.rh={}}this.rh["$"+e]=t},getReserved:function(e){if(this.rh==null){return null}else{return this.rh["$"+e]}},keys:function(){return f.iter(this.arrayKeys())},arrayKeys:function(){var e=[];for(var t in this.h){if(this.h.hasOwnProperty(t)){e.push(t)}}if(this.rh!=null){for(var t in this.rh){if(t.charCodeAt(0)==36){e.push(t.substr(1))}}}return e},__class__:R};var x=function(e){this.length=e.byteLength;this.b=new Uint8Array(e);this.b.bufferValue=e;e.hxBytes=this;e.bytes=this.b};x.__name__=true;x.ofString=function(e,t){if(t==O.RawNative){var i=new Uint8Array(e.length<<1);var n=0;var r=e.length;while(n<r){var s=n++;var o=e.charCodeAt(s);i[s<<1]=o&255;i[s<<1|1]=o>>8}return new x(i.buffer)}var a=[];var l=0;while(l<e.length){var u=e.charCodeAt(l++);if(55296<=u&&u<=56319){u=u-55232<<10|e.charCodeAt(l++)&1023}if(u<=127){a.push(u)}else if(u<=2047){a.push(192|u>>6);a.push(128|u&63)}else if(u<=65535){a.push(224|u>>12);a.push(128|u>>6&63);a.push(128|u&63)}else{a.push(240|u>>18);a.push(128|u>>12&63);a.push(128|u>>6&63);a.push(128|u&63)}}return new x(new Uint8Array(a).buffer)};x.prototype={sub:function(e,t){if(e<0||t<0||e+t>this.length){throw new H(L.OutsideBounds)}return new x(this.b.buffer.slice(e+this.b.byteOffset,e+this.b.byteOffset+t))},__class__:x};var O=n["haxe.io.Encoding"]={__ename__:true,__constructs__:["UTF8","RawNative"],UTF8:{_hx_index:0,__enum__:"haxe.io.Encoding",toString:t},RawNative:{_hx_index:1,__enum__:"haxe.io.Encoding",toString:t}};var L=n["haxe.io.Error"]={__ename__:true,__constructs__:["Blocked","Overflow","OutsideBounds","Custom"],Blocked:{_hx_index:0,__enum__:"haxe.io.Error",toString:t},Overflow:{_hx_index:1,__enum__:"haxe.io.Error",toString:t},OutsideBounds:{_hx_index:2,__enum__:"haxe.io.Error",toString:t},Custom:(r=function(e){return{_hx_index:3,e:e,__enum__:"haxe.io.Error",toString:t}},r.__params__=["e"],r)};var I=function(e){switch(e){case".":case"..":this.dir=e;this.file="";return}var t=e.lastIndexOf("/");var i=e.lastIndexOf("\\");if(t<i){this.dir=f.substr(e,0,i);e=f.substr(e,i+1,null);this.backslash=true}else if(i<t){this.dir=f.substr(e,0,t);e=f.substr(e,t+1,null)}else{this.dir=null}var n=e.lastIndexOf(".");if(n!=-1){this.ext=f.substr(e,n+1,null);this.file=f.substr(e,0,n)}else{this.ext=null;this.file=e}};I.__name__=true;I.directory=function(e){var t=new I(e);if(t.dir==null){return""}return t.dir};I.addTrailingSlash=function(e){if(e.length==0){return"/"}var t=e.lastIndexOf("/");var i=e.lastIndexOf("\\");if(t<i){if(i!=e.length-1){return e+"\\"}else{return e}}else if(t!=e.length-1){return e+"/"}else{return e}};I.removeTrailingSlashes=function(e){e:while(true){var t=f.cca(e,e.length-1);if(t==null){break}else{switch(t){case 47:case 92:e=f.substr(e,0,-1);break;default:break e}}}return e};I.prototype={__class__:I};var N=function(){};N.__name__=true;N.to=function(e,t,i){return new ye(new Se(function(){return me.catchExceptions(t,function(t){return me.withData(null,"Failed to "+e,t,i)},{fileName:"haxeshim/Attempt.hx",lineNumber:8,className:"haxeshim.Attempt",methodName:"to"})}))};var C={};C.__name__=true;C.ofVars=function(e){var t={};var i=t;var n=0;var r=l.fields(e);while(n<r.length){var s=r[n];++n;i[k.IS_WINDOWS?s.toUpperCase():s]=e[s]}var o=i;return o};C.ofMap=function(e){var t={};var i=t;var n=e.keys();while(n.hasNext()){var r=n.next();i[k.IS_WINDOWS?r.toUpperCase():r]=Ce[r]!=null?e.getReserved(r):e.h[r]}var s=i;return s};C.vars=function(e){return e};C.toVars=function(e){return l.copy(e)};C.get=function(e,t){return e[k.IS_WINDOWS?t.toUpperCase():t]};C.mergeInto=function(e,t){var i=C.vars(t);if(e==null){var n=i;var r=n;return r}else if(i==null){var s=e;var o=s;return o}else{var a=e;var u=i;var c={};var h=c;var f=u;var d=0;var m=l.fields(f);while(d<m.length){var p=m[d];++d;h[p]=f[p]}var v=a;var y=0;var _=l.fields(v);while(y<_.length){var w=_[y];++y;h[w]=v[w]}var g=h;return g}};var D=function(){};D.__name__=true;D.mergeEnv=function(e){return C.mergeInto(e,C.ofVars(process.env))};D.sync=function(e,t,i,n){var r=a.spawnSync(e,i,{cwd:t,stdio:"inherit",env:C.toVars(D.mergeEnv(n))});var s=r.stdout;var o=r.stderr;var l=r.status;var u=r.signal;var h=r.pid;var f=r.output;var d=r.error;if(d==null){var m=l;return W.Success(m)}else{var p=l;var v=d;return W.Failure(new me(p,"Failed to call "+e+" because "+c.string(v),{fileName:"haxeshim/Exec.hx",lineNumber:54,className:"haxeshim.Exec",methodName:"sync"}))}};var A=function(){};A.__name__=true;A.exists=function(e){var t=e;return N.to("check the existence of "+e,function(){return M.exists(t)},{fileName:"haxeshim/Fs.hx",lineNumber:26,className:"haxeshim.Fs",methodName:"exists"})};A.ensureDir=function(e){var t=d.endsWith(e,"/")||d.endsWith(e,"\\");if(t){e=I.removeTrailingSlashes(e)}var i=I.directory(e);if(I.removeTrailingSlashes(i)==e){return new ye(new z(W.Success(ve.Noise)))}else{return be.next(be.next(A.exists(i),function(e){if(e){return new ye(new z(W.Success(ve.Noise)))}else{return A.ensureDir(I.addTrailingSlash(i))}}),function(i){if(t){return be.next(A.exists(e),function(t){return N.to("create directory "+e,function(){if(!t){M.createDirectory(e)}return ve.Noise},{fileName:"haxeshim/Fs.hx",lineNumber:49,className:"haxeshim.Fs",methodName:"ensureDir"})})}else{return new ye(new z(W.Success(ve.Noise)))}})}};A.peel=function(e,t){var i=0;var n=0;var r=t;while(n<r){var s=n++;var o=e.indexOf("/",i);if(o==-1){return E.None}else{var a=o;i=a+1}}return E.Some(f.substr(e,i,null))};var k=function(){};k.__name__=true;k.slashes=function(e){if(k.IS_WINDOWS){return d.replace(e,"/","\\")}else{return e}};var B=function(){};B.__name__=true;B.get=function(e){if(e==null){e=false}if(e){if(B.SILENT==null){B.SILENT=new B}return B.SILENT}else{if(B.DEFAULT==null){B.DEFAULT=new F}return B.DEFAULT}};B.prototype={error:function(e){},info:function(e){},success:function(e){},progress:function(e){},__class__:B};var F=function(){B.call(this)};F.__name__=true;F.__super__=B;F.prototype=$extend(B.prototype,{log:function(e,t){this.progress("");var i=F.out;var n;switch(e._hx_index){case 0:n=[s.Red];break;case 1:n=[s.Yellow];break;case 2:n=[s.DefaultForeground];break;case 3:n=[s.Green];break}i.writeString(h.aset(n)+t+h.aset([s.Off])+"\n")},error:function(e){this.log(P.Error,e)},info:function(e){this.log(P.Info,e)},success:function(e){this.log(P.Success,e)},progress:function(e){if(F.isTTY){if(e.length>80){e=f.substr(e,0,77)+"..."}F.out.writeString((h.strip||h.stripIfUnavailable&&!h.available?"":"[2K")+(h.strip||h.stripIfUnavailable&&!h.available?"":"["+1+"G")+e)}},__class__:F});var P=n["haxeshim._Logger.Level"]={__ename__:true,__constructs__:["Error","Warning","Info","Success"],Error:{_hx_index:0,__enum__:"haxeshim._Logger.Level",toString:t},Warning:{_hx_index:1,__enum__:"haxeshim._Logger.Level",toString:t},Info:{_hx_index:2,__enum__:"haxeshim._Logger.Level",toString:t},Success:{_hx_index:3,__enum__:"haxeshim._Logger.Level",toString:t}};var T=function(){};T.__name__=true;T.__isInterface__=true;T.prototype={__class__:T};var z=function(e){this.value=e};z.__name__=true;z.__interfaces__=[T];z.prototype={get:function(){return this.value},__class__:z};var M=function(){};M.__name__=true;M.exists=function(e){try{U.accessSync(e);return true}catch(e){var t=e instanceof H?e.val:e;return false}};M.createDirectory=function(e){try{U.mkdirSync(e)}catch(r){var t=r instanceof H?r.val:r;if(t.code=="ENOENT"){M.createDirectory(X.dirname(e));U.mkdirSync(e)}else{var i;try{i=U.statSync(e)}catch(e){var n=e instanceof H?e.val:e;throw t}if(!i.isDirectory()){throw t}}}};var U=i(747);var W=n["tink.core.Outcome"]={__ename__:true,__constructs__:["Success","Failure"],Success:(r=function(e){return{_hx_index:0,data:e,__enum__:"tink.core.Outcome",toString:t}},r.__params__=["data"],r),Failure:(r=function(e){return{_hx_index:1,failure:e,__enum__:"tink.core.Outcome",toString:t}},r.__params__=["failure"],r)};var Z=function(){};Z.__name__=true;Z.env=function(e){var t=process.env[e];if(t==null){return E.None}else if(t==""){return E.None}else{var i=t;return E.Some(i)}};var G=function(){};G.__name__=true;G.setEnv=function(){if(G.isset){if(k.IS_WINDOWS){var e=0;var t=G.ENV;var i=t==null?[]:l.fields(t);while(e<i.length){var n=i[e];++e;var r=C.get(G.ENV,n);process.env[n]=r}}G.isset=false}};var Y=function(){};Y.__name__=true;Y.main=function(){G.setEnv();var e=k.IS_WINDOWS?"neko.exe":"neko";var t=process.argv.slice(2);var i=process.cwd();var n={};var r;var s=D.sync(G.PATH+("/"+e),i,t,C.mergeInto(G.ENV,C.ofVars(n)));switch(s._hx_index){case 0:var o=s.data;r=o;break;case 1:var a=s.failure;r=a.code;break}process.exit(r)};var H=function(e){Error.call(this);this.val=e;if(Error.captureStackTrace){Error.captureStackTrace(this,H)}};H.__name__=true;H.__super__=Error;H.prototype=$extend(Error.prototype,{__class__:H});var V=function(){};V.__name__=true;V.sliceImpl=function(e,t){var i=new Uint8Array(this,e,t==null?null:t-e);var n=new Uint8Array(i.byteLength);n.set(i);return n.buffer};var j=i(605);var q=i(211);var X=i(622);var J=i(835);var Q=i(293).Buffer;var $=function(){};$.__name__=true;$.bytesOfBuffer=function(e){var t=Object.create(x.prototype);t.length=e.byteLength;t.b=e;e.bufferValue=e;e.hxBytes=t;e.bytes=e;return t};var K=i(413).PassThrough;var ee=function(){};ee.__name__=true;ee.attempt=function(e,t){var i=Ee.ofSync(ee.reportError);var n=e.flatMap(function(e){switch(e._hx_index){case 0:var t=e.data;return new ye(new z(t));case 1:var n=e.failure;return i(n)}});n.gather().handle(t)};ee.reportError=function(e){B.get().error(e.message);process.exit(e.code);return null};var te=function(){};te.__name__=true;te.ensure=function(e){return re.ensureNeko(e)};te.main=function(){ee.attempt(te.ensure(B.get()),ae.fromNiladic(Y.main))};var ie=i(766);var ne=function(){};ne.__name__=true;ne.buffered=function(e){return _e.async(function(t){var i=[];e.on("data",$bind(i,$arrayPush));e.on("end",function(){var e=W.Success($.bytesOfBuffer(Q.concat(i)));t(e)})})};ne.unzip=function(e,t,n,r,s){be.next(ne.buffered(r),function(r){return _e.async(function(o){var a=r.length-4;while(a-- >0)if(r.b[a]==80&&r.b[a+1]==75&&r.b[a+2]==5&&r.b[a+3]==6){r.b[a+20]=0;r.b[a+21]=0;r=r.sub(0,a+22);break}if(a==0){var l=W.Failure(new me(422,"Unzip failed to find central directory in "+e,{fileName:"src/lix/client/Download.hx",lineNumber:70,className:"lix.client.Download",methodName:"unzip"}));o(l);return}var u=r.b;ie.fromBuffer(Q.from(u.buffer,u.byteOffset,r.length),function(r,a){var l=-1;var u=function(){l+=1;s.onProgress(l,a.entryCount,false);if(l==a.entryCount){var e=o;var i=W.Success(t);w.delay(function(){e(i)},100)}};if(r!=null){var h=W.Failure(new me(422,"Failed to unzip "+e+" because "+c.string(r),{fileName:"src/lix/client/Download.hx",lineNumber:83,className:"lix.client.Download",methodName:"unzip"}));o(h)}a.on("entry",function(e){var r=A.peel(ne.stripLeadingSlashes(e.fileName),n);switch(r._hx_index){case 0:var s=r.v;var o=""+t+"/"+s;if(d.endsWith(o,"/")){u()}else{A.ensureDir(o).eager();a.openReadStream(e,function(e,t){var n=i(598).createWriteStream(o);t.pipe(n,{end:true});n.on("close",u)})}break;case 1:break}});a.on("end",function(){a.close();u()})})})}).handle($bind(s,s.done))};ne.stripLeadingSlashes=function(e){if(e.charAt(0)=="/"){return ne.stripLeadingSlashes(f.substr(e,1,null))}else{return e}};ne.untar=function(e,t,n,r,s){return _e.async(function(e){var o=0;var a=0;var l=[];var u=function(){s.onProgress(a,o+1,true)};var c=1;var h=function(i){if(i==null){i=0}a+=i;u();w.delay(function(){if((c-=1)<=0){s.onProgress(o,o,true);var i=[];var n=0;while(n<l.length){var r=[l[n]];++n;i.push(_e.async(function(e){return function(t){U.unlink(e[0].to,function(e){return function(i){U.symlink(e[0].from,e[0].to,function(){return function(e){var i=e==null?W.Success(ve.Noise):W.Failure(new me(null,e.message,{fileName:"src/lix/client/Download.hx",lineNumber:142,className:"lix.client.Download",methodName:"untar"}));t(i)}}())}}(e))}}(r)))}be.next(be.inParallel(i),function(e){return new ye(new z(W.Success(t)))}).handle(e)}},100)};var f=null;var m=function(t){f=new me(null,t,{fileName:"src/lix/client/Download.hx",lineNumber:154,className:"lix.client.Download",methodName:"untar"});e(W.Failure(f))};se.parse(r,function(r){if(f!=null){return}o+=r.size;u();var s=function(){r.on("data",function(){})};var a=A.peel(ne.stripLeadingSlashes(r.path),n);switch(a._hx_index){case 0:var m=a.v;var p=""+t+"/"+m;if(d.endsWith(p,"/")){s()}else{A.ensureDir(p).handle(function(t){if(t._hx_index==1){var n=t.failure;f=n;e(W.Failure(f))}else if(r.type=="SymbolicLink"){s();l.push({from:r.linkpath,to:p})}else{c+=1;var o=new K;var a=i(598).createWriteStream(p,{mode:r.mode});r.pipe(o,{end:true});o.pipe(a,{end:true});var u=h;var d=r.size;a.on("close",function(){u(d)})}})}break;case 1:s();break}}).handle(function(t){if(t._hx_index==1){var i=t.failure;e(W.Failure(i))}else{h()}})}).handle($bind(s,s.done))};ne.tar=function(e,t,i,n){var r=i;var s=t;return ne.download(e,ne.withLogger(n,function(e,t,i){return ne.untar(e,r,s,t,i)}))};ne.zip=function(e,t,i,n){var r=i;var s=t;return ne.download(e,ne.withLogger(n,function(e,t,i){ne.unzip(e,r,s,t,i)}))};ne.withLogger=function(e,t){return function(i,n,r){var s=c.parseInt(n.headers["content-length"]);var o=0;var a=0;var l=1;var u=null;var h=function(t){if(t==u){return}u=t;e.progress(t)};var f=function(e){e=Math.min(1,Math.max(0,e));var t=c.string(Math.round(1e3*e)/10);var i;if(t.indexOf(".")==-1){var n=t;i=""+n+".0"}else{var r=t;i=r}return d.lpad(i," ",5)+"%"};var m=new Date(0).getTime();var p=function(){if(!(a==l||a/l>=1)){var e=(new Date).getTime();if(e>m+137){m=e;var t=[];if(o<s){t.push("Downloaded: "+f(o/s))}if(a>0){t.push("Saved: "+f(a/l))}var i=" "+t.join(" ");h(i)}}};n.on("data",function(e){o+=e.length;p()});var v=0;t(i,n,{onProgress:function(e,t,i){a=e;l=t;if(i){var n=o/s;var r=a/l;var u=n*r;if(u<v){u=v}v=u;a=Math.round(u*1e3);l=1e3}p()},done:function(t){e.success("-> Done!");r(t)}})}};ne.download=function(e,t){return _e.async(function(i){var n=J.parse(e);n.agent=false;if(n.headers==null){n.headers={}}n.headers["user-agent"]=ne.USER_AGENT;var r=function(t){var n=W.Failure(me.withData(null,"Failed to download "+e+" because "+t.message,t,{fileName:"src/lix/client/Download.hx",lineNumber:293,className:"lix.client.Download",methodName:"download"}));i(n)};var s=d.startsWith(e,"https:")?q.get(n):j.get(n);s.setTimeout(3e4);s.on("error",r);s.on("response",function(s){if(s.statusCode>=400){var o=W.Failure(me.withData(s.statusCode,s.statusMessage,s,{fileName:"src/lix/client/Download.hx",lineNumber:304,className:"lix.client.Download",methodName:"download"}));i(o)}else{var a=s.headers["location"];if(a==null){s.on("error",r);t(e,s,function(e){switch(e._hx_index){case 0:var t=e.data;i(W.Success(t));break;case 1:var n=e.failure;i(W.Failure(n));break}})}else{var l=a;var u=J.parse(l);var c=u.slashes;var h=u.search;var f=u.query;var d=u.port;var m=u.pathname;var p=u.path;var v=u.href;var y=u.hostname;var _=u.host;var w=u.hash;var g=u.auth;ne.download(u.protocol==null?n.protocol+"//"+n.host+l:l,t).handle(i)}}})})};var re=function(){};re.__name__=true;re.ensureNeko=function(e){var t=G.PATH;if(M.exists(t)){return new ye(new z(W.Success(t)))}else{e.info("Neko seems to be missing. Attempting download ...");var i=process.arch;var n;switch(o.systemName()){case"Mac":n=ne.tar("https://github.com/HaxeFoundation/neko/releases/download/v2-3-0/neko-2.3.0-osx64.tar.gz",1,t,e);break;case"Windows":n=ne.zip("https://github.com/HaxeFoundation/neko/releases/download/v2-3-0/neko-2.3.0-win.zip",1,t,e);break;default:n=i=="arm64"?ne.tar("https://build.haxe.org/builds/neko/linux-arm64/neko_latest.tar.gz",1,t,e):ne.tar("https://github.com/HaxeFoundation/neko/releases/download/v2-3-0/neko-2.3.0-linux64.tar.gz",1,t,e)}return be.next(n,function(t){e.success("done");return new ye(new z(W.Success(t)))})}};var se=function(){};se.__name__=true;se.parse=function(e,t){return _e.async(function(i){var n=0;var r=0;var s=new oe({onentry:function(e){n+=1;t(e)}});s.on("warn",function(){r+=1});s.on("end",function(){var e=n==0&&r!=0?W.Failure(new me(422,"Invalid tar archive.",{fileName:"src/lix/client/uncompress/Tar.hx",lineNumber:23,className:"lix.client.uncompress.Tar",methodName:"parse"})):W.Success(ve.Noise);i(e)});s.on("error",function(e){var t=W.Failure(new me(null,e.message,{fileName:"src/lix/client/uncompress/Tar.hx",lineNumber:26,className:"lix.client.uncompress.Tar",methodName:"parse"}));i(t)});e.pipe(s,{end:true})})};var oe=i(885).Parse;var ae={};ae.__name__=true;ae.invoke=function(e,t){if(ae.depth<500){ae.depth++;e(t);ae.depth--}else{var i=e;var n=function(e){ae.invoke(i,e)};var r=t;ae.defer(function(){n(r)})}};ae.fromNiladic=function(e){return e};ae.defer=function(e){process.nextTick(e)};var le=function(){};le.__name__=true;le.__isInterface__=true;le.prototype={__class__:le};var ue={};ue.__name__=true;ue.fromMany=function(e){var t=new ce(function(){if(e!=null){var t=0;while(t<e.length){var i=e[t];++t;if(i!=null){i.cancel()}}}else{e=null}});return t};var ce=function(e){this.f=e};ce.__name__=true;ce.__interfaces__=[le];ce.prototype={cancel:function(){if(this.f!=null){this.f();this.f=null}},__class__:ce};var he=function(e,t){this.dissolved=false;this.a=e;this.b=t};he.__name__=true;he.__interfaces__=[le];he.prototype={cancel:function(){if(!this.dissolved){this.dissolved=true;var e=this.a;if(e!=null){e.cancel()}var t=this.b;if(t!=null){t.cancel()}this.a=null;this.b=null}},__class__:he};var fe=function(e,t){if(e==null){throw new H("callback expected but null received")}this.cb=e;this.list=t};fe.__name__=true;fe.__interfaces__=[le];fe.prototype={cancel:function(){if(this.list!=null){var e=this.list;this.cb=null;this.list=null;if(--e.used<e.used>>1){e.compact()}}},__class__:fe};var de=function(){this.busy=false;this.queue=[];this.used=0;this.cells=[]};de.__name__=true;de.prototype={ondrain:function(){},invoke:function(e,t){if(this.busy){var i=$bind(this,this.invoke);var n=e;var r=t;var s=function(){i(n,r);return};this.queue.push(s)}else{this.busy=true;var o=this.cells.length;var a=0;var l=o;while(a<l){var u=a++;var c=this.cells[u];if(c.list!=null){ae.invoke(c.cb,e)}}this.busy=false;if(t){var h=this.cells.length-o;var f=0;var d=o;while(f<d){var m=f++;var p=this.cells[m];p.cb=null;p.list=null}var v=0;var y=h;while(v<y){var _=v++;this.cells[_]=this.cells[o+_]}this.resize(h)}else if(this.used<this.cells.length){this.compact()}if(this.queue.length>0){this.queue.shift()()}}},compact:function(){if(this.busy){return}else if(this.used==0){this.resize(0);this.ondrain()}else{var e=0;var t=0;var i=this.cells.length;while(t<i){var n=t++;var r=this.cells[n];var s=r.list;if(r.cb!=null){var o=r;if(e!=n){this.cells[e]=o}if(++e==this.used){break}}}this.resize(this.used)}},resize:function(e){this.cells.length=e},__class__:de};var me=function(e,t,i){if(e==null){e=500}this.isTinkError=true;this.code=e;this.message=t;this.pos=i;this.exceptionStack=[];this.callStack=[]};me.__name__=true;me.withData=function(e,t,i,n){return me.typed(e,t,i,n)};me.typed=function(e,t,i,n){var r=new me(e,t,n);r.data=i;return r};me.asError=function(e){if(e!=null&&e.isTinkError){return e}else{return null}};me.catchExceptions=function(e,t,i){try{return W.Success(e())}catch(e){var n=e instanceof H?e.val:e;var r=me.asError(n);var s;if(r==null){s=t==null?me.withData(null,"Unexpected Error",n,i):t(n)}else{var o=r;s=o}return W.Failure(s)}};me.prototype={__class__:me};var pe=function(){};pe.__name__=true;pe.__isInterface__=true;pe.prototype={__class__:pe};var ve=n["tink.core.Noise"]={__ename__:true,__constructs__:["Noise"],Noise:{_hx_index:0,__enum__:"tink.core.Noise",toString:t}};var ye=function(e){this.value=e};ye.__name__=true;ye.__interfaces__=[pe];ye.prototype={flatMap:function(e){var t=this;return new ge(function(i){var n=t.value.get();return e(n).handle(i)})},handle:function(e){ae.invoke(e,this.value.get());return null},eager:function(){return this},gather:function(){return this},__class__:ye};var _e={};_e.__name__=true;_e.flatten=function(e){return new ge(function(t){var i=null;var n=e.handle(function(e){i=e.handle(t)});var r=new ce(function(){if(i!=null){i.cancel()}});return new he(n,r)})};_e.async=function(e,t){if(t==null){t=false}if(t){return new ge(function(t){e(t);return null})}else{var i=new we;var n=e;ae.invoke(n,$bind(i,i.trigger));return i}};var we=function(){this.list=new de};we.__name__=true;we.__interfaces__=[pe];we.prototype={handle:function(e){var t=this.list;if(t==null){ae.invoke(e,this.result);return null}else{var i=t;var n=new fe(e,i);i.cells.push(n);i.used++;return n}},flatMap:function(e){var t=this.list;if(t==null){return e(this.result)}else{var i=t;var n=new we;var r=this.list;var s=new fe(function(t){e(t).handle($bind(n,n.trigger))},r);r.cells.push(s);r.used++;return n}},gather:function(){return this},eager:function(){return this},trigger:function(e){if(this.list==null){return false}else{var t=this.list;this.list=null;this.result=e;t.invoke(e,true);return true}},__class__:we};var ge=function(e){this.suspended=true;var t=this;this.wakeup=e;this.callbacks=new de;this.callbacks.ondrain=function(){if(t.callbacks!=null){t.suspended=true;var e=t.link;if(e!=null){e.cancel()}t.link=null}}};ge.__name__=true;ge.__interfaces__=[pe];ge.prototype={trigger:function(e){var t=this.callbacks;if(t!=null){var i=t;this.callbacks=null;this.suspended=false;this.result=e;this.link=null;this.wakeup=null;i.invoke(e,true)}},handle:function(e){var t=this.callbacks;if(t==null){ae.invoke(e,this.result);return null}else{var i=t;var n=this.callbacks;var r=new fe(e,n);n.cells.push(r);n.used++;var s=r;if(this.suspended){this.suspended=false;this.link=this.wakeup($bind(this,this.trigger))}return s}},map:function(e){var t=this;return new ge(function(i){return t.handle(function(t){var n=e(t);i(n)})})},flatMap:function(e){return _e.flatten(this.map(e))},gather:function(){return this},eager:function(){this.handle(ae.fromNiladic(function(){}));return this},__class__:ge};var Se=function(e){this.f=e};Se.__name__=true;Se.__interfaces__=[T];Se.prototype={get:function(){if(this.f!=null){this.result=this.f();this.f=null}return this.result},__class__:Se};var be={};be.__name__=true;be.next=function(e,t,i){if(i==null){i=true}var n=i;if(n==null){n=true}var r=e.flatMap(function(e){switch(e._hx_index){case 0:var i=e.data;return t(i);case 1:var n=e.failure;return new ye(new z(W.Failure(n)))}});if(n){return r.gather()}else{return r}};be.inParallel=function(e,t,i){if(e.length==0){return new ye(new z(W.Success([])))}else{return _e.async(function(i){var n=[];var r=e.length;var s=null;var o=[];var a=false;var l=0;var u=f.iter(e);var c=null;var h=function(e){if(s==null){a=true}else if(s!=null){s.cancel()}i(e)};var d=function(e){r=0;h(W.Failure(e))};var m=function(e,t){n[e]=t;if((r-=1)==0){h(W.Success(n))}else if(u.hasNext()&&r>0){c()}};c=function(){l+=1;var e=l-1;var t=u.next().handle(function(t){switch(t._hx_index){case 0:var i=t.data;m(e,i);break;case 1:var n=t.failure;d(n);break}});o.push(t)};while(true){var p;if(u.hasNext()&&r>0){if(t!=null){t-=1;p=t+1>0}else{p=true}}else{p=false}if(!p){break}c()}s=ue.fromMany(o);if(a){if(s!=null){s.cancel()}}},i)}};var Ee={};Ee.__name__=true;Ee.ofSync=function(e){return function(t){return new ye(new z(e(t)))}};function $bind(t,i){if(i==null)return null;if(i.__id__==null)i.__id__=e.$haxeUID++;var n;if(t.hx__closures__==null)t.hx__closures__={};else n=t.hx__closures__[i.__id__];if(n==null){n=i.bind(t);t.hx__closures__[i.__id__]=n}return n}function $arrayPush(e){this.push(e)}e.$haxeUID|=0;u.__toStr={}.toString;if(String.fromCodePoint==null)String.fromCodePoint=function(e){return e<65536?String.fromCharCode(e):String.fromCharCode((e>>10)+55232)+String.fromCharCode((e&1023)+56320)};String.prototype.__class__=String;String.__name__=true;Array.__name__=true;Date.prototype.__class__=Date;Date.__name__="Date";var Re={};var xe={};var Oe=Number;var Le=Boolean;var Ie={};var Ne={};var Ce={};Object.defineProperty(H.prototype,"message",{get:function(){return String(this.val)}});if(ArrayBuffer.prototype.slice==null){ArrayBuffer.prototype.slice=V.sliceImpl}h.values=function(e){var t;var i=new b;i.set(s.Off,0);i.set(s.Bold,1);i.set(s.Underline,4);i.set(s.Blink,5);i.set(s.ReverseVideo,7);i.set(s.Concealed,8);i.set(s.BoldOff,22);i.set(s.UnderlineOff,24);i.set(s.BlinkOff,25);i.set(s.NormalVideo,27);i.set(s.ConcealedOff,28);i.set(s.Black,30);i.set(s.Red,31);i.set(s.Green,32);i.set(s.Yellow,33);i.set(s.Blue,34);i.set(s.Magenta,35);i.set(s.Cyan,36);i.set(s.White,37);i.set(s.DefaultForeground,39);i.set(s.BlackBack,40);i.set(s.RedBack,41);i.set(s.GreenBack,42);i.set(s.YellowBack,43);i.set(s.BlueBack,44);i.set(s.MagentaBack,45);i.set(s.CyanBack,46);i.set(s.WhiteBack,47);i.set(s.DefaultBackground,49);t=i;return t}(this);h.available=h.detectSupport();h.strip=false;h.stripIfUnavailable=true;k.IS_WINDOWS=o.systemName()=="Windows";k.DELIMITER=k.IS_WINDOWS?";":":";F.isTTY=process.stderr.isTTY;F.out=function(e){var t;h.available=F.isTTY;t=new p(2);return t}(this);Z.DEFAULT_ROOT=function(e){var t;var i=Z.env("HAXE_ROOT");var n=Z.env("HAXESHIM_ROOT");var r=new z(process.env[k.IS_WINDOWS?"APPDATA":"HOME"]+"/haxe");var s;if(n._hx_index==0){var o=n.v;s=o}else{s=r.get()}var a=new z(s);t=i._hx_index==0?function(e){var t;var n=i.v;t=n;return t}(e):a.get();return t}(this);G.PATH=k.slashes(Z.DEFAULT_ROOT+"/neko");G.isset=false;G.ENV=function(e){var t;var i;switch(o.systemName()){case"Mac":i="DYLD_LIBRARY_PATH";break;case"Windows":i="PATH";break;default:i="LD_LIBRARY_PATH"}var n=process.env[i];t=n==null?function(e){var t;var n=new R;{var r=G.PATH;if(Ce[i]!=null){n.setReserved(i,r)}else{n.h[i]=r}}t=C.ofMap(n);return t}(e):function(e){var t;var r=n;t=r.indexOf(G.PATH)!=-1?C.ofVars({}):function(e){var t;var r=n;var s=new R;{var o=r+k.DELIMITER+G.PATH;if(Ce[i]!=null){s.setReserved(i,o)}else{s.h[i]=o}}t=C.ofMap(s);return t}(e);return t}(e);return t}(this);ne.initZip=function(e){var t;var i=ie.validateFileName;ie.validateFileName=function(e){return null};t=true;return t}(this);ne.USER_AGENT="switchx";ae.depth=0;te.main()})(typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this)},904:function(e){"use strict";e.exports=((e,t,i)=>{e&=4095;if(i){e=(e|384)&~18}if(t){if(e&256)e|=64;if(e&32)e|=8;if(e&4)e|=1}return e})},941:function(e,t,i){"use strict";const n=i(747);const r=i(622);const s=n.lchown?"lchown":"chown";const o=n.lchownSync?"lchownSync":"chownSync";const a=n.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/);const l=(e,t,i)=>{try{return n[o](e,t,i)}catch(e){if(e.code!=="ENOENT")throw e}};const u=(e,t,i)=>{try{return n.chownSync(e,t,i)}catch(e){if(e.code!=="ENOENT")throw e}};const c=a?(e,t,i,r)=>s=>{if(!s||s.code!=="EISDIR")r(s);else n.chown(e,t,i,r)}:(e,t,i,n)=>n;const h=a?(e,t,i)=>{try{return l(e,t,i)}catch(n){if(n.code!=="EISDIR")throw n;u(e,t,i)}}:(e,t,i)=>l(e,t,i);const f=process.version;let d=(e,t,i)=>n.readdir(e,t,i);let m=(e,t)=>n.readdirSync(e,t);if(/^v4\./.test(f))d=((e,t,i)=>n.readdir(e,i));const p=(e,t,i,r)=>{n[s](e,t,i,c(e,t,i,e=>{r(e&&e.code!=="ENOENT"?e:null)}))};const v=(e,t,i,s,o)=>{if(typeof t==="string")return n.lstat(r.resolve(e,t),(n,r)=>{if(n)return o(n.code!=="ENOENT"?n:null);r.name=t;v(e,r,i,s,o)});if(t.isDirectory()){y(r.resolve(e,t.name),i,s,n=>{if(n)return o(n);const a=r.resolve(e,t.name);p(a,i,s,o)})}else{const n=r.resolve(e,t.name);p(n,i,s,o)}};const y=(e,t,i,n)=>{d(e,{withFileTypes:true},(r,s)=>{if(r){if(r.code==="ENOENT")return n();else if(r.code!=="ENOTDIR"&&r.code!=="ENOTSUP")return n(r)}if(r||!s.length)return p(e,t,i,n);let o=s.length;let a=null;const l=r=>{if(a)return;if(r)return n(a=r);if(--o===0)return p(e,t,i,n)};s.forEach(n=>v(e,n,t,i,l))})};const _=(e,t,i,s)=>{if(typeof t==="string"){try{const i=n.lstatSync(r.resolve(e,t));i.name=t;t=i}catch(e){if(e.code==="ENOENT")return;else throw e}}if(t.isDirectory())w(r.resolve(e,t.name),i,s);h(r.resolve(e,t.name),i,s)};const w=(e,t,i)=>{let n;try{n=m(e,{withFileTypes:true})}catch(n){if(n.code==="ENOENT")return;else if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return h(e,t,i);else throw n}if(n&&n.length)n.forEach(n=>_(e,n,t,i));return h(e,t,i)};e.exports=y;y.sync=w},953:function(e,t,i){const n=process.env.__FAKE_PLATFORM__||process.platform;const r=n==="win32";const s=global.__FAKE_TESTING_FS__||i(747);const{O_CREAT:o,O_TRUNC:a,O_WRONLY:l,UV_FS_O_FILEMAP:u=0}=s.constants;const c=r&&!!u;const h=512*1024;const f=u|a|o|l;e.exports=!c?()=>"w":e=>e<h?f:"w"},965:function(e){e.exports=Pend;function Pend(){this.pending=0;this.max=Infinity;this.listeners=[];this.waiting=[];this.error=null}Pend.prototype.go=function(e){if(this.pending<this.max){pendGo(this,e)}else{this.waiting.push(e)}};Pend.prototype.wait=function(e){if(this.pending===0){e(this.error)}else{this.listeners.push(e)}};Pend.prototype.hold=function(){return pendHold(this)};function pendHold(e){e.pending+=1;var t=false;return onCb;function onCb(i){if(t)throw new Error("callback called twice");t=true;e.error=e.error||i;e.pending-=1;if(e.waiting.length>0&&e.pending<e.max){pendGo(e,e.waiting.shift())}else if(e.pending===0){var n=e.listeners;e.listeners=[];n.forEach(cbListener)}}function cbListener(t){t(e.error)}}function pendGo(e,t){t(pendHold(e))}},966:function(e,t,i){"use strict";const n=i(891);const r=i(630);const s=e.exports=((e,t,i)=>{const s=n(e);if(!s.file)throw new TypeError("file is required");if(s.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);o(s);return r(s,t,i)});const o=e=>{const t=e.filter;if(!e.mtimeCache)e.mtimeCache=new Map;e.filter=t?(i,n)=>t(i,n)&&!(e.mtimeCache.get(i)>n.mtime):(t,i)=>!(e.mtimeCache.get(t)>i.mtime)}}});
|
|
2
|
+
(()=>{var e={4:function(e,t,r){(function(e){"use strict";var $estr=function(){return js_Boot.__string_rec(this,"")},t=t||{},n;function $extend(e,t){var r=Object.create(e);for(var n in t)r[n]=t[n];if(t.toString!==Object.prototype.toString)r.toString=t.toString;return r}var i=t["Attribute"]={__ename__:true,__constructs__:null,Off:{_hx_name:"Off",_hx_index:0,__enum__:"Attribute",toString:$estr},Bold:{_hx_name:"Bold",_hx_index:1,__enum__:"Attribute",toString:$estr},Underline:{_hx_name:"Underline",_hx_index:2,__enum__:"Attribute",toString:$estr},Blink:{_hx_name:"Blink",_hx_index:3,__enum__:"Attribute",toString:$estr},ReverseVideo:{_hx_name:"ReverseVideo",_hx_index:4,__enum__:"Attribute",toString:$estr},Concealed:{_hx_name:"Concealed",_hx_index:5,__enum__:"Attribute",toString:$estr},BoldOff:{_hx_name:"BoldOff",_hx_index:6,__enum__:"Attribute",toString:$estr},UnderlineOff:{_hx_name:"UnderlineOff",_hx_index:7,__enum__:"Attribute",toString:$estr},BlinkOff:{_hx_name:"BlinkOff",_hx_index:8,__enum__:"Attribute",toString:$estr},NormalVideo:{_hx_name:"NormalVideo",_hx_index:9,__enum__:"Attribute",toString:$estr},ConcealedOff:{_hx_name:"ConcealedOff",_hx_index:10,__enum__:"Attribute",toString:$estr},Black:{_hx_name:"Black",_hx_index:11,__enum__:"Attribute",toString:$estr},Red:{_hx_name:"Red",_hx_index:12,__enum__:"Attribute",toString:$estr},Green:{_hx_name:"Green",_hx_index:13,__enum__:"Attribute",toString:$estr},Yellow:{_hx_name:"Yellow",_hx_index:14,__enum__:"Attribute",toString:$estr},Blue:{_hx_name:"Blue",_hx_index:15,__enum__:"Attribute",toString:$estr},Magenta:{_hx_name:"Magenta",_hx_index:16,__enum__:"Attribute",toString:$estr},Cyan:{_hx_name:"Cyan",_hx_index:17,__enum__:"Attribute",toString:$estr},White:{_hx_name:"White",_hx_index:18,__enum__:"Attribute",toString:$estr},DefaultForeground:{_hx_name:"DefaultForeground",_hx_index:19,__enum__:"Attribute",toString:$estr},BlackBack:{_hx_name:"BlackBack",_hx_index:20,__enum__:"Attribute",toString:$estr},RedBack:{_hx_name:"RedBack",_hx_index:21,__enum__:"Attribute",toString:$estr},GreenBack:{_hx_name:"GreenBack",_hx_index:22,__enum__:"Attribute",toString:$estr},YellowBack:{_hx_name:"YellowBack",_hx_index:23,__enum__:"Attribute",toString:$estr},BlueBack:{_hx_name:"BlueBack",_hx_index:24,__enum__:"Attribute",toString:$estr},MagentaBack:{_hx_name:"MagentaBack",_hx_index:25,__enum__:"Attribute",toString:$estr},CyanBack:{_hx_name:"CyanBack",_hx_index:26,__enum__:"Attribute",toString:$estr},WhiteBack:{_hx_name:"WhiteBack",_hx_index:27,__enum__:"Attribute",toString:$estr},DefaultBackground:{_hx_name:"DefaultBackground",_hx_index:28,__enum__:"Attribute",toString:$estr}};i.__constructs__=[i.Off,i.Bold,i.Underline,i.Blink,i.ReverseVideo,i.Concealed,i.BoldOff,i.UnderlineOff,i.BlinkOff,i.NormalVideo,i.ConcealedOff,i.Black,i.Red,i.Green,i.Yellow,i.Blue,i.Magenta,i.Cyan,i.White,i.DefaultForeground,i.BlackBack,i.RedBack,i.GreenBack,i.YellowBack,i.BlueBack,i.MagentaBack,i.CyanBack,i.WhiteBack,i.DefaultBackground];var Sys=function(){};Sys.__name__=true;Sys.systemName=function(){var e=process.platform;switch(e){case"darwin":return"Mac";case"freebsd":return"BSD";case"linux":return"Linux";case"win32":return"Windows";default:var t=e;return t}};var s=r(2081);var Reflect=function(){};Reflect.__name__=true;Reflect.field=function(e,t){try{return e[t]}catch(e){return null}};Reflect.fields=function(e){var t=[];if(e!=null){var r=Object.prototype.hasOwnProperty;for(var n in e){if(n!="__id__"&&n!="hx__closures__"&&r.call(e,n)){t.push(n)}}}return t};Reflect.compare=function(e,t){if(e==t){return 0}else if(e>t){return 1}else{return-1}};Reflect.isEnumValue=function(e){if(e!=null){return e.__enum__!=null}else{return false}};Reflect.copy=function(e){if(e==null){return null}var t={};var r=0;var n=Reflect.fields(e);while(r<n.length){var i=n[r];++r;t[i]=Reflect.field(e,i)}return t};var js_Boot=function(){};js_Boot.__name__=true;js_Boot.getClass=function(e){if(e==null){return null}else if(e instanceof Array){return Array}else{var t=e.__class__;if(t!=null){return t}var r=js_Boot.__nativeClassName(e);if(r!=null){return js_Boot.__resolveNativeClass(r)}return null}};js_Boot.__string_rec=function(e,r){if(e==null){return"null"}if(r.length>=5){return"<...>"}var n=typeof e;if(n=="function"&&(e.__name__||e.__ename__)){n="object"}switch(n){case"function":return"<function>";case"object":if(e.__enum__){var i=t[e.__enum__];var s=i.__constructs__[e._hx_index];var o=s._hx_name;if(s.__params__){r=r+"\t";return o+"("+function(t){var n;var i=[];{var o=0;var a=s.__params__;while(true){if(!(o<a.length)){break}var l=a[o];o=o+1;i.push(js_Boot.__string_rec(e[l],r))}}n=i;return n}(this).join(",")+")"}else{return o}}if(e instanceof Array){var a="[";r+="\t";var l=0;var c=e.length;while(l<c){var u=l++;a+=(u>0?",":"")+js_Boot.__string_rec(e[u],r)}a+="]";return a}var h;try{h=e.toString}catch(l){return"???"}if(h!=null&&h!=Object.toString&&typeof h=="function"){var f=e.toString();if(f!="[object Object]"){return f}}var a="{\n";r+="\t";var d=e.hasOwnProperty!=null;var p=null;for(p in e){if(d&&!e.hasOwnProperty(p)){continue}if(p=="prototype"||p=="__class__"||p=="__super__"||p=="__interfaces__"||p=="__properties__"){continue}if(a.length!=2){a+=", \n"}a+=r+p+" : "+js_Boot.__string_rec(e[p],r)}r=r.substring(1);a+="\n"+r+"}";return a;case"string":return e;default:return String(e)}};js_Boot.__interfLoop=function(e,t){if(e==null){return false}if(e==t){return true}var r=e.__interfaces__;if(r!=null){var n=0;var i=r.length;while(n<i){var s=n++;var o=r[s];if(o==t||js_Boot.__interfLoop(o,t)){return true}}}return js_Boot.__interfLoop(e.__super__,t)};js_Boot.__instanceof=function(e,r){if(r==null){return false}switch(r){case Array:return e instanceof Array;case F:return typeof e=="boolean";case L:return e!=null;case T:return typeof e=="number";case I:if(typeof e=="number"){return(e|0)===e}else{return false}break;case String:return typeof e=="string";default:if(e!=null){if(typeof r=="function"){if(js_Boot.__downcastCheck(e,r)){return true}}else if(typeof r=="object"&&js_Boot.__isNativeObj(r)){if(e instanceof r){return true}}}else{return false}if(r==B?e.__name__!=null:false){return true}if(r==C?e.__ename__!=null:false){return true}return e.__enum__!=null?t[e.__enum__]==r:false}};js_Boot.__downcastCheck=function(e,t){if(!(e instanceof t)){if(t.__isInterface__){return js_Boot.__interfLoop(js_Boot.getClass(e),t)}else{return false}}else{return true}};js_Boot.__nativeClassName=function(e){var t=js_Boot.__toStr.call(e).slice(8,-1);if(t=="Object"||t=="Function"||t=="Math"||t=="JSON"){return null}return t};js_Boot.__isNativeObj=function(e){return js_Boot.__nativeClassName(e)!=null};js_Boot.__resolveNativeClass=function(t){return e[t]};var Std=function(){};Std.__name__=true;Std.string=function(e){return js_Boot.__string_rec(e,"")};Std.parseInt=function(e){var t=parseInt(e);if(isNaN(t)){return null}return t};var ANSI=function(){};ANSI.__name__=true;ANSI.aset=function(e){if(ANSI.strip||ANSI.stripIfUnavailable&&!ANSI.available){return""}var t=""+"[";var r=[];var n=0;while(n<e.length){var s=e[n];++n;if(!js_Boot.__instanceof(s,i)){throw haxe_Exception.thrown("Set argument is not an Attribute: "+Std.string(s))}r.push(ANSI.values.get(s))}return t+r.join(";")+"m"};ANSI.detectSupport=function(){if(Sys.systemName().toLowerCase().indexOf("window")==-1){var e=-1;try{e=s.spawnSync("tput",["colors"]).error==null?0:125}catch(e){}return e==0}else{return process.env["ANSICON"]!=null}};var HxOverrides=function(){};HxOverrides.__name__=true;HxOverrides.cca=function(e,t){var r=e.charCodeAt(t);if(r!=r){return undefined}return r};HxOverrides.substr=function(e,t,r){if(r==null){r=e.length}else if(r<0){if(t==0){r=e.length+r}else{return""}}return e.substr(t,r)};HxOverrides.now=function(){return Date.now()};Math.__name__=true;var StringTools=function(){};StringTools.__name__=true;StringTools.startsWith=function(e,t){if(e.length>=t.length){return e.lastIndexOf(t,0)==0}else{return false}};StringTools.endsWith=function(e,t){var r=t.length;var n=e.length;if(n>=r){return e.indexOf(t,n-r)==n-r}else{return false}};StringTools.lpad=function(e,t,r){if(t.length<=0){return e}var n="";r-=e.length;while(n.length<r)n+=t==null?"null":""+t;n+=e==null?"null":""+e;return n};StringTools.replace=function(e,t,r){return e.split(t).join(r)};var haxe_io_Output=function(){};haxe_io_Output.__name__=true;haxe_io_Output.prototype={writeByte:function(e){throw new haxe_exceptions_NotImplementedException(null,null,{fileName:"haxe/io/Output.hx",lineNumber:47,className:"haxe.io.Output",methodName:"writeByte"})},writeBytes:function(e,t,r){if(t<0||r<0||t+r>e.length){throw haxe_Exception.thrown(c.OutsideBounds)}var n=e.b;var i=r;while(i>0){this.writeByte(n[t]);++t;--i}return r},writeFullBytes:function(e,t,r){while(r>0){var n=this.writeBytes(e,t,r);t+=n;r-=n}},writeString:function(e,t){var r=haxe_io_Bytes.ofString(e,t);this.writeFullBytes(r,0,r.length)},__class__:haxe_io_Output};var _$Sys_FileOutput=function(e){this.fd=e};_$Sys_FileOutput.__name__=true;_$Sys_FileOutput.__super__=haxe_io_Output;_$Sys_FileOutput.prototype=$extend(haxe_io_Output.prototype,{writeByte:function(e){f.writeSync(this.fd,String.fromCodePoint(e))},writeBytes:function(e,t,r){var n=e.b;return f.writeSync(this.fd,w.from(n.buffer,n.byteOffset,e.length),t,r)},writeString:function(e,t){f.writeSync(this.fd,e)},__class__:_$Sys_FileOutput});var haxe_io_Input=function(){};haxe_io_Input.__name__=true;haxe_io_Input.prototype={readByte:function(){throw new haxe_exceptions_NotImplementedException(null,null,{fileName:"haxe/io/Input.hx",lineNumber:53,className:"haxe.io.Input",methodName:"readByte"})},readBytes:function(e,t,r){var n=r;var i=e.b;if(t<0||r<0||t+r>e.length){throw haxe_Exception.thrown(c.OutsideBounds)}try{while(n>0){i[t]=this.readByte();++t;--n}}catch(e){if(!(haxe_Exception.caught(e).unwrap()instanceof haxe_io_Eof)){throw e}}return r-n},read:function(e){var t=new haxe_io_Bytes(new ArrayBuffer(e));var r=0;while(e>0){var n=this.readBytes(t,r,e);if(n==0){throw haxe_Exception.thrown(c.Blocked)}r+=n;e-=n}return t},__class__:haxe_io_Input};var Type=function(){};Type.__name__=true;Type.enumParameters=function(e){var r=t[e.__enum__];var n=r.__constructs__[e._hx_index].__params__;if(n!=null){var i=[];var s=0;while(s<n.length){var o=n[s];++s;i.push(e[o])}return i}else{return[]}};var o=t["haxe.StackItem"]={__ename__:true,__constructs__:null,CFunction:{_hx_name:"CFunction",_hx_index:0,__enum__:"haxe.StackItem",toString:$estr},Module:(n=function(e){return{_hx_index:1,m:e,__enum__:"haxe.StackItem",toString:$estr}},n._hx_name="Module",n.__params__=["m"],n),FilePos:(n=function(e,t,r,n){return{_hx_index:2,s:e,file:t,line:r,column:n,__enum__:"haxe.StackItem",toString:$estr}},n._hx_name="FilePos",n.__params__=["s","file","line","column"],n),Method:(n=function(e,t){return{_hx_index:3,classname:e,method:t,__enum__:"haxe.StackItem",toString:$estr}},n._hx_name="Method",n.__params__=["classname","method"],n),LocalFunction:(n=function(e){return{_hx_index:4,v:e,__enum__:"haxe.StackItem",toString:$estr}},n._hx_name="LocalFunction",n.__params__=["v"],n)};o.__constructs__=[o.CFunction,o.Module,o.FilePos,o.Method,o.LocalFunction];var haxe_IMap=function(){};haxe_IMap.__name__=true;haxe_IMap.__isInterface__=true;var haxe_Exception=function(e,t,r){Error.call(this,e);this.message=e;this.__previousException=t;this.__nativeException=r!=null?r:this};haxe_Exception.__name__=true;haxe_Exception.caught=function(e){if(e instanceof haxe_Exception){return e}else if(e instanceof Error){return new haxe_Exception(e.message,null,e)}else{return new haxe_ValueException(e,null,e)}};haxe_Exception.thrown=function(e){if(e instanceof haxe_Exception){return e.get_native()}else if(e instanceof Error){return e}else{var t=new haxe_ValueException(e);return t}};haxe_Exception.__super__=Error;haxe_Exception.prototype=$extend(Error.prototype,{unwrap:function(){return this.__nativeException},toString:function(){return this.get_message()},get_message:function(){return this.message},get_native:function(){return this.__nativeException},__class__:haxe_Exception});var haxe_Timer=function(e){var t=this;this.id=setInterval((function(){t.run()}),e)};haxe_Timer.__name__=true;haxe_Timer.delay=function(e,t){var r=new haxe_Timer(t);r.run=function(){r.stop();e()};return r};haxe_Timer.prototype={stop:function(){if(this.id==null){return}clearInterval(this.id);this.id=null},run:function(){},__class__:haxe_Timer};var haxe_ValueException=function(e,t,r){haxe_Exception.call(this,String(e),t,r);this.value=e};haxe_ValueException.__name__=true;haxe_ValueException.__super__=haxe_Exception;haxe_ValueException.prototype=$extend(haxe_Exception.prototype,{unwrap:function(){return this.value},__class__:haxe_ValueException});var haxe_ds_BalancedTree=function(){};haxe_ds_BalancedTree.__name__=true;haxe_ds_BalancedTree.__interfaces__=[haxe_IMap];haxe_ds_BalancedTree.prototype={set:function(e,t){this.root=this.setLoop(e,t,this.root)},get:function(e){var t=this.root;while(t!=null){var r=this.compare(e,t.key);if(r==0){return t.value}if(r<0){t=t.left}else{t=t.right}}return null},setLoop:function(e,t,r){if(r==null){return new haxe_ds_TreeNode(null,e,t,null)}var n=this.compare(e,r.key);if(n==0){return new haxe_ds_TreeNode(r.left,e,t,r.right,r==null?0:r._height)}else if(n<0){var i=this.setLoop(e,t,r.left);return this.balance(i,r.key,r.value,r.right)}else{var s=this.setLoop(e,t,r.right);return this.balance(r.left,r.key,r.value,s)}},balance:function(e,t,r,n){var i=e==null?0:e._height;var s=n==null?0:n._height;if(i>s+2){var o=e.left;var a=e.right;if((o==null?0:o._height)>=(a==null?0:a._height)){return new haxe_ds_TreeNode(e.left,e.key,e.value,new haxe_ds_TreeNode(e.right,t,r,n))}else{return new haxe_ds_TreeNode(new haxe_ds_TreeNode(e.left,e.key,e.value,e.right.left),e.right.key,e.right.value,new haxe_ds_TreeNode(e.right.right,t,r,n))}}else if(s>i+2){var o=n.right;var a=n.left;if((o==null?0:o._height)>(a==null?0:a._height)){return new haxe_ds_TreeNode(new haxe_ds_TreeNode(e,t,r,n.left),n.key,n.value,n.right)}else{return new haxe_ds_TreeNode(new haxe_ds_TreeNode(e,t,r,n.left.left),n.left.key,n.left.value,new haxe_ds_TreeNode(n.left.right,n.key,n.value,n.right))}}else{return new haxe_ds_TreeNode(e,t,r,n,(i>s?i:s)+1)}},compare:function(e,t){return Reflect.compare(e,t)},__class__:haxe_ds_BalancedTree};var haxe_ds_TreeNode=function(e,t,r,n,i){if(i==null){i=-1}this.left=e;this.key=t;this.value=r;this.right=n;if(i==-1){var s;var o=this.left;var a=this.right;if((o==null?0:o._height)>(a==null?0:a._height)){var o=this.left;s=o==null?0:o._height}else{var o=this.right;s=o==null?0:o._height}this._height=s+1}else{this._height=i}};haxe_ds_TreeNode.__name__=true;haxe_ds_TreeNode.prototype={__class__:haxe_ds_TreeNode};var haxe_ds_EnumValueMap=function(){haxe_ds_BalancedTree.call(this)};haxe_ds_EnumValueMap.__name__=true;haxe_ds_EnumValueMap.__interfaces__=[haxe_IMap];haxe_ds_EnumValueMap.__super__=haxe_ds_BalancedTree;haxe_ds_EnumValueMap.prototype=$extend(haxe_ds_BalancedTree.prototype,{compare:function(e,t){var r=e._hx_index-t._hx_index;if(r!=0){return r}var n=Type.enumParameters(e);var i=Type.enumParameters(t);if(n.length==0&&i.length==0){return 0}return this.compareArgs(n,i)},compareArgs:function(e,t){var r=e.length-t.length;if(r!=0){return r}var n=0;var i=e.length;while(n<i){var s=n++;var o=this.compareArg(e[s],t[s]);if(o!=0){return o}}return 0},compareArg:function(e,t){if(Reflect.isEnumValue(e)&&Reflect.isEnumValue(t)){return this.compare(e,t)}else if(e instanceof Array&&t instanceof Array){return this.compareArgs(e,t)}else{return Reflect.compare(e,t)}},__class__:haxe_ds_EnumValueMap});var a=t["haxe.ds.Option"]={__ename__:true,__constructs__:null,Some:(n=function(e){return{_hx_index:0,v:e,__enum__:"haxe.ds.Option",toString:$estr}},n._hx_name="Some",n.__params__=["v"],n),None:{_hx_name:"None",_hx_index:1,__enum__:"haxe.ds.Option",toString:$estr}};a.__constructs__=[a.Some,a.None];var haxe_ds_StringMap=function(){this.h=Object.create(null)};haxe_ds_StringMap.__name__=true;haxe_ds_StringMap.__interfaces__=[haxe_IMap];haxe_ds_StringMap.prototype={__class__:haxe_ds_StringMap};var haxe_exceptions_PosException=function(e,t,r){haxe_Exception.call(this,e,t);if(r==null){this.posInfos={fileName:"(unknown)",lineNumber:0,className:"(unknown)",methodName:"(unknown)"}}else{this.posInfos=r}};haxe_exceptions_PosException.__name__=true;haxe_exceptions_PosException.__super__=haxe_Exception;haxe_exceptions_PosException.prototype=$extend(haxe_Exception.prototype,{toString:function(){return""+haxe_Exception.prototype.toString.call(this)+" in "+this.posInfos.className+"."+this.posInfos.methodName+" at "+this.posInfos.fileName+":"+this.posInfos.lineNumber},__class__:haxe_exceptions_PosException});var haxe_exceptions_NotImplementedException=function(e,t,r){if(e==null){e="Not implemented"}haxe_exceptions_PosException.call(this,e,t,r)};haxe_exceptions_NotImplementedException.__name__=true;haxe_exceptions_NotImplementedException.__super__=haxe_exceptions_PosException;haxe_exceptions_NotImplementedException.prototype=$extend(haxe_exceptions_PosException.prototype,{__class__:haxe_exceptions_NotImplementedException});var haxe_io_Bytes=function(e){this.length=e.byteLength;this.b=new Uint8Array(e);this.b.bufferValue=e;e.hxBytes=this;e.bytes=this.b};haxe_io_Bytes.__name__=true;haxe_io_Bytes.ofString=function(e,t){if(t==l.RawNative){var r=new Uint8Array(e.length<<1);var n=0;var i=e.length;while(n<i){var s=n++;var o=e.charCodeAt(s);r[s<<1]=o&255;r[s<<1|1]=o>>8}return new haxe_io_Bytes(r.buffer)}var a=[];var s=0;while(s<e.length){var o=e.charCodeAt(s++);if(55296<=o&&o<=56319){o=o-55232<<10|e.charCodeAt(s++)&1023}if(o<=127){a.push(o)}else if(o<=2047){a.push(192|o>>6);a.push(128|o&63)}else if(o<=65535){a.push(224|o>>12);a.push(128|o>>6&63);a.push(128|o&63)}else{a.push(240|o>>18);a.push(128|o>>12&63);a.push(128|o>>6&63);a.push(128|o&63)}}return new haxe_io_Bytes(new Uint8Array(a).buffer)};haxe_io_Bytes.prototype={sub:function(e,t){if(e<0||t<0||e+t>this.length){throw haxe_Exception.thrown(c.OutsideBounds)}return new haxe_io_Bytes(this.b.buffer.slice(e+this.b.byteOffset,e+this.b.byteOffset+t))},getInt32:function(e){if(this.data==null){this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength)}return this.data.getInt32(e,true)},__class__:haxe_io_Bytes};var l=t["haxe.io.Encoding"]={__ename__:true,__constructs__:null,UTF8:{_hx_name:"UTF8",_hx_index:0,__enum__:"haxe.io.Encoding",toString:$estr},RawNative:{_hx_name:"RawNative",_hx_index:1,__enum__:"haxe.io.Encoding",toString:$estr}};l.__constructs__=[l.UTF8,l.RawNative];var haxe_io_Eof=function(){};haxe_io_Eof.__name__=true;haxe_io_Eof.prototype={toString:function(){return"Eof"},__class__:haxe_io_Eof};var c=t["haxe.io.Error"]={__ename__:true,__constructs__:null,Blocked:{_hx_name:"Blocked",_hx_index:0,__enum__:"haxe.io.Error",toString:$estr},Overflow:{_hx_name:"Overflow",_hx_index:1,__enum__:"haxe.io.Error",toString:$estr},OutsideBounds:{_hx_name:"OutsideBounds",_hx_index:2,__enum__:"haxe.io.Error",toString:$estr},Custom:(n=function(e){return{_hx_index:3,e:e,__enum__:"haxe.io.Error",toString:$estr}},n._hx_name="Custom",n.__params__=["e"],n)};c.__constructs__=[c.Blocked,c.Overflow,c.OutsideBounds,c.Custom];var haxe_io_Path=function(e){switch(e){case".":case"..":this.dir=e;this.file="";return}var t=e.lastIndexOf("/");var r=e.lastIndexOf("\\");if(t<r){this.dir=HxOverrides.substr(e,0,r);e=HxOverrides.substr(e,r+1,null);this.backslash=true}else if(r<t){this.dir=HxOverrides.substr(e,0,t);e=HxOverrides.substr(e,t+1,null)}else{this.dir=null}var n=e.lastIndexOf(".");if(n!=-1){this.ext=HxOverrides.substr(e,n+1,null);this.file=HxOverrides.substr(e,0,n)}else{this.ext=null;this.file=e}};haxe_io_Path.__name__=true;haxe_io_Path.directory=function(e){var t=new haxe_io_Path(e);if(t.dir==null){return""}return t.dir};haxe_io_Path.addTrailingSlash=function(e){if(e.length==0){return"/"}var t=e.lastIndexOf("/");var r=e.lastIndexOf("\\");if(t<r){if(r!=e.length-1){return e+"\\"}else{return e}}else if(t!=e.length-1){return e+"/"}else{return e}};haxe_io_Path.removeTrailingSlashes=function(e){e:while(true){var t=HxOverrides.cca(e,e.length-1);if(t==null){break}else{switch(t){case 47:case 92:e=HxOverrides.substr(e,0,-1);break;default:break e}}}return e};haxe_io_Path.isAbsolute=function(e){if(StringTools.startsWith(e,"/")){return true}if(e.charAt(1)==":"){return true}if(StringTools.startsWith(e,"\\\\")){return true}return false};haxe_io_Path.prototype={__class__:haxe_io_Path};var haxe_iterators_ArrayIterator=function(e){this.current=0;this.array=e};haxe_iterators_ArrayIterator.__name__=true;haxe_iterators_ArrayIterator.prototype={hasNext:function(){return this.current<this.array.length},next:function(){return this.array[this.current++]},__class__:haxe_iterators_ArrayIterator};var haxeshim_Attempt=function(){};haxeshim_Attempt.__name__=true;haxeshim_Attempt.to=function(e,t,r){return new tink_core__$Future_SyncFuture(new tink_core__$Lazy_LazyFunc((function(){return tink_core_TypedError.catchExceptions(t,(function(t){return tink_core_TypedError.withData(null,"Failed to "+e,t,r)}),{fileName:"haxeshim/Attempt.hx",lineNumber:8,className:"haxeshim.Attempt",methodName:"to"})})))};var haxeshim_Logger=function(){};haxeshim_Logger.__name__=true;haxeshim_Logger.get=function(e){if(e==null){e=false}if(e){if(haxeshim_Logger.SILENT==null){haxeshim_Logger.SILENT=new haxeshim_Logger}return haxeshim_Logger.SILENT}else{if(haxeshim_Logger.DEFAULT==null){haxeshim_Logger.DEFAULT=new haxeshim__$Logger_SysLogger}return haxeshim_Logger.DEFAULT}};haxeshim_Logger.prototype={error:function(e){},info:function(e){},success:function(e){},progress:function(e){},__class__:haxeshim_Logger};var haxeshim__$Logger_SysLogger=function(){haxeshim_Logger.call(this)};haxeshim__$Logger_SysLogger.__name__=true;haxeshim__$Logger_SysLogger.__super__=haxeshim_Logger;haxeshim__$Logger_SysLogger.prototype=$extend(haxeshim_Logger.prototype,{log:function(e,t){this.progress("");var r=haxeshim__$Logger_SysLogger.out;var n;switch(e._hx_index){case 0:n=[i.Red];break;case 1:n=[i.Yellow];break;case 2:n=[i.DefaultForeground];break;case 3:n=[i.Green];break}r.writeString(ANSI.aset(n)+t+ANSI.aset([i.Off])+"\n")},error:function(e){this.log(u.Error,e)},info:function(e){this.log(u.Info,e)},success:function(e){this.log(u.Success,e)},progress:function(e){if(haxeshim__$Logger_SysLogger.isTTY){if(e.length>80){e=HxOverrides.substr(e,0,77)+"..."}haxeshim__$Logger_SysLogger.out.writeString((ANSI.strip||ANSI.stripIfUnavailable&&!ANSI.available?"":"[2K")+(ANSI.strip||ANSI.stripIfUnavailable&&!ANSI.available?"":"["+1+"G")+e)}},__class__:haxeshim__$Logger_SysLogger});var u=t["haxeshim._Logger.Level"]={__ename__:true,__constructs__:null,Error:{_hx_name:"Error",_hx_index:0,__enum__:"haxeshim._Logger.Level",toString:$estr},Warning:{_hx_name:"Warning",_hx_index:1,__enum__:"haxeshim._Logger.Level",toString:$estr},Info:{_hx_name:"Info",_hx_index:2,__enum__:"haxeshim._Logger.Level",toString:$estr},Success:{_hx_name:"Success",_hx_index:3,__enum__:"haxeshim._Logger.Level",toString:$estr}};u.__constructs__=[u.Error,u.Warning,u.Info,u.Success];var haxeshim_cli_NekoCli=function(){};haxeshim_cli_NekoCli.__name__=true;haxeshim_cli_NekoCli.exec=function(e){var t=haxeshim_sys_Exec.sync(e.executable,haxe_io_Path.addTrailingSlash(process.cwd()),process.argv.slice(2),e.env);switch(t._hx_index){case 0:var r=t.data;process.exit(r);break;case 1:var n=t.failure;haxeshim_sys_Exec.die(n.code,n.message);break}};haxeshim_cli_NekoCli.findNeko=function(){var e=haxeshim_sys_Exec.gracefully((function(){return haxeshim_scope_Scope.seek()}));return e.haxeInstallation.neko};var haxeshim_scope_HaxeInstallation=function(e,t,r,n){this.path=e;this.version=t;this.compiler=""+e+"/haxe"+haxeshim_sys_Os.EXECUTABLE_EXTENSION;this.haxelib=""+e+"/haxelib"+haxeshim_sys_Os.EXECUTABLE_EXTENSION;this.stdLib=""+e+"/std";this.haxelibRepo=r;this.neko=n;this.env=p.mergeInto(n.env,p.ofObj({HAXE_STD_PATH:this.stdLib,HAXEPATH:e,HAXELIB_PATH:r,HAXE_VERSION:t}))};haxeshim_scope_HaxeInstallation.__name__=true;haxeshim_scope_HaxeInstallation.at=function(e){var t=e.path;var r=e.version;var n=""+t+"/platform.txt";var i;if(sys_FileSystem.exists(n)){i=f.readFileSync(n,{encoding:"utf8"})}else if(!sys_FileSystem.exists(t)){i=haxeshim_sys_Os.get_platform()}else{var s=new sys_io_FileInput(f.openSync(""+t+"/haxe"+haxeshim_sys_Os.EXECUTABLE_EXTENSION,"r"));var o=s.read(1024);var a=_.detect(o);try{f.writeFileSync(n,a)}catch(e){var l=haxe_Exception.caught(e).unwrap();haxeshim_Logger.get().error("Failed to cache platform in info: "+Std.string(l))}i=a}var c=i;return new haxeshim_scope_HaxeInstallation(t,r,e.haxelibRepo,haxeshim_scope_NekoInstallation.get(e.root,c,r))};haxeshim_scope_HaxeInstallation.prototype={__class__:haxeshim_scope_HaxeInstallation};var haxeshim_scope_NekoInstallation=function(e){this.path=e.path;this.platform=e.platform;this.version=e.version;this.executable=""+this.path+"/neko"+haxeshim_sys_Os.EXECUTABLE_EXTENSION;var t;switch(Sys.systemName()){case"Mac":t="DYLD_LIBRARY_PATH";break;case"Windows":t="PATH";break;default:t="LD_LIBRARY_PATH"}var r=process.env[t];var n;if(r==null){var i=new haxe_ds_StringMap;i.h[t]=this.path;n=p.ofMap(i)}else{var s=r;if(s.indexOf(this.path)!=-1){n=p.ofObj({})}else{var o=r;var r=new haxe_ds_StringMap;r.h[t]=o+haxeshim_sys_Os.DELIMITER+this.path;n=p.ofMap(r)}}this.env=n};haxeshim_scope_NekoInstallation.__name__=true;haxeshim_scope_NekoInstallation.get=function(e,t,r){var n="2.4.0";return new haxeshim_scope_NekoInstallation({platform:t,version:n,path:""+e+"/neko/versions/"+n+"-"+t})};haxeshim_scope_NekoInstallation.prototype={__class__:haxeshim_scope_NekoInstallation};var haxeshim_sys_Os=function(){};haxeshim_sys_Os.__name__=true;haxeshim_sys_Os.get_platform=function(){var e;if(haxeshim_sys_Os.platform!=null){e=haxeshim_sys_Os.platform}else{var t=process.platform;var r=process.arch;switch(t){case"darwin":switch(r){case"arm64":e="mac-arm";break;case"x64":e="mac64";break;default:e="unknown"}break;case"linux":switch(r){case"arm":e="linux-arm";break;case"arm64":e="linux-arm64";break;case"ia32":e="linux32";break;case"riscv64":e="linux-riscv";break;case"x64":e="linux64";break;default:e="unknown"}break;case"win32":switch(r){case"ia32":e="win32";break;case"x64":e="win64";break;default:e="unknown"}break;default:e="unknown"}}return haxeshim_sys_Os.platform=e};var tink_core__$Lazy_Computable=function(){};tink_core__$Lazy_Computable.__name__=true;tink_core__$Lazy_Computable.__isInterface__=true;tink_core__$Lazy_Computable.prototype={__class__:tink_core__$Lazy_Computable};var tink_core__$Lazy_LazyObject=function(){};tink_core__$Lazy_LazyObject.__name__=true;tink_core__$Lazy_LazyObject.__isInterface__=true;tink_core__$Lazy_LazyObject.__interfaces__=[tink_core__$Lazy_Computable];tink_core__$Lazy_LazyObject.prototype={__class__:tink_core__$Lazy_LazyObject};var tink_core__$Lazy_LazyConst=function(e){this.value=e};tink_core__$Lazy_LazyConst.__name__=true;tink_core__$Lazy_LazyConst.__interfaces__=[tink_core__$Lazy_LazyObject];tink_core__$Lazy_LazyConst.prototype={isComputed:function(){return true},get:function(){return this.value},compute:function(){},underlying:function(){return null},__class__:tink_core__$Lazy_LazyConst};var h={};h.get=function(e){e.compute();return e.get()};var sys_FileSystem=function(){};sys_FileSystem.__name__=true;sys_FileSystem.exists=function(e){try{f.accessSync(e);return true}catch(e){return false}};sys_FileSystem.createDirectory=function(e){try{f.mkdirSync(e)}catch(n){var t=haxe_Exception.caught(n).unwrap();if(t.code=="ENOENT"){sys_FileSystem.createDirectory(v.dirname(e));f.mkdirSync(e)}else{var r;try{r=f.statSync(e)}catch(e){throw t}if(!r.isDirectory()){throw t}}}};var f=r(7147);var d=t["tink.core.Outcome"]={__ename__:true,__constructs__:null,Success:(n=function(e){return{_hx_index:0,data:e,__enum__:"tink.core.Outcome",toString:$estr}},n._hx_name="Success",n.__params__=["data"],n),Failure:(n=function(e){return{_hx_index:1,failure:e,__enum__:"tink.core.Outcome",toString:$estr}},n._hx_name="Failure",n.__params__=["failure"],n)};d.__constructs__=[d.Success,d.Failure];var haxeshim_scope_Scope=function(e,t,r,n){this.haxeshimRoot=e;this.isGlobal=t;this.scopeDir=r;this.scopeLibDir=""+r+"/haxe_libraries";this.cwd=n;this.configFile=""+r+"/"+haxeshim_scope_Scope.CONFIG_FILE;this.versionDir=""+e+"/versions";this.haxelibRepo=""+e+"/haxelib";var i=process.env["HAXESHIM_LIBCACHE"];var s=process.env["HAXE_LIBCACHE"];var o;if(i==null){if(s==null){o=""+e+"/haxe_libraries"}else{var a=s;o=a}}else{var a=i;o=a}this.libCache=o};haxeshim_scope_Scope.__name__=true;haxeshim_scope_Scope.seek=function(e){if(e==null){e={}}var t;var r=e.cwd;if(r==null){t=haxe_io_Path.addTrailingSlash(process.cwd())}else{var n=r;t=n}var i;var r=e.startLookingIn;if(r==null){i=t}else{var n=r;i=n}var s;var r=e.haxeshimRoot;if(r==null){s=haxeshim_scope_Scope.DEFAULT_ROOT}else{var n=r;s=n}var o=s;var a=t;var make=function(e,t){return new haxeshim_scope_Scope(o,e,t,a)};var l;var r=haxeshim_sys_Fs.findNearest(haxeshim_scope_Scope.CONFIG_FILE,haxe_io_Path.isAbsolute(i)?i:v.resolve(i));switch(r._hx_index){case 0:var n=r.v;l=make(false,haxe_io_Path.directory(n));break;case 1:l=make(true,s);break}l.reload();return l};haxeshim_scope_Scope.env=function(e){var t=process.env[e];if(t==null){return a.None}else if(t==""){return a.None}else{var r=t;return a.Some(r)}};haxeshim_scope_Scope.prototype={reload:function(){var e;try{e=f.readFileSync(this.configFile,{encoding:"utf8"})}catch(e){var t=haxe_Exception.caught(e).unwrap();throw haxe_Exception.thrown(this.isGlobal?"Global config file "+this.configFile+" does not exist or cannot be opened":"Unable to open file "+this.configFile+" because "+Std.string(t))}var r;try{r=JSON.parse(e)}catch(r){var t=haxe_Exception.caught(r).unwrap();new _$Sys_FileOutput(2).writeString("Invalid JSON in file "+this.configFile+":\n\n"+e+"\n\n");throw haxe_Exception.thrown(t)}this.setConfig(r)},setConfig:function(e){if(e.version==null){throw haxe_Exception.thrown("No version set in "+this.configFile)}if(e.resolveLibs==null){e.resolveLibs=this.isGlobal?"mixed":"scoped"}var t=e.resolveLibs;switch(t){case"haxelib":case"mixed":case"scoped":break;default:var r=t;throw haxe_Exception.thrown("invalid value "+r+" for `resolveLibs` in "+this.configFile)}this.config=e;this.haxeInstallation=this.getInstallation(e.version)},path:function(e){if(haxe_io_Path.isAbsolute(e)){return a.Some(e)}else if(StringTools.startsWith(e,"./")||StringTools.startsWith(e,"../")){return a.Some(""+this.cwd+"/"+e)}else{return a.None}},getInstallation:function(e){var t=this.haxeshimRoot;var r=this.haxelibRepo;var n=this.path(e);var i;switch(n._hx_index){case 0:var s=n.v;i=s;break;case 1:i=""+this.versionDir+"/"+e;break}return haxeshim_scope_HaxeInstallation.at({root:t,version:e,haxelibRepo:r,path:i})},__class__:haxeshim_scope_Scope};var p={};p.ofObj=function(e){return p.ofVars(e)};p.ofVars=function(e){var t={};var r=0;var n=Reflect.fields(e);while(r<n.length){var i=n[r];++r;t[haxeshim_sys_Os.IS_WINDOWS?i.toUpperCase():i]=e[i]}return t};p.ofMap=function(e){var t={};var r=e.h;var n=r;var i=Object.keys(r);var s=i.length;var o=0;while(o<s){var a=i[o++];t[haxeshim_sys_Os.IS_WINDOWS?a.toUpperCase():a]=e.h[a]}return t};p.vars=function(e){return e};p.toVars=function(e){return Reflect.copy(e)};p.mergeInto=function(e,t){var r=p.vars(t);if(e==null){var n=r;return n}else if(r==null){var n=e;return n}else{var i=e;var s=r;var o={};var a=s;var r=0;var l=Reflect.fields(a);while(r<l.length){var c=l[r];++r;o[c]=a[c]}var a=i;var r=0;var l=Reflect.fields(a);while(r<l.length){var c=l[r];++r;o[c]=a[c]}return o}};var haxeshim_sys_Exec=function(){};haxeshim_sys_Exec.__name__=true;haxeshim_sys_Exec.die=function(e,t){if(t!=null){haxeshim_Logger.get().error(t)}process.exit(e);throw haxe_Exception.thrown("unreachable")};haxeshim_sys_Exec.gracefully=function(e){try{return e()}catch(e){var t=haxe_Exception.caught(e).unwrap();if(t instanceof tink_core_TypedError){var r=t;return haxeshim_sys_Exec.die(r.code,r.message)}else{var r=t;return haxeshim_sys_Exec.die(500,Std.string(r))}}};haxeshim_sys_Exec.mergeEnv=function(e){return p.mergeInto(e,p.ofVars(process.env))};haxeshim_sys_Exec.sync=function(e,t,r,n){var i=s.spawnSync(e,r,{cwd:t,stdio:"inherit",env:p.toVars(haxeshim_sys_Exec.mergeEnv(n))});var o=i.error;var a=i.output;var a=i.pid;var a=i.signal;var a=i.status;var l=i.stderr;var l=i.stdout;if(o==null){var c=a;return d.Success(c)}else{var u=o;var c=a;return d.Failure(new tink_core_TypedError(c,"Failed to call "+e+" because "+Std.string(u),{fileName:"haxeshim/sys/Exec.hx",lineNumber:54,className:"haxeshim.sys.Exec",methodName:"sync"}))}};var haxeshim_sys_Fs=function(){};haxeshim_sys_Fs.__name__=true;haxeshim_sys_Fs.exists=function(e){var t=e;return haxeshim_Attempt.to("check the existence of "+e,(function(){return sys_FileSystem.exists(t)}),{fileName:"haxeshim/sys/Fs.hx",lineNumber:23,className:"haxeshim.sys.Fs",methodName:"exists"})};haxeshim_sys_Fs.ensureDir=function(e){var t=StringTools.endsWith(e,"/")||StringTools.endsWith(e,"\\");if(t){e=haxe_io_Path.removeTrailingSlashes(e)}var r=haxe_io_Path.directory(e);if(haxe_io_Path.removeTrailingSlashes(r)==e){return new tink_core__$Future_SyncFuture(new tink_core__$Lazy_LazyConst(d.Success(null)))}else{return N.next(N.next(haxeshim_sys_Fs.exists(r),(function(e){if(e){return new tink_core__$Future_SyncFuture(new tink_core__$Lazy_LazyConst(d.Success(null)))}else{return haxeshim_sys_Fs.ensureDir(haxe_io_Path.addTrailingSlash(r))}})),(function(r){if(t){return N.next(haxeshim_sys_Fs.exists(e),(function(t){return haxeshim_Attempt.to("create directory "+e,(function(){if(!t){sys_FileSystem.createDirectory(e)}return null}),{fileName:"haxeshim/sys/Fs.hx",lineNumber:46,className:"haxeshim.sys.Fs",methodName:"ensureDir"})}))}else{return new tink_core__$Future_SyncFuture(new tink_core__$Lazy_LazyConst(d.Success(null)))}}))}};haxeshim_sys_Fs.peel=function(e,t){var r=0;var n=0;var i=t;while(n<i){var s=n++;var o=e.indexOf("/",r);if(o==-1){return a.None}else{var l=o;r=l+1}}return a.Some(HxOverrides.substr(e,r,null))};haxeshim_sys_Fs.findNearest=function(e,t){while(true)if(sys_FileSystem.exists(""+t+"/"+e)){return a.Some(""+t+"/"+e)}else{var r=haxe_io_Path.directory(t);var n=r;if(t==n){return a.None}else{var i=r;t=i}}};var _={};_.detect=function(e){var t=e;if(t.length>=5&&t.b[0]==127&&t.b[1]==69&&t.b[2]==76&&t.b[3]==70){var r=t.b[4];var n=t.b[18]|t.b[19]<<8;switch(n){case 3:if(r==1){return"linux32"}else{return"linux64"}break;case 40:return"linux-arm";case 62:return"linux64";case 183:return"linux-arm64";case 243:return"linux-riscv";default:if(r==1){return"linux32"}else{return"linux64"}}}if(t.length>=64){var i=t.getInt32(60);if(t.b[i++]==80&&t.b[i++]==69&&t.b[i++]==0&&t.b[i++]==0){var s=t.b[i++]|t.b[i++]<<8;switch(s){case 332:return"win32";case 34404:return"win64";default:return"unknown"}}}if(t.length>=4){var o=t.b[0]<<24|t.b[1]<<16|t.b[2]<<8|t.b[3];if(o==-17958193||o==-805638658){switch(t.b[4]<<24|t.b[5]<<16|t.b[6]<<8|t.b[7]){case 16777223:return"mac64";case 16777228:return"mac-arm";default:return"mac64"}}if(o==-17958194||o==-822415874){return"mac64"}if(o==-889275714||o==-1095041334){return"mac-universal"}}return"unknown"};var js_lib__$ArrayBuffer_ArrayBufferCompat=function(){};js_lib__$ArrayBuffer_ArrayBufferCompat.__name__=true;js_lib__$ArrayBuffer_ArrayBufferCompat.sliceImpl=function(e,t){var r=new Uint8Array(this,e,t==null?null:t-e);var n=new Uint8Array(r.byteLength);n.set(r);return n.buffer};var m=r(3685);var y=r(5687);var v=r(1017);var w=r(4300).Buffer;var js_node_buffer__$Buffer_Helper=function(){};js_node_buffer__$Buffer_Helper.__name__=true;js_node_buffer__$Buffer_Helper.bytesOfBuffer=function(e){var t=Object.create(haxe_io_Bytes.prototype);t.length=e.byteLength;t.b=e;e.bufferValue=e;e.hxBytes=t;e.bytes=e;return t};var g=r(2781).PassThrough;var b=r(7310).URL;var lix_cli_Command=function(){};lix_cli_Command.__name__=true;lix_cli_Command.attempt=function(e,t){var r=A.ofSync(lix_cli_Command.reportError);O.flatMap(e,(function(e){switch(e._hx_index){case 0:var t=e.data;return new tink_core__$Future_SyncFuture(new tink_core__$Lazy_LazyConst(t));case 1:var n=e.failure;return r(n)}})).handle(t)};lix_cli_Command.reportError=function(e){haxeshim_Logger.get().error(e.message);var t=e.code;process.exit(t);return null};var lix_cli_NekoCmd=function(){};lix_cli_NekoCmd.__name__=true;lix_cli_NekoCmd.main=function(){var e=haxeshim_cli_NekoCli.findNeko();lix_cli_Command.attempt(lix_client_haxe_Switcher.ensureNeko(e,haxeshim_Logger.get()),(function(){haxeshim_cli_NekoCli.exec(e)}))};var S=r(8781);var lix_client_Download=function(){};lix_client_Download.__name__=true;lix_client_Download.buffered=function(e){return O.async((function(t){var r=[];e.on("data",$bind(r,$arrayPush));e.on("end",(function(){t(d.Success(js_node_buffer__$Buffer_Helper.bytesOfBuffer(w.concat(r))))}))}))};lix_client_Download.unzip=function(e,t,n,i,s){N.next(lix_client_Download.buffered(i),(function(i){return O.async((function(o){var a=i.length-4;while(a-- >0)if(i.b[a]==80&&i.b[a+1]==75&&i.b[a+2]==5&&i.b[a+3]==6){i.b[a+20]=0;i.b[a+21]=0;i=i.sub(0,a+22);break}if(a==0){o(d.Failure(new tink_core_TypedError(422,"Unzip failed to find central directory in "+e,{fileName:"src/lix/client/Download.hx",lineNumber:65,className:"lix.client.Download",methodName:"unzip"})));return}var l=i.b;S.fromBuffer(w.from(l.buffer,l.byteOffset,i.length),(function(i,a){var l=-1;var done=function(){l+=1;s.onProgress(l,a.entryCount,false);if(l==a.entryCount){var e=o;var r=d.Success(t);haxe_Timer.delay((function(){e(r)}),100)}};if(i!=null){o(d.Failure(new tink_core_TypedError(422,"Failed to unzip "+e+" because "+Std.string(i),{fileName:"src/lix/client/Download.hx",lineNumber:78,className:"lix.client.Download",methodName:"unzip"})))}a.on("entry",(function(e){var i=haxeshim_sys_Fs.peel(lix_client_Download.stripLeadingSlashes(e.fileName),n);switch(i._hx_index){case 0:var s=i.v;var o=""+t+"/"+s;if(StringTools.endsWith(o,"/")){done()}else{haxeshim_sys_Fs.ensureDir(o).eager();a.openReadStream(e,(function(e,t){var n=r(7758).createWriteStream(o);t.pipe(n,{end:true});n.on("close",done)}))}break;case 1:break}}));a.on("end",(function(){a.close();done()}))}))}))})).handle($bind(s,s.done))};lix_client_Download.stripLeadingSlashes=function(e){if(e.charAt(0)=="/"){return lix_client_Download.stripLeadingSlashes(HxOverrides.substr(e,1,null))}else{return e}};lix_client_Download.untar=function(e,t,n,i,s){return O.async((function(e){var o=0;var a=0;var l=[];var update=function(){s.onProgress(a,o+1,true)};var c=1;var done=function(r){if(r==null){r=0}a+=r;update();haxe_Timer.delay((function(){if((c-=1)<=0){s.onProgress(o,o,true);var r=[];var n=0;while(n<l.length){var i=[l[n]];++n;r.push(O.async(function(e){return function(t){f.unlink(e[0].to,function(e){return function(r){f.symlink(e[0].from,e[0].to,function(){return function(e){t(e==null?d.Success(null):d.Failure(new tink_core_TypedError(null,e.message,{fileName:"src/lix/client/Download.hx",lineNumber:137,className:"lix.client.Download",methodName:"untar"})))}}())}}(e))}}(i)))}N.next(N.inParallel(r),(function(e){return new tink_core__$Future_SyncFuture(new tink_core__$Lazy_LazyConst(d.Success(t)))})).handle(e)}}),100)};var u=null;var fail=function(t){var r=e;u=new tink_core_TypedError(null,t,{fileName:"src/lix/client/Download.hx",lineNumber:149,className:"lix.client.Download",methodName:"untar"});r(d.Failure(u))};lix_client_uncompress_Tar.parse(i,(function(i){if(u!=null){return}o+=i.size;update();var skip=function(){i.on("data",(function(){}))};var s=haxeshim_sys_Fs.peel(lix_client_Download.stripLeadingSlashes(i.path),n);switch(s._hx_index){case 0:var a=s.v;var h=""+t+"/"+a;if(StringTools.endsWith(h,"/")){skip()}else{haxeshim_sys_Fs.ensureDir(h).handle((function(t){if(t._hx_index==1){var n=t.failure;u=n;e(d.Failure(u))}else if(i.type=="SymbolicLink"){skip();l.push({from:i.linkpath,to:h})}else{c+=1;var s=new g;var o=r(7758).createWriteStream(h,{mode:i.mode});i.pipe(s,{end:true});s.pipe(o,{end:true});var a=i.size;o.on("close",(function(){done(a)}))}}))}break;case 1:skip();break}})).handle((function(t){if(t._hx_index==1){var r=t.failure;e(d.Failure(r))}else{done()}}))})).handle($bind(s,s.done))};lix_client_Download.tar=function(e,t,r,n){var i=r;var s=t;return lix_client_Download.download(e,lix_client_Download.withLogger(n,(function(e,t,r){return lix_client_Download.untar(e,i,s,t,r)})))};lix_client_Download.zip=function(e,t,r,n){var i=r;var s=t;return lix_client_Download.download(e,lix_client_Download.withLogger(n,(function(e,t,r){lix_client_Download.unzip(e,i,s,t,r)})))};lix_client_Download.withLogger=function(e,t){return function(r,n,i){var s=Std.parseInt(n.headers["content-length"]);var o=0;var a=0;var l=1;var c=null;var progress=function(t){if(t==c){return}c=t;e.progress(t)};var pct=function(e){e=Math.min(1,Math.max(0,e));var t=Std.string(Math.round(1e3*e)/10);var r;if(t.indexOf(".")==-1){var n=t;r=""+n+".0"}else{var i=t;r=i}return StringTools.lpad(r," ",5)+"%"};var u=new Date(0).getTime();var update=function(){if(!(a==l||a/l>=1)){var e=(new Date).getTime();if(e>u+137){u=e;var t=[];if(o<s){t.push("Downloaded: "+pct(o/s))}if(a>0){t.push("Saved: "+pct(a/l))}progress(" "+t.join(" "))}}};n.on("data",(function(e){o+=e.length;update()}));var h=0;t(r,n,{onProgress:function(e,t,r){a=e;l=t;if(r){var n=o/s;var i=a/l;var c=n*i;if(c<h){c=h}h=c;a=Math.round(c*1e3);l=1e3}update()},done:function(t){e.success("-> Done!");i(t)}})}};lix_client_Download.download=function(e,t){return O.async((function(r){var n=new b(e);var i=n.search;var s={protocol:n.protocol,host:n.host,path:""+n.pathname+(i!=null?i:"")};if(n.username!=null&&n.password!=null){s.auth=n.username+":"+n.password}var o=s;o.agent=false;if(o.headers==null){o.headers={}}o.headers["user-agent"]=lix_client_Download.USER_AGENT;var fail=function(t){r(d.Failure(tink_core_TypedError.withData(null,"Failed to download "+e+" because "+t.message,t,{fileName:"src/lix/client/Download.hx",lineNumber:300,className:"lix.client.Download",methodName:"download"})))};var a=StringTools.startsWith(e,"https:")?y.get(o):m.get(o);a.setTimeout(3e4);a.on("error",fail);a.on("response",(function(n){if(n.statusCode>=400){r(d.Failure(tink_core_TypedError.withData(n.statusCode,n.statusMessage,n,{fileName:"src/lix/client/Download.hx",lineNumber:311,className:"lix.client.Download",methodName:"download"})))}else{var i=n.headers["location"];if(i==null){n.on("error",fail);t(e,n,(function(e){switch(e._hx_index){case 0:var t=e.data;r(d.Success(t));break;case 1:var n=e.failure;r(d.Failure(n));break}}))}else{var s=i;lix_client_Download.download(new b(s,e).toString(),t).handle(r)}}}))}))};var lix_client_haxe_Switcher=function(){};lix_client_haxe_Switcher.__name__=true;lix_client_haxe_Switcher.ensureNeko=function(e,t){var r=e.path;if(sys_FileSystem.exists(r)){return new tink_core__$Future_SyncFuture(new tink_core__$Lazy_LazyConst(d.Success(r)))}else{t.info("Neko seems to be missing. Attempting download ...");var n=lix_client_haxe_Switcher.getNekoUrl(e);switch(n._hx_index){case 0:var i=n.data;var s=StringTools.startsWith(e.platform,"win")?lix_client_Download.zip:lix_client_Download.tar;return N.next(s(i,1,r,t),(function(e){t.success("done");return new tink_core__$Future_SyncFuture(new tink_core__$Lazy_LazyConst(d.Success(e)))}));case 1:var o=n.failure;return new tink_core__$Future_SyncFuture(new tink_core__$Lazy_LazyConst(d.Failure(o)))}}};lix_client_haxe_Switcher.getNekoUrl=function(e){var t;var r=e.platform;switch(r){case"linux-arm64":t="linux-arm64";break;case"linux64":t="linux64";break;case"mac-arm":case"mac-universal":case"mac64":t="osx-universal";break;case"win32":t="win";break;case"win64":t="win64";break;default:var n=r;return d.Failure(new tink_core_TypedError(null,"Unsupported platform: "+n,{fileName:"src/lix/client/haxe/Switcher.hx",lineNumber:319,className:"lix.client.haxe.Switcher",methodName:"getNekoUrl"}))}return d.Success("https://github.com/HaxeFoundation/neko/releases/download/v"+StringTools.replace(e.version,".","-")+"/neko-"+e.version+"-"+t+"."+(StringTools.startsWith(e.platform,"win")?"zip":"tar.gz"))};var lix_client_uncompress_Tar=function(){};lix_client_uncompress_Tar.__name__=true;lix_client_uncompress_Tar.parse=function(e,t){return O.async((function(r){var n=0;var i=0;var s=new E({onentry:function(e){n+=1;t(e)}});s.on("warn",(function(){i+=1}));s.on("end",(function(){r(n==0&&i!=0?d.Failure(new tink_core_TypedError(422,"Invalid tar archive.",{fileName:"src/lix/client/uncompress/Tar.hx",lineNumber:23,className:"lix.client.uncompress.Tar",methodName:"parse"})):d.Success(null))}));s.on("error",(function(e){r(d.Failure(new tink_core_TypedError(null,e.message,{fileName:"src/lix/client/uncompress/Tar.hx",lineNumber:26,className:"lix.client.uncompress.Tar",methodName:"parse"})))}));e.pipe(s,{end:true})}))};var E=r(4674).Parse;var sys_io_FileInput=function(e){this.hasReachedEof=false;this.fd=e;this.pos=0};sys_io_FileInput.__name__=true;sys_io_FileInput.__super__=haxe_io_Input;sys_io_FileInput.prototype=$extend(haxe_io_Input.prototype,{readByte:function(){var e=w.alloc(1);var t;try{t=f.readSync(this.fd,e,0,1,this.pos)}catch(e){var r=haxe_Exception.caught(e).unwrap();if(r.code=="EOF"){this.hasReachedEof=true;throw haxe_Exception.thrown(new haxe_io_Eof)}throw haxe_Exception.thrown(c.Custom(r))}if(t==0){this.hasReachedEof=true;throw haxe_Exception.thrown(new haxe_io_Eof)}this.pos++;return e[0]},readBytes:function(e,t,r){var n=e.b;var i=w.from(n.buffer,n.byteOffset,e.length);var s;try{s=f.readSync(this.fd,i,t,r,this.pos)}catch(e){var o=haxe_Exception.caught(e).unwrap();if(o.code=="EOF"){this.hasReachedEof=true;throw haxe_Exception.thrown(new haxe_io_Eof)}throw haxe_Exception.thrown(c.Custom(o))}if(s==0){this.hasReachedEof=true;throw haxe_Exception.thrown(new haxe_io_Eof)}this.pos+=s;return s},__class__:sys_io_FileInput});var x={};x.invoke=function(e,t){if(x.depth<500){x.depth++;e(t);x.depth--}else{x.defer((function(){e(t)}))}};x.defer=function(e){global.setImmediate(e)};var tink_core_LinkObject=function(){};tink_core_LinkObject.__name__=true;tink_core_LinkObject.__isInterface__=true;tink_core_LinkObject.prototype={__class__:tink_core_LinkObject};var tink_core_CallbackLinkRef=function(){};tink_core_CallbackLinkRef.__name__=true;tink_core_CallbackLinkRef.__interfaces__=[tink_core_LinkObject];tink_core_CallbackLinkRef.prototype={cancel:function(){var e=this.link;if(e!=null){e.cancel()}},__class__:tink_core_CallbackLinkRef};var R={};R.fromMany=function(e){return new tink_core_SimpleLink((function(){if(e!=null){var t=0;while(t<e.length){var r=e[t];++t;if(r!=null){r.cancel()}}}else{e=null}}))};var tink_core_SimpleLink=function(e){this.f=e};tink_core_SimpleLink.__name__=true;tink_core_SimpleLink.__interfaces__=[tink_core_LinkObject];tink_core_SimpleLink.prototype={cancel:function(){if(this.f!=null){this.f();this.f=null}},__class__:tink_core_SimpleLink};var tink_core__$Callback_LinkPair=function(e,t){this.dissolved=false;this.a=e;this.b=t};tink_core__$Callback_LinkPair.__name__=true;tink_core__$Callback_LinkPair.__interfaces__=[tink_core_LinkObject];tink_core__$Callback_LinkPair.prototype={cancel:function(){if(!this.dissolved){this.dissolved=true;var e=this.a;if(e!=null){e.cancel()}var e=this.b;if(e!=null){e.cancel()}this.a=null;this.b=null}},__class__:tink_core__$Callback_LinkPair};var tink_core__$Callback_ListCell=function(e,t){if(e==null){throw haxe_Exception.thrown("callback expected but null received")}this.cb=e;this.list=t};tink_core__$Callback_ListCell.__name__=true;tink_core__$Callback_ListCell.__interfaces__=[tink_core_LinkObject];tink_core__$Callback_ListCell.prototype={cancel:function(){if(this.list!=null){var e=this.list;this.cb=null;this.list=null;if(--e.used<=e.cells.length>>1){e.compact()}}},__class__:tink_core__$Callback_ListCell};var tink_core_Disposable=function(){};tink_core_Disposable.__name__=true;tink_core_Disposable.__isInterface__=true;var tink_core_OwnedDisposable=function(){};tink_core_OwnedDisposable.__name__=true;tink_core_OwnedDisposable.__isInterface__=true;tink_core_OwnedDisposable.__interfaces__=[tink_core_Disposable];var tink_core_SimpleDisposable=function(e){this.disposeHandlers=[];this.f=e};tink_core_SimpleDisposable.__name__=true;tink_core_SimpleDisposable.__interfaces__=[tink_core_OwnedDisposable];tink_core_SimpleDisposable.noop=function(){};tink_core_SimpleDisposable.prototype={dispose:function(){var e=this.disposeHandlers;if(e!=null){var t=e;this.disposeHandlers=null;var r=this.f;this.f=tink_core_SimpleDisposable.noop;r();var e=0;while(e<t.length){var n=t[e];++e;n()}}},__class__:tink_core_SimpleDisposable};var tink_core_CallbackList=function(e){if(e==null){e=false}this.onfill=function(){};this.ondrain=function(){};this.busy=false;this.queue=[];this.used=0;var t=this;tink_core_SimpleDisposable.call(this,(function(){if(!t.busy){t.destroy()}}));this.destructive=e;this.cells=[]};tink_core_CallbackList.__name__=true;tink_core_CallbackList.__super__=tink_core_SimpleDisposable;tink_core_CallbackList.prototype=$extend(tink_core_SimpleDisposable.prototype,{destroy:function(){var e=0;var t=this.cells;while(e<t.length){var r=t[e];++e;r.cb=null;r.list=null}this.queue=null;this.cells=null;if(this.used>0){this.used=0;var n=this.ondrain;if(x.depth<500){x.depth++;n();x.depth--}else{x.defer(n)}}},invoke:function(e){var t=this;if(x.depth<500){x.depth++;if(t.disposeHandlers!=null){if(t.busy){if(t.destructive!=true){var r=t;var n=e;var tmp=function(){r.invoke(n)};t.queue.push(tmp)}}else{t.busy=true;if(t.destructive){t.dispose()}var i=t.cells.length;var s=0;var o=i;while(s<o){var a=s++;var l=t.cells[a];if(l.list!=null){l.cb(e)}}t.busy=false;if(t.disposeHandlers==null){t.destroy()}else{if(t.used<t.cells.length){t.compact()}if(t.queue.length>0){t.queue.shift()()}}}}x.depth--}else{x.defer((function(){if(t.disposeHandlers!=null){if(t.busy){if(t.destructive!=true){var r=t;var n=e;var tmp=function(){r.invoke(n)};t.queue.push(tmp)}}else{t.busy=true;if(t.destructive){t.dispose()}var i=t.cells.length;var s=0;var o=i;while(s<o){var a=s++;var l=t.cells[a];if(l.list!=null){l.cb(e)}}t.busy=false;if(t.disposeHandlers==null){t.destroy()}else{if(t.used<t.cells.length){t.compact()}if(t.queue.length>0){t.queue.shift()()}}}}}))}},compact:function(){if(this.busy){return}else if(this.used==0){this.resize(0);var e=this.ondrain;if(x.depth<500){x.depth++;e();x.depth--}else{x.defer(e)}}else{var t=0;var r=0;var n=this.cells.length;while(r<n){var i=r++;var s=this.cells[i];var o=s.list;if(s.cb!=null){var a=s;if(t!=i){this.cells[t]=a}if(++t==this.used){break}}}this.resize(this.used)}},resize:function(e){this.cells.length=e},__class__:tink_core_CallbackList});var tink_core_TypedError=function(e,t,r){if(e==null){e=500}this.isTinkError=true;this.code=e;this.message=t;this.pos=r;this.exceptionStack=[];this.callStack=[]};tink_core_TypedError.__name__=true;tink_core_TypedError.withData=function(e,t,r,n){return tink_core_TypedError.typed(e,t,r,n)};tink_core_TypedError.typed=function(e,t,r,n){var i=new tink_core_TypedError(e,t,n);i.data=r;return i};tink_core_TypedError.asError=function(e){if(e!=null&&e.isTinkError){return e}else{return null}};tink_core_TypedError.catchExceptions=function(e,t,r){try{return d.Success(e())}catch(e){var n=haxe_Exception.caught(e).unwrap();var i=tink_core_TypedError.asError(n);var s;if(i==null){s=t==null?tink_core_TypedError.withData(null,"Unexpected Error",n,r):t(n)}else{var o=i;s=o}return d.Failure(s)}};tink_core_TypedError.prototype={__class__:tink_core_TypedError};var tink_core__$Future_FutureObject=function(){};tink_core__$Future_FutureObject.__name__=true;tink_core__$Future_FutureObject.prototype={getStatus:function(){return k.NeverEver},handle:function(e){return null},eager:function(){},__class__:tink_core__$Future_FutureObject};var tink_core__$Future_SyncFuture=function(e){tink_core__$Future_FutureObject.call(this);this.value=e};tink_core__$Future_SyncFuture.__name__=true;tink_core__$Future_SyncFuture.__super__=tink_core__$Future_FutureObject;tink_core__$Future_SyncFuture.prototype=$extend(tink_core__$Future_FutureObject.prototype,{getStatus:function(){return k.Ready(this.value)},handle:function(e){x.invoke(e,h.get(this.value));return null},eager:function(){if(!this.value.isComputed()){h.get(this.value)}},__class__:tink_core__$Future_SyncFuture});var O={};O.never=function(){return O.NEVER_INST};O.flatMap=function(e,t,r){var n=e.getStatus();switch(n._hx_index){case 3:var i=n.result;return new tink_core__$Future_SuspendableFuture((function(e,r){return t(h.get(i)).handle((function(t){e(t)}))}));case 4:return O.never();default:return new tink_core__$Future_SuspendableFuture((function(r,n){var i=new tink_core_CallbackLinkRef;var s=e.handle((function(e){var s=t(e);if(s.getStatus()._hx_index==4){n()}else{var o=s;var a=o.handle(r);var l=i.link;if(l!=null){l.cancel()}i.link=a}}));return new tink_core__$Callback_LinkPair(s,i)}))}};O.processMany=function(e,t,r,n){if(e.length==0){return new tink_core__$Future_SyncFuture(new tink_core__$Lazy_LazyConst(n(d.Success([]))))}else{var wakeup=function(i){var s=[];var o=[];var a=0;while(a<e.length){var l=e[a];++a;o.push(null)}var c=o;var u=0;var f=0;var p=false;var _;if(t==null){_=e.length}else{var m=t;_=m<1?1:m>e.length?e.length:m}var fireWhenReady=function(){if(u==c.length){if(f==0){var e=n(d.Success(c));p=true;i(e);return true}else{return false}}else{return false}};var y=null;y=function(){if(!p&&!fireWhenReady()){while(u<c.length){u+=1;var t=[u-1];var o=e[t[0]];var a=[function(e){return function(t){var o=r(t);switch(o._hx_index){case 0:var a=o.data;c[e[0]]=a;fireWhenReady();break;case 1:var l=o.failure;var o=0;while(o<s.length){var u=s[o];++o;if(u!=null){u.cancel()}}var a=n(d.Failure(l));p=true;i(a);break}}}(t)];var l=o.getStatus();if(l._hx_index==3){var _;_=h.get(l.result);var m=_;a[0](m);if(!p){continue}}else{f+=1;s.push(o.handle(function(e){return function(t){f-=1;e[0](t);if(!p){y()}}}(a)))}break}}};var o=0;var a=_;while(o<a){var v=o++;y()}return R.fromMany(s)};return new tink_core__$Future_SuspendableFuture((function(e,t){return wakeup(e)}))}};O.async=function(e,t){if(t==null){t=false}var r=O.irreversible(e);if(t){return r}else{r.eager();return r}};O.irreversible=function(e){return new tink_core__$Future_SuspendableFuture((function(t,r){e(t);return null}))};var k=t["tink.core.FutureStatus"]={__ename__:true,__constructs__:null,Suspended:{_hx_name:"Suspended",_hx_index:0,__enum__:"tink.core.FutureStatus",toString:$estr},Awaited:{_hx_name:"Awaited",_hx_index:1,__enum__:"tink.core.FutureStatus",toString:$estr},EagerlyAwaited:{_hx_name:"EagerlyAwaited",_hx_index:2,__enum__:"tink.core.FutureStatus",toString:$estr},Ready:(n=function(e){return{_hx_index:3,result:e,__enum__:"tink.core.FutureStatus",toString:$estr}},n._hx_name="Ready",n.__params__=["result"],n),NeverEver:{_hx_name:"NeverEver",_hx_index:4,__enum__:"tink.core.FutureStatus",toString:$estr}};k.__constructs__=[k.Suspended,k.Awaited,k.EagerlyAwaited,k.Ready,k.NeverEver];var tink_core__$Future_SuspendableFuture=function(e){this.status=k.Suspended;var t=this;tink_core__$Future_FutureObject.call(this);this.wakeup=e;this.callbacks=new tink_core_CallbackList(true);this.callbacks.ondrain=function(){if(t.status==k.Awaited){t.status=k.Suspended;var e=t.link;if(e!=null){e.cancel()}t.link=null}};this.callbacks.onfill=function(){if(t.status==k.Suspended){t.status=k.Awaited;t.arm()}}};tink_core__$Future_SuspendableFuture.__name__=true;tink_core__$Future_SuspendableFuture.__super__=tink_core__$Future_FutureObject;tink_core__$Future_SuspendableFuture.prototype=$extend(tink_core__$Future_FutureObject.prototype,{getStatus:function(){return this.status},trigger:function(e){var t=this.status;if(t._hx_index==3){var r=t.result}else{this.status=k.Ready(new tink_core__$Lazy_LazyConst(e));var n=this.link;this.link=null;this.wakeup=null;this.callbacks.invoke(e);if(n!=null){n.cancel()}}},handle:function(e){var t=this.status;if(t._hx_index==3){var r=t.result;x.invoke(e,h.get(r));return null}else{var n=this.callbacks;if(n.disposeHandlers==null){return null}else{var i=new tink_core__$Callback_ListCell(e,n);n.cells.push(i);if(n.used++==0){var s=n.onfill;if(x.depth<500){x.depth++;s();x.depth--}else{x.defer(s)}}return i}}},destroy:function(){this.callbacks.dispose();this.status=k.NeverEver},arm:function(){var e=this;this.link=this.wakeup((function(t){e.trigger(t)}),$bind(this,this.destroy))},eager:function(){switch(this.status._hx_index){case 0:this.status=k.EagerlyAwaited;this.arm();break;case 1:this.status=k.EagerlyAwaited;break;default:}},__class__:tink_core__$Future_SuspendableFuture});var tink_core__$Lazy_LazyFunc=function(e,t){this.f=e;this.from=t};tink_core__$Lazy_LazyFunc.__name__=true;tink_core__$Lazy_LazyFunc.__interfaces__=[tink_core__$Lazy_LazyObject];tink_core__$Lazy_LazyFunc.prototype={underlying:function(){return this.from},isComputed:function(){return this.f==null},get:function(){return this.result},compute:function(){var e=this.f;if(e!=null){var t=e;this.f=null;var e=this.from;if(e!=null){var r=e;this.from=null;var n=[];while(r!=null&&!r.isComputed()){n.push(r);r=r.underlying()}n.reverse();var e=0;while(e<n.length){var i=n[e];++e;i.compute()}}this.result=t()}},__class__:tink_core__$Lazy_LazyFunc};var N={};N.next=function(e,t,r){return O.flatMap(e,(function(e){switch(e._hx_index){case 0:var r=e.data;return t(r);case 1:var n=e.failure;return new tink_core__$Future_SyncFuture(new tink_core__$Lazy_LazyConst(d.Failure(n)))}}))};N.inParallel=function(e,t){return N.many(e,t)};N.many=function(e,t){return O.processMany(e,t,(function(e){return e}),(function(e){return e}))};var A={};A.ofSync=function(e){return function(t){return new tink_core__$Future_SyncFuture(new tink_core__$Lazy_LazyConst(e(t)))}};function $bind(t,r){if(r==null)return null;if(r.__id__==null)r.__id__=e.$haxeUID++;var n;if(t.hx__closures__==null)t.hx__closures__={};else n=t.hx__closures__[r.__id__];if(n==null){n=r.bind(t);t.hx__closures__[r.__id__]=n}return n}function $arrayPush(e){return this.push(e)}e.$haxeUID|=0;js_Boot.__toStr={}.toString;if(String.fromCodePoint==null)String.fromCodePoint=function(e){return e<65536?String.fromCharCode(e):String.fromCharCode((e>>10)+55232)+String.fromCharCode((e&1023)+56320)};Object.defineProperty(String.prototype,"__class__",{value:String,enumerable:false,writable:true});String.__name__=true;Array.__name__=true;Date.prototype.__class__=Date;Date.__name__="Date";var I={};var L={};var T=Number;var F=Boolean;var B={};var C={};if(typeof performance!="undefined"?typeof performance.now=="function":false){HxOverrides.now=performance.now.bind(performance)}if(ArrayBuffer.prototype.slice==null){ArrayBuffer.prototype.slice=js_lib__$ArrayBuffer_ArrayBufferCompat.sliceImpl}ANSI.values=function(e){var t;var r=new haxe_ds_EnumValueMap;r.set(i.Off,0);r.set(i.Bold,1);r.set(i.Underline,4);r.set(i.Blink,5);r.set(i.ReverseVideo,7);r.set(i.Concealed,8);r.set(i.BoldOff,22);r.set(i.UnderlineOff,24);r.set(i.BlinkOff,25);r.set(i.NormalVideo,27);r.set(i.ConcealedOff,28);r.set(i.Black,30);r.set(i.Red,31);r.set(i.Green,32);r.set(i.Yellow,33);r.set(i.Blue,34);r.set(i.Magenta,35);r.set(i.Cyan,36);r.set(i.White,37);r.set(i.DefaultForeground,39);r.set(i.BlackBack,40);r.set(i.RedBack,41);r.set(i.GreenBack,42);r.set(i.YellowBack,43);r.set(i.BlueBack,44);r.set(i.MagentaBack,45);r.set(i.CyanBack,46);r.set(i.WhiteBack,47);r.set(i.DefaultBackground,49);t=r;return t}(this);ANSI.available=ANSI.detectSupport();ANSI.strip=false;ANSI.stripIfUnavailable=true;haxeshim__$Logger_SysLogger.isTTY=process.stderr.isTTY;haxeshim__$Logger_SysLogger.out=function(e){var t;ANSI.available=haxeshim__$Logger_SysLogger.isTTY;t=new _$Sys_FileOutput(2);return t}(this);haxeshim_sys_Os.IS_WINDOWS=Sys.systemName()=="Windows";haxeshim_sys_Os.DELIMITER=haxeshim_sys_Os.IS_WINDOWS?";":":";haxeshim_sys_Os.EXECUTABLE_EXTENSION=haxeshim_sys_Os.IS_WINDOWS?".exe":"";haxeshim_scope_Scope.CONFIG_FILE=".haxerc";haxeshim_scope_Scope.DEFAULT_ROOT=function(e){var t;var r=haxeshim_scope_Scope.env("HAXE_ROOT");var n=haxeshim_scope_Scope.env("HAXESHIM_ROOT");var i=haxeshim_sys_Os.IS_WINDOWS?"APPDATA":"HOME";var s=new tink_core__$Lazy_LazyConst(process.env[i]+"/haxe");var o;if(n._hx_index==0){var a=n.v;o=a}else{o=h.get(s)}var s=new tink_core__$Lazy_LazyConst(o);t=r._hx_index==0?function(e){var t;var n=r.v;t=n;return t}(e):h.get(s);return t}(this);lix_client_Download.initZip=function(e){var t;var r=S.validateFileName;S.validateFileName=function(e){return null};t=true;return t}(this);lix_client_Download.USER_AGENT="lix";x.depth=0;O.NEVER_INST=new tink_core__$Future_FutureObject;lix_cli_NekoCmd.main()})(typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this)},4794:(e,t,r)=>{var n=r(4300).Buffer;var i=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];if(typeof Int32Array!=="undefined"){i=new Int32Array(i)}function ensureBuffer(e){if(n.isBuffer(e)){return e}var t=typeof n.alloc==="function"&&typeof n.from==="function";if(typeof e==="number"){return t?n.alloc(e):new n(e)}else if(typeof e==="string"){return t?n.from(e):new n(e)}else{throw new Error("input must be buffer, number, or string, received "+typeof e)}}function bufferizeInt(e){var t=ensureBuffer(4);t.writeInt32BE(e,0);return t}function _crc32(e,t){e=ensureBuffer(e);if(n.isBuffer(t)){t=t.readUInt32BE(0)}var r=~~t^-1;for(var s=0;s<e.length;s++){r=i[(r^e[s])&255]^r>>>8}return r^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};e.exports=crc32},9051:(e,t,r)=>{"use strict";const n=r(7147);const i=r(1017);const s=n.lchown?"lchown":"chown";const o=n.lchownSync?"lchownSync":"chownSync";const a=n.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/);const lchownSync=(e,t,r)=>{try{return n[o](e,t,r)}catch(e){if(e.code!=="ENOENT")throw e}};const chownSync=(e,t,r)=>{try{return n.chownSync(e,t,r)}catch(e){if(e.code!=="ENOENT")throw e}};const l=a?(e,t,r,i)=>s=>{if(!s||s.code!=="EISDIR")i(s);else n.chown(e,t,r,i)}:(e,t,r,n)=>n;const c=a?(e,t,r)=>{try{return lchownSync(e,t,r)}catch(n){if(n.code!=="EISDIR")throw n;chownSync(e,t,r)}}:(e,t,r)=>lchownSync(e,t,r);const u=process.version;let readdir=(e,t,r)=>n.readdir(e,t,r);let readdirSync=(e,t)=>n.readdirSync(e,t);if(/^v4\./.test(u))readdir=(e,t,r)=>n.readdir(e,r);const chown=(e,t,r,i)=>{n[s](e,t,r,l(e,t,r,(e=>{i(e&&e.code!=="ENOENT"?e:null)})))};const chownrKid=(e,t,r,s,o)=>{if(typeof t==="string")return n.lstat(i.resolve(e,t),((n,i)=>{if(n)return o(n.code!=="ENOENT"?n:null);i.name=t;chownrKid(e,i,r,s,o)}));if(t.isDirectory()){chownr(i.resolve(e,t.name),r,s,(n=>{if(n)return o(n);const a=i.resolve(e,t.name);chown(a,r,s,o)}))}else{const n=i.resolve(e,t.name);chown(n,r,s,o)}};const chownr=(e,t,r,n)=>{readdir(e,{withFileTypes:true},((i,s)=>{if(i){if(i.code==="ENOENT")return n();else if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return chown(e,t,r,n);let o=s.length;let a=null;const then=i=>{if(a)return;if(i)return n(a=i);if(--o===0)return chown(e,t,r,n)};s.forEach((n=>chownrKid(e,n,t,r,then)))}))};const chownrKidSync=(e,t,r,s)=>{if(typeof t==="string"){try{const r=n.lstatSync(i.resolve(e,t));r.name=t;t=r}catch(e){if(e.code==="ENOENT")return;else throw e}}if(t.isDirectory())chownrSync(i.resolve(e,t.name),r,s);c(i.resolve(e,t.name),r,s)};const chownrSync=(e,t,r)=>{let n;try{n=readdirSync(e,{withFileTypes:true})}catch(n){if(n.code==="ENOENT")return;else if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return c(e,t,r);else throw n}if(n&&n.length)n.forEach((n=>chownrKidSync(e,n,t,r)));return c(e,t,r)};e.exports=chownr;chownr.sync=chownrSync},5010:(e,t,r)=>{var n=r(7147);var i=r(3837);var s=r(2781);var o=s.Readable;var a=s.Writable;var l=s.PassThrough;var c=r(4833);var u=r(2361).EventEmitter;t.createFromBuffer=createFromBuffer;t.createFromFd=createFromFd;t.BufferSlicer=BufferSlicer;t.FdSlicer=FdSlicer;i.inherits(FdSlicer,u);function FdSlicer(e,t){t=t||{};u.call(this);this.fd=e;this.pend=new c;this.pend.max=1;this.refCount=0;this.autoClose=!!t.autoClose}FdSlicer.prototype.read=function(e,t,r,i,s){var o=this;o.pend.go((function(a){n.read(o.fd,e,t,r,i,(function(e,t,r){a();s(e,t,r)}))}))};FdSlicer.prototype.write=function(e,t,r,i,s){var o=this;o.pend.go((function(a){n.write(o.fd,e,t,r,i,(function(e,t,r){a();s(e,t,r)}))}))};FdSlicer.prototype.createReadStream=function(e){return new ReadStream(this,e)};FdSlicer.prototype.createWriteStream=function(e){return new WriteStream(this,e)};FdSlicer.prototype.ref=function(){this.refCount+=1};FdSlicer.prototype.unref=function(){var e=this;e.refCount-=1;if(e.refCount>0)return;if(e.refCount<0)throw new Error("invalid unref");if(e.autoClose){n.close(e.fd,onCloseDone)}function onCloseDone(t){if(t){e.emit("error",t)}else{e.emit("close")}}};i.inherits(ReadStream,o);function ReadStream(e,t){t=t||{};o.call(this,t);this.context=e;this.context.ref();this.start=t.start||0;this.endOffset=t.end;this.pos=this.start;this.destroyed=false}ReadStream.prototype._read=function(e){var t=this;if(t.destroyed)return;var r=Math.min(t._readableState.highWaterMark,e);if(t.endOffset!=null){r=Math.min(r,t.endOffset-t.pos)}if(r<=0){t.destroyed=true;t.push(null);t.context.unref();return}t.context.pend.go((function(e){if(t.destroyed)return e();var i=new Buffer(r);n.read(t.context.fd,i,0,r,t.pos,(function(r,n){if(r){t.destroy(r)}else if(n===0){t.destroyed=true;t.push(null);t.context.unref()}else{t.pos+=n;t.push(i.slice(0,n))}e()}))}))};ReadStream.prototype.destroy=function(e){if(this.destroyed)return;e=e||new Error("stream destroyed");this.destroyed=true;this.emit("error",e);this.context.unref()};i.inherits(WriteStream,a);function WriteStream(e,t){t=t||{};a.call(this,t);this.context=e;this.context.ref();this.start=t.start||0;this.endOffset=t.end==null?Infinity:+t.end;this.bytesWritten=0;this.pos=this.start;this.destroyed=false;this.on("finish",this.destroy.bind(this))}WriteStream.prototype._write=function(e,t,r){var i=this;if(i.destroyed)return;if(i.pos+e.length>i.endOffset){var s=new Error("maximum file length exceeded");s.code="ETOOBIG";i.destroy();r(s);return}i.context.pend.go((function(t){if(i.destroyed)return t();n.write(i.context.fd,e,0,e.length,i.pos,(function(e,n){if(e){i.destroy();t();r(e)}else{i.bytesWritten+=n;i.pos+=n;i.emit("progress");t();r()}}))}))};WriteStream.prototype.destroy=function(){if(this.destroyed)return;this.destroyed=true;this.context.unref()};i.inherits(BufferSlicer,u);function BufferSlicer(e,t){u.call(this);t=t||{};this.refCount=0;this.buffer=e;this.maxChunkSize=t.maxChunkSize||Number.MAX_SAFE_INTEGER}BufferSlicer.prototype.read=function(e,t,r,n,i){var s=n+r;var o=s-this.buffer.length;var a=o>0?o:r;this.buffer.copy(e,t,n,s);setImmediate((function(){i(null,a)}))};BufferSlicer.prototype.write=function(e,t,r,n,i){e.copy(this.buffer,n,t,t+r);setImmediate((function(){i(null,r,e)}))};BufferSlicer.prototype.createReadStream=function(e){e=e||{};var t=new l(e);t.destroyed=false;t.start=e.start||0;t.endOffset=e.end;t.pos=t.endOffset||this.buffer.length;var r=this.buffer.slice(t.start,t.pos);var n=0;while(true){var i=n+this.maxChunkSize;if(i>=r.length){if(n<r.length){t.write(r.slice(n,r.length))}break}t.write(r.slice(n,i));n=i}t.end();t.destroy=function(){t.destroyed=true};return t};BufferSlicer.prototype.createWriteStream=function(e){var t=this;e=e||{};var r=new a(e);r.start=e.start||0;r.endOffset=e.end==null?this.buffer.length:+e.end;r.bytesWritten=0;r.pos=r.start;r.destroyed=false;r._write=function(e,n,i){if(r.destroyed)return;var s=r.pos+e.length;if(s>r.endOffset){var o=new Error("maximum file length exceeded");o.code="ETOOBIG";r.destroyed=true;i(o);return}e.copy(t.buffer,r.pos,0,e.length);r.bytesWritten+=e.length;r.pos=s;r.emit("progress");i()};r.destroy=function(){r.destroyed=true};return r};BufferSlicer.prototype.ref=function(){this.refCount+=1};BufferSlicer.prototype.unref=function(){this.refCount-=1;if(this.refCount<0){throw new Error("invalid unref")}};function createFromBuffer(e,t){return new BufferSlicer(e,t)}function createFromFd(e,t){return new FdSlicer(e,t)}},7714:(e,t,r)=>{"use strict";const n=r(1077);const i=r(2361).EventEmitter;const s=r(7147);let o=s.writev;if(!o){const e=process.binding("fs");const t=e.FSReqWrap||e.FSReqCallback;o=(r,n,i,s)=>{const done=(e,t)=>s(e,t,n);const o=new t;o.oncomplete=done;e.writeBuffers(r,n,i,o)}}const a=Symbol("_autoClose");const l=Symbol("_close");const c=Symbol("_ended");const u=Symbol("_fd");const h=Symbol("_finished");const f=Symbol("_flags");const d=Symbol("_flush");const p=Symbol("_handleChunk");const _=Symbol("_makeBuf");const m=Symbol("_mode");const y=Symbol("_needDrain");const v=Symbol("_onerror");const w=Symbol("_onopen");const g=Symbol("_onread");const b=Symbol("_onwrite");const S=Symbol("_open");const E=Symbol("_path");const x=Symbol("_pos");const R=Symbol("_queue");const O=Symbol("_read");const k=Symbol("_readSize");const N=Symbol("_reading");const A=Symbol("_remain");const I=Symbol("_size");const L=Symbol("_write");const T=Symbol("_writing");const F=Symbol("_defaultFlag");const B=Symbol("_errored");class ReadStream extends n{constructor(e,t){t=t||{};super(t);this.readable=true;this.writable=false;if(typeof e!=="string")throw new TypeError("path must be a string");this[B]=false;this[u]=typeof t.fd==="number"?t.fd:null;this[E]=e;this[k]=t.readSize||16*1024*1024;this[N]=false;this[I]=typeof t.size==="number"?t.size:Infinity;this[A]=this[I];this[a]=typeof t.autoClose==="boolean"?t.autoClose:true;if(typeof this[u]==="number")this[O]();else this[S]()}get fd(){return this[u]}get path(){return this[E]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[S](){s.open(this[E],"r",((e,t)=>this[w](e,t)))}[w](e,t){if(e)this[v](e);else{this[u]=t;this.emit("open",t);this[O]()}}[_](){return Buffer.allocUnsafe(Math.min(this[k],this[A]))}[O](){if(!this[N]){this[N]=true;const e=this[_]();if(e.length===0)return process.nextTick((()=>this[g](null,0,e)));s.read(this[u],e,0,e.length,null,((e,t,r)=>this[g](e,t,r)))}}[g](e,t,r){this[N]=false;if(e)this[v](e);else if(this[p](t,r))this[O]()}[l](){if(this[a]&&typeof this[u]==="number"){const e=this[u];this[u]=null;s.close(e,(e=>e?this.emit("error",e):this.emit("close")))}}[v](e){this[N]=true;this[l]();this.emit("error",e)}[p](e,t){let r=false;this[A]-=e;if(e>0)r=super.write(e<t.length?t.slice(0,e):t);if(e===0||this[A]<=0){r=false;this[l]();super.end()}return r}emit(e,t){switch(e){case"prefinish":case"finish":break;case"drain":if(typeof this[u]==="number")this[O]();break;case"error":if(this[B])return;this[B]=true;return super.emit(e,t);default:return super.emit(e,t)}}}class ReadStreamSync extends ReadStream{[S](){let e=true;try{this[w](null,s.openSync(this[E],"r"));e=false}finally{if(e)this[l]()}}[O](){let e=true;try{if(!this[N]){this[N]=true;do{const e=this[_]();const t=e.length===0?0:s.readSync(this[u],e,0,e.length,null);if(!this[p](t,e))break}while(true);this[N]=false}e=false}finally{if(e)this[l]()}}[l](){if(this[a]&&typeof this[u]==="number"){const e=this[u];this[u]=null;s.closeSync(e);this.emit("close")}}}class WriteStream extends i{constructor(e,t){t=t||{};super(t);this.readable=false;this.writable=true;this[B]=false;this[T]=false;this[c]=false;this[y]=false;this[R]=[];this[E]=e;this[u]=typeof t.fd==="number"?t.fd:null;this[m]=t.mode===undefined?438:t.mode;this[x]=typeof t.start==="number"?t.start:null;this[a]=typeof t.autoClose==="boolean"?t.autoClose:true;const r=this[x]!==null?"r+":"w";this[F]=t.flags===undefined;this[f]=this[F]?r:t.flags;if(this[u]===null)this[S]()}emit(e,t){if(e==="error"){if(this[B])return;this[B]=true}return super.emit(e,t)}get fd(){return this[u]}get path(){return this[E]}[v](e){this[l]();this[T]=true;this.emit("error",e)}[S](){s.open(this[E],this[f],this[m],((e,t)=>this[w](e,t)))}[w](e,t){if(this[F]&&this[f]==="r+"&&e&&e.code==="ENOENT"){this[f]="w";this[S]()}else if(e)this[v](e);else{this[u]=t;this.emit("open",t);this[d]()}}end(e,t){if(e)this.write(e,t);this[c]=true;if(!this[T]&&!this[R].length&&typeof this[u]==="number")this[b](null,0);return this}write(e,t){if(typeof e==="string")e=Buffer.from(e,t);if(this[c]){this.emit("error",new Error("write() after end()"));return false}if(this[u]===null||this[T]||this[R].length){this[R].push(e);this[y]=true;return false}this[T]=true;this[L](e);return true}[L](e){s.write(this[u],e,0,e.length,this[x],((e,t)=>this[b](e,t)))}[b](e,t){if(e)this[v](e);else{if(this[x]!==null)this[x]+=t;if(this[R].length)this[d]();else{this[T]=false;if(this[c]&&!this[h]){this[h]=true;this[l]();this.emit("finish")}else if(this[y]){this[y]=false;this.emit("drain")}}}}[d](){if(this[R].length===0){if(this[c])this[b](null,0)}else if(this[R].length===1)this[L](this[R].pop());else{const e=this[R];this[R]=[];o(this[u],e,this[x],((e,t)=>this[b](e,t)))}}[l](){if(this[a]&&typeof this[u]==="number"){const e=this[u];this[u]=null;s.close(e,(e=>e?this.emit("error",e):this.emit("close")))}}}class WriteStreamSync extends WriteStream{[S](){let e;if(this[F]&&this[f]==="r+"){try{e=s.openSync(this[E],this[f],this[m])}catch(e){if(e.code==="ENOENT"){this[f]="w";return this[S]()}else throw e}}else e=s.openSync(this[E],this[f],this[m]);this[w](null,e)}[l](){if(this[a]&&typeof this[u]==="number"){const e=this[u];this[u]=null;s.closeSync(e);this.emit("close")}}[L](e){let t=true;try{this[b](null,s.writeSync(this[u],e,0,e.length,this[x]));t=false}finally{if(t)try{this[l]()}catch(e){}}}}t.ReadStream=ReadStream;t.ReadStreamSync=ReadStreamSync;t.WriteStream=WriteStream;t.WriteStreamSync=WriteStreamSync},7356:e=>{"use strict";e.exports=clone;function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var t={__proto__:e.__proto__};else var t=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}));return t}},7758:(e,t,r)=>{var n=r(7147);var i=r(263);var s=r(3086);var o=r(7356);var a=r(3837);var l;var c;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){l=Symbol.for("graceful-fs.queue");c=Symbol.for("graceful-fs.previous")}else{l="___graceful-fs.queue";c="___graceful-fs.previous"}function noop(){}var u=noop;if(a.debuglog)u=a.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))u=function(){var e=a.format.apply(a,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!global[l]){var h=[];Object.defineProperty(global,l,{get:function(){return h}});n.close=function(e){function close(t,r){return e.call(n,t,(function(e){if(!e){retry()}if(typeof r==="function")r.apply(this,arguments)}))}Object.defineProperty(close,c,{value:e});return close}(n.close);n.closeSync=function(e){function closeSync(t){e.apply(n,arguments);retry()}Object.defineProperty(closeSync,c,{value:e});return closeSync}(n.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){u(global[l]);r(9491).equal(global[l].length,0)}))}}e.exports=patch(o(n));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched){e.exports=patch(n);n.__patched=true}function patch(e){i(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,n){if(typeof r==="function")n=r,r=null;return go$readFile(e,r,n);function go$readFile(e,r,n){return t(e,r,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}}))}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,n,i){if(typeof n==="function")i=n,n=null;return go$writeFile(e,t,n,i);function go$writeFile(e,t,n,i){return r(e,t,n,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,n,i]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}}))}}var n=e.appendFile;if(n)e.appendFile=appendFile;function appendFile(e,t,r,i){if(typeof r==="function")i=r,r=null;return go$appendFile(e,t,r,i);function go$appendFile(e,t,r,i){return n(e,t,r,(function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,i]]);else{if(typeof i==="function")i.apply(this,arguments);retry()}}))}}var o=e.readdir;e.readdir=readdir;function readdir(e,t,r){var n=[e];if(typeof t!=="function"){n.push(t)}else{r=t}n.push(go$readdir$cb);return go$readdir(n);function go$readdir$cb(e,t){if(t&&t.sort)t.sort();if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))enqueue([go$readdir,[n]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}}}function go$readdir(t){return o.apply(e,t)}if(process.version.substr(0,4)==="v0.8"){var a=s(e);ReadStream=a.ReadStream;WriteStream=a.WriteStream}var l=e.ReadStream;if(l){ReadStream.prototype=Object.create(l.prototype);ReadStream.prototype.open=ReadStream$open}var c=e.WriteStream;if(c){WriteStream.prototype=Object.create(c.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var u=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return u},set:function(e){u=e},enumerable:true,configurable:true});var h=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(e){h=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return l.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return c.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}}))}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var f=e.open;e.open=open;function open(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$open(e,t,r,n);function go$open(e,t,r,n){return f(e,t,r,(function(i,s){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$open,[e,t,r,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}}))}}return e}function enqueue(e){u("ENQUEUE",e[0].name,e[1]);global[l].push(e)}function retry(){var e=global[l].shift();if(e){u("RETRY",e[0].name,e[1]);e[0].apply(null,e[1])}}},3086:(e,t,r)=>{var n=r(2781).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);n.call(this);var i=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var s=Object.keys(r);for(var o=0,a=s.length;o<a;o++){var l=s[o];this[l]=r[l]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){i._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,t){if(e){i.emit("error",e);i.readable=false;return}i.fd=t;i.emit("open",t);i._read()}))}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);n.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var i=Object.keys(r);for(var s=0,o=i.length;s<o;s++){var a=i[s];this[a]=r[a]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},263:(e,t,r)=>{var n=r(2057);var i=process.cwd;var s=null;var o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!s)s=i.call(process);return s};try{process.cwd()}catch(e){}var a=process.chdir;process.chdir=function(e){s=null;a.call(process,e)};e.exports=patch;function patch(e){if(n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,t,r,n){if(n)process.nextTick(n)};e.lchownSync=function(){}}if(o==="win32"){e.rename=function(t){return function(r,n,i){var s=Date.now();var o=0;t(r,n,(function CB(a){if(a&&(a.code==="EACCES"||a.code==="EPERM")&&Date.now()-s<6e4){setTimeout((function(){e.stat(n,(function(e,s){if(e&&e.code==="ENOENT")t(r,n,CB);else i(a)}))}),o);if(o<100)o+=10;return}if(i)i(a)}))}}(e.rename)}e.read=function(t){function read(r,n,i,s,o,a){var l;if(a&&typeof a==="function"){var c=0;l=function(u,h,f){if(u&&u.code==="EAGAIN"&&c<10){c++;return t.call(e,r,n,i,s,o,l)}a.apply(this,arguments)}}return t.call(e,r,n,i,s,o,l)}read.__proto__=t;return read}(e.read);e.readSync=function(t){return function(r,n,i,s,o){var a=0;while(true){try{return t.call(e,r,n,i,s,o)}catch(e){if(e.code==="EAGAIN"&&a<10){a++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,(function(t,n){if(t){if(i)i(t);return}e.fchmod(n,r,(function(t){e.close(n,(function(e){if(i)i(t||e)}))}))}))};e.lchmodSync=function(t,r){var i=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r);var s=true;var o;try{o=e.fchmodSync(i,r);s=false}finally{if(s){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return o}}function patchLutimes(e){if(n.hasOwnProperty("O_SYMLINK")){e.lutimes=function(t,r,i,s){e.open(t,n.O_SYMLINK,(function(t,n){if(t){if(s)s(t);return}e.futimes(n,r,i,(function(t){e.close(n,(function(e){if(s)s(t||e)}))}))}))};e.lutimesSync=function(t,r,i){var s=e.openSync(t,n.O_SYMLINK);var o;var a=true;try{o=e.futimesSync(s,r,i);a=false}finally{if(a){try{e.closeSync(s)}catch(e){}}else{e.closeSync(s)}}return o}}else{e.lutimes=function(e,t,r,n){if(n)process.nextTick(n)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,n,i){return t.call(e,r,n,(function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(r,n){try{return t.call(e,r,n)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,n,i,s){return t.call(e,r,n,i,(function(e){if(chownErOk(e))e=null;if(s)s.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,n,i){if(typeof n==="function"){i=n;n=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(i)i.apply(this,arguments)}return n?t.call(e,r,n,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,n){var i=n?t.call(e,r,n):t.call(e,r);if(i.uid<0)i.uid+=4294967296;if(i.gid<0)i.gid+=4294967296;return i}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},1077:(e,t,r)=>{"use strict";const n=r(2361);const i=r(2781);const s=r(665);const o=r(1576).StringDecoder;const a=Symbol("EOF");const l=Symbol("maybeEmitEnd");const c=Symbol("emittedEnd");const u=Symbol("emittingEnd");const h=Symbol("closed");const f=Symbol("read");const d=Symbol("flush");const p=Symbol("flushChunk");const _=Symbol("encoding");const m=Symbol("decoder");const y=Symbol("flowing");const v=Symbol("paused");const w=Symbol("resume");const g=Symbol("bufferLength");const b=Symbol("bufferPush");const S=Symbol("bufferShift");const E=Symbol("objectMode");const x=Symbol("destroyed");const R=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const O=R&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const k=R&&Symbol.iterator||Symbol("iterator not implemented");const isEndish=e=>e==="end"||e==="finish"||e==="prefinish";const isArrayBuffer=e=>e instanceof ArrayBuffer||typeof e==="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0;const isArrayBufferView=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e);e.exports=class Minipass extends i{constructor(e){super();this[y]=false;this[v]=false;this.pipes=new s;this.buffer=new s;this[E]=e&&e.objectMode||false;if(this[E])this[_]=null;else this[_]=e&&e.encoding||null;if(this[_]==="buffer")this[_]=null;this[m]=this[_]?new o(this[_]):null;this[a]=false;this[c]=false;this[u]=false;this[h]=false;this.writable=true;this.readable=true;this[g]=0;this[x]=false}get bufferLength(){return this[g]}get encoding(){return this[_]}set encoding(e){if(this[E])throw new Error("cannot set encoding in objectMode");if(this[_]&&e!==this[_]&&(this[m]&&this[m].lastNeed||this[g]))throw new Error("cannot change encoding");if(this[_]!==e){this[m]=e?new o(e):null;if(this.buffer.length)this.buffer=this.buffer.map((e=>this[m].write(e)))}this[_]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[E]}set objectMode(e){this[E]=this[E]||!!e}write(e,t,r){if(this[a])throw new Error("write after end");if(this[x]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof t==="function")r=t,t="utf8";if(!t)t="utf8";if(!this[E]&&!Buffer.isBuffer(e)){if(isArrayBufferView(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(isArrayBuffer(e))e=Buffer.from(e);else if(typeof e!=="string")this.objectMode=true}if(!this.objectMode&&!e.length){const e=this.flowing;if(this[g]!==0)this.emit("readable");if(r)r();return e}if(typeof e==="string"&&!this[E]&&!(t===this[_]&&!this[m].lastNeed)){e=Buffer.from(e,t)}if(Buffer.isBuffer(e)&&this[_])e=this[m].write(e);try{return this.flowing?(this.emit("data",e),this.flowing):(this[b](e),false)}finally{if(this[g]!==0)this.emit("readable");if(r)r()}}read(e){if(this[x])return null;try{if(this[g]===0||e===0||e>this[g])return null;if(this[E])e=null;if(this.buffer.length>1&&!this[E]){if(this.encoding)this.buffer=new s([Array.from(this.buffer).join("")]);else this.buffer=new s([Buffer.concat(Array.from(this.buffer),this[g])])}return this[f](e||null,this.buffer.head.value)}finally{this[l]()}}[f](e,t){if(e===t.length||e===null)this[S]();else{this.buffer.head.value=t.slice(e);t=t.slice(0,e);this[g]-=e}this.emit("data",t);if(!this.buffer.length&&!this[a])this.emit("drain");return t}end(e,t,r){if(typeof e==="function")r=e,e=null;if(typeof t==="function")r=t,t="utf8";if(e)this.write(e,t);if(r)this.once("end",r);this[a]=true;this.writable=false;if(this.flowing||!this[v])this[l]();return this}[w](){if(this[x])return;this[v]=false;this[y]=true;this.emit("resume");if(this.buffer.length)this[d]();else if(this[a])this[l]();else this.emit("drain")}resume(){return this[w]()}pause(){this[y]=false;this[v]=true}get destroyed(){return this[x]}get flowing(){return this[y]}get paused(){return this[v]}[b](e){if(this[E])this[g]+=1;else this[g]+=e.length;return this.buffer.push(e)}[S](){if(this.buffer.length){if(this[E])this[g]-=1;else this[g]-=this.buffer.head.value.length}return this.buffer.shift()}[d](){do{}while(this[p](this[S]()));if(!this.buffer.length&&!this[a])this.emit("drain")}[p](e){return e?(this.emit("data",e),this.flowing):false}pipe(e,t){if(this[x])return;const r=this[c];t=t||{};if(e===process.stdout||e===process.stderr)t.end=false;else t.end=t.end!==false;const n={dest:e,opts:t,ondrain:e=>this[w]()};this.pipes.push(n);e.on("drain",n.ondrain);this[w]();if(r&&n.opts.end)n.dest.end();return e}addListener(e,t){return this.on(e,t)}on(e,t){try{return super.on(e,t)}finally{if(e==="data"&&!this.pipes.length&&!this.flowing)this[w]();else if(isEndish(e)&&this[c]){super.emit(e);this.removeAllListeners(e)}}}get emittedEnd(){return this[c]}[l](){if(!this[u]&&!this[c]&&!this[x]&&this.buffer.length===0&&this[a]){this[u]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[h])this.emit("close");this[u]=false}}emit(e,t){if(e!=="error"&&e!=="close"&&e!==x&&this[x])return;else if(e==="data"){if(!t)return;if(this.pipes.length)this.pipes.forEach((e=>e.dest.write(t)===false&&this.pause()))}else if(e==="end"){if(this[c]===true)return;this[c]=true;this.readable=false;if(this[m]){t=this[m].end();if(t){this.pipes.forEach((e=>e.dest.write(t)));super.emit("data",t)}}this.pipes.forEach((e=>{e.dest.removeListener("drain",e.ondrain);if(e.opts.end)e.dest.end()}))}else if(e==="close"){this[h]=true;if(!this[c]&&!this[x])return}const r=new Array(arguments.length);r[0]=e;r[1]=t;if(arguments.length>2){for(let e=2;e<arguments.length;e++){r[e]=arguments[e]}}try{return super.emit.apply(this,r)}finally{if(!isEndish(e))this[l]();else this.removeAllListeners(e)}}collect(){const e=[];if(!this[E])e.dataLength=0;const t=this.promise();this.on("data",(t=>{e.push(t);if(!this[E])e.dataLength+=t.length}));return t.then((()=>e))}concat(){return this[E]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then((e=>this[E]?Promise.reject(new Error("cannot concat in objectMode")):this[_]?e.join(""):Buffer.concat(e,e.dataLength)))}promise(){return new Promise(((e,t)=>{this.on(x,(()=>t(new Error("stream destroyed"))));this.on("end",(()=>e()));this.on("error",(e=>t(e)))}))}[O](){const next=()=>{const e=this.read();if(e!==null)return Promise.resolve({done:false,value:e});if(this[a])return Promise.resolve({done:true});let t=null;let r=null;const onerr=e=>{this.removeListener("data",ondata);this.removeListener("end",onend);r(e)};const ondata=e=>{this.removeListener("error",onerr);this.removeListener("end",onend);this.pause();t({value:e,done:!!this[a]})};const onend=()=>{this.removeListener("error",onerr);this.removeListener("data",ondata);t({done:true})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((e,n)=>{r=n;t=e;this.once(x,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next}}[k](){const next=()=>{const e=this.read();const t=e===null;return{value:e,done:t}};return{next:next}}destroy(e){if(this[x]){if(e)this.emit("error",e);else this.emit(x);return this}this[x]=true;this.buffer=new s;this[g]=0;if(typeof this.close==="function"&&!this[h])this.close();if(e)this.emit("error",e);else this.emit(x);return this}static isStream(e){return!!e&&(e instanceof Minipass||e instanceof i||e instanceof n&&(typeof e.pipe==="function"||typeof e.write==="function"&&typeof e.end==="function"))}}},6769:(e,t,r)=>{const n=r(9796).constants||{ZLIB_VERNUM:4736};e.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:Infinity,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},n))},3486:(e,t,r)=>{"use strict";const n=r(9491);const i=r(4300).Buffer;const s=r(9796);const o=t.constants=r(6769);const a=r(1077);const l=i.concat;const c=Symbol("_superWrite");class ZlibError extends Error{constructor(e){super("zlib: "+e.message);this.code=e.code;this.errno=e.errno;if(!this.code)this.code="ZLIB_ERROR";this.message="zlib: "+e.message;Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}}const u=Symbol("opts");const h=Symbol("flushFlag");const f=Symbol("finishFlushFlag");const d=Symbol("fullFlushFlag");const p=Symbol("handle");const _=Symbol("onError");const m=Symbol("sawError");const y=Symbol("level");const v=Symbol("strategy");const w=Symbol("ended");const g=Symbol("_defaultFullFlush");class ZlibBase extends a{constructor(e,t){if(!e||typeof e!=="object")throw new TypeError("invalid options for ZlibBase constructor");super(e);this[w]=false;this[u]=e;this[h]=e.flush;this[f]=e.finishFlush;try{this[p]=new s[t](e)}catch(e){throw new ZlibError(e)}this[_]=e=>{this[m]=true;this.close();this.emit("error",e)};this[p].on("error",(e=>this[_](new ZlibError(e))));this.once("end",(()=>this.close))}close(){if(this[p]){this[p].close();this[p]=null;this.emit("close")}}reset(){if(!this[m]){n(this[p],"zlib binding closed");return this[p].reset()}}flush(e){if(this.ended)return;if(typeof e!=="number")e=this[d];this.write(Object.assign(i.alloc(0),{[h]:e}))}end(e,t,r){if(e)this.write(e,t);this.flush(this[f]);this[w]=true;return super.end(null,null,r)}get ended(){return this[w]}write(e,t,r){if(typeof t==="function")r=t,t="utf8";if(typeof e==="string")e=i.from(e,t);if(this[m])return;n(this[p],"zlib binding closed");const s=this[p]._handle;const o=s.close;s.close=()=>{};const a=this[p].close;this[p].close=()=>{};i.concat=e=>e;let u;try{const t=typeof e[h]==="number"?e[h]:this[h];u=this[p]._processChunk(e,t);i.concat=l}catch(e){i.concat=l;this[_](new ZlibError(e))}finally{if(this[p]){this[p]._handle=s;s.close=o;this[p].close=a;this[p].removeAllListeners("error")}}let f;if(u){if(Array.isArray(u)&&u.length>0){f=this[c](i.from(u[0]));for(let e=1;e<u.length;e++){f=this[c](u[e])}}else{f=this[c](i.from(u))}}if(r)r();return f}[c](e){return super.write(e)}}class Zlib extends ZlibBase{constructor(e,t){e=e||{};e.flush=e.flush||o.Z_NO_FLUSH;e.finishFlush=e.finishFlush||o.Z_FINISH;super(e,t);this[d]=o.Z_FULL_FLUSH;this[y]=e.level;this[v]=e.strategy}params(e,t){if(this[m])return;if(!this[p])throw new Error("cannot switch params when binding is closed");if(!this[p].params)throw new Error("not supported in this implementation");if(this[y]!==e||this[v]!==t){this.flush(o.Z_SYNC_FLUSH);n(this[p],"zlib binding closed");const r=this[p].flush;this[p].flush=(e,t)=>{this.flush(e);t()};try{this[p].params(e,t)}finally{this[p].flush=r}if(this[p]){this[y]=e;this[v]=t}}}}class Deflate extends Zlib{constructor(e){super(e,"Deflate")}}class Inflate extends Zlib{constructor(e){super(e,"Inflate")}}const b=Symbol("_portable");class Gzip extends Zlib{constructor(e){super(e,"Gzip");this[b]=e&&!!e.portable}[c](e){if(!this[b])return super[c](e);this[b]=false;e[9]=255;return super[c](e)}}class Gunzip extends Zlib{constructor(e){super(e,"Gunzip")}}class DeflateRaw extends Zlib{constructor(e){super(e,"DeflateRaw")}}class InflateRaw extends Zlib{constructor(e){super(e,"InflateRaw")}}class Unzip extends Zlib{constructor(e){super(e,"Unzip")}}class Brotli extends ZlibBase{constructor(e,t){e=e||{};e.flush=e.flush||o.BROTLI_OPERATION_PROCESS;e.finishFlush=e.finishFlush||o.BROTLI_OPERATION_FINISH;super(e,t);this[d]=o.BROTLI_OPERATION_FLUSH}}class BrotliCompress extends Brotli{constructor(e){super(e,"BrotliCompress")}}class BrotliDecompress extends Brotli{constructor(e){super(e,"BrotliDecompress")}}t.Deflate=Deflate;t.Inflate=Inflate;t.Gzip=Gzip;t.Gunzip=Gunzip;t.DeflateRaw=DeflateRaw;t.InflateRaw=InflateRaw;t.Unzip=Unzip;if(typeof s.BrotliCompress==="function"){t.BrotliCompress=BrotliCompress;t.BrotliDecompress=BrotliDecompress}else{t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}},6186:(e,t,r)=>{const n=r(2853);const i=r(2930);const{mkdirpNative:s,mkdirpNativeSync:o}=r(4983);const{mkdirpManual:a,mkdirpManualSync:l}=r(356);const{useNative:c,useNativeSync:u}=r(4518);const mkdirp=(e,t)=>{e=i(e);t=n(t);return c(t)?s(e,t):a(e,t)};const mkdirpSync=(e,t)=>{e=i(e);t=n(t);return u(t)?o(e,t):l(e,t)};mkdirp.sync=mkdirpSync;mkdirp.native=(e,t)=>s(i(e),n(t));mkdirp.manual=(e,t)=>a(i(e),n(t));mkdirp.nativeSync=(e,t)=>o(i(e),n(t));mkdirp.manualSync=(e,t)=>l(i(e),n(t));e.exports=mkdirp},4992:(e,t,r)=>{const{dirname:n}=r(1017);const findMade=(e,t,r=undefined)=>{if(r===t)return Promise.resolve();return e.statAsync(t).then((e=>e.isDirectory()?r:undefined),(r=>r.code==="ENOENT"?findMade(e,n(t),t):undefined))};const findMadeSync=(e,t,r=undefined)=>{if(r===t)return undefined;try{return e.statSync(t).isDirectory()?r:undefined}catch(r){return r.code==="ENOENT"?findMadeSync(e,n(t),t):undefined}};e.exports={findMade:findMade,findMadeSync:findMadeSync}},356:(e,t,r)=>{const{dirname:n}=r(1017);const mkdirpManual=(e,t,r)=>{t.recursive=false;const i=n(e);if(i===e){return t.mkdirAsync(e,t).catch((e=>{if(e.code!=="EISDIR")throw e}))}return t.mkdirAsync(e,t).then((()=>r||e),(n=>{if(n.code==="ENOENT")return mkdirpManual(i,t).then((r=>mkdirpManual(e,t,r)));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;return t.statAsync(e).then((e=>{if(e.isDirectory())return r;else throw n}),(()=>{throw n}))}))};const mkdirpManualSync=(e,t,r)=>{const i=n(e);t.recursive=false;if(i===e){try{return t.mkdirSync(e,t)}catch(e){if(e.code!=="EISDIR")throw e;else return}}try{t.mkdirSync(e,t);return r||e}catch(n){if(n.code==="ENOENT")return mkdirpManualSync(e,t,mkdirpManualSync(i,t,r));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!t.statSync(e).isDirectory())throw n}catch(e){throw n}}};e.exports={mkdirpManual:mkdirpManual,mkdirpManualSync:mkdirpManualSync}},4983:(e,t,r)=>{const{dirname:n}=r(1017);const{findMade:i,findMadeSync:s}=r(4992);const{mkdirpManual:o,mkdirpManualSync:a}=r(356);const mkdirpNative=(e,t)=>{t.recursive=true;const r=n(e);if(r===e)return t.mkdirAsync(e,t);return i(t,e).then((r=>t.mkdirAsync(e,t).then((()=>r)).catch((r=>{if(r.code==="ENOENT")return o(e,t);else throw r}))))};const mkdirpNativeSync=(e,t)=>{t.recursive=true;const r=n(e);if(r===e)return t.mkdirSync(e,t);const i=s(t,e);try{t.mkdirSync(e,t);return i}catch(r){if(r.code==="ENOENT")return a(e,t);else throw r}};e.exports={mkdirpNative:mkdirpNative,mkdirpNativeSync:mkdirpNativeSync}},2853:(e,t,r)=>{const{promisify:n}=r(3837);const i=r(7147);const optsArg=e=>{if(!e)e={mode:511&~process.umask(),fs:i};else if(typeof e==="object")e={mode:511&~process.umask(),fs:i,...e};else if(typeof e==="number")e={mode:e,fs:i};else if(typeof e==="string")e={mode:parseInt(e,8),fs:i};else throw new TypeError("invalid options argument");e.mkdir=e.mkdir||e.fs.mkdir||i.mkdir;e.mkdirAsync=n(e.mkdir);e.stat=e.stat||e.fs.stat||i.stat;e.statAsync=n(e.stat);e.statSync=e.statSync||e.fs.statSync||i.statSync;e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||i.mkdirSync;return e};e.exports=optsArg},2930:(e,t,r)=>{const n=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform;const{resolve:i,parse:s}=r(1017);const pathArg=e=>{if(/\0/.test(e)){throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"})}e=i(e);if(n==="win32"){const t=/[*|"<>?:]/;const{root:r}=s(e);if(t.test(e.substr(r.length))){throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}}return e};e.exports=pathArg},4518:(e,t,r)=>{const n=r(7147);const i=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version;const s=i.replace(/^v/,"").split(".");const o=+s[0]>10||+s[0]===10&&+s[1]>=12;const a=!o?()=>false:e=>e.mkdir===n.mkdir;const l=!o?()=>false:e=>e.mkdirSync===n.mkdirSync;e.exports={useNative:a,useNativeSync:l}},4833:e=>{e.exports=Pend;function Pend(){this.pending=0;this.max=Infinity;this.listeners=[];this.waiting=[];this.error=null}Pend.prototype.go=function(e){if(this.pending<this.max){pendGo(this,e)}else{this.waiting.push(e)}};Pend.prototype.wait=function(e){if(this.pending===0){e(this.error)}else{this.listeners.push(e)}};Pend.prototype.hold=function(){return pendHold(this)};function pendHold(e){e.pending+=1;var t=false;return onCb;function onCb(r){if(t)throw new Error("callback called twice");t=true;e.error=e.error||r;e.pending-=1;if(e.waiting.length>0&&e.pending<e.max){pendGo(e,e.waiting.shift())}else if(e.pending===0){var n=e.listeners;e.listeners=[];n.forEach(cbListener)}}function cbListener(t){t(e.error)}}function pendGo(e,t){t(pendHold(e))}},4674:(e,t,r)=>{"use strict";var n;n=r(4016);n=r(5923);n=r(1525);n=r(4404);n=r(5317);r(7900);r(7628);t.Parse=r(8917);r(8116);r(5450);r(6043);r(7996);r(4173)},4016:(e,t,r)=>{"use strict";const n=r(5274);const i=r(7900);const s=r(7147);const o=r(7714);const a=r(1525);const l=r(1017);const c=e.exports=(e,t,r)=>{if(typeof t==="function")r=t;if(Array.isArray(e))t=e,e={};if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);const i=n(e);if(i.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r==="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?createFileSync(i,t):i.file?createFile(i,t,r):i.sync?createSync(i,t):create(i,t)};const createFileSync=(e,t)=>{const r=new i.Sync(e);const n=new o.WriteStreamSync(e.file,{mode:e.mode||438});r.pipe(n);addFilesSync(r,t)};const createFile=(e,t,r)=>{const n=new i(e);const s=new o.WriteStream(e.file,{mode:e.mode||438});n.pipe(s);const a=new Promise(((e,t)=>{s.on("error",t);s.on("close",e);n.on("error",t)}));addFilesAsync(n,t);return r?a.then(r,r):a};const addFilesSync=(e,t)=>{t.forEach((t=>{if(t.charAt(0)==="@")a({file:l.resolve(e.cwd,t.substr(1)),sync:true,noResume:true,onentry:t=>e.add(t)});else e.add(t)}));e.end()};const addFilesAsync=(e,t)=>{while(t.length){const r=t.shift();if(r.charAt(0)==="@")return a({file:l.resolve(e.cwd,r.substr(1)),noResume:true,onentry:t=>e.add(t)}).then((r=>addFilesAsync(e,t)));else e.add(r)}e.end()};const createSync=(e,t)=>{const r=new i.Sync(e);addFilesSync(r,t);return r};const create=(e,t)=>{const r=new i(e);addFilesAsync(r,t);return r}},5317:(e,t,r)=>{"use strict";const n=r(5274);const i=r(7628);const s=r(7147);const o=r(7714);const a=r(1017);const l=e.exports=(e,t,r)=>{if(typeof e==="function")r=e,t=null,e={};else if(Array.isArray(e))t=e,e={};if(typeof t==="function")r=t,t=null;if(!t)t=[];else t=Array.from(t);const i=n(e);if(i.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r==="function")throw new TypeError("callback only supported with file option");if(t.length)filesFilter(i,t);return i.file&&i.sync?extractFileSync(i):i.file?extractFile(i,r):i.sync?extractSync(i):extract(i)};const filesFilter=(e,t)=>{const r=new Map(t.map((e=>[e.replace(/\/+$/,""),true])));const n=e.filter;const mapHas=(e,t)=>{const n=t||a.parse(e).root||".";const i=e===n?false:r.has(e)?r.get(e):mapHas(a.dirname(e),n);r.set(e,i);return i};e.filter=n?(e,t)=>n(e,t)&&mapHas(e.replace(/\/+$/,"")):e=>mapHas(e.replace(/\/+$/,""))};const extractFileSync=e=>{const t=new i.Sync(e);const r=e.file;let n=true;let a;const l=s.statSync(r);const c=e.maxReadSize||16*1024*1024;const u=new o.ReadStreamSync(r,{readSize:c,size:l.size});u.pipe(t)};const extractFile=(e,t)=>{const r=new i(e);const n=e.maxReadSize||16*1024*1024;const a=e.file;const l=new Promise(((e,t)=>{r.on("error",t);r.on("close",e);s.stat(a,((e,i)=>{if(e)t(e);else{const e=new o.ReadStream(a,{readSize:n,size:i.size});e.on("error",t);e.pipe(r)}}))}));return t?l.then(t,t):l};const extractSync=e=>new i.Sync(e);const extract=e=>new i(e)},1172:(e,t,r)=>{const n=process.env.__FAKE_PLATFORM__||process.platform;const i=n==="win32";const s=global.__FAKE_TESTING_FS__||r(7147);const{O_CREAT:o,O_TRUNC:a,O_WRONLY:l,UV_FS_O_FILEMAP:c=0}=s.constants;const u=i&&!!c;const h=512*1024;const f=c|a|o|l;e.exports=!u?()=>"w":e=>e<h?f:"w"},6043:(e,t,r)=>{"use strict";const n=r(4173);const i=r(1017).posix;const s=r(2370);const o=Symbol("slurp");const a=Symbol("type");class Header{constructor(e,t,r,n){this.cksumValid=false;this.needPax=false;this.nullBlock=false;this.block=null;this.path=null;this.mode=null;this.uid=null;this.gid=null;this.size=null;this.mtime=null;this.cksum=null;this[a]="0";this.linkpath=null;this.uname=null;this.gname=null;this.devmaj=0;this.devmin=0;this.atime=null;this.ctime=null;if(Buffer.isBuffer(e))this.decode(e,t||0,r,n);else if(e)this.set(e)}decode(e,t,r,n){if(!t)t=0;if(!e||!(e.length>=t+512))throw new Error("need 512 bytes for header");this.path=decString(e,t,100);this.mode=decNumber(e,t+100,8);this.uid=decNumber(e,t+108,8);this.gid=decNumber(e,t+116,8);this.size=decNumber(e,t+124,12);this.mtime=decDate(e,t+136,12);this.cksum=decNumber(e,t+148,12);this[o](r);this[o](n,true);this[a]=decString(e,t+156,1);if(this[a]==="")this[a]="0";if(this[a]==="0"&&this.path.substr(-1)==="/")this[a]="5";if(this[a]==="5")this.size=0;this.linkpath=decString(e,t+157,100);if(e.slice(t+257,t+265).toString()==="ustar\x0000"){this.uname=decString(e,t+265,32);this.gname=decString(e,t+297,32);this.devmaj=decNumber(e,t+329,8);this.devmin=decNumber(e,t+337,8);if(e[t+475]!==0){const r=decString(e,t+345,155);this.path=r+"/"+this.path}else{const r=decString(e,t+345,130);if(r)this.path=r+"/"+this.path;this.atime=decDate(e,t+476,12);this.ctime=decDate(e,t+488,12)}}let i=8*32;for(let r=t;r<t+148;r++){i+=e[r]}for(let r=t+156;r<t+512;r++){i+=e[r]}this.cksumValid=i===this.cksum;if(this.cksum===null&&i===8*32)this.nullBlock=true}[o](e,t){for(let r in e){if(e[r]!==null&&e[r]!==undefined&&!(t&&r==="path"))this[r]=e[r]}}encode(e,t){if(!e){e=this.block=Buffer.alloc(512);t=0}if(!t)t=0;if(!(e.length>=t+512))throw new Error("need 512 bytes for header");const r=this.ctime||this.atime?130:155;const n=splitPrefix(this.path||"",r);const i=n[0];const s=n[1];this.needPax=n[2];this.needPax=encString(e,t,100,i)||this.needPax;this.needPax=encNumber(e,t+100,8,this.mode)||this.needPax;this.needPax=encNumber(e,t+108,8,this.uid)||this.needPax;this.needPax=encNumber(e,t+116,8,this.gid)||this.needPax;this.needPax=encNumber(e,t+124,12,this.size)||this.needPax;this.needPax=encDate(e,t+136,12,this.mtime)||this.needPax;e[t+156]=this[a].charCodeAt(0);this.needPax=encString(e,t+157,100,this.linkpath)||this.needPax;e.write("ustar\x0000",t+257,8);this.needPax=encString(e,t+265,32,this.uname)||this.needPax;this.needPax=encString(e,t+297,32,this.gname)||this.needPax;this.needPax=encNumber(e,t+329,8,this.devmaj)||this.needPax;this.needPax=encNumber(e,t+337,8,this.devmin)||this.needPax;this.needPax=encString(e,t+345,r,s)||this.needPax;if(e[t+475]!==0)this.needPax=encString(e,t+345,155,s)||this.needPax;else{this.needPax=encString(e,t+345,130,s)||this.needPax;this.needPax=encDate(e,t+476,12,this.atime)||this.needPax;this.needPax=encDate(e,t+488,12,this.ctime)||this.needPax}let o=8*32;for(let r=t;r<t+148;r++){o+=e[r]}for(let r=t+156;r<t+512;r++){o+=e[r]}this.cksum=o;encNumber(e,t+148,8,this.cksum);this.cksumValid=true;return this.needPax}set(e){for(let t in e){if(e[t]!==null&&e[t]!==undefined)this[t]=e[t]}}get type(){return n.name.get(this[a])||this[a]}get typeKey(){return this[a]}set type(e){if(n.code.has(e))this[a]=n.code.get(e);else this[a]=e}}const splitPrefix=(e,t)=>{const r=100;let n=e;let s="";let o;const a=i.parse(e).root||".";if(Buffer.byteLength(n)<r)o=[n,s,false];else{s=i.dirname(n);n=i.basename(n);do{if(Buffer.byteLength(n)<=r&&Buffer.byteLength(s)<=t)o=[n,s,false];else if(Buffer.byteLength(n)>r&&Buffer.byteLength(s)<=t)o=[n.substr(0,r-1),s,true];else{n=i.join(i.basename(s),n);s=i.dirname(s)}}while(s!==a&&!o);if(!o)o=[e.substr(0,r-1),"",true]}return o};const decString=(e,t,r)=>e.slice(t,t+r).toString("utf8").replace(/\0.*/,"");const decDate=(e,t,r)=>numToDate(decNumber(e,t,r));const numToDate=e=>e===null?null:new Date(e*1e3);const decNumber=(e,t,r)=>e[t]&128?s.parse(e.slice(t,t+r)):decSmallNumber(e,t,r);const nanNull=e=>isNaN(e)?null:e;const decSmallNumber=(e,t,r)=>nanNull(parseInt(e.slice(t,t+r).toString("utf8").replace(/\0.*$/,"").trim(),8));const l={12:8589934591,8:2097151};const encNumber=(e,t,r,n)=>n===null?false:n>l[r]||n<0?(s.encode(n,e.slice(t,t+r)),true):(encSmallNumber(e,t,r,n),false);const encSmallNumber=(e,t,r,n)=>e.write(octalString(n,r),t,r,"ascii");const octalString=(e,t)=>padOctal(Math.floor(e).toString(8),t);const padOctal=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0";const encDate=(e,t,r,n)=>n===null?false:encNumber(e,t,r,n.getTime()/1e3);const c=new Array(156).join("\0");const encString=(e,t,r,n)=>n===null?false:(e.write(n+c,t,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);e.exports=Header},5274:e=>{"use strict";const t=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);const r=e.exports=e=>e?Object.keys(e).map((r=>[t.has(r)?t.get(r):r,e[r]])).reduce(((e,t)=>(e[t[0]]=t[1],e)),Object.create(null)):{}},2370:(e,t)=>{"use strict";const r=t.encode=(e,t)=>{if(!Number.isSafeInteger(e))throw Error("cannot encode number outside of javascript safe integer range");else if(e<0)encodeNegative(e,t);else encodePositive(e,t);return t};const encodePositive=(e,t)=>{t[0]=128;for(var r=t.length;r>1;r--){t[r-1]=e&255;e=Math.floor(e/256)}};const encodeNegative=(e,t)=>{t[0]=255;var r=false;e=e*-1;for(var n=t.length;n>1;n--){var i=e&255;e=Math.floor(e/256);if(r)t[n-1]=onesComp(i);else if(i===0)t[n-1]=0;else{r=true;t[n-1]=twosComp(i)}}};const n=t.parse=e=>{var t=e[e.length-1];var r=e[0];var n;if(r===128)n=pos(e.slice(1,e.length));else if(r===255)n=twos(e);else throw Error("invalid base256 encoding");if(!Number.isSafeInteger(n))throw Error("parsed number outside of javascript safe integer range");return n};const twos=e=>{var t=e.length;var r=0;var n=false;for(var i=t-1;i>-1;i--){var s=e[i];var o;if(n)o=onesComp(s);else if(s===0)o=s;else{n=true;o=twosComp(s)}if(o!==0)r-=o*Math.pow(256,t-i-1)}return r};const pos=e=>{var t=e.length;var r=0;for(var n=t-1;n>-1;n--){var i=e[n];if(i!==0)r+=i*Math.pow(256,t-n-1)}return r};const onesComp=e=>(255^e)&255;const twosComp=e=>(255^e)+1&255},1525:(e,t,r)=>{"use strict";const n=r(5274);const i=r(8917);const s=r(7147);const o=r(7714);const a=r(1017);const l=e.exports=(e,t,r)=>{if(typeof e==="function")r=e,t=null,e={};else if(Array.isArray(e))t=e,e={};if(typeof t==="function")r=t,t=null;if(!t)t=[];else t=Array.from(t);const i=n(e);if(i.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r==="function")throw new TypeError("callback only supported with file option");if(t.length)filesFilter(i,t);if(!i.noResume)onentryFunction(i);return i.file&&i.sync?listFileSync(i):i.file?listFile(i,r):list(i)};const onentryFunction=e=>{const t=e.onentry;e.onentry=t?e=>{t(e);e.resume()}:e=>e.resume()};const filesFilter=(e,t)=>{const r=new Map(t.map((e=>[e.replace(/\/+$/,""),true])));const n=e.filter;const mapHas=(e,t)=>{const n=t||a.parse(e).root||".";const i=e===n?false:r.has(e)?r.get(e):mapHas(a.dirname(e),n);r.set(e,i);return i};e.filter=n?(e,t)=>n(e,t)&&mapHas(e.replace(/\/+$/,"")):e=>mapHas(e.replace(/\/+$/,""))};const listFileSync=e=>{const t=list(e);const r=e.file;let n=true;let i;try{const o=s.statSync(r);const a=e.maxReadSize||16*1024*1024;if(o.size<a){t.end(s.readFileSync(r))}else{let e=0;const n=Buffer.allocUnsafe(a);i=s.openSync(r,"r");while(e<o.size){let r=s.readSync(i,n,0,a,e);e+=r;t.write(n.slice(0,r))}t.end()}n=false}finally{if(n&&i)try{s.closeSync(i)}catch(e){}}};const listFile=(e,t)=>{const r=new i(e);const n=e.maxReadSize||16*1024*1024;const a=e.file;const l=new Promise(((e,t)=>{r.on("error",t);r.on("end",e);s.stat(a,((e,i)=>{if(e)t(e);else{const e=new o.ReadStream(a,{readSize:n,size:i.size});e.on("error",t);e.pipe(r)}}))}));return t?l.then(t,t):l};const list=e=>new i(e)},9624:(e,t,r)=>{"use strict";const n=r(6186);const i=r(7147);const s=r(1017);const o=r(9051);class SymlinkError extends Error{constructor(e,t){super("Cannot extract through symbolic link");this.path=t;this.symlink=e}get name(){return"SylinkError"}}class CwdError extends Error{constructor(e,t){super(t+": Cannot cd into '"+e+"'");this.path=e;this.code=t}get name(){return"CwdError"}}const a=e.exports=(e,t,r)=>{const a=t.umask;const l=t.mode|448;const c=(l&a)!==0;const u=t.uid;const h=t.gid;const f=typeof u==="number"&&typeof h==="number"&&(u!==t.processUid||h!==t.processGid);const d=t.preserve;const p=t.unlink;const _=t.cache;const m=t.cwd;const done=(t,n)=>{if(t)r(t);else{_.set(e,true);if(n&&f)o(n,u,h,(e=>done(e)));else if(c)i.chmod(e,l,r);else r()}};if(_&&_.get(e)===true)return done();if(e===m)return i.stat(e,((t,r)=>{if(t||!r.isDirectory())t=new CwdError(e,t&&t.code||"ENOTDIR");done(t)}));if(d)return n(e,{mode:l}).then((e=>done(null,e)),done);const y=s.relative(m,e);const v=y.split(/\/|\\/);mkdir_(m,v,l,_,p,m,null,done)};const mkdir_=(e,t,r,n,s,o,a,l)=>{if(!t.length)return l(null,a);const c=t.shift();const u=e+"/"+c;if(n.get(u))return mkdir_(u,t,r,n,s,o,a,l);i.mkdir(u,r,onmkdir(u,t,r,n,s,o,a,l))};const onmkdir=(e,t,r,n,o,a,l,c)=>u=>{if(u){if(u.path&&s.dirname(u.path)===a&&(u.code==="ENOTDIR"||u.code==="ENOENT"))return c(new CwdError(a,u.code));i.lstat(e,((s,h)=>{if(s)c(s);else if(h.isDirectory())mkdir_(e,t,r,n,o,a,l,c);else if(o)i.unlink(e,(s=>{if(s)return c(s);i.mkdir(e,r,onmkdir(e,t,r,n,o,a,l,c))}));else if(h.isSymbolicLink())return c(new SymlinkError(e,e+"/"+t.join("/")));else c(u)}))}else{l=l||e;mkdir_(e,t,r,n,o,a,l,c)}};const l=e.exports.sync=(e,t)=>{const r=t.umask;const a=t.mode|448;const l=(a&r)!==0;const c=t.uid;const u=t.gid;const h=typeof c==="number"&&typeof u==="number"&&(c!==t.processUid||u!==t.processGid);const f=t.preserve;const d=t.unlink;const p=t.cache;const _=t.cwd;const done=t=>{p.set(e,true);if(t&&h)o.sync(t,c,u);if(l)i.chmodSync(e,a)};if(p&&p.get(e)===true)return done();if(e===_){let t=false;let r="ENOTDIR";try{t=i.statSync(e).isDirectory()}catch(e){r=e.code}finally{if(!t)throw new CwdError(e,r)}done();return}if(f)return done(n.sync(e,a));const m=s.relative(_,e);const y=m.split(/\/|\\/);let v=null;for(let e=y.shift(),t=_;e&&(t+="/"+e);e=y.shift()){if(p.get(t))continue;try{i.mkdirSync(t,a);v=v||t;p.set(t,true)}catch(e){if(e.path&&s.dirname(e.path)===_&&(e.code==="ENOTDIR"||e.code==="ENOENT"))return new CwdError(_,e.code);const r=i.lstatSync(t);if(r.isDirectory()){p.set(t,true);continue}else if(d){i.unlinkSync(t);i.mkdirSync(t,a);v=v||t;p.set(t,true);continue}else if(r.isSymbolicLink())return new SymlinkError(t,t+"/"+y.join("/"))}}return done(v)}},8371:e=>{"use strict";e.exports=(e,t,r)=>{e&=4095;if(r){e=(e|384)&~18}if(t){if(e&256)e|=64;if(e&32)e|=8;if(e&4)e|=1}return e}},7900:(e,t,r)=>{"use strict";class PackJob{constructor(e,t){this.path=e||"./";this.absolute=t;this.entry=null;this.stat=null;this.readdir=null;this.pending=false;this.ignore=false;this.piped=false}}const n=r(1077);const i=r(3486);const s=r(8116);const o=r(5450);const a=o.Sync;const l=o.Tar;const c=r(665);const u=Buffer.alloc(1024);const h=Symbol("onStat");const f=Symbol("ended");const d=Symbol("queue");const p=Symbol("current");const _=Symbol("process");const m=Symbol("processing");const y=Symbol("processJob");const v=Symbol("jobs");const w=Symbol("jobDone");const g=Symbol("addFSEntry");const b=Symbol("addTarEntry");const S=Symbol("stat");const E=Symbol("readdir");const x=Symbol("onreaddir");const R=Symbol("pipe");const O=Symbol("entry");const k=Symbol("entryOpt");const N=Symbol("writeEntryClass");const A=Symbol("write");const I=Symbol("ondrain");const L=r(7147);const T=r(1017);const F=r(5899);const B=F(class Pack extends n{constructor(e){super(e);e=e||Object.create(null);this.opt=e;this.file=e.file||"";this.cwd=e.cwd||process.cwd();this.maxReadSize=e.maxReadSize;this.preservePaths=!!e.preservePaths;this.strict=!!e.strict;this.noPax=!!e.noPax;this.prefix=(e.prefix||"").replace(/(\\|\/)+$/,"");this.linkCache=e.linkCache||new Map;this.statCache=e.statCache||new Map;this.readdirCache=e.readdirCache||new Map;this[N]=o;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);this.portable=!!e.portable;this.zip=null;if(e.gzip){if(typeof e.gzip!=="object")e.gzip={};if(this.portable)e.gzip.portable=true;this.zip=new i.Gzip(e.gzip);this.zip.on("data",(e=>super.write(e)));this.zip.on("end",(e=>super.end()));this.zip.on("drain",(e=>this[I]()));this.on("resume",(e=>this.zip.resume()))}else this.on("drain",this[I]);this.noDirRecurse=!!e.noDirRecurse;this.follow=!!e.follow;this.noMtime=!!e.noMtime;this.mtime=e.mtime||null;this.filter=typeof e.filter==="function"?e.filter:e=>true;this[d]=new c;this[v]=0;this.jobs=+e.jobs||4;this[m]=false;this[f]=false}[A](e){return super.write(e)}add(e){this.write(e);return this}end(e){if(e)this.write(e);this[f]=true;this[_]();return this}write(e){if(this[f])throw new Error("write after end");if(e instanceof s)this[b](e);else this[g](e);return this.flowing}[b](e){const t=T.resolve(this.cwd,e.path);if(this.prefix)e.path=this.prefix+"/"+e.path.replace(/^\.(\/+|$)/,"");if(!this.filter(e.path,e))e.resume();else{const r=new PackJob(e.path,t,false);r.entry=new l(e,this[k](r));r.entry.on("end",(e=>this[w](r)));this[v]+=1;this[d].push(r)}this[_]()}[g](e){const t=T.resolve(this.cwd,e);if(this.prefix)e=this.prefix+"/"+e.replace(/^\.(\/+|$)/,"");this[d].push(new PackJob(e,t));this[_]()}[S](e){e.pending=true;this[v]+=1;const t=this.follow?"stat":"lstat";L[t](e.absolute,((t,r)=>{e.pending=false;this[v]-=1;if(t)this.emit("error",t);else this[h](e,r)}))}[h](e,t){this.statCache.set(e.absolute,t);e.stat=t;if(!this.filter(e.path,t))e.ignore=true;this[_]()}[E](e){e.pending=true;this[v]+=1;L.readdir(e.absolute,((t,r)=>{e.pending=false;this[v]-=1;if(t)return this.emit("error",t);this[x](e,r)}))}[x](e,t){this.readdirCache.set(e.absolute,t);e.readdir=t;this[_]()}[_](){if(this[m])return;this[m]=true;for(let e=this[d].head;e!==null&&this[v]<this.jobs;e=e.next){this[y](e.value);if(e.value.ignore){const t=e.next;this[d].removeNode(e);e.next=t}}this[m]=false;if(this[f]&&!this[d].length&&this[v]===0){if(this.zip)this.zip.end(u);else{super.write(u);super.end()}}}get[p](){return this[d]&&this[d].head&&this[d].head.value}[w](e){this[d].shift();this[v]-=1;this[_]()}[y](e){if(e.pending)return;if(e.entry){if(e===this[p]&&!e.piped)this[R](e);return}if(!e.stat){if(this.statCache.has(e.absolute))this[h](e,this.statCache.get(e.absolute));else this[S](e)}if(!e.stat)return;if(e.ignore)return;if(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir){if(this.readdirCache.has(e.absolute))this[x](e,this.readdirCache.get(e.absolute));else this[E](e);if(!e.readdir)return}e.entry=this[O](e);if(!e.entry){e.ignore=true;return}if(e===this[p]&&!e.piped)this[R](e)}[k](e){return{onwarn:(e,t,r)=>this.warn(e,t,r),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime}}[O](e){this[v]+=1;try{return new this[N](e.path,this[k](e)).on("end",(()=>this[w](e))).on("error",(e=>this.emit("error",e)))}catch(e){this.emit("error",e)}}[I](){if(this[p]&&this[p].entry)this[p].entry.resume()}[R](e){e.piped=true;if(e.readdir)e.readdir.forEach((t=>{const r=this.prefix?e.path.slice(this.prefix.length+1)||"./":e.path;const n=r==="./"?"":r.replace(/\/*$/,"/");this[g](n+t)}));const t=e.entry;const r=this.zip;if(r)t.on("data",(e=>{if(!r.write(e))t.pause()}));else t.on("data",(e=>{if(!super.write(e))t.pause()}))}pause(){if(this.zip)this.zip.pause();return super.pause()}});class PackSync extends B{constructor(e){super(e);this[N]=a}pause(){}resume(){}[S](e){const t=this.follow?"statSync":"lstatSync";this[h](e,L[t](e.absolute))}[E](e,t){this[x](e,L.readdirSync(e.absolute))}[R](e){const t=e.entry;const r=this.zip;if(e.readdir)e.readdir.forEach((t=>{const r=this.prefix?e.path.slice(this.prefix.length+1)||"./":e.path;const n=r==="./"?"":r.replace(/\/*$/,"/");this[g](n+t)}));if(r)t.on("data",(e=>{r.write(e)}));else t.on("data",(e=>{super[A](e)}))}}B.Sync=PackSync;e.exports=B},8917:(e,t,r)=>{"use strict";const n=r(5899);const i=r(1017);const s=r(6043);const o=r(2361);const a=r(665);const l=1024*1024;const c=r(8116);const u=r(7996);const h=r(3486);const f=Buffer.from([31,139]);const d=Symbol("state");const p=Symbol("writeEntry");const _=Symbol("readEntry");const m=Symbol("nextEntry");const y=Symbol("processEntry");const v=Symbol("extendedHeader");const w=Symbol("globalExtendedHeader");const g=Symbol("meta");const b=Symbol("emitMeta");const S=Symbol("buffer");const E=Symbol("queue");const x=Symbol("ended");const R=Symbol("emittedEnd");const O=Symbol("emit");const k=Symbol("unzip");const N=Symbol("consumeChunk");const A=Symbol("consumeChunkSub");const I=Symbol("consumeBody");const L=Symbol("consumeMeta");const T=Symbol("consumeHeader");const F=Symbol("consuming");const B=Symbol("bufferConcat");const C=Symbol("maybeEnd");const D=Symbol("writing");const M=Symbol("aborted");const z=Symbol("onDone");const P=Symbol("sawValidEntry");const U=Symbol("sawNullBlock");const W=Symbol("sawEOF");const noop=e=>true;e.exports=n(class Parser extends o{constructor(e){e=e||{};super(e);this.file=e.file||"";this[P]=null;this.on(z,(e=>{if(this[d]==="begin"||this[P]===false){this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}}));if(e.ondone)this.on(z,e.ondone);else this.on(z,(e=>{this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")}));this.strict=!!e.strict;this.maxMetaEntrySize=e.maxMetaEntrySize||l;this.filter=typeof e.filter==="function"?e.filter:noop;this.writable=true;this.readable=false;this[E]=new a;this[S]=null;this[_]=null;this[p]=null;this[d]="begin";this[g]="";this[v]=null;this[w]=null;this[x]=false;this[k]=null;this[M]=false;this[U]=false;this[W]=false;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);if(typeof e.onentry==="function")this.on("entry",e.onentry)}[T](e,t){if(this[P]===null)this[P]=false;let r;try{r=new s(e,t,this[v],this[w])}catch(e){return this.warn("TAR_ENTRY_INVALID",e)}if(r.nullBlock){if(this[U]){this[W]=true;if(this[d]==="begin")this[d]="header";this[O]("eof")}else{this[U]=true;this[O]("nullBlock")}}else{this[U]=false;if(!r.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:r});else if(!r.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:r});else{const e=r.type;if(/^(Symbolic)?Link$/.test(e)&&!r.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:r});else if(!/^(Symbolic)?Link$/.test(e)&&r.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:r});else{const e=this[p]=new c(r,this[v],this[w]);if(!this[P]){if(e.remain){const onend=()=>{if(!e.invalid)this[P]=true};e.on("end",onend)}else{this[P]=true}}if(e.meta){if(e.size>this.maxMetaEntrySize){e.ignore=true;this[O]("ignoredEntry",e);this[d]="ignore";e.resume()}else if(e.size>0){this[g]="";e.on("data",(e=>this[g]+=e));this[d]="meta"}}else{this[v]=null;e.ignore=e.ignore||!this.filter(e.path,e);if(e.ignore){this[O]("ignoredEntry",e);this[d]=e.remain?"ignore":"header";e.resume()}else{if(e.remain)this[d]="body";else{this[d]="header";e.end()}if(!this[_]){this[E].push(e);this[m]()}else this[E].push(e)}}}}}}[y](e){let t=true;if(!e){this[_]=null;t=false}else if(Array.isArray(e))this.emit.apply(this,e);else{this[_]=e;this.emit("entry",e);if(!e.emittedEnd){e.on("end",(e=>this[m]()));t=false}}return t}[m](){do{}while(this[y](this[E].shift()));if(!this[E].length){const e=this[_];const t=!e||e.flowing||e.size===e.remain;if(t){if(!this[D])this.emit("drain")}else e.once("drain",(e=>this.emit("drain")))}}[I](e,t){const r=this[p];const n=r.blockRemain;const i=n>=e.length&&t===0?e:e.slice(t,t+n);r.write(i);if(!r.blockRemain){this[d]="header";this[p]=null;r.end()}return i.length}[L](e,t){const r=this[p];const n=this[I](e,t);if(!this[p])this[b](r);return n}[O](e,t,r){if(!this[E].length&&!this[_])this.emit(e,t,r);else this[E].push([e,t,r])}[b](e){this[O]("meta",this[g]);switch(e.type){case"ExtendedHeader":case"OldExtendedHeader":this[v]=u.parse(this[g],this[v],false);break;case"GlobalExtendedHeader":this[w]=u.parse(this[g],this[w],true);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[v]=this[v]||Object.create(null);this[v].path=this[g].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[v]=this[v]||Object.create(null);this[v].linkpath=this[g].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[M]=true;this.emit("abort",e);this.warn("TAR_ABORT",e,{recoverable:false})}write(e){if(this[M])return;if(this[k]===null&&e){if(this[S]){e=Buffer.concat([this[S],e]);this[S]=null}if(e.length<f.length){this[S]=e;return true}for(let t=0;this[k]===null&&t<f.length;t++){if(e[t]!==f[t])this[k]=false}if(this[k]===null){const t=this[x];this[x]=false;this[k]=new h.Unzip;this[k].on("data",(e=>this[N](e)));this[k].on("error",(e=>this.abort(e)));this[k].on("end",(e=>{this[x]=true;this[N]()}));this[D]=true;const r=this[k][t?"end":"write"](e);this[D]=false;return r}}this[D]=true;if(this[k])this[k].write(e);else this[N](e);this[D]=false;const t=this[E].length?false:this[_]?this[_].flowing:true;if(!t&&!this[E].length)this[_].once("drain",(e=>this.emit("drain")));return t}[B](e){if(e&&!this[M])this[S]=this[S]?Buffer.concat([this[S],e]):e}[C](){if(this[x]&&!this[R]&&!this[M]&&!this[F]){this[R]=true;const e=this[p];if(e&&e.blockRemain){const t=this[S]?this[S].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${t} available)`,{entry:e});if(this[S])e.write(this[S]);e.end()}this[O](z)}}[N](e){if(this[F])this[B](e);else if(!e&&!this[S])this[C]();else{this[F]=true;if(this[S]){this[B](e);const t=this[S];this[S]=null;this[A](t)}else{this[A](e)}while(this[S]&&this[S].length>=512&&!this[M]&&!this[W]){const e=this[S];this[S]=null;this[A](e)}this[F]=false}if(!this[S]||this[x])this[C]()}[A](e){let t=0;let r=e.length;while(t+512<=r&&!this[M]&&!this[W]){switch(this[d]){case"begin":case"header":this[T](e,t);t+=512;break;case"ignore":case"body":t+=this[I](e,t);break;case"meta":t+=this[L](e,t);break;default:throw new Error("invalid state: "+this[d])}}if(t<r){if(this[S])this[S]=Buffer.concat([e.slice(t),this[S]]);else this[S]=e.slice(t)}}end(e){if(!this[M]){if(this[k])this[k].end(e);else{this[x]=true;this.write(e)}}}})},9587:(e,t,r)=>{const n=r(9491);e.exports=()=>{const e=new Map;const t=new Map;const{join:i}=r(1017);const getDirs=e=>i(e).split(/[\\\/]/).slice(0,-1).reduce(((e,t)=>e.length?e.concat(i(e[e.length-1],t)):[t]),[]);const s=new Set;const getQueues=r=>{const n=t.get(r);if(!n)throw new Error("function does not have any path reservations");return{paths:n.paths.map((t=>e.get(t))),dirs:[...n.dirs].map((t=>e.get(t)))}};const check=e=>{const{paths:t,dirs:r}=getQueues(e);return t.every((t=>t[0]===e))&&r.every((t=>t[0]instanceof Set&&t[0].has(e)))};const run=e=>{if(s.has(e)||!check(e))return false;s.add(e);e((()=>clear(e)));return true};const clear=r=>{if(!s.has(r))return false;const{paths:i,dirs:o}=t.get(r);const a=new Set;i.forEach((t=>{const i=e.get(t);n.equal(i[0],r);if(i.length===1)e.delete(t);else{i.shift();if(typeof i[0]==="function")a.add(i[0]);else i[0].forEach((e=>a.add(e)))}}));o.forEach((t=>{const i=e.get(t);n(i[0]instanceof Set);if(i[0].size===1&&i.length===1){e.delete(t)}else if(i[0].size===1){i.shift();a.add(i[0])}else i[0].delete(r)}));s.delete(r);a.forEach((e=>run(e)));return true};const reserve=(r,n)=>{const i=new Set(r.map((e=>getDirs(e))).reduce(((e,t)=>e.concat(t))));t.set(n,{dirs:i,paths:r});r.forEach((t=>{const r=e.get(t);if(!r)e.set(t,[n]);else r.push(n)}));i.forEach((t=>{const r=e.get(t);if(!r)e.set(t,[new Set([n])]);else if(r[r.length-1]instanceof Set)r[r.length-1].add(n);else r.push(new Set([n]))}));return run(n)};return{check:check,reserve:reserve}}},7996:(e,t,r)=>{"use strict";const n=r(6043);const i=r(1017);class Pax{constructor(e,t){this.atime=e.atime||null;this.charset=e.charset||null;this.comment=e.comment||null;this.ctime=e.ctime||null;this.gid=e.gid||null;this.gname=e.gname||null;this.linkpath=e.linkpath||null;this.mtime=e.mtime||null;this.path=e.path||null;this.size=e.size||null;this.uid=e.uid||null;this.uname=e.uname||null;this.dev=e.dev||null;this.ino=e.ino||null;this.nlink=e.nlink||null;this.global=t||false}encode(){const e=this.encodeBody();if(e==="")return null;const t=Buffer.byteLength(e);const r=512*Math.ceil(1+t/512);const s=Buffer.allocUnsafe(r);for(let e=0;e<512;e++){s[e]=0}new n({path:("PaxHeader/"+i.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:t,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(s);s.write(e,512,t,"utf8");for(let e=t+512;e<s.length;e++){s[e]=0}return s}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===undefined)return"";const t=this[e]instanceof Date?this[e].getTime()/1e3:this[e];const r=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+t+"\n";const n=Buffer.byteLength(r);let i=Math.floor(Math.log(n)/Math.log(10))+1;if(n+i>=Math.pow(10,i))i+=1;const s=i+n;return s+r}}Pax.parse=(e,t,r)=>new Pax(merge(parseKV(e),t),r);const merge=(e,t)=>t?Object.keys(e).reduce(((t,r)=>(t[r]=e[r],t)),t):e;const parseKV=e=>e.replace(/\n$/,"").split("\n").reduce(parseKVLine,Object.create(null));const parseKVLine=(e,t)=>{const r=parseInt(t,10);if(r!==Buffer.byteLength(t)+1)return e;t=t.substr((r+" ").length);const n=t.split("=");const i=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return e;const s=n.join("=");e[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s;return e};e.exports=Pax},8116:(e,t,r)=>{"use strict";const n=r(4173);const i=r(1077);const s=Symbol("slurp");e.exports=class ReadEntry extends i{constructor(e,t,r){super();this.pause();this.extended=t;this.globalExtended=r;this.header=e;this.startBlockSize=512*Math.ceil(e.size/512);this.blockRemain=this.startBlockSize;this.remain=e.size;this.type=e.type;this.meta=false;this.ignore=false;switch(this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=true;break;default:this.ignore=true}this.path=e.path;this.mode=e.mode;if(this.mode)this.mode=this.mode&4095;this.uid=e.uid;this.gid=e.gid;this.uname=e.uname;this.gname=e.gname;this.size=e.size;this.mtime=e.mtime;this.atime=e.atime;this.ctime=e.ctime;this.linkpath=e.linkpath;this.uname=e.uname;this.gname=e.gname;if(t)this[s](t);if(r)this[s](r,true)}write(e){const t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");const r=this.remain;const n=this.blockRemain;this.remain=Math.max(0,r-t);this.blockRemain=Math.max(0,n-t);if(this.ignore)return true;if(r>=t)return super.write(e);return super.write(e.slice(0,r))}[s](e,t){for(let r in e){if(e[r]!==null&&e[r]!==undefined&&!(t&&r==="path"))this[r]=e[r]}}}},5923:(e,t,r)=>{"use strict";const n=r(5274);const i=r(7900);const s=r(8917);const o=r(7147);const a=r(7714);const l=r(1525);const c=r(1017);const u=r(6043);const h=e.exports=(e,t,r)=>{const i=n(e);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);return i.sync?replaceSync(i,t):replace(i,t,r)};const replaceSync=(e,t)=>{const r=new i.Sync(e);let n=true;let s;let a;try{try{s=o.openSync(e.file,"r+")}catch(t){if(t.code==="ENOENT")s=o.openSync(e.file,"w+");else throw t}const i=o.fstatSync(s);const l=Buffer.alloc(512);e:for(a=0;a<i.size;a+=512){for(let e=0,t=0;e<512;e+=t){t=o.readSync(s,l,e,l.length-e,a+e);if(a===0&&l[0]===31&&l[1]===139)throw new Error("cannot append to compressed archives");if(!t)break e}let t=new u(l);if(!t.cksumValid)break;let r=512*Math.ceil(t.size/512);if(a+r+512>i.size)break;a+=r;if(e.mtimeCache)e.mtimeCache.set(t.path,t.mtime)}n=false;streamSync(e,r,a,s,t)}finally{if(n)try{o.closeSync(s)}catch(e){}}};const streamSync=(e,t,r,n,i)=>{const s=new a.WriteStreamSync(e.file,{fd:n,start:r});t.pipe(s);addFilesSync(t,i)};const replace=(e,t,r)=>{t=Array.from(t);const n=new i(e);const getPos=(t,r,n)=>{const cb=(e,r)=>{if(e)o.close(t,(t=>n(e)));else n(null,r)};let i=0;if(r===0)return cb(null,0);let s=0;const a=Buffer.alloc(512);const onread=(n,l)=>{if(n)return cb(n);s+=l;if(s<512&&l)return o.read(t,a,s,a.length-s,i+s,onread);if(i===0&&a[0]===31&&a[1]===139)return cb(new Error("cannot append to compressed archives"));if(s<512)return cb(null,i);const c=new u(a);if(!c.cksumValid)return cb(null,i);const h=512*Math.ceil(c.size/512);if(i+h+512>r)return cb(null,i);i+=h+512;if(i>=r)return cb(null,i);if(e.mtimeCache)e.mtimeCache.set(c.path,c.mtime);s=0;o.read(t,a,0,512,i,onread)};o.read(t,a,0,512,i,onread)};const s=new Promise(((r,i)=>{n.on("error",i);let s="r+";const onopen=(l,c)=>{if(l&&l.code==="ENOENT"&&s==="r+"){s="w+";return o.open(e.file,s,onopen)}if(l)return i(l);o.fstat(c,((s,o)=>{if(s)return i(s);getPos(c,o.size,((s,o)=>{if(s)return i(s);const l=new a.WriteStream(e.file,{fd:c,start:o});n.pipe(l);l.on("error",i);l.on("close",r);addFilesAsync(n,t)}))}))};o.open(e.file,s,onopen)}));return r?s.then(r,r):s};const addFilesSync=(e,t)=>{t.forEach((t=>{if(t.charAt(0)==="@")l({file:c.resolve(e.cwd,t.substr(1)),sync:true,noResume:true,onentry:t=>e.add(t)});else e.add(t)}));e.end()};const addFilesAsync=(e,t)=>{while(t.length){const r=t.shift();if(r.charAt(0)==="@")return l({file:c.resolve(e.cwd,r.substr(1)),noResume:true,onentry:t=>e.add(t)}).then((r=>addFilesAsync(e,t)));else e.add(r)}e.end()}},4173:(e,t)=>{"use strict";t.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);t.code=new Map(Array.from(t.name).map((e=>[e[1],e[0]])))},7628:(e,t,r)=>{"use strict";const n=r(9491);const i=r(2361).EventEmitter;const s=r(8917);const o=r(7147);const a=r(7714);const l=r(1017);const c=r(9624);const u=c.sync;const h=r(4808);const f=r(9587);const d=Symbol("onEntry");const p=Symbol("checkFs");const _=Symbol("checkFs2");const m=Symbol("isReusable");const y=Symbol("makeFs");const v=Symbol("file");const w=Symbol("directory");const g=Symbol("link");const b=Symbol("symlink");const S=Symbol("hardlink");const E=Symbol("unsupported");const x=Symbol("unknown");const R=Symbol("checkPath");const O=Symbol("mkdir");const k=Symbol("onError");const N=Symbol("pending");const A=Symbol("pend");const I=Symbol("unpend");const L=Symbol("ended");const T=Symbol("maybeClose");const F=Symbol("skip");const B=Symbol("doChown");const C=Symbol("uid");const D=Symbol("gid");const M=r(6113);const z=r(1172);const neverCalled=()=>{throw new Error("sync function called cb somehow?!?")};const unlinkFile=(e,t)=>{if(process.platform!=="win32")return o.unlink(e,t);const r=e+".DELETE."+M.randomBytes(16).toString("hex");o.rename(e,r,(e=>{if(e)return t(e);o.unlink(r,t)}))};const unlinkFileSync=e=>{if(process.platform!=="win32")return o.unlinkSync(e);const t=e+".DELETE."+M.randomBytes(16).toString("hex");o.renameSync(e,t);o.unlinkSync(t)};const uint32=(e,t,r)=>e===e>>>0?e:t===t>>>0?t:r;class Unpack extends s{constructor(e){if(!e)e={};e.ondone=e=>{this[L]=true;this[T]()};super(e);this.reservations=f();this.transform=typeof e.transform==="function"?e.transform:null;this.writable=true;this.readable=false;this[N]=0;this[L]=false;this.dirCache=e.dirCache||new Map;if(typeof e.uid==="number"||typeof e.gid==="number"){if(typeof e.uid!=="number"||typeof e.gid!=="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid;this.gid=e.gid;this.setOwner=true}else{this.uid=null;this.gid=null;this.setOwner=false}if(e.preserveOwner===undefined&&typeof e.uid!=="number")this.preserveOwner=process.getuid&&process.getuid()===0;else this.preserveOwner=!!e.preserveOwner;this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null;this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null;this.forceChown=e.forceChown===true;this.win32=!!e.win32||process.platform==="win32";this.newer=!!e.newer;this.keep=!!e.keep;this.noMtime=!!e.noMtime;this.preservePaths=!!e.preservePaths;this.unlink=!!e.unlink;this.cwd=l.resolve(e.cwd||process.cwd());this.strip=+e.strip||0;this.processUmask=process.umask();this.umask=typeof e.umask==="number"?e.umask:this.processUmask;this.dmode=e.dmode||511&~this.umask;this.fmode=e.fmode||438&~this.umask;this.on("entry",(e=>this[d](e)))}warn(e,t,r={}){if(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")r.recoverable=false;return super.warn(e,t,r)}[T](){if(this[L]&&this[N]===0){this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")}}[R](e){if(this.strip){const t=e.path.split(/\/|\\/);if(t.length<this.strip)return false;e.path=t.slice(this.strip).join("/");if(e.type==="Link"){const t=e.linkpath.split(/\/|\\/);if(t.length>=this.strip)e.linkpath=t.slice(this.strip).join("/")}}if(!this.preservePaths){const t=e.path;if(t.match(/(^|\/|\\)\.\.(\\|\/|$)/)){this.warn("TAR_ENTRY_ERROR",`path contains '..'`,{entry:e,path:t});return false}if(l.win32.isAbsolute(t)){const r=l.win32.parse(t);e.path=t.substr(r.root.length);const n=r.root;this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:t})}}if(this.win32){const t=l.win32.parse(e.path);e.path=t.root===""?h.encode(e.path):t.root+h.encode(e.path.substr(t.root.length))}if(l.isAbsolute(e.path))e.absolute=e.path;else e.absolute=l.resolve(this.cwd,e.path);return true}[d](e){if(!this[R](e))return e.resume();n.equal(typeof e.absolute,"string");switch(e.type){case"Directory":case"GNUDumpDir":if(e.mode)e.mode=e.mode|448;case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[p](e);case"CharacterDevice":case"BlockDevice":case"FIFO":return this[E](e)}}[k](e,t){if(e.name==="CwdError")this.emit("error",e);else{this.warn("TAR_ENTRY_ERROR",e,{entry:t});this[I]();t.resume()}}[O](e,t,r){c(e,{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t},r)}[B](e){return this.forceChown||this.preserveOwner&&(typeof e.uid==="number"&&e.uid!==this.processUid||typeof e.gid==="number"&&e.gid!==this.processGid)||(typeof this.uid==="number"&&this.uid!==this.processUid||typeof this.gid==="number"&&this.gid!==this.processGid)}[C](e){return uint32(this.uid,e.uid,this.processUid)}[D](e){return uint32(this.gid,e.gid,this.processGid)}[v](e,t){const r=e.mode&4095||this.fmode;const n=new a.WriteStream(e.absolute,{flags:z(e.size),mode:r,autoClose:false});n.on("error",(t=>this[k](t,e)));let i=1;const done=r=>{if(r)return this[k](r,e);if(--i===0){o.close(n.fd,(r=>{t();r?this[k](r,e):this[I]()}))}};n.on("finish",(t=>{const r=e.absolute;const s=n.fd;if(e.mtime&&!this.noMtime){i++;const t=e.atime||new Date;const n=e.mtime;o.futimes(s,t,n,(e=>e?o.utimes(r,t,n,(t=>done(t&&e))):done()))}if(this[B](e)){i++;const t=this[C](e);const n=this[D](e);o.fchown(s,t,n,(e=>e?o.chown(r,t,n,(t=>done(t&&e))):done()))}done()}));const s=this.transform?this.transform(e)||e:e;if(s!==e){s.on("error",(t=>this[k](t,e)));e.pipe(s)}s.pipe(n)}[w](e,t){const r=e.mode&4095||this.dmode;this[O](e.absolute,r,(r=>{if(r){t();return this[k](r,e)}let n=1;const done=r=>{if(--n===0){t();this[I]();e.resume()}};if(e.mtime&&!this.noMtime){n++;o.utimes(e.absolute,e.atime||new Date,e.mtime,done)}if(this[B](e)){n++;o.chown(e.absolute,this[C](e),this[D](e),done)}done()}))}[E](e){e.unsupported=true;this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e});e.resume()}[b](e,t){this[g](e,e.linkpath,"symlink",t)}[S](e,t){this[g](e,l.resolve(this.cwd,e.linkpath),"link",t)}[A](){this[N]++}[I](){this[N]--;this[T]()}[F](e){this[I]();e.resume()}[m](e,t){return e.type==="File"&&!this.unlink&&t.isFile()&&t.nlink<=1&&process.platform!=="win32"}[p](e){this[A]();const t=[e.path];if(e.linkpath)t.push(e.linkpath);this.reservations.reserve(t,(t=>this[_](e,t)))}[_](e,t){this[O](l.dirname(e.absolute),this.dmode,(r=>{if(r){t();return this[k](r,e)}o.lstat(e.absolute,((r,n)=>{if(n&&(this.keep||this.newer&&n.mtime>e.mtime)){this[F](e);t()}else if(r||this[m](e,n)){this[y](null,e,t)}else if(n.isDirectory()){if(e.type==="Directory"){if(!e.mode||(n.mode&4095)===e.mode)this[y](null,e,t);else o.chmod(e.absolute,e.mode,(r=>this[y](r,e,t)))}else o.rmdir(e.absolute,(r=>this[y](r,e,t)))}else unlinkFile(e.absolute,(r=>this[y](r,e,t)))}))}))}[y](e,t,r){if(e)return this[k](e,t);switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[v](t,r);case"Link":return this[S](t,r);case"SymbolicLink":return this[b](t,r);case"Directory":case"GNUDumpDir":return this[w](t,r)}}[g](e,t,r,n){o[r](t,e.absolute,(t=>{if(t)return this[k](t,e);n();this[I]();e.resume()}))}}class UnpackSync extends Unpack{constructor(e){super(e)}[p](e){const t=this[O](l.dirname(e.absolute),this.dmode,neverCalled);if(t)return this[k](t,e);try{const r=o.lstatSync(e.absolute);if(this.keep||this.newer&&r.mtime>e.mtime)return this[F](e);else if(this[m](e,r))return this[y](null,e,neverCalled);else{try{if(r.isDirectory()){if(e.type==="Directory"){if(e.mode&&(r.mode&4095)!==e.mode)o.chmodSync(e.absolute,e.mode)}else o.rmdirSync(e.absolute)}else unlinkFileSync(e.absolute);return this[y](null,e,neverCalled)}catch(t){return this[k](t,e)}}}catch(t){return this[y](null,e,neverCalled)}}[v](e,t){const r=e.mode&4095||this.fmode;const oner=t=>{let r;try{o.closeSync(i)}catch(e){r=e}if(t||r)this[k](t||r,e)};let n;let i;try{i=o.openSync(e.absolute,z(e.size),r)}catch(e){return oner(e)}const s=this.transform?this.transform(e)||e:e;if(s!==e){s.on("error",(t=>this[k](t,e)));e.pipe(s)}s.on("data",(e=>{try{o.writeSync(i,e,0,e.length)}catch(e){oner(e)}}));s.on("end",(t=>{let r=null;if(e.mtime&&!this.noMtime){const t=e.atime||new Date;const n=e.mtime;try{o.futimesSync(i,t,n)}catch(i){try{o.utimesSync(e.absolute,t,n)}catch(e){r=i}}}if(this[B](e)){const t=this[C](e);const n=this[D](e);try{o.fchownSync(i,t,n)}catch(i){try{o.chownSync(e.absolute,t,n)}catch(e){r=r||i}}}oner(r)}))}[w](e,t){const r=e.mode&4095||this.dmode;const n=this[O](e.absolute,r);if(n)return this[k](n,e);if(e.mtime&&!this.noMtime){try{o.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch(n){}}if(this[B](e)){try{o.chownSync(e.absolute,this[C](e),this[D](e))}catch(n){}}e.resume()}[O](e,t){try{return c.sync(e,{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t})}catch(e){return e}}[g](e,t,r,n){try{o[r+"Sync"](t,e.absolute);e.resume()}catch(t){return this[k](t,e)}}}Unpack.Sync=UnpackSync;e.exports=Unpack},4404:(e,t,r)=>{"use strict";const n=r(5274);const i=r(5923);const s=e.exports=(e,t,r)=>{const s=n(e);if(!s.file)throw new TypeError("file is required");if(s.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);mtimeFilter(s);return i(s,t,r)};const mtimeFilter=e=>{const t=e.filter;if(!e.mtimeCache)e.mtimeCache=new Map;e.filter=t?(r,n)=>t(r,n)&&!(e.mtimeCache.get(r)>n.mtime):(t,r)=>!(e.mtimeCache.get(t)>r.mtime)}},5899:e=>{"use strict";e.exports=e=>class extends e{warn(e,t,r={}){if(this.file)r.file=this.file;if(this.cwd)r.cwd=this.cwd;r.code=t instanceof Error&&t.code||e;r.tarCode=e;if(!this.strict&&r.recoverable!==false){if(t instanceof Error){r=Object.assign(t,r);t=t.message}this.emit("warn",r.tarCode,t,r)}else if(t instanceof Error){this.emit("error",Object.assign(t,r))}else this.emit("error",Object.assign(new Error(`${e}: ${t}`),r))}}},4808:e=>{"use strict";const t=["|","<",">","?",":"];const r=t.map((e=>String.fromCharCode(61440+e.charCodeAt(0))));const n=new Map(t.map(((e,t)=>[e,r[t]])));const i=new Map(r.map(((e,r)=>[e,t[r]])));e.exports={encode:e=>t.reduce(((e,t)=>e.split(t).join(n.get(t))),e),decode:e=>r.reduce(((e,t)=>e.split(t).join(i.get(t))),e)}},5450:(e,t,r)=>{"use strict";const n=r(1077);const i=r(7996);const s=r(6043);const o=r(8116);const a=r(7147);const l=r(1017);const c=r(4173);const u=16*1024*1024;const h=Symbol("process");const f=Symbol("file");const d=Symbol("directory");const p=Symbol("symlink");const _=Symbol("hardlink");const m=Symbol("header");const y=Symbol("read");const v=Symbol("lstat");const w=Symbol("onlstat");const g=Symbol("onread");const b=Symbol("onreadlink");const S=Symbol("openfile");const E=Symbol("onopenfile");const x=Symbol("close");const R=Symbol("mode");const O=r(5899);const k=r(4808);const N=r(8371);const A=O(class WriteEntry extends n{constructor(e,t){t=t||{};super(t);if(typeof e!=="string")throw new TypeError("path is required");this.path=e;this.portable=!!t.portable;this.myuid=process.getuid&&process.getuid();this.myuser=process.env.USER||"";this.maxReadSize=t.maxReadSize||u;this.linkCache=t.linkCache||new Map;this.statCache=t.statCache||new Map;this.preservePaths=!!t.preservePaths;this.cwd=t.cwd||process.cwd();this.strict=!!t.strict;this.noPax=!!t.noPax;this.noMtime=!!t.noMtime;this.mtime=t.mtime||null;if(typeof t.onwarn==="function")this.on("warn",t.onwarn);let r=false;if(!this.preservePaths&&l.win32.isAbsolute(e)){const t=l.win32.parse(e);this.path=e.substr(t.root.length);r=t.root}this.win32=!!t.win32||process.platform==="win32";if(this.win32){this.path=k.decode(this.path.replace(/\\/g,"/"));e=e.replace(/\\/g,"/")}this.absolute=t.absolute||l.resolve(this.cwd,e);if(this.path==="")this.path="./";if(r){this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:this,path:r+this.path})}if(this.statCache.has(this.absolute))this[w](this.statCache.get(this.absolute));else this[v]()}[v](){a.lstat(this.absolute,((e,t)=>{if(e)return this.emit("error",e);this[w](t)}))}[w](e){this.statCache.set(this.absolute,e);this.stat=e;if(!e.isFile())e.size=0;this.type=getType(e);this.emit("stat",e);this[h]()}[h](){switch(this.type){case"File":return this[f]();case"Directory":return this[d]();case"SymbolicLink":return this[p]();default:return this.end()}}[R](e){return N(e,this.type==="Directory",this.portable)}[m](){if(this.type==="Directory"&&this.portable)this.noMtime=true;this.header=new s({path:this.path,linkpath:this.linkpath,mode:this[R](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime});if(this.header.encode()&&!this.noPax)this.write(new i({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this.path,linkpath:this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode());this.write(this.header.block)}[d](){if(this.path.substr(-1)!=="/")this.path+="/";this.stat.size=0;this[m]();this.end()}[p](){a.readlink(this.absolute,((e,t)=>{if(e)return this.emit("error",e);this[b](t)}))}[b](e){this.linkpath=e.replace(/\\/g,"/");this[m]();this.end()}[_](e){this.type="Link";this.linkpath=l.relative(this.cwd,e).replace(/\\/g,"/");this.stat.size=0;this[m]();this.end()}[f](){if(this.stat.nlink>1){const e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){const t=this.linkCache.get(e);if(t.indexOf(this.cwd)===0)return this[_](t)}this.linkCache.set(e,this.absolute)}this[m]();if(this.stat.size===0)return this.end();this[S]()}[S](){a.open(this.absolute,"r",((e,t)=>{if(e)return this.emit("error",e);this[E](t)}))}[E](e){const t=512*Math.ceil(this.stat.size/512);const r=Math.min(t,this.maxReadSize);const n=Buffer.allocUnsafe(r);this[y](e,n,0,n.length,0,this.stat.size,t)}[y](e,t,r,n,i,s,o){a.read(e,t,r,n,i,((a,l)=>{if(a){return this[x](e,(()=>this.emit("error",a)))}this[g](e,t,r,n,i,s,o,l)}))}[x](e,t){a.close(e,t)}[g](e,t,r,n,i,s,o,a){if(a<=0&&s>0){const t=new Error("encountered unexpected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";return this[x](e,(()=>this.emit("error",t)))}if(a>s){const t=new Error("did not encounter expected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";return this[x](e,(()=>this.emit("error",t)))}if(a===s){for(let e=a;e<n&&a<o;e++){t[e+r]=0;a++;s++}}const l=r===0&&a===t.length?t:t.slice(r,r+a);s-=a;o-=a;i+=a;r+=a;this.write(l);if(!s){if(o)this.write(Buffer.alloc(o));return this[x](e,(e=>e?this.emit("error",e):this.end()))}if(r>=n){t=Buffer.allocUnsafe(n);r=0}n=t.length-r;this[y](e,t,r,n,i,s,o)}});class WriteEntrySync extends A{constructor(e,t){super(e,t)}[v](){this[w](a.lstatSync(this.absolute))}[p](){this[b](a.readlinkSync(this.absolute))}[S](){this[E](a.openSync(this.absolute,"r"))}[y](e,t,r,n,i,s,o){let l=true;try{const c=a.readSync(e,t,r,n,i);this[g](e,t,r,n,i,s,o,c);l=false}finally{if(l)try{this[x](e,(()=>{}))}catch(e){}}}[x](e,t){a.closeSync(e);t()}}const I=O(class WriteEntryTar extends n{constructor(e,t){t=t||{};super(t);this.preservePaths=!!t.preservePaths;this.portable=!!t.portable;this.strict=!!t.strict;this.noPax=!!t.noPax;this.noMtime=!!t.noMtime;this.readEntry=e;this.type=e.type;if(this.type==="Directory"&&this.portable)this.noMtime=true;this.path=e.path;this.mode=this[R](e.mode);this.uid=this.portable?null:e.uid;this.gid=this.portable?null:e.gid;this.uname=this.portable?null:e.uname;this.gname=this.portable?null:e.gname;this.size=e.size;this.mtime=this.noMtime?null:t.mtime||e.mtime;this.atime=this.portable?null:e.atime;this.ctime=this.portable?null:e.ctime;this.linkpath=e.linkpath;if(typeof t.onwarn==="function")this.on("warn",t.onwarn);let r=false;if(l.isAbsolute(this.path)&&!this.preservePaths){const e=l.parse(this.path);r=e.root;this.path=this.path.substr(e.root.length)}this.remain=e.size;this.blockRemain=e.startBlockSize;this.header=new s({path:this.path,linkpath:this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime});if(r){this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:this,path:r+this.path})}if(this.header.encode()&&!this.noPax)super.write(new i({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this.path,linkpath:this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode());super.write(this.header.block);e.pipe(this)}[R](e){return N(e,this.type==="Directory",this.portable)}write(e){const t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");this.blockRemain-=t;return super.write(e)}end(){if(this.blockRemain)this.write(Buffer.alloc(this.blockRemain));return super.end()}});A.Sync=WriteEntrySync;A.Tar=I;const getType=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=A},4091:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},665:(e,t,r)=>{"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach((function(e){t.push(e)}))}else if(arguments.length>0){for(var r=0,n=arguments.length;r<n;r++){t.push(arguments[r])}}return t}Yallist.prototype.removeNode=function(e){if(e.list!==this){throw new Error("removing node which does not belong to this list")}var t=e.next;var r=e.prev;if(t){t.prev=r}if(r){r.next=t}if(e===this.head){this.head=t}if(e===this.tail){this.tail=r}e.list.length--;e.next=null;e.prev=null;e.list=null;return t};Yallist.prototype.unshiftNode=function(e){if(e===this.head){return}if(e.list){e.list.removeNode(e)}var t=this.head;e.list=this;e.next=t;if(t){t.prev=e}this.head=e;if(!this.tail){this.tail=e}this.length++};Yallist.prototype.pushNode=function(e){if(e===this.tail){return}if(e.list){e.list.removeNode(e)}var t=this.tail;e.list=this;e.prev=t;if(t){t.next=e}this.tail=e;if(!this.head){this.head=e}this.length++};Yallist.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++){push(this,arguments[e])}return this.length};Yallist.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++){unshift(this,arguments[e])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var e=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return e};Yallist.prototype.shift=function(){if(!this.head){return undefined}var e=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return e};Yallist.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++){e.call(t,r.value,n,this);r=r.next}};Yallist.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--){e.call(t,r.value,n,this);r=r.prev}};Yallist.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++){r=r.next}if(t===e&&r!==null){return r.value}};Yallist.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++){r=r.prev}if(t===e&&r!==null){return r.value}};Yallist.prototype.map=function(e,t){t=t||this;var r=new Yallist;for(var n=this.head;n!==null;){r.push(e.call(t,n.value,this));n=n.next}return r};Yallist.prototype.mapReverse=function(e,t){t=t||this;var r=new Yallist;for(var n=this.tail;n!==null;){r.push(e.call(t,n.value,this));n=n.prev}return r};Yallist.prototype.reduce=function(e,t){var r;var n=this.head;if(arguments.length>1){r=t}else if(this.head){n=this.head.next;r=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=0;n!==null;i++){r=e(r,n.value,i);n=n.next}return r};Yallist.prototype.reduceReverse=function(e,t){var r;var n=this.tail;if(arguments.length>1){r=t}else if(this.tail){n=this.tail.prev;r=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=this.length-1;n!==null;i--){r=e(r,n.value,i);n=n.prev}return r};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,r=this.head;r!==null;t++){e[t]=r.value;r=r.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,r=this.tail;r!==null;t++){e[t]=r.value;r=r.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var n=0,i=this.head;i!==null&&n<e;n++){i=i.next}for(;i!==null&&n<t;n++,i=i.next){r.push(i.value)}return r};Yallist.prototype.sliceReverse=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var n=this.length,i=this.tail;i!==null&&n>t;n--){i=i.prev}for(;i!==null&&n>e;n--,i=i.prev){r.push(i.value)}return r};Yallist.prototype.splice=function(e,t,...r){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var n=0,i=this.head;i!==null&&n<e;n++){i=i.next}var s=[];for(var n=0;i&&n<t;n++){s.push(i.value);i=this.removeNode(i)}if(i===null){i=this.tail}if(i!==this.head&&i!==this.tail){i=i.prev}for(var n=0;n<r.length;n++){i=insert(this,i,r[n])}return s};Yallist.prototype.reverse=function(){var e=this.head;var t=this.tail;for(var r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next;r.next=n}this.head=t;this.tail=e;return this};function insert(e,t,r){var n=t===e.head?new Node(r,null,t,e):new Node(r,t,t.next,e);if(n.next===null){e.tail=n}if(n.prev===null){e.head=n}e.length++;return n}function push(e,t){e.tail=new Node(t,e.tail,null,e);if(!e.head){e.head=e.tail}e.length++}function unshift(e,t){e.head=new Node(t,null,e.head,e);if(!e.tail){e.tail=e.head}e.length++}function Node(e,t,r,n){if(!(this instanceof Node)){return new Node(e,t,r,n)}this.list=n;this.value=e;if(t){t.next=this;this.prev=t}else{this.prev=null}if(r){r.prev=this;this.next=r}else{this.next=null}}try{r(4091)(Yallist)}catch(e){}},8781:(e,t,r)=>{var n=r(7147);var i=r(9796);var s=r(5010);var o=r(4794);var a=r(3837);var l=r(2361).EventEmitter;var c=r(2781).Transform;var u=r(2781).PassThrough;var h=r(2781).Writable;t.open=open;t.fromFd=fromFd;t.fromBuffer=fromBuffer;t.fromRandomAccessReader=fromRandomAccessReader;t.dosDateTimeToDate=dosDateTimeToDate;t.validateFileName=validateFileName;t.ZipFile=ZipFile;t.Entry=Entry;t.RandomAccessReader=RandomAccessReader;function open(e,t,r){if(typeof t==="function"){r=t;t=null}if(t==null)t={};if(t.autoClose==null)t.autoClose=true;if(t.lazyEntries==null)t.lazyEntries=false;if(t.decodeStrings==null)t.decodeStrings=true;if(t.validateEntrySizes==null)t.validateEntrySizes=true;if(t.strictFileNames==null)t.strictFileNames=false;if(r==null)r=defaultCallback;n.open(e,"r",(function(e,i){if(e)return r(e);fromFd(i,t,(function(e,t){if(e)n.close(i,defaultCallback);r(e,t)}))}))}function fromFd(e,t,r){if(typeof t==="function"){r=t;t=null}if(t==null)t={};if(t.autoClose==null)t.autoClose=false;if(t.lazyEntries==null)t.lazyEntries=false;if(t.decodeStrings==null)t.decodeStrings=true;if(t.validateEntrySizes==null)t.validateEntrySizes=true;if(t.strictFileNames==null)t.strictFileNames=false;if(r==null)r=defaultCallback;n.fstat(e,(function(n,i){if(n)return r(n);var o=s.createFromFd(e,{autoClose:true});fromRandomAccessReader(o,i.size,t,r)}))}function fromBuffer(e,t,r){if(typeof t==="function"){r=t;t=null}if(t==null)t={};t.autoClose=false;if(t.lazyEntries==null)t.lazyEntries=false;if(t.decodeStrings==null)t.decodeStrings=true;if(t.validateEntrySizes==null)t.validateEntrySizes=true;if(t.strictFileNames==null)t.strictFileNames=false;var n=s.createFromBuffer(e,{maxChunkSize:65536});fromRandomAccessReader(n,e.length,t,r)}function fromRandomAccessReader(e,t,r,n){if(typeof r==="function"){n=r;r=null}if(r==null)r={};if(r.autoClose==null)r.autoClose=true;if(r.lazyEntries==null)r.lazyEntries=false;if(r.decodeStrings==null)r.decodeStrings=true;var i=!!r.decodeStrings;if(r.validateEntrySizes==null)r.validateEntrySizes=true;if(r.strictFileNames==null)r.strictFileNames=false;if(n==null)n=defaultCallback;if(typeof t!=="number")throw new Error("expected totalSize parameter to be a number");if(t>Number.MAX_SAFE_INTEGER){throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.")}e.ref();var s=22;var o=65535;var a=Math.min(s+o,t);var l=d(a);var c=t-l.length;readAndAssertNoEof(e,l,0,a,c,(function(o){if(o)return n(o);for(var u=a-s;u>=0;u-=1){if(l.readUInt32LE(u)!==101010256)continue;var h=l.slice(u);var f=h.readUInt16LE(4);if(f!==0){return n(new Error("multi-disk zip files are not supported: found disk number: "+f))}var p=h.readUInt16LE(10);var _=h.readUInt32LE(16);var m=h.readUInt16LE(20);var y=h.length-s;if(m!==y){return n(new Error("invalid comment length. expected: "+y+". found: "+m))}var v=i?decodeBuffer(h,22,h.length,false):h.slice(22);if(!(p===65535||_===4294967295)){return n(null,new ZipFile(e,_,t,p,v,r.autoClose,r.lazyEntries,i,r.validateEntrySizes,r.strictFileNames))}var w=d(20);var g=c+u-w.length;readAndAssertNoEof(e,w,0,w.length,g,(function(s){if(s)return n(s);if(w.readUInt32LE(0)!==117853008){return n(new Error("invalid zip64 end of central directory locator signature"))}var o=readUInt64LE(w,8);var a=d(56);readAndAssertNoEof(e,a,0,a.length,o,(function(s){if(s)return n(s);if(a.readUInt32LE(0)!==101075792){return n(new Error("invalid zip64 end of central directory record signature"))}p=readUInt64LE(a,32);_=readUInt64LE(a,48);return n(null,new ZipFile(e,_,t,p,v,r.autoClose,r.lazyEntries,i,r.validateEntrySizes,r.strictFileNames))}))}));return}n(new Error("end of central directory record signature not found"))}))}a.inherits(ZipFile,l);function ZipFile(e,t,r,n,i,s,o,a,c,u){var h=this;l.call(h);h.reader=e;h.reader.on("error",(function(e){emitError(h,e)}));h.reader.once("close",(function(){h.emit("close")}));h.readEntryCursor=t;h.fileSize=r;h.entryCount=n;h.comment=i;h.entriesRead=0;h.autoClose=!!s;h.lazyEntries=!!o;h.decodeStrings=!!a;h.validateEntrySizes=!!c;h.strictFileNames=!!u;h.isOpen=true;h.emittedError=false;if(!h.lazyEntries)h._readEntry()}ZipFile.prototype.close=function(){if(!this.isOpen)return;this.isOpen=false;this.reader.unref()};function emitErrorAndAutoClose(e,t){if(e.autoClose)e.close();emitError(e,t)}function emitError(e,t){if(e.emittedError)return;e.emittedError=true;e.emit("error",t)}ZipFile.prototype.readEntry=function(){if(!this.lazyEntries)throw new Error("readEntry() called without lazyEntries:true");this._readEntry()};ZipFile.prototype._readEntry=function(){var e=this;if(e.entryCount===e.entriesRead){setImmediate((function(){if(e.autoClose)e.close();if(e.emittedError)return;e.emit("end")}));return}if(e.emittedError)return;var r=d(46);readAndAssertNoEof(e.reader,r,0,r.length,e.readEntryCursor,(function(n){if(n)return emitErrorAndAutoClose(e,n);if(e.emittedError)return;var i=new Entry;var s=r.readUInt32LE(0);if(s!==33639248)return emitErrorAndAutoClose(e,new Error("invalid central directory file header signature: 0x"+s.toString(16)));i.versionMadeBy=r.readUInt16LE(4);i.versionNeededToExtract=r.readUInt16LE(6);i.generalPurposeBitFlag=r.readUInt16LE(8);i.compressionMethod=r.readUInt16LE(10);i.lastModFileTime=r.readUInt16LE(12);i.lastModFileDate=r.readUInt16LE(14);i.crc32=r.readUInt32LE(16);i.compressedSize=r.readUInt32LE(20);i.uncompressedSize=r.readUInt32LE(24);i.fileNameLength=r.readUInt16LE(28);i.extraFieldLength=r.readUInt16LE(30);i.fileCommentLength=r.readUInt16LE(32);i.internalFileAttributes=r.readUInt16LE(36);i.externalFileAttributes=r.readUInt32LE(38);i.relativeOffsetOfLocalHeader=r.readUInt32LE(42);if(i.generalPurposeBitFlag&64)return emitErrorAndAutoClose(e,new Error("strong encryption is not supported"));e.readEntryCursor+=46;r=d(i.fileNameLength+i.extraFieldLength+i.fileCommentLength);readAndAssertNoEof(e.reader,r,0,r.length,e.readEntryCursor,(function(n){if(n)return emitErrorAndAutoClose(e,n);if(e.emittedError)return;var s=(i.generalPurposeBitFlag&2048)!==0;i.fileName=e.decodeStrings?decodeBuffer(r,0,i.fileNameLength,s):r.slice(0,i.fileNameLength);var a=i.fileNameLength+i.extraFieldLength;var l=r.slice(i.fileNameLength,a);i.extraFields=[];var c=0;while(c<l.length-3){var u=l.readUInt16LE(c+0);var h=l.readUInt16LE(c+2);var f=c+4;var p=f+h;if(p>l.length)return emitErrorAndAutoClose(e,new Error("extra field length exceeds extra field buffer size"));var _=d(h);l.copy(_,0,f,p);i.extraFields.push({id:u,data:_});c=p}i.fileComment=e.decodeStrings?decodeBuffer(r,a,a+i.fileCommentLength,s):r.slice(a,a+i.fileCommentLength);i.comment=i.fileComment;e.readEntryCursor+=r.length;e.entriesRead+=1;if(i.uncompressedSize===4294967295||i.compressedSize===4294967295||i.relativeOffsetOfLocalHeader===4294967295){var m=null;for(var c=0;c<i.extraFields.length;c++){var y=i.extraFields[c];if(y.id===1){m=y.data;break}}if(m==null){return emitErrorAndAutoClose(e,new Error("expected zip64 extended information extra field"))}var v=0;if(i.uncompressedSize===4294967295){if(v+8>m.length){return emitErrorAndAutoClose(e,new Error("zip64 extended information extra field does not include uncompressed size"))}i.uncompressedSize=readUInt64LE(m,v);v+=8}if(i.compressedSize===4294967295){if(v+8>m.length){return emitErrorAndAutoClose(e,new Error("zip64 extended information extra field does not include compressed size"))}i.compressedSize=readUInt64LE(m,v);v+=8}if(i.relativeOffsetOfLocalHeader===4294967295){if(v+8>m.length){return emitErrorAndAutoClose(e,new Error("zip64 extended information extra field does not include relative header offset"))}i.relativeOffsetOfLocalHeader=readUInt64LE(m,v);v+=8}}if(e.decodeStrings){for(var c=0;c<i.extraFields.length;c++){var y=i.extraFields[c];if(y.id===28789){if(y.data.length<6){continue}if(y.data.readUInt8(0)!==1){continue}var w=y.data.readUInt32LE(1);if(o.unsigned(r.slice(0,i.fileNameLength))!==w){continue}i.fileName=decodeBuffer(y.data,5,y.data.length,true);break}}}if(e.validateEntrySizes&&i.compressionMethod===0){var g=i.uncompressedSize;if(i.isEncrypted()){g+=12}if(i.compressedSize!==g){var b="compressed/uncompressed size mismatch for stored file: "+i.compressedSize+" != "+i.uncompressedSize;return emitErrorAndAutoClose(e,new Error(b))}}if(e.decodeStrings){if(!e.strictFileNames){i.fileName=i.fileName.replace(/\\/g,"/")}var S=t.validateFileName(i.fileName);if(S!=null)return emitErrorAndAutoClose(e,new Error(S))}e.emit("entry",i);if(!e.lazyEntries)e._readEntry()}))}))};ZipFile.prototype.openReadStream=function(e,t,r){var n=this;var s=0;var o=e.compressedSize;if(r==null){r=t;t={}}else{if(t.decrypt!=null){if(!e.isEncrypted()){throw new Error("options.decrypt can only be specified for encrypted entries")}if(t.decrypt!==false)throw new Error("invalid options.decrypt value: "+t.decrypt);if(e.isCompressed()){if(t.decompress!==false)throw new Error("entry is encrypted and compressed, and options.decompress !== false")}}if(t.decompress!=null){if(!e.isCompressed()){throw new Error("options.decompress can only be specified for compressed entries")}if(!(t.decompress===false||t.decompress===true)){throw new Error("invalid options.decompress value: "+t.decompress)}}if(t.start!=null||t.end!=null){if(e.isCompressed()&&t.decompress!==false){throw new Error("start/end range not allowed for compressed entry without options.decompress === false")}if(e.isEncrypted()&&t.decrypt!==false){throw new Error("start/end range not allowed for encrypted entry without options.decrypt === false")}}if(t.start!=null){s=t.start;if(s<0)throw new Error("options.start < 0");if(s>e.compressedSize)throw new Error("options.start > entry.compressedSize")}if(t.end!=null){o=t.end;if(o<0)throw new Error("options.end < 0");if(o>e.compressedSize)throw new Error("options.end > entry.compressedSize");if(o<s)throw new Error("options.end < options.start")}}if(!n.isOpen)return r(new Error("closed"));if(e.isEncrypted()){if(t.decrypt!==false)return r(new Error("entry is encrypted, and options.decrypt !== false"))}n.reader.ref();var a=d(30);readAndAssertNoEof(n.reader,a,0,a.length,e.relativeOffsetOfLocalHeader,(function(l){try{if(l)return r(l);var c=a.readUInt32LE(0);if(c!==67324752){return r(new Error("invalid local file header signature: 0x"+c.toString(16)))}var u=a.readUInt16LE(26);var h=a.readUInt16LE(28);var f=e.relativeOffsetOfLocalHeader+a.length+u+h;var d;if(e.compressionMethod===0){d=false}else if(e.compressionMethod===8){d=t.decompress!=null?t.decompress:true}else{return r(new Error("unsupported compression method: "+e.compressionMethod))}var p=f;var _=p+e.compressedSize;if(e.compressedSize!==0){if(_>n.fileSize){return r(new Error("file data overflows file bounds: "+p+" + "+e.compressedSize+" > "+n.fileSize))}}var m=n.reader.createReadStream({start:p+s,end:p+o});var y=m;if(d){var v=false;var w=i.createInflateRaw();m.on("error",(function(e){setImmediate((function(){if(!v)w.emit("error",e)}))}));m.pipe(w);if(n.validateEntrySizes){y=new AssertByteCountStream(e.uncompressedSize);w.on("error",(function(e){setImmediate((function(){if(!v)y.emit("error",e)}))}));w.pipe(y)}else{y=w}y.destroy=function(){v=true;if(w!==y)w.unpipe(y);m.unpipe(w);m.destroy()}}r(null,y)}finally{n.reader.unref()}}))};function Entry(){}Entry.prototype.getLastModDate=function(){return dosDateTimeToDate(this.lastModFileDate,this.lastModFileTime)};Entry.prototype.isEncrypted=function(){return(this.generalPurposeBitFlag&1)!==0};Entry.prototype.isCompressed=function(){return this.compressionMethod===8};function dosDateTimeToDate(e,t){var r=e&31;var n=(e>>5&15)-1;var i=(e>>9&127)+1980;var s=0;var o=(t&31)*2;var a=t>>5&63;var l=t>>11&31;return new Date(i,n,r,l,a,o,s)}function validateFileName(e){if(e.indexOf("\\")!==-1){return"invalid characters in fileName: "+e}if(/^[a-zA-Z]:/.test(e)||/^\//.test(e)){return"absolute path: "+e}if(e.split("/").indexOf("..")!==-1){return"invalid relative path: "+e}return null}function readAndAssertNoEof(e,t,r,n,i,s){if(n===0){return setImmediate((function(){s(null,d(0))}))}e.read(t,r,n,i,(function(e,t){if(e)return s(e);if(t<n){return s(new Error("unexpected EOF"))}s()}))}a.inherits(AssertByteCountStream,c);function AssertByteCountStream(e){c.call(this);this.actualByteCount=0;this.expectedByteCount=e}AssertByteCountStream.prototype._transform=function(e,t,r){this.actualByteCount+=e.length;if(this.actualByteCount>this.expectedByteCount){var n="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return r(new Error(n))}r(null,e)};AssertByteCountStream.prototype._flush=function(e){if(this.actualByteCount<this.expectedByteCount){var t="not enough bytes in the stream. expected "+this.expectedByteCount+". got only "+this.actualByteCount;return e(new Error(t))}e()};a.inherits(RandomAccessReader,l);function RandomAccessReader(){l.call(this);this.refCount=0}RandomAccessReader.prototype.ref=function(){this.refCount+=1};RandomAccessReader.prototype.unref=function(){var e=this;e.refCount-=1;if(e.refCount>0)return;if(e.refCount<0)throw new Error("invalid unref");e.close(onCloseDone);function onCloseDone(t){if(t)return e.emit("error",t);e.emit("close")}};RandomAccessReader.prototype.createReadStream=function(e){var t=e.start;var r=e.end;if(t===r){var n=new u;setImmediate((function(){n.end()}));return n}var i=this._readStreamForRange(t,r);var s=false;var o=new RefUnrefFilter(this);i.on("error",(function(e){setImmediate((function(){if(!s)o.emit("error",e)}))}));o.destroy=function(){i.unpipe(o);o.unref();i.destroy()};var a=new AssertByteCountStream(r-t);o.on("error",(function(e){setImmediate((function(){if(!s)a.emit("error",e)}))}));a.destroy=function(){s=true;o.unpipe(a);o.destroy()};return i.pipe(o).pipe(a)};RandomAccessReader.prototype._readStreamForRange=function(e,t){throw new Error("not implemented")};RandomAccessReader.prototype.read=function(e,t,r,n,i){var s=this.createReadStream({start:n,end:n+r});var o=new h;var a=0;o._write=function(r,n,i){r.copy(e,t+a,0,r.length);a+=r.length;i()};o.on("finish",i);s.on("error",(function(e){i(e)}));s.pipe(o)};RandomAccessReader.prototype.close=function(e){setImmediate(e)};a.inherits(RefUnrefFilter,u);function RefUnrefFilter(e){u.call(this);this.context=e;this.context.ref();this.unreffedYet=false}RefUnrefFilter.prototype._flush=function(e){this.unref();e()};RefUnrefFilter.prototype.unref=function(e){if(this.unreffedYet)return;this.unreffedYet=true;this.context.unref()};var f="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ";function decodeBuffer(e,t,r,n){if(n){return e.toString("utf8",t,r)}else{var i="";for(var s=t;s<r;s++){i+=f[e[s]]}return i}}function readUInt64LE(e,t){var r=e.readUInt32LE(t);var n=e.readUInt32LE(t+4);return n*4294967296+r}var d;if(typeof Buffer.allocUnsafe==="function"){d=function(e){return Buffer.allocUnsafe(e)}}else{d=function(e){return new Buffer(e)}}function defaultCallback(e){if(e)throw e}},9491:e=>{"use strict";e.exports=require("assert")},4300:e=>{"use strict";e.exports=require("buffer")},2081:e=>{"use strict";e.exports=require("child_process")},2057:e=>{"use strict";e.exports=require("constants")},6113:e=>{"use strict";e.exports=require("crypto")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},1017:e=>{"use strict";e.exports=require("path")},2781:e=>{"use strict";e.exports=require("stream")},1576:e=>{"use strict";e.exports=require("string_decoder")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},9796:e=>{"use strict";e.exports=require("zlib")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var i=t[r]={exports:{}};var s=true;try{e[r].call(i.exports,i,i.exports,__nccwpck_require__);s=false}finally{if(s)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(4);module.exports=r})();
|