@wormhole-foundation/wormhole-connect 1.1.3-beta.2-development → 1.1.3-beta.3-development

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/assets/{ccip-CuVLQT8d.js → ccip-DIYM0gy6.js} +1 -1
  2. package/dist/assets/{evm-Dc3QdSOA.js → evm-Y-JIomWz.js} +4 -4
  3. package/dist/assets/{index-EVjhBEXw.js → index--B3_-qch.js} +2 -2
  4. package/dist/assets/{index-BJGeA_ds.js → index-C1YrzzPV.js} +1 -1
  5. package/dist/assets/{index-BIssGeVa.js → index-sR4FP7OJ.js} +1 -1
  6. package/dist/assets/{index.es-BObgTr8H.js → index.es-CRUh0v3x.js} +2 -2
  7. package/dist/main.js +4 -4
  8. package/lib/{algorand-CLoiUadv.mjs → algorand-D_QRI-bg.mjs} +3 -3
  9. package/lib/{algorand-BAFj4ZGa.js → algorand-wRfrbOd6.js} +1 -1
  10. package/lib/{aptos-C45UOjMk.mjs → aptos-39dGPUrb.mjs} +3 -3
  11. package/lib/{aptos-CHkHb9Wn.js → aptos-BYA8pulJ.js} +1 -1
  12. package/lib/{aptos-B0EUzhLn.mjs → aptos-D8si2udZ.mjs} +1 -1
  13. package/lib/{aptos-DLBpR9Uw.js → aptos-j2PEnEen.js} +2 -2
  14. package/lib/{ccip-D6nl66Of.mjs → ccip-CAsSiarY.mjs} +1 -1
  15. package/lib/{ccip-DwcFzOh0.js → ccip-D2DyQ2dl.js} +1 -1
  16. package/lib/{cosmos-BEyKk7pN.js → cosmos--SblITfP.js} +11 -11
  17. package/lib/{cosmos-Bc34YeqV.mjs → cosmos-5QBTeSdf.mjs} +5 -5
  18. package/lib/{cosmwasm-BBIEjp_6.mjs → cosmwasm-BvDytCXd.mjs} +3545 -3545
  19. package/lib/{cosmwasm-DPmjLuio.js → cosmwasm-qpOclFcW.js} +3 -3
  20. package/lib/{events-D9h1HjEa.mjs → events-Cq1VEeNf.mjs} +1 -1
  21. package/lib/{events-B2ZyXE4l.js → events-DSOd4gvB.js} +1 -1
  22. package/lib/{evm--fmrvZiP.js → evm-C-UXATlx.js} +4 -4
  23. package/lib/{evm-sG77B7Ln.mjs → evm-CEwMJ8_A.mjs} +6 -6
  24. package/lib/{evm-D6zAQuRU.js → evm-DG7I4Frq.js} +1 -1
  25. package/lib/{evm-DsRkB-Yc.mjs → evm-DMvzqxcS.mjs} +7 -7
  26. package/lib/{index-DinZIMWa.mjs → index-74c6g32z.mjs} +225 -225
  27. package/lib/{index-DWJ5r15M.mjs → index-7zA9RXv7.mjs} +19853 -19856
  28. package/lib/{index-Cpjj11xV.mjs → index-B8T2NaoX.mjs} +45 -45
  29. package/lib/{index-DPtc-UxP.mjs → index-B8ULFzIF.mjs} +6 -6
  30. package/lib/{index-B7Optu6I.js → index-B9Hz7aqe.js} +1 -1
  31. package/lib/{index-jydTi-hN.mjs → index-BHWO1nl8.mjs} +2 -2
  32. package/lib/{index-ByOoS9NO.js → index-BLp_eTrc.js} +1 -1
  33. package/lib/{index-CvdPwRnL.js → index-BQtbCwXd.js} +1 -1
  34. package/lib/{index-CEovIwuS.js → index-BU_DiszY.js} +92 -92
  35. package/lib/{index-XMIcJZyr.js → index-BbxY_HAX.js} +16 -16
  36. package/lib/{index-CY9fp7fB.mjs → index-Beu3v0JF.mjs} +15 -15
  37. package/lib/{index-D4u8CUKC.mjs → index-BhXfWaSE.mjs} +3 -3
  38. package/lib/{index-B9gBvn5a.mjs → index-BjeY05EL.mjs} +801 -802
  39. package/lib/{index-BT10pzLw.mjs → index-BoUKkFOJ.mjs} +1 -1
  40. package/lib/{index-CVaT6qZW.js → index-C6PC2n3L.js} +1 -1
  41. package/lib/{index-BYnoX4S7.mjs → index-CAqvcaXu.mjs} +15 -15
  42. package/lib/{index-DGq7mQyb.mjs → index-CDHEzcRs.mjs} +10 -10
  43. package/lib/{index-U1A3Ir4_.js → index-CFV9DDDi.js} +1 -1
  44. package/lib/{index-CQY-qyc8.mjs → index-CHNFj7US.mjs} +2 -2
  45. package/lib/{index-DrDopLyp.mjs → index-CIbRMQ53.mjs} +2 -2
  46. package/lib/{index-BFWViYNu.mjs → index-COFRyIUZ.mjs} +7 -7
  47. package/lib/{index-BJ9DGQK7.js → index-CREWpYSc.js} +1 -1
  48. package/lib/{index-CL7evJIB.js → index-CV_U2daN.js} +1 -1
  49. package/lib/{index-CNe0Pean.js → index-CxgmuQ6m.js} +1 -1
  50. package/lib/{index-DugvE6YD.mjs → index-D-p3qNTZ.mjs} +30 -30
  51. package/lib/{index-Cb5M1Ban.mjs → index-D9X9k3PB.mjs} +1 -1
  52. package/lib/{index-IC9ubiMJ.mjs → index-DJghGbqc.mjs} +3 -3
  53. package/lib/{index-Bx7B-3Uk.js → index-DP78DD_7.js} +1 -1
  54. package/lib/{index-OldEBluq.js → index-D_iRGURG.js} +1 -1
  55. package/lib/{index-PcZU5a1K.js → index-DcOE-jqI.js} +1 -1
  56. package/lib/{index-BO1rJrRP.mjs → index-DefP3AL4.mjs} +9 -9
  57. package/lib/{index-C96ibHXm.js → index-DgKzux63.js} +1 -1
  58. package/lib/{index-D_3BlFSH.js → index-DhjRrhjF.js} +1 -1
  59. package/lib/{index-CyPbCf5y.js → index-DhvcbRay.js} +1 -1
  60. package/lib/{index-C010ECjb.js → index-DjAPVIrd.js} +1 -1
  61. package/lib/{index-CaQpF1dj.js → index-Dpwwqt_Y.js} +1 -1
  62. package/lib/{index-Bl8-vKcf.js → index-DqRdsXVl.js} +1 -1
  63. package/lib/{index-jgZQQCfy.mjs → index-DuVadmtW.mjs} +18 -18
  64. package/lib/{index--8OR2IWG.mjs → index-SSdHQ2f1.mjs} +2 -2
  65. package/lib/{index-B_vsKDJm.js → index-X48SyxVx.js} +1 -1
  66. package/lib/{index-DdhKN5Tn.mjs → index-evqr6zVJ.mjs} +2 -2
  67. package/lib/{index-BxxpLnjr.mjs → index-hY0mf_OS.mjs} +26 -26
  68. package/lib/{index-mE3wnazE.js → index-oE-cAvjh.js} +1 -1
  69. package/lib/{index-Ci0O-yiU.js → index-oRg2LZn2.js} +1 -1
  70. package/lib/{index-D0RnzOoN.js → index-pIxA5tC9.js} +1 -1
  71. package/lib/{index-CnElB0dt.mjs → index-vZrnrwrk.mjs} +2 -2
  72. package/lib/{index.es-DbGYkQrs.js → index.es-CwS3KgtR.js} +2 -2
  73. package/lib/{index.es-DV6jIgX3.mjs → index.es-De3BB9Gs.mjs} +5 -5
  74. package/lib/index.js +1 -1
  75. package/lib/index.mjs +1 -1
  76. package/lib/{keccak-BvCC2Kx2.js → keccak-B1lZAzij.js} +1 -1
  77. package/lib/{keccak-C0uJwxei.mjs → keccak-BIkgLtG3.mjs} +1 -1
  78. package/lib/{libsodium-wrappers-BS68glUg.mjs → libsodium-wrappers-BVHsOzCM.mjs} +1 -1
  79. package/lib/{libsodium-wrappers-yq_uVk2-.js → libsodium-wrappers-G-nqImEg.js} +1 -1
  80. package/lib/{pako.esm-DZDXjYQj.js → pako.esm-Bp8XA5UR.js} +1 -1
  81. package/lib/{pako.esm-CWQc3qGc.mjs → pako.esm-CuMQ9lDX.mjs} +2 -2
  82. package/lib/{pbkdf2-DbRuCUvp.js → pbkdf2-DvmY7GlQ.js} +1 -1
  83. package/lib/{pbkdf2-B3V9L7S5.mjs → pbkdf2-QaxjQpDb.mjs} +1 -1
  84. package/lib/{sei-D3Eq9BDV.js → sei-B9drTJKa.js} +1 -1
  85. package/lib/{sei-Bty4vIw4.mjs → sei-DgoF7Bn_.mjs} +3 -3
  86. package/lib/{signer-Dw6nmaHE.js → signer-BEIw02y1.js} +1 -1
  87. package/lib/{signer-zHoIaQqc.mjs → signer-DNX7OGg4.mjs} +1 -1
  88. package/lib/solana-BRb7NfyR.js +1 -0
  89. package/lib/{solana-C-e817Or.mjs → solana-CoAz_ENY.mjs} +4 -4
  90. package/lib/solana-D2xBFYbL.mjs +16 -0
  91. package/lib/{solana-9m57XHRZ.js → solana-iqc7Fvik.js} +1 -1
  92. package/lib/{solanaEmbed.esm-ByzcN6RA.mjs → solanaEmbed.esm-D-2IZyVE.mjs} +3 -3
  93. package/lib/{solanaEmbed.esm-DBOgwSJE.js → solanaEmbed.esm-DjEXAVdT.js} +1 -1
  94. package/lib/{sui-B3dbw4a7.js → sui-CLKF35u2.js} +2 -2
  95. package/lib/{sui-CKgX0Mjn.mjs → sui-C_RZoPbB.mjs} +4 -4
  96. package/lib/{sui-rey0HjGu.mjs → sui-CrvrUATE.mjs} +1 -1
  97. package/lib/{sui-lQcSerf0.js → sui-qNwHoAbu.js} +1 -1
  98. package/lib/{unsignedTransaction-DcJyFS5R.js → unsignedTransaction-CJyRAIyq.js} +1 -1
  99. package/lib/{unsignedTransaction-sTI31PuJ.mjs → unsignedTransaction-XgGjCBSt.mjs} +2 -2
  100. package/package.json +1 -1
  101. package/lib/solana-CV7qftfl.mjs +0 -16
  102. package/lib/solana-GdBZhG_3.js +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("./index-CEovIwuS.js"),D4=require("./evm--fmrvZiP.js"),_=require("react"),F5=require("react-dom"),w=require("./index-KWDNKPJe.js");function K5(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const _3=K5(_),z1=typeof O.dist.Buffer=="function",B4=typeof TextDecoder=="function"?new TextDecoder:void 0,W4=typeof TextEncoder=="function"?new TextEncoder:void 0,V5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",H1=Array.prototype.slice.call(V5),m2=(t=>{let e={};return t.forEach((n,r)=>e[n]=r),e})(H1),H5=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,R=String.fromCharCode.bind(String),z4=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),G5=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),I0=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),Q5=t=>{let e,n,r,i,s="";const c=t.length%3;for(let l=0;l<t.length;){if((n=t.charCodeAt(l++))>255||(r=t.charCodeAt(l++))>255||(i=t.charCodeAt(l++))>255)throw new TypeError("invalid character found");e=n<<16|r<<8|i,s+=H1[e>>18&63]+H1[e>>12&63]+H1[e>>6&63]+H1[e&63]}return c?s.slice(0,c-3)+"===".substring(c):s},R0=typeof btoa=="function"?t=>btoa(t):z1?t=>O.dist.Buffer.from(t,"binary").toString("base64"):Q5,q5=z1?t=>O.dist.Buffer.from(t).toString("base64"):t=>{let n=[];for(let r=0,i=t.length;r<i;r+=4096)n.push(R.apply(null,t.subarray(r,r+4096)));return R0(n.join(""))},Z5=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?R(192|e>>>6)+R(128|e&63):R(224|e>>>12&15)+R(128|e>>>6&63)+R(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return R(240|e>>>18&7)+R(128|e>>>12&63)+R(128|e>>>6&63)+R(128|e&63)}},J5=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Y5=t=>t.replace(J5,Z5),U4=z1?t=>O.dist.Buffer.from(t,"utf8").toString("base64"):W4?t=>q5(W4.encode(t)):t=>R0(Y5(t)),X5=(t,e=!1)=>e?G5(U4(t)):U4(t),F4=t=>X5(t,!0),e7=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,t7=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),n=e-65536;return R((n>>>10)+55296)+R((n&1023)+56320);case 3:return R((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return R((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},n7=t=>t.replace(e7,t7),r7=t=>{if(t=t.replace(/\s+/g,""),!H5.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,n="",r,i;for(let s=0;s<t.length;)e=m2[t.charAt(s++)]<<18|m2[t.charAt(s++)]<<12|(r=m2[t.charAt(s++)])<<6|(i=m2[t.charAt(s++)]),n+=r===64?R(e>>16&255):i===64?R(e>>16&255,e>>8&255):R(e>>16&255,e>>8&255,e&255);return n},N0=typeof atob=="function"?t=>atob(I0(t)):z1?t=>O.dist.Buffer.from(t,"base64").toString("binary"):r7,i7=z1?t=>z4(O.dist.Buffer.from(t,"base64")):t=>z4(N0(t).split("").map(e=>e.charCodeAt(0))),o7=z1?t=>O.dist.Buffer.from(t,"base64").toString("utf8"):B4?t=>B4.decode(i7(t)):t=>n7(N0(t)),s7=t=>I0(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),a7=t=>o7(s7(t)),c7="bignumber/5.7.0";var e3=O.BN.BN;const Y=new w.Logger(c7),k3={},K4=9007199254740991;let V4=!1;class S{constructor(e,n){e!==k3&&Y.throwError("cannot call constructor directly; use BigNumber.from",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=n,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return j(E(this).fromTwos(e))}toTwos(e){return j(E(this).toTwos(e))}abs(){return this._hex[0]==="-"?S.from(this._hex.substring(1)):this}add(e){return j(E(this).add(E(e)))}sub(e){return j(E(this).sub(E(e)))}div(e){return S.from(e).isZero()&&D("division-by-zero","div"),j(E(this).div(E(e)))}mul(e){return j(E(this).mul(E(e)))}mod(e){const n=E(e);return n.isNeg()&&D("division-by-zero","mod"),j(E(this).umod(n))}pow(e){const n=E(e);return n.isNeg()&&D("negative-power","pow"),j(E(this).pow(n))}and(e){const n=E(e);return(this.isNegative()||n.isNeg())&&D("unbound-bitwise-result","and"),j(E(this).and(n))}or(e){const n=E(e);return(this.isNegative()||n.isNeg())&&D("unbound-bitwise-result","or"),j(E(this).or(n))}xor(e){const n=E(e);return(this.isNegative()||n.isNeg())&&D("unbound-bitwise-result","xor"),j(E(this).xor(n))}mask(e){return(this.isNegative()||e<0)&&D("negative-width","mask"),j(E(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&D("negative-width","shl"),j(E(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&D("negative-width","shr"),j(E(this).shrn(e))}eq(e){return E(this).eq(E(e))}lt(e){return E(this).lt(E(e))}lte(e){return E(this).lte(E(e))}gt(e){return E(this).gt(E(e))}gte(e){return E(this).gte(E(e))}isNegative(){return this._hex[0]==="-"}isZero(){return E(this).isZero()}toNumber(){try{return E(this).toNumber()}catch{D("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return Y.throwError("this platform does not support BigInt",w.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?V4||(V4=!0,Y.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Y.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",w.Logger.errors.UNEXPECTED_ARGUMENT,{}):Y.throwError("BigNumber.toString does not accept parameters",w.Logger.errors.UNEXPECTED_ARGUMENT,{})),E(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof S)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new S(k3,J1(e)):e.match(/^-?[0-9]+$/)?new S(k3,J1(new e3(e))):Y.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&D("underflow","BigNumber.from",e),(e>=K4||e<=-K4)&&D("overflow","BigNumber.from",e),S.from(String(e));const n=e;if(typeof n=="bigint")return S.from(n.toString());if(w.isBytes(n))return S.from(w.hexlify(n));if(n)if(n.toHexString){const r=n.toHexString();if(typeof r=="string")return S.from(r)}else{let r=n._hex;if(r==null&&n.type==="BigNumber"&&(r=n.hex),typeof r=="string"&&(w.isHexString(r)||r[0]==="-"&&w.isHexString(r.substring(1))))return S.from(r)}return Y.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function J1(t){if(typeof t!="string")return J1(t.toString(16));if(t[0]==="-")return t=t.substring(1),t[0]==="-"&&Y.throwArgumentError("invalid hex","value",t),t=J1(t),t==="0x00"?t:"-"+t;if(t.substring(0,2)!=="0x"&&(t="0x"+t),t==="0x")return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&t.substring(0,4)==="0x00";)t="0x"+t.substring(4);return t}function j(t){return S.from(J1(t))}function E(t){const e=S.from(t).toHexString();return e[0]==="-"?new e3("-"+e.substring(3),16):new e3(e.substring(2),16)}function D(t,e,n){const r={fault:t,operation:e};return n!=null&&(r.value=n),Y.throwError(t,w.Logger.errors.NUMERIC_FAULT,r)}function u7(t){return new e3(t,36).toString(16)}const l7="properties/5.7.0",P0=new w.Logger(l7);function N(t,e,n){Object.defineProperty(t,e,{enumerable:!0,value:n,writable:!1})}function g2(t,e){for(let n=0;n<32;n++){if(t[e])return t[e];if(!t.prototype||typeof t.prototype!="object")break;t=Object.getPrototypeOf(t.prototype).constructor}return null}const f7={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function M0(t){if(t==null||f7[typeof t])return!0;if(Array.isArray(t)||typeof t=="object"){if(!Object.isFrozen(t))return!1;const e=Object.keys(t);for(let n=0;n<e.length;n++){let r=null;try{r=t[e[n]]}catch{continue}if(!M0(r))return!1}return!0}return P0.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}function h7(t){if(M0(t))return t;if(Array.isArray(t))return Object.freeze(t.map(e=>R3(e)));if(typeof t=="object"){const e={};for(const n in t){const r=t[n];r!==void 0&&N(e,n,R3(r))}return e}return P0.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}function R3(t){return h7(t)}class h3{constructor(e){for(const n in e)this[n]=R3(e[n])}}const p2="abi/5.7.0",x=new w.Logger(p2),b1={};let H4={calldata:!0,memory:!0,storage:!0},d7={calldata:!0,memory:!0};function v2(t,e){if(t==="bytes"||t==="string"){if(H4[e])return!0}else if(t==="address"){if(e==="payable")return!0}else if((t.indexOf("[")>=0||t==="tuple")&&d7[e])return!0;return(H4[e]||e==="payable")&&x.throwArgumentError("invalid modifier","name",e),!1}function p7(t,e){let n=t;function r(l){x.throwArgumentError(`unexpected character at position ${l}`,"param",t)}t=t.replace(/\s/g," ");function i(l){let u={type:"",name:"",parent:l,state:{allowType:!0}};return e&&(u.indexed=!1),u}let s={type:"",name:"",state:{allowType:!0}},c=s;for(let l=0;l<t.length;l++){let u=t[l];switch(u){case"(":c.state.allowType&&c.type===""?c.type="tuple":c.state.allowParams||r(l),c.state.allowType=!1,c.type=S1(c.type),c.components=[i(c)],c=c.components[0];break;case")":delete c.state,c.name==="indexed"&&(e||r(l),c.indexed=!0,c.name=""),v2(c.type,c.name)&&(c.name=""),c.type=S1(c.type);let o=c;c=c.parent,c||r(l),delete o.parent,c.state.allowParams=!1,c.state.allowName=!0,c.state.allowArray=!0;break;case",":delete c.state,c.name==="indexed"&&(e||r(l),c.indexed=!0,c.name=""),v2(c.type,c.name)&&(c.name=""),c.type=S1(c.type);let a=i(c.parent);c.parent.components.push(a),delete c.parent,c=a;break;case" ":c.state.allowType&&c.type!==""&&(c.type=S1(c.type),delete c.state.allowType,c.state.allowName=!0,c.state.allowParams=!0),c.state.allowName&&c.name!==""&&(c.name==="indexed"?(e||r(l),c.indexed&&r(l),c.indexed=!0,c.name=""):v2(c.type,c.name)?c.name="":c.state.allowName=!1);break;case"[":c.state.allowArray||r(l),c.type+=u,c.state.allowArray=!1,c.state.allowName=!1,c.state.readArray=!0;break;case"]":c.state.readArray||r(l),c.type+=u,c.state.readArray=!1,c.state.allowArray=!0,c.state.allowName=!0;break;default:c.state.allowType?(c.type+=u,c.state.allowParams=!0,c.state.allowArray=!0):c.state.allowName?(c.name+=u,delete c.state.allowArray):c.state.readArray?c.type+=u:r(l)}}return c.parent&&x.throwArgumentError("unexpected eof","param",t),delete s.state,c.name==="indexed"?(e||r(n.length-7),c.indexed&&r(n.length-7),c.indexed=!0,c.name=""):v2(c.type,c.name)&&(c.name=""),s.type=S1(s.type),s}function W2(t,e){for(let n in e)N(t,n,e[n])}const A=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),y7=new RegExp(/^(.*)\[([0-9]*)\]$/);class I{constructor(e,n){e!==b1&&x.throwError("use fromString",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),W2(this,n);let r=this.type.match(y7);r?W2(this,{arrayLength:parseInt(r[2]||"-1"),arrayChildren:I.fromObject({type:r[1],components:this.components}),baseType:"array"}):W2(this,{arrayLength:null,arrayChildren:null,baseType:this.components!=null?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=A.sighash),A[e]||x.throwArgumentError("invalid format type","format",e),e===A.json){let r={type:this.baseType==="tuple"?"tuple":this.type,name:this.name||void 0};return typeof this.indexed=="boolean"&&(r.indexed=this.indexed),this.components&&(r.components=this.components.map(i=>JSON.parse(i.format(e)))),JSON.stringify(r)}let n="";return this.baseType==="array"?(n+=this.arrayChildren.format(e),n+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):this.baseType==="tuple"?(e!==A.sighash&&(n+=this.type),n+="("+this.components.map(r=>r.format(e)).join(e===A.full?", ":",")+")"):n+=this.type,e!==A.sighash&&(this.indexed===!0&&(n+=" indexed"),e===A.full&&this.name&&(n+=" "+this.name)),n}static from(e,n){return typeof e=="string"?I.fromString(e,n):I.fromObject(e)}static fromObject(e){return I.isParamType(e)?e:new I(b1,{name:e.name||null,type:S1(e.type),indexed:e.indexed==null?null:!!e.indexed,components:e.components?e.components.map(I.fromObject):null})}static fromString(e,n){function r(i){return I.fromObject({name:i.name,type:i.type,indexed:i.indexed,components:i.components})}return r(p7(e,!!n))}static isParamType(e){return!!(e!=null&&e._isParamType)}}function Y1(t,e){return g7(t).map(n=>I.fromString(n,e))}class e1{constructor(e,n){e!==b1&&x.throwError("use a static from method",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),W2(this,n),this._isFragment=!0,Object.freeze(this)}static from(e){return e1.isFragment(e)?e:typeof e=="string"?e1.fromString(e):e1.fromObject(e)}static fromObject(e){if(e1.isFragment(e))return e;switch(e.type){case"function":return Z.fromObject(e);case"event":return X.fromObject(e);case"constructor":return q.fromObject(e);case"error":return l1.fromObject(e);case"fallback":case"receive":return null}return x.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return e=e.replace(/\s/g," "),e=e.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),e=e.trim(),e.split(" ")[0]==="event"?X.fromString(e.substring(5).trim()):e.split(" ")[0]==="function"?Z.fromString(e.substring(8).trim()):e.split("(")[0].trim()==="constructor"?q.fromString(e.trim()):e.split(" ")[0]==="error"?l1.fromString(e.substring(5).trim()):x.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class X extends e1{format(e){if(e||(e=A.sighash),A[e]||x.throwArgumentError("invalid format type","format",e),e===A.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(r=>JSON.parse(r.format(e)))});let n="";return e!==A.sighash&&(n+="event "),n+=this.name+"("+this.inputs.map(r=>r.format(e)).join(e===A.full?", ":",")+") ",e!==A.sighash&&this.anonymous&&(n+="anonymous "),n.trim()}static from(e){return typeof e=="string"?X.fromString(e):X.fromObject(e)}static fromObject(e){if(X.isEventFragment(e))return e;e.type!=="event"&&x.throwArgumentError("invalid event object","value",e);const n={name:X1(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(I.fromObject):[],type:"event"};return new X(b1,n)}static fromString(e){let n=e.match(e2);n||x.throwArgumentError("invalid event string","value",e);let r=!1;return n[3].split(" ").forEach(i=>{switch(i.trim()){case"anonymous":r=!0;break;case"":break;default:x.warn("unknown modifier: "+i)}}),X.fromObject({name:n[1].trim(),anonymous:r,inputs:Y1(n[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&e.type==="event"}}function T0(t,e){e.gas=null;let n=t.split("@");return n.length!==1?(n.length>2&&x.throwArgumentError("invalid human-readable ABI signature","value",t),n[1].match(/^[0-9]+$/)||x.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=S.from(n[1]),n[0]):t}function j0(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach(n=>{switch(n.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+n)}})}function L0(t){let e={constant:!1,payable:!0,stateMutability:"payable"};return t.stateMutability!=null?(e.stateMutability=t.stateMutability,e.constant=e.stateMutability==="view"||e.stateMutability==="pure",t.constant!=null&&!!t.constant!==e.constant&&x.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable=e.stateMutability==="payable",t.payable!=null&&!!t.payable!==e.payable&&x.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):t.payable!=null?(e.payable=!!t.payable,t.constant==null&&!e.payable&&t.type!=="constructor"&&x.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&x.throwArgumentError("cannot have constant payable function","value",t)):t.constant!=null?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):t.type!=="constructor"&&x.throwArgumentError("unable to determine stateMutability","value",t),e}class q extends e1{format(e){if(e||(e=A.sighash),A[e]||x.throwArgumentError("invalid format type","format",e),e===A.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(r=>JSON.parse(r.format(e)))});e===A.sighash&&x.throwError("cannot format a constructor for sighash",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let n="constructor("+this.inputs.map(r=>r.format(e)).join(e===A.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "),n.trim()}static from(e){return typeof e=="string"?q.fromString(e):q.fromObject(e)}static fromObject(e){if(q.isConstructorFragment(e))return e;e.type!=="constructor"&&x.throwArgumentError("invalid constructor object","value",e);let n=L0(e);n.constant&&x.throwArgumentError("constructor cannot be constant","value",e);const r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(I.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:e.gas?S.from(e.gas):null};return new q(b1,r)}static fromString(e){let n={type:"constructor"};e=T0(e,n);let r=e.match(e2);return(!r||r[1].trim()!=="constructor")&&x.throwArgumentError("invalid constructor string","value",e),n.inputs=Y1(r[2].trim(),!1),j0(r[3].trim(),n),q.fromObject(n)}static isConstructorFragment(e){return e&&e._isFragment&&e.type==="constructor"}}class Z extends q{format(e){if(e||(e=A.sighash),A[e]||x.throwArgumentError("invalid format type","format",e),e===A.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(r=>JSON.parse(r.format(e))),outputs:this.outputs.map(r=>JSON.parse(r.format(e)))});let n="";return e!==A.sighash&&(n+="function "),n+=this.name+"("+this.inputs.map(r=>r.format(e)).join(e===A.full?", ":",")+") ",e!==A.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "):this.constant&&(n+="view "),this.outputs&&this.outputs.length&&(n+="returns ("+this.outputs.map(r=>r.format(e)).join(", ")+") "),this.gas!=null&&(n+="@"+this.gas.toString()+" ")),n.trim()}static from(e){return typeof e=="string"?Z.fromString(e):Z.fromObject(e)}static fromObject(e){if(Z.isFunctionFragment(e))return e;e.type!=="function"&&x.throwArgumentError("invalid function object","value",e);let n=L0(e);const r={type:e.type,name:X1(e.name),constant:n.constant,inputs:e.inputs?e.inputs.map(I.fromObject):[],outputs:e.outputs?e.outputs.map(I.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:e.gas?S.from(e.gas):null};return new Z(b1,r)}static fromString(e){let n={type:"function"};e=T0(e,n);let r=e.split(" returns ");r.length>2&&x.throwArgumentError("invalid function string","value",e);let i=r[0].match(e2);if(i||x.throwArgumentError("invalid function signature","value",e),n.name=i[1].trim(),n.name&&X1(n.name),n.inputs=Y1(i[2],!1),j0(i[3].trim(),n),r.length>1){let s=r[1].match(e2);(s[1].trim()!=""||s[3].trim()!="")&&x.throwArgumentError("unexpected tokens","value",e),n.outputs=Y1(s[2],!1)}else n.outputs=[];return Z.fromObject(n)}static isFunctionFragment(e){return e&&e._isFragment&&e.type==="function"}}function G4(t){const e=t.format();return(e==="Error(string)"||e==="Panic(uint256)")&&x.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}class l1 extends e1{format(e){if(e||(e=A.sighash),A[e]||x.throwArgumentError("invalid format type","format",e),e===A.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(r=>JSON.parse(r.format(e)))});let n="";return e!==A.sighash&&(n+="error "),n+=this.name+"("+this.inputs.map(r=>r.format(e)).join(e===A.full?", ":",")+") ",n.trim()}static from(e){return typeof e=="string"?l1.fromString(e):l1.fromObject(e)}static fromObject(e){if(l1.isErrorFragment(e))return e;e.type!=="error"&&x.throwArgumentError("invalid error object","value",e);const n={type:e.type,name:X1(e.name),inputs:e.inputs?e.inputs.map(I.fromObject):[]};return G4(new l1(b1,n))}static fromString(e){let n={type:"error"},r=e.match(e2);return r||x.throwArgumentError("invalid error signature","value",e),n.name=r[1].trim(),n.name&&X1(n.name),n.inputs=Y1(r[2],!1),G4(l1.fromObject(n))}static isErrorFragment(e){return e&&e._isFragment&&e.type==="error"}}function S1(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}const m7=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function X1(t){return(!t||!t.match(m7))&&x.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}const e2=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function g7(t){t=t.trim();let e=[],n="",r=0;for(let i=0;i<t.length;i++){let s=t[i];s===","&&r===0?(e.push(n),n=""):(n+=s,s==="("?r++:s===")"&&(r--,r===-1&&x.throwArgumentError("unbalanced parenthesis","value",t)))}return n&&e.push(n),e}const g4=new w.Logger(p2);class t1{constructor(e,n,r,i){this.name=e,this.type=n,this.localName=r,this.dynamic=i}_throwError(e,n){g4.throwArgumentError(e,this.localName,n)}}class N3{constructor(e){N(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return w.hexConcat(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData(w.concat(e._data))}writeBytes(e){let n=w.arrayify(e);const r=n.length%this.wordSize;return r&&(n=w.concat([n,this._padding.slice(r)])),this._writeData(n)}_getValue(e){let n=w.arrayify(S.from(e));return n.length>this.wordSize&&g4.throwError("value out-of-bounds",w.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:n.length}),n.length%this.wordSize&&(n=w.concat([this._padding.slice(n.length%this.wordSize),n])),n}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,n=>{this._data[e]=this._getValue(n)}}}class t3{constructor(e,n,r,i){N(this,"_data",w.arrayify(e)),N(this,"wordSize",n||32),N(this,"_coerceFunc",r),N(this,"allowLoose",i),this._offset=0}get data(){return w.hexlify(this._data)}get consumed(){return this._offset}static coerce(e,n){let r=e.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(n=n.toNumber()),n}coerce(e,n){return this._coerceFunc?this._coerceFunc(e,n):t3.coerce(e,n)}_peekBytes(e,n,r){let i=Math.ceil(n/this.wordSize)*this.wordSize;return this._offset+i>this._data.length&&(this.allowLoose&&r&&this._offset+n<=this._data.length?i=n:g4.throwError("data out-of-bounds",w.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+i})),this._data.slice(this._offset,this._offset+i)}subReader(e){return new t3(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,n){let r=this._peekBytes(0,e,!!n);return this._offset+=r.length,r.slice(0,e)}readValue(){return S.from(this.readBytes(this.wordSize))}}function n3(t){return"0x"+O.sha3$1.keccak_256(w.arrayify(t))}const v7="address/5.7.0",G1=new w.Logger(v7);function Q4(t){w.isHexString(t,20)||G1.throwArgumentError("invalid address","address",t),t=t.toLowerCase();const e=t.substring(2).split(""),n=new Uint8Array(40);for(let i=0;i<40;i++)n[i]=e[i].charCodeAt(0);const r=w.arrayify(n3(n));for(let i=0;i<40;i+=2)r[i>>1]>>4>=8&&(e[i]=e[i].toUpperCase()),(r[i>>1]&15)>=8&&(e[i+1]=e[i+1].toUpperCase());return"0x"+e.join("")}const b7=9007199254740991;function w7(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}const v4={};for(let t=0;t<10;t++)v4[String(t)]=String(t);for(let t=0;t<26;t++)v4[String.fromCharCode(65+t)]=String(10+t);const q4=Math.floor(w7(b7));function _7(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(r=>v4[r]).join("");for(;e.length>=q4;){let r=e.substring(0,q4);e=parseInt(r,10)%97+e.substring(r.length)}let n=String(98-parseInt(e,10)%97);for(;n.length<2;)n="0"+n;return n}function P3(t){let e=null;if(typeof t!="string"&&G1.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))t.substring(0,2)!=="0x"&&(t="0x"+t),e=Q4(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&G1.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)!==_7(t)&&G1.throwArgumentError("bad icap checksum","address",t),e=u7(t.substring(4));e.length<40;)e="0"+e;e=Q4("0x"+e)}else G1.throwArgumentError("invalid address","address",t);return e}class k7 extends t1{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,n){try{n=P3(n)}catch(r){this._throwError(r.message,n)}return e.writeValue(n)}decode(e){return P3(w.hexZeroPad(e.readValue().toHexString(),20))}}class E7 extends t1{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,n){return this.coder.encode(e,n)}decode(e){return this.coder.decode(e)}}const $1=new w.Logger(p2);function D0(t,e,n){let r=null;if(Array.isArray(n))r=n;else if(n&&typeof n=="object"){let u={};r=e.map(o=>{const a=o.localName;return a||$1.throwError("cannot encode object for signature with missing names",w.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:o,value:n}),u[a]&&$1.throwError("cannot encode object for signature with duplicate names",w.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:o,value:n}),u[a]=!0,n[a]})}else $1.throwArgumentError("invalid tuple value","tuple",n);e.length!==r.length&&$1.throwArgumentError("types/value length mismatch","tuple",n);let i=new N3(t.wordSize),s=new N3(t.wordSize),c=[];e.forEach((u,o)=>{let a=r[o];if(u.dynamic){let f=s.length;u.encode(s,a);let d=i.writeUpdatableValue();c.push(y=>{d(y+f)})}else u.encode(i,a)}),c.forEach(u=>{u(i.length)});let l=t.appendWriter(i);return l+=t.appendWriter(s),l}function B0(t,e){let n=[],r=t.subReader(0);e.forEach(s=>{let c=null;if(s.dynamic){let l=t.readValue(),u=r.subReader(l.toNumber());try{c=s.decode(u)}catch(o){if(o.code===w.Logger.errors.BUFFER_OVERRUN)throw o;c=o,c.baseType=s.name,c.name=s.localName,c.type=s.type}}else try{c=s.decode(t)}catch(l){if(l.code===w.Logger.errors.BUFFER_OVERRUN)throw l;c=l,c.baseType=s.name,c.name=s.localName,c.type=s.type}c!=null&&n.push(c)});const i=e.reduce((s,c)=>{const l=c.localName;return l&&(s[l]||(s[l]=0),s[l]++),s},{});e.forEach((s,c)=>{let l=s.localName;if(!l||i[l]!==1||(l==="length"&&(l="_length"),n[l]!=null))return;const u=n[c];u instanceof Error?Object.defineProperty(n,l,{enumerable:!0,get:()=>{throw u}}):n[l]=u});for(let s=0;s<n.length;s++){const c=n[s];c instanceof Error&&Object.defineProperty(n,s,{enumerable:!0,get:()=>{throw c}})}return Object.freeze(n)}class x7 extends t1{constructor(e,n,r){const i=e.type+"["+(n>=0?n:"")+"]",s=n===-1||e.dynamic;super("array",i,r,s),this.coder=e,this.length=n}defaultValue(){const e=this.coder.defaultValue(),n=[];for(let r=0;r<this.length;r++)n.push(e);return n}encode(e,n){Array.isArray(n)||this._throwError("expected array value",n);let r=this.length;r===-1&&(r=n.length,e.writeValue(n.length)),$1.checkArgumentCount(n.length,r,"coder array"+(this.localName?" "+this.localName:""));let i=[];for(let s=0;s<n.length;s++)i.push(this.coder);return D0(e,i,n)}decode(e){let n=this.length;n===-1&&(n=e.readValue().toNumber(),n*32>e._data.length&&$1.throwError("insufficient data length",w.Logger.errors.BUFFER_OVERRUN,{length:e._data.length,count:n}));let r=[];for(let i=0;i<n;i++)r.push(new E7(this.coder));return e.coerce(this.name,B0(e,r))}}class A7 extends t1{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,n){return e.writeValue(n?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}class W0 extends t1{constructor(e,n){super(e,e,n,!0)}defaultValue(){return"0x"}encode(e,n){n=w.arrayify(n);let r=e.writeValue(n.length);return r+=e.writeBytes(n),r}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class O7 extends W0{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,w.hexlify(super.decode(e)))}}class C7 extends t1{constructor(e,n){let r="bytes"+String(e);super(r,r,n,!1),this.size=e}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)}encode(e,n){let r=w.arrayify(n);return r.length!==this.size&&this._throwError("incorrect data length",n),e.writeBytes(r)}decode(e){return e.coerce(this.name,w.hexlify(e.readBytes(this.size)))}}class S7 extends t1{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,n){return n!=null&&this._throwError("not null",n),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}const $7=S.from(-1),I7=S.from(0),R7=S.from(1),N7=S.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class P7 extends t1{constructor(e,n,r){const i=(n?"int":"uint")+e*8;super(i,i,r,!1),this.size=e,this.signed=n}defaultValue(){return 0}encode(e,n){let r=S.from(n),i=N7.mask(e.wordSize*8);if(this.signed){let s=i.mask(this.size*8-1);(r.gt(s)||r.lt(s.add(R7).mul($7)))&&this._throwError("value out-of-bounds",n)}else(r.lt(I7)||r.gt(i.mask(this.size*8)))&&this._throwError("value out-of-bounds",n);return r=r.toTwos(this.size*8).mask(this.size*8),this.signed&&(r=r.fromTwos(this.size*8).toTwos(8*e.wordSize)),e.writeValue(r)}decode(e){let n=e.readValue().mask(this.size*8);return this.signed&&(n=n.fromTwos(this.size*8)),e.coerce(this.name,n)}}const M7="strings/5.7.0",z0=new w.Logger(M7);var r3;(function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"})(r3||(r3={}));var L;(function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"})(L||(L={}));function T7(t,e,n,r,i){return z0.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",n)}function U0(t,e,n,r,i){if(t===L.BAD_PREFIX||t===L.UNEXPECTED_CONTINUE){let s=0;for(let c=e+1;c<n.length&&n[c]>>6===2;c++)s++;return s}return t===L.OVERRUN?n.length-e-1:0}function j7(t,e,n,r,i){return t===L.OVERLONG?(r.push(i),0):(r.push(65533),U0(t,e,n))}const L7=Object.freeze({error:T7,ignore:U0,replace:j7});function D7(t,e){e==null&&(e=L7.error),t=w.arrayify(t);const n=[];let r=0;for(;r<t.length;){const i=t[r++];if(!(i>>7)){n.push(i);continue}let s=null,c=null;if((i&224)===192)s=1,c=127;else if((i&240)===224)s=2,c=2047;else if((i&248)===240)s=3,c=65535;else{(i&192)===128?r+=e(L.UNEXPECTED_CONTINUE,r-1,t,n):r+=e(L.BAD_PREFIX,r-1,t,n);continue}if(r-1+s>=t.length){r+=e(L.OVERRUN,r-1,t,n);continue}let l=i&(1<<8-s-1)-1;for(let u=0;u<s;u++){let o=t[r];if((o&192)!=128){r+=e(L.MISSING_CONTINUE,r,t,n),l=null;break}l=l<<6|o&63,r++}if(l!==null){if(l>1114111){r+=e(L.OUT_OF_RANGE,r-1-s,t,n,l);continue}if(l>=55296&&l<=57343){r+=e(L.UTF16_SURROGATE,r-1-s,t,n,l);continue}if(l<=c){r+=e(L.OVERLONG,r-1-s,t,n,l);continue}n.push(l)}}return n}function F0(t,e=r3.current){e!=r3.current&&(z0.checkNormalize(),t=t.normalize(e));let n=[];for(let r=0;r<t.length;r++){const i=t.charCodeAt(r);if(i<128)n.push(i);else if(i<2048)n.push(i>>6|192),n.push(i&63|128);else if((i&64512)==55296){r++;const s=t.charCodeAt(r);if(r>=t.length||(s&64512)!==56320)throw new Error("invalid utf-8 string");const c=65536+((i&1023)<<10)+(s&1023);n.push(c>>18|240),n.push(c>>12&63|128),n.push(c>>6&63|128),n.push(c&63|128)}else n.push(i>>12|224),n.push(i>>6&63|128),n.push(i&63|128)}return w.arrayify(n)}function B7(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function W7(t,e){return B7(D7(t,e))}class z7 extends W0{constructor(e){super("string",e)}defaultValue(){return""}encode(e,n){return super.encode(e,F0(n))}decode(e){return W7(super.decode(e))}}class b2 extends t1{constructor(e,n){let r=!1;const i=[];e.forEach(c=>{c.dynamic&&(r=!0),i.push(c.type)});const s="tuple("+i.join(",")+")";super("tuple",s,n,r),this.coders=e}defaultValue(){const e=[];this.coders.forEach(r=>{e.push(r.defaultValue())});const n=this.coders.reduce((r,i)=>{const s=i.localName;return s&&(r[s]||(r[s]=0),r[s]++),r},{});return this.coders.forEach((r,i)=>{let s=r.localName;!s||n[s]!==1||(s==="length"&&(s="_length"),e[s]==null&&(e[s]=e[i]))}),Object.freeze(e)}encode(e,n){return D0(e,this.coders,n)}decode(e){return e.coerce(this.name,B0(e,this.coders))}}const w2=new w.Logger(p2),U7=new RegExp(/^bytes([0-9]*)$/),F7=new RegExp(/^(u?int)([0-9]*)$/);class K7{constructor(e){N(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new k7(e.name);case"bool":return new A7(e.name);case"string":return new z7(e.name);case"bytes":return new O7(e.name);case"array":return new x7(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new b2((e.components||[]).map(r=>this._getCoder(r)),e.name);case"":return new S7(e.name)}let n=e.type.match(F7);if(n){let r=parseInt(n[2]||"256");return(r===0||r>256||r%8!==0)&&w2.throwArgumentError("invalid "+n[1]+" bit length","param",e),new P7(r/8,n[1]==="int",e.name)}if(n=e.type.match(U7),n){let r=parseInt(n[1]);return(r===0||r>32)&&w2.throwArgumentError("invalid bytes length","param",e),new C7(r,e.name)}return w2.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,n){return new t3(e,this._getWordSize(),this.coerceFunc,n)}_getWriter(){return new N3(this._getWordSize())}getDefaultValue(e){const n=e.map(i=>this._getCoder(I.from(i)));return new b2(n,"_").defaultValue()}encode(e,n){e.length!==n.length&&w2.throwError("types/values length mismatch",w.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:n.length},value:{types:e,values:n}});const r=e.map(c=>this._getCoder(I.from(c))),i=new b2(r,"_"),s=this._getWriter();return i.encode(s,n),s.data}decode(e,n,r){const i=e.map(c=>this._getCoder(I.from(c)));return new b2(i,"_").decode(this._getReader(w.arrayify(n),r))}}const V7=new K7;function _2(t){return n3(F0(t))}const $=new w.Logger(p2);class H7 extends h3{}class G7 extends h3{}class Q7 extends h3{}class Z4 extends h3{static isIndexed(e){return!!(e&&e._isIndexed)}}const q7={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function J4(t,e){const n=new Error(`deferred error during ABI decoding triggered accessing ${t}`);return n.error=e,n}class Z7{constructor(e){let n=[];typeof e=="string"?n=JSON.parse(e):n=e,N(this,"fragments",n.map(r=>e1.from(r)).filter(r=>r!=null)),N(this,"_abiCoder",g2(new.target,"getAbiCoder")()),N(this,"functions",{}),N(this,"errors",{}),N(this,"events",{}),N(this,"structs",{}),this.fragments.forEach(r=>{let i=null;switch(r.type){case"constructor":if(this.deploy){$.warn("duplicate definition - constructor");return}N(this,"deploy",r);return;case"function":i=this.functions;break;case"event":i=this.events;break;case"error":i=this.errors;break;default:return}let s=r.format();if(i[s]){$.warn("duplicate definition - "+s);return}i[s]=r}),this.deploy||N(this,"deploy",q.from({payable:!1,type:"constructor"})),N(this,"_isInterface",!0)}format(e){e||(e=A.full),e===A.sighash&&$.throwArgumentError("interface does not support formatting sighash","format",e);const n=this.fragments.map(r=>r.format(e));return e===A.json?JSON.stringify(n.map(r=>JSON.parse(r))):n}static getAbiCoder(){return V7}static getAddress(e){return P3(e)}static getSighash(e){return w.hexDataSlice(_2(e.format()),0,4)}static getEventTopic(e){return _2(e.format())}getFunction(e){if(w.isHexString(e)){for(const r in this.functions)if(e===this.getSighash(r))return this.functions[r];$.throwArgumentError("no matching function","sighash",e)}if(e.indexOf("(")===-1){const r=e.trim(),i=Object.keys(this.functions).filter(s=>s.split("(")[0]===r);return i.length===0?$.throwArgumentError("no matching function","name",r):i.length>1&&$.throwArgumentError("multiple matching functions","name",r),this.functions[i[0]]}const n=this.functions[Z.fromString(e).format()];return n||$.throwArgumentError("no matching function","signature",e),n}getEvent(e){if(w.isHexString(e)){const r=e.toLowerCase();for(const i in this.events)if(r===this.getEventTopic(i))return this.events[i];$.throwArgumentError("no matching event","topichash",r)}if(e.indexOf("(")===-1){const r=e.trim(),i=Object.keys(this.events).filter(s=>s.split("(")[0]===r);return i.length===0?$.throwArgumentError("no matching event","name",r):i.length>1&&$.throwArgumentError("multiple matching events","name",r),this.events[i[0]]}const n=this.events[X.fromString(e).format()];return n||$.throwArgumentError("no matching event","signature",e),n}getError(e){if(w.isHexString(e)){const r=g2(this.constructor,"getSighash");for(const i in this.errors){const s=this.errors[i];if(e===r(s))return this.errors[i]}$.throwArgumentError("no matching error","sighash",e)}if(e.indexOf("(")===-1){const r=e.trim(),i=Object.keys(this.errors).filter(s=>s.split("(")[0]===r);return i.length===0?$.throwArgumentError("no matching error","name",r):i.length>1&&$.throwArgumentError("multiple matching errors","name",r),this.errors[i[0]]}const n=this.errors[Z.fromString(e).format()];return n||$.throwArgumentError("no matching error","signature",e),n}getSighash(e){if(typeof e=="string")try{e=this.getFunction(e)}catch(n){try{e=this.getError(e)}catch{throw n}}return g2(this.constructor,"getSighash")(e)}getEventTopic(e){return typeof e=="string"&&(e=this.getEvent(e)),g2(this.constructor,"getEventTopic")(e)}_decodeParams(e,n){return this._abiCoder.decode(e,n)}_encodeParams(e,n){return this._abiCoder.encode(e,n)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,n){typeof e=="string"&&(e=this.getError(e));const r=w.arrayify(n);return w.hexlify(r.slice(0,4))!==this.getSighash(e)&&$.throwArgumentError(`data signature does not match error ${e.name}.`,"data",w.hexlify(r)),this._decodeParams(e.inputs,r.slice(4))}encodeErrorResult(e,n){return typeof e=="string"&&(e=this.getError(e)),w.hexlify(w.concat([this.getSighash(e),this._encodeParams(e.inputs,n||[])]))}decodeFunctionData(e,n){typeof e=="string"&&(e=this.getFunction(e));const r=w.arrayify(n);return w.hexlify(r.slice(0,4))!==this.getSighash(e)&&$.throwArgumentError(`data signature does not match function ${e.name}.`,"data",w.hexlify(r)),this._decodeParams(e.inputs,r.slice(4))}encodeFunctionData(e,n){return typeof e=="string"&&(e=this.getFunction(e)),w.hexlify(w.concat([this.getSighash(e),this._encodeParams(e.inputs,n||[])]))}decodeFunctionResult(e,n){typeof e=="string"&&(e=this.getFunction(e));let r=w.arrayify(n),i=null,s="",c=null,l=null,u=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch{}break;case 4:{const o=w.hexlify(r.slice(0,4)),a=q7[o];if(a)c=this._abiCoder.decode(a.inputs,r.slice(4)),l=a.name,u=a.signature,a.reason&&(i=c[0]),l==="Error"?s=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(c[0])}`:l==="Panic"&&(s=`; VM Exception while processing transaction: reverted with panic code ${c[0]}`);else try{const f=this.getError(o);c=this._abiCoder.decode(f.inputs,r.slice(4)),l=f.name,u=f.format()}catch{}break}}return $.throwError("call revert exception"+s,w.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:w.hexlify(n),errorArgs:c,errorName:l,errorSignature:u,reason:i})}encodeFunctionResult(e,n){return typeof e=="string"&&(e=this.getFunction(e)),w.hexlify(this._abiCoder.encode(e.outputs,n||[]))}encodeFilterTopics(e,n){typeof e=="string"&&(e=this.getEvent(e)),n.length>e.inputs.length&&$.throwError("too many arguments for "+e.format(),w.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:n});let r=[];e.anonymous||r.push(this.getEventTopic(e));const i=(s,c)=>s.type==="string"?_2(c):s.type==="bytes"?n3(w.hexlify(c)):(s.type==="bool"&&typeof c=="boolean"&&(c=c?"0x01":"0x00"),s.type.match(/^u?int/)&&(c=S.from(c).toHexString()),s.type==="address"&&this._abiCoder.encode(["address"],[c]),w.hexZeroPad(w.hexlify(c),32));for(n.forEach((s,c)=>{let l=e.inputs[c];if(!l.indexed){s!=null&&$.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+l.name,s);return}s==null?r.push(null):l.baseType==="array"||l.baseType==="tuple"?$.throwArgumentError("filtering with tuples or arrays not supported","contract."+l.name,s):Array.isArray(s)?r.push(s.map(u=>i(l,u))):r.push(i(l,s))});r.length&&r[r.length-1]===null;)r.pop();return r}encodeEventLog(e,n){typeof e=="string"&&(e=this.getEvent(e));const r=[],i=[],s=[];return e.anonymous||r.push(this.getEventTopic(e)),n.length!==e.inputs.length&&$.throwArgumentError("event arguments/values mismatch","values",n),e.inputs.forEach((c,l)=>{const u=n[l];if(c.indexed)if(c.type==="string")r.push(_2(u));else if(c.type==="bytes")r.push(n3(u));else{if(c.baseType==="tuple"||c.baseType==="array")throw new Error("not implemented");r.push(this._abiCoder.encode([c.type],[u]))}else i.push(c),s.push(u)}),{data:this._abiCoder.encode(i,s),topics:r}}decodeEventLog(e,n,r){if(typeof e=="string"&&(e=this.getEvent(e)),r!=null&&!e.anonymous){let d=this.getEventTopic(e);(!w.isHexString(r[0],32)||r[0].toLowerCase()!==d)&&$.throwError("fragment/topic mismatch",w.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:d,value:r[0]}),r=r.slice(1)}let i=[],s=[],c=[];e.inputs.forEach((d,y)=>{d.indexed?d.type==="string"||d.type==="bytes"||d.baseType==="tuple"||d.baseType==="array"?(i.push(I.fromObject({type:"bytes32",name:d.name})),c.push(!0)):(i.push(d),c.push(!1)):(s.push(d),c.push(!1))});let l=r!=null?this._abiCoder.decode(i,w.concat(r)):null,u=this._abiCoder.decode(s,n,!0),o=[],a=0,f=0;e.inputs.forEach((d,y)=>{if(d.indexed)if(l==null)o[y]=new Z4({_isIndexed:!0,hash:null});else if(c[y])o[y]=new Z4({_isIndexed:!0,hash:l[f++]});else try{o[y]=l[f++]}catch(p){o[y]=p}else try{o[y]=u[a++]}catch(p){o[y]=p}if(d.name&&o[d.name]==null){const p=o[y];p instanceof Error?Object.defineProperty(o,d.name,{enumerable:!0,get:()=>{throw J4(`property ${JSON.stringify(d.name)}`,p)}}):o[d.name]=p}});for(let d=0;d<o.length;d++){const y=o[d];y instanceof Error&&Object.defineProperty(o,d,{enumerable:!0,get:()=>{throw J4(`index ${d}`,y)}})}return Object.freeze(o)}parseTransaction(e){let n=this.getFunction(e.data.substring(0,10).toLowerCase());return n?new G7({args:this._abiCoder.decode(n.inputs,"0x"+e.data.substring(10)),functionFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n),value:S.from(e.value||"0")}):null}parseLog(e){let n=this.getEvent(e.topics[0]);return!n||n.anonymous?null:new H7({eventFragment:n,name:n.name,signature:n.format(),topic:this.getEventTopic(n),args:this.decodeEventLog(n,e.data,e.topics)})}parseError(e){const n=w.hexlify(e);let r=this.getError(n.substring(0,10).toLowerCase());return r?new Q7({args:this._abiCoder.decode(r.inputs,"0x"+n.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(e){return!!(e&&e._isInterface)}}var K0={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(u,o,a){this.fn=u,this.context=o,this.once=a||!1}function s(u,o,a,f,d){if(typeof a!="function")throw new TypeError("The listener must be a function");var y=new i(a,f||u,d),p=n?n+o:o;return u._events[p]?u._events[p].fn?u._events[p]=[u._events[p],y]:u._events[p].push(y):(u._events[p]=y,u._eventsCount++),u}function c(u,o){--u._eventsCount===0?u._events=new r:delete u._events[o]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var o=[],a,f;if(this._eventsCount===0)return o;for(f in a=this._events)e.call(a,f)&&o.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(a)):o},l.prototype.listeners=function(o){var a=n?n+o:o,f=this._events[a];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,y=f.length,p=new Array(y);d<y;d++)p[d]=f[d].fn;return p},l.prototype.listenerCount=function(o){var a=n?n+o:o,f=this._events[a];return f?f.fn?1:f.length:0},l.prototype.emit=function(o,a,f,d,y,p){var g=n?n+o:o;if(!this._events[g])return!1;var h=this._events[g],b=arguments.length,v,m;if(h.fn){switch(h.once&&this.removeListener(o,h.fn,void 0,!0),b){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,a),!0;case 3:return h.fn.call(h.context,a,f),!0;case 4:return h.fn.call(h.context,a,f,d),!0;case 5:return h.fn.call(h.context,a,f,d,y),!0;case 6:return h.fn.call(h.context,a,f,d,y,p),!0}for(m=1,v=new Array(b-1);m<b;m++)v[m-1]=arguments[m];h.fn.apply(h.context,v)}else{var C=h.length,k;for(m=0;m<C;m++)switch(h[m].once&&this.removeListener(o,h[m].fn,void 0,!0),b){case 1:h[m].fn.call(h[m].context);break;case 2:h[m].fn.call(h[m].context,a);break;case 3:h[m].fn.call(h[m].context,a,f);break;case 4:h[m].fn.call(h[m].context,a,f,d);break;default:if(!v)for(k=1,v=new Array(b-1);k<b;k++)v[k-1]=arguments[k];h[m].fn.apply(h[m].context,v)}}return!0},l.prototype.on=function(o,a,f){return s(this,o,a,f,!1)},l.prototype.once=function(o,a,f){return s(this,o,a,f,!0)},l.prototype.removeListener=function(o,a,f,d){var y=n?n+o:o;if(!this._events[y])return this;if(!a)return c(this,y),this;var p=this._events[y];if(p.fn)p.fn===a&&(!d||p.once)&&(!f||p.context===f)&&c(this,y);else{for(var g=0,h=[],b=p.length;g<b;g++)(p[g].fn!==a||d&&!p[g].once||f&&p[g].context!==f)&&h.push(p[g]);h.length?this._events[y]=h.length===1?h[0]:h:c(this,y)}return this},l.prototype.removeAllListeners=function(o){var a;return o?(a=n?n+o:o,this._events[a]&&c(this,a)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,t.exports=l})(K0);var J7=K0.exports;const Y7=O.getDefaultExportFromCjs(J7);function M3(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function X7(t){if(Array.isArray(t))return M3(t)}function T3(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function z2(t,e,n){return V0()?z2=Reflect.construct:z2=function(r,i,s){var c=[null];c.push.apply(c,i);var l=Function.bind.apply(r,c),u=new l;return s&&n2(u,s.prototype),u},z2.apply(null,arguments)}function e6(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function w4(t,e,n){return e&&e6(t.prototype,e),t}function m1(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function t2(t){return t2=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t2(t)}function t6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n2(t,e)}function n6(t,e){return e!=null&&typeof Symbol<"u"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function r6(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function i6(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function o6(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s6(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){m1(t,i,n[i])})}return t}function a6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}function c6(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a6(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}function u6(t,e){return e&&(U1(e)==="object"||typeof e=="function")?e:T3(t)}function n2(t,e){return n2=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},n2(t,e)}function k2(t){return X7(t)||i6(t)||l6(t)||o6()}function U1(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}function l6(t,e){if(t){if(typeof t=="string")return M3(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M3(t,e)}}function j3(t){var e=typeof Map=="function"?new Map:void 0;return j3=function(n){if(n===null||!r6(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return z2(n,arguments,t2(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n2(r,n)},j3(t)}function V0(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function f6(t){var e=V0();return function(){var r=t2(t),i;if(e){var s=t2(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return u6(this,i)}}var h6=Object.defineProperty,d6=function(t,e,n){return e in t?h6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},L1=function(t,e,n){return d6(t,(typeof e>"u"?"undefined":U1(e))!="symbol"?e+"":e,n),n},n1,p6="PARSE_ERROR",y6="INVALID_REQUEST",m6="METHOD_NOT_FOUND",g6="INVALID_PARAMS",H0="INTERNAL_ERROR",_4="SERVER_ERROR",v6=[-32700,-32600,-32601,-32602,-32603],Z1=(n1={},m1(n1,p6,{code:-32700,message:"Parse error"}),m1(n1,y6,{code:-32600,message:"Invalid Request"}),m1(n1,m6,{code:-32601,message:"Method not found"}),m1(n1,g6,{code:-32602,message:"Invalid params"}),m1(n1,H0,{code:-32603,message:"Internal error"}),m1(n1,_4,{code:-32e3,message:"Server error"}),n1),G0=_4;function b6(t){return v6.includes(t)}function Y4(t){return Object.keys(Z1).includes(t)?Z1[t]:Z1[G0]}function w6(t){var e=Object.values(Z1).find(function(n){return n.code===t});return e||Z1[G0]}function _6(t,e,n){return t.message.includes("getaddrinfo ENOTFOUND")||t.message.includes("connect ECONNREFUSED")?new Error("Unavailable ".concat(n," RPC url at ").concat(e)):t}function k6(t,e,n){return{id:t,jsonrpc:"2.0",error:E6(e)}}function E6(t,e){return(typeof t>"u"?"undefined":U1(t))>"u"?Y4(H0):(typeof t=="string"&&(t=c6(s6({},Y4(_4)),{message:t})),b6(t.code)&&(t=w6(t.code)),t)}var x6="^https?:";function A6(t){var e=t.match(new RegExp(/^\w+:/,"gi"));if(!(!e||!e.length))return e[0]}function O6(t,e){var n=A6(t);return(typeof n>"u"?"undefined":U1(n))>"u"?!1:new RegExp(e).test(n)}function X4(t){return O6(t,x6)}function C6(t){if(typeof t!="string")throw new Error("Cannot safe json parse value of type ".concat(typeof t>"u"?"undefined":U1(t)));try{return JSON.parse(t)}catch{return t}}function e0(t){return typeof t=="string"?t:JSON.stringify(t)}var S6={16:10,24:12,32:14},$6=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],B=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],E2=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],I6=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],R6=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],N6=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],P6=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],M6=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],T6=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],j6=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],L6=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],D6=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],B6=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],W6=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],z6=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function L3(t){return parseInt("".concat(t))===t}function t0(t){if(!L3(t.length))return!1;for(var e=0;e<t.length;e++)if(!L3(t[e])||t[e]<0||t[e]>255)return!1;return!0}function I1(t){return new Uint8Array(t)}function E3(t){for(var e=[],n=0;n<t.length;n+=4)e.push(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]);return e}function U2(t,e){if(t.buffer&&t.name==="Uint8Array")return e&&(t.slice?t=t.slice():t=Array.prototype.slice.call(t)),t;if(Array.isArray(t)){if(!t0(t))throw new Error("Array contains invalid value");return new Uint8Array(t)}if(L3(t.length)&&t0(t))return new Uint8Array(t);throw new Error("unsupported array-like object")}function x2(t,e,n,r,i){(r!=null||i!=null)&&(t.slice?t=t.slice(r,i):t=Array.prototype.slice.call(t,r,i)),e.set(t,n)}var U6=function(){function t(e){b4(this,t),L1(this,"key"),L1(this,"_Ke"),L1(this,"_Kd"),this.key=U2(e,!0),this._prepare()}return w4(t,[{key:"_prepare",value:function(){var n=S6[this.key.length];if(n==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var r=0;r<=n;r++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var i=(n+1)*4,s=this.key.length/4,c=E3(this.key),l,u=0;u<s;u++)l=u>>2,this._Ke[l][u%4]=c[u],this._Kd[n-l][u%4]=c[u];for(var o=0,a=s,f;a<i;){if(f=c[s-1],c[0]^=B[f>>16&255]<<24^B[f>>8&255]<<16^B[f&255]<<8^B[f>>24&255]^$6[o]<<24,o+=1,s!=8)for(var d=1;d<s;d++)c[d]^=c[d-1];else{for(var y=1;y<s/2;y++)c[y]^=c[y-1];f=c[s/2-1],c[s/2]^=B[f&255]^B[f>>8&255]<<8^B[f>>16&255]<<16^B[f>>24&255]<<24;for(var p=s/2+1;p<s;p++)c[p]^=c[p-1]}for(var g=0,h=void 0,b=void 0;g<s&&a<i;)h=a>>2,b=a%4,this._Ke[h][b]=c[g],this._Kd[n-h][b]=c[g++],a++}for(var v=1;v<n;v++)for(var m=0;m<4;m++)f=this._Kd[v][m],this._Kd[v][m]=D6[f>>24&255]^B6[f>>16&255]^W6[f>>8&255]^z6[f&255]}},{key:"encrypt",value:function(e){if(e.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var n=this._Ke.length-1,r=[0,0,0,0],i=E3(e),s=0;s<4;s++)i[s]^=this._Ke[0][s];for(var c=1;c<n;c++){for(var l=0;l<4;l++)r[l]=I6[i[l]>>24&255]^R6[i[(l+1)%4]>>16&255]^N6[i[(l+2)%4]>>8&255]^P6[i[(l+3)%4]&255]^this._Ke[c][l];i=r.slice()}for(var u=I1(16),o,a=0;a<4;a++)o=this._Ke[n][a],u[4*a]=(B[i[a]>>24&255]^o>>24)&255,u[4*a+1]=(B[i[(a+1)%4]>>16&255]^o>>16)&255,u[4*a+2]=(B[i[(a+2)%4]>>8&255]^o>>8)&255,u[4*a+3]=(B[i[(a+3)%4]&255]^o)&255;return u}},{key:"decrypt",value:function(e){if(e.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var n=this._Kd.length-1,r=[0,0,0,0],i=E3(e),s=0;s<4;s++)i[s]^=this._Kd[0][s];for(var c=1;c<n;c++){for(var l=0;l<4;l++)r[l]=M6[i[l]>>24&255]^T6[i[(l+3)%4]>>16&255]^j6[i[(l+2)%4]>>8&255]^L6[i[(l+1)%4]&255]^this._Kd[c][l];i=r.slice()}for(var u=I1(16),o,a=0;a<4;a++)o=this._Kd[n][a],u[4*a]=(E2[i[a]>>24&255]^o>>24)&255,u[4*a+1]=(E2[i[(a+3)%4]>>16&255]^o>>16)&255,u[4*a+2]=(E2[i[(a+2)%4]>>8&255]^o>>8)&255,u[4*a+3]=(E2[i[(a+1)%4]&255]^o)&255;return u}}]),t}();(function(){function t(e,n){if(b4(this,t),L1(this,"_aes"),L1(this,"_lastCipherblock"),!n)n=new Uint8Array(16);else if(n.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastCipherblock=U2(n,!0),this._aes=new U6(e)}return w4(t,[{key:"encrypt",value:function(e){if(e=U2(e),e.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var n=I1(e.length),r=I1(16),i=0;i<e.length;i+=16){x2(e,r,0,i,i+16);for(var s=0;s<16;s++)r[s]^=this._lastCipherblock[s];this._lastCipherblock=this._aes.encrypt(r),x2(this._lastCipherblock,n,i)}return n}},{key:"decrypt",value:function(e){if(e=U2(e),e.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var n=I1(e.length),r=I1(16),i=0;i<e.length;i+=16){x2(e,r,0,i,i+16),r=this._aes.decrypt(r);for(var s=0;s<16;s++)n[i+s]=r[s]^this._lastCipherblock[s];x2(e,this._lastCipherblock,0,i,i+16)}return n}}]),t})();var n0={error:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i;(i=console).error.apply(i,["[ERROR]"].concat(k2(n)))},warn:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i;(i=console).warn.apply(i,["[WARN]"].concat(k2(n)))},info:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i;(i=console).info.apply(i,["[INFO]"].concat(k2(n)))},debug:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i;(i=console).log.apply(i,["[DEBUG]"].concat(k2(n)))}};(typeof window>"u"?"undefined":U1(window))<"u";(function(t){t6(n,t);var e=f6(n);function n(r,i){b4(this,n);var s;return s=e.call(this,i),L1(T3(s),"code"),s.code=r,Object.setPrototypeOf(T3(s),(n6(this,n)?this.constructor:void 0).prototype),s}return w4(n,[{key:"toString",value:function(){return"".concat(this.message," (").concat(this.code,")")}}]),n})(j3(Error));function r0(t,e,n,r,i,s,c){try{var l=t[s](c),u=l.value}catch(o){n(o);return}l.done?e(u):Promise.resolve(u).then(r,i)}function A2(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function c(u){r0(s,r,i,c,l,"next",u)}function l(u){r0(s,r,i,c,l,"throw",u)}c(void 0)})}}function F6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function K6(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function V6(t,e,n){return e&&K6(t.prototype,e),t}function H6(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){H6(t,i,n[i])})}return t}function G6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}function o0(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):G6(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}function Q0(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}function O2(t,e){var n,r,i,s,c={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]};return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(o){return function(a){return u([o,a])}}function u(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=o[0]&2?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(i=c.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){c=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(o[0]===6&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=e.call(t,c)}catch(a){o=[6,a],r=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}var Q6=Object.defineProperty,q6=function(t,e,n){return e in t?Q6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},x3=function(t,e,n){return q6(t,(typeof e>"u"?"undefined":Q0(e))!="symbol"?e+"":e,n),n},Z6={Accept:"application/json","Content-Type":"application/json"},J6="POST",s0={headers:Z6,method:J6},Y6=function(){function t(e){if(F6(this,t),this.url=e,x3(this,"events",new Y7),x3(this,"isAvailable",!1),x3(this,"registering",!1),!X4(e))throw new Error("Provided URL is not compatible with HTTP connection: ".concat(e));this.url=e}return V6(t,[{key:"connected",get:function(){return this.isAvailable}},{key:"connecting",get:function(){return this.registering}},{key:"open",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.url,r=this;return A2(function(){return O2(this,function(i){switch(i.label){case 0:return[4,r.register(n)];case 1:return i.sent(),[2]}})})()}},{key:"close",value:function(){var n=this;return A2(function(){return O2(this,function(r){if(!n.isAvailable)throw new Error("Connection already closed");return n.onClose(),[2]})})()}},{key:"request",value:function(e){var n=this;return A2(function(){var r,i,s,c,l;return O2(this,function(u){switch(u.label){case 0:return n0.debug("HttpClient ~ request ~ payload:",e),r=n.isAvailable,r?[3,2]:[4,n.register()];case 1:r=u.sent(),u.label=2;case 2:u.label=3;case 3:return u.trys.push([3,6,,7]),i=e0(e),[4,O.o(n.url,o0(i0({},s0),{body:i}))];case 4:return[4,u.sent().json()];case 5:return s=u.sent(),c=typeof s=="string"?C6(s):s,[2,(n0.debug("HttpClient ~ request ~ result:",c),c)];case 6:return l=u.sent(),[2,n.formatError(e.id,l)];case 7:return[2]}})})()}},{key:"formatError",value:function(e,n){var r=this.parseError(n),i=r.message||r.toString();return k6(e,i)}},{key:"register",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.url,r=this;return A2(function(){var i,s,c;return O2(this,function(l){switch(l.label){case 0:if(!X4(n))throw new Error("Provided URL is not compatible with HTTP connection: ".concat(n));if(r.registering)return[2,new Promise(function(u,o){r.events.once("register_error",function(a){o(a)}),r.events.once("open",function(){if(Q0(r.isAvailable)>"u")return o(new Error("HTTP connection is missing or invalid"));u()})})];r.url=n,r.registering=!0,l.label=1;case 1:return l.trys.push([1,3,,4]),i=e0({id:1,jsonrpc:"2.0",method:"test",params:[]}),[4,O.o(n,o0(i0({},s0),{body:i}))];case 2:return l.sent(),r.onOpen(),[3,4];case 3:throw s=l.sent(),c=r.parseError(s),r.events.emit("register_error",c),r.onClose(),c;case 4:return[2]}})})()}},{key:"onOpen",value:function(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}},{key:"onClose",value:function(){this.isAvailable=!1,this.registering=!1,this.events.emit("open")}},{key:"parseError",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.url;return _6(e,n,"HTTP")}}]),t}(),X6={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(u,o,a){this.fn=u,this.context=o,this.once=a||!1}function s(u,o,a,f,d){if(typeof a!="function")throw new TypeError("The listener must be a function");var y=new i(a,f||u,d),p=n?n+o:o;return u._events[p]?u._events[p].fn?u._events[p]=[u._events[p],y]:u._events[p].push(y):(u._events[p]=y,u._eventsCount++),u}function c(u,o){--u._eventsCount===0?u._events=new r:delete u._events[o]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var o=[],a,f;if(this._eventsCount===0)return o;for(f in a=this._events)e.call(a,f)&&o.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(a)):o},l.prototype.listeners=function(o){var a=n?n+o:o,f=this._events[a];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,y=f.length,p=new Array(y);d<y;d++)p[d]=f[d].fn;return p},l.prototype.listenerCount=function(o){var a=n?n+o:o,f=this._events[a];return f?f.fn?1:f.length:0},l.prototype.emit=function(o,a,f,d,y,p){var g=n?n+o:o;if(!this._events[g])return!1;var h=this._events[g],b=arguments.length,v,m;if(h.fn){switch(h.once&&this.removeListener(o,h.fn,void 0,!0),b){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,a),!0;case 3:return h.fn.call(h.context,a,f),!0;case 4:return h.fn.call(h.context,a,f,d),!0;case 5:return h.fn.call(h.context,a,f,d,y),!0;case 6:return h.fn.call(h.context,a,f,d,y,p),!0}for(m=1,v=new Array(b-1);m<b;m++)v[m-1]=arguments[m];h.fn.apply(h.context,v)}else{var C=h.length,k;for(m=0;m<C;m++)switch(h[m].once&&this.removeListener(o,h[m].fn,void 0,!0),b){case 1:h[m].fn.call(h[m].context);break;case 2:h[m].fn.call(h[m].context,a);break;case 3:h[m].fn.call(h[m].context,a,f);break;case 4:h[m].fn.call(h[m].context,a,f,d);break;default:if(!v)for(k=1,v=new Array(b-1);k<b;k++)v[k-1]=arguments[k];h[m].fn.apply(h[m].context,v)}}return!0},l.prototype.on=function(o,a,f){return s(this,o,a,f,!1)},l.prototype.once=function(o,a,f){return s(this,o,a,f,!0)},l.prototype.removeListener=function(o,a,f,d){var y=n?n+o:o;if(!this._events[y])return this;if(!a)return c(this,y),this;var p=this._events[y];if(p.fn)p.fn===a&&(!d||p.once)&&(!f||p.context===f)&&c(this,y);else{for(var g=0,h=[],b=p.length;g<b;g++)(p[g].fn!==a||d&&!p[g].once||f&&p[g].context!==f)&&h.push(p[g]);h.length?this._events[y]=h.length===1?h[0]:h:c(this,y)}return this},l.prototype.removeAllListeners=function(o){var a;return o?(a=n?n+o:o,this._events[a]&&c(this,a)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,t.exports=l})(X6);function D3(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function k4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function F2(t,e,n){return q0()?F2=Reflect.construct:F2=function(r,i,s){var c=[null];c.push.apply(c,i);var l=Function.bind.apply(r,c),u=new l;return s&&i2(u,s.prototype),u},F2.apply(null,arguments)}function e8(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function E4(t,e,n){return e&&e8(t.prototype,e),t}function k1(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r2(t){return r2=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r2(t)}function t8(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i2(t,e)}function n8(t,e){return e!=null&&typeof Symbol<"u"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function r8(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function i8(t,e){return e&&(g1(e)==="object"||typeof e=="function")?e:D3(t)}function i2(t,e){return i2=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},i2(t,e)}function g1(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}function B3(t){var e=typeof Map=="function"?new Map:void 0;return B3=function(n){if(n===null||!r8(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return F2(n,arguments,r2(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i2(r,n)},B3(t)}function q0(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function o8(t){var e=q0();return function(){var r=r2(t),i;if(e){var s=r2(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return i8(this,i)}}var s8=Object.defineProperty,a8=function(t,e,n){return e in t?s8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},D1=function(t,e,n){return a8(t,(typeof e>"u"?"undefined":g1(e))!="symbol"?e+"":e,n),n},r1,c8="PARSE_ERROR",u8="INVALID_REQUEST",l8="METHOD_NOT_FOUND",f8="INVALID_PARAMS",h8="INTERNAL_ERROR",d8="SERVER_ERROR";r1={},k1(r1,c8,{code:-32700,message:"Parse error"}),k1(r1,u8,{code:-32600,message:"Invalid Request"}),k1(r1,l8,{code:-32601,message:"Method not found"}),k1(r1,f8,{code:-32602,message:"Invalid params"}),k1(r1,h8,{code:-32603,message:"Internal error"}),k1(r1,d8,{code:-32e3,message:"Server error"});function Z0(){return(typeof O.dist.process>"u"?"undefined":g1(O.dist.process))<"u"&&g1(O.dist.process.versions)<"u"&&g1(O.dist.process.versions.node)<"u"}var p8={16:10,24:12,32:14},y8=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],W=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],C2=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],m8=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],g8=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],v8=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],b8=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],w8=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],_8=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],k8=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],E8=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],x8=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],A8=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],O8=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],C8=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function W3(t){return parseInt("".concat(t))===t}function a0(t){if(!W3(t.length))return!1;for(var e=0;e<t.length;e++)if(!W3(t[e])||t[e]<0||t[e]>255)return!1;return!0}function R1(t){return new Uint8Array(t)}function A3(t){for(var e=[],n=0;n<t.length;n+=4)e.push(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]);return e}function K2(t,e){if(t.buffer&&t.name==="Uint8Array")return e&&(t.slice?t=t.slice():t=Array.prototype.slice.call(t)),t;if(Array.isArray(t)){if(!a0(t))throw new Error("Array contains invalid value");return new Uint8Array(t)}if(W3(t.length)&&a0(t))return new Uint8Array(t);throw new Error("unsupported array-like object")}function S2(t,e,n,r,i){(r!=null||i!=null)&&(t.slice?t=t.slice(r,i):t=Array.prototype.slice.call(t,r,i)),e.set(t,n)}var S8=function(){function t(e){k4(this,t),D1(this,"key"),D1(this,"_Ke"),D1(this,"_Kd"),this.key=K2(e,!0),this._prepare()}return E4(t,[{key:"_prepare",value:function(){var n=p8[this.key.length];if(n==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var r=0;r<=n;r++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var i=(n+1)*4,s=this.key.length/4,c=A3(this.key),l,u=0;u<s;u++)l=u>>2,this._Ke[l][u%4]=c[u],this._Kd[n-l][u%4]=c[u];for(var o=0,a=s,f;a<i;){if(f=c[s-1],c[0]^=W[f>>16&255]<<24^W[f>>8&255]<<16^W[f&255]<<8^W[f>>24&255]^y8[o]<<24,o+=1,s!=8)for(var d=1;d<s;d++)c[d]^=c[d-1];else{for(var y=1;y<s/2;y++)c[y]^=c[y-1];f=c[s/2-1],c[s/2]^=W[f&255]^W[f>>8&255]<<8^W[f>>16&255]<<16^W[f>>24&255]<<24;for(var p=s/2+1;p<s;p++)c[p]^=c[p-1]}for(var g=0,h=void 0,b=void 0;g<s&&a<i;)h=a>>2,b=a%4,this._Ke[h][b]=c[g],this._Kd[n-h][b]=c[g++],a++}for(var v=1;v<n;v++)for(var m=0;m<4;m++)f=this._Kd[v][m],this._Kd[v][m]=x8[f>>24&255]^A8[f>>16&255]^O8[f>>8&255]^C8[f&255]}},{key:"encrypt",value:function(e){if(e.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var n=this._Ke.length-1,r=[0,0,0,0],i=A3(e),s=0;s<4;s++)i[s]^=this._Ke[0][s];for(var c=1;c<n;c++){for(var l=0;l<4;l++)r[l]=m8[i[l]>>24&255]^g8[i[(l+1)%4]>>16&255]^v8[i[(l+2)%4]>>8&255]^b8[i[(l+3)%4]&255]^this._Ke[c][l];i=r.slice()}for(var u=R1(16),o,a=0;a<4;a++)o=this._Ke[n][a],u[4*a]=(W[i[a]>>24&255]^o>>24)&255,u[4*a+1]=(W[i[(a+1)%4]>>16&255]^o>>16)&255,u[4*a+2]=(W[i[(a+2)%4]>>8&255]^o>>8)&255,u[4*a+3]=(W[i[(a+3)%4]&255]^o)&255;return u}},{key:"decrypt",value:function(e){if(e.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var n=this._Kd.length-1,r=[0,0,0,0],i=A3(e),s=0;s<4;s++)i[s]^=this._Kd[0][s];for(var c=1;c<n;c++){for(var l=0;l<4;l++)r[l]=w8[i[l]>>24&255]^_8[i[(l+3)%4]>>16&255]^k8[i[(l+2)%4]>>8&255]^E8[i[(l+1)%4]&255]^this._Kd[c][l];i=r.slice()}for(var u=R1(16),o,a=0;a<4;a++)o=this._Kd[n][a],u[4*a]=(C2[i[a]>>24&255]^o>>24)&255,u[4*a+1]=(C2[i[(a+3)%4]>>16&255]^o>>16)&255,u[4*a+2]=(C2[i[(a+2)%4]>>8&255]^o>>8)&255,u[4*a+3]=(C2[i[(a+1)%4]&255]^o)&255;return u}}]),t}();(function(){function t(e,n){if(k4(this,t),D1(this,"_aes"),D1(this,"_lastCipherblock"),!n)n=new Uint8Array(16);else if(n.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastCipherblock=K2(n,!0),this._aes=new S8(e)}return E4(t,[{key:"encrypt",value:function(e){if(e=K2(e),e.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var n=R1(e.length),r=R1(16),i=0;i<e.length;i+=16){S2(e,r,0,i,i+16);for(var s=0;s<16;s++)r[s]^=this._lastCipherblock[s];this._lastCipherblock=this._aes.encrypt(r),S2(this._lastCipherblock,n,i)}return n}},{key:"decrypt",value:function(e){if(e=K2(e),e.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var n=R1(e.length),r=R1(16),i=0;i<e.length;i+=16){S2(e,r,0,i,i+16),r=this._aes.decrypt(r);for(var s=0;s<16;s++)n[i+s]=r[s]^this._lastCipherblock[s];S2(e,this._lastCipherblock,0,i,i+16)}return n}}]),t})();(typeof window>"u"?"undefined":g1(window))<"u";(function(t){t8(n,t);var e=o8(n);function n(r,i){k4(this,n);var s;return s=e.call(this,i),D1(D3(s),"code"),s.code=r,Object.setPrototypeOf(D3(s),(n8(this,n)?this.constructor:void 0).prototype),s}return E4(n,[{key:"toString",value:function(){return"".concat(this.message," (").concat(this.code,")")}}]),n})(B3(Error));var J0=function(){return!!(g1(window.navigator)>"u"?"":navigator.userAgent).match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i)},$8=function(){return!!navigator.userAgent.match(/Android/i)},Y0=function(t,e){var n="appId=xoqXxUSMRccLCrZNRebmzj&startPagePath=L3BhZ2VzL2Rhc2hib2FyZC1uZXcvaW5kZXg=";if(e){var r=F4("wc=".concat(encodeURIComponent(e),"&isDeepLink=true&id=").concat(+new Date));n="".concat(n,"&startPageQuery=").concat(r)}var i="//app.binance.com";return t?"bnc:".concat(i,"/mp/app?").concat(n):"https:".concat(i,"/?_dp=").concat(F4("/mp/app?".concat(n)))},I8=function(t){var e=J0(),n=Y0(!0,t);if(e){var r=document.createElement("a");r.href=n,document.body.appendChild(r),r.click(),document.body.removeChild(r)}},z3,$2=F5;if(O.dist.process.env.NODE_ENV==="production")z3=$2.createRoot,$2.hydrateRoot;else{var c0=$2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;z3=function(t,e){c0.usingClientEntryPoint=!0;try{return $2.createRoot(t,e)}finally{c0.usingClientEntryPoint=!1}}}var R8=Object.defineProperty,i3=Object.getOwnPropertySymbols,X0=Object.prototype.hasOwnProperty,e5=Object.prototype.propertyIsEnumerable,u0=(t,e,n)=>e in t?R8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,N8=(t,e)=>{for(var n in e||(e={}))X0.call(e,n)&&u0(t,n,e[n]);if(i3)for(var n of i3(e))e5.call(e,n)&&u0(t,n,e[n]);return t},P8=(t,e)=>{var n={};for(var r in t)X0.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&i3)for(var r of i3(t))e.indexOf(r)<0&&e5.call(t,r)&&(n[r]=t[r]);return n};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("./index-BU_DiszY.js"),D4=require("./evm-C-UXATlx.js"),_=require("react"),F5=require("react-dom"),w=require("./index-KWDNKPJe.js");function K5(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const _3=K5(_),z1=typeof O.dist.Buffer=="function",B4=typeof TextDecoder=="function"?new TextDecoder:void 0,W4=typeof TextEncoder=="function"?new TextEncoder:void 0,V5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",H1=Array.prototype.slice.call(V5),m2=(t=>{let e={};return t.forEach((n,r)=>e[n]=r),e})(H1),H5=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,R=String.fromCharCode.bind(String),z4=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),G5=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),I0=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),Q5=t=>{let e,n,r,i,s="";const c=t.length%3;for(let l=0;l<t.length;){if((n=t.charCodeAt(l++))>255||(r=t.charCodeAt(l++))>255||(i=t.charCodeAt(l++))>255)throw new TypeError("invalid character found");e=n<<16|r<<8|i,s+=H1[e>>18&63]+H1[e>>12&63]+H1[e>>6&63]+H1[e&63]}return c?s.slice(0,c-3)+"===".substring(c):s},R0=typeof btoa=="function"?t=>btoa(t):z1?t=>O.dist.Buffer.from(t,"binary").toString("base64"):Q5,q5=z1?t=>O.dist.Buffer.from(t).toString("base64"):t=>{let n=[];for(let r=0,i=t.length;r<i;r+=4096)n.push(R.apply(null,t.subarray(r,r+4096)));return R0(n.join(""))},Z5=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?R(192|e>>>6)+R(128|e&63):R(224|e>>>12&15)+R(128|e>>>6&63)+R(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return R(240|e>>>18&7)+R(128|e>>>12&63)+R(128|e>>>6&63)+R(128|e&63)}},J5=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Y5=t=>t.replace(J5,Z5),U4=z1?t=>O.dist.Buffer.from(t,"utf8").toString("base64"):W4?t=>q5(W4.encode(t)):t=>R0(Y5(t)),X5=(t,e=!1)=>e?G5(U4(t)):U4(t),F4=t=>X5(t,!0),e7=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,t7=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),n=e-65536;return R((n>>>10)+55296)+R((n&1023)+56320);case 3:return R((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return R((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},n7=t=>t.replace(e7,t7),r7=t=>{if(t=t.replace(/\s+/g,""),!H5.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,n="",r,i;for(let s=0;s<t.length;)e=m2[t.charAt(s++)]<<18|m2[t.charAt(s++)]<<12|(r=m2[t.charAt(s++)])<<6|(i=m2[t.charAt(s++)]),n+=r===64?R(e>>16&255):i===64?R(e>>16&255,e>>8&255):R(e>>16&255,e>>8&255,e&255);return n},N0=typeof atob=="function"?t=>atob(I0(t)):z1?t=>O.dist.Buffer.from(t,"base64").toString("binary"):r7,i7=z1?t=>z4(O.dist.Buffer.from(t,"base64")):t=>z4(N0(t).split("").map(e=>e.charCodeAt(0))),o7=z1?t=>O.dist.Buffer.from(t,"base64").toString("utf8"):B4?t=>B4.decode(i7(t)):t=>n7(N0(t)),s7=t=>I0(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),a7=t=>o7(s7(t)),c7="bignumber/5.7.0";var e3=O.BN.BN;const Y=new w.Logger(c7),k3={},K4=9007199254740991;let V4=!1;class S{constructor(e,n){e!==k3&&Y.throwError("cannot call constructor directly; use BigNumber.from",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=n,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return j(E(this).fromTwos(e))}toTwos(e){return j(E(this).toTwos(e))}abs(){return this._hex[0]==="-"?S.from(this._hex.substring(1)):this}add(e){return j(E(this).add(E(e)))}sub(e){return j(E(this).sub(E(e)))}div(e){return S.from(e).isZero()&&D("division-by-zero","div"),j(E(this).div(E(e)))}mul(e){return j(E(this).mul(E(e)))}mod(e){const n=E(e);return n.isNeg()&&D("division-by-zero","mod"),j(E(this).umod(n))}pow(e){const n=E(e);return n.isNeg()&&D("negative-power","pow"),j(E(this).pow(n))}and(e){const n=E(e);return(this.isNegative()||n.isNeg())&&D("unbound-bitwise-result","and"),j(E(this).and(n))}or(e){const n=E(e);return(this.isNegative()||n.isNeg())&&D("unbound-bitwise-result","or"),j(E(this).or(n))}xor(e){const n=E(e);return(this.isNegative()||n.isNeg())&&D("unbound-bitwise-result","xor"),j(E(this).xor(n))}mask(e){return(this.isNegative()||e<0)&&D("negative-width","mask"),j(E(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&D("negative-width","shl"),j(E(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&D("negative-width","shr"),j(E(this).shrn(e))}eq(e){return E(this).eq(E(e))}lt(e){return E(this).lt(E(e))}lte(e){return E(this).lte(E(e))}gt(e){return E(this).gt(E(e))}gte(e){return E(this).gte(E(e))}isNegative(){return this._hex[0]==="-"}isZero(){return E(this).isZero()}toNumber(){try{return E(this).toNumber()}catch{D("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return Y.throwError("this platform does not support BigInt",w.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?V4||(V4=!0,Y.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Y.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",w.Logger.errors.UNEXPECTED_ARGUMENT,{}):Y.throwError("BigNumber.toString does not accept parameters",w.Logger.errors.UNEXPECTED_ARGUMENT,{})),E(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof S)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new S(k3,J1(e)):e.match(/^-?[0-9]+$/)?new S(k3,J1(new e3(e))):Y.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&D("underflow","BigNumber.from",e),(e>=K4||e<=-K4)&&D("overflow","BigNumber.from",e),S.from(String(e));const n=e;if(typeof n=="bigint")return S.from(n.toString());if(w.isBytes(n))return S.from(w.hexlify(n));if(n)if(n.toHexString){const r=n.toHexString();if(typeof r=="string")return S.from(r)}else{let r=n._hex;if(r==null&&n.type==="BigNumber"&&(r=n.hex),typeof r=="string"&&(w.isHexString(r)||r[0]==="-"&&w.isHexString(r.substring(1))))return S.from(r)}return Y.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function J1(t){if(typeof t!="string")return J1(t.toString(16));if(t[0]==="-")return t=t.substring(1),t[0]==="-"&&Y.throwArgumentError("invalid hex","value",t),t=J1(t),t==="0x00"?t:"-"+t;if(t.substring(0,2)!=="0x"&&(t="0x"+t),t==="0x")return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&t.substring(0,4)==="0x00";)t="0x"+t.substring(4);return t}function j(t){return S.from(J1(t))}function E(t){const e=S.from(t).toHexString();return e[0]==="-"?new e3("-"+e.substring(3),16):new e3(e.substring(2),16)}function D(t,e,n){const r={fault:t,operation:e};return n!=null&&(r.value=n),Y.throwError(t,w.Logger.errors.NUMERIC_FAULT,r)}function u7(t){return new e3(t,36).toString(16)}const l7="properties/5.7.0",P0=new w.Logger(l7);function N(t,e,n){Object.defineProperty(t,e,{enumerable:!0,value:n,writable:!1})}function g2(t,e){for(let n=0;n<32;n++){if(t[e])return t[e];if(!t.prototype||typeof t.prototype!="object")break;t=Object.getPrototypeOf(t.prototype).constructor}return null}const f7={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function M0(t){if(t==null||f7[typeof t])return!0;if(Array.isArray(t)||typeof t=="object"){if(!Object.isFrozen(t))return!1;const e=Object.keys(t);for(let n=0;n<e.length;n++){let r=null;try{r=t[e[n]]}catch{continue}if(!M0(r))return!1}return!0}return P0.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}function h7(t){if(M0(t))return t;if(Array.isArray(t))return Object.freeze(t.map(e=>R3(e)));if(typeof t=="object"){const e={};for(const n in t){const r=t[n];r!==void 0&&N(e,n,R3(r))}return e}return P0.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}function R3(t){return h7(t)}class h3{constructor(e){for(const n in e)this[n]=R3(e[n])}}const p2="abi/5.7.0",x=new w.Logger(p2),b1={};let H4={calldata:!0,memory:!0,storage:!0},d7={calldata:!0,memory:!0};function v2(t,e){if(t==="bytes"||t==="string"){if(H4[e])return!0}else if(t==="address"){if(e==="payable")return!0}else if((t.indexOf("[")>=0||t==="tuple")&&d7[e])return!0;return(H4[e]||e==="payable")&&x.throwArgumentError("invalid modifier","name",e),!1}function p7(t,e){let n=t;function r(l){x.throwArgumentError(`unexpected character at position ${l}`,"param",t)}t=t.replace(/\s/g," ");function i(l){let u={type:"",name:"",parent:l,state:{allowType:!0}};return e&&(u.indexed=!1),u}let s={type:"",name:"",state:{allowType:!0}},c=s;for(let l=0;l<t.length;l++){let u=t[l];switch(u){case"(":c.state.allowType&&c.type===""?c.type="tuple":c.state.allowParams||r(l),c.state.allowType=!1,c.type=S1(c.type),c.components=[i(c)],c=c.components[0];break;case")":delete c.state,c.name==="indexed"&&(e||r(l),c.indexed=!0,c.name=""),v2(c.type,c.name)&&(c.name=""),c.type=S1(c.type);let o=c;c=c.parent,c||r(l),delete o.parent,c.state.allowParams=!1,c.state.allowName=!0,c.state.allowArray=!0;break;case",":delete c.state,c.name==="indexed"&&(e||r(l),c.indexed=!0,c.name=""),v2(c.type,c.name)&&(c.name=""),c.type=S1(c.type);let a=i(c.parent);c.parent.components.push(a),delete c.parent,c=a;break;case" ":c.state.allowType&&c.type!==""&&(c.type=S1(c.type),delete c.state.allowType,c.state.allowName=!0,c.state.allowParams=!0),c.state.allowName&&c.name!==""&&(c.name==="indexed"?(e||r(l),c.indexed&&r(l),c.indexed=!0,c.name=""):v2(c.type,c.name)?c.name="":c.state.allowName=!1);break;case"[":c.state.allowArray||r(l),c.type+=u,c.state.allowArray=!1,c.state.allowName=!1,c.state.readArray=!0;break;case"]":c.state.readArray||r(l),c.type+=u,c.state.readArray=!1,c.state.allowArray=!0,c.state.allowName=!0;break;default:c.state.allowType?(c.type+=u,c.state.allowParams=!0,c.state.allowArray=!0):c.state.allowName?(c.name+=u,delete c.state.allowArray):c.state.readArray?c.type+=u:r(l)}}return c.parent&&x.throwArgumentError("unexpected eof","param",t),delete s.state,c.name==="indexed"?(e||r(n.length-7),c.indexed&&r(n.length-7),c.indexed=!0,c.name=""):v2(c.type,c.name)&&(c.name=""),s.type=S1(s.type),s}function W2(t,e){for(let n in e)N(t,n,e[n])}const A=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),y7=new RegExp(/^(.*)\[([0-9]*)\]$/);class I{constructor(e,n){e!==b1&&x.throwError("use fromString",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),W2(this,n);let r=this.type.match(y7);r?W2(this,{arrayLength:parseInt(r[2]||"-1"),arrayChildren:I.fromObject({type:r[1],components:this.components}),baseType:"array"}):W2(this,{arrayLength:null,arrayChildren:null,baseType:this.components!=null?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=A.sighash),A[e]||x.throwArgumentError("invalid format type","format",e),e===A.json){let r={type:this.baseType==="tuple"?"tuple":this.type,name:this.name||void 0};return typeof this.indexed=="boolean"&&(r.indexed=this.indexed),this.components&&(r.components=this.components.map(i=>JSON.parse(i.format(e)))),JSON.stringify(r)}let n="";return this.baseType==="array"?(n+=this.arrayChildren.format(e),n+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):this.baseType==="tuple"?(e!==A.sighash&&(n+=this.type),n+="("+this.components.map(r=>r.format(e)).join(e===A.full?", ":",")+")"):n+=this.type,e!==A.sighash&&(this.indexed===!0&&(n+=" indexed"),e===A.full&&this.name&&(n+=" "+this.name)),n}static from(e,n){return typeof e=="string"?I.fromString(e,n):I.fromObject(e)}static fromObject(e){return I.isParamType(e)?e:new I(b1,{name:e.name||null,type:S1(e.type),indexed:e.indexed==null?null:!!e.indexed,components:e.components?e.components.map(I.fromObject):null})}static fromString(e,n){function r(i){return I.fromObject({name:i.name,type:i.type,indexed:i.indexed,components:i.components})}return r(p7(e,!!n))}static isParamType(e){return!!(e!=null&&e._isParamType)}}function Y1(t,e){return g7(t).map(n=>I.fromString(n,e))}class e1{constructor(e,n){e!==b1&&x.throwError("use a static from method",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),W2(this,n),this._isFragment=!0,Object.freeze(this)}static from(e){return e1.isFragment(e)?e:typeof e=="string"?e1.fromString(e):e1.fromObject(e)}static fromObject(e){if(e1.isFragment(e))return e;switch(e.type){case"function":return Z.fromObject(e);case"event":return X.fromObject(e);case"constructor":return q.fromObject(e);case"error":return l1.fromObject(e);case"fallback":case"receive":return null}return x.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return e=e.replace(/\s/g," "),e=e.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),e=e.trim(),e.split(" ")[0]==="event"?X.fromString(e.substring(5).trim()):e.split(" ")[0]==="function"?Z.fromString(e.substring(8).trim()):e.split("(")[0].trim()==="constructor"?q.fromString(e.trim()):e.split(" ")[0]==="error"?l1.fromString(e.substring(5).trim()):x.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class X extends e1{format(e){if(e||(e=A.sighash),A[e]||x.throwArgumentError("invalid format type","format",e),e===A.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(r=>JSON.parse(r.format(e)))});let n="";return e!==A.sighash&&(n+="event "),n+=this.name+"("+this.inputs.map(r=>r.format(e)).join(e===A.full?", ":",")+") ",e!==A.sighash&&this.anonymous&&(n+="anonymous "),n.trim()}static from(e){return typeof e=="string"?X.fromString(e):X.fromObject(e)}static fromObject(e){if(X.isEventFragment(e))return e;e.type!=="event"&&x.throwArgumentError("invalid event object","value",e);const n={name:X1(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(I.fromObject):[],type:"event"};return new X(b1,n)}static fromString(e){let n=e.match(e2);n||x.throwArgumentError("invalid event string","value",e);let r=!1;return n[3].split(" ").forEach(i=>{switch(i.trim()){case"anonymous":r=!0;break;case"":break;default:x.warn("unknown modifier: "+i)}}),X.fromObject({name:n[1].trim(),anonymous:r,inputs:Y1(n[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&e.type==="event"}}function T0(t,e){e.gas=null;let n=t.split("@");return n.length!==1?(n.length>2&&x.throwArgumentError("invalid human-readable ABI signature","value",t),n[1].match(/^[0-9]+$/)||x.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=S.from(n[1]),n[0]):t}function j0(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach(n=>{switch(n.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+n)}})}function L0(t){let e={constant:!1,payable:!0,stateMutability:"payable"};return t.stateMutability!=null?(e.stateMutability=t.stateMutability,e.constant=e.stateMutability==="view"||e.stateMutability==="pure",t.constant!=null&&!!t.constant!==e.constant&&x.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable=e.stateMutability==="payable",t.payable!=null&&!!t.payable!==e.payable&&x.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):t.payable!=null?(e.payable=!!t.payable,t.constant==null&&!e.payable&&t.type!=="constructor"&&x.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&x.throwArgumentError("cannot have constant payable function","value",t)):t.constant!=null?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):t.type!=="constructor"&&x.throwArgumentError("unable to determine stateMutability","value",t),e}class q extends e1{format(e){if(e||(e=A.sighash),A[e]||x.throwArgumentError("invalid format type","format",e),e===A.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(r=>JSON.parse(r.format(e)))});e===A.sighash&&x.throwError("cannot format a constructor for sighash",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let n="constructor("+this.inputs.map(r=>r.format(e)).join(e===A.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "),n.trim()}static from(e){return typeof e=="string"?q.fromString(e):q.fromObject(e)}static fromObject(e){if(q.isConstructorFragment(e))return e;e.type!=="constructor"&&x.throwArgumentError("invalid constructor object","value",e);let n=L0(e);n.constant&&x.throwArgumentError("constructor cannot be constant","value",e);const r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(I.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:e.gas?S.from(e.gas):null};return new q(b1,r)}static fromString(e){let n={type:"constructor"};e=T0(e,n);let r=e.match(e2);return(!r||r[1].trim()!=="constructor")&&x.throwArgumentError("invalid constructor string","value",e),n.inputs=Y1(r[2].trim(),!1),j0(r[3].trim(),n),q.fromObject(n)}static isConstructorFragment(e){return e&&e._isFragment&&e.type==="constructor"}}class Z extends q{format(e){if(e||(e=A.sighash),A[e]||x.throwArgumentError("invalid format type","format",e),e===A.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(r=>JSON.parse(r.format(e))),outputs:this.outputs.map(r=>JSON.parse(r.format(e)))});let n="";return e!==A.sighash&&(n+="function "),n+=this.name+"("+this.inputs.map(r=>r.format(e)).join(e===A.full?", ":",")+") ",e!==A.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "):this.constant&&(n+="view "),this.outputs&&this.outputs.length&&(n+="returns ("+this.outputs.map(r=>r.format(e)).join(", ")+") "),this.gas!=null&&(n+="@"+this.gas.toString()+" ")),n.trim()}static from(e){return typeof e=="string"?Z.fromString(e):Z.fromObject(e)}static fromObject(e){if(Z.isFunctionFragment(e))return e;e.type!=="function"&&x.throwArgumentError("invalid function object","value",e);let n=L0(e);const r={type:e.type,name:X1(e.name),constant:n.constant,inputs:e.inputs?e.inputs.map(I.fromObject):[],outputs:e.outputs?e.outputs.map(I.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:e.gas?S.from(e.gas):null};return new Z(b1,r)}static fromString(e){let n={type:"function"};e=T0(e,n);let r=e.split(" returns ");r.length>2&&x.throwArgumentError("invalid function string","value",e);let i=r[0].match(e2);if(i||x.throwArgumentError("invalid function signature","value",e),n.name=i[1].trim(),n.name&&X1(n.name),n.inputs=Y1(i[2],!1),j0(i[3].trim(),n),r.length>1){let s=r[1].match(e2);(s[1].trim()!=""||s[3].trim()!="")&&x.throwArgumentError("unexpected tokens","value",e),n.outputs=Y1(s[2],!1)}else n.outputs=[];return Z.fromObject(n)}static isFunctionFragment(e){return e&&e._isFragment&&e.type==="function"}}function G4(t){const e=t.format();return(e==="Error(string)"||e==="Panic(uint256)")&&x.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}class l1 extends e1{format(e){if(e||(e=A.sighash),A[e]||x.throwArgumentError("invalid format type","format",e),e===A.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(r=>JSON.parse(r.format(e)))});let n="";return e!==A.sighash&&(n+="error "),n+=this.name+"("+this.inputs.map(r=>r.format(e)).join(e===A.full?", ":",")+") ",n.trim()}static from(e){return typeof e=="string"?l1.fromString(e):l1.fromObject(e)}static fromObject(e){if(l1.isErrorFragment(e))return e;e.type!=="error"&&x.throwArgumentError("invalid error object","value",e);const n={type:e.type,name:X1(e.name),inputs:e.inputs?e.inputs.map(I.fromObject):[]};return G4(new l1(b1,n))}static fromString(e){let n={type:"error"},r=e.match(e2);return r||x.throwArgumentError("invalid error signature","value",e),n.name=r[1].trim(),n.name&&X1(n.name),n.inputs=Y1(r[2],!1),G4(l1.fromObject(n))}static isErrorFragment(e){return e&&e._isFragment&&e.type==="error"}}function S1(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}const m7=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function X1(t){return(!t||!t.match(m7))&&x.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}const e2=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function g7(t){t=t.trim();let e=[],n="",r=0;for(let i=0;i<t.length;i++){let s=t[i];s===","&&r===0?(e.push(n),n=""):(n+=s,s==="("?r++:s===")"&&(r--,r===-1&&x.throwArgumentError("unbalanced parenthesis","value",t)))}return n&&e.push(n),e}const g4=new w.Logger(p2);class t1{constructor(e,n,r,i){this.name=e,this.type=n,this.localName=r,this.dynamic=i}_throwError(e,n){g4.throwArgumentError(e,this.localName,n)}}class N3{constructor(e){N(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return w.hexConcat(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData(w.concat(e._data))}writeBytes(e){let n=w.arrayify(e);const r=n.length%this.wordSize;return r&&(n=w.concat([n,this._padding.slice(r)])),this._writeData(n)}_getValue(e){let n=w.arrayify(S.from(e));return n.length>this.wordSize&&g4.throwError("value out-of-bounds",w.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:n.length}),n.length%this.wordSize&&(n=w.concat([this._padding.slice(n.length%this.wordSize),n])),n}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,n=>{this._data[e]=this._getValue(n)}}}class t3{constructor(e,n,r,i){N(this,"_data",w.arrayify(e)),N(this,"wordSize",n||32),N(this,"_coerceFunc",r),N(this,"allowLoose",i),this._offset=0}get data(){return w.hexlify(this._data)}get consumed(){return this._offset}static coerce(e,n){let r=e.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(n=n.toNumber()),n}coerce(e,n){return this._coerceFunc?this._coerceFunc(e,n):t3.coerce(e,n)}_peekBytes(e,n,r){let i=Math.ceil(n/this.wordSize)*this.wordSize;return this._offset+i>this._data.length&&(this.allowLoose&&r&&this._offset+n<=this._data.length?i=n:g4.throwError("data out-of-bounds",w.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+i})),this._data.slice(this._offset,this._offset+i)}subReader(e){return new t3(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,n){let r=this._peekBytes(0,e,!!n);return this._offset+=r.length,r.slice(0,e)}readValue(){return S.from(this.readBytes(this.wordSize))}}function n3(t){return"0x"+O.sha3$1.keccak_256(w.arrayify(t))}const v7="address/5.7.0",G1=new w.Logger(v7);function Q4(t){w.isHexString(t,20)||G1.throwArgumentError("invalid address","address",t),t=t.toLowerCase();const e=t.substring(2).split(""),n=new Uint8Array(40);for(let i=0;i<40;i++)n[i]=e[i].charCodeAt(0);const r=w.arrayify(n3(n));for(let i=0;i<40;i+=2)r[i>>1]>>4>=8&&(e[i]=e[i].toUpperCase()),(r[i>>1]&15)>=8&&(e[i+1]=e[i+1].toUpperCase());return"0x"+e.join("")}const b7=9007199254740991;function w7(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}const v4={};for(let t=0;t<10;t++)v4[String(t)]=String(t);for(let t=0;t<26;t++)v4[String.fromCharCode(65+t)]=String(10+t);const q4=Math.floor(w7(b7));function _7(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(r=>v4[r]).join("");for(;e.length>=q4;){let r=e.substring(0,q4);e=parseInt(r,10)%97+e.substring(r.length)}let n=String(98-parseInt(e,10)%97);for(;n.length<2;)n="0"+n;return n}function P3(t){let e=null;if(typeof t!="string"&&G1.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))t.substring(0,2)!=="0x"&&(t="0x"+t),e=Q4(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&G1.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)!==_7(t)&&G1.throwArgumentError("bad icap checksum","address",t),e=u7(t.substring(4));e.length<40;)e="0"+e;e=Q4("0x"+e)}else G1.throwArgumentError("invalid address","address",t);return e}class k7 extends t1{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,n){try{n=P3(n)}catch(r){this._throwError(r.message,n)}return e.writeValue(n)}decode(e){return P3(w.hexZeroPad(e.readValue().toHexString(),20))}}class E7 extends t1{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,n){return this.coder.encode(e,n)}decode(e){return this.coder.decode(e)}}const $1=new w.Logger(p2);function D0(t,e,n){let r=null;if(Array.isArray(n))r=n;else if(n&&typeof n=="object"){let u={};r=e.map(o=>{const a=o.localName;return a||$1.throwError("cannot encode object for signature with missing names",w.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:o,value:n}),u[a]&&$1.throwError("cannot encode object for signature with duplicate names",w.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:o,value:n}),u[a]=!0,n[a]})}else $1.throwArgumentError("invalid tuple value","tuple",n);e.length!==r.length&&$1.throwArgumentError("types/value length mismatch","tuple",n);let i=new N3(t.wordSize),s=new N3(t.wordSize),c=[];e.forEach((u,o)=>{let a=r[o];if(u.dynamic){let f=s.length;u.encode(s,a);let d=i.writeUpdatableValue();c.push(y=>{d(y+f)})}else u.encode(i,a)}),c.forEach(u=>{u(i.length)});let l=t.appendWriter(i);return l+=t.appendWriter(s),l}function B0(t,e){let n=[],r=t.subReader(0);e.forEach(s=>{let c=null;if(s.dynamic){let l=t.readValue(),u=r.subReader(l.toNumber());try{c=s.decode(u)}catch(o){if(o.code===w.Logger.errors.BUFFER_OVERRUN)throw o;c=o,c.baseType=s.name,c.name=s.localName,c.type=s.type}}else try{c=s.decode(t)}catch(l){if(l.code===w.Logger.errors.BUFFER_OVERRUN)throw l;c=l,c.baseType=s.name,c.name=s.localName,c.type=s.type}c!=null&&n.push(c)});const i=e.reduce((s,c)=>{const l=c.localName;return l&&(s[l]||(s[l]=0),s[l]++),s},{});e.forEach((s,c)=>{let l=s.localName;if(!l||i[l]!==1||(l==="length"&&(l="_length"),n[l]!=null))return;const u=n[c];u instanceof Error?Object.defineProperty(n,l,{enumerable:!0,get:()=>{throw u}}):n[l]=u});for(let s=0;s<n.length;s++){const c=n[s];c instanceof Error&&Object.defineProperty(n,s,{enumerable:!0,get:()=>{throw c}})}return Object.freeze(n)}class x7 extends t1{constructor(e,n,r){const i=e.type+"["+(n>=0?n:"")+"]",s=n===-1||e.dynamic;super("array",i,r,s),this.coder=e,this.length=n}defaultValue(){const e=this.coder.defaultValue(),n=[];for(let r=0;r<this.length;r++)n.push(e);return n}encode(e,n){Array.isArray(n)||this._throwError("expected array value",n);let r=this.length;r===-1&&(r=n.length,e.writeValue(n.length)),$1.checkArgumentCount(n.length,r,"coder array"+(this.localName?" "+this.localName:""));let i=[];for(let s=0;s<n.length;s++)i.push(this.coder);return D0(e,i,n)}decode(e){let n=this.length;n===-1&&(n=e.readValue().toNumber(),n*32>e._data.length&&$1.throwError("insufficient data length",w.Logger.errors.BUFFER_OVERRUN,{length:e._data.length,count:n}));let r=[];for(let i=0;i<n;i++)r.push(new E7(this.coder));return e.coerce(this.name,B0(e,r))}}class A7 extends t1{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,n){return e.writeValue(n?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}class W0 extends t1{constructor(e,n){super(e,e,n,!0)}defaultValue(){return"0x"}encode(e,n){n=w.arrayify(n);let r=e.writeValue(n.length);return r+=e.writeBytes(n),r}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class O7 extends W0{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,w.hexlify(super.decode(e)))}}class C7 extends t1{constructor(e,n){let r="bytes"+String(e);super(r,r,n,!1),this.size=e}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)}encode(e,n){let r=w.arrayify(n);return r.length!==this.size&&this._throwError("incorrect data length",n),e.writeBytes(r)}decode(e){return e.coerce(this.name,w.hexlify(e.readBytes(this.size)))}}class S7 extends t1{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,n){return n!=null&&this._throwError("not null",n),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}const $7=S.from(-1),I7=S.from(0),R7=S.from(1),N7=S.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class P7 extends t1{constructor(e,n,r){const i=(n?"int":"uint")+e*8;super(i,i,r,!1),this.size=e,this.signed=n}defaultValue(){return 0}encode(e,n){let r=S.from(n),i=N7.mask(e.wordSize*8);if(this.signed){let s=i.mask(this.size*8-1);(r.gt(s)||r.lt(s.add(R7).mul($7)))&&this._throwError("value out-of-bounds",n)}else(r.lt(I7)||r.gt(i.mask(this.size*8)))&&this._throwError("value out-of-bounds",n);return r=r.toTwos(this.size*8).mask(this.size*8),this.signed&&(r=r.fromTwos(this.size*8).toTwos(8*e.wordSize)),e.writeValue(r)}decode(e){let n=e.readValue().mask(this.size*8);return this.signed&&(n=n.fromTwos(this.size*8)),e.coerce(this.name,n)}}const M7="strings/5.7.0",z0=new w.Logger(M7);var r3;(function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"})(r3||(r3={}));var L;(function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"})(L||(L={}));function T7(t,e,n,r,i){return z0.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",n)}function U0(t,e,n,r,i){if(t===L.BAD_PREFIX||t===L.UNEXPECTED_CONTINUE){let s=0;for(let c=e+1;c<n.length&&n[c]>>6===2;c++)s++;return s}return t===L.OVERRUN?n.length-e-1:0}function j7(t,e,n,r,i){return t===L.OVERLONG?(r.push(i),0):(r.push(65533),U0(t,e,n))}const L7=Object.freeze({error:T7,ignore:U0,replace:j7});function D7(t,e){e==null&&(e=L7.error),t=w.arrayify(t);const n=[];let r=0;for(;r<t.length;){const i=t[r++];if(!(i>>7)){n.push(i);continue}let s=null,c=null;if((i&224)===192)s=1,c=127;else if((i&240)===224)s=2,c=2047;else if((i&248)===240)s=3,c=65535;else{(i&192)===128?r+=e(L.UNEXPECTED_CONTINUE,r-1,t,n):r+=e(L.BAD_PREFIX,r-1,t,n);continue}if(r-1+s>=t.length){r+=e(L.OVERRUN,r-1,t,n);continue}let l=i&(1<<8-s-1)-1;for(let u=0;u<s;u++){let o=t[r];if((o&192)!=128){r+=e(L.MISSING_CONTINUE,r,t,n),l=null;break}l=l<<6|o&63,r++}if(l!==null){if(l>1114111){r+=e(L.OUT_OF_RANGE,r-1-s,t,n,l);continue}if(l>=55296&&l<=57343){r+=e(L.UTF16_SURROGATE,r-1-s,t,n,l);continue}if(l<=c){r+=e(L.OVERLONG,r-1-s,t,n,l);continue}n.push(l)}}return n}function F0(t,e=r3.current){e!=r3.current&&(z0.checkNormalize(),t=t.normalize(e));let n=[];for(let r=0;r<t.length;r++){const i=t.charCodeAt(r);if(i<128)n.push(i);else if(i<2048)n.push(i>>6|192),n.push(i&63|128);else if((i&64512)==55296){r++;const s=t.charCodeAt(r);if(r>=t.length||(s&64512)!==56320)throw new Error("invalid utf-8 string");const c=65536+((i&1023)<<10)+(s&1023);n.push(c>>18|240),n.push(c>>12&63|128),n.push(c>>6&63|128),n.push(c&63|128)}else n.push(i>>12|224),n.push(i>>6&63|128),n.push(i&63|128)}return w.arrayify(n)}function B7(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function W7(t,e){return B7(D7(t,e))}class z7 extends W0{constructor(e){super("string",e)}defaultValue(){return""}encode(e,n){return super.encode(e,F0(n))}decode(e){return W7(super.decode(e))}}class b2 extends t1{constructor(e,n){let r=!1;const i=[];e.forEach(c=>{c.dynamic&&(r=!0),i.push(c.type)});const s="tuple("+i.join(",")+")";super("tuple",s,n,r),this.coders=e}defaultValue(){const e=[];this.coders.forEach(r=>{e.push(r.defaultValue())});const n=this.coders.reduce((r,i)=>{const s=i.localName;return s&&(r[s]||(r[s]=0),r[s]++),r},{});return this.coders.forEach((r,i)=>{let s=r.localName;!s||n[s]!==1||(s==="length"&&(s="_length"),e[s]==null&&(e[s]=e[i]))}),Object.freeze(e)}encode(e,n){return D0(e,this.coders,n)}decode(e){return e.coerce(this.name,B0(e,this.coders))}}const w2=new w.Logger(p2),U7=new RegExp(/^bytes([0-9]*)$/),F7=new RegExp(/^(u?int)([0-9]*)$/);class K7{constructor(e){N(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new k7(e.name);case"bool":return new A7(e.name);case"string":return new z7(e.name);case"bytes":return new O7(e.name);case"array":return new x7(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new b2((e.components||[]).map(r=>this._getCoder(r)),e.name);case"":return new S7(e.name)}let n=e.type.match(F7);if(n){let r=parseInt(n[2]||"256");return(r===0||r>256||r%8!==0)&&w2.throwArgumentError("invalid "+n[1]+" bit length","param",e),new P7(r/8,n[1]==="int",e.name)}if(n=e.type.match(U7),n){let r=parseInt(n[1]);return(r===0||r>32)&&w2.throwArgumentError("invalid bytes length","param",e),new C7(r,e.name)}return w2.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,n){return new t3(e,this._getWordSize(),this.coerceFunc,n)}_getWriter(){return new N3(this._getWordSize())}getDefaultValue(e){const n=e.map(i=>this._getCoder(I.from(i)));return new b2(n,"_").defaultValue()}encode(e,n){e.length!==n.length&&w2.throwError("types/values length mismatch",w.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:n.length},value:{types:e,values:n}});const r=e.map(c=>this._getCoder(I.from(c))),i=new b2(r,"_"),s=this._getWriter();return i.encode(s,n),s.data}decode(e,n,r){const i=e.map(c=>this._getCoder(I.from(c)));return new b2(i,"_").decode(this._getReader(w.arrayify(n),r))}}const V7=new K7;function _2(t){return n3(F0(t))}const $=new w.Logger(p2);class H7 extends h3{}class G7 extends h3{}class Q7 extends h3{}class Z4 extends h3{static isIndexed(e){return!!(e&&e._isIndexed)}}const q7={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function J4(t,e){const n=new Error(`deferred error during ABI decoding triggered accessing ${t}`);return n.error=e,n}class Z7{constructor(e){let n=[];typeof e=="string"?n=JSON.parse(e):n=e,N(this,"fragments",n.map(r=>e1.from(r)).filter(r=>r!=null)),N(this,"_abiCoder",g2(new.target,"getAbiCoder")()),N(this,"functions",{}),N(this,"errors",{}),N(this,"events",{}),N(this,"structs",{}),this.fragments.forEach(r=>{let i=null;switch(r.type){case"constructor":if(this.deploy){$.warn("duplicate definition - constructor");return}N(this,"deploy",r);return;case"function":i=this.functions;break;case"event":i=this.events;break;case"error":i=this.errors;break;default:return}let s=r.format();if(i[s]){$.warn("duplicate definition - "+s);return}i[s]=r}),this.deploy||N(this,"deploy",q.from({payable:!1,type:"constructor"})),N(this,"_isInterface",!0)}format(e){e||(e=A.full),e===A.sighash&&$.throwArgumentError("interface does not support formatting sighash","format",e);const n=this.fragments.map(r=>r.format(e));return e===A.json?JSON.stringify(n.map(r=>JSON.parse(r))):n}static getAbiCoder(){return V7}static getAddress(e){return P3(e)}static getSighash(e){return w.hexDataSlice(_2(e.format()),0,4)}static getEventTopic(e){return _2(e.format())}getFunction(e){if(w.isHexString(e)){for(const r in this.functions)if(e===this.getSighash(r))return this.functions[r];$.throwArgumentError("no matching function","sighash",e)}if(e.indexOf("(")===-1){const r=e.trim(),i=Object.keys(this.functions).filter(s=>s.split("(")[0]===r);return i.length===0?$.throwArgumentError("no matching function","name",r):i.length>1&&$.throwArgumentError("multiple matching functions","name",r),this.functions[i[0]]}const n=this.functions[Z.fromString(e).format()];return n||$.throwArgumentError("no matching function","signature",e),n}getEvent(e){if(w.isHexString(e)){const r=e.toLowerCase();for(const i in this.events)if(r===this.getEventTopic(i))return this.events[i];$.throwArgumentError("no matching event","topichash",r)}if(e.indexOf("(")===-1){const r=e.trim(),i=Object.keys(this.events).filter(s=>s.split("(")[0]===r);return i.length===0?$.throwArgumentError("no matching event","name",r):i.length>1&&$.throwArgumentError("multiple matching events","name",r),this.events[i[0]]}const n=this.events[X.fromString(e).format()];return n||$.throwArgumentError("no matching event","signature",e),n}getError(e){if(w.isHexString(e)){const r=g2(this.constructor,"getSighash");for(const i in this.errors){const s=this.errors[i];if(e===r(s))return this.errors[i]}$.throwArgumentError("no matching error","sighash",e)}if(e.indexOf("(")===-1){const r=e.trim(),i=Object.keys(this.errors).filter(s=>s.split("(")[0]===r);return i.length===0?$.throwArgumentError("no matching error","name",r):i.length>1&&$.throwArgumentError("multiple matching errors","name",r),this.errors[i[0]]}const n=this.errors[Z.fromString(e).format()];return n||$.throwArgumentError("no matching error","signature",e),n}getSighash(e){if(typeof e=="string")try{e=this.getFunction(e)}catch(n){try{e=this.getError(e)}catch{throw n}}return g2(this.constructor,"getSighash")(e)}getEventTopic(e){return typeof e=="string"&&(e=this.getEvent(e)),g2(this.constructor,"getEventTopic")(e)}_decodeParams(e,n){return this._abiCoder.decode(e,n)}_encodeParams(e,n){return this._abiCoder.encode(e,n)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,n){typeof e=="string"&&(e=this.getError(e));const r=w.arrayify(n);return w.hexlify(r.slice(0,4))!==this.getSighash(e)&&$.throwArgumentError(`data signature does not match error ${e.name}.`,"data",w.hexlify(r)),this._decodeParams(e.inputs,r.slice(4))}encodeErrorResult(e,n){return typeof e=="string"&&(e=this.getError(e)),w.hexlify(w.concat([this.getSighash(e),this._encodeParams(e.inputs,n||[])]))}decodeFunctionData(e,n){typeof e=="string"&&(e=this.getFunction(e));const r=w.arrayify(n);return w.hexlify(r.slice(0,4))!==this.getSighash(e)&&$.throwArgumentError(`data signature does not match function ${e.name}.`,"data",w.hexlify(r)),this._decodeParams(e.inputs,r.slice(4))}encodeFunctionData(e,n){return typeof e=="string"&&(e=this.getFunction(e)),w.hexlify(w.concat([this.getSighash(e),this._encodeParams(e.inputs,n||[])]))}decodeFunctionResult(e,n){typeof e=="string"&&(e=this.getFunction(e));let r=w.arrayify(n),i=null,s="",c=null,l=null,u=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch{}break;case 4:{const o=w.hexlify(r.slice(0,4)),a=q7[o];if(a)c=this._abiCoder.decode(a.inputs,r.slice(4)),l=a.name,u=a.signature,a.reason&&(i=c[0]),l==="Error"?s=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(c[0])}`:l==="Panic"&&(s=`; VM Exception while processing transaction: reverted with panic code ${c[0]}`);else try{const f=this.getError(o);c=this._abiCoder.decode(f.inputs,r.slice(4)),l=f.name,u=f.format()}catch{}break}}return $.throwError("call revert exception"+s,w.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:w.hexlify(n),errorArgs:c,errorName:l,errorSignature:u,reason:i})}encodeFunctionResult(e,n){return typeof e=="string"&&(e=this.getFunction(e)),w.hexlify(this._abiCoder.encode(e.outputs,n||[]))}encodeFilterTopics(e,n){typeof e=="string"&&(e=this.getEvent(e)),n.length>e.inputs.length&&$.throwError("too many arguments for "+e.format(),w.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:n});let r=[];e.anonymous||r.push(this.getEventTopic(e));const i=(s,c)=>s.type==="string"?_2(c):s.type==="bytes"?n3(w.hexlify(c)):(s.type==="bool"&&typeof c=="boolean"&&(c=c?"0x01":"0x00"),s.type.match(/^u?int/)&&(c=S.from(c).toHexString()),s.type==="address"&&this._abiCoder.encode(["address"],[c]),w.hexZeroPad(w.hexlify(c),32));for(n.forEach((s,c)=>{let l=e.inputs[c];if(!l.indexed){s!=null&&$.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+l.name,s);return}s==null?r.push(null):l.baseType==="array"||l.baseType==="tuple"?$.throwArgumentError("filtering with tuples or arrays not supported","contract."+l.name,s):Array.isArray(s)?r.push(s.map(u=>i(l,u))):r.push(i(l,s))});r.length&&r[r.length-1]===null;)r.pop();return r}encodeEventLog(e,n){typeof e=="string"&&(e=this.getEvent(e));const r=[],i=[],s=[];return e.anonymous||r.push(this.getEventTopic(e)),n.length!==e.inputs.length&&$.throwArgumentError("event arguments/values mismatch","values",n),e.inputs.forEach((c,l)=>{const u=n[l];if(c.indexed)if(c.type==="string")r.push(_2(u));else if(c.type==="bytes")r.push(n3(u));else{if(c.baseType==="tuple"||c.baseType==="array")throw new Error("not implemented");r.push(this._abiCoder.encode([c.type],[u]))}else i.push(c),s.push(u)}),{data:this._abiCoder.encode(i,s),topics:r}}decodeEventLog(e,n,r){if(typeof e=="string"&&(e=this.getEvent(e)),r!=null&&!e.anonymous){let d=this.getEventTopic(e);(!w.isHexString(r[0],32)||r[0].toLowerCase()!==d)&&$.throwError("fragment/topic mismatch",w.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:d,value:r[0]}),r=r.slice(1)}let i=[],s=[],c=[];e.inputs.forEach((d,y)=>{d.indexed?d.type==="string"||d.type==="bytes"||d.baseType==="tuple"||d.baseType==="array"?(i.push(I.fromObject({type:"bytes32",name:d.name})),c.push(!0)):(i.push(d),c.push(!1)):(s.push(d),c.push(!1))});let l=r!=null?this._abiCoder.decode(i,w.concat(r)):null,u=this._abiCoder.decode(s,n,!0),o=[],a=0,f=0;e.inputs.forEach((d,y)=>{if(d.indexed)if(l==null)o[y]=new Z4({_isIndexed:!0,hash:null});else if(c[y])o[y]=new Z4({_isIndexed:!0,hash:l[f++]});else try{o[y]=l[f++]}catch(p){o[y]=p}else try{o[y]=u[a++]}catch(p){o[y]=p}if(d.name&&o[d.name]==null){const p=o[y];p instanceof Error?Object.defineProperty(o,d.name,{enumerable:!0,get:()=>{throw J4(`property ${JSON.stringify(d.name)}`,p)}}):o[d.name]=p}});for(let d=0;d<o.length;d++){const y=o[d];y instanceof Error&&Object.defineProperty(o,d,{enumerable:!0,get:()=>{throw J4(`index ${d}`,y)}})}return Object.freeze(o)}parseTransaction(e){let n=this.getFunction(e.data.substring(0,10).toLowerCase());return n?new G7({args:this._abiCoder.decode(n.inputs,"0x"+e.data.substring(10)),functionFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n),value:S.from(e.value||"0")}):null}parseLog(e){let n=this.getEvent(e.topics[0]);return!n||n.anonymous?null:new H7({eventFragment:n,name:n.name,signature:n.format(),topic:this.getEventTopic(n),args:this.decodeEventLog(n,e.data,e.topics)})}parseError(e){const n=w.hexlify(e);let r=this.getError(n.substring(0,10).toLowerCase());return r?new Q7({args:this._abiCoder.decode(r.inputs,"0x"+n.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(e){return!!(e&&e._isInterface)}}var K0={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(u,o,a){this.fn=u,this.context=o,this.once=a||!1}function s(u,o,a,f,d){if(typeof a!="function")throw new TypeError("The listener must be a function");var y=new i(a,f||u,d),p=n?n+o:o;return u._events[p]?u._events[p].fn?u._events[p]=[u._events[p],y]:u._events[p].push(y):(u._events[p]=y,u._eventsCount++),u}function c(u,o){--u._eventsCount===0?u._events=new r:delete u._events[o]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var o=[],a,f;if(this._eventsCount===0)return o;for(f in a=this._events)e.call(a,f)&&o.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(a)):o},l.prototype.listeners=function(o){var a=n?n+o:o,f=this._events[a];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,y=f.length,p=new Array(y);d<y;d++)p[d]=f[d].fn;return p},l.prototype.listenerCount=function(o){var a=n?n+o:o,f=this._events[a];return f?f.fn?1:f.length:0},l.prototype.emit=function(o,a,f,d,y,p){var g=n?n+o:o;if(!this._events[g])return!1;var h=this._events[g],b=arguments.length,v,m;if(h.fn){switch(h.once&&this.removeListener(o,h.fn,void 0,!0),b){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,a),!0;case 3:return h.fn.call(h.context,a,f),!0;case 4:return h.fn.call(h.context,a,f,d),!0;case 5:return h.fn.call(h.context,a,f,d,y),!0;case 6:return h.fn.call(h.context,a,f,d,y,p),!0}for(m=1,v=new Array(b-1);m<b;m++)v[m-1]=arguments[m];h.fn.apply(h.context,v)}else{var C=h.length,k;for(m=0;m<C;m++)switch(h[m].once&&this.removeListener(o,h[m].fn,void 0,!0),b){case 1:h[m].fn.call(h[m].context);break;case 2:h[m].fn.call(h[m].context,a);break;case 3:h[m].fn.call(h[m].context,a,f);break;case 4:h[m].fn.call(h[m].context,a,f,d);break;default:if(!v)for(k=1,v=new Array(b-1);k<b;k++)v[k-1]=arguments[k];h[m].fn.apply(h[m].context,v)}}return!0},l.prototype.on=function(o,a,f){return s(this,o,a,f,!1)},l.prototype.once=function(o,a,f){return s(this,o,a,f,!0)},l.prototype.removeListener=function(o,a,f,d){var y=n?n+o:o;if(!this._events[y])return this;if(!a)return c(this,y),this;var p=this._events[y];if(p.fn)p.fn===a&&(!d||p.once)&&(!f||p.context===f)&&c(this,y);else{for(var g=0,h=[],b=p.length;g<b;g++)(p[g].fn!==a||d&&!p[g].once||f&&p[g].context!==f)&&h.push(p[g]);h.length?this._events[y]=h.length===1?h[0]:h:c(this,y)}return this},l.prototype.removeAllListeners=function(o){var a;return o?(a=n?n+o:o,this._events[a]&&c(this,a)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,t.exports=l})(K0);var J7=K0.exports;const Y7=O.getDefaultExportFromCjs(J7);function M3(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function X7(t){if(Array.isArray(t))return M3(t)}function T3(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function z2(t,e,n){return V0()?z2=Reflect.construct:z2=function(r,i,s){var c=[null];c.push.apply(c,i);var l=Function.bind.apply(r,c),u=new l;return s&&n2(u,s.prototype),u},z2.apply(null,arguments)}function e6(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function w4(t,e,n){return e&&e6(t.prototype,e),t}function m1(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function t2(t){return t2=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t2(t)}function t6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n2(t,e)}function n6(t,e){return e!=null&&typeof Symbol<"u"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function r6(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function i6(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function o6(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s6(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){m1(t,i,n[i])})}return t}function a6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}function c6(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a6(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}function u6(t,e){return e&&(U1(e)==="object"||typeof e=="function")?e:T3(t)}function n2(t,e){return n2=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},n2(t,e)}function k2(t){return X7(t)||i6(t)||l6(t)||o6()}function U1(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}function l6(t,e){if(t){if(typeof t=="string")return M3(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M3(t,e)}}function j3(t){var e=typeof Map=="function"?new Map:void 0;return j3=function(n){if(n===null||!r6(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return z2(n,arguments,t2(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n2(r,n)},j3(t)}function V0(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function f6(t){var e=V0();return function(){var r=t2(t),i;if(e){var s=t2(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return u6(this,i)}}var h6=Object.defineProperty,d6=function(t,e,n){return e in t?h6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},L1=function(t,e,n){return d6(t,(typeof e>"u"?"undefined":U1(e))!="symbol"?e+"":e,n),n},n1,p6="PARSE_ERROR",y6="INVALID_REQUEST",m6="METHOD_NOT_FOUND",g6="INVALID_PARAMS",H0="INTERNAL_ERROR",_4="SERVER_ERROR",v6=[-32700,-32600,-32601,-32602,-32603],Z1=(n1={},m1(n1,p6,{code:-32700,message:"Parse error"}),m1(n1,y6,{code:-32600,message:"Invalid Request"}),m1(n1,m6,{code:-32601,message:"Method not found"}),m1(n1,g6,{code:-32602,message:"Invalid params"}),m1(n1,H0,{code:-32603,message:"Internal error"}),m1(n1,_4,{code:-32e3,message:"Server error"}),n1),G0=_4;function b6(t){return v6.includes(t)}function Y4(t){return Object.keys(Z1).includes(t)?Z1[t]:Z1[G0]}function w6(t){var e=Object.values(Z1).find(function(n){return n.code===t});return e||Z1[G0]}function _6(t,e,n){return t.message.includes("getaddrinfo ENOTFOUND")||t.message.includes("connect ECONNREFUSED")?new Error("Unavailable ".concat(n," RPC url at ").concat(e)):t}function k6(t,e,n){return{id:t,jsonrpc:"2.0",error:E6(e)}}function E6(t,e){return(typeof t>"u"?"undefined":U1(t))>"u"?Y4(H0):(typeof t=="string"&&(t=c6(s6({},Y4(_4)),{message:t})),b6(t.code)&&(t=w6(t.code)),t)}var x6="^https?:";function A6(t){var e=t.match(new RegExp(/^\w+:/,"gi"));if(!(!e||!e.length))return e[0]}function O6(t,e){var n=A6(t);return(typeof n>"u"?"undefined":U1(n))>"u"?!1:new RegExp(e).test(n)}function X4(t){return O6(t,x6)}function C6(t){if(typeof t!="string")throw new Error("Cannot safe json parse value of type ".concat(typeof t>"u"?"undefined":U1(t)));try{return JSON.parse(t)}catch{return t}}function e0(t){return typeof t=="string"?t:JSON.stringify(t)}var S6={16:10,24:12,32:14},$6=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],B=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],E2=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],I6=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],R6=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],N6=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],P6=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],M6=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],T6=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],j6=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],L6=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],D6=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],B6=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],W6=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],z6=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function L3(t){return parseInt("".concat(t))===t}function t0(t){if(!L3(t.length))return!1;for(var e=0;e<t.length;e++)if(!L3(t[e])||t[e]<0||t[e]>255)return!1;return!0}function I1(t){return new Uint8Array(t)}function E3(t){for(var e=[],n=0;n<t.length;n+=4)e.push(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]);return e}function U2(t,e){if(t.buffer&&t.name==="Uint8Array")return e&&(t.slice?t=t.slice():t=Array.prototype.slice.call(t)),t;if(Array.isArray(t)){if(!t0(t))throw new Error("Array contains invalid value");return new Uint8Array(t)}if(L3(t.length)&&t0(t))return new Uint8Array(t);throw new Error("unsupported array-like object")}function x2(t,e,n,r,i){(r!=null||i!=null)&&(t.slice?t=t.slice(r,i):t=Array.prototype.slice.call(t,r,i)),e.set(t,n)}var U6=function(){function t(e){b4(this,t),L1(this,"key"),L1(this,"_Ke"),L1(this,"_Kd"),this.key=U2(e,!0),this._prepare()}return w4(t,[{key:"_prepare",value:function(){var n=S6[this.key.length];if(n==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var r=0;r<=n;r++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var i=(n+1)*4,s=this.key.length/4,c=E3(this.key),l,u=0;u<s;u++)l=u>>2,this._Ke[l][u%4]=c[u],this._Kd[n-l][u%4]=c[u];for(var o=0,a=s,f;a<i;){if(f=c[s-1],c[0]^=B[f>>16&255]<<24^B[f>>8&255]<<16^B[f&255]<<8^B[f>>24&255]^$6[o]<<24,o+=1,s!=8)for(var d=1;d<s;d++)c[d]^=c[d-1];else{for(var y=1;y<s/2;y++)c[y]^=c[y-1];f=c[s/2-1],c[s/2]^=B[f&255]^B[f>>8&255]<<8^B[f>>16&255]<<16^B[f>>24&255]<<24;for(var p=s/2+1;p<s;p++)c[p]^=c[p-1]}for(var g=0,h=void 0,b=void 0;g<s&&a<i;)h=a>>2,b=a%4,this._Ke[h][b]=c[g],this._Kd[n-h][b]=c[g++],a++}for(var v=1;v<n;v++)for(var m=0;m<4;m++)f=this._Kd[v][m],this._Kd[v][m]=D6[f>>24&255]^B6[f>>16&255]^W6[f>>8&255]^z6[f&255]}},{key:"encrypt",value:function(e){if(e.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var n=this._Ke.length-1,r=[0,0,0,0],i=E3(e),s=0;s<4;s++)i[s]^=this._Ke[0][s];for(var c=1;c<n;c++){for(var l=0;l<4;l++)r[l]=I6[i[l]>>24&255]^R6[i[(l+1)%4]>>16&255]^N6[i[(l+2)%4]>>8&255]^P6[i[(l+3)%4]&255]^this._Ke[c][l];i=r.slice()}for(var u=I1(16),o,a=0;a<4;a++)o=this._Ke[n][a],u[4*a]=(B[i[a]>>24&255]^o>>24)&255,u[4*a+1]=(B[i[(a+1)%4]>>16&255]^o>>16)&255,u[4*a+2]=(B[i[(a+2)%4]>>8&255]^o>>8)&255,u[4*a+3]=(B[i[(a+3)%4]&255]^o)&255;return u}},{key:"decrypt",value:function(e){if(e.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var n=this._Kd.length-1,r=[0,0,0,0],i=E3(e),s=0;s<4;s++)i[s]^=this._Kd[0][s];for(var c=1;c<n;c++){for(var l=0;l<4;l++)r[l]=M6[i[l]>>24&255]^T6[i[(l+3)%4]>>16&255]^j6[i[(l+2)%4]>>8&255]^L6[i[(l+1)%4]&255]^this._Kd[c][l];i=r.slice()}for(var u=I1(16),o,a=0;a<4;a++)o=this._Kd[n][a],u[4*a]=(E2[i[a]>>24&255]^o>>24)&255,u[4*a+1]=(E2[i[(a+3)%4]>>16&255]^o>>16)&255,u[4*a+2]=(E2[i[(a+2)%4]>>8&255]^o>>8)&255,u[4*a+3]=(E2[i[(a+1)%4]&255]^o)&255;return u}}]),t}();(function(){function t(e,n){if(b4(this,t),L1(this,"_aes"),L1(this,"_lastCipherblock"),!n)n=new Uint8Array(16);else if(n.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastCipherblock=U2(n,!0),this._aes=new U6(e)}return w4(t,[{key:"encrypt",value:function(e){if(e=U2(e),e.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var n=I1(e.length),r=I1(16),i=0;i<e.length;i+=16){x2(e,r,0,i,i+16);for(var s=0;s<16;s++)r[s]^=this._lastCipherblock[s];this._lastCipherblock=this._aes.encrypt(r),x2(this._lastCipherblock,n,i)}return n}},{key:"decrypt",value:function(e){if(e=U2(e),e.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var n=I1(e.length),r=I1(16),i=0;i<e.length;i+=16){x2(e,r,0,i,i+16),r=this._aes.decrypt(r);for(var s=0;s<16;s++)n[i+s]=r[s]^this._lastCipherblock[s];x2(e,this._lastCipherblock,0,i,i+16)}return n}}]),t})();var n0={error:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i;(i=console).error.apply(i,["[ERROR]"].concat(k2(n)))},warn:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i;(i=console).warn.apply(i,["[WARN]"].concat(k2(n)))},info:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i;(i=console).info.apply(i,["[INFO]"].concat(k2(n)))},debug:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i;(i=console).log.apply(i,["[DEBUG]"].concat(k2(n)))}};(typeof window>"u"?"undefined":U1(window))<"u";(function(t){t6(n,t);var e=f6(n);function n(r,i){b4(this,n);var s;return s=e.call(this,i),L1(T3(s),"code"),s.code=r,Object.setPrototypeOf(T3(s),(n6(this,n)?this.constructor:void 0).prototype),s}return w4(n,[{key:"toString",value:function(){return"".concat(this.message," (").concat(this.code,")")}}]),n})(j3(Error));function r0(t,e,n,r,i,s,c){try{var l=t[s](c),u=l.value}catch(o){n(o);return}l.done?e(u):Promise.resolve(u).then(r,i)}function A2(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var s=t.apply(e,n);function c(u){r0(s,r,i,c,l,"next",u)}function l(u){r0(s,r,i,c,l,"throw",u)}c(void 0)})}}function F6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function K6(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function V6(t,e,n){return e&&K6(t.prototype,e),t}function H6(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){H6(t,i,n[i])})}return t}function G6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}function o0(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):G6(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}function Q0(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}function O2(t,e){var n,r,i,s,c={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]};return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(o){return function(a){return u([o,a])}}function u(o){if(n)throw new TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(i=o[0]&2?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return c.label++,{value:o[1],done:!1};case 5:c.label++,r=o[1],o=[0];continue;case 7:o=c.ops.pop(),c.trys.pop();continue;default:if(i=c.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){c=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){c.label=o[1];break}if(o[0]===6&&c.label<i[1]){c.label=i[1],i=o;break}if(i&&c.label<i[2]){c.label=i[2],c.ops.push(o);break}i[2]&&c.ops.pop(),c.trys.pop();continue}o=e.call(t,c)}catch(a){o=[6,a],r=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}var Q6=Object.defineProperty,q6=function(t,e,n){return e in t?Q6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},x3=function(t,e,n){return q6(t,(typeof e>"u"?"undefined":Q0(e))!="symbol"?e+"":e,n),n},Z6={Accept:"application/json","Content-Type":"application/json"},J6="POST",s0={headers:Z6,method:J6},Y6=function(){function t(e){if(F6(this,t),this.url=e,x3(this,"events",new Y7),x3(this,"isAvailable",!1),x3(this,"registering",!1),!X4(e))throw new Error("Provided URL is not compatible with HTTP connection: ".concat(e));this.url=e}return V6(t,[{key:"connected",get:function(){return this.isAvailable}},{key:"connecting",get:function(){return this.registering}},{key:"open",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.url,r=this;return A2(function(){return O2(this,function(i){switch(i.label){case 0:return[4,r.register(n)];case 1:return i.sent(),[2]}})})()}},{key:"close",value:function(){var n=this;return A2(function(){return O2(this,function(r){if(!n.isAvailable)throw new Error("Connection already closed");return n.onClose(),[2]})})()}},{key:"request",value:function(e){var n=this;return A2(function(){var r,i,s,c,l;return O2(this,function(u){switch(u.label){case 0:return n0.debug("HttpClient ~ request ~ payload:",e),r=n.isAvailable,r?[3,2]:[4,n.register()];case 1:r=u.sent(),u.label=2;case 2:u.label=3;case 3:return u.trys.push([3,6,,7]),i=e0(e),[4,O.o(n.url,o0(i0({},s0),{body:i}))];case 4:return[4,u.sent().json()];case 5:return s=u.sent(),c=typeof s=="string"?C6(s):s,[2,(n0.debug("HttpClient ~ request ~ result:",c),c)];case 6:return l=u.sent(),[2,n.formatError(e.id,l)];case 7:return[2]}})})()}},{key:"formatError",value:function(e,n){var r=this.parseError(n),i=r.message||r.toString();return k6(e,i)}},{key:"register",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.url,r=this;return A2(function(){var i,s,c;return O2(this,function(l){switch(l.label){case 0:if(!X4(n))throw new Error("Provided URL is not compatible with HTTP connection: ".concat(n));if(r.registering)return[2,new Promise(function(u,o){r.events.once("register_error",function(a){o(a)}),r.events.once("open",function(){if(Q0(r.isAvailable)>"u")return o(new Error("HTTP connection is missing or invalid"));u()})})];r.url=n,r.registering=!0,l.label=1;case 1:return l.trys.push([1,3,,4]),i=e0({id:1,jsonrpc:"2.0",method:"test",params:[]}),[4,O.o(n,o0(i0({},s0),{body:i}))];case 2:return l.sent(),r.onOpen(),[3,4];case 3:throw s=l.sent(),c=r.parseError(s),r.events.emit("register_error",c),r.onClose(),c;case 4:return[2]}})})()}},{key:"onOpen",value:function(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}},{key:"onClose",value:function(){this.isAvailable=!1,this.registering=!1,this.events.emit("open")}},{key:"parseError",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.url;return _6(e,n,"HTTP")}}]),t}(),X6={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(u,o,a){this.fn=u,this.context=o,this.once=a||!1}function s(u,o,a,f,d){if(typeof a!="function")throw new TypeError("The listener must be a function");var y=new i(a,f||u,d),p=n?n+o:o;return u._events[p]?u._events[p].fn?u._events[p]=[u._events[p],y]:u._events[p].push(y):(u._events[p]=y,u._eventsCount++),u}function c(u,o){--u._eventsCount===0?u._events=new r:delete u._events[o]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var o=[],a,f;if(this._eventsCount===0)return o;for(f in a=this._events)e.call(a,f)&&o.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(a)):o},l.prototype.listeners=function(o){var a=n?n+o:o,f=this._events[a];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,y=f.length,p=new Array(y);d<y;d++)p[d]=f[d].fn;return p},l.prototype.listenerCount=function(o){var a=n?n+o:o,f=this._events[a];return f?f.fn?1:f.length:0},l.prototype.emit=function(o,a,f,d,y,p){var g=n?n+o:o;if(!this._events[g])return!1;var h=this._events[g],b=arguments.length,v,m;if(h.fn){switch(h.once&&this.removeListener(o,h.fn,void 0,!0),b){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,a),!0;case 3:return h.fn.call(h.context,a,f),!0;case 4:return h.fn.call(h.context,a,f,d),!0;case 5:return h.fn.call(h.context,a,f,d,y),!0;case 6:return h.fn.call(h.context,a,f,d,y,p),!0}for(m=1,v=new Array(b-1);m<b;m++)v[m-1]=arguments[m];h.fn.apply(h.context,v)}else{var C=h.length,k;for(m=0;m<C;m++)switch(h[m].once&&this.removeListener(o,h[m].fn,void 0,!0),b){case 1:h[m].fn.call(h[m].context);break;case 2:h[m].fn.call(h[m].context,a);break;case 3:h[m].fn.call(h[m].context,a,f);break;case 4:h[m].fn.call(h[m].context,a,f,d);break;default:if(!v)for(k=1,v=new Array(b-1);k<b;k++)v[k-1]=arguments[k];h[m].fn.apply(h[m].context,v)}}return!0},l.prototype.on=function(o,a,f){return s(this,o,a,f,!1)},l.prototype.once=function(o,a,f){return s(this,o,a,f,!0)},l.prototype.removeListener=function(o,a,f,d){var y=n?n+o:o;if(!this._events[y])return this;if(!a)return c(this,y),this;var p=this._events[y];if(p.fn)p.fn===a&&(!d||p.once)&&(!f||p.context===f)&&c(this,y);else{for(var g=0,h=[],b=p.length;g<b;g++)(p[g].fn!==a||d&&!p[g].once||f&&p[g].context!==f)&&h.push(p[g]);h.length?this._events[y]=h.length===1?h[0]:h:c(this,y)}return this},l.prototype.removeAllListeners=function(o){var a;return o?(a=n?n+o:o,this._events[a]&&c(this,a)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,t.exports=l})(X6);function D3(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function k4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function F2(t,e,n){return q0()?F2=Reflect.construct:F2=function(r,i,s){var c=[null];c.push.apply(c,i);var l=Function.bind.apply(r,c),u=new l;return s&&i2(u,s.prototype),u},F2.apply(null,arguments)}function e8(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function E4(t,e,n){return e&&e8(t.prototype,e),t}function k1(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r2(t){return r2=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r2(t)}function t8(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i2(t,e)}function n8(t,e){return e!=null&&typeof Symbol<"u"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function r8(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function i8(t,e){return e&&(g1(e)==="object"||typeof e=="function")?e:D3(t)}function i2(t,e){return i2=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},i2(t,e)}function g1(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}function B3(t){var e=typeof Map=="function"?new Map:void 0;return B3=function(n){if(n===null||!r8(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return F2(n,arguments,r2(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i2(r,n)},B3(t)}function q0(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function o8(t){var e=q0();return function(){var r=r2(t),i;if(e){var s=r2(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return i8(this,i)}}var s8=Object.defineProperty,a8=function(t,e,n){return e in t?s8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},D1=function(t,e,n){return a8(t,(typeof e>"u"?"undefined":g1(e))!="symbol"?e+"":e,n),n},r1,c8="PARSE_ERROR",u8="INVALID_REQUEST",l8="METHOD_NOT_FOUND",f8="INVALID_PARAMS",h8="INTERNAL_ERROR",d8="SERVER_ERROR";r1={},k1(r1,c8,{code:-32700,message:"Parse error"}),k1(r1,u8,{code:-32600,message:"Invalid Request"}),k1(r1,l8,{code:-32601,message:"Method not found"}),k1(r1,f8,{code:-32602,message:"Invalid params"}),k1(r1,h8,{code:-32603,message:"Internal error"}),k1(r1,d8,{code:-32e3,message:"Server error"});function Z0(){return(typeof O.dist.process>"u"?"undefined":g1(O.dist.process))<"u"&&g1(O.dist.process.versions)<"u"&&g1(O.dist.process.versions.node)<"u"}var p8={16:10,24:12,32:14},y8=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],W=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],C2=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],m8=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],g8=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],v8=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],b8=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],w8=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],_8=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],k8=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],E8=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],x8=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],A8=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],O8=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],C8=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function W3(t){return parseInt("".concat(t))===t}function a0(t){if(!W3(t.length))return!1;for(var e=0;e<t.length;e++)if(!W3(t[e])||t[e]<0||t[e]>255)return!1;return!0}function R1(t){return new Uint8Array(t)}function A3(t){for(var e=[],n=0;n<t.length;n+=4)e.push(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]);return e}function K2(t,e){if(t.buffer&&t.name==="Uint8Array")return e&&(t.slice?t=t.slice():t=Array.prototype.slice.call(t)),t;if(Array.isArray(t)){if(!a0(t))throw new Error("Array contains invalid value");return new Uint8Array(t)}if(W3(t.length)&&a0(t))return new Uint8Array(t);throw new Error("unsupported array-like object")}function S2(t,e,n,r,i){(r!=null||i!=null)&&(t.slice?t=t.slice(r,i):t=Array.prototype.slice.call(t,r,i)),e.set(t,n)}var S8=function(){function t(e){k4(this,t),D1(this,"key"),D1(this,"_Ke"),D1(this,"_Kd"),this.key=K2(e,!0),this._prepare()}return E4(t,[{key:"_prepare",value:function(){var n=p8[this.key.length];if(n==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var r=0;r<=n;r++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var i=(n+1)*4,s=this.key.length/4,c=A3(this.key),l,u=0;u<s;u++)l=u>>2,this._Ke[l][u%4]=c[u],this._Kd[n-l][u%4]=c[u];for(var o=0,a=s,f;a<i;){if(f=c[s-1],c[0]^=W[f>>16&255]<<24^W[f>>8&255]<<16^W[f&255]<<8^W[f>>24&255]^y8[o]<<24,o+=1,s!=8)for(var d=1;d<s;d++)c[d]^=c[d-1];else{for(var y=1;y<s/2;y++)c[y]^=c[y-1];f=c[s/2-1],c[s/2]^=W[f&255]^W[f>>8&255]<<8^W[f>>16&255]<<16^W[f>>24&255]<<24;for(var p=s/2+1;p<s;p++)c[p]^=c[p-1]}for(var g=0,h=void 0,b=void 0;g<s&&a<i;)h=a>>2,b=a%4,this._Ke[h][b]=c[g],this._Kd[n-h][b]=c[g++],a++}for(var v=1;v<n;v++)for(var m=0;m<4;m++)f=this._Kd[v][m],this._Kd[v][m]=x8[f>>24&255]^A8[f>>16&255]^O8[f>>8&255]^C8[f&255]}},{key:"encrypt",value:function(e){if(e.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var n=this._Ke.length-1,r=[0,0,0,0],i=A3(e),s=0;s<4;s++)i[s]^=this._Ke[0][s];for(var c=1;c<n;c++){for(var l=0;l<4;l++)r[l]=m8[i[l]>>24&255]^g8[i[(l+1)%4]>>16&255]^v8[i[(l+2)%4]>>8&255]^b8[i[(l+3)%4]&255]^this._Ke[c][l];i=r.slice()}for(var u=R1(16),o,a=0;a<4;a++)o=this._Ke[n][a],u[4*a]=(W[i[a]>>24&255]^o>>24)&255,u[4*a+1]=(W[i[(a+1)%4]>>16&255]^o>>16)&255,u[4*a+2]=(W[i[(a+2)%4]>>8&255]^o>>8)&255,u[4*a+3]=(W[i[(a+3)%4]&255]^o)&255;return u}},{key:"decrypt",value:function(e){if(e.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var n=this._Kd.length-1,r=[0,0,0,0],i=A3(e),s=0;s<4;s++)i[s]^=this._Kd[0][s];for(var c=1;c<n;c++){for(var l=0;l<4;l++)r[l]=w8[i[l]>>24&255]^_8[i[(l+3)%4]>>16&255]^k8[i[(l+2)%4]>>8&255]^E8[i[(l+1)%4]&255]^this._Kd[c][l];i=r.slice()}for(var u=R1(16),o,a=0;a<4;a++)o=this._Kd[n][a],u[4*a]=(C2[i[a]>>24&255]^o>>24)&255,u[4*a+1]=(C2[i[(a+3)%4]>>16&255]^o>>16)&255,u[4*a+2]=(C2[i[(a+2)%4]>>8&255]^o>>8)&255,u[4*a+3]=(C2[i[(a+1)%4]&255]^o)&255;return u}}]),t}();(function(){function t(e,n){if(k4(this,t),D1(this,"_aes"),D1(this,"_lastCipherblock"),!n)n=new Uint8Array(16);else if(n.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastCipherblock=K2(n,!0),this._aes=new S8(e)}return E4(t,[{key:"encrypt",value:function(e){if(e=K2(e),e.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var n=R1(e.length),r=R1(16),i=0;i<e.length;i+=16){S2(e,r,0,i,i+16);for(var s=0;s<16;s++)r[s]^=this._lastCipherblock[s];this._lastCipherblock=this._aes.encrypt(r),S2(this._lastCipherblock,n,i)}return n}},{key:"decrypt",value:function(e){if(e=K2(e),e.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var n=R1(e.length),r=R1(16),i=0;i<e.length;i+=16){S2(e,r,0,i,i+16),r=this._aes.decrypt(r);for(var s=0;s<16;s++)n[i+s]=r[s]^this._lastCipherblock[s];S2(e,this._lastCipherblock,0,i,i+16)}return n}}]),t})();(typeof window>"u"?"undefined":g1(window))<"u";(function(t){t8(n,t);var e=o8(n);function n(r,i){k4(this,n);var s;return s=e.call(this,i),D1(D3(s),"code"),s.code=r,Object.setPrototypeOf(D3(s),(n8(this,n)?this.constructor:void 0).prototype),s}return E4(n,[{key:"toString",value:function(){return"".concat(this.message," (").concat(this.code,")")}}]),n})(B3(Error));var J0=function(){return!!(g1(window.navigator)>"u"?"":navigator.userAgent).match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i)},$8=function(){return!!navigator.userAgent.match(/Android/i)},Y0=function(t,e){var n="appId=xoqXxUSMRccLCrZNRebmzj&startPagePath=L3BhZ2VzL2Rhc2hib2FyZC1uZXcvaW5kZXg=";if(e){var r=F4("wc=".concat(encodeURIComponent(e),"&isDeepLink=true&id=").concat(+new Date));n="".concat(n,"&startPageQuery=").concat(r)}var i="//app.binance.com";return t?"bnc:".concat(i,"/mp/app?").concat(n):"https:".concat(i,"/?_dp=").concat(F4("/mp/app?".concat(n)))},I8=function(t){var e=J0(),n=Y0(!0,t);if(e){var r=document.createElement("a");r.href=n,document.body.appendChild(r),r.click(),document.body.removeChild(r)}},z3,$2=F5;if(O.dist.process.env.NODE_ENV==="production")z3=$2.createRoot,$2.hydrateRoot;else{var c0=$2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;z3=function(t,e){c0.usingClientEntryPoint=!0;try{return $2.createRoot(t,e)}finally{c0.usingClientEntryPoint=!1}}}var R8=Object.defineProperty,i3=Object.getOwnPropertySymbols,X0=Object.prototype.hasOwnProperty,e5=Object.prototype.propertyIsEnumerable,u0=(t,e,n)=>e in t?R8(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,N8=(t,e)=>{for(var n in e||(e={}))X0.call(e,n)&&u0(t,n,e[n]);if(i3)for(var n of i3(e))e5.call(e,n)&&u0(t,n,e[n]);return t},P8=(t,e)=>{var n={};for(var r in t)X0.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&i3)for(var r of i3(t))e.indexOf(r)<0&&e5.call(t,r)&&(n[r]=t[r]);return n};/**
2
2
  * @license QR Code generator library (TypeScript)
3
3
  * Copyright (c) Project Nayuki.
4
4
  * SPDX-License-Identifier: MIT