@testmuai/kane-cli 0.4.10 → 0.5.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/{ChromeProfilePicker-EFEVOCWS.js → ChromeProfilePicker-PIWZY4WH.js} +1 -1
- package/dist/{CliFeedbackPrompt-PPGJMKHQ.js → CliFeedbackPrompt-URXCHBZ5.js} +1 -1
- package/dist/{CliUploadProgress-3GGOTLPQ.js → CliUploadProgress-DMH3C3UZ.js} +1 -1
- package/dist/{ConfigView-Y7E4Q647.js → ConfigView-NWNDNTKW.js} +1 -1
- package/dist/EvidenceViewOffer-HEBQ7C4H.js +2 -0
- package/dist/FolderPicker-5S23OTSY.js +2 -0
- package/dist/HelpView-YYKTP4JH.js +2 -0
- package/dist/{InfoBox-BQ2QOIUP.js → InfoBox-FPAWQZGQ.js} +1 -1
- package/dist/{LinksBox-DX6BJAX5.js → LinksBox-O5ZFYSK2.js} +1 -1
- package/dist/{ProfilesView-X35WWM4L.js → ProfilesView-SPECXHZE.js} +1 -1
- package/dist/{ProjectPicker-Y4A4UVHA.js → ProjectPicker-ANJ6NGNY.js} +1 -1
- package/dist/{SaveSessionPrompt-IS6HZSF4.js → SaveSessionPrompt-W2GWELOP.js} +1 -1
- package/dist/SingleShotApp-5TYM356H.js +2 -0
- package/dist/{SummaryBox-47MHU37V.js → SummaryBox-DJUDYML7.js} +1 -1
- package/dist/TestMdRunView-BIVXQE54.js +2 -0
- package/dist/{WhoamiView-KVIQCGRC.js → WhoamiView-DH25ZD4C.js} +1 -1
- package/dist/{changelog-S4ZLEQLC.js → changelog-RCKUVBFL.js} +1 -1
- package/dist/{chunk-LPUQ4HWQ.js → chunk-2WVKOZ6W.js} +1 -1
- package/dist/chunk-2YQ6TW77.js +82 -0
- package/dist/chunk-3FN66LTP.js +3 -0
- package/dist/{chunk-JKLKZCJS.js → chunk-4IOOBSNB.js} +1 -1
- package/dist/chunk-54TKNWXF.js +5 -0
- package/dist/{chunk-HPZREZKG.js → chunk-5MTRNUAK.js} +1 -1
- package/dist/{chunk-OHT5RY5E.js → chunk-6E5UYAEB.js} +1 -1
- package/dist/{chunk-QC73LMAN.js → chunk-7AEC572G.js} +1 -1
- package/dist/{chunk-QSXYNJOW.js → chunk-7IBNOVML.js} +1 -1
- package/dist/chunk-7KDNH6JP.js +10 -0
- package/dist/{chunk-G2GQ67DP.js → chunk-7YRNLGUT.js} +1 -1
- package/dist/chunk-AFCEFOIK.js +4 -0
- package/dist/{chunk-YAOWO2GE.js → chunk-AM5WZPPY.js} +1 -1
- package/dist/{chunk-G3PWEKD7.js → chunk-C4LYBQT3.js} +2 -2
- package/dist/chunk-DJL47DYJ.js +8 -0
- package/dist/chunk-DTM4ZMMJ.js +102 -0
- package/dist/chunk-ELBPBHTE.js +26 -0
- package/dist/{chunk-IGZPQQFP.js → chunk-GEAWRRR7.js} +1 -1
- package/dist/{chunk-UBN6J3ZA.js → chunk-H6QJ4YU7.js} +1 -1
- package/dist/chunk-HFXQU7UZ.js +2 -0
- package/dist/{chunk-GF44B552.js → chunk-HZ46P2GR.js} +1 -1
- package/dist/chunk-I4B2KY4X.js +3 -0
- package/dist/{chunk-RB2YKN77.js → chunk-IECUFWIZ.js} +1 -1
- package/dist/{chunk-KJLOYIWT.js → chunk-IU53F4ZV.js} +1 -1
- package/dist/chunk-J75KVNX5.js +18 -0
- package/dist/{chunk-NUGGT2XH.js → chunk-LOQV5GME.js} +1 -1
- package/dist/chunk-MUPHP5W6.js +27 -0
- package/dist/chunk-NAYAVVTP.js +6 -0
- package/dist/chunk-NFOBDHZK.js +147 -0
- package/dist/{chunk-GSKA5DKJ.js → chunk-NLIOFVMP.js} +1 -1
- package/dist/chunk-P5XBCJYQ.js +7 -0
- package/dist/chunk-PISZLYS5.js +4 -0
- package/dist/{chunk-EQC7WE2O.js → chunk-PTP3WS3N.js} +1 -1
- package/dist/chunk-Q2I65L2W.js +6 -0
- package/dist/chunk-QCEWUUE6.js +55 -0
- package/dist/chunk-QO6PAA7Q.js +17 -0
- package/dist/{chunk-FKAXPYV7.js → chunk-R5RHRG65.js} +1 -1
- package/dist/chunk-T4PKTWZ6.js +17 -0
- package/dist/{chunk-RQZCGHG7.js → chunk-THEZSXZM.js} +1 -1
- package/dist/{chunk-HUAOH2JK.js → chunk-TJWU7DOO.js} +1 -1
- package/dist/{chunk-AKLIPQVR.js → chunk-TPG2T5GH.js} +1 -1
- package/dist/{chunk-KKIFXAJY.js → chunk-UOGJUJCF.js} +1 -1
- package/dist/{chunk-DMG5QABA.js → chunk-V2GYBVSM.js} +1 -1
- package/dist/{chunk-VLWWDXBN.js → chunk-XDERMCAU.js} +1 -1
- package/dist/chunk-Y44AETOW.js +2 -0
- package/dist/{chunk-53O3GMZR.js → chunk-YCNCW4O4.js} +1 -1
- package/dist/{chunk-IT66S24L.js → chunk-YSIYPC4R.js} +1 -1
- package/dist/{chunk-6ATKQYAL.js → chunk-ZWAZ4QU4.js} +1 -1
- package/dist/credentials-52QRPGET.js +2 -0
- package/dist/evidence-O4AON5FU.js +2 -0
- package/dist/exit-manager-IUHAXFJ6.js +2 -0
- package/dist/{generate-headless-ODYT3HT7.js → generate-headless-WG6ZPINI.js} +2 -2
- package/dist/index.js +75 -39
- package/dist/list-commands-VJAL4J3O.js +2 -0
- package/dist/login-flow-VZ2MITFA.js +2 -0
- package/dist/persist-recorded-session-XKPZX7HW.js +3 -0
- package/dist/pipeline-CADTHPDV.js +2 -0
- package/dist/{recording-banner-3XTXU2VL.js → recording-banner-2TNKQHP2.js} +1 -1
- package/dist/require-project-folder-SJG5FQY6.js +2 -0
- package/dist/run-test-md-INJKPE2I.js +13 -0
- package/dist/{skill-installer-GYYMVNE4.js → skill-installer-M6AREQQW.js} +1 -1
- package/dist/tcg-generate-VKFXR5JT.js +2 -0
- package/dist/testmd-actions-4QLHD74A.js +2 -0
- package/dist/{tms-client-NNYXLXZK.js → tms-client-VD3B3SMU.js} +1 -1
- package/dist/token-refresh-2HKIYD4Y.js +2 -0
- package/dist/{validate-basic-4YMRWYLS.js → validate-basic-FO7C2URG.js} +1 -1
- package/dist/{version-check-GU2LS6NM.js → version-check-PHZX5WS7.js} +1 -1
- package/package.json +8 -6
- package/dist/FolderPicker-LI5JKG2S.js +0 -2
- package/dist/HelpView-KHQYGSD2.js +0 -2
- package/dist/SingleShotApp-RO25ZX2E.js +0 -2
- package/dist/TestMdRunView-OXVWHOV3.js +0 -2
- package/dist/chunk-7GOX44H7.js +0 -103
- package/dist/chunk-AH4AXJML.js +0 -2
- package/dist/chunk-AT45XB6X.js +0 -60
- package/dist/chunk-BH6EP2LD.js +0 -85
- package/dist/chunk-BQACGLXW.js +0 -5
- package/dist/chunk-IS62CNJW.js +0 -20
- package/dist/chunk-LOIRZFV3.js +0 -10
- package/dist/chunk-LRKWPAGK.js +0 -2
- package/dist/chunk-MDBXYXSC.js +0 -2
- package/dist/chunk-NAAPNSZD.js +0 -17
- package/dist/chunk-PUU7A26K.js +0 -11
- package/dist/chunk-SQOIKS77.js +0 -6
- package/dist/chunk-UAYCLUUZ.js +0 -27
- package/dist/chunk-XCOU6AYD.js +0 -6
- package/dist/chunk-XCYCX4TU.js +0 -17
- package/dist/exit-manager-V2NW7A7U.js +0 -2
- package/dist/list-commands-PNYMVI6X.js +0 -2
- package/dist/login-flow-FIYH6K4A.js +0 -2
- package/dist/persist-recorded-session-OJPXI4HP.js +0 -3
- package/dist/pipeline-34CX3UBO.js +0 -2
- package/dist/require-project-folder-CFX6U6BZ.js +0 -2
- package/dist/run-test-md-YWKVMQDJ.js +0 -14
- package/dist/tcg-generate-KLY7QZY2.js +0 -2
- package/dist/testmd-actions-OUY5BOAV.js +0 -2
- package/dist/token-refresh-QCHKMPCM.js +0 -2
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{a as mh}from"./chunk-RZ4F3BHX.js";import{a as D,b as AE,c as p,d as RE,f as OE}from"./chunk-UR6MHSHU.js";var bh=p((cB,_h)=>{"use strict";var IE=typeof process=="object"&&process&&process.platform==="win32";_h.exports=IE?{sep:"\\"}:{sep:"/"}});var xh=p((dB,vh)=>{"use strict";vh.exports=Sh;function Sh(t,e,r){t instanceof RegExp&&(t=wh(t,r)),e instanceof RegExp&&(e=wh(e,r));var i=Eh(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 wh(t,e){var r=e.match(t);return r?r[0]:null}Sh.range=Eh;function Eh(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 ea=p((pB,Lh)=>{"use strict";var Th=xh();Lh.exports=PE;var Ah="\0SLASH"+Math.random()+"\0",Rh="\0OPEN"+Math.random()+"\0",Jo="\0CLOSE"+Math.random()+"\0",Oh="\0COMMA"+Math.random()+"\0",Ih="\0PERIOD"+Math.random()+"\0";function Xo(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function DE(t){return t.split("\\\\").join(Ah).split("\\{").join(Rh).split("\\}").join(Jo).split("\\,").join(Oh).split("\\.").join(Ih)}function LE(t){return t.split(Ah).join("\\").split(Rh).join("{").split(Jo).join("}").split(Oh).join(",").split(Ih).join(".")}function Dh(t){if(!t)return[""];var e=[],r=Th("{","}",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=Dh(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function PE(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),di(DE(t),!0).map(LE)):[]}function NE(t){return"{"+t+"}"}function CE(t){return/^-?0\d/.test(t)}function ME(t,e){return t<=e}function kE(t,e){return t>=e}function di(t,e){var r=[],i=Th("{","}",t);if(!i)return[t];var n=i.pre,s=i.post.length?di(i.post,!1):[""];if(/\$$/.test(i.pre))for(var o=0;o<s.length;o++){var a=n+"{"+i.body+"}"+s[o];r.push(a)}else{var l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),f=l||u,h=i.body.indexOf(",")>=0;if(!f&&!h)return i.post.match(/,(?!,).*\}/)?(t=i.pre+"{"+i.body+Jo+i.post,di(t)):[t];var c;if(f)c=i.body.split(/\.\./);else if(c=Dh(i.body),c.length===1&&(c=di(c[0],!1).map(NE),c.length===1))return s.map(function(T){return i.pre+c[0]+T});var d;if(f){var b=Xo(c[0]),g=Xo(c[1]),x=Math.max(c[0].length,c[1].length),y=c.length==3?Math.max(Math.abs(Xo(c[2])),1):1,m=ME,S=g<b;S&&(y*=-1,m=kE);var E=c.some(CE);d=[];for(var A=b;m(A,g);A+=y){var L;if(u)L=String.fromCharCode(A),L==="\\"&&(L="");else if(L=String(A),E){var v=x-L.length;if(v>0){var O=new Array(v+1).join("0");A<0?L="-"+O+L.slice(1):L=O+L}}d.push(L)}}else{d=[];for(var w=0;w<c.length;w++)d.push.apply(d,di(c[w],!1))}for(var w=0;w<d.length;w++)for(var o=0;o<s.length;o++){var a=n+d[w]+s[o];(!e||f||a)&&r.push(a)}}return r}});var qh=p((yB,sa)=>{"use strict";var Ne=sa.exports=(t,e,r={})=>(Nn(e),!r.nocomment&&e.charAt(0)==="#"?!1:new wr(e,r).match(t));sa.exports=Ne;var ia=bh();Ne.sep=ia.sep;var Re=Symbol("globstar **");Ne.GLOBSTAR=Re;var qE=ea(),Ph={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},na="[^/]",ta=na+"*?",FE="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",BE="(?:(?!(?:\\/|^)\\.).)*?",Mh=t=>t.split("").reduce((e,r)=>(e[r]=!0,e),{}),Nh=Mh("().*{}+?[]^$\\!"),jE=Mh("[.("),Ch=/\/+/;Ne.filter=(t,e={})=>(r,i,n)=>Ne(r,t,e);var At=(t,e={})=>{let r={};return Object.keys(t).forEach(i=>r[i]=t[i]),Object.keys(e).forEach(i=>r[i]=e[i]),r};Ne.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Ne;let e=Ne,r=(i,n,s)=>e(i,n,At(t,s));return r.Minimatch=class extends e.Minimatch{constructor(n,s){super(n,At(t,s))}},r.Minimatch.defaults=i=>e.defaults(At(t,i)).Minimatch,r.filter=(i,n)=>e.filter(i,At(t,n)),r.defaults=i=>e.defaults(At(t,i)),r.makeRe=(i,n)=>e.makeRe(i,At(t,n)),r.braceExpand=(i,n)=>e.braceExpand(i,At(t,n)),r.match=(i,n,s)=>e.match(i,n,At(t,s)),r};Ne.braceExpand=(t,e)=>kh(t,e);var kh=(t,e={})=>(Nn(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:qE(t)),WE=1024*64,Nn=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>WE)throw new TypeError("pattern is too long")},ra=Symbol("subparse");Ne.makeRe=(t,e)=>new wr(t,e||{}).makeRe();Ne.match=(t,e,r={})=>{let i=new wr(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};var UE=t=>t.replace(/\\(.)/g,"$1"),GE=t=>t.replace(/\\([^-\]])/g,"$1"),zE=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),$E=t=>t.replace(/[[\]\\]/g,"\\$&"),wr=class{constructor(e,r){Nn(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(Ch)),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(Re)!==-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 m=s;m<r.length;m++)if(r[m]===Re){o=m;break}let a=-1;for(let m=r.length-1;m>=0;m--)if(r[m]===Re){a=m;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 m=e.slice(n,n+l.length);if(!this._matchOne(m,l,i,0,0))return!1;n+=l.length}let h=0;if(f.length){if(f.length+n>e.length)return!1;let m=e.length-f.length;if(this._matchOne(e,f,i,m,0))h=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||!this._matchOne(e,f,i,m-1,0))return!1;h=f.length+1}}if(!u.length){let m=!!h;for(let S=n;S<e.length-h;S++){let E=String(e[S]);if(m=!0,E==="."||E===".."||!this.options.dot&&E.charAt(0)===".")return!1}return i||m}let c=[[[],0]],d=c[0],b=0,g=[0];for(let m of u)m===Re?(g.push(b),d=[[],0],c.push(d)):(d[0].push(m),b++);let x=c.length-1,y=e.length-h;for(let m of c)m[1]=y-(g[x--]+m[0].length);return!!this._matchGlobStarBodySections(e,c,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 c=e[h];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return a}let[u,f]=l;for(;i<=f;){if(this._matchOne(e.slice(0,i+u.length),u,s,i,0)&&o<this.maxGlobstarRecursion){let d=this._matchGlobStarBodySections(e,r,i+u.length,n+1,s,o+1,a);if(d!==!1)return d}let c=e[i];if(c==="."||c===".."||!this.options.dot&&c.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===Re)return!1;let c;if(typeof f=="string"?(c=h===f,this.debug("string match",f,h,c)):(c=h.match(f),this.debug("pattern match",f,h,c)),!c)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 kh(this.pattern,this.options)}parse(e,r){Nn(e);let i=this.options;if(e==="**")if(i.noglobstar)e="*";else return Re;if(e==="")return"";let n="",s=!1,o=!1,a=[],l=[],u,f=!1,h=-1,c=-1,d,b,g,x=e.charAt(0)===".",y=i.dot||x,m=()=>x?"":y?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",S=v=>v.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",E=()=>{if(u){switch(u){case"*":n+=ta,s=!0;break;case"?":n+=na,s=!0;break;default:n+="\\"+u;break}this.debug("clearStateChar %j %j",u,n),u=!1}};for(let v=0,O;v<e.length&&(O=e.charAt(v));v++){if(this.debug("%s %s %s %j",e,v,n,O),o){if(O==="/")return!1;Nh[O]&&(n+="\\"),n+=O,o=!1;continue}switch(O){case"/":return!1;case"\\":if(f&&e.charAt(v+1)==="-"){n+=O;continue}E(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,v,n,O),f){this.debug(" in class"),O==="!"&&v===c+1&&(O="^"),n+=O;continue}if(O==="*"&&u==="*")continue;this.debug("call clearStateChar %j",u),E(),u=O,i.noext&&E();continue;case"(":{if(f){n+="(";continue}if(!u){n+="\\(";continue}let w={type:u,start:v-1,reStart:n.length,open:Ph[u].open,close:Ph[u].close};this.debug(this.pattern," ",w),a.push(w),n+=w.open,w.start===0&&w.type!=="!"&&(x=!0,n+=S(e.slice(v+1))),this.debug("plType %j %j",u,n),u=!1;continue}case")":{let w=a[a.length-1];if(f||!w){n+="\\)";continue}a.pop(),E(),s=!0,b=w,n+=b.close,b.type==="!"&&l.push(Object.assign(b,{reEnd:n.length}));continue}case"|":{let w=a[a.length-1];if(f||!w){n+="\\|";continue}E(),n+="|",w.start===0&&w.type!=="!"&&(x=!0,n+=S(e.slice(v+1)));continue}case"[":if(E(),f){n+="\\"+O;continue}f=!0,c=v,h=n.length,n+=O;continue;case"]":if(v===c+1||!f){n+="\\"+O;continue}d=e.substring(c+1,v);try{RegExp("["+$E(GE(d))+"]"),n+=O}catch{n=n.substring(0,h)+"(?:$.)"}s=!0,f=!1;continue;default:E(),Nh[O]&&!(O==="^"&&f)&&(n+="\\"),n+=O;break}}for(f&&(d=e.slice(c+1),g=this.parse(d,ra),n=n.substring(0,h)+"\\["+g[0],s=s||g[1]),b=a.pop();b;b=a.pop()){let v;v=n.slice(b.reStart+b.open.length),this.debug("setting tail",n,b),v=v.replace(/((?:\\{2}){0,64})(\\?)\|/g,(w,T,R)=>(R||(R="\\"),T+T+R+"|")),this.debug(`tail=%j
|
|
3
|
+
%s`,v,v,b,n);let O=b.type==="*"?ta:b.type==="?"?na:"\\"+b.type;s=!0,n=n.slice(0,b.reStart)+O+"\\("+v}E(),o&&(n+="\\\\");let A=jE[n.charAt(0)];for(let v=l.length-1;v>-1;v--){let O=l[v],w=n.slice(0,O.reStart),T=n.slice(O.reStart,O.reEnd-8),R=n.slice(O.reEnd),N=n.slice(O.reEnd-8,O.reEnd)+R,G=w.split(")").length,ue=w.split("(").length-G,K=R;for(let V=0;V<ue;V++)K=K.replace(/\)[+*?]?/,"");R=K;let te=R===""&&r!==ra?"(?:$|\\/)":"";n=w+T+R+te+N}if(n!==""&&s&&(n="(?=.)"+n),A&&(n=m()+n),r===ra)return[n,s];if(i.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return UE(e);let L=i.nocase?"i":"";try{return Object.assign(new RegExp("^"+n+"$",L),{_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?ta:r.dot?FE:BE,n=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?zE(a):a===Re?Re:a._src).reduce((a,l)=>(a[a.length-1]===Re&&l===Re||a.push(l),a),[]),o.forEach((a,l)=>{a!==Re||o[l-1]===Re||(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]=Re))}),o.filter(a=>a!==Re).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;ia.sep!=="/"&&(e=e.split(ia.sep).join("/")),e=e.split(Ch),this.debug(this.pattern,"split",e);let n=this.set;this.debug(this.pattern,"set",n);let s;for(let o=e.length-1;o>=0&&(s=e[o],!s);o--);for(let o=0;o<n.length;o++){let a=n[o],l=e;if(i.matchBase&&a.length===1&&(l=[s]),this.matchOne(l,a,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return Ne.defaults(e).Minimatch}};Ne.Minimatch=wr});var Uh=p((mB,Wh)=>{"use strict";Wh.exports=jh;var aa=D("fs"),{EventEmitter:HE}=D("events"),{Minimatch:oa}=qh(),{resolve:VE}=D("path");function YE(t,e){return new Promise((r,i)=>{aa.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 Fh(t,e){return new Promise((r,i)=>{(e?aa.stat:aa.lstat)(t,(s,o)=>{s?s.code==="ENOENT"?r(e?Fh(t,!1):null):r(null):r(o)})})}async function*Bh(t,e,r,i,n,s){let o=await YE(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,c=null;(i||r)&&(c=await Fh(h,r)),!c&&a.name!==void 0&&(c=a),c===null&&(c={isDirectory:()=>!1}),c.isDirectory()?n(f)||(yield{relative:f,absolute:h,stats:c},yield*Bh(u,e,r,i,n,!1)):yield{relative:f,absolute:h,stats:c}}}async function*ZE(t,e,r,i){yield*Bh("",t,e,r,i,!0)}function KE(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 Cn=class extends HE{constructor(e,r,i){if(super(),typeof r=="function"&&(i=r,r=null),this.options=KE(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 oa(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 oa(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 oa(s,{dot:!0}))}this.iterator=ZE(VE(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 jh(t,e,r){return new Cn(t,e,r)}jh.ReaddirGlob=Cn});var jc={};RE(jc,{all:()=>ya,allLimit:()=>ma,allSeries:()=>_a,any:()=>Ta,anyLimit:()=>Aa,anySeries:()=>Ra,apply:()=>Yh,applyEach:()=>ec,applyEachSeries:()=>tc,asyncify:()=>kn,auto:()=>Da,autoInject:()=>rc,cargo:()=>ic,cargoQueue:()=>nc,compose:()=>sc,concat:()=>fa,concatLimit:()=>yi,concatSeries:()=>ha,constant:()=>oc,default:()=>t1,detect:()=>ca,detectLimit:()=>da,detectSeries:()=>pa,dir:()=>lc,doDuring:()=>qn,doUntil:()=>uc,doWhilst:()=>qn,during:()=>Un,each:()=>ga,eachLimit:()=>Fn,eachOf:()=>Fe,eachOfLimit:()=>gi,eachOfSeries:()=>Xe,eachSeries:()=>Bn,ensureAsync:()=>Na,every:()=>ya,everyLimit:()=>ma,everySeries:()=>_a,filter:()=>ba,filterLimit:()=>wa,filterSeries:()=>Sa,find:()=>ca,findLimit:()=>da,findSeries:()=>pa,flatMap:()=>fa,flatMapLimit:()=>yi,flatMapSeries:()=>ha,foldl:()=>Sr,foldr:()=>va,forEach:()=>ga,forEachLimit:()=>Fn,forEachOf:()=>Fe,forEachOfLimit:()=>gi,forEachOfSeries:()=>Xe,forEachSeries:()=>Bn,forever:()=>hc,groupBy:()=>cc,groupByLimit:()=>Vn,groupBySeries:()=>dc,inject:()=>Sr,log:()=>pc,map:()=>$n,mapLimit:()=>bi,mapSeries:()=>Ia,mapValues:()=>gc,mapValuesLimit:()=>Yn,mapValuesSeries:()=>yc,memoize:()=>mc,nextTick:()=>_c,parallel:()=>bc,parallelLimit:()=>wc,priorityQueue:()=>Sc,queue:()=>Ma,race:()=>Ec,reduce:()=>Sr,reduceRight:()=>va,reflect:()=>jn,reflectAll:()=>vc,reject:()=>xc,rejectLimit:()=>Tc,rejectSeries:()=>Ac,retry:()=>Wn,retryable:()=>Ic,select:()=>ba,selectLimit:()=>wa,selectSeries:()=>Sa,seq:()=>Pa,series:()=>Dc,setImmediate:()=>Rt,some:()=>Ta,someLimit:()=>Aa,someSeries:()=>Ra,sortBy:()=>Lc,timeout:()=>Pc,times:()=>Nc,timesLimit:()=>Zn,timesSeries:()=>Cc,transform:()=>Mc,tryEach:()=>kc,unmemoize:()=>qc,until:()=>Fc,waterfall:()=>Bc,whilst:()=>Un,wrapSync:()=>kn});function Yh(t,...e){return(...r)=>t(...e,...r)}function mi(t){return function(...e){var r=e.pop();return t.call(this,e,r)}}function Qh(t){setTimeout(t,0)}function Xh(t){return(e,...r)=>t(()=>e(...r))}function kn(t){return _i(t)?function(...e){let r=e.pop(),i=t.apply(this,e);return Gh(i,r)}:mi(function(e,r){var i;try{i=t.apply(this,e)}catch(n){return r(n)}if(i&&typeof i.then=="function")return Gh(i,r);r(null,i)})}function Gh(t,e){return t.then(r=>{zh(e,null,r)},r=>{zh(e,r&&(r instanceof Error||r.message)?r:new Error(r))})}function zh(t,e,r){try{t(e,r)}catch(i){Rt(n=>{throw n},i)}}function _i(t){return t[Symbol.toStringTag]==="AsyncFunction"}function XE(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function JE(t){return typeof t[Symbol.asyncIterator]=="function"}function q(t){if(typeof t!="function")throw new Error("expected a function");return _i(t)?kn(t):t}function k(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function r(...i){return typeof i[e-1]=="function"?t.apply(this,i):new Promise((n,s)=>{i[e-1]=(o,...a)=>{if(o)return s(o);n(a.length>1?a:a[0])},t.apply(this,i)})}return r}function Jh(t){return function(r,...i){return k(function(s){var o=this;return t(r,(a,l)=>{q(a).apply(o,i.concat(l))},s)})}}function Oa(t,e,r,i){e=e||[];var n=[],s=0,o=q(r);return t(e,(a,l,u)=>{var f=s++;o(a,(h,c)=>{n[f]=c,u(h)})},a=>{i(a,n)})}function Gn(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}function Ot(t){function e(...r){if(t!==null){var i=t;t=null,i.apply(this,r)}}return Object.assign(e,t),e}function ev(t){return t[Symbol.iterator]&&t[Symbol.iterator]()}function tv(t){var e=-1,r=t.length;return function(){return++e<r?{value:t[e],key:e}:null}}function rv(t){var e=-1;return function(){var i=t.next();return i.done?null:(e++,{value:i.value,key:e})}}function iv(t){var e=t?Object.keys(t):[],r=-1,i=e.length;return function n(){var s=e[++r];return s==="__proto__"?n():r<i?{value:t[s],key:s}:null}}function nv(t){if(Gn(t))return tv(t);var e=ev(t);return e?rv(e):iv(t)}function It(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var r=t;t=null,r.apply(this,e)}}function $h(t,e,r,i){let n=!1,s=!1,o=!1,a=0,l=0;function u(){a>=e||o||n||(o=!0,t.next().then(({value:c,done:d})=>{if(!(s||n)){if(o=!1,d){n=!0,a<=0&&i(null);return}a++,r(c,l,f),l++,u()}}).catch(h))}function f(c,d){if(a-=1,!s){if(c)return h(c);if(c===!1){n=!0,s=!0;return}if(d===zn||n&&a<=0)return n=!0,i(null);u()}}function h(c){s||(o=!1,n=!0,i(c))}u()}function sv(t,e,r,i){return $e(e)(t,q(r),i)}function ov(t,e,r){r=Ot(r);var i=0,n=0,{length:s}=t,o=!1;s===0&&r(null);function a(l,u){l===!1&&(o=!0),o!==!0&&(l?r(l):(++n===s||u===zn)&&r(null))}for(;i<s;i++)e(t[i],i,It(a))}function av(t,e,r){return gi(t,1/0,e,r)}function lv(t,e,r){var i=Gn(t)?ov:av;return i(t,q(e),r)}function uv(t,e,r){return Oa(Fe,t,e,r)}function fv(t,e,r){return gi(t,1,e,r)}function hv(t,e,r){return Oa(Xe,t,e,r)}function Er(){let t,e;function r(i,...n){if(i)return e(i);t(n.length>1?n:n[0])}return r[vr]=new Promise((i,n)=>{t=i,e=n}),r}function Da(t,e,r){typeof e!="number"&&(r=e,e=null),r=Ot(r||Er());var i=Object.keys(t).length;if(!i)return r(null);e||(e=i);var n={},s=0,o=!1,a=!1,l=Object.create(null),u=[],f=[],h={};Object.keys(t).forEach(S=>{var E=t[S];if(!Array.isArray(E)){c(S,[E]),f.push(S);return}var A=E.slice(0,E.length-1),L=A.length;if(L===0){c(S,E),f.push(S);return}h[S]=L,A.forEach(v=>{if(!t[v])throw new Error("async.auto task `"+S+"` has a non-existent dependency `"+v+"` in "+A.join(", "));b(v,()=>{L--,L===0&&c(S,E)})})}),y(),d();function c(S,E){u.push(()=>x(S,E))}function d(){if(!o){if(u.length===0&&s===0)return r(null,n);for(;u.length&&s<e;){var S=u.shift();S()}}}function b(S,E){var A=l[S];A||(A=l[S]=[]),A.push(E)}function g(S){var E=l[S]||[];E.forEach(A=>A()),d()}function x(S,E){if(!a){var A=It((v,...O)=>{if(s--,v===!1){o=!0;return}if(O.length<2&&([O]=O),v){var w={};if(Object.keys(n).forEach(T=>{w[T]=n[T]}),w[S]=O,a=!0,l=Object.create(null),o)return;r(v,w)}else n[S]=O,g(S)});s++;var L=q(E[E.length-1]);E.length>1?L(n,A):L(A)}}function y(){for(var S,E=0;f.length;)S=f.pop(),E++,m(S).forEach(A=>{--h[A]===0&&f.push(A)});if(E!==i)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function m(S){var E=[];return Object.keys(t).forEach(A=>{let L=t[A];Array.isArray(L)&&L.indexOf(S)>=0&&E.push(A)}),E}return r[vr]}function yv(t){let e="",r=0,i=t.indexOf("*/");for(;r<t.length;)if(t[r]==="/"&&t[r+1]==="/"){let n=t.indexOf(`
|
|
4
|
+
`,r);r=n===-1?t.length:n}else if(i!==-1&&t[r]==="/"&&t[r+1]==="*"){let n=t.indexOf("*/",r);n!==-1?(r=n+2,i=t.indexOf("*/",r)):(e+=t[r],r++)}else e+=t[r],r++;return e}function mv(t){let e=yv(t.toString()),r=e.match(cv);if(r||(r=e.match(dv)),!r)throw new Error(`could not parse args in autoInject
|
|
5
|
+
Source:
|
|
6
|
+
`+e);let[,i]=r;return i.replace(/\s/g,"").split(pv).map(n=>n.replace(gv,"").trim())}function rc(t,e){var r={};return Object.keys(t).forEach(i=>{var n=t[i],s,o=_i(n),a=!o&&n.length===1||o&&n.length===0;if(Array.isArray(n))s=[...n],n=s.pop(),r[i]=s.concat(s.length>0?l:n);else if(a)r[i]=n;else{if(s=mv(n),n.length===0&&!o&&s.length===0)throw new Error("autoInject task functions require explicit parameters.");o||s.pop(),r[i]=s.concat(l)}function l(u,f){var h=s.map(c=>u[c]);h.push(f),q(n)(...h)}}),Da(r,e)}function Hh(t,e){t.length=1,t.head=t.tail=e}function La(t,e,r){if(e==null)e=1;else if(e===0)throw new RangeError("Concurrency must not be zero");var i=q(t),n=0,s=[];let o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(m,S){o[m].push(S)}function l(m,S){let E=(...A)=>{u(m,E),S(...A)};o[m].push(E)}function u(m,S){if(!m)return Object.keys(o).forEach(E=>o[E]=[]);if(!S)return o[m]=[];o[m]=o[m].filter(E=>E!==S)}function f(m,...S){o[m].forEach(E=>E(...S))}var h=!1;function c(m,S,E,A){if(A!=null&&typeof A!="function")throw new Error("task callback must be a function");y.started=!0;var L,v;function O(T,...R){if(T)return E?v(T):L();if(R.length<=1)return L(R[0]);L(R)}var w=y._createTaskItem(m,E?O:A||O);if(S?y._tasks.unshift(w):y._tasks.push(w),h||(h=!0,Rt(()=>{h=!1,y.process()})),E||!A)return new Promise((T,R)=>{L=T,v=R})}function d(m){return function(S,...E){n-=1;for(var A=0,L=m.length;A<L;A++){var v=m[A],O=s.indexOf(v);O===0?s.shift():O>0&&s.splice(O,1),v.callback(S,...E),S!=null&&f("error",S,v.data)}n<=y.concurrency-y.buffer&&f("unsaturated"),y.idle()&&f("drain"),y.process()}}function b(m){return m.length===0&&y.idle()?(Rt(()=>f("drain")),!0):!1}let g=m=>S=>{if(!S)return new Promise((E,A)=>{l(m,(L,v)=>{if(L)return A(L);E(v)})});u(m),a(m,S)};var x=!1,y={_tasks:new ua,_createTaskItem(m,S){return{data:m,callback:S}},*[Symbol.iterator](){yield*y._tasks[Symbol.iterator]()},concurrency:e,payload:r,buffer:e/4,started:!1,paused:!1,push(m,S){return Array.isArray(m)?b(m)?void 0:m.map(E=>c(E,!1,!1,S)):c(m,!1,!1,S)},pushAsync(m,S){return Array.isArray(m)?b(m)?void 0:m.map(E=>c(E,!1,!0,S)):c(m,!1,!0,S)},kill(){u(),y._tasks.empty()},unshift(m,S){return Array.isArray(m)?b(m)?void 0:m.map(E=>c(E,!0,!1,S)):c(m,!0,!1,S)},unshiftAsync(m,S){return Array.isArray(m)?b(m)?void 0:m.map(E=>c(E,!0,!0,S)):c(m,!0,!0,S)},remove(m){y._tasks.remove(m)},process(){if(!x){for(x=!0;!y.paused&&n<y.concurrency&&y._tasks.length;){var m=[],S=[],E=y._tasks.length;y.payload&&(E=Math.min(E,y.payload));for(var A=0;A<E;A++){var L=y._tasks.shift();m.push(L),s.push(L),S.push(L.data)}n+=1,y._tasks.length===0&&f("empty"),n===y.concurrency&&f("saturated");var v=It(d(m));i(S,v)}x=!1}},length(){return y._tasks.length},running(){return n},workersList(){return s},idle(){return y._tasks.length+n===0},pause(){y.paused=!0},resume(){y.paused!==!1&&(y.paused=!1,Rt(y.process))}};return Object.defineProperties(y,{saturated:{writable:!1,value:g("saturated")},unsaturated:{writable:!1,value:g("unsaturated")},empty:{writable:!1,value:g("empty")},drain:{writable:!1,value:g("drain")},error:{writable:!1,value:g("error")}}),y}function ic(t,e){return La(t,1,e)}function nc(t,e,r){return La(t,e,r)}function _v(t,e,r,i){i=Ot(i);var n=q(r);return Xe(t,(s,o,a)=>{n(e,s,(l,u)=>{e=u,a(l)})},s=>i(s,e))}function Pa(...t){var e=t.map(q);return function(...r){var i=this,n=r[r.length-1];return typeof n=="function"?r.pop():n=Er(),Sr(e,r,(s,o,a)=>{o.apply(i,s.concat((l,...u)=>{a(l,u)}))},(s,o)=>n(s,...o)),n[vr]}}function sc(...t){return Pa(...t.reverse())}function bv(t,e,r,i){return Oa($e(e),t,r,i)}function wv(t,e,r,i){var n=q(r);return bi(t,e,(s,o)=>{n(s,(a,...l)=>a?o(a):o(a,l))},(s,o)=>{for(var a=[],l=0;l<o.length;l++)o[l]&&(a=a.concat(...o[l]));return i(s,a)})}function Sv(t,e,r){return yi(t,1/0,e,r)}function Ev(t,e,r){return yi(t,1,e,r)}function oc(...t){return function(...e){var r=e.pop();return r(null,...t)}}function dt(t,e){return(r,i,n,s)=>{var o=!1,a;let l=q(n);r(i,(u,f,h)=>{l(u,(c,d)=>{if(c||c===!1)return h(c);if(t(d)&&!a)return o=!0,a=e(!0,u),h(null,zn);h()})},u=>{if(u)return s(u);s(null,o?a:e(!1))})}}function vv(t,e,r){return dt(i=>i,(i,n)=>n)(Fe,t,e,r)}function xv(t,e,r,i){return dt(n=>n,(n,s)=>s)($e(e),t,r,i)}function Tv(t,e,r){return dt(i=>i,(i,n)=>n)($e(1),t,e,r)}function ac(t){return(e,...r)=>q(e)(...r,(i,...n)=>{typeof console=="object"&&(i?console.error&&console.error(i):console[t]&&n.forEach(s=>console[t](s)))})}function Av(t,e,r){r=It(r);var i=q(t),n=q(e),s;function o(l,...u){if(l)return r(l);l!==!1&&(s=u,n(...u,a))}function a(l,u){if(l)return r(l);if(l!==!1){if(!u)return r(null,...s);i(o)}}return a(null,!0)}function uc(t,e,r){let i=q(e);return qn(t,(...n)=>{let s=n.pop();i(...n,(o,a)=>s(o,!a))},r)}function fc(t){return(e,r,i)=>t(e,i)}function Rv(t,e,r){return Fe(t,fc(q(e)),r)}function Ov(t,e,r,i){return $e(e)(t,fc(q(r)),i)}function Iv(t,e,r){return Fn(t,1,e,r)}function Na(t){return _i(t)?t:function(...e){var r=e.pop(),i=!0;e.push((...n)=>{i?Rt(()=>r(...n)):r(...n)}),t.apply(this,e),i=!1}}function Dv(t,e,r){return dt(i=>!i,i=>!i)(Fe,t,e,r)}function Lv(t,e,r,i){return dt(n=>!n,n=>!n)($e(e),t,r,i)}function Pv(t,e,r){return dt(i=>!i,i=>!i)(Xe,t,e,r)}function Nv(t,e,r,i){var n=new Array(e.length);t(e,(s,o,a)=>{r(s,(l,u)=>{n[o]=!!u,a(l)})},s=>{if(s)return i(s);for(var o=[],a=0;a<e.length;a++)n[a]&&o.push(e[a]);i(null,o)})}function Cv(t,e,r,i){var n=[];t(e,(s,o,a)=>{r(s,(l,u)=>{if(l)return a(l);u&&n.push({index:o,value:s}),a(l)})},s=>{if(s)return i(s);i(null,n.sort((o,a)=>o.index-a.index).map(o=>o.value))})}function Hn(t,e,r,i){var n=Gn(e)?Nv:Cv;return n(t,e,q(r),i)}function Mv(t,e,r){return Hn(Fe,t,e,r)}function kv(t,e,r,i){return Hn($e(e),t,r,i)}function qv(t,e,r){return Hn(Xe,t,e,r)}function Fv(t,e){var r=It(e),i=q(Na(t));function n(s){if(s)return r(s);s!==!1&&i(n)}return n()}function Bv(t,e,r,i){var n=q(r);return bi(t,e,(s,o)=>{n(s,(a,l)=>a?o(a):o(a,{key:l,val:s}))},(s,o)=>{for(var a={},{hasOwnProperty:l}=Object.prototype,u=0;u<o.length;u++)if(o[u]){var{key:f}=o[u],{val:h}=o[u];l.call(a,f)?a[f].push(h):a[f]=[h]}return i(s,a)})}function cc(t,e,r){return Vn(t,1/0,e,r)}function dc(t,e,r){return Vn(t,1,e,r)}function jv(t,e,r,i){i=Ot(i);var n={},s=q(r);return $e(e)(t,(o,a,l)=>{s(o,a,(u,f)=>{if(u)return l(u);n[a]=f,l(u)})},o=>i(o,n))}function gc(t,e,r){return Yn(t,1/0,e,r)}function yc(t,e,r){return Yn(t,1,e,r)}function mc(t,e=r=>r){var r=Object.create(null),i=Object.create(null),n=q(t),s=mi((o,a)=>{var l=e(...o);l in r?Rt(()=>a(null,...r[l])):l in i?i[l].push(a):(i[l]=[a],n(...o,(u,...f)=>{u||(r[l]=f);var h=i[l];delete i[l];for(var c=0,d=h.length;c<d;c++)h[c](u,...f)}))});return s.memo=r,s.unmemoized=t,s}function bc(t,e){return Ca(Fe,t,e)}function wc(t,e,r){return Ca($e(e),t,r)}function Ma(t,e){var r=q(t);return La((i,n)=>{r(i[0],n)},e,1)}function Wv(t){return(t<<1)+1}function Vh(t){return(t+1>>1)-1}function la(t,e){return t.priority!==e.priority?t.priority<e.priority:t.pushCount<e.pushCount}function Sc(t,e){var r=Ma(t,e),{push:i,pushAsync:n}=r;r._tasks=new Ea,r._createTaskItem=({data:o,priority:a},l)=>({data:o,priority:a,callback:l});function s(o,a){return Array.isArray(o)?o.map(l=>({data:l,priority:a})):{data:o,priority:a}}return r.push=function(o,a=0,l){return i(s(o,a),l)},r.pushAsync=function(o,a=0,l){return n(s(o,a),l)},delete r.unshift,delete r.unshiftAsync,r}function Uv(t,e){if(e=Ot(e),!Array.isArray(t))return e(new TypeError("First argument to race must be an array of functions"));if(!t.length)return e();for(var r=0,i=t.length;r<i;r++)q(t[r])(e)}function va(t,e,r,i){var n=[...t].reverse();return Sr(n,e,r,i)}function jn(t){var e=q(t);return mi(function(i,n){return i.push((s,...o)=>{let a={};if(s&&(a.error=s),o.length>0){var l=o;o.length<=1&&([l]=o),a.value=l}n(null,a)}),e.apply(this,i)})}function vc(t){var e;return Array.isArray(t)?e=t.map(jn):(e={},Object.keys(t).forEach(r=>{e[r]=jn.call(this,t[r])})),e}function ka(t,e,r,i){let n=q(r);return Hn(t,e,(s,o)=>{n(s,(a,l)=>{o(a,!l)})},i)}function Gv(t,e,r){return ka(Fe,t,e,r)}function zv(t,e,r,i){return ka($e(e),t,r,i)}function $v(t,e,r){return ka(Xe,t,e,r)}function Rc(t){return function(){return t}}function Wn(t,e,r){var i={times:xa,intervalFunc:Rc(Oc)};if(arguments.length<3&&typeof t=="function"?(r=e||Er(),e=t):(Hv(i,t),r=r||Er()),typeof e!="function")throw new Error("Invalid arguments for async.retry");var n=q(e),s=1;function o(){n((a,...l)=>{a!==!1&&(a&&s++<i.times&&(typeof i.errorFilter!="function"||i.errorFilter(a))?setTimeout(o,i.intervalFunc(s-1)):r(a,...l))})}return o(),r[vr]}function Hv(t,e){if(typeof e=="object")t.times=+e.times||xa,t.intervalFunc=typeof e.interval=="function"?e.interval:Rc(+e.interval||Oc),t.errorFilter=e.errorFilter;else if(typeof e=="number"||typeof e=="string")t.times=+e||xa;else throw new Error("Invalid arguments for async.retry")}function Ic(t,e){e||(e=t,t=null);let r=t&&t.arity||e.length;_i(e)&&(r+=1);var i=q(e);return mi((n,s)=>{(n.length<r-1||s==null)&&(n.push(s),s=Er());function o(a){i(...n,a)}return t?Wn(t,o,s):Wn(o,s),s[vr]})}function Dc(t,e){return Ca(Xe,t,e)}function Vv(t,e,r){return dt(Boolean,i=>i)(Fe,t,e,r)}function Yv(t,e,r,i){return dt(Boolean,n=>n)($e(e),t,r,i)}function Zv(t,e,r){return dt(Boolean,i=>i)(Xe,t,e,r)}function Kv(t,e,r){var i=q(e);return $n(t,(s,o)=>{i(s,(a,l)=>{if(a)return o(a);o(a,{value:s,criteria:l})})},(s,o)=>{if(s)return r(s);r(null,o.sort(n).map(a=>a.value))});function n(s,o){var a=s.criteria,l=o.criteria;return a<l?-1:a>l?1:0}}function Pc(t,e,r){var i=q(t);return mi((n,s)=>{var o=!1,a;function l(){var u=t.name||"anonymous",f=new Error('Callback function "'+u+'" timed out.');f.code="ETIMEDOUT",r&&(f.info=r),o=!0,s(f)}n.push((...u)=>{o||(s(...u),clearTimeout(a))}),a=setTimeout(l,e),i(...n)})}function Qv(t){for(var e=Array(t);t--;)e[t]=t;return e}function Zn(t,e,r,i){var n=q(r);return bi(Qv(t),e,n,i)}function Nc(t,e,r){return Zn(t,1/0,e,r)}function Cc(t,e,r){return Zn(t,1,e,r)}function Mc(t,e,r,i){arguments.length<=3&&typeof e=="function"&&(i=r,r=e,e=Array.isArray(t)?[]:{}),i=Ot(i||Er());var n=q(r);return Fe(t,(s,o,a)=>{n(e,s,o,a)},s=>i(s,e)),i[vr]}function Xv(t,e){var r=null,i;return Bn(t,(n,s)=>{q(n)((o,...a)=>{if(o===!1)return s(o);a.length<2?[i]=a:i=a,r=o,s(o?null:{})})},()=>e(r,i))}function qc(t){return(...e)=>(t.unmemoized||t)(...e)}function Jv(t,e,r){r=It(r);var i=q(e),n=q(t),s=[];function o(l,...u){if(l)return r(l);s=u,l!==!1&&n(a)}function a(l,u){if(l)return r(l);if(l!==!1){if(!u)return r(null,...s);i(o)}}return n(a)}function Fc(t,e,r){let i=q(t);return Un(n=>i((s,o)=>n(s,!o)),e,r)}function e1(t,e){if(e=Ot(e),!Array.isArray(t))return e(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();var r=0;function i(s){var o=q(t[r++]);o(...s,It(n))}function n(s,...o){if(s!==!1){if(s||r===t.length)return e(s,...o);i(o)}}i([])}var QE,Zh,Kh,pi,Rt,zn,$e,gi,Fe,$n,ec,Xe,Ia,tc,vr,cv,dv,pv,gv,ua,Sr,bi,yi,fa,ha,ca,da,pa,lc,qn,ga,Fn,Bn,ya,ma,_a,ba,wa,Sa,hc,Vn,pc,Yn,Mn,_c,Ca,Ea,Ec,xc,Tc,Ac,xa,Oc,Ta,Aa,Ra,Lc,kc,Un,Bc,t1,Wc=AE(()=>{"use strict";QE=typeof queueMicrotask=="function"&&queueMicrotask,Zh=typeof setImmediate=="function"&&setImmediate,Kh=typeof process=="object"&&typeof process.nextTick=="function";QE?pi=queueMicrotask:Zh?pi=setImmediate:Kh?pi=process.nextTick:pi=Qh;Rt=Xh(pi);zn={};$e=t=>(e,r,i)=>{if(i=Ot(i),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return i(null);if(XE(e))return $h(e,t,r,i);if(JE(e))return $h(e[Symbol.asyncIterator](),t,r,i);var n=nv(e),s=!1,o=!1,a=0,l=!1;function u(h,c){if(!o)if(a-=1,h)s=!0,i(h);else if(h===!1)s=!0,o=!0;else{if(c===zn||s&&a<=0)return s=!0,i(null);l||f()}}function f(){for(l=!0;a<t&&!s;){var h=n();if(h===null){s=!0,a<=0&&i(null);return}a+=1,r(h.value,h.key,It(u))}l=!1}f()};gi=k(sv,4);Fe=k(lv,3);$n=k(uv,3),ec=Jh($n);Xe=k(fv,3);Ia=k(hv,3),tc=Jh(Ia),vr=Symbol("promiseCallback");cv=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,dv=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,pv=/,/,gv=/(=.+)?(\s*)$/;ua=class{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,r){r.prev=e,r.next=e.next,e.next?e.next.prev=r:this.tail=r,e.next=r,this.length+=1}insertBefore(e,r){r.prev=e.prev,r.next=e,e.prev?e.prev.next=r:this.head=r,e.prev=r,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):Hh(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):Hh(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var r=this.head;r;){var{next:i}=r;e(r)&&this.removeLink(r),r=i}return this}};Sr=k(_v,4);bi=k(bv,4);yi=k(wv,4);fa=k(Sv,3);ha=k(Ev,3);ca=k(vv,3);da=k(xv,4);pa=k(Tv,3);lc=ac("dir");qn=k(Av,3);ga=k(Rv,3);Fn=k(Ov,4);Bn=k(Iv,3);ya=k(Dv,3);ma=k(Lv,4);_a=k(Pv,3);ba=k(Mv,3);wa=k(kv,4);Sa=k(qv,3);hc=k(Fv,2);Vn=k(Bv,4);pc=ac("log");Yn=k(jv,4);Kh?Mn=process.nextTick:Zh?Mn=setImmediate:Mn=Qh;_c=Xh(Mn),Ca=k((t,e,r)=>{var i=Gn(e)?[]:{};t(e,(n,s,o)=>{q(n)((a,...l)=>{l.length<2&&([l]=l),i[s]=l,o(a)})},n=>r(n,i))},3);Ea=class{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let r;for(;e>0&&la(this.heap[e],this.heap[r=Vh(e)]);){let i=this.heap[e];this.heap[e]=this.heap[r],this.heap[r]=i,e=r}}percDown(e){let r;for(;(r=Wv(e))<this.heap.length&&(r+1<this.heap.length&&la(this.heap[r+1],this.heap[r])&&(r=r+1),!la(this.heap[e],this.heap[r]));){let i=this.heap[e];this.heap[e]=this.heap[r],this.heap[r]=i,e=r}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let r=0;for(let i=0;i<this.heap.length;i++)e(this.heap[i])||(this.heap[r]=this.heap[i],r++);this.heap.splice(r);for(let i=Vh(this.heap.length-1);i>=0;i--)this.percDown(i);return this}};Ec=k(Uv,2);xc=k(Gv,3);Tc=k(zv,4);Ac=k($v,3);xa=5,Oc=0;Ta=k(Vv,3);Aa=k(Yv,4);Ra=k(Zv,3);Lc=k(Kv,3);kc=k(Xv);Un=k(Jv,3);Bc=k(e1),t1={apply:Yh,applyEach:ec,applyEachSeries:tc,asyncify:kn,auto:Da,autoInject:rc,cargo:ic,cargoQueue:nc,compose:sc,concat:fa,concatLimit:yi,concatSeries:ha,constant:oc,detect:ca,detectLimit:da,detectSeries:pa,dir:lc,doUntil:uc,doWhilst:qn,each:ga,eachLimit:Fn,eachOf:Fe,eachOfLimit:gi,eachOfSeries:Xe,eachSeries:Bn,ensureAsync:Na,every:ya,everyLimit:ma,everySeries:_a,filter:ba,filterLimit:wa,filterSeries:Sa,forever:hc,groupBy:cc,groupByLimit:Vn,groupBySeries:dc,log:pc,map:$n,mapLimit:bi,mapSeries:Ia,mapValues:gc,mapValuesLimit:Yn,mapValuesSeries:yc,memoize:mc,nextTick:_c,parallel:bc,parallelLimit:wc,priorityQueue:Sc,queue:Ma,race:Ec,reduce:Sr,reduceRight:va,reflect:jn,reflectAll:vc,reject:xc,rejectLimit:Tc,rejectSeries:Ac,retry:Wn,retryable:Ic,seq:Pa,series:Dc,setImmediate:Rt,some:Ta,someLimit:Aa,someSeries:Ra,sortBy:Lc,timeout:Pc,times:Nc,timesLimit:Zn,timesSeries:Cc,transform:Mc,tryEach:kc,unmemoize:qc,until:Fc,waterfall:Bc,whilst:Un,all:ya,allLimit:ma,allSeries:_a,any:Ta,anyLimit:Aa,anySeries:Ra,find:ca,findLimit:da,findSeries:pa,flatMap:fa,flatMapLimit:yi,flatMapSeries:ha,forEach:ga,forEachSeries:Bn,forEachLimit:Fn,forEachOf:Fe,forEachOfSeries:Xe,forEachOfLimit:gi,inject:Sr,foldl:Sr,foldr:va,select:ba,selectLimit:wa,selectSeries:Sa,wrapSync:kn,during:Un,doDuring:qn}});var Gc=p((_B,Uc)=>{"use strict";var Dt=D("constants"),r1=process.cwd,Kn=null,i1=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Kn||(Kn=r1.call(process)),Kn};try{process.cwd()}catch{}typeof process.chdir=="function"&&(qa=process.chdir,process.chdir=function(t){Kn=null,qa.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,qa));var qa;Uc.exports=n1;function n1(t){Dt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=n(t.chmodSync),t.fchmodSync=n(t.fchmodSync),t.lchmodSync=n(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(f,h,c){c&&process.nextTick(c)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(f,h,c,d){d&&process.nextTick(d)},t.lchownSync=function(){}),i1==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:(function(f){function h(c,d,b){var g=Date.now(),x=0;f(c,d,function y(m){if(m&&(m.code==="EACCES"||m.code==="EPERM"||m.code==="EBUSY")&&Date.now()-g<6e4){setTimeout(function(){t.stat(d,function(S,E){S&&S.code==="ENOENT"?f(c,d,y):b(m)})},x),x<100&&(x+=10);return}b&&b(m)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h})(t.rename)),t.read=typeof t.read!="function"?t.read:(function(f){function h(c,d,b,g,x,y){var m;if(y&&typeof y=="function"){var S=0;m=function(E,A,L){if(E&&E.code==="EAGAIN"&&S<10)return S++,f.call(t,c,d,b,g,x,m);y.apply(this,arguments)}}return f.call(t,c,d,b,g,x,m)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h})(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:(function(f){return function(h,c,d,b,g){for(var x=0;;)try{return f.call(t,h,c,d,b,g)}catch(y){if(y.code==="EAGAIN"&&x<10){x++;continue}throw y}}})(t.readSync);function e(f){f.lchmod=function(h,c,d){f.open(h,Dt.O_WRONLY|Dt.O_SYMLINK,c,function(b,g){if(b){d&&d(b);return}f.fchmod(g,c,function(x){f.close(g,function(y){d&&d(x||y)})})})},f.lchmodSync=function(h,c){var d=f.openSync(h,Dt.O_WRONLY|Dt.O_SYMLINK,c),b=!0,g;try{g=f.fchmodSync(d,c),b=!1}finally{if(b)try{f.closeSync(d)}catch{}else f.closeSync(d)}return g}}function r(f){Dt.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(h,c,d,b){f.open(h,Dt.O_SYMLINK,function(g,x){if(g){b&&b(g);return}f.futimes(x,c,d,function(y){f.close(x,function(m){b&&b(y||m)})})})},f.lutimesSync=function(h,c,d){var b=f.openSync(h,Dt.O_SYMLINK),g,x=!0;try{g=f.futimesSync(b,c,d),x=!1}finally{if(x)try{f.closeSync(b)}catch{}else f.closeSync(b)}return g}):f.futimes&&(f.lutimes=function(h,c,d,b){b&&process.nextTick(b)},f.lutimesSync=function(){})}function i(f){return f&&function(h,c,d){return f.call(t,h,c,function(b){u(b)&&(b=null),d&&d.apply(this,arguments)})}}function n(f){return f&&function(h,c){try{return f.call(t,h,c)}catch(d){if(!u(d))throw d}}}function s(f){return f&&function(h,c,d,b){return f.call(t,h,c,d,function(g){u(g)&&(g=null),b&&b.apply(this,arguments)})}}function o(f){return f&&function(h,c,d){try{return f.call(t,h,c,d)}catch(b){if(!u(b))throw b}}}function a(f){return f&&function(h,c,d){typeof c=="function"&&(d=c,c=null);function b(g,x){x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),d&&d.apply(this,arguments)}return c?f.call(t,h,c,b):f.call(t,h,b)}}function l(f){return f&&function(h,c){var d=c?f.call(t,h,c):f.call(t,h);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function u(f){if(!f||f.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var Hc=p((bB,$c)=>{"use strict";var zc=D("stream").Stream;$c.exports=s1;function s1(t){return{ReadStream:e,WriteStream:r};function e(i,n){if(!(this instanceof e))return new e(i,n);zc.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);zc.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 Yc=p((wB,Vc)=>{"use strict";Vc.exports=a1;var o1=Object.getPrototypeOf||function(t){return t.__proto__};function a1(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:o1(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var Wa=p((SB,ja)=>{"use strict";var ne=D("fs"),l1=Gc(),u1=Hc(),f1=Yc(),Qn=D("util"),_e,Jn;typeof Symbol=="function"&&typeof Symbol.for=="function"?(_e=Symbol.for("graceful-fs.queue"),Jn=Symbol.for("graceful-fs.previous")):(_e="___graceful-fs.queue",Jn="___graceful-fs.previous");function h1(){}function Qc(t,e){Object.defineProperty(t,_e,{get:function(){return e}})}var Qt=h1;Qn.debuglog?Qt=Qn.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Qt=function(){var t=Qn.format.apply(Qn,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
7
|
+
GFS4: `),console.error(t)});ne[_e]||(Zc=global[_e]||[],Qc(ne,Zc),ne.close=(function(t){function e(r,i){return t.call(ne,r,function(n){n||Kc(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,Jn,{value:t}),e})(ne.close),ne.closeSync=(function(t){function e(r){t.apply(ne,arguments),Kc()}return Object.defineProperty(e,Jn,{value:t}),e})(ne.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Qt(ne[_e]),D("assert").equal(ne[_e].length,0)}));var Zc;global[_e]||Qc(global,ne[_e]);ja.exports=Fa(f1(ne));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ne.__patched&&(ja.exports=Fa(ne),ne.__patched=!0);function Fa(t){l1(t),t.gracefulify=Fa,t.createReadStream=A,t.createWriteStream=L;var e=t.readFile;t.readFile=r;function r(w,T,R){return typeof T=="function"&&(R=T,T=null),N(w,T,R);function N(G,ue,K,te){return e(G,ue,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?xr([N,[G,ue,K],V,te||Date.now(),Date.now()]):typeof K=="function"&&K.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=n;function n(w,T,R,N){return typeof R=="function"&&(N=R,R=null),G(w,T,R,N);function G(ue,K,te,V,me){return i(ue,K,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,K,te,V],re,me||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(w,T,R,N){return typeof R=="function"&&(N=R,R=null),G(w,T,R,N);function G(ue,K,te,V,me){return s(ue,K,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,K,te,V],re,me||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=l);function l(w,T,R,N){return typeof R=="function"&&(N=R,R=0),G(w,T,R,N);function G(ue,K,te,V,me){return a(ue,K,te,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,K,te,V],re,me||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var u=t.readdir;t.readdir=h;var f=/^v[0-5]\./;function h(w,T,R){typeof T=="function"&&(R=T,T=null);var N=f.test(process.version)?function(K,te,V,me){return u(K,G(K,te,V,me))}:function(K,te,V,me){return u(K,te,G(K,te,V,me))};return N(w,T,R);function G(ue,K,te,V){return function(me,re){me&&(me.code==="EMFILE"||me.code==="ENFILE")?xr([N,[ue,K,te],me,V||Date.now(),Date.now()]):(re&&re.sort&&re.sort(),typeof te=="function"&&te.call(this,me,re))}}}if(process.version.substr(0,4)==="v0.8"){var c=u1(t);y=c.ReadStream,S=c.WriteStream}var d=t.ReadStream;d&&(y.prototype=Object.create(d.prototype),y.prototype.open=m);var b=t.WriteStream;b&&(S.prototype=Object.create(b.prototype),S.prototype.open=E),Object.defineProperty(t,"ReadStream",{get:function(){return y},set:function(w){y=w},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return S},set:function(w){S=w},enumerable:!0,configurable:!0});var g=y;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(w){g=w},enumerable:!0,configurable:!0});var x=S;Object.defineProperty(t,"FileWriteStream",{get:function(){return x},set:function(w){x=w},enumerable:!0,configurable:!0});function y(w,T){return this instanceof y?(d.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function m(){var w=this;O(w.path,w.flags,w.mode,function(T,R){T?(w.autoClose&&w.destroy(),w.emit("error",T)):(w.fd=R,w.emit("open",R),w.read())})}function S(w,T){return this instanceof S?(b.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}function E(){var w=this;O(w.path,w.flags,w.mode,function(T,R){T?(w.destroy(),w.emit("error",T)):(w.fd=R,w.emit("open",R))})}function A(w,T){return new t.ReadStream(w,T)}function L(w,T){return new t.WriteStream(w,T)}var v=t.open;t.open=O;function O(w,T,R,N){return typeof R=="function"&&(N=R,R=null),G(w,T,R,N);function G(ue,K,te,V,me){return v(ue,K,te,function(re,sB){re&&(re.code==="EMFILE"||re.code==="ENFILE")?xr([G,[ue,K,te,V],re,me||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return t}function xr(t){Qt("ENQUEUE",t[0].name,t[1]),ne[_e].push(t),Ba()}var Xn;function Kc(){for(var t=Date.now(),e=0;e<ne[_e].length;++e)ne[_e][e].length>2&&(ne[_e][e][3]=t,ne[_e][e][4]=t);Ba()}function Ba(){if(clearTimeout(Xn),Xn=void 0,ne[_e].length!==0){var t=ne[_e].shift(),e=t[0],r=t[1],i=t[2],n=t[3],s=t[4];if(n===void 0)Qt("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-n>=6e4){Qt("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,i)}else{var a=Date.now()-s,l=Math.max(s-n,1),u=Math.min(l*1.2,100);a>=u?(Qt("RETRY",e.name,r),e.apply(null,r.concat([n]))):ne[_e].push(t)}Xn===void 0&&(Xn=setTimeout(Ba,0))}}});var es=p((EB,Xc)=>{"use strict";var Je=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Je.writable=t=>Je(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Je.readable=t=>Je(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Je.duplex=t=>Je.writable(t)&&Je.readable(t);Je.transform=t=>Je.duplex(t)&&typeof t._transform=="function";Xc.exports=Je});var wi=p((vB,Ua)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Ua.exports={nextTick:c1}:Ua.exports=process;function c1(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 ed=p((xB,Jc)=>{"use strict";var d1={}.toString;Jc.exports=Array.isArray||function(t){return d1.call(t)=="[object Array]"}});var Ga=p((TB,td)=>{"use strict";td.exports=D("stream")});var Si=p((za,id)=>{"use strict";var ts=D("buffer"),pt=ts.Buffer;function rd(t,e){for(var r in t)e[r]=t[r]}pt.from&&pt.alloc&&pt.allocUnsafe&&pt.allocUnsafeSlow?id.exports=ts:(rd(ts,za),za.Buffer=Tr);function Tr(t,e,r){return pt(t,e,r)}rd(pt,Tr);Tr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return pt(t,e,r)};Tr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=pt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};Tr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return pt(t)};Tr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ts.SlowBuffer(t)}});var Ar=p(ve=>{"use strict";function p1(t){return Array.isArray?Array.isArray(t):rs(t)==="[object Array]"}ve.isArray=p1;function g1(t){return typeof t=="boolean"}ve.isBoolean=g1;function y1(t){return t===null}ve.isNull=y1;function m1(t){return t==null}ve.isNullOrUndefined=m1;function _1(t){return typeof t=="number"}ve.isNumber=_1;function b1(t){return typeof t=="string"}ve.isString=b1;function w1(t){return typeof t=="symbol"}ve.isSymbol=w1;function S1(t){return t===void 0}ve.isUndefined=S1;function E1(t){return rs(t)==="[object RegExp]"}ve.isRegExp=E1;function v1(t){return typeof t=="object"&&t!==null}ve.isObject=v1;function x1(t){return rs(t)==="[object Date]"}ve.isDate=x1;function T1(t){return rs(t)==="[object Error]"||t instanceof Error}ve.isError=T1;function A1(t){return typeof t=="function"}ve.isFunction=A1;function R1(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}ve.isPrimitive=R1;ve.isBuffer=D("buffer").Buffer.isBuffer;function rs(t){return Object.prototype.toString.call(t)}});var nd=p((RB,$a)=>{"use strict";typeof Object.create=="function"?$a.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:$a.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 Rr=p((OB,Va)=>{"use strict";try{if(Ha=D("util"),typeof Ha.inherits!="function")throw"";Va.exports=Ha.inherits}catch{Va.exports=nd()}var Ha});var od=p((IB,Ya)=>{"use strict";function O1(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var sd=Si().Buffer,Ei=D("util");function I1(t,e,r){t.copy(e,r)}Ya.exports=(function(){function t(){O1(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},t.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},t.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},t.prototype.concat=function(r){if(this.length===0)return sd.alloc(0);for(var i=sd.allocUnsafe(r>>>0),n=this.head,s=0;n;)I1(n.data,i,s),s+=n.data.length,n=n.next;return i},t})();Ei&&Ei.inspect&&Ei.inspect.custom&&(Ya.exports.prototype[Ei.inspect.custom]=function(){var t=Ei.inspect({length:this.length});return this.constructor.name+" "+t})});var Za=p((DB,ad)=>{"use strict";var is=wi();function D1(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,is.nextTick(ns,this,t)):is.nextTick(ns,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,is.nextTick(ns,r,s)):is.nextTick(ns,r,s):e&&e(s)}),this)}function L1(){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 ns(t,e){t.emit("error",e)}ad.exports={destroy:D1,undestroy:L1}});var ud=p((LB,ld)=>{"use strict";ld.exports=D("util").deprecate});var Qa=p((PB,md)=>{"use strict";var Xt=wi();md.exports=fe;function hd(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Z1(e,t)}}var P1=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Xt.nextTick,Or;fe.WritableState=xi;var cd=Object.create(Ar());cd.inherits=Rr();var N1={deprecate:ud()},dd=Ga(),os=Si().Buffer,C1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function M1(t){return os.from(t)}function k1(t){return os.isBuffer(t)||t instanceof C1}var pd=Za();cd.inherits(fe,dd);function q1(){}function xi(t,e){Or=Or||Jt(),t=t||{};var r=e instanceof Or;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,n=t.writableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=t.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){z1(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 hd(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:N1.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ss;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ss=Function.prototype[Symbol.hasInstance],Object.defineProperty(fe,Symbol.hasInstance,{value:function(t){return ss.call(this,t)?!0:this!==fe?!1:t&&t._writableState instanceof xi}})):ss=function(t){return t instanceof this};function fe(t){if(Or=Or||Jt(),!ss.call(fe,this)&&!(this instanceof Or))return new fe(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)),dd.call(this)}fe.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function F1(t,e){var r=new Error("write after end");t.emit("error",r),Xt.nextTick(e,r)}function B1(t,e,r,i){var n=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!e.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),Xt.nextTick(i,s),n=!1),n}fe.prototype.write=function(t,e,r){var i=this._writableState,n=!1,s=!i.objectMode&&k1(t);return s&&!os.isBuffer(t)&&(t=M1(t)),typeof e=="function"&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof r!="function"&&(r=q1),i.ended?F1(this,r):(s||B1(this,i,t,r))&&(i.pendingcb++,n=W1(this,i,s,t,e,r)),n};fe.prototype.cork=function(){var t=this._writableState;t.corked++};fe.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&gd(this,t))};fe.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this};function j1(t,e,r){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=os.from(e,r)),e}Object.defineProperty(fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function W1(t,e,r,i,n,s){if(!r){var o=j1(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 Ka(t,e,!1,a,i,n,s);return l}function Ka(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 U1(t,e,r,i,n){--e.pendingcb,r?(Xt.nextTick(n,i),Xt.nextTick(vi,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(n(i),t._writableState.errorEmitted=!0,t.emit("error",i),vi(t,e))}function G1(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function z1(t,e){var r=t._writableState,i=r.sync,n=r.writecb;if(G1(r),e)U1(t,r,i,e,n);else{var s=yd(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&gd(t,r),i?P1(fd,t,r,s,n):fd(t,r,s,n)}}function fd(t,e,r,i){r||$1(t,e),e.pendingcb--,i(),vi(t,e)}function $1(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function gd(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,Ka(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 hd(e),e.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,f=r.callback,h=e.objectMode?1:l.length;if(Ka(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}fe.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))};fe.prototype._writev=null;fe.prototype.end=function(t,e,r){var i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||Y1(this,i,r)};function yd(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function H1(t,e){t._final(function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),vi(t,e)})}function V1(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,Xt.nextTick(H1,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function vi(t,e){var r=yd(e);return r&&(V1(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),r}function Y1(t,e,r){e.ending=!0,vi(t,e),r&&(e.finished?Xt.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}function Z1(t,e,r){var i=t.entry;for(t.entry=null;i;){var n=i.callback;e.pendingcb--,n(r),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(fe.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});fe.prototype.destroy=pd.destroy;fe.prototype._undestroy=pd.undestroy;fe.prototype._destroy=function(t,e){this.end(),e(t)}});var Jt=p((NB,Sd)=>{"use strict";var _d=wi(),K1=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};Sd.exports=gt;var bd=Object.create(Ar());bd.inherits=Rr();var wd=el(),Ja=Qa();bd.inherits(gt,wd);for(Xa=K1(Ja.prototype),as=0;as<Xa.length;as++)ls=Xa[as],gt.prototype[ls]||(gt.prototype[ls]=Ja.prototype[ls]);var Xa,ls,as;function gt(t){if(!(this instanceof gt))return new gt(t);wd.call(this,t),Ja.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",Q1)}Object.defineProperty(gt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Q1(){this.allowHalfOpen||this._writableState.ended||_d.nextTick(X1,this)}function X1(t){t.end()}Object.defineProperty(gt.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}});gt.prototype._destroy=function(t,e){this.push(null),this.end(),_d.nextTick(e,t)}});var il=p(vd=>{"use strict";var rl=Si().Buffer,Ed=rl.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 J1(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 ex(t){var e=J1(t);if(typeof e!="string"&&(rl.isEncoding===Ed||!Ed(t)))throw new Error("Unknown encoding: "+t);return e||t}vd.StringDecoder=Ti;function Ti(t){this.encoding=ex(t);var e;switch(this.encoding){case"utf16le":this.text=ox,this.end=ax,e=4;break;case"utf8":this.fillLast=ix,e=4;break;case"base64":this.text=lx,this.end=ux,e=3;break;default:this.write=fx,this.end=hx;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=rl.allocUnsafe(e)}Ti.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||""};Ti.prototype.end=sx;Ti.prototype.text=nx;Ti.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 tl(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function tx(t,e,r){var i=e.length-1;if(i<r)return 0;var n=tl(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=tl(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=tl(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function rx(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 ix(t){var e=this.lastTotal-this.lastNeed,r=rx(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 nx(t,e){var r=tx(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 sx(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function ox(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 ax(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 lx(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 ux(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function fx(t){return t.toString(this.encoding)}function hx(t){return t&&t.length?this.write(t):""}});var el=p((kB,Md)=>{"use strict";var Dr=wi();Md.exports=Q;var cx=ed(),Ai;Q.ReadableState=Dd;var MB=D("events").EventEmitter,Rd=function(t,e){return t.listeners(e).length},ll=Ga(),Ri=Si().Buffer,dx=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function px(t){return Ri.from(t)}function gx(t){return Ri.isBuffer(t)||t instanceof dx}var Od=Object.create(Ar());Od.inherits=Rr();var nl=D("util"),$=void 0;nl&&nl.debuglog?$=nl.debuglog("stream"):$=function(){};var yx=od(),Id=Za(),Ir;Od.inherits(Q,ll);var sl=["error","close","destroy","pause","resume"];function mx(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):cx(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}function Dd(t,e){Ai=Ai||Jt(),t=t||{};var r=e instanceof Ai;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 yx,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Ir||(Ir=il().StringDecoder),this.decoder=new Ir(t.encoding),this.encoding=t.encoding)}function Q(t){if(Ai=Ai||Jt(),!(this instanceof Q))return new Q(t);this._readableState=new Dd(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),ll.call(this)}Object.defineProperty(Q.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Q.prototype.destroy=Id.destroy;Q.prototype._undestroy=Id.undestroy;Q.prototype._destroy=function(t,e){this.push(null),e(t)};Q.prototype.push=function(t,e){var r=this._readableState,i;return r.objectMode?i=!0:typeof t=="string"&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=Ri.from(t,e),e=""),i=!0),Ld(this,t,e,!1,i)};Q.prototype.unshift=function(t){return Ld(this,t,null,!0,!1)};function Ld(t,e,r,i,n){var s=t._readableState;if(e===null)s.reading=!1,Sx(t,s);else{var o;n||(o=_x(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==Ri.prototype&&(e=px(e)),i?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):ol(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?ol(t,s,e,!1):Pd(t,s)):ol(t,s,e,!1))):i||(s.reading=!1)}return bx(s)}function ol(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&&us(t)),Pd(t,e)}function _x(t,e){var r;return!gx(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function bx(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}Q.prototype.isPaused=function(){return this._readableState.flowing===!1};Q.prototype.setEncoding=function(t){return Ir||(Ir=il().StringDecoder),this._readableState.decoder=new Ir(t),this._readableState.encoding=t,this};var xd=8388608;function wx(t){return t>=xd?t=xd:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Td(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=wx(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}Q.prototype.read=function(t){$("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return $("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?al(this):us(this),null;if(t=Td(t,e),t===0&&e.ended)return e.length===0&&al(this),null;var i=e.needReadable;$("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,$("length less than watermark",i)),e.ended||e.reading?(i=!1,$("reading or ended",i)):i&&($("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Td(r,e)));var n;return t>0?n=Nd(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&&al(this)),n!==null&&this.emit("data",n),n};function Sx(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,us(t)}}function us(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||($("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?Dr.nextTick(Ad,t):Ad(t))}function Ad(t){$("emit readable"),t.emit("readable"),ul(t)}function Pd(t,e){e.readingMore||(e.readingMore=!0,Dr.nextTick(Ex,t,e))}function Ex(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&($("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}Q.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))};Q.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,$("pipe count=%d opts=%j",i.pipesCount,e);var n=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=n?a:x;i.endEmitted?Dr.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(y,m){$("onunpipe"),y===r&&m&&m.hasUnpiped===!1&&(m.hasUnpiped=!0,f())}function a(){$("onend"),t.end()}var l=vx(r);t.on("drain",l);var u=!1;function f(){$("cleanup"),t.removeListener("close",b),t.removeListener("finish",g),t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",x),r.removeListener("data",c),u=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}var h=!1;r.on("data",c);function c(y){$("ondata"),h=!1;var m=t.write(y);m===!1&&!h&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&Cd(i.pipes,t)!==-1)&&!u&&($("false write response, pause",i.awaitDrain),i.awaitDrain++,h=!0),r.pause())}function d(y){$("onerror",y),x(),t.removeListener("error",d),Rd(t,"error")===0&&t.emit("error",y)}mx(t,"error",d);function b(){t.removeListener("finish",g),x()}t.once("close",b);function g(){$("onfinish"),t.removeListener("close",b),x()}t.once("finish",g);function x(){$("unpipe"),r.unpipe(t)}return t.emit("pipe",r),i.flowing||($("pipe resume"),r.resume()),t};function vx(t){return function(){var e=t._readableState;$("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&Rd(t,"data")&&(e.flowing=!0,ul(t))}}Q.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r),this);if(!t){var i=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<n;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Cd(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r),this)};Q.prototype.on=function(t,e){var r=ll.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&&us(this):Dr.nextTick(xx,this))}return r};Q.prototype.addListener=Q.prototype.on;function xx(t){$("readable nexttick read 0"),t.read(0)}Q.prototype.resume=function(){var t=this._readableState;return t.flowing||($("resume"),t.flowing=!0,Tx(this,t)),this};function Tx(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Dr.nextTick(Ax,t,e))}function Ax(t,e){e.reading||($("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),ul(t),e.flowing&&!e.reading&&t.read(0)}Q.prototype.pause=function(){return $("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&($("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function ul(t){var e=t._readableState;for($("flow",e.flowing);e.flowing&&t.read()!==null;);}Q.prototype.wrap=function(t){var e=this,r=this._readableState,i=!1;t.on("end",function(){if($("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if($("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=e.push(o);a||(i=!0,t.pause())}});for(var n in t)this[n]===void 0&&typeof t[n]=="function"&&(this[n]=(function(o){return function(){return t[o].apply(t,arguments)}})(n));for(var s=0;s<sl.length;s++)t.on(sl[s],this.emit.bind(this,sl[s]));return this._read=function(o){$("wrapped _read",o),i&&(i=!1,t.resume())},this};Object.defineProperty(Q.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Q._fromList=Nd;function Nd(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=Rx(t,e.buffer,e.decoder),r}function Rx(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?Ox(t,e):Ix(t,e),i}function Ox(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 Ix(t,e){var r=Ri.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 al(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,Dr.nextTick(Dx,e,t))}function Dx(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function Cd(t,e){for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}});var fl=p((qB,Fd)=>{"use strict";Fd.exports=yt;var fs=Jt(),qd=Object.create(Ar());qd.inherits=Rr();qd.inherits(yt,fs);function Lx(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 yt(t){if(!(this instanceof yt))return new yt(t);fs.call(this,t),this._transformState={afterTransform:Lx.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",Px)}function Px(){var t=this;typeof this._flush=="function"?this._flush(function(e,r){kd(t,e,r)}):kd(this,null,null)}yt.prototype.push=function(t,e){return this._transformState.needTransform=!1,fs.prototype.push.call(this,t,e)};yt.prototype._transform=function(t,e,r){throw new Error("_transform() is not implemented")};yt.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)}};yt.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};yt.prototype._destroy=function(t,e){var r=this;fs.prototype._destroy.call(this,t,function(i){e(i),r.emit("close")})};function kd(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 Ud=p((FB,Wd)=>{"use strict";Wd.exports=Oi;var Bd=fl(),jd=Object.create(Ar());jd.inherits=Rr();jd.inherits(Oi,Bd);function Oi(t){if(!(this instanceof Oi))return new Oi(t);Bd.call(this,t)}Oi.prototype._transform=function(t,e,r){r(null,t)}});var Gd=p((be,hs)=>{"use strict";var et=D("stream");process.env.READABLE_STREAM==="disable"&&et?(hs.exports=et,be=hs.exports=et.Readable,be.Readable=et.Readable,be.Writable=et.Writable,be.Duplex=et.Duplex,be.Transform=et.Transform,be.PassThrough=et.PassThrough,be.Stream=et):(be=hs.exports=el(),be.Stream=et||be,be.Readable=be,be.Writable=Qa(),be.Duplex=Jt(),be.Transform=fl(),be.PassThrough=Ud())});var $d=p((BB,zd)=>{"use strict";zd.exports=Gd().PassThrough});var Zd=p((jB,Yd)=>{"use strict";var Hd=D("util"),ps=$d();Yd.exports={Readable:cs,Writable:ds};Hd.inherits(cs,ps);Hd.inherits(ds,ps);function Vd(t,e,r){t[e]=function(){return delete t[e],r.apply(this,arguments),this[e].apply(this,arguments)}}function cs(t,e){if(!(this instanceof cs))return new cs(t,e);ps.call(this,e),Vd(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 ds(t,e){if(!(this instanceof ds))return new ds(t,e);ps.call(this,e),Vd(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 hl=p((WB,Kd)=>{"use strict";Kd.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 cl=p((UB,Qd)=>{"use strict";function Nx(t){return t}Qd.exports=Nx});var Jd=p((GB,Xd)=>{"use strict";function Cx(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)}Xd.exports=Cx});var rp=p((zB,tp)=>{"use strict";var Mx=Jd(),ep=Math.max;function kx(t,e,r){return e=ep(e===void 0?t.length-1:e,0),function(){for(var i=arguments,n=-1,s=ep(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),Mx(t,this,a)}}tp.exports=kx});var np=p(($B,ip)=>{"use strict";function qx(t){return function(){return t}}ip.exports=qx});var dl=p((HB,sp)=>{"use strict";var Fx=typeof global=="object"&&global&&global.Object===Object&&global;sp.exports=Fx});var Lr=p((VB,op)=>{"use strict";var Bx=dl(),jx=typeof self=="object"&&self&&self.Object===Object&&self,Wx=Bx||jx||Function("return this")();op.exports=Wx});var gs=p((YB,ap)=>{"use strict";var Ux=Lr(),Gx=Ux.Symbol;ap.exports=Gx});var hp=p((ZB,fp)=>{"use strict";var lp=gs(),up=Object.prototype,zx=up.hasOwnProperty,$x=up.toString,Ii=lp?lp.toStringTag:void 0;function Hx(t){var e=zx.call(t,Ii),r=t[Ii];try{t[Ii]=void 0;var i=!0}catch{}var n=$x.call(t);return i&&(e?t[Ii]=r:delete t[Ii]),n}fp.exports=Hx});var dp=p((KB,cp)=>{"use strict";var Vx=Object.prototype,Yx=Vx.toString;function Zx(t){return Yx.call(t)}cp.exports=Zx});var Di=p((QB,yp)=>{"use strict";var pp=gs(),Kx=hp(),Qx=dp(),Xx="[object Null]",Jx="[object Undefined]",gp=pp?pp.toStringTag:void 0;function eT(t){return t==null?t===void 0?Jx:Xx:gp&&gp in Object(t)?Kx(t):Qx(t)}yp.exports=eT});var Li=p((XB,mp)=>{"use strict";function tT(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}mp.exports=tT});var pl=p((JB,_p)=>{"use strict";var rT=Di(),iT=Li(),nT="[object AsyncFunction]",sT="[object Function]",oT="[object GeneratorFunction]",aT="[object Proxy]";function lT(t){if(!iT(t))return!1;var e=rT(t);return e==sT||e==oT||e==nT||e==aT}_p.exports=lT});var wp=p((ej,bp)=>{"use strict";var uT=Lr(),fT=uT["__core-js_shared__"];bp.exports=fT});var vp=p((tj,Ep)=>{"use strict";var gl=wp(),Sp=(function(){var t=/[^.]+$/.exec(gl&&gl.keys&&gl.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function hT(t){return!!Sp&&Sp in t}Ep.exports=hT});var Tp=p((rj,xp)=>{"use strict";var cT=Function.prototype,dT=cT.toString;function pT(t){if(t!=null){try{return dT.call(t)}catch{}try{return t+""}catch{}}return""}xp.exports=pT});var Rp=p((ij,Ap)=>{"use strict";var gT=pl(),yT=vp(),mT=Li(),_T=Tp(),bT=/[\\^$.*+?()[\]{}|]/g,wT=/^\[object .+?Constructor\]$/,ST=Function.prototype,ET=Object.prototype,vT=ST.toString,xT=ET.hasOwnProperty,TT=RegExp("^"+vT.call(xT).replace(bT,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function AT(t){if(!mT(t)||yT(t))return!1;var e=gT(t)?TT:wT;return e.test(_T(t))}Ap.exports=AT});var Ip=p((nj,Op)=>{"use strict";function RT(t,e){return t?.[e]}Op.exports=RT});var Pi=p((sj,Dp)=>{"use strict";var OT=Rp(),IT=Ip();function DT(t,e){var r=IT(t,e);return OT(r)?r:void 0}Dp.exports=DT});var Pp=p((oj,Lp)=>{"use strict";var LT=Pi(),PT=(function(){try{var t=LT(Object,"defineProperty");return t({},"",{}),t}catch{}})();Lp.exports=PT});var Mp=p((aj,Cp)=>{"use strict";var NT=np(),Np=Pp(),CT=cl(),MT=Np?function(t,e){return Np(t,"toString",{configurable:!0,enumerable:!1,value:NT(e),writable:!0})}:CT;Cp.exports=MT});var qp=p((lj,kp)=>{"use strict";var kT=800,qT=16,FT=Date.now;function BT(t){var e=0,r=0;return function(){var i=FT(),n=qT-(i-r);if(r=i,n>0){if(++e>=kT)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}kp.exports=BT});var Bp=p((uj,Fp)=>{"use strict";var jT=Mp(),WT=qp(),UT=WT(jT);Fp.exports=UT});var ys=p((fj,jp)=>{"use strict";var GT=cl(),zT=rp(),$T=Bp();function HT(t,e){return $T(zT(t,e,GT),t+"")}jp.exports=HT});var ms=p((hj,Wp)=>{"use strict";function VT(t,e){return t===e||t!==t&&e!==e}Wp.exports=VT});var yl=p((cj,Up)=>{"use strict";var YT=9007199254740991;function ZT(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=YT}Up.exports=ZT});var _s=p((dj,Gp)=>{"use strict";var KT=pl(),QT=yl();function XT(t){return t!=null&&QT(t.length)&&!KT(t)}Gp.exports=XT});var ml=p((pj,zp)=>{"use strict";var JT=9007199254740991,eA=/^(?:0|[1-9]\d*)$/;function tA(t,e){var r=typeof t;return e=e??JT,!!e&&(r=="number"||r!="symbol"&&eA.test(t))&&t>-1&&t%1==0&&t<e}zp.exports=tA});var Hp=p((gj,$p)=>{"use strict";var rA=ms(),iA=_s(),nA=ml(),sA=Li();function oA(t,e,r){if(!sA(r))return!1;var i=typeof e;return(i=="number"?iA(r)&&nA(e,r.length):i=="string"&&e in r)?rA(r[e],t):!1}$p.exports=oA});var Yp=p((yj,Vp)=>{"use strict";function aA(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i}Vp.exports=aA});var Pr=p((mj,Zp)=>{"use strict";function lA(t){return t!=null&&typeof t=="object"}Zp.exports=lA});var Qp=p((_j,Kp)=>{"use strict";var uA=Di(),fA=Pr(),hA="[object Arguments]";function cA(t){return fA(t)&&uA(t)==hA}Kp.exports=cA});var _l=p((bj,eg)=>{"use strict";var Xp=Qp(),dA=Pr(),Jp=Object.prototype,pA=Jp.hasOwnProperty,gA=Jp.propertyIsEnumerable,yA=Xp((function(){return arguments})())?Xp:function(t){return dA(t)&&pA.call(t,"callee")&&!gA.call(t,"callee")};eg.exports=yA});var bl=p((wj,tg)=>{"use strict";var mA=Array.isArray;tg.exports=mA});var ig=p((Sj,rg)=>{"use strict";function _A(){return!1}rg.exports=_A});var ag=p((Ni,Nr)=>{"use strict";var bA=Lr(),wA=ig(),og=typeof Ni=="object"&&Ni&&!Ni.nodeType&&Ni,ng=og&&typeof Nr=="object"&&Nr&&!Nr.nodeType&&Nr,SA=ng&&ng.exports===og,sg=SA?bA.Buffer:void 0,EA=sg?sg.isBuffer:void 0,vA=EA||wA;Nr.exports=vA});var ug=p((Ej,lg)=>{"use strict";var xA=Di(),TA=yl(),AA=Pr(),RA="[object Arguments]",OA="[object Array]",IA="[object Boolean]",DA="[object Date]",LA="[object Error]",PA="[object Function]",NA="[object Map]",CA="[object Number]",MA="[object Object]",kA="[object RegExp]",qA="[object Set]",FA="[object String]",BA="[object WeakMap]",jA="[object ArrayBuffer]",WA="[object DataView]",UA="[object Float32Array]",GA="[object Float64Array]",zA="[object Int8Array]",$A="[object Int16Array]",HA="[object Int32Array]",VA="[object Uint8Array]",YA="[object Uint8ClampedArray]",ZA="[object Uint16Array]",KA="[object Uint32Array]",X={};X[UA]=X[GA]=X[zA]=X[$A]=X[HA]=X[VA]=X[YA]=X[ZA]=X[KA]=!0;X[RA]=X[OA]=X[jA]=X[IA]=X[WA]=X[DA]=X[LA]=X[PA]=X[NA]=X[CA]=X[MA]=X[kA]=X[qA]=X[FA]=X[BA]=!1;function QA(t){return AA(t)&&TA(t.length)&&!!X[xA(t)]}lg.exports=QA});var wl=p((vj,fg)=>{"use strict";function XA(t){return function(e){return t(e)}}fg.exports=XA});var cg=p((Ci,Cr)=>{"use strict";var JA=dl(),hg=typeof Ci=="object"&&Ci&&!Ci.nodeType&&Ci,Mi=hg&&typeof Cr=="object"&&Cr&&!Cr.nodeType&&Cr,eR=Mi&&Mi.exports===hg,Sl=eR&&JA.process,tR=(function(){try{var t=Mi&&Mi.require&&Mi.require("util").types;return t||Sl&&Sl.binding&&Sl.binding("util")}catch{}})();Cr.exports=tR});var yg=p((xj,gg)=>{"use strict";var rR=ug(),iR=wl(),dg=cg(),pg=dg&&dg.isTypedArray,nR=pg?iR(pg):rR;gg.exports=nR});var _g=p((Tj,mg)=>{"use strict";var sR=Yp(),oR=_l(),aR=bl(),lR=ag(),uR=ml(),fR=yg(),hR=Object.prototype,cR=hR.hasOwnProperty;function dR(t,e){var r=aR(t),i=!r&&oR(t),n=!r&&!i&&lR(t),s=!r&&!i&&!n&&fR(t),o=r||i||n||s,a=o?sR(t.length,String):[],l=a.length;for(var u in t)(e||cR.call(t,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||uR(u,l)))&&a.push(u);return a}mg.exports=dR});var wg=p((Aj,bg)=>{"use strict";var pR=Object.prototype;function gR(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||pR;return t===r}bg.exports=gR});var Eg=p((Rj,Sg)=>{"use strict";function yR(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}Sg.exports=yR});var xg=p((Oj,vg)=>{"use strict";var mR=Li(),_R=wg(),bR=Eg(),wR=Object.prototype,SR=wR.hasOwnProperty;function ER(t){if(!mR(t))return bR(t);var e=_R(t),r=[];for(var i in t)i=="constructor"&&(e||!SR.call(t,i))||r.push(i);return r}vg.exports=ER});var Ag=p((Ij,Tg)=>{"use strict";var vR=_g(),xR=xg(),TR=_s();function AR(t){return TR(t)?vR(t,!0):xR(t)}Tg.exports=AR});var Ig=p((Dj,Og)=>{"use strict";var RR=ys(),OR=ms(),IR=Hp(),DR=Ag(),Rg=Object.prototype,LR=Rg.hasOwnProperty,PR=RR(function(t,e){t=Object(t);var r=-1,i=e.length,n=i>2?e[2]:void 0;for(n&&IR(e[0],e[1],n)&&(i=1);++r<i;)for(var s=e[r],o=DR(s),a=-1,l=o.length;++a<l;){var u=o[a],f=t[u];(f===void 0||OR(f,Rg[u])&&!LR.call(t,u))&&(t[u]=s[u])}return t});Og.exports=PR});var ie=p((Lj,Dg)=>{"use strict";var El=class extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let r="";for(let i=0;i<e.length;i++)r+=` ${e[i].stack}
|
|
8
|
+
`;super(r),this.name="AggregateError",this.errors=e}};Dg.exports={AggregateError:El,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 vl=p((Pj,Lg)=>{"use strict";Lg.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,i]){let n=e.shift();return i==="f"?n.toFixed(6):i==="j"?JSON.stringify(n):i==="s"&&typeof n=="object"?`${n.constructor!==Object?n.constructor.name:""} {}`.trim():n.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var xe=p((Nj,Cg)=>{"use strict";var{format:NR,inspect:bs}=vl(),{AggregateError:CR}=ie(),MR=globalThis.AggregateError||CR,kR=Symbol("kIsNodeError"),qR=["string","function","number","object","Function","Object","boolean","bigint","symbol"],FR=/^([A-Z][a-z0-9]*)+$/,BR="__node_internal_",ws={};function er(t,e){if(!t)throw new ws.ERR_INTERNAL_ASSERTION(e)}function Pg(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 jR(t,e,r){if(typeof e=="function")return er(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let i=(e.match(/%[dfijoOs]/g)||[]).length;return er(i===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${i}).`),r.length===0?e:NR(e,...r)}function we(t,e,r){r||(r=Error);class i extends r{constructor(...s){super(jR(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[kR]=!0,ws[t]=i}function Ng(t){let e=BR+t.name;return Object.defineProperty(t,"name",{value:e}),t}function WR(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new MR([e,t],e.message);return r.code=e.code,r}return t||e}var xl=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new ws.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};we("ERR_ASSERTION","%s",Error);we("ERR_INVALID_ARG_TYPE",(t,e,r)=>{er(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let i="The ";t.endsWith(" argument")?i+=`${t} `:i+=`"${t}" ${t.includes(".")?"property":"argument"} `,i+="must be ";let n=[],s=[],o=[];for(let l of e)er(typeof l=="string","All expected entries have to be of type string"),qR.includes(l)?n.push(l.toLowerCase()):FR.test(l)?s.push(l):(er(l!=="object",'The value "object" should be written as "Object"'),o.push(l));if(s.length>0){let l=n.indexOf("object");l!==-1&&(n.splice(n,l,1),s.push("Object"))}if(n.length>0){switch(n.length){case 1:i+=`of type ${n[0]}`;break;case 2:i+=`one of type ${n[0]} or ${n[1]}`;break;default:{let l=n.pop();i+=`one of type ${n.join(", ")}, or ${l}`}}(s.length>0||o.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();i+=`an instance of ${s.join(", ")}, or ${l}`}}o.length>0&&(i+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(i+="an "),i+=`${o[0]}`;break;case 2:i+=`one of ${o[0]} or ${o[1]}`;break;default:{let l=o.pop();i+=`one of ${o.join(", ")}, or ${l}`}}if(r==null)i+=`. Received ${r}`;else if(typeof r=="function"&&r.name)i+=`. Received function ${r.name}`;else if(typeof r=="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)i+=`. Received an instance of ${r.constructor.name}`;else{let l=bs(r,{depth:-1});i+=`. Received ${l}`}}else{let l=bs(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),i+=`. Received type ${typeof r} (${l})`}return i},TypeError);we("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let i=bs(e);return i.length>128&&(i=i.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${i}`},TypeError);we("ERR_INVALID_RETURN_VALUE",(t,e,r)=>{var i;let n=r!=null&&(i=r.constructor)!==null&&i!==void 0&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the "${e}" function but got ${n}.`},TypeError);we("ERR_MISSING_ARGS",(...t)=>{er(t.length>0,"At least one arg needs to be specified");let e,r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(i=>`"${i}"`).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{let i=t.pop();e+=`The ${t.join(", ")}, and ${i} arguments`}break}return`${e} must be specified`},TypeError);we("ERR_OUT_OF_RANGE",(t,e,r)=>{er(e,'Missing "range" argument');let i;if(Number.isInteger(r)&&Math.abs(r)>2**32)i=Pg(String(r));else if(typeof r=="bigint"){i=String(r);let n=BigInt(2)**BigInt(32);(r>n||r<-n)&&(i=Pg(i)),i+="n"}else i=bs(r);return`The value of "${t}" is out of range. It must be ${e}. Received ${i}`},RangeError);we("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);we("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);we("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);we("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);we("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);we("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);we("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);we("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);we("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);we("ERR_STREAM_WRITE_AFTER_END","write after end",Error);we("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);Cg.exports={AbortError:xl,aggregateTwoErrors:Ng(WR),hideStackFrames:Ng,codes:ws}});var zg=p((Fi,qi)=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});var jg=new WeakMap,Tl=new WeakMap;function J(t){let e=jg.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}function Mg(t){if(t.passiveListener!=null){typeof console<"u"&&typeof console.error=="function"&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener);return}t.event.cancelable&&(t.canceled=!0,typeof t.event.preventDefault=="function"&&t.event.preventDefault())}function Mr(t,e){jg.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,Wg(n))}}Mr.prototype={get type(){return J(this).event.type},get target(){return J(this).eventTarget},get currentTarget(){return J(this).currentTarget},composedPath(){let t=J(this).currentTarget;return t==null?[]:[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return J(this).eventPhase},stopPropagation(){let t=J(this);t.stopped=!0,typeof t.event.stopPropagation=="function"&&t.event.stopPropagation()},stopImmediatePropagation(){let t=J(this);t.stopped=!0,t.immediateStopped=!0,typeof t.event.stopImmediatePropagation=="function"&&t.event.stopImmediatePropagation()},get bubbles(){return!!J(this).event.bubbles},get cancelable(){return!!J(this).event.cancelable},preventDefault(){Mg(J(this))},get defaultPrevented(){return J(this).canceled},get composed(){return!!J(this).event.composed},get timeStamp(){return J(this).timeStamp},get srcElement(){return J(this).eventTarget},get cancelBubble(){return J(this).stopped},set cancelBubble(t){if(!t)return;let e=J(this);e.stopped=!0,typeof e.event.cancelBubble=="boolean"&&(e.event.cancelBubble=!0)},get returnValue(){return!J(this).canceled},set returnValue(t){t||Mg(J(this))},initEvent(){}};Object.defineProperty(Mr.prototype,"constructor",{value:Mr,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(Mr.prototype,window.Event.prototype),Tl.set(window.Event.prototype,Mr));function Wg(t){return{get(){return J(this).event[t]},set(e){J(this).event[t]=e},configurable:!0,enumerable:!0}}function UR(t){return{value(){let e=J(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function GR(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?UR(s):Wg(s))}}return i}function Ug(t){if(t==null||t===Object.prototype)return Mr;let e=Tl.get(t);return e==null&&(e=GR(Ug(Object.getPrototypeOf(t)),t),Tl.set(t,e)),e}function zR(t,e){let r=Ug(Object.getPrototypeOf(e));return new r(t,e)}function $R(t){return J(t).immediateStopped}function HR(t,e){J(t).eventPhase=e}function VR(t,e){J(t).currentTarget=e}function kg(t,e){J(t).passiveListener=e}var Gg=new WeakMap,qg=1,Fg=2,Ss=3;function Es(t){return t!==null&&typeof t=="object"}function ki(t){let e=Gg.get(t);if(e==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function YR(t){return{get(){let r=ki(this).get(t);for(;r!=null;){if(r.listenerType===Ss)return r.listener;r=r.next}return null},set(e){typeof e!="function"&&!Es(e)&&(e=null);let r=ki(this),i=null,n=r.get(t);for(;n!=null;)n.listenerType===Ss?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:Ss,passive:!1,once:!1,next:null};i===null?r.set(t,s):i.next=s}},configurable:!0,enumerable:!0}}function Al(t,e){Object.defineProperty(t,`on${e}`,YR(e))}function Bg(t){function e(){He.call(this)}e.prototype=Object.create(He.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(let r=0;r<t.length;++r)Al(e.prototype,t[r]);return e}function He(){if(this instanceof He){Gg.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return Bg(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 Bg(t)}throw new TypeError("Cannot call a class as a function")}He.prototype={addEventListener(t,e,r){if(e==null)return;if(typeof e!="function"&&!Es(e))throw new TypeError("'listener' should be a function or an object.");let i=ki(this),n=Es(r),o=(n?!!r.capture:!!r)?qg:Fg,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=ki(this),s=(Es(r)?!!r.capture:!!r)?qg:Fg,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=ki(this),r=t.type,i=e.get(r);if(i==null)return!0;let n=zR(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,kg(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!==Ss&&typeof i.listener.handleEvent=="function"&&i.listener.handleEvent(n);if($R(n))break;i=i.next}return kg(n,null),HR(n,0),VR(n,null),!n.defaultPrevented}};Object.defineProperty(He.prototype,"constructor",{value:He,configurable:!0,writable:!0});typeof window<"u"&&typeof window.EventTarget<"u"&&Object.setPrototypeOf(He.prototype,window.EventTarget.prototype);Fi.defineEventAttribute=Al;Fi.EventTarget=He;Fi.default=He;qi.exports=He;qi.exports.EventTarget=qi.exports.default=He;qi.exports.defineEventAttribute=Al});var kr=p((ji,Bi)=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});var Rl=zg(),Lt=class extends Rl.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=vs.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}};Rl.defineEventAttribute(Lt.prototype,"abort");function ZR(){let t=Object.create(Lt.prototype);return Rl.EventTarget.call(t),vs.set(t,!1),t}function KR(t){vs.get(t)===!1&&(vs.set(t,!0),t.dispatchEvent({type:"abort"}))}var vs=new WeakMap;Object.defineProperties(Lt.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Lt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var Pt=class{constructor(){Hg.set(this,ZR())}get signal(){return $g(this)}abort(){KR($g(this))}},Hg=new WeakMap;function $g(t){let e=Hg.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(Pt.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Pt.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});ji.AbortController=Pt;ji.AbortSignal=Lt;ji.default=Pt;Bi.exports=Pt;Bi.exports.AbortController=Bi.exports.default=Pt;Bi.exports.AbortSignal=Lt});var Oe=p((Cj,Il)=>{"use strict";var QR=D("buffer"),{format:XR,inspect:JR}=vl(),{codes:{ERR_INVALID_ARG_TYPE:Ol}}=xe(),{kResistStopPropagation:eO,AggregateError:tO,SymbolDispose:rO}=ie(),iO=globalThis.AbortSignal||kr().AbortSignal,nO=globalThis.AbortController||kr().AbortController,sO=Object.getPrototypeOf(async function(){}).constructor,Vg=globalThis.Blob||QR.Blob,oO=typeof Vg<"u"?function(e){return e instanceof Vg}:function(e){return!1},Yg=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Ol(e,"AbortSignal",t)},aO=(t,e)=>{if(typeof t!="function")throw new Ol(e,"Function",t)};Il.exports={AggregateError:tO,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:XR,inspect:JR,types:{isAsyncFunction(t){return t instanceof sO},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:oO,deprecate(t,e){return t},addAbortListener:D("events").addAbortListener||function(e,r){if(e===void 0)throw new Ol("signal","AbortSignal",e);Yg(e,"signal"),aO(r,"listener");let i;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[eO]:!0}),i=()=>{e.removeEventListener("abort",r)}),{__proto__:null,[rO](){var n;(n=i)===null||n===void 0||n()}}},AbortSignalAny:iO.any||function(e){if(e.length===1)return e[0];let r=new nO,i=()=>r.abort();return e.forEach(n=>{Yg(n,"signals"),n.addEventListener("abort",i,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(n=>n.removeEventListener("abort",i))},{once:!0}),r.signal}};Il.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var Fr=p((Mj,ny)=>{"use strict";var{ArrayIsArray:Ll,ArrayPrototypeIncludes:Xg,ArrayPrototypeJoin:Jg,ArrayPrototypeMap:lO,NumberIsInteger:Pl,NumberIsNaN:uO,NumberMAX_SAFE_INTEGER:fO,NumberMIN_SAFE_INTEGER:hO,NumberParseInt:cO,ObjectPrototypeHasOwnProperty:dO,RegExpPrototypeExec:ey,String:pO,StringPrototypeToUpperCase:gO,StringPrototypeTrim:yO}=ie(),{hideStackFrames:Be,codes:{ERR_SOCKET_BAD_PORT:mO,ERR_INVALID_ARG_TYPE:Te,ERR_INVALID_ARG_VALUE:qr,ERR_OUT_OF_RANGE:tr,ERR_UNKNOWN_SIGNAL:Zg}}=xe(),{normalizeEncoding:_O}=Oe(),{isAsyncFunction:bO,isArrayBufferView:wO}=Oe().types,Kg={};function SO(t){return t===(t|0)}function EO(t){return t===t>>>0}var vO=/^[0-7]+$/,xO="must be a 32-bit unsigned integer or an octal string";function TO(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(ey(vO,t)===null)throw new qr(e,t,xO);t=cO(t,8)}return ty(t,e),t}var AO=Be((t,e,r=hO,i=fO)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Pl(t))throw new tr(e,"an integer",t);if(t<r||t>i)throw new tr(e,`>= ${r} && <= ${i}`,t)}),RO=Be((t,e,r=-2147483648,i=2147483647)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Pl(t))throw new tr(e,"an integer",t);if(t<r||t>i)throw new tr(e,`>= ${r} && <= ${i}`,t)}),ty=Be((t,e,r=!1)=>{if(typeof t!="number")throw new Te(e,"number",t);if(!Pl(t))throw new tr(e,"an integer",t);let i=r?1:0,n=4294967295;if(t<i||t>n)throw new tr(e,`>= ${i} && <= ${n}`,t)});function Nl(t,e){if(typeof t!="string")throw new Te(e,"string",t)}function OO(t,e,r=void 0,i){if(typeof t!="number")throw new Te(e,"number",t);if(r!=null&&t<r||i!=null&&t>i||(r!=null||i!=null)&&uO(t))throw new tr(e,`${r!=null?`>= ${r}`:""}${r!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,t)}var IO=Be((t,e,r)=>{if(!Xg(r,t)){let n="must be one of: "+Jg(lO(r,s=>typeof s=="string"?`'${s}'`:pO(s)),", ");throw new qr(e,t,n)}});function ry(t,e){if(typeof t!="boolean")throw new Te(e,"boolean",t)}function Dl(t,e,r){return t==null||!dO(t,e)?r:t[e]}var DO=Be((t,e,r=null)=>{let i=Dl(r,"allowArray",!1),n=Dl(r,"allowFunction",!1);if(!Dl(r,"nullable",!1)&&t===null||!i&&Ll(t)||typeof t!="object"&&(!n||typeof t!="function"))throw new Te(e,"Object",t)}),LO=Be((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new Te(e,"a dictionary",t)}),xs=Be((t,e,r=0)=>{if(!Ll(t))throw new Te(e,"Array",t);if(t.length<r){let i=`must be longer than ${r}`;throw new qr(e,t,i)}});function PO(t,e){xs(t,e);for(let r=0;r<t.length;r++)Nl(t[r],`${e}[${r}]`)}function NO(t,e){xs(t,e);for(let r=0;r<t.length;r++)ry(t[r],`${e}[${r}]`)}function CO(t,e){xs(t,e);for(let r=0;r<t.length;r++){let i=t[r],n=`${e}[${r}]`;if(i==null)throw new Te(n,"AbortSignal",i);iy(i,n)}}function MO(t,e="signal"){if(Nl(t,e),Kg[t]===void 0)throw Kg[gO(t)]!==void 0?new Zg(t+" (signals must use all capital letters)"):new Zg(t)}var kO=Be((t,e="buffer")=>{if(!wO(t))throw new Te(e,["Buffer","TypedArray","DataView"],t)});function qO(t,e){let r=_O(e),i=t.length;if(r==="hex"&&i%2!==0)throw new qr("encoding",e,`is invalid for data of length ${i}`)}function FO(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&yO(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new mO(e,t,r);return t|0}var iy=Be((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Te(e,"AbortSignal",t)}),BO=Be((t,e)=>{if(typeof t!="function")throw new Te(e,"Function",t)}),jO=Be((t,e)=>{if(typeof t!="function"||bO(t))throw new Te(e,"Function",t)}),WO=Be((t,e)=>{if(t!==void 0)throw new Te(e,"undefined",t)});function UO(t,e,r){if(!Xg(r,t))throw new Te(e,`('${Jg(r,"|")}')`,t)}var GO=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Qg(t,e){if(typeof t>"u"||!ey(GO,t))throw new qr(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function zO(t){if(typeof t=="string")return Qg(t,"hints"),t;if(Ll(t)){let e=t.length,r="";if(e===0)return r;for(let i=0;i<e;i++){let n=t[i];Qg(n,"hints"),r+=n,i!==e-1&&(r+=", ")}return r}throw new qr("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}ny.exports={isInt32:SO,isUint32:EO,parseFileMode:TO,validateArray:xs,validateStringArray:PO,validateBooleanArray:NO,validateAbortSignalArray:CO,validateBoolean:ry,validateBuffer:kO,validateDictionary:LO,validateEncoding:qO,validateFunction:BO,validateInt32:RO,validateInteger:AO,validateNumber:OO,validateObject:DO,validateOneOf:IO,validatePlainFunction:jO,validatePort:FO,validateSignalName:MO,validateString:Nl,validateUint32:ty,validateUndefined:WO,validateUnion:UO,validateAbortSignal:iy,validateLinkHeaderValue:zO}});var Nt=p((kj,sy)=>{"use strict";sy.exports=global.process});var rt=p((qj,wy)=>{"use strict";var{SymbolAsyncIterator:oy,SymbolIterator:ay,SymbolFor:rr}=ie(),ly=rr("nodejs.stream.destroyed"),uy=rr("nodejs.stream.errored"),Cl=rr("nodejs.stream.readable"),Ml=rr("nodejs.stream.writable"),fy=rr("nodejs.stream.disturbed"),$O=rr("nodejs.webstream.isClosedPromise"),HO=rr("nodejs.webstream.controllerErrorFunction");function Ts(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 As(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 VO(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}function tt(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function hy(t){return!!(t&&!tt(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function cy(t){return!!(t&&!tt(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function dy(t){return!!(t&&!tt(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function YO(t){return hy(t)||cy(t)||dy(t)}function ZO(t,e){return t==null?!1:e===!0?typeof t[oy]=="function":e===!1?typeof t[ay]=="function":typeof t[oy]=="function"||typeof t[ay]=="function"}function Rs(t){if(!tt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!!(t.destroyed||t[ly]||i!=null&&i.destroyed)}function py(t){if(!As(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 KO(t,e){if(!As(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 QO(t){if(!Ts(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 gy(t,e){if(!Ts(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 yy(t){return t&&t[Cl]!=null?t[Cl]:typeof t?.readable!="boolean"?null:Rs(t)?!1:Ts(t)&&t.readable&&!gy(t)}function my(t){return t&&t[Ml]!=null?t[Ml]:typeof t?.writable!="boolean"?null:Rs(t)?!1:As(t)&&t.writable&&!py(t)}function XO(t,e){return tt(t)?Rs(t)?!0:!(e?.readable!==!1&&yy(t)||e?.writable!==!1&&my(t)):null}function JO(t){var e,r;return tt(t)?t.writableErrored?t.writableErrored:(e=(r=t._writableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function eI(t){var e,r;return tt(t)?t.readableErrored?t.readableErrored:(e=(r=t._readableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function tI(t){if(!tt(t))return null;if(typeof t.closed=="boolean")return t.closed;let e=t._writableState,r=t._readableState;return typeof e?.closed=="boolean"||typeof r?.closed=="boolean"?e?.closed||r?.closed:typeof t._closed=="boolean"&&_y(t)?t._closed:null}function _y(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function by(t){return typeof t._sent100=="boolean"&&_y(t)}function rI(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 iI(t){if(!tt(t))return null;let e=t._writableState,r=t._readableState,i=e||r;return!i&&by(t)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function nI(t){var e;return!!(t&&((e=t[fy])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function sI(t){var e,r,i,n,s,o,a,l,u,f;return!!(t&&((e=(r=(i=(n=(s=(o=t[uy])!==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))}wy.exports={isDestroyed:Rs,kIsDestroyed:ly,isDisturbed:nI,kIsDisturbed:fy,isErrored:sI,kIsErrored:uy,isReadable:yy,kIsReadable:Cl,kIsClosedPromise:$O,kControllerErrorFunction:HO,kIsWritable:Ml,isClosed:tI,isDuplexNodeStream:VO,isFinished:XO,isIterable:ZO,isReadableNodeStream:Ts,isReadableStream:hy,isReadableEnded:QO,isReadableFinished:gy,isReadableErrored:eI,isNodeStream:tt,isWebStream:YO,isWritable:my,isWritableNodeStream:As,isWritableStream:cy,isWritableEnded:py,isWritableFinished:KO,isWritableErrored:JO,isServerRequest:rI,isServerResponse:by,willEmitClose:iI,isTransformStream:dy}});var mt=p((Fj,jl)=>{"use strict";var Ct=Nt(),{AbortError:Iy,codes:oI}=xe(),{ERR_INVALID_ARG_TYPE:aI,ERR_STREAM_PREMATURE_CLOSE:Sy}=oI,{kEmptyObject:ql,once:Fl}=Oe(),{validateAbortSignal:lI,validateFunction:uI,validateObject:fI,validateBoolean:hI}=Fr(),{Promise:cI,PromisePrototypeThen:dI,SymbolDispose:Dy}=ie(),{isClosed:pI,isReadable:Ey,isReadableNodeStream:kl,isReadableStream:gI,isReadableFinished:vy,isReadableErrored:xy,isWritable:Ty,isWritableNodeStream:Ay,isWritableStream:yI,isWritableFinished:Ry,isWritableErrored:Oy,isNodeStream:mI,willEmitClose:_I,kIsClosedPromise:bI}=rt(),Br;function wI(t){return t.setHeader&&typeof t.abort=="function"}var Bl=()=>{};function Ly(t,e,r){var i,n;if(arguments.length===2?(r=e,e=ql):e==null?e=ql:fI(e,"options"),uI(r,"callback"),lI(e.signal,"options.signal"),r=Fl(r),gI(t)||yI(t))return SI(t,e,r);if(!mI(t))throw new aI("stream",["ReadableStream","WritableStream","Stream"],t);let s=(i=e.readable)!==null&&i!==void 0?i:kl(t),o=(n=e.writable)!==null&&n!==void 0?n:Ay(t),a=t._writableState,l=t._readableState,u=()=>{t.writable||c()},f=_I(t)&&kl(t)===s&&Ay(t)===o,h=Ry(t,!1),c=()=>{h=!0,t.destroyed&&(f=!1),!(f&&(!t.readable||s))&&(!s||d)&&r.call(t)},d=vy(t,!1),b=()=>{d=!0,t.destroyed&&(f=!1),!(f&&(!t.writable||o))&&(!o||h)&&r.call(t)},g=A=>{r.call(t,A)},x=pI(t),y=()=>{x=!0;let A=Oy(t)||xy(t);if(A&&typeof A!="boolean")return r.call(t,A);if(s&&!d&&kl(t,!0)&&!vy(t,!1))return r.call(t,new Sy);if(o&&!h&&!Ry(t,!1))return r.call(t,new Sy);r.call(t)},m=()=>{x=!0;let A=Oy(t)||xy(t);if(A&&typeof A!="boolean")return r.call(t,A);r.call(t)},S=()=>{t.req.on("finish",c)};wI(t)?(t.on("complete",c),f||t.on("abort",y),t.req?S():t.on("request",S)):o&&!a&&(t.on("end",u),t.on("close",u)),!f&&typeof t.aborted=="boolean"&&t.on("aborted",y),t.on("end",b),t.on("finish",c),e.error!==!1&&t.on("error",g),t.on("close",y),x?Ct.nextTick(y):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?f||Ct.nextTick(m):(!s&&(!f||Ey(t))&&(h||Ty(t)===!1)||!o&&(!f||Ty(t))&&(d||Ey(t)===!1)||l&&t.req&&t.aborted)&&Ct.nextTick(m);let E=()=>{r=Bl,t.removeListener("aborted",y),t.removeListener("complete",c),t.removeListener("abort",y),t.removeListener("request",S),t.req&&t.req.removeListener("finish",c),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",c),t.removeListener("end",b),t.removeListener("error",g),t.removeListener("close",y)};if(e.signal&&!x){let A=()=>{let L=r;E(),L.call(t,new Iy(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)Ct.nextTick(A);else{Br=Br||Oe().addAbortListener;let L=Br(e.signal,A),v=r;r=Fl((...O)=>{L[Dy](),v.apply(t,O)})}}return E}function SI(t,e,r){let i=!1,n=Bl;if(e.signal)if(n=()=>{i=!0,r.call(t,new Iy(void 0,{cause:e.signal.reason}))},e.signal.aborted)Ct.nextTick(n);else{Br=Br||Oe().addAbortListener;let o=Br(e.signal,n),a=r;r=Fl((...l)=>{o[Dy](),a.apply(t,l)})}let s=(...o)=>{i||Ct.nextTick(()=>r.apply(t,o))};return dI(t[bI].promise,s,s),Bl}function EI(t,e){var r;let i=!1;return e===null&&(e=ql),(r=e)!==null&&r!==void 0&&r.cleanup&&(hI(e.cleanup,"cleanup"),i=e.cleanup),new cI((n,s)=>{let o=Ly(t,e,a=>{i&&o(),a?s(a):n()})})}jl.exports=Ly;jl.exports.finished=EI});var ir=p((Bj,By)=>{"use strict";var it=Nt(),{aggregateTwoErrors:vI,codes:{ERR_MULTIPLE_CALLBACK:xI},AbortError:TI}=xe(),{Symbol:Cy}=ie(),{kIsDestroyed:AI,isDestroyed:RI,isFinished:OI,isServerRequest:II}=rt(),My=Cy("kDestroy"),Wl=Cy("kConstruct");function ky(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function DI(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):(ky(t,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),n.constructed?Py(this,t,e):this.once(My,function(s){Py(this,vI(s,t),e)}),this)}function Py(t,e,r){let i=!1;function n(s){if(i)return;i=!0;let o=t._readableState,a=t._writableState;ky(s,a,o),a&&(a.closed=!0),o&&(o.closed=!0),typeof r=="function"&&r(s),s?it.nextTick(LI,t,s):it.nextTick(qy,t)}try{t._destroy(e||null,n)}catch(s){n(s)}}function LI(t,e){Ul(t,e),qy(t)}function qy(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 Ul(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 PI(){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 Gl(t,e,r){let i=t._readableState,n=t._writableState;if(n!=null&&n.destroyed||i!=null&&i.destroyed)return this;i!=null&&i.autoDestroy||n!=null&&n.autoDestroy?t.destroy(e):e&&(e.stack,n&&!n.errored&&(n.errored=e),i&&!i.errored&&(i.errored=e),r?it.nextTick(Ul,t,e):Ul(t,e))}function NI(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(Wl,e),!(t.listenerCount(Wl)>1)&&it.nextTick(CI,t)}function CI(t){let e=!1;function r(i){if(e){Gl(t,i??new xI);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(My,i):i?Gl(t,i,!0):it.nextTick(MI,t)}try{t._construct(i=>{it.nextTick(r,i)})}catch(i){it.nextTick(r,i)}}function MI(t){t.emit(Wl)}function Ny(t){return t?.setHeader&&typeof t.abort=="function"}function Fy(t){t.emit("close")}function kI(t,e){t.emit("error",e),it.nextTick(Fy,t)}function qI(t,e){!t||RI(t)||(!e&&!OI(t)&&(e=new TI),II(t)?(t.socket=null,t.destroy(e)):Ny(t)?t.abort():Ny(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?it.nextTick(kI,t,e):it.nextTick(Fy,t),t.destroyed||(t[AI]=!0))}By.exports={construct:NI,destroyer:qI,destroy:DI,undestroy:PI,errorOrDestroy:Gl}});var Ds=p((jj,Wy)=>{"use strict";var{ArrayIsArray:FI,ObjectSetPrototypeOf:jy}=ie(),{EventEmitter:Os}=D("events");function Is(t){Os.call(this,t)}jy(Is.prototype,Os.prototype);jy(Is,Os);Is.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(),Os.listenerCount(this,"error")===0&&this.emit("error",f)}zl(r,"error",l),zl(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 zl(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):FI(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}Wy.exports={Stream:Is,prependListener:zl}});var Wi=p((Wj,Ls)=>{"use strict";var{SymbolDispose:BI}=ie(),{AbortError:Uy,codes:jI}=xe(),{isNodeStream:Gy,isWebStream:WI,kControllerErrorFunction:UI}=rt(),GI=mt(),{ERR_INVALID_ARG_TYPE:zy}=jI,$l,zI=(t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new zy(e,"AbortSignal",t)};Ls.exports.addAbortSignal=function(e,r){if(zI(e,"signal"),!Gy(r)&&!WI(r))throw new zy("stream",["ReadableStream","WritableStream","Stream"],r);return Ls.exports.addAbortSignalNoValidate(e,r)};Ls.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let r=Gy(e)?()=>{e.destroy(new Uy(void 0,{cause:t.reason}))}:()=>{e[UI](new Uy(void 0,{cause:t.reason}))};if(t.aborted)r();else{$l=$l||Oe().addAbortListener;let i=$l(t,r);GI(e,i[BI])}return e}});var Vy=p((Gj,Hy)=>{"use strict";var{StringPrototypeSlice:$y,SymbolIterator:$I,TypedArrayPrototypeSet:Ps,Uint8Array:HI}=ie(),{Buffer:Hl}=D("buffer"),{inspect:VI}=Oe();Hy.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 Hl.alloc(0);let r=Hl.allocUnsafe(e>>>0),i=this.head,n=0;for(;i;)Ps(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}*[$I](){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+=$y(s,0,e),this.head=i,i.data=$y(s,e));break}++n}while((i=i.next)!==null);return this.length-=n,r}_getBuffer(e){let r=Hl.allocUnsafe(e),i=e,n=this.head,s=0;do{let o=n.data;if(e>o.length)Ps(r,o,i-e),e-=o.length;else{e===o.length?(Ps(r,o,i-e),++s,n.next?this.head=n.next:this.head=this.tail=null):(Ps(r,new HI(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 VI(this,{...r,depth:0,customInspect:!1})}}});var Ui=p((zj,Qy)=>{"use strict";var{MathFloor:YI,NumberIsInteger:ZI}=ie(),{validateInteger:KI}=Fr(),{ERR_INVALID_ARG_VALUE:QI}=xe().codes,Yy=16*1024,Zy=16;function XI(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function Ky(t){return t?Zy:Yy}function JI(t,e){KI(e,"value",0),t?Zy=e:Yy=e}function eD(t,e,r,i){let n=XI(e,i,r);if(n!=null){if(!ZI(n)||n<0){let s=i?`options.${r}`:"options.highWaterMark";throw new QI(s,n)}return YI(n)}return Ky(t.objectMode)}Qy.exports={getHighWaterMark:eD,getDefaultHighWaterMark:Ky,setDefaultHighWaterMark:JI}});var em=p((Vl,Jy)=>{"use strict";var Ns=D("buffer"),nt=Ns.Buffer;function Xy(t,e){for(var r in t)e[r]=t[r]}nt.from&&nt.alloc&&nt.allocUnsafe&&nt.allocUnsafeSlow?Jy.exports=Ns:(Xy(Ns,Vl),Vl.Buffer=nr);function nr(t,e,r){return nt(t,e,r)}nr.prototype=Object.create(nt.prototype);Xy(nt,nr);nr.from=function(t,e,r){if(typeof t=="number")throw new TypeError("Argument must not be a number");return nt(t,e,r)};nr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=nt(t);return e!==void 0?typeof r=="string"?i.fill(e,r):i.fill(e):i.fill(0),i};nr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return nt(t)};nr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Ns.SlowBuffer(t)}});var im=p(rm=>{"use strict";var Zl=em().Buffer,tm=Zl.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 tD(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 rD(t){var e=tD(t);if(typeof e!="string"&&(Zl.isEncoding===tm||!tm(t)))throw new Error("Unknown encoding: "+t);return e||t}rm.StringDecoder=Gi;function Gi(t){this.encoding=rD(t);var e;switch(this.encoding){case"utf16le":this.text=lD,this.end=uD,e=4;break;case"utf8":this.fillLast=sD,e=4;break;case"base64":this.text=fD,this.end=hD,e=3;break;default:this.write=cD,this.end=dD;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Zl.allocUnsafe(e)}Gi.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||""};Gi.prototype.end=aD;Gi.prototype.text=oD;Gi.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 Yl(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function iD(t,e,r){var i=e.length-1;if(i<r)return 0;var n=Yl(e[i]);return n>=0?(n>0&&(t.lastNeed=n-1),n):--i<r||n===-2?0:(n=Yl(e[i]),n>=0?(n>0&&(t.lastNeed=n-2),n):--i<r||n===-2?0:(n=Yl(e[i]),n>=0?(n>0&&(n===2?n=0:t.lastNeed=n-3),n):0))}function nD(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 sD(t){var e=this.lastTotal-this.lastNeed,r=nD(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 oD(t,e){var r=iD(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 aD(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function lD(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function uD(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function fD(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function hD(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function cD(t){return t.toString(this.encoding)}function dD(t){return t&&t.length?this.write(t):""}});var Kl=p((Hj,am)=>{"use strict";var nm=Nt(),{PromisePrototypeThen:pD,SymbolAsyncIterator:sm,SymbolIterator:om}=ie(),{Buffer:gD}=D("buffer"),{ERR_INVALID_ARG_TYPE:yD,ERR_STREAM_NULL_VALUES:mD}=xe().codes;function _D(t,e,r){let i;if(typeof e=="string"||e instanceof gD)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let n;if(e&&e[sm])n=!0,i=e[sm]();else if(e&&e[om])n=!1,i=e[om]();else throw new yD("iterable",["Iterable"],e);let s=new t({objectMode:!0,highWaterMark:1,...r}),o=!1;s._read=function(){o||(o=!0,l())},s._destroy=function(u,f){pD(a(u),()=>nm.nextTick(f,u),h=>nm.nextTick(f,h||u))};async function a(u){let f=u!=null,h=typeof i.throw=="function";if(f&&h){let{value:c,done:d}=await i.throw(u);if(await c,d)return}if(typeof i.return=="function"){let{value:c}=await i.return();await c}}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 mD;if(s.push(h))continue;o=!1}}catch(u){s.destroy(u)}break}}return s}am.exports=_D});var $i=p((Vj,Tm)=>{"use strict";var Ve=Nt(),{ArrayPrototypeIndexOf:bD,NumberIsInteger:wD,NumberIsNaN:SD,NumberParseInt:ED,ObjectDefineProperties:nu,ObjectKeys:vD,ObjectSetPrototypeOf:fm,Promise:hm,SafeSet:xD,SymbolAsyncDispose:TD,SymbolAsyncIterator:AD,Symbol:RD}=ie();Tm.exports=M;M.ReadableState=qs;var{EventEmitter:OD}=D("events"),{Stream:Mt,prependListener:ID}=Ds(),{Buffer:Ql}=D("buffer"),{addAbortSignal:DD}=Wi(),cm=mt(),j=Oe().debuglog("stream",t=>{j=t}),LD=Vy(),Ur=ir(),{getHighWaterMark:PD,getDefaultHighWaterMark:ND}=Ui(),{aggregateTwoErrors:lm,codes:{ERR_INVALID_ARG_TYPE:CD,ERR_METHOD_NOT_IMPLEMENTED:MD,ERR_OUT_OF_RANGE:kD,ERR_STREAM_PUSH_AFTER_EOF:qD,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:FD},AbortError:BD}=xe(),{validateObject:jD}=Fr(),sr=RD("kPaused"),{StringDecoder:dm}=im(),WD=Kl();fm(M.prototype,Mt.prototype);fm(M,Mt);var Xl=()=>{},{errorOrDestroy:jr}=Ur,Wr=1,UD=2,pm=4,zi=8,gm=16,Cs=32,Ms=64,ym=128,GD=256,zD=512,$D=1024,ru=2048,iu=4096,HD=8192,VD=16384,YD=32768,mm=65536,ZD=1<<17,KD=1<<18;function he(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}nu(qs.prototype,{objectMode:he(Wr),ended:he(UD),endEmitted:he(pm),reading:he(zi),constructed:he(gm),sync:he(Cs),needReadable:he(Ms),emittedReadable:he(ym),readableListening:he(GD),resumeScheduled:he(zD),errorEmitted:he($D),emitClose:he(ru),autoDestroy:he(iu),destroyed:he(HD),closed:he(VD),closeEmitted:he(YD),multiAwaitDrain:he(mm),readingMore:he(ZD),dataEmitted:he(KD)});function qs(t,e,r){typeof r!="boolean"&&(r=e instanceof st()),this.state=ru|iu|gm|Cs,t&&t.objectMode&&(this.state|=Wr),r&&t&&t.readableObjectMode&&(this.state|=Wr),this.highWaterMark=t?PD(this,t,"readableHighWaterMark",r):ND(!1),this.buffer=new LD,this.length=0,this.pipes=[],this.flowing=null,this[sr]=null,t&&t.emitClose===!1&&(this.state&=~ru),t&&t.autoDestroy===!1&&(this.state&=~iu),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new dm(t.encoding),this.encoding=t.encoding)}function M(t){if(!(this instanceof M))return new M(t);let e=this instanceof st();this._readableState=new qs(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&&DD(t.signal,this)),Mt.call(this,t),Ur.construct(this,()=>{this._readableState.needReadable&&ks(this,this._readableState)})}M.prototype.destroy=Ur.destroy;M.prototype._undestroy=Ur.undestroy;M.prototype._destroy=function(t,e){e(t)};M.prototype[OD.captureRejectionSymbol]=function(t){this.destroy(t)};M.prototype[TD]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new BD,this.destroy(t)),new hm((e,r)=>cm(this,i=>i&&i!==t?r(i):e(null)))};M.prototype.push=function(t,e){return _m(this,t,e,!1)};M.prototype.unshift=function(t,e){return _m(this,t,e,!0)};function _m(t,e,r,i){j("readableAddChunk",e);let n=t._readableState,s;if((n.state&Wr)===0&&(typeof e=="string"?(r=r||n.defaultEncoding,n.encoding!==r&&(i&&n.encoding?e=Ql.from(e,r).toString(n.encoding):(e=Ql.from(e,r),r=""))):e instanceof Ql?r="":Mt._isUint8Array(e)?(e=Mt._uint8ArrayToBuffer(e),r=""):e!=null&&(s=new CD("chunk",["string","Buffer","Uint8Array"],e))),s)jr(t,s);else if(e===null)n.state&=~zi,JD(t,n);else if((n.state&Wr)!==0||e&&e.length>0)if(i)if((n.state&pm)!==0)jr(t,new FD);else{if(n.destroyed||n.errored)return!1;Jl(t,n,e,!0)}else if(n.ended)jr(t,new qD);else{if(n.destroyed||n.errored)return!1;n.state&=~zi,n.decoder&&!r?(e=n.decoder.write(e),n.objectMode||e.length!==0?Jl(t,n,e,!1):ks(t,n)):Jl(t,n,e,!1)}else i||(n.state&=~zi,ks(t,n));return!n.ended&&(n.length<n.highWaterMark||n.length===0)}function Jl(t,e,r,i){e.flowing&&e.length===0&&!e.sync&&t.listenerCount("data")>0?((e.state&mm)!==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&Ms)!==0&&Fs(t)),ks(t,e)}M.prototype.isPaused=function(){let t=this._readableState;return t[sr]===!0||t.flowing===!1};M.prototype.setEncoding=function(t){let e=new dm(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 QD=1073741824;function XD(t){if(t>QD)throw new kD("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function um(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&Wr)!==0?1:SD(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}M.prototype.read=function(t){j("read",t),t===void 0?t=NaN:wD(t)||(t=ED(t,10));let e=this._readableState,r=t;if(t>e.highWaterMark&&(e.highWaterMark=XD(t)),t!==0&&(e.state&=~ym),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return j("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?eu(this):Fs(this),null;if(t=um(t,e),t===0&&e.ended)return e.length===0&&eu(this),null;let i=(e.state&Ms)!==0;if(j("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,j("length less than watermark",i)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)i=!1,j("reading, ended or constructing",i);else if(i){j("do read"),e.state|=zi|Cs,e.length===0&&(e.state|=Ms);try{this._read(e.highWaterMark)}catch(s){jr(this,s)}e.state&=~Cs,e.reading||(t=um(r,e))}let n;return t>0?n=vm(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&&eu(this)),n!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",n)),n};function JD(t,e){if(j("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?Fs(t):(e.needReadable=!1,e.emittedReadable=!0,bm(t))}}function Fs(t){let e=t._readableState;j("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(j("emitReadable",e.flowing),e.emittedReadable=!0,Ve.nextTick(bm,t))}function bm(t){let e=t._readableState;j("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,Sm(t)}function ks(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,Ve.nextTick(eL,t,e))}function eL(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){let r=e.length;if(j("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}M.prototype._read=function(t){throw new MD("_read()")};M.prototype.pipe=function(t,e){let r=this,i=this._readableState;i.pipes.length===1&&(i.multiAwaitDrain||(i.multiAwaitDrain=!0,i.awaitDrainWriters=new xD(i.awaitDrainWriters?[i.awaitDrainWriters]:[]))),i.pipes.push(t),j("pipe count=%d opts=%j",i.pipes.length,e);let s=(!e||e.end!==!1)&&t!==Ve.stdout&&t!==Ve.stderr?a:x;i.endEmitted?Ve.nextTick(s):r.once("end",s),t.on("unpipe",o);function o(y,m){j("onunpipe"),y===r&&m&&m.hasUnpiped===!1&&(m.hasUnpiped=!0,f())}function a(){j("onend"),t.end()}let l,u=!1;function f(){j("cleanup"),t.removeListener("close",b),t.removeListener("finish",g),l&&t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",x),r.removeListener("data",c),u=!0,l&&i.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}function h(){u||(i.pipes.length===1&&i.pipes[0]===t?(j("false write response, pause",0),i.awaitDrainWriters=t,i.multiAwaitDrain=!1):i.pipes.length>1&&i.pipes.includes(t)&&(j("false write response, pause",i.awaitDrainWriters.size),i.awaitDrainWriters.add(t)),r.pause()),l||(l=tL(r,t),t.on("drain",l))}r.on("data",c);function c(y){j("ondata");let m=t.write(y);j("dest.write",m),m===!1&&h()}function d(y){if(j("onerror",y),x(),t.removeListener("error",d),t.listenerCount("error")===0){let m=t._writableState||t._readableState;m&&!m.errorEmitted?jr(t,y):t.emit("error",y)}}ID(t,"error",d);function b(){t.removeListener("finish",g),x()}t.once("close",b);function g(){j("onfinish"),t.removeListener("close",b),x()}t.once("finish",g);function x(){j("unpipe"),r.unpipe(t)}return t.emit("pipe",r),t.writableNeedDrain===!0?h():i.flowing||(j("pipe resume"),r.resume()),t};function tL(t,e){return function(){let i=t._readableState;i.awaitDrainWriters===e?(j("pipeOnDrain",1),i.awaitDrainWriters=null):i.multiAwaitDrain&&(j("pipeOnDrain",i.awaitDrainWriters.size),i.awaitDrainWriters.delete(e)),(!i.awaitDrainWriters||i.awaitDrainWriters.size===0)&&t.listenerCount("data")&&t.resume()}}M.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=bD(e.pipes,t);return i===-1?this:(e.pipes.splice(i,1),e.pipes.length===0&&this.pause(),t.emit("unpipe",this,r),this)};M.prototype.on=function(t,e){let r=Mt.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,j("on readable",i.length,i.reading),i.length?Fs(this):i.reading||Ve.nextTick(rL,this)),r};M.prototype.addListener=M.prototype.on;M.prototype.removeListener=function(t,e){let r=Mt.prototype.removeListener.call(this,t,e);return t==="readable"&&Ve.nextTick(wm,this),r};M.prototype.off=M.prototype.removeListener;M.prototype.removeAllListeners=function(t){let e=Mt.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&Ve.nextTick(wm,this),e};function wm(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[sr]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function rL(t){j("readable nexttick read 0"),t.read(0)}M.prototype.resume=function(){let t=this._readableState;return t.flowing||(j("resume"),t.flowing=!t.readableListening,iL(this,t)),t[sr]=!1,this};function iL(t,e){e.resumeScheduled||(e.resumeScheduled=!0,Ve.nextTick(nL,t,e))}function nL(t,e){j("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),Sm(t),e.flowing&&!e.reading&&t.read(0)}M.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[sr]=!0,this};function Sm(t){let e=t._readableState;for(j("flow",e.flowing);e.flowing&&t.read()!==null;);}M.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=>{jr(this,i)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let r=vD(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};M.prototype[AD]=function(){return Em(this)};M.prototype.iterator=function(t){return t!==void 0&&jD(t,"options"),Em(this,t)};function Em(t,e){typeof t.read!="function"&&(t=M.wrap(t,{objectMode:!0}));let r=sL(t,e);return r.stream=t,r}async function*sL(t,e){let r=Xl;function i(o){this===t?(r(),r=Xl):r=o}t.on("readable",i);let n,s=cm(t,{writable:!1},o=>{n=o?lm(n,o):null,r(),r=Xl});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 hm(i)}}}catch(o){throw n=lm(n,o),n}finally{(n||e?.destroyOnReturn!==!1)&&(n===void 0||t._readableState.autoDestroy)?Ur.destroyer(t,null):(t.off("readable",i),s())}}nu(M.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}}});nu(qs.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[sr]!==!1},set(t){this[sr]=!!t}}});M._fromList=vm;function vm(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 eu(t){let e=t._readableState;j("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,Ve.nextTick(oL,e,t))}function oL(t,e){if(j("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&t.length===0){if(t.endEmitted=!0,e.emit("end"),e.writable&&e.allowHalfOpen===!1)Ve.nextTick(aL,e);else if(t.autoDestroy){let r=e._writableState;(!r||r.autoDestroy&&(r.finished||r.writable===!1))&&e.destroy()}}}function aL(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}M.from=function(t,e){return WD(M,t,e)};var tu;function xm(){return tu===void 0&&(tu={}),tu}M.fromWeb=function(t,e){return xm().newStreamReadableFromReadableStream(t,e)};M.toWeb=function(t,e){return xm().newReadableStreamFromStreamReadable(t,e)};M.wrap=function(t,e){var r,i;return new M({objectMode:(r=(i=t.readableObjectMode)!==null&&i!==void 0?i:t.objectMode)!==null&&r!==void 0?r:!0,...e,destroy(n,s){Ur.destroyer(t,n),s(n)}}).wrap(t)}});var Gs=p((Yj,qm)=>{"use strict";var or=Nt(),{ArrayPrototypeSlice:Om,Error:lL,FunctionPrototypeSymbolHasInstance:Im,ObjectDefineProperty:Dm,ObjectDefineProperties:uL,ObjectSetPrototypeOf:Lm,StringPrototypeToLowerCase:fL,Symbol:hL,SymbolHasInstance:cL}=ie();qm.exports=se;se.WritableState=Yi;var{EventEmitter:dL}=D("events"),Hi=Ds().Stream,{Buffer:Bs}=D("buffer"),Us=ir(),{addAbortSignal:pL}=Wi(),{getHighWaterMark:gL,getDefaultHighWaterMark:yL}=Ui(),{ERR_INVALID_ARG_TYPE:mL,ERR_METHOD_NOT_IMPLEMENTED:_L,ERR_MULTIPLE_CALLBACK:Pm,ERR_STREAM_CANNOT_PIPE:bL,ERR_STREAM_DESTROYED:Vi,ERR_STREAM_ALREADY_FINISHED:wL,ERR_STREAM_NULL_VALUES:SL,ERR_STREAM_WRITE_AFTER_END:EL,ERR_UNKNOWN_ENCODING:Nm}=xe().codes,{errorOrDestroy:Gr}=Us;Lm(se.prototype,Hi.prototype);Lm(se,Hi);function au(){}var zr=hL("kOnFinished");function Yi(t,e,r){typeof r!="boolean"&&(r=e instanceof st()),this.objectMode=!!(t&&t.objectMode),r&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?gL(this,t,"writableHighWaterMark",r):yL(!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=xL.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,Ws(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||t.emitClose!==!1,this.autoDestroy=!t||t.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[zr]=[]}function Ws(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}Yi.prototype.getBuffer=function(){return Om(this.buffered,this.bufferedIndex)};Dm(Yi.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function se(t){let e=this instanceof st();if(!e&&!Im(se,this))return new se(t);this._writableState=new Yi(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&&pL(t.signal,this)),Hi.call(this,t),Us.construct(this,()=>{let r=this._writableState;r.writing||uu(this,r),fu(this,r)})}Dm(se,cL,{__proto__:null,value:function(t){return Im(this,t)?!0:this!==se?!1:t&&t._writableState instanceof Yi}});se.prototype.pipe=function(){Gr(this,new bL)};function Cm(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"&&!Bs.isEncoding(r))throw new Nm(r);typeof i!="function"&&(i=au)}if(e===null)throw new SL;if(!n.objectMode)if(typeof e=="string")n.decodeStrings!==!1&&(e=Bs.from(e,r),r="buffer");else if(e instanceof Bs)r="buffer";else if(Hi._isUint8Array(e))e=Hi._uint8ArrayToBuffer(e),r="buffer";else throw new mL("chunk",["string","Buffer","Uint8Array"],e);let s;return n.ending?s=new EL:n.destroyed&&(s=new Vi("write")),s?(or.nextTick(i,s),Gr(t,s,!0),s):(n.pendingcb++,vL(t,n,e,r,i))}se.prototype.write=function(t,e,r){return Cm(this,t,e,r)===!0};se.prototype.cork=function(){this._writableState.corked++};se.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||uu(this,t))};se.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=fL(e)),!Bs.isEncoding(e))throw new Nm(e);return this._writableState.defaultEncoding=e,this};function vL(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!==au&&(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 Am(t,e,r,i,n,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Vi("write")):r?t._writev(n,e.onwrite):t._write(n,s,e.onwrite),e.sync=!1}function Rm(t,e,r,i){--e.pendingcb,i(r),lu(e),Gr(t,r)}function xL(t,e){let r=t._writableState,i=r.sync,n=r.writecb;if(typeof n!="function"){Gr(t,new Pm);return}r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e?(e.stack,r.errored||(r.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),i?or.nextTick(Rm,t,r,e,n):Rm(t,r,e,n)):(r.buffered.length>r.bufferedIndex&&uu(t,r),i?r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===n?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:n,stream:t,state:r},or.nextTick(TL,r.afterWriteTickInfo)):Mm(t,r,1,n))}function TL({stream:t,state:e,count:r,cb:i}){return e.afterWriteTickInfo=null,Mm(t,e,r,i)}function Mm(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&&lu(e),fu(t,e)}function lu(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 Vi("write"))}let r=t[zr].splice(0);for(let n=0;n<r.length;n++){var i;r[n]((i=t.errored)!==null&&i!==void 0?i:new Vi("end"))}Ws(t)}function uu(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?au:u=>{for(let f=o;f<r.length;++f)r[f].callback(u)},l=e.allNoop&&o===0?r:Om(r,o);l.allBuffers=e.allBuffers,Am(t,e,!0,e.length,l,"",a),Ws(e)}else{do{let{chunk:a,encoding:l,callback:u}=r[o];r[o++]=null;let f=n?1:a.length;Am(t,e,!1,f,a,l,u)}while(o<r.length&&!e.writing);o===r.length?Ws(e):o>256?(r.splice(0,o),e.bufferedIndex=0):e.bufferedIndex=o}e.bufferProcessing=!1}se.prototype._write=function(t,e,r){if(this._writev)this._writev([{chunk:t,encoding:e}],r);else throw new _L("_write()")};se.prototype._writev=null;se.prototype.end=function(t,e,r){let i=this._writableState;typeof t=="function"?(r=t,t=null,e=null):typeof e=="function"&&(r=e,e=null);let n;if(t!=null){let s=Cm(this,t,e);s instanceof lL&&(n=s)}return i.corked&&(i.corked=1,this.uncork()),n||(!i.errored&&!i.ending?(i.ending=!0,fu(this,i,!0),i.ended=!0):i.finished?n=new wL("end"):i.destroyed&&(n=new Vi("end"))),typeof r=="function"&&(n||i.finished?or.nextTick(r,n):i[zr].push(r)),this};function js(t){return t.ending&&!t.destroyed&&t.constructed&&t.length===0&&!t.errored&&t.buffered.length===0&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function AL(t,e){let r=!1;function i(n){if(r){Gr(t,n??Pm());return}if(r=!0,e.pendingcb--,n){let s=e[zr].splice(0);for(let o=0;o<s.length;o++)s[o](n);Gr(t,n,e.sync)}else js(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,or.nextTick(ou,t,e))}e.sync=!0,e.pendingcb++;try{t._final(i)}catch(n){i(n)}e.sync=!1}function RL(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,AL(t,e)):(e.prefinished=!0,t.emit("prefinish")))}function fu(t,e,r){js(e)&&(RL(t,e),e.pendingcb===0&&(r?(e.pendingcb++,or.nextTick((i,n)=>{js(n)?ou(i,n):n.pendingcb--},t,e)):js(e)&&(e.pendingcb++,ou(t,e))))}function ou(t,e){e.pendingcb--,e.finished=!0;let r=e[zr].splice(0);for(let i=0;i<r.length;i++)r[i]();if(t.emit("finish"),e.autoDestroy){let i=t._readableState;(!i||i.autoDestroy&&(i.endEmitted||i.readable===!1))&&t.destroy()}}uL(se.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){let t=this._writableState;return!!t&&t.writable!==!1&&!t.destroyed&&!t.errored&&!t.ending&&!t.ended},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let t=this._writableState;return t?!t.destroyed&&!t.ending&&t.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var OL=Us.destroy;se.prototype.destroy=function(t,e){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[zr].length)&&or.nextTick(lu,r),OL.call(this,t,e),this};se.prototype._undestroy=Us.undestroy;se.prototype._destroy=function(t,e){e(t)};se.prototype[dL.captureRejectionSymbol]=function(t){this.destroy(t)};var su;function km(){return su===void 0&&(su={}),su}se.fromWeb=function(t,e){return km().newStreamWritableFromWritableStream(t,e)};se.toWeb=function(t){return km().newWritableStreamFromStreamWritable(t)}});var Xm=p((Zj,Qm)=>{"use strict";var hu=Nt(),IL=D("buffer"),{isReadable:DL,isWritable:LL,isIterable:Fm,isNodeStream:PL,isReadableNodeStream:Bm,isWritableNodeStream:jm,isDuplexNodeStream:NL,isReadableStream:Wm,isWritableStream:Um}=rt(),Gm=mt(),{AbortError:Zm,codes:{ERR_INVALID_ARG_TYPE:CL,ERR_INVALID_RETURN_VALUE:zm}}=xe(),{destroyer:Hr}=ir(),ML=st(),Km=$i(),kL=Gs(),{createDeferredPromise:$m}=Oe(),Hm=Kl(),Vm=globalThis.Blob||IL.Blob,qL=typeof Vm<"u"?function(e){return e instanceof Vm}:function(e){return!1},FL=globalThis.AbortController||kr().AbortController,{FunctionPrototypeCall:Ym}=ie(),kt=class extends ML{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)}};Qm.exports=function t(e,r){if(NL(e))return e;if(Bm(e))return $r({readable:e});if(jm(e))return $r({writable:e});if(PL(e))return $r({writable:!1,readable:!1});if(Wm(e))return $r({readable:Km.fromWeb(e)});if(Um(e))return $r({writable:kL.fromWeb(e)});if(typeof e=="function"){let{value:n,write:s,final:o,destroy:a}=BL(e);if(Fm(n))return Hm(kt,n,{objectMode:!0,write:s,final:o,destroy:a});let l=n?.then;if(typeof l=="function"){let u,f=Ym(l,n,h=>{if(h!=null)throw new zm("nully","body",h)},h=>{Hr(u,h)});return u=new kt({objectMode:!0,readable:!1,write:s,final(h){o(async()=>{try{await f,hu.nextTick(h,null)}catch(c){hu.nextTick(h,c)}})},destroy:a})}throw new zm("Iterable, AsyncIterable or AsyncFunction",r,n)}if(qL(e))return t(e.arrayBuffer());if(Fm(e))return Hm(kt,e,{objectMode:!0,writable:!1});if(Wm(e?.readable)&&Um(e?.writable))return kt.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let n=e!=null&&e.readable?Bm(e?.readable)?e?.readable:t(e.readable):void 0,s=e!=null&&e.writable?jm(e?.writable)?e?.writable:t(e.writable):void 0;return $r({readable:n,writable:s})}let i=e?.then;if(typeof i=="function"){let n;return Ym(i,e,s=>{s!=null&&n.push(s),n.push(null)},s=>{Hr(n,s)}),n=new kt({objectMode:!0,writable:!1,read(){}})}throw new CL(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function BL(t){let{promise:e,resolve:r}=$m(),i=new FL,n=i.signal;return{value:t((async function*(){for(;;){let o=e;e=null;let{chunk:a,done:l,cb:u}=await o;if(hu.nextTick(u),l)return;if(n.aborted)throw new Zm(void 0,{cause:n.reason});({promise:e,resolve:r}=$m()),yield a}})(),{signal:n}),write(o,a,l){let u=r;r=null,u({chunk:o,done:!1,cb:l})},final(o){let a=r;r=null,a({done:!0,cb:o})},destroy(o,a){i.abort(),a(o)}}}function $r(t){let e=t.readable&&typeof t.readable.read!="function"?Km.wrap(t.readable):t.readable,r=t.writable,i=!!DL(e),n=!!LL(r),s,o,a,l,u;function f(h){let c=l;l=null,c?c(h):h&&u.destroy(h)}return u=new kt({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(r!=null&&r.writableObjectMode),readable:i,writable:n}),n&&(Gm(r,h=>{n=!1,h&&Hr(e,h),f(h)}),u._write=function(h,c,d){r.write(h,c)?d():s=d},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&&(Gm(e,h=>{i=!1,h&&Hr(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,c){!h&&l!==null&&(h=new Zm),a=null,s=null,o=null,l===null?c(h):(l=c,Hr(r,h),Hr(e,h))},u}});var st=p((Kj,t_)=>{"use strict";var{ObjectDefineProperties:jL,ObjectGetOwnPropertyDescriptor:_t,ObjectKeys:WL,ObjectSetPrototypeOf:Jm}=ie();t_.exports=Ye;var pu=$i(),je=Gs();Jm(Ye.prototype,pu.prototype);Jm(Ye,pu);{let t=WL(je.prototype);for(let e=0;e<t.length;e++){let r=t[e];Ye.prototype[r]||(Ye.prototype[r]=je.prototype[r])}}function Ye(t){if(!(this instanceof Ye))return new Ye(t);pu.call(this,t),je.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}jL(Ye.prototype,{writable:{__proto__:null,..._t(je.prototype,"writable")},writableHighWaterMark:{__proto__:null,..._t(je.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,..._t(je.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,..._t(je.prototype,"writableBuffer")},writableLength:{__proto__:null,..._t(je.prototype,"writableLength")},writableFinished:{__proto__:null,..._t(je.prototype,"writableFinished")},writableCorked:{__proto__:null,..._t(je.prototype,"writableCorked")},writableEnded:{__proto__:null,..._t(je.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,..._t(je.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 cu;function e_(){return cu===void 0&&(cu={}),cu}Ye.fromWeb=function(t,e){return e_().newStreamDuplexFromReadableWritablePair(t,e)};Ye.toWeb=function(t){return e_().newReadableWritablePairFromDuplex(t)};var du;Ye.from=function(t){return du||(du=Xm()),du(t,"body")}});var mu=p((Qj,i_)=>{"use strict";var{ObjectSetPrototypeOf:r_,Symbol:UL}=ie();i_.exports=bt;var{ERR_METHOD_NOT_IMPLEMENTED:GL}=xe().codes,yu=st(),{getHighWaterMark:zL}=Ui();r_(bt.prototype,yu.prototype);r_(bt,yu);var Zi=UL("kCallback");function bt(t){if(!(this instanceof bt))return new bt(t);let e=t?zL(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),yu.call(this,t),this._readableState.sync=!1,this[Zi]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",$L)}function gu(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 $L(){this._final!==gu&&gu.call(this)}bt.prototype._final=gu;bt.prototype._transform=function(t,e,r){throw new GL("_transform()")};bt.prototype._write=function(t,e,r){let i=this._readableState,n=this._writableState,s=i.length;this._transform(t,e,(o,a)=>{if(o){r(o);return}a!=null&&this.push(a),n.ended||s===i.length||i.length<i.highWaterMark?r():this[Zi]=r})};bt.prototype._read=function(){if(this[Zi]){let t=this[Zi];this[Zi]=null,t()}}});var bu=p((Xj,s_)=>{"use strict";var{ObjectSetPrototypeOf:n_}=ie();s_.exports=Vr;var _u=mu();n_(Vr.prototype,_u.prototype);n_(Vr,_u);function Vr(t){if(!(this instanceof Vr))return new Vr(t);_u.call(this,t)}Vr.prototype._transform=function(t,e,r){r(null,t)}});var Vs=p((Jj,f_)=>{"use strict";var Ki=Nt(),{ArrayIsArray:HL,Promise:VL,SymbolAsyncIterator:YL,SymbolDispose:ZL}=ie(),Hs=mt(),{once:KL}=Oe(),QL=ir(),o_=st(),{aggregateTwoErrors:XL,codes:{ERR_INVALID_ARG_TYPE:Ou,ERR_INVALID_RETURN_VALUE:wu,ERR_MISSING_ARGS:JL,ERR_STREAM_DESTROYED:eP,ERR_STREAM_PREMATURE_CLOSE:tP},AbortError:rP}=xe(),{validateFunction:iP,validateAbortSignal:nP}=Fr(),{isIterable:ar,isReadable:Su,isReadableNodeStream:$s,isNodeStream:a_,isTransformStream:Yr,isWebStream:sP,isReadableStream:Eu,isReadableFinished:oP}=rt(),aP=globalThis.AbortController||kr().AbortController,vu,xu,Tu;function l_(t,e,r){let i=!1;t.on("close",()=>{i=!0});let n=Hs(t,{readable:e,writable:r},s=>{i=!s});return{destroy:s=>{i||(i=!0,QL.destroyer(t,s||new eP("pipe")))},cleanup:n}}function lP(t){return iP(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function Au(t){if(ar(t))return t;if($s(t))return uP(t);throw new Ou("val",["Readable","Iterable","AsyncIterable"],t)}async function*uP(t){xu||(xu=$i()),yield*xu.prototype[YL].call(t)}async function zs(t,e,r,{end:i}){let n,s=null,o=u=>{if(u&&(n=u),s){let f=s;s=null,f()}},a=()=>new VL((u,f)=>{n?f(n):s=()=>{n?f(n):u()}});e.on("drain",o);let l=Hs(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?XL(n,u):u)}finally{l(),e.off("drain",o)}}async function Ru(t,e,r,{end:i}){Yr(e)&&(e=e.writable);let n=e.getWriter();try{for await(let s of t)await n.ready,n.write(s).catch(()=>{});await n.ready,i&&await n.close(),r()}catch(s){try{await n.abort(s),r(s)}catch(o){r(o)}}}function fP(...t){return u_(t,KL(lP(t)))}function u_(t,e,r){if(t.length===1&&HL(t[0])&&(t=t[0]),t.length<2)throw new JL("streams");let i=new aP,n=i.signal,s=r?.signal,o=[];nP(s,"options.signal");function a(){b(new rP)}Tu=Tu||Oe().addAbortListener;let l;s&&(l=Tu(s,a));let u,f,h=[],c=0;function d(S){b(S,--c===0)}function b(S,E){var A;if(S&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=S),!(!u&&!E)){for(;h.length;)h.shift()(u);(A=l)===null||A===void 0||A[ZL](),i.abort(),E&&(u||o.forEach(L=>L()),Ki.nextTick(e,u,f))}}let g;for(let S=0;S<t.length;S++){let E=t[S],A=S<t.length-1,L=S>0,v=A||r?.end!==!1,O=S===t.length-1;if(a_(E)){let w=function(T){T&&T.name!=="AbortError"&&T.code!=="ERR_STREAM_PREMATURE_CLOSE"&&d(T)};var m=w;if(v){let{destroy:T,cleanup:R}=l_(E,A,L);h.push(T),Su(E)&&O&&o.push(R)}E.on("error",w),Su(E)&&O&&o.push(()=>{E.removeListener("error",w)})}if(S===0)if(typeof E=="function"){if(g=E({signal:n}),!ar(g))throw new wu("Iterable, AsyncIterable or Stream","source",g)}else ar(E)||$s(E)||Yr(E)?g=E:g=o_.from(E);else if(typeof E=="function"){if(Yr(g)){var x;g=Au((x=g)===null||x===void 0?void 0:x.readable)}else g=Au(g);if(g=E(g,{signal:n}),A){if(!ar(g,!0))throw new wu("AsyncIterable",`transform[${S-1}]`,g)}else{var y;vu||(vu=bu());let w=new vu({objectMode:!0}),T=(y=g)===null||y===void 0?void 0:y.then;if(typeof T=="function")c++,T.call(g,G=>{f=G,G!=null&&w.write(G),v&&w.end(),Ki.nextTick(d)},G=>{w.destroy(G),Ki.nextTick(d,G)});else if(ar(g,!0))c++,zs(g,w,d,{end:v});else if(Eu(g)||Yr(g)){let G=g.readable||g;c++,zs(G,w,d,{end:v})}else throw new wu("AsyncIterable or Promise","destination",g);g=w;let{destroy:R,cleanup:N}=l_(g,!1,!0);h.push(R),O&&o.push(N)}}else if(a_(E)){if($s(g)){c+=2;let w=hP(g,E,d,{end:v});Su(E)&&O&&o.push(w)}else if(Yr(g)||Eu(g)){let w=g.readable||g;c++,zs(w,E,d,{end:v})}else if(ar(g))c++,zs(g,E,d,{end:v});else throw new Ou("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],g);g=E}else if(sP(E)){if($s(g))c++,Ru(Au(g),E,d,{end:v});else if(Eu(g)||ar(g))c++,Ru(g,E,d,{end:v});else if(Yr(g))c++,Ru(g.readable,E,d,{end:v});else throw new Ou("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],g);g=E}else g=o_.from(E)}return(n!=null&&n.aborted||s!=null&&s.aborted)&&Ki.nextTick(a),g}function hP(t,e,r,{end:i}){let n=!1;if(e.on("close",()=>{n||r(new tP)}),t.pipe(e,{end:!1}),i){let o=function(){n=!0,e.end()};var s=o;oP(t)?Ki.nextTick(o):t.once("end",o)}else r();return Hs(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)}),Hs(e,{readable:!1,writable:!0},r)}f_.exports={pipelineImpl:u_,pipeline:fP}});var Du=p((e4,y_)=>{"use strict";var{pipeline:cP}=Vs(),Ys=st(),{destroyer:dP}=ir(),{isNodeStream:Zs,isReadable:h_,isWritable:c_,isWebStream:Iu,isTransformStream:lr,isWritableStream:d_,isReadableStream:p_}=rt(),{AbortError:pP,codes:{ERR_INVALID_ARG_VALUE:g_,ERR_MISSING_ARGS:gP}}=xe(),yP=mt();y_.exports=function(...e){if(e.length===0)throw new gP("streams");if(e.length===1)return Ys.from(e[0]);let r=[...e];if(typeof e[0]=="function"&&(e[0]=Ys.from(e[0])),typeof e[e.length-1]=="function"){let d=e.length-1;e[d]=Ys.from(e[d])}for(let d=0;d<e.length;++d)if(!(!Zs(e[d])&&!Iu(e[d]))){if(d<e.length-1&&!(h_(e[d])||p_(e[d])||lr(e[d])))throw new g_(`streams[${d}]`,r[d],"must be readable");if(d>0&&!(c_(e[d])||d_(e[d])||lr(e[d])))throw new g_(`streams[${d}]`,r[d],"must be writable")}let i,n,s,o,a;function l(d){let b=o;o=null,b?b(d):d?a.destroy(d):!c&&!h&&a.destroy()}let u=e[0],f=cP(e,l),h=!!(c_(u)||d_(u)||lr(u)),c=!!(h_(f)||p_(f)||lr(f));if(a=new Ys({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(f!=null&&f.readableObjectMode),writable:h,readable:c}),h){if(Zs(u))a._write=function(b,g,x){u.write(b,g)?x():i=x},a._final=function(b){u.end(),n=b},u.on("drain",function(){if(i){let b=i;i=null,b()}});else if(Iu(u)){let g=(lr(u)?u.writable:u).getWriter();a._write=async function(x,y,m){try{await g.ready,g.write(x).catch(()=>{}),m()}catch(S){m(S)}},a._final=async function(x){try{await g.ready,g.close().catch(()=>{}),n=x}catch(y){x(y)}}}let d=lr(f)?f.readable:f;yP(d,()=>{if(n){let b=n;n=null,b()}})}if(c){if(Zs(f))f.on("readable",function(){if(s){let d=s;s=null,d()}}),f.on("end",function(){a.push(null)}),a._read=function(){for(;;){let d=f.read();if(d===null){s=a._read;return}if(!a.push(d))return}};else if(Iu(f)){let b=(lr(f)?f.readable:f).getReader();a._read=async function(){for(;;)try{let{value:g,done:x}=await b.read();if(!a.push(g))return;if(x){a.push(null);return}}catch{return}}}}return a._destroy=function(d,b){!d&&o!==null&&(d=new pP),s=null,i=null,n=null,o===null?b(d):(o=b,Zs(f)&&dP(f,d))},a}});var A_=p((t4,Nu)=>{"use strict";var mP=globalThis.AbortController||kr().AbortController,{codes:{ERR_INVALID_ARG_VALUE:_P,ERR_INVALID_ARG_TYPE:Qi,ERR_MISSING_ARGS:bP,ERR_OUT_OF_RANGE:wP},AbortError:ot}=xe(),{validateAbortSignal:ur,validateInteger:m_,validateObject:fr}=Fr(),SP=ie().Symbol("kWeak"),EP=ie().Symbol("kResistStopPropagation"),{finished:vP}=mt(),xP=Du(),{addAbortSignalNoValidate:TP}=Wi(),{isWritable:AP,isNodeStream:RP}=rt(),{deprecate:OP}=Oe(),{ArrayPrototypePush:IP,Boolean:DP,MathFloor:__,Number:LP,NumberIsNaN:PP,Promise:b_,PromiseReject:w_,PromiseResolve:NP,PromisePrototypeThen:S_,Symbol:v_}=ie(),Ks=v_("kEmpty"),E_=v_("kEof");function CP(t,e){if(e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),RP(t)&&!AP(t))throw new _P("stream",t,"must be writable");let r=xP(this,t);return e!=null&&e.signal&&TP(e.signal,r),r}function Qs(t,e){if(typeof t!="function")throw new Qi("fn",["Function","AsyncFunction"],t);e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal");let r=1;e?.concurrency!=null&&(r=__(e.concurrency));let i=r-1;return e?.highWaterMark!=null&&(i=__(e.highWaterMark)),m_(r,"options.concurrency",1),m_(i,"options.highWaterMark",0),i+=r,async function*(){let s=Oe().AbortSignalAny([e?.signal].filter(DP)),o=this,a=[],l={signal:s},u,f,h=!1,c=0;function d(){h=!0,b()}function b(){c-=1,g()}function g(){f&&!h&&c<r&&a.length<i&&(f(),f=null)}async function x(){try{for await(let y of o){if(h)return;if(s.aborted)throw new ot;try{if(y=t(y,l),y===Ks)continue;y=NP(y)}catch(m){y=w_(m)}c+=1,S_(y,b,d),a.push(y),u&&(u(),u=null),!h&&(a.length>=i||c>=r)&&await new b_(m=>{f=m})}a.push(E_)}catch(y){let m=w_(y);S_(m,b,d),a.push(m)}finally{h=!0,u&&(u(),u=null)}}x();try{for(;;){for(;a.length>0;){let y=await a[0];if(y===E_)return;if(s.aborted)throw new ot;y!==Ks&&(yield y),a.shift(),g()}await new b_(y=>{u=y})}}finally{h=!0,f&&(f(),f=null)}}.call(this)}function MP(t=void 0){return t!=null&&fr(t,"options"),t?.signal!=null&&ur(t.signal,"options.signal"),async function*(){let r=0;for await(let n of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new ot({cause:t.signal.reason});yield[r++,n]}}.call(this)}async function x_(t,e=void 0){for await(let r of Pu.call(this,t,e))return!0;return!1}async function kP(t,e=void 0){if(typeof t!="function")throw new Qi("fn",["Function","AsyncFunction"],t);return!await x_.call(this,async(...r)=>!await t(...r),e)}async function qP(t,e){for await(let r of Pu.call(this,t,e))return r}async function FP(t,e){if(typeof t!="function")throw new Qi("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n),Ks}for await(let i of Qs.call(this,r,e));}function Pu(t,e){if(typeof t!="function")throw new Qi("fn",["Function","AsyncFunction"],t);async function r(i,n){return await t(i,n)?i:Ks}return Qs.call(this,r,e)}var Lu=class extends bP{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function BP(t,e,r){var i;if(typeof t!="function")throw new Qi("reducer",["Function","AsyncFunction"],t);r!=null&&fr(r,"options"),r?.signal!=null&&ur(r.signal,"options.signal");let n=arguments.length>1;if(r!=null&&(i=r.signal)!==null&&i!==void 0&&i.aborted){let u=new ot(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await vP(this.destroy(u)),u}let s=new mP,o=s.signal;if(r!=null&&r.signal){let u={once:!0,[SP]:this,[EP]:!0};r.signal.addEventListener("abort",()=>s.abort(),u)}let a=!1;try{for await(let u of this){var l;if(a=!0,r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new ot;n?e=await t(e,u,{signal:o}):(e=u,n=!0)}if(!a&&!n)throw new Lu}finally{s.abort()}return e}async function jP(t){t!=null&&fr(t,"options"),t?.signal!=null&&ur(t.signal,"options.signal");let e=[];for await(let i of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new ot(void 0,{cause:t.signal.reason});IP(e,i)}return e}function WP(t,e){let r=Qs.call(this,t,e);return async function*(){for await(let n of r)yield*n}.call(this)}function T_(t){if(t=LP(t),PP(t))return 0;if(t<0)throw new wP("number",">= 0",t);return t}function UP(t,e=void 0){return e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),t=T_(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ot;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ot;t--<=0&&(yield s)}}.call(this)}function GP(t,e=void 0){return e!=null&&fr(e,"options"),e?.signal!=null&&ur(e.signal,"options.signal"),t=T_(t),async function*(){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new ot;for await(let s of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new ot;if(t-- >0&&(yield s),t<=0)return}}.call(this)}Nu.exports.streamReturningOperators={asIndexedPairs:OP(MP,"readable.asIndexedPairs will be removed in a future version."),drop:UP,filter:Pu,flatMap:WP,map:Qs,take:GP,compose:CP};Nu.exports.promiseReturningOperators={every:kP,forEach:FP,reduce:BP,toArray:jP,some:x_,find:qP}});var Cu=p((r4,R_)=>{"use strict";var{ArrayPrototypePop:zP,Promise:$P}=ie(),{isIterable:HP,isNodeStream:VP,isWebStream:YP}=rt(),{pipelineImpl:ZP}=Vs(),{finished:KP}=mt();Mu();function QP(...t){return new $P((e,r)=>{let i,n,s=t[t.length-1];if(s&&typeof s=="object"&&!VP(s)&&!HP(s)&&!YP(s)){let o=zP(t);i=o.signal,n=o.end}ZP(t,(o,a)=>{o?r(o):e(a)},{signal:i,end:n})})}R_.exports={finished:KP,pipeline:QP}});var Mu=p((i4,k_)=>{"use strict";var{Buffer:XP}=D("buffer"),{ObjectDefineProperty:wt,ObjectKeys:D_,ReflectApply:L_}=ie(),{promisify:{custom:P_}}=Oe(),{streamReturningOperators:O_,promiseReturningOperators:I_}=A_(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:N_}}=xe(),JP=Du(),{setDefaultHighWaterMark:eN,getDefaultHighWaterMark:tN}=Ui(),{pipeline:C_}=Vs(),{destroyer:rN}=ir(),M_=mt(),ku=Cu(),Xi=rt(),ee=k_.exports=Ds().Stream;ee.isDestroyed=Xi.isDestroyed;ee.isDisturbed=Xi.isDisturbed;ee.isErrored=Xi.isErrored;ee.isReadable=Xi.isReadable;ee.isWritable=Xi.isWritable;ee.Readable=$i();for(let t of D_(O_)){let r=function(...i){if(new.target)throw N_();return ee.Readable.from(L_(e,this,i))},e=O_[t];wt(r,"name",{__proto__:null,value:e.name}),wt(r,"length",{__proto__:null,value:e.length}),wt(ee.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}for(let t of D_(I_)){let r=function(...i){if(new.target)throw N_();return L_(e,this,i)},e=I_[t];wt(r,"name",{__proto__:null,value:e.name}),wt(r,"length",{__proto__:null,value:e.length}),wt(ee.Readable.prototype,t,{__proto__:null,value:r,enumerable:!1,configurable:!0,writable:!0})}ee.Writable=Gs();ee.Duplex=st();ee.Transform=mu();ee.PassThrough=bu();ee.pipeline=C_;var{addAbortSignal:iN}=Wi();ee.addAbortSignal=iN;ee.finished=M_;ee.destroy=rN;ee.compose=JP;ee.setDefaultHighWaterMark=eN;ee.getDefaultHighWaterMark=tN;wt(ee,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return ku}});wt(C_,P_,{__proto__:null,enumerable:!0,get(){return ku.pipeline}});wt(M_,P_,{__proto__:null,enumerable:!0,get(){return ku.finished}});ee.Stream=ee;ee._isUint8Array=function(e){return e instanceof Uint8Array};ee._uint8ArrayToBuffer=function(e){return XP.from(e.buffer,e.byteOffset,e.byteLength)}});var hr=p((n4,B)=>{"use strict";var ce=D("stream");if(ce&&process.env.READABLE_STREAM==="disable"){let t=ce.promises;B.exports._uint8ArrayToBuffer=ce._uint8ArrayToBuffer,B.exports._isUint8Array=ce._isUint8Array,B.exports.isDisturbed=ce.isDisturbed,B.exports.isErrored=ce.isErrored,B.exports.isReadable=ce.isReadable,B.exports.Readable=ce.Readable,B.exports.Writable=ce.Writable,B.exports.Duplex=ce.Duplex,B.exports.Transform=ce.Transform,B.exports.PassThrough=ce.PassThrough,B.exports.addAbortSignal=ce.addAbortSignal,B.exports.finished=ce.finished,B.exports.destroy=ce.destroy,B.exports.pipeline=ce.pipeline,B.exports.compose=ce.compose,Object.defineProperty(ce,"promises",{configurable:!0,enumerable:!0,get(){return t}}),B.exports.Stream=ce.Stream}else{let t=Mu(),e=Cu(),r=t.Readable.destroy;B.exports=t.Readable,B.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,B.exports._isUint8Array=t._isUint8Array,B.exports.isDisturbed=t.isDisturbed,B.exports.isErrored=t.isErrored,B.exports.isReadable=t.isReadable,B.exports.Readable=t.Readable,B.exports.Writable=t.Writable,B.exports.Duplex=t.Duplex,B.exports.Transform=t.Transform,B.exports.PassThrough=t.PassThrough,B.exports.addAbortSignal=t.addAbortSignal,B.exports.finished=t.finished,B.exports.destroy=t.destroy,B.exports.destroy=r,B.exports.pipeline=t.pipeline,B.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return e}}),B.exports.Stream=t.Stream}B.exports.default=B.exports});var F_=p((s4,q_)=>{"use strict";function nN(t,e){for(var r=-1,i=e.length,n=t.length;++r<i;)t[n+r]=e[r];return t}q_.exports=nN});var U_=p((o4,W_)=>{"use strict";var B_=gs(),sN=_l(),oN=bl(),j_=B_?B_.isConcatSpreadable:void 0;function aN(t){return oN(t)||sN(t)||!!(j_&&t&&t[j_])}W_.exports=aN});var Xs=p((a4,z_)=>{"use strict";var lN=F_(),uN=U_();function G_(t,e,r,i,n){var s=-1,o=t.length;for(r||(r=uN),n||(n=[]);++s<o;){var a=t[s];e>0&&r(a)?e>1?G_(a,e-1,r,i,n):lN(n,a):i||(n[n.length]=a)}return n}z_.exports=G_});var H_=p((l4,$_)=>{"use strict";var fN=Xs();function hN(t){var e=t==null?0:t.length;return e?fN(t,1):[]}$_.exports=hN});var Ji=p((u4,V_)=>{"use strict";var cN=Pi(),dN=cN(Object,"create");V_.exports=dN});var K_=p((f4,Z_)=>{"use strict";var Y_=Ji();function pN(){this.__data__=Y_?Y_(null):{},this.size=0}Z_.exports=pN});var X_=p((h4,Q_)=>{"use strict";function gN(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}Q_.exports=gN});var eb=p((c4,J_)=>{"use strict";var yN=Ji(),mN="__lodash_hash_undefined__",_N=Object.prototype,bN=_N.hasOwnProperty;function wN(t){var e=this.__data__;if(yN){var r=e[t];return r===mN?void 0:r}return bN.call(e,t)?e[t]:void 0}J_.exports=wN});var rb=p((d4,tb)=>{"use strict";var SN=Ji(),EN=Object.prototype,vN=EN.hasOwnProperty;function xN(t){var e=this.__data__;return SN?e[t]!==void 0:vN.call(e,t)}tb.exports=xN});var nb=p((p4,ib)=>{"use strict";var TN=Ji(),AN="__lodash_hash_undefined__";function RN(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=TN&&e===void 0?AN:e,this}ib.exports=RN});var ob=p((g4,sb)=>{"use strict";var ON=K_(),IN=X_(),DN=eb(),LN=rb(),PN=nb();function Zr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Zr.prototype.clear=ON;Zr.prototype.delete=IN;Zr.prototype.get=DN;Zr.prototype.has=LN;Zr.prototype.set=PN;sb.exports=Zr});var lb=p((y4,ab)=>{"use strict";function NN(){this.__data__=[],this.size=0}ab.exports=NN});var en=p((m4,ub)=>{"use strict";var CN=ms();function MN(t,e){for(var r=t.length;r--;)if(CN(t[r][0],e))return r;return-1}ub.exports=MN});var hb=p((_4,fb)=>{"use strict";var kN=en(),qN=Array.prototype,FN=qN.splice;function BN(t){var e=this.__data__,r=kN(e,t);if(r<0)return!1;var i=e.length-1;return r==i?e.pop():FN.call(e,r,1),--this.size,!0}fb.exports=BN});var db=p((b4,cb)=>{"use strict";var jN=en();function WN(t){var e=this.__data__,r=jN(e,t);return r<0?void 0:e[r][1]}cb.exports=WN});var gb=p((w4,pb)=>{"use strict";var UN=en();function GN(t){return UN(this.__data__,t)>-1}pb.exports=GN});var mb=p((S4,yb)=>{"use strict";var zN=en();function $N(t,e){var r=this.__data__,i=zN(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}yb.exports=$N});var bb=p((E4,_b)=>{"use strict";var HN=lb(),VN=hb(),YN=db(),ZN=gb(),KN=mb();function Kr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Kr.prototype.clear=HN;Kr.prototype.delete=VN;Kr.prototype.get=YN;Kr.prototype.has=ZN;Kr.prototype.set=KN;_b.exports=Kr});var Sb=p((v4,wb)=>{"use strict";var QN=Pi(),XN=Lr(),JN=QN(XN,"Map");wb.exports=JN});var xb=p((x4,vb)=>{"use strict";var Eb=ob(),eC=bb(),tC=Sb();function rC(){this.size=0,this.__data__={hash:new Eb,map:new(tC||eC),string:new Eb}}vb.exports=rC});var Ab=p((T4,Tb)=>{"use strict";function iC(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}Tb.exports=iC});var tn=p((A4,Rb)=>{"use strict";var nC=Ab();function sC(t,e){var r=t.__data__;return nC(e)?r[typeof e=="string"?"string":"hash"]:r.map}Rb.exports=sC});var Ib=p((R4,Ob)=>{"use strict";var oC=tn();function aC(t){var e=oC(this,t).delete(t);return this.size-=e?1:0,e}Ob.exports=aC});var Lb=p((O4,Db)=>{"use strict";var lC=tn();function uC(t){return lC(this,t).get(t)}Db.exports=uC});var Nb=p((I4,Pb)=>{"use strict";var fC=tn();function hC(t){return fC(this,t).has(t)}Pb.exports=hC});var Mb=p((D4,Cb)=>{"use strict";var cC=tn();function dC(t,e){var r=cC(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}Cb.exports=dC});var qb=p((L4,kb)=>{"use strict";var pC=xb(),gC=Ib(),yC=Lb(),mC=Nb(),_C=Mb();function Qr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}Qr.prototype.clear=pC;Qr.prototype.delete=gC;Qr.prototype.get=yC;Qr.prototype.has=mC;Qr.prototype.set=_C;kb.exports=Qr});var Bb=p((P4,Fb)=>{"use strict";var bC="__lodash_hash_undefined__";function wC(t){return this.__data__.set(t,bC),this}Fb.exports=wC});var Wb=p((N4,jb)=>{"use strict";function SC(t){return this.__data__.has(t)}jb.exports=SC});var qu=p((C4,Ub)=>{"use strict";var EC=qb(),vC=Bb(),xC=Wb();function Js(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new EC;++e<r;)this.add(t[e])}Js.prototype.add=Js.prototype.push=vC;Js.prototype.has=xC;Ub.exports=Js});var zb=p((M4,Gb)=>{"use strict";function TC(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}Gb.exports=TC});var Hb=p((k4,$b)=>{"use strict";function AC(t){return t!==t}$b.exports=AC});var Yb=p((q4,Vb)=>{"use strict";function RC(t,e,r){for(var i=r-1,n=t.length;++i<n;)if(t[i]===e)return i;return-1}Vb.exports=RC});var Kb=p((F4,Zb)=>{"use strict";var OC=zb(),IC=Hb(),DC=Yb();function LC(t,e,r){return e===e?DC(t,e,r):OC(t,IC,r)}Zb.exports=LC});var Fu=p((B4,Qb)=>{"use strict";var PC=Kb();function NC(t,e){var r=t==null?0:t.length;return!!r&&PC(t,e,0)>-1}Qb.exports=NC});var Bu=p((j4,Xb)=>{"use strict";function CC(t,e,r){for(var i=-1,n=t==null?0:t.length;++i<n;)if(r(e,t[i]))return!0;return!1}Xb.exports=CC});var ew=p((W4,Jb)=>{"use strict";function MC(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}Jb.exports=MC});var ju=p((U4,tw)=>{"use strict";function kC(t,e){return t.has(e)}tw.exports=kC});var iw=p((G4,rw)=>{"use strict";var qC=qu(),FC=Fu(),BC=Bu(),jC=ew(),WC=wl(),UC=ju(),GC=200;function zC(t,e,r,i){var n=-1,s=FC,o=!0,a=t.length,l=[],u=e.length;if(!a)return l;r&&(e=jC(e,WC(r))),i?(s=BC,o=!1):e.length>=GC&&(s=UC,o=!1,e=new qC(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 c=u;c--;)if(e[c]===h)continue e;l.push(f)}else s(e,h,i)||l.push(f)}return l}rw.exports=zC});var Wu=p((z4,nw)=>{"use strict";var $C=_s(),HC=Pr();function VC(t){return HC(t)&&$C(t)}nw.exports=VC});var aw=p(($4,ow)=>{"use strict";var YC=iw(),ZC=Xs(),KC=ys(),sw=Wu(),QC=KC(function(t,e){return sw(t)?YC(t,ZC(e,1,sw,!0)):[]});ow.exports=QC});var uw=p((H4,lw)=>{"use strict";var XC=Pi(),JC=Lr(),eM=XC(JC,"Set");lw.exports=eM});var hw=p((V4,fw)=>{"use strict";function tM(){}fw.exports=tM});var Uu=p((Y4,cw)=>{"use strict";function rM(t){var e=-1,r=Array(t.size);return t.forEach(function(i){r[++e]=i}),r}cw.exports=rM});var pw=p((Z4,dw)=>{"use strict";var Gu=uw(),iM=hw(),nM=Uu(),sM=1/0,oM=Gu&&1/nM(new Gu([,-0]))[1]==sM?function(t){return new Gu(t)}:iM;dw.exports=oM});var yw=p((K4,gw)=>{"use strict";var aM=qu(),lM=Fu(),uM=Bu(),fM=ju(),hM=pw(),cM=Uu(),dM=200;function pM(t,e,r){var i=-1,n=lM,s=t.length,o=!0,a=[],l=a;if(r)o=!1,n=uM;else if(s>=dM){var u=e?null:hM(t);if(u)return cM(u);o=!1,n=fM,l=new aM}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 c=l.length;c--;)if(l[c]===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}gw.exports=pM});var _w=p((Q4,mw)=>{"use strict";var gM=Xs(),yM=ys(),mM=yw(),_M=Wu(),bM=yM(function(t){return mM(gM(t,1,_M,!0))});mw.exports=bM});var ww=p((X4,bw)=>{"use strict";function wM(t,e){return function(r){return t(e(r))}}bw.exports=wM});var Ew=p((J4,Sw)=>{"use strict";var SM=ww(),EM=SM(Object.getPrototypeOf,Object);Sw.exports=EM});var Tw=p((e6,xw)=>{"use strict";var vM=Di(),xM=Ew(),TM=Pr(),AM="[object Object]",RM=Function.prototype,OM=Object.prototype,vw=RM.toString,IM=OM.hasOwnProperty,DM=vw.call(Object);function LM(t){if(!TM(t)||vM(t)!=AM)return!1;var e=xM(t);if(e===null)return!0;var r=IM.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&vw.call(r)==DM}xw.exports=LM});var Aw=p(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.assertValidPattern=void 0;var PM=1024*64,NM=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>PM)throw new TypeError("pattern is too long")};eo.assertValidPattern=NM});var Ow=p(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.parseClass=void 0;var CM={"[: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]},rn=t=>t.replace(/[[\]\\-]/g,"\\$&"),MM=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Rw=t=>t.join(""),kM=(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 g=t.charAt(s);if((g==="!"||g==="^")&&s===r+1){u=!0,s++;continue}if(g==="]"&&o&&!l){f=s+1;break}if(o=!0,g==="\\"&&!l){l=!0,s++;continue}if(g==="["&&!l){for(let[x,[y,m,S]]of Object.entries(CM))if(t.startsWith(x,s)){if(h)return["$.",!1,t.length-r,!0];s+=x.length,S?n.push(y):i.push(y),a=a||m;continue e}}if(l=!1,h){g>h?i.push(rn(h)+"-"+rn(g)):g===h&&i.push(rn(g)),h="",s++;continue}if(t.startsWith("-]",s+1)){i.push(rn(g+"-")),s+=2;continue}if(t.startsWith("-",s+1)){h=g,s+=2;continue}i.push(rn(g)),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 g=i[0].length===2?i[0].slice(-1):i[0];return[MM(g),!1,f-r,!1]}let c="["+(u?"^":"")+Rw(i)+"]",d="["+(u?"":"^")+Rw(n)+"]";return[i.length&&n.length?"("+c+"|"+d+")":i.length?c:d,a,f-r,!0]};to.parseClass=kM});var io=p(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.unescape=void 0;var qM=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");ro.unescape=qM});var Hu=p(ao=>{"use strict";var Pe;Object.defineProperty(ao,"__esModule",{value:!0});ao.AST=void 0;var FM=Ow(),no=io(),BM=new Set(["!","?","+","*","@"]),zu=t=>BM.has(t),Iw=t=>zu(t.type),jM=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),WM=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),UM=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Dw=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),GM="(?!(?:^|/)\\.\\.?(?:$|/))",so="(?!\\.)",zM=new Set(["[","."]),$M=new Set(["..","."]),HM=new Set("().*{}+?[]^$\\!"),VM=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),$u="[^/]",Lw=$u+"*?",Pw=$u+"+?",oo=class{type;#e;#r;#n=!1;#t=[];#o;#S;#u;#h=!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.#h&&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.#h)return this;this.toString(),this.#h=!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 Pe&&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.#h&&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 Pe&&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 Pe(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 g=i,x="";for(;g<e.length;){let y=e.charAt(g++);if(a||y==="\\"){a=!a,x+=y;continue}if(l){g===u+1?(y==="^"||y==="!")&&(f=!0):y==="]"&&!(g===u+2&&f)&&(l=!1),x+=y;continue}else if(y==="["){l=!0,u=g,f=!1,x+=y;continue}if(!n.noext&&zu(y)&&e.charAt(g)==="("&&s<=o){r.push(x),x="";let S=new Pe(y,r);g=Pe.#_(e,S,g,n,s+1),r.push(S);continue}x+=y}return r.push(x),g}let h=i+1,c=new Pe(null,r),d=[],b="";for(;h<e.length;){let g=e.charAt(h++);if(a||g==="\\"){a=!a,b+=g;continue}if(l){h===u+1?(g==="^"||g==="!")&&(f=!0):g==="]"&&!(h===u+2&&f)&&(l=!1),b+=g;continue}else if(g==="["){l=!0,u=h,f=!1,b+=g;continue}if(zu(g)&&e.charAt(h)==="("&&(s<=o||r&&r.#E(g))){let y=r&&r.#E(g)?0:1;c.push(b),b="";let m=new Pe(g,c);c.push(m),h=Pe.#_(e,m,h,n,s+y);continue}if(g==="|"){c.push(b),b="",d.push(c),c=new Pe(null,r);continue}if(g===")")return b===""&&r.#t.length===0&&(r.#s=!0),c.push(b),b="",r.push(...d,c),h;b+=g}return r.type=null,r.#r=void 0,r.#t=[e.substring(i-1)],h}#g(e){return this.#d(e,WM)}#d(e,r=jM){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=UM){return!!r.get(this.type)?.includes(e)}#p(e,r){let i=e.#t[0],n=new Pe(null,i,this.options);n.#t.push(""),i.push(n),this.#x(e,r)}#x(e,r){let i=e.#t[0];this.#t.splice(r,1,...i.#t);for(let n of i.#t)typeof n=="object"&&(n.#o=this);this.#a=void 0}#T(e){return!!Dw.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.#T(r.type)}#v(e){let r=Dw.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(Iw(this)){let e=0,r=!1;do{r=!0;for(let i=0;i<this.#t.length;i++){let n=this.#t[i];typeof n=="object"&&(n.#b(),this.#d(n)?(r=!1,this.#x(n,i)):this.#g(n)?(r=!1,this.#p(n,i)):this.#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 Pe(null,void 0,r);return Pe.#_(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()),!Iw(this)){let l=this.isStart()&&this.isEnd(),u=this.#t.map(d=>{let[b,g,x,y]=typeof d=="string"?Pe.#A(d,this.#r,l):d.toRegExpSource(e);return this.#r=this.#r||x,this.#n=this.#n||y,b}).join(""),f="";if(this.isStart()&&typeof this.#t[0]=="string"&&!(this.#t.length===1&&$M.has(this.#t[0]))){let b=zM,g=r&&b.has(u.charAt(0))||u.startsWith("\\.")&&b.has(u.charAt(2))||u.startsWith("\\.\\.")&&b.has(u.charAt(4)),x=!r&&!e&&b.has(u.charAt(0));f=g?GM:x?so:""}let h="";return this.isEnd()&&this.#e.#h&&this.#o?.type==="!"&&(h="(?:$|\\/)"),[f+u+h,(0,no.unescape)(u),this.#r=!!this.#r,this.#n]}let i=this.type==="*"||this.type==="+",n=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#c(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,no.unescape)(this.toString()),!1,!1]}let o=!i||e||r||!so?"":this.#c(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!r?so:"")+Pw;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?so:"")+Lw+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=n+s+l}return[a,(0,no.unescape)(s),this.#r=!!this.#r,this.#n]}#c(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#A(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+=(HM.has(u)?"\\":"")+u,a=!1;continue}if(u==="\\"){l===e.length-1?s+="\\\\":n=!0;continue}if(u==="["){let[f,h,c,d]=(0,FM.parseClass)(e,l);if(c){s+=f,o=o||h,l+=c-1,r=r||d,a=!1;continue}}if(u==="*"){if(a)continue;a=!0,s+=i&&/^[*]+$/.test(e)?Pw:Lw,r=!0;continue}else a=!1;if(u==="?"){s+=$u,r=!0;continue}s+=VM(u)}return[s,(0,no.unescape)(e),!!r,o]}};ao.AST=oo;Pe=oo});var Vu=p(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.escape=void 0;var YM=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");lo.escape=YM});var qt=p(I=>{"use strict";var ZM=I&&I.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(I,"__esModule",{value:!0});I.unescape=I.escape=I.AST=I.Minimatch=I.match=I.makeRe=I.braceExpand=I.defaults=I.filter=I.GLOBSTAR=I.sep=I.minimatch=void 0;var KM=ZM(ea()),uo=Aw(),Mw=Hu(),QM=Vu(),XM=io(),JM=(t,e,r={})=>((0,uo.assertValidPattern)(e),!r.nocomment&&e.charAt(0)==="#"?!1:new cr(e,r).match(t));I.minimatch=JM;var e2=/^\*+([^+@!?\*\[\(]*)$/,t2=t=>e=>!e.startsWith(".")&&e.endsWith(t),r2=t=>e=>e.endsWith(t),i2=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),n2=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),s2=/^\*+\.\*+$/,o2=t=>!t.startsWith(".")&&t.includes("."),a2=t=>t!=="."&&t!==".."&&t.includes("."),l2=/^\.\*+$/,u2=t=>t!=="."&&t!==".."&&t.startsWith("."),f2=/^\*+$/,h2=t=>t.length!==0&&!t.startsWith("."),c2=t=>t.length!==0&&t!=="."&&t!=="..",d2=/^\?+([^+@!?\*\[\(]*)?$/,p2=([t,e=""])=>{let r=kw([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},g2=([t,e=""])=>{let r=qw([t]);return e?(e=e.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(e)):r},y2=([t,e=""])=>{let r=qw([t]);return e?i=>r(i)&&i.endsWith(e):r},m2=([t,e=""])=>{let r=kw([t]);return e?i=>r(i)&&i.endsWith(e):r},kw=([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},qw=([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},Fw=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Nw={win32:{sep:"\\"},posix:{sep:"/"}};I.sep=Fw==="win32"?Nw.win32.sep:Nw.posix.sep;I.minimatch.sep=I.sep;I.GLOBSTAR=Symbol("globstar **");I.minimatch.GLOBSTAR=I.GLOBSTAR;var _2="[^/]",b2=_2+"*?",w2="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",S2="(?:(?!(?:\\/|^)\\.).)*?",E2=(t,e={})=>r=>(0,I.minimatch)(r,t,e);I.filter=E2;I.minimatch.filter=I.filter;var We=(t,e={})=>Object.assign({},t,e),v2=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return I.minimatch;let e=I.minimatch;return Object.assign((i,n,s={})=>e(i,n,We(t,s)),{Minimatch:class extends e.Minimatch{constructor(n,s={}){super(n,We(t,s))}static defaults(n){return e.defaults(We(t,n)).Minimatch}},AST:class extends e.AST{constructor(n,s,o={}){super(n,s,We(t,o))}static fromGlob(n,s={}){return e.AST.fromGlob(n,We(t,s))}},unescape:(i,n={})=>e.unescape(i,We(t,n)),escape:(i,n={})=>e.escape(i,We(t,n)),filter:(i,n={})=>e.filter(i,We(t,n)),defaults:i=>e.defaults(We(t,i)),makeRe:(i,n={})=>e.makeRe(i,We(t,n)),braceExpand:(i,n={})=>e.braceExpand(i,We(t,n)),match:(i,n,s={})=>e.match(i,n,We(t,s)),sep:e.sep,GLOBSTAR:I.GLOBSTAR})};I.defaults=v2;I.minimatch.defaults=I.defaults;var x2=(t,e={})=>((0,uo.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,KM.default)(t));I.braceExpand=x2;I.minimatch.braceExpand=I.braceExpand;var T2=(t,e={})=>new cr(t,e).makeRe();I.makeRe=T2;I.minimatch.makeRe=I.makeRe;var A2=(t,e,r={})=>{let i=new cr(e,r);return t=t.filter(n=>i.match(n)),i.options.nonull&&!t.length&&t.push(e),t};I.match=A2;I.minimatch.match=I.match;var Cw=/[?*]|[+@!]\(.*?\)|\[|\]/,R2=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),cr=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){(0,uo.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||Fw,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]==="?"||!Cw.test(s[2]))&&!Cw.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,c=f?3:u?0:void 0;if(typeof h=="number"&&typeof c=="number"){let[d,b]=[e[h],r[c]];d.toLowerCase()===b.toLowerCase()&&(r[c]=d,s=c,n=h)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),r.includes(I.GLOBSTAR)?this.#e(e,r,i,n,s):this.#n(e,r,i,n,s)}#e(e,r,i,n,s){let o=r.indexOf(I.GLOBSTAR,s),a=r.lastIndexOf(I.GLOBSTAR),[l,u,f]=i?[r.slice(s,o),r.slice(o+1),[]]:[r.slice(s,o),r.slice(o+1,a),r.slice(a+1)];if(l.length){let m=e.slice(n,n+l.length);if(!this.#n(m,l,i,0,0))return!1;n+=l.length}let h=0;if(f.length){if(f.length+n>e.length)return!1;let m=e.length-f.length;if(this.#n(e,f,i,m,0))h=f.length;else{if(e[e.length-1]!==""||n+f.length===e.length||(m--,!this.#n(e,f,i,m,0)))return!1;h=f.length+1}}if(!u.length){let m=!!h;for(let S=n;S<e.length-h;S++){let E=String(e[S]);if(m=!0,E==="."||E===".."||!this.options.dot&&E.startsWith("."))return!1}return i||m}let c=[[[],0]],d=c[0],b=0,g=[0];for(let m of u)m===I.GLOBSTAR?(g.push(b),d=[[],0],c.push(d)):(d[0].push(m),b++);let x=c.length-1,y=e.length-h;for(let m of c)m[1]=y-(g[x--]+m[0].length);return!!this.#r(e,c,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 c=e[h];if(c==="."||c===".."||!this.options.dot&&c.startsWith("."))return!1}return a}let[u,f]=l;for(;i<=f;){if(this.#n(e.slice(0,i+u.length),u,s,i,0)&&o<this.maxGlobstarRecursion){let d=this.#r(e,r,i+u.length,n+1,s,o+1,a);if(d!==!1)return d}let c=e[i];if(c==="."||c===".."||!this.options.dot&&c.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===I.GLOBSTAR)return!1;let c;if(typeof f=="string"?(c=h===f,this.debug("string match",f,h,c)):(c=f.test(h),this.debug("pattern match",f,h,c)),!c)return!1}if(o===u&&a===l)return!0;if(o===u)return i;if(a===l)return o===u-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,I.braceExpand)(this.pattern,this.options)}parse(e){(0,uo.assertValidPattern)(e);let r=this.options;if(e==="**")return I.GLOBSTAR;if(e==="")return"";let i,n=null;(i=e.match(f2))?n=r.dot?c2:h2:(i=e.match(e2))?n=(r.nocase?r.dot?n2:i2:r.dot?r2:t2)(i[1]):(i=e.match(d2))?n=(r.nocase?r.dot?g2:p2:r.dot?y2:m2)(i):(i=e.match(s2))?n=r.dot?a2:o2:(i=e.match(l2))&&(n=u2);let s=Mw.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?b2:r.dot?w2:S2,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"?R2(f):f===I.GLOBSTAR?I.GLOBSTAR:f._src});return u.forEach((f,h)=>{let c=u[h+1],d=u[h-1];f!==I.GLOBSTAR||d===I.GLOBSTAR||(d===void 0?c!==void 0&&c!==I.GLOBSTAR?u[h+1]="(?:\\/|"+i+"\\/)?"+c:u[h]=i:c===void 0?u[h-1]=d+"(?:\\/|"+i+")?":c!==I.GLOBSTAR&&(u[h-1]=d+"(?:\\/|\\/"+i+"\\/)"+c,u[h+1]=I.GLOBSTAR))}),u.filter(f=>f!==I.GLOBSTAR).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let i=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let s=this.set;this.debug(this.pattern,"set",s);let o=n[n.length-1];if(!o)for(let a=n.length-2;!o&&a>=0;a--)o=n[a];for(let a=0;a<s.length;a++){let l=s[a],u=n;if(i.matchBase&&l.length===1&&(u=[o]),this.matchOne(u,l,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(e){return I.minimatch.defaults(e).Minimatch}};I.Minimatch=cr;var O2=Hu();Object.defineProperty(I,"AST",{enumerable:!0,get:function(){return O2.AST}});var I2=Vu();Object.defineProperty(I,"escape",{enumerable:!0,get:function(){return I2.escape}});var D2=io();Object.defineProperty(I,"unescape",{enumerable:!0,get:function(){return D2.unescape}});I.minimatch.AST=Mw.AST;I.minimatch.Minimatch=cr;I.minimatch.escape=QM.escape;I.minimatch.unescape=XM.unescape});var Gw=p(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.LRUCache=void 0;var Xr=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,jw=new Set,Yu=typeof process=="object"&&process?process:{},Ww=(t,e,r,i)=>{typeof Yu.emitWarning=="function"?Yu.emitWarning(t,e,r,i):console.error(`[${r}] ${e}: ${t}`)},fo=globalThis.AbortController,Bw=globalThis.AbortSignal;if(typeof fo>"u"){Bw=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,n){this._onabort.push(n)}},fo=class{constructor(){e()}signal=new Bw;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=Yu.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,Ww("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 L2=t=>!jw.has(t),Ft=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),Uw=t=>Ft(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Jr:null:null,Jr=class extends Array{constructor(e){super(e),this.fill(0)}},Zu=class t{heap;length;static#e=!1;static create(e){let r=Uw(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]}},Ku=class t{#e;#r;#n;#t;#o;#S;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#u;#h;#l;#a;#s;#m;#_;#g;#d;#E;#p;#x;#T;#y;#v;#b;#c;static unsafeExposeInternals(e){return{starts:e.#T,ttls:e.#y,sizes:e.#x,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.#F(r,i,n,s),moveToTail:r=>e.#j(r),indexes:r=>e.#O(r),rindexes:r=>e.#I(r),isStale:r=>e.#w(r)}}get max(){return this.#e}get maxSize(){return this.#r}get calculatedSize(){return this.#h}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:c,maxSize:d=0,maxEntrySize:b=0,sizeCalculation:g,fetchMethod:x,memoMethod:y,noDeleteOnFetchRejection:m,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:A,ignoreFetchAbort:L}=e;if(r!==0&&!Ft(r))throw new TypeError("max option must be a nonnegative integer");let v=r?Uw(r):Array;if(!v)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=d,this.maxEntrySize=b||this.#r,this.sizeCalculation=g,this.sizeCalculation){if(!this.#r&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(y!==void 0&&typeof y!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#S=y,x!==void 0&&typeof x!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=x,this.#b=!!x,this.#l=new Map,this.#a=new Array(r).fill(void 0),this.#s=new Array(r).fill(void 0),this.#m=new v(r),this.#_=new v(r),this.#g=0,this.#d=0,this.#E=Zu.create(r),this.#u=0,this.#h=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.#c=!!this.#t,this.noDisposeOnSet=!!h,this.noUpdateTTL=!!c,this.noDeleteOnFetchRejection=!!m,this.allowStaleOnFetchRejection=!!E,this.allowStaleOnFetchAbort=!!A,this.ignoreFetchAbort=!!L,this.maxEntrySize!==0){if(this.#r!==0&&!Ft(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!Ft(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#D()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!S,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=Ft(n)||n===0?n:1,this.ttlAutopurge=!!s,this.ttl=i||0,this.ttl){if(!Ft(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#A()}if(this.#e===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#r){let O="LRU_CACHE_UNBOUNDED";L2(O)&&(jw.add(O),Ww("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",O,t))}}getRemainingTTL(e){return this.#l.has(e)?1/0:0}#A(){let e=new Jr(this.#e),r=new Jr(this.#e);this.#y=e,this.#T=r,this.#P=(s,o,a=Xr.now())=>{if(r[s]=o!==0?a:0,e[s]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#w(s)&&this.#L(this.#a[s],"expire")},o+1);l.unref&&l.unref()}},this.#R=s=>{r[s]=e[s]!==0?Xr.now():0},this.#i=(s,o)=>{if(e[o]){let a=e[o],l=r[o];if(!a||!l)return;s.ttl=a,s.start=l,s.now=i||n();let u=s.now-l;s.remainingTTL=a-u}};let i=0,n=()=>{let s=Xr.now();if(this.ttlResolution>0){i=s;let o=setTimeout(()=>i=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#l.get(s);if(o===void 0)return 0;let a=e[o],l=r[o];if(!a||!l)return 1/0;let u=(i||n())-l;return a-u},this.#w=s=>{let o=r[s],a=e[s];return!!a&&!!o&&(i||n())-o>a}}#R=()=>{};#i=()=>{};#P=()=>{};#w=()=>!1;#D(){let e=new Jr(this.#e);this.#h=0,this.#x=e,this.#N=r=>{this.#h-=e[r],e[r]=0},this.#M=(r,i,n,s)=>{if(this.#f(i))return 0;if(!Ft(n))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(n=s(i,r),!Ft(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.#C=(r,i,n)=>{if(e[r]=i,this.#r){let s=this.#r-e[r];for(;this.#h>s;)this.#q(!0)}this.#h+=e[r],n&&(n.entrySize=i,n.totalCalculatedSize=this.#h)}}#N=e=>{};#C=(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]}*#I({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.#I())this.#s[e]!==void 0&&this.#a[e]!==void 0&&!this.#f(this.#s[e])&&(yield[this.#a[e],this.#s[e]])}*keys(){for(let e of this.#O()){let r=this.#a[e];r!==void 0&&!this.#f(this.#s[e])&&(yield r)}}*rkeys(){for(let e of this.#I()){let r=this.#a[e];r!==void 0&&!this.#f(this.#s[e])&&(yield r)}}*values(){for(let e of this.#O())this.#s[e]!==void 0&&!this.#f(this.#s[e])&&(yield this.#s[e])}*rvalues(){for(let e of this.#I())this.#s[e]!==void 0&&!this.#f(this.#s[e])&&(yield this.#s[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,r={}){for(let i of this.#O()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;if(s!==void 0&&e(s,this.#a[i],this))return this.get(this.#a[i],r)}}forEach(e,r=this){for(let i of this.#O()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&e.call(r,s,this.#a[i],this)}}rforEach(e,r=this){for(let i of this.#I()){let n=this.#s[i],s=this.#f(n)?n.__staleWhileFetching:n;s!==void 0&&e.call(r,s,this.#a[i],this)}}purgeStale(){let e=!1;for(let r of this.#I({allowStale:!0}))this.#w(r)&&(this.#L(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.#T){let o=this.#y[r],a=this.#T[r];if(o&&a){let l=o-(Xr.now()-a);s.ttl=l,s.start=Date.now()}}return this.#x&&(s.size=this.#x[r]),s}dump(){let e=[];for(let r of this.#O({allowStale:!0})){let i=this.#a[r],n=this.#s[r],s=this.#f(n)?n.__staleWhileFetching:n;if(s===void 0||i===void 0)continue;let o={value:s};if(this.#y&&this.#T){o.ttl=this.#y[r];let a=Xr.now()-this.#T[r];o.start=Math.floor(Date.now()-a)}this.#x&&(o.size=this.#x[r]),e.unshift([i,o])}return e}load(e){this.clear();for(let[r,i]of e){if(i.start){let n=Date.now()-i.start;i.start=Xr.now()-n}this.set(r,i.value,i)}}set(e,r,i={}){if(r===void 0)return this.delete(e),this;let{ttl:n=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=i,{noUpdateTTL:u=this.noUpdateTTL}=i,f=this.#M(e,r,i.size||0,a);if(this.maxEntrySize&&f>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#L(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.#q(!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.#C(h,f,l),l&&(l.set="add"),u=!1;else{this.#j(h);let c=this.#s[h];if(r!==c){if(this.#b&&this.#f(c)){c.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=c;d!==void 0&&!o&&(this.#v&&this.#n?.(d,e,"set"),this.#c&&this.#p?.push([d,e,"set"]))}else o||(this.#v&&this.#n?.(c,e,"set"),this.#c&&this.#p?.push([c,e,"set"]));if(this.#N(h),this.#C(h,f,l),this.#s[h]=r,l){l.set="replace";let d=c&&this.#f(c)?c.__staleWhileFetching:c;d!==void 0&&(l.oldValue=d)}}else l&&(l.set="update")}if(n!==0&&!this.#y&&this.#A(),this.#y&&(u||this.#P(h,n,s),l&&this.#i(l,h)),!o&&this.#c&&this.#p){let c=this.#p,d;for(;d=c?.shift();)this.#t?.(...d)}return this}pop(){try{for(;this.#u;){let e=this.#s[this.#g];if(this.#q(!0),this.#f(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#c&&this.#p){let e=this.#p,r;for(;r=e?.shift();)this.#t?.(...r)}}}#q(e){let r=this.#g,i=this.#a[r],n=this.#s[r];return this.#b&&this.#f(n)?n.__abortController.abort(new Error("evicted")):(this.#v||this.#c)&&(this.#v&&this.#n?.(n,i,"evict"),this.#c&&this.#p?.push([n,i,"evict"])),this.#N(r),e&&(this.#a[r]=void 0,this.#s[r]=void 0,this.#E.push(r)),this.#u===1?(this.#g=this.#d=0,this.#E.length=0):this.#g=this.#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}#F(e,r,i,n){let s=r===void 0?void 0:this.#s[r];if(this.#f(s))return s;let o=new fo,{signal:a}=i;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:i,context:n},u=(g,x=!1)=>{let{aborted:y}=o.signal,m=i.ignoreFetchAbort&&g!==void 0;if(i.status&&(y&&!x?(i.status.fetchAborted=!0,i.status.fetchError=o.signal.reason,m&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),y&&!m&&!x)return h(o.signal.reason);let S=d;return this.#s[r]===d&&(g===void 0?S.__staleWhileFetching?this.#s[r]=S.__staleWhileFetching:this.#L(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,g,l.options))),g},f=g=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=g),h(g)),h=g=>{let{aborted:x}=o.signal,y=x&&i.allowStaleOnFetchAbort,m=y||i.allowStaleOnFetchRejection,S=m||i.noDeleteOnFetchRejection,E=d;if(this.#s[r]===d&&(!S||E.__staleWhileFetching===void 0?this.#L(e,"fetch"):y||(this.#s[r]=E.__staleWhileFetching)),m)return i.status&&E.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),E.__staleWhileFetching;if(E.__returned===E)throw g},c=(g,x)=>{let y=this.#o?.(e,s,l);y&&y instanceof Promise&&y.then(m=>g(m===void 0?void 0:m),x),o.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(g(void 0),i.allowStaleOnFetchAbort&&(g=m=>u(m,!0)))})};i.status&&(i.status.fetchDispatched=!0);let d=new Promise(c).then(u,f),b=Object.assign(d,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(e,b,{...l.options,status:void 0}),r=this.#l.get(e)):this.#s[r]=b,b}#f(e){if(!this.#b)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof fo}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:c=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:b=this.allowStaleOnFetchAbort,context:g,forceRefresh:x=!1,status:y,signal:m}=r;if(!this.#b)return y&&(y.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:y});let S={allowStale:i,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:u,noUpdateTTL:f,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:c,allowStaleOnFetchAbort:b,ignoreFetchAbort:d,status:y,signal:m},E=this.#l.get(e);if(E===void 0){y&&(y.fetch="miss");let A=this.#F(e,E,S,g);return A.__returned=A}else{let A=this.#s[E];if(this.#f(A)){let T=i&&A.__staleWhileFetching!==void 0;return y&&(y.fetch="inflight",T&&(y.returnedStale=!0)),T?A.__staleWhileFetching:A.__returned=A}let L=this.#w(E);if(!x&&!L)return y&&(y.fetch="hit"),this.#j(E),n&&this.#R(E),y&&this.#i(y,E),A;let v=this.#F(e,E,S,g),w=v.__staleWhileFetching!==void 0&&i;return y&&(y.fetch=L?"stale":"refresh",w&&L&&(y.returnedStale=!0)),w?v.__staleWhileFetching:v.__returned=v}}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.#L(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.#L(e,"delete")}#L(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.#W(r);else{this.#N(n);let s=this.#s[n];if(this.#f(s)?s.__abortController.abort(new Error("deleted")):(this.#v||this.#c)&&(this.#v&&this.#n?.(s,e,r),this.#c&&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.#c&&this.#p?.length){let n=this.#p,s;for(;s=n?.shift();)this.#t?.(...s)}return i}clear(){return this.#W("delete")}#W(e){for(let r of this.#I({allowStale:!0})){let i=this.#s[r];if(this.#f(i))i.__abortController.abort(new Error("deleted"));else{let n=this.#a[r];this.#v&&this.#n?.(i,n,e),this.#c&&this.#p?.push([i,n,e])}}if(this.#l.clear(),this.#s.fill(void 0),this.#a.fill(void 0),this.#y&&this.#T&&(this.#y.fill(0),this.#T.fill(0)),this.#x&&this.#x.fill(0),this.#g=0,this.#d=0,this.#E.length=0,this.#h=0,this.#u=0,this.#c&&this.#p){let r=this.#p,i;for(;i=r?.shift();)this.#t?.(...i)}}};ho.LRUCache=Ku});var sf=p(De=>{"use strict";var P2=De&&De.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(De,"__esModule",{value:!0});De.Minipass=De.isWritable=De.isReadable=De.isStream=void 0;var zw=typeof process=="object"&&process?process:{stdout:null,stderr:null},nf=D("events"),Yw=P2(D("stream")),N2=D("string_decoder"),C2=t=>!!t&&typeof t=="object"&&(t instanceof bo||t instanceof Yw.default||(0,De.isReadable)(t)||(0,De.isWritable)(t));De.isStream=C2;var M2=t=>!!t&&typeof t=="object"&&t instanceof nf.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==Yw.default.Writable.prototype.pipe;De.isReadable=M2;var k2=t=>!!t&&typeof t=="object"&&t instanceof nf.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";De.isWritable=k2;var St=Symbol("EOF"),Et=Symbol("maybeEmitEnd"),Bt=Symbol("emittedEnd"),co=Symbol("emittingEnd"),nn=Symbol("emittedError"),po=Symbol("closed"),$w=Symbol("read"),go=Symbol("flush"),Hw=Symbol("flushChunk"),Ze=Symbol("encoding"),ei=Symbol("decoder"),de=Symbol("flowing"),sn=Symbol("paused"),ti=Symbol("resume"),pe=Symbol("buffer"),Ie=Symbol("pipes"),ge=Symbol("bufferLength"),Qu=Symbol("bufferPush"),yo=Symbol("bufferShift"),Ae=Symbol("objectMode"),le=Symbol("destroyed"),Xu=Symbol("error"),Ju=Symbol("emitData"),Vw=Symbol("emitEnd"),ef=Symbol("emitEnd2"),at=Symbol("async"),tf=Symbol("abort"),mo=Symbol("aborted"),on=Symbol("signal"),dr=Symbol("dataListeners"),Ce=Symbol("discarded"),an=t=>Promise.resolve().then(t),q2=t=>t(),F2=t=>t==="end"||t==="finish"||t==="prefinish",B2=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,j2=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),_o=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()}},rf=class extends _o{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)}},W2=t=>!!t.objectMode,U2=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",bo=class extends nf.EventEmitter{[de]=!1;[sn]=!1;[Ie]=[];[pe]=[];[Ae];[Ze];[at];[ei];[St]=!1;[Bt]=!1;[co]=!1;[po]=!1;[nn]=null;[ge]=0;[le]=!1;[on];[mo]=!1;[dr]=0;[Ce]=!1;writable=!0;readable=!0;constructor(...e){let r=e[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");W2(r)?(this[Ae]=!0,this[Ze]=null):U2(r)?(this[Ze]=r.encoding,this[Ae]=!1):(this[Ae]=!1,this[Ze]=null),this[at]=!!r.async,this[ei]=this[Ze]?new N2.StringDecoder(this[Ze]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[pe]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Ie]});let{signal:i}=r;i&&(this[on]=i,i.aborted?this[tf]():i.addEventListener("abort",()=>this[tf]()))}get bufferLength(){return this[ge]}get encoding(){return this[Ze]}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[Ae]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[at]}set async(e){this[at]=this[at]||!!e}[tf](){this[mo]=!0,this.emit("abort",this[on]?.reason),this.destroy(this[on]?.reason)}get aborted(){return this[mo]}set aborted(e){}write(e,r,i){if(this[mo])return!1;if(this[St])throw new Error("write after end");if(this[le])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(i=r,r="utf8"),r||(r="utf8");let n=this[at]?an:q2;if(!this[Ae]&&!Buffer.isBuffer(e)){if(j2(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(B2(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Ae]?(this[de]&&this[ge]!==0&&this[go](!0),this[de]?this.emit("data",e):this[Qu](e),this[ge]!==0&&this.emit("readable"),i&&n(i),this[de]):e.length?(typeof e=="string"&&!(r===this[Ze]&&!this[ei]?.lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ze]&&(e=this[ei].write(e)),this[de]&&this[ge]!==0&&this[go](!0),this[de]?this.emit("data",e):this[Qu](e),this[ge]!==0&&this.emit("readable"),i&&n(i),this[de]):(this[ge]!==0&&this.emit("readable"),i&&n(i),this[de])}read(e){if(this[le])return null;if(this[Ce]=!1,this[ge]===0||e===0||e&&e>this[ge])return this[Et](),null;this[Ae]&&(e=null),this[pe].length>1&&!this[Ae]&&(this[pe]=[this[Ze]?this[pe].join(""):Buffer.concat(this[pe],this[ge])]);let r=this[$w](e||null,this[pe][0]);return this[Et](),r}[$w](e,r){if(this[Ae])this[yo]();else{let i=r;e===i.length||e===null?this[yo]():typeof i=="string"?(this[pe][0]=i.slice(e),r=i.slice(0,e),this[ge]-=e):(this[pe][0]=i.subarray(e),r=i.subarray(0,e),this[ge]-=e)}return this.emit("data",r),!this[pe].length&&!this[St]&&this.emit("drain"),r}end(e,r,i){return typeof e=="function"&&(i=e,e=void 0),typeof r=="function"&&(i=r,r="utf8"),e!==void 0&&this.write(e,r),i&&this.once("end",i),this[St]=!0,this.writable=!1,(this[de]||!this[sn])&&this[Et](),this}[ti](){this[le]||(!this[dr]&&!this[Ie].length&&(this[Ce]=!0),this[sn]=!1,this[de]=!0,this.emit("resume"),this[pe].length?this[go]():this[St]?this[Et]():this.emit("drain"))}resume(){return this[ti]()}pause(){this[de]=!1,this[sn]=!0,this[Ce]=!1}get destroyed(){return this[le]}get flowing(){return this[de]}get paused(){return this[sn]}[Qu](e){this[Ae]?this[ge]+=1:this[ge]+=e.length,this[pe].push(e)}[yo](){return this[Ae]?this[ge]-=1:this[ge]-=this[pe][0].length,this[pe].shift()}[go](e=!1){do;while(this[Hw](this[yo]())&&this[pe].length);!e&&!this[pe].length&&!this[St]&&this.emit("drain")}[Hw](e){return this.emit("data",e),this[de]}pipe(e,r){if(this[le])return e;this[Ce]=!1;let i=this[Bt];return r=r||{},e===zw.stdout||e===zw.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,i?r.end&&e.end():(this[Ie].push(r.proxyErrors?new rf(this,e,r):new _o(this,e,r)),this[at]?an(()=>this[ti]()):this[ti]()),e}unpipe(e){let r=this[Ie].find(i=>i.dest===e);r&&(this[Ie].length===1?(this[de]&&this[dr]===0&&(this[de]=!1),this[Ie]=[]):this[Ie].splice(this[Ie].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let i=super.on(e,r);if(e==="data")this[Ce]=!1,this[dr]++,!this[Ie].length&&!this[de]&&this[ti]();else if(e==="readable"&&this[ge]!==0)super.emit("readable");else if(F2(e)&&this[Bt])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[nn]){let n=r;this[at]?an(()=>n.call(this,this[nn])):n.call(this,this[nn])}return i}removeListener(e,r){return this.off(e,r)}off(e,r){let i=super.off(e,r);return e==="data"&&(this[dr]=this.listeners("data").length,this[dr]===0&&!this[Ce]&&!this[Ie].length&&(this[de]=!1)),i}removeAllListeners(e){let r=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[dr]=0,!this[Ce]&&!this[Ie].length&&(this[de]=!1)),r}get emittedEnd(){return this[Bt]}[Et](){!this[co]&&!this[Bt]&&!this[le]&&this[pe].length===0&&this[St]&&(this[co]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[po]&&this.emit("close"),this[co]=!1)}emit(e,...r){let i=r[0];if(e!=="error"&&e!=="close"&&e!==le&&this[le])return!1;if(e==="data")return!this[Ae]&&!i?!1:this[at]?(an(()=>this[Ju](i)),!0):this[Ju](i);if(e==="end")return this[Vw]();if(e==="close"){if(this[po]=!0,!this[Bt]&&!this[le])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[nn]=i,super.emit(Xu,i);let s=!this[on]||this.listeners("error").length?super.emit("error",i):!1;return this[Et](),s}else if(e==="resume"){let s=super.emit("resume");return this[Et](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let n=super.emit(e,...r);return this[Et](),n}[Ju](e){for(let i of this[Ie])i.dest.write(e)===!1&&this.pause();let r=this[Ce]?!1:super.emit("data",e);return this[Et](),r}[Vw](){return this[Bt]?!1:(this[Bt]=!0,this.readable=!1,this[at]?(an(()=>this[ef]()),!0):this[ef]())}[ef](){if(this[ei]){let r=this[ei].end();if(r){for(let i of this[Ie])i.dest.write(r);this[Ce]||super.emit("data",r)}}for(let r of this[Ie])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[Ae]||(e.dataLength=0);let r=this.promise();return this.on("data",i=>{e.push(i),this[Ae]||(e.dataLength+=i.length)}),await r,e}async concat(){if(this[Ae])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Ze]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,r)=>{this.on(le,()=>r(new Error("stream destroyed"))),this.on("error",i=>r(i)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[Ce]=!1;let e=!1,r=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return r();let n=this.read();if(n!==null)return Promise.resolve({done:!1,value:n});if(this[St])return r();let s,o,a=h=>{this.off("data",l),this.off("end",u),this.off(le,f),r(),o(h)},l=h=>{this.off("error",a),this.off("end",u),this.off(le,f),this.pause(),s({value:h,done:!!this[St]})},u=()=>{this.off("error",a),this.off("data",l),this.off(le,f),r(),s({done:!0,value:void 0})},f=()=>a(new Error("stream destroyed"));return new Promise((h,c)=>{o=c,s=h,this.once(le,f),this.once("error",a),this.once("end",u),this.once("data",l)})},throw:r,return:r,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[Ce]=!1;let e=!1,r=()=>(this.pause(),this.off(Xu,r),this.off(le,r),this.off("end",r),e=!0,{done:!0,value:void 0}),i=()=>{if(e)return r();let n=this.read();return n===null?r():{done:!1,value:n}};return this.once("end",r),this.once(Xu,r),this.once(le,r),{next:i,throw:r,return:r,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[le])return e?this.emit("error",e):this.emit(le),this;this[le]=!0,this[Ce]=!0,this[pe].length=0,this[ge]=0;let r=this;return typeof r.close=="function"&&!this[po]&&r.close(),e?this.emit("error",e):this.emit(le),this}static get isStream(){return De.isStream}};De.Minipass=bo});var u0=p(H=>{"use strict";var G2=H&&H.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),z2=H&&H.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$2=H&&H.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&G2(e,t,r);return z2(e,t),e};Object.defineProperty(H,"__esModule",{value:!0});H.PathScurry=H.Path=H.PathScurryDarwin=H.PathScurryPosix=H.PathScurryWin32=H.PathScurryBase=H.PathPosix=H.PathWin32=H.PathBase=H.ChildrenCache=H.ResolveCache=void 0;var e0=Gw(),xo=D("path"),H2=D("url"),un=D("fs"),V2=$2(D("fs")),Y2=un.realpathSync.native,wo=D("fs/promises"),Zw=sf(),fn={lstatSync:un.lstatSync,readdir:un.readdir,readdirSync:un.readdirSync,readlinkSync:un.readlinkSync,realpathSync:Y2,promises:{lstat:wo.lstat,readdir:wo.readdir,readlink:wo.readlink,realpath:wo.realpath}},t0=t=>!t||t===fn||t===V2?fn:{...fn,...t,promises:{...fn.promises,...t.promises||{}}},r0=/^\\\\\?\\([a-z]:)\\?$/i,Z2=t=>t.replace(/\//g,"\\").replace(r0,"$1\\"),K2=/[\\\/]/,Ge=0,i0=1,n0=2,lt=4,s0=6,o0=8,pr=10,a0=12,Ue=15,ln=~Ue,of=16,Kw=32,hn=64,Ke=128,So=256,vo=512,Qw=hn|Ke|vo,Q2=1023,af=t=>t.isFile()?o0:t.isDirectory()?lt:t.isSymbolicLink()?pr:t.isCharacterDevice()?n0:t.isBlockDevice()?s0:t.isSocket()?a0:t.isFIFO()?i0:Ge,Xw=new Map,cn=t=>{let e=Xw.get(t);if(e)return e;let r=t.normalize("NFKD");return Xw.set(t,r),r},Jw=new Map,Eo=t=>{let e=Jw.get(t);if(e)return e;let r=cn(t.toLowerCase());return Jw.set(t,r),r},dn=class extends e0.LRUCache{constructor(){super({max:256})}};H.ResolveCache=dn;var To=class extends e0.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:r=>r.length+1})}};H.ChildrenCache=To;var l0=Symbol("PathScurry setAsCwd"),Se=class{name;root;roots;parent;nocase;isCWD=!1;#e;#r;get dev(){return this.#r}#n;get mode(){return this.#n}#t;get nlink(){return this.#t}#o;get uid(){return this.#o}#S;get gid(){return this.#S}#u;get rdev(){return this.#u}#h;get blksize(){return this.#h}#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}#x;get ctime(){return this.#x}#T;get birthtime(){return this.#T}#y;#v;#b;#c;#A;#R;#i;#P;#w;#D;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,r=Ge,i,n,s,o,a){this.name=e,this.#y=s?Eo(e):cn(e),this.#i=r&Q2,this.nocase=s,this.roots=n,this.root=i||this,this.#P=o,this.#b=a.fullpath,this.#A=a.relative,this.#R=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=t0(a.fs)}depth(){return this.#v!==void 0?this.#v:this.parent?this.#v=this.parent.depth()+1:this.#v=0}childrenCache(){return this.#P}resolve(e){if(!e)return this;let r=this.getRootString(e),n=e.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#N(n):this.#N(n)}#N(e){let r=this;for(let i of e)r=r.child(i);return r}children(){let e=this.#P.get(this);if(e)return e;let r=Object.assign([],{provisional:0});return this.#P.set(this,r),this.#i&=~of,r}child(e,r){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let i=this.children(),n=this.nocase?Eo(e):cn(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,Ge,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#i|=Ke),i.push(a),a}relative(){if(this.isCWD)return"";if(this.#A!==void 0)return this.#A;let e=this.name,r=this.parent;if(!r)return this.#A=this.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.#c!==void 0)return this.#c;if(this.sep==="/")return this.#c=this.fullpath();if(!this.parent){let n=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(n)?this.#c=`//?/${n}`:this.#c=n}let e=this.parent,r=e.fullpathPosix(),i=r+(!r||!e.parent?"":"/")+this.name;return this.#c=i}isUnknown(){return(this.#i&Ue)===Ge}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#i&Ue)===o0}isDirectory(){return(this.#i&Ue)===lt}isCharacterDevice(){return(this.#i&Ue)===n0}isBlockDevice(){return(this.#i&Ue)===s0}isFIFO(){return(this.#i&Ue)===i0}isSocket(){return(this.#i&Ue)===a0}isSymbolicLink(){return(this.#i&pr)===pr}lstatCached(){return this.#i&Kw?this:void 0}readlinkCached(){return this.#w}realpathCached(){return this.#D}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#w)return!0;if(!this.parent)return!1;let e=this.#i&Ue;return!(e!==Ge&&e!==pr||this.#i&So||this.#i&Ke)}calledReaddir(){return!!(this.#i&of)}isENOENT(){return!!(this.#i&Ke)}isNamed(e){return this.nocase?this.#y===Eo(e):this.#y===cn(e)}async readlink(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),i=(await this.parent.realpath())?.resolve(r);if(i)return this.#w=i}catch(r){this.#f(r.code);return}}readlinkSync(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),i=this.parent.realpathSync()?.resolve(r);if(i)return this.#w=i}catch(r){this.#f(r.code);return}}#C(e){this.#i|=of;for(let r=e.provisional;r<e.length;r++){let i=e[r];i&&i.#M()}}#M(){this.#i&Ke||(this.#i=(this.#i|Ke)&ln,this.#O())}#O(){let e=this.children();e.provisional=0;for(let r of e)r.#M()}#I(){this.#i|=vo,this.#k()}#k(){if(this.#i&hn)return;let e=this.#i;(e&Ue)===lt&&(e&=ln),this.#i=e|hn,this.#O()}#q(e=""){e==="ENOTDIR"||e==="EPERM"?this.#k():e==="ENOENT"?this.#M():this.children().provisional=0}#F(e=""){e==="ENOTDIR"?this.parent.#k():e==="ENOENT"&&this.#M()}#f(e=""){let r=this.#i;r|=So,e==="ENOENT"&&(r|=Ke),(e==="EINVAL"||e==="UNKNOWN")&&(r&=ln),this.#i=r,e==="ENOTDIR"&&this.parent&&this.parent.#k()}#B(e,r){return this.#L(e,r)||this.#j(e,r)}#j(e,r){let i=af(e),n=this.newChild(e.name,i,{parent:this}),s=n.#i&Ue;return s!==lt&&s!==pr&&s!==Ge&&(n.#i|=hn),r.unshift(n),r.provisional++,n}#L(e,r){for(let i=r.provisional;i<r.length;i++){let n=r[i];if((this.nocase?Eo(e.name):cn(e.name))===n.#y)return this.#W(e,n,i,r)}}#W(e,r,i,n){let s=r.name;return r.#i=r.#i&ln|af(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&Ke)===0)try{return this.#$(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#F(e.code)}}lstatSync(){if((this.#i&Ke)===0)try{return this.#$(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#F(e.code)}}#$(e){let{atime:r,atimeMs:i,birthtime:n,birthtimeMs:s,blksize:o,blocks:a,ctime:l,ctimeMs:u,dev:f,gid:h,ino:c,mode:d,mtime:b,mtimeMs:g,nlink:x,rdev:y,size:m,uid:S}=e;this.#E=r,this.#m=i,this.#T=n,this.#d=s,this.#h=o,this.#s=a,this.#x=l,this.#g=u,this.#r=f,this.#S=h,this.#l=c,this.#n=d,this.#p=b,this.#_=g,this.#t=x,this.#u=y,this.#a=m,this.#o=S;let E=af(e);this.#i=this.#i&ln|E|Kw,E!==Ge&&E!==lt&&E!==pr&&(this.#i|=hn)}#G=[];#z=!1;#H(e){this.#z=!1;let r=this.#G.slice();this.#G.length=0,r.forEach(i=>i(null,e))}readdirCB(e,r=!1){if(!this.canReaddir()){r?e(null,[]):queueMicrotask(()=>e(null,[]));return}let i=this.children();if(this.calledReaddir()){let s=i.slice(0,i.provisional);r?e(null,s):queueMicrotask(()=>e(null,s));return}if(this.#G.push(e),this.#z)return;this.#z=!0;let n=this.fullpath();this.#e.readdir(n,{withFileTypes:!0},(s,o)=>{if(s)this.#q(s.code),i.provisional=0;else{for(let a of o)this.#B(a,i);this.#C(i)}this.#H(i.slice(0,i.provisional))})}#U;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.#U)await this.#U;else{let i=()=>{};this.#U=new Promise(n=>i=n);try{for(let n of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#B(n,e);this.#C(e)}catch(n){this.#q(n.code),e.provisional=0}this.#U=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.#C(e)}catch(i){this.#q(i.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#i&Qw)return!1;let e=Ue&this.#i;return e===Ge||e===lt||e===pr}shouldWalk(e,r){return(this.#i<)===lt&&!(this.#i&Qw)&&!e.has(this)&&(!r||r(this))}async realpath(){if(this.#D)return this.#D;if(!((vo|So|Ke)&this.#i))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#D=this.resolve(e)}catch{this.#I()}}realpathSync(){if(this.#D)return this.#D;if(!((vo|So|Ke)&this.#i))try{let e=this.#e.realpathSync(this.fullpath());return this.#D=this.resolve(e)}catch{this.#I()}}[l0](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.#A=i.join(this.sep),n.#R=i.join("/"),n=n.parent,i.push("..");for(n=e;n&&n.parent&&!r.has(n);)n.#A=void 0,n.#R=void 0,n=n.parent}};H.PathBase=Se;var pn=class t extends Se{sep="\\";splitSep=K2;constructor(e,r=Ge,i,n,s,o,a){super(e,r,i,n,s,o,a)}newChild(e,r=Ge,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(e){return xo.win32.parse(e).root}getRoot(e){if(e=Z2(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 mn(e,this).root}sameRoot(e,r=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(r0,"$1\\"),e===r}};H.PathWin32=pn;var gn=class t extends Se{splitSep="/";sep="/";constructor(e,r=Ge,i,n,s,o,a){super(e,r,i,n,s,o,a)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,r=Ge,i={}){return new t(e,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}};H.PathPosix=gn;var yn=class{root;rootPath;roots;cwd;#e;#r;#n;nocase;#t;constructor(e=process.cwd(),r,i,{nocase:n,childrenCacheSize:s=16*1024,fs:o=fn}={}){this.#t=t0(o),(e instanceof URL||e.startsWith("file://"))&&(e=(0,H2.fileURLToPath)(e));let a=r.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new dn,this.#r=new dn,this.#n=new To(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,c=this.rootPath,d=!1;for(let b of l){let g=f--;u=u.child(b,{relative:new Array(g).fill("..").join(h),relativePosix:new Array(g).fill("..").join("/"),fullpath:c+=(d?"":h)+b}),d=!0}this.cwd=u}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#n}resolve(...e){let r="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let i=this.#e.get(r);if(i!==void 0)return i;let n=this.cwd.resolve(r).fullpath();return this.#e.set(r,n),n}resolvePosix(...e){let r="";for(let s=e.length-1;s>=0;s--){let o=e[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let i=this.#r.get(r);if(i!==void 0)return i;let n=this.cwd.resolve(r).fullpathPosix();return this.#r.set(r,n),n}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i}=r;if(e.canReaddir()){let n=await e.readdir();return i?n:n.map(s=>s.name)}else return[]}readdirSync(e=this.cwd,r={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0}=r;return e.canReaddir()?i?e.readdirSync():e.readdirSync().map(n=>n.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=await e.readlink();return r?i:i?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=e.readlinkSync();return r?i:i?.fullpath()}async realpath(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=await e.realpath();return r?i:i?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e.withFileTypes,e=this.cwd);let i=e.realpathSync();return r?i:i?.fullpath()}async walk(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(e))&&a.push(i?e:e.fullpath());let l=new Set,u=(h,c)=>{l.add(h),h.readdirCB((d,b)=>{if(d)return c(d);let g=b.length;if(!g)return c();let x=()=>{--g===0&&c()};for(let y of b)(!s||s(y))&&a.push(i?y:y.fullpath()),n&&y.isSymbolicLink()?y.realpath().then(m=>m?.isUnknown()?m.lstat():m).then(m=>m?.shouldWalk(l,o)?u(m,x):x()):y.shouldWalk(l,o)?u(y,x):x()},!0)},f=e;return new Promise((h,c)=>{u(f,d=>{if(d)return c(d);h(a)})})}walkSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(e))&&a.push(i?e:e.fullpath());let l=new Set([e]);for(let u of l){let f=u.readdirSync();for(let h of f){(!s||s(h))&&a.push(i?h:h.fullpath());let c=h;if(h.isSymbolicLink()){if(!(n&&(c=h.realpathSync())))continue;c.isUnknown()&&c.lstatSync()}c.shouldWalk(l,o)&&l.add(c)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,r={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd),this.stream(e,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r;(!s||s(e))&&(yield i?e:e.fullpath());let a=new Set([e]);for(let l of a){let u=l.readdirSync();for(let f of u){(!s||s(f))&&(yield i?f:f.fullpath());let 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 Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new Zw.Minipass({objectMode:!0});(!s||s(e))&&a.write(i?e:e.fullpath());let l=new Set,u=[e],f=0,h=()=>{let c=!1;for(;!c;){let d=u.shift();if(!d){f===0&&a.end();return}f++,l.add(d);let b=(x,y,m=!1)=>{if(x)return a.emit("error",x);if(n&&!m){let S=[];for(let E of y)E.isSymbolicLink()&&S.push(E.realpath().then(A=>A?.isUnknown()?A.lstat():A));if(S.length){Promise.all(S).then(()=>b(null,y,!0));return}}for(let S of y)S&&(!s||s(S))&&(a.write(i?S:S.fullpath())||(c=!0));f--;for(let S of y){let E=S.realpathCached()||S;E.shouldWalk(l,o)&&u.push(E)}c&&!a.flowing?a.once("drain",h):g||h()},g=!0;d.readdirCB(b,!0),g=!1}};return h(),a}streamSync(e=this.cwd,r={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Se||(r=e,e=this.cwd);let{withFileTypes:i=!0,follow:n=!1,filter:s,walkFilter:o}=r,a=new Zw.Minipass({objectMode:!0}),l=new Set;(!s||s(e))&&a.write(i?e:e.fullpath());let u=[e],f=0,h=()=>{let c=!1;for(;!c;){let d=u.shift();if(!d){f===0&&a.end();return}f++,l.add(d);let b=d.readdirSync();for(let g of b)(!s||s(g))&&(a.write(i?g:g.fullpath())||(c=!0));f--;for(let g of b){let x=g;if(g.isSymbolicLink()){if(!(n&&(x=g.realpathSync())))continue;x.isUnknown()&&x.lstatSync()}x.shouldWalk(l,o)&&u.push(x)}}c&&!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[l0](r)}};H.PathScurryBase=yn;var mn=class extends yn{sep="\\";constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,xo.win32,"\\",{...r,nocase:i}),this.nocase=i;for(let n=this.cwd;n;n=n.parent)n.nocase=this.nocase}parseRootPath(e){return xo.win32.parse(e).root.toUpperCase()}newRoot(e){return new pn(this.rootPath,lt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};H.PathScurryWin32=mn;var _n=class extends yn{sep="/";constructor(e=process.cwd(),r={}){let{nocase:i=!1}=r;super(e,xo.posix,"/",{...r,nocase:i}),this.nocase=i}parseRootPath(e){return"/"}newRoot(e){return new gn(this.rootPath,lt,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};H.PathScurryPosix=_n;var Ao=class extends _n{constructor(e=process.cwd(),r={}){let{nocase:i=!0}=r;super(e,{...r,nocase:i})}};H.PathScurryDarwin=Ao;H.Path=process.platform==="win32"?pn:gn;H.PathScurry=process.platform==="win32"?mn:process.platform==="darwin"?Ao:_n});var uf=p(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.Pattern=void 0;var X2=qt(),J2=t=>t.length>=1,ek=t=>t.length>=1,lf=class t{#e;#r;#n;length;#t;#o;#S;#u;#h;#l;#a=!0;constructor(e,r,i,n){if(!J2(e))throw new TypeError("empty pattern list");if(!ek(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,c,d,...b]=this.#r;u[0]===""&&(u.shift(),b.shift());let g=[s,o,a,l,""].join("/"),x=[f,h,c,d,""].join("/");this.#e=[g,...u],this.#r=[x,...b],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]===X2.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.#h=this.#h,this.#o.#u=this.#u,this.#o):this.#o=null}isUNC(){let e=this.#e;return this.#h!==void 0?this.#h:this.#h=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)}};Ro.Pattern=lf});var hf=p(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.Ignore=void 0;var f0=qt(),tk=uf(),rk=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",ff=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:r,nocase:i,noext:n,noglobstar:s,platform:o=rk}){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 f0.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 tk.Pattern(n,s,0,this.platform),a=new f0.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}};Oo.Ignore=ff});var c0=p(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.Processor=ut.SubWalks=ut.MatchRecord=ut.HasWalkedCache=void 0;var h0=qt(),Io=class t{store;constructor(e=new Map){this.store=e}copy(){return new t(new Map(this.store))}hasWalked(e,r){return this.store.get(e.fullpath())?.has(r.globString())}storeWalked(e,r){let i=e.fullpath(),n=this.store.get(i);n?n.add(r.globString()):this.store.set(i,new Set([r.globString()]))}};ut.HasWalkedCache=Io;var Do=class{store=new Map;add(e,r,i){let n=(r?2:0)|(i?1:0),s=this.store.get(e);this.store.set(e,s===void 0?n:n&s)}entries(){return[...this.store.entries()].map(([e,r])=>[e,!!(r&2),!!(r&1)])}};ut.MatchRecord=Do;var Lo=class{store=new Map;add(e,r){if(!e.canReaddir())return;let i=this.store.get(e);i?i.find(n=>n.globString()===r.globString())||i.push(r):this.store.set(e,[r])}get(e){let r=this.store.get(e);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};ut.SubWalks=Lo;var cf=class t{hasWalkedCache;matches=new Do;subwalks=new Lo;patterns;follow;dot;opts;constructor(e,r){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=r?r.copy():new Io}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===h0.GLOBSTAR){(!n.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(n,s);let h=u?.pattern(),c=u?.rest();if(!u||(h===""||h===".")&&!c)this.matches.add(n,a,h===""||h===".");else if(h===".."){let d=n.parent||n;c?this.hasWalkedCache.hasWalked(d,c)||this.subwalks.add(d,c):this.matches.add(d,a,!0)}}else l instanceof RegExp&&this.subwalks.add(n,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(e,r){let i=this.subwalks.get(e),n=this.child();for(let s of r)for(let o of i){let a=o.isAbsolute(),l=o.pattern(),u=o.rest();l===h0.GLOBSTAR?n.testGlobstar(s,o,u,a):l instanceof RegExp?n.testRegExp(s,l,u,a):n.testString(s,l,u,a)}return n}testGlobstar(e,r,i,n){if((this.dot||!e.name.startsWith("."))&&(r.hasMore()||this.matches.add(e,n,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,r):e.isSymbolicLink()&&(i&&r.checkFollowGlobstar()?this.subwalks.add(e,i):r.markFollowGlobstar()&&this.subwalks.add(e,r)))),i){let s=i.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(e,s,i.rest(),n);else if(s===".."){let o=e.parent||e;this.subwalks.add(o,i)}else s instanceof RegExp&&this.testRegExp(e,s,i.rest(),n)}}testRegExp(e,r,i,n){r.test(e.name)&&(i?this.subwalks.add(e,i):this.matches.add(e,n,!1))}testString(e,r,i,n){e.isNamed(r)&&(i?this.subwalks.add(e,i):this.matches.add(e,n,!1))}};ut.Processor=cf});var g0=p(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.GlobStream=jt.GlobWalker=jt.GlobUtil=void 0;var ik=sf(),d0=hf(),p0=c0(),nk=(t,e)=>typeof t=="string"?new d0.Ignore([t],e):Array.isArray(t)?new d0.Ignore(t,e):t,bn=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=nk(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 p0.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 p0.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()}};jt.GlobUtil=bn;var df=class extends bn{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}};jt.GlobWalker=df;var pf=class extends bn{results;constructor(e,r,i){super(e,r,i),this.results=new ik.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}};jt.GlobStream=pf});var yf=p(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.Glob=void 0;var sk=qt(),ok=D("url"),Po=u0(),ak=uf(),No=g0(),lk=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",gf=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,ok.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||lk,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"?Po.PathScurryWin32:r.platform==="darwin"?Po.PathScurryDarwin:r.platform?Po.PathScurryPosix:Po.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 sk.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 ak.Pattern(l,f,0,this.platform)})}async walk(){return[...await new No.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 No.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 No.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 No.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()}};Co.Glob=gf});var mf=p(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.hasMagic=void 0;var uk=qt(),fk=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let r of t)if(new uk.Minimatch(r,e).hasMagic())return!0;return!1};Mo.hasMagic=fk});var b0=p(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});W.glob=W.sync=W.iterate=W.iterateSync=W.stream=W.streamSync=W.Ignore=W.hasMagic=W.Glob=W.unescape=W.escape=void 0;W.globStreamSync=wn;W.globStream=_f;W.globSync=bf;W.globIterateSync=Sn;W.globIterate=wf;var y0=qt(),gr=yf(),hk=mf(),_0=qt();Object.defineProperty(W,"escape",{enumerable:!0,get:function(){return _0.escape}});Object.defineProperty(W,"unescape",{enumerable:!0,get:function(){return _0.unescape}});var ck=yf();Object.defineProperty(W,"Glob",{enumerable:!0,get:function(){return ck.Glob}});var dk=mf();Object.defineProperty(W,"hasMagic",{enumerable:!0,get:function(){return dk.hasMagic}});var pk=hf();Object.defineProperty(W,"Ignore",{enumerable:!0,get:function(){return pk.Ignore}});function wn(t,e={}){return new gr.Glob(t,e).streamSync()}function _f(t,e={}){return new gr.Glob(t,e).stream()}function bf(t,e={}){return new gr.Glob(t,e).walkSync()}async function m0(t,e={}){return new gr.Glob(t,e).walk()}function Sn(t,e={}){return new gr.Glob(t,e).iterateSync()}function wf(t,e={}){return new gr.Glob(t,e).iterate()}W.streamSync=wn;W.stream=Object.assign(_f,{sync:wn});W.iterateSync=Sn;W.iterate=Object.assign(wf,{sync:Sn});W.sync=Object.assign(bf,{stream:wn,iterate:Sn});W.glob=Object.assign(m0,{glob:m0,globSync:bf,sync:W.sync,globStream:_f,stream:W.stream,globStreamSync:wn,streamSync:W.streamSync,globIterate:wf,iterate:W.iterate,globIterateSync:Sn,iterateSync:W.iterateSync,Glob:gr.Glob,hasMagic:hk.hasMagic,escape:y0.escape,unescape:y0.unescape});W.glob.glob=W.glob});var v0=p((S6,E0)=>{"use strict";var S0=Wa(),ri=D("path"),Sf=H_(),gk=aw(),yk=_w(),mk=Tw(),_k=b0(),yr=E0.exports={},w0=/[\/\\]/g,bk=function(t,e){var r=[];return Sf(t).forEach(function(i){var n=i.indexOf("!")===0;n&&(i=i.slice(1));var s=e(i);n?r=gk(r,s):r=yk(r,s)}),r};yr.exists=function(){var t=ri.join.apply(ri,arguments);return S0.existsSync(t)};yr.expand=function(...t){var e=mk(t[0])?t.shift():{},r=Array.isArray(t[0])?t[0]:t;if(r.length===0)return[];var i=bk(r,function(n){return _k.sync(n,e)});return e.filter&&(i=i.filter(function(n){n=ri.join(e.cwd||"",n);try{return typeof e.filter=="function"?e.filter(n):S0.statSync(n)[e.filter]()}catch{return!1}})),i};yr.expandMapping=function(t,e,r){r=Object.assign({rename:function(s,o){return ri.join(s||"",o)}},r);var i=[],n={};return yr.expand(r,t).forEach(function(s){var o=s;r.flatten&&(o=ri.basename(o)),r.ext&&(o=o.replace(/(\.[^\/]*)?$/,r.ext));var a=r.rename(e,o,r);r.cwd&&(s=ri.join(r.cwd,s)),a=a.replace(w0,"/"),s=s.replace(w0,"/"),n[a]?n[a].src.push(s):(i.push({src:[s],dest:a}),n[a]=i[i.length-1])}),i};yr.normalizeFilesArray=function(t){var e=[];return t.forEach(function(r){var i;("src"in r||"dest"in r)&&e.push(r)}),e.length===0?[]:(e=_(e).chain().forEach(function(r){!("src"in r)||!r.src||(Array.isArray(r.src)?r.src=Sf(r.src):r.src=[r.src])}).map(function(r){var i=Object.assign({},r);if(delete i.src,delete i.dest,r.expand)return yr.expandMapping(r.src,r.dest,i).map(function(s){var o=Object.assign({},r);return o.orig=Object.assign({},r),o.src=s.src,o.dest=s.dest,["expand","cwd","flatten","rename","ext"].forEach(function(a){delete o[a]}),o});var n=Object.assign({},r);return n.orig=Object.assign({},r),"src"in n&&Object.defineProperty(n,"src",{enumerable:!0,get:function s(){var o;return"result"in s||(o=r.src,o=Array.isArray(o)?Sf(o):[o],s.result=yr.expand(i,o)),s.result}}),"dest"in n&&(n.dest=r.dest),n}).flatten().value(),e)}});var ii=p((v6,A0)=>{"use strict";var Ef=Wa(),x0=D("path"),wk=es(),Sk=Zd(),T0=hl(),Ek=Ig(),E6=D("stream").Stream,vk=hr().PassThrough,Me=A0.exports={};Me.file=v0();Me.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)})};Me.dateify=function(t){return t=t||new Date,t instanceof Date?t=t:typeof t=="string"?t=new Date(t):t=new Date,t};Me.defaults=function(t,e,r){var i=arguments;return i[0]=i[0]||{},Ek(...i)};Me.isStream=function(t){return wk(t)};Me.lazyReadStream=function(t){return new Sk.Readable(function(){return Ef.createReadStream(t)})};Me.normalizeInputSource=function(t){return t===null?Buffer.alloc(0):typeof t=="string"?Buffer.from(t):Me.isStream(t)?t.pipe(new vk):t};Me.sanitizePath=function(t){return T0(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};Me.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};Me.unixifyPath=function(t){return T0(t,!1).replace(/^\w+:/,"")};Me.walkdir=function(t,e,r){var i=[];typeof e=="function"&&(r=e,e=t),Ef.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=x0.join(t,a),Ef.stat(l,function(f,h){i.push({path:l,relative:x0.relative(e,l).replace(/\\/g,"/"),stats:h}),h&&h.isDirectory()?Me.walkdir(l,e,function(c,d){if(c)return r(c);d.forEach(function(b){i.push(b)}),u()}):u()})})()})}});var D0=p((O0,I0)=>{"use strict";var xk=D("util"),Tk={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 R0(t,e){Error.captureStackTrace(this,this.constructor),this.message=Tk[t]||t,this.code=t,this.data=e}xk.inherits(R0,Error);O0=I0.exports=R0});var M0=p((x6,C0)=>{"use strict";var Tf=D("fs"),P0=Uh(),L0=(Wc(),OE(jc)),vf=D("path"),ft=ii(),Ak=D("util").inherits,ae=D0(),N0=hr().Transform,xf=process.platform==="win32",z=function(t,e){if(!(this instanceof z))return new z(t,e);typeof t!="string"&&(e=t,t="zip"),e=this.options=ft.defaults(e,{highWaterMark:1024*1024,statConcurrency:4}),N0.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=L0.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=L0.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=[]};Ak(z,N0);z.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};z.prototype._append=function(t,e){e=e||{};var r={source:null,filepath:t};e.name||(e.name=t),e.sourcePath=t,r.data=e,this._entriesCount++,e.stats&&e.stats instanceof Tf.Stats?(r=this._updateQueueTaskWithStats(r,e.stats),r&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(r))):this._statQueue.push(r)};z.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)};z.prototype._maybeFinalize=function(){return this._state.finalizing||this._state.finalized||this._state.aborted?!1:this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()?(this._finalize(),!0):!1};z.prototype._moduleAppend=function(t,e,r){if(this._state.aborted){r();return}this._module.append(t,e,function(i){if(this._task=null,this._state.aborted){this._shutdown();return}if(i){this.emit("error",i),setImmediate(r);return}this.emit("entry",e),this._entriesProcessedCount++,e.stats&&e.stats.size&&(this._fsEntriesProcessedBytes+=e.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(r)}.bind(this))};z.prototype._moduleFinalize=function(){typeof this._module.finalize=="function"?this._module.finalize():typeof this._module.end=="function"?this._module.end():this.emit("error",new ae("NOENDMETHOD"))};z.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};z.prototype._moduleSupports=function(t){return!this._module.supports||!this._module.supports[t]?!1:this._module.supports[t]};z.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};z.prototype._normalizeEntryData=function(t,e){t=ft.defaults(t,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),e&&t.stats===!1&&(t.stats=e);var r=t.type==="directory";return t.name&&(typeof t.prefix=="string"&&t.prefix!==""&&(t.name=t.prefix+"/"+t.name,t.prefix=null),t.name=ft.sanitizePath(t.name),t.type!=="symlink"&&t.name.slice(-1)==="/"?(r=!0,t.type="directory"):r&&(t.name+="/")),typeof t.mode=="number"?xf?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(xf?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,xf&&r&&(t.mode=493)):t.mode===null&&(t.mode=r?493:420),t.stats&&t.date===null?t.date=t.stats.mtime:t.date=ft.dateify(t.date),t};z.prototype._onModuleError=function(t){this.emit("error",t)};z.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()};z.prototype._onQueueTask=function(t,e){var r=()=>{t.data.callback&&t.data.callback(),e()};if(this._state.finalizing||this._state.finalized||this._state.aborted){r();return}this._task=t,this._moduleAppend(t.source,t.data,r)};z.prototype._onStatQueueTask=function(t,e){if(this._state.finalizing||this._state.finalized||this._state.aborted){e();return}Tf.lstat(t.filepath,function(r,i){if(this._state.aborted){setImmediate(e);return}if(r){this._entriesCount--,this.emit("warning",r),setImmediate(e);return}t=this._updateQueueTaskWithStats(t,i),t&&(i.size&&(this._fsEntriesTotalBytes+=i.size),this._queue.push(t)),setImmediate(e)}.bind(this))};z.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};z.prototype._transform=function(t,e,r){t&&(this._pointer+=t.length),r(null,t)};z.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=ft.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=ft.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=ft.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else if(e.isSymbolicLink()&&this._moduleSupports("symlink")){var r=Tf.readlinkSync(t.filepath),i=vf.dirname(t.filepath);t.data.type="symlink",t.data.linkname=vf.relative(i,vf.resolve(i,r)),t.data.sourceType="buffer",t.source=Buffer.concat([])}else return e.isDirectory()?this.emit("warning",new ae("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new ae("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new ae("ENTRYNOTSUPPORTED",t.data)),null;return t.data=this._normalizeEntryData(t.data,e),t};z.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};z.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(e=this._normalizeEntryData(e),typeof e.name!="string"||e.name.length===0)return this.emit("error",new ae("ENTRYNAMEREQUIRED")),this;if(e.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new ae("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=ft.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else if(ft.isStream(t))e.sourceType="stream";else return this.emit("error",new ae("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;return this._entriesCount++,this._queue.push({data:e,source:t}),this};z.prototype.directory=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new ae("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,e===!1?e="":typeof e!="string"&&(e=t);var i=!1;typeof r=="function"?(i=r,r={}):typeof r!="object"&&(r={});var n={stat:!0,dot:!0};function s(){this._pending--,this._maybeFinalize()}function o(u){this.emit("error",u)}function a(u){l.pause();var f=!1,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(c){this.emit("error",c);return}if(f){l.resume();return}this._append(u.absolute,h)}var l=P0(t,n);return l.on("error",o.bind(this)),l.on("match",a.bind(this)),l.on("end",s.bind(this)),this};z.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new ae("QUEUECLOSED")),this):typeof t!="string"||t.length===0?(this.emit("error",new ae("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)};z.prototype.glob=function(t,e,r){this._pending++,e=ft.defaults(e,{stat:!0,pattern:t});function i(){this._pending--,this._maybeFinalize()}function n(a){this.emit("error",a)}function s(a){o.pause();var l=Object.assign({},r);l.callback=o.resume.bind(o),l.stats=a.stat,l.name=a.relative,this._append(a.absolute,l)}var o=P0(e.cwd||".",e);return o.on("error",n.bind(this)),o.on("match",s.bind(this)),o.on("end",i.bind(this)),this};z.prototype.finalize=function(){if(this._state.aborted){var t=new ae("ABORTED");return this.emit("error",t),Promise.reject(t)}if(this._state.finalize){var e=new ae("FINALIZING");return this.emit("error",e),Promise.reject(e)}this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var r=this;return new Promise(function(i,n){var s;r._module.on("end",function(){s||i()}),r._module.on("error",function(o){s=!0,n(o)})})};z.prototype.setFormat=function(t){return this._format?(this.emit("error",new ae("FORMATSET")),this):(this._format=t,this)};z.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new ae("ABORTED")),this):this._state.module?(this.emit("error",new ae("MODULESET")),this):(this._module=t,this._modulePipe(),this)};z.prototype.symlink=function(t,e,r){if(this._state.finalize||this._state.aborted)return this.emit("error",new ae("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new ae("SYMLINKFILEPATHREQUIRED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new ae("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new ae("SYMLINKNOTSUPPORTED",{filepath:t})),this;var i={};return i.type="symlink",i.name=t.replace(/\\/g,"/"),i.linkname=e.replace(/\\/g,"/"),i.sourceType="buffer",typeof r=="number"&&(i.mode=r),this._entriesCount++,this._queue.push({data:i,source:Buffer.concat([])}),this};z.prototype.pointer=function(){return this._pointer};z.prototype.use=function(t){return this._streams.push(t),this};C0.exports=z});var qo=p((T6,k0)=>{"use strict";var ko=k0.exports=function(){};ko.prototype.getName=function(){};ko.prototype.getSize=function(){};ko.prototype.getLastModifiedDate=function(){};ko.prototype.isDirectory=function(){}});var Fo=p((A6,q0)=>{"use strict";var ze=q0.exports={};ze.dateToDos=function(t,e){e=e||!1;var r=e?t.getFullYear():t.getUTCFullYear();if(r<1980)return 2162688;if(r>=2044)return 2141175677;var i={year:r,month:e?t.getMonth():t.getUTCMonth(),date:e?t.getDate():t.getUTCDate(),hours:e?t.getHours():t.getUTCHours(),minutes:e?t.getMinutes():t.getUTCMinutes(),seconds:e?t.getSeconds():t.getUTCSeconds()};return i.year-1980<<25|i.month+1<<21|i.date<<16|i.hours<<11|i.minutes<<5|i.seconds/2};ze.dosToDate=function(t){return new Date((t>>25&127)+1980,(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(t&31)<<1)};ze.fromDosTime=function(t){return ze.dosToDate(t.readUInt32LE(0))};ze.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e};ze.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((t&65535)>>>0,0),e};ze.getShortBytesValue=function(t,e){return t.readUInt16LE(e)};ze.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((t&4294967295)>>>0,0),e};ze.getLongBytesValue=function(t,e){return t.readUInt32LE(e)};ze.toDosTime=function(t){return ze.getLongBytes(ze.dateToDos(t))}});var Af=p((R6,G0)=>{"use strict";var F0=Fo(),B0=8,j0=1,Rk=4,Ok=2,W0=64,U0=2048,Ee=G0.exports=function(){return this instanceof Ee?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new Ee};Ee.prototype.encode=function(){return F0.getShortBytes((this.descriptor?B0:0)|(this.utf8?U0:0)|(this.encryption?j0:0)|(this.strongEncryption?W0:0))};Ee.prototype.parse=function(t,e){var r=F0.getShortBytesValue(t,e),i=new Ee;return i.useDataDescriptor((r&B0)!==0),i.useUTF8ForNames((r&U0)!==0),i.useStrongEncryption((r&W0)!==0),i.useEncryption((r&j0)!==0),i.setSlidingDictionarySize((r&Ok)!==0?8192:4096),i.setNumberOfShannonFanoTrees((r&Rk)!==0?3:2),i};Ee.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t};Ee.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};Ee.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t};Ee.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};Ee.prototype.useDataDescriptor=function(t){this.descriptor=t};Ee.prototype.usesDataDescriptor=function(){return this.descriptor};Ee.prototype.useEncryption=function(t){this.encryption=t};Ee.prototype.usesEncryption=function(){return this.encryption};Ee.prototype.useStrongEncryption=function(t){this.strongEncryption=t};Ee.prototype.usesStrongEncryption=function(){return this.strongEncryption};Ee.prototype.useUTF8ForNames=function(t){this.utf8=t};Ee.prototype.usesUTF8ForNames=function(){return this.utf8}});var $0=p((O6,z0)=>{"use strict";z0.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 Rf=p((I6,H0)=>{"use strict";H0.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 Of=p((D6,Q0)=>{"use strict";var Ik=D("util").inherits,Dk=hl(),Y0=qo(),Z0=Af(),V0=$0(),Le=Rf(),K0=Fo(),F=Q0.exports=function(t){if(!(this instanceof F))return new F(t);Y0.call(this),this.platform=Le.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new Z0,this.crc=0,this.time=-1,this.minver=Le.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};Ik(F,Y0);F.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};F.prototype.getComment=function(){return this.comment!==null?this.comment:""};F.prototype.getCompressedSize=function(){return this.csize};F.prototype.getCrc=function(){return this.crc};F.prototype.getExternalAttributes=function(){return this.exattr};F.prototype.getExtra=function(){return this.extra!==null?this.extra:Le.EMPTY};F.prototype.getGeneralPurposeBit=function(){return this.gpb};F.prototype.getInternalAttributes=function(){return this.inattr};F.prototype.getLastModifiedDate=function(){return this.getTime()};F.prototype.getLocalFileDataExtra=function(){return this.getExtra()};F.prototype.getMethod=function(){return this.method};F.prototype.getName=function(){return this.name};F.prototype.getPlatform=function(){return this.platform};F.prototype.getSize=function(){return this.size};F.prototype.getTime=function(){return this.time!==-1?K0.dosToDate(this.time):-1};F.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};F.prototype.getUnixMode=function(){return this.platform!==Le.PLATFORM_UNIX?0:this.getExternalAttributes()>>Le.SHORT_SHIFT&Le.SHORT_MASK};F.prototype.getVersionNeededToExtract=function(){return this.minver};F.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t};F.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t};F.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t};F.prototype.setExternalAttributes=function(t){this.exattr=t>>>0};F.prototype.setExtra=function(t){this.extra=t};F.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof Z0))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t};F.prototype.setInternalAttributes=function(t){this.inattr=t};F.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t};F.prototype.setName=function(t,e=!1){t=Dk(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t};F.prototype.setPlatform=function(t){this.platform=t};F.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t};F.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=K0.dateToDos(t,e)};F.prototype.setUnixMode=function(t){t|=this.isDirectory()?Le.S_IFDIR:Le.S_IFREG;var e=0;e|=t<<Le.SHORT_SHIFT|(this.isDirectory()?Le.S_DOS_D:Le.S_DOS_A),this.setExternalAttributes(e),this.mode=t&Le.MODE_MASK,this.platform=Le.PLATFORM_UNIX};F.prototype.setVersionNeededToExtract=function(t){this.minver=t};F.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};F.prototype.isUnixSymlink=function(){return(this.getUnixMode()&V0.FILE_TYPE_FLAG)===V0.LINK_FLAG};F.prototype.isZip64=function(){return this.csize>Le.ZIP64_MAGIC||this.size>Le.ZIP64_MAGIC}});var If=p((P6,X0)=>{"use strict";var L6=D("stream").Stream,Lk=hr().PassThrough,Pk=es(),Nk=X0.exports={};Nk.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(Pk(t)&&!t._readableState){var e=new Lk;return t.pipe(e),e}return t}});var Lf=p((N6,J0)=>{"use strict";var Ck=D("util").inherits,Mk=es(),Df=hr().Transform,kk=qo(),qk=If(),ke=J0.exports=function(t){if(!(this instanceof ke))return new ke(t);Df.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};Ck(ke,Df);ke.prototype._appendBuffer=function(t,e,r){};ke.prototype._appendStream=function(t,e,r){};ke.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)};ke.prototype._finish=function(t){};ke.prototype._normalizeEntry=function(t){};ke.prototype._transform=function(t,e,r){r(null,t)};ke.prototype.entry=function(t,e,r){if(e=e||null,typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),!(t instanceof kk)){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=qk.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,r);else if(Mk(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};ke.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};ke.prototype.getBytesWritten=function(){return this.offset};ke.prototype.write=function(t,e){return t&&(this.offset+=t.length),Df.prototype.write.call(this,t,e)}});var Bo=p(Pf=>{"use strict";var eS;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof Pf=="object"?t(Pf):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t(eS={}):t(eS={})})(function(t){t.version="1.2.2";function e(){for(var v=0,O=new Array(256),w=0;w!=256;++w)v=w,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,O[w]=v;return typeof Int32Array<"u"?new Int32Array(O):O}var r=e();function i(v){var O=0,w=0,T=0,R=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(T=0;T!=256;++T)R[T]=v[T];for(T=0;T!=256;++T)for(w=v[T],O=256+T;O<4096;O+=256)w=R[O]=w>>>8^v[w&255];var N=[];for(T=1;T!=16;++T)N[T-1]=typeof Int32Array<"u"?R.subarray(T*256,T*256+256):R.slice(T*256,T*256+256);return N}var n=i(r),s=n[0],o=n[1],a=n[2],l=n[3],u=n[4],f=n[5],h=n[6],c=n[7],d=n[8],b=n[9],g=n[10],x=n[11],y=n[12],m=n[13],S=n[14];function E(v,O){for(var w=O^-1,T=0,R=v.length;T<R;)w=w>>>8^r[(w^v.charCodeAt(T++))&255];return~w}function A(v,O){for(var w=O^-1,T=v.length-15,R=0;R<T;)w=S[v[R++]^w&255]^m[v[R++]^w>>8&255]^y[v[R++]^w>>16&255]^x[v[R++]^w>>>24]^g[v[R++]]^b[v[R++]]^d[v[R++]]^c[v[R++]]^h[v[R++]]^f[v[R++]]^u[v[R++]]^l[v[R++]]^a[v[R++]]^o[v[R++]]^s[v[R++]]^r[v[R++]];for(T+=15;R<T;)w=w>>>8^r[(w^v[R++])&255];return~w}function L(v,O){for(var w=O^-1,T=0,R=v.length,N=0,G=0;T<R;)N=v.charCodeAt(T++),N<128?w=w>>>8^r[(w^N)&255]:N<2048?(w=w>>>8^r[(w^(192|N>>6&31))&255],w=w>>>8^r[(w^(128|N&63))&255]):N>=55296&&N<57344?(N=(N&1023)+64,G=v.charCodeAt(T++)&1023,w=w>>>8^r[(w^(240|N>>8&7))&255],w=w>>>8^r[(w^(128|N>>2&63))&255],w=w>>>8^r[(w^(128|G>>6&15|(N&3)<<4))&255],w=w>>>8^r[(w^(128|G&63))&255]):(w=w>>>8^r[(w^(224|N>>12&15))&255],w=w>>>8^r[(w^(128|N>>6&63))&255],w=w>>>8^r[(w^(128|N&63))&255]);return~w}t.table=r,t.bstr=E,t.buf=A,t.str=L})});var rS=p((M6,tS)=>{"use strict";var{Transform:Fk}=hr(),Bk=Bo(),Nf=class extends Fk{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,r,i){e&&(this.checksum=Bk.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}};tS.exports=Nf});var nS=p((k6,iS)=>{"use strict";var{DeflateRaw:jk}=D("zlib"),Wk=Bo(),Cf=class extends jk{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=Wk.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}};iS.exports=Cf});var Mf=p((q6,sS)=>{"use strict";sS.exports={CRC32Stream:rS(),DeflateCRC32Stream:nS()}});var lS=p((W6,aS)=>{"use strict";var Uk=D("util").inherits,Gk=Bo(),{CRC32Stream:zk}=Mf(),{DeflateCRC32Stream:$k}=Mf(),oS=Lf(),F6=Of(),B6=Af(),C=Rf(),j6=If(),P=Fo(),ye=aS.exports=function(t){if(!(this instanceof ye))return new ye(t);t=this.options=this._defaults(t),oS.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}};Uk(ye,oS);ye.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()};ye.prototype._appendBuffer=function(t,e,r){e.length===0&&t.setMethod(C.METHOD_STORED);var i=t.getMethod();if(i===C.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(Gk.buf(e)>>>0)),this._writeLocalFileHeader(t),i===C.METHOD_STORED){this.write(e),this._afterAppend(t),r(null,t);return}else if(i===C.METHOD_DEFLATED){this._smartStream(t,r).end(e);return}else{r(new Error("compression method "+i+" not implemented"));return}};ye.prototype._appendStream=function(t,e,r){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(C.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(t);var i=this._smartStream(t,r);e.once("error",function(n){i.emit("error",n),i.end()}),e.pipe(i)};ye.prototype._defaults=function(t){return typeof t!="object"&&(t={}),typeof t.zlib!="object"&&(t.zlib={}),typeof t.zlib.level!="number"&&(t.zlib.level=C.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t};ye.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()};ye.prototype._normalizeEntry=function(t){t.getMethod()===-1&&t.setMethod(C.METHOD_DEFLATED),t.getMethod()===C.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(C.MIN_VERSION_DATA_DESCRIPTOR)),t.getTime()===-1&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}};ye.prototype._smartStream=function(t,e){var r=t.getMethod()===C.METHOD_DEFLATED,i=r?new $k(this.options.zlib):new zk,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};ye.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,r=this._archive.centralOffset;this.isZip64()&&(t=C.ZIP64_MAGIC_SHORT,e=C.ZIP64_MAGIC,r=C.ZIP64_MAGIC),this.write(P.getLongBytes(C.SIG_EOCD)),this.write(C.SHORT_ZERO),this.write(C.SHORT_ZERO),this.write(P.getShortBytes(t)),this.write(P.getShortBytes(t)),this.write(P.getLongBytes(e)),this.write(P.getLongBytes(r));var i=this.getComment(),n=Buffer.byteLength(i);this.write(P.getShortBytes(n)),this.write(i)};ye.prototype._writeCentralDirectoryZip64=function(){this.write(P.getLongBytes(C.SIG_ZIP64_EOCD)),this.write(P.getEightBytes(44)),this.write(P.getShortBytes(C.MIN_VERSION_ZIP64)),this.write(P.getShortBytes(C.MIN_VERSION_ZIP64)),this.write(C.LONG_ZERO),this.write(C.LONG_ZERO),this.write(P.getEightBytes(this._entries.length)),this.write(P.getEightBytes(this._entries.length)),this.write(P.getEightBytes(this._archive.centralLength)),this.write(P.getEightBytes(this._archive.centralOffset)),this.write(P.getLongBytes(C.SIG_ZIP64_EOCD_LOC)),this.write(C.LONG_ZERO),this.write(P.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(P.getLongBytes(1))};ye.prototype._writeCentralFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),i=t._offsets.file,n=t.getSize(),s=t.getCompressedSize();if(t.isZip64()||i>C.ZIP64_MAGIC){n=C.ZIP64_MAGIC,s=C.ZIP64_MAGIC,i=C.ZIP64_MAGIC,t.setVersionNeededToExtract(C.MIN_VERSION_ZIP64);var o=Buffer.concat([P.getShortBytes(C.ZIP64_EXTRA_ID),P.getShortBytes(24),P.getEightBytes(t.getSize()),P.getEightBytes(t.getCompressedSize()),P.getEightBytes(t._offsets.file)],28);t.setExtra(o)}this.write(P.getLongBytes(C.SIG_CFH)),this.write(P.getShortBytes(t.getPlatform()<<8|C.VERSION_MADEBY)),this.write(P.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(P.getShortBytes(r)),this.write(P.getLongBytes(t.getTimeDos())),this.write(P.getLongBytes(t.getCrc())),this.write(P.getLongBytes(s)),this.write(P.getLongBytes(n));var a=t.getName(),l=t.getComment(),u=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(a=Buffer.from(a),l=Buffer.from(l)),this.write(P.getShortBytes(a.length)),this.write(P.getShortBytes(u.length)),this.write(P.getShortBytes(l.length)),this.write(C.SHORT_ZERO),this.write(P.getShortBytes(t.getInternalAttributes())),this.write(P.getLongBytes(t.getExternalAttributes())),this.write(P.getLongBytes(i)),this.write(a),this.write(u),this.write(l)};ye.prototype._writeDataDescriptor=function(t){this.write(P.getLongBytes(C.SIG_DD)),this.write(P.getLongBytes(t.getCrc())),t.isZip64()?(this.write(P.getEightBytes(t.getCompressedSize())),this.write(P.getEightBytes(t.getSize()))):(this.write(P.getLongBytes(t.getCompressedSize())),this.write(P.getLongBytes(t.getSize())))};ye.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),r=t.getMethod(),i=t.getName(),n=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(C.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(i=Buffer.from(i)),t._offsets.file=this.offset,this.write(P.getLongBytes(C.SIG_LFH)),this.write(P.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(P.getShortBytes(r)),this.write(P.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(C.LONG_ZERO),this.write(C.LONG_ZERO),this.write(C.LONG_ZERO)):(this.write(P.getLongBytes(t.getCrc())),this.write(P.getLongBytes(t.getCompressedSize())),this.write(P.getLongBytes(t.getSize()))),this.write(P.getShortBytes(i.length)),this.write(P.getShortBytes(n.length)),this.write(i),this.write(n),t._offsets.contents=this.offset};ye.prototype.getComment=function(t){return this._archive.comment!==null?this._archive.comment:""};ye.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>C.ZIP64_MAGIC_SHORT||this._archive.centralLength>C.ZIP64_MAGIC||this._archive.centralOffset>C.ZIP64_MAGIC};ye.prototype.setComment=function(t){this._archive.comment=t}});var kf=p((U6,uS)=>{"use strict";uS.exports={ArchiveEntry:qo(),ZipArchiveEntry:Of(),ArchiveOutputStream:Lf(),ZipArchiveOutputStream:lS()}});var hS=p((G6,fS)=>{"use strict";var Hk=D("util").inherits,Ff=kf().ZipArchiveOutputStream,Vk=kf().ZipArchiveEntry,qf=ii(),ni=fS.exports=function(t){if(!(this instanceof ni))return new ni(t);t=this.options=t||{},t.zlib=t.zlib||{},Ff.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)};Hk(ni,Ff);ni.prototype._normalizeFileData=function(t){t=qf.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=qf.sanitizePath(t.name),!r&&t.name.slice(-1)==="/"?(e=!0,t.type="directory"):e&&(t.name+="/")),(e||r)&&(t.store=!0),t.date=qf.dateify(t.date),t};ni.prototype.entry=function(t,e,r){if(typeof r!="function"&&(r=this._emitErrorCallback.bind(this)),e=this._normalizeFileData(e),e.type!=="file"&&e.type!=="directory"&&e.type!=="symlink"){r(new Error(e.type+" entries not currently supported"));return}if(typeof e.name!="string"||e.name.length===0){r(new Error("entry name must be a non-empty string value"));return}if(e.type==="symlink"&&typeof e.linkname!="string"){r(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var i=new Vk(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)),Ff.prototype.entry.call(this,i,t,r)};ni.prototype.finalize=function(){this.finish()}});var dS=p((z6,cS)=>{"use strict";var Yk=hS(),Zk=ii(),Wt=function(t){if(!(this instanceof Wt))return new Wt(t);t=this.options=Zk.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new Yk(t)};Wt.prototype.append=function(t,e,r){this.engine.entry(t,e,r)};Wt.prototype.finalize=function(){this.engine.finalize()};Wt.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Wt.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Wt.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};cS.exports=Wt});var gS=p(($6,pS)=>{"use strict";pS.exports=D("events")});var mS=p((V6,yS)=>{"use strict";yS.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 Bf=p((Z6,bS)=>{"use strict";var _S=mS();bS.exports=class{constructor(e){this.hwm=e||16,this.head=new _S(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 _S(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 jf=p((K6,wS)=>{"use strict";function Kk(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function Qk(t){return Buffer.isEncoding(t)}function Xk(t,e,r){return Buffer.alloc(t,e,r)}function Jk(t){return Buffer.allocUnsafe(t)}function eq(t){return Buffer.allocUnsafeSlow(t)}function tq(t,e){return Buffer.byteLength(t,e)}function rq(t,e){return Buffer.compare(t,e)}function iq(t,e){return Buffer.concat(t,e)}function nq(t,e,r,i,n){return Y(t).copy(e,r,i,n)}function sq(t,e){return Y(t).equals(e)}function oq(t,e,r,i,n){return Y(t).fill(e,r,i,n)}function aq(t,e,r){return Buffer.from(t,e,r)}function lq(t,e,r,i){return Y(t).includes(e,r,i)}function uq(t,e,r,i){return Y(t).indexOf(e,r,i)}function fq(t,e,r,i){return Y(t).lastIndexOf(e,r,i)}function hq(t){return Y(t).swap16()}function cq(t){return Y(t).swap32()}function dq(t){return Y(t).swap64()}function Y(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function pq(t,e,r,i){return Y(t).toString(e,r,i)}function gq(t,e,r,i,n){return Y(t).write(e,r,i,n)}function yq(t,e){return Y(t).readDoubleBE(e)}function mq(t,e){return Y(t).readDoubleLE(e)}function _q(t,e){return Y(t).readFloatBE(e)}function bq(t,e){return Y(t).readFloatLE(e)}function wq(t,e){return Y(t).readInt32BE(e)}function Sq(t,e){return Y(t).readInt32LE(e)}function Eq(t,e){return Y(t).readUInt32BE(e)}function vq(t,e){return Y(t).readUInt32LE(e)}function xq(t,e,r){return Y(t).writeDoubleBE(e,r)}function Tq(t,e,r){return Y(t).writeDoubleLE(e,r)}function Aq(t,e,r){return Y(t).writeFloatBE(e,r)}function Rq(t,e,r){return Y(t).writeFloatLE(e,r)}function Oq(t,e,r){return Y(t).writeInt32BE(e,r)}function Iq(t,e,r){return Y(t).writeInt32LE(e,r)}function Dq(t,e,r){return Y(t).writeUInt32BE(e,r)}function Lq(t,e,r){return Y(t).writeUInt32LE(e,r)}wS.exports={isBuffer:Kk,isEncoding:Qk,alloc:Xk,allocUnsafe:Jk,allocUnsafeSlow:eq,byteLength:tq,compare:rq,concat:iq,copy:nq,equals:sq,fill:oq,from:aq,includes:lq,indexOf:uq,lastIndexOf:fq,swap16:hq,swap32:cq,swap64:dq,toBuffer:Y,toString:pq,write:gq,readDoubleBE:yq,readDoubleLE:mq,readFloatBE:_q,readFloatLE:bq,readInt32BE:wq,readInt32LE:Sq,readUInt32BE:Eq,readUInt32LE:vq,writeDoubleBE:xq,writeDoubleLE:Tq,writeFloatBE:Aq,writeFloatLE:Rq,writeInt32BE:Oq,writeInt32LE:Iq,writeUInt32BE:Dq,writeUInt32LE:Lq}});var ES=p((X6,SS)=>{"use strict";var Pq=jf();SS.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return Pq.toString(e,this.encoding)}flush(){return""}}});var AS=p((e8,TS)=>{"use strict";var vS=jf();TS.exports=class{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(e){if(e.byteLength===0)return"";if(this.bytesNeeded===0&&xS(e,0)===0)return this.bytesSeen=Nq(e),vS.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=xS(e,i),s=e.byteLength-n;s>i&&(r+=vS.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 xS(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 Nq(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 OS=p((r8,RS)=>{"use strict";var Cq=ES(),Mq=AS();RS.exports=class{constructor(e="utf8"){switch(this.encoding=kq(e),this.encoding){case"utf8":this.decoder=new Mq;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new Cq(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 kq(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 rh=p((i8,QS)=>{"use strict";var{EventEmitter:qq}=gS(),$o=new Error("Stream was destroyed"),Wf=new Error("Premature close"),CS=Bf(),Fq=OS(),Uf=typeof queueMicrotask>"u"?t=>global.process.nextTick(t):queueMicrotask,oe=(1<<29)-1,ht=1,Zf=2,vt=4,En=8,MS=oe^ht,Bq=oe^Zf,Rn=16,si=32,li=64,Gt=128,On=256,Kf=512,zt=1024,Gf=2048,Qf=4096,Xf=8192,Qe=16384,Ut=32768,Ho=65536,mr=131072,kS=On|Kf,jq=Rn|Ho,Wq=li|Rn,Uq=Qf|Gt,Jf=On|mr,Gq=oe^Rn,zq=oe^li,$q=oe^(li|Ho),IS=oe^Ho,Hq=oe^On,Vq=oe^(Gt|Xf),Yq=oe^zt,DS=oe^kS,qS=oe^Ut,Zq=oe^si,FS=oe^mr,Kq=oe^Jf,xt=1<<18,ai=2<<18,In=4<<18,_r=8<<18,Dn=16<<18,Ht=32<<18,zf=64<<18,oi=128<<18,eh=256<<18,$t=512<<18,Vo=1024<<18,Qq=oe^(xt|eh),BS=oe^In,Xq=oe^(xt|$t),Jq=oe^Dn,eF=oe^_r,jS=oe^oi,tF=oe^ai,WS=oe^Vo,vn=Rn|xt,US=oe^vn,th=Qe|Ht,ct=vt|En|Zf,qe=ct|ht,GS=ct|th,rF=BS&zq,Yo=oi|Ut,iF=Yo&US,zS=qe|iF,nF=qe|zt|Qe,LS=qe|Qe|Gt,sF=qe|zt|Gt,oF=qe|Qf|Gt|Xf,aF=qe|Rn|zt|Qe|Ho|mr,lF=ct|zt|Qe,uF=si|qe|Ut|li,fF=Ut|ht,hF=qe|$t|Ht,cF=_r|Dn,$S=_r|xt,dF=_r|Dn|qe|xt,PS=qe|xt|_r|Vo,pF=In|xt,gF=xt|eh,yF=qe|$t|$S|Ht,mF=Dn|ct|$t|Ht,_F=ai|qe|oi|In,bF=$t|Ht|ct,jo=Symbol.asyncIterator||Symbol("asyncIterator"),Wo=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapWritable:n,byteLength:s,byteLengthWritable:o}={}){this.stream=e,this.queue=new CS,this.highWaterMark=r,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=o||s||KS,this.map=n||i,this.afterWrite=EF.bind(this),this.afterUpdateNextTick=TF.bind(this)}get ending(){return(this.stream._duplexState&$t)!==0}get ended(){return(this.stream._duplexState&Ht)!==0}push(e){return(this.stream._duplexState&bF)!==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|=_r,!0):(this.stream._duplexState|=cF,!1))}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=eF),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|$t)&BS}autoBatch(e,r){let i=[],n=this.stream;for(i.push(e);(n._duplexState&PS)===$S;)i.push(n._writableState.shift());if((n._duplexState&qe)!==0)return r(null);n._writev(i,r)}update(){let e=this.stream;e._duplexState|=ai;do{for(;(e._duplexState&PS)===_r;){let r=this.shift();e._duplexState|=gF,e._write(r,this.afterWrite)}(e._duplexState&pF)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=tF}updateNonPrimary(){let e=this.stream;if((e._duplexState&yF)===$t){e._duplexState=e._duplexState|xt,e._final(SF.bind(this));return}if((e._duplexState&ct)===vt){(e._duplexState&Yo)===0&&(e._duplexState|=vn,e._destroy(HS.bind(this)));return}(e._duplexState&zS)===ht&&(e._duplexState=(e._duplexState|vn)&MS,e._open(VS.bind(this)))}continueUpdate(){return(this.stream._duplexState&oi)===0?!1:(this.stream._duplexState&=jS,!0)}updateCallback(){(this.stream._duplexState&_F)===In?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&oi)===0&&(this.stream._duplexState|=oi,(this.stream._duplexState&ai)===0&&Uf(this.afterUpdateNextTick))}},$f=class{constructor(e,{highWaterMark:r=16384,map:i=null,mapReadable:n,byteLength:s,byteLengthReadable:o}={}){this.stream=e,this.queue=new CS,this.highWaterMark=r===0?1:r,this.buffered=0,this.readAhead=r>0,this.error=null,this.pipeline=null,this.byteLength=o||s||KS,this.map=n||i,this.pipeTo=null,this.afterRead=vF.bind(this),this.afterUpdateNextTick=xF.bind(this)}get ending(){return(this.stream._duplexState&zt)!==0}get ended(){return(this.stream._duplexState&Qe)!==0}pipe(e,r){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof r!="function"&&(r=null),this.stream._duplexState|=Kf,this.pipeTo=e,this.pipeline=new Vf(this.stream,e,r),r&&this.stream.on("error",NS),An(e))e._writableState.pipeline=this.pipeline,r&&e.on("error",NS),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",wF.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){let r=this.stream;return e===null?(this.highWaterMark=0,r._duplexState=(r._duplexState|zt)&$q,!1):this.map!==null&&(e=this.map(e),e===null)?(r._duplexState&=IS,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(e),this.queue.push(e),r._duplexState=(r._duplexState|Gt)&IS,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=Vq),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&LS)===Gt){let r=this.shift();return this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=DS),(e._duplexState&Gf)!==0&&e.emit("data",r),r}return this.readAhead===!1&&(e._duplexState|=mr,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&LS)===Gt&&(e._duplexState&kS)!==0;){let r=this.shift();this.pipeTo!==null&&this.pipeTo.write(r)===!1&&(e._duplexState&=DS),(e._duplexState&Gf)!==0&&e.emit("data",r)}}update(){let e=this.stream;e._duplexState|=si;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&aF)===mr;)e._duplexState|=jq,e._read(this.afterRead),this.drain();(e._duplexState&oF)===Uq&&(e._duplexState|=Xf,e.emit("readable")),(e._duplexState&Wq)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=Zq}updateNonPrimary(){let e=this.stream;if((e._duplexState&sF)===zt&&(e._duplexState=(e._duplexState|Qe)&Yq,e.emit("end"),(e._duplexState&GS)===th&&(e._duplexState|=vt),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&ct)===vt){(e._duplexState&Yo)===0&&(e._duplexState|=vn,e._destroy(HS.bind(this)));return}(e._duplexState&zS)===ht&&(e._duplexState=(e._duplexState|vn)&MS,e._open(VS.bind(this)))}continueUpdate(){return(this.stream._duplexState&Ut)===0?!1:(this.stream._duplexState&=qS,!0)}updateCallback(){(this.stream._duplexState&uF)===li?this.update():this.updateNextTick()}updateNextTickIfOpen(){(this.stream._duplexState&fF)===0&&(this.stream._duplexState|=Ut,(this.stream._duplexState&si)===0&&Uf(this.afterUpdateNextTick))}updateNextTick(){(this.stream._duplexState&Ut)===0&&(this.stream._duplexState|=Ut,(this.stream._duplexState&si)===0&&Uf(this.afterUpdateNextTick))}},Hf=class{constructor(e){this.data=null,this.afterTransform=RF.bind(e),this.afterFinal=null}},Vf=class{constructor(e,r,i){this.from=e,this.to=r,this.afterPipe=i,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(e,r){if(r&&(this.error=r),e===this.to&&(this.to=null,this.from!==null)){((this.from._duplexState&Qe)===0||!this.pipeToFinished)&&this.from.destroy(this.error||new Error("Writable stream closed prematurely"));return}if(e===this.from&&(this.from=null,this.to!==null)){(e._duplexState&Qe)===0&&this.to.destroy(this.error||new Error("Readable stream closed before ending"));return}this.afterPipe!==null&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null}};function wF(){this.stream._duplexState|=Kf,this.updateCallback()}function SF(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&ct)===0&&(e._duplexState|=Ht,e.emit("finish")),(e._duplexState&GS)===th&&(e._duplexState|=vt),e._duplexState&=Xq,(e._duplexState&ai)===0?this.update():this.updateNextTick()}function HS(t){let e=this.stream;!t&&this.error!==$o&&(t=this.error),t&&e.emit("error",t),e._duplexState|=En,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 EF(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=Qq,this.drains!==null&&AF(this.drains),(e._duplexState&dF)===Dn&&(e._duplexState&=Jq,(e._duplexState&zf)===zf&&e.emit("drain")),this.updateCallback()}function vF(t){t&&this.stream.destroy(t),this.stream._duplexState&=Gq,this.readAhead===!1&&(this.stream._duplexState&On)===0&&(this.stream._duplexState&=FS),this.updateCallback()}function xF(){(this.stream._duplexState&si)===0&&(this.stream._duplexState&=qS,this.update())}function TF(){(this.stream._duplexState&ai)===0&&(this.stream._duplexState&=jS,this.update())}function AF(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}function VS(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&vt)===0&&((e._duplexState&nF)===0&&(e._duplexState|=li),(e._duplexState&hF)===0&&(e._duplexState|=In),e.emit("open")),e._duplexState&=US,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}function RF(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}function OF(t){this._readableState!==null&&(t==="data"&&(this._duplexState|=Gf|Jf,this._readableState.updateNextTick()),t==="readable"&&(this._duplexState|=Qf,this._readableState.updateNextTick())),this._writableState!==null&&t==="drain"&&(this._duplexState|=zf,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",jF.bind(this))),this.on("newListener",OF)}_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&En)!==0}get destroying(){return(this._duplexState&ct)!==0}destroy(e){(this._duplexState&ct)===0&&(e||(e=$o),this._duplexState=(this._duplexState|vt)&rF,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=e),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=Zf,this._predestroy(),this._duplexState&=Bq,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}},Uo=class t extends xn{constructor(e){super(e),this._duplexState|=ht|Ht|mr,this._readableState=new $f(this,e),e&&(this._readableState.readAhead===!1&&(this._duplexState&=FS),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick(),e.encoding&&this.setEncoding(e.encoding))}setEncoding(e){let r=new Fq(e),i=this._readableState.map||LF;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|=Jf,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?Kq:Hq,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(qF(e))return e;if(e[jo])return this._fromAsyncIterator(e[jo](),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&lF)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&On)===0}[jo](){let e=this,r=null,i=null,n=null;return this.on("error",u=>{r=u}),this.on("readable",s),this.on("close",o),{[jo](){return this},next(){return new Promise(function(u,f){i=u,n=f;let h=e.read();h!==null?a(h):(e._duplexState&En)!==0&&a(null)})},return(){return l(null)},throw(u){return l(u)}};function s(){i!==null&&a(e.read())}function o(){i!==null&&a(null)}function a(u){n!==null&&(r?n(r):u===null&&(e._duplexState&Qe)===0?n($o):i({value:u,done:u===null}),n=i=null)}function l(u){return e.destroy(u),new Promise((f,h)=>{if(e._duplexState&En)return f({value:void 0,done:!0});e.once("close",function(){u?h(u):f({value:void 0,done:!0})})})}}},Go=class extends xn{constructor(e){super(e),this._duplexState|=ht|Qe,this._writableState=new Wo(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|=Vo}uncork(){this._duplexState&=WS,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&mF)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let r=e._writableState,n=(WF(e)?Math.min(1,r.queue.length):r.queue.length)+(e._duplexState&eh?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}},Tn=class extends Uo{constructor(e){super(e),this._duplexState=ht|this._duplexState&mr,this._writableState=new Wo(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=Vo}uncork(){this._duplexState&=WS,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}},zo=class extends Tn{constructor(e){super(e),this._transformState=new Hf(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(IF.bind(this))}},Yf=class extends zo{};function IF(t,e){let r=this._transformState.afterFinal;if(t)return r(t);e!=null&&this.push(e),this.push(null),r(null)}function DF(...t){return new Promise((e,r)=>YS(...t,i=>{if(i)return r(i);e()}))}function YS(t,...e){let r=Array.isArray(t)?[...t,...e]:[t,...e],i=r.length&&typeof r[r.length-1]=="function"?r.pop():null;if(r.length<2)throw new Error("Pipeline requires at least 2 streams");let n=r[0],s=null,o=null;for(let u=1;u<r.length;u++)s=r[u],An(n)?n.pipe(s,l):(a(n,!0,u>1,l),n.pipe(s)),n=s;if(i){let u=!1,f=An(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:Wf)))}return s;function a(u,f,h,c){u.on("error",c),u.on("close",d);function d(){if(f&&u._readableState&&!u._readableState.ended||h&&u._writableState&&!u._writableState.ended)return c(Wf)}}function l(u){if(!(!u||o)){o=u;for(let f of r)f.destroy(u)}}}function LF(t){return t}function ZS(t){return!!t._readableState||!!t._writableState}function An(t){return typeof t._duplexState=="number"&&ZS(t)}function PF(t){return!!t._readableState&&t._readableState.ending}function NF(t){return!!t._readableState&&t._readableState.ended}function CF(t){return!!t._writableState&&t._writableState.ending}function MF(t){return!!t._writableState&&t._writableState.ended}function kF(t,e={}){let r=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return!e.all&&r===$o?null:r}function qF(t){return An(t)&&t.readable}function FF(t){return(t._duplexState&ht)!==ht||(t._duplexState&vt)===vt||(t._duplexState&Yo)!==0}function BF(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}function KS(t){return BF(t)?t.byteLength:1024}function NS(){}function jF(){this.destroy(new Error("Stream aborted."))}function WF(t){return t._writev!==Go.prototype._writev&&t._writev!==Tn.prototype._writev}QS.exports={pipeline:YS,pipelinePromise:DF,isStream:ZS,isStreamx:An,isEnding:PF,isEnded:NF,isFinishing:CF,isFinished:MF,isDisturbed:FF,getStreamError:kF,Stream:xn,Writable:Go,Readable:Uo,Duplex:Tn,Transform:zo,PassThrough:Yf}});var Zo=p((n8,XS)=>{"use strict";function UF(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function GF(t){return Buffer.isEncoding(t)}function zF(t,e,r){return Buffer.alloc(t,e,r)}function $F(t){return Buffer.allocUnsafe(t)}function HF(t){return Buffer.allocUnsafeSlow(t)}function VF(t,e){return Buffer.byteLength(t,e)}function YF(t,e){return Buffer.compare(t,e)}function ZF(t,e){return Buffer.concat(t,e)}function KF(t,e,r,i,n){return Z(t).copy(e,r,i,n)}function QF(t,e){return Z(t).equals(e)}function XF(t,e,r,i,n){return Z(t).fill(e,r,i,n)}function JF(t,e,r){return Buffer.from(t,e,r)}function e3(t,e,r,i){return Z(t).includes(e,r,i)}function t3(t,e,r,i){return Z(t).indexOf(e,r,i)}function r3(t,e,r,i){return Z(t).lastIndexOf(e,r,i)}function i3(t){return Z(t).swap16()}function n3(t){return Z(t).swap32()}function s3(t){return Z(t).swap64()}function Z(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function o3(t,e,r,i){return Z(t).toString(e,r,i)}function a3(t,e,r,i,n){return Z(t).write(e,r,i,n)}function l3(t,e){return Z(t).readDoubleBE(e)}function u3(t,e){return Z(t).readDoubleLE(e)}function f3(t,e){return Z(t).readFloatBE(e)}function h3(t,e){return Z(t).readFloatLE(e)}function c3(t,e){return Z(t).readInt32BE(e)}function d3(t,e){return Z(t).readInt32LE(e)}function p3(t,e){return Z(t).readUInt32BE(e)}function g3(t,e){return Z(t).readUInt32LE(e)}function y3(t,e,r){return Z(t).writeDoubleBE(e,r)}function m3(t,e,r){return Z(t).writeDoubleLE(e,r)}function _3(t,e,r){return Z(t).writeFloatBE(e,r)}function b3(t,e,r){return Z(t).writeFloatLE(e,r)}function w3(t,e,r){return Z(t).writeInt32BE(e,r)}function S3(t,e,r){return Z(t).writeInt32LE(e,r)}function E3(t,e,r){return Z(t).writeUInt32BE(e,r)}function v3(t,e,r){return Z(t).writeUInt32LE(e,r)}XS.exports={isBuffer:UF,isEncoding:GF,alloc:zF,allocUnsafe:$F,allocUnsafeSlow:HF,byteLength:VF,compare:YF,concat:ZF,copy:KF,equals:QF,fill:XF,from:JF,includes:e3,indexOf:t3,lastIndexOf:r3,swap16:i3,swap32:n3,swap64:s3,toBuffer:Z,toString:o3,write:a3,readDoubleBE:l3,readDoubleLE:u3,readFloatBE:f3,readFloatLE:h3,readInt32BE:c3,readInt32LE:d3,readUInt32BE:p3,readUInt32LE:g3,writeDoubleBE:y3,writeDoubleLE:m3,writeFloatBE:_3,writeFloatLE:b3,writeInt32BE:w3,writeInt32LE:S3,writeUInt32BE:E3,writeUInt32LE:v3}});var sh=p(fi=>{"use strict";var U=Zo(),x3="0000000000000000000",T3="7777777777777777777",Ko=48,JS=U.from([117,115,116,97,114,0]),A3=U.from([Ko,Ko]),R3=U.from([117,115,116,97,114,32]),O3=U.from([32,0]),I3=4095,Ln=257,nh=263;fi.decodeLongPath=function(e,r){return ui(e,0,e.length,r)};fi.encodePax=function(e){let r="";e.name&&(r+=ih(" path="+e.name+`
|
|
9
|
+
`)),e.linkname&&(r+=ih(" linkpath="+e.linkname+`
|
|
10
|
+
`));let i=e.pax;if(i)for(let n in i)r+=ih(" "+n+"="+i[n]+`
|
|
11
|
+
`);return U.from(r)};fi.decodePax=function(e){let r={};for(;e.length;){let i=0;for(;i<e.length&&e[i]!==32;)i++;let n=parseInt(U.toString(e.subarray(0,i)),10);if(!n)return r;let s=U.toString(e.subarray(i+1,n-1)),o=s.indexOf("=");if(o===-1)return r;r[s.slice(0,o)]=s.slice(o+1),e=e.subarray(n)}return r};fi.encode=function(e){let r=U.alloc(512),i=e.name,n="";if(e.typeflag===5&&i[i.length-1]!=="/"&&(i+="/"),U.byteLength(i)!==i.length)return null;for(;U.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 U.byteLength(i)>100||U.byteLength(n)>155||e.linkname&&U.byteLength(e.linkname)>100?null:(U.write(r,i),U.write(r,Yt(e.mode&I3,6),100),U.write(r,Yt(e.uid,6),108),U.write(r,Yt(e.gid,6),116),k3(e.size,r,124),U.write(r,Yt(e.mtime.getTime()/1e3|0,11),136),r[156]=Ko+C3(e.type),e.linkname&&U.write(r,e.linkname,157),U.copy(JS,r,Ln),U.copy(A3,r,nh),e.uname&&U.write(r,e.uname,265),e.gname&&U.write(r,e.gname,297),U.write(r,Yt(e.devmajor||0,6),329),U.write(r,Yt(e.devminor||0,6),337),n&&U.write(r,n,345),U.write(r,Yt(tE(r),6),148),r)};fi.decode=function(e,r,i){let n=e[156]===0?0:e[156]-Ko,s=ui(e,0,100,r),o=Vt(e,100,8),a=Vt(e,108,8),l=Vt(e,116,8),u=Vt(e,124,12),f=Vt(e,136,12),h=N3(n),c=e[157]===0?null:ui(e,157,100,r),d=ui(e,265,32),b=ui(e,297,32),g=Vt(e,329,8),x=Vt(e,337,8),y=tE(e);if(y===256)return null;if(y!==Vt(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(D3(e))e[345]&&(s=ui(e,345,155,r)+"/"+s);else if(!L3(e)){if(!i)throw new Error("Invalid tar header: unknown format.")}return n===0&&s&&s[s.length-1]==="/"&&(n=5),{name:s,mode:o,uid:a,gid:l,size:u,mtime:new Date(1e3*f),type:h,linkname:c,uname:d,gname:b,devmajor:g,devminor:x,pax:null}};function D3(t){return U.equals(JS,t.subarray(Ln,Ln+6))}function L3(t){return U.equals(R3,t.subarray(Ln,Ln+6))&&U.equals(O3,t.subarray(nh,nh+2))}function P3(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function N3(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 C3(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 eE(t,e,r,i){for(;r<i;r++)if(t[r]===e)return r;return i}function tE(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function Yt(t,e){return t=t.toString(8),t.length>e?T3.slice(0,e)+" ":x3.slice(0,e-t.length)+t+" "}function M3(t,e,r){e[r]=128;for(let i=11;i>0;i--)e[r+i]=t&255,t=Math.floor(t/256)}function k3(t,e,r){t.toString(8).length>11?M3(t,e,r):U.write(e,Yt(t,11),r)}function q3(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],i;for(i=t.length-1;i>0;i--){let o=t[i];e?r.push(o):r.push(255-o)}let n=0,s=r.length;for(i=0;i<s;i++)n+=r[i]*Math.pow(256,i);return e?n:-1*n}function Vt(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return q3(t);{for(;e<t.length&&t[e]===32;)e++;let i=P3(eE(t,32,e,t.length),t.length,t.length);for(;e<i&&t[e]===0;)e++;return i===e?0:parseInt(U.toString(t.subarray(e,i)),8)}}function ui(t,e,r,i){return U.toString(t.subarray(e,eE(t,0,e,e+r)),i)}function ih(t){let e=U.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var oE=p((o8,sE)=>{"use strict";var{Writable:F3,Readable:B3,getStreamError:rE}=rh(),j3=Bf(),iE=Zo(),hi=sh(),W3=iE.alloc(0),ah=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new j3,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 W3;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 iE.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)}},lh=class extends B3{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(rE(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=nE(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},uh=class extends F3{constructor(e){super(e),e||(e={}),this._buffer=new ah,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=oh,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=hi.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),this._header.size===0||this._header.type==="directory"?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=hi.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=hi.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=hi.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?hi.decodePax(e):Object.assign({},this._paxGlobal,hi.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=nE(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 lh(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=oh,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(rE(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",c=>{e=c}),this.on("close",f),{[Symbol.asyncIterator](){return this},next(){return new Promise(l)},return(){return h(null)},throw(c){return h(c)}};function a(c){if(!s)return;let d=s;s=null,d(c)}function l(c,d){if(e)return d(e);if(n){c({value:n,done:!1}),n=null;return}r=c,i=d,a(null),o._finished&&r&&(r({value:void 0,done:!0}),r=i=null)}function u(c,d,b){s=b,d.on("error",oh),r?(r({value:d,done:!1}),r=i=null):n=d}function f(){a(e),r&&(e?i(e):r({value:void 0,done:!0}),r=i=null)}function h(c){return o.destroy(c),a(c),new Promise((d,b)=>{if(o.destroyed)return d({value:void 0,done:!0});o.once("close",function(){c?b(c):d({value:void 0,done:!0})})})}}};sE.exports=function(e){return new uh(e)};function oh(){}function nE(t){return t&=511,t&&512-t}});var lE=p((a8,fh)=>{"use strict";var aE={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{fh.exports=D("fs").constants||aE}catch{fh.exports=aE}});var dE=p((l8,cE)=>{"use strict";var{Readable:U3,Writable:G3,getStreamError:uE}=rh(),br=Zo(),ci=lE(),Qo=sh(),z3=493,$3=420,fE=br.alloc(1024),ch=class extends G3{constructor(e,r,i){super({mapWritable:V3,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 uE(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()}},dh=class extends U3{constructor(e){super(e),this._drain=hh,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=hh),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=H3(e.mode)),e.mode||(e.mode=e.type==="directory"?z3:$3),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 ch(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(fE),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=Qo.encode(e);if(r){this.push(r);return}}this._encodePax(e)}_encodePax(e){let r=Qo.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(Qo.encode(i)),this.push(r),hE(this,r.byteLength),i.size=e.size,i.type=e.type,this.push(Qo.encode(i))}_doDrain(){let e=this._drain;this._drain=hh,e()}_predestroy(){let e=uE(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()}};cE.exports=function(e){return new dh(e)};function H3(t){switch(t&ci.S_IFMT){case ci.S_IFBLK:return"block-device";case ci.S_IFCHR:return"character-device";case ci.S_IFDIR:return"directory";case ci.S_IFIFO:return"fifo";case ci.S_IFLNK:return"symlink"}return"file"}function hh(){}function hE(t,e){e&=511,e&&t.push(fE.subarray(0,512-e))}function V3(t){return br.isBuffer(t)?t:br.from(t)}});var pE=p(ph=>{"use strict";ph.extract=oE();ph.pack=dE()});var mE=p((f8,yE)=>{"use strict";var Y3=D("zlib"),Z3=pE(),gE=ii(),Tt=function(t){if(!(this instanceof Tt))return new Tt(t);t=this.options=gE.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=Z3.pack(t),this.compressor=!1,t.gzip&&(this.compressor=Y3.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};Tt.prototype._onCompressorError=function(t){this.engine.emit("error",t)};Tt.prototype.append=function(t,e,r){var i=this;e.mtime=e.date;function n(o,a){if(o){r(o);return}i.engine.entry(e,a,function(l){r(l,e)})}if(e.sourceType==="buffer")n(null,t);else if(e.sourceType==="stream"&&e.stats){e.size=e.stats.size;var s=i.engine.entry(e,function(o){r(o,e)});t.pipe(s)}else e.sourceType==="stream"&&gE.collectStream(t,n)};Tt.prototype.finalize=function(){this.engine.finalize()};Tt.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tt.prototype.pipe=function(t,e){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(t,e):this.engine.pipe.apply(this.engine,arguments)};Tt.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};yE.exports=Tt});var wE=p((h8,bE)=>{"use strict";function K3(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Q3=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 _E(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 X3(t){let e=_E(4);return e.writeInt32BE(t,0),e}function gh(t,e){t=_E(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let r=~~e^-1;for(var i=0;i<t.length;i++)r=Q3[(r^t[i])&255]^r>>>8;return r^-1}function yh(){return X3(gh.apply(null,arguments))}yh.signed=function(){return gh.apply(null,arguments)};yh.unsigned=function(){return gh.apply(null,arguments)>>>0};var J3=yh,eB=K3(J3);bE.exports=eB});var xE=p((c8,vE)=>{"use strict";var tB=D("util").inherits,SE=hr().Transform,rB=wE(),EE=ii(),Zt=function(t){if(!(this instanceof Zt))return new Zt(t);t=this.options=EE.defaults(t,{}),SE.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};tB(Zt,SE);Zt.prototype._transform=function(t,e,r){r(null,t)};Zt.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)};Zt.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=rB.unsigned(o),i.files.push(e),r(null,e)}e.sourceType==="buffer"?n(null,t):e.sourceType==="stream"&&EE.collectStream(t,n)};Zt.prototype.finalize=function(){this._writeStringified(),this.end()};vE.exports=Zt});var nB=p((d8,TE)=>{"use strict";var iB=M0(),Pn={},Kt=function(t,e){return Kt.create(t,e)};Kt.create=function(t,e){if(Pn[t]){var r=new iB(t,e);return r.setFormat(t),r.setModule(new Pn[t](e)),r}else throw new Error("create("+t+"): format not registered")};Kt.registerFormat=function(t,e){if(Pn[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");Pn[t]=e};Kt.isRegisteredFormat=function(t){return!!Pn[t]};Kt.registerFormat("zip",dS());Kt.registerFormat("tar",mE());Kt.registerFormat("json",xE());TE.exports=Kt});function oB(t){return{url:`${t.tmsBaseUrl}/kane-cli/v1/test-case/${t.testcaseId}/code`,body:{code_name:"kane-cli-trigger",language:t.codeExport.language,framework:"playwright",folder_name:"",accessibility:"false",skipCodeValidation:t.codeExport.skipValidation}}}function aB(t){return`${t.tmsBaseUrl}/kane-cli/v1/test-case/${t.testcaseId}/codes?page=1&per_page=10`}async function fB(t,e,r){let i=await mh(t,{method:"PUT",headers:{"Content-Type":r,"x-ms-blob-type":"BlockBlob"},body:new Uint8Array(e)});if(!i.ok)throw new Error(`Azure upload failed: ${i.status} ${await i.text()}`)}export{oB as a,aB as b,nB as c,fB as d};
|
|
12
|
+
/*! Bundled license information:
|
|
13
|
+
|
|
14
|
+
normalize-path/index.js:
|
|
15
|
+
(*!
|
|
16
|
+
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|
17
|
+
*
|
|
18
|
+
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
19
|
+
* Released under the MIT License.
|
|
20
|
+
*)
|
|
21
|
+
|
|
22
|
+
safe-buffer/index.js:
|
|
23
|
+
(*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
24
|
+
|
|
25
|
+
archiver/lib/error.js:
|
|
26
|
+
archiver/lib/core.js:
|
|
27
|
+
(**
|
|
28
|
+
* Archiver Core
|
|
29
|
+
*
|
|
30
|
+
* @ignore
|
|
31
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
32
|
+
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
33
|
+
*)
|
|
34
|
+
|
|
35
|
+
crc-32/crc32.js:
|
|
36
|
+
(*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com *)
|
|
37
|
+
|
|
38
|
+
zip-stream/index.js:
|
|
39
|
+
(**
|
|
40
|
+
* ZipStream
|
|
41
|
+
*
|
|
42
|
+
* @ignore
|
|
43
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE}
|
|
44
|
+
* @copyright (c) 2014 Chris Talkington, contributors.
|
|
45
|
+
*)
|
|
46
|
+
|
|
47
|
+
archiver/lib/plugins/zip.js:
|
|
48
|
+
(**
|
|
49
|
+
* ZIP Format Plugin
|
|
50
|
+
*
|
|
51
|
+
* @module plugins/zip
|
|
52
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
53
|
+
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
54
|
+
*)
|
|
55
|
+
|
|
56
|
+
archiver/lib/plugins/tar.js:
|
|
57
|
+
(**
|
|
58
|
+
* TAR Format Plugin
|
|
59
|
+
*
|
|
60
|
+
* @module plugins/tar
|
|
61
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
62
|
+
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
63
|
+
*)
|
|
64
|
+
|
|
65
|
+
archiver/lib/plugins/json.js:
|
|
66
|
+
(**
|
|
67
|
+
* JSON Format Plugin
|
|
68
|
+
*
|
|
69
|
+
* @module plugins/json
|
|
70
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
71
|
+
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
72
|
+
*)
|
|
73
|
+
|
|
74
|
+
archiver/index.js:
|
|
75
|
+
(**
|
|
76
|
+
* Archiver Vending
|
|
77
|
+
*
|
|
78
|
+
* @ignore
|
|
79
|
+
* @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE}
|
|
80
|
+
* @copyright (c) 2012-2014 Chris Talkington, contributors.
|
|
81
|
+
*)
|
|
82
|
+
*/
|