PageSourceSearch

https://thena-frontend.vercel.app/_next/static/immutable/chunks/34_y0rlahx13-.js

js thena-frontend.vercel.app collected 2026-10-03 07:52:44 UTC 89,928 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,47771,t=>{"use strict";var e=t.i(403011),r=t.i(839341),i=t.i(447172),n=t.i(875353);let o=new n.Logger("rlp/5.7.0");function s(t){let e=[];for(;t;)e.unshift(255&t),t>>=8;return e}let u=new n.Logger("address/5.7.0");function a(t){(0,e.isHexString)(t,20)||u.throwArgumentError("invalid address","address",t);let r=(t=t.toLowerCase()).substring(2).split(""),n=new Uint8Array(40);for(let t=0;t<40;t++)n[t]=r[t].charCodeAt(0);let o=(0,e.arrayify)((0,i.keccak256)(n));for(let t=0;t<40;t+=2)o[t>>1]>>4>=8&&(r[t]=r[t].toUpperCase()),(15&o[t>>1])>=8&&(r[t+1]=r[t+1].toUpperCase());return"0x"+r.join("")}let l={};for(let t=0;t<10;t++)l[String(t)]=String(t);for(let t=0;t<26;t++)l[String.fromCharCode(65+t)]=String(10+t);let f=Math.floor(Math.log10?Math.log10(0x1fffffffffffff):Math.log(0x1fffffffffffff)/Math.LN10);function h(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map(t=>l[t]).join("");for(;e.length>=f;){let t=e.substring(0,f);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}function c(t){let e=null;if("string"!=typeof t&&u.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=a(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&u.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==h(t)&&u.throwArgumentError("bad icap checksum","address",t),e=(0,r._base36To16)(t.substring(4));e.length<40;)e="0"+e;e=a("0x"+e)}else u.throwArgumentError("invalid address","address",t);return e}t.s(["getAddress",0,c,"getContractAddress",0,function(t){var n;let a=null;try{a=c(t.from)}catch(e){u.throwArgumentError("missing from address","transaction",t)}let l=(0,e.stripZeros)((0,e.arrayify)(r.BigNumber.from(t.nonce).toHexString()));return c((0,e.hexDataSlice)((0,i.keccak256)((n=[a,l],(0,e.hexlify)(function t(r){if(Array.isArray(r)){let e=[];
1if(r.forEach(function(r){e=e.concat(t(r))}),e.length<=55)return e.unshift(192+e.length),e;let i=s(e.length);return i.unshift(247+i.length),i.concat(e)}(0,e.isBytesLike)(r)||o.throwArgumentError("RLP object must be BytesLike","object",r);let i=Array.prototype.slice.call((0,e.arrayify)(r));if(1===i.length&&i[0]<=127)return i;if(i.length<=55)return i.unshift(128+i.length),i;let n=s(i.length);return n.unshift(183+n.length),n.concat(i)}(n)))),12))},"getCreate2Address",0,function(t,r,n){return 32!==(0,e.hexDataLength)(r)&&u.throwArgumentError("salt must be 32 bytes","salt",r),32!==(0,e.hexDataLength)(n)&&u.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",n),c((0,e.hexDataSlice)((0,i.keccak256)((0,e.concat)(["0xff",c(t),r,n])),12))},"getIcapAddress",0,function(t){let e=(0,r._base16To36)(c(t).substring(2)).toUpperCase();for(;e.length<30;)e="0"+e;return"XE"+h("XE00"+e)+e},"isAddress",0,function(t){try{return c(t),!0}catch(t){}return!1}],47771)},839341,875353,403011,994284,t=>{"use strict";var e,r,i,n,o=t.i(659341);let s=!1,u=!1,a={debug:1,default:2,info:2,warning:3,error:4,off:5},l=a.default,f=null,h=function(){try{let t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test"!=="test".normalize(e))throw Error("bad normalize")}catch(r){t.push(e)}}),t.length)throw Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(t){return t.message}return null}();(e=i||(i={})).DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF",(r=n||(n={})).UNKNOWN_ERROR="UNKNOWN_ERROR",r.NOT_IMPLEMENTED="NOT_IMPLEMENTED",r.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",r.NETWORK_ERROR="NETWORK_ERROR",r.SERVER_ERROR="SERVER_ERROR",r.TIMEOUT="TIMEOUT",r.BUFFER_OVERRUN="BUFFER_OVERRUN",r.NUMERIC_FAULT="NUMERIC_FAULT",r.MISSING_NEW="MISSING_NEW",r.INVALID_ARGUMENT="INVALID_ARGUMENT",r.MISSING_ARGUMENT="MISSING_ARGUMENT",r.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",r.CALL_EXCEPTION="CALL_EXCEPTION",r.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",r.NONCE_EXPIRED="NONCE_EXPIRED",r.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",r.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",r.TRANSACTION_REPLACED="TRANSACTION_REPLACED",r.ACTION_REJECTED="ACTION_REJECTED";let c="0123456789abcdef";class _{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){let r=t.toLowerCase();null==a[r]&&this.throwArgumentError("invalid log level name","logLevel",t),l>a[r]||console.log.apply(console,e)}debug(...t){this._log(_.levels.DEBUG,t)}info(...t){this._log(_.levels.INFO,t)}warn(...t){this._log(_.levels.WARNING,t)}makeError(t,e,r){if(u)return this.makeError("censored error",e,{});e||(e=_.errors.UNKNOWN_ERROR),r||(r={});let i=[];Object.keys(r).forEach(t=>{let e=r[t];try{if(e instanceof Uint8Array){let r="";for(let t=0;t<e.length;t++)r+=c[e[t]>>4],r+=c[15&e[t]];i.push(t+"=Uint8Array(0x"+r+")")}else i.push(t+"="+JSON.stringify(e))}catch(e){i.push(t+"="+JSON.stringify(r[t].toString()))}}),i.push(`code=${e}`),i.push(`version=${this.version}`);let o=t,s="";switch(e){case n.NUMERIC_FAULT:{s="NUMERIC_FAULT";let e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":s+="-"+e;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break}case n.CALL_EXCEPTION:case n.INSUFFICIENT_FUNDS:case n.MISSING_NEW:case n.NONCE_EXPIRED:case n.REPLACEMENT_UNDERPRICED:case n.TRANSACTION_REPLACED:case n.UNPREDICTABLE_GAS_LIMIT:s=e}s&&(t+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),i.length&&(t+=" ("+i.join(", ")+")");let a=Error(t);return a.reason=o,a.code=e,Object.keys(r).forEach(function(t){a[t]=r[t]}),a}throwError(t,e,r){throw this.makeError(t,e,r)}throwArgumentError(t,e,r){return this.throwError(t,_.errors.INVALID_ARGUMENT,{argument:e,value:r})}assert(t,e,r,i){t||this.throwError(e,r,i)}assertArgument(t,e,r,i){t||this.throwArgumentError(e,r,i)}checkNormalize(t){null==t&&(t="platform missing String.prototype.normalize"),h&&this.throwError("platform missing String.prototype.normalize",_.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:h})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=0x1fffffffffffff)&&this.throwError(e,_.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,_.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,r){r=r?": "+r:"",t<e&&this.throwError("missing argument"+r,_.errors.MISSING_ARGUMENT,{count:t,expectedCount:e}),t>e&&this.throwError("too many arguments"+r,_.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){(t===Object||null==t)&&this.throwError("missing new",_.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",_.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||null==t)&&this.throwError("missing new",_.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return f||(f=new _("logger/5.7.0")),f}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",_.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),s){if(!t)return;this.globalLogger().throwError("error censorship permanent",_.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}u=!!t,s=!!e}static setLogLevel(t){let e=a[t.toLowerCase()];null==e?_.globalLogger().warn("invalid log level - "+t):l=e}static from(t){return new _(t)}}_.errors=n,_.levels=i,t.s(["Logger",0,_],875353);let g=new _("bytes/5.7.0");function d(t){return!!t.toHexString}function m(t){return t.slice||(t.slice=function(){let e=Array.prototype.slice.call(arguments);
1return m(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function p(t){return"number"==typeof t&&t==t&&t%1==0}function b(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!p(t.length)||t.length<0)return!1;for(let e=0;e<t.length;e++){let r=t[e];if(!p(r)||r<0||r>=256)return!1}return!0}function v(t,e){if(e||(e={}),"number"==typeof t){g.checkSafeUint53(t,"invalid arrayify value");let e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),m(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),d(t)&&(t=t.toHexString()),w(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":g.throwArgumentError("hex data is odd-length","value",t));let i=[];for(let t=0;t<r.length;t+=2)i.push(parseInt(r.substring(t,t+2),16));return m(new Uint8Array(i))}return b(t)?m(new Uint8Array(t)):g.throwArgumentError("invalid arrayify value","value",t)}function w(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}let y="0123456789abcdef";function E(t,e){if(e||(e={}),"number"==typeof t){g.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=y[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),d(t))return t.toHexString();if(w(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":g.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(b(t)){let e="0x";for(let r=0;r<t.length;r++){let i=t[r];e+=y[(240&i)>>4]+y[15&i]}return e}return g.throwArgumentError("invalid hexlify value","value",t)}t.s(["arrayify",0,v,"concat",0,function(t){let e=t.map(t=>v(t)),r=new Uint8Array(e.reduce((t,e)=>t+e.length,0));return e.reduce((t,e)=>(r.set(e,t),t+e.length),0),m(r)},"hexConcat",0,function(t){let e="0x";return t.forEach(t=>{e+=E(t).substring(2)}),e},"hexDataLength",0,function(t){if("string"!=typeof t)t=E(t);else if(!w(t)||t.length%2)return null;return(t.length-2)/2},"hexDataSlice",0,function(t,e,r){return("string"!=typeof t?t=E(t):(!w(t)||t.length%2)&&g.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=r)?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)},"hexZeroPad",0,function(t,e){for("string"!=typeof t?t=E(t):w(t)||g.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&g.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t},"hexlify",0,E,"isBytes",0,b,"isBytesLike",0,function(t){return w(t)&&!(t.length%2)||b(t)},"isHexString",0,w,"stripZeros",0,function(t){let e=v(t);if(0===e.length)return e;let r=0;for(;r<e.length&&0===e[r];)r++;return r&&(e=e.slice(r)),e},"zeroPad",0,function(t,e){(t=v(t)).length>e&&g.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(e);return r.set(t,e-t.length),m(r)}],403011);let N="bignumber/5.7.0";t.s(["version",0,N],994284);var A=o.default.BN;let S=new _(N),x={},D=!1;class B{constructor(t,e){t!==x&&S.throwError("cannot call constructor directly; use BigNumber.from",_.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return I(O(this).fromTwos(t))}toTwos(t){return I(O(this).toTwos(t))}abs(){return"-"===this._hex[0]?B.from(this._hex.substring(1)):this}add(t){return I(O(this).add(O(t)))}sub(t){return I(O(this).sub(O(t)))}div(t){return B.from(t).isZero()&&R("division-by-zero","div"),I(O(this).div(O(t)))}mul(t){return I(O(this).mul(O(t)))}mod(t){let e=O(t);return e.isNeg()&&R("division-by-zero","mod"),I(O(this).umod(e))}pow(t){let e=O(t);return e.isNeg()&&R("negative-power","pow"),I(O(this).pow(e))}and(t){let e=O(t);return(this.isNegative()||e.isNeg())&&R("unbound-bitwise-result","and"),I(O(this).and(e))}or(t){let e=O(t);return(this.isNegative()||e.isNeg())&&R("unbound-bitwise-result","or"),I(O(this).or(e))}xor(t){let e=O(t);return(this.isNegative()||e.isNeg())&&R("unbound-bitwise-result","xor"),I(O(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&R("negative-width","mask"),I(O(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&R("negative-width","shl"),I(O(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&R("negative-width","shr"),I(O(this).shrn(t))}eq(t){return O(this).eq(O(t))}lt(t){return O(this).lt(O(t))}lte(t){return O(this).lte(O(t))}gt(t){return O(this).gt(O(t))}gte(t){return O(this).gte(O(t))}isNegative(){return"-"===this._hex[0]}isZero(){return O(this).isZero()}toNumber(){try{return O(this).toNumber()}catch(t){R("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return S.throwError("this platform does not support BigInt",_.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?D||(D=!0,S.warn("BigNumber.toString does not accept any parameters;
1 base-10 is assumed")):16===arguments[0]?S.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",_.errors.UNEXPECTED_ARGUMENT,{}):S.throwError("BigNumber.toString does not accept parameters",_.errors.UNEXPECTED_ARGUMENT,{})),O(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof B)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new B(x,C(t)):t.match(/^-?[0-9]+$/)?new B(x,C(new A(t))):S.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&R("underflow","BigNumber.from",t),(t>=0x1fffffffffffff||t<=-0x1fffffffffffff)&&R("overflow","BigNumber.from",t),B.from(String(t));if("bigint"==typeof t)return B.from(t.toString());if(b(t))return B.from(E(t));if(t)if(t.toHexString){let e=t.toHexString();if("string"==typeof e)return B.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(w(e)||"-"===e[0]&&w(e.substring(1))))return B.from(e)}return S.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}}function C(t){if("string"!=typeof t)return C(t.toString(16));if("-"===t[0])return("-"===(t=t.substring(1))[0]&&S.throwArgumentError("invalid hex","value",t),"0x00"===(t=C(t)))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function I(t){return B.from(C(t))}function O(t){let e=B.from(t).toHexString();return"-"===e[0]?new A("-"+e.substring(3),16):new A(e.substring(2),16)}function R(t,e,r){let i={fault:t,operation:e};return null!=r&&(i.value=r),S.throwError(t,_.errors.NUMERIC_FAULT,i)}t.s(["BigNumber",0,B,"_base16To36",0,function(t){return new A(t,16).toString(36)},"_base36To16",0,function(t){return new A(t,36).toString(16)},"isBigNumberish",0,function(t){return null!=t&&(B.isBigNumber(t)||"number"==typeof t&&t%1==0||"string"==typeof t&&!!t.match(/^-?[0-9]+$/)||w(t)||"bigint"==typeof t||b(t))}],839341)},334860,t=>{"use strict";t.s([],618030),t.i(618030);var e=t.i(839341),r=t.i(403011),i=t.i(875353),n=t.i(994284);let o=new i.Logger(n.version),s={},u=e.BigNumber.from(0),a=e.BigNumber.from(-1);function l(t,e,r,n){let s={fault:e,operation:r};return void 0!==n&&(s.value=n),o.throwError(t,i.Logger.errors.NUMERIC_FAULT,s)}let f="0";for(;f.length<256;)f+=f;function h(t){if("number"!=typeof t)try{t=e.BigNumber.from(t).toNumber()}catch(t){}return"number"==typeof t&&t>=0&&t<=256&&!(t%1)?"1"+f.substring(0,t):o.throwArgumentError("invalid decimal size","decimals",t)}function c(t,r){null==r&&(r=0);let i=h(r),n=(t=e.BigNumber.from(t)).lt(u);n&&(t=t.mul(a));let o=t.mod(i).toString();for(;o.length<i.length-1;)o="0"+o;o=o.match(/^([0-9]*[1-9]|0)(0*)/)[1];let s=t.div(i).toString();return t=1===i.length?s:s+"."+o,n&&(t="-"+t),t}function _(t,r){null==r&&(r=0);let i=h(r);"string"==typeof t&&t.match(/^-?[0-9.]+$/)||o.throwArgumentError("invalid decimal value","value",t);let n="-"===t.substring(0,1);n&&(t=t.substring(1)),"."===t&&o.throwArgumentError("missing value","value",t);let s=t.split(".");s.length>2&&o.throwArgumentError("too many decimal points","value",t);let u=s[0],f=s[1];for(u||(u="0"),f||(f="0");"0"===f[f.length-1];)f=f.substring(0,f.length-1);for(f.length>i.length-1&&l("fractional component exceeds decimals","underflow","parseFixed"),""===f&&(f="0");f.length<i.length-1;)f+="0";let c=e.BigNumber.from(u),_=e.BigNumber.from(f),g=c.mul(i).add(_);return n&&(g=g.mul(a)),g}class g{constructor(t,e,r,n){t!==s&&o.throwError("cannot use FixedFormat constructor; use FixedFormat.from",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=e,this.width=r,this.decimals=n,this.name=(e?"":"u")+"fixed"+String(r)+"x"+String(n),this._multiplier=h(n),Object.freeze(this)}static from(t){if(t instanceof g)return t;"number"==typeof t&&(t=`fixed128x${t}`);let e=!0,r=128,i=18;if("string"==typeof t)if("fixed"===t);else if("ufixed"===t)e=!1;else{let n=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);n||o.throwArgumentError("invalid fixed format","format",t),e="u"!==n[1],r=parseInt(n[2]),i=parseInt(n[3])}else if(t){let n=(e,r,i)=>null==t[e]?i:(typeof t[e]!==r&&o.throwArgumentError("invalid fixed format ("+e+" not "+r+")","format."+e,t[e]),t[e]);e=n("signed","boolean",e),r=n("width","number",r),i=n("decimals","number",i)}return r%8&&o.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),i>80&&o.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new g(s,e,r,i)}}class d{constructor(t,e,r,n){t!==s&&o.throwError("cannot use FixedNumber constructor; use FixedNumber.from",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=e,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(t){this.format.name!==t.format.name&&o.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}addUnsafe(t){this._checkFormat(t);let e=_(this._value,this.format.decimals),r=_(t._value,t.format.decimals);return d.fromValue(e.add(r),this.format.decimals,this.format)}subUnsafe(t){this._checkFormat(t);let e=_(this._value,this.format.decimals),r=_(t._value,t.format.decimals);return d.fromValue(e.sub(r),this.format.decimals,this.format)}mulUnsafe(t){this._checkFormat(t);let e=_(this._value,this.format.decimals),r=_(t._value,t.format.decimals);return d.fromValue(e.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(t){this._checkFormat(t);let e=_(this._value,this.format.decimals),r=_(t._value,t.format.decimals);return d.fromValue(e.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){let t=this.toString().split(".");1===t.length&&t.push("0");let e=d.from(t[0],this.format),r=!t[1].match(/^(0*)$/);return this.isNegative()&&r&&(e=e.subUnsafe(m.toFormat(e.format))),e}ceiling(){let t=this.toString().split(".");1===t.length&&t.push("0");let e=d.from(t[0],this.format),r=!t[1].match(/^(0*)$/);return!this.isNegative()&&r&&(e=e.addUnsafe(m.toFormat(e.format))),e}round(t){null==t&&(t=0);let e=this.toString().split(".");if(1===e.length&&e.push("0"),(t<0||t>80||t%1)&&o.throwArgumentError("invalid decimal count","decimals",t),e[1].length<=t)return this;let r=d.from("1"+f.substring(0,t),this.format),i=p.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(i).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(t){if(null==t)return this._hex;t%8&&o.throwArgumentError("invalid byte width","width",t);let i=e.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString();return(0,r.hexZeroPad)(i,t/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return d.fromString(this._value,t)}static fromValue(t,r,i){return null!=i||null==r||(0,e.isBigNumberish)(r)||(i=r,r=null),null==r&&(r=0),null==i&&(i="fixed"),d.fromString(c(t,r),g.from(i))}static fromString(t,e){null==e&&(e="fixed");let i=g.from(e),n=_(t,i.decimals);!i.signed&&n.lt(u)&&l("unsigned value cannot be negative","overflow","value",t);let o=null;return i.signed?o=n.toTwos(i.width).toHexString():(o=n.toHexString(),o=(0,r.hexZeroPad)(o,i.width/8)),new d(s,o,c(n,i.decimals),i)}static fromBytes(t,i){null==i&&(i="fixed");let n=g.from(i);if((0,r.arrayify)(t).length>n.width/8)throw Error("overflow");let o=e.BigNumber.from(t);return n.signed&&(o=o.fromTwos(n.width)),new d(s,o.toTwos(+!n.signed+n.width).toHexString(),c(o,n.decimals),n)}static from(t,e){if("string"==typeof t)return d.fromString(t,e);if((0,r.isBytes)(t))return d.fromBytes(t,e);try{return d.fromValue(t,0,e)}catch(t){if(t.code!==i.Logger.errors.INVALID_ARGUMENT)throw t}return o.throwArgumentError("invalid FixedNumber value","value",t)}static isFixedNumber(t){return!!(t&&t._isFixedNumber)}}let m=d.from(1),p=d.from("0.5");t.s(["BigNumber",()=>e.BigNumber,"FixedFormat",0,g,"FixedNumber",0,d,"_base16To36",()=>e._base16To36,"_base36To16",()=>e._base36To16,"formatFixed",0,c,"parseFixed",0,_],334860)},447172,t=>{"use strict";var e=t.i(223439),r=t.i(403011);t.s(["keccak256",0,function(t){return"0x"+e.default.keccak_256((0,r.arrayify)(t))}])},142361,(t,e,r)=>{!function(r){"use strict";var i,n="[big.js] ",o=n+"Invalid ",s=o+"decimal places",u=o+"rounding mode",a=n+"Division by zero",l={},f=void 0,h=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function c(t,e,r,i){var n=t.c,o=t.e+e+1;if(o<n.length){if(1===r)i=n[o]>=5;else if(2===r)i=n[o]>5||5==n[o]&&(i||o<0||n[o+1]!==f||1&n[o-1]);else if(3===r)i=i||!!n[0];else if(i=!1,0!==r)throw Error(u);if(o<1)n.length=1,i?(t.e=-e,n[0]=1):n[0]=t.e=0;else{if(n.length=o--,i)for(;++n[o]>9;)n[o]=0,o--||(++t.e,n.unshift(1));for(o=n.length;!n[--o];)n.pop()}}else if(r<0||r>3||r!==~~r)throw Error(u);return t}function _(t,e,r,i){var n,u,a=t.constructor,l=!t.c[0];if(r!==f){if(r!==~~r||r<(3==e)||r>1e6)throw Error(3==e?o+"precision":s);for(r=i-(t=new a(t)).e,t.c.length>++i&&c(t,r,a.RM),2==e&&(i=t.e+r+1);t.c.length<i;)t.c.push(0)}if(n=t.e,r=(u=t.c.join("")).length,2!=e&&(1==e||3==e&&i<=n||n<=a.NE||n>=a.PE))u=u.charAt(0)+(r>1?"."+u.slice(1):"")+(n<0?"e":"e+")+n;else if(n<0){for(;++n;)u="0"+u;u="0."+u}else if(n>0)if(++n>r)for(n-=r;n--;)u+="0";else n<r&&(u=u.slice(0,n)+"."+u.slice(n));else r>1&&(u=u.charAt(0)+"."+u.slice(1));return t.s<0&&(!l||4==e)?"-"+u:u}if(l.abs=function(){var t=new this.constructor(this);return t.s=1,t},l.cmp=function(t){var e,r=this.c,i=(t=new this.constructor(t)).c,n=this.s,o=t.s,s=this.e,u=t.e;if(!r[0]||!i[0])return r[0]?n:i[0]?-o:0;if(n!=o)return n;if(e=n<0,s!=u)return s>u^e?1:-1;
1for(o=(s=r.length)<(u=i.length)?s:u,n=-1;++n<o;)if(r[n]!=i[n])return r[n]>i[n]^e?1:-1;return s==u?0:s>u^e?1:-1},l.div=function(t){var e=this.constructor,r=this.c,i=(t=new e(t)).c,n=this.s==t.s?1:-1,o=e.DP;if(o!==~~o||o<0||o>1e6)throw Error(s);if(!i[0])throw Error(a);if(!r[0])return new e(0*n);var u,l,h,_,g,d=i.slice(),m=u=i.length,p=r.length,b=r.slice(0,u),v=b.length,w=t,y=w.c=[],E=0,N=o+(w.e=this.e-t.e)+1;for(w.s=n,n=N<0?0:N,d.unshift(0);v++<u;)b.push(0);do{for(h=0;h<10;h++){if(u!=(v=b.length))_=u>v?1:-1;else for(g=-1,_=0;++g<u;)if(i[g]!=b[g]){_=i[g]>b[g]?1:-1;break}if(_<0){for(l=v==u?i:d;v;){if(b[--v]<l[v]){for(g=v;g&&!b[--g];)b[g]=9;--b[g],b[v]+=10}b[v]-=l[v]}for(;!b[0];)b.shift()}else break}y[E++]=_?h:++h,b[0]&&_?b[v]=r[m]||0:b=[r[m]]}while((m++<p||b[0]!==f)&&n--)return!y[0]&&1!=E&&(y.shift(),w.e--),E>N&&c(w,o,e.RM,b[0]!==f),w},l.eq=function(t){return!this.cmp(t)},l.gt=function(t){return this.cmp(t)>0},l.gte=function(t){return this.cmp(t)>-1},l.lt=function(t){return 0>this.cmp(t)},l.lte=function(t){return 1>this.cmp(t)},l.minus=l.sub=function(t){var e,r,i,n,o=this.constructor,s=this.s,u=(t=new o(t)).s;if(s!=u)return t.s=-u,this.plus(t);var a=this.c.slice(),l=this.e,f=t.c,h=t.e;if(!a[0]||!f[0])return f[0]?(t.s=-u,t):new o(a[0]?this:0);if(s=l-h){for((n=s<0)?(s=-s,i=a):(h=l,i=f),i.reverse(),u=s;u--;)i.push(0);i.reverse()}else for(r=((n=a.length<f.length)?a:f).length,s=u=0;u<r;u++)if(a[u]!=f[u]){n=a[u]<f[u];break}if(n&&(i=a,a=f,f=i,t.s=-t.s),(u=(r=f.length)-(e=a.length))>0)for(;u--;)a[e++]=0;for(u=e;r>s;){if(a[--r]<f[r]){for(e=r;e&&!a[--e];)a[e]=9;--a[e],a[r]+=10}a[r]-=f[r]}for(;0===a[--u];)a.pop();for(;0===a[0];)a.shift(),--h;return a[0]||(t.s=1,a=[h=0]),t.c=a,t.e=h,t},l.mod=function(t){var e,r=this,i=r.constructor,n=r.s,o=(t=new i(t)).s;if(!t.c[0])throw Error(a);return(r.s=t.s=1,e=1==t.cmp(r),r.s=n,t.s=o,e)?new i(r):(n=i.DP,o=i.RM,i.DP=i.RM=0,r=r.div(t),i.DP=n,i.RM=o,this.minus(r.times(t)))},l.plus=l.add=function(t){var e,r=this.constructor,i=this.s,n=(t=new r(t)).s;if(i!=n)return t.s=-n,this.minus(t);var o=this.e,s=this.c,u=t.e,a=t.c;if(!s[0]||!a[0])return a[0]?t:new r(s[0]?this:0*i);if(s=s.slice(),i=o-u){for(i>0?(u=o,e=a):(i=-i,e=s),e.reverse();i--;)e.push(0);e.reverse()}for(s.length-a.length<0&&(e=a,a=s,s=e),i=a.length,n=0;i;s[i]%=10)n=(s[--i]=s[i]+a[i]+n)/10|0;for(n&&(s.unshift(n),++u),i=s.length;0===s[--i];)s.pop();return t.c=s,t.e=u,t},l.pow=function(t){var e=this,r=new e.constructor(1),i=r,n=t<0;if(t!==~~t||t<-1e6||t>1e6)throw Error(o+"exponent");for(n&&(t=-t);1&t&&(i=i.times(e)),t>>=1;)e=e.times(e);return n?r.div(i):i},l.round=function(t,e){var r=this.constructor;if(t===f)t=0;else if(t!==~~t||t<-1e6||t>1e6)throw Error(s);return c(new r(this),t,e===f?r.RM:e)},l.sqrt=function(){var t,e,r,i=this.constructor,o=this.s,s=this.e,u=new i(.5);if(!this.c[0])return new i(this);if(o<0)throw Error(n+"No square root");0===(o=Math.sqrt(this+""))||o===1/0?((e=this.c.join("")).length+s&1||(e+="0"),s=((s+1)/2|0)-(s<0||1&s),t=new i(((o=Math.sqrt(e))==1/0?"1e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+s)):t=new i(o),s=t.e+(i.DP+=4);do r=t,t=u.times(r.plus(this.div(r)));while(r.c.slice(0,s).join("")!==t.c.slice(0,s).join(""))return c(t,i.DP-=4,i.RM)},l.times=l.mul=function(t){var e,r=this.constructor,i=this.c,n=(t=new r(t)).c,o=i.length,s=n.length,u=this.e,a=t.e;if(t.s=this.s==t.s?1:-1,!i[0]||!n[0])return new r(0*t.s);for(t.e=u+a,o<s&&(e=i,i=n,n=e,a=o,o=s,s=a),e=Array(a=o+s);a--;)e[a]=0;for(u=s;u--;){for(s=0,a=o+u;a>u;)s=e[a]+n[u]*i[a-u-1]+s,e[a--]=s%10,s=s/10|0;e[a]=(e[a]+s)%10}for(s?++t.e:e.shift(),u=e.length;!e[--u];)e.pop();return t.c=e,t},l.toExponential=function(t){return _(this,1,t,t)},l.toFixed=function(t){return _(this,2,t,this.e+t)},l.toPrecision=function(t){return _(this,3,t,t-1)},l.toString=function(){return _(this)},l.valueOf=l.toJSON=function(){return _(this,4)},(i=function t(){function e(r){if(!(this instanceof e))return r===f?t():new e(r);r instanceof e?(this.s=r.s,this.e=r.e,this.c=r.c.slice()):function(t,e){var r,i,n;if(0===e&&1/e<0)e="-0";else if(!h.test(e+=""))throw Error(o+"number");for(t.s="-"==e.charAt(0)?(e=e.slice(1),-1):1,(r=e.indexOf("."))>-1&&(e=e.replace(".","")),(i=e.search(/e/i))>0?(r<0&&(r=i),r+=+e.slice(i+1),e=e.substring(0,i)):r<0&&(r=e.length),n=e.length,i=0;i<n&&"0"==e.charAt(i);)++i;if(i==n)t.c=[t.e=0];else{for(;n>0&&"0"==e.charAt(--n););for(t.e=r-i-1,t.c=[],r=0;i<=n;)t.c[r++]=+e.charAt(i++)}}(this,r),this.constructor=e}
1return e.prototype=l,e.DP=20,e.RM=1,e.NE=-7,e.PE=21,e.version="5.2.2",e}()).default=i.Big=i,"function"==typeof define&&define.amd)t.r,void 0!==i&&t.v(i);else e.exports?e.exports=i:r.Big=i}(t.e)},651655,(t,e,r)=>{!function(r){"use strict";var i,n={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},o=!0,s="[DecimalError] ",u=s+"Invalid argument: ",a=s+"Exponent out of range: ",l=Math.floor,f=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,c=l(1286742750677284.5),_={};function g(t,e){var r,i,n,s,u,a,l,f,h=t.constructor,c=h.precision;if(!t.s||!e.s)return e.s||(e=new h(t)),o?A(e,c):e;if(l=t.d,f=e.d,u=t.e,n=e.e,l=l.slice(),s=u-n){for(s<0?(i=l,s=-s,a=f.length):(i=f,n=u,a=l.length),s>(a=(u=Math.ceil(c/7))>a?u+1:a+1)&&(s=a,i.length=1),i.reverse();s--;)i.push(0);i.reverse()}for((a=l.length)-(s=f.length)<0&&(s=a,i=f,f=l,l=i),r=0;s;)r=(l[--s]=l[s]+f[s]+r)/1e7|0,l[s]%=1e7;for(r&&(l.unshift(r),++n),a=l.length;0==l[--a];)l.pop();return e.d=l,e.e=n,o?A(e,c):e}function d(t,e,r){if(t!==~~t||t<e||t>r)throw Error(u+t)}function m(t){var e,r,i,n=t.length-1,o="",s=t[0];if(n>0){for(o+=s,e=1;e<n;e++)(r=7-(i=t[e]+"").length)&&(o+=y(r)),o+=i;(r=7-(i=(s=t[e])+"").length)&&(o+=y(r))}else if(0===s)return"0";for(;s%10==0;)s/=10;return o+s}_.absoluteValue=_.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},_.comparedTo=_.cmp=function(t){var e,r,i,n;if(t=new this.constructor(t),this.s!==t.s)return this.s||-t.s;if(this.e!==t.e)return this.e>t.e^this.s<0?1:-1;for(i=this.d.length,e=0,r=i<(n=t.d.length)?i:n;e<r;++e)if(this.d[e]!==t.d[e])return this.d[e]>t.d[e]^this.s<0?1:-1;return i===n?0:i>n^this.s<0?1:-1},_.decimalPlaces=_.dp=function(){var t=this.d.length-1,e=(t-this.e)*7;if(t=this.d[t])for(;t%10==0;t/=10)e--;return e<0?0:e},_.dividedBy=_.div=function(t){return p(this,new this.constructor(t))},_.dividedToIntegerBy=_.idiv=function(t){var e=this.constructor;return A(p(this,new e(t),0,1),e.precision)},_.equals=_.eq=function(t){return!this.cmp(t)},_.exponent=function(){return v(this)},_.greaterThan=_.gt=function(t){return this.cmp(t)>0},_.greaterThanOrEqualTo=_.gte=function(t){return this.cmp(t)>=0},_.isInteger=_.isint=function(){return this.e>this.d.length-2},_.isNegative=_.isneg=function(){return this.s<0},_.isPositive=_.ispos=function(){return this.s>0},_.isZero=function(){return 0===this.s},_.lessThan=_.lt=function(t){return 0>this.cmp(t)},_.lessThanOrEqualTo=_.lte=function(t){return 1>this.cmp(t)},_.logarithm=_.log=function(t){var e,r=this.constructor,n=r.precision,u=n+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(i))throw Error(s+"NaN");if(this.s<1)throw Error(s+(this.s?"NaN":"-Infinity"));return this.eq(i)?new r(0):(o=!1,e=p(E(this,u),E(t,u),u),o=!0,A(e,n))},_.minus=_.sub=function(t){return t=new this.constructor(t),this.s==t.s?S(this,t):g(this,(t.s=-t.s,t))},_.modulo=_.mod=function(t){var e,r=this.constructor,i=r.precision;if(!(t=new r(t)).s)throw Error(s+"NaN");return this.s?(o=!1,e=p(this,t,0,1).times(t),o=!0,this.minus(e)):A(new r(this),i)},_.naturalExponential=_.exp=function(){return b(this)},_.naturalLogarithm=_.ln=function(){return E(this)},_.negated=_.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},_.plus=_.add=function(t){return t=new this.constructor(t),this.s==t.s?g(this,t):S(this,(t.s=-t.s,t))},_.precision=_.sd=function(t){var e,r,i;if(void 0!==t&&!!t!==t&&1!==t&&0!==t)throw Error(u+t);if(e=v(this)+1,r=7*(i=this.d.length-1)+1,i=this.d[i]){for(;i%10==0;i/=10)r--;for(i=this.d[0];i>=10;i/=10)r++}return t&&e>r?e:r},_.squareRoot=_.sqrt=function(){var t,e,r,i,n,u,a,f=this.constructor;if(this.s<1){if(!this.s)return new f(0);throw Error(s+"NaN")}for(t=v(this),o=!1,0==(n=Math.sqrt(+this))||n==1/0?(((e=m(this.d)).length+t)%2==0&&(e+="0"),n=Math.sqrt(e),t=l((t+1)/2)-(t<0||t%2),i=new f(e=n==1/0?"5e"+t:(e=n.toExponential()).slice(0,e.indexOf("e")+1)+t)):i=new f(n.toString()),n=a=(r=f.precision)+3;;)if(i=(u=i).plus(p(this,u,a+2)).times(.5),m(u.d).slice(0,a)===(e=m(i.d)).slice(0,a)){if
1(e=e.slice(a-3,a+1),n==a&&"4999"==e){if(A(u,r+1,0),u.times(u).eq(this)){i=u;break}}else if("9999"!=e)break;a+=4}return o=!0,A(i,r)},_.times=_.mul=function(t){var e,r,i,n,s,u,a,l,f,h=this.constructor,c=this.d,_=(t=new h(t)).d;if(!this.s||!t.s)return new h(0);for(t.s*=this.s,r=this.e+t.e,(l=c.length)<(f=_.length)&&(s=c,c=_,_=s,u=l,l=f,f=u),s=[],i=u=l+f;i--;)s.push(0);for(i=f;--i>=0;){for(e=0,n=l+i;n>i;)a=s[n]+_[i]*c[n-i-1]+e,s[n--]=a%1e7|0,e=a/1e7|0;s[n]=(s[n]+e)%1e7|0}for(;!s[--u];)s.pop();return e?++r:s.shift(),t.d=s,t.e=r,o?A(t,h.precision):t},_.toDecimalPlaces=_.todp=function(t,e){var r=this,i=r.constructor;return(r=new i(r),void 0===t)?r:(d(t,0,1e9),void 0===e?e=i.rounding:d(e,0,8),A(r,t+v(r)+1,e))},_.toExponential=function(t,e){var r,i=this,n=i.constructor;return void 0===t?r=x(i,!0):(d(t,0,1e9),void 0===e?e=n.rounding:d(e,0,8),r=x(i=A(new n(i),t+1,e),!0,t+1)),r},_.toFixed=function(t,e){var r,i,n=this.constructor;return void 0===t?x(this):(d(t,0,1e9),void 0===e?e=n.rounding:d(e,0,8),r=x((i=A(new n(this),t+v(this)+1,e)).abs(),!1,t+v(i)+1),this.isneg()&&!this.isZero()?"-"+r:r)},_.toInteger=_.toint=function(){var t=this.constructor;return A(new t(this),v(this)+1,t.rounding)},_.toNumber=function(){return+this},_.toPower=_.pow=function(t){var e,r,n,u,a,f,h=this,c=h.constructor,_=+(t=new c(t));if(!t.s)return new c(i);if(!(h=new c(h)).s){if(t.s<1)throw Error(s+"Infinity");return h}if(h.eq(i))return h;if(n=c.precision,t.eq(i))return A(h,n);if(f=(e=t.e)>=(r=t.d.length-1),a=h.s,f){if((r=_<0?-_:_)<=0x1fffffffffffff){for(u=new c(i),e=Math.ceil(n/7+4),o=!1;r%2&&D((u=u.times(h)).d,e),0!==(r=l(r/2));)D((h=h.times(h)).d,e);return o=!0,t.s<0?new c(i).div(u):A(u,n)}}else if(a<0)throw Error(s+"NaN");return a=a<0&&1&t.d[Math.max(e,r)]?-1:1,h.s=1,o=!1,u=t.times(E(h,n+12)),o=!0,(u=b(u)).s=a,u},_.toPrecision=function(t,e){var r,i,n=this,o=n.constructor;return void 0===t?(r=v(n),i=x(n,r<=o.toExpNeg||r>=o.toExpPos)):(d(t,1,1e9),void 0===e?e=o.rounding:d(e,0,8),r=v(n=A(new o(n),t,e)),i=x(n,t<=r||r<=o.toExpNeg,t)),i},_.toSignificantDigits=_.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(d(t,1,1e9),void 0===e?e=r.rounding:d(e,0,8)),A(new r(this),t,e)},_.toString=_.valueOf=_.val=_.toJSON=function(){var t=v(this),e=this.constructor;return x(this,t<=e.toExpNeg||t>=e.toExpPos)};var p=function(){function t(t,e){var r,i=0,n=t.length;for(t=t.slice();n--;)r=t[n]*e+i,t[n]=r%1e7|0,i=r/1e7|0;return i&&t.unshift(i),t}function e(t,e,r,i){var n,o;if(r!=i)o=r>i?1:-1;else for(n=o=0;n<r;n++)if(t[n]!=e[n]){o=t[n]>e[n]?1:-1;break}return o}function r(t,e,r){for(var i=0;r--;)t[r]-=i,i=+(t[r]<e[r]),t[r]=1e7*i+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(i,n,o,u){var a,l,f,h,c,_,g,d,m,p,b,w,y,E,N,S,x,D,B=i.constructor,C=i.s==n.s?1:-1,I=i.d,O=n.d;if(!i.s)return new B(i);if(!n.s)throw Error(s+"Division by zero");for(l=i.e-n.e,x=O.length,N=I.length,d=(g=new B(C)).d=[],f=0;O[f]==(I[f]||0);)++f;if(O[f]>(I[f]||0)&&--l,(w=null==o?o=B.precision:u?o+(v(i)-v(n))+1:o)<0)return new B(0);if(w=w/7+2|0,f=0,1==x)for(h=0,O=O[0],w++;(f<N||h)&&w--;f++)y=1e7*h+(I[f]||0),d[f]=y/O|0,h=y%O|0;else{for((h=1e7/(O[0]+1)|0)>1&&(O=t(O,h),I=t(I,h),x=O.length,N=I.length),E=x,p=(m=I.slice(0,x)).length;p<x;)m[p++]=0;(D=O.slice()).unshift(0),S=O[0],O[1]>=1e7/2&&++S;do h=0,(a=e(O,m,x,p))<0?(b=m[0],x!=p&&(b=1e7*b+(m[1]||0)),(h=b/S|0)>1?(h>=1e7&&(h=1e7-1),_=(c=t(O,h)).length,p=m.length,1==(a=e(c,m,_,p))&&(h--,r(c,x<_?D:O,_))):(0==h&&(a=h=1),c=O.slice()),(_=c.length)<p&&c.unshift(0),r(m,c,p),-1==a&&(p=m.length,(a=e(O,m,x,p))<1&&(h++,r(m,x<p?D:O,p))),p=m.length):0===a&&(h++,m=[0]),d[f++]=h,a&&m[0]?m[p++]=I[E]||0:(m=[I[E]],p=1);while((E++<N||void 0!==m[0])&&w--)}return d[0]||d.shift(),g.e=l,A(g,u?o+v(g)+1:o)}}();function b(t,e){var r,n,s,u,l,h=0,c=0,_=t.constructor,g=_.precision;if(v(t)>16)throw Error(a+v(t));if(!t.s)return new _(i);for(null==e?(o=!1,l=g):l=e,u=new _(.03125);t.abs().gte(.1);)t=t.times(u),c+=5;for(l+=Math.log(f(2,c))/Math.LN10*2+5|0,r=n=s=new _(i),_.precision=l;;){if(n=A(n.times(t),l),r=r.times(++h),m((u=s.plus(p(n,r,l))).d).slice(0,l)===m(s.d).slice(0,l)){for(;c--;)s=A(s.times(s),l);return _.precision=g,null==e?(o=!0,A(s,g)):s}s=u}}function v(t){for(var e=7*t.e,r=t.d[0];r>=10;r/=10)e++;return e}function w(t,e,r){if(e>t.LN10.sd())throw o=!0,r&&(t.precision=r),Error(s+"LN10 precision limit exceeded");return A(new t(t.LN10),e)}function y(t){for(var e="";t--;)e+="0";return e}
1function E(t,e){var r,n,u,a,l,f,h,c,_,g=1,d=t,b=d.d,y=d.constructor,N=y.precision;if(d.s<1)throw Error(s+(d.s?"NaN":"-Infinity"));if(d.eq(i))return new y(0);if(null==e?(o=!1,c=N):c=e,d.eq(10))return null==e&&(o=!0),w(y,c);if(y.precision=c+=10,n=(r=m(b)).charAt(0),!(15e14>Math.abs(a=v(d))))return h=w(y,c+2,N).times(a+""),d=E(new y(n+"."+r.slice(1)),c-10).plus(h),y.precision=N,null==e?(o=!0,A(d,N)):d;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=m((d=d.times(t)).d)).charAt(0),g++;for(a=v(d),n>1?(d=new y("0."+r),a++):d=new y(n+"."+r.slice(1)),f=l=d=p(d.minus(i),d.plus(i),c),_=A(d.times(d),c),u=3;;){if(l=A(l.times(_),c),m((h=f.plus(p(l,new y(u),c))).d).slice(0,c)===m(f.d).slice(0,c))return f=f.times(2),0!==a&&(f=f.plus(w(y,c+2,N).times(a+""))),f=p(f,new y(g),c),y.precision=N,null==e?(o=!0,A(f,N)):f;f=h,u+=2}}function N(t,e){var r,i,n;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(i=e.search(/e/i))>0?(r<0&&(r=i),r+=+e.slice(i+1),e=e.substring(0,i)):r<0&&(r=e.length),i=0;48===e.charCodeAt(i);)++i;for(n=e.length;48===e.charCodeAt(n-1);)--n;if(e=e.slice(i,n)){if(n-=i,t.e=l((r=r-i-1)/7),t.d=[],i=(r+1)%7,r<0&&(i+=7),i<n){for(i&&t.d.push(+e.slice(0,i)),n-=7;i<n;)t.d.push(+e.slice(i,i+=7));i=7-(e=e.slice(i)).length}else i-=n;for(;i--;)e+="0";if(t.d.push(+e),o&&(t.e>c||t.e<-c))throw Error(a+r)}else t.s=0,t.e=0,t.d=[0];return t}function A(t,e,r){var i,n,s,u,h,_,g,d,m=t.d;for(u=1,s=m[0];s>=10;s/=10)u++;if((i=e-u)<0)i+=7,n=e,g=m[d=0];else{if((d=Math.ceil((i+1)/7))>=(s=m.length))return t;for(g=s=m[d],u=1;s>=10;s/=10)u++;i%=7,n=i-7+u}if(void 0!==r&&(h=g/(s=f(10,u-n-1))%10|0,_=e<0||void 0!==m[d+1]||g%s,_=r<4?(h||_)&&(0==r||r==(t.s<0?3:2)):h>5||5==h&&(4==r||_||6==r&&(i>0?n>0?g/f(10,u-n):0:m[d-1])%10&1||r==(t.s<0?8:7))),e<1||!m[0])return _?(s=v(t),m.length=1,e=e-s-1,m[0]=f(10,(7-e%7)%7),t.e=l(-e/7)||0):(m.length=1,m[0]=t.e=t.s=0),t;if(0==i?(m.length=d,s=1,d--):(m.length=d+1,s=f(10,7-i),m[d]=n>0?(g/f(10,u-n)%f(10,n)|0)*s:0),_)for(;;)if(0==d){1e7==(m[0]+=s)&&(m[0]=1,++t.e);break}else{if(m[d]+=s,1e7!=m[d])break;m[d--]=0,s=1}for(i=m.length;0===m[--i];)m.pop();if(o&&(t.e>c||t.e<-c))throw Error(a+v(t));return t}function S(t,e){var r,i,n,s,u,a,l,f,h,c,_=t.constructor,g=_.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new _(t),o?A(e,g):e;if(l=t.d,c=e.d,i=e.e,f=t.e,l=l.slice(),u=f-i){for((h=u<0)?(r=l,u=-u,a=c.length):(r=c,i=f,a=l.length),u>(n=Math.max(Math.ceil(g/7),a)+2)&&(u=n,r.length=1),r.reverse(),n=u;n--;)r.push(0);r.reverse()}else{for((h=(n=l.length)<(a=c.length))&&(a=n),n=0;n<a;n++)if(l[n]!=c[n]){h=l[n]<c[n];break}u=0}for(h&&(r=l,l=c,c=r,e.s=-e.s),a=l.length,n=c.length-a;n>0;--n)l[a++]=0;for(n=c.length;n>u;){if(l[--n]<c[n]){for(s=n;s&&0===l[--s];)l[s]=1e7-1;--l[s],l[n]+=1e7}l[n]-=c[n]}for(;0===l[--a];)l.pop();for(;0===l[0];l.shift())--i;return l[0]?(e.d=l,e.e=i,o?A(e,g):e):new _(0)}function x(t,e,r){var i,n=v(t),o=m(t.d),s=o.length;return e?(r&&(i=r-s)>0?o=o.charAt(0)+"."+o.slice(1)+y(i):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(n<0?"e":"e+")+n):n<0?(o="0."+y(-n-1)+o,r&&(i=r-s)>0&&(o+=y(i))):n>=s?(o+=y(n+1-s),r&&(i=r-n-1)>0&&(o=o+"."+y(i))):((i=n+1)<s&&(o=o.slice(0,i)+"."+o.slice(i)),r&&(i=r-s)>0&&(n+1===s&&(o+="."),o+=y(i))),t.s<0?"-"+o:o}function D(t,e){if(t.length>e)return t.length=e,!0}function B(t){if(!t||"object"!=typeof t)throw Error(s+"Object expected");var e,r,i,n=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<n.length;e+=3)if(void 0!==(i=t[r=n[e]]))if(l(i)===i&&i>=n[e+1]&&i<=n[e+2])this[r]=i;else throw Error(u+r+": "+i);if(void 0!==(i=t[r="LN10"]))if(i==Math.LN10)this[r]=new this(i);else throw Error(u+r+": "+i);return this}if((n=function t(e){var r,i,n;function o(t){if(!(this instanceof o))return new o(t);if(this.constructor=o,t instanceof o){this.s=t.s,this.e=t.e,this.d=(t=t.d)?t.slice():t;return}if("number"==typeof t){if(0*t!=0)throw Error(u+t);if(t>0)this.s=1;else if(t<0)t=-t,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(t===~~t&&t<1e7){this.e=0,this.d=[t];return}return N(this,t.toString())}if("string"!=typeof t)throw Error(u+t);if(45===t.charCodeAt(0)?(t=t.slice(1),this.s=-1):this.s=1,h.test(t))N(this,t);else throw Error(u+t)}if(o.prototype=_,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=t,o.config=o.set=B,void 0===e&&(e={}),e)for(r=0,n=["precision","rounding","toExpNeg","toExpPos","LN10"];r<n.length;)e.hasOwnProperty(i=n[r++])||(e[i]=this[i]);return o.config(e),o}(n)).default=n.Decimal=n,i=new n(1),"function"==typeof define&&define.amd){let e;t.r,void 0!==(e=n)&&t.v(e)}else e.exports?e.exports=n:(r||(r="u">typeof self&&self&&self.self==self?self:Function("return this")()),r.Decimal=n)}(t.e)},223439,(t,e,r)=>{var i=t.i(247167);!function(){"use strict";
1var r="input is invalid type",n="object"==typeof window,o=n?window:{};o.JS_SHA3_NO_WINDOW&&(n=!1);var s=!n&&"object"==typeof self;!o.JS_SHA3_NO_NODE_JS&&"object"==typeof i.default&&i.default.versions&&i.default.versions.node?o=t.g:s&&(o=self);var u=!o.JS_SHA3_NO_COMMON_JS&&e.exports,a="function"==typeof define&&define.amd,l=!o.JS_SHA3_NO_ARRAY_BUFFER&&"u">typeof ArrayBuffer,f="0123456789abcdef".split(""),h=[4,1024,262144,0x4000000],c=[0,8,16,24],_=[1,0,32898,0,32906,0x80000000,0x80008000,0x80000000,32907,0,0x80000001,0,0x80008081,0x80000000,32777,0x80000000,138,0,136,0,0x80008009,0,0x8000000a,0,0x8000808b,0,139,0x80000000,32905,0x80000000,32771,0x80000000,32770,0x80000000,128,0x80000000,32778,0,0x8000000a,0x80000000,0x80008081,0x80000000,32896,0x80000000,0x80000001,0,0x80008008,0x80000000],g=[224,256,384,512],d=[128,256],m=["hex","buffer","arrayBuffer","array","digest"],p={128:168,256:136};(o.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),l&&(o.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var b=function(t,e,r){return function(i){return new T(t,e,t).update(i)[r]()}},v=function(t,e,r){return function(i,n){return new T(t,e,n).update(i)[r]()}},w=function(t,e,r){return function(e,i,n,o){return S["cshake"+t].update(e,i,n,o)[r]()}},y=function(t,e,r){return function(e,i,n,o){return S["kmac"+t].update(e,i,n,o)[r]()}},E=function(t,e,r,i){for(var n=0;n<m.length;++n){var o=m[n];t[o]=e(r,i,o)}return t},N=function(t,e){var r=b(t,e,"hex");return r.create=function(){return new T(t,e,t)},r.update=function(t){return r.create().update(t)},E(r,b,t,e)},A=[{name:"keccak",padding:[1,256,65536,0x1000000],bits:g,createMethod:N},{name:"sha3",padding:[6,1536,393216,0x6000000],bits:g,createMethod:N},{name:"shake",padding:[31,7936,2031616,0x1f000000],bits:d,createMethod:function(t,e){var r=v(t,e,"hex");return r.create=function(r){return new T(t,e,r)},r.update=function(t,e){return r.create(e).update(t)},E(r,v,t,e)}},{name:"cshake",padding:h,bits:d,createMethod:function(t,e){var r=p[t],i=w(t,e,"hex");return i.create=function(i,n,o){return n||o?new T(t,e,i).bytepad([n,o],r):S["shake"+t].create(i)},i.update=function(t,e,r,n){return i.create(e,r,n).update(t)},E(i,w,t,e)}},{name:"kmac",padding:h,bits:d,createMethod:function(t,e){var r=p[t],i=y(t,e,"hex");return i.create=function(i,n,o){return new P(t,e,n).bytepad(["KMAC",o],r).bytepad([i],r)},i.update=function(t,e,r,n){return i.create(t,r,n).update(e)},E(i,y,t,e)}}],S={},x=[],D=0;D<A.length;++D)for(var B=A[D],C=B.bits,I=0;I<C.length;++I){var O=B.name+"_"+C[I];if(x.push(O),S[O]=B.createMethod(C[I],B.padding),"sha3"!==B.name){var R=B.name+C[I];x.push(R),S[R]=S[O]}}function T(t,e,r){this.blocks=[],this.s=[],this.padding=e,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var i=0;i<50;++i)this.s[i]=0}function P(t,e,r){T.call(this,t,e,r)}T.prototype.update=function(t){if(this.finalized)throw Error("finalize already called");var e,i=typeof t;if("string"!==i){if("object"===i){if(null===t)throw Error(r);else if(l&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!l||!ArrayBuffer.isView(t)))throw Error(r)}else throw Error(r);e=!0}for(var n,o,s=this.blocks,u=this.byteCount,a=t.length,f=this.blockCount,h=0,_=this.s;h<a;){if(this.reset)for(this.reset=!1,s[0]=this.block,n=1;n<f+1;++n)s[n]=0;if(e)for(n=this.start;h<a&&n<u;++h)s[n>>2]|=t[h]<<c[3&n++];else for(n=this.start;h<a&&n<u;++h)(o=t.charCodeAt(h))<128?s[n>>2]|=o<<c[3&n++]:(o<2048?s[n>>2]|=(192|o>>6)<<c[3&n++]:(o<55296||o>=57344?s[n>>2]|=(224|o>>12)<<c[3&n++]:(o=65536+((1023&o)<<10|1023&t.charCodeAt(++h)),s[n>>2]|=(240|o>>18)<<c[3&n++],s[n>>2]|=(128|o>>12&63)<<c[3&n++]),s[n>>2]|=(128|o>>6&63)<<c[3&n++]),s[n>>2]|=(128|63&o)<<c[3&n++]);if(this.lastByteIndex=n,n>=u){for(this.start=n-u,this.block=s[f],n=0;n<f;++n)_[n]^=s[n];U(_),this.reset=!0}else this.start=n}return this},T.prototype.encode=function(t,e){var r=255&t,i=1,n=[r];for(t>>=8,r=255&t;r>0;)n.unshift(r),t>>=8,r=255&t,++i;return e?n.push(i):n.unshift(i),this.update(n),n.length},T.prototype.encodeString=function(t){var e,i=typeof t;if("string"!==i){if("object"===i){if(null===t)throw Error(r);else if(l&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!l||!ArrayBuffer.isView(t)))throw Error(r)}else throw Error(r);e=!0}var n=0,o=t.length;if(e)n=o;else for(var s=0;s<t.length;++s){var u=t.charCodeAt(s);u<128?n+=1:u<2048?n+=2:u<55296||u>=57344?n+=3:(u=65536+((1023&u)<<10|1023&t.charCodeAt(++s)),n+=4)}return n+=this.encode(8*n),this.update(t),n},T.prototype.bytepad=function(t,e){for(var r=this.encode(e),i=0;i<t.length;++i)r+=this.encodeString(t[i]);var n=[];return n.length=e-r%e,this.update(n),this},T.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,r=this.blockCount,i=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[r],e=1;e<r+1;++e)t[e]=0;for(t[r-1]|=0x80000000,e=0;e<r;++e)i[e]^=t[e];U(i)}},T.prototype.toString=T.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,i=this.outputBlocks,n=this.extraBytes,o=0,s=0,u="";s<i;){for(o=0;o<e&&s<i;++o,++s)u+=f[(t=r[o])>>4&15]+f[15&t]+f[t>>12&15]+f[t>>8&15]+f[t>>20&15]+f[t>>16&15]+f[t>>28&15]+f[t>>24&15];s%e==0&&(U(r),o=0)}return n&&(u+=f[(t=r[o])>>4&15]+f[15&t],n>1&&(u+=f[t>>12&15]+f[t>>8&15]),n>2&&(u+=f[t>>20&15]+f[t>>16&15])),u},T.prototype.arrayBuffer=function(){this.finalize();for(var t,e=this.blockCount,r=this.s,i=this.outputBlocks,n=this.extraBytes,o=0,s=0,u=this.outputBits>>3,a=new Uint32Array(t=new ArrayBuffer(n?i+1<<2:u));s<i;){for(o=0;o<e&&s<i;++o,++s)a[s]=r[o];s%e==0&&U(r)}return n&&(a[o]=r[o],t=t.slice(0,u)),t},T.prototype.buffer=T.prototype.arrayBuffer,T.prototype.digest=T.prototype.array=function(){this.finalize();for(var t,e,r=this.blockCount,i=this.s,n=this.outputBlocks,o=this.extraBytes,s=0,u=0,a=[];u<n;){for(s=0;s<r&&u<n;++s,++u)t=u<<2,e=i[s],a[t]=255&e,a[t+1]=e>>8&255,a[t+2]=e>>16&255,a[t+3]=e>>24&255;u%r==0&&U(i)}return o&&(t=u<<2,e=i[s],a[t]=255&e,o>1&&(a[t+1]=e>>8&255),o>2&&(a[t+2]=e>>16&255)),a},P.prototype=new T,P.prototype.finalize=function(){return this.encode(this.outputBits,!0),T.prototype.finalize.call(this)};var U=function(t){var e,r,i,n,o,s,u,a,l,f,h,c,g,d,m,p,b,v,w,y,E,N,A,S,x,D,B,C,I,O,R,T,P,U,F,k,M,L,z,q,G,j,H,W,V,X,J,$,Z,K,Q,Y,tt,te,tr,ti,tn,to,ts,tu,ta,tl,tf;for(i=0;i<48;i+=2)n=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],u=t[3]^t[13]^t[23]^t[33]^t[43],a=t[4]^t[14]^t[24]^t[34]^t[44],l=t[5]^t[15]^t[25]^t[35]^t[45],f=t[6]^t[16]^t[26]^t[3
16]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],c=t[8]^t[18]^t[28]^t[38]^t[48],g=t[9]^t[19]^t[29]^t[39]^t[49],e=c^(s<<1|u>>>31),r=g^(u<<1|s>>>31),t[0]^=e,t[1]^=r,t[10]^=e,t[11]^=r,t[20]^=e,t[21]^=r,t[30]^=e,t[31]^=r,t[40]^=e,t[41]^=r,e=n^(a<<1|l>>>31),r=o^(l<<1|a>>>31),t[2]^=e,t[3]^=r,t[12]^=e,t[13]^=r,t[22]^=e,t[23]^=r,t[32]^=e,t[33]^=r,t[42]^=e,t[43]^=r,e=s^(f<<1|h>>>31),r=u^(h<<1|f>>>31),t[4]^=e,t[5]^=r,t[14]^=e,t[15]^=r,t[24]^=e,t[25]^=r,t[34]^=e,t[35]^=r,t[44]^=e,t[45]^=r,e=a^(c<<1|g>>>31),r=l^(g<<1|c>>>31),t[6]^=e,t[7]^=r,t[16]^=e,t[17]^=r,t[26]^=e,t[27]^=r,t[36]^=e,t[37]^=r,t[46]^=e,t[47]^=r,e=f^(n<<1|o>>>31),r=h^(o<<1|n>>>31),t[8]^=e,t[9]^=r,t[18]^=e,t[19]^=r,t[28]^=e,t[29]^=r,t[38]^=e,t[39]^=r,t[48]^=e,t[49]^=r,d=t[0],m=t[1],X=t[11]<<4|t[10]>>>28,J=t[10]<<4|t[11]>>>28,C=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,tu=t[31]<<9|t[30]>>>23,ta=t[30]<<9|t[31]>>>23,j=t[40]<<18|t[41]>>>14,H=t[41]<<18|t[40]>>>14,U=t[2]<<1|t[3]>>>31,F=t[3]<<1|t[2]>>>31,p=t[13]<<12|t[12]>>>20,b=t[12]<<12|t[13]>>>20,$=t[22]<<10|t[23]>>>22,Z=t[23]<<10|t[22]>>>22,O=t[33]<<13|t[32]>>>19,R=t[32]<<13|t[33]>>>19,tl=t[42]<<2|t[43]>>>30,tf=t[43]<<2|t[42]>>>30,te=t[5]<<30|t[4]>>>2,tr=t[4]<<30|t[5]>>>2,k=t[14]<<6|t[15]>>>26,M=t[15]<<6|t[14]>>>26,v=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,K=t[34]<<15|t[35]>>>17,Q=t[35]<<15|t[34]>>>17,T=t[45]<<29|t[44]>>>3,P=t[44]<<29|t[45]>>>3,S=t[6]<<28|t[7]>>>4,x=t[7]<<28|t[6]>>>4,ti=t[17]<<23|t[16]>>>9,tn=t[16]<<23|t[17]>>>9,L=t[26]<<25|t[27]>>>7,z=t[27]<<25|t[26]>>>7,y=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,Y=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,W=t[8]<<27|t[9]>>>5,V=t[9]<<27|t[8]>>>5,D=t[18]<<20|t[19]>>>12,B=t[19]<<20|t[18]>>>12,to=t[29]<<7|t[28]>>>25,ts=t[28]<<7|t[29]>>>25,q=t[38]<<8|t[39]>>>24,G=t[39]<<8|t[38]>>>24,N=t[48]<<14|t[49]>>>18,A=t[49]<<14|t[48]>>>18,t[0]=d^~p&v,t[1]=m^~b&w,t[10]=S^~D&C,t[11]=x^~B&I,t[20]=U^~k&L,t[21]=F^~M&z,t[30]=W^~X&$,t[31]=V^~J&Z,t[40]=te^~ti&to,t[41]=tr^~tn&ts,t[2]=p^~v&y,t[3]=b^~w&E,t[12]=D^~C&O,t[13]=B^~I&R,t[22]=k^~L&q,t[23]=M^~z&G,t[32]=X^~$&K,t[33]=J^~Z&Q,t[42]=ti^~to&tu,t[43]=tn^~ts&ta,t[4]=v^~y&N,t[5]=w^~E&A,t[14]=C^~O&T,t[15]=I^~R&P,t[24]=L^~q&j,t[25]=z^~G&H,t[34]=$^~K&Y,t[35]=Z^~Q&tt,t[44]=to^~tu&tl,t[45]=ts^~ta&tf,t[6]=y^~N&d,t[7]=E^~A&m,t[16]=O^~T&S,t[17]=R^~P&x,t[26]=q^~j&U,t[27]=G^~H&F,t[36]=K^~Y&W,t[37]=Q^~tt&V,t[46]=tu^~tl&te,t[47]=ta^~tf&tr,t[8]=N^~d&p,t[9]=A^~m&b,t[18]=T^~S&D,t[19]=P^~x&B,t[28]=j^~U&k,t[29]=H^~F&M,t[38]=Y^~W&X,t[39]=tt^~V&J,t[48]=tl^~te&ti,t[49]=tf^~tr&tn,t[0]^=_[i],t[1]^=_[i+1]};if(u)e.exports=S;else{for(D=0;D<x.length;++D)o[x[D]]=S[x[D]];a&&(t.r,void 0!==S&&t.v(S))}}()},477912,(t,e,r)=>{t.e,e.exports=function(){"use strict";var t=Math.imul,e=Math.clz32,r=Math.abs,i=Math.max,n=Math.floor;class o extends Array{constructor(t,e){if(super(t),this.sign=e,t>o.__kMaxLength)throw RangeError("Maximum BigInt size exceeded")}static BigInt(t){var e=Number.isFinite;if("number"==typeof t){if(0===t)return o.__zero();if(o.__isOneDigitInt(t))return 0>t?o.__oneDigit(-t,!0):o.__oneDigit(t,!1);if(!e(t)||n(t)!==t)throw RangeError("The number "+t+" cannot be converted to BigInt because it is not an integer");return o.__fromDouble(t)}if("string"==typeof t){let e=o.__fromString(t);if(null===e)throw SyntaxError("Cannot convert "+t+" to a BigInt");return e}if("boolean"==typeof t)return!0===t?o.__oneDigit(1,!1):o.__zero();if("object"==typeof t){if(t.constructor===o)return t;let e=o.__toPrimitive(t);return o.BigInt(e)}throw TypeError("Cannot convert "+t+" to a BigInt")}toDebugString(){let t=["BigInt["];for(let e of this)t.push((e?(e>>>0).toString(16):e)+", ");return t.push("]"),t.join("")}toString(t=10){if(2>t||36<t)throw RangeError("toString() radix argument must be between 2 and 36");return 0===this.length?"0":0==(t&t-1)?o.__toStringBasePowerOfTwo(this,t):o.__toStringGeneric(this,t,!1)}static toNumber(t){let e=t.length;if(0===e)return 0;if(1===e){let e=t.__unsignedDigit(0);return t.sign?-e:e}let r=t.__digit(e-1),i=o.__clz30(r),n=30*e-i;if(1024<n)return t.sign?-1/0:1/0;let s=n-1,u=r,a=e-1,l=i+3,f=32===l?0:u<<l;f>>>=12;let h=l-12,c=12<=l?0:u<<20+l,_=20+l;for(0<h&&0<a&&(a--,f|=(u=t.__digit(a))>>>30-h,c=u<<h+2,_=h+2);0<_&&0<a;)a--,u=t.__digit(a),c|=30<=_?u<<_-30:u>>>30-_,_-=30;let g=o.__decideRounding(t,_,a,u);if((1===g||0===g&&1==(1&c))&&0==(c=c+1>>>0)&&0!=++f>>>20&&(f=0,1023<++s))return t.sign?-1/0:1/0;let d=t.sign?-0x80000000:0;return s=s+1023<<20,o.__kBitConversionInts[1]=d|s|f,o.__kBitConversionInts[0]=c,o.__
1kBitConversionDouble[0]}static unaryMinus(t){if(0===t.length)return t;let e=t.__copy();return e.sign=!t.sign,e}static bitwiseNot(t){return t.sign?o.__absoluteSubOne(t).__trim():o.__absoluteAddOne(t,!0)}static exponentiate(t,e){if(e.sign)throw RangeError("Exponent must be positive");if(0===e.length)return o.__oneDigit(1,!1);if(0===t.length)return t;if(1===t.length&&1===t.__digit(0))return t.sign&&0==(1&e.__digit(0))?o.unaryMinus(t):t;if(1<e.length)throw RangeError("BigInt too big");let r=e.__unsignedDigit(0);if(1===r)return t;if(r>=o.__kMaxLengthBits)throw RangeError("BigInt too big");if(1===t.length&&2===t.__digit(0)){let e=1+(0|r/30),i=new o(e,t.sign&&0!=(1&r));i.__initializeDigits();let n=1<<r%30;return i.__setDigit(e-1,n),i}let i=null,n=t;for(0!=(1&r)&&(i=t),r>>=1;0!==r;r>>=1)n=o.multiply(n,n),0!=(1&r)&&(i=null===i?n:o.multiply(i,n));return i}static multiply(t,e){if(0===t.length)return t;if(0===e.length)return e;let r=t.length+e.length;30<=t.__clzmsd()+e.__clzmsd()&&r--;let i=new o(r,t.sign!==e.sign);i.__initializeDigits();for(let r=0;r<t.length;r++)o.__multiplyAccumulate(e,t.__digit(r),i,r);return i.__trim()}static divide(t,e){let r;if(0===e.length)throw RangeError("Division by zero");if(0>o.__absoluteCompare(t,e))return o.__zero();let i=t.sign!==e.sign,n=e.__unsignedDigit(0);if(1===e.length&&32767>=n){if(1===n)return i===t.sign?t:o.unaryMinus(t);r=o.__absoluteDivSmall(t,n,null)}else r=o.__absoluteDivLarge(t,e,!0,!1);return r.sign=i,r.__trim()}static remainder(t,e){if(0===e.length)throw RangeError("Division by zero");if(0>o.__absoluteCompare(t,e))return t;let r=e.__unsignedDigit(0);if(1===e.length&&32767>=r){if(1===r)return o.__zero();let e=o.__absoluteModSmall(t,r);return 0===e?o.__zero():o.__oneDigit(e,t.sign)}let i=o.__absoluteDivLarge(t,e,!1,!0);return i.sign=t.sign,i.__trim()}static add(t,e){let r=t.sign;return r===e.sign?o.__absoluteAdd(t,e,r):0<=o.__absoluteCompare(t,e)?o.__absoluteSub(t,e,r):o.__absoluteSub(e,t,!r)}static subtract(t,e){let r=t.sign;return r===e.sign?0<=o.__absoluteCompare(t,e)?o.__absoluteSub(t,e,r):o.__absoluteSub(e,t,!r):o.__absoluteAdd(t,e,r)}static leftShift(t,e){return 0===e.length||0===t.length?t:e.sign?o.__rightShiftByAbsolute(t,e):o.__leftShiftByAbsolute(t,e)}static signedRightShift(t,e){return 0===e.length||0===t.length?t:e.sign?o.__leftShiftByAbsolute(t,e):o.__rightShiftByAbsolute(t,e)}static unsignedRightShift(){throw TypeError("BigInts have no unsigned right shift; use >> instead")}static lessThan(t,e){return 0>o.__compareToBigInt(t,e)}static lessThanOrEqual(t,e){return 0>=o.__compareToBigInt(t,e)}static greaterThan(t,e){return 0<o.__compareToBigInt(t,e)}static greaterThanOrEqual(t,e){return 0<=o.__compareToBigInt(t,e)}static equal(t,e){if(t.sign!==e.sign||t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t.__digit(r)!==e.__digit(r))return!1;return!0}static notEqual(t,e){return!o.equal(t,e)}static bitwiseAnd(t,e){if(!t.sign&&!e.sign)return o.__absoluteAnd(t,e).__trim();if(t.sign&&e.sign){let r=i(t.length,e.length)+1,n=o.__absoluteSubOne(t,r),s=o.__absoluteSubOne(e);return n=o.__absoluteOr(n,s,n),o.__absoluteAddOne(n,!0,n).__trim()}return t.sign&&([t,e]=[e,t]),o.__absoluteAndNot(t,o.__absoluteSubOne(e)).__trim()}static bitwiseXor(t,e){if(!t.sign&&!e.sign)return o.__absoluteXor(t,e).__trim();if(t.sign&&e.sign){let r=i(t.length,e.length),n=o.__absoluteSubOne(t,r),s=o.__absoluteSubOne(e);return o.__absoluteXor(n,s,n).__trim()}let r=i(t.length,e.length)+1;t.sign&&([t,e]=[e,t]);let n=o.__absoluteSubOne(e,r);return n=o.__absoluteXor(n,t,n),o.__absoluteAddOne(n,!0,n).__trim()}static bitwiseOr(t,e){let r=i(t.length,e.length);if(!t.sign&&!e.sign)return o.__absoluteOr(t,e).__trim();if(t.sign&&e.sign){let i=o.__absoluteSubOne(t,r),n=o.__absoluteSubOne(e);return i=o.__absoluteAnd(i,n,i),o.__absoluteAddOne(i,!0,i).__trim()}t.sign&&([t,e]=[e,t]);let n=o.__absoluteSubOne(e,r);return n=o.__absoluteAndNot(n,t,n),o.__absoluteAddOne(n,!0,n).__trim()}static asIntN(t,e){if(0===e.length)return e;if(0>(t=n(t)))throw RangeError("Invalid value: not (convertible to) a safe integer");if(0===t)return o.__zero();if(t>=o.__kMaxLengthBits)return e;let r=0|(t+29)/30;if(e.length<r)return e;let i=e.__unsignedDigit(r-1),s=1<<(t-1)%30;if(e.length===r&&i<s)return e;if((i&s)!==s)return o.__truncateToNBits(t,e);if(!e.sign)return o.__truncateAndSubFromPowerOfTwo(t,e,!0);if(0==(i&s-1)){for(let i=r-2;0<=i;i--)if(0!==e.__digit(i))return o.__truncateAndSubFromPowerOfTwo(t,e,!1);return e.length===r&&i===s?e:o.__truncateToNBits(t,e)}return o.__truncateAndSubFromPowerOfTwo(t,e,!1)}static asUintN(t,e){if(0===e.length)return e;if(0>
1(t=n(t)))throw RangeError("Invalid value: not (convertible to) a safe integer");if(0===t)return o.__zero();if(e.sign){if(t>o.__kMaxLengthBits)throw RangeError("BigInt too big");return o.__truncateAndSubFromPowerOfTwo(t,e,!1)}if(t>=o.__kMaxLengthBits)return e;let r=0|(t+29)/30;if(e.length<r)return e;let i=t%30;return e.length==r&&(0===i||0==e.__digit(r-1)>>>i)?e:o.__truncateToNBits(t,e)}static ADD(t,e){if(t=o.__toPrimitive(t),e=o.__toPrimitive(e),"string"==typeof t)return"string"!=typeof e&&(e=e.toString()),t+e;if("string"==typeof e)return t.toString()+e;if(t=o.__toNumeric(t),e=o.__toNumeric(e),o.__isBigInt(t)&&o.__isBigInt(e))return o.add(t,e);if("number"==typeof t&&"number"==typeof e)return t+e;throw TypeError("Cannot mix BigInt and other types, use explicit conversions")}static LT(t,e){return o.__compare(t,e,0)}static LE(t,e){return o.__compare(t,e,1)}static GT(t,e){return o.__compare(t,e,2)}static GE(t,e){return o.__compare(t,e,3)}static EQ(t,e){for(;;){if(o.__isBigInt(t))return o.__isBigInt(e)?o.equal(t,e):o.EQ(e,t);if("number"==typeof t){if(o.__isBigInt(e))return o.__equalToNumber(e,t);if("object"!=typeof e)return t==e;e=o.__toPrimitive(e)}else if("string"==typeof t){if(o.__isBigInt(e))return null!==(t=o.__fromString(t))&&o.equal(t,e);if("object"!=typeof e)return t==e;e=o.__toPrimitive(e)}else if("boolean"==typeof t){if(o.__isBigInt(e))return o.__equalToNumber(e,+t);if("object"!=typeof e)return t==e;e=o.__toPrimitive(e)}else if("symbol"==typeof t){if(o.__isBigInt(e))return!1;if("object"!=typeof e)return t==e;e=o.__toPrimitive(e)}else{if("object"!=typeof t||"object"==typeof e&&e.constructor!==o)return t==e;t=o.__toPrimitive(t)}}}static NE(t,e){return!o.EQ(t,e)}static __zero(){return new o(0,!1)}static __oneDigit(t,e){let r=new o(1,e);return r.__setDigit(0,t),r}__copy(){let t=new o(this.length,this.sign);for(let e=0;e<this.length;e++)t[e]=this[e];return t}__trim(){let t=this.length,e=this[t-1];for(;0===e;)e=this[--t-1],this.pop();return 0===t&&(this.sign=!1),this}__initializeDigits(){for(let t=0;t<this.length;t++)this[t]=0}static __decideRounding(t,e,r,i){let n;if(0<e)return -1;if(0>e)n=-e-1;else{if(0===r)return -1;r--,i=t.__digit(r),n=29}let o=1<<n;if(0==(i&o))return -1;if(o-=1,0!=(i&o))return 1;for(;0<r;)if(r--,0!==t.__digit(r))return 1;return 0}static __fromDouble(t){o.__kBitConversionDouble[0]=t;let e=(2047&o.__kBitConversionInts[1]>>>20)-1023,r=(0|e/30)+1,i=new o(r,0>t),n=1048575&o.__kBitConversionInts[1]|1048576,s=o.__kBitConversionInts[0],u=e%30,a,l=0;if(20>u){let t=20-u;l=t+32,a=n>>>t,n=n<<32-t|s>>>t,s<<=32-t}else if(20===u)l=32,a=n,n=s,s=0;else{let t=u-20;l=32-t,a=n<<t|s>>>32-t,n=s<<t,s=0}i.__setDigit(r-1,a);for(let t=r-2;0<=t;t--)0<l?(l-=30,a=n>>>2,n=n<<30|s>>>2,s<<=30):a=0,i.__setDigit(t,a);return i.__trim()}static __isWhitespace(t){return!!(13>=t&&9<=t)||(159>=t?32==t:131071>=t?160==t||5760==t:196607>=t?10>=(t&=131071)||40==t||41==t||47==t||95==t||4096==t:65279==t)}static __fromString(t,e=0){let r=0,i=t.length,n=0;if(0===i)return o.__zero();let s=t.charCodeAt(n);for(;o.__isWhitespace(s);){if(++n===i)return o.__zero();s=t.charCodeAt(n)}if(43===s){if(++n===i)return null;s=t.charCodeAt(n),r=1}else if(45===s){if(++n===i)return null;s=t.charCodeAt(n),r=-1}if(0===e){if(e=10,48===s){if(++n===i)return o.__zero();if(88===(s=t.charCodeAt(n))||120===s){if(e=16,++n===i)return null;s=t.charCodeAt(n)}else if(79===s||111===s){if(e=8,++n===i)return null;s=t.charCodeAt(n)}else if(66===s||98===s){if(e=2,++n===i)return null;s=t.charCodeAt(n)}}}else if(16===e&&48===s){if(++n===i)return o.__zero();if(88===(s=t.charCodeAt(n))||120===s){if(++n===i)return null;s=t.charCodeAt(n)}}if(0!=r&&10!==e)return null;for(;48===s;){if(++n===i)return o.__zero();s=t.charCodeAt(n)}let u=i-n,a=o.__kMaxBitsPerChar[e],l=o.__kBitsPerCharTableMultiplier-1;if(u>0x40000000/a)return null;let f=a*u+l>>>o.__kBitsPerCharTableShift,h=new o(0|(f+29)/30,!1),c=10>e?e:10,_=10<e?e-10:0;if(0==(e&e-1)){a>>=o.__kBitsPerCharTableShift;let e=[],r=[],u=!1;do{let o=0,l=0;for(;;){let e;if(s-48>>>0<c)e=s-48;else if((32|s)-97>>>0<_)e=(32|s)-87;else{u=!0;break}if(l+=a,o=o<<a|e,++n===i){u=!0;break}if(s=t.charCodeAt(n),30<l+a)break}e.push(o),r.push(l)}while(!u)o.__fillFromParts(h,e,r)}else{h.__initializeDigits();let r=!1,u=0;do{let f=0,g=1;for(;;){let o;if(s-48>>>0<c)o=s-48;else if((32|s)-97>>>0<_)o=(32|s)-87;else{r=!0;break}let a=g*e;if(0x3fffffff<a)break;if(g=a,f=f*e+o,u++,++n===i){r=!0;break}s=t.charCodeAt(n)}let d=0|(a*u+(l=30*o.__kBitsPerCharTableMultiplier-1)>>>o.__kBitsPerCharTableShift)/30;h.__inplaceMultiplyAdd(g,f,d)}while(!r)}if(n!==i){if(!o.__isWhitespace(s))return null;for(n++;n<i;n++)if(s=t.charCodeAt(n),!o.__isWhitespace(s))return null}return h.sign=-1==r,h.__trim()}static __fillFromParts(t,e,r){let i=0,n=0,o=0;for(let s=e.length-1;0<=s;s--){let u=e[s],a=r[s];n|=u<<o,30===(o+=a)?(t.__setDigit(i++,n),o=0,n=0):30<o&&(t.__setDigit(i++,0x3fffffff&n),o-=30,n=u>>>a-o)}if(0!==n){if(i>=t.length)throw Error("implementation bug");t.__setDigit(i++,n)}for(;i<t.length;i++)t.__setDigit(i,0)}static __toStringBasePowerOfTwo(t,e){let r=t.length,i=e-1,n=i=(15&(i=(51&(i=(85&i>>>1)+(85&i))>>>2)+(51&i))>>>4)+(15&i),s=e-1,u=t.__digit(r-1),a=0|(30*r-o.__clz30(u)+n-1)/n;if(t.sign&&a++,0x10000000<a)throw Error("string too long");let l=Array(a),f=a-1,h=0,c=0;for(let e=0;e<r-1;e++){let r=t.__digit(e),i=(h|r<<c)&s;l[f--]=o.__kConversionChars[i];let u=n-c;for(h=r>>>u,c=30-u;c>=n;)l[f--]=o.__kConversionChars[h&s],h>>>=n,c-=n}let _=(h|u<<c)&s;for(l[f--]=o.__kConversionChars[_],h=u>>>n-c;0!==h;)l[f--]=o.__kConversionChars[h&s],h>>>=n;
1if(t.sign&&(l[f--]="-"),-1!=f)throw Error("implementation bug");return l.join("")}static __toStringGeneric(t,e,r){let i,n,s=t.length;if(0===s)return"";if(1===s){let i=t.__unsignedDigit(0).toString(e);return!1===r&&t.sign&&(i="-"+i),i}let u=30*s-o.__clz30(t.__digit(s-1)),a=o.__kMaxBitsPerChar[e]-1,l=u*o.__kBitsPerCharTableMultiplier;l+=a-1;let f=(l=0|l/a)+1>>1,h=o.exponentiate(o.__oneDigit(e,!1),o.__oneDigit(f,!1)),c=h.__unsignedDigit(0);if(1===h.length&&32767>=c){(i=new o(t.length,!1)).__initializeDigits();let r=0;for(let e=2*t.length-1;0<=e;e--){let n=r<<15|t.__halfDigit(e);i.__setHalfDigit(e,0|n/c),r=0|n%c}n=r.toString(e)}else{let r=o.__absoluteDivLarge(t,h,!0,!0);i=r.quotient;let s=r.remainder.__trim();n=o.__toStringGeneric(s,e,!0)}i.__trim();let _=o.__toStringGeneric(i,e,!0);for(;n.length<f;)n="0"+n;return!1===r&&t.sign&&(_="-"+_),_+n}static __unequalSign(t){return t?-1:1}static __absoluteGreater(t){return t?-1:1}static __absoluteLess(t){return t?1:-1}static __compareToBigInt(t,e){let r=t.sign;if(r!==e.sign)return o.__unequalSign(r);let i=o.__absoluteCompare(t,e);return 0<i?o.__absoluteGreater(r):0>i?o.__absoluteLess(r):0}static __compareToNumber(t,e){if(o.__isOneDigitInt(e)){let i=t.sign,n=0>e;if(i!==n)return o.__unequalSign(i);if(0===t.length){if(n)throw Error("implementation bug");return 0===e?0:-1}if(1<t.length)return o.__absoluteGreater(i);let s=r(e),u=t.__unsignedDigit(0);return u>s?o.__absoluteGreater(i):u<s?o.__absoluteLess(i):0}return o.__compareToDouble(t,e)}static __compareToDouble(t,e){if(e!=e)return e;if(e===1/0)return -1;if(e===-1/0)return 1;let r=t.sign;if(r!==0>e)return o.__unequalSign(r);if(0===e)throw Error("implementation bug: should be handled elsewhere");if(0===t.length)return -1;o.__kBitConversionDouble[0]=e;let i=2047&o.__kBitConversionInts[1]>>>20;if(2047==i)throw Error("implementation bug: handled elsewhere");let n=i-1023;if(0>n)return o.__absoluteGreater(r);let s=t.length,u=t.__digit(s-1),a=o.__clz30(u),l=30*s-a,f=n+1;if(l<f)return o.__absoluteLess(r);if(l>f)return o.__absoluteGreater(r);let h=1048576|1048575&o.__kBitConversionInts[1],c=o.__kBitConversionInts[0],_=29-a;if(_!==(0|(l-1)%30))throw Error("implementation bug");let g,d=0;if(20>_){let t=20-_;d=t+32,g=h>>>t,h=h<<32-t|c>>>t,c<<=32-t}else if(20===_)d=32,g=h,h=c,c=0;else{let t=_-20;d=32-t,g=h<<t|c>>>32-t,h=c<<t,c=0}if((u>>>=0)>(g>>>=0))return o.__absoluteGreater(r);if(u<g)return o.__absoluteLess(r);for(let e=s-2;0<=e;e--){0<d?(d-=30,g=h>>>2,h=h<<30|c>>>2,c<<=30):g=0;let i=t.__unsignedDigit(e);if(i>g)return o.__absoluteGreater(r);if(i<g)return o.__absoluteLess(r)}if(0!==h||0!==c){if(0===d)throw Error("implementation bug");return o.__absoluteLess(r)}return 0}static __equalToNumber(t,e){return o.__isOneDigitInt(e)?0===e?0===t.length:1===t.length&&t.sign===0>e&&t.__unsignedDigit(0)===r(e):0===o.__compareToDouble(t,e)}static __comparisonResultToBool(t,e){return 0===e?0>t:1===e?0>=t:2===e?0<t:3===e?0<=t:void 0}static __compare(t,e,r){if(t=o.__toPrimitive(t),e=o.__toPrimitive(e),"string"==typeof t&&"string"==typeof e)switch(r){case 0:return t<e;case 1:return t<=e;case 2:return t>e;case 3:return t>=e}if(o.__isBigInt(t)&&"string"==typeof e)return null!==(e=o.__fromString(e))&&o.__comparisonResultToBool(o.__compareToBigInt(t,e),r);if("string"==typeof t&&o.__isBigInt(e))return null!==(t=o.__fromString(t))&&o.__comparisonResultToBool(o.__compareToBigInt(t,e),r);if(t=o.__toNumeric(t),e=o.__toNumeric(e),o.__isBigInt(t)){if(o.__isBigInt(e))return o.__comparisonResultToBool(o.__compareToBigInt(t,e),r);if("number"!=typeof e)throw Error("implementation bug");return o.__comparisonResultToBool(o.__compareToNumber(t,e),r)}if("number"!=typeof t)throw Error("implementation bug");if(o.__isBigInt(e))return o.__comparisonResultToBool(o.__compareToNumber(e,t),2^r);if("number"!=typeof e)throw Error("implementation bug");return 0===r?t<e:1===r?t<=e:2===r?t>e:3===r?t>=e:void 0}__clzmsd(){return o.__clz30(this.__digit(this.length-1))}static __absoluteAdd(t,e,r){if(t.length<e.length)return o.__absoluteAdd(e,t,r);if(0===t.length)return t;if(0===e.length)return t.sign===r?t:o.unaryMinus(t);let i=t.length;(0===t.__clzmsd()||e.length===t.length&&0===e.__clzmsd())&&i++;let n=new o(i,r),s=0,u=0;for(;u<e.length;u++){let r=t.__digit(u)+e.__digit(u)+s;s=r>>>30,n.__setDigit(u,0x3fffffff&r)}for(;u<t.length;u++){let e=t.__digit(u)+s;s=e>>>30,n.__setDigit(u,0x3fffffff&e)}return u<n.length&&n.__setDigit(u,s),n.__trim()}static __absoluteSub(t,e,r){if(0===t.length)return t;if(0===e.length)return t.sign===r?t:o.unaryMinus(t);let i=new o(t.length,r),n=0,s=0;for(;s<e.length;s++){let r=t.__digit(s)-e.__digit(s)-n;n=1&r>>>30,i.__setDigit(s,0x3fffffff&r)}for(;s<t.length;s++){let e=t.__digit(s)-n;n=1&e>>>30,i.__setDigit(s,0x3fffffff&e)}return i.__trim()}static __absoluteAddOne(t,e,r=null){let i=t.length;null===r?r=new o(i,e):r.sign=e;let n=1;for(let e=0;e<i;e++){let i=t.__digit(e)+n;n=i>>>30,r.__setDigit(e,0x3fffffff&i)}return 0!=n&&r.__setDigitGrow(i,1),r}static __absoluteSubOne(t,e){let r=t.length,i=new o(e=e||r,!1),n=1;for(let e=0;e<r;e++){let r=t.__digit(e)-n;n=1&r>>>30,i.__setDigit(e,0x3fffffff&r)}if(0!=n)throw Error("implementation bug");for(let t=r;t<e;t++)i.__setDigit(t,0);return i}static __absoluteAnd(t,e,r=null){let i=t.length,n=e.length,s=n;if(i<n){s=i;let r=t,o=i;t=e,i=n,e=r,n=o}let u=s;null===r?r=new o(u,!1):u=r.length;let a=0;for(;a<s;a++)r.__setDigit(a,t.__digit(a)&e.__digit(a));for(;a<u;a++)r.__setDigit(a,0);return r}static __absoluteAndNot(t,e,r=null){let i=t.length,n=e.length,s=n;i<n&&(s=i);let u=i;null===r?r=new o(u,!1):u=r.length;let a=0;for(;a<s;a++)r.__setDigit(a,t.__digit(a)&~e.__digit(a));for(;a<i;a++)r.__setDigit(a,t.__digit(a));for(;a<u;a++)r.__setDigit(a,0);return r}static __absoluteOr(t,e,r=null){let i=t.length,n=e.length,s=n;if(i<n){s=i;let r=t,o=i;t=e,i=n,e=r,n=o}let u=i;null===r?r=new o(u,!1):u=r.length;let a=0;for(;a<s;a++)r.__setDigit(a,t.__digit(a)|e.__digit(a));for(;a<i;a++)r.__setDigit(a,t.__digit(a));for(;a<u;a++)r.__setDigit(a,0);return r}static __absoluteXor(t,e,r=null){let i=t.length,n=e.length,s=n;if(i<n){s=i;let r=t,o=i;t=e,i=n,e=r,n=o}let u=i;null===r?r=new o(u,!1):u=r.length;let a=0;for(;a<s;a++)r.__setDigit(a,t.__digit(a)^e.__digit(a));for(;a<i;a++)r.__setDigit(a,t.__digit(a));for(;a<u;a++)r.__setDigit(a,0);return r}static __absoluteCompare(t,e){let r=t.length-e.length;if(0!=r)return r;let i=t.length-1;for(;0<=i&&t.__digit(i)===e.__digit(i);)i--;return 0>i?0:t.__unsignedDigit(i)>e.__unsignedDigit(i)?1:-1}static __multiplyAccumulate(t,e,r,i){if(0===e)return;let n=32767&e,s=e>>>15,u=0,a=0;for(let e,l=0;l<t.length;l++,i++){e=r.__digit(i);let f=t.__digit(l),h=32767&f,c=f>>>15,_=o.__imul(h,n),g=o.__imul(h,s),d=o.__imul(c,n),m=o.__imul(c,s);e+=a+_+u,u=e>>>30,e&=0x3fffffff,e+=((32767&g)<<15)+((32767&d)<<15),u+=e>>>30,a=m+(g>>>15)+(d>>>15),r.__setDigit(i,0x3fffffff&e)}for(;0!=u||0!==a;i++){let t=r.__digit(i);t+=u+a,a=0,u=t>>>30,r.__setDigit(i,0x3fffffff&t)}}static __internalMultiplyAdd(t,e,r,i,n){let s=r,u=0;for(let r=0;r<i;r++){let i=t.__digit(r),a=o.__imul(32767&i,e),l=o.__imul(i>>>15,e),f=a+((32767&l)<<15)+u+s;s=f>>>30,u=l>>>15,n.__setDigit(r,0x3fffffff&f)}if(n.length>i)for(n.__setDigit(i++,s+u);i<n.length;)n.__setDigit(i++,0);else if(0!==s+u)throw Error("implementation bug")}__inplaceMultiplyAdd(t,e,r){r>this.length&&(r=this.length);let i=32767&t,n=t>>
1>15,s=0,u=e;for(let t=0;t<r;t++){let e=this.__digit(t),r=32767&e,a=e>>>15,l=o.__imul(r,i),f=o.__imul(r,n),h=o.__imul(a,i),c=o.__imul(a,n),_=u+l+s;s=_>>>30,_&=0x3fffffff,_+=((32767&f)<<15)+((32767&h)<<15),s+=_>>>30,u=c+(f>>>15)+(h>>>15),this.__setDigit(t,0x3fffffff&_)}if(0!=s||0!==u)throw Error("implementation bug")}static __absoluteDivSmall(t,e,r=null){null===r&&(r=new o(t.length,!1));let i=0;for(let n,o=2*t.length-1;0<=o;o-=2){let s=0|(n=(i<<15|t.__halfDigit(o))>>>0)/e,u=0|(n=((i=0|n%e)<<15|t.__halfDigit(o-1))>>>0)/e;i=0|n%e,r.__setDigit(o>>>1,s<<15|u)}return r}static __absoluteModSmall(t,e){let r=0;for(let i=2*t.length-1;0<=i;i--)r=0|((r<<15|t.__halfDigit(i))>>>0)%e;return r}static __absoluteDivLarge(t,e,r,i){let n=e.__halfDigitLength(),s=e.length,u=t.__halfDigitLength()-n,a=null;r&&(a=new o(u+2>>>1,!1)).__initializeDigits();let l=new o(n+2>>>1,!1);l.__initializeDigits();let f=o.__clz15(e.__halfDigit(n-1));0<f&&(e=o.__specialLeftShift(e,f,0));let h=o.__specialLeftShift(t,f,1),c=e.__halfDigit(n-1),_=0;for(let t,i=u;0<=i;i--){t=32767;let u=h.__halfDigit(i+n);if(u!==c){let r=(u<<15|h.__halfDigit(i+n-1))>>>0;t=0|r/c;let s=0|r%c,a=e.__halfDigit(n-2),l=h.__halfDigit(i+n-2);for(;o.__imul(t,a)>>>0>(s<<16|l)>>>0&&(t--,!(32767<(s+=c))););}o.__internalMultiplyAdd(e,t,0,s,l);let f=h.__inplaceSub(l,i,n+1);0!==f&&(f=h.__inplaceAdd(e,i,n),h.__setHalfDigit(i+n,32767&h.__halfDigit(i+n)+f),t--),r&&(1&i?_=t<<15:a.__setDigit(i>>>1,_|t))}if(i)return h.__inplaceRightShift(f),r?{quotient:a,remainder:h}:h;if(r)return a;throw Error("unreachable")}static __clz15(t){return o.__clz30(t)-15}__inplaceAdd(t,e,r){let i=0;for(let n=0;n<r;n++){let r=this.__halfDigit(e+n)+t.__halfDigit(n)+i;i=r>>>15,this.__setHalfDigit(e+n,32767&r)}return i}__inplaceSub(t,e,r){let i=0;if(1&e){e>>=1;let n=this.__digit(e),o=32767&n,s=0;for(;s<r-1>>>1;s++){let r=t.__digit(s),u=(n>>>15)-(32767&r)-i;i=1&u>>>15,this.__setDigit(e+s,(32767&u)<<15|32767&o),i=1&(o=(32767&(n=this.__digit(e+s+1)))-(r>>>15)-i)>>>15}let u=t.__digit(s),a=(n>>>15)-(32767&u)-i;if(i=1&a>>>15,this.__setDigit(e+s,(32767&a)<<15|32767&o),e+s+1>=this.length)throw RangeError("out of bounds");0==(1&r)&&(i=1&(o=(32767&(n=this.__digit(e+s+1)))-(u>>>15)-i)>>>15,this.__setDigit(e+t.length,0x3fff8000&n|32767&o))}else{e>>=1;let n=0;for(;n<t.length-1;n++){let r=this.__digit(e+n),o=t.__digit(n),s=(32767&r)-(32767&o)-i,u=(r>>>15)-(o>>>15)-(i=1&s>>>15);i=1&u>>>15,this.__setDigit(e+n,(32767&u)<<15|32767&s)}let o=this.__digit(e+n),s=t.__digit(n),u=(32767&o)-(32767&s)-i;i=1&u>>>15;let a=0;0==(1&r)&&(i=1&(a=(o>>>15)-(s>>>15)-i)>>>15),this.__setDigit(e+n,(32767&a)<<15|32767&u)}return i}__inplaceRightShift(t){if(0===t)return;let e=this.__digit(0)>>>t,r=this.length-1;for(let i=0;i<r;i++){let r=this.__digit(i+1);this.__setDigit(i,0x3fffffff&r<<30-t|e),e=r>>>t}this.__setDigit(r,e)}static __specialLeftShift(t,e,r){let i=t.length,n=new o(i+r,!1);if(0===e){for(let e=0;e<i;e++)n.__setDigit(e,t.__digit(e));return 0<r&&n.__setDigit(i,0),n}let s=0;for(let r=0;r<i;r++){let i=t.__digit(r);n.__setDigit(r,0x3fffffff&i<<e|s),s=i>>>30-e}return 0<r&&n.__setDigit(i,s),n}static __leftShiftByAbsolute(t,e){let r=o.__toShiftAmount(e);if(0>r)throw RangeError("BigInt too big");let i=0|r/30,n=r%30,s=t.length,u=0!==n&&0!=t.__digit(s-1)>>>30-n,a=s+i+ +!!u,l=new o(a,t.sign);if(0===n){let e=0;for(;e<i;e++)l.__setDigit(e,0);for(;e<a;e++)l.__setDigit(e,t.__digit(e-i))}else{let e=0;for(let t=0;t<i;t++)l.__setDigit(t,0);for(let r=0;r<s;r++){let o=t.__digit(r);l.__setDigit(r+i,0x3fffffff&o<<n|e),e=o>>>30-n}if(u)l.__setDigit(s+i,e);else if(0!==e)throw Error("implementation bug")}return l.__trim()}static __rightShiftByAbsolute(t,e){let r=t.length,i=t.sign,n=o.__toShiftAmount(e);if(0>n)return o.__rightShiftByMaximum(i);let s=0|n/30,u=n%30,a=r-s;if(0>=a)return o.__rightShiftByMaximum(i);let l=!1;if(i){if(0!=(t.__digit(s)&(1<<u)-1))l=!0;else for(let e=0;e<s;e++)if(0!==t.__digit(e)){l=!0;break}}l&&0===u&&0==~t.__digit(r-1)&&a++;let f=new o(a,i);if(0===u){f.__setDigit(a-1,0);for(let e=s;e<r;e++)f.__setDigit(e-s,t.__digit(e))}else{let e=t.__digit(s)>>>u,i=r-s-1;for(let r=0;r<i;r++){let i=t.__digit(r+s+1);f.__setDigit(r,0x3fffffff&i<<30-u|e),e=i>>>u}f.__setDigit(i,e)}return l&&(f=o.__absoluteAddOne(f,!0,f)),f.__trim()}
1static __rightShiftByMaximum(t){return t?o.__oneDigit(1,!0):o.__zero()}static __toShiftAmount(t){if(1<t.length)return -1;let e=t.__unsignedDigit(0);return e>o.__kMaxLengthBits?-1:e}static __toPrimitive(t,e="default"){if("object"!=typeof t||t.constructor===o)return t;if("u">typeof Symbol&&"symbol"==typeof Symbol.toPrimitive){let r=t[Symbol.toPrimitive];if(r){let t=r(e);if("object"!=typeof t)return t;throw TypeError("Cannot convert object to primitive value")}}let r=t.valueOf;if(r){let e=r.call(t);if("object"!=typeof e)return e}let i=t.toString;if(i){let e=i.call(t);if("object"!=typeof e)return e}throw TypeError("Cannot convert object to primitive value")}static __toNumeric(t){return o.__isBigInt(t)?t:+t}static __isBigInt(t){return"object"==typeof t&&null!==t&&t.constructor===o}static __truncateToNBits(t,e){let r=0|(t+29)/30,i=new o(r,e.sign),n=r-1;for(let t=0;t<n;t++)i.__setDigit(t,e.__digit(t));let s=e.__digit(n);if(0!=t%30){let e=32-t%30;s=s<<e>>>e}return i.__setDigit(n,s),i.__trim()}static __truncateAndSubFromPowerOfTwo(t,e,r){let i;var n=Math.min;let s=0|(t+29)/30,u=new o(s,r),a=0,l=s-1,f=0;for(let t=n(l,e.length);a<t;a++){let t=0-e.__digit(a)-f;f=1&t>>>30,u.__setDigit(a,0x3fffffff&t)}for(;a<l;a++)u.__setDigit(a,0x3fffffff&-f);let h=l<e.length?e.__digit(l):0,c=t%30;if(0==c)i=0-h-f&0x3fffffff;else{let t=32-c;h=h<<t>>>t;let e=1<<32-t;i=e-h-f&e-1}return u.__setDigit(l,i),u.__trim()}__digit(t){return this[t]}__unsignedDigit(t){return this[t]>>>0}__setDigit(t,e){this[t]=0|e}__setDigitGrow(t,e){this[t]=0|e}__halfDigitLength(){let t=this.length;return 32767>=this.__unsignedDigit(t-1)?2*t-1:2*t}__halfDigit(t){return 32767&this[t>>>1]>>>15*(1&t)}__setHalfDigit(t,e){let r=t>>>1,i=this.__digit(r);this.__setDigit(r,1&t?32767&i|e<<15:0x3fff8000&i|32767&e)}static __digitPow(t,e){let r=1;for(;0<e;)1&e&&(r*=t),e>>>=1,t*=t;return r}static __isOneDigitInt(t){return(0x3fffffff&t)===t}}
1return o.__kMaxLength=0x2000000,o.__kMaxLengthBits=o.__kMaxLength<<5,o.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],o.__kBitsPerCharTableShift=5,o.__kBitsPerCharTableMultiplier=1<<o.__kBitsPerCharTableShift,o.__kConversionChars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],o.__kBitConversionBuffer=new ArrayBuffer(8),o.__kBitConversionDouble=new Float64Array(o.__kBitConversionBuffer),o.__kBitConversionInts=new Int32Array(o.__kBitConversionBuffer),o.__clz30=e?function(t){return e(t)-2}:function(t){var e=Math.LN2,r=Math.log;return 0===t?30:0|29-(0|r(t>>>0)/e)},o.__imul=t||function(t,e){return 0|t*e},o}()},981004,(t,e,r)=>{"use strict";function i(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(r,"__esModule",{value:!0});var n,o=i(t.r(477912)),s=i(t.r(699247)),u=i(t.r(651655)),a=i(t.r(142361)),l=i(t.r(983607)),f=t.r(334860),h=t.r(47771);function c(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),t}function g(){return(g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t}).apply(this,arguments)}function d(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(n=r.ChainId||(r.ChainId={}))[n.BSC=56]="BSC",n[n.OPBNB=204]="OPBNB";var m,p,b,v,w,y=[r.ChainId.BSC,r.ChainId.OPBNB];
1(m=r.NativeCurrencyName||(r.NativeCurrencyName={})).BSC="BNB",m.OPBNB="BNB";var E,N,A=((p={})[r.ChainId.BSC]="0xF4C8E32EaDEC4BFe97E0F595AdD0f4450a863a11",p[r.ChainId.OPBNB]="0x9d94A7fF461e83F161c8c040E78557e31d8Cba72",p),S=((b={})[r.ChainId.BSC]="0xAFD89d21BdB66d00817d4153E055830B1c2B3970",b[r.ChainId.OPBNB]="0xFC1bC666A98703505534477E651A2470508C99A4",b),x=((v={})[r.ChainId.BSC]="0xd4ae6eca985340dd434d38f470accce4dc78d109",v[r.ChainId.OPBNB]="0x4E02acCD83C09EaF2ff4b8346ED6a33A7a369b47",v),D=((w={})[r.ChainId.BSC]={factoryAddress:"0x306F06C147f064A010530292A1EB6737c3e378e4",multicallAddress:"0x8089ED19D7CE5132003B9b135Bb4d8c3F36e3168",quoterAddress:"0xeA68020D6A9532EeC42D4dB0f92B83580c39b2cA",nonfungiblePositionManagerAddress:"0xa51ADb08Cbe6Ae398046A23bec013979816B77Ab",routerAddress:"0x327Dd3208f0bCF590A66110aCB6e5e6941A4EfA0"},w[r.ChainId.OPBNB]={factoryAddress:"0x9e92b57bff702530A0C3bE9ff5fE2c24F95A91F6",multicallAddress:"0x2308BD5B1f66C32CC482254B4EE99cc7708d2e41",quoterAddress:"0xF15B76244C184b4CCD37F419e0F4591B3FAB9290",nonfungiblePositionManagerAddress:"0x8089ED19D7CE5132003B9b135Bb4d8c3F36e3168",routerAddress:"0x9356934eb3fBAE6274Eae6EfC905B292F04f0122"},w),B=g({},y.reduce(function(t,e){return t[e]=D[e].factoryAddress,t},{})),C=g({},y.reduce(function(t,e){return t[e]=D[e].multicallAddress,t},{})),I=g({},y.reduce(function(t,e){return t[e]=D[e].quoterAddress,t},{})),O=g({},y.reduce(function(t,e){return t[e]=D[e].routerAddress,t},{})),R=g({},y.reduce(function(t,e){var r=D[e].nonfungiblePositionManagerAddress;return r&&(t[e]=r),t},{}));(E=r.TradeType||(r.TradeType={}))[E.EXACT_INPUT=0]="EXACT_INPUT",E[E.EXACT_OUTPUT=1]="EXACT_OUTPUT",(N=r.Rounding||(r.Rounding={}))[N.ROUND_DOWN=0]="ROUND_DOWN",N[N.ROUND_HALF_UP=1]="ROUND_HALF_UP",N[N.ROUND_UP=2]="ROUND_UP";var T,P,U=o.BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),F=l(u),k=l(a),M=((T={})[r.Rounding.ROUND_DOWN]=F.ROUND_DOWN,T[r.Rounding.ROUND_HALF_UP]=F.ROUND_HALF_UP,T[r.Rounding.ROUND_UP]=F.ROUND_UP,T),L=((P={})[r.Rounding.ROUND_DOWN]=0,P[r.Rounding.ROUND_HALF_UP]=1,P[r.Rounding.ROUND_UP]=3,P),z=function(){function t(t,e){void 0===e&&(e=o.BigInt(1)),this.numerator=o.BigInt(t),this.denominator=o.BigInt(e)}t.tryParseFraction=function(e){if(e instanceof o||"number"==typeof e||"string"==typeof e)return new t(e);if("numerator"in e&&"denominator"in e)return e;throw Error("Could not parse fraction")};var e=t.prototype;return e.invert=function(){return new t(this.denominator,this.numerator)},e.add=function(e){var r=t.tryParseFraction(e);return o.equal(this.denominator,r.denominator)?new t(o.add(this.numerator,r.numerator),this.denominator):new t(o.add(o.multiply(this.numerator,r.denominator),o.multiply(r.numerator,this.denominator)),o.multiply(this.denominator,r.denominator))},e.subtract=function(e){var r=t.tryParseFraction(e);return o.equal(this.denominator,r.denominator)?new t(o.subtract(this.numerator,r.numerator),this.denominator):new t(o.subtract(o.multiply(this.numerator,r.denominator),o.multiply(r.numerator,this.denominator)),o.multiply(this.denominator,r.denominator))},e.lessThan=function(e){var r=t.tryParseFraction(e);return o.lessThan(o.multiply(this.numerator,r.denominator),o.multiply(r.numerator,this.denominator))},e.equalTo=function(e){var r=t.tryParseFraction(e);return o.equal(o.multiply(this.numerator,r.denominator),o.multiply(r.numerator,this.denominator))},e.greaterThan=function(e){var r=t.tryParseFraction(e);return o.greaterThan(o.multiply(this.numerator,r.denominator),o.multiply(r.numerator,this.denominator))},e.multiply=function(e){var r=t.tryParseFraction(e);return new t(o.multiply(this.numerator,r.numerator),o.multiply(this.denominator,r.denominator))},e.divide=function(e){var r=t.tryParseFraction(e);return new t(o.multiply(this.numerator,r.denominator),o.multiply(this.denominator,r.numerator))},e.toSignificant=function(t,e,i){void 0===e&&(e={groupSeparator:""}),void 0===i&&(i=r.Rounding.ROUND_HALF_UP),Number.isInteger(t)||s(!1),t>0||s(!1),F.set({precision:t+1,rounding:M[i]});var n=new F(this.numerator.toString()).div(this.denominator.toString()).toSignificantDigits(t);return n.toFormat(n.decimalPlaces(),e)}
1,e.toFixed=function(t,e,i){return void 0===e&&(e={groupSeparator:""}),void 0===i&&(i=r.Rounding.ROUND_HALF_UP),Number.isInteger(t)||s(!1),t>=0||s(!1),k.DP=t,k.RM=L[i],new k(this.numerator.toString()).div(this.denominator.toString()).toFormat(t,e)},_(t,[{key:"quotient",get:function(){return o.divide(this.numerator,this.denominator)}},{key:"remainder",get:function(){return new t(o.remainder(this.numerator,this.denominator),this.denominator)}},{key:"asFraction",get:function(){return new t(this.numerator,this.denominator)}}]),t}(),q=l(a),G=function(t){function e(e,r,i){var n;return n=t.call(this,r,i)||this,o.lessThanOrEqual(n.quotient,U)||s(!1),n.currency=e,n.decimalScale=o.exponentiate(o.BigInt(10),o.BigInt(e.decimals)),n}d(e,t),e.fromRawAmount=function(t,r){return new e(t,r)},e.fromFractionalAmount=function(t,r,i){return new e(t,r,i)};var i=e.prototype;return i.add=function(r){this.currency.equals(r.currency)||s(!1);var i=t.prototype.add.call(this,r);return e.fromFractionalAmount(this.currency,i.numerator,i.denominator)},i.subtract=function(r){this.currency.equals(r.currency)||s(!1);var i=t.prototype.subtract.call(this,r);return e.fromFractionalAmount(this.currency,i.numerator,i.denominator)},i.multiply=function(r){var i=t.prototype.multiply.call(this,r);return e.fromFractionalAmount(this.currency,i.numerator,i.denominator)},i.divide=function(r){var i=t.prototype.divide.call(this,r);return e.fromFractionalAmount(this.currency,i.numerator,i.denominator)},i.toSignificant=function(e,i,n){return void 0===e&&(e=6),void 0===n&&(n=r.Rounding.ROUND_DOWN),t.prototype.divide.call(this,this.decimalScale).toSignificant(e,i,n)},i.toFixed=function(e,i,n){return void 0===e&&(e=this.currency.decimals),void 0===n&&(n=r.Rounding.ROUND_DOWN),e<=this.currency.decimals||s(!1),t.prototype.divide.call(this,this.decimalScale).toFixed(e,i,n)},i.toExact=function(t){return void 0===t&&(t={groupSeparator:""}),q.DP=this.currency.decimals,new q(this.quotient.toString()).div(this.decimalScale.toString()).toFormat(t)},_(e,[{key:"wrapped",get:function(){return this.currency.isToken?this:e.fromFractionalAmount(this.currency.wrapped,this.numerator,this.denominator)}}]),e}(z),j=new z(o.BigInt(100));function H(t){return new W(t.numerator,t.denominator)}var W=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).isPercent=!0,e}d(e,t);var r=e.prototype;return r.add=function(e){return H(t.prototype.add.call(this,e))},r.subtract=function(e){return H(t.prototype.subtract.call(this,e))},r.multiply=function(e){return H(t.prototype.multiply.call(this,e))},r.divide=function(e){return H(t.prototype.divide.call(this,e))},r.toSignificant=function(e,r,i){return void 0===e&&(e=5),t.prototype.multiply.call(this,j).toSignificant(e,r,i)},r.toFixed=function(e,r,i){return void 0===e&&(e=2),t.prototype.multiply.call(this,j).toFixed(e,r,i)},e}(z),V=function(t){function e(){for(var e,r,i,n,s,u=arguments.length,a=Array(u),l=0;l<u;l++)a[l]=arguments[l];if(4===a.length)r=a[0],i=a[1],n=a[2],s=a[3];else{var f=a[0].quoteAmount.divide(a[0].baseAmount),h=[a[0].baseAmount.currency,a[0].quoteAmount.currency,f.denominator,f.numerator];r=h[0],i=h[1],n=h[2],s=h[3]}return(e=t.call(this,s,n)||this).baseCurrency=r,e.quoteCurrency=i,e.scalar=new z(o.exponentiate(o.BigInt(10),o.BigInt(r.decimals)),o.exponentiate(o.BigInt(10),o.BigInt(i.decimals))),e}d(e,t);var r=e.prototype;return r.invert=function(){return new e(this.quoteCurrency,this.baseCurrency,this.numerator,this.denominator)},r.multiply=function(r){this.quoteCurrency.equals(r.baseCurrency)||s(!1);var i=t.prototype.multiply.call(this,r);return new e(this.baseCurrency,r.quoteCurrency,i.denominator,i.numerator)},r.quote=function(e){e.currency.equals(this.baseCurrency)||s(!1);var r=t.prototype.multiply.call(this,e);return G.fromFractionalAmount(this.quoteCurrency,r.numerator,r.denominator)},r.toSignificant=function(t,e,r){return void 0===t&&(t=6),this.adjustedForDecimals.toSignificant(t,e,r)},r.toFixed=function(t,e,r){return void 0===t&&(t=4),this.adjustedForDecimals.toFixed(t,e,r)},_(e,[{key:"adjustedForDecimals",get:function(){return t.prototype.multiply.call(this,this.scalar)}}]),e}(z),X=function(t,e,r,i){Number.isSafeInteger(t)||s(!1),e>=0&&e<255&&Number.isInteger(e)||s(!1),this.chainId=t,this.decimals=e,this.symbol=r,this.name=i},J=function(t){function e(){var e;return(e=t.apply(this,arguments)||this).isNative=!0,e.isToken=!1,e}return d(e,t),e}(X);function $(t){try{return h.getAddress(t)}catch(e){throw Error(t+" is not a valid address.")}}var Z,K=/^0x[0-9a-fA-F]{40}$/,Q=function(t){function e(e,r,i,n,o,u,a,l){var h;
1return(h=t.call(this,e,i,n,o)||this).isNative=!1,h.isToken=!0,h.address=u?function(t){if(K.test(t))return t;throw Error(t+" is not a valid address.")}(r):$(r),a&&(a.gte(f.BigNumber.from(0))||s(!1)),l&&(l.gte(f.BigNumber.from(0))||s(!1)),h.buyFeeBps=a,h.sellFeeBps=l,h}d(e,t);var r=e.prototype;return r.equals=function(t){return t.isToken&&this.chainId===t.chainId&&this.address.toLowerCase()===t.address.toLowerCase()},r.sortsBefore=function(t){return this.chainId!==t.chainId&&s(!1),this.address.toLowerCase()===t.address.toLowerCase()&&s(!1),this.address.toLowerCase()<t.address.toLowerCase()},_(e,[{key:"wrapped",get:function(){return this}}]),e}(X),Y=((Z={})[r.ChainId.BSC]=new Q(r.ChainId.BSC,"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",18,"WBNB","Wrapped BNB"),Z[r.ChainId.OPBNB]=new Q(r.ChainId.OPBNB,"0x4200000000000000000000000000000000000006",18,"WBNB","Wrapped BNB"),Z),tt=function(t){function e(e){return t.call(this,e,18,"BNB","Binance Coin")||this}return d(e,t),e.onChain=function(t){var r;return null!=(r=this._etherCache[t])?r:this._etherCache[t]=new e(t)},e.prototype.equals=function(t){return t.isNative&&t.chainId===this.chainId},_(e,[{key:"wrapped",get:function(){var t=Y[this.chainId];return t||s(!1),t}}]),e}(J);tt._etherCache={};var te=o.BigInt(Number.MAX_SAFE_INTEGER),tr=o.BigInt(0),ti=o.BigInt(1),tn=o.BigInt(2);r.JSBI=o,r.BNB=tt,r.CHAIN_TO_ADDRESSES_MAP=D,r.CurrencyAmount=G,r.FUSION_FACTORY_ADDRESSES=B,r.FUSION_QUOTER_ADDRESSES=I,r.FUSION_ROUTER_ADDRESSES=O,r.Fraction=z,r.MULTICALL_ADDRESSES=C,r.MaxUint256=U,r.NONFUNGIBLE_POSITION_MANAGER_ADDRESSES=R,r.NativeCurrency=J,r.Percent=W,r.Price=V,r.ROUTER_V1_ADDRESSES=function(t){return D[t].routerAddress},r.SUPPORTED_CHAINS=y,r.THE_ADDRESSES=A,r.Token=Q,r.V1_FACTORY_ADDRESSES=S,r.V1_ROUTER_ADDRESSES=x,r.WBNB=Y,r.computePriceImpact=function(t,e,r){var i=t.quote(e),n=i.subtract(r).divide(i);return new W(n.numerator,n.denominator)},r.sortedInsert=function(t,e,r,i){if(r>0||s(!1),t.length<=r||s(!1),0===t.length)return t.push(e),null;var n=t.length===r;if(n&&0>=i(t[t.length-1],e))return e;for(var o=0,u=t.length;o<u;){var a=o+u>>>1;0>=i(t[a],e)?o=a+1:u=a}return t.splice(o,0,e),n?t.pop():null},r.sqrt=function(t){var e,r;if(o.greaterThanOrEqual(t,tr)||s(!1),o.lessThan(t,te))return o.BigInt(Math.floor(Math.sqrt(o.toNumber(t))));for(e=t,r=o.add(o.divide(t,tn),ti);o.lessThan(r,e);)e=r,r=o.divide(o.add(o.divide(t,r),r),tn);return e},r.validateAndParseAddress=$},520599,(t,e,r)=>{"use strict";t.i(247167),e.exports=t.r(981004)},699247,(t,e,r)=>{"use strict";t.i(247167),e.exports=function(t,e){if(!t)throw Error("Invariant failed")}},983607,(t,e,r)=>{e.exports&&(e.exports=function(t){return t.prototype.toFormat=function(t,e,r){if(!this.e&&0!==this.e)return this.toString();var i,n,o,s,u,a,l,f,h,c,_,g,d,m,p,b=this.format||{},v=this.constructor.format||{};if(t!=u?"object"==typeof t?(r=t,t=u):e!=u?"object"==typeof e?(r=e,e=u):"object"!=typeof r&&(r={}):r={}:r={},f=(i=this.toFixed(t,e).split("."))[0],h=i[1],a=(l=this.s<0?f.slice(1):f).length,(c=r.decimalSeparator)==u&&(c=b.decimalSeparator)==u&&(c=v.decimalSeparator)==u&&(c="."),(_=r.groupSeparator)==u&&(_=b.groupSeparator)==u&&(_=v.groupSeparator),_&&((g=r.groupSize)==u&&(g=b.groupSize)==u&&(g=v.groupSize)==u&&(g=0),(d=r.secondaryGroupSize)==u&&(d=b.secondaryGroupSize)==u&&(d=v.secondaryGroupSize)==u&&(d=0),d?(n=+d,a-=o=+g):(n=+g,o=+d),n>0&&a>0)){for(s=a%n||n,f=l.substr(0,s);s<a;s+=n)f+=_+l.substr(s,n);o>0&&(f+=_+l.slice(s)),this.s<0&&(f="-"+f)}return h?((m=r.fractionGroupSeparator)==u&&(m=b.fractionGroupSeparator)==u&&(m=v.fractionGroupSeparator),m&&((p=r.fractionGroupSize)==u&&(p=b.fractionGroupSize)==u&&(p=v.fractionGroupSize)==u&&(p=0),(p*=1)&&(h=h.replace(RegExp("\\d{"+p+"}\\B","g"),"$&"+m))),f+c+h):f},t.format={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:"",fractionGroupSize:0},t})}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.