var Jr=Object.create;var hr=Object.defineProperty;var Qr=Object.getOwnPropertyDescriptor;var Kr=Object.getOwnPropertyNames;var Zr=Object.getPrototypeOf,vr=Object.prototype.hasOwnProperty;var tr=(p,c)=>()=>(p&&(c=p(p=0)),c);var rt=(p,c)=>()=>(c||p((c={exports:{}}).exports,c),c.exports),st=(p,c)=>{for(var f in c)hr(p,f,{get:c[f],enumerable:!0})},tt=(p,c,f,T)=>{if(c&&typeof c=="object"||typeof c=="function")for(let w of Kr(c))!vr.call(p,w)&&w!==f&&hr(p,w,{get:()=>c[w],enumerable:!(T=Qr(c,w))||T.enumerable});return p};var et=(p,c,f)=>(f=p!=null?Jr(Zr(p)):{},tt(c||!p||!p.__esModule?hr(f,"default",{value:p,enumerable:!0}):f,p));var Q=tr(()=>{});function ot(){if(Ir)return K;Ir=!0,K.byteLength=S,K.toByteArray=P,K.fromByteArray=k;for(var p=[],c=[],f=typeof Uint8Array<"u"?Uint8Array:Array,T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",w=0,B=T.length;w0)throw new Error("Invalid string. Length must be a multiple of 4");var d=s.indexOf("=");d===-1&&(d=a);var x=d===a?0:4-d%4;return[d,x]}function S(s){var a=o(s),d=a[0],x=a[1];return(d+x)*3/4-x}function L(s,a,d){return(a+d)*3/4-d}function P(s){var a,d=o(s),x=d[0],M=d[1],U=new f(L(s,x,M)),N=0,b=M>0?x-4:x,C;for(C=0;C>16&255,U[N++]=a>>8&255,U[N++]=a&255;return M===2&&(a=c[s.charCodeAt(C)]<<2|c[s.charCodeAt(C+1)]>>4,U[N++]=a&255),M===1&&(a=c[s.charCodeAt(C)]<<10|c[s.charCodeAt(C+1)]<<4|c[s.charCodeAt(C+2)]>>2,U[N++]=a>>8&255,U[N++]=a&255),U}function I(s){return p[s>>18&63]+p[s>>12&63]+p[s>>6&63]+p[s&63]}function _(s,a,d){for(var x,M=[],U=a;Ub?b:N+U));return x===1?(a=s[d-1],M.push(p[a>>2]+p[a<<4&63]+"==")):x===2&&(a=(s[d-2]<<8)+s[d-1],M.push(p[a>>10]+p[a>>4&63]+p[a<<2&63]+"=")),M.join("")}return K}function ut(){if(Ar)return er;Ar=!0;return er.read=function(p,c,f,T,w){var B,o,S=w*8-T-1,L=(1<>1,I=-7,_=f?w-1:0,k=f?-1:1,s=p[c+_];for(_+=k,B=s&(1<<-I)-1,s>>=-I,I+=S;I>0;B=B*256+p[c+_],_+=k,I-=8);for(o=B&(1<<-I)-1,B>>=-I,I+=T;I>0;o=o*256+p[c+_],_+=k,I-=8);if(B===0)B=1-P;else{if(B===L)return o?NaN:(s?-1:1)*(1/0);o=o+Math.pow(2,T),B=B-P}return(s?-1:1)*o*Math.pow(2,B-T)},er.write=function(p,c,f,T,w,B){var o,S,L,P=B*8-w-1,I=(1<>1,k=w===23?Math.pow(2,-24)-Math.pow(2,-77):0,s=T?0:B-1,a=T?1:-1,d=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(S=isNaN(c)?1:0,o=I):(o=Math.floor(Math.log(c)/Math.LN2),c*(L=Math.pow(2,-o))<1&&(o--,L*=2),o+_>=1?c+=k/L:c+=k*Math.pow(2,1-_),c*L>=2&&(o++,L/=2),o+_>=I?(S=0,o=I):o+_>=1?(S=(c*L-1)*Math.pow(2,w),o=o+_):(S=c*Math.pow(2,_-1)*Math.pow(2,w),o=0));w>=8;p[f+s]=S&255,s+=a,S/=256,w-=8);for(o=o<0;p[f+s]=o&255,s+=a,o/=256,P-=8);p[f+s-a]|=d*128},er}function ht(){if(Ur)return W;Ur=!0;let p=ot(),c=ut(),f=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;W.Buffer=o,W.SlowBuffer=M,W.INSPECT_MAX_BYTES=50;let T=2147483647;W.kMaxLength=T,o.TYPED_ARRAY_SUPPORT=w(),!o.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.");function w(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function B(e){if(e>T)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,o.prototype),r}function o(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return I(e)}return S(e,r,t)}o.poolSize=8192;function S(e,r,t){if(typeof e=="string")return _(e,r);if(ArrayBuffer.isView(e))return s(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(F(e,ArrayBuffer)||e&&F(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(F(e,SharedArrayBuffer)||e&&F(e.buffer,SharedArrayBuffer)))return a(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return o.from(n,r,t);let i=d(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return o.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}o.from=function(e,r,t){return S(e,r,t)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function L(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 P(e,r,t){return L(e),e<=0?B(e):r!==void 0?typeof t=="string"?B(e).fill(r,t):B(e).fill(r):B(e)}o.alloc=function(e,r,t){return P(e,r,t)};function I(e){return L(e),B(e<0?0:x(e)|0)}o.allocUnsafe=function(e){return I(e)},o.allocUnsafeSlow=function(e){return I(e)};function _(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=U(e,r)|0,n=B(t),i=n.write(e,r);return i!==t&&(n=n.slice(0,i)),n}function k(e){let r=e.length<0?0:x(e.length)|0,t=B(r);for(let n=0;n=T)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+T.toString(16)+" bytes");return e|0}function M(e){return+e!=e&&(e=0),o.alloc(+e)}o.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==o.prototype},o.compare=function(r,t){if(F(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),F(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(r)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let n=r.length,i=t.length;for(let u=0,h=Math.min(n,i);ui.length?(o.isBuffer(h)||(h=o.from(h)),h.copy(i,u)):Uint8Array.prototype.set.call(i,h,u);else if(o.isBuffer(h))h.copy(i,u);else throw new TypeError('"list" argument must be an Array of Buffers');u+=h.length}return i};function U(e,r){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||F(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);let t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let i=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return or(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return gr(e).length;default:if(i)return n?-1:or(e).length;r=(""+r).toLowerCase(),i=!0}}o.byteLength=U;function N(e,r,t){let n=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return Yr(this,r,t);case"utf8":case"utf-8":return lr(this,r,t);case"ascii":return Or(this,r,t);case"latin1":case"binary":return Dr(this,r,t);case"base64":return Pr(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Gr(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}o.prototype._isBuffer=!0;function b(e,r,t){let n=e[r];e[r]=e[t],e[t]=n}o.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(r+=" ... "),""},f&&(o.prototype[f]=o.prototype.inspect),o.prototype.compare=function(r,t,n,i,u){if(F(r,Uint8Array)&&(r=o.from(r,r.offset,r.byteLength)),!o.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),n===void 0&&(n=r?r.length:0),i===void 0&&(i=0),u===void 0&&(u=this.length),t<0||n>r.length||i<0||u>this.length)throw new RangeError("out of range index");if(i>=u&&t>=n)return 0;if(i>=u)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,u>>>=0,this===r)return 0;let h=u-i,l=n-t,m=Math.min(h,l),E=this.slice(i,u),g=r.slice(t,n);for(let y=0;y2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,ur(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof r=="string"&&(r=o.from(r,n)),o.isBuffer(r))return r.length===0?-1:sr(e,r,t,n,i);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):sr(e,[r],t,n,i);throw new TypeError("val must be string, number or Buffer")}function sr(e,r,t,n,i){let u=1,h=e.length,l=r.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||r.length<2)return-1;u=2,h/=2,l/=2,t/=2}function m(g,y){return u===1?g[y]:g.readUInt16BE(y*u)}let E;if(i){let g=-1;for(E=t;Eh&&(t=h-l),E=t;E>=0;E--){let g=!0;for(let y=0;yi&&(n=i)):n=i;let u=r.length;n>u/2&&(n=u/2);let h;for(h=0;h>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let u=this.length-t;if((n===void 0||n>u)&&(n=u),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let h=!1;for(;;)switch(i){case"hex":return Mr(this,r,t,n);case"utf8":case"utf-8":return Nr(this,r,t,n);case"ascii":case"latin1":case"binary":return $r(this,r,t,n);case"base64":return br(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kr(this,r,t,n);default:if(h)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),h=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Pr(e,r,t){return r===0&&t===e.length?p.fromByteArray(e):p.fromByteArray(e.slice(r,t))}function lr(e,r,t){t=Math.min(e.length,t);let n=[],i=r;for(;i239?4:u>223?3:u>191?2:1;if(i+l<=t){let m,E,g,y;switch(l){case 1:u<128&&(h=u);break;case 2:m=e[i+1],(m&192)===128&&(y=(u&31)<<6|m&63,y>127&&(h=y));break;case 3:m=e[i+1],E=e[i+2],(m&192)===128&&(E&192)===128&&(y=(u&15)<<12|(m&63)<<6|E&63,y>2047&&(y<55296||y>57343)&&(h=y));break;case 4:m=e[i+1],E=e[i+2],g=e[i+3],(m&192)===128&&(E&192)===128&&(g&192)===128&&(y=(u&15)<<18|(m&63)<<12|(E&63)<<6|g&63,y>65535&&y<1114112&&(h=y))}}h===null?(h=65533,l=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|h&1023),n.push(h),i+=l}return Fr(n)}let ar=4096;function Fr(e){let r=e.length;if(r<=ar)return String.fromCharCode.apply(String,e);let t="",n=0;for(;nn)&&(t=n);let i="";for(let u=r;un&&(r=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tt)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(r,t,n){r=r>>>0,t=t>>>0,n||R(r,t,this.length);let i=this[r],u=1,h=0;for(;++h>>0,t=t>>>0,n||R(r,t,this.length);let i=this[r+--t],u=1;for(;t>0&&(u*=256);)i+=this[r+--t]*u;return i},o.prototype.readUint8=o.prototype.readUInt8=function(r,t){return r=r>>>0,t||R(r,1,this.length),this[r]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||R(r,2,this.length),this[r]|this[r+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||R(r,2,this.length),this[r]<<8|this[r+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||R(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||R(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},o.prototype.readBigUInt64LE=q(function(r){r=r>>>0,V(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&J(r,this.length-8);let i=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,u=this[++r]+this[++r]*2**8+this[++r]*2**16+n*2**24;return BigInt(i)+(BigInt(u)<>>0,V(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&J(r,this.length-8);let i=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],u=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+n;return(BigInt(i)<>>0,t=t>>>0,n||R(r,t,this.length);let i=this[r],u=1,h=0;for(;++h=u&&(i-=Math.pow(2,8*t)),i},o.prototype.readIntBE=function(r,t,n){r=r>>>0,t=t>>>0,n||R(r,t,this.length);let i=t,u=1,h=this[r+--i];for(;i>0&&(u*=256);)h+=this[r+--i]*u;return u*=128,h>=u&&(h-=Math.pow(2,8*t)),h},o.prototype.readInt8=function(r,t){return r=r>>>0,t||R(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},o.prototype.readInt16LE=function(r,t){r=r>>>0,t||R(r,2,this.length);let n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n},o.prototype.readInt16BE=function(r,t){r=r>>>0,t||R(r,2,this.length);let n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n},o.prototype.readInt32LE=function(r,t){return r=r>>>0,t||R(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},o.prototype.readInt32BE=function(r,t){return r=r>>>0,t||R(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},o.prototype.readBigInt64LE=q(function(r){r=r>>>0,V(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&J(r,this.length-8);let i=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(n<<24);return(BigInt(i)<>>0,V(r,"offset");let t=this[r],n=this[r+7];(t===void 0||n===void 0)&&J(r,this.length-8);let i=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(i)<>>0,t||R(r,4,this.length),c.read(this,r,!0,23,4)},o.prototype.readFloatBE=function(r,t){return r=r>>>0,t||R(r,4,this.length),c.read(this,r,!1,23,4)},o.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||R(r,8,this.length),c.read(this,r,!0,52,8)},o.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||R(r,8,this.length),c.read(this,r,!1,52,8)};function $(e,r,t,n,i,u){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||re.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,n=n>>>0,!i){let l=Math.pow(2,8*n)-1;$(this,r,t,n,l,0)}let u=1,h=0;for(this[t]=r&255;++h>>0,n=n>>>0,!i){let l=Math.pow(2,8*n)-1;$(this,r,t,n,l,0)}let u=n-1,h=1;for(this[t+u]=r&255;--u>=0&&(h*=256);)this[t+u]=r/h&255;return t+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,1,255,0),this[t]=r&255,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function fr(e,r,t,n,i){mr(r,n,i,e,t,7);let u=Number(r&BigInt(4294967295));e[t++]=u,u=u>>8,e[t++]=u,u=u>>8,e[t++]=u,u=u>>8,e[t++]=u;let h=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=h,h=h>>8,e[t++]=h,h=h>>8,e[t++]=h,h=h>>8,e[t++]=h,t}function yr(e,r,t,n,i){mr(r,n,i,e,t,7);let u=Number(r&BigInt(4294967295));e[t+7]=u,u=u>>8,e[t+6]=u,u=u>>8,e[t+5]=u,u=u>>8,e[t+4]=u;let h=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=h,h=h>>8,e[t+2]=h,h=h>>8,e[t+1]=h,h=h>>8,e[t]=h,t+8}o.prototype.writeBigUInt64LE=q(function(r,t=0){return fr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=q(function(r,t=0){return yr(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let m=Math.pow(2,8*n-1);$(this,r,t,n,m-1,-m)}let u=0,h=1,l=0;for(this[t]=r&255;++u>0)-l&255;return t+n},o.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t=t>>>0,!i){let m=Math.pow(2,8*n-1);$(this,r,t,n,m-1,-m)}let u=n-1,h=1,l=0;for(this[t+u]=r&255;--u>=0&&(h*=256);)r<0&&l===0&&this[t+u+1]!==0&&(l=1),this[t+u]=(r/h>>0)-l&255;return t+n},o.prototype.writeInt8=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1},o.prototype.writeInt16LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2},o.prototype.writeInt16BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2},o.prototype.writeInt32LE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4},o.prototype.writeInt32BE=function(r,t,n){return r=+r,t=t>>>0,n||$(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4},o.prototype.writeBigInt64LE=q(function(r,t=0){return fr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=q(function(r,t=0){return yr(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function wr(e,r,t,n,i,u){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Br(e,r,t,n,i){return r=+r,t=t>>>0,i||wr(e,r,t,4),c.write(e,r,t,n,23,4),t+4}o.prototype.writeFloatLE=function(r,t,n){return Br(this,r,t,!0,n)},o.prototype.writeFloatBE=function(r,t,n){return Br(this,r,t,!1,n)};function dr(e,r,t,n,i){return r=+r,t=t>>>0,i||wr(e,r,t,8),c.write(e,r,t,n,52,8),t+8}o.prototype.writeDoubleLE=function(r,t,n){return dr(this,r,t,!0,n)},o.prototype.writeDoubleBE=function(r,t,n){return dr(this,r,t,!1,n)},o.prototype.copy=function(r,t,n,i){if(!o.isBuffer(r))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t>>0,n=n===void 0?this.length:n>>>0,r||(r=0);let u;if(typeof r=="number")for(u=t;u2**32?i=Er(String(t)):typeof t=="bigint"&&(i=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(i=Er(i)),i+="n"),n+=` It must be ${r}. Received ${i}`,n},RangeError);function Er(e){let r="",t=e.length,n=e[0]==="-"?1:0;for(;t>=n+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function qr(e,r,t){V(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&J(r,e.length-(t+1))}function mr(e,r,t,n,i,u){if(e>t||e3?r===0||r===BigInt(0)?l=`>= 0${h} and < 2${h} ** ${(u+1)*8}${h}`:l=`>= -(2${h} ** ${(u+1)*8-1}${h}) and < 2 ** ${(u+1)*8-1}${h}`:l=`>= ${r}${h} and <= ${t}${h}`,new H.ERR_OUT_OF_RANGE("value",l,e)}qr(n,i,u)}function V(e,r){if(typeof e!="number")throw new H.ERR_INVALID_ARG_TYPE(r,"number",e)}function J(e,r,t){throw Math.floor(e)!==e?(V(e,t),new H.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new H.ERR_BUFFER_OUT_OF_BOUNDS:new H.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}let Wr=/[^+/0-9A-Za-z-_]/g;function Xr(e){if(e=e.split("=")[0],e=e.trim().replace(Wr,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function or(e,r){r=r||1/0;let t,n=e.length,i=null,u=[];for(let h=0;h55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&u.push(239,191,189);continue}else if(h+1===n){(r-=3)>-1&&u.push(239,191,189);continue}i=t;continue}if(t<56320){(r-=3)>-1&&u.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(r-=3)>-1&&u.push(239,191,189);if(i=null,t<128){if((r-=1)<0)break;u.push(t)}else if(t<2048){if((r-=2)<0)break;u.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;u.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;u.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return u}function jr(e){let r=[];for(let t=0;t>8,i=t%256,u.push(i),u.push(n);return u}function gr(e){return p.toByteArray(Xr(e))}function rr(e,r,t,n){let i;for(i=0;i=r.length||i>=e.length);++i)r[i+t]=e[i];return i}function F(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function ur(e){return e!==e}let Vr=function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let n=t*16;for(let i=0;i<16;++i)r[n+i]=e[t]+e[i]}return r}();function q(e){return typeof BigInt>"u"?zr:e}function zr(){throw new Error("BigInt not supported")}return W}var K,Ir,er,Ar,W,Ur,X,Tr,yt,wt,xr=tr(()=>{Q();v();Z();K={},Ir=!1;er={},Ar=!1;W={},Ur=!1;X=ht();X.Buffer;X.SlowBuffer;X.INSPECT_MAX_BYTES;X.kMaxLength;Tr=X.Buffer,yt=X.INSPECT_MAX_BYTES,wt=X.kMaxLength});var v=tr(()=>{xr()});var Lr=rt((At,Cr)=>{Q();v();Z();var A=Cr.exports={},O,D;function cr(){throw new Error("setTimeout has not been defined")}function pr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?O=setTimeout:O=cr}catch{O=cr}try{typeof clearTimeout=="function"?D=clearTimeout:D=pr}catch{D=pr}})();function Rr(p){if(O===setTimeout)return setTimeout(p,0);if((O===cr||!O)&&setTimeout)return O=setTimeout,setTimeout(p,0);try{return O(p,0)}catch{try{return O.call(null,p,0)}catch{return O.call(this,p,0)}}}function ct(p){if(D===clearTimeout)return clearTimeout(p);if((D===pr||!D)&&clearTimeout)return D=clearTimeout,clearTimeout(p);try{return D(p)}catch{try{return D.call(null,p)}catch{return D.call(this,p)}}}var Y=[],z=!1,j,nr=-1;function pt(){!z||!j||(z=!1,j.length?Y=j.concat(Y):nr=-1,Y.length&&_r())}function _r(){if(!z){var p=Rr(pt);z=!0;for(var c=Y.length;c;){for(j=Y,Y=[];++nr1)for(var f=1;f{it=et(Lr(),1)});export{rt as a,st as b,et as c,Q as d,Z as e,Tr as f,v as g}; /*! Bundled license information: @jspm/core/nodelibs/browser/buffer.js: (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh *) */