@socketsecurity/sdk 2.0.1 → 2.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.
@@ -1,2 +0,0 @@
1
- /* Socket SDK ESM - Built with esbuild */
2
- import{a}from"./chunk-3V7KNFWE.mjs";import"./chunk-LHGMBIJS.mjs";import"./chunk-UKECVIRQ.mjs";export default a();
@@ -1,33 +0,0 @@
1
- /* Socket SDK ESM - Built with esbuild */
2
- import{d as Ve}from"./chunk-LHGMBIJS.mjs";import{a as ct,b as oe}from"./chunk-UKECVIRQ.mjs";var Ge=oe((ni,yt)=>{"use strict";var pe=Object.defineProperty,s=(c,y)=>pe(c,"name",{value:y,configurable:!0}),He=(c,y)=>()=>(c&&(y=c(c=0)),y),tt=(c,y)=>()=>(y||c((y={exports:{}}).exports,y),y.exports),Xe=(c,y)=>{for(var g in y)pe(c,g,{get:y[g],enumerable:!0})},Tt=tt(c=>{"use strict";var y=c&&c.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(c,"__esModule",{value:!0}),c.Minipass=c.isWritable=c.isReadable=c.isStream=void 0;var g=typeof process=="object"&&process?process:{stdout:null,stderr:null},w=ct("node:events"),d=y(ct("node:stream")),f=ct("node:string_decoder"),l=s(t=>!!t&&typeof t=="object"&&(t instanceof et||t instanceof d.default||(0,c.isReadable)(t)||(0,c.isWritable)(t)),"isStream");c.isStream=l;var u=s(t=>!!t&&typeof t=="object"&&t instanceof w.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==d.default.Writable.prototype.pipe,"isReadable");c.isReadable=u;var e=s(t=>!!t&&typeof t=="object"&&t instanceof w.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function","isWritable");c.isWritable=e;var h=Symbol("EOF"),a=Symbol("maybeEmitEnd"),o=Symbol("emittedEnd"),v=Symbol("emittingEnd"),S=Symbol("emittedError"),b=Symbol("closed"),i=Symbol("read"),r=Symbol("flush"),n=Symbol("flushChunk"),m=Symbol("encoding"),T=Symbol("decoder"),E=Symbol("flowing"),D=Symbol("paused"),F=Symbol("resume"),L=Symbol("buffer"),j=Symbol("pipes"),z=Symbol("bufferLength"),q=Symbol("bufferPush"),B=Symbol("bufferShift"),O=Symbol("objectMode"),I=Symbol("destroyed"),P=Symbol("error"),U=Symbol("emitData"),M=Symbol("emitEnd"),C=Symbol("emitEnd2"),_=Symbol("async"),G=Symbol("abort"),Y=Symbol("aborted"),k=Symbol("signal"),N=Symbol("dataListeners"),x=Symbol("discarded"),V=s(t=>Promise.resolve().then(t),"defer"),rt=s(t=>t(),"nodefer"),at=s(t=>t==="end"||t==="finish"||t==="prefinish","isEndish"),ht=s(t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,"isArrayBufferLike"),gt=s(t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),"isArrayBufferView"),R=class{static{s(this,"Pipe")}src;dest;opts;ondrain;constructor(t,p,$){this.src=t,this.dest=p,this.opts=$,this.ondrain=()=>t[F](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},A=class extends R{static{s(this,"PipeProxyErrors")}unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,p,$){super(t,p,$),this.proxyErrors=X=>p.emit("error",X),t.on("error",this.proxyErrors)}},W=s(t=>!!t.objectMode,"isObjectModeOptions"),H=s(t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer","isEncodingOptions"),et=class extends w.EventEmitter{static{s(this,"Minipass")}[E]=!1;[D]=!1;[j]=[];[L]=[];[O];[m];[_];[T];[h]=!1;[o]=!1;[v]=!1;[b]=!1;[S]=null;[z]=0;[I]=!1;[k];[Y]=!1;[N]=0;[x]=!1;writable=!0;readable=!0;constructor(...t){let p=t[0]||{};if(super(),p.objectMode&&typeof p.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");W(p)?(this[O]=!0,this[m]=null):H(p)?(this[m]=p.encoding,this[O]=!1):(this[O]=!1,this[m]=null),this[_]=!!p.async,this[T]=this[m]?new f.StringDecoder(this[m]):null,p&&p.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:s(()=>this[L],"get")}),p&&p.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:s(()=>this[j],"get")});let{signal:$}=p;$&&(this[k]=$,$.aborted?this[G]():$.addEventListener("abort",()=>this[G]()))}get bufferLength(){return this[z]}get encoding(){return this[m]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[O]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[_]}set async(t){this[_]=this[_]||!!t}[G](){this[Y]=!0,this.emit("abort",this[k]?.reason),this.destroy(this[k]?.reason)}get aborted(){return this[Y]}set aborted(t){}write(t,p,$){if(this[Y])return!1;if(this[h])throw new Error("write after end");if(this[I])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof p=="function"&&($=p,p="utf8"),p||(p="utf8");let X=this[_]?V:rt;if(!this[O]&&!Buffer.isBuffer(t)){if(gt(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(ht(t))t=Buffer.from(t);else if(typeof t!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[O]?(this[E]&&this[z]!==0&&this[r](!0),this[E]?this.emit("data",t):this[q](t),this[z]!==0&&this.emit("readable"),$&&X($),this[E]):t.length?(typeof t=="string"&&!(p===this[m]&&!this[T]?.lastNeed)&&(t=Buffer.from(t,p)),Buffer.isBuffer(t)&&this[m]&&(t=this[T].write(t)),this[E]&&this[z]!==0&&this[r](!0),this[E]?this.emit("data",t):this[q](t),this[z]!==0&&this.emit("readable"),$&&X($),this[E]):(this[z]!==0&&this.emit("readable"),$&&X($),this[E])}read(t){if(this[I])return null;if(this[x]=!1,this[z]===0||t===0||t&&t>this[z])return this[a](),null;this[O]&&(t=null),this[L].length>1&&!this[O]&&(this[L]=[this[m]?this[L].join(""):Buffer.concat(this[L],this[z])]);let p=this[i](t||null,this[L][0]);return this[a](),p}[i](t,p){if(this[O])this[B]();else{let $=p;t===$.length||t===null?this[B]():typeof $=="string"?(this[L][0]=$.slice(t),p=$.slice(0,t),this[z]-=t):(this[L][0]=$.subarray(t),p=$.subarray(0,t),this[z]-=t)}return this.emit("data",p),!this[L].length&&!this[h]&&this.emit("drain"),p}end(t,p,$){return typeof t=="function"&&($=t,t=void 0),typeof p=="function"&&($=p,p="utf8"),t!==void 0&&this.write(t,p),$&&this.once("end",$),this[h]=!0,this.writable=!1,(this[E]||!this[D])&&this[a](),this}[F](){this[I]||(!this[N]&&!this[j].length&&(this[x]=!0),this[D]=!1,this[E]=!0,this.emit("resume"),this[L].length?this[r]():this[h]?this[a]():this.emit("drain"))}resume(){return this[F]()}pause(){this[E]=!1,this[D]=!0,this[x]=!1}get destroyed(){return this[I]}get flowing(){return this[E]}get paused(){return this[D]}[q](t){this[O]?this[z]+=1:this[z]+=t.length,this[L].push(t)}[B](){return this[O]?this[z]-=1:this[z]-=this[L][0].length,this[L].shift()}[r](t=!1){do;while(this[n](this[B]())&&this[L].length);!t&&!this[L].length&&!this[h]&&this.emit("drain")}[n](t){return this.emit("data",t),this[E]}pipe(t,p){if(this[I])return t;this[x]=!1;let $=this[o];return p=p||{},t===g.stdout||t===g.stderr?p.end=!1:p.end=p.end!==!1,p.proxyErrors=!!p.proxyErrors,$?p.end&&t.end():(this[j].push(p.proxyErrors?new A(this,t,p):new R(this,t,p)),this[_]?V(()=>this[F]()):this[F]()),t}unpipe(t){let p=this[j].find($=>$.dest===t);p&&(this[j].length===1?(this[E]&&this[N]===0&&(this[E]=!1),this[j]=[]):this[j].splice(this[j].indexOf(p),1),p.unpipe())}addListener(t,p){return this.on(t,p)}on(t,p){let $=super.on(t,p);if(t==="data")this[x]=!1,this[N]++,!this[j].length&&!this[E]&&this[F]();else if(t==="readable"&&this[z]!==0)super.emit("readable");else if(at(t)&&this[o])super.emit(t),this.removeAllListeners(t);else if(t==="error"&&this[S]){let X=p;this[_]?V(()=>X.call(this,this[S])):X.call(this,this[S])}return $}removeListener(t,p){return this.off(t,p)}off(t,p){let $=super.off(t,p);return t==="data"&&(this[N]=this.listeners("data").length,this[N]===0&&!this[x]&&!this[j].length&&(this[E]=!1)),$}removeAllListeners(t){let p=super.removeAllListeners(t);return(t==="data"||t===void 0)&&(this[N]=0,!this[x]&&!this[j].length&&(this[E]=!1)),p}get emittedEnd(){return this[o]}[a](){!this[v]&&!this[o]&&!this[I]&&this[L].length===0&&this[h]&&(this[v]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[b]&&this.emit("close"),this[v]=!1)}emit(t,...p){let $=p[0];if(t!=="error"&&t!=="close"&&t!==I&&this[I])return!1;if(t==="data")return!this[O]&&!$?!1:this[_]?(V(()=>this[U]($)),!0):this[U]($);if(t==="end")return this[M]();if(t==="close"){if(this[b]=!0,!this[o]&&!this[I])return!1;let K=super.emit("close");return this.removeAllListeners("close"),K}else if(t==="error"){this[S]=$,super.emit(P,$);let K=!this[k]||this.listeners("error").length?super.emit("error",$):!1;return this[a](),K}else if(t==="resume"){let K=super.emit("resume");return this[a](),K}else if(t==="finish"||t==="prefinish"){let K=super.emit(t);return this.removeAllListeners(t),K}let X=super.emit(t,...p);return this[a](),X}[U](t){for(let $ of this[j])$.dest.write(t)===!1&&this.pause();let p=this[x]?!1:super.emit("data",t);return this[a](),p}[M](){return this[o]?!1:(this[o]=!0,this.readable=!1,this[_]?(V(()=>this[C]()),!0):this[C]())}[C](){if(this[T]){let p=this[T].end();if(p){for(let $ of this[j])$.dest.write(p);this[x]||super.emit("data",p)}}for(let p of this[j])p.end();let t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){let t=Object.assign([],{dataLength:0});this[O]||(t.dataLength=0);let p=this.promise();return this.on("data",$=>{t.push($),this[O]||(t.dataLength+=$.length)}),await p,t}async concat(){if(this[O])throw new Error("cannot concat in objectMode");let t=await this.collect();return this[m]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise((t,p)=>{this.on(I,()=>p(new Error("stream destroyed"))),this.on("error",$=>p($)),this.on("end",()=>t())})}[Symbol.asyncIterator](){this[x]=!1;let t=!1,p=s(async()=>(this.pause(),t=!0,{value:void 0,done:!0}),"stop");return{next:s(()=>{if(t)return p();let $=this.read();if($!==null)return Promise.resolve({done:!1,value:$});if(this[h])return p();let X,K,ot=s(ut=>{this.off("data",it),this.off("end",lt),this.off(I,ft),p(),K(ut)},"onerr"),it=s(ut=>{this.off("error",ot),this.off("end",lt),this.off(I,ft),this.pause(),X({value:ut,done:!!this[h]})},"ondata"),lt=s(()=>{this.off("error",ot),this.off("data",it),this.off(I,ft),p(),X({done:!0,value:void 0})},"onend"),ft=s(()=>ot(new Error("stream destroyed")),"ondestroy");return new Promise((ut,pt)=>{K=pt,X=ut,this.once(I,ft),this.once("error",ot),this.once("end",lt),this.once("data",it)})},"next"),throw:p,return:p,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[x]=!1;let t=!1,p=s(()=>(this.pause(),this.off(P,p),this.off(I,p),this.off("end",p),t=!0,{done:!0,value:void 0}),"stop"),$=s(()=>{if(t)return p();let X=this.read();return X===null?p():{done:!1,value:X}},"next");return this.once("end",p),this.once(P,p),this.once(I,p),{next:$,throw:p,return:p,[Symbol.iterator](){return this}}}destroy(t){if(this[I])return t?this.emit("error",t):this.emit(I),this;this[I]=!0,this[x]=!0,this[L].length=0,this[z]=0;let p=this;return typeof p.close=="function"&&!this[b]&&p.close(),t?this.emit("error",t):this.emit(I),this}static get isStream(){return c.isStream}};c.Minipass=et}),fe=tt((c,y)=>{var{Minipass:g}=Tt(),w=Symbol("_data"),d=Symbol("_length"),f=class extends g{static{s(this,"Collect")}constructor(u){super(u),this[w]=[],this[d]=0}write(u,e,h){typeof e=="function"&&(h=e,e="utf8"),e||(e="utf8");let a=Buffer.isBuffer(u)?u:Buffer.from(u,e);return this[w].push(a),this[d]+=a.length,h&&h(),!0}end(u,e,h){typeof u=="function"&&(h=u,u=null),typeof e=="function"&&(h=e,e="utf8"),u&&this.write(u,e);let a=Buffer.concat(this[w],this[d]);return super.write(a),super.end(h)}};y.exports=f;var l=class extends g{static{s(this,"CollectPassThrough")}constructor(u){super(u),this[w]=[],this[d]=0}write(u,e,h){typeof e=="function"&&(h=e,e="utf8"),e||(e="utf8");let a=Buffer.isBuffer(u)?u:Buffer.from(u,e);return this[w].push(a),this[d]+=a.length,super.write(u,e,h)}end(u,e,h){typeof u=="function"&&(h=u,u=null),typeof e=="function"&&(h=e,e="utf8"),u&&this.write(u,e);let a=Buffer.concat(this[w],this[d]);return this.emit("collect",a),super.end(h)}};y.exports.PassThrough=l}),de=tt((c,y)=>{"use strict";var g=typeof process=="object"&&process?process:{stdout:null,stderr:null},w=ct("events"),d=ct("stream"),f=ct("string_decoder").StringDecoder,l=Symbol("EOF"),u=Symbol("maybeEmitEnd"),e=Symbol("emittedEnd"),h=Symbol("emittingEnd"),a=Symbol("emittedError"),o=Symbol("closed"),v=Symbol("read"),S=Symbol("flush"),b=Symbol("flushChunk"),i=Symbol("encoding"),r=Symbol("decoder"),n=Symbol("flowing"),m=Symbol("paused"),T=Symbol("resume"),E=Symbol("bufferLength"),D=Symbol("bufferPush"),F=Symbol("bufferShift"),L=Symbol("objectMode"),j=Symbol("destroyed"),z=Symbol("emitData"),q=Symbol("emitEnd"),B=Symbol("emitEnd2"),O=Symbol("async"),I=s(N=>Promise.resolve().then(N),"defer"),P=global._MP_NO_ITERATOR_SYMBOLS_!=="1",U=P&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),M=P&&Symbol.iterator||Symbol("iterator not implemented"),C=s(N=>N==="end"||N==="finish"||N==="prefinish","isEndish"),_=s(N=>N instanceof ArrayBuffer||typeof N=="object"&&N.constructor&&N.constructor.name==="ArrayBuffer"&&N.byteLength>=0,"isArrayBuffer"),G=s(N=>!Buffer.isBuffer(N)&&ArrayBuffer.isView(N),"isArrayBufferView"),Y=class{static{s(this,"Pipe")}constructor(N,x,V){this.src=N,this.dest=x,this.opts=V,this.ondrain=()=>N[T](),x.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},k=class extends Y{static{s(this,"PipeProxyErrors")}unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(N,x,V){super(N,x,V),this.proxyErrors=rt=>x.emit("error",rt),N.on("error",this.proxyErrors)}};y.exports=class me extends d{static{s(this,"Minipass")}constructor(x){super(),this[n]=!1,this[m]=!1,this.pipes=[],this.buffer=[],this[L]=x&&x.objectMode||!1,this[L]?this[i]=null:this[i]=x&&x.encoding||null,this[i]==="buffer"&&(this[i]=null),this[O]=x&&!!x.async||!1,this[r]=this[i]?new f(this[i]):null,this[l]=!1,this[e]=!1,this[h]=!1,this[o]=!1,this[a]=null,this.writable=!0,this.readable=!0,this[E]=0,this[j]=!1}get bufferLength(){return this[E]}get encoding(){return this[i]}set encoding(x){if(this[L])throw new Error("cannot set encoding in objectMode");if(this[i]&&x!==this[i]&&(this[r]&&this[r].lastNeed||this[E]))throw new Error("cannot change encoding");this[i]!==x&&(this[r]=x?new f(x):null,this.buffer.length&&(this.buffer=this.buffer.map(V=>this[r].write(V)))),this[i]=x}setEncoding(x){this.encoding=x}get objectMode(){return this[L]}set objectMode(x){this[L]=this[L]||!!x}get async(){return this[O]}set async(x){this[O]=this[O]||!!x}write(x,V,rt){if(this[l])throw new Error("write after end");if(this[j])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof V=="function"&&(rt=V,V="utf8"),V||(V="utf8");let at=this[O]?I:ht=>ht();return!this[L]&&!Buffer.isBuffer(x)&&(G(x)?x=Buffer.from(x.buffer,x.byteOffset,x.byteLength):_(x)?x=Buffer.from(x):typeof x!="string"&&(this.objectMode=!0)),this[L]?(this.flowing&&this[E]!==0&&this[S](!0),this.flowing?this.emit("data",x):this[D](x),this[E]!==0&&this.emit("readable"),rt&&at(rt),this.flowing):x.length?(typeof x=="string"&&!(V===this[i]&&!this[r].lastNeed)&&(x=Buffer.from(x,V)),Buffer.isBuffer(x)&&this[i]&&(x=this[r].write(x)),this.flowing&&this[E]!==0&&this[S](!0),this.flowing?this.emit("data",x):this[D](x),this[E]!==0&&this.emit("readable"),rt&&at(rt),this.flowing):(this[E]!==0&&this.emit("readable"),rt&&at(rt),this.flowing)}read(x){if(this[j])return null;if(this[E]===0||x===0||x>this[E])return this[u](),null;this[L]&&(x=null),this.buffer.length>1&&!this[L]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[E])]);let V=this[v](x||null,this.buffer[0]);return this[u](),V}[v](x,V){return x===V.length||x===null?this[F]():(this.buffer[0]=V.slice(x),V=V.slice(0,x),this[E]-=x),this.emit("data",V),!this.buffer.length&&!this[l]&&this.emit("drain"),V}end(x,V,rt){return typeof x=="function"&&(rt=x,x=null),typeof V=="function"&&(rt=V,V="utf8"),x&&this.write(x,V),rt&&this.once("end",rt),this[l]=!0,this.writable=!1,(this.flowing||!this[m])&&this[u](),this}[T](){this[j]||(this[m]=!1,this[n]=!0,this.emit("resume"),this.buffer.length?this[S]():this[l]?this[u]():this.emit("drain"))}resume(){return this[T]()}pause(){this[n]=!1,this[m]=!0}get destroyed(){return this[j]}get flowing(){return this[n]}get paused(){return this[m]}[D](x){this[L]?this[E]+=1:this[E]+=x.length,this.buffer.push(x)}[F](){return this.buffer.length&&(this[L]?this[E]-=1:this[E]-=this.buffer[0].length),this.buffer.shift()}[S](x){do;while(this[b](this[F]()));!x&&!this.buffer.length&&!this[l]&&this.emit("drain")}[b](x){return x?(this.emit("data",x),this.flowing):!1}pipe(x,V){if(this[j])return;let rt=this[e];return V=V||{},x===g.stdout||x===g.stderr?V.end=!1:V.end=V.end!==!1,V.proxyErrors=!!V.proxyErrors,rt?V.end&&x.end():(this.pipes.push(V.proxyErrors?new k(this,x,V):new Y(this,x,V)),this[O]?I(()=>this[T]()):this[T]()),x}unpipe(x){let V=this.pipes.find(rt=>rt.dest===x);V&&(this.pipes.splice(this.pipes.indexOf(V),1),V.unpipe())}addListener(x,V){return this.on(x,V)}on(x,V){let rt=super.on(x,V);return x==="data"&&!this.pipes.length&&!this.flowing?this[T]():x==="readable"&&this[E]!==0?super.emit("readable"):C(x)&&this[e]?(super.emit(x),this.removeAllListeners(x)):x==="error"&&this[a]&&(this[O]?I(()=>V.call(this,this[a])):V.call(this,this[a])),rt}get emittedEnd(){return this[e]}[u](){!this[h]&&!this[e]&&!this[j]&&this.buffer.length===0&&this[l]&&(this[h]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[o]&&this.emit("close"),this[h]=!1)}emit(x,V,...rt){if(x!=="error"&&x!=="close"&&x!==j&&this[j])return;if(x==="data")return V?this[O]?I(()=>this[z](V)):this[z](V):!1;if(x==="end")return this[q]();if(x==="close"){if(this[o]=!0,!this[e]&&!this[j])return;let ht=super.emit("close");return this.removeAllListeners("close"),ht}else if(x==="error"){this[a]=V;let ht=super.emit("error",V);return this[u](),ht}else if(x==="resume"){let ht=super.emit("resume");return this[u](),ht}else if(x==="finish"||x==="prefinish"){let ht=super.emit(x);return this.removeAllListeners(x),ht}let at=super.emit(x,V,...rt);return this[u](),at}[z](x){for(let rt of this.pipes)rt.dest.write(x)===!1&&this.pause();let V=super.emit("data",x);return this[u](),V}[q](){this[e]||(this[e]=!0,this.readable=!1,this[O]?I(()=>this[B]()):this[B]())}[B](){if(this[r]){let V=this[r].end();if(V){for(let rt of this.pipes)rt.dest.write(V);super.emit("data",V)}}for(let V of this.pipes)V.end();let x=super.emit("end");return this.removeAllListeners("end"),x}collect(){let x=[];this[L]||(x.dataLength=0);let V=this.promise();return this.on("data",rt=>{x.push(rt),this[L]||(x.dataLength+=rt.length)}),V.then(()=>x)}concat(){return this[L]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(x=>this[L]?Promise.reject(new Error("cannot concat in objectMode")):this[i]?x.join(""):Buffer.concat(x,x.dataLength))}promise(){return new Promise((x,V)=>{this.on(j,()=>V(new Error("stream destroyed"))),this.on("error",rt=>V(rt)),this.on("end",()=>x())})}[U](){return{next:s(()=>{let x=this.read();if(x!==null)return Promise.resolve({done:!1,value:x});if(this[l])return Promise.resolve({done:!0});let V=null,rt=null,at=s(A=>{this.removeListener("data",ht),this.removeListener("end",gt),rt(A)},"onerr"),ht=s(A=>{this.removeListener("error",at),this.removeListener("end",gt),this.pause(),V({value:A,done:!!this[l]})},"ondata"),gt=s(()=>{this.removeListener("error",at),this.removeListener("data",ht),V({done:!0})},"onend"),R=s(()=>at(new Error("stream destroyed")),"ondestroy");return new Promise((A,W)=>{rt=W,V=A,this.once(j,R),this.once("error",at),this.once("end",gt),this.once("data",ht)})},"next")}}[M](){return{next:s(()=>{let x=this.read();return{value:x,done:x===null}},"next")}}destroy(x){return this[j]?(x?this.emit("error",x):this.emit(j),this):(this[j]=!0,this.buffer.length=0,this[E]=0,typeof this.close=="function"&&!this[o]&&this.close(),x?this.emit("error",x):this.emit(j),this)}static isStream(x){return!!x&&(x instanceof me||x instanceof d||x instanceof w&&(typeof x.pipe=="function"||typeof x.write=="function"&&typeof x.end=="function"))}}}),zt=tt((c,y)=>{var g=de(),w=ct("events"),d=s(r=>r&&r instanceof w&&(typeof r.pipe=="function"||typeof r.write=="function"&&typeof r.end=="function"),"isStream"),f=Symbol("_head"),l=Symbol("_tail"),u=Symbol("_linkStreams"),e=Symbol("_setHead"),h=Symbol("_setTail"),a=Symbol("_onError"),o=Symbol("_onData"),v=Symbol("_onEnd"),S=Symbol("_onDrain"),b=Symbol("_streams"),i=class extends g{static{s(this,"Pipeline")}constructor(r,...n){d(r)&&(n.unshift(r),r={}),super(r),this[b]=[],n.length&&this.push(...n)}[u](r){return r.reduce((n,m)=>(n.on("error",T=>m.emit("error",T)),n.pipe(m),m))}push(...r){this[b].push(...r),this[l]&&r.unshift(this[l]);let n=this[u](r);this[h](n),this[f]||this[e](r[0])}unshift(...r){this[b].unshift(...r),this[f]&&r.push(this[f]);let n=this[u](r);this[e](r[0]),this[l]||this[h](n)}destroy(r){return this[b].forEach(n=>typeof n.destroy=="function"&&n.destroy()),super.destroy(r)}[h](r){this[l]=r,r.on("error",n=>this[a](r,n)),r.on("data",n=>this[o](r,n)),r.on("end",()=>this[v](r)),r.on("finish",()=>this[v](r))}[a](r,n){r===this[l]&&this.emit("error",n)}[o](r,n){r===this[l]&&super.write(n)}[v](r){r===this[l]&&super.end()}pause(){return super.pause(),this[l]&&this[l].pause&&this[l].pause()}emit(r,...n){return r==="resume"&&this[l]&&this[l].resume&&this[l].resume(),super.emit(r,...n)}[e](r){this[f]=r,r.on("drain",()=>this[S](r))}[S](r){r===this[f]&&this.emit("drain")}write(r,n,m){return this[f].write(r,n,m)&&(this.flowing||this.buffer.length===0)}end(r,n,m){return this[f].end(r,n,m),this}};y.exports=i}),At=tt((c,y)=>{"use strict";var g=ct("crypto"),{Minipass:w}=Tt(),d=["sha512","sha384","sha256"],f=["sha512"],l=/^[a-z0-9+/]+(?:=?=?)$/i,u=/^([a-z0-9]+)-([^?]+)([?\S*]*)$/,e=/^([a-z0-9]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)?$/,h=/^[\x21-\x7E]+$/,a=s(O=>O?.length?`?${O.join("?")}`:"","getOptString"),o=class extends w{static{s(this,"IntegrityStream")}#t;#e;#s;constructor(O){super(),this.size=0,this.opts=O,this.#i(),O?.algorithms?this.algorithms=[...O.algorithms]:this.algorithms=[...f],this.algorithm!==null&&!this.algorithms.includes(this.algorithm)&&this.algorithms.push(this.algorithm),this.hashes=this.algorithms.map(g.createHash)}#i(){this.sri=this.opts?.integrity?i(this.opts?.integrity,this.opts):null,this.expectedSize=this.opts?.size,this.sri?this.sri.isHash?(this.goodSri=!0,this.algorithm=this.sri.algorithm):(this.goodSri=!this.sri.isEmpty(),this.algorithm=this.sri.pickAlgorithm(this.opts)):this.algorithm=null,this.digests=this.goodSri?this.sri[this.algorithm]:null,this.optString=a(this.opts?.options)}on(O,I){return O==="size"&&this.#e?I(this.#e):O==="integrity"&&this.#t?I(this.#t):O==="verified"&&this.#s?I(this.#s):super.on(O,I)}emit(O,I){return O==="end"&&this.#a(),super.emit(O,I)}write(O){return this.size+=O.length,this.hashes.forEach(I=>I.update(O)),super.write(O)}#a(){this.goodSri||this.#i();let O=i(this.hashes.map((P,U)=>`${this.algorithms[U]}-${P.digest("base64")}${this.optString}`).join(" "),this.opts),I=this.goodSri&&O.match(this.sri,this.opts);if(typeof this.expectedSize=="number"&&this.size!==this.expectedSize){let P=new Error(`stream size mismatch when checking ${this.sri}.
3
- Wanted: ${this.expectedSize}
4
- Found: ${this.size}`);P.code="EBADSIZE",P.found=this.size,P.expected=this.expectedSize,P.sri=this.sri,this.emit("error",P)}else if(this.sri&&!I){let P=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${O}. (${this.size} bytes)`);P.code="EINTEGRITY",P.found=O,P.expected=this.digests,P.algorithm=this.algorithm,P.sri=this.sri,this.emit("error",P)}else this.#e=this.size,this.emit("size",this.size),this.#t=O,this.emit("integrity",O),I&&(this.#s=I,this.emit("verified",I))}},v=class{static{s(this,"Hash")}get isHash(){return!0}constructor(O,I){let P=I?.strict;this.source=O.trim(),this.digest="",this.algorithm="",this.options=[];let U=this.source.match(P?e:u);if(!U||P&&!d.includes(U[1]))return;this.algorithm=U[1],this.digest=U[2];let M=U[3];M&&(this.options=M.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(O,I){let P=i(O,I);if(!P)return!1;if(P.isIntegrity){let U=P.pickAlgorithm(I,[this.algorithm]);return U&&P[U].find(C=>C.digest===this.digest)||!1}return P.digest===this.digest?P:!1}toString(O){return O?.strict&&!(d.includes(this.algorithm)&&this.digest.match(l)&&this.options.every(I=>I.match(h)))?"":`${this.algorithm}-${this.digest}${a(this.options)}`}};function S(O,I,P,U){let M=O!=="",C=!1,_="",G=U.length-1;for(let k=0;k<G;k++){let N=v.prototype.toString.call(U[k],P);N&&(C=!0,_+=N,_+=I)}let Y=v.prototype.toString.call(U[G],P);return Y&&(C=!0,_+=Y),M&&C?O+I+_:O+_}s(S,"integrityHashToString");var b=class{static{s(this,"Integrity")}get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(O){let I=O?.sep||" ",P="";if(O?.strict){I=I.replace(/\S+/g," ");for(let U of d)this[U]&&(P=S(P,I,O,this[U]))}else for(let U of Object.keys(this))P=S(P,I,O,this[U]);return P}concat(O,I){let P=typeof O=="string"?O:n(O,I);return i(`${this.toString(I)} ${P}`,I)}hexDigest(){return i(this,{single:!0}).hexDigest()}merge(O,I){let P=i(O,I);for(let U in P)if(this[U]){if(!this[U].find(M=>P[U].find(C=>M.digest===C.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[U]=P[U]}match(O,I){let P=i(O,I);if(!P)return!1;let U=P.pickAlgorithm(I,Object.keys(this));return!!U&&this[U]&&P[U]&&this[U].find(M=>P[U].find(C=>M.digest===C.digest))||!1}pickAlgorithm(O,I){let P=O?.pickAlgorithm||B,U=Object.keys(this).filter(M=>I?.length?I.includes(M):!0);return U.length?U.reduce((M,C)=>P(M,C)||M):null}};y.exports.parse=i;function i(O,I){if(!O)return null;if(typeof O=="string")return r(O,I);if(O.algorithm&&O.digest){let P=new b;return P[O.algorithm]=[O],r(n(P,I),I)}else return r(n(O,I),I)}s(i,"parse");function r(O,I){if(I?.single)return new v(O,I);let P=O.trim().split(/\s+/).reduce((U,M)=>{let C=new v(M,I);if(C.algorithm&&C.digest){let _=C.algorithm;U[_]||(U[_]=[]),U[_].push(C)}return U},new b);return P.isEmpty()?null:P}s(r,"_parse"),y.exports.stringify=n;function n(O,I){return O.algorithm&&O.digest?v.prototype.toString.call(O,I):typeof O=="string"?n(i(O,I),I):b.prototype.toString.call(O,I)}s(n,"stringify"),y.exports.fromHex=m;function m(O,I,P){let U=a(P?.options);return i(`${I}-${Buffer.from(O,"hex").toString("base64")}${U}`,P)}s(m,"fromHex"),y.exports.fromData=T;function T(O,I){let P=I?.algorithms||[...f],U=a(I?.options);return P.reduce((M,C)=>{let _=g.createHash(C).update(O).digest("base64"),G=new v(`${C}-${_}${U}`,I);if(G.algorithm&&G.digest){let Y=G.algorithm;M[Y]||(M[Y]=[]),M[Y].push(G)}return M},new b)}s(T,"fromData"),y.exports.fromStream=E;function E(O,I){let P=L(I);return new Promise((U,M)=>{O.pipe(P),O.on("error",M),P.on("error",M);let C;P.on("integrity",_=>{C=_}),P.on("end",()=>U(C)),P.resume()})}s(E,"fromStream"),y.exports.checkData=D;function D(O,I,P){if(I=i(I,P),!I||!Object.keys(I).length){if(P?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let U=I.pickAlgorithm(P),M=g.createHash(U).update(O).digest("base64"),C=i({algorithm:U,digest:M}),_=C.match(I,P);if(P=P||{},_||!P.error)return _;if(typeof P.size=="number"&&O.length!==P.size){let G=new Error(`data size mismatch when checking ${I}.
5
- Wanted: ${P.size}
6
- Found: ${O.length}`);throw G.code="EBADSIZE",G.found=O.length,G.expected=P.size,G.sri=I,G}else{let G=new Error(`Integrity checksum failed when using ${U}: Wanted ${I}, but got ${C}. (${O.length} bytes)`);throw G.code="EINTEGRITY",G.found=C,G.expected=I,G.algorithm=U,G.sri=I,G}}s(D,"checkData"),y.exports.checkStream=F;function F(O,I,P){if(P=P||Object.create(null),P.integrity=I,I=i(I,P),!I||!Object.keys(I).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let U=L(P);return new Promise((M,C)=>{O.pipe(U),O.on("error",C),U.on("error",C);let _;U.on("verified",G=>{_=G}),U.on("end",()=>M(_)),U.resume()})}s(F,"checkStream"),y.exports.integrityStream=L;function L(O=Object.create(null)){return new o(O)}s(L,"integrityStream"),y.exports.create=j;function j(O){let I=O?.algorithms||[...f],P=a(O?.options),U=I.map(g.createHash);return{update:s(function(M,C){return U.forEach(_=>_.update(M,C)),this},"update"),digest:s(function(){return I.reduce((M,C)=>{let _=U.shift().digest("base64"),G=new v(`${C}-${_}${P}`,O);if(G.algorithm&&G.digest){let Y=G.algorithm;M[Y]||(M[Y]=[]),M[Y].push(G)}return M},new b)},"digest")}}s(j,"createIntegrity");var z=g.getHashes(),q=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(O=>z.includes(O));function B(O,I){return q.indexOf(O.toLowerCase())>=q.indexOf(I.toLowerCase())?O:I}s(B,"getPrioritizedHash")}),Ye=tt((c,y)=>{(function(){var g;function w(d,f){var l=this instanceof w?this:g;if(l.reset(f),typeof d=="string"&&d.length>0&&l.hash(d),l!==this)return l}s(w,"MurmurHash3"),w.prototype.hash=function(d){var f,l,u,e,h;switch(h=d.length,this.len+=h,l=this.k1,u=0,this.rem){case 0:l^=h>u?d.charCodeAt(u++)&65535:0;case 1:l^=h>u?(d.charCodeAt(u++)&65535)<<8:0;case 2:l^=h>u?(d.charCodeAt(u++)&65535)<<16:0;case 3:l^=h>u?(d.charCodeAt(u)&255)<<24:0,l^=h>u?(d.charCodeAt(u++)&65280)>>8:0}if(this.rem=h+this.rem&3,h-=this.rem,h>0){for(f=this.h1;l=l*11601+(l&65535)*3432906752&4294967295,l=l<<15|l>>>17,l=l*13715+(l&65535)*461832192&4294967295,f^=l,f=f<<13|f>>>19,f=f*5+3864292196&4294967295,!(u>=h);)l=d.charCodeAt(u++)&65535^(d.charCodeAt(u++)&65535)<<8^(d.charCodeAt(u++)&65535)<<16,e=d.charCodeAt(u++),l^=(e&255)<<24^(e&65280)>>8;switch(l=0,this.rem){case 3:l^=(d.charCodeAt(u+2)&65535)<<16;case 2:l^=(d.charCodeAt(u+1)&65535)<<8;case 1:l^=d.charCodeAt(u)&65535}this.h1=f}return this.k1=l,this},w.prototype.result=function(){var d,f;return d=this.k1,f=this.h1,d>0&&(d=d*11601+(d&65535)*3432906752&4294967295,d=d<<15|d>>>17,d=d*13715+(d&65535)*461832192&4294967295,f^=d),f^=this.len,f^=f>>>16,f=f*51819+(f&65535)*2246770688&4294967295,f^=f>>>13,f=f*44597+(f&65535)*3266445312&4294967295,f^=f>>>16,f>>>0},w.prototype.reset=function(d){return this.h1=typeof d=="number"?d:0,this.rem=this.k1=this.len=0,this},g=new w,typeof y<"u"?y.exports=w:this.MurmurHash3=w})()}),Ke=tt((c,y)=>{"use strict";var g=Ye();y.exports=function(w){if(w){var d=new g(w);return("00000000"+d.result().toString(16)).slice(-8)}else return(Math.random().toString(16)+"0000000").slice(2,10)}}),ge=tt((c,y)=>{var g=ct("path"),w=Ke();y.exports=function(d,f,l){return g.join(d,(f?f+"-":"")+w(l))}}),ye=tt((c,y)=>{y.exports={name:"cacache",version:"20.0.1","cache-version":{content:"2",index:"5"},description:"Fast, fault-tolerant, cross-platform, disk-based, data-agnostic, content-addressable cache.",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",snap:"tap",coverage:"tap","test-docker":'docker run -it --rm --name pacotest -v "$PWD":/tmp -w /tmp node:latest npm test',lint:"npm run eslint",npmclilint:"npmcli-lint",lintfix:"npm run eslint -- --fix",postsnap:"npm run lintfix --",postlint:"template-oss-check",posttest:"npm run lint","template-oss-apply":"template-oss-apply --force",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"'},repository:{type:"git",url:"git+https://github.com/npm/cacache.git"},keywords:["cache","caching","content-addressable","sri","sri hash","subresource integrity","cache","storage","store","file store","filesystem","disk cache","disk storage"],license:"ISC",dependencies:{"@npmcli/fs":"^4.0.0","fs-minipass":"^3.0.0",glob:"^11.0.3","lru-cache":"^11.1.0",minipass:"^7.0.3","minipass-collect":"^2.0.1","minipass-flush":"^1.0.5","minipass-pipeline":"^1.2.4","p-map":"^7.0.2",ssri:"^12.0.0","unique-filename":"^4.0.0"},devDependencies:{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.25.0",tap:"^16.0.0"},engines:{node:"^20.17.0 || >=22.9.0"},templateOSS:{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",windowsCI:!1,version:"4.25.0",publish:"true"},author:"GitHub Inc.",tap:{"nyc-arg":["--exclude","tap-snapshots/**"]}}}),we=tt((c,y)=>{"use strict";y.exports=g;function g(w){return[w.slice(0,2),w.slice(2,4),w.slice(4)]}s(g,"hashToSegments")}),Lt=tt((c,y)=>{"use strict";var g=ye()["cache-version"].content,w=we(),d=ct("path"),f=At();y.exports=l;function l(e,h){let a=f.parse(h,{single:!0});return d.join(u(e),a.algorithm,...w(a.hexDigest()))}s(l,"contentPath"),y.exports.contentDir=u;function u(e){return d.join(e,`content-v${g}`)}s(u,"contentDir")}),ve=tt((c,y)=>{var g=s((w,{copy:d,wrap:f})=>{let l={};if(w&&typeof w=="object")for(let u of d)w[u]!==void 0&&(l[u]=w[u]);else l[f]=w;return l},"getOptions");y.exports=g}),Gt=tt((c,y)=>{"use strict";var g="2.0.0",w=Number.MAX_SAFE_INTEGER||9007199254740991,d=16,f=250,l=["major","premajor","minor","preminor","patch","prepatch","prerelease"];y.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:d,MAX_SAFE_BUILD_LENGTH:f,MAX_SAFE_INTEGER:w,RELEASE_TYPES:l,SEMVER_SPEC_VERSION:g,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}),Bt=tt((c,y)=>{"use strict";var g=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...w)=>{}:()=>{};y.exports=g}),_t=tt((c,y)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:g,MAX_SAFE_BUILD_LENGTH:w,MAX_LENGTH:d}=Gt(),f=Bt();c=y.exports={};var l=c.re=[],u=c.safeRe=[],e=c.src=[],h=c.safeSrc=[],a=c.t={},o=0,v="[a-zA-Z0-9-]",S=[["\\s",1],["\\d",d],[v,w]],b=s(r=>{for(let[n,m]of S)r=r.split(`${n}*`).join(`${n}{0,${m}}`).split(`${n}+`).join(`${n}{1,${m}}`);return r},"makeSafeRegex"),i=s((r,n,m)=>{let T=b(n),E=o++;f(r,E,n),a[r]=E,e[E]=n,h[E]=T,l[E]=new RegExp(n,m?"g":void 0),u[E]=new RegExp(T,m?"g":void 0)},"createToken");i("NUMERICIDENTIFIER","0|[1-9]\\d*"),i("NUMERICIDENTIFIERLOOSE","\\d+"),i("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${v}*`),i("MAINVERSION",`(${e[a.NUMERICIDENTIFIER]})\\.(${e[a.NUMERICIDENTIFIER]})\\.(${e[a.NUMERICIDENTIFIER]})`),i("MAINVERSIONLOOSE",`(${e[a.NUMERICIDENTIFIERLOOSE]})\\.(${e[a.NUMERICIDENTIFIERLOOSE]})\\.(${e[a.NUMERICIDENTIFIERLOOSE]})`),i("PRERELEASEIDENTIFIER",`(?:${e[a.NONNUMERICIDENTIFIER]}|${e[a.NUMERICIDENTIFIER]})`),i("PRERELEASEIDENTIFIERLOOSE",`(?:${e[a.NONNUMERICIDENTIFIER]}|${e[a.NUMERICIDENTIFIERLOOSE]})`),i("PRERELEASE",`(?:-(${e[a.PRERELEASEIDENTIFIER]}(?:\\.${e[a.PRERELEASEIDENTIFIER]})*))`),i("PRERELEASELOOSE",`(?:-?(${e[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${e[a.PRERELEASEIDENTIFIERLOOSE]})*))`),i("BUILDIDENTIFIER",`${v}+`),i("BUILD",`(?:\\+(${e[a.BUILDIDENTIFIER]}(?:\\.${e[a.BUILDIDENTIFIER]})*))`),i("FULLPLAIN",`v?${e[a.MAINVERSION]}${e[a.PRERELEASE]}?${e[a.BUILD]}?`),i("FULL",`^${e[a.FULLPLAIN]}$`),i("LOOSEPLAIN",`[v=\\s]*${e[a.MAINVERSIONLOOSE]}${e[a.PRERELEASELOOSE]}?${e[a.BUILD]}?`),i("LOOSE",`^${e[a.LOOSEPLAIN]}$`),i("GTLT","((?:<|>)?=?)"),i("XRANGEIDENTIFIERLOOSE",`${e[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),i("XRANGEIDENTIFIER",`${e[a.NUMERICIDENTIFIER]}|x|X|\\*`),i("XRANGEPLAIN",`[v=\\s]*(${e[a.XRANGEIDENTIFIER]})(?:\\.(${e[a.XRANGEIDENTIFIER]})(?:\\.(${e[a.XRANGEIDENTIFIER]})(?:${e[a.PRERELEASE]})?${e[a.BUILD]}?)?)?`),i("XRANGEPLAINLOOSE",`[v=\\s]*(${e[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${e[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${e[a.XRANGEIDENTIFIERLOOSE]})(?:${e[a.PRERELEASELOOSE]})?${e[a.BUILD]}?)?)?`),i("XRANGE",`^${e[a.GTLT]}\\s*${e[a.XRANGEPLAIN]}$`),i("XRANGELOOSE",`^${e[a.GTLT]}\\s*${e[a.XRANGEPLAINLOOSE]}$`),i("COERCEPLAIN",`(^|[^\\d])(\\d{1,${g}})(?:\\.(\\d{1,${g}}))?(?:\\.(\\d{1,${g}}))?`),i("COERCE",`${e[a.COERCEPLAIN]}(?:$|[^\\d])`),i("COERCEFULL",e[a.COERCEPLAIN]+`(?:${e[a.PRERELEASE]})?(?:${e[a.BUILD]})?(?:$|[^\\d])`),i("COERCERTL",e[a.COERCE],!0),i("COERCERTLFULL",e[a.COERCEFULL],!0),i("LONETILDE","(?:~>?)"),i("TILDETRIM",`(\\s*)${e[a.LONETILDE]}\\s+`,!0),c.tildeTrimReplace="$1~",i("TILDE",`^${e[a.LONETILDE]}${e[a.XRANGEPLAIN]}$`),i("TILDELOOSE",`^${e[a.LONETILDE]}${e[a.XRANGEPLAINLOOSE]}$`),i("LONECARET","(?:\\^)"),i("CARETTRIM",`(\\s*)${e[a.LONECARET]}\\s+`,!0),c.caretTrimReplace="$1^",i("CARET",`^${e[a.LONECARET]}${e[a.XRANGEPLAIN]}$`),i("CARETLOOSE",`^${e[a.LONECARET]}${e[a.XRANGEPLAINLOOSE]}$`),i("COMPARATORLOOSE",`^${e[a.GTLT]}\\s*(${e[a.LOOSEPLAIN]})$|^$`),i("COMPARATOR",`^${e[a.GTLT]}\\s*(${e[a.FULLPLAIN]})$|^$`),i("COMPARATORTRIM",`(\\s*)${e[a.GTLT]}\\s*(${e[a.LOOSEPLAIN]}|${e[a.XRANGEPLAIN]})`,!0),c.comparatorTrimReplace="$1$2$3",i("HYPHENRANGE",`^\\s*(${e[a.XRANGEPLAIN]})\\s+-\\s+(${e[a.XRANGEPLAIN]})\\s*$`),i("HYPHENRANGELOOSE",`^\\s*(${e[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${e[a.XRANGEPLAINLOOSE]})\\s*$`),i("STAR","(<|>)?=?\\s*\\*"),i("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),i("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}),Jt=tt((c,y)=>{"use strict";var g=Object.freeze({loose:!0}),w=Object.freeze({}),d=s(f=>f?typeof f!="object"?g:f:w,"parseOptions");y.exports=d}),be=tt((c,y)=>{"use strict";var g=/^[0-9]+$/,w=s((f,l)=>{let u=g.test(f),e=g.test(l);return u&&e&&(f=+f,l=+l),f===l?0:u&&!e?-1:e&&!u?1:f<l?-1:1},"compareIdentifiers"),d=s((f,l)=>w(l,f),"rcompareIdentifiers");y.exports={compareIdentifiers:w,rcompareIdentifiers:d}}),bt=tt((c,y)=>{"use strict";var g=Bt(),{MAX_LENGTH:w,MAX_SAFE_INTEGER:d}=Gt(),{safeRe:f,t:l}=_t(),u=Jt(),{compareIdentifiers:e}=be(),h=class Rt{static{s(this,"SemVer")}constructor(o,v){if(v=u(v),o instanceof Rt){if(o.loose===!!v.loose&&o.includePrerelease===!!v.includePrerelease)return o;o=o.version}else if(typeof o!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof o}".`);if(o.length>w)throw new TypeError(`version is longer than ${w} characters`);g("SemVer",o,v),this.options=v,this.loose=!!v.loose,this.includePrerelease=!!v.includePrerelease;let S=o.trim().match(v.loose?f[l.LOOSE]:f[l.FULL]);if(!S)throw new TypeError(`Invalid Version: ${o}`);if(this.raw=o,this.major=+S[1],this.minor=+S[2],this.patch=+S[3],this.major>d||this.major<0)throw new TypeError("Invalid major version");if(this.minor>d||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>d||this.patch<0)throw new TypeError("Invalid patch version");S[4]?this.prerelease=S[4].split(".").map(b=>{if(/^[0-9]+$/.test(b)){let i=+b;if(i>=0&&i<d)return i}return b}):this.prerelease=[],this.build=S[5]?S[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(o){if(g("SemVer.compare",this.version,this.options,o),!(o instanceof Rt)){if(typeof o=="string"&&o===this.version)return 0;o=new Rt(o,this.options)}return o.version===this.version?0:this.compareMain(o)||this.comparePre(o)}compareMain(o){return o instanceof Rt||(o=new Rt(o,this.options)),e(this.major,o.major)||e(this.minor,o.minor)||e(this.patch,o.patch)}comparePre(o){if(o instanceof Rt||(o=new Rt(o,this.options)),this.prerelease.length&&!o.prerelease.length)return-1;if(!this.prerelease.length&&o.prerelease.length)return 1;if(!this.prerelease.length&&!o.prerelease.length)return 0;let v=0;do{let S=this.prerelease[v],b=o.prerelease[v];if(g("prerelease compare",v,S,b),S===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(S===void 0)return-1;if(S!==b)return e(S,b)}while(++v)}compareBuild(o){o instanceof Rt||(o=new Rt(o,this.options));let v=0;do{let S=this.build[v],b=o.build[v];if(g("build compare",v,S,b),S===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(S===void 0)return-1;if(S!==b)return e(S,b)}while(++v)}inc(o,v,S){if(o.startsWith("pre")){if(!v&&S===!1)throw new Error("invalid increment argument: identifier is empty");if(v){let b=`-${v}`.match(this.options.loose?f[l.PRERELEASELOOSE]:f[l.PRERELEASE]);if(!b||b[1]!==v)throw new Error(`invalid identifier: ${v}`)}}switch(o){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",v,S);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",v,S);break;case"prepatch":this.prerelease.length=0,this.inc("patch",v,S),this.inc("pre",v,S);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",v,S),this.inc("pre",v,S);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let b=Number(S)?1:0;if(this.prerelease.length===0)this.prerelease=[b];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(v===this.prerelease.join(".")&&S===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(b)}}if(v){let i=[v,b];S===!1&&(i=[v]),e(this.prerelease[0],v)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${o}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};y.exports=h}),Ct=tt((c,y)=>{"use strict";var g=bt(),w=s((d,f,l=!1)=>{if(d instanceof g)return d;try{return new g(d,f)}catch(u){if(!l)return null;throw u}},"parse");y.exports=w}),Je=tt((c,y)=>{"use strict";var g=Ct(),w=s((d,f)=>{let l=g(d,f);return l?l.version:null},"valid");y.exports=w}),Ze=tt((c,y)=>{"use strict";var g=Ct(),w=s((d,f)=>{let l=g(d.trim().replace(/^[=v]+/,""),f);return l?l.version:null},"clean");y.exports=w}),Qe=tt((c,y)=>{"use strict";var g=bt(),w=s((d,f,l,u,e)=>{typeof l=="string"&&(e=u,u=l,l=void 0);try{return new g(d instanceof g?d.version:d,l).inc(f,u,e).version}catch{return null}},"inc");y.exports=w}),tr=tt((c,y)=>{"use strict";var g=Ct(),w=s((d,f)=>{let l=g(d,null,!0),u=g(f,null,!0),e=l.compare(u);if(e===0)return null;let h=e>0,a=h?l:u,o=h?u:l,v=!!a.prerelease.length;if(o.prerelease.length&&!v){if(!o.patch&&!o.minor)return"major";if(o.compareMain(a)===0)return o.minor&&!o.patch?"minor":"patch"}let S=v?"pre":"";return l.major!==u.major?S+"major":l.minor!==u.minor?S+"minor":l.patch!==u.patch?S+"patch":"prerelease"},"diff");y.exports=w}),er=tt((c,y)=>{"use strict";var g=bt(),w=s((d,f)=>new g(d,f).major,"major");y.exports=w}),rr=tt((c,y)=>{"use strict";var g=bt(),w=s((d,f)=>new g(d,f).minor,"minor");y.exports=w}),ir=tt((c,y)=>{"use strict";var g=bt(),w=s((d,f)=>new g(d,f).patch,"patch");y.exports=w}),sr=tt((c,y)=>{"use strict";var g=Ct(),w=s((d,f)=>{let l=g(d,f);return l&&l.prerelease.length?l.prerelease:null},"prerelease");y.exports=w}),St=tt((c,y)=>{"use strict";var g=bt(),w=s((d,f,l)=>new g(d,l).compare(new g(f,l)),"compare");y.exports=w}),nr=tt((c,y)=>{"use strict";var g=St(),w=s((d,f,l)=>g(f,d,l),"rcompare");y.exports=w}),ar=tt((c,y)=>{"use strict";var g=St(),w=s((d,f)=>g(d,f,!0),"compareLoose");y.exports=w}),Zt=tt((c,y)=>{"use strict";var g=bt(),w=s((d,f,l)=>{let u=new g(d,l),e=new g(f,l);return u.compare(e)||u.compareBuild(e)},"compareBuild");y.exports=w}),or=tt((c,y)=>{"use strict";var g=Zt(),w=s((d,f)=>d.sort((l,u)=>g(l,u,f)),"sort");y.exports=w}),hr=tt((c,y)=>{"use strict";var g=Zt(),w=s((d,f)=>d.sort((l,u)=>g(u,l,f)),"rsort");y.exports=w}),Wt=tt((c,y)=>{"use strict";var g=St(),w=s((d,f,l)=>g(d,f,l)>0,"gt");y.exports=w}),Qt=tt((c,y)=>{"use strict";var g=St(),w=s((d,f,l)=>g(d,f,l)<0,"lt");y.exports=w}),Ee=tt((c,y)=>{"use strict";var g=St(),w=s((d,f,l)=>g(d,f,l)===0,"eq");y.exports=w}),Se=tt((c,y)=>{"use strict";var g=St(),w=s((d,f,l)=>g(d,f,l)!==0,"neq");y.exports=w}),te=tt((c,y)=>{"use strict";var g=St(),w=s((d,f,l)=>g(d,f,l)>=0,"gte");y.exports=w}),ee=tt((c,y)=>{"use strict";var g=St(),w=s((d,f,l)=>g(d,f,l)<=0,"lte");y.exports=w}),xe=tt((c,y)=>{"use strict";var g=Ee(),w=Se(),d=Wt(),f=te(),l=Qt(),u=ee(),e=s((h,a,o,v)=>{switch(a){case"===":return typeof h=="object"&&(h=h.version),typeof o=="object"&&(o=o.version),h===o;case"!==":return typeof h=="object"&&(h=h.version),typeof o=="object"&&(o=o.version),h!==o;case"":case"=":case"==":return g(h,o,v);case"!=":return w(h,o,v);case">":return d(h,o,v);case">=":return f(h,o,v);case"<":return l(h,o,v);case"<=":return u(h,o,v);default:throw new TypeError(`Invalid operator: ${a}`)}},"cmp");y.exports=e}),lr=tt((c,y)=>{"use strict";var g=bt(),w=Ct(),{safeRe:d,t:f}=_t(),l=s((u,e)=>{if(u instanceof g)return u;if(typeof u=="number"&&(u=String(u)),typeof u!="string")return null;e=e||{};let h=null;if(!e.rtl)h=u.match(e.includePrerelease?d[f.COERCEFULL]:d[f.COERCE]);else{let i=e.includePrerelease?d[f.COERCERTLFULL]:d[f.COERCERTL],r;for(;(r=i.exec(u))&&(!h||h.index+h[0].length!==u.length);)(!h||r.index+r[0].length!==h.index+h[0].length)&&(h=r),i.lastIndex=r.index+r[1].length+r[2].length;i.lastIndex=-1}if(h===null)return null;let a=h[2],o=h[3]||"0",v=h[4]||"0",S=e.includePrerelease&&h[5]?`-${h[5]}`:"",b=e.includePrerelease&&h[6]?`+${h[6]}`:"";return w(`${a}.${o}.${v}${S}${b}`,e)},"coerce");y.exports=l}),cr=tt((c,y)=>{"use strict";var g=class{static{s(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(w){let d=this.map.get(w);if(d!==void 0)return this.map.delete(w),this.map.set(w,d),d}delete(w){return this.map.delete(w)}set(w,d){if(!this.delete(w)&&d!==void 0){if(this.map.size>=this.max){let f=this.map.keys().next().value;this.delete(f)}this.map.set(w,d)}return this}};y.exports=g}),xt=tt((c,y)=>{"use strict";var g=/\s+/g,w=class Mt{static{s(this,"Range")}constructor(C,_){if(_=l(_),C instanceof Mt)return C.loose===!!_.loose&&C.includePrerelease===!!_.includePrerelease?C:new Mt(C.raw,_);if(C instanceof u)return this.raw=C.value,this.set=[[C]],this.formatted=void 0,this;if(this.options=_,this.loose=!!_.loose,this.includePrerelease=!!_.includePrerelease,this.raw=C.trim().replace(g," "),this.set=this.raw.split("||").map(G=>this.parseRange(G.trim())).filter(G=>G.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let G=this.set[0];if(this.set=this.set.filter(Y=>!n(Y[0])),this.set.length===0)this.set=[G];else if(this.set.length>1){for(let Y of this.set)if(Y.length===1&&m(Y[0])){this.set=[Y];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let C=0;C<this.set.length;C++){C>0&&(this.formatted+="||");let _=this.set[C];for(let G=0;G<_.length;G++)G>0&&(this.formatted+=" "),this.formatted+=_[G].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(C){let _=((this.options.includePrerelease&&i)|(this.options.loose&&r))+":"+C,G=f.get(_);if(G)return G;let Y=this.options.loose,k=Y?a[o.HYPHENRANGELOOSE]:a[o.HYPHENRANGE];C=C.replace(k,P(this.options.includePrerelease)),e("hyphen replace",C),C=C.replace(a[o.COMPARATORTRIM],v),e("comparator trim",C),C=C.replace(a[o.TILDETRIM],S),e("tilde trim",C),C=C.replace(a[o.CARETTRIM],b),e("caret trim",C);let N=C.split(" ").map(at=>E(at,this.options)).join(" ").split(/\s+/).map(at=>I(at,this.options));Y&&(N=N.filter(at=>(e("loose invalid filter",at,this.options),!!at.match(a[o.COMPARATORLOOSE])))),e("range list",N);let x=new Map,V=N.map(at=>new u(at,this.options));for(let at of V){if(n(at))return[at];x.set(at.value,at)}x.size>1&&x.has("")&&x.delete("");let rt=[...x.values()];return f.set(_,rt),rt}intersects(C,_){if(!(C instanceof Mt))throw new TypeError("a Range is required");return this.set.some(G=>T(G,_)&&C.set.some(Y=>T(Y,_)&&G.every(k=>Y.every(N=>k.intersects(N,_)))))}test(C){if(!C)return!1;if(typeof C=="string")try{C=new h(C,this.options)}catch{return!1}for(let _=0;_<this.set.length;_++)if(U(this.set[_],C,this.options))return!0;return!1}};y.exports=w;var d=cr(),f=new d,l=Jt(),u=Ut(),e=Bt(),h=bt(),{safeRe:a,t:o,comparatorTrimReplace:v,tildeTrimReplace:S,caretTrimReplace:b}=_t(),{FLAG_INCLUDE_PRERELEASE:i,FLAG_LOOSE:r}=Gt(),n=s(M=>M.value==="<0.0.0-0","isNullSet"),m=s(M=>M.value==="","isAny"),T=s((M,C)=>{let _=!0,G=M.slice(),Y=G.pop();for(;_&&G.length;)_=G.every(k=>Y.intersects(k,C)),Y=G.pop();return _},"isSatisfiable"),E=s((M,C)=>(e("comp",M,C),M=j(M,C),e("caret",M),M=F(M,C),e("tildes",M),M=q(M,C),e("xrange",M),M=O(M,C),e("stars",M),M),"parseComparator"),D=s(M=>!M||M.toLowerCase()==="x"||M==="*","isX"),F=s((M,C)=>M.trim().split(/\s+/).map(_=>L(_,C)).join(" "),"replaceTildes"),L=s((M,C)=>{let _=C.loose?a[o.TILDELOOSE]:a[o.TILDE];return M.replace(_,(G,Y,k,N,x)=>{e("tilde",M,G,Y,k,N,x);let V;return D(Y)?V="":D(k)?V=`>=${Y}.0.0 <${+Y+1}.0.0-0`:D(N)?V=`>=${Y}.${k}.0 <${Y}.${+k+1}.0-0`:x?(e("replaceTilde pr",x),V=`>=${Y}.${k}.${N}-${x} <${Y}.${+k+1}.0-0`):V=`>=${Y}.${k}.${N} <${Y}.${+k+1}.0-0`,e("tilde return",V),V})},"replaceTilde"),j=s((M,C)=>M.trim().split(/\s+/).map(_=>z(_,C)).join(" "),"replaceCarets"),z=s((M,C)=>{e("caret",M,C);let _=C.loose?a[o.CARETLOOSE]:a[o.CARET],G=C.includePrerelease?"-0":"";return M.replace(_,(Y,k,N,x,V)=>{e("caret",M,Y,k,N,x,V);let rt;return D(k)?rt="":D(N)?rt=`>=${k}.0.0${G} <${+k+1}.0.0-0`:D(x)?k==="0"?rt=`>=${k}.${N}.0${G} <${k}.${+N+1}.0-0`:rt=`>=${k}.${N}.0${G} <${+k+1}.0.0-0`:V?(e("replaceCaret pr",V),k==="0"?N==="0"?rt=`>=${k}.${N}.${x}-${V} <${k}.${N}.${+x+1}-0`:rt=`>=${k}.${N}.${x}-${V} <${k}.${+N+1}.0-0`:rt=`>=${k}.${N}.${x}-${V} <${+k+1}.0.0-0`):(e("no pr"),k==="0"?N==="0"?rt=`>=${k}.${N}.${x}${G} <${k}.${N}.${+x+1}-0`:rt=`>=${k}.${N}.${x}${G} <${k}.${+N+1}.0-0`:rt=`>=${k}.${N}.${x} <${+k+1}.0.0-0`),e("caret return",rt),rt})},"replaceCaret"),q=s((M,C)=>(e("replaceXRanges",M,C),M.split(/\s+/).map(_=>B(_,C)).join(" ")),"replaceXRanges"),B=s((M,C)=>{M=M.trim();let _=C.loose?a[o.XRANGELOOSE]:a[o.XRANGE];return M.replace(_,(G,Y,k,N,x,V)=>{e("xRange",M,G,Y,k,N,x,V);let rt=D(k),at=rt||D(N),ht=at||D(x),gt=ht;return Y==="="&&gt&&(Y=""),V=C.includePrerelease?"-0":"",rt?Y===">"||Y==="<"?G="<0.0.0-0":G="*":Y&&gt?(at&&(N=0),x=0,Y===">"?(Y=">=",at?(k=+k+1,N=0,x=0):(N=+N+1,x=0)):Y==="<="&&(Y="<",at?k=+k+1:N=+N+1),Y==="<"&&(V="-0"),G=`${Y+k}.${N}.${x}${V}`):at?G=`>=${k}.0.0${V} <${+k+1}.0.0-0`:ht&&(G=`>=${k}.${N}.0${V} <${k}.${+N+1}.0-0`),e("xRange return",G),G})},"replaceXRange"),O=s((M,C)=>(e("replaceStars",M,C),M.trim().replace(a[o.STAR],"")),"replaceStars"),I=s((M,C)=>(e("replaceGTE0",M,C),M.trim().replace(a[C.includePrerelease?o.GTE0PRE:o.GTE0],"")),"replaceGTE0"),P=s(M=>(C,_,G,Y,k,N,x,V,rt,at,ht,gt)=>(D(G)?_="":D(Y)?_=`>=${G}.0.0${M?"-0":""}`:D(k)?_=`>=${G}.${Y}.0${M?"-0":""}`:N?_=`>=${_}`:_=`>=${_}${M?"-0":""}`,D(rt)?V="":D(at)?V=`<${+rt+1}.0.0-0`:D(ht)?V=`<${rt}.${+at+1}.0-0`:gt?V=`<=${rt}.${at}.${ht}-${gt}`:M?V=`<${rt}.${at}.${+ht+1}-0`:V=`<=${V}`,`${_} ${V}`.trim()),"hyphenReplace"),U=s((M,C,_)=>{for(let G=0;G<M.length;G++)if(!M[G].test(C))return!1;if(C.prerelease.length&&!_.includePrerelease){for(let G=0;G<M.length;G++)if(e(M[G].semver),M[G].semver!==u.ANY&&M[G].semver.prerelease.length>0){let Y=M[G].semver;if(Y.major===C.major&&Y.minor===C.minor&&Y.patch===C.patch)return!0}return!1}return!0},"testSet")}),Ut=tt((c,y)=>{"use strict";var g=Symbol("SemVer ANY"),w=class Xt{static{s(this,"Comparator")}static get ANY(){return g}constructor(v,S){if(S=d(S),v instanceof Xt){if(v.loose===!!S.loose)return v;v=v.value}v=v.trim().split(/\s+/).join(" "),e("comparator",v,S),this.options=S,this.loose=!!S.loose,this.parse(v),this.semver===g?this.value="":this.value=this.operator+this.semver.version,e("comp",this)}parse(v){let S=this.options.loose?f[l.COMPARATORLOOSE]:f[l.COMPARATOR],b=v.match(S);if(!b)throw new TypeError(`Invalid comparator: ${v}`);this.operator=b[1]!==void 0?b[1]:"",this.operator==="="&&(this.operator=""),b[2]?this.semver=new h(b[2],this.options.loose):this.semver=g}toString(){return this.value}test(v){if(e("Comparator.test",v,this.options.loose),this.semver===g||v===g)return!0;if(typeof v=="string")try{v=new h(v,this.options)}catch{return!1}return u(v,this.operator,this.semver,this.options)}intersects(v,S){if(!(v instanceof Xt))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new a(v.value,S).test(this.value):v.operator===""?v.value===""?!0:new a(this.value,S).test(v.semver):(S=d(S),S.includePrerelease&&(this.value==="<0.0.0-0"||v.value==="<0.0.0-0")||!S.includePrerelease&&(this.value.startsWith("<0.0.0")||v.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&v.operator.startsWith(">")||this.operator.startsWith("<")&&v.operator.startsWith("<")||this.semver.version===v.semver.version&&this.operator.includes("=")&&v.operator.includes("=")||u(this.semver,"<",v.semver,S)&&this.operator.startsWith(">")&&v.operator.startsWith("<")||u(this.semver,">",v.semver,S)&&this.operator.startsWith("<")&&v.operator.startsWith(">")))}};y.exports=w;var d=Jt(),{safeRe:f,t:l}=_t(),u=xe(),e=Bt(),h=bt(),a=xt()}),qt=tt((c,y)=>{"use strict";var g=xt(),w=s((d,f,l)=>{try{f=new g(f,l)}catch{return!1}return f.test(d)},"satisfies");y.exports=w}),ur=tt((c,y)=>{"use strict";var g=xt(),w=s((d,f)=>new g(d,f).set.map(l=>l.map(u=>u.value).join(" ").trim().split(" ")),"toComparators");y.exports=w}),pr=tt((c,y)=>{"use strict";var g=bt(),w=xt(),d=s((f,l,u)=>{let e=null,h=null,a=null;try{a=new w(l,u)}catch{return null}return f.forEach(o=>{a.test(o)&&(!e||h.compare(o)===-1)&&(e=o,h=new g(e,u))}),e},"maxSatisfying");y.exports=d}),fr=tt((c,y)=>{"use strict";var g=bt(),w=xt(),d=s((f,l,u)=>{let e=null,h=null,a=null;try{a=new w(l,u)}catch{return null}return f.forEach(o=>{a.test(o)&&(!e||h.compare(o)===1)&&(e=o,h=new g(e,u))}),e},"minSatisfying");y.exports=d}),dr=tt((c,y)=>{"use strict";var g=bt(),w=xt(),d=Wt(),f=s((l,u)=>{l=new w(l,u);let e=new g("0.0.0");if(l.test(e)||(e=new g("0.0.0-0"),l.test(e)))return e;e=null;for(let h=0;h<l.set.length;++h){let a=l.set[h],o=null;a.forEach(v=>{let S=new g(v.semver.version);switch(v.operator){case">":S.prerelease.length===0?S.patch++:S.prerelease.push(0),S.raw=S.format();case"":case">=":(!o||d(S,o))&&(o=S);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${v.operator}`)}}),o&&(!e||d(e,o))&&(e=o)}return e&&l.test(e)?e:null},"minVersion");y.exports=f}),mr=tt((c,y)=>{"use strict";var g=xt(),w=s((d,f)=>{try{return new g(d,f).range||"*"}catch{return null}},"validRange");y.exports=w}),re=tt((c,y)=>{"use strict";var g=bt(),w=Ut(),{ANY:d}=w,f=xt(),l=qt(),u=Wt(),e=Qt(),h=ee(),a=te(),o=s((v,S,b,i)=>{v=new g(v,i),S=new f(S,i);let r,n,m,T,E;switch(b){case">":r=u,n=h,m=e,T=">",E=">=";break;case"<":r=e,n=a,m=u,T="<",E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(l(v,S,i))return!1;for(let D=0;D<S.set.length;++D){let F=S.set[D],L=null,j=null;if(F.forEach(z=>{z.semver===d&&(z=new w(">=0.0.0")),L=L||z,j=j||z,r(z.semver,L.semver,i)?L=z:m(z.semver,j.semver,i)&&(j=z)}),L.operator===T||L.operator===E||(!j.operator||j.operator===T)&&n(v,j.semver)||j.operator===E&&m(v,j.semver))return!1}return!0},"outside");y.exports=o}),gr=tt((c,y)=>{"use strict";var g=re(),w=s((d,f,l)=>g(d,f,">",l),"gtr");y.exports=w}),yr=tt((c,y)=>{"use strict";var g=re(),w=s((d,f,l)=>g(d,f,"<",l),"ltr");y.exports=w}),wr=tt((c,y)=>{"use strict";var g=xt(),w=s((d,f,l)=>(d=new g(d,l),f=new g(f,l),d.intersects(f,l)),"intersects");y.exports=w}),vr=tt((c,y)=>{"use strict";var g=qt(),w=St();y.exports=(d,f,l)=>{let u=[],e=null,h=null,a=d.sort((b,i)=>w(b,i,l));for(let b of a)g(b,f,l)?(h=b,e||(e=b)):(h&&u.push([e,h]),h=null,e=null);e&&u.push([e,null]);let o=[];for(let[b,i]of u)b===i?o.push(b):!i&&b===a[0]?o.push("*"):i?b===a[0]?o.push(`<=${i}`):o.push(`${b} - ${i}`):o.push(`>=${b}`);let v=o.join(" || "),S=typeof f.raw=="string"?f.raw:String(f);return v.length<S.length?v:f}}),br=tt((c,y)=>{"use strict";var g=xt(),w=Ut(),{ANY:d}=w,f=qt(),l=St(),u=s((S,b,i={})=>{if(S===b)return!0;S=new g(S,i),b=new g(b,i);let r=!1;t:for(let n of S.set){for(let m of b.set){let T=a(n,m,i);if(r=r||T!==null,T)continue t}if(r)return!1}return!0},"subset"),e=[new w(">=0.0.0-0")],h=[new w(">=0.0.0")],a=s((S,b,i)=>{if(S===b)return!0;if(S.length===1&&S[0].semver===d){if(b.length===1&&b[0].semver===d)return!0;i.includePrerelease?S=e:S=h}if(b.length===1&&b[0].semver===d){if(i.includePrerelease)return!0;b=h}let r=new Set,n,m;for(let q of S)q.operator===">"||q.operator===">="?n=o(n,q,i):q.operator==="<"||q.operator==="<="?m=v(m,q,i):r.add(q.semver);if(r.size>1)return null;let T;if(n&&m&&(T=l(n.semver,m.semver,i),T>0||T===0&&(n.operator!==">="||m.operator!=="<=")))return null;for(let q of r){if(n&&!f(q,String(n),i)||m&&!f(q,String(m),i))return null;for(let B of b)if(!f(q,String(B),i))return!1;return!0}let E,D,F,L,j=m&&!i.includePrerelease&&m.semver.prerelease.length?m.semver:!1,z=n&&!i.includePrerelease&&n.semver.prerelease.length?n.semver:!1;j&&j.prerelease.length===1&&m.operator==="<"&&j.prerelease[0]===0&&(j=!1);for(let q of b){if(L=L||q.operator===">"||q.operator===">=",F=F||q.operator==="<"||q.operator==="<=",n){if(z&&q.semver.prerelease&&q.semver.prerelease.length&&q.semver.major===z.major&&q.semver.minor===z.minor&&q.semver.patch===z.patch&&(z=!1),q.operator===">"||q.operator===">="){if(E=o(n,q,i),E===q&&E!==n)return!1}else if(n.operator===">="&&!f(n.semver,String(q),i))return!1}if(m){if(j&&q.semver.prerelease&&q.semver.prerelease.length&&q.semver.major===j.major&&q.semver.minor===j.minor&&q.semver.patch===j.patch&&(j=!1),q.operator==="<"||q.operator==="<="){if(D=v(m,q,i),D===q&&D!==m)return!1}else if(m.operator==="<="&&!f(m.semver,String(q),i))return!1}if(!q.operator&&(m||n)&&T!==0)return!1}return!(n&&F&&!m&&T!==0||m&&L&&!n&&T!==0||z||j)},"simpleSubset"),o=s((S,b,i)=>{if(!S)return b;let r=l(S.semver,b.semver,i);return r>0?S:r<0||b.operator===">"&&S.operator===">="?b:S},"higherGT"),v=s((S,b,i)=>{if(!S)return b;let r=l(S.semver,b.semver,i);return r<0?S:r>0||b.operator==="<"&&S.operator==="<="?b:S},"lowerLT");y.exports=u}),Er=tt((c,y)=>{"use strict";var g=_t(),w=Gt(),d=bt(),f=be(),l=Ct(),u=Je(),e=Ze(),h=Qe(),a=tr(),o=er(),v=rr(),S=ir(),b=sr(),i=St(),r=nr(),n=ar(),m=Zt(),T=or(),E=hr(),D=Wt(),F=Qt(),L=Ee(),j=Se(),z=te(),q=ee(),B=xe(),O=lr(),I=Ut(),P=xt(),U=qt(),M=ur(),C=pr(),_=fr(),G=dr(),Y=mr(),k=re(),N=gr(),x=yr(),V=wr(),rt=vr(),at=br();y.exports={parse:l,valid:u,clean:e,inc:h,diff:a,major:o,minor:v,patch:S,prerelease:b,compare:i,rcompare:r,compareLoose:n,compareBuild:m,sort:T,rsort:E,gt:D,lt:F,eq:L,neq:j,gte:z,lte:q,cmp:B,coerce:O,Comparator:I,Range:P,satisfies:U,toComparators:M,maxSatisfying:C,minSatisfying:_,minVersion:G,validRange:Y,outside:k,gtr:N,ltr:x,intersects:V,simplifyRange:rt,subset:at,SemVer:d,re:g.re,src:g.src,tokens:g.t,SEMVER_SPEC_VERSION:w.SEMVER_SPEC_VERSION,RELEASE_TYPES:w.RELEASE_TYPES,compareIdentifiers:f.compareIdentifiers,rcompareIdentifiers:f.rcompareIdentifiers}}),Sr=tt((c,y)=>{var g=Er(),w=s(d=>g.satisfies(process.version,d,{includePrerelease:!0}),"satisfies");y.exports={satisfies:w}}),xr=tt((c,y)=>{"use strict";var{inspect:g}=ct("util"),w=class{static{s(this,"SystemError")}constructor(f,l,u){let e=`${l}: ${u.syscall} returned ${u.code} (${u.message})`;u.path!==void 0&&(e+=` ${u.path}`),u.dest!==void 0&&(e+=` => ${u.dest}`),this.code=f,Object.defineProperties(this,{name:{value:"SystemError",enumerable:!1,writable:!0,configurable:!0},message:{value:e,enumerable:!1,writable:!0,configurable:!0},info:{value:u,enumerable:!0,configurable:!0,writable:!1},errno:{get(){return u.errno},set(h){u.errno=h},enumerable:!0,configurable:!0},syscall:{get(){return u.syscall},set(h){u.syscall=h},enumerable:!0,configurable:!0}}),u.path!==void 0&&Object.defineProperty(this,"path",{get(){return u.path},set(h){u.path=h},enumerable:!0,configurable:!0}),u.dest!==void 0&&Object.defineProperty(this,"dest",{get(){return u.dest},set(h){u.dest=h},enumerable:!0,configurable:!0})}toString(){return`${this.name} [${this.code}]: ${this.message}`}[Symbol.for("nodejs.util.inspect.custom")](f,l){return g(this,{...l,getters:!0,customInspect:!1})}};function d(f,l){y.exports[f]=class extends w{static{s(this,"NodeError")}constructor(u){super(f,l,u)}}}s(d,"E"),d("ERR_FS_CP_DIR_TO_NON_DIR","Cannot overwrite directory with non-directory"),d("ERR_FS_CP_EEXIST","Target already exists"),d("ERR_FS_CP_EINVAL","Invalid src or dest"),d("ERR_FS_CP_FIFO_PIPE","Cannot copy a FIFO pipe"),d("ERR_FS_CP_NON_DIR_TO_DIR","Cannot overwrite non-directory with directory"),d("ERR_FS_CP_SOCKET","Cannot copy a socket file"),d("ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY","Cannot overwrite symlink in subdirectory of self"),d("ERR_FS_CP_UNKNOWN","Cannot copy an unknown file type"),d("ERR_FS_EISDIR","Path is a directory"),y.exports.ERR_INVALID_ARG_TYPE=class extends Error{static{s(this,"ERR_INVALID_ARG_TYPE")}constructor(f,l,u){super(),this.code="ERR_INVALID_ARG_TYPE",this.message=`The ${f} argument must be ${l}. Received ${typeof u}`}}}),Rr=tt((c,y)=>{"use strict";var{ERR_FS_CP_DIR_TO_NON_DIR:g,ERR_FS_CP_EEXIST:w,ERR_FS_CP_EINVAL:d,ERR_FS_CP_FIFO_PIPE:f,ERR_FS_CP_NON_DIR_TO_DIR:l,ERR_FS_CP_SOCKET:u,ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY:e,ERR_FS_CP_UNKNOWN:h,ERR_FS_EISDIR:a,ERR_INVALID_ARG_TYPE:o}=xr(),{constants:{errno:{EEXIST:v,EISDIR:S,EINVAL:b,ENOTDIR:i}}}=ct("os"),{chmod:r,copyFile:n,lstat:m,mkdir:T,readdir:E,readlink:D,stat:F,symlink:L,unlink:j,utimes:z}=ct("fs/promises"),{dirname:q,isAbsolute:B,join:O,parse:I,resolve:P,sep:U,toNamespacedPath:M}=ct("path"),{fileURLToPath:C}=ct("url"),_={dereference:!1,errorOnExist:!1,filter:void 0,force:!0,preserveTimestamps:!1,recursive:!1};async function G(Z,J,Q){if(Q!=null&&typeof Q!="object")throw new o("options",["Object"],Q);return k(M(Y(Z)),M(Y(J)),{..._,...Q})}s(G,"cp");function Y(Z){return Z!=null&&Z.href&&Z.origin?C(Z):Z}s(Y,"getValidatedPath");async function k(Z,J,Q){Q.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended","TimestampPrecisionWarning");let st=await N(Z,J,Q),{srcStat:nt,destStat:dt}=st;return await ht(Z,nt,J),Q.filter?A(rt,dt,Z,J,Q):rt(dt,Z,J,Q)}s(k,"cpFn");async function N(Z,J,Q){let{0:st,1:nt}=await V(Z,J,Q);if(nt){if(x(st,nt))throw new d({message:"src and dest cannot be the same",path:J,syscall:"cp",errno:b});if(st.isDirectory()&&!nt.isDirectory())throw new g({message:`cannot overwrite directory ${Z} with non-directory ${J}`,path:J,syscall:"cp",errno:S});if(!st.isDirectory()&&nt.isDirectory())throw new l({message:`cannot overwrite non-directory ${Z} with directory ${J}`,path:J,syscall:"cp",errno:i})}if(st.isDirectory()&&R(Z,J))throw new d({message:`cannot copy ${Z} to a subdirectory of self ${J}`,path:J,syscall:"cp",errno:b});return{srcStat:st,destStat:nt}}s(N,"checkPaths");function x(Z,J){return J.ino&&J.dev&&J.ino===Z.ino&&J.dev===Z.dev}s(x,"areIdentical");function V(Z,J,Q){let st=Q.dereference?nt=>F(nt,{bigint:!0}):nt=>m(nt,{bigint:!0});return Promise.all([st(Z),st(J).catch(nt=>{if(nt.code==="ENOENT")return null;throw nt})])}s(V,"getStats");async function rt(Z,J,Q,st){let nt=q(Q);return await at(nt)||await T(nt,{recursive:!0}),H(Z,J,Q,st)}s(rt,"checkParentDir");function at(Z){return F(Z).then(()=>!0,J=>J.code==="ENOENT"?!1:Promise.reject(J))}s(at,"pathExists");async function ht(Z,J,Q){let st=P(q(Z)),nt=P(q(Q));if(nt===st||nt===I(nt).root)return;let dt;try{dt=await F(nt,{bigint:!0})}catch(vt){if(vt.code==="ENOENT")return;throw vt}if(x(J,dt))throw new d({message:`cannot copy ${Z} to a subdirectory of self ${Q}`,path:Q,syscall:"cp",errno:b});return ht(Z,J,nt)}s(ht,"checkParentPaths");var gt=s(Z=>P(Z).split(U).filter(Boolean),"normalizePathToArray");function R(Z,J){let Q=gt(Z),st=gt(J);return Q.every((nt,dt)=>st[dt]===nt)}s(R,"isSrcSubdir");async function A(Z,J,Q,st,nt,dt){if(await nt.filter(Q,st))return Z(J,Q,st,nt,dt)}s(A,"handleFilter");function W(Z,J,Q,st){return st.filter?A(H,Z,J,Q,st):H(Z,J,Q,st)}s(W,"startCopy");async function H(Z,J,Q,st){let nt=await(st.dereference?F:m)(J);if(nt.isDirectory()&&st.recursive)return ft(nt,Z,J,Q,st);if(nt.isDirectory())throw new a({message:`${J} is a directory (not copied)`,path:J,syscall:"cp",errno:b});if(nt.isFile()||nt.isCharacterDevice()||nt.isBlockDevice())return et(nt,Z,J,Q,st);if(nt.isSymbolicLink())return mt(Z,J,Q);throw nt.isSocket()?new u({message:`cannot copy a socket file: ${Q}`,path:Q,syscall:"cp",errno:b}):nt.isFIFO()?new f({message:`cannot copy a FIFO pipe: ${Q}`,path:Q,syscall:"cp",errno:b}):new h({message:`cannot copy an unknown file type: ${Q}`,path:Q,syscall:"cp",errno:b})}s(H,"getStatsForCopy");function et(Z,J,Q,st,nt){return J?t(Z,Q,st,nt):p(Z,Q,st,nt)}s(et,"onFile");async function t(Z,J,Q,st){if(st.force)return await j(Q),p(Z,J,Q,st);if(st.errorOnExist)throw new w({message:`${Q} already exists`,path:Q,syscall:"cp",errno:v})}s(t,"mayCopyFile");async function p(Z,J,Q,st){return await n(J,Q),st.preserveTimestamps?$(Z.mode,J,Q):it(Q,Z.mode)}s(p,"_copyFile");async function $(Z,J,Q){return X(Z)&&await K(Q,Z),ot(Z,J,Q)}s($,"handleTimestampsAndMode");function X(Z){return(Z&128)===0}s(X,"fileIsNotWritable");function K(Z,J){return it(Z,J|128)}s(K,"makeFileWritable");async function ot(Z,J,Q){return await lt(J,Q),it(Q,Z)}s(ot,"setDestTimestampsAndMode");function it(Z,J){return r(Z,J)}s(it,"setDestMode");async function lt(Z,J){let Q=await F(Z);return z(J,Q.atime,Q.mtime)}s(lt,"setDestTimestamps");function ft(Z,J,Q,st,nt){return J?pt(Q,st,nt):ut(Z.mode,Q,st,nt)}s(ft,"onDir");async function ut(Z,J,Q,st){return await T(Q),await pt(J,Q,st),it(Q,Z)}s(ut,"mkDirAndCopy");async function pt(Z,J,Q){let st=await E(Z);for(let nt=0;nt<st.length;nt++){let dt=st[nt],vt=O(Z,dt),Pt=O(J,dt),{destStat:qe}=await N(vt,Pt,Q);await W(qe,vt,Pt,Q)}}s(pt,"copyDir");async function mt(Z,J,Q){let st=await D(J);if(B(st)||(st=P(q(J),st)),!Z)return L(st,Q);let nt;try{nt=await D(Q)}catch(dt){if(dt.code==="EINVAL"||dt.code==="UNKNOWN")return L(st,Q);throw dt}if(B(nt)||(nt=P(q(Q),nt)),R(st,nt))throw new d({message:`cannot copy ${st} to a subdirectory of self ${nt}`,path:Q,syscall:"cp",errno:b});if((await F(J)).isDirectory()&&R(nt,st))throw new e({message:`cannot overwrite ${nt} with ${st}`,path:Q,syscall:"cp",errno:b});return wt(st,Q)}s(mt,"onLink");async function wt(Z,J){return await j(J),L(Z,J)}s(wt,"copyLink"),y.exports=G}),Tr=tt((c,y)=>{var g=ct("fs/promises"),w=ve(),d=Sr(),f=Rr(),l=d.satisfies(">=16.7.0"),u=s(async(e,h,a)=>{let o=w(a,{copy:["dereference","errorOnExist","filter","force","preserveTimestamps","recursive"]});return l?g.cp(e,h,o):f(e,h,o)},"cp");y.exports=u}),Or=tt((c,y)=>{var{join:g,sep:w}=ct("path"),d=ve(),{mkdir:f,mkdtemp:l,rm:u}=ct("fs/promises"),e=s(async(h,a,o)=>{let v=d(o,{copy:["tmpPrefix"]});await f(h,{recursive:!0});let S=await l(g(`${h}${w}`,v.tmpPrefix||"")),b,i;try{i=await a(S)}catch(r){b=r}try{await u(S,{force:!0,recursive:!0})}catch{}if(b)throw b;return i},"withTempDir");y.exports=e}),$r=tt((c,y)=>{var{readdir:g}=ct("fs/promises"),{join:w}=ct("path"),d=s(async f=>{let l=[];for(let u of await g(f))if(u.startsWith("@"))for(let e of await g(w(f,u)))l.push(w(u,e));else l.push(u);return l},"readdirScoped");y.exports=d}),Pr=tt((c,y)=>{var{dirname:g,join:w,resolve:d,relative:f,isAbsolute:l}=ct("path"),u=ct("fs/promises"),e=s(async a=>{try{return await u.access(a),!0}catch(o){return o.code!=="ENOENT"}},"pathExists"),h=s(async(a,o,v={},S=!0,b=[])=>{if(!a||!o)throw new TypeError("`source` and `destination` file required");if(v={overwrite:!0,...v},!v.overwrite&&await e(o))throw new Error(`The destination file exists: ${o}`);await u.mkdir(g(o),{recursive:!0});try{await u.rename(a,o)}catch(i){if(i.code==="EXDEV"||i.code==="EPERM"){let r=await u.lstat(a);if(r.isDirectory()){let n=await u.readdir(a);await Promise.all(n.map(m=>h(w(a,m),w(o,m),v,!1,b)))}else r.isSymbolicLink()?b.push({source:a,destination:o}):await u.copyFile(a,o)}else throw i}S&&(await Promise.all(b.map(async({source:i,destination:r})=>{let n=await u.readlink(i);l(n)&&(n=d(r,f(i,n)));let m="file";try{m=await u.stat(d(g(i),n)),m.isDirectory()&&(m="junction")}catch{}await u.symlink(n,r,m)})),await u.rm(a,{recursive:!0,force:!0}))},"moveFile");y.exports=h}),ie=tt((c,y)=>{"use strict";var g=Tr(),w=Or(),d=$r(),f=Pr();y.exports={cp:g,withTempDir:w,readdirScoped:d,moveFile:f}}),Ft={};Xe(Ft,{default:()=>Re,pMapIterable:()=>Te,pMapSkip:()=>It});async function Re(c,y,{concurrency:g=Number.POSITIVE_INFINITY,stopOnError:w=!0,signal:d}={}){return new Promise((f,l)=>{if(c[Symbol.iterator]===void 0&&c[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof c})`);if(typeof y!="function")throw new TypeError("Mapper function is required");if(!(Number.isSafeInteger(g)&&g>=1||g===Number.POSITIVE_INFINITY))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${g}\` (${typeof g})`);let u=[],e=[],h=new Map,a=!1,o=!1,v=!1,S=0,b=0,i=c[Symbol.iterator]===void 0?c[Symbol.asyncIterator]():c[Symbol.iterator](),r=s(()=>{T(d.reason)},"signalListener"),n=s(()=>{d?.removeEventListener("abort",r)},"cleanup"),m=s(D=>{f(D),n()},"resolve"),T=s(D=>{a=!0,o=!0,l(D),n()},"reject");d&&(d.aborted&&T(d.reason),d.addEventListener("abort",r,{once:!0}));let E=s(async()=>{if(o)return;let D=await i.next(),F=b;if(b++,D.done){if(v=!0,S===0&&!o){if(!w&&e.length>0){T(new AggregateError(e));return}if(o=!0,h.size===0){m(u);return}let L=[];for(let[j,z]of u.entries())h.get(j)!==It&&L.push(z);m(L)}return}S++,(async()=>{try{let L=await D.value;if(o)return;let j=await y(L,F);j===It&&h.set(F,j),u[F]=j,S--,await E()}catch(L){if(w)T(L);else{e.push(L),S--;try{await E()}catch(j){T(j)}}}})()},"next");(async()=>{for(let D=0;D<g;D++){try{await E()}catch(F){T(F);break}if(v||a)break}})()})}function Te(c,y,{concurrency:g=Number.POSITIVE_INFINITY,backpressure:w=g}={}){if(c[Symbol.iterator]===void 0&&c[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof c})`);if(typeof y!="function")throw new TypeError("Mapper function is required");if(!(Number.isSafeInteger(g)&&g>=1||g===Number.POSITIVE_INFINITY))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${g}\` (${typeof g})`);if(!(Number.isSafeInteger(w)&&w>=g||w===Number.POSITIVE_INFINITY))throw new TypeError(`Expected \`backpressure\` to be an integer from \`concurrency\` (${g}) and up or \`Infinity\`, got \`${w}\` (${typeof w})`);return{async*[Symbol.asyncIterator](){let d=c[Symbol.asyncIterator]===void 0?c[Symbol.iterator]():c[Symbol.asyncIterator](),f=[],l=0,u=!1,e=0;function h(){if(u||!(l<g&&f.length<w))return;let a=(async()=>{let{done:o,value:v}=await d.next();if(o)return{done:!0};l++,h();try{let S=await y(await v,e++);if(l--,S===It){let b=f.indexOf(a);b>0&&f.splice(b,1)}return h(),{done:!1,value:S}}catch(S){return u=!0,{error:S}}})();f.push(a)}for(s(h,"trySpawn"),h();f.length>0;){let{error:a,done:o,value:v}=await f[0];if(f.shift(),a)throw a;if(o)return;h(),v!==It&&(yield v)}}}}var It,Yt=He(()=>{s(Re,"pMap"),s(Te,"pMapIterable"),It=Symbol("skip")}),Nt=tt((c,y)=>{"use strict";var g=ct("crypto"),{appendFile:w,mkdir:d,readFile:f,readdir:l,rm:u,writeFile:e}=ct("fs/promises"),{Minipass:h}=Tt(),a=ct("path"),o=At(),v=ge(),S=Lt(),b=we(),i=ye()["cache-version"].index,{moveFile:r}=ie(),n=5;y.exports.NotFoundError=class extends Error{static{s(this,"NotFoundError")}constructor(C,_){super(`No cache entry for ${_} found in ${C}`),this.code="ENOENT",this.cache=C,this.key=_}},y.exports.compact=m;async function m(C,_,G,Y={}){let k=B(C,_),N=await j(k),x=[];for(let R=N.length-1;R>=0;--R){let A=N[R];if(A.integrity===null&&!Y.validateEntry)break;(!Y.validateEntry||Y.validateEntry(A)===!0)&&(x.length===0||!x.find(W=>G(W,A)))&&x.unshift(A)}let V=`
7
- `+x.map(R=>{let A=JSON.stringify(R);return`${I(A)} ${A}`}).join(`
8
- `),rt=s(async()=>{let R=v(a.join(C,"tmp"),Y.tmpPrefix);return await d(a.dirname(R),{recursive:!0}),{target:R,moved:!1}},"setup"),at=s(async R=>{if(!R.moved)return u(R.target,{recursive:!0,force:!0})},"teardown"),ht=s(async R=>{await e(R.target,V,{flag:"wx"}),await d(a.dirname(k),{recursive:!0}),await r(R.target,k),R.moved=!0},"write"),gt=await rt();try{await ht(gt)}finally{await at(gt)}return x.reverse().map(R=>U(C,R,!0))}s(m,"compact"),y.exports.insert=T;async function T(C,_,G,Y={}){let{metadata:k,size:N,time:x}=Y,V=B(C,_),rt={key:_,integrity:G&&o.stringify(G),time:x||Date.now(),size:N,metadata:k};try{await d(a.dirname(V),{recursive:!0});let at=JSON.stringify(rt);await w(V,`
9
- ${I(at)} ${at}`)}catch(at){if(at.code==="ENOENT")return;throw at}return U(C,rt)}s(T,"insert"),y.exports.find=E;async function E(C,_){let G=B(C,_);try{return(await j(G)).reduce((Y,k)=>k&&k.key===_?U(C,k):Y,null)}catch(Y){if(Y.code==="ENOENT")return null;throw Y}}s(E,"find"),y.exports.delete=D;function D(C,_,G={}){if(!G.removeFully)return T(C,_,null,G);let Y=B(C,_);return u(Y,{recursive:!0,force:!0})}s(D,"del"),y.exports.lsStream=F;function F(C){let _=q(C),G=new h({objectMode:!0});return Promise.resolve().then(async()=>{let{default:Y}=await Promise.resolve().then(()=>(Yt(),Ft)),k=await M(_);return await Y(k,async N=>{let x=a.join(_,N),V=await M(x);await Y(V,async rt=>{let at=a.join(x,rt),ht=await M(at);await Y(ht,async gt=>{let R=a.join(at,gt);try{let A=(await j(R)).reduce((W,H)=>(W.set(H.key,H),W),new Map);for(let W of A.values()){let H=U(C,W);H&&G.write(H)}}catch(A){if(A.code==="ENOENT")return;throw A}},{concurrency:n})},{concurrency:n})},{concurrency:n}),G.end(),G}).catch(Y=>G.emit("error",Y)),G}s(F,"lsStream"),y.exports.ls=L;async function L(C){return(await F(C).collect()).reduce((_,G)=>(_[G.key]=G,_),{})}s(L,"ls"),y.exports.bucketEntries=j;async function j(C,_){let G=await f(C,"utf8");return z(G,_)}s(j,"bucketEntries");function z(C){let _=[];return C.split(`
10
- `).forEach(G=>{if(!G)return;let Y=G.split(" ");if(!Y[1]||I(Y[1])!==Y[0])return;let k;try{k=JSON.parse(Y[1])}catch{}k&&_.push(k)}),_}s(z,"_bucketEntries"),y.exports.bucketDir=q;function q(C){return a.join(C,`index-v${i}`)}s(q,"bucketDir"),y.exports.bucketPath=B;function B(C,_){let G=O(_);return a.join.apply(a,[q(C)].concat(b(G)))}s(B,"bucketPath"),y.exports.hashKey=O;function O(C){return P(C,"sha256")}s(O,"hashKey"),y.exports.hashEntry=I;function I(C){return P(C,"sha1")}s(I,"hashEntry");function P(C,_){return g.createHash(_).update(C).digest("hex")}s(P,"hash");function U(C,_,G){return!_.integrity&&!G?null:{key:_.key,integrity:_.integrity,path:_.integrity?S(C,_.integrity):void 0,size:_.size,time:_.time,metadata:_.metadata}}s(U,"formatEntry");function M(C){return l(C).catch(_=>{if(_.code==="ENOENT"||_.code==="ENOTDIR")return[];throw _})}s(M,"readdirOrEmpty")}),Oe=tt(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.LRUCache=void 0;var y=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,g=new Set,w=typeof process=="object"&&process?process:{},d=s((b,i,r,n)=>{typeof w.emitWarning=="function"&&w.emitWarning(b,i,r,n)},"emitWarning"),f=globalThis.AbortController,l=globalThis.AbortSignal;if(typeof f>"u"){l=class{static{s(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(r,n){this._onabort.push(n)}},f=class{static{s(this,"AbortController")}constructor(){i()}signal=new l;abort(r){if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(let n of this.signal._onabort)n(r);this.signal.onabort?.(r)}}};let b=w.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",i=s(()=>{b&&(b=!1,d("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",i))},"warnACPolyfill")}var u=s(b=>!g.has(b),"shouldWarn"),e=Symbol("type"),h=s(b=>b&&b===Math.floor(b)&&b>0&&isFinite(b),"isPosInt"),a=s(b=>h(b)?b<=Math.pow(2,8)?Uint8Array:b<=Math.pow(2,16)?Uint16Array:b<=Math.pow(2,32)?Uint32Array:b<=Number.MAX_SAFE_INTEGER?o:null:null,"getUintArray"),o=class extends Array{static{s(this,"ZeroArray")}constructor(b){super(b),this.fill(0)}},v=class kt{static{s(this,"Stack")}heap;length;static#t=!1;static create(i){let r=a(i);if(!r)return[];kt.#t=!0;let n=new kt(i,r);return kt.#t=!1,n}constructor(i,r){if(!kt.#t)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(i),this.length=0}push(i){this.heap[this.length++]=i}pop(){return this.heap[--this.length]}},S=class $e{static{s(this,"LRUCache")}#t;#e;#s;#i;#a;#b;#w;#c;get perf(){return this.#c}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#p;#u;#h;#r;#d;#E;#v;#m;#P;#g;#x;#O;#y;#S;#$;#f;#n;static unsafeExposeInternals(i){return{starts:i.#O,ttls:i.#y,sizes:i.#x,keyMap:i.#u,keyList:i.#h,valList:i.#r,next:i.#d,prev:i.#E,get head(){return i.#v},get tail(){return i.#m},free:i.#P,isBackgroundFetch:s(r=>i.#l(r),"isBackgroundFetch"),backgroundFetch:s((r,n,m,T)=>i.#W(r,n,m,T),"backgroundFetch"),moveToTail:s(r=>i.#j(r),"moveToTail"),indexes:s(r=>i.#C(r),"indexes"),rindexes:s(r=>i.#A(r),"rindexes"),isStale:s(r=>i.#T(r),"isStale")}}get max(){return this.#t}get maxSize(){return this.#e}get calculatedSize(){return this.#p}get size(){return this.#o}get fetchMethod(){return this.#b}get memoMethod(){return this.#w}get dispose(){return this.#s}get onInsert(){return this.#i}get disposeAfter(){return this.#a}constructor(i){let{max:r=0,ttl:n,ttlResolution:m=1,ttlAutopurge:T,updateAgeOnGet:E,updateAgeOnHas:D,allowStale:F,dispose:L,onInsert:j,disposeAfter:z,noDisposeOnSet:q,noUpdateTTL:B,maxSize:O=0,maxEntrySize:I=0,sizeCalculation:P,fetchMethod:U,memoMethod:M,noDeleteOnFetchRejection:C,noDeleteOnStaleGet:_,allowStaleOnFetchRejection:G,allowStaleOnFetchAbort:Y,ignoreFetchAbort:k,perf:N}=i;if(N!==void 0&&typeof N?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#c=N??y,r!==0&&!h(r))throw new TypeError("max option must be a nonnegative integer");let x=r?a(r):Array;if(!x)throw new Error("invalid max value: "+r);if(this.#t=r,this.#e=O,this.maxEntrySize=I||this.#e,this.sizeCalculation=P,this.sizeCalculation){if(!this.#e&&!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(M!==void 0&&typeof M!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#w=M,U!==void 0&&typeof U!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#b=U,this.#$=!!U,this.#u=new Map,this.#h=new Array(r).fill(void 0),this.#r=new Array(r).fill(void 0),this.#d=new x(r),this.#E=new x(r),this.#v=0,this.#m=0,this.#P=v.create(r),this.#o=0,this.#p=0,typeof L=="function"&&(this.#s=L),typeof j=="function"&&(this.#i=j),typeof z=="function"?(this.#a=z,this.#g=[]):(this.#a=void 0,this.#g=void 0),this.#S=!!this.#s,this.#n=!!this.#i,this.#f=!!this.#a,this.noDisposeOnSet=!!q,this.noUpdateTTL=!!B,this.noDeleteOnFetchRejection=!!C,this.allowStaleOnFetchRejection=!!G,this.allowStaleOnFetchAbort=!!Y,this.ignoreFetchAbort=!!k,this.maxEntrySize!==0){if(this.#e!==0&&!h(this.#e))throw new TypeError("maxSize must be a positive integer if specified");if(!h(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#M()}if(this.allowStale=!!F,this.noDeleteOnStaleGet=!!_,this.updateAgeOnGet=!!E,this.updateAgeOnHas=!!D,this.ttlResolution=h(m)||m===0?m:1,this.ttlAutopurge=!!T,this.ttl=n||0,this.ttl){if(!h(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#L()}if(this.#t===0&&this.ttl===0&&this.#e===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#t&&!this.#e){let V="LRU_CACHE_UNBOUNDED";u(V)&&(g.add(V),d("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",V,$e))}}getRemainingTTL(i){return this.#u.has(i)?1/0:0}#L(){let i=new o(this.#t),r=new o(this.#t);this.#y=i,this.#O=r,this.#G=(T,E,D=this.#c.now())=>{if(r[T]=E!==0?D:0,i[T]=E,E!==0&&this.ttlAutopurge){let F=setTimeout(()=>{this.#T(T)&&this.#k(this.#h[T],"expire")},E+1);F.unref&&F.unref()}},this.#I=T=>{r[T]=i[T]!==0?this.#c.now():0},this.#R=(T,E)=>{if(i[E]){let D=i[E],F=r[E];if(!D||!F)return;T.ttl=D,T.start=F,T.now=n||m();let L=T.now-F;T.remainingTTL=D-L}};let n=0,m=s(()=>{let T=this.#c.now();if(this.ttlResolution>0){n=T;let E=setTimeout(()=>n=0,this.ttlResolution);E.unref&&E.unref()}return T},"getNow");this.getRemainingTTL=T=>{let E=this.#u.get(T);if(E===void 0)return 0;let D=i[E],F=r[E];if(!D||!F)return 1/0;let L=(n||m())-F;return D-L},this.#T=T=>{let E=r[T],D=i[T];return!!D&&!!E&&(n||m())-E>D}}#I=s(()=>{},"#updateItemAge");#R=s(()=>{},"#statusTTL");#G=s(()=>{},"#setItemTTL");#T=s(()=>!1,"#isStale");#M(){let i=new o(this.#t);this.#p=0,this.#x=i,this.#_=r=>{this.#p-=i[r],i[r]=0},this.#N=(r,n,m,T)=>{if(this.#l(n))return 0;if(!h(m))if(T){if(typeof T!="function")throw new TypeError("sizeCalculation must be a function");if(m=T(n,r),!h(m))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 m},this.#F=(r,n,m)=>{if(i[r]=n,this.#e){let T=this.#e-i[r];for(;this.#p>T;)this.#D(!0)}this.#p+=i[r],m&&(m.entrySize=n,m.totalCalculatedSize=this.#p)}}#_=s(i=>{},"#removeItemSize");#F=s((i,r,n)=>{},"#addItemSize");#N=s((i,r,n,m)=>{if(n||m)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#requireSize");*#C({allowStale:i=this.allowStale}={}){if(this.#o)for(let r=this.#m;!(!this.#B(r)||((i||!this.#T(r))&&(yield r),r===this.#v));)r=this.#E[r]}*#A({allowStale:i=this.allowStale}={}){if(this.#o)for(let r=this.#v;!(!this.#B(r)||((i||!this.#T(r))&&(yield r),r===this.#m));)r=this.#d[r]}#B(i){return i!==void 0&&this.#u.get(this.#h[i])===i}*entries(){for(let i of this.#C())this.#r[i]!==void 0&&this.#h[i]!==void 0&&!this.#l(this.#r[i])&&(yield[this.#h[i],this.#r[i]])}*rentries(){for(let i of this.#A())this.#r[i]!==void 0&&this.#h[i]!==void 0&&!this.#l(this.#r[i])&&(yield[this.#h[i],this.#r[i]])}*keys(){for(let i of this.#C()){let r=this.#h[i];r!==void 0&&!this.#l(this.#r[i])&&(yield r)}}*rkeys(){for(let i of this.#A()){let r=this.#h[i];r!==void 0&&!this.#l(this.#r[i])&&(yield r)}}*values(){for(let i of this.#C())this.#r[i]!==void 0&&!this.#l(this.#r[i])&&(yield this.#r[i])}*rvalues(){for(let i of this.#A())this.#r[i]!==void 0&&!this.#l(this.#r[i])&&(yield this.#r[i])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(i,r={}){for(let n of this.#C()){let m=this.#r[n],T=this.#l(m)?m.__staleWhileFetching:m;if(T!==void 0&&i(T,this.#h[n],this))return this.get(this.#h[n],r)}}forEach(i,r=this){for(let n of this.#C()){let m=this.#r[n],T=this.#l(m)?m.__staleWhileFetching:m;T!==void 0&&i.call(r,T,this.#h[n],this)}}rforEach(i,r=this){for(let n of this.#A()){let m=this.#r[n],T=this.#l(m)?m.__staleWhileFetching:m;T!==void 0&&i.call(r,T,this.#h[n],this)}}purgeStale(){let i=!1;for(let r of this.#A({allowStale:!0}))this.#T(r)&&(this.#k(this.#h[r],"expire"),i=!0);return i}info(i){let r=this.#u.get(i);if(r===void 0)return;let n=this.#r[r],m=this.#l(n)?n.__staleWhileFetching:n;if(m===void 0)return;let T={value:m};if(this.#y&&this.#O){let E=this.#y[r],D=this.#O[r];if(E&&D){let F=E-(this.#c.now()-D);T.ttl=F,T.start=Date.now()}}return this.#x&&(T.size=this.#x[r]),T}dump(){let i=[];for(let r of this.#C({allowStale:!0})){let n=this.#h[r],m=this.#r[r],T=this.#l(m)?m.__staleWhileFetching:m;if(T===void 0||n===void 0)continue;let E={value:T};if(this.#y&&this.#O){E.ttl=this.#y[r];let D=this.#c.now()-this.#O[r];E.start=Math.floor(Date.now()-D)}this.#x&&(E.size=this.#x[r]),i.unshift([n,E])}return i}load(i){this.clear();for(let[r,n]of i){if(n.start){let m=Date.now()-n.start;n.start=this.#c.now()-m}this.set(r,n.value,n)}}set(i,r,n={}){if(r===void 0)return this.delete(i),this;let{ttl:m=this.ttl,start:T,noDisposeOnSet:E=this.noDisposeOnSet,sizeCalculation:D=this.sizeCalculation,status:F}=n,{noUpdateTTL:L=this.noUpdateTTL}=n,j=this.#N(i,r,n.size||0,D);if(this.maxEntrySize&&j>this.maxEntrySize)return F&&(F.set="miss",F.maxEntrySizeExceeded=!0),this.#k(i,"set"),this;let z=this.#o===0?void 0:this.#u.get(i);if(z===void 0)z=this.#o===0?this.#m:this.#P.length!==0?this.#P.pop():this.#o===this.#t?this.#D(!1):this.#o,this.#h[z]=i,this.#r[z]=r,this.#u.set(i,z),this.#d[this.#m]=z,this.#E[z]=this.#m,this.#m=z,this.#o++,this.#F(z,j,F),F&&(F.set="add"),L=!1,this.#n&&this.#i?.(r,i,"add");else{this.#j(z);let q=this.#r[z];if(r!==q){if(this.#$&&this.#l(q)){q.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:B}=q;B!==void 0&&!E&&(this.#S&&this.#s?.(B,i,"set"),this.#f&&this.#g?.push([B,i,"set"]))}else E||(this.#S&&this.#s?.(q,i,"set"),this.#f&&this.#g?.push([q,i,"set"]));if(this.#_(z),this.#F(z,j,F),this.#r[z]=r,F){F.set="replace";let B=q&&this.#l(q)?q.__staleWhileFetching:q;B!==void 0&&(F.oldValue=B)}}else F&&(F.set="update");this.#n&&this.onInsert?.(r,i,r===q?"update":"replace")}if(m!==0&&!this.#y&&this.#L(),this.#y&&(L||this.#G(z,m,T),F&&this.#R(F,z)),!E&&this.#f&&this.#g){let q=this.#g,B;for(;B=q?.shift();)this.#a?.(...B)}return this}pop(){try{for(;this.#o;){let i=this.#r[this.#v];if(this.#D(!0),this.#l(i)){if(i.__staleWhileFetching)return i.__staleWhileFetching}else if(i!==void 0)return i}}finally{if(this.#f&&this.#g){let i=this.#g,r;for(;r=i?.shift();)this.#a?.(...r)}}}#D(i){let r=this.#v,n=this.#h[r],m=this.#r[r];return this.#$&&this.#l(m)?m.__abortController.abort(new Error("evicted")):(this.#S||this.#f)&&(this.#S&&this.#s?.(m,n,"evict"),this.#f&&this.#g?.push([m,n,"evict"])),this.#_(r),i&&(this.#h[r]=void 0,this.#r[r]=void 0,this.#P.push(r)),this.#o===1?(this.#v=this.#m=0,this.#P.length=0):this.#v=this.#d[r],this.#u.delete(n),this.#o--,r}has(i,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:m}=r,T=this.#u.get(i);if(T!==void 0){let E=this.#r[T];if(this.#l(E)&&E.__staleWhileFetching===void 0)return!1;if(this.#T(T))m&&(m.has="stale",this.#R(m,T));else return n&&this.#I(T),m&&(m.has="hit",this.#R(m,T)),!0}else m&&(m.has="miss");return!1}peek(i,r={}){let{allowStale:n=this.allowStale}=r,m=this.#u.get(i);if(m===void 0||!n&&this.#T(m))return;let T=this.#r[m];return this.#l(T)?T.__staleWhileFetching:T}#W(i,r,n,m){let T=r===void 0?void 0:this.#r[r];if(this.#l(T))return T;let E=new f,{signal:D}=n;D?.addEventListener("abort",()=>E.abort(D.reason),{signal:E.signal});let F={signal:E.signal,options:n,context:m},L=s((I,P=!1)=>{let{aborted:U}=E.signal,M=n.ignoreFetchAbort&&I!==void 0;if(n.status&&(U&&!P?(n.status.fetchAborted=!0,n.status.fetchError=E.signal.reason,M&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),U&&!M&&!P)return z(E.signal.reason);let C=B,_=this.#r[r];return(_===B||M&&P&&_===void 0)&&(I===void 0?C.__staleWhileFetching!==void 0?this.#r[r]=C.__staleWhileFetching:this.#k(i,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.set(i,I,F.options))),I},"cb"),j=s(I=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=I),z(I)),"eb"),z=s(I=>{let{aborted:P}=E.signal,U=P&&n.allowStaleOnFetchAbort,M=U||n.allowStaleOnFetchRejection,C=M||n.noDeleteOnFetchRejection,_=B;if(this.#r[r]===B&&(!C||_.__staleWhileFetching===void 0?this.#k(i,"fetch"):U||(this.#r[r]=_.__staleWhileFetching)),M)return n.status&&_.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),_.__staleWhileFetching;if(_.__returned===_)throw I},"fetchFail"),q=s((I,P)=>{let U=this.#b?.(i,T,F);U&&U instanceof Promise&&U.then(M=>I(M===void 0?void 0:M),P),E.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(I(void 0),n.allowStaleOnFetchAbort&&(I=s(M=>L(M,!0),"res")))})},"pcall");n.status&&(n.status.fetchDispatched=!0);let B=new Promise(q).then(L,j),O=Object.assign(B,{__abortController:E,__staleWhileFetching:T,__returned:void 0});return r===void 0?(this.set(i,O,{...F.options,status:void 0}),r=this.#u.get(i)):this.#r[r]=O,O}#l(i){if(!this.#$)return!1;let r=i;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof f}async fetch(i,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:m=this.updateAgeOnGet,noDeleteOnStaleGet:T=this.noDeleteOnStaleGet,ttl:E=this.ttl,noDisposeOnSet:D=this.noDisposeOnSet,size:F=0,sizeCalculation:L=this.sizeCalculation,noUpdateTTL:j=this.noUpdateTTL,noDeleteOnFetchRejection:z=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:q=this.allowStaleOnFetchRejection,ignoreFetchAbort:B=this.ignoreFetchAbort,allowStaleOnFetchAbort:O=this.allowStaleOnFetchAbort,context:I,forceRefresh:P=!1,status:U,signal:M}=r;if(!this.#$)return U&&(U.fetch="get"),this.get(i,{allowStale:n,updateAgeOnGet:m,noDeleteOnStaleGet:T,status:U});let C={allowStale:n,updateAgeOnGet:m,noDeleteOnStaleGet:T,ttl:E,noDisposeOnSet:D,size:F,sizeCalculation:L,noUpdateTTL:j,noDeleteOnFetchRejection:z,allowStaleOnFetchRejection:q,allowStaleOnFetchAbort:O,ignoreFetchAbort:B,status:U,signal:M},_=this.#u.get(i);if(_===void 0){U&&(U.fetch="miss");let G=this.#W(i,_,C,I);return G.__returned=G}else{let G=this.#r[_];if(this.#l(G)){let x=n&&G.__staleWhileFetching!==void 0;return U&&(U.fetch="inflight",x&&(U.returnedStale=!0)),x?G.__staleWhileFetching:G.__returned=G}let Y=this.#T(_);if(!P&&!Y)return U&&(U.fetch="hit"),this.#j(_),m&&this.#I(_),U&&this.#R(U,_),G;let k=this.#W(i,_,C,I),N=k.__staleWhileFetching!==void 0&&n;return U&&(U.fetch=Y?"stale":"refresh",N&&Y&&(U.returnedStale=!0)),N?k.__staleWhileFetching:k.__returned=k}}async forceFetch(i,r={}){let n=await this.fetch(i,r);if(n===void 0)throw new Error("fetch() returned undefined");return n}memo(i,r={}){let n=this.#w;if(!n)throw new Error("no memoMethod provided to constructor");let{context:m,forceRefresh:T,...E}=r,D=this.get(i,E);if(!T&&D!==void 0)return D;let F=n(i,D,{options:E,context:m});return this.set(i,F,E),F}get(i,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:m=this.updateAgeOnGet,noDeleteOnStaleGet:T=this.noDeleteOnStaleGet,status:E}=r,D=this.#u.get(i);if(D!==void 0){let F=this.#r[D],L=this.#l(F);return E&&this.#R(E,D),this.#T(D)?(E&&(E.get="stale"),L?(E&&n&&F.__staleWhileFetching!==void 0&&(E.returnedStale=!0),n?F.__staleWhileFetching:void 0):(T||this.#k(i,"expire"),E&&n&&(E.returnedStale=!0),n?F:void 0)):(E&&(E.get="hit"),L?F.__staleWhileFetching:(this.#j(D),m&&this.#I(D),F))}else E&&(E.get="miss")}#U(i,r){this.#E[r]=i,this.#d[i]=r}#j(i){i!==this.#m&&(i===this.#v?this.#v=this.#d[i]:this.#U(this.#E[i],this.#d[i]),this.#U(this.#m,i),this.#m=i)}delete(i){return this.#k(i,"delete")}#k(i,r){let n=!1;if(this.#o!==0){let m=this.#u.get(i);if(m!==void 0)if(n=!0,this.#o===1)this.#z(r);else{this.#_(m);let T=this.#r[m];if(this.#l(T)?T.__abortController.abort(new Error("deleted")):(this.#S||this.#f)&&(this.#S&&this.#s?.(T,i,r),this.#f&&this.#g?.push([T,i,r])),this.#u.delete(i),this.#h[m]=void 0,this.#r[m]=void 0,m===this.#m)this.#m=this.#E[m];else if(m===this.#v)this.#v=this.#d[m];else{let E=this.#E[m];this.#d[E]=this.#d[m];let D=this.#d[m];this.#E[D]=this.#E[m]}this.#o--,this.#P.push(m)}}if(this.#f&&this.#g?.length){let m=this.#g,T;for(;T=m?.shift();)this.#a?.(...T)}return n}clear(){return this.#z("delete")}#z(i){for(let r of this.#A({allowStale:!0})){let n=this.#r[r];if(this.#l(n))n.__abortController.abort(new Error("deleted"));else{let m=this.#h[r];this.#S&&this.#s?.(n,m,i),this.#f&&this.#g?.push([n,m,i])}}if(this.#u.clear(),this.#r.fill(void 0),this.#h.fill(void 0),this.#y&&this.#O&&(this.#y.fill(0),this.#O.fill(0)),this.#x&&this.#x.fill(0),this.#v=0,this.#m=0,this.#P.length=0,this.#p=0,this.#o=0,this.#f&&this.#g){let r=this.#g,n;for(;n=r?.shift();)this.#a?.(...n)}}};c.LRUCache=S}),Vt=tt((c,y)=>{"use strict";var{LRUCache:g}=Oe(),w=new g({max:500,maxSize:50*1024*1024,ttl:180*1e3,sizeCalculation:s((o,v)=>v.startsWith("key:")?o.data.length:o.length,"sizeCalculation")});y.exports.clearMemoized=d;function d(){let o={};return w.forEach((v,S)=>{o[S]=v}),w.clear(),o}s(d,"clearMemoized"),y.exports.put=f;function f(o,v,S,b){a(b).set(`key:${o}:${v.key}`,{entry:v,data:S}),l(o,v.integrity,S,b)}s(f,"put"),y.exports.put.byDigest=l;function l(o,v,S,b){a(b).set(`digest:${o}:${v}`,S)}s(l,"putDigest"),y.exports.get=u;function u(o,v,S){return a(S).get(`key:${o}:${v}`)}s(u,"get"),y.exports.get.byDigest=e;function e(o,v,S){return a(S).get(`digest:${o}:${v}`)}s(e,"getDigest");var h=class{static{s(this,"ObjProxy")}constructor(o){this.obj=o}get(o){return this.obj[o]}set(o,v){this.obj[o]=v}};function a(o){return!o||!o.memoize?w:o.memoize.get&&o.memoize.set?o.memoize:typeof o.memoize=="object"?new h(o.memoize):w}s(a,"pickMem")}),se=tt(c=>{"use strict";var{Minipass:y}=Tt(),g=ct("events").EventEmitter,w=ct("fs"),d=w.writev,f=Symbol("_autoClose"),l=Symbol("_close"),u=Symbol("_ended"),e=Symbol("_fd"),h=Symbol("_finished"),a=Symbol("_flags"),o=Symbol("_flush"),v=Symbol("_handleChunk"),S=Symbol("_makeBuf"),b=Symbol("_mode"),i=Symbol("_needDrain"),r=Symbol("_onerror"),n=Symbol("_onopen"),m=Symbol("_onread"),T=Symbol("_onwrite"),E=Symbol("_open"),D=Symbol("_path"),F=Symbol("_pos"),L=Symbol("_queue"),j=Symbol("_read"),z=Symbol("_readSize"),q=Symbol("_reading"),B=Symbol("_remain"),O=Symbol("_size"),I=Symbol("_write"),P=Symbol("_writing"),U=Symbol("_defaultFlag"),M=Symbol("_errored"),C=class extends y{static{s(this,"ReadStream")}constructor(k,N){if(N=N||{},super(N),this.readable=!0,this.writable=!1,typeof k!="string")throw new TypeError("path must be a string");this[M]=!1,this[e]=typeof N.fd=="number"?N.fd:null,this[D]=k,this[z]=N.readSize||16*1024*1024,this[q]=!1,this[O]=typeof N.size=="number"?N.size:1/0,this[B]=this[O],this[f]=typeof N.autoClose=="boolean"?N.autoClose:!0,typeof this[e]=="number"?this[j]():this[E]()}get fd(){return this[e]}get path(){return this[D]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[E](){w.open(this[D],"r",(k,N)=>this[n](k,N))}[n](k,N){k?this[r](k):(this[e]=N,this.emit("open",N),this[j]())}[S](){return Buffer.allocUnsafe(Math.min(this[z],this[B]))}[j](){if(!this[q]){this[q]=!0;let k=this[S]();if(k.length===0)return process.nextTick(()=>this[m](null,0,k));w.read(this[e],k,0,k.length,null,(N,x,V)=>this[m](N,x,V))}}[m](k,N,x){this[q]=!1,k?this[r](k):this[v](N,x)&&this[j]()}[l](){if(this[f]&&typeof this[e]=="number"){let k=this[e];this[e]=null,w.close(k,N=>N?this.emit("error",N):this.emit("close"))}}[r](k){this[q]=!0,this[l](),this.emit("error",k)}[v](k,N){let x=!1;return this[B]-=k,k>0&&(x=super.write(k<N.length?N.slice(0,k):N)),(k===0||this[B]<=0)&&(x=!1,this[l](),super.end()),x}emit(k,N){switch(k){case"prefinish":case"finish":break;case"drain":typeof this[e]=="number"&&this[j]();break;case"error":return this[M]?void 0:(this[M]=!0,super.emit(k,N));default:return super.emit(k,N)}}},_=class extends C{static{s(this,"ReadStreamSync")}[E](){let k=!0;try{this[n](null,w.openSync(this[D],"r")),k=!1}finally{k&&this[l]()}}[j](){let k=!0;try{if(!this[q]){this[q]=!0;do{let N=this[S](),x=N.length===0?0:w.readSync(this[e],N,0,N.length,null);if(!this[v](x,N))break}while(!0);this[q]=!1}k=!1}finally{k&&this[l]()}}[l](){if(this[f]&&typeof this[e]=="number"){let k=this[e];this[e]=null,w.closeSync(k),this.emit("close")}}},G=class extends g{static{s(this,"WriteStream")}constructor(k,N){N=N||{},super(N),this.readable=!1,this.writable=!0,this[M]=!1,this[P]=!1,this[u]=!1,this[i]=!1,this[L]=[],this[D]=k,this[e]=typeof N.fd=="number"?N.fd:null,this[b]=N.mode===void 0?438:N.mode,this[F]=typeof N.start=="number"?N.start:null,this[f]=typeof N.autoClose=="boolean"?N.autoClose:!0;let x=this[F]!==null?"r+":"w";this[U]=N.flags===void 0,this[a]=this[U]?x:N.flags,this[e]===null&&this[E]()}emit(k,N){if(k==="error"){if(this[M])return;this[M]=!0}return super.emit(k,N)}get fd(){return this[e]}get path(){return this[D]}[r](k){this[l](),this[P]=!0,this.emit("error",k)}[E](){w.open(this[D],this[a],this[b],(k,N)=>this[n](k,N))}[n](k,N){this[U]&&this[a]==="r+"&&k&&k.code==="ENOENT"?(this[a]="w",this[E]()):k?this[r](k):(this[e]=N,this.emit("open",N),this[P]||this[o]())}end(k,N){return k&&this.write(k,N),this[u]=!0,!this[P]&&!this[L].length&&typeof this[e]=="number"&&this[T](null,0),this}write(k,N){return typeof k=="string"&&(k=Buffer.from(k,N)),this[u]?(this.emit("error",new Error("write() after end()")),!1):this[e]===null||this[P]||this[L].length?(this[L].push(k),this[i]=!0,!1):(this[P]=!0,this[I](k),!0)}[I](k){w.write(this[e],k,0,k.length,this[F],(N,x)=>this[T](N,x))}[T](k,N){k?this[r](k):(this[F]!==null&&(this[F]+=N),this[L].length?this[o]():(this[P]=!1,this[u]&&!this[h]?(this[h]=!0,this[l](),this.emit("finish")):this[i]&&(this[i]=!1,this.emit("drain"))))}[o](){if(this[L].length===0)this[u]&&this[T](null,0);else if(this[L].length===1)this[I](this[L].pop());else{let k=this[L];this[L]=[],d(this[e],k,this[F],(N,x)=>this[T](N,x))}}[l](){if(this[f]&&typeof this[e]=="number"){let k=this[e];this[e]=null,w.close(k,N=>N?this.emit("error",N):this.emit("close"))}}},Y=class extends G{static{s(this,"WriteStreamSync")}[E](){let k;if(this[U]&&this[a]==="r+")try{k=w.openSync(this[D],this[a],this[b])}catch(N){if(N.code==="ENOENT")return this[a]="w",this[E]();throw N}else k=w.openSync(this[D],this[a],this[b]);this[n](null,k)}[l](){if(this[f]&&typeof this[e]=="number"){let k=this[e];this[e]=null,w.closeSync(k),this.emit("close")}}[I](k){let N=!0;try{this[T](null,w.writeSync(this[e],k,0,k.length,this[F])),N=!1}finally{if(N)try{this[l]()}catch{}}}};c.ReadStream=C,c.ReadStreamSync=_,c.WriteStream=G,c.WriteStreamSync=Y}),Pe=tt((c,y)=>{"use strict";var g=ct("fs/promises"),w=se(),d=At(),f=Lt(),l=zt();y.exports=e;var u=64*1024*1024;async function e(r,n,m={}){let{size:T}=m,{stat:E,cpath:D,sri:F}=await S(r,n,async(j,z)=>({stat:T?{size:T}:await g.stat(j),cpath:j,sri:z}));if(E.size>u)return h(D,E.size,F,new l).concat();let L=await g.readFile(D,{encoding:null});if(E.size!==L.length)throw b(E.size,L.length);if(!d.checkData(L,F))throw i(F,D);return L}s(e,"read");var h=s((r,n,m,T)=>(T.push(new w.ReadStream(r,{size:n,readSize:u}),d.integrityStream({integrity:m,size:n})),T),"readPipeline");y.exports.stream=a,y.exports.readStream=a;function a(r,n,m={}){let{size:T}=m,E=new l;return Promise.resolve().then(async()=>{let{stat:D,cpath:F,sri:L}=await S(r,n,async(j,z)=>({stat:T?{size:T}:await g.stat(j),cpath:j,sri:z}));return h(F,D.size,L,E)}).catch(D=>E.emit("error",D)),E}s(a,"readStream"),y.exports.copy=o;function o(r,n,m){return S(r,n,T=>g.copyFile(T,m))}s(o,"copy"),y.exports.hasContent=v;async function v(r,n){if(!n)return!1;try{return await S(r,n,async(m,T)=>{let E=await g.stat(m);return{size:E.size,sri:T,stat:E}})}catch(m){if(m.code==="ENOENT")return!1;if(m.code==="EPERM"){if(process.platform!=="win32")throw m;return!1}}}s(v,"hasContent");async function S(r,n,m){let T=d.parse(n),E=T.pickAlgorithm(),D=T[E];if(D.length<=1){let F=f(r,D[0]);return m(F,D[0])}else{let F=await Promise.all(D.map(async z=>{try{return await S(r,z,m)}catch(q){return q.code==="ENOENT"?Object.assign(new Error("No matching content found for "+T.toString()),{code:"ENOENT"}):q}})),L=F.find(z=>!(z instanceof Error));if(L)return L;throw F.find(z=>z.code==="ENOENT")||F.find(z=>z instanceof Error)}}s(S,"withContentSri");function b(r,n){let m=new Error(`Bad data size: expected inserted data to be ${r} bytes, but got ${n} instead`);return m.expected=r,m.found=n,m.code="EBADSIZE",m}s(b,"sizeError");function i(r,n){let m=new Error(`Integrity verification failed for ${r} (${n})`);return m.code="EINTEGRITY",m.sri=r,m.path=n,m}s(i,"integrityError")}),Ir=tt((c,y)=>{"use strict";var g=fe(),{Minipass:w}=Tt(),d=zt(),f=Nt(),l=Vt(),u=Pe();async function e(r,n,m={}){let{integrity:T,memoize:E,size:D}=m,F=l.get(r,n,m);if(F&&E!==!1)return{metadata:F.entry.metadata,data:F.data,integrity:F.entry.integrity,size:F.entry.size};let L=await f.find(r,n,m);if(!L)throw new f.NotFoundError(r,n);let j=await u(r,L.integrity,{integrity:T,size:D});return E&&l.put(r,L,j,m),{data:j,metadata:L.metadata,size:L.size,integrity:L.integrity}}s(e,"getData"),y.exports=e;async function h(r,n,m={}){let{integrity:T,memoize:E,size:D}=m,F=l.get.byDigest(r,n,m);if(F&&E!==!1)return F;let L=await u(r,n,{integrity:T,size:D});return E&&l.put.byDigest(r,n,L,m),L}s(h,"getDataByDigest"),y.exports.byDigest=h;var a=s(r=>{let n=new w;return n.on("newListener",function(m,T){m==="metadata"&&T(r.entry.metadata),m==="integrity"&&T(r.entry.integrity),m==="size"&&T(r.entry.size)}),n.end(r.data),n},"getMemoizedStream");function o(r,n,m={}){let{memoize:T,size:E}=m,D=l.get(r,n,m);if(D&&T!==!1)return a(D);let F=new d;return Promise.resolve().then(async()=>{let L=await f.find(r,n);if(!L)throw new f.NotFoundError(r,n);F.emit("metadata",L.metadata),F.emit("integrity",L.integrity),F.emit("size",L.size),F.on("newListener",function(z,q){z==="metadata"&&q(L.metadata),z==="integrity"&&q(L.integrity),z==="size"&&q(L.size)});let j=u.readStream(r,L.integrity,{...m,size:typeof E!="number"?L.size:E});if(T){let z=new g.PassThrough;z.on("collect",q=>l.put(r,L,q,m)),F.unshift(z)}return F.unshift(j),F}).catch(L=>F.emit("error",L)),F}s(o,"getStream"),y.exports.stream=o;function v(r,n,m={}){let{memoize:T}=m,E=l.get.byDigest(r,n,m);if(E&&T!==!1){let D=new w;return D.end(E),D}else{let D=u.readStream(r,n,m);if(!T)return D;let F=new g.PassThrough;return F.on("collect",L=>l.put.byDigest(r,n,L,m)),new d(D,F)}}s(v,"getStreamDigest"),y.exports.stream.byDigest=v;function S(r,n,m={}){let{memoize:T}=m,E=l.get(r,n,m);return E&&T!==!1?Promise.resolve(E.entry):f.find(r,n)}s(S,"info"),y.exports.info=S;async function b(r,n,m,T={}){let E=await f.find(r,n,T);if(!E)throw new f.NotFoundError(r,n);return await u.copy(r,E.integrity,m,T),{metadata:E.metadata,size:E.size,integrity:E.integrity}}s(b,"copy"),y.exports.copy=b;async function i(r,n,m,T={}){return await u.copy(r,n,m,T),n}s(i,"copyByDigest"),y.exports.copy.byDigest=i,y.exports.hasContent=u.hasContent}),Ie=tt((c,y)=>{var g=de(),w=Symbol("_flush"),d=Symbol("_flushed"),f=Symbol("_flushing"),l=class extends g{static{s(this,"Flush")}constructor(u={}){if(typeof u=="function"&&(u={flush:u}),super(u),typeof u.flush!="function"&&typeof this.flush!="function")throw new TypeError("must provide flush function in options");this[w]=u.flush||this.flush}emit(u,...e){if(u!=="end"&&u!=="finish"||this[d])return super.emit(u,...e);if(this[f])return;this[f]=!0;let h=s(o=>{this[d]=!0,o?super.emit("error",o):super.emit("end")},"afterFlush"),a=this[w](h);a&&a.then&&a.then(()=>h(),o=>h(o))}};y.exports=l}),Cr=tt((c,y)=>{"use strict";var g=ct("events"),w=Lt(),d=ct("fs/promises"),{moveFile:f}=ie(),{Minipass:l}=Tt(),u=zt(),e=Ie(),h=ct("path"),a=At(),o=ge(),v=se();y.exports=b;var S=new Map;async function b(L,j,z={}){let{algorithms:q,size:B,integrity:O}=z;if(typeof B=="number"&&j.length!==B)throw D(B,j.length);let I=a.fromData(j,q?{algorithms:q}:{});if(O&&!a.checkData(j,O,z))throw F(O,I);for(let P in I){let U=await T(L,z),M=I[P].toString();try{await d.writeFile(U.target,j,{flag:"wx"}),await E(U,L,M,z)}finally{U.moved||await d.rm(U.target,{recursive:!0,force:!0})}}return{integrity:I,size:j.length}}s(b,"write"),y.exports.stream=r;var i=class extends e{static{s(this,"CacacheWriteStream")}constructor(L,j){super(),this.opts=j,this.cache=L,this.inputStream=new l,this.inputStream.on("error",z=>this.emit("error",z)),this.inputStream.on("drain",()=>this.emit("drain")),this.handleContentP=null}write(L,j,z){return this.handleContentP||(this.handleContentP=n(this.inputStream,this.cache,this.opts),this.handleContentP.catch(q=>this.emit("error",q))),this.inputStream.write(L,j,z)}flush(L){this.inputStream.end(()=>{if(!this.handleContentP){let j=new Error("Cache input stream was empty");return j.code="ENODATA",Promise.reject(j).catch(L)}this.handleContentP.then(j=>{j.integrity&&this.emit("integrity",j.integrity),j.size!==null&&this.emit("size",j.size),L()},j=>L(j))})}};function r(L,j={}){return new i(L,j)}s(r,"writeStream");async function n(L,j,z){let q=await T(j,z);try{let B=await m(L,j,q.target,z);return await E(q,j,B.integrity,z),B}finally{q.moved||await d.rm(q.target,{recursive:!0,force:!0})}}s(n,"handleContent");async function m(L,j,z,q){let B=new v.WriteStream(z,{flags:"wx"});if(q.integrityEmitter){let[U,M]=await Promise.all([g.once(q.integrityEmitter,"integrity").then(C=>C[0]),g.once(q.integrityEmitter,"size").then(C=>C[0]),new u(L,B).promise()]);return{integrity:U,size:M}}let O,I,P=a.integrityStream({integrity:q.integrity,algorithms:q.algorithms,size:q.size});return P.on("integrity",U=>{O=U}),P.on("size",U=>{I=U}),await new u(L,P,B).promise(),{integrity:O,size:I}}s(m,"pipeToTmp");async function T(L,j){let z=o(h.join(L,"tmp"),j.tmpPrefix);return await d.mkdir(h.dirname(z),{recursive:!0}),{target:z,moved:!1}}s(T,"makeTmp");async function E(L,j,z){let q=w(j,z),B=h.dirname(q);return S.has(q)||S.set(q,d.mkdir(B,{recursive:!0}).then(async()=>(await f(L.target,q,{overwrite:!1}),L.moved=!0,L.moved)).catch(O=>{if(!O.message.startsWith("The destination file exists"))throw Object.assign(O,{code:"EEXIST"})}).finally(()=>{S.delete(q)})),S.get(q)}s(E,"moveToDestination");function D(L,j){let z=new Error(`Bad data size: expected inserted data to be ${L} bytes, but got ${j} instead`);return z.expected=L,z.found=j,z.code="EBADSIZE",z}s(D,"sizeError");function F(L,j){let z=new Error(`Integrity check failed:
11
- Wanted: ${L}
12
- Found: ${j}`);return z.code="EINTEGRITY",z.expected=L,z.found=j,z}s(F,"checksumError")}),kr=tt((c,y)=>{"use strict";var g=Nt(),w=Vt(),d=Cr(),f=Ie(),{PassThrough:l}=fe(),u=zt(),e=s(o=>({algorithms:["sha512"],...o}),"putOpts");y.exports=h;async function h(o,v,S,b={}){let{memoize:i}=b;b=e(b);let r=await d(o,S,b),n=await g.insert(o,v,r.integrity,{...b,size:r.size});return i&&w.put(o,n,S,b),r.integrity}s(h,"putData"),y.exports.stream=a;function a(o,v,S={}){let{memoize:b}=S;S=e(S);let i,r,n,m,T=new u;if(b){let D=new l().on("collect",F=>{m=F});T.push(D)}let E=d.stream(o,S).on("integrity",D=>{i=D}).on("size",D=>{r=D}).on("error",D=>{n=D});return T.push(E),T.push(new f({async flush(){if(!n){let D=await g.insert(o,v,i,{...S,size:r});b&&m&&w.put(o,D,m,S),T.emit("integrity",i),T.emit("size",r)}}})),T}s(a,"putStream")}),Ar=tt(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.range=c.balanced=void 0;var y=s((d,f,l)=>{let u=d instanceof RegExp?g(d,l):d,e=f instanceof RegExp?g(f,l):f,h=u!==null&&e!=null&&(0,c.range)(u,e,l);return h&&{start:h[0],end:h[1],pre:l.slice(0,h[0]),body:l.slice(h[0]+u.length,h[1]),post:l.slice(h[1]+e.length)}},"balanced");c.balanced=y;var g=s((d,f)=>{let l=f.match(d);return l?l[0]:null},"maybeMatch"),w=s((d,f,l)=>{let u,e,h,a,o,v=l.indexOf(d),S=l.indexOf(f,v+1),b=v;if(v>=0&&S>0){if(d===f)return[v,S];for(u=[],h=l.length;b>=0&&!o;){if(b===v)u.push(b),v=l.indexOf(d,b+1);else if(u.length===1){let i=u.pop();i!==void 0&&(o=[i,S])}else e=u.pop(),e!==void 0&&e<h&&(h=e,a=S),S=l.indexOf(f,b+1);b=v<S&&v>=0?v:S}u.length&&a!==void 0&&(o=[h,a])}return o},"range");c.range=w}),Lr=tt(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.expand=D;var y=Ar(),g="\0SLASH"+Math.random()+"\0",w="\0OPEN"+Math.random()+"\0",d="\0CLOSE"+Math.random()+"\0",f="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0",u=new RegExp(g,"g"),e=new RegExp(w,"g"),h=new RegExp(d,"g"),a=new RegExp(f,"g"),o=new RegExp(l,"g"),v=/\\\\/g,S=/\\{/g,b=/\\}/g,i=/\\,/g,r=/\\./g;function n(B){return isNaN(B)?B.charCodeAt(0):parseInt(B,10)}s(n,"numeric");function m(B){return B.replace(v,g).replace(S,w).replace(b,d).replace(i,f).replace(r,l)}s(m,"escapeBraces");function T(B){return B.replace(u,"\\").replace(e,"{").replace(h,"}").replace(a,",").replace(o,".")}s(T,"unescapeBraces");function E(B){if(!B)return[""];let O=[],I=(0,y.balanced)("{","}",B);if(!I)return B.split(",");let{pre:P,body:U,post:M}=I,C=P.split(",");C[C.length-1]+="{"+U+"}";let _=E(M);return M.length&&(C[C.length-1]+=_.shift(),C.push.apply(C,_)),O.push.apply(O,C),O}s(E,"parseCommaParts");function D(B){return B?(B.slice(0,2)==="{}"&&(B="\\{\\}"+B.slice(2)),q(m(B),!0).map(T)):[]}s(D,"expand");function F(B){return"{"+B+"}"}s(F,"embrace");function L(B){return/^-?0\d/.test(B)}s(L,"isPadded");function j(B,O){return B<=O}s(j,"lte");function z(B,O){return B>=O}s(z,"gte");function q(B,O){let I=[],P=(0,y.balanced)("{","}",B);if(!P)return[B];let U=P.pre,M=P.post.length?q(P.post,!1):[""];if(/\$$/.test(P.pre))for(let C=0;C<M.length;C++){let _=U+"{"+P.body+"}"+M[C];I.push(_)}else{let C=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(P.body),_=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(P.body),G=C||_,Y=P.body.indexOf(",")>=0;if(!G&&!Y)return P.post.match(/,(?!,).*\}/)?(B=P.pre+"{"+P.body+d+P.post,q(B)):[B];let k;if(G)k=P.body.split(/\.\./);else if(k=E(P.body),k.length===1&&k[0]!==void 0&&(k=q(k[0],!1).map(F),k.length===1))return M.map(x=>P.pre+k[0]+x);let N;if(G&&k[0]!==void 0&&k[1]!==void 0){let x=n(k[0]),V=n(k[1]),rt=Math.max(k[0].length,k[1].length),at=k.length===3&&k[2]!==void 0?Math.abs(n(k[2])):1,ht=j;V<x&&(at*=-1,ht=z);let gt=k.some(L);N=[];for(let R=x;ht(R,V);R+=at){let A;if(_)A=String.fromCharCode(R),A==="\\"&&(A="");else if(A=String(R),gt){let W=rt-A.length;if(W>0){let H=new Array(W+1).join("0");R<0?A="-"+H+A.slice(1):A=H+A}}N.push(A)}}else{N=[];for(let x=0;x<k.length;x++)N.push.apply(N,q(k[x],!1))}for(let x=0;x<N.length;x++)for(let V=0;V<M.length;V++){let rt=U+N[x]+M[V];(!O||G||rt)&&I.push(rt)}}return I}s(q,"expand_")}),_r=tt(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.assertValidPattern=void 0;var y=1024*64,g=s(w=>{if(typeof w!="string")throw new TypeError("invalid pattern");if(w.length>y)throw new TypeError("pattern is too long")},"assertValidPattern");c.assertValidPattern=g}),Nr=tt(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.parseClass=void 0;var y={"[: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]},g=s(l=>l.replace(/[[\]\\-]/g,"\\$&"),"braceEscape"),w=s(l=>l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regexpEscape"),d=s(l=>l.join(""),"rangesToString"),f=s((l,u)=>{let e=u;if(l.charAt(e)!=="[")throw new Error("not in a brace expression");let h=[],a=[],o=e+1,v=!1,S=!1,b=!1,i=!1,r=e,n="";t:for(;o<l.length;){let E=l.charAt(o);if((E==="!"||E==="^")&&o===e+1){i=!0,o++;continue}if(E==="]"&&v&&!b){r=o+1;break}if(v=!0,E==="\\"&&!b){b=!0,o++;continue}if(E==="["&&!b){for(let[D,[F,L,j]]of Object.entries(y))if(l.startsWith(D,o)){if(n)return["$.",!1,l.length-e,!0];o+=D.length,j?a.push(F):h.push(F),S=S||L;continue t}}if(b=!1,n){E>n?h.push(g(n)+"-"+g(E)):E===n&&h.push(g(E)),n="",o++;continue}if(l.startsWith("-]",o+1)){h.push(g(E+"-")),o+=2;continue}if(l.startsWith("-",o+1)){n=E,o+=2;continue}h.push(g(E)),o++}if(r<o)return["",!1,0,!1];if(!h.length&&!a.length)return["$.",!1,l.length-e,!0];if(a.length===0&&h.length===1&&/^\\?.$/.test(h[0])&&!i){let E=h[0].length===2?h[0].slice(-1):h[0];return[w(E),!1,r-e,!1]}let m="["+(i?"^":"")+d(h)+"]",T="["+(i?"":"^")+d(a)+"]";return[h.length&&a.length?"("+m+"|"+T+")":h.length?m:T,S,r-e,!0]},"parseClass");c.parseClass=f}),Kt=tt(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.unescape=void 0;var y=s((g,{windowsPathsNoEscape:w=!1}={})=>w?g.replace(/\[([^\/\\])\]/g,"$1"):g.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),"unescape");c.unescape=y}),he=tt(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.AST=void 0;var y=Nr(),g=Kt(),w=new Set(["!","?","+","*","@"]),d=s(i=>w.has(i),"isExtglobType"),f="(?!(?:^|/)\\.\\.?(?:$|/))",l="(?!\\.)",u=new Set(["[","."]),e=new Set(["..","."]),h=new Set("().*{}+?[]^$\\!"),a=s(i=>i.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),o="[^/]",v=o+"*?",S=o+"+?",b=class Et{static{s(this,"AST")}type;#t;#e;#s=!1;#i=[];#a;#b;#w;#c=!1;#o;#p;#u=!1;constructor(r,n,m={}){this.type=r,r&&(this.#e=!0),this.#a=n,this.#t=this.#a?this.#a.#t:this,this.#o=this.#t===this?m:this.#t.#o,this.#w=this.#t===this?[]:this.#t.#w,r==="!"&&!this.#t.#c&&this.#w.push(this),this.#b=this.#a?this.#a.#i.length:0}get hasMagic(){if(this.#e!==void 0)return this.#e;for(let r of this.#i)if(typeof r!="string"&&(r.type||r.hasMagic))return this.#e=!0;return this.#e}toString(){return this.#p!==void 0?this.#p:this.type?this.#p=this.type+"("+this.#i.map(r=>String(r)).join("|")+")":this.#p=this.#i.map(r=>String(r)).join("")}#h(){if(this!==this.#t)throw new Error("should only call on root");if(this.#c)return this;this.toString(),this.#c=!0;let r;for(;r=this.#w.pop();){if(r.type!=="!")continue;let n=r,m=n.#a;for(;m;){for(let T=n.#b+1;!m.type&&T<m.#i.length;T++)for(let E of r.#i){if(typeof E=="string")throw new Error("string part in extglob AST??");E.copyIn(m.#i[T])}n=m,m=n.#a}}return this}push(...r){for(let n of r)if(n!==""){if(typeof n!="string"&&!(n instanceof Et&&n.#a===this))throw new Error("invalid part: "+n);this.#i.push(n)}}toJSON(){let r=this.type===null?this.#i.slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...this.#i.map(n=>n.toJSON())];return this.isStart()&&!this.type&&r.unshift([]),this.isEnd()&&(this===this.#t||this.#t.#c&&this.#a?.type==="!")&&r.push({}),r}isStart(){if(this.#t===this)return!0;if(!this.#a?.isStart())return!1;if(this.#b===0)return!0;let r=this.#a;for(let n=0;n<this.#b;n++){let m=r.#i[n];if(!(m instanceof Et&&m.type==="!"))return!1}return!0}isEnd(){if(this.#t===this||this.#a?.type==="!")return!0;if(!this.#a?.isEnd())return!1;if(!this.type)return this.#a?.isEnd();let r=this.#a?this.#a.#i.length:0;return this.#b===r-1}copyIn(r){typeof r=="string"?this.push(r):this.push(r.clone(this))}clone(r){let n=new Et(this.type,r);for(let m of this.#i)n.copyIn(m);return n}static#r(r,n,m,T){let E=!1,D=!1,F=-1,L=!1;if(n.type===null){let O=m,I="";for(;O<r.length;){let P=r.charAt(O++);if(E||P==="\\"){E=!E,I+=P;continue}if(D){O===F+1?(P==="^"||P==="!")&&(L=!0):P==="]"&&!(O===F+2&&L)&&(D=!1),I+=P;continue}else if(P==="["){D=!0,F=O,L=!1,I+=P;continue}if(!T.noext&&d(P)&&r.charAt(O)==="("){n.push(I),I="";let U=new Et(P,n);O=Et.#r(r,U,O,T),n.push(U);continue}I+=P}return n.push(I),O}let j=m+1,z=new Et(null,n),q=[],B="";for(;j<r.length;){let O=r.charAt(j++);if(E||O==="\\"){E=!E,B+=O;continue}if(D){j===F+1?(O==="^"||O==="!")&&(L=!0):O==="]"&&!(j===F+2&&L)&&(D=!1),B+=O;continue}else if(O==="["){D=!0,F=j,L=!1,B+=O;continue}if(d(O)&&r.charAt(j)==="("){z.push(B),B="";let I=new Et(O,z);z.push(I),j=Et.#r(r,I,j,T);continue}if(O==="|"){z.push(B),B="",q.push(z),z=new Et(null,n);continue}if(O===")")return B===""&&n.#i.length===0&&(n.#u=!0),z.push(B),B="",n.push(...q,z),j;B+=O}return n.type=null,n.#e=void 0,n.#i=[r.substring(m-1)],j}static fromGlob(r,n={}){let m=new Et(null,void 0,n);return Et.#r(r,m,0,n),m}toMMPattern(){if(this!==this.#t)return this.#t.toMMPattern();let r=this.toString(),[n,m,T,E]=this.toRegExpSource();if(!(T||this.#e||this.#o.nocase&&!this.#o.nocaseMagicOnly&&r.toUpperCase()!==r.toLowerCase()))return m;let D=(this.#o.nocase?"i":"")+(E?"u":"");return Object.assign(new RegExp(`^${n}$`,D),{_src:n,_glob:r})}get options(){return this.#o}toRegExpSource(r){let n=r??!!this.#o.dot;if(this.#t===this&&this.#h(),!this.type){let L=this.isStart()&&this.isEnd(),j=this.#i.map(B=>{let[O,I,P,U]=typeof B=="string"?Et.#E(B,this.#e,L):B.toRegExpSource(r);return this.#e=this.#e||P,this.#s=this.#s||U,O}).join(""),z="";if(this.isStart()&&typeof this.#i[0]=="string"&&!(this.#i.length===1&&e.has(this.#i[0]))){let B=u,O=n&&B.has(j.charAt(0))||j.startsWith("\\.")&&B.has(j.charAt(2))||j.startsWith("\\.\\.")&&B.has(j.charAt(4)),I=!n&&!r&&B.has(j.charAt(0));z=O?f:I?l:""}let q="";return this.isEnd()&&this.#t.#c&&this.#a?.type==="!"&&(q="(?:$|\\/)"),[z+j+q,(0,g.unescape)(j),this.#e=!!this.#e,this.#s]}let m=this.type==="*"||this.type==="+",T=this.type==="!"?"(?:(?!(?:":"(?:",E=this.#d(n);if(this.isStart()&&this.isEnd()&&!E&&this.type!=="!"){let L=this.toString();return this.#i=[L],this.type=null,this.#e=void 0,[L,(0,g.unescape)(this.toString()),!1,!1]}let D=!m||r||n||!l?"":this.#d(!0);D===E&&(D=""),D&&(E=`(?:${E})(?:${D})*?`);let F="";if(this.type==="!"&&this.#u)F=(this.isStart()&&!n?l:"")+S;else{let L=this.type==="!"?"))"+(this.isStart()&&!n&&!r?l:"")+v+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&D?")":this.type==="*"&&D?")?":`)${this.type}`;F=T+E+L}return[F,(0,g.unescape)(E),this.#e=!!this.#e,this.#s]}#d(r){return this.#i.map(n=>{if(typeof n=="string")throw new Error("string type in extglob ast??");let[m,T,E,D]=n.toRegExpSource(r);return this.#s=this.#s||D,m}).filter(n=>!(this.isStart()&&this.isEnd())||!!n).join("|")}static#E(r,n,m=!1){let T=!1,E="",D=!1;for(let F=0;F<r.length;F++){let L=r.charAt(F);if(T){T=!1,E+=(h.has(L)?"\\":"")+L;continue}if(L==="\\"){F===r.length-1?E+="\\\\":T=!0;continue}if(L==="["){let[j,z,q,B]=(0,y.parseClass)(r,F);if(q){E+=j,D=D||z,F+=q-1,n=n||B;continue}}if(L==="*"){m&&r==="*"?E+=S:E+=v,n=!0;continue}if(L==="?"){E+=o,n=!0;continue}E+=a(L)}return[E,(0,g.unescape)(r),!!n,D]}};c.AST=b}),le=tt(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.escape=void 0;var y=s((g,{windowsPathsNoEscape:w=!1}={})=>w?g.replace(/[?*()[\]]/g,"[$&]"):g.replace(/[?*()[\]\\]/g,"\\$&"),"escape");c.escape=y}),$t=tt(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.unescape=c.escape=c.AST=c.Minimatch=c.match=c.makeRe=c.braceExpand=c.defaults=c.filter=c.GLOBSTAR=c.sep=c.minimatch=void 0;var y=Lr(),g=_r(),w=he(),d=le(),f=Kt(),l=s((R,A,W={})=>((0,g.assertValidPattern)(A),!W.nocomment&&A.charAt(0)==="#"?!1:new rt(A,W).match(R)),"minimatch");c.minimatch=l;var u=/^\*+([^+@!?\*\[\(]*)$/,e=s(R=>A=>!A.startsWith(".")&&A.endsWith(R),"starDotExtTest"),h=s(R=>A=>A.endsWith(R),"starDotExtTestDot"),a=s(R=>(R=R.toLowerCase(),A=>!A.startsWith(".")&&A.toLowerCase().endsWith(R)),"starDotExtTestNocase"),o=s(R=>(R=R.toLowerCase(),A=>A.toLowerCase().endsWith(R)),"starDotExtTestNocaseDot"),v=/^\*+\.\*+$/,S=s(R=>!R.startsWith(".")&&R.includes("."),"starDotStarTest"),b=s(R=>R!=="."&&R!==".."&&R.includes("."),"starDotStarTestDot"),i=/^\.\*+$/,r=s(R=>R!=="."&&R!==".."&&R.startsWith("."),"dotStarTest"),n=/^\*+$/,m=s(R=>R.length!==0&&!R.startsWith("."),"starTest"),T=s(R=>R.length!==0&&R!=="."&&R!=="..","starTestDot"),E=/^\?+([^+@!?\*\[\(]*)?$/,D=s(([R,A=""])=>{let W=z([R]);return A?(A=A.toLowerCase(),H=>W(H)&&H.toLowerCase().endsWith(A)):W},"qmarksTestNocase"),F=s(([R,A=""])=>{let W=q([R]);return A?(A=A.toLowerCase(),H=>W(H)&&H.toLowerCase().endsWith(A)):W},"qmarksTestNocaseDot"),L=s(([R,A=""])=>{let W=q([R]);return A?H=>W(H)&&H.endsWith(A):W},"qmarksTestDot"),j=s(([R,A=""])=>{let W=z([R]);return A?H=>W(H)&&H.endsWith(A):W},"qmarksTest"),z=s(([R])=>{let A=R.length;return W=>W.length===A&&!W.startsWith(".")},"qmarksTestNoExt"),q=s(([R])=>{let A=R.length;return W=>W.length===A&&W!=="."&&W!==".."},"qmarksTestNoExtDot"),B=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",O={win32:{sep:"\\"},posix:{sep:"/"}};c.sep=B==="win32"?O.win32.sep:O.posix.sep,c.minimatch.sep=c.sep,c.GLOBSTAR=Symbol("globstar **"),c.minimatch.GLOBSTAR=c.GLOBSTAR;var I="[^/]",P=I+"*?",U="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",M="(?:(?!(?:\\/|^)\\.).)*?",C=s((R,A={})=>W=>(0,c.minimatch)(W,R,A),"filter");c.filter=C,c.minimatch.filter=c.filter;var _=s((R,A={})=>Object.assign({},R,A),"ext"),G=s(R=>{if(!R||typeof R!="object"||!Object.keys(R).length)return c.minimatch;let A=c.minimatch;return Object.assign(s((W,H,et={})=>A(W,H,_(R,et)),"m"),{Minimatch:class extends A.Minimatch{static{s(this,"Minimatch")}constructor(W,H={}){super(W,_(R,H))}static defaults(W){return A.defaults(_(R,W)).Minimatch}},AST:class extends A.AST{static{s(this,"AST")}constructor(W,H,et={}){super(W,H,_(R,et))}static fromGlob(W,H={}){return A.AST.fromGlob(W,_(R,H))}},unescape:s((W,H={})=>A.unescape(W,_(R,H)),"unescape"),escape:s((W,H={})=>A.escape(W,_(R,H)),"escape"),filter:s((W,H={})=>A.filter(W,_(R,H)),"filter"),defaults:s(W=>A.defaults(_(R,W)),"defaults"),makeRe:s((W,H={})=>A.makeRe(W,_(R,H)),"makeRe"),braceExpand:s((W,H={})=>A.braceExpand(W,_(R,H)),"braceExpand"),match:s((W,H,et={})=>A.match(W,H,_(R,et)),"match"),sep:A.sep,GLOBSTAR:c.GLOBSTAR})},"defaults");c.defaults=G,c.minimatch.defaults=c.defaults;var Y=s((R,A={})=>((0,g.assertValidPattern)(R),A.nobrace||!/\{(?:(?!\{).)*\}/.test(R)?[R]:(0,y.expand)(R)),"braceExpand");c.braceExpand=Y,c.minimatch.braceExpand=c.braceExpand;var k=s((R,A={})=>new rt(R,A).makeRe(),"makeRe");c.makeRe=k,c.minimatch.makeRe=c.makeRe;var N=s((R,A,W={})=>{let H=new rt(A,W);return R=R.filter(et=>H.match(et)),H.options.nonull&&!R.length&&R.push(A),R},"match");c.match=N,c.minimatch.match=c.match;var x=/[?*]|[+@!]\(.*?\)|\[|\]/,V=s(R=>R.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),rt=class{static{s(this,"Minimatch")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(R,A={}){(0,g.assertValidPattern)(R),A=A||{},this.options=A,this.pattern=R,this.platform=A.platform||B,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!A.windowsPathsNoEscape||A.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!A.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!A.nonegate,this.comment=!1,this.empty=!1,this.partial=!!A.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=A.windowsNoMagicRoot!==void 0?A.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 R of this.set)for(let A of R)if(typeof A!="string")return!0;return!1}debug(...R){}make(){let R=this.pattern,A=this.options;if(!A.nocomment&&R.charAt(0)==="#"){this.comment=!0;return}if(!R){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],A.debug&&(this.debug=(...et)=>{}),this.debug(this.pattern,this.globSet);let W=this.globSet.map(et=>this.slashSplit(et));this.globParts=this.preprocess(W),this.debug(this.pattern,this.globParts);let H=this.globParts.map((et,t,p)=>{if(this.isWindows&&this.windowsNoMagicRoot){let $=et[0]===""&&et[1]===""&&(et[2]==="?"||!x.test(et[2]))&&!x.test(et[3]),X=/^[a-z]:/i.test(et[0]);if($)return[...et.slice(0,4),...et.slice(4).map(K=>this.parse(K))];if(X)return[et[0],...et.slice(1).map(K=>this.parse(K))]}return et.map($=>this.parse($))});if(this.debug(this.pattern,H),this.set=H.filter(et=>et.indexOf(!1)===-1),this.isWindows)for(let et=0;et<this.set.length;et++){let t=this.set[et];t[0]===""&&t[1]===""&&this.globParts[et][2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3])&&(t[2]="?")}this.debug(this.pattern,this.set)}preprocess(R){if(this.options.noglobstar)for(let W=0;W<R.length;W++)for(let H=0;H<R[W].length;H++)R[W][H]==="**"&&(R[W][H]="*");let{optimizationLevel:A=1}=this.options;return A>=2?(R=this.firstPhasePreProcess(R),R=this.secondPhasePreProcess(R)):A>=1?R=this.levelOneOptimize(R):R=this.adjascentGlobstarOptimize(R),R}adjascentGlobstarOptimize(R){return R.map(A=>{let W=-1;for(;(W=A.indexOf("**",W+1))!==-1;){let H=W;for(;A[H+1]==="**";)H++;H!==W&&A.splice(W,H-W)}return A})}levelOneOptimize(R){return R.map(A=>(A=A.reduce((W,H)=>{let et=W[W.length-1];return H==="**"&&et==="**"?W:H===".."&&et&&et!==".."&&et!=="."&&et!=="**"?(W.pop(),W):(W.push(H),W)},[]),A.length===0?[""]:A))}levelTwoFileOptimize(R){Array.isArray(R)||(R=this.slashSplit(R));let A=!1;do{if(A=!1,!this.preserveMultipleSlashes){for(let H=1;H<R.length-1;H++){let et=R[H];H===1&&et===""&&R[0]===""||(et==="."||et==="")&&(A=!0,R.splice(H,1),H--)}R[0]==="."&&R.length===2&&(R[1]==="."||R[1]==="")&&(A=!0,R.pop())}let W=0;for(;(W=R.indexOf("..",W+1))!==-1;){let H=R[W-1];H&&H!=="."&&H!==".."&&H!=="**"&&(A=!0,R.splice(W-1,2),W-=2)}}while(A);return R.length===0?[""]:R}firstPhasePreProcess(R){let A=!1;do{A=!1;for(let W of R){let H=-1;for(;(H=W.indexOf("**",H+1))!==-1;){let t=H;for(;W[t+1]==="**";)t++;t>H&&W.splice(H+1,t-H);let p=W[H+1],$=W[H+2],X=W[H+3];if(p!==".."||!$||$==="."||$===".."||!X||X==="."||X==="..")continue;A=!0,W.splice(H,1);let K=W.slice(0);K[H]="**",R.push(K),H--}if(!this.preserveMultipleSlashes){for(let t=1;t<W.length-1;t++){let p=W[t];t===1&&p===""&&W[0]===""||(p==="."||p==="")&&(A=!0,W.splice(t,1),t--)}W[0]==="."&&W.length===2&&(W[1]==="."||W[1]==="")&&(A=!0,W.pop())}let et=0;for(;(et=W.indexOf("..",et+1))!==-1;){let t=W[et-1];if(t&&t!=="."&&t!==".."&&t!=="**"){A=!0;let p=et===1&&W[et+1]==="**"?["."]:[];W.splice(et-1,2,...p),W.length===0&&W.push(""),et-=2}}}}while(A);return R}secondPhasePreProcess(R){for(let A=0;A<R.length-1;A++)for(let W=A+1;W<R.length;W++){let H=this.partsMatch(R[A],R[W],!this.preserveMultipleSlashes);if(H){R[A]=[],R[W]=H;break}}return R.filter(A=>A.length)}partsMatch(R,A,W=!1){let H=0,et=0,t=[],p="";for(;H<R.length&&et<A.length;)if(R[H]===A[et])t.push(p==="b"?A[et]:R[H]),H++,et++;else if(W&&R[H]==="**"&&A[et]===R[H+1])t.push(R[H]),H++;else if(W&&A[et]==="**"&&R[H]===A[et+1])t.push(A[et]),et++;else if(R[H]==="*"&&A[et]&&(this.options.dot||!A[et].startsWith("."))&&A[et]!=="**"){if(p==="b")return!1;p="a",t.push(R[H]),H++,et++}else if(A[et]==="*"&&R[H]&&(this.options.dot||!R[H].startsWith("."))&&R[H]!=="**"){if(p==="a")return!1;p="b",t.push(A[et]),H++,et++}else return!1;return R.length===A.length&&t}parseNegate(){if(this.nonegate)return;let R=this.pattern,A=!1,W=0;for(let H=0;H<R.length&&R.charAt(H)==="!";H++)A=!A,W++;W&&(this.pattern=R.slice(W)),this.negate=A}matchOne(R,A,W=!1){let H=this.options;if(this.isWindows){let ut=typeof R[0]=="string"&&/^[a-z]:$/i.test(R[0]),pt=!ut&&R[0]===""&&R[1]===""&&R[2]==="?"&&/^[a-z]:$/i.test(R[3]),mt=typeof A[0]=="string"&&/^[a-z]:$/i.test(A[0]),wt=!mt&&A[0]===""&&A[1]===""&&A[2]==="?"&&typeof A[3]=="string"&&/^[a-z]:$/i.test(A[3]),Z=pt?3:ut?0:void 0,J=wt?3:mt?0:void 0;if(typeof Z=="number"&&typeof J=="number"){let[Q,st]=[R[Z],A[J]];Q.toLowerCase()===st.toLowerCase()&&(A[J]=Q,J>Z?A=A.slice(J):Z>J&&(R=R.slice(Z)))}}let{optimizationLevel:et=1}=this.options;et>=2&&(R=this.levelTwoFileOptimize(R)),this.debug("matchOne",this,{file:R,pattern:A}),this.debug("matchOne",R.length,A.length);for(var t=0,p=0,$=R.length,X=A.length;t<$&&p<X;t++,p++){this.debug("matchOne loop");var K=A[p],ot=R[t];if(this.debug(A,K,ot),K===!1)return!1;if(K===c.GLOBSTAR){this.debug("GLOBSTAR",[A,K,ot]);var it=t,lt=p+1;if(lt===X){for(this.debug("** at the end");t<$;t++)if(R[t]==="."||R[t]===".."||!H.dot&&R[t].charAt(0)===".")return!1;return!0}for(;it<$;){var ft=R[it];if(this.debug(`
13
- globstar while`,R,it,A,lt,ft),this.matchOne(R.slice(it),A.slice(lt),W))return this.debug("globstar found match!",it,$,ft),!0;if(ft==="."||ft===".."||!H.dot&&ft.charAt(0)==="."){this.debug("dot detected!",R,it,A,lt);break}this.debug("globstar swallow a segment, and continue"),it++}return!!(W&&(this.debug(`
14
- >>> no match, partial?`,R,it,A,lt),it===$))}let ut;if(typeof K=="string"?(ut=ot===K,this.debug("string match",K,ot,ut)):(ut=K.test(ot),this.debug("pattern match",K,ot,ut)),!ut)return!1}if(t===$&&p===X)return!0;if(t===$)return W;if(p===X)return t===$-1&&R[t]==="";throw new Error("wtf?")}braceExpand(){return(0,c.braceExpand)(this.pattern,this.options)}parse(R){(0,g.assertValidPattern)(R);let A=this.options;if(R==="**")return c.GLOBSTAR;if(R==="")return"";let W,H=null;(W=R.match(n))?H=A.dot?T:m:(W=R.match(u))?H=(A.nocase?A.dot?o:a:A.dot?h:e)(W[1]):(W=R.match(E))?H=(A.nocase?A.dot?F:D:A.dot?L:j)(W):(W=R.match(v))?H=A.dot?b:S:(W=R.match(i))&&(H=r);let et=w.AST.fromGlob(R,this.options).toMMPattern();return H&&typeof et=="object"&&Reflect.defineProperty(et,"test",{value:H}),et}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let R=this.set;if(!R.length)return this.regexp=!1,this.regexp;let A=this.options,W=A.noglobstar?P:A.dot?U:M,H=new Set(A.nocase?["i"]:[]),et=R.map($=>{let X=$.map(K=>{if(K instanceof RegExp)for(let ot of K.flags.split(""))H.add(ot);return typeof K=="string"?V(K):K===c.GLOBSTAR?c.GLOBSTAR:K._src});return X.forEach((K,ot)=>{let it=X[ot+1],lt=X[ot-1];K!==c.GLOBSTAR||lt===c.GLOBSTAR||(lt===void 0?it!==void 0&&it!==c.GLOBSTAR?X[ot+1]="(?:\\/|"+W+"\\/)?"+it:X[ot]=W:it===void 0?X[ot-1]=lt+"(?:\\/|"+W+")?":it!==c.GLOBSTAR&&(X[ot-1]=lt+"(?:\\/|\\/"+W+"\\/)"+it,X[ot+1]=c.GLOBSTAR))}),X.filter(K=>K!==c.GLOBSTAR).join("/")}).join("|"),[t,p]=R.length>1?["(?:",")"]:["",""];et="^"+t+et+p+"$",this.negate&&(et="^(?!"+et+").+$");try{this.regexp=new RegExp(et,[...H].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(R){return this.preserveMultipleSlashes?R.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(R)?["",...R.split(/\/+/)]:R.split(/\/+/)}match(R,A=this.partial){if(this.debug("match",R,this.pattern),this.comment)return!1;if(this.empty)return R==="";if(R==="/"&&A)return!0;let W=this.options;this.isWindows&&(R=R.split("\\").join("/"));let H=this.slashSplit(R);this.debug(this.pattern,"split",H);let et=this.set;this.debug(this.pattern,"set",et);let t=H[H.length-1];if(!t)for(let p=H.length-2;!t&&p>=0;p--)t=H[p];for(let p=0;p<et.length;p++){let $=et[p],X=H;if(W.matchBase&&$.length===1&&(X=[t]),this.matchOne(X,$,A))return W.flipNegate?!0:!this.negate}return W.flipNegate?!1:this.negate}static defaults(R){return c.minimatch.defaults(R).Minimatch}};c.Minimatch=rt;var at=he();Object.defineProperty(c,"AST",{enumerable:!0,get:s(function(){return at.AST},"get")});var ht=le();Object.defineProperty(c,"escape",{enumerable:!0,get:s(function(){return ht.escape},"get")});var gt=Kt();Object.defineProperty(c,"unescape",{enumerable:!0,get:s(function(){return gt.unescape},"get")}),c.minimatch.AST=w.AST,c.minimatch.Minimatch=rt,c.minimatch.escape=d.escape,c.minimatch.unescape=f.unescape}),Dr=tt(c=>{"use strict";var y=c&&c.__createBinding||(Object.create?(function(t,p,$,X){X===void 0&&(X=$);var K=Object.getOwnPropertyDescriptor(p,$);(!K||("get"in K?!p.__esModule:K.writable||K.configurable))&&(K={enumerable:!0,get:s(function(){return p[$]},"get")}),Object.defineProperty(t,X,K)}):(function(t,p,$,X){X===void 0&&(X=$),t[X]=p[$]})),g=c&&c.__setModuleDefault||(Object.create?(function(t,p){Object.defineProperty(t,"default",{enumerable:!0,value:p})}):function(t,p){t.default=p}),w=c&&c.__importStar||function(t){if(t&&t.__esModule)return t;var p={};if(t!=null)for(var $ in t)$!=="default"&&Object.prototype.hasOwnProperty.call(t,$)&&y(p,t,$);return g(p,t),p};Object.defineProperty(c,"__esModule",{value:!0}),c.PathScurry=c.Path=c.PathScurryDarwin=c.PathScurryPosix=c.PathScurryWin32=c.PathScurryBase=c.PathPosix=c.PathWin32=c.PathBase=c.ChildrenCache=c.ResolveCache=void 0;var d=Oe(),f=ct("node:path"),l=ct("node:url"),u=ct("fs"),e=w(ct("node:fs")),h=u.realpathSync.native,a=ct("node:fs/promises"),o=Tt(),v={lstatSync:u.lstatSync,readdir:u.readdir,readdirSync:u.readdirSync,readlinkSync:u.readlinkSync,realpathSync:h,promises:{lstat:a.lstat,readdir:a.readdir,readlink:a.readlink,realpath:a.realpath}},S=s(t=>!t||t===v||t===e?v:{...v,...t,promises:{...v.promises,...t.promises||{}}},"fsFromOption"),b=/^\\\\\?\\([a-z]:)\\?$/i,i=s(t=>t.replace(/\//g,"\\").replace(b,"$1\\"),"uncToDrive"),r=/[\\\/]/,n=0,m=1,T=2,E=4,D=6,F=8,L=10,j=12,z=15,q=~z,B=16,O=32,I=64,P=128,U=256,M=512,C=I|P|M,_=1023,G=s(t=>t.isFile()?F:t.isDirectory()?E:t.isSymbolicLink()?L:t.isCharacterDevice()?T:t.isBlockDevice()?D:t.isSocket()?j:t.isFIFO()?m:n,"entToType"),Y=new Map,k=s(t=>{let p=Y.get(t);if(p)return p;let $=t.normalize("NFKD");return Y.set(t,$),$},"normalize"),N=new Map,x=s(t=>{let p=N.get(t);if(p)return p;let $=k(t.toLowerCase());return N.set(t,$),$},"normalizeNocase"),V=class extends d.LRUCache{static{s(this,"ResolveCache")}constructor(){super({max:256})}};c.ResolveCache=V;var rt=class extends d.LRUCache{static{s(this,"ChildrenCache")}constructor(t=16*1024){super({maxSize:t,sizeCalculation:s(p=>p.length+1,"sizeCalculation")})}};c.ChildrenCache=rt;var at=Symbol("PathScurry setAsCwd"),ht=class{static{s(this,"PathBase")}name;root;roots;parent;nocase;isCWD=!1;#t;#e;get dev(){return this.#e}#s;get mode(){return this.#s}#i;get nlink(){return this.#i}#a;get uid(){return this.#a}#b;get gid(){return this.#b}#w;get rdev(){return this.#w}#c;get blksize(){return this.#c}#o;get ino(){return this.#o}#p;get size(){return this.#p}#u;get blocks(){return this.#u}#h;get atimeMs(){return this.#h}#r;get mtimeMs(){return this.#r}#d;get ctimeMs(){return this.#d}#E;get birthtimeMs(){return this.#E}#v;get atime(){return this.#v}#m;get mtime(){return this.#m}#P;get ctime(){return this.#P}#g;get birthtime(){return this.#g}#x;#O;#y;#S;#$;#f;#n;#L;#I;#R;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(t,p=n,$,X,K,ot,it){this.name=t,this.#x=K?x(t):k(t),this.#n=p&_,this.nocase=K,this.roots=X,this.root=$||this,this.#L=ot,this.#y=it.fullpath,this.#$=it.relative,this.#f=it.relativePosix,this.parent=it.parent,this.parent?this.#t=this.parent.#t:this.#t=S(it.fs)}depth(){return this.#O!==void 0?this.#O:this.parent?this.#O=this.parent.depth()+1:this.#O=0}childrenCache(){return this.#L}resolve(t){if(!t)return this;let p=this.getRootString(t),$=t.substring(p.length).split(this.splitSep);return p?this.getRoot(p).#G($):this.#G($)}#G(t){let p=this;for(let $ of t)p=p.child($);return p}children(){let t=this.#L.get(this);if(t)return t;let p=Object.assign([],{provisional:0});return this.#L.set(this,p),this.#n&=~B,p}child(t,p){if(t===""||t===".")return this;if(t==="..")return this.parent||this;let $=this.children(),X=this.nocase?x(t):k(t);for(let lt of $)if(lt.#x===X)return lt;let K=this.parent?this.sep:"",ot=this.#y?this.#y+K+t:void 0,it=this.newChild(t,n,{...p,parent:this,fullpath:ot});return this.canReaddir()||(it.#n|=P),$.push(it),it}relative(){if(this.isCWD)return"";if(this.#$!==void 0)return this.#$;let t=this.name,p=this.parent;if(!p)return this.#$=this.name;let $=p.relative();return $+(!$||!p.parent?"":this.sep)+t}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#f!==void 0)return this.#f;let t=this.name,p=this.parent;if(!p)return this.#f=this.fullpathPosix();let $=p.relativePosix();return $+(!$||!p.parent?"":"/")+t}fullpath(){if(this.#y!==void 0)return this.#y;let t=this.name,p=this.parent;if(!p)return this.#y=this.name;let $=p.fullpath()+(p.parent?this.sep:"")+t;return this.#y=$}fullpathPosix(){if(this.#S!==void 0)return this.#S;if(this.sep==="/")return this.#S=this.fullpath();if(!this.parent){let X=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(X)?this.#S=`//?/${X}`:this.#S=X}let t=this.parent,p=t.fullpathPosix(),$=p+(!p||!t.parent?"":"/")+this.name;return this.#S=$}isUnknown(){return(this.#n&z)===n}isType(t){return this[`is${t}`]()}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.#n&z)===F}isDirectory(){return(this.#n&z)===E}isCharacterDevice(){return(this.#n&z)===T}isBlockDevice(){return(this.#n&z)===D}isFIFO(){return(this.#n&z)===m}isSocket(){return(this.#n&z)===j}isSymbolicLink(){return(this.#n&L)===L}lstatCached(){return this.#n&O?this:void 0}readlinkCached(){return this.#I}realpathCached(){return this.#R}readdirCached(){let t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#I)return!0;if(!this.parent)return!1;let t=this.#n&z;return!(t!==n&&t!==L||this.#n&U||this.#n&P)}calledReaddir(){return!!(this.#n&B)}isENOENT(){return!!(this.#n&P)}isNamed(t){return this.nocase?this.#x===x(t):this.#x===k(t)}async readlink(){let t=this.#I;if(t)return t;if(this.canReadlink()&&this.parent)try{let p=await this.#t.promises.readlink(this.fullpath()),$=(await this.parent.realpath())?.resolve(p);if($)return this.#I=$}catch(p){this.#B(p.code);return}}readlinkSync(){let t=this.#I;if(t)return t;if(this.canReadlink()&&this.parent)try{let p=this.#t.readlinkSync(this.fullpath()),$=this.parent.realpathSync()?.resolve(p);if($)return this.#I=$}catch(p){this.#B(p.code);return}}#T(t){this.#n|=B;for(let p=t.provisional;p<t.length;p++){let $=t[p];$&&$.#M()}}#M(){this.#n&P||(this.#n=(this.#n|P)&q,this.#_())}#_(){let t=this.children();t.provisional=0;for(let p of t)p.#M()}#F(){this.#n|=M,this.#N()}#N(){if(this.#n&I)return;let t=this.#n;(t&z)===E&&(t&=q),this.#n=t|I,this.#_()}#C(t=""){t==="ENOTDIR"||t==="EPERM"?this.#N():t==="ENOENT"?this.#M():this.children().provisional=0}#A(t=""){t==="ENOTDIR"?this.parent.#N():t==="ENOENT"&&this.#M()}#B(t=""){let p=this.#n;p|=U,t==="ENOENT"&&(p|=P),(t==="EINVAL"||t==="UNKNOWN")&&(p&=q),this.#n=p,t==="ENOTDIR"&&this.parent&&this.parent.#N()}#D(t,p){return this.#l(t,p)||this.#W(t,p)}#W(t,p){let $=G(t),X=this.newChild(t.name,$,{parent:this}),K=X.#n&z;return K!==E&&K!==L&&K!==n&&(X.#n|=I),p.unshift(X),p.provisional++,X}#l(t,p){for(let $=p.provisional;$<p.length;$++){let X=p[$];if((this.nocase?x(t.name):k(t.name))===X.#x)return this.#U(t,X,$,p)}}#U(t,p,$,X){let K=p.name;return p.#n=p.#n&q|G(t),K!==t.name&&(p.name=t.name),$!==X.provisional&&($===X.length-1?X.pop():X.splice($,1),X.unshift(p)),X.provisional++,p}async lstat(){if((this.#n&P)===0)try{return this.#j(await this.#t.promises.lstat(this.fullpath())),this}catch(t){this.#A(t.code)}}lstatSync(){if((this.#n&P)===0)try{return this.#j(this.#t.lstatSync(this.fullpath())),this}catch(t){this.#A(t.code)}}#j(t){let{atime:p,atimeMs:$,birthtime:X,birthtimeMs:K,blksize:ot,blocks:it,ctime:lt,ctimeMs:ft,dev:ut,gid:pt,ino:mt,mode:wt,mtime:Z,mtimeMs:J,nlink:Q,rdev:st,size:nt,uid:dt}=t;this.#v=p,this.#h=$,this.#g=X,this.#E=K,this.#c=ot,this.#u=it,this.#P=lt,this.#d=ft,this.#e=ut,this.#b=pt,this.#o=mt,this.#s=wt,this.#m=Z,this.#r=J,this.#i=Q,this.#w=st,this.#p=nt,this.#a=dt;let vt=G(t);this.#n=this.#n&q|vt|O,vt!==n&&vt!==E&&vt!==L&&(this.#n|=I)}#k=[];#z=!1;#V(t){this.#z=!1;let p=this.#k.slice();this.#k.length=0,p.forEach($=>$(null,t))}readdirCB(t,p=!1){if(!this.canReaddir()){p?t(null,[]):queueMicrotask(()=>t(null,[]));return}let $=this.children();if(this.calledReaddir()){let K=$.slice(0,$.provisional);p?t(null,K):queueMicrotask(()=>t(null,K));return}if(this.#k.push(t),this.#z)return;this.#z=!0;let X=this.fullpath();this.#t.readdir(X,{withFileTypes:!0},(K,ot)=>{if(K)this.#C(K.code),$.provisional=0;else{for(let it of ot)this.#D(it,$);this.#T($)}this.#V($.slice(0,$.provisional))})}#q;async readdir(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let p=this.fullpath();if(this.#q)await this.#q;else{let $=s(()=>{},"resolve");this.#q=new Promise(X=>$=X);try{for(let X of await this.#t.promises.readdir(p,{withFileTypes:!0}))this.#D(X,t);this.#T(t)}catch(X){this.#C(X.code),t.provisional=0}this.#q=void 0,$()}return t.slice(0,t.provisional)}readdirSync(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let p=this.fullpath();try{for(let $ of this.#t.readdirSync(p,{withFileTypes:!0}))this.#D($,t);this.#T(t)}catch($){this.#C($.code),t.provisional=0}return t.slice(0,t.provisional)}canReaddir(){if(this.#n&C)return!1;let t=z&this.#n;return t===n||t===E||t===L}shouldWalk(t,p){return(this.#n&E)===E&&!(this.#n&C)&&!t.has(this)&&(!p||p(this))}async realpath(){if(this.#R)return this.#R;if(!((M|U|P)&this.#n))try{let t=await this.#t.promises.realpath(this.fullpath());return this.#R=this.resolve(t)}catch{this.#F()}}realpathSync(){if(this.#R)return this.#R;if(!((M|U|P)&this.#n))try{let t=this.#t.realpathSync(this.fullpath());return this.#R=this.resolve(t)}catch{this.#F()}}[at](t){if(t===this)return;t.isCWD=!1,this.isCWD=!0;let p=new Set([]),$=[],X=this;for(;X&&X.parent;)p.add(X),X.#$=$.join(this.sep),X.#f=$.join("/"),X=X.parent,$.push("..");for(X=t;X&&X.parent&&!p.has(X);)X.#$=void 0,X.#f=void 0,X=X.parent}};c.PathBase=ht;var gt=class Ce extends ht{static{s(this,"PathWin32")}sep="\\";splitSep=r;constructor(p,$=n,X,K,ot,it,lt){super(p,$,X,K,ot,it,lt)}newChild(p,$=n,X={}){return new Ce(p,$,this.root,this.roots,this.nocase,this.childrenCache(),X)}getRootString(p){return f.win32.parse(p).root}getRoot(p){if(p=i(p.toUpperCase()),p===this.root.name)return this.root;for(let[$,X]of Object.entries(this.roots))if(this.sameRoot(p,$))return this.roots[p]=X;return this.roots[p]=new W(p,this).root}sameRoot(p,$=this.root.name){return p=p.toUpperCase().replace(/\//g,"\\").replace(b,"$1\\"),p===$}};c.PathWin32=gt;var R=class ke extends ht{static{s(this,"PathPosix")}splitSep="/";sep="/";constructor(p,$=n,X,K,ot,it,lt){super(p,$,X,K,ot,it,lt)}getRootString(p){return p.startsWith("/")?"/":""}getRoot(p){return this.root}newChild(p,$=n,X={}){return new ke(p,$,this.root,this.roots,this.nocase,this.childrenCache(),X)}};c.PathPosix=R;var A=class{static{s(this,"PathScurryBase")}root;rootPath;roots;cwd;#t;#e;#s;nocase;#i;constructor(t=process.cwd(),p,$,{nocase:X,childrenCacheSize:K=16*1024,fs:ot=v}={}){this.#i=S(ot),(t instanceof URL||t.startsWith("file://"))&&(t=(0,l.fileURLToPath)(t));let it=p.resolve(t);this.roots=Object.create(null),this.rootPath=this.parseRootPath(it),this.#t=new V,this.#e=new V,this.#s=new rt(K);let lt=it.substring(this.rootPath.length).split($);if(lt.length===1&&!lt[0]&&lt.pop(),X===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=X,this.root=this.newRoot(this.#i),this.roots[this.rootPath]=this.root;let ft=this.root,ut=lt.length-1,pt=p.sep,mt=this.rootPath,wt=!1;for(let Z of lt){let J=ut--;ft=ft.child(Z,{relative:new Array(J).fill("..").join(pt),relativePosix:new Array(J).fill("..").join("/"),fullpath:mt+=(wt?"":pt)+Z}),wt=!0}this.cwd=ft}depth(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.depth()}childrenCache(){return this.#s}resolve(...t){let p="";for(let K=t.length-1;K>=0;K--){let ot=t[K];if(!(!ot||ot===".")&&(p=p?`${ot}/${p}`:ot,this.isAbsolute(ot)))break}let $=this.#t.get(p);if($!==void 0)return $;let X=this.cwd.resolve(p).fullpath();return this.#t.set(p,X),X}resolvePosix(...t){let p="";for(let K=t.length-1;K>=0;K--){let ot=t[K];if(!(!ot||ot===".")&&(p=p?`${ot}/${p}`:ot,this.isAbsolute(ot)))break}let $=this.#e.get(p);if($!==void 0)return $;let X=this.cwd.resolve(p).fullpathPosix();return this.#e.set(p,X),X}relative(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.relative()}relativePosix(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.relativePosix()}basename(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.name}dirname(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),(t.parent||t).fullpath()}async readdir(t=this.cwd,p={withFileTypes:!0}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof ht||(p=t,t=this.cwd);let{withFileTypes:$}=p;if(t.canReaddir()){let X=await t.readdir();return $?X:X.map(K=>K.name)}else return[]}readdirSync(t=this.cwd,p={withFileTypes:!0}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof ht||(p=t,t=this.cwd);let{withFileTypes:$=!0}=p;return t.canReaddir()?$?t.readdirSync():t.readdirSync().map(X=>X.name):[]}async lstat(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.lstat()}lstatSync(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.lstatSync()}async readlink(t=this.cwd,{withFileTypes:p}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof ht||(p=t.withFileTypes,t=this.cwd);let $=await t.readlink();return p?$:$?.fullpath()}readlinkSync(t=this.cwd,{withFileTypes:p}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof ht||(p=t.withFileTypes,t=this.cwd);let $=t.readlinkSync();return p?$:$?.fullpath()}async realpath(t=this.cwd,{withFileTypes:p}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof ht||(p=t.withFileTypes,t=this.cwd);let $=await t.realpath();return p?$:$?.fullpath()}realpathSync(t=this.cwd,{withFileTypes:p}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof ht||(p=t.withFileTypes,t=this.cwd);let $=t.realpathSync();return p?$:$?.fullpath()}async walk(t=this.cwd,p={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof ht||(p=t,t=this.cwd);let{withFileTypes:$=!0,follow:X=!1,filter:K,walkFilter:ot}=p,it=[];(!K||K(t))&&it.push($?t:t.fullpath());let lt=new Set,ft=s((pt,mt)=>{lt.add(pt),pt.readdirCB((wt,Z)=>{if(wt)return mt(wt);let J=Z.length;if(!J)return mt();let Q=s(()=>{--J===0&&mt()},"next");for(let st of Z)(!K||K(st))&&it.push($?st:st.fullpath()),X&&st.isSymbolicLink()?st.realpath().then(nt=>nt?.isUnknown()?nt.lstat():nt).then(nt=>nt?.shouldWalk(lt,ot)?ft(nt,Q):Q()):st.shouldWalk(lt,ot)?ft(st,Q):Q()},!0)},"walk"),ut=t;return new Promise((pt,mt)=>{ft(ut,wt=>{if(wt)return mt(wt);pt(it)})})}walkSync(t=this.cwd,p={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof ht||(p=t,t=this.cwd);let{withFileTypes:$=!0,follow:X=!1,filter:K,walkFilter:ot}=p,it=[];(!K||K(t))&&it.push($?t:t.fullpath());let lt=new Set([t]);for(let ft of lt){let ut=ft.readdirSync();for(let pt of ut){(!K||K(pt))&&it.push($?pt:pt.fullpath());let mt=pt;if(pt.isSymbolicLink()){if(!(X&&(mt=pt.realpathSync())))continue;mt.isUnknown()&&mt.lstatSync()}mt.shouldWalk(lt,ot)&&lt.add(mt)}}return it}[Symbol.asyncIterator](){return this.iterate()}iterate(t=this.cwd,p={}){return typeof t=="string"?t=this.cwd.resolve(t):t instanceof ht||(p=t,t=this.cwd),this.stream(t,p)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(t=this.cwd,p={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof ht||(p=t,t=this.cwd);let{withFileTypes:$=!0,follow:X=!1,filter:K,walkFilter:ot}=p;(!K||K(t))&&(yield $?t:t.fullpath());let it=new Set([t]);for(let lt of it){let ft=lt.readdirSync();for(let ut of ft){(!K||K(ut))&&(yield $?ut:ut.fullpath());let pt=ut;if(ut.isSymbolicLink()){if(!(X&&(pt=ut.realpathSync())))continue;pt.isUnknown()&&pt.lstatSync()}pt.shouldWalk(it,ot)&&it.add(pt)}}}stream(t=this.cwd,p={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof ht||(p=t,t=this.cwd);let{withFileTypes:$=!0,follow:X=!1,filter:K,walkFilter:ot}=p,it=new o.Minipass({objectMode:!0});(!K||K(t))&&it.write($?t:t.fullpath());let lt=new Set,ft=[t],ut=0,pt=s(()=>{let mt=!1;for(;!mt;){let wt=ft.shift();if(!wt){ut===0&&it.end();return}ut++,lt.add(wt);let Z=s((Q,st,nt=!1)=>{if(Q)return it.emit("error",Q);if(X&&!nt){let dt=[];for(let vt of st)vt.isSymbolicLink()&&dt.push(vt.realpath().then(Pt=>Pt?.isUnknown()?Pt.lstat():Pt));if(dt.length){Promise.all(dt).then(()=>Z(null,st,!0));return}}for(let dt of st)dt&&(!K||K(dt))&&(it.write($?dt:dt.fullpath())||(mt=!0));ut--;for(let dt of st){let vt=dt.realpathCached()||dt;vt.shouldWalk(lt,ot)&&ft.push(vt)}mt&&!it.flowing?it.once("drain",pt):J||pt()},"onReaddir"),J=!0;wt.readdirCB(Z,!0),J=!1}},"process");return pt(),it}streamSync(t=this.cwd,p={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof ht||(p=t,t=this.cwd);let{withFileTypes:$=!0,follow:X=!1,filter:K,walkFilter:ot}=p,it=new o.Minipass({objectMode:!0}),lt=new Set;(!K||K(t))&&it.write($?t:t.fullpath());let ft=[t],ut=0,pt=s(()=>{let mt=!1;for(;!mt;){let wt=ft.shift();if(!wt){ut===0&&it.end();return}ut++,lt.add(wt);let Z=wt.readdirSync();for(let J of Z)(!K||K(J))&&(it.write($?J:J.fullpath())||(mt=!0));ut--;for(let J of Z){let Q=J;if(J.isSymbolicLink()){if(!(X&&(Q=J.realpathSync())))continue;Q.isUnknown()&&Q.lstatSync()}Q.shouldWalk(lt,ot)&&ft.push(Q)}}mt&&!it.flowing&&it.once("drain",pt)},"process");return pt(),it}chdir(t=this.cwd){let p=this.cwd;this.cwd=typeof t=="string"?this.cwd.resolve(t):t,this.cwd[at](p)}};c.PathScurryBase=A;var W=class extends A{static{s(this,"PathScurryWin32")}sep="\\";constructor(t=process.cwd(),p={}){let{nocase:$=!0}=p;super(t,f.win32,"\\",{...p,nocase:$}),this.nocase=$;for(let X=this.cwd;X;X=X.parent)X.nocase=this.nocase}parseRootPath(t){return f.win32.parse(t).root.toUpperCase()}newRoot(t){return new gt(this.rootPath,E,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")||t.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(t)}};c.PathScurryWin32=W;var H=class extends A{static{s(this,"PathScurryPosix")}sep="/";constructor(t=process.cwd(),p={}){let{nocase:$=!1}=p;super(t,f.posix,"/",{...p,nocase:$}),this.nocase=$}parseRootPath(t){return"/"}newRoot(t){return new R(this.rootPath,E,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}};c.PathScurryPosix=H;var et=class extends H{static{s(this,"PathScurryDarwin")}constructor(t=process.cwd(),p={}){let{nocase:$=!0}=p;super(t,{...p,nocase:$})}};c.PathScurryDarwin=et,c.Path=process.platform==="win32"?gt:R,c.PathScurry=process.platform==="win32"?W:process.platform==="darwin"?et:H}),Ae=tt(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Pattern=void 0;var y=$t(),g=s(f=>f.length>=1,"isPatternList"),w=s(f=>f.length>=1,"isGlobList"),d=class Le{static{s(this,"Pattern")}#t;#e;#s;length;#i;#a;#b;#w;#c;#o;#p=!0;constructor(l,u,e,h){if(!g(l))throw new TypeError("empty pattern list");if(!w(u))throw new TypeError("empty glob list");if(u.length!==l.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=l.length,e<0||e>=this.length)throw new TypeError("index out of range");if(this.#t=l,this.#e=u,this.#s=e,this.#i=h,this.#s===0){if(this.isUNC()){let[a,o,v,S,...b]=this.#t,[i,r,n,m,...T]=this.#e;b[0]===""&&(b.shift(),T.shift());let E=[a,o,v,S,""].join("/"),D=[i,r,n,m,""].join("/");this.#t=[E,...b],this.#e=[D,...T],this.length=this.#t.length}else if(this.isDrive()||this.isAbsolute()){let[a,...o]=this.#t,[v,...S]=this.#e;o[0]===""&&(o.shift(),S.shift());let b=a+"/",i=v+"/";this.#t=[b,...o],this.#e=[i,...S],this.length=this.#t.length}}}pattern(){return this.#t[this.#s]}isString(){return typeof this.#t[this.#s]=="string"}isGlobstar(){return this.#t[this.#s]===y.GLOBSTAR}isRegExp(){return this.#t[this.#s]instanceof RegExp}globString(){return this.#b=this.#b||(this.#s===0?this.isAbsolute()?this.#e[0]+this.#e.slice(1).join("/"):this.#e.join("/"):this.#e.slice(this.#s).join("/"))}hasMore(){return this.length>this.#s+1}rest(){return this.#a!==void 0?this.#a:this.hasMore()?(this.#a=new Le(this.#t,this.#e,this.#s+1,this.#i),this.#a.#o=this.#o,this.#a.#c=this.#c,this.#a.#w=this.#w,this.#a):this.#a=null}isUNC(){let l=this.#t;return this.#c!==void 0?this.#c:this.#c=this.#i==="win32"&&this.#s===0&&l[0]===""&&l[1]===""&&typeof l[2]=="string"&&!!l[2]&&typeof l[3]=="string"&&!!l[3]}isDrive(){let l=this.#t;return this.#w!==void 0?this.#w:this.#w=this.#i==="win32"&&this.#s===0&&this.length>1&&typeof l[0]=="string"&&/^[a-z]:$/i.test(l[0])}isAbsolute(){let l=this.#t;return this.#o!==void 0?this.#o:this.#o=l[0]===""&&l.length>1||this.isDrive()||this.isUNC()}root(){let l=this.#t[0];return typeof l=="string"&&this.isAbsolute()&&this.#s===0?l:""}checkFollowGlobstar(){return!(this.#s===0||!this.isGlobstar()||!this.#p)}markFollowGlobstar(){return this.#s===0||!this.isGlobstar()||!this.#p?!1:(this.#p=!1,!0)}};c.Pattern=d}),_e=tt(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Ignore=void 0;var y=$t(),g=Ae(),w=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",d=class{static{s(this,"Ignore")}relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(f,{nobrace:l,nocase:u,noext:e,noglobstar:h,platform:a=w}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=a,this.mmopts={dot:!0,nobrace:l,nocase:u,noext:e,noglobstar:h,optimizationLevel:2,platform:a,nocomment:!0,nonegate:!0};for(let o of f)this.add(o)}add(f){let l=new y.Minimatch(f,this.mmopts);for(let u=0;u<l.set.length;u++){let e=l.set[u],h=l.globParts[u];if(!e||!h)throw new Error("invalid pattern object");for(;e[0]==="."&&h[0]===".";)e.shift(),h.shift();let a=new g.Pattern(e,h,0,this.platform),o=new y.Minimatch(a.globString(),this.mmopts),v=h[h.length-1]==="**",S=a.isAbsolute();S?this.absolute.push(o):this.relative.push(o),v&&(S?this.absoluteChildren.push(o):this.relativeChildren.push(o))}}ignored(f){let l=f.fullpath(),u=`${l}/`,e=f.relative()||".",h=`${e}/`;for(let a of this.relative)if(a.match(e)||a.match(h))return!0;for(let a of this.absolute)if(a.match(l)||a.match(u))return!0;return!1}childrenIgnored(f){let l=f.fullpath()+"/",u=(f.relative()||".")+"/";for(let e of this.relativeChildren)if(e.match(u))return!0;for(let e of this.absoluteChildren)if(e.match(l))return!0;return!1}};c.Ignore=d}),jr=tt(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Processor=c.SubWalks=c.MatchRecord=c.HasWalkedCache=void 0;var y=$t(),g=class Ne{static{s(this,"HasWalkedCache")}store;constructor(u=new Map){this.store=u}copy(){return new Ne(new Map(this.store))}hasWalked(u,e){return this.store.get(u.fullpath())?.has(e.globString())}storeWalked(u,e){let h=u.fullpath(),a=this.store.get(h);a?a.add(e.globString()):this.store.set(h,new Set([e.globString()]))}};c.HasWalkedCache=g;var w=class{static{s(this,"MatchRecord")}store=new Map;add(l,u,e){let h=(u?2:0)|(e?1:0),a=this.store.get(l);this.store.set(l,a===void 0?h:h&a)}entries(){return[...this.store.entries()].map(([l,u])=>[l,!!(u&2),!!(u&1)])}};c.MatchRecord=w;var d=class{static{s(this,"SubWalks")}store=new Map;add(l,u){if(!l.canReaddir())return;let e=this.store.get(l);e?e.find(h=>h.globString()===u.globString())||e.push(u):this.store.set(l,[u])}get(l){let u=this.store.get(l);if(!u)throw new Error("attempting to walk unknown path");return u}entries(){return this.keys().map(l=>[l,this.store.get(l)])}keys(){return[...this.store.keys()].filter(l=>l.canReaddir())}};c.SubWalks=d;var f=class De{static{s(this,"Processor")}hasWalkedCache;matches=new w;subwalks=new d;patterns;follow;dot;opts;constructor(u,e){this.opts=u,this.follow=!!u.follow,this.dot=!!u.dot,this.hasWalkedCache=e?e.copy():new g}processPatterns(u,e){this.patterns=e;let h=e.map(a=>[u,a]);for(let[a,o]of h){this.hasWalkedCache.storeWalked(a,o);let v=o.root(),S=o.isAbsolute()&&this.opts.absolute!==!1;if(v){a=a.resolve(v==="/"&&this.opts.root!==void 0?this.opts.root:v);let n=o.rest();if(n)o=n;else{this.matches.add(a,!0,!1);continue}}if(a.isENOENT())continue;let b,i,r=!1;for(;typeof(b=o.pattern())=="string"&&(i=o.rest());)a=a.resolve(b),o=i,r=!0;if(b=o.pattern(),i=o.rest(),r){if(this.hasWalkedCache.hasWalked(a,o))continue;this.hasWalkedCache.storeWalked(a,o)}if(typeof b=="string"){let n=b===".."||b===""||b===".";this.matches.add(a.resolve(b),S,n);continue}else if(b===y.GLOBSTAR){(!a.isSymbolicLink()||this.follow||o.checkFollowGlobstar())&&this.subwalks.add(a,o);let n=i?.pattern(),m=i?.rest();if(!i||(n===""||n===".")&&!m)this.matches.add(a,S,n===""||n===".");else if(n===".."){let T=a.parent||a;m?this.hasWalkedCache.hasWalked(T,m)||this.subwalks.add(T,m):this.matches.add(T,S,!0)}}else b instanceof RegExp&&this.subwalks.add(a,o)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new De(this.opts,this.hasWalkedCache)}filterEntries(u,e){let h=this.subwalks.get(u),a=this.child();for(let o of e)for(let v of h){let S=v.isAbsolute(),b=v.pattern(),i=v.rest();b===y.GLOBSTAR?a.testGlobstar(o,v,i,S):b instanceof RegExp?a.testRegExp(o,b,i,S):a.testString(o,b,i,S)}return a}testGlobstar(u,e,h,a){if((this.dot||!u.name.startsWith("."))&&(e.hasMore()||this.matches.add(u,a,!1),u.canReaddir()&&(this.follow||!u.isSymbolicLink()?this.subwalks.add(u,e):u.isSymbolicLink()&&(h&&e.checkFollowGlobstar()?this.subwalks.add(u,h):e.markFollowGlobstar()&&this.subwalks.add(u,e)))),h){let o=h.pattern();if(typeof o=="string"&&o!==".."&&o!==""&&o!==".")this.testString(u,o,h.rest(),a);else if(o===".."){let v=u.parent||u;this.subwalks.add(v,h)}else o instanceof RegExp&&this.testRegExp(u,o,h.rest(),a)}}testRegExp(u,e,h,a){e.test(u.name)&&(h?this.subwalks.add(u,h):this.matches.add(u,a,!1))}testString(u,e,h,a){u.isNamed(e)&&(h?this.subwalks.add(u,h):this.matches.add(u,a,!1))}};c.Processor=f}),Mr=tt(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.GlobStream=c.GlobWalker=c.GlobUtil=void 0;var y=Tt(),g=_e(),w=jr(),d=s((e,h)=>typeof e=="string"?new g.Ignore([e],h):Array.isArray(e)?new g.Ignore(e,h):e,"makeIgnore"),f=class{static{s(this,"GlobUtil")}path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#t=[];#e;#s;signal;maxDepth;includeChildMatches;constructor(e,h,a){if(this.patterns=e,this.path=h,this.opts=a,this.#s=!a.posix&&a.platform==="win32"?"\\":"/",this.includeChildMatches=a.includeChildMatches!==!1,(a.ignore||!this.includeChildMatches)&&(this.#e=d(a.ignore??[],a),!this.includeChildMatches&&typeof this.#e.add!="function")){let o="cannot ignore child matches, ignore lacks add() method.";throw new Error(o)}this.maxDepth=a.maxDepth||1/0,a.signal&&(this.signal=a.signal,this.signal.addEventListener("abort",()=>{this.#t.length=0}))}#i(e){return this.seen.has(e)||!!this.#e?.ignored?.(e)}#a(e){return!!this.#e?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#t.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#t.push(e):e())}async matchCheck(e,h){if(h&&this.opts.nodir)return;let a;if(this.opts.realpath){if(a=e.realpathCached()||await e.realpath(),!a)return;e=a}let o=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&o?.isSymbolicLink()){let v=await o.realpath();v&&(v.isUnknown()||this.opts.stat)&&await v.lstat()}return this.matchCheckTest(o,h)}matchCheckTest(e,h){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!h||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#i(e)?e:void 0}matchCheckSync(e,h){if(h&&this.opts.nodir)return;let a;if(this.opts.realpath){if(a=e.realpathCached()||e.realpathSync(),!a)return;e=a}let o=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&o?.isSymbolicLink()){let v=o.realpathSync();v&&(v?.isUnknown()||this.opts.stat)&&v.lstatSync()}return this.matchCheckTest(o,h)}matchFinish(e,h){if(this.#i(e))return;if(!this.includeChildMatches&&this.#e?.add){let v=`${e.relativePosix()}/**`;this.#e.add(v)}let a=this.opts.absolute===void 0?h:this.opts.absolute;this.seen.add(e);let o=this.opts.mark&&e.isDirectory()?this.#s:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(a){let v=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(v+o)}else{let v=this.opts.posix?e.relativePosix():e.relative(),S=this.opts.dotRelative&&!v.startsWith(".."+this.#s)?"."+this.#s:"";this.matchEmit(v?S+v+o:"."+o)}}async match(e,h,a){let o=await this.matchCheck(e,a);o&&this.matchFinish(o,h)}matchSync(e,h,a){let o=this.matchCheckSync(e,a);o&&this.matchFinish(o,h)}walkCB(e,h,a){this.signal?.aborted&&a(),this.walkCB2(e,h,new w.Processor(this.opts),a)}walkCB2(e,h,a,o){if(this.#a(e))return o();if(this.signal?.aborted&&o(),this.paused){this.onResume(()=>this.walkCB2(e,h,a,o));return}a.processPatterns(e,h);let v=1,S=s(()=>{--v===0&&o()},"next");for(let[b,i,r]of a.matches.entries())this.#i(b)||(v++,this.match(b,i,r).then(()=>S()));for(let b of a.subwalkTargets()){if(this.maxDepth!==1/0&&b.depth()>=this.maxDepth)continue;v++;let i=b.readdirCached();b.calledReaddir()?this.walkCB3(b,i,a,S):b.readdirCB((r,n)=>this.walkCB3(b,n,a,S),!0)}S()}walkCB3(e,h,a,o){a=a.filterEntries(e,h);let v=1,S=s(()=>{--v===0&&o()},"next");for(let[b,i,r]of a.matches.entries())this.#i(b)||(v++,this.match(b,i,r).then(()=>S()));for(let[b,i]of a.subwalks.entries())v++,this.walkCB2(b,i,a.child(),S);S()}walkCBSync(e,h,a){this.signal?.aborted&&a(),this.walkCB2Sync(e,h,new w.Processor(this.opts),a)}walkCB2Sync(e,h,a,o){if(this.#a(e))return o();if(this.signal?.aborted&&o(),this.paused){this.onResume(()=>this.walkCB2Sync(e,h,a,o));return}a.processPatterns(e,h);let v=1,S=s(()=>{--v===0&&o()},"next");for(let[b,i,r]of a.matches.entries())this.#i(b)||this.matchSync(b,i,r);for(let b of a.subwalkTargets()){if(this.maxDepth!==1/0&&b.depth()>=this.maxDepth)continue;v++;let i=b.readdirSync();this.walkCB3Sync(b,i,a,S)}S()}walkCB3Sync(e,h,a,o){a=a.filterEntries(e,h);let v=1,S=s(()=>{--v===0&&o()},"next");for(let[b,i,r]of a.matches.entries())this.#i(b)||this.matchSync(b,i,r);for(let[b,i]of a.subwalks.entries())v++,this.walkCB2Sync(b,i,a.child(),S);S()}};c.GlobUtil=f;var l=class extends f{static{s(this,"GlobWalker")}matches=new Set;constructor(e,h,a){super(e,h,a)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,h)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?h(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};c.GlobWalker=l;var u=class extends f{static{s(this,"GlobStream")}results;constructor(e,h,a){super(e,h,a),this.results=new y.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};c.GlobStream=u}),ce=tt(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.Glob=void 0;var y=$t(),g=ct("node:url"),w=Dr(),d=Ae(),f=Mr(),l=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",u=class{static{s(this,"Glob")}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(e,h){if(!h)throw new TypeError("glob options required");if(this.withFileTypes=!!h.withFileTypes,this.signal=h.signal,this.follow=!!h.follow,this.dot=!!h.dot,this.dotRelative=!!h.dotRelative,this.nodir=!!h.nodir,this.mark=!!h.mark,h.cwd?(h.cwd instanceof URL||h.cwd.startsWith("file://"))&&(h.cwd=(0,g.fileURLToPath)(h.cwd)):this.cwd="",this.cwd=h.cwd||"",this.root=h.root,this.magicalBraces=!!h.magicalBraces,this.nobrace=!!h.nobrace,this.noext=!!h.noext,this.realpath=!!h.realpath,this.absolute=h.absolute,this.includeChildMatches=h.includeChildMatches!==!1,this.noglobstar=!!h.noglobstar,this.matchBase=!!h.matchBase,this.maxDepth=typeof h.maxDepth=="number"?h.maxDepth:1/0,this.stat=!!h.stat,this.ignore=h.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!h.windowsPathsNoEscape||h.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(i=>i.replace(/\\/g,"/"))),this.matchBase){if(h.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(i=>i.includes("/")?i:`./**/${i}`)}if(this.pattern=e,this.platform=h.platform||l,this.opts={...h,platform:this.platform},h.scurry){if(this.scurry=h.scurry,h.nocase!==void 0&&h.nocase!==h.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let i=h.platform==="win32"?w.PathScurryWin32:h.platform==="darwin"?w.PathScurryDarwin:h.platform?w.PathScurryPosix:w.PathScurry;this.scurry=new i(this.cwd,{nocase:h.nocase,fs:h.fs})}this.nocase=this.scurry.nocase;let a=this.platform==="darwin"||this.platform==="win32",o={...h,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:a,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},v=this.pattern.map(i=>new y.Minimatch(i,o)),[S,b]=v.reduce((i,r)=>(i[0].push(...r.set),i[1].push(...r.globParts),i),[[],[]]);this.patterns=S.map((i,r)=>{let n=b[r];if(!n)throw new Error("invalid pattern object");return new d.Pattern(i,n,0,this.platform)})}async walk(){return[...await new f.GlobWalker(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 f.GlobWalker(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 f.GlobStream(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 f.GlobStream(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()}};c.Glob=u}),ue=tt(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.hasMagic=void 0;var y=$t(),g=s((w,d={})=>{Array.isArray(w)||(w=[w]);for(let f of w)if(new y.Minimatch(f,d).hasMagic())return!0;return!1},"hasMagic");c.hasMagic=g}),Fr=tt(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),c.glob=c.sync=c.iterate=c.iterateSync=c.stream=c.streamSync=c.Ignore=c.hasMagic=c.Glob=c.unescape=c.escape=void 0,c.globStreamSync=e,c.globStream=h,c.globSync=a,c.globIterateSync=v,c.globIterate=S;var y=$t(),g=ce(),w=ue(),d=$t();Object.defineProperty(c,"escape",{enumerable:!0,get:s(function(){return d.escape},"get")}),Object.defineProperty(c,"unescape",{enumerable:!0,get:s(function(){return d.unescape},"get")});var f=ce();Object.defineProperty(c,"Glob",{enumerable:!0,get:s(function(){return f.Glob},"get")});var l=ue();Object.defineProperty(c,"hasMagic",{enumerable:!0,get:s(function(){return l.hasMagic},"get")});var u=_e();Object.defineProperty(c,"Ignore",{enumerable:!0,get:s(function(){return u.Ignore},"get")});function e(b,i={}){return new g.Glob(b,i).streamSync()}s(e,"globStreamSync");function h(b,i={}){return new g.Glob(b,i).stream()}s(h,"globStream");function a(b,i={}){return new g.Glob(b,i).walkSync()}s(a,"globSync");async function o(b,i={}){return new g.Glob(b,i).walk()}s(o,"glob_");function v(b,i={}){return new g.Glob(b,i).iterateSync()}s(v,"globIterateSync");function S(b,i={}){return new g.Glob(b,i).iterate()}s(S,"globIterate"),c.streamSync=e,c.stream=Object.assign(h,{sync:e}),c.iterateSync=v,c.iterate=Object.assign(S,{sync:v}),c.sync=Object.assign(a,{stream:e,iterate:v}),c.glob=Object.assign(o,{glob:o,globSync:a,sync:c.sync,globStream:h,stream:c.stream,globStreamSync:e,streamSync:c.streamSync,globIterate:S,iterate:c.iterate,globIterateSync:v,iterateSync:c.iterateSync,Glob:g.Glob,hasMagic:w.hasMagic,escape:y.escape,unescape:y.unescape}),c.glob.glob=c.glob}),je=tt((c,y)=>{"use strict";var{glob:g}=Fr(),w=ct("path"),d=s(f=>f.split(w.win32.sep).join(w.posix.sep),"globify");y.exports=(f,l)=>g(d(f),l)}),zr=tt((c,y)=>{"use strict";var g=ct("fs/promises"),w=Lt(),{hasContent:d}=Pe();y.exports=f;async function f(l,u){let e=await d(l,u);return e&&e.sri?(await g.rm(w(l,e.sri),{recursive:!0,force:!0}),!0):!1}s(f,"rm")}),Gr=tt((c,y)=>{"use strict";var{rm:g}=ct("fs/promises"),w=je(),d=Nt(),f=Vt(),l=ct("path"),u=zr();y.exports=e,y.exports.entry=e;function e(o,v,S){return f.clearMemoized(),d.delete(o,v,S)}s(e,"entry"),y.exports.content=h;function h(o,v){return f.clearMemoized(),u(o,v)}s(h,"content"),y.exports.all=a;async function a(o){f.clearMemoized();let v=await w(l.join(o,"*(content-*|index-*)"),{silent:!0,nosort:!0});return Promise.all(v.map(S=>g(S,{recursive:!0,force:!0})))}s(a,"all")}),Br=tt((c,y)=>{"use strict";var{mkdir:g,readFile:w,rm:d,stat:f,truncate:l,writeFile:u}=ct("fs/promises"),e=Lt(),h=se(),a=je(),o=Nt(),v=ct("path"),S=At(),b=s((B,O)=>Object.prototype.hasOwnProperty.call(B,O),"hasOwnProperty"),i=s(B=>({concurrency:20,log:{silly(){}},...B}),"verifyOpts");y.exports=r;async function r(B,O){O=i(O),O.log.silly("verify","verifying cache at",B);let I=[n,T,E,F,j,z,m],P={};for(let U of I){let M=U.name,C=new Date,_=await U(B,O);_&&Object.keys(_).forEach(Y=>{P[Y]=_[Y]});let G=new Date;P.runTime||(P.runTime={}),P.runTime[M]=G-C}return P.runTime.total=P.endTime-P.startTime,O.log.silly("verify","verification finished for",B,"in",`${P.runTime.total}ms`),P}s(r,"verify");async function n(){return{startTime:new Date}}s(n,"markStartTime");async function m(){return{endTime:new Date}}s(m,"markEndTime");async function T(B,O){return O.log.silly("verify","fixing cache permissions"),await g(B,{recursive:!0}),null}s(T,"fixPerms");async function E(B,O){O.log.silly("verify","garbage collecting content");let{default:I}=await Promise.resolve().then(()=>(Yt(),Ft)),P=o.lsStream(B),U=new Set;P.on("data",G=>{if(O.filter&&!O.filter(G))return;let Y=S.parse(G.integrity);for(let k in Y)U.add(Y[k].toString())}),await new Promise((G,Y)=>{P.on("end",G).on("error",Y)});let M=e.contentDir(B),C=await a(v.join(M,"**"),{follow:!1,nodir:!0,nosort:!0}),_={verifiedContent:0,reclaimedCount:0,reclaimedSize:0,badContentCount:0,keptSize:0};return await I(C,async G=>{let Y=G.split(/[/\\]/),k=Y.slice(Y.length-3).join(""),N=Y[Y.length-4],x=S.fromHex(k,N);if(U.has(x.toString())){let V=await D(G,x);V.valid?(_.verifiedContent++,_.keptSize+=V.size):(_.reclaimedCount++,_.badContentCount++,_.reclaimedSize+=V.size)}else{_.reclaimedCount++;let V=await f(G);await d(G,{recursive:!0,force:!0}),_.reclaimedSize+=V.size}return _},{concurrency:O.concurrency}),_}s(E,"garbageCollect");async function D(B,O){let I={};try{let{size:P}=await f(B);I.size=P,I.valid=!0,await S.checkStream(new h.ReadStream(B),O)}catch(P){if(P.code==="ENOENT")return{size:0,valid:!1};if(P.code!=="EINTEGRITY")throw P;await d(B,{recursive:!0,force:!0}),I.valid=!1}return I}s(D,"verifyContent");async function F(B,O){O.log.silly("verify","rebuilding index");let{default:I}=await Promise.resolve().then(()=>(Yt(),Ft)),P=await o.ls(B),U={missingContent:0,rejectedEntries:0,totalEntries:0},M={};for(let C in P)if(b(P,C)){let _=o.hashKey(C),G=P[C],Y=O.filter&&!O.filter(G);Y&&U.rejectedEntries++,M[_]&&!Y?M[_].push(G):M[_]&&Y||(Y?(M[_]=[],M[_]._path=o.bucketPath(B,C)):(M[_]=[G],M[_]._path=o.bucketPath(B,C)))}return await I(Object.keys(M),C=>L(B,M[C],U,O),{concurrency:O.concurrency}),U}s(F,"rebuildIndex");async function L(B,O,I){await l(O._path);for(let P of O){let U=e(B,P.integrity);try{await f(U),await o.insert(B,P.key,P.integrity,{metadata:P.metadata,size:P.size,time:P.time}),I.totalEntries++}catch(M){if(M.code==="ENOENT")I.rejectedEntries++,I.missingContent++;else throw M}}}s(L,"rebuildBucket");function j(B,O){return O.log.silly("verify","cleaning tmp directory"),d(v.join(B,"tmp"),{recursive:!0,force:!0})}s(j,"cleanTmp");async function z(B,O){let I=v.join(B,"_lastverified");return O.log.silly("verify","writing verifile to "+I),u(I,`${Date.now()}`)}s(z,"writeVerifile"),y.exports.lastRun=q;async function q(B){let O=await w(v.join(B,"_lastverified"),{encoding:"utf8"});return new Date(+O)}s(q,"lastRun")}),Wr=tt((c,y)=>{"use strict";var{withTempDir:g}=ie(),w=ct("fs/promises"),d=ct("path");y.exports.mkdir=f;async function f(u,e={}){let{tmpPrefix:h}=e,a=d.join(u,"tmp");await w.mkdir(a,{recursive:!0,owner:"inherit"});let o=`${a}${d.sep}${h||""}`;return w.mkdtemp(o,{owner:"inherit"})}s(f,"mktmpdir"),y.exports.withTmp=l;function l(u,e,h){return h||(h=e,e={}),g(d.join(u,"tmp"),h,e)}s(l,"withTmp")}),Ot=Ir(),Me=kr(),ne=Gr(),Fe=Br(),{clearMemoized:Ur}=Vt(),ze=Wr(),Ht=Nt();yt.exports.index={};yt.exports.index.compact=Ht.compact;yt.exports.index.insert=Ht.insert;yt.exports.ls=Ht.ls;yt.exports.ls.stream=Ht.lsStream;yt.exports.get=Ot;yt.exports.get.byDigest=Ot.byDigest;yt.exports.get.stream=Ot.stream;yt.exports.get.stream.byDigest=Ot.stream.byDigest;yt.exports.get.copy=Ot.copy;yt.exports.get.copy.byDigest=Ot.copy.byDigest;yt.exports.get.info=Ot.info;yt.exports.get.hasContent=Ot.hasContent;yt.exports.put=Me;yt.exports.put.stream=Me.stream;yt.exports.rm=ne.entry;yt.exports.rm.all=ne.all;yt.exports.rm.entry=yt.exports.rm;yt.exports.rm.content=ne.content;yt.exports.clearMemoized=Ur;yt.exports.tmp={};yt.exports.tmp.mkdir=ze.mkdir;yt.exports.tmp.withTmp=ze.withTmp;yt.exports.verify=Fe;yt.exports.verify.lastRun=Fe.lastRun;});var si=oe((Yi,Ue)=>{var ae=Object.defineProperty,qr=Object.getOwnPropertyDescriptor,Vr=Object.getOwnPropertyNames,Hr=Object.prototype.hasOwnProperty,Xr=(c,y)=>{for(var g in y)ae(c,g,{get:y[g],enumerable:!0})},Yr=(c,y,g,w)=>{if(y&&typeof y=="object"||typeof y=="function")for(let d of Vr(y))!Hr.call(c,d)&&d!==g&&ae(c,d,{get:()=>y[d],enumerable:!(w=qr(y,d))||w.enumerable});return c},Kr=c=>Yr(ae({},"__esModule",{value:!0}),c),Be={};Xr(Be,{clear:()=>Qr,get:()=>We,put:()=>ti,remove:()=>ei,safeGet:()=>ri,withTmp:()=>ii});Ue.exports=Kr(Be);var Dt=Ve();function jt(){return Ge()}function Jr(c){let g=c.replaceAll(/[.+?^${}()|[\]\\]/g,"\\$&").replaceAll("*",".*");return new RegExp(`^${g}`)}function Zr(c,y){return y.includes("*")?Jr(y).test(c):c.startsWith(y)}async function Qr(c){let y={__proto__:null,...c},g=jt(),w=(0,Dt.getSocketCacacheDir)();if(!y.prefix)try{await g.rm.all(w);return}catch(u){if(u?.code!=="ENOTEMPTY")throw u;return}if(!y.prefix.includes("*")){let u=0,e=g.ls.stream(w);for await(let h of e)if(h.key.startsWith(y.prefix))try{await g.rm.entry(w,h.key),u++}catch{}return u}let f=0,l=g.ls.stream(w);for await(let u of l)if(Zr(u.key,y.prefix))try{await g.rm.entry(w,u.key),f++}catch{}return f}async function We(c,y){if(c.includes("*"))throw new TypeError('Cache key cannot contain wildcards (*). Wildcards are only supported in clear({ prefix: "pattern*" }).');return await jt().get((0,Dt.getSocketCacacheDir)(),c,y)}async function ti(c,y,g){if(c.includes("*"))throw new TypeError('Cache key cannot contain wildcards (*). Wildcards are only supported in clear({ prefix: "pattern*" }).');return await jt().put((0,Dt.getSocketCacacheDir)(),c,y,g)}async function ei(c){if(c.includes("*"))throw new TypeError('Cache key cannot contain wildcards (*). Use clear({ prefix: "pattern*" }) to remove multiple entries.');return await jt().rm.entry((0,Dt.getSocketCacacheDir)(),c)}async function ri(c,y){try{return await We(c,y)}catch{return}}async function ii(c){return await jt().tmp.withTmp((0,Dt.getSocketCacacheDir)(),{},c)}});export{si as a};
15
- /*! Bundled license information:
16
-
17
- @socketsecurity/lib/dist/external/cacache.js:
18
- (*! Bundled license information:
19
-
20
- imurmurhash/imurmurhash.js:
21
- (**
22
- * @preserve
23
- * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
24
- *
25
- * @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a>
26
- * @see http://github.com/homebrewing/brauhaus-diff
27
- * @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
28
- * @see http://github.com/garycourt/murmurhash-js
29
- * @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
30
- * @see http://sites.google.com/site/murmurhash/
31
- *)
32
- *)
33
- */
@@ -1,4 +0,0 @@
1
- /* Socket SDK ESM - Built with esbuild */
2
- import{a as T,b as p}from"./chunk-UKECVIRQ.mjs";var ee=p((nn,F)=>{"use strict";var w=Object.defineProperty,Be=Object.getOwnPropertyDescriptor,He=Object.getOwnPropertyNames,je=Object.prototype.hasOwnProperty,ke=(e,t)=>{for(var o in t)w(e,o,{get:t[o],enumerable:!0})},We=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of He(t))!je.call(e,r)&&r!==o&&w(e,r,{get:()=>t[r],enumerable:!(n=Be(t,r))||n.enumerable});return e},Je=e=>We(w({},"__esModule",{value:!0}),e),Q={};ke(Q,{SOCKET_CACACHE_DIR:()=>qe});F.exports=Je(Q);var Ye=T("node:process"),qe=Ye.env.SOCKET_CACACHE_DIR});var N=p((_n,oe)=>{"use strict";var M=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,Ve=Object.getOwnPropertyNames,ze=Object.prototype.hasOwnProperty,Ze=(e,t)=>{for(var o in t)M(e,o,{get:t[o],enumerable:!0})},Qe=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Ve(t))!ze.call(e,r)&&r!==o&&M(e,r,{get:()=>t[r],enumerable:!(n=$e(t,r))||n.enumerable});return e},Fe=e=>Qe(M({},"__esModule",{value:!0}),e),te={};Ze(te,{DARWIN:()=>tt,S_IXGRP:()=>nt,S_IXOTH:()=>_t,S_IXUSR:()=>ot,WIN32:()=>rt});oe.exports=Fe(te);var et=T("node:os"),re=(0,et.platform)(),tt=re==="darwin",rt=re==="win32",ot=64,nt=8,_t=1});var ie=p((sn,_e)=>{"use strict";var x=Object.defineProperty,it=Object.getOwnPropertyDescriptor,st=Object.getOwnPropertyNames,at=Object.prototype.hasOwnProperty,ct=(e,t)=>{for(var o in t)x(e,o,{get:t[o],enumerable:!0})},Et=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of st(t))!at.call(e,r)&&r!==o&&x(e,r,{get:()=>t[r],enumerable:!(n=it(t,r))||n.enumerable});return e},St=e=>Et(x({},"__esModule",{value:!0}),e),ne={};ct(ne,{ANSI_BOLD:()=>ut,ANSI_DIM:()=>Ct,ANSI_ITALIC:()=>pt,ANSI_RESET:()=>lt,ANSI_STRIKETHROUGH:()=>ft,ANSI_UNDERLINE:()=>Ot,ansiRegex:()=>It,stripAnsi:()=>gt});_e.exports=St(ne);var lt="\x1B[0m",ut="\x1B[1m",Ct="\x1B[2m",pt="\x1B[3m",Ot="\x1B[4m",ft="\x1B[9m",At=/\x1b\[[0-9;]*m/g;function It(e){let{onlyFirst:t}=e??{},s="(?:\\u001B\\][\\s\\S]*?(?:\\u0007\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(s,t?void 0:"g")}function gt(e){return e.replace(At,"")}});var le=p((an,Se)=>{"use strict";var d=Object.defineProperty,Tt=Object.getOwnPropertyDescriptor,Pt=Object.getOwnPropertyNames,Rt=Object.prototype.hasOwnProperty,O=(e,t)=>d(e,"name",{value:t,configurable:!0}),ht=(e,t)=>{for(var o in t)d(e,o,{get:t[o],enumerable:!0})},Nt=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Pt(t))!Rt.call(e,r)&&r!==o&&d(e,r,{get:()=>t[r],enumerable:!(n=Tt(t,r))||n.enumerable});return e},dt=e=>Nt(d({},"__esModule",{value:!0}),e),se={};ht(se,{_isNarrowWidth:()=>Dt,eastAsianWidth:()=>Ee,eastAsianWidthType:()=>ce});Se.exports=dt(se);function U(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}O(U,"isAmbiguous");function D(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}O(D,"isFullWidth");function L(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}O(L,"isWide");function ae(e){return U(e)?"ambiguous":D(e)?"fullwidth":e===8361||e>=65377&&e<=65470||e>=65474&&e<=65479||e>=65482&&e<=65487||e>=65490&&e<=65495||e>=65498&&e<=65500||e>=65512&&e<=65518?"halfwidth":e>=32&&e<=126||e===162||e===163||e===165||e===166||e===172||e===175||e>=10214&&e<=10221||e===10629||e===10630?"narrow":L(e)?"wide":"neutral"}O(ae,"getCategory");function X(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}O(X,"validate");function ce(e){return X(e),ae(e)}O(ce,"eastAsianWidthType");function Ee(e,{ambiguousAsWide:t=!1}={}){return X(e),D(e)||L(e)||t&&U(e)?2:1}O(Ee,"eastAsianWidth");var Dt=O(e=>!(D(e)||L(e)),"_isNarrowWidth")});var fe=p((cn,Oe)=>{"use strict";var k=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,vt=Object.getOwnPropertyNames,mt=Object.prototype.hasOwnProperty,yt=(e,t)=>{for(var o in t)k(e,o,{get:t[o],enumerable:!0})},bt=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of vt(t))!mt.call(e,r)&&r!==o&&k(e,r,{get:()=>t[r],enumerable:!(n=Lt(t,r))||n.enumerable});return e},Gt=e=>bt(k({},"__esModule",{value:!0}),e),Ce={};yt(Ce,{ansiRegex:()=>v.ansiRegex,applyLinePrefix:()=>Kt,camelToKebab:()=>wt,centerText:()=>Yt,fromCharCode:()=>pe,indentString:()=>Mt,isBlankString:()=>xt,isNonEmptyString:()=>Ut,repeatString:()=>Jt,search:()=>Xt,stringWidth:()=>jt,stripAnsi:()=>v.stripAnsi,stripBom:()=>Bt,toKebabCase:()=>kt,trimNewlines:()=>Wt});Oe.exports=Gt(Ce);var v=ie(),ue=le(),pe=String.fromCharCode;function Kt(e,t){let{prefix:o=""}={__proto__:null,...t};return o.length?`${o}${e.includes(`
3
- `)?e.replace(/\n/g,`
4
- ${o}`):e}`:e}function wt(e){let{length:t}=e;if(!t)return"";let o="",n=0;for(;n<t;){let r=e[n];if(!r)break;let s=r.charCodeAt(0);if(s>=65&&s<=90)for(o.length>0&&(o+="-");n<t;){let _=e[n];if(!_)break;let a=_.charCodeAt(0);if(a>=65&&a<=90)o+=pe(a+32),n+=1;else break}else o+=r,n+=1}return o}function Mt(e,t){let{count:o=1}={__proto__:null,...t};return e.replace(/^(?!\s*$)/gm," ".repeat(o))}function xt(e){return typeof e=="string"&&(!e.length||/^\s+$/.test(e))}function Ut(e){return typeof e=="string"&&e.length>0}function Xt(e,t,o){let{fromIndex:n=0}={__proto__:null,...o},{length:r}=e;if(n>=r)return-1;if(n===0)return e.search(t);let s=n<0?Math.max(r+n,0):n,E=e.slice(s).search(t);return E===-1?-1:E+s}function Bt(e){return e.length>0&&e.charCodeAt(0)===65279?e.slice(1):e}var Ht=new Intl.Segmenter,B,H,j;try{B=new RegExp("^(?:\\p{Default_Ignorable_Code_Point}|\\p{Control}|\\p{Mark}|\\p{Surrogate})+$","v"),H=new RegExp("^[\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Mark}\\p{Surrogate}]+","v"),j=new RegExp("^\\p{RGI_Emoji}$","v")}catch{B=new RegExp("^(?:\\p{Default_Ignorable_Code_Point}|\\p{Control}|\\p{Mark})+$","u"),H=/^[\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Mark}]+/u,j=new RegExp("^\\p{Extended_Pictographic}$","u")}function jt(e){if(typeof e!="string"||!e.length)return 0;let t=(0,v.stripAnsi)(e);if(!t.length)return 0;let o=0,n={ambiguousAsWide:!1};for(let{segment:r}of Ht.segment(t)){if(B.test(r))continue;if(j.test(r)){o+=2;continue}let E=r.replace(H,"").codePointAt(0);if(E!==void 0&&(o+=(0,ue.eastAsianWidth)(E,n),r.length>1))for(let _ of r.slice(1)){let a=_.charCodeAt(0);if(a>=65280&&a<=65519){let l=_.codePointAt(0);l!==void 0&&(o+=(0,ue.eastAsianWidth)(l,n))}}}return o}function kt(e){return e.length?e.replace(/([a-z]+[0-9]*)([A-Z])/g,"$1-$2").replace(/_/g,"-").toLowerCase():e}function Wt(e){let{length:t}=e;if(t===0)return e;let o=e.charCodeAt(0),n=o!==13&&o!==10;if(t===1)return n?e:"";let r=e.charCodeAt(t-1);if(n&&(r!==13&&r!==10))return e;let E=0,_=t;for(;E<_;){let a=e.charCodeAt(E);if(a!==13&&a!==10)break;E+=1}for(;_>E;){let a=e.charCodeAt(_-1);if(a!==13&&a!==10)break;_-=1}return E===0&&_===t?e:e.slice(E,_)}function Jt(e,t){return t<=0?"":e.repeat(t)}function Yt(e,t){let o=(0,v.stripAnsi)(e).length;if(o>=t)return e;let n=t-o,r=Math.floor(n/2),s=n-r;return" ".repeat(r)+e+" ".repeat(s)}});var he=p((En,Re)=>{"use strict";var q=Object.defineProperty,qt=Object.getOwnPropertyDescriptor,$t=Object.getOwnPropertyNames,Vt=Object.prototype.hasOwnProperty,zt=(e,t)=>{for(var o in t)q(e,o,{get:t[o],enumerable:!0})},Zt=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of $t(t))!Vt.call(e,r)&&r!==o&&q(e,r,{get:()=>t[r],enumerable:!(n=qt(t,r))||n.enumerable});return e},Qt=e=>Zt(q({},"__esModule",{value:!0}),e),ge={};zt(ge,{isAbsolute:()=>m,isNodeModules:()=>cr,isPath:()=>Er,isRelative:()=>Sr,normalizePath:()=>$,pathLikeToString:()=>f,relativeResolve:()=>pr,splitPath:()=>lr,trimLeadingDotSlash:()=>ur});Re.exports=Qt(ge);var Ft=N(),Ae=fe(),Te=92,er=58,Pe=47,tr=97,rr=122,or=65,nr=90,Y=/[/\\]/,_r=/(?:^|[/\\])node_modules(?:[/\\]|$)/;function R(e){return e===Pe||e===Te}function ir(e){return e>=or&&e<=nr||e>=tr&&e<=rr}var W;function sr(){return W===void 0&&(W=T("node:buffer")),W}var J;function ar(){return J===void 0&&(J=T("node:url")),J}function cr(e){let t=f(e);return _r.test(t)}function m(e){let t=f(e),{length:o}=t;if(o===0)return!1;let n=t.charCodeAt(0);return!!(n===Pe||n===Te||Ft.WIN32&&o>2&&ir(n)&&t.charCodeAt(1)===er&&R(t.charCodeAt(2)))}function Er(e){let t=f(e);if(typeof t!="string"||t.length===0||/^[a-z][a-z0-9+.-]+:/i.test(t))return!1;if(t==="."||t===".."||m(t))return!0;if(t.includes("/")||t.includes("\\")){if(t.startsWith("@")&&!t.startsWith("@/")){let o=t.split("/");if(o.length<=2&&!o[1]?.includes("\\"))return!1}return!0}return!1}function Sr(e){let t=f(e);return typeof t!="string"?!1:t.length===0?!0:!m(t)}function $(e){let t=f(e),{length:o}=t;if(o===0)return".";if(o<2)return o===1&&t.charCodeAt(0)===92?"/":t;let n=0,r=0,s="";if(o>4&&t.charCodeAt(3)===92){let c=t.charCodeAt(2);(c===63||c===46)&&t.charCodeAt(0)===92&&t.charCodeAt(1)===92&&(r=2,s="//")}if(r===0)if(o>2&&(t.charCodeAt(0)===92&&t.charCodeAt(1)===92&&t.charCodeAt(2)!==92||t.charCodeAt(0)===47&&t.charCodeAt(1)===47&&t.charCodeAt(2)!==47)){let c=-1,S=!1,i=2;for(;i<o&&(t.charCodeAt(i)===47||t.charCodeAt(i)===92);)i++;for(;i<o;){let g=t.charCodeAt(i);if(g===47||g===92){c=i;break}i++}if(c>2){for(i=c;i<o&&(t.charCodeAt(i)===47||t.charCodeAt(i)===92);)i++;i<o&&(S=!0)}if(c>2&&S)r=2,s="//";else{for(n=t.charCodeAt(r);n===47||n===92;)r+=1,n=t.charCodeAt(r);r&&(s="/")}}else{for(n=t.charCodeAt(r);n===47||n===92;)r+=1,n=t.charCodeAt(r);r&&(s="/")}let E=(0,Ae.search)(t,Y,{fromIndex:r});if(E===-1){let c=t.slice(r);return c==="."||c.length===0?s||".":c===".."?s?s.slice(0,-1)||"/":"..":s+c}let _="",a=0,l=0;for(;E!==-1;){let c=t.slice(r,E);if(c.length>0&&c!==".")if(c==="..")if(a>0){let S=_.lastIndexOf("/");if(S===-1)_="",a=0,l>0&&!s&&(_="..",l=1);else{let i=S+1;_.slice(i)===".."?(_=`${_}/${c}`,l+=1):(_=_.slice(0,S),a-=1)}}else s||(_=_+(_.length===0?"":"/")+c,l+=1);else _=_+(_.length===0?"":"/")+c,a+=1;for(r=E+1,n=t.charCodeAt(r);n===47||n===92;)r+=1,n=t.charCodeAt(r);E=(0,Ae.search)(t,Y,{fromIndex:r})}let u=t.slice(r);if(u.length>0&&u!==".")if(u==="..")if(a>0){let c=_.lastIndexOf("/");if(c===-1)_="",a=0,l>0&&!s&&(_="..",l=1);else{let S=c+1;_.slice(S)===".."?(_=`${_}/${u}`,l+=1):(_=_.slice(0,c),a-=1)}}else s||(_=_+(_.length===0?"":"/")+u,l+=1);else _=_+(_.length===0?"":"/")+u,a+=1;return _.length===0?s||".":s+_}function f(e){if(e==null)return"";if(typeof e=="string")return e;let{Buffer:t}=sr();if(t.isBuffer(e))return e.toString("utf8");let o=ar();if(e instanceof URL)try{return o.fileURLToPath(e)}catch{let n=e.pathname,r=decodeURIComponent(n);if(N().WIN32&&r.startsWith("/")){let E=r.charCodeAt(1)|32;if(!(r.length>=3&&E>=97&&E<=122&&r.charAt(2)===":"))return r}return r}return String(e)}function lr(e){let t=f(e);return t===""?[]:t.split(Y)}function ur(e){let t=f(e);return t.startsWith("./")||t.startsWith(".\\")?t.slice(2):t}function Ie(...e){let t="",o=!1;for(let n=e.length-1;n>=0&&!o;n-=1){let r=e[n];typeof r!="string"||r.length===0||(t=r+(t.length===0?"":`/${t}`),o=m(r))}return o||(t=T("node:process").cwd()+(t.length===0?"":`/${t}`)),$(t)}function Cr(e,t){if(e===t)return"";let o=Ie(e),n=Ie(t);if(o===n)return"";if(N().WIN32){let C=o.toLowerCase(),K=n.toLowerCase();if(C===K)return""}let s=1,E=o.length,_=E-s,a=1,u=n.length-a,c=_<u?_:u,S=-1,i=0;for(;i<c;i+=1){let C=o.charCodeAt(s+i),K=n.charCodeAt(a+i);if(C!==K)break;R(C)&&(S=i)}if(i===c){if(u>c){let C=n.charCodeAt(a+i);if(R(C))return n.slice(a+i+1);if(i===0)return n.slice(a+i)}else if(_>c){let C=o.charCodeAt(s+i);R(C)?S=i:i===0&&(S=0)}}let g="";for(i=s+S+1;i<=E;i+=1){let C=o.charCodeAt(i);(i===E||R(C))&&(g+=g.length===0?"..":"/..")}return g+n.slice(a+S)}function pr(e,t){let o=Cr(e,t);return o===""?"":$(o)}});var y=p((Sn,de)=>{"use strict";var V=Object.defineProperty,Or=Object.getOwnPropertyDescriptor,fr=Object.getOwnPropertyNames,Ar=Object.prototype.hasOwnProperty,Ir=(e,t)=>{for(var o in t)V(e,o,{get:t[o],enumerable:!0})},gr=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of fr(t))!Ar.call(e,r)&&r!==o&&V(e,r,{get:()=>t[r],enumerable:!(n=Or(t,r))||n.enumerable});return e},Tr=e=>gr(V({},"__esModule",{value:!0}),e),Ne={};Ir(Ne,{CACHE_DIR:()=>Ur,CACHE_TTL_DIR:()=>Xr,CHANGELOG_MD:()=>Lr,DOT_GITHUB:()=>Mr,DOT_GIT_DIR:()=>wr,DOT_PACKAGE_LOCK_JSON:()=>Gr,DOT_SOCKET_DIR:()=>xr,ESLINT_CONFIG_JS:()=>yr,EXTENSIONS:()=>ao,EXTENSIONS_JSON:()=>mr,EXT_CJS:()=>jr,EXT_CMD:()=>kr,EXT_CTS:()=>Wr,EXT_DTS:()=>Jr,EXT_JS:()=>Yr,EXT_JSON:()=>qr,EXT_LOCK:()=>$r,EXT_LOCKB:()=>Vr,EXT_MD:()=>zr,EXT_MJS:()=>Zr,EXT_MTS:()=>Qr,EXT_PS1:()=>Fr,EXT_YAML:()=>eo,EXT_YML:()=>to,GITIGNORE:()=>br,LICENSE:()=>hr,LICENSE_GLOB:()=>ro,LICENSE_GLOB_RECURSIVE:()=>oo,LICENSE_MD:()=>Nr,LICENSE_ORIGINAL:()=>dr,LICENSE_ORIGINAL_GLOB:()=>no,LICENSE_ORIGINAL_GLOB_RECURSIVE:()=>_o,MANIFEST_JSON:()=>vr,NODE_MODULES:()=>Kr,NODE_MODULES_GLOB_RECURSIVE:()=>Br,PACKAGE_JSON:()=>Pr,README_GLOB:()=>io,README_GLOB_RECURSIVE:()=>so,README_MD:()=>Dr,ROLLUP_EXTERNAL_SUFFIX:()=>co,SLASH_NODE_MODULES_SLASH:()=>Hr,TSCONFIG_JSON:()=>Rr});de.exports=Tr(Ne);var Pr="package.json",Rr="tsconfig.json",hr="LICENSE",Nr="LICENSE.md",dr="LICENSE.original",Dr="README.md",Lr="CHANGELOG.md",vr="manifest.json",mr="extensions.json",yr="eslint.config.js",br=".gitignore",Gr=".package-lock.json",Kr="node_modules",wr=".git",Mr=".github",xr=".socket",Ur="cache",Xr="ttl",Br="**/node_modules",Hr="/node_modules/",jr=".cjs",kr=".cmd",Wr=".cts",Jr=".d.ts",Yr=".js",qr=".json",$r=".lock",Vr=".lockb",zr=".md",Zr=".mjs",Qr=".mts",Fr=".ps1",eo=".yaml",to=".yml",ro="LICEN[CS]E{[.-]*,}",oo="**/LICEN[CS]E{[.-]*,}",no="*.original{.*,}",_o="**/*.original{.*,}",io="README{.*,}",so="**/README{.*,}",ao="extensions",co="__rollup_external"});var A=p((ln,ve)=>{"use strict";var z=Object.defineProperty,Eo=Object.getOwnPropertyDescriptor,So=Object.getOwnPropertyNames,lo=Object.prototype.hasOwnProperty,uo=(e,t)=>{for(var o in t)z(e,o,{get:t[o],enumerable:!0})},Co=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of So(t))!lo.call(e,r)&&r!==o&&z(e,r,{get:()=>t[r],enumerable:!(n=Eo(t,r))||n.enumerable});return e},po=e=>Co(z({},"__esModule",{value:!0}),e),De={};uo(De,{CACHE_SOCKET_API_DIR:()=>bo,REGISTRY:()=>Go,REGISTRY_SCOPE_DELIMITER:()=>Ko,SOCKET_API_BASE_URL:()=>Oo,SOCKET_APP_PREFIX:()=>mo,SOCKET_CLI_APP_NAME:()=>No,SOCKET_DLX_APP_NAME:()=>Do,SOCKET_FIREWALL_APP_NAME:()=>Lo,SOCKET_GITHUB_ORG:()=>To,SOCKET_IPC_HANDSHAKE:()=>yo,SOCKET_OVERRIDE_SCOPE:()=>go,SOCKET_PUBLIC_API_KEY:()=>Le,SOCKET_PUBLIC_API_TOKEN:()=>fo,SOCKET_REGISTRY_APP_NAME:()=>vo,SOCKET_REGISTRY_NPM_ORG:()=>ho,SOCKET_REGISTRY_PACKAGE_NAME:()=>Ro,SOCKET_REGISTRY_REPO_NAME:()=>Po,SOCKET_REGISTRY_SCOPE:()=>Ao,SOCKET_SECURITY_SCOPE:()=>Io});ve.exports=po(De);var Oo="https://api.socket.dev/v0",Le="sktsec_t_--RAN5U4ivauy4w37-6aoKyYPDt5ZbaT5JBVMqiwKo_api",fo=Le,Ao="@socketregistry",Io="@socketsecurity",go="@socketoverride",To="SocketDev",Po="socket-registry",Ro="@socketsecurity/registry",ho="socketregistry",No="socket",Do="dlx",Lo="sfw",vo="registry",mo="_",yo="SOCKET_IPC_HANDSHAKE",bo="socket-api",Go="registry",Ko="__"});var be=p((un,ye)=>{"use strict";var Z=Object.defineProperty,wo=Object.getOwnPropertyDescriptor,Mo=Object.getOwnPropertyNames,xo=Object.prototype.hasOwnProperty,Uo=(e,t)=>{for(var o in t)Z(e,o,{get:t[o],enumerable:!0})},Xo=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Mo(t))!xo.call(e,r)&&r!==o&&Z(e,r,{get:()=>t[r],enumerable:!(n=wo(t,r))||n.enumerable});return e},Bo=e=>Xo(Z({},"__esModule",{value:!0}),e),me={};Uo(me,{CACHE_GITHUB_DIR:()=>jo,GITHUB_API_BASE_URL:()=>Ho});ye.exports=Bo(me);var Ho="https://api.github.com",jo="github"});var on=p((Cn,Xe)=>{var ko=Object.create,b=Object.defineProperty,Wo=Object.getOwnPropertyDescriptor,Jo=Object.getOwnPropertyNames,Yo=Object.getPrototypeOf,qo=Object.prototype.hasOwnProperty,$o=(e,t)=>{for(var o in t)b(e,o,{get:t[o],enumerable:!0})},Ke=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Jo(t))!qo.call(e,r)&&r!==o&&b(e,r,{get:()=>t[r],enumerable:!(n=Wo(t,r))||n.enumerable});return e},we=(e,t,o)=>(o=e!=null?ko(Yo(e)):{},Ke(t||!e||!e.__esModule?b(o,"default",{value:e,enumerable:!0}):o,e)),Vo=e=>Ke(b({},"__esModule",{value:!0}),e),Me={};$o(Me,{getSocketAppCacheDir:()=>xe,getSocketAppCacheTtlDir:()=>Ue,getSocketAppDir:()=>G,getSocketCacacheDir:()=>Qo,getSocketCliDir:()=>en,getSocketDlxDir:()=>Fo,getSocketHomePath:()=>Zo,getSocketRegistryDir:()=>tn,getSocketRegistryGithubCacheDir:()=>rn,getSocketUserDir:()=>h});Xe.exports=Vo(Me);var zo=we(T("node:os")),P=we(T("node:path")),Ge=ee(),I=he();function Zo(){return h()}function h(){return(0,I.normalizePath)(P.join(zo.homedir(),y().DOT_SOCKET_DIR))}function G(e){return(0,I.normalizePath)(P.join(h(),`${A().SOCKET_APP_PREFIX}${e}`))}function Qo(){return Ge.SOCKET_CACACHE_DIR?(0,I.normalizePath)(Ge.SOCKET_CACACHE_DIR):(0,I.normalizePath)(P.join(h(),`${A().SOCKET_APP_PREFIX}cacache`))}function Fo(){return(0,I.normalizePath)(P.join(h(),`${A().SOCKET_APP_PREFIX}${A().SOCKET_DLX_APP_NAME}`))}function xe(e){return(0,I.normalizePath)(P.join(G(e),y().CACHE_DIR))}function Ue(e){return(0,I.normalizePath)(P.join(xe(e),y().CACHE_TTL_DIR))}function en(){return G(A().SOCKET_CLI_APP_NAME)}function tn(){return G(A().SOCKET_REGISTRY_APP_NAME)}function rn(){return(0,I.normalizePath)(P.join(Ue(A().SOCKET_REGISTRY_APP_NAME),be().CACHE_GITHUB_DIR))}});export{fe as a,he as b,A as c,on as d};
@@ -1,2 +0,0 @@
1
- /* Socket SDK ESM - Built with esbuild */
2
- var g=Object.create;var f=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var n=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var l=(a,b,c,e)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of i(b))!k.call(a,d)&&d!==c&&f(a,d,{get:()=>b[d],enumerable:!(e=h(b,d))||e.enumerable});return a};var o=(a,b,c)=>(c=a!=null?g(j(a)):{},l(b||!a||!a.__esModule?f(c,"default",{value:a,enumerable:!0}):c,a));export{m as a,n as b,o as c};