@testmuai/kane-cli 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ChromeProfilePicker-HGRJNQDM.js → ChromeProfilePicker-J6QIIHIE.js} +1 -1
- package/dist/{CliFeedbackPrompt-JXEPBJ63.js → CliFeedbackPrompt-SEH4MXTF.js} +1 -1
- package/dist/{CliUploadProgress-L5VJUXUC.js → CliUploadProgress-U6QLD76Y.js} +1 -1
- package/dist/{ConfigView-LOEAT3HQ.js → ConfigView-5ZCHVYM2.js} +1 -1
- package/dist/FolderPicker-VYJDEDN7.js +2 -0
- package/dist/HelpView-3ESCWBPB.js +2 -0
- package/dist/{InfoBox-MK7EEGCH.js → InfoBox-OVAOOQHC.js} +1 -1
- package/dist/{LinksBox-RSWQWL6G.js → LinksBox-P3VETMP6.js} +1 -1
- package/dist/{ProfilesView-KCOMTDR5.js → ProfilesView-UBVNEYVE.js} +1 -1
- package/dist/ProjectPicker-NJKUWRET.js +2 -0
- package/dist/{SaveSessionPrompt-RGL3LAEB.js → SaveSessionPrompt-S5RCU5DX.js} +1 -1
- package/dist/SingleShotApp-WOJWOQSV.js +2 -0
- package/dist/{SummaryBox-5YPKUIHB.js → SummaryBox-M4UFKKMD.js} +1 -1
- package/dist/{TestMdRunView-QS7IUANM.js → TestMdRunView-PI433EGP.js} +1 -1
- package/dist/{WhoamiView-GL3HZQ4Q.js → WhoamiView-VJBEYTCF.js} +1 -1
- package/dist/changelog-EFAQANXW.js +4 -0
- package/dist/chunk-4QLJMIBA.js +13 -0
- package/dist/{chunk-ZLQ7YLXO.js → chunk-53K3BK7I.js} +1 -1
- package/dist/chunk-AH4AXJML.js +2 -0
- package/dist/{chunk-NOH6RERF.js → chunk-D4P6GLSX.js} +1 -1
- package/dist/chunk-FAPS5ACQ.js +9 -0
- package/dist/chunk-FSIJOBVB.js +2 -0
- package/dist/chunk-G5HHHYH7.js +2 -0
- package/dist/chunk-GCAHPH2E.js +2 -0
- package/dist/chunk-H33BV5YV.js +2 -0
- package/dist/{chunk-TK7ZJ7YX.js → chunk-HNIH3GSQ.js} +1 -1
- package/dist/{chunk-ZX3PMRMO.js → chunk-IROWNPDG.js} +1 -1
- package/dist/chunk-IXWVTWOR.js +5 -0
- package/dist/{chunk-XP5SMOND.js → chunk-J3SCNSXX.js} +1 -1
- package/dist/chunk-JI7KJKG4.js +2 -0
- package/dist/{chunk-THNGNS36.js → chunk-JPEICMHK.js} +1 -1
- package/dist/chunk-KKZRPFWO.js +2 -0
- package/dist/chunk-L3MOXBKE.js +5 -0
- package/dist/chunk-L5LI2JF4.js +38 -0
- package/dist/chunk-N7YALZKA.js +17 -0
- package/dist/{chunk-QO6VFDI4.js → chunk-NOQKUOEK.js} +1 -1
- package/dist/chunk-OQZG3V6B.js +2 -0
- package/dist/{chunk-KVDOQY2Q.js → chunk-PNQ5YMED.js} +1 -1
- package/dist/{chunk-L4GAZTAQ.js → chunk-RHXWME7G.js} +1 -1
- package/dist/{chunk-VUBZQUP4.js → chunk-RURXFEOD.js} +1 -1
- package/dist/{chunk-34DK2AUH.js → chunk-SR5UDUMJ.js} +1 -1
- package/dist/{chunk-MEB2KLWF.js → chunk-TEH6AVF4.js} +1 -1
- package/dist/{chunk-3ELBJPHQ.js → chunk-TL4SB7MQ.js} +1 -1
- package/dist/{chunk-L4OZRHUT.js → chunk-U4QMSR5Z.js} +1 -1
- package/dist/{chunk-L2HVRWIT.js → chunk-UFNKCPUB.js} +11 -11
- package/dist/chunk-V7QXJKX7.js +3 -0
- package/dist/{chunk-BR2S57O2.js → chunk-WM6GZFTC.js} +1 -1
- package/dist/chunk-X7VI7KK3.js +11 -0
- package/dist/{chunk-RXMOIIQD.js → chunk-XM4H4TJD.js} +1 -1
- package/dist/{chunk-3QD3LA72.js → chunk-YF4OL463.js} +1 -1
- package/dist/{chunk-HJ3CHMEM.js → chunk-YVLFHMUW.js} +1 -1
- package/dist/chunk-YZTCCQHR.js +2 -0
- package/dist/{chunk-XMK4GYI7.js → chunk-ZYVYAIBS.js} +1 -1
- package/dist/controller-client-OMKEBP4B.js +2 -0
- package/dist/index.js +23 -23
- package/dist/logging-AIQHWRNQ.js +2 -0
- package/dist/login-flow-E6WMJ25A.js +2 -0
- package/dist/persist-recorded-session-V5DXMRKC.js +3 -0
- package/dist/pipeline-EUZIM2ZO.js +2 -0
- package/dist/{recording-banner-IDLY2FM6.js → recording-banner-7ZKIORL5.js} +1 -1
- package/dist/resolver-F6HCOZOX.js +2 -0
- package/dist/run-test-md-BQS5SZ7E.js +65 -0
- package/dist/testmd-actions-322GQYAH.js +20 -0
- package/dist/tms-client-XOARLBEP.js +2 -0
- package/dist/{validate-basic-27BIMJ2F.js → validate-basic-XKTSGLFO.js} +1 -1
- package/dist/version-check-LUCKH72U.js +2 -0
- package/package.json +5 -5
- package/dist/FolderPicker-I6JTRNAU.js +0 -2
- package/dist/HelpView-UEUKYHFR.js +0 -2
- package/dist/ProjectPicker-AX6H5MX3.js +0 -2
- package/dist/SingleShotApp-YTFAGVZD.js +0 -2
- package/dist/changelog-CLQ7HCB3.js +0 -4
- package/dist/chunk-BM4COXQU.js +0 -53
- package/dist/chunk-BQKDPI6L.js +0 -2
- package/dist/chunk-DUR6AFYA.js +0 -5
- package/dist/chunk-DXKKUGFG.js +0 -2
- package/dist/chunk-F6HEB4PA.js +0 -2
- package/dist/chunk-FFO5XXKV.js +0 -4
- package/dist/chunk-GTFULP6B.js +0 -13
- package/dist/chunk-K7MSPKEM.js +0 -5
- package/dist/chunk-KULEBWMB.js +0 -2
- package/dist/chunk-L5Y2GUO6.js +0 -2
- package/dist/chunk-NZSHFIZX.js +0 -3
- package/dist/chunk-PWGEMRBD.js +0 -2
- package/dist/chunk-SLA75N5B.js +0 -2
- package/dist/chunk-WAFO4MT4.js +0 -20
- package/dist/chunk-YUUZDFT7.js +0 -2
- package/dist/controller-client-7BIK5FYL.js +0 -2
- package/dist/logging-GG23EW5G.js +0 -2
- package/dist/login-flow-ZUZUZIXD.js +0 -2
- package/dist/persist-recorded-session-ZXKA4H7E.js +0 -5
- package/dist/pipeline-BVH3R7YP.js +0 -2
- package/dist/resolver-QLDOAIXU.js +0 -2
- package/dist/run-test-md-UPAR3DQY.js +0 -54
- package/dist/testmd-actions-YYFFNNIH.js +0 -20
- package/dist/tms-client-CTH4NVFM.js +0 -2
- package/dist/version-check-6DXFF6IN.js +0 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
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
|
-
`,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
|
|
2
|
+
import{a as Ac,b as Oc}from"./chunk-MDBXYXSC.js";import{a as Rc}from"./chunk-JI7KJKG4.js";import{a as Tc}from"./chunk-YZTCCQHR.js";import{a as xc}from"./chunk-KKZRPFWO.js";import{a as Qt}from"./chunk-V7QXJKX7.js";import{a as P,b as QE,c as g,d as XE,e as JE,f as ev}from"./chunk-UR6MHSHU.js";var qc=g((JB,Fc)=>{"use strict";var fv=typeof process=="object"&&process&&process.platform==="win32";Fc.exports=fv?{sep:"\\"}:{sep:"/"}});var zc=g((e3,Wc)=>{"use strict";Wc.exports=Bc;function Bc(t,e,r){t instanceof RegExp&&(t=jc(t,r)),e instanceof RegExp&&(e=jc(e,r));var i=Uc(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 jc(t,e){var r=e.match(t);return r?r[0]:null}Bc.range=Uc;function Uc(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 sa=g((t3,Zc)=>{"use strict";var Gc=zc();Zc.exports=dv;var $c="\0SLASH"+Math.random()+"\0",Hc="\0OPEN"+Math.random()+"\0",na="\0CLOSE"+Math.random()+"\0",Vc="\0COMMA"+Math.random()+"\0",Yc="\0PERIOD"+Math.random()+"\0";function ia(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function cv(t){return t.split("\\\\").join($c).split("\\{").join(Hc).split("\\}").join(na).split("\\,").join(Vc).split("\\.").join(Yc)}function hv(t){return t.split($c).join("\\").split(Hc).join("{").split(na).join("}").split(Vc).join(",").split(Yc).join(".")}function Kc(t){if(!t)return[""];var e=[],r=Gc("{","}",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=Kc(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function dv(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),_i(cv(t),!0).map(hv)):[]}function pv(t){return"{"+t+"}"}function gv(t){return/^-?0\d/.test(t)}function _v(t,e){return t<=e}function yv(t,e){return t>=e}function _i(t,e){var r=[],i=Gc("{","}",t);if(!i)return[t];var n=i.pre,s=i.post.length?_i(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+na+i.post,_i(t)):[t];var h;if(f)h=i.body.split(/\.\./);else if(h=Kc(i.body),h.length===1&&(h=_i(h[0],!1).map(pv),h.length===1))return s.map(function(R){return i.pre+h[0]+R});var d;if(f){var m=ia(h[0]),p=ia(h[1]),v=Math.max(h[0].length,h[1].length),y=h.length==3?Math.max(Math.abs(ia(h[2])),1):1,b=_v,E=p<m;E&&(y*=-1,b=yv);var S=h.some(gv);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,_i(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 rh=g((i3,fa)=>{"use strict";var Ne=fa.exports=(t,e,r={})=>(Fn(e),!r.nocomment&&e.charAt(0)==="#"?!1:new Sr(e,r).match(t));fa.exports=Ne;var la=qc();Ne.sep=la.sep;var Ae=Symbol("globstar **");Ne.GLOBSTAR=Ae;var mv=sa(),Qc={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},ua="[^/]",oa=ua+"*?",bv="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",wv="(?:(?!(?:\\/|^)\\.).)*?",eh=t=>t.split("").reduce((e,r)=>(e[r]=!0,e),{}),Xc=eh("().*{}+?[]^$\\!"),Sv=eh("[.("),Jc=/\/+/;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)=>th(t,e);var th=(t,e={})=>(Fn(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:mv(t)),Ev=1024*64,Fn=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Ev)throw new TypeError("pattern is too long")},aa=Symbol("subparse");Ne.makeRe=(t,e)=>new Sr(t,e||{}).makeRe();Ne.match=(t,e,r={})=>{let i=new Sr(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};var vv=t=>t.replace(/\\(.)/g,"$1"),xv=t=>t.replace(/\\([^-\]])/g,"$1"),Tv=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Rv=t=>t.replace(/[[\]\\]/g,"\\$&"),Sr=class{constructor(e,r){Fn(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(Jc)),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 th(this.pattern,this.options)}parse(e,r){Fn(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+=oa,s=!0;break;case"?":n+=ua,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;Xc[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:Qc[u].open,close:Qc[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("["+Rv(xv(d))+"]"),n+=O}catch{n=n.substring(0,c)+"(?:$.)"}s=!0,f=!1;continue;default:S(),Xc[O]&&!(O==="^"&&f)&&(n+="\\"),n+=O;break}}for(f&&(d=e.slice(h+1),p=this.parse(d,aa),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==="*"?oa:m.type==="?"?ua:"\\"+m.type;s=!0,n=n.slice(0,m.reStart)+O+"\\("+x}S(),o&&(n+="\\\\");let T=Sv[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!==aa?"(?:$|\\/)":"";n=w+R+A+te+N}if(n!==""&&s&&(n="(?=.)"+n),T&&(n=b()+n),r===aa)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return vv(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?oa:r.dot?bv:wv,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?Tv(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;la.sep!=="/"&&(e=e.split(la.sep).join("/")),e=e.split(Jc),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=Sr});var ah=g((n3,oh)=>{"use strict";oh.exports=sh;var ha=P("fs"),{EventEmitter:Av}=P("events"),{Minimatch:ca}=rh(),{resolve:Ov}=P("path");function Iv(t,e){return new Promise((r,i)=>{ha.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 ih(t,e){return new Promise((r,i)=>{(e?ha.stat:ha.lstat)(t,(s,o)=>{s?s.code==="ENOENT"?r(e?ih(t,!1):null):r(null):r(o)})})}async function*nh(t,e,r,i,n,s){let o=await Iv(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 ih(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*nh(u,e,r,i,n,!1)):yield{relative:f,absolute:c,stats:h}}}async function*Dv(t,e,r,i){yield*nh("",t,e,r,i,!0)}function Pv(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 Av{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=Pv(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 ca(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 ca(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 ca(s,{dot:!0}))}this.iterator=Dv(Ov(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 sh(t,e,r){return new qn(t,e,r)}sh.ReaddirGlob=qn});var sd={};XE(sd,{all:()=>Sa,allLimit:()=>Ea,allSeries:()=>va,any:()=>Da,anyLimit:()=>Pa,anySeries:()=>La,apply:()=>dh,applyEach:()=>bh,applyEachSeries:()=>wh,asyncify:()=>Bn,auto:()=>ka,autoInject:()=>Sh,cargo:()=>Eh,cargoQueue:()=>vh,compose:()=>xh,concat:()=>ga,concatLimit:()=>bi,concatSeries:()=>_a,constant:()=>Th,default:()=>Mx,detect:()=>ya,detectLimit:()=>ma,detectSeries:()=>ba,dir:()=>Ah,doDuring:()=>Un,doUntil:()=>Oh,doWhilst:()=>Un,during:()=>Hn,each:()=>wa,eachLimit:()=>Wn,eachOf:()=>qe,eachOfLimit:()=>mi,eachOfSeries:()=>Xe,eachSeries:()=>zn,ensureAsync:()=>qa,every:()=>Sa,everyLimit:()=>Ea,everySeries:()=>va,filter:()=>xa,filterLimit:()=>Ta,filterSeries:()=>Ra,find:()=>ya,findLimit:()=>ma,findSeries:()=>ba,flatMap:()=>ga,flatMapLimit:()=>bi,flatMapSeries:()=>_a,foldl:()=>Er,foldr:()=>Oa,forEach:()=>wa,forEachLimit:()=>Wn,forEachOf:()=>qe,forEachOfLimit:()=>mi,forEachOfSeries:()=>Xe,forEachSeries:()=>zn,forever:()=>Dh,groupBy:()=>Ph,groupByLimit:()=>Qn,groupBySeries:()=>Lh,inject:()=>Er,log:()=>Nh,map:()=>Kn,mapLimit:()=>Ei,mapSeries:()=>Ca,mapValues:()=>Ch,mapValuesLimit:()=>Xn,mapValuesSeries:()=>kh,memoize:()=>Mh,nextTick:()=>Fh,parallel:()=>qh,parallelLimit:()=>jh,priorityQueue:()=>Bh,queue:()=>Ba,race:()=>Uh,reduce:()=>Er,reduceRight:()=>Oa,reflect:()=>Gn,reflectAll:()=>Wh,reject:()=>zh,rejectLimit:()=>Gh,rejectSeries:()=>$h,retry:()=>$n,retryable:()=>Yh,select:()=>xa,selectLimit:()=>Ta,selectSeries:()=>Ra,seq:()=>Fa,series:()=>Kh,setImmediate:()=>At,some:()=>Da,someLimit:()=>Pa,someSeries:()=>La,sortBy:()=>Zh,timeout:()=>Qh,times:()=>Xh,timesLimit:()=>Jn,timesSeries:()=>Jh,transform:()=>ed,tryEach:()=>td,unmemoize:()=>rd,until:()=>id,waterfall:()=>nd,whilst:()=>Hn,wrapSync:()=>Bn});function dh(t,...e){return(...r)=>t(...e,...r)}function wi(t){return function(...e){var r=e.pop();return t.call(this,e,r)}}function _h(t){setTimeout(t,0)}function yh(t){return(e,...r)=>t(()=>e(...r))}function Bn(t){return Si(t)?function(...e){let r=e.pop(),i=t.apply(this,e);return lh(i,r)}:wi(function(e,r){var i;try{i=t.apply(this,e)}catch(n){return r(n)}if(i&&typeof i.then=="function")return lh(i,r);r(null,i)})}function lh(t,e){return t.then(r=>{uh(e,null,r)},r=>{uh(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function uh(t,e,r){try{t(e,r)}catch(i){At(n=>{throw n},i)}}function Si(t){return t[Symbol.toStringTag]==="AsyncFunction"}function Nv(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function Cv(t){return typeof t[Symbol.asyncIterator]=="function"}function F(t){if(typeof t!="function")throw new Error("expected a function");return Si(t)?Bn(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 mh(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 Na(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 Vn(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 kv(t){return t[Symbol.iterator]&&t[Symbol.iterator]()}function Mv(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function Fv(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 jv(t){if(Vn(t))return Mv(t);var e=kv(t);return e?Fv(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 fh(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===Yn||n&&a<=0)return n=!0,i(null);u()}}function c(h){s||(o=!1,n=!0,i(h))}u()}function Bv(t,e,r,i){return $e(e)(t,F(r),i)}function Uv(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===Yn)&&r(null))}for(;i<s;i++)e(t[i],i,It(a))}function Wv(t,e,r){return mi(t,1/0,e,r)}function zv(t,e,r){var i=Vn(t)?Uv:Wv;return i(t,F(e),r)}function Gv(t,e,r){return Na(qe,t,e,r)}function $v(t,e,r){return mi(t,1,e,r)}function Hv(t,e,r){return Na(Xe,t,e,r)}function vr(){let t,e;function r(i,...n){if(i)return e(i);t(n.length>1?n:n[0])}return r[xr]=new Promise((i,n)=>{t=i,e=n}),r}function ka(t,e,r){typeof e!="number"&&(r=e,e=null),r=Ot(r||vr());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[xr]}function Qv(t){let e="",r=0,i=t.indexOf("*/");for(;r<t.length;)if(t[r]==="/"&&t[r+1]==="/"){let n=t.indexOf(`
|
|
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 Xv(t){let e=Qv(t.toString()),r=e.match(Vv);if(r||(r=e.match(Yv)),!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 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
|
-
`)),e.linkname&&(r+=
|
|
10
|
-
`));let i=e.pax;if(i)for(let n in i)r+=
|
|
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(`
|
|
6
|
+
`+e);let[,i]=r;return i.replace(/\s/g,"").split(Kv).map(n=>n.replace(Zv,"").trim())}function Sh(t,e){var r={};return Object.keys(t).forEach(i=>{var n=t[i],s,o=Si(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=Xv(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)}}),ka(r,e)}function ch(t,e){t.length=1,t.head=t.tail=e}function Ma(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 pa,_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 Eh(t,e){return Ma(t,1,e)}function vh(t,e,r){return Ma(t,e,r)}function Jv(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 Fa(...t){var e=t.map(F);return function(...r){var i=this,n=r[r.length-1];return typeof n=="function"?r.pop():n=vr(),Er(e,r,(s,o,a)=>{o.apply(i,s.concat((l,...u)=>{a(l,u)}))},(s,o)=>n(s,...o)),n[xr]}}function xh(...t){return Fa(...t.reverse())}function ex(t,e,r,i){return Na($e(e),t,r,i)}function tx(t,e,r,i){var n=F(r);return Ei(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 rx(t,e,r){return bi(t,1/0,e,r)}function ix(t,e,r){return bi(t,1,e,r)}function Th(...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,Yn);c()})},u=>{if(u)return s(u);s(null,o?a:e(!1))})}}function nx(t,e,r){return dt(i=>i,(i,n)=>n)(qe,t,e,r)}function sx(t,e,r,i){return dt(n=>n,(n,s)=>s)($e(e),t,r,i)}function ox(t,e,r){return dt(i=>i,(i,n)=>n)($e(1),t,e,r)}function Rh(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 ax(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 Oh(t,e,r){let i=F(e);return Un(t,(...n)=>{let s=n.pop();i(...n,(o,a)=>s(o,!a))},r)}function Ih(t){return(e,r,i)=>t(e,i)}function lx(t,e,r){return qe(t,Ih(F(e)),r)}function ux(t,e,r,i){return $e(e)(t,Ih(F(r)),i)}function fx(t,e,r){return Wn(t,1,e,r)}function qa(t){return Si(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 cx(t,e,r){return dt(i=>!i,i=>!i)(qe,t,e,r)}function hx(t,e,r,i){return dt(n=>!n,n=>!n)($e(e),t,r,i)}function dx(t,e,r){return dt(i=>!i,i=>!i)(Xe,t,e,r)}function px(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 gx(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 Zn(t,e,r,i){var n=Vn(e)?px:gx;return n(t,e,F(r),i)}function _x(t,e,r){return Zn(qe,t,e,r)}function yx(t,e,r,i){return Zn($e(e),t,r,i)}function mx(t,e,r){return Zn(Xe,t,e,r)}function bx(t,e){var r=It(e),i=F(qa(t));function n(s){if(s)return r(s);s!==!1&&i(n)}return n()}function wx(t,e,r,i){var n=F(r);return Ei(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 Ph(t,e,r){return Qn(t,1/0,e,r)}function Lh(t,e,r){return Qn(t,1,e,r)}function Sx(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 Ch(t,e,r){return Xn(t,1/0,e,r)}function kh(t,e,r){return Xn(t,1,e,r)}function Mh(t,e=r=>r){var r=Object.create(null),i=Object.create(null),n=F(t),s=wi((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 qh(t,e){return ja(qe,t,e)}function jh(t,e,r){return ja($e(e),t,r)}function Ba(t,e){var r=F(t);return Ma((i,n)=>{r(i[0],n)},e,1)}function Ex(t){return(t<<1)+1}function hh(t){return(t+1>>1)-1}function da(t,e){return t.priority!==e.priority?t.priority<e.priority:t.pushCount<e.pushCount}function Bh(t,e){var r=Ba(t,e),{push:i,pushAsync:n}=r;r._tasks=new Aa,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 vx(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 Oa(t,e,r,i){var n=[...t].reverse();return Er(n,e,r,i)}function Gn(t){var e=F(t);return wi(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 Wh(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 Ua(t,e,r,i){let n=F(r);return Zn(t,e,(s,o)=>{n(s,(a,l)=>{o(a,!l)})},i)}function xx(t,e,r){return Ua(qe,t,e,r)}function Tx(t,e,r,i){return Ua($e(e),t,r,i)}function Rx(t,e,r){return Ua(Xe,t,e,r)}function Hh(t){return function(){return t}}function $n(t,e,r){var i={times:Ia,intervalFunc:Hh(Vh)};if(arguments.length<3&&typeof t=="function"?(r=e||vr(),e=t):(Ax(i,t),r=r||vr()),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[xr]}function Ax(t,e){if(typeof e=="object")t.times=+e.times||Ia,t.intervalFunc=typeof e.interval=="function"?e.interval:Hh(+e.interval||Vh),t.errorFilter=e.errorFilter;else if(typeof e=="number"||typeof e=="string")t.times=+e||Ia;else throw new Error("Invalid arguments for async.retry")}function Yh(t,e){e||(e=t,t=null);let r=t&&t.arity||e.length;Si(e)&&(r+=1);var i=F(e);return wi((n,s)=>{(n.length<r-1||s==null)&&(n.push(s),s=vr());function o(a){i(...n,a)}return t?$n(t,o,s):$n(o,s),s[xr]})}function Kh(t,e){return ja(Xe,t,e)}function Ox(t,e,r){return dt(Boolean,i=>i)(qe,t,e,r)}function Ix(t,e,r,i){return dt(Boolean,n=>n)($e(e),t,r,i)}function Dx(t,e,r){return dt(Boolean,i=>i)(Xe,t,e,r)}function Px(t,e,r){var i=F(e);return Kn(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 Qh(t,e,r){var i=F(t);return wi((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 Lx(t){for(var e=Array(t);t--;)e[t]=t;return e}function Jn(t,e,r,i){var n=F(r);return Ei(Lx(t),e,n,i)}function Xh(t,e,r){return Jn(t,1/0,e,r)}function Jh(t,e,r){return Jn(t,1,e,r)}function ed(t,e,r,i){arguments.length<=3&&typeof e=="function"&&(i=r,r=e,e=Array.isArray(t)?[]:{}),i=Ot(i||vr());var n=F(r);return qe(t,(s,o,a)=>{n(e,s,o,a)},s=>i(s,e)),i[xr]}function Nx(t,e){var r=null,i;return zn(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 rd(t){return(...e)=>(t.unmemoized||t)(...e)}function Cx(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 id(t,e,r){let i=F(t);return Hn(n=>i((s,o)=>n(s,!o)),e,r)}function kx(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 Lv,ph,gh,yi,At,Yn,$e,mi,qe,Kn,bh,Xe,Ca,wh,xr,Vv,Yv,Kv,Zv,pa,Er,Ei,bi,ga,_a,ya,ma,ba,Ah,Un,wa,Wn,zn,Sa,Ea,va,xa,Ta,Ra,Dh,Qn,Nh,Xn,jn,Fh,ja,Aa,Uh,zh,Gh,$h,Ia,Vh,Da,Pa,La,Zh,td,Hn,nd,Mx,od=QE(()=>{"use strict";Lv=typeof queueMicrotask=="function"&&queueMicrotask,ph=typeof setImmediate=="function"&&setImmediate,gh=typeof process=="object"&&typeof process.nextTick=="function";Lv?yi=queueMicrotask:ph?yi=setImmediate:gh?yi=process.nextTick:yi=_h;At=yh(yi);Yn={};$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(Nv(e))return fh(e,t,r,i);if(Cv(e))return fh(e[Symbol.asyncIterator](),t,r,i);var n=jv(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===Yn||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()};mi=M(Bv,4);qe=M(zv,3);Kn=M(Gv,3),bh=mh(Kn);Xe=M($v,3);Ca=M(Hv,3),wh=mh(Ca),xr=Symbol("promiseCallback");Vv=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,Yv=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,Kv=/,/,Zv=/(=.+)?(\s*)$/;pa=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):ch(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):ch(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}};Er=M(Jv,4);Ei=M(ex,4);bi=M(tx,4);ga=M(rx,3);_a=M(ix,3);ya=M(nx,3);ma=M(sx,4);ba=M(ox,3);Ah=Rh("dir");Un=M(ax,3);wa=M(lx,3);Wn=M(ux,4);zn=M(fx,3);Sa=M(cx,3);Ea=M(hx,4);va=M(dx,3);xa=M(_x,3);Ta=M(yx,4);Ra=M(mx,3);Dh=M(bx,2);Qn=M(wx,4);Nh=Rh("log");Xn=M(Sx,4);gh?jn=process.nextTick:ph?jn=setImmediate:jn=_h;Fh=yh(jn),ja=M((t,e,r)=>{var i=Vn(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);Aa=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&&da(this.heap[e],this.heap[r=hh(e)]);){let i=this.heap[e];this.heap[e]=this.heap[r],this.heap[r]=i,e=r}}percDown(e){let r;for(;(r=Ex(e))<this.heap.length&&(r+1<this.heap.length&&da(this.heap[r+1],this.heap[r])&&(r=r+1),!da(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=hh(this.heap.length-1);i>=0;i--)this.percDown(i);return this}};Uh=M(vx,2);zh=M(xx,3);Gh=M(Tx,4);$h=M(Rx,3);Ia=5,Vh=0;Da=M(Ox,3);Pa=M(Ix,4);La=M(Dx,3);Zh=M(Px,3);td=M(Nx);Hn=M(Cx,3);nd=M(kx),Mx={apply:dh,applyEach:bh,applyEachSeries:wh,asyncify:Bn,auto:ka,autoInject:Sh,cargo:Eh,cargoQueue:vh,compose:xh,concat:ga,concatLimit:bi,concatSeries:_a,constant:Th,detect:ya,detectLimit:ma,detectSeries:ba,dir:Ah,doUntil:Oh,doWhilst:Un,each:wa,eachLimit:Wn,eachOf:qe,eachOfLimit:mi,eachOfSeries:Xe,eachSeries:zn,ensureAsync:qa,every:Sa,everyLimit:Ea,everySeries:va,filter:xa,filterLimit:Ta,filterSeries:Ra,forever:Dh,groupBy:Ph,groupByLimit:Qn,groupBySeries:Lh,log:Nh,map:Kn,mapLimit:Ei,mapSeries:Ca,mapValues:Ch,mapValuesLimit:Xn,mapValuesSeries:kh,memoize:Mh,nextTick:Fh,parallel:qh,parallelLimit:jh,priorityQueue:Bh,queue:Ba,race:Uh,reduce:Er,reduceRight:Oa,reflect:Gn,reflectAll:Wh,reject:zh,rejectLimit:Gh,rejectSeries:$h,retry:$n,retryable:Yh,seq:Fa,series:Kh,setImmediate:At,some:Da,someLimit:Pa,someSeries:La,sortBy:Zh,timeout:Qh,times:Xh,timesLimit:Jn,timesSeries:Jh,transform:ed,tryEach:td,unmemoize:rd,until:id,waterfall:nd,whilst:Hn,all:Sa,allLimit:Ea,allSeries:va,any:Da,anyLimit:Pa,anySeries:La,find:ya,findLimit:ma,findSeries:ba,flatMap:ga,flatMapLimit:bi,flatMapSeries:_a,forEach:wa,forEachSeries:zn,forEachLimit:Wn,forEachOf:qe,forEachOfSeries:Xe,forEachOfLimit:mi,inject:Er,foldl:Er,foldr:Oa,select:xa,selectLimit:Ta,selectSeries:Ra,wrapSync:Bn,during:Hn,doDuring:Un}});var ld=g((s3,ad)=>{"use strict";var Dt=P("constants"),Fx=process.cwd,es=null,qx=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return es||(es=Fx.call(process)),es};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Wa=process.chdir,process.chdir=function(t){es=null,Wa.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Wa));var Wa;ad.exports=jx;function jx(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(),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 cd=g((o3,fd)=>{"use strict";var ud=P("stream").Stream;fd.exports=Bx;function Bx(t){return{ReadStream:e,WriteStream:r};function e(i,n){if(!(this instanceof e))return new e(i,n);ud.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);ud.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 dd=g((a3,hd)=>{"use strict";hd.exports=Wx;var Ux=Object.getPrototypeOf||function(t){return t.__proto__};function Wx(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:Ux(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var Ha=g((l3,$a)=>{"use strict";var ne=P("fs"),zx=ld(),Gx=cd(),$x=dd(),ts=P("util"),me,is;typeof Symbol=="function"&&typeof Symbol.for=="function"?(me=Symbol.for("graceful-fs.queue"),is=Symbol.for("graceful-fs.previous")):(me="___graceful-fs.queue",is="___graceful-fs.previous");function Hx(){}function _d(t,e){Object.defineProperty(t,me,{get:function(){return e}})}var Xt=Hx;ts.debuglog?Xt=ts.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Xt=function(){var t=ts.format.apply(ts,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
7
|
+
GFS4: `),console.error(t)});ne[me]||(pd=global[me]||[],_d(ne,pd),ne.close=(function(t){function e(r,i){return t.call(ne,r,function(n){n||gd(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,is,{value:t}),e})(ne.close),ne.closeSync=(function(t){function e(r){t.apply(ne,arguments),gd()}return Object.defineProperty(e,is,{value:t}),e})(ne.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Xt(ne[me]),P("assert").equal(ne[me].length,0)}));var pd;global[me]||_d(global,ne[me]);$a.exports=za($x(ne));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ne.__patched&&($a.exports=za(ne),ne.__patched=!0);function za(t){zx(t),t.gracefulify=za,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")?Tr([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")?Tr([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")?Tr([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")?Tr([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")?Tr([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,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,ZB){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Tr([z,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return t}function Tr(t){Xt("ENQUEUE",t[0].name,t[1]),ne[me].push(t),Ga()}var rs;function gd(){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(rs),rs=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)Xt("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){Xt("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?(Xt("RETRY",e.name,r),e.apply(null,r.concat([n]))):ne[me].push(t)}rs===void 0&&(rs=setTimeout(Ga,0))}}});var ns=g((u3,yd)=>{"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";yd.exports=Je});var vi=g((f3,Va)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Va.exports={nextTick:Vx}:Va.exports=process;function Vx(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 bd=g((c3,md)=>{"use strict";var Yx={}.toString;md.exports=Array.isArray||function(t){return Yx.call(t)=="[object Array]"}});var Ya=g((h3,wd)=>{"use strict";wd.exports=P("stream")});var xi=g((Ka,Ed)=>{"use strict";var ss=P("buffer"),pt=ss.Buffer;function Sd(t,e){for(var r in t)e[r]=t[r]}pt.from&&pt.alloc&&pt.allocUnsafe&&pt.allocUnsafeSlow?Ed.exports=ss:(Sd(ss,Ka),Ka.Buffer=Rr);function Rr(t,e,r){return pt(t,e,r)}Sd(pt,Rr);Rr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return pt(t,e,r)};Rr.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};Rr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return pt(t)};Rr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ss.SlowBuffer(t)}});var Ar=g(ve=>{"use strict";function Kx(t){return Array.isArray?Array.isArray(t):os(t)==="[object Array]"}ve.isArray=Kx;function Zx(t){return typeof t=="boolean"}ve.isBoolean=Zx;function Qx(t){return t===null}ve.isNull=Qx;function Xx(t){return t==null}ve.isNullOrUndefined=Xx;function Jx(t){return typeof t=="number"}ve.isNumber=Jx;function e1(t){return typeof t=="string"}ve.isString=e1;function t1(t){return typeof t=="symbol"}ve.isSymbol=t1;function r1(t){return t===void 0}ve.isUndefined=r1;function i1(t){return os(t)==="[object RegExp]"}ve.isRegExp=i1;function n1(t){return typeof t=="object"&&t!==null}ve.isObject=n1;function s1(t){return os(t)==="[object Date]"}ve.isDate=s1;function o1(t){return os(t)==="[object Error]"||t instanceof Error}ve.isError=o1;function a1(t){return typeof t=="function"}ve.isFunction=a1;function l1(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}ve.isPrimitive=l1;ve.isBuffer=P("buffer").Buffer.isBuffer;function os(t){return Object.prototype.toString.call(t)}});var vd=g((p3,Za)=>{"use strict";typeof Object.create=="function"?Za.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Za.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 Or=g((g3,Xa)=>{"use strict";try{if(Qa=P("util"),typeof Qa.inherits!="function")throw"";Xa.exports=Qa.inherits}catch{Xa.exports=vd()}var Qa});var Td=g((_3,Ja)=>{"use strict";function u1(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var xd=xi().Buffer,Ti=P("util");function f1(t,e,r){t.copy(e,r)}Ja.exports=(function(){function t(){u1(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 xd.alloc(0);for(var i=xd.allocUnsafe(r>>>0),n=this.head,s=0;n;)f1(n.data,i,s),s+=n.data.length,n=n.next;return i},t})();Ti&&Ti.inspect&&Ti.inspect.custom&&(Ja.exports.prototype[Ti.inspect.custom]=function(){var t=Ti.inspect({length:this.length});return this.constructor.name+" "+t})});var el=g((y3,Rd)=>{"use strict";var as=vi();function c1(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,as.nextTick(ls,this,t)):as.nextTick(ls,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,as.nextTick(ls,r,s)):as.nextTick(ls,r,s):e&&e(s)}),this)}function h1(){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 ls(t,e){t.emit("error",e)}Rd.exports={destroy:c1,undestroy:h1}});var Od=g((m3,Ad)=>{"use strict";Ad.exports=P("util").deprecate});var rl=g((b3,Md)=>{"use strict";var Jt=vi();Md.exports=fe;function Dd(t){var e=this;this.next=null,this.entry=null,this.finish=function(){D1(e,t)}}var d1=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Jt.nextTick,Ir;fe.WritableState=Ai;var Pd=Object.create(Ar());Pd.inherits=Or();var p1={deprecate:Od()},Ld=Ya(),fs=xi().Buffer,g1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function _1(t){return fs.from(t)}function y1(t){return fs.isBuffer(t)||t instanceof g1}var Nd=el();Pd.inherits(fe,Ld);function m1(){}function Ai(t,e){Ir=Ir||er(),t=t||{};var r=e instanceof Ir;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){T1(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 Dd(this)}Ai.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Ai.prototype,"buffer",{get:p1.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var us;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(us=Function.prototype[Symbol.hasInstance],Object.defineProperty(fe,Symbol.hasInstance,{value:function(t){return us.call(this,t)?!0:this!==fe?!1:t&&t._writableState instanceof Ai}})):us=function(t){return t instanceof this};function fe(t){if(Ir=Ir||er(),!us.call(fe,this)&&!(this instanceof Ir))return new fe(t);this._writableState=new Ai(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)),Ld.call(this)}fe.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function b1(t,e){var r=new Error("write after end");t.emit("error",r),Jt.nextTick(e,r)}function w1(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),Jt.nextTick(i,s),n=!1),n}fe.prototype.write=function(t,e,r){var i=this._writableState,n=!1,s=!i.objectMode&&y1(t);return s&&!fs.isBuffer(t)&&(t=_1(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=m1),i.ended?b1(this,r):(s||w1(this,i,t,r))&&(i.pendingcb++,n=E1(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&&Cd(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 S1(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=fs.from(e,r)),e}Object.defineProperty(fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function E1(t,e,r,i,n,s){if(!r){var o=S1(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 tl(t,e,!1,a,i,n,s);return l}function tl(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 v1(t,e,r,i,n){--e.pendingcb,r?(Jt.nextTick(n,i),Jt.nextTick(Ri,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(n(i),t._writableState.errorEmitted=!0,t.emit("error",i),Ri(t,e))}function x1(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function T1(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(x1(r),e)v1(t,r,i,e,n);else{var s=kd(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Cd(t,r),i?d1(Id,t,r,s,n):Id(t,r,s,n)}}function Id(t,e,r,i){r||R1(t,e),e.pendingcb--,i(),Ri(t,e)}function R1(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Cd(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,tl(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 Dd(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,f=r.callback,c=e.objectMode?1:l.length;if(tl(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||I1(this,i,r)};function kd(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function A1(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),Ri(t,e)})}function O1(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,Jt.nextTick(A1,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Ri(t,e){var r=kd(e);return r&&(O1(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}function I1(t,e,r){e.ending=!0,Ri(t,e),r&&(e.finished?Jt.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function D1(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=Nd.destroy;fe.prototype._undestroy=Nd.undestroy;fe.prototype._destroy=function(t,e){this.end(),e(t)}});var er=g((w3,Bd)=>{"use strict";var Fd=vi(),P1=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Bd.exports=gt;var qd=Object.create(Ar());qd.inherits=Or();var jd=sl(),nl=rl();qd.inherits(gt,jd);for(il=P1(nl.prototype),cs=0;cs<il.length;cs++)hs=il[cs],gt.prototype[hs]||(gt.prototype[hs]=nl.prototype[hs]);var il,hs,cs;function gt(t){if(!(this instanceof gt))return new gt(t);jd.call(this,t),nl.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",L1)}Object.defineProperty(gt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L1(){this.allowHalfOpen||this._writableState.ended||Fd.nextTick(N1,this)}function N1(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(),Fd.nextTick(e,t)}});var ll=g(Wd=>{"use strict";var al=xi().Buffer,Ud=al.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 C1(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 k1(t){var e=C1(t);if(typeof e!="string"&&(al.isEncoding===Ud||!Ud(t)))throw new Error("Unknown encoding: "+t);return e||t}Wd.StringDecoder=Oi;function Oi(t){this.encoding=k1(t);var e;switch(this.encoding){case"utf16le":this.text=U1,this.end=W1,e=4;break;case"utf8":this.fillLast=q1,e=4;break;case"base64":this.text=z1,this.end=G1,e=3;break;default:this.write=$1,this.end=H1;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=al.allocUnsafe(e)}Oi.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||""};Oi.prototype.end=B1;Oi.prototype.text=j1;Oi.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 ol(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function M1(t,e,r){var i=e.length-1;if(i<r)return 0;var n=ol(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=ol(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=ol(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function F1(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=F1(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 j1(t,e){var r=M1(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 B1(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function U1(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 W1(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 z1(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 $1(t){return t.toString(this.encoding)}function H1(t){return t&&t.length?this.write(t):""}});var sl=g((v3,ep)=>{"use strict";var Pr=vi();ep.exports=Q;var V1=bd(),Ii;Q.ReadableState=Kd;var E3=P("events").EventEmitter,Hd=function(t,e){return t.listeners(e).length},dl=Ya(),Di=xi().Buffer,Y1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function K1(t){return Di.from(t)}function Z1(t){return Di.isBuffer(t)||t instanceof Y1}var Vd=Object.create(Ar());Vd.inherits=Or();var ul=P("util"),$=void 0;ul&&ul.debuglog?$=ul.debuglog("stream"):$=function(){};var Q1=Td(),Yd=el(),Dr;Vd.inherits(Q,dl);var fl=["error","close","destroy","pause","resume"];function X1(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):V1(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Kd(t,e){Ii=Ii||er(),t=t||{};var r=e instanceof Ii;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 Q1,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&&(Dr||(Dr=ll().StringDecoder),this.decoder=new Dr(t.encoding),this.encoding=t.encoding)}function Q(t){if(Ii=Ii||er(),!(this instanceof Q))return new Q(t);this._readableState=new Kd(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),dl.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=Yd.destroy;Q.prototype._undestroy=Yd.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=Di.from(t,e),e=""),i=!0),Zd(this,t,e,!1,i)};Q.prototype.unshift=function(t){return Zd(this,t,null,!0,!1)};function Zd(t,e,r,i,n){var s=t._readableState;if(e===null)s.reading=!1,rT(t,s);else{var o;n||(o=J1(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Di.prototype&&(e=K1(e)),i?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):cl(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?cl(t,s,e,!1):Qd(t,s)):cl(t,s,e,!1))):i||(s.reading=!1)}return eT(s)}function cl(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&&ds(t)),Qd(t,e)}function J1(t,e){var r;return!Z1(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function eT(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 Dr||(Dr=ll().StringDecoder),this._readableState.decoder=new Dr(t),this._readableState.encoding=t,this};var zd=8388608;function tT(t){return t>=zd?t=zd:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Gd(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=tT(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?hl(this):ds(this),null;if(t=Gd(t,e),t===0&&e.ended)return e.length===0&&hl(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=Gd(r,e)));var n;return t>0?n=Xd(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&&hl(this)),n!==null&&this.emit("data",n),n};function rT(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,ds(t)}}function ds(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||($("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Pr.nextTick($d,t):$d(t))}function $d(t){$("emit readable"),t.emit("readable"),pl(t)}function Qd(t,e){e.readingMore||(e.readingMore=!0,Pr.nextTick(iT,t,e))}function iT(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?Pr.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=nT(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&&Jd(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),Hd(t,"error")===0&&t.emit("error",y)}X1(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 nT(t){return function(){var e=t._readableState;$("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&Hd(t,"data")&&(e.flowing=!0,pl(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=Jd(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=dl.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&&ds(this):Pr.nextTick(sT,this))}return r};Q.prototype.addListener=Q.prototype.on;function sT(t){$("readable nexttick read 0"),t.read(0)}Q.prototype.resume=function(){var t=this._readableState;return t.flowing||($("resume"),t.flowing=!0,oT(this,t)),this};function oT(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Pr.nextTick(aT,t,e))}function aT(t,e){e.reading||($("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),pl(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 pl(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<fl.length;s++)t.on(fl[s],this.emit.bind(this,fl[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=Xd;function Xd(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=lT(t,e.buffer,e.decoder),r}function lT(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?uT(t,e):fT(t,e),i}function uT(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 fT(t,e){var r=Di.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 hl(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Pr.nextTick(cT,e,t))}function cT(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function Jd(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var gl=g((x3,ip)=>{"use strict";ip.exports=_t;var ps=er(),rp=Object.create(Ar());rp.inherits=Or();rp.inherits(_t,ps);function hT(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);ps.call(this,t),this._transformState={afterTransform:hT.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",dT)}function dT(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){tp(t,e,r)}):tp(this,null,null)}_t.prototype.push=function(t,e){return this._transformState.needTransform=!1,ps.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;ps.prototype._destroy.call(this,t,function(i){e(i),r.emit("close")})};function tp(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 ap=g((T3,op)=>{"use strict";op.exports=Pi;var np=gl(),sp=Object.create(Ar());sp.inherits=Or();sp.inherits(Pi,np);function Pi(t){if(!(this instanceof Pi))return new Pi(t);np.call(this,t)}Pi.prototype._transform=function(t,e,r){r(null,t)}});var lp=g((be,gs)=>{"use strict";var et=P("stream");process.env.READABLE_STREAM==="disable"&&et?(gs.exports=et,be=gs.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=gs.exports=sl(),be.Stream=et||be,be.Readable=be,be.Writable=rl(),be.Duplex=er(),be.Transform=gl(),be.PassThrough=ap())});var fp=g((R3,up)=>{"use strict";up.exports=lp().PassThrough});var pp=g((A3,dp)=>{"use strict";var cp=P("util"),ms=fp();dp.exports={Readable:_s,Writable:ys};cp.inherits(_s,ms);cp.inherits(ys,ms);function hp(t,e,r){t[e]=function(){return delete t[e],r.apply(this,arguments),this[e].apply(this,arguments)}}function _s(t,e){if(!(this instanceof _s))return new _s(t,e);ms.call(this,e),hp(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 ys(t,e){if(!(this instanceof ys))return new ys(t,e);ms.call(this,e),hp(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 _l=g((O3,gp)=>{"use strict";gp.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 yl=g((I3,_p)=>{"use strict";function pT(t){return t}_p.exports=pT});var mp=g((D3,yp)=>{"use strict";function gT(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)}yp.exports=gT});var Sp=g((P3,wp)=>{"use strict";var _T=mp(),bp=Math.max;function yT(t,e,r){return e=bp(e===void 0?t.length-1:e,0),function(){for(var i=arguments,n=-1,s=bp(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),_T(t,this,a)}}wp.exports=yT});var vp=g((L3,Ep)=>{"use strict";function mT(t){return function(){return t}}Ep.exports=mT});var ml=g((N3,xp)=>{"use strict";var bT=typeof global=="object"&&global&&global.Object===Object&&global;xp.exports=bT});var Lr=g((C3,Tp)=>{"use strict";var wT=ml(),ST=typeof self=="object"&&self&&self.Object===Object&&self,ET=wT||ST||Function("return this")();Tp.exports=ET});var bs=g((k3,Rp)=>{"use strict";var vT=Lr(),xT=vT.Symbol;Rp.exports=xT});var Dp=g((M3,Ip)=>{"use strict";var Ap=bs(),Op=Object.prototype,TT=Op.hasOwnProperty,RT=Op.toString,Li=Ap?Ap.toStringTag:void 0;function AT(t){var e=TT.call(t,Li),r=t[Li];try{t[Li]=void 0;var i=!0}catch{}var n=RT.call(t);return i&&(e?t[Li]=r:delete t[Li]),n}Ip.exports=AT});var Lp=g((F3,Pp)=>{"use strict";var OT=Object.prototype,IT=OT.toString;function DT(t){return IT.call(t)}Pp.exports=DT});var Ni=g((q3,kp)=>{"use strict";var Np=bs(),PT=Dp(),LT=Lp(),NT="[object Null]",CT="[object Undefined]",Cp=Np?Np.toStringTag:void 0;function kT(t){return t==null?t===void 0?CT:NT:Cp&&Cp in Object(t)?PT(t):LT(t)}kp.exports=kT});var Ci=g((j3,Mp)=>{"use strict";function MT(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}Mp.exports=MT});var bl=g((B3,Fp)=>{"use strict";var FT=Ni(),qT=Ci(),jT="[object AsyncFunction]",BT="[object Function]",UT="[object GeneratorFunction]",WT="[object Proxy]";function zT(t){if(!qT(t))return!1;var e=FT(t);return e==BT||e==UT||e==jT||e==WT}Fp.exports=zT});var jp=g((U3,qp)=>{"use strict";var GT=Lr(),$T=GT["__core-js_shared__"];qp.exports=$T});var Wp=g((W3,Up)=>{"use strict";var wl=jp(),Bp=(function(){var t=/[^.]+$/.exec(wl&&wl.keys&&wl.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function HT(t){return!!Bp&&Bp in t}Up.exports=HT});var Gp=g((z3,zp)=>{"use strict";var VT=Function.prototype,YT=VT.toString;function KT(t){if(t!=null){try{return YT.call(t)}catch{}try{return t+""}catch{}}return""}zp.exports=KT});var Hp=g((G3,$p)=>{"use strict";var ZT=bl(),QT=Wp(),XT=Ci(),JT=Gp(),eR=/[\\^$.*+?()[\]{}|]/g,tR=/^\[object .+?Constructor\]$/,rR=Function.prototype,iR=Object.prototype,nR=rR.toString,sR=iR.hasOwnProperty,oR=RegExp("^"+nR.call(sR).replace(eR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function aR(t){if(!XT(t)||QT(t))return!1;var e=ZT(t)?oR:tR;return e.test(JT(t))}$p.exports=aR});var Yp=g(($3,Vp)=>{"use strict";function lR(t,e){return t?.[e]}Vp.exports=lR});var ki=g((H3,Kp)=>{"use strict";var uR=Hp(),fR=Yp();function cR(t,e){var r=fR(t,e);return uR(r)?r:void 0}Kp.exports=cR});var Qp=g((V3,Zp)=>{"use strict";var hR=ki(),dR=(function(){try{var t=hR(Object,"defineProperty");return t({},"",{}),t}catch{}})();Zp.exports=dR});var eg=g((Y3,Jp)=>{"use strict";var pR=vp(),Xp=Qp(),gR=yl(),_R=Xp?function(t,e){return Xp(t,"toString",{configurable:!0,enumerable:!1,value:pR(e),writable:!0})}:gR;Jp.exports=_R});var rg=g((K3,tg)=>{"use strict";var yR=800,mR=16,bR=Date.now;function wR(t){var e=0,r=0;return function(){var i=bR(),n=mR-(i-r);if(r=i,n>0){if(++e>=yR)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}tg.exports=wR});var ng=g((Z3,ig)=>{"use strict";var SR=eg(),ER=rg(),vR=ER(SR);ig.exports=vR});var ws=g((Q3,sg)=>{"use strict";var xR=yl(),TR=Sp(),RR=ng();function AR(t,e){return RR(TR(t,e,xR),t+"")}sg.exports=AR});var Ss=g((X3,og)=>{"use strict";function OR(t,e){return t===e||t!==t&&e!==e}og.exports=OR});var Sl=g((J3,ag)=>{"use strict";var IR=9007199254740991;function DR(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=IR}ag.exports=DR});var Es=g((e4,lg)=>{"use strict";var PR=bl(),LR=Sl();function NR(t){return t!=null&&LR(t.length)&&!PR(t)}lg.exports=NR});var El=g((t4,ug)=>{"use strict";var CR=9007199254740991,kR=/^(?:0|[1-9]\d*)$/;function MR(t,e){var r=typeof t;return e=e??CR,!!e&&(r=="number"||r!="symbol"&&kR.test(t))&&t>-1&&t%1==0&&t<e}ug.exports=MR});var cg=g((r4,fg)=>{"use strict";var FR=Ss(),qR=Es(),jR=El(),BR=Ci();function UR(t,e,r){if(!BR(r))return!1;var i=typeof e;return(i=="number"?qR(r)&&jR(e,r.length):i=="string"&&e in r)?FR(r[e],t):!1}fg.exports=UR});var dg=g((i4,hg)=>{"use strict";function WR(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}hg.exports=WR});var Nr=g((n4,pg)=>{"use strict";function zR(t){return t!=null&&typeof t=="object"}pg.exports=zR});var _g=g((s4,gg)=>{"use strict";var GR=Ni(),$R=Nr(),HR="[object Arguments]";function VR(t){return $R(t)&&GR(t)==HR}gg.exports=VR});var vl=g((o4,bg)=>{"use strict";var yg=_g(),YR=Nr(),mg=Object.prototype,KR=mg.hasOwnProperty,ZR=mg.propertyIsEnumerable,QR=yg((function(){return arguments})())?yg:function(t){return YR(t)&&KR.call(t,"callee")&&!ZR.call(t,"callee")};bg.exports=QR});var xl=g((a4,wg)=>{"use strict";var XR=Array.isArray;wg.exports=XR});var Eg=g((l4,Sg)=>{"use strict";function JR(){return!1}Sg.exports=JR});var Rg=g((Mi,Cr)=>{"use strict";var eA=Lr(),tA=Eg(),Tg=typeof Mi=="object"&&Mi&&!Mi.nodeType&&Mi,vg=Tg&&typeof Cr=="object"&&Cr&&!Cr.nodeType&&Cr,rA=vg&&vg.exports===Tg,xg=rA?eA.Buffer:void 0,iA=xg?xg.isBuffer:void 0,nA=iA||tA;Cr.exports=nA});var Og=g((u4,Ag)=>{"use strict";var sA=Ni(),oA=Sl(),aA=Nr(),lA="[object Arguments]",uA="[object Array]",fA="[object Boolean]",cA="[object Date]",hA="[object Error]",dA="[object Function]",pA="[object Map]",gA="[object Number]",_A="[object Object]",yA="[object RegExp]",mA="[object Set]",bA="[object String]",wA="[object WeakMap]",SA="[object ArrayBuffer]",EA="[object DataView]",vA="[object Float32Array]",xA="[object Float64Array]",TA="[object Int8Array]",RA="[object Int16Array]",AA="[object Int32Array]",OA="[object Uint8Array]",IA="[object Uint8ClampedArray]",DA="[object Uint16Array]",PA="[object Uint32Array]",X={};X[vA]=X[xA]=X[TA]=X[RA]=X[AA]=X[OA]=X[IA]=X[DA]=X[PA]=!0;X[lA]=X[uA]=X[SA]=X[fA]=X[EA]=X[cA]=X[hA]=X[dA]=X[pA]=X[gA]=X[_A]=X[yA]=X[mA]=X[bA]=X[wA]=!1;function LA(t){return aA(t)&&oA(t.length)&&!!X[sA(t)]}Ag.exports=LA});var Tl=g((f4,Ig)=>{"use strict";function NA(t){return function(e){return t(e)}}Ig.exports=NA});var Pg=g((Fi,kr)=>{"use strict";var CA=ml(),Dg=typeof Fi=="object"&&Fi&&!Fi.nodeType&&Fi,qi=Dg&&typeof kr=="object"&&kr&&!kr.nodeType&&kr,kA=qi&&qi.exports===Dg,Rl=kA&&CA.process,MA=(function(){try{var t=qi&&qi.require&&qi.require("util").types;return t||Rl&&Rl.binding&&Rl.binding("util")}catch{}})();kr.exports=MA});var kg=g((c4,Cg)=>{"use strict";var FA=Og(),qA=Tl(),Lg=Pg(),Ng=Lg&&Lg.isTypedArray,jA=Ng?qA(Ng):FA;Cg.exports=jA});var Fg=g((h4,Mg)=>{"use strict";var BA=dg(),UA=vl(),WA=xl(),zA=Rg(),GA=El(),$A=kg(),HA=Object.prototype,VA=HA.hasOwnProperty;function YA(t,e){var r=WA(t),i=!r&&UA(t),n=!r&&!i&&zA(t),s=!r&&!i&&!n&&$A(t),o=r||i||n||s,a=o?BA(t.length,String):[],l=a.length;for(var u in t)(e||VA.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}Mg.exports=YA});var jg=g((d4,qg)=>{"use strict";var KA=Object.prototype;function ZA(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||KA;return t===r}qg.exports=ZA});var Ug=g((p4,Bg)=>{"use strict";function QA(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}Bg.exports=QA});var zg=g((g4,Wg)=>{"use strict";var XA=Ci(),JA=jg(),eO=Ug(),tO=Object.prototype,rO=tO.hasOwnProperty;function iO(t){if(!XA(t))return eO(t);var e=JA(t),r=[];for(var i in t)i=="constructor"&&(e||!rO.call(t,i))||r.push(i);return r}Wg.exports=iO});var $g=g((_4,Gg)=>{"use strict";var nO=Fg(),sO=zg(),oO=Es();function aO(t){return oO(t)?nO(t,!0):sO(t)}Gg.exports=aO});var Yg=g((y4,Vg)=>{"use strict";var lO=ws(),uO=Ss(),fO=cg(),cO=$g(),Hg=Object.prototype,hO=Hg.hasOwnProperty,dO=lO(function(t,e){t=Object(t);var r=-1,i=e.length,n=i>2?e[2]:void 0;for(n&&fO(e[0],e[1],n)&&(i=1);++r<i;)for(var s=e[r],o=cO(s),a=-1,l=o.length;++a<l;){var u=o[a],f=t[u];(f===void 0||uO(f,Hg[u])&&!hO.call(t,u))&&(t[u]=s[u])}return t});Vg.exports=dO});var ie=g((m4,Kg)=>{"use strict";var Al=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}};Kg.exports={AggregateError:Al,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 Ol=g((b4,Zg)=>{"use strict";Zg.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((w4,Jg)=>{"use strict";var{format:pO,inspect:vs}=Ol(),{AggregateError:gO}=ie(),_O=globalThis.AggregateError||gO,yO=Symbol("kIsNodeError"),mO=["string","function","number","object","Function","Object","boolean","bigint","symbol"],bO=/^([A-Z][a-z0-9]*)+$/,wO="__node_internal_",xs={};function tr(t,e){if(!t)throw new xs.ERR_INTERNAL_ASSERTION(e)}function Qg(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 SO(t,e,r){if(typeof e=="function")return tr(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 tr(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:pO(e,...r)}function we(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(SO(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[yO]=!0,xs[t]=i}function Xg(t){let e=wO+t.name;return Object.defineProperty(t,"name",{value:e}),t}function EO(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new _O([e,t],e.message);return r.code=e.code,r}return t||e}var Il=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new xs.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)=>{tr(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)tr(typeof l=="string","All expected entries have to be of type string"),mO.includes(l)?n.push(l.toLowerCase()):bO.test(l)?s.push(l):(tr(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=vs(r,{depth:-1});i+=`. Received ${l}`}}else{let l=vs(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=vs(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)=>{tr(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)=>{tr(e,'Missing "range" argument');let i;if(Number.isInteger(r)&&Math.abs(r)>2**32)i=Qg(String(r));else if(typeof r=="bigint"){i=String(r);let n=BigInt(2)**BigInt(32);(r>n||r<-n)&&(i=Qg(i)),i+="n"}else i=vs(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);Jg.exports={AbortError:Il,aggregateTwoErrors:Xg(EO),hideStackFrames:Xg,codes:xs}});var u_=g((Ui,Bi)=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});var s_=new WeakMap,Dl=new WeakMap;function J(t){let e=s_.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}function e_(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 Mr(t,e){s_.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,o_(n))}}Mr.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(){e_(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||e_(J(this))},initEvent(){}};Object.defineProperty(Mr.prototype,"constructor",{value:Mr,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(Mr.prototype,window.Event.prototype),Dl.set(window.Event.prototype,Mr));function o_(t){return{get(){return J(this).event[t]},set(e){J(this).event[t]=e},configurable:!0,enumerable:!0}}function vO(t){return{value(){let e=J(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function xO(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?vO(s):o_(s))}}return i}function a_(t){if(t==null||t===Object.prototype)return Mr;let e=Dl.get(t);return e==null&&(e=xO(a_(Object.getPrototypeOf(t)),t),Dl.set(t,e)),e}function TO(t,e){let r=a_(Object.getPrototypeOf(e));return new r(t,e)}function RO(t){return J(t).immediateStopped}function AO(t,e){J(t).eventPhase=e}function OO(t,e){J(t).currentTarget=e}function t_(t,e){J(t).passiveListener=e}var l_=new WeakMap,r_=1,i_=2,Ts=3;function Rs(t){return t!==null&&typeof t=="object"}function ji(t){let e=l_.get(t);if(e==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function IO(t){return{get(){let r=ji(this).get(t);for(;r!=null;){if(r.listenerType===Ts)return r.listener;r=r.next}return null},set(e){typeof e!="function"&&!Rs(e)&&(e=null);let r=ji(this),i=null,n=r.get(t);for(;n!=null;)n.listenerType===Ts?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:Ts,passive:!1,once:!1,next:null};i===null?r.set(t,s):i.next=s}},configurable:!0,enumerable:!0}}function Pl(t,e){Object.defineProperty(t,`on${e}`,IO(e))}function n_(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)Pl(e.prototype,t[r]);return e}function He(){if(this instanceof He){l_.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return n_(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 n_(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"&&!Rs(e))throw new TypeError("'listener' should be a function or an object.");let i=ji(this),n=Rs(r),o=(n?!!r.capture:!!r)?r_:i_,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=ji(this),s=(Rs(r)?!!r.capture:!!r)?r_:i_,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=ji(this),r=t.type,i=e.get(r);if(i==null)return!0;let n=TO(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,t_(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!==Ts&&typeof i.listener.handleEvent=="function"&&i.listener.handleEvent(n);if(RO(n))break;i=i.next}return t_(n,null),AO(n,0),OO(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);Ui.defineEventAttribute=Pl;Ui.EventTarget=He;Ui.default=He;Bi.exports=He;Bi.exports.EventTarget=Bi.exports.default=He;Bi.exports.defineEventAttribute=Pl});var Fr=g((zi,Wi)=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});var Ll=u_(),Pt=class extends Ll.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=As.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}};Ll.defineEventAttribute(Pt.prototype,"abort");function DO(){let t=Object.create(Pt.prototype);return Ll.EventTarget.call(t),As.set(t,!1),t}function PO(t){As.get(t)===!1&&(As.set(t,!0),t.dispatchEvent({type:"abort"}))}var As=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(){c_.set(this,DO())}get signal(){return f_(this)}abort(){PO(f_(this))}},c_=new WeakMap;function f_(t){let e=c_.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"});zi.AbortController=Lt;zi.AbortSignal=Pt;zi.default=Lt;Wi.exports=Lt;Wi.exports.AbortController=Wi.exports.default=Lt;Wi.exports.AbortSignal=Pt});var Oe=g((S4,Cl)=>{"use strict";var LO=P("buffer"),{format:NO,inspect:CO}=Ol(),{codes:{ERR_INVALID_ARG_TYPE:Nl}}=xe(),{kResistStopPropagation:kO,AggregateError:MO,SymbolDispose:FO}=ie(),qO=globalThis.AbortSignal||Fr().AbortSignal,jO=globalThis.AbortController||Fr().AbortController,BO=Object.getPrototypeOf(async function(){}).constructor,h_=globalThis.Blob||LO.Blob,UO=typeof h_<"u"?function(e){return e instanceof h_}:function(e){return!1},d_=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Nl(e,"AbortSignal",t)},WO=(t,e)=>{if(typeof t!="function")throw new Nl(e,"Function",t)};Cl.exports={AggregateError:MO,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:NO,inspect:CO,types:{isAsyncFunction(t){return t instanceof BO},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:UO,deprecate(t,e){return t},addAbortListener:P("events").addAbortListener||function(e,r){if(e===void 0)throw new Nl("signal","AbortSignal",e);d_(e,"signal"),WO(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[kO]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[FO](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:qO.any||function(e){if(e.length===1)return e[0];let r=new jO,i=()=>r.abort();return e.forEach(n=>{d_(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};Cl.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var jr=g((E4,v_)=>{"use strict";var{ArrayIsArray:Ml,ArrayPrototypeIncludes:y_,ArrayPrototypeJoin:m_,ArrayPrototypeMap:zO,NumberIsInteger:Fl,NumberIsNaN:GO,NumberMAX_SAFE_INTEGER:$O,NumberMIN_SAFE_INTEGER:HO,NumberParseInt:VO,ObjectPrototypeHasOwnProperty:YO,RegExpPrototypeExec:b_,String:KO,StringPrototypeToUpperCase:ZO,StringPrototypeTrim:QO}=ie(),{hideStackFrames:je,codes:{ERR_SOCKET_BAD_PORT:XO,ERR_INVALID_ARG_TYPE:Te,ERR_INVALID_ARG_VALUE:qr,ERR_OUT_OF_RANGE:rr,ERR_UNKNOWN_SIGNAL:p_}}=xe(),{normalizeEncoding:JO}=Oe(),{isAsyncFunction:eI,isArrayBufferView:tI}=Oe().types,g_={};function rI(t){return t===(t|0)}function iI(t){return t===t>>>0}var nI=/^[0-7]+$/,sI="must be a 32-bit unsigned integer or an octal string";function oI(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(b_(nI,t)===null)throw new qr(e,t,sI);t=VO(t,8)}return w_(t,e),t}var aI=je((t,e,r=HO,i=$O)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Fl(t))throw new rr(e,"an integer",t);if(t<r||t>i)throw new rr(e,`>= ${r} && <= ${i}`,t)}),lI=je((t,e,r=-2147483648,i=2147483647)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Fl(t))throw new rr(e,"an integer",t);if(t<r||t>i)throw new rr(e,`>= ${r} && <= ${i}`,t)}),w_=je((t,e,r=!1)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Fl(t))throw new rr(e,"an integer",t);let i=r?1:0,n=4294967295;if(t<i||t>n)throw new rr(e,`>= ${i} && <= ${n}`,t)});function ql(t,e){if(typeof t!="string")throw new Te(e,"string",t)}function uI(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 rr(e,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,t)}var fI=je((t,e,r)=>{if(!y_(r,t)){let n="must be one of: "+m_(zO(r,s=>typeof s=="string"?`'${s}'`:KO(s)),", ");throw new qr(e,t,n)}});function S_(t,e){if(typeof t!="boolean")throw new Te(e,"boolean",t)}function kl(t,e,r){return t==null||!YO(t,e)?r:t[e]}var cI=je((t,e,r=null)=>{let i=kl(r,"allowArray",!1),n=kl(r,"allowFunction",!1);if(!kl(r,"nullable",!1)&&t===null||!i&&Ml(t)||typeof t!="object"&&(!n||typeof t!="function"))throw new Te(e,"Object",t)}),hI=je((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new Te(e,"a dictionary",t)}),Os=je((t,e,r=0)=>{if(!Ml(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 dI(t,e){Os(t,e);for(let r=0;r<t.length;r++)ql(t[r],`${e}[${r}]`)}function pI(t,e){Os(t,e);for(let r=0;r<t.length;r++)S_(t[r],`${e}[${r}]`)}function gI(t,e){Os(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);E_(i,n)}}function _I(t,e="signal"){if(ql(t,e),g_[t]===void 0)throw g_[ZO(t)]!==void 0?new p_(t+" (signals must use all capital letters)"):new p_(t)}var yI=je((t,e="buffer")=>{if(!tI(t))throw new Te(e,["Buffer","TypedArray","DataView"],t)});function mI(t,e){let r=JO(e),i=t.length;if(r==="hex"&&i%2!==0)throw new qr("encoding",e,`is invalid for data of length ${i}`)}function bI(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&QO(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new XO(e,t,r);return t|0}var E_=je((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Te(e,"AbortSignal",t)}),wI=je((t,e)=>{if(typeof t!="function")throw new Te(e,"Function",t)}),SI=je((t,e)=>{if(typeof t!="function"||eI(t))throw new Te(e,"Function",t)}),EI=je((t,e)=>{if(t!==void 0)throw new Te(e,"undefined",t)});function vI(t,e,r){if(!y_(r,t))throw new Te(e,`('${m_(r,"|")}')`,t)}var xI=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function __(t,e){if(typeof t>"u"||!b_(xI,t))throw new qr(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function TI(t){if(typeof t=="string")return __(t,"hints"),t;if(Ml(t)){let e=t.length,r="";if(e===0)return r;for(let i=0;i<e;i++){let n=t[i];__(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"')}v_.exports={isInt32:rI,isUint32:iI,parseFileMode:oI,validateArray:Os,validateStringArray:dI,validateBooleanArray:pI,validateAbortSignalArray:gI,validateBoolean:S_,validateBuffer:yI,validateDictionary:hI,validateEncoding:mI,validateFunction:wI,validateInt32:lI,validateInteger:aI,validateNumber:uI,validateObject:cI,validateOneOf:fI,validatePlainFunction:SI,validatePort:bI,validateSignalName:_I,validateString:ql,validateUint32:w_,validateUndefined:EI,validateUnion:vI,validateAbortSignal:E_,validateLinkHeaderValue:TI}});var Nt=g((v4,x_)=>{"use strict";x_.exports=global.process});var rt=g((x4,j_)=>{"use strict";var{SymbolAsyncIterator:T_,SymbolIterator:R_,SymbolFor:ir}=ie(),A_=ir("nodejs.stream.destroyed"),O_=ir("nodejs.stream.errored"),jl=ir("nodejs.stream.readable"),Bl=ir("nodejs.stream.writable"),I_=ir("nodejs.stream.disturbed"),RI=ir("nodejs.webstream.isClosedPromise"),AI=ir("nodejs.webstream.controllerErrorFunction");function Is(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 Ds(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 OI(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 D_(t){return!!(t&&!tt(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function P_(t){return!!(t&&!tt(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function L_(t){return!!(t&&!tt(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function II(t){return D_(t)||P_(t)||L_(t)}function DI(t,e){return t==null?!1:e===!0?typeof t[T_]=="function":e===!1?typeof t[R_]=="function":typeof t[T_]=="function"||typeof t[R_]=="function"}function Ps(t){if(!tt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!!(t.destroyed||t[A_]||i!=null&&i.destroyed)}function N_(t){if(!Ds(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 PI(t,e){if(!Ds(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 LI(t){if(!Is(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 C_(t,e){if(!Is(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 k_(t){return t&&t[jl]!=null?t[jl]:typeof t?.readable!="boolean"?null:Ps(t)?!1:Is(t)&&t.readable&&!C_(t)}function M_(t){return t&&t[Bl]!=null?t[Bl]:typeof t?.writable!="boolean"?null:Ps(t)?!1:Ds(t)&&t.writable&&!N_(t)}function NI(t,e){return tt(t)?Ps(t)?!0:!(e?.readable!==!1&&k_(t)||e?.writable!==!1&&M_(t)):null}function CI(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 kI(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 MI(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"&&F_(t)?t._closed:null}function F_(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function q_(t){return typeof t._sent100=="boolean"&&F_(t)}function FI(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&&q_(t)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function jI(t){var e;return!!(t&&((e=t[I_])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function BI(t){var e,r,i,n,s,o,a,l,u,f;return!!(t&&((e=(r=(i=(n=(s=(o=t[O_])!==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))}j_.exports={isDestroyed:Ps,kIsDestroyed:A_,isDisturbed:jI,kIsDisturbed:I_,isErrored:BI,kIsErrored:O_,isReadable:k_,kIsReadable:jl,kIsClosedPromise:RI,kControllerErrorFunction:AI,kIsWritable:Bl,isClosed:MI,isDuplexNodeStream:OI,isFinished:NI,isIterable:DI,isReadableNodeStream:Is,isReadableStream:D_,isReadableEnded:LI,isReadableFinished:C_,isReadableErrored:kI,isNodeStream:tt,isWebStream:II,isWritable:M_,isWritableNodeStream:Ds,isWritableStream:P_,isWritableEnded:N_,isWritableFinished:PI,isWritableErrored:CI,isServerRequest:FI,isServerResponse:q_,willEmitClose:qI,isTransformStream:L_}});var yt=g((T4,$l)=>{"use strict";var Ct=Nt(),{AbortError:Y_,codes:UI}=xe(),{ERR_INVALID_ARG_TYPE:WI,ERR_STREAM_PREMATURE_CLOSE:B_}=UI,{kEmptyObject:Wl,once:zl}=Oe(),{validateAbortSignal:zI,validateFunction:GI,validateObject:$I,validateBoolean:HI}=jr(),{Promise:VI,PromisePrototypeThen:YI,SymbolDispose:K_}=ie(),{isClosed:KI,isReadable:U_,isReadableNodeStream:Ul,isReadableStream:ZI,isReadableFinished:W_,isReadableErrored:z_,isWritable:G_,isWritableNodeStream:$_,isWritableStream:QI,isWritableFinished:H_,isWritableErrored:V_,isNodeStream:XI,willEmitClose:JI,kIsClosedPromise:eD}=rt(),Br;function tD(t){return t.setHeader&&typeof t.abort=="function"}var Gl=()=>{};function Z_(t,e,r){var i,n;if(arguments.length===2?(r=e,e=Wl):e==null?e=Wl:$I(e,"options"),GI(r,"callback"),zI(e.signal,"options.signal"),r=zl(r),ZI(t)||QI(t))return rD(t,e,r);if(!XI(t))throw new WI("stream",["ReadableStream","WritableStream","Stream"],t);let s=(i=e.readable)!==null&&i!==void 0?i:Ul(t),o=(n=e.writable)!==null&&n!==void 0?n:$_(t),a=t._writableState,l=t._readableState,u=()=>{t.writable||h()},f=JI(t)&&Ul(t)===s&&$_(t)===o,c=H_(t,!1),h=()=>{c=!0,t.destroyed&&(f=!1),!(f&&(!t.readable||s))&&(!s||d)&&r.call(t)},d=W_(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=KI(t),y=()=>{v=!0;let T=V_(t)||z_(t);if(T&&typeof T!="boolean")return r.call(t,T);if(s&&!d&&Ul(t,!0)&&!W_(t,!1))return r.call(t,new B_);if(o&&!c&&!H_(t,!1))return r.call(t,new B_);r.call(t)},b=()=>{v=!0;let T=V_(t)||z_(t);if(T&&typeof T!="boolean")return r.call(t,T);r.call(t)},E=()=>{t.req.on("finish",h)};tD(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||U_(t))&&(c||G_(t)===!1)||!o&&(!f||G_(t))&&(d||U_(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",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 Y_(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)Ct.nextTick(T);else{Br=Br||Oe().addAbortListener;let D=Br(e.signal,T),x=r;r=zl((...O)=>{D[K_](),x.apply(t,O)})}}return S}function rD(t,e,r){let i=!1,n=Gl;if(e.signal)if(n=()=>{i=!0,r.call(t,new Y_(void 0,{cause:e.signal.reason}))},e.signal.aborted)Ct.nextTick(n);else{Br=Br||Oe().addAbortListener;let o=Br(e.signal,n),a=r;r=zl((...l)=>{o[K_](),a.apply(t,l)})}let s=(...o)=>{i||Ct.nextTick(()=>r.apply(t,o))};return YI(t[eD].promise,s,s),Gl}function iD(t,e){var r;let i=!1;return e===null&&(e=Wl),(r=e)!==null&&r!==void 0&&r.cleanup&&(HI(e.cleanup,"cleanup"),i=e.cleanup),new VI((n,s)=>{let o=Z_(t,e,a=>{i&&o(),a?s(a):n()})})}$l.exports=Z_;$l.exports.finished=iD});var nr=g((R4,ny)=>{"use strict";var it=Nt(),{aggregateTwoErrors:nD,codes:{ERR_MULTIPLE_CALLBACK:sD},AbortError:oD}=xe(),{Symbol:J_}=ie(),{kIsDestroyed:aD,isDestroyed:lD,isFinished:uD,isServerRequest:fD}=rt(),ey=J_("kDestroy"),Hl=J_("kConstruct");function ty(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function cD(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):(ty(t,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),n.constructed?Q_(this,t,e):this.once(ey,function(s){Q_(this,nD(s,t),e)}),this)}function Q_(t,e,r){let i=!1;function n(s){if(i)return;i=!0;let o=t._readableState,a=t._writableState;ty(s,a,o),a&&(a.closed=!0),o&&(o.closed=!0),typeof r=="function"&&r(s),s?it.nextTick(hD,t,s):it.nextTick(ry,t)}try{t._destroy(e||null,n)}catch(s){n(s)}}function hD(t,e){Vl(t,e),ry(t)}function ry(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 Vl(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 dD(){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 Yl(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(Vl,t,e):Vl(t,e))}function pD(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(Hl,e),!(t.listenerCount(Hl)>1)&&it.nextTick(gD,t)}function gD(t){let e=!1;function r(i){if(e){Yl(t,i??new sD);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(ey,i):i?Yl(t,i,!0):it.nextTick(_D,t)}try{t._construct(i=>{it.nextTick(r,i)})}catch(i){it.nextTick(r,i)}}function _D(t){t.emit(Hl)}function X_(t){return t?.setHeader&&typeof t.abort=="function"}function iy(t){t.emit("close")}function yD(t,e){t.emit("error",e),it.nextTick(iy,t)}function mD(t,e){!t||lD(t)||(!e&&!uD(t)&&(e=new oD),fD(t)?(t.socket=null,t.destroy(e)):X_(t)?t.abort():X_(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?it.nextTick(yD,t,e):it.nextTick(iy,t),t.destroyed||(t[aD]=!0))}ny.exports={construct:pD,destroyer:mD,destroy:cD,undestroy:dD,errorOrDestroy:Yl}});var Cs=g((A4,oy)=>{"use strict";var{ArrayIsArray:bD,ObjectSetPrototypeOf:sy}=ie(),{EventEmitter:Ls}=P("events");function Ns(t){Ls.call(this,t)}sy(Ns.prototype,Ls.prototype);sy(Ns,Ls);Ns.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(),Ls.listenerCount(this,"error")===0&&this.emit("error",f)}Kl(r,"error",l),Kl(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 Kl(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):bD(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}oy.exports={Stream:Ns,prependListener:Kl}});var Gi=g((O4,ks)=>{"use strict";var{SymbolDispose:wD}=ie(),{AbortError:ay,codes:SD}=xe(),{isNodeStream:ly,isWebStream:ED,kControllerErrorFunction:vD}=rt(),xD=yt(),{ERR_INVALID_ARG_TYPE:uy}=SD,Zl,TD=(t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new uy(e,"AbortSignal",t)};ks.exports.addAbortSignal=function(e,r){if(TD(e,"signal"),!ly(r)&&!ED(r))throw new uy("stream",["ReadableStream","WritableStream","Stream"],r);return ks.exports.addAbortSignalNoValidate(e,r)};ks.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let r=ly(e)?()=>{e.destroy(new ay(void 0,{cause:t.reason}))}:()=>{e[vD](new ay(void 0,{cause:t.reason}))};if(t.aborted)r();else{Zl=Zl||Oe().addAbortListener;let i=Zl(t,r);xD(e,i[wD])}return e}});var hy=g((D4,cy)=>{"use strict";var{StringPrototypeSlice:fy,SymbolIterator:RD,TypedArrayPrototypeSet:Ms,Uint8Array:AD}=ie(),{Buffer:Ql}=P("buffer"),{inspect:OD}=Oe();cy.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 Ql.alloc(0);let r=Ql.allocUnsafe(e>>>0),i=this.head,n=0;for(;i;)Ms(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}*[RD](){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+=fy(s,0,e),this.head=i,i.data=fy(s,e));break}++n}while((i=i.next)!==null);return this.length-=n,r}_getBuffer(e){let r=Ql.allocUnsafe(e),i=e,n=this.head,s=0;do{let o=n.data;if(e>o.length)Ms(r,o,i-e),e-=o.length;else{e===o.length?(Ms(r,o,i-e),++s,n.next?this.head=n.next:this.head=this.tail=null):(Ms(r,new AD(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 OD(this,{...r,depth:0,customInspect:!1})}}});var $i=g((P4,_y)=>{"use strict";var{MathFloor:ID,NumberIsInteger:DD}=ie(),{validateInteger:PD}=jr(),{ERR_INVALID_ARG_VALUE:LD}=xe().codes,dy=16*1024,py=16;function ND(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function gy(t){return t?py:dy}function CD(t,e){PD(e,"value",0),t?py=e:dy=e}function kD(t,e,r,i){let n=ND(e,i,r);if(n!=null){if(!DD(n)||n<0){let s=i?`options.${r}`:"options.highWaterMark";throw new LD(s,n)}return ID(n)}return gy(t.objectMode)}_y.exports={getHighWaterMark:kD,getDefaultHighWaterMark:gy,setDefaultHighWaterMark:CD}});var by=g((Xl,my)=>{"use strict";var Fs=P("buffer"),nt=Fs.Buffer;function yy(t,e){for(var r in t)e[r]=t[r]}nt.from&&nt.alloc&&nt.allocUnsafe&&nt.allocUnsafeSlow?my.exports=Fs:(yy(Fs,Xl),Xl.Buffer=sr);function sr(t,e,r){return nt(t,e,r)}sr.prototype=Object.create(nt.prototype);yy(nt,sr);sr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return nt(t,e,r)};sr.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};sr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return nt(t)};sr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Fs.SlowBuffer(t)}});var Ey=g(Sy=>{"use strict";var eu=by().Buffer,wy=eu.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 MD(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 FD(t){var e=MD(t);if(typeof e!="string"&&(eu.isEncoding===wy||!wy(t)))throw new Error("Unknown encoding: "+t);return e||t}Sy.StringDecoder=Hi;function Hi(t){this.encoding=FD(t);var e;switch(this.encoding){case"utf16le":this.text=zD,this.end=GD,e=4;break;case"utf8":this.fillLast=BD,e=4;break;case"base64":this.text=$D,this.end=HD,e=3;break;default:this.write=VD,this.end=YD;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=eu.allocUnsafe(e)}Hi.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||""};Hi.prototype.end=WD;Hi.prototype.text=UD;Hi.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 Jl(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=Jl(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=Jl(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=Jl(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function jD(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 BD(t){var e=this.lastTotal-this.lastNeed,r=jD(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 UD(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 WD(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function zD(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 $D(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 HD(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function VD(t){return t.toString(this.encoding)}function YD(t){return t&&t.length?this.write(t):""}});var tu=g((N4,Ry)=>{"use strict";var vy=Nt(),{PromisePrototypeThen:KD,SymbolAsyncIterator:xy,SymbolIterator:Ty}=ie(),{Buffer:ZD}=P("buffer"),{ERR_INVALID_ARG_TYPE:QD,ERR_STREAM_NULL_VALUES:XD}=xe().codes;function JD(t,e,r){let i;if(typeof e=="string"||e instanceof ZD)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let n;if(e&&e[xy])n=!0,i=e[xy]();else if(e&&e[Ty])n=!1,i=e[Ty]();else throw new QD("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){KD(a(u),()=>vy.nextTick(f,u),c=>vy.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 XD;if(s.push(c))continue;o=!1}}catch(u){s.destroy(u)}break}}return s}Ry.exports=JD});var Yi=g((C4,Gy)=>{"use strict";var Ve=Nt(),{ArrayPrototypeIndexOf:eP,NumberIsInteger:tP,NumberIsNaN:rP,NumberParseInt:iP,ObjectDefineProperties:uu,ObjectKeys:nP,ObjectSetPrototypeOf:Iy,Promise:Dy,SafeSet:sP,SymbolAsyncDispose:oP,SymbolAsyncIterator:aP,Symbol:lP}=ie();Gy.exports=k;k.ReadableState=Us;var{EventEmitter:uP}=P("events"),{Stream:kt,prependListener:fP}=Cs(),{Buffer:ru}=P("buffer"),{addAbortSignal:cP}=Gi(),Py=yt(),B=Oe().debuglog("stream",t=>{B=t}),hP=hy(),zr=nr(),{getHighWaterMark:dP,getDefaultHighWaterMark:pP}=$i(),{aggregateTwoErrors:Ay,codes:{ERR_INVALID_ARG_TYPE:gP,ERR_METHOD_NOT_IMPLEMENTED:_P,ERR_OUT_OF_RANGE:yP,ERR_STREAM_PUSH_AFTER_EOF:mP,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:bP},AbortError:wP}=xe(),{validateObject:SP}=jr(),or=lP("kPaused"),{StringDecoder:Ly}=Ey(),EP=tu();Iy(k.prototype,kt.prototype);Iy(k,kt);var iu=()=>{},{errorOrDestroy:Ur}=zr,Wr=1,vP=2,Ny=4,Vi=8,Cy=16,qs=32,js=64,ky=128,xP=256,TP=512,RP=1024,au=2048,lu=4096,AP=8192,OP=16384,IP=32768,My=65536,DP=1<<17,PP=1<<18;function ce(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}uu(Us.prototype,{objectMode:ce(Wr),ended:ce(vP),endEmitted:ce(Ny),reading:ce(Vi),constructed:ce(Cy),sync:ce(qs),needReadable:ce(js),emittedReadable:ce(ky),readableListening:ce(xP),resumeScheduled:ce(TP),errorEmitted:ce(RP),emitClose:ce(au),autoDestroy:ce(lu),destroyed:ce(AP),closed:ce(OP),closeEmitted:ce(IP),multiAwaitDrain:ce(My),readingMore:ce(DP),dataEmitted:ce(PP)});function Us(t,e,r){typeof r!="boolean"&&(r=e instanceof st()),this.state=au|lu|Cy|qs,t&&t.objectMode&&(this.state|=Wr),r&&t&&t.readableObjectMode&&(this.state|=Wr),this.highWaterMark=t?dP(this,t,"readableHighWaterMark",r):pP(!1),this.buffer=new hP,this.length=0,this.pipes=[],this.flowing=null,this[or]=null,t&&t.emitClose===!1&&(this.state&=~au),t&&t.autoDestroy===!1&&(this.state&=~lu),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new Ly(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 Us(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&&cP(t.signal,this)),kt.call(this,t),zr.construct(this,()=>{this._readableState.needReadable&&Bs(this,this._readableState)})}k.prototype.destroy=zr.destroy;k.prototype._undestroy=zr.undestroy;k.prototype._destroy=function(t,e){e(t)};k.prototype[uP.captureRejectionSymbol]=function(t){this.destroy(t)};k.prototype[oP]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new wP,this.destroy(t)),new Dy((e,r)=>Py(this,i=>i&&i!==t?r(i):e(null)))};k.prototype.push=function(t,e){return Fy(this,t,e,!1)};k.prototype.unshift=function(t,e){return Fy(this,t,e,!0)};function Fy(t,e,r,i){B("readableAddChunk",e);let n=t._readableState,s;if((n.state&Wr)===0&&(typeof e=="string"?(r=r||n.defaultEncoding,n.encoding!==r&&(i&&n.encoding?e=ru.from(e,r).toString(n.encoding):(e=ru.from(e,r),r=""))):e instanceof ru?r="":kt._isUint8Array(e)?(e=kt._uint8ArrayToBuffer(e),r=""):e!=null&&(s=new gP("chunk",["string","Buffer","Uint8Array"],e))),s)Ur(t,s);else if(e===null)n.state&=~Vi,CP(t,n);else if((n.state&Wr)!==0||e&&e.length>0)if(i)if((n.state&Ny)!==0)Ur(t,new bP);else{if(n.destroyed||n.errored)return!1;nu(t,n,e,!0)}else if(n.ended)Ur(t,new mP);else{if(n.destroyed||n.errored)return!1;n.state&=~Vi,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?nu(t,n,e,!1):Bs(t,n)):nu(t,n,e,!1)}else i||(n.state&=~Vi,Bs(t,n));return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function nu(t,e,r,i){e.flowing&&e.length===0&&!e.sync&&t.listenerCount("data")>0?((e.state&My)!==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&js)!==0&&Ws(t)),Bs(t,e)}k.prototype.isPaused=function(){let t=this._readableState;return t[or]===!0||t.flowing===!1};k.prototype.setEncoding=function(t){let e=new Ly(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 LP=1073741824;function NP(t){if(t>LP)throw new yP("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function Oy(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&Wr)!==0?1:rP(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:tP(t)||(t=iP(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=NP(t)),t!==0&&(e.state&=~ky),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?su(this):Ws(this),null;if(t=Oy(t,e),t===0&&e.ended)return e.length===0&&su(this),null;let i=(e.state&js)!==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|=Vi|qs,e.length===0&&(e.state|=js);try{this._read(e.highWaterMark)}catch(s){Ur(this,s)}e.state&=~qs,e.reading||(t=Oy(r,e))}let n;return t>0?n=Wy(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&&su(this)),n!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",n)),n};function CP(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?Ws(t):(e.needReadable=!1,e.emittedReadable=!0,qy(t))}}function Ws(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(qy,t))}function qy(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,By(t)}function Bs(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,Ve.nextTick(kP,t,e))}function kP(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 _P("_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 sP(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=MP(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?Ur(t,y):t.emit("error",y)}}fP(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 MP(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=eP(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?Ws(this):i.reading||Ve.nextTick(FP,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(jy,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(jy,this),e};function jy(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[or]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function FP(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[or]=!1,this};function qP(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ve.nextTick(jP,t,e))}function jP(t,e){B("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),By(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[or]=!0,this};function By(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=>{Ur(this,i)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=nP(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[aP]=function(){return Uy(this)};k.prototype.iterator=function(t){return t!==void 0&&SP(t,"options"),Uy(this,t)};function Uy(t,e){typeof t.read!="function"&&(t=k.wrap(t,{objectMode:!0}));let r=BP(t,e);return r.stream=t,r}async function*BP(t,e){let r=iu;function i(o){this===t?(r(),r=iu):r=o}t.on("readable",i);let n,s=Py(t,{writable:!1},o=>{n=o?Ay(n,o):null,r(),r=iu});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 Dy(i)}}}catch(o){throw n=Ay(n,o),n}finally{(n||e?.destroyOnReturn!==!1)&&(n===void 0||t._readableState.autoDestroy)?zr.destroyer(t,null):(t.off("readable",i),s())}}uu(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}}});uu(Us.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[or]!==!1},set(t){this[or]=!!t}}});k._fromList=Wy;function Wy(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 su(t){let e=t._readableState;B("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,Ve.nextTick(UP,e,t))}function UP(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(WP,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}function WP(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}k.from=function(t,e){return EP(k,t,e)};var ou;function zy(){return ou===void 0&&(ou={}),ou}k.fromWeb=function(t,e){return zy().newStreamReadableFromReadableStream(t,e)};k.toWeb=function(t,e){return zy().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){zr.destroyer(t,n),s(n)}}).wrap(t)}});var Vs=g((k4,rm)=>{"use strict";var ar=Nt(),{ArrayPrototypeSlice:Vy,Error:zP,FunctionPrototypeSymbolHasInstance:Yy,ObjectDefineProperty:Ky,ObjectDefineProperties:GP,ObjectSetPrototypeOf:Zy,StringPrototypeToLowerCase:$P,Symbol:HP,SymbolHasInstance:VP}=ie();rm.exports=se;se.WritableState=Qi;var{EventEmitter:YP}=P("events"),Ki=Cs().Stream,{Buffer:zs}=P("buffer"),Hs=nr(),{addAbortSignal:KP}=Gi(),{getHighWaterMark:ZP,getDefaultHighWaterMark:QP}=$i(),{ERR_INVALID_ARG_TYPE:XP,ERR_METHOD_NOT_IMPLEMENTED:JP,ERR_MULTIPLE_CALLBACK:Qy,ERR_STREAM_CANNOT_PIPE:eL,ERR_STREAM_DESTROYED:Zi,ERR_STREAM_ALREADY_FINISHED:tL,ERR_STREAM_NULL_VALUES:rL,ERR_STREAM_WRITE_AFTER_END:iL,ERR_UNKNOWN_ENCODING:Xy}=xe().codes,{errorOrDestroy:Gr}=Hs;Zy(se.prototype,Ki.prototype);Zy(se,Ki);function hu(){}var $r=HP("kOnFinished");function Qi(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?ZP(this,t,"writableHighWaterMark",r):QP(!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=sL.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,$s(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[$r]=[]}function $s(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}Qi.prototype.getBuffer=function(){return Vy(this.buffered,this.bufferedIndex)};Ky(Qi.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function se(t){let e=this instanceof st();if(!e&&!Yy(se,this))return new se(t);this._writableState=new Qi(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&&KP(t.signal,this)),Ki.call(this,t),Hs.construct(this,()=>{let r=this._writableState;r.writing||pu(this,r),gu(this,r)})}Ky(se,VP,{__proto__:null,value:function(t){return Yy(this,t)?!0:this!==se?!1:t&&t._writableState instanceof Qi}});se.prototype.pipe=function(){Gr(this,new eL)};function Jy(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"&&!zs.isEncoding(r))throw new Xy(r);typeof i!="function"&&(i=hu)}if(e===null)throw new rL;if(!n.objectMode)if(typeof e=="string")n.decodeStrings!==!1&&(e=zs.from(e,r),r="buffer");else if(e instanceof zs)r="buffer";else if(Ki._isUint8Array(e))e=Ki._uint8ArrayToBuffer(e),r="buffer";else throw new XP("chunk",["string","Buffer","Uint8Array"],e);let s;return n.ending?s=new iL:n.destroyed&&(s=new Zi("write")),s?(ar.nextTick(i,s),Gr(t,s,!0),s):(n.pendingcb++,nL(t,n,e,r,i))}se.prototype.write=function(t,e,r){return Jy(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||pu(this,t))};se.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=$P(e)),!zs.isEncoding(e))throw new Xy(e);return this._writableState.defaultEncoding=e,this};function nL(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!==hu&&(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 $y(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Zi("write")):r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function Hy(t,e,r,i){--e.pendingcb,i(r),du(e),Gr(t,r)}function sL(t,e){let r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function"){Gr(t,new Qy);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?ar.nextTick(Hy,t,r,e,n):Hy(t,r,e,n)):(r.buffered.length>r.bufferedIndex&&pu(t,r),i?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===n?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:n,stream:t,state:r},ar.nextTick(oL,r.afterWriteTickInfo)):em(t,r,1,n))}function oL({stream:t,state:e,count:r,cb:i}){return e.afterWriteTickInfo=null,em(t,e,r,i)}function em(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&&du(e),gu(t,e)}function du(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 Zi("write"))}let r=t[$r].splice(0);for(let n=0;n<r.length;n++){var i;r[n]((i=t.errored)!==null&&i!==void 0?i:new Zi("end"))}$s(t)}function pu(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?hu:u=>{for(let f=o;f<r.length;++f)r[f].callback(u)},l=e.allNoop&&o===0?r:Vy(r,o);l.allBuffers=e.allBuffers,$y(t,e,!0,e.length,l,"",a),$s(e)}else{do{let{chunk:a,encoding:l,callback:u}=r[o];r[o++]=null;let f=n?1:a.length;$y(t,e,!1,f,a,l,u)}while(o<r.length&&!e.writing);o===r.length?$s(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 JP("_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=Jy(this,t,e);s instanceof zP&&(n=s)}return i.corked&&(i.corked=1,this.uncork()),n||(!i.errored&&!i.ending?(i.ending=!0,gu(this,i,!0),i.ended=!0):i.finished?n=new tL("end"):i.destroyed&&(n=new Zi("end"))),typeof r=="function"&&(n||i.finished?ar.nextTick(r,n):i[$r].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 aL(t,e){let r=!1;function i(n){if(r){Gr(t,n??Qy());return}if(r=!0,e.pendingcb--,n){let s=e[$r].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++,ar.nextTick(cu,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(n){i(n)}e.sync=!1}function lL(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,aL(t,e)):(e.prefinished=!0,t.emit("prefinish")))}function gu(t,e,r){Gs(e)&&(lL(t,e),e.pendingcb===0&&(r?(e.pendingcb++,ar.nextTick((i,n)=>{Gs(n)?cu(i,n):n.pendingcb--},t,e)):Gs(e)&&(e.pendingcb++,cu(t,e))))}function cu(t,e){e.pendingcb--,e.finished=!0;let r=e[$r].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 uL=Hs.destroy;se.prototype.destroy=function(t,e){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[$r].length)&&ar.nextTick(du,r),uL.call(this,t,e),this};se.prototype._undestroy=Hs.undestroy;se.prototype._destroy=function(t,e){e(t)};se.prototype[YP.captureRejectionSymbol]=function(t){this.destroy(t)};var fu;function tm(){return fu===void 0&&(fu={}),fu}se.fromWeb=function(t,e){return tm().newStreamWritableFromWritableStream(t,e)};se.toWeb=function(t){return tm().newWritableStreamFromStreamWritable(t)}});var ym=g((M4,_m)=>{"use strict";var _u=Nt(),fL=P("buffer"),{isReadable:cL,isWritable:hL,isIterable:im,isNodeStream:dL,isReadableNodeStream:nm,isWritableNodeStream:sm,isDuplexNodeStream:pL,isReadableStream:om,isWritableStream:am}=rt(),lm=yt(),{AbortError:pm,codes:{ERR_INVALID_ARG_TYPE:gL,ERR_INVALID_RETURN_VALUE:um}}=xe(),{destroyer:Vr}=nr(),_L=st(),gm=Yi(),yL=Vs(),{createDeferredPromise:fm}=Oe(),cm=tu(),hm=globalThis.Blob||fL.Blob,mL=typeof hm<"u"?function(e){return e instanceof hm}:function(e){return!1},bL=globalThis.AbortController||Fr().AbortController,{FunctionPrototypeCall:dm}=ie(),Mt=class extends _L{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)}};_m.exports=function t(e,r){if(pL(e))return e;if(nm(e))return Hr({readable:e});if(sm(e))return Hr({writable:e});if(dL(e))return Hr({writable:!1,readable:!1});if(om(e))return Hr({readable:gm.fromWeb(e)});if(am(e))return Hr({writable:yL.fromWeb(e)});if(typeof e=="function"){let{value:n,write:s,final:o,destroy:a}=wL(e);if(im(n))return cm(Mt,n,{objectMode:!0,write:s,final:o,destroy:a});let l=n?.then;if(typeof l=="function"){let u,f=dm(l,n,c=>{if(c!=null)throw new um("nully","body",c)},c=>{Vr(u,c)});return u=new Mt({objectMode:!0,readable:!1,write:s,final(c){o(async()=>{try{await f,_u.nextTick(c,null)}catch(h){_u.nextTick(c,h)}})},destroy:a})}throw new um("Iterable, AsyncIterable or AsyncFunction",r,n)}if(mL(e))return t(e.arrayBuffer());if(im(e))return cm(Mt,e,{objectMode:!0,writable:!1});if(om(e?.readable)&&am(e?.writable))return Mt.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let n=e!=null&&e.readable?nm(e?.readable)?e?.readable:t(e.readable):void 0,s=e!=null&&e.writable?sm(e?.writable)?e?.writable:t(e.writable):void 0;return Hr({readable:n,writable:s})}let i=e?.then;if(typeof i=="function"){let n;return dm(i,e,s=>{s!=null&&n.push(s),n.push(null)},s=>{Vr(n,s)}),n=new Mt({objectMode:!0,writable:!1,read(){}})}throw new gL(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function wL(t){let{promise:e,resolve:r}=fm(),i=new bL,n=i.signal;return{value:t((async function*(){for(;;){let o=e;e=null;let{chunk:a,done:l,cb:u}=await o;if(_u.nextTick(u),l)return;if(n.aborted)throw new pm(void 0,{cause:n.reason});({promise:e,resolve:r}=fm()),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 Hr(t){let e=t.readable&&typeof t.readable.read!="function"?gm.wrap(t.readable):t.readable,r=t.writable,i=!!cL(e),n=!!hL(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&&(lm(r,c=>{n=!1,c&&Vr(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&&(lm(e,c=>{i=!1,c&&Vr(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 pm),a=null,s=null,o=null,l===null?h(c):(l=h,Vr(r,c),Vr(e,c))},u}});var st=g((F4,wm)=>{"use strict";var{ObjectDefineProperties:SL,ObjectGetOwnPropertyDescriptor:mt,ObjectKeys:EL,ObjectSetPrototypeOf:mm}=ie();wm.exports=Ye;var bu=Yi(),Be=Vs();mm(Ye.prototype,bu.prototype);mm(Ye,bu);{let t=EL(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);bu.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}SL(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 yu;function bm(){return yu===void 0&&(yu={}),yu}Ye.fromWeb=function(t,e){return bm().newStreamDuplexFromReadableWritablePair(t,e)};Ye.toWeb=function(t){return bm().newReadableWritablePairFromDuplex(t)};var mu;Ye.from=function(t){return mu||(mu=ym()),mu(t,"body")}});var Eu=g((q4,Em)=>{"use strict";var{ObjectSetPrototypeOf:Sm,Symbol:vL}=ie();Em.exports=bt;var{ERR_METHOD_NOT_IMPLEMENTED:xL}=xe().codes,Su=st(),{getHighWaterMark:TL}=$i();Sm(bt.prototype,Su.prototype);Sm(bt,Su);var Xi=vL("kCallback");function bt(t){if(!(this instanceof bt))return new bt(t);let e=t?TL(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),Su.call(this,t),this._readableState.sync=!1,this[Xi]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",RL)}function wu(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 RL(){this._final!==wu&&wu.call(this)}bt.prototype._final=wu;bt.prototype._transform=function(t,e,r){throw new xL("_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[Xi]=r})};bt.prototype._read=function(){if(this[Xi]){let t=this[Xi];this[Xi]=null,t()}}});var xu=g((j4,xm)=>{"use strict";var{ObjectSetPrototypeOf:vm}=ie();xm.exports=Yr;var vu=Eu();vm(Yr.prototype,vu.prototype);vm(Yr,vu);function Yr(t){if(!(this instanceof Yr))return new Yr(t);vu.call(this,t)}Yr.prototype._transform=function(t,e,r){r(null,t)}});var Qs=g((B4,Im)=>{"use strict";var Ji=Nt(),{ArrayIsArray:AL,Promise:OL,SymbolAsyncIterator:IL,SymbolDispose:DL}=ie(),Zs=yt(),{once:PL}=Oe(),LL=nr(),Tm=st(),{aggregateTwoErrors:NL,codes:{ERR_INVALID_ARG_TYPE:Nu,ERR_INVALID_RETURN_VALUE:Tu,ERR_MISSING_ARGS:CL,ERR_STREAM_DESTROYED:kL,ERR_STREAM_PREMATURE_CLOSE:ML},AbortError:FL}=xe(),{validateFunction:qL,validateAbortSignal:jL}=jr(),{isIterable:lr,isReadable:Ru,isReadableNodeStream:Ks,isNodeStream:Rm,isTransformStream:Kr,isWebStream:BL,isReadableStream:Au,isReadableFinished:UL}=rt(),WL=globalThis.AbortController||Fr().AbortController,Ou,Iu,Du;function Am(t,e,r){let i=!1;t.on("close",()=>{i=!0});let n=Zs(t,{readable:e,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,LL.destroyer(t,s||new kL("pipe")))},cleanup:n}}function zL(t){return qL(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function Pu(t){if(lr(t))return t;if(Ks(t))return GL(t);throw new Nu("val",["Readable","Iterable","AsyncIterable"],t)}async function*GL(t){Iu||(Iu=Yi()),yield*Iu.prototype[IL].call(t)}async function Ys(t,e,r,{end:i}){let n,s=null,o=u=>{if(u&&(n=u),s){let f=s;s=null,f()}},a=()=>new OL((u,f)=>{n?f(n):s=()=>{n?f(n):u()}});e.on("drain",o);let l=Zs(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?NL(n,u):u)}finally{l(),e.off("drain",o)}}async function Lu(t,e,r,{end:i}){Kr(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 $L(...t){return Om(t,PL(zL(t)))}function Om(t,e,r){if(t.length===1&&AL(t[0])&&(t=t[0]),t.length<2)throw new CL("streams");let i=new WL,n=i.signal,s=r?.signal,o=[];jL(s,"options.signal");function a(){m(new FL)}Du=Du||Oe().addAbortListener;let l;s&&(l=Du(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[DL](),i.abort(),S&&(u||o.forEach(D=>D()),Ji.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(Rm(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}=Am(S,T,D);c.push(R),Ru(S)&&O&&o.push(A)}S.on("error",w),Ru(S)&&O&&o.push(()=>{S.removeListener("error",w)})}if(E===0)if(typeof S=="function"){if(p=S({signal:n}),!lr(p))throw new Tu("Iterable, AsyncIterable or Stream","source",p)}else lr(S)||Ks(S)||Kr(S)?p=S:p=Tm.from(S);else if(typeof S=="function"){if(Kr(p)){var v;p=Pu((v=p)===null||v===void 0?void 0:v.readable)}else p=Pu(p);if(p=S(p,{signal:n}),T){if(!lr(p,!0))throw new Tu("AsyncIterable",`transform[${E-1}]`,p)}else{var y;Ou||(Ou=xu());let w=new Ou({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(),Ji.nextTick(d)},z=>{w.destroy(z),Ji.nextTick(d,z)});else if(lr(p,!0))h++,Ys(p,w,d,{end:x});else if(Au(p)||Kr(p)){let z=p.readable||p;h++,Ys(z,w,d,{end:x})}else throw new Tu("AsyncIterable or Promise","destination",p);p=w;let{destroy:A,cleanup:N}=Am(p,!1,!0);c.push(A),O&&o.push(N)}}else if(Rm(S)){if(Ks(p)){h+=2;let w=HL(p,S,d,{end:x});Ru(S)&&O&&o.push(w)}else if(Kr(p)||Au(p)){let w=p.readable||p;h++,Ys(w,S,d,{end:x})}else if(lr(p))h++,Ys(p,S,d,{end:x});else throw new Nu("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],p);p=S}else if(BL(S)){if(Ks(p))h++,Lu(Pu(p),S,d,{end:x});else if(Au(p)||lr(p))h++,Lu(p,S,d,{end:x});else if(Kr(p))h++,Lu(p.readable,S,d,{end:x});else throw new Nu("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],p);p=S}else p=Tm.from(S)}return(n!=null&&n.aborted||s!=null&&s.aborted)&&Ji.nextTick(a),p}function HL(t,e,r,{end:i}){let n=!1;if(e.on("close",()=>{n||r(new ML)}),t.pipe(e,{end:!1}),i){let o=function(){n=!0,e.end()};var s=o;UL(t)?Ji.nextTick(o):t.once("end",o)}else r();return Zs(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)}),Zs(e,{readable:!1,writable:!0},r)}Im.exports={pipelineImpl:Om,pipeline:$L}});var ku=g((U4,km)=>{"use strict";var{pipeline:VL}=Qs(),Xs=st(),{destroyer:YL}=nr(),{isNodeStream:Js,isReadable:Dm,isWritable:Pm,isWebStream:Cu,isTransformStream:ur,isWritableStream:Lm,isReadableStream:Nm}=rt(),{AbortError:KL,codes:{ERR_INVALID_ARG_VALUE:Cm,ERR_MISSING_ARGS:ZL}}=xe(),QL=yt();km.exports=function(...e){if(e.length===0)throw new ZL("streams");if(e.length===1)return Xs.from(e[0]);let r=[...e];if(typeof e[0]=="function"&&(e[0]=Xs.from(e[0])),typeof e[e.length-1]=="function"){let d=e.length-1;e[d]=Xs.from(e[d])}for(let d=0;d<e.length;++d)if(!(!Js(e[d])&&!Cu(e[d]))){if(d<e.length-1&&!(Dm(e[d])||Nm(e[d])||ur(e[d])))throw new Cm(`streams[${d}]`,r[d],"must be readable");if(d>0&&!(Pm(e[d])||Lm(e[d])||ur(e[d])))throw new Cm(`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=VL(e,l),c=!!(Pm(u)||Lm(u)||ur(u)),h=!!(Dm(f)||Nm(f)||ur(f));if(a=new Xs({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(f!=null&&f.readableObjectMode),writable:c,readable:h}),c){if(Js(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(Cu(u)){let p=(ur(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=ur(f)?f.readable:f;QL(d,()=>{if(n){let m=n;n=null,m()}})}if(h){if(Js(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(Cu(f)){let m=(ur(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 KL),s=null,i=null,n=null,o===null?m(d):(o=m,Js(f)&&YL(f,d))},a}});var $m=g((W4,qu)=>{"use strict";var XL=globalThis.AbortController||Fr().AbortController,{codes:{ERR_INVALID_ARG_VALUE:JL,ERR_INVALID_ARG_TYPE:en,ERR_MISSING_ARGS:eN,ERR_OUT_OF_RANGE:tN},AbortError:ot}=xe(),{validateAbortSignal:fr,validateInteger:Mm,validateObject:cr}=jr(),rN=ie().Symbol("kWeak"),iN=ie().Symbol("kResistStopPropagation"),{finished:nN}=yt(),sN=ku(),{addAbortSignalNoValidate:oN}=Gi(),{isWritable:aN,isNodeStream:lN}=rt(),{deprecate:uN}=Oe(),{ArrayPrototypePush:fN,Boolean:cN,MathFloor:Fm,Number:hN,NumberIsNaN:dN,Promise:qm,PromiseReject:jm,PromiseResolve:pN,PromisePrototypeThen:Bm,Symbol:Wm}=ie(),eo=Wm("kEmpty"),Um=Wm("kEof");function gN(t,e){if(e!=null&&cr(e,"options"),e?.signal!=null&&fr(e.signal,"options.signal"),lN(t)&&!aN(t))throw new JL("stream",t,"must be writable");let r=sN(this,t);return e!=null&&e.signal&&oN(e.signal,r),r}function to(t,e){if(typeof t!="function")throw new en("fn",["Function","AsyncFunction"],t);e!=null&&cr(e,"options"),e?.signal!=null&&fr(e.signal,"options.signal");let r=1;e?.concurrency!=null&&(r=Fm(e.concurrency));let i=r-1;return e?.highWaterMark!=null&&(i=Fm(e.highWaterMark)),Mm(r,"options.concurrency",1),Mm(i,"options.highWaterMark",0),i+=r,async function*(){let s=Oe().AbortSignalAny([e?.signal].filter(cN)),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===eo)continue;y=pN(y)}catch(b){y=jm(b)}h+=1,Bm(y,m,d),a.push(y),u&&(u(),u=null),!c&&(a.length>=i||h>=r)&&await new qm(b=>{f=b})}a.push(Um)}catch(y){let b=jm(y);Bm(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===Um)return;if(s.aborted)throw new ot;y!==eo&&(yield y),a.shift(),p()}await new qm(y=>{u=y})}}finally{c=!0,f&&(f(),f=null)}}.call(this)}function _N(t=void 0){return t!=null&&cr(t,"options"),t?.signal!=null&&fr(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 zm(t,e=void 0){for await(let r of Fu.call(this,t,e))return!0;return!1}async function yN(t,e=void 0){if(typeof t!="function")throw new en("fn",["Function","AsyncFunction"],t);return!await zm.call(this,async(...r)=>!await t(...r),e)}async function mN(t,e){for await(let r of Fu.call(this,t,e))return r}async function bN(t,e){if(typeof t!="function")throw new en("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n),eo}for await(let i of to.call(this,r,e));}function Fu(t,e){if(typeof t!="function")throw new en("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n)?i:eo}return to.call(this,r,e)}var Mu=class extends eN{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function wN(t,e,r){var i;if(typeof t!="function")throw new en("reducer",["Function","AsyncFunction"],t);r!=null&&cr(r,"options"),r?.signal!=null&&fr(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 nN(this.destroy(u)),u}let s=new XL,o=s.signal;if(r!=null&&r.signal){let u={once:!0,[rN]:this,[iN]:!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 Mu}finally{s.abort()}return e}async function SN(t){t!=null&&cr(t,"options"),t?.signal!=null&&fr(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});fN(e,i)}return e}function EN(t,e){let r=to.call(this,t,e);return async function*(){for await(let n of r)yield*n}.call(this)}function Gm(t){if(t=hN(t),dN(t))return 0;if(t<0)throw new tN("number",">= 0",t);return t}function vN(t,e=void 0){return e!=null&&cr(e,"options"),e?.signal!=null&&fr(e.signal,"options.signal"),t=Gm(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 xN(t,e=void 0){return e!=null&&cr(e,"options"),e?.signal!=null&&fr(e.signal,"options.signal"),t=Gm(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:uN(_N,"readable.asIndexedPairs will be removed in a future version."),drop:vN,filter:Fu,flatMap:EN,map:to,take:xN,compose:gN};qu.exports.promiseReturningOperators={every:yN,forEach:bN,reduce:wN,toArray:SN,some:zm,find:mN}});var ju=g((z4,Hm)=>{"use strict";var{ArrayPrototypePop:TN,Promise:RN}=ie(),{isIterable:AN,isNodeStream:ON,isWebStream:IN}=rt(),{pipelineImpl:DN}=Qs(),{finished:PN}=yt();Bu();function LN(...t){return new RN((e,r)=>{let i,n,s=t[t.length-1];if(s&&typeof s=="object"&&!ON(s)&&!AN(s)&&!IN(s)){let o=TN(t);i=o.signal,n=o.end}DN(t,(o,a)=>{o?r(o):e(a)},{signal:i,end:n})})}Hm.exports={finished:PN,pipeline:LN}});var Bu=g((G4,tb)=>{"use strict";var{Buffer:NN}=P("buffer"),{ObjectDefineProperty:wt,ObjectKeys:Km,ReflectApply:Zm}=ie(),{promisify:{custom:Qm}}=Oe(),{streamReturningOperators:Vm,promiseReturningOperators:Ym}=$m(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:Xm}}=xe(),CN=ku(),{setDefaultHighWaterMark:kN,getDefaultHighWaterMark:MN}=$i(),{pipeline:Jm}=Qs(),{destroyer:FN}=nr(),eb=yt(),Uu=ju(),tn=rt(),ee=tb.exports=Cs().Stream;ee.isDestroyed=tn.isDestroyed;ee.isDisturbed=tn.isDisturbed;ee.isErrored=tn.isErrored;ee.isReadable=tn.isReadable;ee.isWritable=tn.isWritable;ee.Readable=Yi();for(let t of Km(Vm)){let r=function(...i){if(new.target)throw Xm();return ee.Readable.from(Zm(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})}for(let t of Km(Ym)){let r=function(...i){if(new.target)throw Xm();return Zm(e,this,i)},e=Ym[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=Vs();ee.Duplex=st();ee.Transform=Eu();ee.PassThrough=xu();ee.pipeline=Jm;var{addAbortSignal:qN}=Gi();ee.addAbortSignal=qN;ee.finished=eb;ee.destroy=FN;ee.compose=CN;ee.setDefaultHighWaterMark=kN;ee.getDefaultHighWaterMark=MN;wt(ee,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return Uu}});wt(Jm,Qm,{__proto__:null,enumerable:!0,get(){return Uu.pipeline}});wt(eb,Qm,{__proto__:null,enumerable:!0,get(){return Uu.finished}});ee.Stream=ee;ee._isUint8Array=function(e){return e instanceof Uint8Array};ee._uint8ArrayToBuffer=function(e){return NN.from(e.buffer,e.byteOffset,e.byteLength)}});var hr=g(($4,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=Bu(),e=ju(),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 ib=g((H4,rb)=>{"use strict";function jN(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}rb.exports=jN});var ab=g((V4,ob)=>{"use strict";var nb=bs(),BN=vl(),UN=xl(),sb=nb?nb.isConcatSpreadable:void 0;function WN(t){return UN(t)||BN(t)||!!(sb&&t&&t[sb])}ob.exports=WN});var ro=g((Y4,ub)=>{"use strict";var zN=ib(),GN=ab();function lb(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?lb(a,e-1,r,i,n):zN(n,a):i||(n[n.length]=a)}return n}ub.exports=lb});var cb=g((K4,fb)=>{"use strict";var $N=ro();function HN(t){var e=t==null?0:t.length;return e?$N(t,1):[]}fb.exports=HN});var rn=g((Z4,hb)=>{"use strict";var VN=ki(),YN=VN(Object,"create");hb.exports=YN});var gb=g((Q4,pb)=>{"use strict";var db=rn();function KN(){this.__data__=db?db(null):{},this.size=0}pb.exports=KN});var yb=g((X4,_b)=>{"use strict";function ZN(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}_b.exports=ZN});var bb=g((J4,mb)=>{"use strict";var QN=rn(),XN="__lodash_hash_undefined__",JN=Object.prototype,eC=JN.hasOwnProperty;function tC(t){var e=this.__data__;if(QN){var r=e[t];return r===XN?void 0:r}return eC.call(e,t)?e[t]:void 0}mb.exports=tC});var Sb=g((e6,wb)=>{"use strict";var rC=rn(),iC=Object.prototype,nC=iC.hasOwnProperty;function sC(t){var e=this.__data__;return rC?e[t]!==void 0:nC.call(e,t)}wb.exports=sC});var vb=g((t6,Eb)=>{"use strict";var oC=rn(),aC="__lodash_hash_undefined__";function lC(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=oC&&e===void 0?aC:e,this}Eb.exports=lC});var Tb=g((r6,xb)=>{"use strict";var uC=gb(),fC=yb(),cC=bb(),hC=Sb(),dC=vb();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=uC;Zr.prototype.delete=fC;Zr.prototype.get=cC;Zr.prototype.has=hC;Zr.prototype.set=dC;xb.exports=Zr});var Ab=g((i6,Rb)=>{"use strict";function pC(){this.__data__=[],this.size=0}Rb.exports=pC});var nn=g((n6,Ob)=>{"use strict";var gC=Ss();function _C(t,e){for(var r=t.length;r--;)if(gC(t[r][0],e))return r;return-1}Ob.exports=_C});var Db=g((s6,Ib)=>{"use strict";var yC=nn(),mC=Array.prototype,bC=mC.splice;function wC(t){var e=this.__data__,r=yC(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():bC.call(e,r,1),--this.size,!0}Ib.exports=wC});var Lb=g((o6,Pb)=>{"use strict";var SC=nn();function EC(t){var e=this.__data__,r=SC(e,t);return r<0?void 0:e[r][1]}Pb.exports=EC});var Cb=g((a6,Nb)=>{"use strict";var vC=nn();function xC(t){return vC(this.__data__,t)>-1}Nb.exports=xC});var Mb=g((l6,kb)=>{"use strict";var TC=nn();function RC(t,e){var r=this.__data__,i=TC(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}kb.exports=RC});var qb=g((u6,Fb)=>{"use strict";var AC=Ab(),OC=Db(),IC=Lb(),DC=Cb(),PC=Mb();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=AC;Qr.prototype.delete=OC;Qr.prototype.get=IC;Qr.prototype.has=DC;Qr.prototype.set=PC;Fb.exports=Qr});var Bb=g((f6,jb)=>{"use strict";var LC=ki(),NC=Lr(),CC=LC(NC,"Map");jb.exports=CC});var zb=g((c6,Wb)=>{"use strict";var Ub=Tb(),kC=qb(),MC=Bb();function FC(){this.size=0,this.__data__={hash:new Ub,map:new(MC||kC),string:new Ub}}Wb.exports=FC});var $b=g((h6,Gb)=>{"use strict";function qC(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}Gb.exports=qC});var sn=g((d6,Hb)=>{"use strict";var jC=$b();function BC(t,e){var r=t.__data__;return jC(e)?r[typeof e=="string"?"string":"hash"]:r.map}Hb.exports=BC});var Yb=g((p6,Vb)=>{"use strict";var UC=sn();function WC(t){var e=UC(this,t).delete(t);return this.size-=e?1:0,e}Vb.exports=WC});var Zb=g((g6,Kb)=>{"use strict";var zC=sn();function GC(t){return zC(this,t).get(t)}Kb.exports=GC});var Xb=g((_6,Qb)=>{"use strict";var $C=sn();function HC(t){return $C(this,t).has(t)}Qb.exports=HC});var ew=g((y6,Jb)=>{"use strict";var VC=sn();function YC(t,e){var r=VC(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}Jb.exports=YC});var rw=g((m6,tw)=>{"use strict";var KC=zb(),ZC=Yb(),QC=Zb(),XC=Xb(),JC=ew();function Xr(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])}}Xr.prototype.clear=KC;Xr.prototype.delete=ZC;Xr.prototype.get=QC;Xr.prototype.has=XC;Xr.prototype.set=JC;tw.exports=Xr});var nw=g((b6,iw)=>{"use strict";var ek="__lodash_hash_undefined__";function tk(t){return this.__data__.set(t,ek),this}iw.exports=tk});var ow=g((w6,sw)=>{"use strict";function rk(t){return this.__data__.has(t)}sw.exports=rk});var Wu=g((S6,aw)=>{"use strict";var ik=rw(),nk=nw(),sk=ow();function io(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new ik;++e<r;)this.add(t[e])}io.prototype.add=io.prototype.push=nk;io.prototype.has=sk;aw.exports=io});var uw=g((E6,lw)=>{"use strict";function ok(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}lw.exports=ok});var cw=g((v6,fw)=>{"use strict";function ak(t){return t!==t}fw.exports=ak});var dw=g((x6,hw)=>{"use strict";function lk(t,e,r){for(var i=r-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}hw.exports=lk});var gw=g((T6,pw)=>{"use strict";var uk=uw(),fk=cw(),ck=dw();function hk(t,e,r){return e===e?ck(t,e,r):uk(t,fk,r)}pw.exports=hk});var zu=g((R6,_w)=>{"use strict";var dk=gw();function pk(t,e){var r=t==null?0:t.length;return!!r&&dk(t,e,0)>-1}_w.exports=pk});var Gu=g((A6,yw)=>{"use strict";function gk(t,e,r){for(var i=-1,n=t==null?0:t.length;++i<n;)if(r(e,t[i]))return!0;return!1}yw.exports=gk});var bw=g((O6,mw)=>{"use strict";function _k(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}mw.exports=_k});var $u=g((I6,ww)=>{"use strict";function yk(t,e){return t.has(e)}ww.exports=yk});var Ew=g((D6,Sw)=>{"use strict";var mk=Wu(),bk=zu(),wk=Gu(),Sk=bw(),Ek=Tl(),vk=$u(),xk=200;function Tk(t,e,r,i){var n=-1,s=bk,o=!0,a=t.length,l=[],u=e.length;if(!a)return l;r&&(e=Sk(e,Ek(r))),i?(s=wk,o=!1):e.length>=xk&&(s=vk,o=!1,e=new mk(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}Sw.exports=Tk});var Hu=g((P6,vw)=>{"use strict";var Rk=Es(),Ak=Nr();function Ok(t){return Ak(t)&&Rk(t)}vw.exports=Ok});var Rw=g((L6,Tw)=>{"use strict";var Ik=Ew(),Dk=ro(),Pk=ws(),xw=Hu(),Lk=Pk(function(t,e){return xw(t)?Ik(t,Dk(e,1,xw,!0)):[]});Tw.exports=Lk});var Ow=g((N6,Aw)=>{"use strict";var Nk=ki(),Ck=Lr(),kk=Nk(Ck,"Set");Aw.exports=kk});var Dw=g((C6,Iw)=>{"use strict";function Mk(){}Iw.exports=Mk});var Vu=g((k6,Pw)=>{"use strict";function Fk(t){var e=-1,r=Array(t.size);return t.forEach(function(i){r[++e]=i}),r}Pw.exports=Fk});var Nw=g((M6,Lw)=>{"use strict";var Yu=Ow(),qk=Dw(),jk=Vu(),Bk=1/0,Uk=Yu&&1/jk(new Yu([,-0]))[1]==Bk?function(t){return new Yu(t)}:qk;Lw.exports=Uk});var kw=g((F6,Cw)=>{"use strict";var Wk=Wu(),zk=zu(),Gk=Gu(),$k=$u(),Hk=Nw(),Vk=Vu(),Yk=200;function Kk(t,e,r){var i=-1,n=zk,s=t.length,o=!0,a=[],l=a;if(r)o=!1,n=Gk;else if(s>=Yk){var u=e?null:Hk(t);if(u)return Vk(u);o=!1,n=$k,l=new Wk}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}Cw.exports=Kk});var Fw=g((q6,Mw)=>{"use strict";var Zk=ro(),Qk=ws(),Xk=kw(),Jk=Hu(),eM=Qk(function(t){return Xk(Zk(t,1,Jk,!0))});Mw.exports=eM});var jw=g((j6,qw)=>{"use strict";function tM(t,e){return function(r){return t(e(r))}}qw.exports=tM});var Uw=g((B6,Bw)=>{"use strict";var rM=jw(),iM=rM(Object.getPrototypeOf,Object);Bw.exports=iM});var Gw=g((U6,zw)=>{"use strict";var nM=Ni(),sM=Uw(),oM=Nr(),aM="[object Object]",lM=Function.prototype,uM=Object.prototype,Ww=lM.toString,fM=uM.hasOwnProperty,cM=Ww.call(Object);function hM(t){if(!oM(t)||nM(t)!=aM)return!1;var e=sM(t);if(e===null)return!0;var r=fM.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Ww.call(r)==cM}zw.exports=hM});var $w=g(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.assertValidPattern=void 0;var dM=1024*64,pM=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>dM)throw new TypeError("pattern is too long")};no.assertValidPattern=pM});var Vw=g(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.parseClass=void 0;var gM={"[: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]},on=t=>t.replace(/[[\]\\-]/g,"\\$&"),_M=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Hw=t=>t.join(""),yM=(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(gM))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(on(c)+"-"+on(p)):p===c&&i.push(on(p)),c="",s++;continue}if(t.startsWith("-]",s+1)){i.push(on(p+"-")),s+=2;continue}if(t.startsWith("-",s+1)){c=p,s+=2;continue}i.push(on(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[_M(p),!1,f-r,!1]}let h="["+(u?"^":"")+Hw(i)+"]",d="["+(u?"":"^")+Hw(n)+"]";return[i.length&&n.length?"("+h+"|"+d+")":i.length?h:d,a,f-r,!0]};so.parseClass=yM});var ao=g(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.unescape=void 0;var mM=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");oo.unescape=mM});var Qu=g(co=>{"use strict";var Le;Object.defineProperty(co,"__esModule",{value:!0});co.AST=void 0;var bM=Vw(),lo=ao(),wM=new Set(["!","?","+","*","@"]),Ku=t=>wM.has(t),Yw=t=>Ku(t.type),SM=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),EM=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),vM=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Kw=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),xM="(?!(?:^|/)\\.\\.?(?:$|/))",uo="(?!\\.)",TM=new Set(["[","."]),RM=new Set(["..","."]),AM=new Set("().*{}+?[]^$\\!"),OM=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Zu="[^/]",Zw=Zu+"*?",Qw=Zu+"+?",fo=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&&Ku(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(Ku(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,EM)}#d(e,r=SM){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=vM){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!!Kw.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=Kw.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(Yw(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()),!Yw(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&&RM.has(this.#t[0]))){let m=TM,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?xM:v?uo:""}let c="";return this.isEnd()&&this.#e.#c&&this.#o?.type==="!"&&(c="(?:$|\\/)"),[f+u+c,(0,lo.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,lo.unescape)(this.toString()),!1,!1]}let o=!i||e||r||!uo?"":this.#h(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!r?uo:"")+Qw;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?uo:"")+Zw+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=n+s+l}return[a,(0,lo.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+=(AM.has(u)?"\\":"")+u,a=!1;continue}if(u==="\\"){l===e.length-1?s+="\\\\":n=!0;continue}if(u==="["){let[f,c,h,d]=(0,bM.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)?Qw:Zw,r=!0;continue}else a=!1;if(u==="?"){s+=Zu,r=!0;continue}s+=OM(u)}return[s,(0,lo.unescape)(e),!!r,o]}};co.AST=fo;Le=fo});var Xu=g(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.escape=void 0;var IM=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");ho.escape=IM});var Ft=g(I=>{"use strict";var DM=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 PM=DM(sa()),po=$w(),e0=Qu(),LM=Xu(),NM=ao(),CM=(t,e,r={})=>((0,po.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new dr(e,r).match(t));I.minimatch=CM;var kM=/^\*+([^+@!?\*\[\(]*)$/,MM=t=>e=>!e.startsWith(".")&&e.endsWith(t),FM=t=>e=>e.endsWith(t),qM=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),jM=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),BM=/^\*+\.\*+$/,UM=t=>!t.startsWith(".")&&t.includes("."),WM=t=>t!=="."&&t!==".."&&t.includes("."),zM=/^\.\*+$/,GM=t=>t!=="."&&t!==".."&&t.startsWith("."),$M=/^\*+$/,HM=t=>t.length!==0&&!t.startsWith("."),VM=t=>t.length!==0&&t!=="."&&t!=="..",YM=/^\?+([^+@!?\*\[\(]*)?$/,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=r0([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},QM=([t,e=""])=>{let r=r0([t]);return e?i=>r(i)&&i.endsWith(e):r},XM=([t,e=""])=>{let r=t0([t]);return e?i=>r(i)&&i.endsWith(e):r},t0=([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},r0=([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},i0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Xw={win32:{sep:"\\"},posix:{sep:"/"}};I.sep=i0==="win32"?Xw.win32.sep:Xw.posix.sep;I.minimatch.sep=I.sep;I.GLOBSTAR=Symbol("globstar **");I.minimatch.GLOBSTAR=I.GLOBSTAR;var JM="[^/]",e2=JM+"*?",t2="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",r2="(?:(?!(?:\\/|^)\\.).)*?",i2=(t,e={})=>r=>(0,I.minimatch)(r,t,e);I.filter=i2;I.minimatch.filter=I.filter;var Ue=(t,e={})=>Object.assign({},t,e),n2=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=n2;I.minimatch.defaults=I.defaults;var s2=(t,e={})=>((0,po.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,PM.default)(t));I.braceExpand=s2;I.minimatch.braceExpand=I.braceExpand;var o2=(t,e={})=>new dr(t,e).makeRe();I.makeRe=o2;I.minimatch.makeRe=I.makeRe;var a2=(t,e,r={})=>{let i=new dr(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};I.match=a2;I.minimatch.match=I.match;var Jw=/[?*]|[+@!]\(.*?\)|\[|\]/,l2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),dr=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,po.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||i0,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]==="?"||!Jw.test(s[2]))&&!Jw.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,po.assertValidPattern)(e);let r=this.options;if(e==="**")return I.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match($M))?n=r.dot?VM:HM:(i=e.match(kM))?n=(r.nocase?r.dot?jM:qM:r.dot?FM:MM)(i[1]):(i=e.match(YM))?n=(r.nocase?r.dot?ZM:KM:r.dot?QM:XM)(i):(i=e.match(BM))?n=r.dot?WM:UM:(i=e.match(zM))&&(n=GM);let s=e0.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?e2:r.dot?t2:r2,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"?l2(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=dr;var u2=Qu();Object.defineProperty(I,"AST",{enumerable:!0,get:function(){return u2.AST}});var f2=Xu();Object.defineProperty(I,"escape",{enumerable:!0,get:function(){return f2.escape}});var c2=ao();Object.defineProperty(I,"unescape",{enumerable:!0,get:function(){return c2.unescape}});I.minimatch.AST=e0.AST;I.minimatch.Minimatch=dr;I.minimatch.escape=LM.escape;I.minimatch.unescape=NM.unescape});var l0=g(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.LRUCache=void 0;var Jr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,s0=new Set,Ju=typeof process=="object"&&process?process:{},o0=(t,e,r,i)=>{typeof Ju.emitWarning=="function"?Ju.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},go=globalThis.AbortController,n0=globalThis.AbortSignal;if(typeof go>"u"){n0=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},go=class{constructor(){e()}signal=new n0;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=Ju.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,o0("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 h2=t=>!s0.has(t),qt=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),a0=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?ei:null:null,ei=class extends Array{constructor(e){super(e),this.fill(0)}},ef=class t{heap;length;static#e=!1;static create(e){let r=a0(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]}},tf=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?a0(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=ef.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";h2(O)&&(s0.add(O),o0("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 ei(this.#e),r=new ei(this.#e);this.#_=e,this.#T=r,this.#L=(s,o,a=Jr.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?Jr.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=Jr.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 ei(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-(Jr.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=Jr.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=Jr.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 go,{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 go}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)}}};_o.LRUCache=tf});var ff=g(De=>{"use strict";var d2=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 u0=typeof process=="object"&&process?process:{stdout:null,stderr:null},uf=P("events"),d0=d2(P("stream")),p2=P("string_decoder"),g2=t=>!!t&&typeof t=="object"&&(t instanceof vo||t instanceof d0.default||(0,De.isReadable)(t)||(0,De.isWritable)(t));De.isStream=g2;var _2=t=>!!t&&typeof t=="object"&&t instanceof uf.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==d0.default.Writable.prototype.pipe;De.isReadable=_2;var y2=t=>!!t&&typeof t=="object"&&t instanceof uf.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";De.isWritable=y2;var St=Symbol("EOF"),Et=Symbol("maybeEmitEnd"),jt=Symbol("emittedEnd"),yo=Symbol("emittingEnd"),an=Symbol("emittedError"),mo=Symbol("closed"),f0=Symbol("read"),bo=Symbol("flush"),c0=Symbol("flushChunk"),Ke=Symbol("encoding"),ti=Symbol("decoder"),de=Symbol("flowing"),ln=Symbol("paused"),ri=Symbol("resume"),pe=Symbol("buffer"),Ie=Symbol("pipes"),ge=Symbol("bufferLength"),rf=Symbol("bufferPush"),wo=Symbol("bufferShift"),Re=Symbol("objectMode"),le=Symbol("destroyed"),nf=Symbol("error"),sf=Symbol("emitData"),h0=Symbol("emitEnd"),of=Symbol("emitEnd2"),at=Symbol("async"),af=Symbol("abort"),So=Symbol("aborted"),un=Symbol("signal"),pr=Symbol("dataListeners"),Ce=Symbol("discarded"),fn=t=>Promise.resolve().then(t),m2=t=>t(),b2=t=>t==="end"||t==="finish"||t==="prefinish",w2=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,S2=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Eo=class{src;dest;opts;ondrain;constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[ri](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},lf=class extends Eo{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)}},E2=t=>!!t.objectMode,v2=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",vo=class extends uf.EventEmitter{[de]=!1;[ln]=!1;[Ie]=[];[pe]=[];[Re];[Ke];[at];[ti];[St]=!1;[jt]=!1;[yo]=!1;[mo]=!1;[an]=null;[ge]=0;[le]=!1;[un];[So]=!1;[pr]=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");E2(r)?(this[Re]=!0,this[Ke]=null):v2(r)?(this[Ke]=r.encoding,this[Re]=!1):(this[Re]=!1,this[Ke]=null),this[at]=!!r.async,this[ti]=this[Ke]?new p2.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[un]=i,i.aborted?this[af]():i.addEventListener("abort",()=>this[af]()))}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}[af](){this[So]=!0,this.emit("abort",this[un]?.reason),this.destroy(this[un]?.reason)}get aborted(){return this[So]}set aborted(e){}write(e,r,i){if(this[So])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]?fn:m2;if(!this[Re]&&!Buffer.isBuffer(e)){if(S2(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(w2(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[bo](!0),this[de]?this.emit("data",e):this[rf](e),this[ge]!==0&&this.emit("readable"),i&&n(i),this[de]):e.length?(typeof e=="string"&&!(r===this[Ke]&&!this[ti]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ke]&&(e=this[ti].write(e)),this[de]&&this[ge]!==0&&this[bo](!0),this[de]?this.emit("data",e):this[rf](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[f0](e||null,this[pe][0]);return this[Et](),r}[f0](e,r){if(this[Re])this[wo]();else{let i=r;e===i.length||e===null?this[wo]():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[ln])&&this[Et](),this}[ri](){this[le]||(!this[pr]&&!this[Ie].length&&(this[Ce]=!0),this[ln]=!1,this[de]=!0,this.emit("resume"),this[pe].length?this[bo]():this[St]?this[Et]():this.emit("drain"))}resume(){return this[ri]()}pause(){this[de]=!1,this[ln]=!0,this[Ce]=!1}get destroyed(){return this[le]}get flowing(){return this[de]}get paused(){return this[ln]}[rf](e){this[Re]?this[ge]+=1:this[ge]+=e.length,this[pe].push(e)}[wo](){return this[Re]?this[ge]-=1:this[ge]-=this[pe][0].length,this[pe].shift()}[bo](e=!1){do;while(this[c0](this[wo]())&&this[pe].length);!e&&!this[pe].length&&!this[St]&&this.emit("drain")}[c0](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===u0.stdout||e===u0.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Ie].push(r.proxyErrors?new lf(this,e,r):new Eo(this,e,r)),this[at]?fn(()=>this[ri]()):this[ri]()),e}unpipe(e){let r=this[Ie].find(i=>i.dest===e);r&&(this[Ie].length===1?(this[de]&&this[pr]===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[pr]++,!this[Ie].length&&!this[de]&&this[ri]();else if(e==="readable"&&this[ge]!==0)super.emit("readable");else if(b2(e)&&this[jt])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[an]){let n=r;this[at]?fn(()=>n.call(this,this[an])):n.call(this,this[an])}return i}removeListener(e,r){return this.off(e,r)}off(e,r){let i=super.off(e,r);return e==="data"&&(this[pr]=this.listeners("data").length,this[pr]===0&&!this[Ce]&&!this[Ie].length&&(this[de]=!1)),i}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[pr]=0,!this[Ce]&&!this[Ie].length&&(this[de]=!1)),r}get emittedEnd(){return this[jt]}[Et](){!this[yo]&&!this[jt]&&!this[le]&&this[pe].length===0&&this[St]&&(this[yo]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[mo]&&this.emit("close"),this[yo]=!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]?(fn(()=>this[sf](i)),!0):this[sf](i);if(e==="end")return this[h0]();if(e==="close"){if(this[mo]=!0,!this[jt]&&!this[le])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[an]=i,super.emit(nf,i);let s=!this[un]||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}[sf](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}[h0](){return this[jt]?!1:(this[jt]=!0,this.readable=!1,this[at]?(fn(()=>this[of]()),!0):this[of]())}[of](){if(this[ti]){let r=this[ti].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(nf,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(nf,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[mo]&&r.close(),e?this.emit("error",e):this.emit(le),this}static get isStream(){return De.isStream}};De.Minipass=vo});var O0=g(H=>{"use strict";var x2=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]})),T2=H&&H.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),R2=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)&&x2(e,t,r);return T2(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 b0=l0(),Oo=P("path"),A2=P("url"),hn=P("fs"),O2=R2(P("fs")),I2=hn.realpathSync.native,xo=P("fs/promises"),p0=ff(),dn={lstatSync:hn.lstatSync,readdir:hn.readdir,readdirSync:hn.readdirSync,readlinkSync:hn.readlinkSync,realpathSync:I2,promises:{lstat:xo.lstat,readdir:xo.readdir,readlink:xo.readlink,realpath:xo.realpath}},w0=t=>!t||t===dn||t===O2?dn:{...dn,...t,promises:{...dn.promises,...t.promises||{}}},S0=/^\\\\\?\\([a-z]:)\\?$/i,D2=t=>t.replace(/\//g,"\\").replace(S0,"$1\\"),P2=/[\\\/]/,ze=0,E0=1,v0=2,lt=4,x0=6,T0=8,gr=10,R0=12,We=15,cn=~We,cf=16,g0=32,pn=64,Ze=128,To=256,Ao=512,_0=pn|Ze|Ao,L2=1023,hf=t=>t.isFile()?T0:t.isDirectory()?lt:t.isSymbolicLink()?gr:t.isCharacterDevice()?v0:t.isBlockDevice()?x0:t.isSocket()?R0:t.isFIFO()?E0:ze,y0=new Map,gn=t=>{let e=y0.get(t);if(e)return e;let r=t.normalize("NFKD");return y0.set(t,r),r},m0=new Map,Ro=t=>{let e=m0.get(t);if(e)return e;let r=gn(t.toLowerCase());return m0.set(t,r),r},_n=class extends b0.LRUCache{constructor(){super({max:256})}};H.ResolveCache=_n;var Io=class extends b0.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:r=>r.length+1})}};H.ChildrenCache=Io;var A0=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?Ro(e):gn(e),this.#i=r&L2,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=w0(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&=~cf,r}child(e,r){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let i=this.children(),n=this.nocase?Ro(e):gn(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)===T0}isDirectory(){return(this.#i&We)===lt}isCharacterDevice(){return(this.#i&We)===v0}isBlockDevice(){return(this.#i&We)===x0}isFIFO(){return(this.#i&We)===E0}isSocket(){return(this.#i&We)===R0}isSymbolicLink(){return(this.#i&gr)===gr}lstatCached(){return this.#i&g0?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!==gr||this.#i&To||this.#i&Ze)}calledReaddir(){return!!(this.#i&cf)}isENOENT(){return!!(this.#i&Ze)}isNamed(e){return this.nocase?this.#_===Ro(e):this.#_===gn(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|=cf;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)&cn,this.#O())}#O(){let e=this.children();e.provisional=0;for(let r of e)r.#k()}#I(){this.#i|=Ao,this.#M()}#M(){if(this.#i&pn)return;let e=this.#i;(e&We)===lt&&(e&=cn),this.#i=e|pn,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|=To,e==="ENOENT"&&(r|=Ze),(e==="EINVAL"||e==="UNKNOWN")&&(r&=cn),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=hf(e),n=this.newChild(e.name,i,{parent:this}),s=n.#i&We;return s!==lt&&s!==gr&&s!==ze&&(n.#i|=pn),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?Ro(e.name):gn(e.name))===n.#_)return this.#U(e,n,i,r)}}#U(e,r,i,n){let s=r.name;return r.#i=r.#i&cn|hf(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=hf(e);this.#i=this.#i&cn|S|g0,S!==ze&&S!==lt&&S!==gr&&(this.#i|=pn)}#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&_0)return!1;let e=We&this.#i;return e===ze||e===lt||e===gr}shouldWalk(e,r){return(this.#i<)===lt&&!(this.#i&_0)&&!e.has(this)&&(!r||r(this))}async realpath(){if(this.#D)return this.#D;if(!((Ao|To|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(!((Ao|To|Ze)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#D=this.resolve(e)}catch{this.#I()}}[A0](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 yn=class t extends Se{sep="\\";splitSep=P2;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 Oo.win32.parse(e).root}getRoot(e){if(e=D2(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 wn(e,this).root}sameRoot(e,r=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(S0,"$1\\"),e===r}};H.PathWin32=yn;var mn=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=mn;var bn=class{root;rootPath;roots;cwd;#e;#r;#n;nocase;#t;constructor(e=process.cwd(),r,i,{nocase:n,childrenCacheSize:s=16*1024,fs:o=dn}={}){this.#t=w0(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,A2.fileURLToPath)(e));let a=r.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new _n,this.#r=new _n,this.#n=new Io(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 p0.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 p0.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[A0](r)}};H.PathScurryBase=bn;var wn=class extends bn{sep="\\";constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,Oo.win32,"\\",{...r,nocase:i}),this.nocase=i;for(let n=this.cwd;n;n=n.parent)n.nocase=this.nocase}parseRootPath(e){return Oo.win32.parse(e).root.toUpperCase()}newRoot(e){return new yn(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=wn;var Sn=class extends bn{sep="/";constructor(e=process.cwd(),r={}){let{nocase:i=!1}=r;super(e,Oo.posix,"/",{...r,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new mn(this.rootPath,lt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};H.PathScurryPosix=Sn;var Do=class extends Sn{constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,{...r,nocase:i})}};H.PathScurryDarwin=Do;H.Path=process.platform==="win32"?yn:mn;H.PathScurry=process.platform==="win32"?wn:process.platform==="darwin"?Do:Sn});var pf=g(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.Pattern=void 0;var N2=Ft(),C2=t=>t.length>=1,k2=t=>t.length>=1,df=class t{#e;#r;#n;length;#t;#o;#S;#u;#c;#l;#a=!0;constructor(e,r,i,n){if(!C2(e))throw new TypeError("empty pattern list");if(!k2(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]===N2.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)}};Po.Pattern=df});var _f=g(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.Ignore=void 0;var I0=Ft(),M2=pf(),F2=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",gf=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:r,nocase:i,noext:n,noglobstar:s,platform:o=F2}){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 I0.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 M2.Pattern(n,s,0,this.platform),a=new I0.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}};Lo.Ignore=gf});var P0=g(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.Processor=ut.SubWalks=ut.MatchRecord=ut.HasWalkedCache=void 0;var D0=Ft(),No=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=No;var Co=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=Co;var ko=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=ko;var yf=class t{hasWalkedCache;matches=new Co;subwalks=new ko;patterns;follow;dot;opts;constructor(e,r){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=r?r.copy():new No}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===D0.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===D0.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=yf});var C0=g(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.GlobStream=Bt.GlobWalker=Bt.GlobUtil=void 0;var q2=ff(),L0=_f(),N0=P0(),j2=(t,e)=>typeof t=="string"?new L0.Ignore([t],e):Array.isArray(t)?new L0.Ignore(t,e):t,En=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=j2(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 N0.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 N0.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=En;var mf=class extends En{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=mf;var bf=class extends En{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=bf});var Sf=g(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.Glob=void 0;var B2=Ft(),U2=P("url"),Mo=O0(),W2=pf(),Fo=C0(),z2=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",wf=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,U2.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||z2,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"?Mo.PathScurryWin32:r.platform==="darwin"?Mo.PathScurryDarwin:r.platform?Mo.PathScurryPosix:Mo.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 B2.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 W2.Pattern(l,f,0,this.platform)})}async walk(){return[...await new Fo.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 Fo.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 Fo.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 Fo.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=wf});var Ef=g(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.hasMagic=void 0;var G2=Ft(),$2=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let r of t)if(new G2.Minimatch(r,e).hasMagic())return!0;return!1};jo.hasMagic=$2});var q0=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=vn;U.globStream=vf;U.globSync=xf;U.globIterateSync=xn;U.globIterate=Tf;var k0=Ft(),_r=Sf(),H2=Ef(),F0=Ft();Object.defineProperty(U,"escape",{enumerable:!0,get:function(){return F0.escape}});Object.defineProperty(U,"unescape",{enumerable:!0,get:function(){return F0.unescape}});var V2=Sf();Object.defineProperty(U,"Glob",{enumerable:!0,get:function(){return V2.Glob}});var Y2=Ef();Object.defineProperty(U,"hasMagic",{enumerable:!0,get:function(){return Y2.hasMagic}});var K2=_f();Object.defineProperty(U,"Ignore",{enumerable:!0,get:function(){return K2.Ignore}});function vn(t,e={}){return new _r.Glob(t,e).streamSync()}function vf(t,e={}){return new _r.Glob(t,e).stream()}function xf(t,e={}){return new _r.Glob(t,e).walkSync()}async function M0(t,e={}){return new _r.Glob(t,e).walk()}function xn(t,e={}){return new _r.Glob(t,e).iterateSync()}function Tf(t,e={}){return new _r.Glob(t,e).iterate()}U.streamSync=vn;U.stream=Object.assign(vf,{sync:vn});U.iterateSync=xn;U.iterate=Object.assign(Tf,{sync:xn});U.sync=Object.assign(xf,{stream:vn,iterate:xn});U.glob=Object.assign(M0,{glob:M0,globSync:xf,sync:U.sync,globStream:vf,stream:U.stream,globStreamSync:vn,streamSync:U.streamSync,globIterate:Tf,iterate:U.iterate,globIterateSync:xn,iterateSync:U.iterateSync,Glob:_r.Glob,hasMagic:H2.hasMagic,escape:k0.escape,unescape:k0.unescape});U.glob.glob=U.glob});var W0=g((lU,U0)=>{"use strict";var B0=Ha(),ii=P("path"),Rf=cb(),Z2=Rw(),Q2=Fw(),X2=Gw(),J2=q0(),yr=U0.exports={},j0=/[\/\\]/g,eF=function(t,e){var r=[];return Rf(t).forEach(function(i){var n=i.indexOf("!")===0;n&&(i=i.slice(1));var s=e(i);n?r=Z2(r,s):r=Q2(r,s)}),r};yr.exists=function(){var t=ii.join.apply(ii,arguments);return B0.existsSync(t)};yr.expand=function(...t){var e=X2(t[0])?t.shift():{},r=Array.isArray(t[0])?t[0]:t;if(r.length===0)return[];var i=eF(r,function(n){return J2.sync(n,e)});return e.filter&&(i=i.filter(function(n){n=ii.join(e.cwd||"",n);try{return typeof e.filter=="function"?e.filter(n):B0.statSync(n)[e.filter]()}catch{return!1}})),i};yr.expandMapping=function(t,e,r){r=Object.assign({rename:function(s,o){return ii.join(s||"",o)}},r);var i=[],n={};return yr.expand(r,t).forEach(function(s){var o=s;r.flatten&&(o=ii.basename(o)),r.ext&&(o=o.replace(/(\.[^\/]*)?$/,r.ext));var a=r.rename(e,o,r);r.cwd&&(s=ii.join(r.cwd,s)),a=a.replace(j0,"/"),s=s.replace(j0,"/"),n[a]?n[a].src.push(s):(i.push({src:[s],dest:a}),n[a]=i[i.length-1])}),i};yr.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=Rf(r.src):r.src=[r.src])}).map(function(r){var i=Object.assign({},r);if(delete i.src,delete i.dest,r.expand)return yr.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)?Rf(o):[o],s.result=yr.expand(i,o)),s.result}}),"dest"in n&&(n.dest=r.dest),n}).flatten().value(),e)}});var ni=g((fU,$0)=>{"use strict";var Af=Ha(),z0=P("path"),tF=ns(),rF=pp(),G0=_l(),iF=Yg(),uU=P("stream").Stream,nF=hr().PassThrough,ke=$0.exports={};ke.file=W0();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]||{},iF(...i)};ke.isStream=function(t){return tF(t)};ke.lazyReadStream=function(t){return new rF.Readable(function(){return Af.createReadStream(t)})};ke.normalizeInputSource=function(t){return t===null?Buffer.alloc(0):typeof t=="string"?Buffer.from(t):ke.isStream(t)?t.pipe(new nF):t};ke.sanitizePath=function(t){return G0(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};ke.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};ke.unixifyPath=function(t){return G0(t,!1).replace(/^\w+:/,"")};ke.walkdir=function(t,e,r){var i=[];typeof e=="function"&&(r=e,e=t),Af.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=z0.join(t,a),Af.stat(l,function(f,c){i.push({path:l,relative:z0.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 K0=g((V0,Y0)=>{"use strict";var sF=P("util"),oF={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 H0(t,e){Error.captureStackTrace(this,this.constructor),this.message=oF[t]||t,this.code=t,this.data=e}sF.inherits(H0,Error);V0=Y0.exports=H0});var eS=g((cU,J0)=>{"use strict";var Df=P("fs"),Q0=ah(),Z0=(od(),ev(sd)),Of=P("path"),ft=ni(),aF=P("util").inherits,ae=K0(),X0=hr().Transform,If=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}),X0.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=Z0.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=Z0.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=[]};aF(G,X0);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 Df.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"?If?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(If?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,If&&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}Df.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=Df.readlinkSync(t.filepath),i=Of.dirname(t.filepath);t.data.type="symlink",t.data.linkname=Of.relative(i,Of.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=Q0(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=Q0(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};J0.exports=G});var Uo=g((hU,tS)=>{"use strict";var Bo=tS.exports=function(){};Bo.prototype.getName=function(){};Bo.prototype.getSize=function(){};Bo.prototype.getLastModifiedDate=function(){};Bo.prototype.isDirectory=function(){}});var Wo=g((dU,rS)=>{"use strict";var Ge=rS.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 Pf=g((pU,lS)=>{"use strict";var iS=Wo(),nS=8,sS=1,lF=4,uF=2,oS=64,aS=2048,Ee=lS.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 iS.getShortBytes((this.descriptor?nS:0)|(this.utf8?aS:0)|(this.encryption?sS:0)|(this.strongEncryption?oS:0))};Ee.prototype.parse=function(t,e){var r=iS.getShortBytesValue(t,e),i=new Ee;return i.useDataDescriptor((r&nS)!==0),i.useUTF8ForNames((r&aS)!==0),i.useStrongEncryption((r&oS)!==0),i.useEncryption((r&sS)!==0),i.setSlidingDictionarySize((r&uF)!==0?8192:4096),i.setNumberOfShannonFanoTrees((r&lF)!==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 fS=g((gU,uS)=>{"use strict";uS.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 Lf=g((_U,cS)=>{"use strict";cS.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 Nf=g((yU,_S)=>{"use strict";var fF=P("util").inherits,cF=_l(),dS=Uo(),pS=Pf(),hS=fS(),Pe=Lf(),gS=Wo(),q=_S.exports=function(t){if(!(this instanceof q))return new q(t);dS.call(this),this.platform=Pe.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new pS,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)};fF(q,dS);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?gS.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 pS))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=cF(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=gS.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()&hS.FILE_TYPE_FLAG)===hS.LINK_FLAG};q.prototype.isZip64=function(){return this.csize>Pe.ZIP64_MAGIC||this.size>Pe.ZIP64_MAGIC}});var Cf=g((bU,yS)=>{"use strict";var mU=P("stream").Stream,hF=hr().PassThrough,dF=ns(),pF=yS.exports={};pF.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(dF(t)&&!t._readableState){var e=new hF;return t.pipe(e),e}return t}});var Mf=g((wU,mS)=>{"use strict";var gF=P("util").inherits,_F=ns(),kf=hr().Transform,yF=Uo(),mF=Cf(),Me=mS.exports=function(t){if(!(this instanceof Me))return new Me(t);kf.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};gF(Me,kf);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 yF)){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=mF.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,r);else if(_F(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),kf.prototype.write.call(this,t,e)}});var zo=g(Ff=>{"use strict";var bS;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof Ff=="object"?t(Ff):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t(bS={}):t(bS={})})(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 SS=g((EU,wS)=>{"use strict";var{Transform:bF}=hr(),wF=zo(),qf=class extends bF{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,r,i){e&&(this.checksum=wF.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}};wS.exports=qf});var vS=g((vU,ES)=>{"use strict";var{DeflateRaw:SF}=P("zlib"),EF=zo(),jf=class extends SF{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=EF.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}};ES.exports=jf});var Bf=g((xU,xS)=>{"use strict";xS.exports={CRC32Stream:SS(),DeflateCRC32Stream:vS()}});var AS=g((OU,RS)=>{"use strict";var vF=P("util").inherits,xF=zo(),{CRC32Stream:TF}=Bf(),{DeflateCRC32Stream:RF}=Bf(),TS=Mf(),TU=Nf(),RU=Pf(),C=Lf(),AU=Cf(),L=Wo(),_e=RS.exports=function(t){if(!(this instanceof _e))return new _e(t);t=this.options=this._defaults(t),TS.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}};vF(_e,TS);_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(xF.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 RF(this.options.zlib):new TF,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 Uf=g((IU,OS)=>{"use strict";OS.exports={ArchiveEntry:Uo(),ZipArchiveEntry:Nf(),ArchiveOutputStream:Mf(),ZipArchiveOutputStream:AS()}});var DS=g((DU,IS)=>{"use strict";var AF=P("util").inherits,zf=Uf().ZipArchiveOutputStream,OF=Uf().ZipArchiveEntry,Wf=ni(),si=IS.exports=function(t){if(!(this instanceof si))return new si(t);t=this.options=t||{},t.zlib=t.zlib||{},zf.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)};AF(si,zf);si.prototype._normalizeFileData=function(t){t=Wf.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=Wf.sanitizePath(t.name),!r&&t.name.slice(-1)==="/"?(e=!0,t.type="directory"):e&&(t.name+="/")),(e||r)&&(t.store=!0),t.date=Wf.dateify(t.date),t};si.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 OF(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)),zf.prototype.entry.call(this,i,t,r)};si.prototype.finalize=function(){this.finish()}});var LS=g((PU,PS)=>{"use strict";var IF=DS(),DF=ni(),Ut=function(t){if(!(this instanceof Ut))return new Ut(t);t=this.options=DF.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new IF(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)};PS.exports=Ut});var CS=g((LU,NS)=>{"use strict";NS.exports=P("events")});var MS=g((CU,kS)=>{"use strict";kS.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((MU,qS)=>{"use strict";var FS=MS();qS.exports=class{constructor(e){this.hwm=e||16,this.head=new FS(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 FS(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 $f=g((FU,jS)=>{"use strict";function PF(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function LF(t){return Buffer.isEncoding(t)}function NF(t,e,r){return Buffer.alloc(t,e,r)}function CF(t){return Buffer.allocUnsafe(t)}function kF(t){return Buffer.allocUnsafeSlow(t)}function MF(t,e){return Buffer.byteLength(t,e)}function FF(t,e){return Buffer.compare(t,e)}function qF(t,e){return Buffer.concat(t,e)}function jF(t,e,r,i,n){return Y(t).copy(e,r,i,n)}function BF(t,e){return Y(t).equals(e)}function UF(t,e,r,i,n){return Y(t).fill(e,r,i,n)}function WF(t,e,r){return Buffer.from(t,e,r)}function zF(t,e,r,i){return Y(t).includes(e,r,i)}function GF(t,e,r,i){return Y(t).indexOf(e,r,i)}function $F(t,e,r,i){return Y(t).lastIndexOf(e,r,i)}function HF(t){return Y(t).swap16()}function VF(t){return Y(t).swap32()}function YF(t){return Y(t).swap64()}function Y(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function KF(t,e,r,i){return Y(t).toString(e,r,i)}function ZF(t,e,r,i,n){return Y(t).write(e,r,i,n)}function QF(t,e){return Y(t).readDoubleBE(e)}function XF(t,e){return Y(t).readDoubleLE(e)}function JF(t,e){return Y(t).readFloatBE(e)}function eq(t,e){return Y(t).readFloatLE(e)}function tq(t,e){return Y(t).readInt32BE(e)}function rq(t,e){return Y(t).readInt32LE(e)}function iq(t,e){return Y(t).readUInt32BE(e)}function nq(t,e){return Y(t).readUInt32LE(e)}function sq(t,e,r){return Y(t).writeDoubleBE(e,r)}function oq(t,e,r){return Y(t).writeDoubleLE(e,r)}function aq(t,e,r){return Y(t).writeFloatBE(e,r)}function lq(t,e,r){return Y(t).writeFloatLE(e,r)}function uq(t,e,r){return Y(t).writeInt32BE(e,r)}function fq(t,e,r){return Y(t).writeInt32LE(e,r)}function cq(t,e,r){return Y(t).writeUInt32BE(e,r)}function hq(t,e,r){return Y(t).writeUInt32LE(e,r)}jS.exports={isBuffer:PF,isEncoding:LF,alloc:NF,allocUnsafe:CF,allocUnsafeSlow:kF,byteLength:MF,compare:FF,concat:qF,copy:jF,equals:BF,fill:UF,from:WF,includes:zF,indexOf:GF,lastIndexOf:$F,swap16:HF,swap32:VF,swap64:YF,toBuffer:Y,toString:KF,write:ZF,readDoubleBE:QF,readDoubleLE:XF,readFloatBE:JF,readFloatLE:eq,readInt32BE:tq,readInt32LE:rq,readUInt32BE:iq,readUInt32LE:nq,writeDoubleBE:sq,writeDoubleLE:oq,writeFloatBE:aq,writeFloatLE:lq,writeInt32BE:uq,writeInt32LE:fq,writeUInt32BE:cq,writeUInt32LE:hq}});var US=g((jU,BS)=>{"use strict";var dq=$f();BS.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return dq.toString(e,this.encoding)}flush(){return""}}});var $S=g((UU,GS)=>{"use strict";var WS=$f();GS.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(e){if(e.byteLength===0)return"";if(this.bytesNeeded===0&&zS(e,0)===0)return this.bytesSeen=pq(e),WS.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=zS(e,i),s=e.byteLength-n;s>i&&(r+=WS.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 zS(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 pq(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 VS=g((zU,HS)=>{"use strict";var gq=US(),_q=$S();HS.exports=class{constructor(e="utf8"){switch(this.encoding=yq(e),this.encoding){case"utf8":this.decoder=new _q;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new gq(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 yq(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 ac=g((GU,_E)=>{"use strict";var{EventEmitter:mq}=CS(),Ko=new Error("Stream was destroyed"),Hf=new Error("Premature close"),JS=Gf(),bq=VS(),Vf=typeof queueMicrotask>"u"?t=>global.process.nextTick(t):queueMicrotask,oe=(1<<29)-1,ct=1,ec=2,vt=4,Tn=8,eE=oe^ct,wq=oe^ec,Dn=16,oi=32,ui=64,zt=128,Pn=256,tc=512,Gt=1024,Yf=2048,rc=4096,ic=8192,Qe=16384,Wt=32768,Zo=65536,mr=131072,tE=Pn|tc,Sq=Dn|Zo,Eq=ui|Dn,vq=rc|zt,nc=Pn|mr,xq=oe^Dn,Tq=oe^ui,Rq=oe^(ui|Zo),YS=oe^Zo,Aq=oe^Pn,Oq=oe^(zt|ic),Iq=oe^Gt,KS=oe^tE,rE=oe^Wt,Dq=oe^oi,iE=oe^mr,Pq=oe^nc,xt=1<<18,li=2<<18,Ln=4<<18,br=8<<18,Nn=16<<18,Ht=32<<18,Kf=64<<18,ai=128<<18,sc=256<<18,$t=512<<18,Qo=1024<<18,Lq=oe^(xt|sc),nE=oe^Ln,Nq=oe^(xt|$t),Cq=oe^Nn,kq=oe^br,sE=oe^ai,Mq=oe^li,oE=oe^Qo,Rn=Dn|xt,aE=oe^Rn,oc=Qe|Ht,ht=vt|Tn|ec,Fe=ht|ct,lE=ht|oc,Fq=nE&Tq,Xo=ai|Wt,qq=Xo&aE,uE=Fe|qq,jq=Fe|Gt|Qe,ZS=Fe|Qe|zt,Bq=Fe|Gt|zt,Uq=Fe|rc|zt|ic,Wq=Fe|Dn|Gt|Qe|Zo|mr,zq=ht|Gt|Qe,Gq=oi|Fe|Wt|ui,$q=Wt|ct,Hq=Fe|$t|Ht,Vq=br|Nn,fE=br|xt,Yq=br|Nn|Fe|xt,QS=Fe|xt|br|Qo,Kq=Ln|xt,Zq=xt|sc,Qq=Fe|$t|fE|Ht,Xq=Nn|ht|$t|Ht,Jq=li|Fe|ai|Ln,ej=$t|Ht|ht,Go=Symbol.asyncIterator||Symbol("asyncIterator"),$o=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapWritable:n,byteLength:s,byteLengthWritable:o}={}){this.stream=e,this.queue=new JS,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||s||gE,this.map=n||i,this.afterWrite=ij.bind(this),this.afterUpdateNextTick=oj.bind(this)}get ending(){return(this.stream._duplexState&$t)!==0}get ended(){return(this.stream._duplexState&Ht)!==0}push(e){return(this.stream._duplexState&ej)!==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|=br,!0):(this.stream._duplexState|=Vq,!1))}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=kq),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|$t)&nE}autoBatch(e,r){let i=[],n=this.stream;for(i.push(e);(n._duplexState&QS)===fE;)i.push(n._writableState.shift());if((n._duplexState&Fe)!==0)return r(null);n._writev(i,r)}update(){let e=this.stream;e._duplexState|=li;do{for(;(e._duplexState&QS)===br;){let r=this.shift();e._duplexState|=Zq,e._write(r,this.afterWrite)}(e._duplexState&Kq)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=Mq}updateNonPrimary(){let e=this.stream;if((e._duplexState&Qq)===$t){e._duplexState=e._duplexState|xt,e._final(rj.bind(this));return}if((e._duplexState&ht)===vt){(e._duplexState&Xo)===0&&(e._duplexState|=Rn,e._destroy(cE.bind(this)));return}(e._duplexState&uE)===ct&&(e._duplexState=(e._duplexState|Rn)&eE,e._open(hE.bind(this)))}continueUpdate(){return(this.stream._duplexState&ai)===0?!1:(this.stream._duplexState&=sE,!0)}updateCallback(){(this.stream._duplexState&Jq)===Ln?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&ai)===0&&(this.stream._duplexState|=ai,(this.stream._duplexState&li)===0&&Vf(this.afterUpdateNextTick))}},Zf=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapReadable:n,byteLength:s,byteLengthReadable:o}={}){this.stream=e,this.queue=new JS,this.highWaterMark=r===0?1:r,this.buffered=0,this.readAhead=r>0,this.error=null,this.pipeline=null,this.byteLength=o||s||gE,this.map=n||i,this.pipeTo=null,this.afterRead=nj.bind(this),this.afterUpdateNextTick=sj.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|=tc,this.pipeTo=e,this.pipeline=new Xf(this.stream,e,r),r&&this.stream.on("error",XS),In(e))e._writableState.pipeline=this.pipeline,r&&e.on("error",XS),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",tj.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)&Rq,!1):this.map!==null&&(e=this.map(e),e===null)?(r._duplexState&=YS,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(e),this.queue.push(e),r._duplexState=(r._duplexState|zt)&YS,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=Oq),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&ZS)===zt){let r=this.shift();return this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=KS),(e._duplexState&Yf)!==0&&e.emit("data",r),r}return this.readAhead===!1&&(e._duplexState|=mr,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&ZS)===zt&&(e._duplexState&tE)!==0;){let r=this.shift();this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=KS),(e._duplexState&Yf)!==0&&e.emit("data",r)}}update(){let e=this.stream;e._duplexState|=oi;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&Wq)===mr;)e._duplexState|=Sq,e._read(this.afterRead),this.drain();(e._duplexState&Uq)===vq&&(e._duplexState|=ic,e.emit("readable")),(e._duplexState&Eq)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=Dq}updateNonPrimary(){let e=this.stream;if((e._duplexState&Bq)===Gt&&(e._duplexState=(e._duplexState|Qe)&Iq,e.emit("end"),(e._duplexState&lE)===oc&&(e._duplexState|=vt),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&ht)===vt){(e._duplexState&Xo)===0&&(e._duplexState|=Rn,e._destroy(cE.bind(this)));return}(e._duplexState&uE)===ct&&(e._duplexState=(e._duplexState|Rn)&eE,e._open(hE.bind(this)))}continueUpdate(){return(this.stream._duplexState&Wt)===0?!1:(this.stream._duplexState&=rE,!0)}updateCallback(){(this.stream._duplexState&Gq)===ui?this.update():this.updateNextTick()}updateNextTickIfOpen(){(this.stream._duplexState&$q)===0&&(this.stream._duplexState|=Wt,(this.stream._duplexState&oi)===0&&Vf(this.afterUpdateNextTick))}updateNextTick(){(this.stream._duplexState&Wt)===0&&(this.stream._duplexState|=Wt,(this.stream._duplexState&oi)===0&&Vf(this.afterUpdateNextTick))}},Qf=class{constructor(e){this.data=null,this.afterTransform=lj.bind(e),this.afterFinal=null}},Xf=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 tj(){this.stream._duplexState|=tc,this.updateCallback()}function rj(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&ht)===0&&(e._duplexState|=Ht,e.emit("finish")),(e._duplexState&lE)===oc&&(e._duplexState|=vt),e._duplexState&=Nq,(e._duplexState&li)===0?this.update():this.updateNextTick()}function cE(t){let e=this.stream;!t&&this.error!==Ko&&(t=this.error),t&&e.emit("error",t),e._duplexState|=Tn,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 ij(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=Lq,this.drains!==null&&aj(this.drains),(e._duplexState&Yq)===Nn&&(e._duplexState&=Cq,(e._duplexState&Kf)===Kf&&e.emit("drain")),this.updateCallback()}function nj(t){t&&this.stream.destroy(t),this.stream._duplexState&=xq,this.readAhead===!1&&(this.stream._duplexState&Pn)===0&&(this.stream._duplexState&=iE),this.updateCallback()}function sj(){(this.stream._duplexState&oi)===0&&(this.stream._duplexState&=rE,this.update())}function oj(){(this.stream._duplexState&li)===0&&(this.stream._duplexState&=sE,this.update())}function aj(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}function hE(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&vt)===0&&((e._duplexState&jq)===0&&(e._duplexState|=ui),(e._duplexState&Hq)===0&&(e._duplexState|=Ln),e.emit("open")),e._duplexState&=aE,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}function lj(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}function uj(t){this._readableState!==null&&(t==="data"&&(this._duplexState|=Yf|nc,this._readableState.updateNextTick()),t==="readable"&&(this._duplexState|=rc,this._readableState.updateNextTick())),this._writableState!==null&&t==="drain"&&(this._duplexState|=Kf,this._writableState.updateNextTick())}var An=class extends mq{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",Sj.bind(this))),this.on("newListener",uj)}_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&Tn)!==0}get destroying(){return(this._duplexState&ht)!==0}destroy(e){(this._duplexState&ht)===0&&(e||(e=Ko),this._duplexState=(this._duplexState|vt)&Fq,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=e),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=ec,this._predestroy(),this._duplexState&=wq,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}},Ho=class t extends An{constructor(e){super(e),this._duplexState|=ct|Ht|mr,this._readableState=new Zf(this,e),e&&(this._readableState.readAhead===!1&&(this._duplexState&=iE),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick(),e.encoding&&this.setEncoding(e.encoding))}setEncoding(e){let r=new bq(e),i=this._readableState.map||hj;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|=nc,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?Pq:Aq,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(mj(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&zq)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&Pn)===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&Tn)!==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(Ko):i({value:u,done:u===null}),n=i=null)}function l(u){return e.destroy(u),new Promise((f,c)=>{if(e._duplexState&Tn)return f({value:void 0,done:!0});e.once("close",function(){u?c(u):f({value:void 0,done:!0})})})}}},Vo=class extends An{constructor(e){super(e),this._duplexState|=ct|Qe,this._writableState=new $o(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|=Qo}uncork(){this._duplexState&=oE,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&Xq)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let r=e._writableState,n=(Ej(e)?Math.min(1,r.queue.length):r.queue.length)+(e._duplexState&sc?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}},On=class extends Ho{constructor(e){super(e),this._duplexState=ct|this._duplexState&mr,this._writableState=new $o(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=Qo}uncork(){this._duplexState&=oE,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}},Yo=class extends On{constructor(e){super(e),this._transformState=new Qf(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(fj.bind(this))}},Jf=class extends Yo{};function fj(t,e){let r=this._transformState.afterFinal;if(t)return r(t);e!=null&&this.push(e),this.push(null),r(null)}function cj(...t){return new Promise((e,r)=>dE(...t,i=>{if(i)return r(i);e()}))}function dE(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],In(n)?n.pipe(s,l):(a(n,!0,u>1,l),n.pipe(s)),n=s;if(i){let u=!1,f=In(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:Hf)))}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(Hf)}}function l(u){if(!(!u||o)){o=u;for(let f of r)f.destroy(u)}}}function hj(t){return t}function pE(t){return!!t._readableState||!!t._writableState}function In(t){return typeof t._duplexState=="number"&&pE(t)}function dj(t){return!!t._readableState&&t._readableState.ending}function pj(t){return!!t._readableState&&t._readableState.ended}function gj(t){return!!t._writableState&&t._writableState.ending}function _j(t){return!!t._writableState&&t._writableState.ended}function yj(t,e={}){let r=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return!e.all&&r===Ko?null:r}function mj(t){return In(t)&&t.readable}function bj(t){return(t._duplexState&ct)!==ct||(t._duplexState&vt)===vt||(t._duplexState&Xo)!==0}function wj(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}function gE(t){return wj(t)?t.byteLength:1024}function XS(){}function Sj(){this.destroy(new Error("Stream aborted."))}function Ej(t){return t._writev!==Vo.prototype._writev&&t._writev!==On.prototype._writev}_E.exports={pipeline:dE,pipelinePromise:cj,isStream:pE,isStreamx:In,isEnding:dj,isEnded:pj,isFinishing:gj,isFinished:_j,isDisturbed:bj,getStreamError:yj,Stream:An,Writable:Vo,Readable:Ho,Duplex:On,Transform:Yo,PassThrough:Jf}});var Jo=g(($U,yE)=>{"use strict";function vj(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function xj(t){return Buffer.isEncoding(t)}function Tj(t,e,r){return Buffer.alloc(t,e,r)}function Rj(t){return Buffer.allocUnsafe(t)}function Aj(t){return Buffer.allocUnsafeSlow(t)}function Oj(t,e){return Buffer.byteLength(t,e)}function Ij(t,e){return Buffer.compare(t,e)}function Dj(t,e){return Buffer.concat(t,e)}function Pj(t,e,r,i,n){return K(t).copy(e,r,i,n)}function Lj(t,e){return K(t).equals(e)}function Nj(t,e,r,i,n){return K(t).fill(e,r,i,n)}function Cj(t,e,r){return Buffer.from(t,e,r)}function kj(t,e,r,i){return K(t).includes(e,r,i)}function Mj(t,e,r,i){return K(t).indexOf(e,r,i)}function Fj(t,e,r,i){return K(t).lastIndexOf(e,r,i)}function qj(t){return K(t).swap16()}function jj(t){return K(t).swap32()}function Bj(t){return K(t).swap64()}function K(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function Uj(t,e,r,i){return K(t).toString(e,r,i)}function Wj(t,e,r,i,n){return K(t).write(e,r,i,n)}function zj(t,e){return K(t).readDoubleBE(e)}function Gj(t,e){return K(t).readDoubleLE(e)}function $j(t,e){return K(t).readFloatBE(e)}function Hj(t,e){return K(t).readFloatLE(e)}function Vj(t,e){return K(t).readInt32BE(e)}function Yj(t,e){return K(t).readInt32LE(e)}function Kj(t,e){return K(t).readUInt32BE(e)}function Zj(t,e){return K(t).readUInt32LE(e)}function Qj(t,e,r){return K(t).writeDoubleBE(e,r)}function Xj(t,e,r){return K(t).writeDoubleLE(e,r)}function Jj(t,e,r){return K(t).writeFloatBE(e,r)}function eB(t,e,r){return K(t).writeFloatLE(e,r)}function tB(t,e,r){return K(t).writeInt32BE(e,r)}function rB(t,e,r){return K(t).writeInt32LE(e,r)}function iB(t,e,r){return K(t).writeUInt32BE(e,r)}function nB(t,e,r){return K(t).writeUInt32LE(e,r)}yE.exports={isBuffer:vj,isEncoding:xj,alloc:Tj,allocUnsafe:Rj,allocUnsafeSlow:Aj,byteLength:Oj,compare:Ij,concat:Dj,copy:Pj,equals:Lj,fill:Nj,from:Cj,includes:kj,indexOf:Mj,lastIndexOf:Fj,swap16:qj,swap32:jj,swap64:Bj,toBuffer:K,toString:Uj,write:Wj,readDoubleBE:zj,readDoubleLE:Gj,readFloatBE:$j,readFloatLE:Hj,readInt32BE:Vj,readInt32LE:Yj,readUInt32BE:Kj,readUInt32LE:Zj,writeDoubleBE:Qj,writeDoubleLE:Xj,writeFloatBE:Jj,writeFloatLE:eB,writeInt32BE:tB,writeInt32LE:rB,writeUInt32BE:iB,writeUInt32LE:nB}});var fc=g(ci=>{"use strict";var W=Jo(),sB="0000000000000000000",oB="7777777777777777777",ea=48,mE=W.from([117,115,116,97,114,0]),aB=W.from([ea,ea]),lB=W.from([117,115,116,97,114,32]),uB=W.from([32,0]),fB=4095,Cn=257,uc=263;ci.decodeLongPath=function(e,r){return fi(e,0,e.length,r)};ci.encodePax=function(e){let r="";e.name&&(r+=lc(" path="+e.name+`
|
|
9
|
+
`)),e.linkname&&(r+=lc(" linkpath="+e.linkname+`
|
|
10
|
+
`));let i=e.pax;if(i)for(let n in i)r+=lc(" "+n+"="+i[n]+`
|
|
11
|
+
`);return W.from(r)};ci.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};ci.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&fB,6),100),W.write(r,Yt(e.uid,6),108),W.write(r,Yt(e.gid,6),116),yB(e.size,r,124),W.write(r,Yt(e.mtime.getTime()/1e3|0,11),136),r[156]=ea+gB(e.type),e.linkname&&W.write(r,e.linkname,157),W.copy(mE,r,Cn),W.copy(aB,r,uc),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(wE(r),6),148),r)};ci.decode=function(e,r,i){let n=e[156]===0?0:e[156]-ea,s=fi(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=pB(n),h=e[157]===0?null:fi(e,157,100,r),d=fi(e,265,32),m=fi(e,297,32),p=Vt(e,329,8),v=Vt(e,337,8),y=wE(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(cB(e))e[345]&&(s=fi(e,345,155,r)+"/"+s);else if(!hB(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 cB(t){return W.equals(mE,t.subarray(Cn,Cn+6))}function hB(t){return W.equals(lB,t.subarray(Cn,Cn+6))&&W.equals(uB,t.subarray(uc,uc+2))}function dB(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function pB(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 gB(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 bE(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function wE(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?oB.slice(0,e)+" ":sB.slice(0,e-t.length)+t+" "}function _B(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function yB(t,e,r){t.toString(8).length>11?_B(t,e,r):W.write(e,Yt(t,11),r)}function mB(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 mB(t);{for(;e<t.length&&t[e]===32;)e++;let i=dB(bE(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 fi(t,e,r,i){return W.toString(t.subarray(e,bE(t,0,e,e+r)),i)}function lc(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 TE=g((VU,xE)=>{"use strict";var{Writable:bB,Readable:wB,getStreamError:SE}=ac(),SB=Gf(),EE=Jo(),hi=fc(),EB=EE.alloc(0),hc=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new SB,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 EB;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 EE.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)}},dc=class extends wB{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(SE(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=vE(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},pc=class extends bB{constructor(e){super(e),e||(e={}),this._buffer=new hc,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=cc,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=hi.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=hi.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=hi.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=hi.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?hi.decodePax(e):Object.assign({},this._paxGlobal,hi.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=vE(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 dc(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=cc,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(SE(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",cc),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})})})}}};xE.exports=function(e){return new pc(e)};function cc(){}function vE(t){return t&=511,t&&512-t}});var AE=g((YU,gc)=>{"use strict";var RE={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{gc.exports=P("fs").constants||RE}catch{gc.exports=RE}});var LE=g((KU,PE)=>{"use strict";var{Readable:vB,Writable:xB,getStreamError:OE}=ac(),wr=Jo(),di=AE(),ta=fc(),TB=493,RB=420,IE=wr.alloc(1024),yc=class extends xB{constructor(e,r,i){super({mapWritable:OB,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?wr.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?wr.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),DE(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 OE(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()}},mc=class extends vB{constructor(e){super(e),this._drain=_c,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=_c),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=AB(e.mode)),e.mode||(e.mode=e.type==="directory"?TB:RB),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof r=="string"&&(r=wr.from(r));let n=new yc(this,e,i);return wr.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(IE),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=ta.encode(e);if(r){this.push(r);return}}this._encodePax(e)}_encodePax(e){let r=ta.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(ta.encode(i)),this.push(r),DE(this,r.byteLength),i.size=e.size,i.type=e.type,this.push(ta.encode(i))}_doDrain(){let e=this._drain;this._drain=_c,e()}_predestroy(){let e=OE(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()}};PE.exports=function(e){return new mc(e)};function AB(t){switch(t&di.S_IFMT){case di.S_IFBLK:return"block-device";case di.S_IFCHR:return"character-device";case di.S_IFDIR:return"directory";case di.S_IFIFO:return"fifo";case di.S_IFLNK:return"symlink"}return"file"}function _c(){}function DE(t,e){e&=511,e&&t.push(IE.subarray(0,512-e))}function OB(t){return wr.isBuffer(t)?t:wr.from(t)}});var NE=g(bc=>{"use strict";bc.extract=TE();bc.pack=LE()});var ME=g((QU,kE)=>{"use strict";var IB=P("zlib"),DB=NE(),CE=ni(),Tt=function(t){if(!(this instanceof Tt))return new Tt(t);t=this.options=CE.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=DB.pack(t),this.compressor=!1,t.gzip&&(this.compressor=IB.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"&&CE.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)};kE.exports=Tt});var jE=g((XU,qE)=>{"use strict";function PB(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var LB=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 FE(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 NB(t){let e=FE(4);return e.writeInt32BE(t,0),e}function wc(t,e){t=FE(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let r=~~e^-1;for(var i=0;i<t.length;i++)r=LB[(r^t[i])&255]^r>>>8;return r^-1}function Sc(){return NB(wc.apply(null,arguments))}Sc.signed=function(){return wc.apply(null,arguments)};Sc.unsigned=function(){return wc.apply(null,arguments)>>>0};var CB=Sc,kB=PB(CB);qE.exports=kB});var zE=g((JU,WE)=>{"use strict";var MB=P("util").inherits,BE=hr().Transform,FB=jE(),UE=ni(),Kt=function(t){if(!(this instanceof Kt))return new Kt(t);t=this.options=UE.defaults(t,{}),BE.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};MB(Kt,BE);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=FB.unsigned(o),i.files.push(e),r(null,e)}e.sourceType==="buffer"?n(null,t):e.sourceType==="stream"&&UE.collectStream(t,n)};Kt.prototype.finalize=function(){this._writeStringified(),this.end()};WE.exports=Kt});var $E=g((e8,GE)=>{"use strict";var qB=eS(),kn={},Zt=function(t,e){return Zt.create(t,e)};Zt.create=function(t,e){if(kn[t]){var r=new qB(t,e);return r.setFormat(t),r.setModule(new kn[t](e)),r}else throw new Error("create("+t+"): format not registered")};Zt.registerFormat=function(t,e){if(kn[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");kn[t]=e};Zt.isRegisteredFormat=function(t){return!!kn[t]};Zt.registerFormat("zip",LS());Zt.registerFormat("tar",ME());Zt.registerFormat("json",zE());GE.exports=Zt});import{readFileSync as $B,existsSync as KE,readdirSync as HB,mkdirSync as VB,writeFileSync as YB}from"fs";import{unlink as KB}from"fs/promises";import{join as pi}from"path";import{randomUUID as gi}from"crypto";function Pc(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 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
|
|
13
|
+
`).map(e=>e.trim()).filter(Boolean):t.split(". ").map(e=>e.trim()).filter(Boolean).map(e=>e.endsWith(".")?e:e+"."):[]}function Mn(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 tv={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"},rv={literal:"SET_VARIABLE",visual:"VISION_QUERY",dom:"TEXTUAL_QUERY",url:"GET_URL",title:"GET_TITLE"},iv=new Set(["CLICK","TYPE","FILL","HOVER","SCROLL_UNTIL_ELEMENT","UPLOAD","VISION_QUERY","DRAG_DROP","SELECT"]);function Lc(t,e){if(t==="analyze"){let r=e?.action_params?.analyzer_type??"";return rv[r]??"VISION_QUERY"}return tv[t]??t.toUpperCase()}function Nc(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 nv(t,e,r){let i=t.action_params??{},n=iv.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 sv(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 Cc(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 ov(t){let e=t.assertion_tree??{},r=e.sub_results??[],i=Cc(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 av(t){let r=(t.action_params??{}).assertion_tree??{},i=r.sub_results??[],n=Cc(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 lv(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 Ic(t,e={},r=""){let i=t.action_type,n=Lc(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??gi(),d=gi(),m=Nc(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=Mn(p,e),E=Mn(v,e),S=Mn(t.action_instruction??"",e),T=nv(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"?sv(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"?ov(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:lv(t,r,h),reasoning:i==="analyze"?s.query??"":t.intent??t.action_instruction??""}}function Dc(t,e,r={}){let i=t.action_type,n=Lc(i,t),s=t.timestamp??"",o=t.duration_ms??0,a=Nc(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:Mn(t.action_instruction??"",r),command:n,error:null,parent_instruction_id:"",classification_layer_resp:n==="ASSERTION"?av(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 uv(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_${gi().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 kc(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 ra(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=ra(u,e,r);kc(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:Pc(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=ra(c,e,r);a.push(...m)}i.push(uv(s,a));continue}else if(o==="query_tool"){n+=1;continue}else if(s.until_condition){let a=Ic(s,e,r),l=Dc(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_${gi().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=Ic(s,e,r),l=Dc(s,a,e);i.push(l)}n+=1}return i}function Mc(t,e={},r=""){let i=[];for(let n of t){let s=ra(n.records,e,r);if(s.length===0)continue;let o=gi().replace(/-/g,"");kc(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:Pc(n.summary),one_liner:n.oneLiner??null})}return{instructions:i}}var HE=JE($E(),1);import{createWriteStream as jB,readdirSync as BB,statSync as UB}from"fs";import{readFile as WB}from"fs/promises";import{join as Ec,basename as zB}from"path";import{tmpdir as GB}from"os";async function VE(t){let e=Ec(t,"runs"),r=Ec(GB(),`${zB(t)}_artifacts.zip`);return new Promise((i,n)=>{let s=jB(r),o=(0,HE.default)("zip",{zlib:{level:6}});s.on("close",()=>i(r)),o.on("error",n),o.pipe(s);try{let a=BB(e);for(let l of a){let u=Ec(e,l);UB(u).isDirectory()&&o.glob("**/*",{cwd:u,ignore:["**/screenshots/**","**/annotated/**"]},{prefix:l})}}catch{}o.finalize()})}async function YE(t){return WB(t)}async function vc(t,e,r){let i=await Qt(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 ZE=class{config;controller;testId;constructor(e){this.config=e,this.controller=new Rc(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?Mc(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 VE(this.config.sessionDir),h=await YE(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 KB(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([vc(d.urls.artifacts.upload_url,h,"application/zip"),vc(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 Tc(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){let s=!1;try{await this.triggerCodeExport(r),this.log("info","PIPELINE_CODE_EXPORT_START","Code export triggered"),s=!0}catch(o){let a=o instanceof Error?o.message:String(o);this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export trigger failed; skipping poll",{error:a}),e("code_export","failed",`trigger failed: ${a}`)}if(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(o){let a=o instanceof Error?o.message:String(o);this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export failed",{error:a}),e("code_export","failed",a)}}}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,n=!1;try{await this.triggerCodeExport(e),this.log("info","PIPELINE_CODE_EXPORT_TRIGGER","Code export triggered",{testcase_id:e}),n=!0}catch(s){let o=s instanceof Error?s.message:String(s);this.log("error","PIPELINE_CODE_EXPORT_TRIGGER_FAILED","Code export trigger failed; skipping poll",{error:o}),i("code_export","failed",`trigger failed: ${o}`)}if(n){i("code_export","running","Waiting for code generation\u2026");try{let s=await this.pollAndDownloadCode(e,i);return this.log("info","PIPELINE_CODE_EXPORT_OK","Code export complete",{dir:s}),i("code_export","done",s),s}catch(s){let o=s instanceof Error?s.message:String(s);this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export failed",{error:o}),i("code_export","failed",o);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=pi(this.config.sessionDir,"runs");if(KE(n))try{let o=HB(n,{withFileTypes:!0}).filter(a=>a.isDirectory()).map(a=>a.name).sort();for(let a of o){let l=pi(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=[pi(e,"run-test","actions.ndjson"),pi(e,"actions.ndjson")];for(let n of i){if(!KE(n))continue;this.log("debug","PIPELINE_COLLECT_READ","Reading NDJSON file",{path:n});let s=$B(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 Qt(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}=Ac({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 Qt(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=Oc({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):Qt(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){let d=await l.text().catch(()=>"");throw this.log("warn","PIPELINE_CODE_EXPORT_POLL_FAILED","Code export poll non-200; skipping",{status:l.status,body:d.slice(0,200)}),new Error(`code export poll skipped: HTTP ${l.status}`)}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??pi(this.config.sessionDir,"code-export");VB(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=pi(h,d.file_name),p=await Qt(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();YB(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}`:xc(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{ZE as a};
|
|
15
15
|
/*! Bundled license information:
|
|
16
16
|
|
|
17
17
|
normalize-path/index.js:
|