@testmuai/kane-cli 0.2.11 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ChromeProfilePicker-YIDCOJVA.js → ChromeProfilePicker-HGRJNQDM.js} +1 -1
- package/dist/{CliFeedbackPrompt-T5LVDBVG.js → CliFeedbackPrompt-JXEPBJ63.js} +1 -1
- package/dist/CliUploadProgress-L5VJUXUC.js +2 -0
- package/dist/ConfigView-LOEAT3HQ.js +2 -0
- package/dist/FolderPicker-I6JTRNAU.js +2 -0
- package/dist/HelpView-UEUKYHFR.js +2 -0
- package/dist/InfoBox-MK7EEGCH.js +2 -0
- package/dist/{LinksBox-M72NCTRJ.js → LinksBox-RSWQWL6G.js} +1 -1
- package/dist/{ProfilesView-6MW5P6M4.js → ProfilesView-KCOMTDR5.js} +1 -1
- package/dist/ProjectPicker-AX6H5MX3.js +2 -0
- package/dist/SaveSessionPrompt-RGL3LAEB.js +2 -0
- package/dist/SingleShotApp-YTFAGVZD.js +2 -0
- package/dist/SummaryBox-5YPKUIHB.js +2 -0
- package/dist/TestMdRunView-QS7IUANM.js +2 -0
- package/dist/{WhoamiView-ZKNSYOLI.js → WhoamiView-GL3HZQ4Q.js} +1 -1
- package/dist/{changelog-TWE6QJ5S.js → changelog-CLQ7HCB3.js} +1 -1
- package/dist/{chunk-HHNLJWO5.js → chunk-34DK2AUH.js} +1 -1
- package/dist/chunk-3ELBJPHQ.js +2 -0
- package/dist/chunk-3MSXQU2C.js +2 -0
- package/dist/chunk-3QD3LA72.js +2 -0
- package/dist/chunk-BM4COXQU.js +53 -0
- package/dist/{chunk-55EYPGTJ.js → chunk-BQKDPI6L.js} +1 -1
- package/dist/{chunk-J3ZXTHAH.js → chunk-BR2S57O2.js} +1 -1
- package/dist/chunk-C5UNZ6ZY.js +2 -0
- package/dist/chunk-DUR6AFYA.js +5 -0
- package/dist/chunk-F6HEB4PA.js +2 -0
- package/dist/chunk-FFO5XXKV.js +4 -0
- package/dist/chunk-G7VF5SDK.js +10 -0
- package/dist/chunk-GTFULP6B.js +13 -0
- package/dist/{chunk-XQL5WHKR.js → chunk-HJ3CHMEM.js} +1 -1
- package/dist/{chunk-CKMDFVL6.js → chunk-K7MSPKEM.js} +1 -1
- package/dist/{chunk-C4KI7FLV.js → chunk-KULEBWMB.js} +1 -1
- package/dist/chunk-KVDOQY2Q.js +8 -0
- package/dist/{chunk-D3YS6JDD.js → chunk-L2HVRWIT.js} +8 -8
- package/dist/{chunk-Z3JYUFJ4.js → chunk-L4GAZTAQ.js} +1 -1
- package/dist/chunk-L4OZRHUT.js +5 -0
- package/dist/chunk-MDBXYXSC.js +2 -0
- package/dist/{chunk-Y4AOKSSQ.js → chunk-MEB2KLWF.js} +1 -1
- package/dist/chunk-NOH6RERF.js +6 -0
- package/dist/chunk-NZSHFIZX.js +3 -0
- package/dist/{chunk-TMTSY6CU.js → chunk-QO6VFDI4.js} +1 -1
- package/dist/chunk-RXMOIIQD.js +2 -0
- package/dist/chunk-S3DAAAE5.js +2 -0
- package/dist/chunk-SLA75N5B.js +2 -0
- package/dist/chunk-THNGNS36.js +2 -0
- package/dist/{chunk-2O7RIXHD.js → chunk-TK7ZJ7YX.js} +1 -1
- package/dist/chunk-VE3SUJMA.js +2 -0
- package/dist/chunk-VUBZQUP4.js +2 -0
- package/dist/chunk-WAFO4MT4.js +20 -0
- package/dist/chunk-XMK4GYI7.js +2 -0
- package/dist/chunk-XP5SMOND.js +2 -0
- package/dist/chunk-YCCUBQY4.js +2 -0
- package/dist/chunk-ZLQ7YLXO.js +2 -0
- package/dist/chunk-ZX3PMRMO.js +2 -0
- package/dist/effective-decisions-DRM3JSR4.js +2 -0
- package/dist/index.js +37 -46
- package/dist/{logging-JWPN5HMJ.js → logging-GG23EW5G.js} +1 -1
- package/dist/{login-flow-WXMKYI5G.js → login-flow-ZUZUZIXD.js} +1 -1
- package/dist/name-validator-5YGJXLZ7.js +2 -0
- package/dist/persist-recorded-session-ZXKA4H7E.js +5 -0
- package/dist/pipeline-BVH3R7YP.js +2 -0
- package/dist/profile-sync-DTTRRIVP.js +2 -0
- package/dist/recording-banner-IDLY2FM6.js +3 -0
- package/dist/replay-policy-6USQBT3E.js +2 -0
- package/dist/run-test-md-UPAR3DQY.js +54 -0
- package/dist/testmd-actions-YYFFNNIH.js +20 -0
- package/dist/{validate-basic-RV5TSUKJ.js → validate-basic-27BIMJ2F.js} +1 -1
- package/dist/{version-check-FOMPCS47.js → version-check-6DXFF6IN.js} +1 -1
- package/package.json +5 -5
- package/dist/CliUploadProgress-YJW7DHBT.js +0 -2
- package/dist/ConfigView-5L75H3A6.js +0 -2
- package/dist/FolderPicker-LEE4Y5JF.js +0 -2
- package/dist/HelpView-SIIWVMWF.js +0 -2
- package/dist/ProjectPicker-57G2ILEN.js +0 -2
- package/dist/SingleShotApp-UD4M2CZC.js +0 -2
- package/dist/chunk-7ONI2K3S.js +0 -2
- package/dist/chunk-ID77BNBM.js +0 -2
- package/dist/chunk-IQYKSZAW.js +0 -20
- package/dist/chunk-LBW6EFWN.js +0 -2
- package/dist/chunk-M5TQDTQN.js +0 -2
- package/dist/chunk-NDMXYUJM.js +0 -2
- package/dist/chunk-Y3MXIITZ.js +0 -2
- package/dist/pipeline-6DGALO2W.js +0 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{a as Tc}from"./chunk-L5Y2GUO6.js";import{a as xc}from"./chunk-YUUZDFT7.js";import{a as vc}from"./chunk-DXKKUGFG.js";import{a as P,b as ZE,c as g,d as QE,e as XE,f as JE}from"./chunk-UR6MHSHU.js";var
|
|
3
|
-
%s`,x,x,m,n);let O=m.type==="*"?sa:m.type==="?"?la:"\\"+m.type;s=!0,n=n.slice(0,m.reStart)+O+"\\("+x}S(),o&&(n+="\\\\");let T=wv[n.charAt(0)];for(let x=l.length-1;x>-1;x--){let O=l[x],w=n.slice(0,O.reStart),R=n.slice(O.reStart,O.reEnd-8),A=n.slice(O.reEnd),N=n.slice(O.reEnd-8,O.reEnd)+A,G=w.split(")").length,ue=w.split("(").length-G,Z=A;for(let V=0;V<ue;V++)Z=Z.replace(/\)[+*?]?/,"");A=Z;let te=A===""&&r!==oa?"(?:$|\\/)":"";n=w+R+A+te+N}if(n!==""&&s&&(n="(?=.)"+n),T&&(n=b()+n),r===oa)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return Ev(e);let D=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",D),{_glob:e,_src:n})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?sa:r.dot?mv:bv,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?xv(a):a===Ae?Ae:a._src).reduce((a,l)=>(a[a.length-1]===Ae&&l===Ae||a.push(l),a),[]),o.forEach((a,l)=>{a!==Ae||o[l-1]===Ae||(l===0?o.length>1?o[l+1]="(?:\\/|"+i+"\\/)?"+o[l+1]:o[l]=i:l===o.length-1?o[l-1]+="(?:\\/|"+i+")?":(o[l-1]+="(?:\\/|\\/"+i+"\\/)"+o[l+1],o[l+1]=Ae))}),o.filter(a=>a!==Ae).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;aa.sep!=="/"&&(e=e.split(aa.sep).join("/")),e=e.split(Zc),this.debug(this.pattern,"split",e);let n=this.set;this.debug(this.pattern,"set",n);let s;for(let o=e.length-1;o>=0&&(s=e[o],!s);o--);for(let o=0;o<n.length;o++){let a=n[o],l=e;if(i.matchBase&&a.length===1&&(l=[s]),this.matchOne(l,a,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Ne.defaults(e).Minimatch}};Ne.Minimatch=wr});var nh=g((i3,ih)=>{"use strict";ih.exports=rh;var ca=P("fs"),{EventEmitter:Rv}=P("events"),{Minimatch:fa}=Jc(),{resolve:Av}=P("path");function Ov(t,e){return new Promise((r,i)=>{ca.readdir(t,{withFileTypes:!0},(n,s)=>{if(n)switch(n.code){case"ENOTDIR":e?i(n):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(n);break}else r(s)})})}function eh(t,e){return new Promise((r,i)=>{(e?ca.stat:ca.lstat)(t,(s,o)=>{s?s.code==="ENOENT"?r(e?eh(t,!1):null):r(null):r(o)})})}async function*th(t,e,r,i,n,s){let o=await Ov(e+t,s);for(let a of o){let l=a.name;l===void 0&&(l=a,i=!0);let u=t+"/"+l,f=u.slice(1),c=e+"/"+f,h=null;(i||r)&&(h=await eh(c,r)),!h&&a.name!==void 0&&(h=a),h===null&&(h={isDirectory:()=>!1}),h.isDirectory()?n(f)||(yield{relative:f,absolute:c,stats:h},yield*th(u,e,r,i,n,!1)):yield{relative:f,absolute:c,stats:h}}}async function*Iv(t,e,r,i){yield*th("",t,e,r,i,!0)}function Dv(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var qn=class extends Rv{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=Dv(r||{}),this.matchers=[],this.options.pattern){let n=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=n.map(s=>new fa(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let n=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=n.map(s=>new fa(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let n=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=n.map(s=>new fa(s,{dot:!0}))}this.iterator=Iv(Av(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,i&&(this._matches=[],this.on("match",n=>this._matches.push(this.options.absolute?n.absolute:n.relative)),this.on("error",n=>i(n)),this.on("end",()=>i(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let i=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(n=>n.match(i)))&&!this.ignoreMatchers.some(n=>n.match(i))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let i=e.value.relative,n=e.value.absolute;this.options.mark&&r&&(i+="/",n+="/"),this.options.stat?this.emit("match",{relative:i,absolute:n,stat:e.value.stats}):this.emit("match",{relative:i,absolute:n})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}};function rh(t,e,r){return new qn(t,e,r)}rh.ReaddirGlob=qn});var rd={};QE(rd,{all:()=>wa,allLimit:()=>Sa,allSeries:()=>Ea,any:()=>Ia,anyLimit:()=>Da,anySeries:()=>Pa,apply:()=>fh,applyEach:()=>_h,applyEachSeries:()=>yh,asyncify:()=>jn,auto:()=>Ca,autoInject:()=>mh,cargo:()=>bh,cargoQueue:()=>wh,compose:()=>Sh,concat:()=>pa,concatLimit:()=>mi,concatSeries:()=>ga,constant:()=>Eh,default:()=>kx,detect:()=>_a,detectLimit:()=>ya,detectSeries:()=>ma,dir:()=>xh,doDuring:()=>Bn,doUntil:()=>Th,doWhilst:()=>Bn,during:()=>$n,each:()=>ba,eachLimit:()=>Un,eachOf:()=>Fe,eachOfLimit:()=>yi,eachOfSeries:()=>Xe,eachSeries:()=>Wn,ensureAsync:()=>qa,every:()=>wa,everyLimit:()=>Sa,everySeries:()=>Ea,filter:()=>va,filterLimit:()=>xa,filterSeries:()=>Ta,find:()=>_a,findLimit:()=>ya,findSeries:()=>ma,flatMap:()=>pa,flatMapLimit:()=>mi,flatMapSeries:()=>ga,foldl:()=>Sr,foldr:()=>Aa,forEach:()=>ba,forEachLimit:()=>Un,forEachOf:()=>Fe,forEachOfLimit:()=>yi,forEachOfSeries:()=>Xe,forEachSeries:()=>Wn,forever:()=>Ah,groupBy:()=>Oh,groupByLimit:()=>Zn,groupBySeries:()=>Ih,inject:()=>Sr,log:()=>Dh,map:()=>Yn,mapLimit:()=>Si,mapSeries:()=>Na,mapValues:()=>Ph,mapValuesLimit:()=>Qn,mapValuesSeries:()=>Lh,memoize:()=>Nh,nextTick:()=>Ch,parallel:()=>kh,parallelLimit:()=>Mh,priorityQueue:()=>qh,queue:()=>ja,race:()=>Fh,reduce:()=>Sr,reduceRight:()=>Aa,reflect:()=>Gn,reflectAll:()=>jh,reject:()=>Bh,rejectLimit:()=>Uh,rejectSeries:()=>Wh,retry:()=>zn,retryable:()=>$h,select:()=>va,selectLimit:()=>xa,selectSeries:()=>Ta,seq:()=>Ma,series:()=>Hh,setImmediate:()=>At,some:()=>Ia,someLimit:()=>Da,someSeries:()=>Pa,sortBy:()=>Vh,timeout:()=>Yh,times:()=>Kh,timesLimit:()=>Xn,timesSeries:()=>Zh,transform:()=>Qh,tryEach:()=>Xh,unmemoize:()=>Jh,until:()=>ed,waterfall:()=>td,whilst:()=>$n,wrapSync:()=>jn});function fh(t,...e){return(...r)=>t(...e,...r)}function bi(t){return function(...e){var r=e.pop();return t.call(this,e,r)}}function dh(t){setTimeout(t,0)}function ph(t){return(e,...r)=>t(()=>e(...r))}function jn(t){return wi(t)?function(...e){let r=e.pop(),i=t.apply(this,e);return sh(i,r)}:bi(function(e,r){var i;try{i=t.apply(this,e)}catch(n){return r(n)}if(i&&typeof i.then=="function")return sh(i,r);r(null,i)})}function sh(t,e){return t.then(r=>{oh(e,null,r)},r=>{oh(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function oh(t,e,r){try{t(e,r)}catch(i){At(n=>{throw n},i)}}function wi(t){return t[Symbol.toStringTag]==="AsyncFunction"}function Lv(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function Nv(t){return typeof t[Symbol.asyncIterator]=="function"}function q(t){if(typeof t!="function")throw new Error("expected a function");return wi(t)?jn(t):t}function M(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function r(...i){return typeof i[e-1]=="function"?t.apply(this,i):new Promise((n,s)=>{i[e-1]=(o,...a)=>{if(o)return s(o);n(a.length>1?a:a[0])},t.apply(this,i)})}return r}function gh(t){return function(r,...i){return M(function(s){var o=this;return t(r,(a,l)=>{q(a).apply(o,i.concat(l))},s)})}}function La(t,e,r,i){e=e||[];var n=[],s=0,o=q(r);return t(e,(a,l,u)=>{var f=s++;o(a,(c,h)=>{n[f]=h,u(c)})},a=>{i(a,n)})}function Hn(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}function Ot(t){function e(...r){if(t!==null){var i=t;t=null,i.apply(this,r)}}return Object.assign(e,t),e}function Cv(t){return t[Symbol.iterator]&&t[Symbol.iterator]()}function kv(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function Mv(t){var e=-1;return function(){var i=t.next();return i.done?null:(e++,{value:i.value,key:e})}}function qv(t){var e=t?Object.keys(t):[],r=-1,i=e.length;return function n(){var s=e[++r];return s==="__proto__"?n():r<i?{value:t[s],key:s}:null}}function Fv(t){if(Hn(t))return kv(t);var e=Cv(t);return e?Mv(e):qv(t)}function It(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}function ah(t,e,r,i){let n=!1,s=!1,o=!1,a=0,l=0;function u(){a>=e||o||n||(o=!0,t.next().then(({value:h,done:d})=>{if(!(s||n)){if(o=!1,d){n=!0,a<=0&&i(null);return}a++,r(h,l,f),l++,u()}}).catch(c))}function f(h,d){if(a-=1,!s){if(h)return c(h);if(h===!1){n=!0,s=!0;return}if(d===Vn||n&&a<=0)return n=!0,i(null);u()}}function c(h){s||(o=!1,n=!0,i(h))}u()}function jv(t,e,r,i){return $e(e)(t,q(r),i)}function Bv(t,e,r){r=Ot(r);var i=0,n=0,{length:s}=t,o=!1;s===0&&r(null);function a(l,u){l===!1&&(o=!0),o!==!0&&(l?r(l):(++n===s||u===Vn)&&r(null))}for(;i<s;i++)e(t[i],i,It(a))}function Uv(t,e,r){return yi(t,1/0,e,r)}function Wv(t,e,r){var i=Hn(t)?Bv:Uv;return i(t,q(e),r)}function Gv(t,e,r){return La(Fe,t,e,r)}function zv(t,e,r){return yi(t,1,e,r)}function $v(t,e,r){return La(Xe,t,e,r)}function Er(){let t,e;function r(i,...n){if(i)return e(i);t(n.length>1?n:n[0])}return r[vr]=new Promise((i,n)=>{t=i,e=n}),r}function Ca(t,e,r){typeof e!="number"&&(r=e,e=null),r=Ot(r||Er());var i=Object.keys(t).length;if(!i)return r(null);e||(e=i);var n={},s=0,o=!1,a=!1,l=Object.create(null),u=[],f=[],c={};Object.keys(t).forEach(v=>{var S=t[v];if(!Array.isArray(S)){h(v,[S]),f.push(v);return}var T=S.slice(0,S.length-1),D=T.length;if(D===0){h(v,S),f.push(v);return}c[v]=D,T.forEach(x=>{if(!t[x])throw new Error("async.auto task `"+v+"` has a non-existent dependency `"+x+"` in "+T.join(", "));m(x,()=>{D--,D===0&&h(v,S)})})}),y(),d();function h(v,S){u.push(()=>E(v,S))}function d(){if(!o){if(u.length===0&&s===0)return r(null,n);for(;u.length&&s<e;){var v=u.shift();v()}}}function m(v,S){var T=l[v];T||(T=l[v]=[]),T.push(S)}function p(v){var S=l[v]||[];S.forEach(T=>T()),d()}function E(v,S){if(!a){var T=It((x,...O)=>{if(s--,x===!1){o=!0;return}if(O.length<2&&([O]=O),x){var w={};if(Object.keys(n).forEach(R=>{w[R]=n[R]}),w[v]=O,a=!0,l=Object.create(null),o)return;r(x,w)}else n[v]=O,p(v)});s++;var D=q(S[S.length-1]);S.length>1?D(n,T):D(T)}}function y(){for(var v,S=0;f.length;)v=f.pop(),S++,b(v).forEach(T=>{--c[T]===0&&f.push(T)});if(S!==i)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function b(v){var S=[];return Object.keys(t).forEach(T=>{let D=t[T];Array.isArray(D)&&D.indexOf(v)>=0&&S.push(T)}),S}return r[vr]}function Zv(t){let e="",r=0,i=t.indexOf("*/");for(;r<t.length;)if(t[r]==="/"&&t[r+1]==="/"){let n=t.indexOf(`
|
|
2
|
+
import{a as Rc,b as Ac}from"./chunk-MDBXYXSC.js";import{a as Tc}from"./chunk-L5Y2GUO6.js";import{a as xc}from"./chunk-YUUZDFT7.js";import{a as vc}from"./chunk-DXKKUGFG.js";import{a as P,b as ZE,c as g,d as QE,e as XE,f as JE}from"./chunk-UR6MHSHU.js";var Fc=g((XB,Mc)=>{"use strict";var uv=typeof process=="object"&&process&&process.platform==="win32";Mc.exports=uv?{sep:"\\"}:{sep:"/"}});var Wc=g((JB,Uc)=>{"use strict";Uc.exports=jc;function jc(t,e,r){t instanceof RegExp&&(t=qc(t,r)),e instanceof RegExp&&(e=qc(e,r));var i=Bc(t,e,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+t.length,i[1]),post:r.slice(i[1]+e.length)}}function qc(t,e){var r=e.match(t);return r?r[0]:null}jc.range=Bc;function Bc(t,e,r){var i,n,s,o,a,l=r.indexOf(t),u=r.indexOf(e,l+1),f=l;if(l>=0&&u>0){if(t===e)return[l,u];for(i=[],s=r.length;f>=0&&!a;)f==l?(i.push(f),l=r.indexOf(t,f+1)):i.length==1?a=[i.pop(),u]:(n=i.pop(),n<s&&(s=n,o=u),u=r.indexOf(e,f+1)),f=l<u&&l>=0?l:u;i.length&&(a=[s,o])}return a}});var na=g((e3,Kc)=>{"use strict";var zc=Wc();Kc.exports=hv;var Gc="\0SLASH"+Math.random()+"\0",$c="\0OPEN"+Math.random()+"\0",ia="\0CLOSE"+Math.random()+"\0",Hc="\0COMMA"+Math.random()+"\0",Vc="\0PERIOD"+Math.random()+"\0";function ra(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function fv(t){return t.split("\\\\").join(Gc).split("\\{").join($c).split("\\}").join(ia).split("\\,").join(Hc).split("\\.").join(Vc)}function cv(t){return t.split(Gc).join("\\").split($c).join("{").split(ia).join("}").split(Hc).join(",").split(Vc).join(".")}function Yc(t){if(!t)return[""];var e=[],r=zc("{","}",t);if(!r)return t.split(",");var i=r.pre,n=r.body,s=r.post,o=i.split(",");o[o.length-1]+="{"+n+"}";var a=Yc(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function hv(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),gi(fv(t),!0).map(cv)):[]}function dv(t){return"{"+t+"}"}function pv(t){return/^-?0\d/.test(t)}function gv(t,e){return t<=e}function _v(t,e){return t>=e}function gi(t,e){var r=[],i=zc("{","}",t);if(!i)return[t];var n=i.pre,s=i.post.length?gi(i.post,!1):[""];if(/\$$/.test(i.pre))for(var o=0;o<s.length;o++){var a=n+"{"+i.body+"}"+s[o];r.push(a)}else{var l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),f=l||u,c=i.body.indexOf(",")>=0;if(!f&&!c)return i.post.match(/,(?!,).*\}/)?(t=i.pre+"{"+i.body+ia+i.post,gi(t)):[t];var h;if(f)h=i.body.split(/\.\./);else if(h=Yc(i.body),h.length===1&&(h=gi(h[0],!1).map(dv),h.length===1))return s.map(function(R){return i.pre+h[0]+R});var d;if(f){var m=ra(h[0]),p=ra(h[1]),v=Math.max(h[0].length,h[1].length),y=h.length==3?Math.max(Math.abs(ra(h[2])),1):1,b=gv,E=p<m;E&&(y*=-1,b=_v);var S=h.some(pv);d=[];for(var T=m;b(T,p);T+=y){var D;if(u)D=String.fromCharCode(T),D==="\\"&&(D="");else if(D=String(T),S){var x=v-D.length;if(x>0){var O=new Array(x+1).join("0");T<0?D="-"+O+D.slice(1):D=O+D}}d.push(D)}}else{d=[];for(var w=0;w<h.length;w++)d.push.apply(d,gi(h[w],!1))}for(var w=0;w<d.length;w++)for(var o=0;o<s.length;o++){var a=n+d[w]+s[o];(!e||f||a)&&r.push(a)}}return r}});var th=g((r3,ua)=>{"use strict";var Ne=ua.exports=(t,e,r={})=>(Mn(e),!r.nocomment&&e.charAt(0)==="#"?!1:new wr(e,r).match(t));ua.exports=Ne;var aa=Fc();Ne.sep=aa.sep;var Ae=Symbol("globstar **");Ne.GLOBSTAR=Ae;var yv=na(),Zc={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},la="[^/]",sa=la+"*?",mv="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",bv="(?:(?!(?:\\/|^)\\.).)*?",Jc=t=>t.split("").reduce((e,r)=>(e[r]=!0,e),{}),Qc=Jc("().*{}+?[]^$\\!"),wv=Jc("[.("),Xc=/\/+/;Ne.filter=(t,e={})=>(r,i,n)=>Ne(r,t,e);var Rt=(t,e={})=>{let r={};return Object.keys(t).forEach(i=>r[i]=t[i]),Object.keys(e).forEach(i=>r[i]=e[i]),r};Ne.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Ne;let e=Ne,r=(i,n,s)=>e(i,n,Rt(t,s));return r.Minimatch=class extends e.Minimatch{constructor(n,s){super(n,Rt(t,s))}},r.Minimatch.defaults=i=>e.defaults(Rt(t,i)).Minimatch,r.filter=(i,n)=>e.filter(i,Rt(t,n)),r.defaults=i=>e.defaults(Rt(t,i)),r.makeRe=(i,n)=>e.makeRe(i,Rt(t,n)),r.braceExpand=(i,n)=>e.braceExpand(i,Rt(t,n)),r.match=(i,n,s)=>e.match(i,n,Rt(t,s)),r};Ne.braceExpand=(t,e)=>eh(t,e);var eh=(t,e={})=>(Mn(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:yv(t)),Sv=1024*64,Mn=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Sv)throw new TypeError("pattern is too long")},oa=Symbol("subparse");Ne.makeRe=(t,e)=>new wr(t,e||{}).makeRe();Ne.match=(t,e,r={})=>{let i=new wr(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};var Ev=t=>t.replace(/\\(.)/g,"$1"),vv=t=>t.replace(/\\([^-\]])/g,"$1"),xv=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Tv=t=>t.replace(/[[\]\\]/g,"\\$&"),wr=class{constructor(e,r){Mn(e),r||(r={}),this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion!==void 0?r.maxGlobstarRecursion:200,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.make()}debug(){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();let i=this.globSet=this.braceExpand();r.debug&&(this.debug=(...n)=>console.error(...n)),this.debug(this.pattern,i),i=this.globParts=i.map(n=>n.split(Xc)),this.debug(this.pattern,i),i=i.map((n,s,o)=>n.map(this.parse,this)),this.debug(this.pattern,i),i=i.filter(n=>n.indexOf(!1)===-1),this.debug(this.pattern,i),this.set=i}parseNegate(){if(this.options.nonegate)return;let e=this.pattern,r=!1,i=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++)r=!r,i++;i&&(this.pattern=e.slice(i)),this.negate=r}matchOne(e,r,i){return r.indexOf(Ae)!==-1?this._matchGlobstar(e,r,i,0,0):this._matchOne(e,r,i,0,0)}_matchGlobstar(e,r,i,n,s){let o=-1;for(let b=s;b<r.length;b++)if(r[b]===Ae){o=b;break}let a=-1;for(let b=r.length-1;b>=0;b--)if(r[b]===Ae){a=b;break}let l=r.slice(s,o),u=i?r.slice(o+1):r.slice(o+1,a),f=i?[]:r.slice(a+1);if(l.length){let b=e.slice(n,n+l.length);if(!this._matchOne(b,l,i,0,0))return!1;n+=l.length}let c=0;if(f.length){if(f.length+n>e.length)return!1;let b=e.length-f.length;if(this._matchOne(e,f,i,b,0))c=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||!this._matchOne(e,f,i,b-1,0))return!1;c=f.length+1}}if(!u.length){let b=!!c;for(let E=n;E<e.length-c;E++){let S=String(e[E]);if(b=!0,S==="."||S===".."||!this.options.dot&&S.charAt(0)===".")return!1}return i||b}let h=[[[],0]],d=h[0],m=0,p=[0];for(let b of u)b===Ae?(p.push(m),d=[[],0],h.push(d)):(d[0].push(b),m++);let v=h.length-1,y=e.length-c;for(let b of h)b[1]=y-(p[v--]+b[0].length);return!!this._matchGlobStarBodySections(e,h,n,0,i,0,!!c)}_matchGlobStarBodySections(e,r,i,n,s,o,a){let l=r[n];if(!l){for(let c=i;c<e.length;c++){a=!0;let h=e[c];if(h==="."||h===".."||!this.options.dot&&h.charAt(0)===".")return!1}return a}let[u,f]=l;for(;i<=f;){if(this._matchOne(e.slice(0,i+u.length),u,s,i,0)&&o<this.maxGlobstarRecursion){let d=this._matchGlobStarBodySections(e,r,i+u.length,n+1,s,o+1,a);if(d!==!1)return d}let h=e[i];if(h==="."||h===".."||!this.options.dot&&h.charAt(0)===".")return!1;i++}return s||null}_matchOne(e,r,i,n,s){let o,a,l,u;for(o=n,a=s,l=e.length,u=r.length;o<l&&a<u;o++,a++){this.debug("matchOne loop");let f=r[a],c=e[o];if(this.debug(r,f,c),f===!1||f===Ae)return!1;let h;if(typeof f=="string"?(h=c===f,this.debug("string match",f,c,h)):(h=c.match(f),this.debug("pattern match",f,c,h)),!h)return!1}if(o===l&&a===u)return!0;if(o===l)return i;if(a===u)return o===l-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return eh(this.pattern,this.options)}parse(e,r){Mn(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return Ae;if(e==="")return"";let n="",s=!1,o=!1,a=[],l=[],u,f=!1,c=-1,h=-1,d,m,p,v=e.charAt(0)===".",y=i.dot||v,b=()=>v?"":y?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",E=x=>x.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",S=()=>{if(u){switch(u){case"*":n+=sa,s=!0;break;case"?":n+=la,s=!0;break;default:n+="\\"+u;break}this.debug("clearStateChar %j %j",u,n),u=!1}};for(let x=0,O;x<e.length&&(O=e.charAt(x));x++){if(this.debug("%s %s %s %j",e,x,n,O),o){if(O==="/")return!1;Qc[O]&&(n+="\\"),n+=O,o=!1;continue}switch(O){case"/":return!1;case"\\":if(f&&e.charAt(x+1)==="-"){n+=O;continue}S(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,x,n,O),f){this.debug(" in class"),O==="!"&&x===h+1&&(O="^"),n+=O;continue}if(O==="*"&&u==="*")continue;this.debug("call clearStateChar %j",u),S(),u=O,i.noext&&S();continue;case"(":{if(f){n+="(";continue}if(!u){n+="\\(";continue}let w={type:u,start:x-1,reStart:n.length,open:Zc[u].open,close:Zc[u].close};this.debug(this.pattern," ",w),a.push(w),n+=w.open,w.start===0&&w.type!=="!"&&(v=!0,n+=E(e.slice(x+1))),this.debug("plType %j %j",u,n),u=!1;continue}case")":{let w=a[a.length-1];if(f||!w){n+="\\)";continue}a.pop(),S(),s=!0,m=w,n+=m.close,m.type==="!"&&l.push(Object.assign(m,{reEnd:n.length}));continue}case"|":{let w=a[a.length-1];if(f||!w){n+="\\|";continue}S(),n+="|",w.start===0&&w.type!=="!"&&(v=!0,n+=E(e.slice(x+1)));continue}case"[":if(S(),f){n+="\\"+O;continue}f=!0,h=x,c=n.length,n+=O;continue;case"]":if(x===h+1||!f){n+="\\"+O;continue}d=e.substring(h+1,x);try{RegExp("["+Tv(vv(d))+"]"),n+=O}catch{n=n.substring(0,c)+"(?:$.)"}s=!0,f=!1;continue;default:S(),Qc[O]&&!(O==="^"&&f)&&(n+="\\"),n+=O;break}}for(f&&(d=e.slice(h+1),p=this.parse(d,oa),n=n.substring(0,c)+"\\["+p[0],s=s||p[1]),m=a.pop();m;m=a.pop()){let x;x=n.slice(m.reStart+m.open.length),this.debug("setting tail",n,m),x=x.replace(/((?:\\{2}){0,64})(\\?)\|/g,(w,R,A)=>(A||(A="\\"),R+R+A+"|")),this.debug(`tail=%j
|
|
3
|
+
%s`,x,x,m,n);let O=m.type==="*"?sa:m.type==="?"?la:"\\"+m.type;s=!0,n=n.slice(0,m.reStart)+O+"\\("+x}S(),o&&(n+="\\\\");let T=wv[n.charAt(0)];for(let x=l.length-1;x>-1;x--){let O=l[x],w=n.slice(0,O.reStart),R=n.slice(O.reStart,O.reEnd-8),A=n.slice(O.reEnd),N=n.slice(O.reEnd-8,O.reEnd)+A,z=w.split(")").length,ue=w.split("(").length-z,Z=A;for(let V=0;V<ue;V++)Z=Z.replace(/\)[+*?]?/,"");A=Z;let te=A===""&&r!==oa?"(?:$|\\/)":"";n=w+R+A+te+N}if(n!==""&&s&&(n="(?=.)"+n),T&&(n=b()+n),r===oa)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return Ev(e);let D=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",D),{_glob:e,_src:n})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?sa:r.dot?mv:bv,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?xv(a):a===Ae?Ae:a._src).reduce((a,l)=>(a[a.length-1]===Ae&&l===Ae||a.push(l),a),[]),o.forEach((a,l)=>{a!==Ae||o[l-1]===Ae||(l===0?o.length>1?o[l+1]="(?:\\/|"+i+"\\/)?"+o[l+1]:o[l]=i:l===o.length-1?o[l-1]+="(?:\\/|"+i+")?":(o[l-1]+="(?:\\/|\\/"+i+"\\/)"+o[l+1],o[l+1]=Ae))}),o.filter(a=>a!==Ae).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;aa.sep!=="/"&&(e=e.split(aa.sep).join("/")),e=e.split(Xc),this.debug(this.pattern,"split",e);let n=this.set;this.debug(this.pattern,"set",n);let s;for(let o=e.length-1;o>=0&&(s=e[o],!s);o--);for(let o=0;o<n.length;o++){let a=n[o],l=e;if(i.matchBase&&a.length===1&&(l=[s]),this.matchOne(l,a,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Ne.defaults(e).Minimatch}};Ne.Minimatch=wr});var oh=g((i3,sh)=>{"use strict";sh.exports=nh;var ca=P("fs"),{EventEmitter:Rv}=P("events"),{Minimatch:fa}=th(),{resolve:Av}=P("path");function Ov(t,e){return new Promise((r,i)=>{ca.readdir(t,{withFileTypes:!0},(n,s)=>{if(n)switch(n.code){case"ENOTDIR":e?i(n):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(n);break}else r(s)})})}function rh(t,e){return new Promise((r,i)=>{(e?ca.stat:ca.lstat)(t,(s,o)=>{s?s.code==="ENOENT"?r(e?rh(t,!1):null):r(null):r(o)})})}async function*ih(t,e,r,i,n,s){let o=await Ov(e+t,s);for(let a of o){let l=a.name;l===void 0&&(l=a,i=!0);let u=t+"/"+l,f=u.slice(1),c=e+"/"+f,h=null;(i||r)&&(h=await rh(c,r)),!h&&a.name!==void 0&&(h=a),h===null&&(h={isDirectory:()=>!1}),h.isDirectory()?n(f)||(yield{relative:f,absolute:c,stats:h},yield*ih(u,e,r,i,n,!1)):yield{relative:f,absolute:c,stats:h}}}async function*Iv(t,e,r,i){yield*ih("",t,e,r,i,!0)}function Dv(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var Fn=class extends Rv{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=Dv(r||{}),this.matchers=[],this.options.pattern){let n=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=n.map(s=>new fa(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let n=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=n.map(s=>new fa(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let n=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=n.map(s=>new fa(s,{dot:!0}))}this.iterator=Iv(Av(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,i&&(this._matches=[],this.on("match",n=>this._matches.push(this.options.absolute?n.absolute:n.relative)),this.on("error",n=>i(n)),this.on("end",()=>i(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let i=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(n=>n.match(i)))&&!this.ignoreMatchers.some(n=>n.match(i))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let i=e.value.relative,n=e.value.absolute;this.options.mark&&r&&(i+="/",n+="/"),this.options.stat?this.emit("match",{relative:i,absolute:n,stat:e.value.stats}):this.emit("match",{relative:i,absolute:n})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}};function nh(t,e,r){return new Fn(t,e,r)}nh.ReaddirGlob=Fn});var nd={};QE(nd,{all:()=>wa,allLimit:()=>Sa,allSeries:()=>Ea,any:()=>Ia,anyLimit:()=>Da,anySeries:()=>Pa,apply:()=>hh,applyEach:()=>mh,applyEachSeries:()=>bh,asyncify:()=>jn,auto:()=>Ca,autoInject:()=>wh,cargo:()=>Sh,cargoQueue:()=>Eh,compose:()=>vh,concat:()=>pa,concatLimit:()=>mi,concatSeries:()=>ga,constant:()=>xh,default:()=>kx,detect:()=>_a,detectLimit:()=>ya,detectSeries:()=>ma,dir:()=>Rh,doDuring:()=>Bn,doUntil:()=>Ah,doWhilst:()=>Bn,during:()=>$n,each:()=>ba,eachLimit:()=>Un,eachOf:()=>qe,eachOfLimit:()=>yi,eachOfSeries:()=>Xe,eachSeries:()=>Wn,ensureAsync:()=>Fa,every:()=>wa,everyLimit:()=>Sa,everySeries:()=>Ea,filter:()=>va,filterLimit:()=>xa,filterSeries:()=>Ta,find:()=>_a,findLimit:()=>ya,findSeries:()=>ma,flatMap:()=>pa,flatMapLimit:()=>mi,flatMapSeries:()=>ga,foldl:()=>Sr,foldr:()=>Aa,forEach:()=>ba,forEachLimit:()=>Un,forEachOf:()=>qe,forEachOfLimit:()=>yi,forEachOfSeries:()=>Xe,forEachSeries:()=>Wn,forever:()=>Ih,groupBy:()=>Dh,groupByLimit:()=>Zn,groupBySeries:()=>Ph,inject:()=>Sr,log:()=>Lh,map:()=>Yn,mapLimit:()=>Si,mapSeries:()=>Na,mapValues:()=>Nh,mapValuesLimit:()=>Qn,mapValuesSeries:()=>Ch,memoize:()=>kh,nextTick:()=>Mh,parallel:()=>Fh,parallelLimit:()=>qh,priorityQueue:()=>jh,queue:()=>ja,race:()=>Bh,reduce:()=>Sr,reduceRight:()=>Aa,reflect:()=>zn,reflectAll:()=>Uh,reject:()=>Wh,rejectLimit:()=>zh,rejectSeries:()=>Gh,retry:()=>Gn,retryable:()=>Vh,select:()=>va,selectLimit:()=>xa,selectSeries:()=>Ta,seq:()=>Ma,series:()=>Yh,setImmediate:()=>At,some:()=>Ia,someLimit:()=>Da,someSeries:()=>Pa,sortBy:()=>Kh,timeout:()=>Zh,times:()=>Qh,timesLimit:()=>Xn,timesSeries:()=>Xh,transform:()=>Jh,tryEach:()=>ed,unmemoize:()=>td,until:()=>rd,waterfall:()=>id,whilst:()=>$n,wrapSync:()=>jn});function hh(t,...e){return(...r)=>t(...e,...r)}function bi(t){return function(...e){var r=e.pop();return t.call(this,e,r)}}function gh(t){setTimeout(t,0)}function _h(t){return(e,...r)=>t(()=>e(...r))}function jn(t){return wi(t)?function(...e){let r=e.pop(),i=t.apply(this,e);return ah(i,r)}:bi(function(e,r){var i;try{i=t.apply(this,e)}catch(n){return r(n)}if(i&&typeof i.then=="function")return ah(i,r);r(null,i)})}function ah(t,e){return t.then(r=>{lh(e,null,r)},r=>{lh(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function lh(t,e,r){try{t(e,r)}catch(i){At(n=>{throw n},i)}}function wi(t){return t[Symbol.toStringTag]==="AsyncFunction"}function Lv(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function Nv(t){return typeof t[Symbol.asyncIterator]=="function"}function F(t){if(typeof t!="function")throw new Error("expected a function");return wi(t)?jn(t):t}function M(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function r(...i){return typeof i[e-1]=="function"?t.apply(this,i):new Promise((n,s)=>{i[e-1]=(o,...a)=>{if(o)return s(o);n(a.length>1?a:a[0])},t.apply(this,i)})}return r}function yh(t){return function(r,...i){return M(function(s){var o=this;return t(r,(a,l)=>{F(a).apply(o,i.concat(l))},s)})}}function La(t,e,r,i){e=e||[];var n=[],s=0,o=F(r);return t(e,(a,l,u)=>{var f=s++;o(a,(c,h)=>{n[f]=h,u(c)})},a=>{i(a,n)})}function Hn(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}function Ot(t){function e(...r){if(t!==null){var i=t;t=null,i.apply(this,r)}}return Object.assign(e,t),e}function Cv(t){return t[Symbol.iterator]&&t[Symbol.iterator]()}function kv(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function Mv(t){var e=-1;return function(){var i=t.next();return i.done?null:(e++,{value:i.value,key:e})}}function Fv(t){var e=t?Object.keys(t):[],r=-1,i=e.length;return function n(){var s=e[++r];return s==="__proto__"?n():r<i?{value:t[s],key:s}:null}}function qv(t){if(Hn(t))return kv(t);var e=Cv(t);return e?Mv(e):Fv(t)}function It(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}function uh(t,e,r,i){let n=!1,s=!1,o=!1,a=0,l=0;function u(){a>=e||o||n||(o=!0,t.next().then(({value:h,done:d})=>{if(!(s||n)){if(o=!1,d){n=!0,a<=0&&i(null);return}a++,r(h,l,f),l++,u()}}).catch(c))}function f(h,d){if(a-=1,!s){if(h)return c(h);if(h===!1){n=!0,s=!0;return}if(d===Vn||n&&a<=0)return n=!0,i(null);u()}}function c(h){s||(o=!1,n=!0,i(h))}u()}function jv(t,e,r,i){return $e(e)(t,F(r),i)}function Bv(t,e,r){r=Ot(r);var i=0,n=0,{length:s}=t,o=!1;s===0&&r(null);function a(l,u){l===!1&&(o=!0),o!==!0&&(l?r(l):(++n===s||u===Vn)&&r(null))}for(;i<s;i++)e(t[i],i,It(a))}function Uv(t,e,r){return yi(t,1/0,e,r)}function Wv(t,e,r){var i=Hn(t)?Bv:Uv;return i(t,F(e),r)}function zv(t,e,r){return La(qe,t,e,r)}function Gv(t,e,r){return yi(t,1,e,r)}function $v(t,e,r){return La(Xe,t,e,r)}function Er(){let t,e;function r(i,...n){if(i)return e(i);t(n.length>1?n:n[0])}return r[vr]=new Promise((i,n)=>{t=i,e=n}),r}function Ca(t,e,r){typeof e!="number"&&(r=e,e=null),r=Ot(r||Er());var i=Object.keys(t).length;if(!i)return r(null);e||(e=i);var n={},s=0,o=!1,a=!1,l=Object.create(null),u=[],f=[],c={};Object.keys(t).forEach(E=>{var S=t[E];if(!Array.isArray(S)){h(E,[S]),f.push(E);return}var T=S.slice(0,S.length-1),D=T.length;if(D===0){h(E,S),f.push(E);return}c[E]=D,T.forEach(x=>{if(!t[x])throw new Error("async.auto task `"+E+"` has a non-existent dependency `"+x+"` in "+T.join(", "));m(x,()=>{D--,D===0&&h(E,S)})})}),y(),d();function h(E,S){u.push(()=>v(E,S))}function d(){if(!o){if(u.length===0&&s===0)return r(null,n);for(;u.length&&s<e;){var E=u.shift();E()}}}function m(E,S){var T=l[E];T||(T=l[E]=[]),T.push(S)}function p(E){var S=l[E]||[];S.forEach(T=>T()),d()}function v(E,S){if(!a){var T=It((x,...O)=>{if(s--,x===!1){o=!0;return}if(O.length<2&&([O]=O),x){var w={};if(Object.keys(n).forEach(R=>{w[R]=n[R]}),w[E]=O,a=!0,l=Object.create(null),o)return;r(x,w)}else n[E]=O,p(E)});s++;var D=F(S[S.length-1]);S.length>1?D(n,T):D(T)}}function y(){for(var E,S=0;f.length;)E=f.pop(),S++,b(E).forEach(T=>{--c[T]===0&&f.push(T)});if(S!==i)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function b(E){var S=[];return Object.keys(t).forEach(T=>{let D=t[T];Array.isArray(D)&&D.indexOf(E)>=0&&S.push(T)}),S}return r[vr]}function Zv(t){let e="",r=0,i=t.indexOf("*/");for(;r<t.length;)if(t[r]==="/"&&t[r+1]==="/"){let n=t.indexOf(`
|
|
4
4
|
`,r);r=n===-1?t.length:n}else if(i!==-1&&t[r]==="/"&&t[r+1]==="*"){let n=t.indexOf("*/",r);n!==-1?(r=n+2,i=t.indexOf("*/",r)):(e+=t[r],r++)}else e+=t[r],r++;return e}function Qv(t){let e=Zv(t.toString()),r=e.match(Hv);if(r||(r=e.match(Vv)),!r)throw new Error(`could not parse args in autoInject
|
|
5
5
|
Source:
|
|
6
|
-
`+e);let[,i]=r;return i.replace(/\s/g,"").split(Yv).map(n=>n.replace(Kv,"").trim())}function mh(t,e){var r={};return Object.keys(t).forEach(i=>{var n=t[i],s,o=wi(n),a=!o&&n.length===1||o&&n.length===0;if(Array.isArray(n))s=[...n],n=s.pop(),r[i]=s.concat(s.length>0?l:n);else if(a)r[i]=n;else{if(s=Qv(n),n.length===0&&!o&&s.length===0)throw new Error("autoInject task functions require explicit parameters.");o||s.pop(),r[i]=s.concat(l)}function l(u,f){var c=s.map(h=>u[h]);c.push(f),q(n)(...c)}}),Ca(r,e)}function lh(t,e){t.length=1,t.head=t.tail=e}function ka(t,e,r){if(e==null)e=1;else if(e===0)throw new RangeError("Concurrency must not be zero");var i=q(t),n=0,s=[];let o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(b,v){o[b].push(v)}function l(b,v){let S=(...T)=>{u(b,S),v(...T)};o[b].push(S)}function u(b,v){if(!b)return Object.keys(o).forEach(S=>o[S]=[]);if(!v)return o[b]=[];o[b]=o[b].filter(S=>S!==v)}function f(b,...v){o[b].forEach(S=>S(...v))}var c=!1;function h(b,v,S,T){if(T!=null&&typeof T!="function")throw new Error("task callback must be a function");y.started=!0;var D,x;function O(R,...A){if(R)return S?x(R):D();if(A.length<=1)return D(A[0]);D(A)}var w=y._createTaskItem(b,S?O:T||O);if(v?y._tasks.unshift(w):y._tasks.push(w),c||(c=!0,At(()=>{c=!1,y.process()})),S||!T)return new Promise((R,A)=>{D=R,x=A})}function d(b){return function(v,...S){n-=1;for(var T=0,D=b.length;T<D;T++){var x=b[T],O=s.indexOf(x);O===0?s.shift():O>0&&s.splice(O,1),x.callback(v,...S),v!=null&&f("error",v,x.data)}n<=y.concurrency-y.buffer&&f("unsaturated"),y.idle()&&f("drain"),y.process()}}function m(b){return b.length===0&&y.idle()?(At(()=>f("drain")),!0):!1}let p=b=>v=>{if(!v)return new Promise((S,T)=>{l(b,(D,x)=>{if(D)return T(D);S(x)})});u(b),a(b,v)};var E=!1,y={_tasks:new da,_createTaskItem(b,v){return{data:b,callback:v}},*[Symbol.iterator](){yield*y._tasks[Symbol.iterator]()},concurrency:e,payload:r,buffer:e/4,started:!1,paused:!1,push(b,v){return Array.isArray(b)?m(b)?void 0:b.map(S=>h(S,!1,!1,v)):h(b,!1,!1,v)},pushAsync(b,v){return Array.isArray(b)?m(b)?void 0:b.map(S=>h(S,!1,!0,v)):h(b,!1,!0,v)},kill(){u(),y._tasks.empty()},unshift(b,v){return Array.isArray(b)?m(b)?void 0:b.map(S=>h(S,!0,!1,v)):h(b,!0,!1,v)},unshiftAsync(b,v){return Array.isArray(b)?m(b)?void 0:b.map(S=>h(S,!0,!0,v)):h(b,!0,!0,v)},remove(b){y._tasks.remove(b)},process(){if(!E){for(E=!0;!y.paused&&n<y.concurrency&&y._tasks.length;){var b=[],v=[],S=y._tasks.length;y.payload&&(S=Math.min(S,y.payload));for(var T=0;T<S;T++){var D=y._tasks.shift();b.push(D),s.push(D),v.push(D.data)}n+=1,y._tasks.length===0&&f("empty"),n===y.concurrency&&f("saturated");var x=It(d(b));i(v,x)}E=!1}},length(){return y._tasks.length},running(){return n},workersList(){return s},idle(){return y._tasks.length+n===0},pause(){y.paused=!0},resume(){y.paused!==!1&&(y.paused=!1,At(y.process))}};return Object.defineProperties(y,{saturated:{writable:!1,value:p("saturated")},unsaturated:{writable:!1,value:p("unsaturated")},empty:{writable:!1,value:p("empty")},drain:{writable:!1,value:p("drain")},error:{writable:!1,value:p("error")}}),y}function bh(t,e){return ka(t,1,e)}function wh(t,e,r){return ka(t,e,r)}function Xv(t,e,r,i){i=Ot(i);var n=q(r);return Xe(t,(s,o,a)=>{n(e,s,(l,u)=>{e=u,a(l)})},s=>i(s,e))}function Ma(...t){var e=t.map(q);return function(...r){var i=this,n=r[r.length-1];return typeof n=="function"?r.pop():n=Er(),Sr(e,r,(s,o,a)=>{o.apply(i,s.concat((l,...u)=>{a(l,u)}))},(s,o)=>n(s,...o)),n[vr]}}function Sh(...t){return Ma(...t.reverse())}function Jv(t,e,r,i){return La($e(e),t,r,i)}function ex(t,e,r,i){var n=q(r);return Si(t,e,(s,o)=>{n(s,(a,...l)=>a?o(a):o(a,l))},(s,o)=>{for(var a=[],l=0;l<o.length;l++)o[l]&&(a=a.concat(...o[l]));return i(s,a)})}function tx(t,e,r){return mi(t,1/0,e,r)}function rx(t,e,r){return mi(t,1,e,r)}function Eh(...t){return function(...e){var r=e.pop();return r(null,...t)}}function dt(t,e){return(r,i,n,s)=>{var o=!1,a;let l=q(n);r(i,(u,f,c)=>{l(u,(h,d)=>{if(h||h===!1)return c(h);if(t(d)&&!a)return o=!0,a=e(!0,u),c(null,Vn);c()})},u=>{if(u)return s(u);s(null,o?a:e(!1))})}}function ix(t,e,r){return dt(i=>i,(i,n)=>n)(Fe,t,e,r)}function nx(t,e,r,i){return dt(n=>n,(n,s)=>s)($e(e),t,r,i)}function sx(t,e,r){return dt(i=>i,(i,n)=>n)($e(1),t,e,r)}function vh(t){return(e,...r)=>q(e)(...r,(i,...n)=>{typeof console=="object"&&(i?console.error&&console.error(i):console[t]&&n.forEach(s=>console[t](s)))})}function ox(t,e,r){r=It(r);var i=q(t),n=q(e),s;function o(l,...u){if(l)return r(l);l!==!1&&(s=u,n(...u,a))}function a(l,u){if(l)return r(l);if(l!==!1){if(!u)return r(null,...s);i(o)}}return a(null,!0)}function Th(t,e,r){let i=q(e);return Bn(t,(...n)=>{let s=n.pop();i(...n,(o,a)=>s(o,!a))},r)}function Rh(t){return(e,r,i)=>t(e,i)}function ax(t,e,r){return Fe(t,Rh(q(e)),r)}function lx(t,e,r,i){return $e(e)(t,Rh(q(r)),i)}function ux(t,e,r){return Un(t,1,e,r)}function qa(t){return wi(t)?t:function(...e){var r=e.pop(),i=!0;e.push((...n)=>{i?At(()=>r(...n)):r(...n)}),t.apply(this,e),i=!1}}function fx(t,e,r){return dt(i=>!i,i=>!i)(Fe,t,e,r)}function cx(t,e,r,i){return dt(n=>!n,n=>!n)($e(e),t,r,i)}function hx(t,e,r){return dt(i=>!i,i=>!i)(Xe,t,e,r)}function dx(t,e,r,i){var n=new Array(e.length);t(e,(s,o,a)=>{r(s,(l,u)=>{n[o]=!!u,a(l)})},s=>{if(s)return i(s);for(var o=[],a=0;a<e.length;a++)n[a]&&o.push(e[a]);i(null,o)})}function px(t,e,r,i){var n=[];t(e,(s,o,a)=>{r(s,(l,u)=>{if(l)return a(l);u&&n.push({index:o,value:s}),a(l)})},s=>{if(s)return i(s);i(null,n.sort((o,a)=>o.index-a.index).map(o=>o.value))})}function Kn(t,e,r,i){var n=Hn(e)?dx:px;return n(t,e,q(r),i)}function gx(t,e,r){return Kn(Fe,t,e,r)}function _x(t,e,r,i){return Kn($e(e),t,r,i)}function yx(t,e,r){return Kn(Xe,t,e,r)}function mx(t,e){var r=It(e),i=q(qa(t));function n(s){if(s)return r(s);s!==!1&&i(n)}return n()}function bx(t,e,r,i){var n=q(r);return Si(t,e,(s,o)=>{n(s,(a,l)=>a?o(a):o(a,{key:l,val:s}))},(s,o)=>{for(var a={},{hasOwnProperty:l}=Object.prototype,u=0;u<o.length;u++)if(o[u]){var{key:f}=o[u],{val:c}=o[u];l.call(a,f)?a[f].push(c):a[f]=[c]}return i(s,a)})}function Oh(t,e,r){return Zn(t,1/0,e,r)}function Ih(t,e,r){return Zn(t,1,e,r)}function wx(t,e,r,i){i=Ot(i);var n={},s=q(r);return $e(e)(t,(o,a,l)=>{s(o,a,(u,f)=>{if(u)return l(u);n[a]=f,l(u)})},o=>i(o,n))}function Ph(t,e,r){return Qn(t,1/0,e,r)}function Lh(t,e,r){return Qn(t,1,e,r)}function Nh(t,e=r=>r){var r=Object.create(null),i=Object.create(null),n=q(t),s=bi((o,a)=>{var l=e(...o);l in r?At(()=>a(null,...r[l])):l in i?i[l].push(a):(i[l]=[a],n(...o,(u,...f)=>{u||(r[l]=f);var c=i[l];delete i[l];for(var h=0,d=c.length;h<d;h++)c[h](u,...f)}))});return s.memo=r,s.unmemoized=t,s}function kh(t,e){return Fa(Fe,t,e)}function Mh(t,e,r){return Fa($e(e),t,r)}function ja(t,e){var r=q(t);return ka((i,n)=>{r(i[0],n)},e,1)}function Sx(t){return(t<<1)+1}function uh(t){return(t+1>>1)-1}function ha(t,e){return t.priority!==e.priority?t.priority<e.priority:t.pushCount<e.pushCount}function qh(t,e){var r=ja(t,e),{push:i,pushAsync:n}=r;r._tasks=new Ra,r._createTaskItem=({data:o,priority:a},l)=>({data:o,priority:a,callback:l});function s(o,a){return Array.isArray(o)?o.map(l=>({data:l,priority:a})):{data:o,priority:a}}return r.push=function(o,a=0,l){return i(s(o,a),l)},r.pushAsync=function(o,a=0,l){return n(s(o,a),l)},delete r.unshift,delete r.unshiftAsync,r}function Ex(t,e){if(e=Ot(e),!Array.isArray(t))return e(new TypeError("First argument to race must be an array of functions"));if(!t.length)return e();for(var r=0,i=t.length;r<i;r++)q(t[r])(e)}function Aa(t,e,r,i){var n=[...t].reverse();return Sr(n,e,r,i)}function Gn(t){var e=q(t);return bi(function(i,n){return i.push((s,...o)=>{let a={};if(s&&(a.error=s),o.length>0){var l=o;o.length<=1&&([l]=o),a.value=l}n(null,a)}),e.apply(this,i)})}function jh(t){var e;return Array.isArray(t)?e=t.map(Gn):(e={},Object.keys(t).forEach(r=>{e[r]=Gn.call(this,t[r])})),e}function Ba(t,e,r,i){let n=q(r);return Kn(t,e,(s,o)=>{n(s,(a,l)=>{o(a,!l)})},i)}function vx(t,e,r){return Ba(Fe,t,e,r)}function xx(t,e,r,i){return Ba($e(e),t,r,i)}function Tx(t,e,r){return Ba(Xe,t,e,r)}function Gh(t){return function(){return t}}function zn(t,e,r){var i={times:Oa,intervalFunc:Gh(zh)};if(arguments.length<3&&typeof t=="function"?(r=e||Er(),e=t):(Rx(i,t),r=r||Er()),typeof e!="function")throw new Error("Invalid arguments for async.retry");var n=q(e),s=1;function o(){n((a,...l)=>{a!==!1&&(a&&s++<i.times&&(typeof i.errorFilter!="function"||i.errorFilter(a))?setTimeout(o,i.intervalFunc(s-1)):r(a,...l))})}return o(),r[vr]}function Rx(t,e){if(typeof e=="object")t.times=+e.times||Oa,t.intervalFunc=typeof e.interval=="function"?e.interval:Gh(+e.interval||zh),t.errorFilter=e.errorFilter;else if(typeof e=="number"||typeof e=="string")t.times=+e||Oa;else throw new Error("Invalid arguments for async.retry")}function $h(t,e){e||(e=t,t=null);let r=t&&t.arity||e.length;wi(e)&&(r+=1);var i=q(e);return bi((n,s)=>{(n.length<r-1||s==null)&&(n.push(s),s=Er());function o(a){i(...n,a)}return t?zn(t,o,s):zn(o,s),s[vr]})}function Hh(t,e){return Fa(Xe,t,e)}function Ax(t,e,r){return dt(Boolean,i=>i)(Fe,t,e,r)}function Ox(t,e,r,i){return dt(Boolean,n=>n)($e(e),t,r,i)}function Ix(t,e,r){return dt(Boolean,i=>i)(Xe,t,e,r)}function Dx(t,e,r){var i=q(e);return Yn(t,(s,o)=>{i(s,(a,l)=>{if(a)return o(a);o(a,{value:s,criteria:l})})},(s,o)=>{if(s)return r(s);r(null,o.sort(n).map(a=>a.value))});function n(s,o){var a=s.criteria,l=o.criteria;return a<l?-1:a>l?1:0}}function Yh(t,e,r){var i=q(t);return bi((n,s)=>{var o=!1,a;function l(){var u=t.name||"anonymous",f=new Error('Callback function "'+u+'" timed out.');f.code="ETIMEDOUT",r&&(f.info=r),o=!0,s(f)}n.push((...u)=>{o||(s(...u),clearTimeout(a))}),a=setTimeout(l,e),i(...n)})}function Px(t){for(var e=Array(t);t--;)e[t]=t;return e}function Xn(t,e,r,i){var n=q(r);return Si(Px(t),e,n,i)}function Kh(t,e,r){return Xn(t,1/0,e,r)}function Zh(t,e,r){return Xn(t,1,e,r)}function Qh(t,e,r,i){arguments.length<=3&&typeof e=="function"&&(i=r,r=e,e=Array.isArray(t)?[]:{}),i=Ot(i||Er());var n=q(r);return Fe(t,(s,o,a)=>{n(e,s,o,a)},s=>i(s,e)),i[vr]}function Lx(t,e){var r=null,i;return Wn(t,(n,s)=>{q(n)((o,...a)=>{if(o===!1)return s(o);a.length<2?[i]=a:i=a,r=o,s(o?null:{})})},()=>e(r,i))}function Jh(t){return(...e)=>(t.unmemoized||t)(...e)}function Nx(t,e,r){r=It(r);var i=q(e),n=q(t),s=[];function o(l,...u){if(l)return r(l);s=u,l!==!1&&n(a)}function a(l,u){if(l)return r(l);if(l!==!1){if(!u)return r(null,...s);i(o)}}return n(a)}function ed(t,e,r){let i=q(t);return $n(n=>i((s,o)=>n(s,!o)),e,r)}function Cx(t,e){if(e=Ot(e),!Array.isArray(t))return e(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();var r=0;function i(s){var o=q(t[r++]);o(...s,It(n))}function n(s,...o){if(s!==!1){if(s||r===t.length)return e(s,...o);i(o)}}i([])}var Pv,ch,hh,_i,At,Vn,$e,yi,Fe,Yn,_h,Xe,Na,yh,vr,Hv,Vv,Yv,Kv,da,Sr,Si,mi,pa,ga,_a,ya,ma,xh,Bn,ba,Un,Wn,wa,Sa,Ea,va,xa,Ta,Ah,Zn,Dh,Qn,Fn,Ch,Fa,Ra,Fh,Bh,Uh,Wh,Oa,zh,Ia,Da,Pa,Vh,Xh,$n,td,kx,id=ZE(()=>{"use strict";Pv=typeof queueMicrotask=="function"&&queueMicrotask,ch=typeof setImmediate=="function"&&setImmediate,hh=typeof process=="object"&&typeof process.nextTick=="function";Pv?_i=queueMicrotask:ch?_i=setImmediate:hh?_i=process.nextTick:_i=dh;At=ph(_i);Vn={};$e=t=>(e,r,i)=>{if(i=Ot(i),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return i(null);if(Lv(e))return ah(e,t,r,i);if(Nv(e))return ah(e[Symbol.asyncIterator](),t,r,i);var n=Fv(e),s=!1,o=!1,a=0,l=!1;function u(c,h){if(!o)if(a-=1,c)s=!0,i(c);else if(c===!1)s=!0,o=!0;else{if(h===Vn||s&&a<=0)return s=!0,i(null);l||f()}}function f(){for(l=!0;a<t&&!s;){var c=n();if(c===null){s=!0,a<=0&&i(null);return}a+=1,r(c.value,c.key,It(u))}l=!1}f()};yi=M(jv,4);Fe=M(Wv,3);Yn=M(Gv,3),_h=gh(Yn);Xe=M(zv,3);Na=M($v,3),yh=gh(Na),vr=Symbol("promiseCallback");Hv=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,Vv=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,Yv=/,/,Kv=/(=.+)?(\s*)$/;da=class{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,r){r.prev=e,r.next=e.next,e.next?e.next.prev=r:this.tail=r,e.next=r,this.length+=1}insertBefore(e,r){r.prev=e.prev,r.next=e,e.prev?e.prev.next=r:this.head=r,e.prev=r,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):lh(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):lh(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var r=this.head;r;){var{next:i}=r;e(r)&&this.removeLink(r),r=i}return this}};Sr=M(Xv,4);Si=M(Jv,4);mi=M(ex,4);pa=M(tx,3);ga=M(rx,3);_a=M(ix,3);ya=M(nx,4);ma=M(sx,3);xh=vh("dir");Bn=M(ox,3);ba=M(ax,3);Un=M(lx,4);Wn=M(ux,3);wa=M(fx,3);Sa=M(cx,4);Ea=M(hx,3);va=M(gx,3);xa=M(_x,4);Ta=M(yx,3);Ah=M(mx,2);Zn=M(bx,4);Dh=vh("log");Qn=M(wx,4);hh?Fn=process.nextTick:ch?Fn=setImmediate:Fn=dh;Ch=ph(Fn),Fa=M((t,e,r)=>{var i=Hn(e)?[]:{};t(e,(n,s,o)=>{q(n)((a,...l)=>{l.length<2&&([l]=l),i[s]=l,o(a)})},n=>r(n,i))},3);Ra=class{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let r;for(;e>0&&ha(this.heap[e],this.heap[r=uh(e)]);){let i=this.heap[e];this.heap[e]=this.heap[r],this.heap[r]=i,e=r}}percDown(e){let r;for(;(r=Sx(e))<this.heap.length&&(r+1<this.heap.length&&ha(this.heap[r+1],this.heap[r])&&(r=r+1),!ha(this.heap[e],this.heap[r]));){let i=this.heap[e];this.heap[e]=this.heap[r],this.heap[r]=i,e=r}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let r=0;for(let i=0;i<this.heap.length;i++)e(this.heap[i])||(this.heap[r]=this.heap[i],r++);this.heap.splice(r);for(let i=uh(this.heap.length-1);i>=0;i--)this.percDown(i);return this}};Fh=M(Ex,2);Bh=M(vx,3);Uh=M(xx,4);Wh=M(Tx,3);Oa=5,zh=0;Ia=M(Ax,3);Da=M(Ox,4);Pa=M(Ix,3);Vh=M(Dx,3);Xh=M(Lx);$n=M(Nx,3);td=M(Cx),kx={apply:fh,applyEach:_h,applyEachSeries:yh,asyncify:jn,auto:Ca,autoInject:mh,cargo:bh,cargoQueue:wh,compose:Sh,concat:pa,concatLimit:mi,concatSeries:ga,constant:Eh,detect:_a,detectLimit:ya,detectSeries:ma,dir:xh,doUntil:Th,doWhilst:Bn,each:ba,eachLimit:Un,eachOf:Fe,eachOfLimit:yi,eachOfSeries:Xe,eachSeries:Wn,ensureAsync:qa,every:wa,everyLimit:Sa,everySeries:Ea,filter:va,filterLimit:xa,filterSeries:Ta,forever:Ah,groupBy:Oh,groupByLimit:Zn,groupBySeries:Ih,log:Dh,map:Yn,mapLimit:Si,mapSeries:Na,mapValues:Ph,mapValuesLimit:Qn,mapValuesSeries:Lh,memoize:Nh,nextTick:Ch,parallel:kh,parallelLimit:Mh,priorityQueue:qh,queue:ja,race:Fh,reduce:Sr,reduceRight:Aa,reflect:Gn,reflectAll:jh,reject:Bh,rejectLimit:Uh,rejectSeries:Wh,retry:zn,retryable:$h,seq:Ma,series:Hh,setImmediate:At,some:Ia,someLimit:Da,someSeries:Pa,sortBy:Vh,timeout:Yh,times:Kh,timesLimit:Xn,timesSeries:Zh,transform:Qh,tryEach:Xh,unmemoize:Jh,until:ed,waterfall:td,whilst:$n,all:wa,allLimit:Sa,allSeries:Ea,any:Ia,anyLimit:Da,anySeries:Pa,find:_a,findLimit:ya,findSeries:ma,flatMap:pa,flatMapLimit:mi,flatMapSeries:ga,forEach:ba,forEachSeries:Wn,forEachLimit:Un,forEachOf:Fe,forEachOfSeries:Xe,forEachOfLimit:yi,inject:Sr,foldl:Sr,foldr:Aa,select:va,selectLimit:xa,selectSeries:Ta,wrapSync:jn,during:$n,doDuring:Bn}});var sd=g((n3,nd)=>{"use strict";var Dt=P("constants"),Mx=process.cwd,Jn=null,qx=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Jn||(Jn=Mx.call(process)),Jn};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ua=process.chdir,process.chdir=function(t){Jn=null,Ua.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ua));var Ua;nd.exports=Fx;function Fx(t){Dt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=n(t.chmodSync),t.fchmodSync=n(t.fchmodSync),t.lchmodSync=n(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(f,c,h){h&&process.nextTick(h)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(f,c,h,d){d&&process.nextTick(d)},t.lchownSync=function(){}),qx==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:(function(f){function c(h,d,m){var p=Date.now(),E=0;f(h,d,function y(b){if(b&&(b.code==="EACCES"||b.code==="EPERM"||b.code==="EBUSY")&&Date.now()-p<6e4){setTimeout(function(){t.stat(d,function(v,S){v&&v.code==="ENOENT"?f(h,d,y):m(b)})},E),E<100&&(E+=10);return}m&&m(b)})}return Object.setPrototypeOf&&Object.setPrototypeOf(c,f),c})(t.rename)),t.read=typeof t.read!="function"?t.read:(function(f){function c(h,d,m,p,E,y){var b;if(y&&typeof y=="function"){var v=0;b=function(S,T,D){if(S&&S.code==="EAGAIN"&&v<10)return v++,f.call(t,h,d,m,p,E,b);y.apply(this,arguments)}}return f.call(t,h,d,m,p,E,b)}return Object.setPrototypeOf&&Object.setPrototypeOf(c,f),c})(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:(function(f){return function(c,h,d,m,p){for(var E=0;;)try{return f.call(t,c,h,d,m,p)}catch(y){if(y.code==="EAGAIN"&&E<10){E++;continue}throw y}}})(t.readSync);function e(f){f.lchmod=function(c,h,d){f.open(c,Dt.O_WRONLY|Dt.O_SYMLINK,h,function(m,p){if(m){d&&d(m);return}f.fchmod(p,h,function(E){f.close(p,function(y){d&&d(E||y)})})})},f.lchmodSync=function(c,h){var d=f.openSync(c,Dt.O_WRONLY|Dt.O_SYMLINK,h),m=!0,p;try{p=f.fchmodSync(d,h),m=!1}finally{if(m)try{f.closeSync(d)}catch{}else f.closeSync(d)}return p}}function r(f){Dt.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(c,h,d,m){f.open(c,Dt.O_SYMLINK,function(p,E){if(p){m&&m(p);return}f.futimes(E,h,d,function(y){f.close(E,function(b){m&&m(y||b)})})})},f.lutimesSync=function(c,h,d){var m=f.openSync(c,Dt.O_SYMLINK),p,E=!0;try{p=f.futimesSync(m,h,d),E=!1}finally{if(E)try{f.closeSync(m)}catch{}else f.closeSync(m)}return p}):f.futimes&&(f.lutimes=function(c,h,d,m){m&&process.nextTick(m)},f.lutimesSync=function(){})}function i(f){return f&&function(c,h,d){return f.call(t,c,h,function(m){u(m)&&(m=null),d&&d.apply(this,arguments)})}}function n(f){return f&&function(c,h){try{return f.call(t,c,h)}catch(d){if(!u(d))throw d}}}function s(f){return f&&function(c,h,d,m){return f.call(t,c,h,d,function(p){u(p)&&(p=null),m&&m.apply(this,arguments)})}}function o(f){return f&&function(c,h,d){try{return f.call(t,c,h,d)}catch(m){if(!u(m))throw m}}}function a(f){return f&&function(c,h,d){typeof h=="function"&&(d=h,h=null);function m(p,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),d&&d.apply(this,arguments)}return h?f.call(t,c,h,m):f.call(t,c,m)}}function l(f){return f&&function(c,h){var d=h?f.call(t,c,h):f.call(t,c);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function u(f){if(!f||f.code==="ENOSYS")return!0;var c=!process.getuid||process.getuid()!==0;return!!(c&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var ld=g((s3,ad)=>{"use strict";var od=P("stream").Stream;ad.exports=jx;function jx(t){return{ReadStream:e,WriteStream:r};function e(i,n){if(!(this instanceof e))return new e(i,n);od.call(this);var s=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,n=n||{};for(var o=Object.keys(n),a=0,l=o.length;a<l;a++){var u=o[a];this[u]=n[u]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(f,c){if(f){s.emit("error",f),s.readable=!1;return}s.fd=c,s.emit("open",c),s._read()})}function r(i,n){if(!(this instanceof r))return new r(i,n);od.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var s=Object.keys(n),o=0,a=s.length;o<a;o++){var l=s[o];this[l]=n[l]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var fd=g((o3,ud)=>{"use strict";ud.exports=Ux;var Bx=Object.getPrototypeOf||function(t){return t.__proto__};function Ux(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:Bx(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var $a=g((a3,za)=>{"use strict";var ne=P("fs"),Wx=sd(),Gx=ld(),zx=fd(),es=P("util"),me,rs;typeof Symbol=="function"&&typeof Symbol.for=="function"?(me=Symbol.for("graceful-fs.queue"),rs=Symbol.for("graceful-fs.previous")):(me="___graceful-fs.queue",rs="___graceful-fs.previous");function $x(){}function dd(t,e){Object.defineProperty(t,me,{get:function(){return e}})}var Qt=$x;es.debuglog?Qt=es.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Qt=function(){var t=es.format.apply(es,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
7
|
-
GFS4: `),console.error(t)});ne[me]||(cd=global[me]||[],dd(ne,cd),ne.close=(function(t){function e(r,i){return t.call(ne,r,function(n){n||hd(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,rs,{value:t}),e})(ne.close),ne.closeSync=(function(t){function e(r){t.apply(ne,arguments),hd()}return Object.defineProperty(e,rs,{value:t}),e})(ne.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Qt(ne[me]),P("assert").equal(ne[me].length,0)}));var cd;global[me]||dd(global,ne[me]);za.exports=Wa(zx(ne));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ne.__patched&&(za.exports=Wa(ne),ne.__patched=!0);function Wa(t){Wx(t),t.gracefulify=Wa,t.createReadStream=T,t.createWriteStream=D;var e=t.readFile;t.readFile=r;function r(w,R,A){return typeof R=="function"&&(A=R,R=null),N(w,R,A);function N(G,ue,Z,te){return e(G,ue,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?xr([N,[G,ue,Z],V,te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=n;function n(w,R,A,N){return typeof A=="function"&&(N=A,A=null),G(w,R,A,N);function G(ue,Z,te,V,ye){return i(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(w,R,A,N){return typeof A=="function"&&(N=A,A=null),G(w,R,A,N);function G(ue,Z,te,V,ye){return s(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=l);function l(w,R,A,N){return typeof A=="function"&&(N=A,A=0),G(w,R,A,N);function G(ue,Z,te,V,ye){return a(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var u=t.readdir;t.readdir=c;var f=/^v[0-5]\./;function c(w,R,A){typeof R=="function"&&(A=R,R=null);var N=f.test(process.version)?function(Z,te,V,ye){return u(Z,G(Z,te,V,ye))}:function(Z,te,V,ye){return u(Z,te,G(Z,te,V,ye))};return N(w,R,A);function G(ue,Z,te,V){return function(ye,re){ye&&(ye.code==="EMFILE"||ye.code==="ENFILE")?xr([N,[ue,Z,te],ye,V||Date.now(),Date.now()]):(re&&re.sort&&re.sort(),typeof te=="function"&&te.call(this,ye,re))}}}if(process.version.substr(0,4)==="v0.8"){var h=Gx(t);y=h.ReadStream,v=h.WriteStream}var d=t.ReadStream;d&&(y.prototype=Object.create(d.prototype),y.prototype.open=b);var m=t.WriteStream;m&&(v.prototype=Object.create(m.prototype),v.prototype.open=S),Object.defineProperty(t,"ReadStream",{get:function(){return y},set:function(w){y=w},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return v},set:function(w){v=w},enumerable:!0,configurable:!0});var p=y;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(w){p=w},enumerable:!0,configurable:!0});var E=v;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(w){E=w},enumerable:!0,configurable:!0});function y(w,R){return this instanceof y?(d.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function b(){var w=this;O(w.path,w.flags,w.mode,function(R,A){R?(w.autoClose&&w.destroy(),w.emit("error",R)):(w.fd=A,w.emit("open",A),w.read())})}function v(w,R){return this instanceof v?(m.apply(this,arguments),this):v.apply(Object.create(v.prototype),arguments)}function S(){var w=this;O(w.path,w.flags,w.mode,function(R,A){R?(w.destroy(),w.emit("error",R)):(w.fd=A,w.emit("open",A))})}function T(w,R){return new t.ReadStream(w,R)}function D(w,R){return new t.WriteStream(w,R)}var x=t.open;t.open=O;function O(w,R,A,N){return typeof A=="function"&&(N=A,A=null),G(w,R,A,N);function G(ue,Z,te,V,ye){return x(ue,Z,te,function(re,KB){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return t}function xr(t){Qt("ENQUEUE",t[0].name,t[1]),ne[me].push(t),Ga()}var ts;function hd(){for(var t=Date.now(),e=0;e<ne[me].length;++e)ne[me][e].length>2&&(ne[me][e][3]=t,ne[me][e][4]=t);Ga()}function Ga(){if(clearTimeout(ts),ts=void 0,ne[me].length!==0){var t=ne[me].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)Qt("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){Qt("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,i)}else{var a=Date.now()-s,l=Math.max(s-n,1),u=Math.min(l*1.2,100);a>=u?(Qt("RETRY",e.name,r),e.apply(null,r.concat([n]))):ne[me].push(t)}ts===void 0&&(ts=setTimeout(Ga,0))}}});var is=g((l3,pd)=>{"use strict";var Je=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Je.writable=t=>Je(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Je.readable=t=>Je(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Je.duplex=t=>Je.writable(t)&&Je.readable(t);Je.transform=t=>Je.duplex(t)&&typeof t._transform=="function";pd.exports=Je});var Ei=g((u3,Ha)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Ha.exports={nextTick:Hx}:Ha.exports=process;function Hx(t,e,r,i){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,s,o;switch(n){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick(function(){t.call(null,e)});case 3:return process.nextTick(function(){t.call(null,e,r)});case 4:return process.nextTick(function(){t.call(null,e,r,i)});default:for(s=new Array(n-1),o=0;o<s.length;)s[o++]=arguments[o];return process.nextTick(function(){t.apply(null,s)})}}});var _d=g((f3,gd)=>{"use strict";var Vx={}.toString;gd.exports=Array.isArray||function(t){return Vx.call(t)=="[object Array]"}});var Va=g((c3,yd)=>{"use strict";yd.exports=P("stream")});var vi=g((Ya,bd)=>{"use strict";var ns=P("buffer"),pt=ns.Buffer;function md(t,e){for(var r in t)e[r]=t[r]}pt.from&&pt.alloc&&pt.allocUnsafe&&pt.allocUnsafeSlow?bd.exports=ns:(md(ns,Ya),Ya.Buffer=Tr);function Tr(t,e,r){return pt(t,e,r)}md(pt,Tr);Tr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return pt(t,e,r)};Tr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=pt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Tr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return pt(t)};Tr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ns.SlowBuffer(t)}});var Rr=g(ve=>{"use strict";function Yx(t){return Array.isArray?Array.isArray(t):ss(t)==="[object Array]"}ve.isArray=Yx;function Kx(t){return typeof t=="boolean"}ve.isBoolean=Kx;function Zx(t){return t===null}ve.isNull=Zx;function Qx(t){return t==null}ve.isNullOrUndefined=Qx;function Xx(t){return typeof t=="number"}ve.isNumber=Xx;function Jx(t){return typeof t=="string"}ve.isString=Jx;function e1(t){return typeof t=="symbol"}ve.isSymbol=e1;function t1(t){return t===void 0}ve.isUndefined=t1;function r1(t){return ss(t)==="[object RegExp]"}ve.isRegExp=r1;function i1(t){return typeof t=="object"&&t!==null}ve.isObject=i1;function n1(t){return ss(t)==="[object Date]"}ve.isDate=n1;function s1(t){return ss(t)==="[object Error]"||t instanceof Error}ve.isError=s1;function o1(t){return typeof t=="function"}ve.isFunction=o1;function a1(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}ve.isPrimitive=a1;ve.isBuffer=P("buffer").Buffer.isBuffer;function ss(t){return Object.prototype.toString.call(t)}});var wd=g((d3,Ka)=>{"use strict";typeof Object.create=="function"?Ka.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Ka.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var Ar=g((p3,Qa)=>{"use strict";try{if(Za=P("util"),typeof Za.inherits!="function")throw"";Qa.exports=Za.inherits}catch{Qa.exports=wd()}var Za});var Ed=g((g3,Xa)=>{"use strict";function l1(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Sd=vi().Buffer,xi=P("util");function u1(t,e,r){t.copy(e,r)}Xa.exports=(function(){function t(){l1(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},t.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},t.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},t.prototype.concat=function(r){if(this.length===0)return Sd.alloc(0);for(var i=Sd.allocUnsafe(r>>>0),n=this.head,s=0;n;)u1(n.data,i,s),s+=n.data.length,n=n.next;return i},t})();xi&&xi.inspect&&xi.inspect.custom&&(Xa.exports.prototype[xi.inspect.custom]=function(){var t=xi.inspect({length:this.length});return this.constructor.name+" "+t})});var Ja=g((_3,vd)=>{"use strict";var os=Ei();function f1(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,os.nextTick(as,this,t)):os.nextTick(as,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,os.nextTick(as,r,s)):os.nextTick(as,r,s):e&&e(s)}),this)}function c1(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function as(t,e){t.emit("error",e)}vd.exports={destroy:f1,undestroy:c1}});var Td=g((y3,xd)=>{"use strict";xd.exports=P("util").deprecate});var tl=g((m3,Nd)=>{"use strict";var Xt=Ei();Nd.exports=fe;function Ad(t){var e=this;this.next=null,this.entry=null,this.finish=function(){I1(e,t)}}var h1=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Xt.nextTick,Or;fe.WritableState=Ri;var Od=Object.create(Rr());Od.inherits=Ar();var d1={deprecate:Td()},Id=Va(),us=vi().Buffer,p1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function g1(t){return us.from(t)}function _1(t){return us.isBuffer(t)||t instanceof p1}var Dd=Ja();Od.inherits(fe,Id);function y1(){}function Ri(t,e){Or=Or||Jt(),t=t||{};var r=e instanceof Or;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,n=t.writableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=t.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){x1(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ad(this)}Ri.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Ri.prototype,"buffer",{get:d1.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ls;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ls=Function.prototype[Symbol.hasInstance],Object.defineProperty(fe,Symbol.hasInstance,{value:function(t){return ls.call(this,t)?!0:this!==fe?!1:t&&t._writableState instanceof Ri}})):ls=function(t){return t instanceof this};function fe(t){if(Or=Or||Jt(),!ls.call(fe,this)&&!(this instanceof Or))return new fe(t);this._writableState=new Ri(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Id.call(this)}fe.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function m1(t,e){var r=new Error("write after end");t.emit("error",r),Xt.nextTick(e,r)}function b1(t,e,r,i){var n=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!e.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),Xt.nextTick(i,s),n=!1),n}fe.prototype.write=function(t,e,r){var i=this._writableState,n=!1,s=!i.objectMode&&_1(t);return s&&!us.isBuffer(t)&&(t=g1(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=y1),i.ended?m1(this,r):(s||b1(this,i,t,r))&&(i.pendingcb++,n=S1(this,i,s,t,e,r)),n};fe.prototype.cork=function(){var t=this._writableState;t.corked++};fe.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Pd(this,t))};fe.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this};function w1(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=us.from(e,r)),e}Object.defineProperty(fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function S1(t,e,r,i,n,s){if(!r){var o=w1(e,i,n);i!==o&&(r=!0,n="buffer",i=o)}var a=e.objectMode?1:i.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:s,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else el(t,e,!1,a,i,n,s);return l}function el(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function E1(t,e,r,i,n){--e.pendingcb,r?(Xt.nextTick(n,i),Xt.nextTick(Ti,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(n(i),t._writableState.errorEmitted=!0,t.emit("error",i),Ti(t,e))}function v1(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function x1(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(v1(r),e)E1(t,r,i,e,n);else{var s=Ld(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Pd(t,r),i?h1(Rd,t,r,s,n):Rd(t,r,s,n)}}function Rd(t,e,r,i){r||T1(t,e),e.pendingcb--,i(),Ti(t,e)}function T1(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Pd(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),s=e.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)n[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;n.allBuffers=a,el(t,e,!0,e.length,n,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new Ad(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,f=r.callback,c=e.objectMode?1:l.length;if(el(t,e,!1,c,l,u,f),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}fe.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))};fe.prototype._writev=null;fe.prototype.end=function(t,e,r){var i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||O1(this,i,r)};function Ld(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function R1(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),Ti(t,e)})}function A1(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,Xt.nextTick(R1,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Ti(t,e){var r=Ld(e);return r&&(A1(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}function O1(t,e,r){e.ending=!0,Ti(t,e),r&&(e.finished?Xt.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function I1(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(fe.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});fe.prototype.destroy=Dd.destroy;fe.prototype._undestroy=Dd.undestroy;fe.prototype._destroy=function(t,e){this.end(),e(t)}});var Jt=g((b3,qd)=>{"use strict";var Cd=Ei(),D1=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};qd.exports=gt;var kd=Object.create(Rr());kd.inherits=Ar();var Md=nl(),il=tl();kd.inherits(gt,Md);for(rl=D1(il.prototype),fs=0;fs<rl.length;fs++)cs=rl[fs],gt.prototype[cs]||(gt.prototype[cs]=il.prototype[cs]);var rl,cs,fs;function gt(t){if(!(this instanceof gt))return new gt(t);Md.call(this,t),il.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",P1)}Object.defineProperty(gt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function P1(){this.allowHalfOpen||this._writableState.ended||Cd.nextTick(L1,this)}function L1(t){t.end()}Object.defineProperty(gt.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}});gt.prototype._destroy=function(t,e){this.push(null),this.end(),Cd.nextTick(e,t)}});var al=g(jd=>{"use strict";var ol=vi().Buffer,Fd=ol.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function N1(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function C1(t){var e=N1(t);if(typeof e!="string"&&(ol.isEncoding===Fd||!Fd(t)))throw new Error("Unknown encoding: "+t);return e||t}jd.StringDecoder=Ai;function Ai(t){this.encoding=C1(t);var e;switch(this.encoding){case"utf16le":this.text=B1,this.end=U1,e=4;break;case"utf8":this.fillLast=q1,e=4;break;case"base64":this.text=W1,this.end=G1,e=3;break;default:this.write=z1,this.end=$1;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ol.allocUnsafe(e)}Ai.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};Ai.prototype.end=j1;Ai.prototype.text=F1;Ai.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function sl(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function k1(t,e,r){var i=e.length-1;if(i<r)return 0;var n=sl(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=sl(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=sl(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function M1(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function q1(t){var e=this.lastTotal-this.lastNeed,r=M1(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function F1(t,e){var r=k1(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function j1(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function B1(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function U1(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function W1(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function G1(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function z1(t){return t.toString(this.encoding)}function $1(t){return t&&t.length?this.write(t):""}});var nl=g((E3,Qd)=>{"use strict";var Dr=Ei();Qd.exports=Q;var H1=_d(),Oi;Q.ReadableState=Hd;var S3=P("events").EventEmitter,Gd=function(t,e){return t.listeners(e).length},hl=Va(),Ii=vi().Buffer,V1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Y1(t){return Ii.from(t)}function K1(t){return Ii.isBuffer(t)||t instanceof V1}var zd=Object.create(Rr());zd.inherits=Ar();var ll=P("util"),$=void 0;ll&&ll.debuglog?$=ll.debuglog("stream"):$=function(){};var Z1=Ed(),$d=Ja(),Ir;zd.inherits(Q,hl);var ul=["error","close","destroy","pause","resume"];function Q1(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):H1(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Hd(t,e){Oi=Oi||Jt(),t=t||{};var r=e instanceof Oi;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,n=t.readableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Z1,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Ir||(Ir=al().StringDecoder),this.decoder=new Ir(t.encoding),this.encoding=t.encoding)}function Q(t){if(Oi=Oi||Jt(),!(this instanceof Q))return new Q(t);this._readableState=new Hd(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),hl.call(this)}Object.defineProperty(Q.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Q.prototype.destroy=$d.destroy;Q.prototype._undestroy=$d.undestroy;Q.prototype._destroy=function(t,e){this.push(null),e(t)};Q.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Ii.from(t,e),e=""),i=!0),Vd(this,t,e,!1,i)};Q.prototype.unshift=function(t){return Vd(this,t,null,!0,!1)};function Vd(t,e,r,i,n){var s=t._readableState;if(e===null)s.reading=!1,tT(t,s);else{var o;n||(o=X1(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Ii.prototype&&(e=Y1(e)),i?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):fl(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?fl(t,s,e,!1):Yd(t,s)):fl(t,s,e,!1))):i||(s.reading=!1)}return J1(s)}function fl(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&hs(t)),Yd(t,e)}function X1(t,e){var r;return!K1(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function J1(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}Q.prototype.isPaused=function(){return this._readableState.flowing===!1};Q.prototype.setEncoding=function(t){return Ir||(Ir=al().StringDecoder),this._readableState.decoder=new Ir(t),this._readableState.encoding=t,this};var Bd=8388608;function eT(t){return t>=Bd?t=Bd:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Ud(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=eT(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}Q.prototype.read=function(t){$("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return $("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?cl(this):hs(this),null;if(t=Ud(t,e),t===0&&e.ended)return e.length===0&&cl(this),null;var i=e.needReadable;$("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,$("length less than watermark",i)),e.ended||e.reading?(i=!1,$("reading or ended",i)):i&&($("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Ud(r,e)));var n;return t>0?n=Kd(t,e):n=null,n===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&cl(this)),n!==null&&this.emit("data",n),n};function tT(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,hs(t)}}function hs(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||($("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Dr.nextTick(Wd,t):Wd(t))}function Wd(t){$("emit readable"),t.emit("readable"),dl(t)}function Yd(t,e){e.readingMore||(e.readingMore=!0,Dr.nextTick(rT,t,e))}function rT(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&($("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}Q.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))};Q.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,$("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=n?a:E;i.endEmitted?Dr.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(y,b){$("onunpipe"),y===r&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,f())}function a(){$("onend"),t.end()}var l=iT(r);t.on("drain",l);var u=!1;function f(){$("cleanup"),t.removeListener("close",m),t.removeListener("finish",p),t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",E),r.removeListener("data",h),u=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}var c=!1;r.on("data",h);function h(y){$("ondata"),c=!1;var b=t.write(y);b===!1&&!c&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Zd(i.pipes,t)!==-1)&&!u&&($("false write response, pause",i.awaitDrain),i.awaitDrain++,c=!0),r.pause())}function d(y){$("onerror",y),E(),t.removeListener("error",d),Gd(t,"error")===0&&t.emit("error",y)}Q1(t,"error",d);function m(){t.removeListener("finish",p),E()}t.once("close",m);function p(){$("onfinish"),t.removeListener("close",m),E()}t.once("finish",p);function E(){$("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||($("pipe resume"),r.resume()),t};function iT(t){return function(){var e=t._readableState;$("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&Gd(t,"data")&&(e.flowing=!0,dl(t))}}Q.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<n;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Zd(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};Q.prototype.on=function(t,e){var r=hl.prototype.on.call(this,t,e);if(t==="data")this._readableState.flowing!==!1&&this.resume();else if(t==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&hs(this):Dr.nextTick(nT,this))}return r};Q.prototype.addListener=Q.prototype.on;function nT(t){$("readable nexttick read 0"),t.read(0)}Q.prototype.resume=function(){var t=this._readableState;return t.flowing||($("resume"),t.flowing=!0,sT(this,t)),this};function sT(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Dr.nextTick(oT,t,e))}function oT(t,e){e.reading||($("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),dl(t),e.flowing&&!e.reading&&t.read(0)}Q.prototype.pause=function(){return $("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&($("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function dl(t){var e=t._readableState;for($("flow",e.flowing);e.flowing&&t.read()!==null;);}Q.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if($("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if($("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(o){return function(){return t[o].apply(t,arguments)}})(n));for(var s=0;s<ul.length;s++)t.on(ul[s],this.emit.bind(this,ul[s]));return this._read=function(o){$("wrapped _read",o),i&&(i=!1,t.resume())},this};Object.defineProperty(Q.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Q._fromList=Kd;function Kd(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.head.data:r=e.buffer.concat(e.length),e.buffer.clear()):r=aT(t,e.buffer,e.decoder),r}function aT(t,e,r){var i;return t<e.head.data.length?(i=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):t===e.head.data.length?i=e.shift():i=r?lT(t,e):uT(t,e),i}function lT(t,e){var r=e.head,i=1,n=r.data;for(t-=n.length;r=r.next;){var s=r.data,o=t>s.length?s.length:t;if(o===s.length?n+=s:n+=s.slice(0,t),t-=o,t===0){o===s.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=s.slice(o));break}++i}return e.length-=i,n}function uT(t,e){var r=Ii.allocUnsafe(t),i=e.head,n=1;for(i.data.copy(r),t-=i.data.length;i=i.next;){var s=i.data,o=t>s.length?s.length:t;if(s.copy(r,r.length-t,0,o),t-=o,t===0){o===s.length?(++n,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=s.slice(o));break}++n}return e.length-=n,r}function cl(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Dr.nextTick(fT,e,t))}function fT(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function Zd(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var pl=g((v3,ep)=>{"use strict";ep.exports=_t;var ds=Jt(),Jd=Object.create(Rr());Jd.inherits=Ar();Jd.inherits(_t,ds);function cT(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function _t(t){if(!(this instanceof _t))return new _t(t);ds.call(this,t),this._transformState={afterTransform:cT.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",hT)}function hT(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){Xd(t,e,r)}):Xd(this,null,null)}_t.prototype.push=function(t,e){return this._transformState.needTransform=!1,ds.prototype.push.call(this,t,e)};_t.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")};_t.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};_t.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};_t.prototype._destroy=function(t,e){var r=this;ds.prototype._destroy.call(this,t,function(i){e(i),r.emit("close")})};function Xd(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}});var np=g((x3,ip)=>{"use strict";ip.exports=Di;var tp=pl(),rp=Object.create(Rr());rp.inherits=Ar();rp.inherits(Di,tp);function Di(t){if(!(this instanceof Di))return new Di(t);tp.call(this,t)}Di.prototype._transform=function(t,e,r){r(null,t)}});var sp=g((be,ps)=>{"use strict";var et=P("stream");process.env.READABLE_STREAM==="disable"&&et?(ps.exports=et,be=ps.exports=et.Readable,be.Readable=et.Readable,be.Writable=et.Writable,be.Duplex=et.Duplex,be.Transform=et.Transform,be.PassThrough=et.PassThrough,be.Stream=et):(be=ps.exports=nl(),be.Stream=et||be,be.Readable=be,be.Writable=tl(),be.Duplex=Jt(),be.Transform=pl(),be.PassThrough=np())});var ap=g((T3,op)=>{"use strict";op.exports=sp().PassThrough});var cp=g((R3,fp)=>{"use strict";var lp=P("util"),ys=ap();fp.exports={Readable:gs,Writable:_s};lp.inherits(gs,ys);lp.inherits(_s,ys);function up(t,e,r){t[e]=function(){return delete t[e],r.apply(this,arguments),this[e].apply(this,arguments)}}function gs(t,e){if(!(this instanceof gs))return new gs(t,e);ys.call(this,e),up(this,"_read",function(){var r=t.call(this,e),i=this.emit.bind(this,"error");r.on("error",i),r.pipe(this)}),this.emit("readable")}function _s(t,e){if(!(this instanceof _s))return new _s(t,e);ys.call(this,e),up(this,"_write",function(){var r=t.call(this,e),i=this.emit.bind(this,"error");r.on("error",i),this.pipe(r)}),this.emit("writable")}});var gl=g((A3,hp)=>{"use strict";hp.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var i="";if(r>4&&t[3]==="\\"){var n=t[2];(n==="?"||n===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),i="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),i+s.join("/")}});var _l=g((O3,dp)=>{"use strict";function dT(t){return t}dp.exports=dT});var gp=g((I3,pp)=>{"use strict";function pT(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}pp.exports=pT});var mp=g((D3,yp)=>{"use strict";var gT=gp(),_p=Math.max;function _T(t,e,r){return e=_p(e===void 0?t.length-1:e,0),function(){for(var i=arguments,n=-1,s=_p(i.length-e,0),o=Array(s);++n<s;)o[n]=i[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=i[n];return a[e]=r(o),gT(t,this,a)}}yp.exports=_T});var wp=g((P3,bp)=>{"use strict";function yT(t){return function(){return t}}bp.exports=yT});var yl=g((L3,Sp)=>{"use strict";var mT=typeof global=="object"&&global&&global.Object===Object&&global;Sp.exports=mT});var Pr=g((N3,Ep)=>{"use strict";var bT=yl(),wT=typeof self=="object"&&self&&self.Object===Object&&self,ST=bT||wT||Function("return this")();Ep.exports=ST});var ms=g((C3,vp)=>{"use strict";var ET=Pr(),vT=ET.Symbol;vp.exports=vT});var Ap=g((k3,Rp)=>{"use strict";var xp=ms(),Tp=Object.prototype,xT=Tp.hasOwnProperty,TT=Tp.toString,Pi=xp?xp.toStringTag:void 0;function RT(t){var e=xT.call(t,Pi),r=t[Pi];try{t[Pi]=void 0;var i=!0}catch{}var n=TT.call(t);return i&&(e?t[Pi]=r:delete t[Pi]),n}Rp.exports=RT});var Ip=g((M3,Op)=>{"use strict";var AT=Object.prototype,OT=AT.toString;function IT(t){return OT.call(t)}Op.exports=IT});var Li=g((q3,Lp)=>{"use strict";var Dp=ms(),DT=Ap(),PT=Ip(),LT="[object Null]",NT="[object Undefined]",Pp=Dp?Dp.toStringTag:void 0;function CT(t){return t==null?t===void 0?NT:LT:Pp&&Pp in Object(t)?DT(t):PT(t)}Lp.exports=CT});var Ni=g((F3,Np)=>{"use strict";function kT(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}Np.exports=kT});var ml=g((j3,Cp)=>{"use strict";var MT=Li(),qT=Ni(),FT="[object AsyncFunction]",jT="[object Function]",BT="[object GeneratorFunction]",UT="[object Proxy]";function WT(t){if(!qT(t))return!1;var e=MT(t);return e==jT||e==BT||e==FT||e==UT}Cp.exports=WT});var Mp=g((B3,kp)=>{"use strict";var GT=Pr(),zT=GT["__core-js_shared__"];kp.exports=zT});var jp=g((U3,Fp)=>{"use strict";var bl=Mp(),qp=(function(){var t=/[^.]+$/.exec(bl&&bl.keys&&bl.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function $T(t){return!!qp&&qp in t}Fp.exports=$T});var Up=g((W3,Bp)=>{"use strict";var HT=Function.prototype,VT=HT.toString;function YT(t){if(t!=null){try{return VT.call(t)}catch{}try{return t+""}catch{}}return""}Bp.exports=YT});var Gp=g((G3,Wp)=>{"use strict";var KT=ml(),ZT=jp(),QT=Ni(),XT=Up(),JT=/[\\^$.*+?()[\]{}|]/g,eR=/^\[object .+?Constructor\]$/,tR=Function.prototype,rR=Object.prototype,iR=tR.toString,nR=rR.hasOwnProperty,sR=RegExp("^"+iR.call(nR).replace(JT,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function oR(t){if(!QT(t)||ZT(t))return!1;var e=KT(t)?sR:eR;return e.test(XT(t))}Wp.exports=oR});var $p=g((z3,zp)=>{"use strict";function aR(t,e){return t?.[e]}zp.exports=aR});var Ci=g(($3,Hp)=>{"use strict";var lR=Gp(),uR=$p();function fR(t,e){var r=uR(t,e);return lR(r)?r:void 0}Hp.exports=fR});var Yp=g((H3,Vp)=>{"use strict";var cR=Ci(),hR=(function(){try{var t=cR(Object,"defineProperty");return t({},"",{}),t}catch{}})();Vp.exports=hR});var Qp=g((V3,Zp)=>{"use strict";var dR=wp(),Kp=Yp(),pR=_l(),gR=Kp?function(t,e){return Kp(t,"toString",{configurable:!0,enumerable:!1,value:dR(e),writable:!0})}:pR;Zp.exports=gR});var Jp=g((Y3,Xp)=>{"use strict";var _R=800,yR=16,mR=Date.now;function bR(t){var e=0,r=0;return function(){var i=mR(),n=yR-(i-r);if(r=i,n>0){if(++e>=_R)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}Xp.exports=bR});var tg=g((K3,eg)=>{"use strict";var wR=Qp(),SR=Jp(),ER=SR(wR);eg.exports=ER});var bs=g((Z3,rg)=>{"use strict";var vR=_l(),xR=mp(),TR=tg();function RR(t,e){return TR(xR(t,e,vR),t+"")}rg.exports=RR});var ws=g((Q3,ig)=>{"use strict";function AR(t,e){return t===e||t!==t&&e!==e}ig.exports=AR});var wl=g((X3,ng)=>{"use strict";var OR=9007199254740991;function IR(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=OR}ng.exports=IR});var Ss=g((J3,sg)=>{"use strict";var DR=ml(),PR=wl();function LR(t){return t!=null&&PR(t.length)&&!DR(t)}sg.exports=LR});var Sl=g((e4,og)=>{"use strict";var NR=9007199254740991,CR=/^(?:0|[1-9]\d*)$/;function kR(t,e){var r=typeof t;return e=e??NR,!!e&&(r=="number"||r!="symbol"&&CR.test(t))&&t>-1&&t%1==0&&t<e}og.exports=kR});var lg=g((t4,ag)=>{"use strict";var MR=ws(),qR=Ss(),FR=Sl(),jR=Ni();function BR(t,e,r){if(!jR(r))return!1;var i=typeof e;return(i=="number"?qR(r)&&FR(e,r.length):i=="string"&&e in r)?MR(r[e],t):!1}ag.exports=BR});var fg=g((r4,ug)=>{"use strict";function UR(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}ug.exports=UR});var Lr=g((i4,cg)=>{"use strict";function WR(t){return t!=null&&typeof t=="object"}cg.exports=WR});var dg=g((n4,hg)=>{"use strict";var GR=Li(),zR=Lr(),$R="[object Arguments]";function HR(t){return zR(t)&&GR(t)==$R}hg.exports=HR});var El=g((s4,_g)=>{"use strict";var pg=dg(),VR=Lr(),gg=Object.prototype,YR=gg.hasOwnProperty,KR=gg.propertyIsEnumerable,ZR=pg((function(){return arguments})())?pg:function(t){return VR(t)&&YR.call(t,"callee")&&!KR.call(t,"callee")};_g.exports=ZR});var vl=g((o4,yg)=>{"use strict";var QR=Array.isArray;yg.exports=QR});var bg=g((a4,mg)=>{"use strict";function XR(){return!1}mg.exports=XR});var vg=g((ki,Nr)=>{"use strict";var JR=Pr(),eA=bg(),Eg=typeof ki=="object"&&ki&&!ki.nodeType&&ki,wg=Eg&&typeof Nr=="object"&&Nr&&!Nr.nodeType&&Nr,tA=wg&&wg.exports===Eg,Sg=tA?JR.Buffer:void 0,rA=Sg?Sg.isBuffer:void 0,iA=rA||eA;Nr.exports=iA});var Tg=g((l4,xg)=>{"use strict";var nA=Li(),sA=wl(),oA=Lr(),aA="[object Arguments]",lA="[object Array]",uA="[object Boolean]",fA="[object Date]",cA="[object Error]",hA="[object Function]",dA="[object Map]",pA="[object Number]",gA="[object Object]",_A="[object RegExp]",yA="[object Set]",mA="[object String]",bA="[object WeakMap]",wA="[object ArrayBuffer]",SA="[object DataView]",EA="[object Float32Array]",vA="[object Float64Array]",xA="[object Int8Array]",TA="[object Int16Array]",RA="[object Int32Array]",AA="[object Uint8Array]",OA="[object Uint8ClampedArray]",IA="[object Uint16Array]",DA="[object Uint32Array]",X={};X[EA]=X[vA]=X[xA]=X[TA]=X[RA]=X[AA]=X[OA]=X[IA]=X[DA]=!0;X[aA]=X[lA]=X[wA]=X[uA]=X[SA]=X[fA]=X[cA]=X[hA]=X[dA]=X[pA]=X[gA]=X[_A]=X[yA]=X[mA]=X[bA]=!1;function PA(t){return oA(t)&&sA(t.length)&&!!X[nA(t)]}xg.exports=PA});var xl=g((u4,Rg)=>{"use strict";function LA(t){return function(e){return t(e)}}Rg.exports=LA});var Og=g((Mi,Cr)=>{"use strict";var NA=yl(),Ag=typeof Mi=="object"&&Mi&&!Mi.nodeType&&Mi,qi=Ag&&typeof Cr=="object"&&Cr&&!Cr.nodeType&&Cr,CA=qi&&qi.exports===Ag,Tl=CA&&NA.process,kA=(function(){try{var t=qi&&qi.require&&qi.require("util").types;return t||Tl&&Tl.binding&&Tl.binding("util")}catch{}})();Cr.exports=kA});var Lg=g((f4,Pg)=>{"use strict";var MA=Tg(),qA=xl(),Ig=Og(),Dg=Ig&&Ig.isTypedArray,FA=Dg?qA(Dg):MA;Pg.exports=FA});var Cg=g((c4,Ng)=>{"use strict";var jA=fg(),BA=El(),UA=vl(),WA=vg(),GA=Sl(),zA=Lg(),$A=Object.prototype,HA=$A.hasOwnProperty;function VA(t,e){var r=UA(t),i=!r&&BA(t),n=!r&&!i&&WA(t),s=!r&&!i&&!n&&zA(t),o=r||i||n||s,a=o?jA(t.length,String):[],l=a.length;for(var u in t)(e||HA.call(t,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||GA(u,l)))&&a.push(u);return a}Ng.exports=VA});var Mg=g((h4,kg)=>{"use strict";var YA=Object.prototype;function KA(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||YA;return t===r}kg.exports=KA});var Fg=g((d4,qg)=>{"use strict";function ZA(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}qg.exports=ZA});var Bg=g((p4,jg)=>{"use strict";var QA=Ni(),XA=Mg(),JA=Fg(),eO=Object.prototype,tO=eO.hasOwnProperty;function rO(t){if(!QA(t))return JA(t);var e=XA(t),r=[];for(var i in t)i=="constructor"&&(e||!tO.call(t,i))||r.push(i);return r}jg.exports=rO});var Wg=g((g4,Ug)=>{"use strict";var iO=Cg(),nO=Bg(),sO=Ss();function oO(t){return sO(t)?iO(t,!0):nO(t)}Ug.exports=oO});var $g=g((_4,zg)=>{"use strict";var aO=bs(),lO=ws(),uO=lg(),fO=Wg(),Gg=Object.prototype,cO=Gg.hasOwnProperty,hO=aO(function(t,e){t=Object(t);var r=-1,i=e.length,n=i>2?e[2]:void 0;for(n&&uO(e[0],e[1],n)&&(i=1);++r<i;)for(var s=e[r],o=fO(s),a=-1,l=o.length;++a<l;){var u=o[a],f=t[u];(f===void 0||lO(f,Gg[u])&&!cO.call(t,u))&&(t[u]=s[u])}return t});zg.exports=hO});var ie=g((y4,Hg)=>{"use strict";var Rl=class extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let r="";for(let i=0;i<e.length;i++)r+=` ${e[i].stack}
|
|
8
|
-
`;super(r),this.name="AggregateError",this.errors=e}};Hg.exports={AggregateError:Rl,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var Al=g((m4,Vg)=>{"use strict";Vg.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let n=e.shift();return i==="f"?n.toFixed(6):i==="j"?JSON.stringify(n):i==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var xe=g((b4,Zg)=>{"use strict";var{format:dO,inspect:Es}=Al(),{AggregateError:pO}=ie(),gO=globalThis.AggregateError||pO,_O=Symbol("kIsNodeError"),yO=["string","function","number","object","Function","Object","boolean","bigint","symbol"],mO=/^([A-Z][a-z0-9]*)+$/,bO="__node_internal_",vs={};function er(t,e){if(!t)throw new vs.ERR_INTERNAL_ASSERTION(e)}function Yg(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function wO(t,e,r){if(typeof e=="function")return er(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return er(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:dO(e,...r)}function we(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(wO(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[_O]=!0,vs[t]=i}function Kg(t){let e=bO+t.name;return Object.defineProperty(t,"name",{value:e}),t}function SO(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new gO([e,t],e.message);return r.code=e.code,r}return t||e}var Ol=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new vs.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};we("ERR_ASSERTION","%s",Error);we("ERR_INVALID_ARG_TYPE",(t,e,r)=>{er(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let i="The ";t.endsWith(" argument")?i+=`${t} `:i+=`"${t}" ${t.includes(".")?"property":"argument"} `,i+="must be ";let n=[],s=[],o=[];for(let l of e)er(typeof l=="string","All expected entries have to be of type string"),yO.includes(l)?n.push(l.toLowerCase()):mO.test(l)?s.push(l):(er(l!=="object",'The value "object" should be written as "Object"'),o.push(l));if(s.length>0){let l=n.indexOf("object");l!==-1&&(n.splice(n,l,1),s.push("Object"))}if(n.length>0){switch(n.length){case 1:i+=`of type ${n[0]}`;break;case 2:i+=`one of type ${n[0]} or ${n[1]}`;break;default:{let l=n.pop();i+=`one of type ${n.join(", ")}, or ${l}`}}(s.length>0||o.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();i+=`an instance of ${s.join(", ")}, or ${l}`}}o.length>0&&(i+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(i+="an "),i+=`${o[0]}`;break;case 2:i+=`one of ${o[0]} or ${o[1]}`;break;default:{let l=o.pop();i+=`one of ${o.join(", ")}, or ${l}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)i+=`. Received an instance of ${r.constructor.name}`;else{let l=Es(r,{depth:-1});i+=`. Received ${l}`}}else{let l=Es(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),i+=`. Received type ${typeof r} (${l})`}return i},TypeError);we("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let i=Es(e);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${i}`},TypeError);we("ERR_INVALID_RETURN_VALUE",(t,e,r)=>{var i;let n=r!=null&&(i=r.constructor)!==null&&i!==void 0&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the "${e}" function but got ${n}.`},TypeError);we("ERR_MISSING_ARGS",(...t)=>{er(t.length>0,"At least one arg needs to be specified");let e,r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(i=>`"${i}"`).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{let i=t.pop();e+=`The ${t.join(", ")}, and ${i} arguments`}break}return`${e} must be specified`},TypeError);we("ERR_OUT_OF_RANGE",(t,e,r)=>{er(e,'Missing "range" argument');let i;if(Number.isInteger(r)&&Math.abs(r)>2**32)i=Yg(String(r));else if(typeof r=="bigint"){i=String(r);let n=BigInt(2)**BigInt(32);(r>n||r<-n)&&(i=Yg(i)),i+="n"}else i=Es(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${i}`},RangeError);we("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);we("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);we("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);we("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);we("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);we("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);we("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);we("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);we("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);we("ERR_STREAM_WRITE_AFTER_END","write after end",Error);we("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);Zg.exports={AbortError:Ol,aggregateTwoErrors:Kg(SO),hideStackFrames:Kg,codes:vs}});var o_=g((Bi,ji)=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});var r_=new WeakMap,Il=new WeakMap;function J(t){let e=r_.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}function Qg(t){if(t.passiveListener!=null){typeof console<"u"&&typeof console.error=="function"&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener);return}t.event.cancelable&&(t.canceled=!0,typeof t.event.preventDefault=="function"&&t.event.preventDefault())}function kr(t,e){r_.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:e.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let r=Object.keys(e);for(let i=0;i<r.length;++i){let n=r[i];n in this||Object.defineProperty(this,n,i_(n))}}kr.prototype={get type(){return J(this).event.type},get target(){return J(this).eventTarget},get currentTarget(){return J(this).currentTarget},composedPath(){let t=J(this).currentTarget;return t==null?[]:[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return J(this).eventPhase},stopPropagation(){let t=J(this);t.stopped=!0,typeof t.event.stopPropagation=="function"&&t.event.stopPropagation()},stopImmediatePropagation(){let t=J(this);t.stopped=!0,t.immediateStopped=!0,typeof t.event.stopImmediatePropagation=="function"&&t.event.stopImmediatePropagation()},get bubbles(){return!!J(this).event.bubbles},get cancelable(){return!!J(this).event.cancelable},preventDefault(){Qg(J(this))},get defaultPrevented(){return J(this).canceled},get composed(){return!!J(this).event.composed},get timeStamp(){return J(this).timeStamp},get srcElement(){return J(this).eventTarget},get cancelBubble(){return J(this).stopped},set cancelBubble(t){if(!t)return;let e=J(this);e.stopped=!0,typeof e.event.cancelBubble=="boolean"&&(e.event.cancelBubble=!0)},get returnValue(){return!J(this).canceled},set returnValue(t){t||Qg(J(this))},initEvent(){}};Object.defineProperty(kr.prototype,"constructor",{value:kr,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(kr.prototype,window.Event.prototype),Il.set(window.Event.prototype,kr));function i_(t){return{get(){return J(this).event[t]},set(e){J(this).event[t]=e},configurable:!0,enumerable:!0}}function EO(t){return{value(){let e=J(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function vO(t,e){let r=Object.keys(e);if(r.length===0)return t;function i(n,s){t.call(this,n,s)}i.prototype=Object.create(t.prototype,{constructor:{value:i,configurable:!0,writable:!0}});for(let n=0;n<r.length;++n){let s=r[n];if(!(s in t.prototype)){let a=typeof Object.getOwnPropertyDescriptor(e,s).value=="function";Object.defineProperty(i.prototype,s,a?EO(s):i_(s))}}return i}function n_(t){if(t==null||t===Object.prototype)return kr;let e=Il.get(t);return e==null&&(e=vO(n_(Object.getPrototypeOf(t)),t),Il.set(t,e)),e}function xO(t,e){let r=n_(Object.getPrototypeOf(e));return new r(t,e)}function TO(t){return J(t).immediateStopped}function RO(t,e){J(t).eventPhase=e}function AO(t,e){J(t).currentTarget=e}function Xg(t,e){J(t).passiveListener=e}var s_=new WeakMap,Jg=1,e_=2,xs=3;function Ts(t){return t!==null&&typeof t=="object"}function Fi(t){let e=s_.get(t);if(e==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function OO(t){return{get(){let r=Fi(this).get(t);for(;r!=null;){if(r.listenerType===xs)return r.listener;r=r.next}return null},set(e){typeof e!="function"&&!Ts(e)&&(e=null);let r=Fi(this),i=null,n=r.get(t);for(;n!=null;)n.listenerType===xs?i!==null?i.next=n.next:n.next!==null?r.set(t,n.next):r.delete(t):i=n,n=n.next;if(e!==null){let s={listener:e,listenerType:xs,passive:!1,once:!1,next:null};i===null?r.set(t,s):i.next=s}},configurable:!0,enumerable:!0}}function Dl(t,e){Object.defineProperty(t,`on${e}`,OO(e))}function t_(t){function e(){He.call(this)}e.prototype=Object.create(He.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(let r=0;r<t.length;++r)Dl(e.prototype,t[r]);return e}function He(){if(this instanceof He){s_.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return t_(arguments[0]);if(arguments.length>0){let t=new Array(arguments.length);for(let e=0;e<arguments.length;++e)t[e]=arguments[e];return t_(t)}throw new TypeError("Cannot call a class as a function")}He.prototype={addEventListener(t,e,r){if(e==null)return;if(typeof e!="function"&&!Ts(e))throw new TypeError("'listener' should be a function or an object.");let i=Fi(this),n=Ts(r),o=(n?!!r.capture:!!r)?Jg:e_,a={listener:e,listenerType:o,passive:n&&!!r.passive,once:n&&!!r.once,next:null},l=i.get(t);if(l===void 0){i.set(t,a);return}let u=null;for(;l!=null;){if(l.listener===e&&l.listenerType===o)return;u=l,l=l.next}u.next=a},removeEventListener(t,e,r){if(e==null)return;let i=Fi(this),s=(Ts(r)?!!r.capture:!!r)?Jg:e_,o=null,a=i.get(t);for(;a!=null;){if(a.listener===e&&a.listenerType===s){o!==null?o.next=a.next:a.next!==null?i.set(t,a.next):i.delete(t);return}o=a,a=a.next}},dispatchEvent(t){if(t==null||typeof t.type!="string")throw new TypeError('"event.type" should be a string.');let e=Fi(this),r=t.type,i=e.get(r);if(i==null)return!0;let n=xO(this,t),s=null;for(;i!=null;){if(i.once?s!==null?s.next=i.next:i.next!==null?e.set(r,i.next):e.delete(r):s=i,Xg(n,i.passive?i.listener:null),typeof i.listener=="function")try{i.listener.call(this,n)}catch(o){typeof console<"u"&&typeof console.error=="function"&&console.error(o)}else i.listenerType!==xs&&typeof i.listener.handleEvent=="function"&&i.listener.handleEvent(n);if(TO(n))break;i=i.next}return Xg(n,null),RO(n,0),AO(n,null),!n.defaultPrevented}};Object.defineProperty(He.prototype,"constructor",{value:He,configurable:!0,writable:!0});typeof window<"u"&&typeof window.EventTarget<"u"&&Object.setPrototypeOf(He.prototype,window.EventTarget.prototype);Bi.defineEventAttribute=Dl;Bi.EventTarget=He;Bi.default=He;ji.exports=He;ji.exports.EventTarget=ji.exports.default=He;ji.exports.defineEventAttribute=Dl});var Mr=g((Wi,Ui)=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});var Pl=o_(),Pt=class extends Pl.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=Rs.get(this);if(typeof e!="boolean")throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return e}};Pl.defineEventAttribute(Pt.prototype,"abort");function IO(){let t=Object.create(Pt.prototype);return Pl.EventTarget.call(t),Rs.set(t,!1),t}function DO(t){Rs.get(t)===!1&&(Rs.set(t,!0),t.dispatchEvent({type:"abort"}))}var Rs=new WeakMap;Object.defineProperties(Pt.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Pt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var Lt=class{constructor(){l_.set(this,IO())}get signal(){return a_(this)}abort(){DO(a_(this))}},l_=new WeakMap;function a_(t){let e=l_.get(t);if(e==null)throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${t===null?"null":typeof t}`);return e}Object.defineProperties(Lt.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Lt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Wi.AbortController=Lt;Wi.AbortSignal=Pt;Wi.default=Lt;Ui.exports=Lt;Ui.exports.AbortController=Ui.exports.default=Lt;Ui.exports.AbortSignal=Pt});var Oe=g((w4,Nl)=>{"use strict";var PO=P("buffer"),{format:LO,inspect:NO}=Al(),{codes:{ERR_INVALID_ARG_TYPE:Ll}}=xe(),{kResistStopPropagation:CO,AggregateError:kO,SymbolDispose:MO}=ie(),qO=globalThis.AbortSignal||Mr().AbortSignal,FO=globalThis.AbortController||Mr().AbortController,jO=Object.getPrototypeOf(async function(){}).constructor,u_=globalThis.Blob||PO.Blob,BO=typeof u_<"u"?function(e){return e instanceof u_}:function(e){return!1},f_=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Ll(e,"AbortSignal",t)},UO=(t,e)=>{if(typeof t!="function")throw new Ll(e,"Function",t)};Nl.exports={AggregateError:kO,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((i,...n)=>i?r(i):e(...n))})},debuglog(){return function(){}},format:LO,inspect:NO,types:{isAsyncFunction(t){return t instanceof jO},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:BO,deprecate(t,e){return t},addAbortListener:P("events").addAbortListener||function(e,r){if(e===void 0)throw new Ll("signal","AbortSignal",e);f_(e,"signal"),UO(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[CO]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[MO](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:qO.any||function(e){if(e.length===1)return e[0];let r=new FO,i=()=>r.abort();return e.forEach(n=>{f_(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};Nl.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var Fr=g((S4,w_)=>{"use strict";var{ArrayIsArray:kl,ArrayPrototypeIncludes:p_,ArrayPrototypeJoin:g_,ArrayPrototypeMap:WO,NumberIsInteger:Ml,NumberIsNaN:GO,NumberMAX_SAFE_INTEGER:zO,NumberMIN_SAFE_INTEGER:$O,NumberParseInt:HO,ObjectPrototypeHasOwnProperty:VO,RegExpPrototypeExec:__,String:YO,StringPrototypeToUpperCase:KO,StringPrototypeTrim:ZO}=ie(),{hideStackFrames:je,codes:{ERR_SOCKET_BAD_PORT:QO,ERR_INVALID_ARG_TYPE:Te,ERR_INVALID_ARG_VALUE:qr,ERR_OUT_OF_RANGE:tr,ERR_UNKNOWN_SIGNAL:c_}}=xe(),{normalizeEncoding:XO}=Oe(),{isAsyncFunction:JO,isArrayBufferView:eI}=Oe().types,h_={};function tI(t){return t===(t|0)}function rI(t){return t===t>>>0}var iI=/^[0-7]+$/,nI="must be a 32-bit unsigned integer or an octal string";function sI(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(__(iI,t)===null)throw new qr(e,t,nI);t=HO(t,8)}return y_(t,e),t}var oI=je((t,e,r=$O,i=zO)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Ml(t))throw new tr(e,"an integer",t);if(t<r||t>i)throw new tr(e,`>= ${r} && <= ${i}`,t)}),aI=je((t,e,r=-2147483648,i=2147483647)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Ml(t))throw new tr(e,"an integer",t);if(t<r||t>i)throw new tr(e,`>= ${r} && <= ${i}`,t)}),y_=je((t,e,r=!1)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Ml(t))throw new tr(e,"an integer",t);let i=r?1:0,n=4294967295;if(t<i||t>n)throw new tr(e,`>= ${i} && <= ${n}`,t)});function ql(t,e){if(typeof t!="string")throw new Te(e,"string",t)}function lI(t,e,r=void 0,i){if(typeof t!="number")throw new Te(e,"number",t);if(r!=null&&t<r||i!=null&&t>i||(r!=null||i!=null)&&GO(t))throw new tr(e,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,t)}var uI=je((t,e,r)=>{if(!p_(r,t)){let n="must be one of: "+g_(WO(r,s=>typeof s=="string"?`'${s}'`:YO(s)),", ");throw new qr(e,t,n)}});function m_(t,e){if(typeof t!="boolean")throw new Te(e,"boolean",t)}function Cl(t,e,r){return t==null||!VO(t,e)?r:t[e]}var fI=je((t,e,r=null)=>{let i=Cl(r,"allowArray",!1),n=Cl(r,"allowFunction",!1);if(!Cl(r,"nullable",!1)&&t===null||!i&&kl(t)||typeof t!="object"&&(!n||typeof t!="function"))throw new Te(e,"Object",t)}),cI=je((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new Te(e,"a dictionary",t)}),As=je((t,e,r=0)=>{if(!kl(t))throw new Te(e,"Array",t);if(t.length<r){let i=`must be longer than ${r}`;throw new qr(e,t,i)}});function hI(t,e){As(t,e);for(let r=0;r<t.length;r++)ql(t[r],`${e}[${r}]`)}function dI(t,e){As(t,e);for(let r=0;r<t.length;r++)m_(t[r],`${e}[${r}]`)}function pI(t,e){As(t,e);for(let r=0;r<t.length;r++){let i=t[r],n=`${e}[${r}]`;if(i==null)throw new Te(n,"AbortSignal",i);b_(i,n)}}function gI(t,e="signal"){if(ql(t,e),h_[t]===void 0)throw h_[KO(t)]!==void 0?new c_(t+" (signals must use all capital letters)"):new c_(t)}var _I=je((t,e="buffer")=>{if(!eI(t))throw new Te(e,["Buffer","TypedArray","DataView"],t)});function yI(t,e){let r=XO(e),i=t.length;if(r==="hex"&&i%2!==0)throw new qr("encoding",e,`is invalid for data of length ${i}`)}function mI(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&ZO(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new QO(e,t,r);return t|0}var b_=je((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Te(e,"AbortSignal",t)}),bI=je((t,e)=>{if(typeof t!="function")throw new Te(e,"Function",t)}),wI=je((t,e)=>{if(typeof t!="function"||JO(t))throw new Te(e,"Function",t)}),SI=je((t,e)=>{if(t!==void 0)throw new Te(e,"undefined",t)});function EI(t,e,r){if(!p_(r,t))throw new Te(e,`('${g_(r,"|")}')`,t)}var vI=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function d_(t,e){if(typeof t>"u"||!__(vI,t))throw new qr(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function xI(t){if(typeof t=="string")return d_(t,"hints"),t;if(kl(t)){let e=t.length,r="";if(e===0)return r;for(let i=0;i<e;i++){let n=t[i];d_(n,"hints"),r+=n,i!==e-1&&(r+=", ")}return r}throw new qr("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}w_.exports={isInt32:tI,isUint32:rI,parseFileMode:sI,validateArray:As,validateStringArray:hI,validateBooleanArray:dI,validateAbortSignalArray:pI,validateBoolean:m_,validateBuffer:_I,validateDictionary:cI,validateEncoding:yI,validateFunction:bI,validateInt32:aI,validateInteger:oI,validateNumber:lI,validateObject:fI,validateOneOf:uI,validatePlainFunction:wI,validatePort:mI,validateSignalName:gI,validateString:ql,validateUint32:y_,validateUndefined:SI,validateUnion:EI,validateAbortSignal:b_,validateLinkHeaderValue:xI}});var Nt=g((E4,S_)=>{"use strict";S_.exports=global.process});var rt=g((v4,M_)=>{"use strict";var{SymbolAsyncIterator:E_,SymbolIterator:v_,SymbolFor:rr}=ie(),x_=rr("nodejs.stream.destroyed"),T_=rr("nodejs.stream.errored"),Fl=rr("nodejs.stream.readable"),jl=rr("nodejs.stream.writable"),R_=rr("nodejs.stream.disturbed"),TI=rr("nodejs.webstream.isClosedPromise"),RI=rr("nodejs.webstream.controllerErrorFunction");function Os(t,e=!1){var r;return!!(t&&typeof t.pipe=="function"&&typeof t.on=="function"&&(!e||typeof t.pause=="function"&&typeof t.resume=="function")&&(!t._writableState||((r=t._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!t._writableState||t._readableState))}function Is(t){var e;return!!(t&&typeof t.write=="function"&&typeof t.on=="function"&&(!t._readableState||((e=t._writableState)===null||e===void 0?void 0:e.writable)!==!1))}function AI(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}function tt(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function A_(t){return!!(t&&!tt(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function O_(t){return!!(t&&!tt(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function I_(t){return!!(t&&!tt(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function OI(t){return A_(t)||O_(t)||I_(t)}function II(t,e){return t==null?!1:e===!0?typeof t[E_]=="function":e===!1?typeof t[v_]=="function":typeof t[E_]=="function"||typeof t[v_]=="function"}function Ds(t){if(!tt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!!(t.destroyed||t[x_]||i!=null&&i.destroyed)}function D_(t){if(!Is(t))return null;if(t.writableEnded===!0)return!0;let e=t._writableState;return e!=null&&e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function DI(t,e){if(!Is(t))return null;if(t.writableFinished===!0)return!0;let r=t._writableState;return r!=null&&r.errored?!1:typeof r?.finished!="boolean"?null:!!(r.finished||e===!1&&r.ended===!0&&r.length===0)}function PI(t){if(!Os(t))return null;if(t.readableEnded===!0)return!0;let e=t._readableState;return!e||e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function P_(t,e){if(!Os(t))return null;let r=t._readableState;return r!=null&&r.errored?!1:typeof r?.endEmitted!="boolean"?null:!!(r.endEmitted||e===!1&&r.ended===!0&&r.length===0)}function L_(t){return t&&t[Fl]!=null?t[Fl]:typeof t?.readable!="boolean"?null:Ds(t)?!1:Os(t)&&t.readable&&!P_(t)}function N_(t){return t&&t[jl]!=null?t[jl]:typeof t?.writable!="boolean"?null:Ds(t)?!1:Is(t)&&t.writable&&!D_(t)}function LI(t,e){return tt(t)?Ds(t)?!0:!(e?.readable!==!1&&L_(t)||e?.writable!==!1&&N_(t)):null}function NI(t){var e,r;return tt(t)?t.writableErrored?t.writableErrored:(e=(r=t._writableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function CI(t){var e,r;return tt(t)?t.readableErrored?t.readableErrored:(e=(r=t._readableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function kI(t){if(!tt(t))return null;if(typeof t.closed=="boolean")return t.closed;let e=t._writableState,r=t._readableState;return typeof e?.closed=="boolean"||typeof r?.closed=="boolean"?e?.closed||r?.closed:typeof t._closed=="boolean"&&C_(t)?t._closed:null}function C_(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function k_(t){return typeof t._sent100=="boolean"&&C_(t)}function MI(t){var e;return typeof t._consuming=="boolean"&&typeof t._dumped=="boolean"&&((e=t.req)===null||e===void 0?void 0:e.upgradeOrConnect)===void 0}function qI(t){if(!tt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!i&&k_(t)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function FI(t){var e;return!!(t&&((e=t[R_])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function jI(t){var e,r,i,n,s,o,a,l,u,f;return!!(t&&((e=(r=(i=(n=(s=(o=t[T_])!==null&&o!==void 0?o:t.readableErrored)!==null&&s!==void 0?s:t.writableErrored)!==null&&n!==void 0?n:(a=t._readableState)===null||a===void 0?void 0:a.errorEmitted)!==null&&i!==void 0?i:(l=t._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&r!==void 0?r:(u=t._readableState)===null||u===void 0?void 0:u.errored)!==null&&e!==void 0?e:!((f=t._writableState)===null||f===void 0)&&f.errored))}M_.exports={isDestroyed:Ds,kIsDestroyed:x_,isDisturbed:FI,kIsDisturbed:R_,isErrored:jI,kIsErrored:T_,isReadable:L_,kIsReadable:Fl,kIsClosedPromise:TI,kControllerErrorFunction:RI,kIsWritable:jl,isClosed:kI,isDuplexNodeStream:AI,isFinished:LI,isIterable:II,isReadableNodeStream:Os,isReadableStream:A_,isReadableEnded:PI,isReadableFinished:P_,isReadableErrored:CI,isNodeStream:tt,isWebStream:OI,isWritable:N_,isWritableNodeStream:Is,isWritableStream:O_,isWritableEnded:D_,isWritableFinished:DI,isWritableErrored:NI,isServerRequest:MI,isServerResponse:k_,willEmitClose:qI,isTransformStream:I_}});var yt=g((x4,zl)=>{"use strict";var Ct=Nt(),{AbortError:$_,codes:BI}=xe(),{ERR_INVALID_ARG_TYPE:UI,ERR_STREAM_PREMATURE_CLOSE:q_}=BI,{kEmptyObject:Ul,once:Wl}=Oe(),{validateAbortSignal:WI,validateFunction:GI,validateObject:zI,validateBoolean:$I}=Fr(),{Promise:HI,PromisePrototypeThen:VI,SymbolDispose:H_}=ie(),{isClosed:YI,isReadable:F_,isReadableNodeStream:Bl,isReadableStream:KI,isReadableFinished:j_,isReadableErrored:B_,isWritable:U_,isWritableNodeStream:W_,isWritableStream:ZI,isWritableFinished:G_,isWritableErrored:z_,isNodeStream:QI,willEmitClose:XI,kIsClosedPromise:JI}=rt(),jr;function eD(t){return t.setHeader&&typeof t.abort=="function"}var Gl=()=>{};function V_(t,e,r){var i,n;if(arguments.length===2?(r=e,e=Ul):e==null?e=Ul:zI(e,"options"),GI(r,"callback"),WI(e.signal,"options.signal"),r=Wl(r),KI(t)||ZI(t))return tD(t,e,r);if(!QI(t))throw new UI("stream",["ReadableStream","WritableStream","Stream"],t);let s=(i=e.readable)!==null&&i!==void 0?i:Bl(t),o=(n=e.writable)!==null&&n!==void 0?n:W_(t),a=t._writableState,l=t._readableState,u=()=>{t.writable||h()},f=XI(t)&&Bl(t)===s&&W_(t)===o,c=G_(t,!1),h=()=>{c=!0,t.destroyed&&(f=!1),!(f&&(!t.readable||s))&&(!s||d)&&r.call(t)},d=j_(t,!1),m=()=>{d=!0,t.destroyed&&(f=!1),!(f&&(!t.writable||o))&&(!o||c)&&r.call(t)},p=T=>{r.call(t,T)},E=YI(t),y=()=>{E=!0;let T=z_(t)||B_(t);if(T&&typeof T!="boolean")return r.call(t,T);if(s&&!d&&Bl(t,!0)&&!j_(t,!1))return r.call(t,new q_);if(o&&!c&&!G_(t,!1))return r.call(t,new q_);r.call(t)},b=()=>{E=!0;let T=z_(t)||B_(t);if(T&&typeof T!="boolean")return r.call(t,T);r.call(t)},v=()=>{t.req.on("finish",h)};eD(t)?(t.on("complete",h),f||t.on("abort",y),t.req?v():t.on("request",v)):o&&!a&&(t.on("end",u),t.on("close",u)),!f&&typeof t.aborted=="boolean"&&t.on("aborted",y),t.on("end",m),t.on("finish",h),e.error!==!1&&t.on("error",p),t.on("close",y),E?Ct.nextTick(y):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?f||Ct.nextTick(b):(!s&&(!f||F_(t))&&(c||U_(t)===!1)||!o&&(!f||U_(t))&&(d||F_(t)===!1)||l&&t.req&&t.aborted)&&Ct.nextTick(b);let S=()=>{r=Gl,t.removeListener("aborted",y),t.removeListener("complete",h),t.removeListener("abort",y),t.removeListener("request",v),t.req&&t.req.removeListener("finish",h),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",h),t.removeListener("end",m),t.removeListener("error",p),t.removeListener("close",y)};if(e.signal&&!E){let T=()=>{let D=r;S(),D.call(t,new $_(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)Ct.nextTick(T);else{jr=jr||Oe().addAbortListener;let D=jr(e.signal,T),x=r;r=Wl((...O)=>{D[H_](),x.apply(t,O)})}}return S}function tD(t,e,r){let i=!1,n=Gl;if(e.signal)if(n=()=>{i=!0,r.call(t,new $_(void 0,{cause:e.signal.reason}))},e.signal.aborted)Ct.nextTick(n);else{jr=jr||Oe().addAbortListener;let o=jr(e.signal,n),a=r;r=Wl((...l)=>{o[H_](),a.apply(t,l)})}let s=(...o)=>{i||Ct.nextTick(()=>r.apply(t,o))};return VI(t[JI].promise,s,s),Gl}function rD(t,e){var r;let i=!1;return e===null&&(e=Ul),(r=e)!==null&&r!==void 0&&r.cleanup&&($I(e.cleanup,"cleanup"),i=e.cleanup),new HI((n,s)=>{let o=V_(t,e,a=>{i&&o(),a?s(a):n()})})}zl.exports=V_;zl.exports.finished=rD});var ir=g((T4,ty)=>{"use strict";var it=Nt(),{aggregateTwoErrors:iD,codes:{ERR_MULTIPLE_CALLBACK:nD},AbortError:sD}=xe(),{Symbol:Z_}=ie(),{kIsDestroyed:oD,isDestroyed:aD,isFinished:lD,isServerRequest:uD}=rt(),Q_=Z_("kDestroy"),$l=Z_("kConstruct");function X_(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function fD(t,e){let r=this._readableState,i=this._writableState,n=i||r;return i!=null&&i.destroyed||r!=null&&r.destroyed?(typeof e=="function"&&e(),this):(X_(t,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),n.constructed?Y_(this,t,e):this.once(Q_,function(s){Y_(this,iD(s,t),e)}),this)}function Y_(t,e,r){let i=!1;function n(s){if(i)return;i=!0;let o=t._readableState,a=t._writableState;X_(s,a,o),a&&(a.closed=!0),o&&(o.closed=!0),typeof r=="function"&&r(s),s?it.nextTick(cD,t,s):it.nextTick(J_,t)}try{t._destroy(e||null,n)}catch(s){n(s)}}function cD(t,e){Hl(t,e),J_(t)}function J_(t){let e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&t.emit("close")}function Hl(t,e){let r=t._readableState,i=t._writableState;i!=null&&i.errorEmitted||r!=null&&r.errorEmitted||(i&&(i.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function hD(){let t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function Vl(t,e,r){let i=t._readableState,n=t._writableState;if(n!=null&&n.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||n!=null&&n.autoDestroy?t.destroy(e):e&&(e.stack,n&&!n.errored&&(n.errored=e),i&&!i.errored&&(i.errored=e),r?it.nextTick(Hl,t,e):Hl(t,e))}function dD(t,e){if(typeof t._construct!="function")return;let r=t._readableState,i=t._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),t.once($l,e),!(t.listenerCount($l)>1)&&it.nextTick(pD,t)}function pD(t){let e=!1;function r(i){if(e){Vl(t,i??new nD);return}e=!0;let n=t._readableState,s=t._writableState,o=s||n;n&&(n.constructed=!0),s&&(s.constructed=!0),o.destroyed?t.emit(Q_,i):i?Vl(t,i,!0):it.nextTick(gD,t)}try{t._construct(i=>{it.nextTick(r,i)})}catch(i){it.nextTick(r,i)}}function gD(t){t.emit($l)}function K_(t){return t?.setHeader&&typeof t.abort=="function"}function ey(t){t.emit("close")}function _D(t,e){t.emit("error",e),it.nextTick(ey,t)}function yD(t,e){!t||aD(t)||(!e&&!lD(t)&&(e=new sD),uD(t)?(t.socket=null,t.destroy(e)):K_(t)?t.abort():K_(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?it.nextTick(_D,t,e):it.nextTick(ey,t),t.destroyed||(t[oD]=!0))}ty.exports={construct:dD,destroyer:yD,destroy:fD,undestroy:hD,errorOrDestroy:Vl}});var Ns=g((R4,iy)=>{"use strict";var{ArrayIsArray:mD,ObjectSetPrototypeOf:ry}=ie(),{EventEmitter:Ps}=P("events");function Ls(t){Ps.call(this,t)}ry(Ls.prototype,Ps.prototype);ry(Ls,Ps);Ls.prototype.pipe=function(t,e){let r=this;function i(f){t.writable&&t.write(f)===!1&&r.pause&&r.pause()}r.on("data",i);function n(){r.readable&&r.resume&&r.resume()}t.on("drain",n),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",o),r.on("close",a));let s=!1;function o(){s||(s=!0,t.end())}function a(){s||(s=!0,typeof t.destroy=="function"&&t.destroy())}function l(f){u(),Ps.listenerCount(this,"error")===0&&this.emit("error",f)}Yl(r,"error",l),Yl(t,"error",l);function u(){r.removeListener("data",i),t.removeListener("drain",n),r.removeListener("end",o),r.removeListener("close",a),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),t.removeListener("close",u)}return r.on("end",u),r.on("close",u),t.on("close",u),t.emit("pipe",r),t};function Yl(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):mD(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}iy.exports={Stream:Ls,prependListener:Yl}});var Gi=g((A4,Cs)=>{"use strict";var{SymbolDispose:bD}=ie(),{AbortError:ny,codes:wD}=xe(),{isNodeStream:sy,isWebStream:SD,kControllerErrorFunction:ED}=rt(),vD=yt(),{ERR_INVALID_ARG_TYPE:oy}=wD,Kl,xD=(t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new oy(e,"AbortSignal",t)};Cs.exports.addAbortSignal=function(e,r){if(xD(e,"signal"),!sy(r)&&!SD(r))throw new oy("stream",["ReadableStream","WritableStream","Stream"],r);return Cs.exports.addAbortSignalNoValidate(e,r)};Cs.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let r=sy(e)?()=>{e.destroy(new ny(void 0,{cause:t.reason}))}:()=>{e[ED](new ny(void 0,{cause:t.reason}))};if(t.aborted)r();else{Kl=Kl||Oe().addAbortListener;let i=Kl(t,r);vD(e,i[bD])}return e}});var uy=g((I4,ly)=>{"use strict";var{StringPrototypeSlice:ay,SymbolIterator:TD,TypedArrayPrototypeSet:ks,Uint8Array:RD}=ie(),{Buffer:Zl}=P("buffer"),{inspect:AD}=Oe();ly.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(e){let r={data:e,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let r=this.head,i=""+r.data;for(;(r=r.next)!==null;)i+=e+r.data;return i}concat(e){if(this.length===0)return Zl.alloc(0);let r=Zl.allocUnsafe(e>>>0),i=this.head,n=0;for(;i;)ks(r,i.data,n),n+=i.data.length,i=i.next;return r}consume(e,r){let i=this.head.data;if(e<i.length){let n=i.slice(0,e);return this.head.data=i.slice(e),n}return e===i.length?this.shift():r?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[TD](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let r="",i=this.head,n=0;do{let s=i.data;if(e>s.length)r+=s,e-=s.length;else{e===s.length?(r+=s,++n,i.next?this.head=i.next:this.head=this.tail=null):(r+=ay(s,0,e),this.head=i,i.data=ay(s,e));break}++n}while((i=i.next)!==null);return this.length-=n,r}_getBuffer(e){let r=Zl.allocUnsafe(e),i=e,n=this.head,s=0;do{let o=n.data;if(e>o.length)ks(r,o,i-e),e-=o.length;else{e===o.length?(ks(r,o,i-e),++s,n.next?this.head=n.next:this.head=this.tail=null):(ks(r,new RD(o.buffer,o.byteOffset,e),i-e),this.head=n,n.data=o.slice(e));break}++s}while((n=n.next)!==null);return this.length-=s,r}[Symbol.for("nodejs.util.inspect.custom")](e,r){return AD(this,{...r,depth:0,customInspect:!1})}}});var zi=g((D4,dy)=>{"use strict";var{MathFloor:OD,NumberIsInteger:ID}=ie(),{validateInteger:DD}=Fr(),{ERR_INVALID_ARG_VALUE:PD}=xe().codes,fy=16*1024,cy=16;function LD(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function hy(t){return t?cy:fy}function ND(t,e){DD(e,"value",0),t?cy=e:fy=e}function CD(t,e,r,i){let n=LD(e,i,r);if(n!=null){if(!ID(n)||n<0){let s=i?`options.${r}`:"options.highWaterMark";throw new PD(s,n)}return OD(n)}return hy(t.objectMode)}dy.exports={getHighWaterMark:CD,getDefaultHighWaterMark:hy,setDefaultHighWaterMark:ND}});var _y=g((Ql,gy)=>{"use strict";var Ms=P("buffer"),nt=Ms.Buffer;function py(t,e){for(var r in t)e[r]=t[r]}nt.from&&nt.alloc&&nt.allocUnsafe&&nt.allocUnsafeSlow?gy.exports=Ms:(py(Ms,Ql),Ql.Buffer=nr);function nr(t,e,r){return nt(t,e,r)}nr.prototype=Object.create(nt.prototype);py(nt,nr);nr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return nt(t,e,r)};nr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=nt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};nr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return nt(t)};nr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Ms.SlowBuffer(t)}});var by=g(my=>{"use strict";var Jl=_y().Buffer,yy=Jl.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function kD(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function MD(t){var e=kD(t);if(typeof e!="string"&&(Jl.isEncoding===yy||!yy(t)))throw new Error("Unknown encoding: "+t);return e||t}my.StringDecoder=$i;function $i(t){this.encoding=MD(t);var e;switch(this.encoding){case"utf16le":this.text=WD,this.end=GD,e=4;break;case"utf8":this.fillLast=jD,e=4;break;case"base64":this.text=zD,this.end=$D,e=3;break;default:this.write=HD,this.end=VD;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Jl.allocUnsafe(e)}$i.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};$i.prototype.end=UD;$i.prototype.text=BD;$i.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Xl(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function qD(t,e,r){var i=e.length-1;if(i<r)return 0;var n=Xl(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=Xl(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=Xl(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function FD(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function jD(t){var e=this.lastTotal-this.lastNeed,r=FD(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function BD(t,e){var r=qD(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function UD(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function WD(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function GD(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function zD(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function $D(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function HD(t){return t.toString(this.encoding)}function VD(t){return t&&t.length?this.write(t):""}});var eu=g((L4,vy)=>{"use strict";var wy=Nt(),{PromisePrototypeThen:YD,SymbolAsyncIterator:Sy,SymbolIterator:Ey}=ie(),{Buffer:KD}=P("buffer"),{ERR_INVALID_ARG_TYPE:ZD,ERR_STREAM_NULL_VALUES:QD}=xe().codes;function XD(t,e,r){let i;if(typeof e=="string"||e instanceof KD)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let n;if(e&&e[Sy])n=!0,i=e[Sy]();else if(e&&e[Ey])n=!1,i=e[Ey]();else throw new ZD("iterable",["Iterable"],e);let s=new t({objectMode:!0,highWaterMark:1,...r}),o=!1;s._read=function(){o||(o=!0,l())},s._destroy=function(u,f){YD(a(u),()=>wy.nextTick(f,u),c=>wy.nextTick(f,c||u))};async function a(u){let f=u!=null,c=typeof i.throw=="function";if(f&&c){let{value:h,done:d}=await i.throw(u);if(await h,d)return}if(typeof i.return=="function"){let{value:h}=await i.return();await h}}async function l(){for(;;){try{let{value:u,done:f}=n?await i.next():i.next();if(f)s.push(null);else{let c=u&&typeof u.then=="function"?await u:u;if(c===null)throw o=!1,new QD;if(s.push(c))continue;o=!1}}catch(u){s.destroy(u)}break}}return s}vy.exports=XD});var Vi=g((N4,Uy)=>{"use strict";var Ve=Nt(),{ArrayPrototypeIndexOf:JD,NumberIsInteger:eP,NumberIsNaN:tP,NumberParseInt:rP,ObjectDefineProperties:lu,ObjectKeys:iP,ObjectSetPrototypeOf:Ry,Promise:Ay,SafeSet:nP,SymbolAsyncDispose:sP,SymbolAsyncIterator:oP,Symbol:aP}=ie();Uy.exports=k;k.ReadableState=Bs;var{EventEmitter:lP}=P("events"),{Stream:kt,prependListener:uP}=Ns(),{Buffer:tu}=P("buffer"),{addAbortSignal:fP}=Gi(),Oy=yt(),B=Oe().debuglog("stream",t=>{B=t}),cP=uy(),Wr=ir(),{getHighWaterMark:hP,getDefaultHighWaterMark:dP}=zi(),{aggregateTwoErrors:xy,codes:{ERR_INVALID_ARG_TYPE:pP,ERR_METHOD_NOT_IMPLEMENTED:gP,ERR_OUT_OF_RANGE:_P,ERR_STREAM_PUSH_AFTER_EOF:yP,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:mP},AbortError:bP}=xe(),{validateObject:wP}=Fr(),sr=aP("kPaused"),{StringDecoder:Iy}=by(),SP=eu();Ry(k.prototype,kt.prototype);Ry(k,kt);var ru=()=>{},{errorOrDestroy:Br}=Wr,Ur=1,EP=2,Dy=4,Hi=8,Py=16,qs=32,Fs=64,Ly=128,vP=256,xP=512,TP=1024,ou=2048,au=4096,RP=8192,AP=16384,OP=32768,Ny=65536,IP=1<<17,DP=1<<18;function ce(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}lu(Bs.prototype,{objectMode:ce(Ur),ended:ce(EP),endEmitted:ce(Dy),reading:ce(Hi),constructed:ce(Py),sync:ce(qs),needReadable:ce(Fs),emittedReadable:ce(Ly),readableListening:ce(vP),resumeScheduled:ce(xP),errorEmitted:ce(TP),emitClose:ce(ou),autoDestroy:ce(au),destroyed:ce(RP),closed:ce(AP),closeEmitted:ce(OP),multiAwaitDrain:ce(Ny),readingMore:ce(IP),dataEmitted:ce(DP)});function Bs(t,e,r){typeof r!="boolean"&&(r=e instanceof st()),this.state=ou|au|Py|qs,t&&t.objectMode&&(this.state|=Ur),r&&t&&t.readableObjectMode&&(this.state|=Ur),this.highWaterMark=t?hP(this,t,"readableHighWaterMark",r):dP(!1),this.buffer=new cP,this.length=0,this.pipes=[],this.flowing=null,this[sr]=null,t&&t.emitClose===!1&&(this.state&=~ou),t&&t.autoDestroy===!1&&(this.state&=~au),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new Iy(t.encoding),this.encoding=t.encoding)}function k(t){if(!(this instanceof k))return new k(t);let e=this instanceof st();this._readableState=new Bs(t,this,e),t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&!e&&fP(t.signal,this)),kt.call(this,t),Wr.construct(this,()=>{this._readableState.needReadable&&js(this,this._readableState)})}k.prototype.destroy=Wr.destroy;k.prototype._undestroy=Wr.undestroy;k.prototype._destroy=function(t,e){e(t)};k.prototype[lP.captureRejectionSymbol]=function(t){this.destroy(t)};k.prototype[sP]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new bP,this.destroy(t)),new Ay((e,r)=>Oy(this,i=>i&&i!==t?r(i):e(null)))};k.prototype.push=function(t,e){return Cy(this,t,e,!1)};k.prototype.unshift=function(t,e){return Cy(this,t,e,!0)};function Cy(t,e,r,i){B("readableAddChunk",e);let n=t._readableState,s;if((n.state&Ur)===0&&(typeof e=="string"?(r=r||n.defaultEncoding,n.encoding!==r&&(i&&n.encoding?e=tu.from(e,r).toString(n.encoding):(e=tu.from(e,r),r=""))):e instanceof tu?r="":kt._isUint8Array(e)?(e=kt._uint8ArrayToBuffer(e),r=""):e!=null&&(s=new pP("chunk",["string","Buffer","Uint8Array"],e))),s)Br(t,s);else if(e===null)n.state&=~Hi,NP(t,n);else if((n.state&Ur)!==0||e&&e.length>0)if(i)if((n.state&Dy)!==0)Br(t,new mP);else{if(n.destroyed||n.errored)return!1;iu(t,n,e,!0)}else if(n.ended)Br(t,new yP);else{if(n.destroyed||n.errored)return!1;n.state&=~Hi,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?iu(t,n,e,!1):js(t,n)):iu(t,n,e,!1)}else i||(n.state&=~Hi,js(t,n));return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function iu(t,e,r,i){e.flowing&&e.length===0&&!e.sync&&t.listenerCount("data")>0?((e.state&Ny)!==0?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),(e.state&Fs)!==0&&Us(t)),js(t,e)}k.prototype.isPaused=function(){let t=this._readableState;return t[sr]===!0||t.flowing===!1};k.prototype.setEncoding=function(t){let e=new Iy(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,i="";for(let n of r)i+=e.write(n);return r.clear(),i!==""&&r.push(i),this._readableState.length=i.length,this};var PP=1073741824;function LP(t){if(t>PP)throw new _P("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function Ty(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&Ur)!==0?1:tP(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}k.prototype.read=function(t){B("read",t),t===void 0?t=NaN:eP(t)||(t=rP(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=LP(t)),t!==0&&(e.state&=~Ly),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return B("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?nu(this):Us(this),null;if(t=Ty(t,e),t===0&&e.ended)return e.length===0&&nu(this),null;let i=(e.state&Fs)!==0;if(B("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,B("length less than watermark",i)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)i=!1,B("reading, ended or constructing",i);else if(i){B("do read"),e.state|=Hi|qs,e.length===0&&(e.state|=Fs);try{this._read(e.highWaterMark)}catch(s){Br(this,s)}e.state&=~qs,e.reading||(t=Ty(r,e))}let n;return t>0?n=jy(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&nu(this)),n!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",n)),n};function NP(t,e){if(B("onEofChunk"),!e.ended){if(e.decoder){let r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?Us(t):(e.needReadable=!1,e.emittedReadable=!0,ky(t))}}function Us(t){let e=t._readableState;B("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(B("emitReadable",e.flowing),e.emittedReadable=!0,Ve.nextTick(ky,t))}function ky(t){let e=t._readableState;B("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&!e.errored&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,qy(t)}function js(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,Ve.nextTick(CP,t,e))}function CP(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){let r=e.length;if(B("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}k.prototype._read=function(t){throw new gP("_read()")};k.prototype.pipe=function(t,e){let r=this,i=this._readableState;i.pipes.length===1&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new nP(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(t),B("pipe count=%d opts=%j",i.pipes.length,e);let s=(!e||e.end!==!1)&&t!==Ve.stdout&&t!==Ve.stderr?a:E;i.endEmitted?Ve.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(y,b){B("onunpipe"),y===r&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,f())}function a(){B("onend"),t.end()}let l,u=!1;function f(){B("cleanup"),t.removeListener("close",m),t.removeListener("finish",p),l&&t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",E),r.removeListener("data",h),u=!0,l&&i.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}function c(){u||(i.pipes.length===1&&i.pipes[0]===t?(B("false write response, pause",0),i.awaitDrainWriters=t,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(t)&&(B("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(t)),r.pause()),l||(l=kP(r,t),t.on("drain",l))}r.on("data",h);function h(y){B("ondata");let b=t.write(y);B("dest.write",b),b===!1&&c()}function d(y){if(B("onerror",y),E(),t.removeListener("error",d),t.listenerCount("error")===0){let b=t._writableState||t._readableState;b&&!b.errorEmitted?Br(t,y):t.emit("error",y)}}uP(t,"error",d);function m(){t.removeListener("finish",p),E()}t.once("close",m);function p(){B("onfinish"),t.removeListener("close",m),E()}t.once("finish",p);function E(){B("unpipe"),r.unpipe(t)}return t.emit("pipe",r),t.writableNeedDrain===!0?c():i.flowing||(B("pipe resume"),r.resume()),t};function kP(t,e){return function(){let i=t._readableState;i.awaitDrainWriters===e?(B("pipeOnDrain",1),i.awaitDrainWriters=null):i.multiAwaitDrain&&(B("pipeOnDrain",i.awaitDrainWriters.size),i.awaitDrainWriters.delete(e)),(!i.awaitDrainWriters||i.awaitDrainWriters.size===0)&&t.listenerCount("data")&&t.resume()}}k.prototype.unpipe=function(t){let e=this._readableState,r={hasUnpiped:!1};if(e.pipes.length===0)return this;if(!t){let n=e.pipes;e.pipes=[],this.pause();for(let s=0;s<n.length;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}let i=JD(e.pipes,t);return i===-1?this:(e.pipes.splice(i,1),e.pipes.length===0&&this.pause(),t.emit("unpipe",this,r),this)};k.prototype.on=function(t,e){let r=kt.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,B("on readable",i.length,i.reading),i.length?Us(this):i.reading||Ve.nextTick(MP,this)),r};k.prototype.addListener=k.prototype.on;k.prototype.removeListener=function(t,e){let r=kt.prototype.removeListener.call(this,t,e);return t==="readable"&&Ve.nextTick(My,this),r};k.prototype.off=k.prototype.removeListener;k.prototype.removeAllListeners=function(t){let e=kt.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&Ve.nextTick(My,this),e};function My(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[sr]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function MP(t){B("readable nexttick read 0"),t.read(0)}k.prototype.resume=function(){let t=this._readableState;return t.flowing||(B("resume"),t.flowing=!t.readableListening,qP(this,t)),t[sr]=!1,this};function qP(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ve.nextTick(FP,t,e))}function FP(t,e){B("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),qy(t),e.flowing&&!e.reading&&t.read(0)}k.prototype.pause=function(){return B("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(B("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[sr]=!0,this};function qy(t){let e=t._readableState;for(B("flow",e.flowing);e.flowing&&t.read()!==null;);}k.prototype.wrap=function(t){let e=!1;t.on("data",i=>{!this.push(i)&&t.pause&&(e=!0,t.pause())}),t.on("end",()=>{this.push(null)}),t.on("error",i=>{Br(this,i)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=iP(t);for(let i=1;i<r.length;i++){let n=r[i];this[n]===void 0&&typeof t[n]=="function"&&(this[n]=t[n].bind(t))}return this};k.prototype[oP]=function(){return Fy(this)};k.prototype.iterator=function(t){return t!==void 0&&wP(t,"options"),Fy(this,t)};function Fy(t,e){typeof t.read!="function"&&(t=k.wrap(t,{objectMode:!0}));let r=jP(t,e);return r.stream=t,r}async function*jP(t,e){let r=ru;function i(o){this===t?(r(),r=ru):r=o}t.on("readable",i);let n,s=Oy(t,{writable:!1},o=>{n=o?xy(n,o):null,r(),r=ru});try{for(;;){let o=t.destroyed?null:t.read();if(o!==null)yield o;else{if(n)throw n;if(n===null)return;await new Ay(i)}}}catch(o){throw n=xy(n,o),n}finally{(n||e?.destroyOnReturn!==!1)&&(n===void 0||t._readableState.autoDestroy)?Wr.destroyer(t,null):(t.off("readable",i),s())}}lu(k.prototype,{readable:{__proto__:null,get(){let t=this._readableState;return!!t&&t.readable!==!1&&!t.destroyed&&!t.errorEmitted&&!t.endEmitted},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});lu(Bs.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[sr]!==!1},set(t){this[sr]=!!t}}});k._fromList=jy;function jy(t,e){if(e.length===0)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function nu(t){let e=t._readableState;B("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,Ve.nextTick(BP,e,t))}function BP(t,e){if(B("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&t.length===0){if(t.endEmitted=!0,e.emit("end"),e.writable&&e.allowHalfOpen===!1)Ve.nextTick(UP,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}function UP(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}k.from=function(t,e){return SP(k,t,e)};var su;function By(){return su===void 0&&(su={}),su}k.fromWeb=function(t,e){return By().newStreamReadableFromReadableStream(t,e)};k.toWeb=function(t,e){return By().newReadableStreamFromStreamReadable(t,e)};k.wrap=function(t,e){var r,i;return new k({objectMode:(r=(i=t.readableObjectMode)!==null&&i!==void 0?i:t.objectMode)!==null&&r!==void 0?r:!0,...e,destroy(n,s){Wr.destroyer(t,n),s(n)}}).wrap(t)}});var Hs=g((C4,Jy)=>{"use strict";var or=Nt(),{ArrayPrototypeSlice:zy,Error:WP,FunctionPrototypeSymbolHasInstance:$y,ObjectDefineProperty:Hy,ObjectDefineProperties:GP,ObjectSetPrototypeOf:Vy,StringPrototypeToLowerCase:zP,Symbol:$P,SymbolHasInstance:HP}=ie();Jy.exports=se;se.WritableState=Zi;var{EventEmitter:VP}=P("events"),Yi=Ns().Stream,{Buffer:Ws}=P("buffer"),$s=ir(),{addAbortSignal:YP}=Gi(),{getHighWaterMark:KP,getDefaultHighWaterMark:ZP}=zi(),{ERR_INVALID_ARG_TYPE:QP,ERR_METHOD_NOT_IMPLEMENTED:XP,ERR_MULTIPLE_CALLBACK:Yy,ERR_STREAM_CANNOT_PIPE:JP,ERR_STREAM_DESTROYED:Ki,ERR_STREAM_ALREADY_FINISHED:eL,ERR_STREAM_NULL_VALUES:tL,ERR_STREAM_WRITE_AFTER_END:rL,ERR_UNKNOWN_ENCODING:Ky}=xe().codes,{errorOrDestroy:Gr}=$s;Vy(se.prototype,Yi.prototype);Vy(se,Yi);function cu(){}var zr=$P("kOnFinished");function Zi(t,e,r){typeof r!="boolean"&&(r=e instanceof st()),this.objectMode=!!(t&&t.objectMode),r&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?KP(this,t,"writableHighWaterMark",r):ZP(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let i=!!(t&&t.decodeStrings===!1);this.decodeStrings=!i,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=nL.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,zs(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||t.emitClose!==!1,this.autoDestroy=!t||t.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[zr]=[]}function zs(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}Zi.prototype.getBuffer=function(){return zy(this.buffered,this.bufferedIndex)};Hy(Zi.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function se(t){let e=this instanceof st();if(!e&&!$y(se,this))return new se(t);this._writableState=new Zi(t,this,e),t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&YP(t.signal,this)),Yi.call(this,t),$s.construct(this,()=>{let r=this._writableState;r.writing||du(this,r),pu(this,r)})}Hy(se,HP,{__proto__:null,value:function(t){return $y(this,t)?!0:this!==se?!1:t&&t._writableState instanceof Zi}});se.prototype.pipe=function(){Gr(this,new JP)};function Zy(t,e,r,i){let n=t._writableState;if(typeof r=="function")i=r,r=n.defaultEncoding;else{if(!r)r=n.defaultEncoding;else if(r!=="buffer"&&!Ws.isEncoding(r))throw new Ky(r);typeof i!="function"&&(i=cu)}if(e===null)throw new tL;if(!n.objectMode)if(typeof e=="string")n.decodeStrings!==!1&&(e=Ws.from(e,r),r="buffer");else if(e instanceof Ws)r="buffer";else if(Yi._isUint8Array(e))e=Yi._uint8ArrayToBuffer(e),r="buffer";else throw new QP("chunk",["string","Buffer","Uint8Array"],e);let s;return n.ending?s=new rL:n.destroyed&&(s=new Ki("write")),s?(or.nextTick(i,s),Gr(t,s,!0),s):(n.pendingcb++,iL(t,n,e,r,i))}se.prototype.write=function(t,e,r){return Zy(this,t,e,r)===!0};se.prototype.cork=function(){this._writableState.corked++};se.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||du(this,t))};se.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=zP(e)),!Ws.isEncoding(e))throw new Ky(e);return this._writableState.defaultEncoding=e,this};function iL(t,e,r,i,n){let s=e.objectMode?1:r.length;e.length+=s;let o=e.length<e.highWaterMark;return o||(e.needDrain=!0),e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:r,encoding:i,callback:n}),e.allBuffers&&i!=="buffer"&&(e.allBuffers=!1),e.allNoop&&n!==cu&&(e.allNoop=!1)):(e.writelen=s,e.writecb=n,e.writing=!0,e.sync=!0,t._write(r,i,e.onwrite),e.sync=!1),o&&!e.errored&&!e.destroyed}function Wy(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Ki("write")):r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function Gy(t,e,r,i){--e.pendingcb,i(r),hu(e),Gr(t,r)}function nL(t,e){let r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function"){Gr(t,new Yy);return}r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e?(e.stack,r.errored||(r.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),i?or.nextTick(Gy,t,r,e,n):Gy(t,r,e,n)):(r.buffered.length>r.bufferedIndex&&du(t,r),i?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===n?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:n,stream:t,state:r},or.nextTick(sL,r.afterWriteTickInfo)):Qy(t,r,1,n))}function sL({stream:t,state:e,count:r,cb:i}){return e.afterWriteTickInfo=null,Qy(t,e,r,i)}function Qy(t,e,r,i){for(!e.ending&&!t.destroyed&&e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));r-- >0;)e.pendingcb--,i();e.destroyed&&hu(e),pu(t,e)}function hu(t){if(t.writing)return;for(let n=t.bufferedIndex;n<t.buffered.length;++n){var e;let{chunk:s,callback:o}=t.buffered[n],a=t.objectMode?1:s.length;t.length-=a,o((e=t.errored)!==null&&e!==void 0?e:new Ki("write"))}let r=t[zr].splice(0);for(let n=0;n<r.length;n++){var i;r[n]((i=t.errored)!==null&&i!==void 0?i:new Ki("end"))}zs(t)}function du(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;let{buffered:r,bufferedIndex:i,objectMode:n}=e,s=r.length-i;if(!s)return;let o=i;if(e.bufferProcessing=!0,s>1&&t._writev){e.pendingcb-=s-1;let a=e.allNoop?cu:u=>{for(let f=o;f<r.length;++f)r[f].callback(u)},l=e.allNoop&&o===0?r:zy(r,o);l.allBuffers=e.allBuffers,Wy(t,e,!0,e.length,l,"",a),zs(e)}else{do{let{chunk:a,encoding:l,callback:u}=r[o];r[o++]=null;let f=n?1:a.length;Wy(t,e,!1,f,a,l,u)}while(o<r.length&&!e.writing);o===r.length?zs(e):o>256?(r.splice(0,o),e.bufferedIndex=0):e.bufferedIndex=o}e.bufferProcessing=!1}se.prototype._write=function(t,e,r){if(this._writev)this._writev([{chunk:t,encoding:e}],r);else throw new XP("_write()")};se.prototype._writev=null;se.prototype.end=function(t,e,r){let i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null);let n;if(t!=null){let s=Zy(this,t,e);s instanceof WP&&(n=s)}return i.corked&&(i.corked=1,this.uncork()),n||(!i.errored&&!i.ending?(i.ending=!0,pu(this,i,!0),i.ended=!0):i.finished?n=new eL("end"):i.destroyed&&(n=new Ki("end"))),typeof r=="function"&&(n||i.finished?or.nextTick(r,n):i[zr].push(r)),this};function Gs(t){return t.ending&&!t.destroyed&&t.constructed&&t.length===0&&!t.errored&&t.buffered.length===0&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function oL(t,e){let r=!1;function i(n){if(r){Gr(t,n??Yy());return}if(r=!0,e.pendingcb--,n){let s=e[zr].splice(0);for(let o=0;o<s.length;o++)s[o](n);Gr(t,n,e.sync)}else Gs(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,or.nextTick(fu,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(n){i(n)}e.sync=!1}function aL(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,oL(t,e)):(e.prefinished=!0,t.emit("prefinish")))}function pu(t,e,r){Gs(e)&&(aL(t,e),e.pendingcb===0&&(r?(e.pendingcb++,or.nextTick((i,n)=>{Gs(n)?fu(i,n):n.pendingcb--},t,e)):Gs(e)&&(e.pendingcb++,fu(t,e))))}function fu(t,e){e.pendingcb--,e.finished=!0;let r=e[zr].splice(0);for(let i=0;i<r.length;i++)r[i]();if(t.emit("finish"),e.autoDestroy){let i=t._readableState;(!i||i.autoDestroy&&(i.endEmitted||i.readable===!1))&&t.destroy()}}GP(se.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){let t=this._writableState;return!!t&&t.writable!==!1&&!t.destroyed&&!t.errored&&!t.ending&&!t.ended},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let t=this._writableState;return t?!t.destroyed&&!t.ending&&t.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var lL=$s.destroy;se.prototype.destroy=function(t,e){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[zr].length)&&or.nextTick(hu,r),lL.call(this,t,e),this};se.prototype._undestroy=$s.undestroy;se.prototype._destroy=function(t,e){e(t)};se.prototype[VP.captureRejectionSymbol]=function(t){this.destroy(t)};var uu;function Xy(){return uu===void 0&&(uu={}),uu}se.fromWeb=function(t,e){return Xy().newStreamWritableFromWritableStream(t,e)};se.toWeb=function(t){return Xy().newWritableStreamFromStreamWritable(t)}});var pm=g((k4,dm)=>{"use strict";var gu=Nt(),uL=P("buffer"),{isReadable:fL,isWritable:cL,isIterable:em,isNodeStream:hL,isReadableNodeStream:tm,isWritableNodeStream:rm,isDuplexNodeStream:dL,isReadableStream:im,isWritableStream:nm}=rt(),sm=yt(),{AbortError:cm,codes:{ERR_INVALID_ARG_TYPE:pL,ERR_INVALID_RETURN_VALUE:om}}=xe(),{destroyer:Hr}=ir(),gL=st(),hm=Vi(),_L=Hs(),{createDeferredPromise:am}=Oe(),lm=eu(),um=globalThis.Blob||uL.Blob,yL=typeof um<"u"?function(e){return e instanceof um}:function(e){return!1},mL=globalThis.AbortController||Mr().AbortController,{FunctionPrototypeCall:fm}=ie(),Mt=class extends gL{constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};dm.exports=function t(e,r){if(dL(e))return e;if(tm(e))return $r({readable:e});if(rm(e))return $r({writable:e});if(hL(e))return $r({writable:!1,readable:!1});if(im(e))return $r({readable:hm.fromWeb(e)});if(nm(e))return $r({writable:_L.fromWeb(e)});if(typeof e=="function"){let{value:n,write:s,final:o,destroy:a}=bL(e);if(em(n))return lm(Mt,n,{objectMode:!0,write:s,final:o,destroy:a});let l=n?.then;if(typeof l=="function"){let u,f=fm(l,n,c=>{if(c!=null)throw new om("nully","body",c)},c=>{Hr(u,c)});return u=new Mt({objectMode:!0,readable:!1,write:s,final(c){o(async()=>{try{await f,gu.nextTick(c,null)}catch(h){gu.nextTick(c,h)}})},destroy:a})}throw new om("Iterable, AsyncIterable or AsyncFunction",r,n)}if(yL(e))return t(e.arrayBuffer());if(em(e))return lm(Mt,e,{objectMode:!0,writable:!1});if(im(e?.readable)&&nm(e?.writable))return Mt.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let n=e!=null&&e.readable?tm(e?.readable)?e?.readable:t(e.readable):void 0,s=e!=null&&e.writable?rm(e?.writable)?e?.writable:t(e.writable):void 0;return $r({readable:n,writable:s})}let i=e?.then;if(typeof i=="function"){let n;return fm(i,e,s=>{s!=null&&n.push(s),n.push(null)},s=>{Hr(n,s)}),n=new Mt({objectMode:!0,writable:!1,read(){}})}throw new pL(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function bL(t){let{promise:e,resolve:r}=am(),i=new mL,n=i.signal;return{value:t((async function*(){for(;;){let o=e;e=null;let{chunk:a,done:l,cb:u}=await o;if(gu.nextTick(u),l)return;if(n.aborted)throw new cm(void 0,{cause:n.reason});({promise:e,resolve:r}=am()),yield a}})(),{signal:n}),write(o,a,l){let u=r;r=null,u({chunk:o,done:!1,cb:l})},final(o){let a=r;r=null,a({done:!0,cb:o})},destroy(o,a){i.abort(),a(o)}}}function $r(t){let e=t.readable&&typeof t.readable.read!="function"?hm.wrap(t.readable):t.readable,r=t.writable,i=!!fL(e),n=!!cL(r),s,o,a,l,u;function f(c){let h=l;l=null,h?h(c):c&&u.destroy(c)}return u=new Mt({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:i,writable:n}),n&&(sm(r,c=>{n=!1,c&&Hr(e,c),f(c)}),u._write=function(c,h,d){r.write(c,h)?d():s=d},u._final=function(c){r.end(),o=c},r.on("drain",function(){if(s){let c=s;s=null,c()}}),r.on("finish",function(){if(o){let c=o;o=null,c()}})),i&&(sm(e,c=>{i=!1,c&&Hr(e,c),f(c)}),e.on("readable",function(){if(a){let c=a;a=null,c()}}),e.on("end",function(){u.push(null)}),u._read=function(){for(;;){let c=e.read();if(c===null){a=u._read;return}if(!u.push(c))return}}),u._destroy=function(c,h){!c&&l!==null&&(c=new cm),a=null,s=null,o=null,l===null?h(c):(l=h,Hr(r,c),Hr(e,c))},u}});var st=g((M4,ym)=>{"use strict";var{ObjectDefineProperties:wL,ObjectGetOwnPropertyDescriptor:mt,ObjectKeys:SL,ObjectSetPrototypeOf:gm}=ie();ym.exports=Ye;var mu=Vi(),Be=Hs();gm(Ye.prototype,mu.prototype);gm(Ye,mu);{let t=SL(Be.prototype);for(let e=0;e<t.length;e++){let r=t[e];Ye.prototype[r]||(Ye.prototype[r]=Be.prototype[r])}}function Ye(t){if(!(this instanceof Ye))return new Ye(t);mu.call(this,t),Be.call(this,t),t?(this.allowHalfOpen=t.allowHalfOpen!==!1,t.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),t.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}wL(Ye.prototype,{writable:{__proto__:null,...mt(Be.prototype,"writable")},writableHighWaterMark:{__proto__:null,...mt(Be.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...mt(Be.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...mt(Be.prototype,"writableBuffer")},writableLength:{__proto__:null,...mt(Be.prototype,"writableLength")},writableFinished:{__proto__:null,...mt(Be.prototype,"writableFinished")},writableCorked:{__proto__:null,...mt(Be.prototype,"writableCorked")},writableEnded:{__proto__:null,...mt(Be.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...mt(Be.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}});var _u;function _m(){return _u===void 0&&(_u={}),_u}Ye.fromWeb=function(t,e){return _m().newStreamDuplexFromReadableWritablePair(t,e)};Ye.toWeb=function(t){return _m().newReadableWritablePairFromDuplex(t)};var yu;Ye.from=function(t){return yu||(yu=pm()),yu(t,"body")}});var Su=g((q4,bm)=>{"use strict";var{ObjectSetPrototypeOf:mm,Symbol:EL}=ie();bm.exports=bt;var{ERR_METHOD_NOT_IMPLEMENTED:vL}=xe().codes,wu=st(),{getHighWaterMark:xL}=zi();mm(bt.prototype,wu.prototype);mm(bt,wu);var Qi=EL("kCallback");function bt(t){if(!(this instanceof bt))return new bt(t);let e=t?xL(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),wu.call(this,t),this._readableState.sync=!1,this[Qi]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",TL)}function bu(t){typeof this._flush=="function"&&!this.destroyed?this._flush((e,r)=>{if(e){t?t(e):this.destroy(e);return}r!=null&&this.push(r),this.push(null),t&&t()}):(this.push(null),t&&t())}function TL(){this._final!==bu&&bu.call(this)}bt.prototype._final=bu;bt.prototype._transform=function(t,e,r){throw new vL("_transform()")};bt.prototype._write=function(t,e,r){let i=this._readableState,n=this._writableState,s=i.length;this._transform(t,e,(o,a)=>{if(o){r(o);return}a!=null&&this.push(a),n.ended||s===i.length||i.length<i.highWaterMark?r():this[Qi]=r})};bt.prototype._read=function(){if(this[Qi]){let t=this[Qi];this[Qi]=null,t()}}});var vu=g((F4,Sm)=>{"use strict";var{ObjectSetPrototypeOf:wm}=ie();Sm.exports=Vr;var Eu=Su();wm(Vr.prototype,Eu.prototype);wm(Vr,Eu);function Vr(t){if(!(this instanceof Vr))return new Vr(t);Eu.call(this,t)}Vr.prototype._transform=function(t,e,r){r(null,t)}});var Zs=g((j4,Rm)=>{"use strict";var Xi=Nt(),{ArrayIsArray:RL,Promise:AL,SymbolAsyncIterator:OL,SymbolDispose:IL}=ie(),Ks=yt(),{once:DL}=Oe(),PL=ir(),Em=st(),{aggregateTwoErrors:LL,codes:{ERR_INVALID_ARG_TYPE:Lu,ERR_INVALID_RETURN_VALUE:xu,ERR_MISSING_ARGS:NL,ERR_STREAM_DESTROYED:CL,ERR_STREAM_PREMATURE_CLOSE:kL},AbortError:ML}=xe(),{validateFunction:qL,validateAbortSignal:FL}=Fr(),{isIterable:ar,isReadable:Tu,isReadableNodeStream:Ys,isNodeStream:vm,isTransformStream:Yr,isWebStream:jL,isReadableStream:Ru,isReadableFinished:BL}=rt(),UL=globalThis.AbortController||Mr().AbortController,Au,Ou,Iu;function xm(t,e,r){let i=!1;t.on("close",()=>{i=!0});let n=Ks(t,{readable:e,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,PL.destroyer(t,s||new CL("pipe")))},cleanup:n}}function WL(t){return qL(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function Du(t){if(ar(t))return t;if(Ys(t))return GL(t);throw new Lu("val",["Readable","Iterable","AsyncIterable"],t)}async function*GL(t){Ou||(Ou=Vi()),yield*Ou.prototype[OL].call(t)}async function Vs(t,e,r,{end:i}){let n,s=null,o=u=>{if(u&&(n=u),s){let f=s;s=null,f()}},a=()=>new AL((u,f)=>{n?f(n):s=()=>{n?f(n):u()}});e.on("drain",o);let l=Ks(e,{readable:!1},o);try{e.writableNeedDrain&&await a();for await(let u of t)e.write(u)||await a();i&&(e.end(),await a()),r()}catch(u){r(n!==u?LL(n,u):u)}finally{l(),e.off("drain",o)}}async function Pu(t,e,r,{end:i}){Yr(e)&&(e=e.writable);let n=e.getWriter();try{for await(let s of t)await n.ready,n.write(s).catch(()=>{});await n.ready,i&&await n.close(),r()}catch(s){try{await n.abort(s),r(s)}catch(o){r(o)}}}function zL(...t){return Tm(t,DL(WL(t)))}function Tm(t,e,r){if(t.length===1&&RL(t[0])&&(t=t[0]),t.length<2)throw new NL("streams");let i=new UL,n=i.signal,s=r?.signal,o=[];FL(s,"options.signal");function a(){m(new ML)}Iu=Iu||Oe().addAbortListener;let l;s&&(l=Iu(s,a));let u,f,c=[],h=0;function d(v){m(v,--h===0)}function m(v,S){var T;if(v&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=v),!(!u&&!S)){for(;c.length;)c.shift()(u);(T=l)===null||T===void 0||T[IL](),i.abort(),S&&(u||o.forEach(D=>D()),Xi.nextTick(e,u,f))}}let p;for(let v=0;v<t.length;v++){let S=t[v],T=v<t.length-1,D=v>0,x=T||r?.end!==!1,O=v===t.length-1;if(vm(S)){let w=function(R){R&&R.name!=="AbortError"&&R.code!=="ERR_STREAM_PREMATURE_CLOSE"&&d(R)};var b=w;if(x){let{destroy:R,cleanup:A}=xm(S,T,D);c.push(R),Tu(S)&&O&&o.push(A)}S.on("error",w),Tu(S)&&O&&o.push(()=>{S.removeListener("error",w)})}if(v===0)if(typeof S=="function"){if(p=S({signal:n}),!ar(p))throw new xu("Iterable, AsyncIterable or Stream","source",p)}else ar(S)||Ys(S)||Yr(S)?p=S:p=Em.from(S);else if(typeof S=="function"){if(Yr(p)){var E;p=Du((E=p)===null||E===void 0?void 0:E.readable)}else p=Du(p);if(p=S(p,{signal:n}),T){if(!ar(p,!0))throw new xu("AsyncIterable",`transform[${v-1}]`,p)}else{var y;Au||(Au=vu());let w=new Au({objectMode:!0}),R=(y=p)===null||y===void 0?void 0:y.then;if(typeof R=="function")h++,R.call(p,G=>{f=G,G!=null&&w.write(G),x&&w.end(),Xi.nextTick(d)},G=>{w.destroy(G),Xi.nextTick(d,G)});else if(ar(p,!0))h++,Vs(p,w,d,{end:x});else if(Ru(p)||Yr(p)){let G=p.readable||p;h++,Vs(G,w,d,{end:x})}else throw new xu("AsyncIterable or Promise","destination",p);p=w;let{destroy:A,cleanup:N}=xm(p,!1,!0);c.push(A),O&&o.push(N)}}else if(vm(S)){if(Ys(p)){h+=2;let w=$L(p,S,d,{end:x});Tu(S)&&O&&o.push(w)}else if(Yr(p)||Ru(p)){let w=p.readable||p;h++,Vs(w,S,d,{end:x})}else if(ar(p))h++,Vs(p,S,d,{end:x});else throw new Lu("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],p);p=S}else if(jL(S)){if(Ys(p))h++,Pu(Du(p),S,d,{end:x});else if(Ru(p)||ar(p))h++,Pu(p,S,d,{end:x});else if(Yr(p))h++,Pu(p.readable,S,d,{end:x});else throw new Lu("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],p);p=S}else p=Em.from(S)}return(n!=null&&n.aborted||s!=null&&s.aborted)&&Xi.nextTick(a),p}function $L(t,e,r,{end:i}){let n=!1;if(e.on("close",()=>{n||r(new kL)}),t.pipe(e,{end:!1}),i){let o=function(){n=!0,e.end()};var s=o;BL(t)?Xi.nextTick(o):t.once("end",o)}else r();return Ks(t,{readable:!0,writable:!1},o=>{let a=t._readableState;o&&o.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted?t.once("end",r).once("error",r):r(o)}),Ks(e,{readable:!1,writable:!0},r)}Rm.exports={pipelineImpl:Tm,pipeline:zL}});var Cu=g((B4,Lm)=>{"use strict";var{pipeline:HL}=Zs(),Qs=st(),{destroyer:VL}=ir(),{isNodeStream:Xs,isReadable:Am,isWritable:Om,isWebStream:Nu,isTransformStream:lr,isWritableStream:Im,isReadableStream:Dm}=rt(),{AbortError:YL,codes:{ERR_INVALID_ARG_VALUE:Pm,ERR_MISSING_ARGS:KL}}=xe(),ZL=yt();Lm.exports=function(...e){if(e.length===0)throw new KL("streams");if(e.length===1)return Qs.from(e[0]);let r=[...e];if(typeof e[0]=="function"&&(e[0]=Qs.from(e[0])),typeof e[e.length-1]=="function"){let d=e.length-1;e[d]=Qs.from(e[d])}for(let d=0;d<e.length;++d)if(!(!Xs(e[d])&&!Nu(e[d]))){if(d<e.length-1&&!(Am(e[d])||Dm(e[d])||lr(e[d])))throw new Pm(`streams[${d}]`,r[d],"must be readable");if(d>0&&!(Om(e[d])||Im(e[d])||lr(e[d])))throw new Pm(`streams[${d}]`,r[d],"must be writable")}let i,n,s,o,a;function l(d){let m=o;o=null,m?m(d):d?a.destroy(d):!h&&!c&&a.destroy()}let u=e[0],f=HL(e,l),c=!!(Om(u)||Im(u)||lr(u)),h=!!(Am(f)||Dm(f)||lr(f));if(a=new Qs({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(f!=null&&f.readableObjectMode),writable:c,readable:h}),c){if(Xs(u))a._write=function(m,p,E){u.write(m,p)?E():i=E},a._final=function(m){u.end(),n=m},u.on("drain",function(){if(i){let m=i;i=null,m()}});else if(Nu(u)){let p=(lr(u)?u.writable:u).getWriter();a._write=async function(E,y,b){try{await p.ready,p.write(E).catch(()=>{}),b()}catch(v){b(v)}},a._final=async function(E){try{await p.ready,p.close().catch(()=>{}),n=E}catch(y){E(y)}}}let d=lr(f)?f.readable:f;ZL(d,()=>{if(n){let m=n;n=null,m()}})}if(h){if(Xs(f))f.on("readable",function(){if(s){let d=s;s=null,d()}}),f.on("end",function(){a.push(null)}),a._read=function(){for(;;){let d=f.read();if(d===null){s=a._read;return}if(!a.push(d))return}};else if(Nu(f)){let m=(lr(f)?f.readable:f).getReader();a._read=async function(){for(;;)try{let{value:p,done:E}=await m.read();if(!a.push(p))return;if(E){a.push(null);return}}catch{return}}}}return a._destroy=function(d,m){!d&&o!==null&&(d=new YL),s=null,i=null,n=null,o===null?m(d):(o=m,Xs(f)&&VL(f,d))},a}});var Wm=g((U4,qu)=>{"use strict";var QL=globalThis.AbortController||Mr().AbortController,{codes:{ERR_INVALID_ARG_VALUE:XL,ERR_INVALID_ARG_TYPE:Ji,ERR_MISSING_ARGS:JL,ERR_OUT_OF_RANGE:eN},AbortError:ot}=xe(),{validateAbortSignal:ur,validateInteger:Nm,validateObject:fr}=Fr(),tN=ie().Symbol("kWeak"),rN=ie().Symbol("kResistStopPropagation"),{finished:iN}=yt(),nN=Cu(),{addAbortSignalNoValidate:sN}=Gi(),{isWritable:oN,isNodeStream:aN}=rt(),{deprecate:lN}=Oe(),{ArrayPrototypePush:uN,Boolean:fN,MathFloor:Cm,Number:cN,NumberIsNaN:hN,Promise:km,PromiseReject:Mm,PromiseResolve:dN,PromisePrototypeThen:qm,Symbol:jm}=ie(),Js=jm("kEmpty"),Fm=jm("kEof");function pN(t,e){if(e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),aN(t)&&!oN(t))throw new XL("stream",t,"must be writable");let r=nN(this,t);return e!=null&&e.signal&&sN(e.signal,r),r}function eo(t,e){if(typeof t!="function")throw new Ji("fn",["Function","AsyncFunction"],t);e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal");let r=1;e?.concurrency!=null&&(r=Cm(e.concurrency));let i=r-1;return e?.highWaterMark!=null&&(i=Cm(e.highWaterMark)),Nm(r,"options.concurrency",1),Nm(i,"options.highWaterMark",0),i+=r,async function*(){let s=Oe().AbortSignalAny([e?.signal].filter(fN)),o=this,a=[],l={signal:s},u,f,c=!1,h=0;function d(){c=!0,m()}function m(){h-=1,p()}function p(){f&&!c&&h<r&&a.length<i&&(f(),f=null)}async function E(){try{for await(let y of o){if(c)return;if(s.aborted)throw new ot;try{if(y=t(y,l),y===Js)continue;y=dN(y)}catch(b){y=Mm(b)}h+=1,qm(y,m,d),a.push(y),u&&(u(),u=null),!c&&(a.length>=i||h>=r)&&await new km(b=>{f=b})}a.push(Fm)}catch(y){let b=Mm(y);qm(b,m,d),a.push(b)}finally{c=!0,u&&(u(),u=null)}}E();try{for(;;){for(;a.length>0;){let y=await a[0];if(y===Fm)return;if(s.aborted)throw new ot;y!==Js&&(yield y),a.shift(),p()}await new km(y=>{u=y})}}finally{c=!0,f&&(f(),f=null)}}.call(this)}function gN(t=void 0){return t!=null&&fr(t,"options"),t?.signal!=null&&ur(t.signal,"options.signal"),async function*(){let r=0;for await(let n of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new ot({cause:t.signal.reason});yield[r++,n]}}.call(this)}async function Bm(t,e=void 0){for await(let r of Mu.call(this,t,e))return!0;return!1}async function _N(t,e=void 0){if(typeof t!="function")throw new Ji("fn",["Function","AsyncFunction"],t);return!await Bm.call(this,async(...r)=>!await t(...r),e)}async function yN(t,e){for await(let r of Mu.call(this,t,e))return r}async function mN(t,e){if(typeof t!="function")throw new Ji("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n),Js}for await(let i of eo.call(this,r,e));}function Mu(t,e){if(typeof t!="function")throw new Ji("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n)?i:Js}return eo.call(this,r,e)}var ku=class extends JL{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function bN(t,e,r){var i;if(typeof t!="function")throw new Ji("reducer",["Function","AsyncFunction"],t);r!=null&&fr(r,"options"),r?.signal!=null&&ur(r.signal,"options.signal");let n=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){let u=new ot(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await iN(this.destroy(u)),u}let s=new QL,o=s.signal;if(r!=null&&r.signal){let u={once:!0,[tN]:this,[rN]:!0};r.signal.addEventListener("abort",()=>s.abort(),u)}let a=!1;try{for await(let u of this){var l;if(a=!0,r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ot;n?e=await t(e,u,{signal:o}):(e=u,n=!0)}if(!a&&!n)throw new ku}finally{s.abort()}return e}async function wN(t){t!=null&&fr(t,"options"),t?.signal!=null&&ur(t.signal,"options.signal");let e=[];for await(let i of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new ot(void 0,{cause:t.signal.reason});uN(e,i)}return e}function SN(t,e){let r=eo.call(this,t,e);return async function*(){for await(let n of r)yield*n}.call(this)}function Um(t){if(t=cN(t),hN(t))return 0;if(t<0)throw new eN("number",">= 0",t);return t}function EN(t,e=void 0){return e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),t=Um(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ot;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ot;t--<=0&&(yield s)}}.call(this)}function vN(t,e=void 0){return e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),t=Um(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ot;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ot;if(t-- >0&&(yield s),t<=0)return}}.call(this)}qu.exports.streamReturningOperators={asIndexedPairs:lN(gN,"readable.asIndexedPairs will be removed in a future version."),drop:EN,filter:Mu,flatMap:SN,map:eo,take:vN,compose:pN};qu.exports.promiseReturningOperators={every:_N,forEach:mN,reduce:bN,toArray:wN,some:Bm,find:yN}});var Fu=g((W4,Gm)=>{"use strict";var{ArrayPrototypePop:xN,Promise:TN}=ie(),{isIterable:RN,isNodeStream:AN,isWebStream:ON}=rt(),{pipelineImpl:IN}=Zs(),{finished:DN}=yt();ju();function PN(...t){return new TN((e,r)=>{let i,n,s=t[t.length-1];if(s&&typeof s=="object"&&!AN(s)&&!RN(s)&&!ON(s)){let o=xN(t);i=o.signal,n=o.end}IN(t,(o,a)=>{o?r(o):e(a)},{signal:i,end:n})})}Gm.exports={finished:DN,pipeline:PN}});var ju=g((G4,Xm)=>{"use strict";var{Buffer:LN}=P("buffer"),{ObjectDefineProperty:wt,ObjectKeys:Hm,ReflectApply:Vm}=ie(),{promisify:{custom:Ym}}=Oe(),{streamReturningOperators:zm,promiseReturningOperators:$m}=Wm(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:Km}}=xe(),NN=Cu(),{setDefaultHighWaterMark:CN,getDefaultHighWaterMark:kN}=zi(),{pipeline:Zm}=Zs(),{destroyer:MN}=ir(),Qm=yt(),Bu=Fu(),en=rt(),ee=Xm.exports=Ns().Stream;ee.isDestroyed=en.isDestroyed;ee.isDisturbed=en.isDisturbed;ee.isErrored=en.isErrored;ee.isReadable=en.isReadable;ee.isWritable=en.isWritable;ee.Readable=Vi();for(let t of Hm(zm)){let r=function(...i){if(new.target)throw Km();return ee.Readable.from(Vm(e,this,i))},e=zm[t];wt(r,"name",{__proto__:null,value:e.name}),wt(r,"length",{__proto__:null,value:e.length}),wt(ee.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}for(let t of Hm($m)){let r=function(...i){if(new.target)throw Km();return Vm(e,this,i)},e=$m[t];wt(r,"name",{__proto__:null,value:e.name}),wt(r,"length",{__proto__:null,value:e.length}),wt(ee.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}ee.Writable=Hs();ee.Duplex=st();ee.Transform=Su();ee.PassThrough=vu();ee.pipeline=Zm;var{addAbortSignal:qN}=Gi();ee.addAbortSignal=qN;ee.finished=Qm;ee.destroy=MN;ee.compose=NN;ee.setDefaultHighWaterMark=CN;ee.getDefaultHighWaterMark=kN;wt(ee,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return Bu}});wt(Zm,Ym,{__proto__:null,enumerable:!0,get(){return Bu.pipeline}});wt(Qm,Ym,{__proto__:null,enumerable:!0,get(){return Bu.finished}});ee.Stream=ee;ee._isUint8Array=function(e){return e instanceof Uint8Array};ee._uint8ArrayToBuffer=function(e){return LN.from(e.buffer,e.byteOffset,e.byteLength)}});var cr=g((z4,j)=>{"use strict";var he=P("stream");if(he&&process.env.READABLE_STREAM==="disable"){let t=he.promises;j.exports._uint8ArrayToBuffer=he._uint8ArrayToBuffer,j.exports._isUint8Array=he._isUint8Array,j.exports.isDisturbed=he.isDisturbed,j.exports.isErrored=he.isErrored,j.exports.isReadable=he.isReadable,j.exports.Readable=he.Readable,j.exports.Writable=he.Writable,j.exports.Duplex=he.Duplex,j.exports.Transform=he.Transform,j.exports.PassThrough=he.PassThrough,j.exports.addAbortSignal=he.addAbortSignal,j.exports.finished=he.finished,j.exports.destroy=he.destroy,j.exports.pipeline=he.pipeline,j.exports.compose=he.compose,Object.defineProperty(he,"promises",{configurable:!0,enumerable:!0,get(){return t}}),j.exports.Stream=he.Stream}else{let t=ju(),e=Fu(),r=t.Readable.destroy;j.exports=t.Readable,j.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,j.exports._isUint8Array=t._isUint8Array,j.exports.isDisturbed=t.isDisturbed,j.exports.isErrored=t.isErrored,j.exports.isReadable=t.isReadable,j.exports.Readable=t.Readable,j.exports.Writable=t.Writable,j.exports.Duplex=t.Duplex,j.exports.Transform=t.Transform,j.exports.PassThrough=t.PassThrough,j.exports.addAbortSignal=t.addAbortSignal,j.exports.finished=t.finished,j.exports.destroy=t.destroy,j.exports.destroy=r,j.exports.pipeline=t.pipeline,j.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return e}}),j.exports.Stream=t.Stream}j.exports.default=j.exports});var eb=g(($4,Jm)=>{"use strict";function FN(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}Jm.exports=FN});var nb=g((H4,ib)=>{"use strict";var tb=ms(),jN=El(),BN=vl(),rb=tb?tb.isConcatSpreadable:void 0;function UN(t){return BN(t)||jN(t)||!!(rb&&t&&t[rb])}ib.exports=UN});var to=g((V4,ob)=>{"use strict";var WN=eb(),GN=nb();function sb(t,e,r,i,n){var s=-1,o=t.length;for(r||(r=GN),n||(n=[]);++s<o;){var a=t[s];e>0&&r(a)?e>1?sb(a,e-1,r,i,n):WN(n,a):i||(n[n.length]=a)}return n}ob.exports=sb});var lb=g((Y4,ab)=>{"use strict";var zN=to();function $N(t){var e=t==null?0:t.length;return e?zN(t,1):[]}ab.exports=$N});var tn=g((K4,ub)=>{"use strict";var HN=Ci(),VN=HN(Object,"create");ub.exports=VN});var hb=g((Z4,cb)=>{"use strict";var fb=tn();function YN(){this.__data__=fb?fb(null):{},this.size=0}cb.exports=YN});var pb=g((Q4,db)=>{"use strict";function KN(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}db.exports=KN});var _b=g((X4,gb)=>{"use strict";var ZN=tn(),QN="__lodash_hash_undefined__",XN=Object.prototype,JN=XN.hasOwnProperty;function eC(t){var e=this.__data__;if(ZN){var r=e[t];return r===QN?void 0:r}return JN.call(e,t)?e[t]:void 0}gb.exports=eC});var mb=g((J4,yb)=>{"use strict";var tC=tn(),rC=Object.prototype,iC=rC.hasOwnProperty;function nC(t){var e=this.__data__;return tC?e[t]!==void 0:iC.call(e,t)}yb.exports=nC});var wb=g((e6,bb)=>{"use strict";var sC=tn(),oC="__lodash_hash_undefined__";function aC(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=sC&&e===void 0?oC:e,this}bb.exports=aC});var Eb=g((t6,Sb)=>{"use strict";var lC=hb(),uC=pb(),fC=_b(),cC=mb(),hC=wb();function Kr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Kr.prototype.clear=lC;Kr.prototype.delete=uC;Kr.prototype.get=fC;Kr.prototype.has=cC;Kr.prototype.set=hC;Sb.exports=Kr});var xb=g((r6,vb)=>{"use strict";function dC(){this.__data__=[],this.size=0}vb.exports=dC});var rn=g((i6,Tb)=>{"use strict";var pC=ws();function gC(t,e){for(var r=t.length;r--;)if(pC(t[r][0],e))return r;return-1}Tb.exports=gC});var Ab=g((n6,Rb)=>{"use strict";var _C=rn(),yC=Array.prototype,mC=yC.splice;function bC(t){var e=this.__data__,r=_C(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():mC.call(e,r,1),--this.size,!0}Rb.exports=bC});var Ib=g((s6,Ob)=>{"use strict";var wC=rn();function SC(t){var e=this.__data__,r=wC(e,t);return r<0?void 0:e[r][1]}Ob.exports=SC});var Pb=g((o6,Db)=>{"use strict";var EC=rn();function vC(t){return EC(this.__data__,t)>-1}Db.exports=vC});var Nb=g((a6,Lb)=>{"use strict";var xC=rn();function TC(t,e){var r=this.__data__,i=xC(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}Lb.exports=TC});var kb=g((l6,Cb)=>{"use strict";var RC=xb(),AC=Ab(),OC=Ib(),IC=Pb(),DC=Nb();function Zr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Zr.prototype.clear=RC;Zr.prototype.delete=AC;Zr.prototype.get=OC;Zr.prototype.has=IC;Zr.prototype.set=DC;Cb.exports=Zr});var qb=g((u6,Mb)=>{"use strict";var PC=Ci(),LC=Pr(),NC=PC(LC,"Map");Mb.exports=NC});var Bb=g((f6,jb)=>{"use strict";var Fb=Eb(),CC=kb(),kC=qb();function MC(){this.size=0,this.__data__={hash:new Fb,map:new(kC||CC),string:new Fb}}jb.exports=MC});var Wb=g((c6,Ub)=>{"use strict";function qC(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}Ub.exports=qC});var nn=g((h6,Gb)=>{"use strict";var FC=Wb();function jC(t,e){var r=t.__data__;return FC(e)?r[typeof e=="string"?"string":"hash"]:r.map}Gb.exports=jC});var $b=g((d6,zb)=>{"use strict";var BC=nn();function UC(t){var e=BC(this,t).delete(t);return this.size-=e?1:0,e}zb.exports=UC});var Vb=g((p6,Hb)=>{"use strict";var WC=nn();function GC(t){return WC(this,t).get(t)}Hb.exports=GC});var Kb=g((g6,Yb)=>{"use strict";var zC=nn();function $C(t){return zC(this,t).has(t)}Yb.exports=$C});var Qb=g((_6,Zb)=>{"use strict";var HC=nn();function VC(t,e){var r=HC(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}Zb.exports=VC});var Jb=g((y6,Xb)=>{"use strict";var YC=Bb(),KC=$b(),ZC=Vb(),QC=Kb(),XC=Qb();function Qr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Qr.prototype.clear=YC;Qr.prototype.delete=KC;Qr.prototype.get=ZC;Qr.prototype.has=QC;Qr.prototype.set=XC;Xb.exports=Qr});var tw=g((m6,ew)=>{"use strict";var JC="__lodash_hash_undefined__";function ek(t){return this.__data__.set(t,JC),this}ew.exports=ek});var iw=g((b6,rw)=>{"use strict";function tk(t){return this.__data__.has(t)}rw.exports=tk});var Uu=g((w6,nw)=>{"use strict";var rk=Jb(),ik=tw(),nk=iw();function ro(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new rk;++e<r;)this.add(t[e])}ro.prototype.add=ro.prototype.push=ik;ro.prototype.has=nk;nw.exports=ro});var ow=g((S6,sw)=>{"use strict";function sk(t,e,r,i){for(var n=t.length,s=r+(i?1:-1);i?s--:++s<n;)if(e(t[s],s,t))return s;return-1}sw.exports=sk});var lw=g((E6,aw)=>{"use strict";function ok(t){return t!==t}aw.exports=ok});var fw=g((v6,uw)=>{"use strict";function ak(t,e,r){for(var i=r-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}uw.exports=ak});var hw=g((x6,cw)=>{"use strict";var lk=ow(),uk=lw(),fk=fw();function ck(t,e,r){return e===e?fk(t,e,r):lk(t,uk,r)}cw.exports=ck});var Wu=g((T6,dw)=>{"use strict";var hk=hw();function dk(t,e){var r=t==null?0:t.length;return!!r&&hk(t,e,0)>-1}dw.exports=dk});var Gu=g((R6,pw)=>{"use strict";function pk(t,e,r){for(var i=-1,n=t==null?0:t.length;++i<n;)if(r(e,t[i]))return!0;return!1}pw.exports=pk});var _w=g((A6,gw)=>{"use strict";function gk(t,e){for(var r=-1,i=t==null?0:t.length,n=Array(i);++r<i;)n[r]=e(t[r],r,t);return n}gw.exports=gk});var zu=g((O6,yw)=>{"use strict";function _k(t,e){return t.has(e)}yw.exports=_k});var bw=g((I6,mw)=>{"use strict";var yk=Uu(),mk=Wu(),bk=Gu(),wk=_w(),Sk=xl(),Ek=zu(),vk=200;function xk(t,e,r,i){var n=-1,s=mk,o=!0,a=t.length,l=[],u=e.length;if(!a)return l;r&&(e=wk(e,Sk(r))),i?(s=bk,o=!1):e.length>=vk&&(s=Ek,o=!1,e=new yk(e));e:for(;++n<a;){var f=t[n],c=r==null?f:r(f);if(f=i||f!==0?f:0,o&&c===c){for(var h=u;h--;)if(e[h]===c)continue e;l.push(f)}else s(e,c,i)||l.push(f)}return l}mw.exports=xk});var $u=g((D6,ww)=>{"use strict";var Tk=Ss(),Rk=Lr();function Ak(t){return Rk(t)&&Tk(t)}ww.exports=Ak});var vw=g((P6,Ew)=>{"use strict";var Ok=bw(),Ik=to(),Dk=bs(),Sw=$u(),Pk=Dk(function(t,e){return Sw(t)?Ok(t,Ik(e,1,Sw,!0)):[]});Ew.exports=Pk});var Tw=g((L6,xw)=>{"use strict";var Lk=Ci(),Nk=Pr(),Ck=Lk(Nk,"Set");xw.exports=Ck});var Aw=g((N6,Rw)=>{"use strict";function kk(){}Rw.exports=kk});var Hu=g((C6,Ow)=>{"use strict";function Mk(t){var e=-1,r=Array(t.size);return t.forEach(function(i){r[++e]=i}),r}Ow.exports=Mk});var Dw=g((k6,Iw)=>{"use strict";var Vu=Tw(),qk=Aw(),Fk=Hu(),jk=1/0,Bk=Vu&&1/Fk(new Vu([,-0]))[1]==jk?function(t){return new Vu(t)}:qk;Iw.exports=Bk});var Lw=g((M6,Pw)=>{"use strict";var Uk=Uu(),Wk=Wu(),Gk=Gu(),zk=zu(),$k=Dw(),Hk=Hu(),Vk=200;function Yk(t,e,r){var i=-1,n=Wk,s=t.length,o=!0,a=[],l=a;if(r)o=!1,n=Gk;else if(s>=Vk){var u=e?null:$k(t);if(u)return Hk(u);o=!1,n=zk,l=new Uk}else l=e?[]:a;e:for(;++i<s;){var f=t[i],c=e?e(f):f;if(f=r||f!==0?f:0,o&&c===c){for(var h=l.length;h--;)if(l[h]===c)continue e;e&&l.push(c),a.push(f)}else n(l,c,r)||(l!==a&&l.push(c),a.push(f))}return a}Pw.exports=Yk});var Cw=g((q6,Nw)=>{"use strict";var Kk=to(),Zk=bs(),Qk=Lw(),Xk=$u(),Jk=Zk(function(t){return Qk(Kk(t,1,Xk,!0))});Nw.exports=Jk});var Mw=g((F6,kw)=>{"use strict";function eM(t,e){return function(r){return t(e(r))}}kw.exports=eM});var Fw=g((j6,qw)=>{"use strict";var tM=Mw(),rM=tM(Object.getPrototypeOf,Object);qw.exports=rM});var Uw=g((B6,Bw)=>{"use strict";var iM=Li(),nM=Fw(),sM=Lr(),oM="[object Object]",aM=Function.prototype,lM=Object.prototype,jw=aM.toString,uM=lM.hasOwnProperty,fM=jw.call(Object);function cM(t){if(!sM(t)||iM(t)!=oM)return!1;var e=nM(t);if(e===null)return!0;var r=uM.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&jw.call(r)==fM}Bw.exports=cM});var Ww=g(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.assertValidPattern=void 0;var hM=1024*64,dM=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>hM)throw new TypeError("pattern is too long")};io.assertValidPattern=dM});var zw=g(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.parseClass=void 0;var pM={"[: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]},sn=t=>t.replace(/[[\]\\-]/g,"\\$&"),gM=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Gw=t=>t.join(""),_M=(t,e)=>{let r=e;if(t.charAt(r)!=="[")throw new Error("not in a brace expression");let i=[],n=[],s=r+1,o=!1,a=!1,l=!1,u=!1,f=r,c="";e:for(;s<t.length;){let p=t.charAt(s);if((p==="!"||p==="^")&&s===r+1){u=!0,s++;continue}if(p==="]"&&o&&!l){f=s+1;break}if(o=!0,p==="\\"&&!l){l=!0,s++;continue}if(p==="["&&!l){for(let[E,[y,b,v]]of Object.entries(pM))if(t.startsWith(E,s)){if(c)return["$.",!1,t.length-r,!0];s+=E.length,v?n.push(y):i.push(y),a=a||b;continue e}}if(l=!1,c){p>c?i.push(sn(c)+"-"+sn(p)):p===c&&i.push(sn(p)),c="",s++;continue}if(t.startsWith("-]",s+1)){i.push(sn(p+"-")),s+=2;continue}if(t.startsWith("-",s+1)){c=p,s+=2;continue}i.push(sn(p)),s++}if(f<s)return["",!1,0,!1];if(!i.length&&!n.length)return["$.",!1,t.length-r,!0];if(n.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!u){let p=i[0].length===2?i[0].slice(-1):i[0];return[gM(p),!1,f-r,!1]}let h="["+(u?"^":"")+Gw(i)+"]",d="["+(u?"":"^")+Gw(n)+"]";return[i.length&&n.length?"("+h+"|"+d+")":i.length?h:d,a,f-r,!0]};no.parseClass=_M});var oo=g(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.unescape=void 0;var yM=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");so.unescape=yM});var Zu=g(fo=>{"use strict";var Le;Object.defineProperty(fo,"__esModule",{value:!0});fo.AST=void 0;var mM=zw(),ao=oo(),bM=new Set(["!","?","+","*","@"]),Yu=t=>bM.has(t),$w=t=>Yu(t.type),wM=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),SM=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),EM=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Hw=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),vM="(?!(?:^|/)\\.\\.?(?:$|/))",lo="(?!\\.)",xM=new Set(["[","."]),TM=new Set(["..","."]),RM=new Set("().*{}+?[]^$\\!"),AM=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ku="[^/]",Vw=Ku+"*?",Yw=Ku+"+?",uo=class{type;#e;#r;#n=!1;#t=[];#o;#S;#u;#c=!1;#l;#a;#s=!1;constructor(e,r,i={}){this.type=e,e&&(this.#r=!0),this.#o=r,this.#e=this.#o?this.#o.#e:this,this.#l=this.#e===this?i:this.#e.#l,this.#u=this.#e===this?[]:this.#e.#u,e==="!"&&!this.#e.#c&&this.#u.push(this),this.#S=this.#o?this.#o.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#a!==void 0?this.#a:this.type?this.#a=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#a=this.#t.map(e=>String(e)).join("")}#y(){if(this!==this.#e)throw new Error("should only call on root");if(this.#c)return this;this.toString(),this.#c=!0;let e;for(;e=this.#u.pop();){if(e.type!=="!")continue;let r=e,i=r.#o;for(;i;){for(let n=r.#S+1;!i.type&&n<i.#t.length;n++)for(let s of e.#t){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(i.#t[n])}r=i,i=r.#o}}return this}push(...e){for(let r of e)if(r!==""){if(typeof r!="string"&&!(r instanceof Le&&r.#o===this))throw new Error("invalid part: "+r);this.#t.push(r)}}toJSON(){let e=this.type===null?this.#t.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#t.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#c&&this.#o?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#o?.isStart())return!1;if(this.#S===0)return!0;let e=this.#o;for(let r=0;r<this.#S;r++){let i=e.#t[r];if(!(i instanceof Le&&i.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#o?.type==="!")return!0;if(!this.#o?.isEnd())return!1;if(!this.type)return this.#o?.isEnd();let e=this.#o?this.#o.#t.length:0;return this.#S===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let r=new Le(this.type,e);for(let i of this.#t)r.copyIn(i);return r}static#m(e,r,i,n,s){let o=n.maxExtglobRecursion??2,a=!1,l=!1,u=-1,f=!1;if(r.type===null){let p=i,E="";for(;p<e.length;){let y=e.charAt(p++);if(a||y==="\\"){a=!a,E+=y;continue}if(l){p===u+1?(y==="^"||y==="!")&&(f=!0):y==="]"&&!(p===u+2&&f)&&(l=!1),E+=y;continue}else if(y==="["){l=!0,u=p,f=!1,E+=y;continue}if(!n.noext&&Yu(y)&&e.charAt(p)==="("&&s<=o){r.push(E),E="";let v=new Le(y,r);p=Le.#m(e,v,p,n,s+1),r.push(v);continue}E+=y}return r.push(E),p}let c=i+1,h=new Le(null,r),d=[],m="";for(;c<e.length;){let p=e.charAt(c++);if(a||p==="\\"){a=!a,m+=p;continue}if(l){c===u+1?(p==="^"||p==="!")&&(f=!0):p==="]"&&!(c===u+2&&f)&&(l=!1),m+=p;continue}else if(p==="["){l=!0,u=c,f=!1,m+=p;continue}if(Yu(p)&&e.charAt(c)==="("&&(s<=o||r&&r.#E(p))){let y=r&&r.#E(p)?0:1;h.push(m),m="";let b=new Le(p,h);h.push(b),c=Le.#m(e,b,c,n,s+y);continue}if(p==="|"){h.push(m),m="",d.push(h),h=new Le(null,r);continue}if(p===")")return m===""&&r.#t.length===0&&(r.#s=!0),h.push(m),m="",r.push(...d,h),c;m+=p}return r.type=null,r.#r=void 0,r.#t=[e.substring(i-1)],c}#g(e){return this.#d(e,SM)}#d(e,r=wM){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null)return!1;let i=e.#t[0];return!i||typeof i!="object"||i.type===null?!1:this.#E(i.type,r)}#E(e,r=EM){return!!r.get(this.type)?.includes(e)}#p(e,r){let i=e.#t[0],n=new Le(null,i,this.options);n.#t.push(""),i.push(n),this.#x(e,r)}#x(e,r){let i=e.#t[0];this.#t.splice(r,1,...i.#t);for(let n of i.#t)typeof n=="object"&&(n.#o=this);this.#a=void 0}#T(e){return!!Hw.get(this.type)?.has(e)}#_(e){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null||this.#t.length!==1)return!1;let r=e.#t[0];return!r||typeof r!="object"||r.type===null?!1:this.#T(r.type)}#v(e){let r=Hw.get(this.type),i=e.#t[0],n=r?.get(i.type);if(!n)return!1;this.#t=i.#t;for(let s of this.#t)typeof s=="object"&&(s.#o=this);this.type=n,this.#a=void 0,this.#s=!1}#b(){if($w(this)){let e=0,r=!1;do{r=!0;for(let i=0;i<this.#t.length;i++){let n=this.#t[i];typeof n=="object"&&(n.#b(),this.#d(n)?(r=!1,this.#x(n,i)):this.#g(n)?(r=!1,this.#p(n,i)):this.#_(n)&&(r=!1,this.#v(n)))}}while(!r&&++e<10)}else for(let e of this.#t)typeof e=="object"&&e.#b();this.#a=void 0}static fromGlob(e,r={}){let i=new Le(null,void 0,r);return Le.#m(e,i,0,r,0),i}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[r,i,n,s]=this.toRegExpSource();if(!(n||this.#r||this.#l.nocase&&!this.#l.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return i;let a=(this.#l.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:e})}get options(){return this.#l}toRegExpSource(e){let r=e??!!this.#l.dot;if(this.#e===this&&(this.#b(),this.#y()),!$w(this)){let l=this.isStart()&&this.isEnd(),u=this.#t.map(d=>{let[m,p,E,y]=typeof d=="string"?Le.#R(d,this.#r,l):d.toRegExpSource(e);return this.#r=this.#r||E,this.#n=this.#n||y,m}).join(""),f="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&TM.has(this.#t[0]))){let m=xM,p=r&&m.has(u.charAt(0))||u.startsWith("\\.")&&m.has(u.charAt(2))||u.startsWith("\\.\\.")&&m.has(u.charAt(4)),E=!r&&!e&&m.has(u.charAt(0));f=p?vM:E?lo:""}let c="";return this.isEnd()&&this.#e.#c&&this.#o?.type==="!"&&(c="(?:$|\\/)"),[f+u+c,(0,ao.unescape)(u),this.#r=!!this.#r,this.#n]}let i=this.type==="*"||this.type==="+",n=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#h(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString(),u=this;return u.#t=[l],u.type=null,u.#r=void 0,[l,(0,ao.unescape)(this.toString()),!1,!1]}let o=!i||e||r||!lo?"":this.#h(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!r?lo:"")+Yw;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?lo:"")+Vw+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=n+s+l}return[a,(0,ao.unescape)(s),this.#r=!!this.#r,this.#n]}#h(e){return this.#t.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[i,n,s,o]=r.toRegExpSource(e);return this.#n=this.#n||o,i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#R(e,r,i=!1){let n=!1,s="",o=!1,a=!1;for(let l=0;l<e.length;l++){let u=e.charAt(l);if(n){n=!1,s+=(RM.has(u)?"\\":"")+u,a=!1;continue}if(u==="\\"){l===e.length-1?s+="\\\\":n=!0;continue}if(u==="["){let[f,c,h,d]=(0,mM.parseClass)(e,l);if(h){s+=f,o=o||c,l+=h-1,r=r||d,a=!1;continue}}if(u==="*"){if(a)continue;a=!0,s+=i&&/^[*]+$/.test(e)?Yw:Vw,r=!0;continue}else a=!1;if(u==="?"){s+=Ku,r=!0;continue}s+=AM(u)}return[s,(0,ao.unescape)(e),!!r,o]}};fo.AST=uo;Le=uo});var Qu=g(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.escape=void 0;var OM=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");co.escape=OM});var qt=g(I=>{"use strict";var IM=I&&I.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(I,"__esModule",{value:!0});I.unescape=I.escape=I.AST=I.Minimatch=I.match=I.makeRe=I.braceExpand=I.defaults=I.filter=I.GLOBSTAR=I.sep=I.minimatch=void 0;var DM=IM(na()),ho=Ww(),Qw=Zu(),PM=Qu(),LM=oo(),NM=(t,e,r={})=>((0,ho.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new hr(e,r).match(t));I.minimatch=NM;var CM=/^\*+([^+@!?\*\[\(]*)$/,kM=t=>e=>!e.startsWith(".")&&e.endsWith(t),MM=t=>e=>e.endsWith(t),qM=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),FM=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),jM=/^\*+\.\*+$/,BM=t=>!t.startsWith(".")&&t.includes("."),UM=t=>t!=="."&&t!==".."&&t.includes("."),WM=/^\.\*+$/,GM=t=>t!=="."&&t!==".."&&t.startsWith("."),zM=/^\*+$/,$M=t=>t.length!==0&&!t.startsWith("."),HM=t=>t.length!==0&&t!=="."&&t!=="..",VM=/^\?+([^+@!?\*\[\(]*)?$/,YM=([t,e=""])=>{let r=Xw([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},KM=([t,e=""])=>{let r=Jw([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},ZM=([t,e=""])=>{let r=Jw([t]);return e?i=>r(i)&&i.endsWith(e):r},QM=([t,e=""])=>{let r=Xw([t]);return e?i=>r(i)&&i.endsWith(e):r},Xw=([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},Jw=([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},e0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Kw={win32:{sep:"\\"},posix:{sep:"/"}};I.sep=e0==="win32"?Kw.win32.sep:Kw.posix.sep;I.minimatch.sep=I.sep;I.GLOBSTAR=Symbol("globstar **");I.minimatch.GLOBSTAR=I.GLOBSTAR;var XM="[^/]",JM=XM+"*?",e2="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",t2="(?:(?!(?:\\/|^)\\.).)*?",r2=(t,e={})=>r=>(0,I.minimatch)(r,t,e);I.filter=r2;I.minimatch.filter=I.filter;var Ue=(t,e={})=>Object.assign({},t,e),i2=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return I.minimatch;let e=I.minimatch;return Object.assign((i,n,s={})=>e(i,n,Ue(t,s)),{Minimatch:class extends e.Minimatch{constructor(n,s={}){super(n,Ue(t,s))}static defaults(n){return e.defaults(Ue(t,n)).Minimatch}},AST:class extends e.AST{constructor(n,s,o={}){super(n,s,Ue(t,o))}static fromGlob(n,s={}){return e.AST.fromGlob(n,Ue(t,s))}},unescape:(i,n={})=>e.unescape(i,Ue(t,n)),escape:(i,n={})=>e.escape(i,Ue(t,n)),filter:(i,n={})=>e.filter(i,Ue(t,n)),defaults:i=>e.defaults(Ue(t,i)),makeRe:(i,n={})=>e.makeRe(i,Ue(t,n)),braceExpand:(i,n={})=>e.braceExpand(i,Ue(t,n)),match:(i,n,s={})=>e.match(i,n,Ue(t,s)),sep:e.sep,GLOBSTAR:I.GLOBSTAR})};I.defaults=i2;I.minimatch.defaults=I.defaults;var n2=(t,e={})=>((0,ho.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,DM.default)(t));I.braceExpand=n2;I.minimatch.braceExpand=I.braceExpand;var s2=(t,e={})=>new hr(t,e).makeRe();I.makeRe=s2;I.minimatch.makeRe=I.makeRe;var o2=(t,e,r={})=>{let i=new hr(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};I.match=o2;I.minimatch.match=I.match;var Zw=/[?*]|[+@!]\(.*?\)|\[|\]/,a2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),hr=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,ho.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||e0,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.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 e of this.set)for(let r of e)if(typeof r!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let n=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!Zw.test(s[2]))&&!Zw.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(f=>this.parse(f))];if(u)return[s[0],...s.slice(1).map(f=>this.parse(f))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,n),this.set=n.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let i=0;i<e.length;i++)for(let n=0;n<e[i].length;n++)e[i][n]==="**"&&(e[i][n]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let n=i;for(;r[n+1]==="**";)n++;n!==i&&r.splice(i,n-i)}return r})}levelOneOptimize(e){return e.map(r=>(r=r.reduce((i,n)=>{let s=i[i.length-1];return n==="**"&&s==="**"?i:n===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(n),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let s=e[n];n===1&&s===""&&e[0]===""||(s==="."||s==="")&&(r=!0,e.splice(n,1),n--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(r=!0,e.pop())}let i=0;for(;(i=e.indexOf("..",i+1))!==-1;){let n=e[i-1];n&&n!=="."&&n!==".."&&n!=="**"&&(r=!0,e.splice(i-1,2),i-=2)}}while(r);return e.length===0?[""]:e}firstPhasePreProcess(e){let r=!1;do{r=!1;for(let i of e){let n=-1;for(;(n=i.indexOf("**",n+1))!==-1;){let o=n;for(;i[o+1]==="**";)o++;o>n&&i.splice(n+1,o-n);let a=i[n+1],l=i[n+2],u=i[n+3];if(a!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;r=!0,i.splice(n,1);let f=i.slice(0);f[n]="**",e.push(f),n--}if(!this.preserveMultipleSlashes){for(let o=1;o<i.length-1;o++){let a=i[o];o===1&&a===""&&i[0]===""||(a==="."||a==="")&&(r=!0,i.splice(o,1),o--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){let o=i[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){r=!0;let l=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...l),i.length===0&&i.push(""),s-=2}}}}while(r);return e}secondPhasePreProcess(e){for(let r=0;r<e.length-1;r++)for(let i=r+1;i<e.length;i++){let n=this.partsMatch(e[r],e[i],!this.preserveMultipleSlashes);if(n){e[r]=[],e[i]=n;break}}return e.filter(r=>r.length)}partsMatch(e,r,i=!1){let n=0,s=0,o=[],a="";for(;n<e.length&&s<r.length;)if(e[n]===r[s])o.push(a==="b"?r[s]:e[n]),n++,s++;else if(i&&e[n]==="**"&&r[s]===e[n+1])o.push(e[n]),n++;else if(i&&r[s]==="**"&&e[n]===r[s+1])o.push(r[s]),s++;else if(e[n]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(a==="b")return!1;a="a",o.push(e[n]),n++,s++}else if(r[s]==="*"&&e[n]&&(this.options.dot||!e[n].startsWith("."))&&e[n]!=="**"){if(a==="a")return!1;a="b",o.push(r[s]),n++,s++}else return!1;return e.length===r.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,r=!1,i=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++)r=!r,i++;i&&(this.pattern=e.slice(i)),this.negate=r}matchOne(e,r,i=!1){let n=0,s=0;if(this.isWindows){let a=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),l=!a&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),u=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),f=!u&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),c=l?3:a?0:void 0,h=f?3:u?0:void 0;if(typeof c=="number"&&typeof h=="number"){let[d,m]=[e[c],r[h]];d.toLowerCase()===m.toLowerCase()&&(r[h]=d,s=h,n=c)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),r.includes(I.GLOBSTAR)?this.#e(e,r,i,n,s):this.#n(e,r,i,n,s)}#e(e,r,i,n,s){let o=r.indexOf(I.GLOBSTAR,s),a=r.lastIndexOf(I.GLOBSTAR),[l,u,f]=i?[r.slice(s,o),r.slice(o+1),[]]:[r.slice(s,o),r.slice(o+1,a),r.slice(a+1)];if(l.length){let b=e.slice(n,n+l.length);if(!this.#n(b,l,i,0,0))return!1;n+=l.length}let c=0;if(f.length){if(f.length+n>e.length)return!1;let b=e.length-f.length;if(this.#n(e,f,i,b,0))c=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||(b--,!this.#n(e,f,i,b,0)))return!1;c=f.length+1}}if(!u.length){let b=!!c;for(let v=n;v<e.length-c;v++){let S=String(e[v]);if(b=!0,S==="."||S===".."||!this.options.dot&&S.startsWith("."))return!1}return i||b}let h=[[[],0]],d=h[0],m=0,p=[0];for(let b of u)b===I.GLOBSTAR?(p.push(m),d=[[],0],h.push(d)):(d[0].push(b),m++);let E=h.length-1,y=e.length-c;for(let b of h)b[1]=y-(p[E--]+b[0].length);return!!this.#r(e,h,n,0,i,0,!!c)}#r(e,r,i,n,s,o,a){let l=r[n];if(!l){for(let c=i;c<e.length;c++){a=!0;let h=e[c];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1}return a}let[u,f]=l;for(;i<=f;){if(this.#n(e.slice(0,i+u.length),u,s,i,0)&&o<this.maxGlobstarRecursion){let d=this.#r(e,r,i+u.length,n+1,s,o+1,a);if(d!==!1)return d}let h=e[i];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1;i++}return s||null}#n(e,r,i,n,s){let o,a,l,u;for(o=n,a=s,u=e.length,l=r.length;o<u&&a<l;o++,a++){this.debug("matchOne loop");let f=r[a],c=e[o];if(this.debug(r,f,c),f===!1||f===I.GLOBSTAR)return!1;let h;if(typeof f=="string"?(h=c===f,this.debug("string match",f,c,h)):(h=f.test(c),this.debug("pattern match",f,c,h)),!h)return!1}if(o===u&&a===l)return!0;if(o===u)return i;if(a===l)return o===u-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,I.braceExpand)(this.pattern,this.options)}parse(e){(0,ho.assertValidPattern)(e);let r=this.options;if(e==="**")return I.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(zM))?n=r.dot?HM:$M:(i=e.match(CM))?n=(r.nocase?r.dot?FM:qM:r.dot?MM:kM)(i[1]):(i=e.match(VM))?n=(r.nocase?r.dot?KM:YM:r.dot?ZM:QM)(i):(i=e.match(jM))?n=r.dot?UM:BM:(i=e.match(WM))&&(n=GM);let s=Qw.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?JM:r.dot?e2:t2,n=new Set(r.nocase?["i"]:[]),s=e.map(l=>{let u=l.map(f=>{if(f instanceof RegExp)for(let c of f.flags.split(""))n.add(c);return typeof f=="string"?a2(f):f===I.GLOBSTAR?I.GLOBSTAR:f._src});return u.forEach((f,c)=>{let h=u[c+1],d=u[c-1];f!==I.GLOBSTAR||d===I.GLOBSTAR||(d===void 0?h!==void 0&&h!==I.GLOBSTAR?u[c+1]="(?:\\/|"+i+"\\/)?"+h:u[c]=i:h===void 0?u[c-1]=d+"(?:\\/|"+i+")?":h!==I.GLOBSTAR&&(u[c-1]=d+"(?:\\/|\\/"+i+"\\/)"+h,u[c+1]=I.GLOBSTAR))}),u.filter(f=>f!==I.GLOBSTAR).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let o=n[n.length-1];if(!o)for(let a=n.length-2;!o&&a>=0;a--)o=n[a];for(let a=0;a<s.length;a++){let l=s[a],u=n;if(i.matchBase&&l.length===1&&(u=[o]),this.matchOne(u,l,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return I.minimatch.defaults(e).Minimatch}};I.Minimatch=hr;var l2=Zu();Object.defineProperty(I,"AST",{enumerable:!0,get:function(){return l2.AST}});var u2=Qu();Object.defineProperty(I,"escape",{enumerable:!0,get:function(){return u2.escape}});var f2=oo();Object.defineProperty(I,"unescape",{enumerable:!0,get:function(){return f2.unescape}});I.minimatch.AST=Qw.AST;I.minimatch.Minimatch=hr;I.minimatch.escape=PM.escape;I.minimatch.unescape=LM.unescape});var s0=g(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.LRUCache=void 0;var Xr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,r0=new Set,Xu=typeof process=="object"&&process?process:{},i0=(t,e,r,i)=>{typeof Xu.emitWarning=="function"?Xu.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},po=globalThis.AbortController,t0=globalThis.AbortSignal;if(typeof po>"u"){t0=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},po=class{constructor(){e()}signal=new t0;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let n of this.signal._onabort)n(i);this.signal.onabort?.(i)}}};let t=Xu.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,i0("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",e))}}var c2=t=>!r0.has(t),Ft=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),n0=t=>Ft(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Jr:null:null,Jr=class extends Array{constructor(e){super(e),this.fill(0)}},Ju=class t{heap;length;static#e=!1;static create(e){let r=n0(e);if(!r)return[];t.#e=!0;let i=new t(e,r);return t.#e=!1,i}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},ef=class t{#e;#r;#n;#t;#o;#S;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#u;#c;#l;#a;#s;#y;#m;#g;#d;#E;#p;#x;#T;#_;#v;#b;#h;static unsafeExposeInternals(e){return{starts:e.#T,ttls:e.#_,sizes:e.#x,keyMap:e.#l,keyList:e.#a,valList:e.#s,next:e.#y,prev:e.#m,get head(){return e.#g},get tail(){return e.#d},free:e.#E,isBackgroundFetch:r=>e.#f(r),backgroundFetch:(r,i,n,s)=>e.#F(r,i,n,s),moveToTail:r=>e.#B(r),indexes:r=>e.#O(r),rindexes:r=>e.#I(r),isStale:r=>e.#w(r)}}get max(){return this.#e}get maxSize(){return this.#r}get calculatedSize(){return this.#c}get size(){return this.#u}get fetchMethod(){return this.#o}get memoMethod(){return this.#S}get dispose(){return this.#n}get disposeAfter(){return this.#t}constructor(e){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:u,disposeAfter:f,noDisposeOnSet:c,noUpdateTTL:h,maxSize:d=0,maxEntrySize:m=0,sizeCalculation:p,fetchMethod:E,memoMethod:y,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:v,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:T,ignoreFetchAbort:D}=e;if(r!==0&&!Ft(r))throw new TypeError("max option must be a nonnegative integer");let x=r?n0(r):Array;if(!x)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=d,this.maxEntrySize=m||this.#r,this.sizeCalculation=p,this.sizeCalculation){if(!this.#r&&!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(y!==void 0&&typeof y!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#S=y,E!==void 0&&typeof E!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=E,this.#b=!!E,this.#l=new Map,this.#a=new Array(r).fill(void 0),this.#s=new Array(r).fill(void 0),this.#y=new x(r),this.#m=new x(r),this.#g=0,this.#d=0,this.#E=Ju.create(r),this.#u=0,this.#c=0,typeof u=="function"&&(this.#n=u),typeof f=="function"?(this.#t=f,this.#p=[]):(this.#t=void 0,this.#p=void 0),this.#v=!!this.#n,this.#h=!!this.#t,this.noDisposeOnSet=!!c,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!S,this.allowStaleOnFetchAbort=!!T,this.ignoreFetchAbort=!!D,this.maxEntrySize!==0){if(this.#r!==0&&!Ft(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!Ft(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#D()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!v,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=Ft(n)||n===0?n:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!Ft(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#R()}if(this.#e===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#r){let O="LRU_CACHE_UNBOUNDED";c2(O)&&(r0.add(O),i0("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",O,t))}}getRemainingTTL(e){return this.#l.has(e)?1/0:0}#R(){let e=new Jr(this.#e),r=new Jr(this.#e);this.#_=e,this.#T=r,this.#L=(s,o,a=Xr.now())=>{if(r[s]=o!==0?a:0,e[s]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#w(s)&&this.#P(this.#a[s],"expire")},o+1);l.unref&&l.unref()}},this.#A=s=>{r[s]=e[s]!==0?Xr.now():0},this.#i=(s,o)=>{if(e[o]){let a=e[o],l=r[o];if(!a||!l)return;s.ttl=a,s.start=l,s.now=i||n();let u=s.now-l;s.remainingTTL=a-u}};let i=0,n=()=>{let s=Xr.now();if(this.ttlResolution>0){i=s;let o=setTimeout(()=>i=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#l.get(s);if(o===void 0)return 0;let a=e[o],l=r[o];if(!a||!l)return 1/0;let u=(i||n())-l;return a-u},this.#w=s=>{let o=r[s],a=e[s];return!!a&&!!o&&(i||n())-o>a}}#A=()=>{};#i=()=>{};#L=()=>{};#w=()=>!1;#D(){let e=new Jr(this.#e);this.#c=0,this.#x=e,this.#N=r=>{this.#c-=e[r],e[r]=0},this.#k=(r,i,n,s)=>{if(this.#f(i))return 0;if(!Ft(n))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(n=s(i,r),!Ft(n))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 n},this.#C=(r,i,n)=>{if(e[r]=i,this.#r){let s=this.#r-e[r];for(;this.#c>s;)this.#q(!0)}this.#c+=e[r],n&&(n.entrySize=i,n.totalCalculatedSize=this.#c)}}#N=e=>{};#C=(e,r,i)=>{};#k=(e,r,i,n)=>{if(i||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#O({allowStale:e=this.allowStale}={}){if(this.#u)for(let r=this.#d;!(!this.#M(r)||((e||!this.#w(r))&&(yield r),r===this.#g));)r=this.#m[r]}*#I({allowStale:e=this.allowStale}={}){if(this.#u)for(let r=this.#g;!(!this.#M(r)||((e||!this.#w(r))&&(yield r),r===this.#d));)r=this.#y[r]}#M(e){return e!==void 0&&this.#l.get(this.#a[e])===e}*entries(){for(let e of this.#O())this.#s[e]!==void 0&&this.#a[e]!==void 0&&!this.#f(this.#s[e])&&(yield[this.#a[e],this.#s[e]])}*rentries(){for(let e of this.#I())this.#s[e]!==void 0&&this.#a[e]!==void 0&&!this.#f(this.#s[e])&&(yield[this.#a[e],this.#s[e]])}*keys(){for(let e of this.#O()){let r=this.#a[e];r!==void 0&&!this.#f(this.#s[e])&&(yield r)}}*rkeys(){for(let e of this.#I()){let r=this.#a[e];r!==void 0&&!this.#f(this.#s[e])&&(yield r)}}*values(){for(let e of this.#O())this.#s[e]!==void 0&&!this.#f(this.#s[e])&&(yield this.#s[e])}*rvalues(){for(let e of this.#I())this.#s[e]!==void 0&&!this.#f(this.#s[e])&&(yield this.#s[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,r={}){for(let i of this.#O()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;if(s!==void 0&&e(s,this.#a[i],this))return this.get(this.#a[i],r)}}forEach(e,r=this){for(let i of this.#O()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&e.call(r,s,this.#a[i],this)}}rforEach(e,r=this){for(let i of this.#I()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&e.call(r,s,this.#a[i],this)}}purgeStale(){let e=!1;for(let r of this.#I({allowStale:!0}))this.#w(r)&&(this.#P(this.#a[r],"expire"),e=!0);return e}info(e){let r=this.#l.get(e);if(r===void 0)return;let i=this.#s[r],n=this.#f(i)?i.__staleWhileFetching:i;if(n===void 0)return;let s={value:n};if(this.#_&&this.#T){let o=this.#_[r],a=this.#T[r];if(o&&a){let l=o-(Xr.now()-a);s.ttl=l,s.start=Date.now()}}return this.#x&&(s.size=this.#x[r]),s}dump(){let e=[];for(let r of this.#O({allowStale:!0})){let i=this.#a[r],n=this.#s[r],s=this.#f(n)?n.__staleWhileFetching:n;if(s===void 0||i===void 0)continue;let o={value:s};if(this.#_&&this.#T){o.ttl=this.#_[r];let a=Xr.now()-this.#T[r];o.start=Math.floor(Date.now()-a)}this.#x&&(o.size=this.#x[r]),e.unshift([i,o])}return e}load(e){this.clear();for(let[r,i]of e){if(i.start){let n=Date.now()-i.start;i.start=Xr.now()-n}this.set(r,i.value,i)}}set(e,r,i={}){if(r===void 0)return this.delete(e),this;let{ttl:n=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=i,{noUpdateTTL:u=this.noUpdateTTL}=i,f=this.#k(e,r,i.size||0,a);if(this.maxEntrySize&&f>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#P(e,"set"),this;let c=this.#u===0?void 0:this.#l.get(e);if(c===void 0)c=this.#u===0?this.#d:this.#E.length!==0?this.#E.pop():this.#u===this.#e?this.#q(!1):this.#u,this.#a[c]=e,this.#s[c]=r,this.#l.set(e,c),this.#y[this.#d]=c,this.#m[c]=this.#d,this.#d=c,this.#u++,this.#C(c,f,l),l&&(l.set="add"),u=!1;else{this.#B(c);let h=this.#s[c];if(r!==h){if(this.#b&&this.#f(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=h;d!==void 0&&!o&&(this.#v&&this.#n?.(d,e,"set"),this.#h&&this.#p?.push([d,e,"set"]))}else o||(this.#v&&this.#n?.(h,e,"set"),this.#h&&this.#p?.push([h,e,"set"]));if(this.#N(c),this.#C(c,f,l),this.#s[c]=r,l){l.set="replace";let d=h&&this.#f(h)?h.__staleWhileFetching:h;d!==void 0&&(l.oldValue=d)}}else l&&(l.set="update")}if(n!==0&&!this.#_&&this.#R(),this.#_&&(u||this.#L(c,n,s),l&&this.#i(l,c)),!o&&this.#h&&this.#p){let h=this.#p,d;for(;d=h?.shift();)this.#t?.(...d)}return this}pop(){try{for(;this.#u;){let e=this.#s[this.#g];if(this.#q(!0),this.#f(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#h&&this.#p){let e=this.#p,r;for(;r=e?.shift();)this.#t?.(...r)}}}#q(e){let r=this.#g,i=this.#a[r],n=this.#s[r];return this.#b&&this.#f(n)?n.__abortController.abort(new Error("evicted")):(this.#v||this.#h)&&(this.#v&&this.#n?.(n,i,"evict"),this.#h&&this.#p?.push([n,i,"evict"])),this.#N(r),e&&(this.#a[r]=void 0,this.#s[r]=void 0,this.#E.push(r)),this.#u===1?(this.#g=this.#d=0,this.#E.length=0):this.#g=this.#y[r],this.#l.delete(i),this.#u--,r}has(e,r={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:n}=r,s=this.#l.get(e);if(s!==void 0){let o=this.#s[s];if(this.#f(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#w(s))n&&(n.has="stale",this.#i(n,s));else return i&&this.#A(s),n&&(n.has="hit",this.#i(n,s)),!0}else n&&(n.has="miss");return!1}peek(e,r={}){let{allowStale:i=this.allowStale}=r,n=this.#l.get(e);if(n===void 0||!i&&this.#w(n))return;let s=this.#s[n];return this.#f(s)?s.__staleWhileFetching:s}#F(e,r,i,n){let s=r===void 0?void 0:this.#s[r];if(this.#f(s))return s;let o=new po,{signal:a}=i;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:i,context:n},u=(p,E=!1)=>{let{aborted:y}=o.signal,b=i.ignoreFetchAbort&&p!==void 0;if(i.status&&(y&&!E?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,b&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),y&&!b&&!E)return c(o.signal.reason);let v=d;return this.#s[r]===d&&(p===void 0?v.__staleWhileFetching?this.#s[r]=v.__staleWhileFetching:this.#P(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,p,l.options))),p},f=p=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=p),c(p)),c=p=>{let{aborted:E}=o.signal,y=E&&i.allowStaleOnFetchAbort,b=y||i.allowStaleOnFetchRejection,v=b||i.noDeleteOnFetchRejection,S=d;if(this.#s[r]===d&&(!v||S.__staleWhileFetching===void 0?this.#P(e,"fetch"):y||(this.#s[r]=S.__staleWhileFetching)),b)return i.status&&S.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),S.__staleWhileFetching;if(S.__returned===S)throw p},h=(p,E)=>{let y=this.#o?.(e,s,l);y&&y instanceof Promise&&y.then(b=>p(b===void 0?void 0:b),E),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(p(void 0),i.allowStaleOnFetchAbort&&(p=b=>u(b,!0)))})};i.status&&(i.status.fetchDispatched=!0);let d=new Promise(h).then(u,f),m=Object.assign(d,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(e,m,{...l.options,status:void 0}),r=this.#l.get(e)):this.#s[r]=m,m}#f(e){if(!this.#b)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof po}async fetch(e,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:m=this.allowStaleOnFetchAbort,context:p,forceRefresh:E=!1,status:y,signal:b}=r;if(!this.#b)return y&&(y.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:y});let v={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:u,noUpdateTTL:f,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:m,ignoreFetchAbort:d,status:y,signal:b},S=this.#l.get(e);if(S===void 0){y&&(y.fetch="miss");let T=this.#F(e,S,v,p);return T.__returned=T}else{let T=this.#s[S];if(this.#f(T)){let R=i&&T.__staleWhileFetching!==void 0;return y&&(y.fetch="inflight",R&&(y.returnedStale=!0)),R?T.__staleWhileFetching:T.__returned=T}let D=this.#w(S);if(!E&&!D)return y&&(y.fetch="hit"),this.#B(S),n&&this.#A(S),y&&this.#i(y,S),T;let x=this.#F(e,S,v,p),w=x.__staleWhileFetching!==void 0&&i;return y&&(y.fetch=D?"stale":"refresh",w&&D&&(y.returnedStale=!0)),w?x.__staleWhileFetching:x.__returned=x}}async forceFetch(e,r={}){let i=await this.fetch(e,r);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(e,r={}){let i=this.#S;if(!i)throw new Error("no memoMethod provided to constructor");let{context:n,forceRefresh:s,...o}=r,a=this.get(e,o);if(!s&&a!==void 0)return a;let l=i(e,a,{options:o,context:n});return this.set(e,l,o),l}get(e,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,a=this.#l.get(e);if(a!==void 0){let l=this.#s[a],u=this.#f(l);return o&&this.#i(o,a),this.#w(a)?(o&&(o.get="stale"),u?(o&&i&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),i?l.__staleWhileFetching:void 0):(s||this.#P(e,"expire"),o&&i&&(o.returnedStale=!0),i?l:void 0)):(o&&(o.get="hit"),u?l.__staleWhileFetching:(this.#B(a),n&&this.#A(a),l))}else o&&(o.get="miss")}#j(e,r){this.#m[r]=e,this.#y[e]=r}#B(e){e!==this.#d&&(e===this.#g?this.#g=this.#y[e]:this.#j(this.#m[e],this.#y[e]),this.#j(this.#d,e),this.#d=e)}delete(e){return this.#P(e,"delete")}#P(e,r){let i=!1;if(this.#u!==0){let n=this.#l.get(e);if(n!==void 0)if(i=!0,this.#u===1)this.#U(r);else{this.#N(n);let s=this.#s[n];if(this.#f(s)?s.__abortController.abort(new Error("deleted")):(this.#v||this.#h)&&(this.#v&&this.#n?.(s,e,r),this.#h&&this.#p?.push([s,e,r])),this.#l.delete(e),this.#a[n]=void 0,this.#s[n]=void 0,n===this.#d)this.#d=this.#m[n];else if(n===this.#g)this.#g=this.#y[n];else{let o=this.#m[n];this.#y[o]=this.#y[n];let a=this.#y[n];this.#m[a]=this.#m[n]}this.#u--,this.#E.push(n)}}if(this.#h&&this.#p?.length){let n=this.#p,s;for(;s=n?.shift();)this.#t?.(...s)}return i}clear(){return this.#U("delete")}#U(e){for(let r of this.#I({allowStale:!0})){let i=this.#s[r];if(this.#f(i))i.__abortController.abort(new Error("deleted"));else{let n=this.#a[r];this.#v&&this.#n?.(i,n,e),this.#h&&this.#p?.push([i,n,e])}}if(this.#l.clear(),this.#s.fill(void 0),this.#a.fill(void 0),this.#_&&this.#T&&(this.#_.fill(0),this.#T.fill(0)),this.#x&&this.#x.fill(0),this.#g=0,this.#d=0,this.#E.length=0,this.#c=0,this.#u=0,this.#h&&this.#p){let r=this.#p,i;for(;i=r?.shift();)this.#t?.(...i)}}};go.LRUCache=ef});var uf=g(De=>{"use strict";var h2=De&&De.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(De,"__esModule",{value:!0});De.Minipass=De.isWritable=De.isReadable=De.isStream=void 0;var o0=typeof process=="object"&&process?process:{stdout:null,stderr:null},lf=P("events"),f0=h2(P("stream")),d2=P("string_decoder"),p2=t=>!!t&&typeof t=="object"&&(t instanceof Eo||t instanceof f0.default||(0,De.isReadable)(t)||(0,De.isWritable)(t));De.isStream=p2;var g2=t=>!!t&&typeof t=="object"&&t instanceof lf.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==f0.default.Writable.prototype.pipe;De.isReadable=g2;var _2=t=>!!t&&typeof t=="object"&&t instanceof lf.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";De.isWritable=_2;var St=Symbol("EOF"),Et=Symbol("maybeEmitEnd"),jt=Symbol("emittedEnd"),_o=Symbol("emittingEnd"),on=Symbol("emittedError"),yo=Symbol("closed"),a0=Symbol("read"),mo=Symbol("flush"),l0=Symbol("flushChunk"),Ke=Symbol("encoding"),ei=Symbol("decoder"),de=Symbol("flowing"),an=Symbol("paused"),ti=Symbol("resume"),pe=Symbol("buffer"),Ie=Symbol("pipes"),ge=Symbol("bufferLength"),tf=Symbol("bufferPush"),bo=Symbol("bufferShift"),Re=Symbol("objectMode"),le=Symbol("destroyed"),rf=Symbol("error"),nf=Symbol("emitData"),u0=Symbol("emitEnd"),sf=Symbol("emitEnd2"),at=Symbol("async"),of=Symbol("abort"),wo=Symbol("aborted"),ln=Symbol("signal"),dr=Symbol("dataListeners"),Ce=Symbol("discarded"),un=t=>Promise.resolve().then(t),y2=t=>t(),m2=t=>t==="end"||t==="finish"||t==="prefinish",b2=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,w2=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),So=class{src;dest;opts;ondrain;constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[ti](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},af=class extends So{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>this.dest.emit("error",n),e.on("error",this.proxyErrors)}},S2=t=>!!t.objectMode,E2=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",Eo=class extends lf.EventEmitter{[de]=!1;[an]=!1;[Ie]=[];[pe]=[];[Re];[Ke];[at];[ei];[St]=!1;[jt]=!1;[_o]=!1;[yo]=!1;[on]=null;[ge]=0;[le]=!1;[ln];[wo]=!1;[dr]=0;[Ce]=!1;writable=!0;readable=!0;constructor(...e){let r=e[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");S2(r)?(this[Re]=!0,this[Ke]=null):E2(r)?(this[Ke]=r.encoding,this[Re]=!1):(this[Re]=!1,this[Ke]=null),this[at]=!!r.async,this[ei]=this[Ke]?new d2.StringDecoder(this[Ke]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[pe]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Ie]});let{signal:i}=r;i&&(this[ln]=i,i.aborted?this[of]():i.addEventListener("abort",()=>this[of]()))}get bufferLength(){return this[ge]}get encoding(){return this[Ke]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Re]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[at]}set async(e){this[at]=this[at]||!!e}[of](){this[wo]=!0,this.emit("abort",this[ln]?.reason),this.destroy(this[ln]?.reason)}get aborted(){return this[wo]}set aborted(e){}write(e,r,i){if(this[wo])return!1;if(this[St])throw new Error("write after end");if(this[le])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[at]?un:y2;if(!this[Re]&&!Buffer.isBuffer(e)){if(w2(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(b2(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Re]?(this[de]&&this[ge]!==0&&this[mo](!0),this[de]?this.emit("data",e):this[tf](e),this[ge]!==0&&this.emit("readable"),i&&n(i),this[de]):e.length?(typeof e=="string"&&!(r===this[Ke]&&!this[ei]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ke]&&(e=this[ei].write(e)),this[de]&&this[ge]!==0&&this[mo](!0),this[de]?this.emit("data",e):this[tf](e),this[ge]!==0&&this.emit("readable"),i&&n(i),this[de]):(this[ge]!==0&&this.emit("readable"),i&&n(i),this[de])}read(e){if(this[le])return null;if(this[Ce]=!1,this[ge]===0||e===0||e&&e>this[ge])return this[Et](),null;this[Re]&&(e=null),this[pe].length>1&&!this[Re]&&(this[pe]=[this[Ke]?this[pe].join(""):Buffer.concat(this[pe],this[ge])]);let r=this[a0](e||null,this[pe][0]);return this[Et](),r}[a0](e,r){if(this[Re])this[bo]();else{let i=r;e===i.length||e===null?this[bo]():typeof i=="string"?(this[pe][0]=i.slice(e),r=i.slice(0,e),this[ge]-=e):(this[pe][0]=i.subarray(e),r=i.subarray(0,e),this[ge]-=e)}return this.emit("data",r),!this[pe].length&&!this[St]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=void 0),typeof r=="function"&&(i=r,r="utf8"),e!==void 0&&this.write(e,r),i&&this.once("end",i),this[St]=!0,this.writable=!1,(this[de]||!this[an])&&this[Et](),this}[ti](){this[le]||(!this[dr]&&!this[Ie].length&&(this[Ce]=!0),this[an]=!1,this[de]=!0,this.emit("resume"),this[pe].length?this[mo]():this[St]?this[Et]():this.emit("drain"))}resume(){return this[ti]()}pause(){this[de]=!1,this[an]=!0,this[Ce]=!1}get destroyed(){return this[le]}get flowing(){return this[de]}get paused(){return this[an]}[tf](e){this[Re]?this[ge]+=1:this[ge]+=e.length,this[pe].push(e)}[bo](){return this[Re]?this[ge]-=1:this[ge]-=this[pe][0].length,this[pe].shift()}[mo](e=!1){do;while(this[l0](this[bo]())&&this[pe].length);!e&&!this[pe].length&&!this[St]&&this.emit("drain")}[l0](e){return this.emit("data",e),this[de]}pipe(e,r){if(this[le])return e;this[Ce]=!1;let i=this[jt];return r=r||{},e===o0.stdout||e===o0.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Ie].push(r.proxyErrors?new af(this,e,r):new So(this,e,r)),this[at]?un(()=>this[ti]()):this[ti]()),e}unpipe(e){let r=this[Ie].find(i=>i.dest===e);r&&(this[Ie].length===1?(this[de]&&this[dr]===0&&(this[de]=!1),this[Ie]=[]):this[Ie].splice(this[Ie].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);if(e==="data")this[Ce]=!1,this[dr]++,!this[Ie].length&&!this[de]&&this[ti]();else if(e==="readable"&&this[ge]!==0)super.emit("readable");else if(m2(e)&&this[jt])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[on]){let n=r;this[at]?un(()=>n.call(this,this[on])):n.call(this,this[on])}return i}removeListener(e,r){return this.off(e,r)}off(e,r){let i=super.off(e,r);return e==="data"&&(this[dr]=this.listeners("data").length,this[dr]===0&&!this[Ce]&&!this[Ie].length&&(this[de]=!1)),i}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[dr]=0,!this[Ce]&&!this[Ie].length&&(this[de]=!1)),r}get emittedEnd(){return this[jt]}[Et](){!this[_o]&&!this[jt]&&!this[le]&&this[pe].length===0&&this[St]&&(this[_o]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[yo]&&this.emit("close"),this[_o]=!1)}emit(e,...r){let i=r[0];if(e!=="error"&&e!=="close"&&e!==le&&this[le])return!1;if(e==="data")return!this[Re]&&!i?!1:this[at]?(un(()=>this[nf](i)),!0):this[nf](i);if(e==="end")return this[u0]();if(e==="close"){if(this[yo]=!0,!this[jt]&&!this[le])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[on]=i,super.emit(rf,i);let s=!this[ln]||this.listeners("error").length?super.emit("error",i):!1;return this[Et](),s}else if(e==="resume"){let s=super.emit("resume");return this[Et](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,...r);return this[Et](),n}[nf](e){for(let i of this[Ie])i.dest.write(e)===!1&&this.pause();let r=this[Ce]?!1:super.emit("data",e);return this[Et](),r}[u0](){return this[jt]?!1:(this[jt]=!0,this.readable=!1,this[at]?(un(()=>this[sf]()),!0):this[sf]())}[sf](){if(this[ei]){let r=this[ei].end();if(r){for(let i of this[Ie])i.dest.write(r);this[Ce]||super.emit("data",r)}}for(let r of this[Ie])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[Re]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Re]||(e.dataLength+=i.length)}),await r,e}async concat(){if(this[Re])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Ke]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,r)=>{this.on(le,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[Ce]=!1;let e=!1,r=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return r();let n=this.read();if(n!==null)return Promise.resolve({done:!1,value:n});if(this[St])return r();let s,o,a=c=>{this.off("data",l),this.off("end",u),this.off(le,f),r(),o(c)},l=c=>{this.off("error",a),this.off("end",u),this.off(le,f),this.pause(),s({value:c,done:!!this[St]})},u=()=>{this.off("error",a),this.off("data",l),this.off(le,f),r(),s({done:!0,value:void 0})},f=()=>a(new Error("stream destroyed"));return new Promise((c,h)=>{o=h,s=c,this.once(le,f),this.once("error",a),this.once("end",u),this.once("data",l)})},throw:r,return:r,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[Ce]=!1;let e=!1,r=()=>(this.pause(),this.off(rf,r),this.off(le,r),this.off("end",r),e=!0,{done:!0,value:void 0}),i=()=>{if(e)return r();let n=this.read();return n===null?r():{done:!1,value:n}};return this.once("end",r),this.once(rf,r),this.once(le,r),{next:i,throw:r,return:r,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[le])return e?this.emit("error",e):this.emit(le),this;this[le]=!0,this[Ce]=!0,this[pe].length=0,this[ge]=0;let r=this;return typeof r.close=="function"&&!this[yo]&&r.close(),e?this.emit("error",e):this.emit(le),this}static get isStream(){return De.isStream}};De.Minipass=Eo});var T0=g(H=>{"use strict";var v2=H&&H.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),x2=H&&H.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),T2=H&&H.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&v2(e,t,r);return x2(e,t),e};Object.defineProperty(H,"__esModule",{value:!0});H.PathScurry=H.Path=H.PathScurryDarwin=H.PathScurryPosix=H.PathScurryWin32=H.PathScurryBase=H.PathPosix=H.PathWin32=H.PathBase=H.ChildrenCache=H.ResolveCache=void 0;var _0=s0(),Ao=P("path"),R2=P("url"),cn=P("fs"),A2=T2(P("fs")),O2=cn.realpathSync.native,vo=P("fs/promises"),c0=uf(),hn={lstatSync:cn.lstatSync,readdir:cn.readdir,readdirSync:cn.readdirSync,readlinkSync:cn.readlinkSync,realpathSync:O2,promises:{lstat:vo.lstat,readdir:vo.readdir,readlink:vo.readlink,realpath:vo.realpath}},y0=t=>!t||t===hn||t===A2?hn:{...hn,...t,promises:{...hn.promises,...t.promises||{}}},m0=/^\\\\\?\\([a-z]:)\\?$/i,I2=t=>t.replace(/\//g,"\\").replace(m0,"$1\\"),D2=/[\\\/]/,Ge=0,b0=1,w0=2,lt=4,S0=6,E0=8,pr=10,v0=12,We=15,fn=~We,ff=16,h0=32,dn=64,Ze=128,xo=256,Ro=512,d0=dn|Ze|Ro,P2=1023,cf=t=>t.isFile()?E0:t.isDirectory()?lt:t.isSymbolicLink()?pr:t.isCharacterDevice()?w0:t.isBlockDevice()?S0:t.isSocket()?v0:t.isFIFO()?b0:Ge,p0=new Map,pn=t=>{let e=p0.get(t);if(e)return e;let r=t.normalize("NFKD");return p0.set(t,r),r},g0=new Map,To=t=>{let e=g0.get(t);if(e)return e;let r=pn(t.toLowerCase());return g0.set(t,r),r},gn=class extends _0.LRUCache{constructor(){super({max:256})}};H.ResolveCache=gn;var Oo=class extends _0.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:r=>r.length+1})}};H.ChildrenCache=Oo;var x0=Symbol("PathScurry setAsCwd"),Se=class{name;root;roots;parent;nocase;isCWD=!1;#e;#r;get dev(){return this.#r}#n;get mode(){return this.#n}#t;get nlink(){return this.#t}#o;get uid(){return this.#o}#S;get gid(){return this.#S}#u;get rdev(){return this.#u}#c;get blksize(){return this.#c}#l;get ino(){return this.#l}#a;get size(){return this.#a}#s;get blocks(){return this.#s}#y;get atimeMs(){return this.#y}#m;get mtimeMs(){return this.#m}#g;get ctimeMs(){return this.#g}#d;get birthtimeMs(){return this.#d}#E;get atime(){return this.#E}#p;get mtime(){return this.#p}#x;get ctime(){return this.#x}#T;get birthtime(){return this.#T}#_;#v;#b;#h;#R;#A;#i;#L;#w;#D;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,r=Ge,i,n,s,o,a){this.name=e,this.#_=s?To(e):pn(e),this.#i=r&P2,this.nocase=s,this.roots=n,this.root=i||this,this.#L=o,this.#b=a.fullpath,this.#R=a.relative,this.#A=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=y0(a.fs)}depth(){return this.#v!==void 0?this.#v:this.parent?this.#v=this.parent.depth()+1:this.#v=0}childrenCache(){return this.#L}resolve(e){if(!e)return this;let r=this.getRootString(e),n=e.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#N(n):this.#N(n)}#N(e){let r=this;for(let i of e)r=r.child(i);return r}children(){let e=this.#L.get(this);if(e)return e;let r=Object.assign([],{provisional:0});return this.#L.set(this,r),this.#i&=~ff,r}child(e,r){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let i=this.children(),n=this.nocase?To(e):pn(e);for(let l of i)if(l.#_===n)return l;let s=this.parent?this.sep:"",o=this.#b?this.#b+s+e:void 0,a=this.newChild(e,Ge,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#i|=Ze),i.push(a),a}relative(){if(this.isCWD)return"";if(this.#R!==void 0)return this.#R;let e=this.name,r=this.parent;if(!r)return this.#R=this.name;let i=r.relative();return i+(!i||!r.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#A!==void 0)return this.#A;let e=this.name,r=this.parent;if(!r)return this.#A=this.fullpathPosix();let i=r.relativePosix();return i+(!i||!r.parent?"":"/")+e}fullpath(){if(this.#b!==void 0)return this.#b;let e=this.name,r=this.parent;if(!r)return this.#b=this.name;let n=r.fullpath()+(r.parent?this.sep:"")+e;return this.#b=n}fullpathPosix(){if(this.#h!==void 0)return this.#h;if(this.sep==="/")return this.#h=this.fullpath();if(!this.parent){let n=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(n)?this.#h=`//?/${n}`:this.#h=n}let e=this.parent,r=e.fullpathPosix(),i=r+(!r||!e.parent?"":"/")+this.name;return this.#h=i}isUnknown(){return(this.#i&We)===Ge}isType(e){return this[`is${e}`]()}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.#i&We)===E0}isDirectory(){return(this.#i&We)===lt}isCharacterDevice(){return(this.#i&We)===w0}isBlockDevice(){return(this.#i&We)===S0}isFIFO(){return(this.#i&We)===b0}isSocket(){return(this.#i&We)===v0}isSymbolicLink(){return(this.#i&pr)===pr}lstatCached(){return this.#i&h0?this:void 0}readlinkCached(){return this.#w}realpathCached(){return this.#D}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#w)return!0;if(!this.parent)return!1;let e=this.#i&We;return!(e!==Ge&&e!==pr||this.#i&xo||this.#i&Ze)}calledReaddir(){return!!(this.#i&ff)}isENOENT(){return!!(this.#i&Ze)}isNamed(e){return this.nocase?this.#_===To(e):this.#_===pn(e)}async readlink(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),i=(await this.parent.realpath())?.resolve(r);if(i)return this.#w=i}catch(r){this.#f(r.code);return}}readlinkSync(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),i=this.parent.realpathSync()?.resolve(r);if(i)return this.#w=i}catch(r){this.#f(r.code);return}}#C(e){this.#i|=ff;for(let r=e.provisional;r<e.length;r++){let i=e[r];i&&i.#k()}}#k(){this.#i&Ze||(this.#i=(this.#i|Ze)&fn,this.#O())}#O(){let e=this.children();e.provisional=0;for(let r of e)r.#k()}#I(){this.#i|=Ro,this.#M()}#M(){if(this.#i&dn)return;let e=this.#i;(e&We)===lt&&(e&=fn),this.#i=e|dn,this.#O()}#q(e=""){e==="ENOTDIR"||e==="EPERM"?this.#M():e==="ENOENT"?this.#k():this.children().provisional=0}#F(e=""){e==="ENOTDIR"?this.parent.#M():e==="ENOENT"&&this.#k()}#f(e=""){let r=this.#i;r|=xo,e==="ENOENT"&&(r|=Ze),(e==="EINVAL"||e==="UNKNOWN")&&(r&=fn),this.#i=r,e==="ENOTDIR"&&this.parent&&this.parent.#M()}#j(e,r){return this.#P(e,r)||this.#B(e,r)}#B(e,r){let i=cf(e),n=this.newChild(e.name,i,{parent:this}),s=n.#i&We;return s!==lt&&s!==pr&&s!==Ge&&(n.#i|=dn),r.unshift(n),r.provisional++,n}#P(e,r){for(let i=r.provisional;i<r.length;i++){let n=r[i];if((this.nocase?To(e.name):pn(e.name))===n.#_)return this.#U(e,n,i,r)}}#U(e,r,i,n){let s=r.name;return r.#i=r.#i&fn|cf(e),s!==e.name&&(r.name=e.name),i!==n.provisional&&(i===n.length-1?n.pop():n.splice(i,1),n.unshift(r)),n.provisional++,r}async lstat(){if((this.#i&Ze)===0)try{return this.#$(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#F(e.code)}}lstatSync(){if((this.#i&Ze)===0)try{return this.#$(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#F(e.code)}}#$(e){let{atime:r,atimeMs:i,birthtime:n,birthtimeMs:s,blksize:o,blocks:a,ctime:l,ctimeMs:u,dev:f,gid:c,ino:h,mode:d,mtime:m,mtimeMs:p,nlink:E,rdev:y,size:b,uid:v}=e;this.#E=r,this.#y=i,this.#T=n,this.#d=s,this.#c=o,this.#s=a,this.#x=l,this.#g=u,this.#r=f,this.#S=c,this.#l=h,this.#n=d,this.#p=m,this.#m=p,this.#t=E,this.#u=y,this.#a=b,this.#o=v;let S=cf(e);this.#i=this.#i&fn|S|h0,S!==Ge&&S!==lt&&S!==pr&&(this.#i|=dn)}#G=[];#z=!1;#H(e){this.#z=!1;let r=this.#G.slice();this.#G.length=0,r.forEach(i=>i(null,e))}readdirCB(e,r=!1){if(!this.canReaddir()){r?e(null,[]):queueMicrotask(()=>e(null,[]));return}let i=this.children();if(this.calledReaddir()){let s=i.slice(0,i.provisional);r?e(null,s):queueMicrotask(()=>e(null,s));return}if(this.#G.push(e),this.#z)return;this.#z=!0;let n=this.fullpath();this.#e.readdir(n,{withFileTypes:!0},(s,o)=>{if(s)this.#q(s.code),i.provisional=0;else{for(let a of o)this.#j(a,i);this.#C(i)}this.#H(i.slice(0,i.provisional))})}#W;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();if(this.#W)await this.#W;else{let i=()=>{};this.#W=new Promise(n=>i=n);try{for(let n of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#j(n,e);this.#C(e)}catch(n){this.#q(n.code),e.provisional=0}this.#W=void 0,i()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();try{for(let i of this.#e.readdirSync(r,{withFileTypes:!0}))this.#j(i,e);this.#C(e)}catch(i){this.#q(i.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#i&d0)return!1;let e=We&this.#i;return e===Ge||e===lt||e===pr}shouldWalk(e,r){return(this.#i<)===lt&&!(this.#i&d0)&&!e.has(this)&&(!r||r(this))}async realpath(){if(this.#D)return this.#D;if(!((Ro|xo|Ze)&this.#i))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#D=this.resolve(e)}catch{this.#I()}}realpathSync(){if(this.#D)return this.#D;if(!((Ro|xo|Ze)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#D=this.resolve(e)}catch{this.#I()}}[x0](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let r=new Set([]),i=[],n=this;for(;n&&n.parent;)r.add(n),n.#R=i.join(this.sep),n.#A=i.join("/"),n=n.parent,i.push("..");for(n=e;n&&n.parent&&!r.has(n);)n.#R=void 0,n.#A=void 0,n=n.parent}};H.PathBase=Se;var _n=class t extends Se{sep="\\";splitSep=D2;constructor(e,r=Ge,i,n,s,o,a){super(e,r,i,n,s,o,a)}newChild(e,r=Ge,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(e){return Ao.win32.parse(e).root}getRoot(e){if(e=I2(e.toUpperCase()),e===this.root.name)return this.root;for(let[r,i]of Object.entries(this.roots))if(this.sameRoot(e,r))return this.roots[e]=i;return this.roots[e]=new bn(e,this).root}sameRoot(e,r=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(m0,"$1\\"),e===r}};H.PathWin32=_n;var yn=class t extends Se{splitSep="/";sep="/";constructor(e,r=Ge,i,n,s,o,a){super(e,r,i,n,s,o,a)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,r=Ge,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}};H.PathPosix=yn;var mn=class{root;rootPath;roots;cwd;#e;#r;#n;nocase;#t;constructor(e=process.cwd(),r,i,{nocase:n,childrenCacheSize:s=16*1024,fs:o=hn}={}){this.#t=y0(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,R2.fileURLToPath)(e));let a=r.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new gn,this.#r=new gn,this.#n=new Oo(s);let l=a.substring(this.rootPath.length).split(i);if(l.length===1&&!l[0]&&l.pop(),n===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=n,this.root=this.newRoot(this.#t),this.roots[this.rootPath]=this.root;let u=this.root,f=l.length-1,c=r.sep,h=this.rootPath,d=!1;for(let m of l){let p=f--;u=u.child(m,{relative:new Array(p).fill("..").join(c),relativePosix:new Array(p).fill("..").join("/"),fullpath:h+=(d?"":c)+m}),d=!0}this.cwd=u}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#n}resolve(...e){let r="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let i=this.#e.get(r);if(i!==void 0)return i;let n=this.cwd.resolve(r).fullpath();return this.#e.set(r,n),n}resolvePosix(...e){let r="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let i=this.#r.get(r);if(i!==void 0)return i;let n=this.cwd.resolve(r).fullpathPosix();return this.#r.set(r,n),n}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i}=r;if(e.canReaddir()){let n=await e.readdir();return i?n:n.map(s=>s.name)}else return[]}readdirSync(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0}=r;return e.canReaddir()?i?e.readdirSync():e.readdirSync().map(n=>n.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=await e.readlink();return r?i:i?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=e.readlinkSync();return r?i:i?.fullpath()}async realpath(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=await e.realpath();return r?i:i?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=e.realpathSync();return r?i:i?.fullpath()}async walk(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(e))&&a.push(i?e:e.fullpath());let l=new Set,u=(c,h)=>{l.add(c),c.readdirCB((d,m)=>{if(d)return h(d);let p=m.length;if(!p)return h();let E=()=>{--p===0&&h()};for(let y of m)(!s||s(y))&&a.push(i?y:y.fullpath()),n&&y.isSymbolicLink()?y.realpath().then(b=>b?.isUnknown()?b.lstat():b).then(b=>b?.shouldWalk(l,o)?u(b,E):E()):y.shouldWalk(l,o)?u(y,E):E()},!0)},f=e;return new Promise((c,h)=>{u(f,d=>{if(d)return h(d);c(a)})})}walkSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(e))&&a.push(i?e:e.fullpath());let l=new Set([e]);for(let u of l){let f=u.readdirSync();for(let c of f){(!s||s(c))&&a.push(i?c:c.fullpath());let h=c;if(c.isSymbolicLink()){if(!(n&&(h=c.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(l,o)&&l.add(h)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,r={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd),this.stream(e,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r;(!s||s(e))&&(yield i?e:e.fullpath());let a=new Set([e]);for(let l of a){let u=l.readdirSync();for(let f of u){(!s||s(f))&&(yield i?f:f.fullpath());let c=f;if(f.isSymbolicLink()){if(!(n&&(c=f.realpathSync())))continue;c.isUnknown()&&c.lstatSync()}c.shouldWalk(a,o)&&a.add(c)}}}stream(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new c0.Minipass({objectMode:!0});(!s||s(e))&&a.write(i?e:e.fullpath());let l=new Set,u=[e],f=0,c=()=>{let h=!1;for(;!h;){let d=u.shift();if(!d){f===0&&a.end();return}f++,l.add(d);let m=(E,y,b=!1)=>{if(E)return a.emit("error",E);if(n&&!b){let v=[];for(let S of y)S.isSymbolicLink()&&v.push(S.realpath().then(T=>T?.isUnknown()?T.lstat():T));if(v.length){Promise.all(v).then(()=>m(null,y,!0));return}}for(let v of y)v&&(!s||s(v))&&(a.write(i?v:v.fullpath())||(h=!0));f--;for(let v of y){let S=v.realpathCached()||v;S.shouldWalk(l,o)&&u.push(S)}h&&!a.flowing?a.once("drain",c):p||c()},p=!0;d.readdirCB(m,!0),p=!1}};return c(),a}streamSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new c0.Minipass({objectMode:!0}),l=new Set;(!s||s(e))&&a.write(i?e:e.fullpath());let u=[e],f=0,c=()=>{let h=!1;for(;!h;){let d=u.shift();if(!d){f===0&&a.end();return}f++,l.add(d);let m=d.readdirSync();for(let p of m)(!s||s(p))&&(a.write(i?p:p.fullpath())||(h=!0));f--;for(let p of m){let E=p;if(p.isSymbolicLink()){if(!(n&&(E=p.realpathSync())))continue;E.isUnknown()&&E.lstatSync()}E.shouldWalk(l,o)&&u.push(E)}}h&&!a.flowing&&a.once("drain",c)};return c(),a}chdir(e=this.cwd){let r=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[x0](r)}};H.PathScurryBase=mn;var bn=class extends mn{sep="\\";constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,Ao.win32,"\\",{...r,nocase:i}),this.nocase=i;for(let n=this.cwd;n;n=n.parent)n.nocase=this.nocase}parseRootPath(e){return Ao.win32.parse(e).root.toUpperCase()}newRoot(e){return new _n(this.rootPath,lt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};H.PathScurryWin32=bn;var wn=class extends mn{sep="/";constructor(e=process.cwd(),r={}){let{nocase:i=!1}=r;super(e,Ao.posix,"/",{...r,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new yn(this.rootPath,lt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};H.PathScurryPosix=wn;var Io=class extends wn{constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,{...r,nocase:i})}};H.PathScurryDarwin=Io;H.Path=process.platform==="win32"?_n:yn;H.PathScurry=process.platform==="win32"?bn:process.platform==="darwin"?Io:wn});var df=g(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.Pattern=void 0;var L2=qt(),N2=t=>t.length>=1,C2=t=>t.length>=1,hf=class t{#e;#r;#n;length;#t;#o;#S;#u;#c;#l;#a=!0;constructor(e,r,i,n){if(!N2(e))throw new TypeError("empty pattern list");if(!C2(r))throw new TypeError("empty glob list");if(r.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,i<0||i>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#r=r,this.#n=i,this.#t=n,this.#n===0){if(this.isUNC()){let[s,o,a,l,...u]=this.#e,[f,c,h,d,...m]=this.#r;u[0]===""&&(u.shift(),m.shift());let p=[s,o,a,l,""].join("/"),E=[f,c,h,d,""].join("/");this.#e=[p,...u],this.#r=[E,...m],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...o]=this.#e,[a,...l]=this.#r;o[0]===""&&(o.shift(),l.shift());let u=s+"/",f=a+"/";this.#e=[u,...o],this.#r=[f,...l],this.length=this.#e.length}}}pattern(){return this.#e[this.#n]}isString(){return typeof this.#e[this.#n]=="string"}isGlobstar(){return this.#e[this.#n]===L2.GLOBSTAR}isRegExp(){return this.#e[this.#n]instanceof RegExp}globString(){return this.#S=this.#S||(this.#n===0?this.isAbsolute()?this.#r[0]+this.#r.slice(1).join("/"):this.#r.join("/"):this.#r.slice(this.#n).join("/"))}hasMore(){return this.length>this.#n+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new t(this.#e,this.#r,this.#n+1,this.#t),this.#o.#l=this.#l,this.#o.#c=this.#c,this.#o.#u=this.#u,this.#o):this.#o=null}isUNC(){let e=this.#e;return this.#c!==void 0?this.#c:this.#c=this.#t==="win32"&&this.#n===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#u!==void 0?this.#u:this.#u=this.#t==="win32"&&this.#n===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#l!==void 0?this.#l:this.#l=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#n===0?e:""}checkFollowGlobstar(){return!(this.#n===0||!this.isGlobstar()||!this.#a)}markFollowGlobstar(){return this.#n===0||!this.isGlobstar()||!this.#a?!1:(this.#a=!1,!0)}};Do.Pattern=hf});var gf=g(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.Ignore=void 0;var R0=qt(),k2=df(),M2=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",pf=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:r,nocase:i,noext:n,noglobstar:s,platform:o=M2}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:r,nocase:i,noext:n,noglobstar:s,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of e)this.add(a)}add(e){let r=new R0.Minimatch(e,this.mmopts);for(let i=0;i<r.set.length;i++){let n=r.set[i],s=r.globParts[i];if(!n||!s)throw new Error("invalid pattern object");for(;n[0]==="."&&s[0]===".";)n.shift(),s.shift();let o=new k2.Pattern(n,s,0,this.platform),a=new R0.Minimatch(o.globString(),this.mmopts),l=s[s.length-1]==="**",u=o.isAbsolute();u?this.absolute.push(a):this.relative.push(a),l&&(u?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(e){let r=e.fullpath(),i=`${r}/`,n=e.relative()||".",s=`${n}/`;for(let o of this.relative)if(o.match(n)||o.match(s))return!0;for(let o of this.absolute)if(o.match(r)||o.match(i))return!0;return!1}childrenIgnored(e){let r=e.fullpath()+"/",i=(e.relative()||".")+"/";for(let n of this.relativeChildren)if(n.match(i))return!0;for(let n of this.absoluteChildren)if(n.match(r))return!0;return!1}};Po.Ignore=pf});var O0=g(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.Processor=ut.SubWalks=ut.MatchRecord=ut.HasWalkedCache=void 0;var A0=qt(),Lo=class t{store;constructor(e=new Map){this.store=e}copy(){return new t(new Map(this.store))}hasWalked(e,r){return this.store.get(e.fullpath())?.has(r.globString())}storeWalked(e,r){let i=e.fullpath(),n=this.store.get(i);n?n.add(r.globString()):this.store.set(i,new Set([r.globString()]))}};ut.HasWalkedCache=Lo;var No=class{store=new Map;add(e,r,i){let n=(r?2:0)|(i?1:0),s=this.store.get(e);this.store.set(e,s===void 0?n:n&s)}entries(){return[...this.store.entries()].map(([e,r])=>[e,!!(r&2),!!(r&1)])}};ut.MatchRecord=No;var Co=class{store=new Map;add(e,r){if(!e.canReaddir())return;let i=this.store.get(e);i?i.find(n=>n.globString()===r.globString())||i.push(r):this.store.set(e,[r])}get(e){let r=this.store.get(e);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};ut.SubWalks=Co;var _f=class t{hasWalkedCache;matches=new No;subwalks=new Co;patterns;follow;dot;opts;constructor(e,r){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=r?r.copy():new Lo}processPatterns(e,r){this.patterns=r;let i=r.map(n=>[e,n]);for(let[n,s]of i){this.hasWalkedCache.storeWalked(n,s);let o=s.root(),a=s.isAbsolute()&&this.opts.absolute!==!1;if(o){n=n.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let c=s.rest();if(c)s=c;else{this.matches.add(n,!0,!1);continue}}if(n.isENOENT())continue;let l,u,f=!1;for(;typeof(l=s.pattern())=="string"&&(u=s.rest());)n=n.resolve(l),s=u,f=!0;if(l=s.pattern(),u=s.rest(),f){if(this.hasWalkedCache.hasWalked(n,s))continue;this.hasWalkedCache.storeWalked(n,s)}if(typeof l=="string"){let c=l===".."||l===""||l===".";this.matches.add(n.resolve(l),a,c);continue}else if(l===A0.GLOBSTAR){(!n.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(n,s);let c=u?.pattern(),h=u?.rest();if(!u||(c===""||c===".")&&!h)this.matches.add(n,a,c===""||c===".");else if(c===".."){let d=n.parent||n;h?this.hasWalkedCache.hasWalked(d,h)||this.subwalks.add(d,h):this.matches.add(d,a,!0)}}else l instanceof RegExp&&this.subwalks.add(n,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(e,r){let i=this.subwalks.get(e),n=this.child();for(let s of r)for(let o of i){let a=o.isAbsolute(),l=o.pattern(),u=o.rest();l===A0.GLOBSTAR?n.testGlobstar(s,o,u,a):l instanceof RegExp?n.testRegExp(s,l,u,a):n.testString(s,l,u,a)}return n}testGlobstar(e,r,i,n){if((this.dot||!e.name.startsWith("."))&&(r.hasMore()||this.matches.add(e,n,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,r):e.isSymbolicLink()&&(i&&r.checkFollowGlobstar()?this.subwalks.add(e,i):r.markFollowGlobstar()&&this.subwalks.add(e,r)))),i){let s=i.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(e,s,i.rest(),n);else if(s===".."){let o=e.parent||e;this.subwalks.add(o,i)}else s instanceof RegExp&&this.testRegExp(e,s,i.rest(),n)}}testRegExp(e,r,i,n){r.test(e.name)&&(i?this.subwalks.add(e,i):this.matches.add(e,n,!1))}testString(e,r,i,n){e.isNamed(r)&&(i?this.subwalks.add(e,i):this.matches.add(e,n,!1))}};ut.Processor=_f});var P0=g(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.GlobStream=Bt.GlobWalker=Bt.GlobUtil=void 0;var q2=uf(),I0=gf(),D0=O0(),F2=(t,e)=>typeof t=="string"?new I0.Ignore([t],e):Array.isArray(t)?new I0.Ignore(t,e):t,Sn=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#r;#n;signal;maxDepth;includeChildMatches;constructor(e,r,i){if(this.patterns=e,this.path=r,this.opts=i,this.#n=!i.posix&&i.platform==="win32"?"\\":"/",this.includeChildMatches=i.includeChildMatches!==!1,(i.ignore||!this.includeChildMatches)&&(this.#r=F2(i.ignore??[],i),!this.includeChildMatches&&typeof this.#r.add!="function")){let n="cannot ignore child matches, ignore lacks add() method.";throw new Error(n)}this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#t(e){return this.seen.has(e)||!!this.#r?.ignored?.(e)}#o(e){return!!this.#r?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||await e.realpath(),!i)return;e=i}let s=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=await s.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(s,r)}matchCheckTest(e,r){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!r||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#t(e)?e:void 0}matchCheckSync(e,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||e.realpathSync(),!i)return;e=i}let s=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=s.realpathSync();o&&(o?.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(s,r)}matchFinish(e,r){if(this.#t(e))return;if(!this.includeChildMatches&&this.#r?.add){let s=`${e.relativePosix()}/**`;this.#r.add(s)}let i=this.opts.absolute===void 0?r:this.opts.absolute;this.seen.add(e);let n=this.opts.mark&&e.isDirectory()?this.#n:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(i){let s=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(s+n)}else{let s=this.opts.posix?e.relativePosix():e.relative(),o=this.opts.dotRelative&&!s.startsWith(".."+this.#n)?"."+this.#n:"";this.matchEmit(s?o+s+n:"."+n)}}async match(e,r,i){let n=await this.matchCheck(e,i);n&&this.matchFinish(n,r)}matchSync(e,r,i){let n=this.matchCheckSync(e,i);n&&this.matchFinish(n,r)}walkCB(e,r,i){this.signal?.aborted&&i(),this.walkCB2(e,r,new D0.Processor(this.opts),i)}walkCB2(e,r,i,n){if(this.#o(e))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2(e,r,i,n));return}i.processPatterns(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||(s++,this.match(a,l,u).then(()=>o()));for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirCached();a.calledReaddir()?this.walkCB3(a,l,i,o):a.readdirCB((u,f)=>this.walkCB3(a,f,i,o),!0)}o()}walkCB3(e,r,i,n){i=i.filterEntries(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||(s++,this.match(a,l,u).then(()=>o()));for(let[a,l]of i.subwalks.entries())s++,this.walkCB2(a,l,i.child(),o);o()}walkCBSync(e,r,i){this.signal?.aborted&&i(),this.walkCB2Sync(e,r,new D0.Processor(this.opts),i)}walkCB2Sync(e,r,i,n){if(this.#o(e))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2Sync(e,r,i,n));return}i.processPatterns(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||this.matchSync(a,l,u);for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirSync();this.walkCB3Sync(a,l,i,o)}o()}walkCB3Sync(e,r,i,n){i=i.filterEntries(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||this.matchSync(a,l,u);for(let[a,l]of i.subwalks.entries())s++,this.walkCB2Sync(a,l,i.child(),o);o()}};Bt.GlobUtil=Sn;var yf=class extends Sn{matches=new Set;constructor(e,r,i){super(e,r,i)}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,r)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?r(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}};Bt.GlobWalker=yf;var mf=class extends Sn{results;constructor(e,r,i){super(e,r,i),this.results=new q2.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}};Bt.GlobStream=mf});var wf=g(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.Glob=void 0;var j2=qt(),B2=P("url"),ko=T0(),U2=df(),Mo=P0(),W2=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",bf=class{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,r){if(!r)throw new TypeError("glob options required");if(this.withFileTypes=!!r.withFileTypes,this.signal=r.signal,this.follow=!!r.follow,this.dot=!!r.dot,this.dotRelative=!!r.dotRelative,this.nodir=!!r.nodir,this.mark=!!r.mark,r.cwd?(r.cwd instanceof URL||r.cwd.startsWith("file://"))&&(r.cwd=(0,B2.fileURLToPath)(r.cwd)):this.cwd="",this.cwd=r.cwd||"",this.root=r.root,this.magicalBraces=!!r.magicalBraces,this.nobrace=!!r.nobrace,this.noext=!!r.noext,this.realpath=!!r.realpath,this.absolute=r.absolute,this.includeChildMatches=r.includeChildMatches!==!1,this.noglobstar=!!r.noglobstar,this.matchBase=!!r.matchBase,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:1/0,this.stat=!!r.stat,this.ignore=r.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(r.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(l=>l.includes("/")?l:`./**/${l}`)}if(this.pattern=e,this.platform=r.platform||W2,this.opts={...r,platform:this.platform},r.scurry){if(this.scurry=r.scurry,r.nocase!==void 0&&r.nocase!==r.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let l=r.platform==="win32"?ko.PathScurryWin32:r.platform==="darwin"?ko.PathScurryDarwin:r.platform?ko.PathScurryPosix:ko.PathScurry;this.scurry=new l(this.cwd,{nocase:r.nocase,fs:r.fs})}this.nocase=this.scurry.nocase;let i=this.platform==="darwin"||this.platform==="win32",n={...r,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:i,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(l=>new j2.Minimatch(l,n)),[o,a]=s.reduce((l,u)=>(l[0].push(...u.set),l[1].push(...u.globParts),l),[[],[]]);this.patterns=o.map((l,u)=>{let f=a[u];if(!f)throw new Error("invalid pattern object");return new U2.Pattern(l,f,0,this.platform)})}async walk(){return[...await new Mo.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 Mo.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 Mo.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 Mo.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()}};qo.Glob=bf});var Sf=g(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.hasMagic=void 0;var G2=qt(),z2=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let r of t)if(new G2.Minimatch(r,e).hasMagic())return!0;return!1};Fo.hasMagic=z2});var k0=g(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.glob=U.sync=U.iterate=U.iterateSync=U.stream=U.streamSync=U.Ignore=U.hasMagic=U.Glob=U.unescape=U.escape=void 0;U.globStreamSync=En;U.globStream=Ef;U.globSync=vf;U.globIterateSync=vn;U.globIterate=xf;var L0=qt(),gr=wf(),$2=Sf(),C0=qt();Object.defineProperty(U,"escape",{enumerable:!0,get:function(){return C0.escape}});Object.defineProperty(U,"unescape",{enumerable:!0,get:function(){return C0.unescape}});var H2=wf();Object.defineProperty(U,"Glob",{enumerable:!0,get:function(){return H2.Glob}});var V2=Sf();Object.defineProperty(U,"hasMagic",{enumerable:!0,get:function(){return V2.hasMagic}});var Y2=gf();Object.defineProperty(U,"Ignore",{enumerable:!0,get:function(){return Y2.Ignore}});function En(t,e={}){return new gr.Glob(t,e).streamSync()}function Ef(t,e={}){return new gr.Glob(t,e).stream()}function vf(t,e={}){return new gr.Glob(t,e).walkSync()}async function N0(t,e={}){return new gr.Glob(t,e).walk()}function vn(t,e={}){return new gr.Glob(t,e).iterateSync()}function xf(t,e={}){return new gr.Glob(t,e).iterate()}U.streamSync=En;U.stream=Object.assign(Ef,{sync:En});U.iterateSync=vn;U.iterate=Object.assign(xf,{sync:vn});U.sync=Object.assign(vf,{stream:En,iterate:vn});U.glob=Object.assign(N0,{glob:N0,globSync:vf,sync:U.sync,globStream:Ef,stream:U.stream,globStreamSync:En,streamSync:U.streamSync,globIterate:xf,iterate:U.iterate,globIterateSync:vn,iterateSync:U.iterateSync,Glob:gr.Glob,hasMagic:$2.hasMagic,escape:L0.escape,unescape:L0.unescape});U.glob.glob=U.glob});var j0=g((aU,F0)=>{"use strict";var q0=$a(),ri=P("path"),Tf=lb(),K2=vw(),Z2=Cw(),Q2=Uw(),X2=k0(),_r=F0.exports={},M0=/[\/\\]/g,J2=function(t,e){var r=[];return Tf(t).forEach(function(i){var n=i.indexOf("!")===0;n&&(i=i.slice(1));var s=e(i);n?r=K2(r,s):r=Z2(r,s)}),r};_r.exists=function(){var t=ri.join.apply(ri,arguments);return q0.existsSync(t)};_r.expand=function(...t){var e=Q2(t[0])?t.shift():{},r=Array.isArray(t[0])?t[0]:t;if(r.length===0)return[];var i=J2(r,function(n){return X2.sync(n,e)});return e.filter&&(i=i.filter(function(n){n=ri.join(e.cwd||"",n);try{return typeof e.filter=="function"?e.filter(n):q0.statSync(n)[e.filter]()}catch{return!1}})),i};_r.expandMapping=function(t,e,r){r=Object.assign({rename:function(s,o){return ri.join(s||"",o)}},r);var i=[],n={};return _r.expand(r,t).forEach(function(s){var o=s;r.flatten&&(o=ri.basename(o)),r.ext&&(o=o.replace(/(\.[^\/]*)?$/,r.ext));var a=r.rename(e,o,r);r.cwd&&(s=ri.join(r.cwd,s)),a=a.replace(M0,"/"),s=s.replace(M0,"/"),n[a]?n[a].src.push(s):(i.push({src:[s],dest:a}),n[a]=i[i.length-1])}),i};_r.normalizeFilesArray=function(t){var e=[];return t.forEach(function(r){var i;("src"in r||"dest"in r)&&e.push(r)}),e.length===0?[]:(e=_(e).chain().forEach(function(r){!("src"in r)||!r.src||(Array.isArray(r.src)?r.src=Tf(r.src):r.src=[r.src])}).map(function(r){var i=Object.assign({},r);if(delete i.src,delete i.dest,r.expand)return _r.expandMapping(r.src,r.dest,i).map(function(s){var o=Object.assign({},r);return o.orig=Object.assign({},r),o.src=s.src,o.dest=s.dest,["expand","cwd","flatten","rename","ext"].forEach(function(a){delete o[a]}),o});var n=Object.assign({},r);return n.orig=Object.assign({},r),"src"in n&&Object.defineProperty(n,"src",{enumerable:!0,get:function s(){var o;return"result"in s||(o=r.src,o=Array.isArray(o)?Tf(o):[o],s.result=_r.expand(i,o)),s.result}}),"dest"in n&&(n.dest=r.dest),n}).flatten().value(),e)}});var ii=g((uU,W0)=>{"use strict";var Rf=$a(),B0=P("path"),eq=is(),tq=cp(),U0=gl(),rq=$g(),lU=P("stream").Stream,iq=cr().PassThrough,ke=W0.exports={};ke.file=j0();ke.collectStream=function(t,e){var r=[],i=0;t.on("error",e),t.on("data",function(n){r.push(n),i+=n.length}),t.on("end",function(){var n=Buffer.alloc(i),s=0;r.forEach(function(o){o.copy(n,s),s+=o.length}),e(null,n)})};ke.dateify=function(t){return t=t||new Date,t instanceof Date?t=t:typeof t=="string"?t=new Date(t):t=new Date,t};ke.defaults=function(t,e,r){var i=arguments;return i[0]=i[0]||{},rq(...i)};ke.isStream=function(t){return eq(t)};ke.lazyReadStream=function(t){return new tq.Readable(function(){return Rf.createReadStream(t)})};ke.normalizeInputSource=function(t){return t===null?Buffer.alloc(0):typeof t=="string"?Buffer.from(t):ke.isStream(t)?t.pipe(new iq):t};ke.sanitizePath=function(t){return U0(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};ke.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};ke.unixifyPath=function(t){return U0(t,!1).replace(/^\w+:/,"")};ke.walkdir=function(t,e,r){var i=[];typeof e=="function"&&(r=e,e=t),Rf.readdir(t,function(n,s){var o=0,a,l;if(n)return r(n);(function u(){if(a=s[o++],!a)return r(null,i);l=B0.join(t,a),Rf.stat(l,function(f,c){i.push({path:l,relative:B0.relative(e,l).replace(/\\/g,"/"),stats:c}),c&&c.isDirectory()?ke.walkdir(l,e,function(h,d){if(h)return r(h);d.forEach(function(m){i.push(m)}),u()}):u()})})()})}});var H0=g((z0,$0)=>{"use strict";var nq=P("util"),sq={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function G0(t,e){Error.captureStackTrace(this,this.constructor),this.message=sq[t]||t,this.code=t,this.data=e}nq.inherits(G0,Error);z0=$0.exports=G0});var Q0=g((fU,Z0)=>{"use strict";var If=P("fs"),Y0=nh(),V0=(id(),JE(rd)),Af=P("path"),ft=ii(),oq=P("util").inherits,ae=H0(),K0=cr().Transform,Of=process.platform==="win32",z=function(t,e){if(!(this instanceof z))return new z(t,e);typeof t!="string"&&(e=t,t="zip"),e=this.options=ft.defaults(e,{highWaterMark:1024*1024,statConcurrency:4}),K0.call(this,e),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=V0.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=V0.queue(this._onStatQueueTask.bind(this),e.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};oq(z,K0);z.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};z.prototype._append=function(t,e){e=e||{};var r={source:null,filepath:t};e.name||(e.name=t),e.sourcePath=t,r.data=e,this._entriesCount++,e.stats&&e.stats instanceof If.Stats?(r=this._updateQueueTaskWithStats(r,e.stats),r&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(r))):this._statQueue.push(r)};z.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)};z.prototype._maybeFinalize=function(){return this._state.finalizing||this._state.finalized||this._state.aborted?!1:this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()?(this._finalize(),!0):!1};z.prototype._moduleAppend=function(t,e,r){if(this._state.aborted){r();return}this._module.append(t,e,function(i){if(this._task=null,this._state.aborted){this._shutdown();return}if(i){this.emit("error",i),setImmediate(r);return}this.emit("entry",e),this._entriesProcessedCount++,e.stats&&e.stats.size&&(this._fsEntriesProcessedBytes+=e.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(r)}.bind(this))};z.prototype._moduleFinalize=function(){typeof this._module.finalize=="function"?this._module.finalize():typeof this._module.end=="function"?this._module.end():this.emit("error",new ae("NOENDMETHOD"))};z.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};z.prototype._moduleSupports=function(t){return!this._module.supports||!this._module.supports[t]?!1:this._module.supports[t]};z.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};z.prototype._normalizeEntryData=function(t,e){t=ft.defaults(t,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),e&&t.stats===!1&&(t.stats=e);var r=t.type==="directory";return t.name&&(typeof t.prefix=="string"&&t.prefix!==""&&(t.name=t.prefix+"/"+t.name,t.prefix=null),t.name=ft.sanitizePath(t.name),t.type!=="symlink"&&t.name.slice(-1)==="/"?(r=!0,t.type="directory"):r&&(t.name+="/")),typeof t.mode=="number"?Of?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(Of?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,Of&&r&&(t.mode=493)):t.mode===null&&(t.mode=r?493:420),t.stats&&t.date===null?t.date=t.stats.mtime:t.date=ft.dateify(t.date),t};z.prototype._onModuleError=function(t){this.emit("error",t)};z.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()};z.prototype._onQueueTask=function(t,e){var r=()=>{t.data.callback&&t.data.callback(),e()};if(this._state.finalizing||this._state.finalized||this._state.aborted){r();return}this._task=t,this._moduleAppend(t.source,t.data,r)};z.prototype._onStatQueueTask=function(t,e){if(this._state.finalizing||this._state.finalized||this._state.aborted){e();return}If.lstat(t.filepath,function(r,i){if(this._state.aborted){setImmediate(e);return}if(r){this._entriesCount--,this.emit("warning",r),setImmediate(e);return}t=this._updateQueueTaskWithStats(t,i),t&&(i.size&&(this._fsEntriesTotalBytes+=i.size),this._queue.push(t)),setImmediate(e)}.bind(this))};z.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};z.prototype._transform=function(t,e,r){t&&(this._pointer+=t.length),r(null,t)};z.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=ft.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=ft.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=ft.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else if(e.isSymbolicLink()&&this._moduleSupports("symlink")){var r=If.readlinkSync(t.filepath),i=Af.dirname(t.filepath);t.data.type="symlink",t.data.linkname=Af.relative(i,Af.resolve(i,r)),t.data.sourceType="buffer",t.source=Buffer.concat([])}else return e.isDirectory()?this.emit("warning",new ae("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new ae("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new ae("ENTRYNOTSUPPORTED",t.data)),null;return t.data=this._normalizeEntryData(t.data,e),t};z.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};z.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(e=this._normalizeEntryData(e),typeof e.name!="string"||e.name.length===0)return this.emit("error",new ae("ENTRYNAMEREQUIRED")),this;if(e.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new ae("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=ft.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else if(ft.isStream(t))e.sourceType="stream";else return this.emit("error",new ae("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;return this._entriesCount++,this._queue.push({data:e,source:t}),this};z.prototype.directory=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new ae("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,e===!1?e="":typeof e!="string"&&(e=t);var i=!1;typeof r=="function"?(i=r,r={}):typeof r!="object"&&(r={});var n={stat:!0,dot:!0};function s(){this._pending--,this._maybeFinalize()}function o(u){this.emit("error",u)}function a(u){l.pause();var f=!1,c=Object.assign({},r);c.name=u.relative,c.prefix=e,c.stats=u.stat,c.callback=l.resume.bind(l);try{if(i){if(c=i(c),c===!1)f=!0;else if(typeof c!="object")throw new ae("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}}catch(h){this.emit("error",h);return}if(f){l.resume();return}this._append(u.absolute,c)}var l=Y0(t,n);return l.on("error",o.bind(this)),l.on("match",a.bind(this)),l.on("end",s.bind(this)),this};z.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new ae("QUEUECLOSED")),this):typeof t!="string"||t.length===0?(this.emit("error",new ae("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)};z.prototype.glob=function(t,e,r){this._pending++,e=ft.defaults(e,{stat:!0,pattern:t});function i(){this._pending--,this._maybeFinalize()}function n(a){this.emit("error",a)}function s(a){o.pause();var l=Object.assign({},r);l.callback=o.resume.bind(o),l.stats=a.stat,l.name=a.relative,this._append(a.absolute,l)}var o=Y0(e.cwd||".",e);return o.on("error",n.bind(this)),o.on("match",s.bind(this)),o.on("end",i.bind(this)),this};z.prototype.finalize=function(){if(this._state.aborted){var t=new ae("ABORTED");return this.emit("error",t),Promise.reject(t)}if(this._state.finalize){var e=new ae("FINALIZING");return this.emit("error",e),Promise.reject(e)}this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var r=this;return new Promise(function(i,n){var s;r._module.on("end",function(){s||i()}),r._module.on("error",function(o){s=!0,n(o)})})};z.prototype.setFormat=function(t){return this._format?(this.emit("error",new ae("FORMATSET")),this):(this._format=t,this)};z.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new ae("ABORTED")),this):this._state.module?(this.emit("error",new ae("MODULESET")),this):(this._module=t,this._modulePipe(),this)};z.prototype.symlink=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new ae("SYMLINKFILEPATHREQUIRED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new ae("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new ae("SYMLINKNOTSUPPORTED",{filepath:t})),this;var i={};return i.type="symlink",i.name=t.replace(/\\/g,"/"),i.linkname=e.replace(/\\/g,"/"),i.sourceType="buffer",typeof r=="number"&&(i.mode=r),this._entriesCount++,this._queue.push({data:i,source:Buffer.concat([])}),this};z.prototype.pointer=function(){return this._pointer};z.prototype.use=function(t){return this._streams.push(t),this};Z0.exports=z});var Bo=g((cU,X0)=>{"use strict";var jo=X0.exports=function(){};jo.prototype.getName=function(){};jo.prototype.getSize=function(){};jo.prototype.getLastModifiedDate=function(){};jo.prototype.isDirectory=function(){}});var Uo=g((hU,J0)=>{"use strict";var ze=J0.exports={};ze.dateToDos=function(t,e){e=e||!1;var r=e?t.getFullYear():t.getUTCFullYear();if(r<1980)return 2162688;if(r>=2044)return 2141175677;var i={year:r,month:e?t.getMonth():t.getUTCMonth(),date:e?t.getDate():t.getUTCDate(),hours:e?t.getHours():t.getUTCHours(),minutes:e?t.getMinutes():t.getUTCMinutes(),seconds:e?t.getSeconds():t.getUTCSeconds()};return i.year-1980<<25|i.month+1<<21|i.date<<16|i.hours<<11|i.minutes<<5|i.seconds/2};ze.dosToDate=function(t){return new Date((t>>25&127)+1980,(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(t&31)<<1)};ze.fromDosTime=function(t){return ze.dosToDate(t.readUInt32LE(0))};ze.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e};ze.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((t&65535)>>>0,0),e};ze.getShortBytesValue=function(t,e){return t.readUInt16LE(e)};ze.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((t&4294967295)>>>0,0),e};ze.getLongBytesValue=function(t,e){return t.readUInt32LE(e)};ze.toDosTime=function(t){return ze.getLongBytes(ze.dateToDos(t))}});var Df=g((dU,sS)=>{"use strict";var eS=Uo(),tS=8,rS=1,aq=4,lq=2,iS=64,nS=2048,Ee=sS.exports=function(){return this instanceof Ee?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new Ee};Ee.prototype.encode=function(){return eS.getShortBytes((this.descriptor?tS:0)|(this.utf8?nS:0)|(this.encryption?rS:0)|(this.strongEncryption?iS:0))};Ee.prototype.parse=function(t,e){var r=eS.getShortBytesValue(t,e),i=new Ee;return i.useDataDescriptor((r&tS)!==0),i.useUTF8ForNames((r&nS)!==0),i.useStrongEncryption((r&iS)!==0),i.useEncryption((r&rS)!==0),i.setSlidingDictionarySize((r&lq)!==0?8192:4096),i.setNumberOfShannonFanoTrees((r&aq)!==0?3:2),i};Ee.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t};Ee.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};Ee.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t};Ee.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};Ee.prototype.useDataDescriptor=function(t){this.descriptor=t};Ee.prototype.usesDataDescriptor=function(){return this.descriptor};Ee.prototype.useEncryption=function(t){this.encryption=t};Ee.prototype.usesEncryption=function(){return this.encryption};Ee.prototype.useStrongEncryption=function(t){this.strongEncryption=t};Ee.prototype.usesStrongEncryption=function(){return this.strongEncryption};Ee.prototype.useUTF8ForNames=function(t){this.utf8=t};Ee.prototype.usesUTF8ForNames=function(){return this.utf8}});var aS=g((pU,oS)=>{"use strict";oS.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}});var Pf=g((gU,lS)=>{"use strict";lS.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}});var Lf=g((_U,dS)=>{"use strict";var uq=P("util").inherits,fq=gl(),fS=Bo(),cS=Df(),uS=aS(),Pe=Pf(),hS=Uo(),F=dS.exports=function(t){if(!(this instanceof F))return new F(t);fS.call(this),this.platform=Pe.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new cS,this.crc=0,this.time=-1,this.minver=Pe.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};uq(F,fS);F.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};F.prototype.getComment=function(){return this.comment!==null?this.comment:""};F.prototype.getCompressedSize=function(){return this.csize};F.prototype.getCrc=function(){return this.crc};F.prototype.getExternalAttributes=function(){return this.exattr};F.prototype.getExtra=function(){return this.extra!==null?this.extra:Pe.EMPTY};F.prototype.getGeneralPurposeBit=function(){return this.gpb};F.prototype.getInternalAttributes=function(){return this.inattr};F.prototype.getLastModifiedDate=function(){return this.getTime()};F.prototype.getLocalFileDataExtra=function(){return this.getExtra()};F.prototype.getMethod=function(){return this.method};F.prototype.getName=function(){return this.name};F.prototype.getPlatform=function(){return this.platform};F.prototype.getSize=function(){return this.size};F.prototype.getTime=function(){return this.time!==-1?hS.dosToDate(this.time):-1};F.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};F.prototype.getUnixMode=function(){return this.platform!==Pe.PLATFORM_UNIX?0:this.getExternalAttributes()>>Pe.SHORT_SHIFT&Pe.SHORT_MASK};F.prototype.getVersionNeededToExtract=function(){return this.minver};F.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t};F.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t};F.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t};F.prototype.setExternalAttributes=function(t){this.exattr=t>>>0};F.prototype.setExtra=function(t){this.extra=t};F.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof cS))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t};F.prototype.setInternalAttributes=function(t){this.inattr=t};F.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t};F.prototype.setName=function(t,e=!1){t=fq(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t};F.prototype.setPlatform=function(t){this.platform=t};F.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t};F.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=hS.dateToDos(t,e)};F.prototype.setUnixMode=function(t){t|=this.isDirectory()?Pe.S_IFDIR:Pe.S_IFREG;var e=0;e|=t<<Pe.SHORT_SHIFT|(this.isDirectory()?Pe.S_DOS_D:Pe.S_DOS_A),this.setExternalAttributes(e),this.mode=t&Pe.MODE_MASK,this.platform=Pe.PLATFORM_UNIX};F.prototype.setVersionNeededToExtract=function(t){this.minver=t};F.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};F.prototype.isUnixSymlink=function(){return(this.getUnixMode()&uS.FILE_TYPE_FLAG)===uS.LINK_FLAG};F.prototype.isZip64=function(){return this.csize>Pe.ZIP64_MAGIC||this.size>Pe.ZIP64_MAGIC}});var Nf=g((mU,pS)=>{"use strict";var yU=P("stream").Stream,cq=cr().PassThrough,hq=is(),dq=pS.exports={};dq.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(hq(t)&&!t._readableState){var e=new cq;return t.pipe(e),e}return t}});var kf=g((bU,gS)=>{"use strict";var pq=P("util").inherits,gq=is(),Cf=cr().Transform,_q=Bo(),yq=Nf(),Me=gS.exports=function(t){if(!(this instanceof Me))return new Me(t);Cf.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};pq(Me,Cf);Me.prototype._appendBuffer=function(t,e,r){};Me.prototype._appendStream=function(t,e,r){};Me.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)};Me.prototype._finish=function(t){};Me.prototype._normalizeEntry=function(t){};Me.prototype._transform=function(t,e,r){r(null,t)};Me.prototype.entry=function(t,e,r){if(e=e||null,typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),!(t instanceof _q)){r(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){r(new Error("unacceptable entry after finish"));return}if(this._archive.processing){r(new Error("already processing an entry"));return}if(this._archive.processing=!0,this._normalizeEntry(t),this._entry=t,e=yq.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,r);else if(gq(e))this._appendStream(t,e,r);else{this._archive.processing=!1,r(new Error("input source must be valid Stream or Buffer instance"));return}return this};Me.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};Me.prototype.getBytesWritten=function(){return this.offset};Me.prototype.write=function(t,e){return t&&(this.offset+=t.length),Cf.prototype.write.call(this,t,e)}});var Wo=g(Mf=>{"use strict";var _S;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof Mf=="object"?t(Mf):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t(_S={}):t(_S={})})(function(t){t.version="1.2.2";function e(){for(var x=0,O=new Array(256),w=0;w!=256;++w)x=w,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,O[w]=x;return typeof Int32Array<"u"?new Int32Array(O):O}var r=e();function i(x){var O=0,w=0,R=0,A=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(R=0;R!=256;++R)A[R]=x[R];for(R=0;R!=256;++R)for(w=x[R],O=256+R;O<4096;O+=256)w=A[O]=w>>>8^x[w&255];var N=[];for(R=1;R!=16;++R)N[R-1]=typeof Int32Array<"u"?A.subarray(R*256,R*256+256):A.slice(R*256,R*256+256);return N}var n=i(r),s=n[0],o=n[1],a=n[2],l=n[3],u=n[4],f=n[5],c=n[6],h=n[7],d=n[8],m=n[9],p=n[10],E=n[11],y=n[12],b=n[13],v=n[14];function S(x,O){for(var w=O^-1,R=0,A=x.length;R<A;)w=w>>>8^r[(w^x.charCodeAt(R++))&255];return~w}function T(x,O){for(var w=O^-1,R=x.length-15,A=0;A<R;)w=v[x[A++]^w&255]^b[x[A++]^w>>8&255]^y[x[A++]^w>>16&255]^E[x[A++]^w>>>24]^p[x[A++]]^m[x[A++]]^d[x[A++]]^h[x[A++]]^c[x[A++]]^f[x[A++]]^u[x[A++]]^l[x[A++]]^a[x[A++]]^o[x[A++]]^s[x[A++]]^r[x[A++]];for(R+=15;A<R;)w=w>>>8^r[(w^x[A++])&255];return~w}function D(x,O){for(var w=O^-1,R=0,A=x.length,N=0,G=0;R<A;)N=x.charCodeAt(R++),N<128?w=w>>>8^r[(w^N)&255]:N<2048?(w=w>>>8^r[(w^(192|N>>6&31))&255],w=w>>>8^r[(w^(128|N&63))&255]):N>=55296&&N<57344?(N=(N&1023)+64,G=x.charCodeAt(R++)&1023,w=w>>>8^r[(w^(240|N>>8&7))&255],w=w>>>8^r[(w^(128|N>>2&63))&255],w=w>>>8^r[(w^(128|G>>6&15|(N&3)<<4))&255],w=w>>>8^r[(w^(128|G&63))&255]):(w=w>>>8^r[(w^(224|N>>12&15))&255],w=w>>>8^r[(w^(128|N>>6&63))&255],w=w>>>8^r[(w^(128|N&63))&255]);return~w}t.table=r,t.bstr=S,t.buf=T,t.str=D})});var mS=g((SU,yS)=>{"use strict";var{Transform:mq}=cr(),bq=Wo(),qf=class extends mq{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,r,i){e&&(this.checksum=bq.buf(e,this.checksum)>>>0,this.rawSize+=e.length),i(null,e)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}};yS.exports=qf});var wS=g((EU,bS)=>{"use strict";var{DeflateRaw:wq}=P("zlib"),Sq=Wo(),Ff=class extends wq{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(e,r){return e&&(this.compressedSize+=e.length),super.push(e,r)}_transform(e,r,i){e&&(this.checksum=Sq.buf(e,this.checksum)>>>0,this.rawSize+=e.length),super._transform(e,r,i)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(e=!1){return e?this.compressedSize:this.rawSize}};bS.exports=Ff});var jf=g((vU,SS)=>{"use strict";SS.exports={CRC32Stream:mS(),DeflateCRC32Stream:wS()}});var xS=g((AU,vS)=>{"use strict";var Eq=P("util").inherits,vq=Wo(),{CRC32Stream:xq}=jf(),{DeflateCRC32Stream:Tq}=jf(),ES=kf(),xU=Lf(),TU=Df(),C=Pf(),RU=Nf(),L=Uo(),_e=vS.exports=function(t){if(!(this instanceof _e))return new _e(t);t=this.options=this._defaults(t),ES.call(this,t),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:t.forceZip64,forceLocalTime:t.forceLocalTime}};Eq(_e,ES);_e.prototype._afterAppend=function(t){this._entries.push(t),t.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(t),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()};_e.prototype._appendBuffer=function(t,e,r){e.length===0&&t.setMethod(C.METHOD_STORED);var i=t.getMethod();if(i===C.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(vq.buf(e)>>>0)),this._writeLocalFileHeader(t),i===C.METHOD_STORED){this.write(e),this._afterAppend(t),r(null,t);return}else if(i===C.METHOD_DEFLATED){this._smartStream(t,r).end(e);return}else{r(new Error("compression method "+i+" not implemented"));return}};_e.prototype._appendStream=function(t,e,r){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(C.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(t);var i=this._smartStream(t,r);e.once("error",function(n){i.emit("error",n),i.end()}),e.pipe(i)};_e.prototype._defaults=function(t){return typeof t!="object"&&(t={}),typeof t.zlib!="object"&&(t.zlib={}),typeof t.zlib.level!="number"&&(t.zlib.level=C.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t};_e.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(t){this._writeCentralFileHeader(t)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()};_e.prototype._normalizeEntry=function(t){t.getMethod()===-1&&t.setMethod(C.METHOD_DEFLATED),t.getMethod()===C.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(C.MIN_VERSION_DATA_DESCRIPTOR)),t.getTime()===-1&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}};_e.prototype._smartStream=function(t,e){var r=t.getMethod()===C.METHOD_DEFLATED,i=r?new Tq(this.options.zlib):new xq,n=null;function s(){var o=i.digest().readUInt32BE(0);t.setCrc(o),t.setSize(i.size()),t.setCompressedSize(i.size(!0)),this._afterAppend(t),e(n,t)}return i.once("end",s.bind(this)),i.once("error",function(o){n=o}),i.pipe(this,{end:!1}),i};_e.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(t=C.ZIP64_MAGIC_SHORT,e=C.ZIP64_MAGIC,r=C.ZIP64_MAGIC),this.write(L.getLongBytes(C.SIG_EOCD)),this.write(C.SHORT_ZERO),this.write(C.SHORT_ZERO),this.write(L.getShortBytes(t)),this.write(L.getShortBytes(t)),this.write(L.getLongBytes(e)),this.write(L.getLongBytes(r));var i=this.getComment(),n=Buffer.byteLength(i);this.write(L.getShortBytes(n)),this.write(i)};_e.prototype._writeCentralDirectoryZip64=function(){this.write(L.getLongBytes(C.SIG_ZIP64_EOCD)),this.write(L.getEightBytes(44)),this.write(L.getShortBytes(C.MIN_VERSION_ZIP64)),this.write(L.getShortBytes(C.MIN_VERSION_ZIP64)),this.write(C.LONG_ZERO),this.write(C.LONG_ZERO),this.write(L.getEightBytes(this._entries.length)),this.write(L.getEightBytes(this._entries.length)),this.write(L.getEightBytes(this._archive.centralLength)),this.write(L.getEightBytes(this._archive.centralOffset)),this.write(L.getLongBytes(C.SIG_ZIP64_EOCD_LOC)),this.write(C.LONG_ZERO),this.write(L.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(L.getLongBytes(1))};_e.prototype._writeCentralFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),i=t._offsets.file,n=t.getSize(),s=t.getCompressedSize();if(t.isZip64()||i>C.ZIP64_MAGIC){n=C.ZIP64_MAGIC,s=C.ZIP64_MAGIC,i=C.ZIP64_MAGIC,t.setVersionNeededToExtract(C.MIN_VERSION_ZIP64);var o=Buffer.concat([L.getShortBytes(C.ZIP64_EXTRA_ID),L.getShortBytes(24),L.getEightBytes(t.getSize()),L.getEightBytes(t.getCompressedSize()),L.getEightBytes(t._offsets.file)],28);t.setExtra(o)}this.write(L.getLongBytes(C.SIG_CFH)),this.write(L.getShortBytes(t.getPlatform()<<8|C.VERSION_MADEBY)),this.write(L.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(L.getShortBytes(r)),this.write(L.getLongBytes(t.getTimeDos())),this.write(L.getLongBytes(t.getCrc())),this.write(L.getLongBytes(s)),this.write(L.getLongBytes(n));var a=t.getName(),l=t.getComment(),u=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(a=Buffer.from(a),l=Buffer.from(l)),this.write(L.getShortBytes(a.length)),this.write(L.getShortBytes(u.length)),this.write(L.getShortBytes(l.length)),this.write(C.SHORT_ZERO),this.write(L.getShortBytes(t.getInternalAttributes())),this.write(L.getLongBytes(t.getExternalAttributes())),this.write(L.getLongBytes(i)),this.write(a),this.write(u),this.write(l)};_e.prototype._writeDataDescriptor=function(t){this.write(L.getLongBytes(C.SIG_DD)),this.write(L.getLongBytes(t.getCrc())),t.isZip64()?(this.write(L.getEightBytes(t.getCompressedSize())),this.write(L.getEightBytes(t.getSize()))):(this.write(L.getLongBytes(t.getCompressedSize())),this.write(L.getLongBytes(t.getSize())))};_e.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),i=t.getName(),n=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(C.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(i=Buffer.from(i)),t._offsets.file=this.offset,this.write(L.getLongBytes(C.SIG_LFH)),this.write(L.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(L.getShortBytes(r)),this.write(L.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(C.LONG_ZERO),this.write(C.LONG_ZERO),this.write(C.LONG_ZERO)):(this.write(L.getLongBytes(t.getCrc())),this.write(L.getLongBytes(t.getCompressedSize())),this.write(L.getLongBytes(t.getSize()))),this.write(L.getShortBytes(i.length)),this.write(L.getShortBytes(n.length)),this.write(i),this.write(n),t._offsets.contents=this.offset};_e.prototype.getComment=function(t){return this._archive.comment!==null?this._archive.comment:""};_e.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>C.ZIP64_MAGIC_SHORT||this._archive.centralLength>C.ZIP64_MAGIC||this._archive.centralOffset>C.ZIP64_MAGIC};_e.prototype.setComment=function(t){this._archive.comment=t}});var Bf=g((OU,TS)=>{"use strict";TS.exports={ArchiveEntry:Bo(),ZipArchiveEntry:Lf(),ArchiveOutputStream:kf(),ZipArchiveOutputStream:xS()}});var AS=g((IU,RS)=>{"use strict";var Rq=P("util").inherits,Wf=Bf().ZipArchiveOutputStream,Aq=Bf().ZipArchiveEntry,Uf=ii(),ni=RS.exports=function(t){if(!(this instanceof ni))return new ni(t);t=this.options=t||{},t.zlib=t.zlib||{},Wf.call(this,t),typeof t.level=="number"&&t.level>=0&&(t.zlib.level=t.level,delete t.level),!t.forceZip64&&typeof t.zlib.level=="number"&&t.zlib.level===0&&(t.store=!0),t.namePrependSlash=t.namePrependSlash||!1,t.comment&&t.comment.length>0&&this.setComment(t.comment)};Rq(ni,Wf);ni.prototype._normalizeFileData=function(t){t=Uf.defaults(t,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var e=t.type==="directory",r=t.type==="symlink";return t.name&&(t.name=Uf.sanitizePath(t.name),!r&&t.name.slice(-1)==="/"?(e=!0,t.type="directory"):e&&(t.name+="/")),(e||r)&&(t.store=!0),t.date=Uf.dateify(t.date),t};ni.prototype.entry=function(t,e,r){if(typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),e=this._normalizeFileData(e),e.type!=="file"&&e.type!=="directory"&&e.type!=="symlink"){r(new Error(e.type+" entries not currently supported"));return}if(typeof e.name!="string"||e.name.length===0){r(new Error("entry name must be a non-empty string value"));return}if(e.type==="symlink"&&typeof e.linkname!="string"){r(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var i=new Aq(e.name);return i.setTime(e.date,this.options.forceLocalTime),e.namePrependSlash&&i.setName(e.name,!0),e.store&&i.setMethod(0),e.comment.length>0&&i.setComment(e.comment),e.type==="symlink"&&typeof e.mode!="number"&&(e.mode=40960),typeof e.mode=="number"&&(e.type==="symlink"&&(e.mode|=40960),i.setUnixMode(e.mode)),e.type==="symlink"&&typeof e.linkname=="string"&&(t=Buffer.from(e.linkname)),Wf.prototype.entry.call(this,i,t,r)};ni.prototype.finalize=function(){this.finish()}});var IS=g((DU,OS)=>{"use strict";var Oq=AS(),Iq=ii(),Ut=function(t){if(!(this instanceof Ut))return new Ut(t);t=this.options=Iq.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new Oq(t)};Ut.prototype.append=function(t,e,r){this.engine.entry(t,e,r)};Ut.prototype.finalize=function(){this.engine.finalize()};Ut.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Ut.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Ut.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};OS.exports=Ut});var PS=g((PU,DS)=>{"use strict";DS.exports=P("events")});var NS=g((NU,LS)=>{"use strict";LS.exports=class{constructor(e){if(!(e>0)||(e-1&e)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return this.buffer[this.top]!==void 0?!1:(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){let e=this.buffer[this.btm];if(e!==void 0)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}});var Gf=g((kU,kS)=>{"use strict";var CS=NS();kS.exports=class{constructor(e){this.hwm=e||16,this.head=new CS(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let r=this.head;this.head=r.next=new CS(2*this.head.buffer.length),this.head.push(e)}}shift(){this.length!==0&&this.length--;let e=this.tail.shift();if(e===void 0&&this.tail.next){let r=this.tail.next;return this.tail.next=null,this.tail=r,this.tail.shift()}return e}peek(){let e=this.tail.peek();return e===void 0&&this.tail.next?this.tail.next.peek():e}isEmpty(){return this.length===0}}});var zf=g((MU,MS)=>{"use strict";function Dq(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function Pq(t){return Buffer.isEncoding(t)}function Lq(t,e,r){return Buffer.alloc(t,e,r)}function Nq(t){return Buffer.allocUnsafe(t)}function Cq(t){return Buffer.allocUnsafeSlow(t)}function kq(t,e){return Buffer.byteLength(t,e)}function Mq(t,e){return Buffer.compare(t,e)}function qq(t,e){return Buffer.concat(t,e)}function Fq(t,e,r,i,n){return Y(t).copy(e,r,i,n)}function jq(t,e){return Y(t).equals(e)}function Bq(t,e,r,i,n){return Y(t).fill(e,r,i,n)}function Uq(t,e,r){return Buffer.from(t,e,r)}function Wq(t,e,r,i){return Y(t).includes(e,r,i)}function Gq(t,e,r,i){return Y(t).indexOf(e,r,i)}function zq(t,e,r,i){return Y(t).lastIndexOf(e,r,i)}function $q(t){return Y(t).swap16()}function Hq(t){return Y(t).swap32()}function Vq(t){return Y(t).swap64()}function Y(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function Yq(t,e,r,i){return Y(t).toString(e,r,i)}function Kq(t,e,r,i,n){return Y(t).write(e,r,i,n)}function Zq(t,e){return Y(t).readDoubleBE(e)}function Qq(t,e){return Y(t).readDoubleLE(e)}function Xq(t,e){return Y(t).readFloatBE(e)}function Jq(t,e){return Y(t).readFloatLE(e)}function eF(t,e){return Y(t).readInt32BE(e)}function tF(t,e){return Y(t).readInt32LE(e)}function rF(t,e){return Y(t).readUInt32BE(e)}function iF(t,e){return Y(t).readUInt32LE(e)}function nF(t,e,r){return Y(t).writeDoubleBE(e,r)}function sF(t,e,r){return Y(t).writeDoubleLE(e,r)}function oF(t,e,r){return Y(t).writeFloatBE(e,r)}function aF(t,e,r){return Y(t).writeFloatLE(e,r)}function lF(t,e,r){return Y(t).writeInt32BE(e,r)}function uF(t,e,r){return Y(t).writeInt32LE(e,r)}function fF(t,e,r){return Y(t).writeUInt32BE(e,r)}function cF(t,e,r){return Y(t).writeUInt32LE(e,r)}MS.exports={isBuffer:Dq,isEncoding:Pq,alloc:Lq,allocUnsafe:Nq,allocUnsafeSlow:Cq,byteLength:kq,compare:Mq,concat:qq,copy:Fq,equals:jq,fill:Bq,from:Uq,includes:Wq,indexOf:Gq,lastIndexOf:zq,swap16:$q,swap32:Hq,swap64:Vq,toBuffer:Y,toString:Yq,write:Kq,readDoubleBE:Zq,readDoubleLE:Qq,readFloatBE:Xq,readFloatLE:Jq,readInt32BE:eF,readInt32LE:tF,readUInt32BE:rF,readUInt32LE:iF,writeDoubleBE:nF,writeDoubleLE:sF,writeFloatBE:oF,writeFloatLE:aF,writeInt32BE:lF,writeInt32LE:uF,writeUInt32BE:fF,writeUInt32LE:cF}});var FS=g((FU,qS)=>{"use strict";var hF=zf();qS.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return hF.toString(e,this.encoding)}flush(){return""}}});var WS=g((BU,US)=>{"use strict";var jS=zf();US.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(e){if(e.byteLength===0)return"";if(this.bytesNeeded===0&&BS(e,0)===0)return this.bytesSeen=dF(e),jS.toString(e,"utf8");let r="",i=0;if(this.bytesNeeded>0){for(;i<e.byteLength;){let o=e[i];if(o<this.lowerBoundary||o>this.upperBoundary){r+="\uFFFD",this._reset();break}if(this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|o&63,this.bytesSeen++,i++,this.bytesSeen===this.bytesNeeded){r+=String.fromCodePoint(this.codePoint),this._reset();break}}if(this.bytesNeeded>0)return r}let n=BS(e,i),s=e.byteLength-n;s>i&&(r+=jS.toString(e,"utf8",i,s));for(let o=s;o<e.byteLength;o++){let a=e[o];if(this.bytesNeeded===0){a<=127?(this.bytesSeen=0,r+=String.fromCharCode(a)):a>=194&&a<=223?(this.bytesNeeded=2,this.bytesSeen=1,this.codePoint=a&31):a>=224&&a<=239?(a===224?this.lowerBoundary=160:a===237&&(this.upperBoundary=159),this.bytesNeeded=3,this.bytesSeen=1,this.codePoint=a&15):a>=240&&a<=244?(a===240?this.lowerBoundary=144:a===244&&(this.upperBoundary=143),this.bytesNeeded=4,this.bytesSeen=1,this.codePoint=a&7):(this.bytesSeen=1,r+="\uFFFD");continue}if(a<this.lowerBoundary||a>this.upperBoundary){r+="\uFFFD",o--,this._reset();continue}this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|a&63,this.bytesSeen++,this.bytesSeen===this.bytesNeeded&&(r+=String.fromCodePoint(this.codePoint),this._reset())}return r}flush(){let e=this.bytesNeeded>0?"\uFFFD":"";return this._reset(),e}_reset(){this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191}};function BS(t,e){let r=t.byteLength;if(r<=e)return 0;let i=Math.max(e,r-4),n=r-1;for(;n>i&&(t[n]&192)===128;)n--;if(n<e)return 0;let s=t[n],o;if(s<=127)return 0;if(s>=194&&s<=223)o=2;else if(s>=224&&s<=239)o=3;else if(s>=240&&s<=244)o=4;else return 0;let a=r-n;return a<o?a:0}function dF(t){let e=t.byteLength;if(e===0)return 0;let r=t[e-1];if(r<=127)return 0;if((r&192)!==128)return 1;let i=Math.max(0,e-4),n=e-2;for(;n>=i&&(t[n]&192)===128;)n--;if(n<0)return 1;let s=t[n],o;if(s>=194&&s<=223)o=2;else if(s>=224&&s<=239)o=3;else if(s>=240&&s<=244)o=4;else return 1;if(e-n!==o)return 1;if(o>=3){let a=t[n+1];if(s===224&&a<160||s===237&&a>159||s===240&&a<144||s===244&&a>143)return 1}return 0}});var zS=g((WU,GS)=>{"use strict";var pF=FS(),gF=WS();GS.exports=class{constructor(e="utf8"){switch(this.encoding=_F(e),this.encoding){case"utf8":this.decoder=new gF;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new pF(this.encoding)}}get remaining(){return this.decoder.remaining}push(e){return typeof e=="string"?e:this.decoder.decode(e)}write(e){return this.push(e)}end(e){let r="";return e&&(r=this.push(e)),r+=this.decoder.flush(),r}};function _F(t){switch(t=t.toLowerCase(),t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:throw new Error("Unknown encoding: "+t)}}});var oc=g((GU,dE)=>{"use strict";var{EventEmitter:yF}=PS(),Yo=new Error("Stream was destroyed"),$f=new Error("Premature close"),ZS=Gf(),mF=zS(),Hf=typeof queueMicrotask>"u"?t=>global.process.nextTick(t):queueMicrotask,oe=(1<<29)-1,ct=1,Jf=2,vt=4,xn=8,QS=oe^ct,bF=oe^Jf,In=16,si=32,li=64,Gt=128,Dn=256,ec=512,zt=1024,Vf=2048,tc=4096,rc=8192,Qe=16384,Wt=32768,Ko=65536,yr=131072,XS=Dn|ec,wF=In|Ko,SF=li|In,EF=tc|Gt,ic=Dn|yr,vF=oe^In,xF=oe^li,TF=oe^(li|Ko),$S=oe^Ko,RF=oe^Dn,AF=oe^(Gt|rc),OF=oe^zt,HS=oe^XS,JS=oe^Wt,IF=oe^si,eE=oe^yr,DF=oe^ic,xt=1<<18,ai=2<<18,Pn=4<<18,mr=8<<18,Ln=16<<18,Ht=32<<18,Yf=64<<18,oi=128<<18,nc=256<<18,$t=512<<18,Zo=1024<<18,PF=oe^(xt|nc),tE=oe^Pn,LF=oe^(xt|$t),NF=oe^Ln,CF=oe^mr,rE=oe^oi,kF=oe^ai,iE=oe^Zo,Tn=In|xt,nE=oe^Tn,sc=Qe|Ht,ht=vt|xn|Jf,qe=ht|ct,sE=ht|sc,MF=tE&xF,Qo=oi|Wt,qF=Qo&nE,oE=qe|qF,FF=qe|zt|Qe,VS=qe|Qe|Gt,jF=qe|zt|Gt,BF=qe|tc|Gt|rc,UF=qe|In|zt|Qe|Ko|yr,WF=ht|zt|Qe,GF=si|qe|Wt|li,zF=Wt|ct,$F=qe|$t|Ht,HF=mr|Ln,aE=mr|xt,VF=mr|Ln|qe|xt,YS=qe|xt|mr|Zo,YF=Pn|xt,KF=xt|nc,ZF=qe|$t|aE|Ht,QF=Ln|ht|$t|Ht,XF=ai|qe|oi|Pn,JF=$t|Ht|ht,Go=Symbol.asyncIterator||Symbol("asyncIterator"),zo=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapWritable:n,byteLength:s,byteLengthWritable:o}={}){this.stream=e,this.queue=new ZS,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||s||hE,this.map=n||i,this.afterWrite=rj.bind(this),this.afterUpdateNextTick=sj.bind(this)}get ending(){return(this.stream._duplexState&$t)!==0}get ended(){return(this.stream._duplexState&Ht)!==0}push(e){return(this.stream._duplexState&JF)!==0?!1:(this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered<this.highWaterMark?(this.stream._duplexState|=mr,!0):(this.stream._duplexState|=HF,!1))}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=CF),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|$t)&tE}autoBatch(e,r){let i=[],n=this.stream;for(i.push(e);(n._duplexState&YS)===aE;)i.push(n._writableState.shift());if((n._duplexState&qe)!==0)return r(null);n._writev(i,r)}update(){let e=this.stream;e._duplexState|=ai;do{for(;(e._duplexState&YS)===mr;){let r=this.shift();e._duplexState|=KF,e._write(r,this.afterWrite)}(e._duplexState&YF)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=kF}updateNonPrimary(){let e=this.stream;if((e._duplexState&ZF)===$t){e._duplexState=e._duplexState|xt,e._final(tj.bind(this));return}if((e._duplexState&ht)===vt){(e._duplexState&Qo)===0&&(e._duplexState|=Tn,e._destroy(lE.bind(this)));return}(e._duplexState&oE)===ct&&(e._duplexState=(e._duplexState|Tn)&QS,e._open(uE.bind(this)))}continueUpdate(){return(this.stream._duplexState&oi)===0?!1:(this.stream._duplexState&=rE,!0)}updateCallback(){(this.stream._duplexState&XF)===Pn?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&oi)===0&&(this.stream._duplexState|=oi,(this.stream._duplexState&ai)===0&&Hf(this.afterUpdateNextTick))}},Kf=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapReadable:n,byteLength:s,byteLengthReadable:o}={}){this.stream=e,this.queue=new ZS,this.highWaterMark=r===0?1:r,this.buffered=0,this.readAhead=r>0,this.error=null,this.pipeline=null,this.byteLength=o||s||hE,this.map=n||i,this.pipeTo=null,this.afterRead=ij.bind(this),this.afterUpdateNextTick=nj.bind(this)}get ending(){return(this.stream._duplexState&zt)!==0}get ended(){return(this.stream._duplexState&Qe)!==0}pipe(e,r){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof r!="function"&&(r=null),this.stream._duplexState|=ec,this.pipeTo=e,this.pipeline=new Qf(this.stream,e,r),r&&this.stream.on("error",KS),On(e))e._writableState.pipeline=this.pipeline,r&&e.on("error",KS),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{let i=this.pipeline.done.bind(this.pipeline,e),n=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",i),e.on("close",n),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",ej.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){let r=this.stream;return e===null?(this.highWaterMark=0,r._duplexState=(r._duplexState|zt)&TF,!1):this.map!==null&&(e=this.map(e),e===null)?(r._duplexState&=$S,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(e),this.queue.push(e),r._duplexState=(r._duplexState|Gt)&$S,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=AF),e}unshift(e){let r=[this.map!==null?this.map(e):e];for(;this.buffered>0;)r.push(this.shift());for(let i=0;i<r.length-1;i++){let n=r[i];this.buffered+=this.byteLength(n),this.queue.push(n)}this.push(r[r.length-1])}read(){let e=this.stream;if((e._duplexState&VS)===Gt){let r=this.shift();return this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=HS),(e._duplexState&Vf)!==0&&e.emit("data",r),r}return this.readAhead===!1&&(e._duplexState|=yr,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&VS)===Gt&&(e._duplexState&XS)!==0;){let r=this.shift();this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=HS),(e._duplexState&Vf)!==0&&e.emit("data",r)}}update(){let e=this.stream;e._duplexState|=si;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&UF)===yr;)e._duplexState|=wF,e._read(this.afterRead),this.drain();(e._duplexState&BF)===EF&&(e._duplexState|=rc,e.emit("readable")),(e._duplexState&SF)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=IF}updateNonPrimary(){let e=this.stream;if((e._duplexState&jF)===zt&&(e._duplexState=(e._duplexState|Qe)&OF,e.emit("end"),(e._duplexState&sE)===sc&&(e._duplexState|=vt),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&ht)===vt){(e._duplexState&Qo)===0&&(e._duplexState|=Tn,e._destroy(lE.bind(this)));return}(e._duplexState&oE)===ct&&(e._duplexState=(e._duplexState|Tn)&QS,e._open(uE.bind(this)))}continueUpdate(){return(this.stream._duplexState&Wt)===0?!1:(this.stream._duplexState&=JS,!0)}updateCallback(){(this.stream._duplexState&GF)===li?this.update():this.updateNextTick()}updateNextTickIfOpen(){(this.stream._duplexState&zF)===0&&(this.stream._duplexState|=Wt,(this.stream._duplexState&si)===0&&Hf(this.afterUpdateNextTick))}updateNextTick(){(this.stream._duplexState&Wt)===0&&(this.stream._duplexState|=Wt,(this.stream._duplexState&si)===0&&Hf(this.afterUpdateNextTick))}},Zf=class{constructor(e){this.data=null,this.afterTransform=aj.bind(e),this.afterFinal=null}},Qf=class{constructor(e,r,i){this.from=e,this.to=r,this.afterPipe=i,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(e,r){if(r&&(this.error=r),e===this.to&&(this.to=null,this.from!==null)){((this.from._duplexState&Qe)===0||!this.pipeToFinished)&&this.from.destroy(this.error||new Error("Writable stream closed prematurely"));return}if(e===this.from&&(this.from=null,this.to!==null)){(e._duplexState&Qe)===0&&this.to.destroy(this.error||new Error("Readable stream closed before ending"));return}this.afterPipe!==null&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null}};function ej(){this.stream._duplexState|=ec,this.updateCallback()}function tj(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&ht)===0&&(e._duplexState|=Ht,e.emit("finish")),(e._duplexState&sE)===sc&&(e._duplexState|=vt),e._duplexState&=LF,(e._duplexState&ai)===0?this.update():this.updateNextTick()}function lE(t){let e=this.stream;!t&&this.error!==Yo&&(t=this.error),t&&e.emit("error",t),e._duplexState|=xn,e.emit("close");let r=e._readableState,i=e._writableState;if(r!==null&&r.pipeline!==null&&r.pipeline.done(e,t),i!==null){for(;i.drains!==null&&i.drains.length>0;)i.drains.shift().resolve(!1);i.pipeline!==null&&i.pipeline.done(e,t)}}function rj(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=PF,this.drains!==null&&oj(this.drains),(e._duplexState&VF)===Ln&&(e._duplexState&=NF,(e._duplexState&Yf)===Yf&&e.emit("drain")),this.updateCallback()}function ij(t){t&&this.stream.destroy(t),this.stream._duplexState&=vF,this.readAhead===!1&&(this.stream._duplexState&Dn)===0&&(this.stream._duplexState&=eE),this.updateCallback()}function nj(){(this.stream._duplexState&si)===0&&(this.stream._duplexState&=JS,this.update())}function sj(){(this.stream._duplexState&ai)===0&&(this.stream._duplexState&=rE,this.update())}function oj(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}function uE(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&vt)===0&&((e._duplexState&FF)===0&&(e._duplexState|=li),(e._duplexState&$F)===0&&(e._duplexState|=Pn),e.emit("open")),e._duplexState&=nE,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}function aj(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}function lj(t){this._readableState!==null&&(t==="data"&&(this._duplexState|=Vf|ic,this._readableState.updateNextTick()),t==="readable"&&(this._duplexState|=tc,this._readableState.updateNextTick())),this._writableState!==null&&t==="drain"&&(this._duplexState|=Yf,this._writableState.updateNextTick())}var Rn=class extends yF{constructor(e){super(),this._duplexState=0,this._readableState=null,this._writableState=null,e&&(e.open&&(this._open=e.open),e.destroy&&(this._destroy=e.destroy),e.predestroy&&(this._predestroy=e.predestroy),e.signal&&e.signal.addEventListener("abort",wj.bind(this))),this.on("newListener",lj)}_open(e){e(null)}_destroy(e){e(null)}_predestroy(){}get readable(){return this._readableState!==null?!0:void 0}get writable(){return this._writableState!==null?!0:void 0}get destroyed(){return(this._duplexState&xn)!==0}get destroying(){return(this._duplexState&ht)!==0}destroy(e){(this._duplexState&ht)===0&&(e||(e=Yo),this._duplexState=(this._duplexState|vt)&MF,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=e),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=Jf,this._predestroy(),this._duplexState&=bF,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}},$o=class t extends Rn{constructor(e){super(e),this._duplexState|=ct|Ht|yr,this._readableState=new Kf(this,e),e&&(this._readableState.readAhead===!1&&(this._duplexState&=eE),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick(),e.encoding&&this.setEncoding(e.encoding))}setEncoding(e){let r=new mF(e),i=this._readableState.map||cj;return this._readableState.map=n,this;function n(s){let o=r.push(s);return o===""&&(s.byteLength!==0||r.remaining>0)?null:i(o)}}_read(e){e(null)}pipe(e,r){return this._readableState.updateNextTick(),this._readableState.pipe(e,r),e}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(e){return this._readableState.updateNextTickIfOpen(),this._readableState.push(e)}unshift(e){return this._readableState.updateNextTickIfOpen(),this._readableState.unshift(e)}resume(){return this._duplexState|=ic,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?DF:RF,this}static _fromAsyncIterator(e,r){let i,n=new t({...r,read(o){e.next().then(s).then(o.bind(null,null)).catch(o)},predestroy(){i=e.return()},destroy(o){if(!i)return o(null);i.then(o.bind(null,null)).catch(o)}});return n;function s(o){o.done?n.push(null):n.push(o.value)}}static from(e,r){if(yj(e))return e;if(e[Go])return this._fromAsyncIterator(e[Go](),r);Array.isArray(e)||(e=e===void 0?[]:[e]);let i=0;return new t({...r,read(n){this.push(i===e.length?null:e[i++]),n(null)}})}static isBackpressured(e){return(e._duplexState&WF)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&Dn)===0}[Go](){let e=this,r=null,i=null,n=null;return this.on("error",u=>{r=u}),this.on("readable",s),this.on("close",o),{[Go](){return this},next(){return new Promise(function(u,f){i=u,n=f;let c=e.read();c!==null?a(c):(e._duplexState&xn)!==0&&a(null)})},return(){return l(null)},throw(u){return l(u)}};function s(){i!==null&&a(e.read())}function o(){i!==null&&a(null)}function a(u){n!==null&&(r?n(r):u===null&&(e._duplexState&Qe)===0?n(Yo):i({value:u,done:u===null}),n=i=null)}function l(u){return e.destroy(u),new Promise((f,c)=>{if(e._duplexState&xn)return f({value:void 0,done:!0});e.once("close",function(){u?c(u):f({value:void 0,done:!0})})})}}},Ho=class extends Rn{constructor(e){super(e),this._duplexState|=ct|Qe,this._writableState=new zo(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}cork(){this._duplexState|=Zo}uncork(){this._duplexState&=iE,this._writableState.updateNextTick()}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}static isBackpressured(e){return(e._duplexState&QF)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let r=e._writableState,n=(Sj(e)?Math.min(1,r.queue.length):r.queue.length)+(e._duplexState&nc?1:0);return n===0?Promise.resolve(!0):(r.drains===null&&(r.drains=[]),new Promise(s=>{r.drains.push({writes:n,resolve:s})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},An=class extends $o{constructor(e){super(e),this._duplexState=ct|this._duplexState&yr,this._writableState=new zo(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=Zo}uncork(){this._duplexState&=iE,this._writableState.updateNextTick()}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},Vo=class extends An{constructor(e){super(e),this._transformState=new Zf(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,r){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(this._transformState.data!==null){let r=this._transformState.data;this._transformState.data=null,e(null),this._transform(r,this._transformState.afterTransform)}else e(null)}destroy(e){super.destroy(e),this._transformState.data!==null&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(e,r){r(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(uj.bind(this))}},Xf=class extends Vo{};function uj(t,e){let r=this._transformState.afterFinal;if(t)return r(t);e!=null&&this.push(e),this.push(null),r(null)}function fj(...t){return new Promise((e,r)=>fE(...t,i=>{if(i)return r(i);e()}))}function fE(t,...e){let r=Array.isArray(t)?[...t,...e]:[t,...e],i=r.length&&typeof r[r.length-1]=="function"?r.pop():null;if(r.length<2)throw new Error("Pipeline requires at least 2 streams");let n=r[0],s=null,o=null;for(let u=1;u<r.length;u++)s=r[u],On(n)?n.pipe(s,l):(a(n,!0,u>1,l),n.pipe(s)),n=s;if(i){let u=!1,f=On(s)||!!(s._writableState&&s._writableState.autoDestroy);s.on("error",c=>{o===null&&(o=c)}),s.on("finish",()=>{u=!0,f||i(o)}),f&&s.on("close",()=>i(o||(u?null:$f)))}return s;function a(u,f,c,h){u.on("error",h),u.on("close",d);function d(){if(f&&u._readableState&&!u._readableState.ended||c&&u._writableState&&!u._writableState.ended)return h($f)}}function l(u){if(!(!u||o)){o=u;for(let f of r)f.destroy(u)}}}function cj(t){return t}function cE(t){return!!t._readableState||!!t._writableState}function On(t){return typeof t._duplexState=="number"&&cE(t)}function hj(t){return!!t._readableState&&t._readableState.ending}function dj(t){return!!t._readableState&&t._readableState.ended}function pj(t){return!!t._writableState&&t._writableState.ending}function gj(t){return!!t._writableState&&t._writableState.ended}function _j(t,e={}){let r=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return!e.all&&r===Yo?null:r}function yj(t){return On(t)&&t.readable}function mj(t){return(t._duplexState&ct)!==ct||(t._duplexState&vt)===vt||(t._duplexState&Qo)!==0}function bj(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}function hE(t){return bj(t)?t.byteLength:1024}function KS(){}function wj(){this.destroy(new Error("Stream aborted."))}function Sj(t){return t._writev!==Ho.prototype._writev&&t._writev!==An.prototype._writev}dE.exports={pipeline:fE,pipelinePromise:fj,isStream:cE,isStreamx:On,isEnding:hj,isEnded:dj,isFinishing:pj,isFinished:gj,isDisturbed:mj,getStreamError:_j,Stream:Rn,Writable:Ho,Readable:$o,Duplex:An,Transform:Vo,PassThrough:Xf}});var Xo=g((zU,pE)=>{"use strict";function Ej(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function vj(t){return Buffer.isEncoding(t)}function xj(t,e,r){return Buffer.alloc(t,e,r)}function Tj(t){return Buffer.allocUnsafe(t)}function Rj(t){return Buffer.allocUnsafeSlow(t)}function Aj(t,e){return Buffer.byteLength(t,e)}function Oj(t,e){return Buffer.compare(t,e)}function Ij(t,e){return Buffer.concat(t,e)}function Dj(t,e,r,i,n){return K(t).copy(e,r,i,n)}function Pj(t,e){return K(t).equals(e)}function Lj(t,e,r,i,n){return K(t).fill(e,r,i,n)}function Nj(t,e,r){return Buffer.from(t,e,r)}function Cj(t,e,r,i){return K(t).includes(e,r,i)}function kj(t,e,r,i){return K(t).indexOf(e,r,i)}function Mj(t,e,r,i){return K(t).lastIndexOf(e,r,i)}function qj(t){return K(t).swap16()}function Fj(t){return K(t).swap32()}function jj(t){return K(t).swap64()}function K(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function Bj(t,e,r,i){return K(t).toString(e,r,i)}function Uj(t,e,r,i,n){return K(t).write(e,r,i,n)}function Wj(t,e){return K(t).readDoubleBE(e)}function Gj(t,e){return K(t).readDoubleLE(e)}function zj(t,e){return K(t).readFloatBE(e)}function $j(t,e){return K(t).readFloatLE(e)}function Hj(t,e){return K(t).readInt32BE(e)}function Vj(t,e){return K(t).readInt32LE(e)}function Yj(t,e){return K(t).readUInt32BE(e)}function Kj(t,e){return K(t).readUInt32LE(e)}function Zj(t,e,r){return K(t).writeDoubleBE(e,r)}function Qj(t,e,r){return K(t).writeDoubleLE(e,r)}function Xj(t,e,r){return K(t).writeFloatBE(e,r)}function Jj(t,e,r){return K(t).writeFloatLE(e,r)}function eB(t,e,r){return K(t).writeInt32BE(e,r)}function tB(t,e,r){return K(t).writeInt32LE(e,r)}function rB(t,e,r){return K(t).writeUInt32BE(e,r)}function iB(t,e,r){return K(t).writeUInt32LE(e,r)}pE.exports={isBuffer:Ej,isEncoding:vj,alloc:xj,allocUnsafe:Tj,allocUnsafeSlow:Rj,byteLength:Aj,compare:Oj,concat:Ij,copy:Dj,equals:Pj,fill:Lj,from:Nj,includes:Cj,indexOf:kj,lastIndexOf:Mj,swap16:qj,swap32:Fj,swap64:jj,toBuffer:K,toString:Bj,write:Uj,readDoubleBE:Wj,readDoubleLE:Gj,readFloatBE:zj,readFloatLE:$j,readInt32BE:Hj,readInt32LE:Vj,readUInt32BE:Yj,readUInt32LE:Kj,writeDoubleBE:Zj,writeDoubleLE:Qj,writeFloatBE:Xj,writeFloatLE:Jj,writeInt32BE:eB,writeInt32LE:tB,writeUInt32BE:rB,writeUInt32LE:iB}});var uc=g(fi=>{"use strict";var W=Xo(),nB="0000000000000000000",sB="7777777777777777777",Jo=48,gE=W.from([117,115,116,97,114,0]),oB=W.from([Jo,Jo]),aB=W.from([117,115,116,97,114,32]),lB=W.from([32,0]),uB=4095,Nn=257,lc=263;fi.decodeLongPath=function(e,r){return ui(e,0,e.length,r)};fi.encodePax=function(e){let r="";e.name&&(r+=ac(" path="+e.name+`
|
|
6
|
+
`+e);let[,i]=r;return i.replace(/\s/g,"").split(Yv).map(n=>n.replace(Kv,"").trim())}function wh(t,e){var r={};return Object.keys(t).forEach(i=>{var n=t[i],s,o=wi(n),a=!o&&n.length===1||o&&n.length===0;if(Array.isArray(n))s=[...n],n=s.pop(),r[i]=s.concat(s.length>0?l:n);else if(a)r[i]=n;else{if(s=Qv(n),n.length===0&&!o&&s.length===0)throw new Error("autoInject task functions require explicit parameters.");o||s.pop(),r[i]=s.concat(l)}function l(u,f){var c=s.map(h=>u[h]);c.push(f),F(n)(...c)}}),Ca(r,e)}function fh(t,e){t.length=1,t.head=t.tail=e}function ka(t,e,r){if(e==null)e=1;else if(e===0)throw new RangeError("Concurrency must not be zero");var i=F(t),n=0,s=[];let o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(b,E){o[b].push(E)}function l(b,E){let S=(...T)=>{u(b,S),E(...T)};o[b].push(S)}function u(b,E){if(!b)return Object.keys(o).forEach(S=>o[S]=[]);if(!E)return o[b]=[];o[b]=o[b].filter(S=>S!==E)}function f(b,...E){o[b].forEach(S=>S(...E))}var c=!1;function h(b,E,S,T){if(T!=null&&typeof T!="function")throw new Error("task callback must be a function");y.started=!0;var D,x;function O(R,...A){if(R)return S?x(R):D();if(A.length<=1)return D(A[0]);D(A)}var w=y._createTaskItem(b,S?O:T||O);if(E?y._tasks.unshift(w):y._tasks.push(w),c||(c=!0,At(()=>{c=!1,y.process()})),S||!T)return new Promise((R,A)=>{D=R,x=A})}function d(b){return function(E,...S){n-=1;for(var T=0,D=b.length;T<D;T++){var x=b[T],O=s.indexOf(x);O===0?s.shift():O>0&&s.splice(O,1),x.callback(E,...S),E!=null&&f("error",E,x.data)}n<=y.concurrency-y.buffer&&f("unsaturated"),y.idle()&&f("drain"),y.process()}}function m(b){return b.length===0&&y.idle()?(At(()=>f("drain")),!0):!1}let p=b=>E=>{if(!E)return new Promise((S,T)=>{l(b,(D,x)=>{if(D)return T(D);S(x)})});u(b),a(b,E)};var v=!1,y={_tasks:new da,_createTaskItem(b,E){return{data:b,callback:E}},*[Symbol.iterator](){yield*y._tasks[Symbol.iterator]()},concurrency:e,payload:r,buffer:e/4,started:!1,paused:!1,push(b,E){return Array.isArray(b)?m(b)?void 0:b.map(S=>h(S,!1,!1,E)):h(b,!1,!1,E)},pushAsync(b,E){return Array.isArray(b)?m(b)?void 0:b.map(S=>h(S,!1,!0,E)):h(b,!1,!0,E)},kill(){u(),y._tasks.empty()},unshift(b,E){return Array.isArray(b)?m(b)?void 0:b.map(S=>h(S,!0,!1,E)):h(b,!0,!1,E)},unshiftAsync(b,E){return Array.isArray(b)?m(b)?void 0:b.map(S=>h(S,!0,!0,E)):h(b,!0,!0,E)},remove(b){y._tasks.remove(b)},process(){if(!v){for(v=!0;!y.paused&&n<y.concurrency&&y._tasks.length;){var b=[],E=[],S=y._tasks.length;y.payload&&(S=Math.min(S,y.payload));for(var T=0;T<S;T++){var D=y._tasks.shift();b.push(D),s.push(D),E.push(D.data)}n+=1,y._tasks.length===0&&f("empty"),n===y.concurrency&&f("saturated");var x=It(d(b));i(E,x)}v=!1}},length(){return y._tasks.length},running(){return n},workersList(){return s},idle(){return y._tasks.length+n===0},pause(){y.paused=!0},resume(){y.paused!==!1&&(y.paused=!1,At(y.process))}};return Object.defineProperties(y,{saturated:{writable:!1,value:p("saturated")},unsaturated:{writable:!1,value:p("unsaturated")},empty:{writable:!1,value:p("empty")},drain:{writable:!1,value:p("drain")},error:{writable:!1,value:p("error")}}),y}function Sh(t,e){return ka(t,1,e)}function Eh(t,e,r){return ka(t,e,r)}function Xv(t,e,r,i){i=Ot(i);var n=F(r);return Xe(t,(s,o,a)=>{n(e,s,(l,u)=>{e=u,a(l)})},s=>i(s,e))}function Ma(...t){var e=t.map(F);return function(...r){var i=this,n=r[r.length-1];return typeof n=="function"?r.pop():n=Er(),Sr(e,r,(s,o,a)=>{o.apply(i,s.concat((l,...u)=>{a(l,u)}))},(s,o)=>n(s,...o)),n[vr]}}function vh(...t){return Ma(...t.reverse())}function Jv(t,e,r,i){return La($e(e),t,r,i)}function ex(t,e,r,i){var n=F(r);return Si(t,e,(s,o)=>{n(s,(a,...l)=>a?o(a):o(a,l))},(s,o)=>{for(var a=[],l=0;l<o.length;l++)o[l]&&(a=a.concat(...o[l]));return i(s,a)})}function tx(t,e,r){return mi(t,1/0,e,r)}function rx(t,e,r){return mi(t,1,e,r)}function xh(...t){return function(...e){var r=e.pop();return r(null,...t)}}function dt(t,e){return(r,i,n,s)=>{var o=!1,a;let l=F(n);r(i,(u,f,c)=>{l(u,(h,d)=>{if(h||h===!1)return c(h);if(t(d)&&!a)return o=!0,a=e(!0,u),c(null,Vn);c()})},u=>{if(u)return s(u);s(null,o?a:e(!1))})}}function ix(t,e,r){return dt(i=>i,(i,n)=>n)(qe,t,e,r)}function nx(t,e,r,i){return dt(n=>n,(n,s)=>s)($e(e),t,r,i)}function sx(t,e,r){return dt(i=>i,(i,n)=>n)($e(1),t,e,r)}function Th(t){return(e,...r)=>F(e)(...r,(i,...n)=>{typeof console=="object"&&(i?console.error&&console.error(i):console[t]&&n.forEach(s=>console[t](s)))})}function ox(t,e,r){r=It(r);var i=F(t),n=F(e),s;function o(l,...u){if(l)return r(l);l!==!1&&(s=u,n(...u,a))}function a(l,u){if(l)return r(l);if(l!==!1){if(!u)return r(null,...s);i(o)}}return a(null,!0)}function Ah(t,e,r){let i=F(e);return Bn(t,(...n)=>{let s=n.pop();i(...n,(o,a)=>s(o,!a))},r)}function Oh(t){return(e,r,i)=>t(e,i)}function ax(t,e,r){return qe(t,Oh(F(e)),r)}function lx(t,e,r,i){return $e(e)(t,Oh(F(r)),i)}function ux(t,e,r){return Un(t,1,e,r)}function Fa(t){return wi(t)?t:function(...e){var r=e.pop(),i=!0;e.push((...n)=>{i?At(()=>r(...n)):r(...n)}),t.apply(this,e),i=!1}}function fx(t,e,r){return dt(i=>!i,i=>!i)(qe,t,e,r)}function cx(t,e,r,i){return dt(n=>!n,n=>!n)($e(e),t,r,i)}function hx(t,e,r){return dt(i=>!i,i=>!i)(Xe,t,e,r)}function dx(t,e,r,i){var n=new Array(e.length);t(e,(s,o,a)=>{r(s,(l,u)=>{n[o]=!!u,a(l)})},s=>{if(s)return i(s);for(var o=[],a=0;a<e.length;a++)n[a]&&o.push(e[a]);i(null,o)})}function px(t,e,r,i){var n=[];t(e,(s,o,a)=>{r(s,(l,u)=>{if(l)return a(l);u&&n.push({index:o,value:s}),a(l)})},s=>{if(s)return i(s);i(null,n.sort((o,a)=>o.index-a.index).map(o=>o.value))})}function Kn(t,e,r,i){var n=Hn(e)?dx:px;return n(t,e,F(r),i)}function gx(t,e,r){return Kn(qe,t,e,r)}function _x(t,e,r,i){return Kn($e(e),t,r,i)}function yx(t,e,r){return Kn(Xe,t,e,r)}function mx(t,e){var r=It(e),i=F(Fa(t));function n(s){if(s)return r(s);s!==!1&&i(n)}return n()}function bx(t,e,r,i){var n=F(r);return Si(t,e,(s,o)=>{n(s,(a,l)=>a?o(a):o(a,{key:l,val:s}))},(s,o)=>{for(var a={},{hasOwnProperty:l}=Object.prototype,u=0;u<o.length;u++)if(o[u]){var{key:f}=o[u],{val:c}=o[u];l.call(a,f)?a[f].push(c):a[f]=[c]}return i(s,a)})}function Dh(t,e,r){return Zn(t,1/0,e,r)}function Ph(t,e,r){return Zn(t,1,e,r)}function wx(t,e,r,i){i=Ot(i);var n={},s=F(r);return $e(e)(t,(o,a,l)=>{s(o,a,(u,f)=>{if(u)return l(u);n[a]=f,l(u)})},o=>i(o,n))}function Nh(t,e,r){return Qn(t,1/0,e,r)}function Ch(t,e,r){return Qn(t,1,e,r)}function kh(t,e=r=>r){var r=Object.create(null),i=Object.create(null),n=F(t),s=bi((o,a)=>{var l=e(...o);l in r?At(()=>a(null,...r[l])):l in i?i[l].push(a):(i[l]=[a],n(...o,(u,...f)=>{u||(r[l]=f);var c=i[l];delete i[l];for(var h=0,d=c.length;h<d;h++)c[h](u,...f)}))});return s.memo=r,s.unmemoized=t,s}function Fh(t,e){return qa(qe,t,e)}function qh(t,e,r){return qa($e(e),t,r)}function ja(t,e){var r=F(t);return ka((i,n)=>{r(i[0],n)},e,1)}function Sx(t){return(t<<1)+1}function ch(t){return(t+1>>1)-1}function ha(t,e){return t.priority!==e.priority?t.priority<e.priority:t.pushCount<e.pushCount}function jh(t,e){var r=ja(t,e),{push:i,pushAsync:n}=r;r._tasks=new Ra,r._createTaskItem=({data:o,priority:a},l)=>({data:o,priority:a,callback:l});function s(o,a){return Array.isArray(o)?o.map(l=>({data:l,priority:a})):{data:o,priority:a}}return r.push=function(o,a=0,l){return i(s(o,a),l)},r.pushAsync=function(o,a=0,l){return n(s(o,a),l)},delete r.unshift,delete r.unshiftAsync,r}function Ex(t,e){if(e=Ot(e),!Array.isArray(t))return e(new TypeError("First argument to race must be an array of functions"));if(!t.length)return e();for(var r=0,i=t.length;r<i;r++)F(t[r])(e)}function Aa(t,e,r,i){var n=[...t].reverse();return Sr(n,e,r,i)}function zn(t){var e=F(t);return bi(function(i,n){return i.push((s,...o)=>{let a={};if(s&&(a.error=s),o.length>0){var l=o;o.length<=1&&([l]=o),a.value=l}n(null,a)}),e.apply(this,i)})}function Uh(t){var e;return Array.isArray(t)?e=t.map(zn):(e={},Object.keys(t).forEach(r=>{e[r]=zn.call(this,t[r])})),e}function Ba(t,e,r,i){let n=F(r);return Kn(t,e,(s,o)=>{n(s,(a,l)=>{o(a,!l)})},i)}function vx(t,e,r){return Ba(qe,t,e,r)}function xx(t,e,r,i){return Ba($e(e),t,r,i)}function Tx(t,e,r){return Ba(Xe,t,e,r)}function $h(t){return function(){return t}}function Gn(t,e,r){var i={times:Oa,intervalFunc:$h(Hh)};if(arguments.length<3&&typeof t=="function"?(r=e||Er(),e=t):(Rx(i,t),r=r||Er()),typeof e!="function")throw new Error("Invalid arguments for async.retry");var n=F(e),s=1;function o(){n((a,...l)=>{a!==!1&&(a&&s++<i.times&&(typeof i.errorFilter!="function"||i.errorFilter(a))?setTimeout(o,i.intervalFunc(s-1)):r(a,...l))})}return o(),r[vr]}function Rx(t,e){if(typeof e=="object")t.times=+e.times||Oa,t.intervalFunc=typeof e.interval=="function"?e.interval:$h(+e.interval||Hh),t.errorFilter=e.errorFilter;else if(typeof e=="number"||typeof e=="string")t.times=+e||Oa;else throw new Error("Invalid arguments for async.retry")}function Vh(t,e){e||(e=t,t=null);let r=t&&t.arity||e.length;wi(e)&&(r+=1);var i=F(e);return bi((n,s)=>{(n.length<r-1||s==null)&&(n.push(s),s=Er());function o(a){i(...n,a)}return t?Gn(t,o,s):Gn(o,s),s[vr]})}function Yh(t,e){return qa(Xe,t,e)}function Ax(t,e,r){return dt(Boolean,i=>i)(qe,t,e,r)}function Ox(t,e,r,i){return dt(Boolean,n=>n)($e(e),t,r,i)}function Ix(t,e,r){return dt(Boolean,i=>i)(Xe,t,e,r)}function Dx(t,e,r){var i=F(e);return Yn(t,(s,o)=>{i(s,(a,l)=>{if(a)return o(a);o(a,{value:s,criteria:l})})},(s,o)=>{if(s)return r(s);r(null,o.sort(n).map(a=>a.value))});function n(s,o){var a=s.criteria,l=o.criteria;return a<l?-1:a>l?1:0}}function Zh(t,e,r){var i=F(t);return bi((n,s)=>{var o=!1,a;function l(){var u=t.name||"anonymous",f=new Error('Callback function "'+u+'" timed out.');f.code="ETIMEDOUT",r&&(f.info=r),o=!0,s(f)}n.push((...u)=>{o||(s(...u),clearTimeout(a))}),a=setTimeout(l,e),i(...n)})}function Px(t){for(var e=Array(t);t--;)e[t]=t;return e}function Xn(t,e,r,i){var n=F(r);return Si(Px(t),e,n,i)}function Qh(t,e,r){return Xn(t,1/0,e,r)}function Xh(t,e,r){return Xn(t,1,e,r)}function Jh(t,e,r,i){arguments.length<=3&&typeof e=="function"&&(i=r,r=e,e=Array.isArray(t)?[]:{}),i=Ot(i||Er());var n=F(r);return qe(t,(s,o,a)=>{n(e,s,o,a)},s=>i(s,e)),i[vr]}function Lx(t,e){var r=null,i;return Wn(t,(n,s)=>{F(n)((o,...a)=>{if(o===!1)return s(o);a.length<2?[i]=a:i=a,r=o,s(o?null:{})})},()=>e(r,i))}function td(t){return(...e)=>(t.unmemoized||t)(...e)}function Nx(t,e,r){r=It(r);var i=F(e),n=F(t),s=[];function o(l,...u){if(l)return r(l);s=u,l!==!1&&n(a)}function a(l,u){if(l)return r(l);if(l!==!1){if(!u)return r(null,...s);i(o)}}return n(a)}function rd(t,e,r){let i=F(t);return $n(n=>i((s,o)=>n(s,!o)),e,r)}function Cx(t,e){if(e=Ot(e),!Array.isArray(t))return e(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();var r=0;function i(s){var o=F(t[r++]);o(...s,It(n))}function n(s,...o){if(s!==!1){if(s||r===t.length)return e(s,...o);i(o)}}i([])}var Pv,dh,ph,_i,At,Vn,$e,yi,qe,Yn,mh,Xe,Na,bh,vr,Hv,Vv,Yv,Kv,da,Sr,Si,mi,pa,ga,_a,ya,ma,Rh,Bn,ba,Un,Wn,wa,Sa,Ea,va,xa,Ta,Ih,Zn,Lh,Qn,qn,Mh,qa,Ra,Bh,Wh,zh,Gh,Oa,Hh,Ia,Da,Pa,Kh,ed,$n,id,kx,sd=ZE(()=>{"use strict";Pv=typeof queueMicrotask=="function"&&queueMicrotask,dh=typeof setImmediate=="function"&&setImmediate,ph=typeof process=="object"&&typeof process.nextTick=="function";Pv?_i=queueMicrotask:dh?_i=setImmediate:ph?_i=process.nextTick:_i=gh;At=_h(_i);Vn={};$e=t=>(e,r,i)=>{if(i=Ot(i),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return i(null);if(Lv(e))return uh(e,t,r,i);if(Nv(e))return uh(e[Symbol.asyncIterator](),t,r,i);var n=qv(e),s=!1,o=!1,a=0,l=!1;function u(c,h){if(!o)if(a-=1,c)s=!0,i(c);else if(c===!1)s=!0,o=!0;else{if(h===Vn||s&&a<=0)return s=!0,i(null);l||f()}}function f(){for(l=!0;a<t&&!s;){var c=n();if(c===null){s=!0,a<=0&&i(null);return}a+=1,r(c.value,c.key,It(u))}l=!1}f()};yi=M(jv,4);qe=M(Wv,3);Yn=M(zv,3),mh=yh(Yn);Xe=M(Gv,3);Na=M($v,3),bh=yh(Na),vr=Symbol("promiseCallback");Hv=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,Vv=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,Yv=/,/,Kv=/(=.+)?(\s*)$/;da=class{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,r){r.prev=e,r.next=e.next,e.next?e.next.prev=r:this.tail=r,e.next=r,this.length+=1}insertBefore(e,r){r.prev=e.prev,r.next=e,e.prev?e.prev.next=r:this.head=r,e.prev=r,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):fh(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):fh(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var r=this.head;r;){var{next:i}=r;e(r)&&this.removeLink(r),r=i}return this}};Sr=M(Xv,4);Si=M(Jv,4);mi=M(ex,4);pa=M(tx,3);ga=M(rx,3);_a=M(ix,3);ya=M(nx,4);ma=M(sx,3);Rh=Th("dir");Bn=M(ox,3);ba=M(ax,3);Un=M(lx,4);Wn=M(ux,3);wa=M(fx,3);Sa=M(cx,4);Ea=M(hx,3);va=M(gx,3);xa=M(_x,4);Ta=M(yx,3);Ih=M(mx,2);Zn=M(bx,4);Lh=Th("log");Qn=M(wx,4);ph?qn=process.nextTick:dh?qn=setImmediate:qn=gh;Mh=_h(qn),qa=M((t,e,r)=>{var i=Hn(e)?[]:{};t(e,(n,s,o)=>{F(n)((a,...l)=>{l.length<2&&([l]=l),i[s]=l,o(a)})},n=>r(n,i))},3);Ra=class{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let r;for(;e>0&&ha(this.heap[e],this.heap[r=ch(e)]);){let i=this.heap[e];this.heap[e]=this.heap[r],this.heap[r]=i,e=r}}percDown(e){let r;for(;(r=Sx(e))<this.heap.length&&(r+1<this.heap.length&&ha(this.heap[r+1],this.heap[r])&&(r=r+1),!ha(this.heap[e],this.heap[r]));){let i=this.heap[e];this.heap[e]=this.heap[r],this.heap[r]=i,e=r}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let r=0;for(let i=0;i<this.heap.length;i++)e(this.heap[i])||(this.heap[r]=this.heap[i],r++);this.heap.splice(r);for(let i=ch(this.heap.length-1);i>=0;i--)this.percDown(i);return this}};Bh=M(Ex,2);Wh=M(vx,3);zh=M(xx,4);Gh=M(Tx,3);Oa=5,Hh=0;Ia=M(Ax,3);Da=M(Ox,4);Pa=M(Ix,3);Kh=M(Dx,3);ed=M(Lx);$n=M(Nx,3);id=M(Cx),kx={apply:hh,applyEach:mh,applyEachSeries:bh,asyncify:jn,auto:Ca,autoInject:wh,cargo:Sh,cargoQueue:Eh,compose:vh,concat:pa,concatLimit:mi,concatSeries:ga,constant:xh,detect:_a,detectLimit:ya,detectSeries:ma,dir:Rh,doUntil:Ah,doWhilst:Bn,each:ba,eachLimit:Un,eachOf:qe,eachOfLimit:yi,eachOfSeries:Xe,eachSeries:Wn,ensureAsync:Fa,every:wa,everyLimit:Sa,everySeries:Ea,filter:va,filterLimit:xa,filterSeries:Ta,forever:Ih,groupBy:Dh,groupByLimit:Zn,groupBySeries:Ph,log:Lh,map:Yn,mapLimit:Si,mapSeries:Na,mapValues:Nh,mapValuesLimit:Qn,mapValuesSeries:Ch,memoize:kh,nextTick:Mh,parallel:Fh,parallelLimit:qh,priorityQueue:jh,queue:ja,race:Bh,reduce:Sr,reduceRight:Aa,reflect:zn,reflectAll:Uh,reject:Wh,rejectLimit:zh,rejectSeries:Gh,retry:Gn,retryable:Vh,seq:Ma,series:Yh,setImmediate:At,some:Ia,someLimit:Da,someSeries:Pa,sortBy:Kh,timeout:Zh,times:Qh,timesLimit:Xn,timesSeries:Xh,transform:Jh,tryEach:ed,unmemoize:td,until:rd,waterfall:id,whilst:$n,all:wa,allLimit:Sa,allSeries:Ea,any:Ia,anyLimit:Da,anySeries:Pa,find:_a,findLimit:ya,findSeries:ma,flatMap:pa,flatMapLimit:mi,flatMapSeries:ga,forEach:ba,forEachSeries:Wn,forEachLimit:Un,forEachOf:qe,forEachOfSeries:Xe,forEachOfLimit:yi,inject:Sr,foldl:Sr,foldr:Aa,select:va,selectLimit:xa,selectSeries:Ta,wrapSync:jn,during:$n,doDuring:Bn}});var ad=g((n3,od)=>{"use strict";var Dt=P("constants"),Mx=process.cwd,Jn=null,Fx=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Jn||(Jn=Mx.call(process)),Jn};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ua=process.chdir,process.chdir=function(t){Jn=null,Ua.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ua));var Ua;od.exports=qx;function qx(t){Dt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=n(t.chmodSync),t.fchmodSync=n(t.fchmodSync),t.lchmodSync=n(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(f,c,h){h&&process.nextTick(h)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(f,c,h,d){d&&process.nextTick(d)},t.lchownSync=function(){}),Fx==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:(function(f){function c(h,d,m){var p=Date.now(),v=0;f(h,d,function y(b){if(b&&(b.code==="EACCES"||b.code==="EPERM"||b.code==="EBUSY")&&Date.now()-p<6e4){setTimeout(function(){t.stat(d,function(E,S){E&&E.code==="ENOENT"?f(h,d,y):m(b)})},v),v<100&&(v+=10);return}m&&m(b)})}return Object.setPrototypeOf&&Object.setPrototypeOf(c,f),c})(t.rename)),t.read=typeof t.read!="function"?t.read:(function(f){function c(h,d,m,p,v,y){var b;if(y&&typeof y=="function"){var E=0;b=function(S,T,D){if(S&&S.code==="EAGAIN"&&E<10)return E++,f.call(t,h,d,m,p,v,b);y.apply(this,arguments)}}return f.call(t,h,d,m,p,v,b)}return Object.setPrototypeOf&&Object.setPrototypeOf(c,f),c})(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:(function(f){return function(c,h,d,m,p){for(var v=0;;)try{return f.call(t,c,h,d,m,p)}catch(y){if(y.code==="EAGAIN"&&v<10){v++;continue}throw y}}})(t.readSync);function e(f){f.lchmod=function(c,h,d){f.open(c,Dt.O_WRONLY|Dt.O_SYMLINK,h,function(m,p){if(m){d&&d(m);return}f.fchmod(p,h,function(v){f.close(p,function(y){d&&d(v||y)})})})},f.lchmodSync=function(c,h){var d=f.openSync(c,Dt.O_WRONLY|Dt.O_SYMLINK,h),m=!0,p;try{p=f.fchmodSync(d,h),m=!1}finally{if(m)try{f.closeSync(d)}catch{}else f.closeSync(d)}return p}}function r(f){Dt.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(c,h,d,m){f.open(c,Dt.O_SYMLINK,function(p,v){if(p){m&&m(p);return}f.futimes(v,h,d,function(y){f.close(v,function(b){m&&m(y||b)})})})},f.lutimesSync=function(c,h,d){var m=f.openSync(c,Dt.O_SYMLINK),p,v=!0;try{p=f.futimesSync(m,h,d),v=!1}finally{if(v)try{f.closeSync(m)}catch{}else f.closeSync(m)}return p}):f.futimes&&(f.lutimes=function(c,h,d,m){m&&process.nextTick(m)},f.lutimesSync=function(){})}function i(f){return f&&function(c,h,d){return f.call(t,c,h,function(m){u(m)&&(m=null),d&&d.apply(this,arguments)})}}function n(f){return f&&function(c,h){try{return f.call(t,c,h)}catch(d){if(!u(d))throw d}}}function s(f){return f&&function(c,h,d,m){return f.call(t,c,h,d,function(p){u(p)&&(p=null),m&&m.apply(this,arguments)})}}function o(f){return f&&function(c,h,d){try{return f.call(t,c,h,d)}catch(m){if(!u(m))throw m}}}function a(f){return f&&function(c,h,d){typeof h=="function"&&(d=h,h=null);function m(p,v){v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),d&&d.apply(this,arguments)}return h?f.call(t,c,h,m):f.call(t,c,m)}}function l(f){return f&&function(c,h){var d=h?f.call(t,c,h):f.call(t,c);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function u(f){if(!f||f.code==="ENOSYS")return!0;var c=!process.getuid||process.getuid()!==0;return!!(c&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var fd=g((s3,ud)=>{"use strict";var ld=P("stream").Stream;ud.exports=jx;function jx(t){return{ReadStream:e,WriteStream:r};function e(i,n){if(!(this instanceof e))return new e(i,n);ld.call(this);var s=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,n=n||{};for(var o=Object.keys(n),a=0,l=o.length;a<l;a++){var u=o[a];this[u]=n[u]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(f,c){if(f){s.emit("error",f),s.readable=!1;return}s.fd=c,s.emit("open",c),s._read()})}function r(i,n){if(!(this instanceof r))return new r(i,n);ld.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var s=Object.keys(n),o=0,a=s.length;o<a;o++){var l=s[o];this[l]=n[l]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var hd=g((o3,cd)=>{"use strict";cd.exports=Ux;var Bx=Object.getPrototypeOf||function(t){return t.__proto__};function Ux(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:Bx(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var $a=g((a3,Ga)=>{"use strict";var ne=P("fs"),Wx=ad(),zx=fd(),Gx=hd(),es=P("util"),me,rs;typeof Symbol=="function"&&typeof Symbol.for=="function"?(me=Symbol.for("graceful-fs.queue"),rs=Symbol.for("graceful-fs.previous")):(me="___graceful-fs.queue",rs="___graceful-fs.previous");function $x(){}function gd(t,e){Object.defineProperty(t,me,{get:function(){return e}})}var Qt=$x;es.debuglog?Qt=es.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Qt=function(){var t=es.format.apply(es,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
7
|
+
GFS4: `),console.error(t)});ne[me]||(dd=global[me]||[],gd(ne,dd),ne.close=(function(t){function e(r,i){return t.call(ne,r,function(n){n||pd(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,rs,{value:t}),e})(ne.close),ne.closeSync=(function(t){function e(r){t.apply(ne,arguments),pd()}return Object.defineProperty(e,rs,{value:t}),e})(ne.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Qt(ne[me]),P("assert").equal(ne[me].length,0)}));var dd;global[me]||gd(global,ne[me]);Ga.exports=Wa(Gx(ne));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ne.__patched&&(Ga.exports=Wa(ne),ne.__patched=!0);function Wa(t){Wx(t),t.gracefulify=Wa,t.createReadStream=T,t.createWriteStream=D;var e=t.readFile;t.readFile=r;function r(w,R,A){return typeof R=="function"&&(A=R,R=null),N(w,R,A);function N(z,ue,Z,te){return e(z,ue,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?xr([N,[z,ue,Z],V,te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=n;function n(w,R,A,N){return typeof A=="function"&&(N=A,A=null),z(w,R,A,N);function z(ue,Z,te,V,ye){return i(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([z,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(w,R,A,N){return typeof A=="function"&&(N=A,A=null),z(w,R,A,N);function z(ue,Z,te,V,ye){return s(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([z,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=l);function l(w,R,A,N){return typeof A=="function"&&(N=A,A=0),z(w,R,A,N);function z(ue,Z,te,V,ye){return a(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([z,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var u=t.readdir;t.readdir=c;var f=/^v[0-5]\./;function c(w,R,A){typeof R=="function"&&(A=R,R=null);var N=f.test(process.version)?function(Z,te,V,ye){return u(Z,z(Z,te,V,ye))}:function(Z,te,V,ye){return u(Z,te,z(Z,te,V,ye))};return N(w,R,A);function z(ue,Z,te,V){return function(ye,re){ye&&(ye.code==="EMFILE"||ye.code==="ENFILE")?xr([N,[ue,Z,te],ye,V||Date.now(),Date.now()]):(re&&re.sort&&re.sort(),typeof te=="function"&&te.call(this,ye,re))}}}if(process.version.substr(0,4)==="v0.8"){var h=zx(t);y=h.ReadStream,E=h.WriteStream}var d=t.ReadStream;d&&(y.prototype=Object.create(d.prototype),y.prototype.open=b);var m=t.WriteStream;m&&(E.prototype=Object.create(m.prototype),E.prototype.open=S),Object.defineProperty(t,"ReadStream",{get:function(){return y},set:function(w){y=w},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return E},set:function(w){E=w},enumerable:!0,configurable:!0});var p=y;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(w){p=w},enumerable:!0,configurable:!0});var v=E;Object.defineProperty(t,"FileWriteStream",{get:function(){return v},set:function(w){v=w},enumerable:!0,configurable:!0});function y(w,R){return this instanceof y?(d.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function b(){var w=this;O(w.path,w.flags,w.mode,function(R,A){R?(w.autoClose&&w.destroy(),w.emit("error",R)):(w.fd=A,w.emit("open",A),w.read())})}function E(w,R){return this instanceof E?(m.apply(this,arguments),this):E.apply(Object.create(E.prototype),arguments)}function S(){var w=this;O(w.path,w.flags,w.mode,function(R,A){R?(w.destroy(),w.emit("error",R)):(w.fd=A,w.emit("open",A))})}function T(w,R){return new t.ReadStream(w,R)}function D(w,R){return new t.WriteStream(w,R)}var x=t.open;t.open=O;function O(w,R,A,N){return typeof A=="function"&&(N=A,A=null),z(w,R,A,N);function z(ue,Z,te,V,ye){return x(ue,Z,te,function(re,KB){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([z,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return t}function xr(t){Qt("ENQUEUE",t[0].name,t[1]),ne[me].push(t),za()}var ts;function pd(){for(var t=Date.now(),e=0;e<ne[me].length;++e)ne[me][e].length>2&&(ne[me][e][3]=t,ne[me][e][4]=t);za()}function za(){if(clearTimeout(ts),ts=void 0,ne[me].length!==0){var t=ne[me].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)Qt("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){Qt("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,i)}else{var a=Date.now()-s,l=Math.max(s-n,1),u=Math.min(l*1.2,100);a>=u?(Qt("RETRY",e.name,r),e.apply(null,r.concat([n]))):ne[me].push(t)}ts===void 0&&(ts=setTimeout(za,0))}}});var is=g((l3,_d)=>{"use strict";var Je=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Je.writable=t=>Je(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Je.readable=t=>Je(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Je.duplex=t=>Je.writable(t)&&Je.readable(t);Je.transform=t=>Je.duplex(t)&&typeof t._transform=="function";_d.exports=Je});var Ei=g((u3,Ha)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Ha.exports={nextTick:Hx}:Ha.exports=process;function Hx(t,e,r,i){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,s,o;switch(n){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick(function(){t.call(null,e)});case 3:return process.nextTick(function(){t.call(null,e,r)});case 4:return process.nextTick(function(){t.call(null,e,r,i)});default:for(s=new Array(n-1),o=0;o<s.length;)s[o++]=arguments[o];return process.nextTick(function(){t.apply(null,s)})}}});var md=g((f3,yd)=>{"use strict";var Vx={}.toString;yd.exports=Array.isArray||function(t){return Vx.call(t)=="[object Array]"}});var Va=g((c3,bd)=>{"use strict";bd.exports=P("stream")});var vi=g((Ya,Sd)=>{"use strict";var ns=P("buffer"),pt=ns.Buffer;function wd(t,e){for(var r in t)e[r]=t[r]}pt.from&&pt.alloc&&pt.allocUnsafe&&pt.allocUnsafeSlow?Sd.exports=ns:(wd(ns,Ya),Ya.Buffer=Tr);function Tr(t,e,r){return pt(t,e,r)}wd(pt,Tr);Tr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return pt(t,e,r)};Tr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=pt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Tr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return pt(t)};Tr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ns.SlowBuffer(t)}});var Rr=g(ve=>{"use strict";function Yx(t){return Array.isArray?Array.isArray(t):ss(t)==="[object Array]"}ve.isArray=Yx;function Kx(t){return typeof t=="boolean"}ve.isBoolean=Kx;function Zx(t){return t===null}ve.isNull=Zx;function Qx(t){return t==null}ve.isNullOrUndefined=Qx;function Xx(t){return typeof t=="number"}ve.isNumber=Xx;function Jx(t){return typeof t=="string"}ve.isString=Jx;function e1(t){return typeof t=="symbol"}ve.isSymbol=e1;function t1(t){return t===void 0}ve.isUndefined=t1;function r1(t){return ss(t)==="[object RegExp]"}ve.isRegExp=r1;function i1(t){return typeof t=="object"&&t!==null}ve.isObject=i1;function n1(t){return ss(t)==="[object Date]"}ve.isDate=n1;function s1(t){return ss(t)==="[object Error]"||t instanceof Error}ve.isError=s1;function o1(t){return typeof t=="function"}ve.isFunction=o1;function a1(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}ve.isPrimitive=a1;ve.isBuffer=P("buffer").Buffer.isBuffer;function ss(t){return Object.prototype.toString.call(t)}});var Ed=g((d3,Ka)=>{"use strict";typeof Object.create=="function"?Ka.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Ka.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var Ar=g((p3,Qa)=>{"use strict";try{if(Za=P("util"),typeof Za.inherits!="function")throw"";Qa.exports=Za.inherits}catch{Qa.exports=Ed()}var Za});var xd=g((g3,Xa)=>{"use strict";function l1(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var vd=vi().Buffer,xi=P("util");function u1(t,e,r){t.copy(e,r)}Xa.exports=(function(){function t(){l1(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},t.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},t.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},t.prototype.concat=function(r){if(this.length===0)return vd.alloc(0);for(var i=vd.allocUnsafe(r>>>0),n=this.head,s=0;n;)u1(n.data,i,s),s+=n.data.length,n=n.next;return i},t})();xi&&xi.inspect&&xi.inspect.custom&&(Xa.exports.prototype[xi.inspect.custom]=function(){var t=xi.inspect({length:this.length});return this.constructor.name+" "+t})});var Ja=g((_3,Td)=>{"use strict";var os=Ei();function f1(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,os.nextTick(as,this,t)):os.nextTick(as,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,os.nextTick(as,r,s)):os.nextTick(as,r,s):e&&e(s)}),this)}function c1(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function as(t,e){t.emit("error",e)}Td.exports={destroy:f1,undestroy:c1}});var Ad=g((y3,Rd)=>{"use strict";Rd.exports=P("util").deprecate});var tl=g((m3,kd)=>{"use strict";var Xt=Ei();kd.exports=fe;function Id(t){var e=this;this.next=null,this.entry=null,this.finish=function(){I1(e,t)}}var h1=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Xt.nextTick,Or;fe.WritableState=Ri;var Dd=Object.create(Rr());Dd.inherits=Ar();var d1={deprecate:Ad()},Pd=Va(),us=vi().Buffer,p1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function g1(t){return us.from(t)}function _1(t){return us.isBuffer(t)||t instanceof p1}var Ld=Ja();Dd.inherits(fe,Pd);function y1(){}function Ri(t,e){Or=Or||Jt(),t=t||{};var r=e instanceof Or;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,n=t.writableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=t.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){x1(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Id(this)}Ri.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Ri.prototype,"buffer",{get:d1.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ls;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ls=Function.prototype[Symbol.hasInstance],Object.defineProperty(fe,Symbol.hasInstance,{value:function(t){return ls.call(this,t)?!0:this!==fe?!1:t&&t._writableState instanceof Ri}})):ls=function(t){return t instanceof this};function fe(t){if(Or=Or||Jt(),!ls.call(fe,this)&&!(this instanceof Or))return new fe(t);this._writableState=new Ri(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Pd.call(this)}fe.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function m1(t,e){var r=new Error("write after end");t.emit("error",r),Xt.nextTick(e,r)}function b1(t,e,r,i){var n=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!e.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),Xt.nextTick(i,s),n=!1),n}fe.prototype.write=function(t,e,r){var i=this._writableState,n=!1,s=!i.objectMode&&_1(t);return s&&!us.isBuffer(t)&&(t=g1(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=y1),i.ended?m1(this,r):(s||b1(this,i,t,r))&&(i.pendingcb++,n=S1(this,i,s,t,e,r)),n};fe.prototype.cork=function(){var t=this._writableState;t.corked++};fe.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Nd(this,t))};fe.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this};function w1(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=us.from(e,r)),e}Object.defineProperty(fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function S1(t,e,r,i,n,s){if(!r){var o=w1(e,i,n);i!==o&&(r=!0,n="buffer",i=o)}var a=e.objectMode?1:i.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:s,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else el(t,e,!1,a,i,n,s);return l}function el(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function E1(t,e,r,i,n){--e.pendingcb,r?(Xt.nextTick(n,i),Xt.nextTick(Ti,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(n(i),t._writableState.errorEmitted=!0,t.emit("error",i),Ti(t,e))}function v1(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function x1(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(v1(r),e)E1(t,r,i,e,n);else{var s=Cd(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Nd(t,r),i?h1(Od,t,r,s,n):Od(t,r,s,n)}}function Od(t,e,r,i){r||T1(t,e),e.pendingcb--,i(),Ti(t,e)}function T1(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Nd(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),s=e.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)n[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;n.allBuffers=a,el(t,e,!0,e.length,n,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new Id(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,f=r.callback,c=e.objectMode?1:l.length;if(el(t,e,!1,c,l,u,f),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}fe.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))};fe.prototype._writev=null;fe.prototype.end=function(t,e,r){var i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||O1(this,i,r)};function Cd(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function R1(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),Ti(t,e)})}function A1(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,Xt.nextTick(R1,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Ti(t,e){var r=Cd(e);return r&&(A1(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}function O1(t,e,r){e.ending=!0,Ti(t,e),r&&(e.finished?Xt.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function I1(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(fe.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});fe.prototype.destroy=Ld.destroy;fe.prototype._undestroy=Ld.undestroy;fe.prototype._destroy=function(t,e){this.end(),e(t)}});var Jt=g((b3,jd)=>{"use strict";var Md=Ei(),D1=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};jd.exports=gt;var Fd=Object.create(Rr());Fd.inherits=Ar();var qd=nl(),il=tl();Fd.inherits(gt,qd);for(rl=D1(il.prototype),fs=0;fs<rl.length;fs++)cs=rl[fs],gt.prototype[cs]||(gt.prototype[cs]=il.prototype[cs]);var rl,cs,fs;function gt(t){if(!(this instanceof gt))return new gt(t);qd.call(this,t),il.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",P1)}Object.defineProperty(gt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function P1(){this.allowHalfOpen||this._writableState.ended||Md.nextTick(L1,this)}function L1(t){t.end()}Object.defineProperty(gt.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}});gt.prototype._destroy=function(t,e){this.push(null),this.end(),Md.nextTick(e,t)}});var al=g(Ud=>{"use strict";var ol=vi().Buffer,Bd=ol.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function N1(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function C1(t){var e=N1(t);if(typeof e!="string"&&(ol.isEncoding===Bd||!Bd(t)))throw new Error("Unknown encoding: "+t);return e||t}Ud.StringDecoder=Ai;function Ai(t){this.encoding=C1(t);var e;switch(this.encoding){case"utf16le":this.text=B1,this.end=U1,e=4;break;case"utf8":this.fillLast=F1,e=4;break;case"base64":this.text=W1,this.end=z1,e=3;break;default:this.write=G1,this.end=$1;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ol.allocUnsafe(e)}Ai.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};Ai.prototype.end=j1;Ai.prototype.text=q1;Ai.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function sl(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function k1(t,e,r){var i=e.length-1;if(i<r)return 0;var n=sl(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=sl(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=sl(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function M1(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function F1(t){var e=this.lastTotal-this.lastNeed,r=M1(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function q1(t,e){var r=k1(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function j1(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function B1(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function U1(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function W1(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function z1(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function G1(t){return t.toString(this.encoding)}function $1(t){return t&&t.length?this.write(t):""}});var nl=g((E3,Jd)=>{"use strict";var Dr=Ei();Jd.exports=Q;var H1=md(),Oi;Q.ReadableState=Yd;var S3=P("events").EventEmitter,$d=function(t,e){return t.listeners(e).length},hl=Va(),Ii=vi().Buffer,V1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Y1(t){return Ii.from(t)}function K1(t){return Ii.isBuffer(t)||t instanceof V1}var Hd=Object.create(Rr());Hd.inherits=Ar();var ll=P("util"),$=void 0;ll&&ll.debuglog?$=ll.debuglog("stream"):$=function(){};var Z1=xd(),Vd=Ja(),Ir;Hd.inherits(Q,hl);var ul=["error","close","destroy","pause","resume"];function Q1(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):H1(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Yd(t,e){Oi=Oi||Jt(),t=t||{};var r=e instanceof Oi;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,n=t.readableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Z1,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Ir||(Ir=al().StringDecoder),this.decoder=new Ir(t.encoding),this.encoding=t.encoding)}function Q(t){if(Oi=Oi||Jt(),!(this instanceof Q))return new Q(t);this._readableState=new Yd(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),hl.call(this)}Object.defineProperty(Q.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Q.prototype.destroy=Vd.destroy;Q.prototype._undestroy=Vd.undestroy;Q.prototype._destroy=function(t,e){this.push(null),e(t)};Q.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Ii.from(t,e),e=""),i=!0),Kd(this,t,e,!1,i)};Q.prototype.unshift=function(t){return Kd(this,t,null,!0,!1)};function Kd(t,e,r,i,n){var s=t._readableState;if(e===null)s.reading=!1,tT(t,s);else{var o;n||(o=X1(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Ii.prototype&&(e=Y1(e)),i?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):fl(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?fl(t,s,e,!1):Zd(t,s)):fl(t,s,e,!1))):i||(s.reading=!1)}return J1(s)}function fl(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&hs(t)),Zd(t,e)}function X1(t,e){var r;return!K1(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function J1(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}Q.prototype.isPaused=function(){return this._readableState.flowing===!1};Q.prototype.setEncoding=function(t){return Ir||(Ir=al().StringDecoder),this._readableState.decoder=new Ir(t),this._readableState.encoding=t,this};var Wd=8388608;function eT(t){return t>=Wd?t=Wd:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function zd(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=eT(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}Q.prototype.read=function(t){$("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return $("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?cl(this):hs(this),null;if(t=zd(t,e),t===0&&e.ended)return e.length===0&&cl(this),null;var i=e.needReadable;$("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,$("length less than watermark",i)),e.ended||e.reading?(i=!1,$("reading or ended",i)):i&&($("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=zd(r,e)));var n;return t>0?n=Qd(t,e):n=null,n===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&cl(this)),n!==null&&this.emit("data",n),n};function tT(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,hs(t)}}function hs(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||($("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Dr.nextTick(Gd,t):Gd(t))}function Gd(t){$("emit readable"),t.emit("readable"),dl(t)}function Zd(t,e){e.readingMore||(e.readingMore=!0,Dr.nextTick(rT,t,e))}function rT(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&($("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}Q.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))};Q.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,$("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=n?a:v;i.endEmitted?Dr.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(y,b){$("onunpipe"),y===r&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,f())}function a(){$("onend"),t.end()}var l=iT(r);t.on("drain",l);var u=!1;function f(){$("cleanup"),t.removeListener("close",m),t.removeListener("finish",p),t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",v),r.removeListener("data",h),u=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}var c=!1;r.on("data",h);function h(y){$("ondata"),c=!1;var b=t.write(y);b===!1&&!c&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Xd(i.pipes,t)!==-1)&&!u&&($("false write response, pause",i.awaitDrain),i.awaitDrain++,c=!0),r.pause())}function d(y){$("onerror",y),v(),t.removeListener("error",d),$d(t,"error")===0&&t.emit("error",y)}Q1(t,"error",d);function m(){t.removeListener("finish",p),v()}t.once("close",m);function p(){$("onfinish"),t.removeListener("close",m),v()}t.once("finish",p);function v(){$("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||($("pipe resume"),r.resume()),t};function iT(t){return function(){var e=t._readableState;$("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&$d(t,"data")&&(e.flowing=!0,dl(t))}}Q.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<n;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Xd(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};Q.prototype.on=function(t,e){var r=hl.prototype.on.call(this,t,e);if(t==="data")this._readableState.flowing!==!1&&this.resume();else if(t==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&hs(this):Dr.nextTick(nT,this))}return r};Q.prototype.addListener=Q.prototype.on;function nT(t){$("readable nexttick read 0"),t.read(0)}Q.prototype.resume=function(){var t=this._readableState;return t.flowing||($("resume"),t.flowing=!0,sT(this,t)),this};function sT(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Dr.nextTick(oT,t,e))}function oT(t,e){e.reading||($("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),dl(t),e.flowing&&!e.reading&&t.read(0)}Q.prototype.pause=function(){return $("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&($("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function dl(t){var e=t._readableState;for($("flow",e.flowing);e.flowing&&t.read()!==null;);}Q.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if($("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if($("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(o){return function(){return t[o].apply(t,arguments)}})(n));for(var s=0;s<ul.length;s++)t.on(ul[s],this.emit.bind(this,ul[s]));return this._read=function(o){$("wrapped _read",o),i&&(i=!1,t.resume())},this};Object.defineProperty(Q.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Q._fromList=Qd;function Qd(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.head.data:r=e.buffer.concat(e.length),e.buffer.clear()):r=aT(t,e.buffer,e.decoder),r}function aT(t,e,r){var i;return t<e.head.data.length?(i=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):t===e.head.data.length?i=e.shift():i=r?lT(t,e):uT(t,e),i}function lT(t,e){var r=e.head,i=1,n=r.data;for(t-=n.length;r=r.next;){var s=r.data,o=t>s.length?s.length:t;if(o===s.length?n+=s:n+=s.slice(0,t),t-=o,t===0){o===s.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=s.slice(o));break}++i}return e.length-=i,n}function uT(t,e){var r=Ii.allocUnsafe(t),i=e.head,n=1;for(i.data.copy(r),t-=i.data.length;i=i.next;){var s=i.data,o=t>s.length?s.length:t;if(s.copy(r,r.length-t,0,o),t-=o,t===0){o===s.length?(++n,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=s.slice(o));break}++n}return e.length-=n,r}function cl(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Dr.nextTick(fT,e,t))}function fT(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function Xd(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var pl=g((v3,rp)=>{"use strict";rp.exports=_t;var ds=Jt(),tp=Object.create(Rr());tp.inherits=Ar();tp.inherits(_t,ds);function cT(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function _t(t){if(!(this instanceof _t))return new _t(t);ds.call(this,t),this._transformState={afterTransform:cT.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",hT)}function hT(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){ep(t,e,r)}):ep(this,null,null)}_t.prototype.push=function(t,e){return this._transformState.needTransform=!1,ds.prototype.push.call(this,t,e)};_t.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")};_t.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};_t.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};_t.prototype._destroy=function(t,e){var r=this;ds.prototype._destroy.call(this,t,function(i){e(i),r.emit("close")})};function ep(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}});var op=g((x3,sp)=>{"use strict";sp.exports=Di;var ip=pl(),np=Object.create(Rr());np.inherits=Ar();np.inherits(Di,ip);function Di(t){if(!(this instanceof Di))return new Di(t);ip.call(this,t)}Di.prototype._transform=function(t,e,r){r(null,t)}});var ap=g((be,ps)=>{"use strict";var et=P("stream");process.env.READABLE_STREAM==="disable"&&et?(ps.exports=et,be=ps.exports=et.Readable,be.Readable=et.Readable,be.Writable=et.Writable,be.Duplex=et.Duplex,be.Transform=et.Transform,be.PassThrough=et.PassThrough,be.Stream=et):(be=ps.exports=nl(),be.Stream=et||be,be.Readable=be,be.Writable=tl(),be.Duplex=Jt(),be.Transform=pl(),be.PassThrough=op())});var up=g((T3,lp)=>{"use strict";lp.exports=ap().PassThrough});var dp=g((R3,hp)=>{"use strict";var fp=P("util"),ys=up();hp.exports={Readable:gs,Writable:_s};fp.inherits(gs,ys);fp.inherits(_s,ys);function cp(t,e,r){t[e]=function(){return delete t[e],r.apply(this,arguments),this[e].apply(this,arguments)}}function gs(t,e){if(!(this instanceof gs))return new gs(t,e);ys.call(this,e),cp(this,"_read",function(){var r=t.call(this,e),i=this.emit.bind(this,"error");r.on("error",i),r.pipe(this)}),this.emit("readable")}function _s(t,e){if(!(this instanceof _s))return new _s(t,e);ys.call(this,e),cp(this,"_write",function(){var r=t.call(this,e),i=this.emit.bind(this,"error");r.on("error",i),this.pipe(r)}),this.emit("writable")}});var gl=g((A3,pp)=>{"use strict";pp.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var i="";if(r>4&&t[3]==="\\"){var n=t[2];(n==="?"||n===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),i="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),i+s.join("/")}});var _l=g((O3,gp)=>{"use strict";function dT(t){return t}gp.exports=dT});var yp=g((I3,_p)=>{"use strict";function pT(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}_p.exports=pT});var wp=g((D3,bp)=>{"use strict";var gT=yp(),mp=Math.max;function _T(t,e,r){return e=mp(e===void 0?t.length-1:e,0),function(){for(var i=arguments,n=-1,s=mp(i.length-e,0),o=Array(s);++n<s;)o[n]=i[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=i[n];return a[e]=r(o),gT(t,this,a)}}bp.exports=_T});var Ep=g((P3,Sp)=>{"use strict";function yT(t){return function(){return t}}Sp.exports=yT});var yl=g((L3,vp)=>{"use strict";var mT=typeof global=="object"&&global&&global.Object===Object&&global;vp.exports=mT});var Pr=g((N3,xp)=>{"use strict";var bT=yl(),wT=typeof self=="object"&&self&&self.Object===Object&&self,ST=bT||wT||Function("return this")();xp.exports=ST});var ms=g((C3,Tp)=>{"use strict";var ET=Pr(),vT=ET.Symbol;Tp.exports=vT});var Ip=g((k3,Op)=>{"use strict";var Rp=ms(),Ap=Object.prototype,xT=Ap.hasOwnProperty,TT=Ap.toString,Pi=Rp?Rp.toStringTag:void 0;function RT(t){var e=xT.call(t,Pi),r=t[Pi];try{t[Pi]=void 0;var i=!0}catch{}var n=TT.call(t);return i&&(e?t[Pi]=r:delete t[Pi]),n}Op.exports=RT});var Pp=g((M3,Dp)=>{"use strict";var AT=Object.prototype,OT=AT.toString;function IT(t){return OT.call(t)}Dp.exports=IT});var Li=g((F3,Cp)=>{"use strict";var Lp=ms(),DT=Ip(),PT=Pp(),LT="[object Null]",NT="[object Undefined]",Np=Lp?Lp.toStringTag:void 0;function CT(t){return t==null?t===void 0?NT:LT:Np&&Np in Object(t)?DT(t):PT(t)}Cp.exports=CT});var Ni=g((q3,kp)=>{"use strict";function kT(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}kp.exports=kT});var ml=g((j3,Mp)=>{"use strict";var MT=Li(),FT=Ni(),qT="[object AsyncFunction]",jT="[object Function]",BT="[object GeneratorFunction]",UT="[object Proxy]";function WT(t){if(!FT(t))return!1;var e=MT(t);return e==jT||e==BT||e==qT||e==UT}Mp.exports=WT});var qp=g((B3,Fp)=>{"use strict";var zT=Pr(),GT=zT["__core-js_shared__"];Fp.exports=GT});var Up=g((U3,Bp)=>{"use strict";var bl=qp(),jp=(function(){var t=/[^.]+$/.exec(bl&&bl.keys&&bl.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function $T(t){return!!jp&&jp in t}Bp.exports=$T});var zp=g((W3,Wp)=>{"use strict";var HT=Function.prototype,VT=HT.toString;function YT(t){if(t!=null){try{return VT.call(t)}catch{}try{return t+""}catch{}}return""}Wp.exports=YT});var $p=g((z3,Gp)=>{"use strict";var KT=ml(),ZT=Up(),QT=Ni(),XT=zp(),JT=/[\\^$.*+?()[\]{}|]/g,eR=/^\[object .+?Constructor\]$/,tR=Function.prototype,rR=Object.prototype,iR=tR.toString,nR=rR.hasOwnProperty,sR=RegExp("^"+iR.call(nR).replace(JT,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function oR(t){if(!QT(t)||ZT(t))return!1;var e=KT(t)?sR:eR;return e.test(XT(t))}Gp.exports=oR});var Vp=g((G3,Hp)=>{"use strict";function aR(t,e){return t?.[e]}Hp.exports=aR});var Ci=g(($3,Yp)=>{"use strict";var lR=$p(),uR=Vp();function fR(t,e){var r=uR(t,e);return lR(r)?r:void 0}Yp.exports=fR});var Zp=g((H3,Kp)=>{"use strict";var cR=Ci(),hR=(function(){try{var t=cR(Object,"defineProperty");return t({},"",{}),t}catch{}})();Kp.exports=hR});var Jp=g((V3,Xp)=>{"use strict";var dR=Ep(),Qp=Zp(),pR=_l(),gR=Qp?function(t,e){return Qp(t,"toString",{configurable:!0,enumerable:!1,value:dR(e),writable:!0})}:pR;Xp.exports=gR});var tg=g((Y3,eg)=>{"use strict";var _R=800,yR=16,mR=Date.now;function bR(t){var e=0,r=0;return function(){var i=mR(),n=yR-(i-r);if(r=i,n>0){if(++e>=_R)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}eg.exports=bR});var ig=g((K3,rg)=>{"use strict";var wR=Jp(),SR=tg(),ER=SR(wR);rg.exports=ER});var bs=g((Z3,ng)=>{"use strict";var vR=_l(),xR=wp(),TR=ig();function RR(t,e){return TR(xR(t,e,vR),t+"")}ng.exports=RR});var ws=g((Q3,sg)=>{"use strict";function AR(t,e){return t===e||t!==t&&e!==e}sg.exports=AR});var wl=g((X3,og)=>{"use strict";var OR=9007199254740991;function IR(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=OR}og.exports=IR});var Ss=g((J3,ag)=>{"use strict";var DR=ml(),PR=wl();function LR(t){return t!=null&&PR(t.length)&&!DR(t)}ag.exports=LR});var Sl=g((e4,lg)=>{"use strict";var NR=9007199254740991,CR=/^(?:0|[1-9]\d*)$/;function kR(t,e){var r=typeof t;return e=e??NR,!!e&&(r=="number"||r!="symbol"&&CR.test(t))&&t>-1&&t%1==0&&t<e}lg.exports=kR});var fg=g((t4,ug)=>{"use strict";var MR=ws(),FR=Ss(),qR=Sl(),jR=Ni();function BR(t,e,r){if(!jR(r))return!1;var i=typeof e;return(i=="number"?FR(r)&&qR(e,r.length):i=="string"&&e in r)?MR(r[e],t):!1}ug.exports=BR});var hg=g((r4,cg)=>{"use strict";function UR(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}cg.exports=UR});var Lr=g((i4,dg)=>{"use strict";function WR(t){return t!=null&&typeof t=="object"}dg.exports=WR});var gg=g((n4,pg)=>{"use strict";var zR=Li(),GR=Lr(),$R="[object Arguments]";function HR(t){return GR(t)&&zR(t)==$R}pg.exports=HR});var El=g((s4,mg)=>{"use strict";var _g=gg(),VR=Lr(),yg=Object.prototype,YR=yg.hasOwnProperty,KR=yg.propertyIsEnumerable,ZR=_g((function(){return arguments})())?_g:function(t){return VR(t)&&YR.call(t,"callee")&&!KR.call(t,"callee")};mg.exports=ZR});var vl=g((o4,bg)=>{"use strict";var QR=Array.isArray;bg.exports=QR});var Sg=g((a4,wg)=>{"use strict";function XR(){return!1}wg.exports=XR});var Tg=g((ki,Nr)=>{"use strict";var JR=Pr(),eA=Sg(),xg=typeof ki=="object"&&ki&&!ki.nodeType&&ki,Eg=xg&&typeof Nr=="object"&&Nr&&!Nr.nodeType&&Nr,tA=Eg&&Eg.exports===xg,vg=tA?JR.Buffer:void 0,rA=vg?vg.isBuffer:void 0,iA=rA||eA;Nr.exports=iA});var Ag=g((l4,Rg)=>{"use strict";var nA=Li(),sA=wl(),oA=Lr(),aA="[object Arguments]",lA="[object Array]",uA="[object Boolean]",fA="[object Date]",cA="[object Error]",hA="[object Function]",dA="[object Map]",pA="[object Number]",gA="[object Object]",_A="[object RegExp]",yA="[object Set]",mA="[object String]",bA="[object WeakMap]",wA="[object ArrayBuffer]",SA="[object DataView]",EA="[object Float32Array]",vA="[object Float64Array]",xA="[object Int8Array]",TA="[object Int16Array]",RA="[object Int32Array]",AA="[object Uint8Array]",OA="[object Uint8ClampedArray]",IA="[object Uint16Array]",DA="[object Uint32Array]",X={};X[EA]=X[vA]=X[xA]=X[TA]=X[RA]=X[AA]=X[OA]=X[IA]=X[DA]=!0;X[aA]=X[lA]=X[wA]=X[uA]=X[SA]=X[fA]=X[cA]=X[hA]=X[dA]=X[pA]=X[gA]=X[_A]=X[yA]=X[mA]=X[bA]=!1;function PA(t){return oA(t)&&sA(t.length)&&!!X[nA(t)]}Rg.exports=PA});var xl=g((u4,Og)=>{"use strict";function LA(t){return function(e){return t(e)}}Og.exports=LA});var Dg=g((Mi,Cr)=>{"use strict";var NA=yl(),Ig=typeof Mi=="object"&&Mi&&!Mi.nodeType&&Mi,Fi=Ig&&typeof Cr=="object"&&Cr&&!Cr.nodeType&&Cr,CA=Fi&&Fi.exports===Ig,Tl=CA&&NA.process,kA=(function(){try{var t=Fi&&Fi.require&&Fi.require("util").types;return t||Tl&&Tl.binding&&Tl.binding("util")}catch{}})();Cr.exports=kA});var Cg=g((f4,Ng)=>{"use strict";var MA=Ag(),FA=xl(),Pg=Dg(),Lg=Pg&&Pg.isTypedArray,qA=Lg?FA(Lg):MA;Ng.exports=qA});var Mg=g((c4,kg)=>{"use strict";var jA=hg(),BA=El(),UA=vl(),WA=Tg(),zA=Sl(),GA=Cg(),$A=Object.prototype,HA=$A.hasOwnProperty;function VA(t,e){var r=UA(t),i=!r&&BA(t),n=!r&&!i&&WA(t),s=!r&&!i&&!n&&GA(t),o=r||i||n||s,a=o?jA(t.length,String):[],l=a.length;for(var u in t)(e||HA.call(t,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||zA(u,l)))&&a.push(u);return a}kg.exports=VA});var qg=g((h4,Fg)=>{"use strict";var YA=Object.prototype;function KA(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||YA;return t===r}Fg.exports=KA});var Bg=g((d4,jg)=>{"use strict";function ZA(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}jg.exports=ZA});var Wg=g((p4,Ug)=>{"use strict";var QA=Ni(),XA=qg(),JA=Bg(),eO=Object.prototype,tO=eO.hasOwnProperty;function rO(t){if(!QA(t))return JA(t);var e=XA(t),r=[];for(var i in t)i=="constructor"&&(e||!tO.call(t,i))||r.push(i);return r}Ug.exports=rO});var Gg=g((g4,zg)=>{"use strict";var iO=Mg(),nO=Wg(),sO=Ss();function oO(t){return sO(t)?iO(t,!0):nO(t)}zg.exports=oO});var Vg=g((_4,Hg)=>{"use strict";var aO=bs(),lO=ws(),uO=fg(),fO=Gg(),$g=Object.prototype,cO=$g.hasOwnProperty,hO=aO(function(t,e){t=Object(t);var r=-1,i=e.length,n=i>2?e[2]:void 0;for(n&&uO(e[0],e[1],n)&&(i=1);++r<i;)for(var s=e[r],o=fO(s),a=-1,l=o.length;++a<l;){var u=o[a],f=t[u];(f===void 0||lO(f,$g[u])&&!cO.call(t,u))&&(t[u]=s[u])}return t});Hg.exports=hO});var ie=g((y4,Yg)=>{"use strict";var Rl=class extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let r="";for(let i=0;i<e.length;i++)r+=` ${e[i].stack}
|
|
8
|
+
`;super(r),this.name="AggregateError",this.errors=e}};Yg.exports={AggregateError:Rl,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var Al=g((m4,Kg)=>{"use strict";Kg.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let n=e.shift();return i==="f"?n.toFixed(6):i==="j"?JSON.stringify(n):i==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var xe=g((b4,Xg)=>{"use strict";var{format:dO,inspect:Es}=Al(),{AggregateError:pO}=ie(),gO=globalThis.AggregateError||pO,_O=Symbol("kIsNodeError"),yO=["string","function","number","object","Function","Object","boolean","bigint","symbol"],mO=/^([A-Z][a-z0-9]*)+$/,bO="__node_internal_",vs={};function er(t,e){if(!t)throw new vs.ERR_INTERNAL_ASSERTION(e)}function Zg(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function wO(t,e,r){if(typeof e=="function")return er(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return er(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:dO(e,...r)}function we(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(wO(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[_O]=!0,vs[t]=i}function Qg(t){let e=bO+t.name;return Object.defineProperty(t,"name",{value:e}),t}function SO(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new gO([e,t],e.message);return r.code=e.code,r}return t||e}var Ol=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new vs.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};we("ERR_ASSERTION","%s",Error);we("ERR_INVALID_ARG_TYPE",(t,e,r)=>{er(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let i="The ";t.endsWith(" argument")?i+=`${t} `:i+=`"${t}" ${t.includes(".")?"property":"argument"} `,i+="must be ";let n=[],s=[],o=[];for(let l of e)er(typeof l=="string","All expected entries have to be of type string"),yO.includes(l)?n.push(l.toLowerCase()):mO.test(l)?s.push(l):(er(l!=="object",'The value "object" should be written as "Object"'),o.push(l));if(s.length>0){let l=n.indexOf("object");l!==-1&&(n.splice(n,l,1),s.push("Object"))}if(n.length>0){switch(n.length){case 1:i+=`of type ${n[0]}`;break;case 2:i+=`one of type ${n[0]} or ${n[1]}`;break;default:{let l=n.pop();i+=`one of type ${n.join(", ")}, or ${l}`}}(s.length>0||o.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();i+=`an instance of ${s.join(", ")}, or ${l}`}}o.length>0&&(i+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(i+="an "),i+=`${o[0]}`;break;case 2:i+=`one of ${o[0]} or ${o[1]}`;break;default:{let l=o.pop();i+=`one of ${o.join(", ")}, or ${l}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)i+=`. Received an instance of ${r.constructor.name}`;else{let l=Es(r,{depth:-1});i+=`. Received ${l}`}}else{let l=Es(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),i+=`. Received type ${typeof r} (${l})`}return i},TypeError);we("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let i=Es(e);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${i}`},TypeError);we("ERR_INVALID_RETURN_VALUE",(t,e,r)=>{var i;let n=r!=null&&(i=r.constructor)!==null&&i!==void 0&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the "${e}" function but got ${n}.`},TypeError);we("ERR_MISSING_ARGS",(...t)=>{er(t.length>0,"At least one arg needs to be specified");let e,r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(i=>`"${i}"`).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{let i=t.pop();e+=`The ${t.join(", ")}, and ${i} arguments`}break}return`${e} must be specified`},TypeError);we("ERR_OUT_OF_RANGE",(t,e,r)=>{er(e,'Missing "range" argument');let i;if(Number.isInteger(r)&&Math.abs(r)>2**32)i=Zg(String(r));else if(typeof r=="bigint"){i=String(r);let n=BigInt(2)**BigInt(32);(r>n||r<-n)&&(i=Zg(i)),i+="n"}else i=Es(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${i}`},RangeError);we("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);we("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);we("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);we("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);we("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);we("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);we("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);we("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);we("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);we("ERR_STREAM_WRITE_AFTER_END","write after end",Error);we("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);Xg.exports={AbortError:Ol,aggregateTwoErrors:Qg(SO),hideStackFrames:Qg,codes:vs}});var l_=g((Bi,ji)=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});var n_=new WeakMap,Il=new WeakMap;function J(t){let e=n_.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}function Jg(t){if(t.passiveListener!=null){typeof console<"u"&&typeof console.error=="function"&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener);return}t.event.cancelable&&(t.canceled=!0,typeof t.event.preventDefault=="function"&&t.event.preventDefault())}function kr(t,e){n_.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:e.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let r=Object.keys(e);for(let i=0;i<r.length;++i){let n=r[i];n in this||Object.defineProperty(this,n,s_(n))}}kr.prototype={get type(){return J(this).event.type},get target(){return J(this).eventTarget},get currentTarget(){return J(this).currentTarget},composedPath(){let t=J(this).currentTarget;return t==null?[]:[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return J(this).eventPhase},stopPropagation(){let t=J(this);t.stopped=!0,typeof t.event.stopPropagation=="function"&&t.event.stopPropagation()},stopImmediatePropagation(){let t=J(this);t.stopped=!0,t.immediateStopped=!0,typeof t.event.stopImmediatePropagation=="function"&&t.event.stopImmediatePropagation()},get bubbles(){return!!J(this).event.bubbles},get cancelable(){return!!J(this).event.cancelable},preventDefault(){Jg(J(this))},get defaultPrevented(){return J(this).canceled},get composed(){return!!J(this).event.composed},get timeStamp(){return J(this).timeStamp},get srcElement(){return J(this).eventTarget},get cancelBubble(){return J(this).stopped},set cancelBubble(t){if(!t)return;let e=J(this);e.stopped=!0,typeof e.event.cancelBubble=="boolean"&&(e.event.cancelBubble=!0)},get returnValue(){return!J(this).canceled},set returnValue(t){t||Jg(J(this))},initEvent(){}};Object.defineProperty(kr.prototype,"constructor",{value:kr,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(kr.prototype,window.Event.prototype),Il.set(window.Event.prototype,kr));function s_(t){return{get(){return J(this).event[t]},set(e){J(this).event[t]=e},configurable:!0,enumerable:!0}}function EO(t){return{value(){let e=J(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function vO(t,e){let r=Object.keys(e);if(r.length===0)return t;function i(n,s){t.call(this,n,s)}i.prototype=Object.create(t.prototype,{constructor:{value:i,configurable:!0,writable:!0}});for(let n=0;n<r.length;++n){let s=r[n];if(!(s in t.prototype)){let a=typeof Object.getOwnPropertyDescriptor(e,s).value=="function";Object.defineProperty(i.prototype,s,a?EO(s):s_(s))}}return i}function o_(t){if(t==null||t===Object.prototype)return kr;let e=Il.get(t);return e==null&&(e=vO(o_(Object.getPrototypeOf(t)),t),Il.set(t,e)),e}function xO(t,e){let r=o_(Object.getPrototypeOf(e));return new r(t,e)}function TO(t){return J(t).immediateStopped}function RO(t,e){J(t).eventPhase=e}function AO(t,e){J(t).currentTarget=e}function e_(t,e){J(t).passiveListener=e}var a_=new WeakMap,t_=1,r_=2,xs=3;function Ts(t){return t!==null&&typeof t=="object"}function qi(t){let e=a_.get(t);if(e==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function OO(t){return{get(){let r=qi(this).get(t);for(;r!=null;){if(r.listenerType===xs)return r.listener;r=r.next}return null},set(e){typeof e!="function"&&!Ts(e)&&(e=null);let r=qi(this),i=null,n=r.get(t);for(;n!=null;)n.listenerType===xs?i!==null?i.next=n.next:n.next!==null?r.set(t,n.next):r.delete(t):i=n,n=n.next;if(e!==null){let s={listener:e,listenerType:xs,passive:!1,once:!1,next:null};i===null?r.set(t,s):i.next=s}},configurable:!0,enumerable:!0}}function Dl(t,e){Object.defineProperty(t,`on${e}`,OO(e))}function i_(t){function e(){He.call(this)}e.prototype=Object.create(He.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(let r=0;r<t.length;++r)Dl(e.prototype,t[r]);return e}function He(){if(this instanceof He){a_.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return i_(arguments[0]);if(arguments.length>0){let t=new Array(arguments.length);for(let e=0;e<arguments.length;++e)t[e]=arguments[e];return i_(t)}throw new TypeError("Cannot call a class as a function")}He.prototype={addEventListener(t,e,r){if(e==null)return;if(typeof e!="function"&&!Ts(e))throw new TypeError("'listener' should be a function or an object.");let i=qi(this),n=Ts(r),o=(n?!!r.capture:!!r)?t_:r_,a={listener:e,listenerType:o,passive:n&&!!r.passive,once:n&&!!r.once,next:null},l=i.get(t);if(l===void 0){i.set(t,a);return}let u=null;for(;l!=null;){if(l.listener===e&&l.listenerType===o)return;u=l,l=l.next}u.next=a},removeEventListener(t,e,r){if(e==null)return;let i=qi(this),s=(Ts(r)?!!r.capture:!!r)?t_:r_,o=null,a=i.get(t);for(;a!=null;){if(a.listener===e&&a.listenerType===s){o!==null?o.next=a.next:a.next!==null?i.set(t,a.next):i.delete(t);return}o=a,a=a.next}},dispatchEvent(t){if(t==null||typeof t.type!="string")throw new TypeError('"event.type" should be a string.');let e=qi(this),r=t.type,i=e.get(r);if(i==null)return!0;let n=xO(this,t),s=null;for(;i!=null;){if(i.once?s!==null?s.next=i.next:i.next!==null?e.set(r,i.next):e.delete(r):s=i,e_(n,i.passive?i.listener:null),typeof i.listener=="function")try{i.listener.call(this,n)}catch(o){typeof console<"u"&&typeof console.error=="function"&&console.error(o)}else i.listenerType!==xs&&typeof i.listener.handleEvent=="function"&&i.listener.handleEvent(n);if(TO(n))break;i=i.next}return e_(n,null),RO(n,0),AO(n,null),!n.defaultPrevented}};Object.defineProperty(He.prototype,"constructor",{value:He,configurable:!0,writable:!0});typeof window<"u"&&typeof window.EventTarget<"u"&&Object.setPrototypeOf(He.prototype,window.EventTarget.prototype);Bi.defineEventAttribute=Dl;Bi.EventTarget=He;Bi.default=He;ji.exports=He;ji.exports.EventTarget=ji.exports.default=He;ji.exports.defineEventAttribute=Dl});var Mr=g((Wi,Ui)=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});var Pl=l_(),Pt=class extends Pl.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=Rs.get(this);if(typeof e!="boolean")throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return e}};Pl.defineEventAttribute(Pt.prototype,"abort");function IO(){let t=Object.create(Pt.prototype);return Pl.EventTarget.call(t),Rs.set(t,!1),t}function DO(t){Rs.get(t)===!1&&(Rs.set(t,!0),t.dispatchEvent({type:"abort"}))}var Rs=new WeakMap;Object.defineProperties(Pt.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Pt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var Lt=class{constructor(){f_.set(this,IO())}get signal(){return u_(this)}abort(){DO(u_(this))}},f_=new WeakMap;function u_(t){let e=f_.get(t);if(e==null)throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${t===null?"null":typeof t}`);return e}Object.defineProperties(Lt.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Lt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Wi.AbortController=Lt;Wi.AbortSignal=Pt;Wi.default=Lt;Ui.exports=Lt;Ui.exports.AbortController=Ui.exports.default=Lt;Ui.exports.AbortSignal=Pt});var Oe=g((w4,Nl)=>{"use strict";var PO=P("buffer"),{format:LO,inspect:NO}=Al(),{codes:{ERR_INVALID_ARG_TYPE:Ll}}=xe(),{kResistStopPropagation:CO,AggregateError:kO,SymbolDispose:MO}=ie(),FO=globalThis.AbortSignal||Mr().AbortSignal,qO=globalThis.AbortController||Mr().AbortController,jO=Object.getPrototypeOf(async function(){}).constructor,c_=globalThis.Blob||PO.Blob,BO=typeof c_<"u"?function(e){return e instanceof c_}:function(e){return!1},h_=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Ll(e,"AbortSignal",t)},UO=(t,e)=>{if(typeof t!="function")throw new Ll(e,"Function",t)};Nl.exports={AggregateError:kO,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((i,...n)=>i?r(i):e(...n))})},debuglog(){return function(){}},format:LO,inspect:NO,types:{isAsyncFunction(t){return t instanceof jO},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:BO,deprecate(t,e){return t},addAbortListener:P("events").addAbortListener||function(e,r){if(e===void 0)throw new Ll("signal","AbortSignal",e);h_(e,"signal"),UO(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[CO]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[MO](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:FO.any||function(e){if(e.length===1)return e[0];let r=new qO,i=()=>r.abort();return e.forEach(n=>{h_(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};Nl.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var qr=g((S4,E_)=>{"use strict";var{ArrayIsArray:kl,ArrayPrototypeIncludes:__,ArrayPrototypeJoin:y_,ArrayPrototypeMap:WO,NumberIsInteger:Ml,NumberIsNaN:zO,NumberMAX_SAFE_INTEGER:GO,NumberMIN_SAFE_INTEGER:$O,NumberParseInt:HO,ObjectPrototypeHasOwnProperty:VO,RegExpPrototypeExec:m_,String:YO,StringPrototypeToUpperCase:KO,StringPrototypeTrim:ZO}=ie(),{hideStackFrames:je,codes:{ERR_SOCKET_BAD_PORT:QO,ERR_INVALID_ARG_TYPE:Te,ERR_INVALID_ARG_VALUE:Fr,ERR_OUT_OF_RANGE:tr,ERR_UNKNOWN_SIGNAL:d_}}=xe(),{normalizeEncoding:XO}=Oe(),{isAsyncFunction:JO,isArrayBufferView:eI}=Oe().types,p_={};function tI(t){return t===(t|0)}function rI(t){return t===t>>>0}var iI=/^[0-7]+$/,nI="must be a 32-bit unsigned integer or an octal string";function sI(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(m_(iI,t)===null)throw new Fr(e,t,nI);t=HO(t,8)}return b_(t,e),t}var oI=je((t,e,r=$O,i=GO)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Ml(t))throw new tr(e,"an integer",t);if(t<r||t>i)throw new tr(e,`>= ${r} && <= ${i}`,t)}),aI=je((t,e,r=-2147483648,i=2147483647)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Ml(t))throw new tr(e,"an integer",t);if(t<r||t>i)throw new tr(e,`>= ${r} && <= ${i}`,t)}),b_=je((t,e,r=!1)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Ml(t))throw new tr(e,"an integer",t);let i=r?1:0,n=4294967295;if(t<i||t>n)throw new tr(e,`>= ${i} && <= ${n}`,t)});function Fl(t,e){if(typeof t!="string")throw new Te(e,"string",t)}function lI(t,e,r=void 0,i){if(typeof t!="number")throw new Te(e,"number",t);if(r!=null&&t<r||i!=null&&t>i||(r!=null||i!=null)&&zO(t))throw new tr(e,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,t)}var uI=je((t,e,r)=>{if(!__(r,t)){let n="must be one of: "+y_(WO(r,s=>typeof s=="string"?`'${s}'`:YO(s)),", ");throw new Fr(e,t,n)}});function w_(t,e){if(typeof t!="boolean")throw new Te(e,"boolean",t)}function Cl(t,e,r){return t==null||!VO(t,e)?r:t[e]}var fI=je((t,e,r=null)=>{let i=Cl(r,"allowArray",!1),n=Cl(r,"allowFunction",!1);if(!Cl(r,"nullable",!1)&&t===null||!i&&kl(t)||typeof t!="object"&&(!n||typeof t!="function"))throw new Te(e,"Object",t)}),cI=je((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new Te(e,"a dictionary",t)}),As=je((t,e,r=0)=>{if(!kl(t))throw new Te(e,"Array",t);if(t.length<r){let i=`must be longer than ${r}`;throw new Fr(e,t,i)}});function hI(t,e){As(t,e);for(let r=0;r<t.length;r++)Fl(t[r],`${e}[${r}]`)}function dI(t,e){As(t,e);for(let r=0;r<t.length;r++)w_(t[r],`${e}[${r}]`)}function pI(t,e){As(t,e);for(let r=0;r<t.length;r++){let i=t[r],n=`${e}[${r}]`;if(i==null)throw new Te(n,"AbortSignal",i);S_(i,n)}}function gI(t,e="signal"){if(Fl(t,e),p_[t]===void 0)throw p_[KO(t)]!==void 0?new d_(t+" (signals must use all capital letters)"):new d_(t)}var _I=je((t,e="buffer")=>{if(!eI(t))throw new Te(e,["Buffer","TypedArray","DataView"],t)});function yI(t,e){let r=XO(e),i=t.length;if(r==="hex"&&i%2!==0)throw new Fr("encoding",e,`is invalid for data of length ${i}`)}function mI(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&ZO(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new QO(e,t,r);return t|0}var S_=je((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Te(e,"AbortSignal",t)}),bI=je((t,e)=>{if(typeof t!="function")throw new Te(e,"Function",t)}),wI=je((t,e)=>{if(typeof t!="function"||JO(t))throw new Te(e,"Function",t)}),SI=je((t,e)=>{if(t!==void 0)throw new Te(e,"undefined",t)});function EI(t,e,r){if(!__(r,t))throw new Te(e,`('${y_(r,"|")}')`,t)}var vI=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function g_(t,e){if(typeof t>"u"||!m_(vI,t))throw new Fr(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function xI(t){if(typeof t=="string")return g_(t,"hints"),t;if(kl(t)){let e=t.length,r="";if(e===0)return r;for(let i=0;i<e;i++){let n=t[i];g_(n,"hints"),r+=n,i!==e-1&&(r+=", ")}return r}throw new Fr("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}E_.exports={isInt32:tI,isUint32:rI,parseFileMode:sI,validateArray:As,validateStringArray:hI,validateBooleanArray:dI,validateAbortSignalArray:pI,validateBoolean:w_,validateBuffer:_I,validateDictionary:cI,validateEncoding:yI,validateFunction:bI,validateInt32:aI,validateInteger:oI,validateNumber:lI,validateObject:fI,validateOneOf:uI,validatePlainFunction:wI,validatePort:mI,validateSignalName:gI,validateString:Fl,validateUint32:b_,validateUndefined:SI,validateUnion:EI,validateAbortSignal:S_,validateLinkHeaderValue:xI}});var Nt=g((E4,v_)=>{"use strict";v_.exports=global.process});var rt=g((v4,q_)=>{"use strict";var{SymbolAsyncIterator:x_,SymbolIterator:T_,SymbolFor:rr}=ie(),R_=rr("nodejs.stream.destroyed"),A_=rr("nodejs.stream.errored"),ql=rr("nodejs.stream.readable"),jl=rr("nodejs.stream.writable"),O_=rr("nodejs.stream.disturbed"),TI=rr("nodejs.webstream.isClosedPromise"),RI=rr("nodejs.webstream.controllerErrorFunction");function Os(t,e=!1){var r;return!!(t&&typeof t.pipe=="function"&&typeof t.on=="function"&&(!e||typeof t.pause=="function"&&typeof t.resume=="function")&&(!t._writableState||((r=t._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!t._writableState||t._readableState))}function Is(t){var e;return!!(t&&typeof t.write=="function"&&typeof t.on=="function"&&(!t._readableState||((e=t._writableState)===null||e===void 0?void 0:e.writable)!==!1))}function AI(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}function tt(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function I_(t){return!!(t&&!tt(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function D_(t){return!!(t&&!tt(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function P_(t){return!!(t&&!tt(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function OI(t){return I_(t)||D_(t)||P_(t)}function II(t,e){return t==null?!1:e===!0?typeof t[x_]=="function":e===!1?typeof t[T_]=="function":typeof t[x_]=="function"||typeof t[T_]=="function"}function Ds(t){if(!tt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!!(t.destroyed||t[R_]||i!=null&&i.destroyed)}function L_(t){if(!Is(t))return null;if(t.writableEnded===!0)return!0;let e=t._writableState;return e!=null&&e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function DI(t,e){if(!Is(t))return null;if(t.writableFinished===!0)return!0;let r=t._writableState;return r!=null&&r.errored?!1:typeof r?.finished!="boolean"?null:!!(r.finished||e===!1&&r.ended===!0&&r.length===0)}function PI(t){if(!Os(t))return null;if(t.readableEnded===!0)return!0;let e=t._readableState;return!e||e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function N_(t,e){if(!Os(t))return null;let r=t._readableState;return r!=null&&r.errored?!1:typeof r?.endEmitted!="boolean"?null:!!(r.endEmitted||e===!1&&r.ended===!0&&r.length===0)}function C_(t){return t&&t[ql]!=null?t[ql]:typeof t?.readable!="boolean"?null:Ds(t)?!1:Os(t)&&t.readable&&!N_(t)}function k_(t){return t&&t[jl]!=null?t[jl]:typeof t?.writable!="boolean"?null:Ds(t)?!1:Is(t)&&t.writable&&!L_(t)}function LI(t,e){return tt(t)?Ds(t)?!0:!(e?.readable!==!1&&C_(t)||e?.writable!==!1&&k_(t)):null}function NI(t){var e,r;return tt(t)?t.writableErrored?t.writableErrored:(e=(r=t._writableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function CI(t){var e,r;return tt(t)?t.readableErrored?t.readableErrored:(e=(r=t._readableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function kI(t){if(!tt(t))return null;if(typeof t.closed=="boolean")return t.closed;let e=t._writableState,r=t._readableState;return typeof e?.closed=="boolean"||typeof r?.closed=="boolean"?e?.closed||r?.closed:typeof t._closed=="boolean"&&M_(t)?t._closed:null}function M_(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function F_(t){return typeof t._sent100=="boolean"&&M_(t)}function MI(t){var e;return typeof t._consuming=="boolean"&&typeof t._dumped=="boolean"&&((e=t.req)===null||e===void 0?void 0:e.upgradeOrConnect)===void 0}function FI(t){if(!tt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!i&&F_(t)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function qI(t){var e;return!!(t&&((e=t[O_])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function jI(t){var e,r,i,n,s,o,a,l,u,f;return!!(t&&((e=(r=(i=(n=(s=(o=t[A_])!==null&&o!==void 0?o:t.readableErrored)!==null&&s!==void 0?s:t.writableErrored)!==null&&n!==void 0?n:(a=t._readableState)===null||a===void 0?void 0:a.errorEmitted)!==null&&i!==void 0?i:(l=t._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&r!==void 0?r:(u=t._readableState)===null||u===void 0?void 0:u.errored)!==null&&e!==void 0?e:!((f=t._writableState)===null||f===void 0)&&f.errored))}q_.exports={isDestroyed:Ds,kIsDestroyed:R_,isDisturbed:qI,kIsDisturbed:O_,isErrored:jI,kIsErrored:A_,isReadable:C_,kIsReadable:ql,kIsClosedPromise:TI,kControllerErrorFunction:RI,kIsWritable:jl,isClosed:kI,isDuplexNodeStream:AI,isFinished:LI,isIterable:II,isReadableNodeStream:Os,isReadableStream:I_,isReadableEnded:PI,isReadableFinished:N_,isReadableErrored:CI,isNodeStream:tt,isWebStream:OI,isWritable:k_,isWritableNodeStream:Is,isWritableStream:D_,isWritableEnded:L_,isWritableFinished:DI,isWritableErrored:NI,isServerRequest:MI,isServerResponse:F_,willEmitClose:FI,isTransformStream:P_}});var yt=g((x4,Gl)=>{"use strict";var Ct=Nt(),{AbortError:V_,codes:BI}=xe(),{ERR_INVALID_ARG_TYPE:UI,ERR_STREAM_PREMATURE_CLOSE:j_}=BI,{kEmptyObject:Ul,once:Wl}=Oe(),{validateAbortSignal:WI,validateFunction:zI,validateObject:GI,validateBoolean:$I}=qr(),{Promise:HI,PromisePrototypeThen:VI,SymbolDispose:Y_}=ie(),{isClosed:YI,isReadable:B_,isReadableNodeStream:Bl,isReadableStream:KI,isReadableFinished:U_,isReadableErrored:W_,isWritable:z_,isWritableNodeStream:G_,isWritableStream:ZI,isWritableFinished:$_,isWritableErrored:H_,isNodeStream:QI,willEmitClose:XI,kIsClosedPromise:JI}=rt(),jr;function eD(t){return t.setHeader&&typeof t.abort=="function"}var zl=()=>{};function K_(t,e,r){var i,n;if(arguments.length===2?(r=e,e=Ul):e==null?e=Ul:GI(e,"options"),zI(r,"callback"),WI(e.signal,"options.signal"),r=Wl(r),KI(t)||ZI(t))return tD(t,e,r);if(!QI(t))throw new UI("stream",["ReadableStream","WritableStream","Stream"],t);let s=(i=e.readable)!==null&&i!==void 0?i:Bl(t),o=(n=e.writable)!==null&&n!==void 0?n:G_(t),a=t._writableState,l=t._readableState,u=()=>{t.writable||h()},f=XI(t)&&Bl(t)===s&&G_(t)===o,c=$_(t,!1),h=()=>{c=!0,t.destroyed&&(f=!1),!(f&&(!t.readable||s))&&(!s||d)&&r.call(t)},d=U_(t,!1),m=()=>{d=!0,t.destroyed&&(f=!1),!(f&&(!t.writable||o))&&(!o||c)&&r.call(t)},p=T=>{r.call(t,T)},v=YI(t),y=()=>{v=!0;let T=H_(t)||W_(t);if(T&&typeof T!="boolean")return r.call(t,T);if(s&&!d&&Bl(t,!0)&&!U_(t,!1))return r.call(t,new j_);if(o&&!c&&!$_(t,!1))return r.call(t,new j_);r.call(t)},b=()=>{v=!0;let T=H_(t)||W_(t);if(T&&typeof T!="boolean")return r.call(t,T);r.call(t)},E=()=>{t.req.on("finish",h)};eD(t)?(t.on("complete",h),f||t.on("abort",y),t.req?E():t.on("request",E)):o&&!a&&(t.on("end",u),t.on("close",u)),!f&&typeof t.aborted=="boolean"&&t.on("aborted",y),t.on("end",m),t.on("finish",h),e.error!==!1&&t.on("error",p),t.on("close",y),v?Ct.nextTick(y):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?f||Ct.nextTick(b):(!s&&(!f||B_(t))&&(c||z_(t)===!1)||!o&&(!f||z_(t))&&(d||B_(t)===!1)||l&&t.req&&t.aborted)&&Ct.nextTick(b);let S=()=>{r=zl,t.removeListener("aborted",y),t.removeListener("complete",h),t.removeListener("abort",y),t.removeListener("request",E),t.req&&t.req.removeListener("finish",h),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",h),t.removeListener("end",m),t.removeListener("error",p),t.removeListener("close",y)};if(e.signal&&!v){let T=()=>{let D=r;S(),D.call(t,new V_(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)Ct.nextTick(T);else{jr=jr||Oe().addAbortListener;let D=jr(e.signal,T),x=r;r=Wl((...O)=>{D[Y_](),x.apply(t,O)})}}return S}function tD(t,e,r){let i=!1,n=zl;if(e.signal)if(n=()=>{i=!0,r.call(t,new V_(void 0,{cause:e.signal.reason}))},e.signal.aborted)Ct.nextTick(n);else{jr=jr||Oe().addAbortListener;let o=jr(e.signal,n),a=r;r=Wl((...l)=>{o[Y_](),a.apply(t,l)})}let s=(...o)=>{i||Ct.nextTick(()=>r.apply(t,o))};return VI(t[JI].promise,s,s),zl}function rD(t,e){var r;let i=!1;return e===null&&(e=Ul),(r=e)!==null&&r!==void 0&&r.cleanup&&($I(e.cleanup,"cleanup"),i=e.cleanup),new HI((n,s)=>{let o=K_(t,e,a=>{i&&o(),a?s(a):n()})})}Gl.exports=K_;Gl.exports.finished=rD});var ir=g((T4,iy)=>{"use strict";var it=Nt(),{aggregateTwoErrors:iD,codes:{ERR_MULTIPLE_CALLBACK:nD},AbortError:sD}=xe(),{Symbol:X_}=ie(),{kIsDestroyed:oD,isDestroyed:aD,isFinished:lD,isServerRequest:uD}=rt(),J_=X_("kDestroy"),$l=X_("kConstruct");function ey(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function fD(t,e){let r=this._readableState,i=this._writableState,n=i||r;return i!=null&&i.destroyed||r!=null&&r.destroyed?(typeof e=="function"&&e(),this):(ey(t,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),n.constructed?Z_(this,t,e):this.once(J_,function(s){Z_(this,iD(s,t),e)}),this)}function Z_(t,e,r){let i=!1;function n(s){if(i)return;i=!0;let o=t._readableState,a=t._writableState;ey(s,a,o),a&&(a.closed=!0),o&&(o.closed=!0),typeof r=="function"&&r(s),s?it.nextTick(cD,t,s):it.nextTick(ty,t)}try{t._destroy(e||null,n)}catch(s){n(s)}}function cD(t,e){Hl(t,e),ty(t)}function ty(t){let e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&t.emit("close")}function Hl(t,e){let r=t._readableState,i=t._writableState;i!=null&&i.errorEmitted||r!=null&&r.errorEmitted||(i&&(i.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function hD(){let t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function Vl(t,e,r){let i=t._readableState,n=t._writableState;if(n!=null&&n.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||n!=null&&n.autoDestroy?t.destroy(e):e&&(e.stack,n&&!n.errored&&(n.errored=e),i&&!i.errored&&(i.errored=e),r?it.nextTick(Hl,t,e):Hl(t,e))}function dD(t,e){if(typeof t._construct!="function")return;let r=t._readableState,i=t._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),t.once($l,e),!(t.listenerCount($l)>1)&&it.nextTick(pD,t)}function pD(t){let e=!1;function r(i){if(e){Vl(t,i??new nD);return}e=!0;let n=t._readableState,s=t._writableState,o=s||n;n&&(n.constructed=!0),s&&(s.constructed=!0),o.destroyed?t.emit(J_,i):i?Vl(t,i,!0):it.nextTick(gD,t)}try{t._construct(i=>{it.nextTick(r,i)})}catch(i){it.nextTick(r,i)}}function gD(t){t.emit($l)}function Q_(t){return t?.setHeader&&typeof t.abort=="function"}function ry(t){t.emit("close")}function _D(t,e){t.emit("error",e),it.nextTick(ry,t)}function yD(t,e){!t||aD(t)||(!e&&!lD(t)&&(e=new sD),uD(t)?(t.socket=null,t.destroy(e)):Q_(t)?t.abort():Q_(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?it.nextTick(_D,t,e):it.nextTick(ry,t),t.destroyed||(t[oD]=!0))}iy.exports={construct:dD,destroyer:yD,destroy:fD,undestroy:hD,errorOrDestroy:Vl}});var Ns=g((R4,sy)=>{"use strict";var{ArrayIsArray:mD,ObjectSetPrototypeOf:ny}=ie(),{EventEmitter:Ps}=P("events");function Ls(t){Ps.call(this,t)}ny(Ls.prototype,Ps.prototype);ny(Ls,Ps);Ls.prototype.pipe=function(t,e){let r=this;function i(f){t.writable&&t.write(f)===!1&&r.pause&&r.pause()}r.on("data",i);function n(){r.readable&&r.resume&&r.resume()}t.on("drain",n),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",o),r.on("close",a));let s=!1;function o(){s||(s=!0,t.end())}function a(){s||(s=!0,typeof t.destroy=="function"&&t.destroy())}function l(f){u(),Ps.listenerCount(this,"error")===0&&this.emit("error",f)}Yl(r,"error",l),Yl(t,"error",l);function u(){r.removeListener("data",i),t.removeListener("drain",n),r.removeListener("end",o),r.removeListener("close",a),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),t.removeListener("close",u)}return r.on("end",u),r.on("close",u),t.on("close",u),t.emit("pipe",r),t};function Yl(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):mD(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}sy.exports={Stream:Ls,prependListener:Yl}});var zi=g((A4,Cs)=>{"use strict";var{SymbolDispose:bD}=ie(),{AbortError:oy,codes:wD}=xe(),{isNodeStream:ay,isWebStream:SD,kControllerErrorFunction:ED}=rt(),vD=yt(),{ERR_INVALID_ARG_TYPE:ly}=wD,Kl,xD=(t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new ly(e,"AbortSignal",t)};Cs.exports.addAbortSignal=function(e,r){if(xD(e,"signal"),!ay(r)&&!SD(r))throw new ly("stream",["ReadableStream","WritableStream","Stream"],r);return Cs.exports.addAbortSignalNoValidate(e,r)};Cs.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let r=ay(e)?()=>{e.destroy(new oy(void 0,{cause:t.reason}))}:()=>{e[ED](new oy(void 0,{cause:t.reason}))};if(t.aborted)r();else{Kl=Kl||Oe().addAbortListener;let i=Kl(t,r);vD(e,i[bD])}return e}});var cy=g((I4,fy)=>{"use strict";var{StringPrototypeSlice:uy,SymbolIterator:TD,TypedArrayPrototypeSet:ks,Uint8Array:RD}=ie(),{Buffer:Zl}=P("buffer"),{inspect:AD}=Oe();fy.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(e){let r={data:e,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let r=this.head,i=""+r.data;for(;(r=r.next)!==null;)i+=e+r.data;return i}concat(e){if(this.length===0)return Zl.alloc(0);let r=Zl.allocUnsafe(e>>>0),i=this.head,n=0;for(;i;)ks(r,i.data,n),n+=i.data.length,i=i.next;return r}consume(e,r){let i=this.head.data;if(e<i.length){let n=i.slice(0,e);return this.head.data=i.slice(e),n}return e===i.length?this.shift():r?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[TD](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let r="",i=this.head,n=0;do{let s=i.data;if(e>s.length)r+=s,e-=s.length;else{e===s.length?(r+=s,++n,i.next?this.head=i.next:this.head=this.tail=null):(r+=uy(s,0,e),this.head=i,i.data=uy(s,e));break}++n}while((i=i.next)!==null);return this.length-=n,r}_getBuffer(e){let r=Zl.allocUnsafe(e),i=e,n=this.head,s=0;do{let o=n.data;if(e>o.length)ks(r,o,i-e),e-=o.length;else{e===o.length?(ks(r,o,i-e),++s,n.next?this.head=n.next:this.head=this.tail=null):(ks(r,new RD(o.buffer,o.byteOffset,e),i-e),this.head=n,n.data=o.slice(e));break}++s}while((n=n.next)!==null);return this.length-=s,r}[Symbol.for("nodejs.util.inspect.custom")](e,r){return AD(this,{...r,depth:0,customInspect:!1})}}});var Gi=g((D4,gy)=>{"use strict";var{MathFloor:OD,NumberIsInteger:ID}=ie(),{validateInteger:DD}=qr(),{ERR_INVALID_ARG_VALUE:PD}=xe().codes,hy=16*1024,dy=16;function LD(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function py(t){return t?dy:hy}function ND(t,e){DD(e,"value",0),t?dy=e:hy=e}function CD(t,e,r,i){let n=LD(e,i,r);if(n!=null){if(!ID(n)||n<0){let s=i?`options.${r}`:"options.highWaterMark";throw new PD(s,n)}return OD(n)}return py(t.objectMode)}gy.exports={getHighWaterMark:CD,getDefaultHighWaterMark:py,setDefaultHighWaterMark:ND}});var my=g((Ql,yy)=>{"use strict";var Ms=P("buffer"),nt=Ms.Buffer;function _y(t,e){for(var r in t)e[r]=t[r]}nt.from&&nt.alloc&&nt.allocUnsafe&&nt.allocUnsafeSlow?yy.exports=Ms:(_y(Ms,Ql),Ql.Buffer=nr);function nr(t,e,r){return nt(t,e,r)}nr.prototype=Object.create(nt.prototype);_y(nt,nr);nr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return nt(t,e,r)};nr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=nt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};nr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return nt(t)};nr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Ms.SlowBuffer(t)}});var Sy=g(wy=>{"use strict";var Jl=my().Buffer,by=Jl.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function kD(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function MD(t){var e=kD(t);if(typeof e!="string"&&(Jl.isEncoding===by||!by(t)))throw new Error("Unknown encoding: "+t);return e||t}wy.StringDecoder=$i;function $i(t){this.encoding=MD(t);var e;switch(this.encoding){case"utf16le":this.text=WD,this.end=zD,e=4;break;case"utf8":this.fillLast=jD,e=4;break;case"base64":this.text=GD,this.end=$D,e=3;break;default:this.write=HD,this.end=VD;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Jl.allocUnsafe(e)}$i.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};$i.prototype.end=UD;$i.prototype.text=BD;$i.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Xl(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function FD(t,e,r){var i=e.length-1;if(i<r)return 0;var n=Xl(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=Xl(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=Xl(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function qD(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function jD(t){var e=this.lastTotal-this.lastNeed,r=qD(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function BD(t,e){var r=FD(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function UD(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function WD(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function zD(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function GD(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function $D(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function HD(t){return t.toString(this.encoding)}function VD(t){return t&&t.length?this.write(t):""}});var eu=g((L4,Ty)=>{"use strict";var Ey=Nt(),{PromisePrototypeThen:YD,SymbolAsyncIterator:vy,SymbolIterator:xy}=ie(),{Buffer:KD}=P("buffer"),{ERR_INVALID_ARG_TYPE:ZD,ERR_STREAM_NULL_VALUES:QD}=xe().codes;function XD(t,e,r){let i;if(typeof e=="string"||e instanceof KD)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let n;if(e&&e[vy])n=!0,i=e[vy]();else if(e&&e[xy])n=!1,i=e[xy]();else throw new ZD("iterable",["Iterable"],e);let s=new t({objectMode:!0,highWaterMark:1,...r}),o=!1;s._read=function(){o||(o=!0,l())},s._destroy=function(u,f){YD(a(u),()=>Ey.nextTick(f,u),c=>Ey.nextTick(f,c||u))};async function a(u){let f=u!=null,c=typeof i.throw=="function";if(f&&c){let{value:h,done:d}=await i.throw(u);if(await h,d)return}if(typeof i.return=="function"){let{value:h}=await i.return();await h}}async function l(){for(;;){try{let{value:u,done:f}=n?await i.next():i.next();if(f)s.push(null);else{let c=u&&typeof u.then=="function"?await u:u;if(c===null)throw o=!1,new QD;if(s.push(c))continue;o=!1}}catch(u){s.destroy(u)}break}}return s}Ty.exports=XD});var Vi=g((N4,zy)=>{"use strict";var Ve=Nt(),{ArrayPrototypeIndexOf:JD,NumberIsInteger:eP,NumberIsNaN:tP,NumberParseInt:rP,ObjectDefineProperties:lu,ObjectKeys:iP,ObjectSetPrototypeOf:Oy,Promise:Iy,SafeSet:nP,SymbolAsyncDispose:sP,SymbolAsyncIterator:oP,Symbol:aP}=ie();zy.exports=k;k.ReadableState=Bs;var{EventEmitter:lP}=P("events"),{Stream:kt,prependListener:uP}=Ns(),{Buffer:tu}=P("buffer"),{addAbortSignal:fP}=zi(),Dy=yt(),B=Oe().debuglog("stream",t=>{B=t}),cP=cy(),Wr=ir(),{getHighWaterMark:hP,getDefaultHighWaterMark:dP}=Gi(),{aggregateTwoErrors:Ry,codes:{ERR_INVALID_ARG_TYPE:pP,ERR_METHOD_NOT_IMPLEMENTED:gP,ERR_OUT_OF_RANGE:_P,ERR_STREAM_PUSH_AFTER_EOF:yP,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:mP},AbortError:bP}=xe(),{validateObject:wP}=qr(),sr=aP("kPaused"),{StringDecoder:Py}=Sy(),SP=eu();Oy(k.prototype,kt.prototype);Oy(k,kt);var ru=()=>{},{errorOrDestroy:Br}=Wr,Ur=1,EP=2,Ly=4,Hi=8,Ny=16,Fs=32,qs=64,Cy=128,vP=256,xP=512,TP=1024,ou=2048,au=4096,RP=8192,AP=16384,OP=32768,ky=65536,IP=1<<17,DP=1<<18;function ce(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}lu(Bs.prototype,{objectMode:ce(Ur),ended:ce(EP),endEmitted:ce(Ly),reading:ce(Hi),constructed:ce(Ny),sync:ce(Fs),needReadable:ce(qs),emittedReadable:ce(Cy),readableListening:ce(vP),resumeScheduled:ce(xP),errorEmitted:ce(TP),emitClose:ce(ou),autoDestroy:ce(au),destroyed:ce(RP),closed:ce(AP),closeEmitted:ce(OP),multiAwaitDrain:ce(ky),readingMore:ce(IP),dataEmitted:ce(DP)});function Bs(t,e,r){typeof r!="boolean"&&(r=e instanceof st()),this.state=ou|au|Ny|Fs,t&&t.objectMode&&(this.state|=Ur),r&&t&&t.readableObjectMode&&(this.state|=Ur),this.highWaterMark=t?hP(this,t,"readableHighWaterMark",r):dP(!1),this.buffer=new cP,this.length=0,this.pipes=[],this.flowing=null,this[sr]=null,t&&t.emitClose===!1&&(this.state&=~ou),t&&t.autoDestroy===!1&&(this.state&=~au),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new Py(t.encoding),this.encoding=t.encoding)}function k(t){if(!(this instanceof k))return new k(t);let e=this instanceof st();this._readableState=new Bs(t,this,e),t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&!e&&fP(t.signal,this)),kt.call(this,t),Wr.construct(this,()=>{this._readableState.needReadable&&js(this,this._readableState)})}k.prototype.destroy=Wr.destroy;k.prototype._undestroy=Wr.undestroy;k.prototype._destroy=function(t,e){e(t)};k.prototype[lP.captureRejectionSymbol]=function(t){this.destroy(t)};k.prototype[sP]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new bP,this.destroy(t)),new Iy((e,r)=>Dy(this,i=>i&&i!==t?r(i):e(null)))};k.prototype.push=function(t,e){return My(this,t,e,!1)};k.prototype.unshift=function(t,e){return My(this,t,e,!0)};function My(t,e,r,i){B("readableAddChunk",e);let n=t._readableState,s;if((n.state&Ur)===0&&(typeof e=="string"?(r=r||n.defaultEncoding,n.encoding!==r&&(i&&n.encoding?e=tu.from(e,r).toString(n.encoding):(e=tu.from(e,r),r=""))):e instanceof tu?r="":kt._isUint8Array(e)?(e=kt._uint8ArrayToBuffer(e),r=""):e!=null&&(s=new pP("chunk",["string","Buffer","Uint8Array"],e))),s)Br(t,s);else if(e===null)n.state&=~Hi,NP(t,n);else if((n.state&Ur)!==0||e&&e.length>0)if(i)if((n.state&Ly)!==0)Br(t,new mP);else{if(n.destroyed||n.errored)return!1;iu(t,n,e,!0)}else if(n.ended)Br(t,new yP);else{if(n.destroyed||n.errored)return!1;n.state&=~Hi,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?iu(t,n,e,!1):js(t,n)):iu(t,n,e,!1)}else i||(n.state&=~Hi,js(t,n));return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function iu(t,e,r,i){e.flowing&&e.length===0&&!e.sync&&t.listenerCount("data")>0?((e.state&ky)!==0?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),(e.state&qs)!==0&&Us(t)),js(t,e)}k.prototype.isPaused=function(){let t=this._readableState;return t[sr]===!0||t.flowing===!1};k.prototype.setEncoding=function(t){let e=new Py(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,i="";for(let n of r)i+=e.write(n);return r.clear(),i!==""&&r.push(i),this._readableState.length=i.length,this};var PP=1073741824;function LP(t){if(t>PP)throw new _P("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function Ay(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&Ur)!==0?1:tP(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}k.prototype.read=function(t){B("read",t),t===void 0?t=NaN:eP(t)||(t=rP(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=LP(t)),t!==0&&(e.state&=~Cy),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return B("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?nu(this):Us(this),null;if(t=Ay(t,e),t===0&&e.ended)return e.length===0&&nu(this),null;let i=(e.state&qs)!==0;if(B("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,B("length less than watermark",i)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)i=!1,B("reading, ended or constructing",i);else if(i){B("do read"),e.state|=Hi|Fs,e.length===0&&(e.state|=qs);try{this._read(e.highWaterMark)}catch(s){Br(this,s)}e.state&=~Fs,e.reading||(t=Ay(r,e))}let n;return t>0?n=Uy(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&nu(this)),n!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",n)),n};function NP(t,e){if(B("onEofChunk"),!e.ended){if(e.decoder){let r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?Us(t):(e.needReadable=!1,e.emittedReadable=!0,Fy(t))}}function Us(t){let e=t._readableState;B("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(B("emitReadable",e.flowing),e.emittedReadable=!0,Ve.nextTick(Fy,t))}function Fy(t){let e=t._readableState;B("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&!e.errored&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,jy(t)}function js(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,Ve.nextTick(CP,t,e))}function CP(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){let r=e.length;if(B("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}k.prototype._read=function(t){throw new gP("_read()")};k.prototype.pipe=function(t,e){let r=this,i=this._readableState;i.pipes.length===1&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new nP(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(t),B("pipe count=%d opts=%j",i.pipes.length,e);let s=(!e||e.end!==!1)&&t!==Ve.stdout&&t!==Ve.stderr?a:v;i.endEmitted?Ve.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(y,b){B("onunpipe"),y===r&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,f())}function a(){B("onend"),t.end()}let l,u=!1;function f(){B("cleanup"),t.removeListener("close",m),t.removeListener("finish",p),l&&t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",v),r.removeListener("data",h),u=!0,l&&i.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}function c(){u||(i.pipes.length===1&&i.pipes[0]===t?(B("false write response, pause",0),i.awaitDrainWriters=t,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(t)&&(B("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(t)),r.pause()),l||(l=kP(r,t),t.on("drain",l))}r.on("data",h);function h(y){B("ondata");let b=t.write(y);B("dest.write",b),b===!1&&c()}function d(y){if(B("onerror",y),v(),t.removeListener("error",d),t.listenerCount("error")===0){let b=t._writableState||t._readableState;b&&!b.errorEmitted?Br(t,y):t.emit("error",y)}}uP(t,"error",d);function m(){t.removeListener("finish",p),v()}t.once("close",m);function p(){B("onfinish"),t.removeListener("close",m),v()}t.once("finish",p);function v(){B("unpipe"),r.unpipe(t)}return t.emit("pipe",r),t.writableNeedDrain===!0?c():i.flowing||(B("pipe resume"),r.resume()),t};function kP(t,e){return function(){let i=t._readableState;i.awaitDrainWriters===e?(B("pipeOnDrain",1),i.awaitDrainWriters=null):i.multiAwaitDrain&&(B("pipeOnDrain",i.awaitDrainWriters.size),i.awaitDrainWriters.delete(e)),(!i.awaitDrainWriters||i.awaitDrainWriters.size===0)&&t.listenerCount("data")&&t.resume()}}k.prototype.unpipe=function(t){let e=this._readableState,r={hasUnpiped:!1};if(e.pipes.length===0)return this;if(!t){let n=e.pipes;e.pipes=[],this.pause();for(let s=0;s<n.length;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}let i=JD(e.pipes,t);return i===-1?this:(e.pipes.splice(i,1),e.pipes.length===0&&this.pause(),t.emit("unpipe",this,r),this)};k.prototype.on=function(t,e){let r=kt.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,B("on readable",i.length,i.reading),i.length?Us(this):i.reading||Ve.nextTick(MP,this)),r};k.prototype.addListener=k.prototype.on;k.prototype.removeListener=function(t,e){let r=kt.prototype.removeListener.call(this,t,e);return t==="readable"&&Ve.nextTick(qy,this),r};k.prototype.off=k.prototype.removeListener;k.prototype.removeAllListeners=function(t){let e=kt.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&Ve.nextTick(qy,this),e};function qy(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[sr]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function MP(t){B("readable nexttick read 0"),t.read(0)}k.prototype.resume=function(){let t=this._readableState;return t.flowing||(B("resume"),t.flowing=!t.readableListening,FP(this,t)),t[sr]=!1,this};function FP(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ve.nextTick(qP,t,e))}function qP(t,e){B("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),jy(t),e.flowing&&!e.reading&&t.read(0)}k.prototype.pause=function(){return B("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(B("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[sr]=!0,this};function jy(t){let e=t._readableState;for(B("flow",e.flowing);e.flowing&&t.read()!==null;);}k.prototype.wrap=function(t){let e=!1;t.on("data",i=>{!this.push(i)&&t.pause&&(e=!0,t.pause())}),t.on("end",()=>{this.push(null)}),t.on("error",i=>{Br(this,i)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=iP(t);for(let i=1;i<r.length;i++){let n=r[i];this[n]===void 0&&typeof t[n]=="function"&&(this[n]=t[n].bind(t))}return this};k.prototype[oP]=function(){return By(this)};k.prototype.iterator=function(t){return t!==void 0&&wP(t,"options"),By(this,t)};function By(t,e){typeof t.read!="function"&&(t=k.wrap(t,{objectMode:!0}));let r=jP(t,e);return r.stream=t,r}async function*jP(t,e){let r=ru;function i(o){this===t?(r(),r=ru):r=o}t.on("readable",i);let n,s=Dy(t,{writable:!1},o=>{n=o?Ry(n,o):null,r(),r=ru});try{for(;;){let o=t.destroyed?null:t.read();if(o!==null)yield o;else{if(n)throw n;if(n===null)return;await new Iy(i)}}}catch(o){throw n=Ry(n,o),n}finally{(n||e?.destroyOnReturn!==!1)&&(n===void 0||t._readableState.autoDestroy)?Wr.destroyer(t,null):(t.off("readable",i),s())}}lu(k.prototype,{readable:{__proto__:null,get(){let t=this._readableState;return!!t&&t.readable!==!1&&!t.destroyed&&!t.errorEmitted&&!t.endEmitted},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});lu(Bs.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[sr]!==!1},set(t){this[sr]=!!t}}});k._fromList=Uy;function Uy(t,e){if(e.length===0)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function nu(t){let e=t._readableState;B("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,Ve.nextTick(BP,e,t))}function BP(t,e){if(B("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&t.length===0){if(t.endEmitted=!0,e.emit("end"),e.writable&&e.allowHalfOpen===!1)Ve.nextTick(UP,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}function UP(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}k.from=function(t,e){return SP(k,t,e)};var su;function Wy(){return su===void 0&&(su={}),su}k.fromWeb=function(t,e){return Wy().newStreamReadableFromReadableStream(t,e)};k.toWeb=function(t,e){return Wy().newReadableStreamFromStreamReadable(t,e)};k.wrap=function(t,e){var r,i;return new k({objectMode:(r=(i=t.readableObjectMode)!==null&&i!==void 0?i:t.objectMode)!==null&&r!==void 0?r:!0,...e,destroy(n,s){Wr.destroyer(t,n),s(n)}}).wrap(t)}});var Hs=g((C4,tm)=>{"use strict";var or=Nt(),{ArrayPrototypeSlice:Hy,Error:WP,FunctionPrototypeSymbolHasInstance:Vy,ObjectDefineProperty:Yy,ObjectDefineProperties:zP,ObjectSetPrototypeOf:Ky,StringPrototypeToLowerCase:GP,Symbol:$P,SymbolHasInstance:HP}=ie();tm.exports=se;se.WritableState=Zi;var{EventEmitter:VP}=P("events"),Yi=Ns().Stream,{Buffer:Ws}=P("buffer"),$s=ir(),{addAbortSignal:YP}=zi(),{getHighWaterMark:KP,getDefaultHighWaterMark:ZP}=Gi(),{ERR_INVALID_ARG_TYPE:QP,ERR_METHOD_NOT_IMPLEMENTED:XP,ERR_MULTIPLE_CALLBACK:Zy,ERR_STREAM_CANNOT_PIPE:JP,ERR_STREAM_DESTROYED:Ki,ERR_STREAM_ALREADY_FINISHED:eL,ERR_STREAM_NULL_VALUES:tL,ERR_STREAM_WRITE_AFTER_END:rL,ERR_UNKNOWN_ENCODING:Qy}=xe().codes,{errorOrDestroy:zr}=$s;Ky(se.prototype,Yi.prototype);Ky(se,Yi);function cu(){}var Gr=$P("kOnFinished");function Zi(t,e,r){typeof r!="boolean"&&(r=e instanceof st()),this.objectMode=!!(t&&t.objectMode),r&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?KP(this,t,"writableHighWaterMark",r):ZP(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let i=!!(t&&t.decodeStrings===!1);this.decodeStrings=!i,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=nL.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,Gs(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||t.emitClose!==!1,this.autoDestroy=!t||t.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[Gr]=[]}function Gs(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}Zi.prototype.getBuffer=function(){return Hy(this.buffered,this.bufferedIndex)};Yy(Zi.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function se(t){let e=this instanceof st();if(!e&&!Vy(se,this))return new se(t);this._writableState=new Zi(t,this,e),t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&YP(t.signal,this)),Yi.call(this,t),$s.construct(this,()=>{let r=this._writableState;r.writing||du(this,r),pu(this,r)})}Yy(se,HP,{__proto__:null,value:function(t){return Vy(this,t)?!0:this!==se?!1:t&&t._writableState instanceof Zi}});se.prototype.pipe=function(){zr(this,new JP)};function Xy(t,e,r,i){let n=t._writableState;if(typeof r=="function")i=r,r=n.defaultEncoding;else{if(!r)r=n.defaultEncoding;else if(r!=="buffer"&&!Ws.isEncoding(r))throw new Qy(r);typeof i!="function"&&(i=cu)}if(e===null)throw new tL;if(!n.objectMode)if(typeof e=="string")n.decodeStrings!==!1&&(e=Ws.from(e,r),r="buffer");else if(e instanceof Ws)r="buffer";else if(Yi._isUint8Array(e))e=Yi._uint8ArrayToBuffer(e),r="buffer";else throw new QP("chunk",["string","Buffer","Uint8Array"],e);let s;return n.ending?s=new rL:n.destroyed&&(s=new Ki("write")),s?(or.nextTick(i,s),zr(t,s,!0),s):(n.pendingcb++,iL(t,n,e,r,i))}se.prototype.write=function(t,e,r){return Xy(this,t,e,r)===!0};se.prototype.cork=function(){this._writableState.corked++};se.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||du(this,t))};se.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=GP(e)),!Ws.isEncoding(e))throw new Qy(e);return this._writableState.defaultEncoding=e,this};function iL(t,e,r,i,n){let s=e.objectMode?1:r.length;e.length+=s;let o=e.length<e.highWaterMark;return o||(e.needDrain=!0),e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:r,encoding:i,callback:n}),e.allBuffers&&i!=="buffer"&&(e.allBuffers=!1),e.allNoop&&n!==cu&&(e.allNoop=!1)):(e.writelen=s,e.writecb=n,e.writing=!0,e.sync=!0,t._write(r,i,e.onwrite),e.sync=!1),o&&!e.errored&&!e.destroyed}function Gy(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Ki("write")):r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function $y(t,e,r,i){--e.pendingcb,i(r),hu(e),zr(t,r)}function nL(t,e){let r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function"){zr(t,new Zy);return}r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e?(e.stack,r.errored||(r.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),i?or.nextTick($y,t,r,e,n):$y(t,r,e,n)):(r.buffered.length>r.bufferedIndex&&du(t,r),i?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===n?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:n,stream:t,state:r},or.nextTick(sL,r.afterWriteTickInfo)):Jy(t,r,1,n))}function sL({stream:t,state:e,count:r,cb:i}){return e.afterWriteTickInfo=null,Jy(t,e,r,i)}function Jy(t,e,r,i){for(!e.ending&&!t.destroyed&&e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));r-- >0;)e.pendingcb--,i();e.destroyed&&hu(e),pu(t,e)}function hu(t){if(t.writing)return;for(let n=t.bufferedIndex;n<t.buffered.length;++n){var e;let{chunk:s,callback:o}=t.buffered[n],a=t.objectMode?1:s.length;t.length-=a,o((e=t.errored)!==null&&e!==void 0?e:new Ki("write"))}let r=t[Gr].splice(0);for(let n=0;n<r.length;n++){var i;r[n]((i=t.errored)!==null&&i!==void 0?i:new Ki("end"))}Gs(t)}function du(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;let{buffered:r,bufferedIndex:i,objectMode:n}=e,s=r.length-i;if(!s)return;let o=i;if(e.bufferProcessing=!0,s>1&&t._writev){e.pendingcb-=s-1;let a=e.allNoop?cu:u=>{for(let f=o;f<r.length;++f)r[f].callback(u)},l=e.allNoop&&o===0?r:Hy(r,o);l.allBuffers=e.allBuffers,Gy(t,e,!0,e.length,l,"",a),Gs(e)}else{do{let{chunk:a,encoding:l,callback:u}=r[o];r[o++]=null;let f=n?1:a.length;Gy(t,e,!1,f,a,l,u)}while(o<r.length&&!e.writing);o===r.length?Gs(e):o>256?(r.splice(0,o),e.bufferedIndex=0):e.bufferedIndex=o}e.bufferProcessing=!1}se.prototype._write=function(t,e,r){if(this._writev)this._writev([{chunk:t,encoding:e}],r);else throw new XP("_write()")};se.prototype._writev=null;se.prototype.end=function(t,e,r){let i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null);let n;if(t!=null){let s=Xy(this,t,e);s instanceof WP&&(n=s)}return i.corked&&(i.corked=1,this.uncork()),n||(!i.errored&&!i.ending?(i.ending=!0,pu(this,i,!0),i.ended=!0):i.finished?n=new eL("end"):i.destroyed&&(n=new Ki("end"))),typeof r=="function"&&(n||i.finished?or.nextTick(r,n):i[Gr].push(r)),this};function zs(t){return t.ending&&!t.destroyed&&t.constructed&&t.length===0&&!t.errored&&t.buffered.length===0&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function oL(t,e){let r=!1;function i(n){if(r){zr(t,n??Zy());return}if(r=!0,e.pendingcb--,n){let s=e[Gr].splice(0);for(let o=0;o<s.length;o++)s[o](n);zr(t,n,e.sync)}else zs(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,or.nextTick(fu,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(n){i(n)}e.sync=!1}function aL(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,oL(t,e)):(e.prefinished=!0,t.emit("prefinish")))}function pu(t,e,r){zs(e)&&(aL(t,e),e.pendingcb===0&&(r?(e.pendingcb++,or.nextTick((i,n)=>{zs(n)?fu(i,n):n.pendingcb--},t,e)):zs(e)&&(e.pendingcb++,fu(t,e))))}function fu(t,e){e.pendingcb--,e.finished=!0;let r=e[Gr].splice(0);for(let i=0;i<r.length;i++)r[i]();if(t.emit("finish"),e.autoDestroy){let i=t._readableState;(!i||i.autoDestroy&&(i.endEmitted||i.readable===!1))&&t.destroy()}}zP(se.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){let t=this._writableState;return!!t&&t.writable!==!1&&!t.destroyed&&!t.errored&&!t.ending&&!t.ended},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let t=this._writableState;return t?!t.destroyed&&!t.ending&&t.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var lL=$s.destroy;se.prototype.destroy=function(t,e){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[Gr].length)&&or.nextTick(hu,r),lL.call(this,t,e),this};se.prototype._undestroy=$s.undestroy;se.prototype._destroy=function(t,e){e(t)};se.prototype[VP.captureRejectionSymbol]=function(t){this.destroy(t)};var uu;function em(){return uu===void 0&&(uu={}),uu}se.fromWeb=function(t,e){return em().newStreamWritableFromWritableStream(t,e)};se.toWeb=function(t){return em().newWritableStreamFromStreamWritable(t)}});var _m=g((k4,gm)=>{"use strict";var gu=Nt(),uL=P("buffer"),{isReadable:fL,isWritable:cL,isIterable:rm,isNodeStream:hL,isReadableNodeStream:im,isWritableNodeStream:nm,isDuplexNodeStream:dL,isReadableStream:sm,isWritableStream:om}=rt(),am=yt(),{AbortError:dm,codes:{ERR_INVALID_ARG_TYPE:pL,ERR_INVALID_RETURN_VALUE:lm}}=xe(),{destroyer:Hr}=ir(),gL=st(),pm=Vi(),_L=Hs(),{createDeferredPromise:um}=Oe(),fm=eu(),cm=globalThis.Blob||uL.Blob,yL=typeof cm<"u"?function(e){return e instanceof cm}:function(e){return!1},mL=globalThis.AbortController||Mr().AbortController,{FunctionPrototypeCall:hm}=ie(),Mt=class extends gL{constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};gm.exports=function t(e,r){if(dL(e))return e;if(im(e))return $r({readable:e});if(nm(e))return $r({writable:e});if(hL(e))return $r({writable:!1,readable:!1});if(sm(e))return $r({readable:pm.fromWeb(e)});if(om(e))return $r({writable:_L.fromWeb(e)});if(typeof e=="function"){let{value:n,write:s,final:o,destroy:a}=bL(e);if(rm(n))return fm(Mt,n,{objectMode:!0,write:s,final:o,destroy:a});let l=n?.then;if(typeof l=="function"){let u,f=hm(l,n,c=>{if(c!=null)throw new lm("nully","body",c)},c=>{Hr(u,c)});return u=new Mt({objectMode:!0,readable:!1,write:s,final(c){o(async()=>{try{await f,gu.nextTick(c,null)}catch(h){gu.nextTick(c,h)}})},destroy:a})}throw new lm("Iterable, AsyncIterable or AsyncFunction",r,n)}if(yL(e))return t(e.arrayBuffer());if(rm(e))return fm(Mt,e,{objectMode:!0,writable:!1});if(sm(e?.readable)&&om(e?.writable))return Mt.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let n=e!=null&&e.readable?im(e?.readable)?e?.readable:t(e.readable):void 0,s=e!=null&&e.writable?nm(e?.writable)?e?.writable:t(e.writable):void 0;return $r({readable:n,writable:s})}let i=e?.then;if(typeof i=="function"){let n;return hm(i,e,s=>{s!=null&&n.push(s),n.push(null)},s=>{Hr(n,s)}),n=new Mt({objectMode:!0,writable:!1,read(){}})}throw new pL(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function bL(t){let{promise:e,resolve:r}=um(),i=new mL,n=i.signal;return{value:t((async function*(){for(;;){let o=e;e=null;let{chunk:a,done:l,cb:u}=await o;if(gu.nextTick(u),l)return;if(n.aborted)throw new dm(void 0,{cause:n.reason});({promise:e,resolve:r}=um()),yield a}})(),{signal:n}),write(o,a,l){let u=r;r=null,u({chunk:o,done:!1,cb:l})},final(o){let a=r;r=null,a({done:!0,cb:o})},destroy(o,a){i.abort(),a(o)}}}function $r(t){let e=t.readable&&typeof t.readable.read!="function"?pm.wrap(t.readable):t.readable,r=t.writable,i=!!fL(e),n=!!cL(r),s,o,a,l,u;function f(c){let h=l;l=null,h?h(c):c&&u.destroy(c)}return u=new Mt({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:i,writable:n}),n&&(am(r,c=>{n=!1,c&&Hr(e,c),f(c)}),u._write=function(c,h,d){r.write(c,h)?d():s=d},u._final=function(c){r.end(),o=c},r.on("drain",function(){if(s){let c=s;s=null,c()}}),r.on("finish",function(){if(o){let c=o;o=null,c()}})),i&&(am(e,c=>{i=!1,c&&Hr(e,c),f(c)}),e.on("readable",function(){if(a){let c=a;a=null,c()}}),e.on("end",function(){u.push(null)}),u._read=function(){for(;;){let c=e.read();if(c===null){a=u._read;return}if(!u.push(c))return}}),u._destroy=function(c,h){!c&&l!==null&&(c=new dm),a=null,s=null,o=null,l===null?h(c):(l=h,Hr(r,c),Hr(e,c))},u}});var st=g((M4,bm)=>{"use strict";var{ObjectDefineProperties:wL,ObjectGetOwnPropertyDescriptor:mt,ObjectKeys:SL,ObjectSetPrototypeOf:ym}=ie();bm.exports=Ye;var mu=Vi(),Be=Hs();ym(Ye.prototype,mu.prototype);ym(Ye,mu);{let t=SL(Be.prototype);for(let e=0;e<t.length;e++){let r=t[e];Ye.prototype[r]||(Ye.prototype[r]=Be.prototype[r])}}function Ye(t){if(!(this instanceof Ye))return new Ye(t);mu.call(this,t),Be.call(this,t),t?(this.allowHalfOpen=t.allowHalfOpen!==!1,t.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),t.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}wL(Ye.prototype,{writable:{__proto__:null,...mt(Be.prototype,"writable")},writableHighWaterMark:{__proto__:null,...mt(Be.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...mt(Be.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...mt(Be.prototype,"writableBuffer")},writableLength:{__proto__:null,...mt(Be.prototype,"writableLength")},writableFinished:{__proto__:null,...mt(Be.prototype,"writableFinished")},writableCorked:{__proto__:null,...mt(Be.prototype,"writableCorked")},writableEnded:{__proto__:null,...mt(Be.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...mt(Be.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}});var _u;function mm(){return _u===void 0&&(_u={}),_u}Ye.fromWeb=function(t,e){return mm().newStreamDuplexFromReadableWritablePair(t,e)};Ye.toWeb=function(t){return mm().newReadableWritablePairFromDuplex(t)};var yu;Ye.from=function(t){return yu||(yu=_m()),yu(t,"body")}});var Su=g((F4,Sm)=>{"use strict";var{ObjectSetPrototypeOf:wm,Symbol:EL}=ie();Sm.exports=bt;var{ERR_METHOD_NOT_IMPLEMENTED:vL}=xe().codes,wu=st(),{getHighWaterMark:xL}=Gi();wm(bt.prototype,wu.prototype);wm(bt,wu);var Qi=EL("kCallback");function bt(t){if(!(this instanceof bt))return new bt(t);let e=t?xL(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),wu.call(this,t),this._readableState.sync=!1,this[Qi]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",TL)}function bu(t){typeof this._flush=="function"&&!this.destroyed?this._flush((e,r)=>{if(e){t?t(e):this.destroy(e);return}r!=null&&this.push(r),this.push(null),t&&t()}):(this.push(null),t&&t())}function TL(){this._final!==bu&&bu.call(this)}bt.prototype._final=bu;bt.prototype._transform=function(t,e,r){throw new vL("_transform()")};bt.prototype._write=function(t,e,r){let i=this._readableState,n=this._writableState,s=i.length;this._transform(t,e,(o,a)=>{if(o){r(o);return}a!=null&&this.push(a),n.ended||s===i.length||i.length<i.highWaterMark?r():this[Qi]=r})};bt.prototype._read=function(){if(this[Qi]){let t=this[Qi];this[Qi]=null,t()}}});var vu=g((q4,vm)=>{"use strict";var{ObjectSetPrototypeOf:Em}=ie();vm.exports=Vr;var Eu=Su();Em(Vr.prototype,Eu.prototype);Em(Vr,Eu);function Vr(t){if(!(this instanceof Vr))return new Vr(t);Eu.call(this,t)}Vr.prototype._transform=function(t,e,r){r(null,t)}});var Zs=g((j4,Om)=>{"use strict";var Xi=Nt(),{ArrayIsArray:RL,Promise:AL,SymbolAsyncIterator:OL,SymbolDispose:IL}=ie(),Ks=yt(),{once:DL}=Oe(),PL=ir(),xm=st(),{aggregateTwoErrors:LL,codes:{ERR_INVALID_ARG_TYPE:Lu,ERR_INVALID_RETURN_VALUE:xu,ERR_MISSING_ARGS:NL,ERR_STREAM_DESTROYED:CL,ERR_STREAM_PREMATURE_CLOSE:kL},AbortError:ML}=xe(),{validateFunction:FL,validateAbortSignal:qL}=qr(),{isIterable:ar,isReadable:Tu,isReadableNodeStream:Ys,isNodeStream:Tm,isTransformStream:Yr,isWebStream:jL,isReadableStream:Ru,isReadableFinished:BL}=rt(),UL=globalThis.AbortController||Mr().AbortController,Au,Ou,Iu;function Rm(t,e,r){let i=!1;t.on("close",()=>{i=!0});let n=Ks(t,{readable:e,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,PL.destroyer(t,s||new CL("pipe")))},cleanup:n}}function WL(t){return FL(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function Du(t){if(ar(t))return t;if(Ys(t))return zL(t);throw new Lu("val",["Readable","Iterable","AsyncIterable"],t)}async function*zL(t){Ou||(Ou=Vi()),yield*Ou.prototype[OL].call(t)}async function Vs(t,e,r,{end:i}){let n,s=null,o=u=>{if(u&&(n=u),s){let f=s;s=null,f()}},a=()=>new AL((u,f)=>{n?f(n):s=()=>{n?f(n):u()}});e.on("drain",o);let l=Ks(e,{readable:!1},o);try{e.writableNeedDrain&&await a();for await(let u of t)e.write(u)||await a();i&&(e.end(),await a()),r()}catch(u){r(n!==u?LL(n,u):u)}finally{l(),e.off("drain",o)}}async function Pu(t,e,r,{end:i}){Yr(e)&&(e=e.writable);let n=e.getWriter();try{for await(let s of t)await n.ready,n.write(s).catch(()=>{});await n.ready,i&&await n.close(),r()}catch(s){try{await n.abort(s),r(s)}catch(o){r(o)}}}function GL(...t){return Am(t,DL(WL(t)))}function Am(t,e,r){if(t.length===1&&RL(t[0])&&(t=t[0]),t.length<2)throw new NL("streams");let i=new UL,n=i.signal,s=r?.signal,o=[];qL(s,"options.signal");function a(){m(new ML)}Iu=Iu||Oe().addAbortListener;let l;s&&(l=Iu(s,a));let u,f,c=[],h=0;function d(E){m(E,--h===0)}function m(E,S){var T;if(E&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=E),!(!u&&!S)){for(;c.length;)c.shift()(u);(T=l)===null||T===void 0||T[IL](),i.abort(),S&&(u||o.forEach(D=>D()),Xi.nextTick(e,u,f))}}let p;for(let E=0;E<t.length;E++){let S=t[E],T=E<t.length-1,D=E>0,x=T||r?.end!==!1,O=E===t.length-1;if(Tm(S)){let w=function(R){R&&R.name!=="AbortError"&&R.code!=="ERR_STREAM_PREMATURE_CLOSE"&&d(R)};var b=w;if(x){let{destroy:R,cleanup:A}=Rm(S,T,D);c.push(R),Tu(S)&&O&&o.push(A)}S.on("error",w),Tu(S)&&O&&o.push(()=>{S.removeListener("error",w)})}if(E===0)if(typeof S=="function"){if(p=S({signal:n}),!ar(p))throw new xu("Iterable, AsyncIterable or Stream","source",p)}else ar(S)||Ys(S)||Yr(S)?p=S:p=xm.from(S);else if(typeof S=="function"){if(Yr(p)){var v;p=Du((v=p)===null||v===void 0?void 0:v.readable)}else p=Du(p);if(p=S(p,{signal:n}),T){if(!ar(p,!0))throw new xu("AsyncIterable",`transform[${E-1}]`,p)}else{var y;Au||(Au=vu());let w=new Au({objectMode:!0}),R=(y=p)===null||y===void 0?void 0:y.then;if(typeof R=="function")h++,R.call(p,z=>{f=z,z!=null&&w.write(z),x&&w.end(),Xi.nextTick(d)},z=>{w.destroy(z),Xi.nextTick(d,z)});else if(ar(p,!0))h++,Vs(p,w,d,{end:x});else if(Ru(p)||Yr(p)){let z=p.readable||p;h++,Vs(z,w,d,{end:x})}else throw new xu("AsyncIterable or Promise","destination",p);p=w;let{destroy:A,cleanup:N}=Rm(p,!1,!0);c.push(A),O&&o.push(N)}}else if(Tm(S)){if(Ys(p)){h+=2;let w=$L(p,S,d,{end:x});Tu(S)&&O&&o.push(w)}else if(Yr(p)||Ru(p)){let w=p.readable||p;h++,Vs(w,S,d,{end:x})}else if(ar(p))h++,Vs(p,S,d,{end:x});else throw new Lu("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],p);p=S}else if(jL(S)){if(Ys(p))h++,Pu(Du(p),S,d,{end:x});else if(Ru(p)||ar(p))h++,Pu(p,S,d,{end:x});else if(Yr(p))h++,Pu(p.readable,S,d,{end:x});else throw new Lu("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],p);p=S}else p=xm.from(S)}return(n!=null&&n.aborted||s!=null&&s.aborted)&&Xi.nextTick(a),p}function $L(t,e,r,{end:i}){let n=!1;if(e.on("close",()=>{n||r(new kL)}),t.pipe(e,{end:!1}),i){let o=function(){n=!0,e.end()};var s=o;BL(t)?Xi.nextTick(o):t.once("end",o)}else r();return Ks(t,{readable:!0,writable:!1},o=>{let a=t._readableState;o&&o.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted?t.once("end",r).once("error",r):r(o)}),Ks(e,{readable:!1,writable:!0},r)}Om.exports={pipelineImpl:Am,pipeline:GL}});var Cu=g((B4,Cm)=>{"use strict";var{pipeline:HL}=Zs(),Qs=st(),{destroyer:VL}=ir(),{isNodeStream:Xs,isReadable:Im,isWritable:Dm,isWebStream:Nu,isTransformStream:lr,isWritableStream:Pm,isReadableStream:Lm}=rt(),{AbortError:YL,codes:{ERR_INVALID_ARG_VALUE:Nm,ERR_MISSING_ARGS:KL}}=xe(),ZL=yt();Cm.exports=function(...e){if(e.length===0)throw new KL("streams");if(e.length===1)return Qs.from(e[0]);let r=[...e];if(typeof e[0]=="function"&&(e[0]=Qs.from(e[0])),typeof e[e.length-1]=="function"){let d=e.length-1;e[d]=Qs.from(e[d])}for(let d=0;d<e.length;++d)if(!(!Xs(e[d])&&!Nu(e[d]))){if(d<e.length-1&&!(Im(e[d])||Lm(e[d])||lr(e[d])))throw new Nm(`streams[${d}]`,r[d],"must be readable");if(d>0&&!(Dm(e[d])||Pm(e[d])||lr(e[d])))throw new Nm(`streams[${d}]`,r[d],"must be writable")}let i,n,s,o,a;function l(d){let m=o;o=null,m?m(d):d?a.destroy(d):!h&&!c&&a.destroy()}let u=e[0],f=HL(e,l),c=!!(Dm(u)||Pm(u)||lr(u)),h=!!(Im(f)||Lm(f)||lr(f));if(a=new Qs({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(f!=null&&f.readableObjectMode),writable:c,readable:h}),c){if(Xs(u))a._write=function(m,p,v){u.write(m,p)?v():i=v},a._final=function(m){u.end(),n=m},u.on("drain",function(){if(i){let m=i;i=null,m()}});else if(Nu(u)){let p=(lr(u)?u.writable:u).getWriter();a._write=async function(v,y,b){try{await p.ready,p.write(v).catch(()=>{}),b()}catch(E){b(E)}},a._final=async function(v){try{await p.ready,p.close().catch(()=>{}),n=v}catch(y){v(y)}}}let d=lr(f)?f.readable:f;ZL(d,()=>{if(n){let m=n;n=null,m()}})}if(h){if(Xs(f))f.on("readable",function(){if(s){let d=s;s=null,d()}}),f.on("end",function(){a.push(null)}),a._read=function(){for(;;){let d=f.read();if(d===null){s=a._read;return}if(!a.push(d))return}};else if(Nu(f)){let m=(lr(f)?f.readable:f).getReader();a._read=async function(){for(;;)try{let{value:p,done:v}=await m.read();if(!a.push(p))return;if(v){a.push(null);return}}catch{return}}}}return a._destroy=function(d,m){!d&&o!==null&&(d=new YL),s=null,i=null,n=null,o===null?m(d):(o=m,Xs(f)&&VL(f,d))},a}});var Gm=g((U4,Fu)=>{"use strict";var QL=globalThis.AbortController||Mr().AbortController,{codes:{ERR_INVALID_ARG_VALUE:XL,ERR_INVALID_ARG_TYPE:Ji,ERR_MISSING_ARGS:JL,ERR_OUT_OF_RANGE:eN},AbortError:ot}=xe(),{validateAbortSignal:ur,validateInteger:km,validateObject:fr}=qr(),tN=ie().Symbol("kWeak"),rN=ie().Symbol("kResistStopPropagation"),{finished:iN}=yt(),nN=Cu(),{addAbortSignalNoValidate:sN}=zi(),{isWritable:oN,isNodeStream:aN}=rt(),{deprecate:lN}=Oe(),{ArrayPrototypePush:uN,Boolean:fN,MathFloor:Mm,Number:cN,NumberIsNaN:hN,Promise:Fm,PromiseReject:qm,PromiseResolve:dN,PromisePrototypeThen:jm,Symbol:Um}=ie(),Js=Um("kEmpty"),Bm=Um("kEof");function pN(t,e){if(e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),aN(t)&&!oN(t))throw new XL("stream",t,"must be writable");let r=nN(this,t);return e!=null&&e.signal&&sN(e.signal,r),r}function eo(t,e){if(typeof t!="function")throw new Ji("fn",["Function","AsyncFunction"],t);e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal");let r=1;e?.concurrency!=null&&(r=Mm(e.concurrency));let i=r-1;return e?.highWaterMark!=null&&(i=Mm(e.highWaterMark)),km(r,"options.concurrency",1),km(i,"options.highWaterMark",0),i+=r,async function*(){let s=Oe().AbortSignalAny([e?.signal].filter(fN)),o=this,a=[],l={signal:s},u,f,c=!1,h=0;function d(){c=!0,m()}function m(){h-=1,p()}function p(){f&&!c&&h<r&&a.length<i&&(f(),f=null)}async function v(){try{for await(let y of o){if(c)return;if(s.aborted)throw new ot;try{if(y=t(y,l),y===Js)continue;y=dN(y)}catch(b){y=qm(b)}h+=1,jm(y,m,d),a.push(y),u&&(u(),u=null),!c&&(a.length>=i||h>=r)&&await new Fm(b=>{f=b})}a.push(Bm)}catch(y){let b=qm(y);jm(b,m,d),a.push(b)}finally{c=!0,u&&(u(),u=null)}}v();try{for(;;){for(;a.length>0;){let y=await a[0];if(y===Bm)return;if(s.aborted)throw new ot;y!==Js&&(yield y),a.shift(),p()}await new Fm(y=>{u=y})}}finally{c=!0,f&&(f(),f=null)}}.call(this)}function gN(t=void 0){return t!=null&&fr(t,"options"),t?.signal!=null&&ur(t.signal,"options.signal"),async function*(){let r=0;for await(let n of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new ot({cause:t.signal.reason});yield[r++,n]}}.call(this)}async function Wm(t,e=void 0){for await(let r of Mu.call(this,t,e))return!0;return!1}async function _N(t,e=void 0){if(typeof t!="function")throw new Ji("fn",["Function","AsyncFunction"],t);return!await Wm.call(this,async(...r)=>!await t(...r),e)}async function yN(t,e){for await(let r of Mu.call(this,t,e))return r}async function mN(t,e){if(typeof t!="function")throw new Ji("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n),Js}for await(let i of eo.call(this,r,e));}function Mu(t,e){if(typeof t!="function")throw new Ji("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n)?i:Js}return eo.call(this,r,e)}var ku=class extends JL{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function bN(t,e,r){var i;if(typeof t!="function")throw new Ji("reducer",["Function","AsyncFunction"],t);r!=null&&fr(r,"options"),r?.signal!=null&&ur(r.signal,"options.signal");let n=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){let u=new ot(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await iN(this.destroy(u)),u}let s=new QL,o=s.signal;if(r!=null&&r.signal){let u={once:!0,[tN]:this,[rN]:!0};r.signal.addEventListener("abort",()=>s.abort(),u)}let a=!1;try{for await(let u of this){var l;if(a=!0,r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ot;n?e=await t(e,u,{signal:o}):(e=u,n=!0)}if(!a&&!n)throw new ku}finally{s.abort()}return e}async function wN(t){t!=null&&fr(t,"options"),t?.signal!=null&&ur(t.signal,"options.signal");let e=[];for await(let i of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new ot(void 0,{cause:t.signal.reason});uN(e,i)}return e}function SN(t,e){let r=eo.call(this,t,e);return async function*(){for await(let n of r)yield*n}.call(this)}function zm(t){if(t=cN(t),hN(t))return 0;if(t<0)throw new eN("number",">= 0",t);return t}function EN(t,e=void 0){return e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),t=zm(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ot;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ot;t--<=0&&(yield s)}}.call(this)}function vN(t,e=void 0){return e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),t=zm(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ot;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ot;if(t-- >0&&(yield s),t<=0)return}}.call(this)}Fu.exports.streamReturningOperators={asIndexedPairs:lN(gN,"readable.asIndexedPairs will be removed in a future version."),drop:EN,filter:Mu,flatMap:SN,map:eo,take:vN,compose:pN};Fu.exports.promiseReturningOperators={every:_N,forEach:mN,reduce:bN,toArray:wN,some:Wm,find:yN}});var qu=g((W4,$m)=>{"use strict";var{ArrayPrototypePop:xN,Promise:TN}=ie(),{isIterable:RN,isNodeStream:AN,isWebStream:ON}=rt(),{pipelineImpl:IN}=Zs(),{finished:DN}=yt();ju();function PN(...t){return new TN((e,r)=>{let i,n,s=t[t.length-1];if(s&&typeof s=="object"&&!AN(s)&&!RN(s)&&!ON(s)){let o=xN(t);i=o.signal,n=o.end}IN(t,(o,a)=>{o?r(o):e(a)},{signal:i,end:n})})}$m.exports={finished:DN,pipeline:PN}});var ju=g((z4,eb)=>{"use strict";var{Buffer:LN}=P("buffer"),{ObjectDefineProperty:wt,ObjectKeys:Ym,ReflectApply:Km}=ie(),{promisify:{custom:Zm}}=Oe(),{streamReturningOperators:Hm,promiseReturningOperators:Vm}=Gm(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:Qm}}=xe(),NN=Cu(),{setDefaultHighWaterMark:CN,getDefaultHighWaterMark:kN}=Gi(),{pipeline:Xm}=Zs(),{destroyer:MN}=ir(),Jm=yt(),Bu=qu(),en=rt(),ee=eb.exports=Ns().Stream;ee.isDestroyed=en.isDestroyed;ee.isDisturbed=en.isDisturbed;ee.isErrored=en.isErrored;ee.isReadable=en.isReadable;ee.isWritable=en.isWritable;ee.Readable=Vi();for(let t of Ym(Hm)){let r=function(...i){if(new.target)throw Qm();return ee.Readable.from(Km(e,this,i))},e=Hm[t];wt(r,"name",{__proto__:null,value:e.name}),wt(r,"length",{__proto__:null,value:e.length}),wt(ee.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}for(let t of Ym(Vm)){let r=function(...i){if(new.target)throw Qm();return Km(e,this,i)},e=Vm[t];wt(r,"name",{__proto__:null,value:e.name}),wt(r,"length",{__proto__:null,value:e.length}),wt(ee.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}ee.Writable=Hs();ee.Duplex=st();ee.Transform=Su();ee.PassThrough=vu();ee.pipeline=Xm;var{addAbortSignal:FN}=zi();ee.addAbortSignal=FN;ee.finished=Jm;ee.destroy=MN;ee.compose=NN;ee.setDefaultHighWaterMark=CN;ee.getDefaultHighWaterMark=kN;wt(ee,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return Bu}});wt(Xm,Zm,{__proto__:null,enumerable:!0,get(){return Bu.pipeline}});wt(Jm,Zm,{__proto__:null,enumerable:!0,get(){return Bu.finished}});ee.Stream=ee;ee._isUint8Array=function(e){return e instanceof Uint8Array};ee._uint8ArrayToBuffer=function(e){return LN.from(e.buffer,e.byteOffset,e.byteLength)}});var cr=g((G4,j)=>{"use strict";var he=P("stream");if(he&&process.env.READABLE_STREAM==="disable"){let t=he.promises;j.exports._uint8ArrayToBuffer=he._uint8ArrayToBuffer,j.exports._isUint8Array=he._isUint8Array,j.exports.isDisturbed=he.isDisturbed,j.exports.isErrored=he.isErrored,j.exports.isReadable=he.isReadable,j.exports.Readable=he.Readable,j.exports.Writable=he.Writable,j.exports.Duplex=he.Duplex,j.exports.Transform=he.Transform,j.exports.PassThrough=he.PassThrough,j.exports.addAbortSignal=he.addAbortSignal,j.exports.finished=he.finished,j.exports.destroy=he.destroy,j.exports.pipeline=he.pipeline,j.exports.compose=he.compose,Object.defineProperty(he,"promises",{configurable:!0,enumerable:!0,get(){return t}}),j.exports.Stream=he.Stream}else{let t=ju(),e=qu(),r=t.Readable.destroy;j.exports=t.Readable,j.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,j.exports._isUint8Array=t._isUint8Array,j.exports.isDisturbed=t.isDisturbed,j.exports.isErrored=t.isErrored,j.exports.isReadable=t.isReadable,j.exports.Readable=t.Readable,j.exports.Writable=t.Writable,j.exports.Duplex=t.Duplex,j.exports.Transform=t.Transform,j.exports.PassThrough=t.PassThrough,j.exports.addAbortSignal=t.addAbortSignal,j.exports.finished=t.finished,j.exports.destroy=t.destroy,j.exports.destroy=r,j.exports.pipeline=t.pipeline,j.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return e}}),j.exports.Stream=t.Stream}j.exports.default=j.exports});var rb=g(($4,tb)=>{"use strict";function qN(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}tb.exports=qN});var ob=g((H4,sb)=>{"use strict";var ib=ms(),jN=El(),BN=vl(),nb=ib?ib.isConcatSpreadable:void 0;function UN(t){return BN(t)||jN(t)||!!(nb&&t&&t[nb])}sb.exports=UN});var to=g((V4,lb)=>{"use strict";var WN=rb(),zN=ob();function ab(t,e,r,i,n){var s=-1,o=t.length;for(r||(r=zN),n||(n=[]);++s<o;){var a=t[s];e>0&&r(a)?e>1?ab(a,e-1,r,i,n):WN(n,a):i||(n[n.length]=a)}return n}lb.exports=ab});var fb=g((Y4,ub)=>{"use strict";var GN=to();function $N(t){var e=t==null?0:t.length;return e?GN(t,1):[]}ub.exports=$N});var tn=g((K4,cb)=>{"use strict";var HN=Ci(),VN=HN(Object,"create");cb.exports=VN});var pb=g((Z4,db)=>{"use strict";var hb=tn();function YN(){this.__data__=hb?hb(null):{},this.size=0}db.exports=YN});var _b=g((Q4,gb)=>{"use strict";function KN(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}gb.exports=KN});var mb=g((X4,yb)=>{"use strict";var ZN=tn(),QN="__lodash_hash_undefined__",XN=Object.prototype,JN=XN.hasOwnProperty;function eC(t){var e=this.__data__;if(ZN){var r=e[t];return r===QN?void 0:r}return JN.call(e,t)?e[t]:void 0}yb.exports=eC});var wb=g((J4,bb)=>{"use strict";var tC=tn(),rC=Object.prototype,iC=rC.hasOwnProperty;function nC(t){var e=this.__data__;return tC?e[t]!==void 0:iC.call(e,t)}bb.exports=nC});var Eb=g((e6,Sb)=>{"use strict";var sC=tn(),oC="__lodash_hash_undefined__";function aC(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=sC&&e===void 0?oC:e,this}Sb.exports=aC});var xb=g((t6,vb)=>{"use strict";var lC=pb(),uC=_b(),fC=mb(),cC=wb(),hC=Eb();function Kr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Kr.prototype.clear=lC;Kr.prototype.delete=uC;Kr.prototype.get=fC;Kr.prototype.has=cC;Kr.prototype.set=hC;vb.exports=Kr});var Rb=g((r6,Tb)=>{"use strict";function dC(){this.__data__=[],this.size=0}Tb.exports=dC});var rn=g((i6,Ab)=>{"use strict";var pC=ws();function gC(t,e){for(var r=t.length;r--;)if(pC(t[r][0],e))return r;return-1}Ab.exports=gC});var Ib=g((n6,Ob)=>{"use strict";var _C=rn(),yC=Array.prototype,mC=yC.splice;function bC(t){var e=this.__data__,r=_C(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():mC.call(e,r,1),--this.size,!0}Ob.exports=bC});var Pb=g((s6,Db)=>{"use strict";var wC=rn();function SC(t){var e=this.__data__,r=wC(e,t);return r<0?void 0:e[r][1]}Db.exports=SC});var Nb=g((o6,Lb)=>{"use strict";var EC=rn();function vC(t){return EC(this.__data__,t)>-1}Lb.exports=vC});var kb=g((a6,Cb)=>{"use strict";var xC=rn();function TC(t,e){var r=this.__data__,i=xC(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}Cb.exports=TC});var Fb=g((l6,Mb)=>{"use strict";var RC=Rb(),AC=Ib(),OC=Pb(),IC=Nb(),DC=kb();function Zr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Zr.prototype.clear=RC;Zr.prototype.delete=AC;Zr.prototype.get=OC;Zr.prototype.has=IC;Zr.prototype.set=DC;Mb.exports=Zr});var jb=g((u6,qb)=>{"use strict";var PC=Ci(),LC=Pr(),NC=PC(LC,"Map");qb.exports=NC});var Wb=g((f6,Ub)=>{"use strict";var Bb=xb(),CC=Fb(),kC=jb();function MC(){this.size=0,this.__data__={hash:new Bb,map:new(kC||CC),string:new Bb}}Ub.exports=MC});var Gb=g((c6,zb)=>{"use strict";function FC(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}zb.exports=FC});var nn=g((h6,$b)=>{"use strict";var qC=Gb();function jC(t,e){var r=t.__data__;return qC(e)?r[typeof e=="string"?"string":"hash"]:r.map}$b.exports=jC});var Vb=g((d6,Hb)=>{"use strict";var BC=nn();function UC(t){var e=BC(this,t).delete(t);return this.size-=e?1:0,e}Hb.exports=UC});var Kb=g((p6,Yb)=>{"use strict";var WC=nn();function zC(t){return WC(this,t).get(t)}Yb.exports=zC});var Qb=g((g6,Zb)=>{"use strict";var GC=nn();function $C(t){return GC(this,t).has(t)}Zb.exports=$C});var Jb=g((_6,Xb)=>{"use strict";var HC=nn();function VC(t,e){var r=HC(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}Xb.exports=VC});var tw=g((y6,ew)=>{"use strict";var YC=Wb(),KC=Vb(),ZC=Kb(),QC=Qb(),XC=Jb();function Qr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Qr.prototype.clear=YC;Qr.prototype.delete=KC;Qr.prototype.get=ZC;Qr.prototype.has=QC;Qr.prototype.set=XC;ew.exports=Qr});var iw=g((m6,rw)=>{"use strict";var JC="__lodash_hash_undefined__";function ek(t){return this.__data__.set(t,JC),this}rw.exports=ek});var sw=g((b6,nw)=>{"use strict";function tk(t){return this.__data__.has(t)}nw.exports=tk});var Uu=g((w6,ow)=>{"use strict";var rk=tw(),ik=iw(),nk=sw();function ro(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new rk;++e<r;)this.add(t[e])}ro.prototype.add=ro.prototype.push=ik;ro.prototype.has=nk;ow.exports=ro});var lw=g((S6,aw)=>{"use strict";function sk(t,e,r,i){for(var n=t.length,s=r+(i?1:-1);i?s--:++s<n;)if(e(t[s],s,t))return s;return-1}aw.exports=sk});var fw=g((E6,uw)=>{"use strict";function ok(t){return t!==t}uw.exports=ok});var hw=g((v6,cw)=>{"use strict";function ak(t,e,r){for(var i=r-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}cw.exports=ak});var pw=g((x6,dw)=>{"use strict";var lk=lw(),uk=fw(),fk=hw();function ck(t,e,r){return e===e?fk(t,e,r):lk(t,uk,r)}dw.exports=ck});var Wu=g((T6,gw)=>{"use strict";var hk=pw();function dk(t,e){var r=t==null?0:t.length;return!!r&&hk(t,e,0)>-1}gw.exports=dk});var zu=g((R6,_w)=>{"use strict";function pk(t,e,r){for(var i=-1,n=t==null?0:t.length;++i<n;)if(r(e,t[i]))return!0;return!1}_w.exports=pk});var mw=g((A6,yw)=>{"use strict";function gk(t,e){for(var r=-1,i=t==null?0:t.length,n=Array(i);++r<i;)n[r]=e(t[r],r,t);return n}yw.exports=gk});var Gu=g((O6,bw)=>{"use strict";function _k(t,e){return t.has(e)}bw.exports=_k});var Sw=g((I6,ww)=>{"use strict";var yk=Uu(),mk=Wu(),bk=zu(),wk=mw(),Sk=xl(),Ek=Gu(),vk=200;function xk(t,e,r,i){var n=-1,s=mk,o=!0,a=t.length,l=[],u=e.length;if(!a)return l;r&&(e=wk(e,Sk(r))),i?(s=bk,o=!1):e.length>=vk&&(s=Ek,o=!1,e=new yk(e));e:for(;++n<a;){var f=t[n],c=r==null?f:r(f);if(f=i||f!==0?f:0,o&&c===c){for(var h=u;h--;)if(e[h]===c)continue e;l.push(f)}else s(e,c,i)||l.push(f)}return l}ww.exports=xk});var $u=g((D6,Ew)=>{"use strict";var Tk=Ss(),Rk=Lr();function Ak(t){return Rk(t)&&Tk(t)}Ew.exports=Ak});var Tw=g((P6,xw)=>{"use strict";var Ok=Sw(),Ik=to(),Dk=bs(),vw=$u(),Pk=Dk(function(t,e){return vw(t)?Ok(t,Ik(e,1,vw,!0)):[]});xw.exports=Pk});var Aw=g((L6,Rw)=>{"use strict";var Lk=Ci(),Nk=Pr(),Ck=Lk(Nk,"Set");Rw.exports=Ck});var Iw=g((N6,Ow)=>{"use strict";function kk(){}Ow.exports=kk});var Hu=g((C6,Dw)=>{"use strict";function Mk(t){var e=-1,r=Array(t.size);return t.forEach(function(i){r[++e]=i}),r}Dw.exports=Mk});var Lw=g((k6,Pw)=>{"use strict";var Vu=Aw(),Fk=Iw(),qk=Hu(),jk=1/0,Bk=Vu&&1/qk(new Vu([,-0]))[1]==jk?function(t){return new Vu(t)}:Fk;Pw.exports=Bk});var Cw=g((M6,Nw)=>{"use strict";var Uk=Uu(),Wk=Wu(),zk=zu(),Gk=Gu(),$k=Lw(),Hk=Hu(),Vk=200;function Yk(t,e,r){var i=-1,n=Wk,s=t.length,o=!0,a=[],l=a;if(r)o=!1,n=zk;else if(s>=Vk){var u=e?null:$k(t);if(u)return Hk(u);o=!1,n=Gk,l=new Uk}else l=e?[]:a;e:for(;++i<s;){var f=t[i],c=e?e(f):f;if(f=r||f!==0?f:0,o&&c===c){for(var h=l.length;h--;)if(l[h]===c)continue e;e&&l.push(c),a.push(f)}else n(l,c,r)||(l!==a&&l.push(c),a.push(f))}return a}Nw.exports=Yk});var Mw=g((F6,kw)=>{"use strict";var Kk=to(),Zk=bs(),Qk=Cw(),Xk=$u(),Jk=Zk(function(t){return Qk(Kk(t,1,Xk,!0))});kw.exports=Jk});var qw=g((q6,Fw)=>{"use strict";function eM(t,e){return function(r){return t(e(r))}}Fw.exports=eM});var Bw=g((j6,jw)=>{"use strict";var tM=qw(),rM=tM(Object.getPrototypeOf,Object);jw.exports=rM});var zw=g((B6,Ww)=>{"use strict";var iM=Li(),nM=Bw(),sM=Lr(),oM="[object Object]",aM=Function.prototype,lM=Object.prototype,Uw=aM.toString,uM=lM.hasOwnProperty,fM=Uw.call(Object);function cM(t){if(!sM(t)||iM(t)!=oM)return!1;var e=nM(t);if(e===null)return!0;var r=uM.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Uw.call(r)==fM}Ww.exports=cM});var Gw=g(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.assertValidPattern=void 0;var hM=1024*64,dM=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>hM)throw new TypeError("pattern is too long")};io.assertValidPattern=dM});var Hw=g(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.parseClass=void 0;var pM={"[: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]},sn=t=>t.replace(/[[\]\\-]/g,"\\$&"),gM=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),$w=t=>t.join(""),_M=(t,e)=>{let r=e;if(t.charAt(r)!=="[")throw new Error("not in a brace expression");let i=[],n=[],s=r+1,o=!1,a=!1,l=!1,u=!1,f=r,c="";e:for(;s<t.length;){let p=t.charAt(s);if((p==="!"||p==="^")&&s===r+1){u=!0,s++;continue}if(p==="]"&&o&&!l){f=s+1;break}if(o=!0,p==="\\"&&!l){l=!0,s++;continue}if(p==="["&&!l){for(let[v,[y,b,E]]of Object.entries(pM))if(t.startsWith(v,s)){if(c)return["$.",!1,t.length-r,!0];s+=v.length,E?n.push(y):i.push(y),a=a||b;continue e}}if(l=!1,c){p>c?i.push(sn(c)+"-"+sn(p)):p===c&&i.push(sn(p)),c="",s++;continue}if(t.startsWith("-]",s+1)){i.push(sn(p+"-")),s+=2;continue}if(t.startsWith("-",s+1)){c=p,s+=2;continue}i.push(sn(p)),s++}if(f<s)return["",!1,0,!1];if(!i.length&&!n.length)return["$.",!1,t.length-r,!0];if(n.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!u){let p=i[0].length===2?i[0].slice(-1):i[0];return[gM(p),!1,f-r,!1]}let h="["+(u?"^":"")+$w(i)+"]",d="["+(u?"":"^")+$w(n)+"]";return[i.length&&n.length?"("+h+"|"+d+")":i.length?h:d,a,f-r,!0]};no.parseClass=_M});var oo=g(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.unescape=void 0;var yM=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");so.unescape=yM});var Zu=g(fo=>{"use strict";var Le;Object.defineProperty(fo,"__esModule",{value:!0});fo.AST=void 0;var mM=Hw(),ao=oo(),bM=new Set(["!","?","+","*","@"]),Yu=t=>bM.has(t),Vw=t=>Yu(t.type),wM=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),SM=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),EM=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Yw=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),vM="(?!(?:^|/)\\.\\.?(?:$|/))",lo="(?!\\.)",xM=new Set(["[","."]),TM=new Set(["..","."]),RM=new Set("().*{}+?[]^$\\!"),AM=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ku="[^/]",Kw=Ku+"*?",Zw=Ku+"+?",uo=class{type;#e;#r;#n=!1;#t=[];#o;#S;#u;#c=!1;#l;#a;#s=!1;constructor(e,r,i={}){this.type=e,e&&(this.#r=!0),this.#o=r,this.#e=this.#o?this.#o.#e:this,this.#l=this.#e===this?i:this.#e.#l,this.#u=this.#e===this?[]:this.#e.#u,e==="!"&&!this.#e.#c&&this.#u.push(this),this.#S=this.#o?this.#o.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#a!==void 0?this.#a:this.type?this.#a=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#a=this.#t.map(e=>String(e)).join("")}#y(){if(this!==this.#e)throw new Error("should only call on root");if(this.#c)return this;this.toString(),this.#c=!0;let e;for(;e=this.#u.pop();){if(e.type!=="!")continue;let r=e,i=r.#o;for(;i;){for(let n=r.#S+1;!i.type&&n<i.#t.length;n++)for(let s of e.#t){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(i.#t[n])}r=i,i=r.#o}}return this}push(...e){for(let r of e)if(r!==""){if(typeof r!="string"&&!(r instanceof Le&&r.#o===this))throw new Error("invalid part: "+r);this.#t.push(r)}}toJSON(){let e=this.type===null?this.#t.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#t.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#c&&this.#o?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#o?.isStart())return!1;if(this.#S===0)return!0;let e=this.#o;for(let r=0;r<this.#S;r++){let i=e.#t[r];if(!(i instanceof Le&&i.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#o?.type==="!")return!0;if(!this.#o?.isEnd())return!1;if(!this.type)return this.#o?.isEnd();let e=this.#o?this.#o.#t.length:0;return this.#S===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let r=new Le(this.type,e);for(let i of this.#t)r.copyIn(i);return r}static#m(e,r,i,n,s){let o=n.maxExtglobRecursion??2,a=!1,l=!1,u=-1,f=!1;if(r.type===null){let p=i,v="";for(;p<e.length;){let y=e.charAt(p++);if(a||y==="\\"){a=!a,v+=y;continue}if(l){p===u+1?(y==="^"||y==="!")&&(f=!0):y==="]"&&!(p===u+2&&f)&&(l=!1),v+=y;continue}else if(y==="["){l=!0,u=p,f=!1,v+=y;continue}if(!n.noext&&Yu(y)&&e.charAt(p)==="("&&s<=o){r.push(v),v="";let E=new Le(y,r);p=Le.#m(e,E,p,n,s+1),r.push(E);continue}v+=y}return r.push(v),p}let c=i+1,h=new Le(null,r),d=[],m="";for(;c<e.length;){let p=e.charAt(c++);if(a||p==="\\"){a=!a,m+=p;continue}if(l){c===u+1?(p==="^"||p==="!")&&(f=!0):p==="]"&&!(c===u+2&&f)&&(l=!1),m+=p;continue}else if(p==="["){l=!0,u=c,f=!1,m+=p;continue}if(Yu(p)&&e.charAt(c)==="("&&(s<=o||r&&r.#E(p))){let y=r&&r.#E(p)?0:1;h.push(m),m="";let b=new Le(p,h);h.push(b),c=Le.#m(e,b,c,n,s+y);continue}if(p==="|"){h.push(m),m="",d.push(h),h=new Le(null,r);continue}if(p===")")return m===""&&r.#t.length===0&&(r.#s=!0),h.push(m),m="",r.push(...d,h),c;m+=p}return r.type=null,r.#r=void 0,r.#t=[e.substring(i-1)],c}#g(e){return this.#d(e,SM)}#d(e,r=wM){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null)return!1;let i=e.#t[0];return!i||typeof i!="object"||i.type===null?!1:this.#E(i.type,r)}#E(e,r=EM){return!!r.get(this.type)?.includes(e)}#p(e,r){let i=e.#t[0],n=new Le(null,i,this.options);n.#t.push(""),i.push(n),this.#x(e,r)}#x(e,r){let i=e.#t[0];this.#t.splice(r,1,...i.#t);for(let n of i.#t)typeof n=="object"&&(n.#o=this);this.#a=void 0}#T(e){return!!Yw.get(this.type)?.has(e)}#_(e){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null||this.#t.length!==1)return!1;let r=e.#t[0];return!r||typeof r!="object"||r.type===null?!1:this.#T(r.type)}#v(e){let r=Yw.get(this.type),i=e.#t[0],n=r?.get(i.type);if(!n)return!1;this.#t=i.#t;for(let s of this.#t)typeof s=="object"&&(s.#o=this);this.type=n,this.#a=void 0,this.#s=!1}#b(){if(Vw(this)){let e=0,r=!1;do{r=!0;for(let i=0;i<this.#t.length;i++){let n=this.#t[i];typeof n=="object"&&(n.#b(),this.#d(n)?(r=!1,this.#x(n,i)):this.#g(n)?(r=!1,this.#p(n,i)):this.#_(n)&&(r=!1,this.#v(n)))}}while(!r&&++e<10)}else for(let e of this.#t)typeof e=="object"&&e.#b();this.#a=void 0}static fromGlob(e,r={}){let i=new Le(null,void 0,r);return Le.#m(e,i,0,r,0),i}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[r,i,n,s]=this.toRegExpSource();if(!(n||this.#r||this.#l.nocase&&!this.#l.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return i;let a=(this.#l.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:e})}get options(){return this.#l}toRegExpSource(e){let r=e??!!this.#l.dot;if(this.#e===this&&(this.#b(),this.#y()),!Vw(this)){let l=this.isStart()&&this.isEnd(),u=this.#t.map(d=>{let[m,p,v,y]=typeof d=="string"?Le.#R(d,this.#r,l):d.toRegExpSource(e);return this.#r=this.#r||v,this.#n=this.#n||y,m}).join(""),f="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&TM.has(this.#t[0]))){let m=xM,p=r&&m.has(u.charAt(0))||u.startsWith("\\.")&&m.has(u.charAt(2))||u.startsWith("\\.\\.")&&m.has(u.charAt(4)),v=!r&&!e&&m.has(u.charAt(0));f=p?vM:v?lo:""}let c="";return this.isEnd()&&this.#e.#c&&this.#o?.type==="!"&&(c="(?:$|\\/)"),[f+u+c,(0,ao.unescape)(u),this.#r=!!this.#r,this.#n]}let i=this.type==="*"||this.type==="+",n=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#h(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString(),u=this;return u.#t=[l],u.type=null,u.#r=void 0,[l,(0,ao.unescape)(this.toString()),!1,!1]}let o=!i||e||r||!lo?"":this.#h(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!r?lo:"")+Zw;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?lo:"")+Kw+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=n+s+l}return[a,(0,ao.unescape)(s),this.#r=!!this.#r,this.#n]}#h(e){return this.#t.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[i,n,s,o]=r.toRegExpSource(e);return this.#n=this.#n||o,i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#R(e,r,i=!1){let n=!1,s="",o=!1,a=!1;for(let l=0;l<e.length;l++){let u=e.charAt(l);if(n){n=!1,s+=(RM.has(u)?"\\":"")+u,a=!1;continue}if(u==="\\"){l===e.length-1?s+="\\\\":n=!0;continue}if(u==="["){let[f,c,h,d]=(0,mM.parseClass)(e,l);if(h){s+=f,o=o||c,l+=h-1,r=r||d,a=!1;continue}}if(u==="*"){if(a)continue;a=!0,s+=i&&/^[*]+$/.test(e)?Zw:Kw,r=!0;continue}else a=!1;if(u==="?"){s+=Ku,r=!0;continue}s+=AM(u)}return[s,(0,ao.unescape)(e),!!r,o]}};fo.AST=uo;Le=uo});var Qu=g(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.escape=void 0;var OM=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");co.escape=OM});var Ft=g(I=>{"use strict";var IM=I&&I.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(I,"__esModule",{value:!0});I.unescape=I.escape=I.AST=I.Minimatch=I.match=I.makeRe=I.braceExpand=I.defaults=I.filter=I.GLOBSTAR=I.sep=I.minimatch=void 0;var DM=IM(na()),ho=Gw(),Jw=Zu(),PM=Qu(),LM=oo(),NM=(t,e,r={})=>((0,ho.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new hr(e,r).match(t));I.minimatch=NM;var CM=/^\*+([^+@!?\*\[\(]*)$/,kM=t=>e=>!e.startsWith(".")&&e.endsWith(t),MM=t=>e=>e.endsWith(t),FM=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),qM=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),jM=/^\*+\.\*+$/,BM=t=>!t.startsWith(".")&&t.includes("."),UM=t=>t!=="."&&t!==".."&&t.includes("."),WM=/^\.\*+$/,zM=t=>t!=="."&&t!==".."&&t.startsWith("."),GM=/^\*+$/,$M=t=>t.length!==0&&!t.startsWith("."),HM=t=>t.length!==0&&t!=="."&&t!=="..",VM=/^\?+([^+@!?\*\[\(]*)?$/,YM=([t,e=""])=>{let r=e0([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},KM=([t,e=""])=>{let r=t0([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},ZM=([t,e=""])=>{let r=t0([t]);return e?i=>r(i)&&i.endsWith(e):r},QM=([t,e=""])=>{let r=e0([t]);return e?i=>r(i)&&i.endsWith(e):r},e0=([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},t0=([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},r0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Qw={win32:{sep:"\\"},posix:{sep:"/"}};I.sep=r0==="win32"?Qw.win32.sep:Qw.posix.sep;I.minimatch.sep=I.sep;I.GLOBSTAR=Symbol("globstar **");I.minimatch.GLOBSTAR=I.GLOBSTAR;var XM="[^/]",JM=XM+"*?",e2="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",t2="(?:(?!(?:\\/|^)\\.).)*?",r2=(t,e={})=>r=>(0,I.minimatch)(r,t,e);I.filter=r2;I.minimatch.filter=I.filter;var Ue=(t,e={})=>Object.assign({},t,e),i2=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return I.minimatch;let e=I.minimatch;return Object.assign((i,n,s={})=>e(i,n,Ue(t,s)),{Minimatch:class extends e.Minimatch{constructor(n,s={}){super(n,Ue(t,s))}static defaults(n){return e.defaults(Ue(t,n)).Minimatch}},AST:class extends e.AST{constructor(n,s,o={}){super(n,s,Ue(t,o))}static fromGlob(n,s={}){return e.AST.fromGlob(n,Ue(t,s))}},unescape:(i,n={})=>e.unescape(i,Ue(t,n)),escape:(i,n={})=>e.escape(i,Ue(t,n)),filter:(i,n={})=>e.filter(i,Ue(t,n)),defaults:i=>e.defaults(Ue(t,i)),makeRe:(i,n={})=>e.makeRe(i,Ue(t,n)),braceExpand:(i,n={})=>e.braceExpand(i,Ue(t,n)),match:(i,n,s={})=>e.match(i,n,Ue(t,s)),sep:e.sep,GLOBSTAR:I.GLOBSTAR})};I.defaults=i2;I.minimatch.defaults=I.defaults;var n2=(t,e={})=>((0,ho.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,DM.default)(t));I.braceExpand=n2;I.minimatch.braceExpand=I.braceExpand;var s2=(t,e={})=>new hr(t,e).makeRe();I.makeRe=s2;I.minimatch.makeRe=I.makeRe;var o2=(t,e,r={})=>{let i=new hr(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};I.match=o2;I.minimatch.match=I.match;var Xw=/[?*]|[+@!]\(.*?\)|\[|\]/,a2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),hr=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,ho.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||r0,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.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 e of this.set)for(let r of e)if(typeof r!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let n=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!Xw.test(s[2]))&&!Xw.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(f=>this.parse(f))];if(u)return[s[0],...s.slice(1).map(f=>this.parse(f))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,n),this.set=n.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let i=0;i<e.length;i++)for(let n=0;n<e[i].length;n++)e[i][n]==="**"&&(e[i][n]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let n=i;for(;r[n+1]==="**";)n++;n!==i&&r.splice(i,n-i)}return r})}levelOneOptimize(e){return e.map(r=>(r=r.reduce((i,n)=>{let s=i[i.length-1];return n==="**"&&s==="**"?i:n===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(n),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let s=e[n];n===1&&s===""&&e[0]===""||(s==="."||s==="")&&(r=!0,e.splice(n,1),n--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(r=!0,e.pop())}let i=0;for(;(i=e.indexOf("..",i+1))!==-1;){let n=e[i-1];n&&n!=="."&&n!==".."&&n!=="**"&&(r=!0,e.splice(i-1,2),i-=2)}}while(r);return e.length===0?[""]:e}firstPhasePreProcess(e){let r=!1;do{r=!1;for(let i of e){let n=-1;for(;(n=i.indexOf("**",n+1))!==-1;){let o=n;for(;i[o+1]==="**";)o++;o>n&&i.splice(n+1,o-n);let a=i[n+1],l=i[n+2],u=i[n+3];if(a!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;r=!0,i.splice(n,1);let f=i.slice(0);f[n]="**",e.push(f),n--}if(!this.preserveMultipleSlashes){for(let o=1;o<i.length-1;o++){let a=i[o];o===1&&a===""&&i[0]===""||(a==="."||a==="")&&(r=!0,i.splice(o,1),o--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){let o=i[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){r=!0;let l=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...l),i.length===0&&i.push(""),s-=2}}}}while(r);return e}secondPhasePreProcess(e){for(let r=0;r<e.length-1;r++)for(let i=r+1;i<e.length;i++){let n=this.partsMatch(e[r],e[i],!this.preserveMultipleSlashes);if(n){e[r]=[],e[i]=n;break}}return e.filter(r=>r.length)}partsMatch(e,r,i=!1){let n=0,s=0,o=[],a="";for(;n<e.length&&s<r.length;)if(e[n]===r[s])o.push(a==="b"?r[s]:e[n]),n++,s++;else if(i&&e[n]==="**"&&r[s]===e[n+1])o.push(e[n]),n++;else if(i&&r[s]==="**"&&e[n]===r[s+1])o.push(r[s]),s++;else if(e[n]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(a==="b")return!1;a="a",o.push(e[n]),n++,s++}else if(r[s]==="*"&&e[n]&&(this.options.dot||!e[n].startsWith("."))&&e[n]!=="**"){if(a==="a")return!1;a="b",o.push(r[s]),n++,s++}else return!1;return e.length===r.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,r=!1,i=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++)r=!r,i++;i&&(this.pattern=e.slice(i)),this.negate=r}matchOne(e,r,i=!1){let n=0,s=0;if(this.isWindows){let a=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),l=!a&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),u=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),f=!u&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),c=l?3:a?0:void 0,h=f?3:u?0:void 0;if(typeof c=="number"&&typeof h=="number"){let[d,m]=[e[c],r[h]];d.toLowerCase()===m.toLowerCase()&&(r[h]=d,s=h,n=c)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),r.includes(I.GLOBSTAR)?this.#e(e,r,i,n,s):this.#n(e,r,i,n,s)}#e(e,r,i,n,s){let o=r.indexOf(I.GLOBSTAR,s),a=r.lastIndexOf(I.GLOBSTAR),[l,u,f]=i?[r.slice(s,o),r.slice(o+1),[]]:[r.slice(s,o),r.slice(o+1,a),r.slice(a+1)];if(l.length){let b=e.slice(n,n+l.length);if(!this.#n(b,l,i,0,0))return!1;n+=l.length}let c=0;if(f.length){if(f.length+n>e.length)return!1;let b=e.length-f.length;if(this.#n(e,f,i,b,0))c=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||(b--,!this.#n(e,f,i,b,0)))return!1;c=f.length+1}}if(!u.length){let b=!!c;for(let E=n;E<e.length-c;E++){let S=String(e[E]);if(b=!0,S==="."||S===".."||!this.options.dot&&S.startsWith("."))return!1}return i||b}let h=[[[],0]],d=h[0],m=0,p=[0];for(let b of u)b===I.GLOBSTAR?(p.push(m),d=[[],0],h.push(d)):(d[0].push(b),m++);let v=h.length-1,y=e.length-c;for(let b of h)b[1]=y-(p[v--]+b[0].length);return!!this.#r(e,h,n,0,i,0,!!c)}#r(e,r,i,n,s,o,a){let l=r[n];if(!l){for(let c=i;c<e.length;c++){a=!0;let h=e[c];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1}return a}let[u,f]=l;for(;i<=f;){if(this.#n(e.slice(0,i+u.length),u,s,i,0)&&o<this.maxGlobstarRecursion){let d=this.#r(e,r,i+u.length,n+1,s,o+1,a);if(d!==!1)return d}let h=e[i];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1;i++}return s||null}#n(e,r,i,n,s){let o,a,l,u;for(o=n,a=s,u=e.length,l=r.length;o<u&&a<l;o++,a++){this.debug("matchOne loop");let f=r[a],c=e[o];if(this.debug(r,f,c),f===!1||f===I.GLOBSTAR)return!1;let h;if(typeof f=="string"?(h=c===f,this.debug("string match",f,c,h)):(h=f.test(c),this.debug("pattern match",f,c,h)),!h)return!1}if(o===u&&a===l)return!0;if(o===u)return i;if(a===l)return o===u-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,I.braceExpand)(this.pattern,this.options)}parse(e){(0,ho.assertValidPattern)(e);let r=this.options;if(e==="**")return I.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(GM))?n=r.dot?HM:$M:(i=e.match(CM))?n=(r.nocase?r.dot?qM:FM:r.dot?MM:kM)(i[1]):(i=e.match(VM))?n=(r.nocase?r.dot?KM:YM:r.dot?ZM:QM)(i):(i=e.match(jM))?n=r.dot?UM:BM:(i=e.match(WM))&&(n=zM);let s=Jw.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?JM:r.dot?e2:t2,n=new Set(r.nocase?["i"]:[]),s=e.map(l=>{let u=l.map(f=>{if(f instanceof RegExp)for(let c of f.flags.split(""))n.add(c);return typeof f=="string"?a2(f):f===I.GLOBSTAR?I.GLOBSTAR:f._src});return u.forEach((f,c)=>{let h=u[c+1],d=u[c-1];f!==I.GLOBSTAR||d===I.GLOBSTAR||(d===void 0?h!==void 0&&h!==I.GLOBSTAR?u[c+1]="(?:\\/|"+i+"\\/)?"+h:u[c]=i:h===void 0?u[c-1]=d+"(?:\\/|"+i+")?":h!==I.GLOBSTAR&&(u[c-1]=d+"(?:\\/|\\/"+i+"\\/)"+h,u[c+1]=I.GLOBSTAR))}),u.filter(f=>f!==I.GLOBSTAR).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let o=n[n.length-1];if(!o)for(let a=n.length-2;!o&&a>=0;a--)o=n[a];for(let a=0;a<s.length;a++){let l=s[a],u=n;if(i.matchBase&&l.length===1&&(u=[o]),this.matchOne(u,l,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return I.minimatch.defaults(e).Minimatch}};I.Minimatch=hr;var l2=Zu();Object.defineProperty(I,"AST",{enumerable:!0,get:function(){return l2.AST}});var u2=Qu();Object.defineProperty(I,"escape",{enumerable:!0,get:function(){return u2.escape}});var f2=oo();Object.defineProperty(I,"unescape",{enumerable:!0,get:function(){return f2.unescape}});I.minimatch.AST=Jw.AST;I.minimatch.Minimatch=hr;I.minimatch.escape=PM.escape;I.minimatch.unescape=LM.unescape});var a0=g(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.LRUCache=void 0;var Xr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,n0=new Set,Xu=typeof process=="object"&&process?process:{},s0=(t,e,r,i)=>{typeof Xu.emitWarning=="function"?Xu.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},po=globalThis.AbortController,i0=globalThis.AbortSignal;if(typeof po>"u"){i0=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},po=class{constructor(){e()}signal=new i0;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let n of this.signal._onabort)n(i);this.signal.onabort?.(i)}}};let t=Xu.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,s0("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",e))}}var c2=t=>!n0.has(t),qt=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),o0=t=>qt(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Jr:null:null,Jr=class extends Array{constructor(e){super(e),this.fill(0)}},Ju=class t{heap;length;static#e=!1;static create(e){let r=o0(e);if(!r)return[];t.#e=!0;let i=new t(e,r);return t.#e=!1,i}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},ef=class t{#e;#r;#n;#t;#o;#S;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#u;#c;#l;#a;#s;#y;#m;#g;#d;#E;#p;#x;#T;#_;#v;#b;#h;static unsafeExposeInternals(e){return{starts:e.#T,ttls:e.#_,sizes:e.#x,keyMap:e.#l,keyList:e.#a,valList:e.#s,next:e.#y,prev:e.#m,get head(){return e.#g},get tail(){return e.#d},free:e.#E,isBackgroundFetch:r=>e.#f(r),backgroundFetch:(r,i,n,s)=>e.#q(r,i,n,s),moveToTail:r=>e.#B(r),indexes:r=>e.#O(r),rindexes:r=>e.#I(r),isStale:r=>e.#w(r)}}get max(){return this.#e}get maxSize(){return this.#r}get calculatedSize(){return this.#c}get size(){return this.#u}get fetchMethod(){return this.#o}get memoMethod(){return this.#S}get dispose(){return this.#n}get disposeAfter(){return this.#t}constructor(e){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:u,disposeAfter:f,noDisposeOnSet:c,noUpdateTTL:h,maxSize:d=0,maxEntrySize:m=0,sizeCalculation:p,fetchMethod:v,memoMethod:y,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:E,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:T,ignoreFetchAbort:D}=e;if(r!==0&&!qt(r))throw new TypeError("max option must be a nonnegative integer");let x=r?o0(r):Array;if(!x)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=d,this.maxEntrySize=m||this.#r,this.sizeCalculation=p,this.sizeCalculation){if(!this.#r&&!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(y!==void 0&&typeof y!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#S=y,v!==void 0&&typeof v!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=v,this.#b=!!v,this.#l=new Map,this.#a=new Array(r).fill(void 0),this.#s=new Array(r).fill(void 0),this.#y=new x(r),this.#m=new x(r),this.#g=0,this.#d=0,this.#E=Ju.create(r),this.#u=0,this.#c=0,typeof u=="function"&&(this.#n=u),typeof f=="function"?(this.#t=f,this.#p=[]):(this.#t=void 0,this.#p=void 0),this.#v=!!this.#n,this.#h=!!this.#t,this.noDisposeOnSet=!!c,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!S,this.allowStaleOnFetchAbort=!!T,this.ignoreFetchAbort=!!D,this.maxEntrySize!==0){if(this.#r!==0&&!qt(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!qt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#D()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!E,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=qt(n)||n===0?n:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!qt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#R()}if(this.#e===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#r){let O="LRU_CACHE_UNBOUNDED";c2(O)&&(n0.add(O),s0("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",O,t))}}getRemainingTTL(e){return this.#l.has(e)?1/0:0}#R(){let e=new Jr(this.#e),r=new Jr(this.#e);this.#_=e,this.#T=r,this.#L=(s,o,a=Xr.now())=>{if(r[s]=o!==0?a:0,e[s]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#w(s)&&this.#P(this.#a[s],"expire")},o+1);l.unref&&l.unref()}},this.#A=s=>{r[s]=e[s]!==0?Xr.now():0},this.#i=(s,o)=>{if(e[o]){let a=e[o],l=r[o];if(!a||!l)return;s.ttl=a,s.start=l,s.now=i||n();let u=s.now-l;s.remainingTTL=a-u}};let i=0,n=()=>{let s=Xr.now();if(this.ttlResolution>0){i=s;let o=setTimeout(()=>i=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#l.get(s);if(o===void 0)return 0;let a=e[o],l=r[o];if(!a||!l)return 1/0;let u=(i||n())-l;return a-u},this.#w=s=>{let o=r[s],a=e[s];return!!a&&!!o&&(i||n())-o>a}}#A=()=>{};#i=()=>{};#L=()=>{};#w=()=>!1;#D(){let e=new Jr(this.#e);this.#c=0,this.#x=e,this.#N=r=>{this.#c-=e[r],e[r]=0},this.#k=(r,i,n,s)=>{if(this.#f(i))return 0;if(!qt(n))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(n=s(i,r),!qt(n))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 n},this.#C=(r,i,n)=>{if(e[r]=i,this.#r){let s=this.#r-e[r];for(;this.#c>s;)this.#F(!0)}this.#c+=e[r],n&&(n.entrySize=i,n.totalCalculatedSize=this.#c)}}#N=e=>{};#C=(e,r,i)=>{};#k=(e,r,i,n)=>{if(i||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#O({allowStale:e=this.allowStale}={}){if(this.#u)for(let r=this.#d;!(!this.#M(r)||((e||!this.#w(r))&&(yield r),r===this.#g));)r=this.#m[r]}*#I({allowStale:e=this.allowStale}={}){if(this.#u)for(let r=this.#g;!(!this.#M(r)||((e||!this.#w(r))&&(yield r),r===this.#d));)r=this.#y[r]}#M(e){return e!==void 0&&this.#l.get(this.#a[e])===e}*entries(){for(let e of this.#O())this.#s[e]!==void 0&&this.#a[e]!==void 0&&!this.#f(this.#s[e])&&(yield[this.#a[e],this.#s[e]])}*rentries(){for(let e of this.#I())this.#s[e]!==void 0&&this.#a[e]!==void 0&&!this.#f(this.#s[e])&&(yield[this.#a[e],this.#s[e]])}*keys(){for(let e of this.#O()){let r=this.#a[e];r!==void 0&&!this.#f(this.#s[e])&&(yield r)}}*rkeys(){for(let e of this.#I()){let r=this.#a[e];r!==void 0&&!this.#f(this.#s[e])&&(yield r)}}*values(){for(let e of this.#O())this.#s[e]!==void 0&&!this.#f(this.#s[e])&&(yield this.#s[e])}*rvalues(){for(let e of this.#I())this.#s[e]!==void 0&&!this.#f(this.#s[e])&&(yield this.#s[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,r={}){for(let i of this.#O()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;if(s!==void 0&&e(s,this.#a[i],this))return this.get(this.#a[i],r)}}forEach(e,r=this){for(let i of this.#O()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&e.call(r,s,this.#a[i],this)}}rforEach(e,r=this){for(let i of this.#I()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&e.call(r,s,this.#a[i],this)}}purgeStale(){let e=!1;for(let r of this.#I({allowStale:!0}))this.#w(r)&&(this.#P(this.#a[r],"expire"),e=!0);return e}info(e){let r=this.#l.get(e);if(r===void 0)return;let i=this.#s[r],n=this.#f(i)?i.__staleWhileFetching:i;if(n===void 0)return;let s={value:n};if(this.#_&&this.#T){let o=this.#_[r],a=this.#T[r];if(o&&a){let l=o-(Xr.now()-a);s.ttl=l,s.start=Date.now()}}return this.#x&&(s.size=this.#x[r]),s}dump(){let e=[];for(let r of this.#O({allowStale:!0})){let i=this.#a[r],n=this.#s[r],s=this.#f(n)?n.__staleWhileFetching:n;if(s===void 0||i===void 0)continue;let o={value:s};if(this.#_&&this.#T){o.ttl=this.#_[r];let a=Xr.now()-this.#T[r];o.start=Math.floor(Date.now()-a)}this.#x&&(o.size=this.#x[r]),e.unshift([i,o])}return e}load(e){this.clear();for(let[r,i]of e){if(i.start){let n=Date.now()-i.start;i.start=Xr.now()-n}this.set(r,i.value,i)}}set(e,r,i={}){if(r===void 0)return this.delete(e),this;let{ttl:n=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=i,{noUpdateTTL:u=this.noUpdateTTL}=i,f=this.#k(e,r,i.size||0,a);if(this.maxEntrySize&&f>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#P(e,"set"),this;let c=this.#u===0?void 0:this.#l.get(e);if(c===void 0)c=this.#u===0?this.#d:this.#E.length!==0?this.#E.pop():this.#u===this.#e?this.#F(!1):this.#u,this.#a[c]=e,this.#s[c]=r,this.#l.set(e,c),this.#y[this.#d]=c,this.#m[c]=this.#d,this.#d=c,this.#u++,this.#C(c,f,l),l&&(l.set="add"),u=!1;else{this.#B(c);let h=this.#s[c];if(r!==h){if(this.#b&&this.#f(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=h;d!==void 0&&!o&&(this.#v&&this.#n?.(d,e,"set"),this.#h&&this.#p?.push([d,e,"set"]))}else o||(this.#v&&this.#n?.(h,e,"set"),this.#h&&this.#p?.push([h,e,"set"]));if(this.#N(c),this.#C(c,f,l),this.#s[c]=r,l){l.set="replace";let d=h&&this.#f(h)?h.__staleWhileFetching:h;d!==void 0&&(l.oldValue=d)}}else l&&(l.set="update")}if(n!==0&&!this.#_&&this.#R(),this.#_&&(u||this.#L(c,n,s),l&&this.#i(l,c)),!o&&this.#h&&this.#p){let h=this.#p,d;for(;d=h?.shift();)this.#t?.(...d)}return this}pop(){try{for(;this.#u;){let e=this.#s[this.#g];if(this.#F(!0),this.#f(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#h&&this.#p){let e=this.#p,r;for(;r=e?.shift();)this.#t?.(...r)}}}#F(e){let r=this.#g,i=this.#a[r],n=this.#s[r];return this.#b&&this.#f(n)?n.__abortController.abort(new Error("evicted")):(this.#v||this.#h)&&(this.#v&&this.#n?.(n,i,"evict"),this.#h&&this.#p?.push([n,i,"evict"])),this.#N(r),e&&(this.#a[r]=void 0,this.#s[r]=void 0,this.#E.push(r)),this.#u===1?(this.#g=this.#d=0,this.#E.length=0):this.#g=this.#y[r],this.#l.delete(i),this.#u--,r}has(e,r={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:n}=r,s=this.#l.get(e);if(s!==void 0){let o=this.#s[s];if(this.#f(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#w(s))n&&(n.has="stale",this.#i(n,s));else return i&&this.#A(s),n&&(n.has="hit",this.#i(n,s)),!0}else n&&(n.has="miss");return!1}peek(e,r={}){let{allowStale:i=this.allowStale}=r,n=this.#l.get(e);if(n===void 0||!i&&this.#w(n))return;let s=this.#s[n];return this.#f(s)?s.__staleWhileFetching:s}#q(e,r,i,n){let s=r===void 0?void 0:this.#s[r];if(this.#f(s))return s;let o=new po,{signal:a}=i;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:i,context:n},u=(p,v=!1)=>{let{aborted:y}=o.signal,b=i.ignoreFetchAbort&&p!==void 0;if(i.status&&(y&&!v?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,b&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),y&&!b&&!v)return c(o.signal.reason);let E=d;return this.#s[r]===d&&(p===void 0?E.__staleWhileFetching?this.#s[r]=E.__staleWhileFetching:this.#P(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,p,l.options))),p},f=p=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=p),c(p)),c=p=>{let{aborted:v}=o.signal,y=v&&i.allowStaleOnFetchAbort,b=y||i.allowStaleOnFetchRejection,E=b||i.noDeleteOnFetchRejection,S=d;if(this.#s[r]===d&&(!E||S.__staleWhileFetching===void 0?this.#P(e,"fetch"):y||(this.#s[r]=S.__staleWhileFetching)),b)return i.status&&S.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),S.__staleWhileFetching;if(S.__returned===S)throw p},h=(p,v)=>{let y=this.#o?.(e,s,l);y&&y instanceof Promise&&y.then(b=>p(b===void 0?void 0:b),v),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(p(void 0),i.allowStaleOnFetchAbort&&(p=b=>u(b,!0)))})};i.status&&(i.status.fetchDispatched=!0);let d=new Promise(h).then(u,f),m=Object.assign(d,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(e,m,{...l.options,status:void 0}),r=this.#l.get(e)):this.#s[r]=m,m}#f(e){if(!this.#b)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof po}async fetch(e,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:m=this.allowStaleOnFetchAbort,context:p,forceRefresh:v=!1,status:y,signal:b}=r;if(!this.#b)return y&&(y.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:y});let E={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:u,noUpdateTTL:f,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:m,ignoreFetchAbort:d,status:y,signal:b},S=this.#l.get(e);if(S===void 0){y&&(y.fetch="miss");let T=this.#q(e,S,E,p);return T.__returned=T}else{let T=this.#s[S];if(this.#f(T)){let R=i&&T.__staleWhileFetching!==void 0;return y&&(y.fetch="inflight",R&&(y.returnedStale=!0)),R?T.__staleWhileFetching:T.__returned=T}let D=this.#w(S);if(!v&&!D)return y&&(y.fetch="hit"),this.#B(S),n&&this.#A(S),y&&this.#i(y,S),T;let x=this.#q(e,S,E,p),w=x.__staleWhileFetching!==void 0&&i;return y&&(y.fetch=D?"stale":"refresh",w&&D&&(y.returnedStale=!0)),w?x.__staleWhileFetching:x.__returned=x}}async forceFetch(e,r={}){let i=await this.fetch(e,r);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(e,r={}){let i=this.#S;if(!i)throw new Error("no memoMethod provided to constructor");let{context:n,forceRefresh:s,...o}=r,a=this.get(e,o);if(!s&&a!==void 0)return a;let l=i(e,a,{options:o,context:n});return this.set(e,l,o),l}get(e,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,a=this.#l.get(e);if(a!==void 0){let l=this.#s[a],u=this.#f(l);return o&&this.#i(o,a),this.#w(a)?(o&&(o.get="stale"),u?(o&&i&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),i?l.__staleWhileFetching:void 0):(s||this.#P(e,"expire"),o&&i&&(o.returnedStale=!0),i?l:void 0)):(o&&(o.get="hit"),u?l.__staleWhileFetching:(this.#B(a),n&&this.#A(a),l))}else o&&(o.get="miss")}#j(e,r){this.#m[r]=e,this.#y[e]=r}#B(e){e!==this.#d&&(e===this.#g?this.#g=this.#y[e]:this.#j(this.#m[e],this.#y[e]),this.#j(this.#d,e),this.#d=e)}delete(e){return this.#P(e,"delete")}#P(e,r){let i=!1;if(this.#u!==0){let n=this.#l.get(e);if(n!==void 0)if(i=!0,this.#u===1)this.#U(r);else{this.#N(n);let s=this.#s[n];if(this.#f(s)?s.__abortController.abort(new Error("deleted")):(this.#v||this.#h)&&(this.#v&&this.#n?.(s,e,r),this.#h&&this.#p?.push([s,e,r])),this.#l.delete(e),this.#a[n]=void 0,this.#s[n]=void 0,n===this.#d)this.#d=this.#m[n];else if(n===this.#g)this.#g=this.#y[n];else{let o=this.#m[n];this.#y[o]=this.#y[n];let a=this.#y[n];this.#m[a]=this.#m[n]}this.#u--,this.#E.push(n)}}if(this.#h&&this.#p?.length){let n=this.#p,s;for(;s=n?.shift();)this.#t?.(...s)}return i}clear(){return this.#U("delete")}#U(e){for(let r of this.#I({allowStale:!0})){let i=this.#s[r];if(this.#f(i))i.__abortController.abort(new Error("deleted"));else{let n=this.#a[r];this.#v&&this.#n?.(i,n,e),this.#h&&this.#p?.push([i,n,e])}}if(this.#l.clear(),this.#s.fill(void 0),this.#a.fill(void 0),this.#_&&this.#T&&(this.#_.fill(0),this.#T.fill(0)),this.#x&&this.#x.fill(0),this.#g=0,this.#d=0,this.#E.length=0,this.#c=0,this.#u=0,this.#h&&this.#p){let r=this.#p,i;for(;i=r?.shift();)this.#t?.(...i)}}};go.LRUCache=ef});var uf=g(De=>{"use strict";var h2=De&&De.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(De,"__esModule",{value:!0});De.Minipass=De.isWritable=De.isReadable=De.isStream=void 0;var l0=typeof process=="object"&&process?process:{stdout:null,stderr:null},lf=P("events"),h0=h2(P("stream")),d2=P("string_decoder"),p2=t=>!!t&&typeof t=="object"&&(t instanceof Eo||t instanceof h0.default||(0,De.isReadable)(t)||(0,De.isWritable)(t));De.isStream=p2;var g2=t=>!!t&&typeof t=="object"&&t instanceof lf.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==h0.default.Writable.prototype.pipe;De.isReadable=g2;var _2=t=>!!t&&typeof t=="object"&&t instanceof lf.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";De.isWritable=_2;var St=Symbol("EOF"),Et=Symbol("maybeEmitEnd"),jt=Symbol("emittedEnd"),_o=Symbol("emittingEnd"),on=Symbol("emittedError"),yo=Symbol("closed"),u0=Symbol("read"),mo=Symbol("flush"),f0=Symbol("flushChunk"),Ke=Symbol("encoding"),ei=Symbol("decoder"),de=Symbol("flowing"),an=Symbol("paused"),ti=Symbol("resume"),pe=Symbol("buffer"),Ie=Symbol("pipes"),ge=Symbol("bufferLength"),tf=Symbol("bufferPush"),bo=Symbol("bufferShift"),Re=Symbol("objectMode"),le=Symbol("destroyed"),rf=Symbol("error"),nf=Symbol("emitData"),c0=Symbol("emitEnd"),sf=Symbol("emitEnd2"),at=Symbol("async"),of=Symbol("abort"),wo=Symbol("aborted"),ln=Symbol("signal"),dr=Symbol("dataListeners"),Ce=Symbol("discarded"),un=t=>Promise.resolve().then(t),y2=t=>t(),m2=t=>t==="end"||t==="finish"||t==="prefinish",b2=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,w2=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),So=class{src;dest;opts;ondrain;constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[ti](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},af=class extends So{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>this.dest.emit("error",n),e.on("error",this.proxyErrors)}},S2=t=>!!t.objectMode,E2=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",Eo=class extends lf.EventEmitter{[de]=!1;[an]=!1;[Ie]=[];[pe]=[];[Re];[Ke];[at];[ei];[St]=!1;[jt]=!1;[_o]=!1;[yo]=!1;[on]=null;[ge]=0;[le]=!1;[ln];[wo]=!1;[dr]=0;[Ce]=!1;writable=!0;readable=!0;constructor(...e){let r=e[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");S2(r)?(this[Re]=!0,this[Ke]=null):E2(r)?(this[Ke]=r.encoding,this[Re]=!1):(this[Re]=!1,this[Ke]=null),this[at]=!!r.async,this[ei]=this[Ke]?new d2.StringDecoder(this[Ke]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[pe]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Ie]});let{signal:i}=r;i&&(this[ln]=i,i.aborted?this[of]():i.addEventListener("abort",()=>this[of]()))}get bufferLength(){return this[ge]}get encoding(){return this[Ke]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Re]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[at]}set async(e){this[at]=this[at]||!!e}[of](){this[wo]=!0,this.emit("abort",this[ln]?.reason),this.destroy(this[ln]?.reason)}get aborted(){return this[wo]}set aborted(e){}write(e,r,i){if(this[wo])return!1;if(this[St])throw new Error("write after end");if(this[le])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[at]?un:y2;if(!this[Re]&&!Buffer.isBuffer(e)){if(w2(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(b2(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Re]?(this[de]&&this[ge]!==0&&this[mo](!0),this[de]?this.emit("data",e):this[tf](e),this[ge]!==0&&this.emit("readable"),i&&n(i),this[de]):e.length?(typeof e=="string"&&!(r===this[Ke]&&!this[ei]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ke]&&(e=this[ei].write(e)),this[de]&&this[ge]!==0&&this[mo](!0),this[de]?this.emit("data",e):this[tf](e),this[ge]!==0&&this.emit("readable"),i&&n(i),this[de]):(this[ge]!==0&&this.emit("readable"),i&&n(i),this[de])}read(e){if(this[le])return null;if(this[Ce]=!1,this[ge]===0||e===0||e&&e>this[ge])return this[Et](),null;this[Re]&&(e=null),this[pe].length>1&&!this[Re]&&(this[pe]=[this[Ke]?this[pe].join(""):Buffer.concat(this[pe],this[ge])]);let r=this[u0](e||null,this[pe][0]);return this[Et](),r}[u0](e,r){if(this[Re])this[bo]();else{let i=r;e===i.length||e===null?this[bo]():typeof i=="string"?(this[pe][0]=i.slice(e),r=i.slice(0,e),this[ge]-=e):(this[pe][0]=i.subarray(e),r=i.subarray(0,e),this[ge]-=e)}return this.emit("data",r),!this[pe].length&&!this[St]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=void 0),typeof r=="function"&&(i=r,r="utf8"),e!==void 0&&this.write(e,r),i&&this.once("end",i),this[St]=!0,this.writable=!1,(this[de]||!this[an])&&this[Et](),this}[ti](){this[le]||(!this[dr]&&!this[Ie].length&&(this[Ce]=!0),this[an]=!1,this[de]=!0,this.emit("resume"),this[pe].length?this[mo]():this[St]?this[Et]():this.emit("drain"))}resume(){return this[ti]()}pause(){this[de]=!1,this[an]=!0,this[Ce]=!1}get destroyed(){return this[le]}get flowing(){return this[de]}get paused(){return this[an]}[tf](e){this[Re]?this[ge]+=1:this[ge]+=e.length,this[pe].push(e)}[bo](){return this[Re]?this[ge]-=1:this[ge]-=this[pe][0].length,this[pe].shift()}[mo](e=!1){do;while(this[f0](this[bo]())&&this[pe].length);!e&&!this[pe].length&&!this[St]&&this.emit("drain")}[f0](e){return this.emit("data",e),this[de]}pipe(e,r){if(this[le])return e;this[Ce]=!1;let i=this[jt];return r=r||{},e===l0.stdout||e===l0.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Ie].push(r.proxyErrors?new af(this,e,r):new So(this,e,r)),this[at]?un(()=>this[ti]()):this[ti]()),e}unpipe(e){let r=this[Ie].find(i=>i.dest===e);r&&(this[Ie].length===1?(this[de]&&this[dr]===0&&(this[de]=!1),this[Ie]=[]):this[Ie].splice(this[Ie].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);if(e==="data")this[Ce]=!1,this[dr]++,!this[Ie].length&&!this[de]&&this[ti]();else if(e==="readable"&&this[ge]!==0)super.emit("readable");else if(m2(e)&&this[jt])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[on]){let n=r;this[at]?un(()=>n.call(this,this[on])):n.call(this,this[on])}return i}removeListener(e,r){return this.off(e,r)}off(e,r){let i=super.off(e,r);return e==="data"&&(this[dr]=this.listeners("data").length,this[dr]===0&&!this[Ce]&&!this[Ie].length&&(this[de]=!1)),i}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[dr]=0,!this[Ce]&&!this[Ie].length&&(this[de]=!1)),r}get emittedEnd(){return this[jt]}[Et](){!this[_o]&&!this[jt]&&!this[le]&&this[pe].length===0&&this[St]&&(this[_o]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[yo]&&this.emit("close"),this[_o]=!1)}emit(e,...r){let i=r[0];if(e!=="error"&&e!=="close"&&e!==le&&this[le])return!1;if(e==="data")return!this[Re]&&!i?!1:this[at]?(un(()=>this[nf](i)),!0):this[nf](i);if(e==="end")return this[c0]();if(e==="close"){if(this[yo]=!0,!this[jt]&&!this[le])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[on]=i,super.emit(rf,i);let s=!this[ln]||this.listeners("error").length?super.emit("error",i):!1;return this[Et](),s}else if(e==="resume"){let s=super.emit("resume");return this[Et](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,...r);return this[Et](),n}[nf](e){for(let i of this[Ie])i.dest.write(e)===!1&&this.pause();let r=this[Ce]?!1:super.emit("data",e);return this[Et](),r}[c0](){return this[jt]?!1:(this[jt]=!0,this.readable=!1,this[at]?(un(()=>this[sf]()),!0):this[sf]())}[sf](){if(this[ei]){let r=this[ei].end();if(r){for(let i of this[Ie])i.dest.write(r);this[Ce]||super.emit("data",r)}}for(let r of this[Ie])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[Re]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Re]||(e.dataLength+=i.length)}),await r,e}async concat(){if(this[Re])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Ke]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,r)=>{this.on(le,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[Ce]=!1;let e=!1,r=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return r();let n=this.read();if(n!==null)return Promise.resolve({done:!1,value:n});if(this[St])return r();let s,o,a=c=>{this.off("data",l),this.off("end",u),this.off(le,f),r(),o(c)},l=c=>{this.off("error",a),this.off("end",u),this.off(le,f),this.pause(),s({value:c,done:!!this[St]})},u=()=>{this.off("error",a),this.off("data",l),this.off(le,f),r(),s({done:!0,value:void 0})},f=()=>a(new Error("stream destroyed"));return new Promise((c,h)=>{o=h,s=c,this.once(le,f),this.once("error",a),this.once("end",u),this.once("data",l)})},throw:r,return:r,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[Ce]=!1;let e=!1,r=()=>(this.pause(),this.off(rf,r),this.off(le,r),this.off("end",r),e=!0,{done:!0,value:void 0}),i=()=>{if(e)return r();let n=this.read();return n===null?r():{done:!1,value:n}};return this.once("end",r),this.once(rf,r),this.once(le,r),{next:i,throw:r,return:r,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[le])return e?this.emit("error",e):this.emit(le),this;this[le]=!0,this[Ce]=!0,this[pe].length=0,this[ge]=0;let r=this;return typeof r.close=="function"&&!this[yo]&&r.close(),e?this.emit("error",e):this.emit(le),this}static get isStream(){return De.isStream}};De.Minipass=Eo});var A0=g(H=>{"use strict";var v2=H&&H.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),x2=H&&H.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),T2=H&&H.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&v2(e,t,r);return x2(e,t),e};Object.defineProperty(H,"__esModule",{value:!0});H.PathScurry=H.Path=H.PathScurryDarwin=H.PathScurryPosix=H.PathScurryWin32=H.PathScurryBase=H.PathPosix=H.PathWin32=H.PathBase=H.ChildrenCache=H.ResolveCache=void 0;var m0=a0(),Ao=P("path"),R2=P("url"),cn=P("fs"),A2=T2(P("fs")),O2=cn.realpathSync.native,vo=P("fs/promises"),d0=uf(),hn={lstatSync:cn.lstatSync,readdir:cn.readdir,readdirSync:cn.readdirSync,readlinkSync:cn.readlinkSync,realpathSync:O2,promises:{lstat:vo.lstat,readdir:vo.readdir,readlink:vo.readlink,realpath:vo.realpath}},b0=t=>!t||t===hn||t===A2?hn:{...hn,...t,promises:{...hn.promises,...t.promises||{}}},w0=/^\\\\\?\\([a-z]:)\\?$/i,I2=t=>t.replace(/\//g,"\\").replace(w0,"$1\\"),D2=/[\\\/]/,ze=0,S0=1,E0=2,lt=4,v0=6,x0=8,pr=10,T0=12,We=15,fn=~We,ff=16,p0=32,dn=64,Ze=128,xo=256,Ro=512,g0=dn|Ze|Ro,P2=1023,cf=t=>t.isFile()?x0:t.isDirectory()?lt:t.isSymbolicLink()?pr:t.isCharacterDevice()?E0:t.isBlockDevice()?v0:t.isSocket()?T0:t.isFIFO()?S0:ze,_0=new Map,pn=t=>{let e=_0.get(t);if(e)return e;let r=t.normalize("NFKD");return _0.set(t,r),r},y0=new Map,To=t=>{let e=y0.get(t);if(e)return e;let r=pn(t.toLowerCase());return y0.set(t,r),r},gn=class extends m0.LRUCache{constructor(){super({max:256})}};H.ResolveCache=gn;var Oo=class extends m0.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:r=>r.length+1})}};H.ChildrenCache=Oo;var R0=Symbol("PathScurry setAsCwd"),Se=class{name;root;roots;parent;nocase;isCWD=!1;#e;#r;get dev(){return this.#r}#n;get mode(){return this.#n}#t;get nlink(){return this.#t}#o;get uid(){return this.#o}#S;get gid(){return this.#S}#u;get rdev(){return this.#u}#c;get blksize(){return this.#c}#l;get ino(){return this.#l}#a;get size(){return this.#a}#s;get blocks(){return this.#s}#y;get atimeMs(){return this.#y}#m;get mtimeMs(){return this.#m}#g;get ctimeMs(){return this.#g}#d;get birthtimeMs(){return this.#d}#E;get atime(){return this.#E}#p;get mtime(){return this.#p}#x;get ctime(){return this.#x}#T;get birthtime(){return this.#T}#_;#v;#b;#h;#R;#A;#i;#L;#w;#D;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,r=ze,i,n,s,o,a){this.name=e,this.#_=s?To(e):pn(e),this.#i=r&P2,this.nocase=s,this.roots=n,this.root=i||this,this.#L=o,this.#b=a.fullpath,this.#R=a.relative,this.#A=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=b0(a.fs)}depth(){return this.#v!==void 0?this.#v:this.parent?this.#v=this.parent.depth()+1:this.#v=0}childrenCache(){return this.#L}resolve(e){if(!e)return this;let r=this.getRootString(e),n=e.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#N(n):this.#N(n)}#N(e){let r=this;for(let i of e)r=r.child(i);return r}children(){let e=this.#L.get(this);if(e)return e;let r=Object.assign([],{provisional:0});return this.#L.set(this,r),this.#i&=~ff,r}child(e,r){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let i=this.children(),n=this.nocase?To(e):pn(e);for(let l of i)if(l.#_===n)return l;let s=this.parent?this.sep:"",o=this.#b?this.#b+s+e:void 0,a=this.newChild(e,ze,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#i|=Ze),i.push(a),a}relative(){if(this.isCWD)return"";if(this.#R!==void 0)return this.#R;let e=this.name,r=this.parent;if(!r)return this.#R=this.name;let i=r.relative();return i+(!i||!r.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#A!==void 0)return this.#A;let e=this.name,r=this.parent;if(!r)return this.#A=this.fullpathPosix();let i=r.relativePosix();return i+(!i||!r.parent?"":"/")+e}fullpath(){if(this.#b!==void 0)return this.#b;let e=this.name,r=this.parent;if(!r)return this.#b=this.name;let n=r.fullpath()+(r.parent?this.sep:"")+e;return this.#b=n}fullpathPosix(){if(this.#h!==void 0)return this.#h;if(this.sep==="/")return this.#h=this.fullpath();if(!this.parent){let n=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(n)?this.#h=`//?/${n}`:this.#h=n}let e=this.parent,r=e.fullpathPosix(),i=r+(!r||!e.parent?"":"/")+this.name;return this.#h=i}isUnknown(){return(this.#i&We)===ze}isType(e){return this[`is${e}`]()}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.#i&We)===x0}isDirectory(){return(this.#i&We)===lt}isCharacterDevice(){return(this.#i&We)===E0}isBlockDevice(){return(this.#i&We)===v0}isFIFO(){return(this.#i&We)===S0}isSocket(){return(this.#i&We)===T0}isSymbolicLink(){return(this.#i&pr)===pr}lstatCached(){return this.#i&p0?this:void 0}readlinkCached(){return this.#w}realpathCached(){return this.#D}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#w)return!0;if(!this.parent)return!1;let e=this.#i&We;return!(e!==ze&&e!==pr||this.#i&xo||this.#i&Ze)}calledReaddir(){return!!(this.#i&ff)}isENOENT(){return!!(this.#i&Ze)}isNamed(e){return this.nocase?this.#_===To(e):this.#_===pn(e)}async readlink(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),i=(await this.parent.realpath())?.resolve(r);if(i)return this.#w=i}catch(r){this.#f(r.code);return}}readlinkSync(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),i=this.parent.realpathSync()?.resolve(r);if(i)return this.#w=i}catch(r){this.#f(r.code);return}}#C(e){this.#i|=ff;for(let r=e.provisional;r<e.length;r++){let i=e[r];i&&i.#k()}}#k(){this.#i&Ze||(this.#i=(this.#i|Ze)&fn,this.#O())}#O(){let e=this.children();e.provisional=0;for(let r of e)r.#k()}#I(){this.#i|=Ro,this.#M()}#M(){if(this.#i&dn)return;let e=this.#i;(e&We)===lt&&(e&=fn),this.#i=e|dn,this.#O()}#F(e=""){e==="ENOTDIR"||e==="EPERM"?this.#M():e==="ENOENT"?this.#k():this.children().provisional=0}#q(e=""){e==="ENOTDIR"?this.parent.#M():e==="ENOENT"&&this.#k()}#f(e=""){let r=this.#i;r|=xo,e==="ENOENT"&&(r|=Ze),(e==="EINVAL"||e==="UNKNOWN")&&(r&=fn),this.#i=r,e==="ENOTDIR"&&this.parent&&this.parent.#M()}#j(e,r){return this.#P(e,r)||this.#B(e,r)}#B(e,r){let i=cf(e),n=this.newChild(e.name,i,{parent:this}),s=n.#i&We;return s!==lt&&s!==pr&&s!==ze&&(n.#i|=dn),r.unshift(n),r.provisional++,n}#P(e,r){for(let i=r.provisional;i<r.length;i++){let n=r[i];if((this.nocase?To(e.name):pn(e.name))===n.#_)return this.#U(e,n,i,r)}}#U(e,r,i,n){let s=r.name;return r.#i=r.#i&fn|cf(e),s!==e.name&&(r.name=e.name),i!==n.provisional&&(i===n.length-1?n.pop():n.splice(i,1),n.unshift(r)),n.provisional++,r}async lstat(){if((this.#i&Ze)===0)try{return this.#$(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#q(e.code)}}lstatSync(){if((this.#i&Ze)===0)try{return this.#$(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#q(e.code)}}#$(e){let{atime:r,atimeMs:i,birthtime:n,birthtimeMs:s,blksize:o,blocks:a,ctime:l,ctimeMs:u,dev:f,gid:c,ino:h,mode:d,mtime:m,mtimeMs:p,nlink:v,rdev:y,size:b,uid:E}=e;this.#E=r,this.#y=i,this.#T=n,this.#d=s,this.#c=o,this.#s=a,this.#x=l,this.#g=u,this.#r=f,this.#S=c,this.#l=h,this.#n=d,this.#p=m,this.#m=p,this.#t=v,this.#u=y,this.#a=b,this.#o=E;let S=cf(e);this.#i=this.#i&fn|S|p0,S!==ze&&S!==lt&&S!==pr&&(this.#i|=dn)}#z=[];#G=!1;#H(e){this.#G=!1;let r=this.#z.slice();this.#z.length=0,r.forEach(i=>i(null,e))}readdirCB(e,r=!1){if(!this.canReaddir()){r?e(null,[]):queueMicrotask(()=>e(null,[]));return}let i=this.children();if(this.calledReaddir()){let s=i.slice(0,i.provisional);r?e(null,s):queueMicrotask(()=>e(null,s));return}if(this.#z.push(e),this.#G)return;this.#G=!0;let n=this.fullpath();this.#e.readdir(n,{withFileTypes:!0},(s,o)=>{if(s)this.#F(s.code),i.provisional=0;else{for(let a of o)this.#j(a,i);this.#C(i)}this.#H(i.slice(0,i.provisional))})}#W;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();if(this.#W)await this.#W;else{let i=()=>{};this.#W=new Promise(n=>i=n);try{for(let n of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#j(n,e);this.#C(e)}catch(n){this.#F(n.code),e.provisional=0}this.#W=void 0,i()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();try{for(let i of this.#e.readdirSync(r,{withFileTypes:!0}))this.#j(i,e);this.#C(e)}catch(i){this.#F(i.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#i&g0)return!1;let e=We&this.#i;return e===ze||e===lt||e===pr}shouldWalk(e,r){return(this.#i<)===lt&&!(this.#i&g0)&&!e.has(this)&&(!r||r(this))}async realpath(){if(this.#D)return this.#D;if(!((Ro|xo|Ze)&this.#i))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#D=this.resolve(e)}catch{this.#I()}}realpathSync(){if(this.#D)return this.#D;if(!((Ro|xo|Ze)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#D=this.resolve(e)}catch{this.#I()}}[R0](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let r=new Set([]),i=[],n=this;for(;n&&n.parent;)r.add(n),n.#R=i.join(this.sep),n.#A=i.join("/"),n=n.parent,i.push("..");for(n=e;n&&n.parent&&!r.has(n);)n.#R=void 0,n.#A=void 0,n=n.parent}};H.PathBase=Se;var _n=class t extends Se{sep="\\";splitSep=D2;constructor(e,r=ze,i,n,s,o,a){super(e,r,i,n,s,o,a)}newChild(e,r=ze,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(e){return Ao.win32.parse(e).root}getRoot(e){if(e=I2(e.toUpperCase()),e===this.root.name)return this.root;for(let[r,i]of Object.entries(this.roots))if(this.sameRoot(e,r))return this.roots[e]=i;return this.roots[e]=new bn(e,this).root}sameRoot(e,r=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(w0,"$1\\"),e===r}};H.PathWin32=_n;var yn=class t extends Se{splitSep="/";sep="/";constructor(e,r=ze,i,n,s,o,a){super(e,r,i,n,s,o,a)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,r=ze,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}};H.PathPosix=yn;var mn=class{root;rootPath;roots;cwd;#e;#r;#n;nocase;#t;constructor(e=process.cwd(),r,i,{nocase:n,childrenCacheSize:s=16*1024,fs:o=hn}={}){this.#t=b0(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,R2.fileURLToPath)(e));let a=r.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new gn,this.#r=new gn,this.#n=new Oo(s);let l=a.substring(this.rootPath.length).split(i);if(l.length===1&&!l[0]&&l.pop(),n===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=n,this.root=this.newRoot(this.#t),this.roots[this.rootPath]=this.root;let u=this.root,f=l.length-1,c=r.sep,h=this.rootPath,d=!1;for(let m of l){let p=f--;u=u.child(m,{relative:new Array(p).fill("..").join(c),relativePosix:new Array(p).fill("..").join("/"),fullpath:h+=(d?"":c)+m}),d=!0}this.cwd=u}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#n}resolve(...e){let r="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let i=this.#e.get(r);if(i!==void 0)return i;let n=this.cwd.resolve(r).fullpath();return this.#e.set(r,n),n}resolvePosix(...e){let r="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let i=this.#r.get(r);if(i!==void 0)return i;let n=this.cwd.resolve(r).fullpathPosix();return this.#r.set(r,n),n}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i}=r;if(e.canReaddir()){let n=await e.readdir();return i?n:n.map(s=>s.name)}else return[]}readdirSync(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0}=r;return e.canReaddir()?i?e.readdirSync():e.readdirSync().map(n=>n.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=await e.readlink();return r?i:i?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=e.readlinkSync();return r?i:i?.fullpath()}async realpath(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=await e.realpath();return r?i:i?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=e.realpathSync();return r?i:i?.fullpath()}async walk(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(e))&&a.push(i?e:e.fullpath());let l=new Set,u=(c,h)=>{l.add(c),c.readdirCB((d,m)=>{if(d)return h(d);let p=m.length;if(!p)return h();let v=()=>{--p===0&&h()};for(let y of m)(!s||s(y))&&a.push(i?y:y.fullpath()),n&&y.isSymbolicLink()?y.realpath().then(b=>b?.isUnknown()?b.lstat():b).then(b=>b?.shouldWalk(l,o)?u(b,v):v()):y.shouldWalk(l,o)?u(y,v):v()},!0)},f=e;return new Promise((c,h)=>{u(f,d=>{if(d)return h(d);c(a)})})}walkSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(e))&&a.push(i?e:e.fullpath());let l=new Set([e]);for(let u of l){let f=u.readdirSync();for(let c of f){(!s||s(c))&&a.push(i?c:c.fullpath());let h=c;if(c.isSymbolicLink()){if(!(n&&(h=c.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(l,o)&&l.add(h)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,r={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd),this.stream(e,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r;(!s||s(e))&&(yield i?e:e.fullpath());let a=new Set([e]);for(let l of a){let u=l.readdirSync();for(let f of u){(!s||s(f))&&(yield i?f:f.fullpath());let c=f;if(f.isSymbolicLink()){if(!(n&&(c=f.realpathSync())))continue;c.isUnknown()&&c.lstatSync()}c.shouldWalk(a,o)&&a.add(c)}}}stream(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new d0.Minipass({objectMode:!0});(!s||s(e))&&a.write(i?e:e.fullpath());let l=new Set,u=[e],f=0,c=()=>{let h=!1;for(;!h;){let d=u.shift();if(!d){f===0&&a.end();return}f++,l.add(d);let m=(v,y,b=!1)=>{if(v)return a.emit("error",v);if(n&&!b){let E=[];for(let S of y)S.isSymbolicLink()&&E.push(S.realpath().then(T=>T?.isUnknown()?T.lstat():T));if(E.length){Promise.all(E).then(()=>m(null,y,!0));return}}for(let E of y)E&&(!s||s(E))&&(a.write(i?E:E.fullpath())||(h=!0));f--;for(let E of y){let S=E.realpathCached()||E;S.shouldWalk(l,o)&&u.push(S)}h&&!a.flowing?a.once("drain",c):p||c()},p=!0;d.readdirCB(m,!0),p=!1}};return c(),a}streamSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new d0.Minipass({objectMode:!0}),l=new Set;(!s||s(e))&&a.write(i?e:e.fullpath());let u=[e],f=0,c=()=>{let h=!1;for(;!h;){let d=u.shift();if(!d){f===0&&a.end();return}f++,l.add(d);let m=d.readdirSync();for(let p of m)(!s||s(p))&&(a.write(i?p:p.fullpath())||(h=!0));f--;for(let p of m){let v=p;if(p.isSymbolicLink()){if(!(n&&(v=p.realpathSync())))continue;v.isUnknown()&&v.lstatSync()}v.shouldWalk(l,o)&&u.push(v)}}h&&!a.flowing&&a.once("drain",c)};return c(),a}chdir(e=this.cwd){let r=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[R0](r)}};H.PathScurryBase=mn;var bn=class extends mn{sep="\\";constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,Ao.win32,"\\",{...r,nocase:i}),this.nocase=i;for(let n=this.cwd;n;n=n.parent)n.nocase=this.nocase}parseRootPath(e){return Ao.win32.parse(e).root.toUpperCase()}newRoot(e){return new _n(this.rootPath,lt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};H.PathScurryWin32=bn;var wn=class extends mn{sep="/";constructor(e=process.cwd(),r={}){let{nocase:i=!1}=r;super(e,Ao.posix,"/",{...r,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new yn(this.rootPath,lt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};H.PathScurryPosix=wn;var Io=class extends wn{constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,{...r,nocase:i})}};H.PathScurryDarwin=Io;H.Path=process.platform==="win32"?_n:yn;H.PathScurry=process.platform==="win32"?bn:process.platform==="darwin"?Io:wn});var df=g(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.Pattern=void 0;var L2=Ft(),N2=t=>t.length>=1,C2=t=>t.length>=1,hf=class t{#e;#r;#n;length;#t;#o;#S;#u;#c;#l;#a=!0;constructor(e,r,i,n){if(!N2(e))throw new TypeError("empty pattern list");if(!C2(r))throw new TypeError("empty glob list");if(r.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,i<0||i>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#r=r,this.#n=i,this.#t=n,this.#n===0){if(this.isUNC()){let[s,o,a,l,...u]=this.#e,[f,c,h,d,...m]=this.#r;u[0]===""&&(u.shift(),m.shift());let p=[s,o,a,l,""].join("/"),v=[f,c,h,d,""].join("/");this.#e=[p,...u],this.#r=[v,...m],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...o]=this.#e,[a,...l]=this.#r;o[0]===""&&(o.shift(),l.shift());let u=s+"/",f=a+"/";this.#e=[u,...o],this.#r=[f,...l],this.length=this.#e.length}}}pattern(){return this.#e[this.#n]}isString(){return typeof this.#e[this.#n]=="string"}isGlobstar(){return this.#e[this.#n]===L2.GLOBSTAR}isRegExp(){return this.#e[this.#n]instanceof RegExp}globString(){return this.#S=this.#S||(this.#n===0?this.isAbsolute()?this.#r[0]+this.#r.slice(1).join("/"):this.#r.join("/"):this.#r.slice(this.#n).join("/"))}hasMore(){return this.length>this.#n+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new t(this.#e,this.#r,this.#n+1,this.#t),this.#o.#l=this.#l,this.#o.#c=this.#c,this.#o.#u=this.#u,this.#o):this.#o=null}isUNC(){let e=this.#e;return this.#c!==void 0?this.#c:this.#c=this.#t==="win32"&&this.#n===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#u!==void 0?this.#u:this.#u=this.#t==="win32"&&this.#n===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#l!==void 0?this.#l:this.#l=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#n===0?e:""}checkFollowGlobstar(){return!(this.#n===0||!this.isGlobstar()||!this.#a)}markFollowGlobstar(){return this.#n===0||!this.isGlobstar()||!this.#a?!1:(this.#a=!1,!0)}};Do.Pattern=hf});var gf=g(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.Ignore=void 0;var O0=Ft(),k2=df(),M2=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",pf=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:r,nocase:i,noext:n,noglobstar:s,platform:o=M2}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:r,nocase:i,noext:n,noglobstar:s,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of e)this.add(a)}add(e){let r=new O0.Minimatch(e,this.mmopts);for(let i=0;i<r.set.length;i++){let n=r.set[i],s=r.globParts[i];if(!n||!s)throw new Error("invalid pattern object");for(;n[0]==="."&&s[0]===".";)n.shift(),s.shift();let o=new k2.Pattern(n,s,0,this.platform),a=new O0.Minimatch(o.globString(),this.mmopts),l=s[s.length-1]==="**",u=o.isAbsolute();u?this.absolute.push(a):this.relative.push(a),l&&(u?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(e){let r=e.fullpath(),i=`${r}/`,n=e.relative()||".",s=`${n}/`;for(let o of this.relative)if(o.match(n)||o.match(s))return!0;for(let o of this.absolute)if(o.match(r)||o.match(i))return!0;return!1}childrenIgnored(e){let r=e.fullpath()+"/",i=(e.relative()||".")+"/";for(let n of this.relativeChildren)if(n.match(i))return!0;for(let n of this.absoluteChildren)if(n.match(r))return!0;return!1}};Po.Ignore=pf});var D0=g(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.Processor=ut.SubWalks=ut.MatchRecord=ut.HasWalkedCache=void 0;var I0=Ft(),Lo=class t{store;constructor(e=new Map){this.store=e}copy(){return new t(new Map(this.store))}hasWalked(e,r){return this.store.get(e.fullpath())?.has(r.globString())}storeWalked(e,r){let i=e.fullpath(),n=this.store.get(i);n?n.add(r.globString()):this.store.set(i,new Set([r.globString()]))}};ut.HasWalkedCache=Lo;var No=class{store=new Map;add(e,r,i){let n=(r?2:0)|(i?1:0),s=this.store.get(e);this.store.set(e,s===void 0?n:n&s)}entries(){return[...this.store.entries()].map(([e,r])=>[e,!!(r&2),!!(r&1)])}};ut.MatchRecord=No;var Co=class{store=new Map;add(e,r){if(!e.canReaddir())return;let i=this.store.get(e);i?i.find(n=>n.globString()===r.globString())||i.push(r):this.store.set(e,[r])}get(e){let r=this.store.get(e);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};ut.SubWalks=Co;var _f=class t{hasWalkedCache;matches=new No;subwalks=new Co;patterns;follow;dot;opts;constructor(e,r){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=r?r.copy():new Lo}processPatterns(e,r){this.patterns=r;let i=r.map(n=>[e,n]);for(let[n,s]of i){this.hasWalkedCache.storeWalked(n,s);let o=s.root(),a=s.isAbsolute()&&this.opts.absolute!==!1;if(o){n=n.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let c=s.rest();if(c)s=c;else{this.matches.add(n,!0,!1);continue}}if(n.isENOENT())continue;let l,u,f=!1;for(;typeof(l=s.pattern())=="string"&&(u=s.rest());)n=n.resolve(l),s=u,f=!0;if(l=s.pattern(),u=s.rest(),f){if(this.hasWalkedCache.hasWalked(n,s))continue;this.hasWalkedCache.storeWalked(n,s)}if(typeof l=="string"){let c=l===".."||l===""||l===".";this.matches.add(n.resolve(l),a,c);continue}else if(l===I0.GLOBSTAR){(!n.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(n,s);let c=u?.pattern(),h=u?.rest();if(!u||(c===""||c===".")&&!h)this.matches.add(n,a,c===""||c===".");else if(c===".."){let d=n.parent||n;h?this.hasWalkedCache.hasWalked(d,h)||this.subwalks.add(d,h):this.matches.add(d,a,!0)}}else l instanceof RegExp&&this.subwalks.add(n,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(e,r){let i=this.subwalks.get(e),n=this.child();for(let s of r)for(let o of i){let a=o.isAbsolute(),l=o.pattern(),u=o.rest();l===I0.GLOBSTAR?n.testGlobstar(s,o,u,a):l instanceof RegExp?n.testRegExp(s,l,u,a):n.testString(s,l,u,a)}return n}testGlobstar(e,r,i,n){if((this.dot||!e.name.startsWith("."))&&(r.hasMore()||this.matches.add(e,n,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,r):e.isSymbolicLink()&&(i&&r.checkFollowGlobstar()?this.subwalks.add(e,i):r.markFollowGlobstar()&&this.subwalks.add(e,r)))),i){let s=i.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(e,s,i.rest(),n);else if(s===".."){let o=e.parent||e;this.subwalks.add(o,i)}else s instanceof RegExp&&this.testRegExp(e,s,i.rest(),n)}}testRegExp(e,r,i,n){r.test(e.name)&&(i?this.subwalks.add(e,i):this.matches.add(e,n,!1))}testString(e,r,i,n){e.isNamed(r)&&(i?this.subwalks.add(e,i):this.matches.add(e,n,!1))}};ut.Processor=_f});var N0=g(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.GlobStream=Bt.GlobWalker=Bt.GlobUtil=void 0;var F2=uf(),P0=gf(),L0=D0(),q2=(t,e)=>typeof t=="string"?new P0.Ignore([t],e):Array.isArray(t)?new P0.Ignore(t,e):t,Sn=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#r;#n;signal;maxDepth;includeChildMatches;constructor(e,r,i){if(this.patterns=e,this.path=r,this.opts=i,this.#n=!i.posix&&i.platform==="win32"?"\\":"/",this.includeChildMatches=i.includeChildMatches!==!1,(i.ignore||!this.includeChildMatches)&&(this.#r=q2(i.ignore??[],i),!this.includeChildMatches&&typeof this.#r.add!="function")){let n="cannot ignore child matches, ignore lacks add() method.";throw new Error(n)}this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#t(e){return this.seen.has(e)||!!this.#r?.ignored?.(e)}#o(e){return!!this.#r?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||await e.realpath(),!i)return;e=i}let s=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=await s.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(s,r)}matchCheckTest(e,r){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!r||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#t(e)?e:void 0}matchCheckSync(e,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||e.realpathSync(),!i)return;e=i}let s=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=s.realpathSync();o&&(o?.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(s,r)}matchFinish(e,r){if(this.#t(e))return;if(!this.includeChildMatches&&this.#r?.add){let s=`${e.relativePosix()}/**`;this.#r.add(s)}let i=this.opts.absolute===void 0?r:this.opts.absolute;this.seen.add(e);let n=this.opts.mark&&e.isDirectory()?this.#n:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(i){let s=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(s+n)}else{let s=this.opts.posix?e.relativePosix():e.relative(),o=this.opts.dotRelative&&!s.startsWith(".."+this.#n)?"."+this.#n:"";this.matchEmit(s?o+s+n:"."+n)}}async match(e,r,i){let n=await this.matchCheck(e,i);n&&this.matchFinish(n,r)}matchSync(e,r,i){let n=this.matchCheckSync(e,i);n&&this.matchFinish(n,r)}walkCB(e,r,i){this.signal?.aborted&&i(),this.walkCB2(e,r,new L0.Processor(this.opts),i)}walkCB2(e,r,i,n){if(this.#o(e))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2(e,r,i,n));return}i.processPatterns(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||(s++,this.match(a,l,u).then(()=>o()));for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirCached();a.calledReaddir()?this.walkCB3(a,l,i,o):a.readdirCB((u,f)=>this.walkCB3(a,f,i,o),!0)}o()}walkCB3(e,r,i,n){i=i.filterEntries(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||(s++,this.match(a,l,u).then(()=>o()));for(let[a,l]of i.subwalks.entries())s++,this.walkCB2(a,l,i.child(),o);o()}walkCBSync(e,r,i){this.signal?.aborted&&i(),this.walkCB2Sync(e,r,new L0.Processor(this.opts),i)}walkCB2Sync(e,r,i,n){if(this.#o(e))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2Sync(e,r,i,n));return}i.processPatterns(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||this.matchSync(a,l,u);for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirSync();this.walkCB3Sync(a,l,i,o)}o()}walkCB3Sync(e,r,i,n){i=i.filterEntries(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||this.matchSync(a,l,u);for(let[a,l]of i.subwalks.entries())s++,this.walkCB2Sync(a,l,i.child(),o);o()}};Bt.GlobUtil=Sn;var yf=class extends Sn{matches=new Set;constructor(e,r,i){super(e,r,i)}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,r)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?r(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}};Bt.GlobWalker=yf;var mf=class extends Sn{results;constructor(e,r,i){super(e,r,i),this.results=new F2.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}};Bt.GlobStream=mf});var wf=g(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.Glob=void 0;var j2=Ft(),B2=P("url"),ko=A0(),U2=df(),Mo=N0(),W2=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",bf=class{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,r){if(!r)throw new TypeError("glob options required");if(this.withFileTypes=!!r.withFileTypes,this.signal=r.signal,this.follow=!!r.follow,this.dot=!!r.dot,this.dotRelative=!!r.dotRelative,this.nodir=!!r.nodir,this.mark=!!r.mark,r.cwd?(r.cwd instanceof URL||r.cwd.startsWith("file://"))&&(r.cwd=(0,B2.fileURLToPath)(r.cwd)):this.cwd="",this.cwd=r.cwd||"",this.root=r.root,this.magicalBraces=!!r.magicalBraces,this.nobrace=!!r.nobrace,this.noext=!!r.noext,this.realpath=!!r.realpath,this.absolute=r.absolute,this.includeChildMatches=r.includeChildMatches!==!1,this.noglobstar=!!r.noglobstar,this.matchBase=!!r.matchBase,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:1/0,this.stat=!!r.stat,this.ignore=r.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(r.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(l=>l.includes("/")?l:`./**/${l}`)}if(this.pattern=e,this.platform=r.platform||W2,this.opts={...r,platform:this.platform},r.scurry){if(this.scurry=r.scurry,r.nocase!==void 0&&r.nocase!==r.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let l=r.platform==="win32"?ko.PathScurryWin32:r.platform==="darwin"?ko.PathScurryDarwin:r.platform?ko.PathScurryPosix:ko.PathScurry;this.scurry=new l(this.cwd,{nocase:r.nocase,fs:r.fs})}this.nocase=this.scurry.nocase;let i=this.platform==="darwin"||this.platform==="win32",n={...r,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:i,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(l=>new j2.Minimatch(l,n)),[o,a]=s.reduce((l,u)=>(l[0].push(...u.set),l[1].push(...u.globParts),l),[[],[]]);this.patterns=o.map((l,u)=>{let f=a[u];if(!f)throw new Error("invalid pattern object");return new U2.Pattern(l,f,0,this.platform)})}async walk(){return[...await new Mo.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 Mo.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 Mo.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 Mo.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()}};Fo.Glob=bf});var Sf=g(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.hasMagic=void 0;var z2=Ft(),G2=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let r of t)if(new z2.Minimatch(r,e).hasMagic())return!0;return!1};qo.hasMagic=G2});var F0=g(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.glob=U.sync=U.iterate=U.iterateSync=U.stream=U.streamSync=U.Ignore=U.hasMagic=U.Glob=U.unescape=U.escape=void 0;U.globStreamSync=En;U.globStream=Ef;U.globSync=vf;U.globIterateSync=vn;U.globIterate=xf;var C0=Ft(),gr=wf(),$2=Sf(),M0=Ft();Object.defineProperty(U,"escape",{enumerable:!0,get:function(){return M0.escape}});Object.defineProperty(U,"unescape",{enumerable:!0,get:function(){return M0.unescape}});var H2=wf();Object.defineProperty(U,"Glob",{enumerable:!0,get:function(){return H2.Glob}});var V2=Sf();Object.defineProperty(U,"hasMagic",{enumerable:!0,get:function(){return V2.hasMagic}});var Y2=gf();Object.defineProperty(U,"Ignore",{enumerable:!0,get:function(){return Y2.Ignore}});function En(t,e={}){return new gr.Glob(t,e).streamSync()}function Ef(t,e={}){return new gr.Glob(t,e).stream()}function vf(t,e={}){return new gr.Glob(t,e).walkSync()}async function k0(t,e={}){return new gr.Glob(t,e).walk()}function vn(t,e={}){return new gr.Glob(t,e).iterateSync()}function xf(t,e={}){return new gr.Glob(t,e).iterate()}U.streamSync=En;U.stream=Object.assign(Ef,{sync:En});U.iterateSync=vn;U.iterate=Object.assign(xf,{sync:vn});U.sync=Object.assign(vf,{stream:En,iterate:vn});U.glob=Object.assign(k0,{glob:k0,globSync:vf,sync:U.sync,globStream:Ef,stream:U.stream,globStreamSync:En,streamSync:U.streamSync,globIterate:xf,iterate:U.iterate,globIterateSync:vn,iterateSync:U.iterateSync,Glob:gr.Glob,hasMagic:$2.hasMagic,escape:C0.escape,unescape:C0.unescape});U.glob.glob=U.glob});var U0=g((aU,B0)=>{"use strict";var j0=$a(),ri=P("path"),Tf=fb(),K2=Tw(),Z2=Mw(),Q2=zw(),X2=F0(),_r=B0.exports={},q0=/[\/\\]/g,J2=function(t,e){var r=[];return Tf(t).forEach(function(i){var n=i.indexOf("!")===0;n&&(i=i.slice(1));var s=e(i);n?r=K2(r,s):r=Z2(r,s)}),r};_r.exists=function(){var t=ri.join.apply(ri,arguments);return j0.existsSync(t)};_r.expand=function(...t){var e=Q2(t[0])?t.shift():{},r=Array.isArray(t[0])?t[0]:t;if(r.length===0)return[];var i=J2(r,function(n){return X2.sync(n,e)});return e.filter&&(i=i.filter(function(n){n=ri.join(e.cwd||"",n);try{return typeof e.filter=="function"?e.filter(n):j0.statSync(n)[e.filter]()}catch{return!1}})),i};_r.expandMapping=function(t,e,r){r=Object.assign({rename:function(s,o){return ri.join(s||"",o)}},r);var i=[],n={};return _r.expand(r,t).forEach(function(s){var o=s;r.flatten&&(o=ri.basename(o)),r.ext&&(o=o.replace(/(\.[^\/]*)?$/,r.ext));var a=r.rename(e,o,r);r.cwd&&(s=ri.join(r.cwd,s)),a=a.replace(q0,"/"),s=s.replace(q0,"/"),n[a]?n[a].src.push(s):(i.push({src:[s],dest:a}),n[a]=i[i.length-1])}),i};_r.normalizeFilesArray=function(t){var e=[];return t.forEach(function(r){var i;("src"in r||"dest"in r)&&e.push(r)}),e.length===0?[]:(e=_(e).chain().forEach(function(r){!("src"in r)||!r.src||(Array.isArray(r.src)?r.src=Tf(r.src):r.src=[r.src])}).map(function(r){var i=Object.assign({},r);if(delete i.src,delete i.dest,r.expand)return _r.expandMapping(r.src,r.dest,i).map(function(s){var o=Object.assign({},r);return o.orig=Object.assign({},r),o.src=s.src,o.dest=s.dest,["expand","cwd","flatten","rename","ext"].forEach(function(a){delete o[a]}),o});var n=Object.assign({},r);return n.orig=Object.assign({},r),"src"in n&&Object.defineProperty(n,"src",{enumerable:!0,get:function s(){var o;return"result"in s||(o=r.src,o=Array.isArray(o)?Tf(o):[o],s.result=_r.expand(i,o)),s.result}}),"dest"in n&&(n.dest=r.dest),n}).flatten().value(),e)}});var ii=g((uU,G0)=>{"use strict";var Rf=$a(),W0=P("path"),eF=is(),tF=dp(),z0=gl(),rF=Vg(),lU=P("stream").Stream,iF=cr().PassThrough,ke=G0.exports={};ke.file=U0();ke.collectStream=function(t,e){var r=[],i=0;t.on("error",e),t.on("data",function(n){r.push(n),i+=n.length}),t.on("end",function(){var n=Buffer.alloc(i),s=0;r.forEach(function(o){o.copy(n,s),s+=o.length}),e(null,n)})};ke.dateify=function(t){return t=t||new Date,t instanceof Date?t=t:typeof t=="string"?t=new Date(t):t=new Date,t};ke.defaults=function(t,e,r){var i=arguments;return i[0]=i[0]||{},rF(...i)};ke.isStream=function(t){return eF(t)};ke.lazyReadStream=function(t){return new tF.Readable(function(){return Rf.createReadStream(t)})};ke.normalizeInputSource=function(t){return t===null?Buffer.alloc(0):typeof t=="string"?Buffer.from(t):ke.isStream(t)?t.pipe(new iF):t};ke.sanitizePath=function(t){return z0(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};ke.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};ke.unixifyPath=function(t){return z0(t,!1).replace(/^\w+:/,"")};ke.walkdir=function(t,e,r){var i=[];typeof e=="function"&&(r=e,e=t),Rf.readdir(t,function(n,s){var o=0,a,l;if(n)return r(n);(function u(){if(a=s[o++],!a)return r(null,i);l=W0.join(t,a),Rf.stat(l,function(f,c){i.push({path:l,relative:W0.relative(e,l).replace(/\\/g,"/"),stats:c}),c&&c.isDirectory()?ke.walkdir(l,e,function(h,d){if(h)return r(h);d.forEach(function(m){i.push(m)}),u()}):u()})})()})}});var Y0=g((H0,V0)=>{"use strict";var nF=P("util"),sF={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function $0(t,e){Error.captureStackTrace(this,this.constructor),this.message=sF[t]||t,this.code=t,this.data=e}nF.inherits($0,Error);H0=V0.exports=$0});var J0=g((fU,X0)=>{"use strict";var If=P("fs"),Z0=oh(),K0=(sd(),JE(nd)),Af=P("path"),ft=ii(),oF=P("util").inherits,ae=Y0(),Q0=cr().Transform,Of=process.platform==="win32",G=function(t,e){if(!(this instanceof G))return new G(t,e);typeof t!="string"&&(e=t,t="zip"),e=this.options=ft.defaults(e,{highWaterMark:1024*1024,statConcurrency:4}),Q0.call(this,e),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=K0.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=K0.queue(this._onStatQueueTask.bind(this),e.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};oF(G,Q0);G.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};G.prototype._append=function(t,e){e=e||{};var r={source:null,filepath:t};e.name||(e.name=t),e.sourcePath=t,r.data=e,this._entriesCount++,e.stats&&e.stats instanceof If.Stats?(r=this._updateQueueTaskWithStats(r,e.stats),r&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(r))):this._statQueue.push(r)};G.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)};G.prototype._maybeFinalize=function(){return this._state.finalizing||this._state.finalized||this._state.aborted?!1:this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()?(this._finalize(),!0):!1};G.prototype._moduleAppend=function(t,e,r){if(this._state.aborted){r();return}this._module.append(t,e,function(i){if(this._task=null,this._state.aborted){this._shutdown();return}if(i){this.emit("error",i),setImmediate(r);return}this.emit("entry",e),this._entriesProcessedCount++,e.stats&&e.stats.size&&(this._fsEntriesProcessedBytes+=e.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(r)}.bind(this))};G.prototype._moduleFinalize=function(){typeof this._module.finalize=="function"?this._module.finalize():typeof this._module.end=="function"?this._module.end():this.emit("error",new ae("NOENDMETHOD"))};G.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};G.prototype._moduleSupports=function(t){return!this._module.supports||!this._module.supports[t]?!1:this._module.supports[t]};G.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};G.prototype._normalizeEntryData=function(t,e){t=ft.defaults(t,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),e&&t.stats===!1&&(t.stats=e);var r=t.type==="directory";return t.name&&(typeof t.prefix=="string"&&t.prefix!==""&&(t.name=t.prefix+"/"+t.name,t.prefix=null),t.name=ft.sanitizePath(t.name),t.type!=="symlink"&&t.name.slice(-1)==="/"?(r=!0,t.type="directory"):r&&(t.name+="/")),typeof t.mode=="number"?Of?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(Of?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,Of&&r&&(t.mode=493)):t.mode===null&&(t.mode=r?493:420),t.stats&&t.date===null?t.date=t.stats.mtime:t.date=ft.dateify(t.date),t};G.prototype._onModuleError=function(t){this.emit("error",t)};G.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()};G.prototype._onQueueTask=function(t,e){var r=()=>{t.data.callback&&t.data.callback(),e()};if(this._state.finalizing||this._state.finalized||this._state.aborted){r();return}this._task=t,this._moduleAppend(t.source,t.data,r)};G.prototype._onStatQueueTask=function(t,e){if(this._state.finalizing||this._state.finalized||this._state.aborted){e();return}If.lstat(t.filepath,function(r,i){if(this._state.aborted){setImmediate(e);return}if(r){this._entriesCount--,this.emit("warning",r),setImmediate(e);return}t=this._updateQueueTaskWithStats(t,i),t&&(i.size&&(this._fsEntriesTotalBytes+=i.size),this._queue.push(t)),setImmediate(e)}.bind(this))};G.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};G.prototype._transform=function(t,e,r){t&&(this._pointer+=t.length),r(null,t)};G.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=ft.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=ft.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=ft.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else if(e.isSymbolicLink()&&this._moduleSupports("symlink")){var r=If.readlinkSync(t.filepath),i=Af.dirname(t.filepath);t.data.type="symlink",t.data.linkname=Af.relative(i,Af.resolve(i,r)),t.data.sourceType="buffer",t.source=Buffer.concat([])}else return e.isDirectory()?this.emit("warning",new ae("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new ae("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new ae("ENTRYNOTSUPPORTED",t.data)),null;return t.data=this._normalizeEntryData(t.data,e),t};G.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};G.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(e=this._normalizeEntryData(e),typeof e.name!="string"||e.name.length===0)return this.emit("error",new ae("ENTRYNAMEREQUIRED")),this;if(e.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new ae("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=ft.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else if(ft.isStream(t))e.sourceType="stream";else return this.emit("error",new ae("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;return this._entriesCount++,this._queue.push({data:e,source:t}),this};G.prototype.directory=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new ae("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,e===!1?e="":typeof e!="string"&&(e=t);var i=!1;typeof r=="function"?(i=r,r={}):typeof r!="object"&&(r={});var n={stat:!0,dot:!0};function s(){this._pending--,this._maybeFinalize()}function o(u){this.emit("error",u)}function a(u){l.pause();var f=!1,c=Object.assign({},r);c.name=u.relative,c.prefix=e,c.stats=u.stat,c.callback=l.resume.bind(l);try{if(i){if(c=i(c),c===!1)f=!0;else if(typeof c!="object")throw new ae("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}}catch(h){this.emit("error",h);return}if(f){l.resume();return}this._append(u.absolute,c)}var l=Z0(t,n);return l.on("error",o.bind(this)),l.on("match",a.bind(this)),l.on("end",s.bind(this)),this};G.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new ae("QUEUECLOSED")),this):typeof t!="string"||t.length===0?(this.emit("error",new ae("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)};G.prototype.glob=function(t,e,r){this._pending++,e=ft.defaults(e,{stat:!0,pattern:t});function i(){this._pending--,this._maybeFinalize()}function n(a){this.emit("error",a)}function s(a){o.pause();var l=Object.assign({},r);l.callback=o.resume.bind(o),l.stats=a.stat,l.name=a.relative,this._append(a.absolute,l)}var o=Z0(e.cwd||".",e);return o.on("error",n.bind(this)),o.on("match",s.bind(this)),o.on("end",i.bind(this)),this};G.prototype.finalize=function(){if(this._state.aborted){var t=new ae("ABORTED");return this.emit("error",t),Promise.reject(t)}if(this._state.finalize){var e=new ae("FINALIZING");return this.emit("error",e),Promise.reject(e)}this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var r=this;return new Promise(function(i,n){var s;r._module.on("end",function(){s||i()}),r._module.on("error",function(o){s=!0,n(o)})})};G.prototype.setFormat=function(t){return this._format?(this.emit("error",new ae("FORMATSET")),this):(this._format=t,this)};G.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new ae("ABORTED")),this):this._state.module?(this.emit("error",new ae("MODULESET")),this):(this._module=t,this._modulePipe(),this)};G.prototype.symlink=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new ae("SYMLINKFILEPATHREQUIRED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new ae("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new ae("SYMLINKNOTSUPPORTED",{filepath:t})),this;var i={};return i.type="symlink",i.name=t.replace(/\\/g,"/"),i.linkname=e.replace(/\\/g,"/"),i.sourceType="buffer",typeof r=="number"&&(i.mode=r),this._entriesCount++,this._queue.push({data:i,source:Buffer.concat([])}),this};G.prototype.pointer=function(){return this._pointer};G.prototype.use=function(t){return this._streams.push(t),this};X0.exports=G});var Bo=g((cU,eS)=>{"use strict";var jo=eS.exports=function(){};jo.prototype.getName=function(){};jo.prototype.getSize=function(){};jo.prototype.getLastModifiedDate=function(){};jo.prototype.isDirectory=function(){}});var Uo=g((hU,tS)=>{"use strict";var Ge=tS.exports={};Ge.dateToDos=function(t,e){e=e||!1;var r=e?t.getFullYear():t.getUTCFullYear();if(r<1980)return 2162688;if(r>=2044)return 2141175677;var i={year:r,month:e?t.getMonth():t.getUTCMonth(),date:e?t.getDate():t.getUTCDate(),hours:e?t.getHours():t.getUTCHours(),minutes:e?t.getMinutes():t.getUTCMinutes(),seconds:e?t.getSeconds():t.getUTCSeconds()};return i.year-1980<<25|i.month+1<<21|i.date<<16|i.hours<<11|i.minutes<<5|i.seconds/2};Ge.dosToDate=function(t){return new Date((t>>25&127)+1980,(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(t&31)<<1)};Ge.fromDosTime=function(t){return Ge.dosToDate(t.readUInt32LE(0))};Ge.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e};Ge.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((t&65535)>>>0,0),e};Ge.getShortBytesValue=function(t,e){return t.readUInt16LE(e)};Ge.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((t&4294967295)>>>0,0),e};Ge.getLongBytesValue=function(t,e){return t.readUInt32LE(e)};Ge.toDosTime=function(t){return Ge.getLongBytes(Ge.dateToDos(t))}});var Df=g((dU,aS)=>{"use strict";var rS=Uo(),iS=8,nS=1,aF=4,lF=2,sS=64,oS=2048,Ee=aS.exports=function(){return this instanceof Ee?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new Ee};Ee.prototype.encode=function(){return rS.getShortBytes((this.descriptor?iS:0)|(this.utf8?oS:0)|(this.encryption?nS:0)|(this.strongEncryption?sS:0))};Ee.prototype.parse=function(t,e){var r=rS.getShortBytesValue(t,e),i=new Ee;return i.useDataDescriptor((r&iS)!==0),i.useUTF8ForNames((r&oS)!==0),i.useStrongEncryption((r&sS)!==0),i.useEncryption((r&nS)!==0),i.setSlidingDictionarySize((r&lF)!==0?8192:4096),i.setNumberOfShannonFanoTrees((r&aF)!==0?3:2),i};Ee.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t};Ee.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};Ee.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t};Ee.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};Ee.prototype.useDataDescriptor=function(t){this.descriptor=t};Ee.prototype.usesDataDescriptor=function(){return this.descriptor};Ee.prototype.useEncryption=function(t){this.encryption=t};Ee.prototype.usesEncryption=function(){return this.encryption};Ee.prototype.useStrongEncryption=function(t){this.strongEncryption=t};Ee.prototype.usesStrongEncryption=function(){return this.strongEncryption};Ee.prototype.useUTF8ForNames=function(t){this.utf8=t};Ee.prototype.usesUTF8ForNames=function(){return this.utf8}});var uS=g((pU,lS)=>{"use strict";lS.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}});var Pf=g((gU,fS)=>{"use strict";fS.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}});var Lf=g((_U,gS)=>{"use strict";var uF=P("util").inherits,fF=gl(),hS=Bo(),dS=Df(),cS=uS(),Pe=Pf(),pS=Uo(),q=gS.exports=function(t){if(!(this instanceof q))return new q(t);hS.call(this),this.platform=Pe.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new dS,this.crc=0,this.time=-1,this.minver=Pe.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};uF(q,hS);q.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};q.prototype.getComment=function(){return this.comment!==null?this.comment:""};q.prototype.getCompressedSize=function(){return this.csize};q.prototype.getCrc=function(){return this.crc};q.prototype.getExternalAttributes=function(){return this.exattr};q.prototype.getExtra=function(){return this.extra!==null?this.extra:Pe.EMPTY};q.prototype.getGeneralPurposeBit=function(){return this.gpb};q.prototype.getInternalAttributes=function(){return this.inattr};q.prototype.getLastModifiedDate=function(){return this.getTime()};q.prototype.getLocalFileDataExtra=function(){return this.getExtra()};q.prototype.getMethod=function(){return this.method};q.prototype.getName=function(){return this.name};q.prototype.getPlatform=function(){return this.platform};q.prototype.getSize=function(){return this.size};q.prototype.getTime=function(){return this.time!==-1?pS.dosToDate(this.time):-1};q.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};q.prototype.getUnixMode=function(){return this.platform!==Pe.PLATFORM_UNIX?0:this.getExternalAttributes()>>Pe.SHORT_SHIFT&Pe.SHORT_MASK};q.prototype.getVersionNeededToExtract=function(){return this.minver};q.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t};q.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t};q.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t};q.prototype.setExternalAttributes=function(t){this.exattr=t>>>0};q.prototype.setExtra=function(t){this.extra=t};q.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof dS))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t};q.prototype.setInternalAttributes=function(t){this.inattr=t};q.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t};q.prototype.setName=function(t,e=!1){t=fF(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t};q.prototype.setPlatform=function(t){this.platform=t};q.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t};q.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=pS.dateToDos(t,e)};q.prototype.setUnixMode=function(t){t|=this.isDirectory()?Pe.S_IFDIR:Pe.S_IFREG;var e=0;e|=t<<Pe.SHORT_SHIFT|(this.isDirectory()?Pe.S_DOS_D:Pe.S_DOS_A),this.setExternalAttributes(e),this.mode=t&Pe.MODE_MASK,this.platform=Pe.PLATFORM_UNIX};q.prototype.setVersionNeededToExtract=function(t){this.minver=t};q.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};q.prototype.isUnixSymlink=function(){return(this.getUnixMode()&cS.FILE_TYPE_FLAG)===cS.LINK_FLAG};q.prototype.isZip64=function(){return this.csize>Pe.ZIP64_MAGIC||this.size>Pe.ZIP64_MAGIC}});var Nf=g((mU,_S)=>{"use strict";var yU=P("stream").Stream,cF=cr().PassThrough,hF=is(),dF=_S.exports={};dF.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(hF(t)&&!t._readableState){var e=new cF;return t.pipe(e),e}return t}});var kf=g((bU,yS)=>{"use strict";var pF=P("util").inherits,gF=is(),Cf=cr().Transform,_F=Bo(),yF=Nf(),Me=yS.exports=function(t){if(!(this instanceof Me))return new Me(t);Cf.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};pF(Me,Cf);Me.prototype._appendBuffer=function(t,e,r){};Me.prototype._appendStream=function(t,e,r){};Me.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)};Me.prototype._finish=function(t){};Me.prototype._normalizeEntry=function(t){};Me.prototype._transform=function(t,e,r){r(null,t)};Me.prototype.entry=function(t,e,r){if(e=e||null,typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),!(t instanceof _F)){r(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){r(new Error("unacceptable entry after finish"));return}if(this._archive.processing){r(new Error("already processing an entry"));return}if(this._archive.processing=!0,this._normalizeEntry(t),this._entry=t,e=yF.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,r);else if(gF(e))this._appendStream(t,e,r);else{this._archive.processing=!1,r(new Error("input source must be valid Stream or Buffer instance"));return}return this};Me.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};Me.prototype.getBytesWritten=function(){return this.offset};Me.prototype.write=function(t,e){return t&&(this.offset+=t.length),Cf.prototype.write.call(this,t,e)}});var Wo=g(Mf=>{"use strict";var mS;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof Mf=="object"?t(Mf):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t(mS={}):t(mS={})})(function(t){t.version="1.2.2";function e(){for(var x=0,O=new Array(256),w=0;w!=256;++w)x=w,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,O[w]=x;return typeof Int32Array<"u"?new Int32Array(O):O}var r=e();function i(x){var O=0,w=0,R=0,A=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(R=0;R!=256;++R)A[R]=x[R];for(R=0;R!=256;++R)for(w=x[R],O=256+R;O<4096;O+=256)w=A[O]=w>>>8^x[w&255];var N=[];for(R=1;R!=16;++R)N[R-1]=typeof Int32Array<"u"?A.subarray(R*256,R*256+256):A.slice(R*256,R*256+256);return N}var n=i(r),s=n[0],o=n[1],a=n[2],l=n[3],u=n[4],f=n[5],c=n[6],h=n[7],d=n[8],m=n[9],p=n[10],v=n[11],y=n[12],b=n[13],E=n[14];function S(x,O){for(var w=O^-1,R=0,A=x.length;R<A;)w=w>>>8^r[(w^x.charCodeAt(R++))&255];return~w}function T(x,O){for(var w=O^-1,R=x.length-15,A=0;A<R;)w=E[x[A++]^w&255]^b[x[A++]^w>>8&255]^y[x[A++]^w>>16&255]^v[x[A++]^w>>>24]^p[x[A++]]^m[x[A++]]^d[x[A++]]^h[x[A++]]^c[x[A++]]^f[x[A++]]^u[x[A++]]^l[x[A++]]^a[x[A++]]^o[x[A++]]^s[x[A++]]^r[x[A++]];for(R+=15;A<R;)w=w>>>8^r[(w^x[A++])&255];return~w}function D(x,O){for(var w=O^-1,R=0,A=x.length,N=0,z=0;R<A;)N=x.charCodeAt(R++),N<128?w=w>>>8^r[(w^N)&255]:N<2048?(w=w>>>8^r[(w^(192|N>>6&31))&255],w=w>>>8^r[(w^(128|N&63))&255]):N>=55296&&N<57344?(N=(N&1023)+64,z=x.charCodeAt(R++)&1023,w=w>>>8^r[(w^(240|N>>8&7))&255],w=w>>>8^r[(w^(128|N>>2&63))&255],w=w>>>8^r[(w^(128|z>>6&15|(N&3)<<4))&255],w=w>>>8^r[(w^(128|z&63))&255]):(w=w>>>8^r[(w^(224|N>>12&15))&255],w=w>>>8^r[(w^(128|N>>6&63))&255],w=w>>>8^r[(w^(128|N&63))&255]);return~w}t.table=r,t.bstr=S,t.buf=T,t.str=D})});var wS=g((SU,bS)=>{"use strict";var{Transform:mF}=cr(),bF=Wo(),Ff=class extends mF{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,r,i){e&&(this.checksum=bF.buf(e,this.checksum)>>>0,this.rawSize+=e.length),i(null,e)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}};bS.exports=Ff});var ES=g((EU,SS)=>{"use strict";var{DeflateRaw:wF}=P("zlib"),SF=Wo(),qf=class extends wF{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(e,r){return e&&(this.compressedSize+=e.length),super.push(e,r)}_transform(e,r,i){e&&(this.checksum=SF.buf(e,this.checksum)>>>0,this.rawSize+=e.length),super._transform(e,r,i)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(e=!1){return e?this.compressedSize:this.rawSize}};SS.exports=qf});var jf=g((vU,vS)=>{"use strict";vS.exports={CRC32Stream:wS(),DeflateCRC32Stream:ES()}});var RS=g((AU,TS)=>{"use strict";var EF=P("util").inherits,vF=Wo(),{CRC32Stream:xF}=jf(),{DeflateCRC32Stream:TF}=jf(),xS=kf(),xU=Lf(),TU=Df(),C=Pf(),RU=Nf(),L=Uo(),_e=TS.exports=function(t){if(!(this instanceof _e))return new _e(t);t=this.options=this._defaults(t),xS.call(this,t),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:t.forceZip64,forceLocalTime:t.forceLocalTime}};EF(_e,xS);_e.prototype._afterAppend=function(t){this._entries.push(t),t.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(t),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()};_e.prototype._appendBuffer=function(t,e,r){e.length===0&&t.setMethod(C.METHOD_STORED);var i=t.getMethod();if(i===C.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(vF.buf(e)>>>0)),this._writeLocalFileHeader(t),i===C.METHOD_STORED){this.write(e),this._afterAppend(t),r(null,t);return}else if(i===C.METHOD_DEFLATED){this._smartStream(t,r).end(e);return}else{r(new Error("compression method "+i+" not implemented"));return}};_e.prototype._appendStream=function(t,e,r){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(C.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(t);var i=this._smartStream(t,r);e.once("error",function(n){i.emit("error",n),i.end()}),e.pipe(i)};_e.prototype._defaults=function(t){return typeof t!="object"&&(t={}),typeof t.zlib!="object"&&(t.zlib={}),typeof t.zlib.level!="number"&&(t.zlib.level=C.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t};_e.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(t){this._writeCentralFileHeader(t)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()};_e.prototype._normalizeEntry=function(t){t.getMethod()===-1&&t.setMethod(C.METHOD_DEFLATED),t.getMethod()===C.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(C.MIN_VERSION_DATA_DESCRIPTOR)),t.getTime()===-1&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}};_e.prototype._smartStream=function(t,e){var r=t.getMethod()===C.METHOD_DEFLATED,i=r?new TF(this.options.zlib):new xF,n=null;function s(){var o=i.digest().readUInt32BE(0);t.setCrc(o),t.setSize(i.size()),t.setCompressedSize(i.size(!0)),this._afterAppend(t),e(n,t)}return i.once("end",s.bind(this)),i.once("error",function(o){n=o}),i.pipe(this,{end:!1}),i};_e.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(t=C.ZIP64_MAGIC_SHORT,e=C.ZIP64_MAGIC,r=C.ZIP64_MAGIC),this.write(L.getLongBytes(C.SIG_EOCD)),this.write(C.SHORT_ZERO),this.write(C.SHORT_ZERO),this.write(L.getShortBytes(t)),this.write(L.getShortBytes(t)),this.write(L.getLongBytes(e)),this.write(L.getLongBytes(r));var i=this.getComment(),n=Buffer.byteLength(i);this.write(L.getShortBytes(n)),this.write(i)};_e.prototype._writeCentralDirectoryZip64=function(){this.write(L.getLongBytes(C.SIG_ZIP64_EOCD)),this.write(L.getEightBytes(44)),this.write(L.getShortBytes(C.MIN_VERSION_ZIP64)),this.write(L.getShortBytes(C.MIN_VERSION_ZIP64)),this.write(C.LONG_ZERO),this.write(C.LONG_ZERO),this.write(L.getEightBytes(this._entries.length)),this.write(L.getEightBytes(this._entries.length)),this.write(L.getEightBytes(this._archive.centralLength)),this.write(L.getEightBytes(this._archive.centralOffset)),this.write(L.getLongBytes(C.SIG_ZIP64_EOCD_LOC)),this.write(C.LONG_ZERO),this.write(L.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(L.getLongBytes(1))};_e.prototype._writeCentralFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),i=t._offsets.file,n=t.getSize(),s=t.getCompressedSize();if(t.isZip64()||i>C.ZIP64_MAGIC){n=C.ZIP64_MAGIC,s=C.ZIP64_MAGIC,i=C.ZIP64_MAGIC,t.setVersionNeededToExtract(C.MIN_VERSION_ZIP64);var o=Buffer.concat([L.getShortBytes(C.ZIP64_EXTRA_ID),L.getShortBytes(24),L.getEightBytes(t.getSize()),L.getEightBytes(t.getCompressedSize()),L.getEightBytes(t._offsets.file)],28);t.setExtra(o)}this.write(L.getLongBytes(C.SIG_CFH)),this.write(L.getShortBytes(t.getPlatform()<<8|C.VERSION_MADEBY)),this.write(L.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(L.getShortBytes(r)),this.write(L.getLongBytes(t.getTimeDos())),this.write(L.getLongBytes(t.getCrc())),this.write(L.getLongBytes(s)),this.write(L.getLongBytes(n));var a=t.getName(),l=t.getComment(),u=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(a=Buffer.from(a),l=Buffer.from(l)),this.write(L.getShortBytes(a.length)),this.write(L.getShortBytes(u.length)),this.write(L.getShortBytes(l.length)),this.write(C.SHORT_ZERO),this.write(L.getShortBytes(t.getInternalAttributes())),this.write(L.getLongBytes(t.getExternalAttributes())),this.write(L.getLongBytes(i)),this.write(a),this.write(u),this.write(l)};_e.prototype._writeDataDescriptor=function(t){this.write(L.getLongBytes(C.SIG_DD)),this.write(L.getLongBytes(t.getCrc())),t.isZip64()?(this.write(L.getEightBytes(t.getCompressedSize())),this.write(L.getEightBytes(t.getSize()))):(this.write(L.getLongBytes(t.getCompressedSize())),this.write(L.getLongBytes(t.getSize())))};_e.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),i=t.getName(),n=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(C.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(i=Buffer.from(i)),t._offsets.file=this.offset,this.write(L.getLongBytes(C.SIG_LFH)),this.write(L.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(L.getShortBytes(r)),this.write(L.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(C.LONG_ZERO),this.write(C.LONG_ZERO),this.write(C.LONG_ZERO)):(this.write(L.getLongBytes(t.getCrc())),this.write(L.getLongBytes(t.getCompressedSize())),this.write(L.getLongBytes(t.getSize()))),this.write(L.getShortBytes(i.length)),this.write(L.getShortBytes(n.length)),this.write(i),this.write(n),t._offsets.contents=this.offset};_e.prototype.getComment=function(t){return this._archive.comment!==null?this._archive.comment:""};_e.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>C.ZIP64_MAGIC_SHORT||this._archive.centralLength>C.ZIP64_MAGIC||this._archive.centralOffset>C.ZIP64_MAGIC};_e.prototype.setComment=function(t){this._archive.comment=t}});var Bf=g((OU,AS)=>{"use strict";AS.exports={ArchiveEntry:Bo(),ZipArchiveEntry:Lf(),ArchiveOutputStream:kf(),ZipArchiveOutputStream:RS()}});var IS=g((IU,OS)=>{"use strict";var RF=P("util").inherits,Wf=Bf().ZipArchiveOutputStream,AF=Bf().ZipArchiveEntry,Uf=ii(),ni=OS.exports=function(t){if(!(this instanceof ni))return new ni(t);t=this.options=t||{},t.zlib=t.zlib||{},Wf.call(this,t),typeof t.level=="number"&&t.level>=0&&(t.zlib.level=t.level,delete t.level),!t.forceZip64&&typeof t.zlib.level=="number"&&t.zlib.level===0&&(t.store=!0),t.namePrependSlash=t.namePrependSlash||!1,t.comment&&t.comment.length>0&&this.setComment(t.comment)};RF(ni,Wf);ni.prototype._normalizeFileData=function(t){t=Uf.defaults(t,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var e=t.type==="directory",r=t.type==="symlink";return t.name&&(t.name=Uf.sanitizePath(t.name),!r&&t.name.slice(-1)==="/"?(e=!0,t.type="directory"):e&&(t.name+="/")),(e||r)&&(t.store=!0),t.date=Uf.dateify(t.date),t};ni.prototype.entry=function(t,e,r){if(typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),e=this._normalizeFileData(e),e.type!=="file"&&e.type!=="directory"&&e.type!=="symlink"){r(new Error(e.type+" entries not currently supported"));return}if(typeof e.name!="string"||e.name.length===0){r(new Error("entry name must be a non-empty string value"));return}if(e.type==="symlink"&&typeof e.linkname!="string"){r(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var i=new AF(e.name);return i.setTime(e.date,this.options.forceLocalTime),e.namePrependSlash&&i.setName(e.name,!0),e.store&&i.setMethod(0),e.comment.length>0&&i.setComment(e.comment),e.type==="symlink"&&typeof e.mode!="number"&&(e.mode=40960),typeof e.mode=="number"&&(e.type==="symlink"&&(e.mode|=40960),i.setUnixMode(e.mode)),e.type==="symlink"&&typeof e.linkname=="string"&&(t=Buffer.from(e.linkname)),Wf.prototype.entry.call(this,i,t,r)};ni.prototype.finalize=function(){this.finish()}});var PS=g((DU,DS)=>{"use strict";var OF=IS(),IF=ii(),Ut=function(t){if(!(this instanceof Ut))return new Ut(t);t=this.options=IF.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new OF(t)};Ut.prototype.append=function(t,e,r){this.engine.entry(t,e,r)};Ut.prototype.finalize=function(){this.engine.finalize()};Ut.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Ut.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Ut.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};DS.exports=Ut});var NS=g((PU,LS)=>{"use strict";LS.exports=P("events")});var kS=g((NU,CS)=>{"use strict";CS.exports=class{constructor(e){if(!(e>0)||(e-1&e)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return this.buffer[this.top]!==void 0?!1:(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){let e=this.buffer[this.btm];if(e!==void 0)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}});var zf=g((kU,FS)=>{"use strict";var MS=kS();FS.exports=class{constructor(e){this.hwm=e||16,this.head=new MS(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let r=this.head;this.head=r.next=new MS(2*this.head.buffer.length),this.head.push(e)}}shift(){this.length!==0&&this.length--;let e=this.tail.shift();if(e===void 0&&this.tail.next){let r=this.tail.next;return this.tail.next=null,this.tail=r,this.tail.shift()}return e}peek(){let e=this.tail.peek();return e===void 0&&this.tail.next?this.tail.next.peek():e}isEmpty(){return this.length===0}}});var Gf=g((MU,qS)=>{"use strict";function DF(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function PF(t){return Buffer.isEncoding(t)}function LF(t,e,r){return Buffer.alloc(t,e,r)}function NF(t){return Buffer.allocUnsafe(t)}function CF(t){return Buffer.allocUnsafeSlow(t)}function kF(t,e){return Buffer.byteLength(t,e)}function MF(t,e){return Buffer.compare(t,e)}function FF(t,e){return Buffer.concat(t,e)}function qF(t,e,r,i,n){return Y(t).copy(e,r,i,n)}function jF(t,e){return Y(t).equals(e)}function BF(t,e,r,i,n){return Y(t).fill(e,r,i,n)}function UF(t,e,r){return Buffer.from(t,e,r)}function WF(t,e,r,i){return Y(t).includes(e,r,i)}function zF(t,e,r,i){return Y(t).indexOf(e,r,i)}function GF(t,e,r,i){return Y(t).lastIndexOf(e,r,i)}function $F(t){return Y(t).swap16()}function HF(t){return Y(t).swap32()}function VF(t){return Y(t).swap64()}function Y(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function YF(t,e,r,i){return Y(t).toString(e,r,i)}function KF(t,e,r,i,n){return Y(t).write(e,r,i,n)}function ZF(t,e){return Y(t).readDoubleBE(e)}function QF(t,e){return Y(t).readDoubleLE(e)}function XF(t,e){return Y(t).readFloatBE(e)}function JF(t,e){return Y(t).readFloatLE(e)}function eq(t,e){return Y(t).readInt32BE(e)}function tq(t,e){return Y(t).readInt32LE(e)}function rq(t,e){return Y(t).readUInt32BE(e)}function iq(t,e){return Y(t).readUInt32LE(e)}function nq(t,e,r){return Y(t).writeDoubleBE(e,r)}function sq(t,e,r){return Y(t).writeDoubleLE(e,r)}function oq(t,e,r){return Y(t).writeFloatBE(e,r)}function aq(t,e,r){return Y(t).writeFloatLE(e,r)}function lq(t,e,r){return Y(t).writeInt32BE(e,r)}function uq(t,e,r){return Y(t).writeInt32LE(e,r)}function fq(t,e,r){return Y(t).writeUInt32BE(e,r)}function cq(t,e,r){return Y(t).writeUInt32LE(e,r)}qS.exports={isBuffer:DF,isEncoding:PF,alloc:LF,allocUnsafe:NF,allocUnsafeSlow:CF,byteLength:kF,compare:MF,concat:FF,copy:qF,equals:jF,fill:BF,from:UF,includes:WF,indexOf:zF,lastIndexOf:GF,swap16:$F,swap32:HF,swap64:VF,toBuffer:Y,toString:YF,write:KF,readDoubleBE:ZF,readDoubleLE:QF,readFloatBE:XF,readFloatLE:JF,readInt32BE:eq,readInt32LE:tq,readUInt32BE:rq,readUInt32LE:iq,writeDoubleBE:nq,writeDoubleLE:sq,writeFloatBE:oq,writeFloatLE:aq,writeInt32BE:lq,writeInt32LE:uq,writeUInt32BE:fq,writeUInt32LE:cq}});var BS=g((qU,jS)=>{"use strict";var hq=Gf();jS.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return hq.toString(e,this.encoding)}flush(){return""}}});var GS=g((BU,zS)=>{"use strict";var US=Gf();zS.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(e){if(e.byteLength===0)return"";if(this.bytesNeeded===0&&WS(e,0)===0)return this.bytesSeen=dq(e),US.toString(e,"utf8");let r="",i=0;if(this.bytesNeeded>0){for(;i<e.byteLength;){let o=e[i];if(o<this.lowerBoundary||o>this.upperBoundary){r+="\uFFFD",this._reset();break}if(this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|o&63,this.bytesSeen++,i++,this.bytesSeen===this.bytesNeeded){r+=String.fromCodePoint(this.codePoint),this._reset();break}}if(this.bytesNeeded>0)return r}let n=WS(e,i),s=e.byteLength-n;s>i&&(r+=US.toString(e,"utf8",i,s));for(let o=s;o<e.byteLength;o++){let a=e[o];if(this.bytesNeeded===0){a<=127?(this.bytesSeen=0,r+=String.fromCharCode(a)):a>=194&&a<=223?(this.bytesNeeded=2,this.bytesSeen=1,this.codePoint=a&31):a>=224&&a<=239?(a===224?this.lowerBoundary=160:a===237&&(this.upperBoundary=159),this.bytesNeeded=3,this.bytesSeen=1,this.codePoint=a&15):a>=240&&a<=244?(a===240?this.lowerBoundary=144:a===244&&(this.upperBoundary=143),this.bytesNeeded=4,this.bytesSeen=1,this.codePoint=a&7):(this.bytesSeen=1,r+="\uFFFD");continue}if(a<this.lowerBoundary||a>this.upperBoundary){r+="\uFFFD",o--,this._reset();continue}this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|a&63,this.bytesSeen++,this.bytesSeen===this.bytesNeeded&&(r+=String.fromCodePoint(this.codePoint),this._reset())}return r}flush(){let e=this.bytesNeeded>0?"\uFFFD":"";return this._reset(),e}_reset(){this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191}};function WS(t,e){let r=t.byteLength;if(r<=e)return 0;let i=Math.max(e,r-4),n=r-1;for(;n>i&&(t[n]&192)===128;)n--;if(n<e)return 0;let s=t[n],o;if(s<=127)return 0;if(s>=194&&s<=223)o=2;else if(s>=224&&s<=239)o=3;else if(s>=240&&s<=244)o=4;else return 0;let a=r-n;return a<o?a:0}function dq(t){let e=t.byteLength;if(e===0)return 0;let r=t[e-1];if(r<=127)return 0;if((r&192)!==128)return 1;let i=Math.max(0,e-4),n=e-2;for(;n>=i&&(t[n]&192)===128;)n--;if(n<0)return 1;let s=t[n],o;if(s>=194&&s<=223)o=2;else if(s>=224&&s<=239)o=3;else if(s>=240&&s<=244)o=4;else return 1;if(e-n!==o)return 1;if(o>=3){let a=t[n+1];if(s===224&&a<160||s===237&&a>159||s===240&&a<144||s===244&&a>143)return 1}return 0}});var HS=g((WU,$S)=>{"use strict";var pq=BS(),gq=GS();$S.exports=class{constructor(e="utf8"){switch(this.encoding=_q(e),this.encoding){case"utf8":this.decoder=new gq;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new pq(this.encoding)}}get remaining(){return this.decoder.remaining}push(e){return typeof e=="string"?e:this.decoder.decode(e)}write(e){return this.push(e)}end(e){let r="";return e&&(r=this.push(e)),r+=this.decoder.flush(),r}};function _q(t){switch(t=t.toLowerCase(),t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:throw new Error("Unknown encoding: "+t)}}});var oc=g((zU,gE)=>{"use strict";var{EventEmitter:yq}=NS(),Yo=new Error("Stream was destroyed"),$f=new Error("Premature close"),XS=zf(),mq=HS(),Hf=typeof queueMicrotask>"u"?t=>global.process.nextTick(t):queueMicrotask,oe=(1<<29)-1,ct=1,Jf=2,vt=4,xn=8,JS=oe^ct,bq=oe^Jf,In=16,si=32,li=64,zt=128,Dn=256,ec=512,Gt=1024,Vf=2048,tc=4096,rc=8192,Qe=16384,Wt=32768,Ko=65536,yr=131072,eE=Dn|ec,wq=In|Ko,Sq=li|In,Eq=tc|zt,ic=Dn|yr,vq=oe^In,xq=oe^li,Tq=oe^(li|Ko),VS=oe^Ko,Rq=oe^Dn,Aq=oe^(zt|rc),Oq=oe^Gt,YS=oe^eE,tE=oe^Wt,Iq=oe^si,rE=oe^yr,Dq=oe^ic,xt=1<<18,ai=2<<18,Pn=4<<18,mr=8<<18,Ln=16<<18,Ht=32<<18,Yf=64<<18,oi=128<<18,nc=256<<18,$t=512<<18,Zo=1024<<18,Pq=oe^(xt|nc),iE=oe^Pn,Lq=oe^(xt|$t),Nq=oe^Ln,Cq=oe^mr,nE=oe^oi,kq=oe^ai,sE=oe^Zo,Tn=In|xt,oE=oe^Tn,sc=Qe|Ht,ht=vt|xn|Jf,Fe=ht|ct,aE=ht|sc,Mq=iE&xq,Qo=oi|Wt,Fq=Qo&oE,lE=Fe|Fq,qq=Fe|Gt|Qe,KS=Fe|Qe|zt,jq=Fe|Gt|zt,Bq=Fe|tc|zt|rc,Uq=Fe|In|Gt|Qe|Ko|yr,Wq=ht|Gt|Qe,zq=si|Fe|Wt|li,Gq=Wt|ct,$q=Fe|$t|Ht,Hq=mr|Ln,uE=mr|xt,Vq=mr|Ln|Fe|xt,ZS=Fe|xt|mr|Zo,Yq=Pn|xt,Kq=xt|nc,Zq=Fe|$t|uE|Ht,Qq=Ln|ht|$t|Ht,Xq=ai|Fe|oi|Pn,Jq=$t|Ht|ht,zo=Symbol.asyncIterator||Symbol("asyncIterator"),Go=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapWritable:n,byteLength:s,byteLengthWritable:o}={}){this.stream=e,this.queue=new XS,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||s||pE,this.map=n||i,this.afterWrite=rj.bind(this),this.afterUpdateNextTick=sj.bind(this)}get ending(){return(this.stream._duplexState&$t)!==0}get ended(){return(this.stream._duplexState&Ht)!==0}push(e){return(this.stream._duplexState&Jq)!==0?!1:(this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered<this.highWaterMark?(this.stream._duplexState|=mr,!0):(this.stream._duplexState|=Hq,!1))}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=Cq),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|$t)&iE}autoBatch(e,r){let i=[],n=this.stream;for(i.push(e);(n._duplexState&ZS)===uE;)i.push(n._writableState.shift());if((n._duplexState&Fe)!==0)return r(null);n._writev(i,r)}update(){let e=this.stream;e._duplexState|=ai;do{for(;(e._duplexState&ZS)===mr;){let r=this.shift();e._duplexState|=Kq,e._write(r,this.afterWrite)}(e._duplexState&Yq)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=kq}updateNonPrimary(){let e=this.stream;if((e._duplexState&Zq)===$t){e._duplexState=e._duplexState|xt,e._final(tj.bind(this));return}if((e._duplexState&ht)===vt){(e._duplexState&Qo)===0&&(e._duplexState|=Tn,e._destroy(fE.bind(this)));return}(e._duplexState&lE)===ct&&(e._duplexState=(e._duplexState|Tn)&JS,e._open(cE.bind(this)))}continueUpdate(){return(this.stream._duplexState&oi)===0?!1:(this.stream._duplexState&=nE,!0)}updateCallback(){(this.stream._duplexState&Xq)===Pn?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&oi)===0&&(this.stream._duplexState|=oi,(this.stream._duplexState&ai)===0&&Hf(this.afterUpdateNextTick))}},Kf=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapReadable:n,byteLength:s,byteLengthReadable:o}={}){this.stream=e,this.queue=new XS,this.highWaterMark=r===0?1:r,this.buffered=0,this.readAhead=r>0,this.error=null,this.pipeline=null,this.byteLength=o||s||pE,this.map=n||i,this.pipeTo=null,this.afterRead=ij.bind(this),this.afterUpdateNextTick=nj.bind(this)}get ending(){return(this.stream._duplexState&Gt)!==0}get ended(){return(this.stream._duplexState&Qe)!==0}pipe(e,r){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof r!="function"&&(r=null),this.stream._duplexState|=ec,this.pipeTo=e,this.pipeline=new Qf(this.stream,e,r),r&&this.stream.on("error",QS),On(e))e._writableState.pipeline=this.pipeline,r&&e.on("error",QS),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{let i=this.pipeline.done.bind(this.pipeline,e),n=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",i),e.on("close",n),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",ej.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){let r=this.stream;return e===null?(this.highWaterMark=0,r._duplexState=(r._duplexState|Gt)&Tq,!1):this.map!==null&&(e=this.map(e),e===null)?(r._duplexState&=VS,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(e),this.queue.push(e),r._duplexState=(r._duplexState|zt)&VS,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=Aq),e}unshift(e){let r=[this.map!==null?this.map(e):e];for(;this.buffered>0;)r.push(this.shift());for(let i=0;i<r.length-1;i++){let n=r[i];this.buffered+=this.byteLength(n),this.queue.push(n)}this.push(r[r.length-1])}read(){let e=this.stream;if((e._duplexState&KS)===zt){let r=this.shift();return this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=YS),(e._duplexState&Vf)!==0&&e.emit("data",r),r}return this.readAhead===!1&&(e._duplexState|=yr,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&KS)===zt&&(e._duplexState&eE)!==0;){let r=this.shift();this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=YS),(e._duplexState&Vf)!==0&&e.emit("data",r)}}update(){let e=this.stream;e._duplexState|=si;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&Uq)===yr;)e._duplexState|=wq,e._read(this.afterRead),this.drain();(e._duplexState&Bq)===Eq&&(e._duplexState|=rc,e.emit("readable")),(e._duplexState&Sq)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=Iq}updateNonPrimary(){let e=this.stream;if((e._duplexState&jq)===Gt&&(e._duplexState=(e._duplexState|Qe)&Oq,e.emit("end"),(e._duplexState&aE)===sc&&(e._duplexState|=vt),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&ht)===vt){(e._duplexState&Qo)===0&&(e._duplexState|=Tn,e._destroy(fE.bind(this)));return}(e._duplexState&lE)===ct&&(e._duplexState=(e._duplexState|Tn)&JS,e._open(cE.bind(this)))}continueUpdate(){return(this.stream._duplexState&Wt)===0?!1:(this.stream._duplexState&=tE,!0)}updateCallback(){(this.stream._duplexState&zq)===li?this.update():this.updateNextTick()}updateNextTickIfOpen(){(this.stream._duplexState&Gq)===0&&(this.stream._duplexState|=Wt,(this.stream._duplexState&si)===0&&Hf(this.afterUpdateNextTick))}updateNextTick(){(this.stream._duplexState&Wt)===0&&(this.stream._duplexState|=Wt,(this.stream._duplexState&si)===0&&Hf(this.afterUpdateNextTick))}},Zf=class{constructor(e){this.data=null,this.afterTransform=aj.bind(e),this.afterFinal=null}},Qf=class{constructor(e,r,i){this.from=e,this.to=r,this.afterPipe=i,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(e,r){if(r&&(this.error=r),e===this.to&&(this.to=null,this.from!==null)){((this.from._duplexState&Qe)===0||!this.pipeToFinished)&&this.from.destroy(this.error||new Error("Writable stream closed prematurely"));return}if(e===this.from&&(this.from=null,this.to!==null)){(e._duplexState&Qe)===0&&this.to.destroy(this.error||new Error("Readable stream closed before ending"));return}this.afterPipe!==null&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null}};function ej(){this.stream._duplexState|=ec,this.updateCallback()}function tj(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&ht)===0&&(e._duplexState|=Ht,e.emit("finish")),(e._duplexState&aE)===sc&&(e._duplexState|=vt),e._duplexState&=Lq,(e._duplexState&ai)===0?this.update():this.updateNextTick()}function fE(t){let e=this.stream;!t&&this.error!==Yo&&(t=this.error),t&&e.emit("error",t),e._duplexState|=xn,e.emit("close");let r=e._readableState,i=e._writableState;if(r!==null&&r.pipeline!==null&&r.pipeline.done(e,t),i!==null){for(;i.drains!==null&&i.drains.length>0;)i.drains.shift().resolve(!1);i.pipeline!==null&&i.pipeline.done(e,t)}}function rj(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=Pq,this.drains!==null&&oj(this.drains),(e._duplexState&Vq)===Ln&&(e._duplexState&=Nq,(e._duplexState&Yf)===Yf&&e.emit("drain")),this.updateCallback()}function ij(t){t&&this.stream.destroy(t),this.stream._duplexState&=vq,this.readAhead===!1&&(this.stream._duplexState&Dn)===0&&(this.stream._duplexState&=rE),this.updateCallback()}function nj(){(this.stream._duplexState&si)===0&&(this.stream._duplexState&=tE,this.update())}function sj(){(this.stream._duplexState&ai)===0&&(this.stream._duplexState&=nE,this.update())}function oj(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}function cE(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&vt)===0&&((e._duplexState&qq)===0&&(e._duplexState|=li),(e._duplexState&$q)===0&&(e._duplexState|=Pn),e.emit("open")),e._duplexState&=oE,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}function aj(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}function lj(t){this._readableState!==null&&(t==="data"&&(this._duplexState|=Vf|ic,this._readableState.updateNextTick()),t==="readable"&&(this._duplexState|=tc,this._readableState.updateNextTick())),this._writableState!==null&&t==="drain"&&(this._duplexState|=Yf,this._writableState.updateNextTick())}var Rn=class extends yq{constructor(e){super(),this._duplexState=0,this._readableState=null,this._writableState=null,e&&(e.open&&(this._open=e.open),e.destroy&&(this._destroy=e.destroy),e.predestroy&&(this._predestroy=e.predestroy),e.signal&&e.signal.addEventListener("abort",wj.bind(this))),this.on("newListener",lj)}_open(e){e(null)}_destroy(e){e(null)}_predestroy(){}get readable(){return this._readableState!==null?!0:void 0}get writable(){return this._writableState!==null?!0:void 0}get destroyed(){return(this._duplexState&xn)!==0}get destroying(){return(this._duplexState&ht)!==0}destroy(e){(this._duplexState&ht)===0&&(e||(e=Yo),this._duplexState=(this._duplexState|vt)&Mq,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=e),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=Jf,this._predestroy(),this._duplexState&=bq,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}},$o=class t extends Rn{constructor(e){super(e),this._duplexState|=ct|Ht|yr,this._readableState=new Kf(this,e),e&&(this._readableState.readAhead===!1&&(this._duplexState&=rE),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick(),e.encoding&&this.setEncoding(e.encoding))}setEncoding(e){let r=new mq(e),i=this._readableState.map||cj;return this._readableState.map=n,this;function n(s){let o=r.push(s);return o===""&&(s.byteLength!==0||r.remaining>0)?null:i(o)}}_read(e){e(null)}pipe(e,r){return this._readableState.updateNextTick(),this._readableState.pipe(e,r),e}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(e){return this._readableState.updateNextTickIfOpen(),this._readableState.push(e)}unshift(e){return this._readableState.updateNextTickIfOpen(),this._readableState.unshift(e)}resume(){return this._duplexState|=ic,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?Dq:Rq,this}static _fromAsyncIterator(e,r){let i,n=new t({...r,read(o){e.next().then(s).then(o.bind(null,null)).catch(o)},predestroy(){i=e.return()},destroy(o){if(!i)return o(null);i.then(o.bind(null,null)).catch(o)}});return n;function s(o){o.done?n.push(null):n.push(o.value)}}static from(e,r){if(yj(e))return e;if(e[zo])return this._fromAsyncIterator(e[zo](),r);Array.isArray(e)||(e=e===void 0?[]:[e]);let i=0;return new t({...r,read(n){this.push(i===e.length?null:e[i++]),n(null)}})}static isBackpressured(e){return(e._duplexState&Wq)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&Dn)===0}[zo](){let e=this,r=null,i=null,n=null;return this.on("error",u=>{r=u}),this.on("readable",s),this.on("close",o),{[zo](){return this},next(){return new Promise(function(u,f){i=u,n=f;let c=e.read();c!==null?a(c):(e._duplexState&xn)!==0&&a(null)})},return(){return l(null)},throw(u){return l(u)}};function s(){i!==null&&a(e.read())}function o(){i!==null&&a(null)}function a(u){n!==null&&(r?n(r):u===null&&(e._duplexState&Qe)===0?n(Yo):i({value:u,done:u===null}),n=i=null)}function l(u){return e.destroy(u),new Promise((f,c)=>{if(e._duplexState&xn)return f({value:void 0,done:!0});e.once("close",function(){u?c(u):f({value:void 0,done:!0})})})}}},Ho=class extends Rn{constructor(e){super(e),this._duplexState|=ct|Qe,this._writableState=new Go(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}cork(){this._duplexState|=Zo}uncork(){this._duplexState&=sE,this._writableState.updateNextTick()}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}static isBackpressured(e){return(e._duplexState&Qq)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let r=e._writableState,n=(Sj(e)?Math.min(1,r.queue.length):r.queue.length)+(e._duplexState&nc?1:0);return n===0?Promise.resolve(!0):(r.drains===null&&(r.drains=[]),new Promise(s=>{r.drains.push({writes:n,resolve:s})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},An=class extends $o{constructor(e){super(e),this._duplexState=ct|this._duplexState&yr,this._writableState=new Go(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=Zo}uncork(){this._duplexState&=sE,this._writableState.updateNextTick()}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},Vo=class extends An{constructor(e){super(e),this._transformState=new Zf(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,r){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(this._transformState.data!==null){let r=this._transformState.data;this._transformState.data=null,e(null),this._transform(r,this._transformState.afterTransform)}else e(null)}destroy(e){super.destroy(e),this._transformState.data!==null&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(e,r){r(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(uj.bind(this))}},Xf=class extends Vo{};function uj(t,e){let r=this._transformState.afterFinal;if(t)return r(t);e!=null&&this.push(e),this.push(null),r(null)}function fj(...t){return new Promise((e,r)=>hE(...t,i=>{if(i)return r(i);e()}))}function hE(t,...e){let r=Array.isArray(t)?[...t,...e]:[t,...e],i=r.length&&typeof r[r.length-1]=="function"?r.pop():null;if(r.length<2)throw new Error("Pipeline requires at least 2 streams");let n=r[0],s=null,o=null;for(let u=1;u<r.length;u++)s=r[u],On(n)?n.pipe(s,l):(a(n,!0,u>1,l),n.pipe(s)),n=s;if(i){let u=!1,f=On(s)||!!(s._writableState&&s._writableState.autoDestroy);s.on("error",c=>{o===null&&(o=c)}),s.on("finish",()=>{u=!0,f||i(o)}),f&&s.on("close",()=>i(o||(u?null:$f)))}return s;function a(u,f,c,h){u.on("error",h),u.on("close",d);function d(){if(f&&u._readableState&&!u._readableState.ended||c&&u._writableState&&!u._writableState.ended)return h($f)}}function l(u){if(!(!u||o)){o=u;for(let f of r)f.destroy(u)}}}function cj(t){return t}function dE(t){return!!t._readableState||!!t._writableState}function On(t){return typeof t._duplexState=="number"&&dE(t)}function hj(t){return!!t._readableState&&t._readableState.ending}function dj(t){return!!t._readableState&&t._readableState.ended}function pj(t){return!!t._writableState&&t._writableState.ending}function gj(t){return!!t._writableState&&t._writableState.ended}function _j(t,e={}){let r=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return!e.all&&r===Yo?null:r}function yj(t){return On(t)&&t.readable}function mj(t){return(t._duplexState&ct)!==ct||(t._duplexState&vt)===vt||(t._duplexState&Qo)!==0}function bj(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}function pE(t){return bj(t)?t.byteLength:1024}function QS(){}function wj(){this.destroy(new Error("Stream aborted."))}function Sj(t){return t._writev!==Ho.prototype._writev&&t._writev!==An.prototype._writev}gE.exports={pipeline:hE,pipelinePromise:fj,isStream:dE,isStreamx:On,isEnding:hj,isEnded:dj,isFinishing:pj,isFinished:gj,isDisturbed:mj,getStreamError:_j,Stream:Rn,Writable:Ho,Readable:$o,Duplex:An,Transform:Vo,PassThrough:Xf}});var Xo=g((GU,_E)=>{"use strict";function Ej(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function vj(t){return Buffer.isEncoding(t)}function xj(t,e,r){return Buffer.alloc(t,e,r)}function Tj(t){return Buffer.allocUnsafe(t)}function Rj(t){return Buffer.allocUnsafeSlow(t)}function Aj(t,e){return Buffer.byteLength(t,e)}function Oj(t,e){return Buffer.compare(t,e)}function Ij(t,e){return Buffer.concat(t,e)}function Dj(t,e,r,i,n){return K(t).copy(e,r,i,n)}function Pj(t,e){return K(t).equals(e)}function Lj(t,e,r,i,n){return K(t).fill(e,r,i,n)}function Nj(t,e,r){return Buffer.from(t,e,r)}function Cj(t,e,r,i){return K(t).includes(e,r,i)}function kj(t,e,r,i){return K(t).indexOf(e,r,i)}function Mj(t,e,r,i){return K(t).lastIndexOf(e,r,i)}function Fj(t){return K(t).swap16()}function qj(t){return K(t).swap32()}function jj(t){return K(t).swap64()}function K(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function Bj(t,e,r,i){return K(t).toString(e,r,i)}function Uj(t,e,r,i,n){return K(t).write(e,r,i,n)}function Wj(t,e){return K(t).readDoubleBE(e)}function zj(t,e){return K(t).readDoubleLE(e)}function Gj(t,e){return K(t).readFloatBE(e)}function $j(t,e){return K(t).readFloatLE(e)}function Hj(t,e){return K(t).readInt32BE(e)}function Vj(t,e){return K(t).readInt32LE(e)}function Yj(t,e){return K(t).readUInt32BE(e)}function Kj(t,e){return K(t).readUInt32LE(e)}function Zj(t,e,r){return K(t).writeDoubleBE(e,r)}function Qj(t,e,r){return K(t).writeDoubleLE(e,r)}function Xj(t,e,r){return K(t).writeFloatBE(e,r)}function Jj(t,e,r){return K(t).writeFloatLE(e,r)}function eB(t,e,r){return K(t).writeInt32BE(e,r)}function tB(t,e,r){return K(t).writeInt32LE(e,r)}function rB(t,e,r){return K(t).writeUInt32BE(e,r)}function iB(t,e,r){return K(t).writeUInt32LE(e,r)}_E.exports={isBuffer:Ej,isEncoding:vj,alloc:xj,allocUnsafe:Tj,allocUnsafeSlow:Rj,byteLength:Aj,compare:Oj,concat:Ij,copy:Dj,equals:Pj,fill:Lj,from:Nj,includes:Cj,indexOf:kj,lastIndexOf:Mj,swap16:Fj,swap32:qj,swap64:jj,toBuffer:K,toString:Bj,write:Uj,readDoubleBE:Wj,readDoubleLE:zj,readFloatBE:Gj,readFloatLE:$j,readInt32BE:Hj,readInt32LE:Vj,readUInt32BE:Yj,readUInt32LE:Kj,writeDoubleBE:Zj,writeDoubleLE:Qj,writeFloatBE:Xj,writeFloatLE:Jj,writeInt32BE:eB,writeInt32LE:tB,writeUInt32BE:rB,writeUInt32LE:iB}});var uc=g(fi=>{"use strict";var W=Xo(),nB="0000000000000000000",sB="7777777777777777777",Jo=48,yE=W.from([117,115,116,97,114,0]),oB=W.from([Jo,Jo]),aB=W.from([117,115,116,97,114,32]),lB=W.from([32,0]),uB=4095,Nn=257,lc=263;fi.decodeLongPath=function(e,r){return ui(e,0,e.length,r)};fi.encodePax=function(e){let r="";e.name&&(r+=ac(" path="+e.name+`
|
|
9
9
|
`)),e.linkname&&(r+=ac(" linkpath="+e.linkname+`
|
|
10
10
|
`));let i=e.pax;if(i)for(let n in i)r+=ac(" "+n+"="+i[n]+`
|
|
11
|
-
`);return W.from(r)};fi.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(W.toString(e.subarray(0,i)),10);if(!n)return r;let s=W.toString(e.subarray(i+1,n-1)),o=s.indexOf("=");if(o===-1)return r;r[s.slice(0,o)]=s.slice(o+1),e=e.subarray(n)}return r};fi.encode=function(e){let r=W.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),W.byteLength(i)!==i.length)return null;for(;W.byteLength(i)>100;){let s=i.indexOf("/");if(s===-1)return null;n+=n?"/"+i.slice(0,s):i.slice(0,s),i=i.slice(s+1)}return W.byteLength(i)>100||W.byteLength(n)>155||e.linkname&&W.byteLength(e.linkname)>100?null:(W.write(r,i),W.write(r,Yt(e.mode&uB,6),100),W.write(r,Yt(e.uid,6),108),W.write(r,Yt(e.gid,6),116),_B(e.size,r,124),W.write(r,Yt(e.mtime.getTime()/1e3|0,11),136),r[156]=Jo+pB(e.type),e.linkname&&W.write(r,e.linkname,157),W.copy(gE,r,Nn),W.copy(oB,r,lc),e.uname&&W.write(r,e.uname,265),e.gname&&W.write(r,e.gname,297),W.write(r,Yt(e.devmajor||0,6),329),W.write(r,Yt(e.devminor||0,6),337),n&&W.write(r,n,345),W.write(r,Yt(yE(r),6),148),r)};fi.decode=function(e,r,i){let n=e[156]===0?0:e[156]-Jo,s=ui(e,0,100,r),o=Vt(e,100,8),a=Vt(e,108,8),l=Vt(e,116,8),u=Vt(e,124,12),f=Vt(e,136,12),c=dB(n),h=e[157]===0?null:ui(e,157,100,r),d=ui(e,265,32),m=ui(e,297,32),p=Vt(e,329,8),E=Vt(e,337,8),y=yE(e);if(y===256)return null;if(y!==Vt(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(fB(e))e[345]&&(s=ui(e,345,155,r)+"/"+s);else if(!cB(e)){if(!i)throw new Error("Invalid tar header: unknown format.")}return n===0&&s&&s[s.length-1]==="/"&&(n=5),{name:s,mode:o,uid:a,gid:l,size:u,mtime:new Date(1e3*f),type:c,linkname:h,uname:d,gname:m,devmajor:p,devminor:E,pax:null}};function fB(t){return W.equals(gE,t.subarray(Nn,Nn+6))}function cB(t){return W.equals(aB,t.subarray(Nn,Nn+6))&&W.equals(lB,t.subarray(lc,lc+2))}function hB(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function dB(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function pB(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function _E(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function yE(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function Yt(t,e){return t=t.toString(8),t.length>e?sB.slice(0,e)+" ":nB.slice(0,e-t.length)+t+" "}function gB(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function _B(t,e,r){t.toString(8).length>11?gB(t,e,r):W.write(e,Yt(t,11),r)}function yB(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],i;for(i=t.length-1;i>0;i--){let o=t[i];e?r.push(o):r.push(255-o)}let n=0,s=r.length;for(i=0;i<s;i++)n+=r[i]*Math.pow(256,i);return e?n:-1*n}function Vt(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return yB(t);{for(;e<t.length&&t[e]===32;)e++;let i=hB(_E(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(W.toString(t.subarray(e,i)),8)}}function ui(t,e,r,i){return W.toString(t.subarray(e,_E(t,0,e,e+r)),i)}function ac(t){let e=W.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var EE=g((HU,SE)=>{"use strict";var{Writable:mB,Readable:bB,getStreamError:mE}=oc(),wB=Gf(),bE=Xo(),ci=uc(),SB=bE.alloc(0),cc=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new wB,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return SB;let r=this._next(e);if(e===r.byteLength)return r;let i=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),i.push(r);return bE.concat(i)}_next(e){let r=this.queue.peek(),i=r.byteLength-this._offset;if(e>=i){let n=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=i,this.shifted+=i,n}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},hc=class extends bB{constructor(e,r,i){super(),this.header=r,this.offset=i,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(mE(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=wE(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},dc=class extends mB{constructor(e){super(e),e||(e={}),this._buffer=new cc,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=fc,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=ci.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),this._header.size===0||this._header.type==="directory"?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=ci.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=ci.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=ci.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?ci.decodePax(e):Object.assign({},this._paxGlobal,ci.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=wE(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(r){return this._continueWrite(r),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(e===null)return!1;this._missing-=e.byteLength;let r=this._stream.push(e);return this._missing===0?(this._stream.push(null),r&&this._stream._detach(),r&&this._locked===!1):r}_createStream(){return new hc(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let e=this._buffer.shiftFirst(this._missing);e!==null&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(e){let r=this._callback;this._callback=fc,r(e)}_write(e,r){this._callback=r,this._buffer.push(e),this._update()}_final(e){this._finished=this._missing===0&&this._buffer.buffered===0,e(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(mE(this)),e(null)}[Symbol.asyncIterator](){let e=null,r=null,i=null,n=null,s=null,o=this;return this.on("entry",u),this.on("error",h=>{e=h}),this.on("close",f),{[Symbol.asyncIterator](){return this},next(){return new Promise(l)},return(){return c(null)},throw(h){return c(h)}};function a(h){if(!s)return;let d=s;s=null,d(h)}function l(h,d){if(e)return d(e);if(n){h({value:n,done:!1}),n=null;return}r=h,i=d,a(null),o._finished&&r&&(r({value:void 0,done:!0}),r=i=null)}function u(h,d,m){s=m,d.on("error",fc),r?(r({value:d,done:!1}),r=i=null):n=d}function f(){a(e),r&&(e?i(e):r({value:void 0,done:!0}),r=i=null)}function c(h){return o.destroy(h),a(h),new Promise((d,m)=>{if(o.destroyed)return d({value:void 0,done:!0});o.once("close",function(){h?m(h):d({value:void 0,done:!0})})})}}};SE.exports=function(e){return new dc(e)};function fc(){}function wE(t){return t&=511,t&&512-t}});var xE=g((VU,pc)=>{"use strict";var vE={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{pc.exports=P("fs").constants||vE}catch{pc.exports=vE}});var IE=g((YU,OE)=>{"use strict";var{Readable:EB,Writable:vB,getStreamError:TE}=oc(),br=Xo(),hi=xE(),ea=uc(),xB=493,TB=420,RE=br.alloc(1024),_c=class extends vB{constructor(e,r,i){super({mapWritable:AB,eagerOpen:!0}),this.written=0,this.header=r,this._callback=i,this._linkname=null,this._isLinkname=r.type==="symlink"&&!r.linkname,this._isVoid=r.type!=="file"&&r.type!=="contiguous-file",this._finished=!1,this._pack=e,this._openCallback=null,this._pack._stream===null?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(this._callback===null)return;let r=this._callback;this._callback=null,r(e)}_continueOpen(){this._pack._stream===null&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,e!==null){if(this._pack.destroying)return e(new Error("pack stream destroyed"));if(this._pack._finalized)return e(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,r){if(this._isLinkname)return this._linkname=this._linkname?br.concat([this._linkname,e]):e,r(null);if(this._isVoid)return e.byteLength>0?r(new Error("No body allowed for this entry")):r();if(this.written+=e.byteLength,this._pack.push(e))return r();this._pack._drain=r}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?br.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),AE(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(new Error("Size mismatch"));this._finish(),e(null)}_getError(){return TE(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}},yc=class extends EB{constructor(e){super(e),this._drain=gc,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,r,i){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");typeof r=="function"&&(i=r,r=null),i||(i=gc),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=RB(e.mode)),e.mode||(e.mode=e.type==="directory"?xB:TB),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof r=="string"&&(r=br.from(r));let n=new _c(this,e,i);return br.isBuffer(r)?(e.size=r.byteLength,n.write(r),n.end(),n):(n._isVoid,n)}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(RE),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let r=ea.encode(e);if(r){this.push(r);return}}this._encodePax(e)}_encodePax(e){let r=ea.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),i={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:r.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(ea.encode(i)),this.push(r),AE(this,r.byteLength),i.size=e.size,i.type=e.type,this.push(ea.encode(i))}_doDrain(){let e=this._drain;this._drain=gc,e()}_predestroy(){let e=TE(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let r=this._pending.shift();r.destroy(e),r._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}};OE.exports=function(e){return new yc(e)};function RB(t){switch(t&hi.S_IFMT){case hi.S_IFBLK:return"block-device";case hi.S_IFCHR:return"character-device";case hi.S_IFDIR:return"directory";case hi.S_IFIFO:return"fifo";case hi.S_IFLNK:return"symlink"}return"file"}function gc(){}function AE(t,e){e&=511,e&&t.push(RE.subarray(0,512-e))}function AB(t){return br.isBuffer(t)?t:br.from(t)}});var DE=g(mc=>{"use strict";mc.extract=EE();mc.pack=IE()});var NE=g((ZU,LE)=>{"use strict";var OB=P("zlib"),IB=DE(),PE=ii(),Tt=function(t){if(!(this instanceof Tt))return new Tt(t);t=this.options=PE.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=IB.pack(t),this.compressor=!1,t.gzip&&(this.compressor=OB.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};Tt.prototype._onCompressorError=function(t){this.engine.emit("error",t)};Tt.prototype.append=function(t,e,r){var i=this;e.mtime=e.date;function n(o,a){if(o){r(o);return}i.engine.entry(e,a,function(l){r(l,e)})}if(e.sourceType==="buffer")n(null,t);else if(e.sourceType==="stream"&&e.stats){e.size=e.stats.size;var s=i.engine.entry(e,function(o){r(o,e)});t.pipe(s)}else e.sourceType==="stream"&&PE.collectStream(t,n)};Tt.prototype.finalize=function(){this.engine.finalize()};Tt.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tt.prototype.pipe=function(t,e){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(t,e):this.engine.pipe.apply(this.engine,arguments)};Tt.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};LE.exports=Tt});var ME=g((QU,kE)=>{"use strict";function DB(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var PB=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function CE(t){if(Buffer.isBuffer(t))return t;if(typeof t=="number")return Buffer.alloc(t);if(typeof t=="string")return Buffer.from(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function LB(t){let e=CE(4);return e.writeInt32BE(t,0),e}function bc(t,e){t=CE(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let r=~~e^-1;for(var i=0;i<t.length;i++)r=PB[(r^t[i])&255]^r>>>8;return r^-1}function wc(){return LB(bc.apply(null,arguments))}wc.signed=function(){return bc.apply(null,arguments)};wc.unsigned=function(){return bc.apply(null,arguments)>>>0};var NB=wc,CB=DB(NB);kE.exports=CB});var BE=g((XU,jE)=>{"use strict";var kB=P("util").inherits,qE=cr().Transform,MB=ME(),FE=ii(),Kt=function(t){if(!(this instanceof Kt))return new Kt(t);t=this.options=FE.defaults(t,{}),qE.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};kB(Kt,qE);Kt.prototype._transform=function(t,e,r){r(null,t)};Kt.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)};Kt.prototype.append=function(t,e,r){var i=this;e.crc32=0;function n(s,o){if(s){r(s);return}e.size=o.length||0,e.crc32=MB.unsigned(o),i.files.push(e),r(null,e)}e.sourceType==="buffer"?n(null,t):e.sourceType==="stream"&&FE.collectStream(t,n)};Kt.prototype.finalize=function(){this._writeStringified(),this.end()};jE.exports=Kt});var WE=g((JU,UE)=>{"use strict";var qB=Q0(),Cn={},Zt=function(t,e){return Zt.create(t,e)};Zt.create=function(t,e){if(Cn[t]){var r=new qB(t,e);return r.setFormat(t),r.setModule(new Cn[t](e)),r}else throw new Error("create("+t+"): format not registered")};Zt.registerFormat=function(t,e){if(Cn[t])throw new Error("register("+t+"): format already registered");if(typeof e!="function")throw new Error("register("+t+"): format module invalid");if(typeof e.prototype.append!="function"||typeof e.prototype.finalize!="function")throw new Error("register("+t+"): format module missing methods");Cn[t]=e};Zt.isRegisteredFormat=function(t){return!!Cn[t]};Zt.registerFormat("zip",IS());Zt.registerFormat("tar",NE());Zt.registerFormat("json",BE());UE.exports=Zt});import{readFileSync as zB,existsSync as YE,readdirSync as $B,mkdirSync as HB,writeFileSync as VB}from"fs";import{unlink as YB}from"fs/promises";import{join as di}from"path";import{randomUUID as pi}from"crypto";function Oc(t){return t?t.includes(`
|
|
11
|
+
`);return W.from(r)};fi.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(W.toString(e.subarray(0,i)),10);if(!n)return r;let s=W.toString(e.subarray(i+1,n-1)),o=s.indexOf("=");if(o===-1)return r;r[s.slice(0,o)]=s.slice(o+1),e=e.subarray(n)}return r};fi.encode=function(e){let r=W.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),W.byteLength(i)!==i.length)return null;for(;W.byteLength(i)>100;){let s=i.indexOf("/");if(s===-1)return null;n+=n?"/"+i.slice(0,s):i.slice(0,s),i=i.slice(s+1)}return W.byteLength(i)>100||W.byteLength(n)>155||e.linkname&&W.byteLength(e.linkname)>100?null:(W.write(r,i),W.write(r,Yt(e.mode&uB,6),100),W.write(r,Yt(e.uid,6),108),W.write(r,Yt(e.gid,6),116),_B(e.size,r,124),W.write(r,Yt(e.mtime.getTime()/1e3|0,11),136),r[156]=Jo+pB(e.type),e.linkname&&W.write(r,e.linkname,157),W.copy(yE,r,Nn),W.copy(oB,r,lc),e.uname&&W.write(r,e.uname,265),e.gname&&W.write(r,e.gname,297),W.write(r,Yt(e.devmajor||0,6),329),W.write(r,Yt(e.devminor||0,6),337),n&&W.write(r,n,345),W.write(r,Yt(bE(r),6),148),r)};fi.decode=function(e,r,i){let n=e[156]===0?0:e[156]-Jo,s=ui(e,0,100,r),o=Vt(e,100,8),a=Vt(e,108,8),l=Vt(e,116,8),u=Vt(e,124,12),f=Vt(e,136,12),c=dB(n),h=e[157]===0?null:ui(e,157,100,r),d=ui(e,265,32),m=ui(e,297,32),p=Vt(e,329,8),v=Vt(e,337,8),y=bE(e);if(y===256)return null;if(y!==Vt(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(fB(e))e[345]&&(s=ui(e,345,155,r)+"/"+s);else if(!cB(e)){if(!i)throw new Error("Invalid tar header: unknown format.")}return n===0&&s&&s[s.length-1]==="/"&&(n=5),{name:s,mode:o,uid:a,gid:l,size:u,mtime:new Date(1e3*f),type:c,linkname:h,uname:d,gname:m,devmajor:p,devminor:v,pax:null}};function fB(t){return W.equals(yE,t.subarray(Nn,Nn+6))}function cB(t){return W.equals(aB,t.subarray(Nn,Nn+6))&&W.equals(lB,t.subarray(lc,lc+2))}function hB(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function dB(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function pB(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function mE(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function bE(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function Yt(t,e){return t=t.toString(8),t.length>e?sB.slice(0,e)+" ":nB.slice(0,e-t.length)+t+" "}function gB(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function _B(t,e,r){t.toString(8).length>11?gB(t,e,r):W.write(e,Yt(t,11),r)}function yB(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],i;for(i=t.length-1;i>0;i--){let o=t[i];e?r.push(o):r.push(255-o)}let n=0,s=r.length;for(i=0;i<s;i++)n+=r[i]*Math.pow(256,i);return e?n:-1*n}function Vt(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return yB(t);{for(;e<t.length&&t[e]===32;)e++;let i=hB(mE(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(W.toString(t.subarray(e,i)),8)}}function ui(t,e,r,i){return W.toString(t.subarray(e,mE(t,0,e,e+r)),i)}function ac(t){let e=W.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var xE=g((HU,vE)=>{"use strict";var{Writable:mB,Readable:bB,getStreamError:wE}=oc(),wB=zf(),SE=Xo(),ci=uc(),SB=SE.alloc(0),cc=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new wB,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return SB;let r=this._next(e);if(e===r.byteLength)return r;let i=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),i.push(r);return SE.concat(i)}_next(e){let r=this.queue.peek(),i=r.byteLength-this._offset;if(e>=i){let n=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=i,this.shifted+=i,n}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},hc=class extends bB{constructor(e,r,i){super(),this.header=r,this.offset=i,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(wE(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=EE(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},dc=class extends mB{constructor(e){super(e),e||(e={}),this._buffer=new cc,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=fc,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=ci.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),this._header.size===0||this._header.type==="directory"?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=ci.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=ci.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=ci.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?ci.decodePax(e):Object.assign({},this._paxGlobal,ci.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=EE(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(r){return this._continueWrite(r),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(e===null)return!1;this._missing-=e.byteLength;let r=this._stream.push(e);return this._missing===0?(this._stream.push(null),r&&this._stream._detach(),r&&this._locked===!1):r}_createStream(){return new hc(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let e=this._buffer.shiftFirst(this._missing);e!==null&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(e){let r=this._callback;this._callback=fc,r(e)}_write(e,r){this._callback=r,this._buffer.push(e),this._update()}_final(e){this._finished=this._missing===0&&this._buffer.buffered===0,e(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(wE(this)),e(null)}[Symbol.asyncIterator](){let e=null,r=null,i=null,n=null,s=null,o=this;return this.on("entry",u),this.on("error",h=>{e=h}),this.on("close",f),{[Symbol.asyncIterator](){return this},next(){return new Promise(l)},return(){return c(null)},throw(h){return c(h)}};function a(h){if(!s)return;let d=s;s=null,d(h)}function l(h,d){if(e)return d(e);if(n){h({value:n,done:!1}),n=null;return}r=h,i=d,a(null),o._finished&&r&&(r({value:void 0,done:!0}),r=i=null)}function u(h,d,m){s=m,d.on("error",fc),r?(r({value:d,done:!1}),r=i=null):n=d}function f(){a(e),r&&(e?i(e):r({value:void 0,done:!0}),r=i=null)}function c(h){return o.destroy(h),a(h),new Promise((d,m)=>{if(o.destroyed)return d({value:void 0,done:!0});o.once("close",function(){h?m(h):d({value:void 0,done:!0})})})}}};vE.exports=function(e){return new dc(e)};function fc(){}function EE(t){return t&=511,t&&512-t}});var RE=g((VU,pc)=>{"use strict";var TE={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{pc.exports=P("fs").constants||TE}catch{pc.exports=TE}});var PE=g((YU,DE)=>{"use strict";var{Readable:EB,Writable:vB,getStreamError:AE}=oc(),br=Xo(),hi=RE(),ea=uc(),xB=493,TB=420,OE=br.alloc(1024),_c=class extends vB{constructor(e,r,i){super({mapWritable:AB,eagerOpen:!0}),this.written=0,this.header=r,this._callback=i,this._linkname=null,this._isLinkname=r.type==="symlink"&&!r.linkname,this._isVoid=r.type!=="file"&&r.type!=="contiguous-file",this._finished=!1,this._pack=e,this._openCallback=null,this._pack._stream===null?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(this._callback===null)return;let r=this._callback;this._callback=null,r(e)}_continueOpen(){this._pack._stream===null&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,e!==null){if(this._pack.destroying)return e(new Error("pack stream destroyed"));if(this._pack._finalized)return e(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,r){if(this._isLinkname)return this._linkname=this._linkname?br.concat([this._linkname,e]):e,r(null);if(this._isVoid)return e.byteLength>0?r(new Error("No body allowed for this entry")):r();if(this.written+=e.byteLength,this._pack.push(e))return r();this._pack._drain=r}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?br.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),IE(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(new Error("Size mismatch"));this._finish(),e(null)}_getError(){return AE(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}},yc=class extends EB{constructor(e){super(e),this._drain=gc,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,r,i){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");typeof r=="function"&&(i=r,r=null),i||(i=gc),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=RB(e.mode)),e.mode||(e.mode=e.type==="directory"?xB:TB),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof r=="string"&&(r=br.from(r));let n=new _c(this,e,i);return br.isBuffer(r)?(e.size=r.byteLength,n.write(r),n.end(),n):(n._isVoid,n)}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(OE),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let r=ea.encode(e);if(r){this.push(r);return}}this._encodePax(e)}_encodePax(e){let r=ea.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),i={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:r.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(ea.encode(i)),this.push(r),IE(this,r.byteLength),i.size=e.size,i.type=e.type,this.push(ea.encode(i))}_doDrain(){let e=this._drain;this._drain=gc,e()}_predestroy(){let e=AE(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let r=this._pending.shift();r.destroy(e),r._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}};DE.exports=function(e){return new yc(e)};function RB(t){switch(t&hi.S_IFMT){case hi.S_IFBLK:return"block-device";case hi.S_IFCHR:return"character-device";case hi.S_IFDIR:return"directory";case hi.S_IFIFO:return"fifo";case hi.S_IFLNK:return"symlink"}return"file"}function gc(){}function IE(t,e){e&=511,e&&t.push(OE.subarray(0,512-e))}function AB(t){return br.isBuffer(t)?t:br.from(t)}});var LE=g(mc=>{"use strict";mc.extract=xE();mc.pack=PE()});var kE=g((ZU,CE)=>{"use strict";var OB=P("zlib"),IB=LE(),NE=ii(),Tt=function(t){if(!(this instanceof Tt))return new Tt(t);t=this.options=NE.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=IB.pack(t),this.compressor=!1,t.gzip&&(this.compressor=OB.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};Tt.prototype._onCompressorError=function(t){this.engine.emit("error",t)};Tt.prototype.append=function(t,e,r){var i=this;e.mtime=e.date;function n(o,a){if(o){r(o);return}i.engine.entry(e,a,function(l){r(l,e)})}if(e.sourceType==="buffer")n(null,t);else if(e.sourceType==="stream"&&e.stats){e.size=e.stats.size;var s=i.engine.entry(e,function(o){r(o,e)});t.pipe(s)}else e.sourceType==="stream"&&NE.collectStream(t,n)};Tt.prototype.finalize=function(){this.engine.finalize()};Tt.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tt.prototype.pipe=function(t,e){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(t,e):this.engine.pipe.apply(this.engine,arguments)};Tt.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};CE.exports=Tt});var qE=g((QU,FE)=>{"use strict";function DB(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var PB=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function ME(t){if(Buffer.isBuffer(t))return t;if(typeof t=="number")return Buffer.alloc(t);if(typeof t=="string")return Buffer.from(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function LB(t){let e=ME(4);return e.writeInt32BE(t,0),e}function bc(t,e){t=ME(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let r=~~e^-1;for(var i=0;i<t.length;i++)r=PB[(r^t[i])&255]^r>>>8;return r^-1}function wc(){return LB(bc.apply(null,arguments))}wc.signed=function(){return bc.apply(null,arguments)};wc.unsigned=function(){return bc.apply(null,arguments)>>>0};var NB=wc,CB=DB(NB);FE.exports=CB});var WE=g((XU,UE)=>{"use strict";var kB=P("util").inherits,jE=cr().Transform,MB=qE(),BE=ii(),Kt=function(t){if(!(this instanceof Kt))return new Kt(t);t=this.options=BE.defaults(t,{}),jE.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};kB(Kt,jE);Kt.prototype._transform=function(t,e,r){r(null,t)};Kt.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)};Kt.prototype.append=function(t,e,r){var i=this;e.crc32=0;function n(s,o){if(s){r(s);return}e.size=o.length||0,e.crc32=MB.unsigned(o),i.files.push(e),r(null,e)}e.sourceType==="buffer"?n(null,t):e.sourceType==="stream"&&BE.collectStream(t,n)};Kt.prototype.finalize=function(){this._writeStringified(),this.end()};UE.exports=Kt});var GE=g((JU,zE)=>{"use strict";var FB=J0(),Cn={},Zt=function(t,e){return Zt.create(t,e)};Zt.create=function(t,e){if(Cn[t]){var r=new FB(t,e);return r.setFormat(t),r.setModule(new Cn[t](e)),r}else throw new Error("create("+t+"): format not registered")};Zt.registerFormat=function(t,e){if(Cn[t])throw new Error("register("+t+"): format already registered");if(typeof e!="function")throw new Error("register("+t+"): format module invalid");if(typeof e.prototype.append!="function"||typeof e.prototype.finalize!="function")throw new Error("register("+t+"): format module missing methods");Cn[t]=e};Zt.isRegisteredFormat=function(t){return!!Cn[t]};Zt.registerFormat("zip",PS());Zt.registerFormat("tar",kE());Zt.registerFormat("json",WE());zE.exports=Zt});import{readFileSync as GB,existsSync as YE,readdirSync as $B,mkdirSync as HB,writeFileSync as VB}from"fs";import{unlink as YB}from"fs/promises";import{join as di}from"path";import{randomUUID as pi}from"crypto";function Dc(t){return t?t.includes(`
|
|
12
12
|
`)?t.split(`
|
|
13
|
-
`).map(e=>e.trim()).filter(Boolean):t.split(". ").map(e=>e.trim()).filter(Boolean).map(e=>e.endsWith(".")?e:e+"."):[]}function kn(t,e){return!t||!e?t:t.replace(/\{\{(.+?)\}\}/g,(r,i)=>{let n=e[i];return n?n.value:r}).replace(/\$\{(.+?)\}/g,(r,i)=>{let n=e[i];return n?n.value:r})}var ev={click:"CLICK",double_click:"CLICK",type:"TYPE",fill:"TYPE",select:"SELECT",hover:"HOVER",drag:"DRAG_DROP",upload_files:"UPLOAD",navigate:"OPEN",go_back:"NAVIGATE",go_forward:"NAVIGATE",refresh:"REFRESH",press_key:"SENDKEYS",scroll:"SCROLL_PIXELS",scroll_into_view:"SCROLL_UNTIL_ELEMENT",wait:"WAIT",wait_until:"WAIT_UNTIL",wait_for_load:"WAIT_FOR_LOAD",switch_tab:"SWITCH_TAB",new_tab:"NEW_TAB",close_tab:"CLOSE_TAB",evaluate_js:"EVALUATE_JS",vision_query:"VISION_QUERY",textual_query:"TEXTUAL_QUERY",get_url:"GET_URL",get_title:"GET_TITLE",assert:"ASSERTION",math:"MATHEMATICAL_OPERATION"},tv={literal:"SET_VARIABLE",visual:"VISION_QUERY",dom:"TEXTUAL_QUERY",url:"GET_URL",title:"GET_TITLE"},rv=new Set(["CLICK","TYPE","FILL","HOVER","SCROLL_UNTIL_ELEMENT","UPLOAD","VISION_QUERY","DRAG_DROP","SELECT"]);function Ic(t,e){if(t==="analyze"){let r=e?.action_params?.analyzer_type??"";return tv[r]??"VISION_QUERY"}return ev[t]??t.toUpperCase()}function Dc(t,e){if(!t||!e)return"";try{let r=new Date(t);return isNaN(r.getTime())?"":new Date(r.getTime()+e).toISOString()}catch{return""}}function iv(t,e,r){let i=t.action_params??{},n=rv.has(e)?"Vision Agent":"Operation Agent",s={operation_type:e};e==="OPEN"&&(s.url=i.url??""),e==="SET_VARIABLE"&&(s.variable_name=t.output_variable??i.key??"",s.variable_value=t.output_value??"");let o={},a={},l=t.action_instruction??"",u=i.text??"",f=i.url??"",c=[["intent",l],["value",u],["url",f]];for(let[d,m]of Object.entries(r)){let p=String(m);if(d.startsWith("secrets."))for(let[E,y]of c)y.includes(p)&&(a[E]=d);for(let[E,y]of c)y.includes(p)&&!(E in o)&&(o[E]=y)}let h=t.action_type;return{operation:t.action_instruction??"",agent:n,operation_dict:s,reasoning:h==="analyze"?i.query??"":t.intent??t.action_instruction??"",variable:o,secrets:a,params:{}}}function nv(t){let e=t.assertion_tree??{};if(typeof e.passed=="boolean")return e.passed;let r=e.sub_results??[];return r.length===0?e.status==="passed":(e.composite_operator??"and")==="or"?r.some(n=>n.passed===!0):r.every(n=>n.passed===!0)}function Pc(t){return t.map(e=>({description:e.description??"",store_key:e.store_key??"",expected_value:e.expected??"",stored_value:e.extracted_value??"",operator:e.operator??"equals",transforms:e.transforms??[]}))}function sv(t){let e=t.assertion_tree??{},r=e.sub_results??[],i=Pc(r);return{operator:[],assertion_operands:[],left_operand:null,right_operand:null,operands:[],sub_results:r,sub_checks:i,composite_operator:e.composite_operator??"and",verification:e.verification??"",claim:e.description??""}}function ov(t){let r=(t.action_params??{}).assertion_tree??{},i=r.sub_results??[],n=Pc(i);return[{operation:t.action_instruction??"",agent:"Operation Agent",operation_dict:{operation_type:"ASSERTION",assertion_tree:{sub_results:i,sub_checks:n,composite_operator:r.composite_operator??"and",verification:"",claim:r.description??t.action_instruction??"",operator:[],assertion_operands:[],left_operand:null,right_operand:null,operands:[]}},variable:{},secrets:{},params:{}}]}function av(t,e,r){let i=t.visual_data;if(!i||i.x==null||i.y==null)return null;let n=e?`${e}/test_screenshots`:"";return{x:i.x,y:i.y,confidence:0,bbox:i.bbox??null,bbox_source:i.bbox?"accessibility_tree":"fallback",viewport_width:i.viewport_width??1280,viewport_height:i.viewport_height??800,scale_factor:null,raw_image_url:n?`${n}/untagged_screenshot/${r}.webp`:"",raw_image_sas_url:"",annotated_image_url:"",annotated_image_sas_url:""}}function Rc(t,e={},r=""){let i=t.action_type,n=Ic(i,t),s=t.action_params??{},o=t.coordinates??null,a=t.selectors??null,l=!!(a&&a.length>0),u=t.timestamp??"",f=t.duration_ms??0,c=t.variables_used??{},h=t.action_id??pi(),d=pi(),m=Dc(u,f),p="",E="";i==="navigate"?(E=s.url??"",p=E):i==="type"||i==="fill"?p=s.text??"":i==="press_key"?p=s.key??"":i==="wait"?p=String(s.ms??s.timeout_ms??""):i==="evaluate_js"?p=s.script??"":i==="analyze"&&(s.analyzer_type??"")==="literal"&&(p=t.output_value??"");let y="";i==="go_back"?y="back":i==="go_forward"&&(y="forward");let b=kn(p,e),v=kn(E,e),S=kn(t.action_instruction??"",e),T=iv(t,n,c);return{operation_id:h,instruction_id:d,instruction:S,intent:S,operation_start:u,operation_end:m,status:t.status??"",command:n,name:"",target:"",value:b,message:"",operation_dict:"",frame:t.frame_info?JSON.stringify(t.frame_info):"",error_message:t.error??"",code_snippet:"",sub_instruction_obj:JSON.stringify(T),test_id:"",test_version:"",action:"",string_to_float:!1,feedback_msg:"",time_taken:"",create_time_stamp:"",update_time_stamp:"",locator_variable:"",locator_variable_name:"",image_url:r?`${r}/test_screenshots/untagged_screenshot/${h}.webp`:"",alternative_xpaths:[],attribute:"",value_description:"",url:v,navigation_direction:y,tagified_image_url:"",query_variable_name:t.output_variable??"",query_variable_value:t.output_value??"",query_variable_type:"",expected_value:"",queried_value:"",operator:"",assertion_status:n==="ASSERTION"?nv(s):"",query_info_dict:{},query_content_confidence:"none",debugging_logs:[],locator_index:0,query_html:"",user_variables:"[]",optional_flag:!1,max_retries:0,retries_delay:0,explicit_wait:0,implicit_wait:0,tab_index:String(s.tab_index??""),tab_identifier:String(s.tab_identifier??""),scroll_value:s.amount??1,scroll_direction:s.direction??"",mi_scroll_payload:{},sleep_duration:0,app_id:"",manual_interaction_tag:"",string_to_float_list:[],js_snippet:i==="evaluate_js"?s.script??"":"",code_error:"",hide:!1,dismiss_dialog:!1,use_v2_mobile_tagging:!1,multiple_inputs:!1,dialog_action:"",dialog_type:"",is_coordinates_used_for_interaction:o!==null&&!l,element_coordinates_ratio:[],element_bounds_ratio:[],x_coord:l?null:o?.x??null,y_coord:l?null:o?.y??null,target_x_coord:s.target_x??null,target_y_coord:s.target_y??null,source_description:s.source_description??null,target_description:s.target_description??null,use_coordinates:o!==null&&!l,kaneaiMobileTaggingImageLimit:1,clicks_order_code:"se_js_ac",selector:l?a.map(D=>({type:D.isXPath?"xpath":"css",...D})):"",selector_target:"",math_result_variable_name:"",math_result_variable_value:"",expression_tree:n==="ASSERTION"?sv(s):s.expression_tree??{},assertion_tree:s.assertion_tree??{},assertion_tree_simplified:{},network_throttle:{},is_mobile_offline:!1,autoheal:!1,db_query:"",db_details:{},db_query_decoded:"",is_global_variable:!1,is_global_variable_persist:!1,global_variable_id:"",wait_for_element_timeout:0,failure_condition:n==="ASSERTION"?"Fail test immediately":"",screenshot_command:"",smartui_contents:{},smartui_results:{},result_type:"",result_hint:"",drag_offset:{},start_coordinates:s.source_coordinates?{x:s.source_coordinates[0],y:s.source_coordinates[1]}:{},end_coordinates:s.target_coordinates?{x:s.target_coordinates[0],y:s.target_coordinates[1]}:{},element_rect:null,is_canvas:!1,until_condition:"",until_max_retries:0,until_settle_ms:0,api_data:{},output_variables:t.output_variable?{[t.output_variable]:t.output_value??""}:{},visual_context:av(t,r,h),reasoning:i==="analyze"?s.query??"":t.intent??t.action_instruction??""}}function Ac(t,e,r={}){let i=t.action_type,n=Ic(i,t),s=t.timestamp??"",o=t.duration_ms??0,a=Dc(s,o),l=n==="ASSERTION"||n==="MATHEMATICAL_OPERATION";return{instruction_id:e.instruction_id,instruction_class:l?"non_driver_action":"driver_action",module_id:"",instruction:kn(t.action_instruction??"",r),command:n,error:null,parent_instruction_id:"",classification_layer_resp:n==="ASSERTION"?ov(t):[],classification_error:{},operations:[e],status:t.status??"",start_timestamp:s,end_timestamp:a,type:"agent_generated",tags:[],html_paths:[],optional_flag:!1,max_retries:0,retries_delay:0,explicit_wait:0,implicit_wait:0,content_type:"instruction",js_snippet:i==="evaluate_js"?t.action_params?.script??"":"",user_variables:"[]",api_data:{},params_used:!1,hard_assertion:n==="ASSERTION"?t.action_params?.failure_condition==="hard":!1,expected_outcome:"",module_execution_index:0,module_version:null,network_throttle:{},isEdited:!1,use_query_assertion_v2:!1,db_query:"",db_details:{},network_assertion_content:{},screenshot_command:"",smartui_contents:{},generative_id:"",plan_id:"",generative_objective:"",error_message:"",error_code:"",reason:"",title:"",used_variables:[],reasoning:i==="analyze"?t.action_params?.query??"":t.intent??t.action_instruction??""}}function lv(t,e=[]){let r=t.action_params??{},i=r.branches??[],n=r.winning_index??-1,s=r.sub_results??[],o={};for(let l of s){let u=l.sub_results;if(u)for(let f of u){let c=f.store_key;c&&(o[c]=f)}}let a=i.map((l,u)=>{let f=u===n,c=(l.sub_checks??[]).map(h=>{let d=o[h.store_key];return{description:h.description,store_key:h.store_key,expected_value:h.expected_value,stored_value:d?.extracted_value??h.stored_value,operator:h.operator??d?.operator??"equals",transforms:h.transforms??d?.transforms??[]}});if(c.length===0&&l.condition&&s.length>0){let d=s.find(m=>m.branch_index===u)?.sub_results??[];d.length>0&&(c=d.map(m=>({description:m.description??l.condition,store_key:m.store_key??"",expected_value:m.expected??"true",stored_value:m.extracted_value??void 0,operator:m.operator??"equals",transforms:m.transforms??[]})))}return{branch_index:u,condition:l.condition??null,branch_type:l.branch_type??"sub_objective",passed:f,sub_objective:null,custom_event:l.custom_event??null,children:f?e:[],sub_checks:l.condition?c:[],composite_operator:l.composite_operator??"and"}});return{content_type:"conditional_block",instruction_id:`if_else_${pi().slice(0,8)}`,instruction:t.action_instruction??"",instruction_class:"driver_action",command:"",status:t.status??"success",resolved_branch_index:n,branches:a,generative_id:"",generative_objective:"",variables_used:{},classification_layer_resp:[],classification_error:{},used_variables:[],user_variables:"[]",module_id:"",module_execution_index:0,module_version:"",plan_id:"",optional_flag:!1,max_retries:0,retries_delay:0,explicit_wait:0,implicit_wait:0,error:null,error_message:"",error_code:"",reason:"",start_timestamp:t.timestamp??"",end_timestamp:"",type:"agent_generated",hook:null,hook_type:null,evaluation_context:{},query_variables:{}}}function Lc(t,e,r){for(let i of t)i.content_type==="instruction"&&"generative_id"in i&&(i.generative_id=e,i.generative_objective=r)}function ta(t,e={},r=""){let i=[],n=0;for(;n<t.length;){let s=t[n],o=s.action_type;if(s.status==="error"&&o!=="assert"&&o!=="if_else"&&o!=="child_agent_start"&&o!=="child_agent_end"&&!(s.until_condition&&!s.error)){n+=1;continue}if(o==="child_agent_start"){let a=s.action_params?.child_id??"",l=s.action_params?.objective??"",u=[];n+=1;let f=1,c="error",h;for(;n<t.length&&f>0;){let S=t[n],T=S.action_type;if(T==="child_agent_start")f+=1;else if(T==="child_agent_end"&&(f-=1,f===0)){c=S.status??"success",h=S,n+=1;break}f>0&&u.push(S),n+=1}let d=ta(u,e,r);Lc(d,a,l);let m=h?.action_params?.result_code??null,p=h?.action_params?.reason_code??null,E=h?.action_params?.error_message??null,y=h?.action_params?.summary??null,b=h?.action_params?.one_liner??null,v=c==="error";i.push({content_type:"generative_block",instruction_id:`generative_block_${a}`,generative_id:a,objective:l,status:c,children:d,error_message:v?E??null:null,error_code:v?p??null:null,result_code:m??null,bifurcation_context:[],approach_reason:Oc(y),one_liner:b??null});continue}else if(o==="child_agent_end"){n+=1;continue}else if(o==="if_else"){n+=1;let a=[];for(;n<t.length&&t[n].action_type==="child_agent_start";){let l=t[n],u=l.action_params?.child_id??"",f=l.action_params?.objective??"",c=[];n+=1;let h=1,d="error";for(;n<t.length&&h>0;){let p=t[n];if(p.action_type==="child_agent_start")h+=1;else if(p.action_type==="child_agent_end"&&(h-=1,h===0)){d=p.status??"success",n+=1;break}h>0&&c.push(p),n+=1}let m=ta(c,e,r);a.push(...m)}i.push(lv(s,a));continue}else if(o==="query_tool"){n+=1;continue}else if(s.until_condition){let a=Rc(s,e,r),l=Ac(s,a,e),u=typeof s.until_condition_met=="boolean"?s.until_condition_met:s.status==="success";i.push({content_type:"until_block",instruction_id:`until_${pi().slice(0,8)}`,condition:s.until_condition,max_retries:s.until_max_retries??10,settle_ms:s.until_settle_ms??500,current_count:0,condition_met:u,children:[l],generative_id:"",generative_objective:"",variables_used:{},status:s.status??"success"})}else{let a=Rc(s,e,r),l=Ac(s,a,e);i.push(l)}n+=1}return i}function Nc(t,e={},r=""){let i=[];for(let n of t){let s=ta(n.records,e,r);if(s.length===0)continue;let o=pi().replace(/-/g,"");Lc(s,o,n.objective);let a=s.some(c=>"status"in c&&typeof c.status=="string"?c.status==="error"||c.status==="failed":!1),l=n.resultCode?parseInt(n.resultCode,10):null,u=l!==null&&!isNaN(l)&&l>=200,f=a||u?"error":"success";i.push({content_type:"generative_block",instruction_id:`generative_block_${o}`,generative_id:o,objective:n.objective,status:f,children:s,error_message:f==="error"?n.errorMessage??null:null,error_code:f==="error"?n.reasonCode??null:null,result_code:n.resultCode??null,bifurcation_context:[],approach_reason:Oc(n.summary),one_liner:n.oneLiner??null})}return{instructions:i}}var GE=XE(WE(),1);import{createWriteStream as FB,readdirSync as jB,statSync as BB}from"fs";import{readFile as UB}from"fs/promises";import{join as Sc,basename as WB}from"path";import{tmpdir as GB}from"os";async function zE(t){let e=Sc(t,"runs"),r=Sc(GB(),`${WB(t)}_artifacts.zip`);return new Promise((i,n)=>{let s=FB(r),o=(0,GE.default)("zip",{zlib:{level:6}});s.on("close",()=>i(r)),o.on("error",n),o.pipe(s);try{let a=jB(e);for(let l of a){let u=Sc(e,l);BB(u).isDirectory()&&o.glob("**/*",{cwd:u,ignore:["**/screenshots/**","**/annotated/**"]},{prefix:l})}}catch{}o.finalize()})}async function $E(t){return UB(t)}async function Ec(t,e,r){let i=await fetch(t,{method:"PUT",headers:{"Content-Type":r,"x-ms-blob-type":"BlockBlob"},body:new Uint8Array(e)});if(!i.ok)throw new Error(`Azure upload failed: ${i.status} ${await i.text()}`)}function HE(t){return{url:`${t.tmsBaseUrl}/kane-cli/v1/test-case/${t.testcaseId}/code`,body:{code_name:"kane-cli-trigger",language:t.codeExport.language,framework:"playwright",folder_name:"",accessibility:"false",skipCodeValidation:t.codeExport.skipValidation}}}function VE(t){return`${t.tmsBaseUrl}/kane-cli/v1/test-case/${t.testcaseId}/codes?page=1&per_page=10`}var KE=class{config;controller;testId;constructor(e){this.config=e,this.controller=new Tc(e.controllerBaseUrl,e.auth),this.testId=e.testId}log(e,r,i,n){this.config.log?.(e,r,i,n)}async execute(){let{onProgress:e}=this.config;try{if(!this.testId)return this.log("error","PIPELINE_ABORT","No test_id available"),{success:!1,testId:null,error:"No test_id available"};e("convert","running");let r=this.collectNdjsonPerRun(),i=r.reduce((y,b)=>y+b.records.length,0);this.log("info","PIPELINE_CONVERT","Collected NDJSON records",{total_records:i,run_groups:r.length});let n=this.config.variables??{};this.log("info","PIPELINE_CONVERT_VARS","Variables for template resolution",{keys:Object.keys(n)});let{instructions:s}=r.length>0?Nc(r,n,this.config.screenshotBaseUrl??""):{instructions:[]};this.log("info","PIPELINE_CONVERT_INSTRUCTIONS","Auteur instructions produced",{count:s.length});let o=this.buildExecutionEnvelope(s),a=Buffer.from(JSON.stringify(o));this.log("info","PIPELINE_CONVERT_BLOB","Blob created",{size_kb:+(a.length/1024).toFixed(1)}),e("convert","done"),e("zip","running"),this.log("info","PIPELINE_ZIP_START","Zipping session",{session_dir:this.config.sessionDir});let l=null,u;try{l=await zE(this.config.sessionDir),u=await $E(l),this.log("info","PIPELINE_ZIP_DONE","Zip complete",{size_mb:+(u.length/1024/1024).toFixed(1),path:l}),e("zip","done",`${(u.length/1024/1024).toFixed(1)}MB`)}finally{l&&await YB(l).catch(()=>{})}e("presign","running"),this.log("info","PIPELINE_PRESIGN_START","Requesting presigned URLs",{url:`${this.config.controllerBaseUrl}/upload/presign`,test_id:this.testId,session_id:this.config.sessionId});let f=await this.controller.getPresignedUrls(this.testId,this.config.sessionId,[{key:"artifacts",content_type:"application/zip",filename:`${this.config.sessionId}_artifacts.zip`},{key:"blob",content_type:"application/json",filename:`${this.config.commitId}.json`}]);this.log("info","PIPELINE_PRESIGN_OK","Presigned URLs received",{artifacts_url:f.urls.artifacts?.blob_url,blob_url:f.urls.blob?.blob_url}),e("presign","done"),e("upload","running"),this.log("info","PIPELINE_UPLOAD_START","Uploading artifacts and blob",{artifact_size_mb:+(u.length/1024/1024).toFixed(1),blob_size_kb:+(a.length/1024).toFixed(1)}),await Promise.all([Ec(f.urls.artifacts.upload_url,u,"application/zip"),Ec(f.urls.blob.upload_url,a,"application/json")]),this.log("info","PIPELINE_UPLOAD_OK","Upload complete"),e("upload","done"),e("finalize","running"),this.log("info","PIPELINE_FINALIZE_START","Finalizing test",{test_id:this.testId,commit_id:this.config.commitId});let c=new xc(this.config.tmsBaseUrl,this.config.tmsUsername,this.config.tmsAccessKey),h=this.config.runObjectives&&this.config.runObjectives.length>0?this.config.runObjectives:[this.config.firstObjective],m=(await c.endTest(this.testId,{commit_id:this.config.commitId,time_taken:Math.round(this.config.totalDuration),steps_count:this.config.totalSteps,commit_message:this.config.firstObjective.slice(0,255),objectives:h})).testcase_id||void 0;this.log("info","PIPELINE_FINALIZE_OK","Test finalized",{testcase_id:m??"none"});let p;if(m&&this.config.shareApiBaseUrl)try{p=await this.generateShareLink(m),this.log("info","PIPELINE_SHARE_OK","Share link generated",{share_id:p})}catch(y){this.log("warn","PIPELINE_SHARE_FAILED","Share link failed",{error:String(y)})}e("finalize","done");let E;if(this.config.codeExport?.enabled&&m){try{await this.triggerCodeExport(m),this.log("info","PIPELINE_CODE_EXPORT_START","Code export triggered")}catch(y){this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export failed",{error:String(y)})}e("code_export","running","Waiting for code generation\u2026");try{E=await this.pollAndDownloadCode(m,e),this.log("info","PIPELINE_CODE_EXPORT_OK","Code export complete",{dir:E}),e("code_export","done",E)}catch(y){let b=y instanceof Error?y.message:String(y);this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export failed",{error:b}),e("code_export","failed",b)}}else e("code_export","skipped");return this.log("info","PIPELINE_COMPLETE","Pipeline complete"),{success:!0,testId:this.testId,testcaseId:m,shareId:p,codeExportDir:E}}catch(r){return{success:!1,testId:this.testId,error:r instanceof Error?r.message:String(r)}}}async runCodeExport(e,r){let i=r??this.config.onProgress;try{await this.triggerCodeExport(e),this.log("info","PIPELINE_CODE_EXPORT_TRIGGER","Code export triggered",{testcase_id:e})}catch(n){this.log("error","PIPELINE_CODE_EXPORT_TRIGGER_FAILED","Code export trigger failed",{error:String(n)})}i("code_export","running","Waiting for code generation\u2026");try{let n=await this.pollAndDownloadCode(e,i);return this.log("info","PIPELINE_CODE_EXPORT_OK","Code export complete",{dir:n}),i("code_export","done",n),n}catch(n){let s=n instanceof Error?n.message:String(n);this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export failed",{error:s}),i("code_export","failed",s);return}}collectNdjsonPerRun(){let e=[],r=this.config.runObjectives??[],i=this.config.runMetadata??[];for(let n=0;n<this.config.runDirs.length;n++){let s=this.config.runDirs[n],o=r[n]||this.config.firstObjective,a=i[n],l=this.readNdjsonFromDir(s);l.length>0&&e.push({objective:o,records:l,resultCode:a?.resultCode,reasonCode:a?.reasonCode,errorMessage:a?.errorMessage,summary:a?.summary,oneLiner:a?.oneLiner})}if(e.length===0){let n=di(this.config.sessionDir,"runs");if(YE(n))try{let o=$B(n,{withFileTypes:!0}).filter(a=>a.isDirectory()).map(a=>a.name).sort();for(let a of o){let l=di(n,a),u=this.readNdjsonFromDir(l);u.length>0&&e.push({objective:this.config.firstObjective,records:u})}}catch{}}return e}readNdjsonFromDir(e){let r=[],i=[di(e,"run-test","actions.ndjson"),di(e,"actions.ndjson")];for(let n of i){if(!YE(n))continue;this.log("debug","PIPELINE_COLLECT_READ","Reading NDJSON file",{path:n});let s=zB(n,"utf-8");for(let o of s.split(`
|
|
14
|
-
`)){let a=o.trim();if(a)try{r.push(JSON.parse(a))}catch{}}return r}return r}async generateShareLink(e){let r=`${this.config.shareApiBaseUrl}/lshs/api/v1.0/share-item/generate-sharable-link`;this.log("info","PIPELINE_SHARE_START","Requesting share link",{url:r,testcase_id:e});let i={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({entityIds:[e],entityType:"Test Case Details",expiresAt:7})},n=!!this.config.authResolver;this.log("debug","PIPELINE_SHARE_AUTH","Share link auth config",{resolver:n,fallback_auth_type:typeof this.config.auth=="string"?"bearer":"basic",tms_user:this.config.tmsUsername});let s=n?await this.config.authResolver.fetch(r,i):await fetch(r,{...i,headers:{...i.headers,Authorization:this.buildAuthHeader()}});if(!s.ok)throw new Error(`Share link API failed: ${s.status} ${await s.text()}`);let o=await s.json();if(!o.shareId)throw new Error("Share link API returned no shareId");return o.shareId}async triggerCodeExport(e){if(!this.config.codeExport)throw new Error("triggerCodeExport called without resolved codeExport config");let{url:r,body:i}=
|
|
13
|
+
`).map(e=>e.trim()).filter(Boolean):t.split(". ").map(e=>e.trim()).filter(Boolean).map(e=>e.endsWith(".")?e:e+"."):[]}function kn(t,e){return!t||!e?t:t.replace(/\{\{(.+?)\}\}/g,(r,i)=>{let n=e[i];return n?n.value:r}).replace(/\$\{(.+?)\}/g,(r,i)=>{let n=e[i];return n?n.value:r})}var ev={click:"CLICK",double_click:"CLICK",type:"TYPE",fill:"TYPE",select:"SELECT",hover:"HOVER",drag:"DRAG_DROP",upload_files:"UPLOAD",navigate:"OPEN",go_back:"NAVIGATE",go_forward:"NAVIGATE",refresh:"REFRESH",press_key:"SENDKEYS",scroll:"SCROLL_PIXELS",scroll_into_view:"SCROLL_UNTIL_ELEMENT",wait:"WAIT",wait_until:"WAIT_UNTIL",wait_for_load:"WAIT_FOR_LOAD",switch_tab:"SWITCH_TAB",new_tab:"NEW_TAB",close_tab:"CLOSE_TAB",evaluate_js:"EVALUATE_JS",vision_query:"VISION_QUERY",textual_query:"TEXTUAL_QUERY",get_url:"GET_URL",get_title:"GET_TITLE",assert:"ASSERTION",math:"MATHEMATICAL_OPERATION"},tv={literal:"SET_VARIABLE",visual:"VISION_QUERY",dom:"TEXTUAL_QUERY",url:"GET_URL",title:"GET_TITLE"},rv=new Set(["CLICK","TYPE","FILL","HOVER","SCROLL_UNTIL_ELEMENT","UPLOAD","VISION_QUERY","DRAG_DROP","SELECT"]);function Pc(t,e){if(t==="analyze"){let r=e?.action_params?.analyzer_type??"";return tv[r]??"VISION_QUERY"}return ev[t]??t.toUpperCase()}function Lc(t,e){if(!t||!e)return"";try{let r=new Date(t);return isNaN(r.getTime())?"":new Date(r.getTime()+e).toISOString()}catch{return""}}function iv(t,e,r){let i=t.action_params??{},n=rv.has(e)?"Vision Agent":"Operation Agent",s={operation_type:e};e==="OPEN"&&(s.url=i.url??""),e==="SET_VARIABLE"&&(s.variable_name=t.output_variable??i.key??"",s.variable_value=t.output_value??"");let o={},a={},l=t.action_instruction??"",u=i.text??"",f=i.url??"",c=[["intent",l],["value",u],["url",f]];for(let[d,m]of Object.entries(r)){let p=String(m);if(d.startsWith("secrets."))for(let[v,y]of c)y.includes(p)&&(a[v]=d);for(let[v,y]of c)y.includes(p)&&!(v in o)&&(o[v]=y)}let h=t.action_type;return{operation:t.action_instruction??"",agent:n,operation_dict:s,reasoning:h==="analyze"?i.query??"":t.intent??t.action_instruction??"",variable:o,secrets:a,params:{}}}function nv(t){let e=t.assertion_tree??{};if(typeof e.passed=="boolean")return e.passed;let r=e.sub_results??[];return r.length===0?e.status==="passed":(e.composite_operator??"and")==="or"?r.some(n=>n.passed===!0):r.every(n=>n.passed===!0)}function Nc(t){return t.map(e=>({description:e.description??"",store_key:e.store_key??"",expected_value:e.expected??"",stored_value:e.extracted_value??"",operator:e.operator??"equals",transforms:e.transforms??[]}))}function sv(t){let e=t.assertion_tree??{},r=e.sub_results??[],i=Nc(r);return{operator:[],assertion_operands:[],left_operand:null,right_operand:null,operands:[],sub_results:r,sub_checks:i,composite_operator:e.composite_operator??"and",verification:e.verification??"",claim:e.description??""}}function ov(t){let r=(t.action_params??{}).assertion_tree??{},i=r.sub_results??[],n=Nc(i);return[{operation:t.action_instruction??"",agent:"Operation Agent",operation_dict:{operation_type:"ASSERTION",assertion_tree:{sub_results:i,sub_checks:n,composite_operator:r.composite_operator??"and",verification:"",claim:r.description??t.action_instruction??"",operator:[],assertion_operands:[],left_operand:null,right_operand:null,operands:[]}},variable:{},secrets:{},params:{}}]}function av(t,e,r){let i=t.visual_data;if(!i||i.x==null||i.y==null)return null;let n=e?`${e}/test_screenshots`:"";return{x:i.x,y:i.y,confidence:0,bbox:i.bbox??null,bbox_source:i.bbox?"accessibility_tree":"fallback",viewport_width:i.viewport_width??1280,viewport_height:i.viewport_height??800,scale_factor:null,raw_image_url:n?`${n}/untagged_screenshot/${r}.webp`:"",raw_image_sas_url:"",annotated_image_url:"",annotated_image_sas_url:""}}function Oc(t,e={},r=""){let i=t.action_type,n=Pc(i,t),s=t.action_params??{},o=t.coordinates??null,a=t.selectors??null,l=!!(a&&a.length>0),u=t.timestamp??"",f=t.duration_ms??0,c=t.variables_used??{},h=t.action_id??pi(),d=pi(),m=Lc(u,f),p="",v="";i==="navigate"?(v=s.url??"",p=v):i==="type"||i==="fill"?p=s.text??"":i==="press_key"?p=s.key??"":i==="wait"?p=String(s.ms??s.timeout_ms??""):i==="evaluate_js"?p=s.script??"":i==="analyze"&&(s.analyzer_type??"")==="literal"&&(p=t.output_value??"");let y="";i==="go_back"?y="back":i==="go_forward"&&(y="forward");let b=kn(p,e),E=kn(v,e),S=kn(t.action_instruction??"",e),T=iv(t,n,c);return{operation_id:h,instruction_id:d,instruction:S,intent:S,operation_start:u,operation_end:m,status:t.status??"",command:n,name:"",target:"",value:b,message:"",operation_dict:"",frame:t.frame_info?JSON.stringify(t.frame_info):"",error_message:t.error??"",code_snippet:"",sub_instruction_obj:JSON.stringify(T),test_id:"",test_version:"",action:"",string_to_float:!1,feedback_msg:"",time_taken:"",create_time_stamp:"",update_time_stamp:"",locator_variable:"",locator_variable_name:"",image_url:r?`${r}/test_screenshots/untagged_screenshot/${h}.webp`:"",alternative_xpaths:[],attribute:"",value_description:"",url:E,navigation_direction:y,tagified_image_url:"",query_variable_name:t.output_variable??"",query_variable_value:t.output_value??"",query_variable_type:"",expected_value:"",queried_value:"",operator:"",assertion_status:n==="ASSERTION"?nv(s):"",query_info_dict:{},query_content_confidence:"none",debugging_logs:[],locator_index:0,query_html:"",user_variables:"[]",optional_flag:!1,max_retries:0,retries_delay:0,explicit_wait:0,implicit_wait:0,tab_index:String(s.tab_index??""),tab_identifier:String(s.tab_identifier??""),scroll_value:s.amount??1,scroll_direction:s.direction??"",mi_scroll_payload:{},sleep_duration:0,app_id:"",manual_interaction_tag:"",string_to_float_list:[],js_snippet:i==="evaluate_js"?s.script??"":"",code_error:"",hide:!1,dismiss_dialog:!1,use_v2_mobile_tagging:!1,multiple_inputs:!1,dialog_action:"",dialog_type:"",is_coordinates_used_for_interaction:o!==null&&!l,element_coordinates_ratio:[],element_bounds_ratio:[],x_coord:l?null:o?.x??null,y_coord:l?null:o?.y??null,target_x_coord:s.target_x??null,target_y_coord:s.target_y??null,source_description:s.source_description??null,target_description:s.target_description??null,use_coordinates:o!==null&&!l,kaneaiMobileTaggingImageLimit:1,clicks_order_code:"se_js_ac",selector:l?a.map(D=>({type:D.isXPath?"xpath":"css",...D})):"",selector_target:"",math_result_variable_name:"",math_result_variable_value:"",expression_tree:n==="ASSERTION"?sv(s):s.expression_tree??{},assertion_tree:s.assertion_tree??{},assertion_tree_simplified:{},network_throttle:{},is_mobile_offline:!1,autoheal:!1,db_query:"",db_details:{},db_query_decoded:"",is_global_variable:!1,is_global_variable_persist:!1,global_variable_id:"",wait_for_element_timeout:0,failure_condition:n==="ASSERTION"?"Fail test immediately":"",screenshot_command:"",smartui_contents:{},smartui_results:{},result_type:"",result_hint:"",drag_offset:{},start_coordinates:s.source_coordinates?{x:s.source_coordinates[0],y:s.source_coordinates[1]}:{},end_coordinates:s.target_coordinates?{x:s.target_coordinates[0],y:s.target_coordinates[1]}:{},element_rect:null,is_canvas:!1,until_condition:"",until_max_retries:0,until_settle_ms:0,api_data:{},output_variables:t.output_variable?{[t.output_variable]:t.output_value??""}:{},visual_context:av(t,r,h),reasoning:i==="analyze"?s.query??"":t.intent??t.action_instruction??""}}function Ic(t,e,r={}){let i=t.action_type,n=Pc(i,t),s=t.timestamp??"",o=t.duration_ms??0,a=Lc(s,o),l=n==="ASSERTION"||n==="MATHEMATICAL_OPERATION";return{instruction_id:e.instruction_id,instruction_class:l?"non_driver_action":"driver_action",module_id:"",instruction:kn(t.action_instruction??"",r),command:n,error:null,parent_instruction_id:"",classification_layer_resp:n==="ASSERTION"?ov(t):[],classification_error:{},operations:[e],status:t.status??"",start_timestamp:s,end_timestamp:a,type:"agent_generated",tags:[],html_paths:[],optional_flag:!1,max_retries:0,retries_delay:0,explicit_wait:0,implicit_wait:0,content_type:"instruction",js_snippet:i==="evaluate_js"?t.action_params?.script??"":"",user_variables:"[]",api_data:{},params_used:!1,hard_assertion:n==="ASSERTION"?t.action_params?.failure_condition==="hard":!1,expected_outcome:"",module_execution_index:0,module_version:null,network_throttle:{},isEdited:!1,use_query_assertion_v2:!1,db_query:"",db_details:{},network_assertion_content:{},screenshot_command:"",smartui_contents:{},generative_id:"",plan_id:"",generative_objective:"",error_message:"",error_code:"",reason:"",title:"",used_variables:[],reasoning:i==="analyze"?t.action_params?.query??"":t.intent??t.action_instruction??""}}function lv(t,e=[]){let r=t.action_params??{},i=r.branches??[],n=r.winning_index??-1,s=r.sub_results??[],o={};for(let l of s){let u=l.sub_results;if(u)for(let f of u){let c=f.store_key;c&&(o[c]=f)}}let a=i.map((l,u)=>{let f=u===n,c=(l.sub_checks??[]).map(h=>{let d=o[h.store_key];return{description:h.description,store_key:h.store_key,expected_value:h.expected_value,stored_value:d?.extracted_value??h.stored_value,operator:h.operator??d?.operator??"equals",transforms:h.transforms??d?.transforms??[]}});if(c.length===0&&l.condition&&s.length>0){let d=s.find(m=>m.branch_index===u)?.sub_results??[];d.length>0&&(c=d.map(m=>({description:m.description??l.condition,store_key:m.store_key??"",expected_value:m.expected??"true",stored_value:m.extracted_value??void 0,operator:m.operator??"equals",transforms:m.transforms??[]})))}return{branch_index:u,condition:l.condition??null,branch_type:l.branch_type??"sub_objective",passed:f,sub_objective:null,custom_event:l.custom_event??null,children:f?e:[],sub_checks:l.condition?c:[],composite_operator:l.composite_operator??"and"}});return{content_type:"conditional_block",instruction_id:`if_else_${pi().slice(0,8)}`,instruction:t.action_instruction??"",instruction_class:"driver_action",command:"",status:t.status??"success",resolved_branch_index:n,branches:a,generative_id:"",generative_objective:"",variables_used:{},classification_layer_resp:[],classification_error:{},used_variables:[],user_variables:"[]",module_id:"",module_execution_index:0,module_version:"",plan_id:"",optional_flag:!1,max_retries:0,retries_delay:0,explicit_wait:0,implicit_wait:0,error:null,error_message:"",error_code:"",reason:"",start_timestamp:t.timestamp??"",end_timestamp:"",type:"agent_generated",hook:null,hook_type:null,evaluation_context:{},query_variables:{}}}function Cc(t,e,r){for(let i of t)i.content_type==="instruction"&&"generative_id"in i&&(i.generative_id=e,i.generative_objective=r)}function ta(t,e={},r=""){let i=[],n=0;for(;n<t.length;){let s=t[n],o=s.action_type;if(s.status==="error"&&o!=="assert"&&o!=="if_else"&&o!=="child_agent_start"&&o!=="child_agent_end"&&!(s.until_condition&&!s.error)){n+=1;continue}if(o==="child_agent_start"){let a=s.action_params?.child_id??"",l=s.action_params?.objective??"",u=[];n+=1;let f=1,c="error",h;for(;n<t.length&&f>0;){let S=t[n],T=S.action_type;if(T==="child_agent_start")f+=1;else if(T==="child_agent_end"&&(f-=1,f===0)){c=S.status??"success",h=S,n+=1;break}f>0&&u.push(S),n+=1}let d=ta(u,e,r);Cc(d,a,l);let m=h?.action_params?.result_code??null,p=h?.action_params?.reason_code??null,v=h?.action_params?.error_message??null,y=h?.action_params?.summary??null,b=h?.action_params?.one_liner??null,E=c==="error";i.push({content_type:"generative_block",instruction_id:`generative_block_${a}`,generative_id:a,objective:l,status:c,children:d,error_message:E?v??null:null,error_code:E?p??null:null,result_code:m??null,bifurcation_context:[],approach_reason:Dc(y),one_liner:b??null});continue}else if(o==="child_agent_end"){n+=1;continue}else if(o==="if_else"){n+=1;let a=[];for(;n<t.length&&t[n].action_type==="child_agent_start";){let l=t[n],u=l.action_params?.child_id??"",f=l.action_params?.objective??"",c=[];n+=1;let h=1,d="error";for(;n<t.length&&h>0;){let p=t[n];if(p.action_type==="child_agent_start")h+=1;else if(p.action_type==="child_agent_end"&&(h-=1,h===0)){d=p.status??"success",n+=1;break}h>0&&c.push(p),n+=1}let m=ta(c,e,r);a.push(...m)}i.push(lv(s,a));continue}else if(o==="query_tool"){n+=1;continue}else if(s.until_condition){let a=Oc(s,e,r),l=Ic(s,a,e),u=typeof s.until_condition_met=="boolean"?s.until_condition_met:s.status==="success";i.push({content_type:"until_block",instruction_id:`until_${pi().slice(0,8)}`,condition:s.until_condition,max_retries:s.until_max_retries??10,settle_ms:s.until_settle_ms??500,current_count:0,condition_met:u,children:[l],generative_id:"",generative_objective:"",variables_used:{},status:s.status??"success"})}else{let a=Oc(s,e,r),l=Ic(s,a,e);i.push(l)}n+=1}return i}function kc(t,e={},r=""){let i=[];for(let n of t){let s=ta(n.records,e,r);if(s.length===0)continue;let o=pi().replace(/-/g,"");Cc(s,o,n.objective);let a=s.some(c=>"status"in c&&typeof c.status=="string"?c.status==="error"||c.status==="failed":!1),l=n.resultCode?parseInt(n.resultCode,10):null,u=l!==null&&!isNaN(l)&&l>=200,f=a||u?"error":"success";i.push({content_type:"generative_block",instruction_id:`generative_block_${o}`,generative_id:o,objective:n.objective,status:f,children:s,error_message:f==="error"?n.errorMessage??null:null,error_code:f==="error"?n.reasonCode??null:null,result_code:n.resultCode??null,bifurcation_context:[],approach_reason:Dc(n.summary),one_liner:n.oneLiner??null})}return{instructions:i}}var $E=XE(GE(),1);import{createWriteStream as qB,readdirSync as jB,statSync as BB}from"fs";import{readFile as UB}from"fs/promises";import{join as Sc,basename as WB}from"path";import{tmpdir as zB}from"os";async function HE(t){let e=Sc(t,"runs"),r=Sc(zB(),`${WB(t)}_artifacts.zip`);return new Promise((i,n)=>{let s=qB(r),o=(0,$E.default)("zip",{zlib:{level:6}});s.on("close",()=>i(r)),o.on("error",n),o.pipe(s);try{let a=jB(e);for(let l of a){let u=Sc(e,l);BB(u).isDirectory()&&o.glob("**/*",{cwd:u,ignore:["**/screenshots/**","**/annotated/**"]},{prefix:l})}}catch{}o.finalize()})}async function VE(t){return UB(t)}async function Ec(t,e,r){let i=await fetch(t,{method:"PUT",headers:{"Content-Type":r,"x-ms-blob-type":"BlockBlob"},body:new Uint8Array(e)});if(!i.ok)throw new Error(`Azure upload failed: ${i.status} ${await i.text()}`)}var KE=class{config;controller;testId;constructor(e){this.config=e,this.controller=new Tc(e.controllerBaseUrl,e.auth),this.testId=e.testId}log(e,r,i,n){this.config.log?.(e,r,i,n)}async execute(){let{onProgress:e}=this.config;try{if(!this.testId)return this.log("error","PIPELINE_ABORT","No test_id available"),{success:!1,testId:null,error:"No test_id available"};if(this.config.shouldUploadArtifacts!==!1){e("convert","running");let s=this.collectNdjsonPerRun(),o=s.reduce((m,p)=>m+p.records.length,0);this.log("info","PIPELINE_CONVERT","Collected NDJSON records",{total_records:o,run_groups:s.length});let a=this.config.variables??{};this.log("info","PIPELINE_CONVERT_VARS","Variables for template resolution",{keys:Object.keys(a)});let{instructions:l}=s.length>0?kc(s,a,this.config.screenshotBaseUrl??""):{instructions:[]};this.log("info","PIPELINE_CONVERT_INSTRUCTIONS","Auteur instructions produced",{count:l.length});let u=this.buildExecutionEnvelope(l),f=Buffer.from(JSON.stringify(u));this.log("info","PIPELINE_CONVERT_BLOB","Blob created",{size_kb:+(f.length/1024).toFixed(1)}),e("convert","done"),e("zip","running"),this.log("info","PIPELINE_ZIP_START","Zipping session",{session_dir:this.config.sessionDir});let c=null,h;try{c=await HE(this.config.sessionDir),h=await VE(c),this.log("info","PIPELINE_ZIP_DONE","Zip complete",{size_mb:+(h.length/1024/1024).toFixed(1),path:c}),e("zip","done",`${(h.length/1024/1024).toFixed(1)}MB`)}finally{c&&await YB(c).catch(()=>{})}e("presign","running"),this.log("info","PIPELINE_PRESIGN_START","Requesting presigned URLs",{url:`${this.config.controllerBaseUrl}/upload/presign`,test_id:this.testId,session_id:this.config.sessionId});let d=await this.controller.getPresignedUrls(this.testId,this.config.sessionId,[{key:"artifacts",content_type:"application/zip",filename:`${this.config.sessionId}_artifacts.zip`},{key:"blob",content_type:"application/json",filename:`${this.config.commitId}.json`}]);this.log("info","PIPELINE_PRESIGN_OK","Presigned URLs received",{artifacts_url:d.urls.artifacts?.blob_url,blob_url:d.urls.blob?.blob_url}),e("presign","done"),e("upload","running"),this.log("info","PIPELINE_UPLOAD_START","Uploading artifacts and blob",{artifact_size_mb:+(h.length/1024/1024).toFixed(1),blob_size_kb:+(f.length/1024).toFixed(1)}),await Promise.all([Ec(d.urls.artifacts.upload_url,h,"application/zip"),Ec(d.urls.blob.upload_url,f,"application/json")]),this.log("info","PIPELINE_UPLOAD_OK","Upload complete"),e("upload","done")}else e("convert","skipped"),e("zip","skipped"),e("presign","skipped"),e("upload","skipped"),this.log("info","PIPELINE_UPLOAD_SKIPPED","Upload steps skipped (gate disabled)");if(this.config.shouldReplaceLocalOutput&&this.config.onAtomicReplace){e("atomic_replace","running");try{await this.config.onAtomicReplace(),this.log("info","PIPELINE_ATOMIC_REPLACE_OK","Local output replaced"),e("atomic_replace","done")}catch(s){let o=s instanceof Error?s.message:String(s);throw this.log("error","PIPELINE_ATOMIC_REPLACE_FAILED","Atomic-replace failed",{error:o}),e("atomic_replace","failed",o),s}}else e("atomic_replace","skipped");let r,i;if(this.config.shouldCommit&&!this.config.isFirstRun&&this.config.onCommitLock){e("commit_lock","running");let s=await this.config.onCommitLock();if(s.ok)r=s.testcaseId,this.log("info","PIPELINE_COMMIT_LOCK_OK","Commit lock acquired",{testcase_id:r??"none"}),e("commit_lock","done");else return this.log("error","PIPELINE_COMMIT_LOCK_FAILED","Commit lock failed",{reason:s.reason,message:s.message}),e("commit_lock","failed",`${s.reason??"unknown"}: ${s.message??""}`),{success:!1,testId:this.testId,error:`commit-lock failed: ${s.reason??"unknown"}`}}else e("commit_lock","skipped");if(this.config.isFirstRun&&!this.config.skipTmsFinalize){e("finalize","running"),this.log("info","PIPELINE_FINALIZE_START","Finalizing test (first-run)",{test_id:this.testId,commit_id:this.config.commitId});let s=new xc(this.config.tmsBaseUrl,this.config.tmsUsername,this.config.tmsAccessKey),o=this.config.runObjectives&&this.config.runObjectives.length>0?this.config.runObjectives:[this.config.firstObjective];if(r=(await s.endTest(this.testId,{commit_id:this.config.commitId,time_taken:Math.round(this.config.totalDuration),steps_count:this.config.totalSteps,commit_message:this.config.firstObjective.slice(0,255),objectives:o})).testcase_id||void 0,this.log("info","PIPELINE_FINALIZE_OK","Test finalized",{testcase_id:r??"none"}),this.config.onFinalizeSuccess)try{await this.config.onFinalizeSuccess(r)}catch(l){this.log("warn","PIPELINE_FINALIZE_META_FAILED","Meta-rewrite after endTest failed",{error:String(l)})}e("finalize","done")}else e("finalize","skipped"),this.log("info","PIPELINE_FINALIZE_SKIPPED","Finalize skipped (evolve flow or first-run disabled)");if(r&&this.config.shareApiBaseUrl)try{i=await this.generateShareLink(r),this.log("info","PIPELINE_SHARE_OK","Share link generated",{share_id:i})}catch(s){this.log("warn","PIPELINE_SHARE_FAILED","Share link failed",{error:String(s)})}let n;if(this.config.codeExport?.enabled&&r){try{await this.triggerCodeExport(r),this.log("info","PIPELINE_CODE_EXPORT_START","Code export triggered")}catch(s){this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export failed",{error:String(s)})}e("code_export","running","Waiting for code generation\u2026");try{n=await this.pollAndDownloadCode(r,e),this.log("info","PIPELINE_CODE_EXPORT_OK","Code export complete",{dir:n}),e("code_export","done",n)}catch(s){let o=s instanceof Error?s.message:String(s);this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export failed",{error:o}),e("code_export","failed",o)}}else e("code_export","skipped");return this.log("info","PIPELINE_COMPLETE","Pipeline complete"),{success:!0,testId:this.testId,testcaseId:r,shareId:i,codeExportDir:n}}catch(r){return{success:!1,testId:this.testId,error:r instanceof Error?r.message:String(r)}}}async runCodeExport(e,r){let i=r??this.config.onProgress;try{await this.triggerCodeExport(e),this.log("info","PIPELINE_CODE_EXPORT_TRIGGER","Code export triggered",{testcase_id:e})}catch(n){this.log("error","PIPELINE_CODE_EXPORT_TRIGGER_FAILED","Code export trigger failed",{error:String(n)})}i("code_export","running","Waiting for code generation\u2026");try{let n=await this.pollAndDownloadCode(e,i);return this.log("info","PIPELINE_CODE_EXPORT_OK","Code export complete",{dir:n}),i("code_export","done",n),n}catch(n){let s=n instanceof Error?n.message:String(n);this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export failed",{error:s}),i("code_export","failed",s);return}}collectNdjsonPerRun(){let e=[],r=this.config.runObjectives??[],i=this.config.runMetadata??[];for(let n=0;n<this.config.runDirs.length;n++){let s=this.config.runDirs[n],o=r[n]||this.config.firstObjective,a=i[n],l=this.readNdjsonFromDir(s);l.length>0&&e.push({objective:o,records:l,resultCode:a?.resultCode,reasonCode:a?.reasonCode,errorMessage:a?.errorMessage,summary:a?.summary,oneLiner:a?.oneLiner})}if(e.length===0){let n=di(this.config.sessionDir,"runs");if(YE(n))try{let o=$B(n,{withFileTypes:!0}).filter(a=>a.isDirectory()).map(a=>a.name).sort();for(let a of o){let l=di(n,a),u=this.readNdjsonFromDir(l);u.length>0&&e.push({objective:this.config.firstObjective,records:u})}}catch{}}return e}readNdjsonFromDir(e){let r=[],i=[di(e,"run-test","actions.ndjson"),di(e,"actions.ndjson")];for(let n of i){if(!YE(n))continue;this.log("debug","PIPELINE_COLLECT_READ","Reading NDJSON file",{path:n});let s=GB(n,"utf-8");for(let o of s.split(`
|
|
14
|
+
`)){let a=o.trim();if(a)try{r.push(JSON.parse(a))}catch{}}return r}return r}async generateShareLink(e){let r=`${this.config.shareApiBaseUrl}/lshs/api/v1.0/share-item/generate-sharable-link`;this.log("info","PIPELINE_SHARE_START","Requesting share link",{url:r,testcase_id:e});let i={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({entityIds:[e],entityType:"Test Case Details",expiresAt:7})},n=!!this.config.authResolver;this.log("debug","PIPELINE_SHARE_AUTH","Share link auth config",{resolver:n,fallback_auth_type:typeof this.config.auth=="string"?"bearer":"basic",tms_user:this.config.tmsUsername});let s=n?await this.config.authResolver.fetch(r,i):await fetch(r,{...i,headers:{...i.headers,Authorization:this.buildAuthHeader()}});if(!s.ok)throw new Error(`Share link API failed: ${s.status} ${await s.text()}`);let o=await s.json();if(!o.shareId)throw new Error("Share link API returned no shareId");return o.shareId}async triggerCodeExport(e){if(!this.config.codeExport)throw new Error("triggerCodeExport called without resolved codeExport config");let{url:r,body:i}=Rc({tmsBaseUrl:this.config.tmsBaseUrl,testcaseId:e,codeExport:this.config.codeExport});this.log("info","PIPELINE_CODE_EXPORT_POST","Triggering code export",{url:r});let n={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)},s=this.config.authResolver?await this.config.authResolver.fetch(r,n):await fetch(r,{...n,headers:{...n.headers,Authorization:this.buildAuthHeader()}});if(!s.ok)throw new Error(`Code export failed: ${s.status} ${await s.text()}`)}async pollAndDownloadCode(e,r){let i=Ac({tmsBaseUrl:this.config.tmsBaseUrl,testcaseId:e}),n=this.config.exitTimeoutMs??3e5,s=5e3,o=Date.now()+n;this.log("info","PIPELINE_CODE_EXPORT_POLL","Polling for code export",{url:i,timeout_ms:n});let a=(l,u)=>this.config.authResolver?this.config.authResolver.fetch(l,u):fetch(l,{...u,headers:{...u?.headers,Authorization:this.buildAuthHeader()}});for(;Date.now()<o;){let l=await a(i,{method:"GET",headers:{Accept:"application/json"}});if(!l.ok){this.log("warn","PIPELINE_CODE_EXPORT_POLL_FAILED","Code export poll failed",{status:l.status}),await this.sleep(s);continue}let f=(await l.json()).data?.find(d=>d.code_name==="kane-cli-trigger");if(!f){this.log("debug","PIPELINE_CODE_EXPORT_WAITING","No kane-cli-trigger entry yet"),r("code_export","running","Waiting for code generation\u2026"),await this.sleep(s);continue}let c=f.status.toLowerCase();if(c==="in progress"||c==="in_progress"||c==="pending"){this.log("debug","PIPELINE_CODE_EXPORT_IN_PROGRESS","Code export in progress",{status:f.status}),r("code_export","running","Generating code\u2026"),await this.sleep(s);continue}if(!f.url||f.url.length===0)throw new Error(`Code export status=${f.status} but no files returned`);let h=this.config.codeExportDir??di(this.config.sessionDir,"code-export");HB(h,{recursive:!0}),this.log("info","PIPELINE_CODE_EXPORT_DOWNLOAD","Downloading code files",{file_count:f.url.length,dir:h}),r("code_export","running",`Downloading ${f.url.length} files\u2026`);for(let d of f.url){let m=di(h,d.file_name),p=await fetch(d.file_url);if(!p.ok){this.log("warn","PIPELINE_CODE_EXPORT_FILE_FAILED","Failed to download file",{file_name:d.file_name,status:p.status});continue}let v=await p.text();VB(m,v,"utf-8"),this.log("info","PIPELINE_CODE_EXPORT_FILE_SAVED","File saved",{file_name:d.file_name,size_bytes:v.length})}return h}throw new Error("Code export timed out")}sleep(e){return new Promise(r=>setTimeout(r,e))}buildAuthHeader(){return typeof this.config.auth=="string"?`Bearer ${this.config.auth}`:vc(this.config.auth.username,this.config.auth.accessKey)}buildExecutionEnvelope(e){let r=this.config.runStatuses.every(o=>o==="passed")?"success":"error",i=this.config.variableIds??{},n=[];if(this.config.variables)for(let[o,a]of Object.entries(this.config.variables)){if(a.secret)continue;let l=o.startsWith("global.")?o.slice(7):o;n.push({id:i[l]??0,name:l,value:a.value,session_value:a.value,is_persist:!1,environment_id:0,environment_name:"No Env"})}let s=[];for(let o of this.collectNdjsonPerRun())for(let a of o.records)a.output_variable&&a.output_value!=null&&s.push({name:a.output_variable,value:String(a.output_value),value_type:"test_level",variable_description:"ANALYZE result"});return{test_id:this.testId,version:"v4",session_id:this.config.sessionId,org_id:String(this.config.orgId),user_id:String(this.config.userId),url:this.config.firstUrl??"",start_timestamp:this.config.startedAt,end_timestamp:this.config.endedAt,status:r,commit_id:this.config.commitId,instructions:e,modules:[],uploaded_files:[],test_params:[],test_level_variables:JSON.stringify(s),test_global_variables:n,max_network_wait:0,wait_buffer:0,network_throttle:{},secrets:this.config.secrets??[],totp:[],environment_id:0,environment:"",mobile_browser:!1,native_popups:[],smartui:{},module_index:0}}};export{KE as a};
|
|
15
15
|
/*! Bundled license information:
|
|
16
16
|
|
|
17
17
|
normalize-path/index.js:
|