x.length?(o.isBuffer(A)||(A=o.from(A)),A.copy(x,D)):Uint8Array.prototype.set.call(x,A,D);else if(o.isBuffer(A))A.copy(x,D);else throw new TypeError('"list" argument must be an Array of Buffers');D+=A.length}return x};function C(p,h){if(o.isBuffer(p))return p.length;if(ArrayBuffer.isView(p)||V(p,ArrayBuffer))return p.byteLength;if(typeof p!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof p);let g=p.length,x=arguments.length>2&&arguments[2]===!0;if(!x&&g===0)return 0;let D=!1;for(;;)switch(h){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":return M(p).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g*2;case"hex":return g>>>1;case"base64":return K(p).length;default:if(D)return x?-1:M(p).length;h=(""+h).toLowerCase(),D=!0}}o.byteLength=C;function O(p,h,g){let x=!1;if((h===void 0||h<0)&&(h=0),h>this.length||((g===void 0||g>this.length)&&(g=this.length),g<=0)||(g>>>=0,h>>>=0,g<=h))return"";for(p||(p="utf8");;)switch(p){case"hex":return Q(this,h,g);case"utf8":case"utf-8":return z(this,h,g);case"ascii":return ae(this,h,g);case"latin1":case"binary":return Z(this,h,g);case"base64":return I(this,h,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,h,g);default:if(x)throw new TypeError("Unknown encoding: "+p);p=(p+"").toLowerCase(),x=!0}}o.prototype._isBuffer=!0;function N(p,h,g){let x=p[h];p[h]=p[g],p[g]=x}o.prototype.swap16=function(){let p=this.length;if(p%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let h=0;hh&&(p+=" ... "),""},r&&(o.prototype[r]=o.prototype.inspect),o.prototype.compare=function(p,h,g,x,D){if(V(p,Uint8Array)&&(p=o.from(p,p.offset,p.byteLength)),!o.isBuffer(p))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof p);if(h===void 0&&(h=0),g===void 0&&(g=p?p.length:0),x===void 0&&(x=0),D===void 0&&(D=this.length),h<0||g>p.length||x<0||D>this.length)throw new RangeError("out of range index");if(x>=D&&h>=g)return 0;if(x>=D)return-1;if(h>=g)return 1;if(h>>>=0,g>>>=0,x>>>=0,D>>>=0,this===p)return 0;let A=D-x,$=g-h,ne=Math.min(A,$),ge=this.slice(x,D),de=p.slice(h,g);for(let me=0;me2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,J(g)&&(g=D?0:p.length-1),g<0&&(g=p.length+g),g>=p.length){if(D)return-1;g=p.length-1}else if(g<0)if(D)g=0;else return-1;if(typeof h=="string"&&(h=o.from(h,x)),o.isBuffer(h))return h.length===0?-1:R(p,h,g,x,D);if(typeof h=="number")return h=h&255,typeof Uint8Array.prototype.indexOf=="function"?D?Uint8Array.prototype.indexOf.call(p,h,g):Uint8Array.prototype.lastIndexOf.call(p,h,g):R(p,[h],g,x,D);throw new TypeError("val must be string, number or Buffer")}function R(p,h,g,x,D){let A=1,$=p.length,ne=h.length;if(x!==void 0&&(x=String(x).toLowerCase(),x==="ucs2"||x==="ucs-2"||x==="utf16le"||x==="utf-16le")){if(p.length<2||h.length<2)return-1;A=2,$/=2,ne/=2,g/=2}function ge(me,Te){return A===1?me[Te]:me.readUInt16BE(Te*A)}let de;if(D){let me=-1;for(de=g;de<$;de++)if(ge(p,de)===ge(h,me===-1?0:de-me)){if(me===-1&&(me=de),de-me+1===ne)return me*A}else me!==-1&&(de-=de-me),me=-1}else for(g+ne>$&&(g=$-ne),de=g;de>=0;de--){let me=!0;for(let Te=0;TeD&&(x=D)):x=D;let A=h.length;x>A/2&&(x=A/2);let $;for($=0;$>>0,isFinite(g)?(g=g>>>0,x===void 0&&(x="utf8")):(x=g,g=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let D=this.length-h;if((g===void 0||g>D)&&(g=D),p.length>0&&(g<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");x||(x="utf8");let A=!1;for(;;)switch(x){case"hex":return U(this,p,h,g);case"utf8":case"utf-8":return F(this,p,h,g);case"ascii":case"latin1":case"binary":return H(this,p,h,g);case"base64":return Y(this,p,h,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ie(this,p,h,g);default:if(A)throw new TypeError("Unknown encoding: "+x);x=(""+x).toLowerCase(),A=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(p,h,g){return h===0&&g===p.length?e.fromByteArray(p):e.fromByteArray(p.slice(h,g))}function z(p,h,g){g=Math.min(p.length,g);let x=[],D=h;for(;D239?4:A>223?3:A>191?2:1;if(D+ne<=g){let ge,de,me,Te;switch(ne){case 1:A<128&&($=A);break;case 2:ge=p[D+1],(ge&192)===128&&(Te=(A&31)<<6|ge&63,Te>127&&($=Te));break;case 3:ge=p[D+1],de=p[D+2],(ge&192)===128&&(de&192)===128&&(Te=(A&15)<<12|(ge&63)<<6|de&63,Te>2047&&(Te<55296||Te>57343)&&($=Te));break;case 4:ge=p[D+1],de=p[D+2],me=p[D+3],(ge&192)===128&&(de&192)===128&&(me&192)===128&&(Te=(A&15)<<18|(ge&63)<<12|(de&63)<<6|me&63,Te>65535&&Te<1114112&&($=Te))}}$===null?($=65533,ne=1):$>65535&&($-=65536,x.push($>>>10&1023|55296),$=56320|$&1023),x.push($),D+=ne}return oe(x)}let ee=4096;function oe(p){let h=p.length;if(h<=ee)return String.fromCharCode.apply(String,p);let g="",x=0;for(;xx)&&(g=x);let D="";for(let A=h;Ag&&(p=g),h<0?(h+=g,h<0&&(h=0)):h>g&&(h=g),hg)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(p,h,g){p=p>>>0,h=h>>>0,g||ce(p,h,this.length);let x=this[p],D=1,A=0;for(;++A>>0,h=h>>>0,g||ce(p,h,this.length);let x=this[p+--h],D=1;for(;h>0&&(D*=256);)x+=this[p+--h]*D;return x},o.prototype.readUint8=o.prototype.readUInt8=function(p,h){return p=p>>>0,h||ce(p,1,this.length),this[p]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(p,h){return p=p>>>0,h||ce(p,2,this.length),this[p]|this[p+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(p,h){return p=p>>>0,h||ce(p,2,this.length),this[p]<<8|this[p+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(p,h){return p=p>>>0,h||ce(p,4,this.length),(this[p]|this[p+1]<<8|this[p+2]<<16)+this[p+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(p,h){return p=p>>>0,h||ce(p,4,this.length),this[p]*16777216+(this[p+1]<<16|this[p+2]<<8|this[p+3])},o.prototype.readBigUInt64LE=pe(function(p){p=p>>>0,re(p,"offset");let h=this[p],g=this[p+7];(h===void 0||g===void 0)&&_(p,this.length-8);let x=h+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24,D=this[++p]+this[++p]*2**8+this[++p]*2**16+g*2**24;return BigInt(x)+(BigInt(D)<>>0,re(p,"offset");let h=this[p],g=this[p+7];(h===void 0||g===void 0)&&_(p,this.length-8);let x=h*2**24+this[++p]*2**16+this[++p]*2**8+this[++p],D=this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+g;return(BigInt(x)<>>0,h=h>>>0,g||ce(p,h,this.length);let x=this[p],D=1,A=0;for(;++A=D&&(x-=Math.pow(2,8*h)),x},o.prototype.readIntBE=function(p,h,g){p=p>>>0,h=h>>>0,g||ce(p,h,this.length);let x=h,D=1,A=this[p+--x];for(;x>0&&(D*=256);)A+=this[p+--x]*D;return D*=128,A>=D&&(A-=Math.pow(2,8*h)),A},o.prototype.readInt8=function(p,h){return p=p>>>0,h||ce(p,1,this.length),this[p]&128?(255-this[p]+1)*-1:this[p]},o.prototype.readInt16LE=function(p,h){p=p>>>0,h||ce(p,2,this.length);let g=this[p]|this[p+1]<<8;return g&32768?g|4294901760:g},o.prototype.readInt16BE=function(p,h){p=p>>>0,h||ce(p,2,this.length);let g=this[p+1]|this[p]<<8;return g&32768?g|4294901760:g},o.prototype.readInt32LE=function(p,h){return p=p>>>0,h||ce(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},o.prototype.readInt32BE=function(p,h){return p=p>>>0,h||ce(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},o.prototype.readBigInt64LE=pe(function(p){p=p>>>0,re(p,"offset");let h=this[p],g=this[p+7];(h===void 0||g===void 0)&&_(p,this.length-8);let x=this[p+4]+this[p+5]*2**8+this[p+6]*2**16+(g<<24);return(BigInt(x)<>>0,re(p,"offset");let h=this[p],g=this[p+7];(h===void 0||g===void 0)&&_(p,this.length-8);let x=(h<<24)+this[++p]*2**16+this[++p]*2**8+this[++p];return(BigInt(x)<>>0,h||ce(p,4,this.length),t.read(this,p,!0,23,4)},o.prototype.readFloatBE=function(p,h){return p=p>>>0,h||ce(p,4,this.length),t.read(this,p,!1,23,4)},o.prototype.readDoubleLE=function(p,h){return p=p>>>0,h||ce(p,8,this.length),t.read(this,p,!0,52,8)},o.prototype.readDoubleBE=function(p,h){return p=p>>>0,h||ce(p,8,this.length),t.read(this,p,!1,52,8)};function _e(p,h,g,x,D,A){if(!o.isBuffer(p))throw new TypeError('"buffer" argument must be a Buffer instance');if(h>D||hp.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(p,h,g,x){if(p=+p,h=h>>>0,g=g>>>0,!x){let $=Math.pow(2,8*g)-1;_e(this,p,h,g,$,0)}let D=1,A=0;for(this[h]=p&255;++A>>0,g=g>>>0,!x){let $=Math.pow(2,8*g)-1;_e(this,p,h,g,$,0)}let D=g-1,A=1;for(this[h+D]=p&255;--D>=0&&(A*=256);)this[h+D]=p/A&255;return h+g},o.prototype.writeUint8=o.prototype.writeUInt8=function(p,h,g){return p=+p,h=h>>>0,g||_e(this,p,h,1,255,0),this[h]=p&255,h+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(p,h,g){return p=+p,h=h>>>0,g||_e(this,p,h,2,65535,0),this[h]=p&255,this[h+1]=p>>>8,h+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(p,h,g){return p=+p,h=h>>>0,g||_e(this,p,h,2,65535,0),this[h]=p>>>8,this[h+1]=p&255,h+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(p,h,g){return p=+p,h=h>>>0,g||_e(this,p,h,4,4294967295,0),this[h+3]=p>>>24,this[h+2]=p>>>16,this[h+1]=p>>>8,this[h]=p&255,h+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(p,h,g){return p=+p,h=h>>>0,g||_e(this,p,h,4,4294967295,0),this[h]=p>>>24,this[h+1]=p>>>16,this[h+2]=p>>>8,this[h+3]=p&255,h+4};function j(p,h,g,x,D){te(h,x,D,p,g,7);let A=Number(h&BigInt(4294967295));p[g++]=A,A=A>>8,p[g++]=A,A=A>>8,p[g++]=A,A=A>>8,p[g++]=A;let $=Number(h>>BigInt(32)&BigInt(4294967295));return p[g++]=$,$=$>>8,p[g++]=$,$=$>>8,p[g++]=$,$=$>>8,p[g++]=$,g}function se(p,h,g,x,D){te(h,x,D,p,g,7);let A=Number(h&BigInt(4294967295));p[g+7]=A,A=A>>8,p[g+6]=A,A=A>>8,p[g+5]=A,A=A>>8,p[g+4]=A;let $=Number(h>>BigInt(32)&BigInt(4294967295));return p[g+3]=$,$=$>>8,p[g+2]=$,$=$>>8,p[g+1]=$,$=$>>8,p[g]=$,g+8}o.prototype.writeBigUInt64LE=pe(function(p,h=0){return j(this,p,h,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=pe(function(p,h=0){return se(this,p,h,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(p,h,g,x){if(p=+p,h=h>>>0,!x){let ne=Math.pow(2,8*g-1);_e(this,p,h,g,ne-1,-ne)}let D=0,A=1,$=0;for(this[h]=p&255;++D>0)-$&255;return h+g},o.prototype.writeIntBE=function(p,h,g,x){if(p=+p,h=h>>>0,!x){let ne=Math.pow(2,8*g-1);_e(this,p,h,g,ne-1,-ne)}let D=g-1,A=1,$=0;for(this[h+D]=p&255;--D>=0&&(A*=256);)p<0&&$===0&&this[h+D+1]!==0&&($=1),this[h+D]=(p/A>>0)-$&255;return h+g},o.prototype.writeInt8=function(p,h,g){return p=+p,h=h>>>0,g||_e(this,p,h,1,127,-128),p<0&&(p=255+p+1),this[h]=p&255,h+1},o.prototype.writeInt16LE=function(p,h,g){return p=+p,h=h>>>0,g||_e(this,p,h,2,32767,-32768),this[h]=p&255,this[h+1]=p>>>8,h+2},o.prototype.writeInt16BE=function(p,h,g){return p=+p,h=h>>>0,g||_e(this,p,h,2,32767,-32768),this[h]=p>>>8,this[h+1]=p&255,h+2},o.prototype.writeInt32LE=function(p,h,g){return p=+p,h=h>>>0,g||_e(this,p,h,4,2147483647,-2147483648),this[h]=p&255,this[h+1]=p>>>8,this[h+2]=p>>>16,this[h+3]=p>>>24,h+4},o.prototype.writeInt32BE=function(p,h,g){return p=+p,h=h>>>0,g||_e(this,p,h,4,2147483647,-2147483648),p<0&&(p=4294967295+p+1),this[h]=p>>>24,this[h+1]=p>>>16,this[h+2]=p>>>8,this[h+3]=p&255,h+4},o.prototype.writeBigInt64LE=pe(function(p,h=0){return j(this,p,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=pe(function(p,h=0){return se(this,p,h,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function fe(p,h,g,x,D,A){if(g+x>p.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function Ae(p,h,g,x,D){return h=+h,g=g>>>0,D||fe(p,h,g,4),t.write(p,h,g,x,23,4),g+4}o.prototype.writeFloatLE=function(p,h,g){return Ae(this,p,h,!0,g)},o.prototype.writeFloatBE=function(p,h,g){return Ae(this,p,h,!1,g)};function ue(p,h,g,x,D){return h=+h,g=g>>>0,D||fe(p,h,g,8),t.write(p,h,g,x,52,8),g+8}o.prototype.writeDoubleLE=function(p,h,g){return ue(this,p,h,!0,g)},o.prototype.writeDoubleBE=function(p,h,g){return ue(this,p,h,!1,g)},o.prototype.copy=function(p,h,g,x){if(!o.isBuffer(p))throw new TypeError("argument should be a Buffer");if(g||(g=0),!x&&x!==0&&(x=this.length),h>=p.length&&(h=p.length),h||(h=0),x>0&&x=this.length)throw new RangeError("Index out of range");if(x<0)throw new RangeError("sourceEnd out of bounds");x>this.length&&(x=this.length),p.length-h>>0,g=g===void 0?this.length:g>>>0,p||(p=0);let D;if(typeof p=="number")for(D=h;D2**32?D=q(String(g)):typeof g=="bigint"&&(D=String(g),(g>BigInt(2)**BigInt(32)||g<-(BigInt(2)**BigInt(32)))&&(D=q(D)),D+="n"),x+=` It must be ${h}. Received ${D}`,x},RangeError);function q(p){let h="",g=p.length,x=p[0]==="-"?1:0;for(;g>=x+4;g-=3)h=`_${p.slice(g-3,g)}${h}`;return`${p.slice(0,g)}${h}`}function X(p,h,g){re(h,"offset"),(p[h]===void 0||p[h+g]===void 0)&&_(h,p.length-(g+1))}function te(p,h,g,x,D,A){if(p>g||p3?h===0||h===BigInt(0)?ne=`>= 0${$} and < 2${$} ** ${(A+1)*8}${$}`:ne=`>= -(2${$} ** ${(A+1)*8-1}${$}) and < 2 ** ${(A+1)*8-1}${$}`:ne=`>= ${h}${$} and <= ${g}${$}`,new E.ERR_OUT_OF_RANGE("value",ne,p)}X(x,D,A)}function re(p,h){if(typeof p!="number")throw new E.ERR_INVALID_ARG_TYPE(h,"number",p)}function _(p,h,g){throw Math.floor(p)!==p?(re(p,g),new E.ERR_OUT_OF_RANGE(g||"offset","an integer",p)):h<0?new E.ERR_BUFFER_OUT_OF_BOUNDS:new E.ERR_OUT_OF_RANGE(g||"offset",`>= ${g?1:0} and <= ${h}`,p)}let P=/[^+/0-9A-Za-z-_]/g;function w(p){if(p=p.split("=")[0],p=p.trim().replace(P,""),p.length<2)return"";for(;p.length%4!==0;)p=p+"=";return p}function M(p,h){h=h||1/0;let g,x=p.length,D=null,A=[];for(let $=0;$55295&&g<57344){if(!D){if(g>56319){(h-=3)>-1&&A.push(239,191,189);continue}else if($+1===x){(h-=3)>-1&&A.push(239,191,189);continue}D=g;continue}if(g<56320){(h-=3)>-1&&A.push(239,191,189),D=g;continue}g=(D-55296<<10|g-56320)+65536}else D&&(h-=3)>-1&&A.push(239,191,189);if(D=null,g<128){if((h-=1)<0)break;A.push(g)}else if(g<2048){if((h-=2)<0)break;A.push(g>>6|192,g&63|128)}else if(g<65536){if((h-=3)<0)break;A.push(g>>12|224,g>>6&63|128,g&63|128)}else if(g<1114112){if((h-=4)<0)break;A.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else throw new Error("Invalid code point")}return A}function k(p){let h=[];for(let g=0;g>8,D=g%256,A.push(D),A.push(x);return A}function K(p){return e.toByteArray(w(p))}function L(p,h,g,x){let D;for(D=0;D=h.length||D>=p.length);++D)h[D+g]=p[D];return D}function V(p,h){return p instanceof h||p!=null&&p.constructor!=null&&p.constructor.name!=null&&p.constructor.name===h.name}function J(p){return p!==p}let le=function(){let p="0123456789abcdef",h=new Array(256);for(let g=0;g<16;++g){let x=g*16;for(let D=0;D<16;++D)h[x+D]=p[g]+p[D]}return h}();function pe(p){return typeof BigInt>"u"?Se:p}function Se(){throw new Error("BigInt not supported")}return Cr}var Tn,Fa,Zn,$a,Cr,Wa,sr,Ln,Lh,Nh,dt=lt(()=>{ye(),ve(),be(),Tn={},Fa=!1,Zn={},$a=!1,Cr={},Wa=!1,sr=bb(),sr.Buffer,sr.SlowBuffer,sr.INSPECT_MAX_BYTES,sr.kMaxLength,Ln=sr.Buffer,Lh=sr.INSPECT_MAX_BYTES,Nh=sr.kMaxLength}),ve=lt(()=>{dt()}),vb=Ee(e=>{ye(),ve(),be(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(r){this.aliasToTopic={},this.max=r}put(r,n){return n===0||n>this.max?!1:(this.aliasToTopic[n]=r,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(r){return this.aliasToTopic[r]}clear(){this.aliasToTopic={}}};e.default=t}),it=Ee((e,t)=>{ye(),ve(),be(),t.exports={ArrayIsArray(r){return Array.isArray(r)},ArrayPrototypeIncludes(r,n){return r.includes(n)},ArrayPrototypeIndexOf(r,n){return r.indexOf(n)},ArrayPrototypeJoin(r,n){return r.join(n)},ArrayPrototypeMap(r,n){return r.map(n)},ArrayPrototypePop(r,n){return r.pop(n)},ArrayPrototypePush(r,n){return r.push(n)},ArrayPrototypeSlice(r,n,a){return r.slice(n,a)},Error,FunctionPrototypeCall(r,n,...a){return r.call(n,...a)},FunctionPrototypeSymbolHasInstance(r,n){return Function.prototype[Symbol.hasInstance].call(r,n)},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(r,n){return Object.defineProperties(r,n)},ObjectDefineProperty(r,n,a){return Object.defineProperty(r,n,a)},ObjectGetOwnPropertyDescriptor(r,n){return Object.getOwnPropertyDescriptor(r,n)},ObjectKeys(r){return Object.keys(r)},ObjectSetPrototypeOf(r,n){return Object.setPrototypeOf(r,n)},Promise,PromisePrototypeCatch(r,n){return r.catch(n)},PromisePrototypeThen(r,n,a){return r.then(n,a)},PromiseReject(r){return Promise.reject(r)},ReflectApply:Reflect.apply,RegExpPrototypeTest(r,n){return r.test(n)},SafeSet:Set,String,StringPrototypeSlice(r,n,a){return r.slice(n,a)},StringPrototypeToLowerCase(r){return r.toLowerCase()},StringPrototypeToUpperCase(r){return r.toUpperCase()},StringPrototypeTrim(r){return r.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(r,n,a){return r.set(n,a)},Uint8Array}}),dr=Ee((e,t)=>{ye(),ve(),be();var r=(dt(),De(ht)),n=Object.getPrototypeOf(async function(){}).constructor,a=globalThis.Blob||r.Blob,i=typeof a<"u"?function(l){return l instanceof a}:function(l){return!1},o=class extends Error{constructor(l){if(!Array.isArray(l))throw new TypeError(`Expected input to be an Array, got ${typeof l}`);let s="";for(let u=0;u{l=u,s=c}),resolve:l,reject:s}},promisify(l){return new Promise((s,u)=>{l((c,...f)=>c?u(c):s(...f))})},debuglog(){return function(){}},format(l,...s){return l.replace(/%([sdifj])/g,function(...[u,c]){let f=s.shift();return c==="f"?f.toFixed(6):c==="j"?JSON.stringify(f):c==="s"&&typeof f=="object"?`${f.constructor!==Object?f.constructor.name:""} {}`.trim():f.toString()})},inspect(l){switch(typeof l){case"string":if(l.includes("'"))if(l.includes('"')){if(!l.includes("`")&&!l.includes("${"))return`\`${l}\``}else return`"${l}"`;return`'${l}'`;case"number":return isNaN(l)?"NaN":Object.is(l,-0)?String(l):l;case"bigint":return`${String(l)}n`;case"boolean":case"undefined":return String(l);case"object":return"{}"}},types:{isAsyncFunction(l){return l instanceof n},isArrayBufferView(l){return ArrayBuffer.isView(l)}},isBlob:i},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),Nl=Ee((e,t)=>{ye(),ve(),be();var{AbortController:r,AbortSignal:n}=typeof self<"u"?self:typeof window<"u"?window:void 0;t.exports=r,t.exports.AbortSignal=n,t.exports.default=r}),At=Ee((e,t)=>{ye(),ve(),be();var{format:r,inspect:n,AggregateError:a}=dr(),i=globalThis.AggregateError||a,o=Symbol("kIsNodeError"),l=["string","function","number","object","Function","Object","boolean","bigint","symbol"],s=/^([A-Z][a-z0-9]*)+$/,u="__node_internal_",c={};function f(C,O){if(!C)throw new c.ERR_INTERNAL_ASSERTION(O)}function d(C){let O="",N=C.length,v=C[0]==="-"?1:0;for(;N>=v+4;N-=3)O=`_${C.slice(N-3,N)}${O}`;return`${C.slice(0,N)}${O}`}function m(C,O,N){if(typeof O=="function")return f(O.length<=N.length,`Code: ${C}; The provided arguments length (${N.length}) does not match the required ones (${O.length}).`),O(...N);let v=(O.match(/%[dfijoOs]/g)||[]).length;return f(v===N.length,`Code: ${C}; The provided arguments length (${N.length}) does not match the required ones (${v}).`),N.length===0?O:r(O,...N)}function y(C,O,N){N||(N=Error);class v extends N{constructor(...U){super(m(C,O,U))}toString(){return`${this.name} [${C}]: ${this.message}`}}Object.defineProperties(v.prototype,{name:{value:N.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${C}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),v.prototype.code=C,v.prototype[o]=!0,c[C]=v}function b(C){let O=u+C.name;return Object.defineProperty(C,"name",{value:O}),C}function T(C,O){if(C&&O&&C!==O){if(Array.isArray(O.errors))return O.errors.push(C),O;let N=new i([O,C],O.message);return N.code=O.code,N}return C||O}var B=class extends Error{constructor(C="The operation was aborted",O=void 0){if(O!==void 0&&typeof O!="object")throw new c.ERR_INVALID_ARG_TYPE("options","Object",O);super(C,O),this.code="ABORT_ERR",this.name="AbortError"}};y("ERR_ASSERTION","%s",Error),y("ERR_INVALID_ARG_TYPE",(C,O,N)=>{f(typeof C=="string","'name' must be a string"),Array.isArray(O)||(O=[O]);let v="The ";C.endsWith(" argument")?v+=`${C} `:v+=`"${C}" ${C.includes(".")?"property":"argument"} `,v+="must be ";let R=[],U=[],F=[];for(let Y of O)f(typeof Y=="string","All expected entries have to be of type string"),l.includes(Y)?R.push(Y.toLowerCase()):s.test(Y)?U.push(Y):(f(Y!=="object",'The value "object" should be written as "Object"'),F.push(Y));if(U.length>0){let Y=R.indexOf("object");Y!==-1&&(R.splice(R,Y,1),U.push("Object"))}if(R.length>0){switch(R.length){case 1:v+=`of type ${R[0]}`;break;case 2:v+=`one of type ${R[0]} or ${R[1]}`;break;default:{let Y=R.pop();v+=`one of type ${R.join(", ")}, or ${Y}`}}(U.length>0||F.length>0)&&(v+=" or ")}if(U.length>0){switch(U.length){case 1:v+=`an instance of ${U[0]}`;break;case 2:v+=`an instance of ${U[0]} or ${U[1]}`;break;default:{let Y=U.pop();v+=`an instance of ${U.join(", ")}, or ${Y}`}}F.length>0&&(v+=" or ")}switch(F.length){case 0:break;case 1:F[0].toLowerCase()!==F[0]&&(v+="an "),v+=`${F[0]}`;break;case 2:v+=`one of ${F[0]} or ${F[1]}`;break;default:{let Y=F.pop();v+=`one of ${F.join(", ")}, or ${Y}`}}if(N==null)v+=`. Received ${N}`;else if(typeof N=="function"&&N.name)v+=`. Received function ${N.name}`;else if(typeof N=="object"){var H;if((H=N.constructor)!==null&&H!==void 0&&H.name)v+=`. Received an instance of ${N.constructor.name}`;else{let Y=n(N,{depth:-1});v+=`. Received ${Y}`}}else{let Y=n(N,{colors:!1});Y.length>25&&(Y=`${Y.slice(0,25)}...`),v+=`. Received type ${typeof N} (${Y})`}return v},TypeError),y("ERR_INVALID_ARG_VALUE",(C,O,N="is invalid")=>{let v=n(O);return v.length>128&&(v=v.slice(0,128)+"..."),`The ${C.includes(".")?"property":"argument"} '${C}' ${N}. Received ${v}`},TypeError),y("ERR_INVALID_RETURN_VALUE",(C,O,N)=>{var v;let R=N!=null&&(v=N.constructor)!==null&&v!==void 0&&v.name?`instance of ${N.constructor.name}`:`type ${typeof N}`;return`Expected ${C} to be returned from the "${O}" function but got ${R}.`},TypeError),y("ERR_MISSING_ARGS",(...C)=>{f(C.length>0,"At least one arg needs to be specified");let O,N=C.length;switch(C=(Array.isArray(C)?C:[C]).map(v=>`"${v}"`).join(" or "),N){case 1:O+=`The ${C[0]} argument`;break;case 2:O+=`The ${C[0]} and ${C[1]} arguments`;break;default:{let v=C.pop();O+=`The ${C.join(", ")}, and ${v} arguments`}break}return`${O} must be specified`},TypeError),y("ERR_OUT_OF_RANGE",(C,O,N)=>{f(O,'Missing "range" argument');let v;return Number.isInteger(N)&&Math.abs(N)>2**32?v=d(String(N)):typeof N=="bigint"?(v=String(N),(N>2n**32n||N<-(2n**32n))&&(v=d(v)),v+="n"):v=n(N),`The value of "${C}" is out of range. It must be ${O}. Received ${v}`},RangeError),y("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),y("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),y("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),y("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),y("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),y("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),y("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),y("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),y("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),y("ERR_STREAM_WRITE_AFTER_END","write after end",Error),y("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),t.exports={AbortError:B,aggregateTwoErrors:b(T),hideStackFrames:b,codes:c}}),No=Ee((e,t)=>{ye(),ve(),be();var{ArrayIsArray:r,ArrayPrototypeIncludes:n,ArrayPrototypeJoin:a,ArrayPrototypeMap:i,NumberIsInteger:o,NumberIsNaN:l,NumberMAX_SAFE_INTEGER:s,NumberMIN_SAFE_INTEGER:u,NumberParseInt:c,ObjectPrototypeHasOwnProperty:f,RegExpPrototypeExec:d,String:m,StringPrototypeToUpperCase:y,StringPrototypeTrim:b}=it(),{hideStackFrames:T,codes:{ERR_SOCKET_BAD_PORT:B,ERR_INVALID_ARG_TYPE:C,ERR_INVALID_ARG_VALUE:O,ERR_OUT_OF_RANGE:N,ERR_UNKNOWN_SIGNAL:v}}=At(),{normalizeEncoding:R}=dr(),{isAsyncFunction:U,isArrayBufferView:F}=dr().types,H={};function Y(L){return L===(L|0)}function ie(L){return L===L>>>0}var I=/^[0-7]+$/,z="must be a 32-bit unsigned integer or an octal string";function ee(L,V,J){if(typeof L>"u"&&(L=J),typeof L=="string"){if(d(I,L)===null)throw new O(V,L,z);L=c(L,8)}return Z(L,V),L}var oe=T((L,V,J=u,le=s)=>{if(typeof L!="number")throw new C(V,"number",L);if(!o(L))throw new N(V,"an integer",L);if(Lle)throw new N(V,`>= ${J} && <= ${le}`,L)}),ae=T((L,V,J=-2147483648,le=2147483647)=>{if(typeof L!="number")throw new C(V,"number",L);if(!o(L))throw new N(V,"an integer",L);if(Lle)throw new N(V,`>= ${J} && <= ${le}`,L)}),Z=T((L,V,J=!1)=>{if(typeof L!="number")throw new C(V,"number",L);if(!o(L))throw new N(V,"an integer",L);let le=J?1:0,pe=4294967295;if(Lpe)throw new N(V,`>= ${le} && <= ${pe}`,L)});function Q(L,V){if(typeof L!="string")throw new C(V,"string",L)}function he(L,V,J=void 0,le){if(typeof L!="number")throw new C(V,"number",L);if(J!=null&&Lle||(J!=null||le!=null)&&l(L))throw new N(V,`${J!=null?`>= ${J}`:""}${J!=null&&le!=null?" && ":""}${le!=null?`<= ${le}`:""}`,L)}var ce=T((L,V,J)=>{if(!n(J,L)){let le="must be one of: "+a(i(J,pe=>typeof pe=="string"?`'${pe}'`:m(pe)),", ");throw new O(V,L,le)}});function _e(L,V){if(typeof L!="boolean")throw new C(V,"boolean",L)}function j(L,V,J){return L==null||!f(L,V)?J:L[V]}var se=T((L,V,J=null)=>{let le=j(J,"allowArray",!1),pe=j(J,"allowFunction",!1);if(!j(J,"nullable",!1)&&L===null||!le&&r(L)||typeof L!="object"&&(!pe||typeof L!="function"))throw new C(V,"Object",L)}),fe=T((L,V)=>{if(L!=null&&typeof L!="object"&&typeof L!="function")throw new C(V,"a dictionary",L)}),Ae=T((L,V,J=0)=>{if(!r(L))throw new C(V,"Array",L);if(L.length{if(!F(L))throw new C(V,["Buffer","TypedArray","DataView"],L)});function X(L,V){let J=R(V),le=L.length;if(J==="hex"&&le%2!==0)throw new O("encoding",V,`is invalid for data of length ${le}`)}function te(L,V="Port",J=!0){if(typeof L!="number"&&typeof L!="string"||typeof L=="string"&&b(L).length===0||+L!==+L>>>0||L>65535||L===0&&!J)throw new B(V,L,J);return L|0}var re=T((L,V)=>{if(L!==void 0&&(L===null||typeof L!="object"||!("aborted"in L)))throw new C(V,"AbortSignal",L)}),_=T((L,V)=>{if(typeof L!="function")throw new C(V,"Function",L)}),P=T((L,V)=>{if(typeof L!="function"||U(L))throw new C(V,"Function",L)}),w=T((L,V)=>{if(L!==void 0)throw new C(V,"undefined",L)});function M(L,V,J){if(!n(J,L))throw new C(V,`('${a(J,"|")}')`,L)}var k=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function G(L,V){if(typeof L>"u"||!d(k,L))throw new O(V,L,'must be an array or string of format "; rel=preload; as=style"')}function K(L){if(typeof L=="string")return G(L,"hints"),L;if(r(L)){let V=L.length,J="";if(V===0)return J;for(let le=0;le; rel=preload; as=style"')}t.exports={isInt32:Y,isUint32:ie,parseFileMode:ee,validateArray:Ae,validateStringArray:ue,validateBooleanArray:E,validateBoolean:_e,validateBuffer:q,validateDictionary:fe,validateEncoding:X,validateFunction:_,validateInt32:ae,validateInteger:oe,validateNumber:he,validateObject:se,validateOneOf:ce,validatePlainFunction:P,validatePort:te,validateSignalName:S,validateString:Q,validateUint32:Z,validateUndefined:w,validateUnion:M,validateAbortSignal:re,validateLinkHeaderValue:K}}),vn=Ee((e,t)=>{ye(),ve(),be();var r=t.exports={},n,a;function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?n=setTimeout:n=i}catch{n=i}try{typeof clearTimeout=="function"?a=clearTimeout:a=o}catch{a=o}})();function l(B){if(n===setTimeout)return setTimeout(B,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(B,0);try{return n(B,0)}catch{try{return n.call(null,B,0)}catch{return n.call(this,B,0)}}}function s(B){if(a===clearTimeout)return clearTimeout(B);if((a===o||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(B);try{return a(B)}catch{try{return a.call(null,B)}catch{return a.call(this,B)}}}var u=[],c=!1,f,d=-1;function m(){!c||!f||(c=!1,f.length?u=f.concat(u):d=-1,u.length&&y())}function y(){if(!c){var B=l(m);c=!0;for(var C=u.length;C;){for(f=u,u=[];++d1)for(var O=1;O{ye(),ve(),be();var{Symbol:r,SymbolAsyncIterator:n,SymbolIterator:a,SymbolFor:i}=it(),o=r("kDestroyed"),l=r("kIsErrored"),s=r("kIsReadable"),u=r("kIsDisturbed"),c=i("nodejs.webstream.isClosedPromise"),f=i("nodejs.webstream.controllerErrorFunction");function d(j,se=!1){var fe;return!!(j&&typeof j.pipe=="function"&&typeof j.on=="function"&&(!se||typeof j.pause=="function"&&typeof j.resume=="function")&&(!j._writableState||((fe=j._readableState)===null||fe===void 0?void 0:fe.readable)!==!1)&&(!j._writableState||j._readableState))}function m(j){var se;return!!(j&&typeof j.write=="function"&&typeof j.on=="function"&&(!j._readableState||((se=j._writableState)===null||se===void 0?void 0:se.writable)!==!1))}function y(j){return!!(j&&typeof j.pipe=="function"&&j._readableState&&typeof j.on=="function"&&typeof j.write=="function")}function b(j){return j&&(j._readableState||j._writableState||typeof j.write=="function"&&typeof j.on=="function"||typeof j.pipe=="function"&&typeof j.on=="function")}function T(j){return!!(j&&!b(j)&&typeof j.pipeThrough=="function"&&typeof j.getReader=="function"&&typeof j.cancel=="function")}function B(j){return!!(j&&!b(j)&&typeof j.getWriter=="function"&&typeof j.abort=="function")}function C(j){return!!(j&&!b(j)&&typeof j.readable=="object"&&typeof j.writable=="object")}function O(j){return T(j)||B(j)||C(j)}function N(j,se){return j==null?!1:se===!0?typeof j[n]=="function":se===!1?typeof j[a]=="function":typeof j[n]=="function"||typeof j[a]=="function"}function v(j){if(!b(j))return null;let se=j._writableState,fe=j._readableState,Ae=se||fe;return!!(j.destroyed||j[o]||Ae!=null&&Ae.destroyed)}function R(j){if(!m(j))return null;if(j.writableEnded===!0)return!0;let se=j._writableState;return se!=null&&se.errored?!1:typeof(se==null?void 0:se.ended)!="boolean"?null:se.ended}function U(j,se){if(!m(j))return null;if(j.writableFinished===!0)return!0;let fe=j._writableState;return fe!=null&&fe.errored?!1:typeof(fe==null?void 0:fe.finished)!="boolean"?null:!!(fe.finished||se===!1&&fe.ended===!0&&fe.length===0)}function F(j){if(!d(j))return null;if(j.readableEnded===!0)return!0;let se=j._readableState;return!se||se.errored?!1:typeof(se==null?void 0:se.ended)!="boolean"?null:se.ended}function H(j,se){if(!d(j))return null;let fe=j._readableState;return fe!=null&&fe.errored?!1:typeof(fe==null?void 0:fe.endEmitted)!="boolean"?null:!!(fe.endEmitted||se===!1&&fe.ended===!0&&fe.length===0)}function Y(j){return j&&j[s]!=null?j[s]:typeof(j==null?void 0:j.readable)!="boolean"?null:v(j)?!1:d(j)&&j.readable&&!H(j)}function ie(j){return typeof(j==null?void 0:j.writable)!="boolean"?null:v(j)?!1:m(j)&&j.writable&&!R(j)}function I(j,se){return b(j)?v(j)?!0:!((se==null?void 0:se.readable)!==!1&&Y(j)||(se==null?void 0:se.writable)!==!1&&ie(j)):null}function z(j){var se,fe;return b(j)?j.writableErrored?j.writableErrored:(se=(fe=j._writableState)===null||fe===void 0?void 0:fe.errored)!==null&&se!==void 0?se:null:null}function ee(j){var se,fe;return b(j)?j.readableErrored?j.readableErrored:(se=(fe=j._readableState)===null||fe===void 0?void 0:fe.errored)!==null&&se!==void 0?se:null:null}function oe(j){if(!b(j))return null;if(typeof j.closed=="boolean")return j.closed;let se=j._writableState,fe=j._readableState;return typeof(se==null?void 0:se.closed)=="boolean"||typeof(fe==null?void 0:fe.closed)=="boolean"?(se==null?void 0:se.closed)||(fe==null?void 0:fe.closed):typeof j._closed=="boolean"&&ae(j)?j._closed:null}function ae(j){return typeof j._closed=="boolean"&&typeof j._defaultKeepAlive=="boolean"&&typeof j._removedConnection=="boolean"&&typeof j._removedContLen=="boolean"}function Z(j){return typeof j._sent100=="boolean"&&ae(j)}function Q(j){var se;return typeof j._consuming=="boolean"&&typeof j._dumped=="boolean"&&((se=j.req)===null||se===void 0?void 0:se.upgradeOrConnect)===void 0}function he(j){if(!b(j))return null;let se=j._writableState,fe=j._readableState,Ae=se||fe;return!Ae&&Z(j)||!!(Ae&&Ae.autoDestroy&&Ae.emitClose&&Ae.closed===!1)}function ce(j){var se;return!!(j&&((se=j[u])!==null&&se!==void 0?se:j.readableDidRead||j.readableAborted))}function _e(j){var se,fe,Ae,ue,E,S,q,X,te,re;return!!(j&&((se=(fe=(Ae=(ue=(E=(S=j[l])!==null&&S!==void 0?S:j.readableErrored)!==null&&E!==void 0?E:j.writableErrored)!==null&&ue!==void 0?ue:(q=j._readableState)===null||q===void 0?void 0:q.errorEmitted)!==null&&Ae!==void 0?Ae:(X=j._writableState)===null||X===void 0?void 0:X.errorEmitted)!==null&&fe!==void 0?fe:(te=j._readableState)===null||te===void 0?void 0:te.errored)!==null&&se!==void 0?se:!((re=j._writableState)===null||re===void 0)&&re.errored))}t.exports={kDestroyed:o,isDisturbed:ce,kIsDisturbed:u,isErrored:_e,kIsErrored:l,isReadable:Y,kIsReadable:s,kIsClosedPromise:c,kControllerErrorFunction:f,isClosed:oe,isDestroyed:v,isDuplexNodeStream:y,isFinished:I,isIterable:N,isReadableNodeStream:d,isReadableStream:T,isReadableEnded:F,isReadableFinished:H,isReadableErrored:ee,isNodeStream:b,isWebStream:O,isWritable:ie,isWritableNodeStream:m,isWritableStream:B,isWritableEnded:R,isWritableFinished:U,isWritableErrored:z,isServerRequest:Q,isServerResponse:Z,willEmitClose:he,isTransformStream:C}}),$r=Ee((e,t)=>{ye(),ve(),be();var r=vn(),{AbortError:n,codes:a}=At(),{ERR_INVALID_ARG_TYPE:i,ERR_STREAM_PREMATURE_CLOSE:o}=a,{kEmptyObject:l,once:s}=dr(),{validateAbortSignal:u,validateFunction:c,validateObject:f,validateBoolean:d}=No(),{Promise:m,PromisePrototypeThen:y}=it(),{isClosed:b,isReadable:T,isReadableNodeStream:B,isReadableStream:C,isReadableFinished:O,isReadableErrored:N,isWritable:v,isWritableNodeStream:R,isWritableStream:U,isWritableFinished:F,isWritableErrored:H,isNodeStream:Y,willEmitClose:ie,kIsClosedPromise:I}=br();function z(Q){return Q.setHeader&&typeof Q.abort=="function"}var ee=()=>{};function oe(Q,he,ce){var _e,j;if(arguments.length===2?(ce=he,he=l):he==null?he=l:f(he,"options"),c(ce,"callback"),u(he.signal,"options.signal"),ce=s(ce),C(Q)||U(Q))return ae(Q,he,ce);if(!Y(Q))throw new i("stream",["ReadableStream","WritableStream","Stream"],Q);let se=(_e=he.readable)!==null&&_e!==void 0?_e:B(Q),fe=(j=he.writable)!==null&&j!==void 0?j:R(Q),Ae=Q._writableState,ue=Q._readableState,E=()=>{Q.writable||X()},S=ie(Q)&&B(Q)===se&&R(Q)===fe,q=F(Q,!1),X=()=>{q=!0,Q.destroyed&&(S=!1),!(S&&(!Q.readable||se))&&(!se||te)&&ce.call(Q)},te=O(Q,!1),re=()=>{te=!0,Q.destroyed&&(S=!1),!(S&&(!Q.writable||fe))&&(!fe||q)&&ce.call(Q)},_=K=>{ce.call(Q,K)},P=b(Q),w=()=>{P=!0;let K=H(Q)||N(Q);if(K&&typeof K!="boolean")return ce.call(Q,K);if(se&&!te&&B(Q,!0)&&!O(Q,!1))return ce.call(Q,new o);if(fe&&!q&&!F(Q,!1))return ce.call(Q,new o);ce.call(Q)},M=()=>{P=!0;let K=H(Q)||N(Q);if(K&&typeof K!="boolean")return ce.call(Q,K);ce.call(Q)},k=()=>{Q.req.on("finish",X)};z(Q)?(Q.on("complete",X),S||Q.on("abort",w),Q.req?k():Q.on("request",k)):fe&&!Ae&&(Q.on("end",E),Q.on("close",E)),!S&&typeof Q.aborted=="boolean"&&Q.on("aborted",w),Q.on("end",re),Q.on("finish",X),he.error!==!1&&Q.on("error",_),Q.on("close",w),P?r.nextTick(w):Ae!=null&&Ae.errorEmitted||ue!=null&&ue.errorEmitted?S||r.nextTick(M):(!se&&(!S||T(Q))&&(q||v(Q)===!1)||!fe&&(!S||v(Q))&&(te||T(Q)===!1)||ue&&Q.req&&Q.aborted)&&r.nextTick(M);let G=()=>{ce=ee,Q.removeListener("aborted",w),Q.removeListener("complete",X),Q.removeListener("abort",w),Q.removeListener("request",k),Q.req&&Q.req.removeListener("finish",X),Q.removeListener("end",E),Q.removeListener("close",E),Q.removeListener("finish",X),Q.removeListener("end",re),Q.removeListener("error",_),Q.removeListener("close",w)};if(he.signal&&!P){let K=()=>{let L=ce;G(),L.call(Q,new n(void 0,{cause:he.signal.reason}))};if(he.signal.aborted)r.nextTick(K);else{let L=ce;ce=s((...V)=>{he.signal.removeEventListener("abort",K),L.apply(Q,V)}),he.signal.addEventListener("abort",K)}}return G}function ae(Q,he,ce){let _e=!1,j=ee;if(he.signal)if(j=()=>{_e=!0,ce.call(Q,new n(void 0,{cause:he.signal.reason}))},he.signal.aborted)r.nextTick(j);else{let fe=ce;ce=s((...Ae)=>{he.signal.removeEventListener("abort",j),fe.apply(Q,Ae)}),he.signal.addEventListener("abort",j)}let se=(...fe)=>{_e||r.nextTick(()=>ce.apply(Q,fe))};return y(Q[I].promise,se,se),ee}function Z(Q,he){var ce;let _e=!1;return he===null&&(he=l),(ce=he)!==null&&ce!==void 0&&ce.cleanup&&(d(he.cleanup,"cleanup"),_e=he.cleanup),new m((j,se)=>{let fe=oe(Q,he,Ae=>{_e&&fe(),Ae?se(Ae):j()})})}t.exports=oe,t.exports.finished=Z}),$n=Ee((e,t)=>{ye(),ve(),be();var r=vn(),{aggregateTwoErrors:n,codes:{ERR_MULTIPLE_CALLBACK:a},AbortError:i}=At(),{Symbol:o}=it(),{kDestroyed:l,isDestroyed:s,isFinished:u,isServerRequest:c}=br(),f=o("kDestroy"),d=o("kConstruct");function m(I,z,ee){I&&(I.stack,z&&!z.errored&&(z.errored=I),ee&&!ee.errored&&(ee.errored=I))}function y(I,z){let ee=this._readableState,oe=this._writableState,ae=oe||ee;return oe!=null&&oe.destroyed||ee!=null&&ee.destroyed?(typeof z=="function"&&z(),this):(m(I,oe,ee),oe&&(oe.destroyed=!0),ee&&(ee.destroyed=!0),ae.constructed?b(this,I,z):this.once(f,function(Z){b(this,n(Z,I),z)}),this)}function b(I,z,ee){let oe=!1;function ae(Z){if(oe)return;oe=!0;let Q=I._readableState,he=I._writableState;m(Z,he,Q),he&&(he.closed=!0),Q&&(Q.closed=!0),typeof ee=="function"&&ee(Z),Z?r.nextTick(T,I,Z):r.nextTick(B,I)}try{I._destroy(z||null,ae)}catch(Z){ae(Z)}}function T(I,z){C(I,z),B(I)}function B(I){let z=I._readableState,ee=I._writableState;ee&&(ee.closeEmitted=!0),z&&(z.closeEmitted=!0),(ee!=null&&ee.emitClose||z!=null&&z.emitClose)&&I.emit("close")}function C(I,z){let ee=I._readableState,oe=I._writableState;oe!=null&&oe.errorEmitted||ee!=null&&ee.errorEmitted||(oe&&(oe.errorEmitted=!0),ee&&(ee.errorEmitted=!0),I.emit("error",z))}function O(){let I=this._readableState,z=this._writableState;I&&(I.constructed=!0,I.closed=!1,I.closeEmitted=!1,I.destroyed=!1,I.errored=null,I.errorEmitted=!1,I.reading=!1,I.ended=I.readable===!1,I.endEmitted=I.readable===!1),z&&(z.constructed=!0,z.destroyed=!1,z.closed=!1,z.closeEmitted=!1,z.errored=null,z.errorEmitted=!1,z.finalCalled=!1,z.prefinished=!1,z.ended=z.writable===!1,z.ending=z.writable===!1,z.finished=z.writable===!1)}function N(I,z,ee){let oe=I._readableState,ae=I._writableState;if(ae!=null&&ae.destroyed||oe!=null&&oe.destroyed)return this;oe!=null&&oe.autoDestroy||ae!=null&&ae.autoDestroy?I.destroy(z):z&&(z.stack,ae&&!ae.errored&&(ae.errored=z),oe&&!oe.errored&&(oe.errored=z),ee?r.nextTick(C,I,z):C(I,z))}function v(I,z){if(typeof I._construct!="function")return;let ee=I._readableState,oe=I._writableState;ee&&(ee.constructed=!1),oe&&(oe.constructed=!1),I.once(d,z),!(I.listenerCount(d)>1)&&r.nextTick(R,I)}function R(I){let z=!1;function ee(oe){if(z){N(I,oe??new a);return}z=!0;let ae=I._readableState,Z=I._writableState,Q=Z||ae;ae&&(ae.constructed=!0),Z&&(Z.constructed=!0),Q.destroyed?I.emit(f,oe):oe?N(I,oe,!0):r.nextTick(U,I)}try{I._construct(oe=>{r.nextTick(ee,oe)})}catch(oe){r.nextTick(ee,oe)}}function U(I){I.emit(d)}function F(I){return(I==null?void 0:I.setHeader)&&typeof I.abort=="function"}function H(I){I.emit("close")}function Y(I,z){I.emit("error",z),r.nextTick(H,I)}function ie(I,z){!I||s(I)||(!z&&!u(I)&&(z=new i),c(I)?(I.socket=null,I.destroy(z)):F(I)?I.abort():F(I.req)?I.req.abort():typeof I.destroy=="function"?I.destroy(z):typeof I.close=="function"?I.close():z?r.nextTick(Y,I,z):r.nextTick(H,I),I.destroyed||(I[l]=!0))}t.exports={construct:v,destroyer:ie,destroy:y,undestroy:O,errorOrDestroy:N}});function je(){je.init.call(this)}function Yi(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function jh(e){return e._maxListeners===void 0?je.defaultMaxListeners:e._maxListeners}function nc(e,t,r,n){var a,i,o,l;if(Yi(r),(i=e._events)===void 0?(i=e._events=Object.create(null),e._eventsCount=0):(i.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),o=i[t]),o===void 0)o=i[t]=r,++e._eventsCount;else if(typeof o=="function"?o=i[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(a=jh(e))>0&&o.length>a&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,l=s,console&&console.warn&&console.warn(l)}return e}function wb(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ic(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=wb.bind(n);return a.listener=r,n.wrapFn=a,a}function oc(e,t,r){var n=e._events;if(n===void 0)return[];var a=n[t];return a===void 0?[]:typeof a=="function"?r?[a.listener||a]:[a]:r?function(i){for(var o=new Array(i.length),l=0;l{ye(),ve(),be(),Gr=typeof Reflect=="object"?Reflect:null,ns=Gr&&typeof Gr.apply=="function"?Gr.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)},lc=Gr&&typeof Gr.ownKeys=="function"?Gr.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},is=Number.isNaN||function(e){return e!=e},ac=je,je.EventEmitter=je,je.prototype._events=void 0,je.prototype._eventsCount=0,je.prototype._maxListeners=void 0,os=10,Object.defineProperty(je,"defaultMaxListeners",{enumerable:!0,get:function(){return os},set:function(e){if(typeof e!="number"||e<0||is(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");os=e}}),je.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},je.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||is(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},je.prototype.getMaxListeners=function(){return jh(this)},je.prototype.emit=function(e){for(var t=[],r=1;r0&&(i=t[0]),i instanceof Error)throw i;var o=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw o.context=i,o}var l=a[e];if(l===void 0)return!1;if(typeof l=="function")ns(l,this,t);else{var s=l.length,u=Uh(l,s);for(r=0;r=0;i--)if(r[i]===t||r[i].listener===t){o=r[i].listener,a=i;break}if(a<0)return this;a===0?r.shift():function(l,s){for(;s+1=0;n--)this.removeListener(e,t[n]);return this},je.prototype.listeners=function(e){return oc(this,e,!0)},je.prototype.rawListeners=function(e){return oc(this,e,!1)},je.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):sc.call(e,t)},je.prototype.listenerCount=sc,je.prototype.eventNames=function(){return this._eventsCount>0?lc(this._events):[]},Ct=ac,Ct.EventEmitter,Ct.defaultMaxListeners,Ct.init,Ct.listenerCount,Ct.EventEmitter,Ct.defaultMaxListeners,Ct.init,Ct.listenerCount}),wn={};bn(wn,{EventEmitter:()=>Dh,default:()=>Ct,defaultMaxListeners:()=>Fh,init:()=>$h,listenerCount:()=>Wh,on:()=>Hh,once:()=>Vh});var Dh,Fh,$h,Wh,Hh,Vh,Wn=lt(()=>{ye(),ve(),be(),uc(),uc(),Ct.once=function(e,t){return new Promise((r,n)=>{function a(...o){i!==void 0&&e.removeListener("error",i),r(o)}let i;t!=="error"&&(i=o=>{e.removeListener(name,a),n(o)},e.once("error",i)),e.once(t,a)})},Ct.on=function(e,t){let r=[],n=[],a=null,i=!1,o={async next(){let u=r.shift();if(u)return createIterResult(u,!1);if(a){let c=Promise.reject(a);return a=null,c}return i?createIterResult(void 0,!0):new Promise((c,f)=>n.push({resolve:c,reject:f}))},async return(){e.removeListener(t,l),e.removeListener("error",s),i=!0;for(let u of n)u.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(u){a=u,e.removeListener(t,l),e.removeListener("error",s)},[Symbol.asyncIterator](){return this}};return e.on(t,l),e.on("error",s),o;function l(...u){let c=n.shift();c?c.resolve(createIterResult(u,!1)):r.push(u)}function s(u){i=!0;let c=n.shift();c?c.reject(u):a=u,o.return()}},{EventEmitter:Dh,defaultMaxListeners:Fh,init:$h,listenerCount:Wh,on:Hh,once:Vh}=Ct}),jl=Ee((e,t)=>{ye(),ve(),be();var{ArrayIsArray:r,ObjectSetPrototypeOf:n}=it(),{EventEmitter:a}=(Wn(),De(wn));function i(l){a.call(this,l)}n(i.prototype,a.prototype),n(i,a),i.prototype.pipe=function(l,s){let u=this;function c(B){l.writable&&l.write(B)===!1&&u.pause&&u.pause()}u.on("data",c);function f(){u.readable&&u.resume&&u.resume()}l.on("drain",f),!l._isStdio&&(!s||s.end!==!1)&&(u.on("end",m),u.on("close",y));let d=!1;function m(){d||(d=!0,l.end())}function y(){d||(d=!0,typeof l.destroy=="function"&&l.destroy())}function b(B){T(),a.listenerCount(this,"error")===0&&this.emit("error",B)}o(u,"error",b),o(l,"error",b);function T(){u.removeListener("data",c),l.removeListener("drain",f),u.removeListener("end",m),u.removeListener("close",y),u.removeListener("error",b),l.removeListener("error",b),u.removeListener("end",T),u.removeListener("close",T),l.removeListener("close",T)}return u.on("end",T),u.on("close",T),l.on("close",T),l.emit("pipe",u),l};function o(l,s,u){if(typeof l.prependListener=="function")return l.prependListener(s,u);!l._events||!l._events[s]?l.on(s,u):r(l._events[s])?l._events[s].unshift(u):l._events[s]=[u,l._events[s]]}t.exports={Stream:i,prependListener:o}}),jo=Ee((e,t)=>{ye(),ve(),be();var{AbortError:r,codes:n}=At(),{isNodeStream:a,isWebStream:i,kControllerErrorFunction:o}=br(),l=$r(),{ERR_INVALID_ARG_TYPE:s}=n,u=(c,f)=>{if(typeof c!="object"||!("aborted"in c))throw new s(f,"AbortSignal",c)};t.exports.addAbortSignal=function(c,f){if(u(c,"signal"),!a(f)&&!i(f))throw new s("stream",["ReadableStream","WritableStream","Stream"],f);return t.exports.addAbortSignalNoValidate(c,f)},t.exports.addAbortSignalNoValidate=function(c,f){if(typeof c!="object"||!("aborted"in c))return f;let d=a(f)?()=>{f.destroy(new r(void 0,{cause:c.reason}))}:()=>{f[o](new r(void 0,{cause:c.reason}))};return c.aborted?d():(c.addEventListener("abort",d),l(f,()=>c.removeEventListener("abort",d))),f}}),_b=Ee((e,t)=>{ye(),ve(),be();var{StringPrototypeSlice:r,SymbolIterator:n,TypedArrayPrototypeSet:a,Uint8Array:i}=it(),{Buffer:o}=(dt(),De(ht)),{inspect:l}=dr();t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(s){let u={data:s,next:null};this.length>0?this.tail.next=u:this.head=u,this.tail=u,++this.length}unshift(s){let u={data:s,next:this.head};this.length===0&&(this.tail=u),this.head=u,++this.length}shift(){if(this.length===0)return;let s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}clear(){this.head=this.tail=null,this.length=0}join(s){if(this.length===0)return"";let u=this.head,c=""+u.data;for(;(u=u.next)!==null;)c+=s+u.data;return c}concat(s){if(this.length===0)return o.alloc(0);let u=o.allocUnsafe(s>>>0),c=this.head,f=0;for(;c;)a(u,c.data,f),f+=c.data.length,c=c.next;return u}consume(s,u){let c=this.head.data;if(sd.length)u+=d,s-=d.length;else{s===d.length?(u+=d,++f,c.next?this.head=c.next:this.head=this.tail=null):(u+=r(d,0,s),this.head=c,c.data=r(d,s));break}++f}while((c=c.next)!==null);return this.length-=f,u}_getBuffer(s){let u=o.allocUnsafe(s),c=s,f=this.head,d=0;do{let m=f.data;if(s>m.length)a(u,m,c-s),s-=m.length;else{s===m.length?(a(u,m,c-s),++d,f.next?this.head=f.next:this.head=this.tail=null):(a(u,new i(m.buffer,m.byteOffset,s),c-s),this.head=f,f.data=m.slice(s));break}++d}while((f=f.next)!==null);return this.length-=d,u}[Symbol.for("nodejs.util.inspect.custom")](s,u){return l(this,{...u,depth:0,customInspect:!1})}}}),Ul=Ee((e,t)=>{ye(),ve(),be();var{MathFloor:r,NumberIsInteger:n}=it(),{ERR_INVALID_ARG_VALUE:a}=At().codes;function i(s,u,c){return s.highWaterMark!=null?s.highWaterMark:u?s[c]:null}function o(s){return s?16:16*1024}function l(s,u,c,f){let d=i(u,f,c);if(d!=null){if(!n(d)||d<0){let m=f?`options.${c}`:"options.highWaterMark";throw new a(m,d)}return r(d)}return o(s.objectMode)}t.exports={getHighWaterMark:l,getDefaultHighWaterMark:o}});function cc(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return r===-1&&(r=t),[r,r===t?0:4-r%4]}function Eb(e,t,r){for(var n,a,i=[],o=t;o>18&63]+Ht[a>>12&63]+Ht[a>>6&63]+Ht[63&a]);return i.join("")}function cr(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,we.prototype),t}function we(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Ha(e)}return qh(e,t,r)}function qh(e,t,r){if(typeof e=="string")return function(i,o){if(typeof o=="string"&&o!==""||(o="utf8"),!we.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var l=0|Kh(i,o),s=cr(l),u=s.write(i,o);return u!==l&&(s=s.slice(0,u)),s}(e,t);if(ArrayBuffer.isView(e))return ss(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(fr(e,ArrayBuffer)||e&&fr(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(fr(e,SharedArrayBuffer)||e&&fr(e.buffer,SharedArrayBuffer)))return Sb(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return we.from(n,t,r);var a=function(i){if(we.isBuffer(i)){var o=0|Dl(i.length),l=cr(o);return l.length===0||i.copy(l,0,0,o),l}if(i.length!==void 0)return typeof i.length!="number"||Fl(i.length)?cr(0):ss(i);if(i.type==="Buffer"&&Array.isArray(i.data))return ss(i.data)}(e);if(a)return a;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return we.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function zh(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Ha(e){return zh(e),cr(e<0?0:0|Dl(e))}function ss(e){for(var t=e.length<0?0:0|Dl(e.length),r=cr(t),n=0;n=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function Kh(e,t){if(we.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||fr(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Va(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Jh(e).length;default:if(a)return n?-1:Va(e).length;t=(""+t).toLowerCase(),a=!0}}function Ab(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Bb(this,t,r);case"utf8":case"utf-8":return Yh(this,t,r);case"ascii":return xb(this,t,r);case"latin1":case"binary":return kb(this,t,r);case"base64":return Pb(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Mb(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function Yr(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function fc(e,t,r,n,a){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Fl(r=+r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if(typeof t=="string"&&(t=we.from(t,n)),we.isBuffer(t))return t.length===0?-1:hc(e,t,r,n,a);if(typeof t=="number")return t&=255,typeof Uint8Array.prototype.indexOf=="function"?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):hc(e,[t],r,n,a);throw new TypeError("val must be string, number or Buffer")}function hc(e,t,r,n,a){var i,o=1,l=e.length,s=t.length;if(n!==void 0&&((n=String(n).toLowerCase())==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,l/=2,s/=2,r/=2}function u(m,y){return o===1?m[y]:m.readUInt16BE(y*o)}if(a){var c=-1;for(i=r;il&&(r=l-s),i=r;i>=0;i--){for(var f=!0,d=0;da&&(n=a):n=a;var i=t.length;n>i/2&&(n=i/2);for(var o=0;o>8,s=o%256,u.push(s),u.push(l);return u}(t,e.length-r),e,r,n)}function Pb(e,t,r){return t===0&&r===e.length?fo.fromByteArray(e):fo.fromByteArray(e.slice(t,r))}function Yh(e,t,r){r=Math.min(e.length,r);for(var n=[],a=t;a239?4:u>223?3:u>191?2:1;if(a+f<=r)switch(f){case 1:u<128&&(c=u);break;case 2:(192&(i=e[a+1]))==128&&(s=(31&u)<<6|63&i)>127&&(c=s);break;case 3:i=e[a+1],o=e[a+2],(192&i)==128&&(192&o)==128&&(s=(15&u)<<12|(63&i)<<6|63&o)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:i=e[a+1],o=e[a+2],l=e[a+3],(192&i)==128&&(192&o)==128&&(192&l)==128&&(s=(15&u)<<18|(63&i)<<12|(63&o)<<6|63&l)>65535&&s<1114112&&(c=s)}c===null?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),a+=f}return function(d){var m=d.length;if(m<=4096)return String.fromCharCode.apply(String,d);for(var y="",b=0;bn)&&(r=n);for(var a="",i=t;ir)throw new RangeError("Trying to access beyond buffer length")}function bt(e,t,r,n,a,i){if(!we.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function Qh(e,t,r,n,a,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function dc(e,t,r,n,a){return t=+t,r>>>=0,a||Qh(e,0,r,4),nn.write(e,t,r,n,23,4),r+4}function pc(e,t,r,n,a){return t=+t,r>>>=0,a||Qh(e,0,r,8),nn.write(e,t,r,n,52,8),r+8}function Va(e,t){var r;t=t||1/0;for(var n=e.length,a=null,i=[],o=0;o55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&i.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function Jh(e){return fo.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(Xh,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function Uo(e,t,r,n){for(var a=0;a=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function fr(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Fl(e){return e!=e}function gc(e,t){for(var r in e)t[r]=e[r]}function Qr(e,t,r){return $t(e,t,r)}function zn(e){var t;switch(this.encoding=function(r){var n=function(a){if(!a)return"utf8";for(var i;;)switch(a){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 a;default:if(i)return;a=(""+a).toLowerCase(),i=!0}}(r);if(typeof n!="string"&&(ho.isEncoding===qa||!qa(r)))throw new Error("Unknown encoding: "+r);return n||r}(e),this.encoding){case"utf16le":this.text=Nb,this.end=jb,t=4;break;case"utf8":this.fillLast=Lb,t=4;break;case"base64":this.text=Ub,this.end=Db,t=3;break;default:return this.write=Fb,this.end=$b,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=ho.allocUnsafe(t)}function as(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function Lb(e){var t=this.lastTotal-this.lastNeed,r=function(n,a,i){if((192&a[0])!=128)return n.lastNeed=0,"�";if(n.lastNeed>1&&a.length>1){if((192&a[1])!=128)return n.lastNeed=1,"�";if(n.lastNeed>2&&a.length>2&&(192&a[2])!=128)return n.lastNeed=2,"�"}}(this,e);return r!==void 0?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length,void 0)}function Nb(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function jb(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function Ub(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function Db(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function Fb(e){return e.toString(this.encoding)}function $b(e){return e&&e.length?this.write(e):""}var mc,Ht,Tt,yc,ji,Jr,bc,vc,Kt,fo,nn,ls,Xh,Zh,Kn,Gn,$t,wc,In,ho,qa,_c=lt(()=>{for(ye(),ve(),be(),mc={byteLength:function(e){var t=cc(e),r=t[0],n=t[1];return 3*(r+n)/4-n},toByteArray:function(e){var t,r,n=cc(e),a=n[0],i=n[1],o=new yc(function(u,c,f){return 3*(c+f)/4-f}(0,a,i)),l=0,s=i>0?a-4:a;for(r=0;r>16&255,o[l++]=t>>8&255,o[l++]=255&t;return i===2&&(t=Tt[e.charCodeAt(r)]<<2|Tt[e.charCodeAt(r+1)]>>4,o[l++]=255&t),i===1&&(t=Tt[e.charCodeAt(r)]<<10|Tt[e.charCodeAt(r+1)]<<4|Tt[e.charCodeAt(r+2)]>>2,o[l++]=t>>8&255,o[l++]=255&t),o},fromByteArray:function(e){for(var t,r=e.length,n=r%3,a=[],i=0,o=r-n;io?o:i+16383));return n===1?(t=e[r-1],a.push(Ht[t>>2]+Ht[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],a.push(Ht[t>>10]+Ht[t>>4&63]+Ht[t<<2&63]+"=")),a.join("")}},Ht=[],Tt=[],yc=typeof Uint8Array<"u"?Uint8Array:Array,ji="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Jr=0,bc=ji.length;Jr>1,c=-7,f=r?a-1:0,d=r?-1:1,m=e[t+f];for(f+=d,i=m&(1<<-c)-1,m>>=-c,c+=l;c>0;i=256*i+e[t+f],f+=d,c-=8);for(o=i&(1<<-c)-1,i>>=-c,c+=n;c>0;o=256*o+e[t+f],f+=d,c-=8);if(i===0)i=1-u;else{if(i===s)return o?NaN:1/0*(m?-1:1);o+=Math.pow(2,n),i-=u}return(m?-1:1)*o*Math.pow(2,i-n)},write:function(e,t,r,n,a,i){var o,l,s,u=8*i-a-1,c=(1<>1,d=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:i-1,y=n?1:-1,b=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),(t+=o+f>=1?d/s:d*Math.pow(2,1-f))*s>=2&&(o++,s/=2),o+f>=c?(l=0,o=c):o+f>=1?(l=(t*s-1)*Math.pow(2,a),o+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,a),o=0));a>=8;e[r+m]=255&l,m+=y,l/=256,a-=8);for(o=o<0;e[r+m]=255&o,m+=y,o/=256,u-=8);e[r+m-y]|=128*b}},Kt={},fo=mc,nn=vc,ls=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null,Kt.Buffer=we,Kt.SlowBuffer=function(e){return+e!=e&&(e=0),we.alloc(+e)},Kt.INSPECT_MAX_BYTES=50,Kt.kMaxLength=2147483647,we.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}(),we.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(we.prototype,"parent",{enumerable:!0,get:function(){if(we.isBuffer(this))return this.buffer}}),Object.defineProperty(we.prototype,"offset",{enumerable:!0,get:function(){if(we.isBuffer(this))return this.byteOffset}}),we.poolSize=8192,we.from=function(e,t,r){return qh(e,t,r)},Object.setPrototypeOf(we.prototype,Uint8Array.prototype),Object.setPrototypeOf(we,Uint8Array),we.alloc=function(e,t,r){return function(n,a,i){return zh(n),n<=0?cr(n):a!==void 0?typeof i=="string"?cr(n).fill(a,i):cr(n).fill(a):cr(n)}(e,t,r)},we.allocUnsafe=function(e){return Ha(e)},we.allocUnsafeSlow=function(e){return Ha(e)},we.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==we.prototype},we.compare=function(e,t){if(fr(e,Uint8Array)&&(e=we.from(e,e.offset,e.byteLength)),fr(t,Uint8Array)&&(t=we.from(t,t.offset,t.byteLength)),!we.isBuffer(e)||!we.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,a=0,i=Math.min(r,n);at&&(e+=" ... "),""},ls&&(we.prototype[ls]=we.prototype.inspect),we.prototype.compare=function(e,t,r,n,a){if(fr(e,Uint8Array)&&(e=we.from(e,e.offset,e.byteLength)),!we.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),r===void 0&&(r=e?e.length:0),n===void 0&&(n=0),a===void 0&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),l=Math.min(i,o),s=this.slice(n,a),u=e.slice(t,r),c=0;c>>=0,isFinite(r)?(r>>>=0,n===void 0&&(n="utf8")):(n=r,r=void 0)}var a=this.length-t;if((r===void 0||r>a)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return Tb(this,e,t,r);case"utf8":case"utf-8":return Ib(this,e,t,r);case"ascii":return Gh(this,e,t,r);case"latin1":case"binary":return Cb(this,e,t,r);case"base64":return Ob(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Rb(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},we.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},we.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=t===void 0?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||ot(e,t,this.length);for(var n=this[e],a=1,i=0;++i>>=0,t>>>=0,r||ot(e,t,this.length);for(var n=this[e+--t],a=1;t>0&&(a*=256);)n+=this[e+--t]*a;return n},we.prototype.readUInt8=function(e,t){return e>>>=0,t||ot(e,1,this.length),this[e]},we.prototype.readUInt16LE=function(e,t){return e>>>=0,t||ot(e,2,this.length),this[e]|this[e+1]<<8},we.prototype.readUInt16BE=function(e,t){return e>>>=0,t||ot(e,2,this.length),this[e]<<8|this[e+1]},we.prototype.readUInt32LE=function(e,t){return e>>>=0,t||ot(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},we.prototype.readUInt32BE=function(e,t){return e>>>=0,t||ot(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},we.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||ot(e,t,this.length);for(var n=this[e],a=1,i=0;++i=(a*=128)&&(n-=Math.pow(2,8*t)),n},we.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||ot(e,t,this.length);for(var n=t,a=1,i=this[e+--n];n>0&&(a*=256);)i+=this[e+--n]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},we.prototype.readInt8=function(e,t){return e>>>=0,t||ot(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},we.prototype.readInt16LE=function(e,t){e>>>=0,t||ot(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},we.prototype.readInt16BE=function(e,t){e>>>=0,t||ot(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},we.prototype.readInt32LE=function(e,t){return e>>>=0,t||ot(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},we.prototype.readInt32BE=function(e,t){return e>>>=0,t||ot(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},we.prototype.readFloatLE=function(e,t){return e>>>=0,t||ot(e,4,this.length),nn.read(this,e,!0,23,4)},we.prototype.readFloatBE=function(e,t){return e>>>=0,t||ot(e,4,this.length),nn.read(this,e,!1,23,4)},we.prototype.readDoubleLE=function(e,t){return e>>>=0,t||ot(e,8,this.length),nn.read(this,e,!0,52,8)},we.prototype.readDoubleBE=function(e,t){return e>>>=0,t||ot(e,8,this.length),nn.read(this,e,!1,52,8)},we.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||bt(this,e,t,r,Math.pow(2,8*r)-1,0);var a=1,i=0;for(this[t]=255&e;++i>>=0,r>>>=0,n||bt(this,e,t,r,Math.pow(2,8*r)-1,0);var a=r-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+r},we.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||bt(this,e,t,1,255,0),this[t]=255&e,t+1},we.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||bt(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},we.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||bt(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},we.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||bt(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},we.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||bt(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},we.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var a=Math.pow(2,8*r-1);bt(this,e,t,r,a-1,-a)}var i=0,o=1,l=0;for(this[t]=255&e;++i>0)-l&255;return t+r},we.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var a=Math.pow(2,8*r-1);bt(this,e,t,r,a-1,-a)}var i=r-1,o=1,l=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&l===0&&this[t+i+1]!==0&&(l=1),this[t+i]=(e/o>>0)-l&255;return t+r},we.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||bt(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},we.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||bt(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},we.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||bt(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},we.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||bt(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},we.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||bt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},we.prototype.writeFloatLE=function(e,t,r){return dc(this,e,t,!0,r)},we.prototype.writeFloatBE=function(e,t,r){return dc(this,e,t,!1,r)},we.prototype.writeDoubleLE=function(e,t,r){return pc(this,e,t,!0,r)},we.prototype.writeDoubleBE=function(e,t,r){return pc(this,e,t,!1,r)},we.prototype.copy=function(e,t,r,n){if(!we.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||n===0||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return a},we.prototype.fill=function(e,t,r,n){if(typeof e=="string"){if(typeof t=="string"?(n=t,t=0,r=this.length):typeof r=="string"&&(n=r,r=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!we.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(e.length===1){var a=e.charCodeAt(0);(n==="utf8"&&a<128||n==="latin1")&&(e=a)}}else typeof e=="number"?e&=255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length>>=0,r=r===void 0?this.length:r>>>0,e||(e=0),typeof e=="number")for(i=t;i=0?(s>0&&(a.lastNeed=s-1),s):--l=0?(s>0&&(a.lastNeed=s-2),s):--l