@testmuai/kane-cli 0.2.6 → 0.2.7

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.
Files changed (45) hide show
  1. package/dist/{ChromeProfilePicker-GFXYO62T.js → ChromeProfilePicker-TSTGICKC.js} +1 -1
  2. package/dist/{CliFeedbackPrompt-F3ZTTEUY.js → CliFeedbackPrompt-D2GV3CIR.js} +1 -1
  3. package/dist/{CliUploadProgress-DNE54O2E.js → CliUploadProgress-3LN7ZAQQ.js} +1 -1
  4. package/dist/ConfigView-HFR7OLBN.js +2 -0
  5. package/dist/FolderPicker-JMDO2YEV.js +2 -0
  6. package/dist/{HelpView-WVCLJJMT.js → HelpView-GAECHNPW.js} +1 -1
  7. package/dist/{LinksBox-I4PYUQY7.js → LinksBox-VNX4GTYY.js} +1 -1
  8. package/dist/{LoginWizard-ZGXMGBNJ.js → LoginWizard-POE64KP6.js} +1 -1
  9. package/dist/{ProfilesView-AUJOUVYZ.js → ProfilesView-AJFBUG46.js} +1 -1
  10. package/dist/ProjectPicker-FTUZCSBL.js +2 -0
  11. package/dist/{WhoamiView-CY65SJE3.js → WhoamiView-FSFBRPAS.js} +1 -1
  12. package/dist/{changelog-CHSXQF3G.js → changelog-WJATJ25O.js} +1 -1
  13. package/dist/{chunk-OIERCP6B.js → chunk-22Q72KEE.js} +1 -1
  14. package/dist/chunk-32JVIWDK.js +2 -0
  15. package/dist/chunk-5TNGPFD4.js +2 -0
  16. package/dist/chunk-665WKKCX.js +2 -0
  17. package/dist/{chunk-EWT2AY54.js → chunk-DCUGTUXD.js} +1 -1
  18. package/dist/{chunk-Y4NPKZOF.js → chunk-FGRL7YK2.js} +1 -1
  19. package/dist/chunk-HFQ7T5KT.js +2 -0
  20. package/dist/{chunk-ATLXF7HN.js → chunk-HPYGNTYE.js} +1 -1
  21. package/dist/chunk-IEPLQSZE.js +106 -0
  22. package/dist/{chunk-PSB4TGW4.js → chunk-JWPOUEON.js} +9 -9
  23. package/dist/{chunk-6HRAVME7.js → chunk-KBTVURNO.js} +1 -1
  24. package/dist/{chunk-3C7VPJXD.js → chunk-LAVCECRF.js} +1 -1
  25. package/dist/chunk-N5O3NTGW.js +2 -0
  26. package/dist/{chunk-WSRUIIRY.js → chunk-ND4JFVHY.js} +1 -1
  27. package/dist/{chunk-5BRNKEYT.js → chunk-QDWB44VO.js} +1 -1
  28. package/dist/{chunk-O7HXQ753.js → chunk-QXBLFS66.js} +1 -1
  29. package/dist/chunk-RZYQ7T3Y.js +2 -0
  30. package/dist/index.js +51 -54
  31. package/dist/{logging-O5R56LPM.js → logging-X4C7SASV.js} +1 -1
  32. package/dist/login-flow-47Y4Y2UB.js +2 -0
  33. package/dist/{pipeline-NXUVAHY5.js → pipeline-W3MWTZHK.js} +1 -1
  34. package/dist/{tms-client-T4HO73MT.js → tms-client-VH42IFUF.js} +1 -1
  35. package/dist/{updater-WVTXO7SS.js → updater-L2ORCIIP.js} +1 -1
  36. package/dist/{version-check-SR6WBC6M.js → version-check-IF4G6QYT.js} +1 -1
  37. package/package.json +5 -4
  38. package/dist/ConfigView-MTU2VXM3.js +0 -2
  39. package/dist/FolderPicker-VVQBL3YD.js +0 -2
  40. package/dist/ProjectPicker-3WKERA5V.js +0 -2
  41. package/dist/chunk-36GHKMI7.js +0 -2
  42. package/dist/chunk-6SF4L62W.js +0 -2
  43. package/dist/chunk-CW5PVMPK.js +0 -2
  44. package/dist/chunk-KMHVGLJY.js +0 -2
  45. package/dist/chunk-THEP5K6T.js +0 -2
@@ -1,17 +1,17 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{a as xc}from"./chunk-L5Y2GUO6.js";import{a as Tc}from"./chunk-6SF4L62W.js";import{a as vc}from"./chunk-DXKKUGFG.js";import{a as D,b as YE,c as g,d as KE,e as ZE,f as QE}from"./chunk-UR6MHSHU.js";var kc=g((ZB,Cc)=>{"use strict";var av=typeof process=="object"&&process&&process.platform==="win32";Cc.exports=av?{sep:"\\"}:{sep:"/"}});var Bc=g((QB,jc)=>{"use strict";jc.exports=qc;function qc(t,e,r){t instanceof RegExp&&(t=Mc(t,r)),e instanceof RegExp&&(e=Mc(e,r));var i=Fc(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 Mc(t,e){var r=e.match(t);return r?r[0]:null}qc.range=Fc;function Fc(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((XB,Vc)=>{"use strict";var Uc=Bc();Vc.exports=fv;var Wc="\0SLASH"+Math.random()+"\0",Gc="\0OPEN"+Math.random()+"\0",ia="\0CLOSE"+Math.random()+"\0",zc="\0COMMA"+Math.random()+"\0",$c="\0PERIOD"+Math.random()+"\0";function ra(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function lv(t){return t.split("\\\\").join(Wc).split("\\{").join(Gc).split("\\}").join(ia).split("\\,").join(zc).split("\\.").join($c)}function uv(t){return t.split(Wc).join("\\").split(Gc).join("{").split(ia).join("}").split(zc).join(",").split($c).join(".")}function Hc(t){if(!t)return[""];var e=[],r=Uc("{","}",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=Hc(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function fv(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),gi(lv(t),!0).map(uv)):[]}function cv(t){return"{"+t+"}"}function hv(t){return/^-?0\d/.test(t)}function dv(t,e){return t<=e}function pv(t,e){return t>=e}function gi(t,e){var r=[],i=Uc("{","}",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=Hc(i.body),h.length===1&&(h=gi(h[0],!1).map(cv),h.length===1))return s.map(function(R){return i.pre+h[0]+R});var d;if(f){var y=ra(h[0]),p=ra(h[1]),S=Math.max(h[0].length,h[1].length),m=h.length==3?Math.max(Math.abs(ra(h[2])),1):1,b=dv,v=p<y;v&&(m*=-1,b=pv);var E=h.some(hv);d=[];for(var T=y;b(T,p);T+=m){var P;if(u)P=String.fromCharCode(T),P==="\\"&&(P="");else if(P=String(T),E){var x=S-P.length;if(x>0){var O=new Array(x+1).join("0");T<0?P="-"+O+P.slice(1):P=O+P}}d.push(P)}}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 Jc=g((e3,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=kc();Ne.sep=aa.sep;var Ae=Symbol("globstar **");Ne.GLOBSTAR=Ae;var gv=na(),Yc={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},la="[^/]",sa=la+"*?",_v="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",yv="(?:(?!(?:\\/|^)\\.).)*?",Qc=t=>t.split("").reduce((e,r)=>(e[r]=!0,e),{}),Kc=Qc("().*{}+?[]^$\\!"),mv=Qc("[.("),Zc=/\/+/;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)=>Xc(t,e);var Xc=(t,e={})=>(Mn(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:gv(t)),bv=1024*64,Mn=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>bv)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 wv=t=>t.replace(/\\(.)/g,"$1"),Sv=t=>t.replace(/\\([^-\]])/g,"$1"),Ev=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),vv=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(Zc)),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 v=n;v<e.length-c;v++){let E=String(e[v]);if(b=!0,E==="."||E===".."||!this.options.dot&&E.charAt(0)===".")return!1}return i||b}let h=[[[],0]],d=h[0],y=0,p=[0];for(let b of u)b===Ae?(p.push(y),d=[[],0],h.push(d)):(d[0].push(b),y++);let S=h.length-1,m=e.length-c;for(let b of h)b[1]=m-(p[S--]+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 Xc(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,y,p,S=e.charAt(0)===".",m=i.dot||S,b=()=>S?"":m?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",v=x=>x.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",E=()=>{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;Kc[O]&&(n+="\\"),n+=O,o=!1;continue}switch(O){case"/":return!1;case"\\":if(f&&e.charAt(x+1)==="-"){n+=O;continue}E(),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),E(),u=O,i.noext&&E();continue;case"(":{if(f){n+="(";continue}if(!u){n+="\\(";continue}let w={type:u,start:x-1,reStart:n.length,open:Yc[u].open,close:Yc[u].close};this.debug(this.pattern," ",w),a.push(w),n+=w.open,w.start===0&&w.type!=="!"&&(S=!0,n+=v(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(),E(),s=!0,y=w,n+=y.close,y.type==="!"&&l.push(Object.assign(y,{reEnd:n.length}));continue}case"|":{let w=a[a.length-1];if(f||!w){n+="\\|";continue}E(),n+="|",w.start===0&&w.type!=="!"&&(S=!0,n+=v(e.slice(x+1)));continue}case"[":if(E(),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("["+vv(Sv(d))+"]"),n+=O}catch{n=n.substring(0,c)+"(?:$.)"}s=!0,f=!1;continue;default:E(),Kc[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]),y=a.pop();y;y=a.pop()){let x;x=n.slice(y.reStart+y.open.length),this.debug("setting tail",n,y),x=x.replace(/((?:\\{2}){0,64})(\\?)\|/g,(w,R,A)=>(A||(A="\\"),R+R+A+"|")),this.debug(`tail=%j
3
- %s`,x,x,y,n);let O=y.type==="*"?sa:y.type==="?"?la:"\\"+y.type;s=!0,n=n.slice(0,y.reStart)+O+"\\("+x}E(),o&&(n+="\\\\");let T=mv[n.charAt(0)];for(let x=l.length-1;x>-1;x--){let O=l[x],w=n.slice(0,O.reStart),R=n.slice(O.reStart,O.reEnd-8),A=n.slice(O.reEnd),N=n.slice(O.reEnd-8,O.reEnd)+A,G=w.split(")").length,ue=w.split("(").length-G,Z=A;for(let V=0;V<ue;V++)Z=Z.replace(/\)[+*?]?/,"");A=Z;let te=A===""&&r!==oa?"(?:$|\\/)":"";n=w+R+A+te+N}if(n!==""&&s&&(n="(?=.)"+n),T&&(n=b()+n),r===oa)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return wv(e);let P=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",P),{_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?_v:yv,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?Ev(a):a===Ae?Ae:a._src).reduce((a,l)=>(a[a.length-1]===Ae&&l===Ae||a.push(l),a),[]),o.forEach((a,l)=>{a!==Ae||o[l-1]===Ae||(l===0?o.length>1?o[l+1]="(?:\\/|"+i+"\\/)?"+o[l+1]:o[l]=i:l===o.length-1?o[l-1]+="(?:\\/|"+i+")?":(o[l-1]+="(?:\\/|\\/"+i+"\\/)"+o[l+1],o[l+1]=Ae))}),o.filter(a=>a!==Ae).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;aa.sep!=="/"&&(e=e.split(aa.sep).join("/")),e=e.split(Zc),this.debug(this.pattern,"split",e);let n=this.set;this.debug(this.pattern,"set",n);let s;for(let o=e.length-1;o>=0&&(s=e[o],!s);o--);for(let o=0;o<n.length;o++){let a=n[o],l=e;if(i.matchBase&&a.length===1&&(l=[s]),this.matchOne(l,a,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Ne.defaults(e).Minimatch}};Ne.Minimatch=wr});var nh=g((t3,ih)=>{"use strict";ih.exports=rh;var ca=D("fs"),{EventEmitter:xv}=D("events"),{Minimatch:fa}=Jc(),{resolve:Tv}=D("path");function Rv(t,e){return new Promise((r,i)=>{ca.readdir(t,{withFileTypes:!0},(n,s)=>{if(n)switch(n.code){case"ENOTDIR":e?i(n):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(n);break}else r(s)})})}function eh(t,e){return new Promise((r,i)=>{(e?ca.stat:ca.lstat)(t,(s,o)=>{s?s.code==="ENOENT"?r(e?eh(t,!1):null):r(null):r(o)})})}async function*th(t,e,r,i,n,s){let o=await Rv(e+t,s);for(let a of o){let l=a.name;l===void 0&&(l=a,i=!0);let u=t+"/"+l,f=u.slice(1),c=e+"/"+f,h=null;(i||r)&&(h=await eh(c,r)),!h&&a.name!==void 0&&(h=a),h===null&&(h={isDirectory:()=>!1}),h.isDirectory()?n(f)||(yield{relative:f,absolute:c,stats:h},yield*th(u,e,r,i,n,!1)):yield{relative:f,absolute:c,stats:h}}}async function*Av(t,e,r,i){yield*th("",t,e,r,i,!0)}function Ov(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 xv{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=Ov(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=Av(Tv(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,i&&(this._matches=[],this.on("match",n=>this._matches.push(this.options.absolute?n.absolute:n.relative)),this.on("error",n=>i(n)),this.on("end",()=>i(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let i=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(n=>n.match(i)))&&!this.ignoreMatchers.some(n=>n.match(i))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let i=e.value.relative,n=e.value.absolute;this.options.mark&&r&&(i+="/",n+="/"),this.options.stat?this.emit("match",{relative:i,absolute:n,stat:e.value.stats}):this.emit("match",{relative:i,absolute:n})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}};function rh(t,e,r){return new qn(t,e,r)}rh.ReaddirGlob=qn});var rd={};KE(rd,{all:()=>wa,allLimit:()=>Sa,allSeries:()=>Ea,any:()=>Ia,anyLimit:()=>Da,anySeries:()=>Pa,apply:()=>fh,applyEach:()=>_h,applyEachSeries:()=>yh,asyncify:()=>jn,auto:()=>Ca,autoInject:()=>mh,cargo:()=>bh,cargoQueue:()=>wh,compose:()=>Sh,concat:()=>pa,concatLimit:()=>mi,concatSeries:()=>ga,constant:()=>Eh,default:()=>Nx,detect:()=>_a,detectLimit:()=>ya,detectSeries:()=>ma,dir:()=>xh,doDuring:()=>Bn,doUntil:()=>Th,doWhilst:()=>Bn,during:()=>$n,each:()=>ba,eachLimit:()=>Un,eachOf:()=>Fe,eachOfLimit:()=>yi,eachOfSeries:()=>Xe,eachSeries:()=>Wn,ensureAsync:()=>qa,every:()=>wa,everyLimit:()=>Sa,everySeries:()=>Ea,filter:()=>va,filterLimit:()=>xa,filterSeries:()=>Ta,find:()=>_a,findLimit:()=>ya,findSeries:()=>ma,flatMap:()=>pa,flatMapLimit:()=>mi,flatMapSeries:()=>ga,foldl:()=>Sr,foldr:()=>Aa,forEach:()=>ba,forEachLimit:()=>Un,forEachOf:()=>Fe,forEachOfLimit:()=>yi,forEachOfSeries:()=>Xe,forEachSeries:()=>Wn,forever:()=>Ah,groupBy:()=>Oh,groupByLimit:()=>Zn,groupBySeries:()=>Ih,inject:()=>Sr,log:()=>Dh,map:()=>Yn,mapLimit:()=>Si,mapSeries:()=>Na,mapValues:()=>Ph,mapValuesLimit:()=>Qn,mapValuesSeries:()=>Lh,memoize:()=>Nh,nextTick:()=>Ch,parallel:()=>kh,parallelLimit:()=>Mh,priorityQueue:()=>qh,queue:()=>ja,race:()=>Fh,reduce:()=>Sr,reduceRight:()=>Aa,reflect:()=>Gn,reflectAll:()=>jh,reject:()=>Bh,rejectLimit:()=>Uh,rejectSeries:()=>Wh,retry:()=>zn,retryable:()=>$h,select:()=>va,selectLimit:()=>xa,selectSeries:()=>Ta,seq:()=>Ma,series:()=>Hh,setImmediate:()=>At,some:()=>Ia,someLimit:()=>Da,someSeries:()=>Pa,sortBy:()=>Vh,timeout:()=>Yh,times:()=>Kh,timesLimit:()=>Xn,timesSeries:()=>Zh,transform:()=>Qh,tryEach:()=>Xh,unmemoize:()=>Jh,until:()=>ed,waterfall:()=>td,whilst:()=>$n,wrapSync:()=>jn});function fh(t,...e){return(...r)=>t(...e,...r)}function bi(t){return function(...e){var r=e.pop();return t.call(this,e,r)}}function dh(t){setTimeout(t,0)}function ph(t){return(e,...r)=>t(()=>e(...r))}function jn(t){return wi(t)?function(...e){let r=e.pop(),i=t.apply(this,e);return sh(i,r)}:bi(function(e,r){var i;try{i=t.apply(this,e)}catch(n){return r(n)}if(i&&typeof i.then=="function")return sh(i,r);r(null,i)})}function sh(t,e){return t.then(r=>{oh(e,null,r)},r=>{oh(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function oh(t,e,r){try{t(e,r)}catch(i){At(n=>{throw n},i)}}function wi(t){return t[Symbol.toStringTag]==="AsyncFunction"}function Dv(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function Pv(t){return typeof t[Symbol.asyncIterator]=="function"}function q(t){if(typeof t!="function")throw new Error("expected a function");return wi(t)?jn(t):t}function M(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function r(...i){return typeof i[e-1]=="function"?t.apply(this,i):new Promise((n,s)=>{i[e-1]=(o,...a)=>{if(o)return s(o);n(a.length>1?a:a[0])},t.apply(this,i)})}return r}function gh(t){return function(r,...i){return M(function(s){var o=this;return t(r,(a,l)=>{q(a).apply(o,i.concat(l))},s)})}}function La(t,e,r,i){e=e||[];var n=[],s=0,o=q(r);return t(e,(a,l,u)=>{var f=s++;o(a,(c,h)=>{n[f]=h,u(c)})},a=>{i(a,n)})}function Hn(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}function Ot(t){function e(...r){if(t!==null){var i=t;t=null,i.apply(this,r)}}return Object.assign(e,t),e}function Lv(t){return t[Symbol.iterator]&&t[Symbol.iterator]()}function Nv(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function Cv(t){var e=-1;return function(){var i=t.next();return i.done?null:(e++,{value:i.value,key:e})}}function kv(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 Mv(t){if(Hn(t))return Nv(t);var e=Lv(t);return e?Cv(e):kv(t)}function It(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}function ah(t,e,r,i){let n=!1,s=!1,o=!1,a=0,l=0;function u(){a>=e||o||n||(o=!0,t.next().then(({value:h,done:d})=>{if(!(s||n)){if(o=!1,d){n=!0,a<=0&&i(null);return}a++,r(h,l,f),l++,u()}}).catch(c))}function f(h,d){if(a-=1,!s){if(h)return c(h);if(h===!1){n=!0,s=!0;return}if(d===Vn||n&&a<=0)return n=!0,i(null);u()}}function c(h){s||(o=!1,n=!0,i(h))}u()}function qv(t,e,r,i){return $e(e)(t,q(r),i)}function Fv(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 jv(t,e,r){return yi(t,1/0,e,r)}function Bv(t,e,r){var i=Hn(t)?Fv:jv;return i(t,q(e),r)}function Uv(t,e,r){return La(Fe,t,e,r)}function Wv(t,e,r){return yi(t,1,e,r)}function Gv(t,e,r){return La(Xe,t,e,r)}function Er(){let t,e;function r(i,...n){if(i)return e(i);t(n.length>1?n:n[0])}return r[vr]=new Promise((i,n)=>{t=i,e=n}),r}function Ca(t,e,r){typeof e!="number"&&(r=e,e=null),r=Ot(r||Er());var i=Object.keys(t).length;if(!i)return r(null);e||(e=i);var n={},s=0,o=!1,a=!1,l=Object.create(null),u=[],f=[],c={};Object.keys(t).forEach(v=>{var E=t[v];if(!Array.isArray(E)){h(v,[E]),f.push(v);return}var T=E.slice(0,E.length-1),P=T.length;if(P===0){h(v,E),f.push(v);return}c[v]=P,T.forEach(x=>{if(!t[x])throw new Error("async.auto task `"+v+"` has a non-existent dependency `"+x+"` in "+T.join(", "));y(x,()=>{P--,P===0&&h(v,E)})})}),m(),d();function h(v,E){u.push(()=>S(v,E))}function d(){if(!o){if(u.length===0&&s===0)return r(null,n);for(;u.length&&s<e;){var v=u.shift();v()}}}function y(v,E){var T=l[v];T||(T=l[v]=[]),T.push(E)}function p(v){var E=l[v]||[];E.forEach(T=>T()),d()}function S(v,E){if(!a){var T=It((x,...O)=>{if(s--,x===!1){o=!0;return}if(O.length<2&&([O]=O),x){var w={};if(Object.keys(n).forEach(R=>{w[R]=n[R]}),w[v]=O,a=!0,l=Object.create(null),o)return;r(x,w)}else n[v]=O,p(v)});s++;var P=q(E[E.length-1]);E.length>1?P(n,T):P(T)}}function m(){for(var v,E=0;f.length;)v=f.pop(),E++,b(v).forEach(T=>{--c[T]===0&&f.push(T)});if(E!==i)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function b(v){var E=[];return Object.keys(t).forEach(T=>{let P=t[T];Array.isArray(P)&&P.indexOf(v)>=0&&E.push(T)}),E}return r[vr]}function Yv(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 Kv(t){let e=Yv(t.toString()),r=e.match(zv);if(r||(r=e.match($v)),!r)throw new Error(`could not parse args in autoInject
2
+ import{a as Tc}from"./chunk-L5Y2GUO6.js";import{a as xc}from"./chunk-HFQ7T5KT.js";import{a as vc}from"./chunk-DXKKUGFG.js";import{a as D,b as ZE,c as g,d as QE,e as XE,f as JE}from"./chunk-UR6MHSHU.js";var kc=g((XB,Cc)=>{"use strict";var uv=typeof process=="object"&&process&&process.platform==="win32";Cc.exports=uv?{sep:"\\"}:{sep:"/"}});var Bc=g((JB,jc)=>{"use strict";jc.exports=qc;function qc(t,e,r){t instanceof RegExp&&(t=Mc(t,r)),e instanceof RegExp&&(e=Mc(e,r));var i=Fc(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 Mc(t,e){var r=e.match(t);return r?r[0]:null}qc.range=Fc;function Fc(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,Vc)=>{"use strict";var Uc=Bc();Vc.exports=hv;var Wc="\0SLASH"+Math.random()+"\0",Gc="\0OPEN"+Math.random()+"\0",ia="\0CLOSE"+Math.random()+"\0",zc="\0COMMA"+Math.random()+"\0",$c="\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(Wc).split("\\{").join(Gc).split("\\}").join(ia).split("\\,").join(zc).split("\\.").join($c)}function cv(t){return t.split(Wc).join("\\").split(Gc).join("{").split(ia).join("}").split(zc).join(",").split($c).join(".")}function Hc(t){if(!t)return[""];var e=[],r=Uc("{","}",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=Hc(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=Uc("{","}",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=Hc(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 y=ra(h[0]),p=ra(h[1]),S=Math.max(h[0].length,h[1].length),m=h.length==3?Math.max(Math.abs(ra(h[2])),1):1,b=gv,v=p<y;v&&(m*=-1,b=_v);var E=h.some(pv);d=[];for(var T=y;b(T,p);T+=m){var P;if(u)P=String.fromCharCode(T),P==="\\"&&(P="");else if(P=String(T),E){var x=S-P.length;if(x>0){var O=new Array(x+1).join("0");T<0?P="-"+O+P.slice(1):P=O+P}}d.push(P)}}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 Jc=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=kc();Ne.sep=aa.sep;var Ae=Symbol("globstar **");Ne.GLOBSTAR=Ae;var yv=na(),Yc={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},la="[^/]",sa=la+"*?",mv="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",bv="(?:(?!(?:\\/|^)\\.).)*?",Qc=t=>t.split("").reduce((e,r)=>(e[r]=!0,e),{}),Kc=Qc("().*{}+?[]^$\\!"),wv=Qc("[.("),Zc=/\/+/;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)=>Xc(t,e);var Xc=(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(Zc)),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 v=n;v<e.length-c;v++){let E=String(e[v]);if(b=!0,E==="."||E===".."||!this.options.dot&&E.charAt(0)===".")return!1}return i||b}let h=[[[],0]],d=h[0],y=0,p=[0];for(let b of u)b===Ae?(p.push(y),d=[[],0],h.push(d)):(d[0].push(b),y++);let S=h.length-1,m=e.length-c;for(let b of h)b[1]=m-(p[S--]+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 Xc(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,y,p,S=e.charAt(0)===".",m=i.dot||S,b=()=>S?"":m?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",v=x=>x.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",E=()=>{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;Kc[O]&&(n+="\\"),n+=O,o=!1;continue}switch(O){case"/":return!1;case"\\":if(f&&e.charAt(x+1)==="-"){n+=O;continue}E(),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),E(),u=O,i.noext&&E();continue;case"(":{if(f){n+="(";continue}if(!u){n+="\\(";continue}let w={type:u,start:x-1,reStart:n.length,open:Yc[u].open,close:Yc[u].close};this.debug(this.pattern," ",w),a.push(w),n+=w.open,w.start===0&&w.type!=="!"&&(S=!0,n+=v(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(),E(),s=!0,y=w,n+=y.close,y.type==="!"&&l.push(Object.assign(y,{reEnd:n.length}));continue}case"|":{let w=a[a.length-1];if(f||!w){n+="\\|";continue}E(),n+="|",w.start===0&&w.type!=="!"&&(S=!0,n+=v(e.slice(x+1)));continue}case"[":if(E(),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:E(),Kc[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]),y=a.pop();y;y=a.pop()){let x;x=n.slice(y.reStart+y.open.length),this.debug("setting tail",n,y),x=x.replace(/((?:\\{2}){0,64})(\\?)\|/g,(w,R,A)=>(A||(A="\\"),R+R+A+"|")),this.debug(`tail=%j
3
+ %s`,x,x,y,n);let O=y.type==="*"?sa:y.type==="?"?la:"\\"+y.type;s=!0,n=n.slice(0,y.reStart)+O+"\\("+x}E(),o&&(n+="\\\\");let T=wv[n.charAt(0)];for(let x=l.length-1;x>-1;x--){let O=l[x],w=n.slice(0,O.reStart),R=n.slice(O.reStart,O.reEnd-8),A=n.slice(O.reEnd),N=n.slice(O.reEnd-8,O.reEnd)+A,G=w.split(")").length,ue=w.split("(").length-G,Z=A;for(let V=0;V<ue;V++)Z=Z.replace(/\)[+*?]?/,"");A=Z;let te=A===""&&r!==oa?"(?:$|\\/)":"";n=w+R+A+te+N}if(n!==""&&s&&(n="(?=.)"+n),T&&(n=b()+n),r===oa)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return Ev(e);let P=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",P),{_glob:e,_src:n})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?sa:r.dot?mv:bv,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?xv(a):a===Ae?Ae:a._src).reduce((a,l)=>(a[a.length-1]===Ae&&l===Ae||a.push(l),a),[]),o.forEach((a,l)=>{a!==Ae||o[l-1]===Ae||(l===0?o.length>1?o[l+1]="(?:\\/|"+i+"\\/)?"+o[l+1]:o[l]=i:l===o.length-1?o[l-1]+="(?:\\/|"+i+")?":(o[l-1]+="(?:\\/|\\/"+i+"\\/)"+o[l+1],o[l+1]=Ae))}),o.filter(a=>a!==Ae).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;aa.sep!=="/"&&(e=e.split(aa.sep).join("/")),e=e.split(Zc),this.debug(this.pattern,"split",e);let n=this.set;this.debug(this.pattern,"set",n);let s;for(let o=e.length-1;o>=0&&(s=e[o],!s);o--);for(let o=0;o<n.length;o++){let a=n[o],l=e;if(i.matchBase&&a.length===1&&(l=[s]),this.matchOne(l,a,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Ne.defaults(e).Minimatch}};Ne.Minimatch=wr});var nh=g((i3,ih)=>{"use strict";ih.exports=rh;var ca=D("fs"),{EventEmitter:Rv}=D("events"),{Minimatch:fa}=Jc(),{resolve:Av}=D("path");function Ov(t,e){return new Promise((r,i)=>{ca.readdir(t,{withFileTypes:!0},(n,s)=>{if(n)switch(n.code){case"ENOTDIR":e?i(n):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:i(n);break}else r(s)})})}function eh(t,e){return new Promise((r,i)=>{(e?ca.stat:ca.lstat)(t,(s,o)=>{s?s.code==="ENOENT"?r(e?eh(t,!1):null):r(null):r(o)})})}async function*th(t,e,r,i,n,s){let o=await Ov(e+t,s);for(let a of o){let l=a.name;l===void 0&&(l=a,i=!0);let u=t+"/"+l,f=u.slice(1),c=e+"/"+f,h=null;(i||r)&&(h=await eh(c,r)),!h&&a.name!==void 0&&(h=a),h===null&&(h={isDirectory:()=>!1}),h.isDirectory()?n(f)||(yield{relative:f,absolute:c,stats:h},yield*th(u,e,r,i,n,!1)):yield{relative:f,absolute:c,stats:h}}}async function*Iv(t,e,r,i){yield*th("",t,e,r,i,!0)}function Dv(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var qn=class extends Rv{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=Dv(r||{}),this.matchers=[],this.options.pattern){let n=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=n.map(s=>new fa(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let n=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=n.map(s=>new fa(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let n=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=n.map(s=>new fa(s,{dot:!0}))}this.iterator=Iv(Av(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,i&&(this._matches=[],this.on("match",n=>this._matches.push(this.options.absolute?n.absolute:n.relative)),this.on("error",n=>i(n)),this.on("end",()=>i(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let i=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(n=>n.match(i)))&&!this.ignoreMatchers.some(n=>n.match(i))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let i=e.value.relative,n=e.value.absolute;this.options.mark&&r&&(i+="/",n+="/"),this.options.stat?this.emit("match",{relative:i,absolute:n,stat:e.value.stats}):this.emit("match",{relative:i,absolute:n})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}};function rh(t,e,r){return new qn(t,e,r)}rh.ReaddirGlob=qn});var rd={};QE(rd,{all:()=>wa,allLimit:()=>Sa,allSeries:()=>Ea,any:()=>Ia,anyLimit:()=>Da,anySeries:()=>Pa,apply:()=>fh,applyEach:()=>_h,applyEachSeries:()=>yh,asyncify:()=>jn,auto:()=>Ca,autoInject:()=>mh,cargo:()=>bh,cargoQueue:()=>wh,compose:()=>Sh,concat:()=>pa,concatLimit:()=>mi,concatSeries:()=>ga,constant:()=>Eh,default:()=>kx,detect:()=>_a,detectLimit:()=>ya,detectSeries:()=>ma,dir:()=>xh,doDuring:()=>Bn,doUntil:()=>Th,doWhilst:()=>Bn,during:()=>$n,each:()=>ba,eachLimit:()=>Un,eachOf:()=>Fe,eachOfLimit:()=>yi,eachOfSeries:()=>Xe,eachSeries:()=>Wn,ensureAsync:()=>qa,every:()=>wa,everyLimit:()=>Sa,everySeries:()=>Ea,filter:()=>va,filterLimit:()=>xa,filterSeries:()=>Ta,find:()=>_a,findLimit:()=>ya,findSeries:()=>ma,flatMap:()=>pa,flatMapLimit:()=>mi,flatMapSeries:()=>ga,foldl:()=>Sr,foldr:()=>Aa,forEach:()=>ba,forEachLimit:()=>Un,forEachOf:()=>Fe,forEachOfLimit:()=>yi,forEachOfSeries:()=>Xe,forEachSeries:()=>Wn,forever:()=>Ah,groupBy:()=>Oh,groupByLimit:()=>Zn,groupBySeries:()=>Ih,inject:()=>Sr,log:()=>Dh,map:()=>Yn,mapLimit:()=>Si,mapSeries:()=>Na,mapValues:()=>Ph,mapValuesLimit:()=>Qn,mapValuesSeries:()=>Lh,memoize:()=>Nh,nextTick:()=>Ch,parallel:()=>kh,parallelLimit:()=>Mh,priorityQueue:()=>qh,queue:()=>ja,race:()=>Fh,reduce:()=>Sr,reduceRight:()=>Aa,reflect:()=>Gn,reflectAll:()=>jh,reject:()=>Bh,rejectLimit:()=>Uh,rejectSeries:()=>Wh,retry:()=>zn,retryable:()=>$h,select:()=>va,selectLimit:()=>xa,selectSeries:()=>Ta,seq:()=>Ma,series:()=>Hh,setImmediate:()=>At,some:()=>Ia,someLimit:()=>Da,someSeries:()=>Pa,sortBy:()=>Vh,timeout:()=>Yh,times:()=>Kh,timesLimit:()=>Xn,timesSeries:()=>Zh,transform:()=>Qh,tryEach:()=>Xh,unmemoize:()=>Jh,until:()=>ed,waterfall:()=>td,whilst:()=>$n,wrapSync:()=>jn});function fh(t,...e){return(...r)=>t(...e,...r)}function bi(t){return function(...e){var r=e.pop();return t.call(this,e,r)}}function dh(t){setTimeout(t,0)}function ph(t){return(e,...r)=>t(()=>e(...r))}function jn(t){return wi(t)?function(...e){let r=e.pop(),i=t.apply(this,e);return sh(i,r)}:bi(function(e,r){var i;try{i=t.apply(this,e)}catch(n){return r(n)}if(i&&typeof i.then=="function")return sh(i,r);r(null,i)})}function sh(t,e){return t.then(r=>{oh(e,null,r)},r=>{oh(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function oh(t,e,r){try{t(e,r)}catch(i){At(n=>{throw n},i)}}function wi(t){return t[Symbol.toStringTag]==="AsyncFunction"}function Lv(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function Nv(t){return typeof t[Symbol.asyncIterator]=="function"}function q(t){if(typeof t!="function")throw new Error("expected a function");return wi(t)?jn(t):t}function M(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function r(...i){return typeof i[e-1]=="function"?t.apply(this,i):new Promise((n,s)=>{i[e-1]=(o,...a)=>{if(o)return s(o);n(a.length>1?a:a[0])},t.apply(this,i)})}return r}function gh(t){return function(r,...i){return M(function(s){var o=this;return t(r,(a,l)=>{q(a).apply(o,i.concat(l))},s)})}}function La(t,e,r,i){e=e||[];var n=[],s=0,o=q(r);return t(e,(a,l,u)=>{var f=s++;o(a,(c,h)=>{n[f]=h,u(c)})},a=>{i(a,n)})}function Hn(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}function Ot(t){function e(...r){if(t!==null){var i=t;t=null,i.apply(this,r)}}return Object.assign(e,t),e}function Cv(t){return t[Symbol.iterator]&&t[Symbol.iterator]()}function kv(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function Mv(t){var e=-1;return function(){var i=t.next();return i.done?null:(e++,{value:i.value,key:e})}}function qv(t){var e=t?Object.keys(t):[],r=-1,i=e.length;return function n(){var s=e[++r];return s==="__proto__"?n():r<i?{value:t[s],key:s}:null}}function Fv(t){if(Hn(t))return kv(t);var e=Cv(t);return e?Mv(e):qv(t)}function It(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}function ah(t,e,r,i){let n=!1,s=!1,o=!1,a=0,l=0;function u(){a>=e||o||n||(o=!0,t.next().then(({value:h,done:d})=>{if(!(s||n)){if(o=!1,d){n=!0,a<=0&&i(null);return}a++,r(h,l,f),l++,u()}}).catch(c))}function f(h,d){if(a-=1,!s){if(h)return c(h);if(h===!1){n=!0,s=!0;return}if(d===Vn||n&&a<=0)return n=!0,i(null);u()}}function c(h){s||(o=!1,n=!0,i(h))}u()}function jv(t,e,r,i){return $e(e)(t,q(r),i)}function Bv(t,e,r){r=Ot(r);var i=0,n=0,{length:s}=t,o=!1;s===0&&r(null);function a(l,u){l===!1&&(o=!0),o!==!0&&(l?r(l):(++n===s||u===Vn)&&r(null))}for(;i<s;i++)e(t[i],i,It(a))}function Uv(t,e,r){return yi(t,1/0,e,r)}function Wv(t,e,r){var i=Hn(t)?Bv:Uv;return i(t,q(e),r)}function Gv(t,e,r){return La(Fe,t,e,r)}function zv(t,e,r){return yi(t,1,e,r)}function $v(t,e,r){return La(Xe,t,e,r)}function Er(){let t,e;function r(i,...n){if(i)return e(i);t(n.length>1?n:n[0])}return r[vr]=new Promise((i,n)=>{t=i,e=n}),r}function Ca(t,e,r){typeof e!="number"&&(r=e,e=null),r=Ot(r||Er());var i=Object.keys(t).length;if(!i)return r(null);e||(e=i);var n={},s=0,o=!1,a=!1,l=Object.create(null),u=[],f=[],c={};Object.keys(t).forEach(v=>{var E=t[v];if(!Array.isArray(E)){h(v,[E]),f.push(v);return}var T=E.slice(0,E.length-1),P=T.length;if(P===0){h(v,E),f.push(v);return}c[v]=P,T.forEach(x=>{if(!t[x])throw new Error("async.auto task `"+v+"` has a non-existent dependency `"+x+"` in "+T.join(", "));y(x,()=>{P--,P===0&&h(v,E)})})}),m(),d();function h(v,E){u.push(()=>S(v,E))}function d(){if(!o){if(u.length===0&&s===0)return r(null,n);for(;u.length&&s<e;){var v=u.shift();v()}}}function y(v,E){var T=l[v];T||(T=l[v]=[]),T.push(E)}function p(v){var E=l[v]||[];E.forEach(T=>T()),d()}function S(v,E){if(!a){var T=It((x,...O)=>{if(s--,x===!1){o=!0;return}if(O.length<2&&([O]=O),x){var w={};if(Object.keys(n).forEach(R=>{w[R]=n[R]}),w[v]=O,a=!0,l=Object.create(null),o)return;r(x,w)}else n[v]=O,p(v)});s++;var P=q(E[E.length-1]);E.length>1?P(n,T):P(T)}}function m(){for(var v,E=0;f.length;)v=f.pop(),E++,b(v).forEach(T=>{--c[T]===0&&f.push(T)});if(E!==i)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function b(v){var E=[];return Object.keys(t).forEach(T=>{let P=t[T];Array.isArray(P)&&P.indexOf(v)>=0&&E.push(T)}),E}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 Qv(t){let e=Zv(t.toString()),r=e.match(Hv);if(r||(r=e.match(Vv)),!r)throw new Error(`could not parse args in autoInject
5
5
  Source:
6
- `+e);let[,i]=r;return i.replace(/\s/g,"").split(Hv).map(n=>n.replace(Vv,"").trim())}function mh(t,e){var r={};return Object.keys(t).forEach(i=>{var n=t[i],s,o=wi(n),a=!o&&n.length===1||o&&n.length===0;if(Array.isArray(n))s=[...n],n=s.pop(),r[i]=s.concat(s.length>0?l:n);else if(a)r[i]=n;else{if(s=Kv(n),n.length===0&&!o&&s.length===0)throw new Error("autoInject task functions require explicit parameters.");o||s.pop(),r[i]=s.concat(l)}function l(u,f){var c=s.map(h=>u[h]);c.push(f),q(n)(...c)}}),Ca(r,e)}function lh(t,e){t.length=1,t.head=t.tail=e}function ka(t,e,r){if(e==null)e=1;else if(e===0)throw new RangeError("Concurrency must not be zero");var i=q(t),n=0,s=[];let o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(b,v){o[b].push(v)}function l(b,v){let E=(...T)=>{u(b,E),v(...T)};o[b].push(E)}function u(b,v){if(!b)return Object.keys(o).forEach(E=>o[E]=[]);if(!v)return o[b]=[];o[b]=o[b].filter(E=>E!==v)}function f(b,...v){o[b].forEach(E=>E(...v))}var c=!1;function h(b,v,E,T){if(T!=null&&typeof T!="function")throw new Error("task callback must be a function");m.started=!0;var P,x;function O(R,...A){if(R)return E?x(R):P();if(A.length<=1)return P(A[0]);P(A)}var w=m._createTaskItem(b,E?O:T||O);if(v?m._tasks.unshift(w):m._tasks.push(w),c||(c=!0,At(()=>{c=!1,m.process()})),E||!T)return new Promise((R,A)=>{P=R,x=A})}function d(b){return function(v,...E){n-=1;for(var T=0,P=b.length;T<P;T++){var x=b[T],O=s.indexOf(x);O===0?s.shift():O>0&&s.splice(O,1),x.callback(v,...E),v!=null&&f("error",v,x.data)}n<=m.concurrency-m.buffer&&f("unsaturated"),m.idle()&&f("drain"),m.process()}}function y(b){return b.length===0&&m.idle()?(At(()=>f("drain")),!0):!1}let p=b=>v=>{if(!v)return new Promise((E,T)=>{l(b,(P,x)=>{if(P)return T(P);E(x)})});u(b),a(b,v)};var S=!1,m={_tasks:new da,_createTaskItem(b,v){return{data:b,callback:v}},*[Symbol.iterator](){yield*m._tasks[Symbol.iterator]()},concurrency:e,payload:r,buffer:e/4,started:!1,paused:!1,push(b,v){return Array.isArray(b)?y(b)?void 0:b.map(E=>h(E,!1,!1,v)):h(b,!1,!1,v)},pushAsync(b,v){return Array.isArray(b)?y(b)?void 0:b.map(E=>h(E,!1,!0,v)):h(b,!1,!0,v)},kill(){u(),m._tasks.empty()},unshift(b,v){return Array.isArray(b)?y(b)?void 0:b.map(E=>h(E,!0,!1,v)):h(b,!0,!1,v)},unshiftAsync(b,v){return Array.isArray(b)?y(b)?void 0:b.map(E=>h(E,!0,!0,v)):h(b,!0,!0,v)},remove(b){m._tasks.remove(b)},process(){if(!S){for(S=!0;!m.paused&&n<m.concurrency&&m._tasks.length;){var b=[],v=[],E=m._tasks.length;m.payload&&(E=Math.min(E,m.payload));for(var T=0;T<E;T++){var P=m._tasks.shift();b.push(P),s.push(P),v.push(P.data)}n+=1,m._tasks.length===0&&f("empty"),n===m.concurrency&&f("saturated");var x=It(d(b));i(v,x)}S=!1}},length(){return m._tasks.length},running(){return n},workersList(){return s},idle(){return m._tasks.length+n===0},pause(){m.paused=!0},resume(){m.paused!==!1&&(m.paused=!1,At(m.process))}};return Object.defineProperties(m,{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")}}),m}function bh(t,e){return ka(t,1,e)}function wh(t,e,r){return ka(t,e,r)}function Zv(t,e,r,i){i=Ot(i);var n=q(r);return Xe(t,(s,o,a)=>{n(e,s,(l,u)=>{e=u,a(l)})},s=>i(s,e))}function Ma(...t){var e=t.map(q);return function(...r){var i=this,n=r[r.length-1];return typeof n=="function"?r.pop():n=Er(),Sr(e,r,(s,o,a)=>{o.apply(i,s.concat((l,...u)=>{a(l,u)}))},(s,o)=>n(s,...o)),n[vr]}}function Sh(...t){return Ma(...t.reverse())}function Qv(t,e,r,i){return La($e(e),t,r,i)}function Xv(t,e,r,i){var n=q(r);return Si(t,e,(s,o)=>{n(s,(a,...l)=>a?o(a):o(a,l))},(s,o)=>{for(var a=[],l=0;l<o.length;l++)o[l]&&(a=a.concat(...o[l]));return i(s,a)})}function Jv(t,e,r){return mi(t,1/0,e,r)}function ex(t,e,r){return mi(t,1,e,r)}function Eh(...t){return function(...e){var r=e.pop();return r(null,...t)}}function dt(t,e){return(r,i,n,s)=>{var o=!1,a;let l=q(n);r(i,(u,f,c)=>{l(u,(h,d)=>{if(h||h===!1)return c(h);if(t(d)&&!a)return o=!0,a=e(!0,u),c(null,Vn);c()})},u=>{if(u)return s(u);s(null,o?a:e(!1))})}}function tx(t,e,r){return dt(i=>i,(i,n)=>n)(Fe,t,e,r)}function rx(t,e,r,i){return dt(n=>n,(n,s)=>s)($e(e),t,r,i)}function ix(t,e,r){return dt(i=>i,(i,n)=>n)($e(1),t,e,r)}function vh(t){return(e,...r)=>q(e)(...r,(i,...n)=>{typeof console=="object"&&(i?console.error&&console.error(i):console[t]&&n.forEach(s=>console[t](s)))})}function nx(t,e,r){r=It(r);var i=q(t),n=q(e),s;function o(l,...u){if(l)return r(l);l!==!1&&(s=u,n(...u,a))}function a(l,u){if(l)return r(l);if(l!==!1){if(!u)return r(null,...s);i(o)}}return a(null,!0)}function Th(t,e,r){let i=q(e);return Bn(t,(...n)=>{let s=n.pop();i(...n,(o,a)=>s(o,!a))},r)}function Rh(t){return(e,r,i)=>t(e,i)}function sx(t,e,r){return Fe(t,Rh(q(e)),r)}function ox(t,e,r,i){return $e(e)(t,Rh(q(r)),i)}function ax(t,e,r){return Un(t,1,e,r)}function qa(t){return wi(t)?t:function(...e){var r=e.pop(),i=!0;e.push((...n)=>{i?At(()=>r(...n)):r(...n)}),t.apply(this,e),i=!1}}function lx(t,e,r){return dt(i=>!i,i=>!i)(Fe,t,e,r)}function ux(t,e,r,i){return dt(n=>!n,n=>!n)($e(e),t,r,i)}function fx(t,e,r){return dt(i=>!i,i=>!i)(Xe,t,e,r)}function cx(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 hx(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)?cx:hx;return n(t,e,q(r),i)}function dx(t,e,r){return Kn(Fe,t,e,r)}function px(t,e,r,i){return Kn($e(e),t,r,i)}function gx(t,e,r){return Kn(Xe,t,e,r)}function _x(t,e){var r=It(e),i=q(qa(t));function n(s){if(s)return r(s);s!==!1&&i(n)}return n()}function yx(t,e,r,i){var n=q(r);return Si(t,e,(s,o)=>{n(s,(a,l)=>a?o(a):o(a,{key:l,val:s}))},(s,o)=>{for(var a={},{hasOwnProperty:l}=Object.prototype,u=0;u<o.length;u++)if(o[u]){var{key:f}=o[u],{val:c}=o[u];l.call(a,f)?a[f].push(c):a[f]=[c]}return i(s,a)})}function Oh(t,e,r){return Zn(t,1/0,e,r)}function Ih(t,e,r){return Zn(t,1,e,r)}function mx(t,e,r,i){i=Ot(i);var n={},s=q(r);return $e(e)(t,(o,a,l)=>{s(o,a,(u,f)=>{if(u)return l(u);n[a]=f,l(u)})},o=>i(o,n))}function Ph(t,e,r){return Qn(t,1/0,e,r)}function Lh(t,e,r){return Qn(t,1,e,r)}function Nh(t,e=r=>r){var r=Object.create(null),i=Object.create(null),n=q(t),s=bi((o,a)=>{var l=e(...o);l in r?At(()=>a(null,...r[l])):l in i?i[l].push(a):(i[l]=[a],n(...o,(u,...f)=>{u||(r[l]=f);var c=i[l];delete i[l];for(var h=0,d=c.length;h<d;h++)c[h](u,...f)}))});return s.memo=r,s.unmemoized=t,s}function kh(t,e){return Fa(Fe,t,e)}function Mh(t,e,r){return Fa($e(e),t,r)}function ja(t,e){var r=q(t);return ka((i,n)=>{r(i[0],n)},e,1)}function bx(t){return(t<<1)+1}function uh(t){return(t+1>>1)-1}function ha(t,e){return t.priority!==e.priority?t.priority<e.priority:t.pushCount<e.pushCount}function qh(t,e){var r=ja(t,e),{push:i,pushAsync:n}=r;r._tasks=new Ra,r._createTaskItem=({data:o,priority:a},l)=>({data:o,priority:a,callback:l});function s(o,a){return Array.isArray(o)?o.map(l=>({data:l,priority:a})):{data:o,priority:a}}return r.push=function(o,a=0,l){return i(s(o,a),l)},r.pushAsync=function(o,a=0,l){return n(s(o,a),l)},delete r.unshift,delete r.unshiftAsync,r}function wx(t,e){if(e=Ot(e),!Array.isArray(t))return e(new TypeError("First argument to race must be an array of functions"));if(!t.length)return e();for(var r=0,i=t.length;r<i;r++)q(t[r])(e)}function Aa(t,e,r,i){var n=[...t].reverse();return Sr(n,e,r,i)}function Gn(t){var e=q(t);return bi(function(i,n){return i.push((s,...o)=>{let a={};if(s&&(a.error=s),o.length>0){var l=o;o.length<=1&&([l]=o),a.value=l}n(null,a)}),e.apply(this,i)})}function jh(t){var e;return Array.isArray(t)?e=t.map(Gn):(e={},Object.keys(t).forEach(r=>{e[r]=Gn.call(this,t[r])})),e}function Ba(t,e,r,i){let n=q(r);return Kn(t,e,(s,o)=>{n(s,(a,l)=>{o(a,!l)})},i)}function Sx(t,e,r){return Ba(Fe,t,e,r)}function Ex(t,e,r,i){return Ba($e(e),t,r,i)}function vx(t,e,r){return Ba(Xe,t,e,r)}function Gh(t){return function(){return t}}function zn(t,e,r){var i={times:Oa,intervalFunc:Gh(zh)};if(arguments.length<3&&typeof t=="function"?(r=e||Er(),e=t):(xx(i,t),r=r||Er()),typeof e!="function")throw new Error("Invalid arguments for async.retry");var n=q(e),s=1;function o(){n((a,...l)=>{a!==!1&&(a&&s++<i.times&&(typeof i.errorFilter!="function"||i.errorFilter(a))?setTimeout(o,i.intervalFunc(s-1)):r(a,...l))})}return o(),r[vr]}function xx(t,e){if(typeof e=="object")t.times=+e.times||Oa,t.intervalFunc=typeof e.interval=="function"?e.interval:Gh(+e.interval||zh),t.errorFilter=e.errorFilter;else if(typeof e=="number"||typeof e=="string")t.times=+e||Oa;else throw new Error("Invalid arguments for async.retry")}function $h(t,e){e||(e=t,t=null);let r=t&&t.arity||e.length;wi(e)&&(r+=1);var i=q(e);return bi((n,s)=>{(n.length<r-1||s==null)&&(n.push(s),s=Er());function o(a){i(...n,a)}return t?zn(t,o,s):zn(o,s),s[vr]})}function Hh(t,e){return Fa(Xe,t,e)}function Tx(t,e,r){return dt(Boolean,i=>i)(Fe,t,e,r)}function Rx(t,e,r,i){return dt(Boolean,n=>n)($e(e),t,r,i)}function Ax(t,e,r){return dt(Boolean,i=>i)(Xe,t,e,r)}function Ox(t,e,r){var i=q(e);return Yn(t,(s,o)=>{i(s,(a,l)=>{if(a)return o(a);o(a,{value:s,criteria:l})})},(s,o)=>{if(s)return r(s);r(null,o.sort(n).map(a=>a.value))});function n(s,o){var a=s.criteria,l=o.criteria;return a<l?-1:a>l?1:0}}function Yh(t,e,r){var i=q(t);return bi((n,s)=>{var o=!1,a;function l(){var u=t.name||"anonymous",f=new Error('Callback function "'+u+'" timed out.');f.code="ETIMEDOUT",r&&(f.info=r),o=!0,s(f)}n.push((...u)=>{o||(s(...u),clearTimeout(a))}),a=setTimeout(l,e),i(...n)})}function Ix(t){for(var e=Array(t);t--;)e[t]=t;return e}function Xn(t,e,r,i){var n=q(r);return Si(Ix(t),e,n,i)}function Kh(t,e,r){return Xn(t,1/0,e,r)}function Zh(t,e,r){return Xn(t,1,e,r)}function Qh(t,e,r,i){arguments.length<=3&&typeof e=="function"&&(i=r,r=e,e=Array.isArray(t)?[]:{}),i=Ot(i||Er());var n=q(r);return Fe(t,(s,o,a)=>{n(e,s,o,a)},s=>i(s,e)),i[vr]}function Dx(t,e){var r=null,i;return Wn(t,(n,s)=>{q(n)((o,...a)=>{if(o===!1)return s(o);a.length<2?[i]=a:i=a,r=o,s(o?null:{})})},()=>e(r,i))}function Jh(t){return(...e)=>(t.unmemoized||t)(...e)}function Px(t,e,r){r=It(r);var i=q(e),n=q(t),s=[];function o(l,...u){if(l)return r(l);s=u,l!==!1&&n(a)}function a(l,u){if(l)return r(l);if(l!==!1){if(!u)return r(null,...s);i(o)}}return n(a)}function ed(t,e,r){let i=q(t);return $n(n=>i((s,o)=>n(s,!o)),e,r)}function Lx(t,e){if(e=Ot(e),!Array.isArray(t))return e(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();var r=0;function i(s){var o=q(t[r++]);o(...s,It(n))}function n(s,...o){if(s!==!1){if(s||r===t.length)return e(s,...o);i(o)}}i([])}var Iv,ch,hh,_i,At,Vn,$e,yi,Fe,Yn,_h,Xe,Na,yh,vr,zv,$v,Hv,Vv,da,Sr,Si,mi,pa,ga,_a,ya,ma,xh,Bn,ba,Un,Wn,wa,Sa,Ea,va,xa,Ta,Ah,Zn,Dh,Qn,Fn,Ch,Fa,Ra,Fh,Bh,Uh,Wh,Oa,zh,Ia,Da,Pa,Vh,Xh,$n,td,Nx,id=YE(()=>{"use strict";Iv=typeof queueMicrotask=="function"&&queueMicrotask,ch=typeof setImmediate=="function"&&setImmediate,hh=typeof process=="object"&&typeof process.nextTick=="function";Iv?_i=queueMicrotask:ch?_i=setImmediate:hh?_i=process.nextTick:_i=dh;At=ph(_i);Vn={};$e=t=>(e,r,i)=>{if(i=Ot(i),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return i(null);if(Dv(e))return ah(e,t,r,i);if(Pv(e))return ah(e[Symbol.asyncIterator](),t,r,i);var n=Mv(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(qv,4);Fe=M(Bv,3);Yn=M(Uv,3),_h=gh(Yn);Xe=M(Wv,3);Na=M(Gv,3),yh=gh(Na),vr=Symbol("promiseCallback");zv=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,$v=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,Hv=/,/,Vv=/(=.+)?(\s*)$/;da=class{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,r){r.prev=e,r.next=e.next,e.next?e.next.prev=r:this.tail=r,e.next=r,this.length+=1}insertBefore(e,r){r.prev=e.prev,r.next=e,e.prev?e.prev.next=r:this.head=r,e.prev=r,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):lh(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):lh(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var r=this.head;r;){var{next:i}=r;e(r)&&this.removeLink(r),r=i}return this}};Sr=M(Zv,4);Si=M(Qv,4);mi=M(Xv,4);pa=M(Jv,3);ga=M(ex,3);_a=M(tx,3);ya=M(rx,4);ma=M(ix,3);xh=vh("dir");Bn=M(nx,3);ba=M(sx,3);Un=M(ox,4);Wn=M(ax,3);wa=M(lx,3);Sa=M(ux,4);Ea=M(fx,3);va=M(dx,3);xa=M(px,4);Ta=M(gx,3);Ah=M(_x,2);Zn=M(yx,4);Dh=vh("log");Qn=M(mx,4);hh?Fn=process.nextTick:ch?Fn=setImmediate:Fn=dh;Ch=ph(Fn),Fa=M((t,e,r)=>{var i=Hn(e)?[]:{};t(e,(n,s,o)=>{q(n)((a,...l)=>{l.length<2&&([l]=l),i[s]=l,o(a)})},n=>r(n,i))},3);Ra=class{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let r;for(;e>0&&ha(this.heap[e],this.heap[r=uh(e)]);){let i=this.heap[e];this.heap[e]=this.heap[r],this.heap[r]=i,e=r}}percDown(e){let r;for(;(r=bx(e))<this.heap.length&&(r+1<this.heap.length&&ha(this.heap[r+1],this.heap[r])&&(r=r+1),!ha(this.heap[e],this.heap[r]));){let i=this.heap[e];this.heap[e]=this.heap[r],this.heap[r]=i,e=r}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let r=0;for(let i=0;i<this.heap.length;i++)e(this.heap[i])||(this.heap[r]=this.heap[i],r++);this.heap.splice(r);for(let i=uh(this.heap.length-1);i>=0;i--)this.percDown(i);return this}};Fh=M(wx,2);Bh=M(Sx,3);Uh=M(Ex,4);Wh=M(vx,3);Oa=5,zh=0;Ia=M(Tx,3);Da=M(Rx,4);Pa=M(Ax,3);Vh=M(Ox,3);Xh=M(Dx);$n=M(Px,3);td=M(Lx),Nx={apply:fh,applyEach:_h,applyEachSeries:yh,asyncify:jn,auto:Ca,autoInject:mh,cargo:bh,cargoQueue:wh,compose:Sh,concat:pa,concatLimit:mi,concatSeries:ga,constant:Eh,detect:_a,detectLimit:ya,detectSeries:ma,dir:xh,doUntil:Th,doWhilst:Bn,each:ba,eachLimit:Un,eachOf:Fe,eachOfLimit:yi,eachOfSeries:Xe,eachSeries:Wn,ensureAsync:qa,every:wa,everyLimit:Sa,everySeries:Ea,filter:va,filterLimit:xa,filterSeries:Ta,forever:Ah,groupBy:Oh,groupByLimit:Zn,groupBySeries:Ih,log:Dh,map:Yn,mapLimit:Si,mapSeries:Na,mapValues:Ph,mapValuesLimit:Qn,mapValuesSeries:Lh,memoize:Nh,nextTick:Ch,parallel:kh,parallelLimit:Mh,priorityQueue:qh,queue:ja,race:Fh,reduce:Sr,reduceRight:Aa,reflect:Gn,reflectAll:jh,reject:Bh,rejectLimit:Uh,rejectSeries:Wh,retry:zn,retryable:$h,seq:Ma,series:Hh,setImmediate:At,some:Ia,someLimit:Da,someSeries:Pa,sortBy:Vh,timeout:Yh,times:Kh,timesLimit:Xn,timesSeries:Zh,transform:Qh,tryEach:Xh,unmemoize:Jh,until:ed,waterfall:td,whilst:$n,all:wa,allLimit:Sa,allSeries:Ea,any:Ia,anyLimit:Da,anySeries:Pa,find:_a,findLimit:ya,findSeries:ma,flatMap:pa,flatMapLimit:mi,flatMapSeries:ga,forEach:ba,forEachSeries:Wn,forEachLimit:Un,forEachOf:Fe,forEachOfSeries:Xe,forEachOfLimit:yi,inject:Sr,foldl:Sr,foldr:Aa,select:va,selectLimit:xa,selectSeries:Ta,wrapSync:jn,during:$n,doDuring:Bn}});var sd=g((r3,nd)=>{"use strict";var Dt=D("constants"),Cx=process.cwd,Jn=null,kx=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Jn||(Jn=Cx.call(process)),Jn};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ua=process.chdir,process.chdir=function(t){Jn=null,Ua.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ua));var Ua;nd.exports=Mx;function Mx(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(){}),kx==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:(function(f){function c(h,d,y){var p=Date.now(),S=0;f(h,d,function m(b){if(b&&(b.code==="EACCES"||b.code==="EPERM"||b.code==="EBUSY")&&Date.now()-p<6e4){setTimeout(function(){t.stat(d,function(v,E){v&&v.code==="ENOENT"?f(h,d,m):y(b)})},S),S<100&&(S+=10);return}y&&y(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,y,p,S,m){var b;if(m&&typeof m=="function"){var v=0;b=function(E,T,P){if(E&&E.code==="EAGAIN"&&v<10)return v++,f.call(t,h,d,y,p,S,b);m.apply(this,arguments)}}return f.call(t,h,d,y,p,S,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,y,p){for(var S=0;;)try{return f.call(t,c,h,d,y,p)}catch(m){if(m.code==="EAGAIN"&&S<10){S++;continue}throw m}}})(t.readSync);function e(f){f.lchmod=function(c,h,d){f.open(c,Dt.O_WRONLY|Dt.O_SYMLINK,h,function(y,p){if(y){d&&d(y);return}f.fchmod(p,h,function(S){f.close(p,function(m){d&&d(S||m)})})})},f.lchmodSync=function(c,h){var d=f.openSync(c,Dt.O_WRONLY|Dt.O_SYMLINK,h),y=!0,p;try{p=f.fchmodSync(d,h),y=!1}finally{if(y)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,y){f.open(c,Dt.O_SYMLINK,function(p,S){if(p){y&&y(p);return}f.futimes(S,h,d,function(m){f.close(S,function(b){y&&y(m||b)})})})},f.lutimesSync=function(c,h,d){var y=f.openSync(c,Dt.O_SYMLINK),p,S=!0;try{p=f.futimesSync(y,h,d),S=!1}finally{if(S)try{f.closeSync(y)}catch{}else f.closeSync(y)}return p}):f.futimes&&(f.lutimes=function(c,h,d,y){y&&process.nextTick(y)},f.lutimesSync=function(){})}function i(f){return f&&function(c,h,d){return f.call(t,c,h,function(y){u(y)&&(y=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,y){return f.call(t,c,h,d,function(p){u(p)&&(p=null),y&&y.apply(this,arguments)})}}function o(f){return f&&function(c,h,d){try{return f.call(t,c,h,d)}catch(y){if(!u(y))throw y}}}function a(f){return f&&function(c,h,d){typeof h=="function"&&(d=h,h=null);function y(p,S){S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),d&&d.apply(this,arguments)}return h?f.call(t,c,h,y):f.call(t,c,y)}}function l(f){return f&&function(c,h){var d=h?f.call(t,c,h):f.call(t,c);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function u(f){if(!f||f.code==="ENOSYS")return!0;var c=!process.getuid||process.getuid()!==0;return!!(c&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var ld=g((i3,ad)=>{"use strict";var od=D("stream").Stream;ad.exports=qx;function qx(t){return{ReadStream:e,WriteStream:r};function e(i,n){if(!(this instanceof e))return new e(i,n);od.call(this);var s=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,n=n||{};for(var o=Object.keys(n),a=0,l=o.length;a<l;a++){var u=o[a];this[u]=n[u]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(f,c){if(f){s.emit("error",f),s.readable=!1;return}s.fd=c,s.emit("open",c),s._read()})}function r(i,n){if(!(this instanceof r))return new r(i,n);od.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var s=Object.keys(n),o=0,a=s.length;o<a;o++){var l=s[o];this[l]=n[l]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var fd=g((n3,ud)=>{"use strict";ud.exports=jx;var Fx=Object.getPrototypeOf||function(t){return t.__proto__};function jx(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:Fx(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((s3,za)=>{"use strict";var ne=D("fs"),Bx=sd(),Ux=ld(),Wx=fd(),es=D("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 Gx(){}function dd(t,e){Object.defineProperty(t,me,{get:function(){return e}})}var Qt=Gx;es.debuglog?Qt=es.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Qt=function(){var t=es.format.apply(es,arguments);t="GFS4: "+t.split(/\n/).join(`
7
- GFS4: `),console.error(t)});ne[me]||(cd=global[me]||[],dd(ne,cd),ne.close=(function(t){function e(r,i){return t.call(ne,r,function(n){n||hd(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,rs,{value:t}),e})(ne.close),ne.closeSync=(function(t){function e(r){t.apply(ne,arguments),hd()}return Object.defineProperty(e,rs,{value:t}),e})(ne.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Qt(ne[me]),D("assert").equal(ne[me].length,0)}));var cd;global[me]||dd(global,ne[me]);za.exports=Wa(Wx(ne));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ne.__patched&&(za.exports=Wa(ne),ne.__patched=!0);function Wa(t){Bx(t),t.gracefulify=Wa,t.createReadStream=T,t.createWriteStream=P;var e=t.readFile;t.readFile=r;function r(w,R,A){return typeof R=="function"&&(A=R,R=null),N(w,R,A);function N(G,ue,Z,te){return e(G,ue,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?xr([N,[G,ue,Z],V,te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=n;function n(w,R,A,N){return typeof A=="function"&&(N=A,A=null),G(w,R,A,N);function G(ue,Z,te,V,ye){return i(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(w,R,A,N){return typeof A=="function"&&(N=A,A=null),G(w,R,A,N);function G(ue,Z,te,V,ye){return s(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=l);function l(w,R,A,N){return typeof A=="function"&&(N=A,A=0),G(w,R,A,N);function G(ue,Z,te,V,ye){return a(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var u=t.readdir;t.readdir=c;var f=/^v[0-5]\./;function c(w,R,A){typeof R=="function"&&(A=R,R=null);var N=f.test(process.version)?function(Z,te,V,ye){return u(Z,G(Z,te,V,ye))}:function(Z,te,V,ye){return u(Z,te,G(Z,te,V,ye))};return N(w,R,A);function G(ue,Z,te,V){return function(ye,re){ye&&(ye.code==="EMFILE"||ye.code==="ENFILE")?xr([N,[ue,Z,te],ye,V||Date.now(),Date.now()]):(re&&re.sort&&re.sort(),typeof te=="function"&&te.call(this,ye,re))}}}if(process.version.substr(0,4)==="v0.8"){var h=Ux(t);m=h.ReadStream,v=h.WriteStream}var d=t.ReadStream;d&&(m.prototype=Object.create(d.prototype),m.prototype.open=b);var y=t.WriteStream;y&&(v.prototype=Object.create(y.prototype),v.prototype.open=E),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(w){m=w},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return v},set:function(w){v=w},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(w){p=w},enumerable:!0,configurable:!0});var S=v;Object.defineProperty(t,"FileWriteStream",{get:function(){return S},set:function(w){S=w},enumerable:!0,configurable:!0});function m(w,R){return this instanceof m?(d.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function b(){var w=this;O(w.path,w.flags,w.mode,function(R,A){R?(w.autoClose&&w.destroy(),w.emit("error",R)):(w.fd=A,w.emit("open",A),w.read())})}function v(w,R){return this instanceof v?(y.apply(this,arguments),this):v.apply(Object.create(v.prototype),arguments)}function E(){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 P(w,R){return new t.WriteStream(w,R)}var x=t.open;t.open=O;function O(w,R,A,N){return typeof A=="function"&&(N=A,A=null),G(w,R,A,N);function G(ue,Z,te,V,ye){return x(ue,Z,te,function(re,VB){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return t}function xr(t){Qt("ENQUEUE",t[0].name,t[1]),ne[me].push(t),Ga()}var ts;function hd(){for(var t=Date.now(),e=0;e<ne[me].length;++e)ne[me][e].length>2&&(ne[me][e][3]=t,ne[me][e][4]=t);Ga()}function Ga(){if(clearTimeout(ts),ts=void 0,ne[me].length!==0){var t=ne[me].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)Qt("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){Qt("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,i)}else{var a=Date.now()-s,l=Math.max(s-n,1),u=Math.min(l*1.2,100);a>=u?(Qt("RETRY",e.name,r),e.apply(null,r.concat([n]))):ne[me].push(t)}ts===void 0&&(ts=setTimeout(Ga,0))}}});var is=g((o3,pd)=>{"use strict";var Je=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Je.writable=t=>Je(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Je.readable=t=>Je(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Je.duplex=t=>Je.writable(t)&&Je.readable(t);Je.transform=t=>Je.duplex(t)&&typeof t._transform=="function";pd.exports=Je});var Ei=g((a3,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:zx}:Ha.exports=process;function zx(t,e,r,i){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,s,o;switch(n){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick(function(){t.call(null,e)});case 3:return process.nextTick(function(){t.call(null,e,r)});case 4:return process.nextTick(function(){t.call(null,e,r,i)});default:for(s=new Array(n-1),o=0;o<s.length;)s[o++]=arguments[o];return process.nextTick(function(){t.apply(null,s)})}}});var _d=g((l3,gd)=>{"use strict";var $x={}.toString;gd.exports=Array.isArray||function(t){return $x.call(t)=="[object Array]"}});var Va=g((u3,yd)=>{"use strict";yd.exports=D("stream")});var vi=g((Ya,bd)=>{"use strict";var ns=D("buffer"),pt=ns.Buffer;function md(t,e){for(var r in t)e[r]=t[r]}pt.from&&pt.alloc&&pt.allocUnsafe&&pt.allocUnsafeSlow?bd.exports=ns:(md(ns,Ya),Ya.Buffer=Tr);function Tr(t,e,r){return pt(t,e,r)}md(pt,Tr);Tr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return pt(t,e,r)};Tr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=pt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Tr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return pt(t)};Tr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ns.SlowBuffer(t)}});var Rr=g(ve=>{"use strict";function Hx(t){return Array.isArray?Array.isArray(t):ss(t)==="[object Array]"}ve.isArray=Hx;function Vx(t){return typeof t=="boolean"}ve.isBoolean=Vx;function Yx(t){return t===null}ve.isNull=Yx;function Kx(t){return t==null}ve.isNullOrUndefined=Kx;function Zx(t){return typeof t=="number"}ve.isNumber=Zx;function Qx(t){return typeof t=="string"}ve.isString=Qx;function Xx(t){return typeof t=="symbol"}ve.isSymbol=Xx;function Jx(t){return t===void 0}ve.isUndefined=Jx;function e1(t){return ss(t)==="[object RegExp]"}ve.isRegExp=e1;function t1(t){return typeof t=="object"&&t!==null}ve.isObject=t1;function r1(t){return ss(t)==="[object Date]"}ve.isDate=r1;function i1(t){return ss(t)==="[object Error]"||t instanceof Error}ve.isError=i1;function n1(t){return typeof t=="function"}ve.isFunction=n1;function s1(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}ve.isPrimitive=s1;ve.isBuffer=D("buffer").Buffer.isBuffer;function ss(t){return Object.prototype.toString.call(t)}});var wd=g((c3,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((h3,Qa)=>{"use strict";try{if(Za=D("util"),typeof Za.inherits!="function")throw"";Qa.exports=Za.inherits}catch{Qa.exports=wd()}var Za});var Ed=g((d3,Xa)=>{"use strict";function o1(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Sd=vi().Buffer,xi=D("util");function a1(t,e,r){t.copy(e,r)}Xa.exports=(function(){function t(){o1(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},t.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},t.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},t.prototype.concat=function(r){if(this.length===0)return Sd.alloc(0);for(var i=Sd.allocUnsafe(r>>>0),n=this.head,s=0;n;)a1(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((p3,vd)=>{"use strict";var os=Ei();function l1(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 u1(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function as(t,e){t.emit("error",e)}vd.exports={destroy:l1,undestroy:u1}});var Td=g((g3,xd)=>{"use strict";xd.exports=D("util").deprecate});var tl=g((_3,Nd)=>{"use strict";var Xt=Ei();Nd.exports=fe;function Ad(t){var e=this;this.next=null,this.entry=null,this.finish=function(){A1(e,t)}}var f1=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Xt.nextTick,Or;fe.WritableState=Ri;var Od=Object.create(Rr());Od.inherits=Ar();var c1={deprecate:Td()},Id=Va(),us=vi().Buffer,h1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function d1(t){return us.from(t)}function p1(t){return us.isBuffer(t)||t instanceof h1}var Dd=Ja();Od.inherits(fe,Id);function g1(){}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){E1(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ad(this)}Ri.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Ri.prototype,"buffer",{get:c1.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ls;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ls=Function.prototype[Symbol.hasInstance],Object.defineProperty(fe,Symbol.hasInstance,{value:function(t){return ls.call(this,t)?!0:this!==fe?!1:t&&t._writableState instanceof Ri}})):ls=function(t){return t instanceof this};function fe(t){if(Or=Or||Jt(),!ls.call(fe,this)&&!(this instanceof Or))return new fe(t);this._writableState=new Ri(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Id.call(this)}fe.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function _1(t,e){var r=new Error("write after end");t.emit("error",r),Xt.nextTick(e,r)}function y1(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&&p1(t);return s&&!us.isBuffer(t)&&(t=d1(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=g1),i.ended?_1(this,r):(s||y1(this,i,t,r))&&(i.pendingcb++,n=b1(this,i,s,t,e,r)),n};fe.prototype.cork=function(){var t=this._writableState;t.corked++};fe.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Pd(this,t))};fe.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this};function m1(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 b1(t,e,r,i,n,s){if(!r){var o=m1(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 w1(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 S1(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function E1(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(S1(r),e)w1(t,r,i,e,n);else{var s=Ld(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Pd(t,r),i?f1(Rd,t,r,s,n):Rd(t,r,s,n)}}function Rd(t,e,r,i){r||v1(t,e),e.pendingcb--,i(),Ti(t,e)}function v1(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Pd(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),s=e.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)n[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;n.allBuffers=a,el(t,e,!0,e.length,n,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new Ad(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,f=r.callback,c=e.objectMode?1:l.length;if(el(t,e,!1,c,l,u,f),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}fe.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))};fe.prototype._writev=null;fe.prototype.end=function(t,e,r){var i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||R1(this,i,r)};function Ld(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function x1(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),Ti(t,e)})}function T1(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,Xt.nextTick(x1,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Ti(t,e){var r=Ld(e);return r&&(T1(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}function R1(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 A1(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(fe.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});fe.prototype.destroy=Dd.destroy;fe.prototype._undestroy=Dd.undestroy;fe.prototype._destroy=function(t,e){this.end(),e(t)}});var Jt=g((y3,qd)=>{"use strict";var Cd=Ei(),O1=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};qd.exports=gt;var kd=Object.create(Rr());kd.inherits=Ar();var Md=nl(),il=tl();kd.inherits(gt,Md);for(rl=O1(il.prototype),fs=0;fs<rl.length;fs++)cs=rl[fs],gt.prototype[cs]||(gt.prototype[cs]=il.prototype[cs]);var rl,cs,fs;function gt(t){if(!(this instanceof gt))return new gt(t);Md.call(this,t),il.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",I1)}Object.defineProperty(gt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function I1(){this.allowHalfOpen||this._writableState.ended||Cd.nextTick(D1,this)}function D1(t){t.end()}Object.defineProperty(gt.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}});gt.prototype._destroy=function(t,e){this.push(null),this.end(),Cd.nextTick(e,t)}});var al=g(jd=>{"use strict";var ol=vi().Buffer,Fd=ol.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function P1(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 L1(t){var e=P1(t);if(typeof e!="string"&&(ol.isEncoding===Fd||!Fd(t)))throw new Error("Unknown encoding: "+t);return e||t}jd.StringDecoder=Ai;function Ai(t){this.encoding=L1(t);var e;switch(this.encoding){case"utf16le":this.text=F1,this.end=j1,e=4;break;case"utf8":this.fillLast=k1,e=4;break;case"base64":this.text=B1,this.end=U1,e=3;break;default:this.write=W1,this.end=G1;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=q1;Ai.prototype.text=M1;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 N1(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 C1(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 k1(t){var e=this.lastTotal-this.lastNeed,r=C1(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 M1(t,e){var r=N1(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 q1(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function F1(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 j1(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 B1(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 U1(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function W1(t){return t.toString(this.encoding)}function G1(t){return t&&t.length?this.write(t):""}});var nl=g((w3,Qd)=>{"use strict";var Dr=Ei();Qd.exports=Q;var z1=_d(),Oi;Q.ReadableState=Hd;var b3=D("events").EventEmitter,Gd=function(t,e){return t.listeners(e).length},hl=Va(),Ii=vi().Buffer,$1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function H1(t){return Ii.from(t)}function V1(t){return Ii.isBuffer(t)||t instanceof $1}var zd=Object.create(Rr());zd.inherits=Ar();var ll=D("util"),$=void 0;ll&&ll.debuglog?$=ll.debuglog("stream"):$=function(){};var Y1=Ed(),$d=Ja(),Ir;zd.inherits(Q,hl);var ul=["error","close","destroy","pause","resume"];function K1(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):z1(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Hd(t,e){Oi=Oi||Jt(),t=t||{};var r=e instanceof Oi;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,n=t.readableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Y1,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Ir||(Ir=al().StringDecoder),this.decoder=new Ir(t.encoding),this.encoding=t.encoding)}function Q(t){if(Oi=Oi||Jt(),!(this instanceof Q))return new Q(t);this._readableState=new Hd(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),hl.call(this)}Object.defineProperty(Q.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Q.prototype.destroy=$d.destroy;Q.prototype._undestroy=$d.undestroy;Q.prototype._destroy=function(t,e){this.push(null),e(t)};Q.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Ii.from(t,e),e=""),i=!0),Vd(this,t,e,!1,i)};Q.prototype.unshift=function(t){return Vd(this,t,null,!0,!1)};function Vd(t,e,r,i,n){var s=t._readableState;if(e===null)s.reading=!1,J1(t,s);else{var o;n||(o=Z1(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Ii.prototype&&(e=H1(e)),i?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):fl(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?fl(t,s,e,!1):Yd(t,s)):fl(t,s,e,!1))):i||(s.reading=!1)}return Q1(s)}function fl(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&hs(t)),Yd(t,e)}function Z1(t,e){var r;return!V1(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function Q1(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}Q.prototype.isPaused=function(){return this._readableState.flowing===!1};Q.prototype.setEncoding=function(t){return Ir||(Ir=al().StringDecoder),this._readableState.decoder=new Ir(t),this._readableState.encoding=t,this};var Bd=8388608;function X1(t){return t>=Bd?t=Bd:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Ud(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=X1(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}Q.prototype.read=function(t){$("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return $("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?cl(this):hs(this),null;if(t=Ud(t,e),t===0&&e.ended)return e.length===0&&cl(this),null;var i=e.needReadable;$("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,$("length less than watermark",i)),e.ended||e.reading?(i=!1,$("reading or ended",i)):i&&($("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Ud(r,e)));var n;return t>0?n=Kd(t,e):n=null,n===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&cl(this)),n!==null&&this.emit("data",n),n};function J1(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,hs(t)}}function hs(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||($("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Dr.nextTick(Wd,t):Wd(t))}function Wd(t){$("emit readable"),t.emit("readable"),dl(t)}function Yd(t,e){e.readingMore||(e.readingMore=!0,Dr.nextTick(eT,t,e))}function eT(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:S;i.endEmitted?Dr.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(m,b){$("onunpipe"),m===r&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,f())}function a(){$("onend"),t.end()}var l=tT(r);t.on("drain",l);var u=!1;function f(){$("cleanup"),t.removeListener("close",y),t.removeListener("finish",p),t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",S),r.removeListener("data",h),u=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}var c=!1;r.on("data",h);function h(m){$("ondata"),c=!1;var b=t.write(m);b===!1&&!c&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Zd(i.pipes,t)!==-1)&&!u&&($("false write response, pause",i.awaitDrain),i.awaitDrain++,c=!0),r.pause())}function d(m){$("onerror",m),S(),t.removeListener("error",d),Gd(t,"error")===0&&t.emit("error",m)}K1(t,"error",d);function y(){t.removeListener("finish",p),S()}t.once("close",y);function p(){$("onfinish"),t.removeListener("close",y),S()}t.once("finish",p);function S(){$("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||($("pipe resume"),r.resume()),t};function tT(t){return function(){var e=t._readableState;$("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&Gd(t,"data")&&(e.flowing=!0,dl(t))}}Q.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<n;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Zd(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};Q.prototype.on=function(t,e){var r=hl.prototype.on.call(this,t,e);if(t==="data")this._readableState.flowing!==!1&&this.resume();else if(t==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&hs(this):Dr.nextTick(rT,this))}return r};Q.prototype.addListener=Q.prototype.on;function rT(t){$("readable nexttick read 0"),t.read(0)}Q.prototype.resume=function(){var t=this._readableState;return t.flowing||($("resume"),t.flowing=!0,iT(this,t)),this};function iT(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Dr.nextTick(nT,t,e))}function nT(t,e){e.reading||($("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),dl(t),e.flowing&&!e.reading&&t.read(0)}Q.prototype.pause=function(){return $("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&($("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function dl(t){var e=t._readableState;for($("flow",e.flowing);e.flowing&&t.read()!==null;);}Q.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if($("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if($("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(o){return function(){return t[o].apply(t,arguments)}})(n));for(var s=0;s<ul.length;s++)t.on(ul[s],this.emit.bind(this,ul[s]));return this._read=function(o){$("wrapped _read",o),i&&(i=!1,t.resume())},this};Object.defineProperty(Q.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Q._fromList=Kd;function Kd(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.head.data:r=e.buffer.concat(e.length),e.buffer.clear()):r=sT(t,e.buffer,e.decoder),r}function sT(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?oT(t,e):aT(t,e),i}function oT(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 aT(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(lT,e,t))}function lT(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function Zd(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var pl=g((S3,ep)=>{"use strict";ep.exports=_t;var ds=Jt(),Jd=Object.create(Rr());Jd.inherits=Ar();Jd.inherits(_t,ds);function uT(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:uT.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",fT)}function fT(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){Xd(t,e,r)}):Xd(this,null,null)}_t.prototype.push=function(t,e){return this._transformState.needTransform=!1,ds.prototype.push.call(this,t,e)};_t.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")};_t.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};_t.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};_t.prototype._destroy=function(t,e){var r=this;ds.prototype._destroy.call(this,t,function(i){e(i),r.emit("close")})};function Xd(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}});var np=g((E3,ip)=>{"use strict";ip.exports=Di;var tp=pl(),rp=Object.create(Rr());rp.inherits=Ar();rp.inherits(Di,tp);function Di(t){if(!(this instanceof Di))return new Di(t);tp.call(this,t)}Di.prototype._transform=function(t,e,r){r(null,t)}});var sp=g((be,ps)=>{"use strict";var et=D("stream");process.env.READABLE_STREAM==="disable"&&et?(ps.exports=et,be=ps.exports=et.Readable,be.Readable=et.Readable,be.Writable=et.Writable,be.Duplex=et.Duplex,be.Transform=et.Transform,be.PassThrough=et.PassThrough,be.Stream=et):(be=ps.exports=nl(),be.Stream=et||be,be.Readable=be,be.Writable=tl(),be.Duplex=Jt(),be.Transform=pl(),be.PassThrough=np())});var ap=g((v3,op)=>{"use strict";op.exports=sp().PassThrough});var cp=g((x3,fp)=>{"use strict";var lp=D("util"),ys=ap();fp.exports={Readable:gs,Writable:_s};lp.inherits(gs,ys);lp.inherits(_s,ys);function up(t,e,r){t[e]=function(){return delete t[e],r.apply(this,arguments),this[e].apply(this,arguments)}}function gs(t,e){if(!(this instanceof gs))return new gs(t,e);ys.call(this,e),up(this,"_read",function(){var r=t.call(this,e),i=this.emit.bind(this,"error");r.on("error",i),r.pipe(this)}),this.emit("readable")}function _s(t,e){if(!(this instanceof _s))return new _s(t,e);ys.call(this,e),up(this,"_write",function(){var r=t.call(this,e),i=this.emit.bind(this,"error");r.on("error",i),this.pipe(r)}),this.emit("writable")}});var gl=g((T3,hp)=>{"use strict";hp.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var i="";if(r>4&&t[3]==="\\"){var n=t[2];(n==="?"||n===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),i="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),i+s.join("/")}});var _l=g((R3,dp)=>{"use strict";function cT(t){return t}dp.exports=cT});var gp=g((A3,pp)=>{"use strict";function hT(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}pp.exports=hT});var mp=g((O3,yp)=>{"use strict";var dT=gp(),_p=Math.max;function pT(t,e,r){return e=_p(e===void 0?t.length-1:e,0),function(){for(var i=arguments,n=-1,s=_p(i.length-e,0),o=Array(s);++n<s;)o[n]=i[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=i[n];return a[e]=r(o),dT(t,this,a)}}yp.exports=pT});var wp=g((I3,bp)=>{"use strict";function gT(t){return function(){return t}}bp.exports=gT});var yl=g((D3,Sp)=>{"use strict";var _T=typeof global=="object"&&global&&global.Object===Object&&global;Sp.exports=_T});var Pr=g((P3,Ep)=>{"use strict";var yT=yl(),mT=typeof self=="object"&&self&&self.Object===Object&&self,bT=yT||mT||Function("return this")();Ep.exports=bT});var ms=g((L3,vp)=>{"use strict";var wT=Pr(),ST=wT.Symbol;vp.exports=ST});var Ap=g((N3,Rp)=>{"use strict";var xp=ms(),Tp=Object.prototype,ET=Tp.hasOwnProperty,vT=Tp.toString,Pi=xp?xp.toStringTag:void 0;function xT(t){var e=ET.call(t,Pi),r=t[Pi];try{t[Pi]=void 0;var i=!0}catch{}var n=vT.call(t);return i&&(e?t[Pi]=r:delete t[Pi]),n}Rp.exports=xT});var Ip=g((C3,Op)=>{"use strict";var TT=Object.prototype,RT=TT.toString;function AT(t){return RT.call(t)}Op.exports=AT});var Li=g((k3,Lp)=>{"use strict";var Dp=ms(),OT=Ap(),IT=Ip(),DT="[object Null]",PT="[object Undefined]",Pp=Dp?Dp.toStringTag:void 0;function LT(t){return t==null?t===void 0?PT:DT:Pp&&Pp in Object(t)?OT(t):IT(t)}Lp.exports=LT});var Ni=g((M3,Np)=>{"use strict";function NT(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}Np.exports=NT});var ml=g((q3,Cp)=>{"use strict";var CT=Li(),kT=Ni(),MT="[object AsyncFunction]",qT="[object Function]",FT="[object GeneratorFunction]",jT="[object Proxy]";function BT(t){if(!kT(t))return!1;var e=CT(t);return e==qT||e==FT||e==MT||e==jT}Cp.exports=BT});var Mp=g((F3,kp)=>{"use strict";var UT=Pr(),WT=UT["__core-js_shared__"];kp.exports=WT});var jp=g((j3,Fp)=>{"use strict";var bl=Mp(),qp=(function(){var t=/[^.]+$/.exec(bl&&bl.keys&&bl.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function GT(t){return!!qp&&qp in t}Fp.exports=GT});var Up=g((B3,Bp)=>{"use strict";var zT=Function.prototype,$T=zT.toString;function HT(t){if(t!=null){try{return $T.call(t)}catch{}try{return t+""}catch{}}return""}Bp.exports=HT});var Gp=g((U3,Wp)=>{"use strict";var VT=ml(),YT=jp(),KT=Ni(),ZT=Up(),QT=/[\\^$.*+?()[\]{}|]/g,XT=/^\[object .+?Constructor\]$/,JT=Function.prototype,eR=Object.prototype,tR=JT.toString,rR=eR.hasOwnProperty,iR=RegExp("^"+tR.call(rR).replace(QT,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function nR(t){if(!KT(t)||YT(t))return!1;var e=VT(t)?iR:XT;return e.test(ZT(t))}Wp.exports=nR});var $p=g((W3,zp)=>{"use strict";function sR(t,e){return t?.[e]}zp.exports=sR});var Ci=g((G3,Hp)=>{"use strict";var oR=Gp(),aR=$p();function lR(t,e){var r=aR(t,e);return oR(r)?r:void 0}Hp.exports=lR});var Yp=g((z3,Vp)=>{"use strict";var uR=Ci(),fR=(function(){try{var t=uR(Object,"defineProperty");return t({},"",{}),t}catch{}})();Vp.exports=fR});var Qp=g(($3,Zp)=>{"use strict";var cR=wp(),Kp=Yp(),hR=_l(),dR=Kp?function(t,e){return Kp(t,"toString",{configurable:!0,enumerable:!1,value:cR(e),writable:!0})}:hR;Zp.exports=dR});var Jp=g((H3,Xp)=>{"use strict";var pR=800,gR=16,_R=Date.now;function yR(t){var e=0,r=0;return function(){var i=_R(),n=gR-(i-r);if(r=i,n>0){if(++e>=pR)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}Xp.exports=yR});var tg=g((V3,eg)=>{"use strict";var mR=Qp(),bR=Jp(),wR=bR(mR);eg.exports=wR});var bs=g((Y3,rg)=>{"use strict";var SR=_l(),ER=mp(),vR=tg();function xR(t,e){return vR(ER(t,e,SR),t+"")}rg.exports=xR});var ws=g((K3,ig)=>{"use strict";function TR(t,e){return t===e||t!==t&&e!==e}ig.exports=TR});var wl=g((Z3,ng)=>{"use strict";var RR=9007199254740991;function AR(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=RR}ng.exports=AR});var Ss=g((Q3,sg)=>{"use strict";var OR=ml(),IR=wl();function DR(t){return t!=null&&IR(t.length)&&!OR(t)}sg.exports=DR});var Sl=g((X3,og)=>{"use strict";var PR=9007199254740991,LR=/^(?:0|[1-9]\d*)$/;function NR(t,e){var r=typeof t;return e=e??PR,!!e&&(r=="number"||r!="symbol"&&LR.test(t))&&t>-1&&t%1==0&&t<e}og.exports=NR});var lg=g((J3,ag)=>{"use strict";var CR=ws(),kR=Ss(),MR=Sl(),qR=Ni();function FR(t,e,r){if(!qR(r))return!1;var i=typeof e;return(i=="number"?kR(r)&&MR(e,r.length):i=="string"&&e in r)?CR(r[e],t):!1}ag.exports=FR});var fg=g((e4,ug)=>{"use strict";function jR(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}ug.exports=jR});var Lr=g((t4,cg)=>{"use strict";function BR(t){return t!=null&&typeof t=="object"}cg.exports=BR});var dg=g((r4,hg)=>{"use strict";var UR=Li(),WR=Lr(),GR="[object Arguments]";function zR(t){return WR(t)&&UR(t)==GR}hg.exports=zR});var El=g((i4,_g)=>{"use strict";var pg=dg(),$R=Lr(),gg=Object.prototype,HR=gg.hasOwnProperty,VR=gg.propertyIsEnumerable,YR=pg((function(){return arguments})())?pg:function(t){return $R(t)&&HR.call(t,"callee")&&!VR.call(t,"callee")};_g.exports=YR});var vl=g((n4,yg)=>{"use strict";var KR=Array.isArray;yg.exports=KR});var bg=g((s4,mg)=>{"use strict";function ZR(){return!1}mg.exports=ZR});var vg=g((ki,Nr)=>{"use strict";var QR=Pr(),XR=bg(),Eg=typeof ki=="object"&&ki&&!ki.nodeType&&ki,wg=Eg&&typeof Nr=="object"&&Nr&&!Nr.nodeType&&Nr,JR=wg&&wg.exports===Eg,Sg=JR?QR.Buffer:void 0,eA=Sg?Sg.isBuffer:void 0,tA=eA||XR;Nr.exports=tA});var Tg=g((o4,xg)=>{"use strict";var rA=Li(),iA=wl(),nA=Lr(),sA="[object Arguments]",oA="[object Array]",aA="[object Boolean]",lA="[object Date]",uA="[object Error]",fA="[object Function]",cA="[object Map]",hA="[object Number]",dA="[object Object]",pA="[object RegExp]",gA="[object Set]",_A="[object String]",yA="[object WeakMap]",mA="[object ArrayBuffer]",bA="[object DataView]",wA="[object Float32Array]",SA="[object Float64Array]",EA="[object Int8Array]",vA="[object Int16Array]",xA="[object Int32Array]",TA="[object Uint8Array]",RA="[object Uint8ClampedArray]",AA="[object Uint16Array]",OA="[object Uint32Array]",X={};X[wA]=X[SA]=X[EA]=X[vA]=X[xA]=X[TA]=X[RA]=X[AA]=X[OA]=!0;X[sA]=X[oA]=X[mA]=X[aA]=X[bA]=X[lA]=X[uA]=X[fA]=X[cA]=X[hA]=X[dA]=X[pA]=X[gA]=X[_A]=X[yA]=!1;function IA(t){return nA(t)&&iA(t.length)&&!!X[rA(t)]}xg.exports=IA});var xl=g((a4,Rg)=>{"use strict";function DA(t){return function(e){return t(e)}}Rg.exports=DA});var Og=g((Mi,Cr)=>{"use strict";var PA=yl(),Ag=typeof Mi=="object"&&Mi&&!Mi.nodeType&&Mi,qi=Ag&&typeof Cr=="object"&&Cr&&!Cr.nodeType&&Cr,LA=qi&&qi.exports===Ag,Tl=LA&&PA.process,NA=(function(){try{var t=qi&&qi.require&&qi.require("util").types;return t||Tl&&Tl.binding&&Tl.binding("util")}catch{}})();Cr.exports=NA});var Lg=g((l4,Pg)=>{"use strict";var CA=Tg(),kA=xl(),Ig=Og(),Dg=Ig&&Ig.isTypedArray,MA=Dg?kA(Dg):CA;Pg.exports=MA});var Cg=g((u4,Ng)=>{"use strict";var qA=fg(),FA=El(),jA=vl(),BA=vg(),UA=Sl(),WA=Lg(),GA=Object.prototype,zA=GA.hasOwnProperty;function $A(t,e){var r=jA(t),i=!r&&FA(t),n=!r&&!i&&BA(t),s=!r&&!i&&!n&&WA(t),o=r||i||n||s,a=o?qA(t.length,String):[],l=a.length;for(var u in t)(e||zA.call(t,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||UA(u,l)))&&a.push(u);return a}Ng.exports=$A});var Mg=g((f4,kg)=>{"use strict";var HA=Object.prototype;function VA(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||HA;return t===r}kg.exports=VA});var Fg=g((c4,qg)=>{"use strict";function YA(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}qg.exports=YA});var Bg=g((h4,jg)=>{"use strict";var KA=Ni(),ZA=Mg(),QA=Fg(),XA=Object.prototype,JA=XA.hasOwnProperty;function eO(t){if(!KA(t))return QA(t);var e=ZA(t),r=[];for(var i in t)i=="constructor"&&(e||!JA.call(t,i))||r.push(i);return r}jg.exports=eO});var Wg=g((d4,Ug)=>{"use strict";var tO=Cg(),rO=Bg(),iO=Ss();function nO(t){return iO(t)?tO(t,!0):rO(t)}Ug.exports=nO});var $g=g((p4,zg)=>{"use strict";var sO=bs(),oO=ws(),aO=lg(),lO=Wg(),Gg=Object.prototype,uO=Gg.hasOwnProperty,fO=sO(function(t,e){t=Object(t);var r=-1,i=e.length,n=i>2?e[2]:void 0;for(n&&aO(e[0],e[1],n)&&(i=1);++r<i;)for(var s=e[r],o=lO(s),a=-1,l=o.length;++a<l;){var u=o[a],f=t[u];(f===void 0||oO(f,Gg[u])&&!uO.call(t,u))&&(t[u]=s[u])}return t});zg.exports=fO});var ie=g((g4,Hg)=>{"use strict";var Rl=class extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let r="";for(let i=0;i<e.length;i++)r+=` ${e[i].stack}
8
- `;super(r),this.name="AggregateError",this.errors=e}};Hg.exports={AggregateError:Rl,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var Al=g((_4,Vg)=>{"use strict";Vg.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let n=e.shift();return i==="f"?n.toFixed(6):i==="j"?JSON.stringify(n):i==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var xe=g((y4,Zg)=>{"use strict";var{format:cO,inspect:Es}=Al(),{AggregateError:hO}=ie(),dO=globalThis.AggregateError||hO,pO=Symbol("kIsNodeError"),gO=["string","function","number","object","Function","Object","boolean","bigint","symbol"],_O=/^([A-Z][a-z0-9]*)+$/,yO="__node_internal_",vs={};function er(t,e){if(!t)throw new vs.ERR_INTERNAL_ASSERTION(e)}function Yg(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function mO(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:cO(e,...r)}function we(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(mO(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[pO]=!0,vs[t]=i}function Kg(t){let e=yO+t.name;return Object.defineProperty(t,"name",{value:e}),t}function bO(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new dO([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"),gO.includes(l)?n.push(l.toLowerCase()):_O.test(l)?s.push(l):(er(l!=="object",'The value "object" should be written as "Object"'),o.push(l));if(s.length>0){let l=n.indexOf("object");l!==-1&&(n.splice(n,l,1),s.push("Object"))}if(n.length>0){switch(n.length){case 1:i+=`of type ${n[0]}`;break;case 2:i+=`one of type ${n[0]} or ${n[1]}`;break;default:{let l=n.pop();i+=`one of type ${n.join(", ")}, or ${l}`}}(s.length>0||o.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();i+=`an instance of ${s.join(", ")}, or ${l}`}}o.length>0&&(i+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(i+="an "),i+=`${o[0]}`;break;case 2:i+=`one of ${o[0]} or ${o[1]}`;break;default:{let l=o.pop();i+=`one of ${o.join(", ")}, or ${l}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)i+=`. Received an instance of ${r.constructor.name}`;else{let l=Es(r,{depth:-1});i+=`. Received ${l}`}}else{let l=Es(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),i+=`. Received type ${typeof r} (${l})`}return i},TypeError);we("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let i=Es(e);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${i}`},TypeError);we("ERR_INVALID_RETURN_VALUE",(t,e,r)=>{var i;let n=r!=null&&(i=r.constructor)!==null&&i!==void 0&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the "${e}" function but got ${n}.`},TypeError);we("ERR_MISSING_ARGS",(...t)=>{er(t.length>0,"At least one arg needs to be specified");let e,r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(i=>`"${i}"`).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{let i=t.pop();e+=`The ${t.join(", ")}, and ${i} arguments`}break}return`${e} must be specified`},TypeError);we("ERR_OUT_OF_RANGE",(t,e,r)=>{er(e,'Missing "range" argument');let i;if(Number.isInteger(r)&&Math.abs(r)>2**32)i=Yg(String(r));else if(typeof r=="bigint"){i=String(r);let n=BigInt(2)**BigInt(32);(r>n||r<-n)&&(i=Yg(i)),i+="n"}else i=Es(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${i}`},RangeError);we("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);we("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);we("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);we("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);we("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);we("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);we("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);we("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);we("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);we("ERR_STREAM_WRITE_AFTER_END","write after end",Error);we("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);Zg.exports={AbortError:Ol,aggregateTwoErrors:Kg(bO),hideStackFrames:Kg,codes:vs}});var o_=g((Bi,ji)=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});var r_=new WeakMap,Il=new WeakMap;function J(t){let e=r_.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}function Qg(t){if(t.passiveListener!=null){typeof console<"u"&&typeof console.error=="function"&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener);return}t.event.cancelable&&(t.canceled=!0,typeof t.event.preventDefault=="function"&&t.event.preventDefault())}function kr(t,e){r_.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:e.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let r=Object.keys(e);for(let i=0;i<r.length;++i){let n=r[i];n in this||Object.defineProperty(this,n,i_(n))}}kr.prototype={get type(){return J(this).event.type},get target(){return J(this).eventTarget},get currentTarget(){return J(this).currentTarget},composedPath(){let t=J(this).currentTarget;return t==null?[]:[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return J(this).eventPhase},stopPropagation(){let t=J(this);t.stopped=!0,typeof t.event.stopPropagation=="function"&&t.event.stopPropagation()},stopImmediatePropagation(){let t=J(this);t.stopped=!0,t.immediateStopped=!0,typeof t.event.stopImmediatePropagation=="function"&&t.event.stopImmediatePropagation()},get bubbles(){return!!J(this).event.bubbles},get cancelable(){return!!J(this).event.cancelable},preventDefault(){Qg(J(this))},get defaultPrevented(){return J(this).canceled},get composed(){return!!J(this).event.composed},get timeStamp(){return J(this).timeStamp},get srcElement(){return J(this).eventTarget},get cancelBubble(){return J(this).stopped},set cancelBubble(t){if(!t)return;let e=J(this);e.stopped=!0,typeof e.event.cancelBubble=="boolean"&&(e.event.cancelBubble=!0)},get returnValue(){return!J(this).canceled},set returnValue(t){t||Qg(J(this))},initEvent(){}};Object.defineProperty(kr.prototype,"constructor",{value:kr,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(kr.prototype,window.Event.prototype),Il.set(window.Event.prototype,kr));function i_(t){return{get(){return J(this).event[t]},set(e){J(this).event[t]=e},configurable:!0,enumerable:!0}}function wO(t){return{value(){let e=J(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function SO(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?wO(s):i_(s))}}return i}function n_(t){if(t==null||t===Object.prototype)return kr;let e=Il.get(t);return e==null&&(e=SO(n_(Object.getPrototypeOf(t)),t),Il.set(t,e)),e}function EO(t,e){let r=n_(Object.getPrototypeOf(e));return new r(t,e)}function vO(t){return J(t).immediateStopped}function xO(t,e){J(t).eventPhase=e}function TO(t,e){J(t).currentTarget=e}function Xg(t,e){J(t).passiveListener=e}var s_=new WeakMap,Jg=1,e_=2,xs=3;function Ts(t){return t!==null&&typeof t=="object"}function Fi(t){let e=s_.get(t);if(e==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function RO(t){return{get(){let r=Fi(this).get(t);for(;r!=null;){if(r.listenerType===xs)return r.listener;r=r.next}return null},set(e){typeof e!="function"&&!Ts(e)&&(e=null);let r=Fi(this),i=null,n=r.get(t);for(;n!=null;)n.listenerType===xs?i!==null?i.next=n.next:n.next!==null?r.set(t,n.next):r.delete(t):i=n,n=n.next;if(e!==null){let s={listener:e,listenerType:xs,passive:!1,once:!1,next:null};i===null?r.set(t,s):i.next=s}},configurable:!0,enumerable:!0}}function Dl(t,e){Object.defineProperty(t,`on${e}`,RO(e))}function t_(t){function e(){He.call(this)}e.prototype=Object.create(He.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(let r=0;r<t.length;++r)Dl(e.prototype,t[r]);return e}function He(){if(this instanceof He){s_.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return t_(arguments[0]);if(arguments.length>0){let t=new Array(arguments.length);for(let e=0;e<arguments.length;++e)t[e]=arguments[e];return t_(t)}throw new TypeError("Cannot call a class as a function")}He.prototype={addEventListener(t,e,r){if(e==null)return;if(typeof e!="function"&&!Ts(e))throw new TypeError("'listener' should be a function or an object.");let i=Fi(this),n=Ts(r),o=(n?!!r.capture:!!r)?Jg:e_,a={listener:e,listenerType:o,passive:n&&!!r.passive,once:n&&!!r.once,next:null},l=i.get(t);if(l===void 0){i.set(t,a);return}let u=null;for(;l!=null;){if(l.listener===e&&l.listenerType===o)return;u=l,l=l.next}u.next=a},removeEventListener(t,e,r){if(e==null)return;let i=Fi(this),s=(Ts(r)?!!r.capture:!!r)?Jg:e_,o=null,a=i.get(t);for(;a!=null;){if(a.listener===e&&a.listenerType===s){o!==null?o.next=a.next:a.next!==null?i.set(t,a.next):i.delete(t);return}o=a,a=a.next}},dispatchEvent(t){if(t==null||typeof t.type!="string")throw new TypeError('"event.type" should be a string.');let e=Fi(this),r=t.type,i=e.get(r);if(i==null)return!0;let n=EO(this,t),s=null;for(;i!=null;){if(i.once?s!==null?s.next=i.next:i.next!==null?e.set(r,i.next):e.delete(r):s=i,Xg(n,i.passive?i.listener:null),typeof i.listener=="function")try{i.listener.call(this,n)}catch(o){typeof console<"u"&&typeof console.error=="function"&&console.error(o)}else i.listenerType!==xs&&typeof i.listener.handleEvent=="function"&&i.listener.handleEvent(n);if(vO(n))break;i=i.next}return Xg(n,null),xO(n,0),TO(n,null),!n.defaultPrevented}};Object.defineProperty(He.prototype,"constructor",{value:He,configurable:!0,writable:!0});typeof window<"u"&&typeof window.EventTarget<"u"&&Object.setPrototypeOf(He.prototype,window.EventTarget.prototype);Bi.defineEventAttribute=Dl;Bi.EventTarget=He;Bi.default=He;ji.exports=He;ji.exports.EventTarget=ji.exports.default=He;ji.exports.defineEventAttribute=Dl});var Mr=g((Wi,Ui)=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});var Pl=o_(),Pt=class extends Pl.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=Rs.get(this);if(typeof e!="boolean")throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return e}};Pl.defineEventAttribute(Pt.prototype,"abort");function AO(){let t=Object.create(Pt.prototype);return Pl.EventTarget.call(t),Rs.set(t,!1),t}function OO(t){Rs.get(t)===!1&&(Rs.set(t,!0),t.dispatchEvent({type:"abort"}))}var Rs=new WeakMap;Object.defineProperties(Pt.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Pt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var Lt=class{constructor(){l_.set(this,AO())}get signal(){return a_(this)}abort(){OO(a_(this))}},l_=new WeakMap;function a_(t){let e=l_.get(t);if(e==null)throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${t===null?"null":typeof t}`);return e}Object.defineProperties(Lt.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Lt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Wi.AbortController=Lt;Wi.AbortSignal=Pt;Wi.default=Lt;Ui.exports=Lt;Ui.exports.AbortController=Ui.exports.default=Lt;Ui.exports.AbortSignal=Pt});var Oe=g((m4,Nl)=>{"use strict";var IO=D("buffer"),{format:DO,inspect:PO}=Al(),{codes:{ERR_INVALID_ARG_TYPE:Ll}}=xe(),{kResistStopPropagation:LO,AggregateError:NO,SymbolDispose:CO}=ie(),kO=globalThis.AbortSignal||Mr().AbortSignal,MO=globalThis.AbortController||Mr().AbortController,qO=Object.getPrototypeOf(async function(){}).constructor,u_=globalThis.Blob||IO.Blob,FO=typeof u_<"u"?function(e){return e instanceof u_}:function(e){return!1},f_=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Ll(e,"AbortSignal",t)},jO=(t,e)=>{if(typeof t!="function")throw new Ll(e,"Function",t)};Nl.exports={AggregateError:NO,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:DO,inspect:PO,types:{isAsyncFunction(t){return t instanceof qO},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:FO,deprecate(t,e){return t},addAbortListener:D("events").addAbortListener||function(e,r){if(e===void 0)throw new Ll("signal","AbortSignal",e);f_(e,"signal"),jO(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[LO]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[CO](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:kO.any||function(e){if(e.length===1)return e[0];let r=new MO,i=()=>r.abort();return e.forEach(n=>{f_(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};Nl.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var Fr=g((b4,w_)=>{"use strict";var{ArrayIsArray:kl,ArrayPrototypeIncludes:p_,ArrayPrototypeJoin:g_,ArrayPrototypeMap:BO,NumberIsInteger:Ml,NumberIsNaN:UO,NumberMAX_SAFE_INTEGER:WO,NumberMIN_SAFE_INTEGER:GO,NumberParseInt:zO,ObjectPrototypeHasOwnProperty:$O,RegExpPrototypeExec:__,String:HO,StringPrototypeToUpperCase:VO,StringPrototypeTrim:YO}=ie(),{hideStackFrames:je,codes:{ERR_SOCKET_BAD_PORT:KO,ERR_INVALID_ARG_TYPE:Te,ERR_INVALID_ARG_VALUE:qr,ERR_OUT_OF_RANGE:tr,ERR_UNKNOWN_SIGNAL:c_}}=xe(),{normalizeEncoding:ZO}=Oe(),{isAsyncFunction:QO,isArrayBufferView:XO}=Oe().types,h_={};function JO(t){return t===(t|0)}function eI(t){return t===t>>>0}var tI=/^[0-7]+$/,rI="must be a 32-bit unsigned integer or an octal string";function iI(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(__(tI,t)===null)throw new qr(e,t,rI);t=zO(t,8)}return y_(t,e),t}var nI=je((t,e,r=GO,i=WO)=>{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)}),sI=je((t,e,r=-2147483648,i=2147483647)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Ml(t))throw new tr(e,"an integer",t);if(t<r||t>i)throw new tr(e,`>= ${r} && <= ${i}`,t)}),y_=je((t,e,r=!1)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Ml(t))throw new tr(e,"an integer",t);let i=r?1:0,n=4294967295;if(t<i||t>n)throw new tr(e,`>= ${i} && <= ${n}`,t)});function ql(t,e){if(typeof t!="string")throw new Te(e,"string",t)}function oI(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)&&UO(t))throw new tr(e,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,t)}var aI=je((t,e,r)=>{if(!p_(r,t)){let n="must be one of: "+g_(BO(r,s=>typeof s=="string"?`'${s}'`:HO(s)),", ");throw new qr(e,t,n)}});function m_(t,e){if(typeof t!="boolean")throw new Te(e,"boolean",t)}function Cl(t,e,r){return t==null||!$O(t,e)?r:t[e]}var lI=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)}),uI=je((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new Te(e,"a dictionary",t)}),As=je((t,e,r=0)=>{if(!kl(t))throw new Te(e,"Array",t);if(t.length<r){let i=`must be longer than ${r}`;throw new qr(e,t,i)}});function fI(t,e){As(t,e);for(let r=0;r<t.length;r++)ql(t[r],`${e}[${r}]`)}function cI(t,e){As(t,e);for(let r=0;r<t.length;r++)m_(t[r],`${e}[${r}]`)}function hI(t,e){As(t,e);for(let r=0;r<t.length;r++){let i=t[r],n=`${e}[${r}]`;if(i==null)throw new Te(n,"AbortSignal",i);b_(i,n)}}function dI(t,e="signal"){if(ql(t,e),h_[t]===void 0)throw h_[VO(t)]!==void 0?new c_(t+" (signals must use all capital letters)"):new c_(t)}var pI=je((t,e="buffer")=>{if(!XO(t))throw new Te(e,["Buffer","TypedArray","DataView"],t)});function gI(t,e){let r=ZO(e),i=t.length;if(r==="hex"&&i%2!==0)throw new qr("encoding",e,`is invalid for data of length ${i}`)}function _I(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&YO(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new KO(e,t,r);return t|0}var b_=je((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Te(e,"AbortSignal",t)}),yI=je((t,e)=>{if(typeof t!="function")throw new Te(e,"Function",t)}),mI=je((t,e)=>{if(typeof t!="function"||QO(t))throw new Te(e,"Function",t)}),bI=je((t,e)=>{if(t!==void 0)throw new Te(e,"undefined",t)});function wI(t,e,r){if(!p_(r,t))throw new Te(e,`('${g_(r,"|")}')`,t)}var SI=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function d_(t,e){if(typeof t>"u"||!__(SI,t))throw new qr(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function EI(t){if(typeof t=="string")return d_(t,"hints"),t;if(kl(t)){let e=t.length,r="";if(e===0)return r;for(let i=0;i<e;i++){let n=t[i];d_(n,"hints"),r+=n,i!==e-1&&(r+=", ")}return r}throw new qr("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}w_.exports={isInt32:JO,isUint32:eI,parseFileMode:iI,validateArray:As,validateStringArray:fI,validateBooleanArray:cI,validateAbortSignalArray:hI,validateBoolean:m_,validateBuffer:pI,validateDictionary:uI,validateEncoding:gI,validateFunction:yI,validateInt32:sI,validateInteger:nI,validateNumber:oI,validateObject:lI,validateOneOf:aI,validatePlainFunction:mI,validatePort:_I,validateSignalName:dI,validateString:ql,validateUint32:y_,validateUndefined:bI,validateUnion:wI,validateAbortSignal:b_,validateLinkHeaderValue:EI}});var Nt=g((w4,S_)=>{"use strict";S_.exports=global.process});var rt=g((S4,M_)=>{"use strict";var{SymbolAsyncIterator:E_,SymbolIterator:v_,SymbolFor:rr}=ie(),x_=rr("nodejs.stream.destroyed"),T_=rr("nodejs.stream.errored"),Fl=rr("nodejs.stream.readable"),jl=rr("nodejs.stream.writable"),R_=rr("nodejs.stream.disturbed"),vI=rr("nodejs.webstream.isClosedPromise"),xI=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 TI(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}function tt(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function A_(t){return!!(t&&!tt(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function O_(t){return!!(t&&!tt(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function I_(t){return!!(t&&!tt(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function RI(t){return A_(t)||O_(t)||I_(t)}function AI(t,e){return t==null?!1:e===!0?typeof t[E_]=="function":e===!1?typeof t[v_]=="function":typeof t[E_]=="function"||typeof t[v_]=="function"}function Ds(t){if(!tt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!!(t.destroyed||t[x_]||i!=null&&i.destroyed)}function D_(t){if(!Is(t))return null;if(t.writableEnded===!0)return!0;let e=t._writableState;return e!=null&&e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function OI(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 II(t){if(!Os(t))return null;if(t.readableEnded===!0)return!0;let e=t._readableState;return!e||e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function P_(t,e){if(!Os(t))return null;let r=t._readableState;return r!=null&&r.errored?!1:typeof r?.endEmitted!="boolean"?null:!!(r.endEmitted||e===!1&&r.ended===!0&&r.length===0)}function L_(t){return t&&t[Fl]!=null?t[Fl]:typeof t?.readable!="boolean"?null:Ds(t)?!1:Os(t)&&t.readable&&!P_(t)}function N_(t){return t&&t[jl]!=null?t[jl]:typeof t?.writable!="boolean"?null:Ds(t)?!1:Is(t)&&t.writable&&!D_(t)}function DI(t,e){return tt(t)?Ds(t)?!0:!(e?.readable!==!1&&L_(t)||e?.writable!==!1&&N_(t)):null}function PI(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 LI(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 NI(t){if(!tt(t))return null;if(typeof t.closed=="boolean")return t.closed;let e=t._writableState,r=t._readableState;return typeof e?.closed=="boolean"||typeof r?.closed=="boolean"?e?.closed||r?.closed:typeof t._closed=="boolean"&&C_(t)?t._closed:null}function C_(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function k_(t){return typeof t._sent100=="boolean"&&C_(t)}function CI(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 kI(t){if(!tt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!i&&k_(t)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function MI(t){var e;return!!(t&&((e=t[R_])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function qI(t){var e,r,i,n,s,o,a,l,u,f;return!!(t&&((e=(r=(i=(n=(s=(o=t[T_])!==null&&o!==void 0?o:t.readableErrored)!==null&&s!==void 0?s:t.writableErrored)!==null&&n!==void 0?n:(a=t._readableState)===null||a===void 0?void 0:a.errorEmitted)!==null&&i!==void 0?i:(l=t._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&r!==void 0?r:(u=t._readableState)===null||u===void 0?void 0:u.errored)!==null&&e!==void 0?e:!((f=t._writableState)===null||f===void 0)&&f.errored))}M_.exports={isDestroyed:Ds,kIsDestroyed:x_,isDisturbed:MI,kIsDisturbed:R_,isErrored:qI,kIsErrored:T_,isReadable:L_,kIsReadable:Fl,kIsClosedPromise:vI,kControllerErrorFunction:xI,kIsWritable:jl,isClosed:NI,isDuplexNodeStream:TI,isFinished:DI,isIterable:AI,isReadableNodeStream:Os,isReadableStream:A_,isReadableEnded:II,isReadableFinished:P_,isReadableErrored:LI,isNodeStream:tt,isWebStream:RI,isWritable:N_,isWritableNodeStream:Is,isWritableStream:O_,isWritableEnded:D_,isWritableFinished:OI,isWritableErrored:PI,isServerRequest:CI,isServerResponse:k_,willEmitClose:kI,isTransformStream:I_}});var yt=g((E4,zl)=>{"use strict";var Ct=Nt(),{AbortError:$_,codes:FI}=xe(),{ERR_INVALID_ARG_TYPE:jI,ERR_STREAM_PREMATURE_CLOSE:q_}=FI,{kEmptyObject:Ul,once:Wl}=Oe(),{validateAbortSignal:BI,validateFunction:UI,validateObject:WI,validateBoolean:GI}=Fr(),{Promise:zI,PromisePrototypeThen:$I,SymbolDispose:H_}=ie(),{isClosed:HI,isReadable:F_,isReadableNodeStream:Bl,isReadableStream:VI,isReadableFinished:j_,isReadableErrored:B_,isWritable:U_,isWritableNodeStream:W_,isWritableStream:YI,isWritableFinished:G_,isWritableErrored:z_,isNodeStream:KI,willEmitClose:ZI,kIsClosedPromise:QI}=rt(),jr;function XI(t){return t.setHeader&&typeof t.abort=="function"}var Gl=()=>{};function V_(t,e,r){var i,n;if(arguments.length===2?(r=e,e=Ul):e==null?e=Ul:WI(e,"options"),UI(r,"callback"),BI(e.signal,"options.signal"),r=Wl(r),VI(t)||YI(t))return JI(t,e,r);if(!KI(t))throw new jI("stream",["ReadableStream","WritableStream","Stream"],t);let s=(i=e.readable)!==null&&i!==void 0?i:Bl(t),o=(n=e.writable)!==null&&n!==void 0?n:W_(t),a=t._writableState,l=t._readableState,u=()=>{t.writable||h()},f=ZI(t)&&Bl(t)===s&&W_(t)===o,c=G_(t,!1),h=()=>{c=!0,t.destroyed&&(f=!1),!(f&&(!t.readable||s))&&(!s||d)&&r.call(t)},d=j_(t,!1),y=()=>{d=!0,t.destroyed&&(f=!1),!(f&&(!t.writable||o))&&(!o||c)&&r.call(t)},p=T=>{r.call(t,T)},S=HI(t),m=()=>{S=!0;let T=z_(t)||B_(t);if(T&&typeof T!="boolean")return r.call(t,T);if(s&&!d&&Bl(t,!0)&&!j_(t,!1))return r.call(t,new q_);if(o&&!c&&!G_(t,!1))return r.call(t,new q_);r.call(t)},b=()=>{S=!0;let T=z_(t)||B_(t);if(T&&typeof T!="boolean")return r.call(t,T);r.call(t)},v=()=>{t.req.on("finish",h)};XI(t)?(t.on("complete",h),f||t.on("abort",m),t.req?v():t.on("request",v)):o&&!a&&(t.on("end",u),t.on("close",u)),!f&&typeof t.aborted=="boolean"&&t.on("aborted",m),t.on("end",y),t.on("finish",h),e.error!==!1&&t.on("error",p),t.on("close",m),S?Ct.nextTick(m):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?f||Ct.nextTick(b):(!s&&(!f||F_(t))&&(c||U_(t)===!1)||!o&&(!f||U_(t))&&(d||F_(t)===!1)||l&&t.req&&t.aborted)&&Ct.nextTick(b);let E=()=>{r=Gl,t.removeListener("aborted",m),t.removeListener("complete",h),t.removeListener("abort",m),t.removeListener("request",v),t.req&&t.req.removeListener("finish",h),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",h),t.removeListener("end",y),t.removeListener("error",p),t.removeListener("close",m)};if(e.signal&&!S){let T=()=>{let P=r;E(),P.call(t,new $_(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)Ct.nextTick(T);else{jr=jr||Oe().addAbortListener;let P=jr(e.signal,T),x=r;r=Wl((...O)=>{P[H_](),x.apply(t,O)})}}return E}function JI(t,e,r){let i=!1,n=Gl;if(e.signal)if(n=()=>{i=!0,r.call(t,new $_(void 0,{cause:e.signal.reason}))},e.signal.aborted)Ct.nextTick(n);else{jr=jr||Oe().addAbortListener;let o=jr(e.signal,n),a=r;r=Wl((...l)=>{o[H_](),a.apply(t,l)})}let s=(...o)=>{i||Ct.nextTick(()=>r.apply(t,o))};return $I(t[QI].promise,s,s),Gl}function eD(t,e){var r;let i=!1;return e===null&&(e=Ul),(r=e)!==null&&r!==void 0&&r.cleanup&&(GI(e.cleanup,"cleanup"),i=e.cleanup),new zI((n,s)=>{let o=V_(t,e,a=>{i&&o(),a?s(a):n()})})}zl.exports=V_;zl.exports.finished=eD});var ir=g((v4,ty)=>{"use strict";var it=Nt(),{aggregateTwoErrors:tD,codes:{ERR_MULTIPLE_CALLBACK:rD},AbortError:iD}=xe(),{Symbol:Z_}=ie(),{kIsDestroyed:nD,isDestroyed:sD,isFinished:oD,isServerRequest:aD}=rt(),Q_=Z_("kDestroy"),$l=Z_("kConstruct");function X_(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function lD(t,e){let r=this._readableState,i=this._writableState,n=i||r;return i!=null&&i.destroyed||r!=null&&r.destroyed?(typeof e=="function"&&e(),this):(X_(t,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),n.constructed?Y_(this,t,e):this.once(Q_,function(s){Y_(this,tD(s,t),e)}),this)}function Y_(t,e,r){let i=!1;function n(s){if(i)return;i=!0;let o=t._readableState,a=t._writableState;X_(s,a,o),a&&(a.closed=!0),o&&(o.closed=!0),typeof r=="function"&&r(s),s?it.nextTick(uD,t,s):it.nextTick(J_,t)}try{t._destroy(e||null,n)}catch(s){n(s)}}function uD(t,e){Hl(t,e),J_(t)}function J_(t){let e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&t.emit("close")}function Hl(t,e){let r=t._readableState,i=t._writableState;i!=null&&i.errorEmitted||r!=null&&r.errorEmitted||(i&&(i.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function fD(){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 cD(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(hD,t)}function hD(t){let e=!1;function r(i){if(e){Vl(t,i??new rD);return}e=!0;let n=t._readableState,s=t._writableState,o=s||n;n&&(n.constructed=!0),s&&(s.constructed=!0),o.destroyed?t.emit(Q_,i):i?Vl(t,i,!0):it.nextTick(dD,t)}try{t._construct(i=>{it.nextTick(r,i)})}catch(i){it.nextTick(r,i)}}function dD(t){t.emit($l)}function K_(t){return t?.setHeader&&typeof t.abort=="function"}function ey(t){t.emit("close")}function pD(t,e){t.emit("error",e),it.nextTick(ey,t)}function gD(t,e){!t||sD(t)||(!e&&!oD(t)&&(e=new iD),aD(t)?(t.socket=null,t.destroy(e)):K_(t)?t.abort():K_(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?it.nextTick(pD,t,e):it.nextTick(ey,t),t.destroyed||(t[nD]=!0))}ty.exports={construct:cD,destroyer:gD,destroy:lD,undestroy:fD,errorOrDestroy:Vl}});var Ns=g((x4,iy)=>{"use strict";var{ArrayIsArray:_D,ObjectSetPrototypeOf:ry}=ie(),{EventEmitter:Ps}=D("events");function Ls(t){Ps.call(this,t)}ry(Ls.prototype,Ps.prototype);ry(Ls,Ps);Ls.prototype.pipe=function(t,e){let r=this;function i(f){t.writable&&t.write(f)===!1&&r.pause&&r.pause()}r.on("data",i);function n(){r.readable&&r.resume&&r.resume()}t.on("drain",n),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",o),r.on("close",a));let s=!1;function o(){s||(s=!0,t.end())}function a(){s||(s=!0,typeof t.destroy=="function"&&t.destroy())}function l(f){u(),Ps.listenerCount(this,"error")===0&&this.emit("error",f)}Yl(r,"error",l),Yl(t,"error",l);function u(){r.removeListener("data",i),t.removeListener("drain",n),r.removeListener("end",o),r.removeListener("close",a),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),t.removeListener("close",u)}return r.on("end",u),r.on("close",u),t.on("close",u),t.emit("pipe",r),t};function Yl(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):_D(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}iy.exports={Stream:Ls,prependListener:Yl}});var Gi=g((T4,Cs)=>{"use strict";var{SymbolDispose:yD}=ie(),{AbortError:ny,codes:mD}=xe(),{isNodeStream:sy,isWebStream:bD,kControllerErrorFunction:wD}=rt(),SD=yt(),{ERR_INVALID_ARG_TYPE:oy}=mD,Kl,ED=(t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new oy(e,"AbortSignal",t)};Cs.exports.addAbortSignal=function(e,r){if(ED(e,"signal"),!sy(r)&&!bD(r))throw new oy("stream",["ReadableStream","WritableStream","Stream"],r);return Cs.exports.addAbortSignalNoValidate(e,r)};Cs.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let r=sy(e)?()=>{e.destroy(new ny(void 0,{cause:t.reason}))}:()=>{e[wD](new ny(void 0,{cause:t.reason}))};if(t.aborted)r();else{Kl=Kl||Oe().addAbortListener;let i=Kl(t,r);SD(e,i[yD])}return e}});var uy=g((A4,ly)=>{"use strict";var{StringPrototypeSlice:ay,SymbolIterator:vD,TypedArrayPrototypeSet:ks,Uint8Array:xD}=ie(),{Buffer:Zl}=D("buffer"),{inspect:TD}=Oe();ly.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(e){let r={data:e,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let r=this.head,i=""+r.data;for(;(r=r.next)!==null;)i+=e+r.data;return i}concat(e){if(this.length===0)return Zl.alloc(0);let r=Zl.allocUnsafe(e>>>0),i=this.head,n=0;for(;i;)ks(r,i.data,n),n+=i.data.length,i=i.next;return r}consume(e,r){let i=this.head.data;if(e<i.length){let n=i.slice(0,e);return this.head.data=i.slice(e),n}return e===i.length?this.shift():r?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[vD](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let r="",i=this.head,n=0;do{let s=i.data;if(e>s.length)r+=s,e-=s.length;else{e===s.length?(r+=s,++n,i.next?this.head=i.next:this.head=this.tail=null):(r+=ay(s,0,e),this.head=i,i.data=ay(s,e));break}++n}while((i=i.next)!==null);return this.length-=n,r}_getBuffer(e){let r=Zl.allocUnsafe(e),i=e,n=this.head,s=0;do{let o=n.data;if(e>o.length)ks(r,o,i-e),e-=o.length;else{e===o.length?(ks(r,o,i-e),++s,n.next?this.head=n.next:this.head=this.tail=null):(ks(r,new xD(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 TD(this,{...r,depth:0,customInspect:!1})}}});var zi=g((O4,dy)=>{"use strict";var{MathFloor:RD,NumberIsInteger:AD}=ie(),{validateInteger:OD}=Fr(),{ERR_INVALID_ARG_VALUE:ID}=xe().codes,fy=16*1024,cy=16;function DD(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function hy(t){return t?cy:fy}function PD(t,e){OD(e,"value",0),t?cy=e:fy=e}function LD(t,e,r,i){let n=DD(e,i,r);if(n!=null){if(!AD(n)||n<0){let s=i?`options.${r}`:"options.highWaterMark";throw new ID(s,n)}return RD(n)}return hy(t.objectMode)}dy.exports={getHighWaterMark:LD,getDefaultHighWaterMark:hy,setDefaultHighWaterMark:PD}});var _y=g((Ql,gy)=>{"use strict";var Ms=D("buffer"),nt=Ms.Buffer;function py(t,e){for(var r in t)e[r]=t[r]}nt.from&&nt.alloc&&nt.allocUnsafe&&nt.allocUnsafeSlow?gy.exports=Ms:(py(Ms,Ql),Ql.Buffer=nr);function nr(t,e,r){return nt(t,e,r)}nr.prototype=Object.create(nt.prototype);py(nt,nr);nr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return nt(t,e,r)};nr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=nt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};nr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return nt(t)};nr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Ms.SlowBuffer(t)}});var by=g(my=>{"use strict";var Jl=_y().Buffer,yy=Jl.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ND(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 CD(t){var e=ND(t);if(typeof e!="string"&&(Jl.isEncoding===yy||!yy(t)))throw new Error("Unknown encoding: "+t);return e||t}my.StringDecoder=$i;function $i(t){this.encoding=CD(t);var e;switch(this.encoding){case"utf16le":this.text=BD,this.end=UD,e=4;break;case"utf8":this.fillLast=qD,e=4;break;case"base64":this.text=WD,this.end=GD,e=3;break;default:this.write=zD,this.end=$D;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=jD;$i.prototype.text=FD;$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 kD(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 MD(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 qD(t){var e=this.lastTotal-this.lastNeed,r=MD(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 FD(t,e){var r=kD(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 jD(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function BD(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 UD(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 WD(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 GD(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function zD(t){return t.toString(this.encoding)}function $D(t){return t&&t.length?this.write(t):""}});var eu=g((D4,vy)=>{"use strict";var wy=Nt(),{PromisePrototypeThen:HD,SymbolAsyncIterator:Sy,SymbolIterator:Ey}=ie(),{Buffer:VD}=D("buffer"),{ERR_INVALID_ARG_TYPE:YD,ERR_STREAM_NULL_VALUES:KD}=xe().codes;function ZD(t,e,r){let i;if(typeof e=="string"||e instanceof VD)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let n;if(e&&e[Sy])n=!0,i=e[Sy]();else if(e&&e[Ey])n=!1,i=e[Ey]();else throw new YD("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){HD(a(u),()=>wy.nextTick(f,u),c=>wy.nextTick(f,c||u))};async function a(u){let f=u!=null,c=typeof i.throw=="function";if(f&&c){let{value:h,done:d}=await i.throw(u);if(await h,d)return}if(typeof i.return=="function"){let{value:h}=await i.return();await h}}async function l(){for(;;){try{let{value:u,done:f}=n?await i.next():i.next();if(f)s.push(null);else{let c=u&&typeof u.then=="function"?await u:u;if(c===null)throw o=!1,new KD;if(s.push(c))continue;o=!1}}catch(u){s.destroy(u)}break}}return s}vy.exports=ZD});var Vi=g((P4,Uy)=>{"use strict";var Ve=Nt(),{ArrayPrototypeIndexOf:QD,NumberIsInteger:XD,NumberIsNaN:JD,NumberParseInt:eP,ObjectDefineProperties:lu,ObjectKeys:tP,ObjectSetPrototypeOf:Ry,Promise:Ay,SafeSet:rP,SymbolAsyncDispose:iP,SymbolAsyncIterator:nP,Symbol:sP}=ie();Uy.exports=k;k.ReadableState=Bs;var{EventEmitter:oP}=D("events"),{Stream:kt,prependListener:aP}=Ns(),{Buffer:tu}=D("buffer"),{addAbortSignal:lP}=Gi(),Oy=yt(),B=Oe().debuglog("stream",t=>{B=t}),uP=uy(),Wr=ir(),{getHighWaterMark:fP,getDefaultHighWaterMark:cP}=zi(),{aggregateTwoErrors:xy,codes:{ERR_INVALID_ARG_TYPE:hP,ERR_METHOD_NOT_IMPLEMENTED:dP,ERR_OUT_OF_RANGE:pP,ERR_STREAM_PUSH_AFTER_EOF:gP,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:_P},AbortError:yP}=xe(),{validateObject:mP}=Fr(),sr=sP("kPaused"),{StringDecoder:Iy}=by(),bP=eu();Ry(k.prototype,kt.prototype);Ry(k,kt);var ru=()=>{},{errorOrDestroy:Br}=Wr,Ur=1,wP=2,Dy=4,Hi=8,Py=16,qs=32,Fs=64,Ly=128,SP=256,EP=512,vP=1024,ou=2048,au=4096,xP=8192,TP=16384,RP=32768,Ny=65536,AP=1<<17,OP=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(wP),endEmitted:ce(Dy),reading:ce(Hi),constructed:ce(Py),sync:ce(qs),needReadable:ce(Fs),emittedReadable:ce(Ly),readableListening:ce(SP),resumeScheduled:ce(EP),errorEmitted:ce(vP),emitClose:ce(ou),autoDestroy:ce(au),destroyed:ce(xP),closed:ce(TP),closeEmitted:ce(RP),multiAwaitDrain:ce(Ny),readingMore:ce(AP),dataEmitted:ce(OP)});function Bs(t,e,r){typeof r!="boolean"&&(r=e instanceof st()),this.state=ou|au|Py|qs,t&&t.objectMode&&(this.state|=Ur),r&&t&&t.readableObjectMode&&(this.state|=Ur),this.highWaterMark=t?fP(this,t,"readableHighWaterMark",r):cP(!1),this.buffer=new uP,this.length=0,this.pipes=[],this.flowing=null,this[sr]=null,t&&t.emitClose===!1&&(this.state&=~ou),t&&t.autoDestroy===!1&&(this.state&=~au),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new Iy(t.encoding),this.encoding=t.encoding)}function k(t){if(!(this instanceof k))return new k(t);let e=this instanceof st();this._readableState=new Bs(t,this,e),t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&!e&&lP(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[oP.captureRejectionSymbol]=function(t){this.destroy(t)};k.prototype[iP]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new yP,this.destroy(t)),new Ay((e,r)=>Oy(this,i=>i&&i!==t?r(i):e(null)))};k.prototype.push=function(t,e){return Cy(this,t,e,!1)};k.prototype.unshift=function(t,e){return Cy(this,t,e,!0)};function Cy(t,e,r,i){B("readableAddChunk",e);let n=t._readableState,s;if((n.state&Ur)===0&&(typeof e=="string"?(r=r||n.defaultEncoding,n.encoding!==r&&(i&&n.encoding?e=tu.from(e,r).toString(n.encoding):(e=tu.from(e,r),r=""))):e instanceof tu?r="":kt._isUint8Array(e)?(e=kt._uint8ArrayToBuffer(e),r=""):e!=null&&(s=new hP("chunk",["string","Buffer","Uint8Array"],e))),s)Br(t,s);else if(e===null)n.state&=~Hi,PP(t,n);else if((n.state&Ur)!==0||e&&e.length>0)if(i)if((n.state&Dy)!==0)Br(t,new _P);else{if(n.destroyed||n.errored)return!1;iu(t,n,e,!0)}else if(n.ended)Br(t,new gP);else{if(n.destroyed||n.errored)return!1;n.state&=~Hi,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?iu(t,n,e,!1):js(t,n)):iu(t,n,e,!1)}else i||(n.state&=~Hi,js(t,n));return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function iu(t,e,r,i){e.flowing&&e.length===0&&!e.sync&&t.listenerCount("data")>0?((e.state&Ny)!==0?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),(e.state&Fs)!==0&&Us(t)),js(t,e)}k.prototype.isPaused=function(){let t=this._readableState;return t[sr]===!0||t.flowing===!1};k.prototype.setEncoding=function(t){let e=new Iy(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,i="";for(let n of r)i+=e.write(n);return r.clear(),i!==""&&r.push(i),this._readableState.length=i.length,this};var IP=1073741824;function DP(t){if(t>IP)throw new pP("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function Ty(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&Ur)!==0?1:JD(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:XD(t)||(t=eP(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=DP(t)),t!==0&&(e.state&=~Ly),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return B("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?nu(this):Us(this),null;if(t=Ty(t,e),t===0&&e.ended)return e.length===0&&nu(this),null;let i=(e.state&Fs)!==0;if(B("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,B("length less than watermark",i)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)i=!1,B("reading, ended or constructing",i);else if(i){B("do read"),e.state|=Hi|qs,e.length===0&&(e.state|=Fs);try{this._read(e.highWaterMark)}catch(s){Br(this,s)}e.state&=~qs,e.reading||(t=Ty(r,e))}let n;return t>0?n=jy(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&nu(this)),n!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",n)),n};function PP(t,e){if(B("onEofChunk"),!e.ended){if(e.decoder){let r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?Us(t):(e.needReadable=!1,e.emittedReadable=!0,ky(t))}}function Us(t){let e=t._readableState;B("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(B("emitReadable",e.flowing),e.emittedReadable=!0,Ve.nextTick(ky,t))}function ky(t){let e=t._readableState;B("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&!e.errored&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,qy(t)}function js(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,Ve.nextTick(LP,t,e))}function LP(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 dP("_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 rP(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:S;i.endEmitted?Ve.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(m,b){B("onunpipe"),m===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",y),t.removeListener("finish",p),l&&t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",S),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=NP(r,t),t.on("drain",l))}r.on("data",h);function h(m){B("ondata");let b=t.write(m);B("dest.write",b),b===!1&&c()}function d(m){if(B("onerror",m),S(),t.removeListener("error",d),t.listenerCount("error")===0){let b=t._writableState||t._readableState;b&&!b.errorEmitted?Br(t,m):t.emit("error",m)}}aP(t,"error",d);function y(){t.removeListener("finish",p),S()}t.once("close",y);function p(){B("onfinish"),t.removeListener("close",y),S()}t.once("finish",p);function S(){B("unpipe"),r.unpipe(t)}return t.emit("pipe",r),t.writableNeedDrain===!0?c():i.flowing||(B("pipe resume"),r.resume()),t};function NP(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=QD(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(CP,this)),r};k.prototype.addListener=k.prototype.on;k.prototype.removeListener=function(t,e){let r=kt.prototype.removeListener.call(this,t,e);return t==="readable"&&Ve.nextTick(My,this),r};k.prototype.off=k.prototype.removeListener;k.prototype.removeAllListeners=function(t){let e=kt.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&Ve.nextTick(My,this),e};function My(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[sr]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function CP(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,kP(this,t)),t[sr]=!1,this};function kP(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ve.nextTick(MP,t,e))}function MP(t,e){B("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),qy(t),e.flowing&&!e.reading&&t.read(0)}k.prototype.pause=function(){return B("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(B("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[sr]=!0,this};function qy(t){let e=t._readableState;for(B("flow",e.flowing);e.flowing&&t.read()!==null;);}k.prototype.wrap=function(t){let e=!1;t.on("data",i=>{!this.push(i)&&t.pause&&(e=!0,t.pause())}),t.on("end",()=>{this.push(null)}),t.on("error",i=>{Br(this,i)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=tP(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[nP]=function(){return Fy(this)};k.prototype.iterator=function(t){return t!==void 0&&mP(t,"options"),Fy(this,t)};function Fy(t,e){typeof t.read!="function"&&(t=k.wrap(t,{objectMode:!0}));let r=qP(t,e);return r.stream=t,r}async function*qP(t,e){let r=ru;function i(o){this===t?(r(),r=ru):r=o}t.on("readable",i);let n,s=Oy(t,{writable:!1},o=>{n=o?xy(n,o):null,r(),r=ru});try{for(;;){let o=t.destroyed?null:t.read();if(o!==null)yield o;else{if(n)throw n;if(n===null)return;await new Ay(i)}}}catch(o){throw n=xy(n,o),n}finally{(n||e?.destroyOnReturn!==!1)&&(n===void 0||t._readableState.autoDestroy)?Wr.destroyer(t,null):(t.off("readable",i),s())}}lu(k.prototype,{readable:{__proto__:null,get(){let t=this._readableState;return!!t&&t.readable!==!1&&!t.destroyed&&!t.errorEmitted&&!t.endEmitted},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});lu(Bs.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[sr]!==!1},set(t){this[sr]=!!t}}});k._fromList=jy;function jy(t,e){if(e.length===0)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function nu(t){let e=t._readableState;B("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,Ve.nextTick(FP,e,t))}function FP(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(jP,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}function jP(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}k.from=function(t,e){return bP(k,t,e)};var su;function By(){return su===void 0&&(su={}),su}k.fromWeb=function(t,e){return By().newStreamReadableFromReadableStream(t,e)};k.toWeb=function(t,e){return By().newReadableStreamFromStreamReadable(t,e)};k.wrap=function(t,e){var r,i;return new k({objectMode:(r=(i=t.readableObjectMode)!==null&&i!==void 0?i:t.objectMode)!==null&&r!==void 0?r:!0,...e,destroy(n,s){Wr.destroyer(t,n),s(n)}}).wrap(t)}});var Hs=g((L4,Jy)=>{"use strict";var or=Nt(),{ArrayPrototypeSlice:zy,Error:BP,FunctionPrototypeSymbolHasInstance:$y,ObjectDefineProperty:Hy,ObjectDefineProperties:UP,ObjectSetPrototypeOf:Vy,StringPrototypeToLowerCase:WP,Symbol:GP,SymbolHasInstance:zP}=ie();Jy.exports=se;se.WritableState=Zi;var{EventEmitter:$P}=D("events"),Yi=Ns().Stream,{Buffer:Ws}=D("buffer"),$s=ir(),{addAbortSignal:HP}=Gi(),{getHighWaterMark:VP,getDefaultHighWaterMark:YP}=zi(),{ERR_INVALID_ARG_TYPE:KP,ERR_METHOD_NOT_IMPLEMENTED:ZP,ERR_MULTIPLE_CALLBACK:Yy,ERR_STREAM_CANNOT_PIPE:QP,ERR_STREAM_DESTROYED:Ki,ERR_STREAM_ALREADY_FINISHED:XP,ERR_STREAM_NULL_VALUES:JP,ERR_STREAM_WRITE_AFTER_END:eL,ERR_UNKNOWN_ENCODING:Ky}=xe().codes,{errorOrDestroy:Gr}=$s;Vy(se.prototype,Yi.prototype);Vy(se,Yi);function cu(){}var zr=GP("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?VP(this,t,"writableHighWaterMark",r):YP(!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=rL.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,zs(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||t.emitClose!==!1,this.autoDestroy=!t||t.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[zr]=[]}function zs(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}Zi.prototype.getBuffer=function(){return zy(this.buffered,this.bufferedIndex)};Hy(Zi.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function se(t){let e=this instanceof st();if(!e&&!$y(se,this))return new se(t);this._writableState=new Zi(t,this,e),t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&HP(t.signal,this)),Yi.call(this,t),$s.construct(this,()=>{let r=this._writableState;r.writing||du(this,r),pu(this,r)})}Hy(se,zP,{__proto__:null,value:function(t){return $y(this,t)?!0:this!==se?!1:t&&t._writableState instanceof Zi}});se.prototype.pipe=function(){Gr(this,new QP)};function Zy(t,e,r,i){let n=t._writableState;if(typeof r=="function")i=r,r=n.defaultEncoding;else{if(!r)r=n.defaultEncoding;else if(r!=="buffer"&&!Ws.isEncoding(r))throw new Ky(r);typeof i!="function"&&(i=cu)}if(e===null)throw new JP;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 KP("chunk",["string","Buffer","Uint8Array"],e);let s;return n.ending?s=new eL:n.destroyed&&(s=new Ki("write")),s?(or.nextTick(i,s),Gr(t,s,!0),s):(n.pendingcb++,tL(t,n,e,r,i))}se.prototype.write=function(t,e,r){return Zy(this,t,e,r)===!0};se.prototype.cork=function(){this._writableState.corked++};se.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||du(this,t))};se.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=WP(e)),!Ws.isEncoding(e))throw new Ky(e);return this._writableState.defaultEncoding=e,this};function tL(t,e,r,i,n){let s=e.objectMode?1:r.length;e.length+=s;let o=e.length<e.highWaterMark;return o||(e.needDrain=!0),e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:r,encoding:i,callback:n}),e.allBuffers&&i!=="buffer"&&(e.allBuffers=!1),e.allNoop&&n!==cu&&(e.allNoop=!1)):(e.writelen=s,e.writecb=n,e.writing=!0,e.sync=!0,t._write(r,i,e.onwrite),e.sync=!1),o&&!e.errored&&!e.destroyed}function Wy(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Ki("write")):r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function Gy(t,e,r,i){--e.pendingcb,i(r),hu(e),Gr(t,r)}function rL(t,e){let r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function"){Gr(t,new Yy);return}r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e?(e.stack,r.errored||(r.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),i?or.nextTick(Gy,t,r,e,n):Gy(t,r,e,n)):(r.buffered.length>r.bufferedIndex&&du(t,r),i?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===n?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:n,stream:t,state:r},or.nextTick(iL,r.afterWriteTickInfo)):Qy(t,r,1,n))}function iL({stream:t,state:e,count:r,cb:i}){return e.afterWriteTickInfo=null,Qy(t,e,r,i)}function Qy(t,e,r,i){for(!e.ending&&!t.destroyed&&e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));r-- >0;)e.pendingcb--,i();e.destroyed&&hu(e),pu(t,e)}function hu(t){if(t.writing)return;for(let n=t.bufferedIndex;n<t.buffered.length;++n){var e;let{chunk:s,callback:o}=t.buffered[n],a=t.objectMode?1:s.length;t.length-=a,o((e=t.errored)!==null&&e!==void 0?e:new Ki("write"))}let r=t[zr].splice(0);for(let n=0;n<r.length;n++){var i;r[n]((i=t.errored)!==null&&i!==void 0?i:new Ki("end"))}zs(t)}function du(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;let{buffered:r,bufferedIndex:i,objectMode:n}=e,s=r.length-i;if(!s)return;let o=i;if(e.bufferProcessing=!0,s>1&&t._writev){e.pendingcb-=s-1;let a=e.allNoop?cu:u=>{for(let f=o;f<r.length;++f)r[f].callback(u)},l=e.allNoop&&o===0?r:zy(r,o);l.allBuffers=e.allBuffers,Wy(t,e,!0,e.length,l,"",a),zs(e)}else{do{let{chunk:a,encoding:l,callback:u}=r[o];r[o++]=null;let f=n?1:a.length;Wy(t,e,!1,f,a,l,u)}while(o<r.length&&!e.writing);o===r.length?zs(e):o>256?(r.splice(0,o),e.bufferedIndex=0):e.bufferedIndex=o}e.bufferProcessing=!1}se.prototype._write=function(t,e,r){if(this._writev)this._writev([{chunk:t,encoding:e}],r);else throw new ZP("_write()")};se.prototype._writev=null;se.prototype.end=function(t,e,r){let i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null);let n;if(t!=null){let s=Zy(this,t,e);s instanceof BP&&(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 XP("end"):i.destroyed&&(n=new Ki("end"))),typeof r=="function"&&(n||i.finished?or.nextTick(r,n):i[zr].push(r)),this};function Gs(t){return t.ending&&!t.destroyed&&t.constructed&&t.length===0&&!t.errored&&t.buffered.length===0&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function nL(t,e){let r=!1;function i(n){if(r){Gr(t,n??Yy());return}if(r=!0,e.pendingcb--,n){let s=e[zr].splice(0);for(let o=0;o<s.length;o++)s[o](n);Gr(t,n,e.sync)}else Gs(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,or.nextTick(fu,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(n){i(n)}e.sync=!1}function sL(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,nL(t,e)):(e.prefinished=!0,t.emit("prefinish")))}function pu(t,e,r){Gs(e)&&(sL(t,e),e.pendingcb===0&&(r?(e.pendingcb++,or.nextTick((i,n)=>{Gs(n)?fu(i,n):n.pendingcb--},t,e)):Gs(e)&&(e.pendingcb++,fu(t,e))))}function fu(t,e){e.pendingcb--,e.finished=!0;let r=e[zr].splice(0);for(let i=0;i<r.length;i++)r[i]();if(t.emit("finish"),e.autoDestroy){let i=t._readableState;(!i||i.autoDestroy&&(i.endEmitted||i.readable===!1))&&t.destroy()}}UP(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 oL=$s.destroy;se.prototype.destroy=function(t,e){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[zr].length)&&or.nextTick(hu,r),oL.call(this,t,e),this};se.prototype._undestroy=$s.undestroy;se.prototype._destroy=function(t,e){e(t)};se.prototype[$P.captureRejectionSymbol]=function(t){this.destroy(t)};var uu;function Xy(){return uu===void 0&&(uu={}),uu}se.fromWeb=function(t,e){return Xy().newStreamWritableFromWritableStream(t,e)};se.toWeb=function(t){return Xy().newWritableStreamFromStreamWritable(t)}});var pm=g((N4,dm)=>{"use strict";var gu=Nt(),aL=D("buffer"),{isReadable:lL,isWritable:uL,isIterable:em,isNodeStream:fL,isReadableNodeStream:tm,isWritableNodeStream:rm,isDuplexNodeStream:cL,isReadableStream:im,isWritableStream:nm}=rt(),sm=yt(),{AbortError:cm,codes:{ERR_INVALID_ARG_TYPE:hL,ERR_INVALID_RETURN_VALUE:om}}=xe(),{destroyer:Hr}=ir(),dL=st(),hm=Vi(),pL=Hs(),{createDeferredPromise:am}=Oe(),lm=eu(),um=globalThis.Blob||aL.Blob,gL=typeof um<"u"?function(e){return e instanceof um}:function(e){return!1},_L=globalThis.AbortController||Mr().AbortController,{FunctionPrototypeCall:fm}=ie(),Mt=class extends dL{constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};dm.exports=function t(e,r){if(cL(e))return e;if(tm(e))return $r({readable:e});if(rm(e))return $r({writable:e});if(fL(e))return $r({writable:!1,readable:!1});if(im(e))return $r({readable:hm.fromWeb(e)});if(nm(e))return $r({writable:pL.fromWeb(e)});if(typeof e=="function"){let{value:n,write:s,final:o,destroy:a}=yL(e);if(em(n))return lm(Mt,n,{objectMode:!0,write:s,final:o,destroy:a});let l=n?.then;if(typeof l=="function"){let u,f=fm(l,n,c=>{if(c!=null)throw new om("nully","body",c)},c=>{Hr(u,c)});return u=new Mt({objectMode:!0,readable:!1,write:s,final(c){o(async()=>{try{await f,gu.nextTick(c,null)}catch(h){gu.nextTick(c,h)}})},destroy:a})}throw new om("Iterable, AsyncIterable or AsyncFunction",r,n)}if(gL(e))return t(e.arrayBuffer());if(em(e))return lm(Mt,e,{objectMode:!0,writable:!1});if(im(e?.readable)&&nm(e?.writable))return Mt.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let n=e!=null&&e.readable?tm(e?.readable)?e?.readable:t(e.readable):void 0,s=e!=null&&e.writable?rm(e?.writable)?e?.writable:t(e.writable):void 0;return $r({readable:n,writable:s})}let i=e?.then;if(typeof i=="function"){let n;return fm(i,e,s=>{s!=null&&n.push(s),n.push(null)},s=>{Hr(n,s)}),n=new Mt({objectMode:!0,writable:!1,read(){}})}throw new hL(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function yL(t){let{promise:e,resolve:r}=am(),i=new _L,n=i.signal;return{value:t((async function*(){for(;;){let o=e;e=null;let{chunk:a,done:l,cb:u}=await o;if(gu.nextTick(u),l)return;if(n.aborted)throw new cm(void 0,{cause:n.reason});({promise:e,resolve:r}=am()),yield a}})(),{signal:n}),write(o,a,l){let u=r;r=null,u({chunk:o,done:!1,cb:l})},final(o){let a=r;r=null,a({done:!0,cb:o})},destroy(o,a){i.abort(),a(o)}}}function $r(t){let e=t.readable&&typeof t.readable.read!="function"?hm.wrap(t.readable):t.readable,r=t.writable,i=!!lL(e),n=!!uL(r),s,o,a,l,u;function f(c){let h=l;l=null,h?h(c):c&&u.destroy(c)}return u=new Mt({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:i,writable:n}),n&&(sm(r,c=>{n=!1,c&&Hr(e,c),f(c)}),u._write=function(c,h,d){r.write(c,h)?d():s=d},u._final=function(c){r.end(),o=c},r.on("drain",function(){if(s){let c=s;s=null,c()}}),r.on("finish",function(){if(o){let c=o;o=null,c()}})),i&&(sm(e,c=>{i=!1,c&&Hr(e,c),f(c)}),e.on("readable",function(){if(a){let c=a;a=null,c()}}),e.on("end",function(){u.push(null)}),u._read=function(){for(;;){let c=e.read();if(c===null){a=u._read;return}if(!u.push(c))return}}),u._destroy=function(c,h){!c&&l!==null&&(c=new cm),a=null,s=null,o=null,l===null?h(c):(l=h,Hr(r,c),Hr(e,c))},u}});var st=g((C4,ym)=>{"use strict";var{ObjectDefineProperties:mL,ObjectGetOwnPropertyDescriptor:mt,ObjectKeys:bL,ObjectSetPrototypeOf:gm}=ie();ym.exports=Ye;var mu=Vi(),Be=Hs();gm(Ye.prototype,mu.prototype);gm(Ye,mu);{let t=bL(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}mL(Ye.prototype,{writable:{__proto__:null,...mt(Be.prototype,"writable")},writableHighWaterMark:{__proto__:null,...mt(Be.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...mt(Be.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...mt(Be.prototype,"writableBuffer")},writableLength:{__proto__:null,...mt(Be.prototype,"writableLength")},writableFinished:{__proto__:null,...mt(Be.prototype,"writableFinished")},writableCorked:{__proto__:null,...mt(Be.prototype,"writableCorked")},writableEnded:{__proto__:null,...mt(Be.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...mt(Be.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}});var _u;function _m(){return _u===void 0&&(_u={}),_u}Ye.fromWeb=function(t,e){return _m().newStreamDuplexFromReadableWritablePair(t,e)};Ye.toWeb=function(t){return _m().newReadableWritablePairFromDuplex(t)};var yu;Ye.from=function(t){return yu||(yu=pm()),yu(t,"body")}});var Su=g((k4,bm)=>{"use strict";var{ObjectSetPrototypeOf:mm,Symbol:wL}=ie();bm.exports=bt;var{ERR_METHOD_NOT_IMPLEMENTED:SL}=xe().codes,wu=st(),{getHighWaterMark:EL}=zi();mm(bt.prototype,wu.prototype);mm(bt,wu);var Qi=wL("kCallback");function bt(t){if(!(this instanceof bt))return new bt(t);let e=t?EL(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",vL)}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 vL(){this._final!==bu&&bu.call(this)}bt.prototype._final=bu;bt.prototype._transform=function(t,e,r){throw new SL("_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((M4,Sm)=>{"use strict";var{ObjectSetPrototypeOf:wm}=ie();Sm.exports=Vr;var Eu=Su();wm(Vr.prototype,Eu.prototype);wm(Vr,Eu);function Vr(t){if(!(this instanceof Vr))return new Vr(t);Eu.call(this,t)}Vr.prototype._transform=function(t,e,r){r(null,t)}});var Zs=g((q4,Rm)=>{"use strict";var Xi=Nt(),{ArrayIsArray:xL,Promise:TL,SymbolAsyncIterator:RL,SymbolDispose:AL}=ie(),Ks=yt(),{once:OL}=Oe(),IL=ir(),Em=st(),{aggregateTwoErrors:DL,codes:{ERR_INVALID_ARG_TYPE:Lu,ERR_INVALID_RETURN_VALUE:xu,ERR_MISSING_ARGS:PL,ERR_STREAM_DESTROYED:LL,ERR_STREAM_PREMATURE_CLOSE:NL},AbortError:CL}=xe(),{validateFunction:kL,validateAbortSignal:ML}=Fr(),{isIterable:ar,isReadable:Tu,isReadableNodeStream:Ys,isNodeStream:vm,isTransformStream:Yr,isWebStream:qL,isReadableStream:Ru,isReadableFinished:FL}=rt(),jL=globalThis.AbortController||Mr().AbortController,Au,Ou,Iu;function xm(t,e,r){let i=!1;t.on("close",()=>{i=!0});let n=Ks(t,{readable:e,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,IL.destroyer(t,s||new LL("pipe")))},cleanup:n}}function BL(t){return kL(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function Du(t){if(ar(t))return t;if(Ys(t))return UL(t);throw new Lu("val",["Readable","Iterable","AsyncIterable"],t)}async function*UL(t){Ou||(Ou=Vi()),yield*Ou.prototype[RL].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 TL((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?DL(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 WL(...t){return Tm(t,OL(BL(t)))}function Tm(t,e,r){if(t.length===1&&xL(t[0])&&(t=t[0]),t.length<2)throw new PL("streams");let i=new jL,n=i.signal,s=r?.signal,o=[];ML(s,"options.signal");function a(){y(new CL)}Iu=Iu||Oe().addAbortListener;let l;s&&(l=Iu(s,a));let u,f,c=[],h=0;function d(v){y(v,--h===0)}function y(v,E){var T;if(v&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=v),!(!u&&!E)){for(;c.length;)c.shift()(u);(T=l)===null||T===void 0||T[AL](),i.abort(),E&&(u||o.forEach(P=>P()),Xi.nextTick(e,u,f))}}let p;for(let v=0;v<t.length;v++){let E=t[v],T=v<t.length-1,P=v>0,x=T||r?.end!==!1,O=v===t.length-1;if(vm(E)){let w=function(R){R&&R.name!=="AbortError"&&R.code!=="ERR_STREAM_PREMATURE_CLOSE"&&d(R)};var b=w;if(x){let{destroy:R,cleanup:A}=xm(E,T,P);c.push(R),Tu(E)&&O&&o.push(A)}E.on("error",w),Tu(E)&&O&&o.push(()=>{E.removeListener("error",w)})}if(v===0)if(typeof E=="function"){if(p=E({signal:n}),!ar(p))throw new xu("Iterable, AsyncIterable or Stream","source",p)}else ar(E)||Ys(E)||Yr(E)?p=E:p=Em.from(E);else if(typeof E=="function"){if(Yr(p)){var S;p=Du((S=p)===null||S===void 0?void 0:S.readable)}else p=Du(p);if(p=E(p,{signal:n}),T){if(!ar(p,!0))throw new xu("AsyncIterable",`transform[${v-1}]`,p)}else{var m;Au||(Au=vu());let w=new Au({objectMode:!0}),R=(m=p)===null||m===void 0?void 0:m.then;if(typeof R=="function")h++,R.call(p,G=>{f=G,G!=null&&w.write(G),x&&w.end(),Xi.nextTick(d)},G=>{w.destroy(G),Xi.nextTick(d,G)});else if(ar(p,!0))h++,Vs(p,w,d,{end:x});else if(Ru(p)||Yr(p)){let G=p.readable||p;h++,Vs(G,w,d,{end:x})}else throw new xu("AsyncIterable or Promise","destination",p);p=w;let{destroy:A,cleanup:N}=xm(p,!1,!0);c.push(A),O&&o.push(N)}}else if(vm(E)){if(Ys(p)){h+=2;let w=GL(p,E,d,{end:x});Tu(E)&&O&&o.push(w)}else if(Yr(p)||Ru(p)){let w=p.readable||p;h++,Vs(w,E,d,{end:x})}else if(ar(p))h++,Vs(p,E,d,{end:x});else throw new Lu("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],p);p=E}else if(qL(E)){if(Ys(p))h++,Pu(Du(p),E,d,{end:x});else if(Ru(p)||ar(p))h++,Pu(p,E,d,{end:x});else if(Yr(p))h++,Pu(p.readable,E,d,{end:x});else throw new Lu("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],p);p=E}else p=Em.from(E)}return(n!=null&&n.aborted||s!=null&&s.aborted)&&Xi.nextTick(a),p}function GL(t,e,r,{end:i}){let n=!1;if(e.on("close",()=>{n||r(new NL)}),t.pipe(e,{end:!1}),i){let o=function(){n=!0,e.end()};var s=o;FL(t)?Xi.nextTick(o):t.once("end",o)}else r();return Ks(t,{readable:!0,writable:!1},o=>{let a=t._readableState;o&&o.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted?t.once("end",r).once("error",r):r(o)}),Ks(e,{readable:!1,writable:!0},r)}Rm.exports={pipelineImpl:Tm,pipeline:WL}});var Cu=g((F4,Lm)=>{"use strict";var{pipeline:zL}=Zs(),Qs=st(),{destroyer:$L}=ir(),{isNodeStream:Xs,isReadable:Am,isWritable:Om,isWebStream:Nu,isTransformStream:lr,isWritableStream:Im,isReadableStream:Dm}=rt(),{AbortError:HL,codes:{ERR_INVALID_ARG_VALUE:Pm,ERR_MISSING_ARGS:VL}}=xe(),YL=yt();Lm.exports=function(...e){if(e.length===0)throw new VL("streams");if(e.length===1)return Qs.from(e[0]);let r=[...e];if(typeof e[0]=="function"&&(e[0]=Qs.from(e[0])),typeof e[e.length-1]=="function"){let d=e.length-1;e[d]=Qs.from(e[d])}for(let d=0;d<e.length;++d)if(!(!Xs(e[d])&&!Nu(e[d]))){if(d<e.length-1&&!(Am(e[d])||Dm(e[d])||lr(e[d])))throw new Pm(`streams[${d}]`,r[d],"must be readable");if(d>0&&!(Om(e[d])||Im(e[d])||lr(e[d])))throw new Pm(`streams[${d}]`,r[d],"must be writable")}let i,n,s,o,a;function l(d){let y=o;o=null,y?y(d):d?a.destroy(d):!h&&!c&&a.destroy()}let u=e[0],f=zL(e,l),c=!!(Om(u)||Im(u)||lr(u)),h=!!(Am(f)||Dm(f)||lr(f));if(a=new Qs({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(f!=null&&f.readableObjectMode),writable:c,readable:h}),c){if(Xs(u))a._write=function(y,p,S){u.write(y,p)?S():i=S},a._final=function(y){u.end(),n=y},u.on("drain",function(){if(i){let y=i;i=null,y()}});else if(Nu(u)){let p=(lr(u)?u.writable:u).getWriter();a._write=async function(S,m,b){try{await p.ready,p.write(S).catch(()=>{}),b()}catch(v){b(v)}},a._final=async function(S){try{await p.ready,p.close().catch(()=>{}),n=S}catch(m){S(m)}}}let d=lr(f)?f.readable:f;YL(d,()=>{if(n){let y=n;n=null,y()}})}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 y=(lr(f)?f.readable:f).getReader();a._read=async function(){for(;;)try{let{value:p,done:S}=await y.read();if(!a.push(p))return;if(S){a.push(null);return}}catch{return}}}}return a._destroy=function(d,y){!d&&o!==null&&(d=new HL),s=null,i=null,n=null,o===null?y(d):(o=y,Xs(f)&&$L(f,d))},a}});var Wm=g((j4,qu)=>{"use strict";var KL=globalThis.AbortController||Mr().AbortController,{codes:{ERR_INVALID_ARG_VALUE:ZL,ERR_INVALID_ARG_TYPE:Ji,ERR_MISSING_ARGS:QL,ERR_OUT_OF_RANGE:XL},AbortError:ot}=xe(),{validateAbortSignal:ur,validateInteger:Nm,validateObject:fr}=Fr(),JL=ie().Symbol("kWeak"),eN=ie().Symbol("kResistStopPropagation"),{finished:tN}=yt(),rN=Cu(),{addAbortSignalNoValidate:iN}=Gi(),{isWritable:nN,isNodeStream:sN}=rt(),{deprecate:oN}=Oe(),{ArrayPrototypePush:aN,Boolean:lN,MathFloor:Cm,Number:uN,NumberIsNaN:fN,Promise:km,PromiseReject:Mm,PromiseResolve:cN,PromisePrototypeThen:qm,Symbol:jm}=ie(),Js=jm("kEmpty"),Fm=jm("kEof");function hN(t,e){if(e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),sN(t)&&!nN(t))throw new ZL("stream",t,"must be writable");let r=rN(this,t);return e!=null&&e.signal&&iN(e.signal,r),r}function eo(t,e){if(typeof t!="function")throw new Ji("fn",["Function","AsyncFunction"],t);e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal");let r=1;e?.concurrency!=null&&(r=Cm(e.concurrency));let i=r-1;return e?.highWaterMark!=null&&(i=Cm(e.highWaterMark)),Nm(r,"options.concurrency",1),Nm(i,"options.highWaterMark",0),i+=r,async function*(){let s=Oe().AbortSignalAny([e?.signal].filter(lN)),o=this,a=[],l={signal:s},u,f,c=!1,h=0;function d(){c=!0,y()}function y(){h-=1,p()}function p(){f&&!c&&h<r&&a.length<i&&(f(),f=null)}async function S(){try{for await(let m of o){if(c)return;if(s.aborted)throw new ot;try{if(m=t(m,l),m===Js)continue;m=cN(m)}catch(b){m=Mm(b)}h+=1,qm(m,y,d),a.push(m),u&&(u(),u=null),!c&&(a.length>=i||h>=r)&&await new km(b=>{f=b})}a.push(Fm)}catch(m){let b=Mm(m);qm(b,y,d),a.push(b)}finally{c=!0,u&&(u(),u=null)}}S();try{for(;;){for(;a.length>0;){let m=await a[0];if(m===Fm)return;if(s.aborted)throw new ot;m!==Js&&(yield m),a.shift(),p()}await new km(m=>{u=m})}}finally{c=!0,f&&(f(),f=null)}}.call(this)}function dN(t=void 0){return t!=null&&fr(t,"options"),t?.signal!=null&&ur(t.signal,"options.signal"),async function*(){let r=0;for await(let n of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new ot({cause:t.signal.reason});yield[r++,n]}}.call(this)}async function Bm(t,e=void 0){for await(let r of Mu.call(this,t,e))return!0;return!1}async function pN(t,e=void 0){if(typeof t!="function")throw new Ji("fn",["Function","AsyncFunction"],t);return!await Bm.call(this,async(...r)=>!await t(...r),e)}async function gN(t,e){for await(let r of Mu.call(this,t,e))return r}async function _N(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 QL{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function yN(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 tN(this.destroy(u)),u}let s=new KL,o=s.signal;if(r!=null&&r.signal){let u={once:!0,[JL]:this,[eN]:!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 mN(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});aN(e,i)}return e}function bN(t,e){let r=eo.call(this,t,e);return async function*(){for await(let n of r)yield*n}.call(this)}function Um(t){if(t=uN(t),fN(t))return 0;if(t<0)throw new XL("number",">= 0",t);return t}function wN(t,e=void 0){return e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),t=Um(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ot;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ot;t--<=0&&(yield s)}}.call(this)}function SN(t,e=void 0){return e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),t=Um(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ot;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ot;if(t-- >0&&(yield s),t<=0)return}}.call(this)}qu.exports.streamReturningOperators={asIndexedPairs:oN(dN,"readable.asIndexedPairs will be removed in a future version."),drop:wN,filter:Mu,flatMap:bN,map:eo,take:SN,compose:hN};qu.exports.promiseReturningOperators={every:pN,forEach:_N,reduce:yN,toArray:mN,some:Bm,find:gN}});var Fu=g((B4,Gm)=>{"use strict";var{ArrayPrototypePop:EN,Promise:vN}=ie(),{isIterable:xN,isNodeStream:TN,isWebStream:RN}=rt(),{pipelineImpl:AN}=Zs(),{finished:ON}=yt();ju();function IN(...t){return new vN((e,r)=>{let i,n,s=t[t.length-1];if(s&&typeof s=="object"&&!TN(s)&&!xN(s)&&!RN(s)){let o=EN(t);i=o.signal,n=o.end}AN(t,(o,a)=>{o?r(o):e(a)},{signal:i,end:n})})}Gm.exports={finished:ON,pipeline:IN}});var ju=g((U4,Xm)=>{"use strict";var{Buffer:DN}=D("buffer"),{ObjectDefineProperty:wt,ObjectKeys:Hm,ReflectApply:Vm}=ie(),{promisify:{custom:Ym}}=Oe(),{streamReturningOperators:zm,promiseReturningOperators:$m}=Wm(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:Km}}=xe(),PN=Cu(),{setDefaultHighWaterMark:LN,getDefaultHighWaterMark:NN}=zi(),{pipeline:Zm}=Zs(),{destroyer:CN}=ir(),Qm=yt(),Bu=Fu(),en=rt(),ee=Xm.exports=Ns().Stream;ee.isDestroyed=en.isDestroyed;ee.isDisturbed=en.isDisturbed;ee.isErrored=en.isErrored;ee.isReadable=en.isReadable;ee.isWritable=en.isWritable;ee.Readable=Vi();for(let t of Hm(zm)){let r=function(...i){if(new.target)throw Km();return ee.Readable.from(Vm(e,this,i))},e=zm[t];wt(r,"name",{__proto__:null,value:e.name}),wt(r,"length",{__proto__:null,value:e.length}),wt(ee.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}for(let t of Hm($m)){let r=function(...i){if(new.target)throw Km();return Vm(e,this,i)},e=$m[t];wt(r,"name",{__proto__:null,value:e.name}),wt(r,"length",{__proto__:null,value:e.length}),wt(ee.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}ee.Writable=Hs();ee.Duplex=st();ee.Transform=Su();ee.PassThrough=vu();ee.pipeline=Zm;var{addAbortSignal:kN}=Gi();ee.addAbortSignal=kN;ee.finished=Qm;ee.destroy=CN;ee.compose=PN;ee.setDefaultHighWaterMark=LN;ee.getDefaultHighWaterMark=NN;wt(ee,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return Bu}});wt(Zm,Ym,{__proto__:null,enumerable:!0,get(){return Bu.pipeline}});wt(Qm,Ym,{__proto__:null,enumerable:!0,get(){return Bu.finished}});ee.Stream=ee;ee._isUint8Array=function(e){return e instanceof Uint8Array};ee._uint8ArrayToBuffer=function(e){return DN.from(e.buffer,e.byteOffset,e.byteLength)}});var cr=g((W4,j)=>{"use strict";var he=D("stream");if(he&&process.env.READABLE_STREAM==="disable"){let t=he.promises;j.exports._uint8ArrayToBuffer=he._uint8ArrayToBuffer,j.exports._isUint8Array=he._isUint8Array,j.exports.isDisturbed=he.isDisturbed,j.exports.isErrored=he.isErrored,j.exports.isReadable=he.isReadable,j.exports.Readable=he.Readable,j.exports.Writable=he.Writable,j.exports.Duplex=he.Duplex,j.exports.Transform=he.Transform,j.exports.PassThrough=he.PassThrough,j.exports.addAbortSignal=he.addAbortSignal,j.exports.finished=he.finished,j.exports.destroy=he.destroy,j.exports.pipeline=he.pipeline,j.exports.compose=he.compose,Object.defineProperty(he,"promises",{configurable:!0,enumerable:!0,get(){return t}}),j.exports.Stream=he.Stream}else{let t=ju(),e=Fu(),r=t.Readable.destroy;j.exports=t.Readable,j.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,j.exports._isUint8Array=t._isUint8Array,j.exports.isDisturbed=t.isDisturbed,j.exports.isErrored=t.isErrored,j.exports.isReadable=t.isReadable,j.exports.Readable=t.Readable,j.exports.Writable=t.Writable,j.exports.Duplex=t.Duplex,j.exports.Transform=t.Transform,j.exports.PassThrough=t.PassThrough,j.exports.addAbortSignal=t.addAbortSignal,j.exports.finished=t.finished,j.exports.destroy=t.destroy,j.exports.destroy=r,j.exports.pipeline=t.pipeline,j.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return e}}),j.exports.Stream=t.Stream}j.exports.default=j.exports});var eb=g((G4,Jm)=>{"use strict";function MN(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}Jm.exports=MN});var nb=g((z4,ib)=>{"use strict";var tb=ms(),qN=El(),FN=vl(),rb=tb?tb.isConcatSpreadable:void 0;function jN(t){return FN(t)||qN(t)||!!(rb&&t&&t[rb])}ib.exports=jN});var to=g(($4,ob)=>{"use strict";var BN=eb(),UN=nb();function sb(t,e,r,i,n){var s=-1,o=t.length;for(r||(r=UN),n||(n=[]);++s<o;){var a=t[s];e>0&&r(a)?e>1?sb(a,e-1,r,i,n):BN(n,a):i||(n[n.length]=a)}return n}ob.exports=sb});var lb=g((H4,ab)=>{"use strict";var WN=to();function GN(t){var e=t==null?0:t.length;return e?WN(t,1):[]}ab.exports=GN});var tn=g((V4,ub)=>{"use strict";var zN=Ci(),$N=zN(Object,"create");ub.exports=$N});var hb=g((Y4,cb)=>{"use strict";var fb=tn();function HN(){this.__data__=fb?fb(null):{},this.size=0}cb.exports=HN});var pb=g((K4,db)=>{"use strict";function VN(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}db.exports=VN});var _b=g((Z4,gb)=>{"use strict";var YN=tn(),KN="__lodash_hash_undefined__",ZN=Object.prototype,QN=ZN.hasOwnProperty;function XN(t){var e=this.__data__;if(YN){var r=e[t];return r===KN?void 0:r}return QN.call(e,t)?e[t]:void 0}gb.exports=XN});var mb=g((Q4,yb)=>{"use strict";var JN=tn(),eC=Object.prototype,tC=eC.hasOwnProperty;function rC(t){var e=this.__data__;return JN?e[t]!==void 0:tC.call(e,t)}yb.exports=rC});var wb=g((X4,bb)=>{"use strict";var iC=tn(),nC="__lodash_hash_undefined__";function sC(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=iC&&e===void 0?nC:e,this}bb.exports=sC});var Eb=g((J4,Sb)=>{"use strict";var oC=hb(),aC=pb(),lC=_b(),uC=mb(),fC=wb();function Kr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Kr.prototype.clear=oC;Kr.prototype.delete=aC;Kr.prototype.get=lC;Kr.prototype.has=uC;Kr.prototype.set=fC;Sb.exports=Kr});var xb=g((e6,vb)=>{"use strict";function cC(){this.__data__=[],this.size=0}vb.exports=cC});var rn=g((t6,Tb)=>{"use strict";var hC=ws();function dC(t,e){for(var r=t.length;r--;)if(hC(t[r][0],e))return r;return-1}Tb.exports=dC});var Ab=g((r6,Rb)=>{"use strict";var pC=rn(),gC=Array.prototype,_C=gC.splice;function yC(t){var e=this.__data__,r=pC(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():_C.call(e,r,1),--this.size,!0}Rb.exports=yC});var Ib=g((i6,Ob)=>{"use strict";var mC=rn();function bC(t){var e=this.__data__,r=mC(e,t);return r<0?void 0:e[r][1]}Ob.exports=bC});var Pb=g((n6,Db)=>{"use strict";var wC=rn();function SC(t){return wC(this.__data__,t)>-1}Db.exports=SC});var Nb=g((s6,Lb)=>{"use strict";var EC=rn();function vC(t,e){var r=this.__data__,i=EC(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}Lb.exports=vC});var kb=g((o6,Cb)=>{"use strict";var xC=xb(),TC=Ab(),RC=Ib(),AC=Pb(),OC=Nb();function Zr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Zr.prototype.clear=xC;Zr.prototype.delete=TC;Zr.prototype.get=RC;Zr.prototype.has=AC;Zr.prototype.set=OC;Cb.exports=Zr});var qb=g((a6,Mb)=>{"use strict";var IC=Ci(),DC=Pr(),PC=IC(DC,"Map");Mb.exports=PC});var Bb=g((l6,jb)=>{"use strict";var Fb=Eb(),LC=kb(),NC=qb();function CC(){this.size=0,this.__data__={hash:new Fb,map:new(NC||LC),string:new Fb}}jb.exports=CC});var Wb=g((u6,Ub)=>{"use strict";function kC(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}Ub.exports=kC});var nn=g((f6,Gb)=>{"use strict";var MC=Wb();function qC(t,e){var r=t.__data__;return MC(e)?r[typeof e=="string"?"string":"hash"]:r.map}Gb.exports=qC});var $b=g((c6,zb)=>{"use strict";var FC=nn();function jC(t){var e=FC(this,t).delete(t);return this.size-=e?1:0,e}zb.exports=jC});var Vb=g((h6,Hb)=>{"use strict";var BC=nn();function UC(t){return BC(this,t).get(t)}Hb.exports=UC});var Kb=g((d6,Yb)=>{"use strict";var WC=nn();function GC(t){return WC(this,t).has(t)}Yb.exports=GC});var Qb=g((p6,Zb)=>{"use strict";var zC=nn();function $C(t,e){var r=zC(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}Zb.exports=$C});var Jb=g((g6,Xb)=>{"use strict";var HC=Bb(),VC=$b(),YC=Vb(),KC=Kb(),ZC=Qb();function Qr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Qr.prototype.clear=HC;Qr.prototype.delete=VC;Qr.prototype.get=YC;Qr.prototype.has=KC;Qr.prototype.set=ZC;Xb.exports=Qr});var tw=g((_6,ew)=>{"use strict";var QC="__lodash_hash_undefined__";function XC(t){return this.__data__.set(t,QC),this}ew.exports=XC});var iw=g((y6,rw)=>{"use strict";function JC(t){return this.__data__.has(t)}rw.exports=JC});var Uu=g((m6,nw)=>{"use strict";var ek=Jb(),tk=tw(),rk=iw();function ro(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new ek;++e<r;)this.add(t[e])}ro.prototype.add=ro.prototype.push=tk;ro.prototype.has=rk;nw.exports=ro});var ow=g((b6,sw)=>{"use strict";function ik(t,e,r,i){for(var n=t.length,s=r+(i?1:-1);i?s--:++s<n;)if(e(t[s],s,t))return s;return-1}sw.exports=ik});var lw=g((w6,aw)=>{"use strict";function nk(t){return t!==t}aw.exports=nk});var fw=g((S6,uw)=>{"use strict";function sk(t,e,r){for(var i=r-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}uw.exports=sk});var hw=g((E6,cw)=>{"use strict";var ok=ow(),ak=lw(),lk=fw();function uk(t,e,r){return e===e?lk(t,e,r):ok(t,ak,r)}cw.exports=uk});var Wu=g((v6,dw)=>{"use strict";var fk=hw();function ck(t,e){var r=t==null?0:t.length;return!!r&&fk(t,e,0)>-1}dw.exports=ck});var Gu=g((x6,pw)=>{"use strict";function hk(t,e,r){for(var i=-1,n=t==null?0:t.length;++i<n;)if(r(e,t[i]))return!0;return!1}pw.exports=hk});var _w=g((T6,gw)=>{"use strict";function dk(t,e){for(var r=-1,i=t==null?0:t.length,n=Array(i);++r<i;)n[r]=e(t[r],r,t);return n}gw.exports=dk});var zu=g((R6,yw)=>{"use strict";function pk(t,e){return t.has(e)}yw.exports=pk});var bw=g((A6,mw)=>{"use strict";var gk=Uu(),_k=Wu(),yk=Gu(),mk=_w(),bk=xl(),wk=zu(),Sk=200;function Ek(t,e,r,i){var n=-1,s=_k,o=!0,a=t.length,l=[],u=e.length;if(!a)return l;r&&(e=mk(e,bk(r))),i?(s=yk,o=!1):e.length>=Sk&&(s=wk,o=!1,e=new gk(e));e:for(;++n<a;){var f=t[n],c=r==null?f:r(f);if(f=i||f!==0?f:0,o&&c===c){for(var h=u;h--;)if(e[h]===c)continue e;l.push(f)}else s(e,c,i)||l.push(f)}return l}mw.exports=Ek});var $u=g((O6,ww)=>{"use strict";var vk=Ss(),xk=Lr();function Tk(t){return xk(t)&&vk(t)}ww.exports=Tk});var vw=g((I6,Ew)=>{"use strict";var Rk=bw(),Ak=to(),Ok=bs(),Sw=$u(),Ik=Ok(function(t,e){return Sw(t)?Rk(t,Ak(e,1,Sw,!0)):[]});Ew.exports=Ik});var Tw=g((D6,xw)=>{"use strict";var Dk=Ci(),Pk=Pr(),Lk=Dk(Pk,"Set");xw.exports=Lk});var Aw=g((P6,Rw)=>{"use strict";function Nk(){}Rw.exports=Nk});var Hu=g((L6,Ow)=>{"use strict";function Ck(t){var e=-1,r=Array(t.size);return t.forEach(function(i){r[++e]=i}),r}Ow.exports=Ck});var Dw=g((N6,Iw)=>{"use strict";var Vu=Tw(),kk=Aw(),Mk=Hu(),qk=1/0,Fk=Vu&&1/Mk(new Vu([,-0]))[1]==qk?function(t){return new Vu(t)}:kk;Iw.exports=Fk});var Lw=g((C6,Pw)=>{"use strict";var jk=Uu(),Bk=Wu(),Uk=Gu(),Wk=zu(),Gk=Dw(),zk=Hu(),$k=200;function Hk(t,e,r){var i=-1,n=Bk,s=t.length,o=!0,a=[],l=a;if(r)o=!1,n=Uk;else if(s>=$k){var u=e?null:Gk(t);if(u)return zk(u);o=!1,n=Wk,l=new jk}else l=e?[]:a;e:for(;++i<s;){var f=t[i],c=e?e(f):f;if(f=r||f!==0?f:0,o&&c===c){for(var h=l.length;h--;)if(l[h]===c)continue e;e&&l.push(c),a.push(f)}else n(l,c,r)||(l!==a&&l.push(c),a.push(f))}return a}Pw.exports=Hk});var Cw=g((k6,Nw)=>{"use strict";var Vk=to(),Yk=bs(),Kk=Lw(),Zk=$u(),Qk=Yk(function(t){return Kk(Vk(t,1,Zk,!0))});Nw.exports=Qk});var Mw=g((M6,kw)=>{"use strict";function Xk(t,e){return function(r){return t(e(r))}}kw.exports=Xk});var Fw=g((q6,qw)=>{"use strict";var Jk=Mw(),eM=Jk(Object.getPrototypeOf,Object);qw.exports=eM});var Uw=g((F6,Bw)=>{"use strict";var tM=Li(),rM=Fw(),iM=Lr(),nM="[object Object]",sM=Function.prototype,oM=Object.prototype,jw=sM.toString,aM=oM.hasOwnProperty,lM=jw.call(Object);function uM(t){if(!iM(t)||tM(t)!=nM)return!1;var e=rM(t);if(e===null)return!0;var r=aM.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&jw.call(r)==lM}Bw.exports=uM});var Ww=g(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.assertValidPattern=void 0;var fM=1024*64,cM=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>fM)throw new TypeError("pattern is too long")};io.assertValidPattern=cM});var zw=g(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.parseClass=void 0;var hM={"[: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,"\\$&"),dM=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Gw=t=>t.join(""),pM=(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[S,[m,b,v]]of Object.entries(hM))if(t.startsWith(S,s)){if(c)return["$.",!1,t.length-r,!0];s+=S.length,v?n.push(m):i.push(m),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[dM(p),!1,f-r,!1]}let h="["+(u?"^":"")+Gw(i)+"]",d="["+(u?"":"^")+Gw(n)+"]";return[i.length&&n.length?"("+h+"|"+d+")":i.length?h:d,a,f-r,!0]};no.parseClass=pM});var oo=g(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.unescape=void 0;var gM=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");so.unescape=gM});var Zu=g(fo=>{"use strict";var Le;Object.defineProperty(fo,"__esModule",{value:!0});fo.AST=void 0;var _M=zw(),ao=oo(),yM=new Set(["!","?","+","*","@"]),Yu=t=>yM.has(t),$w=t=>Yu(t.type),mM=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),bM=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),wM=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Hw=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),SM="(?!(?:^|/)\\.\\.?(?:$|/))",lo="(?!\\.)",EM=new Set(["[","."]),vM=new Set(["..","."]),xM=new Set("().*{}+?[]^$\\!"),TM=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ku="[^/]",Vw=Ku+"*?",Yw=Ku+"+?",uo=class{type;#e;#r;#n=!1;#t=[];#o;#S;#u;#c=!1;#l;#a;#s=!1;constructor(e,r,i={}){this.type=e,e&&(this.#r=!0),this.#o=r,this.#e=this.#o?this.#o.#e:this,this.#l=this.#e===this?i:this.#e.#l,this.#u=this.#e===this?[]:this.#e.#u,e==="!"&&!this.#e.#c&&this.#u.push(this),this.#S=this.#o?this.#o.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#a!==void 0?this.#a:this.type?this.#a=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#a=this.#t.map(e=>String(e)).join("")}#y(){if(this!==this.#e)throw new Error("should only call on root");if(this.#c)return this;this.toString(),this.#c=!0;let e;for(;e=this.#u.pop();){if(e.type!=="!")continue;let r=e,i=r.#o;for(;i;){for(let n=r.#S+1;!i.type&&n<i.#t.length;n++)for(let s of e.#t){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(i.#t[n])}r=i,i=r.#o}}return this}push(...e){for(let r of e)if(r!==""){if(typeof r!="string"&&!(r instanceof Le&&r.#o===this))throw new Error("invalid part: "+r);this.#t.push(r)}}toJSON(){let e=this.type===null?this.#t.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#t.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#c&&this.#o?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#o?.isStart())return!1;if(this.#S===0)return!0;let e=this.#o;for(let r=0;r<this.#S;r++){let i=e.#t[r];if(!(i instanceof Le&&i.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#o?.type==="!")return!0;if(!this.#o?.isEnd())return!1;if(!this.type)return this.#o?.isEnd();let e=this.#o?this.#o.#t.length:0;return this.#S===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let r=new Le(this.type,e);for(let i of this.#t)r.copyIn(i);return r}static#m(e,r,i,n,s){let o=n.maxExtglobRecursion??2,a=!1,l=!1,u=-1,f=!1;if(r.type===null){let p=i,S="";for(;p<e.length;){let m=e.charAt(p++);if(a||m==="\\"){a=!a,S+=m;continue}if(l){p===u+1?(m==="^"||m==="!")&&(f=!0):m==="]"&&!(p===u+2&&f)&&(l=!1),S+=m;continue}else if(m==="["){l=!0,u=p,f=!1,S+=m;continue}if(!n.noext&&Yu(m)&&e.charAt(p)==="("&&s<=o){r.push(S),S="";let v=new Le(m,r);p=Le.#m(e,v,p,n,s+1),r.push(v);continue}S+=m}return r.push(S),p}let c=i+1,h=new Le(null,r),d=[],y="";for(;c<e.length;){let p=e.charAt(c++);if(a||p==="\\"){a=!a,y+=p;continue}if(l){c===u+1?(p==="^"||p==="!")&&(f=!0):p==="]"&&!(c===u+2&&f)&&(l=!1),y+=p;continue}else if(p==="["){l=!0,u=c,f=!1,y+=p;continue}if(Yu(p)&&e.charAt(c)==="("&&(s<=o||r&&r.#E(p))){let m=r&&r.#E(p)?0:1;h.push(y),y="";let b=new Le(p,h);h.push(b),c=Le.#m(e,b,c,n,s+m);continue}if(p==="|"){h.push(y),y="",d.push(h),h=new Le(null,r);continue}if(p===")")return y===""&&r.#t.length===0&&(r.#s=!0),h.push(y),y="",r.push(...d,h),c;y+=p}return r.type=null,r.#r=void 0,r.#t=[e.substring(i-1)],c}#g(e){return this.#d(e,bM)}#d(e,r=mM){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=wM){return!!r.get(this.type)?.includes(e)}#p(e,r){let i=e.#t[0],n=new Le(null,i,this.options);n.#t.push(""),i.push(n),this.#x(e,r)}#x(e,r){let i=e.#t[0];this.#t.splice(r,1,...i.#t);for(let n of i.#t)typeof n=="object"&&(n.#o=this);this.#a=void 0}#T(e){return!!Hw.get(this.type)?.has(e)}#_(e){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null||this.#t.length!==1)return!1;let r=e.#t[0];return!r||typeof r!="object"||r.type===null?!1:this.#T(r.type)}#v(e){let r=Hw.get(this.type),i=e.#t[0],n=r?.get(i.type);if(!n)return!1;this.#t=i.#t;for(let s of this.#t)typeof s=="object"&&(s.#o=this);this.type=n,this.#a=void 0,this.#s=!1}#b(){if($w(this)){let e=0,r=!1;do{r=!0;for(let i=0;i<this.#t.length;i++){let n=this.#t[i];typeof n=="object"&&(n.#b(),this.#d(n)?(r=!1,this.#x(n,i)):this.#g(n)?(r=!1,this.#p(n,i)):this.#_(n)&&(r=!1,this.#v(n)))}}while(!r&&++e<10)}else for(let e of this.#t)typeof e=="object"&&e.#b();this.#a=void 0}static fromGlob(e,r={}){let i=new Le(null,void 0,r);return Le.#m(e,i,0,r,0),i}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[r,i,n,s]=this.toRegExpSource();if(!(n||this.#r||this.#l.nocase&&!this.#l.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return i;let a=(this.#l.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:e})}get options(){return this.#l}toRegExpSource(e){let r=e??!!this.#l.dot;if(this.#e===this&&(this.#b(),this.#y()),!$w(this)){let l=this.isStart()&&this.isEnd(),u=this.#t.map(d=>{let[y,p,S,m]=typeof d=="string"?Le.#R(d,this.#r,l):d.toRegExpSource(e);return this.#r=this.#r||S,this.#n=this.#n||m,y}).join(""),f="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&vM.has(this.#t[0]))){let y=EM,p=r&&y.has(u.charAt(0))||u.startsWith("\\.")&&y.has(u.charAt(2))||u.startsWith("\\.\\.")&&y.has(u.charAt(4)),S=!r&&!e&&y.has(u.charAt(0));f=p?SM:S?lo:""}let c="";return this.isEnd()&&this.#e.#c&&this.#o?.type==="!"&&(c="(?:$|\\/)"),[f+u+c,(0,ao.unescape)(u),this.#r=!!this.#r,this.#n]}let i=this.type==="*"||this.type==="+",n=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#h(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString(),u=this;return u.#t=[l],u.type=null,u.#r=void 0,[l,(0,ao.unescape)(this.toString()),!1,!1]}let o=!i||e||r||!lo?"":this.#h(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!r?lo:"")+Yw;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?lo:"")+Vw+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=n+s+l}return[a,(0,ao.unescape)(s),this.#r=!!this.#r,this.#n]}#h(e){return this.#t.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[i,n,s,o]=r.toRegExpSource(e);return this.#n=this.#n||o,i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#R(e,r,i=!1){let n=!1,s="",o=!1,a=!1;for(let l=0;l<e.length;l++){let u=e.charAt(l);if(n){n=!1,s+=(xM.has(u)?"\\":"")+u,a=!1;continue}if(u==="\\"){l===e.length-1?s+="\\\\":n=!0;continue}if(u==="["){let[f,c,h,d]=(0,_M.parseClass)(e,l);if(h){s+=f,o=o||c,l+=h-1,r=r||d,a=!1;continue}}if(u==="*"){if(a)continue;a=!0,s+=i&&/^[*]+$/.test(e)?Yw:Vw,r=!0;continue}else a=!1;if(u==="?"){s+=Ku,r=!0;continue}s+=TM(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 RM=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");co.escape=RM});var qt=g(I=>{"use strict";var AM=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 OM=AM(na()),ho=Ww(),Qw=Zu(),IM=Qu(),DM=oo(),PM=(t,e,r={})=>((0,ho.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new hr(e,r).match(t));I.minimatch=PM;var LM=/^\*+([^+@!?\*\[\(]*)$/,NM=t=>e=>!e.startsWith(".")&&e.endsWith(t),CM=t=>e=>e.endsWith(t),kM=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),MM=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),qM=/^\*+\.\*+$/,FM=t=>!t.startsWith(".")&&t.includes("."),jM=t=>t!=="."&&t!==".."&&t.includes("."),BM=/^\.\*+$/,UM=t=>t!=="."&&t!==".."&&t.startsWith("."),WM=/^\*+$/,GM=t=>t.length!==0&&!t.startsWith("."),zM=t=>t.length!==0&&t!=="."&&t!=="..",$M=/^\?+([^+@!?\*\[\(]*)?$/,HM=([t,e=""])=>{let r=Xw([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},VM=([t,e=""])=>{let r=Jw([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},YM=([t,e=""])=>{let r=Jw([t]);return e?i=>r(i)&&i.endsWith(e):r},KM=([t,e=""])=>{let r=Xw([t]);return e?i=>r(i)&&i.endsWith(e):r},Xw=([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},Jw=([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},e0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Kw={win32:{sep:"\\"},posix:{sep:"/"}};I.sep=e0==="win32"?Kw.win32.sep:Kw.posix.sep;I.minimatch.sep=I.sep;I.GLOBSTAR=Symbol("globstar **");I.minimatch.GLOBSTAR=I.GLOBSTAR;var ZM="[^/]",QM=ZM+"*?",XM="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",JM="(?:(?!(?:\\/|^)\\.).)*?",e2=(t,e={})=>r=>(0,I.minimatch)(r,t,e);I.filter=e2;I.minimatch.filter=I.filter;var Ue=(t,e={})=>Object.assign({},t,e),t2=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=t2;I.minimatch.defaults=I.defaults;var r2=(t,e={})=>((0,ho.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,OM.default)(t));I.braceExpand=r2;I.minimatch.braceExpand=I.braceExpand;var i2=(t,e={})=>new hr(t,e).makeRe();I.makeRe=i2;I.minimatch.makeRe=I.makeRe;var n2=(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=n2;I.minimatch.match=I.match;var Zw=/[?*]|[+@!]\(.*?\)|\[|\]/,s2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),hr=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,ho.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||e0,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let r of e)if(typeof r!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let n=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!Zw.test(s[2]))&&!Zw.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(f=>this.parse(f))];if(u)return[s[0],...s.slice(1).map(f=>this.parse(f))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,n),this.set=n.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let i=0;i<e.length;i++)for(let n=0;n<e[i].length;n++)e[i][n]==="**"&&(e[i][n]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let n=i;for(;r[n+1]==="**";)n++;n!==i&&r.splice(i,n-i)}return r})}levelOneOptimize(e){return e.map(r=>(r=r.reduce((i,n)=>{let s=i[i.length-1];return n==="**"&&s==="**"?i:n===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(n),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let s=e[n];n===1&&s===""&&e[0]===""||(s==="."||s==="")&&(r=!0,e.splice(n,1),n--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(r=!0,e.pop())}let i=0;for(;(i=e.indexOf("..",i+1))!==-1;){let n=e[i-1];n&&n!=="."&&n!==".."&&n!=="**"&&(r=!0,e.splice(i-1,2),i-=2)}}while(r);return e.length===0?[""]:e}firstPhasePreProcess(e){let r=!1;do{r=!1;for(let i of e){let n=-1;for(;(n=i.indexOf("**",n+1))!==-1;){let o=n;for(;i[o+1]==="**";)o++;o>n&&i.splice(n+1,o-n);let a=i[n+1],l=i[n+2],u=i[n+3];if(a!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;r=!0,i.splice(n,1);let f=i.slice(0);f[n]="**",e.push(f),n--}if(!this.preserveMultipleSlashes){for(let o=1;o<i.length-1;o++){let a=i[o];o===1&&a===""&&i[0]===""||(a==="."||a==="")&&(r=!0,i.splice(o,1),o--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){let o=i[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){r=!0;let l=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...l),i.length===0&&i.push(""),s-=2}}}}while(r);return e}secondPhasePreProcess(e){for(let r=0;r<e.length-1;r++)for(let i=r+1;i<e.length;i++){let n=this.partsMatch(e[r],e[i],!this.preserveMultipleSlashes);if(n){e[r]=[],e[i]=n;break}}return e.filter(r=>r.length)}partsMatch(e,r,i=!1){let n=0,s=0,o=[],a="";for(;n<e.length&&s<r.length;)if(e[n]===r[s])o.push(a==="b"?r[s]:e[n]),n++,s++;else if(i&&e[n]==="**"&&r[s]===e[n+1])o.push(e[n]),n++;else if(i&&r[s]==="**"&&e[n]===r[s+1])o.push(r[s]),s++;else if(e[n]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(a==="b")return!1;a="a",o.push(e[n]),n++,s++}else if(r[s]==="*"&&e[n]&&(this.options.dot||!e[n].startsWith("."))&&e[n]!=="**"){if(a==="a")return!1;a="b",o.push(r[s]),n++,s++}else return!1;return e.length===r.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,r=!1,i=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++)r=!r,i++;i&&(this.pattern=e.slice(i)),this.negate=r}matchOne(e,r,i=!1){let n=0,s=0;if(this.isWindows){let a=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),l=!a&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),u=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),f=!u&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),c=l?3:a?0:void 0,h=f?3:u?0:void 0;if(typeof c=="number"&&typeof h=="number"){let[d,y]=[e[c],r[h]];d.toLowerCase()===y.toLowerCase()&&(r[h]=d,s=h,n=c)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),r.includes(I.GLOBSTAR)?this.#e(e,r,i,n,s):this.#n(e,r,i,n,s)}#e(e,r,i,n,s){let o=r.indexOf(I.GLOBSTAR,s),a=r.lastIndexOf(I.GLOBSTAR),[l,u,f]=i?[r.slice(s,o),r.slice(o+1),[]]:[r.slice(s,o),r.slice(o+1,a),r.slice(a+1)];if(l.length){let b=e.slice(n,n+l.length);if(!this.#n(b,l,i,0,0))return!1;n+=l.length}let c=0;if(f.length){if(f.length+n>e.length)return!1;let b=e.length-f.length;if(this.#n(e,f,i,b,0))c=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||(b--,!this.#n(e,f,i,b,0)))return!1;c=f.length+1}}if(!u.length){let b=!!c;for(let v=n;v<e.length-c;v++){let E=String(e[v]);if(b=!0,E==="."||E===".."||!this.options.dot&&E.startsWith("."))return!1}return i||b}let h=[[[],0]],d=h[0],y=0,p=[0];for(let b of u)b===I.GLOBSTAR?(p.push(y),d=[[],0],h.push(d)):(d[0].push(b),y++);let S=h.length-1,m=e.length-c;for(let b of h)b[1]=m-(p[S--]+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(WM))?n=r.dot?zM:GM:(i=e.match(LM))?n=(r.nocase?r.dot?MM:kM:r.dot?CM:NM)(i[1]):(i=e.match($M))?n=(r.nocase?r.dot?VM:HM:r.dot?YM:KM)(i):(i=e.match(qM))?n=r.dot?jM:FM:(i=e.match(BM))&&(n=UM);let s=Qw.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?QM:r.dot?XM:JM,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"?s2(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 o2=Zu();Object.defineProperty(I,"AST",{enumerable:!0,get:function(){return o2.AST}});var a2=Qu();Object.defineProperty(I,"escape",{enumerable:!0,get:function(){return a2.escape}});var l2=oo();Object.defineProperty(I,"unescape",{enumerable:!0,get:function(){return l2.unescape}});I.minimatch.AST=Qw.AST;I.minimatch.Minimatch=hr;I.minimatch.escape=IM.escape;I.minimatch.unescape=DM.unescape});var s0=g(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.LRUCache=void 0;var Xr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,r0=new Set,Xu=typeof process=="object"&&process?process:{},i0=(t,e,r,i)=>{typeof Xu.emitWarning=="function"?Xu.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},po=globalThis.AbortController,t0=globalThis.AbortSignal;if(typeof po>"u"){t0=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},po=class{constructor(){e()}signal=new t0;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let n of this.signal._onabort)n(i);this.signal.onabort?.(i)}}};let t=Xu.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,i0("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var u2=t=>!r0.has(t),Ft=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),n0=t=>Ft(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Jr:null:null,Jr=class extends Array{constructor(e){super(e),this.fill(0)}},Ju=class t{heap;length;static#e=!1;static create(e){let r=n0(e);if(!r)return[];t.#e=!0;let i=new t(e,r);return t.#e=!1,i}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},ef=class t{#e;#r;#n;#t;#o;#S;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#u;#c;#l;#a;#s;#y;#m;#g;#d;#E;#p;#x;#T;#_;#v;#b;#h;static unsafeExposeInternals(e){return{starts:e.#T,ttls:e.#_,sizes:e.#x,keyMap:e.#l,keyList:e.#a,valList:e.#s,next:e.#y,prev:e.#m,get head(){return e.#g},get tail(){return e.#d},free:e.#E,isBackgroundFetch:r=>e.#f(r),backgroundFetch:(r,i,n,s)=>e.#F(r,i,n,s),moveToTail:r=>e.#B(r),indexes:r=>e.#O(r),rindexes:r=>e.#I(r),isStale:r=>e.#w(r)}}get max(){return this.#e}get maxSize(){return this.#r}get calculatedSize(){return this.#c}get size(){return this.#u}get fetchMethod(){return this.#o}get memoMethod(){return this.#S}get dispose(){return this.#n}get disposeAfter(){return this.#t}constructor(e){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:u,disposeAfter:f,noDisposeOnSet:c,noUpdateTTL:h,maxSize:d=0,maxEntrySize:y=0,sizeCalculation:p,fetchMethod:S,memoMethod:m,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:v,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:T,ignoreFetchAbort:P}=e;if(r!==0&&!Ft(r))throw new TypeError("max option must be a nonnegative integer");let x=r?n0(r):Array;if(!x)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=d,this.maxEntrySize=y||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(m!==void 0&&typeof m!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#S=m,S!==void 0&&typeof S!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=S,this.#b=!!S,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=!!E,this.allowStaleOnFetchAbort=!!T,this.ignoreFetchAbort=!!P,this.maxEntrySize!==0){if(this.#r!==0&&!Ft(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!Ft(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#D()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!v,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=Ft(n)||n===0?n:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!Ft(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#R()}if(this.#e===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#r){let O="LRU_CACHE_UNBOUNDED";u2(O)&&(r0.add(O),i0("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",O,t))}}getRemainingTTL(e){return this.#l.has(e)?1/0:0}#R(){let e=new Jr(this.#e),r=new Jr(this.#e);this.#_=e,this.#T=r,this.#L=(s,o,a=Xr.now())=>{if(r[s]=o!==0?a:0,e[s]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#w(s)&&this.#P(this.#a[s],"expire")},o+1);l.unref&&l.unref()}},this.#A=s=>{r[s]=e[s]!==0?Xr.now():0},this.#i=(s,o)=>{if(e[o]){let a=e[o],l=r[o];if(!a||!l)return;s.ttl=a,s.start=l,s.now=i||n();let u=s.now-l;s.remainingTTL=a-u}};let i=0,n=()=>{let s=Xr.now();if(this.ttlResolution>0){i=s;let o=setTimeout(()=>i=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#l.get(s);if(o===void 0)return 0;let a=e[o],l=r[o];if(!a||!l)return 1/0;let u=(i||n())-l;return a-u},this.#w=s=>{let o=r[s],a=e[s];return!!a&&!!o&&(i||n())-o>a}}#A=()=>{};#i=()=>{};#L=()=>{};#w=()=>!1;#D(){let e=new Jr(this.#e);this.#c=0,this.#x=e,this.#N=r=>{this.#c-=e[r],e[r]=0},this.#k=(r,i,n,s)=>{if(this.#f(i))return 0;if(!Ft(n))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(n=s(i,r),!Ft(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.#C=(r,i,n)=>{if(e[r]=i,this.#r){let s=this.#r-e[r];for(;this.#c>s;)this.#q(!0)}this.#c+=e[r],n&&(n.entrySize=i,n.totalCalculatedSize=this.#c)}}#N=e=>{};#C=(e,r,i)=>{};#k=(e,r,i,n)=>{if(i||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#O({allowStale:e=this.allowStale}={}){if(this.#u)for(let r=this.#d;!(!this.#M(r)||((e||!this.#w(r))&&(yield r),r===this.#g));)r=this.#m[r]}*#I({allowStale:e=this.allowStale}={}){if(this.#u)for(let r=this.#g;!(!this.#M(r)||((e||!this.#w(r))&&(yield r),r===this.#d));)r=this.#y[r]}#M(e){return e!==void 0&&this.#l.get(this.#a[e])===e}*entries(){for(let e of this.#O())this.#s[e]!==void 0&&this.#a[e]!==void 0&&!this.#f(this.#s[e])&&(yield[this.#a[e],this.#s[e]])}*rentries(){for(let e of this.#I())this.#s[e]!==void 0&&this.#a[e]!==void 0&&!this.#f(this.#s[e])&&(yield[this.#a[e],this.#s[e]])}*keys(){for(let e of this.#O()){let r=this.#a[e];r!==void 0&&!this.#f(this.#s[e])&&(yield r)}}*rkeys(){for(let e of this.#I()){let r=this.#a[e];r!==void 0&&!this.#f(this.#s[e])&&(yield r)}}*values(){for(let e of this.#O())this.#s[e]!==void 0&&!this.#f(this.#s[e])&&(yield this.#s[e])}*rvalues(){for(let e of this.#I())this.#s[e]!==void 0&&!this.#f(this.#s[e])&&(yield this.#s[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,r={}){for(let i of this.#O()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;if(s!==void 0&&e(s,this.#a[i],this))return this.get(this.#a[i],r)}}forEach(e,r=this){for(let i of this.#O()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&e.call(r,s,this.#a[i],this)}}rforEach(e,r=this){for(let i of this.#I()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&e.call(r,s,this.#a[i],this)}}purgeStale(){let e=!1;for(let r of this.#I({allowStale:!0}))this.#w(r)&&(this.#P(this.#a[r],"expire"),e=!0);return e}info(e){let r=this.#l.get(e);if(r===void 0)return;let i=this.#s[r],n=this.#f(i)?i.__staleWhileFetching:i;if(n===void 0)return;let s={value:n};if(this.#_&&this.#T){let o=this.#_[r],a=this.#T[r];if(o&&a){let l=o-(Xr.now()-a);s.ttl=l,s.start=Date.now()}}return this.#x&&(s.size=this.#x[r]),s}dump(){let e=[];for(let r of this.#O({allowStale:!0})){let i=this.#a[r],n=this.#s[r],s=this.#f(n)?n.__staleWhileFetching:n;if(s===void 0||i===void 0)continue;let o={value:s};if(this.#_&&this.#T){o.ttl=this.#_[r];let a=Xr.now()-this.#T[r];o.start=Math.floor(Date.now()-a)}this.#x&&(o.size=this.#x[r]),e.unshift([i,o])}return e}load(e){this.clear();for(let[r,i]of e){if(i.start){let n=Date.now()-i.start;i.start=Xr.now()-n}this.set(r,i.value,i)}}set(e,r,i={}){if(r===void 0)return this.delete(e),this;let{ttl:n=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=i,{noUpdateTTL:u=this.noUpdateTTL}=i,f=this.#k(e,r,i.size||0,a);if(this.maxEntrySize&&f>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#P(e,"set"),this;let c=this.#u===0?void 0:this.#l.get(e);if(c===void 0)c=this.#u===0?this.#d:this.#E.length!==0?this.#E.pop():this.#u===this.#e?this.#q(!1):this.#u,this.#a[c]=e,this.#s[c]=r,this.#l.set(e,c),this.#y[this.#d]=c,this.#m[c]=this.#d,this.#d=c,this.#u++,this.#C(c,f,l),l&&(l.set="add"),u=!1;else{this.#B(c);let h=this.#s[c];if(r!==h){if(this.#b&&this.#f(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=h;d!==void 0&&!o&&(this.#v&&this.#n?.(d,e,"set"),this.#h&&this.#p?.push([d,e,"set"]))}else o||(this.#v&&this.#n?.(h,e,"set"),this.#h&&this.#p?.push([h,e,"set"]));if(this.#N(c),this.#C(c,f,l),this.#s[c]=r,l){l.set="replace";let d=h&&this.#f(h)?h.__staleWhileFetching:h;d!==void 0&&(l.oldValue=d)}}else l&&(l.set="update")}if(n!==0&&!this.#_&&this.#R(),this.#_&&(u||this.#L(c,n,s),l&&this.#i(l,c)),!o&&this.#h&&this.#p){let h=this.#p,d;for(;d=h?.shift();)this.#t?.(...d)}return this}pop(){try{for(;this.#u;){let e=this.#s[this.#g];if(this.#q(!0),this.#f(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#h&&this.#p){let e=this.#p,r;for(;r=e?.shift();)this.#t?.(...r)}}}#q(e){let r=this.#g,i=this.#a[r],n=this.#s[r];return this.#b&&this.#f(n)?n.__abortController.abort(new Error("evicted")):(this.#v||this.#h)&&(this.#v&&this.#n?.(n,i,"evict"),this.#h&&this.#p?.push([n,i,"evict"])),this.#N(r),e&&(this.#a[r]=void 0,this.#s[r]=void 0,this.#E.push(r)),this.#u===1?(this.#g=this.#d=0,this.#E.length=0):this.#g=this.#y[r],this.#l.delete(i),this.#u--,r}has(e,r={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:n}=r,s=this.#l.get(e);if(s!==void 0){let o=this.#s[s];if(this.#f(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#w(s))n&&(n.has="stale",this.#i(n,s));else return i&&this.#A(s),n&&(n.has="hit",this.#i(n,s)),!0}else n&&(n.has="miss");return!1}peek(e,r={}){let{allowStale:i=this.allowStale}=r,n=this.#l.get(e);if(n===void 0||!i&&this.#w(n))return;let s=this.#s[n];return this.#f(s)?s.__staleWhileFetching:s}#F(e,r,i,n){let s=r===void 0?void 0:this.#s[r];if(this.#f(s))return s;let o=new po,{signal:a}=i;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:i,context:n},u=(p,S=!1)=>{let{aborted:m}=o.signal,b=i.ignoreFetchAbort&&p!==void 0;if(i.status&&(m&&!S?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,b&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),m&&!b&&!S)return c(o.signal.reason);let v=d;return this.#s[r]===d&&(p===void 0?v.__staleWhileFetching?this.#s[r]=v.__staleWhileFetching:this.#P(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,p,l.options))),p},f=p=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=p),c(p)),c=p=>{let{aborted:S}=o.signal,m=S&&i.allowStaleOnFetchAbort,b=m||i.allowStaleOnFetchRejection,v=b||i.noDeleteOnFetchRejection,E=d;if(this.#s[r]===d&&(!v||E.__staleWhileFetching===void 0?this.#P(e,"fetch"):m||(this.#s[r]=E.__staleWhileFetching)),b)return i.status&&E.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),E.__staleWhileFetching;if(E.__returned===E)throw p},h=(p,S)=>{let m=this.#o?.(e,s,l);m&&m instanceof Promise&&m.then(b=>p(b===void 0?void 0:b),S),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),y=Object.assign(d,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(e,y,{...l.options,status:void 0}),r=this.#l.get(e)):this.#s[r]=y,y}#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:y=this.allowStaleOnFetchAbort,context:p,forceRefresh:S=!1,status:m,signal:b}=r;if(!this.#b)return m&&(m.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:m});let v={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:u,noUpdateTTL:f,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:y,ignoreFetchAbort:d,status:m,signal:b},E=this.#l.get(e);if(E===void 0){m&&(m.fetch="miss");let T=this.#F(e,E,v,p);return T.__returned=T}else{let T=this.#s[E];if(this.#f(T)){let R=i&&T.__staleWhileFetching!==void 0;return m&&(m.fetch="inflight",R&&(m.returnedStale=!0)),R?T.__staleWhileFetching:T.__returned=T}let P=this.#w(E);if(!S&&!P)return m&&(m.fetch="hit"),this.#B(E),n&&this.#A(E),m&&this.#i(m,E),T;let x=this.#F(e,E,v,p),w=x.__staleWhileFetching!==void 0&&i;return m&&(m.fetch=P?"stale":"refresh",w&&P&&(m.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 f2=De&&De.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(De,"__esModule",{value:!0});De.Minipass=De.isWritable=De.isReadable=De.isStream=void 0;var o0=typeof process=="object"&&process?process:{stdout:null,stderr:null},lf=D("events"),f0=f2(D("stream")),c2=D("string_decoder"),h2=t=>!!t&&typeof t=="object"&&(t instanceof Eo||t instanceof f0.default||(0,De.isReadable)(t)||(0,De.isWritable)(t));De.isStream=h2;var d2=t=>!!t&&typeof t=="object"&&t instanceof lf.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==f0.default.Writable.prototype.pipe;De.isReadable=d2;var p2=t=>!!t&&typeof t=="object"&&t instanceof lf.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";De.isWritable=p2;var St=Symbol("EOF"),Et=Symbol("maybeEmitEnd"),jt=Symbol("emittedEnd"),_o=Symbol("emittingEnd"),on=Symbol("emittedError"),yo=Symbol("closed"),a0=Symbol("read"),mo=Symbol("flush"),l0=Symbol("flushChunk"),Ke=Symbol("encoding"),ei=Symbol("decoder"),de=Symbol("flowing"),an=Symbol("paused"),ti=Symbol("resume"),pe=Symbol("buffer"),Ie=Symbol("pipes"),ge=Symbol("bufferLength"),tf=Symbol("bufferPush"),bo=Symbol("bufferShift"),Re=Symbol("objectMode"),le=Symbol("destroyed"),rf=Symbol("error"),nf=Symbol("emitData"),u0=Symbol("emitEnd"),sf=Symbol("emitEnd2"),at=Symbol("async"),of=Symbol("abort"),wo=Symbol("aborted"),ln=Symbol("signal"),dr=Symbol("dataListeners"),Ce=Symbol("discarded"),un=t=>Promise.resolve().then(t),g2=t=>t(),_2=t=>t==="end"||t==="finish"||t==="prefinish",y2=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,m2=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)}},b2=t=>!!t.objectMode,w2=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");b2(r)?(this[Re]=!0,this[Ke]=null):w2(r)?(this[Ke]=r.encoding,this[Re]=!1):(this[Re]=!1,this[Ke]=null),this[at]=!!r.async,this[ei]=this[Ke]?new c2.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:g2;if(!this[Re]&&!Buffer.isBuffer(e)){if(m2(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(y2(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Re]?(this[de]&&this[ge]!==0&&this[mo](!0),this[de]?this.emit("data",e):this[tf](e),this[ge]!==0&&this.emit("readable"),i&&n(i),this[de]):e.length?(typeof e=="string"&&!(r===this[Ke]&&!this[ei]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ke]&&(e=this[ei].write(e)),this[de]&&this[ge]!==0&&this[mo](!0),this[de]?this.emit("data",e):this[tf](e),this[ge]!==0&&this.emit("readable"),i&&n(i),this[de]):(this[ge]!==0&&this.emit("readable"),i&&n(i),this[de])}read(e){if(this[le])return null;if(this[Ce]=!1,this[ge]===0||e===0||e&&e>this[ge])return this[Et](),null;this[Re]&&(e=null),this[pe].length>1&&!this[Re]&&(this[pe]=[this[Ke]?this[pe].join(""):Buffer.concat(this[pe],this[ge])]);let r=this[a0](e||null,this[pe][0]);return this[Et](),r}[a0](e,r){if(this[Re])this[bo]();else{let i=r;e===i.length||e===null?this[bo]():typeof i=="string"?(this[pe][0]=i.slice(e),r=i.slice(0,e),this[ge]-=e):(this[pe][0]=i.subarray(e),r=i.subarray(0,e),this[ge]-=e)}return this.emit("data",r),!this[pe].length&&!this[St]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=void 0),typeof r=="function"&&(i=r,r="utf8"),e!==void 0&&this.write(e,r),i&&this.once("end",i),this[St]=!0,this.writable=!1,(this[de]||!this[an])&&this[Et](),this}[ti](){this[le]||(!this[dr]&&!this[Ie].length&&(this[Ce]=!0),this[an]=!1,this[de]=!0,this.emit("resume"),this[pe].length?this[mo]():this[St]?this[Et]():this.emit("drain"))}resume(){return this[ti]()}pause(){this[de]=!1,this[an]=!0,this[Ce]=!1}get destroyed(){return this[le]}get flowing(){return this[de]}get paused(){return this[an]}[tf](e){this[Re]?this[ge]+=1:this[ge]+=e.length,this[pe].push(e)}[bo](){return this[Re]?this[ge]-=1:this[ge]-=this[pe][0].length,this[pe].shift()}[mo](e=!1){do;while(this[l0](this[bo]())&&this[pe].length);!e&&!this[pe].length&&!this[St]&&this.emit("drain")}[l0](e){return this.emit("data",e),this[de]}pipe(e,r){if(this[le])return e;this[Ce]=!1;let i=this[jt];return r=r||{},e===o0.stdout||e===o0.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Ie].push(r.proxyErrors?new af(this,e,r):new So(this,e,r)),this[at]?un(()=>this[ti]()):this[ti]()),e}unpipe(e){let r=this[Ie].find(i=>i.dest===e);r&&(this[Ie].length===1?(this[de]&&this[dr]===0&&(this[de]=!1),this[Ie]=[]):this[Ie].splice(this[Ie].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);if(e==="data")this[Ce]=!1,this[dr]++,!this[Ie].length&&!this[de]&&this[ti]();else if(e==="readable"&&this[ge]!==0)super.emit("readable");else if(_2(e)&&this[jt])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[on]){let n=r;this[at]?un(()=>n.call(this,this[on])):n.call(this,this[on])}return i}removeListener(e,r){return this.off(e,r)}off(e,r){let i=super.off(e,r);return e==="data"&&(this[dr]=this.listeners("data").length,this[dr]===0&&!this[Ce]&&!this[Ie].length&&(this[de]=!1)),i}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[dr]=0,!this[Ce]&&!this[Ie].length&&(this[de]=!1)),r}get emittedEnd(){return this[jt]}[Et](){!this[_o]&&!this[jt]&&!this[le]&&this[pe].length===0&&this[St]&&(this[_o]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[yo]&&this.emit("close"),this[_o]=!1)}emit(e,...r){let i=r[0];if(e!=="error"&&e!=="close"&&e!==le&&this[le])return!1;if(e==="data")return!this[Re]&&!i?!1:this[at]?(un(()=>this[nf](i)),!0):this[nf](i);if(e==="end")return this[u0]();if(e==="close"){if(this[yo]=!0,!this[jt]&&!this[le])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[on]=i,super.emit(rf,i);let s=!this[ln]||this.listeners("error").length?super.emit("error",i):!1;return this[Et](),s}else if(e==="resume"){let s=super.emit("resume");return this[Et](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,...r);return this[Et](),n}[nf](e){for(let i of this[Ie])i.dest.write(e)===!1&&this.pause();let r=this[Ce]?!1:super.emit("data",e);return this[Et](),r}[u0](){return this[jt]?!1:(this[jt]=!0,this.readable=!1,this[at]?(un(()=>this[sf]()),!0):this[sf]())}[sf](){if(this[ei]){let r=this[ei].end();if(r){for(let i of this[Ie])i.dest.write(r);this[Ce]||super.emit("data",r)}}for(let r of this[Ie])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[Re]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Re]||(e.dataLength+=i.length)}),await r,e}async concat(){if(this[Re])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Ke]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,r)=>{this.on(le,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[Ce]=!1;let e=!1,r=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return r();let n=this.read();if(n!==null)return Promise.resolve({done:!1,value:n});if(this[St])return r();let s,o,a=c=>{this.off("data",l),this.off("end",u),this.off(le,f),r(),o(c)},l=c=>{this.off("error",a),this.off("end",u),this.off(le,f),this.pause(),s({value:c,done:!!this[St]})},u=()=>{this.off("error",a),this.off("data",l),this.off(le,f),r(),s({done:!0,value:void 0})},f=()=>a(new Error("stream destroyed"));return new Promise((c,h)=>{o=h,s=c,this.once(le,f),this.once("error",a),this.once("end",u),this.once("data",l)})},throw:r,return:r,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[Ce]=!1;let e=!1,r=()=>(this.pause(),this.off(rf,r),this.off(le,r),this.off("end",r),e=!0,{done:!0,value:void 0}),i=()=>{if(e)return r();let n=this.read();return n===null?r():{done:!1,value:n}};return this.once("end",r),this.once(rf,r),this.once(le,r),{next:i,throw:r,return:r,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[le])return e?this.emit("error",e):this.emit(le),this;this[le]=!0,this[Ce]=!0,this[pe].length=0,this[ge]=0;let r=this;return typeof r.close=="function"&&!this[yo]&&r.close(),e?this.emit("error",e):this.emit(le),this}static get isStream(){return De.isStream}};De.Minipass=Eo});var T0=g(H=>{"use strict";var S2=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]})),E2=H&&H.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),v2=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)&&S2(e,t,r);return E2(e,t),e};Object.defineProperty(H,"__esModule",{value:!0});H.PathScurry=H.Path=H.PathScurryDarwin=H.PathScurryPosix=H.PathScurryWin32=H.PathScurryBase=H.PathPosix=H.PathWin32=H.PathBase=H.ChildrenCache=H.ResolveCache=void 0;var _0=s0(),Ao=D("path"),x2=D("url"),cn=D("fs"),T2=v2(D("fs")),R2=cn.realpathSync.native,vo=D("fs/promises"),c0=uf(),hn={lstatSync:cn.lstatSync,readdir:cn.readdir,readdirSync:cn.readdirSync,readlinkSync:cn.readlinkSync,realpathSync:R2,promises:{lstat:vo.lstat,readdir:vo.readdir,readlink:vo.readlink,realpath:vo.realpath}},y0=t=>!t||t===hn||t===T2?hn:{...hn,...t,promises:{...hn.promises,...t.promises||{}}},m0=/^\\\\\?\\([a-z]:)\\?$/i,A2=t=>t.replace(/\//g,"\\").replace(m0,"$1\\"),O2=/[\\\/]/,Ge=0,b0=1,w0=2,lt=4,S0=6,E0=8,pr=10,v0=12,We=15,fn=~We,ff=16,h0=32,dn=64,Ze=128,xo=256,Ro=512,d0=dn|Ze|Ro,I2=1023,cf=t=>t.isFile()?E0:t.isDirectory()?lt:t.isSymbolicLink()?pr:t.isCharacterDevice()?w0:t.isBlockDevice()?S0:t.isSocket()?v0:t.isFIFO()?b0:Ge,p0=new Map,pn=t=>{let e=p0.get(t);if(e)return e;let r=t.normalize("NFKD");return p0.set(t,r),r},g0=new Map,To=t=>{let e=g0.get(t);if(e)return e;let r=pn(t.toLowerCase());return g0.set(t,r),r},gn=class extends _0.LRUCache{constructor(){super({max:256})}};H.ResolveCache=gn;var Oo=class extends _0.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:r=>r.length+1})}};H.ChildrenCache=Oo;var x0=Symbol("PathScurry setAsCwd"),Se=class{name;root;roots;parent;nocase;isCWD=!1;#e;#r;get dev(){return this.#r}#n;get mode(){return this.#n}#t;get nlink(){return this.#t}#o;get uid(){return this.#o}#S;get gid(){return this.#S}#u;get rdev(){return this.#u}#c;get blksize(){return this.#c}#l;get ino(){return this.#l}#a;get size(){return this.#a}#s;get blocks(){return this.#s}#y;get atimeMs(){return this.#y}#m;get mtimeMs(){return this.#m}#g;get ctimeMs(){return this.#g}#d;get birthtimeMs(){return this.#d}#E;get atime(){return this.#E}#p;get mtime(){return this.#p}#x;get ctime(){return this.#x}#T;get birthtime(){return this.#T}#_;#v;#b;#h;#R;#A;#i;#L;#w;#D;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,r=Ge,i,n,s,o,a){this.name=e,this.#_=s?To(e):pn(e),this.#i=r&I2,this.nocase=s,this.roots=n,this.root=i||this,this.#L=o,this.#b=a.fullpath,this.#R=a.relative,this.#A=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=y0(a.fs)}depth(){return this.#v!==void 0?this.#v:this.parent?this.#v=this.parent.depth()+1:this.#v=0}childrenCache(){return this.#L}resolve(e){if(!e)return this;let r=this.getRootString(e),n=e.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#N(n):this.#N(n)}#N(e){let r=this;for(let i of e)r=r.child(i);return r}children(){let e=this.#L.get(this);if(e)return e;let r=Object.assign([],{provisional:0});return this.#L.set(this,r),this.#i&=~ff,r}child(e,r){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let i=this.children(),n=this.nocase?To(e):pn(e);for(let l of i)if(l.#_===n)return l;let s=this.parent?this.sep:"",o=this.#b?this.#b+s+e:void 0,a=this.newChild(e,Ge,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#i|=Ze),i.push(a),a}relative(){if(this.isCWD)return"";if(this.#R!==void 0)return this.#R;let e=this.name,r=this.parent;if(!r)return this.#R=this.name;let i=r.relative();return i+(!i||!r.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#A!==void 0)return this.#A;let e=this.name,r=this.parent;if(!r)return this.#A=this.fullpathPosix();let i=r.relativePosix();return i+(!i||!r.parent?"":"/")+e}fullpath(){if(this.#b!==void 0)return this.#b;let e=this.name,r=this.parent;if(!r)return this.#b=this.name;let n=r.fullpath()+(r.parent?this.sep:"")+e;return this.#b=n}fullpathPosix(){if(this.#h!==void 0)return this.#h;if(this.sep==="/")return this.#h=this.fullpath();if(!this.parent){let n=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(n)?this.#h=`//?/${n}`:this.#h=n}let e=this.parent,r=e.fullpathPosix(),i=r+(!r||!e.parent?"":"/")+this.name;return this.#h=i}isUnknown(){return(this.#i&We)===Ge}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#i&We)===E0}isDirectory(){return(this.#i&We)===lt}isCharacterDevice(){return(this.#i&We)===w0}isBlockDevice(){return(this.#i&We)===S0}isFIFO(){return(this.#i&We)===b0}isSocket(){return(this.#i&We)===v0}isSymbolicLink(){return(this.#i&pr)===pr}lstatCached(){return this.#i&h0?this:void 0}readlinkCached(){return this.#w}realpathCached(){return this.#D}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#w)return!0;if(!this.parent)return!1;let e=this.#i&We;return!(e!==Ge&&e!==pr||this.#i&xo||this.#i&Ze)}calledReaddir(){return!!(this.#i&ff)}isENOENT(){return!!(this.#i&Ze)}isNamed(e){return this.nocase?this.#_===To(e):this.#_===pn(e)}async readlink(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),i=(await this.parent.realpath())?.resolve(r);if(i)return this.#w=i}catch(r){this.#f(r.code);return}}readlinkSync(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),i=this.parent.realpathSync()?.resolve(r);if(i)return this.#w=i}catch(r){this.#f(r.code);return}}#C(e){this.#i|=ff;for(let r=e.provisional;r<e.length;r++){let i=e[r];i&&i.#k()}}#k(){this.#i&Ze||(this.#i=(this.#i|Ze)&fn,this.#O())}#O(){let e=this.children();e.provisional=0;for(let r of e)r.#k()}#I(){this.#i|=Ro,this.#M()}#M(){if(this.#i&dn)return;let e=this.#i;(e&We)===lt&&(e&=fn),this.#i=e|dn,this.#O()}#q(e=""){e==="ENOTDIR"||e==="EPERM"?this.#M():e==="ENOENT"?this.#k():this.children().provisional=0}#F(e=""){e==="ENOTDIR"?this.parent.#M():e==="ENOENT"&&this.#k()}#f(e=""){let r=this.#i;r|=xo,e==="ENOENT"&&(r|=Ze),(e==="EINVAL"||e==="UNKNOWN")&&(r&=fn),this.#i=r,e==="ENOTDIR"&&this.parent&&this.parent.#M()}#j(e,r){return this.#P(e,r)||this.#B(e,r)}#B(e,r){let i=cf(e),n=this.newChild(e.name,i,{parent:this}),s=n.#i&We;return s!==lt&&s!==pr&&s!==Ge&&(n.#i|=dn),r.unshift(n),r.provisional++,n}#P(e,r){for(let i=r.provisional;i<r.length;i++){let n=r[i];if((this.nocase?To(e.name):pn(e.name))===n.#_)return this.#U(e,n,i,r)}}#U(e,r,i,n){let s=r.name;return r.#i=r.#i&fn|cf(e),s!==e.name&&(r.name=e.name),i!==n.provisional&&(i===n.length-1?n.pop():n.splice(i,1),n.unshift(r)),n.provisional++,r}async lstat(){if((this.#i&Ze)===0)try{return this.#$(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#F(e.code)}}lstatSync(){if((this.#i&Ze)===0)try{return this.#$(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#F(e.code)}}#$(e){let{atime:r,atimeMs:i,birthtime:n,birthtimeMs:s,blksize:o,blocks:a,ctime:l,ctimeMs:u,dev:f,gid:c,ino:h,mode:d,mtime:y,mtimeMs:p,nlink:S,rdev:m,size:b,uid:v}=e;this.#E=r,this.#y=i,this.#T=n,this.#d=s,this.#c=o,this.#s=a,this.#x=l,this.#g=u,this.#r=f,this.#S=c,this.#l=h,this.#n=d,this.#p=y,this.#m=p,this.#t=S,this.#u=m,this.#a=b,this.#o=v;let E=cf(e);this.#i=this.#i&fn|E|h0,E!==Ge&&E!==lt&&E!==pr&&(this.#i|=dn)}#G=[];#z=!1;#H(e){this.#z=!1;let r=this.#G.slice();this.#G.length=0,r.forEach(i=>i(null,e))}readdirCB(e,r=!1){if(!this.canReaddir()){r?e(null,[]):queueMicrotask(()=>e(null,[]));return}let i=this.children();if(this.calledReaddir()){let s=i.slice(0,i.provisional);r?e(null,s):queueMicrotask(()=>e(null,s));return}if(this.#G.push(e),this.#z)return;this.#z=!0;let n=this.fullpath();this.#e.readdir(n,{withFileTypes:!0},(s,o)=>{if(s)this.#q(s.code),i.provisional=0;else{for(let a of o)this.#j(a,i);this.#C(i)}this.#H(i.slice(0,i.provisional))})}#W;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();if(this.#W)await this.#W;else{let i=()=>{};this.#W=new Promise(n=>i=n);try{for(let n of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#j(n,e);this.#C(e)}catch(n){this.#q(n.code),e.provisional=0}this.#W=void 0,i()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();try{for(let i of this.#e.readdirSync(r,{withFileTypes:!0}))this.#j(i,e);this.#C(e)}catch(i){this.#q(i.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#i&d0)return!1;let e=We&this.#i;return e===Ge||e===lt||e===pr}shouldWalk(e,r){return(this.#i&lt)===lt&&!(this.#i&d0)&&!e.has(this)&&(!r||r(this))}async realpath(){if(this.#D)return this.#D;if(!((Ro|xo|Ze)&this.#i))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#D=this.resolve(e)}catch{this.#I()}}realpathSync(){if(this.#D)return this.#D;if(!((Ro|xo|Ze)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#D=this.resolve(e)}catch{this.#I()}}[x0](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let r=new Set([]),i=[],n=this;for(;n&&n.parent;)r.add(n),n.#R=i.join(this.sep),n.#A=i.join("/"),n=n.parent,i.push("..");for(n=e;n&&n.parent&&!r.has(n);)n.#R=void 0,n.#A=void 0,n=n.parent}};H.PathBase=Se;var _n=class t extends Se{sep="\\";splitSep=O2;constructor(e,r=Ge,i,n,s,o,a){super(e,r,i,n,s,o,a)}newChild(e,r=Ge,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(e){return Ao.win32.parse(e).root}getRoot(e){if(e=A2(e.toUpperCase()),e===this.root.name)return this.root;for(let[r,i]of Object.entries(this.roots))if(this.sameRoot(e,r))return this.roots[e]=i;return this.roots[e]=new bn(e,this).root}sameRoot(e,r=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(m0,"$1\\"),e===r}};H.PathWin32=_n;var yn=class t extends Se{splitSep="/";sep="/";constructor(e,r=Ge,i,n,s,o,a){super(e,r,i,n,s,o,a)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,r=Ge,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}};H.PathPosix=yn;var mn=class{root;rootPath;roots;cwd;#e;#r;#n;nocase;#t;constructor(e=process.cwd(),r,i,{nocase:n,childrenCacheSize:s=16*1024,fs:o=hn}={}){this.#t=y0(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,x2.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 y of l){let p=f--;u=u.child(y,{relative:new Array(p).fill("..").join(c),relativePosix:new Array(p).fill("..").join("/"),fullpath:h+=(d?"":c)+y}),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,y)=>{if(d)return h(d);let p=y.length;if(!p)return h();let S=()=>{--p===0&&h()};for(let m of y)(!s||s(m))&&a.push(i?m:m.fullpath()),n&&m.isSymbolicLink()?m.realpath().then(b=>b?.isUnknown()?b.lstat():b).then(b=>b?.shouldWalk(l,o)?u(b,S):S()):m.shouldWalk(l,o)?u(m,S):S()},!0)},f=e;return new Promise((c,h)=>{u(f,d=>{if(d)return h(d);c(a)})})}walkSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(e))&&a.push(i?e:e.fullpath());let l=new Set([e]);for(let u of l){let f=u.readdirSync();for(let c of f){(!s||s(c))&&a.push(i?c:c.fullpath());let h=c;if(c.isSymbolicLink()){if(!(n&&(h=c.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(l,o)&&l.add(h)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,r={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd),this.stream(e,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r;(!s||s(e))&&(yield i?e:e.fullpath());let a=new Set([e]);for(let l of a){let u=l.readdirSync();for(let f of u){(!s||s(f))&&(yield i?f:f.fullpath());let c=f;if(f.isSymbolicLink()){if(!(n&&(c=f.realpathSync())))continue;c.isUnknown()&&c.lstatSync()}c.shouldWalk(a,o)&&a.add(c)}}}stream(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new c0.Minipass({objectMode:!0});(!s||s(e))&&a.write(i?e:e.fullpath());let l=new Set,u=[e],f=0,c=()=>{let h=!1;for(;!h;){let d=u.shift();if(!d){f===0&&a.end();return}f++,l.add(d);let y=(S,m,b=!1)=>{if(S)return a.emit("error",S);if(n&&!b){let v=[];for(let E of m)E.isSymbolicLink()&&v.push(E.realpath().then(T=>T?.isUnknown()?T.lstat():T));if(v.length){Promise.all(v).then(()=>y(null,m,!0));return}}for(let v of m)v&&(!s||s(v))&&(a.write(i?v:v.fullpath())||(h=!0));f--;for(let v of m){let E=v.realpathCached()||v;E.shouldWalk(l,o)&&u.push(E)}h&&!a.flowing?a.once("drain",c):p||c()},p=!0;d.readdirCB(y,!0),p=!1}};return c(),a}streamSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new c0.Minipass({objectMode:!0}),l=new Set;(!s||s(e))&&a.write(i?e:e.fullpath());let u=[e],f=0,c=()=>{let h=!1;for(;!h;){let d=u.shift();if(!d){f===0&&a.end();return}f++,l.add(d);let y=d.readdirSync();for(let p of y)(!s||s(p))&&(a.write(i?p:p.fullpath())||(h=!0));f--;for(let p of y){let S=p;if(p.isSymbolicLink()){if(!(n&&(S=p.realpathSync())))continue;S.isUnknown()&&S.lstatSync()}S.shouldWalk(l,o)&&u.push(S)}}h&&!a.flowing&&a.once("drain",c)};return c(),a}chdir(e=this.cwd){let r=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[x0](r)}};H.PathScurryBase=mn;var bn=class extends mn{sep="\\";constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,Ao.win32,"\\",{...r,nocase:i}),this.nocase=i;for(let n=this.cwd;n;n=n.parent)n.nocase=this.nocase}parseRootPath(e){return Ao.win32.parse(e).root.toUpperCase()}newRoot(e){return new _n(this.rootPath,lt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};H.PathScurryWin32=bn;var wn=class extends mn{sep="/";constructor(e=process.cwd(),r={}){let{nocase:i=!1}=r;super(e,Ao.posix,"/",{...r,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new yn(this.rootPath,lt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};H.PathScurryPosix=wn;var Io=class extends wn{constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,{...r,nocase:i})}};H.PathScurryDarwin=Io;H.Path=process.platform==="win32"?_n:yn;H.PathScurry=process.platform==="win32"?bn:process.platform==="darwin"?Io:wn});var df=g(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.Pattern=void 0;var D2=qt(),P2=t=>t.length>=1,L2=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(!P2(e))throw new TypeError("empty pattern list");if(!L2(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,...y]=this.#r;u[0]===""&&(u.shift(),y.shift());let p=[s,o,a,l,""].join("/"),S=[f,c,h,d,""].join("/");this.#e=[p,...u],this.#r=[S,...y],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]===D2.GLOBSTAR}isRegExp(){return this.#e[this.#n]instanceof RegExp}globString(){return this.#S=this.#S||(this.#n===0?this.isAbsolute()?this.#r[0]+this.#r.slice(1).join("/"):this.#r.join("/"):this.#r.slice(this.#n).join("/"))}hasMore(){return this.length>this.#n+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new t(this.#e,this.#r,this.#n+1,this.#t),this.#o.#l=this.#l,this.#o.#c=this.#c,this.#o.#u=this.#u,this.#o):this.#o=null}isUNC(){let e=this.#e;return this.#c!==void 0?this.#c:this.#c=this.#t==="win32"&&this.#n===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#u!==void 0?this.#u:this.#u=this.#t==="win32"&&this.#n===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#l!==void 0?this.#l:this.#l=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#n===0?e:""}checkFollowGlobstar(){return!(this.#n===0||!this.isGlobstar()||!this.#a)}markFollowGlobstar(){return this.#n===0||!this.isGlobstar()||!this.#a?!1:(this.#a=!1,!0)}};Do.Pattern=hf});var gf=g(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.Ignore=void 0;var R0=qt(),N2=df(),C2=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=C2}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:r,nocase:i,noext:n,noglobstar:s,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of e)this.add(a)}add(e){let r=new R0.Minimatch(e,this.mmopts);for(let i=0;i<r.set.length;i++){let n=r.set[i],s=r.globParts[i];if(!n||!s)throw new Error("invalid pattern object");for(;n[0]==="."&&s[0]===".";)n.shift(),s.shift();let o=new N2.Pattern(n,s,0,this.platform),a=new R0.Minimatch(o.globString(),this.mmopts),l=s[s.length-1]==="**",u=o.isAbsolute();u?this.absolute.push(a):this.relative.push(a),l&&(u?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(e){let r=e.fullpath(),i=`${r}/`,n=e.relative()||".",s=`${n}/`;for(let o of this.relative)if(o.match(n)||o.match(s))return!0;for(let o of this.absolute)if(o.match(r)||o.match(i))return!0;return!1}childrenIgnored(e){let r=e.fullpath()+"/",i=(e.relative()||".")+"/";for(let n of this.relativeChildren)if(n.match(i))return!0;for(let n of this.absoluteChildren)if(n.match(r))return!0;return!1}};Po.Ignore=pf});var O0=g(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.Processor=ut.SubWalks=ut.MatchRecord=ut.HasWalkedCache=void 0;var A0=qt(),Lo=class t{store;constructor(e=new Map){this.store=e}copy(){return new t(new Map(this.store))}hasWalked(e,r){return this.store.get(e.fullpath())?.has(r.globString())}storeWalked(e,r){let i=e.fullpath(),n=this.store.get(i);n?n.add(r.globString()):this.store.set(i,new Set([r.globString()]))}};ut.HasWalkedCache=Lo;var No=class{store=new Map;add(e,r,i){let n=(r?2:0)|(i?1:0),s=this.store.get(e);this.store.set(e,s===void 0?n:n&s)}entries(){return[...this.store.entries()].map(([e,r])=>[e,!!(r&2),!!(r&1)])}};ut.MatchRecord=No;var Co=class{store=new Map;add(e,r){if(!e.canReaddir())return;let i=this.store.get(e);i?i.find(n=>n.globString()===r.globString())||i.push(r):this.store.set(e,[r])}get(e){let r=this.store.get(e);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};ut.SubWalks=Co;var _f=class t{hasWalkedCache;matches=new No;subwalks=new Co;patterns;follow;dot;opts;constructor(e,r){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=r?r.copy():new Lo}processPatterns(e,r){this.patterns=r;let i=r.map(n=>[e,n]);for(let[n,s]of i){this.hasWalkedCache.storeWalked(n,s);let o=s.root(),a=s.isAbsolute()&&this.opts.absolute!==!1;if(o){n=n.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let c=s.rest();if(c)s=c;else{this.matches.add(n,!0,!1);continue}}if(n.isENOENT())continue;let l,u,f=!1;for(;typeof(l=s.pattern())=="string"&&(u=s.rest());)n=n.resolve(l),s=u,f=!0;if(l=s.pattern(),u=s.rest(),f){if(this.hasWalkedCache.hasWalked(n,s))continue;this.hasWalkedCache.storeWalked(n,s)}if(typeof l=="string"){let c=l===".."||l===""||l===".";this.matches.add(n.resolve(l),a,c);continue}else if(l===A0.GLOBSTAR){(!n.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(n,s);let c=u?.pattern(),h=u?.rest();if(!u||(c===""||c===".")&&!h)this.matches.add(n,a,c===""||c===".");else if(c===".."){let d=n.parent||n;h?this.hasWalkedCache.hasWalked(d,h)||this.subwalks.add(d,h):this.matches.add(d,a,!0)}}else l instanceof RegExp&&this.subwalks.add(n,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(e,r){let i=this.subwalks.get(e),n=this.child();for(let s of r)for(let o of i){let a=o.isAbsolute(),l=o.pattern(),u=o.rest();l===A0.GLOBSTAR?n.testGlobstar(s,o,u,a):l instanceof RegExp?n.testRegExp(s,l,u,a):n.testString(s,l,u,a)}return n}testGlobstar(e,r,i,n){if((this.dot||!e.name.startsWith("."))&&(r.hasMore()||this.matches.add(e,n,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,r):e.isSymbolicLink()&&(i&&r.checkFollowGlobstar()?this.subwalks.add(e,i):r.markFollowGlobstar()&&this.subwalks.add(e,r)))),i){let s=i.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(e,s,i.rest(),n);else if(s===".."){let o=e.parent||e;this.subwalks.add(o,i)}else s instanceof RegExp&&this.testRegExp(e,s,i.rest(),n)}}testRegExp(e,r,i,n){r.test(e.name)&&(i?this.subwalks.add(e,i):this.matches.add(e,n,!1))}testString(e,r,i,n){e.isNamed(r)&&(i?this.subwalks.add(e,i):this.matches.add(e,n,!1))}};ut.Processor=_f});var P0=g(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.GlobStream=Bt.GlobWalker=Bt.GlobUtil=void 0;var k2=uf(),I0=gf(),D0=O0(),M2=(t,e)=>typeof t=="string"?new I0.Ignore([t],e):Array.isArray(t)?new I0.Ignore(t,e):t,Sn=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#r;#n;signal;maxDepth;includeChildMatches;constructor(e,r,i){if(this.patterns=e,this.path=r,this.opts=i,this.#n=!i.posix&&i.platform==="win32"?"\\":"/",this.includeChildMatches=i.includeChildMatches!==!1,(i.ignore||!this.includeChildMatches)&&(this.#r=M2(i.ignore??[],i),!this.includeChildMatches&&typeof this.#r.add!="function")){let n="cannot ignore child matches, ignore lacks add() method.";throw new Error(n)}this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#t(e){return this.seen.has(e)||!!this.#r?.ignored?.(e)}#o(e){return!!this.#r?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||await e.realpath(),!i)return;e=i}let s=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=await s.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(s,r)}matchCheckTest(e,r){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!r||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#t(e)?e:void 0}matchCheckSync(e,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||e.realpathSync(),!i)return;e=i}let s=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=s.realpathSync();o&&(o?.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(s,r)}matchFinish(e,r){if(this.#t(e))return;if(!this.includeChildMatches&&this.#r?.add){let s=`${e.relativePosix()}/**`;this.#r.add(s)}let i=this.opts.absolute===void 0?r:this.opts.absolute;this.seen.add(e);let n=this.opts.mark&&e.isDirectory()?this.#n:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(i){let s=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(s+n)}else{let s=this.opts.posix?e.relativePosix():e.relative(),o=this.opts.dotRelative&&!s.startsWith(".."+this.#n)?"."+this.#n:"";this.matchEmit(s?o+s+n:"."+n)}}async match(e,r,i){let n=await this.matchCheck(e,i);n&&this.matchFinish(n,r)}matchSync(e,r,i){let n=this.matchCheckSync(e,i);n&&this.matchFinish(n,r)}walkCB(e,r,i){this.signal?.aborted&&i(),this.walkCB2(e,r,new D0.Processor(this.opts),i)}walkCB2(e,r,i,n){if(this.#o(e))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2(e,r,i,n));return}i.processPatterns(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||(s++,this.match(a,l,u).then(()=>o()));for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirCached();a.calledReaddir()?this.walkCB3(a,l,i,o):a.readdirCB((u,f)=>this.walkCB3(a,f,i,o),!0)}o()}walkCB3(e,r,i,n){i=i.filterEntries(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||(s++,this.match(a,l,u).then(()=>o()));for(let[a,l]of i.subwalks.entries())s++,this.walkCB2(a,l,i.child(),o);o()}walkCBSync(e,r,i){this.signal?.aborted&&i(),this.walkCB2Sync(e,r,new D0.Processor(this.opts),i)}walkCB2Sync(e,r,i,n){if(this.#o(e))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2Sync(e,r,i,n));return}i.processPatterns(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||this.matchSync(a,l,u);for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirSync();this.walkCB3Sync(a,l,i,o)}o()}walkCB3Sync(e,r,i,n){i=i.filterEntries(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||this.matchSync(a,l,u);for(let[a,l]of i.subwalks.entries())s++,this.walkCB2Sync(a,l,i.child(),o);o()}};Bt.GlobUtil=Sn;var yf=class extends Sn{matches=new Set;constructor(e,r,i){super(e,r,i)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,r)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?r(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};Bt.GlobWalker=yf;var mf=class extends Sn{results;constructor(e,r,i){super(e,r,i),this.results=new k2.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};Bt.GlobStream=mf});var wf=g(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.Glob=void 0;var q2=qt(),F2=D("url"),ko=T0(),j2=df(),Mo=P0(),B2=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,F2.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||B2,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 q2.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 j2.Pattern(l,f,0,this.platform)})}async walk(){return[...await new Mo.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new Mo.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new Mo.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new Mo.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};qo.Glob=bf});var Sf=g(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.hasMagic=void 0;var U2=qt(),W2=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let r of t)if(new U2.Minimatch(r,e).hasMagic())return!0;return!1};Fo.hasMagic=W2});var k0=g(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.glob=U.sync=U.iterate=U.iterateSync=U.stream=U.streamSync=U.Ignore=U.hasMagic=U.Glob=U.unescape=U.escape=void 0;U.globStreamSync=En;U.globStream=Ef;U.globSync=vf;U.globIterateSync=vn;U.globIterate=xf;var L0=qt(),gr=wf(),G2=Sf(),C0=qt();Object.defineProperty(U,"escape",{enumerable:!0,get:function(){return C0.escape}});Object.defineProperty(U,"unescape",{enumerable:!0,get:function(){return C0.unescape}});var z2=wf();Object.defineProperty(U,"Glob",{enumerable:!0,get:function(){return z2.Glob}});var $2=Sf();Object.defineProperty(U,"hasMagic",{enumerable:!0,get:function(){return $2.hasMagic}});var H2=gf();Object.defineProperty(U,"Ignore",{enumerable:!0,get:function(){return H2.Ignore}});function En(t,e={}){return new gr.Glob(t,e).streamSync()}function Ef(t,e={}){return new gr.Glob(t,e).stream()}function vf(t,e={}){return new gr.Glob(t,e).walkSync()}async function N0(t,e={}){return new gr.Glob(t,e).walk()}function vn(t,e={}){return new gr.Glob(t,e).iterateSync()}function xf(t,e={}){return new gr.Glob(t,e).iterate()}U.streamSync=En;U.stream=Object.assign(Ef,{sync:En});U.iterateSync=vn;U.iterate=Object.assign(xf,{sync:vn});U.sync=Object.assign(vf,{stream:En,iterate:vn});U.glob=Object.assign(N0,{glob:N0,globSync:vf,sync:U.sync,globStream:Ef,stream:U.stream,globStreamSync:En,streamSync:U.streamSync,globIterate:xf,iterate:U.iterate,globIterateSync:vn,iterateSync:U.iterateSync,Glob:gr.Glob,hasMagic:G2.hasMagic,escape:L0.escape,unescape:L0.unescape});U.glob.glob=U.glob});var j0=g((sU,F0)=>{"use strict";var q0=$a(),ri=D("path"),Tf=lb(),V2=vw(),Y2=Cw(),K2=Uw(),Z2=k0(),_r=F0.exports={},M0=/[\/\\]/g,Q2=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=V2(r,s):r=Y2(r,s)}),r};_r.exists=function(){var t=ri.join.apply(ri,arguments);return q0.existsSync(t)};_r.expand=function(...t){var e=K2(t[0])?t.shift():{},r=Array.isArray(t[0])?t[0]:t;if(r.length===0)return[];var i=Q2(r,function(n){return Z2.sync(n,e)});return e.filter&&(i=i.filter(function(n){n=ri.join(e.cwd||"",n);try{return typeof e.filter=="function"?e.filter(n):q0.statSync(n)[e.filter]()}catch{return!1}})),i};_r.expandMapping=function(t,e,r){r=Object.assign({rename:function(s,o){return ri.join(s||"",o)}},r);var i=[],n={};return _r.expand(r,t).forEach(function(s){var o=s;r.flatten&&(o=ri.basename(o)),r.ext&&(o=o.replace(/(\.[^\/]*)?$/,r.ext));var a=r.rename(e,o,r);r.cwd&&(s=ri.join(r.cwd,s)),a=a.replace(M0,"/"),s=s.replace(M0,"/"),n[a]?n[a].src.push(s):(i.push({src:[s],dest:a}),n[a]=i[i.length-1])}),i};_r.normalizeFilesArray=function(t){var e=[];return t.forEach(function(r){var i;("src"in r||"dest"in r)&&e.push(r)}),e.length===0?[]:(e=_(e).chain().forEach(function(r){!("src"in r)||!r.src||(Array.isArray(r.src)?r.src=Tf(r.src):r.src=[r.src])}).map(function(r){var i=Object.assign({},r);if(delete i.src,delete i.dest,r.expand)return _r.expandMapping(r.src,r.dest,i).map(function(s){var o=Object.assign({},r);return o.orig=Object.assign({},r),o.src=s.src,o.dest=s.dest,["expand","cwd","flatten","rename","ext"].forEach(function(a){delete o[a]}),o});var n=Object.assign({},r);return n.orig=Object.assign({},r),"src"in n&&Object.defineProperty(n,"src",{enumerable:!0,get:function s(){var o;return"result"in s||(o=r.src,o=Array.isArray(o)?Tf(o):[o],s.result=_r.expand(i,o)),s.result}}),"dest"in n&&(n.dest=r.dest),n}).flatten().value(),e)}});var ii=g((aU,W0)=>{"use strict";var Rf=$a(),B0=D("path"),X2=is(),J2=cp(),U0=gl(),eq=$g(),oU=D("stream").Stream,tq=cr().PassThrough,ke=W0.exports={};ke.file=j0();ke.collectStream=function(t,e){var r=[],i=0;t.on("error",e),t.on("data",function(n){r.push(n),i+=n.length}),t.on("end",function(){var n=Buffer.alloc(i),s=0;r.forEach(function(o){o.copy(n,s),s+=o.length}),e(null,n)})};ke.dateify=function(t){return t=t||new Date,t instanceof Date?t=t:typeof t=="string"?t=new Date(t):t=new Date,t};ke.defaults=function(t,e,r){var i=arguments;return i[0]=i[0]||{},eq(...i)};ke.isStream=function(t){return X2(t)};ke.lazyReadStream=function(t){return new J2.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 tq):t};ke.sanitizePath=function(t){return U0(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};ke.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};ke.unixifyPath=function(t){return U0(t,!1).replace(/^\w+:/,"")};ke.walkdir=function(t,e,r){var i=[];typeof e=="function"&&(r=e,e=t),Rf.readdir(t,function(n,s){var o=0,a,l;if(n)return r(n);(function u(){if(a=s[o++],!a)return r(null,i);l=B0.join(t,a),Rf.stat(l,function(f,c){i.push({path:l,relative:B0.relative(e,l).replace(/\\/g,"/"),stats:c}),c&&c.isDirectory()?ke.walkdir(l,e,function(h,d){if(h)return r(h);d.forEach(function(y){i.push(y)}),u()}):u()})})()})}});var H0=g((z0,$0)=>{"use strict";var rq=D("util"),iq={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function G0(t,e){Error.captureStackTrace(this,this.constructor),this.message=iq[t]||t,this.code=t,this.data=e}rq.inherits(G0,Error);z0=$0.exports=G0});var Q0=g((lU,Z0)=>{"use strict";var If=D("fs"),Y0=nh(),V0=(id(),QE(rd)),Af=D("path"),ft=ii(),nq=D("util").inherits,ae=H0(),K0=cr().Transform,Of=process.platform==="win32",z=function(t,e){if(!(this instanceof z))return new z(t,e);typeof t!="string"&&(e=t,t="zip"),e=this.options=ft.defaults(e,{highWaterMark:1024*1024,statConcurrency:4}),K0.call(this,e),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=V0.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=V0.queue(this._onStatQueueTask.bind(this),e.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};nq(z,K0);z.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};z.prototype._append=function(t,e){e=e||{};var r={source:null,filepath:t};e.name||(e.name=t),e.sourcePath=t,r.data=e,this._entriesCount++,e.stats&&e.stats instanceof If.Stats?(r=this._updateQueueTaskWithStats(r,e.stats),r&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(r))):this._statQueue.push(r)};z.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)};z.prototype._maybeFinalize=function(){return this._state.finalizing||this._state.finalized||this._state.aborted?!1:this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()?(this._finalize(),!0):!1};z.prototype._moduleAppend=function(t,e,r){if(this._state.aborted){r();return}this._module.append(t,e,function(i){if(this._task=null,this._state.aborted){this._shutdown();return}if(i){this.emit("error",i),setImmediate(r);return}this.emit("entry",e),this._entriesProcessedCount++,e.stats&&e.stats.size&&(this._fsEntriesProcessedBytes+=e.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(r)}.bind(this))};z.prototype._moduleFinalize=function(){typeof this._module.finalize=="function"?this._module.finalize():typeof this._module.end=="function"?this._module.end():this.emit("error",new ae("NOENDMETHOD"))};z.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};z.prototype._moduleSupports=function(t){return!this._module.supports||!this._module.supports[t]?!1:this._module.supports[t]};z.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};z.prototype._normalizeEntryData=function(t,e){t=ft.defaults(t,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),e&&t.stats===!1&&(t.stats=e);var r=t.type==="directory";return t.name&&(typeof t.prefix=="string"&&t.prefix!==""&&(t.name=t.prefix+"/"+t.name,t.prefix=null),t.name=ft.sanitizePath(t.name),t.type!=="symlink"&&t.name.slice(-1)==="/"?(r=!0,t.type="directory"):r&&(t.name+="/")),typeof t.mode=="number"?Of?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(Of?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,Of&&r&&(t.mode=493)):t.mode===null&&(t.mode=r?493:420),t.stats&&t.date===null?t.date=t.stats.mtime:t.date=ft.dateify(t.date),t};z.prototype._onModuleError=function(t){this.emit("error",t)};z.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()};z.prototype._onQueueTask=function(t,e){var r=()=>{t.data.callback&&t.data.callback(),e()};if(this._state.finalizing||this._state.finalized||this._state.aborted){r();return}this._task=t,this._moduleAppend(t.source,t.data,r)};z.prototype._onStatQueueTask=function(t,e){if(this._state.finalizing||this._state.finalized||this._state.aborted){e();return}If.lstat(t.filepath,function(r,i){if(this._state.aborted){setImmediate(e);return}if(r){this._entriesCount--,this.emit("warning",r),setImmediate(e);return}t=this._updateQueueTaskWithStats(t,i),t&&(i.size&&(this._fsEntriesTotalBytes+=i.size),this._queue.push(t)),setImmediate(e)}.bind(this))};z.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};z.prototype._transform=function(t,e,r){t&&(this._pointer+=t.length),r(null,t)};z.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=ft.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=ft.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=ft.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else if(e.isSymbolicLink()&&this._moduleSupports("symlink")){var r=If.readlinkSync(t.filepath),i=Af.dirname(t.filepath);t.data.type="symlink",t.data.linkname=Af.relative(i,Af.resolve(i,r)),t.data.sourceType="buffer",t.source=Buffer.concat([])}else return e.isDirectory()?this.emit("warning",new ae("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new ae("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new ae("ENTRYNOTSUPPORTED",t.data)),null;return t.data=this._normalizeEntryData(t.data,e),t};z.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};z.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(e=this._normalizeEntryData(e),typeof e.name!="string"||e.name.length===0)return this.emit("error",new ae("ENTRYNAMEREQUIRED")),this;if(e.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new ae("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=ft.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else if(ft.isStream(t))e.sourceType="stream";else return this.emit("error",new ae("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;return this._entriesCount++,this._queue.push({data:e,source:t}),this};z.prototype.directory=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new ae("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,e===!1?e="":typeof e!="string"&&(e=t);var i=!1;typeof r=="function"?(i=r,r={}):typeof r!="object"&&(r={});var n={stat:!0,dot:!0};function s(){this._pending--,this._maybeFinalize()}function o(u){this.emit("error",u)}function a(u){l.pause();var f=!1,c=Object.assign({},r);c.name=u.relative,c.prefix=e,c.stats=u.stat,c.callback=l.resume.bind(l);try{if(i){if(c=i(c),c===!1)f=!0;else if(typeof c!="object")throw new ae("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}}catch(h){this.emit("error",h);return}if(f){l.resume();return}this._append(u.absolute,c)}var l=Y0(t,n);return l.on("error",o.bind(this)),l.on("match",a.bind(this)),l.on("end",s.bind(this)),this};z.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new ae("QUEUECLOSED")),this):typeof t!="string"||t.length===0?(this.emit("error",new ae("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)};z.prototype.glob=function(t,e,r){this._pending++,e=ft.defaults(e,{stat:!0,pattern:t});function i(){this._pending--,this._maybeFinalize()}function n(a){this.emit("error",a)}function s(a){o.pause();var l=Object.assign({},r);l.callback=o.resume.bind(o),l.stats=a.stat,l.name=a.relative,this._append(a.absolute,l)}var o=Y0(e.cwd||".",e);return o.on("error",n.bind(this)),o.on("match",s.bind(this)),o.on("end",i.bind(this)),this};z.prototype.finalize=function(){if(this._state.aborted){var t=new ae("ABORTED");return this.emit("error",t),Promise.reject(t)}if(this._state.finalize){var e=new ae("FINALIZING");return this.emit("error",e),Promise.reject(e)}this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var r=this;return new Promise(function(i,n){var s;r._module.on("end",function(){s||i()}),r._module.on("error",function(o){s=!0,n(o)})})};z.prototype.setFormat=function(t){return this._format?(this.emit("error",new ae("FORMATSET")),this):(this._format=t,this)};z.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new ae("ABORTED")),this):this._state.module?(this.emit("error",new ae("MODULESET")),this):(this._module=t,this._modulePipe(),this)};z.prototype.symlink=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new ae("SYMLINKFILEPATHREQUIRED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new ae("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new ae("SYMLINKNOTSUPPORTED",{filepath:t})),this;var i={};return i.type="symlink",i.name=t.replace(/\\/g,"/"),i.linkname=e.replace(/\\/g,"/"),i.sourceType="buffer",typeof r=="number"&&(i.mode=r),this._entriesCount++,this._queue.push({data:i,source:Buffer.concat([])}),this};z.prototype.pointer=function(){return this._pointer};z.prototype.use=function(t){return this._streams.push(t),this};Z0.exports=z});var Bo=g((uU,X0)=>{"use strict";var jo=X0.exports=function(){};jo.prototype.getName=function(){};jo.prototype.getSize=function(){};jo.prototype.getLastModifiedDate=function(){};jo.prototype.isDirectory=function(){}});var Uo=g((fU,J0)=>{"use strict";var ze=J0.exports={};ze.dateToDos=function(t,e){e=e||!1;var r=e?t.getFullYear():t.getUTCFullYear();if(r<1980)return 2162688;if(r>=2044)return 2141175677;var i={year:r,month:e?t.getMonth():t.getUTCMonth(),date:e?t.getDate():t.getUTCDate(),hours:e?t.getHours():t.getUTCHours(),minutes:e?t.getMinutes():t.getUTCMinutes(),seconds:e?t.getSeconds():t.getUTCSeconds()};return i.year-1980<<25|i.month+1<<21|i.date<<16|i.hours<<11|i.minutes<<5|i.seconds/2};ze.dosToDate=function(t){return new Date((t>>25&127)+1980,(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(t&31)<<1)};ze.fromDosTime=function(t){return ze.dosToDate(t.readUInt32LE(0))};ze.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e};ze.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((t&65535)>>>0,0),e};ze.getShortBytesValue=function(t,e){return t.readUInt16LE(e)};ze.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((t&4294967295)>>>0,0),e};ze.getLongBytesValue=function(t,e){return t.readUInt32LE(e)};ze.toDosTime=function(t){return ze.getLongBytes(ze.dateToDos(t))}});var Df=g((cU,sS)=>{"use strict";var eS=Uo(),tS=8,rS=1,sq=4,oq=2,iS=64,nS=2048,Ee=sS.exports=function(){return this instanceof Ee?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new Ee};Ee.prototype.encode=function(){return eS.getShortBytes((this.descriptor?tS:0)|(this.utf8?nS:0)|(this.encryption?rS:0)|(this.strongEncryption?iS:0))};Ee.prototype.parse=function(t,e){var r=eS.getShortBytesValue(t,e),i=new Ee;return i.useDataDescriptor((r&tS)!==0),i.useUTF8ForNames((r&nS)!==0),i.useStrongEncryption((r&iS)!==0),i.useEncryption((r&rS)!==0),i.setSlidingDictionarySize((r&oq)!==0?8192:4096),i.setNumberOfShannonFanoTrees((r&sq)!==0?3:2),i};Ee.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t};Ee.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};Ee.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t};Ee.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};Ee.prototype.useDataDescriptor=function(t){this.descriptor=t};Ee.prototype.usesDataDescriptor=function(){return this.descriptor};Ee.prototype.useEncryption=function(t){this.encryption=t};Ee.prototype.usesEncryption=function(){return this.encryption};Ee.prototype.useStrongEncryption=function(t){this.strongEncryption=t};Ee.prototype.usesStrongEncryption=function(){return this.strongEncryption};Ee.prototype.useUTF8ForNames=function(t){this.utf8=t};Ee.prototype.usesUTF8ForNames=function(){return this.utf8}});var aS=g((hU,oS)=>{"use strict";oS.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}});var Pf=g((dU,lS)=>{"use strict";lS.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}});var Lf=g((pU,dS)=>{"use strict";var aq=D("util").inherits,lq=gl(),fS=Bo(),cS=Df(),uS=aS(),Pe=Pf(),hS=Uo(),F=dS.exports=function(t){if(!(this instanceof F))return new F(t);fS.call(this),this.platform=Pe.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new cS,this.crc=0,this.time=-1,this.minver=Pe.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};aq(F,fS);F.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};F.prototype.getComment=function(){return this.comment!==null?this.comment:""};F.prototype.getCompressedSize=function(){return this.csize};F.prototype.getCrc=function(){return this.crc};F.prototype.getExternalAttributes=function(){return this.exattr};F.prototype.getExtra=function(){return this.extra!==null?this.extra:Pe.EMPTY};F.prototype.getGeneralPurposeBit=function(){return this.gpb};F.prototype.getInternalAttributes=function(){return this.inattr};F.prototype.getLastModifiedDate=function(){return this.getTime()};F.prototype.getLocalFileDataExtra=function(){return this.getExtra()};F.prototype.getMethod=function(){return this.method};F.prototype.getName=function(){return this.name};F.prototype.getPlatform=function(){return this.platform};F.prototype.getSize=function(){return this.size};F.prototype.getTime=function(){return this.time!==-1?hS.dosToDate(this.time):-1};F.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};F.prototype.getUnixMode=function(){return this.platform!==Pe.PLATFORM_UNIX?0:this.getExternalAttributes()>>Pe.SHORT_SHIFT&Pe.SHORT_MASK};F.prototype.getVersionNeededToExtract=function(){return this.minver};F.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t};F.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t};F.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t};F.prototype.setExternalAttributes=function(t){this.exattr=t>>>0};F.prototype.setExtra=function(t){this.extra=t};F.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof cS))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t};F.prototype.setInternalAttributes=function(t){this.inattr=t};F.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t};F.prototype.setName=function(t,e=!1){t=lq(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t};F.prototype.setPlatform=function(t){this.platform=t};F.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t};F.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=hS.dateToDos(t,e)};F.prototype.setUnixMode=function(t){t|=this.isDirectory()?Pe.S_IFDIR:Pe.S_IFREG;var e=0;e|=t<<Pe.SHORT_SHIFT|(this.isDirectory()?Pe.S_DOS_D:Pe.S_DOS_A),this.setExternalAttributes(e),this.mode=t&Pe.MODE_MASK,this.platform=Pe.PLATFORM_UNIX};F.prototype.setVersionNeededToExtract=function(t){this.minver=t};F.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};F.prototype.isUnixSymlink=function(){return(this.getUnixMode()&uS.FILE_TYPE_FLAG)===uS.LINK_FLAG};F.prototype.isZip64=function(){return this.csize>Pe.ZIP64_MAGIC||this.size>Pe.ZIP64_MAGIC}});var Nf=g((_U,pS)=>{"use strict";var gU=D("stream").Stream,uq=cr().PassThrough,fq=is(),cq=pS.exports={};cq.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(fq(t)&&!t._readableState){var e=new uq;return t.pipe(e),e}return t}});var kf=g((yU,gS)=>{"use strict";var hq=D("util").inherits,dq=is(),Cf=cr().Transform,pq=Bo(),gq=Nf(),Me=gS.exports=function(t){if(!(this instanceof Me))return new Me(t);Cf.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};hq(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 pq)){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=gq.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,r);else if(dq(e))this._appendStream(t,e,r);else{this._archive.processing=!1,r(new Error("input source must be valid Stream or Buffer instance"));return}return this};Me.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};Me.prototype.getBytesWritten=function(){return this.offset};Me.prototype.write=function(t,e){return t&&(this.offset+=t.length),Cf.prototype.write.call(this,t,e)}});var Wo=g(Mf=>{"use strict";var _S;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof Mf=="object"?t(Mf):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t(_S={}):t(_S={})})(function(t){t.version="1.2.2";function e(){for(var x=0,O=new Array(256),w=0;w!=256;++w)x=w,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,O[w]=x;return typeof Int32Array<"u"?new Int32Array(O):O}var r=e();function i(x){var O=0,w=0,R=0,A=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(R=0;R!=256;++R)A[R]=x[R];for(R=0;R!=256;++R)for(w=x[R],O=256+R;O<4096;O+=256)w=A[O]=w>>>8^x[w&255];var N=[];for(R=1;R!=16;++R)N[R-1]=typeof Int32Array<"u"?A.subarray(R*256,R*256+256):A.slice(R*256,R*256+256);return N}var n=i(r),s=n[0],o=n[1],a=n[2],l=n[3],u=n[4],f=n[5],c=n[6],h=n[7],d=n[8],y=n[9],p=n[10],S=n[11],m=n[12],b=n[13],v=n[14];function E(x,O){for(var w=O^-1,R=0,A=x.length;R<A;)w=w>>>8^r[(w^x.charCodeAt(R++))&255];return~w}function T(x,O){for(var w=O^-1,R=x.length-15,A=0;A<R;)w=v[x[A++]^w&255]^b[x[A++]^w>>8&255]^m[x[A++]^w>>16&255]^S[x[A++]^w>>>24]^p[x[A++]]^y[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 P(x,O){for(var w=O^-1,R=0,A=x.length,N=0,G=0;R<A;)N=x.charCodeAt(R++),N<128?w=w>>>8^r[(w^N)&255]:N<2048?(w=w>>>8^r[(w^(192|N>>6&31))&255],w=w>>>8^r[(w^(128|N&63))&255]):N>=55296&&N<57344?(N=(N&1023)+64,G=x.charCodeAt(R++)&1023,w=w>>>8^r[(w^(240|N>>8&7))&255],w=w>>>8^r[(w^(128|N>>2&63))&255],w=w>>>8^r[(w^(128|G>>6&15|(N&3)<<4))&255],w=w>>>8^r[(w^(128|G&63))&255]):(w=w>>>8^r[(w^(224|N>>12&15))&255],w=w>>>8^r[(w^(128|N>>6&63))&255],w=w>>>8^r[(w^(128|N&63))&255]);return~w}t.table=r,t.bstr=E,t.buf=T,t.str=P})});var mS=g((bU,yS)=>{"use strict";var{Transform:_q}=cr(),yq=Wo(),qf=class extends _q{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,r,i){e&&(this.checksum=yq.buf(e,this.checksum)>>>0,this.rawSize+=e.length),i(null,e)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}};yS.exports=qf});var wS=g((wU,bS)=>{"use strict";var{DeflateRaw:mq}=D("zlib"),bq=Wo(),Ff=class extends mq{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=bq.buf(e,this.checksum)>>>0,this.rawSize+=e.length),super._transform(e,r,i)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(e=!1){return e?this.compressedSize:this.rawSize}};bS.exports=Ff});var jf=g((SU,SS)=>{"use strict";SS.exports={CRC32Stream:mS(),DeflateCRC32Stream:wS()}});var xS=g((TU,vS)=>{"use strict";var wq=D("util").inherits,Sq=Wo(),{CRC32Stream:Eq}=jf(),{DeflateCRC32Stream:vq}=jf(),ES=kf(),EU=Lf(),vU=Df(),C=Pf(),xU=Nf(),L=Uo(),_e=vS.exports=function(t){if(!(this instanceof _e))return new _e(t);t=this.options=this._defaults(t),ES.call(this,t),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:t.forceZip64,forceLocalTime:t.forceLocalTime}};wq(_e,ES);_e.prototype._afterAppend=function(t){this._entries.push(t),t.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(t),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()};_e.prototype._appendBuffer=function(t,e,r){e.length===0&&t.setMethod(C.METHOD_STORED);var i=t.getMethod();if(i===C.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(Sq.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 vq(this.options.zlib):new Eq,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((RU,TS)=>{"use strict";TS.exports={ArchiveEntry:Bo(),ZipArchiveEntry:Lf(),ArchiveOutputStream:kf(),ZipArchiveOutputStream:xS()}});var AS=g((AU,RS)=>{"use strict";var xq=D("util").inherits,Wf=Bf().ZipArchiveOutputStream,Tq=Bf().ZipArchiveEntry,Uf=ii(),ni=RS.exports=function(t){if(!(this instanceof ni))return new ni(t);t=this.options=t||{},t.zlib=t.zlib||{},Wf.call(this,t),typeof t.level=="number"&&t.level>=0&&(t.zlib.level=t.level,delete t.level),!t.forceZip64&&typeof t.zlib.level=="number"&&t.zlib.level===0&&(t.store=!0),t.namePrependSlash=t.namePrependSlash||!1,t.comment&&t.comment.length>0&&this.setComment(t.comment)};xq(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 Tq(e.name);return i.setTime(e.date,this.options.forceLocalTime),e.namePrependSlash&&i.setName(e.name,!0),e.store&&i.setMethod(0),e.comment.length>0&&i.setComment(e.comment),e.type==="symlink"&&typeof e.mode!="number"&&(e.mode=40960),typeof e.mode=="number"&&(e.type==="symlink"&&(e.mode|=40960),i.setUnixMode(e.mode)),e.type==="symlink"&&typeof e.linkname=="string"&&(t=Buffer.from(e.linkname)),Wf.prototype.entry.call(this,i,t,r)};ni.prototype.finalize=function(){this.finish()}});var IS=g((OU,OS)=>{"use strict";var Rq=AS(),Aq=ii(),Ut=function(t){if(!(this instanceof Ut))return new Ut(t);t=this.options=Aq.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new Rq(t)};Ut.prototype.append=function(t,e,r){this.engine.entry(t,e,r)};Ut.prototype.finalize=function(){this.engine.finalize()};Ut.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Ut.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Ut.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};OS.exports=Ut});var PS=g((IU,DS)=>{"use strict";DS.exports=D("events")});var NS=g((PU,LS)=>{"use strict";LS.exports=class{constructor(e){if(!(e>0)||(e-1&e)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return this.buffer[this.top]!==void 0?!1:(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){let e=this.buffer[this.btm];if(e!==void 0)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}});var Gf=g((NU,kS)=>{"use strict";var CS=NS();kS.exports=class{constructor(e){this.hwm=e||16,this.head=new CS(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let r=this.head;this.head=r.next=new CS(2*this.head.buffer.length),this.head.push(e)}}shift(){this.length!==0&&this.length--;let e=this.tail.shift();if(e===void 0&&this.tail.next){let r=this.tail.next;return this.tail.next=null,this.tail=r,this.tail.shift()}return e}peek(){let e=this.tail.peek();return e===void 0&&this.tail.next?this.tail.next.peek():e}isEmpty(){return this.length===0}}});var zf=g((CU,MS)=>{"use strict";function Oq(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function Iq(t){return Buffer.isEncoding(t)}function Dq(t,e,r){return Buffer.alloc(t,e,r)}function Pq(t){return Buffer.allocUnsafe(t)}function Lq(t){return Buffer.allocUnsafeSlow(t)}function Nq(t,e){return Buffer.byteLength(t,e)}function Cq(t,e){return Buffer.compare(t,e)}function kq(t,e){return Buffer.concat(t,e)}function Mq(t,e,r,i,n){return Y(t).copy(e,r,i,n)}function qq(t,e){return Y(t).equals(e)}function Fq(t,e,r,i,n){return Y(t).fill(e,r,i,n)}function jq(t,e,r){return Buffer.from(t,e,r)}function Bq(t,e,r,i){return Y(t).includes(e,r,i)}function Uq(t,e,r,i){return Y(t).indexOf(e,r,i)}function Wq(t,e,r,i){return Y(t).lastIndexOf(e,r,i)}function Gq(t){return Y(t).swap16()}function zq(t){return Y(t).swap32()}function $q(t){return Y(t).swap64()}function Y(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function Hq(t,e,r,i){return Y(t).toString(e,r,i)}function Vq(t,e,r,i,n){return Y(t).write(e,r,i,n)}function Yq(t,e){return Y(t).readDoubleBE(e)}function Kq(t,e){return Y(t).readDoubleLE(e)}function Zq(t,e){return Y(t).readFloatBE(e)}function Qq(t,e){return Y(t).readFloatLE(e)}function Xq(t,e){return Y(t).readInt32BE(e)}function Jq(t,e){return Y(t).readInt32LE(e)}function eF(t,e){return Y(t).readUInt32BE(e)}function tF(t,e){return Y(t).readUInt32LE(e)}function rF(t,e,r){return Y(t).writeDoubleBE(e,r)}function iF(t,e,r){return Y(t).writeDoubleLE(e,r)}function nF(t,e,r){return Y(t).writeFloatBE(e,r)}function sF(t,e,r){return Y(t).writeFloatLE(e,r)}function oF(t,e,r){return Y(t).writeInt32BE(e,r)}function aF(t,e,r){return Y(t).writeInt32LE(e,r)}function lF(t,e,r){return Y(t).writeUInt32BE(e,r)}function uF(t,e,r){return Y(t).writeUInt32LE(e,r)}MS.exports={isBuffer:Oq,isEncoding:Iq,alloc:Dq,allocUnsafe:Pq,allocUnsafeSlow:Lq,byteLength:Nq,compare:Cq,concat:kq,copy:Mq,equals:qq,fill:Fq,from:jq,includes:Bq,indexOf:Uq,lastIndexOf:Wq,swap16:Gq,swap32:zq,swap64:$q,toBuffer:Y,toString:Hq,write:Vq,readDoubleBE:Yq,readDoubleLE:Kq,readFloatBE:Zq,readFloatLE:Qq,readInt32BE:Xq,readInt32LE:Jq,readUInt32BE:eF,readUInt32LE:tF,writeDoubleBE:rF,writeDoubleLE:iF,writeFloatBE:nF,writeFloatLE:sF,writeInt32BE:oF,writeInt32LE:aF,writeUInt32BE:lF,writeUInt32LE:uF}});var FS=g((MU,qS)=>{"use strict";var fF=zf();qS.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return fF.toString(e,this.encoding)}flush(){return""}}});var WS=g((FU,US)=>{"use strict";var jS=zf();US.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(e){if(e.byteLength===0)return"";if(this.bytesNeeded===0&&BS(e,0)===0)return this.bytesSeen=cF(e),jS.toString(e,"utf8");let r="",i=0;if(this.bytesNeeded>0){for(;i<e.byteLength;){let o=e[i];if(o<this.lowerBoundary||o>this.upperBoundary){r+="\uFFFD",this._reset();break}if(this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|o&63,this.bytesSeen++,i++,this.bytesSeen===this.bytesNeeded){r+=String.fromCodePoint(this.codePoint),this._reset();break}}if(this.bytesNeeded>0)return r}let n=BS(e,i),s=e.byteLength-n;s>i&&(r+=jS.toString(e,"utf8",i,s));for(let o=s;o<e.byteLength;o++){let a=e[o];if(this.bytesNeeded===0){a<=127?(this.bytesSeen=0,r+=String.fromCharCode(a)):a>=194&&a<=223?(this.bytesNeeded=2,this.bytesSeen=1,this.codePoint=a&31):a>=224&&a<=239?(a===224?this.lowerBoundary=160:a===237&&(this.upperBoundary=159),this.bytesNeeded=3,this.bytesSeen=1,this.codePoint=a&15):a>=240&&a<=244?(a===240?this.lowerBoundary=144:a===244&&(this.upperBoundary=143),this.bytesNeeded=4,this.bytesSeen=1,this.codePoint=a&7):(this.bytesSeen=1,r+="\uFFFD");continue}if(a<this.lowerBoundary||a>this.upperBoundary){r+="\uFFFD",o--,this._reset();continue}this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|a&63,this.bytesSeen++,this.bytesSeen===this.bytesNeeded&&(r+=String.fromCodePoint(this.codePoint),this._reset())}return r}flush(){let e=this.bytesNeeded>0?"\uFFFD":"";return this._reset(),e}_reset(){this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191}};function BS(t,e){let r=t.byteLength;if(r<=e)return 0;let i=Math.max(e,r-4),n=r-1;for(;n>i&&(t[n]&192)===128;)n--;if(n<e)return 0;let s=t[n],o;if(s<=127)return 0;if(s>=194&&s<=223)o=2;else if(s>=224&&s<=239)o=3;else if(s>=240&&s<=244)o=4;else return 0;let a=r-n;return a<o?a:0}function cF(t){let e=t.byteLength;if(e===0)return 0;let r=t[e-1];if(r<=127)return 0;if((r&192)!==128)return 1;let i=Math.max(0,e-4),n=e-2;for(;n>=i&&(t[n]&192)===128;)n--;if(n<0)return 1;let s=t[n],o;if(s>=194&&s<=223)o=2;else if(s>=224&&s<=239)o=3;else if(s>=240&&s<=244)o=4;else return 1;if(e-n!==o)return 1;if(o>=3){let a=t[n+1];if(s===224&&a<160||s===237&&a>159||s===240&&a<144||s===244&&a>143)return 1}return 0}});var zS=g((BU,GS)=>{"use strict";var hF=FS(),dF=WS();GS.exports=class{constructor(e="utf8"){switch(this.encoding=pF(e),this.encoding){case"utf8":this.decoder=new dF;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new hF(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 pF(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((UU,dE)=>{"use strict";var{EventEmitter:gF}=PS(),Yo=new Error("Stream was destroyed"),$f=new Error("Premature close"),ZS=Gf(),_F=zS(),Hf=typeof queueMicrotask>"u"?t=>global.process.nextTick(t):queueMicrotask,oe=(1<<29)-1,ct=1,Jf=2,vt=4,xn=8,QS=oe^ct,yF=oe^Jf,In=16,si=32,li=64,Gt=128,Dn=256,ec=512,zt=1024,Vf=2048,tc=4096,rc=8192,Qe=16384,Wt=32768,Ko=65536,yr=131072,XS=Dn|ec,mF=In|Ko,bF=li|In,wF=tc|Gt,ic=Dn|yr,SF=oe^In,EF=oe^li,vF=oe^(li|Ko),$S=oe^Ko,xF=oe^Dn,TF=oe^(Gt|rc),RF=oe^zt,HS=oe^XS,JS=oe^Wt,AF=oe^si,eE=oe^yr,OF=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,IF=oe^(xt|nc),tE=oe^Pn,DF=oe^(xt|$t),PF=oe^Ln,LF=oe^mr,rE=oe^oi,NF=oe^ai,iE=oe^Zo,Tn=In|xt,nE=oe^Tn,sc=Qe|Ht,ht=vt|xn|Jf,qe=ht|ct,sE=ht|sc,CF=tE&EF,Qo=oi|Wt,kF=Qo&nE,oE=qe|kF,MF=qe|zt|Qe,VS=qe|Qe|Gt,qF=qe|zt|Gt,FF=qe|tc|Gt|rc,jF=qe|In|zt|Qe|Ko|yr,BF=ht|zt|Qe,UF=si|qe|Wt|li,WF=Wt|ct,GF=qe|$t|Ht,zF=mr|Ln,aE=mr|xt,$F=mr|Ln|qe|xt,YS=qe|xt|mr|Zo,HF=Pn|xt,VF=xt|nc,YF=qe|$t|aE|Ht,KF=Ln|ht|$t|Ht,ZF=ai|qe|oi|Pn,QF=$t|Ht|ht,Go=Symbol.asyncIterator||Symbol("asyncIterator"),zo=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapWritable:n,byteLength:s,byteLengthWritable:o}={}){this.stream=e,this.queue=new ZS,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||s||hE,this.map=n||i,this.afterWrite=ej.bind(this),this.afterUpdateNextTick=ij.bind(this)}get ending(){return(this.stream._duplexState&$t)!==0}get ended(){return(this.stream._duplexState&Ht)!==0}push(e){return(this.stream._duplexState&QF)!==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|=zF,!1))}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=LF),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|$t)&tE}autoBatch(e,r){let i=[],n=this.stream;for(i.push(e);(n._duplexState&YS)===aE;)i.push(n._writableState.shift());if((n._duplexState&qe)!==0)return r(null);n._writev(i,r)}update(){let e=this.stream;e._duplexState|=ai;do{for(;(e._duplexState&YS)===mr;){let r=this.shift();e._duplexState|=VF,e._write(r,this.afterWrite)}(e._duplexState&HF)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=NF}updateNonPrimary(){let e=this.stream;if((e._duplexState&YF)===$t){e._duplexState=e._duplexState|xt,e._final(JF.bind(this));return}if((e._duplexState&ht)===vt){(e._duplexState&Qo)===0&&(e._duplexState|=Tn,e._destroy(lE.bind(this)));return}(e._duplexState&oE)===ct&&(e._duplexState=(e._duplexState|Tn)&QS,e._open(uE.bind(this)))}continueUpdate(){return(this.stream._duplexState&oi)===0?!1:(this.stream._duplexState&=rE,!0)}updateCallback(){(this.stream._duplexState&ZF)===Pn?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&oi)===0&&(this.stream._duplexState|=oi,(this.stream._duplexState&ai)===0&&Hf(this.afterUpdateNextTick))}},Kf=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapReadable:n,byteLength:s,byteLengthReadable:o}={}){this.stream=e,this.queue=new ZS,this.highWaterMark=r===0?1:r,this.buffered=0,this.readAhead=r>0,this.error=null,this.pipeline=null,this.byteLength=o||s||hE,this.map=n||i,this.pipeTo=null,this.afterRead=tj.bind(this),this.afterUpdateNextTick=rj.bind(this)}get ending(){return(this.stream._duplexState&zt)!==0}get ended(){return(this.stream._duplexState&Qe)!==0}pipe(e,r){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof r!="function"&&(r=null),this.stream._duplexState|=ec,this.pipeTo=e,this.pipeline=new Qf(this.stream,e,r),r&&this.stream.on("error",KS),On(e))e._writableState.pipeline=this.pipeline,r&&e.on("error",KS),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{let i=this.pipeline.done.bind(this.pipeline,e),n=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",i),e.on("close",n),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",XF.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){let r=this.stream;return e===null?(this.highWaterMark=0,r._duplexState=(r._duplexState|zt)&vF,!1):this.map!==null&&(e=this.map(e),e===null)?(r._duplexState&=$S,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(e),this.queue.push(e),r._duplexState=(r._duplexState|Gt)&$S,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=TF),e}unshift(e){let r=[this.map!==null?this.map(e):e];for(;this.buffered>0;)r.push(this.shift());for(let i=0;i<r.length-1;i++){let n=r[i];this.buffered+=this.byteLength(n),this.queue.push(n)}this.push(r[r.length-1])}read(){let e=this.stream;if((e._duplexState&VS)===Gt){let r=this.shift();return this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=HS),(e._duplexState&Vf)!==0&&e.emit("data",r),r}return this.readAhead===!1&&(e._duplexState|=yr,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&VS)===Gt&&(e._duplexState&XS)!==0;){let r=this.shift();this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=HS),(e._duplexState&Vf)!==0&&e.emit("data",r)}}update(){let e=this.stream;e._duplexState|=si;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&jF)===yr;)e._duplexState|=mF,e._read(this.afterRead),this.drain();(e._duplexState&FF)===wF&&(e._duplexState|=rc,e.emit("readable")),(e._duplexState&bF)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=AF}updateNonPrimary(){let e=this.stream;if((e._duplexState&qF)===zt&&(e._duplexState=(e._duplexState|Qe)&RF,e.emit("end"),(e._duplexState&sE)===sc&&(e._duplexState|=vt),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&ht)===vt){(e._duplexState&Qo)===0&&(e._duplexState|=Tn,e._destroy(lE.bind(this)));return}(e._duplexState&oE)===ct&&(e._duplexState=(e._duplexState|Tn)&QS,e._open(uE.bind(this)))}continueUpdate(){return(this.stream._duplexState&Wt)===0?!1:(this.stream._duplexState&=JS,!0)}updateCallback(){(this.stream._duplexState&UF)===li?this.update():this.updateNextTick()}updateNextTickIfOpen(){(this.stream._duplexState&WF)===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=sj.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 XF(){this.stream._duplexState|=ec,this.updateCallback()}function JF(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&ht)===0&&(e._duplexState|=Ht,e.emit("finish")),(e._duplexState&sE)===sc&&(e._duplexState|=vt),e._duplexState&=DF,(e._duplexState&ai)===0?this.update():this.updateNextTick()}function lE(t){let e=this.stream;!t&&this.error!==Yo&&(t=this.error),t&&e.emit("error",t),e._duplexState|=xn,e.emit("close");let r=e._readableState,i=e._writableState;if(r!==null&&r.pipeline!==null&&r.pipeline.done(e,t),i!==null){for(;i.drains!==null&&i.drains.length>0;)i.drains.shift().resolve(!1);i.pipeline!==null&&i.pipeline.done(e,t)}}function ej(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=IF,this.drains!==null&&nj(this.drains),(e._duplexState&$F)===Ln&&(e._duplexState&=PF,(e._duplexState&Yf)===Yf&&e.emit("drain")),this.updateCallback()}function tj(t){t&&this.stream.destroy(t),this.stream._duplexState&=SF,this.readAhead===!1&&(this.stream._duplexState&Dn)===0&&(this.stream._duplexState&=eE),this.updateCallback()}function rj(){(this.stream._duplexState&si)===0&&(this.stream._duplexState&=JS,this.update())}function ij(){(this.stream._duplexState&ai)===0&&(this.stream._duplexState&=rE,this.update())}function nj(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}function uE(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&vt)===0&&((e._duplexState&MF)===0&&(e._duplexState|=li),(e._duplexState&GF)===0&&(e._duplexState|=Pn),e.emit("open")),e._duplexState&=nE,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}function sj(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}function oj(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 gF{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",mj.bind(this))),this.on("newListener",oj)}_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)&CF,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&=yF,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}},$o=class t extends Rn{constructor(e){super(e),this._duplexState|=ct|Ht|yr,this._readableState=new Kf(this,e),e&&(this._readableState.readAhead===!1&&(this._duplexState&=eE),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick(),e.encoding&&this.setEncoding(e.encoding))}setEncoding(e){let r=new _F(e),i=this._readableState.map||uj;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?OF:xF,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(gj(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&BF)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&Dn)===0}[Go](){let e=this,r=null,i=null,n=null;return this.on("error",u=>{r=u}),this.on("readable",s),this.on("close",o),{[Go](){return this},next(){return new Promise(function(u,f){i=u,n=f;let c=e.read();c!==null?a(c):(e._duplexState&xn)!==0&&a(null)})},return(){return l(null)},throw(u){return l(u)}};function s(){i!==null&&a(e.read())}function o(){i!==null&&a(null)}function a(u){n!==null&&(r?n(r):u===null&&(e._duplexState&Qe)===0?n(Yo):i({value:u,done:u===null}),n=i=null)}function l(u){return e.destroy(u),new Promise((f,c)=>{if(e._duplexState&xn)return f({value:void 0,done:!0});e.once("close",function(){u?c(u):f({value:void 0,done:!0})})})}}},Ho=class extends Rn{constructor(e){super(e),this._duplexState|=ct|Qe,this._writableState=new zo(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}cork(){this._duplexState|=Zo}uncork(){this._duplexState&=iE,this._writableState.updateNextTick()}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}static isBackpressured(e){return(e._duplexState&KF)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let r=e._writableState,n=(bj(e)?Math.min(1,r.queue.length):r.queue.length)+(e._duplexState&nc?1:0);return n===0?Promise.resolve(!0):(r.drains===null&&(r.drains=[]),new Promise(s=>{r.drains.push({writes:n,resolve:s})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},An=class extends $o{constructor(e){super(e),this._duplexState=ct|this._duplexState&yr,this._writableState=new zo(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=Zo}uncork(){this._duplexState&=iE,this._writableState.updateNextTick()}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},Vo=class extends An{constructor(e){super(e),this._transformState=new Zf(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,r){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(this._transformState.data!==null){let r=this._transformState.data;this._transformState.data=null,e(null),this._transform(r,this._transformState.afterTransform)}else e(null)}destroy(e){super.destroy(e),this._transformState.data!==null&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(e,r){r(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(aj.bind(this))}},Xf=class extends Vo{};function aj(t,e){let r=this._transformState.afterFinal;if(t)return r(t);e!=null&&this.push(e),this.push(null),r(null)}function lj(...t){return new Promise((e,r)=>fE(...t,i=>{if(i)return r(i);e()}))}function fE(t,...e){let r=Array.isArray(t)?[...t,...e]:[t,...e],i=r.length&&typeof r[r.length-1]=="function"?r.pop():null;if(r.length<2)throw new Error("Pipeline requires at least 2 streams");let n=r[0],s=null,o=null;for(let u=1;u<r.length;u++)s=r[u],On(n)?n.pipe(s,l):(a(n,!0,u>1,l),n.pipe(s)),n=s;if(i){let u=!1,f=On(s)||!!(s._writableState&&s._writableState.autoDestroy);s.on("error",c=>{o===null&&(o=c)}),s.on("finish",()=>{u=!0,f||i(o)}),f&&s.on("close",()=>i(o||(u?null:$f)))}return s;function a(u,f,c,h){u.on("error",h),u.on("close",d);function d(){if(f&&u._readableState&&!u._readableState.ended||c&&u._writableState&&!u._writableState.ended)return h($f)}}function l(u){if(!(!u||o)){o=u;for(let f of r)f.destroy(u)}}}function uj(t){return t}function cE(t){return!!t._readableState||!!t._writableState}function On(t){return typeof t._duplexState=="number"&&cE(t)}function fj(t){return!!t._readableState&&t._readableState.ending}function cj(t){return!!t._readableState&&t._readableState.ended}function hj(t){return!!t._writableState&&t._writableState.ending}function dj(t){return!!t._writableState&&t._writableState.ended}function pj(t,e={}){let r=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return!e.all&&r===Yo?null:r}function gj(t){return On(t)&&t.readable}function _j(t){return(t._duplexState&ct)!==ct||(t._duplexState&vt)===vt||(t._duplexState&Qo)!==0}function yj(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}function hE(t){return yj(t)?t.byteLength:1024}function KS(){}function mj(){this.destroy(new Error("Stream aborted."))}function bj(t){return t._writev!==Ho.prototype._writev&&t._writev!==An.prototype._writev}dE.exports={pipeline:fE,pipelinePromise:lj,isStream:cE,isStreamx:On,isEnding:fj,isEnded:cj,isFinishing:hj,isFinished:dj,isDisturbed:_j,getStreamError:pj,Stream:Rn,Writable:Ho,Readable:$o,Duplex:An,Transform:Vo,PassThrough:Xf}});var Xo=g((WU,pE)=>{"use strict";function wj(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function Sj(t){return Buffer.isEncoding(t)}function Ej(t,e,r){return Buffer.alloc(t,e,r)}function vj(t){return Buffer.allocUnsafe(t)}function xj(t){return Buffer.allocUnsafeSlow(t)}function Tj(t,e){return Buffer.byteLength(t,e)}function Rj(t,e){return Buffer.compare(t,e)}function Aj(t,e){return Buffer.concat(t,e)}function Oj(t,e,r,i,n){return K(t).copy(e,r,i,n)}function Ij(t,e){return K(t).equals(e)}function Dj(t,e,r,i,n){return K(t).fill(e,r,i,n)}function Pj(t,e,r){return Buffer.from(t,e,r)}function Lj(t,e,r,i){return K(t).includes(e,r,i)}function Nj(t,e,r,i){return K(t).indexOf(e,r,i)}function Cj(t,e,r,i){return K(t).lastIndexOf(e,r,i)}function kj(t){return K(t).swap16()}function Mj(t){return K(t).swap32()}function qj(t){return K(t).swap64()}function K(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function Fj(t,e,r,i){return K(t).toString(e,r,i)}function jj(t,e,r,i,n){return K(t).write(e,r,i,n)}function Bj(t,e){return K(t).readDoubleBE(e)}function Uj(t,e){return K(t).readDoubleLE(e)}function Wj(t,e){return K(t).readFloatBE(e)}function Gj(t,e){return K(t).readFloatLE(e)}function zj(t,e){return K(t).readInt32BE(e)}function $j(t,e){return K(t).readInt32LE(e)}function Hj(t,e){return K(t).readUInt32BE(e)}function Vj(t,e){return K(t).readUInt32LE(e)}function Yj(t,e,r){return K(t).writeDoubleBE(e,r)}function Kj(t,e,r){return K(t).writeDoubleLE(e,r)}function Zj(t,e,r){return K(t).writeFloatBE(e,r)}function Qj(t,e,r){return K(t).writeFloatLE(e,r)}function Xj(t,e,r){return K(t).writeInt32BE(e,r)}function Jj(t,e,r){return K(t).writeInt32LE(e,r)}function eB(t,e,r){return K(t).writeUInt32BE(e,r)}function tB(t,e,r){return K(t).writeUInt32LE(e,r)}pE.exports={isBuffer:wj,isEncoding:Sj,alloc:Ej,allocUnsafe:vj,allocUnsafeSlow:xj,byteLength:Tj,compare:Rj,concat:Aj,copy:Oj,equals:Ij,fill:Dj,from:Pj,includes:Lj,indexOf:Nj,lastIndexOf:Cj,swap16:kj,swap32:Mj,swap64:qj,toBuffer:K,toString:Fj,write:jj,readDoubleBE:Bj,readDoubleLE:Uj,readFloatBE:Wj,readFloatLE:Gj,readInt32BE:zj,readInt32LE:$j,readUInt32BE:Hj,readUInt32LE:Vj,writeDoubleBE:Yj,writeDoubleLE:Kj,writeFloatBE:Zj,writeFloatLE:Qj,writeInt32BE:Xj,writeInt32LE:Jj,writeUInt32BE:eB,writeUInt32LE:tB}});var uc=g(fi=>{"use strict";var W=Xo(),rB="0000000000000000000",iB="7777777777777777777",Jo=48,gE=W.from([117,115,116,97,114,0]),nB=W.from([Jo,Jo]),sB=W.from([117,115,116,97,114,32]),oB=W.from([32,0]),aB=4095,Nn=257,lc=263;fi.decodeLongPath=function(e,r){return ui(e,0,e.length,r)};fi.encodePax=function(e){let r="";e.name&&(r+=ac(" path="+e.name+`
6
+ `+e);let[,i]=r;return i.replace(/\s/g,"").split(Yv).map(n=>n.replace(Kv,"").trim())}function mh(t,e){var r={};return Object.keys(t).forEach(i=>{var n=t[i],s,o=wi(n),a=!o&&n.length===1||o&&n.length===0;if(Array.isArray(n))s=[...n],n=s.pop(),r[i]=s.concat(s.length>0?l:n);else if(a)r[i]=n;else{if(s=Qv(n),n.length===0&&!o&&s.length===0)throw new Error("autoInject task functions require explicit parameters.");o||s.pop(),r[i]=s.concat(l)}function l(u,f){var c=s.map(h=>u[h]);c.push(f),q(n)(...c)}}),Ca(r,e)}function lh(t,e){t.length=1,t.head=t.tail=e}function ka(t,e,r){if(e==null)e=1;else if(e===0)throw new RangeError("Concurrency must not be zero");var i=q(t),n=0,s=[];let o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(b,v){o[b].push(v)}function l(b,v){let E=(...T)=>{u(b,E),v(...T)};o[b].push(E)}function u(b,v){if(!b)return Object.keys(o).forEach(E=>o[E]=[]);if(!v)return o[b]=[];o[b]=o[b].filter(E=>E!==v)}function f(b,...v){o[b].forEach(E=>E(...v))}var c=!1;function h(b,v,E,T){if(T!=null&&typeof T!="function")throw new Error("task callback must be a function");m.started=!0;var P,x;function O(R,...A){if(R)return E?x(R):P();if(A.length<=1)return P(A[0]);P(A)}var w=m._createTaskItem(b,E?O:T||O);if(v?m._tasks.unshift(w):m._tasks.push(w),c||(c=!0,At(()=>{c=!1,m.process()})),E||!T)return new Promise((R,A)=>{P=R,x=A})}function d(b){return function(v,...E){n-=1;for(var T=0,P=b.length;T<P;T++){var x=b[T],O=s.indexOf(x);O===0?s.shift():O>0&&s.splice(O,1),x.callback(v,...E),v!=null&&f("error",v,x.data)}n<=m.concurrency-m.buffer&&f("unsaturated"),m.idle()&&f("drain"),m.process()}}function y(b){return b.length===0&&m.idle()?(At(()=>f("drain")),!0):!1}let p=b=>v=>{if(!v)return new Promise((E,T)=>{l(b,(P,x)=>{if(P)return T(P);E(x)})});u(b),a(b,v)};var S=!1,m={_tasks:new da,_createTaskItem(b,v){return{data:b,callback:v}},*[Symbol.iterator](){yield*m._tasks[Symbol.iterator]()},concurrency:e,payload:r,buffer:e/4,started:!1,paused:!1,push(b,v){return Array.isArray(b)?y(b)?void 0:b.map(E=>h(E,!1,!1,v)):h(b,!1,!1,v)},pushAsync(b,v){return Array.isArray(b)?y(b)?void 0:b.map(E=>h(E,!1,!0,v)):h(b,!1,!0,v)},kill(){u(),m._tasks.empty()},unshift(b,v){return Array.isArray(b)?y(b)?void 0:b.map(E=>h(E,!0,!1,v)):h(b,!0,!1,v)},unshiftAsync(b,v){return Array.isArray(b)?y(b)?void 0:b.map(E=>h(E,!0,!0,v)):h(b,!0,!0,v)},remove(b){m._tasks.remove(b)},process(){if(!S){for(S=!0;!m.paused&&n<m.concurrency&&m._tasks.length;){var b=[],v=[],E=m._tasks.length;m.payload&&(E=Math.min(E,m.payload));for(var T=0;T<E;T++){var P=m._tasks.shift();b.push(P),s.push(P),v.push(P.data)}n+=1,m._tasks.length===0&&f("empty"),n===m.concurrency&&f("saturated");var x=It(d(b));i(v,x)}S=!1}},length(){return m._tasks.length},running(){return n},workersList(){return s},idle(){return m._tasks.length+n===0},pause(){m.paused=!0},resume(){m.paused!==!1&&(m.paused=!1,At(m.process))}};return Object.defineProperties(m,{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")}}),m}function bh(t,e){return ka(t,1,e)}function wh(t,e,r){return ka(t,e,r)}function Xv(t,e,r,i){i=Ot(i);var n=q(r);return Xe(t,(s,o,a)=>{n(e,s,(l,u)=>{e=u,a(l)})},s=>i(s,e))}function Ma(...t){var e=t.map(q);return function(...r){var i=this,n=r[r.length-1];return typeof n=="function"?r.pop():n=Er(),Sr(e,r,(s,o,a)=>{o.apply(i,s.concat((l,...u)=>{a(l,u)}))},(s,o)=>n(s,...o)),n[vr]}}function Sh(...t){return Ma(...t.reverse())}function Jv(t,e,r,i){return La($e(e),t,r,i)}function ex(t,e,r,i){var n=q(r);return Si(t,e,(s,o)=>{n(s,(a,...l)=>a?o(a):o(a,l))},(s,o)=>{for(var a=[],l=0;l<o.length;l++)o[l]&&(a=a.concat(...o[l]));return i(s,a)})}function tx(t,e,r){return mi(t,1/0,e,r)}function rx(t,e,r){return mi(t,1,e,r)}function Eh(...t){return function(...e){var r=e.pop();return r(null,...t)}}function dt(t,e){return(r,i,n,s)=>{var o=!1,a;let l=q(n);r(i,(u,f,c)=>{l(u,(h,d)=>{if(h||h===!1)return c(h);if(t(d)&&!a)return o=!0,a=e(!0,u),c(null,Vn);c()})},u=>{if(u)return s(u);s(null,o?a:e(!1))})}}function ix(t,e,r){return dt(i=>i,(i,n)=>n)(Fe,t,e,r)}function nx(t,e,r,i){return dt(n=>n,(n,s)=>s)($e(e),t,r,i)}function sx(t,e,r){return dt(i=>i,(i,n)=>n)($e(1),t,e,r)}function vh(t){return(e,...r)=>q(e)(...r,(i,...n)=>{typeof console=="object"&&(i?console.error&&console.error(i):console[t]&&n.forEach(s=>console[t](s)))})}function ox(t,e,r){r=It(r);var i=q(t),n=q(e),s;function o(l,...u){if(l)return r(l);l!==!1&&(s=u,n(...u,a))}function a(l,u){if(l)return r(l);if(l!==!1){if(!u)return r(null,...s);i(o)}}return a(null,!0)}function Th(t,e,r){let i=q(e);return Bn(t,(...n)=>{let s=n.pop();i(...n,(o,a)=>s(o,!a))},r)}function Rh(t){return(e,r,i)=>t(e,i)}function ax(t,e,r){return Fe(t,Rh(q(e)),r)}function lx(t,e,r,i){return $e(e)(t,Rh(q(r)),i)}function ux(t,e,r){return Un(t,1,e,r)}function qa(t){return wi(t)?t:function(...e){var r=e.pop(),i=!0;e.push((...n)=>{i?At(()=>r(...n)):r(...n)}),t.apply(this,e),i=!1}}function fx(t,e,r){return dt(i=>!i,i=>!i)(Fe,t,e,r)}function cx(t,e,r,i){return dt(n=>!n,n=>!n)($e(e),t,r,i)}function hx(t,e,r){return dt(i=>!i,i=>!i)(Xe,t,e,r)}function dx(t,e,r,i){var n=new Array(e.length);t(e,(s,o,a)=>{r(s,(l,u)=>{n[o]=!!u,a(l)})},s=>{if(s)return i(s);for(var o=[],a=0;a<e.length;a++)n[a]&&o.push(e[a]);i(null,o)})}function px(t,e,r,i){var n=[];t(e,(s,o,a)=>{r(s,(l,u)=>{if(l)return a(l);u&&n.push({index:o,value:s}),a(l)})},s=>{if(s)return i(s);i(null,n.sort((o,a)=>o.index-a.index).map(o=>o.value))})}function Kn(t,e,r,i){var n=Hn(e)?dx:px;return n(t,e,q(r),i)}function gx(t,e,r){return Kn(Fe,t,e,r)}function _x(t,e,r,i){return Kn($e(e),t,r,i)}function yx(t,e,r){return Kn(Xe,t,e,r)}function mx(t,e){var r=It(e),i=q(qa(t));function n(s){if(s)return r(s);s!==!1&&i(n)}return n()}function bx(t,e,r,i){var n=q(r);return Si(t,e,(s,o)=>{n(s,(a,l)=>a?o(a):o(a,{key:l,val:s}))},(s,o)=>{for(var a={},{hasOwnProperty:l}=Object.prototype,u=0;u<o.length;u++)if(o[u]){var{key:f}=o[u],{val:c}=o[u];l.call(a,f)?a[f].push(c):a[f]=[c]}return i(s,a)})}function Oh(t,e,r){return Zn(t,1/0,e,r)}function Ih(t,e,r){return Zn(t,1,e,r)}function wx(t,e,r,i){i=Ot(i);var n={},s=q(r);return $e(e)(t,(o,a,l)=>{s(o,a,(u,f)=>{if(u)return l(u);n[a]=f,l(u)})},o=>i(o,n))}function Ph(t,e,r){return Qn(t,1/0,e,r)}function Lh(t,e,r){return Qn(t,1,e,r)}function Nh(t,e=r=>r){var r=Object.create(null),i=Object.create(null),n=q(t),s=bi((o,a)=>{var l=e(...o);l in r?At(()=>a(null,...r[l])):l in i?i[l].push(a):(i[l]=[a],n(...o,(u,...f)=>{u||(r[l]=f);var c=i[l];delete i[l];for(var h=0,d=c.length;h<d;h++)c[h](u,...f)}))});return s.memo=r,s.unmemoized=t,s}function kh(t,e){return Fa(Fe,t,e)}function Mh(t,e,r){return Fa($e(e),t,r)}function ja(t,e){var r=q(t);return ka((i,n)=>{r(i[0],n)},e,1)}function Sx(t){return(t<<1)+1}function uh(t){return(t+1>>1)-1}function ha(t,e){return t.priority!==e.priority?t.priority<e.priority:t.pushCount<e.pushCount}function qh(t,e){var r=ja(t,e),{push:i,pushAsync:n}=r;r._tasks=new Ra,r._createTaskItem=({data:o,priority:a},l)=>({data:o,priority:a,callback:l});function s(o,a){return Array.isArray(o)?o.map(l=>({data:l,priority:a})):{data:o,priority:a}}return r.push=function(o,a=0,l){return i(s(o,a),l)},r.pushAsync=function(o,a=0,l){return n(s(o,a),l)},delete r.unshift,delete r.unshiftAsync,r}function Ex(t,e){if(e=Ot(e),!Array.isArray(t))return e(new TypeError("First argument to race must be an array of functions"));if(!t.length)return e();for(var r=0,i=t.length;r<i;r++)q(t[r])(e)}function Aa(t,e,r,i){var n=[...t].reverse();return Sr(n,e,r,i)}function Gn(t){var e=q(t);return bi(function(i,n){return i.push((s,...o)=>{let a={};if(s&&(a.error=s),o.length>0){var l=o;o.length<=1&&([l]=o),a.value=l}n(null,a)}),e.apply(this,i)})}function jh(t){var e;return Array.isArray(t)?e=t.map(Gn):(e={},Object.keys(t).forEach(r=>{e[r]=Gn.call(this,t[r])})),e}function Ba(t,e,r,i){let n=q(r);return Kn(t,e,(s,o)=>{n(s,(a,l)=>{o(a,!l)})},i)}function vx(t,e,r){return Ba(Fe,t,e,r)}function xx(t,e,r,i){return Ba($e(e),t,r,i)}function Tx(t,e,r){return Ba(Xe,t,e,r)}function Gh(t){return function(){return t}}function zn(t,e,r){var i={times:Oa,intervalFunc:Gh(zh)};if(arguments.length<3&&typeof t=="function"?(r=e||Er(),e=t):(Rx(i,t),r=r||Er()),typeof e!="function")throw new Error("Invalid arguments for async.retry");var n=q(e),s=1;function o(){n((a,...l)=>{a!==!1&&(a&&s++<i.times&&(typeof i.errorFilter!="function"||i.errorFilter(a))?setTimeout(o,i.intervalFunc(s-1)):r(a,...l))})}return o(),r[vr]}function Rx(t,e){if(typeof e=="object")t.times=+e.times||Oa,t.intervalFunc=typeof e.interval=="function"?e.interval:Gh(+e.interval||zh),t.errorFilter=e.errorFilter;else if(typeof e=="number"||typeof e=="string")t.times=+e||Oa;else throw new Error("Invalid arguments for async.retry")}function $h(t,e){e||(e=t,t=null);let r=t&&t.arity||e.length;wi(e)&&(r+=1);var i=q(e);return bi((n,s)=>{(n.length<r-1||s==null)&&(n.push(s),s=Er());function o(a){i(...n,a)}return t?zn(t,o,s):zn(o,s),s[vr]})}function Hh(t,e){return Fa(Xe,t,e)}function Ax(t,e,r){return dt(Boolean,i=>i)(Fe,t,e,r)}function Ox(t,e,r,i){return dt(Boolean,n=>n)($e(e),t,r,i)}function Ix(t,e,r){return dt(Boolean,i=>i)(Xe,t,e,r)}function Dx(t,e,r){var i=q(e);return Yn(t,(s,o)=>{i(s,(a,l)=>{if(a)return o(a);o(a,{value:s,criteria:l})})},(s,o)=>{if(s)return r(s);r(null,o.sort(n).map(a=>a.value))});function n(s,o){var a=s.criteria,l=o.criteria;return a<l?-1:a>l?1:0}}function Yh(t,e,r){var i=q(t);return bi((n,s)=>{var o=!1,a;function l(){var u=t.name||"anonymous",f=new Error('Callback function "'+u+'" timed out.');f.code="ETIMEDOUT",r&&(f.info=r),o=!0,s(f)}n.push((...u)=>{o||(s(...u),clearTimeout(a))}),a=setTimeout(l,e),i(...n)})}function Px(t){for(var e=Array(t);t--;)e[t]=t;return e}function Xn(t,e,r,i){var n=q(r);return Si(Px(t),e,n,i)}function Kh(t,e,r){return Xn(t,1/0,e,r)}function Zh(t,e,r){return Xn(t,1,e,r)}function Qh(t,e,r,i){arguments.length<=3&&typeof e=="function"&&(i=r,r=e,e=Array.isArray(t)?[]:{}),i=Ot(i||Er());var n=q(r);return Fe(t,(s,o,a)=>{n(e,s,o,a)},s=>i(s,e)),i[vr]}function Lx(t,e){var r=null,i;return Wn(t,(n,s)=>{q(n)((o,...a)=>{if(o===!1)return s(o);a.length<2?[i]=a:i=a,r=o,s(o?null:{})})},()=>e(r,i))}function Jh(t){return(...e)=>(t.unmemoized||t)(...e)}function Nx(t,e,r){r=It(r);var i=q(e),n=q(t),s=[];function o(l,...u){if(l)return r(l);s=u,l!==!1&&n(a)}function a(l,u){if(l)return r(l);if(l!==!1){if(!u)return r(null,...s);i(o)}}return n(a)}function ed(t,e,r){let i=q(t);return $n(n=>i((s,o)=>n(s,!o)),e,r)}function Cx(t,e){if(e=Ot(e),!Array.isArray(t))return e(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();var r=0;function i(s){var o=q(t[r++]);o(...s,It(n))}function n(s,...o){if(s!==!1){if(s||r===t.length)return e(s,...o);i(o)}}i([])}var Pv,ch,hh,_i,At,Vn,$e,yi,Fe,Yn,_h,Xe,Na,yh,vr,Hv,Vv,Yv,Kv,da,Sr,Si,mi,pa,ga,_a,ya,ma,xh,Bn,ba,Un,Wn,wa,Sa,Ea,va,xa,Ta,Ah,Zn,Dh,Qn,Fn,Ch,Fa,Ra,Fh,Bh,Uh,Wh,Oa,zh,Ia,Da,Pa,Vh,Xh,$n,td,kx,id=ZE(()=>{"use strict";Pv=typeof queueMicrotask=="function"&&queueMicrotask,ch=typeof setImmediate=="function"&&setImmediate,hh=typeof process=="object"&&typeof process.nextTick=="function";Pv?_i=queueMicrotask:ch?_i=setImmediate:hh?_i=process.nextTick:_i=dh;At=ph(_i);Vn={};$e=t=>(e,r,i)=>{if(i=Ot(i),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return i(null);if(Lv(e))return ah(e,t,r,i);if(Nv(e))return ah(e[Symbol.asyncIterator](),t,r,i);var n=Fv(e),s=!1,o=!1,a=0,l=!1;function u(c,h){if(!o)if(a-=1,c)s=!0,i(c);else if(c===!1)s=!0,o=!0;else{if(h===Vn||s&&a<=0)return s=!0,i(null);l||f()}}function f(){for(l=!0;a<t&&!s;){var c=n();if(c===null){s=!0,a<=0&&i(null);return}a+=1,r(c.value,c.key,It(u))}l=!1}f()};yi=M(jv,4);Fe=M(Wv,3);Yn=M(Gv,3),_h=gh(Yn);Xe=M(zv,3);Na=M($v,3),yh=gh(Na),vr=Symbol("promiseCallback");Hv=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,Vv=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,Yv=/,/,Kv=/(=.+)?(\s*)$/;da=class{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,r){r.prev=e,r.next=e.next,e.next?e.next.prev=r:this.tail=r,e.next=r,this.length+=1}insertBefore(e,r){r.prev=e.prev,r.next=e,e.prev?e.prev.next=r:this.head=r,e.prev=r,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):lh(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):lh(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var r=this.head;r;){var{next:i}=r;e(r)&&this.removeLink(r),r=i}return this}};Sr=M(Xv,4);Si=M(Jv,4);mi=M(ex,4);pa=M(tx,3);ga=M(rx,3);_a=M(ix,3);ya=M(nx,4);ma=M(sx,3);xh=vh("dir");Bn=M(ox,3);ba=M(ax,3);Un=M(lx,4);Wn=M(ux,3);wa=M(fx,3);Sa=M(cx,4);Ea=M(hx,3);va=M(gx,3);xa=M(_x,4);Ta=M(yx,3);Ah=M(mx,2);Zn=M(bx,4);Dh=vh("log");Qn=M(wx,4);hh?Fn=process.nextTick:ch?Fn=setImmediate:Fn=dh;Ch=ph(Fn),Fa=M((t,e,r)=>{var i=Hn(e)?[]:{};t(e,(n,s,o)=>{q(n)((a,...l)=>{l.length<2&&([l]=l),i[s]=l,o(a)})},n=>r(n,i))},3);Ra=class{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let r;for(;e>0&&ha(this.heap[e],this.heap[r=uh(e)]);){let i=this.heap[e];this.heap[e]=this.heap[r],this.heap[r]=i,e=r}}percDown(e){let r;for(;(r=Sx(e))<this.heap.length&&(r+1<this.heap.length&&ha(this.heap[r+1],this.heap[r])&&(r=r+1),!ha(this.heap[e],this.heap[r]));){let i=this.heap[e];this.heap[e]=this.heap[r],this.heap[r]=i,e=r}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let r=0;for(let i=0;i<this.heap.length;i++)e(this.heap[i])||(this.heap[r]=this.heap[i],r++);this.heap.splice(r);for(let i=uh(this.heap.length-1);i>=0;i--)this.percDown(i);return this}};Fh=M(Ex,2);Bh=M(vx,3);Uh=M(xx,4);Wh=M(Tx,3);Oa=5,zh=0;Ia=M(Ax,3);Da=M(Ox,4);Pa=M(Ix,3);Vh=M(Dx,3);Xh=M(Lx);$n=M(Nx,3);td=M(Cx),kx={apply:fh,applyEach:_h,applyEachSeries:yh,asyncify:jn,auto:Ca,autoInject:mh,cargo:bh,cargoQueue:wh,compose:Sh,concat:pa,concatLimit:mi,concatSeries:ga,constant:Eh,detect:_a,detectLimit:ya,detectSeries:ma,dir:xh,doUntil:Th,doWhilst:Bn,each:ba,eachLimit:Un,eachOf:Fe,eachOfLimit:yi,eachOfSeries:Xe,eachSeries:Wn,ensureAsync:qa,every:wa,everyLimit:Sa,everySeries:Ea,filter:va,filterLimit:xa,filterSeries:Ta,forever:Ah,groupBy:Oh,groupByLimit:Zn,groupBySeries:Ih,log:Dh,map:Yn,mapLimit:Si,mapSeries:Na,mapValues:Ph,mapValuesLimit:Qn,mapValuesSeries:Lh,memoize:Nh,nextTick:Ch,parallel:kh,parallelLimit:Mh,priorityQueue:qh,queue:ja,race:Fh,reduce:Sr,reduceRight:Aa,reflect:Gn,reflectAll:jh,reject:Bh,rejectLimit:Uh,rejectSeries:Wh,retry:zn,retryable:$h,seq:Ma,series:Hh,setImmediate:At,some:Ia,someLimit:Da,someSeries:Pa,sortBy:Vh,timeout:Yh,times:Kh,timesLimit:Xn,timesSeries:Zh,transform:Qh,tryEach:Xh,unmemoize:Jh,until:ed,waterfall:td,whilst:$n,all:wa,allLimit:Sa,allSeries:Ea,any:Ia,anyLimit:Da,anySeries:Pa,find:_a,findLimit:ya,findSeries:ma,flatMap:pa,flatMapLimit:mi,flatMapSeries:ga,forEach:ba,forEachSeries:Wn,forEachLimit:Un,forEachOf:Fe,forEachOfSeries:Xe,forEachOfLimit:yi,inject:Sr,foldl:Sr,foldr:Aa,select:va,selectLimit:xa,selectSeries:Ta,wrapSync:jn,during:$n,doDuring:Bn}});var sd=g((n3,nd)=>{"use strict";var Dt=D("constants"),Mx=process.cwd,Jn=null,qx=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Jn||(Jn=Mx.call(process)),Jn};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ua=process.chdir,process.chdir=function(t){Jn=null,Ua.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ua));var Ua;nd.exports=Fx;function Fx(t){Dt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=n(t.chmodSync),t.fchmodSync=n(t.fchmodSync),t.lchmodSync=n(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(f,c,h){h&&process.nextTick(h)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(f,c,h,d){d&&process.nextTick(d)},t.lchownSync=function(){}),qx==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:(function(f){function c(h,d,y){var p=Date.now(),S=0;f(h,d,function m(b){if(b&&(b.code==="EACCES"||b.code==="EPERM"||b.code==="EBUSY")&&Date.now()-p<6e4){setTimeout(function(){t.stat(d,function(v,E){v&&v.code==="ENOENT"?f(h,d,m):y(b)})},S),S<100&&(S+=10);return}y&&y(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,y,p,S,m){var b;if(m&&typeof m=="function"){var v=0;b=function(E,T,P){if(E&&E.code==="EAGAIN"&&v<10)return v++,f.call(t,h,d,y,p,S,b);m.apply(this,arguments)}}return f.call(t,h,d,y,p,S,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,y,p){for(var S=0;;)try{return f.call(t,c,h,d,y,p)}catch(m){if(m.code==="EAGAIN"&&S<10){S++;continue}throw m}}})(t.readSync);function e(f){f.lchmod=function(c,h,d){f.open(c,Dt.O_WRONLY|Dt.O_SYMLINK,h,function(y,p){if(y){d&&d(y);return}f.fchmod(p,h,function(S){f.close(p,function(m){d&&d(S||m)})})})},f.lchmodSync=function(c,h){var d=f.openSync(c,Dt.O_WRONLY|Dt.O_SYMLINK,h),y=!0,p;try{p=f.fchmodSync(d,h),y=!1}finally{if(y)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,y){f.open(c,Dt.O_SYMLINK,function(p,S){if(p){y&&y(p);return}f.futimes(S,h,d,function(m){f.close(S,function(b){y&&y(m||b)})})})},f.lutimesSync=function(c,h,d){var y=f.openSync(c,Dt.O_SYMLINK),p,S=!0;try{p=f.futimesSync(y,h,d),S=!1}finally{if(S)try{f.closeSync(y)}catch{}else f.closeSync(y)}return p}):f.futimes&&(f.lutimes=function(c,h,d,y){y&&process.nextTick(y)},f.lutimesSync=function(){})}function i(f){return f&&function(c,h,d){return f.call(t,c,h,function(y){u(y)&&(y=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,y){return f.call(t,c,h,d,function(p){u(p)&&(p=null),y&&y.apply(this,arguments)})}}function o(f){return f&&function(c,h,d){try{return f.call(t,c,h,d)}catch(y){if(!u(y))throw y}}}function a(f){return f&&function(c,h,d){typeof h=="function"&&(d=h,h=null);function y(p,S){S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),d&&d.apply(this,arguments)}return h?f.call(t,c,h,y):f.call(t,c,y)}}function l(f){return f&&function(c,h){var d=h?f.call(t,c,h):f.call(t,c);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function u(f){if(!f||f.code==="ENOSYS")return!0;var c=!process.getuid||process.getuid()!==0;return!!(c&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var ld=g((s3,ad)=>{"use strict";var od=D("stream").Stream;ad.exports=jx;function jx(t){return{ReadStream:e,WriteStream:r};function e(i,n){if(!(this instanceof e))return new e(i,n);od.call(this);var s=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,n=n||{};for(var o=Object.keys(n),a=0,l=o.length;a<l;a++){var u=o[a];this[u]=n[u]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(f,c){if(f){s.emit("error",f),s.readable=!1;return}s.fd=c,s.emit("open",c),s._read()})}function r(i,n){if(!(this instanceof r))return new r(i,n);od.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,n=n||{};for(var s=Object.keys(n),o=0,a=s.length;o<a;o++){var l=s[o];this[l]=n[l]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var fd=g((o3,ud)=>{"use strict";ud.exports=Ux;var Bx=Object.getPrototypeOf||function(t){return t.__proto__};function Ux(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:Bx(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var $a=g((a3,za)=>{"use strict";var ne=D("fs"),Wx=sd(),Gx=ld(),zx=fd(),es=D("util"),me,rs;typeof Symbol=="function"&&typeof Symbol.for=="function"?(me=Symbol.for("graceful-fs.queue"),rs=Symbol.for("graceful-fs.previous")):(me="___graceful-fs.queue",rs="___graceful-fs.previous");function $x(){}function dd(t,e){Object.defineProperty(t,me,{get:function(){return e}})}var Qt=$x;es.debuglog?Qt=es.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Qt=function(){var t=es.format.apply(es,arguments);t="GFS4: "+t.split(/\n/).join(`
7
+ GFS4: `),console.error(t)});ne[me]||(cd=global[me]||[],dd(ne,cd),ne.close=(function(t){function e(r,i){return t.call(ne,r,function(n){n||hd(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,rs,{value:t}),e})(ne.close),ne.closeSync=(function(t){function e(r){t.apply(ne,arguments),hd()}return Object.defineProperty(e,rs,{value:t}),e})(ne.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Qt(ne[me]),D("assert").equal(ne[me].length,0)}));var cd;global[me]||dd(global,ne[me]);za.exports=Wa(zx(ne));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ne.__patched&&(za.exports=Wa(ne),ne.__patched=!0);function Wa(t){Wx(t),t.gracefulify=Wa,t.createReadStream=T,t.createWriteStream=P;var e=t.readFile;t.readFile=r;function r(w,R,A){return typeof R=="function"&&(A=R,R=null),N(w,R,A);function N(G,ue,Z,te){return e(G,ue,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?xr([N,[G,ue,Z],V,te||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=n;function n(w,R,A,N){return typeof A=="function"&&(N=A,A=null),G(w,R,A,N);function G(ue,Z,te,V,ye){return i(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(w,R,A,N){return typeof A=="function"&&(N=A,A=null),G(w,R,A,N);function G(ue,Z,te,V,ye){return s(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=l);function l(w,R,A,N){return typeof A=="function"&&(N=A,A=0),G(w,R,A,N);function G(ue,Z,te,V,ye){return a(ue,Z,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var u=t.readdir;t.readdir=c;var f=/^v[0-5]\./;function c(w,R,A){typeof R=="function"&&(A=R,R=null);var N=f.test(process.version)?function(Z,te,V,ye){return u(Z,G(Z,te,V,ye))}:function(Z,te,V,ye){return u(Z,te,G(Z,te,V,ye))};return N(w,R,A);function G(ue,Z,te,V){return function(ye,re){ye&&(ye.code==="EMFILE"||ye.code==="ENFILE")?xr([N,[ue,Z,te],ye,V||Date.now(),Date.now()]):(re&&re.sort&&re.sort(),typeof te=="function"&&te.call(this,ye,re))}}}if(process.version.substr(0,4)==="v0.8"){var h=Gx(t);m=h.ReadStream,v=h.WriteStream}var d=t.ReadStream;d&&(m.prototype=Object.create(d.prototype),m.prototype.open=b);var y=t.WriteStream;y&&(v.prototype=Object.create(y.prototype),v.prototype.open=E),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(w){m=w},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return v},set:function(w){v=w},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(w){p=w},enumerable:!0,configurable:!0});var S=v;Object.defineProperty(t,"FileWriteStream",{get:function(){return S},set:function(w){S=w},enumerable:!0,configurable:!0});function m(w,R){return this instanceof m?(d.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function b(){var w=this;O(w.path,w.flags,w.mode,function(R,A){R?(w.autoClose&&w.destroy(),w.emit("error",R)):(w.fd=A,w.emit("open",A),w.read())})}function v(w,R){return this instanceof v?(y.apply(this,arguments),this):v.apply(Object.create(v.prototype),arguments)}function E(){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 P(w,R){return new t.WriteStream(w,R)}var x=t.open;t.open=O;function O(w,R,A,N){return typeof A=="function"&&(N=A,A=null),G(w,R,A,N);function G(ue,Z,te,V,ye){return x(ue,Z,te,function(re,KB){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,Z,te,V],re,ye||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return t}function xr(t){Qt("ENQUEUE",t[0].name,t[1]),ne[me].push(t),Ga()}var ts;function hd(){for(var t=Date.now(),e=0;e<ne[me].length;++e)ne[me][e].length>2&&(ne[me][e][3]=t,ne[me][e][4]=t);Ga()}function Ga(){if(clearTimeout(ts),ts=void 0,ne[me].length!==0){var t=ne[me].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)Qt("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){Qt("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,i)}else{var a=Date.now()-s,l=Math.max(s-n,1),u=Math.min(l*1.2,100);a>=u?(Qt("RETRY",e.name,r),e.apply(null,r.concat([n]))):ne[me].push(t)}ts===void 0&&(ts=setTimeout(Ga,0))}}});var is=g((l3,pd)=>{"use strict";var Je=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Je.writable=t=>Je(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Je.readable=t=>Je(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Je.duplex=t=>Je.writable(t)&&Je.readable(t);Je.transform=t=>Je.duplex(t)&&typeof t._transform=="function";pd.exports=Je});var Ei=g((u3,Ha)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Ha.exports={nextTick:Hx}:Ha.exports=process;function Hx(t,e,r,i){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,s,o;switch(n){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick(function(){t.call(null,e)});case 3:return process.nextTick(function(){t.call(null,e,r)});case 4:return process.nextTick(function(){t.call(null,e,r,i)});default:for(s=new Array(n-1),o=0;o<s.length;)s[o++]=arguments[o];return process.nextTick(function(){t.apply(null,s)})}}});var _d=g((f3,gd)=>{"use strict";var Vx={}.toString;gd.exports=Array.isArray||function(t){return Vx.call(t)=="[object Array]"}});var Va=g((c3,yd)=>{"use strict";yd.exports=D("stream")});var vi=g((Ya,bd)=>{"use strict";var ns=D("buffer"),pt=ns.Buffer;function md(t,e){for(var r in t)e[r]=t[r]}pt.from&&pt.alloc&&pt.allocUnsafe&&pt.allocUnsafeSlow?bd.exports=ns:(md(ns,Ya),Ya.Buffer=Tr);function Tr(t,e,r){return pt(t,e,r)}md(pt,Tr);Tr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return pt(t,e,r)};Tr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=pt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Tr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return pt(t)};Tr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ns.SlowBuffer(t)}});var Rr=g(ve=>{"use strict";function Yx(t){return Array.isArray?Array.isArray(t):ss(t)==="[object Array]"}ve.isArray=Yx;function Kx(t){return typeof t=="boolean"}ve.isBoolean=Kx;function Zx(t){return t===null}ve.isNull=Zx;function Qx(t){return t==null}ve.isNullOrUndefined=Qx;function Xx(t){return typeof t=="number"}ve.isNumber=Xx;function Jx(t){return typeof t=="string"}ve.isString=Jx;function e1(t){return typeof t=="symbol"}ve.isSymbol=e1;function t1(t){return t===void 0}ve.isUndefined=t1;function r1(t){return ss(t)==="[object RegExp]"}ve.isRegExp=r1;function i1(t){return typeof t=="object"&&t!==null}ve.isObject=i1;function n1(t){return ss(t)==="[object Date]"}ve.isDate=n1;function s1(t){return ss(t)==="[object Error]"||t instanceof Error}ve.isError=s1;function o1(t){return typeof t=="function"}ve.isFunction=o1;function a1(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}ve.isPrimitive=a1;ve.isBuffer=D("buffer").Buffer.isBuffer;function ss(t){return Object.prototype.toString.call(t)}});var wd=g((d3,Ka)=>{"use strict";typeof Object.create=="function"?Ka.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Ka.exports=function(e,r){if(r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}}});var Ar=g((p3,Qa)=>{"use strict";try{if(Za=D("util"),typeof Za.inherits!="function")throw"";Qa.exports=Za.inherits}catch{Qa.exports=wd()}var Za});var Ed=g((g3,Xa)=>{"use strict";function l1(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Sd=vi().Buffer,xi=D("util");function u1(t,e,r){t.copy(e,r)}Xa.exports=(function(){function t(){l1(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},t.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},t.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},t.prototype.concat=function(r){if(this.length===0)return Sd.alloc(0);for(var i=Sd.allocUnsafe(r>>>0),n=this.head,s=0;n;)u1(n.data,i,s),s+=n.data.length,n=n.next;return i},t})();xi&&xi.inspect&&xi.inspect.custom&&(Xa.exports.prototype[xi.inspect.custom]=function(){var t=xi.inspect({length:this.length});return this.constructor.name+" "+t})});var Ja=g((_3,vd)=>{"use strict";var os=Ei();function f1(t,e){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,os.nextTick(as,this,t)):os.nextTick(as,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,os.nextTick(as,r,s)):os.nextTick(as,r,s):e&&e(s)}),this)}function c1(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function as(t,e){t.emit("error",e)}vd.exports={destroy:f1,undestroy:c1}});var Td=g((y3,xd)=>{"use strict";xd.exports=D("util").deprecate});var tl=g((m3,Nd)=>{"use strict";var Xt=Ei();Nd.exports=fe;function Ad(t){var e=this;this.next=null,this.entry=null,this.finish=function(){I1(e,t)}}var h1=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Xt.nextTick,Or;fe.WritableState=Ri;var Od=Object.create(Rr());Od.inherits=Ar();var d1={deprecate:Td()},Id=Va(),us=vi().Buffer,p1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function g1(t){return us.from(t)}function _1(t){return us.isBuffer(t)||t instanceof p1}var Dd=Ja();Od.inherits(fe,Id);function y1(){}function Ri(t,e){Or=Or||Jt(),t=t||{};var r=e instanceof Or;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,n=t.writableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=t.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){x1(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ad(this)}Ri.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Ri.prototype,"buffer",{get:d1.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ls;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ls=Function.prototype[Symbol.hasInstance],Object.defineProperty(fe,Symbol.hasInstance,{value:function(t){return ls.call(this,t)?!0:this!==fe?!1:t&&t._writableState instanceof Ri}})):ls=function(t){return t instanceof this};function fe(t){if(Or=Or||Jt(),!ls.call(fe,this)&&!(this instanceof Or))return new fe(t);this._writableState=new Ri(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Id.call(this)}fe.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function m1(t,e){var r=new Error("write after end");t.emit("error",r),Xt.nextTick(e,r)}function b1(t,e,r,i){var n=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!e.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),Xt.nextTick(i,s),n=!1),n}fe.prototype.write=function(t,e,r){var i=this._writableState,n=!1,s=!i.objectMode&&_1(t);return s&&!us.isBuffer(t)&&(t=g1(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=y1),i.ended?m1(this,r):(s||b1(this,i,t,r))&&(i.pendingcb++,n=S1(this,i,s,t,e,r)),n};fe.prototype.cork=function(){var t=this._writableState;t.corked++};fe.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&Pd(this,t))};fe.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this};function w1(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=us.from(e,r)),e}Object.defineProperty(fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function S1(t,e,r,i,n,s){if(!r){var o=w1(e,i,n);i!==o&&(r=!0,n="buffer",i=o)}var a=e.objectMode?1:i.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:s,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else el(t,e,!1,a,i,n,s);return l}function el(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function E1(t,e,r,i,n){--e.pendingcb,r?(Xt.nextTick(n,i),Xt.nextTick(Ti,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(n(i),t._writableState.errorEmitted=!0,t.emit("error",i),Ti(t,e))}function v1(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function x1(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(v1(r),e)E1(t,r,i,e,n);else{var s=Ld(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Pd(t,r),i?h1(Rd,t,r,s,n):Rd(t,r,s,n)}}function Rd(t,e,r,i){r||T1(t,e),e.pendingcb--,i(),Ti(t,e)}function T1(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function Pd(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,n=new Array(i),s=e.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)n[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;n.allBuffers=a,el(t,e,!0,e.length,n,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new Ad(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,f=r.callback,c=e.objectMode?1:l.length;if(el(t,e,!1,c,l,u,f),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}fe.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))};fe.prototype._writev=null;fe.prototype.end=function(t,e,r){var i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||O1(this,i,r)};function Ld(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function R1(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),Ti(t,e)})}function A1(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,Xt.nextTick(R1,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Ti(t,e){var r=Ld(e);return r&&(A1(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}function O1(t,e,r){e.ending=!0,Ti(t,e),r&&(e.finished?Xt.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function I1(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(fe.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});fe.prototype.destroy=Dd.destroy;fe.prototype._undestroy=Dd.undestroy;fe.prototype._destroy=function(t,e){this.end(),e(t)}});var Jt=g((b3,qd)=>{"use strict";var Cd=Ei(),D1=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};qd.exports=gt;var kd=Object.create(Rr());kd.inherits=Ar();var Md=nl(),il=tl();kd.inherits(gt,Md);for(rl=D1(il.prototype),fs=0;fs<rl.length;fs++)cs=rl[fs],gt.prototype[cs]||(gt.prototype[cs]=il.prototype[cs]);var rl,cs,fs;function gt(t){if(!(this instanceof gt))return new gt(t);Md.call(this,t),il.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",P1)}Object.defineProperty(gt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function P1(){this.allowHalfOpen||this._writableState.ended||Cd.nextTick(L1,this)}function L1(t){t.end()}Object.defineProperty(gt.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}});gt.prototype._destroy=function(t,e){this.push(null),this.end(),Cd.nextTick(e,t)}});var al=g(jd=>{"use strict";var ol=vi().Buffer,Fd=ol.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function N1(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function C1(t){var e=N1(t);if(typeof e!="string"&&(ol.isEncoding===Fd||!Fd(t)))throw new Error("Unknown encoding: "+t);return e||t}jd.StringDecoder=Ai;function Ai(t){this.encoding=C1(t);var e;switch(this.encoding){case"utf16le":this.text=B1,this.end=U1,e=4;break;case"utf8":this.fillLast=q1,e=4;break;case"base64":this.text=W1,this.end=G1,e=3;break;default:this.write=z1,this.end=$1;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ol.allocUnsafe(e)}Ai.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};Ai.prototype.end=j1;Ai.prototype.text=F1;Ai.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function sl(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function k1(t,e,r){var i=e.length-1;if(i<r)return 0;var n=sl(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=sl(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=sl(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function M1(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function q1(t){var e=this.lastTotal-this.lastNeed,r=M1(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function F1(t,e){var r=k1(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function j1(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function B1(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function U1(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function W1(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function G1(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function z1(t){return t.toString(this.encoding)}function $1(t){return t&&t.length?this.write(t):""}});var nl=g((E3,Qd)=>{"use strict";var Dr=Ei();Qd.exports=Q;var H1=_d(),Oi;Q.ReadableState=Hd;var S3=D("events").EventEmitter,Gd=function(t,e){return t.listeners(e).length},hl=Va(),Ii=vi().Buffer,V1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Y1(t){return Ii.from(t)}function K1(t){return Ii.isBuffer(t)||t instanceof V1}var zd=Object.create(Rr());zd.inherits=Ar();var ll=D("util"),$=void 0;ll&&ll.debuglog?$=ll.debuglog("stream"):$=function(){};var Z1=Ed(),$d=Ja(),Ir;zd.inherits(Q,hl);var ul=["error","close","destroy","pause","resume"];function Q1(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):H1(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Hd(t,e){Oi=Oi||Jt(),t=t||{};var r=e instanceof Oi;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,n=t.readableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Z1,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Ir||(Ir=al().StringDecoder),this.decoder=new Ir(t.encoding),this.encoding=t.encoding)}function Q(t){if(Oi=Oi||Jt(),!(this instanceof Q))return new Q(t);this._readableState=new Hd(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),hl.call(this)}Object.defineProperty(Q.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Q.prototype.destroy=$d.destroy;Q.prototype._undestroy=$d.undestroy;Q.prototype._destroy=function(t,e){this.push(null),e(t)};Q.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Ii.from(t,e),e=""),i=!0),Vd(this,t,e,!1,i)};Q.prototype.unshift=function(t){return Vd(this,t,null,!0,!1)};function Vd(t,e,r,i,n){var s=t._readableState;if(e===null)s.reading=!1,tT(t,s);else{var o;n||(o=X1(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Ii.prototype&&(e=Y1(e)),i?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):fl(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||e.length!==0?fl(t,s,e,!1):Yd(t,s)):fl(t,s,e,!1))):i||(s.reading=!1)}return J1(s)}function fl(t,e,r,i){e.flowing&&e.length===0&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&hs(t)),Yd(t,e)}function X1(t,e){var r;return!K1(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function J1(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}Q.prototype.isPaused=function(){return this._readableState.flowing===!1};Q.prototype.setEncoding=function(t){return Ir||(Ir=al().StringDecoder),this._readableState.decoder=new Ir(t),this._readableState.encoding=t,this};var Bd=8388608;function eT(t){return t>=Bd?t=Bd:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Ud(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=eT(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}Q.prototype.read=function(t){$("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return $("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?cl(this):hs(this),null;if(t=Ud(t,e),t===0&&e.ended)return e.length===0&&cl(this),null;var i=e.needReadable;$("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,$("length less than watermark",i)),e.ended||e.reading?(i=!1,$("reading or ended",i)):i&&($("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Ud(r,e)));var n;return t>0?n=Kd(t,e):n=null,n===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&cl(this)),n!==null&&this.emit("data",n),n};function tT(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,hs(t)}}function hs(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||($("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Dr.nextTick(Wd,t):Wd(t))}function Wd(t){$("emit readable"),t.emit("readable"),dl(t)}function Yd(t,e){e.readingMore||(e.readingMore=!0,Dr.nextTick(rT,t,e))}function rT(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&($("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}Q.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))};Q.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,$("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=n?a:S;i.endEmitted?Dr.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(m,b){$("onunpipe"),m===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",y),t.removeListener("finish",p),t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",S),r.removeListener("data",h),u=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}var c=!1;r.on("data",h);function h(m){$("ondata"),c=!1;var b=t.write(m);b===!1&&!c&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Zd(i.pipes,t)!==-1)&&!u&&($("false write response, pause",i.awaitDrain),i.awaitDrain++,c=!0),r.pause())}function d(m){$("onerror",m),S(),t.removeListener("error",d),Gd(t,"error")===0&&t.emit("error",m)}Q1(t,"error",d);function y(){t.removeListener("finish",p),S()}t.once("close",y);function p(){$("onfinish"),t.removeListener("close",y),S()}t.once("finish",p);function S(){$("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||($("pipe resume"),r.resume()),t};function iT(t){return function(){var e=t._readableState;$("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&Gd(t,"data")&&(e.flowing=!0,dl(t))}}Q.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<n;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Zd(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};Q.prototype.on=function(t,e){var r=hl.prototype.on.call(this,t,e);if(t==="data")this._readableState.flowing!==!1&&this.resume();else if(t==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&hs(this):Dr.nextTick(nT,this))}return r};Q.prototype.addListener=Q.prototype.on;function nT(t){$("readable nexttick read 0"),t.read(0)}Q.prototype.resume=function(){var t=this._readableState;return t.flowing||($("resume"),t.flowing=!0,sT(this,t)),this};function sT(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Dr.nextTick(oT,t,e))}function oT(t,e){e.reading||($("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),dl(t),e.flowing&&!e.reading&&t.read(0)}Q.prototype.pause=function(){return $("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&($("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function dl(t){var e=t._readableState;for($("flow",e.flowing);e.flowing&&t.read()!==null;);}Q.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if($("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if($("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(o){return function(){return t[o].apply(t,arguments)}})(n));for(var s=0;s<ul.length;s++)t.on(ul[s],this.emit.bind(this,ul[s]));return this._read=function(o){$("wrapped _read",o),i&&(i=!1,t.resume())},this};Object.defineProperty(Q.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Q._fromList=Kd;function Kd(t,e){if(e.length===0)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.head.data:r=e.buffer.concat(e.length),e.buffer.clear()):r=aT(t,e.buffer,e.decoder),r}function aT(t,e,r){var i;return t<e.head.data.length?(i=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):t===e.head.data.length?i=e.shift():i=r?lT(t,e):uT(t,e),i}function lT(t,e){var r=e.head,i=1,n=r.data;for(t-=n.length;r=r.next;){var s=r.data,o=t>s.length?s.length:t;if(o===s.length?n+=s:n+=s.slice(0,t),t-=o,t===0){o===s.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=s.slice(o));break}++i}return e.length-=i,n}function uT(t,e){var r=Ii.allocUnsafe(t),i=e.head,n=1;for(i.data.copy(r),t-=i.data.length;i=i.next;){var s=i.data,o=t>s.length?s.length:t;if(s.copy(r,r.length-t,0,o),t-=o,t===0){o===s.length?(++n,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=s.slice(o));break}++n}return e.length-=n,r}function cl(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Dr.nextTick(fT,e,t))}function fT(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function Zd(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var pl=g((v3,ep)=>{"use strict";ep.exports=_t;var ds=Jt(),Jd=Object.create(Rr());Jd.inherits=Ar();Jd.inherits(_t,ds);function cT(t,e){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,e!=null&&this.push(e),i(t);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function _t(t){if(!(this instanceof _t))return new _t(t);ds.call(this,t),this._transformState={afterTransform:cT.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",hT)}function hT(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){Xd(t,e,r)}):Xd(this,null,null)}_t.prototype.push=function(t,e){return this._transformState.needTransform=!1,ds.prototype.push.call(this,t,e)};_t.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")};_t.prototype._write=function(t,e,r){var i=this._transformState;if(i.writecb=r,i.writechunk=t,i.writeencoding=e,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};_t.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};_t.prototype._destroy=function(t,e){var r=this;ds.prototype._destroy.call(this,t,function(i){e(i),r.emit("close")})};function Xd(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}});var np=g((x3,ip)=>{"use strict";ip.exports=Di;var tp=pl(),rp=Object.create(Rr());rp.inherits=Ar();rp.inherits(Di,tp);function Di(t){if(!(this instanceof Di))return new Di(t);tp.call(this,t)}Di.prototype._transform=function(t,e,r){r(null,t)}});var sp=g((be,ps)=>{"use strict";var et=D("stream");process.env.READABLE_STREAM==="disable"&&et?(ps.exports=et,be=ps.exports=et.Readable,be.Readable=et.Readable,be.Writable=et.Writable,be.Duplex=et.Duplex,be.Transform=et.Transform,be.PassThrough=et.PassThrough,be.Stream=et):(be=ps.exports=nl(),be.Stream=et||be,be.Readable=be,be.Writable=tl(),be.Duplex=Jt(),be.Transform=pl(),be.PassThrough=np())});var ap=g((T3,op)=>{"use strict";op.exports=sp().PassThrough});var cp=g((R3,fp)=>{"use strict";var lp=D("util"),ys=ap();fp.exports={Readable:gs,Writable:_s};lp.inherits(gs,ys);lp.inherits(_s,ys);function up(t,e,r){t[e]=function(){return delete t[e],r.apply(this,arguments),this[e].apply(this,arguments)}}function gs(t,e){if(!(this instanceof gs))return new gs(t,e);ys.call(this,e),up(this,"_read",function(){var r=t.call(this,e),i=this.emit.bind(this,"error");r.on("error",i),r.pipe(this)}),this.emit("readable")}function _s(t,e){if(!(this instanceof _s))return new _s(t,e);ys.call(this,e),up(this,"_write",function(){var r=t.call(this,e),i=this.emit.bind(this,"error");r.on("error",i),this.pipe(r)}),this.emit("writable")}});var gl=g((A3,hp)=>{"use strict";hp.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var i="";if(r>4&&t[3]==="\\"){var n=t[2];(n==="?"||n===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),i="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),i+s.join("/")}});var _l=g((O3,dp)=>{"use strict";function dT(t){return t}dp.exports=dT});var gp=g((I3,pp)=>{"use strict";function pT(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}pp.exports=pT});var mp=g((D3,yp)=>{"use strict";var gT=gp(),_p=Math.max;function _T(t,e,r){return e=_p(e===void 0?t.length-1:e,0),function(){for(var i=arguments,n=-1,s=_p(i.length-e,0),o=Array(s);++n<s;)o[n]=i[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=i[n];return a[e]=r(o),gT(t,this,a)}}yp.exports=_T});var wp=g((P3,bp)=>{"use strict";function yT(t){return function(){return t}}bp.exports=yT});var yl=g((L3,Sp)=>{"use strict";var mT=typeof global=="object"&&global&&global.Object===Object&&global;Sp.exports=mT});var Pr=g((N3,Ep)=>{"use strict";var bT=yl(),wT=typeof self=="object"&&self&&self.Object===Object&&self,ST=bT||wT||Function("return this")();Ep.exports=ST});var ms=g((C3,vp)=>{"use strict";var ET=Pr(),vT=ET.Symbol;vp.exports=vT});var Ap=g((k3,Rp)=>{"use strict";var xp=ms(),Tp=Object.prototype,xT=Tp.hasOwnProperty,TT=Tp.toString,Pi=xp?xp.toStringTag:void 0;function RT(t){var e=xT.call(t,Pi),r=t[Pi];try{t[Pi]=void 0;var i=!0}catch{}var n=TT.call(t);return i&&(e?t[Pi]=r:delete t[Pi]),n}Rp.exports=RT});var Ip=g((M3,Op)=>{"use strict";var AT=Object.prototype,OT=AT.toString;function IT(t){return OT.call(t)}Op.exports=IT});var Li=g((q3,Lp)=>{"use strict";var Dp=ms(),DT=Ap(),PT=Ip(),LT="[object Null]",NT="[object Undefined]",Pp=Dp?Dp.toStringTag:void 0;function CT(t){return t==null?t===void 0?NT:LT:Pp&&Pp in Object(t)?DT(t):PT(t)}Lp.exports=CT});var Ni=g((F3,Np)=>{"use strict";function kT(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}Np.exports=kT});var ml=g((j3,Cp)=>{"use strict";var MT=Li(),qT=Ni(),FT="[object AsyncFunction]",jT="[object Function]",BT="[object GeneratorFunction]",UT="[object Proxy]";function WT(t){if(!qT(t))return!1;var e=MT(t);return e==jT||e==BT||e==FT||e==UT}Cp.exports=WT});var Mp=g((B3,kp)=>{"use strict";var GT=Pr(),zT=GT["__core-js_shared__"];kp.exports=zT});var jp=g((U3,Fp)=>{"use strict";var bl=Mp(),qp=(function(){var t=/[^.]+$/.exec(bl&&bl.keys&&bl.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function $T(t){return!!qp&&qp in t}Fp.exports=$T});var Up=g((W3,Bp)=>{"use strict";var HT=Function.prototype,VT=HT.toString;function YT(t){if(t!=null){try{return VT.call(t)}catch{}try{return t+""}catch{}}return""}Bp.exports=YT});var Gp=g((G3,Wp)=>{"use strict";var KT=ml(),ZT=jp(),QT=Ni(),XT=Up(),JT=/[\\^$.*+?()[\]{}|]/g,eR=/^\[object .+?Constructor\]$/,tR=Function.prototype,rR=Object.prototype,iR=tR.toString,nR=rR.hasOwnProperty,sR=RegExp("^"+iR.call(nR).replace(JT,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function oR(t){if(!QT(t)||ZT(t))return!1;var e=KT(t)?sR:eR;return e.test(XT(t))}Wp.exports=oR});var $p=g((z3,zp)=>{"use strict";function aR(t,e){return t?.[e]}zp.exports=aR});var Ci=g(($3,Hp)=>{"use strict";var lR=Gp(),uR=$p();function fR(t,e){var r=uR(t,e);return lR(r)?r:void 0}Hp.exports=fR});var Yp=g((H3,Vp)=>{"use strict";var cR=Ci(),hR=(function(){try{var t=cR(Object,"defineProperty");return t({},"",{}),t}catch{}})();Vp.exports=hR});var Qp=g((V3,Zp)=>{"use strict";var dR=wp(),Kp=Yp(),pR=_l(),gR=Kp?function(t,e){return Kp(t,"toString",{configurable:!0,enumerable:!1,value:dR(e),writable:!0})}:pR;Zp.exports=gR});var Jp=g((Y3,Xp)=>{"use strict";var _R=800,yR=16,mR=Date.now;function bR(t){var e=0,r=0;return function(){var i=mR(),n=yR-(i-r);if(r=i,n>0){if(++e>=_R)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}Xp.exports=bR});var tg=g((K3,eg)=>{"use strict";var wR=Qp(),SR=Jp(),ER=SR(wR);eg.exports=ER});var bs=g((Z3,rg)=>{"use strict";var vR=_l(),xR=mp(),TR=tg();function RR(t,e){return TR(xR(t,e,vR),t+"")}rg.exports=RR});var ws=g((Q3,ig)=>{"use strict";function AR(t,e){return t===e||t!==t&&e!==e}ig.exports=AR});var wl=g((X3,ng)=>{"use strict";var OR=9007199254740991;function IR(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=OR}ng.exports=IR});var Ss=g((J3,sg)=>{"use strict";var DR=ml(),PR=wl();function LR(t){return t!=null&&PR(t.length)&&!DR(t)}sg.exports=LR});var Sl=g((e4,og)=>{"use strict";var NR=9007199254740991,CR=/^(?:0|[1-9]\d*)$/;function kR(t,e){var r=typeof t;return e=e??NR,!!e&&(r=="number"||r!="symbol"&&CR.test(t))&&t>-1&&t%1==0&&t<e}og.exports=kR});var lg=g((t4,ag)=>{"use strict";var MR=ws(),qR=Ss(),FR=Sl(),jR=Ni();function BR(t,e,r){if(!jR(r))return!1;var i=typeof e;return(i=="number"?qR(r)&&FR(e,r.length):i=="string"&&e in r)?MR(r[e],t):!1}ag.exports=BR});var fg=g((r4,ug)=>{"use strict";function UR(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}ug.exports=UR});var Lr=g((i4,cg)=>{"use strict";function WR(t){return t!=null&&typeof t=="object"}cg.exports=WR});var dg=g((n4,hg)=>{"use strict";var GR=Li(),zR=Lr(),$R="[object Arguments]";function HR(t){return zR(t)&&GR(t)==$R}hg.exports=HR});var El=g((s4,_g)=>{"use strict";var pg=dg(),VR=Lr(),gg=Object.prototype,YR=gg.hasOwnProperty,KR=gg.propertyIsEnumerable,ZR=pg((function(){return arguments})())?pg:function(t){return VR(t)&&YR.call(t,"callee")&&!KR.call(t,"callee")};_g.exports=ZR});var vl=g((o4,yg)=>{"use strict";var QR=Array.isArray;yg.exports=QR});var bg=g((a4,mg)=>{"use strict";function XR(){return!1}mg.exports=XR});var vg=g((ki,Nr)=>{"use strict";var JR=Pr(),eA=bg(),Eg=typeof ki=="object"&&ki&&!ki.nodeType&&ki,wg=Eg&&typeof Nr=="object"&&Nr&&!Nr.nodeType&&Nr,tA=wg&&wg.exports===Eg,Sg=tA?JR.Buffer:void 0,rA=Sg?Sg.isBuffer:void 0,iA=rA||eA;Nr.exports=iA});var Tg=g((l4,xg)=>{"use strict";var nA=Li(),sA=wl(),oA=Lr(),aA="[object Arguments]",lA="[object Array]",uA="[object Boolean]",fA="[object Date]",cA="[object Error]",hA="[object Function]",dA="[object Map]",pA="[object Number]",gA="[object Object]",_A="[object RegExp]",yA="[object Set]",mA="[object String]",bA="[object WeakMap]",wA="[object ArrayBuffer]",SA="[object DataView]",EA="[object Float32Array]",vA="[object Float64Array]",xA="[object Int8Array]",TA="[object Int16Array]",RA="[object Int32Array]",AA="[object Uint8Array]",OA="[object Uint8ClampedArray]",IA="[object Uint16Array]",DA="[object Uint32Array]",X={};X[EA]=X[vA]=X[xA]=X[TA]=X[RA]=X[AA]=X[OA]=X[IA]=X[DA]=!0;X[aA]=X[lA]=X[wA]=X[uA]=X[SA]=X[fA]=X[cA]=X[hA]=X[dA]=X[pA]=X[gA]=X[_A]=X[yA]=X[mA]=X[bA]=!1;function PA(t){return oA(t)&&sA(t.length)&&!!X[nA(t)]}xg.exports=PA});var xl=g((u4,Rg)=>{"use strict";function LA(t){return function(e){return t(e)}}Rg.exports=LA});var Og=g((Mi,Cr)=>{"use strict";var NA=yl(),Ag=typeof Mi=="object"&&Mi&&!Mi.nodeType&&Mi,qi=Ag&&typeof Cr=="object"&&Cr&&!Cr.nodeType&&Cr,CA=qi&&qi.exports===Ag,Tl=CA&&NA.process,kA=(function(){try{var t=qi&&qi.require&&qi.require("util").types;return t||Tl&&Tl.binding&&Tl.binding("util")}catch{}})();Cr.exports=kA});var Lg=g((f4,Pg)=>{"use strict";var MA=Tg(),qA=xl(),Ig=Og(),Dg=Ig&&Ig.isTypedArray,FA=Dg?qA(Dg):MA;Pg.exports=FA});var Cg=g((c4,Ng)=>{"use strict";var jA=fg(),BA=El(),UA=vl(),WA=vg(),GA=Sl(),zA=Lg(),$A=Object.prototype,HA=$A.hasOwnProperty;function VA(t,e){var r=UA(t),i=!r&&BA(t),n=!r&&!i&&WA(t),s=!r&&!i&&!n&&zA(t),o=r||i||n||s,a=o?jA(t.length,String):[],l=a.length;for(var u in t)(e||HA.call(t,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||GA(u,l)))&&a.push(u);return a}Ng.exports=VA});var Mg=g((h4,kg)=>{"use strict";var YA=Object.prototype;function KA(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||YA;return t===r}kg.exports=KA});var Fg=g((d4,qg)=>{"use strict";function ZA(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}qg.exports=ZA});var Bg=g((p4,jg)=>{"use strict";var QA=Ni(),XA=Mg(),JA=Fg(),eO=Object.prototype,tO=eO.hasOwnProperty;function rO(t){if(!QA(t))return JA(t);var e=XA(t),r=[];for(var i in t)i=="constructor"&&(e||!tO.call(t,i))||r.push(i);return r}jg.exports=rO});var Wg=g((g4,Ug)=>{"use strict";var iO=Cg(),nO=Bg(),sO=Ss();function oO(t){return sO(t)?iO(t,!0):nO(t)}Ug.exports=oO});var $g=g((_4,zg)=>{"use strict";var aO=bs(),lO=ws(),uO=lg(),fO=Wg(),Gg=Object.prototype,cO=Gg.hasOwnProperty,hO=aO(function(t,e){t=Object(t);var r=-1,i=e.length,n=i>2?e[2]:void 0;for(n&&uO(e[0],e[1],n)&&(i=1);++r<i;)for(var s=e[r],o=fO(s),a=-1,l=o.length;++a<l;){var u=o[a],f=t[u];(f===void 0||lO(f,Gg[u])&&!cO.call(t,u))&&(t[u]=s[u])}return t});zg.exports=hO});var ie=g((y4,Hg)=>{"use strict";var Rl=class extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let r="";for(let i=0;i<e.length;i++)r+=` ${e[i].stack}
8
+ `;super(r),this.name="AggregateError",this.errors=e}};Hg.exports={AggregateError:Rl,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var Al=g((m4,Vg)=>{"use strict";Vg.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let n=e.shift();return i==="f"?n.toFixed(6):i==="j"?JSON.stringify(n):i==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var xe=g((b4,Zg)=>{"use strict";var{format:dO,inspect:Es}=Al(),{AggregateError:pO}=ie(),gO=globalThis.AggregateError||pO,_O=Symbol("kIsNodeError"),yO=["string","function","number","object","Function","Object","boolean","bigint","symbol"],mO=/^([A-Z][a-z0-9]*)+$/,bO="__node_internal_",vs={};function er(t,e){if(!t)throw new vs.ERR_INTERNAL_ASSERTION(e)}function Yg(t){let e="",r=t.length,i=t[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function wO(t,e,r){if(typeof e=="function")return er(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return er(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:dO(e,...r)}function we(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(wO(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=t,i.prototype[_O]=!0,vs[t]=i}function Kg(t){let e=bO+t.name;return Object.defineProperty(t,"name",{value:e}),t}function SO(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new gO([e,t],e.message);return r.code=e.code,r}return t||e}var Ol=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new vs.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};we("ERR_ASSERTION","%s",Error);we("ERR_INVALID_ARG_TYPE",(t,e,r)=>{er(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let i="The ";t.endsWith(" argument")?i+=`${t} `:i+=`"${t}" ${t.includes(".")?"property":"argument"} `,i+="must be ";let n=[],s=[],o=[];for(let l of e)er(typeof l=="string","All expected entries have to be of type string"),yO.includes(l)?n.push(l.toLowerCase()):mO.test(l)?s.push(l):(er(l!=="object",'The value "object" should be written as "Object"'),o.push(l));if(s.length>0){let l=n.indexOf("object");l!==-1&&(n.splice(n,l,1),s.push("Object"))}if(n.length>0){switch(n.length){case 1:i+=`of type ${n[0]}`;break;case 2:i+=`one of type ${n[0]} or ${n[1]}`;break;default:{let l=n.pop();i+=`one of type ${n.join(", ")}, or ${l}`}}(s.length>0||o.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();i+=`an instance of ${s.join(", ")}, or ${l}`}}o.length>0&&(i+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(i+="an "),i+=`${o[0]}`;break;case 2:i+=`one of ${o[0]} or ${o[1]}`;break;default:{let l=o.pop();i+=`one of ${o.join(", ")}, or ${l}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)i+=`. Received an instance of ${r.constructor.name}`;else{let l=Es(r,{depth:-1});i+=`. Received ${l}`}}else{let l=Es(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),i+=`. Received type ${typeof r} (${l})`}return i},TypeError);we("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let i=Es(e);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${i}`},TypeError);we("ERR_INVALID_RETURN_VALUE",(t,e,r)=>{var i;let n=r!=null&&(i=r.constructor)!==null&&i!==void 0&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the "${e}" function but got ${n}.`},TypeError);we("ERR_MISSING_ARGS",(...t)=>{er(t.length>0,"At least one arg needs to be specified");let e,r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(i=>`"${i}"`).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{let i=t.pop();e+=`The ${t.join(", ")}, and ${i} arguments`}break}return`${e} must be specified`},TypeError);we("ERR_OUT_OF_RANGE",(t,e,r)=>{er(e,'Missing "range" argument');let i;if(Number.isInteger(r)&&Math.abs(r)>2**32)i=Yg(String(r));else if(typeof r=="bigint"){i=String(r);let n=BigInt(2)**BigInt(32);(r>n||r<-n)&&(i=Yg(i)),i+="n"}else i=Es(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${i}`},RangeError);we("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);we("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);we("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);we("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);we("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);we("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);we("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);we("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);we("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);we("ERR_STREAM_WRITE_AFTER_END","write after end",Error);we("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);Zg.exports={AbortError:Ol,aggregateTwoErrors:Kg(SO),hideStackFrames:Kg,codes:vs}});var o_=g((Bi,ji)=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});var r_=new WeakMap,Il=new WeakMap;function J(t){let e=r_.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}function Qg(t){if(t.passiveListener!=null){typeof console<"u"&&typeof console.error=="function"&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener);return}t.event.cancelable&&(t.canceled=!0,typeof t.event.preventDefault=="function"&&t.event.preventDefault())}function kr(t,e){r_.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:e.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let r=Object.keys(e);for(let i=0;i<r.length;++i){let n=r[i];n in this||Object.defineProperty(this,n,i_(n))}}kr.prototype={get type(){return J(this).event.type},get target(){return J(this).eventTarget},get currentTarget(){return J(this).currentTarget},composedPath(){let t=J(this).currentTarget;return t==null?[]:[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return J(this).eventPhase},stopPropagation(){let t=J(this);t.stopped=!0,typeof t.event.stopPropagation=="function"&&t.event.stopPropagation()},stopImmediatePropagation(){let t=J(this);t.stopped=!0,t.immediateStopped=!0,typeof t.event.stopImmediatePropagation=="function"&&t.event.stopImmediatePropagation()},get bubbles(){return!!J(this).event.bubbles},get cancelable(){return!!J(this).event.cancelable},preventDefault(){Qg(J(this))},get defaultPrevented(){return J(this).canceled},get composed(){return!!J(this).event.composed},get timeStamp(){return J(this).timeStamp},get srcElement(){return J(this).eventTarget},get cancelBubble(){return J(this).stopped},set cancelBubble(t){if(!t)return;let e=J(this);e.stopped=!0,typeof e.event.cancelBubble=="boolean"&&(e.event.cancelBubble=!0)},get returnValue(){return!J(this).canceled},set returnValue(t){t||Qg(J(this))},initEvent(){}};Object.defineProperty(kr.prototype,"constructor",{value:kr,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(kr.prototype,window.Event.prototype),Il.set(window.Event.prototype,kr));function i_(t){return{get(){return J(this).event[t]},set(e){J(this).event[t]=e},configurable:!0,enumerable:!0}}function EO(t){return{value(){let e=J(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function vO(t,e){let r=Object.keys(e);if(r.length===0)return t;function i(n,s){t.call(this,n,s)}i.prototype=Object.create(t.prototype,{constructor:{value:i,configurable:!0,writable:!0}});for(let n=0;n<r.length;++n){let s=r[n];if(!(s in t.prototype)){let a=typeof Object.getOwnPropertyDescriptor(e,s).value=="function";Object.defineProperty(i.prototype,s,a?EO(s):i_(s))}}return i}function n_(t){if(t==null||t===Object.prototype)return kr;let e=Il.get(t);return e==null&&(e=vO(n_(Object.getPrototypeOf(t)),t),Il.set(t,e)),e}function xO(t,e){let r=n_(Object.getPrototypeOf(e));return new r(t,e)}function TO(t){return J(t).immediateStopped}function RO(t,e){J(t).eventPhase=e}function AO(t,e){J(t).currentTarget=e}function Xg(t,e){J(t).passiveListener=e}var s_=new WeakMap,Jg=1,e_=2,xs=3;function Ts(t){return t!==null&&typeof t=="object"}function Fi(t){let e=s_.get(t);if(e==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function OO(t){return{get(){let r=Fi(this).get(t);for(;r!=null;){if(r.listenerType===xs)return r.listener;r=r.next}return null},set(e){typeof e!="function"&&!Ts(e)&&(e=null);let r=Fi(this),i=null,n=r.get(t);for(;n!=null;)n.listenerType===xs?i!==null?i.next=n.next:n.next!==null?r.set(t,n.next):r.delete(t):i=n,n=n.next;if(e!==null){let s={listener:e,listenerType:xs,passive:!1,once:!1,next:null};i===null?r.set(t,s):i.next=s}},configurable:!0,enumerable:!0}}function Dl(t,e){Object.defineProperty(t,`on${e}`,OO(e))}function t_(t){function e(){He.call(this)}e.prototype=Object.create(He.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(let r=0;r<t.length;++r)Dl(e.prototype,t[r]);return e}function He(){if(this instanceof He){s_.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return t_(arguments[0]);if(arguments.length>0){let t=new Array(arguments.length);for(let e=0;e<arguments.length;++e)t[e]=arguments[e];return t_(t)}throw new TypeError("Cannot call a class as a function")}He.prototype={addEventListener(t,e,r){if(e==null)return;if(typeof e!="function"&&!Ts(e))throw new TypeError("'listener' should be a function or an object.");let i=Fi(this),n=Ts(r),o=(n?!!r.capture:!!r)?Jg:e_,a={listener:e,listenerType:o,passive:n&&!!r.passive,once:n&&!!r.once,next:null},l=i.get(t);if(l===void 0){i.set(t,a);return}let u=null;for(;l!=null;){if(l.listener===e&&l.listenerType===o)return;u=l,l=l.next}u.next=a},removeEventListener(t,e,r){if(e==null)return;let i=Fi(this),s=(Ts(r)?!!r.capture:!!r)?Jg:e_,o=null,a=i.get(t);for(;a!=null;){if(a.listener===e&&a.listenerType===s){o!==null?o.next=a.next:a.next!==null?i.set(t,a.next):i.delete(t);return}o=a,a=a.next}},dispatchEvent(t){if(t==null||typeof t.type!="string")throw new TypeError('"event.type" should be a string.');let e=Fi(this),r=t.type,i=e.get(r);if(i==null)return!0;let n=xO(this,t),s=null;for(;i!=null;){if(i.once?s!==null?s.next=i.next:i.next!==null?e.set(r,i.next):e.delete(r):s=i,Xg(n,i.passive?i.listener:null),typeof i.listener=="function")try{i.listener.call(this,n)}catch(o){typeof console<"u"&&typeof console.error=="function"&&console.error(o)}else i.listenerType!==xs&&typeof i.listener.handleEvent=="function"&&i.listener.handleEvent(n);if(TO(n))break;i=i.next}return Xg(n,null),RO(n,0),AO(n,null),!n.defaultPrevented}};Object.defineProperty(He.prototype,"constructor",{value:He,configurable:!0,writable:!0});typeof window<"u"&&typeof window.EventTarget<"u"&&Object.setPrototypeOf(He.prototype,window.EventTarget.prototype);Bi.defineEventAttribute=Dl;Bi.EventTarget=He;Bi.default=He;ji.exports=He;ji.exports.EventTarget=ji.exports.default=He;ji.exports.defineEventAttribute=Dl});var Mr=g((Wi,Ui)=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});var Pl=o_(),Pt=class extends Pl.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=Rs.get(this);if(typeof e!="boolean")throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return e}};Pl.defineEventAttribute(Pt.prototype,"abort");function IO(){let t=Object.create(Pt.prototype);return Pl.EventTarget.call(t),Rs.set(t,!1),t}function DO(t){Rs.get(t)===!1&&(Rs.set(t,!0),t.dispatchEvent({type:"abort"}))}var Rs=new WeakMap;Object.defineProperties(Pt.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Pt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var Lt=class{constructor(){l_.set(this,IO())}get signal(){return a_(this)}abort(){DO(a_(this))}},l_=new WeakMap;function a_(t){let e=l_.get(t);if(e==null)throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${t===null?"null":typeof t}`);return e}Object.defineProperties(Lt.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Lt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Wi.AbortController=Lt;Wi.AbortSignal=Pt;Wi.default=Lt;Ui.exports=Lt;Ui.exports.AbortController=Ui.exports.default=Lt;Ui.exports.AbortSignal=Pt});var Oe=g((w4,Nl)=>{"use strict";var PO=D("buffer"),{format:LO,inspect:NO}=Al(),{codes:{ERR_INVALID_ARG_TYPE:Ll}}=xe(),{kResistStopPropagation:CO,AggregateError:kO,SymbolDispose:MO}=ie(),qO=globalThis.AbortSignal||Mr().AbortSignal,FO=globalThis.AbortController||Mr().AbortController,jO=Object.getPrototypeOf(async function(){}).constructor,u_=globalThis.Blob||PO.Blob,BO=typeof u_<"u"?function(e){return e instanceof u_}:function(e){return!1},f_=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Ll(e,"AbortSignal",t)},UO=(t,e)=>{if(typeof t!="function")throw new Ll(e,"Function",t)};Nl.exports={AggregateError:kO,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((i,n)=>{t=i,e=n}),resolve:t,reject:e}},promisify(t){return new Promise((e,r)=>{t((i,...n)=>i?r(i):e(...n))})},debuglog(){return function(){}},format:LO,inspect:NO,types:{isAsyncFunction(t){return t instanceof jO},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:BO,deprecate(t,e){return t},addAbortListener:D("events").addAbortListener||function(e,r){if(e===void 0)throw new Ll("signal","AbortSignal",e);f_(e,"signal"),UO(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[CO]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[MO](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:qO.any||function(e){if(e.length===1)return e[0];let r=new FO,i=()=>r.abort();return e.forEach(n=>{f_(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};Nl.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var Fr=g((S4,w_)=>{"use strict";var{ArrayIsArray:kl,ArrayPrototypeIncludes:p_,ArrayPrototypeJoin:g_,ArrayPrototypeMap:WO,NumberIsInteger:Ml,NumberIsNaN:GO,NumberMAX_SAFE_INTEGER:zO,NumberMIN_SAFE_INTEGER:$O,NumberParseInt:HO,ObjectPrototypeHasOwnProperty:VO,RegExpPrototypeExec:__,String:YO,StringPrototypeToUpperCase:KO,StringPrototypeTrim:ZO}=ie(),{hideStackFrames:je,codes:{ERR_SOCKET_BAD_PORT:QO,ERR_INVALID_ARG_TYPE:Te,ERR_INVALID_ARG_VALUE:qr,ERR_OUT_OF_RANGE:tr,ERR_UNKNOWN_SIGNAL:c_}}=xe(),{normalizeEncoding:XO}=Oe(),{isAsyncFunction:JO,isArrayBufferView:eI}=Oe().types,h_={};function tI(t){return t===(t|0)}function rI(t){return t===t>>>0}var iI=/^[0-7]+$/,nI="must be a 32-bit unsigned integer or an octal string";function sI(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(__(iI,t)===null)throw new qr(e,t,nI);t=HO(t,8)}return y_(t,e),t}var oI=je((t,e,r=$O,i=zO)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Ml(t))throw new tr(e,"an integer",t);if(t<r||t>i)throw new tr(e,`>= ${r} && <= ${i}`,t)}),aI=je((t,e,r=-2147483648,i=2147483647)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Ml(t))throw new tr(e,"an integer",t);if(t<r||t>i)throw new tr(e,`>= ${r} && <= ${i}`,t)}),y_=je((t,e,r=!1)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Ml(t))throw new tr(e,"an integer",t);let i=r?1:0,n=4294967295;if(t<i||t>n)throw new tr(e,`>= ${i} && <= ${n}`,t)});function ql(t,e){if(typeof t!="string")throw new Te(e,"string",t)}function lI(t,e,r=void 0,i){if(typeof t!="number")throw new Te(e,"number",t);if(r!=null&&t<r||i!=null&&t>i||(r!=null||i!=null)&&GO(t))throw new tr(e,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,t)}var uI=je((t,e,r)=>{if(!p_(r,t)){let n="must be one of: "+g_(WO(r,s=>typeof s=="string"?`'${s}'`:YO(s)),", ");throw new qr(e,t,n)}});function m_(t,e){if(typeof t!="boolean")throw new Te(e,"boolean",t)}function Cl(t,e,r){return t==null||!VO(t,e)?r:t[e]}var fI=je((t,e,r=null)=>{let i=Cl(r,"allowArray",!1),n=Cl(r,"allowFunction",!1);if(!Cl(r,"nullable",!1)&&t===null||!i&&kl(t)||typeof t!="object"&&(!n||typeof t!="function"))throw new Te(e,"Object",t)}),cI=je((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new Te(e,"a dictionary",t)}),As=je((t,e,r=0)=>{if(!kl(t))throw new Te(e,"Array",t);if(t.length<r){let i=`must be longer than ${r}`;throw new qr(e,t,i)}});function hI(t,e){As(t,e);for(let r=0;r<t.length;r++)ql(t[r],`${e}[${r}]`)}function dI(t,e){As(t,e);for(let r=0;r<t.length;r++)m_(t[r],`${e}[${r}]`)}function pI(t,e){As(t,e);for(let r=0;r<t.length;r++){let i=t[r],n=`${e}[${r}]`;if(i==null)throw new Te(n,"AbortSignal",i);b_(i,n)}}function gI(t,e="signal"){if(ql(t,e),h_[t]===void 0)throw h_[KO(t)]!==void 0?new c_(t+" (signals must use all capital letters)"):new c_(t)}var _I=je((t,e="buffer")=>{if(!eI(t))throw new Te(e,["Buffer","TypedArray","DataView"],t)});function yI(t,e){let r=XO(e),i=t.length;if(r==="hex"&&i%2!==0)throw new qr("encoding",e,`is invalid for data of length ${i}`)}function mI(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&ZO(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new QO(e,t,r);return t|0}var b_=je((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Te(e,"AbortSignal",t)}),bI=je((t,e)=>{if(typeof t!="function")throw new Te(e,"Function",t)}),wI=je((t,e)=>{if(typeof t!="function"||JO(t))throw new Te(e,"Function",t)}),SI=je((t,e)=>{if(t!==void 0)throw new Te(e,"undefined",t)});function EI(t,e,r){if(!p_(r,t))throw new Te(e,`('${g_(r,"|")}')`,t)}var vI=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function d_(t,e){if(typeof t>"u"||!__(vI,t))throw new qr(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function xI(t){if(typeof t=="string")return d_(t,"hints"),t;if(kl(t)){let e=t.length,r="";if(e===0)return r;for(let i=0;i<e;i++){let n=t[i];d_(n,"hints"),r+=n,i!==e-1&&(r+=", ")}return r}throw new qr("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}w_.exports={isInt32:tI,isUint32:rI,parseFileMode:sI,validateArray:As,validateStringArray:hI,validateBooleanArray:dI,validateAbortSignalArray:pI,validateBoolean:m_,validateBuffer:_I,validateDictionary:cI,validateEncoding:yI,validateFunction:bI,validateInt32:aI,validateInteger:oI,validateNumber:lI,validateObject:fI,validateOneOf:uI,validatePlainFunction:wI,validatePort:mI,validateSignalName:gI,validateString:ql,validateUint32:y_,validateUndefined:SI,validateUnion:EI,validateAbortSignal:b_,validateLinkHeaderValue:xI}});var Nt=g((E4,S_)=>{"use strict";S_.exports=global.process});var rt=g((v4,M_)=>{"use strict";var{SymbolAsyncIterator:E_,SymbolIterator:v_,SymbolFor:rr}=ie(),x_=rr("nodejs.stream.destroyed"),T_=rr("nodejs.stream.errored"),Fl=rr("nodejs.stream.readable"),jl=rr("nodejs.stream.writable"),R_=rr("nodejs.stream.disturbed"),TI=rr("nodejs.webstream.isClosedPromise"),RI=rr("nodejs.webstream.controllerErrorFunction");function Os(t,e=!1){var r;return!!(t&&typeof t.pipe=="function"&&typeof t.on=="function"&&(!e||typeof t.pause=="function"&&typeof t.resume=="function")&&(!t._writableState||((r=t._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!t._writableState||t._readableState))}function Is(t){var e;return!!(t&&typeof t.write=="function"&&typeof t.on=="function"&&(!t._readableState||((e=t._writableState)===null||e===void 0?void 0:e.writable)!==!1))}function AI(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}function tt(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function A_(t){return!!(t&&!tt(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function O_(t){return!!(t&&!tt(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function I_(t){return!!(t&&!tt(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function OI(t){return A_(t)||O_(t)||I_(t)}function II(t,e){return t==null?!1:e===!0?typeof t[E_]=="function":e===!1?typeof t[v_]=="function":typeof t[E_]=="function"||typeof t[v_]=="function"}function Ds(t){if(!tt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!!(t.destroyed||t[x_]||i!=null&&i.destroyed)}function D_(t){if(!Is(t))return null;if(t.writableEnded===!0)return!0;let e=t._writableState;return e!=null&&e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function DI(t,e){if(!Is(t))return null;if(t.writableFinished===!0)return!0;let r=t._writableState;return r!=null&&r.errored?!1:typeof r?.finished!="boolean"?null:!!(r.finished||e===!1&&r.ended===!0&&r.length===0)}function PI(t){if(!Os(t))return null;if(t.readableEnded===!0)return!0;let e=t._readableState;return!e||e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function P_(t,e){if(!Os(t))return null;let r=t._readableState;return r!=null&&r.errored?!1:typeof r?.endEmitted!="boolean"?null:!!(r.endEmitted||e===!1&&r.ended===!0&&r.length===0)}function L_(t){return t&&t[Fl]!=null?t[Fl]:typeof t?.readable!="boolean"?null:Ds(t)?!1:Os(t)&&t.readable&&!P_(t)}function N_(t){return t&&t[jl]!=null?t[jl]:typeof t?.writable!="boolean"?null:Ds(t)?!1:Is(t)&&t.writable&&!D_(t)}function LI(t,e){return tt(t)?Ds(t)?!0:!(e?.readable!==!1&&L_(t)||e?.writable!==!1&&N_(t)):null}function NI(t){var e,r;return tt(t)?t.writableErrored?t.writableErrored:(e=(r=t._writableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function CI(t){var e,r;return tt(t)?t.readableErrored?t.readableErrored:(e=(r=t._readableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function kI(t){if(!tt(t))return null;if(typeof t.closed=="boolean")return t.closed;let e=t._writableState,r=t._readableState;return typeof e?.closed=="boolean"||typeof r?.closed=="boolean"?e?.closed||r?.closed:typeof t._closed=="boolean"&&C_(t)?t._closed:null}function C_(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function k_(t){return typeof t._sent100=="boolean"&&C_(t)}function MI(t){var e;return typeof t._consuming=="boolean"&&typeof t._dumped=="boolean"&&((e=t.req)===null||e===void 0?void 0:e.upgradeOrConnect)===void 0}function qI(t){if(!tt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!i&&k_(t)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function FI(t){var e;return!!(t&&((e=t[R_])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function jI(t){var e,r,i,n,s,o,a,l,u,f;return!!(t&&((e=(r=(i=(n=(s=(o=t[T_])!==null&&o!==void 0?o:t.readableErrored)!==null&&s!==void 0?s:t.writableErrored)!==null&&n!==void 0?n:(a=t._readableState)===null||a===void 0?void 0:a.errorEmitted)!==null&&i!==void 0?i:(l=t._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&r!==void 0?r:(u=t._readableState)===null||u===void 0?void 0:u.errored)!==null&&e!==void 0?e:!((f=t._writableState)===null||f===void 0)&&f.errored))}M_.exports={isDestroyed:Ds,kIsDestroyed:x_,isDisturbed:FI,kIsDisturbed:R_,isErrored:jI,kIsErrored:T_,isReadable:L_,kIsReadable:Fl,kIsClosedPromise:TI,kControllerErrorFunction:RI,kIsWritable:jl,isClosed:kI,isDuplexNodeStream:AI,isFinished:LI,isIterable:II,isReadableNodeStream:Os,isReadableStream:A_,isReadableEnded:PI,isReadableFinished:P_,isReadableErrored:CI,isNodeStream:tt,isWebStream:OI,isWritable:N_,isWritableNodeStream:Is,isWritableStream:O_,isWritableEnded:D_,isWritableFinished:DI,isWritableErrored:NI,isServerRequest:MI,isServerResponse:k_,willEmitClose:qI,isTransformStream:I_}});var yt=g((x4,zl)=>{"use strict";var Ct=Nt(),{AbortError:$_,codes:BI}=xe(),{ERR_INVALID_ARG_TYPE:UI,ERR_STREAM_PREMATURE_CLOSE:q_}=BI,{kEmptyObject:Ul,once:Wl}=Oe(),{validateAbortSignal:WI,validateFunction:GI,validateObject:zI,validateBoolean:$I}=Fr(),{Promise:HI,PromisePrototypeThen:VI,SymbolDispose:H_}=ie(),{isClosed:YI,isReadable:F_,isReadableNodeStream:Bl,isReadableStream:KI,isReadableFinished:j_,isReadableErrored:B_,isWritable:U_,isWritableNodeStream:W_,isWritableStream:ZI,isWritableFinished:G_,isWritableErrored:z_,isNodeStream:QI,willEmitClose:XI,kIsClosedPromise:JI}=rt(),jr;function eD(t){return t.setHeader&&typeof t.abort=="function"}var Gl=()=>{};function V_(t,e,r){var i,n;if(arguments.length===2?(r=e,e=Ul):e==null?e=Ul:zI(e,"options"),GI(r,"callback"),WI(e.signal,"options.signal"),r=Wl(r),KI(t)||ZI(t))return tD(t,e,r);if(!QI(t))throw new UI("stream",["ReadableStream","WritableStream","Stream"],t);let s=(i=e.readable)!==null&&i!==void 0?i:Bl(t),o=(n=e.writable)!==null&&n!==void 0?n:W_(t),a=t._writableState,l=t._readableState,u=()=>{t.writable||h()},f=XI(t)&&Bl(t)===s&&W_(t)===o,c=G_(t,!1),h=()=>{c=!0,t.destroyed&&(f=!1),!(f&&(!t.readable||s))&&(!s||d)&&r.call(t)},d=j_(t,!1),y=()=>{d=!0,t.destroyed&&(f=!1),!(f&&(!t.writable||o))&&(!o||c)&&r.call(t)},p=T=>{r.call(t,T)},S=YI(t),m=()=>{S=!0;let T=z_(t)||B_(t);if(T&&typeof T!="boolean")return r.call(t,T);if(s&&!d&&Bl(t,!0)&&!j_(t,!1))return r.call(t,new q_);if(o&&!c&&!G_(t,!1))return r.call(t,new q_);r.call(t)},b=()=>{S=!0;let T=z_(t)||B_(t);if(T&&typeof T!="boolean")return r.call(t,T);r.call(t)},v=()=>{t.req.on("finish",h)};eD(t)?(t.on("complete",h),f||t.on("abort",m),t.req?v():t.on("request",v)):o&&!a&&(t.on("end",u),t.on("close",u)),!f&&typeof t.aborted=="boolean"&&t.on("aborted",m),t.on("end",y),t.on("finish",h),e.error!==!1&&t.on("error",p),t.on("close",m),S?Ct.nextTick(m):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?f||Ct.nextTick(b):(!s&&(!f||F_(t))&&(c||U_(t)===!1)||!o&&(!f||U_(t))&&(d||F_(t)===!1)||l&&t.req&&t.aborted)&&Ct.nextTick(b);let E=()=>{r=Gl,t.removeListener("aborted",m),t.removeListener("complete",h),t.removeListener("abort",m),t.removeListener("request",v),t.req&&t.req.removeListener("finish",h),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",h),t.removeListener("end",y),t.removeListener("error",p),t.removeListener("close",m)};if(e.signal&&!S){let T=()=>{let P=r;E(),P.call(t,new $_(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)Ct.nextTick(T);else{jr=jr||Oe().addAbortListener;let P=jr(e.signal,T),x=r;r=Wl((...O)=>{P[H_](),x.apply(t,O)})}}return E}function tD(t,e,r){let i=!1,n=Gl;if(e.signal)if(n=()=>{i=!0,r.call(t,new $_(void 0,{cause:e.signal.reason}))},e.signal.aborted)Ct.nextTick(n);else{jr=jr||Oe().addAbortListener;let o=jr(e.signal,n),a=r;r=Wl((...l)=>{o[H_](),a.apply(t,l)})}let s=(...o)=>{i||Ct.nextTick(()=>r.apply(t,o))};return VI(t[JI].promise,s,s),Gl}function rD(t,e){var r;let i=!1;return e===null&&(e=Ul),(r=e)!==null&&r!==void 0&&r.cleanup&&($I(e.cleanup,"cleanup"),i=e.cleanup),new HI((n,s)=>{let o=V_(t,e,a=>{i&&o(),a?s(a):n()})})}zl.exports=V_;zl.exports.finished=rD});var ir=g((T4,ty)=>{"use strict";var it=Nt(),{aggregateTwoErrors:iD,codes:{ERR_MULTIPLE_CALLBACK:nD},AbortError:sD}=xe(),{Symbol:Z_}=ie(),{kIsDestroyed:oD,isDestroyed:aD,isFinished:lD,isServerRequest:uD}=rt(),Q_=Z_("kDestroy"),$l=Z_("kConstruct");function X_(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function fD(t,e){let r=this._readableState,i=this._writableState,n=i||r;return i!=null&&i.destroyed||r!=null&&r.destroyed?(typeof e=="function"&&e(),this):(X_(t,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),n.constructed?Y_(this,t,e):this.once(Q_,function(s){Y_(this,iD(s,t),e)}),this)}function Y_(t,e,r){let i=!1;function n(s){if(i)return;i=!0;let o=t._readableState,a=t._writableState;X_(s,a,o),a&&(a.closed=!0),o&&(o.closed=!0),typeof r=="function"&&r(s),s?it.nextTick(cD,t,s):it.nextTick(J_,t)}try{t._destroy(e||null,n)}catch(s){n(s)}}function cD(t,e){Hl(t,e),J_(t)}function J_(t){let e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&t.emit("close")}function Hl(t,e){let r=t._readableState,i=t._writableState;i!=null&&i.errorEmitted||r!=null&&r.errorEmitted||(i&&(i.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function hD(){let t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function Vl(t,e,r){let i=t._readableState,n=t._writableState;if(n!=null&&n.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||n!=null&&n.autoDestroy?t.destroy(e):e&&(e.stack,n&&!n.errored&&(n.errored=e),i&&!i.errored&&(i.errored=e),r?it.nextTick(Hl,t,e):Hl(t,e))}function dD(t,e){if(typeof t._construct!="function")return;let r=t._readableState,i=t._writableState;r&&(r.constructed=!1),i&&(i.constructed=!1),t.once($l,e),!(t.listenerCount($l)>1)&&it.nextTick(pD,t)}function pD(t){let e=!1;function r(i){if(e){Vl(t,i??new nD);return}e=!0;let n=t._readableState,s=t._writableState,o=s||n;n&&(n.constructed=!0),s&&(s.constructed=!0),o.destroyed?t.emit(Q_,i):i?Vl(t,i,!0):it.nextTick(gD,t)}try{t._construct(i=>{it.nextTick(r,i)})}catch(i){it.nextTick(r,i)}}function gD(t){t.emit($l)}function K_(t){return t?.setHeader&&typeof t.abort=="function"}function ey(t){t.emit("close")}function _D(t,e){t.emit("error",e),it.nextTick(ey,t)}function yD(t,e){!t||aD(t)||(!e&&!lD(t)&&(e=new sD),uD(t)?(t.socket=null,t.destroy(e)):K_(t)?t.abort():K_(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?it.nextTick(_D,t,e):it.nextTick(ey,t),t.destroyed||(t[oD]=!0))}ty.exports={construct:dD,destroyer:yD,destroy:fD,undestroy:hD,errorOrDestroy:Vl}});var Ns=g((R4,iy)=>{"use strict";var{ArrayIsArray:mD,ObjectSetPrototypeOf:ry}=ie(),{EventEmitter:Ps}=D("events");function Ls(t){Ps.call(this,t)}ry(Ls.prototype,Ps.prototype);ry(Ls,Ps);Ls.prototype.pipe=function(t,e){let r=this;function i(f){t.writable&&t.write(f)===!1&&r.pause&&r.pause()}r.on("data",i);function n(){r.readable&&r.resume&&r.resume()}t.on("drain",n),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",o),r.on("close",a));let s=!1;function o(){s||(s=!0,t.end())}function a(){s||(s=!0,typeof t.destroy=="function"&&t.destroy())}function l(f){u(),Ps.listenerCount(this,"error")===0&&this.emit("error",f)}Yl(r,"error",l),Yl(t,"error",l);function u(){r.removeListener("data",i),t.removeListener("drain",n),r.removeListener("end",o),r.removeListener("close",a),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),t.removeListener("close",u)}return r.on("end",u),r.on("close",u),t.on("close",u),t.emit("pipe",r),t};function Yl(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):mD(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}iy.exports={Stream:Ls,prependListener:Yl}});var Gi=g((A4,Cs)=>{"use strict";var{SymbolDispose:bD}=ie(),{AbortError:ny,codes:wD}=xe(),{isNodeStream:sy,isWebStream:SD,kControllerErrorFunction:ED}=rt(),vD=yt(),{ERR_INVALID_ARG_TYPE:oy}=wD,Kl,xD=(t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new oy(e,"AbortSignal",t)};Cs.exports.addAbortSignal=function(e,r){if(xD(e,"signal"),!sy(r)&&!SD(r))throw new oy("stream",["ReadableStream","WritableStream","Stream"],r);return Cs.exports.addAbortSignalNoValidate(e,r)};Cs.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let r=sy(e)?()=>{e.destroy(new ny(void 0,{cause:t.reason}))}:()=>{e[ED](new ny(void 0,{cause:t.reason}))};if(t.aborted)r();else{Kl=Kl||Oe().addAbortListener;let i=Kl(t,r);vD(e,i[bD])}return e}});var uy=g((I4,ly)=>{"use strict";var{StringPrototypeSlice:ay,SymbolIterator:TD,TypedArrayPrototypeSet:ks,Uint8Array:RD}=ie(),{Buffer:Zl}=D("buffer"),{inspect:AD}=Oe();ly.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(e){let r={data:e,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let r=this.head,i=""+r.data;for(;(r=r.next)!==null;)i+=e+r.data;return i}concat(e){if(this.length===0)return Zl.alloc(0);let r=Zl.allocUnsafe(e>>>0),i=this.head,n=0;for(;i;)ks(r,i.data,n),n+=i.data.length,i=i.next;return r}consume(e,r){let i=this.head.data;if(e<i.length){let n=i.slice(0,e);return this.head.data=i.slice(e),n}return e===i.length?this.shift():r?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[TD](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let r="",i=this.head,n=0;do{let s=i.data;if(e>s.length)r+=s,e-=s.length;else{e===s.length?(r+=s,++n,i.next?this.head=i.next:this.head=this.tail=null):(r+=ay(s,0,e),this.head=i,i.data=ay(s,e));break}++n}while((i=i.next)!==null);return this.length-=n,r}_getBuffer(e){let r=Zl.allocUnsafe(e),i=e,n=this.head,s=0;do{let o=n.data;if(e>o.length)ks(r,o,i-e),e-=o.length;else{e===o.length?(ks(r,o,i-e),++s,n.next?this.head=n.next:this.head=this.tail=null):(ks(r,new RD(o.buffer,o.byteOffset,e),i-e),this.head=n,n.data=o.slice(e));break}++s}while((n=n.next)!==null);return this.length-=s,r}[Symbol.for("nodejs.util.inspect.custom")](e,r){return AD(this,{...r,depth:0,customInspect:!1})}}});var zi=g((D4,dy)=>{"use strict";var{MathFloor:OD,NumberIsInteger:ID}=ie(),{validateInteger:DD}=Fr(),{ERR_INVALID_ARG_VALUE:PD}=xe().codes,fy=16*1024,cy=16;function LD(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function hy(t){return t?cy:fy}function ND(t,e){DD(e,"value",0),t?cy=e:fy=e}function CD(t,e,r,i){let n=LD(e,i,r);if(n!=null){if(!ID(n)||n<0){let s=i?`options.${r}`:"options.highWaterMark";throw new PD(s,n)}return OD(n)}return hy(t.objectMode)}dy.exports={getHighWaterMark:CD,getDefaultHighWaterMark:hy,setDefaultHighWaterMark:ND}});var _y=g((Ql,gy)=>{"use strict";var Ms=D("buffer"),nt=Ms.Buffer;function py(t,e){for(var r in t)e[r]=t[r]}nt.from&&nt.alloc&&nt.allocUnsafe&&nt.allocUnsafeSlow?gy.exports=Ms:(py(Ms,Ql),Ql.Buffer=nr);function nr(t,e,r){return nt(t,e,r)}nr.prototype=Object.create(nt.prototype);py(nt,nr);nr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return nt(t,e,r)};nr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=nt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};nr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return nt(t)};nr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Ms.SlowBuffer(t)}});var by=g(my=>{"use strict";var Jl=_y().Buffer,yy=Jl.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function kD(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function MD(t){var e=kD(t);if(typeof e!="string"&&(Jl.isEncoding===yy||!yy(t)))throw new Error("Unknown encoding: "+t);return e||t}my.StringDecoder=$i;function $i(t){this.encoding=MD(t);var e;switch(this.encoding){case"utf16le":this.text=WD,this.end=GD,e=4;break;case"utf8":this.fillLast=jD,e=4;break;case"base64":this.text=zD,this.end=$D,e=3;break;default:this.write=HD,this.end=VD;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Jl.allocUnsafe(e)}$i.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""};$i.prototype.end=UD;$i.prototype.text=BD;$i.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Xl(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function qD(t,e,r){var i=e.length-1;if(i<r)return 0;var n=Xl(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=Xl(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=Xl(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function FD(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function jD(t){var e=this.lastTotal-this.lastNeed,r=FD(this,t,e);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function BD(t,e){var r=qD(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function UD(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function WD(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function GD(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function zD(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function $D(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function HD(t){return t.toString(this.encoding)}function VD(t){return t&&t.length?this.write(t):""}});var eu=g((L4,vy)=>{"use strict";var wy=Nt(),{PromisePrototypeThen:YD,SymbolAsyncIterator:Sy,SymbolIterator:Ey}=ie(),{Buffer:KD}=D("buffer"),{ERR_INVALID_ARG_TYPE:ZD,ERR_STREAM_NULL_VALUES:QD}=xe().codes;function XD(t,e,r){let i;if(typeof e=="string"||e instanceof KD)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let n;if(e&&e[Sy])n=!0,i=e[Sy]();else if(e&&e[Ey])n=!1,i=e[Ey]();else throw new ZD("iterable",["Iterable"],e);let s=new t({objectMode:!0,highWaterMark:1,...r}),o=!1;s._read=function(){o||(o=!0,l())},s._destroy=function(u,f){YD(a(u),()=>wy.nextTick(f,u),c=>wy.nextTick(f,c||u))};async function a(u){let f=u!=null,c=typeof i.throw=="function";if(f&&c){let{value:h,done:d}=await i.throw(u);if(await h,d)return}if(typeof i.return=="function"){let{value:h}=await i.return();await h}}async function l(){for(;;){try{let{value:u,done:f}=n?await i.next():i.next();if(f)s.push(null);else{let c=u&&typeof u.then=="function"?await u:u;if(c===null)throw o=!1,new QD;if(s.push(c))continue;o=!1}}catch(u){s.destroy(u)}break}}return s}vy.exports=XD});var Vi=g((N4,Uy)=>{"use strict";var Ve=Nt(),{ArrayPrototypeIndexOf:JD,NumberIsInteger:eP,NumberIsNaN:tP,NumberParseInt:rP,ObjectDefineProperties:lu,ObjectKeys:iP,ObjectSetPrototypeOf:Ry,Promise:Ay,SafeSet:nP,SymbolAsyncDispose:sP,SymbolAsyncIterator:oP,Symbol:aP}=ie();Uy.exports=k;k.ReadableState=Bs;var{EventEmitter:lP}=D("events"),{Stream:kt,prependListener:uP}=Ns(),{Buffer:tu}=D("buffer"),{addAbortSignal:fP}=Gi(),Oy=yt(),B=Oe().debuglog("stream",t=>{B=t}),cP=uy(),Wr=ir(),{getHighWaterMark:hP,getDefaultHighWaterMark:dP}=zi(),{aggregateTwoErrors:xy,codes:{ERR_INVALID_ARG_TYPE:pP,ERR_METHOD_NOT_IMPLEMENTED:gP,ERR_OUT_OF_RANGE:_P,ERR_STREAM_PUSH_AFTER_EOF:yP,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:mP},AbortError:bP}=xe(),{validateObject:wP}=Fr(),sr=aP("kPaused"),{StringDecoder:Iy}=by(),SP=eu();Ry(k.prototype,kt.prototype);Ry(k,kt);var ru=()=>{},{errorOrDestroy:Br}=Wr,Ur=1,EP=2,Dy=4,Hi=8,Py=16,qs=32,Fs=64,Ly=128,vP=256,xP=512,TP=1024,ou=2048,au=4096,RP=8192,AP=16384,OP=32768,Ny=65536,IP=1<<17,DP=1<<18;function ce(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}lu(Bs.prototype,{objectMode:ce(Ur),ended:ce(EP),endEmitted:ce(Dy),reading:ce(Hi),constructed:ce(Py),sync:ce(qs),needReadable:ce(Fs),emittedReadable:ce(Ly),readableListening:ce(vP),resumeScheduled:ce(xP),errorEmitted:ce(TP),emitClose:ce(ou),autoDestroy:ce(au),destroyed:ce(RP),closed:ce(AP),closeEmitted:ce(OP),multiAwaitDrain:ce(Ny),readingMore:ce(IP),dataEmitted:ce(DP)});function Bs(t,e,r){typeof r!="boolean"&&(r=e instanceof st()),this.state=ou|au|Py|qs,t&&t.objectMode&&(this.state|=Ur),r&&t&&t.readableObjectMode&&(this.state|=Ur),this.highWaterMark=t?hP(this,t,"readableHighWaterMark",r):dP(!1),this.buffer=new cP,this.length=0,this.pipes=[],this.flowing=null,this[sr]=null,t&&t.emitClose===!1&&(this.state&=~ou),t&&t.autoDestroy===!1&&(this.state&=~au),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new Iy(t.encoding),this.encoding=t.encoding)}function k(t){if(!(this instanceof k))return new k(t);let e=this instanceof st();this._readableState=new Bs(t,this,e),t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&!e&&fP(t.signal,this)),kt.call(this,t),Wr.construct(this,()=>{this._readableState.needReadable&&js(this,this._readableState)})}k.prototype.destroy=Wr.destroy;k.prototype._undestroy=Wr.undestroy;k.prototype._destroy=function(t,e){e(t)};k.prototype[lP.captureRejectionSymbol]=function(t){this.destroy(t)};k.prototype[sP]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new bP,this.destroy(t)),new Ay((e,r)=>Oy(this,i=>i&&i!==t?r(i):e(null)))};k.prototype.push=function(t,e){return Cy(this,t,e,!1)};k.prototype.unshift=function(t,e){return Cy(this,t,e,!0)};function Cy(t,e,r,i){B("readableAddChunk",e);let n=t._readableState,s;if((n.state&Ur)===0&&(typeof e=="string"?(r=r||n.defaultEncoding,n.encoding!==r&&(i&&n.encoding?e=tu.from(e,r).toString(n.encoding):(e=tu.from(e,r),r=""))):e instanceof tu?r="":kt._isUint8Array(e)?(e=kt._uint8ArrayToBuffer(e),r=""):e!=null&&(s=new pP("chunk",["string","Buffer","Uint8Array"],e))),s)Br(t,s);else if(e===null)n.state&=~Hi,NP(t,n);else if((n.state&Ur)!==0||e&&e.length>0)if(i)if((n.state&Dy)!==0)Br(t,new mP);else{if(n.destroyed||n.errored)return!1;iu(t,n,e,!0)}else if(n.ended)Br(t,new yP);else{if(n.destroyed||n.errored)return!1;n.state&=~Hi,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?iu(t,n,e,!1):js(t,n)):iu(t,n,e,!1)}else i||(n.state&=~Hi,js(t,n));return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function iu(t,e,r,i){e.flowing&&e.length===0&&!e.sync&&t.listenerCount("data")>0?((e.state&Ny)!==0?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),(e.state&Fs)!==0&&Us(t)),js(t,e)}k.prototype.isPaused=function(){let t=this._readableState;return t[sr]===!0||t.flowing===!1};k.prototype.setEncoding=function(t){let e=new Iy(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,i="";for(let n of r)i+=e.write(n);return r.clear(),i!==""&&r.push(i),this._readableState.length=i.length,this};var PP=1073741824;function LP(t){if(t>PP)throw new _P("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function Ty(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&Ur)!==0?1:tP(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}k.prototype.read=function(t){B("read",t),t===void 0?t=NaN:eP(t)||(t=rP(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=LP(t)),t!==0&&(e.state&=~Ly),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return B("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?nu(this):Us(this),null;if(t=Ty(t,e),t===0&&e.ended)return e.length===0&&nu(this),null;let i=(e.state&Fs)!==0;if(B("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,B("length less than watermark",i)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)i=!1,B("reading, ended or constructing",i);else if(i){B("do read"),e.state|=Hi|qs,e.length===0&&(e.state|=Fs);try{this._read(e.highWaterMark)}catch(s){Br(this,s)}e.state&=~qs,e.reading||(t=Ty(r,e))}let n;return t>0?n=jy(t,e):n=null,n===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),e.length===0&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&nu(this)),n!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",n)),n};function NP(t,e){if(B("onEofChunk"),!e.ended){if(e.decoder){let r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?Us(t):(e.needReadable=!1,e.emittedReadable=!0,ky(t))}}function Us(t){let e=t._readableState;B("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(B("emitReadable",e.flowing),e.emittedReadable=!0,Ve.nextTick(ky,t))}function ky(t){let e=t._readableState;B("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&!e.errored&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,qy(t)}function js(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,Ve.nextTick(CP,t,e))}function CP(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){let r=e.length;if(B("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}k.prototype._read=function(t){throw new gP("_read()")};k.prototype.pipe=function(t,e){let r=this,i=this._readableState;i.pipes.length===1&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new nP(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(t),B("pipe count=%d opts=%j",i.pipes.length,e);let s=(!e||e.end!==!1)&&t!==Ve.stdout&&t!==Ve.stderr?a:S;i.endEmitted?Ve.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(m,b){B("onunpipe"),m===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",y),t.removeListener("finish",p),l&&t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",S),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(m){B("ondata");let b=t.write(m);B("dest.write",b),b===!1&&c()}function d(m){if(B("onerror",m),S(),t.removeListener("error",d),t.listenerCount("error")===0){let b=t._writableState||t._readableState;b&&!b.errorEmitted?Br(t,m):t.emit("error",m)}}uP(t,"error",d);function y(){t.removeListener("finish",p),S()}t.once("close",y);function p(){B("onfinish"),t.removeListener("close",y),S()}t.once("finish",p);function S(){B("unpipe"),r.unpipe(t)}return t.emit("pipe",r),t.writableNeedDrain===!0?c():i.flowing||(B("pipe resume"),r.resume()),t};function kP(t,e){return function(){let i=t._readableState;i.awaitDrainWriters===e?(B("pipeOnDrain",1),i.awaitDrainWriters=null):i.multiAwaitDrain&&(B("pipeOnDrain",i.awaitDrainWriters.size),i.awaitDrainWriters.delete(e)),(!i.awaitDrainWriters||i.awaitDrainWriters.size===0)&&t.listenerCount("data")&&t.resume()}}k.prototype.unpipe=function(t){let e=this._readableState,r={hasUnpiped:!1};if(e.pipes.length===0)return this;if(!t){let n=e.pipes;e.pipes=[],this.pause();for(let s=0;s<n.length;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}let i=JD(e.pipes,t);return i===-1?this:(e.pipes.splice(i,1),e.pipes.length===0&&this.pause(),t.emit("unpipe",this,r),this)};k.prototype.on=function(t,e){let r=kt.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,B("on readable",i.length,i.reading),i.length?Us(this):i.reading||Ve.nextTick(MP,this)),r};k.prototype.addListener=k.prototype.on;k.prototype.removeListener=function(t,e){let r=kt.prototype.removeListener.call(this,t,e);return t==="readable"&&Ve.nextTick(My,this),r};k.prototype.off=k.prototype.removeListener;k.prototype.removeAllListeners=function(t){let e=kt.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&Ve.nextTick(My,this),e};function My(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[sr]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function MP(t){B("readable nexttick read 0"),t.read(0)}k.prototype.resume=function(){let t=this._readableState;return t.flowing||(B("resume"),t.flowing=!t.readableListening,qP(this,t)),t[sr]=!1,this};function qP(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ve.nextTick(FP,t,e))}function FP(t,e){B("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),qy(t),e.flowing&&!e.reading&&t.read(0)}k.prototype.pause=function(){return B("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(B("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[sr]=!0,this};function qy(t){let e=t._readableState;for(B("flow",e.flowing);e.flowing&&t.read()!==null;);}k.prototype.wrap=function(t){let e=!1;t.on("data",i=>{!this.push(i)&&t.pause&&(e=!0,t.pause())}),t.on("end",()=>{this.push(null)}),t.on("error",i=>{Br(this,i)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=iP(t);for(let i=1;i<r.length;i++){let n=r[i];this[n]===void 0&&typeof t[n]=="function"&&(this[n]=t[n].bind(t))}return this};k.prototype[oP]=function(){return Fy(this)};k.prototype.iterator=function(t){return t!==void 0&&wP(t,"options"),Fy(this,t)};function Fy(t,e){typeof t.read!="function"&&(t=k.wrap(t,{objectMode:!0}));let r=jP(t,e);return r.stream=t,r}async function*jP(t,e){let r=ru;function i(o){this===t?(r(),r=ru):r=o}t.on("readable",i);let n,s=Oy(t,{writable:!1},o=>{n=o?xy(n,o):null,r(),r=ru});try{for(;;){let o=t.destroyed?null:t.read();if(o!==null)yield o;else{if(n)throw n;if(n===null)return;await new Ay(i)}}}catch(o){throw n=xy(n,o),n}finally{(n||e?.destroyOnReturn!==!1)&&(n===void 0||t._readableState.autoDestroy)?Wr.destroyer(t,null):(t.off("readable",i),s())}}lu(k.prototype,{readable:{__proto__:null,get(){let t=this._readableState;return!!t&&t.readable!==!1&&!t.destroyed&&!t.errorEmitted&&!t.endEmitted},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});lu(Bs.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[sr]!==!1},set(t){this[sr]=!!t}}});k._fromList=jy;function jy(t,e){if(e.length===0)return null;let r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(e.decoder?r=e.buffer.join(""):e.buffer.length===1?r=e.buffer.first():r=e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r}function nu(t){let e=t._readableState;B("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,Ve.nextTick(BP,e,t))}function BP(t,e){if(B("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&t.length===0){if(t.endEmitted=!0,e.emit("end"),e.writable&&e.allowHalfOpen===!1)Ve.nextTick(UP,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}function UP(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}k.from=function(t,e){return SP(k,t,e)};var su;function By(){return su===void 0&&(su={}),su}k.fromWeb=function(t,e){return By().newStreamReadableFromReadableStream(t,e)};k.toWeb=function(t,e){return By().newReadableStreamFromStreamReadable(t,e)};k.wrap=function(t,e){var r,i;return new k({objectMode:(r=(i=t.readableObjectMode)!==null&&i!==void 0?i:t.objectMode)!==null&&r!==void 0?r:!0,...e,destroy(n,s){Wr.destroyer(t,n),s(n)}}).wrap(t)}});var Hs=g((C4,Jy)=>{"use strict";var or=Nt(),{ArrayPrototypeSlice:zy,Error:WP,FunctionPrototypeSymbolHasInstance:$y,ObjectDefineProperty:Hy,ObjectDefineProperties:GP,ObjectSetPrototypeOf:Vy,StringPrototypeToLowerCase:zP,Symbol:$P,SymbolHasInstance:HP}=ie();Jy.exports=se;se.WritableState=Zi;var{EventEmitter:VP}=D("events"),Yi=Ns().Stream,{Buffer:Ws}=D("buffer"),$s=ir(),{addAbortSignal:YP}=Gi(),{getHighWaterMark:KP,getDefaultHighWaterMark:ZP}=zi(),{ERR_INVALID_ARG_TYPE:QP,ERR_METHOD_NOT_IMPLEMENTED:XP,ERR_MULTIPLE_CALLBACK:Yy,ERR_STREAM_CANNOT_PIPE:JP,ERR_STREAM_DESTROYED:Ki,ERR_STREAM_ALREADY_FINISHED:eL,ERR_STREAM_NULL_VALUES:tL,ERR_STREAM_WRITE_AFTER_END:rL,ERR_UNKNOWN_ENCODING:Ky}=xe().codes,{errorOrDestroy:Gr}=$s;Vy(se.prototype,Yi.prototype);Vy(se,Yi);function cu(){}var zr=$P("kOnFinished");function Zi(t,e,r){typeof r!="boolean"&&(r=e instanceof st()),this.objectMode=!!(t&&t.objectMode),r&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?KP(this,t,"writableHighWaterMark",r):ZP(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let i=!!(t&&t.decodeStrings===!1);this.decodeStrings=!i,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=nL.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,zs(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||t.emitClose!==!1,this.autoDestroy=!t||t.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[zr]=[]}function zs(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}Zi.prototype.getBuffer=function(){return zy(this.buffered,this.bufferedIndex)};Hy(Zi.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function se(t){let e=this instanceof st();if(!e&&!$y(se,this))return new se(t);this._writableState=new Zi(t,this,e),t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&YP(t.signal,this)),Yi.call(this,t),$s.construct(this,()=>{let r=this._writableState;r.writing||du(this,r),pu(this,r)})}Hy(se,HP,{__proto__:null,value:function(t){return $y(this,t)?!0:this!==se?!1:t&&t._writableState instanceof Zi}});se.prototype.pipe=function(){Gr(this,new JP)};function Zy(t,e,r,i){let n=t._writableState;if(typeof r=="function")i=r,r=n.defaultEncoding;else{if(!r)r=n.defaultEncoding;else if(r!=="buffer"&&!Ws.isEncoding(r))throw new Ky(r);typeof i!="function"&&(i=cu)}if(e===null)throw new tL;if(!n.objectMode)if(typeof e=="string")n.decodeStrings!==!1&&(e=Ws.from(e,r),r="buffer");else if(e instanceof Ws)r="buffer";else if(Yi._isUint8Array(e))e=Yi._uint8ArrayToBuffer(e),r="buffer";else throw new QP("chunk",["string","Buffer","Uint8Array"],e);let s;return n.ending?s=new rL:n.destroyed&&(s=new Ki("write")),s?(or.nextTick(i,s),Gr(t,s,!0),s):(n.pendingcb++,iL(t,n,e,r,i))}se.prototype.write=function(t,e,r){return Zy(this,t,e,r)===!0};se.prototype.cork=function(){this._writableState.corked++};se.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||du(this,t))};se.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=zP(e)),!Ws.isEncoding(e))throw new Ky(e);return this._writableState.defaultEncoding=e,this};function iL(t,e,r,i,n){let s=e.objectMode?1:r.length;e.length+=s;let o=e.length<e.highWaterMark;return o||(e.needDrain=!0),e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:r,encoding:i,callback:n}),e.allBuffers&&i!=="buffer"&&(e.allBuffers=!1),e.allNoop&&n!==cu&&(e.allNoop=!1)):(e.writelen=s,e.writecb=n,e.writing=!0,e.sync=!0,t._write(r,i,e.onwrite),e.sync=!1),o&&!e.errored&&!e.destroyed}function Wy(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Ki("write")):r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function Gy(t,e,r,i){--e.pendingcb,i(r),hu(e),Gr(t,r)}function nL(t,e){let r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function"){Gr(t,new Yy);return}r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e?(e.stack,r.errored||(r.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),i?or.nextTick(Gy,t,r,e,n):Gy(t,r,e,n)):(r.buffered.length>r.bufferedIndex&&du(t,r),i?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===n?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:n,stream:t,state:r},or.nextTick(sL,r.afterWriteTickInfo)):Qy(t,r,1,n))}function sL({stream:t,state:e,count:r,cb:i}){return e.afterWriteTickInfo=null,Qy(t,e,r,i)}function Qy(t,e,r,i){for(!e.ending&&!t.destroyed&&e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));r-- >0;)e.pendingcb--,i();e.destroyed&&hu(e),pu(t,e)}function hu(t){if(t.writing)return;for(let n=t.bufferedIndex;n<t.buffered.length;++n){var e;let{chunk:s,callback:o}=t.buffered[n],a=t.objectMode?1:s.length;t.length-=a,o((e=t.errored)!==null&&e!==void 0?e:new Ki("write"))}let r=t[zr].splice(0);for(let n=0;n<r.length;n++){var i;r[n]((i=t.errored)!==null&&i!==void 0?i:new Ki("end"))}zs(t)}function du(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;let{buffered:r,bufferedIndex:i,objectMode:n}=e,s=r.length-i;if(!s)return;let o=i;if(e.bufferProcessing=!0,s>1&&t._writev){e.pendingcb-=s-1;let a=e.allNoop?cu:u=>{for(let f=o;f<r.length;++f)r[f].callback(u)},l=e.allNoop&&o===0?r:zy(r,o);l.allBuffers=e.allBuffers,Wy(t,e,!0,e.length,l,"",a),zs(e)}else{do{let{chunk:a,encoding:l,callback:u}=r[o];r[o++]=null;let f=n?1:a.length;Wy(t,e,!1,f,a,l,u)}while(o<r.length&&!e.writing);o===r.length?zs(e):o>256?(r.splice(0,o),e.bufferedIndex=0):e.bufferedIndex=o}e.bufferProcessing=!1}se.prototype._write=function(t,e,r){if(this._writev)this._writev([{chunk:t,encoding:e}],r);else throw new XP("_write()")};se.prototype._writev=null;se.prototype.end=function(t,e,r){let i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null);let n;if(t!=null){let s=Zy(this,t,e);s instanceof WP&&(n=s)}return i.corked&&(i.corked=1,this.uncork()),n||(!i.errored&&!i.ending?(i.ending=!0,pu(this,i,!0),i.ended=!0):i.finished?n=new eL("end"):i.destroyed&&(n=new Ki("end"))),typeof r=="function"&&(n||i.finished?or.nextTick(r,n):i[zr].push(r)),this};function Gs(t){return t.ending&&!t.destroyed&&t.constructed&&t.length===0&&!t.errored&&t.buffered.length===0&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function oL(t,e){let r=!1;function i(n){if(r){Gr(t,n??Yy());return}if(r=!0,e.pendingcb--,n){let s=e[zr].splice(0);for(let o=0;o<s.length;o++)s[o](n);Gr(t,n,e.sync)}else Gs(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,or.nextTick(fu,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(n){i(n)}e.sync=!1}function aL(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,oL(t,e)):(e.prefinished=!0,t.emit("prefinish")))}function pu(t,e,r){Gs(e)&&(aL(t,e),e.pendingcb===0&&(r?(e.pendingcb++,or.nextTick((i,n)=>{Gs(n)?fu(i,n):n.pendingcb--},t,e)):Gs(e)&&(e.pendingcb++,fu(t,e))))}function fu(t,e){e.pendingcb--,e.finished=!0;let r=e[zr].splice(0);for(let i=0;i<r.length;i++)r[i]();if(t.emit("finish"),e.autoDestroy){let i=t._readableState;(!i||i.autoDestroy&&(i.endEmitted||i.readable===!1))&&t.destroy()}}GP(se.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){let t=this._writableState;return!!t&&t.writable!==!1&&!t.destroyed&&!t.errored&&!t.ending&&!t.ended},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let t=this._writableState;return t?!t.destroyed&&!t.ending&&t.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var lL=$s.destroy;se.prototype.destroy=function(t,e){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[zr].length)&&or.nextTick(hu,r),lL.call(this,t,e),this};se.prototype._undestroy=$s.undestroy;se.prototype._destroy=function(t,e){e(t)};se.prototype[VP.captureRejectionSymbol]=function(t){this.destroy(t)};var uu;function Xy(){return uu===void 0&&(uu={}),uu}se.fromWeb=function(t,e){return Xy().newStreamWritableFromWritableStream(t,e)};se.toWeb=function(t){return Xy().newWritableStreamFromStreamWritable(t)}});var pm=g((k4,dm)=>{"use strict";var gu=Nt(),uL=D("buffer"),{isReadable:fL,isWritable:cL,isIterable:em,isNodeStream:hL,isReadableNodeStream:tm,isWritableNodeStream:rm,isDuplexNodeStream:dL,isReadableStream:im,isWritableStream:nm}=rt(),sm=yt(),{AbortError:cm,codes:{ERR_INVALID_ARG_TYPE:pL,ERR_INVALID_RETURN_VALUE:om}}=xe(),{destroyer:Hr}=ir(),gL=st(),hm=Vi(),_L=Hs(),{createDeferredPromise:am}=Oe(),lm=eu(),um=globalThis.Blob||uL.Blob,yL=typeof um<"u"?function(e){return e instanceof um}:function(e){return!1},mL=globalThis.AbortController||Mr().AbortController,{FunctionPrototypeCall:fm}=ie(),Mt=class extends gL{constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};dm.exports=function t(e,r){if(dL(e))return e;if(tm(e))return $r({readable:e});if(rm(e))return $r({writable:e});if(hL(e))return $r({writable:!1,readable:!1});if(im(e))return $r({readable:hm.fromWeb(e)});if(nm(e))return $r({writable:_L.fromWeb(e)});if(typeof e=="function"){let{value:n,write:s,final:o,destroy:a}=bL(e);if(em(n))return lm(Mt,n,{objectMode:!0,write:s,final:o,destroy:a});let l=n?.then;if(typeof l=="function"){let u,f=fm(l,n,c=>{if(c!=null)throw new om("nully","body",c)},c=>{Hr(u,c)});return u=new Mt({objectMode:!0,readable:!1,write:s,final(c){o(async()=>{try{await f,gu.nextTick(c,null)}catch(h){gu.nextTick(c,h)}})},destroy:a})}throw new om("Iterable, AsyncIterable or AsyncFunction",r,n)}if(yL(e))return t(e.arrayBuffer());if(em(e))return lm(Mt,e,{objectMode:!0,writable:!1});if(im(e?.readable)&&nm(e?.writable))return Mt.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let n=e!=null&&e.readable?tm(e?.readable)?e?.readable:t(e.readable):void 0,s=e!=null&&e.writable?rm(e?.writable)?e?.writable:t(e.writable):void 0;return $r({readable:n,writable:s})}let i=e?.then;if(typeof i=="function"){let n;return fm(i,e,s=>{s!=null&&n.push(s),n.push(null)},s=>{Hr(n,s)}),n=new Mt({objectMode:!0,writable:!1,read(){}})}throw new pL(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function bL(t){let{promise:e,resolve:r}=am(),i=new mL,n=i.signal;return{value:t((async function*(){for(;;){let o=e;e=null;let{chunk:a,done:l,cb:u}=await o;if(gu.nextTick(u),l)return;if(n.aborted)throw new cm(void 0,{cause:n.reason});({promise:e,resolve:r}=am()),yield a}})(),{signal:n}),write(o,a,l){let u=r;r=null,u({chunk:o,done:!1,cb:l})},final(o){let a=r;r=null,a({done:!0,cb:o})},destroy(o,a){i.abort(),a(o)}}}function $r(t){let e=t.readable&&typeof t.readable.read!="function"?hm.wrap(t.readable):t.readable,r=t.writable,i=!!fL(e),n=!!cL(r),s,o,a,l,u;function f(c){let h=l;l=null,h?h(c):c&&u.destroy(c)}return u=new Mt({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:i,writable:n}),n&&(sm(r,c=>{n=!1,c&&Hr(e,c),f(c)}),u._write=function(c,h,d){r.write(c,h)?d():s=d},u._final=function(c){r.end(),o=c},r.on("drain",function(){if(s){let c=s;s=null,c()}}),r.on("finish",function(){if(o){let c=o;o=null,c()}})),i&&(sm(e,c=>{i=!1,c&&Hr(e,c),f(c)}),e.on("readable",function(){if(a){let c=a;a=null,c()}}),e.on("end",function(){u.push(null)}),u._read=function(){for(;;){let c=e.read();if(c===null){a=u._read;return}if(!u.push(c))return}}),u._destroy=function(c,h){!c&&l!==null&&(c=new cm),a=null,s=null,o=null,l===null?h(c):(l=h,Hr(r,c),Hr(e,c))},u}});var st=g((M4,ym)=>{"use strict";var{ObjectDefineProperties:wL,ObjectGetOwnPropertyDescriptor:mt,ObjectKeys:SL,ObjectSetPrototypeOf:gm}=ie();ym.exports=Ye;var mu=Vi(),Be=Hs();gm(Ye.prototype,mu.prototype);gm(Ye,mu);{let t=SL(Be.prototype);for(let e=0;e<t.length;e++){let r=t[e];Ye.prototype[r]||(Ye.prototype[r]=Be.prototype[r])}}function Ye(t){if(!(this instanceof Ye))return new Ye(t);mu.call(this,t),Be.call(this,t),t?(this.allowHalfOpen=t.allowHalfOpen!==!1,t.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),t.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}wL(Ye.prototype,{writable:{__proto__:null,...mt(Be.prototype,"writable")},writableHighWaterMark:{__proto__:null,...mt(Be.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...mt(Be.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...mt(Be.prototype,"writableBuffer")},writableLength:{__proto__:null,...mt(Be.prototype,"writableLength")},writableFinished:{__proto__:null,...mt(Be.prototype,"writableFinished")},writableCorked:{__proto__:null,...mt(Be.prototype,"writableCorked")},writableEnded:{__proto__:null,...mt(Be.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...mt(Be.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}});var _u;function _m(){return _u===void 0&&(_u={}),_u}Ye.fromWeb=function(t,e){return _m().newStreamDuplexFromReadableWritablePair(t,e)};Ye.toWeb=function(t){return _m().newReadableWritablePairFromDuplex(t)};var yu;Ye.from=function(t){return yu||(yu=pm()),yu(t,"body")}});var Su=g((q4,bm)=>{"use strict";var{ObjectSetPrototypeOf:mm,Symbol:EL}=ie();bm.exports=bt;var{ERR_METHOD_NOT_IMPLEMENTED:vL}=xe().codes,wu=st(),{getHighWaterMark:xL}=zi();mm(bt.prototype,wu.prototype);mm(bt,wu);var Qi=EL("kCallback");function bt(t){if(!(this instanceof bt))return new bt(t);let e=t?xL(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),wu.call(this,t),this._readableState.sync=!1,this[Qi]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",TL)}function bu(t){typeof this._flush=="function"&&!this.destroyed?this._flush((e,r)=>{if(e){t?t(e):this.destroy(e);return}r!=null&&this.push(r),this.push(null),t&&t()}):(this.push(null),t&&t())}function TL(){this._final!==bu&&bu.call(this)}bt.prototype._final=bu;bt.prototype._transform=function(t,e,r){throw new vL("_transform()")};bt.prototype._write=function(t,e,r){let i=this._readableState,n=this._writableState,s=i.length;this._transform(t,e,(o,a)=>{if(o){r(o);return}a!=null&&this.push(a),n.ended||s===i.length||i.length<i.highWaterMark?r():this[Qi]=r})};bt.prototype._read=function(){if(this[Qi]){let t=this[Qi];this[Qi]=null,t()}}});var vu=g((F4,Sm)=>{"use strict";var{ObjectSetPrototypeOf:wm}=ie();Sm.exports=Vr;var Eu=Su();wm(Vr.prototype,Eu.prototype);wm(Vr,Eu);function Vr(t){if(!(this instanceof Vr))return new Vr(t);Eu.call(this,t)}Vr.prototype._transform=function(t,e,r){r(null,t)}});var Zs=g((j4,Rm)=>{"use strict";var Xi=Nt(),{ArrayIsArray:RL,Promise:AL,SymbolAsyncIterator:OL,SymbolDispose:IL}=ie(),Ks=yt(),{once:DL}=Oe(),PL=ir(),Em=st(),{aggregateTwoErrors:LL,codes:{ERR_INVALID_ARG_TYPE:Lu,ERR_INVALID_RETURN_VALUE:xu,ERR_MISSING_ARGS:NL,ERR_STREAM_DESTROYED:CL,ERR_STREAM_PREMATURE_CLOSE:kL},AbortError:ML}=xe(),{validateFunction:qL,validateAbortSignal:FL}=Fr(),{isIterable:ar,isReadable:Tu,isReadableNodeStream:Ys,isNodeStream:vm,isTransformStream:Yr,isWebStream:jL,isReadableStream:Ru,isReadableFinished:BL}=rt(),UL=globalThis.AbortController||Mr().AbortController,Au,Ou,Iu;function xm(t,e,r){let i=!1;t.on("close",()=>{i=!0});let n=Ks(t,{readable:e,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,PL.destroyer(t,s||new CL("pipe")))},cleanup:n}}function WL(t){return qL(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function Du(t){if(ar(t))return t;if(Ys(t))return GL(t);throw new Lu("val",["Readable","Iterable","AsyncIterable"],t)}async function*GL(t){Ou||(Ou=Vi()),yield*Ou.prototype[OL].call(t)}async function Vs(t,e,r,{end:i}){let n,s=null,o=u=>{if(u&&(n=u),s){let f=s;s=null,f()}},a=()=>new AL((u,f)=>{n?f(n):s=()=>{n?f(n):u()}});e.on("drain",o);let l=Ks(e,{readable:!1},o);try{e.writableNeedDrain&&await a();for await(let u of t)e.write(u)||await a();i&&(e.end(),await a()),r()}catch(u){r(n!==u?LL(n,u):u)}finally{l(),e.off("drain",o)}}async function Pu(t,e,r,{end:i}){Yr(e)&&(e=e.writable);let n=e.getWriter();try{for await(let s of t)await n.ready,n.write(s).catch(()=>{});await n.ready,i&&await n.close(),r()}catch(s){try{await n.abort(s),r(s)}catch(o){r(o)}}}function zL(...t){return Tm(t,DL(WL(t)))}function Tm(t,e,r){if(t.length===1&&RL(t[0])&&(t=t[0]),t.length<2)throw new NL("streams");let i=new UL,n=i.signal,s=r?.signal,o=[];FL(s,"options.signal");function a(){y(new ML)}Iu=Iu||Oe().addAbortListener;let l;s&&(l=Iu(s,a));let u,f,c=[],h=0;function d(v){y(v,--h===0)}function y(v,E){var T;if(v&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=v),!(!u&&!E)){for(;c.length;)c.shift()(u);(T=l)===null||T===void 0||T[IL](),i.abort(),E&&(u||o.forEach(P=>P()),Xi.nextTick(e,u,f))}}let p;for(let v=0;v<t.length;v++){let E=t[v],T=v<t.length-1,P=v>0,x=T||r?.end!==!1,O=v===t.length-1;if(vm(E)){let w=function(R){R&&R.name!=="AbortError"&&R.code!=="ERR_STREAM_PREMATURE_CLOSE"&&d(R)};var b=w;if(x){let{destroy:R,cleanup:A}=xm(E,T,P);c.push(R),Tu(E)&&O&&o.push(A)}E.on("error",w),Tu(E)&&O&&o.push(()=>{E.removeListener("error",w)})}if(v===0)if(typeof E=="function"){if(p=E({signal:n}),!ar(p))throw new xu("Iterable, AsyncIterable or Stream","source",p)}else ar(E)||Ys(E)||Yr(E)?p=E:p=Em.from(E);else if(typeof E=="function"){if(Yr(p)){var S;p=Du((S=p)===null||S===void 0?void 0:S.readable)}else p=Du(p);if(p=E(p,{signal:n}),T){if(!ar(p,!0))throw new xu("AsyncIterable",`transform[${v-1}]`,p)}else{var m;Au||(Au=vu());let w=new Au({objectMode:!0}),R=(m=p)===null||m===void 0?void 0:m.then;if(typeof R=="function")h++,R.call(p,G=>{f=G,G!=null&&w.write(G),x&&w.end(),Xi.nextTick(d)},G=>{w.destroy(G),Xi.nextTick(d,G)});else if(ar(p,!0))h++,Vs(p,w,d,{end:x});else if(Ru(p)||Yr(p)){let G=p.readable||p;h++,Vs(G,w,d,{end:x})}else throw new xu("AsyncIterable or Promise","destination",p);p=w;let{destroy:A,cleanup:N}=xm(p,!1,!0);c.push(A),O&&o.push(N)}}else if(vm(E)){if(Ys(p)){h+=2;let w=$L(p,E,d,{end:x});Tu(E)&&O&&o.push(w)}else if(Yr(p)||Ru(p)){let w=p.readable||p;h++,Vs(w,E,d,{end:x})}else if(ar(p))h++,Vs(p,E,d,{end:x});else throw new Lu("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],p);p=E}else if(jL(E)){if(Ys(p))h++,Pu(Du(p),E,d,{end:x});else if(Ru(p)||ar(p))h++,Pu(p,E,d,{end:x});else if(Yr(p))h++,Pu(p.readable,E,d,{end:x});else throw new Lu("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],p);p=E}else p=Em.from(E)}return(n!=null&&n.aborted||s!=null&&s.aborted)&&Xi.nextTick(a),p}function $L(t,e,r,{end:i}){let n=!1;if(e.on("close",()=>{n||r(new kL)}),t.pipe(e,{end:!1}),i){let o=function(){n=!0,e.end()};var s=o;BL(t)?Xi.nextTick(o):t.once("end",o)}else r();return Ks(t,{readable:!0,writable:!1},o=>{let a=t._readableState;o&&o.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted?t.once("end",r).once("error",r):r(o)}),Ks(e,{readable:!1,writable:!0},r)}Rm.exports={pipelineImpl:Tm,pipeline:zL}});var Cu=g((B4,Lm)=>{"use strict";var{pipeline:HL}=Zs(),Qs=st(),{destroyer:VL}=ir(),{isNodeStream:Xs,isReadable:Am,isWritable:Om,isWebStream:Nu,isTransformStream:lr,isWritableStream:Im,isReadableStream:Dm}=rt(),{AbortError:YL,codes:{ERR_INVALID_ARG_VALUE:Pm,ERR_MISSING_ARGS:KL}}=xe(),ZL=yt();Lm.exports=function(...e){if(e.length===0)throw new KL("streams");if(e.length===1)return Qs.from(e[0]);let r=[...e];if(typeof e[0]=="function"&&(e[0]=Qs.from(e[0])),typeof e[e.length-1]=="function"){let d=e.length-1;e[d]=Qs.from(e[d])}for(let d=0;d<e.length;++d)if(!(!Xs(e[d])&&!Nu(e[d]))){if(d<e.length-1&&!(Am(e[d])||Dm(e[d])||lr(e[d])))throw new Pm(`streams[${d}]`,r[d],"must be readable");if(d>0&&!(Om(e[d])||Im(e[d])||lr(e[d])))throw new Pm(`streams[${d}]`,r[d],"must be writable")}let i,n,s,o,a;function l(d){let y=o;o=null,y?y(d):d?a.destroy(d):!h&&!c&&a.destroy()}let u=e[0],f=HL(e,l),c=!!(Om(u)||Im(u)||lr(u)),h=!!(Am(f)||Dm(f)||lr(f));if(a=new Qs({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(f!=null&&f.readableObjectMode),writable:c,readable:h}),c){if(Xs(u))a._write=function(y,p,S){u.write(y,p)?S():i=S},a._final=function(y){u.end(),n=y},u.on("drain",function(){if(i){let y=i;i=null,y()}});else if(Nu(u)){let p=(lr(u)?u.writable:u).getWriter();a._write=async function(S,m,b){try{await p.ready,p.write(S).catch(()=>{}),b()}catch(v){b(v)}},a._final=async function(S){try{await p.ready,p.close().catch(()=>{}),n=S}catch(m){S(m)}}}let d=lr(f)?f.readable:f;ZL(d,()=>{if(n){let y=n;n=null,y()}})}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 y=(lr(f)?f.readable:f).getReader();a._read=async function(){for(;;)try{let{value:p,done:S}=await y.read();if(!a.push(p))return;if(S){a.push(null);return}}catch{return}}}}return a._destroy=function(d,y){!d&&o!==null&&(d=new YL),s=null,i=null,n=null,o===null?y(d):(o=y,Xs(f)&&VL(f,d))},a}});var Wm=g((U4,qu)=>{"use strict";var QL=globalThis.AbortController||Mr().AbortController,{codes:{ERR_INVALID_ARG_VALUE:XL,ERR_INVALID_ARG_TYPE:Ji,ERR_MISSING_ARGS:JL,ERR_OUT_OF_RANGE:eN},AbortError:ot}=xe(),{validateAbortSignal:ur,validateInteger:Nm,validateObject:fr}=Fr(),tN=ie().Symbol("kWeak"),rN=ie().Symbol("kResistStopPropagation"),{finished:iN}=yt(),nN=Cu(),{addAbortSignalNoValidate:sN}=Gi(),{isWritable:oN,isNodeStream:aN}=rt(),{deprecate:lN}=Oe(),{ArrayPrototypePush:uN,Boolean:fN,MathFloor:Cm,Number:cN,NumberIsNaN:hN,Promise:km,PromiseReject:Mm,PromiseResolve:dN,PromisePrototypeThen:qm,Symbol:jm}=ie(),Js=jm("kEmpty"),Fm=jm("kEof");function pN(t,e){if(e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),aN(t)&&!oN(t))throw new XL("stream",t,"must be writable");let r=nN(this,t);return e!=null&&e.signal&&sN(e.signal,r),r}function eo(t,e){if(typeof t!="function")throw new Ji("fn",["Function","AsyncFunction"],t);e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal");let r=1;e?.concurrency!=null&&(r=Cm(e.concurrency));let i=r-1;return e?.highWaterMark!=null&&(i=Cm(e.highWaterMark)),Nm(r,"options.concurrency",1),Nm(i,"options.highWaterMark",0),i+=r,async function*(){let s=Oe().AbortSignalAny([e?.signal].filter(fN)),o=this,a=[],l={signal:s},u,f,c=!1,h=0;function d(){c=!0,y()}function y(){h-=1,p()}function p(){f&&!c&&h<r&&a.length<i&&(f(),f=null)}async function S(){try{for await(let m of o){if(c)return;if(s.aborted)throw new ot;try{if(m=t(m,l),m===Js)continue;m=dN(m)}catch(b){m=Mm(b)}h+=1,qm(m,y,d),a.push(m),u&&(u(),u=null),!c&&(a.length>=i||h>=r)&&await new km(b=>{f=b})}a.push(Fm)}catch(m){let b=Mm(m);qm(b,y,d),a.push(b)}finally{c=!0,u&&(u(),u=null)}}S();try{for(;;){for(;a.length>0;){let m=await a[0];if(m===Fm)return;if(s.aborted)throw new ot;m!==Js&&(yield m),a.shift(),p()}await new km(m=>{u=m})}}finally{c=!0,f&&(f(),f=null)}}.call(this)}function gN(t=void 0){return t!=null&&fr(t,"options"),t?.signal!=null&&ur(t.signal,"options.signal"),async function*(){let r=0;for await(let n of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new ot({cause:t.signal.reason});yield[r++,n]}}.call(this)}async function Bm(t,e=void 0){for await(let r of Mu.call(this,t,e))return!0;return!1}async function _N(t,e=void 0){if(typeof t!="function")throw new Ji("fn",["Function","AsyncFunction"],t);return!await Bm.call(this,async(...r)=>!await t(...r),e)}async function yN(t,e){for await(let r of Mu.call(this,t,e))return r}async function mN(t,e){if(typeof t!="function")throw new Ji("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n),Js}for await(let i of eo.call(this,r,e));}function Mu(t,e){if(typeof t!="function")throw new Ji("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n)?i:Js}return eo.call(this,r,e)}var ku=class extends JL{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function bN(t,e,r){var i;if(typeof t!="function")throw new Ji("reducer",["Function","AsyncFunction"],t);r!=null&&fr(r,"options"),r?.signal!=null&&ur(r.signal,"options.signal");let n=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){let u=new ot(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await iN(this.destroy(u)),u}let s=new QL,o=s.signal;if(r!=null&&r.signal){let u={once:!0,[tN]:this,[rN]:!0};r.signal.addEventListener("abort",()=>s.abort(),u)}let a=!1;try{for await(let u of this){var l;if(a=!0,r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ot;n?e=await t(e,u,{signal:o}):(e=u,n=!0)}if(!a&&!n)throw new ku}finally{s.abort()}return e}async function wN(t){t!=null&&fr(t,"options"),t?.signal!=null&&ur(t.signal,"options.signal");let e=[];for await(let i of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new ot(void 0,{cause:t.signal.reason});uN(e,i)}return e}function SN(t,e){let r=eo.call(this,t,e);return async function*(){for await(let n of r)yield*n}.call(this)}function Um(t){if(t=cN(t),hN(t))return 0;if(t<0)throw new eN("number",">= 0",t);return t}function EN(t,e=void 0){return e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),t=Um(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ot;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ot;t--<=0&&(yield s)}}.call(this)}function vN(t,e=void 0){return e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),t=Um(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ot;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ot;if(t-- >0&&(yield s),t<=0)return}}.call(this)}qu.exports.streamReturningOperators={asIndexedPairs:lN(gN,"readable.asIndexedPairs will be removed in a future version."),drop:EN,filter:Mu,flatMap:SN,map:eo,take:vN,compose:pN};qu.exports.promiseReturningOperators={every:_N,forEach:mN,reduce:bN,toArray:wN,some:Bm,find:yN}});var Fu=g((W4,Gm)=>{"use strict";var{ArrayPrototypePop:xN,Promise:TN}=ie(),{isIterable:RN,isNodeStream:AN,isWebStream:ON}=rt(),{pipelineImpl:IN}=Zs(),{finished:DN}=yt();ju();function PN(...t){return new TN((e,r)=>{let i,n,s=t[t.length-1];if(s&&typeof s=="object"&&!AN(s)&&!RN(s)&&!ON(s)){let o=xN(t);i=o.signal,n=o.end}IN(t,(o,a)=>{o?r(o):e(a)},{signal:i,end:n})})}Gm.exports={finished:DN,pipeline:PN}});var ju=g((G4,Xm)=>{"use strict";var{Buffer:LN}=D("buffer"),{ObjectDefineProperty:wt,ObjectKeys:Hm,ReflectApply:Vm}=ie(),{promisify:{custom:Ym}}=Oe(),{streamReturningOperators:zm,promiseReturningOperators:$m}=Wm(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:Km}}=xe(),NN=Cu(),{setDefaultHighWaterMark:CN,getDefaultHighWaterMark:kN}=zi(),{pipeline:Zm}=Zs(),{destroyer:MN}=ir(),Qm=yt(),Bu=Fu(),en=rt(),ee=Xm.exports=Ns().Stream;ee.isDestroyed=en.isDestroyed;ee.isDisturbed=en.isDisturbed;ee.isErrored=en.isErrored;ee.isReadable=en.isReadable;ee.isWritable=en.isWritable;ee.Readable=Vi();for(let t of Hm(zm)){let r=function(...i){if(new.target)throw Km();return ee.Readable.from(Vm(e,this,i))},e=zm[t];wt(r,"name",{__proto__:null,value:e.name}),wt(r,"length",{__proto__:null,value:e.length}),wt(ee.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}for(let t of Hm($m)){let r=function(...i){if(new.target)throw Km();return Vm(e,this,i)},e=$m[t];wt(r,"name",{__proto__:null,value:e.name}),wt(r,"length",{__proto__:null,value:e.length}),wt(ee.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}ee.Writable=Hs();ee.Duplex=st();ee.Transform=Su();ee.PassThrough=vu();ee.pipeline=Zm;var{addAbortSignal:qN}=Gi();ee.addAbortSignal=qN;ee.finished=Qm;ee.destroy=MN;ee.compose=NN;ee.setDefaultHighWaterMark=CN;ee.getDefaultHighWaterMark=kN;wt(ee,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return Bu}});wt(Zm,Ym,{__proto__:null,enumerable:!0,get(){return Bu.pipeline}});wt(Qm,Ym,{__proto__:null,enumerable:!0,get(){return Bu.finished}});ee.Stream=ee;ee._isUint8Array=function(e){return e instanceof Uint8Array};ee._uint8ArrayToBuffer=function(e){return LN.from(e.buffer,e.byteOffset,e.byteLength)}});var cr=g((z4,j)=>{"use strict";var he=D("stream");if(he&&process.env.READABLE_STREAM==="disable"){let t=he.promises;j.exports._uint8ArrayToBuffer=he._uint8ArrayToBuffer,j.exports._isUint8Array=he._isUint8Array,j.exports.isDisturbed=he.isDisturbed,j.exports.isErrored=he.isErrored,j.exports.isReadable=he.isReadable,j.exports.Readable=he.Readable,j.exports.Writable=he.Writable,j.exports.Duplex=he.Duplex,j.exports.Transform=he.Transform,j.exports.PassThrough=he.PassThrough,j.exports.addAbortSignal=he.addAbortSignal,j.exports.finished=he.finished,j.exports.destroy=he.destroy,j.exports.pipeline=he.pipeline,j.exports.compose=he.compose,Object.defineProperty(he,"promises",{configurable:!0,enumerable:!0,get(){return t}}),j.exports.Stream=he.Stream}else{let t=ju(),e=Fu(),r=t.Readable.destroy;j.exports=t.Readable,j.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,j.exports._isUint8Array=t._isUint8Array,j.exports.isDisturbed=t.isDisturbed,j.exports.isErrored=t.isErrored,j.exports.isReadable=t.isReadable,j.exports.Readable=t.Readable,j.exports.Writable=t.Writable,j.exports.Duplex=t.Duplex,j.exports.Transform=t.Transform,j.exports.PassThrough=t.PassThrough,j.exports.addAbortSignal=t.addAbortSignal,j.exports.finished=t.finished,j.exports.destroy=t.destroy,j.exports.destroy=r,j.exports.pipeline=t.pipeline,j.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return e}}),j.exports.Stream=t.Stream}j.exports.default=j.exports});var eb=g(($4,Jm)=>{"use strict";function FN(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}Jm.exports=FN});var nb=g((H4,ib)=>{"use strict";var tb=ms(),jN=El(),BN=vl(),rb=tb?tb.isConcatSpreadable:void 0;function UN(t){return BN(t)||jN(t)||!!(rb&&t&&t[rb])}ib.exports=UN});var to=g((V4,ob)=>{"use strict";var WN=eb(),GN=nb();function sb(t,e,r,i,n){var s=-1,o=t.length;for(r||(r=GN),n||(n=[]);++s<o;){var a=t[s];e>0&&r(a)?e>1?sb(a,e-1,r,i,n):WN(n,a):i||(n[n.length]=a)}return n}ob.exports=sb});var lb=g((Y4,ab)=>{"use strict";var zN=to();function $N(t){var e=t==null?0:t.length;return e?zN(t,1):[]}ab.exports=$N});var tn=g((K4,ub)=>{"use strict";var HN=Ci(),VN=HN(Object,"create");ub.exports=VN});var hb=g((Z4,cb)=>{"use strict";var fb=tn();function YN(){this.__data__=fb?fb(null):{},this.size=0}cb.exports=YN});var pb=g((Q4,db)=>{"use strict";function KN(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}db.exports=KN});var _b=g((X4,gb)=>{"use strict";var ZN=tn(),QN="__lodash_hash_undefined__",XN=Object.prototype,JN=XN.hasOwnProperty;function eC(t){var e=this.__data__;if(ZN){var r=e[t];return r===QN?void 0:r}return JN.call(e,t)?e[t]:void 0}gb.exports=eC});var mb=g((J4,yb)=>{"use strict";var tC=tn(),rC=Object.prototype,iC=rC.hasOwnProperty;function nC(t){var e=this.__data__;return tC?e[t]!==void 0:iC.call(e,t)}yb.exports=nC});var wb=g((e6,bb)=>{"use strict";var sC=tn(),oC="__lodash_hash_undefined__";function aC(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=sC&&e===void 0?oC:e,this}bb.exports=aC});var Eb=g((t6,Sb)=>{"use strict";var lC=hb(),uC=pb(),fC=_b(),cC=mb(),hC=wb();function Kr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Kr.prototype.clear=lC;Kr.prototype.delete=uC;Kr.prototype.get=fC;Kr.prototype.has=cC;Kr.prototype.set=hC;Sb.exports=Kr});var xb=g((r6,vb)=>{"use strict";function dC(){this.__data__=[],this.size=0}vb.exports=dC});var rn=g((i6,Tb)=>{"use strict";var pC=ws();function gC(t,e){for(var r=t.length;r--;)if(pC(t[r][0],e))return r;return-1}Tb.exports=gC});var Ab=g((n6,Rb)=>{"use strict";var _C=rn(),yC=Array.prototype,mC=yC.splice;function bC(t){var e=this.__data__,r=_C(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():mC.call(e,r,1),--this.size,!0}Rb.exports=bC});var Ib=g((s6,Ob)=>{"use strict";var wC=rn();function SC(t){var e=this.__data__,r=wC(e,t);return r<0?void 0:e[r][1]}Ob.exports=SC});var Pb=g((o6,Db)=>{"use strict";var EC=rn();function vC(t){return EC(this.__data__,t)>-1}Db.exports=vC});var Nb=g((a6,Lb)=>{"use strict";var xC=rn();function TC(t,e){var r=this.__data__,i=xC(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}Lb.exports=TC});var kb=g((l6,Cb)=>{"use strict";var RC=xb(),AC=Ab(),OC=Ib(),IC=Pb(),DC=Nb();function Zr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Zr.prototype.clear=RC;Zr.prototype.delete=AC;Zr.prototype.get=OC;Zr.prototype.has=IC;Zr.prototype.set=DC;Cb.exports=Zr});var qb=g((u6,Mb)=>{"use strict";var PC=Ci(),LC=Pr(),NC=PC(LC,"Map");Mb.exports=NC});var Bb=g((f6,jb)=>{"use strict";var Fb=Eb(),CC=kb(),kC=qb();function MC(){this.size=0,this.__data__={hash:new Fb,map:new(kC||CC),string:new Fb}}jb.exports=MC});var Wb=g((c6,Ub)=>{"use strict";function qC(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}Ub.exports=qC});var nn=g((h6,Gb)=>{"use strict";var FC=Wb();function jC(t,e){var r=t.__data__;return FC(e)?r[typeof e=="string"?"string":"hash"]:r.map}Gb.exports=jC});var $b=g((d6,zb)=>{"use strict";var BC=nn();function UC(t){var e=BC(this,t).delete(t);return this.size-=e?1:0,e}zb.exports=UC});var Vb=g((p6,Hb)=>{"use strict";var WC=nn();function GC(t){return WC(this,t).get(t)}Hb.exports=GC});var Kb=g((g6,Yb)=>{"use strict";var zC=nn();function $C(t){return zC(this,t).has(t)}Yb.exports=$C});var Qb=g((_6,Zb)=>{"use strict";var HC=nn();function VC(t,e){var r=HC(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}Zb.exports=VC});var Jb=g((y6,Xb)=>{"use strict";var YC=Bb(),KC=$b(),ZC=Vb(),QC=Kb(),XC=Qb();function Qr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Qr.prototype.clear=YC;Qr.prototype.delete=KC;Qr.prototype.get=ZC;Qr.prototype.has=QC;Qr.prototype.set=XC;Xb.exports=Qr});var tw=g((m6,ew)=>{"use strict";var JC="__lodash_hash_undefined__";function ek(t){return this.__data__.set(t,JC),this}ew.exports=ek});var iw=g((b6,rw)=>{"use strict";function tk(t){return this.__data__.has(t)}rw.exports=tk});var Uu=g((w6,nw)=>{"use strict";var rk=Jb(),ik=tw(),nk=iw();function ro(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new rk;++e<r;)this.add(t[e])}ro.prototype.add=ro.prototype.push=ik;ro.prototype.has=nk;nw.exports=ro});var ow=g((S6,sw)=>{"use strict";function sk(t,e,r,i){for(var n=t.length,s=r+(i?1:-1);i?s--:++s<n;)if(e(t[s],s,t))return s;return-1}sw.exports=sk});var lw=g((E6,aw)=>{"use strict";function ok(t){return t!==t}aw.exports=ok});var fw=g((v6,uw)=>{"use strict";function ak(t,e,r){for(var i=r-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}uw.exports=ak});var hw=g((x6,cw)=>{"use strict";var lk=ow(),uk=lw(),fk=fw();function ck(t,e,r){return e===e?fk(t,e,r):lk(t,uk,r)}cw.exports=ck});var Wu=g((T6,dw)=>{"use strict";var hk=hw();function dk(t,e){var r=t==null?0:t.length;return!!r&&hk(t,e,0)>-1}dw.exports=dk});var Gu=g((R6,pw)=>{"use strict";function pk(t,e,r){for(var i=-1,n=t==null?0:t.length;++i<n;)if(r(e,t[i]))return!0;return!1}pw.exports=pk});var _w=g((A6,gw)=>{"use strict";function gk(t,e){for(var r=-1,i=t==null?0:t.length,n=Array(i);++r<i;)n[r]=e(t[r],r,t);return n}gw.exports=gk});var zu=g((O6,yw)=>{"use strict";function _k(t,e){return t.has(e)}yw.exports=_k});var bw=g((I6,mw)=>{"use strict";var yk=Uu(),mk=Wu(),bk=Gu(),wk=_w(),Sk=xl(),Ek=zu(),vk=200;function xk(t,e,r,i){var n=-1,s=mk,o=!0,a=t.length,l=[],u=e.length;if(!a)return l;r&&(e=wk(e,Sk(r))),i?(s=bk,o=!1):e.length>=vk&&(s=Ek,o=!1,e=new yk(e));e:for(;++n<a;){var f=t[n],c=r==null?f:r(f);if(f=i||f!==0?f:0,o&&c===c){for(var h=u;h--;)if(e[h]===c)continue e;l.push(f)}else s(e,c,i)||l.push(f)}return l}mw.exports=xk});var $u=g((D6,ww)=>{"use strict";var Tk=Ss(),Rk=Lr();function Ak(t){return Rk(t)&&Tk(t)}ww.exports=Ak});var vw=g((P6,Ew)=>{"use strict";var Ok=bw(),Ik=to(),Dk=bs(),Sw=$u(),Pk=Dk(function(t,e){return Sw(t)?Ok(t,Ik(e,1,Sw,!0)):[]});Ew.exports=Pk});var Tw=g((L6,xw)=>{"use strict";var Lk=Ci(),Nk=Pr(),Ck=Lk(Nk,"Set");xw.exports=Ck});var Aw=g((N6,Rw)=>{"use strict";function kk(){}Rw.exports=kk});var Hu=g((C6,Ow)=>{"use strict";function Mk(t){var e=-1,r=Array(t.size);return t.forEach(function(i){r[++e]=i}),r}Ow.exports=Mk});var Dw=g((k6,Iw)=>{"use strict";var Vu=Tw(),qk=Aw(),Fk=Hu(),jk=1/0,Bk=Vu&&1/Fk(new Vu([,-0]))[1]==jk?function(t){return new Vu(t)}:qk;Iw.exports=Bk});var Lw=g((M6,Pw)=>{"use strict";var Uk=Uu(),Wk=Wu(),Gk=Gu(),zk=zu(),$k=Dw(),Hk=Hu(),Vk=200;function Yk(t,e,r){var i=-1,n=Wk,s=t.length,o=!0,a=[],l=a;if(r)o=!1,n=Gk;else if(s>=Vk){var u=e?null:$k(t);if(u)return Hk(u);o=!1,n=zk,l=new Uk}else l=e?[]:a;e:for(;++i<s;){var f=t[i],c=e?e(f):f;if(f=r||f!==0?f:0,o&&c===c){for(var h=l.length;h--;)if(l[h]===c)continue e;e&&l.push(c),a.push(f)}else n(l,c,r)||(l!==a&&l.push(c),a.push(f))}return a}Pw.exports=Yk});var Cw=g((q6,Nw)=>{"use strict";var Kk=to(),Zk=bs(),Qk=Lw(),Xk=$u(),Jk=Zk(function(t){return Qk(Kk(t,1,Xk,!0))});Nw.exports=Jk});var Mw=g((F6,kw)=>{"use strict";function eM(t,e){return function(r){return t(e(r))}}kw.exports=eM});var Fw=g((j6,qw)=>{"use strict";var tM=Mw(),rM=tM(Object.getPrototypeOf,Object);qw.exports=rM});var Uw=g((B6,Bw)=>{"use strict";var iM=Li(),nM=Fw(),sM=Lr(),oM="[object Object]",aM=Function.prototype,lM=Object.prototype,jw=aM.toString,uM=lM.hasOwnProperty,fM=jw.call(Object);function cM(t){if(!sM(t)||iM(t)!=oM)return!1;var e=nM(t);if(e===null)return!0;var r=uM.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&jw.call(r)==fM}Bw.exports=cM});var Ww=g(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.assertValidPattern=void 0;var hM=1024*64,dM=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>hM)throw new TypeError("pattern is too long")};io.assertValidPattern=dM});var zw=g(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.parseClass=void 0;var pM={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},sn=t=>t.replace(/[[\]\\-]/g,"\\$&"),gM=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Gw=t=>t.join(""),_M=(t,e)=>{let r=e;if(t.charAt(r)!=="[")throw new Error("not in a brace expression");let i=[],n=[],s=r+1,o=!1,a=!1,l=!1,u=!1,f=r,c="";e:for(;s<t.length;){let p=t.charAt(s);if((p==="!"||p==="^")&&s===r+1){u=!0,s++;continue}if(p==="]"&&o&&!l){f=s+1;break}if(o=!0,p==="\\"&&!l){l=!0,s++;continue}if(p==="["&&!l){for(let[S,[m,b,v]]of Object.entries(pM))if(t.startsWith(S,s)){if(c)return["$.",!1,t.length-r,!0];s+=S.length,v?n.push(m):i.push(m),a=a||b;continue e}}if(l=!1,c){p>c?i.push(sn(c)+"-"+sn(p)):p===c&&i.push(sn(p)),c="",s++;continue}if(t.startsWith("-]",s+1)){i.push(sn(p+"-")),s+=2;continue}if(t.startsWith("-",s+1)){c=p,s+=2;continue}i.push(sn(p)),s++}if(f<s)return["",!1,0,!1];if(!i.length&&!n.length)return["$.",!1,t.length-r,!0];if(n.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!u){let p=i[0].length===2?i[0].slice(-1):i[0];return[gM(p),!1,f-r,!1]}let h="["+(u?"^":"")+Gw(i)+"]",d="["+(u?"":"^")+Gw(n)+"]";return[i.length&&n.length?"("+h+"|"+d+")":i.length?h:d,a,f-r,!0]};no.parseClass=_M});var oo=g(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.unescape=void 0;var yM=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");so.unescape=yM});var Zu=g(fo=>{"use strict";var Le;Object.defineProperty(fo,"__esModule",{value:!0});fo.AST=void 0;var mM=zw(),ao=oo(),bM=new Set(["!","?","+","*","@"]),Yu=t=>bM.has(t),$w=t=>Yu(t.type),wM=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),SM=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),EM=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Hw=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),vM="(?!(?:^|/)\\.\\.?(?:$|/))",lo="(?!\\.)",xM=new Set(["[","."]),TM=new Set(["..","."]),RM=new Set("().*{}+?[]^$\\!"),AM=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ku="[^/]",Vw=Ku+"*?",Yw=Ku+"+?",uo=class{type;#e;#r;#n=!1;#t=[];#o;#S;#u;#c=!1;#l;#a;#s=!1;constructor(e,r,i={}){this.type=e,e&&(this.#r=!0),this.#o=r,this.#e=this.#o?this.#o.#e:this,this.#l=this.#e===this?i:this.#e.#l,this.#u=this.#e===this?[]:this.#e.#u,e==="!"&&!this.#e.#c&&this.#u.push(this),this.#S=this.#o?this.#o.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let e of this.#t)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#a!==void 0?this.#a:this.type?this.#a=this.type+"("+this.#t.map(e=>String(e)).join("|")+")":this.#a=this.#t.map(e=>String(e)).join("")}#y(){if(this!==this.#e)throw new Error("should only call on root");if(this.#c)return this;this.toString(),this.#c=!0;let e;for(;e=this.#u.pop();){if(e.type!=="!")continue;let r=e,i=r.#o;for(;i;){for(let n=r.#S+1;!i.type&&n<i.#t.length;n++)for(let s of e.#t){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(i.#t[n])}r=i,i=r.#o}}return this}push(...e){for(let r of e)if(r!==""){if(typeof r!="string"&&!(r instanceof Le&&r.#o===this))throw new Error("invalid part: "+r);this.#t.push(r)}}toJSON(){let e=this.type===null?this.#t.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#t.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#c&&this.#o?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#o?.isStart())return!1;if(this.#S===0)return!0;let e=this.#o;for(let r=0;r<this.#S;r++){let i=e.#t[r];if(!(i instanceof Le&&i.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#o?.type==="!")return!0;if(!this.#o?.isEnd())return!1;if(!this.type)return this.#o?.isEnd();let e=this.#o?this.#o.#t.length:0;return this.#S===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let r=new Le(this.type,e);for(let i of this.#t)r.copyIn(i);return r}static#m(e,r,i,n,s){let o=n.maxExtglobRecursion??2,a=!1,l=!1,u=-1,f=!1;if(r.type===null){let p=i,S="";for(;p<e.length;){let m=e.charAt(p++);if(a||m==="\\"){a=!a,S+=m;continue}if(l){p===u+1?(m==="^"||m==="!")&&(f=!0):m==="]"&&!(p===u+2&&f)&&(l=!1),S+=m;continue}else if(m==="["){l=!0,u=p,f=!1,S+=m;continue}if(!n.noext&&Yu(m)&&e.charAt(p)==="("&&s<=o){r.push(S),S="";let v=new Le(m,r);p=Le.#m(e,v,p,n,s+1),r.push(v);continue}S+=m}return r.push(S),p}let c=i+1,h=new Le(null,r),d=[],y="";for(;c<e.length;){let p=e.charAt(c++);if(a||p==="\\"){a=!a,y+=p;continue}if(l){c===u+1?(p==="^"||p==="!")&&(f=!0):p==="]"&&!(c===u+2&&f)&&(l=!1),y+=p;continue}else if(p==="["){l=!0,u=c,f=!1,y+=p;continue}if(Yu(p)&&e.charAt(c)==="("&&(s<=o||r&&r.#E(p))){let m=r&&r.#E(p)?0:1;h.push(y),y="";let b=new Le(p,h);h.push(b),c=Le.#m(e,b,c,n,s+m);continue}if(p==="|"){h.push(y),y="",d.push(h),h=new Le(null,r);continue}if(p===")")return y===""&&r.#t.length===0&&(r.#s=!0),h.push(y),y="",r.push(...d,h),c;y+=p}return r.type=null,r.#r=void 0,r.#t=[e.substring(i-1)],c}#g(e){return this.#d(e,SM)}#d(e,r=wM){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null)return!1;let i=e.#t[0];return!i||typeof i!="object"||i.type===null?!1:this.#E(i.type,r)}#E(e,r=EM){return!!r.get(this.type)?.includes(e)}#p(e,r){let i=e.#t[0],n=new Le(null,i,this.options);n.#t.push(""),i.push(n),this.#x(e,r)}#x(e,r){let i=e.#t[0];this.#t.splice(r,1,...i.#t);for(let n of i.#t)typeof n=="object"&&(n.#o=this);this.#a=void 0}#T(e){return!!Hw.get(this.type)?.has(e)}#_(e){if(!e||typeof e!="object"||e.type!==null||e.#t.length!==1||this.type===null||this.#t.length!==1)return!1;let r=e.#t[0];return!r||typeof r!="object"||r.type===null?!1:this.#T(r.type)}#v(e){let r=Hw.get(this.type),i=e.#t[0],n=r?.get(i.type);if(!n)return!1;this.#t=i.#t;for(let s of this.#t)typeof s=="object"&&(s.#o=this);this.type=n,this.#a=void 0,this.#s=!1}#b(){if($w(this)){let e=0,r=!1;do{r=!0;for(let i=0;i<this.#t.length;i++){let n=this.#t[i];typeof n=="object"&&(n.#b(),this.#d(n)?(r=!1,this.#x(n,i)):this.#g(n)?(r=!1,this.#p(n,i)):this.#_(n)&&(r=!1,this.#v(n)))}}while(!r&&++e<10)}else for(let e of this.#t)typeof e=="object"&&e.#b();this.#a=void 0}static fromGlob(e,r={}){let i=new Le(null,void 0,r);return Le.#m(e,i,0,r,0),i}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[r,i,n,s]=this.toRegExpSource();if(!(n||this.#r||this.#l.nocase&&!this.#l.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return i;let a=(this.#l.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:e})}get options(){return this.#l}toRegExpSource(e){let r=e??!!this.#l.dot;if(this.#e===this&&(this.#b(),this.#y()),!$w(this)){let l=this.isStart()&&this.isEnd(),u=this.#t.map(d=>{let[y,p,S,m]=typeof d=="string"?Le.#R(d,this.#r,l):d.toRegExpSource(e);return this.#r=this.#r||S,this.#n=this.#n||m,y}).join(""),f="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&TM.has(this.#t[0]))){let y=xM,p=r&&y.has(u.charAt(0))||u.startsWith("\\.")&&y.has(u.charAt(2))||u.startsWith("\\.\\.")&&y.has(u.charAt(4)),S=!r&&!e&&y.has(u.charAt(0));f=p?vM:S?lo:""}let c="";return this.isEnd()&&this.#e.#c&&this.#o?.type==="!"&&(c="(?:$|\\/)"),[f+u+c,(0,ao.unescape)(u),this.#r=!!this.#r,this.#n]}let i=this.type==="*"||this.type==="+",n=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#h(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let l=this.toString(),u=this;return u.#t=[l],u.type=null,u.#r=void 0,[l,(0,ao.unescape)(this.toString()),!1,!1]}let o=!i||e||r||!lo?"":this.#h(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!r?lo:"")+Yw;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?lo:"")+Vw+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=n+s+l}return[a,(0,ao.unescape)(s),this.#r=!!this.#r,this.#n]}#h(e){return this.#t.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[i,n,s,o]=r.toRegExpSource(e);return this.#n=this.#n||o,i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#R(e,r,i=!1){let n=!1,s="",o=!1,a=!1;for(let l=0;l<e.length;l++){let u=e.charAt(l);if(n){n=!1,s+=(RM.has(u)?"\\":"")+u,a=!1;continue}if(u==="\\"){l===e.length-1?s+="\\\\":n=!0;continue}if(u==="["){let[f,c,h,d]=(0,mM.parseClass)(e,l);if(h){s+=f,o=o||c,l+=h-1,r=r||d,a=!1;continue}}if(u==="*"){if(a)continue;a=!0,s+=i&&/^[*]+$/.test(e)?Yw:Vw,r=!0;continue}else a=!1;if(u==="?"){s+=Ku,r=!0;continue}s+=AM(u)}return[s,(0,ao.unescape)(e),!!r,o]}};fo.AST=uo;Le=uo});var Qu=g(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.escape=void 0;var OM=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");co.escape=OM});var qt=g(I=>{"use strict";var IM=I&&I.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(I,"__esModule",{value:!0});I.unescape=I.escape=I.AST=I.Minimatch=I.match=I.makeRe=I.braceExpand=I.defaults=I.filter=I.GLOBSTAR=I.sep=I.minimatch=void 0;var DM=IM(na()),ho=Ww(),Qw=Zu(),PM=Qu(),LM=oo(),NM=(t,e,r={})=>((0,ho.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new hr(e,r).match(t));I.minimatch=NM;var CM=/^\*+([^+@!?\*\[\(]*)$/,kM=t=>e=>!e.startsWith(".")&&e.endsWith(t),MM=t=>e=>e.endsWith(t),qM=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),FM=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),jM=/^\*+\.\*+$/,BM=t=>!t.startsWith(".")&&t.includes("."),UM=t=>t!=="."&&t!==".."&&t.includes("."),WM=/^\.\*+$/,GM=t=>t!=="."&&t!==".."&&t.startsWith("."),zM=/^\*+$/,$M=t=>t.length!==0&&!t.startsWith("."),HM=t=>t.length!==0&&t!=="."&&t!=="..",VM=/^\?+([^+@!?\*\[\(]*)?$/,YM=([t,e=""])=>{let r=Xw([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},KM=([t,e=""])=>{let r=Jw([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},ZM=([t,e=""])=>{let r=Jw([t]);return e?i=>r(i)&&i.endsWith(e):r},QM=([t,e=""])=>{let r=Xw([t]);return e?i=>r(i)&&i.endsWith(e):r},Xw=([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},Jw=([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},e0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Kw={win32:{sep:"\\"},posix:{sep:"/"}};I.sep=e0==="win32"?Kw.win32.sep:Kw.posix.sep;I.minimatch.sep=I.sep;I.GLOBSTAR=Symbol("globstar **");I.minimatch.GLOBSTAR=I.GLOBSTAR;var XM="[^/]",JM=XM+"*?",e2="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",t2="(?:(?!(?:\\/|^)\\.).)*?",r2=(t,e={})=>r=>(0,I.minimatch)(r,t,e);I.filter=r2;I.minimatch.filter=I.filter;var Ue=(t,e={})=>Object.assign({},t,e),i2=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return I.minimatch;let e=I.minimatch;return Object.assign((i,n,s={})=>e(i,n,Ue(t,s)),{Minimatch:class extends e.Minimatch{constructor(n,s={}){super(n,Ue(t,s))}static defaults(n){return e.defaults(Ue(t,n)).Minimatch}},AST:class extends e.AST{constructor(n,s,o={}){super(n,s,Ue(t,o))}static fromGlob(n,s={}){return e.AST.fromGlob(n,Ue(t,s))}},unescape:(i,n={})=>e.unescape(i,Ue(t,n)),escape:(i,n={})=>e.escape(i,Ue(t,n)),filter:(i,n={})=>e.filter(i,Ue(t,n)),defaults:i=>e.defaults(Ue(t,i)),makeRe:(i,n={})=>e.makeRe(i,Ue(t,n)),braceExpand:(i,n={})=>e.braceExpand(i,Ue(t,n)),match:(i,n,s={})=>e.match(i,n,Ue(t,s)),sep:e.sep,GLOBSTAR:I.GLOBSTAR})};I.defaults=i2;I.minimatch.defaults=I.defaults;var n2=(t,e={})=>((0,ho.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,DM.default)(t));I.braceExpand=n2;I.minimatch.braceExpand=I.braceExpand;var s2=(t,e={})=>new hr(t,e).makeRe();I.makeRe=s2;I.minimatch.makeRe=I.makeRe;var o2=(t,e,r={})=>{let i=new hr(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};I.match=o2;I.minimatch.match=I.match;var Zw=/[?*]|[+@!]\(.*?\)|\[|\]/,a2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),hr=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,ho.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||e0,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let r of e)if(typeof r!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let n=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=s[0]===""&&s[1]===""&&(s[2]==="?"||!Zw.test(s[2]))&&!Zw.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(l)return[...s.slice(0,4),...s.slice(4).map(f=>this.parse(f))];if(u)return[s[0],...s.slice(1).map(f=>this.parse(f))]}return s.map(l=>this.parse(l))});if(this.debug(this.pattern,n),this.set=n.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let i=0;i<e.length;i++)for(let n=0;n<e[i].length;n++)e[i][n]==="**"&&(e[i][n]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let n=i;for(;r[n+1]==="**";)n++;n!==i&&r.splice(i,n-i)}return r})}levelOneOptimize(e){return e.map(r=>(r=r.reduce((i,n)=>{let s=i[i.length-1];return n==="**"&&s==="**"?i:n===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(n),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let s=e[n];n===1&&s===""&&e[0]===""||(s==="."||s==="")&&(r=!0,e.splice(n,1),n--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(r=!0,e.pop())}let i=0;for(;(i=e.indexOf("..",i+1))!==-1;){let n=e[i-1];n&&n!=="."&&n!==".."&&n!=="**"&&(r=!0,e.splice(i-1,2),i-=2)}}while(r);return e.length===0?[""]:e}firstPhasePreProcess(e){let r=!1;do{r=!1;for(let i of e){let n=-1;for(;(n=i.indexOf("**",n+1))!==-1;){let o=n;for(;i[o+1]==="**";)o++;o>n&&i.splice(n+1,o-n);let a=i[n+1],l=i[n+2],u=i[n+3];if(a!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;r=!0,i.splice(n,1);let f=i.slice(0);f[n]="**",e.push(f),n--}if(!this.preserveMultipleSlashes){for(let o=1;o<i.length-1;o++){let a=i[o];o===1&&a===""&&i[0]===""||(a==="."||a==="")&&(r=!0,i.splice(o,1),o--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){let o=i[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){r=!0;let l=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...l),i.length===0&&i.push(""),s-=2}}}}while(r);return e}secondPhasePreProcess(e){for(let r=0;r<e.length-1;r++)for(let i=r+1;i<e.length;i++){let n=this.partsMatch(e[r],e[i],!this.preserveMultipleSlashes);if(n){e[r]=[],e[i]=n;break}}return e.filter(r=>r.length)}partsMatch(e,r,i=!1){let n=0,s=0,o=[],a="";for(;n<e.length&&s<r.length;)if(e[n]===r[s])o.push(a==="b"?r[s]:e[n]),n++,s++;else if(i&&e[n]==="**"&&r[s]===e[n+1])o.push(e[n]),n++;else if(i&&r[s]==="**"&&e[n]===r[s+1])o.push(r[s]),s++;else if(e[n]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(a==="b")return!1;a="a",o.push(e[n]),n++,s++}else if(r[s]==="*"&&e[n]&&(this.options.dot||!e[n].startsWith("."))&&e[n]!=="**"){if(a==="a")return!1;a="b",o.push(r[s]),n++,s++}else return!1;return e.length===r.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,r=!1,i=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++)r=!r,i++;i&&(this.pattern=e.slice(i)),this.negate=r}matchOne(e,r,i=!1){let n=0,s=0;if(this.isWindows){let a=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),l=!a&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),u=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),f=!u&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),c=l?3:a?0:void 0,h=f?3:u?0:void 0;if(typeof c=="number"&&typeof h=="number"){let[d,y]=[e[c],r[h]];d.toLowerCase()===y.toLowerCase()&&(r[h]=d,s=h,n=c)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),r.includes(I.GLOBSTAR)?this.#e(e,r,i,n,s):this.#n(e,r,i,n,s)}#e(e,r,i,n,s){let o=r.indexOf(I.GLOBSTAR,s),a=r.lastIndexOf(I.GLOBSTAR),[l,u,f]=i?[r.slice(s,o),r.slice(o+1),[]]:[r.slice(s,o),r.slice(o+1,a),r.slice(a+1)];if(l.length){let b=e.slice(n,n+l.length);if(!this.#n(b,l,i,0,0))return!1;n+=l.length}let c=0;if(f.length){if(f.length+n>e.length)return!1;let b=e.length-f.length;if(this.#n(e,f,i,b,0))c=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||(b--,!this.#n(e,f,i,b,0)))return!1;c=f.length+1}}if(!u.length){let b=!!c;for(let v=n;v<e.length-c;v++){let E=String(e[v]);if(b=!0,E==="."||E===".."||!this.options.dot&&E.startsWith("."))return!1}return i||b}let h=[[[],0]],d=h[0],y=0,p=[0];for(let b of u)b===I.GLOBSTAR?(p.push(y),d=[[],0],h.push(d)):(d[0].push(b),y++);let S=h.length-1,m=e.length-c;for(let b of h)b[1]=m-(p[S--]+b[0].length);return!!this.#r(e,h,n,0,i,0,!!c)}#r(e,r,i,n,s,o,a){let l=r[n];if(!l){for(let c=i;c<e.length;c++){a=!0;let h=e[c];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1}return a}let[u,f]=l;for(;i<=f;){if(this.#n(e.slice(0,i+u.length),u,s,i,0)&&o<this.maxGlobstarRecursion){let d=this.#r(e,r,i+u.length,n+1,s,o+1,a);if(d!==!1)return d}let h=e[i];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1;i++}return s||null}#n(e,r,i,n,s){let o,a,l,u;for(o=n,a=s,u=e.length,l=r.length;o<u&&a<l;o++,a++){this.debug("matchOne loop");let f=r[a],c=e[o];if(this.debug(r,f,c),f===!1||f===I.GLOBSTAR)return!1;let h;if(typeof f=="string"?(h=c===f,this.debug("string match",f,c,h)):(h=f.test(c),this.debug("pattern match",f,c,h)),!h)return!1}if(o===u&&a===l)return!0;if(o===u)return i;if(a===l)return o===u-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,I.braceExpand)(this.pattern,this.options)}parse(e){(0,ho.assertValidPattern)(e);let r=this.options;if(e==="**")return I.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(zM))?n=r.dot?HM:$M:(i=e.match(CM))?n=(r.nocase?r.dot?FM:qM:r.dot?MM:kM)(i[1]):(i=e.match(VM))?n=(r.nocase?r.dot?KM:YM:r.dot?ZM:QM)(i):(i=e.match(jM))?n=r.dot?UM:BM:(i=e.match(WM))&&(n=GM);let s=Qw.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:n}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,i=r.noglobstar?JM:r.dot?e2:t2,n=new Set(r.nocase?["i"]:[]),s=e.map(l=>{let u=l.map(f=>{if(f instanceof RegExp)for(let c of f.flags.split(""))n.add(c);return typeof f=="string"?a2(f):f===I.GLOBSTAR?I.GLOBSTAR:f._src});return u.forEach((f,c)=>{let h=u[c+1],d=u[c-1];f!==I.GLOBSTAR||d===I.GLOBSTAR||(d===void 0?h!==void 0&&h!==I.GLOBSTAR?u[c+1]="(?:\\/|"+i+"\\/)?"+h:u[c]=i:h===void 0?u[c-1]=d+"(?:\\/|"+i+")?":h!==I.GLOBSTAR&&(u[c-1]=d+"(?:\\/|\\/"+i+"\\/)"+h,u[c+1]=I.GLOBSTAR))}),u.filter(f=>f!==I.GLOBSTAR).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let o=n[n.length-1];if(!o)for(let a=n.length-2;!o&&a>=0;a--)o=n[a];for(let a=0;a<s.length;a++){let l=s[a],u=n;if(i.matchBase&&l.length===1&&(u=[o]),this.matchOne(u,l,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return I.minimatch.defaults(e).Minimatch}};I.Minimatch=hr;var l2=Zu();Object.defineProperty(I,"AST",{enumerable:!0,get:function(){return l2.AST}});var u2=Qu();Object.defineProperty(I,"escape",{enumerable:!0,get:function(){return u2.escape}});var f2=oo();Object.defineProperty(I,"unescape",{enumerable:!0,get:function(){return f2.unescape}});I.minimatch.AST=Qw.AST;I.minimatch.Minimatch=hr;I.minimatch.escape=PM.escape;I.minimatch.unescape=LM.unescape});var s0=g(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.LRUCache=void 0;var Xr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,r0=new Set,Xu=typeof process=="object"&&process?process:{},i0=(t,e,r,i)=>{typeof Xu.emitWarning=="function"?Xu.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},po=globalThis.AbortController,t0=globalThis.AbortSignal;if(typeof po>"u"){t0=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},po=class{constructor(){e()}signal=new t0;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let n of this.signal._onabort)n(i);this.signal.onabort?.(i)}}};let t=Xu.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,i0("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var c2=t=>!r0.has(t),Ft=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),n0=t=>Ft(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Jr:null:null,Jr=class extends Array{constructor(e){super(e),this.fill(0)}},Ju=class t{heap;length;static#e=!1;static create(e){let r=n0(e);if(!r)return[];t.#e=!0;let i=new t(e,r);return t.#e=!1,i}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},ef=class t{#e;#r;#n;#t;#o;#S;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#u;#c;#l;#a;#s;#y;#m;#g;#d;#E;#p;#x;#T;#_;#v;#b;#h;static unsafeExposeInternals(e){return{starts:e.#T,ttls:e.#_,sizes:e.#x,keyMap:e.#l,keyList:e.#a,valList:e.#s,next:e.#y,prev:e.#m,get head(){return e.#g},get tail(){return e.#d},free:e.#E,isBackgroundFetch:r=>e.#f(r),backgroundFetch:(r,i,n,s)=>e.#F(r,i,n,s),moveToTail:r=>e.#B(r),indexes:r=>e.#O(r),rindexes:r=>e.#I(r),isStale:r=>e.#w(r)}}get max(){return this.#e}get maxSize(){return this.#r}get calculatedSize(){return this.#c}get size(){return this.#u}get fetchMethod(){return this.#o}get memoMethod(){return this.#S}get dispose(){return this.#n}get disposeAfter(){return this.#t}constructor(e){let{max:r=0,ttl:i,ttlResolution:n=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:u,disposeAfter:f,noDisposeOnSet:c,noUpdateTTL:h,maxSize:d=0,maxEntrySize:y=0,sizeCalculation:p,fetchMethod:S,memoMethod:m,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:v,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:T,ignoreFetchAbort:P}=e;if(r!==0&&!Ft(r))throw new TypeError("max option must be a nonnegative integer");let x=r?n0(r):Array;if(!x)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=d,this.maxEntrySize=y||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(m!==void 0&&typeof m!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#S=m,S!==void 0&&typeof S!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=S,this.#b=!!S,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=!!E,this.allowStaleOnFetchAbort=!!T,this.ignoreFetchAbort=!!P,this.maxEntrySize!==0){if(this.#r!==0&&!Ft(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!Ft(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#D()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!v,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=Ft(n)||n===0?n:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!Ft(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#R()}if(this.#e===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#r){let O="LRU_CACHE_UNBOUNDED";c2(O)&&(r0.add(O),i0("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",O,t))}}getRemainingTTL(e){return this.#l.has(e)?1/0:0}#R(){let e=new Jr(this.#e),r=new Jr(this.#e);this.#_=e,this.#T=r,this.#L=(s,o,a=Xr.now())=>{if(r[s]=o!==0?a:0,e[s]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#w(s)&&this.#P(this.#a[s],"expire")},o+1);l.unref&&l.unref()}},this.#A=s=>{r[s]=e[s]!==0?Xr.now():0},this.#i=(s,o)=>{if(e[o]){let a=e[o],l=r[o];if(!a||!l)return;s.ttl=a,s.start=l,s.now=i||n();let u=s.now-l;s.remainingTTL=a-u}};let i=0,n=()=>{let s=Xr.now();if(this.ttlResolution>0){i=s;let o=setTimeout(()=>i=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#l.get(s);if(o===void 0)return 0;let a=e[o],l=r[o];if(!a||!l)return 1/0;let u=(i||n())-l;return a-u},this.#w=s=>{let o=r[s],a=e[s];return!!a&&!!o&&(i||n())-o>a}}#A=()=>{};#i=()=>{};#L=()=>{};#w=()=>!1;#D(){let e=new Jr(this.#e);this.#c=0,this.#x=e,this.#N=r=>{this.#c-=e[r],e[r]=0},this.#k=(r,i,n,s)=>{if(this.#f(i))return 0;if(!Ft(n))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(n=s(i,r),!Ft(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.#C=(r,i,n)=>{if(e[r]=i,this.#r){let s=this.#r-e[r];for(;this.#c>s;)this.#q(!0)}this.#c+=e[r],n&&(n.entrySize=i,n.totalCalculatedSize=this.#c)}}#N=e=>{};#C=(e,r,i)=>{};#k=(e,r,i,n)=>{if(i||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#O({allowStale:e=this.allowStale}={}){if(this.#u)for(let r=this.#d;!(!this.#M(r)||((e||!this.#w(r))&&(yield r),r===this.#g));)r=this.#m[r]}*#I({allowStale:e=this.allowStale}={}){if(this.#u)for(let r=this.#g;!(!this.#M(r)||((e||!this.#w(r))&&(yield r),r===this.#d));)r=this.#y[r]}#M(e){return e!==void 0&&this.#l.get(this.#a[e])===e}*entries(){for(let e of this.#O())this.#s[e]!==void 0&&this.#a[e]!==void 0&&!this.#f(this.#s[e])&&(yield[this.#a[e],this.#s[e]])}*rentries(){for(let e of this.#I())this.#s[e]!==void 0&&this.#a[e]!==void 0&&!this.#f(this.#s[e])&&(yield[this.#a[e],this.#s[e]])}*keys(){for(let e of this.#O()){let r=this.#a[e];r!==void 0&&!this.#f(this.#s[e])&&(yield r)}}*rkeys(){for(let e of this.#I()){let r=this.#a[e];r!==void 0&&!this.#f(this.#s[e])&&(yield r)}}*values(){for(let e of this.#O())this.#s[e]!==void 0&&!this.#f(this.#s[e])&&(yield this.#s[e])}*rvalues(){for(let e of this.#I())this.#s[e]!==void 0&&!this.#f(this.#s[e])&&(yield this.#s[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,r={}){for(let i of this.#O()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;if(s!==void 0&&e(s,this.#a[i],this))return this.get(this.#a[i],r)}}forEach(e,r=this){for(let i of this.#O()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&e.call(r,s,this.#a[i],this)}}rforEach(e,r=this){for(let i of this.#I()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&e.call(r,s,this.#a[i],this)}}purgeStale(){let e=!1;for(let r of this.#I({allowStale:!0}))this.#w(r)&&(this.#P(this.#a[r],"expire"),e=!0);return e}info(e){let r=this.#l.get(e);if(r===void 0)return;let i=this.#s[r],n=this.#f(i)?i.__staleWhileFetching:i;if(n===void 0)return;let s={value:n};if(this.#_&&this.#T){let o=this.#_[r],a=this.#T[r];if(o&&a){let l=o-(Xr.now()-a);s.ttl=l,s.start=Date.now()}}return this.#x&&(s.size=this.#x[r]),s}dump(){let e=[];for(let r of this.#O({allowStale:!0})){let i=this.#a[r],n=this.#s[r],s=this.#f(n)?n.__staleWhileFetching:n;if(s===void 0||i===void 0)continue;let o={value:s};if(this.#_&&this.#T){o.ttl=this.#_[r];let a=Xr.now()-this.#T[r];o.start=Math.floor(Date.now()-a)}this.#x&&(o.size=this.#x[r]),e.unshift([i,o])}return e}load(e){this.clear();for(let[r,i]of e){if(i.start){let n=Date.now()-i.start;i.start=Xr.now()-n}this.set(r,i.value,i)}}set(e,r,i={}){if(r===void 0)return this.delete(e),this;let{ttl:n=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=i,{noUpdateTTL:u=this.noUpdateTTL}=i,f=this.#k(e,r,i.size||0,a);if(this.maxEntrySize&&f>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#P(e,"set"),this;let c=this.#u===0?void 0:this.#l.get(e);if(c===void 0)c=this.#u===0?this.#d:this.#E.length!==0?this.#E.pop():this.#u===this.#e?this.#q(!1):this.#u,this.#a[c]=e,this.#s[c]=r,this.#l.set(e,c),this.#y[this.#d]=c,this.#m[c]=this.#d,this.#d=c,this.#u++,this.#C(c,f,l),l&&(l.set="add"),u=!1;else{this.#B(c);let h=this.#s[c];if(r!==h){if(this.#b&&this.#f(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=h;d!==void 0&&!o&&(this.#v&&this.#n?.(d,e,"set"),this.#h&&this.#p?.push([d,e,"set"]))}else o||(this.#v&&this.#n?.(h,e,"set"),this.#h&&this.#p?.push([h,e,"set"]));if(this.#N(c),this.#C(c,f,l),this.#s[c]=r,l){l.set="replace";let d=h&&this.#f(h)?h.__staleWhileFetching:h;d!==void 0&&(l.oldValue=d)}}else l&&(l.set="update")}if(n!==0&&!this.#_&&this.#R(),this.#_&&(u||this.#L(c,n,s),l&&this.#i(l,c)),!o&&this.#h&&this.#p){let h=this.#p,d;for(;d=h?.shift();)this.#t?.(...d)}return this}pop(){try{for(;this.#u;){let e=this.#s[this.#g];if(this.#q(!0),this.#f(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#h&&this.#p){let e=this.#p,r;for(;r=e?.shift();)this.#t?.(...r)}}}#q(e){let r=this.#g,i=this.#a[r],n=this.#s[r];return this.#b&&this.#f(n)?n.__abortController.abort(new Error("evicted")):(this.#v||this.#h)&&(this.#v&&this.#n?.(n,i,"evict"),this.#h&&this.#p?.push([n,i,"evict"])),this.#N(r),e&&(this.#a[r]=void 0,this.#s[r]=void 0,this.#E.push(r)),this.#u===1?(this.#g=this.#d=0,this.#E.length=0):this.#g=this.#y[r],this.#l.delete(i),this.#u--,r}has(e,r={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:n}=r,s=this.#l.get(e);if(s!==void 0){let o=this.#s[s];if(this.#f(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#w(s))n&&(n.has="stale",this.#i(n,s));else return i&&this.#A(s),n&&(n.has="hit",this.#i(n,s)),!0}else n&&(n.has="miss");return!1}peek(e,r={}){let{allowStale:i=this.allowStale}=r,n=this.#l.get(e);if(n===void 0||!i&&this.#w(n))return;let s=this.#s[n];return this.#f(s)?s.__staleWhileFetching:s}#F(e,r,i,n){let s=r===void 0?void 0:this.#s[r];if(this.#f(s))return s;let o=new po,{signal:a}=i;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:i,context:n},u=(p,S=!1)=>{let{aborted:m}=o.signal,b=i.ignoreFetchAbort&&p!==void 0;if(i.status&&(m&&!S?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,b&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),m&&!b&&!S)return c(o.signal.reason);let v=d;return this.#s[r]===d&&(p===void 0?v.__staleWhileFetching?this.#s[r]=v.__staleWhileFetching:this.#P(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,p,l.options))),p},f=p=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=p),c(p)),c=p=>{let{aborted:S}=o.signal,m=S&&i.allowStaleOnFetchAbort,b=m||i.allowStaleOnFetchRejection,v=b||i.noDeleteOnFetchRejection,E=d;if(this.#s[r]===d&&(!v||E.__staleWhileFetching===void 0?this.#P(e,"fetch"):m||(this.#s[r]=E.__staleWhileFetching)),b)return i.status&&E.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),E.__staleWhileFetching;if(E.__returned===E)throw p},h=(p,S)=>{let m=this.#o?.(e,s,l);m&&m instanceof Promise&&m.then(b=>p(b===void 0?void 0:b),S),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),y=Object.assign(d,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(e,y,{...l.options,status:void 0}),r=this.#l.get(e)):this.#s[r]=y,y}#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:y=this.allowStaleOnFetchAbort,context:p,forceRefresh:S=!1,status:m,signal:b}=r;if(!this.#b)return m&&(m.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:m});let v={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:u,noUpdateTTL:f,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:y,ignoreFetchAbort:d,status:m,signal:b},E=this.#l.get(e);if(E===void 0){m&&(m.fetch="miss");let T=this.#F(e,E,v,p);return T.__returned=T}else{let T=this.#s[E];if(this.#f(T)){let R=i&&T.__staleWhileFetching!==void 0;return m&&(m.fetch="inflight",R&&(m.returnedStale=!0)),R?T.__staleWhileFetching:T.__returned=T}let P=this.#w(E);if(!S&&!P)return m&&(m.fetch="hit"),this.#B(E),n&&this.#A(E),m&&this.#i(m,E),T;let x=this.#F(e,E,v,p),w=x.__staleWhileFetching!==void 0&&i;return m&&(m.fetch=P?"stale":"refresh",w&&P&&(m.returnedStale=!0)),w?x.__staleWhileFetching:x.__returned=x}}async forceFetch(e,r={}){let i=await this.fetch(e,r);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(e,r={}){let i=this.#S;if(!i)throw new Error("no memoMethod provided to constructor");let{context:n,forceRefresh:s,...o}=r,a=this.get(e,o);if(!s&&a!==void 0)return a;let l=i(e,a,{options:o,context:n});return this.set(e,l,o),l}get(e,r={}){let{allowStale:i=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,a=this.#l.get(e);if(a!==void 0){let l=this.#s[a],u=this.#f(l);return o&&this.#i(o,a),this.#w(a)?(o&&(o.get="stale"),u?(o&&i&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),i?l.__staleWhileFetching:void 0):(s||this.#P(e,"expire"),o&&i&&(o.returnedStale=!0),i?l:void 0)):(o&&(o.get="hit"),u?l.__staleWhileFetching:(this.#B(a),n&&this.#A(a),l))}else o&&(o.get="miss")}#j(e,r){this.#m[r]=e,this.#y[e]=r}#B(e){e!==this.#d&&(e===this.#g?this.#g=this.#y[e]:this.#j(this.#m[e],this.#y[e]),this.#j(this.#d,e),this.#d=e)}delete(e){return this.#P(e,"delete")}#P(e,r){let i=!1;if(this.#u!==0){let n=this.#l.get(e);if(n!==void 0)if(i=!0,this.#u===1)this.#U(r);else{this.#N(n);let s=this.#s[n];if(this.#f(s)?s.__abortController.abort(new Error("deleted")):(this.#v||this.#h)&&(this.#v&&this.#n?.(s,e,r),this.#h&&this.#p?.push([s,e,r])),this.#l.delete(e),this.#a[n]=void 0,this.#s[n]=void 0,n===this.#d)this.#d=this.#m[n];else if(n===this.#g)this.#g=this.#y[n];else{let o=this.#m[n];this.#y[o]=this.#y[n];let a=this.#y[n];this.#m[a]=this.#m[n]}this.#u--,this.#E.push(n)}}if(this.#h&&this.#p?.length){let n=this.#p,s;for(;s=n?.shift();)this.#t?.(...s)}return i}clear(){return this.#U("delete")}#U(e){for(let r of this.#I({allowStale:!0})){let i=this.#s[r];if(this.#f(i))i.__abortController.abort(new Error("deleted"));else{let n=this.#a[r];this.#v&&this.#n?.(i,n,e),this.#h&&this.#p?.push([i,n,e])}}if(this.#l.clear(),this.#s.fill(void 0),this.#a.fill(void 0),this.#_&&this.#T&&(this.#_.fill(0),this.#T.fill(0)),this.#x&&this.#x.fill(0),this.#g=0,this.#d=0,this.#E.length=0,this.#c=0,this.#u=0,this.#h&&this.#p){let r=this.#p,i;for(;i=r?.shift();)this.#t?.(...i)}}};go.LRUCache=ef});var uf=g(De=>{"use strict";var h2=De&&De.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(De,"__esModule",{value:!0});De.Minipass=De.isWritable=De.isReadable=De.isStream=void 0;var o0=typeof process=="object"&&process?process:{stdout:null,stderr:null},lf=D("events"),f0=h2(D("stream")),d2=D("string_decoder"),p2=t=>!!t&&typeof t=="object"&&(t instanceof Eo||t instanceof f0.default||(0,De.isReadable)(t)||(0,De.isWritable)(t));De.isStream=p2;var g2=t=>!!t&&typeof t=="object"&&t instanceof lf.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==f0.default.Writable.prototype.pipe;De.isReadable=g2;var _2=t=>!!t&&typeof t=="object"&&t instanceof lf.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";De.isWritable=_2;var St=Symbol("EOF"),Et=Symbol("maybeEmitEnd"),jt=Symbol("emittedEnd"),_o=Symbol("emittingEnd"),on=Symbol("emittedError"),yo=Symbol("closed"),a0=Symbol("read"),mo=Symbol("flush"),l0=Symbol("flushChunk"),Ke=Symbol("encoding"),ei=Symbol("decoder"),de=Symbol("flowing"),an=Symbol("paused"),ti=Symbol("resume"),pe=Symbol("buffer"),Ie=Symbol("pipes"),ge=Symbol("bufferLength"),tf=Symbol("bufferPush"),bo=Symbol("bufferShift"),Re=Symbol("objectMode"),le=Symbol("destroyed"),rf=Symbol("error"),nf=Symbol("emitData"),u0=Symbol("emitEnd"),sf=Symbol("emitEnd2"),at=Symbol("async"),of=Symbol("abort"),wo=Symbol("aborted"),ln=Symbol("signal"),dr=Symbol("dataListeners"),Ce=Symbol("discarded"),un=t=>Promise.resolve().then(t),y2=t=>t(),m2=t=>t==="end"||t==="finish"||t==="prefinish",b2=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,w2=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),So=class{src;dest;opts;ondrain;constructor(e,r,i){this.src=e,this.dest=r,this.opts=i,this.ondrain=()=>e[ti](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},af=class extends So{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,i){super(e,r,i),this.proxyErrors=n=>this.dest.emit("error",n),e.on("error",this.proxyErrors)}},S2=t=>!!t.objectMode,E2=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",Eo=class extends lf.EventEmitter{[de]=!1;[an]=!1;[Ie]=[];[pe]=[];[Re];[Ke];[at];[ei];[St]=!1;[jt]=!1;[_o]=!1;[yo]=!1;[on]=null;[ge]=0;[le]=!1;[ln];[wo]=!1;[dr]=0;[Ce]=!1;writable=!0;readable=!0;constructor(...e){let r=e[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");S2(r)?(this[Re]=!0,this[Ke]=null):E2(r)?(this[Ke]=r.encoding,this[Re]=!1):(this[Re]=!1,this[Ke]=null),this[at]=!!r.async,this[ei]=this[Ke]?new d2.StringDecoder(this[Ke]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[pe]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Ie]});let{signal:i}=r;i&&(this[ln]=i,i.aborted?this[of]():i.addEventListener("abort",()=>this[of]()))}get bufferLength(){return this[ge]}get encoding(){return this[Ke]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Re]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[at]}set async(e){this[at]=this[at]||!!e}[of](){this[wo]=!0,this.emit("abort",this[ln]?.reason),this.destroy(this[ln]?.reason)}get aborted(){return this[wo]}set aborted(e){}write(e,r,i){if(this[wo])return!1;if(this[St])throw new Error("write after end");if(this[le])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[at]?un:y2;if(!this[Re]&&!Buffer.isBuffer(e)){if(w2(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(b2(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Re]?(this[de]&&this[ge]!==0&&this[mo](!0),this[de]?this.emit("data",e):this[tf](e),this[ge]!==0&&this.emit("readable"),i&&n(i),this[de]):e.length?(typeof e=="string"&&!(r===this[Ke]&&!this[ei]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ke]&&(e=this[ei].write(e)),this[de]&&this[ge]!==0&&this[mo](!0),this[de]?this.emit("data",e):this[tf](e),this[ge]!==0&&this.emit("readable"),i&&n(i),this[de]):(this[ge]!==0&&this.emit("readable"),i&&n(i),this[de])}read(e){if(this[le])return null;if(this[Ce]=!1,this[ge]===0||e===0||e&&e>this[ge])return this[Et](),null;this[Re]&&(e=null),this[pe].length>1&&!this[Re]&&(this[pe]=[this[Ke]?this[pe].join(""):Buffer.concat(this[pe],this[ge])]);let r=this[a0](e||null,this[pe][0]);return this[Et](),r}[a0](e,r){if(this[Re])this[bo]();else{let i=r;e===i.length||e===null?this[bo]():typeof i=="string"?(this[pe][0]=i.slice(e),r=i.slice(0,e),this[ge]-=e):(this[pe][0]=i.subarray(e),r=i.subarray(0,e),this[ge]-=e)}return this.emit("data",r),!this[pe].length&&!this[St]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=void 0),typeof r=="function"&&(i=r,r="utf8"),e!==void 0&&this.write(e,r),i&&this.once("end",i),this[St]=!0,this.writable=!1,(this[de]||!this[an])&&this[Et](),this}[ti](){this[le]||(!this[dr]&&!this[Ie].length&&(this[Ce]=!0),this[an]=!1,this[de]=!0,this.emit("resume"),this[pe].length?this[mo]():this[St]?this[Et]():this.emit("drain"))}resume(){return this[ti]()}pause(){this[de]=!1,this[an]=!0,this[Ce]=!1}get destroyed(){return this[le]}get flowing(){return this[de]}get paused(){return this[an]}[tf](e){this[Re]?this[ge]+=1:this[ge]+=e.length,this[pe].push(e)}[bo](){return this[Re]?this[ge]-=1:this[ge]-=this[pe][0].length,this[pe].shift()}[mo](e=!1){do;while(this[l0](this[bo]())&&this[pe].length);!e&&!this[pe].length&&!this[St]&&this.emit("drain")}[l0](e){return this.emit("data",e),this[de]}pipe(e,r){if(this[le])return e;this[Ce]=!1;let i=this[jt];return r=r||{},e===o0.stdout||e===o0.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Ie].push(r.proxyErrors?new af(this,e,r):new So(this,e,r)),this[at]?un(()=>this[ti]()):this[ti]()),e}unpipe(e){let r=this[Ie].find(i=>i.dest===e);r&&(this[Ie].length===1?(this[de]&&this[dr]===0&&(this[de]=!1),this[Ie]=[]):this[Ie].splice(this[Ie].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);if(e==="data")this[Ce]=!1,this[dr]++,!this[Ie].length&&!this[de]&&this[ti]();else if(e==="readable"&&this[ge]!==0)super.emit("readable");else if(m2(e)&&this[jt])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[on]){let n=r;this[at]?un(()=>n.call(this,this[on])):n.call(this,this[on])}return i}removeListener(e,r){return this.off(e,r)}off(e,r){let i=super.off(e,r);return e==="data"&&(this[dr]=this.listeners("data").length,this[dr]===0&&!this[Ce]&&!this[Ie].length&&(this[de]=!1)),i}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[dr]=0,!this[Ce]&&!this[Ie].length&&(this[de]=!1)),r}get emittedEnd(){return this[jt]}[Et](){!this[_o]&&!this[jt]&&!this[le]&&this[pe].length===0&&this[St]&&(this[_o]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[yo]&&this.emit("close"),this[_o]=!1)}emit(e,...r){let i=r[0];if(e!=="error"&&e!=="close"&&e!==le&&this[le])return!1;if(e==="data")return!this[Re]&&!i?!1:this[at]?(un(()=>this[nf](i)),!0):this[nf](i);if(e==="end")return this[u0]();if(e==="close"){if(this[yo]=!0,!this[jt]&&!this[le])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[on]=i,super.emit(rf,i);let s=!this[ln]||this.listeners("error").length?super.emit("error",i):!1;return this[Et](),s}else if(e==="resume"){let s=super.emit("resume");return this[Et](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,...r);return this[Et](),n}[nf](e){for(let i of this[Ie])i.dest.write(e)===!1&&this.pause();let r=this[Ce]?!1:super.emit("data",e);return this[Et](),r}[u0](){return this[jt]?!1:(this[jt]=!0,this.readable=!1,this[at]?(un(()=>this[sf]()),!0):this[sf]())}[sf](){if(this[ei]){let r=this[ei].end();if(r){for(let i of this[Ie])i.dest.write(r);this[Ce]||super.emit("data",r)}}for(let r of this[Ie])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[Re]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Re]||(e.dataLength+=i.length)}),await r,e}async concat(){if(this[Re])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Ke]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,r)=>{this.on(le,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[Ce]=!1;let e=!1,r=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return r();let n=this.read();if(n!==null)return Promise.resolve({done:!1,value:n});if(this[St])return r();let s,o,a=c=>{this.off("data",l),this.off("end",u),this.off(le,f),r(),o(c)},l=c=>{this.off("error",a),this.off("end",u),this.off(le,f),this.pause(),s({value:c,done:!!this[St]})},u=()=>{this.off("error",a),this.off("data",l),this.off(le,f),r(),s({done:!0,value:void 0})},f=()=>a(new Error("stream destroyed"));return new Promise((c,h)=>{o=h,s=c,this.once(le,f),this.once("error",a),this.once("end",u),this.once("data",l)})},throw:r,return:r,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[Ce]=!1;let e=!1,r=()=>(this.pause(),this.off(rf,r),this.off(le,r),this.off("end",r),e=!0,{done:!0,value:void 0}),i=()=>{if(e)return r();let n=this.read();return n===null?r():{done:!1,value:n}};return this.once("end",r),this.once(rf,r),this.once(le,r),{next:i,throw:r,return:r,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[le])return e?this.emit("error",e):this.emit(le),this;this[le]=!0,this[Ce]=!0,this[pe].length=0,this[ge]=0;let r=this;return typeof r.close=="function"&&!this[yo]&&r.close(),e?this.emit("error",e):this.emit(le),this}static get isStream(){return De.isStream}};De.Minipass=Eo});var T0=g(H=>{"use strict";var v2=H&&H.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),x2=H&&H.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),T2=H&&H.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&v2(e,t,r);return x2(e,t),e};Object.defineProperty(H,"__esModule",{value:!0});H.PathScurry=H.Path=H.PathScurryDarwin=H.PathScurryPosix=H.PathScurryWin32=H.PathScurryBase=H.PathPosix=H.PathWin32=H.PathBase=H.ChildrenCache=H.ResolveCache=void 0;var _0=s0(),Ao=D("path"),R2=D("url"),cn=D("fs"),A2=T2(D("fs")),O2=cn.realpathSync.native,vo=D("fs/promises"),c0=uf(),hn={lstatSync:cn.lstatSync,readdir:cn.readdir,readdirSync:cn.readdirSync,readlinkSync:cn.readlinkSync,realpathSync:O2,promises:{lstat:vo.lstat,readdir:vo.readdir,readlink:vo.readlink,realpath:vo.realpath}},y0=t=>!t||t===hn||t===A2?hn:{...hn,...t,promises:{...hn.promises,...t.promises||{}}},m0=/^\\\\\?\\([a-z]:)\\?$/i,I2=t=>t.replace(/\//g,"\\").replace(m0,"$1\\"),D2=/[\\\/]/,Ge=0,b0=1,w0=2,lt=4,S0=6,E0=8,pr=10,v0=12,We=15,fn=~We,ff=16,h0=32,dn=64,Ze=128,xo=256,Ro=512,d0=dn|Ze|Ro,P2=1023,cf=t=>t.isFile()?E0:t.isDirectory()?lt:t.isSymbolicLink()?pr:t.isCharacterDevice()?w0:t.isBlockDevice()?S0:t.isSocket()?v0:t.isFIFO()?b0:Ge,p0=new Map,pn=t=>{let e=p0.get(t);if(e)return e;let r=t.normalize("NFKD");return p0.set(t,r),r},g0=new Map,To=t=>{let e=g0.get(t);if(e)return e;let r=pn(t.toLowerCase());return g0.set(t,r),r},gn=class extends _0.LRUCache{constructor(){super({max:256})}};H.ResolveCache=gn;var Oo=class extends _0.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:r=>r.length+1})}};H.ChildrenCache=Oo;var x0=Symbol("PathScurry setAsCwd"),Se=class{name;root;roots;parent;nocase;isCWD=!1;#e;#r;get dev(){return this.#r}#n;get mode(){return this.#n}#t;get nlink(){return this.#t}#o;get uid(){return this.#o}#S;get gid(){return this.#S}#u;get rdev(){return this.#u}#c;get blksize(){return this.#c}#l;get ino(){return this.#l}#a;get size(){return this.#a}#s;get blocks(){return this.#s}#y;get atimeMs(){return this.#y}#m;get mtimeMs(){return this.#m}#g;get ctimeMs(){return this.#g}#d;get birthtimeMs(){return this.#d}#E;get atime(){return this.#E}#p;get mtime(){return this.#p}#x;get ctime(){return this.#x}#T;get birthtime(){return this.#T}#_;#v;#b;#h;#R;#A;#i;#L;#w;#D;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,r=Ge,i,n,s,o,a){this.name=e,this.#_=s?To(e):pn(e),this.#i=r&P2,this.nocase=s,this.roots=n,this.root=i||this,this.#L=o,this.#b=a.fullpath,this.#R=a.relative,this.#A=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=y0(a.fs)}depth(){return this.#v!==void 0?this.#v:this.parent?this.#v=this.parent.depth()+1:this.#v=0}childrenCache(){return this.#L}resolve(e){if(!e)return this;let r=this.getRootString(e),n=e.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#N(n):this.#N(n)}#N(e){let r=this;for(let i of e)r=r.child(i);return r}children(){let e=this.#L.get(this);if(e)return e;let r=Object.assign([],{provisional:0});return this.#L.set(this,r),this.#i&=~ff,r}child(e,r){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let i=this.children(),n=this.nocase?To(e):pn(e);for(let l of i)if(l.#_===n)return l;let s=this.parent?this.sep:"",o=this.#b?this.#b+s+e:void 0,a=this.newChild(e,Ge,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#i|=Ze),i.push(a),a}relative(){if(this.isCWD)return"";if(this.#R!==void 0)return this.#R;let e=this.name,r=this.parent;if(!r)return this.#R=this.name;let i=r.relative();return i+(!i||!r.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#A!==void 0)return this.#A;let e=this.name,r=this.parent;if(!r)return this.#A=this.fullpathPosix();let i=r.relativePosix();return i+(!i||!r.parent?"":"/")+e}fullpath(){if(this.#b!==void 0)return this.#b;let e=this.name,r=this.parent;if(!r)return this.#b=this.name;let n=r.fullpath()+(r.parent?this.sep:"")+e;return this.#b=n}fullpathPosix(){if(this.#h!==void 0)return this.#h;if(this.sep==="/")return this.#h=this.fullpath();if(!this.parent){let n=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(n)?this.#h=`//?/${n}`:this.#h=n}let e=this.parent,r=e.fullpathPosix(),i=r+(!r||!e.parent?"":"/")+this.name;return this.#h=i}isUnknown(){return(this.#i&We)===Ge}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#i&We)===E0}isDirectory(){return(this.#i&We)===lt}isCharacterDevice(){return(this.#i&We)===w0}isBlockDevice(){return(this.#i&We)===S0}isFIFO(){return(this.#i&We)===b0}isSocket(){return(this.#i&We)===v0}isSymbolicLink(){return(this.#i&pr)===pr}lstatCached(){return this.#i&h0?this:void 0}readlinkCached(){return this.#w}realpathCached(){return this.#D}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#w)return!0;if(!this.parent)return!1;let e=this.#i&We;return!(e!==Ge&&e!==pr||this.#i&xo||this.#i&Ze)}calledReaddir(){return!!(this.#i&ff)}isENOENT(){return!!(this.#i&Ze)}isNamed(e){return this.nocase?this.#_===To(e):this.#_===pn(e)}async readlink(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),i=(await this.parent.realpath())?.resolve(r);if(i)return this.#w=i}catch(r){this.#f(r.code);return}}readlinkSync(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),i=this.parent.realpathSync()?.resolve(r);if(i)return this.#w=i}catch(r){this.#f(r.code);return}}#C(e){this.#i|=ff;for(let r=e.provisional;r<e.length;r++){let i=e[r];i&&i.#k()}}#k(){this.#i&Ze||(this.#i=(this.#i|Ze)&fn,this.#O())}#O(){let e=this.children();e.provisional=0;for(let r of e)r.#k()}#I(){this.#i|=Ro,this.#M()}#M(){if(this.#i&dn)return;let e=this.#i;(e&We)===lt&&(e&=fn),this.#i=e|dn,this.#O()}#q(e=""){e==="ENOTDIR"||e==="EPERM"?this.#M():e==="ENOENT"?this.#k():this.children().provisional=0}#F(e=""){e==="ENOTDIR"?this.parent.#M():e==="ENOENT"&&this.#k()}#f(e=""){let r=this.#i;r|=xo,e==="ENOENT"&&(r|=Ze),(e==="EINVAL"||e==="UNKNOWN")&&(r&=fn),this.#i=r,e==="ENOTDIR"&&this.parent&&this.parent.#M()}#j(e,r){return this.#P(e,r)||this.#B(e,r)}#B(e,r){let i=cf(e),n=this.newChild(e.name,i,{parent:this}),s=n.#i&We;return s!==lt&&s!==pr&&s!==Ge&&(n.#i|=dn),r.unshift(n),r.provisional++,n}#P(e,r){for(let i=r.provisional;i<r.length;i++){let n=r[i];if((this.nocase?To(e.name):pn(e.name))===n.#_)return this.#U(e,n,i,r)}}#U(e,r,i,n){let s=r.name;return r.#i=r.#i&fn|cf(e),s!==e.name&&(r.name=e.name),i!==n.provisional&&(i===n.length-1?n.pop():n.splice(i,1),n.unshift(r)),n.provisional++,r}async lstat(){if((this.#i&Ze)===0)try{return this.#$(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#F(e.code)}}lstatSync(){if((this.#i&Ze)===0)try{return this.#$(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#F(e.code)}}#$(e){let{atime:r,atimeMs:i,birthtime:n,birthtimeMs:s,blksize:o,blocks:a,ctime:l,ctimeMs:u,dev:f,gid:c,ino:h,mode:d,mtime:y,mtimeMs:p,nlink:S,rdev:m,size:b,uid:v}=e;this.#E=r,this.#y=i,this.#T=n,this.#d=s,this.#c=o,this.#s=a,this.#x=l,this.#g=u,this.#r=f,this.#S=c,this.#l=h,this.#n=d,this.#p=y,this.#m=p,this.#t=S,this.#u=m,this.#a=b,this.#o=v;let E=cf(e);this.#i=this.#i&fn|E|h0,E!==Ge&&E!==lt&&E!==pr&&(this.#i|=dn)}#G=[];#z=!1;#H(e){this.#z=!1;let r=this.#G.slice();this.#G.length=0,r.forEach(i=>i(null,e))}readdirCB(e,r=!1){if(!this.canReaddir()){r?e(null,[]):queueMicrotask(()=>e(null,[]));return}let i=this.children();if(this.calledReaddir()){let s=i.slice(0,i.provisional);r?e(null,s):queueMicrotask(()=>e(null,s));return}if(this.#G.push(e),this.#z)return;this.#z=!0;let n=this.fullpath();this.#e.readdir(n,{withFileTypes:!0},(s,o)=>{if(s)this.#q(s.code),i.provisional=0;else{for(let a of o)this.#j(a,i);this.#C(i)}this.#H(i.slice(0,i.provisional))})}#W;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();if(this.#W)await this.#W;else{let i=()=>{};this.#W=new Promise(n=>i=n);try{for(let n of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#j(n,e);this.#C(e)}catch(n){this.#q(n.code),e.provisional=0}this.#W=void 0,i()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();try{for(let i of this.#e.readdirSync(r,{withFileTypes:!0}))this.#j(i,e);this.#C(e)}catch(i){this.#q(i.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#i&d0)return!1;let e=We&this.#i;return e===Ge||e===lt||e===pr}shouldWalk(e,r){return(this.#i&lt)===lt&&!(this.#i&d0)&&!e.has(this)&&(!r||r(this))}async realpath(){if(this.#D)return this.#D;if(!((Ro|xo|Ze)&this.#i))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#D=this.resolve(e)}catch{this.#I()}}realpathSync(){if(this.#D)return this.#D;if(!((Ro|xo|Ze)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#D=this.resolve(e)}catch{this.#I()}}[x0](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let r=new Set([]),i=[],n=this;for(;n&&n.parent;)r.add(n),n.#R=i.join(this.sep),n.#A=i.join("/"),n=n.parent,i.push("..");for(n=e;n&&n.parent&&!r.has(n);)n.#R=void 0,n.#A=void 0,n=n.parent}};H.PathBase=Se;var _n=class t extends Se{sep="\\";splitSep=D2;constructor(e,r=Ge,i,n,s,o,a){super(e,r,i,n,s,o,a)}newChild(e,r=Ge,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(e){return Ao.win32.parse(e).root}getRoot(e){if(e=I2(e.toUpperCase()),e===this.root.name)return this.root;for(let[r,i]of Object.entries(this.roots))if(this.sameRoot(e,r))return this.roots[e]=i;return this.roots[e]=new bn(e,this).root}sameRoot(e,r=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(m0,"$1\\"),e===r}};H.PathWin32=_n;var yn=class t extends Se{splitSep="/";sep="/";constructor(e,r=Ge,i,n,s,o,a){super(e,r,i,n,s,o,a)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,r=Ge,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}};H.PathPosix=yn;var mn=class{root;rootPath;roots;cwd;#e;#r;#n;nocase;#t;constructor(e=process.cwd(),r,i,{nocase:n,childrenCacheSize:s=16*1024,fs:o=hn}={}){this.#t=y0(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,R2.fileURLToPath)(e));let a=r.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new gn,this.#r=new gn,this.#n=new Oo(s);let l=a.substring(this.rootPath.length).split(i);if(l.length===1&&!l[0]&&l.pop(),n===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=n,this.root=this.newRoot(this.#t),this.roots[this.rootPath]=this.root;let u=this.root,f=l.length-1,c=r.sep,h=this.rootPath,d=!1;for(let y of l){let p=f--;u=u.child(y,{relative:new Array(p).fill("..").join(c),relativePosix:new Array(p).fill("..").join("/"),fullpath:h+=(d?"":c)+y}),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,y)=>{if(d)return h(d);let p=y.length;if(!p)return h();let S=()=>{--p===0&&h()};for(let m of y)(!s||s(m))&&a.push(i?m:m.fullpath()),n&&m.isSymbolicLink()?m.realpath().then(b=>b?.isUnknown()?b.lstat():b).then(b=>b?.shouldWalk(l,o)?u(b,S):S()):m.shouldWalk(l,o)?u(m,S):S()},!0)},f=e;return new Promise((c,h)=>{u(f,d=>{if(d)return h(d);c(a)})})}walkSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(e))&&a.push(i?e:e.fullpath());let l=new Set([e]);for(let u of l){let f=u.readdirSync();for(let c of f){(!s||s(c))&&a.push(i?c:c.fullpath());let h=c;if(c.isSymbolicLink()){if(!(n&&(h=c.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(l,o)&&l.add(h)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,r={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd),this.stream(e,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r;(!s||s(e))&&(yield i?e:e.fullpath());let a=new Set([e]);for(let l of a){let u=l.readdirSync();for(let f of u){(!s||s(f))&&(yield i?f:f.fullpath());let c=f;if(f.isSymbolicLink()){if(!(n&&(c=f.realpathSync())))continue;c.isUnknown()&&c.lstatSync()}c.shouldWalk(a,o)&&a.add(c)}}}stream(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new c0.Minipass({objectMode:!0});(!s||s(e))&&a.write(i?e:e.fullpath());let l=new Set,u=[e],f=0,c=()=>{let h=!1;for(;!h;){let d=u.shift();if(!d){f===0&&a.end();return}f++,l.add(d);let y=(S,m,b=!1)=>{if(S)return a.emit("error",S);if(n&&!b){let v=[];for(let E of m)E.isSymbolicLink()&&v.push(E.realpath().then(T=>T?.isUnknown()?T.lstat():T));if(v.length){Promise.all(v).then(()=>y(null,m,!0));return}}for(let v of m)v&&(!s||s(v))&&(a.write(i?v:v.fullpath())||(h=!0));f--;for(let v of m){let E=v.realpathCached()||v;E.shouldWalk(l,o)&&u.push(E)}h&&!a.flowing?a.once("drain",c):p||c()},p=!0;d.readdirCB(y,!0),p=!1}};return c(),a}streamSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new c0.Minipass({objectMode:!0}),l=new Set;(!s||s(e))&&a.write(i?e:e.fullpath());let u=[e],f=0,c=()=>{let h=!1;for(;!h;){let d=u.shift();if(!d){f===0&&a.end();return}f++,l.add(d);let y=d.readdirSync();for(let p of y)(!s||s(p))&&(a.write(i?p:p.fullpath())||(h=!0));f--;for(let p of y){let S=p;if(p.isSymbolicLink()){if(!(n&&(S=p.realpathSync())))continue;S.isUnknown()&&S.lstatSync()}S.shouldWalk(l,o)&&u.push(S)}}h&&!a.flowing&&a.once("drain",c)};return c(),a}chdir(e=this.cwd){let r=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[x0](r)}};H.PathScurryBase=mn;var bn=class extends mn{sep="\\";constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,Ao.win32,"\\",{...r,nocase:i}),this.nocase=i;for(let n=this.cwd;n;n=n.parent)n.nocase=this.nocase}parseRootPath(e){return Ao.win32.parse(e).root.toUpperCase()}newRoot(e){return new _n(this.rootPath,lt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};H.PathScurryWin32=bn;var wn=class extends mn{sep="/";constructor(e=process.cwd(),r={}){let{nocase:i=!1}=r;super(e,Ao.posix,"/",{...r,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new yn(this.rootPath,lt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};H.PathScurryPosix=wn;var Io=class extends wn{constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,{...r,nocase:i})}};H.PathScurryDarwin=Io;H.Path=process.platform==="win32"?_n:yn;H.PathScurry=process.platform==="win32"?bn:process.platform==="darwin"?Io:wn});var df=g(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.Pattern=void 0;var L2=qt(),N2=t=>t.length>=1,C2=t=>t.length>=1,hf=class t{#e;#r;#n;length;#t;#o;#S;#u;#c;#l;#a=!0;constructor(e,r,i,n){if(!N2(e))throw new TypeError("empty pattern list");if(!C2(r))throw new TypeError("empty glob list");if(r.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,i<0||i>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#r=r,this.#n=i,this.#t=n,this.#n===0){if(this.isUNC()){let[s,o,a,l,...u]=this.#e,[f,c,h,d,...y]=this.#r;u[0]===""&&(u.shift(),y.shift());let p=[s,o,a,l,""].join("/"),S=[f,c,h,d,""].join("/");this.#e=[p,...u],this.#r=[S,...y],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...o]=this.#e,[a,...l]=this.#r;o[0]===""&&(o.shift(),l.shift());let u=s+"/",f=a+"/";this.#e=[u,...o],this.#r=[f,...l],this.length=this.#e.length}}}pattern(){return this.#e[this.#n]}isString(){return typeof this.#e[this.#n]=="string"}isGlobstar(){return this.#e[this.#n]===L2.GLOBSTAR}isRegExp(){return this.#e[this.#n]instanceof RegExp}globString(){return this.#S=this.#S||(this.#n===0?this.isAbsolute()?this.#r[0]+this.#r.slice(1).join("/"):this.#r.join("/"):this.#r.slice(this.#n).join("/"))}hasMore(){return this.length>this.#n+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new t(this.#e,this.#r,this.#n+1,this.#t),this.#o.#l=this.#l,this.#o.#c=this.#c,this.#o.#u=this.#u,this.#o):this.#o=null}isUNC(){let e=this.#e;return this.#c!==void 0?this.#c:this.#c=this.#t==="win32"&&this.#n===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#u!==void 0?this.#u:this.#u=this.#t==="win32"&&this.#n===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#l!==void 0?this.#l:this.#l=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#n===0?e:""}checkFollowGlobstar(){return!(this.#n===0||!this.isGlobstar()||!this.#a)}markFollowGlobstar(){return this.#n===0||!this.isGlobstar()||!this.#a?!1:(this.#a=!1,!0)}};Do.Pattern=hf});var gf=g(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.Ignore=void 0;var R0=qt(),k2=df(),M2=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",pf=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:r,nocase:i,noext:n,noglobstar:s,platform:o=M2}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:r,nocase:i,noext:n,noglobstar:s,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of e)this.add(a)}add(e){let r=new R0.Minimatch(e,this.mmopts);for(let i=0;i<r.set.length;i++){let n=r.set[i],s=r.globParts[i];if(!n||!s)throw new Error("invalid pattern object");for(;n[0]==="."&&s[0]===".";)n.shift(),s.shift();let o=new k2.Pattern(n,s,0,this.platform),a=new R0.Minimatch(o.globString(),this.mmopts),l=s[s.length-1]==="**",u=o.isAbsolute();u?this.absolute.push(a):this.relative.push(a),l&&(u?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(e){let r=e.fullpath(),i=`${r}/`,n=e.relative()||".",s=`${n}/`;for(let o of this.relative)if(o.match(n)||o.match(s))return!0;for(let o of this.absolute)if(o.match(r)||o.match(i))return!0;return!1}childrenIgnored(e){let r=e.fullpath()+"/",i=(e.relative()||".")+"/";for(let n of this.relativeChildren)if(n.match(i))return!0;for(let n of this.absoluteChildren)if(n.match(r))return!0;return!1}};Po.Ignore=pf});var O0=g(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.Processor=ut.SubWalks=ut.MatchRecord=ut.HasWalkedCache=void 0;var A0=qt(),Lo=class t{store;constructor(e=new Map){this.store=e}copy(){return new t(new Map(this.store))}hasWalked(e,r){return this.store.get(e.fullpath())?.has(r.globString())}storeWalked(e,r){let i=e.fullpath(),n=this.store.get(i);n?n.add(r.globString()):this.store.set(i,new Set([r.globString()]))}};ut.HasWalkedCache=Lo;var No=class{store=new Map;add(e,r,i){let n=(r?2:0)|(i?1:0),s=this.store.get(e);this.store.set(e,s===void 0?n:n&s)}entries(){return[...this.store.entries()].map(([e,r])=>[e,!!(r&2),!!(r&1)])}};ut.MatchRecord=No;var Co=class{store=new Map;add(e,r){if(!e.canReaddir())return;let i=this.store.get(e);i?i.find(n=>n.globString()===r.globString())||i.push(r):this.store.set(e,[r])}get(e){let r=this.store.get(e);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};ut.SubWalks=Co;var _f=class t{hasWalkedCache;matches=new No;subwalks=new Co;patterns;follow;dot;opts;constructor(e,r){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=r?r.copy():new Lo}processPatterns(e,r){this.patterns=r;let i=r.map(n=>[e,n]);for(let[n,s]of i){this.hasWalkedCache.storeWalked(n,s);let o=s.root(),a=s.isAbsolute()&&this.opts.absolute!==!1;if(o){n=n.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let c=s.rest();if(c)s=c;else{this.matches.add(n,!0,!1);continue}}if(n.isENOENT())continue;let l,u,f=!1;for(;typeof(l=s.pattern())=="string"&&(u=s.rest());)n=n.resolve(l),s=u,f=!0;if(l=s.pattern(),u=s.rest(),f){if(this.hasWalkedCache.hasWalked(n,s))continue;this.hasWalkedCache.storeWalked(n,s)}if(typeof l=="string"){let c=l===".."||l===""||l===".";this.matches.add(n.resolve(l),a,c);continue}else if(l===A0.GLOBSTAR){(!n.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(n,s);let c=u?.pattern(),h=u?.rest();if(!u||(c===""||c===".")&&!h)this.matches.add(n,a,c===""||c===".");else if(c===".."){let d=n.parent||n;h?this.hasWalkedCache.hasWalked(d,h)||this.subwalks.add(d,h):this.matches.add(d,a,!0)}}else l instanceof RegExp&&this.subwalks.add(n,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(e,r){let i=this.subwalks.get(e),n=this.child();for(let s of r)for(let o of i){let a=o.isAbsolute(),l=o.pattern(),u=o.rest();l===A0.GLOBSTAR?n.testGlobstar(s,o,u,a):l instanceof RegExp?n.testRegExp(s,l,u,a):n.testString(s,l,u,a)}return n}testGlobstar(e,r,i,n){if((this.dot||!e.name.startsWith("."))&&(r.hasMore()||this.matches.add(e,n,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,r):e.isSymbolicLink()&&(i&&r.checkFollowGlobstar()?this.subwalks.add(e,i):r.markFollowGlobstar()&&this.subwalks.add(e,r)))),i){let s=i.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(e,s,i.rest(),n);else if(s===".."){let o=e.parent||e;this.subwalks.add(o,i)}else s instanceof RegExp&&this.testRegExp(e,s,i.rest(),n)}}testRegExp(e,r,i,n){r.test(e.name)&&(i?this.subwalks.add(e,i):this.matches.add(e,n,!1))}testString(e,r,i,n){e.isNamed(r)&&(i?this.subwalks.add(e,i):this.matches.add(e,n,!1))}};ut.Processor=_f});var P0=g(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.GlobStream=Bt.GlobWalker=Bt.GlobUtil=void 0;var q2=uf(),I0=gf(),D0=O0(),F2=(t,e)=>typeof t=="string"?new I0.Ignore([t],e):Array.isArray(t)?new I0.Ignore(t,e):t,Sn=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#r;#n;signal;maxDepth;includeChildMatches;constructor(e,r,i){if(this.patterns=e,this.path=r,this.opts=i,this.#n=!i.posix&&i.platform==="win32"?"\\":"/",this.includeChildMatches=i.includeChildMatches!==!1,(i.ignore||!this.includeChildMatches)&&(this.#r=F2(i.ignore??[],i),!this.includeChildMatches&&typeof this.#r.add!="function")){let n="cannot ignore child matches, ignore lacks add() method.";throw new Error(n)}this.maxDepth=i.maxDepth||1/0,i.signal&&(this.signal=i.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#t(e){return this.seen.has(e)||!!this.#r?.ignored?.(e)}#o(e){return!!this.#r?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e())}async matchCheck(e,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||await e.realpath(),!i)return;e=i}let s=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=await s.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(s,r)}matchCheckTest(e,r){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!r||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#t(e)?e:void 0}matchCheckSync(e,r){if(r&&this.opts.nodir)return;let i;if(this.opts.realpath){if(i=e.realpathCached()||e.realpathSync(),!i)return;e=i}let s=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=s.realpathSync();o&&(o?.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(s,r)}matchFinish(e,r){if(this.#t(e))return;if(!this.includeChildMatches&&this.#r?.add){let s=`${e.relativePosix()}/**`;this.#r.add(s)}let i=this.opts.absolute===void 0?r:this.opts.absolute;this.seen.add(e);let n=this.opts.mark&&e.isDirectory()?this.#n:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(i){let s=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(s+n)}else{let s=this.opts.posix?e.relativePosix():e.relative(),o=this.opts.dotRelative&&!s.startsWith(".."+this.#n)?"."+this.#n:"";this.matchEmit(s?o+s+n:"."+n)}}async match(e,r,i){let n=await this.matchCheck(e,i);n&&this.matchFinish(n,r)}matchSync(e,r,i){let n=this.matchCheckSync(e,i);n&&this.matchFinish(n,r)}walkCB(e,r,i){this.signal?.aborted&&i(),this.walkCB2(e,r,new D0.Processor(this.opts),i)}walkCB2(e,r,i,n){if(this.#o(e))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2(e,r,i,n));return}i.processPatterns(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||(s++,this.match(a,l,u).then(()=>o()));for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirCached();a.calledReaddir()?this.walkCB3(a,l,i,o):a.readdirCB((u,f)=>this.walkCB3(a,f,i,o),!0)}o()}walkCB3(e,r,i,n){i=i.filterEntries(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||(s++,this.match(a,l,u).then(()=>o()));for(let[a,l]of i.subwalks.entries())s++,this.walkCB2(a,l,i.child(),o);o()}walkCBSync(e,r,i){this.signal?.aborted&&i(),this.walkCB2Sync(e,r,new D0.Processor(this.opts),i)}walkCB2Sync(e,r,i,n){if(this.#o(e))return n();if(this.signal?.aborted&&n(),this.paused){this.onResume(()=>this.walkCB2Sync(e,r,i,n));return}i.processPatterns(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||this.matchSync(a,l,u);for(let a of i.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let l=a.readdirSync();this.walkCB3Sync(a,l,i,o)}o()}walkCB3Sync(e,r,i,n){i=i.filterEntries(e,r);let s=1,o=()=>{--s===0&&n()};for(let[a,l,u]of i.matches.entries())this.#t(a)||this.matchSync(a,l,u);for(let[a,l]of i.subwalks.entries())s++,this.walkCB2Sync(a,l,i.child(),o);o()}};Bt.GlobUtil=Sn;var yf=class extends Sn{matches=new Set;constructor(e,r,i){super(e,r,i)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,r)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?r(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};Bt.GlobWalker=yf;var mf=class extends Sn{results;constructor(e,r,i){super(e,r,i),this.results=new q2.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};Bt.GlobStream=mf});var wf=g(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.Glob=void 0;var j2=qt(),B2=D("url"),ko=T0(),U2=df(),Mo=P0(),W2=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",bf=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,r){if(!r)throw new TypeError("glob options required");if(this.withFileTypes=!!r.withFileTypes,this.signal=r.signal,this.follow=!!r.follow,this.dot=!!r.dot,this.dotRelative=!!r.dotRelative,this.nodir=!!r.nodir,this.mark=!!r.mark,r.cwd?(r.cwd instanceof URL||r.cwd.startsWith("file://"))&&(r.cwd=(0,B2.fileURLToPath)(r.cwd)):this.cwd="",this.cwd=r.cwd||"",this.root=r.root,this.magicalBraces=!!r.magicalBraces,this.nobrace=!!r.nobrace,this.noext=!!r.noext,this.realpath=!!r.realpath,this.absolute=r.absolute,this.includeChildMatches=r.includeChildMatches!==!1,this.noglobstar=!!r.noglobstar,this.matchBase=!!r.matchBase,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:1/0,this.stat=!!r.stat,this.ignore=r.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(r.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(l=>l.includes("/")?l:`./**/${l}`)}if(this.pattern=e,this.platform=r.platform||W2,this.opts={...r,platform:this.platform},r.scurry){if(this.scurry=r.scurry,r.nocase!==void 0&&r.nocase!==r.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let l=r.platform==="win32"?ko.PathScurryWin32:r.platform==="darwin"?ko.PathScurryDarwin:r.platform?ko.PathScurryPosix:ko.PathScurry;this.scurry=new l(this.cwd,{nocase:r.nocase,fs:r.fs})}this.nocase=this.scurry.nocase;let i=this.platform==="darwin"||this.platform==="win32",n={...r,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:i,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(l=>new j2.Minimatch(l,n)),[o,a]=s.reduce((l,u)=>(l[0].push(...u.set),l[1].push(...u.globParts),l),[[],[]]);this.patterns=o.map((l,u)=>{let f=a[u];if(!f)throw new Error("invalid pattern object");return new U2.Pattern(l,f,0,this.platform)})}async walk(){return[...await new Mo.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new Mo.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new Mo.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new Mo.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};qo.Glob=bf});var Sf=g(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.hasMagic=void 0;var G2=qt(),z2=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let r of t)if(new G2.Minimatch(r,e).hasMagic())return!0;return!1};Fo.hasMagic=z2});var k0=g(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.glob=U.sync=U.iterate=U.iterateSync=U.stream=U.streamSync=U.Ignore=U.hasMagic=U.Glob=U.unescape=U.escape=void 0;U.globStreamSync=En;U.globStream=Ef;U.globSync=vf;U.globIterateSync=vn;U.globIterate=xf;var L0=qt(),gr=wf(),$2=Sf(),C0=qt();Object.defineProperty(U,"escape",{enumerable:!0,get:function(){return C0.escape}});Object.defineProperty(U,"unescape",{enumerable:!0,get:function(){return C0.unescape}});var H2=wf();Object.defineProperty(U,"Glob",{enumerable:!0,get:function(){return H2.Glob}});var V2=Sf();Object.defineProperty(U,"hasMagic",{enumerable:!0,get:function(){return V2.hasMagic}});var Y2=gf();Object.defineProperty(U,"Ignore",{enumerable:!0,get:function(){return Y2.Ignore}});function En(t,e={}){return new gr.Glob(t,e).streamSync()}function Ef(t,e={}){return new gr.Glob(t,e).stream()}function vf(t,e={}){return new gr.Glob(t,e).walkSync()}async function N0(t,e={}){return new gr.Glob(t,e).walk()}function vn(t,e={}){return new gr.Glob(t,e).iterateSync()}function xf(t,e={}){return new gr.Glob(t,e).iterate()}U.streamSync=En;U.stream=Object.assign(Ef,{sync:En});U.iterateSync=vn;U.iterate=Object.assign(xf,{sync:vn});U.sync=Object.assign(vf,{stream:En,iterate:vn});U.glob=Object.assign(N0,{glob:N0,globSync:vf,sync:U.sync,globStream:Ef,stream:U.stream,globStreamSync:En,streamSync:U.streamSync,globIterate:xf,iterate:U.iterate,globIterateSync:vn,iterateSync:U.iterateSync,Glob:gr.Glob,hasMagic:$2.hasMagic,escape:L0.escape,unescape:L0.unescape});U.glob.glob=U.glob});var j0=g((aU,F0)=>{"use strict";var q0=$a(),ri=D("path"),Tf=lb(),K2=vw(),Z2=Cw(),Q2=Uw(),X2=k0(),_r=F0.exports={},M0=/[\/\\]/g,J2=function(t,e){var r=[];return Tf(t).forEach(function(i){var n=i.indexOf("!")===0;n&&(i=i.slice(1));var s=e(i);n?r=K2(r,s):r=Z2(r,s)}),r};_r.exists=function(){var t=ri.join.apply(ri,arguments);return q0.existsSync(t)};_r.expand=function(...t){var e=Q2(t[0])?t.shift():{},r=Array.isArray(t[0])?t[0]:t;if(r.length===0)return[];var i=J2(r,function(n){return X2.sync(n,e)});return e.filter&&(i=i.filter(function(n){n=ri.join(e.cwd||"",n);try{return typeof e.filter=="function"?e.filter(n):q0.statSync(n)[e.filter]()}catch{return!1}})),i};_r.expandMapping=function(t,e,r){r=Object.assign({rename:function(s,o){return ri.join(s||"",o)}},r);var i=[],n={};return _r.expand(r,t).forEach(function(s){var o=s;r.flatten&&(o=ri.basename(o)),r.ext&&(o=o.replace(/(\.[^\/]*)?$/,r.ext));var a=r.rename(e,o,r);r.cwd&&(s=ri.join(r.cwd,s)),a=a.replace(M0,"/"),s=s.replace(M0,"/"),n[a]?n[a].src.push(s):(i.push({src:[s],dest:a}),n[a]=i[i.length-1])}),i};_r.normalizeFilesArray=function(t){var e=[];return t.forEach(function(r){var i;("src"in r||"dest"in r)&&e.push(r)}),e.length===0?[]:(e=_(e).chain().forEach(function(r){!("src"in r)||!r.src||(Array.isArray(r.src)?r.src=Tf(r.src):r.src=[r.src])}).map(function(r){var i=Object.assign({},r);if(delete i.src,delete i.dest,r.expand)return _r.expandMapping(r.src,r.dest,i).map(function(s){var o=Object.assign({},r);return o.orig=Object.assign({},r),o.src=s.src,o.dest=s.dest,["expand","cwd","flatten","rename","ext"].forEach(function(a){delete o[a]}),o});var n=Object.assign({},r);return n.orig=Object.assign({},r),"src"in n&&Object.defineProperty(n,"src",{enumerable:!0,get:function s(){var o;return"result"in s||(o=r.src,o=Array.isArray(o)?Tf(o):[o],s.result=_r.expand(i,o)),s.result}}),"dest"in n&&(n.dest=r.dest),n}).flatten().value(),e)}});var ii=g((uU,W0)=>{"use strict";var Rf=$a(),B0=D("path"),eq=is(),tq=cp(),U0=gl(),rq=$g(),lU=D("stream").Stream,iq=cr().PassThrough,ke=W0.exports={};ke.file=j0();ke.collectStream=function(t,e){var r=[],i=0;t.on("error",e),t.on("data",function(n){r.push(n),i+=n.length}),t.on("end",function(){var n=Buffer.alloc(i),s=0;r.forEach(function(o){o.copy(n,s),s+=o.length}),e(null,n)})};ke.dateify=function(t){return t=t||new Date,t instanceof Date?t=t:typeof t=="string"?t=new Date(t):t=new Date,t};ke.defaults=function(t,e,r){var i=arguments;return i[0]=i[0]||{},rq(...i)};ke.isStream=function(t){return eq(t)};ke.lazyReadStream=function(t){return new tq.Readable(function(){return Rf.createReadStream(t)})};ke.normalizeInputSource=function(t){return t===null?Buffer.alloc(0):typeof t=="string"?Buffer.from(t):ke.isStream(t)?t.pipe(new iq):t};ke.sanitizePath=function(t){return U0(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};ke.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};ke.unixifyPath=function(t){return U0(t,!1).replace(/^\w+:/,"")};ke.walkdir=function(t,e,r){var i=[];typeof e=="function"&&(r=e,e=t),Rf.readdir(t,function(n,s){var o=0,a,l;if(n)return r(n);(function u(){if(a=s[o++],!a)return r(null,i);l=B0.join(t,a),Rf.stat(l,function(f,c){i.push({path:l,relative:B0.relative(e,l).replace(/\\/g,"/"),stats:c}),c&&c.isDirectory()?ke.walkdir(l,e,function(h,d){if(h)return r(h);d.forEach(function(y){i.push(y)}),u()}):u()})})()})}});var H0=g((z0,$0)=>{"use strict";var nq=D("util"),sq={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function G0(t,e){Error.captureStackTrace(this,this.constructor),this.message=sq[t]||t,this.code=t,this.data=e}nq.inherits(G0,Error);z0=$0.exports=G0});var Q0=g((fU,Z0)=>{"use strict";var If=D("fs"),Y0=nh(),V0=(id(),JE(rd)),Af=D("path"),ft=ii(),oq=D("util").inherits,ae=H0(),K0=cr().Transform,Of=process.platform==="win32",z=function(t,e){if(!(this instanceof z))return new z(t,e);typeof t!="string"&&(e=t,t="zip"),e=this.options=ft.defaults(e,{highWaterMark:1024*1024,statConcurrency:4}),K0.call(this,e),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=V0.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=V0.queue(this._onStatQueueTask.bind(this),e.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};oq(z,K0);z.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};z.prototype._append=function(t,e){e=e||{};var r={source:null,filepath:t};e.name||(e.name=t),e.sourcePath=t,r.data=e,this._entriesCount++,e.stats&&e.stats instanceof If.Stats?(r=this._updateQueueTaskWithStats(r,e.stats),r&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(r))):this._statQueue.push(r)};z.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)};z.prototype._maybeFinalize=function(){return this._state.finalizing||this._state.finalized||this._state.aborted?!1:this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()?(this._finalize(),!0):!1};z.prototype._moduleAppend=function(t,e,r){if(this._state.aborted){r();return}this._module.append(t,e,function(i){if(this._task=null,this._state.aborted){this._shutdown();return}if(i){this.emit("error",i),setImmediate(r);return}this.emit("entry",e),this._entriesProcessedCount++,e.stats&&e.stats.size&&(this._fsEntriesProcessedBytes+=e.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(r)}.bind(this))};z.prototype._moduleFinalize=function(){typeof this._module.finalize=="function"?this._module.finalize():typeof this._module.end=="function"?this._module.end():this.emit("error",new ae("NOENDMETHOD"))};z.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};z.prototype._moduleSupports=function(t){return!this._module.supports||!this._module.supports[t]?!1:this._module.supports[t]};z.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};z.prototype._normalizeEntryData=function(t,e){t=ft.defaults(t,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),e&&t.stats===!1&&(t.stats=e);var r=t.type==="directory";return t.name&&(typeof t.prefix=="string"&&t.prefix!==""&&(t.name=t.prefix+"/"+t.name,t.prefix=null),t.name=ft.sanitizePath(t.name),t.type!=="symlink"&&t.name.slice(-1)==="/"?(r=!0,t.type="directory"):r&&(t.name+="/")),typeof t.mode=="number"?Of?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(Of?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,Of&&r&&(t.mode=493)):t.mode===null&&(t.mode=r?493:420),t.stats&&t.date===null?t.date=t.stats.mtime:t.date=ft.dateify(t.date),t};z.prototype._onModuleError=function(t){this.emit("error",t)};z.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()};z.prototype._onQueueTask=function(t,e){var r=()=>{t.data.callback&&t.data.callback(),e()};if(this._state.finalizing||this._state.finalized||this._state.aborted){r();return}this._task=t,this._moduleAppend(t.source,t.data,r)};z.prototype._onStatQueueTask=function(t,e){if(this._state.finalizing||this._state.finalized||this._state.aborted){e();return}If.lstat(t.filepath,function(r,i){if(this._state.aborted){setImmediate(e);return}if(r){this._entriesCount--,this.emit("warning",r),setImmediate(e);return}t=this._updateQueueTaskWithStats(t,i),t&&(i.size&&(this._fsEntriesTotalBytes+=i.size),this._queue.push(t)),setImmediate(e)}.bind(this))};z.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};z.prototype._transform=function(t,e,r){t&&(this._pointer+=t.length),r(null,t)};z.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=ft.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=ft.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=ft.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else if(e.isSymbolicLink()&&this._moduleSupports("symlink")){var r=If.readlinkSync(t.filepath),i=Af.dirname(t.filepath);t.data.type="symlink",t.data.linkname=Af.relative(i,Af.resolve(i,r)),t.data.sourceType="buffer",t.source=Buffer.concat([])}else return e.isDirectory()?this.emit("warning",new ae("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new ae("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new ae("ENTRYNOTSUPPORTED",t.data)),null;return t.data=this._normalizeEntryData(t.data,e),t};z.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};z.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(e=this._normalizeEntryData(e),typeof e.name!="string"||e.name.length===0)return this.emit("error",new ae("ENTRYNAMEREQUIRED")),this;if(e.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new ae("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=ft.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else if(ft.isStream(t))e.sourceType="stream";else return this.emit("error",new ae("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;return this._entriesCount++,this._queue.push({data:e,source:t}),this};z.prototype.directory=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new ae("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,e===!1?e="":typeof e!="string"&&(e=t);var i=!1;typeof r=="function"?(i=r,r={}):typeof r!="object"&&(r={});var n={stat:!0,dot:!0};function s(){this._pending--,this._maybeFinalize()}function o(u){this.emit("error",u)}function a(u){l.pause();var f=!1,c=Object.assign({},r);c.name=u.relative,c.prefix=e,c.stats=u.stat,c.callback=l.resume.bind(l);try{if(i){if(c=i(c),c===!1)f=!0;else if(typeof c!="object")throw new ae("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}}catch(h){this.emit("error",h);return}if(f){l.resume();return}this._append(u.absolute,c)}var l=Y0(t,n);return l.on("error",o.bind(this)),l.on("match",a.bind(this)),l.on("end",s.bind(this)),this};z.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new ae("QUEUECLOSED")),this):typeof t!="string"||t.length===0?(this.emit("error",new ae("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)};z.prototype.glob=function(t,e,r){this._pending++,e=ft.defaults(e,{stat:!0,pattern:t});function i(){this._pending--,this._maybeFinalize()}function n(a){this.emit("error",a)}function s(a){o.pause();var l=Object.assign({},r);l.callback=o.resume.bind(o),l.stats=a.stat,l.name=a.relative,this._append(a.absolute,l)}var o=Y0(e.cwd||".",e);return o.on("error",n.bind(this)),o.on("match",s.bind(this)),o.on("end",i.bind(this)),this};z.prototype.finalize=function(){if(this._state.aborted){var t=new ae("ABORTED");return this.emit("error",t),Promise.reject(t)}if(this._state.finalize){var e=new ae("FINALIZING");return this.emit("error",e),Promise.reject(e)}this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var r=this;return new Promise(function(i,n){var s;r._module.on("end",function(){s||i()}),r._module.on("error",function(o){s=!0,n(o)})})};z.prototype.setFormat=function(t){return this._format?(this.emit("error",new ae("FORMATSET")),this):(this._format=t,this)};z.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new ae("ABORTED")),this):this._state.module?(this.emit("error",new ae("MODULESET")),this):(this._module=t,this._modulePipe(),this)};z.prototype.symlink=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new ae("SYMLINKFILEPATHREQUIRED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new ae("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new ae("SYMLINKNOTSUPPORTED",{filepath:t})),this;var i={};return i.type="symlink",i.name=t.replace(/\\/g,"/"),i.linkname=e.replace(/\\/g,"/"),i.sourceType="buffer",typeof r=="number"&&(i.mode=r),this._entriesCount++,this._queue.push({data:i,source:Buffer.concat([])}),this};z.prototype.pointer=function(){return this._pointer};z.prototype.use=function(t){return this._streams.push(t),this};Z0.exports=z});var Bo=g((cU,X0)=>{"use strict";var jo=X0.exports=function(){};jo.prototype.getName=function(){};jo.prototype.getSize=function(){};jo.prototype.getLastModifiedDate=function(){};jo.prototype.isDirectory=function(){}});var Uo=g((hU,J0)=>{"use strict";var ze=J0.exports={};ze.dateToDos=function(t,e){e=e||!1;var r=e?t.getFullYear():t.getUTCFullYear();if(r<1980)return 2162688;if(r>=2044)return 2141175677;var i={year:r,month:e?t.getMonth():t.getUTCMonth(),date:e?t.getDate():t.getUTCDate(),hours:e?t.getHours():t.getUTCHours(),minutes:e?t.getMinutes():t.getUTCMinutes(),seconds:e?t.getSeconds():t.getUTCSeconds()};return i.year-1980<<25|i.month+1<<21|i.date<<16|i.hours<<11|i.minutes<<5|i.seconds/2};ze.dosToDate=function(t){return new Date((t>>25&127)+1980,(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(t&31)<<1)};ze.fromDosTime=function(t){return ze.dosToDate(t.readUInt32LE(0))};ze.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e};ze.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((t&65535)>>>0,0),e};ze.getShortBytesValue=function(t,e){return t.readUInt16LE(e)};ze.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((t&4294967295)>>>0,0),e};ze.getLongBytesValue=function(t,e){return t.readUInt32LE(e)};ze.toDosTime=function(t){return ze.getLongBytes(ze.dateToDos(t))}});var Df=g((dU,sS)=>{"use strict";var eS=Uo(),tS=8,rS=1,aq=4,lq=2,iS=64,nS=2048,Ee=sS.exports=function(){return this instanceof Ee?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new Ee};Ee.prototype.encode=function(){return eS.getShortBytes((this.descriptor?tS:0)|(this.utf8?nS:0)|(this.encryption?rS:0)|(this.strongEncryption?iS:0))};Ee.prototype.parse=function(t,e){var r=eS.getShortBytesValue(t,e),i=new Ee;return i.useDataDescriptor((r&tS)!==0),i.useUTF8ForNames((r&nS)!==0),i.useStrongEncryption((r&iS)!==0),i.useEncryption((r&rS)!==0),i.setSlidingDictionarySize((r&lq)!==0?8192:4096),i.setNumberOfShannonFanoTrees((r&aq)!==0?3:2),i};Ee.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t};Ee.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};Ee.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t};Ee.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};Ee.prototype.useDataDescriptor=function(t){this.descriptor=t};Ee.prototype.usesDataDescriptor=function(){return this.descriptor};Ee.prototype.useEncryption=function(t){this.encryption=t};Ee.prototype.usesEncryption=function(){return this.encryption};Ee.prototype.useStrongEncryption=function(t){this.strongEncryption=t};Ee.prototype.usesStrongEncryption=function(){return this.strongEncryption};Ee.prototype.useUTF8ForNames=function(t){this.utf8=t};Ee.prototype.usesUTF8ForNames=function(){return this.utf8}});var aS=g((pU,oS)=>{"use strict";oS.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}});var Pf=g((gU,lS)=>{"use strict";lS.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}});var Lf=g((_U,dS)=>{"use strict";var uq=D("util").inherits,fq=gl(),fS=Bo(),cS=Df(),uS=aS(),Pe=Pf(),hS=Uo(),F=dS.exports=function(t){if(!(this instanceof F))return new F(t);fS.call(this),this.platform=Pe.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new cS,this.crc=0,this.time=-1,this.minver=Pe.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};uq(F,fS);F.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};F.prototype.getComment=function(){return this.comment!==null?this.comment:""};F.prototype.getCompressedSize=function(){return this.csize};F.prototype.getCrc=function(){return this.crc};F.prototype.getExternalAttributes=function(){return this.exattr};F.prototype.getExtra=function(){return this.extra!==null?this.extra:Pe.EMPTY};F.prototype.getGeneralPurposeBit=function(){return this.gpb};F.prototype.getInternalAttributes=function(){return this.inattr};F.prototype.getLastModifiedDate=function(){return this.getTime()};F.prototype.getLocalFileDataExtra=function(){return this.getExtra()};F.prototype.getMethod=function(){return this.method};F.prototype.getName=function(){return this.name};F.prototype.getPlatform=function(){return this.platform};F.prototype.getSize=function(){return this.size};F.prototype.getTime=function(){return this.time!==-1?hS.dosToDate(this.time):-1};F.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};F.prototype.getUnixMode=function(){return this.platform!==Pe.PLATFORM_UNIX?0:this.getExternalAttributes()>>Pe.SHORT_SHIFT&Pe.SHORT_MASK};F.prototype.getVersionNeededToExtract=function(){return this.minver};F.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t};F.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t};F.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t};F.prototype.setExternalAttributes=function(t){this.exattr=t>>>0};F.prototype.setExtra=function(t){this.extra=t};F.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof cS))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t};F.prototype.setInternalAttributes=function(t){this.inattr=t};F.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t};F.prototype.setName=function(t,e=!1){t=fq(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t};F.prototype.setPlatform=function(t){this.platform=t};F.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t};F.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=hS.dateToDos(t,e)};F.prototype.setUnixMode=function(t){t|=this.isDirectory()?Pe.S_IFDIR:Pe.S_IFREG;var e=0;e|=t<<Pe.SHORT_SHIFT|(this.isDirectory()?Pe.S_DOS_D:Pe.S_DOS_A),this.setExternalAttributes(e),this.mode=t&Pe.MODE_MASK,this.platform=Pe.PLATFORM_UNIX};F.prototype.setVersionNeededToExtract=function(t){this.minver=t};F.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};F.prototype.isUnixSymlink=function(){return(this.getUnixMode()&uS.FILE_TYPE_FLAG)===uS.LINK_FLAG};F.prototype.isZip64=function(){return this.csize>Pe.ZIP64_MAGIC||this.size>Pe.ZIP64_MAGIC}});var Nf=g((mU,pS)=>{"use strict";var yU=D("stream").Stream,cq=cr().PassThrough,hq=is(),dq=pS.exports={};dq.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(hq(t)&&!t._readableState){var e=new cq;return t.pipe(e),e}return t}});var kf=g((bU,gS)=>{"use strict";var pq=D("util").inherits,gq=is(),Cf=cr().Transform,_q=Bo(),yq=Nf(),Me=gS.exports=function(t){if(!(this instanceof Me))return new Me(t);Cf.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};pq(Me,Cf);Me.prototype._appendBuffer=function(t,e,r){};Me.prototype._appendStream=function(t,e,r){};Me.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)};Me.prototype._finish=function(t){};Me.prototype._normalizeEntry=function(t){};Me.prototype._transform=function(t,e,r){r(null,t)};Me.prototype.entry=function(t,e,r){if(e=e||null,typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),!(t instanceof _q)){r(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){r(new Error("unacceptable entry after finish"));return}if(this._archive.processing){r(new Error("already processing an entry"));return}if(this._archive.processing=!0,this._normalizeEntry(t),this._entry=t,e=yq.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,r);else if(gq(e))this._appendStream(t,e,r);else{this._archive.processing=!1,r(new Error("input source must be valid Stream or Buffer instance"));return}return this};Me.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};Me.prototype.getBytesWritten=function(){return this.offset};Me.prototype.write=function(t,e){return t&&(this.offset+=t.length),Cf.prototype.write.call(this,t,e)}});var Wo=g(Mf=>{"use strict";var _S;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof Mf=="object"?t(Mf):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t(_S={}):t(_S={})})(function(t){t.version="1.2.2";function e(){for(var x=0,O=new Array(256),w=0;w!=256;++w)x=w,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,x=x&1?-306674912^x>>>1:x>>>1,O[w]=x;return typeof Int32Array<"u"?new Int32Array(O):O}var r=e();function i(x){var O=0,w=0,R=0,A=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(R=0;R!=256;++R)A[R]=x[R];for(R=0;R!=256;++R)for(w=x[R],O=256+R;O<4096;O+=256)w=A[O]=w>>>8^x[w&255];var N=[];for(R=1;R!=16;++R)N[R-1]=typeof Int32Array<"u"?A.subarray(R*256,R*256+256):A.slice(R*256,R*256+256);return N}var n=i(r),s=n[0],o=n[1],a=n[2],l=n[3],u=n[4],f=n[5],c=n[6],h=n[7],d=n[8],y=n[9],p=n[10],S=n[11],m=n[12],b=n[13],v=n[14];function E(x,O){for(var w=O^-1,R=0,A=x.length;R<A;)w=w>>>8^r[(w^x.charCodeAt(R++))&255];return~w}function T(x,O){for(var w=O^-1,R=x.length-15,A=0;A<R;)w=v[x[A++]^w&255]^b[x[A++]^w>>8&255]^m[x[A++]^w>>16&255]^S[x[A++]^w>>>24]^p[x[A++]]^y[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 P(x,O){for(var w=O^-1,R=0,A=x.length,N=0,G=0;R<A;)N=x.charCodeAt(R++),N<128?w=w>>>8^r[(w^N)&255]:N<2048?(w=w>>>8^r[(w^(192|N>>6&31))&255],w=w>>>8^r[(w^(128|N&63))&255]):N>=55296&&N<57344?(N=(N&1023)+64,G=x.charCodeAt(R++)&1023,w=w>>>8^r[(w^(240|N>>8&7))&255],w=w>>>8^r[(w^(128|N>>2&63))&255],w=w>>>8^r[(w^(128|G>>6&15|(N&3)<<4))&255],w=w>>>8^r[(w^(128|G&63))&255]):(w=w>>>8^r[(w^(224|N>>12&15))&255],w=w>>>8^r[(w^(128|N>>6&63))&255],w=w>>>8^r[(w^(128|N&63))&255]);return~w}t.table=r,t.bstr=E,t.buf=T,t.str=P})});var mS=g((SU,yS)=>{"use strict";var{Transform:mq}=cr(),bq=Wo(),qf=class extends mq{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,r,i){e&&(this.checksum=bq.buf(e,this.checksum)>>>0,this.rawSize+=e.length),i(null,e)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}};yS.exports=qf});var wS=g((EU,bS)=>{"use strict";var{DeflateRaw:wq}=D("zlib"),Sq=Wo(),Ff=class extends wq{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(e,r){return e&&(this.compressedSize+=e.length),super.push(e,r)}_transform(e,r,i){e&&(this.checksum=Sq.buf(e,this.checksum)>>>0,this.rawSize+=e.length),super._transform(e,r,i)}digest(e){let r=Buffer.allocUnsafe(4);return r.writeUInt32BE(this.checksum>>>0,0),e?r.toString(e):r}hex(){return this.digest("hex").toUpperCase()}size(e=!1){return e?this.compressedSize:this.rawSize}};bS.exports=Ff});var jf=g((vU,SS)=>{"use strict";SS.exports={CRC32Stream:mS(),DeflateCRC32Stream:wS()}});var xS=g((AU,vS)=>{"use strict";var Eq=D("util").inherits,vq=Wo(),{CRC32Stream:xq}=jf(),{DeflateCRC32Stream:Tq}=jf(),ES=kf(),xU=Lf(),TU=Df(),C=Pf(),RU=Nf(),L=Uo(),_e=vS.exports=function(t){if(!(this instanceof _e))return new _e(t);t=this.options=this._defaults(t),ES.call(this,t),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:t.forceZip64,forceLocalTime:t.forceLocalTime}};Eq(_e,ES);_e.prototype._afterAppend=function(t){this._entries.push(t),t.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(t),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()};_e.prototype._appendBuffer=function(t,e,r){e.length===0&&t.setMethod(C.METHOD_STORED);var i=t.getMethod();if(i===C.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(vq.buf(e)>>>0)),this._writeLocalFileHeader(t),i===C.METHOD_STORED){this.write(e),this._afterAppend(t),r(null,t);return}else if(i===C.METHOD_DEFLATED){this._smartStream(t,r).end(e);return}else{r(new Error("compression method "+i+" not implemented"));return}};_e.prototype._appendStream=function(t,e,r){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(C.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(t);var i=this._smartStream(t,r);e.once("error",function(n){i.emit("error",n),i.end()}),e.pipe(i)};_e.prototype._defaults=function(t){return typeof t!="object"&&(t={}),typeof t.zlib!="object"&&(t.zlib={}),typeof t.zlib.level!="number"&&(t.zlib.level=C.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t};_e.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(t){this._writeCentralFileHeader(t)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()};_e.prototype._normalizeEntry=function(t){t.getMethod()===-1&&t.setMethod(C.METHOD_DEFLATED),t.getMethod()===C.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(C.MIN_VERSION_DATA_DESCRIPTOR)),t.getTime()===-1&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}};_e.prototype._smartStream=function(t,e){var r=t.getMethod()===C.METHOD_DEFLATED,i=r?new Tq(this.options.zlib):new xq,n=null;function s(){var o=i.digest().readUInt32BE(0);t.setCrc(o),t.setSize(i.size()),t.setCompressedSize(i.size(!0)),this._afterAppend(t),e(n,t)}return i.once("end",s.bind(this)),i.once("error",function(o){n=o}),i.pipe(this,{end:!1}),i};_e.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(t=C.ZIP64_MAGIC_SHORT,e=C.ZIP64_MAGIC,r=C.ZIP64_MAGIC),this.write(L.getLongBytes(C.SIG_EOCD)),this.write(C.SHORT_ZERO),this.write(C.SHORT_ZERO),this.write(L.getShortBytes(t)),this.write(L.getShortBytes(t)),this.write(L.getLongBytes(e)),this.write(L.getLongBytes(r));var i=this.getComment(),n=Buffer.byteLength(i);this.write(L.getShortBytes(n)),this.write(i)};_e.prototype._writeCentralDirectoryZip64=function(){this.write(L.getLongBytes(C.SIG_ZIP64_EOCD)),this.write(L.getEightBytes(44)),this.write(L.getShortBytes(C.MIN_VERSION_ZIP64)),this.write(L.getShortBytes(C.MIN_VERSION_ZIP64)),this.write(C.LONG_ZERO),this.write(C.LONG_ZERO),this.write(L.getEightBytes(this._entries.length)),this.write(L.getEightBytes(this._entries.length)),this.write(L.getEightBytes(this._archive.centralLength)),this.write(L.getEightBytes(this._archive.centralOffset)),this.write(L.getLongBytes(C.SIG_ZIP64_EOCD_LOC)),this.write(C.LONG_ZERO),this.write(L.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(L.getLongBytes(1))};_e.prototype._writeCentralFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),i=t._offsets.file,n=t.getSize(),s=t.getCompressedSize();if(t.isZip64()||i>C.ZIP64_MAGIC){n=C.ZIP64_MAGIC,s=C.ZIP64_MAGIC,i=C.ZIP64_MAGIC,t.setVersionNeededToExtract(C.MIN_VERSION_ZIP64);var o=Buffer.concat([L.getShortBytes(C.ZIP64_EXTRA_ID),L.getShortBytes(24),L.getEightBytes(t.getSize()),L.getEightBytes(t.getCompressedSize()),L.getEightBytes(t._offsets.file)],28);t.setExtra(o)}this.write(L.getLongBytes(C.SIG_CFH)),this.write(L.getShortBytes(t.getPlatform()<<8|C.VERSION_MADEBY)),this.write(L.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(L.getShortBytes(r)),this.write(L.getLongBytes(t.getTimeDos())),this.write(L.getLongBytes(t.getCrc())),this.write(L.getLongBytes(s)),this.write(L.getLongBytes(n));var a=t.getName(),l=t.getComment(),u=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(a=Buffer.from(a),l=Buffer.from(l)),this.write(L.getShortBytes(a.length)),this.write(L.getShortBytes(u.length)),this.write(L.getShortBytes(l.length)),this.write(C.SHORT_ZERO),this.write(L.getShortBytes(t.getInternalAttributes())),this.write(L.getLongBytes(t.getExternalAttributes())),this.write(L.getLongBytes(i)),this.write(a),this.write(u),this.write(l)};_e.prototype._writeDataDescriptor=function(t){this.write(L.getLongBytes(C.SIG_DD)),this.write(L.getLongBytes(t.getCrc())),t.isZip64()?(this.write(L.getEightBytes(t.getCompressedSize())),this.write(L.getEightBytes(t.getSize()))):(this.write(L.getLongBytes(t.getCompressedSize())),this.write(L.getLongBytes(t.getSize())))};_e.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),i=t.getName(),n=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(C.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(i=Buffer.from(i)),t._offsets.file=this.offset,this.write(L.getLongBytes(C.SIG_LFH)),this.write(L.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(L.getShortBytes(r)),this.write(L.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(C.LONG_ZERO),this.write(C.LONG_ZERO),this.write(C.LONG_ZERO)):(this.write(L.getLongBytes(t.getCrc())),this.write(L.getLongBytes(t.getCompressedSize())),this.write(L.getLongBytes(t.getSize()))),this.write(L.getShortBytes(i.length)),this.write(L.getShortBytes(n.length)),this.write(i),this.write(n),t._offsets.contents=this.offset};_e.prototype.getComment=function(t){return this._archive.comment!==null?this._archive.comment:""};_e.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>C.ZIP64_MAGIC_SHORT||this._archive.centralLength>C.ZIP64_MAGIC||this._archive.centralOffset>C.ZIP64_MAGIC};_e.prototype.setComment=function(t){this._archive.comment=t}});var Bf=g((OU,TS)=>{"use strict";TS.exports={ArchiveEntry:Bo(),ZipArchiveEntry:Lf(),ArchiveOutputStream:kf(),ZipArchiveOutputStream:xS()}});var AS=g((IU,RS)=>{"use strict";var Rq=D("util").inherits,Wf=Bf().ZipArchiveOutputStream,Aq=Bf().ZipArchiveEntry,Uf=ii(),ni=RS.exports=function(t){if(!(this instanceof ni))return new ni(t);t=this.options=t||{},t.zlib=t.zlib||{},Wf.call(this,t),typeof t.level=="number"&&t.level>=0&&(t.zlib.level=t.level,delete t.level),!t.forceZip64&&typeof t.zlib.level=="number"&&t.zlib.level===0&&(t.store=!0),t.namePrependSlash=t.namePrependSlash||!1,t.comment&&t.comment.length>0&&this.setComment(t.comment)};Rq(ni,Wf);ni.prototype._normalizeFileData=function(t){t=Uf.defaults(t,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var e=t.type==="directory",r=t.type==="symlink";return t.name&&(t.name=Uf.sanitizePath(t.name),!r&&t.name.slice(-1)==="/"?(e=!0,t.type="directory"):e&&(t.name+="/")),(e||r)&&(t.store=!0),t.date=Uf.dateify(t.date),t};ni.prototype.entry=function(t,e,r){if(typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),e=this._normalizeFileData(e),e.type!=="file"&&e.type!=="directory"&&e.type!=="symlink"){r(new Error(e.type+" entries not currently supported"));return}if(typeof e.name!="string"||e.name.length===0){r(new Error("entry name must be a non-empty string value"));return}if(e.type==="symlink"&&typeof e.linkname!="string"){r(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var i=new Aq(e.name);return i.setTime(e.date,this.options.forceLocalTime),e.namePrependSlash&&i.setName(e.name,!0),e.store&&i.setMethod(0),e.comment.length>0&&i.setComment(e.comment),e.type==="symlink"&&typeof e.mode!="number"&&(e.mode=40960),typeof e.mode=="number"&&(e.type==="symlink"&&(e.mode|=40960),i.setUnixMode(e.mode)),e.type==="symlink"&&typeof e.linkname=="string"&&(t=Buffer.from(e.linkname)),Wf.prototype.entry.call(this,i,t,r)};ni.prototype.finalize=function(){this.finish()}});var IS=g((DU,OS)=>{"use strict";var Oq=AS(),Iq=ii(),Ut=function(t){if(!(this instanceof Ut))return new Ut(t);t=this.options=Iq.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new Oq(t)};Ut.prototype.append=function(t,e,r){this.engine.entry(t,e,r)};Ut.prototype.finalize=function(){this.engine.finalize()};Ut.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Ut.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Ut.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};OS.exports=Ut});var PS=g((PU,DS)=>{"use strict";DS.exports=D("events")});var NS=g((NU,LS)=>{"use strict";LS.exports=class{constructor(e){if(!(e>0)||(e-1&e)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return this.buffer[this.top]!==void 0?!1:(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){let e=this.buffer[this.btm];if(e!==void 0)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}});var Gf=g((kU,kS)=>{"use strict";var CS=NS();kS.exports=class{constructor(e){this.hwm=e||16,this.head=new CS(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let r=this.head;this.head=r.next=new CS(2*this.head.buffer.length),this.head.push(e)}}shift(){this.length!==0&&this.length--;let e=this.tail.shift();if(e===void 0&&this.tail.next){let r=this.tail.next;return this.tail.next=null,this.tail=r,this.tail.shift()}return e}peek(){let e=this.tail.peek();return e===void 0&&this.tail.next?this.tail.next.peek():e}isEmpty(){return this.length===0}}});var zf=g((MU,MS)=>{"use strict";function Dq(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function Pq(t){return Buffer.isEncoding(t)}function Lq(t,e,r){return Buffer.alloc(t,e,r)}function Nq(t){return Buffer.allocUnsafe(t)}function Cq(t){return Buffer.allocUnsafeSlow(t)}function kq(t,e){return Buffer.byteLength(t,e)}function Mq(t,e){return Buffer.compare(t,e)}function qq(t,e){return Buffer.concat(t,e)}function Fq(t,e,r,i,n){return Y(t).copy(e,r,i,n)}function jq(t,e){return Y(t).equals(e)}function Bq(t,e,r,i,n){return Y(t).fill(e,r,i,n)}function Uq(t,e,r){return Buffer.from(t,e,r)}function Wq(t,e,r,i){return Y(t).includes(e,r,i)}function Gq(t,e,r,i){return Y(t).indexOf(e,r,i)}function zq(t,e,r,i){return Y(t).lastIndexOf(e,r,i)}function $q(t){return Y(t).swap16()}function Hq(t){return Y(t).swap32()}function Vq(t){return Y(t).swap64()}function Y(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function Yq(t,e,r,i){return Y(t).toString(e,r,i)}function Kq(t,e,r,i,n){return Y(t).write(e,r,i,n)}function Zq(t,e){return Y(t).readDoubleBE(e)}function Qq(t,e){return Y(t).readDoubleLE(e)}function Xq(t,e){return Y(t).readFloatBE(e)}function Jq(t,e){return Y(t).readFloatLE(e)}function eF(t,e){return Y(t).readInt32BE(e)}function tF(t,e){return Y(t).readInt32LE(e)}function rF(t,e){return Y(t).readUInt32BE(e)}function iF(t,e){return Y(t).readUInt32LE(e)}function nF(t,e,r){return Y(t).writeDoubleBE(e,r)}function sF(t,e,r){return Y(t).writeDoubleLE(e,r)}function oF(t,e,r){return Y(t).writeFloatBE(e,r)}function aF(t,e,r){return Y(t).writeFloatLE(e,r)}function lF(t,e,r){return Y(t).writeInt32BE(e,r)}function uF(t,e,r){return Y(t).writeInt32LE(e,r)}function fF(t,e,r){return Y(t).writeUInt32BE(e,r)}function cF(t,e,r){return Y(t).writeUInt32LE(e,r)}MS.exports={isBuffer:Dq,isEncoding:Pq,alloc:Lq,allocUnsafe:Nq,allocUnsafeSlow:Cq,byteLength:kq,compare:Mq,concat:qq,copy:Fq,equals:jq,fill:Bq,from:Uq,includes:Wq,indexOf:Gq,lastIndexOf:zq,swap16:$q,swap32:Hq,swap64:Vq,toBuffer:Y,toString:Yq,write:Kq,readDoubleBE:Zq,readDoubleLE:Qq,readFloatBE:Xq,readFloatLE:Jq,readInt32BE:eF,readInt32LE:tF,readUInt32BE:rF,readUInt32LE:iF,writeDoubleBE:nF,writeDoubleLE:sF,writeFloatBE:oF,writeFloatLE:aF,writeInt32BE:lF,writeInt32LE:uF,writeUInt32BE:fF,writeUInt32LE:cF}});var FS=g((FU,qS)=>{"use strict";var hF=zf();qS.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return hF.toString(e,this.encoding)}flush(){return""}}});var WS=g((BU,US)=>{"use strict";var jS=zf();US.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(e){if(e.byteLength===0)return"";if(this.bytesNeeded===0&&BS(e,0)===0)return this.bytesSeen=dF(e),jS.toString(e,"utf8");let r="",i=0;if(this.bytesNeeded>0){for(;i<e.byteLength;){let o=e[i];if(o<this.lowerBoundary||o>this.upperBoundary){r+="\uFFFD",this._reset();break}if(this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|o&63,this.bytesSeen++,i++,this.bytesSeen===this.bytesNeeded){r+=String.fromCodePoint(this.codePoint),this._reset();break}}if(this.bytesNeeded>0)return r}let n=BS(e,i),s=e.byteLength-n;s>i&&(r+=jS.toString(e,"utf8",i,s));for(let o=s;o<e.byteLength;o++){let a=e[o];if(this.bytesNeeded===0){a<=127?(this.bytesSeen=0,r+=String.fromCharCode(a)):a>=194&&a<=223?(this.bytesNeeded=2,this.bytesSeen=1,this.codePoint=a&31):a>=224&&a<=239?(a===224?this.lowerBoundary=160:a===237&&(this.upperBoundary=159),this.bytesNeeded=3,this.bytesSeen=1,this.codePoint=a&15):a>=240&&a<=244?(a===240?this.lowerBoundary=144:a===244&&(this.upperBoundary=143),this.bytesNeeded=4,this.bytesSeen=1,this.codePoint=a&7):(this.bytesSeen=1,r+="\uFFFD");continue}if(a<this.lowerBoundary||a>this.upperBoundary){r+="\uFFFD",o--,this._reset();continue}this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|a&63,this.bytesSeen++,this.bytesSeen===this.bytesNeeded&&(r+=String.fromCodePoint(this.codePoint),this._reset())}return r}flush(){let e=this.bytesNeeded>0?"\uFFFD":"";return this._reset(),e}_reset(){this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191}};function BS(t,e){let r=t.byteLength;if(r<=e)return 0;let i=Math.max(e,r-4),n=r-1;for(;n>i&&(t[n]&192)===128;)n--;if(n<e)return 0;let s=t[n],o;if(s<=127)return 0;if(s>=194&&s<=223)o=2;else if(s>=224&&s<=239)o=3;else if(s>=240&&s<=244)o=4;else return 0;let a=r-n;return a<o?a:0}function dF(t){let e=t.byteLength;if(e===0)return 0;let r=t[e-1];if(r<=127)return 0;if((r&192)!==128)return 1;let i=Math.max(0,e-4),n=e-2;for(;n>=i&&(t[n]&192)===128;)n--;if(n<0)return 1;let s=t[n],o;if(s>=194&&s<=223)o=2;else if(s>=224&&s<=239)o=3;else if(s>=240&&s<=244)o=4;else return 1;if(e-n!==o)return 1;if(o>=3){let a=t[n+1];if(s===224&&a<160||s===237&&a>159||s===240&&a<144||s===244&&a>143)return 1}return 0}});var zS=g((WU,GS)=>{"use strict";var pF=FS(),gF=WS();GS.exports=class{constructor(e="utf8"){switch(this.encoding=_F(e),this.encoding){case"utf8":this.decoder=new gF;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new pF(this.encoding)}}get remaining(){return this.decoder.remaining}push(e){return typeof e=="string"?e:this.decoder.decode(e)}write(e){return this.push(e)}end(e){let r="";return e&&(r=this.push(e)),r+=this.decoder.flush(),r}};function _F(t){switch(t=t.toLowerCase(),t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:throw new Error("Unknown encoding: "+t)}}});var oc=g((GU,dE)=>{"use strict";var{EventEmitter:yF}=PS(),Yo=new Error("Stream was destroyed"),$f=new Error("Premature close"),ZS=Gf(),mF=zS(),Hf=typeof queueMicrotask>"u"?t=>global.process.nextTick(t):queueMicrotask,oe=(1<<29)-1,ct=1,Jf=2,vt=4,xn=8,QS=oe^ct,bF=oe^Jf,In=16,si=32,li=64,Gt=128,Dn=256,ec=512,zt=1024,Vf=2048,tc=4096,rc=8192,Qe=16384,Wt=32768,Ko=65536,yr=131072,XS=Dn|ec,wF=In|Ko,SF=li|In,EF=tc|Gt,ic=Dn|yr,vF=oe^In,xF=oe^li,TF=oe^(li|Ko),$S=oe^Ko,RF=oe^Dn,AF=oe^(Gt|rc),OF=oe^zt,HS=oe^XS,JS=oe^Wt,IF=oe^si,eE=oe^yr,DF=oe^ic,xt=1<<18,ai=2<<18,Pn=4<<18,mr=8<<18,Ln=16<<18,Ht=32<<18,Yf=64<<18,oi=128<<18,nc=256<<18,$t=512<<18,Zo=1024<<18,PF=oe^(xt|nc),tE=oe^Pn,LF=oe^(xt|$t),NF=oe^Ln,CF=oe^mr,rE=oe^oi,kF=oe^ai,iE=oe^Zo,Tn=In|xt,nE=oe^Tn,sc=Qe|Ht,ht=vt|xn|Jf,qe=ht|ct,sE=ht|sc,MF=tE&xF,Qo=oi|Wt,qF=Qo&nE,oE=qe|qF,FF=qe|zt|Qe,VS=qe|Qe|Gt,jF=qe|zt|Gt,BF=qe|tc|Gt|rc,UF=qe|In|zt|Qe|Ko|yr,WF=ht|zt|Qe,GF=si|qe|Wt|li,zF=Wt|ct,$F=qe|$t|Ht,HF=mr|Ln,aE=mr|xt,VF=mr|Ln|qe|xt,YS=qe|xt|mr|Zo,YF=Pn|xt,KF=xt|nc,ZF=qe|$t|aE|Ht,QF=Ln|ht|$t|Ht,XF=ai|qe|oi|Pn,JF=$t|Ht|ht,Go=Symbol.asyncIterator||Symbol("asyncIterator"),zo=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapWritable:n,byteLength:s,byteLengthWritable:o}={}){this.stream=e,this.queue=new ZS,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||s||hE,this.map=n||i,this.afterWrite=rj.bind(this),this.afterUpdateNextTick=sj.bind(this)}get ending(){return(this.stream._duplexState&$t)!==0}get ended(){return(this.stream._duplexState&Ht)!==0}push(e){return(this.stream._duplexState&JF)!==0?!1:(this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered<this.highWaterMark?(this.stream._duplexState|=mr,!0):(this.stream._duplexState|=HF,!1))}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=CF),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|$t)&tE}autoBatch(e,r){let i=[],n=this.stream;for(i.push(e);(n._duplexState&YS)===aE;)i.push(n._writableState.shift());if((n._duplexState&qe)!==0)return r(null);n._writev(i,r)}update(){let e=this.stream;e._duplexState|=ai;do{for(;(e._duplexState&YS)===mr;){let r=this.shift();e._duplexState|=KF,e._write(r,this.afterWrite)}(e._duplexState&YF)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=kF}updateNonPrimary(){let e=this.stream;if((e._duplexState&ZF)===$t){e._duplexState=e._duplexState|xt,e._final(tj.bind(this));return}if((e._duplexState&ht)===vt){(e._duplexState&Qo)===0&&(e._duplexState|=Tn,e._destroy(lE.bind(this)));return}(e._duplexState&oE)===ct&&(e._duplexState=(e._duplexState|Tn)&QS,e._open(uE.bind(this)))}continueUpdate(){return(this.stream._duplexState&oi)===0?!1:(this.stream._duplexState&=rE,!0)}updateCallback(){(this.stream._duplexState&XF)===Pn?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&oi)===0&&(this.stream._duplexState|=oi,(this.stream._duplexState&ai)===0&&Hf(this.afterUpdateNextTick))}},Kf=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapReadable:n,byteLength:s,byteLengthReadable:o}={}){this.stream=e,this.queue=new ZS,this.highWaterMark=r===0?1:r,this.buffered=0,this.readAhead=r>0,this.error=null,this.pipeline=null,this.byteLength=o||s||hE,this.map=n||i,this.pipeTo=null,this.afterRead=ij.bind(this),this.afterUpdateNextTick=nj.bind(this)}get ending(){return(this.stream._duplexState&zt)!==0}get ended(){return(this.stream._duplexState&Qe)!==0}pipe(e,r){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof r!="function"&&(r=null),this.stream._duplexState|=ec,this.pipeTo=e,this.pipeline=new Qf(this.stream,e,r),r&&this.stream.on("error",KS),On(e))e._writableState.pipeline=this.pipeline,r&&e.on("error",KS),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{let i=this.pipeline.done.bind(this.pipeline,e),n=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",i),e.on("close",n),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",ej.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){let r=this.stream;return e===null?(this.highWaterMark=0,r._duplexState=(r._duplexState|zt)&TF,!1):this.map!==null&&(e=this.map(e),e===null)?(r._duplexState&=$S,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(e),this.queue.push(e),r._duplexState=(r._duplexState|Gt)&$S,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=AF),e}unshift(e){let r=[this.map!==null?this.map(e):e];for(;this.buffered>0;)r.push(this.shift());for(let i=0;i<r.length-1;i++){let n=r[i];this.buffered+=this.byteLength(n),this.queue.push(n)}this.push(r[r.length-1])}read(){let e=this.stream;if((e._duplexState&VS)===Gt){let r=this.shift();return this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=HS),(e._duplexState&Vf)!==0&&e.emit("data",r),r}return this.readAhead===!1&&(e._duplexState|=yr,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&VS)===Gt&&(e._duplexState&XS)!==0;){let r=this.shift();this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=HS),(e._duplexState&Vf)!==0&&e.emit("data",r)}}update(){let e=this.stream;e._duplexState|=si;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&UF)===yr;)e._duplexState|=wF,e._read(this.afterRead),this.drain();(e._duplexState&BF)===EF&&(e._duplexState|=rc,e.emit("readable")),(e._duplexState&SF)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=IF}updateNonPrimary(){let e=this.stream;if((e._duplexState&jF)===zt&&(e._duplexState=(e._duplexState|Qe)&OF,e.emit("end"),(e._duplexState&sE)===sc&&(e._duplexState|=vt),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&ht)===vt){(e._duplexState&Qo)===0&&(e._duplexState|=Tn,e._destroy(lE.bind(this)));return}(e._duplexState&oE)===ct&&(e._duplexState=(e._duplexState|Tn)&QS,e._open(uE.bind(this)))}continueUpdate(){return(this.stream._duplexState&Wt)===0?!1:(this.stream._duplexState&=JS,!0)}updateCallback(){(this.stream._duplexState&GF)===li?this.update():this.updateNextTick()}updateNextTickIfOpen(){(this.stream._duplexState&zF)===0&&(this.stream._duplexState|=Wt,(this.stream._duplexState&si)===0&&Hf(this.afterUpdateNextTick))}updateNextTick(){(this.stream._duplexState&Wt)===0&&(this.stream._duplexState|=Wt,(this.stream._duplexState&si)===0&&Hf(this.afterUpdateNextTick))}},Zf=class{constructor(e){this.data=null,this.afterTransform=aj.bind(e),this.afterFinal=null}},Qf=class{constructor(e,r,i){this.from=e,this.to=r,this.afterPipe=i,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(e,r){if(r&&(this.error=r),e===this.to&&(this.to=null,this.from!==null)){((this.from._duplexState&Qe)===0||!this.pipeToFinished)&&this.from.destroy(this.error||new Error("Writable stream closed prematurely"));return}if(e===this.from&&(this.from=null,this.to!==null)){(e._duplexState&Qe)===0&&this.to.destroy(this.error||new Error("Readable stream closed before ending"));return}this.afterPipe!==null&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null}};function ej(){this.stream._duplexState|=ec,this.updateCallback()}function tj(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&ht)===0&&(e._duplexState|=Ht,e.emit("finish")),(e._duplexState&sE)===sc&&(e._duplexState|=vt),e._duplexState&=LF,(e._duplexState&ai)===0?this.update():this.updateNextTick()}function lE(t){let e=this.stream;!t&&this.error!==Yo&&(t=this.error),t&&e.emit("error",t),e._duplexState|=xn,e.emit("close");let r=e._readableState,i=e._writableState;if(r!==null&&r.pipeline!==null&&r.pipeline.done(e,t),i!==null){for(;i.drains!==null&&i.drains.length>0;)i.drains.shift().resolve(!1);i.pipeline!==null&&i.pipeline.done(e,t)}}function rj(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=PF,this.drains!==null&&oj(this.drains),(e._duplexState&VF)===Ln&&(e._duplexState&=NF,(e._duplexState&Yf)===Yf&&e.emit("drain")),this.updateCallback()}function ij(t){t&&this.stream.destroy(t),this.stream._duplexState&=vF,this.readAhead===!1&&(this.stream._duplexState&Dn)===0&&(this.stream._duplexState&=eE),this.updateCallback()}function nj(){(this.stream._duplexState&si)===0&&(this.stream._duplexState&=JS,this.update())}function sj(){(this.stream._duplexState&ai)===0&&(this.stream._duplexState&=rE,this.update())}function oj(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}function uE(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&vt)===0&&((e._duplexState&FF)===0&&(e._duplexState|=li),(e._duplexState&$F)===0&&(e._duplexState|=Pn),e.emit("open")),e._duplexState&=nE,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}function aj(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}function lj(t){this._readableState!==null&&(t==="data"&&(this._duplexState|=Vf|ic,this._readableState.updateNextTick()),t==="readable"&&(this._duplexState|=tc,this._readableState.updateNextTick())),this._writableState!==null&&t==="drain"&&(this._duplexState|=Yf,this._writableState.updateNextTick())}var Rn=class extends yF{constructor(e){super(),this._duplexState=0,this._readableState=null,this._writableState=null,e&&(e.open&&(this._open=e.open),e.destroy&&(this._destroy=e.destroy),e.predestroy&&(this._predestroy=e.predestroy),e.signal&&e.signal.addEventListener("abort",wj.bind(this))),this.on("newListener",lj)}_open(e){e(null)}_destroy(e){e(null)}_predestroy(){}get readable(){return this._readableState!==null?!0:void 0}get writable(){return this._writableState!==null?!0:void 0}get destroyed(){return(this._duplexState&xn)!==0}get destroying(){return(this._duplexState&ht)!==0}destroy(e){(this._duplexState&ht)===0&&(e||(e=Yo),this._duplexState=(this._duplexState|vt)&MF,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=e),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=Jf,this._predestroy(),this._duplexState&=bF,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}},$o=class t extends Rn{constructor(e){super(e),this._duplexState|=ct|Ht|yr,this._readableState=new Kf(this,e),e&&(this._readableState.readAhead===!1&&(this._duplexState&=eE),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick(),e.encoding&&this.setEncoding(e.encoding))}setEncoding(e){let r=new mF(e),i=this._readableState.map||cj;return this._readableState.map=n,this;function n(s){let o=r.push(s);return o===""&&(s.byteLength!==0||r.remaining>0)?null:i(o)}}_read(e){e(null)}pipe(e,r){return this._readableState.updateNextTick(),this._readableState.pipe(e,r),e}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(e){return this._readableState.updateNextTickIfOpen(),this._readableState.push(e)}unshift(e){return this._readableState.updateNextTickIfOpen(),this._readableState.unshift(e)}resume(){return this._duplexState|=ic,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?DF:RF,this}static _fromAsyncIterator(e,r){let i,n=new t({...r,read(o){e.next().then(s).then(o.bind(null,null)).catch(o)},predestroy(){i=e.return()},destroy(o){if(!i)return o(null);i.then(o.bind(null,null)).catch(o)}});return n;function s(o){o.done?n.push(null):n.push(o.value)}}static from(e,r){if(yj(e))return e;if(e[Go])return this._fromAsyncIterator(e[Go](),r);Array.isArray(e)||(e=e===void 0?[]:[e]);let i=0;return new t({...r,read(n){this.push(i===e.length?null:e[i++]),n(null)}})}static isBackpressured(e){return(e._duplexState&WF)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&Dn)===0}[Go](){let e=this,r=null,i=null,n=null;return this.on("error",u=>{r=u}),this.on("readable",s),this.on("close",o),{[Go](){return this},next(){return new Promise(function(u,f){i=u,n=f;let c=e.read();c!==null?a(c):(e._duplexState&xn)!==0&&a(null)})},return(){return l(null)},throw(u){return l(u)}};function s(){i!==null&&a(e.read())}function o(){i!==null&&a(null)}function a(u){n!==null&&(r?n(r):u===null&&(e._duplexState&Qe)===0?n(Yo):i({value:u,done:u===null}),n=i=null)}function l(u){return e.destroy(u),new Promise((f,c)=>{if(e._duplexState&xn)return f({value:void 0,done:!0});e.once("close",function(){u?c(u):f({value:void 0,done:!0})})})}}},Ho=class extends Rn{constructor(e){super(e),this._duplexState|=ct|Qe,this._writableState=new zo(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}cork(){this._duplexState|=Zo}uncork(){this._duplexState&=iE,this._writableState.updateNextTick()}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}static isBackpressured(e){return(e._duplexState&QF)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let r=e._writableState,n=(Sj(e)?Math.min(1,r.queue.length):r.queue.length)+(e._duplexState&nc?1:0);return n===0?Promise.resolve(!0):(r.drains===null&&(r.drains=[]),new Promise(s=>{r.drains.push({writes:n,resolve:s})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},An=class extends $o{constructor(e){super(e),this._duplexState=ct|this._duplexState&yr,this._writableState=new zo(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=Zo}uncork(){this._duplexState&=iE,this._writableState.updateNextTick()}_writev(e,r){r(null)}_write(e,r){this._writableState.autoBatch(e,r)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},Vo=class extends An{constructor(e){super(e),this._transformState=new Zf(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,r){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(this._transformState.data!==null){let r=this._transformState.data;this._transformState.data=null,e(null),this._transform(r,this._transformState.afterTransform)}else e(null)}destroy(e){super.destroy(e),this._transformState.data!==null&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(e,r){r(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(uj.bind(this))}},Xf=class extends Vo{};function uj(t,e){let r=this._transformState.afterFinal;if(t)return r(t);e!=null&&this.push(e),this.push(null),r(null)}function fj(...t){return new Promise((e,r)=>fE(...t,i=>{if(i)return r(i);e()}))}function fE(t,...e){let r=Array.isArray(t)?[...t,...e]:[t,...e],i=r.length&&typeof r[r.length-1]=="function"?r.pop():null;if(r.length<2)throw new Error("Pipeline requires at least 2 streams");let n=r[0],s=null,o=null;for(let u=1;u<r.length;u++)s=r[u],On(n)?n.pipe(s,l):(a(n,!0,u>1,l),n.pipe(s)),n=s;if(i){let u=!1,f=On(s)||!!(s._writableState&&s._writableState.autoDestroy);s.on("error",c=>{o===null&&(o=c)}),s.on("finish",()=>{u=!0,f||i(o)}),f&&s.on("close",()=>i(o||(u?null:$f)))}return s;function a(u,f,c,h){u.on("error",h),u.on("close",d);function d(){if(f&&u._readableState&&!u._readableState.ended||c&&u._writableState&&!u._writableState.ended)return h($f)}}function l(u){if(!(!u||o)){o=u;for(let f of r)f.destroy(u)}}}function cj(t){return t}function cE(t){return!!t._readableState||!!t._writableState}function On(t){return typeof t._duplexState=="number"&&cE(t)}function hj(t){return!!t._readableState&&t._readableState.ending}function dj(t){return!!t._readableState&&t._readableState.ended}function pj(t){return!!t._writableState&&t._writableState.ending}function gj(t){return!!t._writableState&&t._writableState.ended}function _j(t,e={}){let r=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return!e.all&&r===Yo?null:r}function yj(t){return On(t)&&t.readable}function mj(t){return(t._duplexState&ct)!==ct||(t._duplexState&vt)===vt||(t._duplexState&Qo)!==0}function bj(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}function hE(t){return bj(t)?t.byteLength:1024}function KS(){}function wj(){this.destroy(new Error("Stream aborted."))}function Sj(t){return t._writev!==Ho.prototype._writev&&t._writev!==An.prototype._writev}dE.exports={pipeline:fE,pipelinePromise:fj,isStream:cE,isStreamx:On,isEnding:hj,isEnded:dj,isFinishing:pj,isFinished:gj,isDisturbed:mj,getStreamError:_j,Stream:Rn,Writable:Ho,Readable:$o,Duplex:An,Transform:Vo,PassThrough:Xf}});var Xo=g((zU,pE)=>{"use strict";function Ej(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function vj(t){return Buffer.isEncoding(t)}function xj(t,e,r){return Buffer.alloc(t,e,r)}function Tj(t){return Buffer.allocUnsafe(t)}function Rj(t){return Buffer.allocUnsafeSlow(t)}function Aj(t,e){return Buffer.byteLength(t,e)}function Oj(t,e){return Buffer.compare(t,e)}function Ij(t,e){return Buffer.concat(t,e)}function Dj(t,e,r,i,n){return K(t).copy(e,r,i,n)}function Pj(t,e){return K(t).equals(e)}function Lj(t,e,r,i,n){return K(t).fill(e,r,i,n)}function Nj(t,e,r){return Buffer.from(t,e,r)}function Cj(t,e,r,i){return K(t).includes(e,r,i)}function kj(t,e,r,i){return K(t).indexOf(e,r,i)}function Mj(t,e,r,i){return K(t).lastIndexOf(e,r,i)}function qj(t){return K(t).swap16()}function Fj(t){return K(t).swap32()}function jj(t){return K(t).swap64()}function K(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function Bj(t,e,r,i){return K(t).toString(e,r,i)}function Uj(t,e,r,i,n){return K(t).write(e,r,i,n)}function Wj(t,e){return K(t).readDoubleBE(e)}function Gj(t,e){return K(t).readDoubleLE(e)}function zj(t,e){return K(t).readFloatBE(e)}function $j(t,e){return K(t).readFloatLE(e)}function Hj(t,e){return K(t).readInt32BE(e)}function Vj(t,e){return K(t).readInt32LE(e)}function Yj(t,e){return K(t).readUInt32BE(e)}function Kj(t,e){return K(t).readUInt32LE(e)}function Zj(t,e,r){return K(t).writeDoubleBE(e,r)}function Qj(t,e,r){return K(t).writeDoubleLE(e,r)}function Xj(t,e,r){return K(t).writeFloatBE(e,r)}function Jj(t,e,r){return K(t).writeFloatLE(e,r)}function eB(t,e,r){return K(t).writeInt32BE(e,r)}function tB(t,e,r){return K(t).writeInt32LE(e,r)}function rB(t,e,r){return K(t).writeUInt32BE(e,r)}function iB(t,e,r){return K(t).writeUInt32LE(e,r)}pE.exports={isBuffer:Ej,isEncoding:vj,alloc:xj,allocUnsafe:Tj,allocUnsafeSlow:Rj,byteLength:Aj,compare:Oj,concat:Ij,copy:Dj,equals:Pj,fill:Lj,from:Nj,includes:Cj,indexOf:kj,lastIndexOf:Mj,swap16:qj,swap32:Fj,swap64:jj,toBuffer:K,toString:Bj,write:Uj,readDoubleBE:Wj,readDoubleLE:Gj,readFloatBE:zj,readFloatLE:$j,readInt32BE:Hj,readInt32LE:Vj,readUInt32BE:Yj,readUInt32LE:Kj,writeDoubleBE:Zj,writeDoubleLE:Qj,writeFloatBE:Xj,writeFloatLE:Jj,writeInt32BE:eB,writeInt32LE:tB,writeUInt32BE:rB,writeUInt32LE:iB}});var uc=g(fi=>{"use strict";var W=Xo(),nB="0000000000000000000",sB="7777777777777777777",Jo=48,gE=W.from([117,115,116,97,114,0]),oB=W.from([Jo,Jo]),aB=W.from([117,115,116,97,114,32]),lB=W.from([32,0]),uB=4095,Nn=257,lc=263;fi.decodeLongPath=function(e,r){return ui(e,0,e.length,r)};fi.encodePax=function(e){let r="";e.name&&(r+=ac(" path="+e.name+`
9
9
  `)),e.linkname&&(r+=ac(" linkpath="+e.linkname+`
10
10
  `));let i=e.pax;if(i)for(let n in i)r+=ac(" "+n+"="+i[n]+`
11
- `);return W.from(r)};fi.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(W.toString(e.subarray(0,i)),10);if(!n)return r;let s=W.toString(e.subarray(i+1,n-1)),o=s.indexOf("=");if(o===-1)return r;r[s.slice(0,o)]=s.slice(o+1),e=e.subarray(n)}return r};fi.encode=function(e){let r=W.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),W.byteLength(i)!==i.length)return null;for(;W.byteLength(i)>100;){let s=i.indexOf("/");if(s===-1)return null;n+=n?"/"+i.slice(0,s):i.slice(0,s),i=i.slice(s+1)}return W.byteLength(i)>100||W.byteLength(n)>155||e.linkname&&W.byteLength(e.linkname)>100?null:(W.write(r,i),W.write(r,Yt(e.mode&aB,6),100),W.write(r,Yt(e.uid,6),108),W.write(r,Yt(e.gid,6),116),pB(e.size,r,124),W.write(r,Yt(e.mtime.getTime()/1e3|0,11),136),r[156]=Jo+hB(e.type),e.linkname&&W.write(r,e.linkname,157),W.copy(gE,r,Nn),W.copy(nB,r,lc),e.uname&&W.write(r,e.uname,265),e.gname&&W.write(r,e.gname,297),W.write(r,Yt(e.devmajor||0,6),329),W.write(r,Yt(e.devminor||0,6),337),n&&W.write(r,n,345),W.write(r,Yt(yE(r),6),148),r)};fi.decode=function(e,r,i){let n=e[156]===0?0:e[156]-Jo,s=ui(e,0,100,r),o=Vt(e,100,8),a=Vt(e,108,8),l=Vt(e,116,8),u=Vt(e,124,12),f=Vt(e,136,12),c=cB(n),h=e[157]===0?null:ui(e,157,100,r),d=ui(e,265,32),y=ui(e,297,32),p=Vt(e,329,8),S=Vt(e,337,8),m=yE(e);if(m===256)return null;if(m!==Vt(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(lB(e))e[345]&&(s=ui(e,345,155,r)+"/"+s);else if(!uB(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:y,devmajor:p,devminor:S,pax:null}};function lB(t){return W.equals(gE,t.subarray(Nn,Nn+6))}function uB(t){return W.equals(sB,t.subarray(Nn,Nn+6))&&W.equals(oB,t.subarray(lc,lc+2))}function fB(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function cB(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 hB(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function _E(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function yE(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function Yt(t,e){return t=t.toString(8),t.length>e?iB.slice(0,e)+" ":rB.slice(0,e-t.length)+t+" "}function dB(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function pB(t,e,r){t.toString(8).length>11?dB(t,e,r):W.write(e,Yt(t,11),r)}function gB(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 gB(t);{for(;e<t.length&&t[e]===32;)e++;let i=fB(_E(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(W.toString(t.subarray(e,i)),8)}}function ui(t,e,r,i){return W.toString(t.subarray(e,_E(t,0,e,e+r)),i)}function ac(t){let e=W.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var EE=g((zU,SE)=>{"use strict";var{Writable:_B,Readable:yB,getStreamError:mE}=oc(),mB=Gf(),bE=Xo(),ci=uc(),bB=bE.alloc(0),cc=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new mB,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 bB;let r=this._next(e);if(e===r.byteLength)return r;let i=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),i.push(r);return bE.concat(i)}_next(e){let r=this.queue.peek(),i=r.byteLength-this._offset;if(e>=i){let n=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=i,this.shifted+=i,n}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},hc=class extends yB{constructor(e,r,i){super(),this.header=r,this.offset=i,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(mE(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=wE(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},dc=class extends _B{constructor(e){super(e),e||(e={}),this._buffer=new cc,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=fc,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=ci.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),this._header.size===0||this._header.type==="directory"?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=ci.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=ci.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=ci.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?ci.decodePax(e):Object.assign({},this._paxGlobal,ci.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=wE(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(r){return this._continueWrite(r),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(e===null)return!1;this._missing-=e.byteLength;let r=this._stream.push(e);return this._missing===0?(this._stream.push(null),r&&this._stream._detach(),r&&this._locked===!1):r}_createStream(){return new hc(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let e=this._buffer.shiftFirst(this._missing);e!==null&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(e){let r=this._callback;this._callback=fc,r(e)}_write(e,r){this._callback=r,this._buffer.push(e),this._update()}_final(e){this._finished=this._missing===0&&this._buffer.buffered===0,e(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(mE(this)),e(null)}[Symbol.asyncIterator](){let e=null,r=null,i=null,n=null,s=null,o=this;return this.on("entry",u),this.on("error",h=>{e=h}),this.on("close",f),{[Symbol.asyncIterator](){return this},next(){return new Promise(l)},return(){return c(null)},throw(h){return c(h)}};function a(h){if(!s)return;let d=s;s=null,d(h)}function l(h,d){if(e)return d(e);if(n){h({value:n,done:!1}),n=null;return}r=h,i=d,a(null),o._finished&&r&&(r({value:void 0,done:!0}),r=i=null)}function u(h,d,y){s=y,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,y)=>{if(o.destroyed)return d({value:void 0,done:!0});o.once("close",function(){h?y(h):d({value:void 0,done:!0})})})}}};SE.exports=function(e){return new dc(e)};function fc(){}function wE(t){return t&=511,t&&512-t}});var xE=g(($U,pc)=>{"use strict";var vE={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{pc.exports=D("fs").constants||vE}catch{pc.exports=vE}});var IE=g((HU,OE)=>{"use strict";var{Readable:wB,Writable:SB,getStreamError:TE}=oc(),br=Xo(),hi=xE(),ea=uc(),EB=493,vB=420,RE=br.alloc(1024),_c=class extends SB{constructor(e,r,i){super({mapWritable:TB,eagerOpen:!0}),this.written=0,this.header=r,this._callback=i,this._linkname=null,this._isLinkname=r.type==="symlink"&&!r.linkname,this._isVoid=r.type!=="file"&&r.type!=="contiguous-file",this._finished=!1,this._pack=e,this._openCallback=null,this._pack._stream===null?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(this._callback===null)return;let r=this._callback;this._callback=null,r(e)}_continueOpen(){this._pack._stream===null&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,e!==null){if(this._pack.destroying)return e(new Error("pack stream destroyed"));if(this._pack._finalized)return e(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,r){if(this._isLinkname)return this._linkname=this._linkname?br.concat([this._linkname,e]):e,r(null);if(this._isVoid)return e.byteLength>0?r(new Error("No body allowed for this entry")):r();if(this.written+=e.byteLength,this._pack.push(e))return r();this._pack._drain=r}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?br.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),AE(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(new Error("Size mismatch"));this._finish(),e(null)}_getError(){return TE(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}},yc=class extends wB{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=xB(e.mode)),e.mode||(e.mode=e.type==="directory"?EB:vB),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof r=="string"&&(r=br.from(r));let n=new _c(this,e,i);return br.isBuffer(r)?(e.size=r.byteLength,n.write(r),n.end(),n):(n._isVoid,n)}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(RE),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let r=ea.encode(e);if(r){this.push(r);return}}this._encodePax(e)}_encodePax(e){let r=ea.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),i={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:r.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(ea.encode(i)),this.push(r),AE(this,r.byteLength),i.size=e.size,i.type=e.type,this.push(ea.encode(i))}_doDrain(){let e=this._drain;this._drain=gc,e()}_predestroy(){let e=TE(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let r=this._pending.shift();r.destroy(e),r._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}};OE.exports=function(e){return new yc(e)};function xB(t){switch(t&hi.S_IFMT){case hi.S_IFBLK:return"block-device";case hi.S_IFCHR:return"character-device";case hi.S_IFDIR:return"directory";case hi.S_IFIFO:return"fifo";case hi.S_IFLNK:return"symlink"}return"file"}function gc(){}function AE(t,e){e&=511,e&&t.push(RE.subarray(0,512-e))}function TB(t){return br.isBuffer(t)?t:br.from(t)}});var DE=g(mc=>{"use strict";mc.extract=EE();mc.pack=IE()});var NE=g((YU,LE)=>{"use strict";var RB=D("zlib"),AB=DE(),PE=ii(),Tt=function(t){if(!(this instanceof Tt))return new Tt(t);t=this.options=PE.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=AB.pack(t),this.compressor=!1,t.gzip&&(this.compressor=RB.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};Tt.prototype._onCompressorError=function(t){this.engine.emit("error",t)};Tt.prototype.append=function(t,e,r){var i=this;e.mtime=e.date;function n(o,a){if(o){r(o);return}i.engine.entry(e,a,function(l){r(l,e)})}if(e.sourceType==="buffer")n(null,t);else if(e.sourceType==="stream"&&e.stats){e.size=e.stats.size;var s=i.engine.entry(e,function(o){r(o,e)});t.pipe(s)}else e.sourceType==="stream"&&PE.collectStream(t,n)};Tt.prototype.finalize=function(){this.engine.finalize()};Tt.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tt.prototype.pipe=function(t,e){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(t,e):this.engine.pipe.apply(this.engine,arguments)};Tt.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};LE.exports=Tt});var ME=g((KU,kE)=>{"use strict";function OB(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var IB=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function CE(t){if(Buffer.isBuffer(t))return t;if(typeof t=="number")return Buffer.alloc(t);if(typeof t=="string")return Buffer.from(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function DB(t){let e=CE(4);return e.writeInt32BE(t,0),e}function bc(t,e){t=CE(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let r=~~e^-1;for(var i=0;i<t.length;i++)r=IB[(r^t[i])&255]^r>>>8;return r^-1}function wc(){return DB(bc.apply(null,arguments))}wc.signed=function(){return bc.apply(null,arguments)};wc.unsigned=function(){return bc.apply(null,arguments)>>>0};var PB=wc,LB=OB(PB);kE.exports=LB});var BE=g((ZU,jE)=>{"use strict";var NB=D("util").inherits,qE=cr().Transform,CB=ME(),FE=ii(),Kt=function(t){if(!(this instanceof Kt))return new Kt(t);t=this.options=FE.defaults(t,{}),qE.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};NB(Kt,qE);Kt.prototype._transform=function(t,e,r){r(null,t)};Kt.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)};Kt.prototype.append=function(t,e,r){var i=this;e.crc32=0;function n(s,o){if(s){r(s);return}e.size=o.length||0,e.crc32=CB.unsigned(o),i.files.push(e),r(null,e)}e.sourceType==="buffer"?n(null,t):e.sourceType==="stream"&&FE.collectStream(t,n)};Kt.prototype.finalize=function(){this._writeStringified(),this.end()};jE.exports=Kt});var WE=g((QU,UE)=>{"use strict";var kB=Q0(),Cn={},Zt=function(t,e){return Zt.create(t,e)};Zt.create=function(t,e){if(Cn[t]){var r=new kB(t,e);return r.setFormat(t),r.setModule(new Cn[t](e)),r}else throw new Error("create("+t+"): format not registered")};Zt.registerFormat=function(t,e){if(Cn[t])throw new Error("register("+t+"): format already registered");if(typeof e!="function")throw new Error("register("+t+"): format module invalid");if(typeof e.prototype.append!="function"||typeof e.prototype.finalize!="function")throw new Error("register("+t+"): format module missing methods");Cn[t]=e};Zt.isRegisteredFormat=function(t){return!!Cn[t]};Zt.registerFormat("zip",IS());Zt.registerFormat("tar",NE());Zt.registerFormat("json",BE());UE.exports=Zt});import{readFileSync as WB,existsSync as HE,readdirSync as GB,mkdirSync as zB,writeFileSync as $B}from"fs";import{unlink as HB}from"fs/promises";import{join as di}from"path";import{randomUUID as pi}from"crypto";function Oc(t){return t?t.includes(`
11
+ `);return W.from(r)};fi.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(W.toString(e.subarray(0,i)),10);if(!n)return r;let s=W.toString(e.subarray(i+1,n-1)),o=s.indexOf("=");if(o===-1)return r;r[s.slice(0,o)]=s.slice(o+1),e=e.subarray(n)}return r};fi.encode=function(e){let r=W.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),W.byteLength(i)!==i.length)return null;for(;W.byteLength(i)>100;){let s=i.indexOf("/");if(s===-1)return null;n+=n?"/"+i.slice(0,s):i.slice(0,s),i=i.slice(s+1)}return W.byteLength(i)>100||W.byteLength(n)>155||e.linkname&&W.byteLength(e.linkname)>100?null:(W.write(r,i),W.write(r,Yt(e.mode&uB,6),100),W.write(r,Yt(e.uid,6),108),W.write(r,Yt(e.gid,6),116),_B(e.size,r,124),W.write(r,Yt(e.mtime.getTime()/1e3|0,11),136),r[156]=Jo+pB(e.type),e.linkname&&W.write(r,e.linkname,157),W.copy(gE,r,Nn),W.copy(oB,r,lc),e.uname&&W.write(r,e.uname,265),e.gname&&W.write(r,e.gname,297),W.write(r,Yt(e.devmajor||0,6),329),W.write(r,Yt(e.devminor||0,6),337),n&&W.write(r,n,345),W.write(r,Yt(yE(r),6),148),r)};fi.decode=function(e,r,i){let n=e[156]===0?0:e[156]-Jo,s=ui(e,0,100,r),o=Vt(e,100,8),a=Vt(e,108,8),l=Vt(e,116,8),u=Vt(e,124,12),f=Vt(e,136,12),c=dB(n),h=e[157]===0?null:ui(e,157,100,r),d=ui(e,265,32),y=ui(e,297,32),p=Vt(e,329,8),S=Vt(e,337,8),m=yE(e);if(m===256)return null;if(m!==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:y,devmajor:p,devminor:S,pax:null}};function fB(t){return W.equals(gE,t.subarray(Nn,Nn+6))}function cB(t){return W.equals(aB,t.subarray(Nn,Nn+6))&&W.equals(lB,t.subarray(lc,lc+2))}function hB(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function dB(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function pB(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function _E(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function yE(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function Yt(t,e){return t=t.toString(8),t.length>e?sB.slice(0,e)+" ":nB.slice(0,e-t.length)+t+" "}function gB(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function _B(t,e,r){t.toString(8).length>11?gB(t,e,r):W.write(e,Yt(t,11),r)}function yB(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],i;for(i=t.length-1;i>0;i--){let o=t[i];e?r.push(o):r.push(255-o)}let n=0,s=r.length;for(i=0;i<s;i++)n+=r[i]*Math.pow(256,i);return e?n:-1*n}function Vt(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return yB(t);{for(;e<t.length&&t[e]===32;)e++;let i=hB(_E(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(W.toString(t.subarray(e,i)),8)}}function ui(t,e,r,i){return W.toString(t.subarray(e,_E(t,0,e,e+r)),i)}function ac(t){let e=W.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var EE=g((HU,SE)=>{"use strict";var{Writable:mB,Readable:bB,getStreamError:mE}=oc(),wB=Gf(),bE=Xo(),ci=uc(),SB=bE.alloc(0),cc=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new wB,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return SB;let r=this._next(e);if(e===r.byteLength)return r;let i=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),i.push(r);return bE.concat(i)}_next(e){let r=this.queue.peek(),i=r.byteLength-this._offset;if(e>=i){let n=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=i,this.shifted+=i,n}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},hc=class extends bB{constructor(e,r,i){super(),this.header=r,this.offset=i,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(mE(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=wE(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},dc=class extends mB{constructor(e){super(e),e||(e={}),this._buffer=new cc,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=fc,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=ci.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),this._header.size===0||this._header.type==="directory"?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=ci.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=ci.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=ci.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?ci.decodePax(e):Object.assign({},this._paxGlobal,ci.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=wE(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(r){return this._continueWrite(r),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(e===null)return!1;this._missing-=e.byteLength;let r=this._stream.push(e);return this._missing===0?(this._stream.push(null),r&&this._stream._detach(),r&&this._locked===!1):r}_createStream(){return new hc(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let e=this._buffer.shiftFirst(this._missing);e!==null&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(e){let r=this._callback;this._callback=fc,r(e)}_write(e,r){this._callback=r,this._buffer.push(e),this._update()}_final(e){this._finished=this._missing===0&&this._buffer.buffered===0,e(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(mE(this)),e(null)}[Symbol.asyncIterator](){let e=null,r=null,i=null,n=null,s=null,o=this;return this.on("entry",u),this.on("error",h=>{e=h}),this.on("close",f),{[Symbol.asyncIterator](){return this},next(){return new Promise(l)},return(){return c(null)},throw(h){return c(h)}};function a(h){if(!s)return;let d=s;s=null,d(h)}function l(h,d){if(e)return d(e);if(n){h({value:n,done:!1}),n=null;return}r=h,i=d,a(null),o._finished&&r&&(r({value:void 0,done:!0}),r=i=null)}function u(h,d,y){s=y,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,y)=>{if(o.destroyed)return d({value:void 0,done:!0});o.once("close",function(){h?y(h):d({value:void 0,done:!0})})})}}};SE.exports=function(e){return new dc(e)};function fc(){}function wE(t){return t&=511,t&&512-t}});var xE=g((VU,pc)=>{"use strict";var vE={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{pc.exports=D("fs").constants||vE}catch{pc.exports=vE}});var IE=g((YU,OE)=>{"use strict";var{Readable:EB,Writable:vB,getStreamError:TE}=oc(),br=Xo(),hi=xE(),ea=uc(),xB=493,TB=420,RE=br.alloc(1024),_c=class extends vB{constructor(e,r,i){super({mapWritable:AB,eagerOpen:!0}),this.written=0,this.header=r,this._callback=i,this._linkname=null,this._isLinkname=r.type==="symlink"&&!r.linkname,this._isVoid=r.type!=="file"&&r.type!=="contiguous-file",this._finished=!1,this._pack=e,this._openCallback=null,this._pack._stream===null?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(this._callback===null)return;let r=this._callback;this._callback=null,r(e)}_continueOpen(){this._pack._stream===null&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,e!==null){if(this._pack.destroying)return e(new Error("pack stream destroyed"));if(this._pack._finalized)return e(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,r){if(this._isLinkname)return this._linkname=this._linkname?br.concat([this._linkname,e]):e,r(null);if(this._isVoid)return e.byteLength>0?r(new Error("No body allowed for this entry")):r();if(this.written+=e.byteLength,this._pack.push(e))return r();this._pack._drain=r}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?br.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),AE(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(new Error("Size mismatch"));this._finish(),e(null)}_getError(){return TE(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}},yc=class extends EB{constructor(e){super(e),this._drain=gc,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,r,i){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");typeof r=="function"&&(i=r,r=null),i||(i=gc),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=RB(e.mode)),e.mode||(e.mode=e.type==="directory"?xB:TB),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof r=="string"&&(r=br.from(r));let n=new _c(this,e,i);return br.isBuffer(r)?(e.size=r.byteLength,n.write(r),n.end(),n):(n._isVoid,n)}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(RE),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let r=ea.encode(e);if(r){this.push(r);return}}this._encodePax(e)}_encodePax(e){let r=ea.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),i={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:r.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(ea.encode(i)),this.push(r),AE(this,r.byteLength),i.size=e.size,i.type=e.type,this.push(ea.encode(i))}_doDrain(){let e=this._drain;this._drain=gc,e()}_predestroy(){let e=TE(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let r=this._pending.shift();r.destroy(e),r._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}};OE.exports=function(e){return new yc(e)};function RB(t){switch(t&hi.S_IFMT){case hi.S_IFBLK:return"block-device";case hi.S_IFCHR:return"character-device";case hi.S_IFDIR:return"directory";case hi.S_IFIFO:return"fifo";case hi.S_IFLNK:return"symlink"}return"file"}function gc(){}function AE(t,e){e&=511,e&&t.push(RE.subarray(0,512-e))}function AB(t){return br.isBuffer(t)?t:br.from(t)}});var DE=g(mc=>{"use strict";mc.extract=EE();mc.pack=IE()});var NE=g((ZU,LE)=>{"use strict";var OB=D("zlib"),IB=DE(),PE=ii(),Tt=function(t){if(!(this instanceof Tt))return new Tt(t);t=this.options=PE.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=IB.pack(t),this.compressor=!1,t.gzip&&(this.compressor=OB.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};Tt.prototype._onCompressorError=function(t){this.engine.emit("error",t)};Tt.prototype.append=function(t,e,r){var i=this;e.mtime=e.date;function n(o,a){if(o){r(o);return}i.engine.entry(e,a,function(l){r(l,e)})}if(e.sourceType==="buffer")n(null,t);else if(e.sourceType==="stream"&&e.stats){e.size=e.stats.size;var s=i.engine.entry(e,function(o){r(o,e)});t.pipe(s)}else e.sourceType==="stream"&&PE.collectStream(t,n)};Tt.prototype.finalize=function(){this.engine.finalize()};Tt.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tt.prototype.pipe=function(t,e){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(t,e):this.engine.pipe.apply(this.engine,arguments)};Tt.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};LE.exports=Tt});var ME=g((QU,kE)=>{"use strict";function DB(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var PB=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function CE(t){if(Buffer.isBuffer(t))return t;if(typeof t=="number")return Buffer.alloc(t);if(typeof t=="string")return Buffer.from(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function LB(t){let e=CE(4);return e.writeInt32BE(t,0),e}function bc(t,e){t=CE(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let r=~~e^-1;for(var i=0;i<t.length;i++)r=PB[(r^t[i])&255]^r>>>8;return r^-1}function wc(){return LB(bc.apply(null,arguments))}wc.signed=function(){return bc.apply(null,arguments)};wc.unsigned=function(){return bc.apply(null,arguments)>>>0};var NB=wc,CB=DB(NB);kE.exports=CB});var BE=g((XU,jE)=>{"use strict";var kB=D("util").inherits,qE=cr().Transform,MB=ME(),FE=ii(),Kt=function(t){if(!(this instanceof Kt))return new Kt(t);t=this.options=FE.defaults(t,{}),qE.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};kB(Kt,qE);Kt.prototype._transform=function(t,e,r){r(null,t)};Kt.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)};Kt.prototype.append=function(t,e,r){var i=this;e.crc32=0;function n(s,o){if(s){r(s);return}e.size=o.length||0,e.crc32=MB.unsigned(o),i.files.push(e),r(null,e)}e.sourceType==="buffer"?n(null,t):e.sourceType==="stream"&&FE.collectStream(t,n)};Kt.prototype.finalize=function(){this._writeStringified(),this.end()};jE.exports=Kt});var WE=g((JU,UE)=>{"use strict";var qB=Q0(),Cn={},Zt=function(t,e){return Zt.create(t,e)};Zt.create=function(t,e){if(Cn[t]){var r=new qB(t,e);return r.setFormat(t),r.setModule(new Cn[t](e)),r}else throw new Error("create("+t+"): format not registered")};Zt.registerFormat=function(t,e){if(Cn[t])throw new Error("register("+t+"): format already registered");if(typeof e!="function")throw new Error("register("+t+"): format module invalid");if(typeof e.prototype.append!="function"||typeof e.prototype.finalize!="function")throw new Error("register("+t+"): format module missing methods");Cn[t]=e};Zt.isRegisteredFormat=function(t){return!!Cn[t]};Zt.registerFormat("zip",IS());Zt.registerFormat("tar",NE());Zt.registerFormat("json",BE());UE.exports=Zt});import{readFileSync as zB,existsSync as YE,readdirSync as $B,mkdirSync as HB,writeFileSync as VB}from"fs";import{unlink as YB}from"fs/promises";import{join as di}from"path";import{randomUUID as pi}from"crypto";function Oc(t){return t?t.includes(`
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 XE={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"},JE={literal:"SET_VARIABLE",visual:"VISION_QUERY",dom:"TEXTUAL_QUERY",url:"GET_URL",title:"GET_TITLE"},ev=new Set(["CLICK","TYPE","FILL","HOVER","SCROLL_UNTIL_ELEMENT","UPLOAD","VISION_QUERY","DRAG_DROP","SELECT"]);function Ic(t,e){if(t==="analyze"){let r=e?.action_params?.analyzer_type??"";return JE[r]??"VISION_QUERY"}return XE[t]??t.toUpperCase()}function Dc(t,e){if(!t||!e)return"";try{let r=new Date(t);return isNaN(r.getTime())?"":new Date(r.getTime()+e).toISOString()}catch{return""}}function tv(t,e,r){let i=t.action_params??{},n=ev.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[h,d]of Object.entries(r)){let y=String(d);if(h.startsWith("secrets."))for(let[p,S]of c)S.includes(y)&&(a[p]=h);for(let[p,S]of c)S.includes(y)&&!(p in o)&&(o[p]=S)}return{operation:t.action_instruction??"",agent:n,operation_dict:s,variable:o,secrets:a,params:{}}}function rv(t){let e=t.assertion_tree??{};if(typeof e.passed=="boolean")return e.passed;let r=e.sub_results??[];return r.length===0?e.status==="passed":(e.composite_operator??"and")==="or"?r.some(n=>n.passed===!0):r.every(n=>n.passed===!0)}function Pc(t){return t.map(e=>({description:e.description??"",store_key:e.store_key??"",expected_value:e.expected??"",stored_value:e.extracted_value??"",operator:e.operator??"equals",transforms:e.transforms??[]}))}function iv(t){let e=t.assertion_tree??{},r=e.sub_results??[],i=Pc(r);return{operator:[],assertion_operands:[],left_operand:null,right_operand:null,operands:[],sub_results:r,sub_checks:i,composite_operator:e.composite_operator??"and",verification:e.verification??"",claim:e.description??""}}function nv(t){let r=(t.action_params??{}).assertion_tree??{},i=r.sub_results??[],n=Pc(i);return[{operation:t.action_instruction??"",agent:"Operation Agent",operation_dict:{operation_type:"ASSERTION",assertion_tree:{sub_results:i,sub_checks:n,composite_operator:r.composite_operator??"and",verification:"",claim:r.description??t.action_instruction??"",operator:[],assertion_operands:[],left_operand:null,right_operand:null,operands:[]}},variable:{},secrets:{},params:{}}]}function sv(t,e,r){let i=t.visual_data;if(!i||i.x==null||i.y==null)return null;let n=e?`${e}/test_screenshots`:"";return{x:i.x,y:i.y,confidence:0,bbox:i.bbox??null,bbox_source:i.bbox?"accessibility_tree":"fallback",viewport_width:i.viewport_width??1280,viewport_height:i.viewport_height??800,scale_factor:null,raw_image_url:n?`${n}/untagged_screenshot/${r}.webp`:"",raw_image_sas_url:"",annotated_image_url:"",annotated_image_sas_url:""}}function Rc(t,e={},r=""){let i=t.action_type,n=Ic(i,t),s=t.action_params??{},o=t.coordinates??null,a=t.selectors??null,l=t.timestamp??"",u=t.duration_ms??0,f=t.variables_used??{},c=t.action_id??pi(),h=pi(),d=Dc(l,u),y="",p="";i==="navigate"?(p=s.url??"",y=p):i==="type"||i==="fill"?y=s.text??"":i==="press_key"?y=s.key??"":i==="wait"?y=String(s.ms??s.timeout_ms??""):i==="evaluate_js"?y=s.script??"":i==="analyze"&&(s.analyzer_type??"")==="literal"&&(y=t.output_value??"");let S="";i==="go_back"?S="back":i==="go_forward"&&(S="forward");let m=kn(y,e),b=kn(p,e),v=kn(t.action_instruction??"",e),E=tv(t,n,f);return{operation_id:c,instruction_id:h,instruction:v,intent:v,operation_start:l,operation_end:d,status:t.status??"",command:n,name:"",target:"",value:m,message:"",operation_dict:"",frame:t.frame_info?JSON.stringify(t.frame_info):"",error_message:t.error??"",code_snippet:"",sub_instruction_obj:JSON.stringify(E),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/${c}.webp`:"",alternative_xpaths:[],attribute:"",value_description:"",url:b,navigation_direction:S,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"?rv(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,element_coordinates_ratio:[],element_bounds_ratio:[],x_coord:o?.x??null,y_coord: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,kaneaiMobileTaggingImageLimit:1,clicks_order_code:"se_js_ac",selector:a??"",selector_target:"",math_result_variable_name:"",math_result_variable_value:"",expression_tree:n==="ASSERTION"?iv(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:sv(t,r,c)}}function Ac(t,e,r={}){let i=t.action_type,n=Ic(i,t),s=t.timestamp??"",o=t.duration_ms??0,a=Dc(s,o),l=n==="ASSERTION"||n==="MATHEMATICAL_OPERATION";return{instruction_id:e.instruction_id,instruction_class:l?"non_driver_action":"driver_action",module_id:"",instruction:kn(t.action_instruction??"",r),command:n,error:null,parent_instruction_id:"",classification_layer_resp:n==="ASSERTION"?nv(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:[]}}function ov(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(y=>y.branch_index===u)?.sub_results??[];d.length>0&&(c=d.map(y=>({description:y.description??l.condition,store_key:y.store_key??"",expected_value:y.expected??"true",stored_value:y.extracted_value??void 0,operator:y.operator??"equals",transforms:y.transforms??[]})))}return{branch_index:u,condition:l.condition??null,branch_type:l.branch_type??"sub_objective",passed:f,sub_objective:null,custom_event:l.custom_event??null,children:f?e:[],sub_checks:l.condition?c:[],composite_operator:l.composite_operator??"and"}});return{content_type:"conditional_block",instruction_id:`if_else_${pi().slice(0,8)}`,instruction:t.action_instruction??"",instruction_class:"driver_action",command:"",status:t.status??"success",resolved_branch_index:n,branches:a,generative_id:"",generative_objective:"",variables_used:{},classification_layer_resp:[],classification_error:{},used_variables:[],user_variables:"[]",module_id:"",module_execution_index:0,module_version:"",plan_id:"",optional_flag:!1,max_retries:0,retries_delay:0,explicit_wait:0,implicit_wait:0,error:null,error_message:"",error_code:"",reason:"",start_timestamp:t.timestamp??"",end_timestamp:"",type:"agent_generated",hook:null,hook_type:null,evaluation_context:{},query_variables:{}}}function Lc(t,e,r){for(let i of t)i.content_type==="instruction"&&"generative_id"in i&&(i.generative_id=e,i.generative_objective=r)}function ta(t,e={},r=""){let i=[],n=0;for(;n<t.length;){let s=t[n],o=s.action_type;if(s.status==="error"&&o!=="assert"&&o!=="if_else"&&o!=="child_agent_start"&&o!=="child_agent_end"&&!(s.until_condition&&!s.error)){n+=1;continue}if(o==="child_agent_start"){let a=s.action_params?.child_id??"",l=s.action_params?.objective??"",u=[];n+=1;let f=1,c="error",h;for(;n<t.length&&f>0;){let E=t[n],T=E.action_type;if(T==="child_agent_start")f+=1;else if(T==="child_agent_end"&&(f-=1,f===0)){c=E.status??"success",h=E,n+=1;break}f>0&&u.push(E),n+=1}let d=ta(u,e,r);Lc(d,a,l);let y=h?.action_params?.result_code??null,p=h?.action_params?.reason_code??null,S=h?.action_params?.error_message??null,m=h?.action_params?.summary??null,b=h?.action_params?.one_liner??null,v=c==="error";i.push({content_type:"generative_block",instruction_id:`generative_block_${a}`,generative_id:a,objective:l,status:c,children:d,error_message:v?S??null:null,error_code:v?p??null:null,result_code:y??null,bifurcation_context:[],approach_reason:Oc(m),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 y=ta(c,e,r);a.push(...y)}i.push(ov(s,a));continue}else if(o==="query_tool"){n+=1;continue}else if(s.until_condition){let a=Rc(s,e,r),l=Ac(s,a,e);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:s.status==="success",children:[l],generative_id:"",generative_objective:"",variables_used:{},status:s.status??"success"})}else{let a=Rc(s,e,r),l=Ac(s,a,e);i.push(l)}n+=1}return i}function Nc(t,e={},r=""){let i=[];for(let n of t){let s=ta(n.records,e,r);if(s.length===0)continue;let o=pi().replace(/-/g,"");Lc(s,o,n.objective);let a=s.some(c=>"status"in c&&typeof c.status=="string"?c.status==="error"||c.status==="failed":!1),l=n.resultCode?parseInt(n.resultCode,10):null,u=l!==null&&!isNaN(l)&&l>=200,f=a||u?"error":"success";i.push({content_type:"generative_block",instruction_id:`generative_block_${o}`,generative_id:o,objective:n.objective,status:f,children:s,error_message:f==="error"?n.errorMessage??null:null,error_code:f==="error"?n.reasonCode??null:null,result_code:n.resultCode??null,bifurcation_context:[],approach_reason:Oc(n.summary),one_liner:n.oneLiner??null})}return{instructions:i}}var GE=ZE(WE(),1);import{createWriteStream as MB,readdirSync as qB,statSync as FB}from"fs";import{readFile as jB}from"fs/promises";import{join as Sc,basename as BB}from"path";import{tmpdir as UB}from"os";async function zE(t){let e=Sc(t,"runs"),r=Sc(UB(),`${BB(t)}_artifacts.zip`);return new Promise((i,n)=>{let s=MB(r),o=(0,GE.default)("zip",{zlib:{level:6}});s.on("close",()=>i(r)),o.on("error",n),o.pipe(s);try{let a=qB(e);for(let l of a){let u=Sc(e,l);FB(u).isDirectory()&&o.glob("**/*",{cwd:u,ignore:["**/screenshots/**","**/annotated/**"]},{prefix:l})}}catch{}o.finalize()})}async function $E(t){return jB(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 VE=class{config;controller;testId;constructor(e){this.config=e,this.controller=new xc(e.controllerBaseUrl,e.auth),this.testId=e.testId}log(e,r,i,n){this.config.log?.(e,r,i,n)}async execute(){let{onProgress:e}=this.config;try{if(!this.testId)return this.log("error","PIPELINE_ABORT","No test_id available"),{success:!1,testId:null,error:"No test_id available"};e("convert","running");let r=this.collectNdjsonPerRun(),i=r.reduce((m,b)=>m+b.records.length,0);this.log("info","PIPELINE_CONVERT","Collected NDJSON records",{total_records:i,run_groups:r.length});let n=this.config.variables??{};this.log("info","PIPELINE_CONVERT_VARS","Variables for template resolution",{keys:Object.keys(n)});let{instructions:s}=r.length>0?Nc(r,n,this.config.screenshotBaseUrl??""):{instructions:[]};this.log("info","PIPELINE_CONVERT_INSTRUCTIONS","Auteur instructions produced",{count:s.length});let o=this.buildExecutionEnvelope(s),a=Buffer.from(JSON.stringify(o));this.log("info","PIPELINE_CONVERT_BLOB","Blob created",{size_kb:+(a.length/1024).toFixed(1)}),e("convert","done"),e("zip","running"),this.log("info","PIPELINE_ZIP_START","Zipping session",{session_dir:this.config.sessionDir});let l=null,u;try{l=await zE(this.config.sessionDir),u=await $E(l),this.log("info","PIPELINE_ZIP_DONE","Zip complete",{size_mb:+(u.length/1024/1024).toFixed(1),path:l}),e("zip","done",`${(u.length/1024/1024).toFixed(1)}MB`)}finally{l&&await HB(l).catch(()=>{})}e("presign","running"),this.log("info","PIPELINE_PRESIGN_START","Requesting presigned URLs",{url:`${this.config.controllerBaseUrl}/upload/presign`,test_id:this.testId,session_id:this.config.sessionId});let f=await this.controller.getPresignedUrls(this.testId,this.config.sessionId,[{key:"artifacts",content_type:"application/zip",filename:`${this.config.sessionId}_artifacts.zip`},{key:"blob",content_type:"application/json",filename:`${this.config.commitId}.json`}]);this.log("info","PIPELINE_PRESIGN_OK","Presigned URLs received",{artifacts_url:f.urls.artifacts?.blob_url,blob_url:f.urls.blob?.blob_url}),e("presign","done"),e("upload","running"),this.log("info","PIPELINE_UPLOAD_START","Uploading artifacts and blob",{artifact_size_mb:+(u.length/1024/1024).toFixed(1),blob_size_kb:+(a.length/1024).toFixed(1)}),await Promise.all([Ec(f.urls.artifacts.upload_url,u,"application/zip"),Ec(f.urls.blob.upload_url,a,"application/json")]),this.log("info","PIPELINE_UPLOAD_OK","Upload complete"),e("upload","done"),e("finalize","running"),this.log("info","PIPELINE_FINALIZE_START","Finalizing test",{test_id:this.testId,commit_id:this.config.commitId});let c=new Tc(this.config.tmsBaseUrl,this.config.tmsUsername,this.config.tmsAccessKey),h=this.config.runObjectives&&this.config.runObjectives.length>0?this.config.runObjectives:[this.config.firstObjective],y=(await c.endTest(this.testId,{commit_id:this.config.commitId,time_taken:Math.round(this.config.totalDuration),steps_count:this.config.totalSteps,commit_message:this.config.firstObjective.slice(0,255),objectives:h})).testcase_id||void 0;this.log("info","PIPELINE_FINALIZE_OK","Test finalized",{testcase_id:y??"none"});let p;if(y&&this.config.shareApiBaseUrl)try{p=await this.generateShareLink(y),this.log("info","PIPELINE_SHARE_OK","Share link generated",{share_id:p})}catch(m){this.log("warn","PIPELINE_SHARE_FAILED","Share link failed",{error:String(m)})}e("finalize","done");let S;if(this.config.codeExport&&y){try{await this.triggerCodeExport(y),this.log("info","PIPELINE_CODE_EXPORT_START","Code export triggered")}catch(m){this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export failed",{error:String(m)})}e("code_export","running","Waiting for code generation\u2026");try{S=await this.pollAndDownloadCode(y,e),this.log("info","PIPELINE_CODE_EXPORT_OK","Code export complete",{dir:S}),e("code_export","done",S)}catch(m){let b=m instanceof Error?m.message:String(m);this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export failed",{error:b}),e("code_export","failed",b)}}else e("code_export","skipped");return this.log("info","PIPELINE_COMPLETE","Pipeline complete"),{success:!0,testId:this.testId,testcaseId:y,shareId:p,codeExportDir:S}}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(HE(n))try{let o=GB(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(!HE(n))continue;this.log("debug","PIPELINE_COLLECT_READ","Reading NDJSON file",{path:n});let s=WB(n,"utf-8");for(let o of s.split(`
14
- `)){let a=o.trim();if(a)try{r.push(JSON.parse(a))}catch{}}return r}return r}async generateShareLink(e){let r=`${this.config.shareApiBaseUrl}/lshs/api/v1.0/share-item/generate-sharable-link`;this.log("info","PIPELINE_SHARE_START","Requesting share link",{url:r,testcase_id:e});let i={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({entityIds:[e],entityType:"Test Case Details",expiresAt:7})},n=!!this.config.authResolver;this.log("debug","PIPELINE_SHARE_AUTH","Share link auth config",{resolver:n,fallback_auth_type:typeof this.config.auth=="string"?"bearer":"basic",tms_user:this.config.tmsUsername});let s=n?await this.config.authResolver.fetch(r,i):await fetch(r,{...i,headers:{...i.headers,Authorization:this.buildAuthHeader()}});if(!s.ok)throw new Error(`Share link API failed: ${s.status} ${await s.text()}`);let o=await s.json();if(!o.shareId)throw new Error("Share link API returned no shareId");return o.shareId}async triggerCodeExport(e){let r=`${this.config.tmsBaseUrl}/v2/test-case/${e}/code`;this.log("info","PIPELINE_CODE_EXPORT_POST","Triggering code export",{url:r});let i={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({code_name:"kane-cli-trigger",language:"python",framework:"playwright",folder_name:"",accessibility:"false"})},n=this.config.authResolver?await this.config.authResolver.fetch(r,i):await fetch(r,{...i,headers:{...i.headers,Authorization:this.buildAuthHeader()}});if(!n.ok)throw new Error(`Code export failed: ${n.status} ${await n.text()}`)}async pollAndDownloadCode(e,r){let i=`${this.config.tmsBaseUrl}/v2/test-case/${e}/codes?page=1&per_page=10`,n=this.config.exitTimeoutMs??3e5,s=5e3,o=Date.now()+n;this.log("info","PIPELINE_CODE_EXPORT_POLL","Polling for code export",{url:i,timeout_ms:n});let a=(l,u)=>this.config.authResolver?this.config.authResolver.fetch(l,u):fetch(l,{...u,headers:{...u?.headers,Authorization:this.buildAuthHeader()}});for(;Date.now()<o;){let l=await a(i,{method:"GET",headers:{Accept:"application/json"}});if(!l.ok){this.log("warn","PIPELINE_CODE_EXPORT_POLL_FAILED","Code export poll failed",{status:l.status}),await this.sleep(s);continue}let f=(await l.json()).data?.find(d=>d.code_name==="kane-cli-trigger");if(!f){this.log("debug","PIPELINE_CODE_EXPORT_WAITING","No kane-cli-trigger entry yet"),r("code_export","running","Waiting for code generation\u2026"),await this.sleep(s);continue}let c=f.status.toLowerCase();if(c==="in progress"||c==="in_progress"||c==="pending"){this.log("debug","PIPELINE_CODE_EXPORT_IN_PROGRESS","Code export in progress",{status:f.status}),r("code_export","running","Generating code\u2026"),await this.sleep(s);continue}if(!f.url||f.url.length===0)throw new Error(`Code export status=${f.status} but no files returned`);let h=this.config.codeExportDir??di(this.config.sessionDir,"code-export");zB(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 y=di(h,d.file_name),p=await fetch(d.file_url);if(!p.ok){this.log("warn","PIPELINE_CODE_EXPORT_FILE_FAILED","Failed to download file",{file_name:d.file_name,status:p.status});continue}let S=await p.text();$B(y,S,"utf-8"),this.log("info","PIPELINE_CODE_EXPORT_FILE_SAVED","File saved",{file_name:d.file_name,size_bytes:S.length})}return h}throw new Error("Code export timed out")}sleep(e){return new Promise(r=>setTimeout(r,e))}buildAuthHeader(){return typeof this.config.auth=="string"?`Bearer ${this.config.auth}`:vc(this.config.auth.username,this.config.auth.accessKey)}buildExecutionEnvelope(e){let r=this.config.runStatuses.every(o=>o==="passed")?"success":"error",i=this.config.variableIds??{},n=[];if(this.config.variables)for(let[o,a]of Object.entries(this.config.variables)){if(a.secret)continue;let l=o.startsWith("global.")?o.slice(7):o;n.push({id:i[l]??0,name:l,value:a.value,session_value:a.value,is_persist:!1,environment_id:0,environment_name:"No Env"})}let s=[];for(let o of this.collectNdjsonPerRun())for(let a of o.records)a.output_variable&&a.output_value!=null&&s.push({name:a.output_variable,value:String(a.output_value),value_type:"test_level",variable_description:"ANALYZE result"});return{test_id:this.testId,version:"v4",session_id:this.config.sessionId,org_id:String(this.config.orgId),user_id:String(this.config.userId),url:this.config.firstUrl??"",start_timestamp:this.config.startedAt,end_timestamp:this.config.endedAt,status:r,commit_id:this.config.commitId,instructions:e,modules:[],uploaded_files:[],test_params:[],test_level_variables:JSON.stringify(s),test_global_variables:n,max_network_wait:0,wait_buffer:0,network_throttle:{},secrets:this.config.secrets??[],totp:[],environment_id:0,environment:"",mobile_browser:!1,native_popups:[],smartui:{},module_index:0}}};export{VE as a};
13
+ `).map(e=>e.trim()).filter(Boolean):t.split(". ").map(e=>e.trim()).filter(Boolean).map(e=>e.endsWith(".")?e:e+"."):[]}function kn(t,e){return!t||!e?t:t.replace(/\{\{(.+?)\}\}/g,(r,i)=>{let n=e[i];return n?n.value:r}).replace(/\$\{(.+?)\}/g,(r,i)=>{let n=e[i];return n?n.value:r})}var ev={click:"CLICK",double_click:"CLICK",type:"TYPE",fill:"TYPE",select:"SELECT",hover:"HOVER",drag:"DRAG_DROP",upload_files:"UPLOAD",navigate:"OPEN",go_back:"NAVIGATE",go_forward:"NAVIGATE",refresh:"REFRESH",press_key:"SENDKEYS",scroll:"SCROLL_PIXELS",scroll_into_view:"SCROLL_UNTIL_ELEMENT",wait:"WAIT",wait_until:"WAIT_UNTIL",wait_for_load:"WAIT_FOR_LOAD",switch_tab:"SWITCH_TAB",new_tab:"NEW_TAB",close_tab:"CLOSE_TAB",evaluate_js:"EVALUATE_JS",vision_query:"VISION_QUERY",textual_query:"TEXTUAL_QUERY",get_url:"GET_URL",get_title:"GET_TITLE",assert:"ASSERTION",math:"MATHEMATICAL_OPERATION"},tv={literal:"SET_VARIABLE",visual:"VISION_QUERY",dom:"TEXTUAL_QUERY",url:"GET_URL",title:"GET_TITLE"},rv=new Set(["CLICK","TYPE","FILL","HOVER","SCROLL_UNTIL_ELEMENT","UPLOAD","VISION_QUERY","DRAG_DROP","SELECT"]);function Ic(t,e){if(t==="analyze"){let r=e?.action_params?.analyzer_type??"";return tv[r]??"VISION_QUERY"}return ev[t]??t.toUpperCase()}function Dc(t,e){if(!t||!e)return"";try{let r=new Date(t);return isNaN(r.getTime())?"":new Date(r.getTime()+e).toISOString()}catch{return""}}function iv(t,e,r){let i=t.action_params??{},n=rv.has(e)?"Vision Agent":"Operation Agent",s={operation_type:e};e==="OPEN"&&(s.url=i.url??""),e==="SET_VARIABLE"&&(s.variable_name=t.output_variable??i.key??"",s.variable_value=t.output_value??"");let o={},a={},l=t.action_instruction??"",u=i.text??"",f=i.url??"",c=[["intent",l],["value",u],["url",f]];for(let[h,d]of Object.entries(r)){let y=String(d);if(h.startsWith("secrets."))for(let[p,S]of c)S.includes(y)&&(a[p]=h);for(let[p,S]of c)S.includes(y)&&!(p in o)&&(o[p]=S)}return{operation:t.action_instruction??"",agent:n,operation_dict:s,variable:o,secrets:a,params:{}}}function nv(t){let e=t.assertion_tree??{};if(typeof e.passed=="boolean")return e.passed;let r=e.sub_results??[];return r.length===0?e.status==="passed":(e.composite_operator??"and")==="or"?r.some(n=>n.passed===!0):r.every(n=>n.passed===!0)}function Pc(t){return t.map(e=>({description:e.description??"",store_key:e.store_key??"",expected_value:e.expected??"",stored_value:e.extracted_value??"",operator:e.operator??"equals",transforms:e.transforms??[]}))}function sv(t){let e=t.assertion_tree??{},r=e.sub_results??[],i=Pc(r);return{operator:[],assertion_operands:[],left_operand:null,right_operand:null,operands:[],sub_results:r,sub_checks:i,composite_operator:e.composite_operator??"and",verification:e.verification??"",claim:e.description??""}}function ov(t){let r=(t.action_params??{}).assertion_tree??{},i=r.sub_results??[],n=Pc(i);return[{operation:t.action_instruction??"",agent:"Operation Agent",operation_dict:{operation_type:"ASSERTION",assertion_tree:{sub_results:i,sub_checks:n,composite_operator:r.composite_operator??"and",verification:"",claim:r.description??t.action_instruction??"",operator:[],assertion_operands:[],left_operand:null,right_operand:null,operands:[]}},variable:{},secrets:{},params:{}}]}function av(t,e,r){let i=t.visual_data;if(!i||i.x==null||i.y==null)return null;let n=e?`${e}/test_screenshots`:"";return{x:i.x,y:i.y,confidence:0,bbox:i.bbox??null,bbox_source:i.bbox?"accessibility_tree":"fallback",viewport_width:i.viewport_width??1280,viewport_height:i.viewport_height??800,scale_factor:null,raw_image_url:n?`${n}/untagged_screenshot/${r}.webp`:"",raw_image_sas_url:"",annotated_image_url:"",annotated_image_sas_url:""}}function Rc(t,e={},r=""){let i=t.action_type,n=Ic(i,t),s=t.action_params??{},o=t.coordinates??null,a=t.selectors??null,l=t.timestamp??"",u=t.duration_ms??0,f=t.variables_used??{},c=t.action_id??pi(),h=pi(),d=Dc(l,u),y="",p="";i==="navigate"?(p=s.url??"",y=p):i==="type"||i==="fill"?y=s.text??"":i==="press_key"?y=s.key??"":i==="wait"?y=String(s.ms??s.timeout_ms??""):i==="evaluate_js"?y=s.script??"":i==="analyze"&&(s.analyzer_type??"")==="literal"&&(y=t.output_value??"");let S="";i==="go_back"?S="back":i==="go_forward"&&(S="forward");let m=kn(y,e),b=kn(p,e),v=kn(t.action_instruction??"",e),E=iv(t,n,f);return{operation_id:c,instruction_id:h,instruction:v,intent:v,operation_start:l,operation_end:d,status:t.status??"",command:n,name:"",target:"",value:m,message:"",operation_dict:"",frame:t.frame_info?JSON.stringify(t.frame_info):"",error_message:t.error??"",code_snippet:"",sub_instruction_obj:JSON.stringify(E),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/${c}.webp`:"",alternative_xpaths:[],attribute:"",value_description:"",url:b,navigation_direction:S,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,element_coordinates_ratio:[],element_bounds_ratio:[],x_coord:o?.x??null,y_coord: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,kaneaiMobileTaggingImageLimit:1,clicks_order_code:"se_js_ac",selector:a??"",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,c),reasoning:i==="analyze"?s.query??"":""}}function Ac(t,e,r={}){let i=t.action_type,n=Ic(i,t),s=t.timestamp??"",o=t.duration_ms??0,a=Dc(s,o),l=n==="ASSERTION"||n==="MATHEMATICAL_OPERATION";return{instruction_id:e.instruction_id,instruction_class:l?"non_driver_action":"driver_action",module_id:"",instruction:kn(t.action_instruction??"",r),command:n,error:null,parent_instruction_id:"",classification_layer_resp:n==="ASSERTION"?ov(t):[],classification_error:{},operations:[e],status:t.status??"",start_timestamp:s,end_timestamp:a,type:"agent_generated",tags:[],html_paths:[],optional_flag:!1,max_retries:0,retries_delay:0,explicit_wait:0,implicit_wait:0,content_type:"instruction",js_snippet:i==="evaluate_js"?t.action_params?.script??"":"",user_variables:"[]",api_data:{},params_used:!1,hard_assertion:n==="ASSERTION"?t.action_params?.failure_condition==="hard":!1,expected_outcome:"",module_execution_index:0,module_version:null,network_throttle:{},isEdited:!1,use_query_assertion_v2:!1,db_query:"",db_details:{},network_assertion_content:{},screenshot_command:"",smartui_contents:{},generative_id:"",plan_id:"",generative_objective:"",error_message:"",error_code:"",reason:"",title:"",used_variables:[]}}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(y=>y.branch_index===u)?.sub_results??[];d.length>0&&(c=d.map(y=>({description:y.description??l.condition,store_key:y.store_key??"",expected_value:y.expected??"true",stored_value:y.extracted_value??void 0,operator:y.operator??"equals",transforms:y.transforms??[]})))}return{branch_index:u,condition:l.condition??null,branch_type:l.branch_type??"sub_objective",passed:f,sub_objective:null,custom_event:l.custom_event??null,children:f?e:[],sub_checks:l.condition?c:[],composite_operator:l.composite_operator??"and"}});return{content_type:"conditional_block",instruction_id:`if_else_${pi().slice(0,8)}`,instruction:t.action_instruction??"",instruction_class:"driver_action",command:"",status:t.status??"success",resolved_branch_index:n,branches:a,generative_id:"",generative_objective:"",variables_used:{},classification_layer_resp:[],classification_error:{},used_variables:[],user_variables:"[]",module_id:"",module_execution_index:0,module_version:"",plan_id:"",optional_flag:!1,max_retries:0,retries_delay:0,explicit_wait:0,implicit_wait:0,error:null,error_message:"",error_code:"",reason:"",start_timestamp:t.timestamp??"",end_timestamp:"",type:"agent_generated",hook:null,hook_type:null,evaluation_context:{},query_variables:{}}}function Lc(t,e,r){for(let i of t)i.content_type==="instruction"&&"generative_id"in i&&(i.generative_id=e,i.generative_objective=r)}function ta(t,e={},r=""){let i=[],n=0;for(;n<t.length;){let s=t[n],o=s.action_type;if(s.status==="error"&&o!=="assert"&&o!=="if_else"&&o!=="child_agent_start"&&o!=="child_agent_end"&&!(s.until_condition&&!s.error)){n+=1;continue}if(o==="child_agent_start"){let a=s.action_params?.child_id??"",l=s.action_params?.objective??"",u=[];n+=1;let f=1,c="error",h;for(;n<t.length&&f>0;){let E=t[n],T=E.action_type;if(T==="child_agent_start")f+=1;else if(T==="child_agent_end"&&(f-=1,f===0)){c=E.status??"success",h=E,n+=1;break}f>0&&u.push(E),n+=1}let d=ta(u,e,r);Lc(d,a,l);let y=h?.action_params?.result_code??null,p=h?.action_params?.reason_code??null,S=h?.action_params?.error_message??null,m=h?.action_params?.summary??null,b=h?.action_params?.one_liner??null,v=c==="error";i.push({content_type:"generative_block",instruction_id:`generative_block_${a}`,generative_id:a,objective:l,status:c,children:d,error_message:v?S??null:null,error_code:v?p??null:null,result_code:y??null,bifurcation_context:[],approach_reason:Oc(m),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 y=ta(c,e,r);a.push(...y)}i.push(lv(s,a));continue}else if(o==="query_tool"){n+=1;continue}else if(s.until_condition){let a=Rc(s,e,r),l=Ac(s,a,e);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:s.status==="success",children:[l],generative_id:"",generative_objective:"",variables_used:{},status:s.status??"success"})}else{let a=Rc(s,e,r),l=Ac(s,a,e);i.push(l)}n+=1}return i}function Nc(t,e={},r=""){let i=[];for(let n of t){let s=ta(n.records,e,r);if(s.length===0)continue;let o=pi().replace(/-/g,"");Lc(s,o,n.objective);let a=s.some(c=>"status"in c&&typeof c.status=="string"?c.status==="error"||c.status==="failed":!1),l=n.resultCode?parseInt(n.resultCode,10):null,u=l!==null&&!isNaN(l)&&l>=200,f=a||u?"error":"success";i.push({content_type:"generative_block",instruction_id:`generative_block_${o}`,generative_id:o,objective:n.objective,status:f,children:s,error_message:f==="error"?n.errorMessage??null:null,error_code:f==="error"?n.reasonCode??null:null,result_code:n.resultCode??null,bifurcation_context:[],approach_reason:Oc(n.summary),one_liner:n.oneLiner??null})}return{instructions:i}}var GE=XE(WE(),1);import{createWriteStream as FB,readdirSync as jB,statSync as BB}from"fs";import{readFile as UB}from"fs/promises";import{join as Sc,basename as WB}from"path";import{tmpdir as GB}from"os";async function zE(t){let e=Sc(t,"runs"),r=Sc(GB(),`${WB(t)}_artifacts.zip`);return new Promise((i,n)=>{let s=FB(r),o=(0,GE.default)("zip",{zlib:{level:6}});s.on("close",()=>i(r)),o.on("error",n),o.pipe(s);try{let a=jB(e);for(let l of a){let u=Sc(e,l);BB(u).isDirectory()&&o.glob("**/*",{cwd:u,ignore:["**/screenshots/**","**/annotated/**"]},{prefix:l})}}catch{}o.finalize()})}async function $E(t){return UB(t)}async function Ec(t,e,r){let i=await fetch(t,{method:"PUT",headers:{"Content-Type":r,"x-ms-blob-type":"BlockBlob"},body:new Uint8Array(e)});if(!i.ok)throw new Error(`Azure upload failed: ${i.status} ${await i.text()}`)}function HE(t){return{url:`${t.tmsBaseUrl}/kane-cli/v1/test-case/${t.testcaseId}/code`,body:{code_name:"kane-cli-trigger",language:t.codeExport.language,framework:"playwright",folder_name:"",accessibility:"false",skipCodeValidation:t.codeExport.skipValidation}}}function VE(t){return`${t.tmsBaseUrl}/kane-cli/v1/test-case/${t.testcaseId}/codes?page=1&per_page=10`}var KE=class{config;controller;testId;constructor(e){this.config=e,this.controller=new Tc(e.controllerBaseUrl,e.auth),this.testId=e.testId}log(e,r,i,n){this.config.log?.(e,r,i,n)}async execute(){let{onProgress:e}=this.config;try{if(!this.testId)return this.log("error","PIPELINE_ABORT","No test_id available"),{success:!1,testId:null,error:"No test_id available"};e("convert","running");let r=this.collectNdjsonPerRun(),i=r.reduce((m,b)=>m+b.records.length,0);this.log("info","PIPELINE_CONVERT","Collected NDJSON records",{total_records:i,run_groups:r.length});let n=this.config.variables??{};this.log("info","PIPELINE_CONVERT_VARS","Variables for template resolution",{keys:Object.keys(n)});let{instructions:s}=r.length>0?Nc(r,n,this.config.screenshotBaseUrl??""):{instructions:[]};this.log("info","PIPELINE_CONVERT_INSTRUCTIONS","Auteur instructions produced",{count:s.length});let o=this.buildExecutionEnvelope(s),a=Buffer.from(JSON.stringify(o));this.log("info","PIPELINE_CONVERT_BLOB","Blob created",{size_kb:+(a.length/1024).toFixed(1)}),e("convert","done"),e("zip","running"),this.log("info","PIPELINE_ZIP_START","Zipping session",{session_dir:this.config.sessionDir});let l=null,u;try{l=await zE(this.config.sessionDir),u=await $E(l),this.log("info","PIPELINE_ZIP_DONE","Zip complete",{size_mb:+(u.length/1024/1024).toFixed(1),path:l}),e("zip","done",`${(u.length/1024/1024).toFixed(1)}MB`)}finally{l&&await YB(l).catch(()=>{})}e("presign","running"),this.log("info","PIPELINE_PRESIGN_START","Requesting presigned URLs",{url:`${this.config.controllerBaseUrl}/upload/presign`,test_id:this.testId,session_id:this.config.sessionId});let f=await this.controller.getPresignedUrls(this.testId,this.config.sessionId,[{key:"artifacts",content_type:"application/zip",filename:`${this.config.sessionId}_artifacts.zip`},{key:"blob",content_type:"application/json",filename:`${this.config.commitId}.json`}]);this.log("info","PIPELINE_PRESIGN_OK","Presigned URLs received",{artifacts_url:f.urls.artifacts?.blob_url,blob_url:f.urls.blob?.blob_url}),e("presign","done"),e("upload","running"),this.log("info","PIPELINE_UPLOAD_START","Uploading artifacts and blob",{artifact_size_mb:+(u.length/1024/1024).toFixed(1),blob_size_kb:+(a.length/1024).toFixed(1)}),await Promise.all([Ec(f.urls.artifacts.upload_url,u,"application/zip"),Ec(f.urls.blob.upload_url,a,"application/json")]),this.log("info","PIPELINE_UPLOAD_OK","Upload complete"),e("upload","done"),e("finalize","running"),this.log("info","PIPELINE_FINALIZE_START","Finalizing test",{test_id:this.testId,commit_id:this.config.commitId});let c=new xc(this.config.tmsBaseUrl,this.config.tmsUsername,this.config.tmsAccessKey),h=this.config.runObjectives&&this.config.runObjectives.length>0?this.config.runObjectives:[this.config.firstObjective],y=(await c.endTest(this.testId,{commit_id:this.config.commitId,time_taken:Math.round(this.config.totalDuration),steps_count:this.config.totalSteps,commit_message:this.config.firstObjective.slice(0,255),objectives:h})).testcase_id||void 0;this.log("info","PIPELINE_FINALIZE_OK","Test finalized",{testcase_id:y??"none"});let p;if(y&&this.config.shareApiBaseUrl)try{p=await this.generateShareLink(y),this.log("info","PIPELINE_SHARE_OK","Share link generated",{share_id:p})}catch(m){this.log("warn","PIPELINE_SHARE_FAILED","Share link failed",{error:String(m)})}e("finalize","done");let S;if(this.config.codeExport?.enabled&&y){try{await this.triggerCodeExport(y),this.log("info","PIPELINE_CODE_EXPORT_START","Code export triggered")}catch(m){this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export failed",{error:String(m)})}e("code_export","running","Waiting for code generation\u2026");try{S=await this.pollAndDownloadCode(y,e),this.log("info","PIPELINE_CODE_EXPORT_OK","Code export complete",{dir:S}),e("code_export","done",S)}catch(m){let b=m instanceof Error?m.message:String(m);this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export failed",{error:b}),e("code_export","failed",b)}}else e("code_export","skipped");return this.log("info","PIPELINE_COMPLETE","Pipeline complete"),{success:!0,testId:this.testId,testcaseId:y,shareId:p,codeExportDir:S}}catch(r){return{success:!1,testId:this.testId,error:r instanceof Error?r.message:String(r)}}}async runCodeExport(e,r){let i=r??this.config.onProgress;try{await this.triggerCodeExport(e),this.log("info","PIPELINE_CODE_EXPORT_TRIGGER","Code export triggered",{testcase_id:e})}catch(n){this.log("error","PIPELINE_CODE_EXPORT_TRIGGER_FAILED","Code export trigger failed",{error:String(n)})}i("code_export","running","Waiting for code generation\u2026");try{let n=await this.pollAndDownloadCode(e,i);return this.log("info","PIPELINE_CODE_EXPORT_OK","Code export complete",{dir:n}),i("code_export","done",n),n}catch(n){let s=n instanceof Error?n.message:String(n);this.log("error","PIPELINE_CODE_EXPORT_FAILED","Code export failed",{error:s}),i("code_export","failed",s);return}}collectNdjsonPerRun(){let e=[],r=this.config.runObjectives??[],i=this.config.runMetadata??[];for(let n=0;n<this.config.runDirs.length;n++){let s=this.config.runDirs[n],o=r[n]||this.config.firstObjective,a=i[n],l=this.readNdjsonFromDir(s);l.length>0&&e.push({objective:o,records:l,resultCode:a?.resultCode,reasonCode:a?.reasonCode,errorMessage:a?.errorMessage,summary:a?.summary,oneLiner:a?.oneLiner})}if(e.length===0){let n=di(this.config.sessionDir,"runs");if(YE(n))try{let o=$B(n,{withFileTypes:!0}).filter(a=>a.isDirectory()).map(a=>a.name).sort();for(let a of o){let l=di(n,a),u=this.readNdjsonFromDir(l);u.length>0&&e.push({objective:this.config.firstObjective,records:u})}}catch{}}return e}readNdjsonFromDir(e){let r=[],i=[di(e,"run-test","actions.ndjson"),di(e,"actions.ndjson")];for(let n of i){if(!YE(n))continue;this.log("debug","PIPELINE_COLLECT_READ","Reading NDJSON file",{path:n});let s=zB(n,"utf-8");for(let o of s.split(`
14
+ `)){let a=o.trim();if(a)try{r.push(JSON.parse(a))}catch{}}return r}return r}async generateShareLink(e){let r=`${this.config.shareApiBaseUrl}/lshs/api/v1.0/share-item/generate-sharable-link`;this.log("info","PIPELINE_SHARE_START","Requesting share link",{url:r,testcase_id:e});let i={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({entityIds:[e],entityType:"Test Case Details",expiresAt:7})},n=!!this.config.authResolver;this.log("debug","PIPELINE_SHARE_AUTH","Share link auth config",{resolver:n,fallback_auth_type:typeof this.config.auth=="string"?"bearer":"basic",tms_user:this.config.tmsUsername});let s=n?await this.config.authResolver.fetch(r,i):await fetch(r,{...i,headers:{...i.headers,Authorization:this.buildAuthHeader()}});if(!s.ok)throw new Error(`Share link API failed: ${s.status} ${await s.text()}`);let o=await s.json();if(!o.shareId)throw new Error("Share link API returned no shareId");return o.shareId}async triggerCodeExport(e){if(!this.config.codeExport)throw new Error("triggerCodeExport called without resolved codeExport config");let{url:r,body:i}=HE({tmsBaseUrl:this.config.tmsBaseUrl,testcaseId:e,codeExport:this.config.codeExport});this.log("info","PIPELINE_CODE_EXPORT_POST","Triggering code export",{url:r});let n={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(i)},s=this.config.authResolver?await this.config.authResolver.fetch(r,n):await fetch(r,{...n,headers:{...n.headers,Authorization:this.buildAuthHeader()}});if(!s.ok)throw new Error(`Code export failed: ${s.status} ${await s.text()}`)}async pollAndDownloadCode(e,r){let i=VE({tmsBaseUrl:this.config.tmsBaseUrl,testcaseId:e}),n=this.config.exitTimeoutMs??3e5,s=5e3,o=Date.now()+n;this.log("info","PIPELINE_CODE_EXPORT_POLL","Polling for code export",{url:i,timeout_ms:n});let a=(l,u)=>this.config.authResolver?this.config.authResolver.fetch(l,u):fetch(l,{...u,headers:{...u?.headers,Authorization:this.buildAuthHeader()}});for(;Date.now()<o;){let l=await a(i,{method:"GET",headers:{Accept:"application/json"}});if(!l.ok){this.log("warn","PIPELINE_CODE_EXPORT_POLL_FAILED","Code export poll failed",{status:l.status}),await this.sleep(s);continue}let f=(await l.json()).data?.find(d=>d.code_name==="kane-cli-trigger");if(!f){this.log("debug","PIPELINE_CODE_EXPORT_WAITING","No kane-cli-trigger entry yet"),r("code_export","running","Waiting for code generation\u2026"),await this.sleep(s);continue}let c=f.status.toLowerCase();if(c==="in progress"||c==="in_progress"||c==="pending"){this.log("debug","PIPELINE_CODE_EXPORT_IN_PROGRESS","Code export in progress",{status:f.status}),r("code_export","running","Generating code\u2026"),await this.sleep(s);continue}if(!f.url||f.url.length===0)throw new Error(`Code export status=${f.status} but no files returned`);let h=this.config.codeExportDir??di(this.config.sessionDir,"code-export");HB(h,{recursive:!0}),this.log("info","PIPELINE_CODE_EXPORT_DOWNLOAD","Downloading code files",{file_count:f.url.length,dir:h}),r("code_export","running",`Downloading ${f.url.length} files\u2026`);for(let d of f.url){let y=di(h,d.file_name),p=await fetch(d.file_url);if(!p.ok){this.log("warn","PIPELINE_CODE_EXPORT_FILE_FAILED","Failed to download file",{file_name:d.file_name,status:p.status});continue}let S=await p.text();VB(y,S,"utf-8"),this.log("info","PIPELINE_CODE_EXPORT_FILE_SAVED","File saved",{file_name:d.file_name,size_bytes:S.length})}return h}throw new Error("Code export timed out")}sleep(e){return new Promise(r=>setTimeout(r,e))}buildAuthHeader(){return typeof this.config.auth=="string"?`Bearer ${this.config.auth}`:vc(this.config.auth.username,this.config.auth.accessKey)}buildExecutionEnvelope(e){let r=this.config.runStatuses.every(o=>o==="passed")?"success":"error",i=this.config.variableIds??{},n=[];if(this.config.variables)for(let[o,a]of Object.entries(this.config.variables)){if(a.secret)continue;let l=o.startsWith("global.")?o.slice(7):o;n.push({id:i[l]??0,name:l,value:a.value,session_value:a.value,is_persist:!1,environment_id:0,environment_name:"No Env"})}let s=[];for(let o of this.collectNdjsonPerRun())for(let a of o.records)a.output_variable&&a.output_value!=null&&s.push({name:a.output_variable,value:String(a.output_value),value_type:"test_level",variable_description:"ANALYZE result"});return{test_id:this.testId,version:"v4",session_id:this.config.sessionId,org_id:String(this.config.orgId),user_id:String(this.config.userId),url:this.config.firstUrl??"",start_timestamp:this.config.startedAt,end_timestamp:this.config.endedAt,status:r,commit_id:this.config.commitId,instructions:e,modules:[],uploaded_files:[],test_params:[],test_level_variables:JSON.stringify(s),test_global_variables:n,max_network_wait:0,wait_buffer:0,network_throttle:{},secrets:this.config.secrets??[],totp:[],environment_id:0,environment:"",mobile_browser:!1,native_popups:[],smartui:{},module_index:0}}};export{KE as a};
15
15
  /*! Bundled license information:
16
16
 
17
17
  normalize-path/index.js: