@microsoft/cmr-cli 0.32.3 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Add-FU57YE5G.js → Add-75RSJNM4.js} +2 -2
- package/dist/{AddConfig-CI7KNLIG.js → AddConfig-4SAYYOBQ.js} +2 -2
- package/dist/{AddConnector-WH4IU3ND.js → AddConnector-P4R4NJ5P.js} +2 -2
- package/dist/{AddDeployment-GWFCPAL5.js → AddDeployment-TBA3AAGD.js} +2 -2
- package/dist/{AddDeploymentBinding-RFLI6DKH.js → AddDeploymentBinding-6FZ7Y5JM.js} +2 -2
- package/dist/{AddRayfin-VRCFEOIL.js → AddRayfin-35GBGCWF.js} +2 -2
- package/dist/{Alter-JFFT5JOA.js → Alter-U7WDVOMU.js} +2 -2
- package/dist/{AuthStatus-WCZYGI5G.js → AuthStatus-XA6RGYYZ.js} +2 -2
- package/dist/{AuthSwitch-XJMG7IUR.js → AuthSwitch-2FXB7WFU.js} +2 -2
- package/dist/Bin.js +1 -1
- package/dist/{BuildMaafApp-7AUZHYOQ.js → BuildMaafApp-3EGRD23G.js} +2 -2
- package/dist/{Clear-7B7CDIPV.js → Clear-MZGQZ2XK.js} +2 -2
- package/dist/{Cli-XZ4SJKBZ.js → Cli-6A2HUP7R.js} +3 -3
- package/dist/{CloneMaafApp-7W246RZA.js → CloneMaafApp-YAEYSP23.js} +2 -2
- package/dist/CreateMaafApp-2XYROOHB.js +23 -0
- package/dist/CreateMaafProject-Q7KIVAR2.js +11 -0
- package/dist/{DeleteMaafApp-TFGWGJO3.js → DeleteMaafApp-G3SL3GGP.js} +2 -2
- package/dist/DeployMaafApp-DBJONCUH.js +8 -0
- package/dist/DeployMaafProject-SOMMKVJO.js +11 -0
- package/dist/{DeploymentApprovals-WTXBXCKE.js → DeploymentApprovals-Y67LSQQG.js} +2 -2
- package/dist/{Dev-CIEWFRXR.js → Dev-TXJLPT7K.js} +3 -3
- package/dist/FeatureSettings-LYV6QUZB.js +11 -0
- package/dist/{GenerateCode-UQCHTRGP.js → GenerateCode-Z2OY3SZR.js} +2 -2
- package/dist/{GetMaafBuildStatus-6ZSLIZCH.js → GetMaafBuildStatus-ZR5GCREL.js} +2 -2
- package/dist/{GetMaafProjectDeployStatus-NZEMVQGJ.js → GetMaafProjectDeployStatus-OJ56DPZ6.js} +2 -2
- package/dist/{GetSettings-MVVEXMJC.js → GetSettings-64N4P6L7.js} +2 -2
- package/dist/{InfoMaafApp-7Z6OJCHD.js → InfoMaafApp-FJM7UI5H.js} +2 -2
- package/dist/InfoMaafProject-EU6OQ7DX.js +11 -0
- package/dist/{Init-PBH2IXVK.js → Init-MTONJT7V.js} +2 -2
- package/dist/{ListConnectorActions-UERYZ2C7.js → ListConnectorActions-PJTNNWLH.js} +2 -2
- package/dist/{ListConnectors-2FUTJMHY.js → ListConnectors-JYNVPB3O.js} +2 -2
- package/dist/{ListDeployments-4YWCHVKF.js → ListDeployments-UV6J6WA5.js} +2 -2
- package/dist/ListMaafApps-QPEX7JA4.js +11 -0
- package/dist/{ListMaafProjects-GNUXZSYL.js → ListMaafProjects-RDR2S3HD.js} +2 -2
- package/dist/{ListSchema-QKVHVPHB.js → ListSchema-IR7FTBRR.js} +2 -2
- package/dist/{ListSettings-IIA5OGMP.js → ListSettings-3M7UOOLI.js} +2 -2
- package/dist/{Login-BT6UTPCZ.js → Login-G7TNQISG.js} +2 -2
- package/dist/{Logout-FBJE35Q5.js → Logout-AOOISVWK.js} +2 -2
- package/dist/{MockFetch-LQLQGTNT.js → MockFetch-GKQMNDW3.js} +2 -2
- package/dist/{NodeMsalAuthenticationProvider-5TJFMHR4.js → NodeMsalAuthenticationProvider-6ABSS6QK.js} +2 -2
- package/dist/{Pack-TSFHSTB5.js → Pack-QJZCMVEM.js} +2 -2
- package/dist/{PackProject-T575KJQ4.js → PackProject-Y3Q3KOTC.js} +2 -2
- package/dist/{PlayMaafApp-74TQEAO5.js → PlayMaafApp-MH66OLOV.js} +2 -2
- package/dist/ProjectApprovals-NTFYLH3W.js +13 -0
- package/dist/{ProjectRoleAssignments-AI2FQ2VX.js → ProjectRoleAssignments-7IDK6SGJ.js} +2 -2
- package/dist/{RefreshDataSource-VARFN3IV.js → RefreshDataSource-CISFHQNA.js} +2 -2
- package/dist/{RefreshGitAuth-DC5NAZBJ.js → RefreshGitAuth-NUQ7JNJA.js} +2 -2
- package/dist/{Remove-MCQZVI3K.js → Remove-IYDTKDJE.js} +2 -2
- package/dist/{RemoveDataSource-RRND46QZ.js → RemoveDataSource-T2AG7ZWC.js} +2 -2
- package/dist/{RemoveDeployment-STNFNNZF.js → RemoveDeployment-K3GDRCXJ.js} +2 -2
- package/dist/{ServicePrincipalAuthenticationProvider-7RBHTYYY.js → ServicePrincipalAuthenticationProvider-CEHIAANL.js} +2 -2
- package/dist/{SetSetting-Q7EQNOTI.js → SetSetting-KOWAPJWX.js} +2 -2
- package/dist/{SetSetting-CEH44OT3.js → SetSetting-PD76MA6O.js} +2 -2
- package/dist/{ShareLinkCreate-ZUVHUQLH.js → ShareLinkCreate-VCWVBQ4B.js} +2 -2
- package/dist/{ShareLinkList-IEYU6NZW.js → ShareLinkList-5VG5CG34.js} +2 -2
- package/dist/ShareLinkRevoke-KYUNMTG5.js +11 -0
- package/dist/ShareList-M25UE6LD.js +11 -0
- package/dist/{ShareMaafApp-SFNOOMOD.js → ShareMaafApp-QMEJEXPZ.js} +2 -2
- package/dist/{TelemetrySettings-XCT73DEI.js → TelemetrySettings-FVJUK5MR.js} +2 -2
- package/dist/{UnshareMaafApp-TU7U3LQ3.js → UnshareMaafApp-RIUUYHIL.js} +2 -2
- package/dist/{chunk-Q3ONTUZ7.js → chunk-2UMD5IAQ.js} +2 -2
- package/dist/chunk-36YYCVFC.js +12 -0
- package/dist/chunk-3UIUI5Q2.js +11 -0
- package/dist/{chunk-KKC5ZK4D.js → chunk-4AO24KKT.js} +21 -21
- package/dist/{chunk-TMYOZDLM.js → chunk-4C6DWU2Y.js} +2 -2
- package/dist/{chunk-SIEI2EB5.js → chunk-4JTUAUHI.js} +2 -2
- package/dist/{chunk-UXKJNXTZ.js → chunk-4UHMKZLH.js} +2 -2
- package/dist/{chunk-3E7QQ2BR.js → chunk-4WQT5P2M.js} +2 -2
- package/dist/{chunk-GE3UFHZ5.js → chunk-5BE4TLDK.js} +2 -2
- package/dist/{chunk-XIX2O22O.js → chunk-A57M2UGH.js} +2 -2
- package/dist/chunk-B6REHI77.js +11 -0
- package/dist/{chunk-DKSLWH4O.js → chunk-BREK3DVB.js} +2 -2
- package/dist/{chunk-RFLXPXBN.js → chunk-C7V6WEZM.js} +2 -2
- package/dist/{chunk-DGUO74I3.js → chunk-CER3QPDN.js} +2 -2
- package/dist/{chunk-PEZMQ2A3.js → chunk-CONEIY4I.js} +2 -2
- package/dist/{chunk-UEZV46GZ.js → chunk-DOCWK326.js} +2 -2
- package/dist/{chunk-4XKA5APP.js → chunk-E2O4YZX2.js} +192 -192
- package/dist/{chunk-2LKCCYRF.js → chunk-EFTF4FA7.js} +2 -2
- package/dist/{chunk-6EF722GY.js → chunk-ELHOJBVT.js} +11 -11
- package/dist/{chunk-ADRQC63G.js → chunk-FGB6GFXI.js} +2 -2
- package/dist/chunk-GVLAG66W.js +13 -0
- package/dist/{chunk-PLFDUGBA.js → chunk-HWEMI6JI.js} +2 -2
- package/dist/{chunk-BRRT2E75.js → chunk-IM7SC23O.js} +3 -3
- package/dist/{chunk-KT2SUHGM.js → chunk-JDRULLI3.js} +2 -2
- package/dist/{chunk-EFY2BSWB.js → chunk-JMF444BA.js} +2 -2
- package/dist/{chunk-QLK3ZVWP.js → chunk-JWSX7DVU.js} +2 -2
- package/dist/chunk-MWN7R4VR.js +12 -0
- package/dist/{chunk-HSNRWBA6.js → chunk-O4G2KO7E.js} +2 -2
- package/dist/{chunk-FHE3OXIP.js → chunk-OB6WEE2V.js} +2 -2
- package/dist/{chunk-RDXQ3ZPT.js → chunk-OBATM5M4.js} +2 -2
- package/dist/{chunk-ZB6MB7GZ.js → chunk-OTXBVG3E.js} +2 -2
- package/dist/{chunk-5MHBEEMZ.js → chunk-PBXK6LJO.js} +2 -2
- package/dist/chunk-VAKAW5BD.js +12 -0
- package/dist/{chunk-4U53RYJJ.js → chunk-WS6TGUH7.js} +2 -2
- package/dist/{chunk-WTTK2GTG.js → chunk-WV7KDGLS.js} +2 -2
- package/dist/{chunk-NYPHWF7Q.js → chunk-YMRQPXY7.js} +2 -2
- package/dist/{chunk-WWVAS3DS.js → chunk-YYXAAA2U.js} +2 -2
- package/dist/{chunk-PZIEJEF5.js → chunk-ZREDMBLO.js} +2 -2
- package/package.json +4 -4
- package/dist/CreateMaafApp-6MSPHUU4.js +0 -22
- package/dist/CreateMaafProject-JKMF5TH3.js +0 -11
- package/dist/DeployMaafApp-K2APWFOD.js +0 -8
- package/dist/DeployMaafProject-6WRKGIIW.js +0 -11
- package/dist/FeatureSettings-77LZQSKD.js +0 -11
- package/dist/InfoMaafProject-SQYB736C.js +0 -11
- package/dist/ListMaafApps-ZATO77G3.js +0 -11
- package/dist/ProjectApprovals-5KLYEM7V.js +0 -13
- package/dist/ShareLinkRevoke-22RFGOFJ.js +0 -11
- package/dist/ShareList-6UWIHPBM.js +0 -11
- package/dist/chunk-2LDU3F6O.js +0 -11
- package/dist/chunk-A4PVXTJS.js +0 -13
- package/dist/chunk-BA52TY55.js +0 -12
- package/dist/chunk-HOIFXUTG.js +0 -11
- package/dist/chunk-TXMTKOEJ.js +0 -12
- package/dist/chunk-YRPTITKD.js +0 -12
|
@@ -4,22 +4,22 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __pathDirname(__filename);
|
|
7
|
-
import{a as l1}from"./chunk-HBLO3WDD.js";import{C as Ha,w as $i}from"./chunk-4XKA5APP.js";import{f as Fh,h as qh,i as Va}from"./chunk-OUKOEUZA.js";import{e as N,l as zi,n as kh}from"./chunk-KKC5ZK4D.js";import{a as W,b,d as a1}from"./chunk-UT667QSU.js";var td=b(($3,ed)=>{var $1=typeof process=="object"&&process&&process.platform==="win32";ed.exports=$1?{sep:"\\"}:{sep:"/"}});var od=b((H3,sd)=>{"use strict";sd.exports=id;function id(t,e,r){t instanceof RegExp&&(t=rd(t,r)),e instanceof RegExp&&(e=rd(e,r));var i=nd(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 rd(t,e){var r=e.match(t);return r?r[0]:null}id.range=nd;function nd(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 al=b((V3,dd)=>{var ad=od();dd.exports=Z1;var ld="\0SLASH"+Math.random()+"\0",ud="\0OPEN"+Math.random()+"\0",ol="\0CLOSE"+Math.random()+"\0",fd="\0COMMA"+Math.random()+"\0",cd="\0PERIOD"+Math.random()+"\0",H1=1e5,V1=4e6;function nl(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function Y1(t){return t.split("\\\\").join(ld).split("\\{").join(ud).split("\\}").join(ol).split("\\,").join(fd).split("\\.").join(cd)}function K1(t){return t.split(ld).join("\\").split(ud).join("{").split(ol).join("}").split(fd).join(",").split(cd).join(".")}function hd(t){if(!t)return[""];var e=[],r=ad("{","}",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=hd(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function Z1(t,e){if(!t)return[];e=e||{};var r=e.max==null?H1:e.max,i=e.maxLength==null?V1:e.maxLength;return t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),sl(Y1(t),r,i,!0).map(K1)}function Q1(t){return"{"+t+"}"}function X1(t){return/^-?0\d/.test(t)}function J1(t,e){return t<=e}function eT(t,e){return t>=e}function Vi(t,e,r,i,n,s){for(var o=[],a=0,l=0;l<t.length;l++)for(var u=0;u<r.length;u++){if(o.length>=i)return o;var f=t[l]+e+r[u];if(!(s&&!f)){if(a+f.length>n)return o;o.push(f),a+=f.length}}return o}function tT(t,e,r,i){var n=t.split(/\.\./),s=[];if(n[0]===void 0||n[1]===void 0)return s;var o=nl(n[0]),a=nl(n[1]),l=Math.max(n[0].length,n[1].length),u=n.length===3&&n[2]!==void 0?Math.max(Math.abs(nl(n[2])),1):1,f=J1,h=a<o;h&&(u*=-1,f=eT);for(var g=n.some(X1),y=0,E=o;f(E,a)&&s.length<r;E+=u){var m;if(e)m=String.fromCharCode(E),m==="\\"&&(m="");else if(m=String(E),g){var v=l-m.length;if(v>0){var S=new Array(v+1).join("0");E<0?m="-"+S+m.slice(1):m=S+m}}if(y+m.length>i)break;s.push(m),y+=m.length}return s}function sl(t,e,r,i){for(var n=[""],s=!1,o=!0;;){let D=ad("{","}",t);if(!D)return Vi(n,t,[""],e,r,s);let q=D.pre;if(/\$$/.test(q)){if(n=Vi(n,q+"{"+D.body+"}",[""],e,r,s&&!D.post.length),o=!1,!D.post.length)break;t=D.post;continue}var a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(D.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(D.body),u=a||l,f=D.body.indexOf(",")>=0;if(!u&&!f){if(D.post.match(/,(?!,).*\}/)){t=D.pre+"{"+D.body+ol+D.post,i=!0;continue}return Vi(n,q+"{"+D.body+"}"+D.post,[""],e,r,s)}o&&(s=i&&!u,o=!1);var h;if(u)h=tT(D.body,l,e,r);else{var g=hd(D.body);if(g.length===1&&g[0]!==void 0&&(g=sl(g[0],e,r,!1).map(Q1),g.length===1)){if(n=Vi(n,q+g[0],[""],e,r,s&&!D.post.length),!D.post.length)break;t=D.post;continue}for(var y=s&&!D.post.length&&!q,E=0;y&&E<n.length;E++)n[E]&&(y=!1);h=[];var m=0;e:for(var v=0;v<g.length;v++)for(var S=sl(g[v],e,r,!1),R=0;R<S.length;R++){var L=S[R];if(!(y&&!L)){if(h.length>=e||m+L.length>r)break e;h.push(L),m+=L.length}}}if(n=Vi(n,q,h,e,r,s&&!D.post.length),!D.post.length)break;t=D.post}return n}});var bd=b((K3,hl)=>{var Xe=hl.exports=(t,e,r={})=>(Cs(e),!r.nocomment&&e.charAt(0)==="#"?!1:new Hr(e,r).match(t));hl.exports=Xe;var fl=td();Xe.sep=fl.sep;var $e=Symbol("globstar **");Xe.GLOBSTAR=$e;var rT=al(),pd={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},cl="[^/]",ll=cl+"*?",iT="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",nT="(?:(?!(?:\\/|^)\\.).)*?",md=t=>t.split("").reduce((e,r)=>(e[r]=!0,e),{}),gd=md("().*{}+?[]^$\\!"),sT=md("[.("),yd=/\/+/;Xe.filter=(t,e={})=>(r,i,n)=>Xe(r,t,e);var Yt=(t,e={})=>{let r={};return Object.keys(t).forEach(i=>r[i]=t[i]),Object.keys(e).forEach(i=>r[i]=e[i]),r};Xe.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Xe;let e=Xe,r=(i,n,s)=>e(i,n,Yt(t,s));return r.Minimatch=class extends e.Minimatch{constructor(n,s){super(n,Yt(t,s))}},r.Minimatch.defaults=i=>e.defaults(Yt(t,i)).Minimatch,r.filter=(i,n)=>e.filter(i,Yt(t,n)),r.defaults=i=>e.defaults(Yt(t,i)),r.makeRe=(i,n)=>e.makeRe(i,Yt(t,n)),r.braceExpand=(i,n)=>e.braceExpand(i,Yt(t,n)),r.match=(i,n,s)=>e.match(i,n,Yt(t,s)),r};Xe.braceExpand=(t,e)=>_d(t,e);var _d=(t,e={})=>(Cs(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:rT(t)),oT=1024*64,Cs=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>oT)throw new TypeError("pattern is too long")},ul=Symbol("subparse");Xe.makeRe=(t,e)=>new Hr(t,e||{}).makeRe();Xe.match=(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};var aT=t=>t.replace(/\\(.)/g,"$1"),lT=t=>t.replace(/\\([^-\]])/g,"$1"),uT=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),fT=t=>t.replace(/[[\]\\]/g,"\\$&"),Hr=class{constructor(e,r){Cs(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(yd)),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($e)!==-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 R=s;R<r.length;R++)if(r[R]===$e){o=R;break}let a=-1;for(let R=r.length-1;R>=0;R--)if(r[R]===$e){a=R;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 R=e.slice(n,n+l.length);if(!this._matchOne(R,l,i,0,0))return!1;n+=l.length}let h=0;if(f.length){if(f.length+n>e.length)return!1;let R=e.length-f.length;if(this._matchOne(e,f,i,R,0))h=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||!this._matchOne(e,f,i,R-1,0))return!1;h=f.length+1}}if(!u.length){let R=!!h;for(let L=n;L<e.length-h;L++){let D=String(e[L]);if(R=!0,D==="."||D===".."||!this.options.dot&&D.charAt(0)===".")return!1}return i||R}let g=[[[],0]],y=g[0],E=0,m=[0];for(let R of u)R===$e?(m.push(E),y=[[],0],g.push(y)):(y[0].push(R),E++);let v=g.length-1,S=e.length-h;for(let R of g)R[1]=S-(m[v--]+R[0].length);return!!this._matchGlobStarBodySections(e,g,n,0,i,0,!!h)}_matchGlobStarBodySections(e,r,i,n,s,o,a){let l=r[n];if(!l){for(let h=i;h<e.length;h++){a=!0;let g=e[h];if(g==="."||g===".."||!this.options.dot&&g.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 y=this._matchGlobStarBodySections(e,r,i+u.length,n+1,s,o+1,a);if(y!==!1)return y}let g=e[i];if(g==="."||g===".."||!this.options.dot&&g.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],h=e[o];if(this.debug(r,f,h),f===!1||f===$e)return!1;let g;if(typeof f=="string"?(g=h===f,this.debug("string match",f,h,g)):(g=h.match(f),this.debug("pattern match",f,h,g)),!g)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 _d(this.pattern,this.options)}parse(e,r){Cs(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return $e;if(e==="")return"";let n="",s=!1,o=!1,a=[],l=[],u,f=!1,h=-1,g=-1,y,E,m,v=e.charAt(0)===".",S=i.dot||v,R=()=>v?"":S?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",L=P=>P.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",D=()=>{if(u){switch(u){case"*":n+=ll,s=!0;break;case"?":n+=cl,s=!0;break;default:n+="\\"+u;break}this.debug("clearStateChar %j %j",u,n),u=!1}};for(let P=0,B;P<e.length&&(B=e.charAt(P));P++){if(this.debug("%s %s %s %j",e,P,n,B),o){if(B==="/")return!1;gd[B]&&(n+="\\"),n+=B,o=!1;continue}switch(B){case"/":return!1;case"\\":if(f&&e.charAt(P+1)==="-"){n+=B;continue}D(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,P,n,B),f){this.debug(" in class"),B==="!"&&P===g+1&&(B="^"),n+=B;continue}if(B==="*"&&u==="*")continue;this.debug("call clearStateChar %j",u),D(),u=B,i.noext&&D();continue;case"(":{if(f){n+="(";continue}if(!u){n+="\\(";continue}let x={type:u,start:P-1,reStart:n.length,open:pd[u].open,close:pd[u].close};this.debug(this.pattern," ",x),a.push(x),n+=x.open,x.start===0&&x.type!=="!"&&(v=!0,n+=L(e.slice(P+1))),this.debug("plType %j %j",u,n),u=!1;continue}case")":{let x=a[a.length-1];if(f||!x){n+="\\)";continue}a.pop(),D(),s=!0,E=x,n+=E.close,E.type==="!"&&l.push(Object.assign(E,{reEnd:n.length}));continue}case"|":{let x=a[a.length-1];if(f||!x){n+="\\|";continue}D(),n+="|",x.start===0&&x.type!=="!"&&(v=!0,n+=L(e.slice(P+1)));continue}case"[":if(D(),f){n+="\\"+B;continue}f=!0,g=P,h=n.length,n+=B;continue;case"]":if(P===g+1||!f){n+="\\"+B;continue}y=e.substring(g+1,P);try{RegExp("["+fT(lT(y))+"]"),n+=B}catch{n=n.substring(0,h)+"(?:$.)"}s=!0,f=!1;continue;default:D(),gd[B]&&!(B==="^"&&f)&&(n+="\\"),n+=B;break}}for(f&&(y=e.slice(g+1),m=this.parse(y,ul),n=n.substring(0,h)+"\\["+m[0],s=s||m[1]),E=a.pop();E;E=a.pop()){let P;P=n.slice(E.reStart+E.open.length),this.debug("setting tail",n,E),P=P.replace(/((?:\\{2}){0,64})(\\?)\|/g,(x,M,k)=>(k||(k="\\"),M+M+k+"|")),this.debug(`tail=%j
|
|
8
|
-
%s`,P,P,E,n);let B=E.type==="*"?ll:E.type==="?"?cl:"\\"+E.type;s=!0,n=n.slice(0,E.reStart)+B+"\\("+P}D(),o&&(n+="\\\\");let q=sT[n.charAt(0)];for(let P=l.length-1;P>-1;P--){let B=l[P],x=n.slice(0,B.reStart),M=n.slice(B.reStart,B.reEnd-8),k=n.slice(B.reEnd),H=n.slice(B.reEnd-8,B.reEnd)+k,ee=x.split(")").length,se=x.split("(").length-ee,de=k;for(let fe=0;fe<se;fe++)de=de.replace(/\)[+*?]?/,"");k=de;let ue=k===""&&r!==ul?"(?:$|\\/)":"";n=x+M+k+ue+H}if(n!==""&&s&&(n="(?=.)"+n),q&&(n=R()+n),r===ul)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return aT(e);let Z=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",Z),{_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?ll:r.dot?iT:nT,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?uT(a):a===$e?$e:a._src).reduce((a,l)=>(a[a.length-1]===$e&&l===$e||a.push(l),a),[]),o.forEach((a,l)=>{a!==$e||o[l-1]===$e||(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]=$e))}),o.filter(a=>a!==$e).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;fl.sep!=="/"&&(e=e.split(fl.sep).join("/")),e=e.split(yd),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 Xe.defaults(e).Minimatch}};Xe.Minimatch=Hr});var Td=b((Z3,vd)=>{vd.exports=Ed;var pl=W("fs"),{EventEmitter:cT}=W("events"),{Minimatch:dl}=bd(),{resolve:hT}=W("path");function dT(t,e){return new Promise((r,i)=>{pl.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 wd(t,e){return new Promise((r,i)=>{(e?pl.stat:pl.lstat)(t,(s,o)=>{s?s.code==="ENOENT"?r(e?wd(t,!1):null):r(null):r(o)})})}async function*Sd(t,e,r,i,n,s){let o=await dT(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),h=e+"/"+f,g=null;(i||r)&&(g=await wd(h,r)),!g&&a.name!==void 0&&(g=a),g===null&&(g={isDirectory:()=>!1}),g.isDirectory()?n(f)||(yield{relative:f,absolute:h,stats:g},yield*Sd(u,e,r,i,n,!1)):yield{relative:f,absolute:h,stats:g}}}async function*pT(t,e,r,i){yield*Sd("",t,e,r,i,!0)}function gT(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 Ns=class extends cT{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=gT(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 dl(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 dl(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 dl(s,{dot:!0}))}this.iterator=pT(hT(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 Ed(t,e,r){return new Ns(t,e,r)}Ed.ReaddirGlob=Ns});var xd=b((Ms,Ad)=>{(function(t,e){typeof Ms=="object"&&typeof Ad<"u"?e(Ms):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.async={}))})(Ms,(function(t){"use strict";function e(d,...c){return(...p)=>d(...c,...p)}function r(d){return function(...c){var p=c.pop();return d.call(this,c,p)}}var i=typeof queueMicrotask=="function"&&queueMicrotask,n=typeof setImmediate=="function"&&setImmediate,s=typeof process=="object"&&typeof process.nextTick=="function";function o(d){setTimeout(d,0)}function a(d){return(c,...p)=>d(()=>c(...p))}var l;i?l=queueMicrotask:n?l=setImmediate:s?l=process.nextTick:l=o;var u=a(l);function f(d){return y(d)?function(...c){let p=c.pop(),w=d.apply(this,c);return h(w,p)}:r(function(c,p){var w;try{w=d.apply(this,c)}catch(T){return p(T)}if(w&&typeof w.then=="function")return h(w,p);p(null,w)})}function h(d,c){return d.then(p=>{g(c,null,p)},p=>{g(c,p&&(p instanceof Error||p.message)?p:new Error(p))})}function g(d,c,p){try{d(c,p)}catch(w){u(T=>{throw T},w)}}function y(d){return d[Symbol.toStringTag]==="AsyncFunction"}function E(d){return d[Symbol.toStringTag]==="AsyncGenerator"}function m(d){return typeof d[Symbol.asyncIterator]=="function"}function v(d){if(typeof d!="function")throw new Error("expected a function");return y(d)?f(d):d}function S(d,c){if(c||(c=d.length),!c)throw new Error("arity is undefined");function p(...w){return typeof w[c-1]=="function"?d.apply(this,w):new Promise((T,A)=>{w[c-1]=(O,...I)=>{if(O)return A(O);T(I.length>1?I:I[0])},d.apply(this,w)})}return p}function R(d){return function(p,...w){return S(function(A){var O=this;return d(p,(I,C)=>{v(I).apply(O,w.concat(C))},A)})}}function L(d,c,p,w){c=c||[];var T=[],A=0,O=v(p);return d(c,(I,C,U)=>{var te=A++;O(I,(oe,re)=>{T[te]=re,U(oe)})},I=>{w(I,T)})}function D(d){return d&&typeof d.length=="number"&&d.length>=0&&d.length%1===0}let q={};function Z(d){function c(...p){if(d!==null){var w=d;d=null,w.apply(this,p)}}return Object.assign(c,d),c}function P(d){return d[Symbol.iterator]&&d[Symbol.iterator]()}function B(d){var c=-1,p=d.length;return function(){return++c<p?{value:d[c],key:c}:null}}function x(d){var c=-1;return function(){var w=d.next();return w.done?null:(c++,{value:w.value,key:c})}}function M(d){var c=d?Object.keys(d):[],p=-1,w=c.length;return function T(){var A=c[++p];return A==="__proto__"?T():p<w?{value:d[A],key:A}:null}}function k(d){if(D(d))return B(d);var c=P(d);return c?x(c):M(d)}function H(d){return function(...c){if(d===null)throw new Error("Callback was already called.");var p=d;d=null,p.apply(this,c)}}function ee(d,c,p,w){let T=!1,A=!1,O=!1,I=0,C=0;function U(){I>=c||O||T||(O=!0,d.next().then(({value:re,done:it})=>{if(!(A||T)){if(O=!1,it){T=!0,I<=0&&w(null);return}I++,p(re,C,te),C++,U()}}).catch(oe))}function te(re,it){if(I-=1,!A){if(re)return oe(re);if(re===!1){T=!0,A=!0;return}if(it===q||T&&I<=0)return T=!0,w(null);U()}}function oe(re){A||(O=!1,T=!0,w(re))}U()}var se=d=>(c,p,w)=>{if(w=Z(w),d<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!c)return w(null);if(E(c))return ee(c,d,p,w);if(m(c))return ee(c[Symbol.asyncIterator](),d,p,w);var T=k(c),A=!1,O=!1,I=0,C=!1;function U(oe,re){if(!O)if(I-=1,oe)A=!0,w(oe);else if(oe===!1)A=!0,O=!0;else{if(re===q||A&&I<=0)return A=!0,w(null);C||te()}}function te(){for(C=!0;I<d&&!A;){var oe=T();if(oe===null){A=!0,I<=0&&w(null);return}I+=1,p(oe.value,oe.key,H(U))}C=!1}te()};function de(d,c,p,w){return se(c)(d,v(p),w)}var ue=S(de,4);function fe(d,c,p){p=Z(p);var w=0,T=0,{length:A}=d,O=!1;A===0&&p(null);function I(C,U){C===!1&&(O=!0),O!==!0&&(C?p(C):(++T===A||U===q)&&p(null))}for(;w<A;w++)c(d[w],w,H(I))}function Oe(d,c,p){return ue(d,1/0,c,p)}function ge(d,c,p){var w=D(d)?fe:Oe;return w(d,v(c),p)}var Ze=S(ge,3);function hv(d,c,p){return L(Ze,d,c,p)}var as=S(hv,3),Yc=R(as);function dv(d,c,p){return ue(d,1,c,p)}var ht=S(dv,3);function pv(d,c,p){return L(ht,d,c,p)}var ka=S(pv,3),Kc=R(ka);let Ur=Symbol("promiseCallback");function Wr(){let d,c;function p(w,...T){if(w)return c(w);d(T.length>1?T:T[0])}return p[Ur]=new Promise((w,T)=>{d=w,c=T}),p}function Fa(d,c,p){typeof c!="number"&&(p=c,c=null),p=Z(p||Wr());var w=Object.keys(d).length;if(!w)return p(null);c||(c=w);var T={},A=0,O=!1,I=!1,C=Object.create(null),U=[],te=[],oe={};Object.keys(d).forEach(j=>{var z=d[j];if(!Array.isArray(z)){re(j,[z]),te.push(j);return}var ie=z.slice(0,z.length-1),we=ie.length;if(we===0){re(j,z),te.push(j);return}oe[j]=we,ie.forEach(Pe=>{if(!d[Pe])throw new Error("async.auto task `"+j+"` has a non-existent dependency `"+Pe+"` in "+ie.join(", "));zr(Pe,()=>{we--,we===0&&re(j,z)})})}),ae(),it();function re(j,z){U.push(()=>Wi(j,z))}function it(){if(!O){if(U.length===0&&A===0)return p(null,T);for(;U.length&&A<c;){var j=U.shift();j()}}}function zr(j,z){var ie=C[j];ie||(ie=C[j]=[]),ie.push(z)}function yr(j){var z=C[j]||[];z.forEach(ie=>ie()),it()}function Wi(j,z){if(!I){var ie=H((Pe,...nt)=>{if(A--,Pe===!1){O=!0;return}if(nt.length<2&&([nt]=nt),Pe){var $r={};if(Object.keys(T).forEach(mr=>{$r[mr]=T[mr]}),$r[j]=nt,I=!0,C=Object.create(null),O)return;p(Pe,$r)}else T[j]=nt,yr(j)});A++;var we=v(z[z.length-1]);z.length>1?we(T,ie):we(ie)}}function ae(){for(var j,z=0;te.length;)j=te.pop(),z++,G(j).forEach(ie=>{--oe[ie]===0&&te.push(ie)});if(z!==w)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function G(j){var z=[];return Object.keys(d).forEach(ie=>{let we=d[ie];Array.isArray(we)&&we.indexOf(j)>=0&&z.push(ie)}),z}return p[Ur]}var gv=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,yv=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,mv=/,/,_v=/(=.+)?(\s*)$/;function bv(d){let c="",p=0,w=d.indexOf("*/");for(;p<d.length;)if(d[p]==="/"&&d[p+1]==="/"){let T=d.indexOf(`
|
|
9
|
-
`,p);p=T===-1?d.length:T}else if(w!==-1&&d[p]==="/"&&d[p+1]==="*"){let T=d.indexOf("*/",p);T!==-1?(p=T+2,w=d.indexOf("*/",p)):(c+=d[p],p++)}else c+=d[p],p++;return c}function
|
|
7
|
+
import{a as u1}from"./chunk-HBLO3WDD.js";import{D as Ha,x as $i}from"./chunk-E2O4YZX2.js";import{f as qh,h as Bh,i as Va}from"./chunk-OUKOEUZA.js";import{d as N,i as kh,l as zi,n as Fh}from"./chunk-4AO24KKT.js";import{a as W,b,d as l1}from"./chunk-UT667QSU.js";var rd=b(($3,td)=>{var $1=typeof process=="object"&&process&&process.platform==="win32";td.exports=$1?{sep:"\\"}:{sep:"/"}});var ad=b((H3,od)=>{"use strict";od.exports=nd;function nd(t,e,r){t instanceof RegExp&&(t=id(t,r)),e instanceof RegExp&&(e=id(e,r));var i=sd(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 id(t,e){var r=e.match(t);return r?r[0]:null}nd.range=sd;function sd(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 al=b((V3,pd)=>{var ld=ad();pd.exports=Z1;var ud="\0SLASH"+Math.random()+"\0",fd="\0OPEN"+Math.random()+"\0",ol="\0CLOSE"+Math.random()+"\0",cd="\0COMMA"+Math.random()+"\0",hd="\0PERIOD"+Math.random()+"\0",H1=1e5,V1=4e6;function nl(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function Y1(t){return t.split("\\\\").join(ud).split("\\{").join(fd).split("\\}").join(ol).split("\\,").join(cd).split("\\.").join(hd)}function K1(t){return t.split(ud).join("\\").split(fd).join("{").split(ol).join("}").split(cd).join(",").split(hd).join(".")}function dd(t){if(!t)return[""];var e=[],r=ld("{","}",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=dd(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function Z1(t,e){if(!t)return[];e=e||{};var r=e.max==null?H1:e.max,i=e.maxLength==null?V1:e.maxLength;return t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),sl(Y1(t),r,i,!0).map(K1)}function Q1(t){return"{"+t+"}"}function X1(t){return/^-?0\d/.test(t)}function J1(t,e){return t<=e}function eT(t,e){return t>=e}function Vi(t,e,r,i,n,s){for(var o=[],a=0,l=0;l<t.length;l++)for(var u=0;u<r.length;u++){if(o.length>=i)return o;var f=t[l]+e+r[u];if(!(s&&!f)){if(a+f.length>n)return o;o.push(f),a+=f.length}}return o}function tT(t,e,r,i){var n=t.split(/\.\./),s=[];if(n[0]===void 0||n[1]===void 0)return s;var o=nl(n[0]),a=nl(n[1]),l=Math.max(n[0].length,n[1].length),u=n.length===3&&n[2]!==void 0?Math.max(Math.abs(nl(n[2])),1):1,f=J1,h=a<o;h&&(u*=-1,f=eT);for(var g=n.some(X1),y=0,E=o;f(E,a)&&s.length<r;E+=u){var m;if(e)m=String.fromCharCode(E),m==="\\"&&(m="");else if(m=String(E),g){var v=l-m.length;if(v>0){var S=new Array(v+1).join("0");E<0?m="-"+S+m.slice(1):m=S+m}}if(y+m.length>i)break;s.push(m),y+=m.length}return s}function sl(t,e,r,i){for(var n=[""],s=!1,o=!0;;){let D=ld("{","}",t);if(!D)return Vi(n,t,[""],e,r,s);let q=D.pre;if(/\$$/.test(q)){if(n=Vi(n,q+"{"+D.body+"}",[""],e,r,s&&!D.post.length),o=!1,!D.post.length)break;t=D.post;continue}var a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(D.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(D.body),u=a||l,f=D.body.indexOf(",")>=0;if(!u&&!f){if(D.post.match(/,(?!,).*\}/)){t=D.pre+"{"+D.body+ol+D.post,i=!0;continue}return Vi(n,q+"{"+D.body+"}"+D.post,[""],e,r,s)}o&&(s=i&&!u,o=!1);var h;if(u)h=tT(D.body,l,e,r);else{var g=dd(D.body);if(g.length===1&&g[0]!==void 0&&(g=sl(g[0],e,r,!1).map(Q1),g.length===1)){if(n=Vi(n,q+g[0],[""],e,r,s&&!D.post.length),!D.post.length)break;t=D.post;continue}for(var y=s&&!D.post.length&&!q,E=0;y&&E<n.length;E++)n[E]&&(y=!1);h=[];var m=0;e:for(var v=0;v<g.length;v++)for(var S=sl(g[v],e,r,!1),R=0;R<S.length;R++){var L=S[R];if(!(y&&!L)){if(h.length>=e||m+L.length>r)break e;h.push(L),m+=L.length}}}if(n=Vi(n,q,h,e,r,s&&!D.post.length),!D.post.length)break;t=D.post}return n}});var wd=b((K3,hl)=>{var Xe=hl.exports=(t,e,r={})=>(Cs(e),!r.nocomment&&e.charAt(0)==="#"?!1:new Hr(e,r).match(t));hl.exports=Xe;var fl=rd();Xe.sep=fl.sep;var $e=Symbol("globstar **");Xe.GLOBSTAR=$e;var rT=al(),gd={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},cl="[^/]",ll=cl+"*?",iT="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",nT="(?:(?!(?:\\/|^)\\.).)*?",_d=t=>t.split("").reduce((e,r)=>(e[r]=!0,e),{}),yd=_d("().*{}+?[]^$\\!"),sT=_d("[.("),md=/\/+/;Xe.filter=(t,e={})=>(r,i,n)=>Xe(r,t,e);var Yt=(t,e={})=>{let r={};return Object.keys(t).forEach(i=>r[i]=t[i]),Object.keys(e).forEach(i=>r[i]=e[i]),r};Xe.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Xe;let e=Xe,r=(i,n,s)=>e(i,n,Yt(t,s));return r.Minimatch=class extends e.Minimatch{constructor(n,s){super(n,Yt(t,s))}},r.Minimatch.defaults=i=>e.defaults(Yt(t,i)).Minimatch,r.filter=(i,n)=>e.filter(i,Yt(t,n)),r.defaults=i=>e.defaults(Yt(t,i)),r.makeRe=(i,n)=>e.makeRe(i,Yt(t,n)),r.braceExpand=(i,n)=>e.braceExpand(i,Yt(t,n)),r.match=(i,n,s)=>e.match(i,n,Yt(t,s)),r};Xe.braceExpand=(t,e)=>bd(t,e);var bd=(t,e={})=>(Cs(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:rT(t)),oT=1024*64,Cs=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>oT)throw new TypeError("pattern is too long")},ul=Symbol("subparse");Xe.makeRe=(t,e)=>new Hr(t,e||{}).makeRe();Xe.match=(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};var aT=t=>t.replace(/\\(.)/g,"$1"),lT=t=>t.replace(/\\([^-\]])/g,"$1"),uT=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),fT=t=>t.replace(/[[\]\\]/g,"\\$&"),Hr=class{constructor(e,r){Cs(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(md)),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($e)!==-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 R=s;R<r.length;R++)if(r[R]===$e){o=R;break}let a=-1;for(let R=r.length-1;R>=0;R--)if(r[R]===$e){a=R;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 R=e.slice(n,n+l.length);if(!this._matchOne(R,l,i,0,0))return!1;n+=l.length}let h=0;if(f.length){if(f.length+n>e.length)return!1;let R=e.length-f.length;if(this._matchOne(e,f,i,R,0))h=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||!this._matchOne(e,f,i,R-1,0))return!1;h=f.length+1}}if(!u.length){let R=!!h;for(let L=n;L<e.length-h;L++){let D=String(e[L]);if(R=!0,D==="."||D===".."||!this.options.dot&&D.charAt(0)===".")return!1}return i||R}let g=[[[],0]],y=g[0],E=0,m=[0];for(let R of u)R===$e?(m.push(E),y=[[],0],g.push(y)):(y[0].push(R),E++);let v=g.length-1,S=e.length-h;for(let R of g)R[1]=S-(m[v--]+R[0].length);return!!this._matchGlobStarBodySections(e,g,n,0,i,0,!!h)}_matchGlobStarBodySections(e,r,i,n,s,o,a){let l=r[n];if(!l){for(let h=i;h<e.length;h++){a=!0;let g=e[h];if(g==="."||g===".."||!this.options.dot&&g.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 y=this._matchGlobStarBodySections(e,r,i+u.length,n+1,s,o+1,a);if(y!==!1)return y}let g=e[i];if(g==="."||g===".."||!this.options.dot&&g.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],h=e[o];if(this.debug(r,f,h),f===!1||f===$e)return!1;let g;if(typeof f=="string"?(g=h===f,this.debug("string match",f,h,g)):(g=h.match(f),this.debug("pattern match",f,h,g)),!g)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 bd(this.pattern,this.options)}parse(e,r){Cs(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return $e;if(e==="")return"";let n="",s=!1,o=!1,a=[],l=[],u,f=!1,h=-1,g=-1,y,E,m,v=e.charAt(0)===".",S=i.dot||v,R=()=>v?"":S?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",L=P=>P.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",D=()=>{if(u){switch(u){case"*":n+=ll,s=!0;break;case"?":n+=cl,s=!0;break;default:n+="\\"+u;break}this.debug("clearStateChar %j %j",u,n),u=!1}};for(let P=0,B;P<e.length&&(B=e.charAt(P));P++){if(this.debug("%s %s %s %j",e,P,n,B),o){if(B==="/")return!1;yd[B]&&(n+="\\"),n+=B,o=!1;continue}switch(B){case"/":return!1;case"\\":if(f&&e.charAt(P+1)==="-"){n+=B;continue}D(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,P,n,B),f){this.debug(" in class"),B==="!"&&P===g+1&&(B="^"),n+=B;continue}if(B==="*"&&u==="*")continue;this.debug("call clearStateChar %j",u),D(),u=B,i.noext&&D();continue;case"(":{if(f){n+="(";continue}if(!u){n+="\\(";continue}let x={type:u,start:P-1,reStart:n.length,open:gd[u].open,close:gd[u].close};this.debug(this.pattern," ",x),a.push(x),n+=x.open,x.start===0&&x.type!=="!"&&(v=!0,n+=L(e.slice(P+1))),this.debug("plType %j %j",u,n),u=!1;continue}case")":{let x=a[a.length-1];if(f||!x){n+="\\)";continue}a.pop(),D(),s=!0,E=x,n+=E.close,E.type==="!"&&l.push(Object.assign(E,{reEnd:n.length}));continue}case"|":{let x=a[a.length-1];if(f||!x){n+="\\|";continue}D(),n+="|",x.start===0&&x.type!=="!"&&(v=!0,n+=L(e.slice(P+1)));continue}case"[":if(D(),f){n+="\\"+B;continue}f=!0,g=P,h=n.length,n+=B;continue;case"]":if(P===g+1||!f){n+="\\"+B;continue}y=e.substring(g+1,P);try{RegExp("["+fT(lT(y))+"]"),n+=B}catch{n=n.substring(0,h)+"(?:$.)"}s=!0,f=!1;continue;default:D(),yd[B]&&!(B==="^"&&f)&&(n+="\\"),n+=B;break}}for(f&&(y=e.slice(g+1),m=this.parse(y,ul),n=n.substring(0,h)+"\\["+m[0],s=s||m[1]),E=a.pop();E;E=a.pop()){let P;P=n.slice(E.reStart+E.open.length),this.debug("setting tail",n,E),P=P.replace(/((?:\\{2}){0,64})(\\?)\|/g,(x,M,k)=>(k||(k="\\"),M+M+k+"|")),this.debug(`tail=%j
|
|
8
|
+
%s`,P,P,E,n);let B=E.type==="*"?ll:E.type==="?"?cl:"\\"+E.type;s=!0,n=n.slice(0,E.reStart)+B+"\\("+P}D(),o&&(n+="\\\\");let q=sT[n.charAt(0)];for(let P=l.length-1;P>-1;P--){let B=l[P],x=n.slice(0,B.reStart),M=n.slice(B.reStart,B.reEnd-8),k=n.slice(B.reEnd),H=n.slice(B.reEnd-8,B.reEnd)+k,ee=x.split(")").length,se=x.split("(").length-ee,de=k;for(let fe=0;fe<se;fe++)de=de.replace(/\)[+*?]?/,"");k=de;let ue=k===""&&r!==ul?"(?:$|\\/)":"";n=x+M+k+ue+H}if(n!==""&&s&&(n="(?=.)"+n),q&&(n=R()+n),r===ul)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return aT(e);let Z=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",Z),{_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?ll:r.dot?iT:nT,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?uT(a):a===$e?$e:a._src).reduce((a,l)=>(a[a.length-1]===$e&&l===$e||a.push(l),a),[]),o.forEach((a,l)=>{a!==$e||o[l-1]===$e||(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]=$e))}),o.filter(a=>a!==$e).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;fl.sep!=="/"&&(e=e.split(fl.sep).join("/")),e=e.split(md),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 Xe.defaults(e).Minimatch}};Xe.Minimatch=Hr});var Ad=b((Z3,Td)=>{Td.exports=vd;var pl=W("fs"),{EventEmitter:cT}=W("events"),{Minimatch:dl}=wd(),{resolve:hT}=W("path");function dT(t,e){return new Promise((r,i)=>{pl.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 Sd(t,e){return new Promise((r,i)=>{(e?pl.stat:pl.lstat)(t,(s,o)=>{s?s.code==="ENOENT"?r(e?Sd(t,!1):null):r(null):r(o)})})}async function*Ed(t,e,r,i,n,s){let o=await dT(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),h=e+"/"+f,g=null;(i||r)&&(g=await Sd(h,r)),!g&&a.name!==void 0&&(g=a),g===null&&(g={isDirectory:()=>!1}),g.isDirectory()?n(f)||(yield{relative:f,absolute:h,stats:g},yield*Ed(u,e,r,i,n,!1)):yield{relative:f,absolute:h,stats:g}}}async function*pT(t,e,r,i){yield*Ed("",t,e,r,i,!0)}function gT(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 Ns=class extends cT{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=gT(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 dl(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 dl(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 dl(s,{dot:!0}))}this.iterator=pT(hT(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 vd(t,e,r){return new Ns(t,e,r)}vd.ReaddirGlob=Ns});var Rd=b((Ms,xd)=>{(function(t,e){typeof Ms=="object"&&typeof xd<"u"?e(Ms):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.async={}))})(Ms,(function(t){"use strict";function e(d,...c){return(...p)=>d(...c,...p)}function r(d){return function(...c){var p=c.pop();return d.call(this,c,p)}}var i=typeof queueMicrotask=="function"&&queueMicrotask,n=typeof setImmediate=="function"&&setImmediate,s=typeof process=="object"&&typeof process.nextTick=="function";function o(d){setTimeout(d,0)}function a(d){return(c,...p)=>d(()=>c(...p))}var l;i?l=queueMicrotask:n?l=setImmediate:s?l=process.nextTick:l=o;var u=a(l);function f(d){return y(d)?function(...c){let p=c.pop(),w=d.apply(this,c);return h(w,p)}:r(function(c,p){var w;try{w=d.apply(this,c)}catch(T){return p(T)}if(w&&typeof w.then=="function")return h(w,p);p(null,w)})}function h(d,c){return d.then(p=>{g(c,null,p)},p=>{g(c,p&&(p instanceof Error||p.message)?p:new Error(p))})}function g(d,c,p){try{d(c,p)}catch(w){u(T=>{throw T},w)}}function y(d){return d[Symbol.toStringTag]==="AsyncFunction"}function E(d){return d[Symbol.toStringTag]==="AsyncGenerator"}function m(d){return typeof d[Symbol.asyncIterator]=="function"}function v(d){if(typeof d!="function")throw new Error("expected a function");return y(d)?f(d):d}function S(d,c){if(c||(c=d.length),!c)throw new Error("arity is undefined");function p(...w){return typeof w[c-1]=="function"?d.apply(this,w):new Promise((T,A)=>{w[c-1]=(O,...I)=>{if(O)return A(O);T(I.length>1?I:I[0])},d.apply(this,w)})}return p}function R(d){return function(p,...w){return S(function(A){var O=this;return d(p,(I,C)=>{v(I).apply(O,w.concat(C))},A)})}}function L(d,c,p,w){c=c||[];var T=[],A=0,O=v(p);return d(c,(I,C,U)=>{var te=A++;O(I,(oe,re)=>{T[te]=re,U(oe)})},I=>{w(I,T)})}function D(d){return d&&typeof d.length=="number"&&d.length>=0&&d.length%1===0}let q={};function Z(d){function c(...p){if(d!==null){var w=d;d=null,w.apply(this,p)}}return Object.assign(c,d),c}function P(d){return d[Symbol.iterator]&&d[Symbol.iterator]()}function B(d){var c=-1,p=d.length;return function(){return++c<p?{value:d[c],key:c}:null}}function x(d){var c=-1;return function(){var w=d.next();return w.done?null:(c++,{value:w.value,key:c})}}function M(d){var c=d?Object.keys(d):[],p=-1,w=c.length;return function T(){var A=c[++p];return A==="__proto__"?T():p<w?{value:d[A],key:A}:null}}function k(d){if(D(d))return B(d);var c=P(d);return c?x(c):M(d)}function H(d){return function(...c){if(d===null)throw new Error("Callback was already called.");var p=d;d=null,p.apply(this,c)}}function ee(d,c,p,w){let T=!1,A=!1,O=!1,I=0,C=0;function U(){I>=c||O||T||(O=!0,d.next().then(({value:re,done:it})=>{if(!(A||T)){if(O=!1,it){T=!0,I<=0&&w(null);return}I++,p(re,C,te),C++,U()}}).catch(oe))}function te(re,it){if(I-=1,!A){if(re)return oe(re);if(re===!1){T=!0,A=!0;return}if(it===q||T&&I<=0)return T=!0,w(null);U()}}function oe(re){A||(O=!1,T=!0,w(re))}U()}var se=d=>(c,p,w)=>{if(w=Z(w),d<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!c)return w(null);if(E(c))return ee(c,d,p,w);if(m(c))return ee(c[Symbol.asyncIterator](),d,p,w);var T=k(c),A=!1,O=!1,I=0,C=!1;function U(oe,re){if(!O)if(I-=1,oe)A=!0,w(oe);else if(oe===!1)A=!0,O=!0;else{if(re===q||A&&I<=0)return A=!0,w(null);C||te()}}function te(){for(C=!0;I<d&&!A;){var oe=T();if(oe===null){A=!0,I<=0&&w(null);return}I+=1,p(oe.value,oe.key,H(U))}C=!1}te()};function de(d,c,p,w){return se(c)(d,v(p),w)}var ue=S(de,4);function fe(d,c,p){p=Z(p);var w=0,T=0,{length:A}=d,O=!1;A===0&&p(null);function I(C,U){C===!1&&(O=!0),O!==!0&&(C?p(C):(++T===A||U===q)&&p(null))}for(;w<A;w++)c(d[w],w,H(I))}function Oe(d,c,p){return ue(d,1/0,c,p)}function ge(d,c,p){var w=D(d)?fe:Oe;return w(d,v(c),p)}var Ze=S(ge,3);function dv(d,c,p){return L(Ze,d,c,p)}var as=S(dv,3),Yc=R(as);function pv(d,c,p){return ue(d,1,c,p)}var ht=S(pv,3);function gv(d,c,p){return L(ht,d,c,p)}var ka=S(gv,3),Kc=R(ka);let Ur=Symbol("promiseCallback");function Wr(){let d,c;function p(w,...T){if(w)return c(w);d(T.length>1?T:T[0])}return p[Ur]=new Promise((w,T)=>{d=w,c=T}),p}function Fa(d,c,p){typeof c!="number"&&(p=c,c=null),p=Z(p||Wr());var w=Object.keys(d).length;if(!w)return p(null);c||(c=w);var T={},A=0,O=!1,I=!1,C=Object.create(null),U=[],te=[],oe={};Object.keys(d).forEach(j=>{var z=d[j];if(!Array.isArray(z)){re(j,[z]),te.push(j);return}var ie=z.slice(0,z.length-1),we=ie.length;if(we===0){re(j,z),te.push(j);return}oe[j]=we,ie.forEach(Pe=>{if(!d[Pe])throw new Error("async.auto task `"+j+"` has a non-existent dependency `"+Pe+"` in "+ie.join(", "));zr(Pe,()=>{we--,we===0&&re(j,z)})})}),ae(),it();function re(j,z){U.push(()=>Wi(j,z))}function it(){if(!O){if(U.length===0&&A===0)return p(null,T);for(;U.length&&A<c;){var j=U.shift();j()}}}function zr(j,z){var ie=C[j];ie||(ie=C[j]=[]),ie.push(z)}function yr(j){var z=C[j]||[];z.forEach(ie=>ie()),it()}function Wi(j,z){if(!I){var ie=H((Pe,...nt)=>{if(A--,Pe===!1){O=!0;return}if(nt.length<2&&([nt]=nt),Pe){var $r={};if(Object.keys(T).forEach(mr=>{$r[mr]=T[mr]}),$r[j]=nt,I=!0,C=Object.create(null),O)return;p(Pe,$r)}else T[j]=nt,yr(j)});A++;var we=v(z[z.length-1]);z.length>1?we(T,ie):we(ie)}}function ae(){for(var j,z=0;te.length;)j=te.pop(),z++,G(j).forEach(ie=>{--oe[ie]===0&&te.push(ie)});if(z!==w)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function G(j){var z=[];return Object.keys(d).forEach(ie=>{let we=d[ie];Array.isArray(we)&&we.indexOf(j)>=0&&z.push(ie)}),z}return p[Ur]}var yv=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,mv=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,_v=/,/,bv=/(=.+)?(\s*)$/;function wv(d){let c="",p=0,w=d.indexOf("*/");for(;p<d.length;)if(d[p]==="/"&&d[p+1]==="/"){let T=d.indexOf(`
|
|
9
|
+
`,p);p=T===-1?d.length:T}else if(w!==-1&&d[p]==="/"&&d[p+1]==="*"){let T=d.indexOf("*/",p);T!==-1?(p=T+2,w=d.indexOf("*/",p)):(c+=d[p],p++)}else c+=d[p],p++;return c}function Sv(d){let c=wv(d.toString()),p=c.match(yv);if(p||(p=c.match(mv)),!p)throw new Error(`could not parse args in autoInject
|
|
10
10
|
Source:
|
|
11
|
-
`+c);let[,w]=p;return w.replace(/\s/g,"").split(mv).map(T=>T.replace(_v,"").trim())}function Zc(d,c){var p={};return Object.keys(d).forEach(w=>{var T=d[w],A,O=y(T),I=!O&&T.length===1||O&&T.length===0;if(Array.isArray(T))A=[...T],T=A.pop(),p[w]=A.concat(A.length>0?C:T);else if(I)p[w]=T;else{if(A=wv(T),T.length===0&&!O&&A.length===0)throw new Error("autoInject task functions require explicit parameters.");O||A.pop(),p[w]=A.concat(C)}function C(U,te){var oe=A.map(re=>U[re]);oe.push(te),v(T)(...oe)}}),Fa(p,c)}class Sv{constructor(){this.head=this.tail=null,this.length=0}removeLink(c){return c.prev?c.prev.next=c.next:this.head=c.next,c.next?c.next.prev=c.prev:this.tail=c.prev,c.prev=c.next=null,this.length-=1,c}empty(){for(;this.head;)this.shift();return this}insertAfter(c,p){p.prev=c,p.next=c.next,c.next?c.next.prev=p:this.tail=p,c.next=p,this.length+=1}insertBefore(c,p){p.prev=c.prev,p.next=c,c.prev?c.prev.next=p:this.head=p,c.prev=p,this.length+=1}unshift(c){this.head?this.insertBefore(this.head,c):Qc(this,c)}push(c){this.tail?this.insertAfter(this.tail,c):Qc(this,c)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var c=this.head;c;)yield c.data,c=c.next}remove(c){for(var p=this.head;p;){var{next:w}=p;c(p)&&this.removeLink(p),p=w}return this}}function Qc(d,c){d.length=1,d.head=d.tail=c}function qa(d,c,p){if(c==null)c=1;else if(c===0)throw new RangeError("Concurrency must not be zero");var w=v(d),T=0,A=[];let O={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function I(G,j){O[G].push(j)}function C(G,j){let z=(...ie)=>{U(G,z),j(...ie)};O[G].push(z)}function U(G,j){if(!G)return Object.keys(O).forEach(z=>O[z]=[]);if(!j)return O[G]=[];O[G]=O[G].filter(z=>z!==j)}function te(G,...j){O[G].forEach(z=>z(...j))}var oe=!1;function re(G,j,z,ie){if(ie!=null&&typeof ie!="function")throw new Error("task callback must be a function");ae.started=!0;var we,Pe;function nt(mr,...Gi){if(mr)return z?Pe(mr):we();if(Gi.length<=1)return we(Gi[0]);we(Gi)}var $r=ae._createTaskItem(G,z?nt:ie||nt);if(j?ae._tasks.unshift($r):ae._tasks.push($r),oe||(oe=!0,u(()=>{oe=!1,ae.process()})),z||!ie)return new Promise((mr,Gi)=>{we=mr,Pe=Gi})}function it(G){return function(j,...z){T-=1;for(var ie=0,we=G.length;ie<we;ie++){var Pe=G[ie],nt=A.indexOf(Pe);nt===0?A.shift():nt>0&&A.splice(nt,1),Pe.callback(j,...z),j!=null&&te("error",j,Pe.data)}T<=ae.concurrency-ae.buffer&&te("unsaturated"),ae.idle()&&te("drain"),ae.process()}}function zr(G){return G.length===0&&ae.idle()?(u(()=>te("drain")),!0):!1}let yr=G=>j=>{if(!j)return new Promise((z,ie)=>{C(G,(we,Pe)=>{if(we)return ie(we);z(Pe)})});U(G),I(G,j)};var Wi=!1,ae={_tasks:new Sv,_createTaskItem(G,j){return{data:G,callback:j}},*[Symbol.iterator](){yield*ae._tasks[Symbol.iterator]()},concurrency:c,payload:p,buffer:c/4,started:!1,paused:!1,push(G,j){return Array.isArray(G)?zr(G)?void 0:G.map(z=>re(z,!1,!1,j)):re(G,!1,!1,j)},pushAsync(G,j){return Array.isArray(G)?zr(G)?void 0:G.map(z=>re(z,!1,!0,j)):re(G,!1,!0,j)},kill(){U(),ae._tasks.empty()},unshift(G,j){return Array.isArray(G)?zr(G)?void 0:G.map(z=>re(z,!0,!1,j)):re(G,!0,!1,j)},unshiftAsync(G,j){return Array.isArray(G)?zr(G)?void 0:G.map(z=>re(z,!0,!0,j)):re(G,!0,!0,j)},remove(G){ae._tasks.remove(G)},process(){if(!Wi){for(Wi=!0;!ae.paused&&T<ae.concurrency&&ae._tasks.length;){var G=[],j=[],z=ae._tasks.length;ae.payload&&(z=Math.min(z,ae.payload));for(var ie=0;ie<z;ie++){var we=ae._tasks.shift();G.push(we),A.push(we),j.push(we.data)}T+=1,ae._tasks.length===0&&te("empty"),T===ae.concurrency&&te("saturated");var Pe=H(it(G));w(j,Pe)}Wi=!1}},length(){return ae._tasks.length},running(){return T},workersList(){return A},idle(){return ae._tasks.length+T===0},pause(){ae.paused=!0},resume(){ae.paused!==!1&&(ae.paused=!1,u(ae.process))}};return Object.defineProperties(ae,{saturated:{writable:!1,value:yr("saturated")},unsaturated:{writable:!1,value:yr("unsaturated")},empty:{writable:!1,value:yr("empty")},drain:{writable:!1,value:yr("drain")},error:{writable:!1,value:yr("error")}}),ae}function Xc(d,c){return qa(d,1,c)}function Jc(d,c,p){return qa(d,c,p)}function Ev(d,c,p,w){w=Z(w);var T=v(p);return ht(d,(A,O,I)=>{T(c,A,(C,U)=>{c=U,I(C)})},A=>w(A,c))}var Vt=S(Ev,4);function Ba(...d){var c=d.map(v);return function(...p){var w=this,T=p[p.length-1];return typeof T=="function"?p.pop():T=Wr(),Vt(c,p,(A,O,I)=>{O.apply(w,A.concat((C,...U)=>{I(C,U)}))},(A,O)=>T(A,...O)),T[Ur]}}function eh(...d){return Ba(...d.reverse())}function vv(d,c,p,w){return L(se(c),d,p,w)}var Fi=S(vv,4);function Tv(d,c,p,w){var T=v(p);return Fi(d,c,(A,O)=>{T(A,(I,...C)=>I?O(I):O(I,C))},(A,O)=>{for(var I=[],C=0;C<O.length;C++)O[C]&&(I=I.concat(...O[C]));return w(A,I)})}var Gr=S(Tv,4);function Av(d,c,p){return Gr(d,1/0,c,p)}var ls=S(Av,3);function xv(d,c,p){return Gr(d,1,c,p)}var us=S(xv,3);function th(...d){return function(...c){var p=c.pop();return p(null,...d)}}function Nt(d,c){return(p,w,T,A)=>{var O=!1,I;let C=v(T);p(w,(U,te,oe)=>{C(U,(re,it)=>{if(re||re===!1)return oe(re);if(d(it)&&!I)return O=!0,I=c(!0,U),oe(null,q);oe()})},U=>{if(U)return A(U);A(null,O?I:c(!1))})}}function Rv(d,c,p){return Nt(w=>w,(w,T)=>T)(Ze,d,c,p)}var fs=S(Rv,3);function Ov(d,c,p,w){return Nt(T=>T,(T,A)=>A)(se(c),d,p,w)}var cs=S(Ov,4);function Dv(d,c,p){return Nt(w=>w,(w,T)=>T)(se(1),d,c,p)}var hs=S(Dv,3);function rh(d){return(c,...p)=>v(c)(...p,(w,...T)=>{typeof console=="object"&&(w?console.error&&console.error(w):console[d]&&T.forEach(A=>console[d](A)))})}var ih=rh("dir");function Iv(d,c,p){p=H(p);var w=v(d),T=v(c),A;function O(C,...U){if(C)return p(C);C!==!1&&(A=U,T(...U,I))}function I(C,U){if(C)return p(C);if(C!==!1){if(!U)return p(null,...A);w(O)}}return I(null,!0)}var qi=S(Iv,3);function nh(d,c,p){let w=v(c);return qi(d,(...T)=>{let A=T.pop();w(...T,(O,I)=>A(O,!I))},p)}function sh(d){return(c,p,w)=>d(c,w)}function Pv(d,c,p){return Ze(d,sh(v(c)),p)}var ds=S(Pv,3);function Lv(d,c,p,w){return se(c)(d,sh(v(p)),w)}var Bi=S(Lv,4);function Cv(d,c,p){return Bi(d,1,c,p)}var ji=S(Cv,3);function ja(d){return y(d)?d:function(...c){var p=c.pop(),w=!0;c.push((...T)=>{w?u(()=>p(...T)):p(...T)}),d.apply(this,c),w=!1}}function Nv(d,c,p){return Nt(w=>!w,w=>!w)(Ze,d,c,p)}var ps=S(Nv,3);function Mv(d,c,p,w){return Nt(T=>!T,T=>!T)(se(c),d,p,w)}var gs=S(Mv,4);function kv(d,c,p){return Nt(w=>!w,w=>!w)(ht,d,c,p)}var ys=S(kv,3);function Fv(d,c,p,w){var T=new Array(c.length);d(c,(A,O,I)=>{p(A,(C,U)=>{T[O]=!!U,I(C)})},A=>{if(A)return w(A);for(var O=[],I=0;I<c.length;I++)T[I]&&O.push(c[I]);w(null,O)})}function qv(d,c,p,w){var T=[];d(c,(A,O,I)=>{p(A,(C,U)=>{if(C)return I(C);U&&T.push({index:O,value:A}),I(C)})},A=>{if(A)return w(A);w(null,T.sort((O,I)=>O.index-I.index).map(O=>O.value))})}function ms(d,c,p,w){var T=D(c)?Fv:qv;return T(d,c,v(p),w)}function Bv(d,c,p){return ms(Ze,d,c,p)}var _s=S(Bv,3);function jv(d,c,p,w){return ms(se(c),d,p,w)}var bs=S(jv,4);function Uv(d,c,p){return ms(ht,d,c,p)}var ws=S(Uv,3);function Wv(d,c){var p=H(c),w=v(ja(d));function T(A){if(A)return p(A);A!==!1&&w(T)}return T()}var oh=S(Wv,2);function Gv(d,c,p,w){var T=v(p);return Fi(d,c,(A,O)=>{T(A,(I,C)=>I?O(I):O(I,{key:C,val:A}))},(A,O)=>{for(var I={},{hasOwnProperty:C}=Object.prototype,U=0;U<O.length;U++)if(O[U]){var{key:te}=O[U],{val:oe}=O[U];C.call(I,te)?I[te].push(oe):I[te]=[oe]}return w(A,I)})}var Ss=S(Gv,4);function ah(d,c,p){return Ss(d,1/0,c,p)}function lh(d,c,p){return Ss(d,1,c,p)}var uh=rh("log");function zv(d,c,p,w){w=Z(w);var T={},A=v(p);return se(c)(d,(O,I,C)=>{A(O,I,(U,te)=>{if(U)return C(U);T[I]=te,C(U)})},O=>w(O,T))}var Es=S(zv,4);function fh(d,c,p){return Es(d,1/0,c,p)}function ch(d,c,p){return Es(d,1,c,p)}function hh(d,c=p=>p){var p=Object.create(null),w=Object.create(null),T=v(d),A=r((O,I)=>{var C=c(...O);C in p?u(()=>I(null,...p[C])):C in w?w[C].push(I):(w[C]=[I],T(...O,(U,...te)=>{U||(p[C]=te);var oe=w[C];delete w[C];for(var re=0,it=oe.length;re<it;re++)oe[re](U,...te)}))});return A.memo=p,A.unmemoized=d,A}var vs;s?vs=process.nextTick:n?vs=setImmediate:vs=o;var dh=a(vs),Ua=S((d,c,p)=>{var w=D(c)?[]:{};d(c,(T,A,O)=>{v(T)((I,...C)=>{C.length<2&&([C]=C),w[A]=C,O(I)})},T=>p(T,w))},3);function ph(d,c){return Ua(Ze,d,c)}function gh(d,c,p){return Ua(se(c),d,p)}function Wa(d,c){var p=v(d);return qa((w,T)=>{p(w[0],T)},c,1)}class $v{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(c){let p;for(;c>0&&Ga(this.heap[c],this.heap[p=yh(c)]);){let w=this.heap[c];this.heap[c]=this.heap[p],this.heap[p]=w,c=p}}percDown(c){let p;for(;(p=Hv(c))<this.heap.length&&(p+1<this.heap.length&&Ga(this.heap[p+1],this.heap[p])&&(p=p+1),!Ga(this.heap[c],this.heap[p]));){let w=this.heap[c];this.heap[c]=this.heap[p],this.heap[p]=w,c=p}}push(c){c.pushCount=++this.pushCount,this.heap.push(c),this.percUp(this.heap.length-1)}unshift(c){return this.heap.push(c)}shift(){let[c]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),c}toArray(){return[...this]}*[Symbol.iterator](){for(let c=0;c<this.heap.length;c++)yield this.heap[c].data}remove(c){let p=0;for(let w=0;w<this.heap.length;w++)c(this.heap[w])||(this.heap[p]=this.heap[w],p++);this.heap.splice(p);for(let w=yh(this.heap.length-1);w>=0;w--)this.percDown(w);return this}}function Hv(d){return(d<<1)+1}function yh(d){return(d+1>>1)-1}function Ga(d,c){return d.priority!==c.priority?d.priority<c.priority:d.pushCount<c.pushCount}function mh(d,c){var p=Wa(d,c),{push:w,pushAsync:T}=p;p._tasks=new $v,p._createTaskItem=({data:O,priority:I},C)=>({data:O,priority:I,callback:C});function A(O,I){return Array.isArray(O)?O.map(C=>({data:C,priority:I})):{data:O,priority:I}}return p.push=function(O,I=0,C){return w(A(O,I),C)},p.pushAsync=function(O,I=0,C){return T(A(O,I),C)},delete p.unshift,delete p.unshiftAsync,p}function Vv(d,c){if(c=Z(c),!Array.isArray(d))return c(new TypeError("First argument to race must be an array of functions"));if(!d.length)return c();for(var p=0,w=d.length;p<w;p++)v(d[p])(c)}var _h=S(Vv,2);function Ts(d,c,p,w){var T=[...d].reverse();return Vt(T,c,p,w)}function As(d){var c=v(d);return r(function(w,T){return w.push((A,...O)=>{let I={};if(A&&(I.error=A),O.length>0){var C=O;O.length<=1&&([C]=O),I.value=C}T(null,I)}),c.apply(this,w)})}function bh(d){var c;return Array.isArray(d)?c=d.map(As):(c={},Object.keys(d).forEach(p=>{c[p]=As.call(this,d[p])})),c}function za(d,c,p,w){let T=v(p);return ms(d,c,(A,O)=>{T(A,(I,C)=>{O(I,!C)})},w)}function Yv(d,c,p){return za(Ze,d,c,p)}var wh=S(Yv,3);function Kv(d,c,p,w){return za(se(c),d,p,w)}var Sh=S(Kv,4);function Zv(d,c,p){return za(ht,d,c,p)}var Eh=S(Zv,3);function vh(d){return function(){return d}}let $a=5,Th=0;function xs(d,c,p){var w={times:$a,intervalFunc:vh(Th)};if(arguments.length<3&&typeof d=="function"?(p=c||Wr(),c=d):(Qv(w,d),p=p||Wr()),typeof c!="function")throw new Error("Invalid arguments for async.retry");var T=v(c),A=1;function O(){T((I,...C)=>{I!==!1&&(I&&A++<w.times&&(typeof w.errorFilter!="function"||w.errorFilter(I))?setTimeout(O,w.intervalFunc(A-1)):p(I,...C))})}return O(),p[Ur]}function Qv(d,c){if(typeof c=="object")d.times=+c.times||$a,d.intervalFunc=typeof c.interval=="function"?c.interval:vh(+c.interval||Th),d.errorFilter=c.errorFilter;else if(typeof c=="number"||typeof c=="string")d.times=+c||$a;else throw new Error("Invalid arguments for async.retry")}function Ah(d,c){c||(c=d,d=null);let p=d&&d.arity||c.length;y(c)&&(p+=1);var w=v(c);return r((T,A)=>{(T.length<p-1||A==null)&&(T.push(A),A=Wr());function O(I){w(...T,I)}return d?xs(d,O,A):xs(O,A),A[Ur]})}function xh(d,c){return Ua(ht,d,c)}function Xv(d,c,p){return Nt(Boolean,w=>w)(Ze,d,c,p)}var Rs=S(Xv,3);function Jv(d,c,p,w){return Nt(Boolean,T=>T)(se(c),d,p,w)}var Os=S(Jv,4);function e1(d,c,p){return Nt(Boolean,w=>w)(ht,d,c,p)}var Ds=S(e1,3);function t1(d,c,p){var w=v(c);return as(d,(A,O)=>{w(A,(I,C)=>{if(I)return O(I);O(I,{value:A,criteria:C})})},(A,O)=>{if(A)return p(A);p(null,O.sort(T).map(I=>I.value))});function T(A,O){var I=A.criteria,C=O.criteria;return I<C?-1:I>C?1:0}}var Rh=S(t1,3);function Oh(d,c,p){var w=v(d);return r((T,A)=>{var O=!1,I;function C(){var U=d.name||"anonymous",te=new Error('Callback function "'+U+'" timed out.');te.code="ETIMEDOUT",p&&(te.info=p),O=!0,A(te)}T.push((...U)=>{O||(A(...U),clearTimeout(I))}),I=setTimeout(C,c),w(...T)})}function r1(d){for(var c=Array(d);d--;)c[d]=d;return c}function Is(d,c,p,w){var T=v(p);return Fi(r1(d),c,T,w)}function Dh(d,c,p){return Is(d,1/0,c,p)}function Ih(d,c,p){return Is(d,1,c,p)}function Ph(d,c,p,w){arguments.length<=3&&typeof c=="function"&&(w=p,p=c,c=Array.isArray(d)?[]:{}),w=Z(w||Wr());var T=v(p);return Ze(d,(A,O,I)=>{T(c,A,O,I)},A=>w(A,c)),w[Ur]}function i1(d,c){var p=null,w;return ji(d,(T,A)=>{v(T)((O,...I)=>{if(O===!1)return A(O);I.length<2?[w]=I:w=I,p=O,A(O?null:{})})},()=>c(p,w))}var Lh=S(i1);function Ch(d){return(...c)=>(d.unmemoized||d)(...c)}function n1(d,c,p){p=H(p);var w=v(c),T=v(d),A=[];function O(C,...U){if(C)return p(C);A=U,C!==!1&&T(I)}function I(C,U){if(C)return p(C);if(C!==!1){if(!U)return p(null,...A);w(O)}}return T(I)}var Ui=S(n1,3);function Nh(d,c,p){let w=v(d);return Ui(T=>w((A,O)=>T(A,!O)),c,p)}function s1(d,c){if(c=Z(c),!Array.isArray(d))return c(new Error("First argument to waterfall must be an array of functions"));if(!d.length)return c();var p=0;function w(A){var O=v(d[p++]);O(...A,H(T))}function T(A,...O){if(A!==!1){if(A||p===d.length)return c(A,...O);w(O)}}w([])}var Mh=S(s1),o1={apply:e,applyEach:Yc,applyEachSeries:Kc,asyncify:f,auto:Fa,autoInject:Zc,cargo:Xc,cargoQueue:Jc,compose:eh,concat:ls,concatLimit:Gr,concatSeries:us,constant:th,detect:fs,detectLimit:cs,detectSeries:hs,dir:ih,doUntil:nh,doWhilst:qi,each:ds,eachLimit:Bi,eachOf:Ze,eachOfLimit:ue,eachOfSeries:ht,eachSeries:ji,ensureAsync:ja,every:ps,everyLimit:gs,everySeries:ys,filter:_s,filterLimit:bs,filterSeries:ws,forever:oh,groupBy:ah,groupByLimit:Ss,groupBySeries:lh,log:uh,map:as,mapLimit:Fi,mapSeries:ka,mapValues:fh,mapValuesLimit:Es,mapValuesSeries:ch,memoize:hh,nextTick:dh,parallel:ph,parallelLimit:gh,priorityQueue:mh,queue:Wa,race:_h,reduce:Vt,reduceRight:Ts,reflect:As,reflectAll:bh,reject:wh,rejectLimit:Sh,rejectSeries:Eh,retry:xs,retryable:Ah,seq:Ba,series:xh,setImmediate:u,some:Rs,someLimit:Os,someSeries:Ds,sortBy:Rh,timeout:Oh,times:Dh,timesLimit:Is,timesSeries:Ih,transform:Ph,tryEach:Lh,unmemoize:Ch,until:Nh,waterfall:Mh,whilst:Ui,all:ps,allLimit:gs,allSeries:ys,any:Rs,anyLimit:Os,anySeries:Ds,find:fs,findLimit:cs,findSeries:hs,flatMap:ls,flatMapLimit:Gr,flatMapSeries:us,forEach:ds,forEachSeries:ji,forEachLimit:Bi,forEachOf:Ze,forEachOfSeries:ht,forEachOfLimit:ue,inject:Vt,foldl:Vt,foldr:Ts,select:_s,selectLimit:bs,selectSeries:ws,wrapSync:f,during:Ui,doDuring:qi};t.all=ps,t.allLimit=gs,t.allSeries=ys,t.any=Rs,t.anyLimit=Os,t.anySeries=Ds,t.apply=e,t.applyEach=Yc,t.applyEachSeries=Kc,t.asyncify=f,t.auto=Fa,t.autoInject=Zc,t.cargo=Xc,t.cargoQueue=Jc,t.compose=eh,t.concat=ls,t.concatLimit=Gr,t.concatSeries=us,t.constant=th,t.default=o1,t.detect=fs,t.detectLimit=cs,t.detectSeries=hs,t.dir=ih,t.doDuring=qi,t.doUntil=nh,t.doWhilst=qi,t.during=Ui,t.each=ds,t.eachLimit=Bi,t.eachOf=Ze,t.eachOfLimit=ue,t.eachOfSeries=ht,t.eachSeries=ji,t.ensureAsync=ja,t.every=ps,t.everyLimit=gs,t.everySeries=ys,t.filter=_s,t.filterLimit=bs,t.filterSeries=ws,t.find=fs,t.findLimit=cs,t.findSeries=hs,t.flatMap=ls,t.flatMapLimit=Gr,t.flatMapSeries=us,t.foldl=Vt,t.foldr=Ts,t.forEach=ds,t.forEachLimit=Bi,t.forEachOf=Ze,t.forEachOfLimit=ue,t.forEachOfSeries=ht,t.forEachSeries=ji,t.forever=oh,t.groupBy=ah,t.groupByLimit=Ss,t.groupBySeries=lh,t.inject=Vt,t.log=uh,t.map=as,t.mapLimit=Fi,t.mapSeries=ka,t.mapValues=fh,t.mapValuesLimit=Es,t.mapValuesSeries=ch,t.memoize=hh,t.nextTick=dh,t.parallel=ph,t.parallelLimit=gh,t.priorityQueue=mh,t.queue=Wa,t.race=_h,t.reduce=Vt,t.reduceRight=Ts,t.reflect=As,t.reflectAll=bh,t.reject=wh,t.rejectLimit=Sh,t.rejectSeries=Eh,t.retry=xs,t.retryable=Ah,t.select=_s,t.selectLimit=bs,t.selectSeries=ws,t.seq=Ba,t.series=xh,t.setImmediate=u,t.some=Rs,t.someLimit=Os,t.someSeries=Ds,t.sortBy=Rh,t.timeout=Oh,t.times=Dh,t.timesLimit=Is,t.timesSeries=Ih,t.transform=Ph,t.tryEach=Lh,t.unmemoize=Ch,t.until=Nh,t.waterfall=Mh,t.whilst=Ui,t.wrapSync=f,Object.defineProperty(t,"__esModule",{value:!0})}))});var Od=b((Q3,Rd)=>{var Kt=W("constants"),yT=process.cwd,ks=null,mT=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return ks||(ks=yT.call(process)),ks};try{process.cwd()}catch{}typeof process.chdir=="function"&&(gl=process.chdir,process.chdir=function(t){ks=null,gl.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,gl));var gl;Rd.exports=_T;function _T(t){Kt.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,h,g){g&&process.nextTick(g)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(f,h,g,y){y&&process.nextTick(y)},t.lchownSync=function(){}),mT==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:(function(f){function h(g,y,E){var m=Date.now(),v=0;f(g,y,function S(R){if(R&&(R.code==="EACCES"||R.code==="EPERM"||R.code==="EBUSY")&&Date.now()-m<6e4){setTimeout(function(){t.stat(y,function(L,D){L&&L.code==="ENOENT"?f(g,y,S):E(R)})},v),v<100&&(v+=10);return}E&&E(R)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h})(t.rename)),t.read=typeof t.read!="function"?t.read:(function(f){function h(g,y,E,m,v,S){var R;if(S&&typeof S=="function"){var L=0;R=function(D,q,Z){if(D&&D.code==="EAGAIN"&&L<10)return L++,f.call(t,g,y,E,m,v,R);S.apply(this,arguments)}}return f.call(t,g,y,E,m,v,R)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h})(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:(function(f){return function(h,g,y,E,m){for(var v=0;;)try{return f.call(t,h,g,y,E,m)}catch(S){if(S.code==="EAGAIN"&&v<10){v++;continue}throw S}}})(t.readSync);function e(f){f.lchmod=function(h,g,y){f.open(h,Kt.O_WRONLY|Kt.O_SYMLINK,g,function(E,m){if(E){y&&y(E);return}f.fchmod(m,g,function(v){f.close(m,function(S){y&&y(v||S)})})})},f.lchmodSync=function(h,g){var y=f.openSync(h,Kt.O_WRONLY|Kt.O_SYMLINK,g),E=!0,m;try{m=f.fchmodSync(y,g),E=!1}finally{if(E)try{f.closeSync(y)}catch{}else f.closeSync(y)}return m}}function r(f){Kt.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(h,g,y,E){f.open(h,Kt.O_SYMLINK,function(m,v){if(m){E&&E(m);return}f.futimes(v,g,y,function(S){f.close(v,function(R){E&&E(S||R)})})})},f.lutimesSync=function(h,g,y){var E=f.openSync(h,Kt.O_SYMLINK),m,v=!0;try{m=f.futimesSync(E,g,y),v=!1}finally{if(v)try{f.closeSync(E)}catch{}else f.closeSync(E)}return m}):f.futimes&&(f.lutimes=function(h,g,y,E){E&&process.nextTick(E)},f.lutimesSync=function(){})}function i(f){return f&&function(h,g,y){return f.call(t,h,g,function(E){u(E)&&(E=null),y&&y.apply(this,arguments)})}}function n(f){return f&&function(h,g){try{return f.call(t,h,g)}catch(y){if(!u(y))throw y}}}function s(f){return f&&function(h,g,y,E){return f.call(t,h,g,y,function(m){u(m)&&(m=null),E&&E.apply(this,arguments)})}}function o(f){return f&&function(h,g,y){try{return f.call(t,h,g,y)}catch(E){if(!u(E))throw E}}}function a(f){return f&&function(h,g,y){typeof g=="function"&&(y=g,g=null);function E(m,v){v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),y&&y.apply(this,arguments)}return g?f.call(t,h,g,E):f.call(t,h,E)}}function l(f){return f&&function(h,g){var y=g?f.call(t,h,g):f.call(t,h);return y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),y}}function u(f){if(!f||f.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var Pd=b((X3,Id)=>{var Dd=W("stream").Stream;Id.exports=bT;function bT(t){return{ReadStream:e,WriteStream:r};function e(i,n){if(!(this instanceof e))return new e(i,n);Dd.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,h){if(f){s.emit("error",f),s.readable=!1;return}s.fd=h,s.emit("open",h),s._read()})}function r(i,n){if(!(this instanceof r))return new r(i,n);Dd.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 Cd=b((J3,Ld)=>{"use strict";Ld.exports=ST;var wT=Object.getPrototypeOf||function(t){return t.__proto__};function ST(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:wT(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var bl=b((e4,_l)=>{var Ee=W("fs"),ET=Od(),vT=Pd(),TT=Cd(),Fs=W("util"),ke,Bs;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ke=Symbol.for("graceful-fs.queue"),Bs=Symbol.for("graceful-fs.previous")):(ke="___graceful-fs.queue",Bs="___graceful-fs.previous");function AT(){}function kd(t,e){Object.defineProperty(t,ke,{get:function(){return e}})}var _r=AT;Fs.debuglog?_r=Fs.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(_r=function(){var t=Fs.format.apply(Fs,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
12
|
-
GFS4: `),console.error(t)});Ee[ke]||(Nd=global[ke]||[],kd(Ee,Nd),Ee.close=(function(t){function e(r,i){return t.call(Ee,r,function(n){n||Md(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,Bs,{value:t}),e})(Ee.close),Ee.closeSync=(function(t){function e(r){t.apply(Ee,arguments),Md()}return Object.defineProperty(e,Bs,{value:t}),e})(Ee.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){_r(Ee[ke]),W("assert").equal(Ee[ke].length,0)}));var Nd;global[ke]||kd(global,Ee[ke]);_l.exports=yl(TT(Ee));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Ee.__patched&&(_l.exports=yl(Ee),Ee.__patched=!0);function yl(t){ET(t),t.gracefulify=yl,t.createReadStream=q,t.createWriteStream=Z;var e=t.readFile;t.readFile=r;function r(x,M,k){return typeof M=="function"&&(k=M,M=null),H(x,M,k);function H(ee,se,de,ue){return e(ee,se,function(fe){fe&&(fe.code==="EMFILE"||fe.code==="ENFILE")?Vr([H,[ee,se,de],fe,ue||Date.now(),Date.now()]):typeof de=="function"&&de.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=n;function n(x,M,k,H){return typeof k=="function"&&(H=k,k=null),ee(x,M,k,H);function ee(se,de,ue,fe,Oe){return i(se,de,ue,function(ge){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?Vr([ee,[se,de,ue,fe],ge,Oe||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(x,M,k,H){return typeof k=="function"&&(H=k,k=null),ee(x,M,k,H);function ee(se,de,ue,fe,Oe){return s(se,de,ue,function(ge){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?Vr([ee,[se,de,ue,fe],ge,Oe||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=l);function l(x,M,k,H){return typeof k=="function"&&(H=k,k=0),ee(x,M,k,H);function ee(se,de,ue,fe,Oe){return a(se,de,ue,function(ge){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?Vr([ee,[se,de,ue,fe],ge,Oe||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}}var u=t.readdir;t.readdir=h;var f=/^v[0-5]\./;function h(x,M,k){typeof M=="function"&&(k=M,M=null);var H=f.test(process.version)?function(de,ue,fe,Oe){return u(de,ee(de,ue,fe,Oe))}:function(de,ue,fe,Oe){return u(de,ue,ee(de,ue,fe,Oe))};return H(x,M,k);function ee(se,de,ue,fe){return function(Oe,ge){Oe&&(Oe.code==="EMFILE"||Oe.code==="ENFILE")?Vr([H,[se,de,ue],Oe,fe||Date.now(),Date.now()]):(ge&&ge.sort&&ge.sort(),typeof ue=="function"&&ue.call(this,Oe,ge))}}}if(process.version.substr(0,4)==="v0.8"){var g=vT(t);S=g.ReadStream,L=g.WriteStream}var y=t.ReadStream;y&&(S.prototype=Object.create(y.prototype),S.prototype.open=R);var E=t.WriteStream;E&&(L.prototype=Object.create(E.prototype),L.prototype.open=D),Object.defineProperty(t,"ReadStream",{get:function(){return S},set:function(x){S=x},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return L},set:function(x){L=x},enumerable:!0,configurable:!0});var m=S;Object.defineProperty(t,"FileReadStream",{get:function(){return m},set:function(x){m=x},enumerable:!0,configurable:!0});var v=L;Object.defineProperty(t,"FileWriteStream",{get:function(){return v},set:function(x){v=x},enumerable:!0,configurable:!0});function S(x,M){return this instanceof S?(y.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}function R(){var x=this;B(x.path,x.flags,x.mode,function(M,k){M?(x.autoClose&&x.destroy(),x.emit("error",M)):(x.fd=k,x.emit("open",k),x.read())})}function L(x,M){return this instanceof L?(E.apply(this,arguments),this):L.apply(Object.create(L.prototype),arguments)}function D(){var x=this;B(x.path,x.flags,x.mode,function(M,k){M?(x.destroy(),x.emit("error",M)):(x.fd=k,x.emit("open",k))})}function q(x,M){return new t.ReadStream(x,M)}function Z(x,M){return new t.WriteStream(x,M)}var P=t.open;t.open=B;function B(x,M,k,H){return typeof k=="function"&&(H=k,k=null),ee(x,M,k,H);function ee(se,de,ue,fe,Oe){return P(se,de,ue,function(ge,Ze){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?Vr([ee,[se,de,ue,fe],ge,Oe||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}}return t}function Vr(t){_r("ENQUEUE",t[0].name,t[1]),Ee[ke].push(t),ml()}var qs;function Md(){for(var t=Date.now(),e=0;e<Ee[ke].length;++e)Ee[ke][e].length>2&&(Ee[ke][e][3]=t,Ee[ke][e][4]=t);ml()}function ml(){if(clearTimeout(qs),qs=void 0,Ee[ke].length!==0){var t=Ee[ke].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)_r("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){_r("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?(_r("RETRY",e.name,r),e.apply(null,r.concat([n]))):Ee[ke].push(t)}qs===void 0&&(qs=setTimeout(ml,0))}}});var js=b((t4,Fd)=>{"use strict";var bt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";bt.writable=t=>bt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";bt.readable=t=>bt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";bt.duplex=t=>bt.writable(t)&&bt.readable(t);bt.transform=t=>bt.duplex(t)&&typeof t._transform=="function";Fd.exports=bt});var Yi=b((r4,wl)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?wl.exports={nextTick:xT}:wl.exports=process;function xT(t,e,r,i){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,s,o;switch(n){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick(function(){t.call(null,e)});case 3:return process.nextTick(function(){t.call(null,e,r)});case 4:return process.nextTick(function(){t.call(null,e,r,i)});default:for(s=new Array(n-1),o=0;o<s.length;)s[o++]=arguments[o];return process.nextTick(function(){t.apply(null,s)})}}});var Bd=b((i4,qd)=>{var RT={}.toString;qd.exports=Array.isArray||function(t){return RT.call(t)=="[object Array]"}});var Sl=b((n4,jd)=>{jd.exports=W("stream")});var Ki=b((El,Wd)=>{var Us=W("buffer"),Mt=Us.Buffer;function Ud(t,e){for(var r in t)e[r]=t[r]}Mt.from&&Mt.alloc&&Mt.allocUnsafe&&Mt.allocUnsafeSlow?Wd.exports=Us:(Ud(Us,El),El.Buffer=Yr);function Yr(t,e,r){return Mt(t,e,r)}Ud(Mt,Yr);Yr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Mt(t,e,r)};Yr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=Mt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Yr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Mt(t)};Yr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Us.SlowBuffer(t)}});var Kr=b(Ue=>{function OT(t){return Array.isArray?Array.isArray(t):Ws(t)==="[object Array]"}Ue.isArray=OT;function DT(t){return typeof t=="boolean"}Ue.isBoolean=DT;function IT(t){return t===null}Ue.isNull=IT;function PT(t){return t==null}Ue.isNullOrUndefined=PT;function LT(t){return typeof t=="number"}Ue.isNumber=LT;function CT(t){return typeof t=="string"}Ue.isString=CT;function NT(t){return typeof t=="symbol"}Ue.isSymbol=NT;function MT(t){return t===void 0}Ue.isUndefined=MT;function kT(t){return Ws(t)==="[object RegExp]"}Ue.isRegExp=kT;function FT(t){return typeof t=="object"&&t!==null}Ue.isObject=FT;function qT(t){return Ws(t)==="[object Date]"}Ue.isDate=qT;function BT(t){return Ws(t)==="[object Error]"||t instanceof Error}Ue.isError=BT;function jT(t){return typeof t=="function"}Ue.isFunction=jT;function UT(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}Ue.isPrimitive=UT;Ue.isBuffer=W("buffer").Buffer.isBuffer;function Ws(t){return Object.prototype.toString.call(t)}});var Gd=b((o4,vl)=>{typeof Object.create=="function"?vl.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:vl.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 Zr=b((a4,Al)=>{try{if(Tl=W("util"),typeof Tl.inherits!="function")throw"";Al.exports=Tl.inherits}catch{Al.exports=Gd()}var Tl});var $d=b((l4,xl)=>{"use strict";function WT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var zd=Ki().Buffer,Zi=W("util");function GT(t,e,r){t.copy(e,r)}xl.exports=(function(){function t(){WT(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 zd.alloc(0);for(var i=zd.allocUnsafe(r>>>0),n=this.head,s=0;n;)GT(n.data,i,s),s+=n.data.length,n=n.next;return i},t})();Zi&&Zi.inspect&&Zi.inspect.custom&&(xl.exports.prototype[Zi.inspect.custom]=function(){var t=Zi.inspect({length:this.length});return this.constructor.name+" "+t})});var Rl=b((u4,Hd)=>{"use strict";var Gs=Yi();function zT(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,Gs.nextTick(zs,this,t)):Gs.nextTick(zs,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,Gs.nextTick(zs,r,s)):Gs.nextTick(zs,r,s):e&&e(s)}),this)}function $T(){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 zs(t,e){t.emit("error",e)}Hd.exports={destroy:zT,undestroy:$T}});var Yd=b((f4,Vd)=>{Vd.exports=W("util").deprecate});var Dl=b((c4,rp)=>{"use strict";var br=Yi();rp.exports=Re;function Zd(t){var e=this;this.next=null,this.entry=null,this.finish=function(){uA(e,t)}}var HT=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:br.nextTick,Qr;Re.WritableState=Xi;var Qd=Object.create(Kr());Qd.inherits=Zr();var VT={deprecate:Yd()},Xd=Sl(),Hs=Ki().Buffer,YT=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function KT(t){return Hs.from(t)}function ZT(t){return Hs.isBuffer(t)||t instanceof YT}var Jd=Rl();Qd.inherits(Re,Xd);function QT(){}function Xi(t,e){Qr=Qr||wr(),t=t||{};var r=e instanceof Qr;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){nA(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 Zd(this)}Xi.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Xi.prototype,"buffer",{get:VT.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var $s;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?($s=Function.prototype[Symbol.hasInstance],Object.defineProperty(Re,Symbol.hasInstance,{value:function(t){return $s.call(this,t)?!0:this!==Re?!1:t&&t._writableState instanceof Xi}})):$s=function(t){return t instanceof this};function Re(t){if(Qr=Qr||wr(),!$s.call(Re,this)&&!(this instanceof Qr))return new Re(t);this._writableState=new Xi(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)),Xd.call(this)}Re.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function XT(t,e){var r=new Error("write after end");t.emit("error",r),br.nextTick(e,r)}function JT(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),br.nextTick(i,s),n=!1),n}Re.prototype.write=function(t,e,r){var i=this._writableState,n=!1,s=!i.objectMode&&ZT(t);return s&&!Hs.isBuffer(t)&&(t=KT(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=QT),i.ended?XT(this,r):(s||JT(this,i,t,r))&&(i.pendingcb++,n=tA(this,i,s,t,e,r)),n};Re.prototype.cork=function(){var t=this._writableState;t.corked++};Re.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&ep(this,t))};Re.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 eA(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Hs.from(e,r)),e}Object.defineProperty(Re.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function tA(t,e,r,i,n,s){if(!r){var o=eA(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 Ol(t,e,!1,a,i,n,s);return l}function Ol(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 rA(t,e,r,i,n){--e.pendingcb,r?(br.nextTick(n,i),br.nextTick(Qi,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(n(i),t._writableState.errorEmitted=!0,t.emit("error",i),Qi(t,e))}function iA(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function nA(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(iA(r),e)rA(t,r,i,e,n);else{var s=tp(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&ep(t,r),i?HT(Kd,t,r,s,n):Kd(t,r,s,n)}}function Kd(t,e,r,i){r||sA(t,e),e.pendingcb--,i(),Qi(t,e)}function sA(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function ep(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,Ol(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 Zd(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,f=r.callback,h=e.objectMode?1:l.length;if(Ol(t,e,!1,h,l,u,f),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}Re.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))};Re.prototype._writev=null;Re.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||lA(this,i,r)};function tp(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function oA(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),Qi(t,e)})}function aA(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,br.nextTick(oA,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Qi(t,e){var r=tp(e);return r&&(aA(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}function lA(t,e,r){e.ending=!0,Qi(t,e),r&&(e.finished?br.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function uA(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(Re.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});Re.prototype.destroy=Jd.destroy;Re.prototype._undestroy=Jd.undestroy;Re.prototype._destroy=function(t,e){this.end(),e(t)}});var wr=b((h4,op)=>{"use strict";var ip=Yi(),fA=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};op.exports=kt;var np=Object.create(Kr());np.inherits=Zr();var sp=Ll(),Pl=Dl();np.inherits(kt,sp);for(Il=fA(Pl.prototype),Vs=0;Vs<Il.length;Vs++)Ys=Il[Vs],kt.prototype[Ys]||(kt.prototype[Ys]=Pl.prototype[Ys]);var Il,Ys,Vs;function kt(t){if(!(this instanceof kt))return new kt(t);sp.call(this,t),Pl.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",cA)}Object.defineProperty(kt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function cA(){this.allowHalfOpen||this._writableState.ended||ip.nextTick(hA,this)}function hA(t){t.end()}Object.defineProperty(kt.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)}});kt.prototype._destroy=function(t,e){this.push(null),this.end(),ip.nextTick(e,t)}});var Ml=b(lp=>{"use strict";var Nl=Ki().Buffer,ap=Nl.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 dA(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 pA(t){var e=dA(t);if(typeof e!="string"&&(Nl.isEncoding===ap||!ap(t)))throw new Error("Unknown encoding: "+t);return e||t}lp.StringDecoder=Ji;function Ji(t){this.encoding=pA(t);var e;switch(this.encoding){case"utf16le":this.text=wA,this.end=SA,e=4;break;case"utf8":this.fillLast=mA,e=4;break;case"base64":this.text=EA,this.end=vA,e=3;break;default:this.write=TA,this.end=AA;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Nl.allocUnsafe(e)}Ji.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||""};Ji.prototype.end=bA;Ji.prototype.text=_A;Ji.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 Cl(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function gA(t,e,r){var i=e.length-1;if(i<r)return 0;var n=Cl(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=Cl(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=Cl(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function yA(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 mA(t){var e=this.lastTotal-this.lastNeed,r=yA(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 _A(t,e){var r=gA(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 bA(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function wA(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 SA(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 EA(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 vA(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function TA(t){return t.toString(this.encoding)}function AA(t){return t&&t.length?this.write(t):""}});var Ll=b((g4,wp)=>{"use strict";var Jr=Yi();wp.exports=ye;var xA=Bd(),en;ye.ReadableState=gp;var p4=W("events").EventEmitter,hp=function(t,e){return t.listeners(e).length},jl=Sl(),tn=Ki().Buffer,RA=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function OA(t){return tn.from(t)}function DA(t){return tn.isBuffer(t)||t instanceof RA}var dp=Object.create(Kr());dp.inherits=Zr();var kl=W("util"),ce=void 0;kl&&kl.debuglog?ce=kl.debuglog("stream"):ce=function(){};var IA=$d(),pp=Rl(),Xr;dp.inherits(ye,jl);var Fl=["error","close","destroy","pause","resume"];function PA(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):xA(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function gp(t,e){en=en||wr(),t=t||{};var r=e instanceof en;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 IA,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&&(Xr||(Xr=Ml().StringDecoder),this.decoder=new Xr(t.encoding),this.encoding=t.encoding)}function ye(t){if(en=en||wr(),!(this instanceof ye))return new ye(t);this._readableState=new gp(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),jl.call(this)}Object.defineProperty(ye.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});ye.prototype.destroy=pp.destroy;ye.prototype._undestroy=pp.undestroy;ye.prototype._destroy=function(t,e){this.push(null),e(t)};ye.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=tn.from(t,e),e=""),i=!0),yp(this,t,e,!1,i)};ye.prototype.unshift=function(t){return yp(this,t,null,!0,!1)};function yp(t,e,r,i,n){var s=t._readableState;if(e===null)s.reading=!1,MA(t,s);else{var o;n||(o=LA(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==tn.prototype&&(e=OA(e)),i?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):ql(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?ql(t,s,e,!1):mp(t,s)):ql(t,s,e,!1))):i||(s.reading=!1)}return CA(s)}function ql(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&&Ks(t)),mp(t,e)}function LA(t,e){var r;return!DA(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function CA(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}ye.prototype.isPaused=function(){return this._readableState.flowing===!1};ye.prototype.setEncoding=function(t){return Xr||(Xr=Ml().StringDecoder),this._readableState.decoder=new Xr(t),this._readableState.encoding=t,this};var up=8388608;function NA(t){return t>=up?t=up:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function fp(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=NA(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}ye.prototype.read=function(t){ce("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 ce("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Bl(this):Ks(this),null;if(t=fp(t,e),t===0&&e.ended)return e.length===0&&Bl(this),null;var i=e.needReadable;ce("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,ce("length less than watermark",i)),e.ended||e.reading?(i=!1,ce("reading or ended",i)):i&&(ce("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=fp(r,e)));var n;return t>0?n=_p(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&&Bl(this)),n!==null&&this.emit("data",n),n};function MA(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,Ks(t)}}function Ks(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(ce("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Jr.nextTick(cp,t):cp(t))}function cp(t){ce("emit readable"),t.emit("readable"),Ul(t)}function mp(t,e){e.readingMore||(e.readingMore=!0,Jr.nextTick(kA,t,e))}function kA(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(ce("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}ye.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))};ye.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,ce("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=n?a:v;i.endEmitted?Jr.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(S,R){ce("onunpipe"),S===r&&R&&R.hasUnpiped===!1&&(R.hasUnpiped=!0,f())}function a(){ce("onend"),t.end()}var l=FA(r);t.on("drain",l);var u=!1;function f(){ce("cleanup"),t.removeListener("close",E),t.removeListener("finish",m),t.removeListener("drain",l),t.removeListener("error",y),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",v),r.removeListener("data",g),u=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}var h=!1;r.on("data",g);function g(S){ce("ondata"),h=!1;var R=t.write(S);R===!1&&!h&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&bp(i.pipes,t)!==-1)&&!u&&(ce("false write response, pause",i.awaitDrain),i.awaitDrain++,h=!0),r.pause())}function y(S){ce("onerror",S),v(),t.removeListener("error",y),hp(t,"error")===0&&t.emit("error",S)}PA(t,"error",y);function E(){t.removeListener("finish",m),v()}t.once("close",E);function m(){ce("onfinish"),t.removeListener("close",E),v()}t.once("finish",m);function v(){ce("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(ce("pipe resume"),r.resume()),t};function FA(t){return function(){var e=t._readableState;ce("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&hp(t,"data")&&(e.flowing=!0,Ul(t))}}ye.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=bp(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)};ye.prototype.on=function(t,e){var r=jl.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&&Ks(this):Jr.nextTick(qA,this))}return r};ye.prototype.addListener=ye.prototype.on;function qA(t){ce("readable nexttick read 0"),t.read(0)}ye.prototype.resume=function(){var t=this._readableState;return t.flowing||(ce("resume"),t.flowing=!0,BA(this,t)),this};function BA(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Jr.nextTick(jA,t,e))}function jA(t,e){e.reading||(ce("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),Ul(t),e.flowing&&!e.reading&&t.read(0)}ye.prototype.pause=function(){return ce("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ce("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Ul(t){var e=t._readableState;for(ce("flow",e.flowing);e.flowing&&t.read()!==null;);}ye.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(ce("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(ce("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(o){return function(){return t[o].apply(t,arguments)}})(n));for(var s=0;s<Fl.length;s++)t.on(Fl[s],this.emit.bind(this,Fl[s]));return this._read=function(o){ce("wrapped _read",o),i&&(i=!1,t.resume())},this};Object.defineProperty(ye.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});ye._fromList=_p;function _p(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=UA(t,e.buffer,e.decoder),r}function UA(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?WA(t,e):GA(t,e),i}function WA(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 GA(t,e){var r=tn.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 Bl(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Jr.nextTick(zA,e,t))}function zA(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function bp(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var Wl=b((y4,vp)=>{"use strict";vp.exports=Ft;var Zs=wr(),Ep=Object.create(Kr());Ep.inherits=Zr();Ep.inherits(Ft,Zs);function $A(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 Ft(t){if(!(this instanceof Ft))return new Ft(t);Zs.call(this,t),this._transformState={afterTransform:$A.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",HA)}function HA(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){Sp(t,e,r)}):Sp(this,null,null)}Ft.prototype.push=function(t,e){return this._transformState.needTransform=!1,Zs.prototype.push.call(this,t,e)};Ft.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")};Ft.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)}};Ft.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};Ft.prototype._destroy=function(t,e){var r=this;Zs.prototype._destroy.call(this,t,function(i){e(i),r.emit("close")})};function Sp(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 Rp=b((m4,xp)=>{"use strict";xp.exports=rn;var Tp=Wl(),Ap=Object.create(Kr());Ap.inherits=Zr();Ap.inherits(rn,Tp);function rn(t){if(!(this instanceof rn))return new rn(t);Tp.call(this,t)}rn.prototype._transform=function(t,e,r){r(null,t)}});var Op=b((Fe,Qs)=>{var wt=W("stream");process.env.READABLE_STREAM==="disable"&&wt?(Qs.exports=wt,Fe=Qs.exports=wt.Readable,Fe.Readable=wt.Readable,Fe.Writable=wt.Writable,Fe.Duplex=wt.Duplex,Fe.Transform=wt.Transform,Fe.PassThrough=wt.PassThrough,Fe.Stream=wt):(Fe=Qs.exports=Ll(),Fe.Stream=wt||Fe,Fe.Readable=Fe,Fe.Writable=Dl(),Fe.Duplex=wr(),Fe.Transform=Wl(),Fe.PassThrough=Rp())});var Ip=b((_4,Dp)=>{Dp.exports=Op().PassThrough});var Np=b((b4,Cp)=>{var Pp=W("util"),eo=Ip();Cp.exports={Readable:Xs,Writable:Js};Pp.inherits(Xs,eo);Pp.inherits(Js,eo);function Lp(t,e,r){t[e]=function(){return delete t[e],r.apply(this,arguments),this[e].apply(this,arguments)}}function Xs(t,e){if(!(this instanceof Xs))return new Xs(t,e);eo.call(this,e),Lp(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 Js(t,e){if(!(this instanceof Js))return new Js(t,e);eo.call(this,e),Lp(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=b((w4,Mp)=>{Mp.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 zl=b((S4,kp)=>{function VA(t){return t}kp.exports=VA});var qp=b((E4,Fp)=>{function YA(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)}Fp.exports=YA});var Up=b((v4,jp)=>{var KA=qp(),Bp=Math.max;function ZA(t,e,r){return e=Bp(e===void 0?t.length-1:e,0),function(){for(var i=arguments,n=-1,s=Bp(i.length-e,0),o=Array(s);++n<s;)o[n]=i[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=i[n];return a[e]=r(o),KA(t,this,a)}}jp.exports=ZA});var Gp=b((T4,Wp)=>{function QA(t){return function(){return t}}Wp.exports=QA});var $l=b((A4,zp)=>{var XA=typeof global=="object"&&global&&global.Object===Object&&global;zp.exports=XA});var ei=b((x4,$p)=>{var JA=$l(),ex=typeof self=="object"&&self&&self.Object===Object&&self,tx=JA||ex||Function("return this")();$p.exports=tx});var to=b((R4,Hp)=>{var rx=ei(),ix=rx.Symbol;Hp.exports=ix});var Zp=b((O4,Kp)=>{var Vp=to(),Yp=Object.prototype,nx=Yp.hasOwnProperty,sx=Yp.toString,nn=Vp?Vp.toStringTag:void 0;function ox(t){var e=nx.call(t,nn),r=t[nn];try{t[nn]=void 0;var i=!0}catch{}var n=sx.call(t);return i&&(e?t[nn]=r:delete t[nn]),n}Kp.exports=ox});var Xp=b((D4,Qp)=>{var ax=Object.prototype,lx=ax.toString;function ux(t){return lx.call(t)}Qp.exports=ux});var sn=b((I4,tg)=>{var Jp=to(),fx=Zp(),cx=Xp(),hx="[object Null]",dx="[object Undefined]",eg=Jp?Jp.toStringTag:void 0;function px(t){return t==null?t===void 0?dx:hx:eg&&eg in Object(t)?fx(t):cx(t)}tg.exports=px});var on=b((P4,rg)=>{function gx(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}rg.exports=gx});var Hl=b((L4,ig)=>{var yx=sn(),mx=on(),_x="[object AsyncFunction]",bx="[object Function]",wx="[object GeneratorFunction]",Sx="[object Proxy]";function Ex(t){if(!mx(t))return!1;var e=yx(t);return e==bx||e==wx||e==_x||e==Sx}ig.exports=Ex});var sg=b((C4,ng)=>{var vx=ei(),Tx=vx["__core-js_shared__"];ng.exports=Tx});var lg=b((N4,ag)=>{var Vl=sg(),og=(function(){var t=/[^.]+$/.exec(Vl&&Vl.keys&&Vl.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function Ax(t){return!!og&&og in t}ag.exports=Ax});var fg=b((M4,ug)=>{var xx=Function.prototype,Rx=xx.toString;function Ox(t){if(t!=null){try{return Rx.call(t)}catch{}try{return t+""}catch{}}return""}ug.exports=Ox});var hg=b((k4,cg)=>{var Dx=Hl(),Ix=lg(),Px=on(),Lx=fg(),Cx=/[\\^$.*+?()[\]{}|]/g,Nx=/^\[object .+?Constructor\]$/,Mx=Function.prototype,kx=Object.prototype,Fx=Mx.toString,qx=kx.hasOwnProperty,Bx=RegExp("^"+Fx.call(qx).replace(Cx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jx(t){if(!Px(t)||Ix(t))return!1;var e=Dx(t)?Bx:Nx;return e.test(Lx(t))}cg.exports=jx});var pg=b((F4,dg)=>{function Ux(t,e){return t?.[e]}dg.exports=Ux});var an=b((q4,gg)=>{var Wx=hg(),Gx=pg();function zx(t,e){var r=Gx(t,e);return Wx(r)?r:void 0}gg.exports=zx});var mg=b((B4,yg)=>{var $x=an(),Hx=(function(){try{var t=$x(Object,"defineProperty");return t({},"",{}),t}catch{}})();yg.exports=Hx});var wg=b((j4,bg)=>{var Vx=Gp(),_g=mg(),Yx=zl(),Kx=_g?function(t,e){return _g(t,"toString",{configurable:!0,enumerable:!1,value:Vx(e),writable:!0})}:Yx;bg.exports=Kx});var Eg=b((U4,Sg)=>{var Zx=800,Qx=16,Xx=Date.now;function Jx(t){var e=0,r=0;return function(){var i=Xx(),n=Qx-(i-r);if(r=i,n>0){if(++e>=Zx)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}Sg.exports=Jx});var Tg=b((W4,vg)=>{var eR=wg(),tR=Eg(),rR=tR(eR);vg.exports=rR});var ro=b((G4,Ag)=>{var iR=zl(),nR=Up(),sR=Tg();function oR(t,e){return sR(nR(t,e,iR),t+"")}Ag.exports=oR});var io=b((z4,xg)=>{function aR(t,e){return t===e||t!==t&&e!==e}xg.exports=aR});var Yl=b(($4,Rg)=>{var lR=9007199254740991;function uR(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=lR}Rg.exports=uR});var no=b((H4,Og)=>{var fR=Hl(),cR=Yl();function hR(t){return t!=null&&cR(t.length)&&!fR(t)}Og.exports=hR});var Kl=b((V4,Dg)=>{var dR=9007199254740991,pR=/^(?:0|[1-9]\d*)$/;function gR(t,e){var r=typeof t;return e=e??dR,!!e&&(r=="number"||r!="symbol"&&pR.test(t))&&t>-1&&t%1==0&&t<e}Dg.exports=gR});var Pg=b((Y4,Ig)=>{var yR=io(),mR=no(),_R=Kl(),bR=on();function wR(t,e,r){if(!bR(r))return!1;var i=typeof e;return(i=="number"?mR(r)&&_R(e,r.length):i=="string"&&e in r)?yR(r[e],t):!1}Ig.exports=wR});var Cg=b((K4,Lg)=>{function SR(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}Lg.exports=SR});var ti=b((Z4,Ng)=>{function ER(t){return t!=null&&typeof t=="object"}Ng.exports=ER});var kg=b((Q4,Mg)=>{var vR=sn(),TR=ti(),AR="[object Arguments]";function xR(t){return TR(t)&&vR(t)==AR}Mg.exports=xR});var Zl=b((X4,Bg)=>{var Fg=kg(),RR=ti(),qg=Object.prototype,OR=qg.hasOwnProperty,DR=qg.propertyIsEnumerable,IR=Fg((function(){return arguments})())?Fg:function(t){return RR(t)&&OR.call(t,"callee")&&!DR.call(t,"callee")};Bg.exports=IR});var Ql=b((J4,jg)=>{var PR=Array.isArray;jg.exports=PR});var Wg=b((e6,Ug)=>{function LR(){return!1}Ug.exports=LR});var Hg=b((ln,ri)=>{var CR=ei(),NR=Wg(),$g=typeof ln=="object"&&ln&&!ln.nodeType&&ln,Gg=$g&&typeof ri=="object"&&ri&&!ri.nodeType&&ri,MR=Gg&&Gg.exports===$g,zg=MR?CR.Buffer:void 0,kR=zg?zg.isBuffer:void 0,FR=kR||NR;ri.exports=FR});var Yg=b((t6,Vg)=>{var qR=sn(),BR=Yl(),jR=ti(),UR="[object Arguments]",WR="[object Array]",GR="[object Boolean]",zR="[object Date]",$R="[object Error]",HR="[object Function]",VR="[object Map]",YR="[object Number]",KR="[object Object]",ZR="[object RegExp]",QR="[object Set]",XR="[object String]",JR="[object WeakMap]",eO="[object ArrayBuffer]",tO="[object DataView]",rO="[object Float32Array]",iO="[object Float64Array]",nO="[object Int8Array]",sO="[object Int16Array]",oO="[object Int32Array]",aO="[object Uint8Array]",lO="[object Uint8ClampedArray]",uO="[object Uint16Array]",fO="[object Uint32Array]",me={};me[rO]=me[iO]=me[nO]=me[sO]=me[oO]=me[aO]=me[lO]=me[uO]=me[fO]=!0;me[UR]=me[WR]=me[eO]=me[GR]=me[tO]=me[zR]=me[$R]=me[HR]=me[VR]=me[YR]=me[KR]=me[ZR]=me[QR]=me[XR]=me[JR]=!1;function cO(t){return jR(t)&&BR(t.length)&&!!me[qR(t)]}Vg.exports=cO});var Xl=b((r6,Kg)=>{function hO(t){return function(e){return t(e)}}Kg.exports=hO});var Qg=b((un,ii)=>{var dO=$l(),Zg=typeof un=="object"&&un&&!un.nodeType&&un,fn=Zg&&typeof ii=="object"&&ii&&!ii.nodeType&&ii,pO=fn&&fn.exports===Zg,Jl=pO&&dO.process,gO=(function(){try{var t=fn&&fn.require&&fn.require("util").types;return t||Jl&&Jl.binding&&Jl.binding("util")}catch{}})();ii.exports=gO});var ty=b((i6,ey)=>{var yO=Yg(),mO=Xl(),Xg=Qg(),Jg=Xg&&Xg.isTypedArray,_O=Jg?mO(Jg):yO;ey.exports=_O});var iy=b((n6,ry)=>{var bO=Cg(),wO=Zl(),SO=Ql(),EO=Hg(),vO=Kl(),TO=ty(),AO=Object.prototype,xO=AO.hasOwnProperty;function RO(t,e){var r=SO(t),i=!r&&wO(t),n=!r&&!i&&EO(t),s=!r&&!i&&!n&&TO(t),o=r||i||n||s,a=o?bO(t.length,String):[],l=a.length;for(var u in t)(e||xO.call(t,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||vO(u,l)))&&a.push(u);return a}ry.exports=RO});var sy=b((s6,ny)=>{var OO=Object.prototype;function DO(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||OO;return t===r}ny.exports=DO});var ay=b((o6,oy)=>{function IO(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}oy.exports=IO});var uy=b((a6,ly)=>{var PO=on(),LO=sy(),CO=ay(),NO=Object.prototype,MO=NO.hasOwnProperty;function kO(t){if(!PO(t))return CO(t);var e=LO(t),r=[];for(var i in t)i=="constructor"&&(e||!MO.call(t,i))||r.push(i);return r}ly.exports=kO});var cy=b((l6,fy)=>{var FO=iy(),qO=uy(),BO=no();function jO(t){return BO(t)?FO(t,!0):qO(t)}fy.exports=jO});var py=b((u6,dy)=>{var UO=ro(),WO=io(),GO=Pg(),zO=cy(),hy=Object.prototype,$O=hy.hasOwnProperty,HO=UO(function(t,e){t=Object(t);var r=-1,i=e.length,n=i>2?e[2]:void 0;for(n&&GO(e[0],e[1],n)&&(i=1);++r<i;)for(var s=e[r],o=zO(s),a=-1,l=o.length;++a<l;){var u=o[a],f=t[u];(f===void 0||WO(f,hy[u])&&!$O.call(t,u))&&(t[u]=s[u])}return t});dy.exports=HO});var Se=b((f6,gy)=>{"use strict";var eu=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}
|
|
13
|
-
`;super(r),this.name="AggregateError",this.errors=e}};gy.exports={AggregateError:eu,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 tu=b((c6,yy)=>{"use strict";yy.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 We=b((h6,by)=>{"use strict";var{format:VO,inspect:so}=tu(),{AggregateError:YO}=Se(),KO=globalThis.AggregateError||YO,ZO=Symbol("kIsNodeError"),QO=["string","function","number","object","Function","Object","boolean","bigint","symbol"],XO=/^([A-Z][a-z0-9]*)+$/,JO="__node_internal_",oo={};function Sr(t,e){if(!t)throw new oo.ERR_INTERNAL_ASSERTION(e)}function my(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 eD(t,e,r){if(typeof e=="function")return Sr(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 Sr(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:VO(e,...r)}function qe(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(eD(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[ZO]=!0,oo[t]=i}function _y(t){let e=JO+t.name;return Object.defineProperty(t,"name",{value:e}),t}function tD(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new KO([e,t],e.message);return r.code=e.code,r}return t||e}var ru=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new oo.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};qe("ERR_ASSERTION","%s",Error);qe("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Sr(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)Sr(typeof l=="string","All expected entries have to be of type string"),QO.includes(l)?n.push(l.toLowerCase()):XO.test(l)?s.push(l):(Sr(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=so(r,{depth:-1});i+=`. Received ${l}`}}else{let l=so(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),i+=`. Received type ${typeof r} (${l})`}return i},TypeError);qe("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let i=so(e);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${i}`},TypeError);qe("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);qe("ERR_MISSING_ARGS",(...t)=>{Sr(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);qe("ERR_OUT_OF_RANGE",(t,e,r)=>{Sr(e,'Missing "range" argument');let i;if(Number.isInteger(r)&&Math.abs(r)>2**32)i=my(String(r));else if(typeof r=="bigint"){i=String(r);let n=BigInt(2)**BigInt(32);(r>n||r<-n)&&(i=my(i)),i+="n"}else i=so(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${i}`},RangeError);qe("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);qe("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);qe("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);qe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);qe("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);qe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);qe("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);qe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);qe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);qe("ERR_STREAM_WRITE_AFTER_END","write after end",Error);qe("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);by.exports={AbortError:ru,aggregateTwoErrors:_y(tD),hideStackFrames:_y,codes:oo}});var Dy=b((dn,hn)=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});var Ay=new WeakMap,iu=new WeakMap;function _e(t){let e=Ay.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}function wy(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 ni(t,e){Ay.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,xy(n))}}ni.prototype={get type(){return _e(this).event.type},get target(){return _e(this).eventTarget},get currentTarget(){return _e(this).currentTarget},composedPath(){let t=_e(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 _e(this).eventPhase},stopPropagation(){let t=_e(this);t.stopped=!0,typeof t.event.stopPropagation=="function"&&t.event.stopPropagation()},stopImmediatePropagation(){let t=_e(this);t.stopped=!0,t.immediateStopped=!0,typeof t.event.stopImmediatePropagation=="function"&&t.event.stopImmediatePropagation()},get bubbles(){return!!_e(this).event.bubbles},get cancelable(){return!!_e(this).event.cancelable},preventDefault(){wy(_e(this))},get defaultPrevented(){return _e(this).canceled},get composed(){return!!_e(this).event.composed},get timeStamp(){return _e(this).timeStamp},get srcElement(){return _e(this).eventTarget},get cancelBubble(){return _e(this).stopped},set cancelBubble(t){if(!t)return;let e=_e(this);e.stopped=!0,typeof e.event.cancelBubble=="boolean"&&(e.event.cancelBubble=!0)},get returnValue(){return!_e(this).canceled},set returnValue(t){t||wy(_e(this))},initEvent(){}};Object.defineProperty(ni.prototype,"constructor",{value:ni,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(ni.prototype,window.Event.prototype),iu.set(window.Event.prototype,ni));function xy(t){return{get(){return _e(this).event[t]},set(e){_e(this).event[t]=e},configurable:!0,enumerable:!0}}function rD(t){return{value(){let e=_e(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function iD(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?rD(s):xy(s))}}return i}function Ry(t){if(t==null||t===Object.prototype)return ni;let e=iu.get(t);return e==null&&(e=iD(Ry(Object.getPrototypeOf(t)),t),iu.set(t,e)),e}function nD(t,e){let r=Ry(Object.getPrototypeOf(e));return new r(t,e)}function sD(t){return _e(t).immediateStopped}function oD(t,e){_e(t).eventPhase=e}function aD(t,e){_e(t).currentTarget=e}function Sy(t,e){_e(t).passiveListener=e}var Oy=new WeakMap,Ey=1,vy=2,ao=3;function lo(t){return t!==null&&typeof t=="object"}function cn(t){let e=Oy.get(t);if(e==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function lD(t){return{get(){let r=cn(this).get(t);for(;r!=null;){if(r.listenerType===ao)return r.listener;r=r.next}return null},set(e){typeof e!="function"&&!lo(e)&&(e=null);let r=cn(this),i=null,n=r.get(t);for(;n!=null;)n.listenerType===ao?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:ao,passive:!1,once:!1,next:null};i===null?r.set(t,s):i.next=s}},configurable:!0,enumerable:!0}}function nu(t,e){Object.defineProperty(t,`on${e}`,lD(e))}function Ty(t){function e(){dt.call(this)}e.prototype=Object.create(dt.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(let r=0;r<t.length;++r)nu(e.prototype,t[r]);return e}function dt(){if(this instanceof dt){Oy.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return Ty(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 Ty(t)}throw new TypeError("Cannot call a class as a function")}dt.prototype={addEventListener(t,e,r){if(e==null)return;if(typeof e!="function"&&!lo(e))throw new TypeError("'listener' should be a function or an object.");let i=cn(this),n=lo(r),o=(n?!!r.capture:!!r)?Ey:vy,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=cn(this),s=(lo(r)?!!r.capture:!!r)?Ey:vy,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=cn(this),r=t.type,i=e.get(r);if(i==null)return!0;let n=nD(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,Sy(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!==ao&&typeof i.listener.handleEvent=="function"&&i.listener.handleEvent(n);if(sD(n))break;i=i.next}return Sy(n,null),oD(n,0),aD(n,null),!n.defaultPrevented}};Object.defineProperty(dt.prototype,"constructor",{value:dt,configurable:!0,writable:!0});typeof window<"u"&&typeof window.EventTarget<"u"&&Object.setPrototypeOf(dt.prototype,window.EventTarget.prototype);dn.defineEventAttribute=nu;dn.EventTarget=dt;dn.default=dt;hn.exports=dt;hn.exports.EventTarget=hn.exports.default=dt;hn.exports.defineEventAttribute=nu});var si=b((gn,pn)=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});var su=Dy(),Zt=class extends su.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=uo.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}};su.defineEventAttribute(Zt.prototype,"abort");function uD(){let t=Object.create(Zt.prototype);return su.EventTarget.call(t),uo.set(t,!1),t}function fD(t){uo.get(t)===!1&&(uo.set(t,!0),t.dispatchEvent({type:"abort"}))}var uo=new WeakMap;Object.defineProperties(Zt.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Zt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var Qt=class{constructor(){Py.set(this,uD())}get signal(){return Iy(this)}abort(){fD(Iy(this))}},Py=new WeakMap;function Iy(t){let e=Py.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(Qt.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Qt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});gn.AbortController=Qt;gn.AbortSignal=Zt;gn.default=Qt;pn.exports=Qt;pn.exports.AbortController=pn.exports.default=Qt;pn.exports.AbortSignal=Zt});var He=b((d6,au)=>{"use strict";var cD=W("buffer"),{format:hD,inspect:dD}=tu(),{codes:{ERR_INVALID_ARG_TYPE:ou}}=We(),{kResistStopPropagation:pD,AggregateError:gD,SymbolDispose:yD}=Se(),mD=globalThis.AbortSignal||si().AbortSignal,_D=globalThis.AbortController||si().AbortController,bD=Object.getPrototypeOf(async function(){}).constructor,Ly=globalThis.Blob||cD.Blob,wD=typeof Ly<"u"?function(e){return e instanceof Ly}:function(e){return!1},Cy=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new ou(e,"AbortSignal",t)},SD=(t,e)=>{if(typeof t!="function")throw new ou(e,"Function",t)};au.exports={AggregateError:gD,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:hD,inspect:dD,types:{isAsyncFunction(t){return t instanceof bD},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:wD,deprecate(t,e){return t},addAbortListener:W("events").addAbortListener||function(e,r){if(e===void 0)throw new ou("signal","AbortSignal",e);Cy(e,"signal"),SD(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[pD]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[yD](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:mD.any||function(e){if(e.length===1)return e[0];let r=new _D,i=()=>r.abort();return e.forEach(n=>{Cy(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};au.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var ai=b((p6,Gy)=>{"use strict";var{ArrayIsArray:uu,ArrayPrototypeIncludes:Fy,ArrayPrototypeJoin:qy,ArrayPrototypeMap:ED,NumberIsInteger:fu,NumberIsNaN:vD,NumberMAX_SAFE_INTEGER:TD,NumberMIN_SAFE_INTEGER:AD,NumberParseInt:xD,ObjectPrototypeHasOwnProperty:RD,RegExpPrototypeExec:By,String:OD,StringPrototypeToUpperCase:DD,StringPrototypeTrim:ID}=Se(),{hideStackFrames:st,codes:{ERR_SOCKET_BAD_PORT:PD,ERR_INVALID_ARG_TYPE:Ge,ERR_INVALID_ARG_VALUE:oi,ERR_OUT_OF_RANGE:Er,ERR_UNKNOWN_SIGNAL:Ny}}=We(),{normalizeEncoding:LD}=He(),{isAsyncFunction:CD,isArrayBufferView:ND}=He().types,My={};function MD(t){return t===(t|0)}function kD(t){return t===t>>>0}var FD=/^[0-7]+$/,qD="must be a 32-bit unsigned integer or an octal string";function BD(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(By(FD,t)===null)throw new oi(e,t,qD);t=xD(t,8)}return jy(t,e),t}var jD=st((t,e,r=AD,i=TD)=>{if(typeof t!="number")throw new Ge(e,"number",t);if(!fu(t))throw new Er(e,"an integer",t);if(t<r||t>i)throw new Er(e,`>= ${r} && <= ${i}`,t)}),UD=st((t,e,r=-2147483648,i=2147483647)=>{if(typeof t!="number")throw new Ge(e,"number",t);if(!fu(t))throw new Er(e,"an integer",t);if(t<r||t>i)throw new Er(e,`>= ${r} && <= ${i}`,t)}),jy=st((t,e,r=!1)=>{if(typeof t!="number")throw new Ge(e,"number",t);if(!fu(t))throw new Er(e,"an integer",t);let i=r?1:0,n=4294967295;if(t<i||t>n)throw new Er(e,`>= ${i} && <= ${n}`,t)});function cu(t,e){if(typeof t!="string")throw new Ge(e,"string",t)}function WD(t,e,r=void 0,i){if(typeof t!="number")throw new Ge(e,"number",t);if(r!=null&&t<r||i!=null&&t>i||(r!=null||i!=null)&&vD(t))throw new Er(e,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,t)}var GD=st((t,e,r)=>{if(!Fy(r,t)){let n="must be one of: "+qy(ED(r,s=>typeof s=="string"?`'${s}'`:OD(s)),", ");throw new oi(e,t,n)}});function Uy(t,e){if(typeof t!="boolean")throw new Ge(e,"boolean",t)}function lu(t,e,r){return t==null||!RD(t,e)?r:t[e]}var zD=st((t,e,r=null)=>{let i=lu(r,"allowArray",!1),n=lu(r,"allowFunction",!1);if(!lu(r,"nullable",!1)&&t===null||!i&&uu(t)||typeof t!="object"&&(!n||typeof t!="function"))throw new Ge(e,"Object",t)}),$D=st((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new Ge(e,"a dictionary",t)}),fo=st((t,e,r=0)=>{if(!uu(t))throw new Ge(e,"Array",t);if(t.length<r){let i=`must be longer than ${r}`;throw new oi(e,t,i)}});function HD(t,e){fo(t,e);for(let r=0;r<t.length;r++)cu(t[r],`${e}[${r}]`)}function VD(t,e){fo(t,e);for(let r=0;r<t.length;r++)Uy(t[r],`${e}[${r}]`)}function YD(t,e){fo(t,e);for(let r=0;r<t.length;r++){let i=t[r],n=`${e}[${r}]`;if(i==null)throw new Ge(n,"AbortSignal",i);Wy(i,n)}}function KD(t,e="signal"){if(cu(t,e),My[t]===void 0)throw My[DD(t)]!==void 0?new Ny(t+" (signals must use all capital letters)"):new Ny(t)}var ZD=st((t,e="buffer")=>{if(!ND(t))throw new Ge(e,["Buffer","TypedArray","DataView"],t)});function QD(t,e){let r=LD(e),i=t.length;if(r==="hex"&&i%2!==0)throw new oi("encoding",e,`is invalid for data of length ${i}`)}function XD(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&ID(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new PD(e,t,r);return t|0}var Wy=st((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Ge(e,"AbortSignal",t)}),JD=st((t,e)=>{if(typeof t!="function")throw new Ge(e,"Function",t)}),eI=st((t,e)=>{if(typeof t!="function"||CD(t))throw new Ge(e,"Function",t)}),tI=st((t,e)=>{if(t!==void 0)throw new Ge(e,"undefined",t)});function rI(t,e,r){if(!Fy(r,t))throw new Ge(e,`('${qy(r,"|")}')`,t)}var iI=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function ky(t,e){if(typeof t>"u"||!By(iI,t))throw new oi(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function nI(t){if(typeof t=="string")return ky(t,"hints"),t;if(uu(t)){let e=t.length,r="";if(e===0)return r;for(let i=0;i<e;i++){let n=t[i];ky(n,"hints"),r+=n,i!==e-1&&(r+=", ")}return r}throw new oi("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}Gy.exports={isInt32:MD,isUint32:kD,parseFileMode:BD,validateArray:fo,validateStringArray:HD,validateBooleanArray:VD,validateAbortSignalArray:YD,validateBoolean:Uy,validateBuffer:ZD,validateDictionary:$D,validateEncoding:QD,validateFunction:JD,validateInt32:UD,validateInteger:jD,validateNumber:WD,validateObject:zD,validateOneOf:GD,validatePlainFunction:eI,validatePort:XD,validateSignalName:KD,validateString:cu,validateUint32:jy,validateUndefined:tI,validateUnion:rI,validateAbortSignal:Wy,validateLinkHeaderValue:nI}});var Xt=b((g6,zy)=>{zy.exports=global.process});var Et=b((y6,sm)=>{"use strict";var{SymbolAsyncIterator:$y,SymbolIterator:Hy,SymbolFor:vr}=Se(),Vy=vr("nodejs.stream.destroyed"),Yy=vr("nodejs.stream.errored"),hu=vr("nodejs.stream.readable"),du=vr("nodejs.stream.writable"),Ky=vr("nodejs.stream.disturbed"),sI=vr("nodejs.webstream.isClosedPromise"),oI=vr("nodejs.webstream.controllerErrorFunction");function co(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 ho(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 St(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function Zy(t){return!!(t&&!St(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function Qy(t){return!!(t&&!St(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function Xy(t){return!!(t&&!St(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function lI(t){return Zy(t)||Qy(t)||Xy(t)}function uI(t,e){return t==null?!1:e===!0?typeof t[$y]=="function":e===!1?typeof t[Hy]=="function":typeof t[$y]=="function"||typeof t[Hy]=="function"}function po(t){if(!St(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!!(t.destroyed||t[Vy]||i!=null&&i.destroyed)}function Jy(t){if(!ho(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 fI(t,e){if(!ho(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 cI(t){if(!co(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 em(t,e){if(!co(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 tm(t){return t&&t[hu]!=null?t[hu]:typeof t?.readable!="boolean"?null:po(t)?!1:co(t)&&t.readable&&!em(t)}function rm(t){return t&&t[du]!=null?t[du]:typeof t?.writable!="boolean"?null:po(t)?!1:ho(t)&&t.writable&&!Jy(t)}function hI(t,e){return St(t)?po(t)?!0:!(e?.readable!==!1&&tm(t)||e?.writable!==!1&&rm(t)):null}function dI(t){var e,r;return St(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 pI(t){var e,r;return St(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 gI(t){if(!St(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"&&im(t)?t._closed:null}function im(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function nm(t){return typeof t._sent100=="boolean"&&im(t)}function yI(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 mI(t){if(!St(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!i&&nm(t)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function _I(t){var e;return!!(t&&((e=t[Ky])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function bI(t){var e,r,i,n,s,o,a,l,u,f;return!!(t&&((e=(r=(i=(n=(s=(o=t[Yy])!==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))}sm.exports={isDestroyed:po,kIsDestroyed:Vy,isDisturbed:_I,kIsDisturbed:Ky,isErrored:bI,kIsErrored:Yy,isReadable:tm,kIsReadable:hu,kIsClosedPromise:sI,kControllerErrorFunction:oI,kIsWritable:du,isClosed:gI,isDuplexNodeStream:aI,isFinished:hI,isIterable:uI,isReadableNodeStream:co,isReadableStream:Zy,isReadableEnded:cI,isReadableFinished:em,isReadableErrored:pI,isNodeStream:St,isWebStream:lI,isWritable:rm,isWritableNodeStream:ho,isWritableStream:Qy,isWritableEnded:Jy,isWritableFinished:fI,isWritableErrored:dI,isServerRequest:yI,isServerResponse:nm,willEmitClose:mI,isTransformStream:Xy}});var qt=b((m6,_u)=>{"use strict";var Jt=Xt(),{AbortError:pm,codes:wI}=We(),{ERR_INVALID_ARG_TYPE:SI,ERR_STREAM_PREMATURE_CLOSE:om}=wI,{kEmptyObject:gu,once:yu}=He(),{validateAbortSignal:EI,validateFunction:vI,validateObject:TI,validateBoolean:AI}=ai(),{Promise:xI,PromisePrototypeThen:RI,SymbolDispose:gm}=Se(),{isClosed:OI,isReadable:am,isReadableNodeStream:pu,isReadableStream:DI,isReadableFinished:lm,isReadableErrored:um,isWritable:fm,isWritableNodeStream:cm,isWritableStream:II,isWritableFinished:hm,isWritableErrored:dm,isNodeStream:PI,willEmitClose:LI,kIsClosedPromise:CI}=Et(),li;function NI(t){return t.setHeader&&typeof t.abort=="function"}var mu=()=>{};function ym(t,e,r){var i,n;if(arguments.length===2?(r=e,e=gu):e==null?e=gu:TI(e,"options"),vI(r,"callback"),EI(e.signal,"options.signal"),r=yu(r),DI(t)||II(t))return MI(t,e,r);if(!PI(t))throw new SI("stream",["ReadableStream","WritableStream","Stream"],t);let s=(i=e.readable)!==null&&i!==void 0?i:pu(t),o=(n=e.writable)!==null&&n!==void 0?n:cm(t),a=t._writableState,l=t._readableState,u=()=>{t.writable||g()},f=LI(t)&&pu(t)===s&&cm(t)===o,h=hm(t,!1),g=()=>{h=!0,t.destroyed&&(f=!1),!(f&&(!t.readable||s))&&(!s||y)&&r.call(t)},y=lm(t,!1),E=()=>{y=!0,t.destroyed&&(f=!1),!(f&&(!t.writable||o))&&(!o||h)&&r.call(t)},m=q=>{r.call(t,q)},v=OI(t),S=()=>{v=!0;let q=dm(t)||um(t);if(q&&typeof q!="boolean")return r.call(t,q);if(s&&!y&&pu(t,!0)&&!lm(t,!1))return r.call(t,new om);if(o&&!h&&!hm(t,!1))return r.call(t,new om);r.call(t)},R=()=>{v=!0;let q=dm(t)||um(t);if(q&&typeof q!="boolean")return r.call(t,q);r.call(t)},L=()=>{t.req.on("finish",g)};NI(t)?(t.on("complete",g),f||t.on("abort",S),t.req?L():t.on("request",L)):o&&!a&&(t.on("end",u),t.on("close",u)),!f&&typeof t.aborted=="boolean"&&t.on("aborted",S),t.on("end",E),t.on("finish",g),e.error!==!1&&t.on("error",m),t.on("close",S),v?Jt.nextTick(S):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?f||Jt.nextTick(R):(!s&&(!f||am(t))&&(h||fm(t)===!1)||!o&&(!f||fm(t))&&(y||am(t)===!1)||l&&t.req&&t.aborted)&&Jt.nextTick(R);let D=()=>{r=mu,t.removeListener("aborted",S),t.removeListener("complete",g),t.removeListener("abort",S),t.removeListener("request",L),t.req&&t.req.removeListener("finish",g),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",g),t.removeListener("end",E),t.removeListener("error",m),t.removeListener("close",S)};if(e.signal&&!v){let q=()=>{let Z=r;D(),Z.call(t,new pm(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)Jt.nextTick(q);else{li=li||He().addAbortListener;let Z=li(e.signal,q),P=r;r=yu((...B)=>{Z[gm](),P.apply(t,B)})}}return D}function MI(t,e,r){let i=!1,n=mu;if(e.signal)if(n=()=>{i=!0,r.call(t,new pm(void 0,{cause:e.signal.reason}))},e.signal.aborted)Jt.nextTick(n);else{li=li||He().addAbortListener;let o=li(e.signal,n),a=r;r=yu((...l)=>{o[gm](),a.apply(t,l)})}let s=(...o)=>{i||Jt.nextTick(()=>r.apply(t,o))};return RI(t[CI].promise,s,s),mu}function kI(t,e){var r;let i=!1;return e===null&&(e=gu),(r=e)!==null&&r!==void 0&&r.cleanup&&(AI(e.cleanup,"cleanup"),i=e.cleanup),new xI((n,s)=>{let o=ym(t,e,a=>{i&&o(),a?s(a):n()})})}_u.exports=ym;_u.exports.finished=kI});var Tr=b((_6,Tm)=>{"use strict";var vt=Xt(),{aggregateTwoErrors:FI,codes:{ERR_MULTIPLE_CALLBACK:qI},AbortError:BI}=We(),{Symbol:bm}=Se(),{kIsDestroyed:jI,isDestroyed:UI,isFinished:WI,isServerRequest:GI}=Et(),wm=bm("kDestroy"),bu=bm("kConstruct");function Sm(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function zI(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):(Sm(t,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),n.constructed?mm(this,t,e):this.once(wm,function(s){mm(this,FI(s,t),e)}),this)}function mm(t,e,r){let i=!1;function n(s){if(i)return;i=!0;let o=t._readableState,a=t._writableState;Sm(s,a,o),a&&(a.closed=!0),o&&(o.closed=!0),typeof r=="function"&&r(s),s?vt.nextTick($I,t,s):vt.nextTick(Em,t)}try{t._destroy(e||null,n)}catch(s){n(s)}}function $I(t,e){wu(t,e),Em(t)}function Em(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 wu(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 HI(){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 Su(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?vt.nextTick(wu,t,e):wu(t,e))}function VI(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(bu,e),!(t.listenerCount(bu)>1)&&vt.nextTick(YI,t)}function YI(t){let e=!1;function r(i){if(e){Su(t,i??new qI);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(wm,i):i?Su(t,i,!0):vt.nextTick(KI,t)}try{t._construct(i=>{vt.nextTick(r,i)})}catch(i){vt.nextTick(r,i)}}function KI(t){t.emit(bu)}function _m(t){return t?.setHeader&&typeof t.abort=="function"}function vm(t){t.emit("close")}function ZI(t,e){t.emit("error",e),vt.nextTick(vm,t)}function QI(t,e){!t||UI(t)||(!e&&!WI(t)&&(e=new BI),GI(t)?(t.socket=null,t.destroy(e)):_m(t)?t.abort():_m(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?vt.nextTick(ZI,t,e):vt.nextTick(vm,t),t.destroyed||(t[jI]=!0))}Tm.exports={construct:VI,destroyer:QI,destroy:zI,undestroy:HI,errorOrDestroy:Su}});var mo=b((b6,xm)=>{"use strict";var{ArrayIsArray:XI,ObjectSetPrototypeOf:Am}=Se(),{EventEmitter:go}=W("events");function yo(t){go.call(this,t)}Am(yo.prototype,go.prototype);Am(yo,go);yo.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(),go.listenerCount(this,"error")===0&&this.emit("error",f)}Eu(r,"error",l),Eu(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 Eu(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):XI(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}xm.exports={Stream:yo,prependListener:Eu}});var yn=b((w6,_o)=>{"use strict";var{SymbolDispose:JI}=Se(),{AbortError:Rm,codes:eP}=We(),{isNodeStream:Om,isWebStream:tP,kControllerErrorFunction:rP}=Et(),iP=qt(),{ERR_INVALID_ARG_TYPE:Dm}=eP,vu,nP=(t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new Dm(e,"AbortSignal",t)};_o.exports.addAbortSignal=function(e,r){if(nP(e,"signal"),!Om(r)&&!tP(r))throw new Dm("stream",["ReadableStream","WritableStream","Stream"],r);return _o.exports.addAbortSignalNoValidate(e,r)};_o.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let r=Om(e)?()=>{e.destroy(new Rm(void 0,{cause:t.reason}))}:()=>{e[rP](new Rm(void 0,{cause:t.reason}))};if(t.aborted)r();else{vu=vu||He().addAbortListener;let i=vu(t,r);iP(e,i[JI])}return e}});var Lm=b((E6,Pm)=>{"use strict";var{StringPrototypeSlice:Im,SymbolIterator:sP,TypedArrayPrototypeSet:bo,Uint8Array:oP}=Se(),{Buffer:Tu}=W("buffer"),{inspect:aP}=He();Pm.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 Tu.alloc(0);let r=Tu.allocUnsafe(e>>>0),i=this.head,n=0;for(;i;)bo(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}*[sP](){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+=Im(s,0,e),this.head=i,i.data=Im(s,e));break}++n}while((i=i.next)!==null);return this.length-=n,r}_getBuffer(e){let r=Tu.allocUnsafe(e),i=e,n=this.head,s=0;do{let o=n.data;if(e>o.length)bo(r,o,i-e),e-=o.length;else{e===o.length?(bo(r,o,i-e),++s,n.next?this.head=n.next:this.head=this.tail=null):(bo(r,new oP(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 aP(this,{...r,depth:0,customInspect:!1})}}});var mn=b((v6,km)=>{"use strict";var{MathFloor:lP,NumberIsInteger:uP}=Se(),{validateInteger:fP}=ai(),{ERR_INVALID_ARG_VALUE:cP}=We().codes,Cm=16*1024,Nm=16;function hP(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function Mm(t){return t?Nm:Cm}function dP(t,e){fP(e,"value",0),t?Nm=e:Cm=e}function pP(t,e,r,i){let n=hP(e,i,r);if(n!=null){if(!uP(n)||n<0){let s=i?`options.${r}`:"options.highWaterMark";throw new cP(s,n)}return lP(n)}return Mm(t.objectMode)}km.exports={getHighWaterMark:pP,getDefaultHighWaterMark:Mm,setDefaultHighWaterMark:dP}});var Bm=b(qm=>{"use strict";var xu=l1().Buffer,Fm=xu.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 gP(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 yP(t){var e=gP(t);if(typeof e!="string"&&(xu.isEncoding===Fm||!Fm(t)))throw new Error("Unknown encoding: "+t);return e||t}qm.StringDecoder=_n;function _n(t){this.encoding=yP(t);var e;switch(this.encoding){case"utf16le":this.text=EP,this.end=vP,e=4;break;case"utf8":this.fillLast=bP,e=4;break;case"base64":this.text=TP,this.end=AP,e=3;break;default:this.write=xP,this.end=RP;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=xu.allocUnsafe(e)}_n.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||""};_n.prototype.end=SP;_n.prototype.text=wP;_n.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 Au(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function mP(t,e,r){var i=e.length-1;if(i<r)return 0;var n=Au(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=Au(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=Au(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function _P(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 bP(t){var e=this.lastTotal-this.lastNeed,r=_P(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 wP(t,e){var r=mP(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 SP(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function EP(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 vP(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 TP(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 AP(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function xP(t){return t.toString(this.encoding)}function RP(t){return t&&t.length?this.write(t):""}});var Ru=b((A6,Gm)=>{"use strict";var jm=Xt(),{PromisePrototypeThen:OP,SymbolAsyncIterator:Um,SymbolIterator:Wm}=Se(),{Buffer:DP}=W("buffer"),{ERR_INVALID_ARG_TYPE:IP,ERR_STREAM_NULL_VALUES:PP}=We().codes;function LP(t,e,r){let i;if(typeof e=="string"||e instanceof DP)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let n;if(e&&e[Um])n=!0,i=e[Um]();else if(e&&e[Wm])n=!1,i=e[Wm]();else throw new IP("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){OP(a(u),()=>jm.nextTick(f,u),h=>jm.nextTick(f,h||u))};async function a(u){let f=u!=null,h=typeof i.throw=="function";if(f&&h){let{value:g,done:y}=await i.throw(u);if(await g,y)return}if(typeof i.return=="function"){let{value:g}=await i.return();await g}}async function l(){for(;;){try{let{value:u,done:f}=n?await i.next():i.next();if(f)s.push(null);else{let h=u&&typeof u.then=="function"?await u:u;if(h===null)throw o=!1,new PP;if(s.push(h))continue;o=!1}}catch(u){s.destroy(u)}break}}return s}Gm.exports=LP});var wn=b((x6,a_)=>{"use strict";var pt=Xt(),{ArrayPrototypeIndexOf:CP,NumberIsInteger:NP,NumberIsNaN:MP,NumberParseInt:kP,ObjectDefineProperties:Mu,ObjectKeys:FP,ObjectSetPrototypeOf:Hm,Promise:Vm,SafeSet:qP,SymbolAsyncDispose:BP,SymbolAsyncIterator:jP,Symbol:UP}=Se();a_.exports=Y;Y.ReadableState=vo;var{EventEmitter:WP}=W("events"),{Stream:er,prependListener:GP}=mo(),{Buffer:Ou}=W("buffer"),{addAbortSignal:zP}=yn(),Ym=qt(),X=He().debuglog("stream",t=>{X=t}),$P=Lm(),ci=Tr(),{getHighWaterMark:HP,getDefaultHighWaterMark:VP}=mn(),{aggregateTwoErrors:zm,codes:{ERR_INVALID_ARG_TYPE:YP,ERR_METHOD_NOT_IMPLEMENTED:KP,ERR_OUT_OF_RANGE:ZP,ERR_STREAM_PUSH_AFTER_EOF:QP,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:XP},AbortError:JP}=We(),{validateObject:eL}=ai(),Ar=UP("kPaused"),{StringDecoder:Km}=Bm(),tL=Ru();Hm(Y.prototype,er.prototype);Hm(Y,er);var Du=()=>{},{errorOrDestroy:ui}=ci,fi=1,rL=2,Zm=4,bn=8,Qm=16,wo=32,So=64,Xm=128,iL=256,nL=512,sL=1024,Cu=2048,Nu=4096,oL=8192,aL=16384,lL=32768,Jm=65536,uL=1<<17,fL=1<<18;function De(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}Mu(vo.prototype,{objectMode:De(fi),ended:De(rL),endEmitted:De(Zm),reading:De(bn),constructed:De(Qm),sync:De(wo),needReadable:De(So),emittedReadable:De(Xm),readableListening:De(iL),resumeScheduled:De(nL),errorEmitted:De(sL),emitClose:De(Cu),autoDestroy:De(Nu),destroyed:De(oL),closed:De(aL),closeEmitted:De(lL),multiAwaitDrain:De(Jm),readingMore:De(uL),dataEmitted:De(fL)});function vo(t,e,r){typeof r!="boolean"&&(r=e instanceof Tt()),this.state=Cu|Nu|Qm|wo,t&&t.objectMode&&(this.state|=fi),r&&t&&t.readableObjectMode&&(this.state|=fi),this.highWaterMark=t?HP(this,t,"readableHighWaterMark",r):VP(!1),this.buffer=new $P,this.length=0,this.pipes=[],this.flowing=null,this[Ar]=null,t&&t.emitClose===!1&&(this.state&=~Cu),t&&t.autoDestroy===!1&&(this.state&=~Nu),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new Km(t.encoding),this.encoding=t.encoding)}function Y(t){if(!(this instanceof Y))return new Y(t);let e=this instanceof Tt();this._readableState=new vo(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&&zP(t.signal,this)),er.call(this,t),ci.construct(this,()=>{this._readableState.needReadable&&Eo(this,this._readableState)})}Y.prototype.destroy=ci.destroy;Y.prototype._undestroy=ci.undestroy;Y.prototype._destroy=function(t,e){e(t)};Y.prototype[WP.captureRejectionSymbol]=function(t){this.destroy(t)};Y.prototype[BP]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new JP,this.destroy(t)),new Vm((e,r)=>Ym(this,i=>i&&i!==t?r(i):e(null)))};Y.prototype.push=function(t,e){return e_(this,t,e,!1)};Y.prototype.unshift=function(t,e){return e_(this,t,e,!0)};function e_(t,e,r,i){X("readableAddChunk",e);let n=t._readableState,s;if((n.state&fi)===0&&(typeof e=="string"?(r=r||n.defaultEncoding,n.encoding!==r&&(i&&n.encoding?e=Ou.from(e,r).toString(n.encoding):(e=Ou.from(e,r),r=""))):e instanceof Ou?r="":er._isUint8Array(e)?(e=er._uint8ArrayToBuffer(e),r=""):e!=null&&(s=new YP("chunk",["string","Buffer","Uint8Array"],e))),s)ui(t,s);else if(e===null)n.state&=~bn,dL(t,n);else if((n.state&fi)!==0||e&&e.length>0)if(i)if((n.state&Zm)!==0)ui(t,new XP);else{if(n.destroyed||n.errored)return!1;Iu(t,n,e,!0)}else if(n.ended)ui(t,new QP);else{if(n.destroyed||n.errored)return!1;n.state&=~bn,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?Iu(t,n,e,!1):Eo(t,n)):Iu(t,n,e,!1)}else i||(n.state&=~bn,Eo(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&Jm)!==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&So)!==0&&To(t)),Eo(t,e)}Y.prototype.isPaused=function(){let t=this._readableState;return t[Ar]===!0||t.flowing===!1};Y.prototype.setEncoding=function(t){let e=new Km(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 cL=1073741824;function hL(t){if(t>cL)throw new ZP("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function $m(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&fi)!==0?1:MP(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}Y.prototype.read=function(t){X("read",t),t===void 0?t=NaN:NP(t)||(t=kP(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=hL(t)),t!==0&&(e.state&=~Xm),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return X("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Pu(this):To(this),null;if(t=$m(t,e),t===0&&e.ended)return e.length===0&&Pu(this),null;let i=(e.state&So)!==0;if(X("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,X("length less than watermark",i)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)i=!1,X("reading, ended or constructing",i);else if(i){X("do read"),e.state|=bn|wo,e.length===0&&(e.state|=So);try{this._read(e.highWaterMark)}catch(s){ui(this,s)}e.state&=~wo,e.reading||(t=$m(r,e))}let n;return t>0?n=s_(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&&Pu(this)),n!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",n)),n};function dL(t,e){if(X("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?To(t):(e.needReadable=!1,e.emittedReadable=!0,t_(t))}}function To(t){let e=t._readableState;X("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(X("emitReadable",e.flowing),e.emittedReadable=!0,pt.nextTick(t_,t))}function t_(t){let e=t._readableState;X("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,i_(t)}function Eo(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,pt.nextTick(pL,t,e))}function pL(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){let r=e.length;if(X("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}Y.prototype._read=function(t){throw new KP("_read()")};Y.prototype.pipe=function(t,e){let r=this,i=this._readableState;i.pipes.length===1&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new qP(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(t),X("pipe count=%d opts=%j",i.pipes.length,e);let s=(!e||e.end!==!1)&&t!==pt.stdout&&t!==pt.stderr?a:v;i.endEmitted?pt.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(S,R){X("onunpipe"),S===r&&R&&R.hasUnpiped===!1&&(R.hasUnpiped=!0,f())}function a(){X("onend"),t.end()}let l,u=!1;function f(){X("cleanup"),t.removeListener("close",E),t.removeListener("finish",m),l&&t.removeListener("drain",l),t.removeListener("error",y),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",v),r.removeListener("data",g),u=!0,l&&i.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}function h(){u||(i.pipes.length===1&&i.pipes[0]===t?(X("false write response, pause",0),i.awaitDrainWriters=t,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(t)&&(X("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(t)),r.pause()),l||(l=gL(r,t),t.on("drain",l))}r.on("data",g);function g(S){X("ondata");let R=t.write(S);X("dest.write",R),R===!1&&h()}function y(S){if(X("onerror",S),v(),t.removeListener("error",y),t.listenerCount("error")===0){let R=t._writableState||t._readableState;R&&!R.errorEmitted?ui(t,S):t.emit("error",S)}}GP(t,"error",y);function E(){t.removeListener("finish",m),v()}t.once("close",E);function m(){X("onfinish"),t.removeListener("close",E),v()}t.once("finish",m);function v(){X("unpipe"),r.unpipe(t)}return t.emit("pipe",r),t.writableNeedDrain===!0?h():i.flowing||(X("pipe resume"),r.resume()),t};function gL(t,e){return function(){let i=t._readableState;i.awaitDrainWriters===e?(X("pipeOnDrain",1),i.awaitDrainWriters=null):i.multiAwaitDrain&&(X("pipeOnDrain",i.awaitDrainWriters.size),i.awaitDrainWriters.delete(e)),(!i.awaitDrainWriters||i.awaitDrainWriters.size===0)&&t.listenerCount("data")&&t.resume()}}Y.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=CP(e.pipes,t);return i===-1?this:(e.pipes.splice(i,1),e.pipes.length===0&&this.pause(),t.emit("unpipe",this,r),this)};Y.prototype.on=function(t,e){let r=er.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,X("on readable",i.length,i.reading),i.length?To(this):i.reading||pt.nextTick(yL,this)),r};Y.prototype.addListener=Y.prototype.on;Y.prototype.removeListener=function(t,e){let r=er.prototype.removeListener.call(this,t,e);return t==="readable"&&pt.nextTick(r_,this),r};Y.prototype.off=Y.prototype.removeListener;Y.prototype.removeAllListeners=function(t){let e=er.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&pt.nextTick(r_,this),e};function r_(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[Ar]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function yL(t){X("readable nexttick read 0"),t.read(0)}Y.prototype.resume=function(){let t=this._readableState;return t.flowing||(X("resume"),t.flowing=!t.readableListening,mL(this,t)),t[Ar]=!1,this};function mL(t,e){e.resumeScheduled||(e.resumeScheduled=!0,pt.nextTick(_L,t,e))}function _L(t,e){X("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),i_(t),e.flowing&&!e.reading&&t.read(0)}Y.prototype.pause=function(){return X("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(X("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[Ar]=!0,this};function i_(t){let e=t._readableState;for(X("flow",e.flowing);e.flowing&&t.read()!==null;);}Y.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=>{ui(this,i)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=FP(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};Y.prototype[jP]=function(){return n_(this)};Y.prototype.iterator=function(t){return t!==void 0&&eL(t,"options"),n_(this,t)};function n_(t,e){typeof t.read!="function"&&(t=Y.wrap(t,{objectMode:!0}));let r=bL(t,e);return r.stream=t,r}async function*bL(t,e){let r=Du;function i(o){this===t?(r(),r=Du):r=o}t.on("readable",i);let n,s=Ym(t,{writable:!1},o=>{n=o?zm(n,o):null,r(),r=Du});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 Vm(i)}}}catch(o){throw n=zm(n,o),n}finally{(n||e?.destroyOnReturn!==!1)&&(n===void 0||t._readableState.autoDestroy)?ci.destroyer(t,null):(t.off("readable",i),s())}}Mu(Y.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}}});Mu(vo.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[Ar]!==!1},set(t){this[Ar]=!!t}}});Y._fromList=s_;function s_(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 Pu(t){let e=t._readableState;X("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,pt.nextTick(wL,e,t))}function wL(t,e){if(X("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)pt.nextTick(SL,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}function SL(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}Y.from=function(t,e){return tL(Y,t,e)};var Lu;function o_(){return Lu===void 0&&(Lu={}),Lu}Y.fromWeb=function(t,e){return o_().newStreamReadableFromReadableStream(t,e)};Y.toWeb=function(t,e){return o_().newReadableStreamFromStreamReadable(t,e)};Y.wrap=function(t,e){var r,i;return new Y({objectMode:(r=(i=t.readableObjectMode)!==null&&i!==void 0?i:t.objectMode)!==null&&r!==void 0?r:!0,...e,destroy(n,s){ci.destroyer(t,n),s(n)}}).wrap(t)}});var Do=b((R6,b_)=>{"use strict";var xr=Xt(),{ArrayPrototypeSlice:f_,Error:EL,FunctionPrototypeSymbolHasInstance:c_,ObjectDefineProperty:h_,ObjectDefineProperties:vL,ObjectSetPrototypeOf:d_,StringPrototypeToLowerCase:TL,Symbol:AL,SymbolHasInstance:xL}=Se();b_.exports=ve;ve.WritableState=vn;var{EventEmitter:RL}=W("events"),Sn=mo().Stream,{Buffer:Ao}=W("buffer"),Oo=Tr(),{addAbortSignal:OL}=yn(),{getHighWaterMark:DL,getDefaultHighWaterMark:IL}=mn(),{ERR_INVALID_ARG_TYPE:PL,ERR_METHOD_NOT_IMPLEMENTED:LL,ERR_MULTIPLE_CALLBACK:p_,ERR_STREAM_CANNOT_PIPE:CL,ERR_STREAM_DESTROYED:En,ERR_STREAM_ALREADY_FINISHED:NL,ERR_STREAM_NULL_VALUES:ML,ERR_STREAM_WRITE_AFTER_END:kL,ERR_UNKNOWN_ENCODING:g_}=We().codes,{errorOrDestroy:hi}=Oo;d_(ve.prototype,Sn.prototype);d_(ve,Sn);function qu(){}var di=AL("kOnFinished");function vn(t,e,r){typeof r!="boolean"&&(r=e instanceof Tt()),this.objectMode=!!(t&&t.objectMode),r&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?DL(this,t,"writableHighWaterMark",r):IL(!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=qL.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,Ro(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[di]=[]}function Ro(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}vn.prototype.getBuffer=function(){return f_(this.buffered,this.bufferedIndex)};h_(vn.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ve(t){let e=this instanceof Tt();if(!e&&!c_(ve,this))return new ve(t);this._writableState=new vn(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&&OL(t.signal,this)),Sn.call(this,t),Oo.construct(this,()=>{let r=this._writableState;r.writing||ju(this,r),Uu(this,r)})}h_(ve,xL,{__proto__:null,value:function(t){return c_(this,t)?!0:this!==ve?!1:t&&t._writableState instanceof vn}});ve.prototype.pipe=function(){hi(this,new CL)};function y_(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"&&!Ao.isEncoding(r))throw new g_(r);typeof i!="function"&&(i=qu)}if(e===null)throw new ML;if(!n.objectMode)if(typeof e=="string")n.decodeStrings!==!1&&(e=Ao.from(e,r),r="buffer");else if(e instanceof Ao)r="buffer";else if(Sn._isUint8Array(e))e=Sn._uint8ArrayToBuffer(e),r="buffer";else throw new PL("chunk",["string","Buffer","Uint8Array"],e);let s;return n.ending?s=new kL:n.destroyed&&(s=new En("write")),s?(xr.nextTick(i,s),hi(t,s,!0),s):(n.pendingcb++,FL(t,n,e,r,i))}ve.prototype.write=function(t,e,r){return y_(this,t,e,r)===!0};ve.prototype.cork=function(){this._writableState.corked++};ve.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||ju(this,t))};ve.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=TL(e)),!Ao.isEncoding(e))throw new g_(e);return this._writableState.defaultEncoding=e,this};function FL(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!==qu&&(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 l_(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new En("write")):r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function u_(t,e,r,i){--e.pendingcb,i(r),Bu(e),hi(t,r)}function qL(t,e){let r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function"){hi(t,new p_);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?xr.nextTick(u_,t,r,e,n):u_(t,r,e,n)):(r.buffered.length>r.bufferedIndex&&ju(t,r),i?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===n?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:n,stream:t,state:r},xr.nextTick(BL,r.afterWriteTickInfo)):m_(t,r,1,n))}function BL({stream:t,state:e,count:r,cb:i}){return e.afterWriteTickInfo=null,m_(t,e,r,i)}function m_(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&&Bu(e),Uu(t,e)}function Bu(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 En("write"))}let r=t[di].splice(0);for(let n=0;n<r.length;n++){var i;r[n]((i=t.errored)!==null&&i!==void 0?i:new En("end"))}Ro(t)}function ju(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?qu:u=>{for(let f=o;f<r.length;++f)r[f].callback(u)},l=e.allNoop&&o===0?r:f_(r,o);l.allBuffers=e.allBuffers,l_(t,e,!0,e.length,l,"",a),Ro(e)}else{do{let{chunk:a,encoding:l,callback:u}=r[o];r[o++]=null;let f=n?1:a.length;l_(t,e,!1,f,a,l,u)}while(o<r.length&&!e.writing);o===r.length?Ro(e):o>256?(r.splice(0,o),e.bufferedIndex=0):e.bufferedIndex=o}e.bufferProcessing=!1}ve.prototype._write=function(t,e,r){if(this._writev)this._writev([{chunk:t,encoding:e}],r);else throw new LL("_write()")};ve.prototype._writev=null;ve.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=y_(this,t,e);s instanceof EL&&(n=s)}return i.corked&&(i.corked=1,this.uncork()),n||(!i.errored&&!i.ending?(i.ending=!0,Uu(this,i,!0),i.ended=!0):i.finished?n=new NL("end"):i.destroyed&&(n=new En("end"))),typeof r=="function"&&(n||i.finished?xr.nextTick(r,n):i[di].push(r)),this};function xo(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 jL(t,e){let r=!1;function i(n){if(r){hi(t,n??p_());return}if(r=!0,e.pendingcb--,n){let s=e[di].splice(0);for(let o=0;o<s.length;o++)s[o](n);hi(t,n,e.sync)}else xo(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,xr.nextTick(Fu,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(n){i(n)}e.sync=!1}function UL(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,jL(t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Uu(t,e,r){xo(e)&&(UL(t,e),e.pendingcb===0&&(r?(e.pendingcb++,xr.nextTick((i,n)=>{xo(n)?Fu(i,n):n.pendingcb--},t,e)):xo(e)&&(e.pendingcb++,Fu(t,e))))}function Fu(t,e){e.pendingcb--,e.finished=!0;let r=e[di].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()}}vL(ve.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 WL=Oo.destroy;ve.prototype.destroy=function(t,e){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[di].length)&&xr.nextTick(Bu,r),WL.call(this,t,e),this};ve.prototype._undestroy=Oo.undestroy;ve.prototype._destroy=function(t,e){e(t)};ve.prototype[RL.captureRejectionSymbol]=function(t){this.destroy(t)};var ku;function __(){return ku===void 0&&(ku={}),ku}ve.fromWeb=function(t,e){return __().newStreamWritableFromWritableStream(t,e)};ve.toWeb=function(t){return __().newWritableStreamFromStreamWritable(t)}});var N_=b((O6,C_)=>{var Wu=Xt(),GL=W("buffer"),{isReadable:zL,isWritable:$L,isIterable:w_,isNodeStream:HL,isReadableNodeStream:S_,isWritableNodeStream:E_,isDuplexNodeStream:VL,isReadableStream:v_,isWritableStream:T_}=Et(),A_=qt(),{AbortError:P_,codes:{ERR_INVALID_ARG_TYPE:YL,ERR_INVALID_RETURN_VALUE:x_}}=We(),{destroyer:gi}=Tr(),KL=Tt(),L_=wn(),ZL=Do(),{createDeferredPromise:R_}=He(),O_=Ru(),D_=globalThis.Blob||GL.Blob,QL=typeof D_<"u"?function(e){return e instanceof D_}:function(e){return!1},XL=globalThis.AbortController||si().AbortController,{FunctionPrototypeCall:I_}=Se(),tr=class extends KL{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)}};C_.exports=function t(e,r){if(VL(e))return e;if(S_(e))return pi({readable:e});if(E_(e))return pi({writable:e});if(HL(e))return pi({writable:!1,readable:!1});if(v_(e))return pi({readable:L_.fromWeb(e)});if(T_(e))return pi({writable:ZL.fromWeb(e)});if(typeof e=="function"){let{value:n,write:s,final:o,destroy:a}=JL(e);if(w_(n))return O_(tr,n,{objectMode:!0,write:s,final:o,destroy:a});let l=n?.then;if(typeof l=="function"){let u,f=I_(l,n,h=>{if(h!=null)throw new x_("nully","body",h)},h=>{gi(u,h)});return u=new tr({objectMode:!0,readable:!1,write:s,final(h){o(async()=>{try{await f,Wu.nextTick(h,null)}catch(g){Wu.nextTick(h,g)}})},destroy:a})}throw new x_("Iterable, AsyncIterable or AsyncFunction",r,n)}if(QL(e))return t(e.arrayBuffer());if(w_(e))return O_(tr,e,{objectMode:!0,writable:!1});if(v_(e?.readable)&&T_(e?.writable))return tr.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let n=e!=null&&e.readable?S_(e?.readable)?e?.readable:t(e.readable):void 0,s=e!=null&&e.writable?E_(e?.writable)?e?.writable:t(e.writable):void 0;return pi({readable:n,writable:s})}let i=e?.then;if(typeof i=="function"){let n;return I_(i,e,s=>{s!=null&&n.push(s),n.push(null)},s=>{gi(n,s)}),n=new tr({objectMode:!0,writable:!1,read(){}})}throw new YL(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function JL(t){let{promise:e,resolve:r}=R_(),i=new XL,n=i.signal;return{value:t((async function*(){for(;;){let o=e;e=null;let{chunk:a,done:l,cb:u}=await o;if(Wu.nextTick(u),l)return;if(n.aborted)throw new P_(void 0,{cause:n.reason});({promise:e,resolve:r}=R_()),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 pi(t){let e=t.readable&&typeof t.readable.read!="function"?L_.wrap(t.readable):t.readable,r=t.writable,i=!!zL(e),n=!!$L(r),s,o,a,l,u;function f(h){let g=l;l=null,g?g(h):h&&u.destroy(h)}return u=new tr({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:i,writable:n}),n&&(A_(r,h=>{n=!1,h&&gi(e,h),f(h)}),u._write=function(h,g,y){r.write(h,g)?y():s=y},u._final=function(h){r.end(),o=h},r.on("drain",function(){if(s){let h=s;s=null,h()}}),r.on("finish",function(){if(o){let h=o;o=null,h()}})),i&&(A_(e,h=>{i=!1,h&&gi(e,h),f(h)}),e.on("readable",function(){if(a){let h=a;a=null,h()}}),e.on("end",function(){u.push(null)}),u._read=function(){for(;;){let h=e.read();if(h===null){a=u._read;return}if(!u.push(h))return}}),u._destroy=function(h,g){!h&&l!==null&&(h=new P_),a=null,s=null,o=null,l===null?g(h):(l=g,gi(r,h),gi(e,h))},u}});var Tt=b((D6,F_)=>{"use strict";var{ObjectDefineProperties:eC,ObjectGetOwnPropertyDescriptor:Bt,ObjectKeys:tC,ObjectSetPrototypeOf:M_}=Se();F_.exports=gt;var $u=wn(),ot=Do();M_(gt.prototype,$u.prototype);M_(gt,$u);{let t=tC(ot.prototype);for(let e=0;e<t.length;e++){let r=t[e];gt.prototype[r]||(gt.prototype[r]=ot.prototype[r])}}function gt(t){if(!(this instanceof gt))return new gt(t);$u.call(this,t),ot.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}eC(gt.prototype,{writable:{__proto__:null,...Bt(ot.prototype,"writable")},writableHighWaterMark:{__proto__:null,...Bt(ot.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...Bt(ot.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...Bt(ot.prototype,"writableBuffer")},writableLength:{__proto__:null,...Bt(ot.prototype,"writableLength")},writableFinished:{__proto__:null,...Bt(ot.prototype,"writableFinished")},writableCorked:{__proto__:null,...Bt(ot.prototype,"writableCorked")},writableEnded:{__proto__:null,...Bt(ot.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...Bt(ot.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 Gu;function k_(){return Gu===void 0&&(Gu={}),Gu}gt.fromWeb=function(t,e){return k_().newStreamDuplexFromReadableWritablePair(t,e)};gt.toWeb=function(t){return k_().newReadableWritablePairFromDuplex(t)};var zu;gt.from=function(t){return zu||(zu=N_()),zu(t,"body")}});var Yu=b((I6,B_)=>{"use strict";var{ObjectSetPrototypeOf:q_,Symbol:rC}=Se();B_.exports=jt;var{ERR_METHOD_NOT_IMPLEMENTED:iC}=We().codes,Vu=Tt(),{getHighWaterMark:nC}=mn();q_(jt.prototype,Vu.prototype);q_(jt,Vu);var Tn=rC("kCallback");function jt(t){if(!(this instanceof jt))return new jt(t);let e=t?nC(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),Vu.call(this,t),this._readableState.sync=!1,this[Tn]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",sC)}function Hu(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 sC(){this._final!==Hu&&Hu.call(this)}jt.prototype._final=Hu;jt.prototype._transform=function(t,e,r){throw new iC("_transform()")};jt.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[Tn]=r})};jt.prototype._read=function(){if(this[Tn]){let t=this[Tn];this[Tn]=null,t()}}});var Zu=b((P6,U_)=>{"use strict";var{ObjectSetPrototypeOf:j_}=Se();U_.exports=yi;var Ku=Yu();j_(yi.prototype,Ku.prototype);j_(yi,Ku);function yi(t){if(!(this instanceof yi))return new yi(t);Ku.call(this,t)}yi.prototype._transform=function(t,e,r){r(null,t)}});var Co=b((L6,H_)=>{var An=Xt(),{ArrayIsArray:oC,Promise:aC,SymbolAsyncIterator:lC,SymbolDispose:uC}=Se(),Lo=qt(),{once:fC}=He(),cC=Tr(),W_=Tt(),{aggregateTwoErrors:hC,codes:{ERR_INVALID_ARG_TYPE:of,ERR_INVALID_RETURN_VALUE:Qu,ERR_MISSING_ARGS:dC,ERR_STREAM_DESTROYED:pC,ERR_STREAM_PREMATURE_CLOSE:gC},AbortError:yC}=We(),{validateFunction:mC,validateAbortSignal:_C}=ai(),{isIterable:Rr,isReadable:Xu,isReadableNodeStream:Po,isNodeStream:G_,isTransformStream:mi,isWebStream:bC,isReadableStream:Ju,isReadableFinished:wC}=Et(),SC=globalThis.AbortController||si().AbortController,ef,tf,rf;function z_(t,e,r){let i=!1;t.on("close",()=>{i=!0});let n=Lo(t,{readable:e,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,cC.destroyer(t,s||new pC("pipe")))},cleanup:n}}function EC(t){return mC(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function nf(t){if(Rr(t))return t;if(Po(t))return vC(t);throw new of("val",["Readable","Iterable","AsyncIterable"],t)}async function*vC(t){tf||(tf=wn()),yield*tf.prototype[lC].call(t)}async function Io(t,e,r,{end:i}){let n,s=null,o=u=>{if(u&&(n=u),s){let f=s;s=null,f()}},a=()=>new aC((u,f)=>{n?f(n):s=()=>{n?f(n):u()}});e.on("drain",o);let l=Lo(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?hC(n,u):u)}finally{l(),e.off("drain",o)}}async function sf(t,e,r,{end:i}){mi(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 TC(...t){return $_(t,fC(EC(t)))}function $_(t,e,r){if(t.length===1&&oC(t[0])&&(t=t[0]),t.length<2)throw new dC("streams");let i=new SC,n=i.signal,s=r?.signal,o=[];_C(s,"options.signal");function a(){E(new yC)}rf=rf||He().addAbortListener;let l;s&&(l=rf(s,a));let u,f,h=[],g=0;function y(L){E(L,--g===0)}function E(L,D){var q;if(L&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=L),!(!u&&!D)){for(;h.length;)h.shift()(u);(q=l)===null||q===void 0||q[uC](),i.abort(),D&&(u||o.forEach(Z=>Z()),An.nextTick(e,u,f))}}let m;for(let L=0;L<t.length;L++){let D=t[L],q=L<t.length-1,Z=L>0,P=q||r?.end!==!1,B=L===t.length-1;if(G_(D)){let x=function(M){M&&M.name!=="AbortError"&&M.code!=="ERR_STREAM_PREMATURE_CLOSE"&&y(M)};var R=x;if(P){let{destroy:M,cleanup:k}=z_(D,q,Z);h.push(M),Xu(D)&&B&&o.push(k)}D.on("error",x),Xu(D)&&B&&o.push(()=>{D.removeListener("error",x)})}if(L===0)if(typeof D=="function"){if(m=D({signal:n}),!Rr(m))throw new Qu("Iterable, AsyncIterable or Stream","source",m)}else Rr(D)||Po(D)||mi(D)?m=D:m=W_.from(D);else if(typeof D=="function"){if(mi(m)){var v;m=nf((v=m)===null||v===void 0?void 0:v.readable)}else m=nf(m);if(m=D(m,{signal:n}),q){if(!Rr(m,!0))throw new Qu("AsyncIterable",`transform[${L-1}]`,m)}else{var S;ef||(ef=Zu());let x=new ef({objectMode:!0}),M=(S=m)===null||S===void 0?void 0:S.then;if(typeof M=="function")g++,M.call(m,ee=>{f=ee,ee!=null&&x.write(ee),P&&x.end(),An.nextTick(y)},ee=>{x.destroy(ee),An.nextTick(y,ee)});else if(Rr(m,!0))g++,Io(m,x,y,{end:P});else if(Ju(m)||mi(m)){let ee=m.readable||m;g++,Io(ee,x,y,{end:P})}else throw new Qu("AsyncIterable or Promise","destination",m);m=x;let{destroy:k,cleanup:H}=z_(m,!1,!0);h.push(k),B&&o.push(H)}}else if(G_(D)){if(Po(m)){g+=2;let x=AC(m,D,y,{end:P});Xu(D)&&B&&o.push(x)}else if(mi(m)||Ju(m)){let x=m.readable||m;g++,Io(x,D,y,{end:P})}else if(Rr(m))g++,Io(m,D,y,{end:P});else throw new of("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],m);m=D}else if(bC(D)){if(Po(m))g++,sf(nf(m),D,y,{end:P});else if(Ju(m)||Rr(m))g++,sf(m,D,y,{end:P});else if(mi(m))g++,sf(m.readable,D,y,{end:P});else throw new of("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],m);m=D}else m=W_.from(D)}return(n!=null&&n.aborted||s!=null&&s.aborted)&&An.nextTick(a),m}function AC(t,e,r,{end:i}){let n=!1;if(e.on("close",()=>{n||r(new gC)}),t.pipe(e,{end:!1}),i){let o=function(){n=!0,e.end()};var s=o;wC(t)?An.nextTick(o):t.once("end",o)}else r();return Lo(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)}),Lo(e,{readable:!1,writable:!0},r)}H_.exports={pipelineImpl:$_,pipeline:TC}});var lf=b((C6,X_)=>{"use strict";var{pipeline:xC}=Co(),No=Tt(),{destroyer:RC}=Tr(),{isNodeStream:Mo,isReadable:V_,isWritable:Y_,isWebStream:af,isTransformStream:Or,isWritableStream:K_,isReadableStream:Z_}=Et(),{AbortError:OC,codes:{ERR_INVALID_ARG_VALUE:Q_,ERR_MISSING_ARGS:DC}}=We(),IC=qt();X_.exports=function(...e){if(e.length===0)throw new DC("streams");if(e.length===1)return No.from(e[0]);let r=[...e];if(typeof e[0]=="function"&&(e[0]=No.from(e[0])),typeof e[e.length-1]=="function"){let y=e.length-1;e[y]=No.from(e[y])}for(let y=0;y<e.length;++y)if(!(!Mo(e[y])&&!af(e[y]))){if(y<e.length-1&&!(V_(e[y])||Z_(e[y])||Or(e[y])))throw new Q_(`streams[${y}]`,r[y],"must be readable");if(y>0&&!(Y_(e[y])||K_(e[y])||Or(e[y])))throw new Q_(`streams[${y}]`,r[y],"must be writable")}let i,n,s,o,a;function l(y){let E=o;o=null,E?E(y):y?a.destroy(y):!g&&!h&&a.destroy()}let u=e[0],f=xC(e,l),h=!!(Y_(u)||K_(u)||Or(u)),g=!!(V_(f)||Z_(f)||Or(f));if(a=new No({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(f!=null&&f.readableObjectMode),writable:h,readable:g}),h){if(Mo(u))a._write=function(E,m,v){u.write(E,m)?v():i=v},a._final=function(E){u.end(),n=E},u.on("drain",function(){if(i){let E=i;i=null,E()}});else if(af(u)){let m=(Or(u)?u.writable:u).getWriter();a._write=async function(v,S,R){try{await m.ready,m.write(v).catch(()=>{}),R()}catch(L){R(L)}},a._final=async function(v){try{await m.ready,m.close().catch(()=>{}),n=v}catch(S){v(S)}}}let y=Or(f)?f.readable:f;IC(y,()=>{if(n){let E=n;n=null,E()}})}if(g){if(Mo(f))f.on("readable",function(){if(s){let y=s;s=null,y()}}),f.on("end",function(){a.push(null)}),a._read=function(){for(;;){let y=f.read();if(y===null){s=a._read;return}if(!a.push(y))return}};else if(af(f)){let E=(Or(f)?f.readable:f).getReader();a._read=async function(){for(;;)try{let{value:m,done:v}=await E.read();if(!a.push(m))return;if(v){a.push(null);return}}catch{return}}}}return a._destroy=function(y,E){!y&&o!==null&&(y=new OC),s=null,i=null,n=null,o===null?E(y):(o=E,Mo(f)&&RC(f,y))},a}});var lb=b((N6,cf)=>{"use strict";var PC=globalThis.AbortController||si().AbortController,{codes:{ERR_INVALID_ARG_VALUE:LC,ERR_INVALID_ARG_TYPE:xn,ERR_MISSING_ARGS:CC,ERR_OUT_OF_RANGE:NC},AbortError:At}=We(),{validateAbortSignal:Dr,validateInteger:J_,validateObject:Ir}=ai(),MC=Se().Symbol("kWeak"),kC=Se().Symbol("kResistStopPropagation"),{finished:FC}=qt(),qC=lf(),{addAbortSignalNoValidate:BC}=yn(),{isWritable:jC,isNodeStream:UC}=Et(),{deprecate:WC}=He(),{ArrayPrototypePush:GC,Boolean:zC,MathFloor:eb,Number:$C,NumberIsNaN:HC,Promise:tb,PromiseReject:rb,PromiseResolve:VC,PromisePrototypeThen:ib,Symbol:sb}=Se(),ko=sb("kEmpty"),nb=sb("kEof");function YC(t,e){if(e!=null&&Ir(e,"options"),e?.signal!=null&&Dr(e.signal,"options.signal"),UC(t)&&!jC(t))throw new LC("stream",t,"must be writable");let r=qC(this,t);return e!=null&&e.signal&&BC(e.signal,r),r}function Fo(t,e){if(typeof t!="function")throw new xn("fn",["Function","AsyncFunction"],t);e!=null&&Ir(e,"options"),e?.signal!=null&&Dr(e.signal,"options.signal");let r=1;e?.concurrency!=null&&(r=eb(e.concurrency));let i=r-1;return e?.highWaterMark!=null&&(i=eb(e.highWaterMark)),J_(r,"options.concurrency",1),J_(i,"options.highWaterMark",0),i+=r,async function*(){let s=He().AbortSignalAny([e?.signal].filter(zC)),o=this,a=[],l={signal:s},u,f,h=!1,g=0;function y(){h=!0,E()}function E(){g-=1,m()}function m(){f&&!h&&g<r&&a.length<i&&(f(),f=null)}async function v(){try{for await(let S of o){if(h)return;if(s.aborted)throw new At;try{if(S=t(S,l),S===ko)continue;S=VC(S)}catch(R){S=rb(R)}g+=1,ib(S,E,y),a.push(S),u&&(u(),u=null),!h&&(a.length>=i||g>=r)&&await new tb(R=>{f=R})}a.push(nb)}catch(S){let R=rb(S);ib(R,E,y),a.push(R)}finally{h=!0,u&&(u(),u=null)}}v();try{for(;;){for(;a.length>0;){let S=await a[0];if(S===nb)return;if(s.aborted)throw new At;S!==ko&&(yield S),a.shift(),m()}await new tb(S=>{u=S})}}finally{h=!0,f&&(f(),f=null)}}.call(this)}function KC(t=void 0){return t!=null&&Ir(t,"options"),t?.signal!=null&&Dr(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 At({cause:t.signal.reason});yield[r++,n]}}.call(this)}async function ob(t,e=void 0){for await(let r of ff.call(this,t,e))return!0;return!1}async function ZC(t,e=void 0){if(typeof t!="function")throw new xn("fn",["Function","AsyncFunction"],t);return!await ob.call(this,async(...r)=>!await t(...r),e)}async function QC(t,e){for await(let r of ff.call(this,t,e))return r}async function XC(t,e){if(typeof t!="function")throw new xn("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n),ko}for await(let i of Fo.call(this,r,e));}function ff(t,e){if(typeof t!="function")throw new xn("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n)?i:ko}return Fo.call(this,r,e)}var uf=class extends CC{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function JC(t,e,r){var i;if(typeof t!="function")throw new xn("reducer",["Function","AsyncFunction"],t);r!=null&&Ir(r,"options"),r?.signal!=null&&Dr(r.signal,"options.signal");let n=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){let u=new At(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await FC(this.destroy(u)),u}let s=new PC,o=s.signal;if(r!=null&&r.signal){let u={once:!0,[MC]:this,[kC]:!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 At;n?e=await t(e,u,{signal:o}):(e=u,n=!0)}if(!a&&!n)throw new uf}finally{s.abort()}return e}async function eN(t){t!=null&&Ir(t,"options"),t?.signal!=null&&Dr(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 At(void 0,{cause:t.signal.reason});GC(e,i)}return e}function tN(t,e){let r=Fo.call(this,t,e);return async function*(){for await(let n of r)yield*n}.call(this)}function ab(t){if(t=$C(t),HC(t))return 0;if(t<0)throw new NC("number",">= 0",t);return t}function rN(t,e=void 0){return e!=null&&Ir(e,"options"),e?.signal!=null&&Dr(e.signal,"options.signal"),t=ab(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new At;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new At;t--<=0&&(yield s)}}.call(this)}function iN(t,e=void 0){return e!=null&&Ir(e,"options"),e?.signal!=null&&Dr(e.signal,"options.signal"),t=ab(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new At;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new At;if(t-- >0&&(yield s),t<=0)return}}.call(this)}cf.exports.streamReturningOperators={asIndexedPairs:WC(KC,"readable.asIndexedPairs will be removed in a future version."),drop:rN,filter:ff,flatMap:tN,map:Fo,take:iN,compose:YC};cf.exports.promiseReturningOperators={every:ZC,forEach:XC,reduce:JC,toArray:eN,some:ob,find:QC}});var hf=b((M6,ub)=>{"use strict";var{ArrayPrototypePop:nN,Promise:sN}=Se(),{isIterable:oN,isNodeStream:aN,isWebStream:lN}=Et(),{pipelineImpl:uN}=Co(),{finished:fN}=qt();df();function cN(...t){return new sN((e,r)=>{let i,n,s=t[t.length-1];if(s&&typeof s=="object"&&!aN(s)&&!oN(s)&&!lN(s)){let o=nN(t);i=o.signal,n=o.end}uN(t,(o,a)=>{o?r(o):e(a)},{signal:i,end:n})})}ub.exports={finished:fN,pipeline:cN}});var df=b((k6,_b)=>{"use strict";var{Buffer:hN}=W("buffer"),{ObjectDefineProperty:Ut,ObjectKeys:hb,ReflectApply:db}=Se(),{promisify:{custom:pb}}=He(),{streamReturningOperators:fb,promiseReturningOperators:cb}=lb(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:gb}}=We(),dN=lf(),{setDefaultHighWaterMark:pN,getDefaultHighWaterMark:gN}=mn(),{pipeline:yb}=Co(),{destroyer:yN}=Tr(),mb=qt(),pf=hf(),Rn=Et(),be=_b.exports=mo().Stream;be.isDestroyed=Rn.isDestroyed;be.isDisturbed=Rn.isDisturbed;be.isErrored=Rn.isErrored;be.isReadable=Rn.isReadable;be.isWritable=Rn.isWritable;be.Readable=wn();for(let t of hb(fb)){let r=function(...i){if(new.target)throw gb();return be.Readable.from(db(e,this,i))},e=fb[t];Ut(r,"name",{__proto__:null,value:e.name}),Ut(r,"length",{__proto__:null,value:e.length}),Ut(be.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}for(let t of hb(cb)){let r=function(...i){if(new.target)throw gb();return db(e,this,i)},e=cb[t];Ut(r,"name",{__proto__:null,value:e.name}),Ut(r,"length",{__proto__:null,value:e.length}),Ut(be.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}be.Writable=Do();be.Duplex=Tt();be.Transform=Yu();be.PassThrough=Zu();be.pipeline=yb;var{addAbortSignal:mN}=yn();be.addAbortSignal=mN;be.finished=mb;be.destroy=yN;be.compose=dN;be.setDefaultHighWaterMark=pN;be.getDefaultHighWaterMark=gN;Ut(be,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return pf}});Ut(yb,pb,{__proto__:null,enumerable:!0,get(){return pf.pipeline}});Ut(mb,pb,{__proto__:null,enumerable:!0,get(){return pf.finished}});be.Stream=be;be._isUint8Array=function(e){return e instanceof Uint8Array};be._uint8ArrayToBuffer=function(e){return hN.from(e.buffer,e.byteOffset,e.byteLength)}});var Pr=b((F6,Q)=>{"use strict";var Ie=W("stream");if(Ie&&process.env.READABLE_STREAM==="disable"){let t=Ie.promises;Q.exports._uint8ArrayToBuffer=Ie._uint8ArrayToBuffer,Q.exports._isUint8Array=Ie._isUint8Array,Q.exports.isDisturbed=Ie.isDisturbed,Q.exports.isErrored=Ie.isErrored,Q.exports.isReadable=Ie.isReadable,Q.exports.Readable=Ie.Readable,Q.exports.Writable=Ie.Writable,Q.exports.Duplex=Ie.Duplex,Q.exports.Transform=Ie.Transform,Q.exports.PassThrough=Ie.PassThrough,Q.exports.addAbortSignal=Ie.addAbortSignal,Q.exports.finished=Ie.finished,Q.exports.destroy=Ie.destroy,Q.exports.pipeline=Ie.pipeline,Q.exports.compose=Ie.compose,Object.defineProperty(Ie,"promises",{configurable:!0,enumerable:!0,get(){return t}}),Q.exports.Stream=Ie.Stream}else{let t=df(),e=hf(),r=t.Readable.destroy;Q.exports=t.Readable,Q.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,Q.exports._isUint8Array=t._isUint8Array,Q.exports.isDisturbed=t.isDisturbed,Q.exports.isErrored=t.isErrored,Q.exports.isReadable=t.isReadable,Q.exports.Readable=t.Readable,Q.exports.Writable=t.Writable,Q.exports.Duplex=t.Duplex,Q.exports.Transform=t.Transform,Q.exports.PassThrough=t.PassThrough,Q.exports.addAbortSignal=t.addAbortSignal,Q.exports.finished=t.finished,Q.exports.destroy=t.destroy,Q.exports.destroy=r,Q.exports.pipeline=t.pipeline,Q.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return e}}),Q.exports.Stream=t.Stream}Q.exports.default=Q.exports});var wb=b((q6,bb)=>{function _N(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}bb.exports=_N});var Tb=b((B6,vb)=>{var Sb=to(),bN=Zl(),wN=Ql(),Eb=Sb?Sb.isConcatSpreadable:void 0;function SN(t){return wN(t)||bN(t)||!!(Eb&&t&&t[Eb])}vb.exports=SN});var qo=b((j6,xb)=>{var EN=wb(),vN=Tb();function Ab(t,e,r,i,n){var s=-1,o=t.length;for(r||(r=vN),n||(n=[]);++s<o;){var a=t[s];e>0&&r(a)?e>1?Ab(a,e-1,r,i,n):EN(n,a):i||(n[n.length]=a)}return n}xb.exports=Ab});var Ob=b((U6,Rb)=>{var TN=qo();function AN(t){var e=t==null?0:t.length;return e?TN(t,1):[]}Rb.exports=AN});var On=b((W6,Db)=>{var xN=an(),RN=xN(Object,"create");Db.exports=RN});var Lb=b((G6,Pb)=>{var Ib=On();function ON(){this.__data__=Ib?Ib(null):{},this.size=0}Pb.exports=ON});var Nb=b((z6,Cb)=>{function DN(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}Cb.exports=DN});var kb=b(($6,Mb)=>{var IN=On(),PN="__lodash_hash_undefined__",LN=Object.prototype,CN=LN.hasOwnProperty;function NN(t){var e=this.__data__;if(IN){var r=e[t];return r===PN?void 0:r}return CN.call(e,t)?e[t]:void 0}Mb.exports=NN});var qb=b((H6,Fb)=>{var MN=On(),kN=Object.prototype,FN=kN.hasOwnProperty;function qN(t){var e=this.__data__;return MN?e[t]!==void 0:FN.call(e,t)}Fb.exports=qN});var jb=b((V6,Bb)=>{var BN=On(),jN="__lodash_hash_undefined__";function UN(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=BN&&e===void 0?jN:e,this}Bb.exports=UN});var Wb=b((Y6,Ub)=>{var WN=Lb(),GN=Nb(),zN=kb(),$N=qb(),HN=jb();function _i(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])}}_i.prototype.clear=WN;_i.prototype.delete=GN;_i.prototype.get=zN;_i.prototype.has=$N;_i.prototype.set=HN;Ub.exports=_i});var zb=b((K6,Gb)=>{function VN(){this.__data__=[],this.size=0}Gb.exports=VN});var Dn=b((Z6,$b)=>{var YN=io();function KN(t,e){for(var r=t.length;r--;)if(YN(t[r][0],e))return r;return-1}$b.exports=KN});var Vb=b((Q6,Hb)=>{var ZN=Dn(),QN=Array.prototype,XN=QN.splice;function JN(t){var e=this.__data__,r=ZN(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():XN.call(e,r,1),--this.size,!0}Hb.exports=JN});var Kb=b((X6,Yb)=>{var eM=Dn();function tM(t){var e=this.__data__,r=eM(e,t);return r<0?void 0:e[r][1]}Yb.exports=tM});var Qb=b((J6,Zb)=>{var rM=Dn();function iM(t){return rM(this.__data__,t)>-1}Zb.exports=iM});var Jb=b((eU,Xb)=>{var nM=Dn();function sM(t,e){var r=this.__data__,i=nM(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}Xb.exports=sM});var tw=b((tU,ew)=>{var oM=zb(),aM=Vb(),lM=Kb(),uM=Qb(),fM=Jb();function bi(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])}}bi.prototype.clear=oM;bi.prototype.delete=aM;bi.prototype.get=lM;bi.prototype.has=uM;bi.prototype.set=fM;ew.exports=bi});var iw=b((rU,rw)=>{var cM=an(),hM=ei(),dM=cM(hM,"Map");rw.exports=dM});var ow=b((iU,sw)=>{var nw=Wb(),pM=tw(),gM=iw();function yM(){this.size=0,this.__data__={hash:new nw,map:new(gM||pM),string:new nw}}sw.exports=yM});var lw=b((nU,aw)=>{function mM(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}aw.exports=mM});var In=b((sU,uw)=>{var _M=lw();function bM(t,e){var r=t.__data__;return _M(e)?r[typeof e=="string"?"string":"hash"]:r.map}uw.exports=bM});var cw=b((oU,fw)=>{var wM=In();function SM(t){var e=wM(this,t).delete(t);return this.size-=e?1:0,e}fw.exports=SM});var dw=b((aU,hw)=>{var EM=In();function vM(t){return EM(this,t).get(t)}hw.exports=vM});var gw=b((lU,pw)=>{var TM=In();function AM(t){return TM(this,t).has(t)}pw.exports=AM});var mw=b((uU,yw)=>{var xM=In();function RM(t,e){var r=xM(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}yw.exports=RM});var bw=b((fU,_w)=>{var OM=ow(),DM=cw(),IM=dw(),PM=gw(),LM=mw();function wi(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])}}wi.prototype.clear=OM;wi.prototype.delete=DM;wi.prototype.get=IM;wi.prototype.has=PM;wi.prototype.set=LM;_w.exports=wi});var Sw=b((cU,ww)=>{var CM="__lodash_hash_undefined__";function NM(t){return this.__data__.set(t,CM),this}ww.exports=NM});var vw=b((hU,Ew)=>{function MM(t){return this.__data__.has(t)}Ew.exports=MM});var gf=b((dU,Tw)=>{var kM=bw(),FM=Sw(),qM=vw();function Bo(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new kM;++e<r;)this.add(t[e])}Bo.prototype.add=Bo.prototype.push=FM;Bo.prototype.has=qM;Tw.exports=Bo});var xw=b((pU,Aw)=>{function BM(t,e,r,i){for(var n=t.length,s=r+(i?1:-1);i?s--:++s<n;)if(e(t[s],s,t))return s;return-1}Aw.exports=BM});var Ow=b((gU,Rw)=>{function jM(t){return t!==t}Rw.exports=jM});var Iw=b((yU,Dw)=>{function UM(t,e,r){for(var i=r-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}Dw.exports=UM});var Lw=b((mU,Pw)=>{var WM=xw(),GM=Ow(),zM=Iw();function $M(t,e,r){return e===e?zM(t,e,r):WM(t,GM,r)}Pw.exports=$M});var yf=b((_U,Cw)=>{var HM=Lw();function VM(t,e){var r=t==null?0:t.length;return!!r&&HM(t,e,0)>-1}Cw.exports=VM});var mf=b((bU,Nw)=>{function YM(t,e,r){for(var i=-1,n=t==null?0:t.length;++i<n;)if(r(e,t[i]))return!0;return!1}Nw.exports=YM});var kw=b((wU,Mw)=>{function KM(t,e){for(var r=-1,i=t==null?0:t.length,n=Array(i);++r<i;)n[r]=e(t[r],r,t);return n}Mw.exports=KM});var _f=b((SU,Fw)=>{function ZM(t,e){return t.has(e)}Fw.exports=ZM});var Bw=b((EU,qw)=>{var QM=gf(),XM=yf(),JM=mf(),ek=kw(),tk=Xl(),rk=_f(),ik=200;function nk(t,e,r,i){var n=-1,s=XM,o=!0,a=t.length,l=[],u=e.length;if(!a)return l;r&&(e=ek(e,tk(r))),i?(s=JM,o=!1):e.length>=ik&&(s=rk,o=!1,e=new QM(e));e:for(;++n<a;){var f=t[n],h=r==null?f:r(f);if(f=i||f!==0?f:0,o&&h===h){for(var g=u;g--;)if(e[g]===h)continue e;l.push(f)}else s(e,h,i)||l.push(f)}return l}qw.exports=nk});var bf=b((vU,jw)=>{var sk=no(),ok=ti();function ak(t){return ok(t)&&sk(t)}jw.exports=ak});var Gw=b((TU,Ww)=>{var lk=Bw(),uk=qo(),fk=ro(),Uw=bf(),ck=fk(function(t,e){return Uw(t)?lk(t,uk(e,1,Uw,!0)):[]});Ww.exports=ck});var $w=b((AU,zw)=>{var hk=an(),dk=ei(),pk=hk(dk,"Set");zw.exports=pk});var Vw=b((xU,Hw)=>{function gk(){}Hw.exports=gk});var wf=b((RU,Yw)=>{function yk(t){var e=-1,r=Array(t.size);return t.forEach(function(i){r[++e]=i}),r}Yw.exports=yk});var Zw=b((OU,Kw)=>{var Sf=$w(),mk=Vw(),_k=wf(),bk=1/0,wk=Sf&&1/_k(new Sf([,-0]))[1]==bk?function(t){return new Sf(t)}:mk;Kw.exports=wk});var Xw=b((DU,Qw)=>{var Sk=gf(),Ek=yf(),vk=mf(),Tk=_f(),Ak=Zw(),xk=wf(),Rk=200;function Ok(t,e,r){var i=-1,n=Ek,s=t.length,o=!0,a=[],l=a;if(r)o=!1,n=vk;else if(s>=Rk){var u=e?null:Ak(t);if(u)return xk(u);o=!1,n=Tk,l=new Sk}else l=e?[]:a;e:for(;++i<s;){var f=t[i],h=e?e(f):f;if(f=r||f!==0?f:0,o&&h===h){for(var g=l.length;g--;)if(l[g]===h)continue e;e&&l.push(h),a.push(f)}else n(l,h,r)||(l!==a&&l.push(h),a.push(f))}return a}Qw.exports=Ok});var e0=b((IU,Jw)=>{var Dk=qo(),Ik=ro(),Pk=Xw(),Lk=bf(),Ck=Ik(function(t){return Pk(Dk(t,1,Lk,!0))});Jw.exports=Ck});var r0=b((PU,t0)=>{function Nk(t,e){return function(r){return t(e(r))}}t0.exports=Nk});var n0=b((LU,i0)=>{var Mk=r0(),kk=Mk(Object.getPrototypeOf,Object);i0.exports=kk});var a0=b((CU,o0)=>{var Fk=sn(),qk=n0(),Bk=ti(),jk="[object Object]",Uk=Function.prototype,Wk=Object.prototype,s0=Uk.toString,Gk=Wk.hasOwnProperty,zk=s0.call(Object);function $k(t){if(!Bk(t)||Fk(t)!=jk)return!1;var e=qk(t);if(e===null)return!0;var r=Gk.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&s0.call(r)==zk}o0.exports=$k});var l0=b(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.assertValidPattern=void 0;var Hk=1024*64,Vk=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Hk)throw new TypeError("pattern is too long")};jo.assertValidPattern=Vk});var f0=b(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.parseClass=void 0;var Yk={"[: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]},Pn=t=>t.replace(/[[\]\\-]/g,"\\$&"),Kk=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),u0=t=>t.join(""),Zk=(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,h="";e:for(;s<t.length;){let m=t.charAt(s);if((m==="!"||m==="^")&&s===r+1){u=!0,s++;continue}if(m==="]"&&o&&!l){f=s+1;break}if(o=!0,m==="\\"&&!l){l=!0,s++;continue}if(m==="["&&!l){for(let[v,[S,R,L]]of Object.entries(Yk))if(t.startsWith(v,s)){if(h)return["$.",!1,t.length-r,!0];s+=v.length,L?n.push(S):i.push(S),a=a||R;continue e}}if(l=!1,h){m>h?i.push(Pn(h)+"-"+Pn(m)):m===h&&i.push(Pn(m)),h="",s++;continue}if(t.startsWith("-]",s+1)){i.push(Pn(m+"-")),s+=2;continue}if(t.startsWith("-",s+1)){h=m,s+=2;continue}i.push(Pn(m)),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 m=i[0].length===2?i[0].slice(-1):i[0];return[Kk(m),!1,f-r,!1]}let g="["+(u?"^":"")+u0(i)+"]",y="["+(u?"":"^")+u0(n)+"]";return[i.length&&n.length?"("+g+"|"+y+")":i.length?g:y,a,f-r,!0]};Uo.parseClass=Zk});var Go=b(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.unescape=void 0;var Qk=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");Wo.unescape=Qk});var Tf=b(Vo=>{"use strict";var Qe;Object.defineProperty(Vo,"__esModule",{value:!0});Vo.AST=void 0;var Xk=f0(),zo=Go(),Jk=new Set(["!","?","+","*","@"]),Ef=t=>Jk.has(t),c0=t=>Ef(t.type),e2=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),t2=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),r2=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),h0=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),i2="(?!(?:^|/)\\.\\.?(?:$|/))",$o="(?!\\.)",n2=new Set(["[","."]),s2=new Set(["..","."]),o2=new Set("().*{}+?[]^$\\!"),a2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),vf="[^/]",d0=vf+"*?",p0=vf+"+?",Ho=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("")}#m(){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 Qe&&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 Qe&&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 Qe(this.type,e);for(let i of this.#t)r.copyIn(i);return r}static#_(e,r,i,n,s){let o=n.maxExtglobRecursion??2,a=!1,l=!1,u=-1,f=!1;if(r.type===null){let m=i,v="";for(;m<e.length;){let S=e.charAt(m++);if(a||S==="\\"){a=!a,v+=S;continue}if(l){m===u+1?(S==="^"||S==="!")&&(f=!0):S==="]"&&!(m===u+2&&f)&&(l=!1),v+=S;continue}else if(S==="["){l=!0,u=m,f=!1,v+=S;continue}if(!n.noext&&Ef(S)&&e.charAt(m)==="("&&s<=o){r.push(v),v="";let L=new Qe(S,r);m=Qe.#_(e,L,m,n,s+1),r.push(L);continue}v+=S}return r.push(v),m}let h=i+1,g=new Qe(null,r),y=[],E="";for(;h<e.length;){let m=e.charAt(h++);if(a||m==="\\"){a=!a,E+=m;continue}if(l){h===u+1?(m==="^"||m==="!")&&(f=!0):m==="]"&&!(h===u+2&&f)&&(l=!1),E+=m;continue}else if(m==="["){l=!0,u=h,f=!1,E+=m;continue}if(Ef(m)&&e.charAt(h)==="("&&(s<=o||r&&r.#E(m))){let S=r&&r.#E(m)?0:1;g.push(E),E="";let R=new Qe(m,g);g.push(R),h=Qe.#_(e,R,h,n,s+S);continue}if(m==="|"){g.push(E),E="",y.push(g),g=new Qe(null,r);continue}if(m===")")return E===""&&r.#t.length===0&&(r.#s=!0),g.push(E),E="",r.push(...y,g),h;E+=m}return r.type=null,r.#r=void 0,r.#t=[e.substring(i-1)],h}#g(e){return this.#d(e,t2)}#d(e,r=e2){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=r2){return!!r.get(this.type)?.includes(e)}#p(e,r){let i=e.#t[0],n=new Qe(null,i,this.options);n.#t.push(""),i.push(n),this.#T(e,r)}#T(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}#A(e){return!!h0.get(this.type)?.has(e)}#y(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.#A(r.type)}#v(e){let r=h0.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(c0(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.#T(n,i)):this.#g(n)?(r=!1,this.#p(n,i)):this.#y(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 Qe(null,void 0,r);return Qe.#_(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.#m()),!c0(this)){let l=this.isStart()&&this.isEnd(),u=this.#t.map(y=>{let[E,m,v,S]=typeof y=="string"?Qe.#x(y,this.#r,l):y.toRegExpSource(e);return this.#r=this.#r||v,this.#n=this.#n||S,E}).join(""),f="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&s2.has(this.#t[0]))){let E=n2,m=r&&E.has(u.charAt(0))||u.startsWith("\\.")&&E.has(u.charAt(2))||u.startsWith("\\.\\.")&&E.has(u.charAt(4)),v=!r&&!e&&E.has(u.charAt(0));f=m?i2:v?$o:""}let h="";return this.isEnd()&&this.#e.#c&&this.#o?.type==="!"&&(h="(?:$|\\/)"),[f+u+h,(0,zo.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,zo.unescape)(this.toString()),!1,!1]}let o=!i||e||r||!$o?"":this.#h(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!r?$o:"")+p0;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?$o:"")+d0+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=n+s+l}return[a,(0,zo.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#x(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+=(o2.has(u)?"\\":"")+u,a=!1;continue}if(u==="\\"){l===e.length-1?s+="\\\\":n=!0;continue}if(u==="["){let[f,h,g,y]=(0,Xk.parseClass)(e,l);if(g){s+=f,o=o||h,l+=g-1,r=r||y,a=!1;continue}}if(u==="*"){if(a)continue;a=!0,s+=i&&/^[*]+$/.test(e)?p0:d0,r=!0;continue}else a=!1;if(u==="?"){s+=vf,r=!0;continue}s+=a2(u)}return[s,(0,zo.unescape)(e),!!r,o]}};Vo.AST=Ho;Qe=Ho});var Af=b(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.escape=void 0;var l2=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");Yo.escape=l2});var rr=b(F=>{"use strict";var u2=F&&F.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(F,"__esModule",{value:!0});F.unescape=F.escape=F.AST=F.Minimatch=F.match=F.makeRe=F.braceExpand=F.defaults=F.filter=F.GLOBSTAR=F.sep=F.minimatch=void 0;var f2=u2(al()),Ko=l0(),m0=Tf(),c2=Af(),h2=Go(),d2=(t,e,r={})=>((0,Ko.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new Lr(e,r).match(t));F.minimatch=d2;var p2=/^\*+([^+@!?\*\[\(]*)$/,g2=t=>e=>!e.startsWith(".")&&e.endsWith(t),y2=t=>e=>e.endsWith(t),m2=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),_2=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),b2=/^\*+\.\*+$/,w2=t=>!t.startsWith(".")&&t.includes("."),S2=t=>t!=="."&&t!==".."&&t.includes("."),E2=/^\.\*+$/,v2=t=>t!=="."&&t!==".."&&t.startsWith("."),T2=/^\*+$/,A2=t=>t.length!==0&&!t.startsWith("."),x2=t=>t.length!==0&&t!=="."&&t!=="..",R2=/^\?+([^+@!?\*\[\(]*)?$/,O2=([t,e=""])=>{let r=_0([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},D2=([t,e=""])=>{let r=b0([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},I2=([t,e=""])=>{let r=b0([t]);return e?i=>r(i)&&i.endsWith(e):r},P2=([t,e=""])=>{let r=_0([t]);return e?i=>r(i)&&i.endsWith(e):r},_0=([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},b0=([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},w0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",g0={win32:{sep:"\\"},posix:{sep:"/"}};F.sep=w0==="win32"?g0.win32.sep:g0.posix.sep;F.minimatch.sep=F.sep;F.GLOBSTAR=Symbol("globstar **");F.minimatch.GLOBSTAR=F.GLOBSTAR;var L2="[^/]",C2=L2+"*?",N2="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",M2="(?:(?!(?:\\/|^)\\.).)*?",k2=(t,e={})=>r=>(0,F.minimatch)(r,t,e);F.filter=k2;F.minimatch.filter=F.filter;var at=(t,e={})=>Object.assign({},t,e),F2=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return F.minimatch;let e=F.minimatch;return Object.assign((i,n,s={})=>e(i,n,at(t,s)),{Minimatch:class extends e.Minimatch{constructor(n,s={}){super(n,at(t,s))}static defaults(n){return e.defaults(at(t,n)).Minimatch}},AST:class extends e.AST{constructor(n,s,o={}){super(n,s,at(t,o))}static fromGlob(n,s={}){return e.AST.fromGlob(n,at(t,s))}},unescape:(i,n={})=>e.unescape(i,at(t,n)),escape:(i,n={})=>e.escape(i,at(t,n)),filter:(i,n={})=>e.filter(i,at(t,n)),defaults:i=>e.defaults(at(t,i)),makeRe:(i,n={})=>e.makeRe(i,at(t,n)),braceExpand:(i,n={})=>e.braceExpand(i,at(t,n)),match:(i,n,s={})=>e.match(i,n,at(t,s)),sep:e.sep,GLOBSTAR:F.GLOBSTAR})};F.defaults=F2;F.minimatch.defaults=F.defaults;var q2=(t,e={})=>((0,Ko.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,f2.default)(t));F.braceExpand=q2;F.minimatch.braceExpand=F.braceExpand;var B2=(t,e={})=>new Lr(t,e).makeRe();F.makeRe=B2;F.minimatch.makeRe=F.makeRe;var j2=(t,e,r={})=>{let i=new Lr(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};F.match=j2;F.minimatch.match=F.match;var y0=/[?*]|[+@!]\(.*?\)|\[|\]/,U2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Lr=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,Ko.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||w0,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]==="?"||!y0.test(s[2]))&&!y0.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]),h=l?3:a?0:void 0,g=f?3:u?0:void 0;if(typeof h=="number"&&typeof g=="number"){let[y,E]=[e[h],r[g]];y.toLowerCase()===E.toLowerCase()&&(r[g]=y,s=g,n=h)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),r.includes(F.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(F.GLOBSTAR,s),a=r.lastIndexOf(F.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 R=e.slice(n,n+l.length);if(!this.#n(R,l,i,0,0))return!1;n+=l.length}let h=0;if(f.length){if(f.length+n>e.length)return!1;let R=e.length-f.length;if(this.#n(e,f,i,R,0))h=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||(R--,!this.#n(e,f,i,R,0)))return!1;h=f.length+1}}if(!u.length){let R=!!h;for(let L=n;L<e.length-h;L++){let D=String(e[L]);if(R=!0,D==="."||D===".."||!this.options.dot&&D.startsWith("."))return!1}return i||R}let g=[[[],0]],y=g[0],E=0,m=[0];for(let R of u)R===F.GLOBSTAR?(m.push(E),y=[[],0],g.push(y)):(y[0].push(R),E++);let v=g.length-1,S=e.length-h;for(let R of g)R[1]=S-(m[v--]+R[0].length);return!!this.#r(e,g,n,0,i,0,!!h)}#r(e,r,i,n,s,o,a){let l=r[n];if(!l){for(let h=i;h<e.length;h++){a=!0;let g=e[h];if(g==="."||g===".."||!this.options.dot&&g.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 y=this.#r(e,r,i+u.length,n+1,s,o+1,a);if(y!==!1)return y}let g=e[i];if(g==="."||g===".."||!this.options.dot&&g.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],h=e[o];if(this.debug(r,f,h),f===!1||f===F.GLOBSTAR)return!1;let g;if(typeof f=="string"?(g=h===f,this.debug("string match",f,h,g)):(g=f.test(h),this.debug("pattern match",f,h,g)),!g)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,F.braceExpand)(this.pattern,this.options)}parse(e){(0,Ko.assertValidPattern)(e);let r=this.options;if(e==="**")return F.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(T2))?n=r.dot?x2:A2:(i=e.match(p2))?n=(r.nocase?r.dot?_2:m2:r.dot?y2:g2)(i[1]):(i=e.match(R2))?n=(r.nocase?r.dot?D2:O2:r.dot?I2:P2)(i):(i=e.match(b2))?n=r.dot?S2:w2:(i=e.match(E2))&&(n=v2);let s=m0.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?C2:r.dot?N2:M2,n=new Set(r.nocase?["i"]:[]),s=e.map(l=>{let u=l.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))n.add(h);return typeof f=="string"?U2(f):f===F.GLOBSTAR?F.GLOBSTAR:f._src});return u.forEach((f,h)=>{let g=u[h+1],y=u[h-1];f!==F.GLOBSTAR||y===F.GLOBSTAR||(y===void 0?g!==void 0&&g!==F.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+g:u[h]=i:g===void 0?u[h-1]=y+"(?:\\/|"+i+")?":g!==F.GLOBSTAR&&(u[h-1]=y+"(?:\\/|\\/"+i+"\\/)"+g,u[h+1]=F.GLOBSTAR))}),u.filter(f=>f!==F.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 F.minimatch.defaults(e).Minimatch}};F.Minimatch=Lr;var W2=Tf();Object.defineProperty(F,"AST",{enumerable:!0,get:function(){return W2.AST}});var G2=Af();Object.defineProperty(F,"escape",{enumerable:!0,get:function(){return G2.escape}});var z2=Go();Object.defineProperty(F,"unescape",{enumerable:!0,get:function(){return z2.unescape}});F.minimatch.AST=m0.AST;F.minimatch.Minimatch=Lr;F.minimatch.escape=c2.escape;F.minimatch.unescape=h2.unescape});var A0=b(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.LRUCache=void 0;var Si=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,E0=new Set,xf=typeof process=="object"&&process?process:{},v0=(t,e,r,i)=>{typeof xf.emitWarning=="function"?xf.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},Zo=globalThis.AbortController,S0=globalThis.AbortSignal;if(typeof Zo>"u"){S0=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},Zo=class{constructor(){e()}signal=new S0;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=xf.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,v0("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 $2=t=>!E0.has(t),ir=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),T0=t=>ir(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Ei:null:null,Ei=class extends Array{constructor(e){super(e),this.fill(0)}},Rf=class t{heap;length;static#e=!1;static create(e){let r=T0(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]}},Of=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;#m;#_;#g;#d;#E;#p;#T;#A;#y;#v;#b;#h;static unsafeExposeInternals(e){return{starts:e.#A,ttls:e.#y,sizes:e.#T,keyMap:e.#l,keyList:e.#a,valList:e.#s,next:e.#m,prev:e.#_,get head(){return e.#g},get tail(){return e.#d},free:e.#E,isBackgroundFetch:r=>e.#f(r),backgroundFetch:(r,i,n,s)=>e.#q(r,i,n,s),moveToTail:r=>e.#j(r),indexes:r=>e.#O(r),rindexes:r=>e.#D(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:h,noUpdateTTL:g,maxSize:y=0,maxEntrySize:E=0,sizeCalculation:m,fetchMethod:v,memoMethod:S,noDeleteOnFetchRejection:R,noDeleteOnStaleGet:L,allowStaleOnFetchRejection:D,allowStaleOnFetchAbort:q,ignoreFetchAbort:Z}=e;if(r!==0&&!ir(r))throw new TypeError("max option must be a nonnegative integer");let P=r?T0(r):Array;if(!P)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=y,this.maxEntrySize=E||this.#r,this.sizeCalculation=m,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(S!==void 0&&typeof S!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#S=S,v!==void 0&&typeof v!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=v,this.#b=!!v,this.#l=new Map,this.#a=new Array(r).fill(void 0),this.#s=new Array(r).fill(void 0),this.#m=new P(r),this.#_=new P(r),this.#g=0,this.#d=0,this.#E=Rf.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=!!h,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!R,this.allowStaleOnFetchRejection=!!D,this.allowStaleOnFetchAbort=!!q,this.ignoreFetchAbort=!!Z,this.maxEntrySize!==0){if(this.#r!==0&&!ir(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!ir(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#I()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!L,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=ir(n)||n===0?n:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!ir(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#x()}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 B="LRU_CACHE_UNBOUNDED";$2(B)&&(E0.add(B),v0("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",B,t))}}getRemainingTTL(e){return this.#l.has(e)?1/0:0}#x(){let e=new Ei(this.#e),r=new Ei(this.#e);this.#y=e,this.#A=r,this.#L=(s,o,a=Si.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.#R=s=>{r[s]=e[s]!==0?Si.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=Si.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}}#R=()=>{};#i=()=>{};#L=()=>{};#w=()=>!1;#I(){let e=new Ei(this.#e);this.#c=0,this.#T=e,this.#C=r=>{this.#c-=e[r],e[r]=0},this.#M=(r,i,n,s)=>{if(this.#f(i))return 0;if(!ir(n))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(n=s(i,r),!ir(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.#N=(r,i,n)=>{if(e[r]=i,this.#r){let s=this.#r-e[r];for(;this.#c>s;)this.#F(!0)}this.#c+=e[r],n&&(n.entrySize=i,n.totalCalculatedSize=this.#c)}}#C=e=>{};#N=(e,r,i)=>{};#M=(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.#k(r)||((e||!this.#w(r))&&(yield r),r===this.#g));)r=this.#_[r]}*#D({allowStale:e=this.allowStale}={}){if(this.#u)for(let r=this.#g;!(!this.#k(r)||((e||!this.#w(r))&&(yield r),r===this.#d));)r=this.#m[r]}#k(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.#D())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.#D()){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.#D())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.#D()){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.#D({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.#y&&this.#A){let o=this.#y[r],a=this.#A[r];if(o&&a){let l=o-(Si.now()-a);s.ttl=l,s.start=Date.now()}}return this.#T&&(s.size=this.#T[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.#y&&this.#A){o.ttl=this.#y[r];let a=Si.now()-this.#A[r];o.start=Math.floor(Date.now()-a)}this.#T&&(o.size=this.#T[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=Si.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.#M(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 h=this.#u===0?void 0:this.#l.get(e);if(h===void 0)h=this.#u===0?this.#d:this.#E.length!==0?this.#E.pop():this.#u===this.#e?this.#F(!1):this.#u,this.#a[h]=e,this.#s[h]=r,this.#l.set(e,h),this.#m[this.#d]=h,this.#_[h]=this.#d,this.#d=h,this.#u++,this.#N(h,f,l),l&&(l.set="add"),u=!1;else{this.#j(h);let g=this.#s[h];if(r!==g){if(this.#b&&this.#f(g)){g.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:y}=g;y!==void 0&&!o&&(this.#v&&this.#n?.(y,e,"set"),this.#h&&this.#p?.push([y,e,"set"]))}else o||(this.#v&&this.#n?.(g,e,"set"),this.#h&&this.#p?.push([g,e,"set"]));if(this.#C(h),this.#N(h,f,l),this.#s[h]=r,l){l.set="replace";let y=g&&this.#f(g)?g.__staleWhileFetching:g;y!==void 0&&(l.oldValue=y)}}else l&&(l.set="update")}if(n!==0&&!this.#y&&this.#x(),this.#y&&(u||this.#L(h,n,s),l&&this.#i(l,h)),!o&&this.#h&&this.#p){let g=this.#p,y;for(;y=g?.shift();)this.#t?.(...y)}return this}pop(){try{for(;this.#u;){let e=this.#s[this.#g];if(this.#F(!0),this.#f(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#h&&this.#p){let e=this.#p,r;for(;r=e?.shift();)this.#t?.(...r)}}}#F(e){let r=this.#g,i=this.#a[r],n=this.#s[r];return this.#b&&this.#f(n)?n.__abortController.abort(new Error("evicted")):(this.#v||this.#h)&&(this.#v&&this.#n?.(n,i,"evict"),this.#h&&this.#p?.push([n,i,"evict"])),this.#C(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.#m[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.#R(s),n&&(n.has="hit",this.#i(n,s)),!0}else n&&(n.has="miss");return!1}peek(e,r={}){let{allowStale:i=this.allowStale}=r,n=this.#l.get(e);if(n===void 0||!i&&this.#w(n))return;let s=this.#s[n];return this.#f(s)?s.__staleWhileFetching:s}#q(e,r,i,n){let s=r===void 0?void 0:this.#s[r];if(this.#f(s))return s;let o=new Zo,{signal:a}=i;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:i,context:n},u=(m,v=!1)=>{let{aborted:S}=o.signal,R=i.ignoreFetchAbort&&m!==void 0;if(i.status&&(S&&!v?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,R&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),S&&!R&&!v)return h(o.signal.reason);let L=y;return this.#s[r]===y&&(m===void 0?L.__staleWhileFetching?this.#s[r]=L.__staleWhileFetching:this.#P(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,m,l.options))),m},f=m=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=m),h(m)),h=m=>{let{aborted:v}=o.signal,S=v&&i.allowStaleOnFetchAbort,R=S||i.allowStaleOnFetchRejection,L=R||i.noDeleteOnFetchRejection,D=y;if(this.#s[r]===y&&(!L||D.__staleWhileFetching===void 0?this.#P(e,"fetch"):S||(this.#s[r]=D.__staleWhileFetching)),R)return i.status&&D.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),D.__staleWhileFetching;if(D.__returned===D)throw m},g=(m,v)=>{let S=this.#o?.(e,s,l);S&&S instanceof Promise&&S.then(R=>m(R===void 0?void 0:R),v),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(m(void 0),i.allowStaleOnFetchAbort&&(m=R=>u(R,!0)))})};i.status&&(i.status.fetchDispatched=!0);let y=new Promise(g).then(u,f),E=Object.assign(y,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(e,E,{...l.options,status:void 0}),r=this.#l.get(e)):this.#s[r]=E,E}#f(e){if(!this.#b)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof Zo}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:h=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:g=this.allowStaleOnFetchRejection,ignoreFetchAbort:y=this.ignoreFetchAbort,allowStaleOnFetchAbort:E=this.allowStaleOnFetchAbort,context:m,forceRefresh:v=!1,status:S,signal:R}=r;if(!this.#b)return S&&(S.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:S});let L={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:u,noUpdateTTL:f,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:g,allowStaleOnFetchAbort:E,ignoreFetchAbort:y,status:S,signal:R},D=this.#l.get(e);if(D===void 0){S&&(S.fetch="miss");let q=this.#q(e,D,L,m);return q.__returned=q}else{let q=this.#s[D];if(this.#f(q)){let M=i&&q.__staleWhileFetching!==void 0;return S&&(S.fetch="inflight",M&&(S.returnedStale=!0)),M?q.__staleWhileFetching:q.__returned=q}let Z=this.#w(D);if(!v&&!Z)return S&&(S.fetch="hit"),this.#j(D),n&&this.#R(D),S&&this.#i(S,D),q;let P=this.#q(e,D,L,m),x=P.__staleWhileFetching!==void 0&&i;return S&&(S.fetch=Z?"stale":"refresh",x&&Z&&(S.returnedStale=!0)),x?P.__staleWhileFetching:P.__returned=P}}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.#j(a),n&&this.#R(a),l))}else o&&(o.get="miss")}#B(e,r){this.#_[r]=e,this.#m[e]=r}#j(e){e!==this.#d&&(e===this.#g?this.#g=this.#m[e]:this.#B(this.#_[e],this.#m[e]),this.#B(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.#C(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.#_[n];else if(n===this.#g)this.#g=this.#m[n];else{let o=this.#_[n];this.#m[o]=this.#m[n];let a=this.#m[n];this.#_[a]=this.#_[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.#D({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.#y&&this.#A&&(this.#y.fill(0),this.#A.fill(0)),this.#T&&this.#T.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)}}};Qo.LRUCache=Of});var kf=b(Ye=>{"use strict";var H2=Ye&&Ye.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.Minipass=Ye.isWritable=Ye.isReadable=Ye.isStream=void 0;var x0=typeof process=="object"&&process?process:{stdout:null,stderr:null},Mf=W("node:events"),I0=H2(W("node:stream")),V2=W("node:string_decoder"),Y2=t=>!!t&&typeof t=="object"&&(t instanceof na||t instanceof I0.default||(0,Ye.isReadable)(t)||(0,Ye.isWritable)(t));Ye.isStream=Y2;var K2=t=>!!t&&typeof t=="object"&&t instanceof Mf.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==I0.default.Writable.prototype.pipe;Ye.isReadable=K2;var Z2=t=>!!t&&typeof t=="object"&&t instanceof Mf.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";Ye.isWritable=Z2;var Wt=Symbol("EOF"),Gt=Symbol("maybeEmitEnd"),nr=Symbol("emittedEnd"),Xo=Symbol("emittingEnd"),Ln=Symbol("emittedError"),Jo=Symbol("closed"),R0=Symbol("read"),ea=Symbol("flush"),O0=Symbol("flushChunk"),yt=Symbol("encoding"),vi=Symbol("decoder"),Le=Symbol("flowing"),Cn=Symbol("paused"),Ti=Symbol("resume"),Ce=Symbol("buffer"),Ve=Symbol("pipes"),Ne=Symbol("bufferLength"),Df=Symbol("bufferPush"),ta=Symbol("bufferShift"),ze=Symbol("objectMode"),xe=Symbol("destroyed"),If=Symbol("error"),Pf=Symbol("emitData"),D0=Symbol("emitEnd"),Lf=Symbol("emitEnd2"),xt=Symbol("async"),Cf=Symbol("abort"),ra=Symbol("aborted"),Nn=Symbol("signal"),Cr=Symbol("dataListeners"),Je=Symbol("discarded"),Mn=t=>Promise.resolve().then(t),Q2=t=>t(),X2=t=>t==="end"||t==="finish"||t==="prefinish",J2=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,eF=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),ia=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()}},Nf=class extends ia{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)}},tF=t=>!!t.objectMode,rF=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",na=class extends Mf.EventEmitter{[Le]=!1;[Cn]=!1;[Ve]=[];[Ce]=[];[ze];[yt];[xt];[vi];[Wt]=!1;[nr]=!1;[Xo]=!1;[Jo]=!1;[Ln]=null;[Ne]=0;[xe]=!1;[Nn];[ra]=!1;[Cr]=0;[Je]=!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");tF(r)?(this[ze]=!0,this[yt]=null):rF(r)?(this[yt]=r.encoding,this[ze]=!1):(this[ze]=!1,this[yt]=null),this[xt]=!!r.async,this[vi]=this[yt]?new V2.StringDecoder(this[yt]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Ce]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Ve]});let{signal:i}=r;i&&(this[Nn]=i,i.aborted?this[Cf]():i.addEventListener("abort",()=>this[Cf]()))}get bufferLength(){return this[Ne]}get encoding(){return this[yt]}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[ze]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[xt]}set async(e){this[xt]=this[xt]||!!e}[Cf](){this[ra]=!0,this.emit("abort",this[Nn]?.reason),this.destroy(this[Nn]?.reason)}get aborted(){return this[ra]}set aborted(e){}write(e,r,i){if(this[ra])return!1;if(this[Wt])throw new Error("write after end");if(this[xe])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[xt]?Mn:Q2;if(!this[ze]&&!Buffer.isBuffer(e)){if(eF(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(J2(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[ze]?(this[Le]&&this[Ne]!==0&&this[ea](!0),this[Le]?this.emit("data",e):this[Df](e),this[Ne]!==0&&this.emit("readable"),i&&n(i),this[Le]):e.length?(typeof e=="string"&&!(r===this[yt]&&!this[vi]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[yt]&&(e=this[vi].write(e)),this[Le]&&this[Ne]!==0&&this[ea](!0),this[Le]?this.emit("data",e):this[Df](e),this[Ne]!==0&&this.emit("readable"),i&&n(i),this[Le]):(this[Ne]!==0&&this.emit("readable"),i&&n(i),this[Le])}read(e){if(this[xe])return null;if(this[Je]=!1,this[Ne]===0||e===0||e&&e>this[Ne])return this[Gt](),null;this[ze]&&(e=null),this[Ce].length>1&&!this[ze]&&(this[Ce]=[this[yt]?this[Ce].join(""):Buffer.concat(this[Ce],this[Ne])]);let r=this[R0](e||null,this[Ce][0]);return this[Gt](),r}[R0](e,r){if(this[ze])this[ta]();else{let i=r;e===i.length||e===null?this[ta]():typeof i=="string"?(this[Ce][0]=i.slice(e),r=i.slice(0,e),this[Ne]-=e):(this[Ce][0]=i.subarray(e),r=i.subarray(0,e),this[Ne]-=e)}return this.emit("data",r),!this[Ce].length&&!this[Wt]&&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[Wt]=!0,this.writable=!1,(this[Le]||!this[Cn])&&this[Gt](),this}[Ti](){this[xe]||(!this[Cr]&&!this[Ve].length&&(this[Je]=!0),this[Cn]=!1,this[Le]=!0,this.emit("resume"),this[Ce].length?this[ea]():this[Wt]?this[Gt]():this.emit("drain"))}resume(){return this[Ti]()}pause(){this[Le]=!1,this[Cn]=!0,this[Je]=!1}get destroyed(){return this[xe]}get flowing(){return this[Le]}get paused(){return this[Cn]}[Df](e){this[ze]?this[Ne]+=1:this[Ne]+=e.length,this[Ce].push(e)}[ta](){return this[ze]?this[Ne]-=1:this[Ne]-=this[Ce][0].length,this[Ce].shift()}[ea](e=!1){do;while(this[O0](this[ta]())&&this[Ce].length);!e&&!this[Ce].length&&!this[Wt]&&this.emit("drain")}[O0](e){return this.emit("data",e),this[Le]}pipe(e,r){if(this[xe])return e;this[Je]=!1;let i=this[nr];return r=r||{},e===x0.stdout||e===x0.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Ve].push(r.proxyErrors?new Nf(this,e,r):new ia(this,e,r)),this[xt]?Mn(()=>this[Ti]()):this[Ti]()),e}unpipe(e){let r=this[Ve].find(i=>i.dest===e);r&&(this[Ve].length===1?(this[Le]&&this[Cr]===0&&(this[Le]=!1),this[Ve]=[]):this[Ve].splice(this[Ve].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[Je]=!1,this[Cr]++,!this[Ve].length&&!this[Le]&&this[Ti]();else if(e==="readable"&&this[Ne]!==0)super.emit("readable");else if(X2(e)&&this[nr])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[Ln]){let n=r;this[xt]?Mn(()=>n.call(this,this[Ln])):n.call(this,this[Ln])}return i}removeListener(e,r){return this.off(e,r)}off(e,r){let i=super.off(e,r);return e==="data"&&(this[Cr]=this.listeners("data").length,this[Cr]===0&&!this[Je]&&!this[Ve].length&&(this[Le]=!1)),i}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[Cr]=0,!this[Je]&&!this[Ve].length&&(this[Le]=!1)),r}get emittedEnd(){return this[nr]}[Gt](){!this[Xo]&&!this[nr]&&!this[xe]&&this[Ce].length===0&&this[Wt]&&(this[Xo]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Jo]&&this.emit("close"),this[Xo]=!1)}emit(e,...r){let i=r[0];if(e!=="error"&&e!=="close"&&e!==xe&&this[xe])return!1;if(e==="data")return!this[ze]&&!i?!1:this[xt]?(Mn(()=>this[Pf](i)),!0):this[Pf](i);if(e==="end")return this[D0]();if(e==="close"){if(this[Jo]=!0,!this[nr]&&!this[xe])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Ln]=i,super.emit(If,i);let s=!this[Nn]||this.listeners("error").length?super.emit("error",i):!1;return this[Gt](),s}else if(e==="resume"){let s=super.emit("resume");return this[Gt](),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[Gt](),n}[Pf](e){for(let i of this[Ve])i.dest.write(e)===!1&&this.pause();let r=this[Je]?!1:super.emit("data",e);return this[Gt](),r}[D0](){return this[nr]?!1:(this[nr]=!0,this.readable=!1,this[xt]?(Mn(()=>this[Lf]()),!0):this[Lf]())}[Lf](){if(this[vi]){let r=this[vi].end();if(r){for(let i of this[Ve])i.dest.write(r);this[Je]||super.emit("data",r)}}for(let r of this[Ve])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[ze]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[ze]||(e.dataLength+=i.length)}),await r,e}async concat(){if(this[ze])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[yt]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,r)=>{this.on(xe,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[Je]=!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[Wt])return r();let s,o,a=h=>{this.off("data",l),this.off("end",u),this.off(xe,f),r(),o(h)},l=h=>{this.off("error",a),this.off("end",u),this.off(xe,f),this.pause(),s({value:h,done:!!this[Wt]})},u=()=>{this.off("error",a),this.off("data",l),this.off(xe,f),r(),s({done:!0,value:void 0})},f=()=>a(new Error("stream destroyed"));return new Promise((h,g)=>{o=g,s=h,this.once(xe,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[Je]=!1;let e=!1,r=()=>(this.pause(),this.off(If,r),this.off(xe,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(If,r),this.once(xe,r),{next:i,throw:r,return:r,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[xe])return e?this.emit("error",e):this.emit(xe),this;this[xe]=!0,this[Je]=!0,this[Ce].length=0,this[Ne]=0;let r=this;return typeof r.close=="function"&&!this[Jo]&&r.close(),e?this.emit("error",e):this.emit(xe),this}static get isStream(){return Ye.isStream}};Ye.Minipass=na});var $0=b(he=>{"use strict";var iF=he&&he.__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]})),nF=he&&he.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),sF=he&&he.__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)&&iF(e,t,r);return nF(e,t),e};Object.defineProperty(he,"__esModule",{value:!0});he.PathScurry=he.Path=he.PathScurryDarwin=he.PathScurryPosix=he.PathScurryWin32=he.PathScurryBase=he.PathPosix=he.PathWin32=he.PathBase=he.ChildrenCache=he.ResolveCache=void 0;var k0=A0(),ua=W("node:path"),oF=W("node:url"),Fn=W("fs"),aF=sF(W("node:fs")),lF=Fn.realpathSync.native,sa=W("node:fs/promises"),P0=kf(),qn={lstatSync:Fn.lstatSync,readdir:Fn.readdir,readdirSync:Fn.readdirSync,readlinkSync:Fn.readlinkSync,realpathSync:lF,promises:{lstat:sa.lstat,readdir:sa.readdir,readlink:sa.readlink,realpath:sa.realpath}},F0=t=>!t||t===qn||t===aF?qn:{...qn,...t,promises:{...qn.promises,...t.promises||{}}},q0=/^\\\\\?\\([a-z]:)\\?$/i,uF=t=>t.replace(/\//g,"\\").replace(q0,"$1\\"),fF=/[\\\/]/,ut=0,B0=1,j0=2,Rt=4,U0=6,W0=8,Nr=10,G0=12,lt=15,kn=~lt,Ff=16,L0=32,Bn=64,mt=128,oa=256,la=512,C0=Bn|mt|la,cF=1023,qf=t=>t.isFile()?W0:t.isDirectory()?Rt:t.isSymbolicLink()?Nr:t.isCharacterDevice()?j0:t.isBlockDevice()?U0:t.isSocket()?G0:t.isFIFO()?B0:ut,N0=new Map,jn=t=>{let e=N0.get(t);if(e)return e;let r=t.normalize("NFKD");return N0.set(t,r),r},M0=new Map,aa=t=>{let e=M0.get(t);if(e)return e;let r=jn(t.toLowerCase());return M0.set(t,r),r},Un=class extends k0.LRUCache{constructor(){super({max:256})}};he.ResolveCache=Un;var fa=class extends k0.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:r=>r.length+1})}};he.ChildrenCache=fa;var z0=Symbol("PathScurry setAsCwd"),Be=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}#m;get atimeMs(){return this.#m}#_;get mtimeMs(){return this.#_}#g;get ctimeMs(){return this.#g}#d;get birthtimeMs(){return this.#d}#E;get atime(){return this.#E}#p;get mtime(){return this.#p}#T;get ctime(){return this.#T}#A;get birthtime(){return this.#A}#y;#v;#b;#h;#x;#R;#i;#L;#w;#I;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,r=ut,i,n,s,o,a){this.name=e,this.#y=s?aa(e):jn(e),this.#i=r&cF,this.nocase=s,this.roots=n,this.root=i||this,this.#L=o,this.#b=a.fullpath,this.#x=a.relative,this.#R=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=F0(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).#C(n):this.#C(n)}#C(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?aa(e):jn(e);for(let l of i)if(l.#y===n)return l;let s=this.parent?this.sep:"",o=this.#b?this.#b+s+e:void 0,a=this.newChild(e,ut,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#i|=mt),i.push(a),a}relative(){if(this.isCWD)return"";if(this.#x!==void 0)return this.#x;let e=this.name,r=this.parent;if(!r)return this.#x=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.#R!==void 0)return this.#R;let e=this.name,r=this.parent;if(!r)return this.#R=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<)===ut}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<)===W0}isDirectory(){return(this.#i<)===Rt}isCharacterDevice(){return(this.#i<)===j0}isBlockDevice(){return(this.#i<)===U0}isFIFO(){return(this.#i<)===B0}isSocket(){return(this.#i<)===G0}isSymbolicLink(){return(this.#i&Nr)===Nr}lstatCached(){return this.#i&L0?this:void 0}readlinkCached(){return this.#w}realpathCached(){return this.#I}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<return!(e!==ut&&e!==Nr||this.#i&oa||this.#i&mt)}calledReaddir(){return!!(this.#i&Ff)}isENOENT(){return!!(this.#i&mt)}isNamed(e){return this.nocase?this.#y===aa(e):this.#y===jn(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}}#N(e){this.#i|=Ff;for(let r=e.provisional;r<e.length;r++){let i=e[r];i&&i.#M()}}#M(){this.#i&mt||(this.#i=(this.#i|mt)&kn,this.#O())}#O(){let e=this.children();e.provisional=0;for(let r of e)r.#M()}#D(){this.#i|=la,this.#k()}#k(){if(this.#i&Bn)return;let e=this.#i;(e<)===Rt&&(e&=kn),this.#i=e|Bn,this.#O()}#F(e=""){e==="ENOTDIR"||e==="EPERM"?this.#k():e==="ENOENT"?this.#M():this.children().provisional=0}#q(e=""){e==="ENOTDIR"?this.parent.#k():e==="ENOENT"&&this.#M()}#f(e=""){let r=this.#i;r|=oa,e==="ENOENT"&&(r|=mt),(e==="EINVAL"||e==="UNKNOWN")&&(r&=kn),this.#i=r,e==="ENOTDIR"&&this.parent&&this.parent.#k()}#B(e,r){return this.#P(e,r)||this.#j(e,r)}#j(e,r){let i=qf(e),n=this.newChild(e.name,i,{parent:this}),s=n.#i<return s!==Rt&&s!==Nr&&s!==ut&&(n.#i|=Bn),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?aa(e.name):jn(e.name))===n.#y)return this.#U(e,n,i,r)}}#U(e,r,i,n){let s=r.name;return r.#i=r.#i&kn|qf(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&mt)===0)try{return this.#$(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#q(e.code)}}lstatSync(){if((this.#i&mt)===0)try{return this.#$(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#q(e.code)}}#$(e){let{atime:r,atimeMs:i,birthtime:n,birthtimeMs:s,blksize:o,blocks:a,ctime:l,ctimeMs:u,dev:f,gid:h,ino:g,mode:y,mtime:E,mtimeMs:m,nlink:v,rdev:S,size:R,uid:L}=e;this.#E=r,this.#m=i,this.#A=n,this.#d=s,this.#c=o,this.#s=a,this.#T=l,this.#g=u,this.#r=f,this.#S=h,this.#l=g,this.#n=y,this.#p=E,this.#_=m,this.#t=v,this.#u=S,this.#a=R,this.#o=L;let D=qf(e);this.#i=this.#i&kn|D|L0,D!==ut&&D!==Rt&&D!==Nr&&(this.#i|=Bn)}#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.#F(s.code),i.provisional=0;else{for(let a of o)this.#B(a,i);this.#N(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.#B(n,e);this.#N(e)}catch(n){this.#F(n.code),e.provisional=0}this.#W=void 0,i()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();try{for(let i of this.#e.readdirSync(r,{withFileTypes:!0}))this.#B(i,e);this.#N(e)}catch(i){this.#F(i.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#i&C0)return!1;let e=lt&this.#i;return e===ut||e===Rt||e===Nr}shouldWalk(e,r){return(this.#i&Rt)===Rt&&!(this.#i&C0)&&!e.has(this)&&(!r||r(this))}async realpath(){if(this.#I)return this.#I;if(!((la|oa|mt)&this.#i))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#I=this.resolve(e)}catch{this.#D()}}realpathSync(){if(this.#I)return this.#I;if(!((la|oa|mt)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#I=this.resolve(e)}catch{this.#D()}}[z0](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.#x=i.join(this.sep),n.#R=i.join("/"),n=n.parent,i.push("..");for(n=e;n&&n.parent&&!r.has(n);)n.#x=void 0,n.#R=void 0,n=n.parent}};he.PathBase=Be;var Wn=class t extends Be{sep="\\";splitSep=fF;constructor(e,r=ut,i,n,s,o,a){super(e,r,i,n,s,o,a)}newChild(e,r=ut,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(e){return ua.win32.parse(e).root}getRoot(e){if(e=uF(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 $n(e,this).root}sameRoot(e,r=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(q0,"$1\\"),e===r}};he.PathWin32=Wn;var Gn=class t extends Be{splitSep="/";sep="/";constructor(e,r=ut,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=ut,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}};he.PathPosix=Gn;var zn=class{root;rootPath;roots;cwd;#e;#r;#n;nocase;#t;constructor(e=process.cwd(),r,i,{nocase:n,childrenCacheSize:s=16*1024,fs:o=qn}={}){this.#t=F0(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,oF.fileURLToPath)(e));let a=r.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new Un,this.#r=new Un,this.#n=new fa(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,h=r.sep,g=this.rootPath,y=!1;for(let E of l){let m=f--;u=u.child(E,{relative:new Array(m).fill("..").join(h),relativePosix:new Array(m).fill("..").join("/"),fullpath:g+=(y?"":h)+E}),y=!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 Be||(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 Be||(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 Be||(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 Be||(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 Be||(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 Be||(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 Be||(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=(h,g)=>{l.add(h),h.readdirCB((y,E)=>{if(y)return g(y);let m=E.length;if(!m)return g();let v=()=>{--m===0&&g()};for(let S of E)(!s||s(S))&&a.push(i?S:S.fullpath()),n&&S.isSymbolicLink()?S.realpath().then(R=>R?.isUnknown()?R.lstat():R).then(R=>R?.shouldWalk(l,o)?u(R,v):v()):S.shouldWalk(l,o)?u(S,v):v()},!0)},f=e;return new Promise((h,g)=>{u(f,y=>{if(y)return g(y);h(a)})})}walkSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Be||(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 h of f){(!s||s(h))&&a.push(i?h:h.fullpath());let g=h;if(h.isSymbolicLink()){if(!(n&&(g=h.realpathSync())))continue;g.isUnknown()&&g.lstatSync()}g.shouldWalk(l,o)&&l.add(g)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,r={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Be||(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 Be||(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 h=f;if(f.isSymbolicLink()){if(!(n&&(h=f.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(a,o)&&a.add(h)}}}stream(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Be||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new P0.Minipass({objectMode:!0});(!s||s(e))&&a.write(i?e:e.fullpath());let l=new Set,u=[e],f=0,h=()=>{let g=!1;for(;!g;){let y=u.shift();if(!y){f===0&&a.end();return}f++,l.add(y);let E=(v,S,R=!1)=>{if(v)return a.emit("error",v);if(n&&!R){let L=[];for(let D of S)D.isSymbolicLink()&&L.push(D.realpath().then(q=>q?.isUnknown()?q.lstat():q));if(L.length){Promise.all(L).then(()=>E(null,S,!0));return}}for(let L of S)L&&(!s||s(L))&&(a.write(i?L:L.fullpath())||(g=!0));f--;for(let L of S){let D=L.realpathCached()||L;D.shouldWalk(l,o)&&u.push(D)}g&&!a.flowing?a.once("drain",h):m||h()},m=!0;y.readdirCB(E,!0),m=!1}};return h(),a}streamSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Be||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new P0.Minipass({objectMode:!0}),l=new Set;(!s||s(e))&&a.write(i?e:e.fullpath());let u=[e],f=0,h=()=>{let g=!1;for(;!g;){let y=u.shift();if(!y){f===0&&a.end();return}f++,l.add(y);let E=y.readdirSync();for(let m of E)(!s||s(m))&&(a.write(i?m:m.fullpath())||(g=!0));f--;for(let m of E){let v=m;if(m.isSymbolicLink()){if(!(n&&(v=m.realpathSync())))continue;v.isUnknown()&&v.lstatSync()}v.shouldWalk(l,o)&&u.push(v)}}g&&!a.flowing&&a.once("drain",h)};return h(),a}chdir(e=this.cwd){let r=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[z0](r)}};he.PathScurryBase=zn;var $n=class extends zn{sep="\\";constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,ua.win32,"\\",{...r,nocase:i}),this.nocase=i;for(let n=this.cwd;n;n=n.parent)n.nocase=this.nocase}parseRootPath(e){return ua.win32.parse(e).root.toUpperCase()}newRoot(e){return new Wn(this.rootPath,Rt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};he.PathScurryWin32=$n;var Hn=class extends zn{sep="/";constructor(e=process.cwd(),r={}){let{nocase:i=!1}=r;super(e,ua.posix,"/",{...r,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new Gn(this.rootPath,Rt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};he.PathScurryPosix=Hn;var ca=class extends Hn{constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,{...r,nocase:i})}};he.PathScurryDarwin=ca;he.Path=process.platform==="win32"?Wn:Gn;he.PathScurry=process.platform==="win32"?$n:process.platform==="darwin"?ca:Hn});var jf=b(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.Pattern=void 0;var hF=rr(),dF=t=>t.length>=1,pF=t=>t.length>=1,Bf=class t{#e;#r;#n;length;#t;#o;#S;#u;#c;#l;#a=!0;constructor(e,r,i,n){if(!dF(e))throw new TypeError("empty pattern list");if(!pF(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,h,g,y,...E]=this.#r;u[0]===""&&(u.shift(),E.shift());let m=[s,o,a,l,""].join("/"),v=[f,h,g,y,""].join("/");this.#e=[m,...u],this.#r=[v,...E],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]===hF.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)}};ha.Pattern=Bf});var Wf=b(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.Ignore=void 0;var H0=rr(),gF=jf(),yF=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Uf=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:r,nocase:i,noext:n,noglobstar:s,platform:o=yF}){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 H0.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 gF.Pattern(n,s,0,this.platform),a=new H0.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}};da.Ignore=Uf});var Y0=b(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.Processor=Ot.SubWalks=Ot.MatchRecord=Ot.HasWalkedCache=void 0;var V0=rr(),pa=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()]))}};Ot.HasWalkedCache=pa;var ga=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)])}};Ot.MatchRecord=ga;var ya=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())}};Ot.SubWalks=ya;var Gf=class t{hasWalkedCache;matches=new ga;subwalks=new ya;patterns;follow;dot;opts;constructor(e,r){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=r?r.copy():new pa}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 h=s.rest();if(h)s=h;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 h=l===".."||l===""||l===".";this.matches.add(n.resolve(l),a,h);continue}else if(l===V0.GLOBSTAR){(!n.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(n,s);let h=u?.pattern(),g=u?.rest();if(!u||(h===""||h===".")&&!g)this.matches.add(n,a,h===""||h===".");else if(h===".."){let y=n.parent||n;g?this.hasWalkedCache.hasWalked(y,g)||this.subwalks.add(y,g):this.matches.add(y,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===V0.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))}};Ot.Processor=Gf});var Q0=b(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.GlobStream=sr.GlobWalker=sr.GlobUtil=void 0;var mF=kf(),K0=Wf(),Z0=Y0(),_F=(t,e)=>typeof t=="string"?new K0.Ignore([t],e):Array.isArray(t)?new K0.Ignore(t,e):t,Vn=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=_F(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 Z0.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 Z0.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()}};sr.GlobUtil=Vn;var zf=class extends Vn{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}};sr.GlobWalker=zf;var $f=class extends Vn{results;constructor(e,r,i){super(e,r,i),this.results=new mF.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}};sr.GlobStream=$f});var Vf=b(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.Glob=void 0;var bF=rr(),wF=W("node:url"),ma=$0(),SF=jf(),_a=Q0(),EF=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Hf=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,wF.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||EF,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"?ma.PathScurryWin32:r.platform==="darwin"?ma.PathScurryDarwin:r.platform?ma.PathScurryPosix:ma.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 bF.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 SF.Pattern(l,f,0,this.platform)})}async walk(){return[...await new _a.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 _a.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 _a.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 _a.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()}};ba.Glob=Hf});var Yf=b(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.hasMagic=void 0;var vF=rr(),TF=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let r of t)if(new vF.Minimatch(r,e).hasMagic())return!0;return!1};wa.hasMagic=TF});var tS=b(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.glob=J.sync=J.iterate=J.iterateSync=J.stream=J.streamSync=J.Ignore=J.hasMagic=J.Glob=J.unescape=J.escape=void 0;J.globStreamSync=Yn;J.globStream=Kf;J.globSync=Zf;J.globIterateSync=Kn;J.globIterate=Qf;var X0=rr(),Mr=Vf(),AF=Yf(),eS=rr();Object.defineProperty(J,"escape",{enumerable:!0,get:function(){return eS.escape}});Object.defineProperty(J,"unescape",{enumerable:!0,get:function(){return eS.unescape}});var xF=Vf();Object.defineProperty(J,"Glob",{enumerable:!0,get:function(){return xF.Glob}});var RF=Yf();Object.defineProperty(J,"hasMagic",{enumerable:!0,get:function(){return RF.hasMagic}});var OF=Wf();Object.defineProperty(J,"Ignore",{enumerable:!0,get:function(){return OF.Ignore}});function Yn(t,e={}){return new Mr.Glob(t,e).streamSync()}function Kf(t,e={}){return new Mr.Glob(t,e).stream()}function Zf(t,e={}){return new Mr.Glob(t,e).walkSync()}async function J0(t,e={}){return new Mr.Glob(t,e).walk()}function Kn(t,e={}){return new Mr.Glob(t,e).iterateSync()}function Qf(t,e={}){return new Mr.Glob(t,e).iterate()}J.streamSync=Yn;J.stream=Object.assign(Kf,{sync:Yn});J.iterateSync=Kn;J.iterate=Object.assign(Qf,{sync:Kn});J.sync=Object.assign(Zf,{stream:Yn,iterate:Kn});J.glob=Object.assign(J0,{glob:J0,globSync:Zf,sync:J.sync,globStream:Kf,stream:J.stream,globStreamSync:Yn,streamSync:J.streamSync,globIterate:Qf,iterate:J.iterate,globIterateSync:Kn,iterateSync:J.iterateSync,Glob:Mr.Glob,hasMagic:AF.hasMagic,escape:X0.escape,unescape:X0.unescape});J.glob.glob=J.glob});var sS=b((e8,nS)=>{var iS=bl(),Ai=W("path"),Xf=Ob(),DF=Gw(),IF=e0(),PF=a0(),LF=tS(),kr=nS.exports={},rS=/[\/\\]/g,CF=function(t,e){var r=[];return Xf(t).forEach(function(i){var n=i.indexOf("!")===0;n&&(i=i.slice(1));var s=e(i);n?r=DF(r,s):r=IF(r,s)}),r};kr.exists=function(){var t=Ai.join.apply(Ai,arguments);return iS.existsSync(t)};kr.expand=function(...t){var e=PF(t[0])?t.shift():{},r=Array.isArray(t[0])?t[0]:t;if(r.length===0)return[];var i=CF(r,function(n){return LF.sync(n,e)});return e.filter&&(i=i.filter(function(n){n=Ai.join(e.cwd||"",n);try{return typeof e.filter=="function"?e.filter(n):iS.statSync(n)[e.filter]()}catch{return!1}})),i};kr.expandMapping=function(t,e,r){r=Object.assign({rename:function(s,o){return Ai.join(s||"",o)}},r);var i=[],n={};return kr.expand(r,t).forEach(function(s){var o=s;r.flatten&&(o=Ai.basename(o)),r.ext&&(o=o.replace(/(\.[^\/]*)?$/,r.ext));var a=r.rename(e,o,r);r.cwd&&(s=Ai.join(r.cwd,s)),a=a.replace(rS,"/"),s=s.replace(rS,"/"),n[a]?n[a].src.push(s):(i.push({src:[s],dest:a}),n[a]=i[i.length-1])}),i};kr.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=Xf(r.src):r.src=[r.src])}).map(function(r){var i=Object.assign({},r);if(delete i.src,delete i.dest,r.expand)return kr.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)?Xf(o):[o],s.result=kr.expand(i,o)),s.result}}),"dest"in n&&(n.dest=r.dest),n}).flatten().value(),e)}});var xi=b((r8,lS)=>{var Jf=bl(),oS=W("path"),NF=js(),MF=Np(),aS=Gl(),kF=py(),t8=W("stream").Stream,FF=Pr().PassThrough,et=lS.exports={};et.file=sS();et.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)})};et.dateify=function(t){return t=t||new Date,t instanceof Date?t=t:typeof t=="string"?t=new Date(t):t=new Date,t};et.defaults=function(t,e,r){var i=arguments;return i[0]=i[0]||{},kF(...i)};et.isStream=function(t){return NF(t)};et.lazyReadStream=function(t){return new MF.Readable(function(){return Jf.createReadStream(t)})};et.normalizeInputSource=function(t){return t===null?Buffer.alloc(0):typeof t=="string"?Buffer.from(t):et.isStream(t)?t.pipe(new FF):t};et.sanitizePath=function(t){return aS(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};et.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};et.unixifyPath=function(t){return aS(t,!1).replace(/^\w+:/,"")};et.walkdir=function(t,e,r){var i=[];typeof e=="function"&&(r=e,e=t),Jf.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=oS.join(t,a),Jf.stat(l,function(f,h){i.push({path:l,relative:oS.relative(e,l).replace(/\\/g,"/"),stats:h}),h&&h.isDirectory()?et.walkdir(l,e,function(g,y){if(g)return r(g);y.forEach(function(E){i.push(E)}),u()}):u()})})()})}});var hS=b((fS,cS)=>{var qF=W("util"),BF={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 uS(t,e){Error.captureStackTrace(this,this.constructor),this.message=BF[t]||t,this.code=t,this.data=e}qF.inherits(uS,Error);fS=cS.exports=uS});var mS=b((i8,yS)=>{var rc=W("fs"),pS=Td(),dS=xd(),ec=W("path"),Dt=xi(),jF=W("util").inherits,Ae=hS(),gS=Pr().Transform,tc=process.platform==="win32",le=function(t,e){if(!(this instanceof le))return new le(t,e);typeof t!="string"&&(e=t,t="zip"),e=this.options=Dt.defaults(e,{highWaterMark:1024*1024,statConcurrency:4}),gS.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=dS.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=dS.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=[]};jF(le,gS);le.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};le.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 rc.Stats?(r=this._updateQueueTaskWithStats(r,e.stats),r&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(r))):this._statQueue.push(r)};le.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)};le.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};le.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))};le.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"))};le.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};le.prototype._moduleSupports=function(t){return!this._module.supports||!this._module.supports[t]?!1:this._module.supports[t]};le.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};le.prototype._normalizeEntryData=function(t,e){t=Dt.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=Dt.sanitizePath(t.name),t.type!=="symlink"&&t.name.slice(-1)==="/"?(r=!0,t.type="directory"):r&&(t.name+="/")),typeof t.mode=="number"?tc?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(tc?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,tc&&r&&(t.mode=493)):t.mode===null&&(t.mode=r?493:420),t.stats&&t.date===null?t.date=t.stats.mtime:t.date=Dt.dateify(t.date),t};le.prototype._onModuleError=function(t){this.emit("error",t)};le.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()};le.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)};le.prototype._onStatQueueTask=function(t,e){if(this._state.finalizing||this._state.finalized||this._state.aborted){e();return}rc.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))};le.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};le.prototype._transform=function(t,e,r){t&&(this._pointer+=t.length),r(null,t)};le.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=Dt.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=Dt.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=Dt.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else if(e.isSymbolicLink()&&this._moduleSupports("symlink")){var r=rc.readlinkSync(t.filepath),i=ec.dirname(t.filepath);t.data.type="symlink",t.data.linkname=ec.relative(i,ec.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};le.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};le.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=Dt.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else if(Dt.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};le.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,h=Object.assign({},r);h.name=u.relative,h.prefix=e,h.stats=u.stat,h.callback=l.resume.bind(l);try{if(i){if(h=i(h),h===!1)f=!0;else if(typeof h!="object")throw new Ae("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}}catch(g){this.emit("error",g);return}if(f){l.resume();return}this._append(u.absolute,h)}var l=pS(t,n);return l.on("error",o.bind(this)),l.on("match",a.bind(this)),l.on("end",s.bind(this)),this};le.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)};le.prototype.glob=function(t,e,r){this._pending++,e=Dt.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=pS(e.cwd||".",e);return o.on("error",n.bind(this)),o.on("match",s.bind(this)),o.on("end",i.bind(this)),this};le.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)})})};le.prototype.setFormat=function(t){return this._format?(this.emit("error",new Ae("FORMATSET")),this):(this._format=t,this)};le.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)};le.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};le.prototype.pointer=function(){return this._pointer};le.prototype.use=function(t){return this._streams.push(t),this};yS.exports=le});var Ea=b((n8,_S)=>{var Sa=_S.exports=function(){};Sa.prototype.getName=function(){};Sa.prototype.getSize=function(){};Sa.prototype.getLastModifiedDate=function(){};Sa.prototype.isDirectory=function(){}});var va=b((s8,bS)=>{var ft=bS.exports={};ft.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};ft.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)};ft.fromDosTime=function(t){return ft.dosToDate(t.readUInt32LE(0))};ft.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e};ft.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((t&65535)>>>0,0),e};ft.getShortBytesValue=function(t,e){return t.readUInt16LE(e)};ft.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((t&4294967295)>>>0,0),e};ft.getLongBytesValue=function(t,e){return t.readUInt32LE(e)};ft.toDosTime=function(t){return ft.getLongBytes(ft.dateToDos(t))}});var ic=b((o8,AS)=>{var wS=va(),SS=8,ES=1,UF=4,WF=2,vS=64,TS=2048,je=AS.exports=function(){return this instanceof je?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new je};je.prototype.encode=function(){return wS.getShortBytes((this.descriptor?SS:0)|(this.utf8?TS:0)|(this.encryption?ES:0)|(this.strongEncryption?vS:0))};je.prototype.parse=function(t,e){var r=wS.getShortBytesValue(t,e),i=new je;return i.useDataDescriptor((r&SS)!==0),i.useUTF8ForNames((r&TS)!==0),i.useStrongEncryption((r&vS)!==0),i.useEncryption((r&ES)!==0),i.setSlidingDictionarySize((r&WF)!==0?8192:4096),i.setNumberOfShannonFanoTrees((r&UF)!==0?3:2),i};je.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t};je.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};je.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t};je.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};je.prototype.useDataDescriptor=function(t){this.descriptor=t};je.prototype.usesDataDescriptor=function(){return this.descriptor};je.prototype.useEncryption=function(t){this.encryption=t};je.prototype.usesEncryption=function(){return this.encryption};je.prototype.useStrongEncryption=function(t){this.strongEncryption=t};je.prototype.usesStrongEncryption=function(){return this.strongEncryption};je.prototype.useUTF8ForNames=function(t){this.utf8=t};je.prototype.usesUTF8ForNames=function(){return this.utf8}});var RS=b((a8,xS)=>{xS.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 nc=b((l8,OS)=>{OS.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 sc=b((u8,CS)=>{var GF=W("util").inherits,zF=Gl(),IS=Ea(),PS=ic(),DS=RS(),Ke=nc(),LS=va(),K=CS.exports=function(t){if(!(this instanceof K))return new K(t);IS.call(this),this.platform=Ke.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new PS,this.crc=0,this.time=-1,this.minver=Ke.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};GF(K,IS);K.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};K.prototype.getComment=function(){return this.comment!==null?this.comment:""};K.prototype.getCompressedSize=function(){return this.csize};K.prototype.getCrc=function(){return this.crc};K.prototype.getExternalAttributes=function(){return this.exattr};K.prototype.getExtra=function(){return this.extra!==null?this.extra:Ke.EMPTY};K.prototype.getGeneralPurposeBit=function(){return this.gpb};K.prototype.getInternalAttributes=function(){return this.inattr};K.prototype.getLastModifiedDate=function(){return this.getTime()};K.prototype.getLocalFileDataExtra=function(){return this.getExtra()};K.prototype.getMethod=function(){return this.method};K.prototype.getName=function(){return this.name};K.prototype.getPlatform=function(){return this.platform};K.prototype.getSize=function(){return this.size};K.prototype.getTime=function(){return this.time!==-1?LS.dosToDate(this.time):-1};K.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};K.prototype.getUnixMode=function(){return this.platform!==Ke.PLATFORM_UNIX?0:this.getExternalAttributes()>>Ke.SHORT_SHIFT&Ke.SHORT_MASK};K.prototype.getVersionNeededToExtract=function(){return this.minver};K.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t};K.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t};K.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t};K.prototype.setExternalAttributes=function(t){this.exattr=t>>>0};K.prototype.setExtra=function(t){this.extra=t};K.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof PS))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t};K.prototype.setInternalAttributes=function(t){this.inattr=t};K.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t};K.prototype.setName=function(t,e=!1){t=zF(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t};K.prototype.setPlatform=function(t){this.platform=t};K.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t};K.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=LS.dateToDos(t,e)};K.prototype.setUnixMode=function(t){t|=this.isDirectory()?Ke.S_IFDIR:Ke.S_IFREG;var e=0;e|=t<<Ke.SHORT_SHIFT|(this.isDirectory()?Ke.S_DOS_D:Ke.S_DOS_A),this.setExternalAttributes(e),this.mode=t&Ke.MODE_MASK,this.platform=Ke.PLATFORM_UNIX};K.prototype.setVersionNeededToExtract=function(t){this.minver=t};K.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};K.prototype.isUnixSymlink=function(){return(this.getUnixMode()&DS.FILE_TYPE_FLAG)===DS.LINK_FLAG};K.prototype.isZip64=function(){return this.csize>Ke.ZIP64_MAGIC||this.size>Ke.ZIP64_MAGIC}});var oc=b((c8,NS)=>{var f8=W("stream").Stream,$F=Pr().PassThrough,HF=js(),VF=NS.exports={};VF.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(HF(t)&&!t._readableState){var e=new $F;return t.pipe(e),e}return t}});var lc=b((h8,MS)=>{var YF=W("util").inherits,KF=js(),ac=Pr().Transform,ZF=Ea(),QF=oc(),tt=MS.exports=function(t){if(!(this instanceof tt))return new tt(t);ac.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};YF(tt,ac);tt.prototype._appendBuffer=function(t,e,r){};tt.prototype._appendStream=function(t,e,r){};tt.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)};tt.prototype._finish=function(t){};tt.prototype._normalizeEntry=function(t){};tt.prototype._transform=function(t,e,r){r(null,t)};tt.prototype.entry=function(t,e,r){if(e=e||null,typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),!(t instanceof ZF)){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=QF.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,r);else if(KF(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};tt.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};tt.prototype.getBytesWritten=function(){return this.offset};tt.prototype.write=function(t,e){return t&&(this.offset+=t.length),ac.prototype.write.call(this,t,e)}});var Ta=b(uc=>{var kS;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof uc=="object"?t(uc):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t(kS={}):t(kS={})})(function(t){t.version="1.2.2";function e(){for(var P=0,B=new Array(256),x=0;x!=256;++x)P=x,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,B[x]=P;return typeof Int32Array<"u"?new Int32Array(B):B}var r=e();function i(P){var B=0,x=0,M=0,k=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(M=0;M!=256;++M)k[M]=P[M];for(M=0;M!=256;++M)for(x=P[M],B=256+M;B<4096;B+=256)x=k[B]=x>>>8^P[x&255];var H=[];for(M=1;M!=16;++M)H[M-1]=typeof Int32Array<"u"?k.subarray(M*256,M*256+256):k.slice(M*256,M*256+256);return H}var n=i(r),s=n[0],o=n[1],a=n[2],l=n[3],u=n[4],f=n[5],h=n[6],g=n[7],y=n[8],E=n[9],m=n[10],v=n[11],S=n[12],R=n[13],L=n[14];function D(P,B){for(var x=B^-1,M=0,k=P.length;M<k;)x=x>>>8^r[(x^P.charCodeAt(M++))&255];return~x}function q(P,B){for(var x=B^-1,M=P.length-15,k=0;k<M;)x=L[P[k++]^x&255]^R[P[k++]^x>>8&255]^S[P[k++]^x>>16&255]^v[P[k++]^x>>>24]^m[P[k++]]^E[P[k++]]^y[P[k++]]^g[P[k++]]^h[P[k++]]^f[P[k++]]^u[P[k++]]^l[P[k++]]^a[P[k++]]^o[P[k++]]^s[P[k++]]^r[P[k++]];for(M+=15;k<M;)x=x>>>8^r[(x^P[k++])&255];return~x}function Z(P,B){for(var x=B^-1,M=0,k=P.length,H=0,ee=0;M<k;)H=P.charCodeAt(M++),H<128?x=x>>>8^r[(x^H)&255]:H<2048?(x=x>>>8^r[(x^(192|H>>6&31))&255],x=x>>>8^r[(x^(128|H&63))&255]):H>=55296&&H<57344?(H=(H&1023)+64,ee=P.charCodeAt(M++)&1023,x=x>>>8^r[(x^(240|H>>8&7))&255],x=x>>>8^r[(x^(128|H>>2&63))&255],x=x>>>8^r[(x^(128|ee>>6&15|(H&3)<<4))&255],x=x>>>8^r[(x^(128|ee&63))&255]):(x=x>>>8^r[(x^(224|H>>12&15))&255],x=x>>>8^r[(x^(128|H>>6&63))&255],x=x>>>8^r[(x^(128|H&63))&255]);return~x}t.table=r,t.bstr=D,t.buf=q,t.str=Z})});var qS=b((p8,FS)=>{"use strict";var{Transform:XF}=Pr(),JF=Ta(),fc=class extends XF{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,r,i){e&&(this.checksum=JF.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}};FS.exports=fc});var jS=b((g8,BS)=>{"use strict";var{DeflateRaw:eq}=W("zlib"),tq=Ta(),cc=class extends eq{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=tq.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=cc});var hc=b((y8,US)=>{"use strict";US.exports={CRC32Stream:qS(),DeflateCRC32Stream:jS()}});var zS=b((w8,GS)=>{var rq=W("util").inherits,iq=Ta(),{CRC32Stream:nq}=hc(),{DeflateCRC32Stream:sq}=hc(),WS=lc(),m8=sc(),_8=ic(),V=nc(),b8=oc(),$=va(),Me=GS.exports=function(t){if(!(this instanceof Me))return new Me(t);t=this.options=this._defaults(t),WS.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}};rq(Me,WS);Me.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()};Me.prototype._appendBuffer=function(t,e,r){e.length===0&&t.setMethod(V.METHOD_STORED);var i=t.getMethod();if(i===V.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(iq.buf(e)>>>0)),this._writeLocalFileHeader(t),i===V.METHOD_STORED){this.write(e),this._afterAppend(t),r(null,t);return}else if(i===V.METHOD_DEFLATED){this._smartStream(t,r).end(e);return}else{r(new Error("compression method "+i+" not implemented"));return}};Me.prototype._appendStream=function(t,e,r){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(V.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)};Me.prototype._defaults=function(t){return typeof t!="object"&&(t={}),typeof t.zlib!="object"&&(t.zlib={}),typeof t.zlib.level!="number"&&(t.zlib.level=V.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t};Me.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()};Me.prototype._normalizeEntry=function(t){t.getMethod()===-1&&t.setMethod(V.METHOD_DEFLATED),t.getMethod()===V.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(V.MIN_VERSION_DATA_DESCRIPTOR)),t.getTime()===-1&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}};Me.prototype._smartStream=function(t,e){var r=t.getMethod()===V.METHOD_DEFLATED,i=r?new sq(this.options.zlib):new nq,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};Me.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(t=V.ZIP64_MAGIC_SHORT,e=V.ZIP64_MAGIC,r=V.ZIP64_MAGIC),this.write($.getLongBytes(V.SIG_EOCD)),this.write(V.SHORT_ZERO),this.write(V.SHORT_ZERO),this.write($.getShortBytes(t)),this.write($.getShortBytes(t)),this.write($.getLongBytes(e)),this.write($.getLongBytes(r));var i=this.getComment(),n=Buffer.byteLength(i);this.write($.getShortBytes(n)),this.write(i)};Me.prototype._writeCentralDirectoryZip64=function(){this.write($.getLongBytes(V.SIG_ZIP64_EOCD)),this.write($.getEightBytes(44)),this.write($.getShortBytes(V.MIN_VERSION_ZIP64)),this.write($.getShortBytes(V.MIN_VERSION_ZIP64)),this.write(V.LONG_ZERO),this.write(V.LONG_ZERO),this.write($.getEightBytes(this._entries.length)),this.write($.getEightBytes(this._entries.length)),this.write($.getEightBytes(this._archive.centralLength)),this.write($.getEightBytes(this._archive.centralOffset)),this.write($.getLongBytes(V.SIG_ZIP64_EOCD_LOC)),this.write(V.LONG_ZERO),this.write($.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write($.getLongBytes(1))};Me.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>V.ZIP64_MAGIC){n=V.ZIP64_MAGIC,s=V.ZIP64_MAGIC,i=V.ZIP64_MAGIC,t.setVersionNeededToExtract(V.MIN_VERSION_ZIP64);var o=Buffer.concat([$.getShortBytes(V.ZIP64_EXTRA_ID),$.getShortBytes(24),$.getEightBytes(t.getSize()),$.getEightBytes(t.getCompressedSize()),$.getEightBytes(t._offsets.file)],28);t.setExtra(o)}this.write($.getLongBytes(V.SIG_CFH)),this.write($.getShortBytes(t.getPlatform()<<8|V.VERSION_MADEBY)),this.write($.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write($.getShortBytes(r)),this.write($.getLongBytes(t.getTimeDos())),this.write($.getLongBytes(t.getCrc())),this.write($.getLongBytes(s)),this.write($.getLongBytes(n));var a=t.getName(),l=t.getComment(),u=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(a=Buffer.from(a),l=Buffer.from(l)),this.write($.getShortBytes(a.length)),this.write($.getShortBytes(u.length)),this.write($.getShortBytes(l.length)),this.write(V.SHORT_ZERO),this.write($.getShortBytes(t.getInternalAttributes())),this.write($.getLongBytes(t.getExternalAttributes())),this.write($.getLongBytes(i)),this.write(a),this.write(u),this.write(l)};Me.prototype._writeDataDescriptor=function(t){this.write($.getLongBytes(V.SIG_DD)),this.write($.getLongBytes(t.getCrc())),t.isZip64()?(this.write($.getEightBytes(t.getCompressedSize())),this.write($.getEightBytes(t.getSize()))):(this.write($.getLongBytes(t.getCompressedSize())),this.write($.getLongBytes(t.getSize())))};Me.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),i=t.getName(),n=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(V.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(i=Buffer.from(i)),t._offsets.file=this.offset,this.write($.getLongBytes(V.SIG_LFH)),this.write($.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write($.getShortBytes(r)),this.write($.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(V.LONG_ZERO),this.write(V.LONG_ZERO),this.write(V.LONG_ZERO)):(this.write($.getLongBytes(t.getCrc())),this.write($.getLongBytes(t.getCompressedSize())),this.write($.getLongBytes(t.getSize()))),this.write($.getShortBytes(i.length)),this.write($.getShortBytes(n.length)),this.write(i),this.write(n),t._offsets.contents=this.offset};Me.prototype.getComment=function(t){return this._archive.comment!==null?this._archive.comment:""};Me.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>V.ZIP64_MAGIC_SHORT||this._archive.centralLength>V.ZIP64_MAGIC||this._archive.centralOffset>V.ZIP64_MAGIC};Me.prototype.setComment=function(t){this._archive.comment=t}});var dc=b((S8,$S)=>{$S.exports={ArchiveEntry:Ea(),ZipArchiveEntry:sc(),ArchiveOutputStream:lc(),ZipArchiveOutputStream:zS()}});var VS=b((E8,HS)=>{var oq=W("util").inherits,gc=dc().ZipArchiveOutputStream,aq=dc().ZipArchiveEntry,pc=xi(),Ri=HS.exports=function(t){if(!(this instanceof Ri))return new Ri(t);t=this.options=t||{},t.zlib=t.zlib||{},gc.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)};oq(Ri,gc);Ri.prototype._normalizeFileData=function(t){t=pc.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=pc.sanitizePath(t.name),!r&&t.name.slice(-1)==="/"?(e=!0,t.type="directory"):e&&(t.name+="/")),(e||r)&&(t.store=!0),t.date=pc.dateify(t.date),t};Ri.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)),gc.prototype.entry.call(this,i,t,r)};Ri.prototype.finalize=function(){this.finish()}});var KS=b((v8,YS)=>{var lq=VS(),uq=xi(),or=function(t){if(!(this instanceof or))return new or(t);t=this.options=uq.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new lq(t)};or.prototype.append=function(t,e,r){this.engine.entry(t,e,r)};or.prototype.finalize=function(){this.engine.finalize()};or.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};or.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};or.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};YS.exports=or});var QS=b((T8,ZS)=>{ZS.exports=W("events")});var JS=b((x8,XS)=>{XS.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 yc=b((O8,tE)=>{var eE=JS();tE.exports=class{constructor(e){this.hwm=e||16,this.head=new eE(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 eE(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 Oi=b((D8,rE)=>{function fq(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function cq(t){return Buffer.isEncoding(t)}function hq(t,e,r){return Buffer.alloc(t,e,r)}function dq(t){return Buffer.allocUnsafe(t)}function pq(t){return Buffer.allocUnsafeSlow(t)}function gq(t,e){return Buffer.byteLength(t,e)}function yq(t,e){return Buffer.compare(t,e)}function mq(t,e){return Buffer.concat(t,e)}function _q(t,e,r,i,n){return pe(t).copy(e,r,i,n)}function bq(t,e){return pe(t).equals(e)}function wq(t,e,r,i,n){return pe(t).fill(e,r,i,n)}function Sq(t,e,r){return Buffer.from(t,e,r)}function Eq(t,e,r,i){return pe(t).includes(e,r,i)}function vq(t,e,r,i){return pe(t).indexOf(e,r,i)}function Tq(t,e,r,i){return pe(t).lastIndexOf(e,r,i)}function Aq(t){return pe(t).swap16()}function xq(t){return pe(t).swap32()}function Rq(t){return pe(t).swap64()}function pe(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function Oq(t,e,r,i){return pe(t).toString(e,r,i)}function Dq(t,e,r,i,n){return pe(t).write(e,r,i,n)}function Iq(t,e){return pe(t).readDoubleBE(e)}function Pq(t,e){return pe(t).readDoubleLE(e)}function Lq(t,e){return pe(t).readFloatBE(e)}function Cq(t,e){return pe(t).readFloatLE(e)}function Nq(t,e){return pe(t).readInt32BE(e)}function Mq(t,e){return pe(t).readInt32LE(e)}function kq(t,e){return pe(t).readUInt32BE(e)}function Fq(t,e){return pe(t).readUInt32LE(e)}function qq(t,e,r){return pe(t).writeDoubleBE(e,r)}function Bq(t,e,r){return pe(t).writeDoubleLE(e,r)}function jq(t,e,r){return pe(t).writeFloatBE(e,r)}function Uq(t,e,r){return pe(t).writeFloatLE(e,r)}function Wq(t,e,r){return pe(t).writeInt32BE(e,r)}function Gq(t,e,r){return pe(t).writeInt32LE(e,r)}function zq(t,e,r){return pe(t).writeUInt32BE(e,r)}function $q(t,e,r){return pe(t).writeUInt32LE(e,r)}rE.exports={isBuffer:fq,isEncoding:cq,alloc:hq,allocUnsafe:dq,allocUnsafeSlow:pq,byteLength:gq,compare:yq,concat:mq,copy:_q,equals:bq,fill:wq,from:Sq,includes:Eq,indexOf:vq,lastIndexOf:Tq,swap16:Aq,swap32:xq,swap64:Rq,toBuffer:pe,toString:Oq,write:Dq,readDoubleBE:Iq,readDoubleLE:Pq,readFloatBE:Lq,readFloatLE:Cq,readInt32BE:Nq,readInt32LE:Mq,readUInt32BE:kq,readUInt32LE:Fq,writeDoubleBE:qq,writeDoubleLE:Bq,writeFloatBE:jq,writeFloatLE:Uq,writeInt32BE:Wq,writeInt32LE:Gq,writeUInt32BE:zq,writeUInt32LE:$q}});var nE=b((P8,iE)=>{var Hq=Oi();iE.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return Hq.toString(e,this.encoding)}flush(){return""}}});var lE=b((C8,aE)=>{var sE=Oi();aE.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(e){if(e.byteLength===0)return"";if(this.bytesNeeded===0&&oE(e,0)===0)return this.bytesSeen=Vq(e),sE.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=oE(e,i),s=e.byteLength-n;s>i&&(r+=sE.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 oE(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 Vq(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 fE=b((M8,uE)=>{var Yq=nE(),Kq=lE();uE.exports=class{constructor(e="utf8"){switch(this.encoding=Zq(e),this.encoding){case"utf8":this.decoder=new Kq;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new Yq(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 Zq(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 hE=b((k8,cE)=>{cE.exports=class It extends Error{constructor(e,r,i=It){super(e),this.code=r,Error.captureStackTrace&&Error.captureStackTrace(this,i)}static isStreamDestroyed(e){return e&&e.code==="STREAM_DESTROYED"}static isPrematureClose(e){return e&&e.code==="PREMATURE_CLOSE"}static isAborted(e){return e&&e.code==="ABORTED"}static isBadArgument(e){return e&&e.code==="BAD_ARGUMENT"}get name(){return"StreamError"}static STREAM_DESTROYED(){return new It("Stream was destroyed","STREAM_DESTROYED",It.STREAM_DESTROYED)}static PREMATURE_CLOSE(e="Premature close"){return new It(e,"PREMATURE_CLOSE",It.PREMATURE_CLOSE)}static ABORTED(){return new It("Stream aborted","ABORTED",It.ABORTED)}static BAD_ARGUMENT(e="Bad argument"){return new It(e,"BAD_ARGUMENT",It.BAD_ARGUMENT)}}});var Lc=b((F8,CE)=>{var{EventEmitter:Qq}=QS(),mE=yc(),Xq=fE(),ct=hE(),mc=typeof queueMicrotask>"u"?t=>global.process.nextTick(t):queueMicrotask,Te=(1<<29)-1,Pt=1,Tc=2,zt=4,Zn=8,_E=Te^Pt,Jq=Te^Tc,ts=16,Di=32,Li=64,lr=128,rs=256,Ac=512,ur=1024,_c=2048,xc=4096,Rc=8192,_t=16384,ar=32768,Pa=65536,Fr=131072,bE=rs|Ac,eB=ts|Pa,tB=Li|ts,rB=xc|lr,Oc=rs|Fr,iB=Te^ts,nB=Te^Li,sB=Te^(Li|Pa),dE=Te^Pa,oB=Te^rs,aB=Te^(lr|Rc),lB=Te^ur,pE=Te^bE,wE=Te^ar,uB=Te^Di,SE=Te^Fr,fB=Te^Oc,$t=1<<18,Pi=2<<18,is=4<<18,qr=8<<18,ns=16<<18,cr=32<<18,bc=64<<18,Ii=128<<18,Dc=256<<18,fr=512<<18,La=1024<<18,cB=Te^($t|Dc),EE=Te^is,hB=Te^($t|fr),dB=Te^ns,pB=Te^qr,vE=Te^Ii,gB=Te^Pi,TE=Te^La,Qn=ts|$t,AE=Te^Qn,Ic=_t|cr,Lt=zt|Zn|Tc,rt=Lt|Pt,xE=Lt|Ic,yB=EE&nB,Ca=Ii|ar,mB=Ca&AE,RE=rt|mB,_B=rt|ur|_t,gE=rt|_t|lr,bB=rt|ur|lr,wB=rt|xc|lr|Rc,SB=rt|ts|ur|_t|Pa|Fr,EB=Lt|ur|_t,vB=Di|rt|ar|Li,TB=ar|Pt,AB=rt|fr|cr,xB=qr|ns,OE=qr|$t,RB=qr|ns|rt|$t,yE=rt|$t|qr|La,OB=is|$t,DB=$t|Dc,IB=rt|fr|OE|cr,PB=ns|Lt|fr|cr,LB=Pi|rt|Ii|is,CB=fr|cr|Lt,Aa=Symbol.asyncIterator||Symbol("asyncIterator"),xa=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapWritable:n,byteLength:s,byteLengthWritable:o}={}){this.stream=e,this.queue=new mE,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||s||LE,this.map=n||i,this.afterWrite=kB.bind(this),this.afterUpdateNextTick=BB.bind(this)}get ending(){return(this.stream._duplexState&fr)!==0}get ended(){return(this.stream._duplexState&cr)!==0}push(e){return(this.stream._duplexState&CB)!==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|=qr,!0):(this.stream._duplexState|=xB,!1))}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=pB),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|fr)&EE}autoBatch(e,r){let i=[],n=this.stream;for(i.push(e);(n._duplexState&yE)===OE;)i.push(n._writableState.shift());if((n._duplexState&rt)!==0)return r(null);n._writev(i,r)}update(){let e=this.stream;e._duplexState|=Pi;do{for(;(e._duplexState&yE)===qr;){let r=this.shift();e._duplexState|=DB,e._write(r,this.afterWrite)}(e._duplexState&OB)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=gB}updateNonPrimary(){let e=this.stream;if((e._duplexState&IB)===fr){e._duplexState=e._duplexState|$t,e._final(MB.bind(this));return}if((e._duplexState&Lt)===zt){(e._duplexState&Ca)===0&&(e._duplexState|=Qn,e._destroy(DE.bind(this)));return}(e._duplexState&RE)===Pt&&(e._duplexState=(e._duplexState|Qn)&_E,e._open(IE.bind(this)))}continueUpdate(){return(this.stream._duplexState&Ii)===0?!1:(this.stream._duplexState&=vE,!0)}updateCallback(){(this.stream._duplexState&LB)===is?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&Ii)===0&&(this.stream._duplexState|=Ii,(this.stream._duplexState&Pi)===0&&mc(this.afterUpdateNextTick))}},wc=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapReadable:n,byteLength:s,byteLengthReadable:o}={}){this.stream=e,this.queue=new mE,this.highWaterMark=r===0?1:r,this.buffered=0,this.readAhead=r>0,this.error=null,this.pipeline=null,this.byteLength=o||s||LE,this.map=n||i,this.pipeTo=null,this.afterRead=FB.bind(this),this.afterUpdateNextTick=qB.bind(this)}get ending(){return(this.stream._duplexState&ur)!==0}get ended(){return(this.stream._duplexState&_t)!==0}pipe(e,r){if(this.pipeTo!==null)throw ct.BAD_ARGUMENT("Can only pipe to one destination");if(typeof r!="function"&&(r=null),this.stream._duplexState|=Ac,this.pipeTo=e,this.pipeline=new Ec(this.stream,e,r),r&&this.stream.on("error",vc),es(e))e._writableState.pipeline=this.pipeline,r&&e.on("error",vc),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",NB.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|ur)&sB,!1):this.map!==null&&(e=this.map(e),e===null)?(r._duplexState&=dE,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(e),this.queue.push(e),r._duplexState=(r._duplexState|lr)&dE,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=aB),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&gE)===lr){let r=this.shift();return this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=pE),(e._duplexState&_c)!==0&&e.emit("data",r),r}return this.readAhead===!1&&(e._duplexState|=Fr,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&gE)===lr&&(e._duplexState&bE)!==0;){let r=this.shift();this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=pE),(e._duplexState&_c)!==0&&e.emit("data",r)}}update(){let e=this.stream;e._duplexState|=Di;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&SB)===Fr;)e._duplexState|=eB,e._read(this.afterRead),this.drain();(e._duplexState&wB)===rB&&(e._duplexState|=Rc,e.emit("readable")),(e._duplexState&tB)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=uB}updateNonPrimary(){let e=this.stream;if((e._duplexState&bB)===ur&&(e._duplexState=(e._duplexState|_t)&lB,e.emit("end"),(e._duplexState&xE)===Ic&&(e._duplexState|=zt),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&Lt)===zt){(e._duplexState&Ca)===0&&(e._duplexState|=Qn,e._destroy(DE.bind(this)));return}(e._duplexState&RE)===Pt&&(e._duplexState=(e._duplexState|Qn)&_E,e._open(IE.bind(this)))}continueUpdate(){return(this.stream._duplexState&ar)===0?!1:(this.stream._duplexState&=wE,!0)}updateCallback(){(this.stream._duplexState&vB)===Li?this.update():this.updateNextTick()}updateNextTickIfOpen(){(this.stream._duplexState&TB)===0&&(this.stream._duplexState|=ar,(this.stream._duplexState&Di)===0&&mc(this.afterUpdateNextTick))}updateNextTick(){(this.stream._duplexState&ar)===0&&(this.stream._duplexState|=ar,(this.stream._duplexState&Di)===0&&mc(this.afterUpdateNextTick))}},Sc=class{constructor(e){this.data=null,this.afterTransform=UB.bind(e),this.afterFinal=null}},Ec=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&_t)===0||!this.pipeToFinished)&&this.from.destroy(this.error||ct.PREMATURE_CLOSE("Writable stream closed"));return}if(e===this.from&&(this.from=null,this.to!==null)){(e._duplexState&_t)===0&&this.to.destroy(this.error||ct.PREMATURE_CLOSE("Readable stream closed"));return}this.afterPipe!==null&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null}};function NB(){this.stream._duplexState|=Ac,this.updateCallback()}function MB(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&Lt)===0&&(e._duplexState|=cr,e.emit("finish")),(e._duplexState&xE)===Ic&&(e._duplexState|=zt),e._duplexState&=hB,(e._duplexState&Pi)===0?this.update():this.updateNextTick()}function DE(t){let e=this.stream;!t&&!ct.isStreamDestroyed(this.error)&&(t=this.error),t&&e.emit("error",t),e._duplexState|=Zn,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 kB(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=cB,this.drains!==null&&jB(this.drains),(e._duplexState&RB)===ns&&(e._duplexState&=dB,(e._duplexState&bc)===bc&&e.emit("drain")),this.updateCallback()}function FB(t){t&&this.stream.destroy(t),this.stream._duplexState&=iB,this.readAhead===!1&&(this.stream._duplexState&rs)===0&&(this.stream._duplexState&=SE),this.updateCallback()}function qB(){(this.stream._duplexState&Di)===0&&(this.stream._duplexState&=wE,this.update())}function BB(){(this.stream._duplexState&Pi)===0&&(this.stream._duplexState&=vE,this.update())}function jB(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}function IE(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&zt)===0&&((e._duplexState&_B)===0&&(e._duplexState|=Li),(e._duplexState&AB)===0&&(e._duplexState|=is),e.emit("open")),e._duplexState&=AE,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}function UB(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}function WB(t){this._readableState!==null&&(t==="data"&&(this._duplexState|=_c|Oc,this._readableState.updateNextTick()),t==="readable"&&(this._duplexState|=xc,this._readableState.updateNextTick())),this._writableState!==null&&t==="drain"&&(this._duplexState|=bc,this._writableState.updateNextTick())}var Xn=class extends Qq{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",ej.bind(this))),this.on("newListener",WB)}_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&Zn)!==0}get destroying(){return(this._duplexState&Lt)!==0}destroy(e){(this._duplexState&Lt)===0&&(e||(e=ct.STREAM_DESTROYED()),this._duplexState=(this._duplexState|zt)&yB,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=e),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=Tc,this._predestroy(),this._duplexState&=Jq,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}},Ra=class t extends Xn{constructor(e){super(e),this._duplexState|=Pt|cr|Fr,this._readableState=new wc(this,e),e&&(this._readableState.readAhead===!1&&(this._duplexState&=SE),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick(),e.encoding&&this.setEncoding(e.encoding))}static deferred(e,r){let i=new Ia(r);return e().then(n=>{if(n===null)return i.end();i.destroying||Pc(n,i,vc)}).catch(n=>i.destroy(n)),i}setEncoding(e){let r=new Xq(e),i=this._readableState.map||$B;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|=Oc,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?fB:oB,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(QB(e))return e;if(e[Aa])return this._fromAsyncIterator(e[Aa](),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&EB)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&rs)===0}[Aa](){let e=this,r=null,i=null,n=null;return this.on("error",u=>{r=u}),this.on("readable",s),this.on("close",o),{[Aa](){return this},next(){return new Promise(function(u,f){i=u,n=f;let h=e.read();h!==null?a(h):(e._duplexState&Zn)!==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&_t)===0?n(ct.STREAM_DESTROYED()):i({value:u,done:u===null}),n=i=null)}function l(u){return e.destroy(u),new Promise((f,h)=>{if(e._duplexState&Zn)return f({value:void 0,done:!0});e.once("close",function(){u?h(u):f({value:void 0,done:!0})})})}}},Oa=class extends Xn{constructor(e){super(e),this._duplexState|=Pt|_t,this._writableState=new xa(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|=La}uncork(){this._duplexState&=TE,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&PB)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let r=e._writableState,n=(tj(e)?Math.min(1,r.queue.length):r.queue.length)+(e._duplexState&Dc?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}},Jn=class extends Ra{constructor(e){super(e),this._duplexState=Pt|this._duplexState&Fr,this._writableState=new xa(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=La}uncork(){this._duplexState&=TE,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}},Da=class extends Jn{constructor(e){super(e),this._transformState=new Sc(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(GB.bind(this))}},Ia=class extends Da{};function GB(t,e){let r=this._transformState.afterFinal;if(t)return r(t);e!=null&&this.push(e),this.push(null),r(null)}function zB(...t){return new Promise((e,r)=>Pc(...t,i=>{if(i)return r(i);e()}))}function Pc(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 ct.BAD_ARGUMENT("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],es(n)?n.pipe(s,l):(a(n,!0,u>1,l),n.pipe(s)),n=s;if(i){let u=!1,f=es(s)||!!(s._writableState&&s._writableState.autoDestroy);s.on("error",h=>{o===null&&(o=h)}),s.on("finish",()=>{u=!0,f||i(o)}),f&&s.on("close",()=>i(o||(u?null:ct.PREMATURE_CLOSE())))}return s;function a(u,f,h,g){u.on("error",g),u.on("close",y);function y(){if(f&&u._readableState&&!u._readableState.ended||h&&u._writableState&&!u._writableState.ended)return g(ct.PREMATURE_CLOSE())}}function l(u){if(!(!u||o)){o=u;for(let f of r)f.destroy(u)}}}function $B(t){return t}function PE(t){return!!t._readableState||!!t._writableState}function es(t){return typeof t._duplexState=="number"&&PE(t)}function HB(t){return!!t._readableState&&t._readableState.ending}function VB(t){return!!t._readableState&&t._readableState.ended}function YB(t){return!!t._writableState&&t._writableState.ending}function KB(t){return!!t._writableState&&t._writableState.ended}function ZB(t,e={}){let r=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return!e.all&&ct.isStreamDestroyed(r)?null:r}function QB(t){return es(t)&&t.readable}function XB(t){return(t._duplexState&Pt)!==Pt||(t._duplexState&zt)===zt||(t._duplexState&Ca)!==0}function JB(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}function LE(t){return JB(t)?t.byteLength:1024}function vc(){}function ej(){this.destroy(ct.ABORTED())}function tj(t){return t._writev!==Oa.prototype._writev&&t._writev!==Jn.prototype._writev}CE.exports={pipeline:Pc,pipelinePromise:zB,isStream:PE,isStreamx:es,isEnding:HB,isEnded:VB,isFinishing:YB,isFinished:KB,isDisturbed:XB,getStreamError:ZB,Stream:Xn,Writable:Oa,Readable:Ra,Duplex:Jn,Transform:Da,PassThrough:Ia}});var Mc=b(Ni=>{var ne=Oi(),rj="0000000000000000000",ij="7777777777777777777",Na=48,NE=ne.from([117,115,116,97,114,0]),nj=ne.from([Na,Na]),sj=ne.from([117,115,116,97,114,32]),oj=ne.from([32,0]),aj=4095,ss=257,Nc=263;Ni.decodeLongPath=function(e,r){return Ci(e,0,e.length,r)};Ni.encodePax=function(e){let r="";e.name&&(r+=Cc(" path="+e.name+`
|
|
11
|
+
`+c);let[,w]=p;return w.replace(/\s/g,"").split(_v).map(T=>T.replace(bv,"").trim())}function Zc(d,c){var p={};return Object.keys(d).forEach(w=>{var T=d[w],A,O=y(T),I=!O&&T.length===1||O&&T.length===0;if(Array.isArray(T))A=[...T],T=A.pop(),p[w]=A.concat(A.length>0?C:T);else if(I)p[w]=T;else{if(A=Sv(T),T.length===0&&!O&&A.length===0)throw new Error("autoInject task functions require explicit parameters.");O||A.pop(),p[w]=A.concat(C)}function C(U,te){var oe=A.map(re=>U[re]);oe.push(te),v(T)(...oe)}}),Fa(p,c)}class Ev{constructor(){this.head=this.tail=null,this.length=0}removeLink(c){return c.prev?c.prev.next=c.next:this.head=c.next,c.next?c.next.prev=c.prev:this.tail=c.prev,c.prev=c.next=null,this.length-=1,c}empty(){for(;this.head;)this.shift();return this}insertAfter(c,p){p.prev=c,p.next=c.next,c.next?c.next.prev=p:this.tail=p,c.next=p,this.length+=1}insertBefore(c,p){p.prev=c.prev,p.next=c,c.prev?c.prev.next=p:this.head=p,c.prev=p,this.length+=1}unshift(c){this.head?this.insertBefore(this.head,c):Qc(this,c)}push(c){this.tail?this.insertAfter(this.tail,c):Qc(this,c)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var c=this.head;c;)yield c.data,c=c.next}remove(c){for(var p=this.head;p;){var{next:w}=p;c(p)&&this.removeLink(p),p=w}return this}}function Qc(d,c){d.length=1,d.head=d.tail=c}function qa(d,c,p){if(c==null)c=1;else if(c===0)throw new RangeError("Concurrency must not be zero");var w=v(d),T=0,A=[];let O={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function I(G,j){O[G].push(j)}function C(G,j){let z=(...ie)=>{U(G,z),j(...ie)};O[G].push(z)}function U(G,j){if(!G)return Object.keys(O).forEach(z=>O[z]=[]);if(!j)return O[G]=[];O[G]=O[G].filter(z=>z!==j)}function te(G,...j){O[G].forEach(z=>z(...j))}var oe=!1;function re(G,j,z,ie){if(ie!=null&&typeof ie!="function")throw new Error("task callback must be a function");ae.started=!0;var we,Pe;function nt(mr,...Gi){if(mr)return z?Pe(mr):we();if(Gi.length<=1)return we(Gi[0]);we(Gi)}var $r=ae._createTaskItem(G,z?nt:ie||nt);if(j?ae._tasks.unshift($r):ae._tasks.push($r),oe||(oe=!0,u(()=>{oe=!1,ae.process()})),z||!ie)return new Promise((mr,Gi)=>{we=mr,Pe=Gi})}function it(G){return function(j,...z){T-=1;for(var ie=0,we=G.length;ie<we;ie++){var Pe=G[ie],nt=A.indexOf(Pe);nt===0?A.shift():nt>0&&A.splice(nt,1),Pe.callback(j,...z),j!=null&&te("error",j,Pe.data)}T<=ae.concurrency-ae.buffer&&te("unsaturated"),ae.idle()&&te("drain"),ae.process()}}function zr(G){return G.length===0&&ae.idle()?(u(()=>te("drain")),!0):!1}let yr=G=>j=>{if(!j)return new Promise((z,ie)=>{C(G,(we,Pe)=>{if(we)return ie(we);z(Pe)})});U(G),I(G,j)};var Wi=!1,ae={_tasks:new Ev,_createTaskItem(G,j){return{data:G,callback:j}},*[Symbol.iterator](){yield*ae._tasks[Symbol.iterator]()},concurrency:c,payload:p,buffer:c/4,started:!1,paused:!1,push(G,j){return Array.isArray(G)?zr(G)?void 0:G.map(z=>re(z,!1,!1,j)):re(G,!1,!1,j)},pushAsync(G,j){return Array.isArray(G)?zr(G)?void 0:G.map(z=>re(z,!1,!0,j)):re(G,!1,!0,j)},kill(){U(),ae._tasks.empty()},unshift(G,j){return Array.isArray(G)?zr(G)?void 0:G.map(z=>re(z,!0,!1,j)):re(G,!0,!1,j)},unshiftAsync(G,j){return Array.isArray(G)?zr(G)?void 0:G.map(z=>re(z,!0,!0,j)):re(G,!0,!0,j)},remove(G){ae._tasks.remove(G)},process(){if(!Wi){for(Wi=!0;!ae.paused&&T<ae.concurrency&&ae._tasks.length;){var G=[],j=[],z=ae._tasks.length;ae.payload&&(z=Math.min(z,ae.payload));for(var ie=0;ie<z;ie++){var we=ae._tasks.shift();G.push(we),A.push(we),j.push(we.data)}T+=1,ae._tasks.length===0&&te("empty"),T===ae.concurrency&&te("saturated");var Pe=H(it(G));w(j,Pe)}Wi=!1}},length(){return ae._tasks.length},running(){return T},workersList(){return A},idle(){return ae._tasks.length+T===0},pause(){ae.paused=!0},resume(){ae.paused!==!1&&(ae.paused=!1,u(ae.process))}};return Object.defineProperties(ae,{saturated:{writable:!1,value:yr("saturated")},unsaturated:{writable:!1,value:yr("unsaturated")},empty:{writable:!1,value:yr("empty")},drain:{writable:!1,value:yr("drain")},error:{writable:!1,value:yr("error")}}),ae}function Xc(d,c){return qa(d,1,c)}function Jc(d,c,p){return qa(d,c,p)}function vv(d,c,p,w){w=Z(w);var T=v(p);return ht(d,(A,O,I)=>{T(c,A,(C,U)=>{c=U,I(C)})},A=>w(A,c))}var Vt=S(vv,4);function Ba(...d){var c=d.map(v);return function(...p){var w=this,T=p[p.length-1];return typeof T=="function"?p.pop():T=Wr(),Vt(c,p,(A,O,I)=>{O.apply(w,A.concat((C,...U)=>{I(C,U)}))},(A,O)=>T(A,...O)),T[Ur]}}function eh(...d){return Ba(...d.reverse())}function Tv(d,c,p,w){return L(se(c),d,p,w)}var Fi=S(Tv,4);function Av(d,c,p,w){var T=v(p);return Fi(d,c,(A,O)=>{T(A,(I,...C)=>I?O(I):O(I,C))},(A,O)=>{for(var I=[],C=0;C<O.length;C++)O[C]&&(I=I.concat(...O[C]));return w(A,I)})}var Gr=S(Av,4);function xv(d,c,p){return Gr(d,1/0,c,p)}var ls=S(xv,3);function Rv(d,c,p){return Gr(d,1,c,p)}var us=S(Rv,3);function th(...d){return function(...c){var p=c.pop();return p(null,...d)}}function Nt(d,c){return(p,w,T,A)=>{var O=!1,I;let C=v(T);p(w,(U,te,oe)=>{C(U,(re,it)=>{if(re||re===!1)return oe(re);if(d(it)&&!I)return O=!0,I=c(!0,U),oe(null,q);oe()})},U=>{if(U)return A(U);A(null,O?I:c(!1))})}}function Ov(d,c,p){return Nt(w=>w,(w,T)=>T)(Ze,d,c,p)}var fs=S(Ov,3);function Dv(d,c,p,w){return Nt(T=>T,(T,A)=>A)(se(c),d,p,w)}var cs=S(Dv,4);function Iv(d,c,p){return Nt(w=>w,(w,T)=>T)(se(1),d,c,p)}var hs=S(Iv,3);function rh(d){return(c,...p)=>v(c)(...p,(w,...T)=>{typeof console=="object"&&(w?console.error&&console.error(w):console[d]&&T.forEach(A=>console[d](A)))})}var ih=rh("dir");function Pv(d,c,p){p=H(p);var w=v(d),T=v(c),A;function O(C,...U){if(C)return p(C);C!==!1&&(A=U,T(...U,I))}function I(C,U){if(C)return p(C);if(C!==!1){if(!U)return p(null,...A);w(O)}}return I(null,!0)}var qi=S(Pv,3);function nh(d,c,p){let w=v(c);return qi(d,(...T)=>{let A=T.pop();w(...T,(O,I)=>A(O,!I))},p)}function sh(d){return(c,p,w)=>d(c,w)}function Lv(d,c,p){return Ze(d,sh(v(c)),p)}var ds=S(Lv,3);function Cv(d,c,p,w){return se(c)(d,sh(v(p)),w)}var Bi=S(Cv,4);function Nv(d,c,p){return Bi(d,1,c,p)}var ji=S(Nv,3);function ja(d){return y(d)?d:function(...c){var p=c.pop(),w=!0;c.push((...T)=>{w?u(()=>p(...T)):p(...T)}),d.apply(this,c),w=!1}}function Mv(d,c,p){return Nt(w=>!w,w=>!w)(Ze,d,c,p)}var ps=S(Mv,3);function kv(d,c,p,w){return Nt(T=>!T,T=>!T)(se(c),d,p,w)}var gs=S(kv,4);function Fv(d,c,p){return Nt(w=>!w,w=>!w)(ht,d,c,p)}var ys=S(Fv,3);function qv(d,c,p,w){var T=new Array(c.length);d(c,(A,O,I)=>{p(A,(C,U)=>{T[O]=!!U,I(C)})},A=>{if(A)return w(A);for(var O=[],I=0;I<c.length;I++)T[I]&&O.push(c[I]);w(null,O)})}function Bv(d,c,p,w){var T=[];d(c,(A,O,I)=>{p(A,(C,U)=>{if(C)return I(C);U&&T.push({index:O,value:A}),I(C)})},A=>{if(A)return w(A);w(null,T.sort((O,I)=>O.index-I.index).map(O=>O.value))})}function ms(d,c,p,w){var T=D(c)?qv:Bv;return T(d,c,v(p),w)}function jv(d,c,p){return ms(Ze,d,c,p)}var _s=S(jv,3);function Uv(d,c,p,w){return ms(se(c),d,p,w)}var bs=S(Uv,4);function Wv(d,c,p){return ms(ht,d,c,p)}var ws=S(Wv,3);function Gv(d,c){var p=H(c),w=v(ja(d));function T(A){if(A)return p(A);A!==!1&&w(T)}return T()}var oh=S(Gv,2);function zv(d,c,p,w){var T=v(p);return Fi(d,c,(A,O)=>{T(A,(I,C)=>I?O(I):O(I,{key:C,val:A}))},(A,O)=>{for(var I={},{hasOwnProperty:C}=Object.prototype,U=0;U<O.length;U++)if(O[U]){var{key:te}=O[U],{val:oe}=O[U];C.call(I,te)?I[te].push(oe):I[te]=[oe]}return w(A,I)})}var Ss=S(zv,4);function ah(d,c,p){return Ss(d,1/0,c,p)}function lh(d,c,p){return Ss(d,1,c,p)}var uh=rh("log");function $v(d,c,p,w){w=Z(w);var T={},A=v(p);return se(c)(d,(O,I,C)=>{A(O,I,(U,te)=>{if(U)return C(U);T[I]=te,C(U)})},O=>w(O,T))}var Es=S($v,4);function fh(d,c,p){return Es(d,1/0,c,p)}function ch(d,c,p){return Es(d,1,c,p)}function hh(d,c=p=>p){var p=Object.create(null),w=Object.create(null),T=v(d),A=r((O,I)=>{var C=c(...O);C in p?u(()=>I(null,...p[C])):C in w?w[C].push(I):(w[C]=[I],T(...O,(U,...te)=>{U||(p[C]=te);var oe=w[C];delete w[C];for(var re=0,it=oe.length;re<it;re++)oe[re](U,...te)}))});return A.memo=p,A.unmemoized=d,A}var vs;s?vs=process.nextTick:n?vs=setImmediate:vs=o;var dh=a(vs),Ua=S((d,c,p)=>{var w=D(c)?[]:{};d(c,(T,A,O)=>{v(T)((I,...C)=>{C.length<2&&([C]=C),w[A]=C,O(I)})},T=>p(T,w))},3);function ph(d,c){return Ua(Ze,d,c)}function gh(d,c,p){return Ua(se(c),d,p)}function Wa(d,c){var p=v(d);return qa((w,T)=>{p(w[0],T)},c,1)}class Hv{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(c){let p;for(;c>0&&Ga(this.heap[c],this.heap[p=yh(c)]);){let w=this.heap[c];this.heap[c]=this.heap[p],this.heap[p]=w,c=p}}percDown(c){let p;for(;(p=Vv(c))<this.heap.length&&(p+1<this.heap.length&&Ga(this.heap[p+1],this.heap[p])&&(p=p+1),!Ga(this.heap[c],this.heap[p]));){let w=this.heap[c];this.heap[c]=this.heap[p],this.heap[p]=w,c=p}}push(c){c.pushCount=++this.pushCount,this.heap.push(c),this.percUp(this.heap.length-1)}unshift(c){return this.heap.push(c)}shift(){let[c]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),c}toArray(){return[...this]}*[Symbol.iterator](){for(let c=0;c<this.heap.length;c++)yield this.heap[c].data}remove(c){let p=0;for(let w=0;w<this.heap.length;w++)c(this.heap[w])||(this.heap[p]=this.heap[w],p++);this.heap.splice(p);for(let w=yh(this.heap.length-1);w>=0;w--)this.percDown(w);return this}}function Vv(d){return(d<<1)+1}function yh(d){return(d+1>>1)-1}function Ga(d,c){return d.priority!==c.priority?d.priority<c.priority:d.pushCount<c.pushCount}function mh(d,c){var p=Wa(d,c),{push:w,pushAsync:T}=p;p._tasks=new Hv,p._createTaskItem=({data:O,priority:I},C)=>({data:O,priority:I,callback:C});function A(O,I){return Array.isArray(O)?O.map(C=>({data:C,priority:I})):{data:O,priority:I}}return p.push=function(O,I=0,C){return w(A(O,I),C)},p.pushAsync=function(O,I=0,C){return T(A(O,I),C)},delete p.unshift,delete p.unshiftAsync,p}function Yv(d,c){if(c=Z(c),!Array.isArray(d))return c(new TypeError("First argument to race must be an array of functions"));if(!d.length)return c();for(var p=0,w=d.length;p<w;p++)v(d[p])(c)}var _h=S(Yv,2);function Ts(d,c,p,w){var T=[...d].reverse();return Vt(T,c,p,w)}function As(d){var c=v(d);return r(function(w,T){return w.push((A,...O)=>{let I={};if(A&&(I.error=A),O.length>0){var C=O;O.length<=1&&([C]=O),I.value=C}T(null,I)}),c.apply(this,w)})}function bh(d){var c;return Array.isArray(d)?c=d.map(As):(c={},Object.keys(d).forEach(p=>{c[p]=As.call(this,d[p])})),c}function za(d,c,p,w){let T=v(p);return ms(d,c,(A,O)=>{T(A,(I,C)=>{O(I,!C)})},w)}function Kv(d,c,p){return za(Ze,d,c,p)}var wh=S(Kv,3);function Zv(d,c,p,w){return za(se(c),d,p,w)}var Sh=S(Zv,4);function Qv(d,c,p){return za(ht,d,c,p)}var Eh=S(Qv,3);function vh(d){return function(){return d}}let $a=5,Th=0;function xs(d,c,p){var w={times:$a,intervalFunc:vh(Th)};if(arguments.length<3&&typeof d=="function"?(p=c||Wr(),c=d):(Xv(w,d),p=p||Wr()),typeof c!="function")throw new Error("Invalid arguments for async.retry");var T=v(c),A=1;function O(){T((I,...C)=>{I!==!1&&(I&&A++<w.times&&(typeof w.errorFilter!="function"||w.errorFilter(I))?setTimeout(O,w.intervalFunc(A-1)):p(I,...C))})}return O(),p[Ur]}function Xv(d,c){if(typeof c=="object")d.times=+c.times||$a,d.intervalFunc=typeof c.interval=="function"?c.interval:vh(+c.interval||Th),d.errorFilter=c.errorFilter;else if(typeof c=="number"||typeof c=="string")d.times=+c||$a;else throw new Error("Invalid arguments for async.retry")}function Ah(d,c){c||(c=d,d=null);let p=d&&d.arity||c.length;y(c)&&(p+=1);var w=v(c);return r((T,A)=>{(T.length<p-1||A==null)&&(T.push(A),A=Wr());function O(I){w(...T,I)}return d?xs(d,O,A):xs(O,A),A[Ur]})}function xh(d,c){return Ua(ht,d,c)}function Jv(d,c,p){return Nt(Boolean,w=>w)(Ze,d,c,p)}var Rs=S(Jv,3);function e1(d,c,p,w){return Nt(Boolean,T=>T)(se(c),d,p,w)}var Os=S(e1,4);function t1(d,c,p){return Nt(Boolean,w=>w)(ht,d,c,p)}var Ds=S(t1,3);function r1(d,c,p){var w=v(c);return as(d,(A,O)=>{w(A,(I,C)=>{if(I)return O(I);O(I,{value:A,criteria:C})})},(A,O)=>{if(A)return p(A);p(null,O.sort(T).map(I=>I.value))});function T(A,O){var I=A.criteria,C=O.criteria;return I<C?-1:I>C?1:0}}var Rh=S(r1,3);function Oh(d,c,p){var w=v(d);return r((T,A)=>{var O=!1,I;function C(){var U=d.name||"anonymous",te=new Error('Callback function "'+U+'" timed out.');te.code="ETIMEDOUT",p&&(te.info=p),O=!0,A(te)}T.push((...U)=>{O||(A(...U),clearTimeout(I))}),I=setTimeout(C,c),w(...T)})}function i1(d){for(var c=Array(d);d--;)c[d]=d;return c}function Is(d,c,p,w){var T=v(p);return Fi(i1(d),c,T,w)}function Dh(d,c,p){return Is(d,1/0,c,p)}function Ih(d,c,p){return Is(d,1,c,p)}function Ph(d,c,p,w){arguments.length<=3&&typeof c=="function"&&(w=p,p=c,c=Array.isArray(d)?[]:{}),w=Z(w||Wr());var T=v(p);return Ze(d,(A,O,I)=>{T(c,A,O,I)},A=>w(A,c)),w[Ur]}function n1(d,c){var p=null,w;return ji(d,(T,A)=>{v(T)((O,...I)=>{if(O===!1)return A(O);I.length<2?[w]=I:w=I,p=O,A(O?null:{})})},()=>c(p,w))}var Lh=S(n1);function Ch(d){return(...c)=>(d.unmemoized||d)(...c)}function s1(d,c,p){p=H(p);var w=v(c),T=v(d),A=[];function O(C,...U){if(C)return p(C);A=U,C!==!1&&T(I)}function I(C,U){if(C)return p(C);if(C!==!1){if(!U)return p(null,...A);w(O)}}return T(I)}var Ui=S(s1,3);function Nh(d,c,p){let w=v(d);return Ui(T=>w((A,O)=>T(A,!O)),c,p)}function o1(d,c){if(c=Z(c),!Array.isArray(d))return c(new Error("First argument to waterfall must be an array of functions"));if(!d.length)return c();var p=0;function w(A){var O=v(d[p++]);O(...A,H(T))}function T(A,...O){if(A!==!1){if(A||p===d.length)return c(A,...O);w(O)}}w([])}var Mh=S(o1),a1={apply:e,applyEach:Yc,applyEachSeries:Kc,asyncify:f,auto:Fa,autoInject:Zc,cargo:Xc,cargoQueue:Jc,compose:eh,concat:ls,concatLimit:Gr,concatSeries:us,constant:th,detect:fs,detectLimit:cs,detectSeries:hs,dir:ih,doUntil:nh,doWhilst:qi,each:ds,eachLimit:Bi,eachOf:Ze,eachOfLimit:ue,eachOfSeries:ht,eachSeries:ji,ensureAsync:ja,every:ps,everyLimit:gs,everySeries:ys,filter:_s,filterLimit:bs,filterSeries:ws,forever:oh,groupBy:ah,groupByLimit:Ss,groupBySeries:lh,log:uh,map:as,mapLimit:Fi,mapSeries:ka,mapValues:fh,mapValuesLimit:Es,mapValuesSeries:ch,memoize:hh,nextTick:dh,parallel:ph,parallelLimit:gh,priorityQueue:mh,queue:Wa,race:_h,reduce:Vt,reduceRight:Ts,reflect:As,reflectAll:bh,reject:wh,rejectLimit:Sh,rejectSeries:Eh,retry:xs,retryable:Ah,seq:Ba,series:xh,setImmediate:u,some:Rs,someLimit:Os,someSeries:Ds,sortBy:Rh,timeout:Oh,times:Dh,timesLimit:Is,timesSeries:Ih,transform:Ph,tryEach:Lh,unmemoize:Ch,until:Nh,waterfall:Mh,whilst:Ui,all:ps,allLimit:gs,allSeries:ys,any:Rs,anyLimit:Os,anySeries:Ds,find:fs,findLimit:cs,findSeries:hs,flatMap:ls,flatMapLimit:Gr,flatMapSeries:us,forEach:ds,forEachSeries:ji,forEachLimit:Bi,forEachOf:Ze,forEachOfSeries:ht,forEachOfLimit:ue,inject:Vt,foldl:Vt,foldr:Ts,select:_s,selectLimit:bs,selectSeries:ws,wrapSync:f,during:Ui,doDuring:qi};t.all=ps,t.allLimit=gs,t.allSeries=ys,t.any=Rs,t.anyLimit=Os,t.anySeries=Ds,t.apply=e,t.applyEach=Yc,t.applyEachSeries=Kc,t.asyncify=f,t.auto=Fa,t.autoInject=Zc,t.cargo=Xc,t.cargoQueue=Jc,t.compose=eh,t.concat=ls,t.concatLimit=Gr,t.concatSeries=us,t.constant=th,t.default=a1,t.detect=fs,t.detectLimit=cs,t.detectSeries=hs,t.dir=ih,t.doDuring=qi,t.doUntil=nh,t.doWhilst=qi,t.during=Ui,t.each=ds,t.eachLimit=Bi,t.eachOf=Ze,t.eachOfLimit=ue,t.eachOfSeries=ht,t.eachSeries=ji,t.ensureAsync=ja,t.every=ps,t.everyLimit=gs,t.everySeries=ys,t.filter=_s,t.filterLimit=bs,t.filterSeries=ws,t.find=fs,t.findLimit=cs,t.findSeries=hs,t.flatMap=ls,t.flatMapLimit=Gr,t.flatMapSeries=us,t.foldl=Vt,t.foldr=Ts,t.forEach=ds,t.forEachLimit=Bi,t.forEachOf=Ze,t.forEachOfLimit=ue,t.forEachOfSeries=ht,t.forEachSeries=ji,t.forever=oh,t.groupBy=ah,t.groupByLimit=Ss,t.groupBySeries=lh,t.inject=Vt,t.log=uh,t.map=as,t.mapLimit=Fi,t.mapSeries=ka,t.mapValues=fh,t.mapValuesLimit=Es,t.mapValuesSeries=ch,t.memoize=hh,t.nextTick=dh,t.parallel=ph,t.parallelLimit=gh,t.priorityQueue=mh,t.queue=Wa,t.race=_h,t.reduce=Vt,t.reduceRight=Ts,t.reflect=As,t.reflectAll=bh,t.reject=wh,t.rejectLimit=Sh,t.rejectSeries=Eh,t.retry=xs,t.retryable=Ah,t.select=_s,t.selectLimit=bs,t.selectSeries=ws,t.seq=Ba,t.series=xh,t.setImmediate=u,t.some=Rs,t.someLimit=Os,t.someSeries=Ds,t.sortBy=Rh,t.timeout=Oh,t.times=Dh,t.timesLimit=Is,t.timesSeries=Ih,t.transform=Ph,t.tryEach=Lh,t.unmemoize=Ch,t.until=Nh,t.waterfall=Mh,t.whilst=Ui,t.wrapSync=f,Object.defineProperty(t,"__esModule",{value:!0})}))});var Dd=b((Q3,Od)=>{var Kt=W("constants"),yT=process.cwd,ks=null,mT=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return ks||(ks=yT.call(process)),ks};try{process.cwd()}catch{}typeof process.chdir=="function"&&(gl=process.chdir,process.chdir=function(t){ks=null,gl.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,gl));var gl;Od.exports=_T;function _T(t){Kt.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,h,g){g&&process.nextTick(g)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(f,h,g,y){y&&process.nextTick(y)},t.lchownSync=function(){}),mT==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:(function(f){function h(g,y,E){var m=Date.now(),v=0;f(g,y,function S(R){if(R&&(R.code==="EACCES"||R.code==="EPERM"||R.code==="EBUSY")&&Date.now()-m<6e4){setTimeout(function(){t.stat(y,function(L,D){L&&L.code==="ENOENT"?f(g,y,S):E(R)})},v),v<100&&(v+=10);return}E&&E(R)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h})(t.rename)),t.read=typeof t.read!="function"?t.read:(function(f){function h(g,y,E,m,v,S){var R;if(S&&typeof S=="function"){var L=0;R=function(D,q,Z){if(D&&D.code==="EAGAIN"&&L<10)return L++,f.call(t,g,y,E,m,v,R);S.apply(this,arguments)}}return f.call(t,g,y,E,m,v,R)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h})(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:(function(f){return function(h,g,y,E,m){for(var v=0;;)try{return f.call(t,h,g,y,E,m)}catch(S){if(S.code==="EAGAIN"&&v<10){v++;continue}throw S}}})(t.readSync);function e(f){f.lchmod=function(h,g,y){f.open(h,Kt.O_WRONLY|Kt.O_SYMLINK,g,function(E,m){if(E){y&&y(E);return}f.fchmod(m,g,function(v){f.close(m,function(S){y&&y(v||S)})})})},f.lchmodSync=function(h,g){var y=f.openSync(h,Kt.O_WRONLY|Kt.O_SYMLINK,g),E=!0,m;try{m=f.fchmodSync(y,g),E=!1}finally{if(E)try{f.closeSync(y)}catch{}else f.closeSync(y)}return m}}function r(f){Kt.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(h,g,y,E){f.open(h,Kt.O_SYMLINK,function(m,v){if(m){E&&E(m);return}f.futimes(v,g,y,function(S){f.close(v,function(R){E&&E(S||R)})})})},f.lutimesSync=function(h,g,y){var E=f.openSync(h,Kt.O_SYMLINK),m,v=!0;try{m=f.futimesSync(E,g,y),v=!1}finally{if(v)try{f.closeSync(E)}catch{}else f.closeSync(E)}return m}):f.futimes&&(f.lutimes=function(h,g,y,E){E&&process.nextTick(E)},f.lutimesSync=function(){})}function i(f){return f&&function(h,g,y){return f.call(t,h,g,function(E){u(E)&&(E=null),y&&y.apply(this,arguments)})}}function n(f){return f&&function(h,g){try{return f.call(t,h,g)}catch(y){if(!u(y))throw y}}}function s(f){return f&&function(h,g,y,E){return f.call(t,h,g,y,function(m){u(m)&&(m=null),E&&E.apply(this,arguments)})}}function o(f){return f&&function(h,g,y){try{return f.call(t,h,g,y)}catch(E){if(!u(E))throw E}}}function a(f){return f&&function(h,g,y){typeof g=="function"&&(y=g,g=null);function E(m,v){v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),y&&y.apply(this,arguments)}return g?f.call(t,h,g,E):f.call(t,h,E)}}function l(f){return f&&function(h,g){var y=g?f.call(t,h,g):f.call(t,h);return y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),y}}function u(f){if(!f||f.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var Ld=b((X3,Pd)=>{var Id=W("stream").Stream;Pd.exports=bT;function bT(t){return{ReadStream:e,WriteStream:r};function e(i,n){if(!(this instanceof e))return new e(i,n);Id.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,h){if(f){s.emit("error",f),s.readable=!1;return}s.fd=h,s.emit("open",h),s._read()})}function r(i,n){if(!(this instanceof r))return new r(i,n);Id.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 Nd=b((J3,Cd)=>{"use strict";Cd.exports=ST;var wT=Object.getPrototypeOf||function(t){return t.__proto__};function ST(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:wT(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var bl=b((e4,_l)=>{var Ee=W("fs"),ET=Dd(),vT=Ld(),TT=Nd(),Fs=W("util"),ke,Bs;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ke=Symbol.for("graceful-fs.queue"),Bs=Symbol.for("graceful-fs.previous")):(ke="___graceful-fs.queue",Bs="___graceful-fs.previous");function AT(){}function Fd(t,e){Object.defineProperty(t,ke,{get:function(){return e}})}var _r=AT;Fs.debuglog?_r=Fs.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(_r=function(){var t=Fs.format.apply(Fs,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
12
|
+
GFS4: `),console.error(t)});Ee[ke]||(Md=global[ke]||[],Fd(Ee,Md),Ee.close=(function(t){function e(r,i){return t.call(Ee,r,function(n){n||kd(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,Bs,{value:t}),e})(Ee.close),Ee.closeSync=(function(t){function e(r){t.apply(Ee,arguments),kd()}return Object.defineProperty(e,Bs,{value:t}),e})(Ee.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){_r(Ee[ke]),W("assert").equal(Ee[ke].length,0)}));var Md;global[ke]||Fd(global,Ee[ke]);_l.exports=yl(TT(Ee));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Ee.__patched&&(_l.exports=yl(Ee),Ee.__patched=!0);function yl(t){ET(t),t.gracefulify=yl,t.createReadStream=q,t.createWriteStream=Z;var e=t.readFile;t.readFile=r;function r(x,M,k){return typeof M=="function"&&(k=M,M=null),H(x,M,k);function H(ee,se,de,ue){return e(ee,se,function(fe){fe&&(fe.code==="EMFILE"||fe.code==="ENFILE")?Vr([H,[ee,se,de],fe,ue||Date.now(),Date.now()]):typeof de=="function"&&de.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=n;function n(x,M,k,H){return typeof k=="function"&&(H=k,k=null),ee(x,M,k,H);function ee(se,de,ue,fe,Oe){return i(se,de,ue,function(ge){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?Vr([ee,[se,de,ue,fe],ge,Oe||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(x,M,k,H){return typeof k=="function"&&(H=k,k=null),ee(x,M,k,H);function ee(se,de,ue,fe,Oe){return s(se,de,ue,function(ge){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?Vr([ee,[se,de,ue,fe],ge,Oe||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=l);function l(x,M,k,H){return typeof k=="function"&&(H=k,k=0),ee(x,M,k,H);function ee(se,de,ue,fe,Oe){return a(se,de,ue,function(ge){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?Vr([ee,[se,de,ue,fe],ge,Oe||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}}var u=t.readdir;t.readdir=h;var f=/^v[0-5]\./;function h(x,M,k){typeof M=="function"&&(k=M,M=null);var H=f.test(process.version)?function(de,ue,fe,Oe){return u(de,ee(de,ue,fe,Oe))}:function(de,ue,fe,Oe){return u(de,ue,ee(de,ue,fe,Oe))};return H(x,M,k);function ee(se,de,ue,fe){return function(Oe,ge){Oe&&(Oe.code==="EMFILE"||Oe.code==="ENFILE")?Vr([H,[se,de,ue],Oe,fe||Date.now(),Date.now()]):(ge&&ge.sort&&ge.sort(),typeof ue=="function"&&ue.call(this,Oe,ge))}}}if(process.version.substr(0,4)==="v0.8"){var g=vT(t);S=g.ReadStream,L=g.WriteStream}var y=t.ReadStream;y&&(S.prototype=Object.create(y.prototype),S.prototype.open=R);var E=t.WriteStream;E&&(L.prototype=Object.create(E.prototype),L.prototype.open=D),Object.defineProperty(t,"ReadStream",{get:function(){return S},set:function(x){S=x},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return L},set:function(x){L=x},enumerable:!0,configurable:!0});var m=S;Object.defineProperty(t,"FileReadStream",{get:function(){return m},set:function(x){m=x},enumerable:!0,configurable:!0});var v=L;Object.defineProperty(t,"FileWriteStream",{get:function(){return v},set:function(x){v=x},enumerable:!0,configurable:!0});function S(x,M){return this instanceof S?(y.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}function R(){var x=this;B(x.path,x.flags,x.mode,function(M,k){M?(x.autoClose&&x.destroy(),x.emit("error",M)):(x.fd=k,x.emit("open",k),x.read())})}function L(x,M){return this instanceof L?(E.apply(this,arguments),this):L.apply(Object.create(L.prototype),arguments)}function D(){var x=this;B(x.path,x.flags,x.mode,function(M,k){M?(x.destroy(),x.emit("error",M)):(x.fd=k,x.emit("open",k))})}function q(x,M){return new t.ReadStream(x,M)}function Z(x,M){return new t.WriteStream(x,M)}var P=t.open;t.open=B;function B(x,M,k,H){return typeof k=="function"&&(H=k,k=null),ee(x,M,k,H);function ee(se,de,ue,fe,Oe){return P(se,de,ue,function(ge,Ze){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?Vr([ee,[se,de,ue,fe],ge,Oe||Date.now(),Date.now()]):typeof fe=="function"&&fe.apply(this,arguments)})}}return t}function Vr(t){_r("ENQUEUE",t[0].name,t[1]),Ee[ke].push(t),ml()}var qs;function kd(){for(var t=Date.now(),e=0;e<Ee[ke].length;++e)Ee[ke][e].length>2&&(Ee[ke][e][3]=t,Ee[ke][e][4]=t);ml()}function ml(){if(clearTimeout(qs),qs=void 0,Ee[ke].length!==0){var t=Ee[ke].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)_r("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){_r("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?(_r("RETRY",e.name,r),e.apply(null,r.concat([n]))):Ee[ke].push(t)}qs===void 0&&(qs=setTimeout(ml,0))}}});var js=b((t4,qd)=>{"use strict";var bt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";bt.writable=t=>bt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";bt.readable=t=>bt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";bt.duplex=t=>bt.writable(t)&&bt.readable(t);bt.transform=t=>bt.duplex(t)&&typeof t._transform=="function";qd.exports=bt});var Yi=b((r4,wl)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?wl.exports={nextTick:xT}:wl.exports=process;function xT(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 jd=b((i4,Bd)=>{var RT={}.toString;Bd.exports=Array.isArray||function(t){return RT.call(t)=="[object Array]"}});var Sl=b((n4,Ud)=>{Ud.exports=W("stream")});var Ki=b((El,Gd)=>{var Us=W("buffer"),Mt=Us.Buffer;function Wd(t,e){for(var r in t)e[r]=t[r]}Mt.from&&Mt.alloc&&Mt.allocUnsafe&&Mt.allocUnsafeSlow?Gd.exports=Us:(Wd(Us,El),El.Buffer=Yr);function Yr(t,e,r){return Mt(t,e,r)}Wd(Mt,Yr);Yr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Mt(t,e,r)};Yr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=Mt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Yr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Mt(t)};Yr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Us.SlowBuffer(t)}});var Kr=b(Ue=>{function OT(t){return Array.isArray?Array.isArray(t):Ws(t)==="[object Array]"}Ue.isArray=OT;function DT(t){return typeof t=="boolean"}Ue.isBoolean=DT;function IT(t){return t===null}Ue.isNull=IT;function PT(t){return t==null}Ue.isNullOrUndefined=PT;function LT(t){return typeof t=="number"}Ue.isNumber=LT;function CT(t){return typeof t=="string"}Ue.isString=CT;function NT(t){return typeof t=="symbol"}Ue.isSymbol=NT;function MT(t){return t===void 0}Ue.isUndefined=MT;function kT(t){return Ws(t)==="[object RegExp]"}Ue.isRegExp=kT;function FT(t){return typeof t=="object"&&t!==null}Ue.isObject=FT;function qT(t){return Ws(t)==="[object Date]"}Ue.isDate=qT;function BT(t){return Ws(t)==="[object Error]"||t instanceof Error}Ue.isError=BT;function jT(t){return typeof t=="function"}Ue.isFunction=jT;function UT(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}Ue.isPrimitive=UT;Ue.isBuffer=W("buffer").Buffer.isBuffer;function Ws(t){return Object.prototype.toString.call(t)}});var zd=b((o4,vl)=>{typeof Object.create=="function"?vl.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:vl.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 Zr=b((a4,Al)=>{try{if(Tl=W("util"),typeof Tl.inherits!="function")throw"";Al.exports=Tl.inherits}catch{Al.exports=zd()}var Tl});var Hd=b((l4,xl)=>{"use strict";function WT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var $d=Ki().Buffer,Zi=W("util");function GT(t,e,r){t.copy(e,r)}xl.exports=(function(){function t(){WT(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 $d.alloc(0);for(var i=$d.allocUnsafe(r>>>0),n=this.head,s=0;n;)GT(n.data,i,s),s+=n.data.length,n=n.next;return i},t})();Zi&&Zi.inspect&&Zi.inspect.custom&&(xl.exports.prototype[Zi.inspect.custom]=function(){var t=Zi.inspect({length:this.length});return this.constructor.name+" "+t})});var Rl=b((u4,Vd)=>{"use strict";var Gs=Yi();function zT(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,Gs.nextTick(zs,this,t)):Gs.nextTick(zs,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,Gs.nextTick(zs,r,s)):Gs.nextTick(zs,r,s):e&&e(s)}),this)}function $T(){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 zs(t,e){t.emit("error",e)}Vd.exports={destroy:zT,undestroy:$T}});var Kd=b((f4,Yd)=>{Yd.exports=W("util").deprecate});var Dl=b((c4,ip)=>{"use strict";var br=Yi();ip.exports=Re;function Qd(t){var e=this;this.next=null,this.entry=null,this.finish=function(){uA(e,t)}}var HT=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:br.nextTick,Qr;Re.WritableState=Xi;var Xd=Object.create(Kr());Xd.inherits=Zr();var VT={deprecate:Kd()},Jd=Sl(),Hs=Ki().Buffer,YT=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function KT(t){return Hs.from(t)}function ZT(t){return Hs.isBuffer(t)||t instanceof YT}var ep=Rl();Xd.inherits(Re,Jd);function QT(){}function Xi(t,e){Qr=Qr||wr(),t=t||{};var r=e instanceof Qr;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){nA(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 Qd(this)}Xi.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r};(function(){try{Object.defineProperty(Xi.prototype,"buffer",{get:VT.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var $s;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?($s=Function.prototype[Symbol.hasInstance],Object.defineProperty(Re,Symbol.hasInstance,{value:function(t){return $s.call(this,t)?!0:this!==Re?!1:t&&t._writableState instanceof Xi}})):$s=function(t){return t instanceof this};function Re(t){if(Qr=Qr||wr(),!$s.call(Re,this)&&!(this instanceof Qr))return new Re(t);this._writableState=new Xi(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)),Jd.call(this)}Re.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function XT(t,e){var r=new Error("write after end");t.emit("error",r),br.nextTick(e,r)}function JT(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),br.nextTick(i,s),n=!1),n}Re.prototype.write=function(t,e,r){var i=this._writableState,n=!1,s=!i.objectMode&&ZT(t);return s&&!Hs.isBuffer(t)&&(t=KT(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=QT),i.ended?XT(this,r):(s||JT(this,i,t,r))&&(i.pendingcb++,n=tA(this,i,s,t,e,r)),n};Re.prototype.cork=function(){var t=this._writableState;t.corked++};Re.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&tp(this,t))};Re.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 eA(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Hs.from(e,r)),e}Object.defineProperty(Re.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function tA(t,e,r,i,n,s){if(!r){var o=eA(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 Ol(t,e,!1,a,i,n,s);return l}function Ol(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 rA(t,e,r,i,n){--e.pendingcb,r?(br.nextTick(n,i),br.nextTick(Qi,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(n(i),t._writableState.errorEmitted=!0,t.emit("error",i),Qi(t,e))}function iA(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function nA(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(iA(r),e)rA(t,r,i,e,n);else{var s=rp(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&tp(t,r),i?HT(Zd,t,r,s,n):Zd(t,r,s,n)}}function Zd(t,e,r,i){r||sA(t,e),e.pendingcb--,i(),Qi(t,e)}function sA(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function tp(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,Ol(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 Qd(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,f=r.callback,h=e.objectMode?1:l.length;if(Ol(t,e,!1,h,l,u,f),r=r.next,e.bufferedRequestCount--,e.writing)break}r===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}Re.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))};Re.prototype._writev=null;Re.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||lA(this,i,r)};function rp(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function oA(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),Qi(t,e)})}function aA(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,br.nextTick(oA,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Qi(t,e){var r=rp(e);return r&&(aA(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}function lA(t,e,r){e.ending=!0,Qi(t,e),r&&(e.finished?br.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function uA(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(Re.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});Re.prototype.destroy=ep.destroy;Re.prototype._undestroy=ep.undestroy;Re.prototype._destroy=function(t,e){this.end(),e(t)}});var wr=b((h4,ap)=>{"use strict";var np=Yi(),fA=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};ap.exports=kt;var sp=Object.create(Kr());sp.inherits=Zr();var op=Ll(),Pl=Dl();sp.inherits(kt,op);for(Il=fA(Pl.prototype),Vs=0;Vs<Il.length;Vs++)Ys=Il[Vs],kt.prototype[Ys]||(kt.prototype[Ys]=Pl.prototype[Ys]);var Il,Ys,Vs;function kt(t){if(!(this instanceof kt))return new kt(t);op.call(this,t),Pl.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",cA)}Object.defineProperty(kt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function cA(){this.allowHalfOpen||this._writableState.ended||np.nextTick(hA,this)}function hA(t){t.end()}Object.defineProperty(kt.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)}});kt.prototype._destroy=function(t,e){this.push(null),this.end(),np.nextTick(e,t)}});var Ml=b(up=>{"use strict";var Nl=Ki().Buffer,lp=Nl.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 dA(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 pA(t){var e=dA(t);if(typeof e!="string"&&(Nl.isEncoding===lp||!lp(t)))throw new Error("Unknown encoding: "+t);return e||t}up.StringDecoder=Ji;function Ji(t){this.encoding=pA(t);var e;switch(this.encoding){case"utf16le":this.text=wA,this.end=SA,e=4;break;case"utf8":this.fillLast=mA,e=4;break;case"base64":this.text=EA,this.end=vA,e=3;break;default:this.write=TA,this.end=AA;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Nl.allocUnsafe(e)}Ji.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||""};Ji.prototype.end=bA;Ji.prototype.text=_A;Ji.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 Cl(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function gA(t,e,r){var i=e.length-1;if(i<r)return 0;var n=Cl(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=Cl(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=Cl(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function yA(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 mA(t){var e=this.lastTotal-this.lastNeed,r=yA(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 _A(t,e){var r=gA(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 bA(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function wA(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 SA(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 EA(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 vA(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function TA(t){return t.toString(this.encoding)}function AA(t){return t&&t.length?this.write(t):""}});var Ll=b((g4,Sp)=>{"use strict";var Jr=Yi();Sp.exports=ye;var xA=jd(),en;ye.ReadableState=yp;var p4=W("events").EventEmitter,dp=function(t,e){return t.listeners(e).length},jl=Sl(),tn=Ki().Buffer,RA=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function OA(t){return tn.from(t)}function DA(t){return tn.isBuffer(t)||t instanceof RA}var pp=Object.create(Kr());pp.inherits=Zr();var kl=W("util"),ce=void 0;kl&&kl.debuglog?ce=kl.debuglog("stream"):ce=function(){};var IA=Hd(),gp=Rl(),Xr;pp.inherits(ye,jl);var Fl=["error","close","destroy","pause","resume"];function PA(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):xA(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function yp(t,e){en=en||wr(),t=t||{};var r=e instanceof en;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 IA,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&&(Xr||(Xr=Ml().StringDecoder),this.decoder=new Xr(t.encoding),this.encoding=t.encoding)}function ye(t){if(en=en||wr(),!(this instanceof ye))return new ye(t);this._readableState=new yp(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),jl.call(this)}Object.defineProperty(ye.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});ye.prototype.destroy=gp.destroy;ye.prototype._undestroy=gp.undestroy;ye.prototype._destroy=function(t,e){this.push(null),e(t)};ye.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=tn.from(t,e),e=""),i=!0),mp(this,t,e,!1,i)};ye.prototype.unshift=function(t){return mp(this,t,null,!0,!1)};function mp(t,e,r,i,n){var s=t._readableState;if(e===null)s.reading=!1,MA(t,s);else{var o;n||(o=LA(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==tn.prototype&&(e=OA(e)),i?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):ql(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?ql(t,s,e,!1):_p(t,s)):ql(t,s,e,!1))):i||(s.reading=!1)}return CA(s)}function ql(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&&Ks(t)),_p(t,e)}function LA(t,e){var r;return!DA(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function CA(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}ye.prototype.isPaused=function(){return this._readableState.flowing===!1};ye.prototype.setEncoding=function(t){return Xr||(Xr=Ml().StringDecoder),this._readableState.decoder=new Xr(t),this._readableState.encoding=t,this};var fp=8388608;function NA(t){return t>=fp?t=fp:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function cp(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=NA(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}ye.prototype.read=function(t){ce("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 ce("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Bl(this):Ks(this),null;if(t=cp(t,e),t===0&&e.ended)return e.length===0&&Bl(this),null;var i=e.needReadable;ce("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,ce("length less than watermark",i)),e.ended||e.reading?(i=!1,ce("reading or ended",i)):i&&(ce("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=cp(r,e)));var n;return t>0?n=bp(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&&Bl(this)),n!==null&&this.emit("data",n),n};function MA(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,Ks(t)}}function Ks(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(ce("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Jr.nextTick(hp,t):hp(t))}function hp(t){ce("emit readable"),t.emit("readable"),Ul(t)}function _p(t,e){e.readingMore||(e.readingMore=!0,Jr.nextTick(kA,t,e))}function kA(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(ce("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}ye.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))};ye.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,ce("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=n?a:v;i.endEmitted?Jr.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(S,R){ce("onunpipe"),S===r&&R&&R.hasUnpiped===!1&&(R.hasUnpiped=!0,f())}function a(){ce("onend"),t.end()}var l=FA(r);t.on("drain",l);var u=!1;function f(){ce("cleanup"),t.removeListener("close",E),t.removeListener("finish",m),t.removeListener("drain",l),t.removeListener("error",y),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",v),r.removeListener("data",g),u=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}var h=!1;r.on("data",g);function g(S){ce("ondata"),h=!1;var R=t.write(S);R===!1&&!h&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&wp(i.pipes,t)!==-1)&&!u&&(ce("false write response, pause",i.awaitDrain),i.awaitDrain++,h=!0),r.pause())}function y(S){ce("onerror",S),v(),t.removeListener("error",y),dp(t,"error")===0&&t.emit("error",S)}PA(t,"error",y);function E(){t.removeListener("finish",m),v()}t.once("close",E);function m(){ce("onfinish"),t.removeListener("close",E),v()}t.once("finish",m);function v(){ce("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||(ce("pipe resume"),r.resume()),t};function FA(t){return function(){var e=t._readableState;ce("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&dp(t,"data")&&(e.flowing=!0,Ul(t))}}ye.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=wp(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)};ye.prototype.on=function(t,e){var r=jl.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&&Ks(this):Jr.nextTick(qA,this))}return r};ye.prototype.addListener=ye.prototype.on;function qA(t){ce("readable nexttick read 0"),t.read(0)}ye.prototype.resume=function(){var t=this._readableState;return t.flowing||(ce("resume"),t.flowing=!0,BA(this,t)),this};function BA(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Jr.nextTick(jA,t,e))}function jA(t,e){e.reading||(ce("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),Ul(t),e.flowing&&!e.reading&&t.read(0)}ye.prototype.pause=function(){return ce("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ce("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Ul(t){var e=t._readableState;for(ce("flow",e.flowing);e.flowing&&t.read()!==null;);}ye.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if(ce("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(ce("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(o){return function(){return t[o].apply(t,arguments)}})(n));for(var s=0;s<Fl.length;s++)t.on(Fl[s],this.emit.bind(this,Fl[s]));return this._read=function(o){ce("wrapped _read",o),i&&(i=!1,t.resume())},this};Object.defineProperty(ye.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});ye._fromList=bp;function bp(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=UA(t,e.buffer,e.decoder),r}function UA(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?WA(t,e):GA(t,e),i}function WA(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 GA(t,e){var r=tn.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 Bl(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Jr.nextTick(zA,e,t))}function zA(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function wp(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var Wl=b((y4,Tp)=>{"use strict";Tp.exports=Ft;var Zs=wr(),vp=Object.create(Kr());vp.inherits=Zr();vp.inherits(Ft,Zs);function $A(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 Ft(t){if(!(this instanceof Ft))return new Ft(t);Zs.call(this,t),this._transformState={afterTransform:$A.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",HA)}function HA(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){Ep(t,e,r)}):Ep(this,null,null)}Ft.prototype.push=function(t,e){return this._transformState.needTransform=!1,Zs.prototype.push.call(this,t,e)};Ft.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")};Ft.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)}};Ft.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};Ft.prototype._destroy=function(t,e){var r=this;Zs.prototype._destroy.call(this,t,function(i){e(i),r.emit("close")})};function Ep(t,e,r){if(e)return t.emit("error",e);if(r!=null&&t.push(r),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}});var Op=b((m4,Rp)=>{"use strict";Rp.exports=rn;var Ap=Wl(),xp=Object.create(Kr());xp.inherits=Zr();xp.inherits(rn,Ap);function rn(t){if(!(this instanceof rn))return new rn(t);Ap.call(this,t)}rn.prototype._transform=function(t,e,r){r(null,t)}});var Dp=b((Fe,Qs)=>{var wt=W("stream");process.env.READABLE_STREAM==="disable"&&wt?(Qs.exports=wt,Fe=Qs.exports=wt.Readable,Fe.Readable=wt.Readable,Fe.Writable=wt.Writable,Fe.Duplex=wt.Duplex,Fe.Transform=wt.Transform,Fe.PassThrough=wt.PassThrough,Fe.Stream=wt):(Fe=Qs.exports=Ll(),Fe.Stream=wt||Fe,Fe.Readable=Fe,Fe.Writable=Dl(),Fe.Duplex=wr(),Fe.Transform=Wl(),Fe.PassThrough=Op())});var Pp=b((_4,Ip)=>{Ip.exports=Dp().PassThrough});var Mp=b((b4,Np)=>{var Lp=W("util"),eo=Pp();Np.exports={Readable:Xs,Writable:Js};Lp.inherits(Xs,eo);Lp.inherits(Js,eo);function Cp(t,e,r){t[e]=function(){return delete t[e],r.apply(this,arguments),this[e].apply(this,arguments)}}function Xs(t,e){if(!(this instanceof Xs))return new Xs(t,e);eo.call(this,e),Cp(this,"_read",function(){var r=t.call(this,e),i=this.emit.bind(this,"error");r.on("error",i),r.pipe(this)}),this.emit("readable")}function Js(t,e){if(!(this instanceof Js))return new Js(t,e);eo.call(this,e),Cp(this,"_write",function(){var r=t.call(this,e),i=this.emit.bind(this,"error");r.on("error",i),this.pipe(r)}),this.emit("writable")}});var Gl=b((w4,kp)=>{kp.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 zl=b((S4,Fp)=>{function VA(t){return t}Fp.exports=VA});var Bp=b((E4,qp)=>{function YA(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)}qp.exports=YA});var Wp=b((v4,Up)=>{var KA=Bp(),jp=Math.max;function ZA(t,e,r){return e=jp(e===void 0?t.length-1:e,0),function(){for(var i=arguments,n=-1,s=jp(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),KA(t,this,a)}}Up.exports=ZA});var zp=b((T4,Gp)=>{function QA(t){return function(){return t}}Gp.exports=QA});var $l=b((A4,$p)=>{var XA=typeof global=="object"&&global&&global.Object===Object&&global;$p.exports=XA});var ei=b((x4,Hp)=>{var JA=$l(),ex=typeof self=="object"&&self&&self.Object===Object&&self,tx=JA||ex||Function("return this")();Hp.exports=tx});var to=b((R4,Vp)=>{var rx=ei(),ix=rx.Symbol;Vp.exports=ix});var Qp=b((O4,Zp)=>{var Yp=to(),Kp=Object.prototype,nx=Kp.hasOwnProperty,sx=Kp.toString,nn=Yp?Yp.toStringTag:void 0;function ox(t){var e=nx.call(t,nn),r=t[nn];try{t[nn]=void 0;var i=!0}catch{}var n=sx.call(t);return i&&(e?t[nn]=r:delete t[nn]),n}Zp.exports=ox});var Jp=b((D4,Xp)=>{var ax=Object.prototype,lx=ax.toString;function ux(t){return lx.call(t)}Xp.exports=ux});var sn=b((I4,rg)=>{var eg=to(),fx=Qp(),cx=Jp(),hx="[object Null]",dx="[object Undefined]",tg=eg?eg.toStringTag:void 0;function px(t){return t==null?t===void 0?dx:hx:tg&&tg in Object(t)?fx(t):cx(t)}rg.exports=px});var on=b((P4,ig)=>{function gx(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}ig.exports=gx});var Hl=b((L4,ng)=>{var yx=sn(),mx=on(),_x="[object AsyncFunction]",bx="[object Function]",wx="[object GeneratorFunction]",Sx="[object Proxy]";function Ex(t){if(!mx(t))return!1;var e=yx(t);return e==bx||e==wx||e==_x||e==Sx}ng.exports=Ex});var og=b((C4,sg)=>{var vx=ei(),Tx=vx["__core-js_shared__"];sg.exports=Tx});var ug=b((N4,lg)=>{var Vl=og(),ag=(function(){var t=/[^.]+$/.exec(Vl&&Vl.keys&&Vl.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function Ax(t){return!!ag&&ag in t}lg.exports=Ax});var cg=b((M4,fg)=>{var xx=Function.prototype,Rx=xx.toString;function Ox(t){if(t!=null){try{return Rx.call(t)}catch{}try{return t+""}catch{}}return""}fg.exports=Ox});var dg=b((k4,hg)=>{var Dx=Hl(),Ix=ug(),Px=on(),Lx=cg(),Cx=/[\\^$.*+?()[\]{}|]/g,Nx=/^\[object .+?Constructor\]$/,Mx=Function.prototype,kx=Object.prototype,Fx=Mx.toString,qx=kx.hasOwnProperty,Bx=RegExp("^"+Fx.call(qx).replace(Cx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jx(t){if(!Px(t)||Ix(t))return!1;var e=Dx(t)?Bx:Nx;return e.test(Lx(t))}hg.exports=jx});var gg=b((F4,pg)=>{function Ux(t,e){return t?.[e]}pg.exports=Ux});var an=b((q4,yg)=>{var Wx=dg(),Gx=gg();function zx(t,e){var r=Gx(t,e);return Wx(r)?r:void 0}yg.exports=zx});var _g=b((B4,mg)=>{var $x=an(),Hx=(function(){try{var t=$x(Object,"defineProperty");return t({},"",{}),t}catch{}})();mg.exports=Hx});var Sg=b((j4,wg)=>{var Vx=zp(),bg=_g(),Yx=zl(),Kx=bg?function(t,e){return bg(t,"toString",{configurable:!0,enumerable:!1,value:Vx(e),writable:!0})}:Yx;wg.exports=Kx});var vg=b((U4,Eg)=>{var Zx=800,Qx=16,Xx=Date.now;function Jx(t){var e=0,r=0;return function(){var i=Xx(),n=Qx-(i-r);if(r=i,n>0){if(++e>=Zx)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}Eg.exports=Jx});var Ag=b((W4,Tg)=>{var eR=Sg(),tR=vg(),rR=tR(eR);Tg.exports=rR});var ro=b((G4,xg)=>{var iR=zl(),nR=Wp(),sR=Ag();function oR(t,e){return sR(nR(t,e,iR),t+"")}xg.exports=oR});var io=b((z4,Rg)=>{function aR(t,e){return t===e||t!==t&&e!==e}Rg.exports=aR});var Yl=b(($4,Og)=>{var lR=9007199254740991;function uR(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=lR}Og.exports=uR});var no=b((H4,Dg)=>{var fR=Hl(),cR=Yl();function hR(t){return t!=null&&cR(t.length)&&!fR(t)}Dg.exports=hR});var Kl=b((V4,Ig)=>{var dR=9007199254740991,pR=/^(?:0|[1-9]\d*)$/;function gR(t,e){var r=typeof t;return e=e??dR,!!e&&(r=="number"||r!="symbol"&&pR.test(t))&&t>-1&&t%1==0&&t<e}Ig.exports=gR});var Lg=b((Y4,Pg)=>{var yR=io(),mR=no(),_R=Kl(),bR=on();function wR(t,e,r){if(!bR(r))return!1;var i=typeof e;return(i=="number"?mR(r)&&_R(e,r.length):i=="string"&&e in r)?yR(r[e],t):!1}Pg.exports=wR});var Ng=b((K4,Cg)=>{function SR(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}Cg.exports=SR});var ti=b((Z4,Mg)=>{function ER(t){return t!=null&&typeof t=="object"}Mg.exports=ER});var Fg=b((Q4,kg)=>{var vR=sn(),TR=ti(),AR="[object Arguments]";function xR(t){return TR(t)&&vR(t)==AR}kg.exports=xR});var Zl=b((X4,jg)=>{var qg=Fg(),RR=ti(),Bg=Object.prototype,OR=Bg.hasOwnProperty,DR=Bg.propertyIsEnumerable,IR=qg((function(){return arguments})())?qg:function(t){return RR(t)&&OR.call(t,"callee")&&!DR.call(t,"callee")};jg.exports=IR});var Ql=b((J4,Ug)=>{var PR=Array.isArray;Ug.exports=PR});var Gg=b((e6,Wg)=>{function LR(){return!1}Wg.exports=LR});var Vg=b((ln,ri)=>{var CR=ei(),NR=Gg(),Hg=typeof ln=="object"&&ln&&!ln.nodeType&&ln,zg=Hg&&typeof ri=="object"&&ri&&!ri.nodeType&&ri,MR=zg&&zg.exports===Hg,$g=MR?CR.Buffer:void 0,kR=$g?$g.isBuffer:void 0,FR=kR||NR;ri.exports=FR});var Kg=b((t6,Yg)=>{var qR=sn(),BR=Yl(),jR=ti(),UR="[object Arguments]",WR="[object Array]",GR="[object Boolean]",zR="[object Date]",$R="[object Error]",HR="[object Function]",VR="[object Map]",YR="[object Number]",KR="[object Object]",ZR="[object RegExp]",QR="[object Set]",XR="[object String]",JR="[object WeakMap]",eO="[object ArrayBuffer]",tO="[object DataView]",rO="[object Float32Array]",iO="[object Float64Array]",nO="[object Int8Array]",sO="[object Int16Array]",oO="[object Int32Array]",aO="[object Uint8Array]",lO="[object Uint8ClampedArray]",uO="[object Uint16Array]",fO="[object Uint32Array]",me={};me[rO]=me[iO]=me[nO]=me[sO]=me[oO]=me[aO]=me[lO]=me[uO]=me[fO]=!0;me[UR]=me[WR]=me[eO]=me[GR]=me[tO]=me[zR]=me[$R]=me[HR]=me[VR]=me[YR]=me[KR]=me[ZR]=me[QR]=me[XR]=me[JR]=!1;function cO(t){return jR(t)&&BR(t.length)&&!!me[qR(t)]}Yg.exports=cO});var Xl=b((r6,Zg)=>{function hO(t){return function(e){return t(e)}}Zg.exports=hO});var Xg=b((un,ii)=>{var dO=$l(),Qg=typeof un=="object"&&un&&!un.nodeType&&un,fn=Qg&&typeof ii=="object"&&ii&&!ii.nodeType&&ii,pO=fn&&fn.exports===Qg,Jl=pO&&dO.process,gO=(function(){try{var t=fn&&fn.require&&fn.require("util").types;return t||Jl&&Jl.binding&&Jl.binding("util")}catch{}})();ii.exports=gO});var ry=b((i6,ty)=>{var yO=Kg(),mO=Xl(),Jg=Xg(),ey=Jg&&Jg.isTypedArray,_O=ey?mO(ey):yO;ty.exports=_O});var ny=b((n6,iy)=>{var bO=Ng(),wO=Zl(),SO=Ql(),EO=Vg(),vO=Kl(),TO=ry(),AO=Object.prototype,xO=AO.hasOwnProperty;function RO(t,e){var r=SO(t),i=!r&&wO(t),n=!r&&!i&&EO(t),s=!r&&!i&&!n&&TO(t),o=r||i||n||s,a=o?bO(t.length,String):[],l=a.length;for(var u in t)(e||xO.call(t,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||vO(u,l)))&&a.push(u);return a}iy.exports=RO});var oy=b((s6,sy)=>{var OO=Object.prototype;function DO(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||OO;return t===r}sy.exports=DO});var ly=b((o6,ay)=>{function IO(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}ay.exports=IO});var fy=b((a6,uy)=>{var PO=on(),LO=oy(),CO=ly(),NO=Object.prototype,MO=NO.hasOwnProperty;function kO(t){if(!PO(t))return CO(t);var e=LO(t),r=[];for(var i in t)i=="constructor"&&(e||!MO.call(t,i))||r.push(i);return r}uy.exports=kO});var hy=b((l6,cy)=>{var FO=ny(),qO=fy(),BO=no();function jO(t){return BO(t)?FO(t,!0):qO(t)}cy.exports=jO});var gy=b((u6,py)=>{var UO=ro(),WO=io(),GO=Lg(),zO=hy(),dy=Object.prototype,$O=dy.hasOwnProperty,HO=UO(function(t,e){t=Object(t);var r=-1,i=e.length,n=i>2?e[2]:void 0;for(n&&GO(e[0],e[1],n)&&(i=1);++r<i;)for(var s=e[r],o=zO(s),a=-1,l=o.length;++a<l;){var u=o[a],f=t[u];(f===void 0||WO(f,dy[u])&&!$O.call(t,u))&&(t[u]=s[u])}return t});py.exports=HO});var Se=b((f6,yy)=>{"use strict";var eu=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}
|
|
13
|
+
`;super(r),this.name="AggregateError",this.errors=e}};yy.exports={AggregateError:eu,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 tu=b((c6,my)=>{"use strict";my.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 We=b((h6,wy)=>{"use strict";var{format:VO,inspect:so}=tu(),{AggregateError:YO}=Se(),KO=globalThis.AggregateError||YO,ZO=Symbol("kIsNodeError"),QO=["string","function","number","object","Function","Object","boolean","bigint","symbol"],XO=/^([A-Z][a-z0-9]*)+$/,JO="__node_internal_",oo={};function Sr(t,e){if(!t)throw new oo.ERR_INTERNAL_ASSERTION(e)}function _y(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 eD(t,e,r){if(typeof e=="function")return Sr(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 Sr(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:VO(e,...r)}function qe(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(eD(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[ZO]=!0,oo[t]=i}function by(t){let e=JO+t.name;return Object.defineProperty(t,"name",{value:e}),t}function tD(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new KO([e,t],e.message);return r.code=e.code,r}return t||e}var ru=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new oo.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};qe("ERR_ASSERTION","%s",Error);qe("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Sr(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)Sr(typeof l=="string","All expected entries have to be of type string"),QO.includes(l)?n.push(l.toLowerCase()):XO.test(l)?s.push(l):(Sr(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=so(r,{depth:-1});i+=`. Received ${l}`}}else{let l=so(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),i+=`. Received type ${typeof r} (${l})`}return i},TypeError);qe("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let i=so(e);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${i}`},TypeError);qe("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);qe("ERR_MISSING_ARGS",(...t)=>{Sr(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);qe("ERR_OUT_OF_RANGE",(t,e,r)=>{Sr(e,'Missing "range" argument');let i;if(Number.isInteger(r)&&Math.abs(r)>2**32)i=_y(String(r));else if(typeof r=="bigint"){i=String(r);let n=BigInt(2)**BigInt(32);(r>n||r<-n)&&(i=_y(i)),i+="n"}else i=so(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${i}`},RangeError);qe("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);qe("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);qe("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);qe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);qe("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);qe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);qe("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);qe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);qe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);qe("ERR_STREAM_WRITE_AFTER_END","write after end",Error);qe("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);wy.exports={AbortError:ru,aggregateTwoErrors:by(tD),hideStackFrames:by,codes:oo}});var Iy=b((dn,hn)=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});var xy=new WeakMap,iu=new WeakMap;function _e(t){let e=xy.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}function Sy(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 ni(t,e){xy.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,Ry(n))}}ni.prototype={get type(){return _e(this).event.type},get target(){return _e(this).eventTarget},get currentTarget(){return _e(this).currentTarget},composedPath(){let t=_e(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 _e(this).eventPhase},stopPropagation(){let t=_e(this);t.stopped=!0,typeof t.event.stopPropagation=="function"&&t.event.stopPropagation()},stopImmediatePropagation(){let t=_e(this);t.stopped=!0,t.immediateStopped=!0,typeof t.event.stopImmediatePropagation=="function"&&t.event.stopImmediatePropagation()},get bubbles(){return!!_e(this).event.bubbles},get cancelable(){return!!_e(this).event.cancelable},preventDefault(){Sy(_e(this))},get defaultPrevented(){return _e(this).canceled},get composed(){return!!_e(this).event.composed},get timeStamp(){return _e(this).timeStamp},get srcElement(){return _e(this).eventTarget},get cancelBubble(){return _e(this).stopped},set cancelBubble(t){if(!t)return;let e=_e(this);e.stopped=!0,typeof e.event.cancelBubble=="boolean"&&(e.event.cancelBubble=!0)},get returnValue(){return!_e(this).canceled},set returnValue(t){t||Sy(_e(this))},initEvent(){}};Object.defineProperty(ni.prototype,"constructor",{value:ni,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(ni.prototype,window.Event.prototype),iu.set(window.Event.prototype,ni));function Ry(t){return{get(){return _e(this).event[t]},set(e){_e(this).event[t]=e},configurable:!0,enumerable:!0}}function rD(t){return{value(){let e=_e(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function iD(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?rD(s):Ry(s))}}return i}function Oy(t){if(t==null||t===Object.prototype)return ni;let e=iu.get(t);return e==null&&(e=iD(Oy(Object.getPrototypeOf(t)),t),iu.set(t,e)),e}function nD(t,e){let r=Oy(Object.getPrototypeOf(e));return new r(t,e)}function sD(t){return _e(t).immediateStopped}function oD(t,e){_e(t).eventPhase=e}function aD(t,e){_e(t).currentTarget=e}function Ey(t,e){_e(t).passiveListener=e}var Dy=new WeakMap,vy=1,Ty=2,ao=3;function lo(t){return t!==null&&typeof t=="object"}function cn(t){let e=Dy.get(t);if(e==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function lD(t){return{get(){let r=cn(this).get(t);for(;r!=null;){if(r.listenerType===ao)return r.listener;r=r.next}return null},set(e){typeof e!="function"&&!lo(e)&&(e=null);let r=cn(this),i=null,n=r.get(t);for(;n!=null;)n.listenerType===ao?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:ao,passive:!1,once:!1,next:null};i===null?r.set(t,s):i.next=s}},configurable:!0,enumerable:!0}}function nu(t,e){Object.defineProperty(t,`on${e}`,lD(e))}function Ay(t){function e(){dt.call(this)}e.prototype=Object.create(dt.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(let r=0;r<t.length;++r)nu(e.prototype,t[r]);return e}function dt(){if(this instanceof dt){Dy.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return Ay(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 Ay(t)}throw new TypeError("Cannot call a class as a function")}dt.prototype={addEventListener(t,e,r){if(e==null)return;if(typeof e!="function"&&!lo(e))throw new TypeError("'listener' should be a function or an object.");let i=cn(this),n=lo(r),o=(n?!!r.capture:!!r)?vy:Ty,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=cn(this),s=(lo(r)?!!r.capture:!!r)?vy:Ty,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=cn(this),r=t.type,i=e.get(r);if(i==null)return!0;let n=nD(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,Ey(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!==ao&&typeof i.listener.handleEvent=="function"&&i.listener.handleEvent(n);if(sD(n))break;i=i.next}return Ey(n,null),oD(n,0),aD(n,null),!n.defaultPrevented}};Object.defineProperty(dt.prototype,"constructor",{value:dt,configurable:!0,writable:!0});typeof window<"u"&&typeof window.EventTarget<"u"&&Object.setPrototypeOf(dt.prototype,window.EventTarget.prototype);dn.defineEventAttribute=nu;dn.EventTarget=dt;dn.default=dt;hn.exports=dt;hn.exports.EventTarget=hn.exports.default=dt;hn.exports.defineEventAttribute=nu});var si=b((gn,pn)=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});var su=Iy(),Zt=class extends su.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=uo.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}};su.defineEventAttribute(Zt.prototype,"abort");function uD(){let t=Object.create(Zt.prototype);return su.EventTarget.call(t),uo.set(t,!1),t}function fD(t){uo.get(t)===!1&&(uo.set(t,!0),t.dispatchEvent({type:"abort"}))}var uo=new WeakMap;Object.defineProperties(Zt.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Zt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var Qt=class{constructor(){Ly.set(this,uD())}get signal(){return Py(this)}abort(){fD(Py(this))}},Ly=new WeakMap;function Py(t){let e=Ly.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(Qt.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Qt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});gn.AbortController=Qt;gn.AbortSignal=Zt;gn.default=Qt;pn.exports=Qt;pn.exports.AbortController=pn.exports.default=Qt;pn.exports.AbortSignal=Zt});var He=b((d6,au)=>{"use strict";var cD=W("buffer"),{format:hD,inspect:dD}=tu(),{codes:{ERR_INVALID_ARG_TYPE:ou}}=We(),{kResistStopPropagation:pD,AggregateError:gD,SymbolDispose:yD}=Se(),mD=globalThis.AbortSignal||si().AbortSignal,_D=globalThis.AbortController||si().AbortController,bD=Object.getPrototypeOf(async function(){}).constructor,Cy=globalThis.Blob||cD.Blob,wD=typeof Cy<"u"?function(e){return e instanceof Cy}:function(e){return!1},Ny=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new ou(e,"AbortSignal",t)},SD=(t,e)=>{if(typeof t!="function")throw new ou(e,"Function",t)};au.exports={AggregateError:gD,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:hD,inspect:dD,types:{isAsyncFunction(t){return t instanceof bD},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:wD,deprecate(t,e){return t},addAbortListener:W("events").addAbortListener||function(e,r){if(e===void 0)throw new ou("signal","AbortSignal",e);Ny(e,"signal"),SD(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[pD]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[yD](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:mD.any||function(e){if(e.length===1)return e[0];let r=new _D,i=()=>r.abort();return e.forEach(n=>{Ny(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};au.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var ai=b((p6,zy)=>{"use strict";var{ArrayIsArray:uu,ArrayPrototypeIncludes:qy,ArrayPrototypeJoin:By,ArrayPrototypeMap:ED,NumberIsInteger:fu,NumberIsNaN:vD,NumberMAX_SAFE_INTEGER:TD,NumberMIN_SAFE_INTEGER:AD,NumberParseInt:xD,ObjectPrototypeHasOwnProperty:RD,RegExpPrototypeExec:jy,String:OD,StringPrototypeToUpperCase:DD,StringPrototypeTrim:ID}=Se(),{hideStackFrames:st,codes:{ERR_SOCKET_BAD_PORT:PD,ERR_INVALID_ARG_TYPE:Ge,ERR_INVALID_ARG_VALUE:oi,ERR_OUT_OF_RANGE:Er,ERR_UNKNOWN_SIGNAL:My}}=We(),{normalizeEncoding:LD}=He(),{isAsyncFunction:CD,isArrayBufferView:ND}=He().types,ky={};function MD(t){return t===(t|0)}function kD(t){return t===t>>>0}var FD=/^[0-7]+$/,qD="must be a 32-bit unsigned integer or an octal string";function BD(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(jy(FD,t)===null)throw new oi(e,t,qD);t=xD(t,8)}return Uy(t,e),t}var jD=st((t,e,r=AD,i=TD)=>{if(typeof t!="number")throw new Ge(e,"number",t);if(!fu(t))throw new Er(e,"an integer",t);if(t<r||t>i)throw new Er(e,`>= ${r} && <= ${i}`,t)}),UD=st((t,e,r=-2147483648,i=2147483647)=>{if(typeof t!="number")throw new Ge(e,"number",t);if(!fu(t))throw new Er(e,"an integer",t);if(t<r||t>i)throw new Er(e,`>= ${r} && <= ${i}`,t)}),Uy=st((t,e,r=!1)=>{if(typeof t!="number")throw new Ge(e,"number",t);if(!fu(t))throw new Er(e,"an integer",t);let i=r?1:0,n=4294967295;if(t<i||t>n)throw new Er(e,`>= ${i} && <= ${n}`,t)});function cu(t,e){if(typeof t!="string")throw new Ge(e,"string",t)}function WD(t,e,r=void 0,i){if(typeof t!="number")throw new Ge(e,"number",t);if(r!=null&&t<r||i!=null&&t>i||(r!=null||i!=null)&&vD(t))throw new Er(e,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,t)}var GD=st((t,e,r)=>{if(!qy(r,t)){let n="must be one of: "+By(ED(r,s=>typeof s=="string"?`'${s}'`:OD(s)),", ");throw new oi(e,t,n)}});function Wy(t,e){if(typeof t!="boolean")throw new Ge(e,"boolean",t)}function lu(t,e,r){return t==null||!RD(t,e)?r:t[e]}var zD=st((t,e,r=null)=>{let i=lu(r,"allowArray",!1),n=lu(r,"allowFunction",!1);if(!lu(r,"nullable",!1)&&t===null||!i&&uu(t)||typeof t!="object"&&(!n||typeof t!="function"))throw new Ge(e,"Object",t)}),$D=st((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new Ge(e,"a dictionary",t)}),fo=st((t,e,r=0)=>{if(!uu(t))throw new Ge(e,"Array",t);if(t.length<r){let i=`must be longer than ${r}`;throw new oi(e,t,i)}});function HD(t,e){fo(t,e);for(let r=0;r<t.length;r++)cu(t[r],`${e}[${r}]`)}function VD(t,e){fo(t,e);for(let r=0;r<t.length;r++)Wy(t[r],`${e}[${r}]`)}function YD(t,e){fo(t,e);for(let r=0;r<t.length;r++){let i=t[r],n=`${e}[${r}]`;if(i==null)throw new Ge(n,"AbortSignal",i);Gy(i,n)}}function KD(t,e="signal"){if(cu(t,e),ky[t]===void 0)throw ky[DD(t)]!==void 0?new My(t+" (signals must use all capital letters)"):new My(t)}var ZD=st((t,e="buffer")=>{if(!ND(t))throw new Ge(e,["Buffer","TypedArray","DataView"],t)});function QD(t,e){let r=LD(e),i=t.length;if(r==="hex"&&i%2!==0)throw new oi("encoding",e,`is invalid for data of length ${i}`)}function XD(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&ID(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new PD(e,t,r);return t|0}var Gy=st((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Ge(e,"AbortSignal",t)}),JD=st((t,e)=>{if(typeof t!="function")throw new Ge(e,"Function",t)}),eI=st((t,e)=>{if(typeof t!="function"||CD(t))throw new Ge(e,"Function",t)}),tI=st((t,e)=>{if(t!==void 0)throw new Ge(e,"undefined",t)});function rI(t,e,r){if(!qy(r,t))throw new Ge(e,`('${By(r,"|")}')`,t)}var iI=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Fy(t,e){if(typeof t>"u"||!jy(iI,t))throw new oi(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function nI(t){if(typeof t=="string")return Fy(t,"hints"),t;if(uu(t)){let e=t.length,r="";if(e===0)return r;for(let i=0;i<e;i++){let n=t[i];Fy(n,"hints"),r+=n,i!==e-1&&(r+=", ")}return r}throw new oi("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}zy.exports={isInt32:MD,isUint32:kD,parseFileMode:BD,validateArray:fo,validateStringArray:HD,validateBooleanArray:VD,validateAbortSignalArray:YD,validateBoolean:Wy,validateBuffer:ZD,validateDictionary:$D,validateEncoding:QD,validateFunction:JD,validateInt32:UD,validateInteger:jD,validateNumber:WD,validateObject:zD,validateOneOf:GD,validatePlainFunction:eI,validatePort:XD,validateSignalName:KD,validateString:cu,validateUint32:Uy,validateUndefined:tI,validateUnion:rI,validateAbortSignal:Gy,validateLinkHeaderValue:nI}});var Xt=b((g6,$y)=>{$y.exports=global.process});var Et=b((y6,om)=>{"use strict";var{SymbolAsyncIterator:Hy,SymbolIterator:Vy,SymbolFor:vr}=Se(),Yy=vr("nodejs.stream.destroyed"),Ky=vr("nodejs.stream.errored"),hu=vr("nodejs.stream.readable"),du=vr("nodejs.stream.writable"),Zy=vr("nodejs.stream.disturbed"),sI=vr("nodejs.webstream.isClosedPromise"),oI=vr("nodejs.webstream.controllerErrorFunction");function co(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 ho(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 St(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function Qy(t){return!!(t&&!St(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function Xy(t){return!!(t&&!St(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function Jy(t){return!!(t&&!St(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function lI(t){return Qy(t)||Xy(t)||Jy(t)}function uI(t,e){return t==null?!1:e===!0?typeof t[Hy]=="function":e===!1?typeof t[Vy]=="function":typeof t[Hy]=="function"||typeof t[Vy]=="function"}function po(t){if(!St(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!!(t.destroyed||t[Yy]||i!=null&&i.destroyed)}function em(t){if(!ho(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 fI(t,e){if(!ho(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 cI(t){if(!co(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 tm(t,e){if(!co(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 rm(t){return t&&t[hu]!=null?t[hu]:typeof t?.readable!="boolean"?null:po(t)?!1:co(t)&&t.readable&&!tm(t)}function im(t){return t&&t[du]!=null?t[du]:typeof t?.writable!="boolean"?null:po(t)?!1:ho(t)&&t.writable&&!em(t)}function hI(t,e){return St(t)?po(t)?!0:!(e?.readable!==!1&&rm(t)||e?.writable!==!1&&im(t)):null}function dI(t){var e,r;return St(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 pI(t){var e,r;return St(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 gI(t){if(!St(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"&&nm(t)?t._closed:null}function nm(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function sm(t){return typeof t._sent100=="boolean"&&nm(t)}function yI(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 mI(t){if(!St(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!i&&sm(t)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function _I(t){var e;return!!(t&&((e=t[Zy])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function bI(t){var e,r,i,n,s,o,a,l,u,f;return!!(t&&((e=(r=(i=(n=(s=(o=t[Ky])!==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))}om.exports={isDestroyed:po,kIsDestroyed:Yy,isDisturbed:_I,kIsDisturbed:Zy,isErrored:bI,kIsErrored:Ky,isReadable:rm,kIsReadable:hu,kIsClosedPromise:sI,kControllerErrorFunction:oI,kIsWritable:du,isClosed:gI,isDuplexNodeStream:aI,isFinished:hI,isIterable:uI,isReadableNodeStream:co,isReadableStream:Qy,isReadableEnded:cI,isReadableFinished:tm,isReadableErrored:pI,isNodeStream:St,isWebStream:lI,isWritable:im,isWritableNodeStream:ho,isWritableStream:Xy,isWritableEnded:em,isWritableFinished:fI,isWritableErrored:dI,isServerRequest:yI,isServerResponse:sm,willEmitClose:mI,isTransformStream:Jy}});var qt=b((m6,_u)=>{"use strict";var Jt=Xt(),{AbortError:gm,codes:wI}=We(),{ERR_INVALID_ARG_TYPE:SI,ERR_STREAM_PREMATURE_CLOSE:am}=wI,{kEmptyObject:gu,once:yu}=He(),{validateAbortSignal:EI,validateFunction:vI,validateObject:TI,validateBoolean:AI}=ai(),{Promise:xI,PromisePrototypeThen:RI,SymbolDispose:ym}=Se(),{isClosed:OI,isReadable:lm,isReadableNodeStream:pu,isReadableStream:DI,isReadableFinished:um,isReadableErrored:fm,isWritable:cm,isWritableNodeStream:hm,isWritableStream:II,isWritableFinished:dm,isWritableErrored:pm,isNodeStream:PI,willEmitClose:LI,kIsClosedPromise:CI}=Et(),li;function NI(t){return t.setHeader&&typeof t.abort=="function"}var mu=()=>{};function mm(t,e,r){var i,n;if(arguments.length===2?(r=e,e=gu):e==null?e=gu:TI(e,"options"),vI(r,"callback"),EI(e.signal,"options.signal"),r=yu(r),DI(t)||II(t))return MI(t,e,r);if(!PI(t))throw new SI("stream",["ReadableStream","WritableStream","Stream"],t);let s=(i=e.readable)!==null&&i!==void 0?i:pu(t),o=(n=e.writable)!==null&&n!==void 0?n:hm(t),a=t._writableState,l=t._readableState,u=()=>{t.writable||g()},f=LI(t)&&pu(t)===s&&hm(t)===o,h=dm(t,!1),g=()=>{h=!0,t.destroyed&&(f=!1),!(f&&(!t.readable||s))&&(!s||y)&&r.call(t)},y=um(t,!1),E=()=>{y=!0,t.destroyed&&(f=!1),!(f&&(!t.writable||o))&&(!o||h)&&r.call(t)},m=q=>{r.call(t,q)},v=OI(t),S=()=>{v=!0;let q=pm(t)||fm(t);if(q&&typeof q!="boolean")return r.call(t,q);if(s&&!y&&pu(t,!0)&&!um(t,!1))return r.call(t,new am);if(o&&!h&&!dm(t,!1))return r.call(t,new am);r.call(t)},R=()=>{v=!0;let q=pm(t)||fm(t);if(q&&typeof q!="boolean")return r.call(t,q);r.call(t)},L=()=>{t.req.on("finish",g)};NI(t)?(t.on("complete",g),f||t.on("abort",S),t.req?L():t.on("request",L)):o&&!a&&(t.on("end",u),t.on("close",u)),!f&&typeof t.aborted=="boolean"&&t.on("aborted",S),t.on("end",E),t.on("finish",g),e.error!==!1&&t.on("error",m),t.on("close",S),v?Jt.nextTick(S):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?f||Jt.nextTick(R):(!s&&(!f||lm(t))&&(h||cm(t)===!1)||!o&&(!f||cm(t))&&(y||lm(t)===!1)||l&&t.req&&t.aborted)&&Jt.nextTick(R);let D=()=>{r=mu,t.removeListener("aborted",S),t.removeListener("complete",g),t.removeListener("abort",S),t.removeListener("request",L),t.req&&t.req.removeListener("finish",g),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",g),t.removeListener("end",E),t.removeListener("error",m),t.removeListener("close",S)};if(e.signal&&!v){let q=()=>{let Z=r;D(),Z.call(t,new gm(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)Jt.nextTick(q);else{li=li||He().addAbortListener;let Z=li(e.signal,q),P=r;r=yu((...B)=>{Z[ym](),P.apply(t,B)})}}return D}function MI(t,e,r){let i=!1,n=mu;if(e.signal)if(n=()=>{i=!0,r.call(t,new gm(void 0,{cause:e.signal.reason}))},e.signal.aborted)Jt.nextTick(n);else{li=li||He().addAbortListener;let o=li(e.signal,n),a=r;r=yu((...l)=>{o[ym](),a.apply(t,l)})}let s=(...o)=>{i||Jt.nextTick(()=>r.apply(t,o))};return RI(t[CI].promise,s,s),mu}function kI(t,e){var r;let i=!1;return e===null&&(e=gu),(r=e)!==null&&r!==void 0&&r.cleanup&&(AI(e.cleanup,"cleanup"),i=e.cleanup),new xI((n,s)=>{let o=mm(t,e,a=>{i&&o(),a?s(a):n()})})}_u.exports=mm;_u.exports.finished=kI});var Tr=b((_6,Am)=>{"use strict";var vt=Xt(),{aggregateTwoErrors:FI,codes:{ERR_MULTIPLE_CALLBACK:qI},AbortError:BI}=We(),{Symbol:wm}=Se(),{kIsDestroyed:jI,isDestroyed:UI,isFinished:WI,isServerRequest:GI}=Et(),Sm=wm("kDestroy"),bu=wm("kConstruct");function Em(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function zI(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):(Em(t,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),n.constructed?_m(this,t,e):this.once(Sm,function(s){_m(this,FI(s,t),e)}),this)}function _m(t,e,r){let i=!1;function n(s){if(i)return;i=!0;let o=t._readableState,a=t._writableState;Em(s,a,o),a&&(a.closed=!0),o&&(o.closed=!0),typeof r=="function"&&r(s),s?vt.nextTick($I,t,s):vt.nextTick(vm,t)}try{t._destroy(e||null,n)}catch(s){n(s)}}function $I(t,e){wu(t,e),vm(t)}function vm(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 wu(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 HI(){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 Su(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?vt.nextTick(wu,t,e):wu(t,e))}function VI(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(bu,e),!(t.listenerCount(bu)>1)&&vt.nextTick(YI,t)}function YI(t){let e=!1;function r(i){if(e){Su(t,i??new qI);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(Sm,i):i?Su(t,i,!0):vt.nextTick(KI,t)}try{t._construct(i=>{vt.nextTick(r,i)})}catch(i){vt.nextTick(r,i)}}function KI(t){t.emit(bu)}function bm(t){return t?.setHeader&&typeof t.abort=="function"}function Tm(t){t.emit("close")}function ZI(t,e){t.emit("error",e),vt.nextTick(Tm,t)}function QI(t,e){!t||UI(t)||(!e&&!WI(t)&&(e=new BI),GI(t)?(t.socket=null,t.destroy(e)):bm(t)?t.abort():bm(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?vt.nextTick(ZI,t,e):vt.nextTick(Tm,t),t.destroyed||(t[jI]=!0))}Am.exports={construct:VI,destroyer:QI,destroy:zI,undestroy:HI,errorOrDestroy:Su}});var mo=b((b6,Rm)=>{"use strict";var{ArrayIsArray:XI,ObjectSetPrototypeOf:xm}=Se(),{EventEmitter:go}=W("events");function yo(t){go.call(this,t)}xm(yo.prototype,go.prototype);xm(yo,go);yo.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(),go.listenerCount(this,"error")===0&&this.emit("error",f)}Eu(r,"error",l),Eu(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 Eu(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):XI(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}Rm.exports={Stream:yo,prependListener:Eu}});var yn=b((w6,_o)=>{"use strict";var{SymbolDispose:JI}=Se(),{AbortError:Om,codes:eP}=We(),{isNodeStream:Dm,isWebStream:tP,kControllerErrorFunction:rP}=Et(),iP=qt(),{ERR_INVALID_ARG_TYPE:Im}=eP,vu,nP=(t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new Im(e,"AbortSignal",t)};_o.exports.addAbortSignal=function(e,r){if(nP(e,"signal"),!Dm(r)&&!tP(r))throw new Im("stream",["ReadableStream","WritableStream","Stream"],r);return _o.exports.addAbortSignalNoValidate(e,r)};_o.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let r=Dm(e)?()=>{e.destroy(new Om(void 0,{cause:t.reason}))}:()=>{e[rP](new Om(void 0,{cause:t.reason}))};if(t.aborted)r();else{vu=vu||He().addAbortListener;let i=vu(t,r);iP(e,i[JI])}return e}});var Cm=b((E6,Lm)=>{"use strict";var{StringPrototypeSlice:Pm,SymbolIterator:sP,TypedArrayPrototypeSet:bo,Uint8Array:oP}=Se(),{Buffer:Tu}=W("buffer"),{inspect:aP}=He();Lm.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 Tu.alloc(0);let r=Tu.allocUnsafe(e>>>0),i=this.head,n=0;for(;i;)bo(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}*[sP](){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+=Pm(s,0,e),this.head=i,i.data=Pm(s,e));break}++n}while((i=i.next)!==null);return this.length-=n,r}_getBuffer(e){let r=Tu.allocUnsafe(e),i=e,n=this.head,s=0;do{let o=n.data;if(e>o.length)bo(r,o,i-e),e-=o.length;else{e===o.length?(bo(r,o,i-e),++s,n.next?this.head=n.next:this.head=this.tail=null):(bo(r,new oP(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 aP(this,{...r,depth:0,customInspect:!1})}}});var mn=b((v6,Fm)=>{"use strict";var{MathFloor:lP,NumberIsInteger:uP}=Se(),{validateInteger:fP}=ai(),{ERR_INVALID_ARG_VALUE:cP}=We().codes,Nm=16*1024,Mm=16;function hP(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function km(t){return t?Mm:Nm}function dP(t,e){fP(e,"value",0),t?Mm=e:Nm=e}function pP(t,e,r,i){let n=hP(e,i,r);if(n!=null){if(!uP(n)||n<0){let s=i?`options.${r}`:"options.highWaterMark";throw new cP(s,n)}return lP(n)}return km(t.objectMode)}Fm.exports={getHighWaterMark:pP,getDefaultHighWaterMark:km,setDefaultHighWaterMark:dP}});var jm=b(Bm=>{"use strict";var xu=u1().Buffer,qm=xu.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 gP(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 yP(t){var e=gP(t);if(typeof e!="string"&&(xu.isEncoding===qm||!qm(t)))throw new Error("Unknown encoding: "+t);return e||t}Bm.StringDecoder=_n;function _n(t){this.encoding=yP(t);var e;switch(this.encoding){case"utf16le":this.text=EP,this.end=vP,e=4;break;case"utf8":this.fillLast=bP,e=4;break;case"base64":this.text=TP,this.end=AP,e=3;break;default:this.write=xP,this.end=RP;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=xu.allocUnsafe(e)}_n.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||""};_n.prototype.end=SP;_n.prototype.text=wP;_n.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 Au(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function mP(t,e,r){var i=e.length-1;if(i<r)return 0;var n=Au(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=Au(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=Au(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function _P(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 bP(t){var e=this.lastTotal-this.lastNeed,r=_P(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 wP(t,e){var r=mP(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 SP(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function EP(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 vP(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 TP(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 AP(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function xP(t){return t.toString(this.encoding)}function RP(t){return t&&t.length?this.write(t):""}});var Ru=b((A6,zm)=>{"use strict";var Um=Xt(),{PromisePrototypeThen:OP,SymbolAsyncIterator:Wm,SymbolIterator:Gm}=Se(),{Buffer:DP}=W("buffer"),{ERR_INVALID_ARG_TYPE:IP,ERR_STREAM_NULL_VALUES:PP}=We().codes;function LP(t,e,r){let i;if(typeof e=="string"||e instanceof DP)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let n;if(e&&e[Wm])n=!0,i=e[Wm]();else if(e&&e[Gm])n=!1,i=e[Gm]();else throw new IP("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){OP(a(u),()=>Um.nextTick(f,u),h=>Um.nextTick(f,h||u))};async function a(u){let f=u!=null,h=typeof i.throw=="function";if(f&&h){let{value:g,done:y}=await i.throw(u);if(await g,y)return}if(typeof i.return=="function"){let{value:g}=await i.return();await g}}async function l(){for(;;){try{let{value:u,done:f}=n?await i.next():i.next();if(f)s.push(null);else{let h=u&&typeof u.then=="function"?await u:u;if(h===null)throw o=!1,new PP;if(s.push(h))continue;o=!1}}catch(u){s.destroy(u)}break}}return s}zm.exports=LP});var wn=b((x6,l_)=>{"use strict";var pt=Xt(),{ArrayPrototypeIndexOf:CP,NumberIsInteger:NP,NumberIsNaN:MP,NumberParseInt:kP,ObjectDefineProperties:Mu,ObjectKeys:FP,ObjectSetPrototypeOf:Vm,Promise:Ym,SafeSet:qP,SymbolAsyncDispose:BP,SymbolAsyncIterator:jP,Symbol:UP}=Se();l_.exports=Y;Y.ReadableState=vo;var{EventEmitter:WP}=W("events"),{Stream:er,prependListener:GP}=mo(),{Buffer:Ou}=W("buffer"),{addAbortSignal:zP}=yn(),Km=qt(),X=He().debuglog("stream",t=>{X=t}),$P=Cm(),ci=Tr(),{getHighWaterMark:HP,getDefaultHighWaterMark:VP}=mn(),{aggregateTwoErrors:$m,codes:{ERR_INVALID_ARG_TYPE:YP,ERR_METHOD_NOT_IMPLEMENTED:KP,ERR_OUT_OF_RANGE:ZP,ERR_STREAM_PUSH_AFTER_EOF:QP,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:XP},AbortError:JP}=We(),{validateObject:eL}=ai(),Ar=UP("kPaused"),{StringDecoder:Zm}=jm(),tL=Ru();Vm(Y.prototype,er.prototype);Vm(Y,er);var Du=()=>{},{errorOrDestroy:ui}=ci,fi=1,rL=2,Qm=4,bn=8,Xm=16,wo=32,So=64,Jm=128,iL=256,nL=512,sL=1024,Cu=2048,Nu=4096,oL=8192,aL=16384,lL=32768,e_=65536,uL=1<<17,fL=1<<18;function De(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}Mu(vo.prototype,{objectMode:De(fi),ended:De(rL),endEmitted:De(Qm),reading:De(bn),constructed:De(Xm),sync:De(wo),needReadable:De(So),emittedReadable:De(Jm),readableListening:De(iL),resumeScheduled:De(nL),errorEmitted:De(sL),emitClose:De(Cu),autoDestroy:De(Nu),destroyed:De(oL),closed:De(aL),closeEmitted:De(lL),multiAwaitDrain:De(e_),readingMore:De(uL),dataEmitted:De(fL)});function vo(t,e,r){typeof r!="boolean"&&(r=e instanceof Tt()),this.state=Cu|Nu|Xm|wo,t&&t.objectMode&&(this.state|=fi),r&&t&&t.readableObjectMode&&(this.state|=fi),this.highWaterMark=t?HP(this,t,"readableHighWaterMark",r):VP(!1),this.buffer=new $P,this.length=0,this.pipes=[],this.flowing=null,this[Ar]=null,t&&t.emitClose===!1&&(this.state&=~Cu),t&&t.autoDestroy===!1&&(this.state&=~Nu),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new Zm(t.encoding),this.encoding=t.encoding)}function Y(t){if(!(this instanceof Y))return new Y(t);let e=this instanceof Tt();this._readableState=new vo(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&&zP(t.signal,this)),er.call(this,t),ci.construct(this,()=>{this._readableState.needReadable&&Eo(this,this._readableState)})}Y.prototype.destroy=ci.destroy;Y.prototype._undestroy=ci.undestroy;Y.prototype._destroy=function(t,e){e(t)};Y.prototype[WP.captureRejectionSymbol]=function(t){this.destroy(t)};Y.prototype[BP]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new JP,this.destroy(t)),new Ym((e,r)=>Km(this,i=>i&&i!==t?r(i):e(null)))};Y.prototype.push=function(t,e){return t_(this,t,e,!1)};Y.prototype.unshift=function(t,e){return t_(this,t,e,!0)};function t_(t,e,r,i){X("readableAddChunk",e);let n=t._readableState,s;if((n.state&fi)===0&&(typeof e=="string"?(r=r||n.defaultEncoding,n.encoding!==r&&(i&&n.encoding?e=Ou.from(e,r).toString(n.encoding):(e=Ou.from(e,r),r=""))):e instanceof Ou?r="":er._isUint8Array(e)?(e=er._uint8ArrayToBuffer(e),r=""):e!=null&&(s=new YP("chunk",["string","Buffer","Uint8Array"],e))),s)ui(t,s);else if(e===null)n.state&=~bn,dL(t,n);else if((n.state&fi)!==0||e&&e.length>0)if(i)if((n.state&Qm)!==0)ui(t,new XP);else{if(n.destroyed||n.errored)return!1;Iu(t,n,e,!0)}else if(n.ended)ui(t,new QP);else{if(n.destroyed||n.errored)return!1;n.state&=~bn,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?Iu(t,n,e,!1):Eo(t,n)):Iu(t,n,e,!1)}else i||(n.state&=~bn,Eo(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&e_)!==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&So)!==0&&To(t)),Eo(t,e)}Y.prototype.isPaused=function(){let t=this._readableState;return t[Ar]===!0||t.flowing===!1};Y.prototype.setEncoding=function(t){let e=new Zm(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 cL=1073741824;function hL(t){if(t>cL)throw new ZP("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function Hm(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&fi)!==0?1:MP(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}Y.prototype.read=function(t){X("read",t),t===void 0?t=NaN:NP(t)||(t=kP(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=hL(t)),t!==0&&(e.state&=~Jm),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return X("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Pu(this):To(this),null;if(t=Hm(t,e),t===0&&e.ended)return e.length===0&&Pu(this),null;let i=(e.state&So)!==0;if(X("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,X("length less than watermark",i)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)i=!1,X("reading, ended or constructing",i);else if(i){X("do read"),e.state|=bn|wo,e.length===0&&(e.state|=So);try{this._read(e.highWaterMark)}catch(s){ui(this,s)}e.state&=~wo,e.reading||(t=Hm(r,e))}let n;return t>0?n=o_(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&&Pu(this)),n!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",n)),n};function dL(t,e){if(X("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?To(t):(e.needReadable=!1,e.emittedReadable=!0,r_(t))}}function To(t){let e=t._readableState;X("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(X("emitReadable",e.flowing),e.emittedReadable=!0,pt.nextTick(r_,t))}function r_(t){let e=t._readableState;X("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,n_(t)}function Eo(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,pt.nextTick(pL,t,e))}function pL(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){let r=e.length;if(X("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}Y.prototype._read=function(t){throw new KP("_read()")};Y.prototype.pipe=function(t,e){let r=this,i=this._readableState;i.pipes.length===1&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new qP(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(t),X("pipe count=%d opts=%j",i.pipes.length,e);let s=(!e||e.end!==!1)&&t!==pt.stdout&&t!==pt.stderr?a:v;i.endEmitted?pt.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(S,R){X("onunpipe"),S===r&&R&&R.hasUnpiped===!1&&(R.hasUnpiped=!0,f())}function a(){X("onend"),t.end()}let l,u=!1;function f(){X("cleanup"),t.removeListener("close",E),t.removeListener("finish",m),l&&t.removeListener("drain",l),t.removeListener("error",y),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",v),r.removeListener("data",g),u=!0,l&&i.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}function h(){u||(i.pipes.length===1&&i.pipes[0]===t?(X("false write response, pause",0),i.awaitDrainWriters=t,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(t)&&(X("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(t)),r.pause()),l||(l=gL(r,t),t.on("drain",l))}r.on("data",g);function g(S){X("ondata");let R=t.write(S);X("dest.write",R),R===!1&&h()}function y(S){if(X("onerror",S),v(),t.removeListener("error",y),t.listenerCount("error")===0){let R=t._writableState||t._readableState;R&&!R.errorEmitted?ui(t,S):t.emit("error",S)}}GP(t,"error",y);function E(){t.removeListener("finish",m),v()}t.once("close",E);function m(){X("onfinish"),t.removeListener("close",E),v()}t.once("finish",m);function v(){X("unpipe"),r.unpipe(t)}return t.emit("pipe",r),t.writableNeedDrain===!0?h():i.flowing||(X("pipe resume"),r.resume()),t};function gL(t,e){return function(){let i=t._readableState;i.awaitDrainWriters===e?(X("pipeOnDrain",1),i.awaitDrainWriters=null):i.multiAwaitDrain&&(X("pipeOnDrain",i.awaitDrainWriters.size),i.awaitDrainWriters.delete(e)),(!i.awaitDrainWriters||i.awaitDrainWriters.size===0)&&t.listenerCount("data")&&t.resume()}}Y.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=CP(e.pipes,t);return i===-1?this:(e.pipes.splice(i,1),e.pipes.length===0&&this.pause(),t.emit("unpipe",this,r),this)};Y.prototype.on=function(t,e){let r=er.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,X("on readable",i.length,i.reading),i.length?To(this):i.reading||pt.nextTick(yL,this)),r};Y.prototype.addListener=Y.prototype.on;Y.prototype.removeListener=function(t,e){let r=er.prototype.removeListener.call(this,t,e);return t==="readable"&&pt.nextTick(i_,this),r};Y.prototype.off=Y.prototype.removeListener;Y.prototype.removeAllListeners=function(t){let e=er.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&pt.nextTick(i_,this),e};function i_(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[Ar]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function yL(t){X("readable nexttick read 0"),t.read(0)}Y.prototype.resume=function(){let t=this._readableState;return t.flowing||(X("resume"),t.flowing=!t.readableListening,mL(this,t)),t[Ar]=!1,this};function mL(t,e){e.resumeScheduled||(e.resumeScheduled=!0,pt.nextTick(_L,t,e))}function _L(t,e){X("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),n_(t),e.flowing&&!e.reading&&t.read(0)}Y.prototype.pause=function(){return X("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(X("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[Ar]=!0,this};function n_(t){let e=t._readableState;for(X("flow",e.flowing);e.flowing&&t.read()!==null;);}Y.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=>{ui(this,i)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=FP(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};Y.prototype[jP]=function(){return s_(this)};Y.prototype.iterator=function(t){return t!==void 0&&eL(t,"options"),s_(this,t)};function s_(t,e){typeof t.read!="function"&&(t=Y.wrap(t,{objectMode:!0}));let r=bL(t,e);return r.stream=t,r}async function*bL(t,e){let r=Du;function i(o){this===t?(r(),r=Du):r=o}t.on("readable",i);let n,s=Km(t,{writable:!1},o=>{n=o?$m(n,o):null,r(),r=Du});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 Ym(i)}}}catch(o){throw n=$m(n,o),n}finally{(n||e?.destroyOnReturn!==!1)&&(n===void 0||t._readableState.autoDestroy)?ci.destroyer(t,null):(t.off("readable",i),s())}}Mu(Y.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}}});Mu(vo.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[Ar]!==!1},set(t){this[Ar]=!!t}}});Y._fromList=o_;function o_(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 Pu(t){let e=t._readableState;X("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,pt.nextTick(wL,e,t))}function wL(t,e){if(X("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)pt.nextTick(SL,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}function SL(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}Y.from=function(t,e){return tL(Y,t,e)};var Lu;function a_(){return Lu===void 0&&(Lu={}),Lu}Y.fromWeb=function(t,e){return a_().newStreamReadableFromReadableStream(t,e)};Y.toWeb=function(t,e){return a_().newReadableStreamFromStreamReadable(t,e)};Y.wrap=function(t,e){var r,i;return new Y({objectMode:(r=(i=t.readableObjectMode)!==null&&i!==void 0?i:t.objectMode)!==null&&r!==void 0?r:!0,...e,destroy(n,s){ci.destroyer(t,n),s(n)}}).wrap(t)}});var Do=b((R6,w_)=>{"use strict";var xr=Xt(),{ArrayPrototypeSlice:c_,Error:EL,FunctionPrototypeSymbolHasInstance:h_,ObjectDefineProperty:d_,ObjectDefineProperties:vL,ObjectSetPrototypeOf:p_,StringPrototypeToLowerCase:TL,Symbol:AL,SymbolHasInstance:xL}=Se();w_.exports=ve;ve.WritableState=vn;var{EventEmitter:RL}=W("events"),Sn=mo().Stream,{Buffer:Ao}=W("buffer"),Oo=Tr(),{addAbortSignal:OL}=yn(),{getHighWaterMark:DL,getDefaultHighWaterMark:IL}=mn(),{ERR_INVALID_ARG_TYPE:PL,ERR_METHOD_NOT_IMPLEMENTED:LL,ERR_MULTIPLE_CALLBACK:g_,ERR_STREAM_CANNOT_PIPE:CL,ERR_STREAM_DESTROYED:En,ERR_STREAM_ALREADY_FINISHED:NL,ERR_STREAM_NULL_VALUES:ML,ERR_STREAM_WRITE_AFTER_END:kL,ERR_UNKNOWN_ENCODING:y_}=We().codes,{errorOrDestroy:hi}=Oo;p_(ve.prototype,Sn.prototype);p_(ve,Sn);function qu(){}var di=AL("kOnFinished");function vn(t,e,r){typeof r!="boolean"&&(r=e instanceof Tt()),this.objectMode=!!(t&&t.objectMode),r&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?DL(this,t,"writableHighWaterMark",r):IL(!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=qL.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,Ro(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[di]=[]}function Ro(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}vn.prototype.getBuffer=function(){return c_(this.buffered,this.bufferedIndex)};d_(vn.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function ve(t){let e=this instanceof Tt();if(!e&&!h_(ve,this))return new ve(t);this._writableState=new vn(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&&OL(t.signal,this)),Sn.call(this,t),Oo.construct(this,()=>{let r=this._writableState;r.writing||ju(this,r),Uu(this,r)})}d_(ve,xL,{__proto__:null,value:function(t){return h_(this,t)?!0:this!==ve?!1:t&&t._writableState instanceof vn}});ve.prototype.pipe=function(){hi(this,new CL)};function m_(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"&&!Ao.isEncoding(r))throw new y_(r);typeof i!="function"&&(i=qu)}if(e===null)throw new ML;if(!n.objectMode)if(typeof e=="string")n.decodeStrings!==!1&&(e=Ao.from(e,r),r="buffer");else if(e instanceof Ao)r="buffer";else if(Sn._isUint8Array(e))e=Sn._uint8ArrayToBuffer(e),r="buffer";else throw new PL("chunk",["string","Buffer","Uint8Array"],e);let s;return n.ending?s=new kL:n.destroyed&&(s=new En("write")),s?(xr.nextTick(i,s),hi(t,s,!0),s):(n.pendingcb++,FL(t,n,e,r,i))}ve.prototype.write=function(t,e,r){return m_(this,t,e,r)===!0};ve.prototype.cork=function(){this._writableState.corked++};ve.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||ju(this,t))};ve.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=TL(e)),!Ao.isEncoding(e))throw new y_(e);return this._writableState.defaultEncoding=e,this};function FL(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!==qu&&(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 u_(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new En("write")):r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function f_(t,e,r,i){--e.pendingcb,i(r),Bu(e),hi(t,r)}function qL(t,e){let r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function"){hi(t,new g_);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?xr.nextTick(f_,t,r,e,n):f_(t,r,e,n)):(r.buffered.length>r.bufferedIndex&&ju(t,r),i?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===n?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:n,stream:t,state:r},xr.nextTick(BL,r.afterWriteTickInfo)):__(t,r,1,n))}function BL({stream:t,state:e,count:r,cb:i}){return e.afterWriteTickInfo=null,__(t,e,r,i)}function __(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&&Bu(e),Uu(t,e)}function Bu(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 En("write"))}let r=t[di].splice(0);for(let n=0;n<r.length;n++){var i;r[n]((i=t.errored)!==null&&i!==void 0?i:new En("end"))}Ro(t)}function ju(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?qu:u=>{for(let f=o;f<r.length;++f)r[f].callback(u)},l=e.allNoop&&o===0?r:c_(r,o);l.allBuffers=e.allBuffers,u_(t,e,!0,e.length,l,"",a),Ro(e)}else{do{let{chunk:a,encoding:l,callback:u}=r[o];r[o++]=null;let f=n?1:a.length;u_(t,e,!1,f,a,l,u)}while(o<r.length&&!e.writing);o===r.length?Ro(e):o>256?(r.splice(0,o),e.bufferedIndex=0):e.bufferedIndex=o}e.bufferProcessing=!1}ve.prototype._write=function(t,e,r){if(this._writev)this._writev([{chunk:t,encoding:e}],r);else throw new LL("_write()")};ve.prototype._writev=null;ve.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=m_(this,t,e);s instanceof EL&&(n=s)}return i.corked&&(i.corked=1,this.uncork()),n||(!i.errored&&!i.ending?(i.ending=!0,Uu(this,i,!0),i.ended=!0):i.finished?n=new NL("end"):i.destroyed&&(n=new En("end"))),typeof r=="function"&&(n||i.finished?xr.nextTick(r,n):i[di].push(r)),this};function xo(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 jL(t,e){let r=!1;function i(n){if(r){hi(t,n??g_());return}if(r=!0,e.pendingcb--,n){let s=e[di].splice(0);for(let o=0;o<s.length;o++)s[o](n);hi(t,n,e.sync)}else xo(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,xr.nextTick(Fu,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(n){i(n)}e.sync=!1}function UL(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,jL(t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Uu(t,e,r){xo(e)&&(UL(t,e),e.pendingcb===0&&(r?(e.pendingcb++,xr.nextTick((i,n)=>{xo(n)?Fu(i,n):n.pendingcb--},t,e)):xo(e)&&(e.pendingcb++,Fu(t,e))))}function Fu(t,e){e.pendingcb--,e.finished=!0;let r=e[di].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()}}vL(ve.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 WL=Oo.destroy;ve.prototype.destroy=function(t,e){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[di].length)&&xr.nextTick(Bu,r),WL.call(this,t,e),this};ve.prototype._undestroy=Oo.undestroy;ve.prototype._destroy=function(t,e){e(t)};ve.prototype[RL.captureRejectionSymbol]=function(t){this.destroy(t)};var ku;function b_(){return ku===void 0&&(ku={}),ku}ve.fromWeb=function(t,e){return b_().newStreamWritableFromWritableStream(t,e)};ve.toWeb=function(t){return b_().newWritableStreamFromStreamWritable(t)}});var M_=b((O6,N_)=>{var Wu=Xt(),GL=W("buffer"),{isReadable:zL,isWritable:$L,isIterable:S_,isNodeStream:HL,isReadableNodeStream:E_,isWritableNodeStream:v_,isDuplexNodeStream:VL,isReadableStream:T_,isWritableStream:A_}=Et(),x_=qt(),{AbortError:L_,codes:{ERR_INVALID_ARG_TYPE:YL,ERR_INVALID_RETURN_VALUE:R_}}=We(),{destroyer:gi}=Tr(),KL=Tt(),C_=wn(),ZL=Do(),{createDeferredPromise:O_}=He(),D_=Ru(),I_=globalThis.Blob||GL.Blob,QL=typeof I_<"u"?function(e){return e instanceof I_}:function(e){return!1},XL=globalThis.AbortController||si().AbortController,{FunctionPrototypeCall:P_}=Se(),tr=class extends KL{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)}};N_.exports=function t(e,r){if(VL(e))return e;if(E_(e))return pi({readable:e});if(v_(e))return pi({writable:e});if(HL(e))return pi({writable:!1,readable:!1});if(T_(e))return pi({readable:C_.fromWeb(e)});if(A_(e))return pi({writable:ZL.fromWeb(e)});if(typeof e=="function"){let{value:n,write:s,final:o,destroy:a}=JL(e);if(S_(n))return D_(tr,n,{objectMode:!0,write:s,final:o,destroy:a});let l=n?.then;if(typeof l=="function"){let u,f=P_(l,n,h=>{if(h!=null)throw new R_("nully","body",h)},h=>{gi(u,h)});return u=new tr({objectMode:!0,readable:!1,write:s,final(h){o(async()=>{try{await f,Wu.nextTick(h,null)}catch(g){Wu.nextTick(h,g)}})},destroy:a})}throw new R_("Iterable, AsyncIterable or AsyncFunction",r,n)}if(QL(e))return t(e.arrayBuffer());if(S_(e))return D_(tr,e,{objectMode:!0,writable:!1});if(T_(e?.readable)&&A_(e?.writable))return tr.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let n=e!=null&&e.readable?E_(e?.readable)?e?.readable:t(e.readable):void 0,s=e!=null&&e.writable?v_(e?.writable)?e?.writable:t(e.writable):void 0;return pi({readable:n,writable:s})}let i=e?.then;if(typeof i=="function"){let n;return P_(i,e,s=>{s!=null&&n.push(s),n.push(null)},s=>{gi(n,s)}),n=new tr({objectMode:!0,writable:!1,read(){}})}throw new YL(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function JL(t){let{promise:e,resolve:r}=O_(),i=new XL,n=i.signal;return{value:t((async function*(){for(;;){let o=e;e=null;let{chunk:a,done:l,cb:u}=await o;if(Wu.nextTick(u),l)return;if(n.aborted)throw new L_(void 0,{cause:n.reason});({promise:e,resolve:r}=O_()),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 pi(t){let e=t.readable&&typeof t.readable.read!="function"?C_.wrap(t.readable):t.readable,r=t.writable,i=!!zL(e),n=!!$L(r),s,o,a,l,u;function f(h){let g=l;l=null,g?g(h):h&&u.destroy(h)}return u=new tr({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:i,writable:n}),n&&(x_(r,h=>{n=!1,h&&gi(e,h),f(h)}),u._write=function(h,g,y){r.write(h,g)?y():s=y},u._final=function(h){r.end(),o=h},r.on("drain",function(){if(s){let h=s;s=null,h()}}),r.on("finish",function(){if(o){let h=o;o=null,h()}})),i&&(x_(e,h=>{i=!1,h&&gi(e,h),f(h)}),e.on("readable",function(){if(a){let h=a;a=null,h()}}),e.on("end",function(){u.push(null)}),u._read=function(){for(;;){let h=e.read();if(h===null){a=u._read;return}if(!u.push(h))return}}),u._destroy=function(h,g){!h&&l!==null&&(h=new L_),a=null,s=null,o=null,l===null?g(h):(l=g,gi(r,h),gi(e,h))},u}});var Tt=b((D6,q_)=>{"use strict";var{ObjectDefineProperties:eC,ObjectGetOwnPropertyDescriptor:Bt,ObjectKeys:tC,ObjectSetPrototypeOf:k_}=Se();q_.exports=gt;var $u=wn(),ot=Do();k_(gt.prototype,$u.prototype);k_(gt,$u);{let t=tC(ot.prototype);for(let e=0;e<t.length;e++){let r=t[e];gt.prototype[r]||(gt.prototype[r]=ot.prototype[r])}}function gt(t){if(!(this instanceof gt))return new gt(t);$u.call(this,t),ot.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}eC(gt.prototype,{writable:{__proto__:null,...Bt(ot.prototype,"writable")},writableHighWaterMark:{__proto__:null,...Bt(ot.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...Bt(ot.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...Bt(ot.prototype,"writableBuffer")},writableLength:{__proto__:null,...Bt(ot.prototype,"writableLength")},writableFinished:{__proto__:null,...Bt(ot.prototype,"writableFinished")},writableCorked:{__proto__:null,...Bt(ot.prototype,"writableCorked")},writableEnded:{__proto__:null,...Bt(ot.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...Bt(ot.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 Gu;function F_(){return Gu===void 0&&(Gu={}),Gu}gt.fromWeb=function(t,e){return F_().newStreamDuplexFromReadableWritablePair(t,e)};gt.toWeb=function(t){return F_().newReadableWritablePairFromDuplex(t)};var zu;gt.from=function(t){return zu||(zu=M_()),zu(t,"body")}});var Yu=b((I6,j_)=>{"use strict";var{ObjectSetPrototypeOf:B_,Symbol:rC}=Se();j_.exports=jt;var{ERR_METHOD_NOT_IMPLEMENTED:iC}=We().codes,Vu=Tt(),{getHighWaterMark:nC}=mn();B_(jt.prototype,Vu.prototype);B_(jt,Vu);var Tn=rC("kCallback");function jt(t){if(!(this instanceof jt))return new jt(t);let e=t?nC(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),Vu.call(this,t),this._readableState.sync=!1,this[Tn]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",sC)}function Hu(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 sC(){this._final!==Hu&&Hu.call(this)}jt.prototype._final=Hu;jt.prototype._transform=function(t,e,r){throw new iC("_transform()")};jt.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[Tn]=r})};jt.prototype._read=function(){if(this[Tn]){let t=this[Tn];this[Tn]=null,t()}}});var Zu=b((P6,W_)=>{"use strict";var{ObjectSetPrototypeOf:U_}=Se();W_.exports=yi;var Ku=Yu();U_(yi.prototype,Ku.prototype);U_(yi,Ku);function yi(t){if(!(this instanceof yi))return new yi(t);Ku.call(this,t)}yi.prototype._transform=function(t,e,r){r(null,t)}});var Co=b((L6,V_)=>{var An=Xt(),{ArrayIsArray:oC,Promise:aC,SymbolAsyncIterator:lC,SymbolDispose:uC}=Se(),Lo=qt(),{once:fC}=He(),cC=Tr(),G_=Tt(),{aggregateTwoErrors:hC,codes:{ERR_INVALID_ARG_TYPE:of,ERR_INVALID_RETURN_VALUE:Qu,ERR_MISSING_ARGS:dC,ERR_STREAM_DESTROYED:pC,ERR_STREAM_PREMATURE_CLOSE:gC},AbortError:yC}=We(),{validateFunction:mC,validateAbortSignal:_C}=ai(),{isIterable:Rr,isReadable:Xu,isReadableNodeStream:Po,isNodeStream:z_,isTransformStream:mi,isWebStream:bC,isReadableStream:Ju,isReadableFinished:wC}=Et(),SC=globalThis.AbortController||si().AbortController,ef,tf,rf;function $_(t,e,r){let i=!1;t.on("close",()=>{i=!0});let n=Lo(t,{readable:e,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,cC.destroyer(t,s||new pC("pipe")))},cleanup:n}}function EC(t){return mC(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function nf(t){if(Rr(t))return t;if(Po(t))return vC(t);throw new of("val",["Readable","Iterable","AsyncIterable"],t)}async function*vC(t){tf||(tf=wn()),yield*tf.prototype[lC].call(t)}async function Io(t,e,r,{end:i}){let n,s=null,o=u=>{if(u&&(n=u),s){let f=s;s=null,f()}},a=()=>new aC((u,f)=>{n?f(n):s=()=>{n?f(n):u()}});e.on("drain",o);let l=Lo(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?hC(n,u):u)}finally{l(),e.off("drain",o)}}async function sf(t,e,r,{end:i}){mi(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 TC(...t){return H_(t,fC(EC(t)))}function H_(t,e,r){if(t.length===1&&oC(t[0])&&(t=t[0]),t.length<2)throw new dC("streams");let i=new SC,n=i.signal,s=r?.signal,o=[];_C(s,"options.signal");function a(){E(new yC)}rf=rf||He().addAbortListener;let l;s&&(l=rf(s,a));let u,f,h=[],g=0;function y(L){E(L,--g===0)}function E(L,D){var q;if(L&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=L),!(!u&&!D)){for(;h.length;)h.shift()(u);(q=l)===null||q===void 0||q[uC](),i.abort(),D&&(u||o.forEach(Z=>Z()),An.nextTick(e,u,f))}}let m;for(let L=0;L<t.length;L++){let D=t[L],q=L<t.length-1,Z=L>0,P=q||r?.end!==!1,B=L===t.length-1;if(z_(D)){let x=function(M){M&&M.name!=="AbortError"&&M.code!=="ERR_STREAM_PREMATURE_CLOSE"&&y(M)};var R=x;if(P){let{destroy:M,cleanup:k}=$_(D,q,Z);h.push(M),Xu(D)&&B&&o.push(k)}D.on("error",x),Xu(D)&&B&&o.push(()=>{D.removeListener("error",x)})}if(L===0)if(typeof D=="function"){if(m=D({signal:n}),!Rr(m))throw new Qu("Iterable, AsyncIterable or Stream","source",m)}else Rr(D)||Po(D)||mi(D)?m=D:m=G_.from(D);else if(typeof D=="function"){if(mi(m)){var v;m=nf((v=m)===null||v===void 0?void 0:v.readable)}else m=nf(m);if(m=D(m,{signal:n}),q){if(!Rr(m,!0))throw new Qu("AsyncIterable",`transform[${L-1}]`,m)}else{var S;ef||(ef=Zu());let x=new ef({objectMode:!0}),M=(S=m)===null||S===void 0?void 0:S.then;if(typeof M=="function")g++,M.call(m,ee=>{f=ee,ee!=null&&x.write(ee),P&&x.end(),An.nextTick(y)},ee=>{x.destroy(ee),An.nextTick(y,ee)});else if(Rr(m,!0))g++,Io(m,x,y,{end:P});else if(Ju(m)||mi(m)){let ee=m.readable||m;g++,Io(ee,x,y,{end:P})}else throw new Qu("AsyncIterable or Promise","destination",m);m=x;let{destroy:k,cleanup:H}=$_(m,!1,!0);h.push(k),B&&o.push(H)}}else if(z_(D)){if(Po(m)){g+=2;let x=AC(m,D,y,{end:P});Xu(D)&&B&&o.push(x)}else if(mi(m)||Ju(m)){let x=m.readable||m;g++,Io(x,D,y,{end:P})}else if(Rr(m))g++,Io(m,D,y,{end:P});else throw new of("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],m);m=D}else if(bC(D)){if(Po(m))g++,sf(nf(m),D,y,{end:P});else if(Ju(m)||Rr(m))g++,sf(m,D,y,{end:P});else if(mi(m))g++,sf(m.readable,D,y,{end:P});else throw new of("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],m);m=D}else m=G_.from(D)}return(n!=null&&n.aborted||s!=null&&s.aborted)&&An.nextTick(a),m}function AC(t,e,r,{end:i}){let n=!1;if(e.on("close",()=>{n||r(new gC)}),t.pipe(e,{end:!1}),i){let o=function(){n=!0,e.end()};var s=o;wC(t)?An.nextTick(o):t.once("end",o)}else r();return Lo(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)}),Lo(e,{readable:!1,writable:!0},r)}V_.exports={pipelineImpl:H_,pipeline:TC}});var lf=b((C6,J_)=>{"use strict";var{pipeline:xC}=Co(),No=Tt(),{destroyer:RC}=Tr(),{isNodeStream:Mo,isReadable:Y_,isWritable:K_,isWebStream:af,isTransformStream:Or,isWritableStream:Z_,isReadableStream:Q_}=Et(),{AbortError:OC,codes:{ERR_INVALID_ARG_VALUE:X_,ERR_MISSING_ARGS:DC}}=We(),IC=qt();J_.exports=function(...e){if(e.length===0)throw new DC("streams");if(e.length===1)return No.from(e[0]);let r=[...e];if(typeof e[0]=="function"&&(e[0]=No.from(e[0])),typeof e[e.length-1]=="function"){let y=e.length-1;e[y]=No.from(e[y])}for(let y=0;y<e.length;++y)if(!(!Mo(e[y])&&!af(e[y]))){if(y<e.length-1&&!(Y_(e[y])||Q_(e[y])||Or(e[y])))throw new X_(`streams[${y}]`,r[y],"must be readable");if(y>0&&!(K_(e[y])||Z_(e[y])||Or(e[y])))throw new X_(`streams[${y}]`,r[y],"must be writable")}let i,n,s,o,a;function l(y){let E=o;o=null,E?E(y):y?a.destroy(y):!g&&!h&&a.destroy()}let u=e[0],f=xC(e,l),h=!!(K_(u)||Z_(u)||Or(u)),g=!!(Y_(f)||Q_(f)||Or(f));if(a=new No({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(f!=null&&f.readableObjectMode),writable:h,readable:g}),h){if(Mo(u))a._write=function(E,m,v){u.write(E,m)?v():i=v},a._final=function(E){u.end(),n=E},u.on("drain",function(){if(i){let E=i;i=null,E()}});else if(af(u)){let m=(Or(u)?u.writable:u).getWriter();a._write=async function(v,S,R){try{await m.ready,m.write(v).catch(()=>{}),R()}catch(L){R(L)}},a._final=async function(v){try{await m.ready,m.close().catch(()=>{}),n=v}catch(S){v(S)}}}let y=Or(f)?f.readable:f;IC(y,()=>{if(n){let E=n;n=null,E()}})}if(g){if(Mo(f))f.on("readable",function(){if(s){let y=s;s=null,y()}}),f.on("end",function(){a.push(null)}),a._read=function(){for(;;){let y=f.read();if(y===null){s=a._read;return}if(!a.push(y))return}};else if(af(f)){let E=(Or(f)?f.readable:f).getReader();a._read=async function(){for(;;)try{let{value:m,done:v}=await E.read();if(!a.push(m))return;if(v){a.push(null);return}}catch{return}}}}return a._destroy=function(y,E){!y&&o!==null&&(y=new OC),s=null,i=null,n=null,o===null?E(y):(o=E,Mo(f)&&RC(f,y))},a}});var ub=b((N6,cf)=>{"use strict";var PC=globalThis.AbortController||si().AbortController,{codes:{ERR_INVALID_ARG_VALUE:LC,ERR_INVALID_ARG_TYPE:xn,ERR_MISSING_ARGS:CC,ERR_OUT_OF_RANGE:NC},AbortError:At}=We(),{validateAbortSignal:Dr,validateInteger:eb,validateObject:Ir}=ai(),MC=Se().Symbol("kWeak"),kC=Se().Symbol("kResistStopPropagation"),{finished:FC}=qt(),qC=lf(),{addAbortSignalNoValidate:BC}=yn(),{isWritable:jC,isNodeStream:UC}=Et(),{deprecate:WC}=He(),{ArrayPrototypePush:GC,Boolean:zC,MathFloor:tb,Number:$C,NumberIsNaN:HC,Promise:rb,PromiseReject:ib,PromiseResolve:VC,PromisePrototypeThen:nb,Symbol:ob}=Se(),ko=ob("kEmpty"),sb=ob("kEof");function YC(t,e){if(e!=null&&Ir(e,"options"),e?.signal!=null&&Dr(e.signal,"options.signal"),UC(t)&&!jC(t))throw new LC("stream",t,"must be writable");let r=qC(this,t);return e!=null&&e.signal&&BC(e.signal,r),r}function Fo(t,e){if(typeof t!="function")throw new xn("fn",["Function","AsyncFunction"],t);e!=null&&Ir(e,"options"),e?.signal!=null&&Dr(e.signal,"options.signal");let r=1;e?.concurrency!=null&&(r=tb(e.concurrency));let i=r-1;return e?.highWaterMark!=null&&(i=tb(e.highWaterMark)),eb(r,"options.concurrency",1),eb(i,"options.highWaterMark",0),i+=r,async function*(){let s=He().AbortSignalAny([e?.signal].filter(zC)),o=this,a=[],l={signal:s},u,f,h=!1,g=0;function y(){h=!0,E()}function E(){g-=1,m()}function m(){f&&!h&&g<r&&a.length<i&&(f(),f=null)}async function v(){try{for await(let S of o){if(h)return;if(s.aborted)throw new At;try{if(S=t(S,l),S===ko)continue;S=VC(S)}catch(R){S=ib(R)}g+=1,nb(S,E,y),a.push(S),u&&(u(),u=null),!h&&(a.length>=i||g>=r)&&await new rb(R=>{f=R})}a.push(sb)}catch(S){let R=ib(S);nb(R,E,y),a.push(R)}finally{h=!0,u&&(u(),u=null)}}v();try{for(;;){for(;a.length>0;){let S=await a[0];if(S===sb)return;if(s.aborted)throw new At;S!==ko&&(yield S),a.shift(),m()}await new rb(S=>{u=S})}}finally{h=!0,f&&(f(),f=null)}}.call(this)}function KC(t=void 0){return t!=null&&Ir(t,"options"),t?.signal!=null&&Dr(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 At({cause:t.signal.reason});yield[r++,n]}}.call(this)}async function ab(t,e=void 0){for await(let r of ff.call(this,t,e))return!0;return!1}async function ZC(t,e=void 0){if(typeof t!="function")throw new xn("fn",["Function","AsyncFunction"],t);return!await ab.call(this,async(...r)=>!await t(...r),e)}async function QC(t,e){for await(let r of ff.call(this,t,e))return r}async function XC(t,e){if(typeof t!="function")throw new xn("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n),ko}for await(let i of Fo.call(this,r,e));}function ff(t,e){if(typeof t!="function")throw new xn("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n)?i:ko}return Fo.call(this,r,e)}var uf=class extends CC{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function JC(t,e,r){var i;if(typeof t!="function")throw new xn("reducer",["Function","AsyncFunction"],t);r!=null&&Ir(r,"options"),r?.signal!=null&&Dr(r.signal,"options.signal");let n=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){let u=new At(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await FC(this.destroy(u)),u}let s=new PC,o=s.signal;if(r!=null&&r.signal){let u={once:!0,[MC]:this,[kC]:!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 At;n?e=await t(e,u,{signal:o}):(e=u,n=!0)}if(!a&&!n)throw new uf}finally{s.abort()}return e}async function eN(t){t!=null&&Ir(t,"options"),t?.signal!=null&&Dr(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 At(void 0,{cause:t.signal.reason});GC(e,i)}return e}function tN(t,e){let r=Fo.call(this,t,e);return async function*(){for await(let n of r)yield*n}.call(this)}function lb(t){if(t=$C(t),HC(t))return 0;if(t<0)throw new NC("number",">= 0",t);return t}function rN(t,e=void 0){return e!=null&&Ir(e,"options"),e?.signal!=null&&Dr(e.signal,"options.signal"),t=lb(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new At;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new At;t--<=0&&(yield s)}}.call(this)}function iN(t,e=void 0){return e!=null&&Ir(e,"options"),e?.signal!=null&&Dr(e.signal,"options.signal"),t=lb(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new At;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new At;if(t-- >0&&(yield s),t<=0)return}}.call(this)}cf.exports.streamReturningOperators={asIndexedPairs:WC(KC,"readable.asIndexedPairs will be removed in a future version."),drop:rN,filter:ff,flatMap:tN,map:Fo,take:iN,compose:YC};cf.exports.promiseReturningOperators={every:ZC,forEach:XC,reduce:JC,toArray:eN,some:ab,find:QC}});var hf=b((M6,fb)=>{"use strict";var{ArrayPrototypePop:nN,Promise:sN}=Se(),{isIterable:oN,isNodeStream:aN,isWebStream:lN}=Et(),{pipelineImpl:uN}=Co(),{finished:fN}=qt();df();function cN(...t){return new sN((e,r)=>{let i,n,s=t[t.length-1];if(s&&typeof s=="object"&&!aN(s)&&!oN(s)&&!lN(s)){let o=nN(t);i=o.signal,n=o.end}uN(t,(o,a)=>{o?r(o):e(a)},{signal:i,end:n})})}fb.exports={finished:fN,pipeline:cN}});var df=b((k6,bb)=>{"use strict";var{Buffer:hN}=W("buffer"),{ObjectDefineProperty:Ut,ObjectKeys:db,ReflectApply:pb}=Se(),{promisify:{custom:gb}}=He(),{streamReturningOperators:cb,promiseReturningOperators:hb}=ub(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:yb}}=We(),dN=lf(),{setDefaultHighWaterMark:pN,getDefaultHighWaterMark:gN}=mn(),{pipeline:mb}=Co(),{destroyer:yN}=Tr(),_b=qt(),pf=hf(),Rn=Et(),be=bb.exports=mo().Stream;be.isDestroyed=Rn.isDestroyed;be.isDisturbed=Rn.isDisturbed;be.isErrored=Rn.isErrored;be.isReadable=Rn.isReadable;be.isWritable=Rn.isWritable;be.Readable=wn();for(let t of db(cb)){let r=function(...i){if(new.target)throw yb();return be.Readable.from(pb(e,this,i))},e=cb[t];Ut(r,"name",{__proto__:null,value:e.name}),Ut(r,"length",{__proto__:null,value:e.length}),Ut(be.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}for(let t of db(hb)){let r=function(...i){if(new.target)throw yb();return pb(e,this,i)},e=hb[t];Ut(r,"name",{__proto__:null,value:e.name}),Ut(r,"length",{__proto__:null,value:e.length}),Ut(be.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}be.Writable=Do();be.Duplex=Tt();be.Transform=Yu();be.PassThrough=Zu();be.pipeline=mb;var{addAbortSignal:mN}=yn();be.addAbortSignal=mN;be.finished=_b;be.destroy=yN;be.compose=dN;be.setDefaultHighWaterMark=pN;be.getDefaultHighWaterMark=gN;Ut(be,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return pf}});Ut(mb,gb,{__proto__:null,enumerable:!0,get(){return pf.pipeline}});Ut(_b,gb,{__proto__:null,enumerable:!0,get(){return pf.finished}});be.Stream=be;be._isUint8Array=function(e){return e instanceof Uint8Array};be._uint8ArrayToBuffer=function(e){return hN.from(e.buffer,e.byteOffset,e.byteLength)}});var Pr=b((F6,Q)=>{"use strict";var Ie=W("stream");if(Ie&&process.env.READABLE_STREAM==="disable"){let t=Ie.promises;Q.exports._uint8ArrayToBuffer=Ie._uint8ArrayToBuffer,Q.exports._isUint8Array=Ie._isUint8Array,Q.exports.isDisturbed=Ie.isDisturbed,Q.exports.isErrored=Ie.isErrored,Q.exports.isReadable=Ie.isReadable,Q.exports.Readable=Ie.Readable,Q.exports.Writable=Ie.Writable,Q.exports.Duplex=Ie.Duplex,Q.exports.Transform=Ie.Transform,Q.exports.PassThrough=Ie.PassThrough,Q.exports.addAbortSignal=Ie.addAbortSignal,Q.exports.finished=Ie.finished,Q.exports.destroy=Ie.destroy,Q.exports.pipeline=Ie.pipeline,Q.exports.compose=Ie.compose,Object.defineProperty(Ie,"promises",{configurable:!0,enumerable:!0,get(){return t}}),Q.exports.Stream=Ie.Stream}else{let t=df(),e=hf(),r=t.Readable.destroy;Q.exports=t.Readable,Q.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,Q.exports._isUint8Array=t._isUint8Array,Q.exports.isDisturbed=t.isDisturbed,Q.exports.isErrored=t.isErrored,Q.exports.isReadable=t.isReadable,Q.exports.Readable=t.Readable,Q.exports.Writable=t.Writable,Q.exports.Duplex=t.Duplex,Q.exports.Transform=t.Transform,Q.exports.PassThrough=t.PassThrough,Q.exports.addAbortSignal=t.addAbortSignal,Q.exports.finished=t.finished,Q.exports.destroy=t.destroy,Q.exports.destroy=r,Q.exports.pipeline=t.pipeline,Q.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return e}}),Q.exports.Stream=t.Stream}Q.exports.default=Q.exports});var Sb=b((q6,wb)=>{function _N(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}wb.exports=_N});var Ab=b((B6,Tb)=>{var Eb=to(),bN=Zl(),wN=Ql(),vb=Eb?Eb.isConcatSpreadable:void 0;function SN(t){return wN(t)||bN(t)||!!(vb&&t&&t[vb])}Tb.exports=SN});var qo=b((j6,Rb)=>{var EN=Sb(),vN=Ab();function xb(t,e,r,i,n){var s=-1,o=t.length;for(r||(r=vN),n||(n=[]);++s<o;){var a=t[s];e>0&&r(a)?e>1?xb(a,e-1,r,i,n):EN(n,a):i||(n[n.length]=a)}return n}Rb.exports=xb});var Db=b((U6,Ob)=>{var TN=qo();function AN(t){var e=t==null?0:t.length;return e?TN(t,1):[]}Ob.exports=AN});var On=b((W6,Ib)=>{var xN=an(),RN=xN(Object,"create");Ib.exports=RN});var Cb=b((G6,Lb)=>{var Pb=On();function ON(){this.__data__=Pb?Pb(null):{},this.size=0}Lb.exports=ON});var Mb=b((z6,Nb)=>{function DN(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}Nb.exports=DN});var Fb=b(($6,kb)=>{var IN=On(),PN="__lodash_hash_undefined__",LN=Object.prototype,CN=LN.hasOwnProperty;function NN(t){var e=this.__data__;if(IN){var r=e[t];return r===PN?void 0:r}return CN.call(e,t)?e[t]:void 0}kb.exports=NN});var Bb=b((H6,qb)=>{var MN=On(),kN=Object.prototype,FN=kN.hasOwnProperty;function qN(t){var e=this.__data__;return MN?e[t]!==void 0:FN.call(e,t)}qb.exports=qN});var Ub=b((V6,jb)=>{var BN=On(),jN="__lodash_hash_undefined__";function UN(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=BN&&e===void 0?jN:e,this}jb.exports=UN});var Gb=b((Y6,Wb)=>{var WN=Cb(),GN=Mb(),zN=Fb(),$N=Bb(),HN=Ub();function _i(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])}}_i.prototype.clear=WN;_i.prototype.delete=GN;_i.prototype.get=zN;_i.prototype.has=$N;_i.prototype.set=HN;Wb.exports=_i});var $b=b((K6,zb)=>{function VN(){this.__data__=[],this.size=0}zb.exports=VN});var Dn=b((Z6,Hb)=>{var YN=io();function KN(t,e){for(var r=t.length;r--;)if(YN(t[r][0],e))return r;return-1}Hb.exports=KN});var Yb=b((Q6,Vb)=>{var ZN=Dn(),QN=Array.prototype,XN=QN.splice;function JN(t){var e=this.__data__,r=ZN(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():XN.call(e,r,1),--this.size,!0}Vb.exports=JN});var Zb=b((X6,Kb)=>{var eM=Dn();function tM(t){var e=this.__data__,r=eM(e,t);return r<0?void 0:e[r][1]}Kb.exports=tM});var Xb=b((J6,Qb)=>{var rM=Dn();function iM(t){return rM(this.__data__,t)>-1}Qb.exports=iM});var ew=b((eU,Jb)=>{var nM=Dn();function sM(t,e){var r=this.__data__,i=nM(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}Jb.exports=sM});var rw=b((tU,tw)=>{var oM=$b(),aM=Yb(),lM=Zb(),uM=Xb(),fM=ew();function bi(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])}}bi.prototype.clear=oM;bi.prototype.delete=aM;bi.prototype.get=lM;bi.prototype.has=uM;bi.prototype.set=fM;tw.exports=bi});var nw=b((rU,iw)=>{var cM=an(),hM=ei(),dM=cM(hM,"Map");iw.exports=dM});var aw=b((iU,ow)=>{var sw=Gb(),pM=rw(),gM=nw();function yM(){this.size=0,this.__data__={hash:new sw,map:new(gM||pM),string:new sw}}ow.exports=yM});var uw=b((nU,lw)=>{function mM(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}lw.exports=mM});var In=b((sU,fw)=>{var _M=uw();function bM(t,e){var r=t.__data__;return _M(e)?r[typeof e=="string"?"string":"hash"]:r.map}fw.exports=bM});var hw=b((oU,cw)=>{var wM=In();function SM(t){var e=wM(this,t).delete(t);return this.size-=e?1:0,e}cw.exports=SM});var pw=b((aU,dw)=>{var EM=In();function vM(t){return EM(this,t).get(t)}dw.exports=vM});var yw=b((lU,gw)=>{var TM=In();function AM(t){return TM(this,t).has(t)}gw.exports=AM});var _w=b((uU,mw)=>{var xM=In();function RM(t,e){var r=xM(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}mw.exports=RM});var ww=b((fU,bw)=>{var OM=aw(),DM=hw(),IM=pw(),PM=yw(),LM=_w();function wi(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])}}wi.prototype.clear=OM;wi.prototype.delete=DM;wi.prototype.get=IM;wi.prototype.has=PM;wi.prototype.set=LM;bw.exports=wi});var Ew=b((cU,Sw)=>{var CM="__lodash_hash_undefined__";function NM(t){return this.__data__.set(t,CM),this}Sw.exports=NM});var Tw=b((hU,vw)=>{function MM(t){return this.__data__.has(t)}vw.exports=MM});var gf=b((dU,Aw)=>{var kM=ww(),FM=Ew(),qM=Tw();function Bo(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new kM;++e<r;)this.add(t[e])}Bo.prototype.add=Bo.prototype.push=FM;Bo.prototype.has=qM;Aw.exports=Bo});var Rw=b((pU,xw)=>{function BM(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}xw.exports=BM});var Dw=b((gU,Ow)=>{function jM(t){return t!==t}Ow.exports=jM});var Pw=b((yU,Iw)=>{function UM(t,e,r){for(var i=r-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}Iw.exports=UM});var Cw=b((mU,Lw)=>{var WM=Rw(),GM=Dw(),zM=Pw();function $M(t,e,r){return e===e?zM(t,e,r):WM(t,GM,r)}Lw.exports=$M});var yf=b((_U,Nw)=>{var HM=Cw();function VM(t,e){var r=t==null?0:t.length;return!!r&&HM(t,e,0)>-1}Nw.exports=VM});var mf=b((bU,Mw)=>{function YM(t,e,r){for(var i=-1,n=t==null?0:t.length;++i<n;)if(r(e,t[i]))return!0;return!1}Mw.exports=YM});var Fw=b((wU,kw)=>{function KM(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}kw.exports=KM});var _f=b((SU,qw)=>{function ZM(t,e){return t.has(e)}qw.exports=ZM});var jw=b((EU,Bw)=>{var QM=gf(),XM=yf(),JM=mf(),ek=Fw(),tk=Xl(),rk=_f(),ik=200;function nk(t,e,r,i){var n=-1,s=XM,o=!0,a=t.length,l=[],u=e.length;if(!a)return l;r&&(e=ek(e,tk(r))),i?(s=JM,o=!1):e.length>=ik&&(s=rk,o=!1,e=new QM(e));e:for(;++n<a;){var f=t[n],h=r==null?f:r(f);if(f=i||f!==0?f:0,o&&h===h){for(var g=u;g--;)if(e[g]===h)continue e;l.push(f)}else s(e,h,i)||l.push(f)}return l}Bw.exports=nk});var bf=b((vU,Uw)=>{var sk=no(),ok=ti();function ak(t){return ok(t)&&sk(t)}Uw.exports=ak});var zw=b((TU,Gw)=>{var lk=jw(),uk=qo(),fk=ro(),Ww=bf(),ck=fk(function(t,e){return Ww(t)?lk(t,uk(e,1,Ww,!0)):[]});Gw.exports=ck});var Hw=b((AU,$w)=>{var hk=an(),dk=ei(),pk=hk(dk,"Set");$w.exports=pk});var Yw=b((xU,Vw)=>{function gk(){}Vw.exports=gk});var wf=b((RU,Kw)=>{function yk(t){var e=-1,r=Array(t.size);return t.forEach(function(i){r[++e]=i}),r}Kw.exports=yk});var Qw=b((OU,Zw)=>{var Sf=Hw(),mk=Yw(),_k=wf(),bk=1/0,wk=Sf&&1/_k(new Sf([,-0]))[1]==bk?function(t){return new Sf(t)}:mk;Zw.exports=wk});var Jw=b((DU,Xw)=>{var Sk=gf(),Ek=yf(),vk=mf(),Tk=_f(),Ak=Qw(),xk=wf(),Rk=200;function Ok(t,e,r){var i=-1,n=Ek,s=t.length,o=!0,a=[],l=a;if(r)o=!1,n=vk;else if(s>=Rk){var u=e?null:Ak(t);if(u)return xk(u);o=!1,n=Tk,l=new Sk}else l=e?[]:a;e:for(;++i<s;){var f=t[i],h=e?e(f):f;if(f=r||f!==0?f:0,o&&h===h){for(var g=l.length;g--;)if(l[g]===h)continue e;e&&l.push(h),a.push(f)}else n(l,h,r)||(l!==a&&l.push(h),a.push(f))}return a}Xw.exports=Ok});var t0=b((IU,e0)=>{var Dk=qo(),Ik=ro(),Pk=Jw(),Lk=bf(),Ck=Ik(function(t){return Pk(Dk(t,1,Lk,!0))});e0.exports=Ck});var i0=b((PU,r0)=>{function Nk(t,e){return function(r){return t(e(r))}}r0.exports=Nk});var s0=b((LU,n0)=>{var Mk=i0(),kk=Mk(Object.getPrototypeOf,Object);n0.exports=kk});var l0=b((CU,a0)=>{var Fk=sn(),qk=s0(),Bk=ti(),jk="[object Object]",Uk=Function.prototype,Wk=Object.prototype,o0=Uk.toString,Gk=Wk.hasOwnProperty,zk=o0.call(Object);function $k(t){if(!Bk(t)||Fk(t)!=jk)return!1;var e=qk(t);if(e===null)return!0;var r=Gk.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&o0.call(r)==zk}a0.exports=$k});var u0=b(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.assertValidPattern=void 0;var Hk=1024*64,Vk=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>Hk)throw new TypeError("pattern is too long")};jo.assertValidPattern=Vk});var c0=b(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.parseClass=void 0;var Yk={"[: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]},Pn=t=>t.replace(/[[\]\\-]/g,"\\$&"),Kk=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),f0=t=>t.join(""),Zk=(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,h="";e:for(;s<t.length;){let m=t.charAt(s);if((m==="!"||m==="^")&&s===r+1){u=!0,s++;continue}if(m==="]"&&o&&!l){f=s+1;break}if(o=!0,m==="\\"&&!l){l=!0,s++;continue}if(m==="["&&!l){for(let[v,[S,R,L]]of Object.entries(Yk))if(t.startsWith(v,s)){if(h)return["$.",!1,t.length-r,!0];s+=v.length,L?n.push(S):i.push(S),a=a||R;continue e}}if(l=!1,h){m>h?i.push(Pn(h)+"-"+Pn(m)):m===h&&i.push(Pn(m)),h="",s++;continue}if(t.startsWith("-]",s+1)){i.push(Pn(m+"-")),s+=2;continue}if(t.startsWith("-",s+1)){h=m,s+=2;continue}i.push(Pn(m)),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 m=i[0].length===2?i[0].slice(-1):i[0];return[Kk(m),!1,f-r,!1]}let g="["+(u?"^":"")+f0(i)+"]",y="["+(u?"":"^")+f0(n)+"]";return[i.length&&n.length?"("+g+"|"+y+")":i.length?g:y,a,f-r,!0]};Uo.parseClass=Zk});var Go=b(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.unescape=void 0;var Qk=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");Wo.unescape=Qk});var Tf=b(Vo=>{"use strict";var Qe;Object.defineProperty(Vo,"__esModule",{value:!0});Vo.AST=void 0;var Xk=c0(),zo=Go(),Jk=new Set(["!","?","+","*","@"]),Ef=t=>Jk.has(t),h0=t=>Ef(t.type),e2=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),t2=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),r2=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),d0=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),i2="(?!(?:^|/)\\.\\.?(?:$|/))",$o="(?!\\.)",n2=new Set(["[","."]),s2=new Set(["..","."]),o2=new Set("().*{}+?[]^$\\!"),a2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),vf="[^/]",p0=vf+"*?",g0=vf+"+?",Ho=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("")}#m(){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 Qe&&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 Qe&&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 Qe(this.type,e);for(let i of this.#t)r.copyIn(i);return r}static#_(e,r,i,n,s){let o=n.maxExtglobRecursion??2,a=!1,l=!1,u=-1,f=!1;if(r.type===null){let m=i,v="";for(;m<e.length;){let S=e.charAt(m++);if(a||S==="\\"){a=!a,v+=S;continue}if(l){m===u+1?(S==="^"||S==="!")&&(f=!0):S==="]"&&!(m===u+2&&f)&&(l=!1),v+=S;continue}else if(S==="["){l=!0,u=m,f=!1,v+=S;continue}if(!n.noext&&Ef(S)&&e.charAt(m)==="("&&s<=o){r.push(v),v="";let L=new Qe(S,r);m=Qe.#_(e,L,m,n,s+1),r.push(L);continue}v+=S}return r.push(v),m}let h=i+1,g=new Qe(null,r),y=[],E="";for(;h<e.length;){let m=e.charAt(h++);if(a||m==="\\"){a=!a,E+=m;continue}if(l){h===u+1?(m==="^"||m==="!")&&(f=!0):m==="]"&&!(h===u+2&&f)&&(l=!1),E+=m;continue}else if(m==="["){l=!0,u=h,f=!1,E+=m;continue}if(Ef(m)&&e.charAt(h)==="("&&(s<=o||r&&r.#E(m))){let S=r&&r.#E(m)?0:1;g.push(E),E="";let R=new Qe(m,g);g.push(R),h=Qe.#_(e,R,h,n,s+S);continue}if(m==="|"){g.push(E),E="",y.push(g),g=new Qe(null,r);continue}if(m===")")return E===""&&r.#t.length===0&&(r.#s=!0),g.push(E),E="",r.push(...y,g),h;E+=m}return r.type=null,r.#r=void 0,r.#t=[e.substring(i-1)],h}#g(e){return this.#d(e,t2)}#d(e,r=e2){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=r2){return!!r.get(this.type)?.includes(e)}#p(e,r){let i=e.#t[0],n=new Qe(null,i,this.options);n.#t.push(""),i.push(n),this.#T(e,r)}#T(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}#A(e){return!!d0.get(this.type)?.has(e)}#y(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.#A(r.type)}#v(e){let r=d0.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(h0(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.#T(n,i)):this.#g(n)?(r=!1,this.#p(n,i)):this.#y(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 Qe(null,void 0,r);return Qe.#_(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.#m()),!h0(this)){let l=this.isStart()&&this.isEnd(),u=this.#t.map(y=>{let[E,m,v,S]=typeof y=="string"?Qe.#x(y,this.#r,l):y.toRegExpSource(e);return this.#r=this.#r||v,this.#n=this.#n||S,E}).join(""),f="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&s2.has(this.#t[0]))){let E=n2,m=r&&E.has(u.charAt(0))||u.startsWith("\\.")&&E.has(u.charAt(2))||u.startsWith("\\.\\.")&&E.has(u.charAt(4)),v=!r&&!e&&E.has(u.charAt(0));f=m?i2:v?$o:""}let h="";return this.isEnd()&&this.#e.#c&&this.#o?.type==="!"&&(h="(?:$|\\/)"),[f+u+h,(0,zo.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,zo.unescape)(this.toString()),!1,!1]}let o=!i||e||r||!$o?"":this.#h(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!r?$o:"")+g0;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?$o:"")+p0+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=n+s+l}return[a,(0,zo.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#x(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+=(o2.has(u)?"\\":"")+u,a=!1;continue}if(u==="\\"){l===e.length-1?s+="\\\\":n=!0;continue}if(u==="["){let[f,h,g,y]=(0,Xk.parseClass)(e,l);if(g){s+=f,o=o||h,l+=g-1,r=r||y,a=!1;continue}}if(u==="*"){if(a)continue;a=!0,s+=i&&/^[*]+$/.test(e)?g0:p0,r=!0;continue}else a=!1;if(u==="?"){s+=vf,r=!0;continue}s+=a2(u)}return[s,(0,zo.unescape)(e),!!r,o]}};Vo.AST=Ho;Qe=Ho});var Af=b(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.escape=void 0;var l2=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");Yo.escape=l2});var rr=b(F=>{"use strict";var u2=F&&F.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(F,"__esModule",{value:!0});F.unescape=F.escape=F.AST=F.Minimatch=F.match=F.makeRe=F.braceExpand=F.defaults=F.filter=F.GLOBSTAR=F.sep=F.minimatch=void 0;var f2=u2(al()),Ko=u0(),_0=Tf(),c2=Af(),h2=Go(),d2=(t,e,r={})=>((0,Ko.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new Lr(e,r).match(t));F.minimatch=d2;var p2=/^\*+([^+@!?\*\[\(]*)$/,g2=t=>e=>!e.startsWith(".")&&e.endsWith(t),y2=t=>e=>e.endsWith(t),m2=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),_2=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),b2=/^\*+\.\*+$/,w2=t=>!t.startsWith(".")&&t.includes("."),S2=t=>t!=="."&&t!==".."&&t.includes("."),E2=/^\.\*+$/,v2=t=>t!=="."&&t!==".."&&t.startsWith("."),T2=/^\*+$/,A2=t=>t.length!==0&&!t.startsWith("."),x2=t=>t.length!==0&&t!=="."&&t!=="..",R2=/^\?+([^+@!?\*\[\(]*)?$/,O2=([t,e=""])=>{let r=b0([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},D2=([t,e=""])=>{let r=w0([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},I2=([t,e=""])=>{let r=w0([t]);return e?i=>r(i)&&i.endsWith(e):r},P2=([t,e=""])=>{let r=b0([t]);return e?i=>r(i)&&i.endsWith(e):r},b0=([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},w0=([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},S0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",y0={win32:{sep:"\\"},posix:{sep:"/"}};F.sep=S0==="win32"?y0.win32.sep:y0.posix.sep;F.minimatch.sep=F.sep;F.GLOBSTAR=Symbol("globstar **");F.minimatch.GLOBSTAR=F.GLOBSTAR;var L2="[^/]",C2=L2+"*?",N2="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",M2="(?:(?!(?:\\/|^)\\.).)*?",k2=(t,e={})=>r=>(0,F.minimatch)(r,t,e);F.filter=k2;F.minimatch.filter=F.filter;var at=(t,e={})=>Object.assign({},t,e),F2=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return F.minimatch;let e=F.minimatch;return Object.assign((i,n,s={})=>e(i,n,at(t,s)),{Minimatch:class extends e.Minimatch{constructor(n,s={}){super(n,at(t,s))}static defaults(n){return e.defaults(at(t,n)).Minimatch}},AST:class extends e.AST{constructor(n,s,o={}){super(n,s,at(t,o))}static fromGlob(n,s={}){return e.AST.fromGlob(n,at(t,s))}},unescape:(i,n={})=>e.unescape(i,at(t,n)),escape:(i,n={})=>e.escape(i,at(t,n)),filter:(i,n={})=>e.filter(i,at(t,n)),defaults:i=>e.defaults(at(t,i)),makeRe:(i,n={})=>e.makeRe(i,at(t,n)),braceExpand:(i,n={})=>e.braceExpand(i,at(t,n)),match:(i,n,s={})=>e.match(i,n,at(t,s)),sep:e.sep,GLOBSTAR:F.GLOBSTAR})};F.defaults=F2;F.minimatch.defaults=F.defaults;var q2=(t,e={})=>((0,Ko.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,f2.default)(t));F.braceExpand=q2;F.minimatch.braceExpand=F.braceExpand;var B2=(t,e={})=>new Lr(t,e).makeRe();F.makeRe=B2;F.minimatch.makeRe=F.makeRe;var j2=(t,e,r={})=>{let i=new Lr(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};F.match=j2;F.minimatch.match=F.match;var m0=/[?*]|[+@!]\(.*?\)|\[|\]/,U2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Lr=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,Ko.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||S0,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]==="?"||!m0.test(s[2]))&&!m0.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]),h=l?3:a?0:void 0,g=f?3:u?0:void 0;if(typeof h=="number"&&typeof g=="number"){let[y,E]=[e[h],r[g]];y.toLowerCase()===E.toLowerCase()&&(r[g]=y,s=g,n=h)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),r.includes(F.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(F.GLOBSTAR,s),a=r.lastIndexOf(F.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 R=e.slice(n,n+l.length);if(!this.#n(R,l,i,0,0))return!1;n+=l.length}let h=0;if(f.length){if(f.length+n>e.length)return!1;let R=e.length-f.length;if(this.#n(e,f,i,R,0))h=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||(R--,!this.#n(e,f,i,R,0)))return!1;h=f.length+1}}if(!u.length){let R=!!h;for(let L=n;L<e.length-h;L++){let D=String(e[L]);if(R=!0,D==="."||D===".."||!this.options.dot&&D.startsWith("."))return!1}return i||R}let g=[[[],0]],y=g[0],E=0,m=[0];for(let R of u)R===F.GLOBSTAR?(m.push(E),y=[[],0],g.push(y)):(y[0].push(R),E++);let v=g.length-1,S=e.length-h;for(let R of g)R[1]=S-(m[v--]+R[0].length);return!!this.#r(e,g,n,0,i,0,!!h)}#r(e,r,i,n,s,o,a){let l=r[n];if(!l){for(let h=i;h<e.length;h++){a=!0;let g=e[h];if(g==="."||g===".."||!this.options.dot&&g.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 y=this.#r(e,r,i+u.length,n+1,s,o+1,a);if(y!==!1)return y}let g=e[i];if(g==="."||g===".."||!this.options.dot&&g.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],h=e[o];if(this.debug(r,f,h),f===!1||f===F.GLOBSTAR)return!1;let g;if(typeof f=="string"?(g=h===f,this.debug("string match",f,h,g)):(g=f.test(h),this.debug("pattern match",f,h,g)),!g)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,F.braceExpand)(this.pattern,this.options)}parse(e){(0,Ko.assertValidPattern)(e);let r=this.options;if(e==="**")return F.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(T2))?n=r.dot?x2:A2:(i=e.match(p2))?n=(r.nocase?r.dot?_2:m2:r.dot?y2:g2)(i[1]):(i=e.match(R2))?n=(r.nocase?r.dot?D2:O2:r.dot?I2:P2)(i):(i=e.match(b2))?n=r.dot?S2:w2:(i=e.match(E2))&&(n=v2);let s=_0.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?C2:r.dot?N2:M2,n=new Set(r.nocase?["i"]:[]),s=e.map(l=>{let u=l.map(f=>{if(f instanceof RegExp)for(let h of f.flags.split(""))n.add(h);return typeof f=="string"?U2(f):f===F.GLOBSTAR?F.GLOBSTAR:f._src});return u.forEach((f,h)=>{let g=u[h+1],y=u[h-1];f!==F.GLOBSTAR||y===F.GLOBSTAR||(y===void 0?g!==void 0&&g!==F.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+g:u[h]=i:g===void 0?u[h-1]=y+"(?:\\/|"+i+")?":g!==F.GLOBSTAR&&(u[h-1]=y+"(?:\\/|\\/"+i+"\\/)"+g,u[h+1]=F.GLOBSTAR))}),u.filter(f=>f!==F.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 F.minimatch.defaults(e).Minimatch}};F.Minimatch=Lr;var W2=Tf();Object.defineProperty(F,"AST",{enumerable:!0,get:function(){return W2.AST}});var G2=Af();Object.defineProperty(F,"escape",{enumerable:!0,get:function(){return G2.escape}});var z2=Go();Object.defineProperty(F,"unescape",{enumerable:!0,get:function(){return z2.unescape}});F.minimatch.AST=_0.AST;F.minimatch.Minimatch=Lr;F.minimatch.escape=c2.escape;F.minimatch.unescape=h2.unescape});var x0=b(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.LRUCache=void 0;var Si=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,v0=new Set,xf=typeof process=="object"&&process?process:{},T0=(t,e,r,i)=>{typeof xf.emitWarning=="function"?xf.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},Zo=globalThis.AbortController,E0=globalThis.AbortSignal;if(typeof Zo>"u"){E0=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},Zo=class{constructor(){e()}signal=new E0;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=xf.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,T0("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 $2=t=>!v0.has(t),ir=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),A0=t=>ir(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Ei:null:null,Ei=class extends Array{constructor(e){super(e),this.fill(0)}},Rf=class t{heap;length;static#e=!1;static create(e){let r=A0(e);if(!r)return[];t.#e=!0;let i=new t(e,r);return t.#e=!1,i}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Of=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;#m;#_;#g;#d;#E;#p;#T;#A;#y;#v;#b;#h;static unsafeExposeInternals(e){return{starts:e.#A,ttls:e.#y,sizes:e.#T,keyMap:e.#l,keyList:e.#a,valList:e.#s,next:e.#m,prev:e.#_,get head(){return e.#g},get tail(){return e.#d},free:e.#E,isBackgroundFetch:r=>e.#f(r),backgroundFetch:(r,i,n,s)=>e.#q(r,i,n,s),moveToTail:r=>e.#j(r),indexes:r=>e.#O(r),rindexes:r=>e.#D(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:h,noUpdateTTL:g,maxSize:y=0,maxEntrySize:E=0,sizeCalculation:m,fetchMethod:v,memoMethod:S,noDeleteOnFetchRejection:R,noDeleteOnStaleGet:L,allowStaleOnFetchRejection:D,allowStaleOnFetchAbort:q,ignoreFetchAbort:Z}=e;if(r!==0&&!ir(r))throw new TypeError("max option must be a nonnegative integer");let P=r?A0(r):Array;if(!P)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=y,this.maxEntrySize=E||this.#r,this.sizeCalculation=m,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(S!==void 0&&typeof S!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#S=S,v!==void 0&&typeof v!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=v,this.#b=!!v,this.#l=new Map,this.#a=new Array(r).fill(void 0),this.#s=new Array(r).fill(void 0),this.#m=new P(r),this.#_=new P(r),this.#g=0,this.#d=0,this.#E=Rf.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=!!h,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!R,this.allowStaleOnFetchRejection=!!D,this.allowStaleOnFetchAbort=!!q,this.ignoreFetchAbort=!!Z,this.maxEntrySize!==0){if(this.#r!==0&&!ir(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!ir(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#I()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!L,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=ir(n)||n===0?n:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!ir(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#x()}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 B="LRU_CACHE_UNBOUNDED";$2(B)&&(v0.add(B),T0("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",B,t))}}getRemainingTTL(e){return this.#l.has(e)?1/0:0}#x(){let e=new Ei(this.#e),r=new Ei(this.#e);this.#y=e,this.#A=r,this.#L=(s,o,a=Si.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.#R=s=>{r[s]=e[s]!==0?Si.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=Si.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}}#R=()=>{};#i=()=>{};#L=()=>{};#w=()=>!1;#I(){let e=new Ei(this.#e);this.#c=0,this.#T=e,this.#C=r=>{this.#c-=e[r],e[r]=0},this.#M=(r,i,n,s)=>{if(this.#f(i))return 0;if(!ir(n))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(n=s(i,r),!ir(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.#N=(r,i,n)=>{if(e[r]=i,this.#r){let s=this.#r-e[r];for(;this.#c>s;)this.#F(!0)}this.#c+=e[r],n&&(n.entrySize=i,n.totalCalculatedSize=this.#c)}}#C=e=>{};#N=(e,r,i)=>{};#M=(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.#k(r)||((e||!this.#w(r))&&(yield r),r===this.#g));)r=this.#_[r]}*#D({allowStale:e=this.allowStale}={}){if(this.#u)for(let r=this.#g;!(!this.#k(r)||((e||!this.#w(r))&&(yield r),r===this.#d));)r=this.#m[r]}#k(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.#D())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.#D()){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.#D())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.#D()){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.#D({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.#y&&this.#A){let o=this.#y[r],a=this.#A[r];if(o&&a){let l=o-(Si.now()-a);s.ttl=l,s.start=Date.now()}}return this.#T&&(s.size=this.#T[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.#y&&this.#A){o.ttl=this.#y[r];let a=Si.now()-this.#A[r];o.start=Math.floor(Date.now()-a)}this.#T&&(o.size=this.#T[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=Si.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.#M(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 h=this.#u===0?void 0:this.#l.get(e);if(h===void 0)h=this.#u===0?this.#d:this.#E.length!==0?this.#E.pop():this.#u===this.#e?this.#F(!1):this.#u,this.#a[h]=e,this.#s[h]=r,this.#l.set(e,h),this.#m[this.#d]=h,this.#_[h]=this.#d,this.#d=h,this.#u++,this.#N(h,f,l),l&&(l.set="add"),u=!1;else{this.#j(h);let g=this.#s[h];if(r!==g){if(this.#b&&this.#f(g)){g.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:y}=g;y!==void 0&&!o&&(this.#v&&this.#n?.(y,e,"set"),this.#h&&this.#p?.push([y,e,"set"]))}else o||(this.#v&&this.#n?.(g,e,"set"),this.#h&&this.#p?.push([g,e,"set"]));if(this.#C(h),this.#N(h,f,l),this.#s[h]=r,l){l.set="replace";let y=g&&this.#f(g)?g.__staleWhileFetching:g;y!==void 0&&(l.oldValue=y)}}else l&&(l.set="update")}if(n!==0&&!this.#y&&this.#x(),this.#y&&(u||this.#L(h,n,s),l&&this.#i(l,h)),!o&&this.#h&&this.#p){let g=this.#p,y;for(;y=g?.shift();)this.#t?.(...y)}return this}pop(){try{for(;this.#u;){let e=this.#s[this.#g];if(this.#F(!0),this.#f(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#h&&this.#p){let e=this.#p,r;for(;r=e?.shift();)this.#t?.(...r)}}}#F(e){let r=this.#g,i=this.#a[r],n=this.#s[r];return this.#b&&this.#f(n)?n.__abortController.abort(new Error("evicted")):(this.#v||this.#h)&&(this.#v&&this.#n?.(n,i,"evict"),this.#h&&this.#p?.push([n,i,"evict"])),this.#C(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.#m[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.#R(s),n&&(n.has="hit",this.#i(n,s)),!0}else n&&(n.has="miss");return!1}peek(e,r={}){let{allowStale:i=this.allowStale}=r,n=this.#l.get(e);if(n===void 0||!i&&this.#w(n))return;let s=this.#s[n];return this.#f(s)?s.__staleWhileFetching:s}#q(e,r,i,n){let s=r===void 0?void 0:this.#s[r];if(this.#f(s))return s;let o=new Zo,{signal:a}=i;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:i,context:n},u=(m,v=!1)=>{let{aborted:S}=o.signal,R=i.ignoreFetchAbort&&m!==void 0;if(i.status&&(S&&!v?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,R&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),S&&!R&&!v)return h(o.signal.reason);let L=y;return this.#s[r]===y&&(m===void 0?L.__staleWhileFetching?this.#s[r]=L.__staleWhileFetching:this.#P(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,m,l.options))),m},f=m=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=m),h(m)),h=m=>{let{aborted:v}=o.signal,S=v&&i.allowStaleOnFetchAbort,R=S||i.allowStaleOnFetchRejection,L=R||i.noDeleteOnFetchRejection,D=y;if(this.#s[r]===y&&(!L||D.__staleWhileFetching===void 0?this.#P(e,"fetch"):S||(this.#s[r]=D.__staleWhileFetching)),R)return i.status&&D.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),D.__staleWhileFetching;if(D.__returned===D)throw m},g=(m,v)=>{let S=this.#o?.(e,s,l);S&&S instanceof Promise&&S.then(R=>m(R===void 0?void 0:R),v),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(m(void 0),i.allowStaleOnFetchAbort&&(m=R=>u(R,!0)))})};i.status&&(i.status.fetchDispatched=!0);let y=new Promise(g).then(u,f),E=Object.assign(y,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(e,E,{...l.options,status:void 0}),r=this.#l.get(e)):this.#s[r]=E,E}#f(e){if(!this.#b)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof Zo}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:h=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:g=this.allowStaleOnFetchRejection,ignoreFetchAbort:y=this.ignoreFetchAbort,allowStaleOnFetchAbort:E=this.allowStaleOnFetchAbort,context:m,forceRefresh:v=!1,status:S,signal:R}=r;if(!this.#b)return S&&(S.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:S});let L={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:u,noUpdateTTL:f,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:g,allowStaleOnFetchAbort:E,ignoreFetchAbort:y,status:S,signal:R},D=this.#l.get(e);if(D===void 0){S&&(S.fetch="miss");let q=this.#q(e,D,L,m);return q.__returned=q}else{let q=this.#s[D];if(this.#f(q)){let M=i&&q.__staleWhileFetching!==void 0;return S&&(S.fetch="inflight",M&&(S.returnedStale=!0)),M?q.__staleWhileFetching:q.__returned=q}let Z=this.#w(D);if(!v&&!Z)return S&&(S.fetch="hit"),this.#j(D),n&&this.#R(D),S&&this.#i(S,D),q;let P=this.#q(e,D,L,m),x=P.__staleWhileFetching!==void 0&&i;return S&&(S.fetch=Z?"stale":"refresh",x&&Z&&(S.returnedStale=!0)),x?P.__staleWhileFetching:P.__returned=P}}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.#j(a),n&&this.#R(a),l))}else o&&(o.get="miss")}#B(e,r){this.#_[r]=e,this.#m[e]=r}#j(e){e!==this.#d&&(e===this.#g?this.#g=this.#m[e]:this.#B(this.#_[e],this.#m[e]),this.#B(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.#C(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.#_[n];else if(n===this.#g)this.#g=this.#m[n];else{let o=this.#_[n];this.#m[o]=this.#m[n];let a=this.#m[n];this.#_[a]=this.#_[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.#D({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.#y&&this.#A&&(this.#y.fill(0),this.#A.fill(0)),this.#T&&this.#T.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)}}};Qo.LRUCache=Of});var kf=b(Ye=>{"use strict";var H2=Ye&&Ye.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.Minipass=Ye.isWritable=Ye.isReadable=Ye.isStream=void 0;var R0=typeof process=="object"&&process?process:{stdout:null,stderr:null},Mf=W("node:events"),P0=H2(W("node:stream")),V2=W("node:string_decoder"),Y2=t=>!!t&&typeof t=="object"&&(t instanceof na||t instanceof P0.default||(0,Ye.isReadable)(t)||(0,Ye.isWritable)(t));Ye.isStream=Y2;var K2=t=>!!t&&typeof t=="object"&&t instanceof Mf.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==P0.default.Writable.prototype.pipe;Ye.isReadable=K2;var Z2=t=>!!t&&typeof t=="object"&&t instanceof Mf.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";Ye.isWritable=Z2;var Wt=Symbol("EOF"),Gt=Symbol("maybeEmitEnd"),nr=Symbol("emittedEnd"),Xo=Symbol("emittingEnd"),Ln=Symbol("emittedError"),Jo=Symbol("closed"),O0=Symbol("read"),ea=Symbol("flush"),D0=Symbol("flushChunk"),yt=Symbol("encoding"),vi=Symbol("decoder"),Le=Symbol("flowing"),Cn=Symbol("paused"),Ti=Symbol("resume"),Ce=Symbol("buffer"),Ve=Symbol("pipes"),Ne=Symbol("bufferLength"),Df=Symbol("bufferPush"),ta=Symbol("bufferShift"),ze=Symbol("objectMode"),xe=Symbol("destroyed"),If=Symbol("error"),Pf=Symbol("emitData"),I0=Symbol("emitEnd"),Lf=Symbol("emitEnd2"),xt=Symbol("async"),Cf=Symbol("abort"),ra=Symbol("aborted"),Nn=Symbol("signal"),Cr=Symbol("dataListeners"),Je=Symbol("discarded"),Mn=t=>Promise.resolve().then(t),Q2=t=>t(),X2=t=>t==="end"||t==="finish"||t==="prefinish",J2=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,eF=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),ia=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()}},Nf=class extends ia{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)}},tF=t=>!!t.objectMode,rF=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",na=class extends Mf.EventEmitter{[Le]=!1;[Cn]=!1;[Ve]=[];[Ce]=[];[ze];[yt];[xt];[vi];[Wt]=!1;[nr]=!1;[Xo]=!1;[Jo]=!1;[Ln]=null;[Ne]=0;[xe]=!1;[Nn];[ra]=!1;[Cr]=0;[Je]=!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");tF(r)?(this[ze]=!0,this[yt]=null):rF(r)?(this[yt]=r.encoding,this[ze]=!1):(this[ze]=!1,this[yt]=null),this[xt]=!!r.async,this[vi]=this[yt]?new V2.StringDecoder(this[yt]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Ce]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Ve]});let{signal:i}=r;i&&(this[Nn]=i,i.aborted?this[Cf]():i.addEventListener("abort",()=>this[Cf]()))}get bufferLength(){return this[Ne]}get encoding(){return this[yt]}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[ze]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[xt]}set async(e){this[xt]=this[xt]||!!e}[Cf](){this[ra]=!0,this.emit("abort",this[Nn]?.reason),this.destroy(this[Nn]?.reason)}get aborted(){return this[ra]}set aborted(e){}write(e,r,i){if(this[ra])return!1;if(this[Wt])throw new Error("write after end");if(this[xe])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[xt]?Mn:Q2;if(!this[ze]&&!Buffer.isBuffer(e)){if(eF(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(J2(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[ze]?(this[Le]&&this[Ne]!==0&&this[ea](!0),this[Le]?this.emit("data",e):this[Df](e),this[Ne]!==0&&this.emit("readable"),i&&n(i),this[Le]):e.length?(typeof e=="string"&&!(r===this[yt]&&!this[vi]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[yt]&&(e=this[vi].write(e)),this[Le]&&this[Ne]!==0&&this[ea](!0),this[Le]?this.emit("data",e):this[Df](e),this[Ne]!==0&&this.emit("readable"),i&&n(i),this[Le]):(this[Ne]!==0&&this.emit("readable"),i&&n(i),this[Le])}read(e){if(this[xe])return null;if(this[Je]=!1,this[Ne]===0||e===0||e&&e>this[Ne])return this[Gt](),null;this[ze]&&(e=null),this[Ce].length>1&&!this[ze]&&(this[Ce]=[this[yt]?this[Ce].join(""):Buffer.concat(this[Ce],this[Ne])]);let r=this[O0](e||null,this[Ce][0]);return this[Gt](),r}[O0](e,r){if(this[ze])this[ta]();else{let i=r;e===i.length||e===null?this[ta]():typeof i=="string"?(this[Ce][0]=i.slice(e),r=i.slice(0,e),this[Ne]-=e):(this[Ce][0]=i.subarray(e),r=i.subarray(0,e),this[Ne]-=e)}return this.emit("data",r),!this[Ce].length&&!this[Wt]&&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[Wt]=!0,this.writable=!1,(this[Le]||!this[Cn])&&this[Gt](),this}[Ti](){this[xe]||(!this[Cr]&&!this[Ve].length&&(this[Je]=!0),this[Cn]=!1,this[Le]=!0,this.emit("resume"),this[Ce].length?this[ea]():this[Wt]?this[Gt]():this.emit("drain"))}resume(){return this[Ti]()}pause(){this[Le]=!1,this[Cn]=!0,this[Je]=!1}get destroyed(){return this[xe]}get flowing(){return this[Le]}get paused(){return this[Cn]}[Df](e){this[ze]?this[Ne]+=1:this[Ne]+=e.length,this[Ce].push(e)}[ta](){return this[ze]?this[Ne]-=1:this[Ne]-=this[Ce][0].length,this[Ce].shift()}[ea](e=!1){do;while(this[D0](this[ta]())&&this[Ce].length);!e&&!this[Ce].length&&!this[Wt]&&this.emit("drain")}[D0](e){return this.emit("data",e),this[Le]}pipe(e,r){if(this[xe])return e;this[Je]=!1;let i=this[nr];return r=r||{},e===R0.stdout||e===R0.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Ve].push(r.proxyErrors?new Nf(this,e,r):new ia(this,e,r)),this[xt]?Mn(()=>this[Ti]()):this[Ti]()),e}unpipe(e){let r=this[Ve].find(i=>i.dest===e);r&&(this[Ve].length===1?(this[Le]&&this[Cr]===0&&(this[Le]=!1),this[Ve]=[]):this[Ve].splice(this[Ve].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[Je]=!1,this[Cr]++,!this[Ve].length&&!this[Le]&&this[Ti]();else if(e==="readable"&&this[Ne]!==0)super.emit("readable");else if(X2(e)&&this[nr])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[Ln]){let n=r;this[xt]?Mn(()=>n.call(this,this[Ln])):n.call(this,this[Ln])}return i}removeListener(e,r){return this.off(e,r)}off(e,r){let i=super.off(e,r);return e==="data"&&(this[Cr]=this.listeners("data").length,this[Cr]===0&&!this[Je]&&!this[Ve].length&&(this[Le]=!1)),i}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[Cr]=0,!this[Je]&&!this[Ve].length&&(this[Le]=!1)),r}get emittedEnd(){return this[nr]}[Gt](){!this[Xo]&&!this[nr]&&!this[xe]&&this[Ce].length===0&&this[Wt]&&(this[Xo]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Jo]&&this.emit("close"),this[Xo]=!1)}emit(e,...r){let i=r[0];if(e!=="error"&&e!=="close"&&e!==xe&&this[xe])return!1;if(e==="data")return!this[ze]&&!i?!1:this[xt]?(Mn(()=>this[Pf](i)),!0):this[Pf](i);if(e==="end")return this[I0]();if(e==="close"){if(this[Jo]=!0,!this[nr]&&!this[xe])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[Ln]=i,super.emit(If,i);let s=!this[Nn]||this.listeners("error").length?super.emit("error",i):!1;return this[Gt](),s}else if(e==="resume"){let s=super.emit("resume");return this[Gt](),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[Gt](),n}[Pf](e){for(let i of this[Ve])i.dest.write(e)===!1&&this.pause();let r=this[Je]?!1:super.emit("data",e);return this[Gt](),r}[I0](){return this[nr]?!1:(this[nr]=!0,this.readable=!1,this[xt]?(Mn(()=>this[Lf]()),!0):this[Lf]())}[Lf](){if(this[vi]){let r=this[vi].end();if(r){for(let i of this[Ve])i.dest.write(r);this[Je]||super.emit("data",r)}}for(let r of this[Ve])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[ze]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[ze]||(e.dataLength+=i.length)}),await r,e}async concat(){if(this[ze])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[yt]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,r)=>{this.on(xe,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[Je]=!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[Wt])return r();let s,o,a=h=>{this.off("data",l),this.off("end",u),this.off(xe,f),r(),o(h)},l=h=>{this.off("error",a),this.off("end",u),this.off(xe,f),this.pause(),s({value:h,done:!!this[Wt]})},u=()=>{this.off("error",a),this.off("data",l),this.off(xe,f),r(),s({done:!0,value:void 0})},f=()=>a(new Error("stream destroyed"));return new Promise((h,g)=>{o=g,s=h,this.once(xe,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[Je]=!1;let e=!1,r=()=>(this.pause(),this.off(If,r),this.off(xe,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(If,r),this.once(xe,r),{next:i,throw:r,return:r,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[xe])return e?this.emit("error",e):this.emit(xe),this;this[xe]=!0,this[Je]=!0,this[Ce].length=0,this[Ne]=0;let r=this;return typeof r.close=="function"&&!this[Jo]&&r.close(),e?this.emit("error",e):this.emit(xe),this}static get isStream(){return Ye.isStream}};Ye.Minipass=na});var H0=b(he=>{"use strict";var iF=he&&he.__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]})),nF=he&&he.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),sF=he&&he.__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)&&iF(e,t,r);return nF(e,t),e};Object.defineProperty(he,"__esModule",{value:!0});he.PathScurry=he.Path=he.PathScurryDarwin=he.PathScurryPosix=he.PathScurryWin32=he.PathScurryBase=he.PathPosix=he.PathWin32=he.PathBase=he.ChildrenCache=he.ResolveCache=void 0;var F0=x0(),ua=W("node:path"),oF=W("node:url"),Fn=W("fs"),aF=sF(W("node:fs")),lF=Fn.realpathSync.native,sa=W("node:fs/promises"),L0=kf(),qn={lstatSync:Fn.lstatSync,readdir:Fn.readdir,readdirSync:Fn.readdirSync,readlinkSync:Fn.readlinkSync,realpathSync:lF,promises:{lstat:sa.lstat,readdir:sa.readdir,readlink:sa.readlink,realpath:sa.realpath}},q0=t=>!t||t===qn||t===aF?qn:{...qn,...t,promises:{...qn.promises,...t.promises||{}}},B0=/^\\\\\?\\([a-z]:)\\?$/i,uF=t=>t.replace(/\//g,"\\").replace(B0,"$1\\"),fF=/[\\\/]/,ut=0,j0=1,U0=2,Rt=4,W0=6,G0=8,Nr=10,z0=12,lt=15,kn=~lt,Ff=16,C0=32,Bn=64,mt=128,oa=256,la=512,N0=Bn|mt|la,cF=1023,qf=t=>t.isFile()?G0:t.isDirectory()?Rt:t.isSymbolicLink()?Nr:t.isCharacterDevice()?U0:t.isBlockDevice()?W0:t.isSocket()?z0:t.isFIFO()?j0:ut,M0=new Map,jn=t=>{let e=M0.get(t);if(e)return e;let r=t.normalize("NFKD");return M0.set(t,r),r},k0=new Map,aa=t=>{let e=k0.get(t);if(e)return e;let r=jn(t.toLowerCase());return k0.set(t,r),r},Un=class extends F0.LRUCache{constructor(){super({max:256})}};he.ResolveCache=Un;var fa=class extends F0.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:r=>r.length+1})}};he.ChildrenCache=fa;var $0=Symbol("PathScurry setAsCwd"),Be=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}#m;get atimeMs(){return this.#m}#_;get mtimeMs(){return this.#_}#g;get ctimeMs(){return this.#g}#d;get birthtimeMs(){return this.#d}#E;get atime(){return this.#E}#p;get mtime(){return this.#p}#T;get ctime(){return this.#T}#A;get birthtime(){return this.#A}#y;#v;#b;#h;#x;#R;#i;#L;#w;#I;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,r=ut,i,n,s,o,a){this.name=e,this.#y=s?aa(e):jn(e),this.#i=r&cF,this.nocase=s,this.roots=n,this.root=i||this,this.#L=o,this.#b=a.fullpath,this.#x=a.relative,this.#R=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=q0(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).#C(n):this.#C(n)}#C(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?aa(e):jn(e);for(let l of i)if(l.#y===n)return l;let s=this.parent?this.sep:"",o=this.#b?this.#b+s+e:void 0,a=this.newChild(e,ut,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#i|=mt),i.push(a),a}relative(){if(this.isCWD)return"";if(this.#x!==void 0)return this.#x;let e=this.name,r=this.parent;if(!r)return this.#x=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.#R!==void 0)return this.#R;let e=this.name,r=this.parent;if(!r)return this.#R=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<)===ut}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<)===G0}isDirectory(){return(this.#i<)===Rt}isCharacterDevice(){return(this.#i<)===U0}isBlockDevice(){return(this.#i<)===W0}isFIFO(){return(this.#i<)===j0}isSocket(){return(this.#i<)===z0}isSymbolicLink(){return(this.#i&Nr)===Nr}lstatCached(){return this.#i&C0?this:void 0}readlinkCached(){return this.#w}realpathCached(){return this.#I}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<return!(e!==ut&&e!==Nr||this.#i&oa||this.#i&mt)}calledReaddir(){return!!(this.#i&Ff)}isENOENT(){return!!(this.#i&mt)}isNamed(e){return this.nocase?this.#y===aa(e):this.#y===jn(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}}#N(e){this.#i|=Ff;for(let r=e.provisional;r<e.length;r++){let i=e[r];i&&i.#M()}}#M(){this.#i&mt||(this.#i=(this.#i|mt)&kn,this.#O())}#O(){let e=this.children();e.provisional=0;for(let r of e)r.#M()}#D(){this.#i|=la,this.#k()}#k(){if(this.#i&Bn)return;let e=this.#i;(e<)===Rt&&(e&=kn),this.#i=e|Bn,this.#O()}#F(e=""){e==="ENOTDIR"||e==="EPERM"?this.#k():e==="ENOENT"?this.#M():this.children().provisional=0}#q(e=""){e==="ENOTDIR"?this.parent.#k():e==="ENOENT"&&this.#M()}#f(e=""){let r=this.#i;r|=oa,e==="ENOENT"&&(r|=mt),(e==="EINVAL"||e==="UNKNOWN")&&(r&=kn),this.#i=r,e==="ENOTDIR"&&this.parent&&this.parent.#k()}#B(e,r){return this.#P(e,r)||this.#j(e,r)}#j(e,r){let i=qf(e),n=this.newChild(e.name,i,{parent:this}),s=n.#i<return s!==Rt&&s!==Nr&&s!==ut&&(n.#i|=Bn),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?aa(e.name):jn(e.name))===n.#y)return this.#U(e,n,i,r)}}#U(e,r,i,n){let s=r.name;return r.#i=r.#i&kn|qf(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&mt)===0)try{return this.#$(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#q(e.code)}}lstatSync(){if((this.#i&mt)===0)try{return this.#$(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#q(e.code)}}#$(e){let{atime:r,atimeMs:i,birthtime:n,birthtimeMs:s,blksize:o,blocks:a,ctime:l,ctimeMs:u,dev:f,gid:h,ino:g,mode:y,mtime:E,mtimeMs:m,nlink:v,rdev:S,size:R,uid:L}=e;this.#E=r,this.#m=i,this.#A=n,this.#d=s,this.#c=o,this.#s=a,this.#T=l,this.#g=u,this.#r=f,this.#S=h,this.#l=g,this.#n=y,this.#p=E,this.#_=m,this.#t=v,this.#u=S,this.#a=R,this.#o=L;let D=qf(e);this.#i=this.#i&kn|D|C0,D!==ut&&D!==Rt&&D!==Nr&&(this.#i|=Bn)}#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.#F(s.code),i.provisional=0;else{for(let a of o)this.#B(a,i);this.#N(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.#B(n,e);this.#N(e)}catch(n){this.#F(n.code),e.provisional=0}this.#W=void 0,i()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let r=this.fullpath();try{for(let i of this.#e.readdirSync(r,{withFileTypes:!0}))this.#B(i,e);this.#N(e)}catch(i){this.#F(i.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#i&N0)return!1;let e=lt&this.#i;return e===ut||e===Rt||e===Nr}shouldWalk(e,r){return(this.#i&Rt)===Rt&&!(this.#i&N0)&&!e.has(this)&&(!r||r(this))}async realpath(){if(this.#I)return this.#I;if(!((la|oa|mt)&this.#i))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#I=this.resolve(e)}catch{this.#D()}}realpathSync(){if(this.#I)return this.#I;if(!((la|oa|mt)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#I=this.resolve(e)}catch{this.#D()}}[$0](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.#x=i.join(this.sep),n.#R=i.join("/"),n=n.parent,i.push("..");for(n=e;n&&n.parent&&!r.has(n);)n.#x=void 0,n.#R=void 0,n=n.parent}};he.PathBase=Be;var Wn=class t extends Be{sep="\\";splitSep=fF;constructor(e,r=ut,i,n,s,o,a){super(e,r,i,n,s,o,a)}newChild(e,r=ut,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(e){return ua.win32.parse(e).root}getRoot(e){if(e=uF(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 $n(e,this).root}sameRoot(e,r=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(B0,"$1\\"),e===r}};he.PathWin32=Wn;var Gn=class t extends Be{splitSep="/";sep="/";constructor(e,r=ut,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=ut,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}};he.PathPosix=Gn;var zn=class{root;rootPath;roots;cwd;#e;#r;#n;nocase;#t;constructor(e=process.cwd(),r,i,{nocase:n,childrenCacheSize:s=16*1024,fs:o=qn}={}){this.#t=q0(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,oF.fileURLToPath)(e));let a=r.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new Un,this.#r=new Un,this.#n=new fa(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,h=r.sep,g=this.rootPath,y=!1;for(let E of l){let m=f--;u=u.child(E,{relative:new Array(m).fill("..").join(h),relativePosix:new Array(m).fill("..").join("/"),fullpath:g+=(y?"":h)+E}),y=!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 Be||(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 Be||(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 Be||(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 Be||(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 Be||(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 Be||(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 Be||(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=(h,g)=>{l.add(h),h.readdirCB((y,E)=>{if(y)return g(y);let m=E.length;if(!m)return g();let v=()=>{--m===0&&g()};for(let S of E)(!s||s(S))&&a.push(i?S:S.fullpath()),n&&S.isSymbolicLink()?S.realpath().then(R=>R?.isUnknown()?R.lstat():R).then(R=>R?.shouldWalk(l,o)?u(R,v):v()):S.shouldWalk(l,o)?u(S,v):v()},!0)},f=e;return new Promise((h,g)=>{u(f,y=>{if(y)return g(y);h(a)})})}walkSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Be||(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 h of f){(!s||s(h))&&a.push(i?h:h.fullpath());let g=h;if(h.isSymbolicLink()){if(!(n&&(g=h.realpathSync())))continue;g.isUnknown()&&g.lstatSync()}g.shouldWalk(l,o)&&l.add(g)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,r={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Be||(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 Be||(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 h=f;if(f.isSymbolicLink()){if(!(n&&(h=f.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(a,o)&&a.add(h)}}}stream(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Be||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new L0.Minipass({objectMode:!0});(!s||s(e))&&a.write(i?e:e.fullpath());let l=new Set,u=[e],f=0,h=()=>{let g=!1;for(;!g;){let y=u.shift();if(!y){f===0&&a.end();return}f++,l.add(y);let E=(v,S,R=!1)=>{if(v)return a.emit("error",v);if(n&&!R){let L=[];for(let D of S)D.isSymbolicLink()&&L.push(D.realpath().then(q=>q?.isUnknown()?q.lstat():q));if(L.length){Promise.all(L).then(()=>E(null,S,!0));return}}for(let L of S)L&&(!s||s(L))&&(a.write(i?L:L.fullpath())||(g=!0));f--;for(let L of S){let D=L.realpathCached()||L;D.shouldWalk(l,o)&&u.push(D)}g&&!a.flowing?a.once("drain",h):m||h()},m=!0;y.readdirCB(E,!0),m=!1}};return h(),a}streamSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Be||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new L0.Minipass({objectMode:!0}),l=new Set;(!s||s(e))&&a.write(i?e:e.fullpath());let u=[e],f=0,h=()=>{let g=!1;for(;!g;){let y=u.shift();if(!y){f===0&&a.end();return}f++,l.add(y);let E=y.readdirSync();for(let m of E)(!s||s(m))&&(a.write(i?m:m.fullpath())||(g=!0));f--;for(let m of E){let v=m;if(m.isSymbolicLink()){if(!(n&&(v=m.realpathSync())))continue;v.isUnknown()&&v.lstatSync()}v.shouldWalk(l,o)&&u.push(v)}}g&&!a.flowing&&a.once("drain",h)};return h(),a}chdir(e=this.cwd){let r=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[$0](r)}};he.PathScurryBase=zn;var $n=class extends zn{sep="\\";constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,ua.win32,"\\",{...r,nocase:i}),this.nocase=i;for(let n=this.cwd;n;n=n.parent)n.nocase=this.nocase}parseRootPath(e){return ua.win32.parse(e).root.toUpperCase()}newRoot(e){return new Wn(this.rootPath,Rt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};he.PathScurryWin32=$n;var Hn=class extends zn{sep="/";constructor(e=process.cwd(),r={}){let{nocase:i=!1}=r;super(e,ua.posix,"/",{...r,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new Gn(this.rootPath,Rt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};he.PathScurryPosix=Hn;var ca=class extends Hn{constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,{...r,nocase:i})}};he.PathScurryDarwin=ca;he.Path=process.platform==="win32"?Wn:Gn;he.PathScurry=process.platform==="win32"?$n:process.platform==="darwin"?ca:Hn});var jf=b(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.Pattern=void 0;var hF=rr(),dF=t=>t.length>=1,pF=t=>t.length>=1,Bf=class t{#e;#r;#n;length;#t;#o;#S;#u;#c;#l;#a=!0;constructor(e,r,i,n){if(!dF(e))throw new TypeError("empty pattern list");if(!pF(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,h,g,y,...E]=this.#r;u[0]===""&&(u.shift(),E.shift());let m=[s,o,a,l,""].join("/"),v=[f,h,g,y,""].join("/");this.#e=[m,...u],this.#r=[v,...E],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]===hF.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)}};ha.Pattern=Bf});var Wf=b(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.Ignore=void 0;var V0=rr(),gF=jf(),yF=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Uf=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:r,nocase:i,noext:n,noglobstar:s,platform:o=yF}){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 V0.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 gF.Pattern(n,s,0,this.platform),a=new V0.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}};da.Ignore=Uf});var K0=b(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.Processor=Ot.SubWalks=Ot.MatchRecord=Ot.HasWalkedCache=void 0;var Y0=rr(),pa=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()]))}};Ot.HasWalkedCache=pa;var ga=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)])}};Ot.MatchRecord=ga;var ya=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())}};Ot.SubWalks=ya;var Gf=class t{hasWalkedCache;matches=new ga;subwalks=new ya;patterns;follow;dot;opts;constructor(e,r){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=r?r.copy():new pa}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 h=s.rest();if(h)s=h;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 h=l===".."||l===""||l===".";this.matches.add(n.resolve(l),a,h);continue}else if(l===Y0.GLOBSTAR){(!n.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(n,s);let h=u?.pattern(),g=u?.rest();if(!u||(h===""||h===".")&&!g)this.matches.add(n,a,h===""||h===".");else if(h===".."){let y=n.parent||n;g?this.hasWalkedCache.hasWalked(y,g)||this.subwalks.add(y,g):this.matches.add(y,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===Y0.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))}};Ot.Processor=Gf});var X0=b(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.GlobStream=sr.GlobWalker=sr.GlobUtil=void 0;var mF=kf(),Z0=Wf(),Q0=K0(),_F=(t,e)=>typeof t=="string"?new Z0.Ignore([t],e):Array.isArray(t)?new Z0.Ignore(t,e):t,Vn=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=_F(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 Q0.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 Q0.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()}};sr.GlobUtil=Vn;var zf=class extends Vn{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}};sr.GlobWalker=zf;var $f=class extends Vn{results;constructor(e,r,i){super(e,r,i),this.results=new mF.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}};sr.GlobStream=$f});var Vf=b(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.Glob=void 0;var bF=rr(),wF=W("node:url"),ma=H0(),SF=jf(),_a=X0(),EF=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Hf=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,wF.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||EF,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"?ma.PathScurryWin32:r.platform==="darwin"?ma.PathScurryDarwin:r.platform?ma.PathScurryPosix:ma.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 bF.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 SF.Pattern(l,f,0,this.platform)})}async walk(){return[...await new _a.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 _a.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 _a.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 _a.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()}};ba.Glob=Hf});var Yf=b(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.hasMagic=void 0;var vF=rr(),TF=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let r of t)if(new vF.Minimatch(r,e).hasMagic())return!0;return!1};wa.hasMagic=TF});var rS=b(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.glob=J.sync=J.iterate=J.iterateSync=J.stream=J.streamSync=J.Ignore=J.hasMagic=J.Glob=J.unescape=J.escape=void 0;J.globStreamSync=Yn;J.globStream=Kf;J.globSync=Zf;J.globIterateSync=Kn;J.globIterate=Qf;var J0=rr(),Mr=Vf(),AF=Yf(),tS=rr();Object.defineProperty(J,"escape",{enumerable:!0,get:function(){return tS.escape}});Object.defineProperty(J,"unescape",{enumerable:!0,get:function(){return tS.unescape}});var xF=Vf();Object.defineProperty(J,"Glob",{enumerable:!0,get:function(){return xF.Glob}});var RF=Yf();Object.defineProperty(J,"hasMagic",{enumerable:!0,get:function(){return RF.hasMagic}});var OF=Wf();Object.defineProperty(J,"Ignore",{enumerable:!0,get:function(){return OF.Ignore}});function Yn(t,e={}){return new Mr.Glob(t,e).streamSync()}function Kf(t,e={}){return new Mr.Glob(t,e).stream()}function Zf(t,e={}){return new Mr.Glob(t,e).walkSync()}async function eS(t,e={}){return new Mr.Glob(t,e).walk()}function Kn(t,e={}){return new Mr.Glob(t,e).iterateSync()}function Qf(t,e={}){return new Mr.Glob(t,e).iterate()}J.streamSync=Yn;J.stream=Object.assign(Kf,{sync:Yn});J.iterateSync=Kn;J.iterate=Object.assign(Qf,{sync:Kn});J.sync=Object.assign(Zf,{stream:Yn,iterate:Kn});J.glob=Object.assign(eS,{glob:eS,globSync:Zf,sync:J.sync,globStream:Kf,stream:J.stream,globStreamSync:Yn,streamSync:J.streamSync,globIterate:Qf,iterate:J.iterate,globIterateSync:Kn,iterateSync:J.iterateSync,Glob:Mr.Glob,hasMagic:AF.hasMagic,escape:J0.escape,unescape:J0.unescape});J.glob.glob=J.glob});var oS=b((e8,sS)=>{var nS=bl(),Ai=W("path"),Xf=Db(),DF=zw(),IF=t0(),PF=l0(),LF=rS(),kr=sS.exports={},iS=/[\/\\]/g,CF=function(t,e){var r=[];return Xf(t).forEach(function(i){var n=i.indexOf("!")===0;n&&(i=i.slice(1));var s=e(i);n?r=DF(r,s):r=IF(r,s)}),r};kr.exists=function(){var t=Ai.join.apply(Ai,arguments);return nS.existsSync(t)};kr.expand=function(...t){var e=PF(t[0])?t.shift():{},r=Array.isArray(t[0])?t[0]:t;if(r.length===0)return[];var i=CF(r,function(n){return LF.sync(n,e)});return e.filter&&(i=i.filter(function(n){n=Ai.join(e.cwd||"",n);try{return typeof e.filter=="function"?e.filter(n):nS.statSync(n)[e.filter]()}catch{return!1}})),i};kr.expandMapping=function(t,e,r){r=Object.assign({rename:function(s,o){return Ai.join(s||"",o)}},r);var i=[],n={};return kr.expand(r,t).forEach(function(s){var o=s;r.flatten&&(o=Ai.basename(o)),r.ext&&(o=o.replace(/(\.[^\/]*)?$/,r.ext));var a=r.rename(e,o,r);r.cwd&&(s=Ai.join(r.cwd,s)),a=a.replace(iS,"/"),s=s.replace(iS,"/"),n[a]?n[a].src.push(s):(i.push({src:[s],dest:a}),n[a]=i[i.length-1])}),i};kr.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=Xf(r.src):r.src=[r.src])}).map(function(r){var i=Object.assign({},r);if(delete i.src,delete i.dest,r.expand)return kr.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)?Xf(o):[o],s.result=kr.expand(i,o)),s.result}}),"dest"in n&&(n.dest=r.dest),n}).flatten().value(),e)}});var xi=b((r8,uS)=>{var Jf=bl(),aS=W("path"),NF=js(),MF=Mp(),lS=Gl(),kF=gy(),t8=W("stream").Stream,FF=Pr().PassThrough,et=uS.exports={};et.file=oS();et.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)})};et.dateify=function(t){return t=t||new Date,t instanceof Date?t=t:typeof t=="string"?t=new Date(t):t=new Date,t};et.defaults=function(t,e,r){var i=arguments;return i[0]=i[0]||{},kF(...i)};et.isStream=function(t){return NF(t)};et.lazyReadStream=function(t){return new MF.Readable(function(){return Jf.createReadStream(t)})};et.normalizeInputSource=function(t){return t===null?Buffer.alloc(0):typeof t=="string"?Buffer.from(t):et.isStream(t)?t.pipe(new FF):t};et.sanitizePath=function(t){return lS(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};et.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};et.unixifyPath=function(t){return lS(t,!1).replace(/^\w+:/,"")};et.walkdir=function(t,e,r){var i=[];typeof e=="function"&&(r=e,e=t),Jf.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=aS.join(t,a),Jf.stat(l,function(f,h){i.push({path:l,relative:aS.relative(e,l).replace(/\\/g,"/"),stats:h}),h&&h.isDirectory()?et.walkdir(l,e,function(g,y){if(g)return r(g);y.forEach(function(E){i.push(E)}),u()}):u()})})()})}});var dS=b((cS,hS)=>{var qF=W("util"),BF={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 fS(t,e){Error.captureStackTrace(this,this.constructor),this.message=BF[t]||t,this.code=t,this.data=e}qF.inherits(fS,Error);cS=hS.exports=fS});var _S=b((i8,mS)=>{var rc=W("fs"),gS=Ad(),pS=Rd(),ec=W("path"),Dt=xi(),jF=W("util").inherits,Ae=dS(),yS=Pr().Transform,tc=process.platform==="win32",le=function(t,e){if(!(this instanceof le))return new le(t,e);typeof t!="string"&&(e=t,t="zip"),e=this.options=Dt.defaults(e,{highWaterMark:1024*1024,statConcurrency:4}),yS.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=pS.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=pS.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=[]};jF(le,yS);le.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};le.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 rc.Stats?(r=this._updateQueueTaskWithStats(r,e.stats),r&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(r))):this._statQueue.push(r)};le.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)};le.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};le.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))};le.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"))};le.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};le.prototype._moduleSupports=function(t){return!this._module.supports||!this._module.supports[t]?!1:this._module.supports[t]};le.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};le.prototype._normalizeEntryData=function(t,e){t=Dt.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=Dt.sanitizePath(t.name),t.type!=="symlink"&&t.name.slice(-1)==="/"?(r=!0,t.type="directory"):r&&(t.name+="/")),typeof t.mode=="number"?tc?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(tc?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,tc&&r&&(t.mode=493)):t.mode===null&&(t.mode=r?493:420),t.stats&&t.date===null?t.date=t.stats.mtime:t.date=Dt.dateify(t.date),t};le.prototype._onModuleError=function(t){this.emit("error",t)};le.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()};le.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)};le.prototype._onStatQueueTask=function(t,e){if(this._state.finalizing||this._state.finalized||this._state.aborted){e();return}rc.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))};le.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};le.prototype._transform=function(t,e,r){t&&(this._pointer+=t.length),r(null,t)};le.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=Dt.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=Dt.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=Dt.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else if(e.isSymbolicLink()&&this._moduleSupports("symlink")){var r=rc.readlinkSync(t.filepath),i=ec.dirname(t.filepath);t.data.type="symlink",t.data.linkname=ec.relative(i,ec.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};le.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};le.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=Dt.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else if(Dt.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};le.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,h=Object.assign({},r);h.name=u.relative,h.prefix=e,h.stats=u.stat,h.callback=l.resume.bind(l);try{if(i){if(h=i(h),h===!1)f=!0;else if(typeof h!="object")throw new Ae("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}}catch(g){this.emit("error",g);return}if(f){l.resume();return}this._append(u.absolute,h)}var l=gS(t,n);return l.on("error",o.bind(this)),l.on("match",a.bind(this)),l.on("end",s.bind(this)),this};le.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)};le.prototype.glob=function(t,e,r){this._pending++,e=Dt.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=gS(e.cwd||".",e);return o.on("error",n.bind(this)),o.on("match",s.bind(this)),o.on("end",i.bind(this)),this};le.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)})})};le.prototype.setFormat=function(t){return this._format?(this.emit("error",new Ae("FORMATSET")),this):(this._format=t,this)};le.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)};le.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};le.prototype.pointer=function(){return this._pointer};le.prototype.use=function(t){return this._streams.push(t),this};mS.exports=le});var Ea=b((n8,bS)=>{var Sa=bS.exports=function(){};Sa.prototype.getName=function(){};Sa.prototype.getSize=function(){};Sa.prototype.getLastModifiedDate=function(){};Sa.prototype.isDirectory=function(){}});var va=b((s8,wS)=>{var ft=wS.exports={};ft.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};ft.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)};ft.fromDosTime=function(t){return ft.dosToDate(t.readUInt32LE(0))};ft.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e};ft.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((t&65535)>>>0,0),e};ft.getShortBytesValue=function(t,e){return t.readUInt16LE(e)};ft.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((t&4294967295)>>>0,0),e};ft.getLongBytesValue=function(t,e){return t.readUInt32LE(e)};ft.toDosTime=function(t){return ft.getLongBytes(ft.dateToDos(t))}});var ic=b((o8,xS)=>{var SS=va(),ES=8,vS=1,UF=4,WF=2,TS=64,AS=2048,je=xS.exports=function(){return this instanceof je?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new je};je.prototype.encode=function(){return SS.getShortBytes((this.descriptor?ES:0)|(this.utf8?AS:0)|(this.encryption?vS:0)|(this.strongEncryption?TS:0))};je.prototype.parse=function(t,e){var r=SS.getShortBytesValue(t,e),i=new je;return i.useDataDescriptor((r&ES)!==0),i.useUTF8ForNames((r&AS)!==0),i.useStrongEncryption((r&TS)!==0),i.useEncryption((r&vS)!==0),i.setSlidingDictionarySize((r&WF)!==0?8192:4096),i.setNumberOfShannonFanoTrees((r&UF)!==0?3:2),i};je.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t};je.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};je.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t};je.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};je.prototype.useDataDescriptor=function(t){this.descriptor=t};je.prototype.usesDataDescriptor=function(){return this.descriptor};je.prototype.useEncryption=function(t){this.encryption=t};je.prototype.usesEncryption=function(){return this.encryption};je.prototype.useStrongEncryption=function(t){this.strongEncryption=t};je.prototype.usesStrongEncryption=function(){return this.strongEncryption};je.prototype.useUTF8ForNames=function(t){this.utf8=t};je.prototype.usesUTF8ForNames=function(){return this.utf8}});var OS=b((a8,RS)=>{RS.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 nc=b((l8,DS)=>{DS.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 sc=b((u8,NS)=>{var GF=W("util").inherits,zF=Gl(),PS=Ea(),LS=ic(),IS=OS(),Ke=nc(),CS=va(),K=NS.exports=function(t){if(!(this instanceof K))return new K(t);PS.call(this),this.platform=Ke.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new LS,this.crc=0,this.time=-1,this.minver=Ke.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};GF(K,PS);K.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};K.prototype.getComment=function(){return this.comment!==null?this.comment:""};K.prototype.getCompressedSize=function(){return this.csize};K.prototype.getCrc=function(){return this.crc};K.prototype.getExternalAttributes=function(){return this.exattr};K.prototype.getExtra=function(){return this.extra!==null?this.extra:Ke.EMPTY};K.prototype.getGeneralPurposeBit=function(){return this.gpb};K.prototype.getInternalAttributes=function(){return this.inattr};K.prototype.getLastModifiedDate=function(){return this.getTime()};K.prototype.getLocalFileDataExtra=function(){return this.getExtra()};K.prototype.getMethod=function(){return this.method};K.prototype.getName=function(){return this.name};K.prototype.getPlatform=function(){return this.platform};K.prototype.getSize=function(){return this.size};K.prototype.getTime=function(){return this.time!==-1?CS.dosToDate(this.time):-1};K.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};K.prototype.getUnixMode=function(){return this.platform!==Ke.PLATFORM_UNIX?0:this.getExternalAttributes()>>Ke.SHORT_SHIFT&Ke.SHORT_MASK};K.prototype.getVersionNeededToExtract=function(){return this.minver};K.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t};K.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t};K.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t};K.prototype.setExternalAttributes=function(t){this.exattr=t>>>0};K.prototype.setExtra=function(t){this.extra=t};K.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof LS))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t};K.prototype.setInternalAttributes=function(t){this.inattr=t};K.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t};K.prototype.setName=function(t,e=!1){t=zF(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t};K.prototype.setPlatform=function(t){this.platform=t};K.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t};K.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=CS.dateToDos(t,e)};K.prototype.setUnixMode=function(t){t|=this.isDirectory()?Ke.S_IFDIR:Ke.S_IFREG;var e=0;e|=t<<Ke.SHORT_SHIFT|(this.isDirectory()?Ke.S_DOS_D:Ke.S_DOS_A),this.setExternalAttributes(e),this.mode=t&Ke.MODE_MASK,this.platform=Ke.PLATFORM_UNIX};K.prototype.setVersionNeededToExtract=function(t){this.minver=t};K.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};K.prototype.isUnixSymlink=function(){return(this.getUnixMode()&IS.FILE_TYPE_FLAG)===IS.LINK_FLAG};K.prototype.isZip64=function(){return this.csize>Ke.ZIP64_MAGIC||this.size>Ke.ZIP64_MAGIC}});var oc=b((c8,MS)=>{var f8=W("stream").Stream,$F=Pr().PassThrough,HF=js(),VF=MS.exports={};VF.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(HF(t)&&!t._readableState){var e=new $F;return t.pipe(e),e}return t}});var lc=b((h8,kS)=>{var YF=W("util").inherits,KF=js(),ac=Pr().Transform,ZF=Ea(),QF=oc(),tt=kS.exports=function(t){if(!(this instanceof tt))return new tt(t);ac.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};YF(tt,ac);tt.prototype._appendBuffer=function(t,e,r){};tt.prototype._appendStream=function(t,e,r){};tt.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)};tt.prototype._finish=function(t){};tt.prototype._normalizeEntry=function(t){};tt.prototype._transform=function(t,e,r){r(null,t)};tt.prototype.entry=function(t,e,r){if(e=e||null,typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),!(t instanceof ZF)){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=QF.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,r);else if(KF(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};tt.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};tt.prototype.getBytesWritten=function(){return this.offset};tt.prototype.write=function(t,e){return t&&(this.offset+=t.length),ac.prototype.write.call(this,t,e)}});var Ta=b(uc=>{var FS;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof uc=="object"?t(uc):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t(FS={}):t(FS={})})(function(t){t.version="1.2.2";function e(){for(var P=0,B=new Array(256),x=0;x!=256;++x)P=x,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,B[x]=P;return typeof Int32Array<"u"?new Int32Array(B):B}var r=e();function i(P){var B=0,x=0,M=0,k=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(M=0;M!=256;++M)k[M]=P[M];for(M=0;M!=256;++M)for(x=P[M],B=256+M;B<4096;B+=256)x=k[B]=x>>>8^P[x&255];var H=[];for(M=1;M!=16;++M)H[M-1]=typeof Int32Array<"u"?k.subarray(M*256,M*256+256):k.slice(M*256,M*256+256);return H}var n=i(r),s=n[0],o=n[1],a=n[2],l=n[3],u=n[4],f=n[5],h=n[6],g=n[7],y=n[8],E=n[9],m=n[10],v=n[11],S=n[12],R=n[13],L=n[14];function D(P,B){for(var x=B^-1,M=0,k=P.length;M<k;)x=x>>>8^r[(x^P.charCodeAt(M++))&255];return~x}function q(P,B){for(var x=B^-1,M=P.length-15,k=0;k<M;)x=L[P[k++]^x&255]^R[P[k++]^x>>8&255]^S[P[k++]^x>>16&255]^v[P[k++]^x>>>24]^m[P[k++]]^E[P[k++]]^y[P[k++]]^g[P[k++]]^h[P[k++]]^f[P[k++]]^u[P[k++]]^l[P[k++]]^a[P[k++]]^o[P[k++]]^s[P[k++]]^r[P[k++]];for(M+=15;k<M;)x=x>>>8^r[(x^P[k++])&255];return~x}function Z(P,B){for(var x=B^-1,M=0,k=P.length,H=0,ee=0;M<k;)H=P.charCodeAt(M++),H<128?x=x>>>8^r[(x^H)&255]:H<2048?(x=x>>>8^r[(x^(192|H>>6&31))&255],x=x>>>8^r[(x^(128|H&63))&255]):H>=55296&&H<57344?(H=(H&1023)+64,ee=P.charCodeAt(M++)&1023,x=x>>>8^r[(x^(240|H>>8&7))&255],x=x>>>8^r[(x^(128|H>>2&63))&255],x=x>>>8^r[(x^(128|ee>>6&15|(H&3)<<4))&255],x=x>>>8^r[(x^(128|ee&63))&255]):(x=x>>>8^r[(x^(224|H>>12&15))&255],x=x>>>8^r[(x^(128|H>>6&63))&255],x=x>>>8^r[(x^(128|H&63))&255]);return~x}t.table=r,t.bstr=D,t.buf=q,t.str=Z})});var BS=b((p8,qS)=>{"use strict";var{Transform:XF}=Pr(),JF=Ta(),fc=class extends XF{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,r,i){e&&(this.checksum=JF.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}};qS.exports=fc});var US=b((g8,jS)=>{"use strict";var{DeflateRaw:eq}=W("zlib"),tq=Ta(),cc=class extends eq{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=tq.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}};jS.exports=cc});var hc=b((y8,WS)=>{"use strict";WS.exports={CRC32Stream:BS(),DeflateCRC32Stream:US()}});var $S=b((w8,zS)=>{var rq=W("util").inherits,iq=Ta(),{CRC32Stream:nq}=hc(),{DeflateCRC32Stream:sq}=hc(),GS=lc(),m8=sc(),_8=ic(),V=nc(),b8=oc(),$=va(),Me=zS.exports=function(t){if(!(this instanceof Me))return new Me(t);t=this.options=this._defaults(t),GS.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}};rq(Me,GS);Me.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()};Me.prototype._appendBuffer=function(t,e,r){e.length===0&&t.setMethod(V.METHOD_STORED);var i=t.getMethod();if(i===V.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(iq.buf(e)>>>0)),this._writeLocalFileHeader(t),i===V.METHOD_STORED){this.write(e),this._afterAppend(t),r(null,t);return}else if(i===V.METHOD_DEFLATED){this._smartStream(t,r).end(e);return}else{r(new Error("compression method "+i+" not implemented"));return}};Me.prototype._appendStream=function(t,e,r){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(V.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)};Me.prototype._defaults=function(t){return typeof t!="object"&&(t={}),typeof t.zlib!="object"&&(t.zlib={}),typeof t.zlib.level!="number"&&(t.zlib.level=V.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t};Me.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()};Me.prototype._normalizeEntry=function(t){t.getMethod()===-1&&t.setMethod(V.METHOD_DEFLATED),t.getMethod()===V.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(V.MIN_VERSION_DATA_DESCRIPTOR)),t.getTime()===-1&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}};Me.prototype._smartStream=function(t,e){var r=t.getMethod()===V.METHOD_DEFLATED,i=r?new sq(this.options.zlib):new nq,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};Me.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(t=V.ZIP64_MAGIC_SHORT,e=V.ZIP64_MAGIC,r=V.ZIP64_MAGIC),this.write($.getLongBytes(V.SIG_EOCD)),this.write(V.SHORT_ZERO),this.write(V.SHORT_ZERO),this.write($.getShortBytes(t)),this.write($.getShortBytes(t)),this.write($.getLongBytes(e)),this.write($.getLongBytes(r));var i=this.getComment(),n=Buffer.byteLength(i);this.write($.getShortBytes(n)),this.write(i)};Me.prototype._writeCentralDirectoryZip64=function(){this.write($.getLongBytes(V.SIG_ZIP64_EOCD)),this.write($.getEightBytes(44)),this.write($.getShortBytes(V.MIN_VERSION_ZIP64)),this.write($.getShortBytes(V.MIN_VERSION_ZIP64)),this.write(V.LONG_ZERO),this.write(V.LONG_ZERO),this.write($.getEightBytes(this._entries.length)),this.write($.getEightBytes(this._entries.length)),this.write($.getEightBytes(this._archive.centralLength)),this.write($.getEightBytes(this._archive.centralOffset)),this.write($.getLongBytes(V.SIG_ZIP64_EOCD_LOC)),this.write(V.LONG_ZERO),this.write($.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write($.getLongBytes(1))};Me.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>V.ZIP64_MAGIC){n=V.ZIP64_MAGIC,s=V.ZIP64_MAGIC,i=V.ZIP64_MAGIC,t.setVersionNeededToExtract(V.MIN_VERSION_ZIP64);var o=Buffer.concat([$.getShortBytes(V.ZIP64_EXTRA_ID),$.getShortBytes(24),$.getEightBytes(t.getSize()),$.getEightBytes(t.getCompressedSize()),$.getEightBytes(t._offsets.file)],28);t.setExtra(o)}this.write($.getLongBytes(V.SIG_CFH)),this.write($.getShortBytes(t.getPlatform()<<8|V.VERSION_MADEBY)),this.write($.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write($.getShortBytes(r)),this.write($.getLongBytes(t.getTimeDos())),this.write($.getLongBytes(t.getCrc())),this.write($.getLongBytes(s)),this.write($.getLongBytes(n));var a=t.getName(),l=t.getComment(),u=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(a=Buffer.from(a),l=Buffer.from(l)),this.write($.getShortBytes(a.length)),this.write($.getShortBytes(u.length)),this.write($.getShortBytes(l.length)),this.write(V.SHORT_ZERO),this.write($.getShortBytes(t.getInternalAttributes())),this.write($.getLongBytes(t.getExternalAttributes())),this.write($.getLongBytes(i)),this.write(a),this.write(u),this.write(l)};Me.prototype._writeDataDescriptor=function(t){this.write($.getLongBytes(V.SIG_DD)),this.write($.getLongBytes(t.getCrc())),t.isZip64()?(this.write($.getEightBytes(t.getCompressedSize())),this.write($.getEightBytes(t.getSize()))):(this.write($.getLongBytes(t.getCompressedSize())),this.write($.getLongBytes(t.getSize())))};Me.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),i=t.getName(),n=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(V.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(i=Buffer.from(i)),t._offsets.file=this.offset,this.write($.getLongBytes(V.SIG_LFH)),this.write($.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write($.getShortBytes(r)),this.write($.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(V.LONG_ZERO),this.write(V.LONG_ZERO),this.write(V.LONG_ZERO)):(this.write($.getLongBytes(t.getCrc())),this.write($.getLongBytes(t.getCompressedSize())),this.write($.getLongBytes(t.getSize()))),this.write($.getShortBytes(i.length)),this.write($.getShortBytes(n.length)),this.write(i),this.write(n),t._offsets.contents=this.offset};Me.prototype.getComment=function(t){return this._archive.comment!==null?this._archive.comment:""};Me.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>V.ZIP64_MAGIC_SHORT||this._archive.centralLength>V.ZIP64_MAGIC||this._archive.centralOffset>V.ZIP64_MAGIC};Me.prototype.setComment=function(t){this._archive.comment=t}});var dc=b((S8,HS)=>{HS.exports={ArchiveEntry:Ea(),ZipArchiveEntry:sc(),ArchiveOutputStream:lc(),ZipArchiveOutputStream:$S()}});var YS=b((E8,VS)=>{var oq=W("util").inherits,gc=dc().ZipArchiveOutputStream,aq=dc().ZipArchiveEntry,pc=xi(),Ri=VS.exports=function(t){if(!(this instanceof Ri))return new Ri(t);t=this.options=t||{},t.zlib=t.zlib||{},gc.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)};oq(Ri,gc);Ri.prototype._normalizeFileData=function(t){t=pc.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=pc.sanitizePath(t.name),!r&&t.name.slice(-1)==="/"?(e=!0,t.type="directory"):e&&(t.name+="/")),(e||r)&&(t.store=!0),t.date=pc.dateify(t.date),t};Ri.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)),gc.prototype.entry.call(this,i,t,r)};Ri.prototype.finalize=function(){this.finish()}});var ZS=b((v8,KS)=>{var lq=YS(),uq=xi(),or=function(t){if(!(this instanceof or))return new or(t);t=this.options=uq.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new lq(t)};or.prototype.append=function(t,e,r){this.engine.entry(t,e,r)};or.prototype.finalize=function(){this.engine.finalize()};or.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};or.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};or.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};KS.exports=or});var XS=b((T8,QS)=>{QS.exports=W("events")});var eE=b((x8,JS)=>{JS.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 yc=b((O8,rE)=>{var tE=eE();rE.exports=class{constructor(e){this.hwm=e||16,this.head=new tE(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 tE(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 Oi=b((D8,iE)=>{function fq(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function cq(t){return Buffer.isEncoding(t)}function hq(t,e,r){return Buffer.alloc(t,e,r)}function dq(t){return Buffer.allocUnsafe(t)}function pq(t){return Buffer.allocUnsafeSlow(t)}function gq(t,e){return Buffer.byteLength(t,e)}function yq(t,e){return Buffer.compare(t,e)}function mq(t,e){return Buffer.concat(t,e)}function _q(t,e,r,i,n){return pe(t).copy(e,r,i,n)}function bq(t,e){return pe(t).equals(e)}function wq(t,e,r,i,n){return pe(t).fill(e,r,i,n)}function Sq(t,e,r){return Buffer.from(t,e,r)}function Eq(t,e,r,i){return pe(t).includes(e,r,i)}function vq(t,e,r,i){return pe(t).indexOf(e,r,i)}function Tq(t,e,r,i){return pe(t).lastIndexOf(e,r,i)}function Aq(t){return pe(t).swap16()}function xq(t){return pe(t).swap32()}function Rq(t){return pe(t).swap64()}function pe(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function Oq(t,e,r,i){return pe(t).toString(e,r,i)}function Dq(t,e,r,i,n){return pe(t).write(e,r,i,n)}function Iq(t,e){return pe(t).readDoubleBE(e)}function Pq(t,e){return pe(t).readDoubleLE(e)}function Lq(t,e){return pe(t).readFloatBE(e)}function Cq(t,e){return pe(t).readFloatLE(e)}function Nq(t,e){return pe(t).readInt32BE(e)}function Mq(t,e){return pe(t).readInt32LE(e)}function kq(t,e){return pe(t).readUInt32BE(e)}function Fq(t,e){return pe(t).readUInt32LE(e)}function qq(t,e,r){return pe(t).writeDoubleBE(e,r)}function Bq(t,e,r){return pe(t).writeDoubleLE(e,r)}function jq(t,e,r){return pe(t).writeFloatBE(e,r)}function Uq(t,e,r){return pe(t).writeFloatLE(e,r)}function Wq(t,e,r){return pe(t).writeInt32BE(e,r)}function Gq(t,e,r){return pe(t).writeInt32LE(e,r)}function zq(t,e,r){return pe(t).writeUInt32BE(e,r)}function $q(t,e,r){return pe(t).writeUInt32LE(e,r)}iE.exports={isBuffer:fq,isEncoding:cq,alloc:hq,allocUnsafe:dq,allocUnsafeSlow:pq,byteLength:gq,compare:yq,concat:mq,copy:_q,equals:bq,fill:wq,from:Sq,includes:Eq,indexOf:vq,lastIndexOf:Tq,swap16:Aq,swap32:xq,swap64:Rq,toBuffer:pe,toString:Oq,write:Dq,readDoubleBE:Iq,readDoubleLE:Pq,readFloatBE:Lq,readFloatLE:Cq,readInt32BE:Nq,readInt32LE:Mq,readUInt32BE:kq,readUInt32LE:Fq,writeDoubleBE:qq,writeDoubleLE:Bq,writeFloatBE:jq,writeFloatLE:Uq,writeInt32BE:Wq,writeInt32LE:Gq,writeUInt32BE:zq,writeUInt32LE:$q}});var sE=b((P8,nE)=>{var Hq=Oi();nE.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return Hq.toString(e,this.encoding)}flush(){return""}}});var uE=b((C8,lE)=>{var oE=Oi();lE.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(e){if(e.byteLength===0)return"";if(this.bytesNeeded===0&&aE(e,0)===0)return this.bytesSeen=Vq(e),oE.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=aE(e,i),s=e.byteLength-n;s>i&&(r+=oE.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 aE(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 Vq(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 cE=b((M8,fE)=>{var Yq=sE(),Kq=uE();fE.exports=class{constructor(e="utf8"){switch(this.encoding=Zq(e),this.encoding){case"utf8":this.decoder=new Kq;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new Yq(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 Zq(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 dE=b((k8,hE)=>{hE.exports=class It extends Error{constructor(e,r,i=It){super(e),this.code=r,Error.captureStackTrace&&Error.captureStackTrace(this,i)}static isStreamDestroyed(e){return e&&e.code==="STREAM_DESTROYED"}static isPrematureClose(e){return e&&e.code==="PREMATURE_CLOSE"}static isAborted(e){return e&&e.code==="ABORTED"}static isBadArgument(e){return e&&e.code==="BAD_ARGUMENT"}get name(){return"StreamError"}static STREAM_DESTROYED(){return new It("Stream was destroyed","STREAM_DESTROYED",It.STREAM_DESTROYED)}static PREMATURE_CLOSE(e="Premature close"){return new It(e,"PREMATURE_CLOSE",It.PREMATURE_CLOSE)}static ABORTED(){return new It("Stream aborted","ABORTED",It.ABORTED)}static BAD_ARGUMENT(e="Bad argument"){return new It(e,"BAD_ARGUMENT",It.BAD_ARGUMENT)}}});var Lc=b((F8,NE)=>{var{EventEmitter:Qq}=XS(),_E=yc(),Xq=cE(),ct=dE(),mc=typeof queueMicrotask>"u"?t=>global.process.nextTick(t):queueMicrotask,Te=(1<<29)-1,Pt=1,Tc=2,zt=4,Zn=8,bE=Te^Pt,Jq=Te^Tc,ts=16,Di=32,Li=64,lr=128,rs=256,Ac=512,ur=1024,_c=2048,xc=4096,Rc=8192,_t=16384,ar=32768,Pa=65536,Fr=131072,wE=rs|Ac,eB=ts|Pa,tB=Li|ts,rB=xc|lr,Oc=rs|Fr,iB=Te^ts,nB=Te^Li,sB=Te^(Li|Pa),pE=Te^Pa,oB=Te^rs,aB=Te^(lr|Rc),lB=Te^ur,gE=Te^wE,SE=Te^ar,uB=Te^Di,EE=Te^Fr,fB=Te^Oc,$t=1<<18,Pi=2<<18,is=4<<18,qr=8<<18,ns=16<<18,cr=32<<18,bc=64<<18,Ii=128<<18,Dc=256<<18,fr=512<<18,La=1024<<18,cB=Te^($t|Dc),vE=Te^is,hB=Te^($t|fr),dB=Te^ns,pB=Te^qr,TE=Te^Ii,gB=Te^Pi,AE=Te^La,Qn=ts|$t,xE=Te^Qn,Ic=_t|cr,Lt=zt|Zn|Tc,rt=Lt|Pt,RE=Lt|Ic,yB=vE&nB,Ca=Ii|ar,mB=Ca&xE,OE=rt|mB,_B=rt|ur|_t,yE=rt|_t|lr,bB=rt|ur|lr,wB=rt|xc|lr|Rc,SB=rt|ts|ur|_t|Pa|Fr,EB=Lt|ur|_t,vB=Di|rt|ar|Li,TB=ar|Pt,AB=rt|fr|cr,xB=qr|ns,DE=qr|$t,RB=qr|ns|rt|$t,mE=rt|$t|qr|La,OB=is|$t,DB=$t|Dc,IB=rt|fr|DE|cr,PB=ns|Lt|fr|cr,LB=Pi|rt|Ii|is,CB=fr|cr|Lt,Aa=Symbol.asyncIterator||Symbol("asyncIterator"),xa=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapWritable:n,byteLength:s,byteLengthWritable:o}={}){this.stream=e,this.queue=new _E,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||s||CE,this.map=n||i,this.afterWrite=kB.bind(this),this.afterUpdateNextTick=BB.bind(this)}get ending(){return(this.stream._duplexState&fr)!==0}get ended(){return(this.stream._duplexState&cr)!==0}push(e){return(this.stream._duplexState&CB)!==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|=qr,!0):(this.stream._duplexState|=xB,!1))}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=pB),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|fr)&vE}autoBatch(e,r){let i=[],n=this.stream;for(i.push(e);(n._duplexState&mE)===DE;)i.push(n._writableState.shift());if((n._duplexState&rt)!==0)return r(null);n._writev(i,r)}update(){let e=this.stream;e._duplexState|=Pi;do{for(;(e._duplexState&mE)===qr;){let r=this.shift();e._duplexState|=DB,e._write(r,this.afterWrite)}(e._duplexState&OB)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=gB}updateNonPrimary(){let e=this.stream;if((e._duplexState&IB)===fr){e._duplexState=e._duplexState|$t,e._final(MB.bind(this));return}if((e._duplexState&Lt)===zt){(e._duplexState&Ca)===0&&(e._duplexState|=Qn,e._destroy(IE.bind(this)));return}(e._duplexState&OE)===Pt&&(e._duplexState=(e._duplexState|Qn)&bE,e._open(PE.bind(this)))}continueUpdate(){return(this.stream._duplexState&Ii)===0?!1:(this.stream._duplexState&=TE,!0)}updateCallback(){(this.stream._duplexState&LB)===is?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&Ii)===0&&(this.stream._duplexState|=Ii,(this.stream._duplexState&Pi)===0&&mc(this.afterUpdateNextTick))}},wc=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapReadable:n,byteLength:s,byteLengthReadable:o}={}){this.stream=e,this.queue=new _E,this.highWaterMark=r===0?1:r,this.buffered=0,this.readAhead=r>0,this.error=null,this.pipeline=null,this.byteLength=o||s||CE,this.map=n||i,this.pipeTo=null,this.afterRead=FB.bind(this),this.afterUpdateNextTick=qB.bind(this)}get ending(){return(this.stream._duplexState&ur)!==0}get ended(){return(this.stream._duplexState&_t)!==0}pipe(e,r){if(this.pipeTo!==null)throw ct.BAD_ARGUMENT("Can only pipe to one destination");if(typeof r!="function"&&(r=null),this.stream._duplexState|=Ac,this.pipeTo=e,this.pipeline=new Ec(this.stream,e,r),r&&this.stream.on("error",vc),es(e))e._writableState.pipeline=this.pipeline,r&&e.on("error",vc),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",NB.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|ur)&sB,!1):this.map!==null&&(e=this.map(e),e===null)?(r._duplexState&=pE,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(e),this.queue.push(e),r._duplexState=(r._duplexState|lr)&pE,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=aB),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&yE)===lr){let r=this.shift();return this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=gE),(e._duplexState&_c)!==0&&e.emit("data",r),r}return this.readAhead===!1&&(e._duplexState|=Fr,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&yE)===lr&&(e._duplexState&wE)!==0;){let r=this.shift();this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=gE),(e._duplexState&_c)!==0&&e.emit("data",r)}}update(){let e=this.stream;e._duplexState|=Di;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&SB)===Fr;)e._duplexState|=eB,e._read(this.afterRead),this.drain();(e._duplexState&wB)===rB&&(e._duplexState|=Rc,e.emit("readable")),(e._duplexState&tB)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=uB}updateNonPrimary(){let e=this.stream;if((e._duplexState&bB)===ur&&(e._duplexState=(e._duplexState|_t)&lB,e.emit("end"),(e._duplexState&RE)===Ic&&(e._duplexState|=zt),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&Lt)===zt){(e._duplexState&Ca)===0&&(e._duplexState|=Qn,e._destroy(IE.bind(this)));return}(e._duplexState&OE)===Pt&&(e._duplexState=(e._duplexState|Qn)&bE,e._open(PE.bind(this)))}continueUpdate(){return(this.stream._duplexState&ar)===0?!1:(this.stream._duplexState&=SE,!0)}updateCallback(){(this.stream._duplexState&vB)===Li?this.update():this.updateNextTick()}updateNextTickIfOpen(){(this.stream._duplexState&TB)===0&&(this.stream._duplexState|=ar,(this.stream._duplexState&Di)===0&&mc(this.afterUpdateNextTick))}updateNextTick(){(this.stream._duplexState&ar)===0&&(this.stream._duplexState|=ar,(this.stream._duplexState&Di)===0&&mc(this.afterUpdateNextTick))}},Sc=class{constructor(e){this.data=null,this.afterTransform=UB.bind(e),this.afterFinal=null}},Ec=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&_t)===0||!this.pipeToFinished)&&this.from.destroy(this.error||ct.PREMATURE_CLOSE("Writable stream closed"));return}if(e===this.from&&(this.from=null,this.to!==null)){(e._duplexState&_t)===0&&this.to.destroy(this.error||ct.PREMATURE_CLOSE("Readable stream closed"));return}this.afterPipe!==null&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null}};function NB(){this.stream._duplexState|=Ac,this.updateCallback()}function MB(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&Lt)===0&&(e._duplexState|=cr,e.emit("finish")),(e._duplexState&RE)===Ic&&(e._duplexState|=zt),e._duplexState&=hB,(e._duplexState&Pi)===0?this.update():this.updateNextTick()}function IE(t){let e=this.stream;!t&&!ct.isStreamDestroyed(this.error)&&(t=this.error),t&&e.emit("error",t),e._duplexState|=Zn,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 kB(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=cB,this.drains!==null&&jB(this.drains),(e._duplexState&RB)===ns&&(e._duplexState&=dB,(e._duplexState&bc)===bc&&e.emit("drain")),this.updateCallback()}function FB(t){t&&this.stream.destroy(t),this.stream._duplexState&=iB,this.readAhead===!1&&(this.stream._duplexState&rs)===0&&(this.stream._duplexState&=EE),this.updateCallback()}function qB(){(this.stream._duplexState&Di)===0&&(this.stream._duplexState&=SE,this.update())}function BB(){(this.stream._duplexState&Pi)===0&&(this.stream._duplexState&=TE,this.update())}function jB(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}function PE(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&zt)===0&&((e._duplexState&_B)===0&&(e._duplexState|=Li),(e._duplexState&AB)===0&&(e._duplexState|=is),e.emit("open")),e._duplexState&=xE,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}function UB(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}function WB(t){this._readableState!==null&&(t==="data"&&(this._duplexState|=_c|Oc,this._readableState.updateNextTick()),t==="readable"&&(this._duplexState|=xc,this._readableState.updateNextTick())),this._writableState!==null&&t==="drain"&&(this._duplexState|=bc,this._writableState.updateNextTick())}var Xn=class extends Qq{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",ej.bind(this))),this.on("newListener",WB)}_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&Zn)!==0}get destroying(){return(this._duplexState&Lt)!==0}destroy(e){(this._duplexState&Lt)===0&&(e||(e=ct.STREAM_DESTROYED()),this._duplexState=(this._duplexState|zt)&yB,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=e),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=Tc,this._predestroy(),this._duplexState&=Jq,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}},Ra=class t extends Xn{constructor(e){super(e),this._duplexState|=Pt|cr|Fr,this._readableState=new wc(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))}static deferred(e,r){let i=new Ia(r);return e().then(n=>{if(n===null)return i.end();i.destroying||Pc(n,i,vc)}).catch(n=>i.destroy(n)),i}setEncoding(e){let r=new Xq(e),i=this._readableState.map||$B;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|=Oc,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?fB:oB,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(QB(e))return e;if(e[Aa])return this._fromAsyncIterator(e[Aa](),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&EB)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&rs)===0}[Aa](){let e=this,r=null,i=null,n=null;return this.on("error",u=>{r=u}),this.on("readable",s),this.on("close",o),{[Aa](){return this},next(){return new Promise(function(u,f){i=u,n=f;let h=e.read();h!==null?a(h):(e._duplexState&Zn)!==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&_t)===0?n(ct.STREAM_DESTROYED()):i({value:u,done:u===null}),n=i=null)}function l(u){return e.destroy(u),new Promise((f,h)=>{if(e._duplexState&Zn)return f({value:void 0,done:!0});e.once("close",function(){u?h(u):f({value:void 0,done:!0})})})}}},Oa=class extends Xn{constructor(e){super(e),this._duplexState|=Pt|_t,this._writableState=new xa(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|=La}uncork(){this._duplexState&=AE,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&PB)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let r=e._writableState,n=(tj(e)?Math.min(1,r.queue.length):r.queue.length)+(e._duplexState&Dc?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}},Jn=class extends Ra{constructor(e){super(e),this._duplexState=Pt|this._duplexState&Fr,this._writableState=new xa(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=La}uncork(){this._duplexState&=AE,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}},Da=class extends Jn{constructor(e){super(e),this._transformState=new Sc(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(GB.bind(this))}},Ia=class extends Da{};function GB(t,e){let r=this._transformState.afterFinal;if(t)return r(t);e!=null&&this.push(e),this.push(null),r(null)}function zB(...t){return new Promise((e,r)=>Pc(...t,i=>{if(i)return r(i);e()}))}function Pc(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 ct.BAD_ARGUMENT("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],es(n)?n.pipe(s,l):(a(n,!0,u>1,l),n.pipe(s)),n=s;if(i){let u=!1,f=es(s)||!!(s._writableState&&s._writableState.autoDestroy);s.on("error",h=>{o===null&&(o=h)}),s.on("finish",()=>{u=!0,f||i(o)}),f&&s.on("close",()=>i(o||(u?null:ct.PREMATURE_CLOSE())))}return s;function a(u,f,h,g){u.on("error",g),u.on("close",y);function y(){if(f&&u._readableState&&!u._readableState.ended||h&&u._writableState&&!u._writableState.ended)return g(ct.PREMATURE_CLOSE())}}function l(u){if(!(!u||o)){o=u;for(let f of r)f.destroy(u)}}}function $B(t){return t}function LE(t){return!!t._readableState||!!t._writableState}function es(t){return typeof t._duplexState=="number"&&LE(t)}function HB(t){return!!t._readableState&&t._readableState.ending}function VB(t){return!!t._readableState&&t._readableState.ended}function YB(t){return!!t._writableState&&t._writableState.ending}function KB(t){return!!t._writableState&&t._writableState.ended}function ZB(t,e={}){let r=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return!e.all&&ct.isStreamDestroyed(r)?null:r}function QB(t){return es(t)&&t.readable}function XB(t){return(t._duplexState&Pt)!==Pt||(t._duplexState&zt)===zt||(t._duplexState&Ca)!==0}function JB(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}function CE(t){return JB(t)?t.byteLength:1024}function vc(){}function ej(){this.destroy(ct.ABORTED())}function tj(t){return t._writev!==Oa.prototype._writev&&t._writev!==Jn.prototype._writev}NE.exports={pipeline:Pc,pipelinePromise:zB,isStream:LE,isStreamx:es,isEnding:HB,isEnded:VB,isFinishing:YB,isFinished:KB,isDisturbed:XB,getStreamError:ZB,Stream:Xn,Writable:Oa,Readable:Ra,Duplex:Jn,Transform:Da,PassThrough:Ia}});var Mc=b(Ni=>{var ne=Oi(),rj="0000000000000000000",ij="7777777777777777777",Na=48,ME=ne.from([117,115,116,97,114,0]),nj=ne.from([Na,Na]),sj=ne.from([117,115,116,97,114,32]),oj=ne.from([32,0]),aj=4095,ss=257,Nc=263;Ni.decodeLongPath=function(e,r){return Ci(e,0,e.length,r)};Ni.encodePax=function(e){let r="";e.name&&(r+=Cc(" path="+e.name+`
|
|
14
14
|
`)),e.linkname&&(r+=Cc(" linkpath="+e.linkname+`
|
|
15
15
|
`));let i=e.pax;if(i)for(let n in i)r+=Cc(" "+n+"="+i[n]+`
|
|
16
|
-
`);return ne.from(r)};Ni.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(ne.toString(e.subarray(0,i)),10);if(!n)return r;let s=ne.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};Ni.encode=function(e){let r=ne.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),ne.byteLength(i)!==i.length)return null;for(;ne.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 ne.byteLength(i)>100||ne.byteLength(n)>155||e.linkname&&ne.byteLength(e.linkname)>100?null:(ne.write(r,i),ne.write(r,dr(e.mode&aj,6),100),ne.write(r,dr(e.uid,6),108),ne.write(r,dr(e.gid,6),116),pj(e.size,r,124),ne.write(r,dr(e.mtime.getTime()/1e3|0,11),136),r[156]=Na+hj(e.type),e.linkname&&ne.write(r,e.linkname,157),ne.copy(NE,r,ss),ne.copy(nj,r,Nc),e.uname&&ne.write(r,e.uname,265),e.gname&&ne.write(r,e.gname,297),ne.write(r,dr(e.devmajor||0,6),329),ne.write(r,dr(e.devminor||0,6),337),n&&ne.write(r,n,345),ne.write(r,dr(kE(r),6),148),r)};Ni.decode=function(e,r,i){let n=e[156]===0?0:e[156]-Na,s=Ci(e,0,100,r),o=hr(e,100,8),a=hr(e,108,8),l=hr(e,116,8),u=hr(e,124,12),f=hr(e,136,12),h=cj(n),g=e[157]===0?null:Ci(e,157,100,r),y=Ci(e,265,32),E=Ci(e,297,32),m=hr(e,329,8),v=hr(e,337,8),S=kE(e);if(S===256)return null;if(S!==hr(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(lj(e))e[345]&&(s=Ci(e,345,155,r)+"/"+s);else if(!uj(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,byteOffset:0,mtime:new Date(1e3*f),type:h,linkname:g,uname:y,gname:E,devmajor:m,devminor:v,pax:null}};function lj(t){return ne.equals(NE,t.subarray(ss,ss+6))}function uj(t){return ne.equals(sj,t.subarray(ss,ss+6))&&ne.equals(oj,t.subarray(Nc,Nc+2))}function fj(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function cj(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 hj(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function ME(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function kE(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 dr(t,e){return t=t.toString(8),t.length>e?ij.slice(0,e)+" ":rj.slice(0,e-t.length)+t+" "}function dj(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function pj(t,e,r){t.toString(8).length>11?dj(t,e,r):ne.write(e,dr(t,11),r)}function gj(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 hr(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return gj(t);{for(;e<t.length&&t[e]===32;)e++;let i=fj(ME(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(ne.toString(t.subarray(e,i)),8)}}function Ci(t,e,r,i){return ne.toString(t.subarray(e,ME(t,0,e,e+r)),i)}function Cc(t){let e=ne.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var UE=b((B8,jE)=>{var{Writable:yj,Readable:mj,getStreamError:FE}=Lc(),_j=yc(),qE=Oi(),Mi=Mc(),bj=qE.alloc(0),wj=4*1024*1024,Fc=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new _j,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 bj;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 qE.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)}},qc=class extends mj{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(FE(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=BE(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},Bc=class extends yj{constructor(e){super(e),e||(e={}),this._buffer=new Fc,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=kc,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=Mi.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.byteOffset=this._buffer.shifted,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,this._missing>wj?(this._continueWrite(new Error("Header exceeds max size")),!1):!0}return this._locked=!0,this._applyLongHeaders(),this._header.size>=0?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):(this._continueWrite(new Error("Invalid header")),!1)}_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=Mi.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=Mi.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=Mi.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?Mi.decodePax(e):Object.assign({},this._paxGlobal,Mi.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=BE(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 qc(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=kc,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(FE(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",g=>{e=g}),this.on("close",f),{[Symbol.asyncIterator](){return this},next(){return new Promise(l)},return(){return h(null)},throw(g){return h(g)}};function a(g){if(!s)return;let y=s;s=null,y(g)}function l(g,y){if(e)return y(e);if(n){g({value:n,done:!1}),n=null;return}r=g,i=y,a(null),o._finished&&r&&(r({value:void 0,done:!0}),r=i=null)}function u(g,y,E){s=E,y.on("error",kc),r?(r({value:y,done:!1}),r=i=null):n=y}function f(){a(e),r&&(e?i(e):r({value:void 0,done:!0}),r=i=null)}function h(g){return o.destroy(g),a(g),new Promise((y,E)=>{if(o.destroyed)return y({value:void 0,done:!0});o.once("close",function(){g?E(g):y({value:void 0,done:!0})})})}}};jE.exports=function(e){return new Bc(e)};function kc(){}function BE(t){return t&=511,t&&512-t}});var GE=b((j8,jc)=>{var WE={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{jc.exports=W("fs").constants||WE}catch{jc.exports=WE}});var YE=b((U8,VE)=>{var{Readable:Sj,Writable:Ej,getStreamError:zE}=Lc(),Br=Oi(),ki=GE(),Ma=Mc(),vj=493,Tj=420,$E=Br.alloc(1024),Wc=class extends Ej{constructor(e,r,i){super({mapWritable:xj,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)),HE(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 zE(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()}},Gc=class extends Sj{constructor(e){super(e),this._drain=Uc,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=Uc),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=Aj(e.mode)),e.mode||(e.mode=e.type==="directory"?vj:Tj),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 Wc(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($E),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=Ma.encode(e);if(r){this.push(r);return}}this._encodePax(e)}_encodePax(e){let r=Ma.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(Ma.encode(i)),this.push(r),HE(this,r.byteLength),i.size=e.size,i.type=e.type,this.push(Ma.encode(i))}_doDrain(){let e=this._drain;this._drain=Uc,e()}_predestroy(){let e=zE(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()}};VE.exports=function(e){return new Gc(e)};function Aj(t){switch(t&ki.S_IFMT){case ki.S_IFBLK:return"block-device";case ki.S_IFCHR:return"character-device";case ki.S_IFDIR:return"directory";case ki.S_IFIFO:return"fifo";case ki.S_IFLNK:return"symlink"}return"file"}function Uc(){}function HE(t,e){e&=511,e&&t.push($E.subarray(0,512-e))}function xj(t){return Br.isBuffer(t)?t:Br.from(t)}});var KE=b(zc=>{zc.extract=UE();zc.pack=YE()});var XE=b((G8,QE)=>{var Rj=W("zlib"),Oj=KE(),ZE=xi(),Ht=function(t){if(!(this instanceof Ht))return new Ht(t);t=this.options=ZE.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=Oj.pack(t),this.compressor=!1,t.gzip&&(this.compressor=Rj.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};Ht.prototype._onCompressorError=function(t){this.engine.emit("error",t)};Ht.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"&&ZE.collectStream(t,n)};Ht.prototype.finalize=function(){this.engine.finalize()};Ht.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Ht.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)};Ht.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};QE.exports=Ht});var tv=b((z8,ev)=>{"use strict";function Dj(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ij=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 JE(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 Pj(t){let e=JE(4);return e.writeInt32BE(t,0),e}function $c(t,e){t=JE(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let r=~~e^-1;for(var i=0;i<t.length;i++)r=Ij[(r^t[i])&255]^r>>>8;return r^-1}function Hc(){return Pj($c.apply(null,arguments))}Hc.signed=function(){return $c.apply(null,arguments)};Hc.unsigned=function(){return $c.apply(null,arguments)>>>0};var Lj=Hc,Cj=Dj(Lj);ev.exports=Cj});var sv=b(($8,nv)=>{var Nj=W("util").inherits,rv=Pr().Transform,Mj=tv(),iv=xi(),pr=function(t){if(!(this instanceof pr))return new pr(t);t=this.options=iv.defaults(t,{}),rv.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};Nj(pr,rv);pr.prototype._transform=function(t,e,r){r(null,t)};pr.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)};pr.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=Mj.unsigned(o),i.files.push(e),r(null,e)}e.sourceType==="buffer"?n(null,t):e.sourceType==="stream"&&iv.collectStream(t,n)};pr.prototype.finalize=function(){this._writeStringified(),this.end()};nv.exports=pr});var av=b((H8,ov)=>{var kj=mS(),os={},gr=function(t,e){return gr.create(t,e)};gr.create=function(t,e){if(os[t]){var r=new kj(t,e);return r.setFormat(t),r.setModule(new os[t](e)),r}else throw new Error("create("+t+"): format not registered")};gr.registerFormat=function(t,e){if(os[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");os[t]=e};gr.isRegisteredFormat=function(t){return!!os[t]};gr.registerFormat("zip",KS());gr.registerFormat("tar",XE());gr.registerFormat("json",sv());ov.exports=gr});import*as Bh from"node:fs/promises";import{join as f1}from"node:path";var Hi="rayfin",Ya=".devpack",Ka="package.json",Za="package.zip",u1=N.strictObject({apiVersion:N.number().int().positive()});var c1="rayfin.yml";function Qa(t){return f1(t,Hi,c1)}async function $j(t){try{return(await Bh.stat(Qa(t))).isFile()}catch(e){return h1(e)}}function h1(t){let e=t?.code;if(e==="ENOENT"||e==="ENOTDIR")return!1;throw t}var d1="0.0",p1=N.object({type:N.literal("client"),path:N.string()}),g1=N.object({type:N.literal("function"),path:N.string()}),y1=N.discriminatedUnion("type",[p1,g1]),m1=N.object({path:N.string(),archive:N.literal("zip"),compression:N.literal("deflate")}),_1=N.object({path:N.string(),kind:N.string(),sizeBytes:N.number().int().nonnegative().optional(),sha256:N.string().optional()}),b1=N.object({path:N.string(),apiVersion:N.number().int().positive(),profile:N.string(),parts:N.array(_1),skippedServices:N.array(N.string())}),w1=N.object({kind:N.literal("rayfin")}),Xa=N.object({default:w1}),Yj=N.object({cliVersion:N.string(),manifestVersion:N.literal(d1),clientDirectory:N.string(),hasCustomMiddleTier:N.boolean(),functionsPackage:m1.optional(),iconPath:N.string().optional(),dataSchemaPath:N.string().optional(),dataEnabled:N.boolean().optional(),rayfinPackage:b1.optional(),backends:Xa.optional(),routes:N.record(N.string(),y1)}).refine(({rayfinPackage:t,backends:e})=>t!==void 0==(e!==void 0),{message:"`rayfinPackage` and `backends` must both be present or both be absent.",path:["backends"]});import{spawn as S1}from"node:child_process";import{createWriteStream as E1}from"node:fs";import v1 from"node:os";import{finished as T1}from"node:stream/promises";import{setTimeout as A1}from"node:timers/promises";import{pathToFileURL as jh}from"node:url";var x1=8*1024,R1=8*1024*1024,Uh=1e3;function Wh(){return{chunks:[],bytes:0,dropped:0}}function Gh(t,e,r){for(t.chunks.push(e),t.bytes+=e.length;t.bytes>r;){let i=t.bytes-r,n=t.chunks[0];n.length<=i?(t.chunks.shift(),t.bytes-=n.length,t.dropped+=n.length):(t.chunks[0]=n.subarray(i),t.bytes-=i,t.dropped+=i)}}function zh(t){let e=Buffer.concat(t.chunks).toString("utf8").trimEnd();return t.dropped===0?e:`[truncated earlier ${t.dropped} bytes; showing last ${t.bytes} bytes]
|
|
17
|
-
${e}`}function
|
|
16
|
+
`);return ne.from(r)};Ni.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(ne.toString(e.subarray(0,i)),10);if(!n)return r;let s=ne.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};Ni.encode=function(e){let r=ne.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),ne.byteLength(i)!==i.length)return null;for(;ne.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 ne.byteLength(i)>100||ne.byteLength(n)>155||e.linkname&&ne.byteLength(e.linkname)>100?null:(ne.write(r,i),ne.write(r,dr(e.mode&aj,6),100),ne.write(r,dr(e.uid,6),108),ne.write(r,dr(e.gid,6),116),pj(e.size,r,124),ne.write(r,dr(e.mtime.getTime()/1e3|0,11),136),r[156]=Na+hj(e.type),e.linkname&&ne.write(r,e.linkname,157),ne.copy(ME,r,ss),ne.copy(nj,r,Nc),e.uname&&ne.write(r,e.uname,265),e.gname&&ne.write(r,e.gname,297),ne.write(r,dr(e.devmajor||0,6),329),ne.write(r,dr(e.devminor||0,6),337),n&&ne.write(r,n,345),ne.write(r,dr(FE(r),6),148),r)};Ni.decode=function(e,r,i){let n=e[156]===0?0:e[156]-Na,s=Ci(e,0,100,r),o=hr(e,100,8),a=hr(e,108,8),l=hr(e,116,8),u=hr(e,124,12),f=hr(e,136,12),h=cj(n),g=e[157]===0?null:Ci(e,157,100,r),y=Ci(e,265,32),E=Ci(e,297,32),m=hr(e,329,8),v=hr(e,337,8),S=FE(e);if(S===256)return null;if(S!==hr(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(lj(e))e[345]&&(s=Ci(e,345,155,r)+"/"+s);else if(!uj(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,byteOffset:0,mtime:new Date(1e3*f),type:h,linkname:g,uname:y,gname:E,devmajor:m,devminor:v,pax:null}};function lj(t){return ne.equals(ME,t.subarray(ss,ss+6))}function uj(t){return ne.equals(sj,t.subarray(ss,ss+6))&&ne.equals(oj,t.subarray(Nc,Nc+2))}function fj(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function cj(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 hj(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 kE(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function FE(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 dr(t,e){return t=t.toString(8),t.length>e?ij.slice(0,e)+" ":rj.slice(0,e-t.length)+t+" "}function dj(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function pj(t,e,r){t.toString(8).length>11?dj(t,e,r):ne.write(e,dr(t,11),r)}function gj(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 hr(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return gj(t);{for(;e<t.length&&t[e]===32;)e++;let i=fj(kE(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(ne.toString(t.subarray(e,i)),8)}}function Ci(t,e,r,i){return ne.toString(t.subarray(e,kE(t,0,e,e+r)),i)}function Cc(t){let e=ne.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var WE=b((B8,UE)=>{var{Writable:yj,Readable:mj,getStreamError:qE}=Lc(),_j=yc(),BE=Oi(),Mi=Mc(),bj=BE.alloc(0),wj=4*1024*1024,Fc=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new _j,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 bj;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)}},qc=class extends mj{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(qE(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=jE(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},Bc=class extends yj{constructor(e){super(e),e||(e={}),this._buffer=new Fc,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=kc,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=Mi.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.byteOffset=this._buffer.shifted,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,this._missing>wj?(this._continueWrite(new Error("Header exceeds max size")),!1):!0}return this._locked=!0,this._applyLongHeaders(),this._header.size>=0?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):(this._continueWrite(new Error("Invalid header")),!1)}_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=Mi.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=Mi.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=Mi.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?Mi.decodePax(e):Object.assign({},this._paxGlobal,Mi.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=jE(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 qc(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=kc,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(qE(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",g=>{e=g}),this.on("close",f),{[Symbol.asyncIterator](){return this},next(){return new Promise(l)},return(){return h(null)},throw(g){return h(g)}};function a(g){if(!s)return;let y=s;s=null,y(g)}function l(g,y){if(e)return y(e);if(n){g({value:n,done:!1}),n=null;return}r=g,i=y,a(null),o._finished&&r&&(r({value:void 0,done:!0}),r=i=null)}function u(g,y,E){s=E,y.on("error",kc),r?(r({value:y,done:!1}),r=i=null):n=y}function f(){a(e),r&&(e?i(e):r({value:void 0,done:!0}),r=i=null)}function h(g){return o.destroy(g),a(g),new Promise((y,E)=>{if(o.destroyed)return y({value:void 0,done:!0});o.once("close",function(){g?E(g):y({value:void 0,done:!0})})})}}};UE.exports=function(e){return new Bc(e)};function kc(){}function jE(t){return t&=511,t&&512-t}});var zE=b((j8,jc)=>{var GE={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{jc.exports=W("fs").constants||GE}catch{jc.exports=GE}});var KE=b((U8,YE)=>{var{Readable:Sj,Writable:Ej,getStreamError:$E}=Lc(),Br=Oi(),ki=zE(),Ma=Mc(),vj=493,Tj=420,HE=Br.alloc(1024),Wc=class extends Ej{constructor(e,r,i){super({mapWritable:xj,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)),VE(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 $E(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()}},Gc=class extends Sj{constructor(e){super(e),this._drain=Uc,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=Uc),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=Aj(e.mode)),e.mode||(e.mode=e.type==="directory"?vj:Tj),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 Wc(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(HE),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=Ma.encode(e);if(r){this.push(r);return}}this._encodePax(e)}_encodePax(e){let r=Ma.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(Ma.encode(i)),this.push(r),VE(this,r.byteLength),i.size=e.size,i.type=e.type,this.push(Ma.encode(i))}_doDrain(){let e=this._drain;this._drain=Uc,e()}_predestroy(){let e=$E(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()}};YE.exports=function(e){return new Gc(e)};function Aj(t){switch(t&ki.S_IFMT){case ki.S_IFBLK:return"block-device";case ki.S_IFCHR:return"character-device";case ki.S_IFDIR:return"directory";case ki.S_IFIFO:return"fifo";case ki.S_IFLNK:return"symlink"}return"file"}function Uc(){}function VE(t,e){e&=511,e&&t.push(HE.subarray(0,512-e))}function xj(t){return Br.isBuffer(t)?t:Br.from(t)}});var ZE=b(zc=>{zc.extract=WE();zc.pack=KE()});var JE=b((G8,XE)=>{var Rj=W("zlib"),Oj=ZE(),QE=xi(),Ht=function(t){if(!(this instanceof Ht))return new Ht(t);t=this.options=QE.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=Oj.pack(t),this.compressor=!1,t.gzip&&(this.compressor=Rj.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};Ht.prototype._onCompressorError=function(t){this.engine.emit("error",t)};Ht.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"&&QE.collectStream(t,n)};Ht.prototype.finalize=function(){this.engine.finalize()};Ht.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Ht.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)};Ht.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};XE.exports=Ht});var rv=b((z8,tv)=>{"use strict";function Dj(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ij=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 ev(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 Pj(t){let e=ev(4);return e.writeInt32BE(t,0),e}function $c(t,e){t=ev(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let r=~~e^-1;for(var i=0;i<t.length;i++)r=Ij[(r^t[i])&255]^r>>>8;return r^-1}function Hc(){return Pj($c.apply(null,arguments))}Hc.signed=function(){return $c.apply(null,arguments)};Hc.unsigned=function(){return $c.apply(null,arguments)>>>0};var Lj=Hc,Cj=Dj(Lj);tv.exports=Cj});var ov=b(($8,sv)=>{var Nj=W("util").inherits,iv=Pr().Transform,Mj=rv(),nv=xi(),pr=function(t){if(!(this instanceof pr))return new pr(t);t=this.options=nv.defaults(t,{}),iv.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};Nj(pr,iv);pr.prototype._transform=function(t,e,r){r(null,t)};pr.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)};pr.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=Mj.unsigned(o),i.files.push(e),r(null,e)}e.sourceType==="buffer"?n(null,t):e.sourceType==="stream"&&nv.collectStream(t,n)};pr.prototype.finalize=function(){this._writeStringified(),this.end()};sv.exports=pr});var lv=b((H8,av)=>{var kj=_S(),os={},gr=function(t,e){return gr.create(t,e)};gr.create=function(t,e){if(os[t]){var r=new kj(t,e);return r.setFormat(t),r.setModule(new os[t](e)),r}else throw new Error("create("+t+"): format not registered")};gr.registerFormat=function(t,e){if(os[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");os[t]=e};gr.isRegisteredFormat=function(t){return!!os[t]};gr.registerFormat("zip",ZS());gr.registerFormat("tar",JE());gr.registerFormat("json",ov());av.exports=gr});import*as jh from"node:fs/promises";import{join as c1}from"node:path";var Hi="rayfin",Ya=".devpack",Ka="package.json",Za="package.zip",f1=N.strictObject({apiVersion:N.number().int().positive()});var h1="rayfin.yml";function Qa(t){return c1(t,Hi,h1)}async function $j(t){try{return(await jh.stat(Qa(t))).isFile()}catch(e){return d1(e)}}function d1(t){let e=t?.code;if(e==="ENOENT"||e==="ENOTDIR")return!1;throw t}var p1="0.0",g1=N.object({type:N.literal("client"),path:N.string()}),y1=N.object({type:N.literal("function"),path:N.string()}),m1=N.discriminatedUnion("type",[g1,y1]),_1=N.object({path:N.string(),archive:N.literal("zip"),compression:N.literal("deflate")}),b1=N.object({path:N.string(),kind:N.string(),sizeBytes:N.number().int().nonnegative().optional(),sha256:N.string().optional()}),w1=N.object({path:N.string(),apiVersion:N.number().int().positive(),profile:N.string(),parts:N.array(b1),skippedServices:N.array(N.string())}),S1=N.object({kind:N.literal("rayfin")}),Xa=N.object({default:S1}),Yj=N.object({cliVersion:N.string(),manifestVersion:N.literal(p1),clientDirectory:N.string(),hasCustomMiddleTier:N.boolean(),functionsPackage:_1.optional(),iconPath:N.string().optional(),dataSchemaPath:N.string().optional(),dataEnabled:N.boolean().optional(),rayfinPackage:w1.optional(),backends:Xa.optional(),routes:N.record(N.string(),m1)}).refine(({rayfinPackage:t,backends:e})=>t!==void 0==(e!==void 0),{message:"`rayfinPackage` and `backends` must both be present or both be absent.",path:["backends"]});import{spawn as E1}from"node:child_process";import{createWriteStream as v1}from"node:fs";import T1 from"node:os";import{finished as A1}from"node:stream/promises";import{setTimeout as x1}from"node:timers/promises";import{pathToFileURL as Uh}from"node:url";var R1=8*1024,O1=8*1024*1024,Wh=1e3;function Gh(){return{chunks:[],bytes:0,dropped:0}}function zh(t,e,r){for(t.chunks.push(e),t.bytes+=e.length;t.bytes>r;){let i=t.bytes-r,n=t.chunks[0];n.length<=i?(t.chunks.shift(),t.bytes-=n.length,t.dropped+=n.length):(t.chunks[0]=n.subarray(i),t.bytes-=i,t.dropped+=i)}}function $h(t){let e=Buffer.concat(t.chunks).toString("utf8").trimEnd();return t.dropped===0?e:`[truncated earlier ${t.dropped} bytes; showing last ${t.bytes} bytes]
|
|
17
|
+
${e}`}function D1(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ja(t,e){let r=t.replace(/(\b[a-z][a-z0-9+.-]*:\/\/)[^/\s@]+@/gi,"$1[REDACTED]@").replace(/\b(?:authorization:\s*bearer|bearer)\s+[a-z0-9._~+/=-]+/gi,"Bearer [REDACTED]").replace(/([?&](?:sig|token|access_token|code)=)[^&\s]+/gi,"$1[REDACTED]").replace(/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,"[REDACTED_EMAIL]");for(let[i,n]of[[e,"<project>"],[T1.homedir(),"<home>"]])if(i){let s=new Set([i,i.replace(/\\/g,"/"),i.replace(/\//g,"\\"),Uh(i).href,decodeURIComponent(Uh(i).href)]);for(let o of[...s].sort((a,l)=>l.length-a.length))r=r.replace(new RegExp(D1(o),"gi"),n)}return r}function I1(t){return t?["ignore","pipe","pipe"]:"inherit"}async function P1(t){try{await A1(t);return}catch(e){return e}}async function L1(t){try{return await x1(Wh,void 0,{signal:t,ref:!1}),new Error(`Command log flush exceeded ${Wh}ms.`)}catch(e){return e.name==="AbortError"?void 0:e}}function i3(t,e,r={}){return new Promise((i,n)=>{let{quiet:s=!1,captureTailCapBytes:o=R1,logFilePath:a,onLogError:l,logBufferBytes:u=O1,logFileMaxBytes:f=Number.POSITIVE_INFINITY}=r,h=E1(t,{cwd:e,stdio:I1(s),shell:!0}),g=a?v1(a,{flags:"a",encoding:"utf8",highWaterMark:u}):void 0,y=!1,E=L=>{y||(y=!0,l?.(L),g?.destroy())},m=0,v=L=>{if(!g||y)return;let D=Buffer.isBuffer(L)?L:Buffer.from(L),q=f-m;if(q<=0)return;let Z=D.length<=q?D:D.subarray(0,q);m+=Z.length,g.write(Z)};g&&(g.on("error",L=>{E(L)}),v(`
|
|
18
18
|
> ${t}
|
|
19
19
|
cwd: ${e}
|
|
20
20
|
|
|
21
|
-
`));let S=
|
|
22
|
-
`),!0}async function jj(t){return new Promise((e,r)=>{let i=[],n=(0,
|
|
21
|
+
`));let S=Gh(),R=Gh();h.stdout?.on("data",L=>{s&&zh(S,L,o),v(L)}),h.stderr?.on("data",L=>{s&&zh(R,L,o),v(L)}),h.on("close",async L=>{if(g&&!y){g.end();let M=new AbortController;try{let k=await Promise.race([P1(g),L1(M.signal)]);k&&E(k)}finally{M.abort()}}if(L===0){i();return}let D=`Command exited with code ${L}.`,q=s?Ja($h(R),e):"",Z=s?Ja($h(S),e):"",P={commandExitCode:L,diagnosticCapture:s?"captured":"unavailable_interactive",...q&&{stderrTail:q},...Z&&{stdoutTail:Z}},B={commandExitCode:L,diagnosticCapture:s?"captured":"unavailable_interactive"},x=s?{...q&&{stderrTail:q},...Z&&{stdoutTail:Z}}:void 0;n(new Ha(D,L??1,P,{errorCode:"BuildCommandFailed",telemetryDetails:B,outputDetails:x}))}),h.on("error",L=>{g?.end();let D={underlyingError:Ja(L.message,e)};n(new Ha("Could not start the build command.",1,D,{errorCode:"BuildCommandStartFailed",telemetryDetails:{diagnosticCapture:"unavailable_start_failure"}}))})})}import*as Ct from"node:fs/promises";import*as jr from"node:path";function Ps(t,e){try{let r=[{value:t,depth:0}],i=new WeakSet,n=0;for(;r.length>0;){let o=r.pop();if(o.exit){i.delete(o.value);continue}if(o.depth>e.maxDepth)return!1;if(o.value===null||typeof o.value=="boolean"||typeof o.value=="number"){if(typeof o.value=="number"&&!Number.isFinite(o.value)||(n+=o.value===null?4:String(o.value).length,n>e.maxBytes))return!1;continue}if(typeof o.value=="string"){if(o.value.length>e.maxBytes||(n+=new TextEncoder().encode(o.value).byteLength+2,n>e.maxBytes))return!1;continue}if(typeof o.value!="object"||i.has(o.value))return!1;i.add(o.value),r.push({value:o.value,depth:o.depth,exit:!0});let a=Object.getPrototypeOf(o.value);if(a!==Object.prototype&&a!==Array.prototype&&a!==null)return!1;let l=Object.getOwnPropertyDescriptors(o.value);if(n+=2,Array.isArray(o.value)){if(o.value.length>e.maxBytes)return!1;n+=Math.max(0,o.value.length-1);let u=0;for(let[f,h]of Object.entries(l))if(!(f==="length"||!/^(0|[1-9]\d*)$/.test(f))){if(!("value"in h))return!1;u++,r.push({value:h.value,depth:o.depth+1})}if(n+=(o.value.length-u)*4,n>e.maxBytes)return!1;continue}for(let[u,f]of Object.entries(l))if(f.enumerable){if(!("value"in f)||u.length>e.maxBytes||(n+=new TextEncoder().encode(u).byteLength+3,n>e.maxBytes))return!1;r.push({value:f.value,depth:o.depth+1})}}let s=JSON.stringify(t);return s!==void 0&&new TextEncoder().encode(s).byteLength<=e.maxBytes}catch{return!1}}var el=10*1024*1024,C1=6*1024*1024,tl=64,Hh="0.0",Vh=N.string().refine(t=>zi(t)&&t!=="00000000-0000-0000-0000-000000000000","An existing app GUID is required"),Yh=N.string().refine(zi,"A GUID is required"),Kh=N.url().pipe(N.string().refine(t=>{let e=new URL(t);return(e.protocol==="https:"||e.protocol==="http:")&&/^https?:\/\/[^/?#\\\s]+\/?$/.test(t)&&!e.username&&!e.password&&e.pathname==="/"},"Expected an origin-only HTTP(S) URL")),Ls=Kh.refine(t=>new URL(t).protocol==="https:","Expected an origin-only HTTPS URL"),N1=N.object({runtimeGatewayHost:Ls}),Zh=N.strictObject({apiVersion:N.number().int().positive(),archive:N.literal("zip"),compression:N.literal("deflate"),data:N.string().min(1)}),Qh=N.strictObject({manifestVersion:N.literal(Hh),dataEnabled:N.boolean().optional(),data:N.record(N.string(),N.json()).optional(),backends:Xa.optional(),rayfinPackage:Zh.optional()}),M1=N.strictObject({app:N.strictObject({id:Vh,manifest:Qh})}),Xh=N.custom(t=>Ps(t,{maxBytes:el,maxDepth:tl}),`InitDevSession body must be acyclic JSON within the ${el/(1024*1024)} MiB and nesting limits`).pipe(M1),rl=N.strictObject({version:N.literal(1),revision:N.string().regex(/\S/,"A snapshot revision is required"),environmentId:N.string().regex(/\S/,"An environment identity is required"),body:Xh}),il=N.object({sessionId:Yh,expiresAt:N.iso.datetime(),rayfin:N.strictObject({status:N.enum(["pending","ready","failed"])}).optional()});var k1=N.discriminatedUnion("status",[N.strictObject({status:N.literal("ready"),statusCode:N.literal(201),session:il}),N.strictObject({status:N.literal("failed"),statusCode:N.number().int().min(400).max(599),code:N.string().min(1),retryAfter:N.string().min(1).optional()})]);var F1=12*1024*1024,q1=N.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),B1=N.strictObject({version:N.literal(1),revision:q1,hostConfig:Fh,oob:rl}).superRefine((t,e)=>{(t.hostConfig.appId?.toLowerCase()!==t.oob.body.app.id.toLowerCase()||t.hostConfig.environmentId!==t.oob.environmentId)&&e.addIssue({code:"custom",message:"Host config and OOB identity must agree"}),(t.hostConfig.state?.schemaPath??t.hostConfig.data?.schemaPath??t.hostConfig.db?.schemaPath)!==void 0!==(t.oob.body.app.manifest.data!==void 0)&&e.addIssue({code:"custom",message:"Configured schema must agree with inline OOB data"}),(t.hostConfig.state?.enabled??t.hostConfig.data?.enabled??t.hostConfig.db?.enabled)!==t.oob.body.app.manifest.dataEnabled&&e.addIssue({code:"custom",message:"Configured data enablement must agree with the OOB manifest"})}),j1=N.custom(t=>Ps(t,{maxBytes:F1,maxDepth:tl}),"Development snapshot must be acyclic JSON within the size and nesting limits").pipe(B1);var U1=/^.*\.gateway\..*\.island\.powerplatformusercontent\.com$/,Jh=Ls.refine(t=>{let e=new URL(t);return!t.includes("@")&&!e.port&&U1.test(e.hostname)},"Expected a Copilot Managed Runtime gateway origin");function ed(t){return zi(t)&&t!==kh}var z1=N.string().refine(ed,"A non-empty GUID runtime session id is required");var hv=l1(lv(),1);var Vc="rayfin",uv="managed";async function Q8(t){return Ct.readFile(Qa(t),"utf8")}var fv=["LOG_STREAM","LOG_TOKENS"];async function cv(t){let e=new Map(fv.map(r=>[r,qh(r)]));for(let r of fv)Va(r);try{return await t()}finally{for(let[r,i]of e)i===void 0?Va(r):Bh(r,i)}}async function Fj(t){let{projectRoot:e,packAppOutputDir:r,cliVersion:i,env:n,onDetail:s}=t,o=await(t.loadLibrary??qj)(),a=jr.join(r,Vc),l=await cv(()=>Promise.resolve(o.buildPackRequest({projectRoot:e,outDir:a,profile:uv,env:n})));if(l.status!=="ok")throw l.status==="cancelled"?new $i("Rayfin pack was cancelled."):new $i(`Rayfin pack failed to prepare the pack request (${l.error.code}).`,void 0,{rayfinErrorMessage:l.error.message});let u=await cv(()=>o.runPackWorkflow(l.data,{generators:o.createNodePackGenerators({clientVersion:`ms/${i}`,env:n,...s?{diagnostics:{debug:f=>s(`[rayfin] ${f.message}`)},onBuildOutput:f=>{let h=f.trimEnd();h&&s(`[rayfin] ${h}`)}}:{}})}));if(u.status==="cancelled")throw new $i("Rayfin pack was cancelled.");if(u.status==="failed"){let f=o.isPackValidationFailure(u.error.cause)?u.error.cause.blockers.map(h=>h.code):[];throw new $i(`Rayfin pack failed (${u.error.code}).`+(f.length>0?` Blockers: ${[...new Set(f)].join(", ")}.`:""),void 0,{rayfinErrorMessage:u.error.message})}if(!u.data.hasDeployableContent){s?.("[rayfin] No deployable Rayfin content; skipping the Rayfin package."),await Ct.rm(a,{recursive:!0,force:!0});return}return{path:Vc,apiVersion:o.PACK_API_VERSION,profile:uv,parts:u.data.parts.map(({path:f,kind:h,sizeBytes:g,sha256:y})=>({path:f,kind:h,...g!==void 0?{sizeBytes:g}:{},...y!==void 0?{sha256:y}:{}})),skippedServices:u.data.skippedServices}}async function qj(){return import("./rayfin-pack-HOUOLOHQ.js")}function Bj(t){return jr.join(t,Hi,Ya)}async function X8(t){let{projectRoot:e,cliVersion:r,env:i,onDetail:n}=t,s=Bj(e),o=jr.join(s,Vc),a=await Fj({projectRoot:e,packAppOutputDir:s,cliVersion:r,env:i,onDetail:n});if(!a)return await Ct.rm(s,{recursive:!0,force:!0}),!1;let l=await jj(o);await Ct.rm(o,{recursive:!0,force:!0}),await Ct.writeFile(jr.join(s,Za),l);let u={apiVersion:a.apiVersion};return await Ct.writeFile(jr.join(s,Ka),JSON.stringify(u)),await Ct.writeFile(jr.join(s,".gitignore"),`*
|
|
22
|
+
`),!0}async function jj(t){return new Promise((e,r)=>{let i=[],n=(0,hv.default)("zip",{zlib:{level:9}});n.on("data",s=>i.push(s)),n.on("warning",r),n.on("error",r),n.on("end",()=>e(Buffer.concat(i))),n.directory(t,!1),n.finalize()})}export{lv as a,$j as b,p1 as c,R1 as d,Gh as e,zh as f,$h as g,Ja as h,i3 as i,Q8 as j,Fj as k,X8 as l};
|
|
23
23
|
/*!
|
|
24
24
|
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
25
25
|
*/
|
|
@@ -91,4 +91,4 @@ archiver/index.js:
|
|
|
91
91
|
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
92
92
|
*)
|
|
93
93
|
*/
|
|
94
|
-
//# sourceMappingURL=chunk-
|
|
94
|
+
//# sourceMappingURL=chunk-ELHOJBVT.js.map
|