@elizaos/plugin-elizacloud 1.7.0-alpha.0 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.browser.js +3 -3
- package/dist/browser/index.browser.js.map +11 -13
- package/dist/cjs/index.node.cjs +253 -661
- package/dist/cjs/index.node.js.map +11 -17
- package/dist/index.browser.d.ts +2 -16
- package/dist/index.d.ts +0 -11
- package/dist/models/embeddings.d.ts +27 -1
- package/dist/models/image.d.ts +6 -8
- package/dist/models/index.d.ts +2 -1
- package/dist/models/object.d.ts +2 -3
- package/dist/models/text.d.ts +11 -3
- package/dist/node/index.node.js +254 -662
- package/dist/node/index.node.js.map +11 -17
- package/package.json +8 -18
- package/dist/database/adapter.d.ts +0 -27
- package/dist/database/direct-adapter.d.ts +0 -31
- package/dist/database/index.d.ts +0 -14
- package/dist/database/schema.d.ts +0 -11
- package/dist/database/types.d.ts +0 -22
- package/dist/storage/index.d.ts +0 -8
- package/dist/storage/service.d.ts +0 -62
- package/dist/storage/types.d.ts +0 -44
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var p6=Object.create;var{getPrototypeOf:i6,defineProperty:q2,getOwnPropertyNames:L1,getOwnPropertyDescriptor:d6}=Object,x1=Object.prototype.hasOwnProperty;var l6=(h,B,w)=>{w=h!=null?p6(i6(h)):{};let U=B||!h||!h.__esModule?q2(w,"default",{value:h,enumerable:!0}):w;for(let X of L1(h))if(!x1.call(U,X))q2(U,X,{get:()=>h[X],enumerable:!0});return U},O1=new WeakMap,T0=(h)=>{var B=O1.get(h),w;if(B)return B;if(B=q2({},"__esModule",{value:!0}),h&&typeof h==="object"||typeof h==="function")L1(h).map((U)=>!x1.call(B,U)&&q2(B,U,{get:()=>h[U],enumerable:!(w=d6(h,U))||w.enumerable}));return O1.set(h,B),B},m6=(h,B)=>()=>(B||h((B={exports:{}}).exports,B),B.exports);var E1=(h,B)=>{for(var w in B)q2(h,w,{get:B[w],enumerable:!0,configurable:!0,set:(U)=>B[w]=()=>U})};var D1=(h,B)=>()=>(h&&(B=h(h=0)),B);var b0={};E1(b0,{transcode:()=>S8,resolveObjectURL:()=>_8,kStringMaxLength:()=>d1,kMaxLength:()=>G2,isUtf8:()=>R8,isAscii:()=>k8,default:()=>y8,constants:()=>Q8,btoa:()=>B8,atob:()=>w8,INSPECT_MAX_BYTES:()=>i1,File:()=>U8,Buffer:()=>P,Blob:()=>X8});function a6(h){var B=h.length;if(B%4>0)throw Error("Invalid string. Length must be a multiple of 4");var w=h.indexOf("=");if(w===-1)w=B;var U=w===B?0:4-w%4;return[w,U]}function s6(h,B){return(h+B)*3/4-B}function t6(h){var B,w=a6(h),U=w[0],X=w[1],Q=new Uint8Array(s6(U,X)),J=0,q=X>0?U-4:U,K;for(K=0;K<q;K+=4)B=R0[h.charCodeAt(K)]<<18|R0[h.charCodeAt(K+1)]<<12|R0[h.charCodeAt(K+2)]<<6|R0[h.charCodeAt(K+3)],Q[J++]=B>>16&255,Q[J++]=B>>8&255,Q[J++]=B&255;if(X===2)B=R0[h.charCodeAt(K)]<<2|R0[h.charCodeAt(K+1)]>>4,Q[J++]=B&255;if(X===1)B=R0[h.charCodeAt(K)]<<10|R0[h.charCodeAt(K+1)]<<4|R0[h.charCodeAt(K+2)]>>2,Q[J++]=B>>8&255,Q[J++]=B&255;return Q}function e6(h){return f0[h>>18&63]+f0[h>>12&63]+f0[h>>6&63]+f0[h&63]}function h8(h,B,w){var U,X=[];for(var Q=B;Q<w;Q+=3)U=(h[Q]<<16&16711680)+(h[Q+1]<<8&65280)+(h[Q+2]&255),X.push(e6(U));return X.join("")}function c1(h){var B,w=h.length,U=w%3,X=[],Q=16383;for(var J=0,q=w-U;J<q;J+=Q)X.push(h8(h,J,J+Q>q?q:J+Q));if(U===1)B=h[w-1],X.push(f0[B>>2]+f0[B<<4&63]+"==");else if(U===2)B=(h[w-2]<<8)+h[w-1],X.push(f0[B>>10]+f0[B>>4&63]+f0[B<<2&63]+"=");return X.join("")}function P2(h,B,w,U,X){var Q,J,q=X*8-U-1,K=(1<<q)-1,Y=K>>1,$=-7,V=w?X-1:0,L=w?-1:1,x=h[B+V];V+=L,Q=x&(1<<-$)-1,x>>=-$,$+=q;for(;$>0;Q=Q*256+h[B+V],V+=L,$-=8);J=Q&(1<<-$)-1,Q>>=-$,$+=U;for(;$>0;J=J*256+h[B+V],V+=L,$-=8);if(Q===0)Q=1-Y;else if(Q===K)return J?NaN:(x?-1:1)*(1/0);else J=J+Math.pow(2,U),Q=Q-Y;return(x?-1:1)*J*Math.pow(2,Q-U)}function p1(h,B,w,U,X,Q){var J,q,K,Y=Q*8-X-1,$=(1<<Y)-1,V=$>>1,L=X===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=U?0:Q-1,h0=U?1:-1,s=B<0||B===0&&1/B<0?1:0;if(B=Math.abs(B),isNaN(B)||B===1/0)q=isNaN(B)?1:0,J=$;else{if(J=Math.floor(Math.log(B)/Math.LN2),B*(K=Math.pow(2,-J))<1)J--,K*=2;if(J+V>=1)B+=L/K;else B+=L*Math.pow(2,1-V);if(B*K>=2)J++,K/=2;if(J+V>=$)q=0,J=$;else if(J+V>=1)q=(B*K-1)*Math.pow(2,X),J=J+V;else q=B*Math.pow(2,V-1)*Math.pow(2,X),J=0}for(;X>=8;h[w+x]=q&255,x+=h0,q/=256,X-=8);J=J<<X|q,Y+=X;for(;Y>0;h[w+x]=J&255,x+=h0,J/=256,Y-=8);h[w+x-h0]|=s*128}function g0(h){if(h>G2)throw RangeError('The value "'+h+'" is invalid for option "size"');let B=new Uint8Array(h);return Object.setPrototypeOf(B,P.prototype),B}function n2(h,B,w){return class extends w{constructor(){super();Object.defineProperty(this,"message",{value:B.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${h}]`,this.stack,delete this.name}get code(){return h}set code(U){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:U,writable:!0})}toString(){return`${this.name} [${h}]: ${this.message}`}}}function P(h,B,w){if(typeof h==="number"){if(typeof B==="string")throw TypeError('The "string" argument must be of type string. Received type number');return o2(h)}return l1(h,B,w)}function l1(h,B,w){if(typeof h==="string")return F8(h,B);if(ArrayBuffer.isView(h))return K8(h);if(h==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h);if(c0(h,ArrayBuffer)||h&&c0(h.buffer,ArrayBuffer))return l2(h,B,w);if(typeof SharedArrayBuffer<"u"&&(c0(h,SharedArrayBuffer)||h&&c0(h.buffer,SharedArrayBuffer)))return l2(h,B,w);if(typeof h==="number")throw TypeError('The "value" argument must not be of type number. Received type number');let U=h.valueOf&&h.valueOf();if(U!=null&&U!==h)return P.from(U,B,w);let X=Y8(h);if(X)return X;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof h[Symbol.toPrimitive]==="function")return P.from(h[Symbol.toPrimitive]("string"),B,w);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h)}function m1(h){if(typeof h!=="number")throw TypeError('"size" argument must be of type number');else if(h<0)throw RangeError('The value "'+h+'" is invalid for option "size"')}function I8(h,B,w){if(m1(h),h<=0)return g0(h);if(B!==void 0)return typeof w==="string"?g0(h).fill(B,w):g0(h).fill(B);return g0(h)}function o2(h){return m1(h),g0(h<0?0:r2(h)|0)}function F8(h,B){if(typeof B!=="string"||B==="")B="utf8";if(!P.isEncoding(B))throw TypeError("Unknown encoding: "+B);let w=n1(h,B)|0,U=g0(w),X=U.write(h,B);if(X!==w)U=U.slice(0,X);return U}function d2(h){let B=h.length<0?0:r2(h.length)|0,w=g0(B);for(let U=0;U<B;U+=1)w[U]=h[U]&255;return w}function K8(h){if(c0(h,Uint8Array)){let B=new Uint8Array(h);return l2(B.buffer,B.byteOffset,B.byteLength)}return d2(h)}function l2(h,B,w){if(B<0||h.byteLength<B)throw RangeError('"offset" is outside of buffer bounds');if(h.byteLength<B+(w||0))throw RangeError('"length" is outside of buffer bounds');let U;if(B===void 0&&w===void 0)U=new Uint8Array(h);else if(w===void 0)U=new Uint8Array(h,B);else U=new Uint8Array(h,B,w);return Object.setPrototypeOf(U,P.prototype),U}function Y8(h){if(P.isBuffer(h)){let B=r2(h.length)|0,w=g0(B);if(w.length===0)return w;return h.copy(w,0,0,B),w}if(h.length!==void 0){if(typeof h.length!=="number"||Number.isNaN(h.length))return g0(0);return d2(h)}if(h.type==="Buffer"&&Array.isArray(h.data))return d2(h.data)}function r2(h){if(h>=G2)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+G2.toString(16)+" bytes");return h|0}function n1(h,B){if(P.isBuffer(h))return h.length;if(ArrayBuffer.isView(h)||c0(h,ArrayBuffer))return h.byteLength;if(typeof h!=="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof h);let w=h.length,U=arguments.length>2&&arguments[2]===!0;if(!U&&w===0)return 0;let X=!1;for(;;)switch(B){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":return m2(h).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w*2;case"hex":return w>>>1;case"base64":return w6(h).length;default:if(X)return U?-1:m2(h).length;B=(""+B).toLowerCase(),X=!0}}function H8(h,B,w){let U=!1;if(B===void 0||B<0)B=0;if(B>this.length)return"";if(w===void 0||w>this.length)w=this.length;if(w<=0)return"";if(w>>>=0,B>>>=0,w<=B)return"";if(!h)h="utf8";while(!0)switch(h){case"hex":return j8(this,B,w);case"utf8":case"utf-8":return r1(this,B,w);case"ascii":return V8(this,B,w);case"latin1":case"binary":return M8(this,B,w);case"base64":return W8(this,B,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A8(this,B,w);default:if(U)throw TypeError("Unknown encoding: "+h);h=(h+"").toLowerCase(),U=!0}}function h2(h,B,w){let U=h[B];h[B]=h[w],h[w]=U}function o1(h,B,w,U,X){if(h.length===0)return-1;if(typeof w==="string")U=w,w=0;else if(w>2147483647)w=2147483647;else if(w<-2147483648)w=-2147483648;if(w=+w,Number.isNaN(w))w=X?0:h.length-1;if(w<0)w=h.length+w;if(w>=h.length)if(X)return-1;else w=h.length-1;else if(w<0)if(X)w=0;else return-1;if(typeof B==="string")B=P.from(B,U);if(P.isBuffer(B)){if(B.length===0)return-1;return v1(h,B,w,U,X)}else if(typeof B==="number"){if(B=B&255,typeof Uint8Array.prototype.indexOf==="function")if(X)return Uint8Array.prototype.indexOf.call(h,B,w);else return Uint8Array.prototype.lastIndexOf.call(h,B,w);return v1(h,[B],w,U,X)}throw TypeError("val must be string, number or Buffer")}function v1(h,B,w,U,X){let Q=1,J=h.length,q=B.length;if(U!==void 0){if(U=String(U).toLowerCase(),U==="ucs2"||U==="ucs-2"||U==="utf16le"||U==="utf-16le"){if(h.length<2||B.length<2)return-1;Q=2,J/=2,q/=2,w/=2}}function K($,V){if(Q===1)return $[V];else return $.readUInt16BE(V*Q)}let Y;if(X){let $=-1;for(Y=w;Y<J;Y++)if(K(h,Y)===K(B,$===-1?0:Y-$)){if($===-1)$=Y;if(Y-$+1===q)return $*Q}else{if($!==-1)Y-=Y-$;$=-1}}else{if(w+q>J)w=J-q;for(Y=w;Y>=0;Y--){let $=!0;for(let V=0;V<q;V++)if(K(h,Y+V)!==K(B,V)){$=!1;break}if($)return Y}}return-1}function q8(h,B,w,U){w=Number(w)||0;let X=h.length-w;if(!U)U=X;else if(U=Number(U),U>X)U=X;let Q=B.length;if(U>Q/2)U=Q/2;let J;for(J=0;J<U;++J){let q=parseInt(B.substr(J*2,2),16);if(Number.isNaN(q))return J;h[w+J]=q}return J}function $8(h,B,w,U){return T2(m2(B,h.length-w),h,w,U)}function z8(h,B,w,U){return T2(E8(B),h,w,U)}function G8(h,B,w,U){return T2(w6(B),h,w,U)}function C8(h,B,w,U){return T2(D8(B,h.length-w),h,w,U)}function W8(h,B,w){if(B===0&&w===h.length)return c1(h);else return c1(h.slice(B,w))}function r1(h,B,w){w=Math.min(h.length,w);let U=[],X=B;while(X<w){let Q=h[X],J=null,q=Q>239?4:Q>223?3:Q>191?2:1;if(X+q<=w){let K,Y,$,V;switch(q){case 1:if(Q<128)J=Q;break;case 2:if(K=h[X+1],(K&192)===128){if(V=(Q&31)<<6|K&63,V>127)J=V}break;case 3:if(K=h[X+1],Y=h[X+2],(K&192)===128&&(Y&192)===128){if(V=(Q&15)<<12|(K&63)<<6|Y&63,V>2047&&(V<55296||V>57343))J=V}break;case 4:if(K=h[X+1],Y=h[X+2],$=h[X+3],(K&192)===128&&(Y&192)===128&&($&192)===128){if(V=(Q&15)<<18|(K&63)<<12|(Y&63)<<6|$&63,V>65535&&V<1114112)J=V}}}if(J===null)J=65533,q=1;else if(J>65535)J-=65536,U.push(J>>>10&1023|55296),J=56320|J&1023;U.push(J),X+=q}return N8(U)}function N8(h){let B=h.length;if(B<=g1)return String.fromCharCode.apply(String,h);let w="",U=0;while(U<B)w+=String.fromCharCode.apply(String,h.slice(U,U+=g1));return w}function V8(h,B,w){let U="";w=Math.min(h.length,w);for(let X=B;X<w;++X)U+=String.fromCharCode(h[X]&127);return U}function M8(h,B,w){let U="";w=Math.min(h.length,w);for(let X=B;X<w;++X)U+=String.fromCharCode(h[X]);return U}function j8(h,B,w){let U=h.length;if(!B||B<0)B=0;if(!w||w<0||w>U)w=U;let X="";for(let Q=B;Q<w;++Q)X+=P8[h[Q]];return X}function A8(h,B,w){let U=h.slice(B,w),X="";for(let Q=0;Q<U.length-1;Q+=2)X+=String.fromCharCode(U[Q]+U[Q+1]*256);return X}function N0(h,B,w){if(h%1!==0||h<0)throw RangeError("offset is not uint");if(h+B>w)throw RangeError("Trying to access beyond buffer length")}function O0(h,B,w,U,X,Q){if(!P.isBuffer(h))throw TypeError('"buffer" argument must be a Buffer instance');if(B>X||B<Q)throw RangeError('"value" argument is out of bounds');if(w+U>h.length)throw RangeError("Index out of range")}function a1(h,B,w,U,X){B6(B,U,X,h,w,7);let Q=Number(B&BigInt(4294967295));h[w++]=Q,Q=Q>>8,h[w++]=Q,Q=Q>>8,h[w++]=Q,Q=Q>>8,h[w++]=Q;let J=Number(B>>BigInt(32)&BigInt(4294967295));return h[w++]=J,J=J>>8,h[w++]=J,J=J>>8,h[w++]=J,J=J>>8,h[w++]=J,w}function s1(h,B,w,U,X){B6(B,U,X,h,w,7);let Q=Number(B&BigInt(4294967295));h[w+7]=Q,Q=Q>>8,h[w+6]=Q,Q=Q>>8,h[w+5]=Q,Q=Q>>8,h[w+4]=Q;let J=Number(B>>BigInt(32)&BigInt(4294967295));return h[w+3]=J,J=J>>8,h[w+2]=J,J=J>>8,h[w+1]=J,J=J>>8,h[w]=J,w+8}function t1(h,B,w,U,X,Q){if(w+U>h.length)throw RangeError("Index out of range");if(w<0)throw RangeError("Index out of range")}function e1(h,B,w,U,X){if(B=+B,w=w>>>0,!X)t1(h,B,w,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return p1(h,B,w,U,23,4),w+4}function h6(h,B,w,U,X){if(B=+B,w=w>>>0,!X)t1(h,B,w,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return p1(h,B,w,U,52,8),w+8}function b1(h){let B="",w=h.length,U=h[0]==="-"?1:0;for(;w>=U+4;w-=3)B=`_${h.slice(w-3,w)}${B}`;return`${h.slice(0,w)}${B}`}function O8(h,B,w){if(I2(B,"offset"),h[B]===void 0||h[B+w]===void 0)C2(B,h.length-(w+1))}function B6(h,B,w,U,X,Q){if(h>w||h<B){let J=typeof B==="bigint"?"n":"",q;if(Q>3)if(B===0||B===BigInt(0))q=`>= 0${J} and < 2${J} ** ${(Q+1)*8}${J}`;else q=`>= -(2${J} ** ${(Q+1)*8-1}${J}) and < 2 ** ${(Q+1)*8-1}${J}`;else q=`>= ${B}${J} and <= ${w}${J}`;throw new i2("value",q,h)}O8(U,X,Q)}function I2(h,B){if(typeof h!=="number")throw new J8(B,"number",h)}function C2(h,B,w){if(Math.floor(h)!==h)throw I2(h,w),new i2(w||"offset","an integer",h);if(B<0)throw new Z8;throw new i2(w||"offset",`>= ${w?1:0} and <= ${B}`,h)}function x8(h){if(h=h.split("=")[0],h=h.trim().replace(L8,""),h.length<2)return"";while(h.length%4!==0)h=h+"=";return h}function m2(h,B){B=B||1/0;let w,U=h.length,X=null,Q=[];for(let J=0;J<U;++J){if(w=h.charCodeAt(J),w>55295&&w<57344){if(!X){if(w>56319){if((B-=3)>-1)Q.push(239,191,189);continue}else if(J+1===U){if((B-=3)>-1)Q.push(239,191,189);continue}X=w;continue}if(w<56320){if((B-=3)>-1)Q.push(239,191,189);X=w;continue}w=(X-55296<<10|w-56320)+65536}else if(X){if((B-=3)>-1)Q.push(239,191,189)}if(X=null,w<128){if((B-=1)<0)break;Q.push(w)}else if(w<2048){if((B-=2)<0)break;Q.push(w>>6|192,w&63|128)}else if(w<65536){if((B-=3)<0)break;Q.push(w>>12|224,w>>6&63|128,w&63|128)}else if(w<1114112){if((B-=4)<0)break;Q.push(w>>18|240,w>>12&63|128,w>>6&63|128,w&63|128)}else throw Error("Invalid code point")}return Q}function E8(h){let B=[];for(let w=0;w<h.length;++w)B.push(h.charCodeAt(w)&255);return B}function D8(h,B){let w,U,X,Q=[];for(let J=0;J<h.length;++J){if((B-=2)<0)break;w=h.charCodeAt(J),U=w>>8,X=w%256,Q.push(X),Q.push(U)}return Q}function w6(h){return t6(x8(h))}function T2(h,B,w,U){let X;for(X=0;X<U;++X){if(X+w>=B.length||X>=h.length)break;B[X+w]=h[X]}return X}function c0(h,B){return h instanceof B||h!=null&&h.constructor!=null&&h.constructor.name!=null&&h.constructor.name===B.name}function m0(h){return typeof BigInt>"u"?T8:h}function T8(){throw Error("BigInt not supported")}function a2(h){return()=>{throw Error(h+" is not implemented for node:buffer browser polyfill")}}var f0,R0,p2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e0,f1,u1,i1=50,G2=2147483647,d1=536870888,B8,w8,U8,X8,Q8,Z8,J8,i2,g1=4096,L8,P8,_8,R8,k8=(h)=>{for(let B of h)if(B.charCodeAt(0)>127)return!1;return!0},S8,y8;var p0=D1(()=>{f0=[],R0=[];for(e0=0,f1=p2.length;e0<f1;++e0)f0[e0]=p2[e0],R0[p2.charCodeAt(e0)]=e0;R0[45]=62;R0[95]=63;u1=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,B8=globalThis.btoa,w8=globalThis.atob,U8=globalThis.File,X8=globalThis.Blob,Q8={MAX_LENGTH:G2,MAX_STRING_LENGTH:d1};Z8=n2("ERR_BUFFER_OUT_OF_BOUNDS",function(h){if(h)return`${h} is outside of buffer bounds`;return"Attempt to access memory outside buffer bounds"},RangeError),J8=n2("ERR_INVALID_ARG_TYPE",function(h,B){return`The "${h}" argument must be of type number. Received type ${typeof B}`},TypeError),i2=n2("ERR_OUT_OF_RANGE",function(h,B,w){let U=`The value of "${h}" is out of range.`,X=w;if(Number.isInteger(w)&&Math.abs(w)>4294967296)X=b1(String(w));else if(typeof w==="bigint"){if(X=String(w),w>BigInt(2)**BigInt(32)||w<-(BigInt(2)**BigInt(32)))X=b1(X);X+="n"}return U+=` It must be ${B}. Received ${X}`,U},RangeError);Object.defineProperty(P.prototype,"parent",{enumerable:!0,get:function(){if(!P.isBuffer(this))return;return this.buffer}});Object.defineProperty(P.prototype,"offset",{enumerable:!0,get:function(){if(!P.isBuffer(this))return;return this.byteOffset}});P.poolSize=8192;P.from=function(h,B,w){return l1(h,B,w)};Object.setPrototypeOf(P.prototype,Uint8Array.prototype);Object.setPrototypeOf(P,Uint8Array);P.alloc=function(h,B,w){return I8(h,B,w)};P.allocUnsafe=function(h){return o2(h)};P.allocUnsafeSlow=function(h){return o2(h)};P.isBuffer=function(h){return h!=null&&h._isBuffer===!0&&h!==P.prototype};P.compare=function(h,B){if(c0(h,Uint8Array))h=P.from(h,h.offset,h.byteLength);if(c0(B,Uint8Array))B=P.from(B,B.offset,B.byteLength);if(!P.isBuffer(h)||!P.isBuffer(B))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(h===B)return 0;let w=h.length,U=B.length;for(let X=0,Q=Math.min(w,U);X<Q;++X)if(h[X]!==B[X]){w=h[X],U=B[X];break}if(w<U)return-1;if(U<w)return 1;return 0};P.isEncoding=function(h){switch(String(h).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};P.concat=function(h,B){if(!Array.isArray(h))throw TypeError('"list" argument must be an Array of Buffers');if(h.length===0)return P.alloc(0);let w;if(B===void 0){B=0;for(w=0;w<h.length;++w)B+=h[w].length}let U=P.allocUnsafe(B),X=0;for(w=0;w<h.length;++w){let Q=h[w];if(c0(Q,Uint8Array))if(X+Q.length>U.length){if(!P.isBuffer(Q))Q=P.from(Q);Q.copy(U,X)}else Uint8Array.prototype.set.call(U,Q,X);else if(!P.isBuffer(Q))throw TypeError('"list" argument must be an Array of Buffers');else Q.copy(U,X);X+=Q.length}return U};P.byteLength=n1;P.prototype._isBuffer=!0;P.prototype.swap16=function(){let h=this.length;if(h%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let B=0;B<h;B+=2)h2(this,B,B+1);return this};P.prototype.swap32=function(){let h=this.length;if(h%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let B=0;B<h;B+=4)h2(this,B,B+3),h2(this,B+1,B+2);return this};P.prototype.swap64=function(){let h=this.length;if(h%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let B=0;B<h;B+=8)h2(this,B,B+7),h2(this,B+1,B+6),h2(this,B+2,B+5),h2(this,B+3,B+4);return this};P.prototype.toString=function(){let h=this.length;if(h===0)return"";if(arguments.length===0)return r1(this,0,h);return H8.apply(this,arguments)};P.prototype.toLocaleString=P.prototype.toString;P.prototype.equals=function(h){if(!P.isBuffer(h))throw TypeError("Argument must be a Buffer");if(this===h)return!0;return P.compare(this,h)===0};P.prototype.inspect=function(){let h="",B=i1;if(h=this.toString("hex",0,B).replace(/(.{2})/g,"$1 ").trim(),this.length>B)h+=" ... ";return"<Buffer "+h+">"};if(u1)P.prototype[u1]=P.prototype.inspect;P.prototype.compare=function(h,B,w,U,X){if(c0(h,Uint8Array))h=P.from(h,h.offset,h.byteLength);if(!P.isBuffer(h))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof h);if(B===void 0)B=0;if(w===void 0)w=h?h.length:0;if(U===void 0)U=0;if(X===void 0)X=this.length;if(B<0||w>h.length||U<0||X>this.length)throw RangeError("out of range index");if(U>=X&&B>=w)return 0;if(U>=X)return-1;if(B>=w)return 1;if(B>>>=0,w>>>=0,U>>>=0,X>>>=0,this===h)return 0;let Q=X-U,J=w-B,q=Math.min(Q,J),K=this.slice(U,X),Y=h.slice(B,w);for(let $=0;$<q;++$)if(K[$]!==Y[$]){Q=K[$],J=Y[$];break}if(Q<J)return-1;if(J<Q)return 1;return 0};P.prototype.includes=function(h,B,w){return this.indexOf(h,B,w)!==-1};P.prototype.indexOf=function(h,B,w){return o1(this,h,B,w,!0)};P.prototype.lastIndexOf=function(h,B,w){return o1(this,h,B,w,!1)};P.prototype.write=function(h,B,w,U){if(B===void 0)U="utf8",w=this.length,B=0;else if(w===void 0&&typeof B==="string")U=B,w=this.length,B=0;else if(isFinite(B))if(B=B>>>0,isFinite(w)){if(w=w>>>0,U===void 0)U="utf8"}else U=w,w=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let X=this.length-B;if(w===void 0||w>X)w=X;if(h.length>0&&(w<0||B<0)||B>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!U)U="utf8";let Q=!1;for(;;)switch(U){case"hex":return q8(this,h,B,w);case"utf8":case"utf-8":return $8(this,h,B,w);case"ascii":case"latin1":case"binary":return z8(this,h,B,w);case"base64":return G8(this,h,B,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C8(this,h,B,w);default:if(Q)throw TypeError("Unknown encoding: "+U);U=(""+U).toLowerCase(),Q=!0}};P.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};P.prototype.slice=function(h,B){let w=this.length;if(h=~~h,B=B===void 0?w:~~B,h<0){if(h+=w,h<0)h=0}else if(h>w)h=w;if(B<0){if(B+=w,B<0)B=0}else if(B>w)B=w;if(B<h)B=h;let U=this.subarray(h,B);return Object.setPrototypeOf(U,P.prototype),U};P.prototype.readUintLE=P.prototype.readUIntLE=function(h,B,w){if(h=h>>>0,B=B>>>0,!w)N0(h,B,this.length);let U=this[h],X=1,Q=0;while(++Q<B&&(X*=256))U+=this[h+Q]*X;return U};P.prototype.readUintBE=P.prototype.readUIntBE=function(h,B,w){if(h=h>>>0,B=B>>>0,!w)N0(h,B,this.length);let U=this[h+--B],X=1;while(B>0&&(X*=256))U+=this[h+--B]*X;return U};P.prototype.readUint8=P.prototype.readUInt8=function(h,B){if(h=h>>>0,!B)N0(h,1,this.length);return this[h]};P.prototype.readUint16LE=P.prototype.readUInt16LE=function(h,B){if(h=h>>>0,!B)N0(h,2,this.length);return this[h]|this[h+1]<<8};P.prototype.readUint16BE=P.prototype.readUInt16BE=function(h,B){if(h=h>>>0,!B)N0(h,2,this.length);return this[h]<<8|this[h+1]};P.prototype.readUint32LE=P.prototype.readUInt32LE=function(h,B){if(h=h>>>0,!B)N0(h,4,this.length);return(this[h]|this[h+1]<<8|this[h+2]<<16)+this[h+3]*16777216};P.prototype.readUint32BE=P.prototype.readUInt32BE=function(h,B){if(h=h>>>0,!B)N0(h,4,this.length);return this[h]*16777216+(this[h+1]<<16|this[h+2]<<8|this[h+3])};P.prototype.readBigUInt64LE=m0(function(h){h=h>>>0,I2(h,"offset");let B=this[h],w=this[h+7];if(B===void 0||w===void 0)C2(h,this.length-8);let U=B+this[++h]*256+this[++h]*65536+this[++h]*16777216,X=this[++h]+this[++h]*256+this[++h]*65536+w*16777216;return BigInt(U)+(BigInt(X)<<BigInt(32))});P.prototype.readBigUInt64BE=m0(function(h){h=h>>>0,I2(h,"offset");let B=this[h],w=this[h+7];if(B===void 0||w===void 0)C2(h,this.length-8);let U=B*16777216+this[++h]*65536+this[++h]*256+this[++h],X=this[++h]*16777216+this[++h]*65536+this[++h]*256+w;return(BigInt(U)<<BigInt(32))+BigInt(X)});P.prototype.readIntLE=function(h,B,w){if(h=h>>>0,B=B>>>0,!w)N0(h,B,this.length);let U=this[h],X=1,Q=0;while(++Q<B&&(X*=256))U+=this[h+Q]*X;if(X*=128,U>=X)U-=Math.pow(2,8*B);return U};P.prototype.readIntBE=function(h,B,w){if(h=h>>>0,B=B>>>0,!w)N0(h,B,this.length);let U=B,X=1,Q=this[h+--U];while(U>0&&(X*=256))Q+=this[h+--U]*X;if(X*=128,Q>=X)Q-=Math.pow(2,8*B);return Q};P.prototype.readInt8=function(h,B){if(h=h>>>0,!B)N0(h,1,this.length);if(!(this[h]&128))return this[h];return(255-this[h]+1)*-1};P.prototype.readInt16LE=function(h,B){if(h=h>>>0,!B)N0(h,2,this.length);let w=this[h]|this[h+1]<<8;return w&32768?w|4294901760:w};P.prototype.readInt16BE=function(h,B){if(h=h>>>0,!B)N0(h,2,this.length);let w=this[h+1]|this[h]<<8;return w&32768?w|4294901760:w};P.prototype.readInt32LE=function(h,B){if(h=h>>>0,!B)N0(h,4,this.length);return this[h]|this[h+1]<<8|this[h+2]<<16|this[h+3]<<24};P.prototype.readInt32BE=function(h,B){if(h=h>>>0,!B)N0(h,4,this.length);return this[h]<<24|this[h+1]<<16|this[h+2]<<8|this[h+3]};P.prototype.readBigInt64LE=m0(function(h){h=h>>>0,I2(h,"offset");let B=this[h],w=this[h+7];if(B===void 0||w===void 0)C2(h,this.length-8);let U=this[h+4]+this[h+5]*256+this[h+6]*65536+(w<<24);return(BigInt(U)<<BigInt(32))+BigInt(B+this[++h]*256+this[++h]*65536+this[++h]*16777216)});P.prototype.readBigInt64BE=m0(function(h){h=h>>>0,I2(h,"offset");let B=this[h],w=this[h+7];if(B===void 0||w===void 0)C2(h,this.length-8);let U=(B<<24)+this[++h]*65536+this[++h]*256+this[++h];return(BigInt(U)<<BigInt(32))+BigInt(this[++h]*16777216+this[++h]*65536+this[++h]*256+w)});P.prototype.readFloatLE=function(h,B){if(h=h>>>0,!B)N0(h,4,this.length);return P2(this,h,!0,23,4)};P.prototype.readFloatBE=function(h,B){if(h=h>>>0,!B)N0(h,4,this.length);return P2(this,h,!1,23,4)};P.prototype.readDoubleLE=function(h,B){if(h=h>>>0,!B)N0(h,8,this.length);return P2(this,h,!0,52,8)};P.prototype.readDoubleBE=function(h,B){if(h=h>>>0,!B)N0(h,8,this.length);return P2(this,h,!1,52,8)};P.prototype.writeUintLE=P.prototype.writeUIntLE=function(h,B,w,U){if(h=+h,B=B>>>0,w=w>>>0,!U){let J=Math.pow(2,8*w)-1;O0(this,h,B,w,J,0)}let X=1,Q=0;this[B]=h&255;while(++Q<w&&(X*=256))this[B+Q]=h/X&255;return B+w};P.prototype.writeUintBE=P.prototype.writeUIntBE=function(h,B,w,U){if(h=+h,B=B>>>0,w=w>>>0,!U){let J=Math.pow(2,8*w)-1;O0(this,h,B,w,J,0)}let X=w-1,Q=1;this[B+X]=h&255;while(--X>=0&&(Q*=256))this[B+X]=h/Q&255;return B+w};P.prototype.writeUint8=P.prototype.writeUInt8=function(h,B,w){if(h=+h,B=B>>>0,!w)O0(this,h,B,1,255,0);return this[B]=h&255,B+1};P.prototype.writeUint16LE=P.prototype.writeUInt16LE=function(h,B,w){if(h=+h,B=B>>>0,!w)O0(this,h,B,2,65535,0);return this[B]=h&255,this[B+1]=h>>>8,B+2};P.prototype.writeUint16BE=P.prototype.writeUInt16BE=function(h,B,w){if(h=+h,B=B>>>0,!w)O0(this,h,B,2,65535,0);return this[B]=h>>>8,this[B+1]=h&255,B+2};P.prototype.writeUint32LE=P.prototype.writeUInt32LE=function(h,B,w){if(h=+h,B=B>>>0,!w)O0(this,h,B,4,4294967295,0);return this[B+3]=h>>>24,this[B+2]=h>>>16,this[B+1]=h>>>8,this[B]=h&255,B+4};P.prototype.writeUint32BE=P.prototype.writeUInt32BE=function(h,B,w){if(h=+h,B=B>>>0,!w)O0(this,h,B,4,4294967295,0);return this[B]=h>>>24,this[B+1]=h>>>16,this[B+2]=h>>>8,this[B+3]=h&255,B+4};P.prototype.writeBigUInt64LE=m0(function(h,B=0){return a1(this,h,B,BigInt(0),BigInt("0xffffffffffffffff"))});P.prototype.writeBigUInt64BE=m0(function(h,B=0){return s1(this,h,B,BigInt(0),BigInt("0xffffffffffffffff"))});P.prototype.writeIntLE=function(h,B,w,U){if(h=+h,B=B>>>0,!U){let q=Math.pow(2,8*w-1);O0(this,h,B,w,q-1,-q)}let X=0,Q=1,J=0;this[B]=h&255;while(++X<w&&(Q*=256)){if(h<0&&J===0&&this[B+X-1]!==0)J=1;this[B+X]=(h/Q>>0)-J&255}return B+w};P.prototype.writeIntBE=function(h,B,w,U){if(h=+h,B=B>>>0,!U){let q=Math.pow(2,8*w-1);O0(this,h,B,w,q-1,-q)}let X=w-1,Q=1,J=0;this[B+X]=h&255;while(--X>=0&&(Q*=256)){if(h<0&&J===0&&this[B+X+1]!==0)J=1;this[B+X]=(h/Q>>0)-J&255}return B+w};P.prototype.writeInt8=function(h,B,w){if(h=+h,B=B>>>0,!w)O0(this,h,B,1,127,-128);if(h<0)h=255+h+1;return this[B]=h&255,B+1};P.prototype.writeInt16LE=function(h,B,w){if(h=+h,B=B>>>0,!w)O0(this,h,B,2,32767,-32768);return this[B]=h&255,this[B+1]=h>>>8,B+2};P.prototype.writeInt16BE=function(h,B,w){if(h=+h,B=B>>>0,!w)O0(this,h,B,2,32767,-32768);return this[B]=h>>>8,this[B+1]=h&255,B+2};P.prototype.writeInt32LE=function(h,B,w){if(h=+h,B=B>>>0,!w)O0(this,h,B,4,2147483647,-2147483648);return this[B]=h&255,this[B+1]=h>>>8,this[B+2]=h>>>16,this[B+3]=h>>>24,B+4};P.prototype.writeInt32BE=function(h,B,w){if(h=+h,B=B>>>0,!w)O0(this,h,B,4,2147483647,-2147483648);if(h<0)h=4294967295+h+1;return this[B]=h>>>24,this[B+1]=h>>>16,this[B+2]=h>>>8,this[B+3]=h&255,B+4};P.prototype.writeBigInt64LE=m0(function(h,B=0){return a1(this,h,B,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});P.prototype.writeBigInt64BE=m0(function(h,B=0){return s1(this,h,B,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});P.prototype.writeFloatLE=function(h,B,w){return e1(this,h,B,!0,w)};P.prototype.writeFloatBE=function(h,B,w){return e1(this,h,B,!1,w)};P.prototype.writeDoubleLE=function(h,B,w){return h6(this,h,B,!0,w)};P.prototype.writeDoubleBE=function(h,B,w){return h6(this,h,B,!1,w)};P.prototype.copy=function(h,B,w,U){if(!P.isBuffer(h))throw TypeError("argument should be a Buffer");if(!w)w=0;if(!U&&U!==0)U=this.length;if(B>=h.length)B=h.length;if(!B)B=0;if(U>0&&U<w)U=w;if(U===w)return 0;if(h.length===0||this.length===0)return 0;if(B<0)throw RangeError("targetStart out of bounds");if(w<0||w>=this.length)throw RangeError("Index out of range");if(U<0)throw RangeError("sourceEnd out of bounds");if(U>this.length)U=this.length;if(h.length-B<U-w)U=h.length-B+w;let X=U-w;if(this===h&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(B,w,U);else Uint8Array.prototype.set.call(h,this.subarray(w,U),B);return X};P.prototype.fill=function(h,B,w,U){if(typeof h==="string"){if(typeof B==="string")U=B,B=0,w=this.length;else if(typeof w==="string")U=w,w=this.length;if(U!==void 0&&typeof U!=="string")throw TypeError("encoding must be a string");if(typeof U==="string"&&!P.isEncoding(U))throw TypeError("Unknown encoding: "+U);if(h.length===1){let Q=h.charCodeAt(0);if(U==="utf8"&&Q<128||U==="latin1")h=Q}}else if(typeof h==="number")h=h&255;else if(typeof h==="boolean")h=Number(h);if(B<0||this.length<B||this.length<w)throw RangeError("Out of range index");if(w<=B)return this;if(B=B>>>0,w=w===void 0?this.length:w>>>0,!h)h=0;let X;if(typeof h==="number")for(X=B;X<w;++X)this[X]=h;else{let Q=P.isBuffer(h)?h:P.from(h,U),J=Q.length;if(J===0)throw TypeError('The value "'+h+'" is invalid for argument "value"');for(X=0;X<w-B;++X)this[X+B]=Q[X%J]}return this};L8=/[^+/0-9A-Za-z-_]/g;P8=function(){let h=Array(256);for(let B=0;B<16;++B){let w=B*16;for(let U=0;U<16;++U)h[w+U]="0123456789abcdef"[B]+"0123456789abcdef"[U]}return h}();_8=a2("resolveObjectURL"),R8=a2("isUtf8"),S8=a2("transcode"),y8=P});var N2={};E1(N2,{setMaxListeners:()=>q6,once:()=>Y6,listenerCount:()=>$6,init:()=>n0,getMaxListeners:()=>G6,getEventListeners:()=>H6,default:()=>d8,captureRejectionSymbol:()=>J6,addAbortListener:()=>C6,EventEmitter:()=>n0});function I6(h,B){var{_events:w}=h;if(B[0]??=Error("Unhandled error."),!w)throw B[0];var U=w[Z6];if(U)for(var X of X6.call(U))X.apply(h,B);var Q=w.error;if(!Q)throw B[0];for(var X of X6.call(Q))X.apply(h,B);return!0}function u8(h,B,w,U){B.then(void 0,function(X){queueMicrotask(()=>v8(h,X,w,U))})}function v8(h,B,w,U){if(typeof h[U6]==="function")h[U6](B,w,...U);else try{h[B2]=!1,h.emit("error",B)}finally{h[B2]=!0}}function F6(h,B,w){w.warned=!0;let U=Error(`Possible EventEmitter memory leak detected. ${w.length} ${String(B)} listeners added to [${h.constructor.name}]. Use emitter.setMaxListeners() to increase limit`);U.name="MaxListenersExceededWarning",U.emitter=h,U.type=B,U.count=w.length,console.warn(U)}function K6(h,B,...w){this.removeListener(h,B),B.apply(this,w)}function Y6(h,B,w){var U=w?.signal;if(z6(U,"options.signal"),U?.aborted)throw new s2(void 0,{cause:U?.reason});let{resolve:X,reject:Q,promise:J}=$newPromiseCapability(Promise),q=($)=>{if(h.removeListener(B,K),U!=null)_2(U,"abort",Y);Q($)},K=(...$)=>{if(typeof h.removeListener==="function")h.removeListener("error",q);if(U!=null)_2(U,"abort",Y);X($)};if(Q6(h,B,K,{once:!0}),B!=="error"&&typeof h.once==="function")h.once("error",q);function Y(){_2(h,B,K),_2(h,"error",q),Q(new s2(void 0,{cause:U?.reason}))}if(U!=null)Q6(U,"abort",Y,{once:!0});return J}function H6(h,B){return h.listeners(B)}function q6(h,...B){e2(h,"setMaxListeners",0);var w;if(B&&(w=B.length))for(let U=0;U<w;U++)B[U].setMaxListeners(h);else w2=h}function $6(h,B){return h.listenerCount(B)}function _2(h,B,w,U){if(typeof h.removeListener==="function")h.removeListener(B,w);else h.removeEventListener(B,w,U)}function Q6(h,B,w,U){if(typeof h.on==="function")if(U.once)h.once(B,w);else h.on(B,w);else h.addEventListener(B,w,U)}function F2(h,B,w){let U=TypeError(`The "${h}" argument must be of type ${B}. Received ${w}`);return U.code="ERR_INVALID_ARG_TYPE",U}function p8(h,B,w){let U=RangeError(`The "${h}" argument is out of range. It must be ${B}. Received ${w}`);return U.code="ERR_OUT_OF_RANGE",U}function z6(h,B){if(h!==void 0&&(h===null||typeof h!=="object"||!("aborted"in h)))throw F2(B,"AbortSignal",h)}function e2(h,B,w,U){if(typeof h!=="number")throw F2(B,"number",h);if(w!=null&&h<w||U!=null&&h>U||(w!=null||U!=null)&&Number.isNaN(h))throw p8(B,`${w!=null?`>= ${w}`:""}${w!=null&&U!=null?" && ":""}${U!=null?`<= ${U}`:""}`,h)}function W2(h){if(typeof h!=="function")throw TypeError("The listener must be a function")}function i8(h,B){if(typeof h!=="boolean")throw F2(B,"boolean",h)}function G6(h){return h?._maxListeners??w2}function C6(h,B){if(h===void 0)throw F2("signal","AbortSignal",h);if(z6(h,"signal"),typeof B!=="function")throw F2("listener","function",B);let w;if(h.aborted)queueMicrotask(()=>B());else h.addEventListener("abort",B,{__proto__:null,once:!0}),w=()=>{h.removeEventListener("abort",B)};return{__proto__:null,[Symbol.dispose](){w?.()}}}var t2,B2,Z6,f8,c8,U6,J6,X6,w2=10,n0=function(h){if(this._events===void 0||this._events===this.__proto__._events)this._events={__proto__:null},this._eventsCount=0;if(this._maxListeners??=void 0,this[B2]=h?.captureRejections?Boolean(h?.captureRejections):C0[B2])this.emit=b8},C0,g8=function(h,...B){if(h==="error")return I6(this,B);var{_events:w}=this;if(w===void 0)return!1;var U=w[h];if(U===void 0)return!1;let X=U.length>1?U.slice():U;for(let Q=0,{length:J}=X;Q<J;Q++){let q=X[Q];switch(B.length){case 0:q.call(this);break;case 1:q.call(this,B[0]);break;case 2:q.call(this,B[0],B[1]);break;case 3:q.call(this,B[0],B[1],B[2]);break;default:q.apply(this,B);break}}return!0},b8=function(h,...B){if(h==="error")return I6(this,B);var{_events:w}=this;if(w===void 0)return!1;var U=w[h];if(U===void 0)return!1;let X=U.length>1?U.slice():U;for(let Q=0,{length:J}=X;Q<J;Q++){let q=X[Q],K;switch(B.length){case 0:K=q.call(this);break;case 1:K=q.call(this,B[0]);break;case 2:K=q.call(this,B[0],B[1]);break;case 3:K=q.call(this,B[0],B[1],B[2]);break;default:K=q.apply(this,B);break}if(K!==void 0&&typeof K?.then==="function"&&K.then===Promise.prototype.then)u8(this,K,h,B)}return!0},s2,d8;var V2=D1(()=>{t2=Symbol.for,B2=Symbol("kCapture"),Z6=t2("events.errorMonitor"),f8=Symbol("events.maxEventTargetListeners"),c8=Symbol("events.maxEventTargetListenersWarned"),U6=t2("nodejs.rejection"),J6=t2("nodejs.rejection"),X6=Array.prototype.slice,C0=n0.prototype={};C0._events=void 0;C0._eventsCount=0;C0._maxListeners=void 0;C0.setMaxListeners=function(h){return e2(h,"setMaxListeners",0),this._maxListeners=h,this};C0.constructor=n0;C0.getMaxListeners=function(){return this?._maxListeners??w2};C0.emit=g8;C0.addListener=function(h,B){W2(B);var w=this._events;if(!w)w=this._events={__proto__:null},this._eventsCount=0;else if(w.newListener)this.emit("newListener",h,B.listener??B);var U=w[h];if(!U)w[h]=[B],this._eventsCount++;else{U.push(B);var X=this._maxListeners??w2;if(X>0&&U.length>X&&!U.warned)F6(this,h,U)}return this};C0.on=C0.addListener;C0.prependListener=function(h,B){W2(B);var w=this._events;if(!w)w=this._events={__proto__:null},this._eventsCount=0;else if(w.newListener)this.emit("newListener",h,B.listener??B);var U=w[h];if(!U)w[h]=[B],this._eventsCount++;else{U.unshift(B);var X=this._maxListeners??w2;if(X>0&&U.length>X&&!U.warned)F6(this,h,U)}return this};C0.once=function(h,B){W2(B);let w=K6.bind(this,h,B);return w.listener=B,this.addListener(h,w),this};C0.prependOnceListener=function(h,B){W2(B);let w=K6.bind(this,h,B);return w.listener=B,this.prependListener(h,w),this};C0.removeListener=function(h,B){W2(B);var{_events:w}=this;if(!w)return this;var U=w[h];if(!U)return this;var X=U.length;let Q=-1;for(let J=X-1;J>=0;J--)if(U[J]===B||U[J].listener===B){Q=J;break}if(Q<0)return this;if(Q===0)U.shift();else U.splice(Q,1);if(U.length===0)delete w[h],this._eventsCount--;return this};C0.off=C0.removeListener;C0.removeAllListeners=function(h){var{_events:B}=this;if(h&&B){if(B[h])delete B[h],this._eventsCount--}else this._events={__proto__:null};return this};C0.listeners=function(h){var{_events:B}=this;if(!B)return[];var w=B[h];if(!w)return[];return w.map((U)=>U.listener??U)};C0.rawListeners=function(h){var{_events:B}=this;if(!B)return[];var w=B[h];if(!w)return[];return w.slice()};C0.listenerCount=function(h){var{_events:B}=this;if(!B)return 0;return B[h]?.length??0};C0.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};C0[B2]=!1;s2=class s2 extends Error{constructor(h="The operation was aborted",B=void 0){if(B!==void 0&&typeof B!=="object")throw F2("options","Object",B);super(h,B);this.code="ABORT_ERR",this.name="AbortError"}};Object.defineProperties(n0,{captureRejections:{get(){return C0[B2]},set(h){i8(h,"EventEmitter.captureRejections"),C0[B2]=h},enumerable:!0},defaultMaxListeners:{enumerable:!0,get:()=>{return w2},set:(h)=>{e2(h,"defaultMaxListeners",0),w2=h}},kMaxEventTargetListeners:{value:f8,enumerable:!1,configurable:!1,writable:!1},kMaxEventTargetListenersWarned:{value:c8,enumerable:!1,configurable:!1,writable:!1}});Object.assign(n0,{once:Y6,getEventListeners:H6,getMaxListeners:G6,setMaxListeners:q6,EventEmitter:n0,usingDomains:!1,captureRejectionSymbol:J6,errorMonitor:Z6,addAbortListener:C6,init:n0,listenerCount:$6});d8=n0});var U1=m6((O4,L6)=>{var $0=(h,B)=>()=>(B||h((B={exports:{}}).exports,B),B.exports),W0=$0((h,B)=>{class w extends Error{constructor(U){if(!Array.isArray(U))throw TypeError(`Expected input to be an Array, got ${typeof U}`);let X="";for(let Q=0;Q<U.length;Q++)X+=` ${U[Q].stack}
|
|
2
|
-
`;super(X);this.name="AggregateError",this.errors=U}}B.exports={AggregateError:w,ArrayIsArray(U){return Array.isArray(U)},ArrayPrototypeIncludes(U,X){return U.includes(X)},ArrayPrototypeIndexOf(U,X){return U.indexOf(X)},ArrayPrototypeJoin(U,X){return U.join(X)},ArrayPrototypeMap(U,X){return U.map(X)},ArrayPrototypePop(U,X){return U.pop(X)},ArrayPrototypePush(U,X){return U.push(X)},ArrayPrototypeSlice(U,X,Q){return U.slice(X,Q)},Error,FunctionPrototypeCall(U,X,...Q){return U.call(X,...Q)},FunctionPrototypeSymbolHasInstance(U,X){return Function.prototype[Symbol.hasInstance].call(U,X)},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(U,X){return Object.defineProperties(U,X)},ObjectDefineProperty(U,X,Q){return Object.defineProperty(U,X,Q)},ObjectGetOwnPropertyDescriptor(U,X){return Object.getOwnPropertyDescriptor(U,X)},ObjectKeys(U){return Object.keys(U)},ObjectSetPrototypeOf(U,X){return Object.setPrototypeOf(U,X)},Promise,PromisePrototypeCatch(U,X){return U.catch(X)},PromisePrototypeThen(U,X,Q){return U.then(X,Q)},PromiseReject(U){return Promise.reject(U)},PromiseResolve(U){return Promise.resolve(U)},ReflectApply:Reflect.apply,RegExpPrototypeTest(U,X){return U.test(X)},SafeSet:Set,String,StringPrototypeSlice(U,X,Q){return U.slice(X,Q)},StringPrototypeToLowerCase(U){return U.toLowerCase()},StringPrototypeToUpperCase(U){return U.toUpperCase()},StringPrototypeTrim(U){return U.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(U,X,Q){return U.set(X,Q)},Boolean,Uint8Array}}),W6=$0((h,B)=>{B.exports={format(w,...U){return w.replace(/%([sdifj])/g,function(...[X,Q]){let J=U.shift();if(Q==="f")return J.toFixed(6);else if(Q==="j")return JSON.stringify(J);else if(Q==="s"&&typeof J==="object")return`${J.constructor!==Object?J.constructor.name:""} {}`.trim();else return J.toString()})},inspect(w){switch(typeof w){case"string":if(w.includes("'")){if(!w.includes('"'))return`"${w}"`;else if(!w.includes("`")&&!w.includes("${"))return`\`${w}\``}return`'${w}'`;case"number":if(isNaN(w))return"NaN";else if(Object.is(w,-0))return String(w);return w;case"bigint":return`${String(w)}n`;case"boolean":case"undefined":return String(w);case"object":return"{}"}}}}),j0=$0((h,B)=>{var{format:w,inspect:U}=W6(),{AggregateError:X}=W0(),Q=globalThis.AggregateError||X,J=Symbol("kIsNodeError"),q=["string","function","number","object","Function","Object","boolean","bigint","symbol"],K=/^([A-Z][a-z0-9]*)+$/,Y={};function $(E,F){if(!E)throw new Y.ERR_INTERNAL_ASSERTION(F)}function V(E){let F="",W=E.length,j=E[0]==="-"?1:0;for(;W>=j+4;W-=3)F=`_${E.slice(W-3,W)}${F}`;return`${E.slice(0,W)}${F}`}function L(E,F,W){if(typeof F==="function")return $(F.length<=W.length,`Code: ${E}; The provided arguments length (${W.length}) does not match the required ones (${F.length}).`),F(...W);let j=(F.match(/%[dfijoOs]/g)||[]).length;if($(j===W.length,`Code: ${E}; The provided arguments length (${W.length}) does not match the required ones (${j}).`),W.length===0)return F;return w(F,...W)}function x(E,F,W){if(!W)W=Error;class j extends W{constructor(..._){super(L(E,F,_))}toString(){return`${this.name} [${E}]: ${this.message}`}}Object.defineProperties(j.prototype,{name:{value:W.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${E}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),j.prototype.code=E,j.prototype[J]=!0,Y[E]=j}function h0(E){let F="__node_internal_"+E.name;return Object.defineProperty(E,"name",{value:F}),E}function s(E,F){if(E&&F&&E!==F){if(Array.isArray(F.errors))return F.errors.push(E),F;let W=new Q([F,E],F.message);return W.code=F.code,W}return E||F}class O extends Error{constructor(E="The operation was aborted",F=void 0){if(F!==void 0&&typeof F!=="object")throw new Y.ERR_INVALID_ARG_TYPE("options","Object",F);super(E,F);this.code="ABORT_ERR",this.name="AbortError"}}x("ERR_ASSERTION","%s",Error),x("ERR_INVALID_ARG_TYPE",(E,F,W)=>{if($(typeof E==="string","'name' must be a string"),!Array.isArray(F))F=[F];let j="The ";if(E.endsWith(" argument"))j+=`${E} `;else j+=`"${E}" ${E.includes(".")?"property":"argument"} `;j+="must be ";let _=[],i=[],Z0=[];for(let o of F)if($(typeof o==="string","All expected entries have to be of type string"),q.includes(o))_.push(o.toLowerCase());else if(K.test(o))i.push(o);else $(o!=="object",'The value "object" should be written as "Object"'),Z0.push(o);if(i.length>0){let o=_.indexOf("object");if(o!==-1)_.splice(_,o,1),i.push("Object")}if(_.length>0){switch(_.length){case 1:j+=`of type ${_[0]}`;break;case 2:j+=`one of type ${_[0]} or ${_[1]}`;break;default:{let o=_.pop();j+=`one of type ${_.join(", ")}, or ${o}`}}if(i.length>0||Z0.length>0)j+=" or "}if(i.length>0){switch(i.length){case 1:j+=`an instance of ${i[0]}`;break;case 2:j+=`an instance of ${i[0]} or ${i[1]}`;break;default:{let o=i.pop();j+=`an instance of ${i.join(", ")}, or ${o}`}}if(Z0.length>0)j+=" or "}switch(Z0.length){case 0:break;case 1:if(Z0[0].toLowerCase()!==Z0[0])j+="an ";j+=`${Z0[0]}`;break;case 2:j+=`one of ${Z0[0]} or ${Z0[1]}`;break;default:{let o=Z0.pop();j+=`one of ${Z0.join(", ")}, or ${o}`}}if(W==null)j+=`. Received ${W}`;else if(typeof W==="function"&&W.name)j+=`. Received function ${W.name}`;else if(typeof W==="object"){var F0;if((F0=W.constructor)!==null&&F0!==void 0&&F0.name)j+=`. Received an instance of ${W.constructor.name}`;else{let o=U(W,{depth:-1});j+=`. Received ${o}`}}else{let o=U(W,{colors:!1});if(o.length>25)o=`${o.slice(0,25)}...`;j+=`. Received type ${typeof W} (${o})`}return j},TypeError),x("ERR_INVALID_ARG_VALUE",(E,F,W="is invalid")=>{let j=U(F);if(j.length>128)j=j.slice(0,128)+"...";return`The ${E.includes(".")?"property":"argument"} '${E}' ${W}. Received ${j}`},TypeError),x("ERR_INVALID_RETURN_VALUE",(E,F,W)=>{var j;let _=W!==null&&W!==void 0&&(j=W.constructor)!==null&&j!==void 0&&j.name?`instance of ${W.constructor.name}`:`type ${typeof W}`;return`Expected ${E} to be returned from the "${F}" function but got ${_}.`},TypeError),x("ERR_MISSING_ARGS",(...E)=>{$(E.length>0,"At least one arg needs to be specified");let F,W=E.length;switch(E=(Array.isArray(E)?E:[E]).map((j)=>`"${j}"`).join(" or "),W){case 1:F+=`The ${E[0]} argument`;break;case 2:F+=`The ${E[0]} and ${E[1]} arguments`;break;default:{let j=E.pop();F+=`The ${E.join(", ")}, and ${j} arguments`}break}return`${F} must be specified`},TypeError),x("ERR_OUT_OF_RANGE",(E,F,W)=>{$(F,'Missing "range" argument');let j;if(Number.isInteger(W)&&Math.abs(W)>4294967296)j=V(String(W));else if(typeof W==="bigint"){j=String(W);let _=BigInt(2)**BigInt(32);if(W>_||W<-_)j=V(j);j+="n"}else j=U(W);return`The value of "${E}" is out of range. It must be ${F}. Received ${j}`},RangeError),x("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),x("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),x("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),x("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),x("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),x("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),x("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),x("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),x("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),x("ERR_STREAM_WRITE_AFTER_END","write after end",Error),x("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),B.exports={AbortError:O,aggregateTwoErrors:h0(s),hideStackFrames:h0,codes:Y}}),l8=$0((h,B)=>{Object.defineProperty(h,"__esModule",{value:!0});var w=new WeakMap,U=new WeakMap;function X(k){let v=w.get(k);return console.assert(v!=null,"'this' is expected an Event object, but got",k),v}function Q(k){if(k.passiveListener!=null){if(typeof console<"u"&&typeof console.error==="function")console.error("Unable to preventDefault inside passive event listener invocation.",k.passiveListener);return}if(!k.event.cancelable)return;if(k.canceled=!0,typeof k.event.preventDefault==="function")k.event.preventDefault()}function J(k,v){w.set(this,{eventTarget:k,event:v,eventPhase:2,currentTarget:k,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:v.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let C=Object.keys(v);for(let A=0;A<C.length;++A){let D=C[A];if(!(D in this))Object.defineProperty(this,D,q(D))}}if(J.prototype={get type(){return X(this).event.type},get target(){return X(this).eventTarget},get currentTarget(){return X(this).currentTarget},composedPath(){let k=X(this).currentTarget;if(k==null)return[];return[k]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return X(this).eventPhase},stopPropagation(){let k=X(this);if(k.stopped=!0,typeof k.event.stopPropagation==="function")k.event.stopPropagation()},stopImmediatePropagation(){let k=X(this);if(k.stopped=!0,k.immediateStopped=!0,typeof k.event.stopImmediatePropagation==="function")k.event.stopImmediatePropagation()},get bubbles(){return Boolean(X(this).event.bubbles)},get cancelable(){return Boolean(X(this).event.cancelable)},preventDefault(){Q(X(this))},get defaultPrevented(){return X(this).canceled},get composed(){return Boolean(X(this).event.composed)},get timeStamp(){return X(this).timeStamp},get srcElement(){return X(this).eventTarget},get cancelBubble(){return X(this).stopped},set cancelBubble(k){if(!k)return;let v=X(this);if(v.stopped=!0,typeof v.event.cancelBubble==="boolean")v.event.cancelBubble=!0},get returnValue(){return!X(this).canceled},set returnValue(k){if(!k)Q(X(this))},initEvent(){}},Object.defineProperty(J.prototype,"constructor",{value:J,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.Event<"u")Object.setPrototypeOf(J.prototype,window.Event.prototype),U.set(window.Event.prototype,J);function q(k){return{get(){return X(this).event[k]},set(v){X(this).event[k]=v},configurable:!0,enumerable:!0}}function K(k){return{value(){let v=X(this).event;return v[k].apply(v,arguments)},configurable:!0,enumerable:!0}}function Y(k,v){let C=Object.keys(v);if(C.length===0)return k;function A(D,M){k.call(this,D,M)}A.prototype=Object.create(k.prototype,{constructor:{value:A,configurable:!0,writable:!0}});for(let D=0;D<C.length;++D){let M=C[D];if(!(M in k.prototype)){let m=typeof Object.getOwnPropertyDescriptor(v,M).value==="function";Object.defineProperty(A.prototype,M,m?K(M):q(M))}}return A}function $(k){if(k==null||k===Object.prototype)return J;let v=U.get(k);if(v==null)v=Y($(Object.getPrototypeOf(k)),k),U.set(k,v);return v}function V(k,v){return new($(Object.getPrototypeOf(v)))(k,v)}function L(k){return X(k).immediateStopped}function x(k,v){X(k).eventPhase=v}function h0(k,v){X(k).currentTarget=v}function s(k,v){X(k).passiveListener=v}var O=new WeakMap,E=1,F=2,W=3;function j(k){return k!==null&&typeof k==="object"}function _(k){let v=O.get(k);if(v==null)throw TypeError("'this' is expected an EventTarget object, but got another value.");return v}function i(k){return{get(){let v=_(this).get(k);while(v!=null){if(v.listenerType===W)return v.listener;v=v.next}return null},set(v){if(typeof v!=="function"&&!j(v))v=null;let C=_(this),A=null,D=C.get(k);while(D!=null){if(D.listenerType===W)if(A!==null)A.next=D.next;else if(D.next!==null)C.set(k,D.next);else C.delete(k);else A=D;D=D.next}if(v!==null){let M={listener:v,listenerType:W,passive:!1,once:!1,next:null};if(A===null)C.set(k,M);else A.next=M}},configurable:!0,enumerable:!0}}function Z0(k,v){Object.defineProperty(k,`on${v}`,i(v))}function F0(k){function v(){o.call(this)}v.prototype=Object.create(o.prototype,{constructor:{value:v,configurable:!0,writable:!0}});for(let C=0;C<k.length;++C)Z0(v.prototype,k[C]);return v}function o(){if(this instanceof o){O.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return F0(arguments[0]);if(arguments.length>0){let k=Array(arguments.length);for(let v=0;v<arguments.length;++v)k[v]=arguments[v];return F0(k)}throw TypeError("Cannot call a class as a function")}if(o.prototype={addEventListener(k,v,C){if(v==null)return;if(typeof v!=="function"&&!j(v))throw TypeError("'listener' should be a function or an object.");let A=_(this),D=j(C),M=(D?Boolean(C.capture):Boolean(C))?E:F,m={listener:v,listenerType:M,passive:D&&Boolean(C.passive),once:D&&Boolean(C.once),next:null},e=A.get(k);if(e===void 0){A.set(k,m);return}let U0=null;while(e!=null){if(e.listener===v&&e.listenerType===M)return;U0=e,e=e.next}U0.next=m},removeEventListener(k,v,C){if(v==null)return;let A=_(this),D=(j(C)?Boolean(C.capture):Boolean(C))?E:F,M=null,m=A.get(k);while(m!=null){if(m.listener===v&&m.listenerType===D){if(M!==null)M.next=m.next;else if(m.next!==null)A.set(k,m.next);else A.delete(k);return}M=m,m=m.next}},dispatchEvent(k){if(k==null||typeof k.type!=="string")throw TypeError('"event.type" should be a string.');let v=_(this),C=k.type,A=v.get(C);if(A==null)return!0;let D=V(this,k),M=null;while(A!=null){if(A.once)if(M!==null)M.next=A.next;else if(A.next!==null)v.set(C,A.next);else v.delete(C);else M=A;if(s(D,A.passive?A.listener:null),typeof A.listener==="function")try{A.listener.call(this,D)}catch(m){if(typeof console<"u"&&typeof console.error==="function")console.error(m)}else if(A.listenerType!==W&&typeof A.listener.handleEvent==="function")A.listener.handleEvent(D);if(L(D))break;A=A.next}return s(D,null),x(D,0),h0(D,null),!D.defaultPrevented}},Object.defineProperty(o.prototype,"constructor",{value:o,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.EventTarget<"u")Object.setPrototypeOf(o.prototype,window.EventTarget.prototype);h.defineEventAttribute=Z0,h.EventTarget=o,h.default=o,B.exports=o,B.exports.EventTarget=B.exports.default=o,B.exports.defineEventAttribute=Z0}),M2=$0((h,B)=>{Object.defineProperty(h,"__esModule",{value:!0});var w=l8();class U extends w.EventTarget{constructor(){super();throw TypeError("AbortSignal cannot be constructed directly")}get aborted(){let $=J.get(this);if(typeof $!=="boolean")throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return $}}w.defineEventAttribute(U.prototype,"abort");function X(){let $=Object.create(U.prototype);return w.EventTarget.call($),J.set($,!1),$}function Q($){if(J.get($)!==!1)return;J.set($,!0),$.dispatchEvent({type:"abort"})}var J=new WeakMap;if(Object.defineProperties(U.prototype,{aborted:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(U.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class q{constructor(){K.set(this,X())}get signal(){return Y(this)}abort(){Q(Y(this))}}var K=new WeakMap;function Y($){let V=K.get($);if(V==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${$===null?"null":typeof $}`);return V}if(Object.defineProperties(q.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(q.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});h.AbortController=q,h.AbortSignal=U,h.default=q,B.exports=q,B.exports.AbortController=B.exports.default=q,B.exports.AbortSignal=U}),L0=$0((h,B)=>{var w=(p0(),T0(b0)),{format:U,inspect:X}=W6(),{codes:{ERR_INVALID_ARG_TYPE:Q}}=j0(),{kResistStopPropagation:J,AggregateError:q,SymbolDispose:K}=W0(),Y=globalThis.AbortSignal||M2().AbortSignal,$=globalThis.AbortController||M2().AbortController,V=Object.getPrototypeOf(async function(){}).constructor,L=globalThis.Blob||w.Blob,x=typeof L<"u"?function(O){return O instanceof L}:function(O){return!1},h0=(O,E)=>{if(O!==void 0&&(O===null||typeof O!=="object"||!("aborted"in O)))throw new Q(E,"AbortSignal",O)},s=(O,E)=>{if(typeof O!=="function")throw new Q(E,"Function",O)};B.exports={AggregateError:q,kEmptyObject:Object.freeze({}),once(O){let E=!1;return function(...F){if(E)return;E=!0,O.apply(this,F)}},createDeferredPromise:function(){let O,E;return{promise:new Promise((F,W)=>{O=F,E=W}),resolve:O,reject:E}},promisify(O){return new Promise((E,F)=>{O((W,...j)=>{if(W)return F(W);return E(...j)})})},debuglog(){return function(){}},format:U,inspect:X,types:{isAsyncFunction(O){return O instanceof V},isArrayBufferView(O){return ArrayBuffer.isView(O)}},isBlob:x,deprecate(O,E){return O},addAbortListener:(V2(),T0(N2)).addAbortListener||function(O,E){if(O===void 0)throw new Q("signal","AbortSignal",O);h0(O,"signal"),s(E,"listener");let F;if(O.aborted)queueMicrotask(()=>E());else O.addEventListener("abort",E,{__proto__:null,once:!0,[J]:!0}),F=()=>{O.removeEventListener("abort",E)};return{__proto__:null,[K](){var W;(W=F)===null||W===void 0||W()}}},AbortSignalAny:Y.any||function(O){if(O.length===1)return O[0];let E=new $,F=()=>E.abort();return O.forEach((W)=>{h0(W,"signals"),W.addEventListener("abort",F,{once:!0})}),E.signal.addEventListener("abort",()=>{O.forEach((W)=>W.removeEventListener("abort",F))},{once:!0}),E.signal}},B.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),j2=$0((h,B)=>{var{ArrayIsArray:w,ArrayPrototypeIncludes:U,ArrayPrototypeJoin:X,ArrayPrototypeMap:Q,NumberIsInteger:J,NumberIsNaN:q,NumberMAX_SAFE_INTEGER:K,NumberMIN_SAFE_INTEGER:Y,NumberParseInt:$,ObjectPrototypeHasOwnProperty:V,RegExpPrototypeExec:L,String:x,StringPrototypeToUpperCase:h0,StringPrototypeTrim:s}=W0(),{hideStackFrames:O,codes:{ERR_SOCKET_BAD_PORT:E,ERR_INVALID_ARG_TYPE:F,ERR_INVALID_ARG_VALUE:W,ERR_OUT_OF_RANGE:j,ERR_UNKNOWN_SIGNAL:_}}=j0(),{normalizeEncoding:i}=L0(),{isAsyncFunction:Z0,isArrayBufferView:F0}=L0().types,o={};function k(G){return G===(G|0)}function v(G){return G===G>>>0}var C=/^[0-7]+$/,A="must be a 32-bit unsigned integer or an octal string";function D(G,u,r){if(typeof G>"u")G=r;if(typeof G==="string"){if(L(C,G)===null)throw new W(u,G,A);G=$(G,8)}return e(G,u),G}var M=O((G,u,r=Y,g=K)=>{if(typeof G!=="number")throw new F(u,"number",G);if(!J(G))throw new j(u,"an integer",G);if(G<r||G>g)throw new j(u,`>= ${r} && <= ${g}`,G)}),m=O((G,u,r=-2147483648,g=2147483647)=>{if(typeof G!=="number")throw new F(u,"number",G);if(!J(G))throw new j(u,"an integer",G);if(G<r||G>g)throw new j(u,`>= ${r} && <= ${g}`,G)}),e=O((G,u,r=!1)=>{if(typeof G!=="number")throw new F(u,"number",G);if(!J(G))throw new j(u,"an integer",G);let g=r?1:0,Q0=4294967295;if(G<g||G>Q0)throw new j(u,`>= ${g} && <= ${Q0}`,G)});function U0(G,u){if(typeof G!=="string")throw new F(u,"string",G)}function H0(G,u,r=void 0,g){if(typeof G!=="number")throw new F(u,"number",G);if(r!=null&&G<r||g!=null&&G>g||(r!=null||g!=null)&&q(G))throw new j(u,`${r!=null?`>= ${r}`:""}${r!=null&&g!=null?" && ":""}${g!=null?`<= ${g}`:""}`,G)}var f=O((G,u,r)=>{if(!U(r,G)){let g="must be one of: "+X(Q(r,(Q0)=>typeof Q0==="string"?`'${Q0}'`:x(Q0)),", ");throw new W(u,G,g)}});function X0(G,u){if(typeof G!=="boolean")throw new F(u,"boolean",G)}function H(G,u,r){return G==null||!V(G,u)?r:G[u]}var c=O((G,u,r=null)=>{let g=H(r,"allowArray",!1),Q0=H(r,"allowFunction",!1);if(!H(r,"nullable",!1)&&G===null||!g&&w(G)||typeof G!=="object"&&(!Q0||typeof G!=="function"))throw new F(u,"Object",G)}),t=O((G,u)=>{if(G!=null&&typeof G!=="object"&&typeof G!=="function")throw new F(u,"a dictionary",G)}),R=O((G,u,r=0)=>{if(!w(G))throw new F(u,"Array",G);if(G.length<r){let g=`must be longer than ${r}`;throw new W(u,G,g)}});function w0(G,u){R(G,u);for(let r=0;r<G.length;r++)U0(G[r],`${u}[${r}]`)}function J0(G,u){R(G,u);for(let r=0;r<G.length;r++)X0(G[r],`${u}[${r}]`)}function q0(G,u){R(G,u);for(let r=0;r<G.length;r++){let g=G[r],Q0=`${u}[${r}]`;if(g==null)throw new F(Q0,"AbortSignal",g);I0(g,Q0)}}function Y0(G,u="signal"){if(U0(G,u),o[G]===void 0){if(o[h0(G)]!==void 0)throw new _(G+" (signals must use all capital letters)");throw new _(G)}}var S=O((G,u="buffer")=>{if(!F0(G))throw new F(u,["Buffer","TypedArray","DataView"],G)});function y(G,u){let r=i(u),g=G.length;if(r==="hex"&&g%2!==0)throw new W("encoding",u,`is invalid for data of length ${g}`)}function d(G,u="Port",r=!0){if(typeof G!=="number"&&typeof G!=="string"||typeof G==="string"&&s(G).length===0||+G!==+G>>>0||G>65535||G===0&&!r)throw new E(u,G,r);return G|0}var I0=O((G,u)=>{if(G!==void 0&&(G===null||typeof G!=="object"||!("aborted"in G)))throw new F(u,"AbortSignal",G)}),K0=O((G,u)=>{if(typeof G!=="function")throw new F(u,"Function",G)}),z=O((G,u)=>{if(typeof G!=="function"||Z0(G))throw new F(u,"Function",G)}),N=O((G,u)=>{if(G!==void 0)throw new F(u,"undefined",G)});function T(G,u,r){if(!U(r,G))throw new F(u,`('${X(r,"|")}')`,G)}var p=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function n(G,u){if(typeof G>"u"||!L(p,G))throw new W(u,G,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function l(G){if(typeof G==="string")return n(G,"hints"),G;else if(w(G)){let u=G.length,r="";if(u===0)return r;for(let g=0;g<u;g++){let Q0=G[g];if(n(Q0,"hints"),r+=Q0,g!==u-1)r+=", "}return r}throw new W("hints",G,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}B.exports={isInt32:k,isUint32:v,parseFileMode:D,validateArray:R,validateStringArray:w0,validateBooleanArray:J0,validateAbortSignalArray:q0,validateBoolean:X0,validateBuffer:S,validateDictionary:t,validateEncoding:y,validateFunction:K0,validateInt32:m,validateInteger:M,validateNumber:H0,validateObject:c,validateOneOf:f,validatePlainFunction:z,validatePort:d,validateSignalName:Y0,validateString:U0,validateUint32:e,validateUndefined:N,validateUnion:T,validateAbortSignal:I0,validateLinkHeaderValue:l}}),U2=$0((h,B)=>{B.exports=globalThis.process}),d0=$0((h,B)=>{var{SymbolAsyncIterator:w,SymbolIterator:U,SymbolFor:X}=W0(),Q=X("nodejs.stream.destroyed"),J=X("nodejs.stream.errored"),q=X("nodejs.stream.readable"),K=X("nodejs.stream.writable"),Y=X("nodejs.stream.disturbed"),$=X("nodejs.webstream.isClosedPromise"),V=X("nodejs.webstream.controllerErrorFunction");function L(H,c=!1){var t;return!!(H&&typeof H.pipe==="function"&&typeof H.on==="function"&&(!c||typeof H.pause==="function"&&typeof H.resume==="function")&&(!H._writableState||((t=H._readableState)===null||t===void 0?void 0:t.readable)!==!1)&&(!H._writableState||H._readableState))}function x(H){var c;return!!(H&&typeof H.write==="function"&&typeof H.on==="function"&&(!H._readableState||((c=H._writableState)===null||c===void 0?void 0:c.writable)!==!1))}function h0(H){return!!(H&&typeof H.pipe==="function"&&H._readableState&&typeof H.on==="function"&&typeof H.write==="function")}function s(H){return H&&(H._readableState||H._writableState||typeof H.write==="function"&&typeof H.on==="function"||typeof H.pipe==="function"&&typeof H.on==="function")}function O(H){return!!(H&&!s(H)&&typeof H.pipeThrough==="function"&&typeof H.getReader==="function"&&typeof H.cancel==="function")}function E(H){return!!(H&&!s(H)&&typeof H.getWriter==="function"&&typeof H.abort==="function")}function F(H){return!!(H&&!s(H)&&typeof H.readable==="object"&&typeof H.writable==="object")}function W(H){return O(H)||E(H)||F(H)}function j(H,c){if(H==null)return!1;if(c===!0)return typeof H[w]==="function";if(c===!1)return typeof H[U]==="function";return typeof H[w]==="function"||typeof H[U]==="function"}function _(H){if(!s(H))return null;let{_writableState:c,_readableState:t}=H,R=c||t;return!!(H.destroyed||H[Q]||R!==null&&R!==void 0&&R.destroyed)}function i(H){if(!x(H))return null;if(H.writableEnded===!0)return!0;let c=H._writableState;if(c!==null&&c!==void 0&&c.errored)return!1;if(typeof(c===null||c===void 0?void 0:c.ended)!=="boolean")return null;return c.ended}function Z0(H,c){if(!x(H))return null;if(H.writableFinished===!0)return!0;let t=H._writableState;if(t!==null&&t!==void 0&&t.errored)return!1;if(typeof(t===null||t===void 0?void 0:t.finished)!=="boolean")return null;return!!(t.finished||c===!1&&t.ended===!0&&t.length===0)}function F0(H){if(!L(H))return null;if(H.readableEnded===!0)return!0;let c=H._readableState;if(!c||c.errored)return!1;if(typeof(c===null||c===void 0?void 0:c.ended)!=="boolean")return null;return c.ended}function o(H,c){if(!L(H))return null;let t=H._readableState;if(t!==null&&t!==void 0&&t.errored)return!1;if(typeof(t===null||t===void 0?void 0:t.endEmitted)!=="boolean")return null;return!!(t.endEmitted||c===!1&&t.ended===!0&&t.length===0)}function k(H){if(H&&H[q]!=null)return H[q];if(typeof(H===null||H===void 0?void 0:H.readable)!=="boolean")return null;if(_(H))return!1;return L(H)&&H.readable&&!o(H)}function v(H){if(H&&H[K]!=null)return H[K];if(typeof(H===null||H===void 0?void 0:H.writable)!=="boolean")return null;if(_(H))return!1;return x(H)&&H.writable&&!i(H)}function C(H,c){if(!s(H))return null;if(_(H))return!0;if((c===null||c===void 0?void 0:c.readable)!==!1&&k(H))return!1;if((c===null||c===void 0?void 0:c.writable)!==!1&&v(H))return!1;return!0}function A(H){var c,t;if(!s(H))return null;if(H.writableErrored)return H.writableErrored;return(c=(t=H._writableState)===null||t===void 0?void 0:t.errored)!==null&&c!==void 0?c:null}function D(H){var c,t;if(!s(H))return null;if(H.readableErrored)return H.readableErrored;return(c=(t=H._readableState)===null||t===void 0?void 0:t.errored)!==null&&c!==void 0?c:null}function M(H){if(!s(H))return null;if(typeof H.closed==="boolean")return H.closed;let{_writableState:c,_readableState:t}=H;if(typeof(c===null||c===void 0?void 0:c.closed)==="boolean"||typeof(t===null||t===void 0?void 0:t.closed)==="boolean")return(c===null||c===void 0?void 0:c.closed)||(t===null||t===void 0?void 0:t.closed);if(typeof H._closed==="boolean"&&m(H))return H._closed;return null}function m(H){return typeof H._closed==="boolean"&&typeof H._defaultKeepAlive==="boolean"&&typeof H._removedConnection==="boolean"&&typeof H._removedContLen==="boolean"}function e(H){return typeof H._sent100==="boolean"&&m(H)}function U0(H){var c;return typeof H._consuming==="boolean"&&typeof H._dumped==="boolean"&&((c=H.req)===null||c===void 0?void 0:c.upgradeOrConnect)===void 0}function H0(H){if(!s(H))return null;let{_writableState:c,_readableState:t}=H,R=c||t;return!R&&e(H)||!!(R&&R.autoDestroy&&R.emitClose&&R.closed===!1)}function f(H){var c;return!!(H&&((c=H[Y])!==null&&c!==void 0?c:H.readableDidRead||H.readableAborted))}function X0(H){var c,t,R,w0,J0,q0,Y0,S,y,d;return!!(H&&((c=(t=(R=(w0=(J0=(q0=H[J])!==null&&q0!==void 0?q0:H.readableErrored)!==null&&J0!==void 0?J0:H.writableErrored)!==null&&w0!==void 0?w0:(Y0=H._readableState)===null||Y0===void 0?void 0:Y0.errorEmitted)!==null&&R!==void 0?R:(S=H._writableState)===null||S===void 0?void 0:S.errorEmitted)!==null&&t!==void 0?t:(y=H._readableState)===null||y===void 0?void 0:y.errored)!==null&&c!==void 0?c:(d=H._writableState)===null||d===void 0?void 0:d.errored))}B.exports={isDestroyed:_,kIsDestroyed:Q,isDisturbed:f,kIsDisturbed:Y,isErrored:X0,kIsErrored:J,isReadable:k,kIsReadable:q,kIsClosedPromise:$,kControllerErrorFunction:V,kIsWritable:K,isClosed:M,isDuplexNodeStream:h0,isFinished:C,isIterable:j,isReadableNodeStream:L,isReadableStream:O,isReadableEnded:F0,isReadableFinished:o,isReadableErrored:D,isNodeStream:s,isWebStream:W,isWritable:v,isWritableNodeStream:x,isWritableStream:E,isWritableEnded:i,isWritableFinished:Z0,isWritableErrored:A,isServerRequest:U0,isServerResponse:e,willEmitClose:H0,isTransformStream:F}}),o0=$0((h,B)=>{var w=U2(),{AbortError:U,codes:X}=j0(),{ERR_INVALID_ARG_TYPE:Q,ERR_STREAM_PREMATURE_CLOSE:J}=X,{kEmptyObject:q,once:K}=L0(),{validateAbortSignal:Y,validateFunction:$,validateObject:V,validateBoolean:L}=j2(),{Promise:x,PromisePrototypeThen:h0,SymbolDispose:s}=W0(),{isClosed:O,isReadable:E,isReadableNodeStream:F,isReadableStream:W,isReadableFinished:j,isReadableErrored:_,isWritable:i,isWritableNodeStream:Z0,isWritableStream:F0,isWritableFinished:o,isWritableErrored:k,isNodeStream:v,willEmitClose:C,kIsClosedPromise:A}=d0(),D;function M(f){return f.setHeader&&typeof f.abort==="function"}var m=()=>{};function e(f,X0,H){var c,t;if(arguments.length===2)H=X0,X0=q;else if(X0==null)X0=q;else V(X0,"options");if($(H,"callback"),Y(X0.signal,"options.signal"),H=K(H),W(f)||F0(f))return U0(f,X0,H);if(!v(f))throw new Q("stream",["ReadableStream","WritableStream","Stream"],f);let R=(c=X0.readable)!==null&&c!==void 0?c:F(f),w0=(t=X0.writable)!==null&&t!==void 0?t:Z0(f),J0=f._writableState,q0=f._readableState,Y0=()=>{if(!f.writable)d()},S=C(f)&&F(f)===R&&Z0(f)===w0,y=o(f,!1),d=()=>{if(y=!0,f.destroyed)S=!1;if(S&&(!f.readable||R))return;if(!R||I0)H.call(f)},I0=j(f,!1),K0=()=>{if(I0=!0,f.destroyed)S=!1;if(S&&(!f.writable||w0))return;if(!w0||y)H.call(f)},z=(G)=>{H.call(f,G)},N=O(f),T=()=>{N=!0;let G=k(f)||_(f);if(G&&typeof G!=="boolean")return H.call(f,G);if(R&&!I0&&F(f,!0)){if(!j(f,!1))return H.call(f,new J)}if(w0&&!y){if(!o(f,!1))return H.call(f,new J)}H.call(f)},p=()=>{N=!0;let G=k(f)||_(f);if(G&&typeof G!=="boolean")return H.call(f,G);H.call(f)},n=()=>{f.req.on("finish",d)};if(M(f)){if(f.on("complete",d),!S)f.on("abort",T);if(f.req)n();else f.on("request",n)}else if(w0&&!J0)f.on("end",Y0),f.on("close",Y0);if(!S&&typeof f.aborted==="boolean")f.on("aborted",T);if(f.on("end",K0),f.on("finish",d),X0.error!==!1)f.on("error",z);if(f.on("close",T),N)w.nextTick(T);else if(J0!==null&&J0!==void 0&&J0.errorEmitted||q0!==null&&q0!==void 0&&q0.errorEmitted){if(!S)w.nextTick(p)}else if(!R&&(!S||E(f))&&(y||i(f)===!1))w.nextTick(p);else if(!w0&&(!S||i(f))&&(I0||E(f)===!1))w.nextTick(p);else if(q0&&f.req&&f.aborted)w.nextTick(p);let l=()=>{if(H=m,f.removeListener("aborted",T),f.removeListener("complete",d),f.removeListener("abort",T),f.removeListener("request",n),f.req)f.req.removeListener("finish",d);f.removeListener("end",Y0),f.removeListener("close",Y0),f.removeListener("finish",d),f.removeListener("end",K0),f.removeListener("error",z),f.removeListener("close",T)};if(X0.signal&&!N){let G=()=>{let u=H;l(),u.call(f,new U(void 0,{cause:X0.signal.reason}))};if(X0.signal.aborted)w.nextTick(G);else{D=D||L0().addAbortListener;let u=D(X0.signal,G),r=H;H=K((...g)=>{u[s](),r.apply(f,g)})}}return l}function U0(f,X0,H){let c=!1,t=m;if(X0.signal)if(t=()=>{c=!0,H.call(f,new U(void 0,{cause:X0.signal.reason}))},X0.signal.aborted)w.nextTick(t);else{D=D||L0().addAbortListener;let w0=D(X0.signal,t),J0=H;H=K((...q0)=>{w0[s](),J0.apply(f,q0)})}let R=(...w0)=>{if(!c)w.nextTick(()=>H.apply(f,w0))};return h0(f[A].promise,R,R),m}function H0(f,X0){var H;let c=!1;if(X0===null)X0=q;if((H=X0)!==null&&H!==void 0&&H.cleanup)L(X0.cleanup,"cleanup"),c=X0.cleanup;return new x((t,R)=>{let w0=e(f,X0,(J0)=>{if(c)w0();if(J0)R(J0);else t()})})}B.exports=e,B.exports.finished=H0}),K2=$0((h,B)=>{var w=U2(),{aggregateTwoErrors:U,codes:{ERR_MULTIPLE_CALLBACK:X},AbortError:Q}=j0(),{Symbol:J}=W0(),{kIsDestroyed:q,isDestroyed:K,isFinished:Y,isServerRequest:$}=d0(),V=J("kDestroy"),L=J("kConstruct");function x(C,A,D){if(C){if(C.stack,A&&!A.errored)A.errored=C;if(D&&!D.errored)D.errored=C}}function h0(C,A){let D=this._readableState,M=this._writableState,m=M||D;if(M!==null&&M!==void 0&&M.destroyed||D!==null&&D!==void 0&&D.destroyed){if(typeof A==="function")A();return this}if(x(C,M,D),M)M.destroyed=!0;if(D)D.destroyed=!0;if(!m.constructed)this.once(V,function(e){s(this,U(e,C),A)});else s(this,C,A);return this}function s(C,A,D){let M=!1;function m(e){if(M)return;M=!0;let{_readableState:U0,_writableState:H0}=C;if(x(e,H0,U0),H0)H0.closed=!0;if(U0)U0.closed=!0;if(typeof D==="function")D(e);if(e)w.nextTick(O,C,e);else w.nextTick(E,C)}try{C._destroy(A||null,m)}catch(e){m(e)}}function O(C,A){F(C,A),E(C)}function E(C){let{_readableState:A,_writableState:D}=C;if(D)D.closeEmitted=!0;if(A)A.closeEmitted=!0;if(D!==null&&D!==void 0&&D.emitClose||A!==null&&A!==void 0&&A.emitClose)C.emit("close")}function F(C,A){let{_readableState:D,_writableState:M}=C;if(M!==null&&M!==void 0&&M.errorEmitted||D!==null&&D!==void 0&&D.errorEmitted)return;if(M)M.errorEmitted=!0;if(D)D.errorEmitted=!0;C.emit("error",A)}function W(){let C=this._readableState,A=this._writableState;if(C)C.constructed=!0,C.closed=!1,C.closeEmitted=!1,C.destroyed=!1,C.errored=null,C.errorEmitted=!1,C.reading=!1,C.ended=C.readable===!1,C.endEmitted=C.readable===!1;if(A)A.constructed=!0,A.destroyed=!1,A.closed=!1,A.closeEmitted=!1,A.errored=null,A.errorEmitted=!1,A.finalCalled=!1,A.prefinished=!1,A.ended=A.writable===!1,A.ending=A.writable===!1,A.finished=A.writable===!1}function j(C,A,D){let{_readableState:M,_writableState:m}=C;if(m!==null&&m!==void 0&&m.destroyed||M!==null&&M!==void 0&&M.destroyed)return this;if(M!==null&&M!==void 0&&M.autoDestroy||m!==null&&m!==void 0&&m.autoDestroy)C.destroy(A);else if(A){if(A.stack,m&&!m.errored)m.errored=A;if(M&&!M.errored)M.errored=A;if(D)w.nextTick(F,C,A);else F(C,A)}}function _(C,A){if(typeof C._construct!=="function")return;let{_readableState:D,_writableState:M}=C;if(D)D.constructed=!1;if(M)M.constructed=!1;if(C.once(L,A),C.listenerCount(L)>1)return;w.nextTick(i,C)}function i(C){let A=!1;function D(M){if(A){j(C,M!==null&&M!==void 0?M:new X);return}A=!0;let{_readableState:m,_writableState:e}=C,U0=e||m;if(m)m.constructed=!0;if(e)e.constructed=!0;if(U0.destroyed)C.emit(V,M);else if(M)j(C,M,!0);else w.nextTick(Z0,C)}try{C._construct((M)=>{w.nextTick(D,M)})}catch(M){w.nextTick(D,M)}}function Z0(C){C.emit(L)}function F0(C){return(C===null||C===void 0?void 0:C.setHeader)&&typeof C.abort==="function"}function o(C){C.emit("close")}function k(C,A){C.emit("error",A),w.nextTick(o,C)}function v(C,A){if(!C||K(C))return;if(!A&&!Y(C))A=new Q;if($(C))C.socket=null,C.destroy(A);else if(F0(C))C.abort();else if(F0(C.req))C.req.abort();else if(typeof C.destroy==="function")C.destroy(A);else if(typeof C.close==="function")C.close();else if(A)w.nextTick(k,C,A);else w.nextTick(o,C);if(!C.destroyed)C[q]=!0}B.exports={construct:_,destroyer:v,destroy:h0,undestroy:W,errorOrDestroy:j}}),h1=$0((h,B)=>{var{ArrayIsArray:w,ObjectSetPrototypeOf:U}=W0(),{EventEmitter:X}=(V2(),T0(N2));function Q(q){X.call(this,q)}U(Q.prototype,X.prototype),U(Q,X),Q.prototype.pipe=function(q,K){let Y=this;function $(E){if(q.writable&&q.write(E)===!1&&Y.pause)Y.pause()}Y.on("data",$);function V(){if(Y.readable&&Y.resume)Y.resume()}if(q.on("drain",V),!q._isStdio&&(!K||K.end!==!1))Y.on("end",x),Y.on("close",h0);let L=!1;function x(){if(L)return;L=!0,q.end()}function h0(){if(L)return;if(L=!0,typeof q.destroy==="function")q.destroy()}function s(E){if(O(),X.listenerCount(this,"error")===0)this.emit("error",E)}J(Y,"error",s),J(q,"error",s);function O(){Y.removeListener("data",$),q.removeListener("drain",V),Y.removeListener("end",x),Y.removeListener("close",h0),Y.removeListener("error",s),q.removeListener("error",s),Y.removeListener("end",O),Y.removeListener("close",O),q.removeListener("close",O)}return Y.on("end",O),Y.on("close",O),q.on("close",O),q.emit("pipe",Y),q};function J(q,K,Y){if(typeof q.prependListener==="function")return q.prependListener(K,Y);if(!q._events||!q._events[K])q.on(K,Y);else if(w(q._events[K]))q._events[K].unshift(Y);else q._events[K]=[Y,q._events[K]]}B.exports={Stream:Q,prependListener:J}}),R2=$0((h,B)=>{var{SymbolDispose:w}=W0(),{AbortError:U,codes:X}=j0(),{isNodeStream:Q,isWebStream:J,kControllerErrorFunction:q}=d0(),K=o0(),{ERR_INVALID_ARG_TYPE:Y}=X,$,V=(L,x)=>{if(typeof L!=="object"||!("aborted"in L))throw new Y(x,"AbortSignal",L)};B.exports.addAbortSignal=function(L,x){if(V(L,"signal"),!Q(x)&&!J(x))throw new Y("stream",["ReadableStream","WritableStream","Stream"],x);return B.exports.addAbortSignalNoValidate(L,x)},B.exports.addAbortSignalNoValidate=function(L,x){if(typeof L!=="object"||!("aborted"in L))return x;let h0=Q(x)?()=>{x.destroy(new U(void 0,{cause:L.reason}))}:()=>{x[q](new U(void 0,{cause:L.reason}))};if(L.aborted)h0();else{$=$||L0().addAbortListener;let s=$(L,h0);K(x,s[w])}return x}}),m8=$0((h,B)=>{var{StringPrototypeSlice:w,SymbolIterator:U,TypedArrayPrototypeSet:X,Uint8Array:Q}=W0(),{Buffer:J}=(p0(),T0(b0)),{inspect:q}=L0();B.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(K){let Y={data:K,next:null};if(this.length>0)this.tail.next=Y;else this.head=Y;this.tail=Y,++this.length}unshift(K){let Y={data:K,next:this.head};if(this.length===0)this.tail=Y;this.head=Y,++this.length}shift(){if(this.length===0)return;let K=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,K}clear(){this.head=this.tail=null,this.length=0}join(K){if(this.length===0)return"";let Y=this.head,$=""+Y.data;while((Y=Y.next)!==null)$+=K+Y.data;return $}concat(K){if(this.length===0)return J.alloc(0);let Y=J.allocUnsafe(K>>>0),$=this.head,V=0;while($)X(Y,$.data,V),V+=$.data.length,$=$.next;return Y}consume(K,Y){let $=this.head.data;if(K<$.length){let V=$.slice(0,K);return this.head.data=$.slice(K),V}if(K===$.length)return this.shift();return Y?this._getString(K):this._getBuffer(K)}first(){return this.head.data}*[U](){for(let K=this.head;K;K=K.next)yield K.data}_getString(K){let Y="",$=this.head,V=0;do{let L=$.data;if(K>L.length)Y+=L,K-=L.length;else{if(K===L.length)if(Y+=L,++V,$.next)this.head=$.next;else this.head=this.tail=null;else Y+=w(L,0,K),this.head=$,$.data=w(L,K);break}++V}while(($=$.next)!==null);return this.length-=V,Y}_getBuffer(K){let Y=J.allocUnsafe(K),$=K,V=this.head,L=0;do{let x=V.data;if(K>x.length)X(Y,x,$-K),K-=x.length;else{if(K===x.length)if(X(Y,x,$-K),++L,V.next)this.head=V.next;else this.head=this.tail=null;else X(Y,new Q(x.buffer,x.byteOffset,K),$-K),this.head=V,V.data=x.slice(K);break}++L}while((V=V.next)!==null);return this.length-=L,Y}[Symbol.for("nodejs.util.inspect.custom")](K,Y){return q(this,{...Y,depth:0,customInspect:!1})}}}),k2=$0((h,B)=>{var{MathFloor:w,NumberIsInteger:U}=W0(),{validateInteger:X}=j2(),{ERR_INVALID_ARG_VALUE:Q}=j0().codes,J=16384,q=16;function K(L,x,h0){return L.highWaterMark!=null?L.highWaterMark:x?L[h0]:null}function Y(L){return L?q:J}function $(L,x){if(X(x,"value",0),L)q=x;else J=x}function V(L,x,h0,s){let O=K(x,s,h0);if(O!=null){if(!U(O)||O<0){let E=s?`options.${h0}`:"options.highWaterMark";throw new Q(E,O)}return w(O)}return Y(L.objectMode)}B.exports={getHighWaterMark:V,getDefaultHighWaterMark:Y,setDefaultHighWaterMark:$}}),n8=$0((h,B)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var w=(p0(),T0(b0)),U=w.Buffer;function X(J,q){for(var K in J)q[K]=J[K]}if(U.from&&U.alloc&&U.allocUnsafe&&U.allocUnsafeSlow)B.exports=w;else X(w,h),h.Buffer=Q;function Q(J,q,K){return U(J,q,K)}Q.prototype=Object.create(U.prototype),X(U,Q),Q.from=function(J,q,K){if(typeof J==="number")throw TypeError("Argument must not be a number");return U(J,q,K)},Q.alloc=function(J,q,K){if(typeof J!=="number")throw TypeError("Argument must be a number");var Y=U(J);if(q!==void 0)if(typeof K==="string")Y.fill(q,K);else Y.fill(q);else Y.fill(0);return Y},Q.allocUnsafe=function(J){if(typeof J!=="number")throw TypeError("Argument must be a number");return U(J)},Q.allocUnsafeSlow=function(J){if(typeof J!=="number")throw TypeError("Argument must be a number");return w.SlowBuffer(J)}}),o8=$0((h)=>{var B=n8().Buffer,w=B.isEncoding||function(F){switch(F=""+F,F&&F.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 U(F){if(!F)return"utf8";var W;while(!0)switch(F){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 F;default:if(W)return;F=(""+F).toLowerCase(),W=!0}}function X(F){var W=U(F);if(typeof W!=="string"&&(B.isEncoding===w||!w(F)))throw Error("Unknown encoding: "+F);return W||F}h.StringDecoder=Q;function Q(F){this.encoding=X(F);var W;switch(this.encoding){case"utf16le":this.text=L,this.end=x,W=4;break;case"utf8":this.fillLast=Y,W=4;break;case"base64":this.text=h0,this.end=s,W=3;break;default:this.write=O,this.end=E;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=B.allocUnsafe(W)}Q.prototype.write=function(F){if(F.length===0)return"";var W,j;if(this.lastNeed){if(W=this.fillLast(F),W===void 0)return"";j=this.lastNeed,this.lastNeed=0}else j=0;if(j<F.length)return W?W+this.text(F,j):this.text(F,j);return W||""},Q.prototype.end=V,Q.prototype.text=$,Q.prototype.fillLast=function(F){if(this.lastNeed<=F.length)return F.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);F.copy(this.lastChar,this.lastTotal-this.lastNeed,0,F.length),this.lastNeed-=F.length};function J(F){if(F<=127)return 0;else if(F>>5===6)return 2;else if(F>>4===14)return 3;else if(F>>3===30)return 4;return F>>6===2?-1:-2}function q(F,W,j){var _=W.length-1;if(_<j)return 0;var i=J(W[_]);if(i>=0){if(i>0)F.lastNeed=i-1;return i}if(--_<j||i===-2)return 0;if(i=J(W[_]),i>=0){if(i>0)F.lastNeed=i-2;return i}if(--_<j||i===-2)return 0;if(i=J(W[_]),i>=0){if(i>0)if(i===2)i=0;else F.lastNeed=i-3;return i}return 0}function K(F,W,j){if((W[0]&192)!==128)return F.lastNeed=0,"�";if(F.lastNeed>1&&W.length>1){if((W[1]&192)!==128)return F.lastNeed=1,"�";if(F.lastNeed>2&&W.length>2){if((W[2]&192)!==128)return F.lastNeed=2,"�"}}}function Y(F){var W=this.lastTotal-this.lastNeed,j=K(this,F,W);if(j!==void 0)return j;if(this.lastNeed<=F.length)return F.copy(this.lastChar,W,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);F.copy(this.lastChar,W,0,F.length),this.lastNeed-=F.length}function $(F,W){var j=q(this,F,W);if(!this.lastNeed)return F.toString("utf8",W);this.lastTotal=j;var _=F.length-(j-this.lastNeed);return F.copy(this.lastChar,0,_),F.toString("utf8",W,_)}function V(F){var W=F&&F.length?this.write(F):"";if(this.lastNeed)return W+"�";return W}function L(F,W){if((F.length-W)%2===0){var j=F.toString("utf16le",W);if(j){var _=j.charCodeAt(j.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=F[F.length-2],this.lastChar[1]=F[F.length-1],j.slice(0,-1)}return j}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=F[F.length-1],F.toString("utf16le",W,F.length-1)}function x(F){var W=F&&F.length?this.write(F):"";if(this.lastNeed){var j=this.lastTotal-this.lastNeed;return W+this.lastChar.toString("utf16le",0,j)}return W}function h0(F,W){var j=(F.length-W)%3;if(j===0)return F.toString("base64",W);if(this.lastNeed=3-j,this.lastTotal=3,j===1)this.lastChar[0]=F[F.length-1];else this.lastChar[0]=F[F.length-2],this.lastChar[1]=F[F.length-1];return F.toString("base64",W,F.length-j)}function s(F){var W=F&&F.length?this.write(F):"";if(this.lastNeed)return W+this.lastChar.toString("base64",0,3-this.lastNeed);return W}function O(F){return F.toString(this.encoding)}function E(F){return F&&F.length?this.write(F):""}}),N6=$0((h,B)=>{var w=U2(),{PromisePrototypeThen:U,SymbolAsyncIterator:X,SymbolIterator:Q}=W0(),{Buffer:J}=(p0(),T0(b0)),{ERR_INVALID_ARG_TYPE:q,ERR_STREAM_NULL_VALUES:K}=j0().codes;function Y($,V,L){let x;if(typeof V==="string"||V instanceof J)return new $({objectMode:!0,...L,read(){this.push(V),this.push(null)}});let h0;if(V&&V[X])h0=!0,x=V[X]();else if(V&&V[Q])h0=!1,x=V[Q]();else throw new q("iterable",["Iterable"],V);let s=new $({objectMode:!0,highWaterMark:1,...L}),O=!1;s._read=function(){if(!O)O=!0,F()},s._destroy=function(W,j){U(E(W),()=>w.nextTick(j,W),(_)=>w.nextTick(j,_||W))};async function E(W){let j=W!==void 0&&W!==null,_=typeof x.throw==="function";if(j&&_){let{value:i,done:Z0}=await x.throw(W);if(await i,Z0)return}if(typeof x.return==="function"){let{value:i}=await x.return();await i}}async function F(){for(;;){try{let{value:W,done:j}=h0?await x.next():x.next();if(j)s.push(null);else{let _=W&&typeof W.then==="function"?await W:W;if(_===null)throw O=!1,new K;else if(s.push(_))continue;else O=!1}}catch(W){s.destroy(W)}break}}return s}B.exports=Y}),S2=$0((h,B)=>{var w=U2(),{ArrayPrototypeIndexOf:U,NumberIsInteger:X,NumberIsNaN:Q,NumberParseInt:J,ObjectDefineProperties:q,ObjectKeys:K,ObjectSetPrototypeOf:Y,Promise:$,SafeSet:V,SymbolAsyncDispose:L,SymbolAsyncIterator:x,Symbol:h0}=W0();B.exports=g,g.ReadableState=r;var{EventEmitter:s}=(V2(),T0(N2)),{Stream:O,prependListener:E}=h1(),{Buffer:F}=(p0(),T0(b0)),{addAbortSignal:W}=R2(),j=o0(),_=L0().debuglog("stream",(Z)=>{_=Z}),i=m8(),Z0=K2(),{getHighWaterMark:F0,getDefaultHighWaterMark:o}=k2(),{aggregateTwoErrors:k,codes:{ERR_INVALID_ARG_TYPE:v,ERR_METHOD_NOT_IMPLEMENTED:C,ERR_OUT_OF_RANGE:A,ERR_STREAM_PUSH_AFTER_EOF:D,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:M},AbortError:m}=j0(),{validateObject:e}=j2(),U0=h0("kPaused"),{StringDecoder:H0}=o8(),f=N6();Y(g.prototype,O.prototype),Y(g,O);var X0=()=>{},{errorOrDestroy:H}=Z0,c=1,t=2,R=4,w0=8,J0=16,q0=32,Y0=64,S=128,y=256,d=512,I0=1024,K0=2048,z=4096,N=8192,T=16384,p=32768,n=65536,l=131072,G=262144;function u(Z){return{enumerable:!1,get(){return(this.state&Z)!==0},set(I){if(I)this.state|=Z;else this.state&=~Z}}}q(r.prototype,{objectMode:u(c),ended:u(t),endEmitted:u(R),reading:u(w0),constructed:u(J0),sync:u(q0),needReadable:u(Y0),emittedReadable:u(S),readableListening:u(y),resumeScheduled:u(d),errorEmitted:u(I0),emitClose:u(K0),autoDestroy:u(z),destroyed:u(N),closed:u(T),closeEmitted:u(p),multiAwaitDrain:u(n),readingMore:u(l),dataEmitted:u(G)});function r(Z,I,b){if(typeof b!=="boolean")b=I instanceof i0();if(this.state=K0|z|J0|q0,Z&&Z.objectMode)this.state|=c;if(b&&Z&&Z.readableObjectMode)this.state|=c;if(this.highWaterMark=Z?F0(this,Z,"readableHighWaterMark",b):o(!1),this.buffer=new i,this.length=0,this.pipes=[],this.flowing=null,this[U0]=null,Z&&Z.emitClose===!1)this.state&=~K0;if(Z&&Z.autoDestroy===!1)this.state&=~z;if(this.errored=null,this.defaultEncoding=Z&&Z.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,Z&&Z.encoding)this.decoder=new H0(Z.encoding),this.encoding=Z.encoding}function g(Z){if(!(this instanceof g))return new g(Z);let I=this instanceof i0();if(this._readableState=new r(Z,this,I),Z){if(typeof Z.read==="function")this._read=Z.read;if(typeof Z.destroy==="function")this._destroy=Z.destroy;if(typeof Z.construct==="function")this._construct=Z.construct;if(Z.signal&&!I)W(Z.signal,this)}O.call(this,Z),Z0.construct(this,()=>{if(this._readableState.needReadable)Z2(this,this._readableState)})}g.prototype.destroy=Z0.destroy,g.prototype._undestroy=Z0.undestroy,g.prototype._destroy=function(Z,I){I(Z)},g.prototype[s.captureRejectionSymbol]=function(Z){this.destroy(Z)},g.prototype[L]=function(){let Z;if(!this.destroyed)Z=this.readableEnded?null:new m,this.destroy(Z);return new $((I,b)=>j(this,(a)=>a&&a!==Z?b(a):I(null)))},g.prototype.push=function(Z,I){return Q0(this,Z,I,!1)},g.prototype.unshift=function(Z,I){return Q0(this,Z,I,!0)};function Q0(Z,I,b,a){_("readableAddChunk",I);let B0=Z._readableState,M0;if((B0.state&c)===0){if(typeof I==="string"){if(b=b||B0.defaultEncoding,B0.encoding!==b)if(a&&B0.encoding)I=F.from(I,b).toString(B0.encoding);else I=F.from(I,b),b=""}else if(I instanceof F)b="";else if(O._isUint8Array(I))I=O._uint8ArrayToBuffer(I),b="";else if(I!=null)M0=new v("chunk",["string","Buffer","Uint8Array"],I)}if(M0)H(Z,M0);else if(I===null)B0.state&=~w0,V0(Z,B0);else if((B0.state&c)!==0||I&&I.length>0)if(a)if((B0.state&R)!==0)H(Z,new M);else if(B0.destroyed||B0.errored)return!1;else z0(Z,B0,I,!0);else if(B0.ended)H(Z,new D);else if(B0.destroyed||B0.errored)return!1;else if(B0.state&=~w0,B0.decoder&&!b)if(I=B0.decoder.write(I),B0.objectMode||I.length!==0)z0(Z,B0,I,!1);else Z2(Z,B0);else z0(Z,B0,I,!1);else if(!a)B0.state&=~w0,Z2(Z,B0);return!B0.ended&&(B0.length<B0.highWaterMark||B0.length===0)}function z0(Z,I,b,a){if(I.flowing&&I.length===0&&!I.sync&&Z.listenerCount("data")>0){if((I.state&n)!==0)I.awaitDrainWriters.clear();else I.awaitDrainWriters=null;I.dataEmitted=!0,Z.emit("data",b)}else{if(I.length+=I.objectMode?1:b.length,a)I.buffer.unshift(b);else I.buffer.push(b);if((I.state&Y0)!==0)A0(Z)}Z2(Z,I)}g.prototype.isPaused=function(){let Z=this._readableState;return Z[U0]===!0||Z.flowing===!1},g.prototype.setEncoding=function(Z){let I=new H0(Z);this._readableState.decoder=I,this._readableState.encoding=this._readableState.decoder.encoding;let b=this._readableState.buffer,a="";for(let B0 of b)a+=I.write(B0);if(b.clear(),a!=="")b.push(a);return this._readableState.length=a.length,this};var E0=1073741824;function D0(Z){if(Z>E0)throw new A("size","<= 1GiB",Z);else Z--,Z|=Z>>>1,Z|=Z>>>2,Z|=Z>>>4,Z|=Z>>>8,Z|=Z>>>16,Z++;return Z}function a0(Z,I){if(Z<=0||I.length===0&&I.ended)return 0;if((I.state&c)!==0)return 1;if(Q(Z)){if(I.flowing&&I.length)return I.buffer.first().length;return I.length}if(Z<=I.length)return Z;return I.ended?I.length:0}g.prototype.read=function(Z){if(_("read",Z),Z===void 0)Z=NaN;else if(!X(Z))Z=J(Z,10);let I=this._readableState,b=Z;if(Z>I.highWaterMark)I.highWaterMark=D0(Z);if(Z!==0)I.state&=~S;if(Z===0&&I.needReadable&&((I.highWaterMark!==0?I.length>=I.highWaterMark:I.length>0)||I.ended)){if(_("read: emitReadable",I.length,I.ended),I.length===0&&I.ended)f2(this);else A0(this);return null}if(Z=a0(Z,I),Z===0&&I.ended){if(I.length===0)f2(this);return null}let a=(I.state&Y0)!==0;if(_("need readable",a),I.length===0||I.length-Z<I.highWaterMark)a=!0,_("length less than watermark",a);if(I.ended||I.reading||I.destroyed||I.errored||!I.constructed)a=!1,_("reading, ended or constructing",a);else if(a){if(_("do read"),I.state|=w0|q0,I.length===0)I.state|=Y0;try{this._read(I.highWaterMark)}catch(M0){H(this,M0)}if(I.state&=~q0,!I.reading)Z=a0(b,I)}let B0;if(Z>0)B0=N1(Z,I);else B0=null;if(B0===null)I.needReadable=I.length<=I.highWaterMark,Z=0;else if(I.length-=Z,I.multiAwaitDrain)I.awaitDrainWriters.clear();else I.awaitDrainWriters=null;if(I.length===0){if(!I.ended)I.needReadable=!0;if(b!==Z&&I.ended)f2(this)}if(B0!==null&&!I.errorEmitted&&!I.closeEmitted)I.dataEmitted=!0,this.emit("data",B0);return B0};function V0(Z,I){if(_("onEofChunk"),I.ended)return;if(I.decoder){let b=I.decoder.end();if(b&&b.length)I.buffer.push(b),I.length+=I.objectMode?1:b.length}if(I.ended=!0,I.sync)A0(Z);else I.needReadable=!1,I.emittedReadable=!0,Q2(Z)}function A0(Z){let I=Z._readableState;if(_("emitReadable",I.needReadable,I.emittedReadable),I.needReadable=!1,!I.emittedReadable)_("emitReadable",I.flowing),I.emittedReadable=!0,w.nextTick(Q2,Z)}function Q2(Z){let I=Z._readableState;if(_("emitReadable_",I.destroyed,I.length,I.ended),!I.destroyed&&!I.errored&&(I.length||I.ended))Z.emit("readable"),I.emittedReadable=!1;I.needReadable=!I.flowing&&!I.ended&&I.length<=I.highWaterMark,C1(Z)}function Z2(Z,I){if(!I.readingMore&&I.constructed)I.readingMore=!0,w.nextTick(S0,Z,I)}function S0(Z,I){while(!I.reading&&!I.ended&&(I.length<I.highWaterMark||I.flowing&&I.length===0)){let b=I.length;if(_("maybeReadMore read 0"),Z.read(0),b===I.length)break}I.readingMore=!1}g.prototype._read=function(Z){throw new C("_read()")},g.prototype.pipe=function(Z,I){let b=this,a=this._readableState;if(a.pipes.length===1){if(!a.multiAwaitDrain)a.multiAwaitDrain=!0,a.awaitDrainWriters=new V(a.awaitDrainWriters?[a.awaitDrainWriters]:[])}a.pipes.push(Z),_("pipe count=%d opts=%j",a.pipes.length,I);let B0=(!I||I.end!==!1)&&Z!==w.stdout&&Z!==w.stderr?P0:H2;if(a.endEmitted)w.nextTick(B0);else b.once("end",B0);Z.on("unpipe",M0);function M0(t0,u0){if(_("onunpipe"),t0===b){if(u0&&u0.hasUnpiped===!1)u0.hasUnpiped=!0,b6()}}function P0(){_("onend"),Z.end()}let s0,M1=!1;function b6(){if(_("cleanup"),Z.removeListener("close",v2),Z.removeListener("finish",g2),s0)Z.removeListener("drain",s0);if(Z.removeListener("error",u2),Z.removeListener("unpipe",M0),b.removeListener("end",P0),b.removeListener("end",H2),b.removeListener("data",A1),M1=!0,s0&&a.awaitDrainWriters&&(!Z._writableState||Z._writableState.needDrain))s0()}function j1(){if(!M1){if(a.pipes.length===1&&a.pipes[0]===Z)_("false write response, pause",0),a.awaitDrainWriters=Z,a.multiAwaitDrain=!1;else if(a.pipes.length>1&&a.pipes.includes(Z))_("false write response, pause",a.awaitDrainWriters.size),a.awaitDrainWriters.add(Z);b.pause()}if(!s0)s0=S6(b,Z),Z.on("drain",s0)}b.on("data",A1);function A1(t0){_("ondata");let u0=Z.write(t0);if(_("dest.write",u0),u0===!1)j1()}function u2(t0){if(_("onerror",t0),H2(),Z.removeListener("error",u2),Z.listenerCount("error")===0){let u0=Z._writableState||Z._readableState;if(u0&&!u0.errorEmitted)H(Z,t0);else Z.emit("error",t0)}}E(Z,"error",u2);function v2(){Z.removeListener("finish",g2),H2()}Z.once("close",v2);function g2(){_("onfinish"),Z.removeListener("close",v2),H2()}Z.once("finish",g2);function H2(){_("unpipe"),b.unpipe(Z)}if(Z.emit("pipe",b),Z.writableNeedDrain===!0)j1();else if(!a.flowing)_("pipe resume"),b.resume();return Z};function S6(Z,I){return function(){let b=Z._readableState;if(b.awaitDrainWriters===I)_("pipeOnDrain",1),b.awaitDrainWriters=null;else if(b.multiAwaitDrain)_("pipeOnDrain",b.awaitDrainWriters.size),b.awaitDrainWriters.delete(I);if((!b.awaitDrainWriters||b.awaitDrainWriters.size===0)&&Z.listenerCount("data"))Z.resume()}}g.prototype.unpipe=function(Z){let I=this._readableState,b={hasUnpiped:!1};if(I.pipes.length===0)return this;if(!Z){let B0=I.pipes;I.pipes=[],this.pause();for(let M0=0;M0<B0.length;M0++)B0[M0].emit("unpipe",this,{hasUnpiped:!1});return this}let a=U(I.pipes,Z);if(a===-1)return this;if(I.pipes.splice(a,1),I.pipes.length===0)this.pause();return Z.emit("unpipe",this,b),this},g.prototype.on=function(Z,I){let b=O.prototype.on.call(this,Z,I),a=this._readableState;if(Z==="data"){if(a.readableListening=this.listenerCount("readable")>0,a.flowing!==!1)this.resume()}else if(Z==="readable"){if(!a.endEmitted&&!a.readableListening){if(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,_("on readable",a.length,a.reading),a.length)A0(this);else if(!a.reading)w.nextTick(y6,this)}}return b},g.prototype.addListener=g.prototype.on,g.prototype.removeListener=function(Z,I){let b=O.prototype.removeListener.call(this,Z,I);if(Z==="readable")w.nextTick(G1,this);return b},g.prototype.off=g.prototype.removeListener,g.prototype.removeAllListeners=function(Z){let I=O.prototype.removeAllListeners.apply(this,arguments);if(Z==="readable"||Z===void 0)w.nextTick(G1,this);return I};function G1(Z){let I=Z._readableState;if(I.readableListening=Z.listenerCount("readable")>0,I.resumeScheduled&&I[U0]===!1)I.flowing=!0;else if(Z.listenerCount("data")>0)Z.resume();else if(!I.readableListening)I.flowing=null}function y6(Z){_("readable nexttick read 0"),Z.read(0)}g.prototype.resume=function(){let Z=this._readableState;if(!Z.flowing)_("resume"),Z.flowing=!Z.readableListening,f6(this,Z);return Z[U0]=!1,this};function f6(Z,I){if(!I.resumeScheduled)I.resumeScheduled=!0,w.nextTick(c6,Z,I)}function c6(Z,I){if(_("resume",I.reading),!I.reading)Z.read(0);if(I.resumeScheduled=!1,Z.emit("resume"),C1(Z),I.flowing&&!I.reading)Z.read(0)}g.prototype.pause=function(){if(_("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)_("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState[U0]=!0,this};function C1(Z){let I=Z._readableState;_("flow",I.flowing);while(I.flowing&&Z.read()!==null);}g.prototype.wrap=function(Z){let I=!1;Z.on("data",(a)=>{if(!this.push(a)&&Z.pause)I=!0,Z.pause()}),Z.on("end",()=>{this.push(null)}),Z.on("error",(a)=>{H(this,a)}),Z.on("close",()=>{this.destroy()}),Z.on("destroy",()=>{this.destroy()}),this._read=()=>{if(I&&Z.resume)I=!1,Z.resume()};let b=K(Z);for(let a=1;a<b.length;a++){let B0=b[a];if(this[B0]===void 0&&typeof Z[B0]==="function")this[B0]=Z[B0].bind(Z)}return this},g.prototype[x]=function(){return W1(this)},g.prototype.iterator=function(Z){if(Z!==void 0)e(Z,"options");return W1(this,Z)};function W1(Z,I){if(typeof Z.read!=="function")Z=g.wrap(Z,{objectMode:!0});let b=u6(Z,I);return b.stream=Z,b}async function*u6(Z,I){let b=X0;function a(P0){if(this===Z)b(),b=X0;else b=P0}Z.on("readable",a);let B0,M0=j(Z,{writable:!1},(P0)=>{B0=P0?k(B0,P0):null,b(),b=X0});try{while(!0){let P0=Z.destroyed?null:Z.read();if(P0!==null)yield P0;else if(B0)throw B0;else if(B0===null)return;else await new $(a)}}catch(P0){throw B0=k(B0,P0),B0}finally{if((B0||(I===null||I===void 0?void 0:I.destroyOnReturn)!==!1)&&(B0===void 0||Z._readableState.autoDestroy))Z0.destroyer(Z,null);else Z.off("readable",a),M0()}}q(g.prototype,{readable:{__proto__:null,get(){let Z=this._readableState;return!!Z&&Z.readable!==!1&&!Z.destroyed&&!Z.errorEmitted&&!Z.endEmitted},set(Z){if(this._readableState)this._readableState.readable=!!Z}},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(Z){if(this._readableState)this._readableState.flowing=Z}},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(Z){if(!this._readableState)return;this._readableState.destroyed=Z}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),q(r.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[U0]!==!1},set(Z){this[U0]=!!Z}}}),g._fromList=N1;function N1(Z,I){if(I.length===0)return null;let b;if(I.objectMode)b=I.buffer.shift();else if(!Z||Z>=I.length){if(I.decoder)b=I.buffer.join("");else if(I.buffer.length===1)b=I.buffer.first();else b=I.buffer.concat(I.length);I.buffer.clear()}else b=I.buffer.consume(Z,I.decoder);return b}function f2(Z){let I=Z._readableState;if(_("endReadable",I.endEmitted),!I.endEmitted)I.ended=!0,w.nextTick(v6,I,Z)}function v6(Z,I){if(_("endReadableNT",Z.endEmitted,Z.length),!Z.errored&&!Z.closeEmitted&&!Z.endEmitted&&Z.length===0){if(Z.endEmitted=!0,I.emit("end"),I.writable&&I.allowHalfOpen===!1)w.nextTick(g6,I);else if(Z.autoDestroy){let b=I._writableState;if(!b||b.autoDestroy&&(b.finished||b.writable===!1))I.destroy()}}}function g6(Z){if(Z.writable&&!Z.writableEnded&&!Z.destroyed)Z.end()}g.from=function(Z,I){return f(g,Z,I)};var c2;function V1(){if(c2===void 0)c2={};return c2}g.fromWeb=function(Z,I){return V1().newStreamReadableFromReadableStream(Z,I)},g.toWeb=function(Z,I){return V1().newReadableStreamFromStreamReadable(Z,I)},g.wrap=function(Z,I){var b,a;return new g({objectMode:(b=(a=Z.readableObjectMode)!==null&&a!==void 0?a:Z.objectMode)!==null&&b!==void 0?b:!0,...I,destroy(B0,M0){Z0.destroyer(Z,B0),M0(B0)}}).wrap(Z)}}),B1=$0((h,B)=>{var w=U2(),{ArrayPrototypeSlice:U,Error:X,FunctionPrototypeSymbolHasInstance:Q,ObjectDefineProperty:J,ObjectDefineProperties:q,ObjectSetPrototypeOf:K,StringPrototypeToLowerCase:Y,Symbol:$,SymbolHasInstance:V}=W0();B.exports=e,e.WritableState=M;var{EventEmitter:L}=(V2(),T0(N2)),x=h1().Stream,{Buffer:h0}=(p0(),T0(b0)),s=K2(),{addAbortSignal:O}=R2(),{getHighWaterMark:E,getDefaultHighWaterMark:F}=k2(),{ERR_INVALID_ARG_TYPE:W,ERR_METHOD_NOT_IMPLEMENTED:j,ERR_MULTIPLE_CALLBACK:_,ERR_STREAM_CANNOT_PIPE:i,ERR_STREAM_DESTROYED:Z0,ERR_STREAM_ALREADY_FINISHED:F0,ERR_STREAM_NULL_VALUES:o,ERR_STREAM_WRITE_AFTER_END:k,ERR_UNKNOWN_ENCODING:v}=j0().codes,{errorOrDestroy:C}=s;K(e.prototype,x.prototype),K(e,x);function A(){}var D=$("kOnFinished");function M(z,N,T){if(typeof T!=="boolean")T=N instanceof i0();if(this.objectMode=!!(z&&z.objectMode),T)this.objectMode=this.objectMode||!!(z&&z.writableObjectMode);this.highWaterMark=z?E(this,z,"writableHighWaterMark",T):F(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let p=!!(z&&z.decodeStrings===!1);this.decodeStrings=!p,this.defaultEncoding=z&&z.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=H.bind(void 0,N),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,m(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!z||z.emitClose!==!1,this.autoDestroy=!z||z.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[D]=[]}function m(z){z.buffered=[],z.bufferedIndex=0,z.allBuffers=!0,z.allNoop=!0}M.prototype.getBuffer=function(){return U(this.buffered,this.bufferedIndex)},J(M.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function e(z){let N=this instanceof i0();if(!N&&!Q(e,this))return new e(z);if(this._writableState=new M(z,this,N),z){if(typeof z.write==="function")this._write=z.write;if(typeof z.writev==="function")this._writev=z.writev;if(typeof z.destroy==="function")this._destroy=z.destroy;if(typeof z.final==="function")this._final=z.final;if(typeof z.construct==="function")this._construct=z.construct;if(z.signal)O(z.signal,this)}x.call(this,z),s.construct(this,()=>{let T=this._writableState;if(!T.writing)w0(this,T);S(this,T)})}J(e,V,{__proto__:null,value:function(z){if(Q(this,z))return!0;if(this!==e)return!1;return z&&z._writableState instanceof M}}),e.prototype.pipe=function(){C(this,new i)};function U0(z,N,T,p){let n=z._writableState;if(typeof T==="function")p=T,T=n.defaultEncoding;else{if(!T)T=n.defaultEncoding;else if(T!=="buffer"&&!h0.isEncoding(T))throw new v(T);if(typeof p!=="function")p=A}if(N===null)throw new o;else if(!n.objectMode)if(typeof N==="string"){if(n.decodeStrings!==!1)N=h0.from(N,T),T="buffer"}else if(N instanceof h0)T="buffer";else if(x._isUint8Array(N))N=x._uint8ArrayToBuffer(N),T="buffer";else throw new W("chunk",["string","Buffer","Uint8Array"],N);let l;if(n.ending)l=new k;else if(n.destroyed)l=new Z0("write");if(l)return w.nextTick(p,l),C(z,l,!0),l;return n.pendingcb++,H0(z,n,N,T,p)}e.prototype.write=function(z,N,T){return U0(this,z,N,T)===!0},e.prototype.cork=function(){this._writableState.corked++},e.prototype.uncork=function(){let z=this._writableState;if(z.corked){if(z.corked--,!z.writing)w0(this,z)}},e.prototype.setDefaultEncoding=function(z){if(typeof z==="string")z=Y(z);if(!h0.isEncoding(z))throw new v(z);return this._writableState.defaultEncoding=z,this};function H0(z,N,T,p,n){let l=N.objectMode?1:T.length;N.length+=l;let G=N.length<N.highWaterMark;if(!G)N.needDrain=!0;if(N.writing||N.corked||N.errored||!N.constructed){if(N.buffered.push({chunk:T,encoding:p,callback:n}),N.allBuffers&&p!=="buffer")N.allBuffers=!1;if(N.allNoop&&n!==A)N.allNoop=!1}else N.writelen=l,N.writecb=n,N.writing=!0,N.sync=!0,z._write(T,p,N.onwrite),N.sync=!1;return G&&!N.errored&&!N.destroyed}function f(z,N,T,p,n,l,G){if(N.writelen=p,N.writecb=G,N.writing=!0,N.sync=!0,N.destroyed)N.onwrite(new Z0("write"));else if(T)z._writev(n,N.onwrite);else z._write(n,l,N.onwrite);N.sync=!1}function X0(z,N,T,p){--N.pendingcb,p(T),R(N),C(z,T)}function H(z,N){let T=z._writableState,p=T.sync,n=T.writecb;if(typeof n!=="function"){C(z,new _);return}if(T.writing=!1,T.writecb=null,T.length-=T.writelen,T.writelen=0,N){if(N.stack,!T.errored)T.errored=N;if(z._readableState&&!z._readableState.errored)z._readableState.errored=N;if(p)w.nextTick(X0,z,T,N,n);else X0(z,T,N,n)}else{if(T.buffered.length>T.bufferedIndex)w0(z,T);if(p)if(T.afterWriteTickInfo!==null&&T.afterWriteTickInfo.cb===n)T.afterWriteTickInfo.count++;else T.afterWriteTickInfo={count:1,cb:n,stream:z,state:T},w.nextTick(c,T.afterWriteTickInfo);else t(z,T,1,n)}}function c({stream:z,state:N,count:T,cb:p}){return N.afterWriteTickInfo=null,t(z,N,T,p)}function t(z,N,T,p){if(!N.ending&&!z.destroyed&&N.length===0&&N.needDrain)N.needDrain=!1,z.emit("drain");while(T-- >0)N.pendingcb--,p();if(N.destroyed)R(N);S(z,N)}function R(z){if(z.writing)return;for(let n=z.bufferedIndex;n<z.buffered.length;++n){var N;let{chunk:l,callback:G}=z.buffered[n],u=z.objectMode?1:l.length;z.length-=u,G((N=z.errored)!==null&&N!==void 0?N:new Z0("write"))}let T=z[D].splice(0);for(let n=0;n<T.length;n++){var p;T[n]((p=z.errored)!==null&&p!==void 0?p:new Z0("end"))}m(z)}function w0(z,N){if(N.corked||N.bufferProcessing||N.destroyed||!N.constructed)return;let{buffered:T,bufferedIndex:p,objectMode:n}=N,l=T.length-p;if(!l)return;let G=p;if(N.bufferProcessing=!0,l>1&&z._writev){N.pendingcb-=l-1;let u=N.allNoop?A:(g)=>{for(let Q0=G;Q0<T.length;++Q0)T[Q0].callback(g)},r=N.allNoop&&G===0?T:U(T,G);r.allBuffers=N.allBuffers,f(z,N,!0,N.length,r,"",u),m(N)}else{do{let{chunk:u,encoding:r,callback:g}=T[G];T[G++]=null;let Q0=n?1:u.length;f(z,N,!1,Q0,u,r,g)}while(G<T.length&&!N.writing);if(G===T.length)m(N);else if(G>256)T.splice(0,G),N.bufferedIndex=0;else N.bufferedIndex=G}N.bufferProcessing=!1}e.prototype._write=function(z,N,T){if(this._writev)this._writev([{chunk:z,encoding:N}],T);else throw new j("_write()")},e.prototype._writev=null,e.prototype.end=function(z,N,T){let p=this._writableState;if(typeof z==="function")T=z,z=null,N=null;else if(typeof N==="function")T=N,N=null;let n;if(z!==null&&z!==void 0){let l=U0(this,z,N);if(l instanceof X)n=l}if(p.corked)p.corked=1,this.uncork();if(n);else if(!p.errored&&!p.ending)p.ending=!0,S(this,p,!0),p.ended=!0;else if(p.finished)n=new F0("end");else if(p.destroyed)n=new Z0("end");if(typeof T==="function")if(n||p.finished)w.nextTick(T,n);else p[D].push(T);return this};function J0(z){return z.ending&&!z.destroyed&&z.constructed&&z.length===0&&!z.errored&&z.buffered.length===0&&!z.finished&&!z.writing&&!z.errorEmitted&&!z.closeEmitted}function q0(z,N){let T=!1;function p(n){if(T){C(z,n!==null&&n!==void 0?n:_());return}if(T=!0,N.pendingcb--,n){let l=N[D].splice(0);for(let G=0;G<l.length;G++)l[G](n);C(z,n,N.sync)}else if(J0(N))N.prefinished=!0,z.emit("prefinish"),N.pendingcb++,w.nextTick(y,z,N)}N.sync=!0,N.pendingcb++;try{z._final(p)}catch(n){p(n)}N.sync=!1}function Y0(z,N){if(!N.prefinished&&!N.finalCalled)if(typeof z._final==="function"&&!N.destroyed)N.finalCalled=!0,q0(z,N);else N.prefinished=!0,z.emit("prefinish")}function S(z,N,T){if(J0(N)){if(Y0(z,N),N.pendingcb===0){if(T)N.pendingcb++,w.nextTick((p,n)=>{if(J0(n))y(p,n);else n.pendingcb--},z,N);else if(J0(N))N.pendingcb++,y(z,N)}}}function y(z,N){N.pendingcb--,N.finished=!0;let T=N[D].splice(0);for(let p=0;p<T.length;p++)T[p]();if(z.emit("finish"),N.autoDestroy){let p=z._readableState;if(!p||p.autoDestroy&&(p.endEmitted||p.readable===!1))z.destroy()}}q(e.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(z){if(this._writableState)this._writableState.destroyed=z}},writable:{__proto__:null,get(){let z=this._writableState;return!!z&&z.writable!==!1&&!z.destroyed&&!z.errored&&!z.ending&&!z.ended},set(z){if(this._writableState)this._writableState.writable=!!z}},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 z=this._writableState;if(!z)return!1;return!z.destroyed&&!z.ending&&z.needDrain}},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 d=s.destroy;e.prototype.destroy=function(z,N){let T=this._writableState;if(!T.destroyed&&(T.bufferedIndex<T.buffered.length||T[D].length))w.nextTick(R,T);return d.call(this,z,N),this},e.prototype._undestroy=s.undestroy,e.prototype._destroy=function(z,N){N(z)},e.prototype[L.captureRejectionSymbol]=function(z){this.destroy(z)};var I0;function K0(){if(I0===void 0)I0={};return I0}e.fromWeb=function(z,N){return K0().newStreamWritableFromWritableStream(z,N)},e.toWeb=function(z){return K0().newWritableStreamFromStreamWritable(z)}}),r8=$0((h,B)=>{var w=U2(),U=(p0(),T0(b0)),{isReadable:X,isWritable:Q,isIterable:J,isNodeStream:q,isReadableNodeStream:K,isWritableNodeStream:Y,isDuplexNodeStream:$,isReadableStream:V,isWritableStream:L}=d0(),x=o0(),{AbortError:h0,codes:{ERR_INVALID_ARG_TYPE:s,ERR_INVALID_RETURN_VALUE:O}}=j0(),{destroyer:E}=K2(),F=i0(),W=S2(),j=B1(),{createDeferredPromise:_}=L0(),i=N6(),Z0=globalThis.Blob||U.Blob,F0=typeof Z0<"u"?function(D){return D instanceof Z0}:function(D){return!1},o=globalThis.AbortController||M2().AbortController,{FunctionPrototypeCall:k}=W0();class v extends F{constructor(D){super(D);if((D===null||D===void 0?void 0:D.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((D===null||D===void 0?void 0:D.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}B.exports=function D(M,m){if($(M))return M;if(K(M))return A({readable:M});if(Y(M))return A({writable:M});if(q(M))return A({writable:!1,readable:!1});if(V(M))return A({readable:W.fromWeb(M)});if(L(M))return A({writable:j.fromWeb(M)});if(typeof M==="function"){let{value:U0,write:H0,final:f,destroy:X0}=C(M);if(J(U0))return i(v,U0,{objectMode:!0,write:H0,final:f,destroy:X0});let H=U0===null||U0===void 0?void 0:U0.then;if(typeof H==="function"){let c,t=k(H,U0,(R)=>{if(R!=null)throw new O("nully","body",R)},(R)=>{E(c,R)});return c=new v({objectMode:!0,readable:!1,write:H0,final(R){f(async()=>{try{await t,w.nextTick(R,null)}catch(w0){w.nextTick(R,w0)}})},destroy:X0})}throw new O("Iterable, AsyncIterable or AsyncFunction",m,U0)}if(F0(M))return D(M.arrayBuffer());if(J(M))return i(v,M,{objectMode:!0,writable:!1});if(V(M===null||M===void 0?void 0:M.readable)&&L(M===null||M===void 0?void 0:M.writable))return v.fromWeb(M);if(typeof(M===null||M===void 0?void 0:M.writable)==="object"||typeof(M===null||M===void 0?void 0:M.readable)==="object"){let U0=M!==null&&M!==void 0&&M.readable?K(M===null||M===void 0?void 0:M.readable)?M===null||M===void 0?void 0:M.readable:D(M.readable):void 0,H0=M!==null&&M!==void 0&&M.writable?Y(M===null||M===void 0?void 0:M.writable)?M===null||M===void 0?void 0:M.writable:D(M.writable):void 0;return A({readable:U0,writable:H0})}let e=M===null||M===void 0?void 0:M.then;if(typeof e==="function"){let U0;return k(e,M,(H0)=>{if(H0!=null)U0.push(H0);U0.push(null)},(H0)=>{E(U0,H0)}),U0=new v({objectMode:!0,writable:!1,read(){}})}throw new s(m,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],M)};function C(D){let{promise:M,resolve:m}=_(),e=new o,U0=e.signal;return{value:D(async function*(){while(!0){let H0=M;M=null;let{chunk:f,done:X0,cb:H}=await H0;if(w.nextTick(H),X0)return;if(U0.aborted)throw new h0(void 0,{cause:U0.reason});({promise:M,resolve:m}=_()),yield f}}(),{signal:U0}),write(H0,f,X0){let H=m;m=null,H({chunk:H0,done:!1,cb:X0})},final(H0){let f=m;m=null,f({done:!0,cb:H0})},destroy(H0,f){e.abort(),f(H0)}}}function A(D){let M=D.readable&&typeof D.readable.read!=="function"?W.wrap(D.readable):D.readable,m=D.writable,e=!!X(M),U0=!!Q(m),H0,f,X0,H,c;function t(R){let w0=H;if(H=null,w0)w0(R);else if(R)c.destroy(R)}if(c=new v({readableObjectMode:!!(M!==null&&M!==void 0&&M.readableObjectMode),writableObjectMode:!!(m!==null&&m!==void 0&&m.writableObjectMode),readable:e,writable:U0}),U0)x(m,(R)=>{if(U0=!1,R)E(M,R);t(R)}),c._write=function(R,w0,J0){if(m.write(R,w0))J0();else H0=J0},c._final=function(R){m.end(),f=R},m.on("drain",function(){if(H0){let R=H0;H0=null,R()}}),m.on("finish",function(){if(f){let R=f;f=null,R()}});if(e)x(M,(R)=>{if(e=!1,R)E(M,R);t(R)}),M.on("readable",function(){if(X0){let R=X0;X0=null,R()}}),M.on("end",function(){c.push(null)}),c._read=function(){while(!0){let R=M.read();if(R===null){X0=c._read;return}if(!c.push(R))return}};return c._destroy=function(R,w0){if(!R&&H!==null)R=new h0;if(X0=null,H0=null,f=null,H===null)w0(R);else H=w0,E(m,R),E(M,R)},c}}),i0=$0((h,B)=>{var{ObjectDefineProperties:w,ObjectGetOwnPropertyDescriptor:U,ObjectKeys:X,ObjectSetPrototypeOf:Q}=W0();B.exports=K;var J=S2(),q=B1();Q(K.prototype,J.prototype),Q(K,J);{let L=X(q.prototype);for(let x=0;x<L.length;x++){let h0=L[x];if(!K.prototype[h0])K.prototype[h0]=q.prototype[h0]}}function K(L){if(!(this instanceof K))return new K(L);if(J.call(this,L),q.call(this,L),L){if(this.allowHalfOpen=L.allowHalfOpen!==!1,L.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(L.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}w(K.prototype,{writable:{__proto__:null,...U(q.prototype,"writable")},writableHighWaterMark:{__proto__:null,...U(q.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...U(q.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...U(q.prototype,"writableBuffer")},writableLength:{__proto__:null,...U(q.prototype,"writableLength")},writableFinished:{__proto__:null,...U(q.prototype,"writableFinished")},writableCorked:{__proto__:null,...U(q.prototype,"writableCorked")},writableEnded:{__proto__:null,...U(q.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...U(q.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set(L){if(this._readableState&&this._writableState)this._readableState.destroyed=L,this._writableState.destroyed=L}}});var Y;function $(){if(Y===void 0)Y={};return Y}K.fromWeb=function(L,x){return $().newStreamDuplexFromReadableWritablePair(L,x)},K.toWeb=function(L){return $().newReadableWritablePairFromDuplex(L)};var V;K.from=function(L){if(!V)V=r8();return V(L,"body")}}),V6=$0((h,B)=>{var{ObjectSetPrototypeOf:w,Symbol:U}=W0();B.exports=K;var{ERR_METHOD_NOT_IMPLEMENTED:X}=j0().codes,Q=i0(),{getHighWaterMark:J}=k2();w(K.prototype,Q.prototype),w(K,Q);var q=U("kCallback");function K(V){if(!(this instanceof K))return new K(V);let L=V?J(this,V,"readableHighWaterMark",!0):null;if(L===0)V={...V,highWaterMark:null,readableHighWaterMark:L,writableHighWaterMark:V.writableHighWaterMark||0};if(Q.call(this,V),this._readableState.sync=!1,this[q]=null,V){if(typeof V.transform==="function")this._transform=V.transform;if(typeof V.flush==="function")this._flush=V.flush}this.on("prefinish",$)}function Y(V){if(typeof this._flush==="function"&&!this.destroyed)this._flush((L,x)=>{if(L){if(V)V(L);else this.destroy(L);return}if(x!=null)this.push(x);if(this.push(null),V)V()});else if(this.push(null),V)V()}function $(){if(this._final!==Y)Y.call(this)}K.prototype._final=Y,K.prototype._transform=function(V,L,x){throw new X("_transform()")},K.prototype._write=function(V,L,x){let h0=this._readableState,s=this._writableState,O=h0.length;this._transform(V,L,(E,F)=>{if(E){x(E);return}if(F!=null)this.push(F);if(s.ended||O===h0.length||h0.length<h0.highWaterMark)x();else this[q]=x})},K.prototype._read=function(){if(this[q]){let V=this[q];this[q]=null,V()}}}),M6=$0((h,B)=>{var{ObjectSetPrototypeOf:w}=W0();B.exports=X;var U=V6();w(X.prototype,U.prototype),w(X,U);function X(Q){if(!(this instanceof X))return new X(Q);U.call(this,Q)}X.prototype._transform=function(Q,J,q){q(null,Q)}}),w1=$0((h,B)=>{var w=U2(),{ArrayIsArray:U,Promise:X,SymbolAsyncIterator:Q,SymbolDispose:J}=W0(),q=o0(),{once:K}=L0(),Y=K2(),$=i0(),{aggregateTwoErrors:V,codes:{ERR_INVALID_ARG_TYPE:L,ERR_INVALID_RETURN_VALUE:x,ERR_MISSING_ARGS:h0,ERR_STREAM_DESTROYED:s,ERR_STREAM_PREMATURE_CLOSE:O},AbortError:E}=j0(),{validateFunction:F,validateAbortSignal:W}=j2(),{isIterable:j,isReadable:_,isReadableNodeStream:i,isNodeStream:Z0,isTransformStream:F0,isWebStream:o,isReadableStream:k,isReadableFinished:v}=d0(),C=globalThis.AbortController||M2().AbortController,A,D,M;function m(R,w0,J0){let q0=!1;R.on("close",()=>{q0=!0});let Y0=q(R,{readable:w0,writable:J0},(S)=>{q0=!S});return{destroy:(S)=>{if(q0)return;q0=!0,Y.destroyer(R,S||new s("pipe"))},cleanup:Y0}}function e(R){return F(R[R.length-1],"streams[stream.length - 1]"),R.pop()}function U0(R){if(j(R))return R;else if(i(R))return H0(R);throw new L("val",["Readable","Iterable","AsyncIterable"],R)}async function*H0(R){if(!D)D=S2();yield*D.prototype[Q].call(R)}async function f(R,w0,J0,{end:q0}){let Y0,S=null,y=(K0)=>{if(K0)Y0=K0;if(S){let z=S;S=null,z()}},d=()=>new X((K0,z)=>{if(Y0)z(Y0);else S=()=>{if(Y0)z(Y0);else K0()}});w0.on("drain",y);let I0=q(w0,{readable:!1},y);try{if(w0.writableNeedDrain)await d();for await(let K0 of R)if(!w0.write(K0))await d();if(q0)w0.end(),await d();J0()}catch(K0){J0(Y0!==K0?V(Y0,K0):K0)}finally{I0(),w0.off("drain",y)}}async function X0(R,w0,J0,{end:q0}){if(F0(w0))w0=w0.writable;let Y0=w0.getWriter();try{for await(let S of R)await Y0.ready,Y0.write(S).catch(()=>{});if(await Y0.ready,q0)await Y0.close();J0()}catch(S){try{await Y0.abort(S),J0(S)}catch(y){J0(y)}}}function H(...R){return c(R,K(e(R)))}function c(R,w0,J0){if(R.length===1&&U(R[0]))R=R[0];if(R.length<2)throw new h0("streams");let q0=new C,Y0=q0.signal,S=J0===null||J0===void 0?void 0:J0.signal,y=[];W(S,"options.signal");function d(){n(new E)}M=M||L0().addAbortListener;let I0;if(S)I0=M(S,d);let K0,z,N=[],T=0;function p(g){n(g,--T===0)}function n(g,Q0){var z0;if(g&&(!K0||K0.code==="ERR_STREAM_PREMATURE_CLOSE"))K0=g;if(!K0&&!Q0)return;while(N.length)N.shift()(K0);if((z0=I0)===null||z0===void 0||z0[J](),q0.abort(),Q0){if(!K0)y.forEach((E0)=>E0());w.nextTick(w0,K0,z)}}let l;for(let g=0;g<R.length;g++){let Q0=R[g],z0=g<R.length-1,E0=g>0,D0=z0||(J0===null||J0===void 0?void 0:J0.end)!==!1,a0=g===R.length-1;if(Z0(Q0)){let V0=function(A0){if(A0&&A0.name!=="AbortError"&&A0.code!=="ERR_STREAM_PREMATURE_CLOSE")p(A0)};var G=V0;if(D0){let{destroy:A0,cleanup:Q2}=m(Q0,z0,E0);if(N.push(A0),_(Q0)&&a0)y.push(Q2)}if(Q0.on("error",V0),_(Q0)&&a0)y.push(()=>{Q0.removeListener("error",V0)})}if(g===0)if(typeof Q0==="function"){if(l=Q0({signal:Y0}),!j(l))throw new x("Iterable, AsyncIterable or Stream","source",l)}else if(j(Q0)||i(Q0)||F0(Q0))l=Q0;else l=$.from(Q0);else if(typeof Q0==="function"){if(F0(l)){var u;l=U0((u=l)===null||u===void 0?void 0:u.readable)}else l=U0(l);if(l=Q0(l,{signal:Y0}),z0){if(!j(l,!0))throw new x("AsyncIterable",`transform[${g-1}]`,l)}else{var r;if(!A)A=M6();let V0=new A({objectMode:!0}),A0=(r=l)===null||r===void 0?void 0:r.then;if(typeof A0==="function")T++,A0.call(l,(S0)=>{if(z=S0,S0!=null)V0.write(S0);if(D0)V0.end();w.nextTick(p)},(S0)=>{V0.destroy(S0),w.nextTick(p,S0)});else if(j(l,!0))T++,f(l,V0,p,{end:D0});else if(k(l)||F0(l)){let S0=l.readable||l;T++,f(S0,V0,p,{end:D0})}else throw new x("AsyncIterable or Promise","destination",l);l=V0;let{destroy:Q2,cleanup:Z2}=m(l,!1,!0);if(N.push(Q2),a0)y.push(Z2)}}else if(Z0(Q0)){if(i(l)){T+=2;let V0=t(l,Q0,p,{end:D0});if(_(Q0)&&a0)y.push(V0)}else if(F0(l)||k(l)){let V0=l.readable||l;T++,f(V0,Q0,p,{end:D0})}else if(j(l))T++,f(l,Q0,p,{end:D0});else throw new L("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],l);l=Q0}else if(o(Q0)){if(i(l))T++,X0(U0(l),Q0,p,{end:D0});else if(k(l)||j(l))T++,X0(l,Q0,p,{end:D0});else if(F0(l))T++,X0(l.readable,Q0,p,{end:D0});else throw new L("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],l);l=Q0}else l=$.from(Q0)}if(Y0!==null&&Y0!==void 0&&Y0.aborted||S!==null&&S!==void 0&&S.aborted)w.nextTick(d);return l}function t(R,w0,J0,{end:q0}){let Y0=!1;if(w0.on("close",()=>{if(!Y0)J0(new O)}),R.pipe(w0,{end:!1}),q0){let y=function(){Y0=!0,w0.end()};var S=y;if(v(R))w.nextTick(y);else R.once("end",y)}else J0();return q(R,{readable:!0,writable:!1},(y)=>{let d=R._readableState;if(y&&y.code==="ERR_STREAM_PREMATURE_CLOSE"&&d&&d.ended&&!d.errored&&!d.errorEmitted)R.once("end",J0).once("error",J0);else J0(y)}),q(w0,{readable:!1,writable:!0},J0)}B.exports={pipelineImpl:c,pipeline:H}}),j6=$0((h,B)=>{var{pipeline:w}=w1(),U=i0(),{destroyer:X}=K2(),{isNodeStream:Q,isReadable:J,isWritable:q,isWebStream:K,isTransformStream:Y,isWritableStream:$,isReadableStream:V}=d0(),{AbortError:L,codes:{ERR_INVALID_ARG_VALUE:x,ERR_MISSING_ARGS:h0}}=j0(),s=o0();B.exports=function(...O){if(O.length===0)throw new h0("streams");if(O.length===1)return U.from(O[0]);let E=[...O];if(typeof O[0]==="function")O[0]=U.from(O[0]);if(typeof O[O.length-1]==="function"){let C=O.length-1;O[C]=U.from(O[C])}for(let C=0;C<O.length;++C){if(!Q(O[C])&&!K(O[C]))continue;if(C<O.length-1&&!(J(O[C])||V(O[C])||Y(O[C])))throw new x(`streams[${C}]`,E[C],"must be readable");if(C>0&&!(q(O[C])||$(O[C])||Y(O[C])))throw new x(`streams[${C}]`,E[C],"must be writable")}let F,W,j,_,i;function Z0(C){let A=_;if(_=null,A)A(C);else if(C)i.destroy(C);else if(!v&&!k)i.destroy()}let F0=O[0],o=w(O,Z0),k=!!(q(F0)||$(F0)||Y(F0)),v=!!(J(o)||V(o)||Y(o));if(i=new U({writableObjectMode:!!(F0!==null&&F0!==void 0&&F0.writableObjectMode),readableObjectMode:!!(o!==null&&o!==void 0&&o.readableObjectMode),writable:k,readable:v}),k){if(Q(F0))i._write=function(A,D,M){if(F0.write(A,D))M();else F=M},i._final=function(A){F0.end(),W=A},F0.on("drain",function(){if(F){let A=F;F=null,A()}});else if(K(F0)){let A=(Y(F0)?F0.writable:F0).getWriter();i._write=async function(D,M,m){try{await A.ready,A.write(D).catch(()=>{}),m()}catch(e){m(e)}},i._final=async function(D){try{await A.ready,A.close().catch(()=>{}),W=D}catch(M){D(M)}}}let C=Y(o)?o.readable:o;s(C,()=>{if(W){let A=W;W=null,A()}})}if(v){if(Q(o))o.on("readable",function(){if(j){let C=j;j=null,C()}}),o.on("end",function(){i.push(null)}),i._read=function(){while(!0){let C=o.read();if(C===null){j=i._read;return}if(!i.push(C))return}};else if(K(o)){let C=(Y(o)?o.readable:o).getReader();i._read=async function(){while(!0)try{let{value:A,done:D}=await C.read();if(!i.push(A))return;if(D){i.push(null);return}}catch{return}}}}return i._destroy=function(C,A){if(!C&&_!==null)C=new L;if(j=null,F=null,W=null,_===null)A(C);else if(_=A,Q(o))X(o,C)},i}}),a8=$0((h,B)=>{var w=globalThis.AbortController||M2().AbortController,{codes:{ERR_INVALID_ARG_VALUE:U,ERR_INVALID_ARG_TYPE:X,ERR_MISSING_ARGS:Q,ERR_OUT_OF_RANGE:J},AbortError:q}=j0(),{validateAbortSignal:K,validateInteger:Y,validateObject:$}=j2(),V=W0().Symbol("kWeak"),L=W0().Symbol("kResistStopPropagation"),{finished:x}=o0(),h0=j6(),{addAbortSignalNoValidate:s}=R2(),{isWritable:O,isNodeStream:E}=d0(),{deprecate:F}=L0(),{ArrayPrototypePush:W,Boolean:j,MathFloor:_,Number:i,NumberIsNaN:Z0,Promise:F0,PromiseReject:o,PromiseResolve:k,PromisePrototypeThen:v,Symbol:C}=W0(),A=C("kEmpty"),D=C("kEof");function M(S,y){if(y!=null)$(y,"options");if((y===null||y===void 0?void 0:y.signal)!=null)K(y.signal,"options.signal");if(E(S)&&!O(S))throw new U("stream",S,"must be writable");let d=h0(this,S);if(y!==null&&y!==void 0&&y.signal)s(y.signal,d);return d}function m(S,y){if(typeof S!=="function")throw new X("fn",["Function","AsyncFunction"],S);if(y!=null)$(y,"options");if((y===null||y===void 0?void 0:y.signal)!=null)K(y.signal,"options.signal");let d=1;if((y===null||y===void 0?void 0:y.concurrency)!=null)d=_(y.concurrency);let I0=d-1;if((y===null||y===void 0?void 0:y.highWaterMark)!=null)I0=_(y.highWaterMark);return Y(d,"options.concurrency",1),Y(I0,"options.highWaterMark",0),I0+=d,async function*(){let K0=L0().AbortSignalAny([y===null||y===void 0?void 0:y.signal].filter(j)),z=this,N=[],T={signal:K0},p,n,l=!1,G=0;function u(){l=!0,r()}function r(){G-=1,g()}function g(){if(n&&!l&&G<d&&N.length<I0)n(),n=null}async function Q0(){try{for await(let z0 of z){if(l)return;if(K0.aborted)throw new q;try{if(z0=S(z0,T),z0===A)continue;z0=k(z0)}catch(E0){z0=o(E0)}if(G+=1,v(z0,r,u),N.push(z0),p)p(),p=null;if(!l&&(N.length>=I0||G>=d))await new F0((E0)=>{n=E0})}N.push(D)}catch(z0){let E0=o(z0);v(E0,r,u),N.push(E0)}finally{if(l=!0,p)p(),p=null}}Q0();try{while(!0){while(N.length>0){let z0=await N[0];if(z0===D)return;if(K0.aborted)throw new q;if(z0!==A)yield z0;N.shift(),g()}await new F0((z0)=>{p=z0})}}finally{if(l=!0,n)n(),n=null}}.call(this)}function e(S=void 0){if(S!=null)$(S,"options");if((S===null||S===void 0?void 0:S.signal)!=null)K(S.signal,"options.signal");return async function*(){let y=0;for await(let I0 of this){var d;if(S!==null&&S!==void 0&&(d=S.signal)!==null&&d!==void 0&&d.aborted)throw new q({cause:S.signal.reason});yield[y++,I0]}}.call(this)}async function U0(S,y=void 0){for await(let d of H.call(this,S,y))return!0;return!1}async function H0(S,y=void 0){if(typeof S!=="function")throw new X("fn",["Function","AsyncFunction"],S);return!await U0.call(this,async(...d)=>{return!await S(...d)},y)}async function f(S,y){for await(let d of H.call(this,S,y))return d;return}async function X0(S,y){if(typeof S!=="function")throw new X("fn",["Function","AsyncFunction"],S);async function d(I0,K0){return await S(I0,K0),A}for await(let I0 of m.call(this,d,y));}function H(S,y){if(typeof S!=="function")throw new X("fn",["Function","AsyncFunction"],S);async function d(I0,K0){if(await S(I0,K0))return I0;return A}return m.call(this,d,y)}class c extends Q{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function t(S,y,d){var I0;if(typeof S!=="function")throw new X("reducer",["Function","AsyncFunction"],S);if(d!=null)$(d,"options");if((d===null||d===void 0?void 0:d.signal)!=null)K(d.signal,"options.signal");let K0=arguments.length>1;if(d!==null&&d!==void 0&&(I0=d.signal)!==null&&I0!==void 0&&I0.aborted){let n=new q(void 0,{cause:d.signal.reason});throw this.once("error",()=>{}),await x(this.destroy(n)),n}let z=new w,N=z.signal;if(d!==null&&d!==void 0&&d.signal){let n={once:!0,[V]:this,[L]:!0};d.signal.addEventListener("abort",()=>z.abort(),n)}let T=!1;try{for await(let n of this){var p;if(T=!0,d!==null&&d!==void 0&&(p=d.signal)!==null&&p!==void 0&&p.aborted)throw new q;if(!K0)y=n,K0=!0;else y=await S(y,n,{signal:N})}if(!T&&!K0)throw new c}finally{z.abort()}return y}async function R(S){if(S!=null)$(S,"options");if((S===null||S===void 0?void 0:S.signal)!=null)K(S.signal,"options.signal");let y=[];for await(let I0 of this){var d;if(S!==null&&S!==void 0&&(d=S.signal)!==null&&d!==void 0&&d.aborted)throw new q(void 0,{cause:S.signal.reason});W(y,I0)}return y}function w0(S,y){let d=m.call(this,S,y);return async function*(){for await(let I0 of d)yield*I0}.call(this)}function J0(S){if(S=i(S),Z0(S))return 0;if(S<0)throw new J("number",">= 0",S);return S}function q0(S,y=void 0){if(y!=null)$(y,"options");if((y===null||y===void 0?void 0:y.signal)!=null)K(y.signal,"options.signal");return S=J0(S),async function*(){var d;if(y!==null&&y!==void 0&&(d=y.signal)!==null&&d!==void 0&&d.aborted)throw new q;for await(let K0 of this){var I0;if(y!==null&&y!==void 0&&(I0=y.signal)!==null&&I0!==void 0&&I0.aborted)throw new q;if(S--<=0)yield K0}}.call(this)}function Y0(S,y=void 0){if(y!=null)$(y,"options");if((y===null||y===void 0?void 0:y.signal)!=null)K(y.signal,"options.signal");return S=J0(S),async function*(){var d;if(y!==null&&y!==void 0&&(d=y.signal)!==null&&d!==void 0&&d.aborted)throw new q;for await(let K0 of this){var I0;if(y!==null&&y!==void 0&&(I0=y.signal)!==null&&I0!==void 0&&I0.aborted)throw new q;if(S-- >0)yield K0;if(S<=0)return}}.call(this)}B.exports.streamReturningOperators={asIndexedPairs:F(e,"readable.asIndexedPairs will be removed in a future version."),drop:q0,filter:H,flatMap:w0,map:m,take:Y0,compose:M},B.exports.promiseReturningOperators={every:H0,forEach:X0,reduce:t,toArray:R,some:U0,find:f}}),A6=$0((h,B)=>{var{ArrayPrototypePop:w,Promise:U}=W0(),{isIterable:X,isNodeStream:Q,isWebStream:J}=d0(),{pipelineImpl:q}=w1(),{finished:K}=o0();O6();function Y(...$){return new U((V,L)=>{let x,h0,s=$[$.length-1];if(s&&typeof s==="object"&&!Q(s)&&!X(s)&&!J(s)){let O=w($);x=O.signal,h0=O.end}q($,(O,E)=>{if(O)L(O);else V(E)},{signal:x,end:h0})})}B.exports={finished:K,pipeline:Y}}),O6=$0((h,B)=>{var{Buffer:w}=(p0(),T0(b0)),{ObjectDefineProperty:U,ObjectKeys:X,ReflectApply:Q}=W0(),{promisify:{custom:J}}=L0(),{streamReturningOperators:q,promiseReturningOperators:K}=a8(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:Y}}=j0(),$=j6(),{setDefaultHighWaterMark:V,getDefaultHighWaterMark:L}=k2(),{pipeline:x}=w1(),{destroyer:h0}=K2(),s=o0(),O=A6(),E=d0(),F=B.exports=h1().Stream;F.isDestroyed=E.isDestroyed,F.isDisturbed=E.isDisturbed,F.isErrored=E.isErrored,F.isReadable=E.isReadable,F.isWritable=E.isWritable,F.Readable=S2();for(let j of X(q)){let _=function(...Z0){if(new.target)throw Y();return F.Readable.from(Q(i,this,Z0))},i=q[j];U(_,"name",{__proto__:null,value:i.name}),U(_,"length",{__proto__:null,value:i.length}),U(F.Readable.prototype,j,{__proto__:null,value:_,enumerable:!1,configurable:!0,writable:!0})}for(let j of X(K)){let _=function(...Z0){if(new.target)throw Y();return Q(i,this,Z0)},i=K[j];U(_,"name",{__proto__:null,value:i.name}),U(_,"length",{__proto__:null,value:i.length}),U(F.Readable.prototype,j,{__proto__:null,value:_,enumerable:!1,configurable:!0,writable:!0})}F.Writable=B1(),F.Duplex=i0(),F.Transform=V6(),F.PassThrough=M6(),F.pipeline=x;var{addAbortSignal:W}=R2();F.addAbortSignal=W,F.finished=s,F.destroy=h0,F.compose=$,F.setDefaultHighWaterMark=V,F.getDefaultHighWaterMark=L,U(F,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return O}}),U(x,J,{__proto__:null,enumerable:!0,get(){return O.pipeline}}),U(s,J,{__proto__:null,enumerable:!0,get(){return O.finished}}),F.Stream=F,F._isUint8Array=function(j){return j instanceof Uint8Array},F._uint8ArrayToBuffer=function(j){return w.from(j.buffer,j.byteOffset,j.byteLength)}}),s8=$0((h,B)=>{var w=U1();{let U=O6(),X=A6(),Q=U.Readable.destroy;B.exports=U.Readable,B.exports._uint8ArrayToBuffer=U._uint8ArrayToBuffer,B.exports._isUint8Array=U._isUint8Array,B.exports.isDisturbed=U.isDisturbed,B.exports.isErrored=U.isErrored,B.exports.isReadable=U.isReadable,B.exports.Readable=U.Readable,B.exports.Writable=U.Writable,B.exports.Duplex=U.Duplex,B.exports.Transform=U.Transform,B.exports.PassThrough=U.PassThrough,B.exports.addAbortSignal=U.addAbortSignal,B.exports.finished=U.finished,B.exports.destroy=U.destroy,B.exports.destroy=Q,B.exports.pipeline=U.pipeline,B.exports.compose=U.compose,Object.defineProperty(U,"promises",{configurable:!0,enumerable:!0,get(){return X}}),B.exports.Stream=U.Stream}B.exports.default=B.exports});L6.exports=s8()});import{ModelType as x0}from"@elizaos/core";import{logger as y0}from"@elizaos/core";import{logger as $2}from"@elizaos/core";function G0(h,B,w){return h.getSetting(B)??process.env[B]??w}function l0(){return typeof globalThis<"u"&&typeof globalThis.document<"u"}function P1(h){return l0()&&!!G0(h,"ELIZAOS_CLOUD_BROWSER_BASE_URL")}function k0(h,B=!1){if(l0())return{};let w=B?n6(h):J2(h);return w?{Authorization:`Bearer ${w}`}:{}}function _0(h){let B=G0(h,"ELIZAOS_CLOUD_BROWSER_BASE_URL"),w=l0()&&B?B:G0(h,"ELIZAOS_CLOUD_BASE_URL","https://www.elizacloud.ai/api/v1");return console.log(`[ELIZAOS_CLOUD] Default base URL: ${w}`),w}function T1(h){let B=l0()?G0(h,"ELIZAOS_CLOUD_BROWSER_EMBEDDING_URL")||G0(h,"ELIZAOS_CLOUD_BROWSER_BASE_URL"):G0(h,"ELIZAOS_CLOUD_EMBEDDING_URL");if(B)return $2.debug(`[ELIZAOS_CLOUD] Using specific embedding base URL: ${B}`),B;return $2.debug("[ELIZAOS_CLOUD] Falling back to general base URL for embeddings."),_0(h)}function J2(h){return G0(h,"ELIZAOS_CLOUD_API_KEY")}function n6(h){let B=G0(h,"ELIZAOS_CLOUD_EMBEDDING_API_KEY");if(B)return $2.debug("[ELIZAOS_CLOUD] Using specific embedding API key (present)"),B;return $2.debug("[ELIZAOS_CLOUD] Falling back to general API key for embeddings."),J2(h)}function O2(h){return G0(h,"ELIZAOS_CLOUD_SMALL_MODEL")??G0(h,"SMALL_MODEL","gpt-4o-mini")}function L2(h){return G0(h,"ELIZAOS_CLOUD_LARGE_MODEL")??G0(h,"LARGE_MODEL","gpt-4o")}function _1(h){return G0(h,"ELIZAOS_CLOUD_IMAGE_DESCRIPTION_MODEL","gpt-4o-mini")??"gpt-4o-mini"}function R1(h){return G0(h,"ELIZAOS_CLOUD_IMAGE_GENERATION_MODEL","openai/gpt-5-nano")??"openai/gpt-5-nano"}function b2(h){let B=G0(h,"ELIZAOS_CLOUD_EXPERIMENTAL_TELEMETRY","false"),w=String(B).toLowerCase(),U=w==="true";return $2.debug(`[ELIZAOS_CLOUD] Experimental telemetry in function: "${B}" (type: ${typeof B}, normalized: "${w}", result: ${U})`),U}function k1(h,B){new Promise(async(w)=>{w();try{if(!J2(B)&&!l0()){y0.warn("ELIZAOS_CLOUD_API_KEY is not set in environment - ElizaOS Cloud functionality will be limited"),y0.info("Get your API key from https://www.elizacloud.ai/dashboard/api-keys");return}try{let U=_0(B),X=await fetch(`${U}/models`,{headers:{...k0(B)}});if(!X.ok)y0.warn(`ElizaOS Cloud API key validation failed: ${X.statusText}`),y0.warn("ElizaOS Cloud functionality will be limited until a valid API key is provided"),y0.info("Get your API key from https://www.elizacloud.ai/dashboard/api-keys");else y0.log("ElizaOS Cloud API key validated successfully")}catch(U){let X=U instanceof Error?U.message:String(U);y0.warn(`Error validating ElizaOS Cloud API key: ${X}`),y0.warn("ElizaOS Cloud functionality will be limited until a valid API key is provided")}}catch(U){let X=U?.errors?.map((Q)=>Q.message).join(", ")||(U instanceof Error?U.message:String(U));y0.warn(`ElizaOS Cloud plugin configuration issue: ${X} - You need to configure the ELIZAOS_CLOUD_API_KEY in your environment variables`),y0.info("Get your API key from https://www.elizacloud.ai/dashboard/api-keys")}})}import{logger as x2,ModelType as S1}from"@elizaos/core";import{generateText as y1}from"ai";import{createOpenAI as o6}from"@ai-sdk/openai";function z2(h){let B=_0(h),w=J2(h)??(P1(h)?"eliza-proxy":void 0);return o6({apiKey:w??"",baseURL:B})}import{EventType as r6}from"@elizaos/core";function v0(h,B,w,U){h.emitEvent(r6.MODEL_USED,{provider:"openai",type:B,prompt:w,tokens:{prompt:U.inputTokens,completion:U.outputTokens,total:U.totalTokens}})}async function E2(h,{prompt:B,stopSequences:w=[],maxTokens:U=8192,temperature:X=0.7,frequencyPenalty:Q=0.7,presencePenalty:J=0.7}){let q=z2(h),K=O2(h),Y=b2(h);x2.log(`[ELIZAOS_CLOUD] Using TEXT_SMALL model: ${K}`),x2.log(B);let{text:$,usage:V}=await y1({model:q.languageModel(K),prompt:B,system:h.character.system??void 0,temperature:X,maxOutputTokens:U,frequencyPenalty:Q,presencePenalty:J,stopSequences:w,experimental_telemetry:{isEnabled:Y}});if(V)v0(h,S1.TEXT_SMALL,B,V);return $}async function D2(h,{prompt:B,stopSequences:w=[],maxTokens:U=8192,temperature:X=0.7,frequencyPenalty:Q=0.7,presencePenalty:J=0.7}){let q=z2(h),K=L2(h),Y=b2(h);x2.log(`[ELIZAOS_CLOUD] Using TEXT_LARGE model: ${K}`),x2.log(B);let{text:$,usage:V}=await y1({model:q.languageModel(K),prompt:B,system:h.character.system??void 0,temperature:X,maxOutputTokens:U,frequencyPenalty:Q,presencePenalty:J,stopSequences:w,experimental_telemetry:{isEnabled:Y}});if(V)v0(h,S1.TEXT_LARGE,B,V);return $}import{logger as X2,ModelType as D6}from"@elizaos/core";import{generateObject as e8,JSONParseError as h4}from"ai";import{logger as X1}from"@elizaos/core";import{JSONParseError as t8}from"ai";function Q1(){return async({text:h,error:B})=>{try{if(B instanceof t8){let w=h.replace(/```json\n|\n```|```/g,"");return JSON.parse(w),w}return null}catch(w){let U=w instanceof Error?w.message:String(w);return X1.warn(`Failed to repair JSON text: ${U}`),null}}}function Z1(h){if(h.length<12)return"application/octet-stream";if(h[0]===82&&h[1]===73&&h[2]===70&&h[3]===70&&h[8]===87&&h[9]===65&&h[10]===86&&h[11]===69)return"audio/wav";if(h[0]===73&&h[1]===68&&h[2]===51||h[0]===255&&(h[1]&224)===224)return"audio/mpeg";if(h[0]===79&&h[1]===103&&h[2]===103&&h[3]===83)return"audio/ogg";if(h[0]===102&&h[1]===76&&h[2]===97&&h[3]===67)return"audio/flac";if(h[4]===102&&h[5]===116&&h[6]===121&&h[7]===112)return"audio/mp4";if(h[0]===26&&h[1]===69&&h[2]===223&&h[3]===163)return"audio/webm";return X1.warn("Could not detect audio format from buffer, using generic binary type"),"application/octet-stream"}async function x6(h){try{let{Readable:B}=await Promise.resolve().then(() => l6(U1(),1)),w=h.getReader();return new B({async read(){try{let{done:U,value:X}=await w.read();if(U)this.push(null);else this.push(X)}catch(U){this.destroy(U)}},destroy(U,X){w.cancel().finally(()=>X(U))}})}catch(B){let w=B instanceof Error?B.message:String(B);throw X1.error(`Failed to load node:stream module: ${w}`),Error("Cannot convert stream: node:stream module unavailable. This feature requires a Node.js environment.")}}function E6(h){let w=h.match(/title[:\s]+(.+?)(?:\n|$)/i)?.[1]?.trim()||"Image Analysis",U=h.replace(/title[:\s]+(.+?)(?:\n|$)/i,"").trim();return{title:w,description:U}}async function P6(h,B,w,U){let X=z2(h),Q=U(h);X2.log(`[ELIZAOS_CLOUD] Using ${w} model: ${Q}`);let J=B.temperature??0;if(!!B.schema)X2.info(`Using ${w} without schema validation (schema provided but output=no-schema)`);try{let{object:K,usage:Y}=await e8({model:X.languageModel(Q),output:"no-schema",prompt:B.prompt,temperature:J,experimental_repairText:Q1()});if(Y)v0(h,w,B.prompt,Y);return K}catch(K){if(K instanceof h4){X2.error(`[generateObject] Failed to parse JSON: ${K.message}`);let $=await Q1()({text:K.text,error:K});if($)try{let V=JSON.parse($);return X2.info("[generateObject] Successfully repaired JSON."),V}catch(V){let L=V instanceof Error?V.message:String(V);throw X2.error(`[generateObject] Failed to parse repaired JSON: ${L}`),V}else throw X2.error("[generateObject] JSON repair failed."),K}else{let Y=K instanceof Error?K.message:String(K);throw X2.error(`[generateObject] Unknown error: ${Y}`),K}}}async function J1(h,B){return P6(h,B,D6.OBJECT_SMALL,O2)}async function I1(h,B){return P6(h,B,D6.OBJECT_LARGE,L2)}import{logger as r0,ModelType as B4,VECTOR_DIMS as T6}from"@elizaos/core";async function F1(h,B){let w=G0(h,"ELIZAOS_CLOUD_EMBEDDING_MODEL","text-embedding-3-small"),U=Number.parseInt(G0(h,"ELIZAOS_CLOUD_EMBEDDING_DIMENSIONS","1536")||"1536",10);if(!Object.values(T6).includes(U)){let J=`Invalid embedding dimension: ${U}. Must be one of: ${Object.values(T6).join(", ")}`;throw r0.error(J),Error(J)}if(B===null){r0.debug("Creating test embedding for initialization");let J=Array(U).fill(0);return J[0]=0.1,J}let X;if(typeof B==="string")X=B;else if(typeof B==="object"&&B.text)X=B.text;else{r0.warn("Invalid input format for embedding");let J=Array(U).fill(0);return J[0]=0.2,J}if(!X.trim()){r0.warn("Empty text for embedding");let J=Array(U).fill(0);return J[0]=0.3,J}let Q=T1(h);try{let J=await fetch(`${Q}/embeddings`,{method:"POST",headers:{...k0(h,!0),"Content-Type":"application/json"},body:JSON.stringify({model:w,input:X})});if(!J.ok){r0.error(`ElizaOS Cloud API error: ${J.status} - ${J.statusText}`);let Y=Array(U).fill(0);return Y[0]=0.4,Y}let q=await J.json();if(!q?.data?.[0]?.embedding){r0.error("API returned invalid structure");let Y=Array(U).fill(0);return Y[0]=0.5,Y}let K=q.data[0].embedding;if(q.usage){let Y={inputTokens:q.usage.prompt_tokens,outputTokens:0,totalTokens:q.usage.total_tokens};v0(h,B4.TEXT_EMBEDDING,X,Y)}return r0.log(`Got valid embedding with length ${K.length}`),K}catch(J){let q=J instanceof Error?J.message:String(J);r0.error(`Error generating embedding: ${q}`);let K=Array(U).fill(0);return K[0]=0.6,K}}import{logger as y2,ModelType as w4}from"@elizaos/core";async function K1(h,B){let w=B.n||1,U=B.size||"1024x1024",X=B.prompt,Q=R1(h);y2.log(`[ELIZAOS_CLOUD] Using IMAGE model: ${Q}`);let J=_0(h),K={"1024x1024":"1:1","1792x1024":"16:9","1024x1792":"9:16"}[U]||"1:1";try{let Y=await fetch(`${J}/generate-image`,{method:"POST",headers:{...k0(h),"Content-Type":"application/json"},body:JSON.stringify({prompt:X,numImages:w,aspectRatio:K})});if(!Y.ok){let L=await Y.text();throw Error(`Failed to generate image: ${Y.status} ${L}`)}return(await Y.json()).images.map((L)=>({url:L.url||L.image}))}catch(Y){let $=Y instanceof Error?Y.message:String(Y);throw y2.error(`[ELIZAOS_CLOUD] Image generation error: ${$}`),Y}}async function Y1(h,B){let w,U,X=_1(h);y2.log(`[ELIZAOS_CLOUD] Using IMAGE_DESCRIPTION model: ${X}`);let Q=Number.parseInt(G0(h,"ELIZAOS_CLOUD_IMAGE_DESCRIPTION_MAX_TOKENS","8192")||"8192",10);if(typeof B==="string")w=B,U="Please analyze this image and provide a title and detailed description.";else w=B.imageUrl,U=B.prompt||"Please analyze this image and provide a title and detailed description.";let J=[{role:"user",content:[{type:"text",text:U},{type:"image_url",image_url:{url:w}}]}],q=_0(h);try{let K={model:X,messages:J,max_tokens:Q},Y=await fetch(`${q}/chat/completions`,{method:"POST",headers:{"Content-Type":"application/json",...k0(h)},body:JSON.stringify(K)});if(!Y.ok)throw Error(`ElizaOS Cloud API error: ${Y.status}`);let V=await Y.json(),L=V.choices?.[0]?.message?.content;if(V.usage)v0(h,w4.IMAGE_DESCRIPTION,typeof B==="string"?B:B.prompt||"",{inputTokens:V.usage.prompt_tokens,outputTokens:V.usage.completion_tokens,totalTokens:V.usage.total_tokens});if(!L)return{title:"Failed to analyze image",description:"No response from API"};if(typeof B==="object"&&B.prompt&&B.prompt!=="Please analyze this image and provide a title and detailed description.")return L;return E6(L)}catch(K){let Y=K instanceof Error?K.message:String(K);return y2.error(`Error analyzing image: ${Y}`),{title:"Failed to analyze image",description:`Error: ${Y}`}}}import{logger as A2}from"@elizaos/core";async function H1(h,B){let w=G0(h,"ELIZAOS_CLOUD_TRANSCRIPTION_MODEL","gpt-4o-mini-transcribe");A2.log(`[ELIZAOS_CLOUD] Using TRANSCRIPTION model: ${w}`);let U=_0(h),X,Q=null;if(B instanceof Blob||B instanceof File)X=B;else if(Buffer.isBuffer(B)){let Y=Z1(B);A2.debug(`Auto-detected audio MIME type: ${Y}`),X=new Blob([B],{type:Y})}else if(typeof B==="object"&&B!==null&&"audio"in B&&B.audio!=null){let Y=B;if(!(Y.audio instanceof Blob)&&!(Y.audio instanceof File)&&!Buffer.isBuffer(Y.audio))throw Error("TRANSCRIPTION param 'audio' must be a Blob/File/Buffer.");if(Buffer.isBuffer(Y.audio)){let $=Y.mimeType;if(!$)$=Z1(Y.audio),A2.debug(`Auto-detected audio MIME type: ${$}`);else A2.debug(`Using provided MIME type: ${$}`);X=new Blob([Y.audio],{type:$})}else X=Y.audio;if(Q=Y,typeof Y.model==="string"&&Y.model)w=Y.model}else throw Error("TRANSCRIPTION expects a Blob/File/Buffer or an object { audio: Blob/File/Buffer, mimeType?, language?, response_format?, timestampGranularities?, prompt?, temperature?, model? }");let J=X.type||"audio/webm",q=X.name||(J.includes("mp3")||J.includes("mpeg")?"recording.mp3":J.includes("ogg")?"recording.ogg":J.includes("wav")?"recording.wav":J.includes("webm")?"recording.webm":"recording.bin"),K=new FormData;if(K.append("file",X,q),K.append("model",String(w)),Q){if(typeof Q.language==="string")K.append("language",String(Q.language));if(typeof Q.response_format==="string")K.append("response_format",String(Q.response_format));if(typeof Q.prompt==="string")K.append("prompt",String(Q.prompt));if(typeof Q.temperature==="number")K.append("temperature",String(Q.temperature));if(Array.isArray(Q.timestampGranularities))for(let Y of Q.timestampGranularities)K.append("timestamp_granularities[]",String(Y))}try{let Y=await fetch(`${U}/audio/transcriptions`,{method:"POST",headers:{...k0(h)},body:K});if(!Y.ok)throw Error(`Failed to transcribe audio: ${Y.status} ${Y.statusText}`);return(await Y.json()).text||""}catch(Y){let $=Y instanceof Error?Y.message:String(Y);throw A2.error(`TRANSCRIPTION error: ${$}`),Y}}import{logger as _6}from"@elizaos/core";async function R6(h,B){let w=G0(h,"ELIZAOS_CLOUD_TTS_MODEL","gpt-4o-mini-tts"),U=G0(h,"ELIZAOS_CLOUD_TTS_VOICE","nova"),X=G0(h,"ELIZAOS_CLOUD_TTS_INSTRUCTIONS",""),Q=_0(h),J=B.model||w,q=B.voice||U,K=B.instructions??X,Y=B.format||"mp3";try{let $=await fetch(`${Q}/audio/speech`,{method:"POST",headers:{...k0(h),"Content-Type":"application/json",...Y==="mp3"?{Accept:"audio/mpeg"}:{}},body:JSON.stringify({model:J,voice:q,input:B.text,format:Y,...K&&{instructions:K}})});if(!$.ok){let V=await $.text();throw Error(`ElizaOS Cloud TTS error ${$.status}: ${V}`)}if(!$.body)throw Error("ElizaOS Cloud TTS response body is null");if(!l0())return await x6($.body);return $.body}catch($){let V=$ instanceof Error?$.message:String($);throw Error(`Failed to fetch speech from ElizaOS Cloud TTS: ${V}`)}}async function q1(h,B){let w=typeof B==="string"?{text:B}:B,U=w.model||G0(h,"ELIZAOS_CLOUD_TTS_MODEL","gpt-4o-mini-tts");_6.log(`[ELIZAOS_CLOUD] Using TEXT_TO_SPEECH model: ${U}`);try{return await R6(h,w)}catch(X){let Q=X instanceof Error?X.message:String(X);throw _6.error(`Error in TEXT_TO_SPEECH: ${Q}`),X}}import{ModelType as Y2}from"@elizaos/core";import{encodingForModel as k6}from"js-tiktoken";async function U4(h,B){let w=h===Y2.TEXT_SMALL?process.env.ELIZAOS_CLOUD_SMALL_MODEL??process.env.SMALL_MODEL??"gpt-5-nano":process.env.LARGE_MODEL??"gpt-5-mini";return k6(w).encode(B)}async function X4(h,B){let w=h===Y2.TEXT_SMALL?process.env.ELIZAOS_CLOUD_SMALL_MODEL??process.env.SMALL_MODEL??"gpt-5-nano":process.env.ELIZAOS_CLOUD_LARGE_MODEL??process.env.LARGE_MODEL??"gpt-5-mini";return k6(w).decode(B)}async function $1(h,{prompt:B,modelType:w=Y2.TEXT_LARGE}){return await U4(w??Y2.TEXT_LARGE,B)}async function z1(h,{tokens:B,modelType:w=Y2.TEXT_LARGE}){return await X4(w??Y2.TEXT_LARGE,B)}var Q4={name:"elizaOSCloud",description:"ElizaOS Cloud plugin (browser) - Multi-model inference (GPT-4, Claude, Gemini), embeddings, image generation, transcription, TTS. Database features require Node.js runtime.",config:{ELIZAOS_CLOUD_API_KEY:process.env.ELIZAOS_CLOUD_API_KEY,ELIZAOS_CLOUD_BASE_URL:process.env.ELIZAOS_CLOUD_BASE_URL,ELIZAOS_CLOUD_SMALL_MODEL:process.env.ELIZAOS_CLOUD_SMALL_MODEL,ELIZAOS_CLOUD_LARGE_MODEL:process.env.ELIZAOS_CLOUD_LARGE_MODEL,SMALL_MODEL:process.env.SMALL_MODEL,LARGE_MODEL:process.env.LARGE_MODEL,ELIZAOS_CLOUD_EMBEDDING_MODEL:process.env.ELIZAOS_CLOUD_EMBEDDING_MODEL,ELIZAOS_CLOUD_EMBEDDING_API_KEY:process.env.ELIZAOS_CLOUD_EMBEDDING_API_KEY,ELIZAOS_CLOUD_EMBEDDING_URL:process.env.ELIZAOS_CLOUD_EMBEDDING_URL,ELIZAOS_CLOUD_EMBEDDING_DIMENSIONS:process.env.ELIZAOS_CLOUD_EMBEDDING_DIMENSIONS,ELIZAOS_CLOUD_IMAGE_DESCRIPTION_MODEL:process.env.ELIZAOS_CLOUD_IMAGE_DESCRIPTION_MODEL,ELIZAOS_CLOUD_IMAGE_DESCRIPTION_MAX_TOKENS:process.env.ELIZAOS_CLOUD_IMAGE_DESCRIPTION_MAX_TOKENS,ELIZAOS_CLOUD_IMAGE_GENERATION_MODEL:process.env.ELIZAOS_CLOUD_IMAGE_GENERATION_MODEL,ELIZAOS_CLOUD_TTS_MODEL:process.env.ELIZAOS_CLOUD_TTS_MODEL,ELIZAOS_CLOUD_TTS_VOICE:process.env.ELIZAOS_CLOUD_TTS_VOICE,ELIZAOS_CLOUD_TRANSCRIPTION_MODEL:process.env.ELIZAOS_CLOUD_TRANSCRIPTION_MODEL,ELIZAOS_CLOUD_EXPERIMENTAL_TELEMETRY:process.env.ELIZAOS_CLOUD_EXPERIMENTAL_TELEMETRY},priority:-1,async init(h,B){k1(h,B)},models:{[x0.TEXT_SMALL]:E2,[x0.TEXT_LARGE]:D2,[x0.TEXT_REASONING_SMALL]:E2,[x0.TEXT_REASONING_LARGE]:D2,[x0.OBJECT_SMALL]:J1,[x0.OBJECT_LARGE]:I1,[x0.TEXT_EMBEDDING]:F1,[x0.TEXT_TOKENIZER_ENCODE]:$1,[x0.TEXT_TOKENIZER_DECODE]:z1,[x0.IMAGE]:K1,[x0.IMAGE_DESCRIPTION]:Y1,[x0.TRANSCRIPTION]:H1,[x0.TEXT_TO_SPEECH]:q1}},Gh=Q4;export{Q4 as elizaOSCloudPlugin,Gh as default};
|
|
1
|
+
var v6=Object.create;var{getPrototypeOf:u6,defineProperty:I2,getOwnPropertyNames:M1,getOwnPropertyDescriptor:g6}=Object,A1=Object.prototype.hasOwnProperty;var b6=(h,B,w)=>{w=h!=null?v6(u6(h)):{};let U=B||!h||!h.__esModule?I2(w,"default",{value:h,enumerable:!0}):w;for(let Q of M1(h))if(!A1.call(U,Q))I2(U,Q,{get:()=>h[Q],enumerable:!0});return U},j1=new WeakMap,R0=(h)=>{var B=j1.get(h),w;if(B)return B;if(B=I2({},"__esModule",{value:!0}),h&&typeof h==="object"||typeof h==="function")M1(h).map((U)=>!A1.call(B,U)&&I2(B,U,{get:()=>h[U],enumerable:!(w=g6(h,U))||w.enumerable}));return j1.set(h,B),B},p6=(h,B)=>()=>(B||h((B={exports:{}}).exports,B),B.exports);var O1=(h,B)=>{for(var w in B)I2(h,w,{get:B[w],enumerable:!0,configurable:!0,set:(U)=>B[w]=()=>U})};var D1=(h,B)=>()=>(h&&(B=h(h=0)),B);var d0={};O1(d0,{transcode:()=>S8,resolveObjectURL:()=>_8,kStringMaxLength:()=>b1,kMaxLength:()=>G2,isUtf8:()=>R8,isAscii:()=>k8,default:()=>y8,constants:()=>X8,btoa:()=>B8,atob:()=>w8,INSPECT_MAX_BYTES:()=>g1,File:()=>U8,Buffer:()=>P,Blob:()=>Q8});function a6(h){var B=h.length;if(B%4>0)throw Error("Invalid string. Length must be a multiple of 4");var w=h.indexOf("=");if(w===-1)w=B;var U=w===B?0:4-w%4;return[w,U]}function s6(h,B){return(h+B)*3/4-B}function t6(h){var B,w=a6(h),U=w[0],Q=w[1],X=new Uint8Array(s6(U,Q)),J=0,Y=Q>0?U-4:U,K;for(K=0;K<Y;K+=4)B=S0[h.charCodeAt(K)]<<18|S0[h.charCodeAt(K+1)]<<12|S0[h.charCodeAt(K+2)]<<6|S0[h.charCodeAt(K+3)],X[J++]=B>>16&255,X[J++]=B>>8&255,X[J++]=B&255;if(Q===2)B=S0[h.charCodeAt(K)]<<2|S0[h.charCodeAt(K+1)]>>4,X[J++]=B&255;if(Q===1)B=S0[h.charCodeAt(K)]<<10|S0[h.charCodeAt(K+1)]<<4|S0[h.charCodeAt(K+2)]>>2,X[J++]=B>>8&255,X[J++]=B&255;return X}function e6(h){return v0[h>>18&63]+v0[h>>12&63]+v0[h>>6&63]+v0[h&63]}function h8(h,B,w){var U,Q=[];for(var X=B;X<w;X+=3)U=(h[X]<<16&16711680)+(h[X+1]<<8&65280)+(h[X+2]&255),Q.push(e6(U));return Q.join("")}function S1(h){var B,w=h.length,U=w%3,Q=[],X=16383;for(var J=0,Y=w-U;J<Y;J+=X)Q.push(h8(h,J,J+X>Y?Y:J+X));if(U===1)B=h[w-1],Q.push(v0[B>>2]+v0[B<<4&63]+"==");else if(U===2)B=(h[w-2]<<8)+h[w-1],Q.push(v0[B>>10]+v0[B>>4&63]+v0[B<<2&63]+"=");return Q.join("")}function E2(h,B,w,U,Q){var X,J,Y=Q*8-U-1,K=(1<<Y)-1,H=K>>1,G=-7,C=w?Q-1:0,O=w?-1:1,L=h[B+C];C+=O,X=L&(1<<-G)-1,L>>=-G,G+=Y;for(;G>0;X=X*256+h[B+C],C+=O,G-=8);J=X&(1<<-G)-1,X>>=-G,G+=U;for(;G>0;J=J*256+h[B+C],C+=O,G-=8);if(X===0)X=1-H;else if(X===K)return J?NaN:(L?-1:1)*(1/0);else J=J+Math.pow(2,U),X=X-H;return(L?-1:1)*J*Math.pow(2,X-U)}function u1(h,B,w,U,Q,X){var J,Y,K,H=X*8-Q-1,G=(1<<H)-1,C=G>>1,O=Q===23?Math.pow(2,-24)-Math.pow(2,-77):0,L=U?0:X-1,o=U?1:-1,r=B<0||B===0&&1/B<0?1:0;if(B=Math.abs(B),isNaN(B)||B===1/0)Y=isNaN(B)?1:0,J=G;else{if(J=Math.floor(Math.log(B)/Math.LN2),B*(K=Math.pow(2,-J))<1)J--,K*=2;if(J+C>=1)B+=O/K;else B+=O*Math.pow(2,1-C);if(B*K>=2)J++,K/=2;if(J+C>=G)Y=0,J=G;else if(J+C>=1)Y=(B*K-1)*Math.pow(2,Q),J=J+C;else Y=B*Math.pow(2,C-1)*Math.pow(2,Q),J=0}for(;Q>=8;h[w+L]=Y&255,L+=o,Y/=256,Q-=8);J=J<<Q|Y,H+=Q;for(;H>0;h[w+L]=J&255,L+=o,J/=256,H-=8);h[w+L-o]|=r*128}function p0(h){if(h>G2)throw RangeError('The value "'+h+'" is invalid for option "size"');let B=new Uint8Array(h);return Object.setPrototypeOf(B,P.prototype),B}function o2(h,B,w){return class extends w{constructor(){super();Object.defineProperty(this,"message",{value:B.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${h}]`,this.stack,delete this.name}get code(){return h}set code(U){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:U,writable:!0})}toString(){return`${this.name} [${h}]: ${this.message}`}}}function P(h,B,w){if(typeof h==="number"){if(typeof B==="string")throw TypeError('The "string" argument must be of type string. Received type number');return r2(h)}return p1(h,B,w)}function p1(h,B,w){if(typeof h==="string")return q8(h,B);if(ArrayBuffer.isView(h))return K8(h);if(h==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h);if(u0(h,ArrayBuffer)||h&&u0(h.buffer,ArrayBuffer))return m2(h,B,w);if(typeof SharedArrayBuffer<"u"&&(u0(h,SharedArrayBuffer)||h&&u0(h.buffer,SharedArrayBuffer)))return m2(h,B,w);if(typeof h==="number")throw TypeError('The "value" argument must not be of type number. Received type number');let U=h.valueOf&&h.valueOf();if(U!=null&&U!==h)return P.from(U,B,w);let Q=Y8(h);if(Q)return Q;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof h[Symbol.toPrimitive]==="function")return P.from(h[Symbol.toPrimitive]("string"),B,w);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h)}function d1(h){if(typeof h!=="number")throw TypeError('"size" argument must be of type number');else if(h<0)throw RangeError('The value "'+h+'" is invalid for option "size"')}function F8(h,B,w){if(d1(h),h<=0)return p0(h);if(B!==void 0)return typeof w==="string"?p0(h).fill(B,w):p0(h).fill(B);return p0(h)}function r2(h){return d1(h),p0(h<0?0:a2(h)|0)}function q8(h,B){if(typeof B!=="string"||B==="")B="utf8";if(!P.isEncoding(B))throw TypeError("Unknown encoding: "+B);let w=i1(h,B)|0,U=p0(w),Q=U.write(h,B);if(Q!==w)U=U.slice(0,Q);return U}function l2(h){let B=h.length<0?0:a2(h.length)|0,w=p0(B);for(let U=0;U<B;U+=1)w[U]=h[U]&255;return w}function K8(h){if(u0(h,Uint8Array)){let B=new Uint8Array(h);return m2(B.buffer,B.byteOffset,B.byteLength)}return l2(h)}function m2(h,B,w){if(B<0||h.byteLength<B)throw RangeError('"offset" is outside of buffer bounds');if(h.byteLength<B+(w||0))throw RangeError('"length" is outside of buffer bounds');let U;if(B===void 0&&w===void 0)U=new Uint8Array(h);else if(w===void 0)U=new Uint8Array(h,B);else U=new Uint8Array(h,B,w);return Object.setPrototypeOf(U,P.prototype),U}function Y8(h){if(P.isBuffer(h)){let B=a2(h.length)|0,w=p0(B);if(w.length===0)return w;return h.copy(w,0,0,B),w}if(h.length!==void 0){if(typeof h.length!=="number"||Number.isNaN(h.length))return p0(0);return l2(h)}if(h.type==="Buffer"&&Array.isArray(h.data))return l2(h.data)}function a2(h){if(h>=G2)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+G2.toString(16)+" bytes");return h|0}function i1(h,B){if(P.isBuffer(h))return h.length;if(ArrayBuffer.isView(h)||u0(h,ArrayBuffer))return h.byteLength;if(typeof h!=="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof h);let w=h.length,U=arguments.length>2&&arguments[2]===!0;if(!U&&w===0)return 0;let Q=!1;for(;;)switch(B){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":return n2(h).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w*2;case"hex":return w>>>1;case"base64":return e1(h).length;default:if(Q)return U?-1:n2(h).length;B=(""+B).toLowerCase(),Q=!0}}function z8(h,B,w){let U=!1;if(B===void 0||B<0)B=0;if(B>this.length)return"";if(w===void 0||w>this.length)w=this.length;if(w<=0)return"";if(w>>>=0,B>>>=0,w<=B)return"";if(!h)h="utf8";while(!0)switch(h){case"hex":return M8(this,B,w);case"utf8":case"utf-8":return m1(this,B,w);case"ascii":return V8(this,B,w);case"latin1":case"binary":return j8(this,B,w);case"base64":return W8(this,B,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A8(this,B,w);default:if(U)throw TypeError("Unknown encoding: "+h);h=(h+"").toLowerCase(),U=!0}}function U2(h,B,w){let U=h[B];h[B]=h[w],h[w]=U}function l1(h,B,w,U,Q){if(h.length===0)return-1;if(typeof w==="string")U=w,w=0;else if(w>2147483647)w=2147483647;else if(w<-2147483648)w=-2147483648;if(w=+w,Number.isNaN(w))w=Q?0:h.length-1;if(w<0)w=h.length+w;if(w>=h.length)if(Q)return-1;else w=h.length-1;else if(w<0)if(Q)w=0;else return-1;if(typeof B==="string")B=P.from(B,U);if(P.isBuffer(B)){if(B.length===0)return-1;return f1(h,B,w,U,Q)}else if(typeof B==="number"){if(B=B&255,typeof Uint8Array.prototype.indexOf==="function")if(Q)return Uint8Array.prototype.indexOf.call(h,B,w);else return Uint8Array.prototype.lastIndexOf.call(h,B,w);return f1(h,[B],w,U,Q)}throw TypeError("val must be string, number or Buffer")}function f1(h,B,w,U,Q){let X=1,J=h.length,Y=B.length;if(U!==void 0){if(U=String(U).toLowerCase(),U==="ucs2"||U==="ucs-2"||U==="utf16le"||U==="utf-16le"){if(h.length<2||B.length<2)return-1;X=2,J/=2,Y/=2,w/=2}}function K(G,C){if(X===1)return G[C];else return G.readUInt16BE(C*X)}let H;if(Q){let G=-1;for(H=w;H<J;H++)if(K(h,H)===K(B,G===-1?0:H-G)){if(G===-1)G=H;if(H-G+1===Y)return G*X}else{if(G!==-1)H-=H-G;G=-1}}else{if(w+Y>J)w=J-Y;for(H=w;H>=0;H--){let G=!0;for(let C=0;C<Y;C++)if(K(h,H+C)!==K(B,C)){G=!1;break}if(G)return H}}return-1}function H8(h,B,w,U){w=Number(w)||0;let Q=h.length-w;if(!U)U=Q;else if(U=Number(U),U>Q)U=Q;let X=B.length;if(U>X/2)U=X/2;let J;for(J=0;J<U;++J){let Y=parseInt(B.substr(J*2,2),16);if(Number.isNaN(Y))return J;h[w+J]=Y}return J}function I8(h,B,w,U){return P2(n2(B,h.length-w),h,w,U)}function $8(h,B,w,U){return P2(x8(B),h,w,U)}function G8(h,B,w,U){return P2(e1(B),h,w,U)}function N8(h,B,w,U){return P2(E8(B,h.length-w),h,w,U)}function W8(h,B,w){if(B===0&&w===h.length)return S1(h);else return S1(h.slice(B,w))}function m1(h,B,w){w=Math.min(h.length,w);let U=[],Q=B;while(Q<w){let X=h[Q],J=null,Y=X>239?4:X>223?3:X>191?2:1;if(Q+Y<=w){let K,H,G,C;switch(Y){case 1:if(X<128)J=X;break;case 2:if(K=h[Q+1],(K&192)===128){if(C=(X&31)<<6|K&63,C>127)J=C}break;case 3:if(K=h[Q+1],H=h[Q+2],(K&192)===128&&(H&192)===128){if(C=(X&15)<<12|(K&63)<<6|H&63,C>2047&&(C<55296||C>57343))J=C}break;case 4:if(K=h[Q+1],H=h[Q+2],G=h[Q+3],(K&192)===128&&(H&192)===128&&(G&192)===128){if(C=(X&15)<<18|(K&63)<<12|(H&63)<<6|G&63,C>65535&&C<1114112)J=C}}}if(J===null)J=65533,Y=1;else if(J>65535)J-=65536,U.push(J>>>10&1023|55296),J=56320|J&1023;U.push(J),Q+=Y}return C8(U)}function C8(h){let B=h.length;if(B<=c1)return String.fromCharCode.apply(String,h);let w="",U=0;while(U<B)w+=String.fromCharCode.apply(String,h.slice(U,U+=c1));return w}function V8(h,B,w){let U="";w=Math.min(h.length,w);for(let Q=B;Q<w;++Q)U+=String.fromCharCode(h[Q]&127);return U}function j8(h,B,w){let U="";w=Math.min(h.length,w);for(let Q=B;Q<w;++Q)U+=String.fromCharCode(h[Q]);return U}function M8(h,B,w){let U=h.length;if(!B||B<0)B=0;if(!w||w<0||w>U)w=U;let Q="";for(let X=B;X<w;++X)Q+=P8[h[X]];return Q}function A8(h,B,w){let U=h.slice(B,w),Q="";for(let X=0;X<U.length-1;X+=2)Q+=String.fromCharCode(U[X]+U[X+1]*256);return Q}function j0(h,B,w){if(h%1!==0||h<0)throw RangeError("offset is not uint");if(h+B>w)throw RangeError("Trying to access beyond buffer length")}function x0(h,B,w,U,Q,X){if(!P.isBuffer(h))throw TypeError('"buffer" argument must be a Buffer instance');if(B>Q||B<X)throw RangeError('"value" argument is out of bounds');if(w+U>h.length)throw RangeError("Index out of range")}function n1(h,B,w,U,Q){t1(B,U,Q,h,w,7);let X=Number(B&BigInt(4294967295));h[w++]=X,X=X>>8,h[w++]=X,X=X>>8,h[w++]=X,X=X>>8,h[w++]=X;let J=Number(B>>BigInt(32)&BigInt(4294967295));return h[w++]=J,J=J>>8,h[w++]=J,J=J>>8,h[w++]=J,J=J>>8,h[w++]=J,w}function o1(h,B,w,U,Q){t1(B,U,Q,h,w,7);let X=Number(B&BigInt(4294967295));h[w+7]=X,X=X>>8,h[w+6]=X,X=X>>8,h[w+5]=X,X=X>>8,h[w+4]=X;let J=Number(B>>BigInt(32)&BigInt(4294967295));return h[w+3]=J,J=J>>8,h[w+2]=J,J=J>>8,h[w+1]=J,J=J>>8,h[w]=J,w+8}function r1(h,B,w,U,Q,X){if(w+U>h.length)throw RangeError("Index out of range");if(w<0)throw RangeError("Index out of range")}function a1(h,B,w,U,Q){if(B=+B,w=w>>>0,!Q)r1(h,B,w,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return u1(h,B,w,U,23,4),w+4}function s1(h,B,w,U,Q){if(B=+B,w=w>>>0,!Q)r1(h,B,w,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return u1(h,B,w,U,52,8),w+8}function v1(h){let B="",w=h.length,U=h[0]==="-"?1:0;for(;w>=U+4;w-=3)B=`_${h.slice(w-3,w)}${B}`;return`${h.slice(0,w)}${B}`}function O8(h,B,w){if(K2(B,"offset"),h[B]===void 0||h[B+w]===void 0)N2(B,h.length-(w+1))}function t1(h,B,w,U,Q,X){if(h>w||h<B){let J=typeof B==="bigint"?"n":"",Y;if(X>3)if(B===0||B===BigInt(0))Y=`>= 0${J} and < 2${J} ** ${(X+1)*8}${J}`;else Y=`>= -(2${J} ** ${(X+1)*8-1}${J}) and < 2 ** ${(X+1)*8-1}${J}`;else Y=`>= ${B}${J} and <= ${w}${J}`;throw new i2("value",Y,h)}O8(U,Q,X)}function K2(h,B){if(typeof h!=="number")throw new J8(B,"number",h)}function N2(h,B,w){if(Math.floor(h)!==h)throw K2(h,w),new i2(w||"offset","an integer",h);if(B<0)throw new Z8;throw new i2(w||"offset",`>= ${w?1:0} and <= ${B}`,h)}function L8(h){if(h=h.split("=")[0],h=h.trim().replace(D8,""),h.length<2)return"";while(h.length%4!==0)h=h+"=";return h}function n2(h,B){B=B||1/0;let w,U=h.length,Q=null,X=[];for(let J=0;J<U;++J){if(w=h.charCodeAt(J),w>55295&&w<57344){if(!Q){if(w>56319){if((B-=3)>-1)X.push(239,191,189);continue}else if(J+1===U){if((B-=3)>-1)X.push(239,191,189);continue}Q=w;continue}if(w<56320){if((B-=3)>-1)X.push(239,191,189);Q=w;continue}w=(Q-55296<<10|w-56320)+65536}else if(Q){if((B-=3)>-1)X.push(239,191,189)}if(Q=null,w<128){if((B-=1)<0)break;X.push(w)}else if(w<2048){if((B-=2)<0)break;X.push(w>>6|192,w&63|128)}else if(w<65536){if((B-=3)<0)break;X.push(w>>12|224,w>>6&63|128,w&63|128)}else if(w<1114112){if((B-=4)<0)break;X.push(w>>18|240,w>>12&63|128,w>>6&63|128,w&63|128)}else throw Error("Invalid code point")}return X}function x8(h){let B=[];for(let w=0;w<h.length;++w)B.push(h.charCodeAt(w)&255);return B}function E8(h,B){let w,U,Q,X=[];for(let J=0;J<h.length;++J){if((B-=2)<0)break;w=h.charCodeAt(J),U=w>>8,Q=w%256,X.push(Q),X.push(U)}return X}function e1(h){return t6(L8(h))}function P2(h,B,w,U){let Q;for(Q=0;Q<U;++Q){if(Q+w>=B.length||Q>=h.length)break;B[Q+w]=h[Q]}return Q}function u0(h,B){return h instanceof B||h!=null&&h.constructor!=null&&h.constructor.name!=null&&h.constructor.name===B.name}function r0(h){return typeof BigInt>"u"?T8:h}function T8(){throw Error("BigInt not supported")}function s2(h){return()=>{throw Error(h+" is not implemented for node:buffer browser polyfill")}}var v0,S0,d2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",w2,k1,y1,g1=50,G2=2147483647,b1=536870888,B8,w8,U8,Q8,X8,Z8,J8,i2,c1=4096,D8,P8,_8,R8,k8=(h)=>{for(let B of h)if(B.charCodeAt(0)>127)return!1;return!0},S8,y8;var i0=D1(()=>{v0=[],S0=[];for(w2=0,k1=d2.length;w2<k1;++w2)v0[w2]=d2[w2],S0[d2.charCodeAt(w2)]=w2;S0[45]=62;S0[95]=63;y1=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,B8=globalThis.btoa,w8=globalThis.atob,U8=globalThis.File,Q8=globalThis.Blob,X8={MAX_LENGTH:G2,MAX_STRING_LENGTH:b1};Z8=o2("ERR_BUFFER_OUT_OF_BOUNDS",function(h){if(h)return`${h} is outside of buffer bounds`;return"Attempt to access memory outside buffer bounds"},RangeError),J8=o2("ERR_INVALID_ARG_TYPE",function(h,B){return`The "${h}" argument must be of type number. Received type ${typeof B}`},TypeError),i2=o2("ERR_OUT_OF_RANGE",function(h,B,w){let U=`The value of "${h}" is out of range.`,Q=w;if(Number.isInteger(w)&&Math.abs(w)>4294967296)Q=v1(String(w));else if(typeof w==="bigint"){if(Q=String(w),w>BigInt(2)**BigInt(32)||w<-(BigInt(2)**BigInt(32)))Q=v1(Q);Q+="n"}return U+=` It must be ${B}. Received ${Q}`,U},RangeError);Object.defineProperty(P.prototype,"parent",{enumerable:!0,get:function(){if(!P.isBuffer(this))return;return this.buffer}});Object.defineProperty(P.prototype,"offset",{enumerable:!0,get:function(){if(!P.isBuffer(this))return;return this.byteOffset}});P.poolSize=8192;P.from=function(h,B,w){return p1(h,B,w)};Object.setPrototypeOf(P.prototype,Uint8Array.prototype);Object.setPrototypeOf(P,Uint8Array);P.alloc=function(h,B,w){return F8(h,B,w)};P.allocUnsafe=function(h){return r2(h)};P.allocUnsafeSlow=function(h){return r2(h)};P.isBuffer=function(h){return h!=null&&h._isBuffer===!0&&h!==P.prototype};P.compare=function(h,B){if(u0(h,Uint8Array))h=P.from(h,h.offset,h.byteLength);if(u0(B,Uint8Array))B=P.from(B,B.offset,B.byteLength);if(!P.isBuffer(h)||!P.isBuffer(B))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(h===B)return 0;let w=h.length,U=B.length;for(let Q=0,X=Math.min(w,U);Q<X;++Q)if(h[Q]!==B[Q]){w=h[Q],U=B[Q];break}if(w<U)return-1;if(U<w)return 1;return 0};P.isEncoding=function(h){switch(String(h).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};P.concat=function(h,B){if(!Array.isArray(h))throw TypeError('"list" argument must be an Array of Buffers');if(h.length===0)return P.alloc(0);let w;if(B===void 0){B=0;for(w=0;w<h.length;++w)B+=h[w].length}let U=P.allocUnsafe(B),Q=0;for(w=0;w<h.length;++w){let X=h[w];if(u0(X,Uint8Array))if(Q+X.length>U.length){if(!P.isBuffer(X))X=P.from(X);X.copy(U,Q)}else Uint8Array.prototype.set.call(U,X,Q);else if(!P.isBuffer(X))throw TypeError('"list" argument must be an Array of Buffers');else X.copy(U,Q);Q+=X.length}return U};P.byteLength=i1;P.prototype._isBuffer=!0;P.prototype.swap16=function(){let h=this.length;if(h%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let B=0;B<h;B+=2)U2(this,B,B+1);return this};P.prototype.swap32=function(){let h=this.length;if(h%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let B=0;B<h;B+=4)U2(this,B,B+3),U2(this,B+1,B+2);return this};P.prototype.swap64=function(){let h=this.length;if(h%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let B=0;B<h;B+=8)U2(this,B,B+7),U2(this,B+1,B+6),U2(this,B+2,B+5),U2(this,B+3,B+4);return this};P.prototype.toString=function(){let h=this.length;if(h===0)return"";if(arguments.length===0)return m1(this,0,h);return z8.apply(this,arguments)};P.prototype.toLocaleString=P.prototype.toString;P.prototype.equals=function(h){if(!P.isBuffer(h))throw TypeError("Argument must be a Buffer");if(this===h)return!0;return P.compare(this,h)===0};P.prototype.inspect=function(){let h="",B=g1;if(h=this.toString("hex",0,B).replace(/(.{2})/g,"$1 ").trim(),this.length>B)h+=" ... ";return"<Buffer "+h+">"};if(y1)P.prototype[y1]=P.prototype.inspect;P.prototype.compare=function(h,B,w,U,Q){if(u0(h,Uint8Array))h=P.from(h,h.offset,h.byteLength);if(!P.isBuffer(h))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof h);if(B===void 0)B=0;if(w===void 0)w=h?h.length:0;if(U===void 0)U=0;if(Q===void 0)Q=this.length;if(B<0||w>h.length||U<0||Q>this.length)throw RangeError("out of range index");if(U>=Q&&B>=w)return 0;if(U>=Q)return-1;if(B>=w)return 1;if(B>>>=0,w>>>=0,U>>>=0,Q>>>=0,this===h)return 0;let X=Q-U,J=w-B,Y=Math.min(X,J),K=this.slice(U,Q),H=h.slice(B,w);for(let G=0;G<Y;++G)if(K[G]!==H[G]){X=K[G],J=H[G];break}if(X<J)return-1;if(J<X)return 1;return 0};P.prototype.includes=function(h,B,w){return this.indexOf(h,B,w)!==-1};P.prototype.indexOf=function(h,B,w){return l1(this,h,B,w,!0)};P.prototype.lastIndexOf=function(h,B,w){return l1(this,h,B,w,!1)};P.prototype.write=function(h,B,w,U){if(B===void 0)U="utf8",w=this.length,B=0;else if(w===void 0&&typeof B==="string")U=B,w=this.length,B=0;else if(isFinite(B))if(B=B>>>0,isFinite(w)){if(w=w>>>0,U===void 0)U="utf8"}else U=w,w=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let Q=this.length-B;if(w===void 0||w>Q)w=Q;if(h.length>0&&(w<0||B<0)||B>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!U)U="utf8";let X=!1;for(;;)switch(U){case"hex":return H8(this,h,B,w);case"utf8":case"utf-8":return I8(this,h,B,w);case"ascii":case"latin1":case"binary":return $8(this,h,B,w);case"base64":return G8(this,h,B,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N8(this,h,B,w);default:if(X)throw TypeError("Unknown encoding: "+U);U=(""+U).toLowerCase(),X=!0}};P.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};P.prototype.slice=function(h,B){let w=this.length;if(h=~~h,B=B===void 0?w:~~B,h<0){if(h+=w,h<0)h=0}else if(h>w)h=w;if(B<0){if(B+=w,B<0)B=0}else if(B>w)B=w;if(B<h)B=h;let U=this.subarray(h,B);return Object.setPrototypeOf(U,P.prototype),U};P.prototype.readUintLE=P.prototype.readUIntLE=function(h,B,w){if(h=h>>>0,B=B>>>0,!w)j0(h,B,this.length);let U=this[h],Q=1,X=0;while(++X<B&&(Q*=256))U+=this[h+X]*Q;return U};P.prototype.readUintBE=P.prototype.readUIntBE=function(h,B,w){if(h=h>>>0,B=B>>>0,!w)j0(h,B,this.length);let U=this[h+--B],Q=1;while(B>0&&(Q*=256))U+=this[h+--B]*Q;return U};P.prototype.readUint8=P.prototype.readUInt8=function(h,B){if(h=h>>>0,!B)j0(h,1,this.length);return this[h]};P.prototype.readUint16LE=P.prototype.readUInt16LE=function(h,B){if(h=h>>>0,!B)j0(h,2,this.length);return this[h]|this[h+1]<<8};P.prototype.readUint16BE=P.prototype.readUInt16BE=function(h,B){if(h=h>>>0,!B)j0(h,2,this.length);return this[h]<<8|this[h+1]};P.prototype.readUint32LE=P.prototype.readUInt32LE=function(h,B){if(h=h>>>0,!B)j0(h,4,this.length);return(this[h]|this[h+1]<<8|this[h+2]<<16)+this[h+3]*16777216};P.prototype.readUint32BE=P.prototype.readUInt32BE=function(h,B){if(h=h>>>0,!B)j0(h,4,this.length);return this[h]*16777216+(this[h+1]<<16|this[h+2]<<8|this[h+3])};P.prototype.readBigUInt64LE=r0(function(h){h=h>>>0,K2(h,"offset");let B=this[h],w=this[h+7];if(B===void 0||w===void 0)N2(h,this.length-8);let U=B+this[++h]*256+this[++h]*65536+this[++h]*16777216,Q=this[++h]+this[++h]*256+this[++h]*65536+w*16777216;return BigInt(U)+(BigInt(Q)<<BigInt(32))});P.prototype.readBigUInt64BE=r0(function(h){h=h>>>0,K2(h,"offset");let B=this[h],w=this[h+7];if(B===void 0||w===void 0)N2(h,this.length-8);let U=B*16777216+this[++h]*65536+this[++h]*256+this[++h],Q=this[++h]*16777216+this[++h]*65536+this[++h]*256+w;return(BigInt(U)<<BigInt(32))+BigInt(Q)});P.prototype.readIntLE=function(h,B,w){if(h=h>>>0,B=B>>>0,!w)j0(h,B,this.length);let U=this[h],Q=1,X=0;while(++X<B&&(Q*=256))U+=this[h+X]*Q;if(Q*=128,U>=Q)U-=Math.pow(2,8*B);return U};P.prototype.readIntBE=function(h,B,w){if(h=h>>>0,B=B>>>0,!w)j0(h,B,this.length);let U=B,Q=1,X=this[h+--U];while(U>0&&(Q*=256))X+=this[h+--U]*Q;if(Q*=128,X>=Q)X-=Math.pow(2,8*B);return X};P.prototype.readInt8=function(h,B){if(h=h>>>0,!B)j0(h,1,this.length);if(!(this[h]&128))return this[h];return(255-this[h]+1)*-1};P.prototype.readInt16LE=function(h,B){if(h=h>>>0,!B)j0(h,2,this.length);let w=this[h]|this[h+1]<<8;return w&32768?w|4294901760:w};P.prototype.readInt16BE=function(h,B){if(h=h>>>0,!B)j0(h,2,this.length);let w=this[h+1]|this[h]<<8;return w&32768?w|4294901760:w};P.prototype.readInt32LE=function(h,B){if(h=h>>>0,!B)j0(h,4,this.length);return this[h]|this[h+1]<<8|this[h+2]<<16|this[h+3]<<24};P.prototype.readInt32BE=function(h,B){if(h=h>>>0,!B)j0(h,4,this.length);return this[h]<<24|this[h+1]<<16|this[h+2]<<8|this[h+3]};P.prototype.readBigInt64LE=r0(function(h){h=h>>>0,K2(h,"offset");let B=this[h],w=this[h+7];if(B===void 0||w===void 0)N2(h,this.length-8);let U=this[h+4]+this[h+5]*256+this[h+6]*65536+(w<<24);return(BigInt(U)<<BigInt(32))+BigInt(B+this[++h]*256+this[++h]*65536+this[++h]*16777216)});P.prototype.readBigInt64BE=r0(function(h){h=h>>>0,K2(h,"offset");let B=this[h],w=this[h+7];if(B===void 0||w===void 0)N2(h,this.length-8);let U=(B<<24)+this[++h]*65536+this[++h]*256+this[++h];return(BigInt(U)<<BigInt(32))+BigInt(this[++h]*16777216+this[++h]*65536+this[++h]*256+w)});P.prototype.readFloatLE=function(h,B){if(h=h>>>0,!B)j0(h,4,this.length);return E2(this,h,!0,23,4)};P.prototype.readFloatBE=function(h,B){if(h=h>>>0,!B)j0(h,4,this.length);return E2(this,h,!1,23,4)};P.prototype.readDoubleLE=function(h,B){if(h=h>>>0,!B)j0(h,8,this.length);return E2(this,h,!0,52,8)};P.prototype.readDoubleBE=function(h,B){if(h=h>>>0,!B)j0(h,8,this.length);return E2(this,h,!1,52,8)};P.prototype.writeUintLE=P.prototype.writeUIntLE=function(h,B,w,U){if(h=+h,B=B>>>0,w=w>>>0,!U){let J=Math.pow(2,8*w)-1;x0(this,h,B,w,J,0)}let Q=1,X=0;this[B]=h&255;while(++X<w&&(Q*=256))this[B+X]=h/Q&255;return B+w};P.prototype.writeUintBE=P.prototype.writeUIntBE=function(h,B,w,U){if(h=+h,B=B>>>0,w=w>>>0,!U){let J=Math.pow(2,8*w)-1;x0(this,h,B,w,J,0)}let Q=w-1,X=1;this[B+Q]=h&255;while(--Q>=0&&(X*=256))this[B+Q]=h/X&255;return B+w};P.prototype.writeUint8=P.prototype.writeUInt8=function(h,B,w){if(h=+h,B=B>>>0,!w)x0(this,h,B,1,255,0);return this[B]=h&255,B+1};P.prototype.writeUint16LE=P.prototype.writeUInt16LE=function(h,B,w){if(h=+h,B=B>>>0,!w)x0(this,h,B,2,65535,0);return this[B]=h&255,this[B+1]=h>>>8,B+2};P.prototype.writeUint16BE=P.prototype.writeUInt16BE=function(h,B,w){if(h=+h,B=B>>>0,!w)x0(this,h,B,2,65535,0);return this[B]=h>>>8,this[B+1]=h&255,B+2};P.prototype.writeUint32LE=P.prototype.writeUInt32LE=function(h,B,w){if(h=+h,B=B>>>0,!w)x0(this,h,B,4,4294967295,0);return this[B+3]=h>>>24,this[B+2]=h>>>16,this[B+1]=h>>>8,this[B]=h&255,B+4};P.prototype.writeUint32BE=P.prototype.writeUInt32BE=function(h,B,w){if(h=+h,B=B>>>0,!w)x0(this,h,B,4,4294967295,0);return this[B]=h>>>24,this[B+1]=h>>>16,this[B+2]=h>>>8,this[B+3]=h&255,B+4};P.prototype.writeBigUInt64LE=r0(function(h,B=0){return n1(this,h,B,BigInt(0),BigInt("0xffffffffffffffff"))});P.prototype.writeBigUInt64BE=r0(function(h,B=0){return o1(this,h,B,BigInt(0),BigInt("0xffffffffffffffff"))});P.prototype.writeIntLE=function(h,B,w,U){if(h=+h,B=B>>>0,!U){let Y=Math.pow(2,8*w-1);x0(this,h,B,w,Y-1,-Y)}let Q=0,X=1,J=0;this[B]=h&255;while(++Q<w&&(X*=256)){if(h<0&&J===0&&this[B+Q-1]!==0)J=1;this[B+Q]=(h/X>>0)-J&255}return B+w};P.prototype.writeIntBE=function(h,B,w,U){if(h=+h,B=B>>>0,!U){let Y=Math.pow(2,8*w-1);x0(this,h,B,w,Y-1,-Y)}let Q=w-1,X=1,J=0;this[B+Q]=h&255;while(--Q>=0&&(X*=256)){if(h<0&&J===0&&this[B+Q+1]!==0)J=1;this[B+Q]=(h/X>>0)-J&255}return B+w};P.prototype.writeInt8=function(h,B,w){if(h=+h,B=B>>>0,!w)x0(this,h,B,1,127,-128);if(h<0)h=255+h+1;return this[B]=h&255,B+1};P.prototype.writeInt16LE=function(h,B,w){if(h=+h,B=B>>>0,!w)x0(this,h,B,2,32767,-32768);return this[B]=h&255,this[B+1]=h>>>8,B+2};P.prototype.writeInt16BE=function(h,B,w){if(h=+h,B=B>>>0,!w)x0(this,h,B,2,32767,-32768);return this[B]=h>>>8,this[B+1]=h&255,B+2};P.prototype.writeInt32LE=function(h,B,w){if(h=+h,B=B>>>0,!w)x0(this,h,B,4,2147483647,-2147483648);return this[B]=h&255,this[B+1]=h>>>8,this[B+2]=h>>>16,this[B+3]=h>>>24,B+4};P.prototype.writeInt32BE=function(h,B,w){if(h=+h,B=B>>>0,!w)x0(this,h,B,4,2147483647,-2147483648);if(h<0)h=4294967295+h+1;return this[B]=h>>>24,this[B+1]=h>>>16,this[B+2]=h>>>8,this[B+3]=h&255,B+4};P.prototype.writeBigInt64LE=r0(function(h,B=0){return n1(this,h,B,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});P.prototype.writeBigInt64BE=r0(function(h,B=0){return o1(this,h,B,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});P.prototype.writeFloatLE=function(h,B,w){return a1(this,h,B,!0,w)};P.prototype.writeFloatBE=function(h,B,w){return a1(this,h,B,!1,w)};P.prototype.writeDoubleLE=function(h,B,w){return s1(this,h,B,!0,w)};P.prototype.writeDoubleBE=function(h,B,w){return s1(this,h,B,!1,w)};P.prototype.copy=function(h,B,w,U){if(!P.isBuffer(h))throw TypeError("argument should be a Buffer");if(!w)w=0;if(!U&&U!==0)U=this.length;if(B>=h.length)B=h.length;if(!B)B=0;if(U>0&&U<w)U=w;if(U===w)return 0;if(h.length===0||this.length===0)return 0;if(B<0)throw RangeError("targetStart out of bounds");if(w<0||w>=this.length)throw RangeError("Index out of range");if(U<0)throw RangeError("sourceEnd out of bounds");if(U>this.length)U=this.length;if(h.length-B<U-w)U=h.length-B+w;let Q=U-w;if(this===h&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(B,w,U);else Uint8Array.prototype.set.call(h,this.subarray(w,U),B);return Q};P.prototype.fill=function(h,B,w,U){if(typeof h==="string"){if(typeof B==="string")U=B,B=0,w=this.length;else if(typeof w==="string")U=w,w=this.length;if(U!==void 0&&typeof U!=="string")throw TypeError("encoding must be a string");if(typeof U==="string"&&!P.isEncoding(U))throw TypeError("Unknown encoding: "+U);if(h.length===1){let X=h.charCodeAt(0);if(U==="utf8"&&X<128||U==="latin1")h=X}}else if(typeof h==="number")h=h&255;else if(typeof h==="boolean")h=Number(h);if(B<0||this.length<B||this.length<w)throw RangeError("Out of range index");if(w<=B)return this;if(B=B>>>0,w=w===void 0?this.length:w>>>0,!h)h=0;let Q;if(typeof h==="number")for(Q=B;Q<w;++Q)this[Q]=h;else{let X=P.isBuffer(h)?h:P.from(h,U),J=X.length;if(J===0)throw TypeError('The value "'+h+'" is invalid for argument "value"');for(Q=0;Q<w-B;++Q)this[Q+B]=X[Q%J]}return this};D8=/[^+/0-9A-Za-z-_]/g;P8=function(){let h=Array(256);for(let B=0;B<16;++B){let w=B*16;for(let U=0;U<16;++U)h[w+U]="0123456789abcdef"[B]+"0123456789abcdef"[U]}return h}();_8=s2("resolveObjectURL"),R8=s2("isUtf8"),S8=s2("transcode"),y8=P});var C2={};O1(C2,{setMaxListeners:()=>K6,once:()=>F6,listenerCount:()=>Y6,init:()=>a0,getMaxListeners:()=>H6,getEventListeners:()=>q6,default:()=>i8,captureRejectionSymbol:()=>Q6,addAbortListener:()=>I6,EventEmitter:()=>a0});function X6(h,B){var{_events:w}=h;if(B[0]??=Error("Unhandled error."),!w)throw B[0];var U=w[U6];if(U)for(var Q of B6.call(U))Q.apply(h,B);var X=w.error;if(!X)throw B[0];for(var Q of B6.call(X))Q.apply(h,B);return!0}function v8(h,B,w,U){B.then(void 0,function(Q){queueMicrotask(()=>u8(h,Q,w,U))})}function u8(h,B,w,U){if(typeof h[h6]==="function")h[h6](B,w,...U);else try{h[Q2]=!1,h.emit("error",B)}finally{h[Q2]=!0}}function Z6(h,B,w){w.warned=!0;let U=Error(`Possible EventEmitter memory leak detected. ${w.length} ${String(B)} listeners added to [${h.constructor.name}]. Use emitter.setMaxListeners() to increase limit`);U.name="MaxListenersExceededWarning",U.emitter=h,U.type=B,U.count=w.length,console.warn(U)}function J6(h,B,...w){this.removeListener(h,B),B.apply(this,w)}function F6(h,B,w){var U=w?.signal;if(z6(U,"options.signal"),U?.aborted)throw new t2(void 0,{cause:U?.reason});let{resolve:Q,reject:X,promise:J}=$newPromiseCapability(Promise),Y=(G)=>{if(h.removeListener(B,K),U!=null)T2(U,"abort",H);X(G)},K=(...G)=>{if(typeof h.removeListener==="function")h.removeListener("error",Y);if(U!=null)T2(U,"abort",H);Q(G)};if(w6(h,B,K,{once:!0}),B!=="error"&&typeof h.once==="function")h.once("error",Y);function H(){T2(h,B,K),T2(h,"error",Y),X(new t2(void 0,{cause:U?.reason}))}if(U!=null)w6(U,"abort",H,{once:!0});return J}function q6(h,B){return h.listeners(B)}function K6(h,...B){h1(h,"setMaxListeners",0);var w;if(B&&(w=B.length))for(let U=0;U<w;U++)B[U].setMaxListeners(h);else X2=h}function Y6(h,B){return h.listenerCount(B)}function T2(h,B,w,U){if(typeof h.removeListener==="function")h.removeListener(B,w);else h.removeEventListener(B,w,U)}function w6(h,B,w,U){if(typeof h.on==="function")if(U.once)h.once(B,w);else h.on(B,w);else h.addEventListener(B,w,U)}function Y2(h,B,w){let U=TypeError(`The "${h}" argument must be of type ${B}. Received ${w}`);return U.code="ERR_INVALID_ARG_TYPE",U}function p8(h,B,w){let U=RangeError(`The "${h}" argument is out of range. It must be ${B}. Received ${w}`);return U.code="ERR_OUT_OF_RANGE",U}function z6(h,B){if(h!==void 0&&(h===null||typeof h!=="object"||!("aborted"in h)))throw Y2(B,"AbortSignal",h)}function h1(h,B,w,U){if(typeof h!=="number")throw Y2(B,"number",h);if(w!=null&&h<w||U!=null&&h>U||(w!=null||U!=null)&&Number.isNaN(h))throw p8(B,`${w!=null?`>= ${w}`:""}${w!=null&&U!=null?" && ":""}${U!=null?`<= ${U}`:""}`,h)}function W2(h){if(typeof h!=="function")throw TypeError("The listener must be a function")}function d8(h,B){if(typeof h!=="boolean")throw Y2(B,"boolean",h)}function H6(h){return h?._maxListeners??X2}function I6(h,B){if(h===void 0)throw Y2("signal","AbortSignal",h);if(z6(h,"signal"),typeof B!=="function")throw Y2("listener","function",B);let w;if(h.aborted)queueMicrotask(()=>B());else h.addEventListener("abort",B,{__proto__:null,once:!0}),w=()=>{h.removeEventListener("abort",B)};return{__proto__:null,[Symbol.dispose](){w?.()}}}var e2,Q2,U6,f8,c8,h6,Q6,B6,X2=10,a0=function(h){if(this._events===void 0||this._events===this.__proto__._events)this._events={__proto__:null},this._eventsCount=0;if(this._maxListeners??=void 0,this[Q2]=h?.captureRejections?Boolean(h?.captureRejections):G0[Q2])this.emit=b8},G0,g8=function(h,...B){if(h==="error")return X6(this,B);var{_events:w}=this;if(w===void 0)return!1;var U=w[h];if(U===void 0)return!1;let Q=U.length>1?U.slice():U;for(let X=0,{length:J}=Q;X<J;X++){let Y=Q[X];switch(B.length){case 0:Y.call(this);break;case 1:Y.call(this,B[0]);break;case 2:Y.call(this,B[0],B[1]);break;case 3:Y.call(this,B[0],B[1],B[2]);break;default:Y.apply(this,B);break}}return!0},b8=function(h,...B){if(h==="error")return X6(this,B);var{_events:w}=this;if(w===void 0)return!1;var U=w[h];if(U===void 0)return!1;let Q=U.length>1?U.slice():U;for(let X=0,{length:J}=Q;X<J;X++){let Y=Q[X],K;switch(B.length){case 0:K=Y.call(this);break;case 1:K=Y.call(this,B[0]);break;case 2:K=Y.call(this,B[0],B[1]);break;case 3:K=Y.call(this,B[0],B[1],B[2]);break;default:K=Y.apply(this,B);break}if(K!==void 0&&typeof K?.then==="function"&&K.then===Promise.prototype.then)v8(this,K,h,B)}return!0},t2,i8;var V2=D1(()=>{e2=Symbol.for,Q2=Symbol("kCapture"),U6=e2("events.errorMonitor"),f8=Symbol("events.maxEventTargetListeners"),c8=Symbol("events.maxEventTargetListenersWarned"),h6=e2("nodejs.rejection"),Q6=e2("nodejs.rejection"),B6=Array.prototype.slice,G0=a0.prototype={};G0._events=void 0;G0._eventsCount=0;G0._maxListeners=void 0;G0.setMaxListeners=function(h){return h1(h,"setMaxListeners",0),this._maxListeners=h,this};G0.constructor=a0;G0.getMaxListeners=function(){return this?._maxListeners??X2};G0.emit=g8;G0.addListener=function(h,B){W2(B);var w=this._events;if(!w)w=this._events={__proto__:null},this._eventsCount=0;else if(w.newListener)this.emit("newListener",h,B.listener??B);var U=w[h];if(!U)w[h]=[B],this._eventsCount++;else{U.push(B);var Q=this._maxListeners??X2;if(Q>0&&U.length>Q&&!U.warned)Z6(this,h,U)}return this};G0.on=G0.addListener;G0.prependListener=function(h,B){W2(B);var w=this._events;if(!w)w=this._events={__proto__:null},this._eventsCount=0;else if(w.newListener)this.emit("newListener",h,B.listener??B);var U=w[h];if(!U)w[h]=[B],this._eventsCount++;else{U.unshift(B);var Q=this._maxListeners??X2;if(Q>0&&U.length>Q&&!U.warned)Z6(this,h,U)}return this};G0.once=function(h,B){W2(B);let w=J6.bind(this,h,B);return w.listener=B,this.addListener(h,w),this};G0.prependOnceListener=function(h,B){W2(B);let w=J6.bind(this,h,B);return w.listener=B,this.prependListener(h,w),this};G0.removeListener=function(h,B){W2(B);var{_events:w}=this;if(!w)return this;var U=w[h];if(!U)return this;var Q=U.length;let X=-1;for(let J=Q-1;J>=0;J--)if(U[J]===B||U[J].listener===B){X=J;break}if(X<0)return this;if(X===0)U.shift();else U.splice(X,1);if(U.length===0)delete w[h],this._eventsCount--;return this};G0.off=G0.removeListener;G0.removeAllListeners=function(h){var{_events:B}=this;if(h&&B){if(B[h])delete B[h],this._eventsCount--}else this._events={__proto__:null};return this};G0.listeners=function(h){var{_events:B}=this;if(!B)return[];var w=B[h];if(!w)return[];return w.map((U)=>U.listener??U)};G0.rawListeners=function(h){var{_events:B}=this;if(!B)return[];var w=B[h];if(!w)return[];return w.slice()};G0.listenerCount=function(h){var{_events:B}=this;if(!B)return 0;return B[h]?.length??0};G0.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};G0[Q2]=!1;t2=class t2 extends Error{constructor(h="The operation was aborted",B=void 0){if(B!==void 0&&typeof B!=="object")throw Y2("options","Object",B);super(h,B);this.code="ABORT_ERR",this.name="AbortError"}};Object.defineProperties(a0,{captureRejections:{get(){return G0[Q2]},set(h){d8(h,"EventEmitter.captureRejections"),G0[Q2]=h},enumerable:!0},defaultMaxListeners:{enumerable:!0,get:()=>{return X2},set:(h)=>{h1(h,"defaultMaxListeners",0),X2=h}},kMaxEventTargetListeners:{value:f8,enumerable:!1,configurable:!1,writable:!1},kMaxEventTargetListenersWarned:{value:c8,enumerable:!1,configurable:!1,writable:!1}});Object.assign(a0,{once:F6,getEventListeners:q6,getMaxListeners:H6,setMaxListeners:K6,EventEmitter:a0,usingDomains:!1,captureRejectionSymbol:Q6,errorMonitor:U6,addAbortListener:I6,init:a0,listenerCount:Y6});i8=a0});var Q1=p6((O4,M6)=>{var I0=(h,B)=>()=>(B||h((B={exports:{}}).exports,B),B.exports),W0=I0((h,B)=>{class w extends Error{constructor(U){if(!Array.isArray(U))throw TypeError(`Expected input to be an Array, got ${typeof U}`);let Q="";for(let X=0;X<U.length;X++)Q+=` ${U[X].stack}
|
|
2
|
+
`;super(Q);this.name="AggregateError",this.errors=U}}B.exports={AggregateError:w,ArrayIsArray(U){return Array.isArray(U)},ArrayPrototypeIncludes(U,Q){return U.includes(Q)},ArrayPrototypeIndexOf(U,Q){return U.indexOf(Q)},ArrayPrototypeJoin(U,Q){return U.join(Q)},ArrayPrototypeMap(U,Q){return U.map(Q)},ArrayPrototypePop(U,Q){return U.pop(Q)},ArrayPrototypePush(U,Q){return U.push(Q)},ArrayPrototypeSlice(U,Q,X){return U.slice(Q,X)},Error,FunctionPrototypeCall(U,Q,...X){return U.call(Q,...X)},FunctionPrototypeSymbolHasInstance(U,Q){return Function.prototype[Symbol.hasInstance].call(U,Q)},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(U,Q){return Object.defineProperties(U,Q)},ObjectDefineProperty(U,Q,X){return Object.defineProperty(U,Q,X)},ObjectGetOwnPropertyDescriptor(U,Q){return Object.getOwnPropertyDescriptor(U,Q)},ObjectKeys(U){return Object.keys(U)},ObjectSetPrototypeOf(U,Q){return Object.setPrototypeOf(U,Q)},Promise,PromisePrototypeCatch(U,Q){return U.catch(Q)},PromisePrototypeThen(U,Q,X){return U.then(Q,X)},PromiseReject(U){return Promise.reject(U)},PromiseResolve(U){return Promise.resolve(U)},ReflectApply:Reflect.apply,RegExpPrototypeTest(U,Q){return U.test(Q)},SafeSet:Set,String,StringPrototypeSlice(U,Q,X){return U.slice(Q,X)},StringPrototypeToLowerCase(U){return U.toLowerCase()},StringPrototypeToUpperCase(U){return U.toUpperCase()},StringPrototypeTrim(U){return U.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(U,Q,X){return U.set(Q,X)},Boolean,Uint8Array}}),$6=I0((h,B)=>{B.exports={format(w,...U){return w.replace(/%([sdifj])/g,function(...[Q,X]){let J=U.shift();if(X==="f")return J.toFixed(6);else if(X==="j")return JSON.stringify(J);else if(X==="s"&&typeof J==="object")return`${J.constructor!==Object?J.constructor.name:""} {}`.trim();else return J.toString()})},inspect(w){switch(typeof w){case"string":if(w.includes("'")){if(!w.includes('"'))return`"${w}"`;else if(!w.includes("`")&&!w.includes("${"))return`\`${w}\``}return`'${w}'`;case"number":if(isNaN(w))return"NaN";else if(Object.is(w,-0))return String(w);return w;case"bigint":return`${String(w)}n`;case"boolean":case"undefined":return String(w);case"object":return"{}"}}}}),D0=I0((h,B)=>{var{format:w,inspect:U}=$6(),{AggregateError:Q}=W0(),X=globalThis.AggregateError||Q,J=Symbol("kIsNodeError"),Y=["string","function","number","object","Function","Object","boolean","bigint","symbol"],K=/^([A-Z][a-z0-9]*)+$/,H={};function G(x,q){if(!x)throw new H.ERR_INTERNAL_ASSERTION(q)}function C(x){let q="",W=x.length,M=x[0]==="-"?1:0;for(;W>=M+4;W-=3)q=`_${x.slice(W-3,W)}${q}`;return`${x.slice(0,W)}${q}`}function O(x,q,W){if(typeof q==="function")return G(q.length<=W.length,`Code: ${x}; The provided arguments length (${W.length}) does not match the required ones (${q.length}).`),q(...W);let M=(q.match(/%[dfijoOs]/g)||[]).length;if(G(M===W.length,`Code: ${x}; The provided arguments length (${W.length}) does not match the required ones (${M}).`),W.length===0)return q;return w(q,...W)}function L(x,q,W){if(!W)W=Error;class M extends W{constructor(..._){super(O(x,q,_))}toString(){return`${this.name} [${x}]: ${this.message}`}}Object.defineProperties(M.prototype,{name:{value:W.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${x}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),M.prototype.code=x,M.prototype[J]=!0,H[x]=M}function o(x){let q="__node_internal_"+x.name;return Object.defineProperty(x,"name",{value:q}),x}function r(x,q){if(x&&q&&x!==q){if(Array.isArray(q.errors))return q.errors.push(x),q;let W=new X([q,x],q.message);return W.code=q.code,W}return x||q}class D extends Error{constructor(x="The operation was aborted",q=void 0){if(q!==void 0&&typeof q!=="object")throw new H.ERR_INVALID_ARG_TYPE("options","Object",q);super(x,q);this.code="ABORT_ERR",this.name="AbortError"}}L("ERR_ASSERTION","%s",Error),L("ERR_INVALID_ARG_TYPE",(x,q,W)=>{if(G(typeof x==="string","'name' must be a string"),!Array.isArray(q))q=[q];let M="The ";if(x.endsWith(" argument"))M+=`${x} `;else M+=`"${x}" ${x.includes(".")?"property":"argument"} `;M+="must be ";let _=[],d=[],Z0=[];for(let a of q)if(G(typeof a==="string","All expected entries have to be of type string"),Y.includes(a))_.push(a.toLowerCase());else if(K.test(a))d.push(a);else G(a!=="object",'The value "object" should be written as "Object"'),Z0.push(a);if(d.length>0){let a=_.indexOf("object");if(a!==-1)_.splice(_,a,1),d.push("Object")}if(_.length>0){switch(_.length){case 1:M+=`of type ${_[0]}`;break;case 2:M+=`one of type ${_[0]} or ${_[1]}`;break;default:{let a=_.pop();M+=`one of type ${_.join(", ")}, or ${a}`}}if(d.length>0||Z0.length>0)M+=" or "}if(d.length>0){switch(d.length){case 1:M+=`an instance of ${d[0]}`;break;case 2:M+=`an instance of ${d[0]} or ${d[1]}`;break;default:{let a=d.pop();M+=`an instance of ${d.join(", ")}, or ${a}`}}if(Z0.length>0)M+=" or "}switch(Z0.length){case 0:break;case 1:if(Z0[0].toLowerCase()!==Z0[0])M+="an ";M+=`${Z0[0]}`;break;case 2:M+=`one of ${Z0[0]} or ${Z0[1]}`;break;default:{let a=Z0.pop();M+=`one of ${Z0.join(", ")}, or ${a}`}}if(W==null)M+=`. Received ${W}`;else if(typeof W==="function"&&W.name)M+=`. Received function ${W.name}`;else if(typeof W==="object"){var q0;if((q0=W.constructor)!==null&&q0!==void 0&&q0.name)M+=`. Received an instance of ${W.constructor.name}`;else{let a=U(W,{depth:-1});M+=`. Received ${a}`}}else{let a=U(W,{colors:!1});if(a.length>25)a=`${a.slice(0,25)}...`;M+=`. Received type ${typeof W} (${a})`}return M},TypeError),L("ERR_INVALID_ARG_VALUE",(x,q,W="is invalid")=>{let M=U(q);if(M.length>128)M=M.slice(0,128)+"...";return`The ${x.includes(".")?"property":"argument"} '${x}' ${W}. Received ${M}`},TypeError),L("ERR_INVALID_RETURN_VALUE",(x,q,W)=>{var M;let _=W!==null&&W!==void 0&&(M=W.constructor)!==null&&M!==void 0&&M.name?`instance of ${W.constructor.name}`:`type ${typeof W}`;return`Expected ${x} to be returned from the "${q}" function but got ${_}.`},TypeError),L("ERR_MISSING_ARGS",(...x)=>{G(x.length>0,"At least one arg needs to be specified");let q,W=x.length;switch(x=(Array.isArray(x)?x:[x]).map((M)=>`"${M}"`).join(" or "),W){case 1:q+=`The ${x[0]} argument`;break;case 2:q+=`The ${x[0]} and ${x[1]} arguments`;break;default:{let M=x.pop();q+=`The ${x.join(", ")}, and ${M} arguments`}break}return`${q} must be specified`},TypeError),L("ERR_OUT_OF_RANGE",(x,q,W)=>{G(q,'Missing "range" argument');let M;if(Number.isInteger(W)&&Math.abs(W)>4294967296)M=C(String(W));else if(typeof W==="bigint"){M=String(W);let _=BigInt(2)**BigInt(32);if(W>_||W<-_)M=C(M);M+="n"}else M=U(W);return`The value of "${x}" is out of range. It must be ${q}. Received ${M}`},RangeError),L("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),L("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),L("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),L("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),L("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),L("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),L("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),L("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),L("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),L("ERR_STREAM_WRITE_AFTER_END","write after end",Error),L("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),B.exports={AbortError:D,aggregateTwoErrors:o(r),hideStackFrames:o,codes:H}}),l8=I0((h,B)=>{Object.defineProperty(h,"__esModule",{value:!0});var w=new WeakMap,U=new WeakMap;function Q(k){let u=w.get(k);return console.assert(u!=null,"'this' is expected an Event object, but got",k),u}function X(k){if(k.passiveListener!=null){if(typeof console<"u"&&typeof console.error==="function")console.error("Unable to preventDefault inside passive event listener invocation.",k.passiveListener);return}if(!k.event.cancelable)return;if(k.canceled=!0,typeof k.event.preventDefault==="function")k.event.preventDefault()}function J(k,u){w.set(this,{eventTarget:k,event:u,eventPhase:2,currentTarget:k,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:u.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let N=Object.keys(u);for(let A=0;A<N.length;++A){let E=N[A];if(!(E in this))Object.defineProperty(this,E,Y(E))}}if(J.prototype={get type(){return Q(this).event.type},get target(){return Q(this).eventTarget},get currentTarget(){return Q(this).currentTarget},composedPath(){let k=Q(this).currentTarget;if(k==null)return[];return[k]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return Q(this).eventPhase},stopPropagation(){let k=Q(this);if(k.stopped=!0,typeof k.event.stopPropagation==="function")k.event.stopPropagation()},stopImmediatePropagation(){let k=Q(this);if(k.stopped=!0,k.immediateStopped=!0,typeof k.event.stopImmediatePropagation==="function")k.event.stopImmediatePropagation()},get bubbles(){return Boolean(Q(this).event.bubbles)},get cancelable(){return Boolean(Q(this).event.cancelable)},preventDefault(){X(Q(this))},get defaultPrevented(){return Q(this).canceled},get composed(){return Boolean(Q(this).event.composed)},get timeStamp(){return Q(this).timeStamp},get srcElement(){return Q(this).eventTarget},get cancelBubble(){return Q(this).stopped},set cancelBubble(k){if(!k)return;let u=Q(this);if(u.stopped=!0,typeof u.event.cancelBubble==="boolean")u.event.cancelBubble=!0},get returnValue(){return!Q(this).canceled},set returnValue(k){if(!k)X(Q(this))},initEvent(){}},Object.defineProperty(J.prototype,"constructor",{value:J,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.Event<"u")Object.setPrototypeOf(J.prototype,window.Event.prototype),U.set(window.Event.prototype,J);function Y(k){return{get(){return Q(this).event[k]},set(u){Q(this).event[k]=u},configurable:!0,enumerable:!0}}function K(k){return{value(){let u=Q(this).event;return u[k].apply(u,arguments)},configurable:!0,enumerable:!0}}function H(k,u){let N=Object.keys(u);if(N.length===0)return k;function A(E,j){k.call(this,E,j)}A.prototype=Object.create(k.prototype,{constructor:{value:A,configurable:!0,writable:!0}});for(let E=0;E<N.length;++E){let j=N[E];if(!(j in k.prototype)){let m=typeof Object.getOwnPropertyDescriptor(u,j).value==="function";Object.defineProperty(A.prototype,j,m?K(j):Y(j))}}return A}function G(k){if(k==null||k===Object.prototype)return J;let u=U.get(k);if(u==null)u=H(G(Object.getPrototypeOf(k)),k),U.set(k,u);return u}function C(k,u){return new(G(Object.getPrototypeOf(u)))(k,u)}function O(k){return Q(k).immediateStopped}function L(k,u){Q(k).eventPhase=u}function o(k,u){Q(k).currentTarget=u}function r(k,u){Q(k).passiveListener=u}var D=new WeakMap,x=1,q=2,W=3;function M(k){return k!==null&&typeof k==="object"}function _(k){let u=D.get(k);if(u==null)throw TypeError("'this' is expected an EventTarget object, but got another value.");return u}function d(k){return{get(){let u=_(this).get(k);while(u!=null){if(u.listenerType===W)return u.listener;u=u.next}return null},set(u){if(typeof u!=="function"&&!M(u))u=null;let N=_(this),A=null,E=N.get(k);while(E!=null){if(E.listenerType===W)if(A!==null)A.next=E.next;else if(E.next!==null)N.set(k,E.next);else N.delete(k);else A=E;E=E.next}if(u!==null){let j={listener:u,listenerType:W,passive:!1,once:!1,next:null};if(A===null)N.set(k,j);else A.next=j}},configurable:!0,enumerable:!0}}function Z0(k,u){Object.defineProperty(k,`on${u}`,d(u))}function q0(k){function u(){a.call(this)}u.prototype=Object.create(a.prototype,{constructor:{value:u,configurable:!0,writable:!0}});for(let N=0;N<k.length;++N)Z0(u.prototype,k[N]);return u}function a(){if(this instanceof a){D.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return q0(arguments[0]);if(arguments.length>0){let k=Array(arguments.length);for(let u=0;u<arguments.length;++u)k[u]=arguments[u];return q0(k)}throw TypeError("Cannot call a class as a function")}if(a.prototype={addEventListener(k,u,N){if(u==null)return;if(typeof u!=="function"&&!M(u))throw TypeError("'listener' should be a function or an object.");let A=_(this),E=M(N),j=(E?Boolean(N.capture):Boolean(N))?x:q,m={listener:u,listenerType:j,passive:E&&Boolean(N.passive),once:E&&Boolean(N.once),next:null},h0=A.get(k);if(h0===void 0){A.set(k,m);return}let U0=null;while(h0!=null){if(h0.listener===u&&h0.listenerType===j)return;U0=h0,h0=h0.next}U0.next=m},removeEventListener(k,u,N){if(u==null)return;let A=_(this),E=(M(N)?Boolean(N.capture):Boolean(N))?x:q,j=null,m=A.get(k);while(m!=null){if(m.listener===u&&m.listenerType===E){if(j!==null)j.next=m.next;else if(m.next!==null)A.set(k,m.next);else A.delete(k);return}j=m,m=m.next}},dispatchEvent(k){if(k==null||typeof k.type!=="string")throw TypeError('"event.type" should be a string.');let u=_(this),N=k.type,A=u.get(N);if(A==null)return!0;let E=C(this,k),j=null;while(A!=null){if(A.once)if(j!==null)j.next=A.next;else if(A.next!==null)u.set(N,A.next);else u.delete(N);else j=A;if(r(E,A.passive?A.listener:null),typeof A.listener==="function")try{A.listener.call(this,E)}catch(m){if(typeof console<"u"&&typeof console.error==="function")console.error(m)}else if(A.listenerType!==W&&typeof A.listener.handleEvent==="function")A.listener.handleEvent(E);if(O(E))break;A=A.next}return r(E,null),L(E,0),o(E,null),!E.defaultPrevented}},Object.defineProperty(a.prototype,"constructor",{value:a,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.EventTarget<"u")Object.setPrototypeOf(a.prototype,window.EventTarget.prototype);h.defineEventAttribute=Z0,h.EventTarget=a,h.default=a,B.exports=a,B.exports.EventTarget=B.exports.default=a,B.exports.defineEventAttribute=Z0}),j2=I0((h,B)=>{Object.defineProperty(h,"__esModule",{value:!0});var w=l8();class U extends w.EventTarget{constructor(){super();throw TypeError("AbortSignal cannot be constructed directly")}get aborted(){let G=J.get(this);if(typeof G!=="boolean")throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return G}}w.defineEventAttribute(U.prototype,"abort");function Q(){let G=Object.create(U.prototype);return w.EventTarget.call(G),J.set(G,!1),G}function X(G){if(J.get(G)!==!1)return;J.set(G,!0),G.dispatchEvent({type:"abort"})}var J=new WeakMap;if(Object.defineProperties(U.prototype,{aborted:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(U.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class Y{constructor(){K.set(this,Q())}get signal(){return H(this)}abort(){X(H(this))}}var K=new WeakMap;function H(G){let C=K.get(G);if(C==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${G===null?"null":typeof G}`);return C}if(Object.defineProperties(Y.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(Y.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});h.AbortController=Y,h.AbortSignal=U,h.default=Y,B.exports=Y,B.exports.AbortController=B.exports.default=Y,B.exports.AbortSignal=U}),E0=I0((h,B)=>{var w=(i0(),R0(d0)),{format:U,inspect:Q}=$6(),{codes:{ERR_INVALID_ARG_TYPE:X}}=D0(),{kResistStopPropagation:J,AggregateError:Y,SymbolDispose:K}=W0(),H=globalThis.AbortSignal||j2().AbortSignal,G=globalThis.AbortController||j2().AbortController,C=Object.getPrototypeOf(async function(){}).constructor,O=globalThis.Blob||w.Blob,L=typeof O<"u"?function(D){return D instanceof O}:function(D){return!1},o=(D,x)=>{if(D!==void 0&&(D===null||typeof D!=="object"||!("aborted"in D)))throw new X(x,"AbortSignal",D)},r=(D,x)=>{if(typeof D!=="function")throw new X(x,"Function",D)};B.exports={AggregateError:Y,kEmptyObject:Object.freeze({}),once(D){let x=!1;return function(...q){if(x)return;x=!0,D.apply(this,q)}},createDeferredPromise:function(){let D,x;return{promise:new Promise((q,W)=>{D=q,x=W}),resolve:D,reject:x}},promisify(D){return new Promise((x,q)=>{D((W,...M)=>{if(W)return q(W);return x(...M)})})},debuglog(){return function(){}},format:U,inspect:Q,types:{isAsyncFunction(D){return D instanceof C},isArrayBufferView(D){return ArrayBuffer.isView(D)}},isBlob:L,deprecate(D,x){return D},addAbortListener:(V2(),R0(C2)).addAbortListener||function(D,x){if(D===void 0)throw new X("signal","AbortSignal",D);o(D,"signal"),r(x,"listener");let q;if(D.aborted)queueMicrotask(()=>x());else D.addEventListener("abort",x,{__proto__:null,once:!0,[J]:!0}),q=()=>{D.removeEventListener("abort",x)};return{__proto__:null,[K](){var W;(W=q)===null||W===void 0||W()}}},AbortSignalAny:H.any||function(D){if(D.length===1)return D[0];let x=new G,q=()=>x.abort();return D.forEach((W)=>{o(W,"signals"),W.addEventListener("abort",q,{once:!0})}),x.signal.addEventListener("abort",()=>{D.forEach((W)=>W.removeEventListener("abort",q))},{once:!0}),x.signal}},B.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),M2=I0((h,B)=>{var{ArrayIsArray:w,ArrayPrototypeIncludes:U,ArrayPrototypeJoin:Q,ArrayPrototypeMap:X,NumberIsInteger:J,NumberIsNaN:Y,NumberMAX_SAFE_INTEGER:K,NumberMIN_SAFE_INTEGER:H,NumberParseInt:G,ObjectPrototypeHasOwnProperty:C,RegExpPrototypeExec:O,String:L,StringPrototypeToUpperCase:o,StringPrototypeTrim:r}=W0(),{hideStackFrames:D,codes:{ERR_SOCKET_BAD_PORT:x,ERR_INVALID_ARG_TYPE:q,ERR_INVALID_ARG_VALUE:W,ERR_OUT_OF_RANGE:M,ERR_UNKNOWN_SIGNAL:_}}=D0(),{normalizeEncoding:d}=E0(),{isAsyncFunction:Z0,isArrayBufferView:q0}=E0().types,a={};function k($){return $===($|0)}function u($){return $===$>>>0}var N=/^[0-7]+$/,A="must be a 32-bit unsigned integer or an octal string";function E($,v,s){if(typeof $>"u")$=s;if(typeof $==="string"){if(O(N,$)===null)throw new W(v,$,A);$=G($,8)}return h0($,v),$}var j=D(($,v,s=H,g=K)=>{if(typeof $!=="number")throw new q(v,"number",$);if(!J($))throw new M(v,"an integer",$);if($<s||$>g)throw new M(v,`>= ${s} && <= ${g}`,$)}),m=D(($,v,s=-2147483648,g=2147483647)=>{if(typeof $!=="number")throw new q(v,"number",$);if(!J($))throw new M(v,"an integer",$);if($<s||$>g)throw new M(v,`>= ${s} && <= ${g}`,$)}),h0=D(($,v,s=!1)=>{if(typeof $!=="number")throw new q(v,"number",$);if(!J($))throw new M(v,"an integer",$);let g=s?1:0,X0=4294967295;if($<g||$>X0)throw new M(v,`>= ${g} && <= ${X0}`,$)});function U0($,v){if(typeof $!=="string")throw new q(v,"string",$)}function z0($,v,s=void 0,g){if(typeof $!=="number")throw new q(v,"number",$);if(s!=null&&$<s||g!=null&&$>g||(s!=null||g!=null)&&Y($))throw new M(v,`${s!=null?`>= ${s}`:""}${s!=null&&g!=null?" && ":""}${g!=null?`<= ${g}`:""}`,$)}var f=D(($,v,s)=>{if(!U(s,$)){let g="must be one of: "+Q(X(s,(X0)=>typeof X0==="string"?`'${X0}'`:L(X0)),", ");throw new W(v,$,g)}});function Q0($,v){if(typeof $!=="boolean")throw new q(v,"boolean",$)}function z($,v,s){return $==null||!C($,v)?s:$[v]}var c=D(($,v,s=null)=>{let g=z(s,"allowArray",!1),X0=z(s,"allowFunction",!1);if(!z(s,"nullable",!1)&&$===null||!g&&w($)||typeof $!=="object"&&(!X0||typeof $!=="function"))throw new q(v,"Object",$)}),e=D(($,v)=>{if($!=null&&typeof $!=="object"&&typeof $!=="function")throw new q(v,"a dictionary",$)}),R=D(($,v,s=0)=>{if(!w($))throw new q(v,"Array",$);if($.length<s){let g=`must be longer than ${s}`;throw new W(v,$,g)}});function w0($,v){R($,v);for(let s=0;s<$.length;s++)U0($[s],`${v}[${s}]`)}function J0($,v){R($,v);for(let s=0;s<$.length;s++)Q0($[s],`${v}[${s}]`)}function H0($,v){R($,v);for(let s=0;s<$.length;s++){let g=$[s],X0=`${v}[${s}]`;if(g==null)throw new q(X0,"AbortSignal",g);F0(g,X0)}}function Y0($,v="signal"){if(U0($,v),a[$]===void 0){if(a[o($)]!==void 0)throw new _($+" (signals must use all capital letters)");throw new _($)}}var S=D(($,v="buffer")=>{if(!q0($))throw new q(v,["Buffer","TypedArray","DataView"],$)});function y($,v){let s=d(v),g=$.length;if(s==="hex"&&g%2!==0)throw new W("encoding",v,`is invalid for data of length ${g}`)}function i($,v="Port",s=!0){if(typeof $!=="number"&&typeof $!=="string"||typeof $==="string"&&r($).length===0||+$!==+$>>>0||$>65535||$===0&&!s)throw new x(v,$,s);return $|0}var F0=D(($,v)=>{if($!==void 0&&($===null||typeof $!=="object"||!("aborted"in $)))throw new q(v,"AbortSignal",$)}),K0=D(($,v)=>{if(typeof $!=="function")throw new q(v,"Function",$)}),I=D(($,v)=>{if(typeof $!=="function"||Z0($))throw new q(v,"Function",$)}),V=D(($,v)=>{if($!==void 0)throw new q(v,"undefined",$)});function T($,v,s){if(!U(s,$))throw new q(v,`('${Q(s,"|")}')`,$)}var p=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function n($,v){if(typeof $>"u"||!O(p,$))throw new W(v,$,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function l($){if(typeof $==="string")return n($,"hints"),$;else if(w($)){let v=$.length,s="";if(v===0)return s;for(let g=0;g<v;g++){let X0=$[g];if(n(X0,"hints"),s+=X0,g!==v-1)s+=", "}return s}throw new W("hints",$,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}B.exports={isInt32:k,isUint32:u,parseFileMode:E,validateArray:R,validateStringArray:w0,validateBooleanArray:J0,validateAbortSignalArray:H0,validateBoolean:Q0,validateBuffer:S,validateDictionary:e,validateEncoding:y,validateFunction:K0,validateInt32:m,validateInteger:j,validateNumber:z0,validateObject:c,validateOneOf:f,validatePlainFunction:I,validatePort:i,validateSignalName:Y0,validateString:U0,validateUint32:h0,validateUndefined:V,validateUnion:T,validateAbortSignal:F0,validateLinkHeaderValue:l}}),Z2=I0((h,B)=>{B.exports=globalThis.process}),m0=I0((h,B)=>{var{SymbolAsyncIterator:w,SymbolIterator:U,SymbolFor:Q}=W0(),X=Q("nodejs.stream.destroyed"),J=Q("nodejs.stream.errored"),Y=Q("nodejs.stream.readable"),K=Q("nodejs.stream.writable"),H=Q("nodejs.stream.disturbed"),G=Q("nodejs.webstream.isClosedPromise"),C=Q("nodejs.webstream.controllerErrorFunction");function O(z,c=!1){var e;return!!(z&&typeof z.pipe==="function"&&typeof z.on==="function"&&(!c||typeof z.pause==="function"&&typeof z.resume==="function")&&(!z._writableState||((e=z._readableState)===null||e===void 0?void 0:e.readable)!==!1)&&(!z._writableState||z._readableState))}function L(z){var c;return!!(z&&typeof z.write==="function"&&typeof z.on==="function"&&(!z._readableState||((c=z._writableState)===null||c===void 0?void 0:c.writable)!==!1))}function o(z){return!!(z&&typeof z.pipe==="function"&&z._readableState&&typeof z.on==="function"&&typeof z.write==="function")}function r(z){return z&&(z._readableState||z._writableState||typeof z.write==="function"&&typeof z.on==="function"||typeof z.pipe==="function"&&typeof z.on==="function")}function D(z){return!!(z&&!r(z)&&typeof z.pipeThrough==="function"&&typeof z.getReader==="function"&&typeof z.cancel==="function")}function x(z){return!!(z&&!r(z)&&typeof z.getWriter==="function"&&typeof z.abort==="function")}function q(z){return!!(z&&!r(z)&&typeof z.readable==="object"&&typeof z.writable==="object")}function W(z){return D(z)||x(z)||q(z)}function M(z,c){if(z==null)return!1;if(c===!0)return typeof z[w]==="function";if(c===!1)return typeof z[U]==="function";return typeof z[w]==="function"||typeof z[U]==="function"}function _(z){if(!r(z))return null;let{_writableState:c,_readableState:e}=z,R=c||e;return!!(z.destroyed||z[X]||R!==null&&R!==void 0&&R.destroyed)}function d(z){if(!L(z))return null;if(z.writableEnded===!0)return!0;let c=z._writableState;if(c!==null&&c!==void 0&&c.errored)return!1;if(typeof(c===null||c===void 0?void 0:c.ended)!=="boolean")return null;return c.ended}function Z0(z,c){if(!L(z))return null;if(z.writableFinished===!0)return!0;let e=z._writableState;if(e!==null&&e!==void 0&&e.errored)return!1;if(typeof(e===null||e===void 0?void 0:e.finished)!=="boolean")return null;return!!(e.finished||c===!1&&e.ended===!0&&e.length===0)}function q0(z){if(!O(z))return null;if(z.readableEnded===!0)return!0;let c=z._readableState;if(!c||c.errored)return!1;if(typeof(c===null||c===void 0?void 0:c.ended)!=="boolean")return null;return c.ended}function a(z,c){if(!O(z))return null;let e=z._readableState;if(e!==null&&e!==void 0&&e.errored)return!1;if(typeof(e===null||e===void 0?void 0:e.endEmitted)!=="boolean")return null;return!!(e.endEmitted||c===!1&&e.ended===!0&&e.length===0)}function k(z){if(z&&z[Y]!=null)return z[Y];if(typeof(z===null||z===void 0?void 0:z.readable)!=="boolean")return null;if(_(z))return!1;return O(z)&&z.readable&&!a(z)}function u(z){if(z&&z[K]!=null)return z[K];if(typeof(z===null||z===void 0?void 0:z.writable)!=="boolean")return null;if(_(z))return!1;return L(z)&&z.writable&&!d(z)}function N(z,c){if(!r(z))return null;if(_(z))return!0;if((c===null||c===void 0?void 0:c.readable)!==!1&&k(z))return!1;if((c===null||c===void 0?void 0:c.writable)!==!1&&u(z))return!1;return!0}function A(z){var c,e;if(!r(z))return null;if(z.writableErrored)return z.writableErrored;return(c=(e=z._writableState)===null||e===void 0?void 0:e.errored)!==null&&c!==void 0?c:null}function E(z){var c,e;if(!r(z))return null;if(z.readableErrored)return z.readableErrored;return(c=(e=z._readableState)===null||e===void 0?void 0:e.errored)!==null&&c!==void 0?c:null}function j(z){if(!r(z))return null;if(typeof z.closed==="boolean")return z.closed;let{_writableState:c,_readableState:e}=z;if(typeof(c===null||c===void 0?void 0:c.closed)==="boolean"||typeof(e===null||e===void 0?void 0:e.closed)==="boolean")return(c===null||c===void 0?void 0:c.closed)||(e===null||e===void 0?void 0:e.closed);if(typeof z._closed==="boolean"&&m(z))return z._closed;return null}function m(z){return typeof z._closed==="boolean"&&typeof z._defaultKeepAlive==="boolean"&&typeof z._removedConnection==="boolean"&&typeof z._removedContLen==="boolean"}function h0(z){return typeof z._sent100==="boolean"&&m(z)}function U0(z){var c;return typeof z._consuming==="boolean"&&typeof z._dumped==="boolean"&&((c=z.req)===null||c===void 0?void 0:c.upgradeOrConnect)===void 0}function z0(z){if(!r(z))return null;let{_writableState:c,_readableState:e}=z,R=c||e;return!R&&h0(z)||!!(R&&R.autoDestroy&&R.emitClose&&R.closed===!1)}function f(z){var c;return!!(z&&((c=z[H])!==null&&c!==void 0?c:z.readableDidRead||z.readableAborted))}function Q0(z){var c,e,R,w0,J0,H0,Y0,S,y,i;return!!(z&&((c=(e=(R=(w0=(J0=(H0=z[J])!==null&&H0!==void 0?H0:z.readableErrored)!==null&&J0!==void 0?J0:z.writableErrored)!==null&&w0!==void 0?w0:(Y0=z._readableState)===null||Y0===void 0?void 0:Y0.errorEmitted)!==null&&R!==void 0?R:(S=z._writableState)===null||S===void 0?void 0:S.errorEmitted)!==null&&e!==void 0?e:(y=z._readableState)===null||y===void 0?void 0:y.errored)!==null&&c!==void 0?c:(i=z._writableState)===null||i===void 0?void 0:i.errored))}B.exports={isDestroyed:_,kIsDestroyed:X,isDisturbed:f,kIsDisturbed:H,isErrored:Q0,kIsErrored:J,isReadable:k,kIsReadable:Y,kIsClosedPromise:G,kControllerErrorFunction:C,kIsWritable:K,isClosed:j,isDuplexNodeStream:o,isFinished:N,isIterable:M,isReadableNodeStream:O,isReadableStream:D,isReadableEnded:q0,isReadableFinished:a,isReadableErrored:E,isNodeStream:r,isWebStream:W,isWritable:u,isWritableNodeStream:L,isWritableStream:x,isWritableEnded:d,isWritableFinished:Z0,isWritableErrored:A,isServerRequest:U0,isServerResponse:h0,willEmitClose:z0,isTransformStream:q}}),s0=I0((h,B)=>{var w=Z2(),{AbortError:U,codes:Q}=D0(),{ERR_INVALID_ARG_TYPE:X,ERR_STREAM_PREMATURE_CLOSE:J}=Q,{kEmptyObject:Y,once:K}=E0(),{validateAbortSignal:H,validateFunction:G,validateObject:C,validateBoolean:O}=M2(),{Promise:L,PromisePrototypeThen:o,SymbolDispose:r}=W0(),{isClosed:D,isReadable:x,isReadableNodeStream:q,isReadableStream:W,isReadableFinished:M,isReadableErrored:_,isWritable:d,isWritableNodeStream:Z0,isWritableStream:q0,isWritableFinished:a,isWritableErrored:k,isNodeStream:u,willEmitClose:N,kIsClosedPromise:A}=m0(),E;function j(f){return f.setHeader&&typeof f.abort==="function"}var m=()=>{};function h0(f,Q0,z){var c,e;if(arguments.length===2)z=Q0,Q0=Y;else if(Q0==null)Q0=Y;else C(Q0,"options");if(G(z,"callback"),H(Q0.signal,"options.signal"),z=K(z),W(f)||q0(f))return U0(f,Q0,z);if(!u(f))throw new X("stream",["ReadableStream","WritableStream","Stream"],f);let R=(c=Q0.readable)!==null&&c!==void 0?c:q(f),w0=(e=Q0.writable)!==null&&e!==void 0?e:Z0(f),J0=f._writableState,H0=f._readableState,Y0=()=>{if(!f.writable)i()},S=N(f)&&q(f)===R&&Z0(f)===w0,y=a(f,!1),i=()=>{if(y=!0,f.destroyed)S=!1;if(S&&(!f.readable||R))return;if(!R||F0)z.call(f)},F0=M(f,!1),K0=()=>{if(F0=!0,f.destroyed)S=!1;if(S&&(!f.writable||w0))return;if(!w0||y)z.call(f)},I=($)=>{z.call(f,$)},V=D(f),T=()=>{V=!0;let $=k(f)||_(f);if($&&typeof $!=="boolean")return z.call(f,$);if(R&&!F0&&q(f,!0)){if(!M(f,!1))return z.call(f,new J)}if(w0&&!y){if(!a(f,!1))return z.call(f,new J)}z.call(f)},p=()=>{V=!0;let $=k(f)||_(f);if($&&typeof $!=="boolean")return z.call(f,$);z.call(f)},n=()=>{f.req.on("finish",i)};if(j(f)){if(f.on("complete",i),!S)f.on("abort",T);if(f.req)n();else f.on("request",n)}else if(w0&&!J0)f.on("end",Y0),f.on("close",Y0);if(!S&&typeof f.aborted==="boolean")f.on("aborted",T);if(f.on("end",K0),f.on("finish",i),Q0.error!==!1)f.on("error",I);if(f.on("close",T),V)w.nextTick(T);else if(J0!==null&&J0!==void 0&&J0.errorEmitted||H0!==null&&H0!==void 0&&H0.errorEmitted){if(!S)w.nextTick(p)}else if(!R&&(!S||x(f))&&(y||d(f)===!1))w.nextTick(p);else if(!w0&&(!S||d(f))&&(F0||x(f)===!1))w.nextTick(p);else if(H0&&f.req&&f.aborted)w.nextTick(p);let l=()=>{if(z=m,f.removeListener("aborted",T),f.removeListener("complete",i),f.removeListener("abort",T),f.removeListener("request",n),f.req)f.req.removeListener("finish",i);f.removeListener("end",Y0),f.removeListener("close",Y0),f.removeListener("finish",i),f.removeListener("end",K0),f.removeListener("error",I),f.removeListener("close",T)};if(Q0.signal&&!V){let $=()=>{let v=z;l(),v.call(f,new U(void 0,{cause:Q0.signal.reason}))};if(Q0.signal.aborted)w.nextTick($);else{E=E||E0().addAbortListener;let v=E(Q0.signal,$),s=z;z=K((...g)=>{v[r](),s.apply(f,g)})}}return l}function U0(f,Q0,z){let c=!1,e=m;if(Q0.signal)if(e=()=>{c=!0,z.call(f,new U(void 0,{cause:Q0.signal.reason}))},Q0.signal.aborted)w.nextTick(e);else{E=E||E0().addAbortListener;let w0=E(Q0.signal,e),J0=z;z=K((...H0)=>{w0[r](),J0.apply(f,H0)})}let R=(...w0)=>{if(!c)w.nextTick(()=>z.apply(f,w0))};return o(f[A].promise,R,R),m}function z0(f,Q0){var z;let c=!1;if(Q0===null)Q0=Y;if((z=Q0)!==null&&z!==void 0&&z.cleanup)O(Q0.cleanup,"cleanup"),c=Q0.cleanup;return new L((e,R)=>{let w0=h0(f,Q0,(J0)=>{if(c)w0();if(J0)R(J0);else e()})})}B.exports=h0,B.exports.finished=z0}),z2=I0((h,B)=>{var w=Z2(),{aggregateTwoErrors:U,codes:{ERR_MULTIPLE_CALLBACK:Q},AbortError:X}=D0(),{Symbol:J}=W0(),{kIsDestroyed:Y,isDestroyed:K,isFinished:H,isServerRequest:G}=m0(),C=J("kDestroy"),O=J("kConstruct");function L(N,A,E){if(N){if(N.stack,A&&!A.errored)A.errored=N;if(E&&!E.errored)E.errored=N}}function o(N,A){let E=this._readableState,j=this._writableState,m=j||E;if(j!==null&&j!==void 0&&j.destroyed||E!==null&&E!==void 0&&E.destroyed){if(typeof A==="function")A();return this}if(L(N,j,E),j)j.destroyed=!0;if(E)E.destroyed=!0;if(!m.constructed)this.once(C,function(h0){r(this,U(h0,N),A)});else r(this,N,A);return this}function r(N,A,E){let j=!1;function m(h0){if(j)return;j=!0;let{_readableState:U0,_writableState:z0}=N;if(L(h0,z0,U0),z0)z0.closed=!0;if(U0)U0.closed=!0;if(typeof E==="function")E(h0);if(h0)w.nextTick(D,N,h0);else w.nextTick(x,N)}try{N._destroy(A||null,m)}catch(h0){m(h0)}}function D(N,A){q(N,A),x(N)}function x(N){let{_readableState:A,_writableState:E}=N;if(E)E.closeEmitted=!0;if(A)A.closeEmitted=!0;if(E!==null&&E!==void 0&&E.emitClose||A!==null&&A!==void 0&&A.emitClose)N.emit("close")}function q(N,A){let{_readableState:E,_writableState:j}=N;if(j!==null&&j!==void 0&&j.errorEmitted||E!==null&&E!==void 0&&E.errorEmitted)return;if(j)j.errorEmitted=!0;if(E)E.errorEmitted=!0;N.emit("error",A)}function W(){let N=this._readableState,A=this._writableState;if(N)N.constructed=!0,N.closed=!1,N.closeEmitted=!1,N.destroyed=!1,N.errored=null,N.errorEmitted=!1,N.reading=!1,N.ended=N.readable===!1,N.endEmitted=N.readable===!1;if(A)A.constructed=!0,A.destroyed=!1,A.closed=!1,A.closeEmitted=!1,A.errored=null,A.errorEmitted=!1,A.finalCalled=!1,A.prefinished=!1,A.ended=A.writable===!1,A.ending=A.writable===!1,A.finished=A.writable===!1}function M(N,A,E){let{_readableState:j,_writableState:m}=N;if(m!==null&&m!==void 0&&m.destroyed||j!==null&&j!==void 0&&j.destroyed)return this;if(j!==null&&j!==void 0&&j.autoDestroy||m!==null&&m!==void 0&&m.autoDestroy)N.destroy(A);else if(A){if(A.stack,m&&!m.errored)m.errored=A;if(j&&!j.errored)j.errored=A;if(E)w.nextTick(q,N,A);else q(N,A)}}function _(N,A){if(typeof N._construct!=="function")return;let{_readableState:E,_writableState:j}=N;if(E)E.constructed=!1;if(j)j.constructed=!1;if(N.once(O,A),N.listenerCount(O)>1)return;w.nextTick(d,N)}function d(N){let A=!1;function E(j){if(A){M(N,j!==null&&j!==void 0?j:new Q);return}A=!0;let{_readableState:m,_writableState:h0}=N,U0=h0||m;if(m)m.constructed=!0;if(h0)h0.constructed=!0;if(U0.destroyed)N.emit(C,j);else if(j)M(N,j,!0);else w.nextTick(Z0,N)}try{N._construct((j)=>{w.nextTick(E,j)})}catch(j){w.nextTick(E,j)}}function Z0(N){N.emit(O)}function q0(N){return(N===null||N===void 0?void 0:N.setHeader)&&typeof N.abort==="function"}function a(N){N.emit("close")}function k(N,A){N.emit("error",A),w.nextTick(a,N)}function u(N,A){if(!N||K(N))return;if(!A&&!H(N))A=new X;if(G(N))N.socket=null,N.destroy(A);else if(q0(N))N.abort();else if(q0(N.req))N.req.abort();else if(typeof N.destroy==="function")N.destroy(A);else if(typeof N.close==="function")N.close();else if(A)w.nextTick(k,N,A);else w.nextTick(a,N);if(!N.destroyed)N[Y]=!0}B.exports={construct:_,destroyer:u,destroy:o,undestroy:W,errorOrDestroy:M}}),B1=I0((h,B)=>{var{ArrayIsArray:w,ObjectSetPrototypeOf:U}=W0(),{EventEmitter:Q}=(V2(),R0(C2));function X(Y){Q.call(this,Y)}U(X.prototype,Q.prototype),U(X,Q),X.prototype.pipe=function(Y,K){let H=this;function G(x){if(Y.writable&&Y.write(x)===!1&&H.pause)H.pause()}H.on("data",G);function C(){if(H.readable&&H.resume)H.resume()}if(Y.on("drain",C),!Y._isStdio&&(!K||K.end!==!1))H.on("end",L),H.on("close",o);let O=!1;function L(){if(O)return;O=!0,Y.end()}function o(){if(O)return;if(O=!0,typeof Y.destroy==="function")Y.destroy()}function r(x){if(D(),Q.listenerCount(this,"error")===0)this.emit("error",x)}J(H,"error",r),J(Y,"error",r);function D(){H.removeListener("data",G),Y.removeListener("drain",C),H.removeListener("end",L),H.removeListener("close",o),H.removeListener("error",r),Y.removeListener("error",r),H.removeListener("end",D),H.removeListener("close",D),Y.removeListener("close",D)}return H.on("end",D),H.on("close",D),Y.on("close",D),Y.emit("pipe",H),Y};function J(Y,K,H){if(typeof Y.prependListener==="function")return Y.prependListener(K,H);if(!Y._events||!Y._events[K])Y.on(K,H);else if(w(Y._events[K]))Y._events[K].unshift(H);else Y._events[K]=[H,Y._events[K]]}B.exports={Stream:X,prependListener:J}}),_2=I0((h,B)=>{var{SymbolDispose:w}=W0(),{AbortError:U,codes:Q}=D0(),{isNodeStream:X,isWebStream:J,kControllerErrorFunction:Y}=m0(),K=s0(),{ERR_INVALID_ARG_TYPE:H}=Q,G,C=(O,L)=>{if(typeof O!=="object"||!("aborted"in O))throw new H(L,"AbortSignal",O)};B.exports.addAbortSignal=function(O,L){if(C(O,"signal"),!X(L)&&!J(L))throw new H("stream",["ReadableStream","WritableStream","Stream"],L);return B.exports.addAbortSignalNoValidate(O,L)},B.exports.addAbortSignalNoValidate=function(O,L){if(typeof O!=="object"||!("aborted"in O))return L;let o=X(L)?()=>{L.destroy(new U(void 0,{cause:O.reason}))}:()=>{L[Y](new U(void 0,{cause:O.reason}))};if(O.aborted)o();else{G=G||E0().addAbortListener;let r=G(O,o);K(L,r[w])}return L}}),m8=I0((h,B)=>{var{StringPrototypeSlice:w,SymbolIterator:U,TypedArrayPrototypeSet:Q,Uint8Array:X}=W0(),{Buffer:J}=(i0(),R0(d0)),{inspect:Y}=E0();B.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(K){let H={data:K,next:null};if(this.length>0)this.tail.next=H;else this.head=H;this.tail=H,++this.length}unshift(K){let H={data:K,next:this.head};if(this.length===0)this.tail=H;this.head=H,++this.length}shift(){if(this.length===0)return;let K=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,K}clear(){this.head=this.tail=null,this.length=0}join(K){if(this.length===0)return"";let H=this.head,G=""+H.data;while((H=H.next)!==null)G+=K+H.data;return G}concat(K){if(this.length===0)return J.alloc(0);let H=J.allocUnsafe(K>>>0),G=this.head,C=0;while(G)Q(H,G.data,C),C+=G.data.length,G=G.next;return H}consume(K,H){let G=this.head.data;if(K<G.length){let C=G.slice(0,K);return this.head.data=G.slice(K),C}if(K===G.length)return this.shift();return H?this._getString(K):this._getBuffer(K)}first(){return this.head.data}*[U](){for(let K=this.head;K;K=K.next)yield K.data}_getString(K){let H="",G=this.head,C=0;do{let O=G.data;if(K>O.length)H+=O,K-=O.length;else{if(K===O.length)if(H+=O,++C,G.next)this.head=G.next;else this.head=this.tail=null;else H+=w(O,0,K),this.head=G,G.data=w(O,K);break}++C}while((G=G.next)!==null);return this.length-=C,H}_getBuffer(K){let H=J.allocUnsafe(K),G=K,C=this.head,O=0;do{let L=C.data;if(K>L.length)Q(H,L,G-K),K-=L.length;else{if(K===L.length)if(Q(H,L,G-K),++O,C.next)this.head=C.next;else this.head=this.tail=null;else Q(H,new X(L.buffer,L.byteOffset,K),G-K),this.head=C,C.data=L.slice(K);break}++O}while((C=C.next)!==null);return this.length-=O,H}[Symbol.for("nodejs.util.inspect.custom")](K,H){return Y(this,{...H,depth:0,customInspect:!1})}}}),R2=I0((h,B)=>{var{MathFloor:w,NumberIsInteger:U}=W0(),{validateInteger:Q}=M2(),{ERR_INVALID_ARG_VALUE:X}=D0().codes,J=16384,Y=16;function K(O,L,o){return O.highWaterMark!=null?O.highWaterMark:L?O[o]:null}function H(O){return O?Y:J}function G(O,L){if(Q(L,"value",0),O)Y=L;else J=L}function C(O,L,o,r){let D=K(L,r,o);if(D!=null){if(!U(D)||D<0){let x=r?`options.${o}`:"options.highWaterMark";throw new X(x,D)}return w(D)}return H(O.objectMode)}B.exports={getHighWaterMark:C,getDefaultHighWaterMark:H,setDefaultHighWaterMark:G}}),n8=I0((h,B)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var w=(i0(),R0(d0)),U=w.Buffer;function Q(J,Y){for(var K in J)Y[K]=J[K]}if(U.from&&U.alloc&&U.allocUnsafe&&U.allocUnsafeSlow)B.exports=w;else Q(w,h),h.Buffer=X;function X(J,Y,K){return U(J,Y,K)}X.prototype=Object.create(U.prototype),Q(U,X),X.from=function(J,Y,K){if(typeof J==="number")throw TypeError("Argument must not be a number");return U(J,Y,K)},X.alloc=function(J,Y,K){if(typeof J!=="number")throw TypeError("Argument must be a number");var H=U(J);if(Y!==void 0)if(typeof K==="string")H.fill(Y,K);else H.fill(Y);else H.fill(0);return H},X.allocUnsafe=function(J){if(typeof J!=="number")throw TypeError("Argument must be a number");return U(J)},X.allocUnsafeSlow=function(J){if(typeof J!=="number")throw TypeError("Argument must be a number");return w.SlowBuffer(J)}}),o8=I0((h)=>{var B=n8().Buffer,w=B.isEncoding||function(q){switch(q=""+q,q&&q.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 U(q){if(!q)return"utf8";var W;while(!0)switch(q){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 q;default:if(W)return;q=(""+q).toLowerCase(),W=!0}}function Q(q){var W=U(q);if(typeof W!=="string"&&(B.isEncoding===w||!w(q)))throw Error("Unknown encoding: "+q);return W||q}h.StringDecoder=X;function X(q){this.encoding=Q(q);var W;switch(this.encoding){case"utf16le":this.text=O,this.end=L,W=4;break;case"utf8":this.fillLast=H,W=4;break;case"base64":this.text=o,this.end=r,W=3;break;default:this.write=D,this.end=x;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=B.allocUnsafe(W)}X.prototype.write=function(q){if(q.length===0)return"";var W,M;if(this.lastNeed){if(W=this.fillLast(q),W===void 0)return"";M=this.lastNeed,this.lastNeed=0}else M=0;if(M<q.length)return W?W+this.text(q,M):this.text(q,M);return W||""},X.prototype.end=C,X.prototype.text=G,X.prototype.fillLast=function(q){if(this.lastNeed<=q.length)return q.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);q.copy(this.lastChar,this.lastTotal-this.lastNeed,0,q.length),this.lastNeed-=q.length};function J(q){if(q<=127)return 0;else if(q>>5===6)return 2;else if(q>>4===14)return 3;else if(q>>3===30)return 4;return q>>6===2?-1:-2}function Y(q,W,M){var _=W.length-1;if(_<M)return 0;var d=J(W[_]);if(d>=0){if(d>0)q.lastNeed=d-1;return d}if(--_<M||d===-2)return 0;if(d=J(W[_]),d>=0){if(d>0)q.lastNeed=d-2;return d}if(--_<M||d===-2)return 0;if(d=J(W[_]),d>=0){if(d>0)if(d===2)d=0;else q.lastNeed=d-3;return d}return 0}function K(q,W,M){if((W[0]&192)!==128)return q.lastNeed=0,"�";if(q.lastNeed>1&&W.length>1){if((W[1]&192)!==128)return q.lastNeed=1,"�";if(q.lastNeed>2&&W.length>2){if((W[2]&192)!==128)return q.lastNeed=2,"�"}}}function H(q){var W=this.lastTotal-this.lastNeed,M=K(this,q,W);if(M!==void 0)return M;if(this.lastNeed<=q.length)return q.copy(this.lastChar,W,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);q.copy(this.lastChar,W,0,q.length),this.lastNeed-=q.length}function G(q,W){var M=Y(this,q,W);if(!this.lastNeed)return q.toString("utf8",W);this.lastTotal=M;var _=q.length-(M-this.lastNeed);return q.copy(this.lastChar,0,_),q.toString("utf8",W,_)}function C(q){var W=q&&q.length?this.write(q):"";if(this.lastNeed)return W+"�";return W}function O(q,W){if((q.length-W)%2===0){var M=q.toString("utf16le",W);if(M){var _=M.charCodeAt(M.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=q[q.length-2],this.lastChar[1]=q[q.length-1],M.slice(0,-1)}return M}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=q[q.length-1],q.toString("utf16le",W,q.length-1)}function L(q){var W=q&&q.length?this.write(q):"";if(this.lastNeed){var M=this.lastTotal-this.lastNeed;return W+this.lastChar.toString("utf16le",0,M)}return W}function o(q,W){var M=(q.length-W)%3;if(M===0)return q.toString("base64",W);if(this.lastNeed=3-M,this.lastTotal=3,M===1)this.lastChar[0]=q[q.length-1];else this.lastChar[0]=q[q.length-2],this.lastChar[1]=q[q.length-1];return q.toString("base64",W,q.length-M)}function r(q){var W=q&&q.length?this.write(q):"";if(this.lastNeed)return W+this.lastChar.toString("base64",0,3-this.lastNeed);return W}function D(q){return q.toString(this.encoding)}function x(q){return q&&q.length?this.write(q):""}}),G6=I0((h,B)=>{var w=Z2(),{PromisePrototypeThen:U,SymbolAsyncIterator:Q,SymbolIterator:X}=W0(),{Buffer:J}=(i0(),R0(d0)),{ERR_INVALID_ARG_TYPE:Y,ERR_STREAM_NULL_VALUES:K}=D0().codes;function H(G,C,O){let L;if(typeof C==="string"||C instanceof J)return new G({objectMode:!0,...O,read(){this.push(C),this.push(null)}});let o;if(C&&C[Q])o=!0,L=C[Q]();else if(C&&C[X])o=!1,L=C[X]();else throw new Y("iterable",["Iterable"],C);let r=new G({objectMode:!0,highWaterMark:1,...O}),D=!1;r._read=function(){if(!D)D=!0,q()},r._destroy=function(W,M){U(x(W),()=>w.nextTick(M,W),(_)=>w.nextTick(M,_||W))};async function x(W){let M=W!==void 0&&W!==null,_=typeof L.throw==="function";if(M&&_){let{value:d,done:Z0}=await L.throw(W);if(await d,Z0)return}if(typeof L.return==="function"){let{value:d}=await L.return();await d}}async function q(){for(;;){try{let{value:W,done:M}=o?await L.next():L.next();if(M)r.push(null);else{let _=W&&typeof W.then==="function"?await W:W;if(_===null)throw D=!1,new K;else if(r.push(_))continue;else D=!1}}catch(W){r.destroy(W)}break}}return r}B.exports=H}),k2=I0((h,B)=>{var w=Z2(),{ArrayPrototypeIndexOf:U,NumberIsInteger:Q,NumberIsNaN:X,NumberParseInt:J,ObjectDefineProperties:Y,ObjectKeys:K,ObjectSetPrototypeOf:H,Promise:G,SafeSet:C,SymbolAsyncDispose:O,SymbolAsyncIterator:L,Symbol:o}=W0();B.exports=g,g.ReadableState=s;var{EventEmitter:r}=(V2(),R0(C2)),{Stream:D,prependListener:x}=B1(),{Buffer:q}=(i0(),R0(d0)),{addAbortSignal:W}=_2(),M=s0(),_=E0().debuglog("stream",(Z)=>{_=Z}),d=m8(),Z0=z2(),{getHighWaterMark:q0,getDefaultHighWaterMark:a}=R2(),{aggregateTwoErrors:k,codes:{ERR_INVALID_ARG_TYPE:u,ERR_METHOD_NOT_IMPLEMENTED:N,ERR_OUT_OF_RANGE:A,ERR_STREAM_PUSH_AFTER_EOF:E,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:j},AbortError:m}=D0(),{validateObject:h0}=M2(),U0=o("kPaused"),{StringDecoder:z0}=o8(),f=G6();H(g.prototype,D.prototype),H(g,D);var Q0=()=>{},{errorOrDestroy:z}=Z0,c=1,e=2,R=4,w0=8,J0=16,H0=32,Y0=64,S=128,y=256,i=512,F0=1024,K0=2048,I=4096,V=8192,T=16384,p=32768,n=65536,l=131072,$=262144;function v(Z){return{enumerable:!1,get(){return(this.state&Z)!==0},set(F){if(F)this.state|=Z;else this.state&=~Z}}}Y(s.prototype,{objectMode:v(c),ended:v(e),endEmitted:v(R),reading:v(w0),constructed:v(J0),sync:v(H0),needReadable:v(Y0),emittedReadable:v(S),readableListening:v(y),resumeScheduled:v(i),errorEmitted:v(F0),emitClose:v(K0),autoDestroy:v(I),destroyed:v(V),closed:v(T),closeEmitted:v(p),multiAwaitDrain:v(n),readingMore:v(l),dataEmitted:v($)});function s(Z,F,b){if(typeof b!=="boolean")b=F instanceof l0();if(this.state=K0|I|J0|H0,Z&&Z.objectMode)this.state|=c;if(b&&Z&&Z.readableObjectMode)this.state|=c;if(this.highWaterMark=Z?q0(this,Z,"readableHighWaterMark",b):a(!1),this.buffer=new d,this.length=0,this.pipes=[],this.flowing=null,this[U0]=null,Z&&Z.emitClose===!1)this.state&=~K0;if(Z&&Z.autoDestroy===!1)this.state&=~I;if(this.errored=null,this.defaultEncoding=Z&&Z.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,Z&&Z.encoding)this.decoder=new z0(Z.encoding),this.encoding=Z.encoding}function g(Z){if(!(this instanceof g))return new g(Z);let F=this instanceof l0();if(this._readableState=new s(Z,this,F),Z){if(typeof Z.read==="function")this._read=Z.read;if(typeof Z.destroy==="function")this._destroy=Z.destroy;if(typeof Z.construct==="function")this._construct=Z.construct;if(Z.signal&&!F)W(Z.signal,this)}D.call(this,Z),Z0.construct(this,()=>{if(this._readableState.needReadable)q2(this,this._readableState)})}g.prototype.destroy=Z0.destroy,g.prototype._undestroy=Z0.undestroy,g.prototype._destroy=function(Z,F){F(Z)},g.prototype[r.captureRejectionSymbol]=function(Z){this.destroy(Z)},g.prototype[O]=function(){let Z;if(!this.destroyed)Z=this.readableEnded?null:new m,this.destroy(Z);return new G((F,b)=>M(this,(t)=>t&&t!==Z?b(t):F(null)))},g.prototype.push=function(Z,F){return X0(this,Z,F,!1)},g.prototype.unshift=function(Z,F){return X0(this,Z,F,!0)};function X0(Z,F,b,t){_("readableAddChunk",F);let B0=Z._readableState,A0;if((B0.state&c)===0){if(typeof F==="string"){if(b=b||B0.defaultEncoding,B0.encoding!==b)if(t&&B0.encoding)F=q.from(F,b).toString(B0.encoding);else F=q.from(F,b),b=""}else if(F instanceof q)b="";else if(D._isUint8Array(F))F=D._uint8ArrayToBuffer(F),b="";else if(F!=null)A0=new u("chunk",["string","Buffer","Uint8Array"],F)}if(A0)z(Z,A0);else if(F===null)B0.state&=~w0,M0(Z,B0);else if((B0.state&c)!==0||F&&F.length>0)if(t)if((B0.state&R)!==0)z(Z,new j);else if(B0.destroyed||B0.errored)return!1;else $0(Z,B0,F,!0);else if(B0.ended)z(Z,new E);else if(B0.destroyed||B0.errored)return!1;else if(B0.state&=~w0,B0.decoder&&!b)if(F=B0.decoder.write(F),B0.objectMode||F.length!==0)$0(Z,B0,F,!1);else q2(Z,B0);else $0(Z,B0,F,!1);else if(!t)B0.state&=~w0,q2(Z,B0);return!B0.ended&&(B0.length<B0.highWaterMark||B0.length===0)}function $0(Z,F,b,t){if(F.flowing&&F.length===0&&!F.sync&&Z.listenerCount("data")>0){if((F.state&n)!==0)F.awaitDrainWriters.clear();else F.awaitDrainWriters=null;F.dataEmitted=!0,Z.emit("data",b)}else{if(F.length+=F.objectMode?1:b.length,t)F.buffer.unshift(b);else F.buffer.push(b);if((F.state&Y0)!==0)L0(Z)}q2(Z,F)}g.prototype.isPaused=function(){let Z=this._readableState;return Z[U0]===!0||Z.flowing===!1},g.prototype.setEncoding=function(Z){let F=new z0(Z);this._readableState.decoder=F,this._readableState.encoding=this._readableState.decoder.encoding;let b=this._readableState.buffer,t="";for(let B0 of b)t+=F.write(B0);if(b.clear(),t!=="")b.push(t);return this._readableState.length=t.length,this};var P0=1073741824;function T0(Z){if(Z>P0)throw new A("size","<= 1GiB",Z);else Z--,Z|=Z>>>1,Z|=Z>>>2,Z|=Z>>>4,Z|=Z>>>8,Z|=Z>>>16,Z++;return Z}function e0(Z,F){if(Z<=0||F.length===0&&F.ended)return 0;if((F.state&c)!==0)return 1;if(X(Z)){if(F.flowing&&F.length)return F.buffer.first().length;return F.length}if(Z<=F.length)return Z;return F.ended?F.length:0}g.prototype.read=function(Z){if(_("read",Z),Z===void 0)Z=NaN;else if(!Q(Z))Z=J(Z,10);let F=this._readableState,b=Z;if(Z>F.highWaterMark)F.highWaterMark=T0(Z);if(Z!==0)F.state&=~S;if(Z===0&&F.needReadable&&((F.highWaterMark!==0?F.length>=F.highWaterMark:F.length>0)||F.ended)){if(_("read: emitReadable",F.length,F.ended),F.length===0&&F.ended)f2(this);else L0(this);return null}if(Z=e0(Z,F),Z===0&&F.ended){if(F.length===0)f2(this);return null}let t=(F.state&Y0)!==0;if(_("need readable",t),F.length===0||F.length-Z<F.highWaterMark)t=!0,_("length less than watermark",t);if(F.ended||F.reading||F.destroyed||F.errored||!F.constructed)t=!1,_("reading, ended or constructing",t);else if(t){if(_("do read"),F.state|=w0|H0,F.length===0)F.state|=Y0;try{this._read(F.highWaterMark)}catch(A0){z(this,A0)}if(F.state&=~H0,!F.reading)Z=e0(b,F)}let B0;if(Z>0)B0=G1(Z,F);else B0=null;if(B0===null)F.needReadable=F.length<=F.highWaterMark,Z=0;else if(F.length-=Z,F.multiAwaitDrain)F.awaitDrainWriters.clear();else F.awaitDrainWriters=null;if(F.length===0){if(!F.ended)F.needReadable=!0;if(b!==Z&&F.ended)f2(this)}if(B0!==null&&!F.errorEmitted&&!F.closeEmitted)F.dataEmitted=!0,this.emit("data",B0);return B0};function M0(Z,F){if(_("onEofChunk"),F.ended)return;if(F.decoder){let b=F.decoder.end();if(b&&b.length)F.buffer.push(b),F.length+=F.objectMode?1:b.length}if(F.ended=!0,F.sync)L0(Z);else F.needReadable=!1,F.emittedReadable=!0,F2(Z)}function L0(Z){let F=Z._readableState;if(_("emitReadable",F.needReadable,F.emittedReadable),F.needReadable=!1,!F.emittedReadable)_("emitReadable",F.flowing),F.emittedReadable=!0,w.nextTick(F2,Z)}function F2(Z){let F=Z._readableState;if(_("emitReadable_",F.destroyed,F.length,F.ended),!F.destroyed&&!F.errored&&(F.length||F.ended))Z.emit("readable"),F.emittedReadable=!1;F.needReadable=!F.flowing&&!F.ended&&F.length<=F.highWaterMark,I1(Z)}function q2(Z,F){if(!F.readingMore&&F.constructed)F.readingMore=!0,w.nextTick(y0,Z,F)}function y0(Z,F){while(!F.reading&&!F.ended&&(F.length<F.highWaterMark||F.flowing&&F.length===0)){let b=F.length;if(_("maybeReadMore read 0"),Z.read(0),b===F.length)break}F.readingMore=!1}g.prototype._read=function(Z){throw new N("_read()")},g.prototype.pipe=function(Z,F){let b=this,t=this._readableState;if(t.pipes.length===1){if(!t.multiAwaitDrain)t.multiAwaitDrain=!0,t.awaitDrainWriters=new C(t.awaitDrainWriters?[t.awaitDrainWriters]:[])}t.pipes.push(Z),_("pipe count=%d opts=%j",t.pipes.length,F);let B0=(!F||F.end!==!1)&&Z!==w.stdout&&Z!==w.stderr?_0:H2;if(t.endEmitted)w.nextTick(B0);else b.once("end",B0);Z.on("unpipe",A0);function A0(B2,g0){if(_("onunpipe"),B2===b){if(g0&&g0.hasUnpiped===!1)g0.hasUnpiped=!0,c6()}}function _0(){_("onend"),Z.end()}let h2,W1=!1;function c6(){if(_("cleanup"),Z.removeListener("close",u2),Z.removeListener("finish",g2),h2)Z.removeListener("drain",h2);if(Z.removeListener("error",v2),Z.removeListener("unpipe",A0),b.removeListener("end",_0),b.removeListener("end",H2),b.removeListener("data",V1),W1=!0,h2&&t.awaitDrainWriters&&(!Z._writableState||Z._writableState.needDrain))h2()}function C1(){if(!W1){if(t.pipes.length===1&&t.pipes[0]===Z)_("false write response, pause",0),t.awaitDrainWriters=Z,t.multiAwaitDrain=!1;else if(t.pipes.length>1&&t.pipes.includes(Z))_("false write response, pause",t.awaitDrainWriters.size),t.awaitDrainWriters.add(Z);b.pause()}if(!h2)h2=T6(b,Z),Z.on("drain",h2)}b.on("data",V1);function V1(B2){_("ondata");let g0=Z.write(B2);if(_("dest.write",g0),g0===!1)C1()}function v2(B2){if(_("onerror",B2),H2(),Z.removeListener("error",v2),Z.listenerCount("error")===0){let g0=Z._writableState||Z._readableState;if(g0&&!g0.errorEmitted)z(Z,B2);else Z.emit("error",B2)}}x(Z,"error",v2);function u2(){Z.removeListener("finish",g2),H2()}Z.once("close",u2);function g2(){_("onfinish"),Z.removeListener("close",u2),H2()}Z.once("finish",g2);function H2(){_("unpipe"),b.unpipe(Z)}if(Z.emit("pipe",b),Z.writableNeedDrain===!0)C1();else if(!t.flowing)_("pipe resume"),b.resume();return Z};function T6(Z,F){return function(){let b=Z._readableState;if(b.awaitDrainWriters===F)_("pipeOnDrain",1),b.awaitDrainWriters=null;else if(b.multiAwaitDrain)_("pipeOnDrain",b.awaitDrainWriters.size),b.awaitDrainWriters.delete(F);if((!b.awaitDrainWriters||b.awaitDrainWriters.size===0)&&Z.listenerCount("data"))Z.resume()}}g.prototype.unpipe=function(Z){let F=this._readableState,b={hasUnpiped:!1};if(F.pipes.length===0)return this;if(!Z){let B0=F.pipes;F.pipes=[],this.pause();for(let A0=0;A0<B0.length;A0++)B0[A0].emit("unpipe",this,{hasUnpiped:!1});return this}let t=U(F.pipes,Z);if(t===-1)return this;if(F.pipes.splice(t,1),F.pipes.length===0)this.pause();return Z.emit("unpipe",this,b),this},g.prototype.on=function(Z,F){let b=D.prototype.on.call(this,Z,F),t=this._readableState;if(Z==="data"){if(t.readableListening=this.listenerCount("readable")>0,t.flowing!==!1)this.resume()}else if(Z==="readable"){if(!t.endEmitted&&!t.readableListening){if(t.readableListening=t.needReadable=!0,t.flowing=!1,t.emittedReadable=!1,_("on readable",t.length,t.reading),t.length)L0(this);else if(!t.reading)w.nextTick(_6,this)}}return b},g.prototype.addListener=g.prototype.on,g.prototype.removeListener=function(Z,F){let b=D.prototype.removeListener.call(this,Z,F);if(Z==="readable")w.nextTick(H1,this);return b},g.prototype.off=g.prototype.removeListener,g.prototype.removeAllListeners=function(Z){let F=D.prototype.removeAllListeners.apply(this,arguments);if(Z==="readable"||Z===void 0)w.nextTick(H1,this);return F};function H1(Z){let F=Z._readableState;if(F.readableListening=Z.listenerCount("readable")>0,F.resumeScheduled&&F[U0]===!1)F.flowing=!0;else if(Z.listenerCount("data")>0)Z.resume();else if(!F.readableListening)F.flowing=null}function _6(Z){_("readable nexttick read 0"),Z.read(0)}g.prototype.resume=function(){let Z=this._readableState;if(!Z.flowing)_("resume"),Z.flowing=!Z.readableListening,R6(this,Z);return Z[U0]=!1,this};function R6(Z,F){if(!F.resumeScheduled)F.resumeScheduled=!0,w.nextTick(k6,Z,F)}function k6(Z,F){if(_("resume",F.reading),!F.reading)Z.read(0);if(F.resumeScheduled=!1,Z.emit("resume"),I1(Z),F.flowing&&!F.reading)Z.read(0)}g.prototype.pause=function(){if(_("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)_("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState[U0]=!0,this};function I1(Z){let F=Z._readableState;_("flow",F.flowing);while(F.flowing&&Z.read()!==null);}g.prototype.wrap=function(Z){let F=!1;Z.on("data",(t)=>{if(!this.push(t)&&Z.pause)F=!0,Z.pause()}),Z.on("end",()=>{this.push(null)}),Z.on("error",(t)=>{z(this,t)}),Z.on("close",()=>{this.destroy()}),Z.on("destroy",()=>{this.destroy()}),this._read=()=>{if(F&&Z.resume)F=!1,Z.resume()};let b=K(Z);for(let t=1;t<b.length;t++){let B0=b[t];if(this[B0]===void 0&&typeof Z[B0]==="function")this[B0]=Z[B0].bind(Z)}return this},g.prototype[L]=function(){return $1(this)},g.prototype.iterator=function(Z){if(Z!==void 0)h0(Z,"options");return $1(this,Z)};function $1(Z,F){if(typeof Z.read!=="function")Z=g.wrap(Z,{objectMode:!0});let b=S6(Z,F);return b.stream=Z,b}async function*S6(Z,F){let b=Q0;function t(_0){if(this===Z)b(),b=Q0;else b=_0}Z.on("readable",t);let B0,A0=M(Z,{writable:!1},(_0)=>{B0=_0?k(B0,_0):null,b(),b=Q0});try{while(!0){let _0=Z.destroyed?null:Z.read();if(_0!==null)yield _0;else if(B0)throw B0;else if(B0===null)return;else await new G(t)}}catch(_0){throw B0=k(B0,_0),B0}finally{if((B0||(F===null||F===void 0?void 0:F.destroyOnReturn)!==!1)&&(B0===void 0||Z._readableState.autoDestroy))Z0.destroyer(Z,null);else Z.off("readable",t),A0()}}Y(g.prototype,{readable:{__proto__:null,get(){let Z=this._readableState;return!!Z&&Z.readable!==!1&&!Z.destroyed&&!Z.errorEmitted&&!Z.endEmitted},set(Z){if(this._readableState)this._readableState.readable=!!Z}},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(Z){if(this._readableState)this._readableState.flowing=Z}},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(Z){if(!this._readableState)return;this._readableState.destroyed=Z}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),Y(s.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[U0]!==!1},set(Z){this[U0]=!!Z}}}),g._fromList=G1;function G1(Z,F){if(F.length===0)return null;let b;if(F.objectMode)b=F.buffer.shift();else if(!Z||Z>=F.length){if(F.decoder)b=F.buffer.join("");else if(F.buffer.length===1)b=F.buffer.first();else b=F.buffer.concat(F.length);F.buffer.clear()}else b=F.buffer.consume(Z,F.decoder);return b}function f2(Z){let F=Z._readableState;if(_("endReadable",F.endEmitted),!F.endEmitted)F.ended=!0,w.nextTick(y6,F,Z)}function y6(Z,F){if(_("endReadableNT",Z.endEmitted,Z.length),!Z.errored&&!Z.closeEmitted&&!Z.endEmitted&&Z.length===0){if(Z.endEmitted=!0,F.emit("end"),F.writable&&F.allowHalfOpen===!1)w.nextTick(f6,F);else if(Z.autoDestroy){let b=F._writableState;if(!b||b.autoDestroy&&(b.finished||b.writable===!1))F.destroy()}}}function f6(Z){if(Z.writable&&!Z.writableEnded&&!Z.destroyed)Z.end()}g.from=function(Z,F){return f(g,Z,F)};var c2;function N1(){if(c2===void 0)c2={};return c2}g.fromWeb=function(Z,F){return N1().newStreamReadableFromReadableStream(Z,F)},g.toWeb=function(Z,F){return N1().newReadableStreamFromStreamReadable(Z,F)},g.wrap=function(Z,F){var b,t;return new g({objectMode:(b=(t=Z.readableObjectMode)!==null&&t!==void 0?t:Z.objectMode)!==null&&b!==void 0?b:!0,...F,destroy(B0,A0){Z0.destroyer(Z,B0),A0(B0)}}).wrap(Z)}}),w1=I0((h,B)=>{var w=Z2(),{ArrayPrototypeSlice:U,Error:Q,FunctionPrototypeSymbolHasInstance:X,ObjectDefineProperty:J,ObjectDefineProperties:Y,ObjectSetPrototypeOf:K,StringPrototypeToLowerCase:H,Symbol:G,SymbolHasInstance:C}=W0();B.exports=h0,h0.WritableState=j;var{EventEmitter:O}=(V2(),R0(C2)),L=B1().Stream,{Buffer:o}=(i0(),R0(d0)),r=z2(),{addAbortSignal:D}=_2(),{getHighWaterMark:x,getDefaultHighWaterMark:q}=R2(),{ERR_INVALID_ARG_TYPE:W,ERR_METHOD_NOT_IMPLEMENTED:M,ERR_MULTIPLE_CALLBACK:_,ERR_STREAM_CANNOT_PIPE:d,ERR_STREAM_DESTROYED:Z0,ERR_STREAM_ALREADY_FINISHED:q0,ERR_STREAM_NULL_VALUES:a,ERR_STREAM_WRITE_AFTER_END:k,ERR_UNKNOWN_ENCODING:u}=D0().codes,{errorOrDestroy:N}=r;K(h0.prototype,L.prototype),K(h0,L);function A(){}var E=G("kOnFinished");function j(I,V,T){if(typeof T!=="boolean")T=V instanceof l0();if(this.objectMode=!!(I&&I.objectMode),T)this.objectMode=this.objectMode||!!(I&&I.writableObjectMode);this.highWaterMark=I?x(this,I,"writableHighWaterMark",T):q(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let p=!!(I&&I.decodeStrings===!1);this.decodeStrings=!p,this.defaultEncoding=I&&I.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=z.bind(void 0,V),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,m(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!I||I.emitClose!==!1,this.autoDestroy=!I||I.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[E]=[]}function m(I){I.buffered=[],I.bufferedIndex=0,I.allBuffers=!0,I.allNoop=!0}j.prototype.getBuffer=function(){return U(this.buffered,this.bufferedIndex)},J(j.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function h0(I){let V=this instanceof l0();if(!V&&!X(h0,this))return new h0(I);if(this._writableState=new j(I,this,V),I){if(typeof I.write==="function")this._write=I.write;if(typeof I.writev==="function")this._writev=I.writev;if(typeof I.destroy==="function")this._destroy=I.destroy;if(typeof I.final==="function")this._final=I.final;if(typeof I.construct==="function")this._construct=I.construct;if(I.signal)D(I.signal,this)}L.call(this,I),r.construct(this,()=>{let T=this._writableState;if(!T.writing)w0(this,T);S(this,T)})}J(h0,C,{__proto__:null,value:function(I){if(X(this,I))return!0;if(this!==h0)return!1;return I&&I._writableState instanceof j}}),h0.prototype.pipe=function(){N(this,new d)};function U0(I,V,T,p){let n=I._writableState;if(typeof T==="function")p=T,T=n.defaultEncoding;else{if(!T)T=n.defaultEncoding;else if(T!=="buffer"&&!o.isEncoding(T))throw new u(T);if(typeof p!=="function")p=A}if(V===null)throw new a;else if(!n.objectMode)if(typeof V==="string"){if(n.decodeStrings!==!1)V=o.from(V,T),T="buffer"}else if(V instanceof o)T="buffer";else if(L._isUint8Array(V))V=L._uint8ArrayToBuffer(V),T="buffer";else throw new W("chunk",["string","Buffer","Uint8Array"],V);let l;if(n.ending)l=new k;else if(n.destroyed)l=new Z0("write");if(l)return w.nextTick(p,l),N(I,l,!0),l;return n.pendingcb++,z0(I,n,V,T,p)}h0.prototype.write=function(I,V,T){return U0(this,I,V,T)===!0},h0.prototype.cork=function(){this._writableState.corked++},h0.prototype.uncork=function(){let I=this._writableState;if(I.corked){if(I.corked--,!I.writing)w0(this,I)}},h0.prototype.setDefaultEncoding=function(I){if(typeof I==="string")I=H(I);if(!o.isEncoding(I))throw new u(I);return this._writableState.defaultEncoding=I,this};function z0(I,V,T,p,n){let l=V.objectMode?1:T.length;V.length+=l;let $=V.length<V.highWaterMark;if(!$)V.needDrain=!0;if(V.writing||V.corked||V.errored||!V.constructed){if(V.buffered.push({chunk:T,encoding:p,callback:n}),V.allBuffers&&p!=="buffer")V.allBuffers=!1;if(V.allNoop&&n!==A)V.allNoop=!1}else V.writelen=l,V.writecb=n,V.writing=!0,V.sync=!0,I._write(T,p,V.onwrite),V.sync=!1;return $&&!V.errored&&!V.destroyed}function f(I,V,T,p,n,l,$){if(V.writelen=p,V.writecb=$,V.writing=!0,V.sync=!0,V.destroyed)V.onwrite(new Z0("write"));else if(T)I._writev(n,V.onwrite);else I._write(n,l,V.onwrite);V.sync=!1}function Q0(I,V,T,p){--V.pendingcb,p(T),R(V),N(I,T)}function z(I,V){let T=I._writableState,p=T.sync,n=T.writecb;if(typeof n!=="function"){N(I,new _);return}if(T.writing=!1,T.writecb=null,T.length-=T.writelen,T.writelen=0,V){if(V.stack,!T.errored)T.errored=V;if(I._readableState&&!I._readableState.errored)I._readableState.errored=V;if(p)w.nextTick(Q0,I,T,V,n);else Q0(I,T,V,n)}else{if(T.buffered.length>T.bufferedIndex)w0(I,T);if(p)if(T.afterWriteTickInfo!==null&&T.afterWriteTickInfo.cb===n)T.afterWriteTickInfo.count++;else T.afterWriteTickInfo={count:1,cb:n,stream:I,state:T},w.nextTick(c,T.afterWriteTickInfo);else e(I,T,1,n)}}function c({stream:I,state:V,count:T,cb:p}){return V.afterWriteTickInfo=null,e(I,V,T,p)}function e(I,V,T,p){if(!V.ending&&!I.destroyed&&V.length===0&&V.needDrain)V.needDrain=!1,I.emit("drain");while(T-- >0)V.pendingcb--,p();if(V.destroyed)R(V);S(I,V)}function R(I){if(I.writing)return;for(let n=I.bufferedIndex;n<I.buffered.length;++n){var V;let{chunk:l,callback:$}=I.buffered[n],v=I.objectMode?1:l.length;I.length-=v,$((V=I.errored)!==null&&V!==void 0?V:new Z0("write"))}let T=I[E].splice(0);for(let n=0;n<T.length;n++){var p;T[n]((p=I.errored)!==null&&p!==void 0?p:new Z0("end"))}m(I)}function w0(I,V){if(V.corked||V.bufferProcessing||V.destroyed||!V.constructed)return;let{buffered:T,bufferedIndex:p,objectMode:n}=V,l=T.length-p;if(!l)return;let $=p;if(V.bufferProcessing=!0,l>1&&I._writev){V.pendingcb-=l-1;let v=V.allNoop?A:(g)=>{for(let X0=$;X0<T.length;++X0)T[X0].callback(g)},s=V.allNoop&&$===0?T:U(T,$);s.allBuffers=V.allBuffers,f(I,V,!0,V.length,s,"",v),m(V)}else{do{let{chunk:v,encoding:s,callback:g}=T[$];T[$++]=null;let X0=n?1:v.length;f(I,V,!1,X0,v,s,g)}while($<T.length&&!V.writing);if($===T.length)m(V);else if($>256)T.splice(0,$),V.bufferedIndex=0;else V.bufferedIndex=$}V.bufferProcessing=!1}h0.prototype._write=function(I,V,T){if(this._writev)this._writev([{chunk:I,encoding:V}],T);else throw new M("_write()")},h0.prototype._writev=null,h0.prototype.end=function(I,V,T){let p=this._writableState;if(typeof I==="function")T=I,I=null,V=null;else if(typeof V==="function")T=V,V=null;let n;if(I!==null&&I!==void 0){let l=U0(this,I,V);if(l instanceof Q)n=l}if(p.corked)p.corked=1,this.uncork();if(n);else if(!p.errored&&!p.ending)p.ending=!0,S(this,p,!0),p.ended=!0;else if(p.finished)n=new q0("end");else if(p.destroyed)n=new Z0("end");if(typeof T==="function")if(n||p.finished)w.nextTick(T,n);else p[E].push(T);return this};function J0(I){return I.ending&&!I.destroyed&&I.constructed&&I.length===0&&!I.errored&&I.buffered.length===0&&!I.finished&&!I.writing&&!I.errorEmitted&&!I.closeEmitted}function H0(I,V){let T=!1;function p(n){if(T){N(I,n!==null&&n!==void 0?n:_());return}if(T=!0,V.pendingcb--,n){let l=V[E].splice(0);for(let $=0;$<l.length;$++)l[$](n);N(I,n,V.sync)}else if(J0(V))V.prefinished=!0,I.emit("prefinish"),V.pendingcb++,w.nextTick(y,I,V)}V.sync=!0,V.pendingcb++;try{I._final(p)}catch(n){p(n)}V.sync=!1}function Y0(I,V){if(!V.prefinished&&!V.finalCalled)if(typeof I._final==="function"&&!V.destroyed)V.finalCalled=!0,H0(I,V);else V.prefinished=!0,I.emit("prefinish")}function S(I,V,T){if(J0(V)){if(Y0(I,V),V.pendingcb===0){if(T)V.pendingcb++,w.nextTick((p,n)=>{if(J0(n))y(p,n);else n.pendingcb--},I,V);else if(J0(V))V.pendingcb++,y(I,V)}}}function y(I,V){V.pendingcb--,V.finished=!0;let T=V[E].splice(0);for(let p=0;p<T.length;p++)T[p]();if(I.emit("finish"),V.autoDestroy){let p=I._readableState;if(!p||p.autoDestroy&&(p.endEmitted||p.readable===!1))I.destroy()}}Y(h0.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(I){if(this._writableState)this._writableState.destroyed=I}},writable:{__proto__:null,get(){let I=this._writableState;return!!I&&I.writable!==!1&&!I.destroyed&&!I.errored&&!I.ending&&!I.ended},set(I){if(this._writableState)this._writableState.writable=!!I}},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 I=this._writableState;if(!I)return!1;return!I.destroyed&&!I.ending&&I.needDrain}},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 i=r.destroy;h0.prototype.destroy=function(I,V){let T=this._writableState;if(!T.destroyed&&(T.bufferedIndex<T.buffered.length||T[E].length))w.nextTick(R,T);return i.call(this,I,V),this},h0.prototype._undestroy=r.undestroy,h0.prototype._destroy=function(I,V){V(I)},h0.prototype[O.captureRejectionSymbol]=function(I){this.destroy(I)};var F0;function K0(){if(F0===void 0)F0={};return F0}h0.fromWeb=function(I,V){return K0().newStreamWritableFromWritableStream(I,V)},h0.toWeb=function(I){return K0().newWritableStreamFromStreamWritable(I)}}),r8=I0((h,B)=>{var w=Z2(),U=(i0(),R0(d0)),{isReadable:Q,isWritable:X,isIterable:J,isNodeStream:Y,isReadableNodeStream:K,isWritableNodeStream:H,isDuplexNodeStream:G,isReadableStream:C,isWritableStream:O}=m0(),L=s0(),{AbortError:o,codes:{ERR_INVALID_ARG_TYPE:r,ERR_INVALID_RETURN_VALUE:D}}=D0(),{destroyer:x}=z2(),q=l0(),W=k2(),M=w1(),{createDeferredPromise:_}=E0(),d=G6(),Z0=globalThis.Blob||U.Blob,q0=typeof Z0<"u"?function(E){return E instanceof Z0}:function(E){return!1},a=globalThis.AbortController||j2().AbortController,{FunctionPrototypeCall:k}=W0();class u extends q{constructor(E){super(E);if((E===null||E===void 0?void 0:E.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((E===null||E===void 0?void 0:E.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}B.exports=function E(j,m){if(G(j))return j;if(K(j))return A({readable:j});if(H(j))return A({writable:j});if(Y(j))return A({writable:!1,readable:!1});if(C(j))return A({readable:W.fromWeb(j)});if(O(j))return A({writable:M.fromWeb(j)});if(typeof j==="function"){let{value:U0,write:z0,final:f,destroy:Q0}=N(j);if(J(U0))return d(u,U0,{objectMode:!0,write:z0,final:f,destroy:Q0});let z=U0===null||U0===void 0?void 0:U0.then;if(typeof z==="function"){let c,e=k(z,U0,(R)=>{if(R!=null)throw new D("nully","body",R)},(R)=>{x(c,R)});return c=new u({objectMode:!0,readable:!1,write:z0,final(R){f(async()=>{try{await e,w.nextTick(R,null)}catch(w0){w.nextTick(R,w0)}})},destroy:Q0})}throw new D("Iterable, AsyncIterable or AsyncFunction",m,U0)}if(q0(j))return E(j.arrayBuffer());if(J(j))return d(u,j,{objectMode:!0,writable:!1});if(C(j===null||j===void 0?void 0:j.readable)&&O(j===null||j===void 0?void 0:j.writable))return u.fromWeb(j);if(typeof(j===null||j===void 0?void 0:j.writable)==="object"||typeof(j===null||j===void 0?void 0:j.readable)==="object"){let U0=j!==null&&j!==void 0&&j.readable?K(j===null||j===void 0?void 0:j.readable)?j===null||j===void 0?void 0:j.readable:E(j.readable):void 0,z0=j!==null&&j!==void 0&&j.writable?H(j===null||j===void 0?void 0:j.writable)?j===null||j===void 0?void 0:j.writable:E(j.writable):void 0;return A({readable:U0,writable:z0})}let h0=j===null||j===void 0?void 0:j.then;if(typeof h0==="function"){let U0;return k(h0,j,(z0)=>{if(z0!=null)U0.push(z0);U0.push(null)},(z0)=>{x(U0,z0)}),U0=new u({objectMode:!0,writable:!1,read(){}})}throw new r(m,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],j)};function N(E){let{promise:j,resolve:m}=_(),h0=new a,U0=h0.signal;return{value:E(async function*(){while(!0){let z0=j;j=null;let{chunk:f,done:Q0,cb:z}=await z0;if(w.nextTick(z),Q0)return;if(U0.aborted)throw new o(void 0,{cause:U0.reason});({promise:j,resolve:m}=_()),yield f}}(),{signal:U0}),write(z0,f,Q0){let z=m;m=null,z({chunk:z0,done:!1,cb:Q0})},final(z0){let f=m;m=null,f({done:!0,cb:z0})},destroy(z0,f){h0.abort(),f(z0)}}}function A(E){let j=E.readable&&typeof E.readable.read!=="function"?W.wrap(E.readable):E.readable,m=E.writable,h0=!!Q(j),U0=!!X(m),z0,f,Q0,z,c;function e(R){let w0=z;if(z=null,w0)w0(R);else if(R)c.destroy(R)}if(c=new u({readableObjectMode:!!(j!==null&&j!==void 0&&j.readableObjectMode),writableObjectMode:!!(m!==null&&m!==void 0&&m.writableObjectMode),readable:h0,writable:U0}),U0)L(m,(R)=>{if(U0=!1,R)x(j,R);e(R)}),c._write=function(R,w0,J0){if(m.write(R,w0))J0();else z0=J0},c._final=function(R){m.end(),f=R},m.on("drain",function(){if(z0){let R=z0;z0=null,R()}}),m.on("finish",function(){if(f){let R=f;f=null,R()}});if(h0)L(j,(R)=>{if(h0=!1,R)x(j,R);e(R)}),j.on("readable",function(){if(Q0){let R=Q0;Q0=null,R()}}),j.on("end",function(){c.push(null)}),c._read=function(){while(!0){let R=j.read();if(R===null){Q0=c._read;return}if(!c.push(R))return}};return c._destroy=function(R,w0){if(!R&&z!==null)R=new o;if(Q0=null,z0=null,f=null,z===null)w0(R);else z=w0,x(m,R),x(j,R)},c}}),l0=I0((h,B)=>{var{ObjectDefineProperties:w,ObjectGetOwnPropertyDescriptor:U,ObjectKeys:Q,ObjectSetPrototypeOf:X}=W0();B.exports=K;var J=k2(),Y=w1();X(K.prototype,J.prototype),X(K,J);{let O=Q(Y.prototype);for(let L=0;L<O.length;L++){let o=O[L];if(!K.prototype[o])K.prototype[o]=Y.prototype[o]}}function K(O){if(!(this instanceof K))return new K(O);if(J.call(this,O),Y.call(this,O),O){if(this.allowHalfOpen=O.allowHalfOpen!==!1,O.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(O.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}w(K.prototype,{writable:{__proto__:null,...U(Y.prototype,"writable")},writableHighWaterMark:{__proto__:null,...U(Y.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...U(Y.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...U(Y.prototype,"writableBuffer")},writableLength:{__proto__:null,...U(Y.prototype,"writableLength")},writableFinished:{__proto__:null,...U(Y.prototype,"writableFinished")},writableCorked:{__proto__:null,...U(Y.prototype,"writableCorked")},writableEnded:{__proto__:null,...U(Y.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...U(Y.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set(O){if(this._readableState&&this._writableState)this._readableState.destroyed=O,this._writableState.destroyed=O}}});var H;function G(){if(H===void 0)H={};return H}K.fromWeb=function(O,L){return G().newStreamDuplexFromReadableWritablePair(O,L)},K.toWeb=function(O){return G().newReadableWritablePairFromDuplex(O)};var C;K.from=function(O){if(!C)C=r8();return C(O,"body")}}),N6=I0((h,B)=>{var{ObjectSetPrototypeOf:w,Symbol:U}=W0();B.exports=K;var{ERR_METHOD_NOT_IMPLEMENTED:Q}=D0().codes,X=l0(),{getHighWaterMark:J}=R2();w(K.prototype,X.prototype),w(K,X);var Y=U("kCallback");function K(C){if(!(this instanceof K))return new K(C);let O=C?J(this,C,"readableHighWaterMark",!0):null;if(O===0)C={...C,highWaterMark:null,readableHighWaterMark:O,writableHighWaterMark:C.writableHighWaterMark||0};if(X.call(this,C),this._readableState.sync=!1,this[Y]=null,C){if(typeof C.transform==="function")this._transform=C.transform;if(typeof C.flush==="function")this._flush=C.flush}this.on("prefinish",G)}function H(C){if(typeof this._flush==="function"&&!this.destroyed)this._flush((O,L)=>{if(O){if(C)C(O);else this.destroy(O);return}if(L!=null)this.push(L);if(this.push(null),C)C()});else if(this.push(null),C)C()}function G(){if(this._final!==H)H.call(this)}K.prototype._final=H,K.prototype._transform=function(C,O,L){throw new Q("_transform()")},K.prototype._write=function(C,O,L){let o=this._readableState,r=this._writableState,D=o.length;this._transform(C,O,(x,q)=>{if(x){L(x);return}if(q!=null)this.push(q);if(r.ended||D===o.length||o.length<o.highWaterMark)L();else this[Y]=L})},K.prototype._read=function(){if(this[Y]){let C=this[Y];this[Y]=null,C()}}}),W6=I0((h,B)=>{var{ObjectSetPrototypeOf:w}=W0();B.exports=Q;var U=N6();w(Q.prototype,U.prototype),w(Q,U);function Q(X){if(!(this instanceof Q))return new Q(X);U.call(this,X)}Q.prototype._transform=function(X,J,Y){Y(null,X)}}),U1=I0((h,B)=>{var w=Z2(),{ArrayIsArray:U,Promise:Q,SymbolAsyncIterator:X,SymbolDispose:J}=W0(),Y=s0(),{once:K}=E0(),H=z2(),G=l0(),{aggregateTwoErrors:C,codes:{ERR_INVALID_ARG_TYPE:O,ERR_INVALID_RETURN_VALUE:L,ERR_MISSING_ARGS:o,ERR_STREAM_DESTROYED:r,ERR_STREAM_PREMATURE_CLOSE:D},AbortError:x}=D0(),{validateFunction:q,validateAbortSignal:W}=M2(),{isIterable:M,isReadable:_,isReadableNodeStream:d,isNodeStream:Z0,isTransformStream:q0,isWebStream:a,isReadableStream:k,isReadableFinished:u}=m0(),N=globalThis.AbortController||j2().AbortController,A,E,j;function m(R,w0,J0){let H0=!1;R.on("close",()=>{H0=!0});let Y0=Y(R,{readable:w0,writable:J0},(S)=>{H0=!S});return{destroy:(S)=>{if(H0)return;H0=!0,H.destroyer(R,S||new r("pipe"))},cleanup:Y0}}function h0(R){return q(R[R.length-1],"streams[stream.length - 1]"),R.pop()}function U0(R){if(M(R))return R;else if(d(R))return z0(R);throw new O("val",["Readable","Iterable","AsyncIterable"],R)}async function*z0(R){if(!E)E=k2();yield*E.prototype[X].call(R)}async function f(R,w0,J0,{end:H0}){let Y0,S=null,y=(K0)=>{if(K0)Y0=K0;if(S){let I=S;S=null,I()}},i=()=>new Q((K0,I)=>{if(Y0)I(Y0);else S=()=>{if(Y0)I(Y0);else K0()}});w0.on("drain",y);let F0=Y(w0,{readable:!1},y);try{if(w0.writableNeedDrain)await i();for await(let K0 of R)if(!w0.write(K0))await i();if(H0)w0.end(),await i();J0()}catch(K0){J0(Y0!==K0?C(Y0,K0):K0)}finally{F0(),w0.off("drain",y)}}async function Q0(R,w0,J0,{end:H0}){if(q0(w0))w0=w0.writable;let Y0=w0.getWriter();try{for await(let S of R)await Y0.ready,Y0.write(S).catch(()=>{});if(await Y0.ready,H0)await Y0.close();J0()}catch(S){try{await Y0.abort(S),J0(S)}catch(y){J0(y)}}}function z(...R){return c(R,K(h0(R)))}function c(R,w0,J0){if(R.length===1&&U(R[0]))R=R[0];if(R.length<2)throw new o("streams");let H0=new N,Y0=H0.signal,S=J0===null||J0===void 0?void 0:J0.signal,y=[];W(S,"options.signal");function i(){n(new x)}j=j||E0().addAbortListener;let F0;if(S)F0=j(S,i);let K0,I,V=[],T=0;function p(g){n(g,--T===0)}function n(g,X0){var $0;if(g&&(!K0||K0.code==="ERR_STREAM_PREMATURE_CLOSE"))K0=g;if(!K0&&!X0)return;while(V.length)V.shift()(K0);if(($0=F0)===null||$0===void 0||$0[J](),H0.abort(),X0){if(!K0)y.forEach((P0)=>P0());w.nextTick(w0,K0,I)}}let l;for(let g=0;g<R.length;g++){let X0=R[g],$0=g<R.length-1,P0=g>0,T0=$0||(J0===null||J0===void 0?void 0:J0.end)!==!1,e0=g===R.length-1;if(Z0(X0)){let M0=function(L0){if(L0&&L0.name!=="AbortError"&&L0.code!=="ERR_STREAM_PREMATURE_CLOSE")p(L0)};var $=M0;if(T0){let{destroy:L0,cleanup:F2}=m(X0,$0,P0);if(V.push(L0),_(X0)&&e0)y.push(F2)}if(X0.on("error",M0),_(X0)&&e0)y.push(()=>{X0.removeListener("error",M0)})}if(g===0)if(typeof X0==="function"){if(l=X0({signal:Y0}),!M(l))throw new L("Iterable, AsyncIterable or Stream","source",l)}else if(M(X0)||d(X0)||q0(X0))l=X0;else l=G.from(X0);else if(typeof X0==="function"){if(q0(l)){var v;l=U0((v=l)===null||v===void 0?void 0:v.readable)}else l=U0(l);if(l=X0(l,{signal:Y0}),$0){if(!M(l,!0))throw new L("AsyncIterable",`transform[${g-1}]`,l)}else{var s;if(!A)A=W6();let M0=new A({objectMode:!0}),L0=(s=l)===null||s===void 0?void 0:s.then;if(typeof L0==="function")T++,L0.call(l,(y0)=>{if(I=y0,y0!=null)M0.write(y0);if(T0)M0.end();w.nextTick(p)},(y0)=>{M0.destroy(y0),w.nextTick(p,y0)});else if(M(l,!0))T++,f(l,M0,p,{end:T0});else if(k(l)||q0(l)){let y0=l.readable||l;T++,f(y0,M0,p,{end:T0})}else throw new L("AsyncIterable or Promise","destination",l);l=M0;let{destroy:F2,cleanup:q2}=m(l,!1,!0);if(V.push(F2),e0)y.push(q2)}}else if(Z0(X0)){if(d(l)){T+=2;let M0=e(l,X0,p,{end:T0});if(_(X0)&&e0)y.push(M0)}else if(q0(l)||k(l)){let M0=l.readable||l;T++,f(M0,X0,p,{end:T0})}else if(M(l))T++,f(l,X0,p,{end:T0});else throw new O("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],l);l=X0}else if(a(X0)){if(d(l))T++,Q0(U0(l),X0,p,{end:T0});else if(k(l)||M(l))T++,Q0(l,X0,p,{end:T0});else if(q0(l))T++,Q0(l.readable,X0,p,{end:T0});else throw new O("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],l);l=X0}else l=G.from(X0)}if(Y0!==null&&Y0!==void 0&&Y0.aborted||S!==null&&S!==void 0&&S.aborted)w.nextTick(i);return l}function e(R,w0,J0,{end:H0}){let Y0=!1;if(w0.on("close",()=>{if(!Y0)J0(new D)}),R.pipe(w0,{end:!1}),H0){let y=function(){Y0=!0,w0.end()};var S=y;if(u(R))w.nextTick(y);else R.once("end",y)}else J0();return Y(R,{readable:!0,writable:!1},(y)=>{let i=R._readableState;if(y&&y.code==="ERR_STREAM_PREMATURE_CLOSE"&&i&&i.ended&&!i.errored&&!i.errorEmitted)R.once("end",J0).once("error",J0);else J0(y)}),Y(w0,{readable:!1,writable:!0},J0)}B.exports={pipelineImpl:c,pipeline:z}}),C6=I0((h,B)=>{var{pipeline:w}=U1(),U=l0(),{destroyer:Q}=z2(),{isNodeStream:X,isReadable:J,isWritable:Y,isWebStream:K,isTransformStream:H,isWritableStream:G,isReadableStream:C}=m0(),{AbortError:O,codes:{ERR_INVALID_ARG_VALUE:L,ERR_MISSING_ARGS:o}}=D0(),r=s0();B.exports=function(...D){if(D.length===0)throw new o("streams");if(D.length===1)return U.from(D[0]);let x=[...D];if(typeof D[0]==="function")D[0]=U.from(D[0]);if(typeof D[D.length-1]==="function"){let N=D.length-1;D[N]=U.from(D[N])}for(let N=0;N<D.length;++N){if(!X(D[N])&&!K(D[N]))continue;if(N<D.length-1&&!(J(D[N])||C(D[N])||H(D[N])))throw new L(`streams[${N}]`,x[N],"must be readable");if(N>0&&!(Y(D[N])||G(D[N])||H(D[N])))throw new L(`streams[${N}]`,x[N],"must be writable")}let q,W,M,_,d;function Z0(N){let A=_;if(_=null,A)A(N);else if(N)d.destroy(N);else if(!u&&!k)d.destroy()}let q0=D[0],a=w(D,Z0),k=!!(Y(q0)||G(q0)||H(q0)),u=!!(J(a)||C(a)||H(a));if(d=new U({writableObjectMode:!!(q0!==null&&q0!==void 0&&q0.writableObjectMode),readableObjectMode:!!(a!==null&&a!==void 0&&a.readableObjectMode),writable:k,readable:u}),k){if(X(q0))d._write=function(A,E,j){if(q0.write(A,E))j();else q=j},d._final=function(A){q0.end(),W=A},q0.on("drain",function(){if(q){let A=q;q=null,A()}});else if(K(q0)){let A=(H(q0)?q0.writable:q0).getWriter();d._write=async function(E,j,m){try{await A.ready,A.write(E).catch(()=>{}),m()}catch(h0){m(h0)}},d._final=async function(E){try{await A.ready,A.close().catch(()=>{}),W=E}catch(j){E(j)}}}let N=H(a)?a.readable:a;r(N,()=>{if(W){let A=W;W=null,A()}})}if(u){if(X(a))a.on("readable",function(){if(M){let N=M;M=null,N()}}),a.on("end",function(){d.push(null)}),d._read=function(){while(!0){let N=a.read();if(N===null){M=d._read;return}if(!d.push(N))return}};else if(K(a)){let N=(H(a)?a.readable:a).getReader();d._read=async function(){while(!0)try{let{value:A,done:E}=await N.read();if(!d.push(A))return;if(E){d.push(null);return}}catch{return}}}}return d._destroy=function(N,A){if(!N&&_!==null)N=new O;if(M=null,q=null,W=null,_===null)A(N);else if(_=A,X(a))Q(a,N)},d}}),a8=I0((h,B)=>{var w=globalThis.AbortController||j2().AbortController,{codes:{ERR_INVALID_ARG_VALUE:U,ERR_INVALID_ARG_TYPE:Q,ERR_MISSING_ARGS:X,ERR_OUT_OF_RANGE:J},AbortError:Y}=D0(),{validateAbortSignal:K,validateInteger:H,validateObject:G}=M2(),C=W0().Symbol("kWeak"),O=W0().Symbol("kResistStopPropagation"),{finished:L}=s0(),o=C6(),{addAbortSignalNoValidate:r}=_2(),{isWritable:D,isNodeStream:x}=m0(),{deprecate:q}=E0(),{ArrayPrototypePush:W,Boolean:M,MathFloor:_,Number:d,NumberIsNaN:Z0,Promise:q0,PromiseReject:a,PromiseResolve:k,PromisePrototypeThen:u,Symbol:N}=W0(),A=N("kEmpty"),E=N("kEof");function j(S,y){if(y!=null)G(y,"options");if((y===null||y===void 0?void 0:y.signal)!=null)K(y.signal,"options.signal");if(x(S)&&!D(S))throw new U("stream",S,"must be writable");let i=o(this,S);if(y!==null&&y!==void 0&&y.signal)r(y.signal,i);return i}function m(S,y){if(typeof S!=="function")throw new Q("fn",["Function","AsyncFunction"],S);if(y!=null)G(y,"options");if((y===null||y===void 0?void 0:y.signal)!=null)K(y.signal,"options.signal");let i=1;if((y===null||y===void 0?void 0:y.concurrency)!=null)i=_(y.concurrency);let F0=i-1;if((y===null||y===void 0?void 0:y.highWaterMark)!=null)F0=_(y.highWaterMark);return H(i,"options.concurrency",1),H(F0,"options.highWaterMark",0),F0+=i,async function*(){let K0=E0().AbortSignalAny([y===null||y===void 0?void 0:y.signal].filter(M)),I=this,V=[],T={signal:K0},p,n,l=!1,$=0;function v(){l=!0,s()}function s(){$-=1,g()}function g(){if(n&&!l&&$<i&&V.length<F0)n(),n=null}async function X0(){try{for await(let $0 of I){if(l)return;if(K0.aborted)throw new Y;try{if($0=S($0,T),$0===A)continue;$0=k($0)}catch(P0){$0=a(P0)}if($+=1,u($0,s,v),V.push($0),p)p(),p=null;if(!l&&(V.length>=F0||$>=i))await new q0((P0)=>{n=P0})}V.push(E)}catch($0){let P0=a($0);u(P0,s,v),V.push(P0)}finally{if(l=!0,p)p(),p=null}}X0();try{while(!0){while(V.length>0){let $0=await V[0];if($0===E)return;if(K0.aborted)throw new Y;if($0!==A)yield $0;V.shift(),g()}await new q0(($0)=>{p=$0})}}finally{if(l=!0,n)n(),n=null}}.call(this)}function h0(S=void 0){if(S!=null)G(S,"options");if((S===null||S===void 0?void 0:S.signal)!=null)K(S.signal,"options.signal");return async function*(){let y=0;for await(let F0 of this){var i;if(S!==null&&S!==void 0&&(i=S.signal)!==null&&i!==void 0&&i.aborted)throw new Y({cause:S.signal.reason});yield[y++,F0]}}.call(this)}async function U0(S,y=void 0){for await(let i of z.call(this,S,y))return!0;return!1}async function z0(S,y=void 0){if(typeof S!=="function")throw new Q("fn",["Function","AsyncFunction"],S);return!await U0.call(this,async(...i)=>{return!await S(...i)},y)}async function f(S,y){for await(let i of z.call(this,S,y))return i;return}async function Q0(S,y){if(typeof S!=="function")throw new Q("fn",["Function","AsyncFunction"],S);async function i(F0,K0){return await S(F0,K0),A}for await(let F0 of m.call(this,i,y));}function z(S,y){if(typeof S!=="function")throw new Q("fn",["Function","AsyncFunction"],S);async function i(F0,K0){if(await S(F0,K0))return F0;return A}return m.call(this,i,y)}class c extends X{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function e(S,y,i){var F0;if(typeof S!=="function")throw new Q("reducer",["Function","AsyncFunction"],S);if(i!=null)G(i,"options");if((i===null||i===void 0?void 0:i.signal)!=null)K(i.signal,"options.signal");let K0=arguments.length>1;if(i!==null&&i!==void 0&&(F0=i.signal)!==null&&F0!==void 0&&F0.aborted){let n=new Y(void 0,{cause:i.signal.reason});throw this.once("error",()=>{}),await L(this.destroy(n)),n}let I=new w,V=I.signal;if(i!==null&&i!==void 0&&i.signal){let n={once:!0,[C]:this,[O]:!0};i.signal.addEventListener("abort",()=>I.abort(),n)}let T=!1;try{for await(let n of this){var p;if(T=!0,i!==null&&i!==void 0&&(p=i.signal)!==null&&p!==void 0&&p.aborted)throw new Y;if(!K0)y=n,K0=!0;else y=await S(y,n,{signal:V})}if(!T&&!K0)throw new c}finally{I.abort()}return y}async function R(S){if(S!=null)G(S,"options");if((S===null||S===void 0?void 0:S.signal)!=null)K(S.signal,"options.signal");let y=[];for await(let F0 of this){var i;if(S!==null&&S!==void 0&&(i=S.signal)!==null&&i!==void 0&&i.aborted)throw new Y(void 0,{cause:S.signal.reason});W(y,F0)}return y}function w0(S,y){let i=m.call(this,S,y);return async function*(){for await(let F0 of i)yield*F0}.call(this)}function J0(S){if(S=d(S),Z0(S))return 0;if(S<0)throw new J("number",">= 0",S);return S}function H0(S,y=void 0){if(y!=null)G(y,"options");if((y===null||y===void 0?void 0:y.signal)!=null)K(y.signal,"options.signal");return S=J0(S),async function*(){var i;if(y!==null&&y!==void 0&&(i=y.signal)!==null&&i!==void 0&&i.aborted)throw new Y;for await(let K0 of this){var F0;if(y!==null&&y!==void 0&&(F0=y.signal)!==null&&F0!==void 0&&F0.aborted)throw new Y;if(S--<=0)yield K0}}.call(this)}function Y0(S,y=void 0){if(y!=null)G(y,"options");if((y===null||y===void 0?void 0:y.signal)!=null)K(y.signal,"options.signal");return S=J0(S),async function*(){var i;if(y!==null&&y!==void 0&&(i=y.signal)!==null&&i!==void 0&&i.aborted)throw new Y;for await(let K0 of this){var F0;if(y!==null&&y!==void 0&&(F0=y.signal)!==null&&F0!==void 0&&F0.aborted)throw new Y;if(S-- >0)yield K0;if(S<=0)return}}.call(this)}B.exports.streamReturningOperators={asIndexedPairs:q(h0,"readable.asIndexedPairs will be removed in a future version."),drop:H0,filter:z,flatMap:w0,map:m,take:Y0,compose:j},B.exports.promiseReturningOperators={every:z0,forEach:Q0,reduce:e,toArray:R,some:U0,find:f}}),V6=I0((h,B)=>{var{ArrayPrototypePop:w,Promise:U}=W0(),{isIterable:Q,isNodeStream:X,isWebStream:J}=m0(),{pipelineImpl:Y}=U1(),{finished:K}=s0();j6();function H(...G){return new U((C,O)=>{let L,o,r=G[G.length-1];if(r&&typeof r==="object"&&!X(r)&&!Q(r)&&!J(r)){let D=w(G);L=D.signal,o=D.end}Y(G,(D,x)=>{if(D)O(D);else C(x)},{signal:L,end:o})})}B.exports={finished:K,pipeline:H}}),j6=I0((h,B)=>{var{Buffer:w}=(i0(),R0(d0)),{ObjectDefineProperty:U,ObjectKeys:Q,ReflectApply:X}=W0(),{promisify:{custom:J}}=E0(),{streamReturningOperators:Y,promiseReturningOperators:K}=a8(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:H}}=D0(),G=C6(),{setDefaultHighWaterMark:C,getDefaultHighWaterMark:O}=R2(),{pipeline:L}=U1(),{destroyer:o}=z2(),r=s0(),D=V6(),x=m0(),q=B.exports=B1().Stream;q.isDestroyed=x.isDestroyed,q.isDisturbed=x.isDisturbed,q.isErrored=x.isErrored,q.isReadable=x.isReadable,q.isWritable=x.isWritable,q.Readable=k2();for(let M of Q(Y)){let _=function(...Z0){if(new.target)throw H();return q.Readable.from(X(d,this,Z0))},d=Y[M];U(_,"name",{__proto__:null,value:d.name}),U(_,"length",{__proto__:null,value:d.length}),U(q.Readable.prototype,M,{__proto__:null,value:_,enumerable:!1,configurable:!0,writable:!0})}for(let M of Q(K)){let _=function(...Z0){if(new.target)throw H();return X(d,this,Z0)},d=K[M];U(_,"name",{__proto__:null,value:d.name}),U(_,"length",{__proto__:null,value:d.length}),U(q.Readable.prototype,M,{__proto__:null,value:_,enumerable:!1,configurable:!0,writable:!0})}q.Writable=w1(),q.Duplex=l0(),q.Transform=N6(),q.PassThrough=W6(),q.pipeline=L;var{addAbortSignal:W}=_2();q.addAbortSignal=W,q.finished=r,q.destroy=o,q.compose=G,q.setDefaultHighWaterMark=C,q.getDefaultHighWaterMark=O,U(q,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return D}}),U(L,J,{__proto__:null,enumerable:!0,get(){return D.pipeline}}),U(r,J,{__proto__:null,enumerable:!0,get(){return D.finished}}),q.Stream=q,q._isUint8Array=function(M){return M instanceof Uint8Array},q._uint8ArrayToBuffer=function(M){return w.from(M.buffer,M.byteOffset,M.byteLength)}}),s8=I0((h,B)=>{var w=Q1();{let U=j6(),Q=V6(),X=U.Readable.destroy;B.exports=U.Readable,B.exports._uint8ArrayToBuffer=U._uint8ArrayToBuffer,B.exports._isUint8Array=U._isUint8Array,B.exports.isDisturbed=U.isDisturbed,B.exports.isErrored=U.isErrored,B.exports.isReadable=U.isReadable,B.exports.Readable=U.Readable,B.exports.Writable=U.Writable,B.exports.Duplex=U.Duplex,B.exports.Transform=U.Transform,B.exports.PassThrough=U.PassThrough,B.exports.addAbortSignal=U.addAbortSignal,B.exports.finished=U.finished,B.exports.destroy=U.destroy,B.exports.destroy=X,B.exports.pipeline=U.pipeline,B.exports.compose=U.compose,Object.defineProperty(U,"promises",{configurable:!0,enumerable:!0,get(){return Q}}),B.exports.Stream=U.Stream}B.exports.default=B.exports});M6.exports=s8()});import{logger as C0,ModelType as V0}from"@elizaos/core";import{logger as c0}from"@elizaos/core";import{logger as $2}from"@elizaos/core";function N0(h,B,w){let U=h.getSetting(B);if(U!==void 0&&U!==null)return String(U);return process.env[B]??w}function n0(){return typeof globalThis<"u"&&typeof globalThis.document<"u"}function L1(h){return n0()&&!!N0(h,"ELIZAOS_CLOUD_BROWSER_BASE_URL")}function f0(h,B=!1){if(n0())return{};let w=B?d6(h):o0(h);return w?{Authorization:`Bearer ${w}`}:{}}function k0(h){let B=N0(h,"ELIZAOS_CLOUD_BROWSER_BASE_URL"),w=n0()&&B?B:N0(h,"ELIZAOS_CLOUD_BASE_URL","https://www.elizacloud.ai/api/v1");return console.log(`[ELIZAOS_CLOUD] Default base URL: ${w}`),w}function x1(h){let B=n0()?N0(h,"ELIZAOS_CLOUD_BROWSER_EMBEDDING_URL")||N0(h,"ELIZAOS_CLOUD_BROWSER_BASE_URL"):N0(h,"ELIZAOS_CLOUD_EMBEDDING_URL");if(B)return $2.debug(`[ELIZAOS_CLOUD] Using specific embedding base URL: ${B}`),B;return $2.debug("[ELIZAOS_CLOUD] Falling back to general base URL for embeddings."),k0(h)}function o0(h){return N0(h,"ELIZAOS_CLOUD_API_KEY")}function d6(h){let B=N0(h,"ELIZAOS_CLOUD_EMBEDDING_API_KEY");if(B)return $2.debug("[ELIZAOS_CLOUD] Using specific embedding API key (present)"),B;return $2.debug("[ELIZAOS_CLOUD] Falling back to general API key for embeddings."),o0(h)}function A2(h){return N0(h,"ELIZAOS_CLOUD_SMALL_MODEL")??N0(h,"SMALL_MODEL","gpt-4o-mini")}function O2(h){return N0(h,"ELIZAOS_CLOUD_LARGE_MODEL")??N0(h,"LARGE_MODEL","gpt-4o")}function E1(h){return N0(h,"ELIZAOS_CLOUD_IMAGE_DESCRIPTION_MODEL","gpt-4o-mini")??"gpt-4o-mini"}function P1(h){return N0(h,"ELIZAOS_CLOUD_IMAGE_GENERATION_MODEL","openai/gpt-5-nano")??"openai/gpt-5-nano"}function T1(h){let B=N0(h,"ELIZAOS_CLOUD_EXPERIMENTAL_TELEMETRY","false"),w=String(B).toLowerCase(),U=w==="true";return $2.debug(`[ELIZAOS_CLOUD] Experimental telemetry in function: "${B}" (type: ${typeof B}, normalized: "${w}", result: ${U})`),U}function _1(h,B){new Promise(async(w)=>{w();try{if(!o0(B)&&!n0()){c0.warn("ELIZAOS_CLOUD_API_KEY is not set in environment - ElizaOS Cloud functionality will be limited"),c0.info("Get your API key from https://www.elizacloud.ai/dashboard/api-keys");return}try{let U=k0(B),Q=await fetch(`${U}/models`,{headers:{...f0(B)}});if(!Q.ok)c0.warn(`ElizaOS Cloud API key validation failed: ${Q.statusText}`),c0.warn("ElizaOS Cloud functionality will be limited until a valid API key is provided"),c0.info("Get your API key from https://www.elizacloud.ai/dashboard/api-keys");else c0.log("ElizaOS Cloud API key validated successfully")}catch(U){let Q=U instanceof Error?U.message:String(U);c0.warn(`Error validating ElizaOS Cloud API key: ${Q}`),c0.warn("ElizaOS Cloud functionality will be limited until a valid API key is provided")}}catch(U){let Q=U?.errors?.map((X)=>X.message).join(", ")||(U instanceof Error?U.message:String(U));c0.warn(`ElizaOS Cloud plugin configuration issue: ${Q} - You need to configure the ELIZAOS_CLOUD_API_KEY in your environment variables`),c0.info("Get your API key from https://www.elizacloud.ai/dashboard/api-keys")}})}import{logger as L2,ModelType as x2}from"@elizaos/core";import{generateText as m6,streamText as n6}from"ai";import{createOpenAI as i6}from"@ai-sdk/openai";function D2(h){let B=k0(h),w=o0(h)??(L1(h)?"eliza-proxy":void 0);return i6({apiKey:w??"",baseURL:B})}import{EventType as l6}from"@elizaos/core";function b0(h,B,w,U){let Q=typeof w==="string"?w.length>200?`${w.slice(0,200)}…`:w:"",X=Number(U.inputTokens||0),J=Number(U.outputTokens||0),Y=Number(U.totalTokens!=null?U.totalTokens:X+J);h.emitEvent(l6.MODEL_USED,{runtime:h,source:"elizacloud",provider:"elizacloud",type:B,prompt:Q,tokens:{prompt:X,completion:J,total:Y}})}function o6(h,B,w){let{prompt:U,stopSequences:Q=[]}=w,X=w.temperature??0.7,J=w.frequencyPenalty??0.7,Y=w.presencePenalty??0.7,K=w.maxOutputTokens??w.maxTokens??8192,H=D2(h),G=B===x2.TEXT_SMALL?A2(h):O2(h),C=B===x2.TEXT_SMALL?"TEXT_SMALL":"TEXT_LARGE",O=T1(h);return{generateParams:{model:H.languageModel(G),prompt:U,system:h.character.system??void 0,temperature:X,maxOutputTokens:K,frequencyPenalty:J,presencePenalty:Y,stopSequences:Q,experimental_telemetry:{isEnabled:O}},modelName:G,modelLabel:C,prompt:U}}function r6(h,B,w,U,Q){L2.debug(`[ELIZAOS_CLOUD] Streaming text with ${Q} model`);let X=n6(w);return{textStream:X.textStream,text:X.text,usage:X.usage.then((J)=>{if(J){b0(h,B,U,J);let Y=J.inputTokens??0,K=J.outputTokens??0;return{promptTokens:Y,completionTokens:K,totalTokens:Y+K}}return}),finishReason:X.finishReason}}async function R1(h,B,w){let{generateParams:U,modelName:Q,modelLabel:X,prompt:J}=o6(h,B,w);if(L2.debug(`[ELIZAOS_CLOUD] Generating text with ${X} model: ${Q}`),w.stream)return r6(h,B,U,J,X);L2.log(`[ELIZAOS_CLOUD] Using ${X} model: ${Q}`),L2.log(J);let Y=await m6(U);if(Y.usage)b0(h,B,J,Y.usage);return Y.text}async function b2(h,B){return R1(h,x2.TEXT_SMALL,B)}async function p2(h,B){return R1(h,x2.TEXT_LARGE,B)}import{logger as J2,ModelType as L6}from"@elizaos/core";import{generateObject as e8,JSONParseError as h4}from"ai";import{logger as A6}from"@elizaos/core";import{JSONParseError as t8}from"ai";function X1(){return async({text:h,error:B})=>{try{if(B instanceof t8){let w=h.replace(/```json\n|\n```|```/g,"");return JSON.parse(w),w}return null}catch(w){let U=w instanceof Error?w.message:String(w);return A6.warn(`Failed to repair JSON text: ${U}`),null}}}async function O6(h){try{let{Readable:B}=await Promise.resolve().then(() => b6(Q1(),1)),w=h.getReader();return new B({async read(){try{let{done:U,value:Q}=await w.read();if(U)this.push(null);else this.push(Q)}catch(U){this.destroy(U)}},destroy(U,Q){w.cancel().finally(()=>Q(U))}})}catch(B){let w=B instanceof Error?B.message:String(B);throw A6.error(`Failed to load node:stream module: ${w}`),Error("Cannot convert stream: node:stream module unavailable. This feature requires a Node.js environment.")}}function D6(h){let w=h.match(/title[:\s]+(.+?)(?:\n|$)/i)?.[1]?.trim()||"Image Analysis",U=h.replace(/title[:\s]+(.+?)(?:\n|$)/i,"").trim();return{title:w,description:U}}async function x6(h,B,w,U){let Q=D2(h),X=U(h);J2.log(`[ELIZAOS_CLOUD] Using ${w} model: ${X}`);let J=B.temperature??0;if(!!B.schema)J2.info(`Using ${w} without schema validation (schema provided but output=no-schema)`);try{let{object:K,usage:H}=await e8({model:Q.languageModel(X),output:"no-schema",prompt:B.prompt,temperature:J,experimental_repairText:X1()});if(H)b0(h,w,B.prompt,H);return K}catch(K){if(K instanceof h4){J2.error(`[generateObject] Failed to parse JSON: ${K.message}`);let G=await X1()({text:K.text,error:K});if(G)try{let C=JSON.parse(G);return J2.info("[generateObject] Successfully repaired JSON."),C}catch(C){let O=C instanceof Error?C.message:String(C);throw J2.error(`[generateObject] Failed to parse repaired JSON: ${O}`),C}else throw J2.error("[generateObject] JSON repair failed."),K}else{let H=K instanceof Error?K.message:String(K);throw J2.error(`[generateObject] Unknown error: ${H}`),K}}}async function Z1(h,B){return x6(h,B,L6.OBJECT_SMALL,A2)}async function J1(h,B){return x6(h,B,L6.OBJECT_LARGE,O2)}import{logger as O0,ModelType as B4,VECTOR_DIMS as E6}from"@elizaos/core";var S2=100;function w4(h){return{remainingRequests:parseInt(h.headers.get("x-ratelimit-remaining-requests")||"",10)||void 0,remainingTokens:parseInt(h.headers.get("x-ratelimit-remaining-tokens")||"",10)||void 0,limitRequests:parseInt(h.headers.get("x-ratelimit-limit-requests")||"",10)||void 0,limitTokens:parseInt(h.headers.get("x-ratelimit-limit-tokens")||"",10)||void 0,resetRequests:h.headers.get("x-ratelimit-reset-requests")||void 0,resetTokens:h.headers.get("x-ratelimit-reset-tokens")||void 0,retryAfter:parseInt(h.headers.get("retry-after")||"",10)||void 0}}function P6(h){let B=N0(h,"ELIZAOS_CLOUD_EMBEDDING_MODEL","text-embedding-3-small"),w=Number.parseInt(N0(h,"ELIZAOS_CLOUD_EMBEDDING_DIMENSIONS","1536")||"1536",10);if(!Object.values(E6).includes(w)){let U=`Invalid embedding dimension: ${w}. Must be one of: ${Object.values(E6).join(", ")}`;throw O0.error(U),Error(U)}return{embeddingModelName:B,embeddingDimension:w}}function t0(h,B){let w=Array(h).fill(0);return w[0]=B,w}async function q1(h,B){let{embeddingDimension:w}=P6(h);if(B===null)return O0.debug("Creating test embedding for initialization"),t0(w,0.1);let U=B;if(typeof U==="object"&&"texts"in U&&Array.isArray(U.texts))return O0.debug(`[Embeddings] Batch mode: ${U.texts.length} texts`),await F1(h,U.texts);let Q;if(typeof B==="string")Q=B;else if(typeof B==="object"&&B.text)Q=B.text;else return O0.warn("Invalid input format for embedding"),t0(w,0.2);if(!Q.trim())return O0.warn("Empty text for embedding"),t0(w,0.3);return(await F1(h,[Q]))[0]}async function F1(h,B){let{embeddingModelName:w,embeddingDimension:U}=P6(h),Q=x1(h);if(!B||B.length===0)return O0.warn("[BatchEmbeddings] Empty texts array"),[];let X=[],J=Array(B.length);for(let Y=0;Y<B.length;Y++){let K=B[Y]?.trim();if(K)X.push({text:K,originalIndex:Y});else J[Y]=t0(U,0.3)}if(X.length===0)return O0.warn("[BatchEmbeddings] All texts were empty"),J;for(let Y=0;Y<X.length;Y+=S2){let K=Math.min(Y+S2,X.length),H=X.slice(Y,K),G=H.map((C)=>C.text);O0.info(`[BatchEmbeddings] Processing batch ${Math.floor(Y/S2)+1}/${Math.ceil(X.length/S2)}: ${H.length} texts`);try{let C=await fetch(`${Q}/embeddings`,{method:"POST",headers:{...f0(h,!0),"Content-Type":"application/json"},body:JSON.stringify({model:w,input:G})}),O=w4(C);if(O.remainingRequests!==void 0&&O.remainingRequests<50)O0.warn(`[BatchEmbeddings] Rate limit: ${O.remainingRequests}/${O.limitRequests} requests remaining`);if(C.status===429){let o=O.retryAfter||30;O0.warn(`[BatchEmbeddings] Rate limited, waiting ${o}s...`),await new Promise((x)=>setTimeout(x,o*1000));let r=await fetch(`${Q}/embeddings`,{method:"POST",headers:{...f0(h,!0),"Content-Type":"application/json"},body:JSON.stringify({model:w,input:G})});if(!r.ok){O0.error(`[BatchEmbeddings] Retry failed: ${r.status}`);for(let x of H)J[x.originalIndex]=t0(U,0.4);continue}let D=await r.json();if(D?.data){for(let x of D.data){let q=H[x.index].originalIndex;J[q]=x.embedding}O0.info(`[BatchEmbeddings] Retry successful for ${H.length} embeddings`)}continue}if(!C.ok){O0.error(`[BatchEmbeddings] API error: ${C.status} - ${C.statusText}`);for(let o of H)J[o.originalIndex]=t0(U,0.4);continue}let L=await C.json();if(!L?.data||!Array.isArray(L.data)){O0.error("[BatchEmbeddings] API returned invalid structure");for(let o of H)J[o.originalIndex]=t0(U,0.5);continue}for(let o of L.data){let r=H[o.index].originalIndex;J[r]=o.embedding}if(L.usage){let o={inputTokens:L.usage.prompt_tokens,outputTokens:0,totalTokens:L.usage.total_tokens};b0(h,B4.TEXT_EMBEDDING,`batch:${H.length}`,o)}O0.debug(`[BatchEmbeddings] Got ${H.length} embeddings (${U}d), remaining: ${O.remainingRequests??"unknown"}`)}catch(C){let O=C instanceof Error?C.message:String(C);O0.error(`[BatchEmbeddings] Error: ${O}`);for(let L of H)J[L.originalIndex]=t0(U,0.6)}}return J}import{logger as y2,ModelType as U4}from"@elizaos/core";async function K1(h,B){let w=B.count||1,U=B.size||"1024x1024",Q=B.prompt,X=P1(h);y2.log(`[ELIZAOS_CLOUD] Using IMAGE model: ${X}`);let J=k0(h),K={"1024x1024":"1:1","1792x1024":"16:9","1024x1792":"9:16"}[U]||"1:1";try{let H=await fetch(`${J}/generate-image`,{method:"POST",headers:{...f0(h),"Content-Type":"application/json"},body:JSON.stringify({prompt:Q,numImages:w,aspectRatio:K})});if(!H.ok){let O=await H.text();throw Error(`Failed to generate image: ${H.status} ${O}`)}return(await H.json()).images.map((O)=>({url:O.url||O.image}))}catch(H){let G=H instanceof Error?H.message:String(H);throw y2.error(`[ELIZAOS_CLOUD] Image generation error: ${G}`),H}}async function Y1(h,B){let w,U,Q=E1(h);y2.log(`[ELIZAOS_CLOUD] Using IMAGE_DESCRIPTION model: ${Q}`);let X=Number.parseInt(N0(h,"ELIZAOS_CLOUD_IMAGE_DESCRIPTION_MAX_TOKENS","8192")||"8192",10);if(typeof B==="string")w=B,U="Please analyze this image and provide a title and detailed description.";else w=B.imageUrl,U=B.prompt||"Please analyze this image and provide a title and detailed description.";let J=[{role:"user",content:[{type:"text",text:U},{type:"image_url",image_url:{url:w}}]}],Y=k0(h);try{let K={model:Q,messages:J,max_tokens:X},H=await fetch(`${Y}/chat/completions`,{method:"POST",headers:{"Content-Type":"application/json",...f0(h)},body:JSON.stringify(K)});if(!H.ok)throw Error(`ElizaOS Cloud API error: ${H.status}`);let C=await H.json(),O=C.choices?.[0]?.message?.content;if(C.usage)b0(h,U4.IMAGE_DESCRIPTION,typeof B==="string"?B:B.prompt||"",{inputTokens:C.usage.prompt_tokens,outputTokens:C.usage.completion_tokens,totalTokens:C.usage.total_tokens});if(!O)return{title:"Failed to analyze image",description:"No response from API"};return D6(O)}catch(K){let H=K instanceof Error?K.message:String(K);return y2.error(`Error analyzing image: ${H}`),{title:"Failed to analyze image",description:`Error: ${H}`}}}import{logger as m4}from"@elizaos/core";async function z1(h,B){let w=N0(h,"ELIZAOS_CLOUD_TTS_MODEL","gpt-4o-mini-tts"),U=N0(h,"ELIZAOS_CLOUD_TTS_VOICE","nova"),Q=N0(h,"ELIZAOS_CLOUD_TTS_INSTRUCTIONS",""),X=k0(h),J=B.model||w,Y=B.voice||U,K=B.instructions??Q,H=B.format||"mp3";try{let G=await fetch(`${X}/audio/speech`,{method:"POST",headers:{...f0(h),"Content-Type":"application/json",...H==="mp3"?{Accept:"audio/mpeg"}:{}},body:JSON.stringify({model:J,voice:Y,input:B.text,format:H,...K&&{instructions:K}})});if(!G.ok){let C=await G.text();throw Error(`ElizaOS Cloud TTS error ${G.status}: ${C}`)}if(!G.body)throw Error("ElizaOS Cloud TTS response body is null");if(!n0())return await O6(G.body);return G.body}catch(G){let C=G instanceof Error?G.message:String(G);throw Error(`Failed to fetch speech from ElizaOS Cloud TTS: ${C}`)}}var Q4={name:"elizaOSCloud",description:"ElizaOS Cloud plugin - Multi-model AI generation with text, image, and video support",config:{ELIZAOS_CLOUD_API_KEY:process.env.ELIZAOS_CLOUD_API_KEY,ELIZAOS_CLOUD_BASE_URL:process.env.ELIZAOS_CLOUD_BASE_URL,ELIZAOS_CLOUD_SMALL_MODEL:process.env.ELIZAOS_CLOUD_SMALL_MODEL,ELIZAOS_CLOUD_LARGE_MODEL:process.env.ELIZAOS_CLOUD_LARGE_MODEL,SMALL_MODEL:process.env.SMALL_MODEL,LARGE_MODEL:process.env.LARGE_MODEL,ELIZAOS_CLOUD_EMBEDDING_MODEL:process.env.ELIZAOS_CLOUD_EMBEDDING_MODEL,ELIZAOS_CLOUD_EMBEDDING_API_KEY:process.env.ELIZAOS_CLOUD_EMBEDDING_API_KEY,ELIZAOS_CLOUD_EMBEDDING_URL:process.env.ELIZAOS_CLOUD_EMBEDDING_URL,ELIZAOS_CLOUD_EMBEDDING_DIMENSIONS:process.env.ELIZAOS_CLOUD_EMBEDDING_DIMENSIONS,ELIZAOS_CLOUD_IMAGE_DESCRIPTION_MODEL:process.env.ELIZAOS_CLOUD_IMAGE_DESCRIPTION_MODEL,ELIZAOS_CLOUD_IMAGE_DESCRIPTION_MAX_TOKENS:process.env.ELIZAOS_CLOUD_IMAGE_DESCRIPTION_MAX_TOKENS,ELIZAOS_CLOUD_EXPERIMENTAL_TELEMETRY:process.env.ELIZAOS_CLOUD_EXPERIMENTAL_TELEMETRY,ELIZAOS_CLOUD_IMAGE_GENERATION_MODEL:process.env.ELIZAOS_CLOUD_IMAGE_GENERATION_MODEL},async init(h,B){_1(h,B)},models:{[V0.TEXT_EMBEDDING]:q1,[V0.TEXT_SMALL]:b2,[V0.TEXT_LARGE]:p2,[V0.IMAGE]:K1,[V0.IMAGE_DESCRIPTION]:Y1,[V0.OBJECT_SMALL]:Z1,[V0.OBJECT_LARGE]:J1},tests:[{name:"ELIZAOS_CLOUD_plugin_tests",tests:[{name:"ELIZAOS_CLOUD_test_url_and_api_key_validation",fn:async(h)=>{let B=k0(h),w=await fetch(`${B}/models`,{headers:{Authorization:`Bearer ${o0(h)}`}}),U=await w.json();if(C0.log({data:U?.data?.length??"N/A"},"Models Available"),!w.ok)throw Error(`Failed to validate OpenAI API key: ${w.statusText}`)}},{name:"ELIZAOS_CLOUD_test_text_embedding",fn:async(h)=>{try{let B=await h.useModel(V0.TEXT_EMBEDDING,{text:"Hello, world!"});C0.log({embedding:B},"embedding")}catch(B){let w=B instanceof Error?B.message:String(B);throw C0.error(`Error in test_text_embedding: ${w}`),B}}},{name:"ELIZAOS_CLOUD_test_text_large",fn:async(h)=>{try{let B=await h.useModel(V0.TEXT_LARGE,{prompt:"What is the nature of reality in 10 words?"});if(B.length===0)throw Error("Failed to generate text");C0.log({text:B},"generated with test_text_large")}catch(B){let w=B instanceof Error?B.message:String(B);throw C0.error(`Error in test_text_large: ${w}`),B}}},{name:"ELIZAOS_CLOUD_test_text_small",fn:async(h)=>{try{let B=await h.useModel(V0.TEXT_SMALL,{prompt:"What is the nature of reality in 10 words?"});if(B.length===0)throw Error("Failed to generate text");C0.log({text:B},"generated with test_text_small")}catch(B){let w=B instanceof Error?B.message:String(B);throw C0.error(`Error in test_text_small: ${w}`),B}}},{name:"ELIZAOS_CLOUD_test_image_generation",fn:async(h)=>{C0.log("ELIZAOS_CLOUD_test_image_generation");try{let B=await h.useModel(V0.IMAGE,{prompt:"A beautiful sunset over a calm ocean",count:1,size:"1024x1024"});C0.log({image:B},"generated with test_image_generation")}catch(B){let w=B instanceof Error?B.message:String(B);throw C0.error(`Error in test_image_generation: ${w}`),B}}},{name:"image-description",fn:async(h)=>{try{C0.log("ELIZAOS_CLOUD_test_image_description");try{let B=await h.useModel(V0.IMAGE_DESCRIPTION,"https://upload.wikimedia.org/wikipedia/commons/thumb/1/1c/Vitalik_Buterin_TechCrunch_London_2015_%28cropped%29.jpg/537px-Vitalik_Buterin_TechCrunch_London_2015_%28cropped%29.jpg");if(B&&typeof B==="object"&&"title"in B&&"description"in B)C0.log({result:B},"Image description");else C0.error("Invalid image description result format:",B)}catch(B){let w=B instanceof Error?B.message:String(B);C0.error(`Error in image description test: ${w}`)}}catch(B){let w=B instanceof Error?B.message:String(B);C0.error(`Error in ELIZAOS_CLOUD_test_image_description: ${w}`)}}},{name:"ELIZAOS_CLOUD_test_transcription",fn:async(h)=>{C0.log("ELIZAOS_CLOUD_test_transcription");try{let w=await(await fetch("https://upload.wikimedia.org/wikipedia/en/4/40/Chris_Benoit_Voice_Message.ogg")).arrayBuffer(),U=await h.useModel(V0.TRANSCRIPTION,Buffer.from(new Uint8Array(w)));C0.log({transcription:U},"generated with test_transcription")}catch(B){let w=B instanceof Error?B.message:String(B);throw C0.error(`Error in test_transcription: ${w}`),B}}},{name:"ELIZAOS_CLOUD_test_text_tokenizer_encode",fn:async(h)=>{let w=await h.useModel(V0.TEXT_TOKENIZER_ENCODE,{prompt:"Hello tokenizer encode!",modelType:V0.TEXT_SMALL});if(!Array.isArray(w)||w.length===0)throw Error("Failed to tokenize text: expected non-empty array of tokens");C0.log({tokens:w},"Tokenized output")}},{name:"ELIZAOS_CLOUD_test_text_tokenizer_decode",fn:async(h)=>{let w=await h.useModel(V0.TEXT_TOKENIZER_ENCODE,{prompt:"Hello tokenizer decode!",modelType:V0.TEXT_SMALL}),U=await h.useModel(V0.TEXT_TOKENIZER_DECODE,{tokens:w,modelType:V0.TEXT_SMALL});if(U!=="Hello tokenizer decode!")throw Error(`Decoded text does not match original. Expected "Hello tokenizer decode!", got "${U}"`);C0.log({decodedText:U},"Decoded text")}},{name:"ELIZAOS_CLOUD_test_text_to_speech",fn:async(h)=>{try{if(!await z1(h,{text:"Hello, this is a test for text-to-speech."}))throw Error("Failed to generate speech");C0.log("Generated speech successfully")}catch(B){let w=B instanceof Error?B.message:String(B);throw C0.error(`Error in ELIZAOS_CLOUD_test_text_to_speech: ${w}`),B}}}]}]},X4=Q4;export{Q4 as elizaOSCloudPlugin,X4 as default};
|
|
3
3
|
|
|
4
|
-
//# debugId=
|
|
4
|
+
//# debugId=07C340C0DE45763B64756E2164756E21
|