eslint-plugin-turbo
Version:
ESLint plugin for Turborepo
7 lines (5 loc) • 458 kB
JavaScript
"use strict";var Jw=Object.create;var io=Object.defineProperty;var Zw=Object.getOwnPropertyDescriptor;var Qw=Object.getOwnPropertyNames;var eC=Object.getPrototypeOf,tC=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Qp=(e,t)=>{for(var r in t)io(e,r,{get:t[r],enumerable:!0})},ed=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Qw(t))!tC.call(e,i)&&i!==r&&io(e,i,{get:()=>t[i],enumerable:!(n=Zw(t,i))||n.enumerable});return e};var le=(e,t,r)=>(r=e!=null?Jw(eC(e)):{},ed(t||!e||!e.__esModule?io(r,"default",{value:e,enumerable:!0}):r,e)),rC=e=>ed(io({},"__esModule",{value:!0}),e);var id=d((t9,Zt)=>{function cc(e){return Zt.exports=cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zt.exports.__esModule=!0,Zt.exports.default=Zt.exports,cc(e)}Zt.exports=cc,Zt.exports.__esModule=!0,Zt.exports.default=Zt.exports});var ud=d((r9,Qt)=>{var sd=id().default;function od(){"use strict";Qt.exports=od=function(){return t},Qt.exports.__esModule=!0,Qt.exports.default=Qt.exports;var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(_,w,C){_[w]=C.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",a=s.toStringTag||"@@toStringTag";function c(_,w,C){return Object.defineProperty(_,w,{value:C,enumerable:!0,configurable:!0,writable:!0}),_[w]}try{c({},"")}catch{c=function(C,T,W){return C[T]=W}}function l(_,w,C,T){var W=w&&w.prototype instanceof v?w:v,M=Object.create(W.prototype),ue=new te(T||[]);return i(M,"_invoke",{value:$(_,C,ue)}),M}function f(_,w,C){try{return{type:"normal",arg:_.call(w,C)}}catch(T){return{type:"throw",arg:T}}}t.wrap=l;var h="suspendedStart",g="suspendedYield",y="executing",E="completed",x={};function v(){}function D(){}function F(){}var B={};c(B,o,function(){return this});var k=Object.getPrototypeOf,V=k&&k(k(S([])));V&&V!==r&&n.call(V,o)&&(B=V);var I=F.prototype=v.prototype=Object.create(B);function G(_){["next","throw","return"].forEach(function(w){c(_,w,function(C){return this._invoke(w,C)})})}function P(_,w){function C(W,M,ue,Fe){var ie=f(_[W],_,M);if(ie.type!=="throw"){var be=ie.arg,K=be.value;return K&&sd(K)=="object"&&n.call(K,"__await")?w.resolve(K.__await).then(function(Xe){C("next",Xe,ue,Fe)},function(Xe){C("throw",Xe,ue,Fe)}):w.resolve(K).then(function(Xe){be.value=Xe,ue(be)},function(Xe){return C("throw",Xe,ue,Fe)})}Fe(ie.arg)}var T;i(this,"_invoke",{value:function(M,ue){function Fe(){return new w(function(ie,be){C(M,ue,ie,be)})}return T=T?T.then(Fe,Fe):Fe()}})}function $(_,w,C){var T=h;return function(W,M){if(T===y)throw new Error("Generator is already running");if(T===E){if(W==="throw")throw M;return{value:e,done:!0}}for(C.method=W,C.arg=M;;){var ue=C.delegate;if(ue){var Fe=A(ue,C);if(Fe){if(Fe===x)continue;return Fe}}if(C.method==="next")C.sent=C._sent=C.arg;else if(C.method==="throw"){if(T===h)throw T=E,C.arg;C.dispatchException(C.arg)}else C.method==="return"&&C.abrupt("return",C.arg);T=y;var ie=f(_,w,C);if(ie.type==="normal"){if(T=C.done?E:g,ie.arg===x)continue;return{value:ie.arg,done:C.done}}ie.type==="throw"&&(T=E,C.method="throw",C.arg=ie.arg)}}}function A(_,w){var C=w.method,T=_.iterator[C];if(T===e)return w.delegate=null,C==="throw"&&_.iterator.return&&(w.method="return",w.arg=e,A(_,w),w.method==="throw")||C!=="return"&&(w.method="throw",w.arg=new TypeError("The iterator does not provide a '"+C+"' method")),x;var W=f(T,_.iterator,w.arg);if(W.type==="throw")return w.method="throw",w.arg=W.arg,w.delegate=null,x;var M=W.arg;return M?M.done?(w[_.resultName]=M.value,w.next=_.nextLoc,w.method!=="return"&&(w.method="next",w.arg=e),w.delegate=null,x):M:(w.method="throw",w.arg=new TypeError("iterator result is not an object"),w.delegate=null,x)}function X(_){var w={tryLoc:_[0]};1 in _&&(w.catchLoc=_[1]),2 in _&&(w.finallyLoc=_[2],w.afterLoc=_[3]),this.tryEntries.push(w)}function Y(_){var w=_.completion||{};w.type="normal",delete w.arg,_.completion=w}function te(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(X,this),this.reset(!0)}function S(_){if(_||_===""){var w=_[o];if(w)return w.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var C=-1,T=function W(){for(;++C<_.length;)if(n.call(_,C))return W.value=_[C],W.done=!1,W;return W.value=e,W.done=!0,W};return T.next=T}}throw new TypeError(sd(_)+" is not iterable")}return D.prototype=F,i(I,"constructor",{value:F,configurable:!0}),i(F,"constructor",{value:D,configurable:!0}),D.displayName=c(F,a,"GeneratorFunction"),t.isGeneratorFunction=function(_){var w=typeof _=="function"&&_.constructor;return!!w&&(w===D||(w.displayName||w.name)==="GeneratorFunction")},t.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,F):(_.__proto__=F,c(_,a,"GeneratorFunction")),_.prototype=Object.create(I),_},t.awrap=function(_){return{__await:_}},G(P.prototype),c(P.prototype,u,function(){return this}),t.AsyncIterator=P,t.async=function(_,w,C,T,W){W===void 0&&(W=Promise);var M=new P(l(_,w,C,T),W);return t.isGeneratorFunction(w)?M:M.next().then(function(ue){return ue.done?ue.value:M.next()})},G(I),c(I,a,"Generator"),c(I,o,function(){return this}),c(I,"toString",function(){return"[object Generator]"}),t.keys=function(_){var w=Object(_),C=[];for(var T in w)C.push(T);return C.reverse(),function W(){for(;C.length;){var M=C.pop();if(M in w)return W.value=M,W.done=!1,W}return W.done=!0,W}},t.values=S,te.prototype={constructor:te,reset:function(w){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Y),!w)for(var C in this)C.charAt(0)==="t"&&n.call(this,C)&&!isNaN(+C.slice(1))&&(this[C]=e)},stop:function(){this.done=!0;var w=this.tryEntries[0].completion;if(w.type==="throw")throw w.arg;return this.rval},dispatchException:function(w){if(this.done)throw w;var C=this;function T(be,K){return ue.type="throw",ue.arg=w,C.next=be,K&&(C.method="next",C.arg=e),!!K}for(var W=this.tryEntries.length-1;W>=0;--W){var M=this.tryEntries[W],ue=M.completion;if(M.tryLoc==="root")return T("end");if(M.tryLoc<=this.prev){var Fe=n.call(M,"catchLoc"),ie=n.call(M,"finallyLoc");if(Fe&&ie){if(this.prev<M.catchLoc)return T(M.catchLoc,!0);if(this.prev<M.finallyLoc)return T(M.finallyLoc)}else if(Fe){if(this.prev<M.catchLoc)return T(M.catchLoc,!0)}else{if(!ie)throw new Error("try statement without catch or finally");if(this.prev<M.finallyLoc)return T(M.finallyLoc)}}}},abrupt:function(w,C){for(var T=this.tryEntries.length-1;T>=0;--T){var W=this.tryEntries[T];if(W.tryLoc<=this.prev&&n.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var M=W;break}}M&&(w==="break"||w==="continue")&&M.tryLoc<=C&&C<=M.finallyLoc&&(M=null);var ue=M?M.completion:{};return ue.type=w,ue.arg=C,M?(this.method="next",this.next=M.finallyLoc,x):this.complete(ue)},complete:function(w,C){if(w.type==="throw")throw w.arg;return w.type==="break"||w.type==="continue"?this.next=w.arg:w.type==="return"?(this.rval=this.arg=w.arg,this.method="return",this.next="end"):w.type==="normal"&&C&&(this.next=C),x},finish:function(w){for(var C=this.tryEntries.length-1;C>=0;--C){var T=this.tryEntries[C];if(T.finallyLoc===w)return this.complete(T.completion,T.afterLoc),Y(T),x}},catch:function(w){for(var C=this.tryEntries.length-1;C>=0;--C){var T=this.tryEntries[C];if(T.tryLoc===w){var W=T.completion;if(W.type==="throw"){var M=W.arg;Y(T)}return M}}throw new Error("illegal catch attempt")},delegateYield:function(w,C,T){return this.delegate={iterator:S(w),resultName:C,nextLoc:T},this.method==="next"&&(this.arg=e),x}},t}Qt.exports=od,Qt.exports.__esModule=!0,Qt.exports.default=Qt.exports});var cd=d((n9,ad)=>{var so=ud()();ad.exports=so;try{regeneratorRuntime=so}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=so:Function("r","regeneratorRuntime = r")(so)}});var fd=d((A9,gc)=>{"use strict";var ld=(e,...t)=>new Promise(r=>{r(e(...t))});gc.exports=ld;gc.exports.default=ld});var pd=d((w9,yc)=>{"use strict";var nC=fd(),hd=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let t=[],r=0,n=()=>{r--,t.length>0&&t.shift()()},i=(u,a,...c)=>{r++;let l=nC(u,...c);a(l),l.then(n,n)},s=(u,a,...c)=>{r<e?i(u,a,...c):t.push(i.bind(null,u,a,...c))},o=(u,...a)=>new Promise(c=>s(u,c,...a));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}}),o};yc.exports=hd;yc.exports.default=hd});var gd=d((C9,Ec)=>{"use strict";var dd=pd(),oo=class extends Error{constructor(t){super(),this.value=t}},iC=async(e,t)=>t(await e),sC=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new oo(t[0]);return!1},md=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=dd(r.concurrency),i=[...e].map(o=>[o,n(iC,o,t)]),s=dd(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(sC,o)))}catch(o){if(o instanceof oo)return o.value;throw o}};Ec.exports=md;Ec.exports.default=md});var Dd=d((F9,_c)=>{"use strict";var yd=require("path"),uo=require("fs"),{promisify:Ed}=require("util"),oC=gd(),uC=Ed(uo.stat),aC=Ed(uo.lstat),_d={directory:"isDirectory",file:"isFile"};function bd({type:e}){if(!(e in _d))throw new Error(`Invalid type specified: ${e}`)}var vd=(e,t)=>e===void 0||t[_d[e]]();_c.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},bd(t);let r=t.allowSymlinks?uC:aC;return oC(e,async n=>{try{let i=await r(yd.resolve(t.cwd,n));return vd(t.type,i)}catch{return!1}},t)};_c.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},bd(t);let r=t.allowSymlinks?uo.statSync:uo.lstatSync;for(let n of e)try{let i=r(yd.resolve(t.cwd,n));if(vd(t.type,i))return n}catch{}}});var Sd=d((R9,bc)=>{"use strict";var xd=require("fs"),{promisify:cC}=require("util"),lC=cC(xd.access);bc.exports=async e=>{try{return await lC(e),!0}catch{return!1}};bc.exports.sync=e=>{try{return xd.accessSync(e),!0}catch{return!1}}});var wd=d((T9,Bn)=>{"use strict";var xr=require("path"),ao=Dd(),Ad=Sd(),vc=Symbol("findUp.stop");Bn.exports=async(e,t={})=>{let r=xr.resolve(t.cwd||""),{root:n}=xr.parse(r),i=[].concat(e),s=async o=>{if(typeof e!="function")return ao(i,o);let u=await e(o.cwd);return typeof u=="string"?ao([u],o):u};for(;;){let o=await s({...t,cwd:r});if(o===vc)return;if(o)return xr.resolve(r,o);if(r===n)return;r=xr.dirname(r)}};Bn.exports.sync=(e,t={})=>{let r=xr.resolve(t.cwd||""),{root:n}=xr.parse(r),i=[].concat(e),s=o=>{if(typeof e!="function")return ao.sync(i,o);let u=e(o.cwd);return typeof u=="string"?ao.sync([u],o):u};for(;;){let o=s({...t,cwd:r});if(o===vc)return;if(o)return xr.resolve(r,o);if(r===n)return;r=xr.dirname(r)}};Bn.exports.exists=Ad;Bn.exports.sync.exists=Ad.sync;Bn.exports.stop=vc});var tt=d(Dc=>{"use strict";Dc.fromCallback=function(e){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")e.apply(this,arguments);else return new Promise((t,r)=>{arguments[arguments.length]=(n,i)=>{if(n)return r(n);t(i)},arguments.length++,e.apply(this,arguments)})},"name",{value:e.name})};Dc.fromPromise=function(e){return Object.defineProperty(function(){let t=arguments[arguments.length-1];if(typeof t!="function")return e.apply(this,arguments);e.apply(this,arguments).then(r=>t(null,r),t)},"name",{value:e.name})}});var Fd=d((k9,Cd)=>{var Sr=require("constants"),fC=process.cwd,co=null,hC=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return co||(co=fC.call(process)),co};try{process.cwd()}catch{}typeof process.chdir=="function"&&(xc=process.chdir,process.chdir=function(e){co=null,xc.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,xc));var xc;Cd.exports=pC;function pC(e){Sr.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=u(e.stat),e.fstat=u(e.fstat),e.lstat=u(e.lstat),e.statSync=a(e.statSync),e.fstatSync=a(e.fstatSync),e.lstatSync=a(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(l,f,h){h&&process.nextTick(h)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(l,f,h,g){g&&process.nextTick(g)},e.lchownSync=function(){}),hC==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(l){function f(h,g,y){var E=Date.now(),x=0;l(h,g,function v(D){if(D&&(D.code==="EACCES"||D.code==="EPERM"||D.code==="EBUSY")&&Date.now()-E<6e4){setTimeout(function(){e.stat(g,function(F,B){F&&F.code==="ENOENT"?l(h,g,v):y(D)})},x),x<100&&(x+=10);return}y&&y(D)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,l),f}(e.rename)),e.read=typeof e.read!="function"?e.read:function(l){function f(h,g,y,E,x,v){var D;if(v&&typeof v=="function"){var F=0;D=function(B,k,V){if(B&&B.code==="EAGAIN"&&F<10)return F++,l.call(e,h,g,y,E,x,D);v.apply(this,arguments)}}return l.call(e,h,g,y,E,x,D)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,l),f}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(l){return function(f,h,g,y,E){for(var x=0;;)try{return l.call(e,f,h,g,y,E)}catch(v){if(v.code==="EAGAIN"&&x<10){x++;continue}throw v}}}(e.readSync);function t(l){l.lchmod=function(f,h,g){l.open(f,Sr.O_WRONLY|Sr.O_SYMLINK,h,function(y,E){if(y){g&&g(y);return}l.fchmod(E,h,function(x){l.close(E,function(v){g&&g(x||v)})})})},l.lchmodSync=function(f,h){var g=l.openSync(f,Sr.O_WRONLY|Sr.O_SYMLINK,h),y=!0,E;try{E=l.fchmodSync(g,h),y=!1}finally{if(y)try{l.closeSync(g)}catch{}else l.closeSync(g)}return E}}function r(l){Sr.hasOwnProperty("O_SYMLINK")&&l.futimes?(l.lutimes=function(f,h,g,y){l.open(f,Sr.O_SYMLINK,function(E,x){if(E){y&&y(E);return}l.futimes(x,h,g,function(v){l.close(x,function(D){y&&y(v||D)})})})},l.lutimesSync=function(f,h,g){var y=l.openSync(f,Sr.O_SYMLINK),E,x=!0;try{E=l.futimesSync(y,h,g),x=!1}finally{if(x)try{l.closeSync(y)}catch{}else l.closeSync(y)}return E}):l.futimes&&(l.lutimes=function(f,h,g,y){y&&process.nextTick(y)},l.lutimesSync=function(){})}function n(l){return l&&function(f,h,g){return l.call(e,f,h,function(y){c(y)&&(y=null),g&&g.apply(this,arguments)})}}function i(l){return l&&function(f,h){try{return l.call(e,f,h)}catch(g){if(!c(g))throw g}}}function s(l){return l&&function(f,h,g,y){return l.call(e,f,h,g,function(E){c(E)&&(E=null),y&&y.apply(this,arguments)})}}function o(l){return l&&function(f,h,g){try{return l.call(e,f,h,g)}catch(y){if(!c(y))throw y}}}function u(l){return l&&function(f,h,g){typeof h=="function"&&(g=h,h=null);function y(E,x){x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),g&&g.apply(this,arguments)}return h?l.call(e,f,h,y):l.call(e,f,y)}}function a(l){return l&&function(f,h){var g=h?l.call(e,f,h):l.call(e,f);return g&&(g.uid<0&&(g.uid+=4294967296),g.gid<0&&(g.gid+=4294967296)),g}}function c(l){if(!l||l.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(l.code==="EINVAL"||l.code==="EPERM"))}}});var Od=d((B9,Td)=>{var Rd=require("stream").Stream;Td.exports=dC;function dC(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);Rd.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),u=0,a=o.length;u<a;u++){var c=o[u];this[c]=i[c]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}e.open(this.path,this.flags,this.mode,function(l,f){if(l){s.emit("error",l),s.readable=!1;return}s.fd=f,s.emit("open",f),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);Rd.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,u=s.length;o<u;o++){var a=s[o];this[a]=i[a]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Bd=d((P9,kd)=>{"use strict";kd.exports=gC;var mC=Object.getPrototypeOf||function(e){return e.__proto__};function gC(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:mC(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var Ae=d((I9,wc)=>{var _e=require("fs"),yC=Fd(),EC=Od(),_C=Bd(),lo=require("util"),Ne,ho;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Ne=Symbol.for("graceful-fs.queue"),ho=Symbol.for("graceful-fs.previous")):(Ne="___graceful-fs.queue",ho="___graceful-fs.previous");function bC(){}function Ld(e,t){Object.defineProperty(e,Ne,{get:function(){return t}})}var tn=bC;lo.debuglog?tn=lo.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(tn=function(){var e=lo.format.apply(lo,arguments);e="GFS4: "+e.split(/\n/).join(`
GFS4: `),console.error(e)});_e[Ne]||(Pd=global[Ne]||[],Ld(_e,Pd),_e.close=function(e){function t(r,n){return e.call(_e,r,function(i){i||Id(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,ho,{value:e}),t}(_e.close),_e.closeSync=function(e){function t(r){e.apply(_e,arguments),Id()}return Object.defineProperty(t,ho,{value:e}),t}(_e.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){tn(_e[Ne]),require("assert").equal(_e[Ne].length,0)}));var Pd;global[Ne]||Ld(global,_e[Ne]);wc.exports=Sc(_C(_e));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!_e.__patched&&(wc.exports=Sc(_e),_e.__patched=!0);function Sc(e){yC(e),e.gracefulify=Sc,e.createReadStream=k,e.createWriteStream=V;var t=e.readFile;e.readFile=r;function r(P,$,A){return typeof $=="function"&&(A=$,$=null),X(P,$,A);function X(Y,te,S,_){return t(Y,te,function(w){w&&(w.code==="EMFILE"||w.code==="ENFILE")?Pn([X,[Y,te,S],w,_||Date.now(),Date.now()]):typeof S=="function"&&S.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(P,$,A,X){return typeof A=="function"&&(X=A,A=null),Y(P,$,A,X);function Y(te,S,_,w,C){return n(te,S,_,function(T){T&&(T.code==="EMFILE"||T.code==="ENFILE")?Pn([Y,[te,S,_,w],T,C||Date.now(),Date.now()]):typeof w=="function"&&w.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(P,$,A,X){return typeof A=="function"&&(X=A,A=null),Y(P,$,A,X);function Y(te,S,_,w,C){return s(te,S,_,function(T){T&&(T.code==="EMFILE"||T.code==="ENFILE")?Pn([Y,[te,S,_,w],T,C||Date.now(),Date.now()]):typeof w=="function"&&w.apply(this,arguments)})}}var u=e.copyFile;u&&(e.copyFile=a);function a(P,$,A,X){return typeof A=="function"&&(X=A,A=0),Y(P,$,A,X);function Y(te,S,_,w,C){return u(te,S,_,function(T){T&&(T.code==="EMFILE"||T.code==="ENFILE")?Pn([Y,[te,S,_,w],T,C||Date.now(),Date.now()]):typeof w=="function"&&w.apply(this,arguments)})}}var c=e.readdir;e.readdir=f;var l=/^v[0-5]\./;function f(P,$,A){typeof $=="function"&&(A=$,$=null);var X=l.test(process.version)?function(S,_,w,C){return c(S,Y(S,_,w,C))}:function(S,_,w,C){return c(S,_,Y(S,_,w,C))};return X(P,$,A);function Y(te,S,_,w){return function(C,T){C&&(C.code==="EMFILE"||C.code==="ENFILE")?Pn([X,[te,S,_],C,w||Date.now(),Date.now()]):(T&&T.sort&&T.sort(),typeof _=="function"&&_.call(this,C,T))}}}if(process.version.substr(0,4)==="v0.8"){var h=EC(e);v=h.ReadStream,F=h.WriteStream}var g=e.ReadStream;g&&(v.prototype=Object.create(g.prototype),v.prototype.open=D);var y=e.WriteStream;y&&(F.prototype=Object.create(y.prototype),F.prototype.open=B),Object.defineProperty(e,"ReadStream",{get:function(){return v},set:function(P){v=P},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return F},set:function(P){F=P},enumerable:!0,configurable:!0});var E=v;Object.defineProperty(e,"FileReadStream",{get:function(){return E},set:function(P){E=P},enumerable:!0,configurable:!0});var x=F;Object.defineProperty(e,"FileWriteStream",{get:function(){return x},set:function(P){x=P},enumerable:!0,configurable:!0});function v(P,$){return this instanceof v?(g.apply(this,arguments),this):v.apply(Object.create(v.prototype),arguments)}function D(){var P=this;G(P.path,P.flags,P.mode,function($,A){$?(P.autoClose&&P.destroy(),P.emit("error",$)):(P.fd=A,P.emit("open",A),P.read())})}function F(P,$){return this instanceof F?(y.apply(this,arguments),this):F.apply(Object.create(F.prototype),arguments)}function B(){var P=this;G(P.path,P.flags,P.mode,function($,A){$?(P.destroy(),P.emit("error",$)):(P.fd=A,P.emit("open",A))})}function k(P,$){return new e.ReadStream(P,$)}function V(P,$){return new e.WriteStream(P,$)}var I=e.open;e.open=G;function G(P,$,A,X){return typeof A=="function"&&(X=A,A=null),Y(P,$,A,X);function Y(te,S,_,w,C){return I(te,S,_,function(T,W){T&&(T.code==="EMFILE"||T.code==="ENFILE")?Pn([Y,[te,S,_,w],T,C||Date.now(),Date.now()]):typeof w=="function"&&w.apply(this,arguments)})}}return e}function Pn(e){tn("ENQUEUE",e[0].name,e[1]),_e[Ne].push(e),Ac()}var fo;function Id(){for(var e=Date.now(),t=0;t<_e[Ne].length;++t)_e[Ne][t].length>2&&(_e[Ne][t][3]=e,_e[Ne][t][4]=e);Ac()}function Ac(){if(clearTimeout(fo),fo=void 0,_e[Ne].length!==0){var e=_e[Ne].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)tn("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){tn("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var u=Date.now()-s,a=Math.max(s-i,1),c=Math.min(a*1.2,100);u>=c?(tn("RETRY",t.name,r),t.apply(null,r.concat([i]))):_e[Ne].push(e)}fo===void 0&&(fo=setTimeout(Ac,0))}}});var Cc=d(rn=>{"use strict";var Nd=tt().fromCallback,_t=Ae(),vC=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof _t[e]=="function");Object.keys(_t).forEach(e=>{e!=="promises"&&(rn[e]=_t[e])});vC.forEach(e=>{rn[e]=Nd(_t[e])});rn.exists=function(e,t){return typeof t=="function"?_t.exists(e,t):new Promise(r=>_t.exists(e,r))};rn.read=function(e,t,r,n,i,s){return typeof s=="function"?_t.read(e,t,r,n,i,s):new Promise((o,u)=>{_t.read(e,t,r,n,i,(a,c,l)=>{if(a)return u(a);o({bytesRead:c,buffer:l})})})};rn.write=function(e,t,...r){return typeof r[r.length-1]=="function"?_t.write(e,t,...r):new Promise((n,i)=>{_t.write(e,t,...r,(s,o,u)=>{if(s)return i(s);n({bytesWritten:o,buffer:u})})})};typeof _t.realpath.native=="function"&&(rn.realpath.native=Nd(_t.realpath.native))});var Rc=d((N9,qd)=>{"use strict";var Fc=require("path");function Md(e){return e=Fc.normalize(Fc.resolve(e)).split(Fc.sep),e.length>0?e[0]:null}var DC=/[<>:"|?*]/;function xC(e){let t=Md(e);return e=e.replace(t,""),DC.test(e)}qd.exports={getRootPath:Md,invalidWin32Path:xC}});var $d=d((M9,jd)=>{"use strict";var SC=Ae(),Tc=require("path"),AC=Rc().invalidWin32Path,wC=parseInt("0777",8);function Oc(e,t,r,n){if(typeof t=="function"?(r=t,t={}):(!t||typeof t!="object")&&(t={mode:t}),process.platform==="win32"&&AC(e)){let o=new Error(e+" contains invalid WIN32 path characters.");return o.code="EINVAL",r(o)}let i=t.mode,s=t.fs||SC;i===void 0&&(i=wC&~process.umask()),n||(n=null),r=r||function(){},e=Tc.resolve(e),s.mkdir(e,i,o=>{if(!o)return n=n||e,r(null,n);switch(o.code){case"ENOENT":if(Tc.dirname(e)===e)return r(o);Oc(Tc.dirname(e),t,(u,a)=>{u?r(u,a):Oc(e,t,r,a)});break;default:s.stat(e,(u,a)=>{u||!a.isDirectory()?r(o,n):r(null,n)});break}})}jd.exports=Oc});var Ud=d((q9,Hd)=>{"use strict";var CC=Ae(),kc=require("path"),FC=Rc().invalidWin32Path,RC=parseInt("0777",8);function Bc(e,t,r){(!t||typeof t!="object")&&(t={mode:t});let n=t.mode,i=t.fs||CC;if(process.platform==="win32"&&FC(e)){let s=new Error(e+" contains invalid WIN32 path characters.");throw s.code="EINVAL",s}n===void 0&&(n=RC&~process.umask()),r||(r=null),e=kc.resolve(e);try{i.mkdirSync(e,n),r=r||e}catch(s){if(s.code==="ENOENT"){if(kc.dirname(e)===e)throw s;r=Bc(kc.dirname(e),t,r),Bc(e,t,r)}else{let o;try{o=i.statSync(e)}catch{throw s}if(!o.isDirectory())throw s}}return r}Hd.exports=Bc});var ft=d((j9,Gd)=>{"use strict";var TC=tt().fromCallback,Pc=TC($d()),Ic=Ud();Gd.exports={mkdirs:Pc,mkdirsSync:Ic,mkdirp:Pc,mkdirpSync:Ic,ensureDir:Pc,ensureDirSync:Ic}});var Lc=d(($9,Vd)=>{"use strict";var je=Ae(),Wd=require("os"),po=require("path");function OC(){let e=po.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));e=po.join(Wd.tmpdir(),e);let t=new Date(1435410243862);je.writeFileSync(e,"https://github.com/jprichardson/node-fs-extra/pull/141");let r=je.openSync(e,"r+");return je.futimesSync(r,t,t),je.closeSync(r),je.statSync(e).mtime>1435410243e3}function kC(e){let t=po.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));t=po.join(Wd.tmpdir(),t);let r=new Date(1435410243862);je.writeFile(t,"https://github.com/jprichardson/node-fs-extra/pull/141",n=>{if(n)return e(n);je.open(t,"r+",(i,s)=>{if(i)return e(i);je.futimes(s,r,r,o=>{if(o)return e(o);je.close(s,u=>{if(u)return e(u);je.stat(t,(a,c)=>{if(a)return e(a);e(null,c.mtime>1435410243e3)})})})})})}function BC(e){if(typeof e=="number")return Math.floor(e/1e3)*1e3;if(e instanceof Date)return new Date(Math.floor(e.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function PC(e,t,r,n){je.open(e,"r+",(i,s)=>{if(i)return n(i);je.futimes(s,t,r,o=>{je.close(s,u=>{n&&n(o||u)})})})}function IC(e,t,r){let n=je.openSync(e,"r+");return je.futimesSync(n,t,r),je.closeSync(n)}Vd.exports={hasMillisRes:kC,hasMillisResSync:OC,timeRemoveMillis:BC,utimesMillis:PC,utimesMillisSync:IC}});var Xi=d((H9,Zd)=>{"use strict";var bt=Ae(),rt=require("path"),zd=10,Yd=5,LC=0,Mc=process.versions.node.split("."),Kd=Number.parseInt(Mc[0],10),Xd=Number.parseInt(Mc[1],10),NC=Number.parseInt(Mc[2],10);function Yi(){if(Kd>zd)return!0;if(Kd===zd){if(Xd>Yd)return!0;if(Xd===Yd&&NC>=LC)return!0}return!1}function MC(e,t,r){Yi()?bt.stat(e,{bigint:!0},(n,i)=>{if(n)return r(n);bt.stat(t,{bigint:!0},(s,o)=>s?s.code==="ENOENT"?r(null,{srcStat:i,destStat:null}):r(s):r(null,{srcStat:i,destStat:o}))}):bt.stat(e,(n,i)=>{if(n)return r(n);bt.stat(t,(s,o)=>s?s.code==="ENOENT"?r(null,{srcStat:i,destStat:null}):r(s):r(null,{srcStat:i,destStat:o}))})}function qC(e,t){let r,n;Yi()?r=bt.statSync(e,{bigint:!0}):r=bt.statSync(e);try{Yi()?n=bt.statSync(t,{bigint:!0}):n=bt.statSync(t)}catch(i){if(i.code==="ENOENT")return{srcStat:r,destStat:null};throw i}return{srcStat:r,destStat:n}}function jC(e,t,r,n){MC(e,t,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:u}=s;return u&&u.ino&&u.dev&&u.ino===o.ino&&u.dev===o.dev?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&qc(e,t)?n(new Error(Ki(e,t,r))):n(null,{srcStat:o,destStat:u})})}function $C(e,t,r){let{srcStat:n,destStat:i}=qC(e,t);if(i&&i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev)throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&qc(e,t))throw new Error(Ki(e,t,r));return{srcStat:n,destStat:i}}function Nc(e,t,r,n,i){let s=rt.resolve(rt.dirname(e)),o=rt.resolve(rt.dirname(r));if(o===s||o===rt.parse(o).root)return i();Yi()?bt.stat(o,{bigint:!0},(u,a)=>u?u.code==="ENOENT"?i():i(u):a.ino&&a.dev&&a.ino===t.ino&&a.dev===t.dev?i(new Error(Ki(e,r,n))):Nc(e,t,o,n,i)):bt.stat(o,(u,a)=>u?u.code==="ENOENT"?i():i(u):a.ino&&a.dev&&a.ino===t.ino&&a.dev===t.dev?i(new Error(Ki(e,r,n))):Nc(e,t,o,n,i))}function Jd(e,t,r,n){let i=rt.resolve(rt.dirname(e)),s=rt.resolve(rt.dirname(r));if(s===i||s===rt.parse(s).root)return;let o;try{Yi()?o=bt.statSync(s,{bigint:!0}):o=bt.statSync(s)}catch(u){if(u.code==="ENOENT")return;throw u}if(o.ino&&o.dev&&o.ino===t.ino&&o.dev===t.dev)throw new Error(Ki(e,r,n));return Jd(e,t,s,n)}function qc(e,t){let r=rt.resolve(e).split(rt.sep).filter(i=>i),n=rt.resolve(t).split(rt.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function Ki(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}Zd.exports={checkPaths:jC,checkPathsSync:$C,checkParentPaths:Nc,checkParentPathsSync:Jd,isSrcSubdir:qc}});var em=d((U9,Qd)=>{"use strict";Qd.exports=function(e){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(e)}catch{return new Buffer(e)}return new Buffer(e)}});var sm=d((G9,im)=>{"use strict";var ge=Ae(),Ji=require("path"),HC=ft().mkdirsSync,UC=Lc().utimesMillisSync,Zi=Xi();function GC(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=Zi.checkPathsSync(e,t,"copy");return Zi.checkParentPathsSync(e,n,t,"copy"),WC(i,e,t,r)}function WC(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=Ji.dirname(r);return ge.existsSync(i)||HC(i),tm(e,t,r,n)}function tm(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return VC(e,t,r,n)}function VC(e,t,r,n){let s=(n.dereference?ge.statSync:ge.lstatSync)(t);if(s.isDirectory())return XC(s,e,t,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return zC(s,e,t,r,n);if(s.isSymbolicLink())return QC(e,t,r,n)}function zC(e,t,r,n,i){return t?YC(e,r,n,i):rm(e,r,n,i)}function YC(e,t,r,n){if(n.overwrite)return ge.unlinkSync(r),rm(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function rm(e,t,r,n){return typeof ge.copyFileSync=="function"?(ge.copyFileSync(t,r),ge.chmodSync(r,e.mode),n.preserveTimestamps?UC(r,e.atime,e.mtime):void 0):KC(e,t,r,n)}function KC(e,t,r,n){let s=em()(65536),o=ge.openSync(t,"r"),u=ge.openSync(r,"w",e.mode),a=0;for(;a<e.size;){let c=ge.readSync(o,s,0,65536,a);ge.writeSync(u,s,0,c),a+=c}n.preserveTimestamps&&ge.futimesSync(u,e.atime,e.mtime),ge.closeSync(o),ge.closeSync(u)}function XC(e,t,r,n,i){if(!t)return JC(e,r,n,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return nm(r,n,i)}function JC(e,t,r,n){return ge.mkdirSync(r),nm(t,r,n),ge.chmodSync(r,e.mode)}function nm(e,t,r){ge.readdirSync(e).forEach(n=>ZC(n,e,t,r))}function ZC(e,t,r,n){let i=Ji.join(t,e),s=Ji.join(r,e),{destStat:o}=Zi.checkPathsSync(i,s,"copy");return tm(o,i,s,n)}function QC(e,t,r,n){let i=ge.readlinkSync(t);if(n.dereference&&(i=Ji.resolve(process.cwd(),i)),e){let s;try{s=ge.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return ge.symlinkSync(i,r);throw o}if(n.dereference&&(s=Ji.resolve(process.cwd(),s)),Zi.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(ge.statSync(r).isDirectory()&&Zi.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return eF(i,r)}else return ge.symlinkSync(i,r)}function eF(e,t){return ge.unlinkSync(t),ge.symlinkSync(e,t)}im.exports=GC});var jc=d((W9,om)=>{"use strict";om.exports={copySync:sm()}});var Lt=d((V9,am)=>{"use strict";var tF=tt().fromPromise,um=Cc();function rF(e){return um.access(e).then(()=>!0).catch(()=>!1)}am.exports={pathExists:tF(rF),pathExistsSync:um.existsSync}});var ym=d((z9,gm)=>{"use strict";var Me=Ae(),Qi=require("path"),nF=ft().mkdirs,iF=Lt().pathExists,sF=Lc().utimesMillis,es=Xi();function oF(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
see https://github.com/jprichardson/node-fs-extra/issues/269`),es.checkPaths(e,t,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:u}=s;es.checkParentPaths(e,o,t,"copy",a=>a?n(a):r.filter?fm(cm,u,e,t,r,n):cm(u,e,t,r,n))})}function cm(e,t,r,n,i){let s=Qi.dirname(r);iF(s,(o,u)=>{if(o)return i(o);if(u)return $c(e,t,r,n,i);nF(s,a=>a?i(a):$c(e,t,r,n,i))})}function fm(e,t,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?e(t,r,n,i,s):s(),o=>s(o))}function $c(e,t,r,n,i){return n.filter?fm(lm,e,t,r,n,i):lm(e,t,r,n,i)}function lm(e,t,r,n,i){(n.dereference?Me.stat:Me.lstat)(t,(o,u)=>{if(o)return i(o);if(u.isDirectory())return lF(u,e,t,r,n,i);if(u.isFile()||u.isCharacterDevice()||u.isBlockDevice())return uF(u,e,t,r,n,i);if(u.isSymbolicLink())return pF(e,t,r,n,i)})}function uF(e,t,r,n,i,s){return t?aF(e,r,n,i,s):hm(e,r,n,i,s)}function aF(e,t,r,n,i){if(n.overwrite)Me.unlink(r,s=>s?i(s):hm(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function hm(e,t,r,n,i){return typeof Me.copyFile=="function"?Me.copyFile(t,r,s=>s?i(s):pm(e,r,n,i)):cF(e,t,r,n,i)}function cF(e,t,r,n,i){let s=Me.createReadStream(t);s.on("error",o=>i(o)).once("open",()=>{let o=Me.createWriteStream(r,{mode:e.mode});o.on("error",u=>i(u)).on("open",()=>s.pipe(o)).once("close",()=>pm(e,r,n,i))})}function pm(e,t,r,n){Me.chmod(t,e.mode,i=>i?n(i):r.preserveTimestamps?sF(t,e.atime,e.mtime,n):n())}function lF(e,t,r,n,i,s){return t?t&&!t.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):dm(r,n,i,s):fF(e,r,n,i,s)}function fF(e,t,r,n,i){Me.mkdir(r,s=>{if(s)return i(s);dm(t,r,n,o=>o?i(o):Me.chmod(r,e.mode,i))})}function dm(e,t,r,n){Me.readdir(e,(i,s)=>i?n(i):mm(s,e,t,r,n))}function mm(e,t,r,n,i){let s=e.pop();return s?hF(e,s,t,r,n,i):i()}function hF(e,t,r,n,i,s){let o=Qi.join(r,t),u=Qi.join(n,t);es.checkPaths(o,u,"copy",(a,c)=>{if(a)return s(a);let{destStat:l}=c;$c(l,o,u,i,f=>f?s(f):mm(e,r,n,i,s))})}function pF(e,t,r,n,i){Me.readlink(t,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=Qi.resolve(process.cwd(),o)),e)Me.readlink(r,(u,a)=>u?u.code==="EINVAL"||u.code==="UNKNOWN"?Me.symlink(o,r,i):i(u):(n.dereference&&(a=Qi.resolve(process.cwd(),a)),es.isSrcSubdir(o,a)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${a}'.`)):e.isDirectory()&&es.isSrcSubdir(a,o)?i(new Error(`Cannot overwrite '${a}' with '${o}'.`)):dF(o,r,i)));else return Me.symlink(o,r,i)})}function dF(e,t,r){Me.unlink(t,n=>n?r(n):Me.symlink(e,t,r))}gm.exports=oF});var Hc=d((Y9,Em)=>{"use strict";var mF=tt().fromCallback;Em.exports={copy:mF(ym())}});var Cm=d((K9,wm)=>{"use strict";var _m=Ae(),xm=require("path"),oe=require("assert"),ts=process.platform==="win32";function Sm(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||_m[r],r=r+"Sync",e[r]=e[r]||_m[r]}),e.maxBusyTries=e.maxBusyTries||3}function Uc(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),oe(e,"rimraf: missing path"),oe.strictEqual(typeof e,"string","rimraf: path should be a string"),oe.strictEqual(typeof r,"function","rimraf: callback function required"),oe(t,"rimraf: invalid options argument provided"),oe.strictEqual(typeof t,"object","rimraf: options should be object"),Sm(t),bm(e,t,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<t.maxBusyTries){n++;let o=n*100;return setTimeout(()=>bm(e,t,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function bm(e,t,r){oe(e),oe(t),oe(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&ts)return vm(e,t,n,r);if(i&&i.isDirectory())return mo(e,t,n,r);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return ts?vm(e,t,s,r):mo(e,t,s,r);if(s.code==="EISDIR")return mo(e,t,s,r)}return r(s)})})}function vm(e,t,r,n){oe(e),oe(t),oe(typeof n=="function"),r&&oe(r instanceof Error),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?mo(e,t,r,n):t.unlink(e,n)})})}function Dm(e,t,r){let n;oe(e),oe(t),r&&oe(r instanceof Error);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?go(e,t,r):t.unlinkSync(e)}function mo(e,t,r,n){oe(e),oe(t),r&&oe(r instanceof Error),oe(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?gF(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function gF(e,t,r){oe(e),oe(t),oe(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return t.rmdir(e,r);i.forEach(u=>{Uc(xm.join(e,u),t,a=>{if(!o){if(a)return r(o=a);--s===0&&t.rmdir(e,r)}})})})}function Am(e,t){let r;t=t||{},Sm(t),oe(e,"rimraf: missing path"),oe.strictEqual(typeof e,"string","rimraf: path should be a string"),oe(t,"rimraf: missing options"),oe.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&ts&&Dm(e,t,n)}try{r&&r.isDirectory()?go(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return ts?Dm(e,t,n):go(e,t,n);if(n.code!=="EISDIR")throw n;go(e,t,n)}}function go(e,t,r){oe(e),oe(t),r&&oe(r instanceof Error);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")yF(e,t);else if(n.code!=="ENOENT")throw n}}function yF(e,t){if(oe(e),oe(t),t.readdirSync(e).forEach(r=>Am(xm.join(e,r),t)),ts){let r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}wm.exports=Uc;Uc.sync=Am});var rs=d((X9,Rm)=>{"use strict";var EF=tt().fromCallback,Fm=Cm();Rm.exports={remove:EF(Fm),removeSync:Fm.sync}});var Nm=d((J9,Lm)=>{"use strict";var _F=tt().fromCallback,km=Ae(),Bm=require("path"),Pm=ft(),Im=rs(),Tm=_F(function(t,r){r=r||function(){},km.readdir(t,(n,i)=>{if(n)return Pm.mkdirs(t,r);i=i.map(o=>Bm.join(t,o)),s();function s(){let o=i.pop();if(!o)return r();Im.remove(o,u=>{if(u)return r(u);s()})}})});function Om(e){let t;try{t=km.readdirSync(e)}catch{return Pm.mkdirsSync(e)}t.forEach(r=>{r=Bm.join(e,r),Im.removeSync(r)})}Lm.exports={emptyDirSync:Om,emptydirSync:Om,emptyDir:Tm,emptydir:Tm}});var $m=d((Z9,jm)=>{"use strict";var bF=tt().fromCallback,Mm=require("path"),ns=Ae(),qm=ft(),vF=Lt().pathExists;function DF(e,t){function r(){ns.writeFile(e,"",n=>{if(n)return t(n);t()})}ns.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let s=Mm.dirname(e);vF(s,(o,u)=>{if(o)return t(o);if(u)return r();qm.mkdirs(s,a=>{if(a)return t(a);r()})})})}function xF(e){let t;try{t=ns.statSync(e)}catch{}if(t&&t.isFile())return;let r=Mm.dirname(e);ns.existsSync(r)||qm.mkdirsSync(r),ns.writeFileSync(e,"")}jm.exports={createFile:bF(DF),createFileSync:xF}});var Vm=d((Q9,Wm)=>{"use strict";var SF=tt().fromCallback,Um=require("path"),nn=Ae(),Gm=ft(),Hm=Lt().pathExists;function AF(e,t,r){function n(i,s){nn.link(i,s,o=>{if(o)return r(o);r(null)})}Hm(t,(i,s)=>{if(i)return r(i);if(s)return r(null);nn.lstat(e,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let u=Um.dirname(t);Hm(u,(a,c)=>{if(a)return r(a);if(c)return n(e,t);Gm.mkdirs(u,l=>{if(l)return r(l);n(e,t)})})})})}function wF(e,t){if(nn.existsSync(t))return;try{nn.lstatSync(e)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=Um.dirname(t);return nn.existsSync(n)||Gm.mkdirsSync(n),nn.linkSync(e,t)}Wm.exports={createLink:SF(AF),createLinkSync:wF}});var Ym=d((e7,zm)=>{"use strict";var Ar=require("path"),is=Ae(),CF=Lt().pathExists;function FF(e,t,r){if(Ar.isAbsolute(e))return is.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=Ar.dirname(t),i=Ar.join(n,e);return CF(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:e}):is.lstat(e,u=>u?(u.message=u.message.replace("lstat","ensureSymlink"),r(u)):r(null,{toCwd:e,toDst:Ar.relative(n,e)})))}}function RF(e,t){let r;if(Ar.isAbsolute(e)){if(r=is.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=Ar.dirname(t),i=Ar.join(n,e);if(r=is.existsSync(i),r)return{toCwd:i,toDst:e};if(r=is.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Ar.relative(n,e)}}}zm.exports={symlinkPaths:FF,symlinkPathsSync:RF}});var Jm=d((t7,Xm)=>{"use strict";var Km=Ae();function TF(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);Km.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function OF(e,t){let r;if(t)return t;try{r=Km.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Xm.exports={symlinkType:TF,symlinkTypeSync:OF}});var ig=d((r7,ng)=>{"use strict";var kF=tt().fromCallback,Qm=require("path"),In=Ae(),eg=ft(),BF=eg.mkdirs,PF=eg.mkdirsSync,tg=Ym(),IF=tg.symlinkPaths,LF=tg.symlinkPathsSync,rg=Jm(),NF=rg.symlinkType,MF=rg.symlinkTypeSync,Zm=Lt().pathExists;function qF(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,Zm(t,(i,s)=>{if(i)return n(i);if(s)return n(null);IF(e,t,(o,u)=>{if(o)return n(o);e=u.toDst,NF(u.toCwd,r,(a,c)=>{if(a)return n(a);let l=Qm.dirname(t);Zm(l,(f,h)=>{if(f)return n(f);if(h)return In.symlink(e,t,c,n);BF(l,g=>{if(g)return n(g);In.symlink(e,t,c,n)})})})})})}function jF(e,t,r){if(In.existsSync(t))return;let i=LF(e,t);e=i.toDst,r=MF(i.toCwd,r);let s=Qm.dirname(t);return In.existsSync(s)||PF(s),In.symlinkSync(e,t,r)}ng.exports={createSymlink:kF(qF),createSymlinkSync:jF}});var og=d((n7,sg)=>{"use strict";var yo=$m(),Eo=Vm(),_o=ig();sg.exports={createFile:yo.createFile,createFileSync:yo.createFileSync,ensureFile:yo.createFile,ensureFileSync:yo.createFileSync,createLink:Eo.createLink,createLinkSync:Eo.createLinkSync,ensureLink:Eo.createLink,ensureLinkSync:Eo.createLinkSync,createSymlink:_o.createSymlink,createSymlinkSync:_o.createSymlinkSync,ensureSymlink:_o.createSymlink,ensureSymlinkSync:_o.createSymlinkSync}});var lg=d((i7,cg)=>{var Ln;try{Ln=Ae()}catch{Ln=require("fs")}function $F(e,t,r){r==null&&(r=t,t={}),typeof t=="string"&&(t={encoding:t}),t=t||{};var n=t.fs||Ln,i=!0;"throws"in t&&(i=t.throws),n.readFile(e,t,function(s,o){if(s)return r(s);o=ag(o);var u;try{u=JSON.parse(o,t?t.reviver:null)}catch(a){return i?(a.message=e+": "+a.message,r(a)):r(null,null)}r(null,u)})}function HF(e,t){t=t||{},typeof t=="string"&&(t={encoding:t});var r=t.fs||Ln,n=!0;"throws"in t&&(n=t.throws);try{var i=r.readFileSync(e,t);return i=ag(i),JSON.parse(i,t.reviver)}catch(s){if(n)throw s.message=e+": "+s.message,s;return null}}function ug(e,t){var r,n=`
`;typeof t=="object"&&t!==null&&(t.spaces&&(r=t.spaces),t.EOL&&(n=t.EOL));var i=JSON.stringify(e,t?t.replacer:null,r);return i.replace(/\n/g,n)+n}function UF(e,t,r,n){n==null&&(n=r,r={}),r=r||{};var i=r.fs||Ln,s="";try{s=ug(t,r)}catch(o){n&&n(o,null);return}i.writeFile(e,s,r,n)}function GF(e,t,r){r=r||{};var n=r.fs||Ln,i=ug(t,r);return n.writeFileSync(e,i,r)}function ag(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e=e.replace(/^\uFEFF/,""),e}var WF={readFile:$F,readFileSync:HF,writeFile:UF,writeFileSync:GF};cg.exports=WF});var vo=d((s7,hg)=>{"use strict";var fg=tt().fromCallback,bo=lg();hg.exports={readJson:fg(bo.readFile),readJsonSync:bo.readFileSync,writeJson:fg(bo.writeFile),writeJsonSync:bo.writeFileSync}});var mg=d((o7,dg)=>{"use strict";var VF=require("path"),zF=ft(),YF=Lt().pathExists,pg=vo();function KF(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=VF.dirname(e);YF(i,(s,o)=>{if(s)return n(s);if(o)return pg.writeJson(e,t,r,n);zF.mkdirs(i,u=>{if(u)return n(u);pg.writeJson(e,t,r,n)})})}dg.exports=KF});var yg=d((u7,gg)=>{"use strict";var XF=Ae(),JF=require("path"),ZF=ft(),QF=vo();function eR(e,t,r){let n=JF.dirname(e);XF.existsSync(n)||ZF.mkdirsSync(n),QF.writeJsonSync(e,t,r)}gg.exports=eR});var _g=d((a7,Eg)=>{"use strict";var tR=tt().fromCallback,Je=vo();Je.outputJson=tR(mg());Je.outputJsonSync=yg();Je.outputJSON=Je.outputJson;Je.outputJSONSync=Je.outputJsonSync;Je.writeJSON=Je.writeJson;Je.writeJSONSync=Je.writeJsonSync;Je.readJSON=Je.readJson;Je.readJSONSync=Je.readJsonSync;Eg.exports=Je});var Ag=d((c7,Sg)=>{"use strict";var Dg=Ae(),rR=require("path"),nR=jc().copySync,xg=rs().removeSync,iR=ft().mkdirpSync,bg=Xi();function sR(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=bg.checkPathsSync(e,t,"move");return bg.checkParentPathsSync(e,i,t,"move"),iR(rR.dirname(t)),oR(e,t,n)}function oR(e,t,r){if(r)return xg(t),vg(e,t,r);if(Dg.existsSync(t))throw new Error("dest already exists.");return vg(e,t,r)}function vg(e,t,r){try{Dg.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return uR(e,t,r)}}function uR(e,t,r){return nR(e,t,{overwrite:r,errorOnExist:!0}),xg(e)}Sg.exports=sR});var Cg=d((l7,wg)=>{"use strict";wg.exports={moveSync:Ag()}});var kg=d((f7,Og)=>{"use strict";var aR=Ae(),cR=require("path"),lR=Hc().copy,Tg=rs().remove,fR=ft().mkdirp,hR=Lt().pathExists,Fg=Xi();function pR(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;Fg.checkPaths(e,t,"move",(s,o)=>{if(s)return n(s);let{srcStat:u}=o;Fg.checkParentPaths(e,u,t,"move",a=>{if(a)return n(a);fR(cR.dirname(t),c=>c?n(c):dR(e,t,i,n))})})}function dR(e,t,r,n){if(r)return Tg(t,i=>i?n(i):Rg(e,t,r,n));hR(t,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):Rg(e,t,r,n))}function Rg(e,t,r,n){aR.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):mR(e,t,r,n):n())}function mR(e,t,r,n){lR(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):Tg(e,n))}Og.exports=pR});var Pg=d((h7,Bg)=>{"use strict";var gR=tt().fromCallback;Bg.exports={move:gR(kg())}});var Mg=d((p7,Ng)=>{"use strict";var yR=tt().fromCallback,ss=Ae(),Ig=require("path"),Lg=ft(),ER=Lt().pathExists;function _R(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Ig.dirname(e);ER(i,(s,o)=>{if(s)return n(s);if(o)return ss.writeFile(e,t,r,n);Lg.mkdirs(i,u=>{if(u)return n(u);ss.writeFile(e,t,r,n)})})}function bR(e,...t){let r=Ig.dirname(e);if(ss.existsSync(r))return ss.writeFileSync(e,...t);Lg.mkdirsSync(r),ss.writeFileSync(e,...t)}Ng.exports={outputFile:yR(_R),outputFileSync:bR}});var jg=d((d7,Gc)=>{"use strict";Gc.exports=Object.assign({},Cc(),jc(),Hc(),Nm(),og(),_g(),ft(),Cg(),Pg(),Mg(),Lt(),rs());var qg=require("fs");Object.getOwnPropertyDescriptor(qg,"promises")&&Object.defineProperty(Gc.exports,"promises",{get(){return qg.promises}})});var Yy=d($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.splitWhen=$n.flatten=void 0;function sO(e){return e.reduce((t,r)=>[].concat(t,r),[])}$n.flatten=sO;function oO(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}$n.splitWhen=oO});var Ky=d(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.isEnoentCodeError=void 0;function uO(e){return e.code==="ENOENT"}Po.isEnoentCodeError=uO});var Xy=d(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.createDirentFromStats=void 0;var ml=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function aO(e,t){return new ml(e,t)}Io.createDirentFromStats=aO});var Jy=d(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.removeLeadingDotSegment=Mt.escape=Mt.makeAbsolute=Mt.unixify=void 0;var cO=require("path"),lO=2,fO=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function hO(e){return e.replace(/\\/g,"/")}Mt.unixify=hO;function pO(e,t){return cO.resolve(e,t)}Mt.makeAbsolute=pO;function dO(e){return e.replace(fO,"\\$2")}Mt.escape=dO;function mO(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(lO)}return e}Mt.removeLeadingDotSegment=mO});var Qy=d((P7,Zy)=>{Zy.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var r1=d((I7,t1)=>{var gO=Qy(),e1={"{":"}","(":")","[":"]"},yO=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var u=e[t+1];t+=2;var a=e1[u];if(a){var c=e.indexOf(a,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},EO=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=e1[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};t1.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(gO(t))return!0;var n=yO;return r&&r.strict===!1&&(n=EO),n(t)}});var i1=d((L7,n1)=>{"use strict";var _O=r1(),bO=require("path").posix.dirname,vO=require("os").platform()==="win32",gl="/",DO=/\\/g,xO=/[\{\[].*[\}\]]$/,SO=/(^|[^\\])([\{\[]|\([^\)]+$)/,AO=/\\([\!\*\?\|\[\]\(\)\{\}])/g;n1.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&vO&&t.indexOf(gl)<0&&(t=t.replace(DO,gl)),xO.test(t)&&(t+=gl),t+="a";d