@holistics/cli-core 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands.js +24 -185
- package/package.json +1 -1
package/dist/commands.js
CHANGED
|
@@ -88,7 +88,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
88
88
|
*
|
|
89
89
|
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
90
90
|
* Released under the MIT License.
|
|
91
|
-
*/ks.exports=function(Z,X){if(typeof Z!=="string")throw new TypeError("expected path to be a string");if(Z==="\\"||Z==="/")return"/";var Q=Z.length;if(Q<=1)return Z;var J="";if(Q>4&&Z[3]==="\\"){var $=Z[2];if(($==="?"||$===".")&&Z.slice(0,2)==="\\\\")Z=Z.slice(2),J="//"}var Y=Z.split(/[/\\]+/);if(X!==!1&&Y[Y.length-1]==="")Y.pop();return J+Y.join("/")}});var cs=a((ys,gs)=>{Object.defineProperty(ys,"__esModule",{value:!0});var ms=rK(),Ap0=tL(),fs="!",Ep0={returnIndex:!1},vp0=(Z)=>Array.isArray(Z)?Z:[Z],kp0=(Z,X)=>{if(typeof Z==="function")return Z;if(typeof Z==="string"){let Q=ms(Z,X);return(J)=>Z===J||Q(J)}if(Z instanceof RegExp)return(Q)=>Z.test(Q);return(Q)=>!1},bs=(Z,X,Q,J)=>{let $=Array.isArray(Q),Y=$?Q[0]:Q;if(!$&&typeof Y!=="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(Y));let q=Ap0(Y,!1);for(let W=0;W<X.length;W++){let V=X[W];if(V(q))return J?-1:!1}let K=$&&[q].concat(Q.slice(1));for(let W=0;W<Z.length;W++){let V=Z[W];if($?V(...K):V(q))return J?W:!0}return J?-1:!1},eL=(Z,X,Q=Ep0)=>{if(Z==null)throw new TypeError("anymatch: specify first argument");let J=typeof Q==="boolean"?{returnIndex:Q}:Q,$=J.returnIndex||!1,Y=vp0(Z),q=Y.filter((W)=>typeof W==="string"&&W.charAt(0)===fs).map((W)=>W.slice(1)).map((W)=>ms(W,J)),K=Y.filter((W)=>typeof W!=="string"||typeof W==="string"&&W.charAt(0)!==fs).map((W)=>kp0(W,J));if(X==null)return(W,V=!1)=>{return bs(K,q,W,typeof V==="boolean"?V:!1)};return bs(K,q,X,$)};eL.default=eL;gs.exports=eL});var us=a((XZ1,fp0)=>{fp0.exports=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]});var ds=a((QZ1,hs)=>{var bp0=P0("path"),mp0=us(),yp0=new Set(mp0);hs.exports=(Z)=>yp0.has(bp0.extname(Z).slice(1).toLowerCase())});var NV=a((up0)=>{var{sep:gp0}=P0("path"),{platform:Zj}=process,cp0=P0("os");up0.EV_ALL="all";up0.EV_READY="ready";up0.EV_ADD="add";up0.EV_CHANGE="change";up0.EV_ADD_DIR="addDir";up0.EV_UNLINK="unlink";up0.EV_UNLINK_DIR="unlinkDir";up0.EV_RAW="raw";up0.EV_ERROR="error";up0.STR_DATA="data";up0.STR_END="end";up0.STR_CLOSE="close";up0.FSEVENT_CREATED="created";up0.FSEVENT_MODIFIED="modified";up0.FSEVENT_DELETED="deleted";up0.FSEVENT_MOVED="moved";up0.FSEVENT_CLONED="cloned";up0.FSEVENT_UNKNOWN="unknown";up0.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1;up0.FSEVENT_TYPE_FILE="file";up0.FSEVENT_TYPE_DIRECTORY="directory";up0.FSEVENT_TYPE_SYMLINK="symlink";up0.KEY_LISTENERS="listeners";up0.KEY_ERR="errHandlers";up0.KEY_RAW="rawEmitters";up0.HANDLER_KEYS=[up0.KEY_LISTENERS,up0.KEY_ERR,up0.KEY_RAW];up0.DOT_SLASH=`.${gp0}`;up0.BACK_SLASH_RE=/\\/g;up0.DOUBLE_SLASH_RE=/\/\//;up0.SLASH_OR_BACK_SLASH_RE=/[/\\]/;up0.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;up0.REPLACER_RE=/^\.[/\\]/;up0.SLASH="/";up0.SLASH_SLASH="//";up0.BRACE_START="{";up0.BANG="!";up0.ONE_DOT=".";up0.TWO_DOTS="..";up0.STAR="*";up0.GLOBSTAR="**";up0.ROOT_GLOBSTAR="/**/*";up0.SLASH_GLOBSTAR="/**";up0.DIR_SUFFIX="Dir";up0.ANYMATCH_OPTS={dot:!0};up0.STRING_TYPE="string";up0.FUNCTION_TYPE="function";up0.EMPTY_STR="";up0.EMPTY_FN=()=>{};up0.IDENTITY_FN=(Z)=>Z;up0.isWindows=Zj==="win32";up0.isMacos=Zj==="darwin";up0.isLinux=Zj==="linux";up0.isIBMi=cp0.type()==="OS400"});var es=a(($Z1,ts)=>{var b5=P0("fs"),R8=P0("path"),{promisify:xY}=P0("util"),yl0=ds(),{isWindows:gl0,isLinux:cl0,EMPTY_FN:ul0,EMPTY_STR:hl0,KEY_LISTENERS:$Q,KEY_ERR:Xj,KEY_RAW:UY,HANDLER_KEYS:dl0,EV_CHANGE:LV,EV_ADD:DV,EV_ADD_DIR:pl0,EV_ERROR:ns,STR_DATA:ll0,STR_END:il0,BRACE_START:ol0,STAR:nl0}=NV(),sl0=xY(b5.open),ss=xY(b5.stat),al0=xY(b5.lstat),rl0=xY(b5.close),Qj=xY(b5.realpath),tl0={lstat:al0,stat:ss},$j=(Z,X)=>{if(Z instanceof Set)Z.forEach(X);else X(Z)},GY=(Z,X,Q)=>{let J=Z[X];if(!(J instanceof Set))Z[X]=J=new Set([J]);J.add(Q)},el0=(Z)=>(X)=>{let Q=Z[X];if(Q instanceof Set)Q.clear();else delete Z[X]},HY=(Z,X,Q)=>{let J=Z[X];if(J instanceof Set)J.delete(Q);else if(J===Q)delete Z[X]},as=(Z)=>Z instanceof Set?Z.size===0:!Z,jV=new Map;function os(Z,X,Q,J,$){let Y=(q,K)=>{if(Q(Z),$(q,K,{watchedPath:Z}),K&&Z!==K)wV(R8.resolve(Z,K),$Q,R8.join(Z,K))};try{return b5.watch(Z,X,Y)}catch(q){J(q)}}var wV=(Z,X,Q,J,$)=>{let Y=jV.get(Z);if(!Y)return;$j(Y[X],(q)=>{q(Q,J,$)})},Zi0=(Z,X,Q,J)=>{let{listener:$,errHandler:Y,rawEmitter:q}=J,K=jV.get(X),W;if(!Q.persistent)return W=os(Z,Q,$,Y,q),W.close.bind(W);if(K)GY(K,$Q,$),GY(K,Xj,Y),GY(K,UY,q);else{if(W=os(Z,Q,wV.bind(null,X,$Q),Y,wV.bind(null,X,UY)),!W)return;W.on(ns,async(V)=>{let U=wV.bind(null,X,Xj);if(K.watcherUnusable=!0,gl0&&V.code==="EPERM")try{let H=await sl0(Z,"r");await rl0(H),U(V)}catch(H){}else U(V)}),K={listeners:$,errHandlers:Y,rawEmitters:q,watcher:W},jV.set(X,K)}return()=>{if(HY(K,$Q,$),HY(K,Xj,Y),HY(K,UY,q),as(K.listeners))K.watcher.close(),jV.delete(X),dl0.forEach(el0(K)),K.watcher=void 0,Object.freeze(K)}},Jj=new Map,Xi0=(Z,X,Q,J)=>{let{listener:$,rawEmitter:Y}=J,q=Jj.get(X),K=new Set,W=new Set,V=q&&q.options;if(V&&(V.persistent<Q.persistent||V.interval>Q.interval))K=q.listeners,W=q.rawEmitters,b5.unwatchFile(X),q=void 0;if(q)GY(q,$Q,$),GY(q,UY,Y);else q={listeners:$,rawEmitters:Y,options:Q,watcher:b5.watchFile(X,Q,(U,H)=>{$j(q.rawEmitters,(M)=>{M(LV,X,{curr:U,prev:H})});let x=U.mtimeMs;if(U.size!==H.size||x>H.mtimeMs||x===0)$j(q.listeners,(M)=>M(Z,U))})},Jj.set(X,q);return()=>{if(HY(q,$Q,$),HY(q,UY,Y),as(q.listeners))Jj.delete(X),b5.unwatchFile(X),q.options=q.watcher=void 0,Object.freeze(q)}};class rs{constructor(Z){this.fsw=Z,this._boundHandleError=(X)=>Z._handleError(X)}_watchWithNodeFs(Z,X){let Q=this.fsw.options,J=R8.dirname(Z),$=R8.basename(Z);this.fsw._getWatchedDir(J).add($);let q=R8.resolve(Z),K={persistent:Q.persistent};if(!X)X=ul0;let W;if(Q.usePolling)K.interval=Q.enableBinaryInterval&&yl0($)?Q.binaryInterval:Q.interval,W=Xi0(Z,q,K,{listener:X,rawEmitter:this.fsw._emitRaw});else W=Zi0(Z,q,K,{listener:X,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw});return W}_handleFile(Z,X,Q){if(this.fsw.closed)return;let J=R8.dirname(Z),$=R8.basename(Z),Y=this.fsw._getWatchedDir(J),q=X;if(Y.has($))return;let K=async(V,U)=>{if(!this.fsw._throttle("watch",Z,5))return;if(!U||U.mtimeMs===0)try{let H=await ss(Z);if(this.fsw.closed)return;let{atimeMs:x,mtimeMs:M}=H;if(!x||x<=M||M!==q.mtimeMs)this.fsw._emit(LV,Z,H);if(cl0&&q.ino!==H.ino)this.fsw._closeFile(V),q=H,this.fsw._addPathCloser(V,this._watchWithNodeFs(Z,K));else q=H}catch(H){this.fsw._remove(J,$)}else if(Y.has($)){let{atimeMs:H,mtimeMs:x}=U;if(!H||H<=x||x!==q.mtimeMs)this.fsw._emit(LV,Z,U);q=U}},W=this._watchWithNodeFs(Z,K);if(!(Q&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(Z)){if(!this.fsw._throttle(DV,Z,0))return;this.fsw._emit(DV,Z,X)}return W}async _handleSymlink(Z,X,Q,J){if(this.fsw.closed)return;let $=Z.fullPath,Y=this.fsw._getWatchedDir(X);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let q;try{q=await Qj(Q)}catch(K){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;if(Y.has(J)){if(this.fsw._symlinkPaths.get($)!==q)this.fsw._symlinkPaths.set($,q),this.fsw._emit(LV,Q,Z.stats)}else Y.add(J),this.fsw._symlinkPaths.set($,q),this.fsw._emit(DV,Q,Z.stats);return this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has($))return!0;this.fsw._symlinkPaths.set($,!0)}_handleRead(Z,X,Q,J,$,Y,q){if(Z=R8.join(Z,hl0),!Q.hasGlob){if(q=this.fsw._throttle("readdir",Z,1000),!q)return}let K=this.fsw._getWatchedDir(Q.path),W=new Set,V=this.fsw._readdirp(Z,{fileFilter:(U)=>Q.filterPath(U),directoryFilter:(U)=>Q.filterDir(U),depth:0}).on(ll0,async(U)=>{if(this.fsw.closed){V=void 0;return}let H=U.path,x=R8.join(Z,H);if(W.add(H),U.stats.isSymbolicLink()&&await this._handleSymlink(U,Z,x,H))return;if(this.fsw.closed){V=void 0;return}if(H===J||!J&&!K.has(H))this.fsw._incrReadyCount(),x=R8.join($,R8.relative($,x)),this._addToNodeFs(x,X,Q,Y+1)}).on(ns,this._boundHandleError);return new Promise((U)=>V.once(il0,()=>{if(this.fsw.closed){V=void 0;return}let H=q?q.clear():!1;if(U(),K.getChildren().filter((x)=>{return x!==Z&&!W.has(x)&&(!Q.hasGlob||Q.filterPath({fullPath:R8.resolve(Z,x)}))}).forEach((x)=>{this.fsw._remove(Z,x)}),V=void 0,H)this._handleRead(Z,!1,Q,J,$,Y,q)}))}async _handleDir(Z,X,Q,J,$,Y,q){let K=this.fsw._getWatchedDir(R8.dirname(Z)),W=K.has(R8.basename(Z));if(!(Q&&this.fsw.options.ignoreInitial)&&!$&&!W){if(!Y.hasGlob||Y.globFilter(Z))this.fsw._emit(pl0,Z,X)}K.add(R8.basename(Z)),this.fsw._getWatchedDir(Z);let V,U,H=this.fsw.options.depth;if((H==null||J<=H)&&!this.fsw._symlinkPaths.has(q)){if(!$){if(await this._handleRead(Z,Q,Y,$,Z,J,V),this.fsw.closed)return}U=this._watchWithNodeFs(Z,(x,M)=>{if(M&&M.mtimeMs===0)return;this._handleRead(x,!1,Y,$,Z,J,V)})}return U}async _addToNodeFs(Z,X,Q,J,$){let Y=this.fsw._emitReady;if(this.fsw._isIgnored(Z)||this.fsw.closed)return Y(),!1;let q=this.fsw._getWatchHelpers(Z,J);if(!q.hasGlob&&Q)q.hasGlob=Q.hasGlob,q.globFilter=Q.globFilter,q.filterPath=(K)=>Q.filterPath(K),q.filterDir=(K)=>Q.filterDir(K);try{let K=await tl0[q.statMethod](q.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(q.watchPath,K))return Y(),!1;let W=this.fsw.options.followSymlinks&&!Z.includes(nl0)&&!Z.includes(ol0),V;if(K.isDirectory()){let U=R8.resolve(Z),H=W?await Qj(Z):Z;if(this.fsw.closed)return;if(V=await this._handleDir(q.watchPath,K,X,J,$,q,H),this.fsw.closed)return;if(U!==H&&H!==void 0)this.fsw._symlinkPaths.set(U,H)}else if(K.isSymbolicLink()){let U=W?await Qj(Z):Z;if(this.fsw.closed)return;let H=R8.dirname(q.watchPath);if(this.fsw._getWatchedDir(H).add(q.watchPath),this.fsw._emit(DV,q.watchPath,K),V=await this._handleDir(H,K,X,J,Z,q,U),this.fsw.closed)return;if(U!==void 0)this.fsw._symlinkPaths.set(R8.resolve(Z),U)}else V=this._handleFile(q.watchPath,K,X);return Y(),this.fsw._addPathCloser(Z,V),!1}catch(K){if(this.fsw._handleError(K))return Y(),Z}}}ts.exports=rs});var Ka=a((YZ1,Uj)=>{var zj=P0("fs"),O8=P0("path"),{promisify:Vj}=P0("util"),YQ;try{YQ=(()=>{throw new Error("Cannot require module "+"fsevents");})()}catch(Z){if(process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR)console.error(Z)}if(YQ){let Z=process.version.match(/v(\d+)\.(\d+)/);if(Z&&Z[1]&&Z[2]){let X=Number.parseInt(Z[1],10),Q=Number.parseInt(Z[2],10);if(X===8&&Q<16)YQ=void 0}}var{EV_ADD:Yj,EV_CHANGE:Qi0,EV_ADD_DIR:Za,EV_UNLINK:CV,EV_ERROR:Ji0,STR_DATA:$i0,STR_END:Yi0,FSEVENT_CREATED:qi0,FSEVENT_MODIFIED:Ki0,FSEVENT_DELETED:Wi0,FSEVENT_MOVED:zi0,FSEVENT_UNKNOWN:Vi0,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:Ui0,FSEVENT_TYPE_FILE:Gi0,FSEVENT_TYPE_DIRECTORY:BY,FSEVENT_TYPE_SYMLINK:Ya,ROOT_GLOBSTAR:Xa,DIR_SUFFIX:Hi0,DOT_SLASH:Qa,FUNCTION_TYPE:qj,EMPTY_FN:xi0,IDENTITY_FN:Bi0}=NV(),Mi0=(Z)=>isNaN(Z)?{}:{depth:Z},Wj=Vj(zj.stat),Fi0=Vj(zj.lstat),Ja=Vj(zj.realpath),Ni0={stat:Wj,lstat:Fi0},W3=new Map,Di0=10,Li0=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),ji0=(Z,X)=>{return{stop:YQ.watch(Z,X)}};function wi0(Z,X,Q,J){let $=O8.extname(X)?O8.dirname(X):X,Y=O8.dirname($),q=W3.get($);if(Ci0(Y))$=Y;let K=O8.resolve(Z),W=K!==X,V=(H,x,M)=>{if(W)H=H.replace(X,K);if(H===K||!H.indexOf(K+O8.sep))Q(H,x,M)},U=!1;for(let H of W3.keys())if(X.indexOf(O8.resolve(H)+O8.sep)===0){$=H,q=W3.get($),U=!0;break}if(q||U)q.listeners.add(V);else q={listeners:new Set([V]),rawEmitter:J,watcher:ji0($,(H,x)=>{if(!q.listeners.size)return;if(x&Ui0)return;let M=YQ.getInfo(H,x);q.listeners.forEach((F)=>{F(H,x,M)}),q.rawEmitter(M.event,H,M)})},W3.set($,q);return()=>{let H=q.listeners;if(H.delete(V),!H.size){if(W3.delete($),q.watcher)return q.watcher.stop().then(()=>{q.rawEmitter=q.watcher=void 0,Object.freeze(q)})}}}var Ci0=(Z)=>{let X=0;for(let Q of W3.keys())if(Q.indexOf(Z)===0){if(X++,X>=Di0)return!0}return!1},Ri0=()=>YQ&&W3.size<128,Kj=(Z,X)=>{let Q=0;while(!Z.indexOf(X)&&(Z=O8.dirname(Z))!==X)Q++;return Q},$a=(Z,X)=>Z.type===BY&&X.isDirectory()||Z.type===Ya&&X.isSymbolicLink()||Z.type===Gi0&&X.isFile();class qa{constructor(Z){this.fsw=Z}checkIgnored(Z,X){let Q=this.fsw._ignoredPaths;if(this.fsw._isIgnored(Z,X)){if(Q.add(Z),X&&X.isDirectory())Q.add(Z+Xa);return!0}Q.delete(Z),Q.delete(Z+Xa)}addOrChange(Z,X,Q,J,$,Y,q,K){let W=$.has(Y)?Qi0:Yj;this.handleEvent(W,Z,X,Q,J,$,Y,q,K)}async checkExists(Z,X,Q,J,$,Y,q,K){try{let W=await Wj(Z);if(this.fsw.closed)return;if($a(q,W))this.addOrChange(Z,X,Q,J,$,Y,q,K);else this.handleEvent(CV,Z,X,Q,J,$,Y,q,K)}catch(W){if(W.code==="EACCES")this.addOrChange(Z,X,Q,J,$,Y,q,K);else this.handleEvent(CV,Z,X,Q,J,$,Y,q,K)}}handleEvent(Z,X,Q,J,$,Y,q,K,W){if(this.fsw.closed||this.checkIgnored(X))return;if(Z===CV){let V=K.type===BY;if(V||Y.has(q))this.fsw._remove($,q,V)}else{if(Z===Yj){if(K.type===BY)this.fsw._getWatchedDir(X);if(K.type===Ya&&W.followSymlinks){let U=W.depth===void 0?void 0:Kj(Q,J)+1;return this._addToFsEvents(X,!1,!0,U)}this.fsw._getWatchedDir($).add(q)}let V=K.type===BY?Z+Hi0:Z;if(this.fsw._emit(V,X),V===Za)this._addToFsEvents(X,!1,!0)}}_watchWithFsEvents(Z,X,Q,J){if(this.fsw.closed||this.fsw._isIgnored(Z))return;let $=this.fsw.options,q=wi0(Z,X,async(K,W,V)=>{if(this.fsw.closed)return;if($.depth!==void 0&&Kj(K,X)>$.depth)return;let U=Q(O8.join(Z,O8.relative(Z,K)));if(J&&!J(U))return;let H=O8.dirname(U),x=O8.basename(U),M=this.fsw._getWatchedDir(V.type===BY?U:H);if(Li0.has(W)||V.event===Vi0)if(typeof $.ignored===qj){let F;try{F=await Wj(U)}catch(D){}if(this.fsw.closed)return;if(this.checkIgnored(U,F))return;if($a(V,F))this.addOrChange(U,K,X,H,M,x,V,$);else this.handleEvent(CV,U,K,X,H,M,x,V,$)}else this.checkExists(U,K,X,H,M,x,V,$);else switch(V.event){case qi0:case Ki0:return this.addOrChange(U,K,X,H,M,x,V,$);case Wi0:case zi0:return this.checkExists(U,K,X,H,M,x,V,$)}},this.fsw._emitRaw);return this.fsw._emitReady(),q}async _handleFsEventsSymlink(Z,X,Q,J){if(this.fsw.closed||this.fsw._symlinkPaths.has(X))return;this.fsw._symlinkPaths.set(X,!0),this.fsw._incrReadyCount();try{let $=await Ja(Z);if(this.fsw.closed)return;if(this.fsw._isIgnored($))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents($||Z,(Y)=>{let q=Z;if($&&$!==Qa)q=Y.replace($,Z);else if(Y!==Qa)q=O8.join(Z,Y);return Q(q)},!1,J)}catch($){if(this.fsw._handleError($))return this.fsw._emitReady()}}emitAdd(Z,X,Q,J,$){let Y=Q(Z),q=X.isDirectory(),K=this.fsw._getWatchedDir(O8.dirname(Y)),W=O8.basename(Y);if(q)this.fsw._getWatchedDir(Y);if(K.has(W))return;if(K.add(W),!J.ignoreInitial||$===!0)this.fsw._emit(q?Za:Yj,Y,X)}initWatch(Z,X,Q,J){if(this.fsw.closed)return;let $=this._watchWithFsEvents(Q.watchPath,O8.resolve(Z||Q.watchPath),J,Q.globFilter);this.fsw._addPathCloser(X,$)}async _addToFsEvents(Z,X,Q,J){if(this.fsw.closed)return;let $=this.fsw.options,Y=typeof X===qj?X:Bi0,q=this.fsw._getWatchHelpers(Z);try{let K=await Ni0[q.statMethod](q.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(q.watchPath,K))throw null;if(K.isDirectory()){if(!q.globFilter)this.emitAdd(Y(Z),K,Y,$,Q);if(J&&J>$.depth)return;this.fsw._readdirp(q.watchPath,{fileFilter:(W)=>q.filterPath(W),directoryFilter:(W)=>q.filterDir(W),...Mi0($.depth-(J||0))}).on($i0,(W)=>{if(this.fsw.closed)return;if(W.stats.isDirectory()&&!q.filterPath(W))return;let V=O8.join(q.watchPath,W.path),{fullPath:U}=W;if(q.followSymlinks&&W.stats.isSymbolicLink()){let H=$.depth===void 0?void 0:Kj(V,O8.resolve(q.watchPath))+1;this._handleFsEventsSymlink(V,U,Y,H)}else this.emitAdd(V,W.stats,Y,$,Q)}).on(Ji0,xi0).on(Yi0,()=>{this.fsw._emitReady()})}else this.emitAdd(q.watchPath,K,Y,$,Q),this.fsw._emitReady()}catch(K){if(!K||this.fsw._handleError(K))this.fsw._emitReady(),this.fsw._emitReady()}if($.persistent&&Q!==!0)if(typeof X===qj)this.initWatch(void 0,Z,q,Y);else{let K;try{K=await Ja(q.watchPath)}catch(W){}this.initWatch(K,Z,q,Y)}}}Uj.exports=qa;Uj.exports.canUse=Ri0});var La=a((Qo0)=>{var{EventEmitter:Oi0}=P0("events"),wj=P0("fs"),Q2=P0("path"),{promisify:xa}=P0("util"),Ii0=vs(),Fj=cs().default,_i0=qB(),Gj=$B(),Si0=HB(),Ti0=tL(),Pi0=es(),Wa=Ka(),{EV_ALL:Hj,EV_READY:Ai0,EV_ADD:RV,EV_CHANGE:MY,EV_UNLINK:za,EV_ADD_DIR:Ei0,EV_UNLINK_DIR:vi0,EV_RAW:ki0,EV_ERROR:xj,STR_CLOSE:fi0,STR_END:bi0,BACK_SLASH_RE:mi0,DOUBLE_SLASH_RE:Va,SLASH_OR_BACK_SLASH_RE:yi0,DOT_RE:gi0,REPLACER_RE:ci0,SLASH:Bj,SLASH_SLASH:ui0,BRACE_START:hi0,BANG:Nj,ONE_DOT:Ba,TWO_DOTS:di0,GLOBSTAR:pi0,SLASH_GLOBSTAR:Mj,ANYMATCH_OPTS:Dj,STRING_TYPE:Cj,FUNCTION_TYPE:li0,EMPTY_STR:Lj,EMPTY_FN:ii0,isWindows:oi0,isMacos:ni0,isIBMi:si0}=NV(),ai0=xa(wj.stat),ri0=xa(wj.readdir),jj=(Z=[])=>Array.isArray(Z)?Z:[Z],Ma=(Z,X=[])=>{return Z.forEach((Q)=>{if(Array.isArray(Q))Ma(Q,X);else X.push(Q)}),X},Ua=(Z)=>{let X=Ma(jj(Z));if(!X.every((Q)=>typeof Q===Cj))throw new TypeError(`Non-string provided as watch path: ${X}`);return X.map(Fa)},Ga=(Z)=>{let X=Z.replace(mi0,Bj),Q=!1;if(X.startsWith(ui0))Q=!0;while(X.match(Va))X=X.replace(Va,Bj);if(Q)X=Bj+X;return X},Fa=(Z)=>Ga(Q2.normalize(Ga(Z))),Ha=(Z=Lj)=>(X)=>{if(typeof X!==Cj)return X;return Fa(Q2.isAbsolute(X)?X:Q2.join(Z,X))},ti0=(Z,X)=>{if(Q2.isAbsolute(Z))return Z;if(Z.startsWith(Nj))return Nj+Q2.join(X,Z.slice(1));return Q2.join(X,Z)},D7=(Z,X)=>Z[X]===void 0;class Na{constructor(Z,X){this.path=Z,this._removeWatcher=X,this.items=new Set}add(Z){let{items:X}=this;if(!X)return;if(Z!==Ba&&Z!==di0)X.add(Z)}async remove(Z){let{items:X}=this;if(!X)return;if(X.delete(Z),X.size>0)return;let Q=this.path;try{await ri0(Q)}catch(J){if(this._removeWatcher)this._removeWatcher(Q2.dirname(Q),Q2.basename(Q))}}has(Z){let{items:X}=this;if(!X)return;return X.has(Z)}getChildren(){let{items:Z}=this;if(!Z)return;return[...Z.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}}var ei0="stat",Zo0="lstat";class Da{constructor(Z,X,Q,J){if(this.fsw=J,this.path=Z=Z.replace(ci0,Lj),this.watchPath=X,this.fullWatchPath=Q2.resolve(X),this.hasGlob=X!==Z,Z===Lj)this.hasGlob=!1;this.globSymlink=this.hasGlob&&Q?void 0:!1,this.globFilter=this.hasGlob?Fj(Z,void 0,Dj):!1,this.dirParts=this.getDirParts(Z),this.dirParts.forEach(($)=>{if($.length>1)$.pop()}),this.followSymlinks=Q,this.statMethod=Q?ei0:Zo0}checkGlobSymlink(Z){if(this.globSymlink===void 0)this.globSymlink=Z.fullParentDir===this.fullWatchPath?!1:{realPath:Z.fullParentDir,linkPath:this.fullWatchPath};if(this.globSymlink)return Z.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath);return Z.fullPath}entryPath(Z){return Q2.join(this.watchPath,Q2.relative(this.watchPath,this.checkGlobSymlink(Z)))}filterPath(Z){let{stats:X}=Z;if(X&&X.isSymbolicLink())return this.filterDir(Z);let Q=this.entryPath(Z);return(this.hasGlob&&typeof this.globFilter===li0?this.globFilter(Q):!0)&&this.fsw._isntIgnored(Q,X)&&this.fsw._hasReadPermissions(X)}getDirParts(Z){if(!this.hasGlob)return[];let X=[];return(Z.includes(hi0)?Si0.expand(Z):[Z]).forEach((J)=>{X.push(Q2.relative(this.watchPath,J).split(yi0))}),X}filterDir(Z){if(this.hasGlob){let X=this.getDirParts(this.checkGlobSymlink(Z)),Q=!1;this.unmatchedGlob=!this.dirParts.some((J)=>{return J.every(($,Y)=>{if($===pi0)Q=!0;return Q||!X[0][Y]||Fj($,X[0][Y],Dj)})})}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(Z),Z.stats)}}class Rj extends Oi0{constructor(Z){super();let X={};if(Z)Object.assign(X,Z);if(this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,D7(X,"persistent"))X.persistent=!0;if(D7(X,"ignoreInitial"))X.ignoreInitial=!1;if(D7(X,"ignorePermissionErrors"))X.ignorePermissionErrors=!1;if(D7(X,"interval"))X.interval=100;if(D7(X,"binaryInterval"))X.binaryInterval=300;if(D7(X,"disableGlobbing"))X.disableGlobbing=!1;if(X.enableBinaryInterval=X.binaryInterval!==X.interval,D7(X,"useFsEvents"))X.useFsEvents=!X.usePolling;if(!Wa.canUse())X.useFsEvents=!1;if(D7(X,"usePolling")&&!X.useFsEvents)X.usePolling=ni0;if(si0)X.usePolling=!0;let J=process.env.CHOKIDAR_USEPOLLING;if(J!==void 0){let K=J.toLowerCase();if(K==="false"||K==="0")X.usePolling=!1;else if(K==="true"||K==="1")X.usePolling=!0;else X.usePolling=!!K}let $=process.env.CHOKIDAR_INTERVAL;if($)X.interval=Number.parseInt($,10);if(D7(X,"atomic"))X.atomic=!X.usePolling&&!X.useFsEvents;if(X.atomic)this._pendingUnlinks=new Map;if(D7(X,"followSymlinks"))X.followSymlinks=!0;if(D7(X,"awaitWriteFinish"))X.awaitWriteFinish=!1;if(X.awaitWriteFinish===!0)X.awaitWriteFinish={};let Y=X.awaitWriteFinish;if(Y){if(!Y.stabilityThreshold)Y.stabilityThreshold=2000;if(!Y.pollInterval)Y.pollInterval=100;this._pendingWrites=new Map}if(X.ignored)X.ignored=jj(X.ignored);let q=0;if(this._emitReady=()=>{if(q++,q>=this._readyCount)this._emitReady=ii0,this._readyEmitted=!0,process.nextTick(()=>this.emit(Ai0))},this._emitRaw=(...K)=>this.emit(ki0,...K),this._readyEmitted=!1,this.options=X,X.useFsEvents)this._fsEventsHandler=new Wa(this);else this._nodeFsHandler=new Pi0(this);Object.freeze(X)}add(Z,X,Q){let{cwd:J,disableGlobbing:$}=this.options;this.closed=!1;let Y=Ua(Z);if(J)Y=Y.map((q)=>{let K=ti0(q,J);if($||!Gj(q))return K;return Ti0(K)});if(Y=Y.filter((q)=>{if(q.startsWith(Nj))return this._ignoredPaths.add(q.slice(1)),!1;return this._ignoredPaths.delete(q),this._ignoredPaths.delete(q+Mj),this._userIgnored=void 0,!0}),this.options.useFsEvents&&this._fsEventsHandler){if(!this._readyCount)this._readyCount=Y.length;if(this.options.persistent)this._readyCount+=Y.length;Y.forEach((q)=>this._fsEventsHandler._addToFsEvents(q))}else{if(!this._readyCount)this._readyCount=0;this._readyCount+=Y.length,Promise.all(Y.map(async(q)=>{let K=await this._nodeFsHandler._addToNodeFs(q,!Q,0,0,X);if(K)this._emitReady();return K})).then((q)=>{if(this.closed)return;q.filter((K)=>K).forEach((K)=>{this.add(Q2.dirname(K),Q2.basename(X||K))})})}return this}unwatch(Z){if(this.closed)return this;let X=Ua(Z),{cwd:Q}=this.options;return X.forEach((J)=>{if(!Q2.isAbsolute(J)&&!this._closers.has(J)){if(Q)J=Q2.join(Q,J);J=Q2.resolve(J)}if(this._closePath(J),this._ignoredPaths.add(J),this._watched.has(J))this._ignoredPaths.add(J+Mj);this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let Z=[];return this._closers.forEach((X)=>X.forEach((Q)=>{let J=Q();if(J instanceof Promise)Z.push(J)})),this._streams.forEach((X)=>X.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach((X)=>X.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach((X)=>{this[`_${X}`].clear()}),this._closePromise=Z.length?Promise.all(Z).then(()=>{return}):Promise.resolve(),this._closePromise}getWatched(){let Z={};return this._watched.forEach((X,Q)=>{let J=this.options.cwd?Q2.relative(this.options.cwd,Q):Q;Z[J||Ba]=X.getChildren().sort()}),Z}emitWithAll(Z,X){if(this.emit(...X),Z!==xj)this.emit(Hj,...X)}async _emit(Z,X,Q,J,$){if(this.closed)return;let Y=this.options;if(oi0)X=Q2.normalize(X);if(Y.cwd)X=Q2.relative(Y.cwd,X);let q=[Z,X];if($!==void 0)q.push(Q,J,$);else if(J!==void 0)q.push(Q,J);else if(Q!==void 0)q.push(Q);let K=Y.awaitWriteFinish,W;if(K&&(W=this._pendingWrites.get(X)))return W.lastChange=new Date,this;if(Y.atomic){if(Z===za)return this._pendingUnlinks.set(X,q),setTimeout(()=>{this._pendingUnlinks.forEach((V,U)=>{this.emit(...V),this.emit(Hj,...V),this._pendingUnlinks.delete(U)})},typeof Y.atomic==="number"?Y.atomic:100),this;if(Z===RV&&this._pendingUnlinks.has(X))Z=q[0]=MY,this._pendingUnlinks.delete(X)}if(K&&(Z===RV||Z===MY)&&this._readyEmitted){let V=(U,H)=>{if(U)Z=q[0]=xj,q[1]=U,this.emitWithAll(Z,q);else if(H){if(q.length>2)q[2]=H;else q.push(H);this.emitWithAll(Z,q)}};return this._awaitWriteFinish(X,K.stabilityThreshold,Z,V),this}if(Z===MY){if(!this._throttle(MY,X,50))return this}if(Y.alwaysStat&&Q===void 0&&(Z===RV||Z===Ei0||Z===MY)){let V=Y.cwd?Q2.join(Y.cwd,X):X,U;try{U=await ai0(V)}catch(H){}if(!U||this.closed)return;q.push(U)}return this.emitWithAll(Z,q),this}_handleError(Z){let X=Z&&Z.code;if(Z&&X!=="ENOENT"&&X!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||X!=="EPERM"&&X!=="EACCES"))this.emit(xj,Z);return Z||this.closed}_throttle(Z,X,Q){if(!this._throttled.has(Z))this._throttled.set(Z,new Map);let J=this._throttled.get(Z),$=J.get(X);if($)return $.count++,!1;let Y,q=()=>{let W=J.get(X),V=W?W.count:0;if(J.delete(X),clearTimeout(Y),W)clearTimeout(W.timeoutObject);return V};Y=setTimeout(q,Q);let K={timeoutObject:Y,clear:q,count:0};return J.set(X,K),K}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(Z,X,Q,J){let $,Y=Z;if(this.options.cwd&&!Q2.isAbsolute(Z))Y=Q2.join(this.options.cwd,Z);let q=new Date,K=(W)=>{wj.stat(Y,(V,U)=>{if(V||!this._pendingWrites.has(Z)){if(V&&V.code!=="ENOENT")J(V);return}let H=Number(new Date);if(W&&U.size!==W.size)this._pendingWrites.get(Z).lastChange=H;let x=this._pendingWrites.get(Z);if(H-x.lastChange>=X)this._pendingWrites.delete(Z),J(void 0,U);else $=setTimeout(K,this.options.awaitWriteFinish.pollInterval,U)})};if(!this._pendingWrites.has(Z))this._pendingWrites.set(Z,{lastChange:q,cancelWait:()=>{return this._pendingWrites.delete(Z),clearTimeout($),Q}}),$=setTimeout(K,this.options.awaitWriteFinish.pollInterval)}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(Z,X){if(this.options.atomic&&gi0.test(Z))return!0;if(!this._userIgnored){let{cwd:Q}=this.options,J=this.options.ignored,$=J&&J.map(Ha(Q)),Y=jj($).filter((K)=>typeof K===Cj&&!Gj(K)).map((K)=>K+Mj),q=this._getGlobIgnored().map(Ha(Q)).concat($,Y);this._userIgnored=Fj(q,void 0,Dj)}return this._userIgnored([Z,X])}_isntIgnored(Z,X){return!this._isIgnored(Z,X)}_getWatchHelpers(Z,X){let Q=X||this.options.disableGlobbing||!Gj(Z)?Z:_i0(Z),J=this.options.followSymlinks;return new Da(Z,Q,J,this)}_getWatchedDir(Z){if(!this._boundRemove)this._boundRemove=this._remove.bind(this);let X=Q2.resolve(Z);if(!this._watched.has(X))this._watched.set(X,new Na(X,this._boundRemove));return this._watched.get(X)}_hasReadPermissions(Z){if(this.options.ignorePermissionErrors)return!0;let Q=(Z&&Number.parseInt(Z.mode,10))&511,J=Number.parseInt(Q.toString(8)[0],10);return Boolean(4&J)}_remove(Z,X,Q){let J=Q2.join(Z,X),$=Q2.resolve(J);if(Q=Q!=null?Q:this._watched.has(J)||this._watched.has($),!this._throttle("remove",J,100))return;if(!Q&&!this.options.useFsEvents&&this._watched.size===1)this.add(Z,X,!0);this._getWatchedDir(J).getChildren().forEach((H)=>this._remove(J,H));let K=this._getWatchedDir(Z),W=K.has(X);if(K.remove(X),this._symlinkPaths.has($))this._symlinkPaths.delete($);let V=J;if(this.options.cwd)V=Q2.relative(this.options.cwd,J);if(this.options.awaitWriteFinish&&this._pendingWrites.has(V)){if(this._pendingWrites.get(V).cancelWait()===RV)return}this._watched.delete(J),this._watched.delete($);let U=Q?vi0:za;if(W&&!this._isIgnored(J))this._emit(U,J);if(!this.options.useFsEvents)this._closePath(J)}_closePath(Z){this._closeFile(Z);let X=Q2.dirname(Z);this._getWatchedDir(X).remove(Q2.basename(Z))}_closeFile(Z){let X=this._closers.get(Z);if(!X)return;X.forEach((Q)=>Q()),this._closers.delete(Z)}_addPathCloser(Z,X){if(!X)return;let Q=this._closers.get(Z);if(!Q)Q=[],this._closers.set(Z,Q);Q.push(X)}_readdirp(Z,X){if(this.closed)return;let Q={type:Hj,alwaysStat:!0,lstat:!0,...X},J=Ii0(Z,Q);return this._streams.add(J),J.once(fi0,()=>{J=void 0}),J.once(bi0,()=>{if(J)this._streams.delete(J),J=void 0}),J}}Qo0.FSWatcher=Rj;var Xo0=(Z,X)=>{let Q=new Rj(X);return Q.add(Z),Q};Qo0.watch=Xo0});var Ea=a((KZ1,_V)=>{function Ca(Z){return Array.isArray(Z)?Z:[Z]}var Yo0=void 0,Ij="",ja=" ",Oj="\\",qo0=/^\s+$/,Ko0=/(?:[^\\]|^)\\$/,Wo0=/^\\!/,zo0=/^\\#/,Vo0=/\r?\n/g,Uo0=/^\.{0,2}\/|^\.{1,2}$/,Go0=/\/$/,qQ="/",Ra="node-ignore";if(typeof Symbol!=="undefined")Ra=Symbol.for("node-ignore");var Oa=Ra,KQ=(Z,X,Q)=>{return Object.defineProperty(Z,X,{value:Q}),Q},Ho0=/([0-z])-([0-z])/g,Ia=()=>!1,xo0=(Z)=>Z.replace(Ho0,(X,Q,J)=>Q.charCodeAt(0)<=J.charCodeAt(0)?X:Ij),Bo0=(Z)=>{let{length:X}=Z;return Z.slice(0,X-X%2)},Mo0=[[/^\uFEFF/,()=>Ij],[/((?:\\\\)*?)(\\?\s+)$/,(Z,X,Q)=>X+(Q.indexOf("\\")===0?ja:Ij)],[/(\\+?)\s/g,(Z,X)=>{let{length:Q}=X;return X.slice(0,Q-Q%2)+ja}],[/[\\$.|*+(){^]/g,(Z)=>`\\${Z}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function Z(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(Z,X,Q)=>X+6<Q.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(Z,X,Q)=>{let J=Q.replace(/\\\*/g,"[^\\/]*");return X+J}],[/\\\\\\(?=[$.|*+(){^])/g,()=>Oj],[/\\\\/g,()=>Oj],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(Z,X,Q,J,$)=>X===Oj?`\\[${Q}${Bo0(J)}${$}`:$==="]"?J.length%2===0?`[${xo0(Q)}${J}]`:"[]":"[]"],[/(?:[^*])$/,(Z)=>/\/$/.test(Z)?`${Z}$`:`${Z}(?=$|\\/$)`]],Fo0=/(^|\\\/)?\\\*$/,FY="regex",OV="checkRegex",wa="_",No0={[FY](Z,X){return`${X?`${X}[^/]+`:"[^/]*"}(?=$|\\/$)`},[OV](Z,X){return`${X?`${X}[^/]*`:"[^/]*"}(?=$|\\/$)`}},Do0=(Z)=>Mo0.reduce((X,[Q,J])=>X.replace(Q,J.bind(Z)),Z),IV=(Z)=>typeof Z==="string",Lo0=(Z)=>Z&&IV(Z)&&!qo0.test(Z)&&!Ko0.test(Z)&&Z.indexOf("#")!==0,jo0=(Z)=>Z.split(Vo0).filter(Boolean);class _a{constructor(Z,X,Q,J,$,Y){this.pattern=Z,this.mark=X,this.negative=$,KQ(this,"body",Q),KQ(this,"ignoreCase",J),KQ(this,"regexPrefix",Y)}get regex(){let Z=wa+FY;if(this[Z])return this[Z];return this._make(FY,Z)}get checkRegex(){let Z=wa+OV;if(this[Z])return this[Z];return this._make(OV,Z)}_make(Z,X){let Q=this.regexPrefix.replace(Fo0,No0[Z]),J=this.ignoreCase?new RegExp(Q,"i"):new RegExp(Q);return KQ(this,X,J)}}var wo0=({pattern:Z,mark:X},Q)=>{let J=!1,$=Z;if($.indexOf("!")===0)J=!0,$=$.substr(1);$=$.replace(Wo0,"!").replace(zo0,"#");let Y=Do0($);return new _a(Z,X,$,Q,J,Y)};class Sa{constructor(Z){this._ignoreCase=Z,this._rules=[]}_add(Z){if(Z&&Z[Oa]){this._rules=this._rules.concat(Z._rules._rules),this._added=!0;return}if(IV(Z))Z={pattern:Z};if(Lo0(Z.pattern)){let X=wo0(Z,this._ignoreCase);this._added=!0,this._rules.push(X)}}add(Z){return this._added=!1,Ca(IV(Z)?jo0(Z):Z).forEach(this._add,this),this._added}test(Z,X,Q){let J=!1,$=!1,Y;this._rules.forEach((K)=>{let{negative:W}=K;if($===W&&J!==$||W&&!J&&!$&&!X)return;if(!K[Q].test(Z))return;J=!W,$=W,Y=W?Yo0:K});let q={ignored:J,unignored:$};if(Y)q.rule=Y;return q}}var Co0=(Z,X)=>{throw new X(Z)},m5=(Z,X,Q)=>{if(!IV(Z))return Q(`path must be a string, but got \`${X}\``,TypeError);if(!Z)return Q("path must not be empty",TypeError);if(m5.isNotRelative(Z))return Q(`path should be a \`path.relative()\`d string, but got "${X}"`,RangeError);return!0},Ta=(Z)=>Uo0.test(Z);m5.isNotRelative=Ta;m5.convert=(Z)=>Z;class Pa{constructor({ignorecase:Z=!0,ignoreCase:X=Z,allowRelativePaths:Q=!1}={}){KQ(this,Oa,!0),this._rules=new Sa(X),this._strictPathCheck=!Q,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(Z){if(this._rules.add(Z))this._initCache();return this}addPattern(Z){return this.add(Z)}_test(Z,X,Q,J){let $=Z&&m5.convert(Z);return m5($,Z,this._strictPathCheck?Co0:Ia),this._t($,X,Q,J)}checkIgnore(Z){if(!Go0.test(Z))return this.test(Z);let X=Z.split(qQ).filter(Boolean);if(X.pop(),X.length){let Q=this._t(X.join(qQ)+qQ,this._testCache,!0,X);if(Q.ignored)return Q}return this._rules.test(Z,!1,OV)}_t(Z,X,Q,J){if(Z in X)return X[Z];if(!J)J=Z.split(qQ).filter(Boolean);if(J.pop(),!J.length)return X[Z]=this._rules.test(Z,Q,FY);let $=this._t(J.join(qQ)+qQ,X,Q,J);return X[Z]=$.ignored?$:this._rules.test(Z,Q,FY)}ignores(Z){return this._test(Z,this._ignoreCache,!1).ignored}createFilter(){return(Z)=>!this.ignores(Z)}filter(Z){return Ca(Z).filter(this.createFilter())}test(Z){return this._test(Z,this._testCache,!0)}}var _j=(Z)=>new Pa(Z),Ro0=(Z)=>m5(Z&&m5.convert(Z),Z,Ia),Aa=()=>{let Z=(Q)=>/^\\\\\?\\/.test(Q)||/["<>|\u0000-\u001F]+/u.test(Q)?Q:Q.replace(/\\/g,"/");m5.convert=Z;let X=/^[a-z]:\//i;m5.isNotRelative=(Q)=>X.test(Q)||Ta(Q)};if(typeof process!=="undefined"&&process.platform==="win32")Aa();_V.exports=_j;_j.default=_j;_V.exports.isPathValid=Ro0;KQ(_V.exports,Symbol.for("setupWindows"),Aa)});var ma=a((W6)=>{var So0=W6&&W6.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(W6,"__esModule",{value:!0});var To0=P0("fs"),Po0=So0(GK()),WQ=Po0.default("@kwsites/file-exists");function Ao0(Z,X,Q){WQ("checking %s",Z);try{let J=To0.statSync(Z);if(J.isFile()&&X)return WQ("[OK] path represents a file"),!0;if(J.isDirectory()&&Q)return WQ("[OK] path represents a directory"),!0;return WQ("[FAIL] path represents something other than a file or directory"),!1}catch(J){if(J.code==="ENOENT")return WQ("[FAIL] path is not accessible: %o",J),!1;throw WQ("[FATAL] %o",J),J}}function Eo0(Z,X=W6.READABLE){return Ao0(Z,(X&W6.FILE)>0,(X&W6.FOLDER)>0)}W6.exists=Eo0;W6.FILE=1;W6.FOLDER=2;W6.READABLE=W6.FILE+W6.FOLDER});var ya=a((Pj)=>{function vo0(Z){for(var X in Z)if(!Pj.hasOwnProperty(X))Pj[X]=Z[X]}Object.defineProperty(Pj,"__esModule",{value:!0});vo0(ma())});var vj=a((ga)=>{Object.defineProperty(ga,"__esModule",{value:!0});ga.createDeferred=ga.deferred=void 0;function Ej(){let Z,X,Q="pending";return{promise:new Promise(($,Y)=>{Z=$,X=Y}),done($){if(Q==="pending")Q="resolved",Z($)},fail($){if(Q==="pending")Q="rejected",X($)},get fulfilled(){return Q!=="pending"},get status(){return Q}}}ga.deferred=Ej;ga.createDeferred=Ej;ga.default=Ej});var XO="1.0.2";var LO=F6(DO(),1),{program:ar0,createCommand:rr0,createArgument:tr0,createOption:er0,CommanderError:Zt0,InvalidArgumentError:JZ,InvalidOptionArgumentError:Xt0,Command:u8,Argument:Qt0,Option:Jt0,Help:$t0}=LO.default;import XE from"fs";var wG=(Z,X,Q)=>{let J=Z instanceof RegExp?jO(Z,Q):Z,$=X instanceof RegExp?jO(X,Q):X,Y=J!==null&&$!=null&&o50(J,$,Q);return Y&&{start:Y[0],end:Y[1],pre:Q.slice(0,Y[0]),body:Q.slice(Y[0]+J.length,Y[1]),post:Q.slice(Y[1]+$.length)}},jO=(Z,X)=>{let Q=X.match(Z);return Q?Q[0]:null},o50=(Z,X,Q)=>{let J,$,Y,q=void 0,K,W=Q.indexOf(Z),V=Q.indexOf(X,W+1),U=W;if(W>=0&&V>0){if(Z===X)return[W,V];J=[],Y=Q.length;while(U>=0&&!K){if(U===W)J.push(U),W=Q.indexOf(Z,U+1);else if(J.length===1){let H=J.pop();if(H!==void 0)K=[H,V]}else{if($=J.pop(),$!==void 0&&$<Y)Y=$,q=V;V=Q.indexOf(X,U+1)}U=W<V&&W>=0?W:V}if(J.length&&q!==void 0)K=[Y,q]}return K};var wO="\x00SLASH"+Math.random()+"\x00",CO="\x00OPEN"+Math.random()+"\x00",RG="\x00CLOSE"+Math.random()+"\x00",RO="\x00COMMA"+Math.random()+"\x00",OO="\x00PERIOD"+Math.random()+"\x00",n50=new RegExp(wO,"g"),s50=new RegExp(CO,"g"),a50=new RegExp(RG,"g"),r50=new RegExp(RO,"g"),t50=new RegExp(OO,"g"),e50=/\\\\/g,Z90=/\\{/g,X90=/\\}/g,Q90=/\\,/g,J90=/\\\./g,$90=1e5;function CG(Z){return!isNaN(Z)?parseInt(Z,10):Z.charCodeAt(0)}function Y90(Z){return Z.replace(e50,wO).replace(Z90,CO).replace(X90,RG).replace(Q90,RO).replace(J90,OO)}function q90(Z){return Z.replace(n50,"\\").replace(s50,"{").replace(a50,"}").replace(r50,",").replace(t50,".")}function IO(Z){if(!Z)return[""];let X=[],Q=wG("{","}",Z);if(!Q)return Z.split(",");let{pre:J,body:$,post:Y}=Q,q=J.split(",");q[q.length-1]+="{"+$+"}";let K=IO(Y);if(Y.length)q[q.length-1]+=K.shift(),q.push.apply(q,K);return X.push.apply(X,q),X}function _O(Z,X={}){if(!Z)return[];let{max:Q=$90}=X;if(Z.slice(0,2)==="{}")Z="\\{\\}"+Z.slice(2);return mQ(Y90(Z),Q,!0).map(q90)}function K90(Z){return"{"+Z+"}"}function W90(Z){return/^-?0\d/.test(Z)}function z90(Z,X){return Z<=X}function V90(Z,X){return Z>=X}function mQ(Z,X,Q){let J=[],$=wG("{","}",Z);if(!$)return[Z];let Y=$.pre,q=$.post.length?mQ($.post,X,!1):[""];if(/\$$/.test($.pre))for(let K=0;K<q.length&&K<X;K++){let W=Y+"{"+$.body+"}"+q[K];J.push(W)}else{let K=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test($.body),W=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test($.body),V=K||W,U=$.body.indexOf(",")>=0;if(!V&&!U){if($.post.match(/,(?!,).*\}/))return Z=$.pre+"{"+$.body+RG+$.post,mQ(Z,X,!0);return[Z]}let H;if(V)H=$.body.split(/\.\./);else if(H=IO($.body),H.length===1&&H[0]!==void 0){if(H=mQ(H[0],X,!1).map(K90),H.length===1)return q.map((M)=>$.pre+H[0]+M)}let x;if(V&&H[0]!==void 0&&H[1]!==void 0){let M=CG(H[0]),F=CG(H[1]),D=Math.max(H[0].length,H[1].length),C=H.length===3&&H[2]!==void 0?Math.max(Math.abs(CG(H[2])),1):1,j=z90;if(F<M)C*=-1,j=V90;let v=H.some(W90);x=[];for(let S=M;j(S,F);S+=C){let c;if(W){if(c=String.fromCharCode(S),c==="\\")c=""}else if(c=String(S),v){let Z0=D-c.length;if(Z0>0){let Q0=new Array(Z0+1).join("0");if(S<0)c="-"+Q0+c.slice(1);else c=Q0+c}}x.push(c)}}else{x=[];for(let M=0;M<H.length;M++)x.push.apply(x,mQ(H[M],X,!1))}for(let M=0;M<x.length;M++)for(let F=0;F<q.length&&J.length<X;F++){let D=Y+x[M]+q[F];if(!Q||V||D)J.push(D)}}return J}var yQ=(Z)=>{if(typeof Z!=="string")throw new TypeError("invalid pattern");if(Z.length>65536)throw new TypeError("pattern is too long")};var U90={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},gQ=(Z)=>Z.replace(/[[\]\\-]/g,"\\$&"),G90=(Z)=>Z.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),SO=(Z)=>Z.join(""),TO=(Z,X)=>{let Q=X;if(Z.charAt(Q)!=="[")throw new Error("not in a brace expression");let J=[],$=[],Y=Q+1,q=!1,K=!1,W=!1,V=!1,U=Q,H="";Z:while(Y<Z.length){let D=Z.charAt(Y);if((D==="!"||D==="^")&&Y===Q+1){V=!0,Y++;continue}if(D==="]"&&q&&!W){U=Y+1;break}if(q=!0,D==="\\"){if(!W){W=!0,Y++;continue}}if(D==="["&&!W){for(let[C,[j,I,v]]of Object.entries(U90))if(Z.startsWith(C,Y)){if(H)return["$.",!1,Z.length-Q,!0];if(Y+=C.length,v)$.push(j);else J.push(j);K=K||I;continue Z}}if(W=!1,H){if(D>H)J.push(gQ(H)+"-"+gQ(D));else if(D===H)J.push(gQ(D));H="",Y++;continue}if(Z.startsWith("-]",Y+1)){J.push(gQ(D+"-")),Y+=2;continue}if(Z.startsWith("-",Y+1)){H=D,Y+=2;continue}J.push(gQ(D)),Y++}if(U<Y)return["",!1,0,!1];if(!J.length&&!$.length)return["$.",!1,Z.length-Q,!0];if($.length===0&&J.length===1&&/^\\?.$/.test(J[0])&&!V){let D=J[0].length===2?J[0].slice(-1):J[0];return[G90(D),!1,U-Q,!1]}let x="["+(V?"^":"")+SO(J)+"]",M="["+(V?"":"^")+SO($)+"]";return[J.length&&$.length?"("+x+"|"+M+")":J.length?x:M,K,U-Q,!0]};var r6=(Z,{windowsPathsNoEscape:X=!1,magicalBraces:Q=!0}={})=>{if(Q)return X?Z.replace(/\[([^/\\])\]/g,"$1"):Z.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1");return X?Z.replace(/\[([^/\\{}])\]/g,"$1"):Z.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1")};var D4,H90=new Set(["!","?","+","*","@"]),OG=(Z)=>H90.has(Z),PO=(Z)=>OG(Z.type),x90=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),B90=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),M90=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),AO=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),F90="(?!(?:^|/)\\.\\.?(?:$|/))",Oq="(?!\\.)",N90=new Set(["[","."]),D90=new Set(["..","."]),L90=new Set("().*{}+?[]^$\\!"),j90=(Z)=>Z.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),IG="[^/]",EO=IG+"*?",vO=IG+"+?",w90=0;class A3{type;#Z;#Q;#$=!1;#X=[];#Y;#z;#B;#U=!1;#K;#H;#G=!1;id=++w90;get depth(){return(this.#Y?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#Z.id,parent:this.#Y?.id,depth:this.depth,partsLength:this.#X.length,parts:this.#X}}constructor(Z,X,Q={}){if(this.type=Z,Z)this.#Q=!0;if(this.#Y=X,this.#Z=this.#Y?this.#Y.#Z:this,this.#K=this.#Z===this?Q:this.#Z.#K,this.#B=this.#Z===this?[]:this.#Z.#B,Z==="!"&&!this.#Z.#U)this.#B.push(this);this.#z=this.#Y?this.#Y.#X.length:0}get hasMagic(){if(this.#Q!==void 0)return this.#Q;for(let Z of this.#X){if(typeof Z==="string")continue;if(Z.type||Z.hasMagic)return this.#Q=!0}return this.#Q}toString(){return this.#H!==void 0?this.#H:!this.type?this.#H=this.#X.map((Z)=>String(Z)).join(""):this.#H=this.type+"("+this.#X.map((Z)=>String(Z)).join("|")+")"}#W(){if(this!==this.#Z)throw new Error("should only call on root");if(this.#U)return this;this.toString(),this.#U=!0;let Z;while(Z=this.#B.pop()){if(Z.type!=="!")continue;let X=Z,Q=X.#Y;while(Q){for(let J=X.#z+1;!Q.type&&J<Q.#X.length;J++)for(let $ of Z.#X){if(typeof $==="string")throw new Error("string part in extglob AST??");$.copyIn(Q.#X[J])}X=Q,Q=X.#Y}}return this}push(...Z){for(let X of Z){if(X==="")continue;if(typeof X!=="string"&&!(X instanceof D4&&X.#Y===this))throw new Error("invalid part: "+X);this.#X.push(X)}}toJSON(){let Z=this.type===null?this.#X.slice().map((X)=>typeof X==="string"?X:X.toJSON()):[this.type,...this.#X.map((X)=>X.toJSON())];if(this.isStart()&&!this.type)Z.unshift([]);if(this.isEnd()&&(this===this.#Z||this.#Z.#U&&this.#Y?.type==="!"))Z.push({});return Z}isStart(){if(this.#Z===this)return!0;if(!this.#Y?.isStart())return!1;if(this.#z===0)return!0;let Z=this.#Y;for(let X=0;X<this.#z;X++){let Q=Z.#X[X];if(!(Q instanceof D4&&Q.type==="!"))return!1}return!0}isEnd(){if(this.#Z===this)return!0;if(this.#Y?.type==="!")return!0;if(!this.#Y?.isEnd())return!1;if(!this.type)return this.#Y?.isEnd();let Z=this.#Y?this.#Y.#X.length:0;return this.#z===Z-1}copyIn(Z){if(typeof Z==="string")this.push(Z);else this.push(Z.clone(this))}clone(Z){let X=new D4(this.type,Z);for(let Q of this.#X)X.copyIn(Q);return X}static#q(Z,X,Q,J,$){let Y=J.maxExtglobRecursion??2,q=!1,K=!1,W=-1,V=!1;if(X.type===null){let F=Q,D="";while(F<Z.length){let C=Z.charAt(F++);if(q||C==="\\"){q=!q,D+=C;continue}if(K){if(F===W+1){if(C==="^"||C==="!")V=!0}else if(C==="]"&&!(F===W+2&&V))K=!1;D+=C;continue}else if(C==="["){K=!0,W=F,V=!1,D+=C;continue}if(!J.noext&&OG(C)&&Z.charAt(F)==="("&&$<=Y){X.push(D),D="";let I=new D4(C,X);F=D4.#q(Z,I,F,J,$+1),X.push(I);continue}D+=C}return X.push(D),F}let U=Q+1,H=new D4(null,X),x=[],M="";while(U<Z.length){let F=Z.charAt(U++);if(q||F==="\\"){q=!q,M+=F;continue}if(K){if(U===W+1){if(F==="^"||F==="!")V=!0}else if(F==="]"&&!(U===W+2&&V))K=!1;M+=F;continue}else if(F==="["){K=!0,W=U,V=!1,M+=F;continue}if(!J.noext&&OG(F)&&Z.charAt(U)==="("&&($<=Y||X&&X.#M(F))){let C=X&&X.#M(F)?0:1;H.push(M),M="";let j=new D4(F,H);H.push(j),U=D4.#q(Z,j,U,J,$+C);continue}if(F==="|"){H.push(M),M="",x.push(H),H=new D4(null,X);continue}if(F===")"){if(M===""&&X.#X.length===0)X.#G=!0;return H.push(M),M="",X.push(...x,H),U}M+=F}return X.type=null,X.#Q=void 0,X.#X=[Z.substring(Q-1)],U}#L(Z){return this.#w(Z,B90)}#w(Z,X=x90){if(!Z||typeof Z!=="object"||Z.type!==null||Z.#X.length!==1||this.type===null)return!1;let Q=Z.#X[0];if(!Q||typeof Q!=="object"||Q.type===null)return!1;return this.#M(Q.type,X)}#M(Z,X=M90){return!!X.get(this.type)?.includes(Z)}#F(Z,X){let Q=Z.#X[0],J=new D4(null,Q,this.options);J.#X.push(""),Q.push(J),this.#I(Z,X)}#I(Z,X){let Q=Z.#X[0];this.#X.splice(X,1,...Q.#X);for(let J of Q.#X)if(typeof J==="object")J.#Y=this;this.#H=void 0}#N(Z){return!!AO.get(this.type)?.has(Z)}#C(Z){if(!Z||typeof Z!=="object"||Z.type!==null||Z.#X.length!==1||this.type===null||this.#X.length!==1)return!1;let X=Z.#X[0];if(!X||typeof X!=="object"||X.type===null)return!1;return this.#N(X.type)}#R(Z){let X=AO.get(this.type),Q=Z.#X[0],J=X?.get(Q.type);if(!J)return!1;this.#X=Q.#X;for(let $ of this.#X)if(typeof $==="object")$.#Y=this;this.type=J,this.#H=void 0,this.#G=!1}static fromGlob(Z,X={}){let Q=new D4(null,void 0,X);return D4.#q(Z,Q,0,X,0),Q}toMMPattern(){if(this!==this.#Z)return this.#Z.toMMPattern();let Z=this.toString(),[X,Q,J,$]=this.toRegExpSource();if(!(J||this.#Q||this.#K.nocase&&!this.#K.nocaseMagicOnly&&Z.toUpperCase()!==Z.toLowerCase()))return Q;let q=(this.#K.nocase?"i":"")+($?"u":"");return Object.assign(new RegExp(`^${X}$`,q),{_src:X,_glob:Z})}get options(){return this.#K}toRegExpSource(Z){let X=Z??!!this.#K.dot;if(this.#Z===this)this.#x(),this.#W();if(!PO(this)){let K=this.isStart()&&this.isEnd()&&!this.#X.some((x)=>typeof x!=="string"),W=this.#X.map((x)=>{let[M,F,D,C]=typeof x==="string"?D4.#j(x,this.#Q,K):x.toRegExpSource(Z);return this.#Q=this.#Q||D,this.#$=this.#$||C,M}).join(""),V="";if(this.isStart()){if(typeof this.#X[0]==="string"){if(!(this.#X.length===1&&D90.has(this.#X[0]))){let M=N90,F=X&&M.has(W.charAt(0))||W.startsWith("\\.")&&M.has(W.charAt(2))||W.startsWith("\\.\\.")&&M.has(W.charAt(4)),D=!X&&!Z&&M.has(W.charAt(0));V=F?F90:D?Oq:""}}}let U="";if(this.isEnd()&&this.#Z.#U&&this.#Y?.type==="!")U="(?:$|\\/)";return[V+W+U,r6(W),this.#Q=!!this.#Q,this.#$]}let Q=this.type==="*"||this.type==="+",J=this.type==="!"?"(?:(?!(?:":"(?:",$=this.#D(X);if(this.isStart()&&this.isEnd()&&!$&&this.type!=="!"){let K=this.toString(),W=this;return W.#X=[K],W.type=null,W.#Q=void 0,[K,r6(this.toString()),!1,!1]}let Y=!Q||Z||X||!Oq?"":this.#D(!0);if(Y===$)Y="";if(Y)$=`(?:${$})(?:${Y})*?`;let q="";if(this.type==="!"&&this.#G)q=(this.isStart()&&!X?Oq:"")+vO;else{let K=this.type==="!"?"))"+(this.isStart()&&!X&&!Z?Oq:"")+EO+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&Y?")":this.type==="*"&&Y?")?":`)${this.type}`;q=J+$+K}return[q,r6($),this.#Q=!!this.#Q,this.#$]}#x(){if(!PO(this)){for(let Z of this.#X)if(typeof Z==="object")Z.#x()}else{let Z=0,X=!1;do{X=!0;for(let Q=0;Q<this.#X.length;Q++){let J=this.#X[Q];if(typeof J==="object"){if(J.#x(),this.#w(J))X=!1,this.#I(J,Q);else if(this.#L(J))X=!1,this.#F(J,Q);else if(this.#C(J))X=!1,this.#R(J)}}}while(!X&&++Z<10)}this.#H=void 0}#D(Z){return this.#X.map((X)=>{if(typeof X==="string")throw new Error("string type in extglob ast??");let[Q,J,$,Y]=X.toRegExpSource(Z);return this.#$=this.#$||Y,Q}).filter((X)=>!(this.isStart()&&this.isEnd())||!!X).join("|")}static#j(Z,X,Q=!1){let J=!1,$="",Y=!1,q=!1;for(let K=0;K<Z.length;K++){let W=Z.charAt(K);if(J){J=!1,$+=(L90.has(W)?"\\":"")+W;continue}if(W==="*"){if(q)continue;q=!0,$+=Q&&/^[*]+$/.test(Z)?vO:EO,X=!0;continue}else q=!1;if(W==="\\"){if(K===Z.length-1)$+="\\\\";else J=!0;continue}if(W==="["){let[V,U,H,x]=TO(Z,K);if(H){$+=V,Y=Y||U,K+=H-1,X=X||x;continue}}if(W==="?"){$+=IG,X=!0;continue}$+=j90(W)}return[$,r6(Z),!!X,Y]}}D4=A3;var E3=(Z,{windowsPathsNoEscape:X=!1,magicalBraces:Q=!1}={})=>{if(Q)return X?Z.replace(/[?*()[\]{}]/g,"[$&]"):Z.replace(/[?*()[\]\\{}]/g,"\\$&");return X?Z.replace(/[?*()[\]]/g,"[$&]"):Z.replace(/[?*()[\]\\]/g,"\\$&")};var J4=(Z,X,Q={})=>{if(yQ(X),!Q.nocomment&&X.charAt(0)==="#")return!1;return new D6(X,Q).match(Z)},C90=/^\*+([^+@!?*[(]*)$/,R90=(Z)=>(X)=>!X.startsWith(".")&&X.endsWith(Z),O90=(Z)=>(X)=>X.endsWith(Z),I90=(Z)=>{return Z=Z.toLowerCase(),(X)=>!X.startsWith(".")&&X.toLowerCase().endsWith(Z)},_90=(Z)=>{return Z=Z.toLowerCase(),(X)=>X.toLowerCase().endsWith(Z)},S90=/^\*+\.\*+$/,T90=(Z)=>!Z.startsWith(".")&&Z.includes("."),P90=(Z)=>Z!=="."&&Z!==".."&&Z.includes("."),A90=/^\.\*+$/,E90=(Z)=>Z!=="."&&Z!==".."&&Z.startsWith("."),v90=/^\*+$/,k90=(Z)=>Z.length!==0&&!Z.startsWith("."),f90=(Z)=>Z.length!==0&&Z!=="."&&Z!=="..",b90=/^\?+([^+@!?*[(]*)?$/,m90=([Z,X=""])=>{let Q=bO([Z]);if(!X)return Q;return X=X.toLowerCase(),(J)=>Q(J)&&J.toLowerCase().endsWith(X)},y90=([Z,X=""])=>{let Q=mO([Z]);if(!X)return Q;return X=X.toLowerCase(),(J)=>Q(J)&&J.toLowerCase().endsWith(X)},g90=([Z,X=""])=>{let Q=mO([Z]);return!X?Q:(J)=>Q(J)&&J.endsWith(X)},c90=([Z,X=""])=>{let Q=bO([Z]);return!X?Q:(J)=>Q(J)&&J.endsWith(X)},bO=([Z])=>{let X=Z.length;return(Q)=>Q.length===X&&!Q.startsWith(".")},mO=([Z])=>{let X=Z.length;return(Q)=>Q.length===X&&Q!=="."&&Q!==".."},yO=typeof process==="object"&&process?typeof process.env==="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",kO={win32:{sep:"\\"},posix:{sep:"/"}},u90=yO==="win32"?kO.win32.sep:kO.posix.sep;J4.sep=u90;var c2=Symbol("globstar **");J4.GLOBSTAR=c2;var h90="[^/]",d90=h90+"*?",p90="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",l90="(?:(?!(?:\\/|^)\\.).)*?",i90=(Z,X={})=>(Q)=>J4(Q,Z,X);J4.filter=i90;var N6=(Z,X={})=>Object.assign({},Z,X),o90=(Z)=>{if(!Z||typeof Z!=="object"||!Object.keys(Z).length)return J4;let X=J4;return Object.assign((J,$,Y={})=>X(J,$,N6(Z,Y)),{Minimatch:class J extends X.Minimatch{constructor($,Y={}){super($,N6(Z,Y))}static defaults($){return X.defaults(N6(Z,$)).Minimatch}},AST:class J extends X.AST{constructor($,Y,q={}){super($,Y,N6(Z,q))}static fromGlob($,Y={}){return X.AST.fromGlob($,N6(Z,Y))}},unescape:(J,$={})=>X.unescape(J,N6(Z,$)),escape:(J,$={})=>X.escape(J,N6(Z,$)),filter:(J,$={})=>X.filter(J,N6(Z,$)),defaults:(J)=>X.defaults(N6(Z,J)),makeRe:(J,$={})=>X.makeRe(J,N6(Z,$)),braceExpand:(J,$={})=>X.braceExpand(J,N6(Z,$)),match:(J,$,Y={})=>X.match(J,$,N6(Z,Y)),sep:X.sep,GLOBSTAR:c2})};J4.defaults=o90;var gO=(Z,X={})=>{if(yQ(Z),X.nobrace||!/\{(?:(?!\{).)*\}/.test(Z))return[Z];return _O(Z,{max:X.braceExpandMax})};J4.braceExpand=gO;var n90=(Z,X={})=>new D6(Z,X).makeRe();J4.makeRe=n90;var s90=(Z,X,Q={})=>{let J=new D6(X,Q);if(Z=Z.filter(($)=>J.match($)),J.options.nonull&&!Z.length)Z.push(X);return Z};J4.match=s90;var fO=/[?*]|[+@!]\(.*?\)|\[|\]/,a90=(Z)=>Z.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class D6{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(Z,X={}){yQ(Z),X=X||{},this.options=X,this.maxGlobstarRecursion=X.maxGlobstarRecursion??200,this.pattern=Z,this.platform=X.platform||yO,this.isWindows=this.platform==="win32";let Q="allowWindowsEscape";if(this.windowsPathsNoEscape=!!X.windowsPathsNoEscape||X[Q]===!1,this.windowsPathsNoEscape)this.pattern=this.pattern.replace(/\\/g,"/");this.preserveMultipleSlashes=!!X.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!X.nonegate,this.comment=!1,this.empty=!1,this.partial=!!X.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=X.windowsNoMagicRoot!==void 0?X.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let Z of this.set)for(let X of Z)if(typeof X!=="string")return!0;return!1}debug(...Z){}make(){let Z=this.pattern,X=this.options;if(!X.nocomment&&Z.charAt(0)==="#"){this.comment=!0;return}if(!Z){this.empty=!0;return}if(this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],X.debug)this.debug=(...$)=>console.error(...$);this.debug(this.pattern,this.globSet);let Q=this.globSet.map(($)=>this.slashSplit($));this.globParts=this.preprocess(Q),this.debug(this.pattern,this.globParts);let J=this.globParts.map(($,Y,q)=>{if(this.isWindows&&this.windowsNoMagicRoot){let K=$[0]===""&&$[1]===""&&($[2]==="?"||!fO.test($[2]))&&!fO.test($[3]),W=/^[a-z]:/i.test($[0]);if(K)return[...$.slice(0,4),...$.slice(4).map((V)=>this.parse(V))];else if(W)return[$[0],...$.slice(1).map((V)=>this.parse(V))]}return $.map((K)=>this.parse(K))});if(this.debug(this.pattern,J),this.set=J.filter(($)=>$.indexOf(!1)===-1),this.isWindows)for(let $=0;$<this.set.length;$++){let Y=this.set[$];if(Y[0]===""&&Y[1]===""&&this.globParts[$][2]==="?"&&typeof Y[3]==="string"&&/^[a-z]:$/i.test(Y[3]))Y[2]="?"}this.debug(this.pattern,this.set)}preprocess(Z){if(this.options.noglobstar){for(let Q of Z)for(let J=0;J<Q.length;J++)if(Q[J]==="**")Q[J]="*"}let{optimizationLevel:X=1}=this.options;if(X>=2)Z=this.firstPhasePreProcess(Z),Z=this.secondPhasePreProcess(Z);else if(X>=1)Z=this.levelOneOptimize(Z);else Z=this.adjascentGlobstarOptimize(Z);return Z}adjascentGlobstarOptimize(Z){return Z.map((X)=>{let Q=-1;while((Q=X.indexOf("**",Q+1))!==-1){let J=Q;while(X[J+1]==="**")J++;if(J!==Q)X.splice(Q,J-Q)}return X})}levelOneOptimize(Z){return Z.map((X)=>{return X=X.reduce((Q,J)=>{let $=Q[Q.length-1];if(J==="**"&&$==="**")return Q;if(J===".."){if($&&$!==".."&&$!=="."&&$!=="**")return Q.pop(),Q}return Q.push(J),Q},[]),X.length===0?[""]:X})}levelTwoFileOptimize(Z){if(!Array.isArray(Z))Z=this.slashSplit(Z);let X=!1;do{if(X=!1,!this.preserveMultipleSlashes){for(let J=1;J<Z.length-1;J++){let $=Z[J];if(J===1&&$===""&&Z[0]==="")continue;if($==="."||$==="")X=!0,Z.splice(J,1),J--}if(Z[0]==="."&&Z.length===2&&(Z[1]==="."||Z[1]===""))X=!0,Z.pop()}let Q=0;while((Q=Z.indexOf("..",Q+1))!==-1){let J=Z[Q-1];if(J&&J!=="."&&J!==".."&&J!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(J)))X=!0,Z.splice(Q-1,2),Q-=2}}while(X);return Z.length===0?[""]:Z}firstPhasePreProcess(Z){let X=!1;do{X=!1;for(let Q of Z){let J=-1;while((J=Q.indexOf("**",J+1))!==-1){let Y=J;while(Q[Y+1]==="**")Y++;if(Y>J)Q.splice(J+1,Y-J);let q=Q[J+1],K=Q[J+2],W=Q[J+3];if(q!=="..")continue;if(!K||K==="."||K===".."||!W||W==="."||W==="..")continue;X=!0,Q.splice(J,1);let V=Q.slice(0);V[J]="**",Z.push(V),J--}if(!this.preserveMultipleSlashes){for(let Y=1;Y<Q.length-1;Y++){let q=Q[Y];if(Y===1&&q===""&&Q[0]==="")continue;if(q==="."||q==="")X=!0,Q.splice(Y,1),Y--}if(Q[0]==="."&&Q.length===2&&(Q[1]==="."||Q[1]===""))X=!0,Q.pop()}let $=0;while(($=Q.indexOf("..",$+1))!==-1){let Y=Q[$-1];if(Y&&Y!=="."&&Y!==".."&&Y!=="**"){X=!0;let K=$===1&&Q[$+1]==="**"?["."]:[];if(Q.splice($-1,2,...K),Q.length===0)Q.push("");$-=2}}}}while(X);return Z}secondPhasePreProcess(Z){for(let X=0;X<Z.length-1;X++)for(let Q=X+1;Q<Z.length;Q++){let J=this.partsMatch(Z[X],Z[Q],!this.preserveMultipleSlashes);if(J){Z[X]=[],Z[Q]=J;break}}return Z.filter((X)=>X.length)}partsMatch(Z,X,Q=!1){let J=0,$=0,Y=[],q="";while(J<Z.length&&$<X.length)if(Z[J]===X[$])Y.push(q==="b"?X[$]:Z[J]),J++,$++;else if(Q&&Z[J]==="**"&&X[$]===Z[J+1])Y.push(Z[J]),J++;else if(Q&&X[$]==="**"&&Z[J]===X[$+1])Y.push(X[$]),$++;else if(Z[J]==="*"&&X[$]&&(this.options.dot||!X[$].startsWith("."))&&X[$]!=="**"){if(q==="b")return!1;q="a",Y.push(Z[J]),J++,$++}else if(X[$]==="*"&&Z[J]&&(this.options.dot||!Z[J].startsWith("."))&&Z[J]!=="**"){if(q==="a")return!1;q="b",Y.push(X[$]),J++,$++}else return!1;return Z.length===X.length&&Y}parseNegate(){if(this.nonegate)return;let Z=this.pattern,X=!1,Q=0;for(let J=0;J<Z.length&&Z.charAt(J)==="!";J++)X=!X,Q++;if(Q)this.pattern=Z.slice(Q);this.negate=X}matchOne(Z,X,Q=!1){let J=0,$=0;if(this.isWindows){let q=typeof Z[0]==="string"&&/^[a-z]:$/i.test(Z[0]),K=!q&&Z[0]===""&&Z[1]===""&&Z[2]==="?"&&/^[a-z]:$/i.test(Z[3]),W=typeof X[0]==="string"&&/^[a-z]:$/i.test(X[0]),V=!W&&X[0]===""&&X[1]===""&&X[2]==="?"&&typeof X[3]==="string"&&/^[a-z]:$/i.test(X[3]),U=K?3:q?0:void 0,H=V?3:W?0:void 0;if(typeof U==="number"&&typeof H==="number"){let[x,M]=[Z[U],X[H]];if(x.toLowerCase()===M.toLowerCase())X[H]=x,$=H,J=U}}let{optimizationLevel:Y=1}=this.options;if(Y>=2)Z=this.levelTwoFileOptimize(Z);if(X.includes(c2))return this.#Z(Z,X,Q,J,$);return this.#$(Z,X,Q,J,$)}#Z(Z,X,Q,J,$){let Y=X.indexOf(c2,$),q=X.lastIndexOf(c2),[K,W,V]=Q?[X.slice($,Y),X.slice(Y+1),[]]:[X.slice($,Y),X.slice(Y+1,q),X.slice(q+1)];if(K.length){let j=Z.slice(J,J+K.length);if(!this.#$(j,K,Q,0,0))return!1;J+=K.length,$+=K.length}let U=0;if(V.length){if(V.length+J>Z.length)return!1;let j=Z.length-V.length;if(this.#$(Z,V,Q,j,0))U=V.length;else{if(Z[Z.length-1]!==""||J+V.length===Z.length)return!1;if(j--,!this.#$(Z,V,Q,j,0))return!1;U=V.length+1}}if(!W.length){let j=!!U;for(let I=J;I<Z.length-U;I++){let v=String(Z[I]);if(j=!0,v==="."||v===".."||!this.options.dot&&v.startsWith("."))return!1}return Q||j}let H=[[[],0]],x=H[0],M=0,F=[0];for(let j of W)if(j===c2)F.push(M),x=[[],0],H.push(x);else x[0].push(j),M++;let D=H.length-1,C=Z.length-U;for(let j of H)j[1]=C-(F[D--]+j[0].length);return!!this.#Q(Z,H,J,0,Q,0,!!U)}#Q(Z,X,Q,J,$,Y,q){let K=X[J];if(!K){for(let U=Q;U<Z.length;U++){q=!0;let H=Z[U];if(H==="."||H===".."||!this.options.dot&&H.startsWith("."))return!1}return q}let[W,V]=K;while(Q<=V){if(this.#$(Z.slice(0,Q+W.length),W,$,Q,0)&&Y<this.maxGlobstarRecursion){let x=this.#Q(Z,X,Q+W.length,J+1,$,Y+1,q);if(x!==!1)return x}let H=Z[Q];if(H==="."||H===".."||!this.options.dot&&H.startsWith("."))return!1;Q++}return $||null}#$(Z,X,Q,J,$){let Y,q,K,W;for(Y=J,q=$,W=Z.length,K=X.length;Y<W&&q<K;Y++,q++){this.debug("matchOne loop");let V=X[q],U=Z[Y];if(this.debug(X,V,U),V===!1||V===c2)return!1;let H;if(typeof V==="string")H=U===V,this.debug("string match",V,U,H);else H=V.test(U),this.debug("pattern match",V,U,H);if(!H)return!1}if(Y===W&&q===K)return!0;else if(Y===W)return Q;else if(q===K)return Y===W-1&&Z[Y]==="";else throw new Error("wtf?")}braceExpand(){return gO(this.pattern,this.options)}parse(Z){yQ(Z);let X=this.options;if(Z==="**")return c2;if(Z==="")return"";let Q,J=null;if(Q=Z.match(v90))J=X.dot?f90:k90;else if(Q=Z.match(C90))J=(X.nocase?X.dot?_90:I90:X.dot?O90:R90)(Q[1]);else if(Q=Z.match(b90))J=(X.nocase?X.dot?y90:m90:X.dot?g90:c90)(Q);else if(Q=Z.match(S90))J=X.dot?P90:T90;else if(Q=Z.match(A90))J=E90;let $=A3.fromGlob(Z,this.options).toMMPattern();if(J&&typeof $==="object")Reflect.defineProperty($,"test",{value:J});return $}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let Z=this.set;if(!Z.length)return this.regexp=!1,this.regexp;let X=this.options,Q=X.noglobstar?d90:X.dot?p90:l90,J=new Set(X.nocase?["i"]:[]),$=Z.map((K)=>{let W=K.map((U)=>{if(U instanceof RegExp)for(let H of U.flags.split(""))J.add(H);return typeof U==="string"?a90(U):U===c2?c2:U._src});W.forEach((U,H)=>{let x=W[H+1],M=W[H-1];if(U!==c2||M===c2)return;if(M===void 0)if(x!==void 0&&x!==c2)W[H+1]="(?:\\/|"+Q+"\\/)?"+x;else W[H]=Q;else if(x===void 0)W[H-1]=M+"(?:\\/|\\/"+Q+")?";else if(x!==c2)W[H-1]=M+"(?:\\/|\\/"+Q+"\\/)"+x,W[H+1]=c2});let V=W.filter((U)=>U!==c2);if(this.partial&&V.length>=1){let U=[];for(let H=1;H<=V.length;H++)U.push(V.slice(0,H).join("/"));return"(?:"+U.join("|")+")"}return V.join("/")}).join("|"),[Y,q]=Z.length>1?["(?:",")"]:["",""];if($="^"+Y+$+q+"$",this.partial)$="^(?:\\/|"+Y+$.slice(1,-1)+q+")$";if(this.negate)$="^(?!"+$+").+$";try{this.regexp=new RegExp($,[...J].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(Z){if(this.preserveMultipleSlashes)return Z.split("/");else if(this.isWindows&&/^\/\/[^/]+/.test(Z))return["",...Z.split(/\/+/)];else return Z.split(/\/+/)}match(Z,X=this.partial){if(this.debug("match",Z,this.pattern),this.comment)return!1;if(this.empty)return Z==="";if(Z==="/"&&X)return!0;let Q=this.options;if(this.isWindows)Z=Z.split("\\").join("/");let J=this.slashSplit(Z);this.debug(this.pattern,"split",J);let $=this.set;this.debug(this.pattern,"set",$);let Y=J[J.length-1];if(!Y)for(let q=J.length-2;!Y&&q>=0;q--)Y=J[q];for(let q of $){let K=J;if(Q.matchBase&&q.length===1)K=[Y];if(this.matchOne(K,q,X)){if(Q.flipNegate)return!0;return!this.negate}}if(Q.flipNegate)return!1;return this.negate}static defaults(Z){return J4.defaults(Z).Minimatch}}J4.AST=A3;J4.Minimatch=D6;J4.escape=E3;J4.unescape=r6;import{fileURLToPath as TZ0}from"node:url";var r90=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date,uO=new Set,_G=typeof process==="object"&&!!process?process:{},hO=(Z,X,Q,J)=>{typeof _G.emitWarning==="function"?_G.emitWarning(Z,X,Q,J):console.error(`[${Q}] ${X}: ${Z}`)},Iq=globalThis.AbortController,cO=globalThis.AbortSignal;if(typeof Iq==="undefined"){cO=class Q{onabort;_onabort=[];reason;aborted=!1;addEventListener(J,$){this._onabort.push($)}},Iq=class Q{constructor(){X()}signal=new cO;abort(J){if(this.signal.aborted)return;this.signal.reason=J,this.signal.aborted=!0;for(let $ of this.signal._onabort)$(J);this.signal.onabort?.(J)}};let Z=_G.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",X=()=>{if(!Z)return;Z=!1,hO("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",X)}}var t90=(Z)=>!uO.has(Z),Ot0=Symbol("type"),e5=(Z)=>Z&&Z===Math.floor(Z)&&Z>0&&isFinite(Z),dO=(Z)=>!e5(Z)?null:Z<=Math.pow(2,8)?Uint8Array:Z<=Math.pow(2,16)?Uint16Array:Z<=Math.pow(2,32)?Uint32Array:Z<=Number.MAX_SAFE_INTEGER?cQ:null;class cQ extends Array{constructor(Z){super(Z);this.fill(0)}}class v3{heap;length;static#Z=!1;static create(Z){let X=dO(Z);if(!X)return[];v3.#Z=!0;let Q=new v3(Z,X);return v3.#Z=!1,Q}constructor(Z,X){if(!v3.#Z)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new X(Z),this.length=0}push(Z){this.heap[this.length++]=Z}pop(){return this.heap[--this.length]}}class $Z{#Z;#Q;#$;#X;#Y;#z;#B;#U;get perf(){return this.#U}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#K;#H;#G;#W;#q;#L;#w;#M;#F;#I;#N;#C;#R;#x;#D;#j;#_;#J;#k;static unsafeExposeInternals(Z){return{starts:Z.#R,ttls:Z.#x,autopurgeTimers:Z.#D,sizes:Z.#C,keyMap:Z.#G,keyList:Z.#W,valList:Z.#q,next:Z.#L,prev:Z.#w,get head(){return Z.#M},get tail(){return Z.#F},free:Z.#I,isBackgroundFetch:(X)=>Z.#V(X),backgroundFetch:(X,Q,J,$)=>Z.#h(X,Q,J,$),moveToTail:(X)=>Z.#b(X),indexes:(X)=>Z.#P(X),rindexes:(X)=>Z.#A(X),isStale:(X)=>Z.#O(X)}}get max(){return this.#Z}get maxSize(){return this.#Q}get calculatedSize(){return this.#H}get size(){return this.#K}get fetchMethod(){return this.#z}get memoMethod(){return this.#B}get dispose(){return this.#$}get onInsert(){return this.#X}get disposeAfter(){return this.#Y}constructor(Z){let{max:X=0,ttl:Q,ttlResolution:J=1,ttlAutopurge:$,updateAgeOnGet:Y,updateAgeOnHas:q,allowStale:K,dispose:W,onInsert:V,disposeAfter:U,noDisposeOnSet:H,noUpdateTTL:x,maxSize:M=0,maxEntrySize:F=0,sizeCalculation:D,fetchMethod:C,memoMethod:j,noDeleteOnFetchRejection:I,noDeleteOnStaleGet:v,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:c,ignoreFetchAbort:Z0,perf:Q0}=Z;if(Q0!==void 0){if(typeof Q0?.now!=="function")throw new TypeError("perf option must have a now() method if specified")}if(this.#U=Q0??r90,X!==0&&!e5(X))throw new TypeError("max option must be a nonnegative integer");let A=X?dO(X):Array;if(!A)throw new Error("invalid max value: "+X);if(this.#Z=X,this.#Q=M,this.maxEntrySize=F||this.#Q,this.sizeCalculation=D,this.sizeCalculation){if(!this.#Q&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!=="function")throw new TypeError("sizeCalculation set to non-function")}if(j!==void 0&&typeof j!=="function")throw new TypeError("memoMethod must be a function if defined");if(this.#B=j,C!==void 0&&typeof C!=="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#z=C,this.#_=!!C,this.#G=new Map,this.#W=new Array(X).fill(void 0),this.#q=new Array(X).fill(void 0),this.#L=new A(X),this.#w=new A(X),this.#M=0,this.#F=0,this.#I=v3.create(X),this.#K=0,this.#H=0,typeof W==="function")this.#$=W;if(typeof V==="function")this.#X=V;if(typeof U==="function")this.#Y=U,this.#N=[];else this.#Y=void 0,this.#N=void 0;if(this.#j=!!this.#$,this.#k=!!this.#X,this.#J=!!this.#Y,this.noDisposeOnSet=!!H,this.noUpdateTTL=!!x,this.noDeleteOnFetchRejection=!!I,this.allowStaleOnFetchRejection=!!S,this.allowStaleOnFetchAbort=!!c,this.ignoreFetchAbort=!!Z0,this.maxEntrySize!==0){if(this.#Q!==0){if(!e5(this.#Q))throw new TypeError("maxSize must be a positive integer if specified")}if(!e5(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#p()}if(this.allowStale=!!K,this.noDeleteOnStaleGet=!!v,this.updateAgeOnGet=!!Y,this.updateAgeOnHas=!!q,this.ttlResolution=e5(J)||J===0?J:1,this.ttlAutopurge=!!$,this.ttl=Q||0,this.ttl){if(!e5(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#E()}if(this.#Z===0&&this.ttl===0&&this.#Q===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#Z&&!this.#Q){if(t90("LRU_CACHE_UNBOUNDED"))uO.add("LRU_CACHE_UNBOUNDED"),hO("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning","LRU_CACHE_UNBOUNDED",$Z)}}getRemainingTTL(Z){return this.#G.has(Z)?1/0:0}#E(){let Z=new cQ(this.#Z),X=new cQ(this.#Z);this.#x=Z,this.#R=X;let Q=this.ttlAutopurge?new Array(this.#Z):void 0;this.#D=Q,this.#y=(Y,q,K=this.#U.now())=>{if(X[Y]=q!==0?K:0,Z[Y]=q,Q?.[Y])clearTimeout(Q[Y]),Q[Y]=void 0;if(q!==0&&Q){let W=setTimeout(()=>{if(this.#O(Y))this.#T(this.#W[Y],"expire")},q+1);if(W.unref)W.unref();Q[Y]=W}},this.#S=(Y)=>{X[Y]=Z[Y]!==0?this.#U.now():0},this.#v=(Y,q)=>{if(Z[q]){let K=Z[q],W=X[q];if(!K||!W)return;Y.ttl=K,Y.start=W,Y.now=J||$();let V=Y.now-W;Y.remainingTTL=K-V}};let J=0,$=()=>{let Y=this.#U.now();if(this.ttlResolution>0){J=Y;let q=setTimeout(()=>J=0,this.ttlResolution);if(q.unref)q.unref()}return Y};this.getRemainingTTL=(Y)=>{let q=this.#G.get(Y);if(q===void 0)return 0;let K=Z[q],W=X[q];if(!K||!W)return 1/0;let V=(J||$())-W;return K-V},this.#O=(Y)=>{let q=X[Y],K=Z[Y];return!!K&&!!q&&(J||$())-q>K}}#S=()=>{};#v=()=>{};#y=()=>{};#O=()=>!1;#p(){let Z=new cQ(this.#Z);this.#H=0,this.#C=Z,this.#m=(X)=>{this.#H-=Z[X],Z[X]=0},this.#g=(X,Q,J,$)=>{if(this.#V(Q))return 0;if(!e5(J))if($){if(typeof $!=="function")throw new TypeError("sizeCalculation must be a function");if(J=$(Q,X),!e5(J))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return J},this.#f=(X,Q,J)=>{if(Z[X]=Q,this.#Q){let $=this.#Q-Z[X];while(this.#H>$)this.#u(!0)}if(this.#H+=Z[X],J)J.entrySize=Q,J.totalCalculatedSize=this.#H}}#m=(Z)=>{};#f=(Z,X,Q)=>{};#g=(Z,X,Q,J)=>{if(Q||J)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#P({allowStale:Z=this.allowStale}={}){if(this.#K)for(let X=this.#F;;){if(!this.#c(X))break;if(Z||!this.#O(X))yield X;if(X===this.#M)break;else X=this.#w[X]}}*#A({allowStale:Z=this.allowStale}={}){if(this.#K)for(let X=this.#M;;){if(!this.#c(X))break;if(Z||!this.#O(X))yield X;if(X===this.#F)break;else X=this.#L[X]}}#c(Z){return Z!==void 0&&this.#G.get(this.#W[Z])===Z}*entries(){for(let Z of this.#P())if(this.#q[Z]!==void 0&&this.#W[Z]!==void 0&&!this.#V(this.#q[Z]))yield[this.#W[Z],this.#q[Z]]}*rentries(){for(let Z of this.#A())if(this.#q[Z]!==void 0&&this.#W[Z]!==void 0&&!this.#V(this.#q[Z]))yield[this.#W[Z],this.#q[Z]]}*keys(){for(let Z of this.#P()){let X=this.#W[Z];if(X!==void 0&&!this.#V(this.#q[Z]))yield X}}*rkeys(){for(let Z of this.#A()){let X=this.#W[Z];if(X!==void 0&&!this.#V(this.#q[Z]))yield X}}*values(){for(let Z of this.#P())if(this.#q[Z]!==void 0&&!this.#V(this.#q[Z]))yield this.#q[Z]}*rvalues(){for(let Z of this.#A())if(this.#q[Z]!==void 0&&!this.#V(this.#q[Z]))yield this.#q[Z]}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(Z,X={}){for(let Q of this.#P()){let J=this.#q[Q],$=this.#V(J)?J.__staleWhileFetching:J;if($===void 0)continue;if(Z($,this.#W[Q],this))return this.get(this.#W[Q],X)}}forEach(Z,X=this){for(let Q of this.#P()){let J=this.#q[Q],$=this.#V(J)?J.__staleWhileFetching:J;if($===void 0)continue;Z.call(X,$,this.#W[Q],this)}}rforEach(Z,X=this){for(let Q of this.#A()){let J=this.#q[Q],$=this.#V(J)?J.__staleWhileFetching:J;if($===void 0)continue;Z.call(X,$,this.#W[Q],this)}}purgeStale(){let Z=!1;for(let X of this.#A({allowStale:!0}))if(this.#O(X))this.#T(this.#W[X],"expire"),Z=!0;return Z}info(Z){let X=this.#G.get(Z);if(X===void 0)return;let Q=this.#q[X],J=this.#V(Q)?Q.__staleWhileFetching:Q;if(J===void 0)return;let $={value:J};if(this.#x&&this.#R){let Y=this.#x[X],q=this.#R[X];if(Y&&q){let K=Y-(this.#U.now()-q);$.ttl=K,$.start=Date.now()}}if(this.#C)$.size=this.#C[X];return $}dump(){let Z=[];for(let X of this.#P({allowStale:!0})){let Q=this.#W[X],J=this.#q[X],$=this.#V(J)?J.__staleWhileFetching:J;if($===void 0||Q===void 0)continue;let Y={value:$};if(this.#x&&this.#R){Y.ttl=this.#x[X];let q=this.#U.now()-this.#R[X];Y.start=Math.floor(Date.now()-q)}if(this.#C)Y.size=this.#C[X];Z.unshift([Q,Y])}return Z}load(Z){this.clear();for(let[X,Q]of Z){if(Q.start){let J=Date.now()-Q.start;Q.start=this.#U.now()-J}this.set(X,Q.value,Q)}}set(Z,X,Q={}){if(X===void 0)return this.delete(Z),this;let{ttl:J=this.ttl,start:$,noDisposeOnSet:Y=this.noDisposeOnSet,sizeCalculation:q=this.sizeCalculation,status:K}=Q,{noUpdateTTL:W=this.noUpdateTTL}=Q,V=this.#g(Z,X,Q.size||0,q);if(this.maxEntrySize&&V>this.maxEntrySize){if(K)K.set="miss",K.maxEntrySizeExceeded=!0;return this.#T(Z,"set"),this}let U=this.#K===0?void 0:this.#G.get(Z);if(U===void 0){if(U=this.#K===0?this.#F:this.#I.length!==0?this.#I.pop():this.#K===this.#Z?this.#u(!1):this.#K,this.#W[U]=Z,this.#q[U]=X,this.#G.set(Z,U),this.#L[this.#F]=U,this.#w[U]=this.#F,this.#F=U,this.#K++,this.#f(U,V,K),K)K.set="add";if(W=!1,this.#k)this.#X?.(X,Z,"add")}else{this.#b(U);let H=this.#q[U];if(X!==H){if(this.#_&&this.#V(H)){H.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:x}=H;if(x!==void 0&&!Y){if(this.#j)this.#$?.(x,Z,"set");if(this.#J)this.#N?.push([x,Z,"set"])}}else if(!Y){if(this.#j)this.#$?.(H,Z,"set");if(this.#J)this.#N?.push([H,Z,"set"])}if(this.#m(U),this.#f(U,V,K),this.#q[U]=X,K){K.set="replace";let x=H&&this.#V(H)?H.__staleWhileFetching:H;if(x!==void 0)K.oldValue=x}}else if(K)K.set="update";if(this.#k)this.onInsert?.(X,Z,X===H?"update":"replace")}if(J!==0&&!this.#x)this.#E();if(this.#x){if(!W)this.#y(U,J,$);if(K)this.#v(K,U)}if(!Y&&this.#J&&this.#N){let H=this.#N,x;while(x=H?.shift())this.#Y?.(...x)}return this}pop(){try{while(this.#K){let Z=this.#q[this.#M];if(this.#u(!0),this.#V(Z)){if(Z.__staleWhileFetching)return Z.__staleWhileFetching}else if(Z!==void 0)return Z}}finally{if(this.#J&&this.#N){let Z=this.#N,X;while(X=Z?.shift())this.#Y?.(...X)}}}#u(Z){let X=this.#M,Q=this.#W[X],J=this.#q[X];if(this.#_&&this.#V(J))J.__abortController.abort(new Error("evicted"));else if(this.#j||this.#J){if(this.#j)this.#$?.(J,Q,"evict");if(this.#J)this.#N?.push([J,Q,"evict"])}if(this.#m(X),this.#D?.[X])clearTimeout(this.#D[X]),this.#D[X]=void 0;if(Z)this.#W[X]=void 0,this.#q[X]=void 0,this.#I.push(X);if(this.#K===1)this.#M=this.#F=0,this.#I.length=0;else this.#M=this.#L[X];return this.#G.delete(Q),this.#K--,X}has(Z,X={}){let{updateAgeOnHas:Q=this.updateAgeOnHas,status:J}=X,$=this.#G.get(Z);if($!==void 0){let Y=this.#q[$];if(this.#V(Y)&&Y.__staleWhileFetching===void 0)return!1;if(!this.#O($)){if(Q)this.#S($);if(J)J.has="hit",this.#v(J,$);return!0}else if(J)J.has="stale",this.#v(J,$)}else if(J)J.has="miss";return!1}peek(Z,X={}){let{allowStale:Q=this.allowStale}=X,J=this.#G.get(Z);if(J===void 0||!Q&&this.#O(J))return;let $=this.#q[J];return this.#V($)?$.__staleWhileFetching:$}#h(Z,X,Q,J){let $=X===void 0?void 0:this.#q[X];if(this.#V($))return $;let Y=new Iq,{signal:q}=Q;q?.addEventListener("abort",()=>Y.abort(q.reason),{signal:Y.signal});let K={signal:Y.signal,options:Q,context:J},W=(F,D=!1)=>{let{aborted:C}=Y.signal,j=Q.ignoreFetchAbort&&F!==void 0;if(Q.status)if(C&&!D){if(Q.status.fetchAborted=!0,Q.status.fetchError=Y.signal.reason,j)Q.status.fetchAbortIgnored=!0}else Q.status.fetchResolved=!0;if(C&&!j&&!D)return U(Y.signal.reason);let I=x,v=this.#q[X];if(v===x||j&&D&&v===void 0)if(F===void 0)if(I.__staleWhileFetching!==void 0)this.#q[X]=I.__staleWhileFetching;else this.#T(Z,"fetch");else{if(Q.status)Q.status.fetchUpdated=!0;this.set(Z,F,K.options)}return F},V=(F)=>{if(Q.status)Q.status.fetchRejected=!0,Q.status.fetchError=F;return U(F)},U=(F)=>{let{aborted:D}=Y.signal,C=D&&Q.allowStaleOnFetchAbort,j=C||Q.allowStaleOnFetchRejection,I=j||Q.noDeleteOnFetchRejection,v=x;if(this.#q[X]===x){if(!I||v.__staleWhileFetching===void 0)this.#T(Z,"fetch");else if(!C)this.#q[X]=v.__staleWhileFetching}if(j){if(Q.status&&v.__staleWhileFetching!==void 0)Q.status.returnedStale=!0;return v.__staleWhileFetching}else if(v.__returned===v)throw F},H=(F,D)=>{let C=this.#z?.(Z,$,K);if(C&&C instanceof Promise)C.then((j)=>F(j===void 0?void 0:j),D);Y.signal.addEventListener("abort",()=>{if(!Q.ignoreFetchAbort||Q.allowStaleOnFetchAbort){if(F(void 0),Q.allowStaleOnFetchAbort)F=(j)=>W(j,!0)}})};if(Q.status)Q.status.fetchDispatched=!0;let x=new Promise(H).then(W,V),M=Object.assign(x,{__abortController:Y,__staleWhileFetching:$,__returned:void 0});if(X===void 0)this.set(Z,M,{...K.options,status:void 0}),X=this.#G.get(Z);else this.#q[X]=M;return M}#V(Z){if(!this.#_)return!1;let X=Z;return!!X&&X instanceof Promise&&X.hasOwnProperty("__staleWhileFetching")&&X.__abortController instanceof Iq}async fetch(Z,X={}){let{allowStale:Q=this.allowStale,updateAgeOnGet:J=this.updateAgeOnGet,noDeleteOnStaleGet:$=this.noDeleteOnStaleGet,ttl:Y=this.ttl,noDisposeOnSet:q=this.noDisposeOnSet,size:K=0,sizeCalculation:W=this.sizeCalculation,noUpdateTTL:V=this.noUpdateTTL,noDeleteOnFetchRejection:U=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:H=this.allowStaleOnFetchRejection,ignoreFetchAbort:x=this.ignoreFetchAbort,allowStaleOnFetchAbort:M=this.allowStaleOnFetchAbort,context:F,forceRefresh:D=!1,status:C,signal:j}=X;if(!this.#_){if(C)C.fetch="get";return this.get(Z,{allowStale:Q,updateAgeOnGet:J,noDeleteOnStaleGet:$,status:C})}let I={allowStale:Q,updateAgeOnGet:J,noDeleteOnStaleGet:$,ttl:Y,noDisposeOnSet:q,size:K,sizeCalculation:W,noUpdateTTL:V,noDeleteOnFetchRejection:U,allowStaleOnFetchRejection:H,allowStaleOnFetchAbort:M,ignoreFetchAbort:x,status:C,signal:j},v=this.#G.get(Z);if(v===void 0){if(C)C.fetch="miss";let S=this.#h(Z,v,I,F);return S.__returned=S}else{let S=this.#q[v];if(this.#V(S)){let y=Q&&S.__staleWhileFetching!==void 0;if(C){if(C.fetch="inflight",y)C.returnedStale=!0}return y?S.__staleWhileFetching:S.__returned=S}let c=this.#O(v);if(!D&&!c){if(C)C.fetch="hit";if(this.#b(v),J)this.#S(v);if(C)this.#v(C,v);return S}let Z0=this.#h(Z,v,I,F),A=Z0.__staleWhileFetching!==void 0&&Q;if(C){if(C.fetch=c?"stale":"refresh",A&&c)C.returnedStale=!0}return A?Z0.__staleWhileFetching:Z0.__returned=Z0}}async forceFetch(Z,X={}){let Q=await this.fetch(Z,X);if(Q===void 0)throw new Error("fetch() returned undefined");return Q}memo(Z,X={}){let Q=this.#B;if(!Q)throw new Error("no memoMethod provided to constructor");let{context:J,forceRefresh:$,...Y}=X,q=this.get(Z,Y);if(!$&&q!==void 0)return q;let K=Q(Z,q,{options:Y,context:J});return this.set(Z,K,Y),K}get(Z,X={}){let{allowStale:Q=this.allowStale,updateAgeOnGet:J=this.updateAgeOnGet,noDeleteOnStaleGet:$=this.noDeleteOnStaleGet,status:Y}=X,q=this.#G.get(Z);if(q!==void 0){let K=this.#q[q],W=this.#V(K);if(Y)this.#v(Y,q);if(this.#O(q)){if(Y)Y.get="stale";if(!W){if(!$)this.#T(Z,"expire");if(Y&&Q)Y.returnedStale=!0;return Q?K:void 0}else{if(Y&&Q&&K.__staleWhileFetching!==void 0)Y.returnedStale=!0;return Q?K.__staleWhileFetching:void 0}}else{if(Y)Y.get="hit";if(W)return K.__staleWhileFetching;if(this.#b(q),J)this.#S(q);return K}}else if(Y)Y.get="miss"}#d(Z,X){this.#w[X]=Z,this.#L[Z]=X}#b(Z){if(Z!==this.#F){if(Z===this.#M)this.#M=this.#L[Z];else this.#d(this.#w[Z],this.#L[Z]);this.#d(this.#F,Z),this.#F=Z}}delete(Z){return this.#T(Z,"delete")}#T(Z,X){let Q=!1;if(this.#K!==0){let J=this.#G.get(Z);if(J!==void 0){if(this.#D?.[J])clearTimeout(this.#D?.[J]),this.#D[J]=void 0;if(Q=!0,this.#K===1)this.#l(X);else{this.#m(J);let $=this.#q[J];if(this.#V($))$.__abortController.abort(new Error("deleted"));else if(this.#j||this.#J){if(this.#j)this.#$?.($,Z,X);if(this.#J)this.#N?.push([$,Z,X])}if(this.#G.delete(Z),this.#W[J]=void 0,this.#q[J]=void 0,J===this.#F)this.#F=this.#w[J];else if(J===this.#M)this.#M=this.#L[J];else{let Y=this.#w[J];this.#L[Y]=this.#L[J];let q=this.#L[J];this.#w[q]=this.#w[J]}this.#K--,this.#I.push(J)}}}if(this.#J&&this.#N?.length){let J=this.#N,$;while($=J?.shift())this.#Y?.(...$)}return Q}clear(){return this.#l("delete")}#l(Z){for(let X of this.#A({allowStale:!0})){let Q=this.#q[X];if(this.#V(Q))Q.__abortController.abort(new Error("deleted"));else{let J=this.#W[X];if(this.#j)this.#$?.(Q,J,Z);if(this.#J)this.#N?.push([Q,J,Z])}}if(this.#G.clear(),this.#q.fill(void 0),this.#W.fill(void 0),this.#x&&this.#R){this.#x.fill(0),this.#R.fill(0);for(let X of this.#D??[])if(X!==void 0)clearTimeout(X);this.#D?.fill(void 0)}if(this.#C)this.#C.fill(0);if(this.#M=0,this.#F=0,this.#I.length=0,this.#H=0,this.#K=0,this.#J&&this.#N){let X=this.#N,Q;while(Q=X?.shift())this.#Y?.(...Q)}}}import{posix as zZ0,win32 as mG}from"node:path";import{fileURLToPath as VZ0}from"node:url";import{lstatSync as UZ0,readdir as GZ0,readdirSync as HZ0,readlinkSync as xZ0,realpathSync as BZ0}from"fs";import*as MZ0 from"node:fs";import{lstat as NZ0,readdir as DZ0,readlink as LZ0,realpath as jZ0}from"node:fs/promises";import{EventEmitter as vG}from"node:events";import nO from"node:stream";import{StringDecoder as e90}from"node:string_decoder";var pO=typeof process==="object"&&process?process:{stdout:null,stderr:null},ZZ0=(Z)=>!!Z&&typeof Z==="object"&&(Z instanceof qZ||Z instanceof nO||XZ0(Z)||QZ0(Z)),XZ0=(Z)=>!!Z&&typeof Z==="object"&&Z instanceof vG&&typeof Z.pipe==="function"&&Z.pipe!==nO.Writable.prototype.pipe,QZ0=(Z)=>!!Z&&typeof Z==="object"&&Z instanceof vG&&typeof Z.write==="function"&&typeof Z.end==="function",K5=Symbol("EOF"),W5=Symbol("maybeEmitEnd"),Z9=Symbol("emittedEnd"),_q=Symbol("emittingEnd"),uQ=Symbol("emittedError"),Sq=Symbol("closed"),lO=Symbol("read"),Tq=Symbol("flush"),iO=Symbol("flushChunk"),t6=Symbol("encoding"),k3=Symbol("decoder"),x8=Symbol("flowing"),hQ=Symbol("paused"),f3=Symbol("resume"),B8=Symbol("buffer"),$4=Symbol("pipes"),M8=Symbol("bufferLength"),SG=Symbol("bufferPush"),Pq=Symbol("bufferShift"),h8=Symbol("objectMode"),u2=Symbol("destroyed"),TG=Symbol("error"),PG=Symbol("emitData"),oO=Symbol("emitEnd"),AG=Symbol("emitEnd2"),C7=Symbol("async"),EG=Symbol("abort"),Aq=Symbol("aborted"),dQ=Symbol("signal"),YZ=Symbol("dataListeners"),s4=Symbol("discarded"),pQ=(Z)=>Promise.resolve().then(Z),JZ0=(Z)=>Z(),$Z0=(Z)=>Z==="end"||Z==="finish"||Z==="prefinish",YZ0=(Z)=>Z instanceof ArrayBuffer||!!Z&&typeof Z==="object"&&Z.constructor&&Z.constructor.name==="ArrayBuffer"&&Z.byteLength>=0,qZ0=(Z)=>!Buffer.isBuffer(Z)&&ArrayBuffer.isView(Z);class kG{src;dest;opts;ondrain;constructor(Z,X,Q){this.src=Z,this.dest=X,this.opts=Q,this.ondrain=()=>Z[f3](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(Z){}end(){if(this.unpipe(),this.opts.end)this.dest.end()}}class sO extends kG{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(Z,X,Q){super(Z,X,Q);this.proxyErrors=(J)=>X.emit("error",J),Z.on("error",this.proxyErrors)}}var KZ0=(Z)=>!!Z.objectMode,WZ0=(Z)=>!Z.objectMode&&!!Z.encoding&&Z.encoding!=="buffer";class qZ extends vG{[x8]=!1;[hQ]=!1;[$4]=[];[B8]=[];[h8];[t6];[C7];[k3];[K5]=!1;[Z9]=!1;[_q]=!1;[Sq]=!1;[uQ]=null;[M8]=0;[u2]=!1;[dQ];[Aq]=!1;[YZ]=0;[s4]=!1;writable=!0;readable=!0;constructor(...Z){let X=Z[0]||{};super();if(X.objectMode&&typeof X.encoding==="string")throw new TypeError("Encoding and objectMode may not be used together");if(KZ0(X))this[h8]=!0,this[t6]=null;else if(WZ0(X))this[t6]=X.encoding,this[h8]=!1;else this[h8]=!1,this[t6]=null;if(this[C7]=!!X.async,this[k3]=this[t6]?new e90(this[t6]):null,X&&X.debugExposeBuffer===!0)Object.defineProperty(this,"buffer",{get:()=>this[B8]});if(X&&X.debugExposePipes===!0)Object.defineProperty(this,"pipes",{get:()=>this[$4]});let{signal:Q}=X;if(Q)if(this[dQ]=Q,Q.aborted)this[EG]();else Q.addEventListener("abort",()=>this[EG]())}get bufferLength(){return this[M8]}get encoding(){return this[t6]}set encoding(Z){throw new Error("Encoding must be set at instantiation time")}setEncoding(Z){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[h8]}set objectMode(Z){throw new Error("objectMode must be set at instantiation time")}get["async"](){return this[C7]}set["async"](Z){this[C7]=this[C7]||!!Z}[EG](){this[Aq]=!0,this.emit("abort",this[dQ]?.reason),this.destroy(this[dQ]?.reason)}get aborted(){return this[Aq]}set aborted(Z){}write(Z,X,Q){if(this[Aq])return!1;if(this[K5])throw new Error("write after end");if(this[u2])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;if(typeof X==="function")Q=X,X="utf8";if(!X)X="utf8";let J=this[C7]?pQ:JZ0;if(!this[h8]&&!Buffer.isBuffer(Z)){if(qZ0(Z))Z=Buffer.from(Z.buffer,Z.byteOffset,Z.byteLength);else if(YZ0(Z))Z=Buffer.from(Z);else if(typeof Z!=="string")throw new Error("Non-contiguous data written to non-objectMode stream")}if(this[h8]){if(this[x8]&&this[M8]!==0)this[Tq](!0);if(this[x8])this.emit("data",Z);else this[SG](Z);if(this[M8]!==0)this.emit("readable");if(Q)J(Q);return this[x8]}if(!Z.length){if(this[M8]!==0)this.emit("readable");if(Q)J(Q);return this[x8]}if(typeof Z==="string"&&!(X===this[t6]&&!this[k3]?.lastNeed))Z=Buffer.from(Z,X);if(Buffer.isBuffer(Z)&&this[t6])Z=this[k3].write(Z);if(this[x8]&&this[M8]!==0)this[Tq](!0);if(this[x8])this.emit("data",Z);else this[SG](Z);if(this[M8]!==0)this.emit("readable");if(Q)J(Q);return this[x8]}read(Z){if(this[u2])return null;if(this[s4]=!1,this[M8]===0||Z===0||Z&&Z>this[M8])return this[W5](),null;if(this[h8])Z=null;if(this[B8].length>1&&!this[h8])this[B8]=[this[t6]?this[B8].join(""):Buffer.concat(this[B8],this[M8])];let X=this[lO](Z||null,this[B8][0]);return this[W5](),X}[lO](Z,X){if(this[h8])this[Pq]();else{let Q=X;if(Z===Q.length||Z===null)this[Pq]();else if(typeof Q==="string")this[B8][0]=Q.slice(Z),X=Q.slice(0,Z),this[M8]-=Z;else this[B8][0]=Q.subarray(Z),X=Q.subarray(0,Z),this[M8]-=Z}if(this.emit("data",X),!this[B8].length&&!this[K5])this.emit("drain");return X}end(Z,X,Q){if(typeof Z==="function")Q=Z,Z=void 0;if(typeof X==="function")Q=X,X="utf8";if(Z!==void 0)this.write(Z,X);if(Q)this.once("end",Q);if(this[K5]=!0,this.writable=!1,this[x8]||!this[hQ])this[W5]();return this}[f3](){if(this[u2])return;if(!this[YZ]&&!this[$4].length)this[s4]=!0;if(this[hQ]=!1,this[x8]=!0,this.emit("resume"),this[B8].length)this[Tq]();else if(this[K5])this[W5]();else this.emit("drain")}resume(){return this[f3]()}pause(){this[x8]=!1,this[hQ]=!0,this[s4]=!1}get destroyed(){return this[u2]}get flowing(){return this[x8]}get paused(){return this[hQ]}[SG](Z){if(this[h8])this[M8]+=1;else this[M8]+=Z.length;this[B8].push(Z)}[Pq](){if(this[h8])this[M8]-=1;else this[M8]-=this[B8][0].length;return this[B8].shift()}[Tq](Z=!1){do;while(this[iO](this[Pq]())&&this[B8].length);if(!Z&&!this[B8].length&&!this[K5])this.emit("drain")}[iO](Z){return this.emit("data",Z),this[x8]}pipe(Z,X){if(this[u2])return Z;this[s4]=!1;let Q=this[Z9];if(X=X||{},Z===pO.stdout||Z===pO.stderr)X.end=!1;else X.end=X.end!==!1;if(X.proxyErrors=!!X.proxyErrors,Q){if(X.end)Z.end()}else if(this[$4].push(!X.proxyErrors?new kG(this,Z,X):new sO(this,Z,X)),this[C7])pQ(()=>this[f3]());else this[f3]();return Z}unpipe(Z){let X=this[$4].find((Q)=>Q.dest===Z);if(X){if(this[$4].length===1){if(this[x8]&&this[YZ]===0)this[x8]=!1;this[$4]=[]}else this[$4].splice(this[$4].indexOf(X),1);X.unpipe()}}addListener(Z,X){return this.on(Z,X)}on(Z,X){let Q=super.on(Z,X);if(Z==="data"){if(this[s4]=!1,this[YZ]++,!this[$4].length&&!this[x8])this[f3]()}else if(Z==="readable"&&this[M8]!==0)super.emit("readable");else if($Z0(Z)&&this[Z9])super.emit(Z),this.removeAllListeners(Z);else if(Z==="error"&&this[uQ]){let J=X;if(this[C7])pQ(()=>J.call(this,this[uQ]));else J.call(this,this[uQ])}return Q}removeListener(Z,X){return this.off(Z,X)}off(Z,X){let Q=super.off(Z,X);if(Z==="data"){if(this[YZ]=this.listeners("data").length,this[YZ]===0&&!this[s4]&&!this[$4].length)this[x8]=!1}return Q}removeAllListeners(Z){let X=super.removeAllListeners(Z);if(Z==="data"||Z===void 0){if(this[YZ]=0,!this[s4]&&!this[$4].length)this[x8]=!1}return X}get emittedEnd(){return this[Z9]}[W5](){if(!this[_q]&&!this[Z9]&&!this[u2]&&this[B8].length===0&&this[K5]){if(this[_q]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Sq])this.emit("close");this[_q]=!1}}emit(Z,...X){let Q=X[0];if(Z!=="error"&&Z!=="close"&&Z!==u2&&this[u2])return!1;else if(Z==="data")return!this[h8]&&!Q?!1:this[C7]?(pQ(()=>this[PG](Q)),!0):this[PG](Q);else if(Z==="end")return this[oO]();else if(Z==="close"){if(this[Sq]=!0,!this[Z9]&&!this[u2])return!1;let $=super.emit("close");return this.removeAllListeners("close"),$}else if(Z==="error"){this[uQ]=Q,super.emit(TG,Q);let $=!this[dQ]||this.listeners("error").length?super.emit("error",Q):!1;return this[W5](),$}else if(Z==="resume"){let $=super.emit("resume");return this[W5](),$}else if(Z==="finish"||Z==="prefinish"){let $=super.emit(Z);return this.removeAllListeners(Z),$}let J=super.emit(Z,...X);return this[W5](),J}[PG](Z){for(let Q of this[$4])if(Q.dest.write(Z)===!1)this.pause();let X=this[s4]?!1:super.emit("data",Z);return this[W5](),X}[oO](){if(this[Z9])return!1;return this[Z9]=!0,this.readable=!1,this[C7]?(pQ(()=>this[AG]()),!0):this[AG]()}[AG](){if(this[k3]){let X=this[k3].end();if(X){for(let Q of this[$4])Q.dest.write(X);if(!this[s4])super.emit("data",X)}}for(let X of this[$4])X.end();let Z=super.emit("end");return this.removeAllListeners("end"),Z}async collect(){let Z=Object.assign([],{dataLength:0});if(!this[h8])Z.dataLength=0;let X=this.promise();return this.on("data",(Q)=>{if(Z.push(Q),!this[h8])Z.dataLength+=Q.length}),await X,Z}async concat(){if(this[h8])throw new Error("cannot concat in objectMode");let Z=await this.collect();return this[t6]?Z.join(""):Buffer.concat(Z,Z.dataLength)}async promise(){return new Promise((Z,X)=>{this.on(u2,()=>X(new Error("stream destroyed"))),this.on("error",(Q)=>X(Q)),this.on("end",()=>Z())})}[Symbol.asyncIterator](){this[s4]=!1;let Z=!1,X=async()=>{return this.pause(),Z=!0,{value:void 0,done:!0}};return{next:()=>{if(Z)return X();let J=this.read();if(J!==null)return Promise.resolve({done:!1,value:J});if(this[K5])return X();let $,Y,q=(U)=>{this.off("data",K),this.off("end",W),this.off(u2,V),X(),Y(U)},K=(U)=>{this.off("error",q),this.off("end",W),this.off(u2,V),this.pause(),$({value:U,done:!!this[K5]})},W=()=>{this.off("error",q),this.off("data",K),this.off(u2,V),X(),$({done:!0,value:void 0})},V=()=>q(new Error("stream destroyed"));return new Promise((U,H)=>{Y=H,$=U,this.once(u2,V),this.once("error",q),this.once("end",W),this.once("data",K)})},throw:X,return:X,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[s4]=!1;let Z=!1,X=()=>{return this.pause(),this.off(TG,X),this.off(u2,X),this.off("end",X),Z=!0,{done:!0,value:void 0}},Q=()=>{if(Z)return X();let J=this.read();return J===null?X():{done:!1,value:J}};return this.once("end",X),this.once(TG,X),this.once(u2,X),{next:Q,throw:X,return:X,[Symbol.iterator](){return this}}}destroy(Z){if(this[u2]){if(Z)this.emit("error",Z);else this.emit(u2);return this}this[u2]=!0,this[s4]=!0,this[B8].length=0,this[M8]=0;let X=this;if(typeof X.close==="function"&&!this[Sq])X.close();if(Z)this.emit("error",Z);else this.emit(u2);return this}static get isStream(){return ZZ0}}var FZ0=BZ0.native,iQ={lstatSync:UZ0,readdir:GZ0,readdirSync:HZ0,readlinkSync:xZ0,realpathSync:FZ0,promises:{lstat:NZ0,readdir:DZ0,readlink:LZ0,realpath:jZ0}},ZI=(Z)=>!Z||Z===iQ||Z===MZ0?iQ:{...iQ,...Z,promises:{...iQ.promises,...Z.promises||{}}},XI=/^\\\\\?\\([a-z]:)\\?$/i,wZ0=(Z)=>Z.replace(/\//g,"\\").replace(XI,"$1\\"),CZ0=/[\\\/]/,j6=0,QI=1,JI=2,R7=4,$I=6,YI=8,KZ=10,qI=12,L6=15,lQ=~L6,fG=16,aO=32,oQ=64,e6=128,Eq=256,kq=512,rO=oQ|e6|kq,RZ0=1023,bG=(Z)=>Z.isFile()?YI:Z.isDirectory()?R7:Z.isSymbolicLink()?KZ:Z.isCharacterDevice()?JI:Z.isBlockDevice()?$I:Z.isSocket()?qI:Z.isFIFO()?QI:j6,tO=new $Z({max:4096}),nQ=(Z)=>{let X=tO.get(Z);if(X)return X;let Q=Z.normalize("NFKD");return tO.set(Z,Q),Q},eO=new $Z({max:4096}),vq=(Z)=>{let X=eO.get(Z);if(X)return X;let Q=nQ(Z.toLowerCase());return eO.set(Z,Q),Q};class yG extends $Z{constructor(){super({max:256})}}class KI extends $Z{constructor(Z=16384){super({maxSize:Z,sizeCalculation:(X)=>X.length+1})}}var WI=Symbol("PathScurry setAsCwd");class Y4{name;root;roots;parent;nocase;isCWD=!1;#Z;#Q;get dev(){return this.#Q}#$;get mode(){return this.#$}#X;get nlink(){return this.#X}#Y;get uid(){return this.#Y}#z;get gid(){return this.#z}#B;get rdev(){return this.#B}#U;get blksize(){return this.#U}#K;get ino(){return this.#K}#H;get size(){return this.#H}#G;get blocks(){return this.#G}#W;get atimeMs(){return this.#W}#q;get mtimeMs(){return this.#q}#L;get ctimeMs(){return this.#L}#w;get birthtimeMs(){return this.#w}#M;get atime(){return this.#M}#F;get mtime(){return this.#F}#I;get ctime(){return this.#I}#N;get birthtime(){return this.#N}#C;#R;#x;#D;#j;#_;#J;#k;#E;#S;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(Z,X=j6,Q,J,$,Y,q){if(this.name=Z,this.#C=$?vq(Z):nQ(Z),this.#J=X&RZ0,this.nocase=$,this.roots=J,this.root=Q||this,this.#k=Y,this.#x=q.fullpath,this.#j=q.relative,this.#_=q.relativePosix,this.parent=q.parent,this.parent)this.#Z=this.parent.#Z;else this.#Z=ZI(q.fs)}depth(){if(this.#R!==void 0)return this.#R;if(!this.parent)return this.#R=0;return this.#R=this.parent.depth()+1}childrenCache(){return this.#k}resolve(Z){if(!Z)return this;let X=this.getRootString(Z),J=Z.substring(X.length).split(this.splitSep);return X?this.getRoot(X).#v(J):this.#v(J)}#v(Z){let X=this;for(let Q of Z)X=X.child(Q);return X}children(){let Z=this.#k.get(this);if(Z)return Z;let X=Object.assign([],{provisional:0});return this.#k.set(this,X),this.#J&=~fG,X}child(Z,X){if(Z===""||Z===".")return this;if(Z==="..")return this.parent||this;let Q=this.children(),J=this.nocase?vq(Z):nQ(Z);for(let K of Q)if(K.#C===J)return K;let $=this.parent?this.sep:"",Y=this.#x?this.#x+$+Z:void 0,q=this.newChild(Z,j6,{...X,parent:this,fullpath:Y});if(!this.canReaddir())q.#J|=e6;return Q.push(q),q}relative(){if(this.isCWD)return"";if(this.#j!==void 0)return this.#j;let Z=this.name,X=this.parent;if(!X)return this.#j=this.name;let Q=X.relative();return Q+(!Q||!X.parent?"":this.sep)+Z}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#_!==void 0)return this.#_;let Z=this.name,X=this.parent;if(!X)return this.#_=this.fullpathPosix();let Q=X.relativePosix();return Q+(!Q||!X.parent?"":"/")+Z}fullpath(){if(this.#x!==void 0)return this.#x;let Z=this.name,X=this.parent;if(!X)return this.#x=this.name;let J=X.fullpath()+(!X.parent?"":this.sep)+Z;return this.#x=J}fullpathPosix(){if(this.#D!==void 0)return this.#D;if(this.sep==="/")return this.#D=this.fullpath();if(!this.parent){let J=this.fullpath().replace(/\\/g,"/");if(/^[a-z]:\//i.test(J))return this.#D=`//?/${J}`;else return this.#D=J}let Z=this.parent,X=Z.fullpathPosix(),Q=X+(!X||!Z.parent?"":"/")+this.name;return this.#D=Q}isUnknown(){return(this.#J&L6)===j6}isType(Z){return this[`is${Z}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#J&L6)===YI}isDirectory(){return(this.#J&L6)===R7}isCharacterDevice(){return(this.#J&L6)===JI}isBlockDevice(){return(this.#J&L6)===$I}isFIFO(){return(this.#J&L6)===QI}isSocket(){return(this.#J&L6)===qI}isSymbolicLink(){return(this.#J&KZ)===KZ}lstatCached(){return this.#J&aO?this:void 0}readlinkCached(){return this.#E}realpathCached(){return this.#S}readdirCached(){let Z=this.children();return Z.slice(0,Z.provisional)}canReadlink(){if(this.#E)return!0;if(!this.parent)return!1;let Z=this.#J&L6;return!(Z!==j6&&Z!==KZ||this.#J&Eq||this.#J&e6)}calledReaddir(){return!!(this.#J&fG)}isENOENT(){return!!(this.#J&e6)}isNamed(Z){return!this.nocase?this.#C===nQ(Z):this.#C===vq(Z)}async readlink(){let Z=this.#E;if(Z)return Z;if(!this.canReadlink())return;if(!this.parent)return;try{let X=await this.#Z.promises.readlink(this.fullpath()),Q=(await this.parent.realpath())?.resolve(X);if(Q)return this.#E=Q}catch(X){this.#A(X.code);return}}readlinkSync(){let Z=this.#E;if(Z)return Z;if(!this.canReadlink())return;if(!this.parent)return;try{let X=this.#Z.readlinkSync(this.fullpath()),Q=this.parent.realpathSync()?.resolve(X);if(Q)return this.#E=Q}catch(X){this.#A(X.code);return}}#y(Z){this.#J|=fG;for(let X=Z.provisional;X<Z.length;X++){let Q=Z[X];if(Q)Q.#O()}}#O(){if(this.#J&e6)return;this.#J=(this.#J|e6)&lQ,this.#p()}#p(){let Z=this.children();Z.provisional=0;for(let X of Z)X.#O()}#m(){this.#J|=kq,this.#f()}#f(){if(this.#J&oQ)return;let Z=this.#J;if((Z&L6)===R7)Z&=lQ;this.#J=Z|oQ,this.#p()}#g(Z=""){if(Z==="ENOTDIR"||Z==="EPERM")this.#f();else if(Z==="ENOENT")this.#O();else this.children().provisional=0}#P(Z=""){if(Z==="ENOTDIR")this.parent.#f();else if(Z==="ENOENT")this.#O()}#A(Z=""){let X=this.#J;if(X|=Eq,Z==="ENOENT")X|=e6;if(Z==="EINVAL"||Z==="UNKNOWN")X&=lQ;if(this.#J=X,Z==="ENOTDIR"&&this.parent)this.parent.#f()}#c(Z,X){return this.#h(Z,X)||this.#u(Z,X)}#u(Z,X){let Q=bG(Z),J=this.newChild(Z.name,Q,{parent:this}),$=J.#J&L6;if($!==R7&&$!==KZ&&$!==j6)J.#J|=oQ;return X.unshift(J),X.provisional++,J}#h(Z,X){for(let Q=X.provisional;Q<X.length;Q++){let J=X[Q];if((this.nocase?vq(Z.name):nQ(Z.name))!==J.#C)continue;return this.#V(Z,J,Q,X)}}#V(Z,X,Q,J){let $=X.name;if(X.#J=X.#J&lQ|bG(Z),$!==Z.name)X.name=Z.name;if(Q!==J.provisional){if(Q===J.length-1)J.pop();else J.splice(Q,1);J.unshift(X)}return J.provisional++,X}async lstat(){if((this.#J&e6)===0)try{return this.#d(await this.#Z.promises.lstat(this.fullpath())),this}catch(Z){this.#P(Z.code)}}lstatSync(){if((this.#J&e6)===0)try{return this.#d(this.#Z.lstatSync(this.fullpath())),this}catch(Z){this.#P(Z.code)}}#d(Z){let{atime:X,atimeMs:Q,birthtime:J,birthtimeMs:$,blksize:Y,blocks:q,ctime:K,ctimeMs:W,dev:V,gid:U,ino:H,mode:x,mtime:M,mtimeMs:F,nlink:D,rdev:C,size:j,uid:I}=Z;this.#M=X,this.#W=Q,this.#N=J,this.#w=$,this.#U=Y,this.#G=q,this.#I=K,this.#L=W,this.#Q=V,this.#z=U,this.#K=H,this.#$=x,this.#F=M,this.#q=F,this.#X=D,this.#B=C,this.#H=j,this.#Y=I;let v=bG(Z);if(this.#J=this.#J&lQ|v|aO,v!==j6&&v!==R7&&v!==KZ)this.#J|=oQ}#b=[];#T=!1;#l(Z){this.#T=!1;let X=this.#b.slice();this.#b.length=0,X.forEach((Q)=>Q(null,Z))}readdirCB(Z,X=!1){if(!this.canReaddir()){if(X)Z(null,[]);else queueMicrotask(()=>Z(null,[]));return}let Q=this.children();if(this.calledReaddir()){let $=Q.slice(0,Q.provisional);if(X)Z(null,$);else queueMicrotask(()=>Z(null,$));return}if(this.#b.push(Z),this.#T)return;this.#T=!0;let J=this.fullpath();this.#Z.readdir(J,{withFileTypes:!0},($,Y)=>{if($)this.#g($.code),Q.provisional=0;else{for(let q of Y)this.#c(q,Q);this.#y(Q)}this.#l(Q.slice(0,Q.provisional));return})}#i;async readdir(){if(!this.canReaddir())return[];let Z=this.children();if(this.calledReaddir())return Z.slice(0,Z.provisional);let X=this.fullpath();if(this.#i)await this.#i;else{let Q=()=>{};this.#i=new Promise((J)=>Q=J);try{for(let J of await this.#Z.promises.readdir(X,{withFileTypes:!0}))this.#c(J,Z);this.#y(Z)}catch(J){this.#g(J.code),Z.provisional=0}this.#i=void 0,Q()}return Z.slice(0,Z.provisional)}readdirSync(){if(!this.canReaddir())return[];let Z=this.children();if(this.calledReaddir())return Z.slice(0,Z.provisional);let X=this.fullpath();try{for(let Q of this.#Z.readdirSync(X,{withFileTypes:!0}))this.#c(Q,Z);this.#y(Z)}catch(Q){this.#g(Q.code),Z.provisional=0}return Z.slice(0,Z.provisional)}canReaddir(){if(this.#J&rO)return!1;let Z=L6&this.#J;if(!(Z===j6||Z===R7||Z===KZ))return!1;return!0}shouldWalk(Z,X){return(this.#J&R7)===R7&&!(this.#J&rO)&&!Z.has(this)&&(!X||X(this))}async realpath(){if(this.#S)return this.#S;if((kq|Eq|e6)&this.#J)return;try{let Z=await this.#Z.promises.realpath(this.fullpath());return this.#S=this.resolve(Z)}catch(Z){this.#m()}}realpathSync(){if(this.#S)return this.#S;if((kq|Eq|e6)&this.#J)return;try{let Z=this.#Z.realpathSync(this.fullpath());return this.#S=this.resolve(Z)}catch(Z){this.#m()}}[WI](Z){if(Z===this)return;Z.isCWD=!1,this.isCWD=!0;let X=new Set([]),Q=[],J=this;while(J&&J.parent)X.add(J),J.#j=Q.join(this.sep),J.#_=Q.join("/"),J=J.parent,Q.push("..");J=Z;while(J&&J.parent&&!X.has(J))J.#j=void 0,J.#_=void 0,J=J.parent}}class fq extends Y4{sep="\\";splitSep=CZ0;constructor(Z,X=j6,Q,J,$,Y,q){super(Z,X,Q,J,$,Y,q)}newChild(Z,X=j6,Q={}){return new fq(Z,X,this.root,this.roots,this.nocase,this.childrenCache(),Q)}getRootString(Z){return mG.parse(Z).root}getRoot(Z){if(Z=wZ0(Z.toUpperCase()),Z===this.root.name)return this.root;for(let[X,Q]of Object.entries(this.roots))if(this.sameRoot(Z,X))return this.roots[Z]=Q;return this.roots[Z]=new sQ(Z,this).root}sameRoot(Z,X=this.root.name){return Z=Z.toUpperCase().replace(/\//g,"\\").replace(XI,"$1\\"),Z===X}}class bq extends Y4{splitSep="/";sep="/";constructor(Z,X=j6,Q,J,$,Y,q){super(Z,X,Q,J,$,Y,q)}getRootString(Z){return Z.startsWith("/")?"/":""}getRoot(Z){return this.root}newChild(Z,X=j6,Q={}){return new bq(Z,X,this.root,this.roots,this.nocase,this.childrenCache(),Q)}}class gG{root;rootPath;roots;cwd;#Z;#Q;#$;nocase;#X;constructor(Z=process.cwd(),X,Q,{nocase:J,childrenCacheSize:$=16384,fs:Y=iQ}={}){if(this.#X=ZI(Y),Z instanceof URL||Z.startsWith("file://"))Z=VZ0(Z);let q=X.resolve(Z);this.roots=Object.create(null),this.rootPath=this.parseRootPath(q),this.#Z=new yG,this.#Q=new yG,this.#$=new KI($);let K=q.substring(this.rootPath.length).split(Q);if(K.length===1&&!K[0])K.pop();if(J===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=J,this.root=this.newRoot(this.#X),this.roots[this.rootPath]=this.root;let W=this.root,V=K.length-1,U=X.sep,H=this.rootPath,x=!1;for(let M of K){let F=V--;W=W.child(M,{relative:new Array(F).fill("..").join(U),relativePosix:new Array(F).fill("..").join("/"),fullpath:H+=(x?"":U)+M}),x=!0}this.cwd=W}depth(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.depth()}childrenCache(){return this.#$}resolve(...Z){let X="";for(let $=Z.length-1;$>=0;$--){let Y=Z[$];if(!Y||Y===".")continue;if(X=X?`${Y}/${X}`:Y,this.isAbsolute(Y))break}let Q=this.#Z.get(X);if(Q!==void 0)return Q;let J=this.cwd.resolve(X).fullpath();return this.#Z.set(X,J),J}resolvePosix(...Z){let X="";for(let $=Z.length-1;$>=0;$--){let Y=Z[$];if(!Y||Y===".")continue;if(X=X?`${Y}/${X}`:Y,this.isAbsolute(Y))break}let Q=this.#Q.get(X);if(Q!==void 0)return Q;let J=this.cwd.resolve(X).fullpathPosix();return this.#Q.set(X,J),J}relative(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.relative()}relativePosix(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.relativePosix()}basename(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.name}dirname(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return(Z.parent||Z).fullpath()}async readdir(Z=this.cwd,X={withFileTypes:!0}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z,Z=this.cwd;let{withFileTypes:Q}=X;if(!Z.canReaddir())return[];else{let J=await Z.readdir();return Q?J:J.map(($)=>$.name)}}readdirSync(Z=this.cwd,X={withFileTypes:!0}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z,Z=this.cwd;let{withFileTypes:Q=!0}=X;if(!Z.canReaddir())return[];else if(Q)return Z.readdirSync();else return Z.readdirSync().map((J)=>J.name)}async lstat(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.lstat()}lstatSync(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.lstatSync()}async readlink(Z=this.cwd,{withFileTypes:X}={withFileTypes:!1}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z.withFileTypes,Z=this.cwd;let Q=await Z.readlink();return X?Q:Q?.fullpath()}readlinkSync(Z=this.cwd,{withFileTypes:X}={withFileTypes:!1}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z.withFileTypes,Z=this.cwd;let Q=Z.readlinkSync();return X?Q:Q?.fullpath()}async realpath(Z=this.cwd,{withFileTypes:X}={withFileTypes:!1}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z.withFileTypes,Z=this.cwd;let Q=await Z.realpath();return X?Q:Q?.fullpath()}realpathSync(Z=this.cwd,{withFileTypes:X}={withFileTypes:!1}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z.withFileTypes,Z=this.cwd;let Q=Z.realpathSync();return X?Q:Q?.fullpath()}async walk(Z=this.cwd,X={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z,Z=this.cwd;let{withFileTypes:Q=!0,follow:J=!1,filter:$,walkFilter:Y}=X,q=[];if(!$||$(Z))q.push(Q?Z:Z.fullpath());let K=new Set,W=(U,H)=>{K.add(U),U.readdirCB((x,M)=>{if(x)return H(x);let F=M.length;if(!F)return H();let D=()=>{if(--F===0)H()};for(let C of M){if(!$||$(C))q.push(Q?C:C.fullpath());if(J&&C.isSymbolicLink())C.realpath().then((j)=>j?.isUnknown()?j.lstat():j).then((j)=>j?.shouldWalk(K,Y)?W(j,D):D());else if(C.shouldWalk(K,Y))W(C,D);else D()}},!0)},V=Z;return new Promise((U,H)=>{W(V,(x)=>{if(x)return H(x);U(q)})})}walkSync(Z=this.cwd,X={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z,Z=this.cwd;let{withFileTypes:Q=!0,follow:J=!1,filter:$,walkFilter:Y}=X,q=[];if(!$||$(Z))q.push(Q?Z:Z.fullpath());let K=new Set([Z]);for(let W of K){let V=W.readdirSync();for(let U of V){if(!$||$(U))q.push(Q?U:U.fullpath());let H=U;if(U.isSymbolicLink()){if(!(J&&(H=U.realpathSync())))continue;if(H.isUnknown())H.lstatSync()}if(H.shouldWalk(K,Y))K.add(H)}}return q}[Symbol.asyncIterator](){return this.iterate()}iterate(Z=this.cwd,X={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z,Z=this.cwd;return this.stream(Z,X)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(Z=this.cwd,X={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z,Z=this.cwd;let{withFileTypes:Q=!0,follow:J=!1,filter:$,walkFilter:Y}=X;if(!$||$(Z))yield Q?Z:Z.fullpath();let q=new Set([Z]);for(let K of q){let W=K.readdirSync();for(let V of W){if(!$||$(V))yield Q?V:V.fullpath();let U=V;if(V.isSymbolicLink()){if(!(J&&(U=V.realpathSync())))continue;if(U.isUnknown())U.lstatSync()}if(U.shouldWalk(q,Y))q.add(U)}}}stream(Z=this.cwd,X={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z,Z=this.cwd;let{withFileTypes:Q=!0,follow:J=!1,filter:$,walkFilter:Y}=X,q=new qZ({objectMode:!0});if(!$||$(Z))q.write(Q?Z:Z.fullpath());let K=new Set,W=[Z],V=0,U=()=>{let H=!1;while(!H){let x=W.shift();if(!x){if(V===0)q.end();return}V++,K.add(x);let M=(D,C,j=!1)=>{if(D)return q.emit("error",D);if(J&&!j){let I=[];for(let v of C)if(v.isSymbolicLink())I.push(v.realpath().then((S)=>S?.isUnknown()?S.lstat():S));if(I.length){Promise.all(I).then(()=>M(null,C,!0));return}}for(let I of C)if(I&&(!$||$(I))){if(!q.write(Q?I:I.fullpath()))H=!0}V--;for(let I of C){let v=I.realpathCached()||I;if(v.shouldWalk(K,Y))W.push(v)}if(H&&!q.flowing)q.once("drain",U);else if(!F)U()},F=!0;x.readdirCB(M,!0),F=!1}};return U(),q}streamSync(Z=this.cwd,X={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z,Z=this.cwd;let{withFileTypes:Q=!0,follow:J=!1,filter:$,walkFilter:Y}=X,q=new qZ({objectMode:!0}),K=new Set;if(!$||$(Z))q.write(Q?Z:Z.fullpath());let W=[Z],V=0,U=()=>{let H=!1;while(!H){let x=W.shift();if(!x){if(V===0)q.end();return}V++,K.add(x);let M=x.readdirSync();for(let F of M)if(!$||$(F)){if(!q.write(Q?F:F.fullpath()))H=!0}V--;for(let F of M){let D=F;if(F.isSymbolicLink()){if(!(J&&(D=F.realpathSync())))continue;if(D.isUnknown())D.lstatSync()}if(D.shouldWalk(K,Y))W.push(D)}}if(H&&!q.flowing)q.once("drain",U)};return U(),q}chdir(Z=this.cwd){let X=this.cwd;this.cwd=typeof Z==="string"?this.cwd.resolve(Z):Z,this.cwd[WI](X)}}class sQ extends gG{sep="\\";constructor(Z=process.cwd(),X={}){let{nocase:Q=!0}=X;super(Z,mG,"\\",{...X,nocase:Q});this.nocase=Q;for(let J=this.cwd;J;J=J.parent)J.nocase=this.nocase}parseRootPath(Z){return mG.parse(Z).root.toUpperCase()}newRoot(Z){return new fq(this.rootPath,R7,void 0,this.roots,this.nocase,this.childrenCache(),{fs:Z})}isAbsolute(Z){return Z.startsWith("/")||Z.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(Z)}}class aQ extends gG{sep="/";constructor(Z=process.cwd(),X={}){let{nocase:Q=!1}=X;super(Z,zZ0,"/",{...X,nocase:Q});this.nocase=Q}parseRootPath(Z){return"/"}newRoot(Z){return new bq(this.rootPath,R7,void 0,this.roots,this.nocase,this.childrenCache(),{fs:Z})}isAbsolute(Z){return Z.startsWith("/")}}class mq extends aQ{constructor(Z=process.cwd(),X={}){let{nocase:Q=!0}=X;super(Z,{...X,nocase:Q})}}var mt0=process.platform==="win32"?fq:bq,zI=process.platform==="win32"?sQ:process.platform==="darwin"?mq:aQ;var OZ0=(Z)=>Z.length>=1,IZ0=(Z)=>Z.length>=1;class b3{#Z;#Q;#$;length;#X;#Y;#z;#B;#U;#K;#H=!0;constructor(Z,X,Q,J){if(!OZ0(Z))throw new TypeError("empty pattern list");if(!IZ0(X))throw new TypeError("empty glob list");if(X.length!==Z.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=Z.length,Q<0||Q>=this.length)throw new TypeError("index out of range");if(this.#Z=Z,this.#Q=X,this.#$=Q,this.#X=J,this.#$===0){if(this.isUNC()){let[$,Y,q,K,...W]=this.#Z,[V,U,H,x,...M]=this.#Q;if(W[0]==="")W.shift(),M.shift();let F=[$,Y,q,K,""].join("/"),D=[V,U,H,x,""].join("/");this.#Z=[F,...W],this.#Q=[D,...M],this.length=this.#Z.length}else if(this.isDrive()||this.isAbsolute()){let[$,...Y]=this.#Z,[q,...K]=this.#Q;if(Y[0]==="")Y.shift(),K.shift();let W=$+"/",V=q+"/";this.#Z=[W,...Y],this.#Q=[V,...K],this.length=this.#Z.length}}}pattern(){return this.#Z[this.#$]}isString(){return typeof this.#Z[this.#$]==="string"}isGlobstar(){return this.#Z[this.#$]===c2}isRegExp(){return this.#Z[this.#$]instanceof RegExp}globString(){return this.#z=this.#z||(this.#$===0?this.isAbsolute()?this.#Q[0]+this.#Q.slice(1).join("/"):this.#Q.join("/"):this.#Q.slice(this.#$).join("/"))}hasMore(){return this.length>this.#$+1}rest(){if(this.#Y!==void 0)return this.#Y;if(!this.hasMore())return this.#Y=null;return this.#Y=new b3(this.#Z,this.#Q,this.#$+1,this.#X),this.#Y.#K=this.#K,this.#Y.#U=this.#U,this.#Y.#B=this.#B,this.#Y}isUNC(){let Z=this.#Z;return this.#U!==void 0?this.#U:this.#U=this.#X==="win32"&&this.#$===0&&Z[0]===""&&Z[1]===""&&typeof Z[2]==="string"&&!!Z[2]&&typeof Z[3]==="string"&&!!Z[3]}isDrive(){let Z=this.#Z;return this.#B!==void 0?this.#B:this.#B=this.#X==="win32"&&this.#$===0&&this.length>1&&typeof Z[0]==="string"&&/^[a-z]:$/i.test(Z[0])}isAbsolute(){let Z=this.#Z;return this.#K!==void 0?this.#K:this.#K=Z[0]===""&&Z.length>1||this.isDrive()||this.isUNC()}root(){let Z=this.#Z[0];return typeof Z==="string"&&this.isAbsolute()&&this.#$===0?Z:""}checkFollowGlobstar(){return!(this.#$===0||!this.isGlobstar()||!this.#H)}markFollowGlobstar(){if(this.#$===0||!this.isGlobstar()||!this.#H)return!1;return this.#H=!1,!0}}var _Z0=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class rQ{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(Z,{nobrace:X,nocase:Q,noext:J,noglobstar:$,platform:Y=_Z0}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=Y,this.mmopts={dot:!0,nobrace:X,nocase:Q,noext:J,noglobstar:$,optimizationLevel:2,platform:Y,nocomment:!0,nonegate:!0};for(let q of Z)this.add(q)}add(Z){let X=new D6(Z,this.mmopts);for(let Q=0;Q<X.set.length;Q++){let J=X.set[Q],$=X.globParts[Q];if(!J||!$)throw new Error("invalid pattern object");while(J[0]==="."&&$[0]===".")J.shift(),$.shift();let Y=new b3(J,$,0,this.platform),q=new D6(Y.globString(),this.mmopts),K=$[$.length-1]==="**",W=Y.isAbsolute();if(W)this.absolute.push(q);else this.relative.push(q);if(K)if(W)this.absoluteChildren.push(q);else this.relativeChildren.push(q)}}ignored(Z){let X=Z.fullpath(),Q=`${X}/`,J=Z.relative()||".",$=`${J}/`;for(let Y of this.relative)if(Y.match(J)||Y.match($))return!0;for(let Y of this.absolute)if(Y.match(X)||Y.match(Q))return!0;return!1}childrenIgnored(Z){let X=Z.fullpath()+"/",Q=(Z.relative()||".")+"/";for(let J of this.relativeChildren)if(J.match(Q))return!0;for(let J of this.absoluteChildren)if(J.match(X))return!0;return!1}}class cG{store;constructor(Z=new Map){this.store=Z}copy(){return new cG(new Map(this.store))}hasWalked(Z,X){return this.store.get(Z.fullpath())?.has(X.globString())}storeWalked(Z,X){let Q=Z.fullpath(),J=this.store.get(Q);if(J)J.add(X.globString());else this.store.set(Q,new Set([X.globString()]))}}class VI{store=new Map;add(Z,X,Q){let J=(X?2:0)|(Q?1:0),$=this.store.get(Z);this.store.set(Z,$===void 0?J:J&$)}entries(){return[...this.store.entries()].map(([Z,X])=>[Z,!!(X&2),!!(X&1)])}}class UI{store=new Map;add(Z,X){if(!Z.canReaddir())return;let Q=this.store.get(Z);if(Q){if(!Q.find((J)=>J.globString()===X.globString()))Q.push(X)}else this.store.set(Z,[X])}get(Z){let X=this.store.get(Z);if(!X)throw new Error("attempting to walk unknown path");return X}entries(){return this.keys().map((Z)=>[Z,this.store.get(Z)])}keys(){return[...this.store.keys()].filter((Z)=>Z.canReaddir())}}class tQ{hasWalkedCache;matches=new VI;subwalks=new UI;patterns;follow;dot;opts;constructor(Z,X){this.opts=Z,this.follow=!!Z.follow,this.dot=!!Z.dot,this.hasWalkedCache=X?X.copy():new cG}processPatterns(Z,X){this.patterns=X;let Q=X.map((J)=>[Z,J]);for(let[J,$]of Q){this.hasWalkedCache.storeWalked(J,$);let Y=$.root(),q=$.isAbsolute()&&this.opts.absolute!==!1;if(Y){J=J.resolve(Y==="/"&&this.opts.root!==void 0?this.opts.root:Y);let U=$.rest();if(!U){this.matches.add(J,!0,!1);continue}else $=U}if(J.isENOENT())continue;let K,W,V=!1;while(typeof(K=$.pattern())==="string"&&(W=$.rest()))J=J.resolve(K),$=W,V=!0;if(K=$.pattern(),W=$.rest(),V){if(this.hasWalkedCache.hasWalked(J,$))continue;this.hasWalkedCache.storeWalked(J,$)}if(typeof K==="string"){let U=K===".."||K===""||K===".";this.matches.add(J.resolve(K),q,U);continue}else if(K===c2){if(!J.isSymbolicLink()||this.follow||$.checkFollowGlobstar())this.subwalks.add(J,$);let U=W?.pattern(),H=W?.rest();if(!W||(U===""||U===".")&&!H)this.matches.add(J,q,U===""||U===".");else if(U===".."){let x=J.parent||J;if(!H)this.matches.add(x,q,!0);else if(!this.hasWalkedCache.hasWalked(x,H))this.subwalks.add(x,H)}}else if(K instanceof RegExp)this.subwalks.add(J,$)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new tQ(this.opts,this.hasWalkedCache)}filterEntries(Z,X){let Q=this.subwalks.get(Z),J=this.child();for(let $ of X)for(let Y of Q){let q=Y.isAbsolute(),K=Y.pattern(),W=Y.rest();if(K===c2)J.testGlobstar($,Y,W,q);else if(K instanceof RegExp)J.testRegExp($,K,W,q);else J.testString($,K,W,q)}return J}testGlobstar(Z,X,Q,J){if(this.dot||!Z.name.startsWith(".")){if(!X.hasMore())this.matches.add(Z,J,!1);if(Z.canReaddir()){if(this.follow||!Z.isSymbolicLink())this.subwalks.add(Z,X);else if(Z.isSymbolicLink()){if(Q&&X.checkFollowGlobstar())this.subwalks.add(Z,Q);else if(X.markFollowGlobstar())this.subwalks.add(Z,X)}}}if(Q){let $=Q.pattern();if(typeof $==="string"&&$!==".."&&$!==""&&$!==".")this.testString(Z,$,Q.rest(),J);else if($===".."){let Y=Z.parent||Z;this.subwalks.add(Y,Q)}else if($ instanceof RegExp)this.testRegExp(Z,$,Q.rest(),J)}}testRegExp(Z,X,Q,J){if(!X.test(Z.name))return;if(!Q)this.matches.add(Z,J,!1);else this.subwalks.add(Z,Q)}testString(Z,X,Q,J){if(!Z.isNamed(X))return;if(!Q)this.matches.add(Z,J,!1);else this.subwalks.add(Z,Q)}}var SZ0=(Z,X)=>typeof Z==="string"?new rQ([Z],X):Array.isArray(Z)?new rQ(Z,X):Z;class uG{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#Z=[];#Q;#$;signal;maxDepth;includeChildMatches;constructor(Z,X,Q){if(this.patterns=Z,this.path=X,this.opts=Q,this.#$=!Q.posix&&Q.platform==="win32"?"\\":"/",this.includeChildMatches=Q.includeChildMatches!==!1,Q.ignore||!this.includeChildMatches){if(this.#Q=SZ0(Q.ignore??[],Q),!this.includeChildMatches&&typeof this.#Q.add!=="function")throw new Error("cannot ignore child matches, ignore lacks add() method.")}if(this.maxDepth=Q.maxDepth||1/0,Q.signal)this.signal=Q.signal,this.signal.addEventListener("abort",()=>{this.#Z.length=0})}#X(Z){return this.seen.has(Z)||!!this.#Q?.ignored?.(Z)}#Y(Z){return!!this.#Q?.childrenIgnored?.(Z)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let Z=void 0;while(!this.paused&&(Z=this.#Z.shift()))Z()}onResume(Z){if(this.signal?.aborted)return;if(!this.paused)Z();else this.#Z.push(Z)}async matchCheck(Z,X){if(X&&this.opts.nodir)return;let Q;if(this.opts.realpath){if(Q=Z.realpathCached()||await Z.realpath(),!Q)return;Z=Q}let $=Z.isUnknown()||this.opts.stat?await Z.lstat():Z;if(this.opts.follow&&this.opts.nodir&&$?.isSymbolicLink()){let Y=await $.realpath();if(Y&&(Y.isUnknown()||this.opts.stat))await Y.lstat()}return this.matchCheckTest($,X)}matchCheckTest(Z,X){return Z&&(this.maxDepth===1/0||Z.depth()<=this.maxDepth)&&(!X||Z.canReaddir())&&(!this.opts.nodir||!Z.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!Z.isSymbolicLink()||!Z.realpathCached()?.isDirectory())&&!this.#X(Z)?Z:void 0}matchCheckSync(Z,X){if(X&&this.opts.nodir)return;let Q;if(this.opts.realpath){if(Q=Z.realpathCached()||Z.realpathSync(),!Q)return;Z=Q}let $=Z.isUnknown()||this.opts.stat?Z.lstatSync():Z;if(this.opts.follow&&this.opts.nodir&&$?.isSymbolicLink()){let Y=$.realpathSync();if(Y&&(Y?.isUnknown()||this.opts.stat))Y.lstatSync()}return this.matchCheckTest($,X)}matchFinish(Z,X){if(this.#X(Z))return;if(!this.includeChildMatches&&this.#Q?.add){let $=`${Z.relativePosix()}/**`;this.#Q.add($)}let Q=this.opts.absolute===void 0?X:this.opts.absolute;this.seen.add(Z);let J=this.opts.mark&&Z.isDirectory()?this.#$:"";if(this.opts.withFileTypes)this.matchEmit(Z);else if(Q){let $=this.opts.posix?Z.fullpathPosix():Z.fullpath();this.matchEmit($+J)}else{let $=this.opts.posix?Z.relativePosix():Z.relative(),Y=this.opts.dotRelative&&!$.startsWith(".."+this.#$)?"."+this.#$:"";this.matchEmit(!$?"."+J:Y+$+J)}}async match(Z,X,Q){let J=await this.matchCheck(Z,Q);if(J)this.matchFinish(J,X)}matchSync(Z,X,Q){let J=this.matchCheckSync(Z,Q);if(J)this.matchFinish(J,X)}walkCB(Z,X,Q){if(this.signal?.aborted)Q();this.walkCB2(Z,X,new tQ(this.opts),Q)}walkCB2(Z,X,Q,J){if(this.#Y(Z))return J();if(this.signal?.aborted)J();if(this.paused){this.onResume(()=>this.walkCB2(Z,X,Q,J));return}Q.processPatterns(Z,X);let $=1,Y=()=>{if(--$===0)J()};for(let[q,K,W]of Q.matches.entries()){if(this.#X(q))continue;$++,this.match(q,K,W).then(()=>Y())}for(let q of Q.subwalkTargets()){if(this.maxDepth!==1/0&&q.depth()>=this.maxDepth)continue;$++;let K=q.readdirCached();if(q.calledReaddir())this.walkCB3(q,K,Q,Y);else q.readdirCB((W,V)=>this.walkCB3(q,V,Q,Y),!0)}Y()}walkCB3(Z,X,Q,J){Q=Q.filterEntries(Z,X);let $=1,Y=()=>{if(--$===0)J()};for(let[q,K,W]of Q.matches.entries()){if(this.#X(q))continue;$++,this.match(q,K,W).then(()=>Y())}for(let[q,K]of Q.subwalks.entries())$++,this.walkCB2(q,K,Q.child(),Y);Y()}walkCBSync(Z,X,Q){if(this.signal?.aborted)Q();this.walkCB2Sync(Z,X,new tQ(this.opts),Q)}walkCB2Sync(Z,X,Q,J){if(this.#Y(Z))return J();if(this.signal?.aborted)J();if(this.paused){this.onResume(()=>this.walkCB2Sync(Z,X,Q,J));return}Q.processPatterns(Z,X);let $=1,Y=()=>{if(--$===0)J()};for(let[q,K,W]of Q.matches.entries()){if(this.#X(q))continue;this.matchSync(q,K,W)}for(let q of Q.subwalkTargets()){if(this.maxDepth!==1/0&&q.depth()>=this.maxDepth)continue;$++;let K=q.readdirSync();this.walkCB3Sync(q,K,Q,Y)}Y()}walkCB3Sync(Z,X,Q,J){Q=Q.filterEntries(Z,X);let $=1,Y=()=>{if(--$===0)J()};for(let[q,K,W]of Q.matches.entries()){if(this.#X(q))continue;this.matchSync(q,K,W)}for(let[q,K]of Q.subwalks.entries())$++,this.walkCB2Sync(q,K,Q.child(),Y);Y()}}class yq extends uG{matches=new Set;constructor(Z,X,Q){super(Z,X,Q)}matchEmit(Z){this.matches.add(Z)}async walk(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown())await this.path.lstat();return await new Promise((Z,X)=>{this.walkCB(this.path,this.patterns,()=>{if(this.signal?.aborted)X(this.signal.reason);else Z(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown())this.path.lstatSync();return this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}}class gq extends uG{results;constructor(Z,X,Q){super(Z,X,Q);this.results=new qZ({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(Z){if(this.results.write(Z),!this.results.flowing)this.pause()}stream(){let Z=this.path;if(Z.isUnknown())Z.lstat().then(()=>{this.walkCB(Z,this.patterns,()=>this.results.end())});else this.walkCB(Z,this.patterns,()=>this.results.end());return this.results}streamSync(){if(this.path.isUnknown())this.path.lstatSync();return this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}}var PZ0=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class O7{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(Z,X){if(!X)throw new TypeError("glob options required");if(this.withFileTypes=!!X.withFileTypes,this.signal=X.signal,this.follow=!!X.follow,this.dot=!!X.dot,this.dotRelative=!!X.dotRelative,this.nodir=!!X.nodir,this.mark=!!X.mark,!X.cwd)this.cwd="";else if(X.cwd instanceof URL||X.cwd.startsWith("file://"))X.cwd=TZ0(X.cwd);if(this.cwd=X.cwd||"",this.root=X.root,this.magicalBraces=!!X.magicalBraces,this.nobrace=!!X.nobrace,this.noext=!!X.noext,this.realpath=!!X.realpath,this.absolute=X.absolute,this.includeChildMatches=X.includeChildMatches!==!1,this.noglobstar=!!X.noglobstar,this.matchBase=!!X.matchBase,this.maxDepth=typeof X.maxDepth==="number"?X.maxDepth:1/0,this.stat=!!X.stat,this.ignore=X.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof Z==="string")Z=[Z];if(this.windowsPathsNoEscape=!!X.windowsPathsNoEscape||X.allowWindowsEscape===!1,this.windowsPathsNoEscape)Z=Z.map((K)=>K.replace(/\\/g,"/"));if(this.matchBase){if(X.noglobstar)throw new TypeError("base matching requires globstar");Z=Z.map((K)=>K.includes("/")?K:`./**/${K}`)}if(this.pattern=Z,this.platform=X.platform||PZ0,this.opts={...X,platform:this.platform},X.scurry){if(this.scurry=X.scurry,X.nocase!==void 0&&X.nocase!==X.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let K=X.platform==="win32"?sQ:X.platform==="darwin"?mq:X.platform?aQ:zI;this.scurry=new K(this.cwd,{nocase:X.nocase,fs:X.fs})}this.nocase=this.scurry.nocase;let Q=this.platform==="darwin"||this.platform==="win32",J={...X,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:Q,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},$=this.pattern.map((K)=>new D6(K,J)),[Y,q]=$.reduce((K,W)=>{return K[0].push(...W.set),K[1].push(...W.globParts),K},[[],[]]);this.patterns=Y.map((K,W)=>{let V=q[W];if(!V)throw new Error("invalid pattern object");return new b3(K,V,0,this.platform)})}async walk(){return[...await new yq(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new yq(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new gq(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new gq(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}var hG=(Z,X={})=>{if(!Array.isArray(Z))Z=[Z];for(let Q of Z)if(new D6(Q,X).hasMagic())return!0;return!1};function uq(Z,X={}){return new O7(Z,X).streamSync()}function HI(Z,X={}){return new O7(Z,X).stream()}function xI(Z,X={}){return new O7(Z,X).walkSync()}async function GI(Z,X={}){return new O7(Z,X).walk()}function hq(Z,X={}){return new O7(Z,X).iterateSync()}function BI(Z,X={}){return new O7(Z,X).iterate()}var AZ0=uq,EZ0=Object.assign(HI,{sync:uq}),vZ0=hq,kZ0=Object.assign(BI,{sync:hq}),fZ0=Object.assign(xI,{stream:uq,iterate:hq}),cq=Object.assign(GI,{glob:GI,globSync:xI,sync:fZ0,globStream:HI,stream:EZ0,globStreamSync:uq,streamSync:AZ0,globIterate:BI,iterate:kZ0,globIterateSync:hq,iterateSync:vZ0,Glob:O7,hasMagic:hG,escape:E3,unescape:r6});cq.glob=cq;var rA=F6(UH(),1);import Qz0 from"fs";import Jz0 from"path";function JJ(Z,X){return function Q(){return Z.apply(X,arguments)}}var{toString:RX0}=Object.prototype,{getPrototypeOf:ZK}=Object,{iterator:XK,toStringTag:jS}=Symbol,QK=((Z)=>(X)=>{let Q=RX0.call(X);return Z[Q]||(Z[Q]=Q.slice(8,-1).toLowerCase())})(Object.create(null)),X7=(Z)=>{return Z=Z.toLowerCase(),(X)=>QK(X)===Z},JK=(Z)=>(X)=>typeof X===Z,{isArray:h3}=Array,u3=JK("undefined");function $J(Z){return Z!==null&&!u3(Z)&&Z.constructor!==null&&!u3(Z.constructor)&&L4(Z.constructor.isBuffer)&&Z.constructor.isBuffer(Z)}var wS=X7("ArrayBuffer");function OX0(Z){let X;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView)X=ArrayBuffer.isView(Z);else X=Z&&Z.buffer&&wS(Z.buffer);return X}var IX0=JK("string"),L4=JK("function"),CS=JK("number"),YJ=(Z)=>Z!==null&&typeof Z==="object",_X0=(Z)=>Z===!0||Z===!1,eq=(Z)=>{if(QK(Z)!=="object")return!1;let X=ZK(Z);return(X===null||X===Object.prototype||Object.getPrototypeOf(X)===null)&&!(jS in Z)&&!(XK in Z)},SX0=(Z)=>{if(!YJ(Z)||$J(Z))return!1;try{return Object.keys(Z).length===0&&Object.getPrototypeOf(Z)===Object.prototype}catch(X){return!1}},TX0=X7("Date"),PX0=X7("File"),AX0=(Z)=>{return!!(Z&&typeof Z.uri!=="undefined")},EX0=(Z)=>Z&&typeof Z.getParts!=="undefined",vX0=X7("Blob"),kX0=X7("FileList"),fX0=(Z)=>YJ(Z)&&L4(Z.pipe);function bX0(){if(typeof globalThis!=="undefined")return globalThis;if(typeof self!=="undefined")return self;if(typeof window!=="undefined")return window;if(typeof global!=="undefined")return global;return{}}var DS=bX0(),LS=typeof DS.FormData!=="undefined"?DS.FormData:void 0,mX0=(Z)=>{if(!Z)return!1;if(LS&&Z instanceof LS)return!0;let X=ZK(Z);if(!X||X===Object.prototype)return!1;if(!L4(Z.append))return!1;let Q=QK(Z);return Q==="formdata"||Q==="object"&&L4(Z.toString)&&Z.toString()==="[object FormData]"},yX0=X7("URLSearchParams"),[gX0,cX0,uX0,hX0]=["ReadableStream","Request","Response","Headers"].map(X7),dX0=(Z)=>{return Z.trim?Z.trim():Z.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function qJ(Z,X,{allOwnKeys:Q=!1}={}){if(Z===null||typeof Z==="undefined")return;let J,$;if(typeof Z!=="object")Z=[Z];if(h3(Z))for(J=0,$=Z.length;J<$;J++)X.call(null,Z[J],J,Z);else{if($J(Z))return;let Y=Q?Object.getOwnPropertyNames(Z):Object.keys(Z),q=Y.length,K;for(J=0;J<q;J++)K=Y[J],X.call(null,Z[K],K,Z)}}function RS(Z,X){if($J(Z))return null;X=X.toLowerCase();let Q=Object.keys(Z),J=Q.length,$;while(J-- >0)if($=Q[J],X===$.toLowerCase())return $;return null}var zZ=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:global})(),OS=(Z)=>!u3(Z)&&Z!==zZ;function GH(...Z){let{caseless:X,skipUndefined:Q}=OS(this)&&this||{},J={},$=(Y,q)=>{if(q==="__proto__"||q==="constructor"||q==="prototype")return;let K=X&&RS(J,q)||q,W=HH(J,K)?J[K]:void 0;if(eq(W)&&eq(Y))J[K]=GH(W,Y);else if(eq(Y))J[K]=GH({},Y);else if(h3(Y))J[K]=Y.slice();else if(!Q||!u3(Y))J[K]=Y};for(let Y=0,q=Z.length;Y<q;Y++)Z[Y]&&qJ(Z[Y],$);return J}var pX0=(Z,X,Q,{allOwnKeys:J}={})=>{return qJ(X,($,Y)=>{if(Q&&L4($))Object.defineProperty(Z,Y,{__proto__:null,value:JJ($,Q),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty(Z,Y,{__proto__:null,value:$,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:J}),Z},lX0=(Z)=>{if(Z.charCodeAt(0)===65279)Z=Z.slice(1);return Z},iX0=(Z,X,Q,J)=>{Z.prototype=Object.create(X.prototype,J),Object.defineProperty(Z.prototype,"constructor",{__proto__:null,value:Z,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(Z,"super",{__proto__:null,value:X.prototype}),Q&&Object.assign(Z.prototype,Q)},oX0=(Z,X,Q,J)=>{let $,Y,q,K={};if(X=X||{},Z==null)return X;do{$=Object.getOwnPropertyNames(Z),Y=$.length;while(Y-- >0)if(q=$[Y],(!J||J(q,Z,X))&&!K[q])X[q]=Z[q],K[q]=!0;Z=Q!==!1&&ZK(Z)}while(Z&&(!Q||Q(Z,X))&&Z!==Object.prototype);return X},nX0=(Z,X,Q)=>{if(Z=String(Z),Q===void 0||Q>Z.length)Q=Z.length;Q-=X.length;let J=Z.indexOf(X,Q);return J!==-1&&J===Q},sX0=(Z)=>{if(!Z)return null;if(h3(Z))return Z;let X=Z.length;if(!CS(X))return null;let Q=new Array(X);while(X-- >0)Q[X]=Z[X];return Q},aX0=((Z)=>{return(X)=>{return Z&&X instanceof Z}})(typeof Uint8Array!=="undefined"&&ZK(Uint8Array)),rX0=(Z,X)=>{let J=(Z&&Z[XK]).call(Z),$;while(($=J.next())&&!$.done){let Y=$.value;X.call(Z,Y[0],Y[1])}},tX0=(Z,X)=>{let Q,J=[];while((Q=Z.exec(X))!==null)J.push(Q);return J},eX0=X7("HTMLFormElement"),ZQ0=(Z)=>{return Z.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function X(Q,J,$){return J.toUpperCase()+$})},HH=(({hasOwnProperty:Z})=>(X,Q)=>Z.call(X,Q))(Object.prototype),XQ0=X7("RegExp"),IS=(Z,X)=>{let Q=Object.getOwnPropertyDescriptors(Z),J={};qJ(Q,($,Y)=>{let q;if((q=X($,Y,Z))!==!1)J[Y]=q||$}),Object.defineProperties(Z,J)},QQ0=(Z)=>{IS(Z,(X,Q)=>{if(L4(Z)&&["arguments","caller","callee"].includes(Q))return!1;let J=Z[Q];if(!L4(J))return;if(X.enumerable=!1,"writable"in X){X.writable=!1;return}if(!X.set)X.set=()=>{throw Error("Can not rewrite read-only method '"+Q+"'")}})},JQ0=(Z,X)=>{let Q={},J=($)=>{$.forEach((Y)=>{Q[Y]=!0})};return h3(Z)?J(Z):J(String(Z).split(X)),Q},$Q0=()=>{},YQ0=(Z,X)=>{return Z!=null&&Number.isFinite(Z=+Z)?Z:X};function qQ0(Z){return!!(Z&&L4(Z.append)&&Z[jS]==="FormData"&&Z[XK])}var KQ0=(Z)=>{let X=new Array(10),Q=(J,$)=>{if(YJ(J)){if(X.indexOf(J)>=0)return;if($J(J))return J;if(!("toJSON"in J)){X[$]=J;let Y=h3(J)?[]:{};return qJ(J,(q,K)=>{let W=Q(q,$+1);!u3(W)&&(Y[K]=W)}),X[$]=void 0,Y}}return J};return Q(Z,0)},WQ0=X7("AsyncFunction"),zQ0=(Z)=>Z&&(YJ(Z)||L4(Z))&&L4(Z.then)&&L4(Z.catch),_S=((Z,X)=>{if(Z)return setImmediate;return X?((Q,J)=>{return zZ.addEventListener("message",({source:$,data:Y})=>{if($===zZ&&Y===Q)J.length&&J.shift()()},!1),($)=>{J.push($),zZ.postMessage(Q,"*")}})(`axios@${Math.random()}`,[]):(Q)=>setTimeout(Q)})(typeof setImmediate==="function",L4(zZ.postMessage)),VQ0=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(zZ):typeof process!=="undefined"&&process.nextTick||_S,UQ0=(Z)=>Z!=null&&L4(Z[XK]),E={isArray:h3,isArrayBuffer:wS,isBuffer:$J,isFormData:mX0,isArrayBufferView:OX0,isString:IX0,isNumber:CS,isBoolean:_X0,isObject:YJ,isPlainObject:eq,isEmptyObject:SX0,isReadableStream:gX0,isRequest:cX0,isResponse:uX0,isHeaders:hX0,isUndefined:u3,isDate:TX0,isFile:PX0,isReactNativeBlob:AX0,isReactNative:EX0,isBlob:vX0,isRegExp:XQ0,isFunction:L4,isStream:fX0,isURLSearchParams:yX0,isTypedArray:aX0,isFileList:kX0,forEach:qJ,merge:GH,extend:pX0,trim:dX0,stripBOM:lX0,inherits:iX0,toFlatObject:oX0,kindOf:QK,kindOfTest:X7,endsWith:nX0,toArray:sX0,forEachEntry:rX0,matchAll:tX0,isHTMLForm:eX0,hasOwnProperty:HH,hasOwnProp:HH,reduceDescriptors:IS,freezeMethods:QQ0,toObjectSet:JQ0,toCamelCase:ZQ0,noop:$Q0,toFiniteNumber:YQ0,findKey:RS,global:zZ,isContextDefined:OS,isSpecCompliantForm:qQ0,toJSONObject:KQ0,isAsyncFn:WQ0,isThenable:zQ0,setImmediate:_S,asap:VQ0,isIterable:UQ0};var GQ0=E.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),SS=(Z)=>{let X={},Q,J,$;return Z&&Z.split(`
|
|
91
|
+
*/ks.exports=function(Z,X){if(typeof Z!=="string")throw new TypeError("expected path to be a string");if(Z==="\\"||Z==="/")return"/";var Q=Z.length;if(Q<=1)return Z;var J="";if(Q>4&&Z[3]==="\\"){var $=Z[2];if(($==="?"||$===".")&&Z.slice(0,2)==="\\\\")Z=Z.slice(2),J="//"}var Y=Z.split(/[/\\]+/);if(X!==!1&&Y[Y.length-1]==="")Y.pop();return J+Y.join("/")}});var cs=a((ys,gs)=>{Object.defineProperty(ys,"__esModule",{value:!0});var ms=rK(),Ap0=tL(),fs="!",Ep0={returnIndex:!1},vp0=(Z)=>Array.isArray(Z)?Z:[Z],kp0=(Z,X)=>{if(typeof Z==="function")return Z;if(typeof Z==="string"){let Q=ms(Z,X);return(J)=>Z===J||Q(J)}if(Z instanceof RegExp)return(Q)=>Z.test(Q);return(Q)=>!1},bs=(Z,X,Q,J)=>{let $=Array.isArray(Q),Y=$?Q[0]:Q;if(!$&&typeof Y!=="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(Y));let q=Ap0(Y,!1);for(let W=0;W<X.length;W++){let V=X[W];if(V(q))return J?-1:!1}let K=$&&[q].concat(Q.slice(1));for(let W=0;W<Z.length;W++){let V=Z[W];if($?V(...K):V(q))return J?W:!0}return J?-1:!1},eL=(Z,X,Q=Ep0)=>{if(Z==null)throw new TypeError("anymatch: specify first argument");let J=typeof Q==="boolean"?{returnIndex:Q}:Q,$=J.returnIndex||!1,Y=vp0(Z),q=Y.filter((W)=>typeof W==="string"&&W.charAt(0)===fs).map((W)=>W.slice(1)).map((W)=>ms(W,J)),K=Y.filter((W)=>typeof W!=="string"||typeof W==="string"&&W.charAt(0)!==fs).map((W)=>kp0(W,J));if(X==null)return(W,V=!1)=>{return bs(K,q,W,typeof V==="boolean"?V:!1)};return bs(K,q,X,$)};eL.default=eL;gs.exports=eL});var us=a((XZ1,fp0)=>{fp0.exports=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]});var ds=a((QZ1,hs)=>{var bp0=P0("path"),mp0=us(),yp0=new Set(mp0);hs.exports=(Z)=>yp0.has(bp0.extname(Z).slice(1).toLowerCase())});var NV=a((up0)=>{var{sep:gp0}=P0("path"),{platform:Zj}=process,cp0=P0("os");up0.EV_ALL="all";up0.EV_READY="ready";up0.EV_ADD="add";up0.EV_CHANGE="change";up0.EV_ADD_DIR="addDir";up0.EV_UNLINK="unlink";up0.EV_UNLINK_DIR="unlinkDir";up0.EV_RAW="raw";up0.EV_ERROR="error";up0.STR_DATA="data";up0.STR_END="end";up0.STR_CLOSE="close";up0.FSEVENT_CREATED="created";up0.FSEVENT_MODIFIED="modified";up0.FSEVENT_DELETED="deleted";up0.FSEVENT_MOVED="moved";up0.FSEVENT_CLONED="cloned";up0.FSEVENT_UNKNOWN="unknown";up0.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1;up0.FSEVENT_TYPE_FILE="file";up0.FSEVENT_TYPE_DIRECTORY="directory";up0.FSEVENT_TYPE_SYMLINK="symlink";up0.KEY_LISTENERS="listeners";up0.KEY_ERR="errHandlers";up0.KEY_RAW="rawEmitters";up0.HANDLER_KEYS=[up0.KEY_LISTENERS,up0.KEY_ERR,up0.KEY_RAW];up0.DOT_SLASH=`.${gp0}`;up0.BACK_SLASH_RE=/\\/g;up0.DOUBLE_SLASH_RE=/\/\//;up0.SLASH_OR_BACK_SLASH_RE=/[/\\]/;up0.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;up0.REPLACER_RE=/^\.[/\\]/;up0.SLASH="/";up0.SLASH_SLASH="//";up0.BRACE_START="{";up0.BANG="!";up0.ONE_DOT=".";up0.TWO_DOTS="..";up0.STAR="*";up0.GLOBSTAR="**";up0.ROOT_GLOBSTAR="/**/*";up0.SLASH_GLOBSTAR="/**";up0.DIR_SUFFIX="Dir";up0.ANYMATCH_OPTS={dot:!0};up0.STRING_TYPE="string";up0.FUNCTION_TYPE="function";up0.EMPTY_STR="";up0.EMPTY_FN=()=>{};up0.IDENTITY_FN=(Z)=>Z;up0.isWindows=Zj==="win32";up0.isMacos=Zj==="darwin";up0.isLinux=Zj==="linux";up0.isIBMi=cp0.type()==="OS400"});var es=a(($Z1,ts)=>{var b5=P0("fs"),R8=P0("path"),{promisify:xY}=P0("util"),yl0=ds(),{isWindows:gl0,isLinux:cl0,EMPTY_FN:ul0,EMPTY_STR:hl0,KEY_LISTENERS:$Q,KEY_ERR:Xj,KEY_RAW:UY,HANDLER_KEYS:dl0,EV_CHANGE:LV,EV_ADD:DV,EV_ADD_DIR:pl0,EV_ERROR:ns,STR_DATA:ll0,STR_END:il0,BRACE_START:ol0,STAR:nl0}=NV(),sl0=xY(b5.open),ss=xY(b5.stat),al0=xY(b5.lstat),rl0=xY(b5.close),Qj=xY(b5.realpath),tl0={lstat:al0,stat:ss},$j=(Z,X)=>{if(Z instanceof Set)Z.forEach(X);else X(Z)},GY=(Z,X,Q)=>{let J=Z[X];if(!(J instanceof Set))Z[X]=J=new Set([J]);J.add(Q)},el0=(Z)=>(X)=>{let Q=Z[X];if(Q instanceof Set)Q.clear();else delete Z[X]},HY=(Z,X,Q)=>{let J=Z[X];if(J instanceof Set)J.delete(Q);else if(J===Q)delete Z[X]},as=(Z)=>Z instanceof Set?Z.size===0:!Z,jV=new Map;function os(Z,X,Q,J,$){let Y=(q,K)=>{if(Q(Z),$(q,K,{watchedPath:Z}),K&&Z!==K)wV(R8.resolve(Z,K),$Q,R8.join(Z,K))};try{return b5.watch(Z,X,Y)}catch(q){J(q)}}var wV=(Z,X,Q,J,$)=>{let Y=jV.get(Z);if(!Y)return;$j(Y[X],(q)=>{q(Q,J,$)})},Zi0=(Z,X,Q,J)=>{let{listener:$,errHandler:Y,rawEmitter:q}=J,K=jV.get(X),W;if(!Q.persistent)return W=os(Z,Q,$,Y,q),W.close.bind(W);if(K)GY(K,$Q,$),GY(K,Xj,Y),GY(K,UY,q);else{if(W=os(Z,Q,wV.bind(null,X,$Q),Y,wV.bind(null,X,UY)),!W)return;W.on(ns,async(V)=>{let U=wV.bind(null,X,Xj);if(K.watcherUnusable=!0,gl0&&V.code==="EPERM")try{let H=await sl0(Z,"r");await rl0(H),U(V)}catch(H){}else U(V)}),K={listeners:$,errHandlers:Y,rawEmitters:q,watcher:W},jV.set(X,K)}return()=>{if(HY(K,$Q,$),HY(K,Xj,Y),HY(K,UY,q),as(K.listeners))K.watcher.close(),jV.delete(X),dl0.forEach(el0(K)),K.watcher=void 0,Object.freeze(K)}},Jj=new Map,Xi0=(Z,X,Q,J)=>{let{listener:$,rawEmitter:Y}=J,q=Jj.get(X),K=new Set,W=new Set,V=q&&q.options;if(V&&(V.persistent<Q.persistent||V.interval>Q.interval))K=q.listeners,W=q.rawEmitters,b5.unwatchFile(X),q=void 0;if(q)GY(q,$Q,$),GY(q,UY,Y);else q={listeners:$,rawEmitters:Y,options:Q,watcher:b5.watchFile(X,Q,(U,H)=>{$j(q.rawEmitters,(M)=>{M(LV,X,{curr:U,prev:H})});let x=U.mtimeMs;if(U.size!==H.size||x>H.mtimeMs||x===0)$j(q.listeners,(M)=>M(Z,U))})},Jj.set(X,q);return()=>{if(HY(q,$Q,$),HY(q,UY,Y),as(q.listeners))Jj.delete(X),b5.unwatchFile(X),q.options=q.watcher=void 0,Object.freeze(q)}};class rs{constructor(Z){this.fsw=Z,this._boundHandleError=(X)=>Z._handleError(X)}_watchWithNodeFs(Z,X){let Q=this.fsw.options,J=R8.dirname(Z),$=R8.basename(Z);this.fsw._getWatchedDir(J).add($);let q=R8.resolve(Z),K={persistent:Q.persistent};if(!X)X=ul0;let W;if(Q.usePolling)K.interval=Q.enableBinaryInterval&&yl0($)?Q.binaryInterval:Q.interval,W=Xi0(Z,q,K,{listener:X,rawEmitter:this.fsw._emitRaw});else W=Zi0(Z,q,K,{listener:X,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw});return W}_handleFile(Z,X,Q){if(this.fsw.closed)return;let J=R8.dirname(Z),$=R8.basename(Z),Y=this.fsw._getWatchedDir(J),q=X;if(Y.has($))return;let K=async(V,U)=>{if(!this.fsw._throttle("watch",Z,5))return;if(!U||U.mtimeMs===0)try{let H=await ss(Z);if(this.fsw.closed)return;let{atimeMs:x,mtimeMs:M}=H;if(!x||x<=M||M!==q.mtimeMs)this.fsw._emit(LV,Z,H);if(cl0&&q.ino!==H.ino)this.fsw._closeFile(V),q=H,this.fsw._addPathCloser(V,this._watchWithNodeFs(Z,K));else q=H}catch(H){this.fsw._remove(J,$)}else if(Y.has($)){let{atimeMs:H,mtimeMs:x}=U;if(!H||H<=x||x!==q.mtimeMs)this.fsw._emit(LV,Z,U);q=U}},W=this._watchWithNodeFs(Z,K);if(!(Q&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(Z)){if(!this.fsw._throttle(DV,Z,0))return;this.fsw._emit(DV,Z,X)}return W}async _handleSymlink(Z,X,Q,J){if(this.fsw.closed)return;let $=Z.fullPath,Y=this.fsw._getWatchedDir(X);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let q;try{q=await Qj(Q)}catch(K){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;if(Y.has(J)){if(this.fsw._symlinkPaths.get($)!==q)this.fsw._symlinkPaths.set($,q),this.fsw._emit(LV,Q,Z.stats)}else Y.add(J),this.fsw._symlinkPaths.set($,q),this.fsw._emit(DV,Q,Z.stats);return this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has($))return!0;this.fsw._symlinkPaths.set($,!0)}_handleRead(Z,X,Q,J,$,Y,q){if(Z=R8.join(Z,hl0),!Q.hasGlob){if(q=this.fsw._throttle("readdir",Z,1000),!q)return}let K=this.fsw._getWatchedDir(Q.path),W=new Set,V=this.fsw._readdirp(Z,{fileFilter:(U)=>Q.filterPath(U),directoryFilter:(U)=>Q.filterDir(U),depth:0}).on(ll0,async(U)=>{if(this.fsw.closed){V=void 0;return}let H=U.path,x=R8.join(Z,H);if(W.add(H),U.stats.isSymbolicLink()&&await this._handleSymlink(U,Z,x,H))return;if(this.fsw.closed){V=void 0;return}if(H===J||!J&&!K.has(H))this.fsw._incrReadyCount(),x=R8.join($,R8.relative($,x)),this._addToNodeFs(x,X,Q,Y+1)}).on(ns,this._boundHandleError);return new Promise((U)=>V.once(il0,()=>{if(this.fsw.closed){V=void 0;return}let H=q?q.clear():!1;if(U(),K.getChildren().filter((x)=>{return x!==Z&&!W.has(x)&&(!Q.hasGlob||Q.filterPath({fullPath:R8.resolve(Z,x)}))}).forEach((x)=>{this.fsw._remove(Z,x)}),V=void 0,H)this._handleRead(Z,!1,Q,J,$,Y,q)}))}async _handleDir(Z,X,Q,J,$,Y,q){let K=this.fsw._getWatchedDir(R8.dirname(Z)),W=K.has(R8.basename(Z));if(!(Q&&this.fsw.options.ignoreInitial)&&!$&&!W){if(!Y.hasGlob||Y.globFilter(Z))this.fsw._emit(pl0,Z,X)}K.add(R8.basename(Z)),this.fsw._getWatchedDir(Z);let V,U,H=this.fsw.options.depth;if((H==null||J<=H)&&!this.fsw._symlinkPaths.has(q)){if(!$){if(await this._handleRead(Z,Q,Y,$,Z,J,V),this.fsw.closed)return}U=this._watchWithNodeFs(Z,(x,M)=>{if(M&&M.mtimeMs===0)return;this._handleRead(x,!1,Y,$,Z,J,V)})}return U}async _addToNodeFs(Z,X,Q,J,$){let Y=this.fsw._emitReady;if(this.fsw._isIgnored(Z)||this.fsw.closed)return Y(),!1;let q=this.fsw._getWatchHelpers(Z,J);if(!q.hasGlob&&Q)q.hasGlob=Q.hasGlob,q.globFilter=Q.globFilter,q.filterPath=(K)=>Q.filterPath(K),q.filterDir=(K)=>Q.filterDir(K);try{let K=await tl0[q.statMethod](q.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(q.watchPath,K))return Y(),!1;let W=this.fsw.options.followSymlinks&&!Z.includes(nl0)&&!Z.includes(ol0),V;if(K.isDirectory()){let U=R8.resolve(Z),H=W?await Qj(Z):Z;if(this.fsw.closed)return;if(V=await this._handleDir(q.watchPath,K,X,J,$,q,H),this.fsw.closed)return;if(U!==H&&H!==void 0)this.fsw._symlinkPaths.set(U,H)}else if(K.isSymbolicLink()){let U=W?await Qj(Z):Z;if(this.fsw.closed)return;let H=R8.dirname(q.watchPath);if(this.fsw._getWatchedDir(H).add(q.watchPath),this.fsw._emit(DV,q.watchPath,K),V=await this._handleDir(H,K,X,J,Z,q,U),this.fsw.closed)return;if(U!==void 0)this.fsw._symlinkPaths.set(R8.resolve(Z),U)}else V=this._handleFile(q.watchPath,K,X);return Y(),this.fsw._addPathCloser(Z,V),!1}catch(K){if(this.fsw._handleError(K))return Y(),Z}}}ts.exports=rs});var Ka=a((YZ1,Uj)=>{var zj=P0("fs"),O8=P0("path"),{promisify:Vj}=P0("util"),YQ;try{YQ=(()=>{throw new Error("Cannot require module "+"fsevents");})()}catch(Z){if(process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR)console.error(Z)}if(YQ){let Z=process.version.match(/v(\d+)\.(\d+)/);if(Z&&Z[1]&&Z[2]){let X=Number.parseInt(Z[1],10),Q=Number.parseInt(Z[2],10);if(X===8&&Q<16)YQ=void 0}}var{EV_ADD:Yj,EV_CHANGE:Qi0,EV_ADD_DIR:Za,EV_UNLINK:CV,EV_ERROR:Ji0,STR_DATA:$i0,STR_END:Yi0,FSEVENT_CREATED:qi0,FSEVENT_MODIFIED:Ki0,FSEVENT_DELETED:Wi0,FSEVENT_MOVED:zi0,FSEVENT_UNKNOWN:Vi0,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:Ui0,FSEVENT_TYPE_FILE:Gi0,FSEVENT_TYPE_DIRECTORY:BY,FSEVENT_TYPE_SYMLINK:Ya,ROOT_GLOBSTAR:Xa,DIR_SUFFIX:Hi0,DOT_SLASH:Qa,FUNCTION_TYPE:qj,EMPTY_FN:xi0,IDENTITY_FN:Bi0}=NV(),Mi0=(Z)=>isNaN(Z)?{}:{depth:Z},Wj=Vj(zj.stat),Fi0=Vj(zj.lstat),Ja=Vj(zj.realpath),Ni0={stat:Wj,lstat:Fi0},W3=new Map,Di0=10,Li0=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),ji0=(Z,X)=>{return{stop:YQ.watch(Z,X)}};function wi0(Z,X,Q,J){let $=O8.extname(X)?O8.dirname(X):X,Y=O8.dirname($),q=W3.get($);if(Ci0(Y))$=Y;let K=O8.resolve(Z),W=K!==X,V=(H,x,M)=>{if(W)H=H.replace(X,K);if(H===K||!H.indexOf(K+O8.sep))Q(H,x,M)},U=!1;for(let H of W3.keys())if(X.indexOf(O8.resolve(H)+O8.sep)===0){$=H,q=W3.get($),U=!0;break}if(q||U)q.listeners.add(V);else q={listeners:new Set([V]),rawEmitter:J,watcher:ji0($,(H,x)=>{if(!q.listeners.size)return;if(x&Ui0)return;let M=YQ.getInfo(H,x);q.listeners.forEach((F)=>{F(H,x,M)}),q.rawEmitter(M.event,H,M)})},W3.set($,q);return()=>{let H=q.listeners;if(H.delete(V),!H.size){if(W3.delete($),q.watcher)return q.watcher.stop().then(()=>{q.rawEmitter=q.watcher=void 0,Object.freeze(q)})}}}var Ci0=(Z)=>{let X=0;for(let Q of W3.keys())if(Q.indexOf(Z)===0){if(X++,X>=Di0)return!0}return!1},Ri0=()=>YQ&&W3.size<128,Kj=(Z,X)=>{let Q=0;while(!Z.indexOf(X)&&(Z=O8.dirname(Z))!==X)Q++;return Q},$a=(Z,X)=>Z.type===BY&&X.isDirectory()||Z.type===Ya&&X.isSymbolicLink()||Z.type===Gi0&&X.isFile();class qa{constructor(Z){this.fsw=Z}checkIgnored(Z,X){let Q=this.fsw._ignoredPaths;if(this.fsw._isIgnored(Z,X)){if(Q.add(Z),X&&X.isDirectory())Q.add(Z+Xa);return!0}Q.delete(Z),Q.delete(Z+Xa)}addOrChange(Z,X,Q,J,$,Y,q,K){let W=$.has(Y)?Qi0:Yj;this.handleEvent(W,Z,X,Q,J,$,Y,q,K)}async checkExists(Z,X,Q,J,$,Y,q,K){try{let W=await Wj(Z);if(this.fsw.closed)return;if($a(q,W))this.addOrChange(Z,X,Q,J,$,Y,q,K);else this.handleEvent(CV,Z,X,Q,J,$,Y,q,K)}catch(W){if(W.code==="EACCES")this.addOrChange(Z,X,Q,J,$,Y,q,K);else this.handleEvent(CV,Z,X,Q,J,$,Y,q,K)}}handleEvent(Z,X,Q,J,$,Y,q,K,W){if(this.fsw.closed||this.checkIgnored(X))return;if(Z===CV){let V=K.type===BY;if(V||Y.has(q))this.fsw._remove($,q,V)}else{if(Z===Yj){if(K.type===BY)this.fsw._getWatchedDir(X);if(K.type===Ya&&W.followSymlinks){let U=W.depth===void 0?void 0:Kj(Q,J)+1;return this._addToFsEvents(X,!1,!0,U)}this.fsw._getWatchedDir($).add(q)}let V=K.type===BY?Z+Hi0:Z;if(this.fsw._emit(V,X),V===Za)this._addToFsEvents(X,!1,!0)}}_watchWithFsEvents(Z,X,Q,J){if(this.fsw.closed||this.fsw._isIgnored(Z))return;let $=this.fsw.options,q=wi0(Z,X,async(K,W,V)=>{if(this.fsw.closed)return;if($.depth!==void 0&&Kj(K,X)>$.depth)return;let U=Q(O8.join(Z,O8.relative(Z,K)));if(J&&!J(U))return;let H=O8.dirname(U),x=O8.basename(U),M=this.fsw._getWatchedDir(V.type===BY?U:H);if(Li0.has(W)||V.event===Vi0)if(typeof $.ignored===qj){let F;try{F=await Wj(U)}catch(D){}if(this.fsw.closed)return;if(this.checkIgnored(U,F))return;if($a(V,F))this.addOrChange(U,K,X,H,M,x,V,$);else this.handleEvent(CV,U,K,X,H,M,x,V,$)}else this.checkExists(U,K,X,H,M,x,V,$);else switch(V.event){case qi0:case Ki0:return this.addOrChange(U,K,X,H,M,x,V,$);case Wi0:case zi0:return this.checkExists(U,K,X,H,M,x,V,$)}},this.fsw._emitRaw);return this.fsw._emitReady(),q}async _handleFsEventsSymlink(Z,X,Q,J){if(this.fsw.closed||this.fsw._symlinkPaths.has(X))return;this.fsw._symlinkPaths.set(X,!0),this.fsw._incrReadyCount();try{let $=await Ja(Z);if(this.fsw.closed)return;if(this.fsw._isIgnored($))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents($||Z,(Y)=>{let q=Z;if($&&$!==Qa)q=Y.replace($,Z);else if(Y!==Qa)q=O8.join(Z,Y);return Q(q)},!1,J)}catch($){if(this.fsw._handleError($))return this.fsw._emitReady()}}emitAdd(Z,X,Q,J,$){let Y=Q(Z),q=X.isDirectory(),K=this.fsw._getWatchedDir(O8.dirname(Y)),W=O8.basename(Y);if(q)this.fsw._getWatchedDir(Y);if(K.has(W))return;if(K.add(W),!J.ignoreInitial||$===!0)this.fsw._emit(q?Za:Yj,Y,X)}initWatch(Z,X,Q,J){if(this.fsw.closed)return;let $=this._watchWithFsEvents(Q.watchPath,O8.resolve(Z||Q.watchPath),J,Q.globFilter);this.fsw._addPathCloser(X,$)}async _addToFsEvents(Z,X,Q,J){if(this.fsw.closed)return;let $=this.fsw.options,Y=typeof X===qj?X:Bi0,q=this.fsw._getWatchHelpers(Z);try{let K=await Ni0[q.statMethod](q.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(q.watchPath,K))throw null;if(K.isDirectory()){if(!q.globFilter)this.emitAdd(Y(Z),K,Y,$,Q);if(J&&J>$.depth)return;this.fsw._readdirp(q.watchPath,{fileFilter:(W)=>q.filterPath(W),directoryFilter:(W)=>q.filterDir(W),...Mi0($.depth-(J||0))}).on($i0,(W)=>{if(this.fsw.closed)return;if(W.stats.isDirectory()&&!q.filterPath(W))return;let V=O8.join(q.watchPath,W.path),{fullPath:U}=W;if(q.followSymlinks&&W.stats.isSymbolicLink()){let H=$.depth===void 0?void 0:Kj(V,O8.resolve(q.watchPath))+1;this._handleFsEventsSymlink(V,U,Y,H)}else this.emitAdd(V,W.stats,Y,$,Q)}).on(Ji0,xi0).on(Yi0,()=>{this.fsw._emitReady()})}else this.emitAdd(q.watchPath,K,Y,$,Q),this.fsw._emitReady()}catch(K){if(!K||this.fsw._handleError(K))this.fsw._emitReady(),this.fsw._emitReady()}if($.persistent&&Q!==!0)if(typeof X===qj)this.initWatch(void 0,Z,q,Y);else{let K;try{K=await Ja(q.watchPath)}catch(W){}this.initWatch(K,Z,q,Y)}}}Uj.exports=qa;Uj.exports.canUse=Ri0});var La=a((Qo0)=>{var{EventEmitter:Oi0}=P0("events"),wj=P0("fs"),Q2=P0("path"),{promisify:xa}=P0("util"),Ii0=vs(),Fj=cs().default,_i0=qB(),Gj=$B(),Si0=HB(),Ti0=tL(),Pi0=es(),Wa=Ka(),{EV_ALL:Hj,EV_READY:Ai0,EV_ADD:RV,EV_CHANGE:MY,EV_UNLINK:za,EV_ADD_DIR:Ei0,EV_UNLINK_DIR:vi0,EV_RAW:ki0,EV_ERROR:xj,STR_CLOSE:fi0,STR_END:bi0,BACK_SLASH_RE:mi0,DOUBLE_SLASH_RE:Va,SLASH_OR_BACK_SLASH_RE:yi0,DOT_RE:gi0,REPLACER_RE:ci0,SLASH:Bj,SLASH_SLASH:ui0,BRACE_START:hi0,BANG:Nj,ONE_DOT:Ba,TWO_DOTS:di0,GLOBSTAR:pi0,SLASH_GLOBSTAR:Mj,ANYMATCH_OPTS:Dj,STRING_TYPE:Cj,FUNCTION_TYPE:li0,EMPTY_STR:Lj,EMPTY_FN:ii0,isWindows:oi0,isMacos:ni0,isIBMi:si0}=NV(),ai0=xa(wj.stat),ri0=xa(wj.readdir),jj=(Z=[])=>Array.isArray(Z)?Z:[Z],Ma=(Z,X=[])=>{return Z.forEach((Q)=>{if(Array.isArray(Q))Ma(Q,X);else X.push(Q)}),X},Ua=(Z)=>{let X=Ma(jj(Z));if(!X.every((Q)=>typeof Q===Cj))throw new TypeError(`Non-string provided as watch path: ${X}`);return X.map(Fa)},Ga=(Z)=>{let X=Z.replace(mi0,Bj),Q=!1;if(X.startsWith(ui0))Q=!0;while(X.match(Va))X=X.replace(Va,Bj);if(Q)X=Bj+X;return X},Fa=(Z)=>Ga(Q2.normalize(Ga(Z))),Ha=(Z=Lj)=>(X)=>{if(typeof X!==Cj)return X;return Fa(Q2.isAbsolute(X)?X:Q2.join(Z,X))},ti0=(Z,X)=>{if(Q2.isAbsolute(Z))return Z;if(Z.startsWith(Nj))return Nj+Q2.join(X,Z.slice(1));return Q2.join(X,Z)},D7=(Z,X)=>Z[X]===void 0;class Na{constructor(Z,X){this.path=Z,this._removeWatcher=X,this.items=new Set}add(Z){let{items:X}=this;if(!X)return;if(Z!==Ba&&Z!==di0)X.add(Z)}async remove(Z){let{items:X}=this;if(!X)return;if(X.delete(Z),X.size>0)return;let Q=this.path;try{await ri0(Q)}catch(J){if(this._removeWatcher)this._removeWatcher(Q2.dirname(Q),Q2.basename(Q))}}has(Z){let{items:X}=this;if(!X)return;return X.has(Z)}getChildren(){let{items:Z}=this;if(!Z)return;return[...Z.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}}var ei0="stat",Zo0="lstat";class Da{constructor(Z,X,Q,J){if(this.fsw=J,this.path=Z=Z.replace(ci0,Lj),this.watchPath=X,this.fullWatchPath=Q2.resolve(X),this.hasGlob=X!==Z,Z===Lj)this.hasGlob=!1;this.globSymlink=this.hasGlob&&Q?void 0:!1,this.globFilter=this.hasGlob?Fj(Z,void 0,Dj):!1,this.dirParts=this.getDirParts(Z),this.dirParts.forEach(($)=>{if($.length>1)$.pop()}),this.followSymlinks=Q,this.statMethod=Q?ei0:Zo0}checkGlobSymlink(Z){if(this.globSymlink===void 0)this.globSymlink=Z.fullParentDir===this.fullWatchPath?!1:{realPath:Z.fullParentDir,linkPath:this.fullWatchPath};if(this.globSymlink)return Z.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath);return Z.fullPath}entryPath(Z){return Q2.join(this.watchPath,Q2.relative(this.watchPath,this.checkGlobSymlink(Z)))}filterPath(Z){let{stats:X}=Z;if(X&&X.isSymbolicLink())return this.filterDir(Z);let Q=this.entryPath(Z);return(this.hasGlob&&typeof this.globFilter===li0?this.globFilter(Q):!0)&&this.fsw._isntIgnored(Q,X)&&this.fsw._hasReadPermissions(X)}getDirParts(Z){if(!this.hasGlob)return[];let X=[];return(Z.includes(hi0)?Si0.expand(Z):[Z]).forEach((J)=>{X.push(Q2.relative(this.watchPath,J).split(yi0))}),X}filterDir(Z){if(this.hasGlob){let X=this.getDirParts(this.checkGlobSymlink(Z)),Q=!1;this.unmatchedGlob=!this.dirParts.some((J)=>{return J.every(($,Y)=>{if($===pi0)Q=!0;return Q||!X[0][Y]||Fj($,X[0][Y],Dj)})})}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(Z),Z.stats)}}class Rj extends Oi0{constructor(Z){super();let X={};if(Z)Object.assign(X,Z);if(this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,D7(X,"persistent"))X.persistent=!0;if(D7(X,"ignoreInitial"))X.ignoreInitial=!1;if(D7(X,"ignorePermissionErrors"))X.ignorePermissionErrors=!1;if(D7(X,"interval"))X.interval=100;if(D7(X,"binaryInterval"))X.binaryInterval=300;if(D7(X,"disableGlobbing"))X.disableGlobbing=!1;if(X.enableBinaryInterval=X.binaryInterval!==X.interval,D7(X,"useFsEvents"))X.useFsEvents=!X.usePolling;if(!Wa.canUse())X.useFsEvents=!1;if(D7(X,"usePolling")&&!X.useFsEvents)X.usePolling=ni0;if(si0)X.usePolling=!0;let J=process.env.CHOKIDAR_USEPOLLING;if(J!==void 0){let K=J.toLowerCase();if(K==="false"||K==="0")X.usePolling=!1;else if(K==="true"||K==="1")X.usePolling=!0;else X.usePolling=!!K}let $=process.env.CHOKIDAR_INTERVAL;if($)X.interval=Number.parseInt($,10);if(D7(X,"atomic"))X.atomic=!X.usePolling&&!X.useFsEvents;if(X.atomic)this._pendingUnlinks=new Map;if(D7(X,"followSymlinks"))X.followSymlinks=!0;if(D7(X,"awaitWriteFinish"))X.awaitWriteFinish=!1;if(X.awaitWriteFinish===!0)X.awaitWriteFinish={};let Y=X.awaitWriteFinish;if(Y){if(!Y.stabilityThreshold)Y.stabilityThreshold=2000;if(!Y.pollInterval)Y.pollInterval=100;this._pendingWrites=new Map}if(X.ignored)X.ignored=jj(X.ignored);let q=0;if(this._emitReady=()=>{if(q++,q>=this._readyCount)this._emitReady=ii0,this._readyEmitted=!0,process.nextTick(()=>this.emit(Ai0))},this._emitRaw=(...K)=>this.emit(ki0,...K),this._readyEmitted=!1,this.options=X,X.useFsEvents)this._fsEventsHandler=new Wa(this);else this._nodeFsHandler=new Pi0(this);Object.freeze(X)}add(Z,X,Q){let{cwd:J,disableGlobbing:$}=this.options;this.closed=!1;let Y=Ua(Z);if(J)Y=Y.map((q)=>{let K=ti0(q,J);if($||!Gj(q))return K;return Ti0(K)});if(Y=Y.filter((q)=>{if(q.startsWith(Nj))return this._ignoredPaths.add(q.slice(1)),!1;return this._ignoredPaths.delete(q),this._ignoredPaths.delete(q+Mj),this._userIgnored=void 0,!0}),this.options.useFsEvents&&this._fsEventsHandler){if(!this._readyCount)this._readyCount=Y.length;if(this.options.persistent)this._readyCount+=Y.length;Y.forEach((q)=>this._fsEventsHandler._addToFsEvents(q))}else{if(!this._readyCount)this._readyCount=0;this._readyCount+=Y.length,Promise.all(Y.map(async(q)=>{let K=await this._nodeFsHandler._addToNodeFs(q,!Q,0,0,X);if(K)this._emitReady();return K})).then((q)=>{if(this.closed)return;q.filter((K)=>K).forEach((K)=>{this.add(Q2.dirname(K),Q2.basename(X||K))})})}return this}unwatch(Z){if(this.closed)return this;let X=Ua(Z),{cwd:Q}=this.options;return X.forEach((J)=>{if(!Q2.isAbsolute(J)&&!this._closers.has(J)){if(Q)J=Q2.join(Q,J);J=Q2.resolve(J)}if(this._closePath(J),this._ignoredPaths.add(J),this._watched.has(J))this._ignoredPaths.add(J+Mj);this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let Z=[];return this._closers.forEach((X)=>X.forEach((Q)=>{let J=Q();if(J instanceof Promise)Z.push(J)})),this._streams.forEach((X)=>X.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach((X)=>X.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach((X)=>{this[`_${X}`].clear()}),this._closePromise=Z.length?Promise.all(Z).then(()=>{return}):Promise.resolve(),this._closePromise}getWatched(){let Z={};return this._watched.forEach((X,Q)=>{let J=this.options.cwd?Q2.relative(this.options.cwd,Q):Q;Z[J||Ba]=X.getChildren().sort()}),Z}emitWithAll(Z,X){if(this.emit(...X),Z!==xj)this.emit(Hj,...X)}async _emit(Z,X,Q,J,$){if(this.closed)return;let Y=this.options;if(oi0)X=Q2.normalize(X);if(Y.cwd)X=Q2.relative(Y.cwd,X);let q=[Z,X];if($!==void 0)q.push(Q,J,$);else if(J!==void 0)q.push(Q,J);else if(Q!==void 0)q.push(Q);let K=Y.awaitWriteFinish,W;if(K&&(W=this._pendingWrites.get(X)))return W.lastChange=new Date,this;if(Y.atomic){if(Z===za)return this._pendingUnlinks.set(X,q),setTimeout(()=>{this._pendingUnlinks.forEach((V,U)=>{this.emit(...V),this.emit(Hj,...V),this._pendingUnlinks.delete(U)})},typeof Y.atomic==="number"?Y.atomic:100),this;if(Z===RV&&this._pendingUnlinks.has(X))Z=q[0]=MY,this._pendingUnlinks.delete(X)}if(K&&(Z===RV||Z===MY)&&this._readyEmitted){let V=(U,H)=>{if(U)Z=q[0]=xj,q[1]=U,this.emitWithAll(Z,q);else if(H){if(q.length>2)q[2]=H;else q.push(H);this.emitWithAll(Z,q)}};return this._awaitWriteFinish(X,K.stabilityThreshold,Z,V),this}if(Z===MY){if(!this._throttle(MY,X,50))return this}if(Y.alwaysStat&&Q===void 0&&(Z===RV||Z===Ei0||Z===MY)){let V=Y.cwd?Q2.join(Y.cwd,X):X,U;try{U=await ai0(V)}catch(H){}if(!U||this.closed)return;q.push(U)}return this.emitWithAll(Z,q),this}_handleError(Z){let X=Z&&Z.code;if(Z&&X!=="ENOENT"&&X!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||X!=="EPERM"&&X!=="EACCES"))this.emit(xj,Z);return Z||this.closed}_throttle(Z,X,Q){if(!this._throttled.has(Z))this._throttled.set(Z,new Map);let J=this._throttled.get(Z),$=J.get(X);if($)return $.count++,!1;let Y,q=()=>{let W=J.get(X),V=W?W.count:0;if(J.delete(X),clearTimeout(Y),W)clearTimeout(W.timeoutObject);return V};Y=setTimeout(q,Q);let K={timeoutObject:Y,clear:q,count:0};return J.set(X,K),K}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(Z,X,Q,J){let $,Y=Z;if(this.options.cwd&&!Q2.isAbsolute(Z))Y=Q2.join(this.options.cwd,Z);let q=new Date,K=(W)=>{wj.stat(Y,(V,U)=>{if(V||!this._pendingWrites.has(Z)){if(V&&V.code!=="ENOENT")J(V);return}let H=Number(new Date);if(W&&U.size!==W.size)this._pendingWrites.get(Z).lastChange=H;let x=this._pendingWrites.get(Z);if(H-x.lastChange>=X)this._pendingWrites.delete(Z),J(void 0,U);else $=setTimeout(K,this.options.awaitWriteFinish.pollInterval,U)})};if(!this._pendingWrites.has(Z))this._pendingWrites.set(Z,{lastChange:q,cancelWait:()=>{return this._pendingWrites.delete(Z),clearTimeout($),Q}}),$=setTimeout(K,this.options.awaitWriteFinish.pollInterval)}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(Z,X){if(this.options.atomic&&gi0.test(Z))return!0;if(!this._userIgnored){let{cwd:Q}=this.options,J=this.options.ignored,$=J&&J.map(Ha(Q)),Y=jj($).filter((K)=>typeof K===Cj&&!Gj(K)).map((K)=>K+Mj),q=this._getGlobIgnored().map(Ha(Q)).concat($,Y);this._userIgnored=Fj(q,void 0,Dj)}return this._userIgnored([Z,X])}_isntIgnored(Z,X){return!this._isIgnored(Z,X)}_getWatchHelpers(Z,X){let Q=X||this.options.disableGlobbing||!Gj(Z)?Z:_i0(Z),J=this.options.followSymlinks;return new Da(Z,Q,J,this)}_getWatchedDir(Z){if(!this._boundRemove)this._boundRemove=this._remove.bind(this);let X=Q2.resolve(Z);if(!this._watched.has(X))this._watched.set(X,new Na(X,this._boundRemove));return this._watched.get(X)}_hasReadPermissions(Z){if(this.options.ignorePermissionErrors)return!0;let Q=(Z&&Number.parseInt(Z.mode,10))&511,J=Number.parseInt(Q.toString(8)[0],10);return Boolean(4&J)}_remove(Z,X,Q){let J=Q2.join(Z,X),$=Q2.resolve(J);if(Q=Q!=null?Q:this._watched.has(J)||this._watched.has($),!this._throttle("remove",J,100))return;if(!Q&&!this.options.useFsEvents&&this._watched.size===1)this.add(Z,X,!0);this._getWatchedDir(J).getChildren().forEach((H)=>this._remove(J,H));let K=this._getWatchedDir(Z),W=K.has(X);if(K.remove(X),this._symlinkPaths.has($))this._symlinkPaths.delete($);let V=J;if(this.options.cwd)V=Q2.relative(this.options.cwd,J);if(this.options.awaitWriteFinish&&this._pendingWrites.has(V)){if(this._pendingWrites.get(V).cancelWait()===RV)return}this._watched.delete(J),this._watched.delete($);let U=Q?vi0:za;if(W&&!this._isIgnored(J))this._emit(U,J);if(!this.options.useFsEvents)this._closePath(J)}_closePath(Z){this._closeFile(Z);let X=Q2.dirname(Z);this._getWatchedDir(X).remove(Q2.basename(Z))}_closeFile(Z){let X=this._closers.get(Z);if(!X)return;X.forEach((Q)=>Q()),this._closers.delete(Z)}_addPathCloser(Z,X){if(!X)return;let Q=this._closers.get(Z);if(!Q)Q=[],this._closers.set(Z,Q);Q.push(X)}_readdirp(Z,X){if(this.closed)return;let Q={type:Hj,alwaysStat:!0,lstat:!0,...X},J=Ii0(Z,Q);return this._streams.add(J),J.once(fi0,()=>{J=void 0}),J.once(bi0,()=>{if(J)this._streams.delete(J),J=void 0}),J}}Qo0.FSWatcher=Rj;var Xo0=(Z,X)=>{let Q=new Rj(X);return Q.add(Z),Q};Qo0.watch=Xo0});var Ea=a((KZ1,_V)=>{function Ca(Z){return Array.isArray(Z)?Z:[Z]}var Yo0=void 0,Ij="",ja=" ",Oj="\\",qo0=/^\s+$/,Ko0=/(?:[^\\]|^)\\$/,Wo0=/^\\!/,zo0=/^\\#/,Vo0=/\r?\n/g,Uo0=/^\.{0,2}\/|^\.{1,2}$/,Go0=/\/$/,qQ="/",Ra="node-ignore";if(typeof Symbol!=="undefined")Ra=Symbol.for("node-ignore");var Oa=Ra,KQ=(Z,X,Q)=>{return Object.defineProperty(Z,X,{value:Q}),Q},Ho0=/([0-z])-([0-z])/g,Ia=()=>!1,xo0=(Z)=>Z.replace(Ho0,(X,Q,J)=>Q.charCodeAt(0)<=J.charCodeAt(0)?X:Ij),Bo0=(Z)=>{let{length:X}=Z;return Z.slice(0,X-X%2)},Mo0=[[/^\uFEFF/,()=>Ij],[/((?:\\\\)*?)(\\?\s+)$/,(Z,X,Q)=>X+(Q.indexOf("\\")===0?ja:Ij)],[/(\\+?)\s/g,(Z,X)=>{let{length:Q}=X;return X.slice(0,Q-Q%2)+ja}],[/[\\$.|*+(){^]/g,(Z)=>`\\${Z}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function Z(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(Z,X,Q)=>X+6<Q.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(Z,X,Q)=>{let J=Q.replace(/\\\*/g,"[^\\/]*");return X+J}],[/\\\\\\(?=[$.|*+(){^])/g,()=>Oj],[/\\\\/g,()=>Oj],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(Z,X,Q,J,$)=>X===Oj?`\\[${Q}${Bo0(J)}${$}`:$==="]"?J.length%2===0?`[${xo0(Q)}${J}]`:"[]":"[]"],[/(?:[^*])$/,(Z)=>/\/$/.test(Z)?`${Z}$`:`${Z}(?=$|\\/$)`]],Fo0=/(^|\\\/)?\\\*$/,FY="regex",OV="checkRegex",wa="_",No0={[FY](Z,X){return`${X?`${X}[^/]+`:"[^/]*"}(?=$|\\/$)`},[OV](Z,X){return`${X?`${X}[^/]*`:"[^/]*"}(?=$|\\/$)`}},Do0=(Z)=>Mo0.reduce((X,[Q,J])=>X.replace(Q,J.bind(Z)),Z),IV=(Z)=>typeof Z==="string",Lo0=(Z)=>Z&&IV(Z)&&!qo0.test(Z)&&!Ko0.test(Z)&&Z.indexOf("#")!==0,jo0=(Z)=>Z.split(Vo0).filter(Boolean);class _a{constructor(Z,X,Q,J,$,Y){this.pattern=Z,this.mark=X,this.negative=$,KQ(this,"body",Q),KQ(this,"ignoreCase",J),KQ(this,"regexPrefix",Y)}get regex(){let Z=wa+FY;if(this[Z])return this[Z];return this._make(FY,Z)}get checkRegex(){let Z=wa+OV;if(this[Z])return this[Z];return this._make(OV,Z)}_make(Z,X){let Q=this.regexPrefix.replace(Fo0,No0[Z]),J=this.ignoreCase?new RegExp(Q,"i"):new RegExp(Q);return KQ(this,X,J)}}var wo0=({pattern:Z,mark:X},Q)=>{let J=!1,$=Z;if($.indexOf("!")===0)J=!0,$=$.substr(1);$=$.replace(Wo0,"!").replace(zo0,"#");let Y=Do0($);return new _a(Z,X,$,Q,J,Y)};class Sa{constructor(Z){this._ignoreCase=Z,this._rules=[]}_add(Z){if(Z&&Z[Oa]){this._rules=this._rules.concat(Z._rules._rules),this._added=!0;return}if(IV(Z))Z={pattern:Z};if(Lo0(Z.pattern)){let X=wo0(Z,this._ignoreCase);this._added=!0,this._rules.push(X)}}add(Z){return this._added=!1,Ca(IV(Z)?jo0(Z):Z).forEach(this._add,this),this._added}test(Z,X,Q){let J=!1,$=!1,Y;this._rules.forEach((K)=>{let{negative:W}=K;if($===W&&J!==$||W&&!J&&!$&&!X)return;if(!K[Q].test(Z))return;J=!W,$=W,Y=W?Yo0:K});let q={ignored:J,unignored:$};if(Y)q.rule=Y;return q}}var Co0=(Z,X)=>{throw new X(Z)},m5=(Z,X,Q)=>{if(!IV(Z))return Q(`path must be a string, but got \`${X}\``,TypeError);if(!Z)return Q("path must not be empty",TypeError);if(m5.isNotRelative(Z))return Q(`path should be a \`path.relative()\`d string, but got "${X}"`,RangeError);return!0},Ta=(Z)=>Uo0.test(Z);m5.isNotRelative=Ta;m5.convert=(Z)=>Z;class Pa{constructor({ignorecase:Z=!0,ignoreCase:X=Z,allowRelativePaths:Q=!1}={}){KQ(this,Oa,!0),this._rules=new Sa(X),this._strictPathCheck=!Q,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(Z){if(this._rules.add(Z))this._initCache();return this}addPattern(Z){return this.add(Z)}_test(Z,X,Q,J){let $=Z&&m5.convert(Z);return m5($,Z,this._strictPathCheck?Co0:Ia),this._t($,X,Q,J)}checkIgnore(Z){if(!Go0.test(Z))return this.test(Z);let X=Z.split(qQ).filter(Boolean);if(X.pop(),X.length){let Q=this._t(X.join(qQ)+qQ,this._testCache,!0,X);if(Q.ignored)return Q}return this._rules.test(Z,!1,OV)}_t(Z,X,Q,J){if(Z in X)return X[Z];if(!J)J=Z.split(qQ).filter(Boolean);if(J.pop(),!J.length)return X[Z]=this._rules.test(Z,Q,FY);let $=this._t(J.join(qQ)+qQ,X,Q,J);return X[Z]=$.ignored?$:this._rules.test(Z,Q,FY)}ignores(Z){return this._test(Z,this._ignoreCache,!1).ignored}createFilter(){return(Z)=>!this.ignores(Z)}filter(Z){return Ca(Z).filter(this.createFilter())}test(Z){return this._test(Z,this._testCache,!0)}}var _j=(Z)=>new Pa(Z),Ro0=(Z)=>m5(Z&&m5.convert(Z),Z,Ia),Aa=()=>{let Z=(Q)=>/^\\\\\?\\/.test(Q)||/["<>|\u0000-\u001F]+/u.test(Q)?Q:Q.replace(/\\/g,"/");m5.convert=Z;let X=/^[a-z]:\//i;m5.isNotRelative=(Q)=>X.test(Q)||Ta(Q)};if(typeof process!=="undefined"&&process.platform==="win32")Aa();_V.exports=_j;_j.default=_j;_V.exports.isPathValid=Ro0;KQ(_V.exports,Symbol.for("setupWindows"),Aa)});var ma=a((W6)=>{var So0=W6&&W6.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(W6,"__esModule",{value:!0});var To0=P0("fs"),Po0=So0(GK()),WQ=Po0.default("@kwsites/file-exists");function Ao0(Z,X,Q){WQ("checking %s",Z);try{let J=To0.statSync(Z);if(J.isFile()&&X)return WQ("[OK] path represents a file"),!0;if(J.isDirectory()&&Q)return WQ("[OK] path represents a directory"),!0;return WQ("[FAIL] path represents something other than a file or directory"),!1}catch(J){if(J.code==="ENOENT")return WQ("[FAIL] path is not accessible: %o",J),!1;throw WQ("[FATAL] %o",J),J}}function Eo0(Z,X=W6.READABLE){return Ao0(Z,(X&W6.FILE)>0,(X&W6.FOLDER)>0)}W6.exists=Eo0;W6.FILE=1;W6.FOLDER=2;W6.READABLE=W6.FILE+W6.FOLDER});var ya=a((Pj)=>{function vo0(Z){for(var X in Z)if(!Pj.hasOwnProperty(X))Pj[X]=Z[X]}Object.defineProperty(Pj,"__esModule",{value:!0});vo0(ma())});var vj=a((ga)=>{Object.defineProperty(ga,"__esModule",{value:!0});ga.createDeferred=ga.deferred=void 0;function Ej(){let Z,X,Q="pending";return{promise:new Promise(($,Y)=>{Z=$,X=Y}),done($){if(Q==="pending")Q="resolved",Z($)},fail($){if(Q==="pending")Q="rejected",X($)},get fulfilled(){return Q!=="pending"},get status(){return Q}}}ga.deferred=Ej;ga.createDeferred=Ej;ga.default=Ej});var XO="1.0.3";var LO=F6(DO(),1),{program:ar0,createCommand:rr0,createArgument:tr0,createOption:er0,CommanderError:Zt0,InvalidArgumentError:JZ,InvalidOptionArgumentError:Xt0,Command:u8,Argument:Qt0,Option:Jt0,Help:$t0}=LO.default;import XE from"fs";var wG=(Z,X,Q)=>{let J=Z instanceof RegExp?jO(Z,Q):Z,$=X instanceof RegExp?jO(X,Q):X,Y=J!==null&&$!=null&&o50(J,$,Q);return Y&&{start:Y[0],end:Y[1],pre:Q.slice(0,Y[0]),body:Q.slice(Y[0]+J.length,Y[1]),post:Q.slice(Y[1]+$.length)}},jO=(Z,X)=>{let Q=X.match(Z);return Q?Q[0]:null},o50=(Z,X,Q)=>{let J,$,Y,q=void 0,K,W=Q.indexOf(Z),V=Q.indexOf(X,W+1),U=W;if(W>=0&&V>0){if(Z===X)return[W,V];J=[],Y=Q.length;while(U>=0&&!K){if(U===W)J.push(U),W=Q.indexOf(Z,U+1);else if(J.length===1){let H=J.pop();if(H!==void 0)K=[H,V]}else{if($=J.pop(),$!==void 0&&$<Y)Y=$,q=V;V=Q.indexOf(X,U+1)}U=W<V&&W>=0?W:V}if(J.length&&q!==void 0)K=[Y,q]}return K};var wO="\x00SLASH"+Math.random()+"\x00",CO="\x00OPEN"+Math.random()+"\x00",RG="\x00CLOSE"+Math.random()+"\x00",RO="\x00COMMA"+Math.random()+"\x00",OO="\x00PERIOD"+Math.random()+"\x00",n50=new RegExp(wO,"g"),s50=new RegExp(CO,"g"),a50=new RegExp(RG,"g"),r50=new RegExp(RO,"g"),t50=new RegExp(OO,"g"),e50=/\\\\/g,Z90=/\\{/g,X90=/\\}/g,Q90=/\\,/g,J90=/\\\./g,$90=1e5;function CG(Z){return!isNaN(Z)?parseInt(Z,10):Z.charCodeAt(0)}function Y90(Z){return Z.replace(e50,wO).replace(Z90,CO).replace(X90,RG).replace(Q90,RO).replace(J90,OO)}function q90(Z){return Z.replace(n50,"\\").replace(s50,"{").replace(a50,"}").replace(r50,",").replace(t50,".")}function IO(Z){if(!Z)return[""];let X=[],Q=wG("{","}",Z);if(!Q)return Z.split(",");let{pre:J,body:$,post:Y}=Q,q=J.split(",");q[q.length-1]+="{"+$+"}";let K=IO(Y);if(Y.length)q[q.length-1]+=K.shift(),q.push.apply(q,K);return X.push.apply(X,q),X}function _O(Z,X={}){if(!Z)return[];let{max:Q=$90}=X;if(Z.slice(0,2)==="{}")Z="\\{\\}"+Z.slice(2);return mQ(Y90(Z),Q,!0).map(q90)}function K90(Z){return"{"+Z+"}"}function W90(Z){return/^-?0\d/.test(Z)}function z90(Z,X){return Z<=X}function V90(Z,X){return Z>=X}function mQ(Z,X,Q){let J=[],$=wG("{","}",Z);if(!$)return[Z];let Y=$.pre,q=$.post.length?mQ($.post,X,!1):[""];if(/\$$/.test($.pre))for(let K=0;K<q.length&&K<X;K++){let W=Y+"{"+$.body+"}"+q[K];J.push(W)}else{let K=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test($.body),W=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test($.body),V=K||W,U=$.body.indexOf(",")>=0;if(!V&&!U){if($.post.match(/,(?!,).*\}/))return Z=$.pre+"{"+$.body+RG+$.post,mQ(Z,X,!0);return[Z]}let H;if(V)H=$.body.split(/\.\./);else if(H=IO($.body),H.length===1&&H[0]!==void 0){if(H=mQ(H[0],X,!1).map(K90),H.length===1)return q.map((M)=>$.pre+H[0]+M)}let x;if(V&&H[0]!==void 0&&H[1]!==void 0){let M=CG(H[0]),F=CG(H[1]),D=Math.max(H[0].length,H[1].length),C=H.length===3&&H[2]!==void 0?Math.max(Math.abs(CG(H[2])),1):1,j=z90;if(F<M)C*=-1,j=V90;let v=H.some(W90);x=[];for(let S=M;j(S,F);S+=C){let c;if(W){if(c=String.fromCharCode(S),c==="\\")c=""}else if(c=String(S),v){let Z0=D-c.length;if(Z0>0){let Q0=new Array(Z0+1).join("0");if(S<0)c="-"+Q0+c.slice(1);else c=Q0+c}}x.push(c)}}else{x=[];for(let M=0;M<H.length;M++)x.push.apply(x,mQ(H[M],X,!1))}for(let M=0;M<x.length;M++)for(let F=0;F<q.length&&J.length<X;F++){let D=Y+x[M]+q[F];if(!Q||V||D)J.push(D)}}return J}var yQ=(Z)=>{if(typeof Z!=="string")throw new TypeError("invalid pattern");if(Z.length>65536)throw new TypeError("pattern is too long")};var U90={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},gQ=(Z)=>Z.replace(/[[\]\\-]/g,"\\$&"),G90=(Z)=>Z.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),SO=(Z)=>Z.join(""),TO=(Z,X)=>{let Q=X;if(Z.charAt(Q)!=="[")throw new Error("not in a brace expression");let J=[],$=[],Y=Q+1,q=!1,K=!1,W=!1,V=!1,U=Q,H="";Z:while(Y<Z.length){let D=Z.charAt(Y);if((D==="!"||D==="^")&&Y===Q+1){V=!0,Y++;continue}if(D==="]"&&q&&!W){U=Y+1;break}if(q=!0,D==="\\"){if(!W){W=!0,Y++;continue}}if(D==="["&&!W){for(let[C,[j,I,v]]of Object.entries(U90))if(Z.startsWith(C,Y)){if(H)return["$.",!1,Z.length-Q,!0];if(Y+=C.length,v)$.push(j);else J.push(j);K=K||I;continue Z}}if(W=!1,H){if(D>H)J.push(gQ(H)+"-"+gQ(D));else if(D===H)J.push(gQ(D));H="",Y++;continue}if(Z.startsWith("-]",Y+1)){J.push(gQ(D+"-")),Y+=2;continue}if(Z.startsWith("-",Y+1)){H=D,Y+=2;continue}J.push(gQ(D)),Y++}if(U<Y)return["",!1,0,!1];if(!J.length&&!$.length)return["$.",!1,Z.length-Q,!0];if($.length===0&&J.length===1&&/^\\?.$/.test(J[0])&&!V){let D=J[0].length===2?J[0].slice(-1):J[0];return[G90(D),!1,U-Q,!1]}let x="["+(V?"^":"")+SO(J)+"]",M="["+(V?"":"^")+SO($)+"]";return[J.length&&$.length?"("+x+"|"+M+")":J.length?x:M,K,U-Q,!0]};var r6=(Z,{windowsPathsNoEscape:X=!1,magicalBraces:Q=!0}={})=>{if(Q)return X?Z.replace(/\[([^/\\])\]/g,"$1"):Z.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1");return X?Z.replace(/\[([^/\\{}])\]/g,"$1"):Z.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1")};var D4,H90=new Set(["!","?","+","*","@"]),OG=(Z)=>H90.has(Z),PO=(Z)=>OG(Z.type),x90=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),B90=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),M90=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),AO=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),F90="(?!(?:^|/)\\.\\.?(?:$|/))",Oq="(?!\\.)",N90=new Set(["[","."]),D90=new Set(["..","."]),L90=new Set("().*{}+?[]^$\\!"),j90=(Z)=>Z.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),IG="[^/]",EO=IG+"*?",vO=IG+"+?",w90=0;class A3{type;#Z;#Q;#$=!1;#X=[];#Y;#z;#B;#U=!1;#K;#H;#G=!1;id=++w90;get depth(){return(this.#Y?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#Z.id,parent:this.#Y?.id,depth:this.depth,partsLength:this.#X.length,parts:this.#X}}constructor(Z,X,Q={}){if(this.type=Z,Z)this.#Q=!0;if(this.#Y=X,this.#Z=this.#Y?this.#Y.#Z:this,this.#K=this.#Z===this?Q:this.#Z.#K,this.#B=this.#Z===this?[]:this.#Z.#B,Z==="!"&&!this.#Z.#U)this.#B.push(this);this.#z=this.#Y?this.#Y.#X.length:0}get hasMagic(){if(this.#Q!==void 0)return this.#Q;for(let Z of this.#X){if(typeof Z==="string")continue;if(Z.type||Z.hasMagic)return this.#Q=!0}return this.#Q}toString(){return this.#H!==void 0?this.#H:!this.type?this.#H=this.#X.map((Z)=>String(Z)).join(""):this.#H=this.type+"("+this.#X.map((Z)=>String(Z)).join("|")+")"}#W(){if(this!==this.#Z)throw new Error("should only call on root");if(this.#U)return this;this.toString(),this.#U=!0;let Z;while(Z=this.#B.pop()){if(Z.type!=="!")continue;let X=Z,Q=X.#Y;while(Q){for(let J=X.#z+1;!Q.type&&J<Q.#X.length;J++)for(let $ of Z.#X){if(typeof $==="string")throw new Error("string part in extglob AST??");$.copyIn(Q.#X[J])}X=Q,Q=X.#Y}}return this}push(...Z){for(let X of Z){if(X==="")continue;if(typeof X!=="string"&&!(X instanceof D4&&X.#Y===this))throw new Error("invalid part: "+X);this.#X.push(X)}}toJSON(){let Z=this.type===null?this.#X.slice().map((X)=>typeof X==="string"?X:X.toJSON()):[this.type,...this.#X.map((X)=>X.toJSON())];if(this.isStart()&&!this.type)Z.unshift([]);if(this.isEnd()&&(this===this.#Z||this.#Z.#U&&this.#Y?.type==="!"))Z.push({});return Z}isStart(){if(this.#Z===this)return!0;if(!this.#Y?.isStart())return!1;if(this.#z===0)return!0;let Z=this.#Y;for(let X=0;X<this.#z;X++){let Q=Z.#X[X];if(!(Q instanceof D4&&Q.type==="!"))return!1}return!0}isEnd(){if(this.#Z===this)return!0;if(this.#Y?.type==="!")return!0;if(!this.#Y?.isEnd())return!1;if(!this.type)return this.#Y?.isEnd();let Z=this.#Y?this.#Y.#X.length:0;return this.#z===Z-1}copyIn(Z){if(typeof Z==="string")this.push(Z);else this.push(Z.clone(this))}clone(Z){let X=new D4(this.type,Z);for(let Q of this.#X)X.copyIn(Q);return X}static#q(Z,X,Q,J,$){let Y=J.maxExtglobRecursion??2,q=!1,K=!1,W=-1,V=!1;if(X.type===null){let F=Q,D="";while(F<Z.length){let C=Z.charAt(F++);if(q||C==="\\"){q=!q,D+=C;continue}if(K){if(F===W+1){if(C==="^"||C==="!")V=!0}else if(C==="]"&&!(F===W+2&&V))K=!1;D+=C;continue}else if(C==="["){K=!0,W=F,V=!1,D+=C;continue}if(!J.noext&&OG(C)&&Z.charAt(F)==="("&&$<=Y){X.push(D),D="";let I=new D4(C,X);F=D4.#q(Z,I,F,J,$+1),X.push(I);continue}D+=C}return X.push(D),F}let U=Q+1,H=new D4(null,X),x=[],M="";while(U<Z.length){let F=Z.charAt(U++);if(q||F==="\\"){q=!q,M+=F;continue}if(K){if(U===W+1){if(F==="^"||F==="!")V=!0}else if(F==="]"&&!(U===W+2&&V))K=!1;M+=F;continue}else if(F==="["){K=!0,W=U,V=!1,M+=F;continue}if(!J.noext&&OG(F)&&Z.charAt(U)==="("&&($<=Y||X&&X.#M(F))){let C=X&&X.#M(F)?0:1;H.push(M),M="";let j=new D4(F,H);H.push(j),U=D4.#q(Z,j,U,J,$+C);continue}if(F==="|"){H.push(M),M="",x.push(H),H=new D4(null,X);continue}if(F===")"){if(M===""&&X.#X.length===0)X.#G=!0;return H.push(M),M="",X.push(...x,H),U}M+=F}return X.type=null,X.#Q=void 0,X.#X=[Z.substring(Q-1)],U}#L(Z){return this.#w(Z,B90)}#w(Z,X=x90){if(!Z||typeof Z!=="object"||Z.type!==null||Z.#X.length!==1||this.type===null)return!1;let Q=Z.#X[0];if(!Q||typeof Q!=="object"||Q.type===null)return!1;return this.#M(Q.type,X)}#M(Z,X=M90){return!!X.get(this.type)?.includes(Z)}#F(Z,X){let Q=Z.#X[0],J=new D4(null,Q,this.options);J.#X.push(""),Q.push(J),this.#I(Z,X)}#I(Z,X){let Q=Z.#X[0];this.#X.splice(X,1,...Q.#X);for(let J of Q.#X)if(typeof J==="object")J.#Y=this;this.#H=void 0}#N(Z){return!!AO.get(this.type)?.has(Z)}#C(Z){if(!Z||typeof Z!=="object"||Z.type!==null||Z.#X.length!==1||this.type===null||this.#X.length!==1)return!1;let X=Z.#X[0];if(!X||typeof X!=="object"||X.type===null)return!1;return this.#N(X.type)}#R(Z){let X=AO.get(this.type),Q=Z.#X[0],J=X?.get(Q.type);if(!J)return!1;this.#X=Q.#X;for(let $ of this.#X)if(typeof $==="object")$.#Y=this;this.type=J,this.#H=void 0,this.#G=!1}static fromGlob(Z,X={}){let Q=new D4(null,void 0,X);return D4.#q(Z,Q,0,X,0),Q}toMMPattern(){if(this!==this.#Z)return this.#Z.toMMPattern();let Z=this.toString(),[X,Q,J,$]=this.toRegExpSource();if(!(J||this.#Q||this.#K.nocase&&!this.#K.nocaseMagicOnly&&Z.toUpperCase()!==Z.toLowerCase()))return Q;let q=(this.#K.nocase?"i":"")+($?"u":"");return Object.assign(new RegExp(`^${X}$`,q),{_src:X,_glob:Z})}get options(){return this.#K}toRegExpSource(Z){let X=Z??!!this.#K.dot;if(this.#Z===this)this.#x(),this.#W();if(!PO(this)){let K=this.isStart()&&this.isEnd()&&!this.#X.some((x)=>typeof x!=="string"),W=this.#X.map((x)=>{let[M,F,D,C]=typeof x==="string"?D4.#j(x,this.#Q,K):x.toRegExpSource(Z);return this.#Q=this.#Q||D,this.#$=this.#$||C,M}).join(""),V="";if(this.isStart()){if(typeof this.#X[0]==="string"){if(!(this.#X.length===1&&D90.has(this.#X[0]))){let M=N90,F=X&&M.has(W.charAt(0))||W.startsWith("\\.")&&M.has(W.charAt(2))||W.startsWith("\\.\\.")&&M.has(W.charAt(4)),D=!X&&!Z&&M.has(W.charAt(0));V=F?F90:D?Oq:""}}}let U="";if(this.isEnd()&&this.#Z.#U&&this.#Y?.type==="!")U="(?:$|\\/)";return[V+W+U,r6(W),this.#Q=!!this.#Q,this.#$]}let Q=this.type==="*"||this.type==="+",J=this.type==="!"?"(?:(?!(?:":"(?:",$=this.#D(X);if(this.isStart()&&this.isEnd()&&!$&&this.type!=="!"){let K=this.toString(),W=this;return W.#X=[K],W.type=null,W.#Q=void 0,[K,r6(this.toString()),!1,!1]}let Y=!Q||Z||X||!Oq?"":this.#D(!0);if(Y===$)Y="";if(Y)$=`(?:${$})(?:${Y})*?`;let q="";if(this.type==="!"&&this.#G)q=(this.isStart()&&!X?Oq:"")+vO;else{let K=this.type==="!"?"))"+(this.isStart()&&!X&&!Z?Oq:"")+EO+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&Y?")":this.type==="*"&&Y?")?":`)${this.type}`;q=J+$+K}return[q,r6($),this.#Q=!!this.#Q,this.#$]}#x(){if(!PO(this)){for(let Z of this.#X)if(typeof Z==="object")Z.#x()}else{let Z=0,X=!1;do{X=!0;for(let Q=0;Q<this.#X.length;Q++){let J=this.#X[Q];if(typeof J==="object"){if(J.#x(),this.#w(J))X=!1,this.#I(J,Q);else if(this.#L(J))X=!1,this.#F(J,Q);else if(this.#C(J))X=!1,this.#R(J)}}}while(!X&&++Z<10)}this.#H=void 0}#D(Z){return this.#X.map((X)=>{if(typeof X==="string")throw new Error("string type in extglob ast??");let[Q,J,$,Y]=X.toRegExpSource(Z);return this.#$=this.#$||Y,Q}).filter((X)=>!(this.isStart()&&this.isEnd())||!!X).join("|")}static#j(Z,X,Q=!1){let J=!1,$="",Y=!1,q=!1;for(let K=0;K<Z.length;K++){let W=Z.charAt(K);if(J){J=!1,$+=(L90.has(W)?"\\":"")+W;continue}if(W==="*"){if(q)continue;q=!0,$+=Q&&/^[*]+$/.test(Z)?vO:EO,X=!0;continue}else q=!1;if(W==="\\"){if(K===Z.length-1)$+="\\\\";else J=!0;continue}if(W==="["){let[V,U,H,x]=TO(Z,K);if(H){$+=V,Y=Y||U,K+=H-1,X=X||x;continue}}if(W==="?"){$+=IG,X=!0;continue}$+=j90(W)}return[$,r6(Z),!!X,Y]}}D4=A3;var E3=(Z,{windowsPathsNoEscape:X=!1,magicalBraces:Q=!1}={})=>{if(Q)return X?Z.replace(/[?*()[\]{}]/g,"[$&]"):Z.replace(/[?*()[\]\\{}]/g,"\\$&");return X?Z.replace(/[?*()[\]]/g,"[$&]"):Z.replace(/[?*()[\]\\]/g,"\\$&")};var J4=(Z,X,Q={})=>{if(yQ(X),!Q.nocomment&&X.charAt(0)==="#")return!1;return new D6(X,Q).match(Z)},C90=/^\*+([^+@!?*[(]*)$/,R90=(Z)=>(X)=>!X.startsWith(".")&&X.endsWith(Z),O90=(Z)=>(X)=>X.endsWith(Z),I90=(Z)=>{return Z=Z.toLowerCase(),(X)=>!X.startsWith(".")&&X.toLowerCase().endsWith(Z)},_90=(Z)=>{return Z=Z.toLowerCase(),(X)=>X.toLowerCase().endsWith(Z)},S90=/^\*+\.\*+$/,T90=(Z)=>!Z.startsWith(".")&&Z.includes("."),P90=(Z)=>Z!=="."&&Z!==".."&&Z.includes("."),A90=/^\.\*+$/,E90=(Z)=>Z!=="."&&Z!==".."&&Z.startsWith("."),v90=/^\*+$/,k90=(Z)=>Z.length!==0&&!Z.startsWith("."),f90=(Z)=>Z.length!==0&&Z!=="."&&Z!=="..",b90=/^\?+([^+@!?*[(]*)?$/,m90=([Z,X=""])=>{let Q=bO([Z]);if(!X)return Q;return X=X.toLowerCase(),(J)=>Q(J)&&J.toLowerCase().endsWith(X)},y90=([Z,X=""])=>{let Q=mO([Z]);if(!X)return Q;return X=X.toLowerCase(),(J)=>Q(J)&&J.toLowerCase().endsWith(X)},g90=([Z,X=""])=>{let Q=mO([Z]);return!X?Q:(J)=>Q(J)&&J.endsWith(X)},c90=([Z,X=""])=>{let Q=bO([Z]);return!X?Q:(J)=>Q(J)&&J.endsWith(X)},bO=([Z])=>{let X=Z.length;return(Q)=>Q.length===X&&!Q.startsWith(".")},mO=([Z])=>{let X=Z.length;return(Q)=>Q.length===X&&Q!=="."&&Q!==".."},yO=typeof process==="object"&&process?typeof process.env==="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",kO={win32:{sep:"\\"},posix:{sep:"/"}},u90=yO==="win32"?kO.win32.sep:kO.posix.sep;J4.sep=u90;var c2=Symbol("globstar **");J4.GLOBSTAR=c2;var h90="[^/]",d90=h90+"*?",p90="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",l90="(?:(?!(?:\\/|^)\\.).)*?",i90=(Z,X={})=>(Q)=>J4(Q,Z,X);J4.filter=i90;var N6=(Z,X={})=>Object.assign({},Z,X),o90=(Z)=>{if(!Z||typeof Z!=="object"||!Object.keys(Z).length)return J4;let X=J4;return Object.assign((J,$,Y={})=>X(J,$,N6(Z,Y)),{Minimatch:class J extends X.Minimatch{constructor($,Y={}){super($,N6(Z,Y))}static defaults($){return X.defaults(N6(Z,$)).Minimatch}},AST:class J extends X.AST{constructor($,Y,q={}){super($,Y,N6(Z,q))}static fromGlob($,Y={}){return X.AST.fromGlob($,N6(Z,Y))}},unescape:(J,$={})=>X.unescape(J,N6(Z,$)),escape:(J,$={})=>X.escape(J,N6(Z,$)),filter:(J,$={})=>X.filter(J,N6(Z,$)),defaults:(J)=>X.defaults(N6(Z,J)),makeRe:(J,$={})=>X.makeRe(J,N6(Z,$)),braceExpand:(J,$={})=>X.braceExpand(J,N6(Z,$)),match:(J,$,Y={})=>X.match(J,$,N6(Z,Y)),sep:X.sep,GLOBSTAR:c2})};J4.defaults=o90;var gO=(Z,X={})=>{if(yQ(Z),X.nobrace||!/\{(?:(?!\{).)*\}/.test(Z))return[Z];return _O(Z,{max:X.braceExpandMax})};J4.braceExpand=gO;var n90=(Z,X={})=>new D6(Z,X).makeRe();J4.makeRe=n90;var s90=(Z,X,Q={})=>{let J=new D6(X,Q);if(Z=Z.filter(($)=>J.match($)),J.options.nonull&&!Z.length)Z.push(X);return Z};J4.match=s90;var fO=/[?*]|[+@!]\(.*?\)|\[|\]/,a90=(Z)=>Z.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class D6{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(Z,X={}){yQ(Z),X=X||{},this.options=X,this.maxGlobstarRecursion=X.maxGlobstarRecursion??200,this.pattern=Z,this.platform=X.platform||yO,this.isWindows=this.platform==="win32";let Q="allowWindowsEscape";if(this.windowsPathsNoEscape=!!X.windowsPathsNoEscape||X[Q]===!1,this.windowsPathsNoEscape)this.pattern=this.pattern.replace(/\\/g,"/");this.preserveMultipleSlashes=!!X.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!X.nonegate,this.comment=!1,this.empty=!1,this.partial=!!X.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=X.windowsNoMagicRoot!==void 0?X.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let Z of this.set)for(let X of Z)if(typeof X!=="string")return!0;return!1}debug(...Z){}make(){let Z=this.pattern,X=this.options;if(!X.nocomment&&Z.charAt(0)==="#"){this.comment=!0;return}if(!Z){this.empty=!0;return}if(this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],X.debug)this.debug=(...$)=>console.error(...$);this.debug(this.pattern,this.globSet);let Q=this.globSet.map(($)=>this.slashSplit($));this.globParts=this.preprocess(Q),this.debug(this.pattern,this.globParts);let J=this.globParts.map(($,Y,q)=>{if(this.isWindows&&this.windowsNoMagicRoot){let K=$[0]===""&&$[1]===""&&($[2]==="?"||!fO.test($[2]))&&!fO.test($[3]),W=/^[a-z]:/i.test($[0]);if(K)return[...$.slice(0,4),...$.slice(4).map((V)=>this.parse(V))];else if(W)return[$[0],...$.slice(1).map((V)=>this.parse(V))]}return $.map((K)=>this.parse(K))});if(this.debug(this.pattern,J),this.set=J.filter(($)=>$.indexOf(!1)===-1),this.isWindows)for(let $=0;$<this.set.length;$++){let Y=this.set[$];if(Y[0]===""&&Y[1]===""&&this.globParts[$][2]==="?"&&typeof Y[3]==="string"&&/^[a-z]:$/i.test(Y[3]))Y[2]="?"}this.debug(this.pattern,this.set)}preprocess(Z){if(this.options.noglobstar){for(let Q of Z)for(let J=0;J<Q.length;J++)if(Q[J]==="**")Q[J]="*"}let{optimizationLevel:X=1}=this.options;if(X>=2)Z=this.firstPhasePreProcess(Z),Z=this.secondPhasePreProcess(Z);else if(X>=1)Z=this.levelOneOptimize(Z);else Z=this.adjascentGlobstarOptimize(Z);return Z}adjascentGlobstarOptimize(Z){return Z.map((X)=>{let Q=-1;while((Q=X.indexOf("**",Q+1))!==-1){let J=Q;while(X[J+1]==="**")J++;if(J!==Q)X.splice(Q,J-Q)}return X})}levelOneOptimize(Z){return Z.map((X)=>{return X=X.reduce((Q,J)=>{let $=Q[Q.length-1];if(J==="**"&&$==="**")return Q;if(J===".."){if($&&$!==".."&&$!=="."&&$!=="**")return Q.pop(),Q}return Q.push(J),Q},[]),X.length===0?[""]:X})}levelTwoFileOptimize(Z){if(!Array.isArray(Z))Z=this.slashSplit(Z);let X=!1;do{if(X=!1,!this.preserveMultipleSlashes){for(let J=1;J<Z.length-1;J++){let $=Z[J];if(J===1&&$===""&&Z[0]==="")continue;if($==="."||$==="")X=!0,Z.splice(J,1),J--}if(Z[0]==="."&&Z.length===2&&(Z[1]==="."||Z[1]===""))X=!0,Z.pop()}let Q=0;while((Q=Z.indexOf("..",Q+1))!==-1){let J=Z[Q-1];if(J&&J!=="."&&J!==".."&&J!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(J)))X=!0,Z.splice(Q-1,2),Q-=2}}while(X);return Z.length===0?[""]:Z}firstPhasePreProcess(Z){let X=!1;do{X=!1;for(let Q of Z){let J=-1;while((J=Q.indexOf("**",J+1))!==-1){let Y=J;while(Q[Y+1]==="**")Y++;if(Y>J)Q.splice(J+1,Y-J);let q=Q[J+1],K=Q[J+2],W=Q[J+3];if(q!=="..")continue;if(!K||K==="."||K===".."||!W||W==="."||W==="..")continue;X=!0,Q.splice(J,1);let V=Q.slice(0);V[J]="**",Z.push(V),J--}if(!this.preserveMultipleSlashes){for(let Y=1;Y<Q.length-1;Y++){let q=Q[Y];if(Y===1&&q===""&&Q[0]==="")continue;if(q==="."||q==="")X=!0,Q.splice(Y,1),Y--}if(Q[0]==="."&&Q.length===2&&(Q[1]==="."||Q[1]===""))X=!0,Q.pop()}let $=0;while(($=Q.indexOf("..",$+1))!==-1){let Y=Q[$-1];if(Y&&Y!=="."&&Y!==".."&&Y!=="**"){X=!0;let K=$===1&&Q[$+1]==="**"?["."]:[];if(Q.splice($-1,2,...K),Q.length===0)Q.push("");$-=2}}}}while(X);return Z}secondPhasePreProcess(Z){for(let X=0;X<Z.length-1;X++)for(let Q=X+1;Q<Z.length;Q++){let J=this.partsMatch(Z[X],Z[Q],!this.preserveMultipleSlashes);if(J){Z[X]=[],Z[Q]=J;break}}return Z.filter((X)=>X.length)}partsMatch(Z,X,Q=!1){let J=0,$=0,Y=[],q="";while(J<Z.length&&$<X.length)if(Z[J]===X[$])Y.push(q==="b"?X[$]:Z[J]),J++,$++;else if(Q&&Z[J]==="**"&&X[$]===Z[J+1])Y.push(Z[J]),J++;else if(Q&&X[$]==="**"&&Z[J]===X[$+1])Y.push(X[$]),$++;else if(Z[J]==="*"&&X[$]&&(this.options.dot||!X[$].startsWith("."))&&X[$]!=="**"){if(q==="b")return!1;q="a",Y.push(Z[J]),J++,$++}else if(X[$]==="*"&&Z[J]&&(this.options.dot||!Z[J].startsWith("."))&&Z[J]!=="**"){if(q==="a")return!1;q="b",Y.push(X[$]),J++,$++}else return!1;return Z.length===X.length&&Y}parseNegate(){if(this.nonegate)return;let Z=this.pattern,X=!1,Q=0;for(let J=0;J<Z.length&&Z.charAt(J)==="!";J++)X=!X,Q++;if(Q)this.pattern=Z.slice(Q);this.negate=X}matchOne(Z,X,Q=!1){let J=0,$=0;if(this.isWindows){let q=typeof Z[0]==="string"&&/^[a-z]:$/i.test(Z[0]),K=!q&&Z[0]===""&&Z[1]===""&&Z[2]==="?"&&/^[a-z]:$/i.test(Z[3]),W=typeof X[0]==="string"&&/^[a-z]:$/i.test(X[0]),V=!W&&X[0]===""&&X[1]===""&&X[2]==="?"&&typeof X[3]==="string"&&/^[a-z]:$/i.test(X[3]),U=K?3:q?0:void 0,H=V?3:W?0:void 0;if(typeof U==="number"&&typeof H==="number"){let[x,M]=[Z[U],X[H]];if(x.toLowerCase()===M.toLowerCase())X[H]=x,$=H,J=U}}let{optimizationLevel:Y=1}=this.options;if(Y>=2)Z=this.levelTwoFileOptimize(Z);if(X.includes(c2))return this.#Z(Z,X,Q,J,$);return this.#$(Z,X,Q,J,$)}#Z(Z,X,Q,J,$){let Y=X.indexOf(c2,$),q=X.lastIndexOf(c2),[K,W,V]=Q?[X.slice($,Y),X.slice(Y+1),[]]:[X.slice($,Y),X.slice(Y+1,q),X.slice(q+1)];if(K.length){let j=Z.slice(J,J+K.length);if(!this.#$(j,K,Q,0,0))return!1;J+=K.length,$+=K.length}let U=0;if(V.length){if(V.length+J>Z.length)return!1;let j=Z.length-V.length;if(this.#$(Z,V,Q,j,0))U=V.length;else{if(Z[Z.length-1]!==""||J+V.length===Z.length)return!1;if(j--,!this.#$(Z,V,Q,j,0))return!1;U=V.length+1}}if(!W.length){let j=!!U;for(let I=J;I<Z.length-U;I++){let v=String(Z[I]);if(j=!0,v==="."||v===".."||!this.options.dot&&v.startsWith("."))return!1}return Q||j}let H=[[[],0]],x=H[0],M=0,F=[0];for(let j of W)if(j===c2)F.push(M),x=[[],0],H.push(x);else x[0].push(j),M++;let D=H.length-1,C=Z.length-U;for(let j of H)j[1]=C-(F[D--]+j[0].length);return!!this.#Q(Z,H,J,0,Q,0,!!U)}#Q(Z,X,Q,J,$,Y,q){let K=X[J];if(!K){for(let U=Q;U<Z.length;U++){q=!0;let H=Z[U];if(H==="."||H===".."||!this.options.dot&&H.startsWith("."))return!1}return q}let[W,V]=K;while(Q<=V){if(this.#$(Z.slice(0,Q+W.length),W,$,Q,0)&&Y<this.maxGlobstarRecursion){let x=this.#Q(Z,X,Q+W.length,J+1,$,Y+1,q);if(x!==!1)return x}let H=Z[Q];if(H==="."||H===".."||!this.options.dot&&H.startsWith("."))return!1;Q++}return $||null}#$(Z,X,Q,J,$){let Y,q,K,W;for(Y=J,q=$,W=Z.length,K=X.length;Y<W&&q<K;Y++,q++){this.debug("matchOne loop");let V=X[q],U=Z[Y];if(this.debug(X,V,U),V===!1||V===c2)return!1;let H;if(typeof V==="string")H=U===V,this.debug("string match",V,U,H);else H=V.test(U),this.debug("pattern match",V,U,H);if(!H)return!1}if(Y===W&&q===K)return!0;else if(Y===W)return Q;else if(q===K)return Y===W-1&&Z[Y]==="";else throw new Error("wtf?")}braceExpand(){return gO(this.pattern,this.options)}parse(Z){yQ(Z);let X=this.options;if(Z==="**")return c2;if(Z==="")return"";let Q,J=null;if(Q=Z.match(v90))J=X.dot?f90:k90;else if(Q=Z.match(C90))J=(X.nocase?X.dot?_90:I90:X.dot?O90:R90)(Q[1]);else if(Q=Z.match(b90))J=(X.nocase?X.dot?y90:m90:X.dot?g90:c90)(Q);else if(Q=Z.match(S90))J=X.dot?P90:T90;else if(Q=Z.match(A90))J=E90;let $=A3.fromGlob(Z,this.options).toMMPattern();if(J&&typeof $==="object")Reflect.defineProperty($,"test",{value:J});return $}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let Z=this.set;if(!Z.length)return this.regexp=!1,this.regexp;let X=this.options,Q=X.noglobstar?d90:X.dot?p90:l90,J=new Set(X.nocase?["i"]:[]),$=Z.map((K)=>{let W=K.map((U)=>{if(U instanceof RegExp)for(let H of U.flags.split(""))J.add(H);return typeof U==="string"?a90(U):U===c2?c2:U._src});W.forEach((U,H)=>{let x=W[H+1],M=W[H-1];if(U!==c2||M===c2)return;if(M===void 0)if(x!==void 0&&x!==c2)W[H+1]="(?:\\/|"+Q+"\\/)?"+x;else W[H]=Q;else if(x===void 0)W[H-1]=M+"(?:\\/|\\/"+Q+")?";else if(x!==c2)W[H-1]=M+"(?:\\/|\\/"+Q+"\\/)"+x,W[H+1]=c2});let V=W.filter((U)=>U!==c2);if(this.partial&&V.length>=1){let U=[];for(let H=1;H<=V.length;H++)U.push(V.slice(0,H).join("/"));return"(?:"+U.join("|")+")"}return V.join("/")}).join("|"),[Y,q]=Z.length>1?["(?:",")"]:["",""];if($="^"+Y+$+q+"$",this.partial)$="^(?:\\/|"+Y+$.slice(1,-1)+q+")$";if(this.negate)$="^(?!"+$+").+$";try{this.regexp=new RegExp($,[...J].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(Z){if(this.preserveMultipleSlashes)return Z.split("/");else if(this.isWindows&&/^\/\/[^/]+/.test(Z))return["",...Z.split(/\/+/)];else return Z.split(/\/+/)}match(Z,X=this.partial){if(this.debug("match",Z,this.pattern),this.comment)return!1;if(this.empty)return Z==="";if(Z==="/"&&X)return!0;let Q=this.options;if(this.isWindows)Z=Z.split("\\").join("/");let J=this.slashSplit(Z);this.debug(this.pattern,"split",J);let $=this.set;this.debug(this.pattern,"set",$);let Y=J[J.length-1];if(!Y)for(let q=J.length-2;!Y&&q>=0;q--)Y=J[q];for(let q of $){let K=J;if(Q.matchBase&&q.length===1)K=[Y];if(this.matchOne(K,q,X)){if(Q.flipNegate)return!0;return!this.negate}}if(Q.flipNegate)return!1;return this.negate}static defaults(Z){return J4.defaults(Z).Minimatch}}J4.AST=A3;J4.Minimatch=D6;J4.escape=E3;J4.unescape=r6;import{fileURLToPath as TZ0}from"node:url";var r90=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date,uO=new Set,_G=typeof process==="object"&&!!process?process:{},hO=(Z,X,Q,J)=>{typeof _G.emitWarning==="function"?_G.emitWarning(Z,X,Q,J):console.error(`[${Q}] ${X}: ${Z}`)},Iq=globalThis.AbortController,cO=globalThis.AbortSignal;if(typeof Iq==="undefined"){cO=class Q{onabort;_onabort=[];reason;aborted=!1;addEventListener(J,$){this._onabort.push($)}},Iq=class Q{constructor(){X()}signal=new cO;abort(J){if(this.signal.aborted)return;this.signal.reason=J,this.signal.aborted=!0;for(let $ of this.signal._onabort)$(J);this.signal.onabort?.(J)}};let Z=_G.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",X=()=>{if(!Z)return;Z=!1,hO("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",X)}}var t90=(Z)=>!uO.has(Z),Ot0=Symbol("type"),e5=(Z)=>Z&&Z===Math.floor(Z)&&Z>0&&isFinite(Z),dO=(Z)=>!e5(Z)?null:Z<=Math.pow(2,8)?Uint8Array:Z<=Math.pow(2,16)?Uint16Array:Z<=Math.pow(2,32)?Uint32Array:Z<=Number.MAX_SAFE_INTEGER?cQ:null;class cQ extends Array{constructor(Z){super(Z);this.fill(0)}}class v3{heap;length;static#Z=!1;static create(Z){let X=dO(Z);if(!X)return[];v3.#Z=!0;let Q=new v3(Z,X);return v3.#Z=!1,Q}constructor(Z,X){if(!v3.#Z)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new X(Z),this.length=0}push(Z){this.heap[this.length++]=Z}pop(){return this.heap[--this.length]}}class $Z{#Z;#Q;#$;#X;#Y;#z;#B;#U;get perf(){return this.#U}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#K;#H;#G;#W;#q;#L;#w;#M;#F;#I;#N;#C;#R;#x;#D;#j;#_;#J;#k;static unsafeExposeInternals(Z){return{starts:Z.#R,ttls:Z.#x,autopurgeTimers:Z.#D,sizes:Z.#C,keyMap:Z.#G,keyList:Z.#W,valList:Z.#q,next:Z.#L,prev:Z.#w,get head(){return Z.#M},get tail(){return Z.#F},free:Z.#I,isBackgroundFetch:(X)=>Z.#V(X),backgroundFetch:(X,Q,J,$)=>Z.#h(X,Q,J,$),moveToTail:(X)=>Z.#b(X),indexes:(X)=>Z.#P(X),rindexes:(X)=>Z.#A(X),isStale:(X)=>Z.#O(X)}}get max(){return this.#Z}get maxSize(){return this.#Q}get calculatedSize(){return this.#H}get size(){return this.#K}get fetchMethod(){return this.#z}get memoMethod(){return this.#B}get dispose(){return this.#$}get onInsert(){return this.#X}get disposeAfter(){return this.#Y}constructor(Z){let{max:X=0,ttl:Q,ttlResolution:J=1,ttlAutopurge:$,updateAgeOnGet:Y,updateAgeOnHas:q,allowStale:K,dispose:W,onInsert:V,disposeAfter:U,noDisposeOnSet:H,noUpdateTTL:x,maxSize:M=0,maxEntrySize:F=0,sizeCalculation:D,fetchMethod:C,memoMethod:j,noDeleteOnFetchRejection:I,noDeleteOnStaleGet:v,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:c,ignoreFetchAbort:Z0,perf:Q0}=Z;if(Q0!==void 0){if(typeof Q0?.now!=="function")throw new TypeError("perf option must have a now() method if specified")}if(this.#U=Q0??r90,X!==0&&!e5(X))throw new TypeError("max option must be a nonnegative integer");let A=X?dO(X):Array;if(!A)throw new Error("invalid max value: "+X);if(this.#Z=X,this.#Q=M,this.maxEntrySize=F||this.#Q,this.sizeCalculation=D,this.sizeCalculation){if(!this.#Q&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!=="function")throw new TypeError("sizeCalculation set to non-function")}if(j!==void 0&&typeof j!=="function")throw new TypeError("memoMethod must be a function if defined");if(this.#B=j,C!==void 0&&typeof C!=="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#z=C,this.#_=!!C,this.#G=new Map,this.#W=new Array(X).fill(void 0),this.#q=new Array(X).fill(void 0),this.#L=new A(X),this.#w=new A(X),this.#M=0,this.#F=0,this.#I=v3.create(X),this.#K=0,this.#H=0,typeof W==="function")this.#$=W;if(typeof V==="function")this.#X=V;if(typeof U==="function")this.#Y=U,this.#N=[];else this.#Y=void 0,this.#N=void 0;if(this.#j=!!this.#$,this.#k=!!this.#X,this.#J=!!this.#Y,this.noDisposeOnSet=!!H,this.noUpdateTTL=!!x,this.noDeleteOnFetchRejection=!!I,this.allowStaleOnFetchRejection=!!S,this.allowStaleOnFetchAbort=!!c,this.ignoreFetchAbort=!!Z0,this.maxEntrySize!==0){if(this.#Q!==0){if(!e5(this.#Q))throw new TypeError("maxSize must be a positive integer if specified")}if(!e5(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#p()}if(this.allowStale=!!K,this.noDeleteOnStaleGet=!!v,this.updateAgeOnGet=!!Y,this.updateAgeOnHas=!!q,this.ttlResolution=e5(J)||J===0?J:1,this.ttlAutopurge=!!$,this.ttl=Q||0,this.ttl){if(!e5(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#E()}if(this.#Z===0&&this.ttl===0&&this.#Q===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#Z&&!this.#Q){if(t90("LRU_CACHE_UNBOUNDED"))uO.add("LRU_CACHE_UNBOUNDED"),hO("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning","LRU_CACHE_UNBOUNDED",$Z)}}getRemainingTTL(Z){return this.#G.has(Z)?1/0:0}#E(){let Z=new cQ(this.#Z),X=new cQ(this.#Z);this.#x=Z,this.#R=X;let Q=this.ttlAutopurge?new Array(this.#Z):void 0;this.#D=Q,this.#y=(Y,q,K=this.#U.now())=>{if(X[Y]=q!==0?K:0,Z[Y]=q,Q?.[Y])clearTimeout(Q[Y]),Q[Y]=void 0;if(q!==0&&Q){let W=setTimeout(()=>{if(this.#O(Y))this.#T(this.#W[Y],"expire")},q+1);if(W.unref)W.unref();Q[Y]=W}},this.#S=(Y)=>{X[Y]=Z[Y]!==0?this.#U.now():0},this.#v=(Y,q)=>{if(Z[q]){let K=Z[q],W=X[q];if(!K||!W)return;Y.ttl=K,Y.start=W,Y.now=J||$();let V=Y.now-W;Y.remainingTTL=K-V}};let J=0,$=()=>{let Y=this.#U.now();if(this.ttlResolution>0){J=Y;let q=setTimeout(()=>J=0,this.ttlResolution);if(q.unref)q.unref()}return Y};this.getRemainingTTL=(Y)=>{let q=this.#G.get(Y);if(q===void 0)return 0;let K=Z[q],W=X[q];if(!K||!W)return 1/0;let V=(J||$())-W;return K-V},this.#O=(Y)=>{let q=X[Y],K=Z[Y];return!!K&&!!q&&(J||$())-q>K}}#S=()=>{};#v=()=>{};#y=()=>{};#O=()=>!1;#p(){let Z=new cQ(this.#Z);this.#H=0,this.#C=Z,this.#m=(X)=>{this.#H-=Z[X],Z[X]=0},this.#g=(X,Q,J,$)=>{if(this.#V(Q))return 0;if(!e5(J))if($){if(typeof $!=="function")throw new TypeError("sizeCalculation must be a function");if(J=$(Q,X),!e5(J))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return J},this.#f=(X,Q,J)=>{if(Z[X]=Q,this.#Q){let $=this.#Q-Z[X];while(this.#H>$)this.#u(!0)}if(this.#H+=Z[X],J)J.entrySize=Q,J.totalCalculatedSize=this.#H}}#m=(Z)=>{};#f=(Z,X,Q)=>{};#g=(Z,X,Q,J)=>{if(Q||J)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#P({allowStale:Z=this.allowStale}={}){if(this.#K)for(let X=this.#F;;){if(!this.#c(X))break;if(Z||!this.#O(X))yield X;if(X===this.#M)break;else X=this.#w[X]}}*#A({allowStale:Z=this.allowStale}={}){if(this.#K)for(let X=this.#M;;){if(!this.#c(X))break;if(Z||!this.#O(X))yield X;if(X===this.#F)break;else X=this.#L[X]}}#c(Z){return Z!==void 0&&this.#G.get(this.#W[Z])===Z}*entries(){for(let Z of this.#P())if(this.#q[Z]!==void 0&&this.#W[Z]!==void 0&&!this.#V(this.#q[Z]))yield[this.#W[Z],this.#q[Z]]}*rentries(){for(let Z of this.#A())if(this.#q[Z]!==void 0&&this.#W[Z]!==void 0&&!this.#V(this.#q[Z]))yield[this.#W[Z],this.#q[Z]]}*keys(){for(let Z of this.#P()){let X=this.#W[Z];if(X!==void 0&&!this.#V(this.#q[Z]))yield X}}*rkeys(){for(let Z of this.#A()){let X=this.#W[Z];if(X!==void 0&&!this.#V(this.#q[Z]))yield X}}*values(){for(let Z of this.#P())if(this.#q[Z]!==void 0&&!this.#V(this.#q[Z]))yield this.#q[Z]}*rvalues(){for(let Z of this.#A())if(this.#q[Z]!==void 0&&!this.#V(this.#q[Z]))yield this.#q[Z]}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(Z,X={}){for(let Q of this.#P()){let J=this.#q[Q],$=this.#V(J)?J.__staleWhileFetching:J;if($===void 0)continue;if(Z($,this.#W[Q],this))return this.get(this.#W[Q],X)}}forEach(Z,X=this){for(let Q of this.#P()){let J=this.#q[Q],$=this.#V(J)?J.__staleWhileFetching:J;if($===void 0)continue;Z.call(X,$,this.#W[Q],this)}}rforEach(Z,X=this){for(let Q of this.#A()){let J=this.#q[Q],$=this.#V(J)?J.__staleWhileFetching:J;if($===void 0)continue;Z.call(X,$,this.#W[Q],this)}}purgeStale(){let Z=!1;for(let X of this.#A({allowStale:!0}))if(this.#O(X))this.#T(this.#W[X],"expire"),Z=!0;return Z}info(Z){let X=this.#G.get(Z);if(X===void 0)return;let Q=this.#q[X],J=this.#V(Q)?Q.__staleWhileFetching:Q;if(J===void 0)return;let $={value:J};if(this.#x&&this.#R){let Y=this.#x[X],q=this.#R[X];if(Y&&q){let K=Y-(this.#U.now()-q);$.ttl=K,$.start=Date.now()}}if(this.#C)$.size=this.#C[X];return $}dump(){let Z=[];for(let X of this.#P({allowStale:!0})){let Q=this.#W[X],J=this.#q[X],$=this.#V(J)?J.__staleWhileFetching:J;if($===void 0||Q===void 0)continue;let Y={value:$};if(this.#x&&this.#R){Y.ttl=this.#x[X];let q=this.#U.now()-this.#R[X];Y.start=Math.floor(Date.now()-q)}if(this.#C)Y.size=this.#C[X];Z.unshift([Q,Y])}return Z}load(Z){this.clear();for(let[X,Q]of Z){if(Q.start){let J=Date.now()-Q.start;Q.start=this.#U.now()-J}this.set(X,Q.value,Q)}}set(Z,X,Q={}){if(X===void 0)return this.delete(Z),this;let{ttl:J=this.ttl,start:$,noDisposeOnSet:Y=this.noDisposeOnSet,sizeCalculation:q=this.sizeCalculation,status:K}=Q,{noUpdateTTL:W=this.noUpdateTTL}=Q,V=this.#g(Z,X,Q.size||0,q);if(this.maxEntrySize&&V>this.maxEntrySize){if(K)K.set="miss",K.maxEntrySizeExceeded=!0;return this.#T(Z,"set"),this}let U=this.#K===0?void 0:this.#G.get(Z);if(U===void 0){if(U=this.#K===0?this.#F:this.#I.length!==0?this.#I.pop():this.#K===this.#Z?this.#u(!1):this.#K,this.#W[U]=Z,this.#q[U]=X,this.#G.set(Z,U),this.#L[this.#F]=U,this.#w[U]=this.#F,this.#F=U,this.#K++,this.#f(U,V,K),K)K.set="add";if(W=!1,this.#k)this.#X?.(X,Z,"add")}else{this.#b(U);let H=this.#q[U];if(X!==H){if(this.#_&&this.#V(H)){H.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:x}=H;if(x!==void 0&&!Y){if(this.#j)this.#$?.(x,Z,"set");if(this.#J)this.#N?.push([x,Z,"set"])}}else if(!Y){if(this.#j)this.#$?.(H,Z,"set");if(this.#J)this.#N?.push([H,Z,"set"])}if(this.#m(U),this.#f(U,V,K),this.#q[U]=X,K){K.set="replace";let x=H&&this.#V(H)?H.__staleWhileFetching:H;if(x!==void 0)K.oldValue=x}}else if(K)K.set="update";if(this.#k)this.onInsert?.(X,Z,X===H?"update":"replace")}if(J!==0&&!this.#x)this.#E();if(this.#x){if(!W)this.#y(U,J,$);if(K)this.#v(K,U)}if(!Y&&this.#J&&this.#N){let H=this.#N,x;while(x=H?.shift())this.#Y?.(...x)}return this}pop(){try{while(this.#K){let Z=this.#q[this.#M];if(this.#u(!0),this.#V(Z)){if(Z.__staleWhileFetching)return Z.__staleWhileFetching}else if(Z!==void 0)return Z}}finally{if(this.#J&&this.#N){let Z=this.#N,X;while(X=Z?.shift())this.#Y?.(...X)}}}#u(Z){let X=this.#M,Q=this.#W[X],J=this.#q[X];if(this.#_&&this.#V(J))J.__abortController.abort(new Error("evicted"));else if(this.#j||this.#J){if(this.#j)this.#$?.(J,Q,"evict");if(this.#J)this.#N?.push([J,Q,"evict"])}if(this.#m(X),this.#D?.[X])clearTimeout(this.#D[X]),this.#D[X]=void 0;if(Z)this.#W[X]=void 0,this.#q[X]=void 0,this.#I.push(X);if(this.#K===1)this.#M=this.#F=0,this.#I.length=0;else this.#M=this.#L[X];return this.#G.delete(Q),this.#K--,X}has(Z,X={}){let{updateAgeOnHas:Q=this.updateAgeOnHas,status:J}=X,$=this.#G.get(Z);if($!==void 0){let Y=this.#q[$];if(this.#V(Y)&&Y.__staleWhileFetching===void 0)return!1;if(!this.#O($)){if(Q)this.#S($);if(J)J.has="hit",this.#v(J,$);return!0}else if(J)J.has="stale",this.#v(J,$)}else if(J)J.has="miss";return!1}peek(Z,X={}){let{allowStale:Q=this.allowStale}=X,J=this.#G.get(Z);if(J===void 0||!Q&&this.#O(J))return;let $=this.#q[J];return this.#V($)?$.__staleWhileFetching:$}#h(Z,X,Q,J){let $=X===void 0?void 0:this.#q[X];if(this.#V($))return $;let Y=new Iq,{signal:q}=Q;q?.addEventListener("abort",()=>Y.abort(q.reason),{signal:Y.signal});let K={signal:Y.signal,options:Q,context:J},W=(F,D=!1)=>{let{aborted:C}=Y.signal,j=Q.ignoreFetchAbort&&F!==void 0;if(Q.status)if(C&&!D){if(Q.status.fetchAborted=!0,Q.status.fetchError=Y.signal.reason,j)Q.status.fetchAbortIgnored=!0}else Q.status.fetchResolved=!0;if(C&&!j&&!D)return U(Y.signal.reason);let I=x,v=this.#q[X];if(v===x||j&&D&&v===void 0)if(F===void 0)if(I.__staleWhileFetching!==void 0)this.#q[X]=I.__staleWhileFetching;else this.#T(Z,"fetch");else{if(Q.status)Q.status.fetchUpdated=!0;this.set(Z,F,K.options)}return F},V=(F)=>{if(Q.status)Q.status.fetchRejected=!0,Q.status.fetchError=F;return U(F)},U=(F)=>{let{aborted:D}=Y.signal,C=D&&Q.allowStaleOnFetchAbort,j=C||Q.allowStaleOnFetchRejection,I=j||Q.noDeleteOnFetchRejection,v=x;if(this.#q[X]===x){if(!I||v.__staleWhileFetching===void 0)this.#T(Z,"fetch");else if(!C)this.#q[X]=v.__staleWhileFetching}if(j){if(Q.status&&v.__staleWhileFetching!==void 0)Q.status.returnedStale=!0;return v.__staleWhileFetching}else if(v.__returned===v)throw F},H=(F,D)=>{let C=this.#z?.(Z,$,K);if(C&&C instanceof Promise)C.then((j)=>F(j===void 0?void 0:j),D);Y.signal.addEventListener("abort",()=>{if(!Q.ignoreFetchAbort||Q.allowStaleOnFetchAbort){if(F(void 0),Q.allowStaleOnFetchAbort)F=(j)=>W(j,!0)}})};if(Q.status)Q.status.fetchDispatched=!0;let x=new Promise(H).then(W,V),M=Object.assign(x,{__abortController:Y,__staleWhileFetching:$,__returned:void 0});if(X===void 0)this.set(Z,M,{...K.options,status:void 0}),X=this.#G.get(Z);else this.#q[X]=M;return M}#V(Z){if(!this.#_)return!1;let X=Z;return!!X&&X instanceof Promise&&X.hasOwnProperty("__staleWhileFetching")&&X.__abortController instanceof Iq}async fetch(Z,X={}){let{allowStale:Q=this.allowStale,updateAgeOnGet:J=this.updateAgeOnGet,noDeleteOnStaleGet:$=this.noDeleteOnStaleGet,ttl:Y=this.ttl,noDisposeOnSet:q=this.noDisposeOnSet,size:K=0,sizeCalculation:W=this.sizeCalculation,noUpdateTTL:V=this.noUpdateTTL,noDeleteOnFetchRejection:U=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:H=this.allowStaleOnFetchRejection,ignoreFetchAbort:x=this.ignoreFetchAbort,allowStaleOnFetchAbort:M=this.allowStaleOnFetchAbort,context:F,forceRefresh:D=!1,status:C,signal:j}=X;if(!this.#_){if(C)C.fetch="get";return this.get(Z,{allowStale:Q,updateAgeOnGet:J,noDeleteOnStaleGet:$,status:C})}let I={allowStale:Q,updateAgeOnGet:J,noDeleteOnStaleGet:$,ttl:Y,noDisposeOnSet:q,size:K,sizeCalculation:W,noUpdateTTL:V,noDeleteOnFetchRejection:U,allowStaleOnFetchRejection:H,allowStaleOnFetchAbort:M,ignoreFetchAbort:x,status:C,signal:j},v=this.#G.get(Z);if(v===void 0){if(C)C.fetch="miss";let S=this.#h(Z,v,I,F);return S.__returned=S}else{let S=this.#q[v];if(this.#V(S)){let y=Q&&S.__staleWhileFetching!==void 0;if(C){if(C.fetch="inflight",y)C.returnedStale=!0}return y?S.__staleWhileFetching:S.__returned=S}let c=this.#O(v);if(!D&&!c){if(C)C.fetch="hit";if(this.#b(v),J)this.#S(v);if(C)this.#v(C,v);return S}let Z0=this.#h(Z,v,I,F),A=Z0.__staleWhileFetching!==void 0&&Q;if(C){if(C.fetch=c?"stale":"refresh",A&&c)C.returnedStale=!0}return A?Z0.__staleWhileFetching:Z0.__returned=Z0}}async forceFetch(Z,X={}){let Q=await this.fetch(Z,X);if(Q===void 0)throw new Error("fetch() returned undefined");return Q}memo(Z,X={}){let Q=this.#B;if(!Q)throw new Error("no memoMethod provided to constructor");let{context:J,forceRefresh:$,...Y}=X,q=this.get(Z,Y);if(!$&&q!==void 0)return q;let K=Q(Z,q,{options:Y,context:J});return this.set(Z,K,Y),K}get(Z,X={}){let{allowStale:Q=this.allowStale,updateAgeOnGet:J=this.updateAgeOnGet,noDeleteOnStaleGet:$=this.noDeleteOnStaleGet,status:Y}=X,q=this.#G.get(Z);if(q!==void 0){let K=this.#q[q],W=this.#V(K);if(Y)this.#v(Y,q);if(this.#O(q)){if(Y)Y.get="stale";if(!W){if(!$)this.#T(Z,"expire");if(Y&&Q)Y.returnedStale=!0;return Q?K:void 0}else{if(Y&&Q&&K.__staleWhileFetching!==void 0)Y.returnedStale=!0;return Q?K.__staleWhileFetching:void 0}}else{if(Y)Y.get="hit";if(W)return K.__staleWhileFetching;if(this.#b(q),J)this.#S(q);return K}}else if(Y)Y.get="miss"}#d(Z,X){this.#w[X]=Z,this.#L[Z]=X}#b(Z){if(Z!==this.#F){if(Z===this.#M)this.#M=this.#L[Z];else this.#d(this.#w[Z],this.#L[Z]);this.#d(this.#F,Z),this.#F=Z}}delete(Z){return this.#T(Z,"delete")}#T(Z,X){let Q=!1;if(this.#K!==0){let J=this.#G.get(Z);if(J!==void 0){if(this.#D?.[J])clearTimeout(this.#D?.[J]),this.#D[J]=void 0;if(Q=!0,this.#K===1)this.#l(X);else{this.#m(J);let $=this.#q[J];if(this.#V($))$.__abortController.abort(new Error("deleted"));else if(this.#j||this.#J){if(this.#j)this.#$?.($,Z,X);if(this.#J)this.#N?.push([$,Z,X])}if(this.#G.delete(Z),this.#W[J]=void 0,this.#q[J]=void 0,J===this.#F)this.#F=this.#w[J];else if(J===this.#M)this.#M=this.#L[J];else{let Y=this.#w[J];this.#L[Y]=this.#L[J];let q=this.#L[J];this.#w[q]=this.#w[J]}this.#K--,this.#I.push(J)}}}if(this.#J&&this.#N?.length){let J=this.#N,$;while($=J?.shift())this.#Y?.(...$)}return Q}clear(){return this.#l("delete")}#l(Z){for(let X of this.#A({allowStale:!0})){let Q=this.#q[X];if(this.#V(Q))Q.__abortController.abort(new Error("deleted"));else{let J=this.#W[X];if(this.#j)this.#$?.(Q,J,Z);if(this.#J)this.#N?.push([Q,J,Z])}}if(this.#G.clear(),this.#q.fill(void 0),this.#W.fill(void 0),this.#x&&this.#R){this.#x.fill(0),this.#R.fill(0);for(let X of this.#D??[])if(X!==void 0)clearTimeout(X);this.#D?.fill(void 0)}if(this.#C)this.#C.fill(0);if(this.#M=0,this.#F=0,this.#I.length=0,this.#H=0,this.#K=0,this.#J&&this.#N){let X=this.#N,Q;while(Q=X?.shift())this.#Y?.(...Q)}}}import{posix as zZ0,win32 as mG}from"node:path";import{fileURLToPath as VZ0}from"node:url";import{lstatSync as UZ0,readdir as GZ0,readdirSync as HZ0,readlinkSync as xZ0,realpathSync as BZ0}from"fs";import*as MZ0 from"node:fs";import{lstat as NZ0,readdir as DZ0,readlink as LZ0,realpath as jZ0}from"node:fs/promises";import{EventEmitter as vG}from"node:events";import nO from"node:stream";import{StringDecoder as e90}from"node:string_decoder";var pO=typeof process==="object"&&process?process:{stdout:null,stderr:null},ZZ0=(Z)=>!!Z&&typeof Z==="object"&&(Z instanceof qZ||Z instanceof nO||XZ0(Z)||QZ0(Z)),XZ0=(Z)=>!!Z&&typeof Z==="object"&&Z instanceof vG&&typeof Z.pipe==="function"&&Z.pipe!==nO.Writable.prototype.pipe,QZ0=(Z)=>!!Z&&typeof Z==="object"&&Z instanceof vG&&typeof Z.write==="function"&&typeof Z.end==="function",K5=Symbol("EOF"),W5=Symbol("maybeEmitEnd"),Z9=Symbol("emittedEnd"),_q=Symbol("emittingEnd"),uQ=Symbol("emittedError"),Sq=Symbol("closed"),lO=Symbol("read"),Tq=Symbol("flush"),iO=Symbol("flushChunk"),t6=Symbol("encoding"),k3=Symbol("decoder"),x8=Symbol("flowing"),hQ=Symbol("paused"),f3=Symbol("resume"),B8=Symbol("buffer"),$4=Symbol("pipes"),M8=Symbol("bufferLength"),SG=Symbol("bufferPush"),Pq=Symbol("bufferShift"),h8=Symbol("objectMode"),u2=Symbol("destroyed"),TG=Symbol("error"),PG=Symbol("emitData"),oO=Symbol("emitEnd"),AG=Symbol("emitEnd2"),C7=Symbol("async"),EG=Symbol("abort"),Aq=Symbol("aborted"),dQ=Symbol("signal"),YZ=Symbol("dataListeners"),s4=Symbol("discarded"),pQ=(Z)=>Promise.resolve().then(Z),JZ0=(Z)=>Z(),$Z0=(Z)=>Z==="end"||Z==="finish"||Z==="prefinish",YZ0=(Z)=>Z instanceof ArrayBuffer||!!Z&&typeof Z==="object"&&Z.constructor&&Z.constructor.name==="ArrayBuffer"&&Z.byteLength>=0,qZ0=(Z)=>!Buffer.isBuffer(Z)&&ArrayBuffer.isView(Z);class kG{src;dest;opts;ondrain;constructor(Z,X,Q){this.src=Z,this.dest=X,this.opts=Q,this.ondrain=()=>Z[f3](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(Z){}end(){if(this.unpipe(),this.opts.end)this.dest.end()}}class sO extends kG{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(Z,X,Q){super(Z,X,Q);this.proxyErrors=(J)=>X.emit("error",J),Z.on("error",this.proxyErrors)}}var KZ0=(Z)=>!!Z.objectMode,WZ0=(Z)=>!Z.objectMode&&!!Z.encoding&&Z.encoding!=="buffer";class qZ extends vG{[x8]=!1;[hQ]=!1;[$4]=[];[B8]=[];[h8];[t6];[C7];[k3];[K5]=!1;[Z9]=!1;[_q]=!1;[Sq]=!1;[uQ]=null;[M8]=0;[u2]=!1;[dQ];[Aq]=!1;[YZ]=0;[s4]=!1;writable=!0;readable=!0;constructor(...Z){let X=Z[0]||{};super();if(X.objectMode&&typeof X.encoding==="string")throw new TypeError("Encoding and objectMode may not be used together");if(KZ0(X))this[h8]=!0,this[t6]=null;else if(WZ0(X))this[t6]=X.encoding,this[h8]=!1;else this[h8]=!1,this[t6]=null;if(this[C7]=!!X.async,this[k3]=this[t6]?new e90(this[t6]):null,X&&X.debugExposeBuffer===!0)Object.defineProperty(this,"buffer",{get:()=>this[B8]});if(X&&X.debugExposePipes===!0)Object.defineProperty(this,"pipes",{get:()=>this[$4]});let{signal:Q}=X;if(Q)if(this[dQ]=Q,Q.aborted)this[EG]();else Q.addEventListener("abort",()=>this[EG]())}get bufferLength(){return this[M8]}get encoding(){return this[t6]}set encoding(Z){throw new Error("Encoding must be set at instantiation time")}setEncoding(Z){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[h8]}set objectMode(Z){throw new Error("objectMode must be set at instantiation time")}get["async"](){return this[C7]}set["async"](Z){this[C7]=this[C7]||!!Z}[EG](){this[Aq]=!0,this.emit("abort",this[dQ]?.reason),this.destroy(this[dQ]?.reason)}get aborted(){return this[Aq]}set aborted(Z){}write(Z,X,Q){if(this[Aq])return!1;if(this[K5])throw new Error("write after end");if(this[u2])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;if(typeof X==="function")Q=X,X="utf8";if(!X)X="utf8";let J=this[C7]?pQ:JZ0;if(!this[h8]&&!Buffer.isBuffer(Z)){if(qZ0(Z))Z=Buffer.from(Z.buffer,Z.byteOffset,Z.byteLength);else if(YZ0(Z))Z=Buffer.from(Z);else if(typeof Z!=="string")throw new Error("Non-contiguous data written to non-objectMode stream")}if(this[h8]){if(this[x8]&&this[M8]!==0)this[Tq](!0);if(this[x8])this.emit("data",Z);else this[SG](Z);if(this[M8]!==0)this.emit("readable");if(Q)J(Q);return this[x8]}if(!Z.length){if(this[M8]!==0)this.emit("readable");if(Q)J(Q);return this[x8]}if(typeof Z==="string"&&!(X===this[t6]&&!this[k3]?.lastNeed))Z=Buffer.from(Z,X);if(Buffer.isBuffer(Z)&&this[t6])Z=this[k3].write(Z);if(this[x8]&&this[M8]!==0)this[Tq](!0);if(this[x8])this.emit("data",Z);else this[SG](Z);if(this[M8]!==0)this.emit("readable");if(Q)J(Q);return this[x8]}read(Z){if(this[u2])return null;if(this[s4]=!1,this[M8]===0||Z===0||Z&&Z>this[M8])return this[W5](),null;if(this[h8])Z=null;if(this[B8].length>1&&!this[h8])this[B8]=[this[t6]?this[B8].join(""):Buffer.concat(this[B8],this[M8])];let X=this[lO](Z||null,this[B8][0]);return this[W5](),X}[lO](Z,X){if(this[h8])this[Pq]();else{let Q=X;if(Z===Q.length||Z===null)this[Pq]();else if(typeof Q==="string")this[B8][0]=Q.slice(Z),X=Q.slice(0,Z),this[M8]-=Z;else this[B8][0]=Q.subarray(Z),X=Q.subarray(0,Z),this[M8]-=Z}if(this.emit("data",X),!this[B8].length&&!this[K5])this.emit("drain");return X}end(Z,X,Q){if(typeof Z==="function")Q=Z,Z=void 0;if(typeof X==="function")Q=X,X="utf8";if(Z!==void 0)this.write(Z,X);if(Q)this.once("end",Q);if(this[K5]=!0,this.writable=!1,this[x8]||!this[hQ])this[W5]();return this}[f3](){if(this[u2])return;if(!this[YZ]&&!this[$4].length)this[s4]=!0;if(this[hQ]=!1,this[x8]=!0,this.emit("resume"),this[B8].length)this[Tq]();else if(this[K5])this[W5]();else this.emit("drain")}resume(){return this[f3]()}pause(){this[x8]=!1,this[hQ]=!0,this[s4]=!1}get destroyed(){return this[u2]}get flowing(){return this[x8]}get paused(){return this[hQ]}[SG](Z){if(this[h8])this[M8]+=1;else this[M8]+=Z.length;this[B8].push(Z)}[Pq](){if(this[h8])this[M8]-=1;else this[M8]-=this[B8][0].length;return this[B8].shift()}[Tq](Z=!1){do;while(this[iO](this[Pq]())&&this[B8].length);if(!Z&&!this[B8].length&&!this[K5])this.emit("drain")}[iO](Z){return this.emit("data",Z),this[x8]}pipe(Z,X){if(this[u2])return Z;this[s4]=!1;let Q=this[Z9];if(X=X||{},Z===pO.stdout||Z===pO.stderr)X.end=!1;else X.end=X.end!==!1;if(X.proxyErrors=!!X.proxyErrors,Q){if(X.end)Z.end()}else if(this[$4].push(!X.proxyErrors?new kG(this,Z,X):new sO(this,Z,X)),this[C7])pQ(()=>this[f3]());else this[f3]();return Z}unpipe(Z){let X=this[$4].find((Q)=>Q.dest===Z);if(X){if(this[$4].length===1){if(this[x8]&&this[YZ]===0)this[x8]=!1;this[$4]=[]}else this[$4].splice(this[$4].indexOf(X),1);X.unpipe()}}addListener(Z,X){return this.on(Z,X)}on(Z,X){let Q=super.on(Z,X);if(Z==="data"){if(this[s4]=!1,this[YZ]++,!this[$4].length&&!this[x8])this[f3]()}else if(Z==="readable"&&this[M8]!==0)super.emit("readable");else if($Z0(Z)&&this[Z9])super.emit(Z),this.removeAllListeners(Z);else if(Z==="error"&&this[uQ]){let J=X;if(this[C7])pQ(()=>J.call(this,this[uQ]));else J.call(this,this[uQ])}return Q}removeListener(Z,X){return this.off(Z,X)}off(Z,X){let Q=super.off(Z,X);if(Z==="data"){if(this[YZ]=this.listeners("data").length,this[YZ]===0&&!this[s4]&&!this[$4].length)this[x8]=!1}return Q}removeAllListeners(Z){let X=super.removeAllListeners(Z);if(Z==="data"||Z===void 0){if(this[YZ]=0,!this[s4]&&!this[$4].length)this[x8]=!1}return X}get emittedEnd(){return this[Z9]}[W5](){if(!this[_q]&&!this[Z9]&&!this[u2]&&this[B8].length===0&&this[K5]){if(this[_q]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Sq])this.emit("close");this[_q]=!1}}emit(Z,...X){let Q=X[0];if(Z!=="error"&&Z!=="close"&&Z!==u2&&this[u2])return!1;else if(Z==="data")return!this[h8]&&!Q?!1:this[C7]?(pQ(()=>this[PG](Q)),!0):this[PG](Q);else if(Z==="end")return this[oO]();else if(Z==="close"){if(this[Sq]=!0,!this[Z9]&&!this[u2])return!1;let $=super.emit("close");return this.removeAllListeners("close"),$}else if(Z==="error"){this[uQ]=Q,super.emit(TG,Q);let $=!this[dQ]||this.listeners("error").length?super.emit("error",Q):!1;return this[W5](),$}else if(Z==="resume"){let $=super.emit("resume");return this[W5](),$}else if(Z==="finish"||Z==="prefinish"){let $=super.emit(Z);return this.removeAllListeners(Z),$}let J=super.emit(Z,...X);return this[W5](),J}[PG](Z){for(let Q of this[$4])if(Q.dest.write(Z)===!1)this.pause();let X=this[s4]?!1:super.emit("data",Z);return this[W5](),X}[oO](){if(this[Z9])return!1;return this[Z9]=!0,this.readable=!1,this[C7]?(pQ(()=>this[AG]()),!0):this[AG]()}[AG](){if(this[k3]){let X=this[k3].end();if(X){for(let Q of this[$4])Q.dest.write(X);if(!this[s4])super.emit("data",X)}}for(let X of this[$4])X.end();let Z=super.emit("end");return this.removeAllListeners("end"),Z}async collect(){let Z=Object.assign([],{dataLength:0});if(!this[h8])Z.dataLength=0;let X=this.promise();return this.on("data",(Q)=>{if(Z.push(Q),!this[h8])Z.dataLength+=Q.length}),await X,Z}async concat(){if(this[h8])throw new Error("cannot concat in objectMode");let Z=await this.collect();return this[t6]?Z.join(""):Buffer.concat(Z,Z.dataLength)}async promise(){return new Promise((Z,X)=>{this.on(u2,()=>X(new Error("stream destroyed"))),this.on("error",(Q)=>X(Q)),this.on("end",()=>Z())})}[Symbol.asyncIterator](){this[s4]=!1;let Z=!1,X=async()=>{return this.pause(),Z=!0,{value:void 0,done:!0}};return{next:()=>{if(Z)return X();let J=this.read();if(J!==null)return Promise.resolve({done:!1,value:J});if(this[K5])return X();let $,Y,q=(U)=>{this.off("data",K),this.off("end",W),this.off(u2,V),X(),Y(U)},K=(U)=>{this.off("error",q),this.off("end",W),this.off(u2,V),this.pause(),$({value:U,done:!!this[K5]})},W=()=>{this.off("error",q),this.off("data",K),this.off(u2,V),X(),$({done:!0,value:void 0})},V=()=>q(new Error("stream destroyed"));return new Promise((U,H)=>{Y=H,$=U,this.once(u2,V),this.once("error",q),this.once("end",W),this.once("data",K)})},throw:X,return:X,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[s4]=!1;let Z=!1,X=()=>{return this.pause(),this.off(TG,X),this.off(u2,X),this.off("end",X),Z=!0,{done:!0,value:void 0}},Q=()=>{if(Z)return X();let J=this.read();return J===null?X():{done:!1,value:J}};return this.once("end",X),this.once(TG,X),this.once(u2,X),{next:Q,throw:X,return:X,[Symbol.iterator](){return this}}}destroy(Z){if(this[u2]){if(Z)this.emit("error",Z);else this.emit(u2);return this}this[u2]=!0,this[s4]=!0,this[B8].length=0,this[M8]=0;let X=this;if(typeof X.close==="function"&&!this[Sq])X.close();if(Z)this.emit("error",Z);else this.emit(u2);return this}static get isStream(){return ZZ0}}var FZ0=BZ0.native,iQ={lstatSync:UZ0,readdir:GZ0,readdirSync:HZ0,readlinkSync:xZ0,realpathSync:FZ0,promises:{lstat:NZ0,readdir:DZ0,readlink:LZ0,realpath:jZ0}},ZI=(Z)=>!Z||Z===iQ||Z===MZ0?iQ:{...iQ,...Z,promises:{...iQ.promises,...Z.promises||{}}},XI=/^\\\\\?\\([a-z]:)\\?$/i,wZ0=(Z)=>Z.replace(/\//g,"\\").replace(XI,"$1\\"),CZ0=/[\\\/]/,j6=0,QI=1,JI=2,R7=4,$I=6,YI=8,KZ=10,qI=12,L6=15,lQ=~L6,fG=16,aO=32,oQ=64,e6=128,Eq=256,kq=512,rO=oQ|e6|kq,RZ0=1023,bG=(Z)=>Z.isFile()?YI:Z.isDirectory()?R7:Z.isSymbolicLink()?KZ:Z.isCharacterDevice()?JI:Z.isBlockDevice()?$I:Z.isSocket()?qI:Z.isFIFO()?QI:j6,tO=new $Z({max:4096}),nQ=(Z)=>{let X=tO.get(Z);if(X)return X;let Q=Z.normalize("NFKD");return tO.set(Z,Q),Q},eO=new $Z({max:4096}),vq=(Z)=>{let X=eO.get(Z);if(X)return X;let Q=nQ(Z.toLowerCase());return eO.set(Z,Q),Q};class yG extends $Z{constructor(){super({max:256})}}class KI extends $Z{constructor(Z=16384){super({maxSize:Z,sizeCalculation:(X)=>X.length+1})}}var WI=Symbol("PathScurry setAsCwd");class Y4{name;root;roots;parent;nocase;isCWD=!1;#Z;#Q;get dev(){return this.#Q}#$;get mode(){return this.#$}#X;get nlink(){return this.#X}#Y;get uid(){return this.#Y}#z;get gid(){return this.#z}#B;get rdev(){return this.#B}#U;get blksize(){return this.#U}#K;get ino(){return this.#K}#H;get size(){return this.#H}#G;get blocks(){return this.#G}#W;get atimeMs(){return this.#W}#q;get mtimeMs(){return this.#q}#L;get ctimeMs(){return this.#L}#w;get birthtimeMs(){return this.#w}#M;get atime(){return this.#M}#F;get mtime(){return this.#F}#I;get ctime(){return this.#I}#N;get birthtime(){return this.#N}#C;#R;#x;#D;#j;#_;#J;#k;#E;#S;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(Z,X=j6,Q,J,$,Y,q){if(this.name=Z,this.#C=$?vq(Z):nQ(Z),this.#J=X&RZ0,this.nocase=$,this.roots=J,this.root=Q||this,this.#k=Y,this.#x=q.fullpath,this.#j=q.relative,this.#_=q.relativePosix,this.parent=q.parent,this.parent)this.#Z=this.parent.#Z;else this.#Z=ZI(q.fs)}depth(){if(this.#R!==void 0)return this.#R;if(!this.parent)return this.#R=0;return this.#R=this.parent.depth()+1}childrenCache(){return this.#k}resolve(Z){if(!Z)return this;let X=this.getRootString(Z),J=Z.substring(X.length).split(this.splitSep);return X?this.getRoot(X).#v(J):this.#v(J)}#v(Z){let X=this;for(let Q of Z)X=X.child(Q);return X}children(){let Z=this.#k.get(this);if(Z)return Z;let X=Object.assign([],{provisional:0});return this.#k.set(this,X),this.#J&=~fG,X}child(Z,X){if(Z===""||Z===".")return this;if(Z==="..")return this.parent||this;let Q=this.children(),J=this.nocase?vq(Z):nQ(Z);for(let K of Q)if(K.#C===J)return K;let $=this.parent?this.sep:"",Y=this.#x?this.#x+$+Z:void 0,q=this.newChild(Z,j6,{...X,parent:this,fullpath:Y});if(!this.canReaddir())q.#J|=e6;return Q.push(q),q}relative(){if(this.isCWD)return"";if(this.#j!==void 0)return this.#j;let Z=this.name,X=this.parent;if(!X)return this.#j=this.name;let Q=X.relative();return Q+(!Q||!X.parent?"":this.sep)+Z}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#_!==void 0)return this.#_;let Z=this.name,X=this.parent;if(!X)return this.#_=this.fullpathPosix();let Q=X.relativePosix();return Q+(!Q||!X.parent?"":"/")+Z}fullpath(){if(this.#x!==void 0)return this.#x;let Z=this.name,X=this.parent;if(!X)return this.#x=this.name;let J=X.fullpath()+(!X.parent?"":this.sep)+Z;return this.#x=J}fullpathPosix(){if(this.#D!==void 0)return this.#D;if(this.sep==="/")return this.#D=this.fullpath();if(!this.parent){let J=this.fullpath().replace(/\\/g,"/");if(/^[a-z]:\//i.test(J))return this.#D=`//?/${J}`;else return this.#D=J}let Z=this.parent,X=Z.fullpathPosix(),Q=X+(!X||!Z.parent?"":"/")+this.name;return this.#D=Q}isUnknown(){return(this.#J&L6)===j6}isType(Z){return this[`is${Z}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#J&L6)===YI}isDirectory(){return(this.#J&L6)===R7}isCharacterDevice(){return(this.#J&L6)===JI}isBlockDevice(){return(this.#J&L6)===$I}isFIFO(){return(this.#J&L6)===QI}isSocket(){return(this.#J&L6)===qI}isSymbolicLink(){return(this.#J&KZ)===KZ}lstatCached(){return this.#J&aO?this:void 0}readlinkCached(){return this.#E}realpathCached(){return this.#S}readdirCached(){let Z=this.children();return Z.slice(0,Z.provisional)}canReadlink(){if(this.#E)return!0;if(!this.parent)return!1;let Z=this.#J&L6;return!(Z!==j6&&Z!==KZ||this.#J&Eq||this.#J&e6)}calledReaddir(){return!!(this.#J&fG)}isENOENT(){return!!(this.#J&e6)}isNamed(Z){return!this.nocase?this.#C===nQ(Z):this.#C===vq(Z)}async readlink(){let Z=this.#E;if(Z)return Z;if(!this.canReadlink())return;if(!this.parent)return;try{let X=await this.#Z.promises.readlink(this.fullpath()),Q=(await this.parent.realpath())?.resolve(X);if(Q)return this.#E=Q}catch(X){this.#A(X.code);return}}readlinkSync(){let Z=this.#E;if(Z)return Z;if(!this.canReadlink())return;if(!this.parent)return;try{let X=this.#Z.readlinkSync(this.fullpath()),Q=this.parent.realpathSync()?.resolve(X);if(Q)return this.#E=Q}catch(X){this.#A(X.code);return}}#y(Z){this.#J|=fG;for(let X=Z.provisional;X<Z.length;X++){let Q=Z[X];if(Q)Q.#O()}}#O(){if(this.#J&e6)return;this.#J=(this.#J|e6)&lQ,this.#p()}#p(){let Z=this.children();Z.provisional=0;for(let X of Z)X.#O()}#m(){this.#J|=kq,this.#f()}#f(){if(this.#J&oQ)return;let Z=this.#J;if((Z&L6)===R7)Z&=lQ;this.#J=Z|oQ,this.#p()}#g(Z=""){if(Z==="ENOTDIR"||Z==="EPERM")this.#f();else if(Z==="ENOENT")this.#O();else this.children().provisional=0}#P(Z=""){if(Z==="ENOTDIR")this.parent.#f();else if(Z==="ENOENT")this.#O()}#A(Z=""){let X=this.#J;if(X|=Eq,Z==="ENOENT")X|=e6;if(Z==="EINVAL"||Z==="UNKNOWN")X&=lQ;if(this.#J=X,Z==="ENOTDIR"&&this.parent)this.parent.#f()}#c(Z,X){return this.#h(Z,X)||this.#u(Z,X)}#u(Z,X){let Q=bG(Z),J=this.newChild(Z.name,Q,{parent:this}),$=J.#J&L6;if($!==R7&&$!==KZ&&$!==j6)J.#J|=oQ;return X.unshift(J),X.provisional++,J}#h(Z,X){for(let Q=X.provisional;Q<X.length;Q++){let J=X[Q];if((this.nocase?vq(Z.name):nQ(Z.name))!==J.#C)continue;return this.#V(Z,J,Q,X)}}#V(Z,X,Q,J){let $=X.name;if(X.#J=X.#J&lQ|bG(Z),$!==Z.name)X.name=Z.name;if(Q!==J.provisional){if(Q===J.length-1)J.pop();else J.splice(Q,1);J.unshift(X)}return J.provisional++,X}async lstat(){if((this.#J&e6)===0)try{return this.#d(await this.#Z.promises.lstat(this.fullpath())),this}catch(Z){this.#P(Z.code)}}lstatSync(){if((this.#J&e6)===0)try{return this.#d(this.#Z.lstatSync(this.fullpath())),this}catch(Z){this.#P(Z.code)}}#d(Z){let{atime:X,atimeMs:Q,birthtime:J,birthtimeMs:$,blksize:Y,blocks:q,ctime:K,ctimeMs:W,dev:V,gid:U,ino:H,mode:x,mtime:M,mtimeMs:F,nlink:D,rdev:C,size:j,uid:I}=Z;this.#M=X,this.#W=Q,this.#N=J,this.#w=$,this.#U=Y,this.#G=q,this.#I=K,this.#L=W,this.#Q=V,this.#z=U,this.#K=H,this.#$=x,this.#F=M,this.#q=F,this.#X=D,this.#B=C,this.#H=j,this.#Y=I;let v=bG(Z);if(this.#J=this.#J&lQ|v|aO,v!==j6&&v!==R7&&v!==KZ)this.#J|=oQ}#b=[];#T=!1;#l(Z){this.#T=!1;let X=this.#b.slice();this.#b.length=0,X.forEach((Q)=>Q(null,Z))}readdirCB(Z,X=!1){if(!this.canReaddir()){if(X)Z(null,[]);else queueMicrotask(()=>Z(null,[]));return}let Q=this.children();if(this.calledReaddir()){let $=Q.slice(0,Q.provisional);if(X)Z(null,$);else queueMicrotask(()=>Z(null,$));return}if(this.#b.push(Z),this.#T)return;this.#T=!0;let J=this.fullpath();this.#Z.readdir(J,{withFileTypes:!0},($,Y)=>{if($)this.#g($.code),Q.provisional=0;else{for(let q of Y)this.#c(q,Q);this.#y(Q)}this.#l(Q.slice(0,Q.provisional));return})}#i;async readdir(){if(!this.canReaddir())return[];let Z=this.children();if(this.calledReaddir())return Z.slice(0,Z.provisional);let X=this.fullpath();if(this.#i)await this.#i;else{let Q=()=>{};this.#i=new Promise((J)=>Q=J);try{for(let J of await this.#Z.promises.readdir(X,{withFileTypes:!0}))this.#c(J,Z);this.#y(Z)}catch(J){this.#g(J.code),Z.provisional=0}this.#i=void 0,Q()}return Z.slice(0,Z.provisional)}readdirSync(){if(!this.canReaddir())return[];let Z=this.children();if(this.calledReaddir())return Z.slice(0,Z.provisional);let X=this.fullpath();try{for(let Q of this.#Z.readdirSync(X,{withFileTypes:!0}))this.#c(Q,Z);this.#y(Z)}catch(Q){this.#g(Q.code),Z.provisional=0}return Z.slice(0,Z.provisional)}canReaddir(){if(this.#J&rO)return!1;let Z=L6&this.#J;if(!(Z===j6||Z===R7||Z===KZ))return!1;return!0}shouldWalk(Z,X){return(this.#J&R7)===R7&&!(this.#J&rO)&&!Z.has(this)&&(!X||X(this))}async realpath(){if(this.#S)return this.#S;if((kq|Eq|e6)&this.#J)return;try{let Z=await this.#Z.promises.realpath(this.fullpath());return this.#S=this.resolve(Z)}catch(Z){this.#m()}}realpathSync(){if(this.#S)return this.#S;if((kq|Eq|e6)&this.#J)return;try{let Z=this.#Z.realpathSync(this.fullpath());return this.#S=this.resolve(Z)}catch(Z){this.#m()}}[WI](Z){if(Z===this)return;Z.isCWD=!1,this.isCWD=!0;let X=new Set([]),Q=[],J=this;while(J&&J.parent)X.add(J),J.#j=Q.join(this.sep),J.#_=Q.join("/"),J=J.parent,Q.push("..");J=Z;while(J&&J.parent&&!X.has(J))J.#j=void 0,J.#_=void 0,J=J.parent}}class fq extends Y4{sep="\\";splitSep=CZ0;constructor(Z,X=j6,Q,J,$,Y,q){super(Z,X,Q,J,$,Y,q)}newChild(Z,X=j6,Q={}){return new fq(Z,X,this.root,this.roots,this.nocase,this.childrenCache(),Q)}getRootString(Z){return mG.parse(Z).root}getRoot(Z){if(Z=wZ0(Z.toUpperCase()),Z===this.root.name)return this.root;for(let[X,Q]of Object.entries(this.roots))if(this.sameRoot(Z,X))return this.roots[Z]=Q;return this.roots[Z]=new sQ(Z,this).root}sameRoot(Z,X=this.root.name){return Z=Z.toUpperCase().replace(/\//g,"\\").replace(XI,"$1\\"),Z===X}}class bq extends Y4{splitSep="/";sep="/";constructor(Z,X=j6,Q,J,$,Y,q){super(Z,X,Q,J,$,Y,q)}getRootString(Z){return Z.startsWith("/")?"/":""}getRoot(Z){return this.root}newChild(Z,X=j6,Q={}){return new bq(Z,X,this.root,this.roots,this.nocase,this.childrenCache(),Q)}}class gG{root;rootPath;roots;cwd;#Z;#Q;#$;nocase;#X;constructor(Z=process.cwd(),X,Q,{nocase:J,childrenCacheSize:$=16384,fs:Y=iQ}={}){if(this.#X=ZI(Y),Z instanceof URL||Z.startsWith("file://"))Z=VZ0(Z);let q=X.resolve(Z);this.roots=Object.create(null),this.rootPath=this.parseRootPath(q),this.#Z=new yG,this.#Q=new yG,this.#$=new KI($);let K=q.substring(this.rootPath.length).split(Q);if(K.length===1&&!K[0])K.pop();if(J===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=J,this.root=this.newRoot(this.#X),this.roots[this.rootPath]=this.root;let W=this.root,V=K.length-1,U=X.sep,H=this.rootPath,x=!1;for(let M of K){let F=V--;W=W.child(M,{relative:new Array(F).fill("..").join(U),relativePosix:new Array(F).fill("..").join("/"),fullpath:H+=(x?"":U)+M}),x=!0}this.cwd=W}depth(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.depth()}childrenCache(){return this.#$}resolve(...Z){let X="";for(let $=Z.length-1;$>=0;$--){let Y=Z[$];if(!Y||Y===".")continue;if(X=X?`${Y}/${X}`:Y,this.isAbsolute(Y))break}let Q=this.#Z.get(X);if(Q!==void 0)return Q;let J=this.cwd.resolve(X).fullpath();return this.#Z.set(X,J),J}resolvePosix(...Z){let X="";for(let $=Z.length-1;$>=0;$--){let Y=Z[$];if(!Y||Y===".")continue;if(X=X?`${Y}/${X}`:Y,this.isAbsolute(Y))break}let Q=this.#Q.get(X);if(Q!==void 0)return Q;let J=this.cwd.resolve(X).fullpathPosix();return this.#Q.set(X,J),J}relative(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.relative()}relativePosix(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.relativePosix()}basename(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.name}dirname(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return(Z.parent||Z).fullpath()}async readdir(Z=this.cwd,X={withFileTypes:!0}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z,Z=this.cwd;let{withFileTypes:Q}=X;if(!Z.canReaddir())return[];else{let J=await Z.readdir();return Q?J:J.map(($)=>$.name)}}readdirSync(Z=this.cwd,X={withFileTypes:!0}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z,Z=this.cwd;let{withFileTypes:Q=!0}=X;if(!Z.canReaddir())return[];else if(Q)return Z.readdirSync();else return Z.readdirSync().map((J)=>J.name)}async lstat(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.lstat()}lstatSync(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.lstatSync()}async readlink(Z=this.cwd,{withFileTypes:X}={withFileTypes:!1}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z.withFileTypes,Z=this.cwd;let Q=await Z.readlink();return X?Q:Q?.fullpath()}readlinkSync(Z=this.cwd,{withFileTypes:X}={withFileTypes:!1}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z.withFileTypes,Z=this.cwd;let Q=Z.readlinkSync();return X?Q:Q?.fullpath()}async realpath(Z=this.cwd,{withFileTypes:X}={withFileTypes:!1}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z.withFileTypes,Z=this.cwd;let Q=await Z.realpath();return X?Q:Q?.fullpath()}realpathSync(Z=this.cwd,{withFileTypes:X}={withFileTypes:!1}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z.withFileTypes,Z=this.cwd;let Q=Z.realpathSync();return X?Q:Q?.fullpath()}async walk(Z=this.cwd,X={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z,Z=this.cwd;let{withFileTypes:Q=!0,follow:J=!1,filter:$,walkFilter:Y}=X,q=[];if(!$||$(Z))q.push(Q?Z:Z.fullpath());let K=new Set,W=(U,H)=>{K.add(U),U.readdirCB((x,M)=>{if(x)return H(x);let F=M.length;if(!F)return H();let D=()=>{if(--F===0)H()};for(let C of M){if(!$||$(C))q.push(Q?C:C.fullpath());if(J&&C.isSymbolicLink())C.realpath().then((j)=>j?.isUnknown()?j.lstat():j).then((j)=>j?.shouldWalk(K,Y)?W(j,D):D());else if(C.shouldWalk(K,Y))W(C,D);else D()}},!0)},V=Z;return new Promise((U,H)=>{W(V,(x)=>{if(x)return H(x);U(q)})})}walkSync(Z=this.cwd,X={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z,Z=this.cwd;let{withFileTypes:Q=!0,follow:J=!1,filter:$,walkFilter:Y}=X,q=[];if(!$||$(Z))q.push(Q?Z:Z.fullpath());let K=new Set([Z]);for(let W of K){let V=W.readdirSync();for(let U of V){if(!$||$(U))q.push(Q?U:U.fullpath());let H=U;if(U.isSymbolicLink()){if(!(J&&(H=U.realpathSync())))continue;if(H.isUnknown())H.lstatSync()}if(H.shouldWalk(K,Y))K.add(H)}}return q}[Symbol.asyncIterator](){return this.iterate()}iterate(Z=this.cwd,X={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z,Z=this.cwd;return this.stream(Z,X)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(Z=this.cwd,X={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z,Z=this.cwd;let{withFileTypes:Q=!0,follow:J=!1,filter:$,walkFilter:Y}=X;if(!$||$(Z))yield Q?Z:Z.fullpath();let q=new Set([Z]);for(let K of q){let W=K.readdirSync();for(let V of W){if(!$||$(V))yield Q?V:V.fullpath();let U=V;if(V.isSymbolicLink()){if(!(J&&(U=V.realpathSync())))continue;if(U.isUnknown())U.lstatSync()}if(U.shouldWalk(q,Y))q.add(U)}}}stream(Z=this.cwd,X={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z,Z=this.cwd;let{withFileTypes:Q=!0,follow:J=!1,filter:$,walkFilter:Y}=X,q=new qZ({objectMode:!0});if(!$||$(Z))q.write(Q?Z:Z.fullpath());let K=new Set,W=[Z],V=0,U=()=>{let H=!1;while(!H){let x=W.shift();if(!x){if(V===0)q.end();return}V++,K.add(x);let M=(D,C,j=!1)=>{if(D)return q.emit("error",D);if(J&&!j){let I=[];for(let v of C)if(v.isSymbolicLink())I.push(v.realpath().then((S)=>S?.isUnknown()?S.lstat():S));if(I.length){Promise.all(I).then(()=>M(null,C,!0));return}}for(let I of C)if(I&&(!$||$(I))){if(!q.write(Q?I:I.fullpath()))H=!0}V--;for(let I of C){let v=I.realpathCached()||I;if(v.shouldWalk(K,Y))W.push(v)}if(H&&!q.flowing)q.once("drain",U);else if(!F)U()},F=!0;x.readdirCB(M,!0),F=!1}};return U(),q}streamSync(Z=this.cwd,X={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof Y4))X=Z,Z=this.cwd;let{withFileTypes:Q=!0,follow:J=!1,filter:$,walkFilter:Y}=X,q=new qZ({objectMode:!0}),K=new Set;if(!$||$(Z))q.write(Q?Z:Z.fullpath());let W=[Z],V=0,U=()=>{let H=!1;while(!H){let x=W.shift();if(!x){if(V===0)q.end();return}V++,K.add(x);let M=x.readdirSync();for(let F of M)if(!$||$(F)){if(!q.write(Q?F:F.fullpath()))H=!0}V--;for(let F of M){let D=F;if(F.isSymbolicLink()){if(!(J&&(D=F.realpathSync())))continue;if(D.isUnknown())D.lstatSync()}if(D.shouldWalk(K,Y))W.push(D)}}if(H&&!q.flowing)q.once("drain",U)};return U(),q}chdir(Z=this.cwd){let X=this.cwd;this.cwd=typeof Z==="string"?this.cwd.resolve(Z):Z,this.cwd[WI](X)}}class sQ extends gG{sep="\\";constructor(Z=process.cwd(),X={}){let{nocase:Q=!0}=X;super(Z,mG,"\\",{...X,nocase:Q});this.nocase=Q;for(let J=this.cwd;J;J=J.parent)J.nocase=this.nocase}parseRootPath(Z){return mG.parse(Z).root.toUpperCase()}newRoot(Z){return new fq(this.rootPath,R7,void 0,this.roots,this.nocase,this.childrenCache(),{fs:Z})}isAbsolute(Z){return Z.startsWith("/")||Z.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(Z)}}class aQ extends gG{sep="/";constructor(Z=process.cwd(),X={}){let{nocase:Q=!1}=X;super(Z,zZ0,"/",{...X,nocase:Q});this.nocase=Q}parseRootPath(Z){return"/"}newRoot(Z){return new bq(this.rootPath,R7,void 0,this.roots,this.nocase,this.childrenCache(),{fs:Z})}isAbsolute(Z){return Z.startsWith("/")}}class mq extends aQ{constructor(Z=process.cwd(),X={}){let{nocase:Q=!0}=X;super(Z,{...X,nocase:Q})}}var mt0=process.platform==="win32"?fq:bq,zI=process.platform==="win32"?sQ:process.platform==="darwin"?mq:aQ;var OZ0=(Z)=>Z.length>=1,IZ0=(Z)=>Z.length>=1;class b3{#Z;#Q;#$;length;#X;#Y;#z;#B;#U;#K;#H=!0;constructor(Z,X,Q,J){if(!OZ0(Z))throw new TypeError("empty pattern list");if(!IZ0(X))throw new TypeError("empty glob list");if(X.length!==Z.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=Z.length,Q<0||Q>=this.length)throw new TypeError("index out of range");if(this.#Z=Z,this.#Q=X,this.#$=Q,this.#X=J,this.#$===0){if(this.isUNC()){let[$,Y,q,K,...W]=this.#Z,[V,U,H,x,...M]=this.#Q;if(W[0]==="")W.shift(),M.shift();let F=[$,Y,q,K,""].join("/"),D=[V,U,H,x,""].join("/");this.#Z=[F,...W],this.#Q=[D,...M],this.length=this.#Z.length}else if(this.isDrive()||this.isAbsolute()){let[$,...Y]=this.#Z,[q,...K]=this.#Q;if(Y[0]==="")Y.shift(),K.shift();let W=$+"/",V=q+"/";this.#Z=[W,...Y],this.#Q=[V,...K],this.length=this.#Z.length}}}pattern(){return this.#Z[this.#$]}isString(){return typeof this.#Z[this.#$]==="string"}isGlobstar(){return this.#Z[this.#$]===c2}isRegExp(){return this.#Z[this.#$]instanceof RegExp}globString(){return this.#z=this.#z||(this.#$===0?this.isAbsolute()?this.#Q[0]+this.#Q.slice(1).join("/"):this.#Q.join("/"):this.#Q.slice(this.#$).join("/"))}hasMore(){return this.length>this.#$+1}rest(){if(this.#Y!==void 0)return this.#Y;if(!this.hasMore())return this.#Y=null;return this.#Y=new b3(this.#Z,this.#Q,this.#$+1,this.#X),this.#Y.#K=this.#K,this.#Y.#U=this.#U,this.#Y.#B=this.#B,this.#Y}isUNC(){let Z=this.#Z;return this.#U!==void 0?this.#U:this.#U=this.#X==="win32"&&this.#$===0&&Z[0]===""&&Z[1]===""&&typeof Z[2]==="string"&&!!Z[2]&&typeof Z[3]==="string"&&!!Z[3]}isDrive(){let Z=this.#Z;return this.#B!==void 0?this.#B:this.#B=this.#X==="win32"&&this.#$===0&&this.length>1&&typeof Z[0]==="string"&&/^[a-z]:$/i.test(Z[0])}isAbsolute(){let Z=this.#Z;return this.#K!==void 0?this.#K:this.#K=Z[0]===""&&Z.length>1||this.isDrive()||this.isUNC()}root(){let Z=this.#Z[0];return typeof Z==="string"&&this.isAbsolute()&&this.#$===0?Z:""}checkFollowGlobstar(){return!(this.#$===0||!this.isGlobstar()||!this.#H)}markFollowGlobstar(){if(this.#$===0||!this.isGlobstar()||!this.#H)return!1;return this.#H=!1,!0}}var _Z0=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class rQ{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(Z,{nobrace:X,nocase:Q,noext:J,noglobstar:$,platform:Y=_Z0}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=Y,this.mmopts={dot:!0,nobrace:X,nocase:Q,noext:J,noglobstar:$,optimizationLevel:2,platform:Y,nocomment:!0,nonegate:!0};for(let q of Z)this.add(q)}add(Z){let X=new D6(Z,this.mmopts);for(let Q=0;Q<X.set.length;Q++){let J=X.set[Q],$=X.globParts[Q];if(!J||!$)throw new Error("invalid pattern object");while(J[0]==="."&&$[0]===".")J.shift(),$.shift();let Y=new b3(J,$,0,this.platform),q=new D6(Y.globString(),this.mmopts),K=$[$.length-1]==="**",W=Y.isAbsolute();if(W)this.absolute.push(q);else this.relative.push(q);if(K)if(W)this.absoluteChildren.push(q);else this.relativeChildren.push(q)}}ignored(Z){let X=Z.fullpath(),Q=`${X}/`,J=Z.relative()||".",$=`${J}/`;for(let Y of this.relative)if(Y.match(J)||Y.match($))return!0;for(let Y of this.absolute)if(Y.match(X)||Y.match(Q))return!0;return!1}childrenIgnored(Z){let X=Z.fullpath()+"/",Q=(Z.relative()||".")+"/";for(let J of this.relativeChildren)if(J.match(Q))return!0;for(let J of this.absoluteChildren)if(J.match(X))return!0;return!1}}class cG{store;constructor(Z=new Map){this.store=Z}copy(){return new cG(new Map(this.store))}hasWalked(Z,X){return this.store.get(Z.fullpath())?.has(X.globString())}storeWalked(Z,X){let Q=Z.fullpath(),J=this.store.get(Q);if(J)J.add(X.globString());else this.store.set(Q,new Set([X.globString()]))}}class VI{store=new Map;add(Z,X,Q){let J=(X?2:0)|(Q?1:0),$=this.store.get(Z);this.store.set(Z,$===void 0?J:J&$)}entries(){return[...this.store.entries()].map(([Z,X])=>[Z,!!(X&2),!!(X&1)])}}class UI{store=new Map;add(Z,X){if(!Z.canReaddir())return;let Q=this.store.get(Z);if(Q){if(!Q.find((J)=>J.globString()===X.globString()))Q.push(X)}else this.store.set(Z,[X])}get(Z){let X=this.store.get(Z);if(!X)throw new Error("attempting to walk unknown path");return X}entries(){return this.keys().map((Z)=>[Z,this.store.get(Z)])}keys(){return[...this.store.keys()].filter((Z)=>Z.canReaddir())}}class tQ{hasWalkedCache;matches=new VI;subwalks=new UI;patterns;follow;dot;opts;constructor(Z,X){this.opts=Z,this.follow=!!Z.follow,this.dot=!!Z.dot,this.hasWalkedCache=X?X.copy():new cG}processPatterns(Z,X){this.patterns=X;let Q=X.map((J)=>[Z,J]);for(let[J,$]of Q){this.hasWalkedCache.storeWalked(J,$);let Y=$.root(),q=$.isAbsolute()&&this.opts.absolute!==!1;if(Y){J=J.resolve(Y==="/"&&this.opts.root!==void 0?this.opts.root:Y);let U=$.rest();if(!U){this.matches.add(J,!0,!1);continue}else $=U}if(J.isENOENT())continue;let K,W,V=!1;while(typeof(K=$.pattern())==="string"&&(W=$.rest()))J=J.resolve(K),$=W,V=!0;if(K=$.pattern(),W=$.rest(),V){if(this.hasWalkedCache.hasWalked(J,$))continue;this.hasWalkedCache.storeWalked(J,$)}if(typeof K==="string"){let U=K===".."||K===""||K===".";this.matches.add(J.resolve(K),q,U);continue}else if(K===c2){if(!J.isSymbolicLink()||this.follow||$.checkFollowGlobstar())this.subwalks.add(J,$);let U=W?.pattern(),H=W?.rest();if(!W||(U===""||U===".")&&!H)this.matches.add(J,q,U===""||U===".");else if(U===".."){let x=J.parent||J;if(!H)this.matches.add(x,q,!0);else if(!this.hasWalkedCache.hasWalked(x,H))this.subwalks.add(x,H)}}else if(K instanceof RegExp)this.subwalks.add(J,$)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new tQ(this.opts,this.hasWalkedCache)}filterEntries(Z,X){let Q=this.subwalks.get(Z),J=this.child();for(let $ of X)for(let Y of Q){let q=Y.isAbsolute(),K=Y.pattern(),W=Y.rest();if(K===c2)J.testGlobstar($,Y,W,q);else if(K instanceof RegExp)J.testRegExp($,K,W,q);else J.testString($,K,W,q)}return J}testGlobstar(Z,X,Q,J){if(this.dot||!Z.name.startsWith(".")){if(!X.hasMore())this.matches.add(Z,J,!1);if(Z.canReaddir()){if(this.follow||!Z.isSymbolicLink())this.subwalks.add(Z,X);else if(Z.isSymbolicLink()){if(Q&&X.checkFollowGlobstar())this.subwalks.add(Z,Q);else if(X.markFollowGlobstar())this.subwalks.add(Z,X)}}}if(Q){let $=Q.pattern();if(typeof $==="string"&&$!==".."&&$!==""&&$!==".")this.testString(Z,$,Q.rest(),J);else if($===".."){let Y=Z.parent||Z;this.subwalks.add(Y,Q)}else if($ instanceof RegExp)this.testRegExp(Z,$,Q.rest(),J)}}testRegExp(Z,X,Q,J){if(!X.test(Z.name))return;if(!Q)this.matches.add(Z,J,!1);else this.subwalks.add(Z,Q)}testString(Z,X,Q,J){if(!Z.isNamed(X))return;if(!Q)this.matches.add(Z,J,!1);else this.subwalks.add(Z,Q)}}var SZ0=(Z,X)=>typeof Z==="string"?new rQ([Z],X):Array.isArray(Z)?new rQ(Z,X):Z;class uG{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#Z=[];#Q;#$;signal;maxDepth;includeChildMatches;constructor(Z,X,Q){if(this.patterns=Z,this.path=X,this.opts=Q,this.#$=!Q.posix&&Q.platform==="win32"?"\\":"/",this.includeChildMatches=Q.includeChildMatches!==!1,Q.ignore||!this.includeChildMatches){if(this.#Q=SZ0(Q.ignore??[],Q),!this.includeChildMatches&&typeof this.#Q.add!=="function")throw new Error("cannot ignore child matches, ignore lacks add() method.")}if(this.maxDepth=Q.maxDepth||1/0,Q.signal)this.signal=Q.signal,this.signal.addEventListener("abort",()=>{this.#Z.length=0})}#X(Z){return this.seen.has(Z)||!!this.#Q?.ignored?.(Z)}#Y(Z){return!!this.#Q?.childrenIgnored?.(Z)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let Z=void 0;while(!this.paused&&(Z=this.#Z.shift()))Z()}onResume(Z){if(this.signal?.aborted)return;if(!this.paused)Z();else this.#Z.push(Z)}async matchCheck(Z,X){if(X&&this.opts.nodir)return;let Q;if(this.opts.realpath){if(Q=Z.realpathCached()||await Z.realpath(),!Q)return;Z=Q}let $=Z.isUnknown()||this.opts.stat?await Z.lstat():Z;if(this.opts.follow&&this.opts.nodir&&$?.isSymbolicLink()){let Y=await $.realpath();if(Y&&(Y.isUnknown()||this.opts.stat))await Y.lstat()}return this.matchCheckTest($,X)}matchCheckTest(Z,X){return Z&&(this.maxDepth===1/0||Z.depth()<=this.maxDepth)&&(!X||Z.canReaddir())&&(!this.opts.nodir||!Z.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!Z.isSymbolicLink()||!Z.realpathCached()?.isDirectory())&&!this.#X(Z)?Z:void 0}matchCheckSync(Z,X){if(X&&this.opts.nodir)return;let Q;if(this.opts.realpath){if(Q=Z.realpathCached()||Z.realpathSync(),!Q)return;Z=Q}let $=Z.isUnknown()||this.opts.stat?Z.lstatSync():Z;if(this.opts.follow&&this.opts.nodir&&$?.isSymbolicLink()){let Y=$.realpathSync();if(Y&&(Y?.isUnknown()||this.opts.stat))Y.lstatSync()}return this.matchCheckTest($,X)}matchFinish(Z,X){if(this.#X(Z))return;if(!this.includeChildMatches&&this.#Q?.add){let $=`${Z.relativePosix()}/**`;this.#Q.add($)}let Q=this.opts.absolute===void 0?X:this.opts.absolute;this.seen.add(Z);let J=this.opts.mark&&Z.isDirectory()?this.#$:"";if(this.opts.withFileTypes)this.matchEmit(Z);else if(Q){let $=this.opts.posix?Z.fullpathPosix():Z.fullpath();this.matchEmit($+J)}else{let $=this.opts.posix?Z.relativePosix():Z.relative(),Y=this.opts.dotRelative&&!$.startsWith(".."+this.#$)?"."+this.#$:"";this.matchEmit(!$?"."+J:Y+$+J)}}async match(Z,X,Q){let J=await this.matchCheck(Z,Q);if(J)this.matchFinish(J,X)}matchSync(Z,X,Q){let J=this.matchCheckSync(Z,Q);if(J)this.matchFinish(J,X)}walkCB(Z,X,Q){if(this.signal?.aborted)Q();this.walkCB2(Z,X,new tQ(this.opts),Q)}walkCB2(Z,X,Q,J){if(this.#Y(Z))return J();if(this.signal?.aborted)J();if(this.paused){this.onResume(()=>this.walkCB2(Z,X,Q,J));return}Q.processPatterns(Z,X);let $=1,Y=()=>{if(--$===0)J()};for(let[q,K,W]of Q.matches.entries()){if(this.#X(q))continue;$++,this.match(q,K,W).then(()=>Y())}for(let q of Q.subwalkTargets()){if(this.maxDepth!==1/0&&q.depth()>=this.maxDepth)continue;$++;let K=q.readdirCached();if(q.calledReaddir())this.walkCB3(q,K,Q,Y);else q.readdirCB((W,V)=>this.walkCB3(q,V,Q,Y),!0)}Y()}walkCB3(Z,X,Q,J){Q=Q.filterEntries(Z,X);let $=1,Y=()=>{if(--$===0)J()};for(let[q,K,W]of Q.matches.entries()){if(this.#X(q))continue;$++,this.match(q,K,W).then(()=>Y())}for(let[q,K]of Q.subwalks.entries())$++,this.walkCB2(q,K,Q.child(),Y);Y()}walkCBSync(Z,X,Q){if(this.signal?.aborted)Q();this.walkCB2Sync(Z,X,new tQ(this.opts),Q)}walkCB2Sync(Z,X,Q,J){if(this.#Y(Z))return J();if(this.signal?.aborted)J();if(this.paused){this.onResume(()=>this.walkCB2Sync(Z,X,Q,J));return}Q.processPatterns(Z,X);let $=1,Y=()=>{if(--$===0)J()};for(let[q,K,W]of Q.matches.entries()){if(this.#X(q))continue;this.matchSync(q,K,W)}for(let q of Q.subwalkTargets()){if(this.maxDepth!==1/0&&q.depth()>=this.maxDepth)continue;$++;let K=q.readdirSync();this.walkCB3Sync(q,K,Q,Y)}Y()}walkCB3Sync(Z,X,Q,J){Q=Q.filterEntries(Z,X);let $=1,Y=()=>{if(--$===0)J()};for(let[q,K,W]of Q.matches.entries()){if(this.#X(q))continue;this.matchSync(q,K,W)}for(let[q,K]of Q.subwalks.entries())$++,this.walkCB2Sync(q,K,Q.child(),Y);Y()}}class yq extends uG{matches=new Set;constructor(Z,X,Q){super(Z,X,Q)}matchEmit(Z){this.matches.add(Z)}async walk(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown())await this.path.lstat();return await new Promise((Z,X)=>{this.walkCB(this.path,this.patterns,()=>{if(this.signal?.aborted)X(this.signal.reason);else Z(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown())this.path.lstatSync();return this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}}class gq extends uG{results;constructor(Z,X,Q){super(Z,X,Q);this.results=new qZ({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(Z){if(this.results.write(Z),!this.results.flowing)this.pause()}stream(){let Z=this.path;if(Z.isUnknown())Z.lstat().then(()=>{this.walkCB(Z,this.patterns,()=>this.results.end())});else this.walkCB(Z,this.patterns,()=>this.results.end());return this.results}streamSync(){if(this.path.isUnknown())this.path.lstatSync();return this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}}var PZ0=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class O7{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(Z,X){if(!X)throw new TypeError("glob options required");if(this.withFileTypes=!!X.withFileTypes,this.signal=X.signal,this.follow=!!X.follow,this.dot=!!X.dot,this.dotRelative=!!X.dotRelative,this.nodir=!!X.nodir,this.mark=!!X.mark,!X.cwd)this.cwd="";else if(X.cwd instanceof URL||X.cwd.startsWith("file://"))X.cwd=TZ0(X.cwd);if(this.cwd=X.cwd||"",this.root=X.root,this.magicalBraces=!!X.magicalBraces,this.nobrace=!!X.nobrace,this.noext=!!X.noext,this.realpath=!!X.realpath,this.absolute=X.absolute,this.includeChildMatches=X.includeChildMatches!==!1,this.noglobstar=!!X.noglobstar,this.matchBase=!!X.matchBase,this.maxDepth=typeof X.maxDepth==="number"?X.maxDepth:1/0,this.stat=!!X.stat,this.ignore=X.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof Z==="string")Z=[Z];if(this.windowsPathsNoEscape=!!X.windowsPathsNoEscape||X.allowWindowsEscape===!1,this.windowsPathsNoEscape)Z=Z.map((K)=>K.replace(/\\/g,"/"));if(this.matchBase){if(X.noglobstar)throw new TypeError("base matching requires globstar");Z=Z.map((K)=>K.includes("/")?K:`./**/${K}`)}if(this.pattern=Z,this.platform=X.platform||PZ0,this.opts={...X,platform:this.platform},X.scurry){if(this.scurry=X.scurry,X.nocase!==void 0&&X.nocase!==X.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let K=X.platform==="win32"?sQ:X.platform==="darwin"?mq:X.platform?aQ:zI;this.scurry=new K(this.cwd,{nocase:X.nocase,fs:X.fs})}this.nocase=this.scurry.nocase;let Q=this.platform==="darwin"||this.platform==="win32",J={...X,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:Q,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},$=this.pattern.map((K)=>new D6(K,J)),[Y,q]=$.reduce((K,W)=>{return K[0].push(...W.set),K[1].push(...W.globParts),K},[[],[]]);this.patterns=Y.map((K,W)=>{let V=q[W];if(!V)throw new Error("invalid pattern object");return new b3(K,V,0,this.platform)})}async walk(){return[...await new yq(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new yq(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new gq(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new gq(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}var hG=(Z,X={})=>{if(!Array.isArray(Z))Z=[Z];for(let Q of Z)if(new D6(Q,X).hasMagic())return!0;return!1};function uq(Z,X={}){return new O7(Z,X).streamSync()}function HI(Z,X={}){return new O7(Z,X).stream()}function xI(Z,X={}){return new O7(Z,X).walkSync()}async function GI(Z,X={}){return new O7(Z,X).walk()}function hq(Z,X={}){return new O7(Z,X).iterateSync()}function BI(Z,X={}){return new O7(Z,X).iterate()}var AZ0=uq,EZ0=Object.assign(HI,{sync:uq}),vZ0=hq,kZ0=Object.assign(BI,{sync:hq}),fZ0=Object.assign(xI,{stream:uq,iterate:hq}),cq=Object.assign(GI,{glob:GI,globSync:xI,sync:fZ0,globStream:HI,stream:EZ0,globStreamSync:uq,streamSync:AZ0,globIterate:BI,iterate:kZ0,globIterateSync:hq,iterateSync:vZ0,Glob:O7,hasMagic:hG,escape:E3,unescape:r6});cq.glob=cq;var rA=F6(UH(),1);import Qz0 from"fs";import Jz0 from"path";function JJ(Z,X){return function Q(){return Z.apply(X,arguments)}}var{toString:RX0}=Object.prototype,{getPrototypeOf:ZK}=Object,{iterator:XK,toStringTag:jS}=Symbol,QK=((Z)=>(X)=>{let Q=RX0.call(X);return Z[Q]||(Z[Q]=Q.slice(8,-1).toLowerCase())})(Object.create(null)),X7=(Z)=>{return Z=Z.toLowerCase(),(X)=>QK(X)===Z},JK=(Z)=>(X)=>typeof X===Z,{isArray:h3}=Array,u3=JK("undefined");function $J(Z){return Z!==null&&!u3(Z)&&Z.constructor!==null&&!u3(Z.constructor)&&L4(Z.constructor.isBuffer)&&Z.constructor.isBuffer(Z)}var wS=X7("ArrayBuffer");function OX0(Z){let X;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView)X=ArrayBuffer.isView(Z);else X=Z&&Z.buffer&&wS(Z.buffer);return X}var IX0=JK("string"),L4=JK("function"),CS=JK("number"),YJ=(Z)=>Z!==null&&typeof Z==="object",_X0=(Z)=>Z===!0||Z===!1,eq=(Z)=>{if(QK(Z)!=="object")return!1;let X=ZK(Z);return(X===null||X===Object.prototype||Object.getPrototypeOf(X)===null)&&!(jS in Z)&&!(XK in Z)},SX0=(Z)=>{if(!YJ(Z)||$J(Z))return!1;try{return Object.keys(Z).length===0&&Object.getPrototypeOf(Z)===Object.prototype}catch(X){return!1}},TX0=X7("Date"),PX0=X7("File"),AX0=(Z)=>{return!!(Z&&typeof Z.uri!=="undefined")},EX0=(Z)=>Z&&typeof Z.getParts!=="undefined",vX0=X7("Blob"),kX0=X7("FileList"),fX0=(Z)=>YJ(Z)&&L4(Z.pipe);function bX0(){if(typeof globalThis!=="undefined")return globalThis;if(typeof self!=="undefined")return self;if(typeof window!=="undefined")return window;if(typeof global!=="undefined")return global;return{}}var DS=bX0(),LS=typeof DS.FormData!=="undefined"?DS.FormData:void 0,mX0=(Z)=>{if(!Z)return!1;if(LS&&Z instanceof LS)return!0;let X=ZK(Z);if(!X||X===Object.prototype)return!1;if(!L4(Z.append))return!1;let Q=QK(Z);return Q==="formdata"||Q==="object"&&L4(Z.toString)&&Z.toString()==="[object FormData]"},yX0=X7("URLSearchParams"),[gX0,cX0,uX0,hX0]=["ReadableStream","Request","Response","Headers"].map(X7),dX0=(Z)=>{return Z.trim?Z.trim():Z.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function qJ(Z,X,{allOwnKeys:Q=!1}={}){if(Z===null||typeof Z==="undefined")return;let J,$;if(typeof Z!=="object")Z=[Z];if(h3(Z))for(J=0,$=Z.length;J<$;J++)X.call(null,Z[J],J,Z);else{if($J(Z))return;let Y=Q?Object.getOwnPropertyNames(Z):Object.keys(Z),q=Y.length,K;for(J=0;J<q;J++)K=Y[J],X.call(null,Z[K],K,Z)}}function RS(Z,X){if($J(Z))return null;X=X.toLowerCase();let Q=Object.keys(Z),J=Q.length,$;while(J-- >0)if($=Q[J],X===$.toLowerCase())return $;return null}var zZ=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:global})(),OS=(Z)=>!u3(Z)&&Z!==zZ;function GH(...Z){let{caseless:X,skipUndefined:Q}=OS(this)&&this||{},J={},$=(Y,q)=>{if(q==="__proto__"||q==="constructor"||q==="prototype")return;let K=X&&RS(J,q)||q,W=HH(J,K)?J[K]:void 0;if(eq(W)&&eq(Y))J[K]=GH(W,Y);else if(eq(Y))J[K]=GH({},Y);else if(h3(Y))J[K]=Y.slice();else if(!Q||!u3(Y))J[K]=Y};for(let Y=0,q=Z.length;Y<q;Y++)Z[Y]&&qJ(Z[Y],$);return J}var pX0=(Z,X,Q,{allOwnKeys:J}={})=>{return qJ(X,($,Y)=>{if(Q&&L4($))Object.defineProperty(Z,Y,{__proto__:null,value:JJ($,Q),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty(Z,Y,{__proto__:null,value:$,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:J}),Z},lX0=(Z)=>{if(Z.charCodeAt(0)===65279)Z=Z.slice(1);return Z},iX0=(Z,X,Q,J)=>{Z.prototype=Object.create(X.prototype,J),Object.defineProperty(Z.prototype,"constructor",{__proto__:null,value:Z,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(Z,"super",{__proto__:null,value:X.prototype}),Q&&Object.assign(Z.prototype,Q)},oX0=(Z,X,Q,J)=>{let $,Y,q,K={};if(X=X||{},Z==null)return X;do{$=Object.getOwnPropertyNames(Z),Y=$.length;while(Y-- >0)if(q=$[Y],(!J||J(q,Z,X))&&!K[q])X[q]=Z[q],K[q]=!0;Z=Q!==!1&&ZK(Z)}while(Z&&(!Q||Q(Z,X))&&Z!==Object.prototype);return X},nX0=(Z,X,Q)=>{if(Z=String(Z),Q===void 0||Q>Z.length)Q=Z.length;Q-=X.length;let J=Z.indexOf(X,Q);return J!==-1&&J===Q},sX0=(Z)=>{if(!Z)return null;if(h3(Z))return Z;let X=Z.length;if(!CS(X))return null;let Q=new Array(X);while(X-- >0)Q[X]=Z[X];return Q},aX0=((Z)=>{return(X)=>{return Z&&X instanceof Z}})(typeof Uint8Array!=="undefined"&&ZK(Uint8Array)),rX0=(Z,X)=>{let J=(Z&&Z[XK]).call(Z),$;while(($=J.next())&&!$.done){let Y=$.value;X.call(Z,Y[0],Y[1])}},tX0=(Z,X)=>{let Q,J=[];while((Q=Z.exec(X))!==null)J.push(Q);return J},eX0=X7("HTMLFormElement"),ZQ0=(Z)=>{return Z.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function X(Q,J,$){return J.toUpperCase()+$})},HH=(({hasOwnProperty:Z})=>(X,Q)=>Z.call(X,Q))(Object.prototype),XQ0=X7("RegExp"),IS=(Z,X)=>{let Q=Object.getOwnPropertyDescriptors(Z),J={};qJ(Q,($,Y)=>{let q;if((q=X($,Y,Z))!==!1)J[Y]=q||$}),Object.defineProperties(Z,J)},QQ0=(Z)=>{IS(Z,(X,Q)=>{if(L4(Z)&&["arguments","caller","callee"].includes(Q))return!1;let J=Z[Q];if(!L4(J))return;if(X.enumerable=!1,"writable"in X){X.writable=!1;return}if(!X.set)X.set=()=>{throw Error("Can not rewrite read-only method '"+Q+"'")}})},JQ0=(Z,X)=>{let Q={},J=($)=>{$.forEach((Y)=>{Q[Y]=!0})};return h3(Z)?J(Z):J(String(Z).split(X)),Q},$Q0=()=>{},YQ0=(Z,X)=>{return Z!=null&&Number.isFinite(Z=+Z)?Z:X};function qQ0(Z){return!!(Z&&L4(Z.append)&&Z[jS]==="FormData"&&Z[XK])}var KQ0=(Z)=>{let X=new Array(10),Q=(J,$)=>{if(YJ(J)){if(X.indexOf(J)>=0)return;if($J(J))return J;if(!("toJSON"in J)){X[$]=J;let Y=h3(J)?[]:{};return qJ(J,(q,K)=>{let W=Q(q,$+1);!u3(W)&&(Y[K]=W)}),X[$]=void 0,Y}}return J};return Q(Z,0)},WQ0=X7("AsyncFunction"),zQ0=(Z)=>Z&&(YJ(Z)||L4(Z))&&L4(Z.then)&&L4(Z.catch),_S=((Z,X)=>{if(Z)return setImmediate;return X?((Q,J)=>{return zZ.addEventListener("message",({source:$,data:Y})=>{if($===zZ&&Y===Q)J.length&&J.shift()()},!1),($)=>{J.push($),zZ.postMessage(Q,"*")}})(`axios@${Math.random()}`,[]):(Q)=>setTimeout(Q)})(typeof setImmediate==="function",L4(zZ.postMessage)),VQ0=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(zZ):typeof process!=="undefined"&&process.nextTick||_S,UQ0=(Z)=>Z!=null&&L4(Z[XK]),E={isArray:h3,isArrayBuffer:wS,isBuffer:$J,isFormData:mX0,isArrayBufferView:OX0,isString:IX0,isNumber:CS,isBoolean:_X0,isObject:YJ,isPlainObject:eq,isEmptyObject:SX0,isReadableStream:gX0,isRequest:cX0,isResponse:uX0,isHeaders:hX0,isUndefined:u3,isDate:TX0,isFile:PX0,isReactNativeBlob:AX0,isReactNative:EX0,isBlob:vX0,isRegExp:XQ0,isFunction:L4,isStream:fX0,isURLSearchParams:yX0,isTypedArray:aX0,isFileList:kX0,forEach:qJ,merge:GH,extend:pX0,trim:dX0,stripBOM:lX0,inherits:iX0,toFlatObject:oX0,kindOf:QK,kindOfTest:X7,endsWith:nX0,toArray:sX0,forEachEntry:rX0,matchAll:tX0,isHTMLForm:eX0,hasOwnProperty:HH,hasOwnProp:HH,reduceDescriptors:IS,freezeMethods:QQ0,toObjectSet:JQ0,toCamelCase:ZQ0,noop:$Q0,toFiniteNumber:YQ0,findKey:RS,global:zZ,isContextDefined:OS,isSpecCompliantForm:qQ0,toJSONObject:KQ0,isAsyncFn:WQ0,isThenable:zQ0,setImmediate:_S,asap:VQ0,isIterable:UQ0};var GQ0=E.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),SS=(Z)=>{let X={},Q,J,$;return Z&&Z.split(`
|
|
92
92
|
`).forEach(function Y(q){if($=q.indexOf(":"),Q=q.substring(0,$).trim().toLowerCase(),J=q.substring($+1).trim(),!Q||X[Q]&&GQ0[Q])return;if(Q==="set-cookie")if(X[Q])X[Q].push(J);else X[Q]=[J];else X[Q]=X[Q]?X[Q]+", "+J:J}),X};var TS=Symbol("internals"),HQ0=/[^\x09\x20-\x7E\x80-\xFF]/g;function xQ0(Z){let X=0,Q=Z.length;while(X<Q){let J=Z.charCodeAt(X);if(J!==9&&J!==32)break;X+=1}while(Q>X){let J=Z.charCodeAt(Q-1);if(J!==9&&J!==32)break;Q-=1}return X===0&&Q===Z.length?Z:Z.slice(X,Q)}function KJ(Z){return Z&&String(Z).trim().toLowerCase()}function BQ0(Z){return xQ0(Z.replace(HQ0,""))}function $K(Z){if(Z===!1||Z==null)return Z;return E.isArray(Z)?Z.map($K):BQ0(String(Z))}function MQ0(Z){let X=Object.create(null),Q=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,J;while(J=Q.exec(Z))X[J[1]]=J[2];return X}var FQ0=(Z)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(Z.trim());function xH(Z,X,Q,J,$){if(E.isFunction(J))return J.call(this,X,Q);if($)X=Q;if(!E.isString(X))return;if(E.isString(J))return X.indexOf(J)!==-1;if(E.isRegExp(J))return J.test(X)}function NQ0(Z){return Z.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(X,Q,J)=>{return Q.toUpperCase()+J})}function DQ0(Z,X){let Q=E.toCamelCase(" "+X);["get","set","has"].forEach((J)=>{Object.defineProperty(Z,J+Q,{__proto__:null,value:function($,Y,q){return this[J].call(this,X,$,Y,q)},configurable:!0})})}class WJ{constructor(Z){Z&&this.set(Z)}set(Z,X,Q){let J=this;function $(q,K,W){let V=KJ(K);if(!V)throw new Error("header name must be a non-empty string");let U=E.findKey(J,V);if(!U||J[U]===void 0||W===!0||W===void 0&&J[U]!==!1)J[U||K]=$K(q)}let Y=(q,K)=>E.forEach(q,(W,V)=>$(W,V,K));if(E.isPlainObject(Z)||Z instanceof this.constructor)Y(Z,X);else if(E.isString(Z)&&(Z=Z.trim())&&!FQ0(Z))Y(SS(Z),X);else if(E.isObject(Z)&&E.isIterable(Z)){let q={},K,W;for(let V of Z){if(!E.isArray(V))throw TypeError("Object iterator must return a key-value pair");q[W=V[0]]=(K=q[W])?E.isArray(K)?[...K,V[1]]:[K,V[1]]:V[1]}Y(q,X)}else Z!=null&&$(X,Z,Q);return this}get(Z,X){if(Z=KJ(Z),Z){let Q=E.findKey(this,Z);if(Q){let J=this[Q];if(!X)return J;if(X===!0)return MQ0(J);if(E.isFunction(X))return X.call(this,J,Q);if(E.isRegExp(X))return X.exec(J);throw new TypeError("parser must be boolean|regexp|function")}}}has(Z,X){if(Z=KJ(Z),Z){let Q=E.findKey(this,Z);return!!(Q&&this[Q]!==void 0&&(!X||xH(this,this[Q],Q,X)))}return!1}delete(Z,X){let Q=this,J=!1;function $(Y){if(Y=KJ(Y),Y){let q=E.findKey(Q,Y);if(q&&(!X||xH(Q,Q[q],q,X)))delete Q[q],J=!0}}if(E.isArray(Z))Z.forEach($);else $(Z);return J}clear(Z){let X=Object.keys(this),Q=X.length,J=!1;while(Q--){let $=X[Q];if(!Z||xH(this,this[$],$,Z,!0))delete this[$],J=!0}return J}normalize(Z){let X=this,Q={};return E.forEach(this,(J,$)=>{let Y=E.findKey(Q,$);if(Y){X[Y]=$K(J),delete X[$];return}let q=Z?NQ0($):String($).trim();if(q!==$)delete X[$];X[q]=$K(J),Q[q]=!0}),this}concat(...Z){return this.constructor.concat(this,...Z)}toJSON(Z){let X=Object.create(null);return E.forEach(this,(Q,J)=>{Q!=null&&Q!==!1&&(X[J]=Z&&E.isArray(Q)?Q.join(", "):Q)}),X}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([Z,X])=>Z+": "+X).join(`
|
|
93
93
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(Z){return Z instanceof this?Z:new this(Z)}static concat(Z,...X){let Q=new this(Z);return X.forEach((J)=>Q.set(J)),Q}static accessor(Z){let Q=(this[TS]=this[TS]={accessors:{}}).accessors,J=this.prototype;function $(Y){let q=KJ(Y);if(!Q[q])DQ0(J,Y),Q[q]=!0}return E.isArray(Z)?Z.forEach($):$(Z),this}}WJ.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);E.reduceDescriptors(WJ.prototype,({value:Z},X)=>{let Q=X[0].toUpperCase()+X.slice(1);return{get:()=>Z,set(J){this[Q]=J}}});E.freezeMethods(WJ);var N2=WJ;var LQ0="[REDACTED ****]";function jQ0(Z){if(E.hasOwnProp(Z,"toJSON"))return!0;let X=Object.getPrototypeOf(Z);while(X&&X!==Object.prototype){if(E.hasOwnProp(X,"toJSON"))return!0;X=Object.getPrototypeOf(X)}return!1}function wQ0(Z,X){let Q=new Set(X.map((Y)=>String(Y).toLowerCase())),J=[],$=(Y)=>{if(Y===null||typeof Y!=="object")return Y;if(E.isBuffer(Y))return Y;if(J.indexOf(Y)!==-1)return;if(Y instanceof N2)Y=Y.toJSON();J.push(Y);let q;if(E.isArray(Y))q=[],Y.forEach((K,W)=>{let V=$(K);if(!E.isUndefined(V))q[W]=V});else{if(!E.isPlainObject(Y)&&jQ0(Y))return J.pop(),Y;q=Object.create(null);for(let[K,W]of Object.entries(Y)){let V=Q.has(K.toLowerCase())?LQ0:$(W);if(!E.isUndefined(V))q[K]=V}}return J.pop(),q};return $(Z)}class _8 extends Error{static from(Z,X,Q,J,$,Y){let q=new _8(Z.message,X||Z.code,Q,J,$);if(q.cause=Z,q.name=Z.name,Z.status!=null&&q.status==null)q.status=Z.status;return Y&&Object.assign(q,Y),q}constructor(Z,X,Q,J,$){super(Z);if(Object.defineProperty(this,"message",{__proto__:null,value:Z,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,X&&(this.code=X),Q&&(this.config=Q),J&&(this.request=J),$)this.response=$,this.status=$.status}toJSON(){let Z=this.config,X=Z&&E.hasOwnProp(Z,"redact")?Z.redact:void 0,Q=E.isArray(X)&&X.length>0?wQ0(Z,X):E.toJSONObject(Z);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q,code:this.code,status:this.status}}}_8.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";_8.ERR_BAD_OPTION="ERR_BAD_OPTION";_8.ECONNABORTED="ECONNABORTED";_8.ETIMEDOUT="ETIMEDOUT";_8.ECONNREFUSED="ECONNREFUSED";_8.ERR_NETWORK="ERR_NETWORK";_8.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";_8.ERR_DEPRECATED="ERR_DEPRECATED";_8.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";_8.ERR_BAD_REQUEST="ERR_BAD_REQUEST";_8.ERR_CANCELED="ERR_CANCELED";_8.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";_8.ERR_INVALID_URL="ERR_INVALID_URL";_8.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var x0=_8;var PS=F6(UH(),1),YK=PS.default;function MH(Z){return E.isPlainObject(Z)||E.isArray(Z)}function AS(Z){return E.endsWith(Z,"[]")?Z.slice(0,-2):Z}function BH(Z,X,Q){if(!Z)return X;return Z.concat(X).map(function J($,Y){return $=AS($),!Q&&Y?"["+$+"]":$}).join(Q?".":"")}function CQ0(Z){return E.isArray(Z)&&!Z.some(MH)}var RQ0=E.toFlatObject(E,{},null,function Z(X){return/^is[A-Z]/.test(X)});function OQ0(Z,X,Q){if(!E.isObject(Z))throw new TypeError("target must be an object");X=X||new(YK||FormData),Q=E.toFlatObject(Q,{metaTokens:!0,dots:!1,indexes:!1},!1,function D(C,j){return!E.isUndefined(j[C])});let J=Q.metaTokens,$=Q.visitor||H,Y=Q.dots,q=Q.indexes,K=Q.Blob||typeof Blob!=="undefined"&&Blob,W=Q.maxDepth===void 0?100:Q.maxDepth,V=K&&E.isSpecCompliantForm(X);if(!E.isFunction($))throw new TypeError("visitor must be a function");function U(D){if(D===null)return"";if(E.isDate(D))return D.toISOString();if(E.isBoolean(D))return D.toString();if(!V&&E.isBlob(D))throw new x0("Blob is not supported. Use a Buffer instead.");if(E.isArrayBuffer(D)||E.isTypedArray(D))return V&&typeof Blob==="function"?new Blob([D]):Buffer.from(D);return D}function H(D,C,j){let I=D;if(E.isReactNative(X)&&E.isReactNativeBlob(D))return X.append(BH(j,C,Y),U(D)),!1;if(D&&!j&&typeof D==="object"){if(E.endsWith(C,"{}"))C=J?C:C.slice(0,-2),D=JSON.stringify(D);else if(E.isArray(D)&&CQ0(D)||(E.isFileList(D)||E.endsWith(C,"[]"))&&(I=E.toArray(D)))return C=AS(C),I.forEach(function v(S,c){!(E.isUndefined(S)||S===null)&&X.append(q===!0?BH([C],c,Y):q===null?C:C+"[]",U(S))}),!1}if(MH(D))return!0;return X.append(BH(j,C,Y),U(D)),!1}let x=[],M=Object.assign(RQ0,{defaultVisitor:H,convertValue:U,isVisitable:MH});function F(D,C,j=0){if(E.isUndefined(D))return;if(j>W)throw new x0("Object is too deeply nested ("+j+" levels). Max depth: "+W,x0.ERR_FORM_DATA_DEPTH_EXCEEDED);if(x.indexOf(D)!==-1)throw Error("Circular reference detected in "+C.join("."));x.push(D),E.forEach(D,function I(v,S){if((!(E.isUndefined(v)||v===null)&&$.call(X,v,E.isString(S)?S.trim():S,C,M))===!0)F(v,C?C.concat(S):[S],j+1)}),x.pop()}if(!E.isObject(Z))throw new TypeError("data must be an object");return F(Z),X}var Q9=OQ0;function ES(Z){let X={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(Z).replace(/[!'()~]|%20/g,function Q(J){return X[J]})}function vS(Z,X){this._pairs=[],Z&&Q9(Z,this,X)}var kS=vS.prototype;kS.append=function Z(X,Q){this._pairs.push([X,Q])};kS.toString=function Z(X){let Q=X?function(J){return X.call(this,J,ES)}:ES;return this._pairs.map(function J($){return Q($[0])+"="+Q($[1])},"").join("&")};var fS=vS;function IQ0(Z){return encodeURIComponent(Z).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function VZ(Z,X,Q){if(!X)return Z;let J=Q&&Q.encode||IQ0,$=E.isFunction(Q)?{serialize:Q}:Q,Y=$&&$.serialize,q;if(Y)q=Y(X,$);else q=E.isURLSearchParams(X)?X.toString():new fS(X,$).toString(J);if(q){let K=Z.indexOf("#");if(K!==-1)Z=Z.slice(0,K);Z+=(Z.indexOf("?")===-1?"?":"&")+q}return Z}class bS{constructor(){this.handlers=[]}use(Z,X,Q){return this.handlers.push({fulfilled:Z,rejected:X,synchronous:Q?Q.synchronous:!1,runWhen:Q?Q.runWhen:null}),this.handlers.length-1}eject(Z){if(this.handlers[Z])this.handlers[Z]=null}clear(){if(this.handlers)this.handlers=[]}forEach(Z){E.forEach(this.handlers,function X(Q){if(Q!==null)Z(Q)})}}var FH=bS;var J9={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0};import SQ0 from"crypto";import _Q0 from"url";var mS=_Q0.URLSearchParams;var NH="abcdefghijklmnopqrstuvwxyz",yS="0123456789",gS={DIGIT:yS,ALPHA:NH,ALPHA_DIGIT:NH+NH.toUpperCase()+yS},TQ0=(Z=16,X=gS.ALPHA_DIGIT)=>{let Q="",{length:J}=X,$=new Uint32Array(Z);SQ0.randomFillSync($);for(let Y=0;Y<Z;Y++)Q+=X[$[Y]%J];return Q},cS={isNode:!0,classes:{URLSearchParams:mS,FormData:YK,Blob:typeof Blob!=="undefined"&&Blob||null},ALPHABET:gS,generateString:TQ0,protocols:["http","https","file","data"]};var jH={};ZO(jH,{origin:()=>EQ0,navigator:()=>DH,hasStandardBrowserWebWorkerEnv:()=>AQ0,hasStandardBrowserEnv:()=>PQ0,hasBrowserEnv:()=>LH});var LH=typeof window!=="undefined"&&typeof document!=="undefined",DH=typeof navigator==="object"&&navigator||void 0,PQ0=LH&&(!DH||["ReactNative","NativeScript","NS"].indexOf(DH.product)<0),AQ0=(()=>{return typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),EQ0=LH&&window.location.href||"http://localhost";var c1={...jH,...cS};function wH(Z,X){return Q9(Z,new c1.classes.URLSearchParams,{visitor:function(Q,J,$,Y){if(c1.isNode&&E.isBuffer(Q))return this.append(J,Q.toString("base64")),!1;return Y.defaultVisitor.apply(this,arguments)},...X})}function vQ0(Z){return E.matchAll(/\w+|\[(\w*)]/g,Z).map((X)=>{return X[0]==="[]"?"":X[1]||X[0]})}function kQ0(Z){let X={},Q=Object.keys(Z),J,$=Q.length,Y;for(J=0;J<$;J++)Y=Q[J],X[Y]=Z[Y];return X}function fQ0(Z){function X(Q,J,$,Y){let q=Q[Y++];if(q==="__proto__")return!0;let K=Number.isFinite(+q),W=Y>=Q.length;if(q=!q&&E.isArray($)?$.length:q,W){if(E.hasOwnProp($,q))$[q]=E.isArray($[q])?$[q].concat(J):[$[q],J];else $[q]=J;return!K}if(!$[q]||!E.isObject($[q]))$[q]=[];if(X(Q,J,$[q],Y)&&E.isArray($[q]))$[q]=kQ0($[q]);return!K}if(E.isFormData(Z)&&E.isFunction(Z.entries)){let Q={};return E.forEachEntry(Z,(J,$)=>{X(vQ0(J),$,Q,0)}),Q}return null}var qK=fQ0;var d3=(Z,X)=>Z!=null&&E.hasOwnProp(Z,X)?Z[X]:void 0;function bQ0(Z,X,Q){if(E.isString(Z))try{return(X||JSON.parse)(Z),E.trim(Z)}catch(J){if(J.name!=="SyntaxError")throw J}return(Q||JSON.stringify)(Z)}var CH={transitional:J9,adapter:["xhr","http","fetch"],transformRequest:[function Z(X,Q){let J=Q.getContentType()||"",$=J.indexOf("application/json")>-1,Y=E.isObject(X);if(Y&&E.isHTMLForm(X))X=new FormData(X);if(E.isFormData(X))return $?JSON.stringify(qK(X)):X;if(E.isArrayBuffer(X)||E.isBuffer(X)||E.isStream(X)||E.isFile(X)||E.isBlob(X)||E.isReadableStream(X))return X;if(E.isArrayBufferView(X))return X.buffer;if(E.isURLSearchParams(X))return Q.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),X.toString();let K;if(Y){let W=d3(this,"formSerializer");if(J.indexOf("application/x-www-form-urlencoded")>-1)return wH(X,W).toString();if((K=E.isFileList(X))||J.indexOf("multipart/form-data")>-1){let V=d3(this,"env"),U=V&&V.FormData;return Q9(K?{"files[]":X}:X,U&&new U,W)}}if(Y||$)return Q.setContentType("application/json",!1),bQ0(X);return X}],transformResponse:[function Z(X){let Q=d3(this,"transitional")||CH.transitional,J=Q&&Q.forcedJSONParsing,$=d3(this,"responseType"),Y=$==="json";if(E.isResponse(X)||E.isReadableStream(X))return X;if(X&&E.isString(X)&&(J&&!$||Y)){let K=!(Q&&Q.silentJSONParsing)&&Y;try{return JSON.parse(X,d3(this,"parseReviver"))}catch(W){if(K){if(W.name==="SyntaxError")throw x0.from(W,x0.ERR_BAD_RESPONSE,this,null,d3(this,"response"));throw W}}}return X}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:c1.classes.FormData,Blob:c1.classes.Blob},validateStatus:function Z(X){return X>=200&&X<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch","query"],(Z)=>{CH.headers[Z]={}});var p3=CH;function zJ(Z,X){let Q=this||p3,J=X||Q,$=N2.from(J.headers),Y=J.data;return E.forEach(Z,function q(K){Y=K.call(Q,Y,$.normalize(),X?X.status:void 0)}),$.normalize(),Y}function VJ(Z){return!!(Z&&Z.__CANCEL__)}class uS extends x0{constructor(Z,X,Q){super(Z==null?"canceled":Z,x0.ERR_CANCELED,X,Q);this.name="CanceledError",this.__CANCEL__=!0}}var a4=uS;function I7(Z,X,Q){let J=Q.config.validateStatus;if(!Q.status||!J||J(Q.status))Z(Q);else X(new x0("Request failed with status code "+Q.status,Q.status>=400&&Q.status<500?x0.ERR_BAD_REQUEST:x0.ERR_BAD_RESPONSE,Q.config,Q.request,Q))}function RH(Z){if(typeof Z!=="string")return!1;return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(Z)}function OH(Z,X){return X?Z.replace(/\/?\/$/,"")+"/"+X.replace(/^\/+/,""):Z}function UZ(Z,X,Q){let J=!RH(X);if(Z&&(J||Q===!1))return OH(Z,X);return X}var mQ0={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function yQ0(Z){try{return new URL(Z)}catch{return null}}function hS(Z){var X=(typeof Z==="string"?yQ0(Z):Z)||{},Q=X.protocol,J=X.host,$=X.port;if(typeof J!=="string"||!J||typeof Q!=="string")return"";if(Q=Q.split(":",1)[0],J=J.replace(/:\d*$/,""),$=parseInt($)||mQ0[Q]||0,!gQ0(J,$))return"";var Y=IH(Q+"_proxy")||IH("all_proxy");if(Y&&Y.indexOf("://")===-1)Y=Q+"://"+Y;return Y}function gQ0(Z,X){var Q=IH("no_proxy").toLowerCase();if(!Q)return!0;if(Q==="*")return!1;return Q.split(/[,\s]/).every(function(J){if(!J)return!0;var $=J.match(/^(.+):(\d+)$/),Y=$?$[1]:J,q=$?parseInt($[2]):0;if(q&&q!==X)return!0;if(!/^[.*]/.test(Y))return Z!==Y;if(Y.charAt(0)==="*")Y=Y.slice(1);return!Z.endsWith(Y)})}function IH(Z){return process.env[Z.toLowerCase()]||process.env[Z.toUpperCase()]||""}var ET=F6(zT(),1);import $$0 from"http";import Y$0 from"https";import PT from"http2";import AT from"util";import{resolve as wT}from"path";import $9 from"zlib";var z5="1.16.0";function MJ(Z){let X=/^([-+\w]{1,25}):(?:\/\/)?/.exec(Z);return X&&X[1]||""}var yJ0=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function hH(Z,X,Q){let J=Q&&Q.Blob||c1.classes.Blob,$=MJ(Z);if(X===void 0&&J)X=!0;if($==="data"){Z=$.length?Z.slice($.length+1):Z;let Y=yJ0.exec(Z);if(!Y)throw new x0("Invalid URL",x0.ERR_INVALID_URL);let q=Y[1],K=Y[2],W=Y[3],V=Buffer.from(decodeURIComponent(W),K?"base64":"utf8");if(X){if(!J)throw new x0("Blob is not supported",x0.ERR_NOT_SUPPORT);return new J([V],{type:q})}return V}throw new x0("Unsupported protocol "+$,x0.ERR_NOT_SUPPORT)}import Q7 from"stream";import gJ0 from"stream";var dH=Symbol("internals");class VT extends gJ0.Transform{constructor(Z){Z=E.toFlatObject(Z,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(Q,J)=>{return!E.isUndefined(J[Q])});super({readableHighWaterMark:Z.chunkSize});let X=this[dH]={timeWindow:Z.timeWindow,chunkSize:Z.chunkSize,maxRate:Z.maxRate,minChunkSize:Z.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",(Q)=>{if(Q==="progress"){if(!X.isCaptured)X.isCaptured=!0}})}_read(Z){let X=this[dH];if(X.onReadCallback)X.onReadCallback();return super._read(Z)}_transform(Z,X,Q){let J=this[dH],$=J.maxRate,Y=this.readableHighWaterMark,q=J.timeWindow,K=1000/q,W=$/K,V=J.minChunkSize!==!1?Math.max(J.minChunkSize,W*0.01):0,U=(x,M)=>{let F=Buffer.byteLength(x);if(J.bytesSeen+=F,J.bytes+=F,J.isCaptured&&this.emit("progress",J.bytesSeen),this.push(x))process.nextTick(M);else J.onReadCallback=()=>{J.onReadCallback=null,process.nextTick(M)}},H=(x,M)=>{let F=Buffer.byteLength(x),D=null,C=Y,j,I=0;if($){let v=Date.now();if(!J.ts||(I=v-J.ts)>=q)J.ts=v,j=W-J.bytes,J.bytes=j<0?-j:0,I=0;j=W-J.bytes}if($){if(j<=0)return setTimeout(()=>{M(null,x)},q-I);if(j<C)C=j}if(C&&F>C&&F-C>V)D=x.subarray(C),x=x.subarray(0,C);U(x,D?()=>{process.nextTick(M,null,D)}:M)};H(Z,function x(M,F){if(M)return Q(M);if(F)H(F,x);else Q(null)})}}var pH=VT;import{EventEmitter as q$0}from"events";import uJ0 from"util";import{Readable as hJ0}from"stream";var{asyncIterator:UT}=Symbol,cJ0=async function*(Z){if(Z.stream)yield*Z.stream();else if(Z.arrayBuffer)yield await Z.arrayBuffer();else if(Z[UT])yield*Z[UT]();else yield Z},HK=cJ0;var dJ0=c1.ALPHABET.ALPHA_DIGIT+"-_",FJ=typeof TextEncoder==="function"?new TextEncoder:new uJ0.TextEncoder,MZ=`\r
|
|
94
94
|
`,pJ0=FJ.encode(MZ),lJ0=2;class GT{constructor(Z,X){let{escapeName:Q}=this.constructor,J=E.isString(X),$=`Content-Disposition: form-data; name="${Q(Z)}"${!J&&X.name?`; filename="${Q(X.name)}"`:""}${MZ}`;if(J)X=FJ.encode(String(X).replace(/\r?\n|\r\n?/g,MZ));else{let Y=String(X.type||"application/octet-stream").replace(/[\r\n]/g,"");$+=`Content-Type: ${Y}${MZ}`}this.headers=FJ.encode($+MZ),this.contentLength=J?X.byteLength:X.size,this.size=this.headers.byteLength+this.contentLength+lJ0,this.name=Z,this.value=X}async*encode(){yield this.headers;let{value:Z}=this;if(E.isTypedArray(Z))yield Z;else yield*HK(Z);yield pJ0}static escapeName(Z){return String(Z).replace(/[\r\n"]/g,(X)=>({"\r":"%0D","\n":"%0A",'"':"%22"})[X])}}var iJ0=(Z,X,Q)=>{let{tag:J="form-data-boundary",size:$=25,boundary:Y=J+"-"+c1.generateString($,dJ0)}=Q||{};if(!E.isFormData(Z))throw TypeError("FormData instance required");if(Y.length<1||Y.length>70)throw Error("boundary must be 1-70 characters long");let q=FJ.encode("--"+Y+MZ),K=FJ.encode("--"+Y+"--"+MZ),W=K.byteLength,V=Array.from(Z.entries()).map(([H,x])=>{let M=new GT(H,x);return W+=M.size,M});W+=q.byteLength*V.length,W=E.toFiniteNumber(W);let U={"Content-Type":`multipart/form-data; boundary=${Y}`};if(Number.isFinite(W))U["Content-Length"]=W;return X&&X(U),hJ0.from(async function*(){for(let H of V)yield q,yield*H.encode();yield K}())},HT=iJ0;import oJ0 from"stream";class xT extends oJ0.Transform{__transform(Z,X,Q){this.push(Z),Q()}_transform(Z,X,Q){if(Z.length!==0){if(this._transform=this.__transform,Z[0]!==120){let J=Buffer.alloc(2);J[0]=120,J[1]=156,this.push(J,X)}}this.__transform(Z,X,Q)}}var BT=xT;var nJ0=(Z,X)=>{return E.isAsyncFn(Z)?function(...Q){let J=Q.pop();Z.apply(this,Q).then(($)=>{try{X?J(null,...X($)):J(null,$)}catch(Y){J(Y)}},J)}:Z},MT=nJ0;var sJ0=new Set(["localhost"]),DT=(Z)=>{let X=Z.split(".");if(X.length!==4)return!1;if(X[0]!=="127")return!1;return X.every((Q)=>/^\d+$/.test(Q)&&Number(Q)>=0&&Number(Q)<=255)},aJ0=(Z)=>{if(Z==="::1")return!0;let X=Z.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(X)return DT(X[1]);let Q=Z.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(Q){let $=parseInt(Q[1],16);return $>=32512&&$<=32767}let J=Z.split(":");if(J.length===8){for(let $=0;$<7;$++)if(!/^0+$/.test(J[$]))return!1;return/^0*1$/.test(J[7])}return!1},FT=(Z)=>{if(!Z)return!1;if(sJ0.has(Z))return!0;if(DT(Z))return!0;return aJ0(Z)},rJ0={http:80,https:443,ws:80,wss:443,ftp:21},tJ0=(Z)=>{let X=Z,Q=0;if(X.charAt(0)==="["){let Y=X.indexOf("]");if(Y!==-1){let q=X.slice(1,Y),K=X.slice(Y+1);if(K.charAt(0)===":"&&/^\d+$/.test(K.slice(1)))Q=Number.parseInt(K.slice(1),10);return[q,Q]}}let J=X.indexOf(":"),$=X.lastIndexOf(":");if(J!==-1&&J===$&&/^\d+$/.test(X.slice($+1)))Q=Number.parseInt(X.slice($+1),10),X=X.slice(0,$);return[X,Q]},eJ0=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,Z$0=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,X$0=(Z)=>{if(typeof Z!=="string"||Z.indexOf(":")===-1)return Z;let X=Z.match(eJ0);if(X)return X[1];let Q=Z.match(Z$0);if(Q){let J=parseInt(Q[1],16),$=parseInt(Q[2],16);return`${J>>8}.${J&255}.${$>>8}.${$&255}`}return Z},NT=(Z)=>{if(!Z)return Z;if(Z.charAt(0)==="["&&Z.charAt(Z.length-1)==="]")Z=Z.slice(1,-1);return X$0(Z.replace(/\.+$/,""))};function lH(Z){let X;try{X=new URL(Z)}catch(Y){return!1}let Q=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!Q)return!1;if(Q==="*")return!0;let J=Number.parseInt(X.port,10)||rJ0[X.protocol.split(":",1)[0]]||0,$=NT(X.hostname.toLowerCase());return Q.split(/[\s,]+/).some((Y)=>{if(!Y)return!1;let[q,K]=tJ0(Y);if(q=NT(q),!q)return!1;if(K&&K!==J)return!1;if(q.charAt(0)==="*")q=q.slice(1);if(q.charAt(0)===".")return $.endsWith(q);return $===q||FT($)&&FT(q)})}function Q$0(Z,X){Z=Z||10;let Q=new Array(Z),J=new Array(Z),$=0,Y=0,q;return X=X!==void 0?X:1000,function K(W){let V=Date.now(),U=J[Y];if(!q)q=V;Q[$]=W,J[$]=V;let H=Y,x=0;while(H!==$)x+=Q[H++],H=H%Z;if($=($+1)%Z,$===Y)Y=(Y+1)%Z;if(V-q<X)return;let M=U&&V-U;return M?Math.round(x*1000/M):void 0}}var LT=Q$0;function J$0(Z,X){let Q=0,J=1000/X,$,Y,q=(V,U=Date.now())=>{if(Q=U,$=null,Y)clearTimeout(Y),Y=null;Z(...V)};return[(...V)=>{let U=Date.now(),H=U-Q;if(H>=J)q(V,U);else if($=V,!Y)Y=setTimeout(()=>{Y=null,q($)},J-H)},()=>$&&q($)]}var jT=J$0;var V5=(Z,X,Q=3)=>{let J=0,$=LT(50,250);return jT((Y)=>{let q=Y.loaded,K=Y.lengthComputable?Y.total:void 0,W=K!=null?Math.min(q,K):q,V=Math.max(0,W-J),U=$(V);J=Math.max(J,W);let H={loaded:W,total:K,progress:K?W/K:void 0,bytes:V,rate:U?U:void 0,estimated:U&&K?(K-W)/U:void 0,event:Y,lengthComputable:K!=null,[X?"download":"upload"]:!0};Z(H)},Q)},n3=(Z,X)=>{let Q=Z!=null;return[(J)=>X[0]({lengthComputable:Q,total:Z,loaded:J}),X[1]]},s3=(Z)=>(...X)=>E.asap(()=>Z(...X));function NJ(Z){if(!Z||typeof Z!=="string")return 0;if(!Z.startsWith("data:"))return 0;let X=Z.indexOf(",");if(X<0)return 0;let Q=Z.slice(5,X),J=Z.slice(X+1);if(/;base64/i.test(Q)){let{length:q,length:K}=J;for(let M=0;M<K;M++)if(J.charCodeAt(M)===37&&M+2<K){let F=J.charCodeAt(M+1),D=J.charCodeAt(M+2);if((F>=48&&F<=57||F>=65&&F<=70||F>=97&&F<=102)&&(D>=48&&D<=57||D>=65&&D<=70||D>=97&&D<=102))q-=2,M+=2}let W=0,V=K-1,U=(M)=>M>=2&&J.charCodeAt(M-2)===37&&J.charCodeAt(M-1)===51&&(J.charCodeAt(M)===68||J.charCodeAt(M)===100);if(V>=0){if(J.charCodeAt(V)===61)W++,V--;else if(U(V))W++,V-=3}if(W===1&&V>=0){if(J.charCodeAt(V)===61)W++;else if(U(V))W++}let x=Math.floor(q/4)*3-(W||0);return x>0?x:0}if(typeof Buffer!=="undefined"&&typeof Buffer.byteLength==="function")return Buffer.byteLength(J,"utf8");let Y=0;for(let q=0,K=J.length;q<K;q++){let W=J.charCodeAt(q);if(W<128)Y+=1;else if(W<2048)Y+=2;else if(W>=55296&&W<=56319&&q+1<K){let V=J.charCodeAt(q+1);if(V>=56320&&V<=57343)Y+=4,q++;else Y+=3}else Y+=3}return Y}var CT={flush:$9.constants.Z_SYNC_FLUSH,finishFlush:$9.constants.Z_SYNC_FLUSH},K$0={flush:$9.constants.BROTLI_OPERATION_FLUSH,finishFlush:$9.constants.BROTLI_OPERATION_FLUSH},RT=E.isFunction($9.createBrotliDecompress),{http:W$0,https:z$0}=ET.default,V$0=/https:?/,U$0=["content-type","content-length"];function G$0(Z,X,Q){if(Q!=="content-only"){Z.set(X);return}Object.entries(X).forEach(([J,$])=>{if(U$0.includes(J.toLowerCase()))Z.set(J,$)})}var OT=Symbol("axios.http.socketListener"),xK=Symbol("axios.http.currentReq"),IT=c1.protocols.map((Z)=>{return Z+":"}),_T=(Z)=>{if(!E.isString(Z))return Z;try{return decodeURIComponent(Z)}catch(X){return Z}},ST=(Z,[X,Q])=>{return Z.on("end",Q).on("error",Q),X};class vT{constructor(){this.sessions=Object.create(null)}getSession(Z,X){X=Object.assign({sessionTimeout:1000},X);let Q=this.sessions[Z];if(Q){let V=Q.length;for(let U=0;U<V;U++){let[H,x]=Q[U];if(!H.destroyed&&!H.closed&&AT.isDeepStrictEqual(x,X))return H}}let J=PT.connect(Z,X),$,Y=()=>{if($)return;$=!0;let V=Q,U=V.length,H=U;while(H--)if(V[H][0]===J){if(U===1)delete this.sessions[Z];else V.splice(H,1);if(!J.closed)J.close();return}},q=J.request,{sessionTimeout:K}=X;if(K!=null){let V,U=0;J.request=function(){let H=q.apply(this,arguments);if(U++,V)clearTimeout(V),V=null;return H.once("close",()=>{if(!--U)V=setTimeout(()=>{V=null,Y()},K)}),H}}J.once("close",Y);let W=[J,X];return Q?Q.push(W):Q=this.sessions[Z]=[W],J}}var H$0=new vT;function x$0(Z,X,Q){if(Z.beforeRedirects.proxy)Z.beforeRedirects.proxy(Z);if(Z.beforeRedirects.config)Z.beforeRedirects.config(Z,X,Q)}function kT(Z,X,Q,J){let $=X;if(!$&&$!==!1){let Y=hS(Q);if(Y){if(!lH(Q))$=new URL(Y)}}if(J&&Z.headers){for(let Y of Object.keys(Z.headers))if(Y.toLowerCase()==="proxy-authorization")delete Z.headers[Y]}if($){let Y=$ instanceof URL,q=(M)=>Y||E.hasOwnProp($,M)?$[M]:void 0,K=q("username"),W=q("password"),V=E.hasOwnProp($,"auth")?$.auth:void 0;if(K)V=(K||"")+":"+(W||"");if(V){let M=typeof V==="object",F=M&&E.hasOwnProp(V,"username")?V.username:void 0,D=M&&E.hasOwnProp(V,"password")?V.password:void 0;if(Boolean(F||D))V=(F||"")+":"+(D||"");else if(M)throw new x0("Invalid proxy authorization",x0.ERR_BAD_OPTION,{proxy:$});let j=Buffer.from(V,"utf8").toString("base64");Z.headers["Proxy-Authorization"]="Basic "+j}let U=!1;for(let M of Object.keys(Z.headers))if(M.toLowerCase()==="host"){U=!0;break}if(!U)Z.headers.host=Z.hostname+(Z.port?":"+Z.port:"");let H=q("hostname")||q("host");Z.hostname=H,Z.host=H,Z.port=q("port"),Z.path=Q;let x=q("protocol");if(x)Z.protocol=x.includes(":")?x:`${x}:`}Z.beforeRedirects.proxy=function Y(q){kT(q,X,q.href,!0)}}var B$0=typeof process!=="undefined"&&E.kindOf(process)==="process",M$0=(Z)=>{return new Promise((X,Q)=>{let J,$,Y=(W,V)=>{if($)return;$=!0,J&&J(W,V)},q=(W)=>{Y(W),X(W)},K=(W)=>{Y(W,!0),Q(W)};Z(q,K,(W)=>J=W).catch(K)})},F$0=({address:Z,family:X})=>{if(!E.isString(Z))throw TypeError("address must be a string");return{address:Z,family:X||(Z.indexOf(".")<0?6:4)}},TT=(Z,X)=>F$0(E.isObject(Z)?Z:{address:Z,family:X}),N$0={request(Z,X){let Q=Z.protocol+"//"+Z.hostname+":"+(Z.port||(Z.protocol==="https:"?443:80)),{http2Options:J,headers:$}=Z,Y=H$0.getSession(Q,J),{HTTP2_HEADER_SCHEME:q,HTTP2_HEADER_METHOD:K,HTTP2_HEADER_PATH:W,HTTP2_HEADER_STATUS:V}=PT.constants,U={[q]:Z.protocol.replace(":",""),[K]:Z.method,[W]:Z.path};E.forEach($,(x,M)=>{M.charAt(0)!==":"&&(U[M]=x)});let H=Y.request(U);return H.once("response",(x)=>{let M=H;x=Object.assign({},x);let F=x[V];delete x[V],M.headers=x,M.statusCode=+F,X(M)}),H}},fT=B$0&&function Z(X){return M$0(async function Q(J,$,Y){let q=(L0)=>E.hasOwnProp(X,L0)?X[L0]:void 0,K=q("data"),W=q("lookup"),V=q("family"),U=q("httpVersion");if(U===void 0)U=1;let H=q("http2Options"),x=q("responseType"),M=q("responseEncoding"),F=X.method.toUpperCase(),D,C=!1,j,I;if(U=+U,Number.isNaN(U))throw TypeError(`Invalid protocol version: '${X.httpVersion}' is not a number`);if(U!==1&&U!==2)throw TypeError(`Unsupported protocol version '${U}'`);let v=U===2;if(W){let L0=MT(W,(V0)=>E.isArray(V0)?V0:[V0]);W=(V0,Y0,E0)=>{L0(V0,Y0,(n,t,z0)=>{if(n)return E0(n);let O0=E.isArray(t)?t.map((r0)=>TT(r0)):[TT(t,z0)];Y0.all?E0(n,O0):E0(n,O0[0].address,O0[0].family)})}}let S=new q$0;function c(L0){try{S.emit("abort",!L0||L0.type?new a4(null,X,j):L0)}catch(V0){console.warn("emit error",V0)}}function Z0(){if(I)clearTimeout(I),I=null}function Q0(){let L0=X.timeout?"timeout of "+X.timeout+"ms exceeded":"timeout exceeded",V0=X.transitional||J9;if(X.timeoutErrorMessage)L0=X.timeoutErrorMessage;return new x0(L0,V0.clarifyTimeoutError?x0.ETIMEDOUT:x0.ECONNABORTED,X,j)}S.once("abort",$);let A=()=>{if(Z0(),X.cancelToken)X.cancelToken.unsubscribe(c);if(X.signal)X.signal.removeEventListener("abort",c);S.removeAllListeners()};if(X.cancelToken||X.signal){if(X.cancelToken&&X.cancelToken.subscribe(c),X.signal)X.signal.aborted?c():X.signal.addEventListener("abort",c)}Y((L0,V0)=>{if(D=!0,Z0(),V0){C=!0,A();return}let{data:Y0}=L0;if(Y0 instanceof Q7.Readable||Y0 instanceof Q7.Duplex){let E0=Q7.finished(Y0,()=>{E0(),A()})}else A()});let y=UZ(X.baseURL,X.url,X.allowAbsoluteUrls),J0=new URL(y,c1.hasBrowserEnv?c1.origin:void 0),k=J0.protocol||IT[0];if(k==="data:"){if(X.maxContentLength>-1){let V0=String(X.url||y||"");if(NJ(V0)>X.maxContentLength)return $(new x0("maxContentLength size of "+X.maxContentLength+" exceeded",x0.ERR_BAD_RESPONSE,X))}let L0;if(F!=="GET")return I7(J,$,{status:405,statusText:"method not allowed",headers:{},config:X});try{L0=hH(X.url,x==="blob",{Blob:X.env&&X.env.Blob})}catch(V0){throw x0.from(V0,x0.ERR_BAD_REQUEST,X)}if(x==="text"){if(L0=L0.toString(M),!M||M==="utf8")L0=E.stripBOM(L0)}else if(x==="stream")L0=Q7.Readable.from(L0);return I7(J,$,{data:L0,status:200,statusText:"OK",headers:new N2,config:X})}if(IT.indexOf(k)===-1)return $(new x0("Unsupported protocol "+k,x0.ERR_BAD_REQUEST,X));let N0=N2.from(X.headers).normalize();N0.set("User-Agent","axios/"+z5,!1);let{onUploadProgress:v0,onDownloadProgress:f0}=X,r=X.maxRate,s=void 0,n0=void 0;if(E.isSpecCompliantForm(K)){let L0=N0.getContentType(/boundary=([-_\w\d]{10,70})/i);K=HT(K,(V0)=>{N0.set(V0)},{tag:`axios-${z5}-boundary`,boundary:L0&&L0[1]||void 0})}else if(E.isFormData(K)&&E.isFunction(K.getHeaders)&&K.getHeaders!==Object.prototype.getHeaders){if(G$0(N0,K.getHeaders(),q("formDataHeaderPolicy")),!N0.hasContentLength())try{let L0=await AT.promisify(K.getLength).call(K);Number.isFinite(L0)&&L0>=0&&N0.setContentLength(L0)}catch(L0){}}else if(E.isBlob(K)||E.isFile(K))K.size&&N0.setContentType(K.type||"application/octet-stream"),N0.setContentLength(K.size||0),K=Q7.Readable.from(HK(K));else if(K&&!E.isStream(K)){if(Buffer.isBuffer(K));else if(E.isArrayBuffer(K))K=Buffer.from(new Uint8Array(K));else if(E.isString(K))K=Buffer.from(K,"utf-8");else return $(new x0("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",x0.ERR_BAD_REQUEST,X));if(N0.setContentLength(K.length,!1),X.maxBodyLength>-1&&K.length>X.maxBodyLength)return $(new x0("Request body larger than maxBodyLength limit",x0.ERR_BAD_REQUEST,X))}let p0=E.toFiniteNumber(N0.getContentLength());if(E.isArray(r))s=r[0],n0=r[1];else s=n0=r;if(K&&(v0||s)){if(!E.isStream(K))K=Q7.Readable.from(K,{objectMode:!1});K=Q7.pipeline([K,new pH({maxRate:E.toFiniteNumber(s)})],E.noop),v0&&K.on("progress",ST(K,n3(p0,V5(s3(v0),!1,3))))}let G1=void 0,s0=q("auth");if(s0){let L0=s0.username||"",V0=s0.password||"";G1=L0+":"+V0}if(!G1&&J0.username){let L0=_T(J0.username),V0=_T(J0.password);G1=L0+":"+V0}G1&&N0.delete("authorization");let u0;try{u0=VZ(J0.pathname+J0.search,X.params,X.paramsSerializer).replace(/^\?/,"")}catch(L0){let V0=new Error(L0.message);return V0.config=X,V0.url=X.url,V0.exists=!0,$(V0)}N0.set("Accept-Encoding","gzip, compress, deflate"+(RT?", br":""),!1);let I1=Object.assign(Object.create(null),{path:u0,method:F,headers:N0.toJSON(),agents:{http:X.httpAgent,https:X.httpsAgent},auth:G1,protocol:k,family:V,beforeRedirect:x$0,beforeRedirects:Object.create(null),http2Options:H});if(!E.isUndefined(W)&&(I1.lookup=W),X.socketPath){if(typeof X.socketPath!=="string")return $(new x0("socketPath must be a string",x0.ERR_BAD_OPTION_VALUE,X));if(X.allowedSocketPaths!=null){let L0=Array.isArray(X.allowedSocketPaths)?X.allowedSocketPaths:[X.allowedSocketPaths],V0=wT(X.socketPath);if(!L0.some((E0)=>typeof E0==="string"&&wT(E0)===V0))return $(new x0(`socketPath "${X.socketPath}" is not permitted by allowedSocketPaths`,x0.ERR_BAD_OPTION_VALUE,X))}I1.socketPath=X.socketPath}else I1.hostname=J0.hostname.startsWith("[")?J0.hostname.slice(1,-1):J0.hostname,I1.port=J0.port,kT(I1,X.proxy,k+"//"+J0.hostname+(J0.port?":"+J0.port:"")+I1.path);let T1,b1=!1,C1=V$0.test(I1.protocol);if(I1.agent=C1?X.httpsAgent:X.httpAgent,v)T1=N$0;else{let L0=q("transport");if(L0)T1=L0;else if(X.maxRedirects===0)T1=C1?Y$0:$$0,b1=!0;else{if(X.maxRedirects)I1.maxRedirects=X.maxRedirects;let V0=q("beforeRedirect");if(V0)I1.beforeRedirects.config=V0;T1=C1?z$0:W$0}}if(X.maxBodyLength>-1)I1.maxBodyLength=X.maxBodyLength;else I1.maxBodyLength=1/0;I1.insecureHTTPParser=Boolean(q("insecureHTTPParser")),j=T1.request(I1,function L0(V0){if(Z0(),j.destroyed)return;let Y0=[V0],E0=E.toFiniteNumber(V0.headers["content-length"]);if(f0||n0){let O0=new pH({maxRate:E.toFiniteNumber(n0)});f0&&O0.on("progress",ST(O0,n3(E0,V5(s3(f0),!0,3)))),Y0.push(O0)}let n=V0,t=V0.req||j;if(X.decompress!==!1&&V0.headers["content-encoding"]){if(F==="HEAD"||V0.statusCode===204)delete V0.headers["content-encoding"];switch((V0.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":Y0.push($9.createUnzip(CT)),delete V0.headers["content-encoding"];break;case"deflate":Y0.push(new BT),Y0.push($9.createUnzip(CT)),delete V0.headers["content-encoding"];break;case"br":if(RT)Y0.push($9.createBrotliDecompress(K$0)),delete V0.headers["content-encoding"]}}n=Y0.length>1?Q7.pipeline(Y0,E.noop):Y0[0];let z0={status:V0.statusCode,statusText:V0.statusMessage,headers:new N2(V0.headers),config:X,request:t};if(x==="stream"){if(X.maxContentLength>-1){let O0=X.maxContentLength,r0=n;async function*F1(){let j1=0;for await(let G3 of r0){if(j1+=G3.length,j1>O0)throw new x0("maxContentLength size of "+O0+" exceeded",x0.ERR_BAD_RESPONSE,X,t);yield G3}}n=Q7.Readable.from(F1(),{objectMode:!1})}z0.data=n,I7(J,$,z0)}else{let O0=[],r0=0;n.on("data",function F1(j1){if(O0.push(j1),r0+=j1.length,X.maxContentLength>-1&&r0>X.maxContentLength)C=!0,n.destroy(),c(new x0("maxContentLength size of "+X.maxContentLength+" exceeded",x0.ERR_BAD_RESPONSE,X,t))}),n.on("aborted",function F1(){if(C)return;let j1=new x0("stream has been aborted",x0.ERR_BAD_RESPONSE,X,t,z0);n.destroy(j1),$(j1)}),n.on("error",function F1(j1){if(C)return;$(x0.from(j1,null,X,t,z0))}),n.on("end",function F1(){try{let j1=O0.length===1?O0[0]:Buffer.concat(O0);if(x!=="arraybuffer"){if(j1=j1.toString(M),!M||M==="utf8")j1=E.stripBOM(j1)}z0.data=j1}catch(j1){return $(x0.from(j1,null,X,z0.request,z0))}I7(J,$,z0)})}S.once("abort",(O0)=>{if(!n.destroyed)n.emit("error",O0),n.destroy()})}),S.once("abort",(L0)=>{if(j.close)j.close();else j.destroy(L0)}),j.on("error",function L0(V0){$(x0.from(V0,null,X,j))});let y0=new Set;if(j.on("socket",function L0(V0){if(V0.setKeepAlive(!0,60000),!V0[OT])V0.on("error",function Y0(E0){let n=V0[xK];if(n&&!n.destroyed)n.destroy(E0)}),V0[OT]=!0;V0[xK]=j,y0.add(V0)}),j.once("close",function L0(){Z0();for(let V0 of y0)if(V0[xK]===j)V0[xK]=null;y0.clear()}),X.timeout){let L0=parseInt(X.timeout,10);if(Number.isNaN(L0)){c(new x0("error trying to parse `config.timeout` to int",x0.ERR_BAD_OPTION_VALUE,X,j));return}let V0=function Y0(){if(D)return;c(Q0())};if(b1&&L0>0)I=setTimeout(V0,L0);j.setTimeout(L0,V0)}else j.setTimeout(0);if(E.isStream(K)){let L0=!1,V0=!1;K.on("end",()=>{L0=!0}),K.once("error",(E0)=>{V0=!0,j.destroy(E0)}),K.on("close",()=>{if(!L0&&!V0)c(new a4("Request stream has been aborted",X,j))});let Y0=K;if(X.maxBodyLength>-1&&X.maxRedirects===0){let E0=X.maxBodyLength,n=0;Y0=Q7.pipeline([K,new Q7.Transform({transform(t,z0,O0){if(n+=t.length,n>E0)return O0(new x0("Request body larger than maxBodyLength limit",x0.ERR_BAD_REQUEST,X,j));O0(null,t)}})],E.noop),Y0.on("error",(t)=>{if(!j.destroyed)j.destroy(t)})}Y0.pipe(j)}else K&&j.write(K),j.end()})};var bT=c1.hasStandardBrowserEnv?((Z,X)=>(Q)=>{return Q=new URL(Q,c1.origin),Z.protocol===Q.protocol&&Z.host===Q.host&&(X||Z.port===Q.port)})(new URL(c1.origin),c1.navigator&&/(msie|trident)/i.test(c1.navigator.userAgent)):()=>!0;var mT=c1.hasStandardBrowserEnv?{write(Z,X,Q,J,$,Y,q){if(typeof document==="undefined")return;let K=[`${Z}=${encodeURIComponent(X)}`];if(E.isNumber(Q))K.push(`expires=${new Date(Q).toUTCString()}`);if(E.isString(J))K.push(`path=${J}`);if(E.isString($))K.push(`domain=${$}`);if(Y===!0)K.push("secure");if(E.isString(q))K.push(`SameSite=${q}`);document.cookie=K.join("; ")},read(Z){if(typeof document==="undefined")return null;let X=document.cookie.split(";");for(let Q=0;Q<X.length;Q++){let J=X[Q].replace(/^\s+/,""),$=J.indexOf("=");if($!==-1&&J.slice(0,$)===Z)return decodeURIComponent(J.slice($+1))}return null},remove(Z){this.write(Z,"",Date.now()-86400000,"/")}}:{write(){},read(){return null},remove(){}};var yT=(Z)=>Z instanceof N2?{...Z}:Z;function J7(Z,X){X=X||{};let Q=Object.create(null);Object.defineProperty(Q,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function J(V,U,H,x){if(E.isPlainObject(V)&&E.isPlainObject(U))return E.merge.call({caseless:x},V,U);else if(E.isPlainObject(U))return E.merge({},U);else if(E.isArray(U))return U.slice();return U}function $(V,U,H,x){if(!E.isUndefined(U))return J(V,U,H,x);else if(!E.isUndefined(V))return J(void 0,V,H,x)}function Y(V,U){if(!E.isUndefined(U))return J(void 0,U)}function q(V,U){if(!E.isUndefined(U))return J(void 0,U);else if(!E.isUndefined(V))return J(void 0,V)}function K(V,U,H){if(E.hasOwnProp(X,H))return J(V,U);else if(E.hasOwnProp(Z,H))return J(void 0,V)}let W={url:Y,method:Y,data:Y,baseURL:q,transformRequest:q,transformResponse:q,paramsSerializer:q,timeout:q,timeoutMessage:q,withCredentials:q,withXSRFToken:q,adapter:q,responseType:q,xsrfCookieName:q,xsrfHeaderName:q,onUploadProgress:q,onDownloadProgress:q,decompress:q,maxContentLength:q,maxBodyLength:q,beforeRedirect:q,transport:q,httpAgent:q,httpsAgent:q,cancelToken:q,socketPath:q,allowedSocketPaths:q,responseEncoding:q,validateStatus:K,headers:(V,U,H)=>$(yT(V),yT(U),H,!0)};return E.forEach(Object.keys({...Z,...X}),function V(U){if(U==="__proto__"||U==="constructor"||U==="prototype")return;let H=E.hasOwnProp(W,U)?W[U]:$,x=E.hasOwnProp(Z,U)?Z[U]:void 0,M=E.hasOwnProp(X,U)?X[U]:void 0,F=H(x,M,U);E.isUndefined(F)&&H!==K||(Q[U]=F)}),Q}var D$0=["content-type","content-length"];function L$0(Z,X,Q){if(Q!=="content-only"){Z.set(X);return}Object.entries(X).forEach(([J,$])=>{if(D$0.includes(J.toLowerCase()))Z.set(J,$)})}var j$0=(Z)=>encodeURIComponent(Z).replace(/%([0-9A-F]{2})/gi,(X,Q)=>String.fromCharCode(parseInt(Q,16))),BK=(Z)=>{let X=J7({},Z),Q=(x)=>E.hasOwnProp(X,x)?X[x]:void 0,J=Q("data"),$=Q("withXSRFToken"),Y=Q("xsrfHeaderName"),q=Q("xsrfCookieName"),K=Q("headers"),W=Q("auth"),V=Q("baseURL"),U=Q("allowAbsoluteUrls"),H=Q("url");if(X.headers=K=N2.from(K),X.url=VZ(UZ(V,H,U),Z.params,Z.paramsSerializer),W)K.set("Authorization","Basic "+btoa((W.username||"")+":"+(W.password?j$0(W.password):"")));if(E.isFormData(J)){if(c1.hasStandardBrowserEnv||c1.hasStandardBrowserWebWorkerEnv)K.setContentType(void 0);else if(E.isFunction(J.getHeaders))L$0(K,J.getHeaders(),Q("formDataHeaderPolicy"))}if(c1.hasStandardBrowserEnv){if(E.isFunction($))$=$(X);if($===!0||$==null&&bT(X.url)){let M=Y&&q&&mT.read(q);if(M)K.set(Y,M)}}return X};var w$0=typeof XMLHttpRequest!=="undefined",gT=w$0&&function(Z){return new Promise(function X(Q,J){let $=BK(Z),Y=$.data,q=N2.from($.headers).normalize(),{responseType:K,onUploadProgress:W,onDownloadProgress:V}=$,U,H,x,M,F;function D(){M&&M(),F&&F(),$.cancelToken&&$.cancelToken.unsubscribe(U),$.signal&&$.signal.removeEventListener("abort",U)}let C=new XMLHttpRequest;C.open($.method.toUpperCase(),$.url,!0),C.timeout=$.timeout;function j(){if(!C)return;let v=N2.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),c={data:!K||K==="text"||K==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:v,config:Z,request:C};I7(function Z0(Q0){Q(Q0),D()},function Z0(Q0){J(Q0),D()},c),C=null}if("onloadend"in C)C.onloadend=j;else C.onreadystatechange=function v(){if(!C||C.readyState!==4)return;if(C.status===0&&!(C.responseURL&&C.responseURL.startsWith("file:")))return;setTimeout(j)};if(C.onabort=function v(){if(!C)return;J(new x0("Request aborted",x0.ECONNABORTED,Z,C)),D(),C=null},C.onerror=function v(S){let c=S&&S.message?S.message:"Network Error",Z0=new x0(c,x0.ERR_NETWORK,Z,C);Z0.event=S||null,J(Z0),D(),C=null},C.ontimeout=function v(){let S=$.timeout?"timeout of "+$.timeout+"ms exceeded":"timeout exceeded",c=$.transitional||J9;if($.timeoutErrorMessage)S=$.timeoutErrorMessage;J(new x0(S,c.clarifyTimeoutError?x0.ETIMEDOUT:x0.ECONNABORTED,Z,C)),D(),C=null},Y===void 0&&q.setContentType(null),"setRequestHeader"in C)E.forEach(q.toJSON(),function v(S,c){C.setRequestHeader(c,S)});if(!E.isUndefined($.withCredentials))C.withCredentials=!!$.withCredentials;if(K&&K!=="json")C.responseType=$.responseType;if(V)[x,F]=V5(V,!0),C.addEventListener("progress",x);if(W&&C.upload)[H,M]=V5(W),C.upload.addEventListener("progress",H),C.upload.addEventListener("loadend",M);if($.cancelToken||$.signal){if(U=(v)=>{if(!C)return;J(!v||v.type?new a4(null,Z,C):v),C.abort(),D(),C=null},$.cancelToken&&$.cancelToken.subscribe(U),$.signal)$.signal.aborted?U():$.signal.addEventListener("abort",U)}let I=MJ($.url);if(I&&!c1.protocols.includes(I)){J(new x0("Unsupported protocol "+I+":",x0.ERR_BAD_REQUEST,Z));return}C.send(Y||null)})};var C$0=(Z,X)=>{let{length:Q}=Z=Z?Z.filter(Boolean):[];if(X||Q){let J=new AbortController,$,Y=function(V){if(!$){$=!0,K();let U=V instanceof Error?V:this.reason;J.abort(U instanceof x0?U:new a4(U instanceof Error?U.message:U))}},q=X&&setTimeout(()=>{q=null,Y(new x0(`timeout of ${X}ms exceeded`,x0.ETIMEDOUT))},X),K=()=>{if(Z)q&&clearTimeout(q),q=null,Z.forEach((V)=>{V.unsubscribe?V.unsubscribe(Y):V.removeEventListener("abort",Y)}),Z=null};Z.forEach((V)=>V.addEventListener("abort",Y));let{signal:W}=J;return W.unsubscribe=()=>E.asap(K),W}},cT=C$0;var R$0=function*(Z,X){let Q=Z.byteLength;if(!X||Q<X){yield Z;return}let J=0,$;while(J<Q)$=J+X,yield Z.slice(J,$),J=$},O$0=async function*(Z,X){for await(let Q of I$0(Z))yield*R$0(Q,X)},I$0=async function*(Z){if(Z[Symbol.asyncIterator]){yield*Z;return}let X=Z.getReader();try{for(;;){let{done:Q,value:J}=await X.read();if(Q)break;yield J}}finally{await X.cancel()}},iH=(Z,X,Q,J)=>{let $=O$0(Z,X),Y=0,q,K=(W)=>{if(!q)q=!0,J&&J(W)};return new ReadableStream({async pull(W){try{let{done:V,value:U}=await $.next();if(V){K(),W.close();return}let H=U.byteLength;if(Q){let x=Y+=H;Q(x)}W.enqueue(new Uint8Array(U))}catch(V){throw K(V),V}},cancel(W){return K(W),$.return()}},{highWaterMark:2})};var uT=65536,{isFunction:MK}=E,hT=(Z,...X)=>{try{return!!Z(...X)}catch(Q){return!1}},_$0=(Z)=>{let X=E.global??globalThis,{ReadableStream:Q,TextEncoder:J}=X;Z=E.merge.call({skipUndefined:!0},{Request:X.Request,Response:X.Response},Z);let{fetch:$,Request:Y,Response:q}=Z,K=$?MK($):typeof fetch==="function",W=MK(Y),V=MK(q);if(!K)return!1;let U=K&&MK(Q),H=K&&(typeof J==="function"?((j)=>(I)=>j.encode(I))(new J):async(j)=>new Uint8Array(await new Y(j).arrayBuffer())),x=W&&U&&hT(()=>{let j=!1,I=new Y(c1.origin,{body:new Q,method:"POST",get duplex(){return j=!0,"half"}}),v=I.headers.has("Content-Type");if(I.body!=null)I.body.cancel();return j&&!v}),M=V&&U&&hT(()=>E.isReadableStream(new q("").body)),F={stream:M&&((j)=>j.body)};K&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((j)=>{!F[j]&&(F[j]=(I,v)=>{let S=I&&I[j];if(S)return S.call(I);throw new x0(`Response type '${j}' is not supported`,x0.ERR_NOT_SUPPORT,v)})})})();let D=async(j)=>{if(j==null)return 0;if(E.isBlob(j))return j.size;if(E.isSpecCompliantForm(j))return(await new Y(c1.origin,{method:"POST",body:j}).arrayBuffer()).byteLength;if(E.isArrayBufferView(j)||E.isArrayBuffer(j))return j.byteLength;if(E.isURLSearchParams(j))j=j+"";if(E.isString(j))return(await H(j)).byteLength},C=async(j,I)=>{let v=E.toFiniteNumber(j.getContentLength());return v==null?D(I):v};return async(j)=>{let{url:I,method:v,data:S,signal:c,cancelToken:Z0,timeout:Q0,onDownloadProgress:A,onUploadProgress:y,responseType:J0,headers:k,withCredentials:N0="same-origin",fetchOptions:v0,maxContentLength:f0,maxBodyLength:r}=BK(j),s=E.isNumber(f0)&&f0>-1,n0=E.isNumber(r)&&r>-1,p0=$||fetch;J0=J0?(J0+"").toLowerCase():"text";let G1=cT([c,Z0&&Z0.toAbortSignal()],Q0),s0=null,u0=G1&&G1.unsubscribe&&(()=>{G1.unsubscribe()}),I1;try{if(s&&typeof I==="string"&&I.startsWith("data:")){if(NJ(I)>f0)throw new x0("maxContentLength size of "+f0+" exceeded",x0.ERR_BAD_RESPONSE,j,s0)}if(n0&&v!=="get"&&v!=="head"){let V0=await C(k,S);if(typeof V0==="number"&&isFinite(V0)&&V0>r)throw new x0("Request body larger than maxBodyLength limit",x0.ERR_BAD_REQUEST,j,s0)}if(y&&x&&v!=="get"&&v!=="head"&&(I1=await C(k,S))!==0){let V0=new Y(I,{method:"POST",body:S,duplex:"half"}),Y0;if(E.isFormData(S)&&(Y0=V0.headers.get("content-type")))k.setContentType(Y0);if(V0.body){let[E0,n]=n3(I1,V5(s3(y)));S=iH(V0.body,uT,E0,n)}}if(!E.isString(N0))N0=N0?"include":"omit";let T1=W&&"credentials"in Y.prototype;if(E.isFormData(S)){let V0=k.getContentType();if(V0&&/^multipart\/form-data/i.test(V0)&&!/boundary=/i.test(V0))k.delete("content-type")}k.set("User-Agent","axios/"+z5,!1);let b1={...v0,signal:G1,method:v.toUpperCase(),headers:k.normalize().toJSON(),body:S,duplex:"half",credentials:T1?N0:void 0};s0=W&&new Y(I,b1);let C1=await(W?p0(s0,v0):p0(I,b1));if(s){let V0=E.toFiniteNumber(C1.headers.get("content-length"));if(V0!=null&&V0>f0)throw new x0("maxContentLength size of "+f0+" exceeded",x0.ERR_BAD_RESPONSE,j,s0)}let y0=M&&(J0==="stream"||J0==="response");if(M&&C1.body&&(A||s||y0&&u0)){let V0={};["status","statusText","headers"].forEach((O0)=>{V0[O0]=C1[O0]});let Y0=E.toFiniteNumber(C1.headers.get("content-length")),[E0,n]=A&&n3(Y0,V5(s3(A),!0))||[],t=0,z0=(O0)=>{if(s){if(t=O0,t>f0)throw new x0("maxContentLength size of "+f0+" exceeded",x0.ERR_BAD_RESPONSE,j,s0)}E0&&E0(O0)};C1=new q(iH(C1.body,uT,z0,()=>{n&&n(),u0&&u0()}),V0)}J0=J0||"text";let L0=await F[E.findKey(F,J0)||"text"](C1,j);if(s&&!M&&!y0){let V0;if(L0!=null){if(typeof L0.byteLength==="number")V0=L0.byteLength;else if(typeof L0.size==="number")V0=L0.size;else if(typeof L0==="string")V0=typeof J==="function"?new J().encode(L0).byteLength:L0.length}if(typeof V0==="number"&&V0>f0)throw new x0("maxContentLength size of "+f0+" exceeded",x0.ERR_BAD_RESPONSE,j,s0)}return!y0&&u0&&u0(),await new Promise((V0,Y0)=>{I7(V0,Y0,{data:L0,headers:N2.from(C1.headers),status:C1.status,statusText:C1.statusText,config:j,request:s0})})}catch(T1){if(u0&&u0(),G1&&G1.aborted&&G1.reason instanceof x0){let b1=G1.reason;throw b1.config=j,s0&&(b1.request=s0),T1!==b1&&(b1.cause=T1),b1}if(T1&&T1.name==="TypeError"&&/Load failed|fetch/i.test(T1.message))throw Object.assign(new x0("Network Error",x0.ERR_NETWORK,j,s0,T1&&T1.response),{cause:T1.cause||T1});throw x0.from(T1,T1&&T1.code,j,s0,T1&&T1.response)}}},S$0=new Map,oH=(Z)=>{let X=Z&&Z.env||{},{fetch:Q,Request:J,Response:$}=X,Y=[J,$,Q],q=Y.length,K=q,W,V,U=S$0;while(K--)W=Y[K],V=U.get(W),V===void 0&&U.set(W,V=K?new Map:_$0(X)),U=V;return V},L81=oH();var nH={http:fT,xhr:gT,fetch:{get:oH}};E.forEach(nH,(Z,X)=>{if(Z){try{Object.defineProperty(Z,"name",{__proto__:null,value:X})}catch(Q){}Object.defineProperty(Z,"adapterName",{__proto__:null,value:X})}});var dT=(Z)=>`- ${Z}`,P$0=(Z)=>E.isFunction(Z)||Z===null||Z===!1;function A$0(Z,X){Z=E.isArray(Z)?Z:[Z];let{length:Q}=Z,J,$,Y={};for(let q=0;q<Q;q++){J=Z[q];let K;if($=J,!P$0(J)){if($=nH[(K=String(J)).toLowerCase()],$===void 0)throw new x0(`Unknown adapter '${K}'`)}if($&&(E.isFunction($)||($=$.get(X))))break;Y[K||"#"+q]=$}if(!$){let q=Object.entries(Y).map(([W,V])=>`adapter ${W} `+(V===!1?"is not supported by the environment":"is not available in the build")),K=Q?q.length>1?`since :
|
|
@@ -474,14 +474,7 @@ Type DataTable (elem_name_as: 'uname') {
|
|
|
474
474
|
|
|
475
475
|
Type PivotTable (elem_name_as: 'uname') {
|
|
476
476
|
dataset: String | Dataset
|
|
477
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
478
|
-
label(optional): String
|
|
479
|
-
description(optional): String
|
|
480
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
481
|
-
calc_type: 'dimension' | 'measure'
|
|
482
|
-
data_type: DataType
|
|
483
|
-
model(optional): String | Model
|
|
484
|
-
}
|
|
477
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
485
478
|
conditions(optional): List[String]
|
|
486
479
|
having_conditions(optional): List[String]
|
|
487
480
|
filter_groups(optional): List[FilterGroup]
|
|
@@ -534,14 +527,7 @@ Type LineFamilySort {
|
|
|
534
527
|
}
|
|
535
528
|
Type CombinationChart (elem_name_as: 'uname') {
|
|
536
529
|
dataset: String | Dataset
|
|
537
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
538
|
-
label(optional): String
|
|
539
|
-
description(optional): String
|
|
540
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
541
|
-
calc_type: 'dimension' | 'measure'
|
|
542
|
-
data_type: DataType
|
|
543
|
-
model(optional): String | Model
|
|
544
|
-
}
|
|
530
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
545
531
|
conditions(optional): List[String]
|
|
546
532
|
having_conditions(optional): List[String]
|
|
547
533
|
filter_groups(optional): List[FilterGroup]
|
|
@@ -602,14 +588,7 @@ Type CombinationChart (elem_name_as: 'uname') {
|
|
|
602
588
|
}
|
|
603
589
|
Type LineChart (elem_name_as: 'uname') {
|
|
604
590
|
dataset: String | Dataset
|
|
605
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
606
|
-
label(optional): String
|
|
607
|
-
description(optional): String
|
|
608
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
609
|
-
calc_type: 'dimension' | 'measure'
|
|
610
|
-
data_type: DataType
|
|
611
|
-
model(optional): String | Model
|
|
612
|
-
}
|
|
591
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
613
592
|
conditions(optional): List[String]
|
|
614
593
|
having_conditions(optional): List[String]
|
|
615
594
|
filter_groups(optional): List[FilterGroup]
|
|
@@ -669,14 +648,7 @@ Type LineChart (elem_name_as: 'uname') {
|
|
|
669
648
|
}
|
|
670
649
|
Type AreaChart (elem_name_as: 'uname') {
|
|
671
650
|
dataset: String | Dataset
|
|
672
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
673
|
-
label(optional): String
|
|
674
|
-
description(optional): String
|
|
675
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
676
|
-
calc_type: 'dimension' | 'measure'
|
|
677
|
-
data_type: DataType
|
|
678
|
-
model(optional): String | Model
|
|
679
|
-
}
|
|
651
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
680
652
|
conditions(optional): List[String]
|
|
681
653
|
having_conditions(optional): List[String]
|
|
682
654
|
filter_groups(optional): List[FilterGroup]
|
|
@@ -736,14 +708,7 @@ Type AreaChart (elem_name_as: 'uname') {
|
|
|
736
708
|
}
|
|
737
709
|
Type ColumnChart (elem_name_as: 'uname') {
|
|
738
710
|
dataset: String | Dataset
|
|
739
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
740
|
-
label(optional): String
|
|
741
|
-
description(optional): String
|
|
742
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
743
|
-
calc_type: 'dimension' | 'measure'
|
|
744
|
-
data_type: DataType
|
|
745
|
-
model(optional): String | Model
|
|
746
|
-
}
|
|
711
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
747
712
|
conditions(optional): List[String]
|
|
748
713
|
having_conditions(optional): List[String]
|
|
749
714
|
filter_groups(optional): List[FilterGroup]
|
|
@@ -801,14 +766,7 @@ Type ColumnChart (elem_name_as: 'uname') {
|
|
|
801
766
|
}
|
|
802
767
|
Type BarChart (elem_name_as: 'uname') {
|
|
803
768
|
dataset: String | Dataset
|
|
804
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
805
|
-
label(optional): String
|
|
806
|
-
description(optional): String
|
|
807
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
808
|
-
calc_type: 'dimension' | 'measure'
|
|
809
|
-
data_type: DataType
|
|
810
|
-
model(optional): String | Model
|
|
811
|
-
}
|
|
769
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
812
770
|
conditions(optional): List[String]
|
|
813
771
|
having_conditions(optional): List[String]
|
|
814
772
|
filter_groups(optional): List[FilterGroup]
|
|
@@ -873,14 +831,7 @@ Type PieFamilySort {
|
|
|
873
831
|
|
|
874
832
|
Type PieChart (elem_name_as: 'uname') {
|
|
875
833
|
dataset: String | Dataset
|
|
876
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
877
|
-
label(optional): String
|
|
878
|
-
description(optional): String
|
|
879
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
880
|
-
calc_type: 'dimension' | 'measure'
|
|
881
|
-
data_type: DataType
|
|
882
|
-
model(optional): String | Model
|
|
883
|
-
}
|
|
834
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
884
835
|
conditions(optional): List[String]
|
|
885
836
|
having_conditions(optional): List[String]
|
|
886
837
|
filter_groups(optional): List[FilterGroup]
|
|
@@ -921,14 +872,7 @@ Type PieChart (elem_name_as: 'uname') {
|
|
|
921
872
|
}
|
|
922
873
|
Type PyramidChart {
|
|
923
874
|
dataset: String | Dataset
|
|
924
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
925
|
-
label(optional): String
|
|
926
|
-
description(optional): String
|
|
927
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
928
|
-
calc_type: 'dimension' | 'measure'
|
|
929
|
-
data_type: DataType
|
|
930
|
-
model(optional): String | Model
|
|
931
|
-
}
|
|
875
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
932
876
|
conditions(optional): List[String]
|
|
933
877
|
having_conditions(optional): List[String]
|
|
934
878
|
filter_groups(optional): List[FilterGroup]
|
|
@@ -968,14 +912,7 @@ Type PyramidChart {
|
|
|
968
912
|
}
|
|
969
913
|
Type FunnelChart (elem_name_as: 'uname') {
|
|
970
914
|
dataset: String | Dataset
|
|
971
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
972
|
-
label(optional): String
|
|
973
|
-
description(optional): String
|
|
974
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
975
|
-
calc_type: 'dimension' | 'measure'
|
|
976
|
-
data_type: DataType
|
|
977
|
-
model(optional): String | Model
|
|
978
|
-
}
|
|
915
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
979
916
|
conditions(optional): List[String]
|
|
980
917
|
having_conditions(optional): List[String]
|
|
981
918
|
filter_groups(optional): List[FilterGroup]
|
|
@@ -1016,14 +953,7 @@ Type FunnelChart (elem_name_as: 'uname') {
|
|
|
1016
953
|
|
|
1017
954
|
Type BubbleChart (elem_name_as: 'uname') {
|
|
1018
955
|
dataset: String | Dataset
|
|
1019
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
1020
|
-
label(optional): String
|
|
1021
|
-
description(optional): String
|
|
1022
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
1023
|
-
calc_type: 'dimension' | 'measure'
|
|
1024
|
-
data_type: DataType
|
|
1025
|
-
model(optional): String | Model
|
|
1026
|
-
}
|
|
956
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
1027
957
|
conditions(optional): List[String]
|
|
1028
958
|
having_conditions(optional): List[String]
|
|
1029
959
|
filter_groups(optional): List[FilterGroup]
|
|
@@ -1043,14 +973,7 @@ Type BubbleChart (elem_name_as: 'uname') {
|
|
|
1043
973
|
|
|
1044
974
|
Type ScatterChart (elem_name_as: 'uname') {
|
|
1045
975
|
dataset: String | Dataset
|
|
1046
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
1047
|
-
label(optional): String
|
|
1048
|
-
description(optional): String
|
|
1049
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
1050
|
-
calc_type: 'dimension' | 'measure'
|
|
1051
|
-
data_type: DataType
|
|
1052
|
-
model(optional): String | Model
|
|
1053
|
-
}
|
|
976
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
1054
977
|
conditions(optional): List[String]
|
|
1055
978
|
having_conditions(optional): List[String]
|
|
1056
979
|
filter_groups(optional): List[FilterGroup]
|
|
@@ -1069,14 +992,7 @@ Type ScatterChart (elem_name_as: 'uname') {
|
|
|
1069
992
|
|
|
1070
993
|
Type RetentionHeatmap (elem_name_as: 'uname') {
|
|
1071
994
|
dataset: String | Dataset
|
|
1072
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
1073
|
-
label(optional): String
|
|
1074
|
-
description(optional): String
|
|
1075
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
1076
|
-
calc_type: 'dimension' | 'measure'
|
|
1077
|
-
data_type: DataType
|
|
1078
|
-
model(optional): String | Model
|
|
1079
|
-
}
|
|
995
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
1080
996
|
conditions(optional): List[String]
|
|
1081
997
|
having_conditions(optional): List[String]
|
|
1082
998
|
filter_groups(optional): List[FilterGroup]
|
|
@@ -1098,14 +1014,7 @@ Type RetentionHeatmap (elem_name_as: 'uname') {
|
|
|
1098
1014
|
|
|
1099
1015
|
Type ConversionFunnel (elem_name_as: 'uname') {
|
|
1100
1016
|
dataset: String | Dataset
|
|
1101
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
1102
|
-
label(optional): String
|
|
1103
|
-
description(optional): String
|
|
1104
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
1105
|
-
calc_type: 'dimension' | 'measure'
|
|
1106
|
-
data_type: DataType
|
|
1107
|
-
model(optional): String | Model
|
|
1108
|
-
}
|
|
1017
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
1109
1018
|
conditions(optional): List[String]
|
|
1110
1019
|
having_conditions(optional): List[String]
|
|
1111
1020
|
filter_groups(optional): List[FilterGroup]
|
|
@@ -1144,14 +1053,7 @@ Type MetricHeading {
|
|
|
1144
1053
|
}
|
|
1145
1054
|
Type MetricSheet (elem_name_as: 'uname') {
|
|
1146
1055
|
dataset: String | Dataset
|
|
1147
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
1148
|
-
label(optional): String
|
|
1149
|
-
description(optional): String
|
|
1150
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
1151
|
-
calc_type: 'dimension' | 'measure'
|
|
1152
|
-
data_type: DataType
|
|
1153
|
-
model(optional): String | Model
|
|
1154
|
-
}
|
|
1056
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
1155
1057
|
conditions(optional): List[String]
|
|
1156
1058
|
having_conditions(optional): List[String]
|
|
1157
1059
|
filter_groups(optional): List[FilterGroup]
|
|
@@ -1190,14 +1092,7 @@ Type VizAggregateAwareness {
|
|
|
1190
1092
|
|
|
1191
1093
|
Type MetricKpi (elem_name_as: 'uname') {
|
|
1192
1094
|
dataset: String | Dataset
|
|
1193
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
1194
|
-
label(optional): String
|
|
1195
|
-
description(optional): String
|
|
1196
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
1197
|
-
calc_type: 'dimension' | 'measure'
|
|
1198
|
-
data_type: DataType
|
|
1199
|
-
model(optional): String | Model
|
|
1200
|
-
}
|
|
1095
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
1201
1096
|
conditions(optional): List[String]
|
|
1202
1097
|
having_conditions(optional): List[String]
|
|
1203
1098
|
filter_groups(optional): List[FilterGroup]
|
|
@@ -1233,14 +1128,7 @@ Type MetricKpi (elem_name_as: 'uname') {
|
|
|
1233
1128
|
|
|
1234
1129
|
Type RadarChart (elem_name_as: 'uname') {
|
|
1235
1130
|
dataset: String | Dataset
|
|
1236
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
1237
|
-
label(optional): String
|
|
1238
|
-
description(optional): String
|
|
1239
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
1240
|
-
calc_type: 'dimension' | 'measure'
|
|
1241
|
-
data_type: DataType
|
|
1242
|
-
model(optional): String | Model
|
|
1243
|
-
}
|
|
1131
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
1244
1132
|
conditions(optional): List[String]
|
|
1245
1133
|
having_conditions(optional): List[String]
|
|
1246
1134
|
filter_groups(optional): List[FilterGroup]
|
|
@@ -1269,14 +1157,7 @@ Type RadarChart (elem_name_as: 'uname') {
|
|
|
1269
1157
|
|
|
1270
1158
|
Type WordCloud (elem_name_as: 'uname') {
|
|
1271
1159
|
dataset: String | Dataset
|
|
1272
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
1273
|
-
label(optional): String
|
|
1274
|
-
description(optional): String
|
|
1275
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
1276
|
-
calc_type: 'dimension' | 'measure'
|
|
1277
|
-
data_type: DataType
|
|
1278
|
-
model(optional): String | Model
|
|
1279
|
-
}
|
|
1160
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
1280
1161
|
conditions(optional): List[String]
|
|
1281
1162
|
having_conditions(optional): List[String]
|
|
1282
1163
|
filter_groups(optional): List[FilterGroup]
|
|
@@ -1292,14 +1173,7 @@ Type WordCloud (elem_name_as: 'uname') {
|
|
|
1292
1173
|
|
|
1293
1174
|
Type GaugeChart (elem_name_as: 'uname') {
|
|
1294
1175
|
dataset: String | Dataset
|
|
1295
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
1296
|
-
label(optional): String
|
|
1297
|
-
description(optional): String
|
|
1298
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
1299
|
-
calc_type: 'dimension' | 'measure'
|
|
1300
|
-
data_type: DataType
|
|
1301
|
-
model(optional): String | Model
|
|
1302
|
-
}
|
|
1176
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
1303
1177
|
conditions(optional): List[String]
|
|
1304
1178
|
having_conditions(optional): List[String]
|
|
1305
1179
|
filter_groups(optional): List[FilterGroup]
|
|
@@ -1323,14 +1197,7 @@ Type MapTileProvider = 'light' | 'dark' | 'street' | 'satellite' | 'outdoor' | '
|
|
|
1323
1197
|
|
|
1324
1198
|
Type Heatmap (elem_name_as: 'uname') {
|
|
1325
1199
|
dataset: String | Dataset
|
|
1326
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
1327
|
-
label(optional): String
|
|
1328
|
-
description(optional): String
|
|
1329
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
1330
|
-
calc_type: 'dimension' | 'measure'
|
|
1331
|
-
data_type: DataType
|
|
1332
|
-
model(optional): String | Model
|
|
1333
|
-
}
|
|
1200
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
1334
1201
|
conditions(optional): List[String]
|
|
1335
1202
|
having_conditions(optional): List[String]
|
|
1336
1203
|
filter_groups(optional): List[FilterGroup]
|
|
@@ -1374,14 +1241,7 @@ Type Heatmap (elem_name_as: 'uname') {
|
|
|
1374
1241
|
|
|
1375
1242
|
Type PointMap (elem_name_as: 'uname') {
|
|
1376
1243
|
dataset: String | Dataset
|
|
1377
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
1378
|
-
label(optional): String
|
|
1379
|
-
description(optional): String
|
|
1380
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
1381
|
-
calc_type: 'dimension' | 'measure'
|
|
1382
|
-
data_type: DataType
|
|
1383
|
-
model(optional): String | Model
|
|
1384
|
-
}
|
|
1244
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
1385
1245
|
conditions(optional): List[String]
|
|
1386
1246
|
having_conditions(optional): List[String]
|
|
1387
1247
|
filter_groups(optional): List[FilterGroup]
|
|
@@ -1441,14 +1301,7 @@ Type CustomMapLocation {
|
|
|
1441
1301
|
|
|
1442
1302
|
Type FilledMap (elem_name_as: 'uname') {
|
|
1443
1303
|
dataset: String | Dataset
|
|
1444
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
1445
|
-
label(optional): String
|
|
1446
|
-
description(optional): String
|
|
1447
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
1448
|
-
calc_type: 'dimension' | 'measure'
|
|
1449
|
-
data_type: DataType
|
|
1450
|
-
model(optional): String | Model
|
|
1451
|
-
}
|
|
1304
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
1452
1305
|
conditions(optional): List[String]
|
|
1453
1306
|
having_conditions(optional): List[String]
|
|
1454
1307
|
filter_groups(optional): List[FilterGroup]
|
|
@@ -1512,14 +1365,7 @@ Type FilledMap (elem_name_as: 'uname') {
|
|
|
1512
1365
|
Type CustomChart {
|
|
1513
1366
|
custom_chart_id: Number
|
|
1514
1367
|
dataset: String | Dataset
|
|
1515
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
1516
|
-
label(optional): String
|
|
1517
|
-
description(optional): String
|
|
1518
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
1519
|
-
calc_type: 'dimension' | 'measure'
|
|
1520
|
-
data_type: DataType
|
|
1521
|
-
model(optional): String | Model
|
|
1522
|
-
}
|
|
1368
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
1523
1369
|
conditions(optional): List[String]
|
|
1524
1370
|
having_conditions(optional): List[String]
|
|
1525
1371
|
filter_groups(optional): List[FilterGroup]
|
|
@@ -1535,14 +1381,7 @@ Type CustomChart {
|
|
|
1535
1381
|
|
|
1536
1382
|
Type MarkdownViz (elem_name_as: 'uname') {
|
|
1537
1383
|
dataset: String | Dataset
|
|
1538
|
-
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true)
|
|
1539
|
-
label(optional): String
|
|
1540
|
-
description(optional): String
|
|
1541
|
-
formula: Heredoc['aml' | 'sql' | 'aql']
|
|
1542
|
-
calc_type: 'dimension' | 'measure'
|
|
1543
|
-
data_type: DataType
|
|
1544
|
-
model(optional): String | Model
|
|
1545
|
-
}
|
|
1384
|
+
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
1546
1385
|
conditions(optional): List[String]
|
|
1547
1386
|
having_conditions(optional): List[String]
|
|
1548
1387
|
filter_groups(optional): List[FilterGroup]
|