UNPKG

@uxuycom/web3-tg-sdk

Version:

web3 sdk for tg

1 lines 347 kB
var pc=Object.create;var mo=Object.defineProperty;var dc=Object.getOwnPropertyDescriptor;var mc=Object.getOwnPropertyNames;var gc=Object.getPrototypeOf,yc=Object.prototype.hasOwnProperty;var ia=(r=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(r,{get:(e,t)=>(typeof require!="undefined"?require:e)[t]}):r)(function(r){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var $e=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),vc=(r,e)=>{for(var t in e)mo(r,t,{get:e[t],enumerable:!0})},xc=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of mc(e))!yc.call(r,i)&&i!==t&&mo(r,i,{get:()=>e[i],enumerable:!(n=dc(e,i))||n.enumerable});return r};var ar=(r,e,t)=>(t=r!=null?pc(gc(r)):{},xc(e||!r||!r.__esModule?mo(t,"default",{value:r,enumerable:!0}):t,r));var go=(r,e,t)=>{if(!e.has(r))throw TypeError("Cannot "+t)};var rr=(r,e,t)=>(go(r,e,"read from private field"),t?t.call(r):e.get(r)),Rr=(r,e,t)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,t)},kr=(r,e,t,n)=>(go(r,e,"write to private field"),n?n.call(r,t):e.set(r,t),t);var oa=(r,e,t,n)=>({set _(i){kr(r,e,i,t)},get _(){return rr(r,e,n)}}),yo=(r,e,t)=>(go(r,e,"access private method"),t);var fa=$e(ii=>{"use strict";ii.byteLength=bc;ii.toByteArray=Ac;ii.fromByteArray=Sc;var fr=[],tr=[],wc=typeof Uint8Array!="undefined"?Uint8Array:Array,vo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Fr=0,sa=vo.length;Fr<sa;++Fr)fr[Fr]=vo[Fr],tr[vo.charCodeAt(Fr)]=Fr;var Fr,sa;tr["-".charCodeAt(0)]=62;tr["_".charCodeAt(0)]=63;function aa(r){var e=r.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var n=t===e?0:4-t%4;return[t,n]}function bc(r){var e=aa(r),t=e[0],n=e[1];return(t+n)*3/4-n}function Mc(r,e,t){return(e+t)*3/4-t}function Ac(r){var e,t=aa(r),n=t[0],i=t[1],u=new wc(Mc(r,n,i)),h=0,x=i>0?n-4:n,_;for(_=0;_<x;_+=4)e=tr[r.charCodeAt(_)]<<18|tr[r.charCodeAt(_+1)]<<12|tr[r.charCodeAt(_+2)]<<6|tr[r.charCodeAt(_+3)],u[h++]=e>>16&255,u[h++]=e>>8&255,u[h++]=e&255;return i===2&&(e=tr[r.charCodeAt(_)]<<2|tr[r.charCodeAt(_+1)]>>4,u[h++]=e&255),i===1&&(e=tr[r.charCodeAt(_)]<<10|tr[r.charCodeAt(_+1)]<<4|tr[r.charCodeAt(_+2)]>>2,u[h++]=e>>8&255,u[h++]=e&255),u}function _c(r){return fr[r>>18&63]+fr[r>>12&63]+fr[r>>6&63]+fr[r&63]}function Ec(r,e,t){for(var n,i=[],u=e;u<t;u+=3)n=(r[u]<<16&16711680)+(r[u+1]<<8&65280)+(r[u+2]&255),i.push(_c(n));return i.join("")}function Sc(r){for(var e,t=r.length,n=t%3,i=[],u=16383,h=0,x=t-n;h<x;h+=u)i.push(Ec(r,h,h+u>x?x:h+u));return n===1?(e=r[t-1],i.push(fr[e>>2]+fr[e<<4&63]+"==")):n===2&&(e=(r[t-2]<<8)+r[t-1],i.push(fr[e>>10]+fr[e>>4&63]+fr[e<<2&63]+"=")),i.join("")}});var ua=$e(xo=>{"use strict";xo.read=function(r,e,t,n,i){var u,h,x=i*8-n-1,_=(1<<x)-1,E=_>>1,S=-7,I=t?i-1:0,L=t?-1:1,Y=r[e+I];for(I+=L,u=Y&(1<<-S)-1,Y>>=-S,S+=x;S>0;u=u*256+r[e+I],I+=L,S-=8);for(h=u&(1<<-S)-1,u>>=-S,S+=n;S>0;h=h*256+r[e+I],I+=L,S-=8);if(u===0)u=1-E;else{if(u===_)return h?NaN:(Y?-1:1)*(1/0);h=h+Math.pow(2,n),u=u-E}return(Y?-1:1)*h*Math.pow(2,u-n)};xo.write=function(r,e,t,n,i,u){var h,x,_,E=u*8-i-1,S=(1<<E)-1,I=S>>1,L=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,Y=n?0:u-1,$=n?1:-1,te=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(x=isNaN(e)?1:0,h=S):(h=Math.floor(Math.log(e)/Math.LN2),e*(_=Math.pow(2,-h))<1&&(h--,_*=2),h+I>=1?e+=L/_:e+=L*Math.pow(2,1-I),e*_>=2&&(h++,_/=2),h+I>=S?(x=0,h=S):h+I>=1?(x=(e*_-1)*Math.pow(2,i),h=h+I):(x=e*Math.pow(2,I-1)*Math.pow(2,i),h=0));i>=8;r[t+Y]=x&255,Y+=$,x/=256,i-=8);for(h=h<<i|x,E+=i;E>0;r[t+Y]=h&255,Y+=$,h/=256,E-=8);r[t+Y-$]|=te*128}});var Io=$e(tn=>{"use strict";var wo=fa(),Xr=ua(),la=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;tn.Buffer=V;tn.SlowBuffer=Bc;tn.INSPECT_MAX_BYTES=50;var oi=2147483647;tn.kMaxLength=oi;V.TYPED_ARRAY_SUPPORT=Tc();!V.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&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 Tc(){try{let r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch(r){return!1}}Object.defineProperty(V.prototype,"parent",{enumerable:!0,get:function(){if(V.isBuffer(this))return this.buffer}});Object.defineProperty(V.prototype,"offset",{enumerable:!0,get:function(){if(V.isBuffer(this))return this.byteOffset}});function wr(r){if(r>oi)throw new RangeError('The value "'+r+'" is invalid for option "size"');let e=new Uint8Array(r);return Object.setPrototypeOf(e,V.prototype),e}function V(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _o(r)}return da(r,e,t)}V.poolSize=8192;function da(r,e,t){if(typeof r=="string")return Pc(r,e);if(ArrayBuffer.isView(r))return Uc(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(ur(r,ArrayBuffer)||r&&ur(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ur(r,SharedArrayBuffer)||r&&ur(r.buffer,SharedArrayBuffer)))return Mo(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return V.from(n,e,t);let i=Oc(r);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return V.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}V.from=function(r,e,t){return da(r,e,t)};Object.setPrototypeOf(V.prototype,Uint8Array.prototype);Object.setPrototypeOf(V,Uint8Array);function ma(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function Ic(r,e,t){return ma(r),r<=0?wr(r):e!==void 0?typeof t=="string"?wr(r).fill(e,t):wr(r).fill(e):wr(r)}V.alloc=function(r,e,t){return Ic(r,e,t)};function _o(r){return ma(r),wr(r<0?0:Eo(r)|0)}V.allocUnsafe=function(r){return _o(r)};V.allocUnsafeSlow=function(r){return _o(r)};function Pc(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!V.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let t=ga(r,e)|0,n=wr(t),i=n.write(r,e);return i!==t&&(n=n.slice(0,i)),n}function bo(r){let e=r.length<0?0:Eo(r.length)|0,t=wr(e);for(let n=0;n<e;n+=1)t[n]=r[n]&255;return t}function Uc(r){if(ur(r,Uint8Array)){let e=new Uint8Array(r);return Mo(e.buffer,e.byteOffset,e.byteLength)}return bo(r)}function Mo(r,e,t){if(e<0||r.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');let n;return e===void 0&&t===void 0?n=new Uint8Array(r):t===void 0?n=new Uint8Array(r,e):n=new Uint8Array(r,e,t),Object.setPrototypeOf(n,V.prototype),n}function Oc(r){if(V.isBuffer(r)){let e=Eo(r.length)|0,t=wr(e);return t.length===0||r.copy(t,0,0,e),t}if(r.length!==void 0)return typeof r.length!="number"||To(r.length)?wr(0):bo(r);if(r.type==="Buffer"&&Array.isArray(r.data))return bo(r.data)}function Eo(r){if(r>=oi)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+oi.toString(16)+" bytes");return r|0}function Bc(r){return+r!=r&&(r=0),V.alloc(+r)}V.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==V.prototype};V.compare=function(e,t){if(ur(e,Uint8Array)&&(e=V.from(e,e.offset,e.byteLength)),ur(t,Uint8Array)&&(t=V.from(t,t.offset,t.byteLength)),!V.isBuffer(e)||!V.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,i=t.length;for(let u=0,h=Math.min(n,i);u<h;++u)if(e[u]!==t[u]){n=e[u],i=t[u];break}return n<i?-1:i<n?1:0};V.isEncoding=function(e){switch(String(e).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}};V.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return V.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let i=V.allocUnsafe(t),u=0;for(n=0;n<e.length;++n){let h=e[n];if(ur(h,Uint8Array))u+h.length>i.length?(V.isBuffer(h)||(h=V.from(h)),h.copy(i,u)):Uint8Array.prototype.set.call(i,h,u);else if(V.isBuffer(h))h.copy(i,u);else throw new TypeError('"list" argument must be an Array of Buffers');u+=h.length}return i};function ga(r,e){if(V.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||ur(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);let t=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Ao(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Ea(r).length;default:if(i)return n?-1:Ao(r).length;e=(""+e).toLowerCase(),i=!0}}V.byteLength=ga;function Cc(r,e,t){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return zc(this,e,t);case"utf8":case"utf-8":return va(this,e,t);case"ascii":return qc(this,e,t);case"latin1":case"binary":return jc(this,e,t);case"base64":return Dc(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $c(this,e,t);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}V.prototype._isBuffer=!0;function Lr(r,e,t){let n=r[e];r[e]=r[t],r[t]=n}V.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)Lr(this,t,t+1);return this};V.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)Lr(this,t,t+3),Lr(this,t+1,t+2);return this};V.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)Lr(this,t,t+7),Lr(this,t+1,t+6),Lr(this,t+2,t+5),Lr(this,t+3,t+4);return this};V.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?va(this,0,e):Cc.apply(this,arguments)};V.prototype.toLocaleString=V.prototype.toString;V.prototype.equals=function(e){if(!V.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:V.compare(this,e)===0};V.prototype.inspect=function(){let e="",t=tn.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"};la&&(V.prototype[la]=V.prototype.inspect);V.prototype.compare=function(e,t,n,i,u){if(ur(e,Uint8Array)&&(e=V.from(e,e.offset,e.byteLength)),!V.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),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),u===void 0&&(u=this.length),t<0||n>e.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===e)return 0;let h=u-i,x=n-t,_=Math.min(h,x),E=this.slice(i,u),S=e.slice(t,n);for(let I=0;I<_;++I)if(E[I]!==S[I]){h=E[I],x=S[I];break}return h<x?-1:x<h?1:0};function ya(r,e,t,n,i){if(r.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,To(t)&&(t=i?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(i)return-1;t=r.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof e=="string"&&(e=V.from(e,n)),V.isBuffer(e))return e.length===0?-1:ca(r,e,t,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):ca(r,[e],t,n,i);throw new TypeError("val must be string, number or Buffer")}function ca(r,e,t,n,i){let u=1,h=r.length,x=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||e.length<2)return-1;u=2,h/=2,x/=2,t/=2}function _(S,I){return u===1?S[I]:S.readUInt16BE(I*u)}let E;if(i){let S=-1;for(E=t;E<h;E++)if(_(r,E)===_(e,S===-1?0:E-S)){if(S===-1&&(S=E),E-S+1===x)return S*u}else S!==-1&&(E-=E-S),S=-1}else for(t+x>h&&(t=h-x),E=t;E>=0;E--){let S=!0;for(let I=0;I<x;I++)if(_(r,E+I)!==_(e,I)){S=!1;break}if(S)return E}return-1}V.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1};V.prototype.indexOf=function(e,t,n){return ya(this,e,t,n,!0)};V.prototype.lastIndexOf=function(e,t,n){return ya(this,e,t,n,!1)};function Nc(r,e,t,n){t=Number(t)||0;let i=r.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;let u=e.length;n>u/2&&(n=u/2);let h;for(h=0;h<n;++h){let x=parseInt(e.substr(h*2,2),16);if(To(x))return h;r[t+h]=x}return h}function Rc(r,e,t,n){return si(Ao(e,r.length-t),r,t,n)}function kc(r,e,t,n){return si(Hc(e),r,t,n)}function Fc(r,e,t,n){return si(Ea(e),r,t,n)}function Lc(r,e,t,n){return si(Gc(e,r.length-t),r,t,n)}V.prototype.write=function(e,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>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),e.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 Nc(this,e,t,n);case"utf8":case"utf-8":return Rc(this,e,t,n);case"ascii":case"latin1":case"binary":return kc(this,e,t,n);case"base64":return Fc(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Lc(this,e,t,n);default:if(h)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),h=!0}};V.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Dc(r,e,t){return e===0&&t===r.length?wo.fromByteArray(r):wo.fromByteArray(r.slice(e,t))}function va(r,e,t){t=Math.min(r.length,t);let n=[],i=e;for(;i<t;){let u=r[i],h=null,x=u>239?4:u>223?3:u>191?2:1;if(i+x<=t){let _,E,S,I;switch(x){case 1:u<128&&(h=u);break;case 2:_=r[i+1],(_&192)===128&&(I=(u&31)<<6|_&63,I>127&&(h=I));break;case 3:_=r[i+1],E=r[i+2],(_&192)===128&&(E&192)===128&&(I=(u&15)<<12|(_&63)<<6|E&63,I>2047&&(I<55296||I>57343)&&(h=I));break;case 4:_=r[i+1],E=r[i+2],S=r[i+3],(_&192)===128&&(E&192)===128&&(S&192)===128&&(I=(u&15)<<18|(_&63)<<12|(E&63)<<6|S&63,I>65535&&I<1114112&&(h=I))}}h===null?(h=65533,x=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|h&1023),n.push(h),i+=x}return Wc(n)}var ha=4096;function Wc(r){let e=r.length;if(e<=ha)return String.fromCharCode.apply(String,r);let t="",n=0;for(;n<e;)t+=String.fromCharCode.apply(String,r.slice(n,n+=ha));return t}function qc(r,e,t){let n="";t=Math.min(r.length,t);for(let i=e;i<t;++i)n+=String.fromCharCode(r[i]&127);return n}function jc(r,e,t){let n="";t=Math.min(r.length,t);for(let i=e;i<t;++i)n+=String.fromCharCode(r[i]);return n}function zc(r,e,t){let n=r.length;(!e||e<0)&&(e=0),(!t||t<0||t>n)&&(t=n);let i="";for(let u=e;u<t;++u)i+=Jc[r[u]];return i}function $c(r,e,t){let n=r.slice(e,t),i="";for(let u=0;u<n.length-1;u+=2)i+=String.fromCharCode(n[u]+n[u+1]*256);return i}V.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let i=this.subarray(e,t);return Object.setPrototypeOf(i,V.prototype),i};function Dt(r,e,t){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+e>t)throw new RangeError("Trying to access beyond buffer length")}V.prototype.readUintLE=V.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||Dt(e,t,this.length);let i=this[e],u=1,h=0;for(;++h<t&&(u*=256);)i+=this[e+h]*u;return i};V.prototype.readUintBE=V.prototype.readUIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||Dt(e,t,this.length);let i=this[e+--t],u=1;for(;t>0&&(u*=256);)i+=this[e+--t]*u;return i};V.prototype.readUint8=V.prototype.readUInt8=function(e,t){return e=e>>>0,t||Dt(e,1,this.length),this[e]};V.prototype.readUint16LE=V.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||Dt(e,2,this.length),this[e]|this[e+1]<<8};V.prototype.readUint16BE=V.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||Dt(e,2,this.length),this[e]<<8|this[e+1]};V.prototype.readUint32LE=V.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||Dt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};V.prototype.readUint32BE=V.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||Dt(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};V.prototype.readBigUInt64LE=Er(function(e){e=e>>>0,en(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&Pn(e,this.length-8);let i=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,u=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(i)+(BigInt(u)<<BigInt(32))});V.prototype.readBigUInt64BE=Er(function(e){e=e>>>0,en(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&Pn(e,this.length-8);let i=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],u=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(u)});V.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||Dt(e,t,this.length);let i=this[e],u=1,h=0;for(;++h<t&&(u*=256);)i+=this[e+h]*u;return u*=128,i>=u&&(i-=Math.pow(2,8*t)),i};V.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||Dt(e,t,this.length);let i=t,u=1,h=this[e+--i];for(;i>0&&(u*=256);)h+=this[e+--i]*u;return u*=128,h>=u&&(h-=Math.pow(2,8*t)),h};V.prototype.readInt8=function(e,t){return e=e>>>0,t||Dt(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};V.prototype.readInt16LE=function(e,t){e=e>>>0,t||Dt(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};V.prototype.readInt16BE=function(e,t){e=e>>>0,t||Dt(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};V.prototype.readInt32LE=function(e,t){return e=e>>>0,t||Dt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};V.prototype.readInt32BE=function(e,t){return e=e>>>0,t||Dt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};V.prototype.readBigInt64LE=Er(function(e){e=e>>>0,en(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&Pn(e,this.length-8);let i=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});V.prototype.readBigInt64BE=Er(function(e){e=e>>>0,en(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&Pn(e,this.length-8);let i=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(i)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)});V.prototype.readFloatLE=function(e,t){return e=e>>>0,t||Dt(e,4,this.length),Xr.read(this,e,!0,23,4)};V.prototype.readFloatBE=function(e,t){return e=e>>>0,t||Dt(e,4,this.length),Xr.read(this,e,!1,23,4)};V.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||Dt(e,8,this.length),Xr.read(this,e,!0,52,8)};V.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||Dt(e,8,this.length),Xr.read(this,e,!1,52,8)};function Jt(r,e,t,n,i,u){if(!V.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<u)throw new RangeError('"value" argument is out of bounds');if(t+n>r.length)throw new RangeError("Index out of range")}V.prototype.writeUintLE=V.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t=t>>>0,n=n>>>0,!i){let x=Math.pow(2,8*n)-1;Jt(this,e,t,n,x,0)}let u=1,h=0;for(this[t]=e&255;++h<n&&(u*=256);)this[t+h]=e/u&255;return t+n};V.prototype.writeUintBE=V.prototype.writeUIntBE=function(e,t,n,i){if(e=+e,t=t>>>0,n=n>>>0,!i){let x=Math.pow(2,8*n)-1;Jt(this,e,t,n,x,0)}let u=n-1,h=1;for(this[t+u]=e&255;--u>=0&&(h*=256);)this[t+u]=e/h&255;return t+n};V.prototype.writeUint8=V.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||Jt(this,e,t,1,255,0),this[t]=e&255,t+1};V.prototype.writeUint16LE=V.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||Jt(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};V.prototype.writeUint16BE=V.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||Jt(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};V.prototype.writeUint32LE=V.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||Jt(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};V.prototype.writeUint32BE=V.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||Jt(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function xa(r,e,t,n,i){_a(e,n,i,r,t,7);let u=Number(e&BigInt(4294967295));r[t++]=u,u=u>>8,r[t++]=u,u=u>>8,r[t++]=u,u=u>>8,r[t++]=u;let h=Number(e>>BigInt(32)&BigInt(4294967295));return r[t++]=h,h=h>>8,r[t++]=h,h=h>>8,r[t++]=h,h=h>>8,r[t++]=h,t}function wa(r,e,t,n,i){_a(e,n,i,r,t,7);let u=Number(e&BigInt(4294967295));r[t+7]=u,u=u>>8,r[t+6]=u,u=u>>8,r[t+5]=u,u=u>>8,r[t+4]=u;let h=Number(e>>BigInt(32)&BigInt(4294967295));return r[t+3]=h,h=h>>8,r[t+2]=h,h=h>>8,r[t+1]=h,h=h>>8,r[t]=h,t+8}V.prototype.writeBigUInt64LE=Er(function(e,t=0){return xa(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});V.prototype.writeBigUInt64BE=Er(function(e,t=0){return wa(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});V.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t=t>>>0,!i){let _=Math.pow(2,8*n-1);Jt(this,e,t,n,_-1,-_)}let u=0,h=1,x=0;for(this[t]=e&255;++u<n&&(h*=256);)e<0&&x===0&&this[t+u-1]!==0&&(x=1),this[t+u]=(e/h>>0)-x&255;return t+n};V.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t=t>>>0,!i){let _=Math.pow(2,8*n-1);Jt(this,e,t,n,_-1,-_)}let u=n-1,h=1,x=0;for(this[t+u]=e&255;--u>=0&&(h*=256);)e<0&&x===0&&this[t+u+1]!==0&&(x=1),this[t+u]=(e/h>>0)-x&255;return t+n};V.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||Jt(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};V.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||Jt(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};V.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||Jt(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};V.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||Jt(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};V.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||Jt(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]=e&255,t+4};V.prototype.writeBigInt64LE=Er(function(e,t=0){return xa(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});V.prototype.writeBigInt64BE=Er(function(e,t=0){return wa(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ba(r,e,t,n,i,u){if(t+n>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Ma(r,e,t,n,i){return e=+e,t=t>>>0,i||ba(r,e,t,4,34028234663852886e22,-34028234663852886e22),Xr.write(r,e,t,n,23,4),t+4}V.prototype.writeFloatLE=function(e,t,n){return Ma(this,e,t,!0,n)};V.prototype.writeFloatBE=function(e,t,n){return Ma(this,e,t,!1,n)};function Aa(r,e,t,n,i){return e=+e,t=t>>>0,i||ba(r,e,t,8,17976931348623157e292,-17976931348623157e292),Xr.write(r,e,t,n,52,8),t+8}V.prototype.writeDoubleLE=function(e,t,n){return Aa(this,e,t,!0,n)};V.prototype.writeDoubleBE=function(e,t,n){return Aa(this,e,t,!1,n)};V.prototype.copy=function(e,t,n,i){if(!V.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=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),e.length-t<i-n&&(i=e.length-t+n);let u=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),t),u};V.prototype.fill=function(e,t,n,i){if(typeof e=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!V.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){let h=e.charCodeAt(0);(i==="utf8"&&h<128||i==="latin1")&&(e=h)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let u;if(typeof e=="number")for(u=t;u<n;++u)this[u]=e;else{let h=V.isBuffer(e)?e:V.from(e,i),x=h.length;if(x===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(u=0;u<n-t;++u)this[u+t]=h[u%x]}return this};var Qr={};function So(r,e,t){Qr[r]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${r}]`,this.stack,delete this.name}get code(){return r}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${r}]: ${this.message}`}}}So("ERR_BUFFER_OUT_OF_BOUNDS",function(r){return r?`${r} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);So("ERR_INVALID_ARG_TYPE",function(r,e){return`The "${r}" argument must be of type number. Received type ${typeof e}`},TypeError);So("ERR_OUT_OF_RANGE",function(r,e,t){let n=`The value of "${r}" is out of range.`,i=t;return Number.isInteger(t)&&Math.abs(t)>2**32?i=pa(String(t)):typeof t=="bigint"&&(i=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(i=pa(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n},RangeError);function pa(r){let e="",t=r.length,n=r[0]==="-"?1:0;for(;t>=n+4;t-=3)e=`_${r.slice(t-3,t)}${e}`;return`${r.slice(0,t)}${e}`}function Kc(r,e,t){en(e,"offset"),(r[e]===void 0||r[e+t]===void 0)&&Pn(e,r.length-(t+1))}function _a(r,e,t,n,i,u){if(r>t||r<e){let h=typeof e=="bigint"?"n":"",x;throw u>3?e===0||e===BigInt(0)?x=`>= 0${h} and < 2${h} ** ${(u+1)*8}${h}`:x=`>= -(2${h} ** ${(u+1)*8-1}${h}) and < 2 ** ${(u+1)*8-1}${h}`:x=`>= ${e}${h} and <= ${t}${h}`,new Qr.ERR_OUT_OF_RANGE("value",x,r)}Kc(n,i,u)}function en(r,e){if(typeof r!="number")throw new Qr.ERR_INVALID_ARG_TYPE(e,"number",r)}function Pn(r,e,t){throw Math.floor(r)!==r?(en(r,t),new Qr.ERR_OUT_OF_RANGE(t||"offset","an integer",r)):e<0?new Qr.ERR_BUFFER_OUT_OF_BOUNDS:new Qr.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${e}`,r)}var Yc=/[^+/0-9A-Za-z-_]/g;function Vc(r){if(r=r.split("=")[0],r=r.trim().replace(Yc,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function Ao(r,e){e=e||1/0;let t,n=r.length,i=null,u=[];for(let h=0;h<n;++h){if(t=r.charCodeAt(h),t>55295&&t<57344){if(!i){if(t>56319){(e-=3)>-1&&u.push(239,191,189);continue}else if(h+1===n){(e-=3)>-1&&u.push(239,191,189);continue}i=t;continue}if(t<56320){(e-=3)>-1&&u.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(e-=3)>-1&&u.push(239,191,189);if(i=null,t<128){if((e-=1)<0)break;u.push(t)}else if(t<2048){if((e-=2)<0)break;u.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;u.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=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 Hc(r){let e=[];for(let t=0;t<r.length;++t)e.push(r.charCodeAt(t)&255);return e}function Gc(r,e){let t,n,i,u=[];for(let h=0;h<r.length&&!((e-=2)<0);++h)t=r.charCodeAt(h),n=t>>8,i=t%256,u.push(i),u.push(n);return u}function Ea(r){return wo.toByteArray(Vc(r))}function si(r,e,t,n){let i;for(i=0;i<n&&!(i+t>=e.length||i>=r.length);++i)e[i+t]=r[i];return i}function ur(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function To(r){return r!==r}var Jc=function(){let r="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){let n=t*16;for(let i=0;i<16;++i)e[n+i]=r[t]+r[i]}return e}();function Er(r){return typeof BigInt=="undefined"?Zc:r}function Zc(){throw new Error("BigInt not supported")}});var Ia=$e((Am,Po)=>{"use strict";var Qc=Object.prototype.hasOwnProperty,Ht="~";function Un(){}Object.create&&(Un.prototype=Object.create(null),new Un().__proto__||(Ht=!1));function Xc(r,e,t){this.fn=r,this.context=e,this.once=t||!1}function Ta(r,e,t,n,i){if(typeof t!="function")throw new TypeError("The listener must be a function");var u=new Xc(t,n||r,i),h=Ht?Ht+e:e;return r._events[h]?r._events[h].fn?r._events[h]=[r._events[h],u]:r._events[h].push(u):(r._events[h]=u,r._eventsCount++),r}function ai(r,e){--r._eventsCount===0?r._events=new Un:delete r._events[e]}function Yt(){this._events=new Un,this._eventsCount=0}Yt.prototype.eventNames=function(){var e=[],t,n;if(this._eventsCount===0)return e;for(n in t=this._events)Qc.call(t,n)&&e.push(Ht?n.slice(1):n);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e};Yt.prototype.listeners=function(e){var t=Ht?Ht+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,u=n.length,h=new Array(u);i<u;i++)h[i]=n[i].fn;return h};Yt.prototype.listenerCount=function(e){var t=Ht?Ht+e:e,n=this._events[t];return n?n.fn?1:n.length:0};Yt.prototype.emit=function(e,t,n,i,u,h){var x=Ht?Ht+e:e;if(!this._events[x])return!1;var _=this._events[x],E=arguments.length,S,I;if(_.fn){switch(_.once&&this.removeListener(e,_.fn,void 0,!0),E){case 1:return _.fn.call(_.context),!0;case 2:return _.fn.call(_.context,t),!0;case 3:return _.fn.call(_.context,t,n),!0;case 4:return _.fn.call(_.context,t,n,i),!0;case 5:return _.fn.call(_.context,t,n,i,u),!0;case 6:return _.fn.call(_.context,t,n,i,u,h),!0}for(I=1,S=new Array(E-1);I<E;I++)S[I-1]=arguments[I];_.fn.apply(_.context,S)}else{var L=_.length,Y;for(I=0;I<L;I++)switch(_[I].once&&this.removeListener(e,_[I].fn,void 0,!0),E){case 1:_[I].fn.call(_[I].context);break;case 2:_[I].fn.call(_[I].context,t);break;case 3:_[I].fn.call(_[I].context,t,n);break;case 4:_[I].fn.call(_[I].context,t,n,i);break;default:if(!S)for(Y=1,S=new Array(E-1);Y<E;Y++)S[Y-1]=arguments[Y];_[I].fn.apply(_[I].context,S)}}return!0};Yt.prototype.on=function(e,t,n){return Ta(this,e,t,n,!1)};Yt.prototype.once=function(e,t,n){return Ta(this,e,t,n,!0)};Yt.prototype.removeListener=function(e,t,n,i){var u=Ht?Ht+e:e;if(!this._events[u])return this;if(!t)return ai(this,u),this;var h=this._events[u];if(h.fn)h.fn===t&&(!i||h.once)&&(!n||h.context===n)&&ai(this,u);else{for(var x=0,_=[],E=h.length;x<E;x++)(h[x].fn!==t||i&&!h[x].once||n&&h[x].context!==n)&&_.push(h[x]);_.length?this._events[u]=_.length===1?_[0]:_:ai(this,u)}return this};Yt.prototype.removeAllListeners=function(e){var t;return e?(t=Ht?Ht+e:e,this._events[t]&&ai(this,t)):(this._events=new Un,this._eventsCount=0),this};Yt.prototype.off=Yt.prototype.removeListener;Yt.prototype.addListener=Yt.prototype.on;Yt.prefixed=Ht;Yt.EventEmitter=Yt;typeof Po!="undefined"&&(Po.exports=Yt)});var Ba=$e((Em,Oa)=>{"use strict";Oa.exports=Error});var Na=$e((Sm,Ca)=>{"use strict";Ca.exports=EvalError});var ka=$e((Tm,Ra)=>{"use strict";Ra.exports=RangeError});var La=$e((Im,Fa)=>{"use strict";Fa.exports=ReferenceError});var Uo=$e((Pm,Da)=>{"use strict";Da.exports=SyntaxError});var rn=$e((Um,Wa)=>{"use strict";Wa.exports=TypeError});var ja=$e((Om,qa)=>{"use strict";qa.exports=URIError});var $a=$e((Bm,za)=>{"use strict";za.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var h=Object.getOwnPropertyDescriptor(e,t);if(h.value!==i||h.enumerable!==!0)return!1}return!0}});var Va=$e((Cm,Ya)=>{"use strict";var Ka=typeof Symbol!="undefined"&&Symbol,e0=$a();Ya.exports=function(){return typeof Ka!="function"||typeof Symbol!="function"||typeof Ka("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e0()}});var Ga=$e((Nm,Ha)=>{"use strict";var Oo={__proto__:null,foo:{}},t0=Object;Ha.exports=function(){return{__proto__:Oo}.foo===Oo.foo&&!(Oo instanceof t0)}});var Qa=$e((Rm,Za)=>{"use strict";var r0="Function.prototype.bind called on incompatible ",n0=Object.prototype.toString,i0=Math.max,o0="[object Function]",Ja=function(e,t){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var u=0;u<t.length;u+=1)n[u+e.length]=t[u];return n},s0=function(e,t){for(var n=[],i=t||0,u=0;i<e.length;i+=1,u+=1)n[u]=e[i];return n},a0=function(r,e){for(var t="",n=0;n<r.length;n+=1)t+=r[n],n+1<r.length&&(t+=e);return t};Za.exports=function(e){var t=this;if(typeof t!="function"||n0.apply(t)!==o0)throw new TypeError(r0+t);for(var n=s0(arguments,1),i,u=function(){if(this instanceof i){var S=t.apply(this,Ja(n,arguments));return Object(S)===S?S:this}return t.apply(e,Ja(n,arguments))},h=i0(0,t.length-n.length),x=[],_=0;_<h;_++)x[_]="$"+_;if(i=Function("binder","return function ("+a0(x,",")+"){ return binder.apply(this,arguments); }")(u),t.prototype){var E=function(){};E.prototype=t.prototype,i.prototype=new E,E.prototype=null}return i}});var fi=$e((km,Xa)=>{"use strict";var f0=Qa();Xa.exports=Function.prototype.bind||f0});var tf=$e((Fm,ef)=>{"use strict";var u0=Function.prototype.call,l0=Object.prototype.hasOwnProperty,c0=fi();ef.exports=c0.call(u0,l0)});var jr=$e((Lm,af)=>{"use strict";var ft,h0=Ba(),p0=Na(),d0=ka(),m0=La(),an=Uo(),sn=rn(),g0=ja(),sf=Function,Bo=function(r){try{return sf('"use strict"; return ('+r+").constructor;")()}catch(e){}},Wr=Object.getOwnPropertyDescriptor;if(Wr)try{Wr({},"")}catch(r){Wr=null}var Co=function(){throw new sn},y0=Wr?function(){try{return arguments.callee,Co}catch(r){try{return Wr(arguments,"callee").get}catch(e){return Co}}}():Co,nn=Va()(),v0=Ga()(),Wt=Object.getPrototypeOf||(v0?function(r){return r.__proto__}:null),on={},x0=typeof Uint8Array=="undefined"||!Wt?ft:Wt(Uint8Array),qr={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?ft:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ft:ArrayBuffer,"%ArrayIteratorPrototype%":nn&&Wt?Wt([][Symbol.iterator]()):ft,"%AsyncFromSyncIteratorPrototype%":ft,"%AsyncFunction%":on,"%AsyncGenerator%":on,"%AsyncGeneratorFunction%":on,"%AsyncIteratorPrototype%":on,"%Atomics%":typeof Atomics=="undefined"?ft:Atomics,"%BigInt%":typeof BigInt=="undefined"?ft:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?ft:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?ft:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?ft:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":h0,"%eval%":eval,"%EvalError%":p0,"%Float32Array%":typeof Float32Array=="undefined"?ft:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?ft:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?ft:FinalizationRegistry,"%Function%":sf,"%GeneratorFunction%":on,"%Int8Array%":typeof Int8Array=="undefined"?ft:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ft:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ft:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":nn&&Wt?Wt(Wt([][Symbol.iterator]())):ft,"%JSON%":typeof JSON=="object"?JSON:ft,"%Map%":typeof Map=="undefined"?ft:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!nn||!Wt?ft:Wt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ft:Promise,"%Proxy%":typeof Proxy=="undefined"?ft:Proxy,"%RangeError%":d0,"%ReferenceError%":m0,"%Reflect%":typeof Reflect=="undefined"?ft:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ft:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!nn||!Wt?ft:Wt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ft:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":nn&&Wt?Wt(""[Symbol.iterator]()):ft,"%Symbol%":nn?Symbol:ft,"%SyntaxError%":an,"%ThrowTypeError%":y0,"%TypedArray%":x0,"%TypeError%":sn,"%Uint8Array%":typeof Uint8Array=="undefined"?ft:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?ft:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?ft:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?ft:Uint32Array,"%URIError%":g0,"%WeakMap%":typeof WeakMap=="undefined"?ft:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ft:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ft:WeakSet};if(Wt)try{null.error}catch(r){rf=Wt(Wt(r)),qr["%Error.prototype%"]=rf}var rf,w0=function r(e){var t;if(e==="%AsyncFunction%")t=Bo("async function () {}");else if(e==="%GeneratorFunction%")t=Bo("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=Bo("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=r("%AsyncGenerator%");i&&Wt&&(t=Wt(i.prototype))}return qr[e]=t,t},nf={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},On=fi(),ui=tf(),b0=On.call(Function.call,Array.prototype.concat),M0=On.call(Function.apply,Array.prototype.splice),of=On.call(Function.call,String.prototype.replace),li=On.call(Function.call,String.prototype.slice),A0=On.call(Function.call,RegExp.prototype.exec),_0=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E0=/\\(\\)?/g,S0=function(e){var t=li(e,0,1),n=li(e,-1);if(t==="%"&&n!=="%")throw new an("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new an("invalid intrinsic syntax, expected opening `%`");var i=[];return of(e,_0,function(u,h,x,_){i[i.length]=x?of(_,E0,"$1"):h||u}),i},T0=function(e,t){var n=e,i;if(ui(nf,n)&&(i=nf[n],n="%"+i[0]+"%"),ui(qr,n)){var u=qr[n];if(u===on&&(u=w0(n)),typeof u=="undefined"&&!t)throw new sn("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:u}}throw new an("intrinsic "+e+" does not exist!")};af.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new sn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new sn('"allowMissing" argument must be a boolean');if(A0(/^%?[^%]*%?$/,e)===null)throw new an("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=S0(e),i=n.length>0?n[0]:"",u=T0("%"+i+"%",t),h=u.name,x=u.value,_=!1,E=u.alias;E&&(i=E[0],M0(n,b0([0,1],E)));for(var S=1,I=!0;S<n.length;S+=1){var L=n[S],Y=li(L,0,1),$=li(L,-1);if((Y==='"'||Y==="'"||Y==="`"||$==='"'||$==="'"||$==="`")&&Y!==$)throw new an("property names with quotes must have matching quotes");if((L==="constructor"||!I)&&(_=!0),i+="."+L,h="%"+i+"%",ui(qr,h))x=qr[h];else if(x!=null){if(!(L in x)){if(!t)throw new sn("base intrinsic for "+e+" exists, but the property is not available.");return}if(Wr&&S+1>=n.length){var te=Wr(x,L);I=!!te,I&&"get"in te&&!("originalValue"in te.get)?x=te.get:x=x[L]}else I=ui(x,L),x=x[L];I&&!_&&(qr[h]=x)}}return x}});var hi=$e((Dm,ff)=>{"use strict";var I0=jr(),ci=I0("%Object.defineProperty%",!0)||!1;if(ci)try{ci({},"a",{value:1})}catch(r){ci=!1}ff.exports=ci});var No=$e((Wm,uf)=>{"use strict";var P0=jr(),pi=P0("%Object.getOwnPropertyDescriptor%",!0);if(pi)try{pi([],"length")}catch(r){pi=null}uf.exports=pi});var pf=$e((qm,hf)=>{"use strict";var lf=hi(),U0=Uo(),fn=rn(),cf=No();hf.exports=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new fn("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new fn("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new fn("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new fn("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new fn("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new fn("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,x=arguments.length>6?arguments[6]:!1,_=!!cf&&cf(e,t);if(lf)lf(e,t,{configurable:h===null&&_?_.configurable:!h,enumerable:i===null&&_?_.enumerable:!i,value:n,writable:u===null&&_?_.writable:!u});else if(x||!i&&!u&&!h)e[t]=n;else throw new U0("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var gf=$e((jm,mf)=>{"use strict";var Ro=hi(),df=function(){return!!Ro};df.hasArrayLengthDefineBug=function(){if(!Ro)return null;try{return Ro([],"length",{value:1}).length!==1}catch(e){return!0}};mf.exports=df});var bf=$e((zm,wf)=>{"use strict";var O0=jr(),yf=pf(),B0=gf()(),vf=No(),xf=rn(),C0=O0("%Math.floor%");wf.exports=function(e,t){if(typeof e!="function")throw new xf("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||C0(t)!==t)throw new xf("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,u=!0;if("length"in e&&vf){var h=vf(e,"length");h&&!h.configurable&&(i=!1),h&&!h.writable&&(u=!1)}return(i||u||!n)&&(B0?yf(e,"length",t,!0,!0):yf(e,"length",t)),e}});var Tf=$e(($m,di)=>{"use strict";var ko=fi(),mi=jr(),N0=bf(),R0=rn(),_f=mi("%Function.prototype.apply%"),Ef=mi("%Function.prototype.call%"),Sf=mi("%Reflect.apply%",!0)||ko.call(Ef,_f),Mf=hi(),k0=mi("%Math.max%");di.exports=function(e){if(typeof e!="function")throw new R0("a function is required");var t=Sf(ko,Ef,arguments);return N0(t,1+k0(0,e.length-(arguments.length-1)),!0)};var Af=function(){return Sf(ko,_f,arguments)};Mf?Mf(di.exports,"apply",{value:Af}):di.exports.apply=Af});var Of=$e((Km,Uf)=>{"use strict";var If=jr(),Pf=Tf(),F0=Pf(If("String.prototype.indexOf"));Uf.exports=function(e,t){var n=If(e,!!t);return typeof n=="function"&&F0(e,".prototype.")>-1?Pf(n):n}});var Bf=$e(()=>{"use strict"});var Qf=$e((Hm,Zf)=>{"use strict";var Yo=typeof Map=="function"&&Map.prototype,Fo=Object.getOwnPropertyDescriptor&&Yo?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,yi=Yo&&Fo&&typeof Fo.get=="function"?Fo.get:null,Cf=Yo&&Map.prototype.forEach,Vo=typeof Set=="function"&&Set.prototype,Lo=Object.getOwnPropertyDescriptor&&Vo?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,vi=Vo&&Lo&&typeof Lo.get=="function"?Lo.get:null,Nf=Vo&&Set.prototype.forEach,L0=typeof WeakMap=="function"&&WeakMap.prototype,Cn=L0?WeakMap.prototype.has:null,D0=typeof WeakSet=="function"&&WeakSet.prototype,Nn=D0?WeakSet.prototype.has:null,W0=typeof WeakRef=="function"&&WeakRef.prototype,Rf=W0?WeakRef.prototype.deref:null,q0=Boolean.prototype.valueOf,j0=Object.prototype.toString,z0=Function.prototype.toString,$0=String.prototype.match,Ho=String.prototype.slice,Tr=String.prototype.replace,K0=String.prototype.toUpperCase,kf=String.prototype.toLowerCase,Kf=RegExp.prototype.test,Ff=Array.prototype.concat,lr=Array.prototype.join,Y0=Array.prototype.slice,Lf=Math.floor,qo=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Do=Object.getOwnPropertySymbols,jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,un=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Vt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===un||"symbol")?Symbol.toStringTag:null,Yf=Object.prototype.propertyIsEnumerable,Df=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function Wf(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||Kf.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-Lf(-r):Lf(r);if(n!==r){var i=String(n),u=Ho.call(e,i.length+1);return Tr.call(i,t,"$&_")+"."+Tr.call(Tr.call(u,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Tr.call(e,t,"$&_")}var zo=Bf(),qf=zo.custom,jf=Hf(qf)?qf:null;Zf.exports=function r(e,t,n,i){var u=t||{};if(Sr(u,"quoteStyle")&&u.quoteStyle!=="single"&&u.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Sr(u,"maxStringLength")&&(typeof u.maxStringLength=="number"?u.maxStringLength<0&&u.maxStringLength!==1/0:u.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=Sr(u,"customInspect")?u.customInspect:!0;if(typeof h!="boolean"&&h!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Sr(u,"indent")&&u.indent!==null&&u.indent!==" "&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Sr(u,"numericSeparator")&&typeof u.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var x=u.numericSeparator;if(typeof e=="undefined")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Jf(e,u);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var _=String(e);return x?Wf(e,_):_}if(typeof e=="bigint"){var E=String(e)+"n";return x?Wf(e,E):E}var S=typeof u.depth=="undefined"?5:u.depth;if(typeof n=="undefined"&&(n=0),n>=S&&S>0&&typeof e=="object")return $o(e)?"[Array]":"[Object]";var I=lh(u,n);if(typeof i=="undefined")i=[];else if(Gf(i,e)>=0)return"[Circular]";function L(s,o,a){if(o&&(i=Y0.call(i),i.push(o)),a){var p={depth:u.depth};return Sr(u,"quoteStyle")&&(p.quoteStyle=u.quoteStyle),r(s,p,n+1,i)}return r(s,u,n+1,i)}if(typeof e=="function"&&!zf(e)){var Y=th(e),$=gi(e,L);return"[Function"+(Y?": "+Y:" (anonymous)")+"]"+($.length>0?" { "+lr.call($,", ")+" }":"")}if(Hf(e)){var te=un?Tr.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):jo.call(e);return type