@xswap-link/sdk
Version:
JavaScript SDK for XSwap platform
1 lines • 3.16 MB
JavaScript
"use strict";var XPay=(()=>{var iKe=Object.create;var fk=Object.defineProperty;var sKe=Object.getOwnPropertyDescriptor;var aKe=Object.getOwnPropertyNames;var cKe=Object.getPrototypeOf,lKe=Object.prototype.hasOwnProperty;var J=(t,e)=>()=>(t&&(e=t(t=0)),e);var Le=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),$r=(t,e)=>{for(var r in e)fk(t,r,{get:e[r],enumerable:!0})},dk=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of aKe(e))!lKe.call(t,o)&&o!==r&&fk(t,o,{get:()=>e[o],enumerable:!(n=sKe(e,o))||n.enumerable});return t},ws=(t,e,r)=>(dk(t,e,"default"),r&&dk(r,e,"default")),q=(t,e,r)=>(r=t!=null?iKe(cKe(t)):{},dk(e||!t||!t.__esModule?fk(r,"default",{value:t,enumerable:!0}):r,t)),ml=t=>dk(fk({},"__esModule",{value:!0}),t);var Qce=Le(pk=>{"use strict";u();pk.byteLength=dKe;pk.toByteArray=pKe;pk.fromByteArray=gKe;var gl=[],J1=[],uKe=typeof Uint8Array<"u"?Uint8Array:Array,$H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(qp=0,Yce=$H.length;qp<Yce;++qp)gl[qp]=$H[qp],J1[$H.charCodeAt(qp)]=qp;var qp,Yce;J1[45]=62;J1[95]=63;function Jce(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function dKe(t){var e=Jce(t),r=e[0],n=e[1];return(r+n)*3/4-n}function fKe(t,e,r){return(e+r)*3/4-r}function pKe(t){var e,r=Jce(t),n=r[0],o=r[1],i=new uKe(fKe(t,n,o)),s=0,a=o>0?n-4:n,c;for(c=0;c<a;c+=4)e=J1[t.charCodeAt(c)]<<18|J1[t.charCodeAt(c+1)]<<12|J1[t.charCodeAt(c+2)]<<6|J1[t.charCodeAt(c+3)],i[s++]=e>>16&255,i[s++]=e>>8&255,i[s++]=e&255;return o===2&&(e=J1[t.charCodeAt(c)]<<2|J1[t.charCodeAt(c+1)]>>4,i[s++]=e&255),o===1&&(e=J1[t.charCodeAt(c)]<<10|J1[t.charCodeAt(c+1)]<<4|J1[t.charCodeAt(c+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function hKe(t){return gl[t>>18&63]+gl[t>>12&63]+gl[t>>6&63]+gl[t&63]}function mKe(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),o.push(hKe(n));return o.join("")}function gKe(t){for(var e,r=t.length,n=r%3,o=[],i=16383,s=0,a=r-n;s<a;s+=i)o.push(mKe(t,s,s+i>a?a:s+i));return n===1?(e=t[r-1],o.push(gl[e>>2]+gl[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],o.push(gl[e>>10]+gl[e>>4&63]+gl[e<<2&63]+"=")),o.join("")}});var Xce=Le(KH=>{"use strict";u();KH.read=function(t,e,r,n,o){var i,s,a=o*8-n-1,c=(1<<a)-1,l=c>>1,d=-7,f=r?o-1:0,p=r?-1:1,h=t[e+f];for(f+=p,i=h&(1<<-d)-1,h>>=-d,d+=a;d>0;i=i*256+t[e+f],f+=p,d-=8);for(s=i&(1<<-d)-1,i>>=-d,d+=n;d>0;s=s*256+t[e+f],f+=p,d-=8);if(i===0)i=1-l;else{if(i===c)return s?NaN:(h?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-l}return(h?-1:1)*s*Math.pow(2,i-n)};KH.write=function(t,e,r,n,o,i){var s,a,c,l=i*8-o-1,d=(1<<l)-1,f=d>>1,p=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,m=n?1:-1,y=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=d):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+f>=1?e+=p/c:e+=p*Math.pow(2,1-f),e*c>=2&&(s++,c/=2),s+f>=d?(a=0,s=d):s+f>=1?(a=(e*c-1)*Math.pow(2,o),s=s+f):(a=e*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;t[r+h]=a&255,h+=m,a/=256,o-=8);for(s=s<<o|a,l+=o;l>0;t[r+h]=s&255,h+=m,s/=256,l-=8);t[r+h-m]|=y*128}});var Kp=Le(Dm=>{"use strict";u();var GH=Qce(),Pm=Xce(),e1e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Dm.Buffer=Ce;Dm.SlowBuffer=CKe;Dm.INSPECT_MAX_BYTES=50;var hk=2147483647;Dm.kMaxLength=hk;Ce.TYPED_ARRAY_SUPPORT=yKe();!Ce.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 yKe(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(Ce.prototype,"parent",{enumerable:!0,get:function(){if(Ce.isBuffer(this))return this.buffer}});Object.defineProperty(Ce.prototype,"offset",{enumerable:!0,get:function(){if(Ce.isBuffer(this))return this.byteOffset}});function lu(t){if(t>hk)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,Ce.prototype),e}function Ce(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return QH(t)}return o1e(t,e,r)}Ce.poolSize=8192;function o1e(t,e,r){if(typeof t=="string")return wKe(t,e);if(ArrayBuffer.isView(t))return xKe(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(yl(t,ArrayBuffer)||t&&yl(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(yl(t,SharedArrayBuffer)||t&&yl(t.buffer,SharedArrayBuffer)))return YH(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return Ce.from(n,e,r);let o=vKe(t);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return Ce.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}Ce.from=function(t,e,r){return o1e(t,e,r)};Object.setPrototypeOf(Ce.prototype,Uint8Array.prototype);Object.setPrototypeOf(Ce,Uint8Array);function i1e(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function bKe(t,e,r){return i1e(t),t<=0?lu(t):e!==void 0?typeof r=="string"?lu(t).fill(e,r):lu(t).fill(e):lu(t)}Ce.alloc=function(t,e,r){return bKe(t,e,r)};function QH(t){return i1e(t),lu(t<0?0:XH(t)|0)}Ce.allocUnsafe=function(t){return QH(t)};Ce.allocUnsafeSlow=function(t){return QH(t)};function wKe(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!Ce.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=s1e(t,e)|0,n=lu(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}function ZH(t){let e=t.length<0?0:XH(t.length)|0,r=lu(e);for(let n=0;n<e;n+=1)r[n]=t[n]&255;return r}function xKe(t){if(yl(t,Uint8Array)){let e=new Uint8Array(t);return YH(e.buffer,e.byteOffset,e.byteLength)}return ZH(t)}function YH(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,Ce.prototype),n}function vKe(t){if(Ce.isBuffer(t)){let e=XH(t.length)|0,r=lu(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||tj(t.length)?lu(0):ZH(t);if(t.type==="Buffer"&&Array.isArray(t.data))return ZH(t.data)}function XH(t){if(t>=hk)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+hk.toString(16)+" bytes");return t|0}function CKe(t){return+t!=t&&(t=0),Ce.alloc(+t)}Ce.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==Ce.prototype};Ce.compare=function(e,r){if(yl(e,Uint8Array)&&(e=Ce.from(e,e.offset,e.byteLength)),yl(r,Uint8Array)&&(r=Ce.from(r,r.offset,r.byteLength)),!Ce.isBuffer(e)||!Ce.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let n=e.length,o=r.length;for(let i=0,s=Math.min(n,o);i<s;++i)if(e[i]!==r[i]){n=e[i],o=r[i];break}return n<o?-1:o<n?1:0};Ce.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}};Ce.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return Ce.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;let o=Ce.allocUnsafe(r),i=0;for(n=0;n<e.length;++n){let s=e[n];if(yl(s,Uint8Array))i+s.length>o.length?(Ce.isBuffer(s)||(s=Ce.from(s)),s.copy(o,i)):Uint8Array.prototype.set.call(o,s,i);else if(Ce.isBuffer(s))s.copy(o,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=s.length}return o};function s1e(t,e){if(Ce.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||yl(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return JH(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return m1e(t).length;default:if(o)return n?-1:JH(t).length;e=(""+e).toLowerCase(),o=!0}}Ce.byteLength=s1e;function EKe(t,e,r){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return RKe(this,e,r);case"utf8":case"utf-8":return c1e(this,e,r);case"ascii":return MKe(this,e,r);case"latin1":case"binary":return NKe(this,e,r);case"base64":return LKe(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return zKe(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}Ce.prototype._isBuffer=!0;function $p(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}Ce.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 r=0;r<e;r+=2)$p(this,r,r+1);return this};Ce.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 r=0;r<e;r+=4)$p(this,r,r+3),$p(this,r+1,r+2);return this};Ce.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 r=0;r<e;r+=8)$p(this,r,r+7),$p(this,r+1,r+6),$p(this,r+2,r+5),$p(this,r+3,r+4);return this};Ce.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?c1e(this,0,e):EKe.apply(this,arguments)};Ce.prototype.toLocaleString=Ce.prototype.toString;Ce.prototype.equals=function(e){if(!Ce.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:Ce.compare(this,e)===0};Ce.prototype.inspect=function(){let e="",r=Dm.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};e1e&&(Ce.prototype[e1e]=Ce.prototype.inspect);Ce.prototype.compare=function(e,r,n,o,i){if(yl(e,Uint8Array)&&(e=Ce.from(e,e.offset,e.byteLength)),!Ce.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),r<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&r>=n)return 0;if(o>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;let s=i-o,a=n-r,c=Math.min(s,a),l=this.slice(o,i),d=e.slice(r,n);for(let f=0;f<c;++f)if(l[f]!==d[f]){s=l[f],a=d[f];break}return s<a?-1:a<s?1:0};function a1e(t,e,r,n,o){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,tj(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0)if(o)r=0;else return-1;if(typeof e=="string"&&(e=Ce.from(e,n)),Ce.isBuffer(e))return e.length===0?-1:t1e(t,e,r,n,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):t1e(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function t1e(t,e,r,n,o){let i=1,s=t.length,a=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;i=2,s/=2,a/=2,r/=2}function c(d,f){return i===1?d[f]:d.readUInt16BE(f*i)}let l;if(o){let d=-1;for(l=r;l<s;l++)if(c(t,l)===c(e,d===-1?0:l-d)){if(d===-1&&(d=l),l-d+1===a)return d*i}else d!==-1&&(l-=l-d),d=-1}else for(r+a>s&&(r=s-a),l=r;l>=0;l--){let d=!0;for(let f=0;f<a;f++)if(c(t,l+f)!==c(e,f)){d=!1;break}if(d)return l}return-1}Ce.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};Ce.prototype.indexOf=function(e,r,n){return a1e(this,e,r,n,!0)};Ce.prototype.lastIndexOf=function(e,r,n){return a1e(this,e,r,n,!1)};function SKe(t,e,r,n){r=Number(r)||0;let o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;let i=e.length;n>i/2&&(n=i/2);let s;for(s=0;s<n;++s){let a=parseInt(e.substr(s*2,2),16);if(tj(a))return s;t[r+s]=a}return s}function AKe(t,e,r,n){return mk(JH(e,t.length-r),t,r,n)}function _Ke(t,e,r,n){return mk(DKe(e),t,r,n)}function kKe(t,e,r,n){return mk(m1e(e),t,r,n)}function TKe(t,e,r,n){return mk(UKe(e,t.length-r),t,r,n)}Ce.prototype.write=function(e,r,n,o){if(r===void 0)o="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")o=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-r;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let s=!1;for(;;)switch(o){case"hex":return SKe(this,e,r,n);case"utf8":case"utf-8":return AKe(this,e,r,n);case"ascii":case"latin1":case"binary":return _Ke(this,e,r,n);case"base64":return kKe(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return TKe(this,e,r,n);default:if(s)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),s=!0}};Ce.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function LKe(t,e,r){return e===0&&r===t.length?GH.fromByteArray(t):GH.fromByteArray(t.slice(e,r))}function c1e(t,e,r){r=Math.min(t.length,r);let n=[],o=e;for(;o<r;){let i=t[o],s=null,a=i>239?4:i>223?3:i>191?2:1;if(o+a<=r){let c,l,d,f;switch(a){case 1:i<128&&(s=i);break;case 2:c=t[o+1],(c&192)===128&&(f=(i&31)<<6|c&63,f>127&&(s=f));break;case 3:c=t[o+1],l=t[o+2],(c&192)===128&&(l&192)===128&&(f=(i&15)<<12|(c&63)<<6|l&63,f>2047&&(f<55296||f>57343)&&(s=f));break;case 4:c=t[o+1],l=t[o+2],d=t[o+3],(c&192)===128&&(l&192)===128&&(d&192)===128&&(f=(i&15)<<18|(c&63)<<12|(l&63)<<6|d&63,f>65535&&f<1114112&&(s=f))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),o+=a}return IKe(n)}var r1e=4096;function IKe(t){let e=t.length;if(e<=r1e)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=r1e));return r}function MKe(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;o<r;++o)n+=String.fromCharCode(t[o]&127);return n}function NKe(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function RKe(t,e,r){let n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let o="";for(let i=e;i<r;++i)o+=FKe[t[i]];return o}function zKe(t,e,r){let n=t.slice(e,r),o="";for(let i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+n[i+1]*256);return o}Ce.prototype.slice=function(e,r){let n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);let o=this.subarray(e,r);return Object.setPrototypeOf(o,Ce.prototype),o};function Zi(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}Ce.prototype.readUintLE=Ce.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||Zi(e,r,this.length);let o=this[e],i=1,s=0;for(;++s<r&&(i*=256);)o+=this[e+s]*i;return o};Ce.prototype.readUintBE=Ce.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||Zi(e,r,this.length);let o=this[e+--r],i=1;for(;r>0&&(i*=256);)o+=this[e+--r]*i;return o};Ce.prototype.readUint8=Ce.prototype.readUInt8=function(e,r){return e=e>>>0,r||Zi(e,1,this.length),this[e]};Ce.prototype.readUint16LE=Ce.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||Zi(e,2,this.length),this[e]|this[e+1]<<8};Ce.prototype.readUint16BE=Ce.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||Zi(e,2,this.length),this[e]<<8|this[e+1]};Ce.prototype.readUint32LE=Ce.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||Zi(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};Ce.prototype.readUint32BE=Ce.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||Zi(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};Ce.prototype.readBigUInt64LE=Id(function(e){e=e>>>0,Bm(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&Aw(e,this.length-8);let o=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(o)+(BigInt(i)<<BigInt(32))});Ce.prototype.readBigUInt64BE=Id(function(e){e=e>>>0,Bm(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&Aw(e,this.length-8);let o=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(o)<<BigInt(32))+BigInt(i)});Ce.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||Zi(e,r,this.length);let o=this[e],i=1,s=0;for(;++s<r&&(i*=256);)o+=this[e+s]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o};Ce.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||Zi(e,r,this.length);let o=r,i=1,s=this[e+--o];for(;o>0&&(i*=256);)s+=this[e+--o]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*r)),s};Ce.prototype.readInt8=function(e,r){return e=e>>>0,r||Zi(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};Ce.prototype.readInt16LE=function(e,r){e=e>>>0,r||Zi(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};Ce.prototype.readInt16BE=function(e,r){e=e>>>0,r||Zi(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};Ce.prototype.readInt32LE=function(e,r){return e=e>>>0,r||Zi(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};Ce.prototype.readInt32BE=function(e,r){return e=e>>>0,r||Zi(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};Ce.prototype.readBigInt64LE=Id(function(e){e=e>>>0,Bm(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&Aw(e,this.length-8);let o=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(o)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});Ce.prototype.readBigInt64BE=Id(function(e){e=e>>>0,Bm(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&Aw(e,this.length-8);let o=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(o)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)});Ce.prototype.readFloatLE=function(e,r){return e=e>>>0,r||Zi(e,4,this.length),Pm.read(this,e,!0,23,4)};Ce.prototype.readFloatBE=function(e,r){return e=e>>>0,r||Zi(e,4,this.length),Pm.read(this,e,!1,23,4)};Ce.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||Zi(e,8,this.length),Pm.read(this,e,!0,52,8)};Ce.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||Zi(e,8,this.length),Pm.read(this,e,!1,52,8)};function uc(t,e,r,n,o,i){if(!Ce.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}Ce.prototype.writeUintLE=Ce.prototype.writeUIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){let a=Math.pow(2,8*n)-1;uc(this,e,r,n,a,0)}let i=1,s=0;for(this[r]=e&255;++s<n&&(i*=256);)this[r+s]=e/i&255;return r+n};Ce.prototype.writeUintBE=Ce.prototype.writeUIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){let a=Math.pow(2,8*n)-1;uc(this,e,r,n,a,0)}let i=n-1,s=1;for(this[r+i]=e&255;--i>=0&&(s*=256);)this[r+i]=e/s&255;return r+n};Ce.prototype.writeUint8=Ce.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||uc(this,e,r,1,255,0),this[r]=e&255,r+1};Ce.prototype.writeUint16LE=Ce.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||uc(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};Ce.prototype.writeUint16BE=Ce.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||uc(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};Ce.prototype.writeUint32LE=Ce.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||uc(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};Ce.prototype.writeUint32BE=Ce.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||uc(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function l1e(t,e,r,n,o){h1e(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r++]=i,i=i>>8,t[r++]=i,i=i>>8,t[r++]=i,i=i>>8,t[r++]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,r}function u1e(t,e,r,n,o){h1e(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r+7]=i,i=i>>8,t[r+6]=i,i=i>>8,t[r+5]=i,i=i>>8,t[r+4]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s=s>>8,t[r+2]=s,s=s>>8,t[r+1]=s,s=s>>8,t[r]=s,r+8}Ce.prototype.writeBigUInt64LE=Id(function(e,r=0){return l1e(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});Ce.prototype.writeBigUInt64BE=Id(function(e,r=0){return u1e(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});Ce.prototype.writeIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){let c=Math.pow(2,8*n-1);uc(this,e,r,n,c-1,-c)}let i=0,s=1,a=0;for(this[r]=e&255;++i<n&&(s*=256);)e<0&&a===0&&this[r+i-1]!==0&&(a=1),this[r+i]=(e/s>>0)-a&255;return r+n};Ce.prototype.writeIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){let c=Math.pow(2,8*n-1);uc(this,e,r,n,c-1,-c)}let i=n-1,s=1,a=0;for(this[r+i]=e&255;--i>=0&&(s*=256);)e<0&&a===0&&this[r+i+1]!==0&&(a=1),this[r+i]=(e/s>>0)-a&255;return r+n};Ce.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||uc(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};Ce.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||uc(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};Ce.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||uc(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};Ce.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||uc(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};Ce.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||uc(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};Ce.prototype.writeBigInt64LE=Id(function(e,r=0){return l1e(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Ce.prototype.writeBigInt64BE=Id(function(e,r=0){return u1e(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function d1e(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function f1e(t,e,r,n,o){return e=+e,r=r>>>0,o||d1e(t,e,r,4,34028234663852886e22,-34028234663852886e22),Pm.write(t,e,r,n,23,4),r+4}Ce.prototype.writeFloatLE=function(e,r,n){return f1e(this,e,r,!0,n)};Ce.prototype.writeFloatBE=function(e,r,n){return f1e(this,e,r,!1,n)};function p1e(t,e,r,n,o){return e=+e,r=r>>>0,o||d1e(t,e,r,8,17976931348623157e292,-17976931348623157e292),Pm.write(t,e,r,n,52,8),r+8}Ce.prototype.writeDoubleLE=function(e,r,n){return p1e(this,e,r,!0,n)};Ce.prototype.writeDoubleBE=function(e,r,n){return p1e(this,e,r,!1,n)};Ce.prototype.copy=function(e,r,n,o){if(!Ce.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&o<n&&(o=n),o===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);let i=o-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),r),i};Ce.prototype.fill=function(e,r,n,o){if(typeof e=="string"){if(typeof r=="string"?(o=r,r=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!Ce.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(e.length===1){let s=e.charCodeAt(0);(o==="utf8"&&s<128||o==="latin1")&&(e=s)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let i;if(typeof e=="number")for(i=r;i<n;++i)this[i]=e;else{let s=Ce.isBuffer(e)?e:Ce.from(e,o),a=s.length;if(a===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-r;++i)this[i+r]=s[i%a]}return this};var Om={};function ej(t,e,r){Om[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(o){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:o,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}ej("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);ej("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError);ej("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=n1e(String(r)):typeof r=="bigint"&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=n1e(o)),o+="n"),n+=` It must be ${e}. Received ${o}`,n},RangeError);function n1e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function OKe(t,e,r){Bm(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&Aw(e,t.length-(r+1))}function h1e(t,e,r,n,o,i){if(t>r||t<e){let s=typeof e=="bigint"?"n":"",a;throw i>3?e===0||e===BigInt(0)?a=`>= 0${s} and < 2${s} ** ${(i+1)*8}${s}`:a=`>= -(2${s} ** ${(i+1)*8-1}${s}) and < 2 ** ${(i+1)*8-1}${s}`:a=`>= ${e}${s} and <= ${r}${s}`,new Om.ERR_OUT_OF_RANGE("value",a,t)}OKe(n,o,i)}function Bm(t,e){if(typeof t!="number")throw new Om.ERR_INVALID_ARG_TYPE(e,"number",t)}function Aw(t,e,r){throw Math.floor(t)!==t?(Bm(t,r),new Om.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new Om.ERR_BUFFER_OUT_OF_BOUNDS:new Om.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}var PKe=/[^+/0-9A-Za-z-_]/g;function BKe(t){if(t=t.split("=")[0],t=t.trim().replace(PKe,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function JH(t,e){e=e||1/0;let r,n=t.length,o=null,i=[];for(let s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function DKe(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function UKe(t,e){let r,n,o,i=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function m1e(t){return GH.toByteArray(BKe(t))}function mk(t,e,r,n){let o;for(o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function yl(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function tj(t){return t!==t}var FKe=function(){let t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let o=0;o<16;++o)e[n+o]=t[r]+t[o]}return e}();function Id(t){return typeof BigInt>"u"?HKe:t}function HKe(){throw new Error("BigInt not supported")}});var g1e,u=J(()=>{"use strict";g1e=q(Kp());typeof globalThis.Buffer>"u"&&(globalThis.Buffer=g1e.Buffer)});var T1e=Le(kr=>{"use strict";u();var _w=Symbol.for("react.element"),jKe=Symbol.for("react.portal"),WKe=Symbol.for("react.fragment"),VKe=Symbol.for("react.strict_mode"),qKe=Symbol.for("react.profiler"),$Ke=Symbol.for("react.provider"),KKe=Symbol.for("react.context"),GKe=Symbol.for("react.forward_ref"),ZKe=Symbol.for("react.suspense"),YKe=Symbol.for("react.memo"),JKe=Symbol.for("react.lazy"),y1e=Symbol.iterator;function QKe(t){return t===null||typeof t!="object"?null:(t=y1e&&t[y1e]||t["@@iterator"],typeof t=="function"?t:null)}var x1e={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v1e=Object.assign,C1e={};function Um(t,e,r){this.props=t,this.context=e,this.refs=C1e,this.updater=r||x1e}Um.prototype.isReactComponent={};Um.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Um.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function E1e(){}E1e.prototype=Um.prototype;function nj(t,e,r){this.props=t,this.context=e,this.refs=C1e,this.updater=r||x1e}var oj=nj.prototype=new E1e;oj.constructor=nj;v1e(oj,Um.prototype);oj.isPureReactComponent=!0;var b1e=Array.isArray,S1e=Object.prototype.hasOwnProperty,ij={current:null},A1e={key:!0,ref:!0,__self:!0,__source:!0};function _1e(t,e,r){var n,o={},i=null,s=null;if(e!=null)for(n in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(i=""+e.key),e)S1e.call(e,n)&&!A1e.hasOwnProperty(n)&&(o[n]=e[n]);var a=arguments.length-2;if(a===1)o.children=r;else if(1<a){for(var c=Array(a),l=0;l<a;l++)c[l]=arguments[l+2];o.children=c}if(t&&t.defaultProps)for(n in a=t.defaultProps,a)o[n]===void 0&&(o[n]=a[n]);return{$$typeof:_w,type:t,key:i,ref:s,props:o,_owner:ij.current}}function XKe(t,e){return{$$typeof:_w,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function sj(t){return typeof t=="object"&&t!==null&&t.$$typeof===_w}function eGe(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var w1e=/\/+/g;function rj(t,e){return typeof t=="object"&&t!==null&&t.key!=null?eGe(""+t.key):e.toString(36)}function yk(t,e,r,n,o){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case _w:case jKe:s=!0}}if(s)return s=t,o=o(s),t=n===""?"."+rj(s,0):n,b1e(o)?(r="",t!=null&&(r=t.replace(w1e,"$&/")+"/"),yk(o,e,r,"",function(l){return l})):o!=null&&(sj(o)&&(o=XKe(o,r+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(w1e,"$&/")+"/")+t)),e.push(o)),1;if(s=0,n=n===""?".":n+":",b1e(t))for(var a=0;a<t.length;a++){i=t[a];var c=n+rj(i,a);s+=yk(i,e,r,c,o)}else if(c=QKe(t),typeof c=="function")for(t=c.call(t),a=0;!(i=t.next()).done;)i=i.value,c=n+rj(i,a++),s+=yk(i,e,r,c,o);else if(i==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return s}function gk(t,e,r){if(t==null)return t;var n=[],o=0;return yk(t,n,"","",function(i){return e.call(r,i,o++)}),n}function tGe(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(r){(t._status===0||t._status===-1)&&(t._status=1,t._result=r)},function(r){(t._status===0||t._status===-1)&&(t._status=2,t._result=r)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var za={current:null},bk={transition:null},rGe={ReactCurrentDispatcher:za,ReactCurrentBatchConfig:bk,ReactCurrentOwner:ij};function k1e(){throw Error("act(...) is not supported in production builds of React.")}kr.Children={map:gk,forEach:function(t,e,r){gk(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return gk(t,function(){e++}),e},toArray:function(t){return gk(t,function(e){return e})||[]},only:function(t){if(!sj(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};kr.Component=Um;kr.Fragment=WKe;kr.Profiler=qKe;kr.PureComponent=nj;kr.StrictMode=VKe;kr.Suspense=ZKe;kr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rGe;kr.act=k1e;kr.cloneElement=function(t,e,r){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var n=v1e({},t.props),o=t.key,i=t.ref,s=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,s=ij.current),e.key!==void 0&&(o=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(c in e)S1e.call(e,c)&&!A1e.hasOwnProperty(c)&&(n[c]=e[c]===void 0&&a!==void 0?a[c]:e[c])}var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){a=Array(c);for(var l=0;l<c;l++)a[l]=arguments[l+2];n.children=a}return{$$typeof:_w,type:t.type,key:o,ref:i,props:n,_owner:s}};kr.createContext=function(t){return t={$$typeof:KKe,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:$Ke,_context:t},t.Consumer=t};kr.createElement=_1e;kr.createFactory=function(t){var e=_1e.bind(null,t);return e.type=t,e};kr.createRef=function(){return{current:null}};kr.forwardRef=function(t){return{$$typeof:GKe,render:t}};kr.isValidElement=sj;kr.lazy=function(t){return{$$typeof:JKe,_payload:{_status:-1,_result:t},_init:tGe}};kr.memo=function(t,e){return{$$typeof:YKe,type:t,compare:e===void 0?null:e}};kr.startTransition=function(t){var e=bk.transition;bk.transition={};try{t()}finally{bk.transition=e}};kr.unstable_act=k1e;kr.useCallback=function(t,e){return za.current.useCallback(t,e)};kr.useContext=function(t){return za.current.useContext(t)};kr.useDebugValue=function(){};kr.useDeferredValue=function(t){return za.current.useDeferredValue(t)};kr.useEffect=function(t,e){return za.current.useEffect(t,e)};kr.useId=function(){return za.current.useId()};kr.useImperativeHandle=function(t,e,r){return za.current.useImperativeHandle(t,e,r)};kr.useInsertionEffect=function(t,e){return za.current.useInsertionEffect(t,e)};kr.useLayoutEffect=function(t,e){return za.current.useLayoutEffect(t,e)};kr.useMemo=function(t,e){return za.current.useMemo(t,e)};kr.useReducer=function(t,e,r){return za.current.useReducer(t,e,r)};kr.useRef=function(t){return za.current.useRef(t)};kr.useState=function(t){return za.current.useState(t)};kr.useSyncExternalStore=function(t,e,r){return za.current.useSyncExternalStore(t,e,r)};kr.useTransition=function(){return za.current.useTransition()};kr.version="18.3.1"});var je=Le((GFt,L1e)=>{"use strict";u();L1e.exports=T1e()});var M1e=Le(wk=>{"use strict";u();var nGe=je(),oGe=Symbol.for("react.element"),iGe=Symbol.for("react.fragment"),sGe=Object.prototype.hasOwnProperty,aGe=nGe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,cGe={key:!0,ref:!0,__self:!0,__source:!0};function I1e(t,e,r){var n,o={},i=null,s=null;r!==void 0&&(i=""+r),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(s=e.ref);for(n in e)sGe.call(e,n)&&!cGe.hasOwnProperty(n)&&(o[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)o[n]===void 0&&(o[n]=e[n]);return{$$typeof:oGe,type:t,key:i,ref:s,props:o,_owner:aGe.current}}wk.Fragment=iGe;wk.jsx=I1e;wk.jsxs=I1e});var te=Le((QFt,N1e)=>{"use strict";u();N1e.exports=M1e()});var Gp,O1e=J(()=>{"use strict";u();Gp=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0});function lGe(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function Zp(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function bl(t,...e){if(!lGe(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function P1e(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Zp(t.outputLen),Zp(t.blockLen)}function uu(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function xk(t,e){bl(t);let r=e.outputLen;if(t.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function B1e(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))}function Q1(...t){for(let e=0;e<t.length;e++)t[e].fill(0)}function vk(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function s0(t,e){return t<<32-e|t>>>e}function dGe(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}function fGe(t){for(let e=0;e<t.length;e++)t[e]=dGe(t[e]);return t}function D1e(t){if(typeof t!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(t))}function Yp(t){return typeof t=="string"&&(t=D1e(t)),bl(t),t}function cj(...t){let e=0;for(let n=0;n<t.length;n++){let o=t[n];bl(o),e+=o.length}let r=new Uint8Array(e);for(let n=0,o=0;n<t.length;n++){let i=t[n];r.set(i,o),o+=i.length}return r}function kw(t){let e=n=>t().update(Yp(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function Ck(t=32){if(Gp&&typeof Gp.getRandomValues=="function")return Gp.getRandomValues(new Uint8Array(t));if(Gp&&typeof Gp.randomBytes=="function")return Uint8Array.from(Gp.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")}var uGe,aj,Md,Nd=J(()=>{"use strict";u();O1e();uGe=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;aj=uGe?t=>t:fGe;Md=class{}});function pGe(t,e,r,n){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,r,n);let o=BigInt(32),i=BigInt(4294967295),s=Number(r>>o&i),a=Number(r&i),c=n?4:0,l=n?0:4;t.setUint32(e+c,s,n),t.setUint32(e+l,a,n)}function U1e(t,e,r){return t&e^~t&r}function F1e(t,e,r){return t&e^t&r^e&r}var Tw,du,xs,H1e=J(()=>{"use strict";u();Nd();Tw=class extends Md{constructor(e,r,n,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=o,this.buffer=new Uint8Array(e),this.view=vk(this.buffer)}update(e){uu(this),e=Yp(e),bl(e);let{view:r,buffer:n,blockLen:o}=this,i=e.length;for(let s=0;s<i;){let a=Math.min(o-this.pos,i-s);if(a===o){let c=vk(e);for(;o<=i-s;s+=o)this.process(c,s);continue}n.set(e.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===o&&(this.process(r,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){uu(this),xk(e,this),this.finished=!0;let{buffer:r,view:n,blockLen:o,isLE:i}=this,{pos:s}=this;r[s++]=128,Q1(this.buffer.subarray(s)),this.padOffset>o-s&&(this.process(n,0),s=0);for(let f=s;f<o;f++)r[f]=0;pGe(n,o-8,BigInt(this.length*8),i),this.process(n,0);let a=vk(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");let l=c/4,d=this.get();if(l>d.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;f<l;f++)a.setUint32(4*f,d[f],i)}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:r,buffer:n,length:o,finished:i,destroyed:s,pos:a}=this;return e.destroyed=s,e.finished=i,e.length=o,e.pos=a,o%r&&e.buffer.set(n),e}clone(){return this._cloneInto()}},du=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),xs=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])});function hGe(t,e=!1){return e?{h:Number(t&Ek),l:Number(t>>j1e&Ek)}:{h:Number(t>>j1e&Ek)|0,l:Number(t&Ek)|0}}function Sk(t,e=!1){let r=t.length,n=new Uint32Array(r),o=new Uint32Array(r);for(let i=0;i<r;i++){let{h:s,l:a}=hGe(t[i],e);[n[i],o[i]]=[s,a]}return[n,o]}function wl(t,e,r,n){let o=(e>>>0)+(n>>>0);return{h:t+r+(o/2**32|0)|0,l:o|0}}var Ek,j1e,lj,uj,Jp,Qp,Lw,Iw,W1e,V1e,q1e,$1e,K1e,G1e,Z1e,Y1e,J1e,Q1e,dj=J(()=>{"use strict";u();Ek=BigInt(4294967295),j1e=BigInt(32);lj=(t,e,r)=>t>>>r,uj=(t,e,r)=>t<<32-r|e>>>r,Jp=(t,e,r)=>t>>>r|e<<32-r,Qp=(t,e,r)=>t<<32-r|e>>>r,Lw=(t,e,r)=>t<<64-r|e>>>r-32,Iw=(t,e,r)=>t>>>r-32|e<<64-r,W1e=(t,e,r)=>t<<r|e>>>32-r,V1e=(t,e,r)=>e<<r|t>>>32-r,q1e=(t,e,r)=>e<<r-32|t>>>64-r,$1e=(t,e,r)=>t<<r-32|e>>>64-r;K1e=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),G1e=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,Z1e=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),Y1e=(t,e,r,n,o)=>e+r+n+o+(t/2**32|0)|0,J1e=(t,e,r,n,o)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(o>>>0),Q1e=(t,e,r,n,o,i)=>e+r+n+o+i+(t/2**32|0)|0});var gGe,Rd,Ak,X1e,yGe,bGe,zd,Od,fj,_k,e2e,kk=J(()=>{"use strict";u();H1e();dj();Nd();gGe=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Rd=new Uint32Array(64),Ak=class extends Tw{constructor(e=32){super(64,e,8,!1),this.A=du[0]|0,this.B=du[1]|0,this.C=du[2]|0,this.D=du[3]|0,this.E=du[4]|0,this.F=du[5]|0,this.G=du[6]|0,this.H=du[7]|0}get(){let{A:e,B:r,C:n,D:o,E:i,F:s,G:a,H:c}=this;return[e,r,n,o,i,s,a,c]}set(e,r,n,o,i,s,a,c){this.A=e|0,this.B=r|0,this.C=n|0,this.D=o|0,this.E=i|0,this.F=s|0,this.G=a|0,this.H=c|0}process(e,r){for(let f=0;f<16;f++,r+=4)Rd[f]=e.getUint32(r,!1);for(let f=16;f<64;f++){let p=Rd[f-15],h=Rd[f-2],m=s0(p,7)^s0(p,18)^p>>>3,y=s0(h,17)^s0(h,19)^h>>>10;Rd[f]=y+Rd[f-7]+m+Rd[f-16]|0}let{A:n,B:o,C:i,D:s,E:a,F:c,G:l,H:d}=this;for(let f=0;f<64;f++){let p=s0(a,6)^s0(a,11)^s0(a,25),h=d+p+U1e(a,c,l)+gGe[f]+Rd[f]|0,y=(s0(n,2)^s0(n,13)^s0(n,22))+F1e(n,o,i)|0;d=l,l=c,c=a,a=s+h|0,s=i,i=o,o=n,n=h+y|0}n=n+this.A|0,o=o+this.B|0,i=i+this.C|0,s=s+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,d=d+this.H|0,this.set(n,o,i,s,a,c,l,d)}roundClean(){Q1(Rd)}destroy(){this.set(0,0,0,0,0,0,0,0),Q1(this.buffer)}},X1e=Sk(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),yGe=X1e[0],bGe=X1e[1],zd=new Uint32Array(80),Od=new Uint32Array(80),fj=class extends Tw{constructor(e=64){super(128,e,16,!1),this.Ah=xs[0]|0,this.Al=xs[1]|0,this.Bh=xs[2]|0,this.Bl=xs[3]|0,this.Ch=xs[4]|0,this.Cl=xs[5]|0,this.Dh=xs[6]|0,this.Dl=xs[7]|0,this.Eh=xs[8]|0,this.El=xs[9]|0,this.Fh=xs[10]|0,this.Fl=xs[11]|0,this.Gh=xs[12]|0,this.Gl=xs[13]|0,this.Hh=xs[14]|0,this.Hl=xs[15]|0}get(){let{Ah:e,Al:r,Bh:n,Bl:o,Ch:i,Cl:s,Dh:a,Dl:c,Eh:l,El:d,Fh:f,Fl:p,Gh:h,Gl:m,Hh:y,Hl:x}=this;return[e,r,n,o,i,s,a,c,l,d,f,p,h,m,y,x]}set(e,r,n,o,i,s,a,c,l,d,f,p,h,m,y,x){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=o|0,this.Ch=i|0,this.Cl=s|0,this.Dh=a|0,this.Dl=c|0,this.Eh=l|0,this.El=d|0,this.Fh=f|0,this.Fl=p|0,this.Gh=h|0,this.Gl=m|0,this.Hh=y|0,this.Hl=x|0}process(e,r){for(let S=0;S<16;S++,r+=4)zd[S]=e.getUint32(r),Od[S]=e.getUint32(r+=4);for(let S=16;S<80;S++){let A=zd[S-15]|0,I=Od[S-15]|0,O=Jp(A,I,1)^Jp(A,I,8)^lj(A,I,7),P=Qp(A,I,1)^Qp(A,I,8)^uj(A,I,7),_=zd[S-2]|0,M=Od[S-2]|0,B=Jp(_,M,19)^Lw(_,M,61)^lj(_,M,6),R=Qp(_,M,19)^Iw(_,M,61)^uj(_,M,6),F=Z1e(P,R,Od[S-7],Od[S-16]),z=Y1e(F,O,B,zd[S-7],zd[S-16]);zd[S]=z|0,Od[S]=F|0}let{Ah:n,Al:o,Bh:i,Bl:s,Ch:a,Cl:c,Dh:l,Dl:d,Eh:f,El:p,Fh:h,Fl:m,Gh:y,Gl:x,Hh:w,Hl:v}=this;for(let S=0;S<80;S++){let A=Jp(f,p,14)^Jp(f,p,18)^Lw(f,p,41),I=Qp(f,p,14)^Qp(f,p,18)^Iw(f,p,41),O=f&h^~f&y,P=p&m^~p&x,_=J1e(v,I,P,bGe[S],Od[S]),M=Q1e(_,w,A,O,yGe[S],zd[S]),B=_|0,R=Jp(n,o,28)^Lw(n,o,34)^Lw(n,o,39),F=Qp(n,o,28)^Iw(n,o,34)^Iw(n,o,39),z=n&i^n&a^i&a,g=o&s^o&c^s&c;w=y|0,v=x|0,y=h|0,x=m|0,h=f|0,m=p|0,{h:f,l:p}=wl(l|0,d|0,M|0,B|0),l=a|0,d=c|0,a=i|0,c=s|0,i=n|0,s=o|0;let b=K1e(B,F,g);n=G1e(b,M,R,z),o=b|0}({h:n,l:o}=wl(this.Ah|0,this.Al|0,n|0,o|0)),{h:i,l:s}=wl(this.Bh|0,this.Bl|0,i|0,s|0),{h:a,l:c}=wl(this.Ch|0,this.Cl|0,a|0,c|0),{h:l,l:d}=wl(this.Dh|0,this.Dl|0,l|0,d|0),{h:f,l:p}=wl(this.Eh|0,this.El|0,f|0,p|0),{h,l:m}=wl(this.Fh|0,this.Fl|0,h|0,m|0),{h:y,l:x}=wl(this.Gh|0,this.Gl|0,y|0,x|0),{h:w,l:v}=wl(this.Hh|0,this.Hl|0,w|0,v|0),this.set(n,o,i,s,a,c,l,d,f,p,h,m,y,x,w,v)}roundClean(){Q1(zd,Od)}destroy(){Q1(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}},_k=kw(()=>new Ak),e2e=kw(()=>new fj)});function Fm(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function yj(t){if(!Fm(t))throw new Error("Uint8Array expected")}function xl(t,e){if(typeof e!="boolean")throw new Error(t+" boolean expected, got "+e)}function Mw(t){let e=t.toString(16);return e.length&1?"0"+e:e}function n2e(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);return t===""?gj:BigInt("0x"+t)}function Pd(t){if(yj(t),o2e)return t.toHex();let e="";for(let r=0;r<t.length;r++)e+=wGe[t[r]];return e}function t2e(t){if(t>=fu._0&&t<=fu._9)return t-fu._0;if(t>=fu.A&&t<=fu.F)return t-(fu.A-10);if(t>=fu.a&&t<=fu.f)return t-(fu.a-10)}function Nw(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);if(o2e)return Uint8Array.fromHex(t);let e=t.length,r=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);let n=new Uint8Array(r);for(let o=0,i=0;o<r;o++,i+=2){let s=t2e(t.charCodeAt(i)),a=t2e(t.charCodeAt(i+1));if(s===void 0||a===void 0){let c=t[i]+t[i+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+i)}n[o]=s*16+a}return n}function pu(t){return n2e(Pd(t))}function Xp(t){return yj(t),n2e(Pd(Uint8Array.from(t).reverse()))}function e8(t,e){return Nw(t.toString(16).padStart(e*2,"0"))}function Hm(t,e){return e8(t,e).reverse()}function mo(t,e,r){let n;if(typeof e=="string")try{n=Nw(e)}catch(i){throw new Error(t+" must be hex string or Uint8Array, cause: "+i)}else if(Fm(e))n=Uint8Array.from(e);else throw new Error(t+" must be hex string or Uint8Array");let o=n.length;if(typeof r=="number"&&o!==r)throw new Error(t+" of length "+r+" expected, got "+o);return n}function Bd(...t){let e=0;for(let n=0;n<t.length;n++){let o=t[n];yj(o),e+=o.length}let r=new Uint8Array(e);for(let n=0,o=0;n<t.length;n++){let i=t[n];r.set(i,o),o+=i.length}return r}function Tk(t,e,r){return pj(t)&&pj(e)&&pj(r)&&e<=t&&t<r}function Xc(t,e,r,n){if(!Tk(e,r,n))throw new Error("expected valid "+t+": "+r+" <= n < "+n+", got "+e)}function i2e(t){let e;for(e=0;t>gj;t>>=mj,e+=1);return e}function s2e(t,e,r){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let n=hj(t),o=hj(t),i=0,s=()=>{n.fill(1),o.fill(0),i=0},a=(...f)=>r(o,n,...f),c=(f=hj(0))=>{o=a(r2e([0]),f),n=a(),f.length!==0&&(o=a(r2e([1]),f),n=a())},l=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let f=0,p=[];for(;f<e;){n=a();let h=n.slice();p.push(h),f+=n.length}return Bd(...p)};return(f,p)=>{s(),c(f);let h;for(;!(h=p(l()));)c();return s(),h}}function hu(t,e,r={}){let n=(o,i,s)=>{let a=xGe[i];if(typeof a!="function")throw new Error("invalid validator function");let c=t[o];if(!(s&&c===void