@dodoex/wallet-web3 0.0.43-beta.1 → 0.0.43-beta.3

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 (134) hide show
  1. package/dist/alchemy-provider-5870b6fa-233c80b6.js +1 -0
  2. package/dist/alchemy-websocket-provider-213da986-64068b80.js +1 -0
  3. package/dist/blocto-4c3b71f5.js +1 -0
  4. package/dist/ccip-da46c435.js +1 -0
  5. package/dist/cjs/alchemy-provider-5870b6fa-686578f0.cjs +1 -0
  6. package/dist/cjs/alchemy-websocket-provider-213da986-fff1f59d.cjs +1 -0
  7. package/dist/cjs/blocto-621f54a9.cjs +1 -0
  8. package/dist/cjs/ccip-4b1d6858.cjs +1 -0
  9. package/dist/cjs/{draggabilly-79573f3a.cjs → draggabilly-5b36eaf0.cjs} +1 -1
  10. package/dist/cjs/id-0b41bc31.cjs +1 -0
  11. package/dist/{index-11a0760f.js → cjs/index-1e729250.cjs} +2 -2
  12. package/dist/cjs/index-283b89ff.cjs +1 -0
  13. package/dist/cjs/index-2d5de895.cjs +1 -0
  14. package/dist/cjs/{index-eb09e54d.cjs → index-35edc6a0.cjs} +1 -1
  15. package/dist/cjs/{index-ae56e5a3.cjs → index-44b7a45e.cjs} +3 -3
  16. package/dist/cjs/index-5560dc58.cjs +17 -0
  17. package/dist/cjs/index-73e4d7eb.cjs +6 -0
  18. package/dist/cjs/{index-df8e5839.cjs → index-9f2a69d5.cjs} +1 -1
  19. package/dist/cjs/index-a4478ddb.cjs +1 -0
  20. package/dist/cjs/index-d528b9d2.cjs +1 -0
  21. package/dist/cjs/index-d54b57b8.cjs +1 -0
  22. package/dist/cjs/index-db36b0fa.cjs +29 -0
  23. package/dist/cjs/index.cjs +1 -1
  24. package/dist/cjs/index.es-e3bf027a.cjs +9 -0
  25. package/dist/cjs/{interface-22e176bf.cjs → interface-d076e79e.cjs} +1 -1
  26. package/dist/cjs/{lib-typedarrays-4ea60734.cjs → lib-typedarrays-68c72268.cjs} +1 -1
  27. package/dist/cjs/{portis-5a7056fa.cjs → portis-7f3437fb.cjs} +1 -1
  28. package/dist/cjs/provider-e53a855b.cjs +1 -0
  29. package/dist/cjs/providers/connector/alchemy/index.d.ts +913 -0
  30. package/dist/cjs/providers/connector/alchemy/provider.d.ts +914 -0
  31. package/dist/cjs/providers/connector/alchemy/signer.d.ts +23 -0
  32. package/dist/cjs/providers/connector/index.d.ts +951 -43
  33. package/dist/cjs/providers/connector/ledgerUSB/index.d.ts +43 -43
  34. package/dist/cjs/providers/connector/ledgerUSB/provider.d.ts +10 -10
  35. package/dist/cjs/providers/connector/types.d.ts +4 -0
  36. package/dist/cjs/providers/connector/uniPass/index.d.ts +43 -43
  37. package/dist/cjs/providers/connector/uniPass/provider.d.ts +10 -10
  38. package/dist/cjs/providers/wallets/index.d.ts +2 -1
  39. package/dist/cjs/providers/wallets/standalone.d.ts +1 -0
  40. package/dist/cjs/providers/wallets/types.d.ts +1 -0
  41. package/dist/cjs/rainbow-dc533bc9.cjs +1 -0
  42. package/dist/cjs/{sha224-75e384f0.cjs → sha224-d1ef1120.cjs} +1 -1
  43. package/dist/cjs/sha256-0f5b78af.cjs +1 -0
  44. package/dist/cjs/typed-data-248c37d5.cjs +1 -0
  45. package/dist/cjs/uAuth-d9d66e7c.cjs +1 -0
  46. package/dist/cjs/walletConnect-0d1d9c65.cjs +1 -0
  47. package/dist/cjs/walletLink-a6046616.cjs +3 -0
  48. package/dist/{draggabilly-830dc949.js → draggabilly-ad95d562.js} +1 -1
  49. package/dist/id-d4f3e36f.js +1 -0
  50. package/dist/index-21179dd1.js +1 -0
  51. package/dist/index-2691f407.js +1 -0
  52. package/dist/index-4f86d0d9.js +1 -0
  53. package/dist/{index-3c4637f0.js → index-52949a22.js} +2 -2
  54. package/dist/index-5526977f.js +17 -0
  55. package/dist/index-5a7908b7.js +1 -0
  56. package/dist/{index-0ee5ef8d.js → index-65d96278.js} +1 -1
  57. package/dist/index-7e9e2ba1.js +1 -0
  58. package/dist/{index-a33c0bc7.js → index-7f74b1e8.js} +3 -3
  59. package/dist/index-af6c16a1.js +29 -0
  60. package/dist/{cjs/index-4d414966.cjs → index-cd1a9a88.js} +2 -2
  61. package/dist/{index-e0d3617a.js → index-f08d6a6b.js} +1 -1
  62. package/dist/index.es-bb0f01ae.js +9 -0
  63. package/dist/index.js +1 -1
  64. package/dist/{interface-c16329c9.js → interface-8030d5f3.js} +1 -1
  65. package/dist/{lib-typedarrays-f90f59e3.js → lib-typedarrays-a4c67579.js} +1 -1
  66. package/dist/{portis-a86b0a05.js → portis-e2bba602.js} +1 -1
  67. package/dist/provider-459277d5.js +1 -0
  68. package/dist/providers/connector/alchemy/index.d.ts +913 -0
  69. package/dist/providers/connector/alchemy/provider.d.ts +914 -0
  70. package/dist/providers/connector/alchemy/signer.d.ts +23 -0
  71. package/dist/providers/connector/index.d.ts +951 -43
  72. package/dist/providers/connector/ledgerUSB/index.d.ts +43 -43
  73. package/dist/providers/connector/ledgerUSB/provider.d.ts +10 -10
  74. package/dist/providers/connector/types.d.ts +4 -0
  75. package/dist/providers/connector/uniPass/index.d.ts +43 -43
  76. package/dist/providers/connector/uniPass/provider.d.ts +10 -10
  77. package/dist/providers/wallets/index.d.ts +2 -1
  78. package/dist/providers/wallets/standalone.d.ts +1 -0
  79. package/dist/providers/wallets/types.d.ts +1 -0
  80. package/dist/rainbow-a06575a1.js +1 -0
  81. package/dist/sha224-10712709.js +1 -0
  82. package/dist/sha256-656b18f4.js +1 -0
  83. package/dist/typed-data-b07573b9.js +1 -0
  84. package/dist/uAuth-7b727766.js +1 -0
  85. package/dist/walletConnect-9c01b144.js +1 -0
  86. package/dist/{walletLink-df58109a.js → walletLink-1b8c2056.js} +2 -2
  87. package/package.json +11 -4
  88. package/dist/DefaultJsonRpcProvider-48aec187.js +0 -1
  89. package/dist/__node-resolve_empty-59fa3c56.js +0 -1
  90. package/dist/blocto-478b3978.js +0 -1
  91. package/dist/bn-efc414a2.js +0 -1
  92. package/dist/browser-ponyfill-bc327969.js +0 -1
  93. package/dist/cjs/DefaultJsonRpcProvider-55c338f0.cjs +0 -1
  94. package/dist/cjs/__node-resolve_empty-fd72eb2c.cjs +0 -1
  95. package/dist/cjs/blocto-965564db.cjs +0 -1
  96. package/dist/cjs/bn-d506e85d.cjs +0 -1
  97. package/dist/cjs/browser-ponyfill-323d988f.cjs +0 -1
  98. package/dist/cjs/ethers-1ba31973.cjs +0 -1
  99. package/dist/cjs/id-1118c8d9.cjs +0 -1
  100. package/dist/cjs/index-0122b1eb.cjs +0 -6
  101. package/dist/cjs/index-0740e7fe.cjs +0 -1
  102. package/dist/cjs/index-0ce04635.cjs +0 -9
  103. package/dist/cjs/index-285c5389.cjs +0 -1
  104. package/dist/cjs/index-3c74ed4c.cjs +0 -1
  105. package/dist/cjs/index-58465208.cjs +0 -1
  106. package/dist/cjs/index-685f72cf.cjs +0 -1
  107. package/dist/cjs/index-99521957.cjs +0 -1
  108. package/dist/cjs/index-ac9f2e8f.cjs +0 -15
  109. package/dist/cjs/index-dc6a6c03.cjs +0 -1
  110. package/dist/cjs/index.es-6fd28bfe.cjs +0 -9
  111. package/dist/cjs/provider-d22e1228.cjs +0 -1
  112. package/dist/cjs/rainbow-54c01ab2.cjs +0 -1
  113. package/dist/cjs/sha256-ab07124e.cjs +0 -1
  114. package/dist/cjs/uAuth-b9d43d2e.cjs +0 -1
  115. package/dist/cjs/walletConnect-398a4c97.cjs +0 -1
  116. package/dist/cjs/walletLink-6199ae38.cjs +0 -3
  117. package/dist/ethers-1d40d86b.js +0 -1
  118. package/dist/id-62e12510.js +0 -1
  119. package/dist/index-02350ba2.js +0 -1
  120. package/dist/index-115f7417.js +0 -1
  121. package/dist/index-37f47216.js +0 -1
  122. package/dist/index-6e901e7d.js +0 -15
  123. package/dist/index-acc28a9b.js +0 -1
  124. package/dist/index-b32df058.js +0 -1
  125. package/dist/index-b659401e.js +0 -9
  126. package/dist/index-bcc0fefa.js +0 -1
  127. package/dist/index-d00482ad.js +0 -1
  128. package/dist/index.es-d4badfa1.js +0 -9
  129. package/dist/provider-e4a0ed94.js +0 -1
  130. package/dist/rainbow-3df70217.js +0 -1
  131. package/dist/sha224-57921047.js +0 -1
  132. package/dist/sha256-5bd230f1.js +0 -1
  133. package/dist/uAuth-2e999ea5.js +0 -1
  134. package/dist/walletConnect-565fd3db.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";var t=require("./index-0ce04635.cjs"),r=require("./__node-resolve_empty-fd72eb2c.cjs"),i=require("@ethersproject/bytes");let e=!1,n=!1;const o={debug:1,default:2,info:2,warning:3,error:4,off:5};let h=o.default,s=null;const u=function(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach((r=>{try{if("test"!=="test".normalize(r))throw new Error("bad normalize")}catch(i){t.push(r)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();var a,l;!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(a||(a={})),exports.ErrorCode=void 0,(l=exports.ErrorCode||(exports.ErrorCode={})).UNKNOWN_ERROR="UNKNOWN_ERROR",l.NOT_IMPLEMENTED="NOT_IMPLEMENTED",l.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",l.NETWORK_ERROR="NETWORK_ERROR",l.SERVER_ERROR="SERVER_ERROR",l.TIMEOUT="TIMEOUT",l.BUFFER_OVERRUN="BUFFER_OVERRUN",l.NUMERIC_FAULT="NUMERIC_FAULT",l.MISSING_NEW="MISSING_NEW",l.INVALID_ARGUMENT="INVALID_ARGUMENT",l.MISSING_ARGUMENT="MISSING_ARGUMENT",l.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",l.CALL_EXCEPTION="CALL_EXCEPTION",l.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",l.NONCE_EXPIRED="NONCE_EXPIRED",l.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",l.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",l.TRANSACTION_REPLACED="TRANSACTION_REPLACED",l.ACTION_REJECTED="ACTION_REJECTED";const m="0123456789abcdef";class f{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,r){const i=t.toLowerCase();null==o[i]&&this.throwArgumentError("invalid log level name","logLevel",t),h>o[i]||console.log.apply(console,r)}debug(...t){this._log(f.levels.DEBUG,t)}info(...t){this._log(f.levels.INFO,t)}warn(...t){this._log(f.levels.WARNING,t)}makeError(t,r,i){if(n)return this.makeError("censored error",r,{});r||(r=f.errors.UNKNOWN_ERROR),i||(i={});const e=[];Object.keys(i).forEach((t=>{const r=i[t];try{if(r instanceof Uint8Array){let i="";for(let t=0;t<r.length;t++)i+=m[r[t]>>4],i+=m[15&r[t]];e.push(t+"=Uint8Array(0x"+i+")")}else e.push(t+"="+JSON.stringify(r))}catch(r){e.push(t+"="+JSON.stringify(i[t].toString()))}})),e.push(`code=${r}`),e.push(`version=${this.version}`);const o=t;let h="";switch(r){case exports.ErrorCode.NUMERIC_FAULT:{h="NUMERIC_FAULT";const r=t;switch(r){case"overflow":case"underflow":case"division-by-zero":h+="-"+r;break;case"negative-power":case"negative-width":h+="-unsupported";break;case"unbound-bitwise-result":h+="-unbound-result"}break}case exports.ErrorCode.CALL_EXCEPTION:case exports.ErrorCode.INSUFFICIENT_FUNDS:case exports.ErrorCode.MISSING_NEW:case exports.ErrorCode.NONCE_EXPIRED:case exports.ErrorCode.REPLACEMENT_UNDERPRICED:case exports.ErrorCode.TRANSACTION_REPLACED:case exports.ErrorCode.UNPREDICTABLE_GAS_LIMIT:h=r}h&&(t+=" [ See: https://links.ethers.org/v5-errors-"+h+" ]"),e.length&&(t+=" ("+e.join(", ")+")");const s=new Error(t);return s.reason=o,s.code=r,Object.keys(i).forEach((function(t){s[t]=i[t]})),s}throwError(t,r,i){throw this.makeError(t,r,i)}throwArgumentError(t,r,i){return this.throwError(t,f.errors.INVALID_ARGUMENT,{argument:r,value:i})}assert(t,r,i,e){t||this.throwError(r,i,e)}assertArgument(t,r,i,e){t||this.throwArgumentError(r,i,e)}checkNormalize(t){u&&this.throwError("platform missing String.prototype.normalize",f.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:u})}checkSafeUint53(t,r){"number"==typeof t&&(null==r&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,f.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,f.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,r,i){i=i?": "+i:"",t<r&&this.throwError("missing argument"+i,f.errors.MISSING_ARGUMENT,{count:t,expectedCount:r}),t>r&&this.throwError("too many arguments"+i,f.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}checkNew(t,r){t!==Object&&null!=t||this.throwError("missing new",f.errors.MISSING_NEW,{name:r.name})}checkAbstract(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",f.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",f.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return s||(s=new f("logger/5.7.0")),s}static setCensorship(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",f.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),e){if(!t)return;this.globalLogger().throwError("error censorship permanent",f.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}n=!!t,e=!!r}static setLogLevel(t){const r=o[t.toLowerCase()];null!=r?h=r:f.globalLogger().warn("invalid log level - "+t)}static from(t){return new f(t)}}f.errors=exports.ErrorCode,f.levels=a;var d=Object.freeze({__proto__:null,get LogLevel(){return a},get ErrorCode(){return exports.ErrorCode},Logger:f}),p={exports:{}};!function(t,i){function e(t,r){if(!t)throw new Error(r||"Assertion failed")}function n(t,r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,r,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==r&&"be"!==r||(i=r,r=10),this._init(t||0,r||10,i||"be"))}var h;"object"==typeof t?t.exports=o:i.BN=o,o.BN=o,o.wordSize=26;try{h="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r.require$$1.Buffer}catch(t){}function s(t,r){var i=t.charCodeAt(r);return i>=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:void e(!1,"Invalid character in "+t)}function u(t,r,i){var e=s(t,i);return i-1>=r&&(e|=s(t,i-1)<<4),e}function a(t,r,i,n){for(var o=0,h=0,s=Math.min(t.length,i),u=r;u<s;u++){var a=t.charCodeAt(u)-48;o*=n,h=a>=49?a-49+10:a>=17?a-17+10:a,e(a>=0&&h<n,"Invalid character"),o+=h}return o}function l(t,r){t.words=r.words,t.length=r.length,t.negative=r.negative,t.red=r.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,r){return t.cmp(r)>0?t:r},o.min=function(t,r){return t.cmp(r)<0?t:r},o.prototype._init=function(t,r,i){if("number"==typeof t)return this._initNumber(t,r,i);if("object"==typeof t)return this._initArray(t,r,i);"hex"===r&&(r=16),e(r===(0|r)&&r>=2&&r<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<t.length&&(16===r?this._parseHex(t,n,i):(this._parseBase(t,r,n),"le"===i&&this._initArray(this.toArray(),r,i)))},o.prototype._initNumber=function(t,r,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(e(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),r,i)},o.prototype._initArray=function(t,r,i){if(e("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var o,h,s=0;if("be"===i)for(n=t.length-1,o=0;n>=0;n-=3)h=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[o]|=h<<s&67108863,this.words[o+1]=h>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===i)for(n=0,o=0;n<t.length;n+=3)h=t[n]|t[n+1]<<8|t[n+2]<<16,this.words[o]|=h<<s&67108863,this.words[o+1]=h>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(t,r,i){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var e=0;e<this.length;e++)this.words[e]=0;var n,o=0,h=0;if("be"===i)for(e=t.length-1;e>=r;e-=2)n=u(t,r,e)<<o,this.words[h]|=67108863&n,o>=18?(o-=18,h+=1,this.words[h]|=n>>>26):o+=8;else for(e=(t.length-r)%2==0?r+1:r;e<t.length;e+=2)n=u(t,r,e)<<o,this.words[h]|=67108863&n,o>=18?(o-=18,h+=1,this.words[h]|=n>>>26):o+=8;this._strip()},o.prototype._parseBase=function(t,r,i){this.words=[0],this.length=1;for(var e=0,n=1;n<=67108863;n*=r)e++;e--,n=n/r|0;for(var o=t.length-i,h=o%e,s=Math.min(o,o-h)+i,u=0,l=i;l<s;l+=e)u=a(t,l,l+e,r),this.imuln(n),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==h){var m=1;for(u=a(t,l,t.length,r),l=0;l<h;l++)m*=r;this.imuln(m),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var r=0;r<this.length;r++)t.words[r]=this.words[r];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){l(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=m}catch(t){o.prototype.inspect=m}else o.prototype.inspect=m;function m(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function g(t,r,i){i.negative=r.negative^t.negative;var e=t.length+r.length|0;i.length=e,e=e-1|0;var n=0|t.words[0],o=0|r.words[0],h=n*o,s=67108863&h,u=h/67108864|0;i.words[0]=s;for(var a=1;a<e;a++){for(var l=u>>>26,m=67108863&u,f=Math.min(a,r.length-1),d=Math.max(0,a-t.length+1);d<=f;d++){var p=a-d|0;l+=(h=(n=0|t.words[p])*(o=0|r.words[d])+m)/67108864|0,m=67108863&h}i.words[a]=0|m,u=0|l}return 0!==u?i.words[a]=0|u:i.length--,i._strip()}o.prototype.toString=function(t,r){var i;if(r=0|r||1,16===(t=t||10)||"hex"===t){i="";for(var n=0,o=0,h=0;h<this.length;h++){var s=this.words[h],u=(16777215&(s<<n|o)).toString(16);o=s>>>24-n&16777215,(n+=2)>=26&&(n-=26,h--),i=0!==o||h!==this.length-1?f[6-u.length]+u+i:u+i}for(0!==o&&(i=o.toString(16)+i);i.length%r!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var a=d[t],l=p[t];i="";var m=this.clone();for(m.negative=0;!m.isZero();){var g=m.modrn(l).toString(t);i=(m=m.idivn(l)).isZero()?g+i:f[a-g.length]+g+i}for(this.isZero()&&(i="0"+i);i.length%r!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}e(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&e(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},h&&(o.prototype.toBuffer=function(t,r){return this.toArrayLike(h,t,r)}),o.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},o.prototype.toArrayLike=function(t,r,i){this._strip();var n=this.byteLength(),o=i||Math.max(1,n);e(n<=o,"byte array longer than desired length"),e(o>0,"Requested array length <= 0");var h=function(t,r){return t.allocUnsafe?t.allocUnsafe(r):new t(r)}(t,o);return this["_toArrayLike"+("le"===r?"LE":"BE")](h,n),h},o.prototype._toArrayLikeLE=function(t,r){for(var i=0,e=0,n=0,o=0;n<this.length;n++){var h=this.words[n]<<o|e;t[i++]=255&h,i<t.length&&(t[i++]=h>>8&255),i<t.length&&(t[i++]=h>>16&255),6===o?(i<t.length&&(t[i++]=h>>24&255),e=0,o=0):(e=h>>>24,o+=2)}if(i<t.length)for(t[i++]=e;i<t.length;)t[i++]=0},o.prototype._toArrayLikeBE=function(t,r){for(var i=t.length-1,e=0,n=0,o=0;n<this.length;n++){var h=this.words[n]<<o|e;t[i--]=255&h,i>=0&&(t[i--]=h>>8&255),i>=0&&(t[i--]=h>>16&255),6===o?(i>=0&&(t[i--]=h>>24&255),e=0,o=0):(e=h>>>24,o+=2)}if(i>=0)for(t[i--]=e;i>=0;)t[i--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var r=t,i=0;return r>=4096&&(i+=13,r>>>=13),r>=64&&(i+=7,r>>>=7),r>=8&&(i+=4,r>>>=4),r>=2&&(i+=2,r>>>=2),i+r},o.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,i=0;return 0==(8191&r)&&(i+=13,r>>>=13),0==(127&r)&&(i+=7,r>>>=7),0==(15&r)&&(i+=4,r>>>=4),0==(3&r)&&(i+=2,r>>>=2),0==(1&r)&&i++,i},o.prototype.bitLength=function(){var t=this.words[this.length-1],r=this._countBits(t);return 26*(this.length-1)+r},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;r<this.length;r++){var i=this._zeroBits(this.words[r]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]|t.words[r];return this._strip()},o.prototype.ior=function(t){return e(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var i=0;i<r.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=r.length,this._strip()},o.prototype.iand=function(t){return e(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var r,i;this.length>t.length?(r=this,i=t):(r=t,i=this);for(var e=0;e<i.length;e++)this.words[e]=r.words[e]^i.words[e];if(this!==r)for(;e<r.length;e++)this.words[e]=r.words[e];return this.length=r.length,this._strip()},o.prototype.ixor=function(t){return e(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){e("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),i=t%26;this._expand(r),i>0&&r--;for(var n=0;n<r;n++)this.words[n]=67108863&~this.words[n];return i>0&&(this.words[n]=~this.words[n]&67108863>>26-i),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,r){e("number"==typeof t&&t>=0);var i=t/26|0,n=t%26;return this._expand(i+1),this.words[i]=r?this.words[i]|1<<n:this.words[i]&~(1<<n),this._strip()},o.prototype.iadd=function(t){var r,i,e;if(0!==this.negative&&0===t.negative)return this.negative=0,r=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();this.length>t.length?(i=this,e=t):(i=t,e=this);for(var n=0,o=0;o<e.length;o++)r=(0|i.words[o])+(0|e.words[o])+n,this.words[o]=67108863&r,n=r>>>26;for(;0!==n&&o<i.length;o++)r=(0|i.words[o])+n,this.words[o]=67108863&r,n=r>>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},o.prototype.add=function(t){var r;return 0!==t.negative&&0===this.negative?(t.negative=0,r=this.sub(t),t.negative^=1,r):0===t.negative&&0!==this.negative?(this.negative=0,r=t.sub(this),this.negative=1,r):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,e,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(i=this,e=t):(i=t,e=this);for(var o=0,h=0;h<e.length;h++)o=(r=(0|i.words[h])-(0|e.words[h])+o)>>26,this.words[h]=67108863&r;for(;0!==o&&h<i.length;h++)o=(r=(0|i.words[h])+o)>>26,this.words[h]=67108863&r;if(0===o&&h<i.length&&i!==this)for(;h<i.length;h++)this.words[h]=i.words[h];return this.length=Math.max(this.length,h),i!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var c=function(t,r,i){var e,n,o,h=t.words,s=r.words,u=i.words,a=0,l=0|h[0],m=8191&l,f=l>>>13,d=0|h[1],p=8191&d,g=d>>>13,c=0|h[2],M=8191&c,v=c>>>13,w=0|h[3],y=8191&w,E=w>>>13,b=0|h[4],N=8191&b,_=b>>>13,R=0|h[5],U=8191&R,S=R>>>13,x=0|h[6],A=8191&x,I=x>>>13,T=0|h[7],O=8191&T,C=T>>>13,k=0|h[8],L=8191&k,F=k>>>13,P=0|h[9],B=8191&P,D=P>>>13,G=0|s[0],q=8191&G,z=G>>>13,Z=0|s[1],j=8191&Z,X=Z>>>13,K=0|s[2],V=8191&K,W=K>>>13,H=0|s[3],$=8191&H,J=H>>>13,Q=0|s[4],Y=8191&Q,tt=Q>>>13,rt=0|s[5],it=8191&rt,et=rt>>>13,nt=0|s[6],ot=8191&nt,ht=nt>>>13,st=0|s[7],ut=8191&st,at=st>>>13,lt=0|s[8],mt=8191&lt,ft=lt>>>13,dt=0|s[9],pt=8191&dt,gt=dt>>>13;i.negative=t.negative^r.negative,i.length=19;var ct=(a+(e=Math.imul(m,q))|0)+((8191&(n=(n=Math.imul(m,z))+Math.imul(f,q)|0))<<13)|0;a=((o=Math.imul(f,z))+(n>>>13)|0)+(ct>>>26)|0,ct&=67108863,e=Math.imul(p,q),n=(n=Math.imul(p,z))+Math.imul(g,q)|0,o=Math.imul(g,z);var Mt=(a+(e=e+Math.imul(m,j)|0)|0)+((8191&(n=(n=n+Math.imul(m,X)|0)+Math.imul(f,j)|0))<<13)|0;a=((o=o+Math.imul(f,X)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,e=Math.imul(M,q),n=(n=Math.imul(M,z))+Math.imul(v,q)|0,o=Math.imul(v,z),e=e+Math.imul(p,j)|0,n=(n=n+Math.imul(p,X)|0)+Math.imul(g,j)|0,o=o+Math.imul(g,X)|0;var vt=(a+(e=e+Math.imul(m,V)|0)|0)+((8191&(n=(n=n+Math.imul(m,W)|0)+Math.imul(f,V)|0))<<13)|0;a=((o=o+Math.imul(f,W)|0)+(n>>>13)|0)+(vt>>>26)|0,vt&=67108863,e=Math.imul(y,q),n=(n=Math.imul(y,z))+Math.imul(E,q)|0,o=Math.imul(E,z),e=e+Math.imul(M,j)|0,n=(n=n+Math.imul(M,X)|0)+Math.imul(v,j)|0,o=o+Math.imul(v,X)|0,e=e+Math.imul(p,V)|0,n=(n=n+Math.imul(p,W)|0)+Math.imul(g,V)|0,o=o+Math.imul(g,W)|0;var wt=(a+(e=e+Math.imul(m,$)|0)|0)+((8191&(n=(n=n+Math.imul(m,J)|0)+Math.imul(f,$)|0))<<13)|0;a=((o=o+Math.imul(f,J)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,e=Math.imul(N,q),n=(n=Math.imul(N,z))+Math.imul(_,q)|0,o=Math.imul(_,z),e=e+Math.imul(y,j)|0,n=(n=n+Math.imul(y,X)|0)+Math.imul(E,j)|0,o=o+Math.imul(E,X)|0,e=e+Math.imul(M,V)|0,n=(n=n+Math.imul(M,W)|0)+Math.imul(v,V)|0,o=o+Math.imul(v,W)|0,e=e+Math.imul(p,$)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(g,$)|0,o=o+Math.imul(g,J)|0;var yt=(a+(e=e+Math.imul(m,Y)|0)|0)+((8191&(n=(n=n+Math.imul(m,tt)|0)+Math.imul(f,Y)|0))<<13)|0;a=((o=o+Math.imul(f,tt)|0)+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,e=Math.imul(U,q),n=(n=Math.imul(U,z))+Math.imul(S,q)|0,o=Math.imul(S,z),e=e+Math.imul(N,j)|0,n=(n=n+Math.imul(N,X)|0)+Math.imul(_,j)|0,o=o+Math.imul(_,X)|0,e=e+Math.imul(y,V)|0,n=(n=n+Math.imul(y,W)|0)+Math.imul(E,V)|0,o=o+Math.imul(E,W)|0,e=e+Math.imul(M,$)|0,n=(n=n+Math.imul(M,J)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,J)|0,e=e+Math.imul(p,Y)|0,n=(n=n+Math.imul(p,tt)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,tt)|0;var Et=(a+(e=e+Math.imul(m,it)|0)|0)+((8191&(n=(n=n+Math.imul(m,et)|0)+Math.imul(f,it)|0))<<13)|0;a=((o=o+Math.imul(f,et)|0)+(n>>>13)|0)+(Et>>>26)|0,Et&=67108863,e=Math.imul(A,q),n=(n=Math.imul(A,z))+Math.imul(I,q)|0,o=Math.imul(I,z),e=e+Math.imul(U,j)|0,n=(n=n+Math.imul(U,X)|0)+Math.imul(S,j)|0,o=o+Math.imul(S,X)|0,e=e+Math.imul(N,V)|0,n=(n=n+Math.imul(N,W)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,W)|0,e=e+Math.imul(y,$)|0,n=(n=n+Math.imul(y,J)|0)+Math.imul(E,$)|0,o=o+Math.imul(E,J)|0,e=e+Math.imul(M,Y)|0,n=(n=n+Math.imul(M,tt)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,tt)|0,e=e+Math.imul(p,it)|0,n=(n=n+Math.imul(p,et)|0)+Math.imul(g,it)|0,o=o+Math.imul(g,et)|0;var bt=(a+(e=e+Math.imul(m,ot)|0)|0)+((8191&(n=(n=n+Math.imul(m,ht)|0)+Math.imul(f,ot)|0))<<13)|0;a=((o=o+Math.imul(f,ht)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,e=Math.imul(O,q),n=(n=Math.imul(O,z))+Math.imul(C,q)|0,o=Math.imul(C,z),e=e+Math.imul(A,j)|0,n=(n=n+Math.imul(A,X)|0)+Math.imul(I,j)|0,o=o+Math.imul(I,X)|0,e=e+Math.imul(U,V)|0,n=(n=n+Math.imul(U,W)|0)+Math.imul(S,V)|0,o=o+Math.imul(S,W)|0,e=e+Math.imul(N,$)|0,n=(n=n+Math.imul(N,J)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,J)|0,e=e+Math.imul(y,Y)|0,n=(n=n+Math.imul(y,tt)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,tt)|0,e=e+Math.imul(M,it)|0,n=(n=n+Math.imul(M,et)|0)+Math.imul(v,it)|0,o=o+Math.imul(v,et)|0,e=e+Math.imul(p,ot)|0,n=(n=n+Math.imul(p,ht)|0)+Math.imul(g,ot)|0,o=o+Math.imul(g,ht)|0;var Nt=(a+(e=e+Math.imul(m,ut)|0)|0)+((8191&(n=(n=n+Math.imul(m,at)|0)+Math.imul(f,ut)|0))<<13)|0;a=((o=o+Math.imul(f,at)|0)+(n>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,e=Math.imul(L,q),n=(n=Math.imul(L,z))+Math.imul(F,q)|0,o=Math.imul(F,z),e=e+Math.imul(O,j)|0,n=(n=n+Math.imul(O,X)|0)+Math.imul(C,j)|0,o=o+Math.imul(C,X)|0,e=e+Math.imul(A,V)|0,n=(n=n+Math.imul(A,W)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,W)|0,e=e+Math.imul(U,$)|0,n=(n=n+Math.imul(U,J)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,J)|0,e=e+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,tt)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,tt)|0,e=e+Math.imul(y,it)|0,n=(n=n+Math.imul(y,et)|0)+Math.imul(E,it)|0,o=o+Math.imul(E,et)|0,e=e+Math.imul(M,ot)|0,n=(n=n+Math.imul(M,ht)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,ht)|0,e=e+Math.imul(p,ut)|0,n=(n=n+Math.imul(p,at)|0)+Math.imul(g,ut)|0,o=o+Math.imul(g,at)|0;var _t=(a+(e=e+Math.imul(m,mt)|0)|0)+((8191&(n=(n=n+Math.imul(m,ft)|0)+Math.imul(f,mt)|0))<<13)|0;a=((o=o+Math.imul(f,ft)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,e=Math.imul(B,q),n=(n=Math.imul(B,z))+Math.imul(D,q)|0,o=Math.imul(D,z),e=e+Math.imul(L,j)|0,n=(n=n+Math.imul(L,X)|0)+Math.imul(F,j)|0,o=o+Math.imul(F,X)|0,e=e+Math.imul(O,V)|0,n=(n=n+Math.imul(O,W)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,W)|0,e=e+Math.imul(A,$)|0,n=(n=n+Math.imul(A,J)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,J)|0,e=e+Math.imul(U,Y)|0,n=(n=n+Math.imul(U,tt)|0)+Math.imul(S,Y)|0,o=o+Math.imul(S,tt)|0,e=e+Math.imul(N,it)|0,n=(n=n+Math.imul(N,et)|0)+Math.imul(_,it)|0,o=o+Math.imul(_,et)|0,e=e+Math.imul(y,ot)|0,n=(n=n+Math.imul(y,ht)|0)+Math.imul(E,ot)|0,o=o+Math.imul(E,ht)|0,e=e+Math.imul(M,ut)|0,n=(n=n+Math.imul(M,at)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,at)|0,e=e+Math.imul(p,mt)|0,n=(n=n+Math.imul(p,ft)|0)+Math.imul(g,mt)|0,o=o+Math.imul(g,ft)|0;var Rt=(a+(e=e+Math.imul(m,pt)|0)|0)+((8191&(n=(n=n+Math.imul(m,gt)|0)+Math.imul(f,pt)|0))<<13)|0;a=((o=o+Math.imul(f,gt)|0)+(n>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,e=Math.imul(B,j),n=(n=Math.imul(B,X))+Math.imul(D,j)|0,o=Math.imul(D,X),e=e+Math.imul(L,V)|0,n=(n=n+Math.imul(L,W)|0)+Math.imul(F,V)|0,o=o+Math.imul(F,W)|0,e=e+Math.imul(O,$)|0,n=(n=n+Math.imul(O,J)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,J)|0,e=e+Math.imul(A,Y)|0,n=(n=n+Math.imul(A,tt)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,tt)|0,e=e+Math.imul(U,it)|0,n=(n=n+Math.imul(U,et)|0)+Math.imul(S,it)|0,o=o+Math.imul(S,et)|0,e=e+Math.imul(N,ot)|0,n=(n=n+Math.imul(N,ht)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,ht)|0,e=e+Math.imul(y,ut)|0,n=(n=n+Math.imul(y,at)|0)+Math.imul(E,ut)|0,o=o+Math.imul(E,at)|0,e=e+Math.imul(M,mt)|0,n=(n=n+Math.imul(M,ft)|0)+Math.imul(v,mt)|0,o=o+Math.imul(v,ft)|0;var Ut=(a+(e=e+Math.imul(p,pt)|0)|0)+((8191&(n=(n=n+Math.imul(p,gt)|0)+Math.imul(g,pt)|0))<<13)|0;a=((o=o+Math.imul(g,gt)|0)+(n>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,e=Math.imul(B,V),n=(n=Math.imul(B,W))+Math.imul(D,V)|0,o=Math.imul(D,W),e=e+Math.imul(L,$)|0,n=(n=n+Math.imul(L,J)|0)+Math.imul(F,$)|0,o=o+Math.imul(F,J)|0,e=e+Math.imul(O,Y)|0,n=(n=n+Math.imul(O,tt)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,tt)|0,e=e+Math.imul(A,it)|0,n=(n=n+Math.imul(A,et)|0)+Math.imul(I,it)|0,o=o+Math.imul(I,et)|0,e=e+Math.imul(U,ot)|0,n=(n=n+Math.imul(U,ht)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,ht)|0,e=e+Math.imul(N,ut)|0,n=(n=n+Math.imul(N,at)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,at)|0,e=e+Math.imul(y,mt)|0,n=(n=n+Math.imul(y,ft)|0)+Math.imul(E,mt)|0,o=o+Math.imul(E,ft)|0;var St=(a+(e=e+Math.imul(M,pt)|0)|0)+((8191&(n=(n=n+Math.imul(M,gt)|0)+Math.imul(v,pt)|0))<<13)|0;a=((o=o+Math.imul(v,gt)|0)+(n>>>13)|0)+(St>>>26)|0,St&=67108863,e=Math.imul(B,$),n=(n=Math.imul(B,J))+Math.imul(D,$)|0,o=Math.imul(D,J),e=e+Math.imul(L,Y)|0,n=(n=n+Math.imul(L,tt)|0)+Math.imul(F,Y)|0,o=o+Math.imul(F,tt)|0,e=e+Math.imul(O,it)|0,n=(n=n+Math.imul(O,et)|0)+Math.imul(C,it)|0,o=o+Math.imul(C,et)|0,e=e+Math.imul(A,ot)|0,n=(n=n+Math.imul(A,ht)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,ht)|0,e=e+Math.imul(U,ut)|0,n=(n=n+Math.imul(U,at)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,at)|0,e=e+Math.imul(N,mt)|0,n=(n=n+Math.imul(N,ft)|0)+Math.imul(_,mt)|0,o=o+Math.imul(_,ft)|0;var xt=(a+(e=e+Math.imul(y,pt)|0)|0)+((8191&(n=(n=n+Math.imul(y,gt)|0)+Math.imul(E,pt)|0))<<13)|0;a=((o=o+Math.imul(E,gt)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,e=Math.imul(B,Y),n=(n=Math.imul(B,tt))+Math.imul(D,Y)|0,o=Math.imul(D,tt),e=e+Math.imul(L,it)|0,n=(n=n+Math.imul(L,et)|0)+Math.imul(F,it)|0,o=o+Math.imul(F,et)|0,e=e+Math.imul(O,ot)|0,n=(n=n+Math.imul(O,ht)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,ht)|0,e=e+Math.imul(A,ut)|0,n=(n=n+Math.imul(A,at)|0)+Math.imul(I,ut)|0,o=o+Math.imul(I,at)|0,e=e+Math.imul(U,mt)|0,n=(n=n+Math.imul(U,ft)|0)+Math.imul(S,mt)|0,o=o+Math.imul(S,ft)|0;var At=(a+(e=e+Math.imul(N,pt)|0)|0)+((8191&(n=(n=n+Math.imul(N,gt)|0)+Math.imul(_,pt)|0))<<13)|0;a=((o=o+Math.imul(_,gt)|0)+(n>>>13)|0)+(At>>>26)|0,At&=67108863,e=Math.imul(B,it),n=(n=Math.imul(B,et))+Math.imul(D,it)|0,o=Math.imul(D,et),e=e+Math.imul(L,ot)|0,n=(n=n+Math.imul(L,ht)|0)+Math.imul(F,ot)|0,o=o+Math.imul(F,ht)|0,e=e+Math.imul(O,ut)|0,n=(n=n+Math.imul(O,at)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,at)|0,e=e+Math.imul(A,mt)|0,n=(n=n+Math.imul(A,ft)|0)+Math.imul(I,mt)|0,o=o+Math.imul(I,ft)|0;var It=(a+(e=e+Math.imul(U,pt)|0)|0)+((8191&(n=(n=n+Math.imul(U,gt)|0)+Math.imul(S,pt)|0))<<13)|0;a=((o=o+Math.imul(S,gt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,e=Math.imul(B,ot),n=(n=Math.imul(B,ht))+Math.imul(D,ot)|0,o=Math.imul(D,ht),e=e+Math.imul(L,ut)|0,n=(n=n+Math.imul(L,at)|0)+Math.imul(F,ut)|0,o=o+Math.imul(F,at)|0,e=e+Math.imul(O,mt)|0,n=(n=n+Math.imul(O,ft)|0)+Math.imul(C,mt)|0,o=o+Math.imul(C,ft)|0;var Tt=(a+(e=e+Math.imul(A,pt)|0)|0)+((8191&(n=(n=n+Math.imul(A,gt)|0)+Math.imul(I,pt)|0))<<13)|0;a=((o=o+Math.imul(I,gt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,e=Math.imul(B,ut),n=(n=Math.imul(B,at))+Math.imul(D,ut)|0,o=Math.imul(D,at),e=e+Math.imul(L,mt)|0,n=(n=n+Math.imul(L,ft)|0)+Math.imul(F,mt)|0,o=o+Math.imul(F,ft)|0;var Ot=(a+(e=e+Math.imul(O,pt)|0)|0)+((8191&(n=(n=n+Math.imul(O,gt)|0)+Math.imul(C,pt)|0))<<13)|0;a=((o=o+Math.imul(C,gt)|0)+(n>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,e=Math.imul(B,mt),n=(n=Math.imul(B,ft))+Math.imul(D,mt)|0,o=Math.imul(D,ft);var Ct=(a+(e=e+Math.imul(L,pt)|0)|0)+((8191&(n=(n=n+Math.imul(L,gt)|0)+Math.imul(F,pt)|0))<<13)|0;a=((o=o+Math.imul(F,gt)|0)+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863;var kt=(a+(e=Math.imul(B,pt))|0)+((8191&(n=(n=Math.imul(B,gt))+Math.imul(D,pt)|0))<<13)|0;return a=((o=Math.imul(D,gt))+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,u[0]=ct,u[1]=Mt,u[2]=vt,u[3]=wt,u[4]=yt,u[5]=Et,u[6]=bt,u[7]=Nt,u[8]=_t,u[9]=Rt,u[10]=Ut,u[11]=St,u[12]=xt,u[13]=At,u[14]=It,u[15]=Tt,u[16]=Ot,u[17]=Ct,u[18]=kt,0!==a&&(u[19]=a,i.length++),i};function M(t,r,i){i.negative=r.negative^t.negative,i.length=t.length+r.length;for(var e=0,n=0,o=0;o<i.length-1;o++){var h=n;n=0;for(var s=67108863&e,u=Math.min(o,r.length-1),a=Math.max(0,o-t.length+1);a<=u;a++){var l=o-a,m=(0|t.words[l])*(0|r.words[a]),f=67108863&m;s=67108863&(f=f+s|0),n+=(h=(h=h+(m/67108864|0)|0)+(f>>>26)|0)>>>26,h&=67108863}i.words[o]=s,e=h,h=n}return 0!==e?i.words[o]=e:i.length--,i._strip()}function v(t,r,i){return M(t,r,i)}Math.imul||(c=g),o.prototype.mulTo=function(t,r){var i=this.length+t.length;return 10===this.length&&10===t.length?c(this,t,r):i<63?g(this,t,r):i<1024?M(this,t,r):v(this,t,r)},o.prototype.mul=function(t){var r=new o(null);return r.words=new Array(this.length+t.length),this.mulTo(t,r)},o.prototype.mulf=function(t){var r=new o(null);return r.words=new Array(this.length+t.length),v(this,t,r)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var r=t<0;r&&(t=-t),e("number"==typeof t),e(t<67108864);for(var i=0,n=0;n<this.length;n++){var o=(0|this.words[n])*t,h=(67108863&o)+(67108863&i);i>>=26,i+=o/67108864|0,i+=h>>>26,this.words[n]=67108863&h}return 0!==i&&(this.words[n]=i,this.length++),r?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var r=function(t){for(var r=new Array(t.bitLength()),i=0;i<r.length;i++){var e=i/26|0,n=i%26;r[i]=t.words[e]>>>n&1}return r}(t);if(0===r.length)return new o(1);for(var i=this,e=0;e<r.length&&0===r[e];e++,i=i.sqr());if(++e<r.length)for(var n=i.sqr();e<r.length;e++,n=n.sqr())0!==r[e]&&(i=i.mul(n));return i},o.prototype.iushln=function(t){e("number"==typeof t&&t>=0);var r,i=t%26,n=(t-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var h=0;for(r=0;r<this.length;r++){var s=this.words[r]&o,u=(0|this.words[r])-s<<i;this.words[r]=u|h,h=s>>>26-i}h&&(this.words[r]=h,this.length++)}if(0!==n){for(r=this.length-1;r>=0;r--)this.words[r+n]=this.words[r];for(r=0;r<n;r++)this.words[r]=0;this.length+=n}return this._strip()},o.prototype.ishln=function(t){return e(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,r,i){var n;e("number"==typeof t&&t>=0),n=r?(r-r%26)/26:0;var o=t%26,h=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=i;if(n-=h,n=Math.max(0,n),u){for(var a=0;a<h;a++)u.words[a]=this.words[a];u.length=h}if(0===h);else if(this.length>h)for(this.length-=h,a=0;a<this.length;a++)this.words[a]=this.words[a+h];else this.words[0]=0,this.length=1;var l=0;for(a=this.length-1;a>=0&&(0!==l||a>=n);a--){var m=0|this.words[a];this.words[a]=l<<26-o|m>>>o,l=m&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,r,i){return e(0===this.negative),this.iushrn(t,r,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){e("number"==typeof t&&t>=0);var r=t%26,i=(t-r)/26,n=1<<r;return!(this.length<=i||!(this.words[i]&n))},o.prototype.imaskn=function(t){e("number"==typeof t&&t>=0);var r=t%26,i=(t-r)/26;if(e(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==r&&i++,this.length=Math.min(i,this.length),0!==r){var n=67108863^67108863>>>r<<r;this.words[this.length-1]&=n}return this._strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return e("number"==typeof t),e(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},o.prototype.isubn=function(t){if(e("number"==typeof t),e(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,r,i){var n,o,h=t.length+i;this._expand(h);var s=0;for(n=0;n<t.length;n++){o=(0|this.words[n+i])+s;var u=(0|t.words[n])*r;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[n+i]=67108863&o}for(;n<this.length-i;n++)s=(o=(0|this.words[n+i])+s)>>26,this.words[n+i]=67108863&o;if(0===s)return this._strip();for(e(-1===s),s=0,n=0;n<this.length;n++)s=(o=-(0|this.words[n])+s)>>26,this.words[n]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,r){var i=(this.length,t.length),e=this.clone(),n=t,h=0|n.words[n.length-1];0!=(i=26-this._countBits(h))&&(n=n.ushln(i),e.iushln(i),h=0|n.words[n.length-1]);var s,u=e.length-n.length;if("mod"!==r){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var a=0;a<s.length;a++)s.words[a]=0}var l=e.clone()._ishlnsubmul(n,1,u);0===l.negative&&(e=l,s&&(s.words[u]=1));for(var m=u-1;m>=0;m--){var f=67108864*(0|e.words[n.length+m])+(0|e.words[n.length+m-1]);for(f=Math.min(f/h|0,67108863),e._ishlnsubmul(n,f,m);0!==e.negative;)f--,e.negative=0,e._ishlnsubmul(n,1,m),e.isZero()||(e.negative^=1);s&&(s.words[m]=f)}return s&&s._strip(),e._strip(),"div"!==r&&0!==i&&e.iushrn(i),{div:s||null,mod:e}},o.prototype.divmod=function(t,r,i){return e(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,r),"mod"!==r&&(n=s.div.neg()),"div"!==r&&(h=s.mod.neg(),i&&0!==h.negative&&h.iadd(t)),{div:n,mod:h}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),r),"mod"!==r&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),r),"div"!==r&&(h=s.mod.neg(),i&&0!==h.negative&&h.isub(t)),{div:s.div,mod:h}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,r);var n,h,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var i=0!==r.div.negative?r.mod.isub(t):r.mod,e=t.ushrn(1),n=t.andln(1),o=i.cmp(e);return o<0||1===n&&0===o?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},o.prototype.modrn=function(t){var r=t<0;r&&(t=-t),e(t<=67108863);for(var i=(1<<26)%t,n=0,o=this.length-1;o>=0;o--)n=(i*n+(0|this.words[o]))%t;return r?-n:n},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var r=t<0;r&&(t=-t),e(t<=67108863);for(var i=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*i;this.words[n]=o/t|0,i=o%t}return this._strip(),r?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){e(0===t.negative),e(!t.isZero());var r=this,i=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var n=new o(1),h=new o(0),s=new o(0),u=new o(1),a=0;r.isEven()&&i.isEven();)r.iushrn(1),i.iushrn(1),++a;for(var l=i.clone(),m=r.clone();!r.isZero();){for(var f=0,d=1;0==(r.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)(n.isOdd()||h.isOdd())&&(n.iadd(l),h.isub(m)),n.iushrn(1),h.iushrn(1);for(var p=0,g=1;0==(i.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(m)),s.iushrn(1),u.iushrn(1);r.cmp(i)>=0?(r.isub(i),n.isub(s),h.isub(u)):(i.isub(r),s.isub(n),u.isub(h))}return{a:s,b:u,gcd:i.iushln(a)}},o.prototype._invmp=function(t){e(0===t.negative),e(!t.isZero());var r=this,i=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var n,h=new o(1),s=new o(0),u=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var a=0,l=1;0==(r.words[0]&l)&&a<26;++a,l<<=1);if(a>0)for(r.iushrn(a);a-- >0;)h.isOdd()&&h.iadd(u),h.iushrn(1);for(var m=0,f=1;0==(i.words[0]&f)&&m<26;++m,f<<=1);if(m>0)for(i.iushrn(m);m-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),h.isub(s)):(i.isub(r),s.isub(h))}return(n=0===r.cmpn(1)?h:s).cmpn(0)<0&&n.iadd(t),n},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),i=t.clone();r.negative=0,i.negative=0;for(var e=0;r.isEven()&&i.isEven();e++)r.iushrn(1),i.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=r.cmp(i);if(n<0){var o=r;r=i,i=o}else if(0===n||0===i.cmpn(1))break;r.isub(i)}return i.iushln(e)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){e("number"==typeof t);var r=t%26,i=(t-r)/26,n=1<<r;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var o=n,h=i;0!==o&&h<this.length;h++){var s=0|this.words[h];o=(s+=o)>>>26,s&=67108863,this.words[h]=s}return 0!==o&&(this.words[h]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var r,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)r=1;else{i&&(t=-t),e(t<=67108863,"Number is too big");var n=0|this.words[0];r=n===t?0:n<t?-1:1}return 0!==this.negative?0|-r:r},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var r=this.ucmp(t);return 0!==this.negative?0|-r:r},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var r=0,i=this.length-1;i>=0;i--){var e=0|this.words[i],n=0|t.words[i];if(e!==n){e<n?r=-1:e>n&&(r=1);break}}return r},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new R(t)},o.prototype.toRed=function(t){return e(!this.red,"Already a number in reduction context"),e(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return e(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return e(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return e(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return e(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return e(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return e(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return e(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return e(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return e(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return e(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return e(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return e(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return e(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return e(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return e(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var w={k256:null,p224:null,p192:null,p25519:null};function y(t,r){this.name=t,this.p=new o(r,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function N(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function R(t){if("string"==typeof t){var r=o._prime(t);this.m=r.p,this.prime=r}else e(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function U(t){R.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var r,i=t;do{this.split(i,this.tmp),r=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(r>this.n);var e=r<this.n?-1:i.ucmp(this.p);return 0===e?(i.words[0]=0,i.length=1):e>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},y.prototype.split=function(t,r){t.iushrn(this.n,0,r)},y.prototype.imulK=function(t){return t.imul(this.k)},n(E,y),E.prototype.split=function(t,r){for(var i=4194303,e=Math.min(t.length,9),n=0;n<e;n++)r.words[n]=t.words[n];if(r.length=e,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(r.words[r.length++]=o&i,n=10;n<t.length;n++){var h=0|t.words[n];t.words[n-10]=(h&i)<<4|o>>>22,o=h}o>>>=22,t.words[n-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},E.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,i=0;i<t.length;i++){var e=0|t.words[i];r+=977*e,t.words[i]=67108863&r,r=64*e+(r/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(b,y),n(N,y),n(_,y),_.prototype.imulK=function(t){for(var r=0,i=0;i<t.length;i++){var e=19*(0|t.words[i])+r,n=67108863&e;e>>>=26,t.words[i]=n,r=e}return 0!==r&&(t.words[t.length++]=r),t},o._prime=function(t){if(w[t])return w[t];var r;if("k256"===t)r=new E;else if("p224"===t)r=new b;else if("p192"===t)r=new N;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new _}return w[t]=r,r},R.prototype._verify1=function(t){e(0===t.negative,"red works only with positives"),e(t.red,"red works only with red numbers")},R.prototype._verify2=function(t,r){e(0==(t.negative|r.negative),"red works only with positives"),e(t.red&&t.red===r.red,"red works only with red numbers")},R.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(l(t,t.umod(this.m)._forceRed(this)),t)},R.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},R.prototype.add=function(t,r){this._verify2(t,r);var i=t.add(r);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},R.prototype.iadd=function(t,r){this._verify2(t,r);var i=t.iadd(r);return i.cmp(this.m)>=0&&i.isub(this.m),i},R.prototype.sub=function(t,r){this._verify2(t,r);var i=t.sub(r);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},R.prototype.isub=function(t,r){this._verify2(t,r);var i=t.isub(r);return i.cmpn(0)<0&&i.iadd(this.m),i},R.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},R.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},R.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},R.prototype.isqr=function(t){return this.imul(t,t.clone())},R.prototype.sqr=function(t){return this.mul(t,t)},R.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(e(r%2==1),3===r){var i=this.m.add(new o(1)).iushrn(2);return this.pow(t,i)}for(var n=this.m.subn(1),h=0;!n.isZero()&&0===n.andln(1);)h++,n.iushrn(1);e(!n.isZero());var s=new o(1).toRed(this),u=s.redNeg(),a=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,a).cmp(u);)l.redIAdd(u);for(var m=this.pow(l,n),f=this.pow(t,n.addn(1).iushrn(1)),d=this.pow(t,n),p=h;0!==d.cmp(s);){for(var g=d,c=0;0!==g.cmp(s);c++)g=g.redSqr();e(c<p);var M=this.pow(m,new o(1).iushln(p-c-1));f=f.redMul(M),m=M.redSqr(),d=d.redMul(m),p=c}return f},R.prototype.invm=function(t){var r=t._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},R.prototype.pow=function(t,r){if(r.isZero())return new o(1).toRed(this);if(0===r.cmpn(1))return t.clone();var i=new Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var e=2;e<i.length;e++)i[e]=this.mul(i[e-1],t);var n=i[0],h=0,s=0,u=r.bitLength()%26;for(0===u&&(u=26),e=r.length-1;e>=0;e--){for(var a=r.words[e],l=u-1;l>=0;l--){var m=a>>l&1;n!==i[0]&&(n=this.sqr(n)),0!==m||0!==h?(h<<=1,h|=m,(4==++s||0===e&&0===l)&&(n=this.mul(n,i[h]),s=0,h=0)):s=0}u=26}return n},R.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},R.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},o.mont=function(t){return new U(t)},n(U,R),U.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},U.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},U.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(r),e=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(e).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},U.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new o(0)._forceRed(this);var i=t.mul(r),e=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(e).iushrn(this.shift),h=n;return n.cmp(this.m)>=0?h=n.isub(this.m):n.cmpn(0)<0&&(h=n.iadd(this.m)),h._forceRed(this)},U.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(p,t.commonjsGlobal);const g="bignumber/5.7.0";var c=p.exports.BN;const M=new f(g),v={},w=9007199254740991;let y=!1;class E{constructor(t,r){t!==v&&M.throwError("cannot call constructor directly; use BigNumber.from",f.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return N(_(this).fromTwos(t))}toTwos(t){return N(_(this).toTwos(t))}abs(){return"-"===this._hex[0]?E.from(this._hex.substring(1)):this}add(t){return N(_(this).add(_(t)))}sub(t){return N(_(this).sub(_(t)))}div(t){return E.from(t).isZero()&&R("division-by-zero","div"),N(_(this).div(_(t)))}mul(t){return N(_(this).mul(_(t)))}mod(t){const r=_(t);return r.isNeg()&&R("division-by-zero","mod"),N(_(this).umod(r))}pow(t){const r=_(t);return r.isNeg()&&R("negative-power","pow"),N(_(this).pow(r))}and(t){const r=_(t);return(this.isNegative()||r.isNeg())&&R("unbound-bitwise-result","and"),N(_(this).and(r))}or(t){const r=_(t);return(this.isNegative()||r.isNeg())&&R("unbound-bitwise-result","or"),N(_(this).or(r))}xor(t){const r=_(t);return(this.isNegative()||r.isNeg())&&R("unbound-bitwise-result","xor"),N(_(this).xor(r))}mask(t){return(this.isNegative()||t<0)&&R("negative-width","mask"),N(_(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&R("negative-width","shl"),N(_(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&R("negative-width","shr"),N(_(this).shrn(t))}eq(t){return _(this).eq(_(t))}lt(t){return _(this).lt(_(t))}lte(t){return _(this).lte(_(t))}gt(t){return _(this).gt(_(t))}gte(t){return _(this).gte(_(t))}isNegative(){return"-"===this._hex[0]}isZero(){return _(this).isZero()}toNumber(){try{return _(this).toNumber()}catch(t){R("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return M.throwError("this platform does not support BigInt",f.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?y||(y=!0,M.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?M.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",f.errors.UNEXPECTED_ARGUMENT,{}):M.throwError("BigNumber.toString does not accept parameters",f.errors.UNEXPECTED_ARGUMENT,{})),_(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof E)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new E(v,b(t)):t.match(/^-?[0-9]+$/)?new E(v,b(new c(t))):M.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&R("underflow","BigNumber.from",t),(t>=w||t<=-w)&&R("overflow","BigNumber.from",t),E.from(String(t));const r=t;if("bigint"==typeof r)return E.from(r.toString());if(i.isBytes(r))return E.from(i.hexlify(r));if(r)if(r.toHexString){const t=r.toHexString();if("string"==typeof t)return E.from(t)}else{let t=r._hex;if(null==t&&"BigNumber"===r.type&&(t=r.hex),"string"==typeof t&&(i.isHexString(t)||"-"===t[0]&&i.isHexString(t.substring(1))))return E.from(t)}return M.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function b(t){if("string"!=typeof t)return b(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&M.throwArgumentError("invalid hex","value",t),"0x00"===(t=b(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function N(t){return E.from(b(t))}function _(t){const r=E.from(t).toHexString();return"-"===r[0]?new c("-"+r.substring(3),16):new c(r.substring(2),16)}function R(t,r,i){const e={fault:t,operation:r};return null!=i&&(e.value=i),M.throwError(t,f.errors.NUMERIC_FAULT,e)}const U=new f("strings/5.7.0");var S,x;function A(t,r,i,e,n){if(t===exports.Utf8ErrorReason.BAD_PREFIX||t===exports.Utf8ErrorReason.UNEXPECTED_CONTINUE){let t=0;for(let e=r+1;e<i.length&&i[e]>>6==2;e++)t++;return t}return t===exports.Utf8ErrorReason.OVERRUN?i.length-r-1:0}exports.UnicodeNormalizationForm=void 0,(S=exports.UnicodeNormalizationForm||(exports.UnicodeNormalizationForm={})).current="",S.NFC="NFC",S.NFD="NFD",S.NFKC="NFKC",S.NFKD="NFKD",exports.Utf8ErrorReason=void 0,(x=exports.Utf8ErrorReason||(exports.Utf8ErrorReason={})).UNEXPECTED_CONTINUE="unexpected continuation byte",x.BAD_PREFIX="bad codepoint prefix",x.OVERRUN="string overrun",x.MISSING_CONTINUE="missing continuation byte",x.OUT_OF_RANGE="out of UTF-8 range",x.UTF16_SURROGATE="UTF-16 surrogate",x.OVERLONG="overlong representation";const I=Object.freeze({error:function(t,r,i,e,n){return U.throwArgumentError(`invalid codepoint at offset ${r}; ${t}`,"bytes",i)},ignore:A,replace:function(t,r,i,e,n){return t===exports.Utf8ErrorReason.OVERLONG?(e.push(n),0):(e.push(65533),A(t,r,i))}});function T(t,r){null==r&&(r=I.error),t=i.arrayify(t);const e=[];let n=0;for(;n<t.length;){const i=t[n++];if(i>>7==0){e.push(i);continue}let o=null,h=null;if(192==(224&i))o=1,h=127;else if(224==(240&i))o=2,h=2047;else{if(240!=(248&i)){n+=r(128==(192&i)?exports.Utf8ErrorReason.UNEXPECTED_CONTINUE:exports.Utf8ErrorReason.BAD_PREFIX,n-1,t,e);continue}o=3,h=65535}if(n-1+o>=t.length){n+=r(exports.Utf8ErrorReason.OVERRUN,n-1,t,e);continue}let s=i&(1<<8-o-1)-1;for(let i=0;i<o;i++){let i=t[n];if(128!=(192&i)){n+=r(exports.Utf8ErrorReason.MISSING_CONTINUE,n,t,e),s=null;break}s=s<<6|63&i,n++}null!==s&&(s>1114111?n+=r(exports.Utf8ErrorReason.OUT_OF_RANGE,n-1-o,t,e,s):s>=55296&&s<=57343?n+=r(exports.Utf8ErrorReason.UTF16_SURROGATE,n-1-o,t,e,s):s<=h?n+=r(exports.Utf8ErrorReason.OVERLONG,n-1-o,t,e,s):e.push(s))}return e}function O(t,r=exports.UnicodeNormalizationForm.current){r!=exports.UnicodeNormalizationForm.current&&(U.checkNormalize(),t=t.normalize(r));let e=[];for(let r=0;r<t.length;r++){const i=t.charCodeAt(r);if(i<128)e.push(i);else if(i<2048)e.push(i>>6|192),e.push(63&i|128);else if(55296==(64512&i)){r++;const n=t.charCodeAt(r);if(r>=t.length||56320!=(64512&n))throw new Error("invalid utf-8 string");const o=65536+((1023&i)<<10)+(1023&n);e.push(o>>18|240),e.push(o>>12&63|128),e.push(o>>6&63|128),e.push(63&o|128)}else e.push(i>>12|224),e.push(i>>6&63|128),e.push(63&i|128)}return i.arrayify(e)}function C(t){const r="0000"+t.toString(16);return"\\u"+r.substring(r.length-4)}function k(t){return t.map((t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10&1023),56320+(1023&t))))).join("")}exports.BigNumber=E,exports.Logger=f,exports.Utf8ErrorFuncs=I,exports._toEscapedUtf8String=function(t,r){return'"'+T(t,r).map((t=>{if(t<256){switch(t){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(t>=32&&t<127)return String.fromCharCode(t)}return t<=65535?C(t):C(55296+((t-=65536)>>10&1023))+C(56320+(1023&t))})).join("")+'"'},exports._toUtf8String=k,exports.id=function(r){return t.keccak256(O(r))},exports.isBigNumberish=function(t){return null!=t&&(E.isBigNumber(t)||"number"==typeof t&&t%1==0||"string"==typeof t&&!!t.match(/^-?[0-9]+$/)||i.isHexString(t)||"bigint"==typeof t||i.isBytes(t))},exports.lib_esm=d,exports.toUtf8Bytes=O,exports.toUtf8CodePoints=function(t,r=exports.UnicodeNormalizationForm.current){return T(O(t,r))},exports.toUtf8String=function(t,r){return k(T(t,r))},exports.version=g;
@@ -1,6 +0,0 @@
1
- "use strict";var e=require("./index-0ce04635.cjs"),t=require("./hash-7ce6fed5.cjs"),n=require("./index-0740e7fe.cjs"),r=require("./browser-ponyfill-323d988f.cjs"),o=require("react"),i=require("react-dom"),s=require("./interface-22e176bf.cjs");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}require("@ethersproject/address"),require("@ethersproject/providers"),require("zustand"),require("events"),require("@ethersproject/constants"),require("@ethersproject/contracts"),require("@ethersproject/properties"),require("@ethersproject/transactions"),require("@ethersproject/bytes"),require("./inherits_browser-50deae74.cjs"),require("./id-1118c8d9.cjs"),require("./__node-resolve_empty-fd72eb2c.cjs");var l=a(o),d=c(o),u=a(i);const h="function"==typeof atob,p="function"==typeof btoa,f="function"==typeof Buffer,m="function"==typeof TextDecoder?new TextDecoder:void 0,g="function"==typeof TextEncoder?new TextEncoder:void 0,w=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),y=(e=>{let t={};return w.forEach(((e,n)=>t[e]=n)),t})(),k=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,b=String.fromCharCode.bind(String),E="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),v=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),C=p?e=>btoa(e):f?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,r,o,i="";const s=e.length%3;for(let s=0;s<e.length;){if((n=e.charCodeAt(s++))>255||(r=e.charCodeAt(s++))>255||(o=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|o,i+=w[t>>18&63]+w[t>>12&63]+w[t>>6&63]+w[63&t]}return s?i.slice(0,s-3)+"===".substring(s):i},A=f?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let n=0,r=e.length;n<r;n+=4096)t.push(b.apply(null,e.subarray(n,n+4096)));return C(t.join(""))},S=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?b(192|t>>>6)+b(128|63&t):b(224|t>>>12&15)+b(128|t>>>6&63)+b(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return b(240|t>>>18&7)+b(128|t>>>12&63)+b(128|t>>>6&63)+b(128|63&t)},x=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,I=f?e=>Buffer.from(e,"utf8").toString("base64"):g?e=>A(g.encode(e)):e=>C((e=>e.replace(x,S))(e)),O=e=>((e,t=!1)=>t?(e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_")))(I(e)):I(e))(e,!0),R=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,_=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return b(55296+(t>>>10))+b(56320+(1023&t));case 3:return b((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return b((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},N=h?e=>atob(v(e)):f?e=>Buffer.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!k.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,n,r,o="";for(let i=0;i<e.length;)t=y[e.charAt(i++)]<<18|y[e.charAt(i++)]<<12|(n=y[e.charAt(i++)])<<6|(r=y[e.charAt(i++)]),o+=64===n?b(t>>16&255):64===r?b(t>>16&255,t>>8&255):b(t>>16&255,t>>8&255,255&t);return o},M=f?e=>E(Buffer.from(e,"base64")):e=>E(N(e).split("").map((e=>e.charCodeAt(0)))),T=f?e=>Buffer.from(e,"base64").toString("utf8"):m?e=>m.decode(M(e)):e=>(e=>e.replace(R,_))(N(e)),B=e=>T((e=>v(e.replace(/[-_]/g,(e=>"-"==e?"+":"/"))))(e));var P="INTERNAL_ERROR",D="SERVER_ERROR",j=[-32700,-32600,-32601,-32602,-32603],L={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[P]:{code:-32603,message:"Internal error"},[D]:{code:-32e3,message:"Server error"}},F=D;function U(e){return Object.keys(L).includes(e)?L[e]:L[F]}function z(){return Date.now()*Math.pow(10,3)+Math.floor(Math.random()*Math.pow(10,3))}function H(){return((e,t)=>{for(t=e="";e++<36;t+=51*e&52?(15^e?8^Math.random()*(20^e?16:4):4).toString(16):"-");return t})()}function q(e,t,n){return{id:n||z(),jsonrpc:"2.0",method:e,params:t||[]}}function $(e,t){return typeof e>"u"?U(P):("string"==typeof e&&(e={...U(D),message:e}),typeof t<"u"&&(e.data=t),function(e){return j.includes(e)}(e.code)&&(e=function(e){return Object.values(L).find((t=>t.code===e))||L[F]}(e.code)),e)}function V(e,t){let n=function(e){let t=e.match(new RegExp(/^\w+:/,"gi"));if(t&&t.length)return t[0]}(e);return!(typeof n>"u")&&new RegExp(t).test(n)}function K(e){return V(e,"^https?:")}var W={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"},J=["eth_requestAccounts","eth_accounts","eth_chainId","eth_signTransaction","eth_sendTransaction","eth_sign","personal_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","wallet_switchEthereumChain","wallet_watchAsset"];function Z(e){return"string"==typeof e?e:JSON.stringify(e)}function Q(e,t){let n,r=function(e,t){let n,r=W[e];return"string"==typeof r&&(n=`https://${r}.infura.io/v3/${t}`),n}(e,t.infuraId);return t.custom&&t.custom[e]?n=t.custom[e]:r&&(n=r),n}function G(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}var Y="hex",X="utf8";function ee(e){return e.replace(/^0x/,"")}function te(e){return re(Buffer.from(ee(e),Y))}function ne(e,t=!1){return oe(ie(e),t)}function re(e){return new Uint8Array(e)}function oe(e,t=!1){let n=e.toString(Y);return t?function(e){return e.startsWith("0x")?e:`0x${e}`}(n):n}function ie(e){return function(e){return ArrayBuffer.isView(e)?Buffer.from(e.buffer,e.byteOffset,e.byteLength):Buffer.from(e)}(e)}function se(...e){let t=[];return e.forEach((e=>t=t.concat(Array.from(e)))),new Uint8Array([...t])}function ae(e){return function(e){return e.toString(X)}(ie(e))}function ce(e,t=!1){return oe(function(e){return Buffer.from(e,X)}(e),t)}function le(e){return ie(new Uint8Array(e))}function de(e){let t="0x0";return"number"==typeof e&&(t=`0x${e.toString(16)}`),"string"==typeof e&&(t=e.startsWith("0x")?e:"0x0"),t}var ue={16:10,24:12,32:14},he=[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],pe=[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],fe=[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],me=[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],ge=[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],we=[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],ye=[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],ke=[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],be=[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],Ee=[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],ve=[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],Ce=[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],Ae=[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],Se=[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],xe=[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 Ie(e){return parseInt(`${e}`)===e}function Oe(e){if(!Ie(e.length))return!1;for(let t=0;t<e.length;t++)if(!Ie(e[t])||e[t]<0||e[t]>255)return!1;return!0}function Re(e){return new Uint8Array(e)}function _e(e){let t=[];for(let n=0;n<e.length;n+=4)t.push(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]);return t}function Ne(e,t){if(e.buffer&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!Oe(e))throw new Error("Array contains invalid value");return new Uint8Array(e)}if(Ie(e.length)&&Oe(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function Me(e,t,n,r,o){(null!=r||null!=o)&&(e=e.slice?e.slice(r,o):Array.prototype.slice.call(e,r,o)),t.set(e,n)}var Te=class{_aes;_lastCipherblock;constructor(e,t){if(t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else t=new Uint8Array(16);this._lastCipherblock=Ne(t,!0),this._aes=new class{key;_Ke;_Kd;constructor(e){this.key=Ne(e,!0),this._prepare()}_prepare(){let e=ue[this.key.length];if(null==e)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(let t=0;t<=e;t++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);let t,n=4*(e+1),r=this.key.length/4,o=_e(this.key);for(let n=0;n<r;n++)t=n>>2,this._Ke[t][n%4]=o[n],this._Kd[e-t][n%4]=o[n];let i,s=0,a=r;for(;a<n;){if(i=o[r-1],o[0]^=pe[i>>16&255]<<24^pe[i>>8&255]<<16^pe[255&i]<<8^pe[i>>24&255]^he[s]<<24,s+=1,8!=r)for(let e=1;e<r;e++)o[e]^=o[e-1];else{for(let e=1;e<r/2;e++)o[e]^=o[e-1];i=o[r/2-1],o[r/2]^=pe[255&i]^pe[i>>8&255]<<8^pe[i>>16&255]<<16^pe[i>>24&255]<<24;for(let e=r/2+1;e<r;e++)o[e]^=o[e-1]}let t,c,l=0;for(;l<r&&a<n;)t=a>>2,c=a%4,this._Ke[t][c]=o[l],this._Kd[e-t][c]=o[l++],a++}for(let t=1;t<e;t++)for(let e=0;e<4;e++)i=this._Kd[t][e],this._Kd[t][e]=Ce[i>>24&255]^Ae[i>>16&255]^Se[i>>8&255]^xe[255&i]}encrypt(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");let t=this._Ke.length-1,n=[0,0,0,0],r=_e(e);for(let e=0;e<4;e++)r[e]^=this._Ke[0][e];for(let e=1;e<t;e++){for(let t=0;t<4;t++)n[t]=me[r[t]>>24&255]^ge[r[(t+1)%4]>>16&255]^we[r[(t+2)%4]>>8&255]^ye[255&r[(t+3)%4]]^this._Ke[e][t];r=n.slice()}let o,i=Re(16);for(let e=0;e<4;e++)o=this._Ke[t][e],i[4*e]=255&(pe[r[e]>>24&255]^o>>24),i[4*e+1]=255&(pe[r[(e+1)%4]>>16&255]^o>>16),i[4*e+2]=255&(pe[r[(e+2)%4]>>8&255]^o>>8),i[4*e+3]=255&(pe[255&r[(e+3)%4]]^o);return i}decrypt(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");let t=this._Kd.length-1,n=[0,0,0,0],r=_e(e);for(let e=0;e<4;e++)r[e]^=this._Kd[0][e];for(let e=1;e<t;e++){for(let t=0;t<4;t++)n[t]=ke[r[t]>>24&255]^be[r[(t+3)%4]>>16&255]^Ee[r[(t+2)%4]>>8&255]^ve[255&r[(t+1)%4]]^this._Kd[e][t];r=n.slice()}let o,i=Re(16);for(let e=0;e<4;e++)o=this._Kd[t][e],i[4*e]=255&(fe[r[e]>>24&255]^o>>24),i[4*e+1]=255&(fe[r[(e+3)%4]>>16&255]^o>>16),i[4*e+2]=255&(fe[r[(e+2)%4]>>8&255]^o>>8),i[4*e+3]=255&(fe[255&r[(e+1)%4]]^o);return i}}(e)}encrypt(e){if((e=Ne(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");let t=Re(e.length),n=Re(16);for(let r=0;r<e.length;r+=16){Me(e,n,0,r,r+16);for(let e=0;e<16;e++)n[e]^=this._lastCipherblock[e];this._lastCipherblock=this._aes.encrypt(n),Me(this._lastCipherblock,t,r)}return t}decrypt(e){if((e=Ne(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");let t=Re(e.length),n=Re(16);for(let r=0;r<e.length;r+=16){Me(e,n,0,r,r+16),n=this._aes.decrypt(n);for(let e=0;e<16;e++)t[r+e]=n[e]^this._lastCipherblock[e];Me(e,this._lastCipherblock,0,r,r+16)}return t}},Be=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]],Pe={pad(e){let t=Be[e.byteLength%16||0],n=new Uint8Array(e.byteLength+t.length);return n.set(e),n.set(t,e.byteLength),n},unpad:e=>e.subarray(0,e.byteLength-e[e.byteLength-1])},De="sha256";function je(e,n){return te(t.hash.hmac(t.K[De],e).update(n).digest("hex"))}function Le(e){let t=function(e){for(var t=new Uint8Array(e),n=0;n<e;++n)t[n]=Math.floor(256*Math.random());return ie(t)}(e);return re(t)}function Fe(e){return function(e){return re(e).buffer}(ie(Le((e||256)/8)))}function Ue(e,t,n){let r=re(le(t)),o=re(le(n||Fe(128))),i=ne(o,!1),s=function(e){return re(Buffer.from(e,X))}(JSON.stringify(e)),a=function(e,t,n){let r=new Te(t,e),o=Pe.pad(n),i=r.encrypt(o);return new Uint8Array(i)}(o,r,s);return{data:ne(a,!1),hmac:ne(je(r,se(a,o)),!1),iv:i}}function ze(e,t){let n=re(le(t));if(!n)throw new Error("Missing key: required for decryption");if(!function(e,t){let n=te(e.data),r=te(e.iv),o=ne(te(e.hmac),!1),i=ne(je(t,se(n,r)),!1);return ee(o)===ee(i)}(e,n))return null;let r,o=te(e.data),i=function(e,t,n){let r=new Te(t,e).decrypt(n),o=new Uint8Array(r);return Pe.unpad(o)}(te(e.iv),n,o),s=ae(i);try{r=JSON.parse(s)}catch{return null}return r}function He(e){let t=null;try{let n=window.localStorage.getItem(e);n&&(t=JSON.parse(n))}catch{t=null}return t}function qe(e){try{window.localStorage.removeItem(e)}catch{}}function $e(e,t){try{window.localStorage.setItem(e,JSON.stringify(t))}catch{}}var Ve=class{events=new n.u;on=(e,t)=>this.events.on(e,t);once=(e,t)=>this.events.once(e,t);off=(e,t)=>this.events.off(e,t);removeListener=(e,t)=>this.events.removeListener(e,t);removeAllListeners=()=>this.events.removeAllListeners()},Ke=function(...e){console.error("[ERROR]",...e)},We=function(...e){console.info("[INFO]",...e)},Je=function(...e){console.log("[DEBUG]",...e)},Ze=typeof window<"u";function Qe(...e){let t=document.getElementsByTagName("meta");for(let n=0;n<t.length;n++){let r=t[n],o=["itemprop","property","name"].map((e=>r.getAttribute(e))).filter((t=>!!t&&e.includes(t)));if(o.length&&o){let e=r.getAttribute("content");if(e)return e}}return""}function Ge(){if(!Ze)return;let e=function(){let e=Qe("name","og:site_name","og:title","twitter:title");return e||(e=document.title),e}(),t=Qe("description","og:description","twitter:description","keywords"),n=location.origin,r=function(){let e=document.getElementsByTagName("link"),t=[];for(let n=0;n<e.length;n++){let r=e[n],o=r.getAttribute("rel");if(o&&o.toLowerCase().indexOf("icon")>-1){let e=r.getAttribute("href");if(e)if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let n=location.protocol+"//"+location.host;if(0===e.indexOf("/"))n+=e;else{let t=location.pathname.split("/");t.pop(),n+=t.join("/")+"/"+e}t.push(n)}else if(0===e.indexOf("//")){let n=location.protocol+e;t.push(n)}else t.push(e)}}return t}();return{description:t,url:n,icons:r,name:e}}var Ye,Xe=class extends Error{code;constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,new.target.prototype)}toString(){return`${this.message} (${this.code})`}},et={code:100001,message:"[binance-w3w] User closed modal"},tt={code:100002,message:"[binance-w3w] User rejected connection"},nt={code:100003,message:"[binance-w3w] Provider is not ready"},rt={code:100004,message:"[binance-w3w] Already processing session request. Please wait"},ot={code:100005,message:"[binance-w3w] Already connected"},it={REJECT_ERR:{code:200001,message:"[binance-w3w] User rejected the operation"},METHOD_NOT_SUPPORT:{code:200002,message:"[binance-w3w] Does not support calling method"},MISSING_RESPONSE:{code:200003,message:"[binance-w3w] Missing JSON RPC response"},INVALID_PARAM:{code:200004,message:"[binance-w3w] Invalid request param"}},st={INTERNAL_ERR:{code:300001,message:"[binance-w3w] Internal error"}},at=()=>!!(typeof window.navigator>"u"?"":navigator.userAgent).match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i),ct=()=>!!navigator.userAgent.match(/Android/i),lt=(e,t)=>{let n="appId=xoqXxUSMRccLCrZNRebmzj&startPagePath=L3BhZ2VzL2Rhc2hib2FyZC1uZXcvaW5kZXg=";if(t){n=`${n}&startPageQuery=${O(`wc=${encodeURIComponent(t)}&isDeepLink=true&id=${+new Date}`)}`}let r="//app.binance.com";return e?`bnc:${r}/mp/app?${n}`:`https:${r}/?_dp=${O(`/mp/app?${n}`)}`},dt=e=>{let t=at(),n=ct(),r=lt(n,e);if(!t)return;let o=document.createElement("a");o.href=r,document.body.appendChild(o),o.click(),document.body.removeChild(o)},ut=()=>{try{return!0===window?.ethereum?.isBinance}catch{return!1}},ht={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"},pt=u.default;if("production"===process.env.NODE_ENV)Ye=pt.createRoot,pt.hydrateRoot;else{var ft=pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ye=function(e,t){ft.usingClientEntryPoint=!0;try{return pt.createRoot(e,t)}finally{ft.usingClientEntryPoint=!1}}}var mt,gt,wt=Object.defineProperty,yt=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,Et=(e,t,n)=>t in e?wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vt=(e,t)=>{for(var n in t||(t={}))kt.call(t,n)&&Et(e,n,t[n]);if(yt)for(var n of yt(t))bt.call(t,n)&&Et(e,n,t[n]);return e},Ct=(e,t)=>{var n={};for(var r in e)kt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&yt)for(var r of yt(e))t.indexOf(r)<0&&bt.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let s=[];for(let e=0;e<this.size;e++)s.push(!1);for(let e=0;e<this.size;e++)this.modules.push(s.slice()),this.isFunction.push(s.slice());this.drawFunctionPatterns();const a=this.addEccAndInterleave(r);if(this.drawCodewords(a),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}i(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,s=40,c=-1,l=!0){if(!(t.MIN_VERSION<=o&&o<=s&&s<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let d,u;for(d=o;;d++){const r=8*t.getNumDataCodewords(d,n),o=a.getTotalBits(e,d);if(o<=r){u=o;break}if(d>=s)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&u<=8*t.getNumDataCodewords(d,e)&&(n=e);let h=[];for(const t of e){r(t.mode.modeBits,4,h),r(t.numChars,t.mode.numCharCountBits(d),h);for(const e of t.getData())h.push(e)}i(h.length==u);const p=8*t.getNumDataCodewords(d,n);i(h.length<=p),r(0,Math.min(4,p-h.length),h),r(0,(8-h.length%8)%8,h),i(h.length%8==0);for(let e=236;h.length<p;e^=253)r(e,8,h);let f=[];for(;8*f.length<h.length;)f.push(0);return h.forEach(((e,t)=>f[t>>>3]|=e<<7-(7&t))),new t(d,n,f,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);i(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),i=e+r,s=t+n;0<=i&&i<this.size&&0<=s&&s<this.size&&this.setFunctionModule(i,s,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],s=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],a=Math.floor(t.getNumRawDataModules(n)/8),c=o-a%o,l=Math.floor(a/o);let d=[];const u=t.reedSolomonComputeDivisor(s);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+l-s+(n<c?0:1));r+=o.length;const i=t.reedSolomonComputeRemainder(o,u);n<c&&o.push(0),d.push(o.concat(i))}let h=[];for(let e=0;e<d[0].length;e++)d.forEach(((t,n)=>{(e!=l-s||n>=c)&&h.push(t[e])}));return i(h.length==a),h}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){const s=t-i,a=0==(t+1&2)?this.size-1-r:r;!this.isFunction[a][s]&&n<8*e.length&&(this.modules[a][s]=o(e[n>>>3],7-(7&n)),n++)}}i(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let s=0;s<this.size;s++)this.modules[n][s]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[n][s],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let s=0;s<this.size;s++)this.modules[s][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[s][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return i(0<=o&&o<=9),e+=o*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return i(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];i(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function i(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const s=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new s(s.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!s.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new s(s.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!s.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*s.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=s.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(s.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new s(s.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:s.isNumeric(e)?[s.makeNumeric(e)]:s.isAlphanumeric(e)?[s.makeAlphanumeric(e)]:[s.makeBytes(s.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new s(s.Mode.ECI,0,t)}static isNumeric(e){return s.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return s.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let a=s;a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=a})(mt||(mt={})),(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})((gt=mt||(mt={})).QrCode||(gt.QrCode={})),(e=>{(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(e.QrSegment||(e.QrSegment={}))})(mt||(mt={}));var At=mt,St={L:At.QrCode.Ecc.LOW,M:At.QrCode.Ecc.MEDIUM,Q:At.QrCode.Ecc.QUARTILE,H:At.QrCode.Ecc.HIGH},xt=128,It="L",Ot="#FFFFFF",Rt="#000000",_t=!1,Nt=4,Mt=.1;
2
- /**
3
- * @license qrcode.react
4
- * Copyright (c) Paul O'Shannessy
5
- * SPDX-License-Identifier: ISC
6
- */function Tt(e){const t=e,{value:n,size:r=xt,level:o=It,bgColor:i=Ot,fgColor:s=Rt,includeMargin:a=_t,imageSettings:c}=t,d=Ct(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let u=At.QrCode.encodeText(n,St[o]).getModules();const h=a?Nt:0,p=u.length+2*h,f=function(e,t,n,r){if(null==r)return null;const o=n?Nt:0,i=e.length+2*o,s=Math.floor(t*Mt),a=i/t,c=(r.width||s)*a,l=(r.height||s)*a,d=null==r.x?e.length/2-c/2:r.x*a,u=null==r.y?e.length/2-l/2:r.y*a;let h=null;if(r.excavate){let e=Math.floor(d),t=Math.floor(u);h={x:e,y:t,w:Math.ceil(c+d-e),h:Math.ceil(l+u-t)}}return{x:d,y:u,h:l,w:c,excavation:h}}(u,r,a,c);let m=null;var g,w;null!=c&&null!=f&&(null!=f.excavation&&(g=u,w=f.excavation,u=g.slice().map(((e,t)=>t<w.y||t>=w.y+w.h?e:e.map(((e,t)=>(t<w.x||t>=w.x+w.w)&&e))))),m=l.default.createElement("image",{xlinkHref:c.src,height:f.h,width:f.w,x:f.x+h,y:f.y+h,preserveAspectRatio:"none"}));const y=function(e,t=0){const n=[];return e.forEach((function(e,r){let o=null;e.forEach((function(i,s){if(!i&&null!==o)return n.push(`M${o+t} ${r+t}h${s-o}v1H${o+t}z`),void(o=null);if(s!==e.length-1)i&&null===o&&(o=s);else{if(!i)return;null===o?n.push(`M${s+t},${r+t} h1v1H${s+t}z`):n.push(`M${o+t},${r+t} h${s+1-o}v1H${o+t}z`)}}))})),n.join("")}(u,h);return l.default.createElement("svg",vt({height:r,width:r,viewBox:`0 0 ${p} ${p}`},d),l.default.createElement("path",{fill:i,d:`M0,0 h${p}v${p}H0z`,shapeRendering:"crispEdges"}),l.default.createElement("path",{fill:s,d:y,shapeRendering:"crispEdges"}),m)}!function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}}();var Bt="\n.pointer-events-auto {\n pointer-events: auto;\n}\n\n.fixed {\n position: fixed;\n}\n\n.absolute {\n position: absolute;\n}\n\n.relative {\n position: relative;\n}\n\n.bottom-0 {\n bottom: 0px;\n}\n\n.left-0 {\n left: 0px;\n}\n\n.top-0 {\n top: 0px;\n}\n\n.top-2\\/4 {\n top: 50%;\n}\n\n.m-auto {\n margin: auto;\n}\n\n.mx-\\[4px\\] {\n margin-left: 4px;\n margin-right: 4px;\n}\n\n.mb-4 {\n margin-bottom: 1rem;\n}\n\n.mb-6 {\n margin-bottom: 1.5rem;\n}\n\n.ml-1 {\n margin-left: 0.25rem;\n}\n\n.mt-6 {\n margin-top: 1.5rem;\n}\n\n.mt-\\[35px\\] {\n margin-top: 35px;\n}\n\n.flex {\n display: flex;\n}\n\n.grid {\n display: grid;\n}\n\n.h-\\[200px\\] {\n height: 200px;\n}\n\n.h-\\[24px\\] {\n height: 24px;\n}\n\n.h-\\[40px\\] {\n height: 40px;\n}\n\n.h-\\[52px\\] {\n height: 52px;\n}\n\n.h-full {\n height: 100%;\n}\n\n.w-\\[150px\\] {\n width: 150px;\n}\n\n.w-\\[200px\\] {\n width: 200px;\n}\n\n.w-\\[20px\\] {\n width: 20px;\n}\n\n.w-\\[24px\\] {\n width: 24px;\n}\n\n.w-\\[343px\\] {\n width: 343px;\n}\n\n.w-\\[60px\\] {\n width: 60px;\n}\n\n.w-\\[75px\\] {\n width: 75px;\n}\n\n.w-full {\n width: 100%;\n}\n\n.translate-y-\\[-50\\%\\] {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.cursor-pointer {\n cursor: pointer;\n}\n\n.grid-flow-col {\n grid-auto-flow: column;\n}\n\n.grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n}\n\n.items-center {\n align-items: center;\n}\n\n.justify-end {\n justify-content: flex-end;\n}\n\n.justify-center {\n justify-content: center;\n}\n\n.justify-between {\n justify-content: space-between;\n}\n\n.gap-x-4 {\n -moz-column-gap: 1rem;\n column-gap: 1rem;\n}\n\n.gap-y-2 {\n row-gap: 0.5rem;\n}\n\n.rounded {\n border-radius: 0.25rem;\n}\n\n.rounded-2xl {\n border-radius: 1rem;\n}\n\n.rounded-lg {\n border-radius: 0.5rem;\n}\n\n.rounded-t-2xl {\n border-top-left-radius: 1rem;\n border-top-right-radius: 1rem;\n}\n\n.border {\n border-width: 1px;\n}\n\n.border-b {\n border-bottom-width: 1px;\n}\n\n.border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity));\n}\n\n.bg-black\\/\\[\\.80\\] {\n background-color: rgb(0 0 0 / .80);\n}\n\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n\n.p-\\[12px\\] {\n padding: 12px;\n}\n\n.px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n\n.px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n}\n\n.py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n\n.py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n\n.pb-6 {\n padding-bottom: 1.5rem;\n}\n\n.pt-\\[20px\\] {\n padding-top: 20px;\n}\n\n.text-center {\n text-align: center;\n}\n\n.text-base {\n font-size: 1rem;\n line-height: 1.5rem;\n}\n\n.font-medium {\n font-weight: 500;\n}\n\n.text-\\[\\#1E2329\\] {\n --tw-text-opacity: 1;\n color: rgb(30 35 41 / var(--tw-text-opacity));\n}\n\n.text-\\[\\#929AA5\\] {\n --tw-text-opacity: 1;\n color: rgb(146 154 165 / var(--tw-text-opacity));\n}\n\n.shadow-inner {\n --tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.duration-300 {\n transition-duration: 300ms;\n}\n\n.ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.will-change-auto {\n will-change: auto;\n}\n\n.will-change-transform {\n will-change: transform;\n}\n\n.body3 {\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n}\n\n.subtitle1 {\n font-size: 20px;\n font-style: normal;\n font-weight: 600;\n line-height: 28px;\n}\n\n.subtitle3 {\n font-size: 16px;\n font-style: normal;\n font-weight: 500;\n line-height: 24px;\n /* 150% */\n}\n\n.caption2 {\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 16px;\n}\n\n.t-black {\n color: #0b0e11;\n}\n\n.t-brand {\n color: #c99400;\n}\n\n.t-primary {\n color: #202630;\n}\n\n.t-secondary {\n color: #474d57;\n}\n\n.bg-primary {\n background: #fcd535;\n}\n\n@media (min-width: 768px) {\n .md\\:subtitle1 {\n font-size: 20px;\n font-style: normal;\n font-weight: 600;\n line-height: 28px;\n }\n\n .md\\:w-\\[400px\\] {\n width: 400px;\n }\n\n .md\\:font-semibold {\n font-weight: 600;\n }\n}\n\n@media (min-width: 1024px) {\n .lg\\:p-8 {\n padding: 2rem;\n }\n\n .lg\\:pt-6 {\n padding-top: 1.5rem;\n }\n\n .lg\\:text-xl {\n font-size: 1.25rem;\n line-height: 1.75rem;\n }\n}\n\n*, :before, :after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / .5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n:root {\n --animation-duration: 300ms;\n}\n\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n@keyframes fadeOut {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n\n.animated {\n animation-duration: var(--animation-duration);\n animation-fill-mode: both;\n}\n\n.fadeIn {\n animation-name: fadeIn;\n}\n\n.fadeOut {\n animation-name: fadeOut;\n}\n\n#binanceW3W-wrapper {\n -webkit-user-select: none;\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n left: 0;\n pointer-events: none;\n position: fixed;\n top: 0;\n user-select: none;\n width: 100%;\n z-index: 99999999999999;\n}\n",Pt=o.createContext({}),Dt="binanceW3W-wrapper",jt="binanceW3W-style-sheet",Lt="binanceW3W-qrcode-modal",Ft="https://app.appsflyer.com/com.binance.dev?pid=https%3A%2F%2Fwww.binance.com%2Fen&c=https%3A%2F%2Fwww.binance.com%2Fen",Ut="https://app.appsflyer.com/id1436799971?pid=https%3A%2F%2Fwww.binance.com%2Fen&c=https%3A%2F%2Fwww.binance.com%2Fen",zt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNTYiIHZpZXdCb3g9IjAgMCA1NiA1NiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iMiIgeT0iMiIgd2lkdGg9IjUyIiBoZWlnaHQ9IjUyIiByeD0iMTAiIGZpbGw9IiMxNDE1MUEiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iNCIvPgo8cGF0aCBkPSJNMTIgMjhMMTUuNjEyOSAyNC4zODcxTDE5LjIyNTggMjhMMTUuNjEyOSAzMS42MTI5TDEyIDI4WiIgZmlsbD0iI0YwQjkwQiIvPgo8cGF0aCBkPSJNMTguMTkzNSAyMS44MDY1TDI4IDEyTDM3LjgwNjUgMjEuODA2NUwzNC4xOTM2IDI1LjQxOTRMMjggMTkuMjI1OEwyMS44MDY1IDI1LjQxOTRMMTguMTkzNSAyMS44MDY1WiIgZmlsbD0iI0YwQjkwQiIvPgo8cGF0aCBkPSJNMjQuMzg3MSAyOEwyOCAyNC4zODcxTDMxLjYxMjkgMjhMMjggMzEuNjEyOUwyNC4zODcxIDI4WiIgZmlsbD0iI0YwQjkwQiIvPgo8cGF0aCBkPSJNMjEuODA2NSAzMC41ODA2TDE4LjE5MzUgMzQuMTkzNUwyOCA0NEwzNy44MDY1IDM0LjE5MzVMMzQuMTkzNiAzMC41ODA2TDI4IDM2Ljc3NDJMMjEuODA2NSAzMC41ODA2WiIgZmlsbD0iI0YwQjkwQiIvPgo8cGF0aCBkPSJNMzYuNzc0MiAyOEw0MC4zODcxIDI0LjM4NzFMNDQgMjhMNDAuMzg3MSAzMS42MTI5TDM2Ljc3NDIgMjhaIiBmaWxsPSIjRjBCOTBCIi8+Cjwvc3ZnPgo=",Ht=()=>{let[e,t]=o.useState(),[n,r]=o.useState(!1);return o.useEffect((()=>{let e=at(),n=ct();t(e),r(n)}),[]),{isMobile:e,isAndroid:n}},qt={en:{"sdk-download-android":"Download for Android","sdk-connect":"Connect","sdk-download-ios":"Download for iOS","sdk-install":"Install","sdk-modal-instruct-1":"1. Open Binance app","sdk-modal-instruct-2":"2. Tap {{icon}} on Home Screen","sdk-modal-title":"Connect With Binance","sdk-no-app":"Don’t have the Binance app yet?"},ar:{"sdk-download-android":"تنزيل لنظام Android","sdk-connect":"اتصال","sdk-download-ios":"تنزيل لنظام iOS","sdk-install":"تثبيت","sdk-modal-instruct-1":"1. افتح تطبيق Binance","sdk-modal-instruct-2":"2. اضغط {{icon}} على الشاشة الرئيسية","sdk-modal-title":"الربط مع Binance (بينانس)","sdk-no-app":"ليس لديك تطبيق Binance حتّى الآن؟"},"bg-BG":{"sdk-download-android":"Изтегляне за Android","sdk-connect":"Свържи","sdk-download-ios":"Изтегляне за iOS","sdk-install":"Инсталиране","sdk-modal-instruct-1":"1. Отворете приложението Binance","sdk-modal-instruct-2":"2. Докоснете {{icon}} на началния екран","sdk-modal-title":"Свържете се с Binance","sdk-no-app":"Все още нямате приложението Binance?"},"zh-CN":{"sdk-download-android":"下载安卓版","sdk-connect":"关联","sdk-download-ios":"下载iOS版","sdk-install":"安装","sdk-modal-instruct-1":"1.打开币安App","sdk-modal-instruct-2":"2.点击主屏幕的{{icon}}","sdk-modal-title":"关联币安","sdk-no-app":"尚未安装币安App?"},"zh-TW":{"sdk-download-android":"Android 下載","sdk-connect":"連接","sdk-download-ios":"iOS 下載","sdk-install":"安裝","sdk-modal-instruct-1":"1. 開啟幣安 App","sdk-modal-instruct-2":"2. 在首頁畫面上點擊 {{icon}}","sdk-modal-title":"與幣安連接","sdk-no-app":"還沒有幣安 App 嗎?"},"cs-CZ":{"sdk-download-android":"Stáhnout pro Android","sdk-connect":"Připojit","sdk-download-ios":"Stáhnout pro iOS","sdk-install":"Instalovat","sdk-modal-instruct-1":"1. Otevřete aplikaci Binance","sdk-modal-instruct-2":"2. Klepněte na {{icon}} na domovské obrazovce","sdk-modal-title":"Připojit platformu Binance","sdk-no-app":"Ještě nemáte aplikaci Binance?"},"fr-FR":{"sdk-download-android":"Télécharger pour Android","sdk-connect":"Se connecter","sdk-download-ios":"Télécharger pour iOS","sdk-install":"Installer","sdk-modal-instruct-1":"1. Ouvrez l’application de Binance","sdk-modal-instruct-2":"2. Appuyez sur {{icon}} sur l’écran d’accueil","sdk-modal-title":"Se connecter à Binance","sdk-no-app":"Vous n’avez pas encore l’application de Binance ?"},"de-DE":{"sdk-download-android":"Für Android herunterladen","sdk-connect":"Verbinden","sdk-download-ios":"Für iOS herunterladen","sdk-install":"Installieren","sdk-modal-instruct-1":"1. Binance-App öffnen","sdk-modal-instruct-2":"2. Tippe auf dem Startbildschirm auf {{icon}}","sdk-modal-title":"Mit Binance verknüpfen","sdk-no-app":"Du hast die Binance-App noch nicht?"},"el-GR":{"sdk-download-android":"Λήψη για Android","sdk-connect":"Συνδεθείτε","sdk-download-ios":"Λήψη για iOS","sdk-install":"Εγκατάσταση","sdk-modal-instruct-1":"1. Ανοίξτε την εφαρμογή Binance","sdk-modal-instruct-2":"2. Πατήστε {{icon}} στην αρχική οθόνη","sdk-modal-title":"Συνδεθείτε με την Binance","sdk-no-app":"Δεν έχετε ακόμα την εφαρμογή Binance;"},"id-ID":{"sdk-download-android":"Unduh untuk Android","sdk-connect":"Terhubung","sdk-download-ios":"Unduh untuk iOS","sdk-install":"Instal","sdk-modal-instruct-1":"1. Buka aplikasi Binance","sdk-modal-instruct-2":"2. Ketuk {{icon}} di Layar Beranda","sdk-modal-title":"Hubungkan dengan Binance","sdk-no-app":"Belum punya aplikasi Binance?"},"it-IT":{"sdk-download-android":"Scarica per Android","sdk-connect":"Collega","sdk-download-ios":"Scarica per iOS","sdk-install":"Installa","sdk-modal-instruct-1":"1. Apri l'app Binance","sdk-modal-instruct-2":"2. Tocca {{icon}} nella homepage","sdk-modal-title":"Collega con Binance","sdk-no-app":"Non hai ancora l'app Binance?"},"kk-KZ":{"sdk-download-android":"Android үшін жүктеп алу","sdk-connect":"Қосылу","sdk-download-ios":"iOS үшін жүктеп алу","sdk-install":"Орнату","sdk-modal-instruct-1":"1. Binance қолданбасын ашыңыз","sdk-modal-instruct-2":"2. Басты экрандағы {{icon}} белгішесін түртіңіз","sdk-modal-title":"Binance платформасымен байланыстыру","sdk-no-app":"Сізде әлі Binance қолданбасы жоқ па?"},"lv-LV":{"sdk-download-android":"Lejupielādēt Android ierīcei","sdk-connect":"Savienot","sdk-download-ios":"Lejupielādēt iOS ierīcei","sdk-install":"Instalēt","sdk-modal-instruct-1":"1. Atver Binance lietotni","sdk-modal-instruct-2":"2. Pieskaries pie {{icon}} sākuma ekrānā","sdk-modal-title":"Savieno ar Binance","sdk-no-app":"Vai tev vēl nav Binance lietotnes?"},"pl-PL":{"sdk-download-android":"Pobierz na Androida","sdk-connect":"Połącz","sdk-download-ios":"Pobierz na iOS","sdk-install":"Zainstaluj","sdk-modal-instruct-1":"1. Otwórz Aplikację Binance","sdk-modal-instruct-2":"2. Kliknij {{icon}} na ekranie głównym","sdk-modal-title":"Połącz z Binance","sdk-no-app":"Nie masz jeszcze aplikacji Binance?"},"pt-BR":{"sdk-download-android":"Baixar para Android","sdk-connect":"Conecte","sdk-download-ios":"Baixar para iOS","sdk-install":"Instalar","sdk-modal-instruct-1":"1. Abra o Aplicativo da Binance","sdk-modal-instruct-2":"2. Toque em {{icon}} na Tela Inicial","sdk-modal-title":"Conectar com a Binance","sdk-no-app":"Ainda não tem o aplicativo da Binance?"},"pt-PT":{"sdk-download-android":"Transferir para Android","sdk-connect":"Associar","sdk-download-ios":"Transferir para iOS","sdk-install":"Instalar","sdk-modal-instruct-1":"1. Abre a aplicação Binance","sdk-modal-instruct-2":"2. Toca em {{icon}} no Ecrã Inicial","sdk-modal-title":"Associa com a Binance","sdk-no-app":"Ainda não tens a aplicação Binance?"},"ro-RO":{"sdk-download-android":"Descărcați pentru Android","sdk-connect":"Conectare","sdk-download-ios":"Descărcați pentru iOS","sdk-install":"Instalați","sdk-modal-instruct-1":"1. Deschideți aplicația Binance","sdk-modal-instruct-2":"2. Atingeți {{icon}} pe ecranul de pornire","sdk-modal-title":"Conectați-vă cu Binance","sdk-no-app":"Nu aveți încă aplicația Binance?"},"ru-RU":{"sdk-download-android":"Скачать для Android","sdk-connect":"Подключить","sdk-download-ios":"Скачать для iOS","sdk-install":"Установить","sdk-modal-instruct-1":"1. Откройте приложение Binance","sdk-modal-instruct-2":"2. Нажмите {{icon}} на главном экране","sdk-modal-title":"Подключить кошелек Binance","sdk-no-app":"У вас еще нет приложения Binance?"},"sk-SK":{"sdk-download-android":"Stiahnuť pre Android","sdk-connect":"Pripojiť","sdk-download-ios":"Stiahnuť pre iOS","sdk-install":"Nainštalovať","sdk-modal-instruct-1":"1. Otvorte aplikáciu Binance","sdk-modal-instruct-2":"2. Klepnite na ikonu {{icon}} na domovskej obrazovke","sdk-modal-title":"Spojte sa s Binance","sdk-no-app":"Ešte nemáte aplikáciu Binance?"},"sl-SI":{"sdk-download-android":"Prenos za Android","sdk-connect":"Poveži","sdk-download-ios":"Prenos za iOS","sdk-install":"Namesti","sdk-modal-instruct-1":"1. Odprite aplikacijo Binance","sdk-modal-instruct-2":"2. Tapnite {{icon}} na začetnem zaslonu","sdk-modal-title":"Povežite se s platformo Binance","sdk-no-app":"Še nimate aplikacije Binance?"},"es-LA":{"sdk-download-android":"Descargar para Android","sdk-connect":"Conecta","sdk-download-ios":"Descargar para iOS","sdk-install":"Instala","sdk-modal-instruct-1":"1. Abre la aplicación de Binance","sdk-modal-instruct-2":"2. Toca {{icon}} en la pantalla de inicio","sdk-modal-title":"Conectar con Binance","sdk-no-app":"¿Aún no tienes la aplicación de Binance?"},"es-ES":{"sdk-download-android":"Descargar para Android","sdk-connect":"Conectar","sdk-download-ios":"Descargar para iOS","sdk-install":"Instalar","sdk-modal-instruct-1":"1. Open Binance app","sdk-modal-instruct-2":"2. Pulsa en {{icon}} en la página principal","sdk-modal-title":"Connect With Binance","sdk-no-app":"¿Aún no tienes la aplicación de Binance?"},"sv-SE":{"sdk-download-android":"Ladda ned för Android","sdk-connect":"Anslut","sdk-download-ios":"Ladda ned för iOS","sdk-install":"Installera","sdk-modal-instruct-1":"1. Öppna Binance-appen","sdk-modal-instruct-2":"2. Tryck på {{icon}} på startskärmen","sdk-modal-title":"Anslut med Binance","sdk-no-app":"Har du inte Binance-appen ännu?"},"tr-TR":{"sdk-download-android":"Android için indir","sdk-connect":"Bağlan","sdk-download-ios":"iOS için indir","sdk-install":"Yükle","sdk-modal-instruct-1":"1. Binance Uygulamasını Açın","sdk-modal-instruct-2":"2. Ana Ekranda {{icon}} simgesine dokunun","sdk-modal-title":"Binance ile Bağlanın","sdk-no-app":"Henüz Binance uygulamanız yok mu?"},"uk-UA":{"sdk-download-android":"Завантажити для Android","sdk-connect":"Підключитись","sdk-download-ios":"Завантажити для iOS","sdk-install":"Встановити","sdk-modal-instruct-1":"1. Відкрийте застосунок Binance","sdk-modal-instruct-2":"2. Торкніться {{icon}} на головному екрані","sdk-modal-title":"Підключіться до Binance","sdk-no-app":"Ще не маєте застосунку Binance?"},"vi-VN":{"sdk-download-android":"Tải xuống cho Android","sdk-connect":"Kết nối","sdk-download-ios":"Tải xuống cho iOS","sdk-install":"Cài đặt","sdk-modal-instruct-1":"1. Mở ứng dụng Binance","sdk-modal-instruct-2":"2. Nhấn vào {{icon}} trên Màn hình chính","sdk-modal-title":"Kết nối với Binance","sdk-no-app":"Bạn chưa có ứng dụng Binance?"},"da-DK":{"sdk-download-android":"Download til Android","sdk-connect":"Forbind","sdk-download-ios":"Download til iOS","sdk-install":"Installer","sdk-modal-instruct-1":"1. Åbn Binance-appen","sdk-modal-instruct-2":"2. Tryk på {{icon}} på startskærmen","sdk-modal-title":"Forbind til Binance","sdk-no-app":"Har du ikke Binance-appen endnu?"},"my-MM":{"sdk-download-android":"အန်းဒရွိုက်အတွက် ဒေါင်းလုဒ်လုပ်မည်","sdk-connect":"ချိတ်ဆက်မည်","sdk-download-ios":"iOS အတွက် ဒေါင်းလုဒ်လုပ်မည်","sdk-install":"ထည့်သွင်းမည်","sdk-modal-instruct-1":"1. Open Binance app","sdk-modal-instruct-2":"ပင်မမျက်နှာပြင်မှ {{icon}} ကိုနှိပ်ပါ။","sdk-modal-title":"Connect With Binance","sdk-no-app":"Binance App မရှိသေးဘူးလား။"},"lo-LA":{"sdk-download-android":"ດາວໂຫຼດສໍາລັບ Android","sdk-connect":"ເຊື່ອມຕໍ່","sdk-download-ios":"ດາວໂຫຼດສໍາລັບ iOS","sdk-install":"ຕິດຕັ້ງ","sdk-modal-instruct-1":"1. ເປີດແອັບ Binance","sdk-modal-instruct-2":"2. ແຕະ {{icon}} ໃນໜ້າຈໍຫຼັກ","sdk-modal-title":"ເຊື່ອມຕໍ່ກັບ Binance","sdk-no-app":"ຍັງບໍ່ມີແອັບ Binance ເທື່ອບໍ?"},"si-LK":{"sdk-download-android":"Android සඳහා බාගත කරන්න","sdk-connect":"සම්බන්ධ කරන්න","sdk-download-ios":"iOS සඳහා බාගත කරන්න","sdk-install":"ස්ථාපනය කරන්න","sdk-modal-instruct-1":"1. Binance යෙදුම විවෘත කරන්න","sdk-modal-instruct-2":"2. මුල් තිරයේ {{icon}} මත තට්ටු කරන්න","sdk-modal-title":"Binance සමග සම්බන්ධ වන්න","sdk-no-app":"තවමත් Binance යෙදුම නැති ද?"}},$t=["en","ar","bg-BG","zh-CN","zh-TW","cs-CZ","fr-FR","de-DE","el-GR","id-ID","it-IT","kk-KZ","lv-LV","pl-PL","pt-BR","pt-PT","ro-RO","ru-RU","sk-SK","sl-SI","es-LA","es-ES","sv-SE","tr-TR","uk-UA","vi-VN","da-DK","my-MM","lo-LA","si-LK"].reduce(((e,t)=>(e[t]=qt[t],e)),{}),Vt=$t,Kt=()=>{let{lng:e}=o.useContext(Pt);return o.useCallback(((t,n)=>Vt?.[e]?.[t]||Vt?.en?.[t]||n?.default||t),[e])},Wt=({size:e=24,color:t="currentColor",className:n,children:r,...o})=>l.default.createElement("svg",{width:e,height:e,fill:t,className:n,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...o},r),Jt=e=>l.default.createElement(Wt,{size:24,...e},l.default.createElement("path",{d:"M21.7725 18.7033C21.4062 19.5418 20.9727 20.3136 20.4704 21.0232C19.7857 21.9906 19.2251 22.6602 18.7931 23.032C18.1233 23.6424 17.4058 23.955 16.6374 23.9728C16.0857 23.9728 15.4205 23.8172 14.6461 23.5017C13.8692 23.1876 13.1552 23.032 12.5024 23.032C11.8177 23.032 11.0834 23.1876 10.2979 23.5017C9.51127 23.8172 8.87756 23.9816 8.39305 23.9979C7.65619 24.0291 6.92173 23.7076 6.1886 23.032C5.72069 22.6276 5.13542 21.9343 4.43429 20.9521C3.68203 19.9033 3.06358 18.687 2.57906 17.3004C2.06017 15.8026 1.80005 14.3523 1.80005 12.9482C1.80005 11.3398 2.15076 9.95259 2.85324 8.79011C3.40532 7.85636 4.13979 7.11979 5.05903 6.57906C5.97827 6.03834 6.97151 5.76279 8.04114 5.74516C8.62641 5.74516 9.39391 5.92456 10.3477 6.27715C11.2988 6.63091 11.9095 6.81032 12.1772 6.81032C12.3774 6.81032 13.0558 6.60054 14.2058 6.18233C15.2934 5.79449 16.2113 5.63391 16.9633 5.69716C19.0009 5.86012 20.5317 6.6561 21.5497 8.09013C19.7274 9.18432 18.826 10.7169 18.8439 12.6829C18.8603 14.2142 19.4209 15.4886 20.5227 16.5004C21.022 16.97 21.5796 17.333 22.2001 17.5907C22.0655 17.9774 21.9235 18.3477 21.7725 18.7033ZM17.0993 0.480137C17.0993 1.68041 16.6568 2.8011 15.7748 3.8384C14.7104 5.07155 13.4229 5.78412 12.0268 5.67168C12.009 5.52769 11.9987 5.37614 11.9987 5.21688C11.9987 4.06462 12.5049 2.83147 13.4038 1.82321C13.8526 1.3127 14.4234 0.888228 15.1155 0.549615C15.8062 0.216055 16.4595 0.031589 17.0739 0C17.0918 0.160458 17.0993 0.320926 17.0993 0.480121V0.480137Z",fill:"#1E2329"})),Zt=e=>l.default.createElement(Wt,{size:24,...e},l.default.createElement("path",{d:"M13.5589 11.0874L4.08203 1.59644H4.17441C4.98558 1.59644 5.68614 1.89129 6.81073 2.4993L16.7488 7.88083L13.5589 11.0874Z",fill:"#202630"}),l.default.createElement("path",{d:"M12.6373 12.008L2.90218 21.7203C2.66236 21.3329 2.49658 20.7063 2.49658 19.8034V4.19354C2.49658 3.29078 2.66236 2.66403 2.90218 2.2771L12.6373 12.008Z",fill:"#202630"}),l.default.createElement("path",{d:"M13.5589 12.9124L16.7488 16.1187L6.81073 21.5001C5.68614 22.1083 4.98548 22.4036 4.17441 22.4036H4.08203L13.5589 12.9124Z",fill:"#202630"}),l.default.createElement("path",{d:"M17.9437 8.52563L14.4775 12.0091L17.9437 15.4738L20.0456 14.3309C20.8199 13.9069 22 13.1329 22 12.0091C22 10.8662 20.8199 10.0922 20.0456 9.66821L17.9437 8.52563Z",fill:"#202630"})),Qt=e=>l.default.createElement(Wt,{size:24,...e},l.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 4H10.5V7H7.5V10H4.5V7V4H7.5ZM14.5 4H17.5H20.5V7V10H17.5V7H14.5V4ZM10.5 20V17H7.5V14H4.5V17V20H7.5H10.5ZM17.5 20H14.5V17H17.5V14H20.5V17V20H17.5ZM16.5 10.5H8.5V13.5H16.5V10.5Z",fill:"#202630"})),Gt=({value:e,...t})=>{let n=Yt(e).map((e=>"string"==typeof e?e:l.default.cloneElement(t[e.key],{key:e.key})));return l.default.createElement(l.default.Fragment,null,n)},Yt=e=>{let t,n=/{{(.*?)}}/g,r=0,o=[];for(;null!==(t=n.exec(e));)t.index!==r&&o.push(e.substring(r,t.index)),o.push({key:t[1]}),r=n.lastIndex;return r!==e.length&&o.push(e.substring(r)),o},Xt=()=>{let e=Kt();return l.default.createElement(l.default.Fragment,null,l.default.createElement(en,{t:e}),l.default.createElement(tn,{t:e}),l.default.createElement(nn,null))},en=({t:e})=>l.default.createElement("div",{style:{borderBottom:"1px solid #EAECEF"},className:"grid justify-center gap-y-2 pb-6 body3 t-black border-b border-gray-300"},l.default.createElement("div",null,e("sdk-modal-instruct-1",{default:"1. Open Binance app"})),l.default.createElement("div",{className:"flex items-center"},l.default.createElement(Gt,{value:e("sdk-modal-instruct-2",{default:"2. Tap {{icon}} on Home"}),icon:l.default.createElement(Qt,{className:"w-[24px] h-[24px] mx-[4px]"})}))),tn=({t:e})=>l.default.createElement("div",{className:"py-4 body3 t-secondary text-center"},e("sdk-no-app",{default:"Don't have Binance app yet?"})),nn=()=>l.default.createElement("div",{className:"grid grid-cols-2 gap-x-4"},l.default.createElement(rn,{type:"iOS"}),l.default.createElement(rn,{type:"Android"})),rn=({type:e})=>{let t=Kt();return l.default.createElement("div",{style:{border:"1px solid #EAECEF"},className:"p-[12px] rounded-lg grid cursor-pointer t-secondary grid-flow-col items-center gap-x-4 w-[150px]",onClick:()=>{window.open("Android"===e?Ft:Ut,"_blank")}},"Android"===e?l.default.createElement(Zt,{className:"w-[24px] h-[24px] m-auto"}):l.default.createElement(Jt,{className:"w-[24px] h-[24px] m-auto"}),l.default.createElement("div",{className:"w-[75px] caption2 t-secondary"},t(`sdk-download-${e.toLowerCase()}`,{default:`Download for ${e}`})))},on=e=>l.default.createElement(Wt,{...e},l.default.createElement("path",{d:"M6.69708 4.57538L4.57576 6.6967L9.87906 12L4.57576 17.3033L6.69708 19.4246L12.0004 14.1213L17.3037 19.4246L19.425 17.3033L14.1217 12L19.425 6.6967L17.3037 4.57538L12.0004 9.87868L6.69708 4.57538Z",fill:"currentColor"})),sn=({onClose:e})=>{let t=Kt();return l.default.createElement("div",{className:"flex items-center justify-between"},l.default.createElement("p",{className:"text-base font-medium text-[#1E2329] lg:text-xl md:font-semibold md:subtitle1"},t("sdk-modal-title",{default:"Connect with Binance"})),l.default.createElement("div",{className:"cursor-pointer text-[#929AA5]",onClick:e},l.default.createElement(on,null)))},an=({id:e,onClose:t,onConnect:n})=>{let r=Kt();return l.default.createElement("div",{id:e,className:"animated fadeIn pointer-events-auto fixed top-0 left-0 h-full w-full bg-black/[.80] duration-300 ease-in-out will-change-auto"},l.default.createElement("div",{className:"absolute bottom-0 m-auto w-full rounded-t-2xl bg-white px-4 pb-6 shadow-inner duration-300 ease-in-out will-change-transform md:w-[400px]"},l.default.createElement(cn,{onClose:t}),l.default.createElement("div",{className:"mt-6 mb-4 flex justify-center"},l.default.createElement("img",{className:"w-[60px]",src:zt})),l.default.createElement("div",{className:"subtitle1 text-center mb-6 t-primary"},r("sdk-modal-title",{default:"Connect with Binance"})),l.default.createElement("button",{onClick:n,style:{borderColor:"transparent"},className:"w-full rounded h-[40px] flex justify-center items-center bg-primary t-primary subtitle3 mb-4"},r("sdk-connect",{default:"Connect"})),l.default.createElement("div",{className:"text-center py-3"},l.default.createElement("span",null,r("sdk-no-app",{default:"Don’t have Binance app yet?"})),l.default.createElement("a",{target:"_blank",href:"https://www.binance.com/en/download",className:"t-brand ml-1"},r("sdk-install",{default:"Install"})))))},cn=({onClose:e})=>l.default.createElement("div",{className:"flex items-center justify-end h-[52px]"},l.default.createElement("div",{className:"cursor-pointer text-[#929AA5]",onClick:e},l.default.createElement(on,{className:"w-[20px]"}))),ln=e=>{let t=document.createElement("a");t.href=e,document.body.appendChild(t),((e,t)=>{let n="visibilitychange",r=setTimeout((()=>{document.hidden||e()}),t),o=()=>{document.hidden&&(clearTimeout(r),document.removeEventListener(n,o))};document.addEventListener(n,o,!1)})((()=>{window.location.href="https://www.binance.com/en/download"}),1e3),t.click(),document.body.removeChild(t)};var dn=function(e){let{toBinance:t}=(e=>{let{isAndroid:t,isMobile:n}=Ht();return{toBinance:()=>{let r=lt(t,e);if(n){if(!t){let e=document.createElement("a");e.href=r,document.body.appendChild(e),e.click(),document.body.removeChild(e)}t&&ln(r)}}}})(e.url);return l.default.createElement("div",null,l.default.createElement("div",{className:"mt-[35px] flex justify-center"},l.default.createElement("div",{className:"w-[200px] h-[200px] mb-4",onClick:t},e.url&&l.default.createElement(Tt,{value:e.url,width:"100%",height:"100%",level:"M",imageSettings:{src:zt,height:32,width:32,excavate:!1}}))))},un=({onClose:e,isReady:t})=>{let{isMobile:n}=Ht(),[r,i]=o.useState(""),[s,a]=o.useState(!1);o.useEffect((()=>{t.then(i).catch((()=>a(!0)))}),[t]);let c={url:r,error:s};return!1===n?l.default.createElement("div",{id:Lt,className:"animated fadeIn pointer-events-auto fixed top-0 left-0 h-full w-full bg-black/[.80] duration-300 ease-in-out will-change-auto"},l.default.createElement("div",{className:"relative top-2/4 m-auto w-[343px] translate-y-[-50%] rounded-2xl bg-white px-6 pt-[20px] pb-6 shadow-inner duration-300 ease-in-out will-change-transform md:w-[400px] lg:p-8 lg:pt-6"},l.default.createElement(sn,{onClose:e}),l.default.createElement(dn,{...c}),l.default.createElement(Xt,null))):n?l.default.createElement(an,{onConnect:()=>{dt(r)},onClose:e,id:Lt}):void 0},hn={order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag","path","subdomain"],lookupQuerystring:function(){let e=window.location.search.match(/lng=([^&]*)/);return e&&e[1]},lookupCookie:function(){let e=document.cookie.match(/i18next=([^;]*)/);return e&&e[1]},lookupLocalStorage:function(){return localStorage.getItem("i18nextLng")},lookupSessionStorage:function(){return sessionStorage.getItem("i18nextLng")},lookupFromNavigator:function(){return navigator.language},lookupFromHtmlTag:function(){return document.documentElement.lang},lookupFromPath:function(){let e=window.location.pathname.match(/\/([^/]*)/);return e&&e[1]},lookupFromSubdomain:function(){let e=window.location.hostname.match(/^(.+)\./);return e&&e[1]}},pn=()=>{for(let e of hn.order)try{let t=hn["lookup"+e.charAt(0).toUpperCase()+e.slice(1)]();if(t)return t}catch(t){console.error(`Error detecting language with method: ${e}`,t);continue}return"en"};function fn(){let e=window.document,t=e.getElementById(Lt);t&&(t.className=t.className.replace("fadeIn","fadeOut"),setTimeout((()=>{let t=e.getElementById(Dt);t&&e.body.removeChild(t)}),300))}function mn(e){return()=>{fn(),e&&e()}}async function gn({isReady:e,cb:t,lng:n}){!function(){let e=window.document,t=e.getElementById(jt);t&&e.head.removeChild(t);let n=e.createElement("style");n.setAttribute("id",jt),n.innerHTML=Bt,e.head.appendChild(n)}();let r=function(){let e=window.document,t=e.createElement("div");return t.setAttribute("id",Dt),e.body.appendChild(t),t}(),o=Ye(r);await e;let i=n??pn();o.render(d.createElement(Pt.Provider,{value:{lng:i}},d.createElement(un,{isReady:e,onClose:mn(t)})))}var wn=e=>{},yn=()=>{};var kn={open:function({cb:e,lng:t}){let n=new Promise(((e,t)=>{wn=e,yn=t}));G()||gn({isReady:n,cb:e,lng:t})},close:function(){G()||fn()},ready:function(e){wn(e)},fail:function(){console.log("relay failed...."),yn()}},bn=kn,En=typeof window<"u"?window.WebSocket:function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")},vn=class extends Ve{constructor(e){super(),this.opts=e,this.socket=null,this.nextSocket=null,this.subscriptions=e.subscriptions||[],this.qs=`env=browser&protocol=wc&version=${e.version}`}qs;urls=[];socket;nextSocket;queue=[];subscriptions=[];retryIndex=0;set readyState(e){}get readyState(){return this.socket?this.socket.readyState:-1}set connecting(e){}get connecting(){return 0===this.readyState}set connected(e){}get connected(){return 1===this.readyState}set retryFailed(e){}get retryFailed(){return this.retryIndex>0&&this.retryIndex>=this.urls.length}open(e){if(!Array.isArray(e)||0===e.length)throw new Error("Missing or invalid WebSocket url");this.urls=e,this.retryIndex=0,this.socketCreate()}close(){this._socketClose()}send(e,t,n){if(!t||"string"!=typeof t)throw new Error("Missing or invalid topic field");this.socketSend({topic:t,type:"pub",payload:e,silent:!!n})}subscribe(e){this.socketSend({topic:e,type:"sub",payload:"",silent:!0})}socketCreate(){if(this.nextSocket)return;let e=this.getWsUrl();if(!e)return this.events.emit("error",new Error("Retry limit reached. Can't connect to any url."),e);if(this.nextSocket=new En(e),!this.nextSocket)throw new Error("Failed to create socket");this.nextSocket.onmessage=e=>this.socketReceive(e),this.nextSocket.onopen=()=>this.socketOpen(),this.nextSocket.onerror=t=>this.socketError(t,e),this.nextSocket.onclose=e=>{this.nextSocket=null,this.socketCreate()}}getWsUrl(){return this.retryIndex>=this.urls.length?"":`${this.urls[this.retryIndex++]}?${this.qs}`}socketOpen(){this._socketClose(),this.socket=this.nextSocket,this.nextSocket=null,this.queueSubscriptions(),this.pushQueue(),this.events.emit("open",this.urls[this.retryIndex-1])}_socketClose(){this.socket&&(this.socket.onclose=()=>{},this.socket.close(),this.events.emit("close"))}socketSend(e){let t=JSON.stringify(e);this.socket&&1===this.socket.readyState?this.socket.send(t):this.setToQueue(e)}socketReceive(e){let t;try{t=JSON.parse(e.data)}catch{return}this.socketSend({topic:t.topic,type:"ack",payload:"",silent:!0}),this.socket&&1===this.socket.readyState&&this.events.emit("message",t)}socketError(e,t){this.events.emit("error",e,t)}queueSubscriptions(){this.subscriptions.forEach((e=>this.queue.push({topic:e,type:"sub",payload:"",silent:!0}))),this.subscriptions=this.opts.subscriptions||[]}setToQueue(e){this.queue.push(e)}pushQueue(){this.queue.forEach((e=>this.socketSend(e))),this.queue=[]}};function Cn(e){let t=Date.now();return new Promise(((n,r)=>{try{let r=new En(e);r.onopen=()=>{r.close(),n({ttl:Date.now()-t,url:e})},r.onerror=()=>{n({ttl:0,url:e})}}catch{r({ttl:0,url:e})}}))}var An=(e=>(e[e.DisconnectAtWallet=0]="DisconnectAtWallet",e[e.DisconnectAtClient=1]="DisconnectAtClient",e[e.NetworkError=2]="NetworkError",e))(An||{});function Sn(e,t){return function(){return e.apply(t,arguments)}}const{toString:xn}=Object.prototype,{getPrototypeOf:In}=Object,On=(Rn=Object.create(null),e=>{const t=xn.call(e);return Rn[t]||(Rn[t]=t.slice(8,-1).toLowerCase())});var Rn;const _n=e=>(e=e.toLowerCase(),t=>On(t)===e),Nn=e=>t=>typeof t===e,{isArray:Mn}=Array,Tn=Nn("undefined");const Bn=_n("ArrayBuffer");const Pn=Nn("string"),Dn=Nn("function"),jn=Nn("number"),Ln=e=>null!==e&&"object"==typeof e,Fn=e=>{if("object"!==On(e))return!1;const t=In(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Un=_n("Date"),zn=_n("File"),Hn=_n("Blob"),qn=_n("FileList"),$n=_n("URLSearchParams");function Vn(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Mn(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(r=0;r<i;r++)s=o[r],t.call(null,e[s],s,e)}}function Kn(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Wn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Jn=e=>!Tn(e)&&e!==Wn;const Zn=(Qn="undefined"!=typeof Uint8Array&&In(Uint8Array),e=>Qn&&e instanceof Qn);var Qn;const Gn=_n("HTMLFormElement"),Yn=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Xn=_n("RegExp"),er=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Vn(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},tr="abcdefghijklmnopqrstuvwxyz",nr="0123456789",rr={DIGIT:nr,ALPHA:tr,ALPHA_DIGIT:tr+tr.toUpperCase()+nr};const or=_n("AsyncFunction");var ir={isArray:Mn,isArrayBuffer:Bn,isBuffer:function(e){return null!==e&&!Tn(e)&&null!==e.constructor&&!Tn(e.constructor)&&Dn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Dn(e.append)&&("formdata"===(t=On(e))||"object"===t&&Dn(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Bn(e.buffer),t},isString:Pn,isNumber:jn,isBoolean:e=>!0===e||!1===e,isObject:Ln,isPlainObject:Fn,isUndefined:Tn,isDate:Un,isFile:zn,isBlob:Hn,isRegExp:Xn,isFunction:Dn,isStream:e=>Ln(e)&&Dn(e.pipe),isURLSearchParams:$n,isTypedArray:Zn,isFileList:qn,forEach:Vn,merge:function e(){const{caseless:t}=Jn(this)&&this||{},n={},r=(r,o)=>{const i=t&&Kn(n,o)||o;Fn(n[i])&&Fn(r)?n[i]=e(n[i],r):Fn(r)?n[i]=e({},r):Mn(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Vn(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Vn(t,((t,r)=>{n&&Dn(t)?e[r]=Sn(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],r&&!r(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&In(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:On,kindOfTest:_n,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Mn(e))return e;let t=e.length;if(!jn(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Gn,hasOwnProperty:Yn,hasOwnProp:Yn,reduceDescriptors:er,freezeMethods:e=>{er(e,((t,n)=>{if(Dn(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Dn(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return Mn(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:Kn,global:Wn,isContextDefined:Jn,ALPHABET:rr,generateString:(e=16,t=rr.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&Dn(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Ln(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=Mn(e)?[]:{};return Vn(e,((e,t)=>{const i=n(e,r+1);!Tn(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:or,isThenable:e=>e&&(Ln(e)||Dn(e))&&Dn(e.then)&&Dn(e.catch)};function sr(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}ir.inherits(sr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ir.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ar=sr.prototype,cr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{cr[e]={value:e}})),Object.defineProperties(sr,cr),Object.defineProperty(ar,"isAxiosError",{value:!0}),sr.from=(e,t,n,r,o,i)=>{const s=Object.create(ar);return ir.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),sr.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};function lr(e){return ir.isPlainObject(e)||ir.isArray(e)}function dr(e){return ir.endsWith(e,"[]")?e.slice(0,-2):e}function ur(e,t,n){return e?e.concat(t).map((function(e,t){return e=dr(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const hr=ir.toFlatObject(ir,{},null,(function(e){return/^is[A-Z]/.test(e)}));function pr(e,t,n){if(!ir.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=ir.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ir.isUndefined(t[e])}))).metaTokens,o=n.visitor||l,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ir.isSpecCompliantForm(t);if(!ir.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ir.isDate(e))return e.toISOString();if(!a&&ir.isBlob(e))throw new sr("Blob is not supported. Use a Buffer instead.");return ir.isArrayBuffer(e)||ir.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(ir.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ir.isArray(e)&&function(e){return ir.isArray(e)&&!e.some(lr)}(e)||(ir.isFileList(e)||ir.endsWith(n,"[]"))&&(a=ir.toArray(e)))return n=dr(n),a.forEach((function(e,r){!ir.isUndefined(e)&&null!==e&&t.append(!0===s?ur([n],r,i):null===s?n:n+"[]",c(e))})),!1;return!!lr(e)||(t.append(ur(o,n,i),c(e)),!1)}const d=[],u=Object.assign(hr,{defaultVisitor:l,convertValue:c,isVisitable:lr});if(!ir.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!ir.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),ir.forEach(n,(function(n,i){!0===(!(ir.isUndefined(n)||null===n)&&o.call(t,n,ir.isString(i)?i.trim():i,r,u))&&e(n,r?r.concat(i):[i])})),d.pop()}}(e),t}function fr(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function mr(e,t){this._pairs=[],e&&pr(e,this,t)}const gr=mr.prototype;function wr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function yr(e,t,n){if(!t)return e;const r=n&&n.encode||wr,o=n&&n.serialize;let i;if(i=o?o(t,n):ir.isURLSearchParams(t)?t.toString():new mr(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}gr.append=function(e,t){this._pairs.push([e,t])},gr.toString=function(e){const t=e?function(t){return e.call(this,t,fr)}:fr;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var kr=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ir.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},br={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Er={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:mr,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const vr="undefined"!=typeof window&&"undefined"!=typeof document,Cr=(Ar="undefined"!=typeof navigator&&navigator.product,vr&&["ReactNative","NativeScript","NS"].indexOf(Ar)<0);var Ar;const Sr="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var xr={...Object.freeze({__proto__:null,hasBrowserEnv:vr,hasStandardBrowserWebWorkerEnv:Sr,hasStandardBrowserEnv:Cr}),...Er};function Ir(e){function t(e,n,r,o){let i=e[o++];const s=Number.isFinite(+i),a=o>=e.length;if(i=!i&&ir.isArray(r)?r.length:i,a)return ir.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s;r[i]&&ir.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&ir.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!s}if(ir.isFormData(e)&&ir.isFunction(e.entries)){const n={};return ir.forEachEntry(e,((e,r)=>{t(function(e){return ir.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const Or={transitional:br,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=ir.isObject(e);o&&ir.isHTMLForm(e)&&(e=new FormData(e));if(ir.isFormData(e))return r&&r?JSON.stringify(Ir(e)):e;if(ir.isArrayBuffer(e)||ir.isBuffer(e)||ir.isStream(e)||ir.isFile(e)||ir.isBlob(e))return e;if(ir.isArrayBufferView(e))return e.buffer;if(ir.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return pr(e,new xr.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return xr.isNode&&ir.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=ir.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return pr(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(ir.isString(e))try{return(t||JSON.parse)(e),ir.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Or.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&ir.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw sr.from(e,sr.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xr.classes.FormData,Blob:xr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ir.forEach(["delete","get","head","post","put","patch"],(e=>{Or.headers[e]={}}));var Rr=Or;const _r=ir.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Nr=Symbol("internals");function Mr(e){return e&&String(e).trim().toLowerCase()}function Tr(e){return!1===e||null==e?e:ir.isArray(e)?e.map(Tr):String(e)}function Br(e,t,n,r,o){return ir.isFunction(r)?r.call(this,t,n):(o&&(t=n),ir.isString(t)?ir.isString(r)?-1!==t.indexOf(r):ir.isRegExp(r)?r.test(t):void 0:void 0)}class Pr{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Mr(t);if(!o)throw new Error("header name must be a non-empty string");const i=ir.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Tr(e))}const i=(e,t)=>ir.forEach(e,((e,n)=>o(e,n,t)));return ir.isPlainObject(e)||e instanceof this.constructor?i(e,t):ir.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&_r[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=Mr(e)){const n=ir.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(ir.isFunction(t))return t.call(this,e,n);if(ir.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Mr(e)){const n=ir.findKey(this,e);return!(!n||void 0===this[n]||t&&!Br(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Mr(e)){const o=ir.findKey(n,e);!o||t&&!Br(0,n[o],o,t)||(delete n[o],r=!0)}}return ir.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Br(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return ir.forEach(this,((r,o)=>{const i=ir.findKey(n,o);if(i)return t[i]=Tr(r),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete t[o],t[s]=Tr(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ir.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ir.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Nr]=this[Nr]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Mr(e);t[r]||(!function(e,t){const n=ir.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return ir.isArray(e)?e.forEach(r):r(e),this}}Pr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ir.reduceDescriptors(Pr.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),ir.freezeMethods(Pr);var Dr=Pr;function jr(e,t){const n=this||Rr,r=t||n,o=Dr.from(r.headers);let i=r.data;return ir.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Lr(e){return!(!e||!e.__CANCEL__)}function Fr(e,t,n){sr.call(this,null==e?"canceled":e,sr.ERR_CANCELED,t,n),this.name="CanceledError"}ir.inherits(Fr,sr,{__CANCEL__:!0});var Ur=xr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];ir.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),ir.isString(r)&&s.push("path="+r),ir.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function zr(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var Hr=xr.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=ir.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function qr(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[s];o||(o=c),n[i]=a,r[i]=c;let d=s,u=0;for(;d!==i;)u+=n[d++],d%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-o<t)return;const h=l&&c-l;return h?Math.round(1e3*u/h):void 0}}(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,c=r(a);n=i;const l={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:o};l[t?"download":"upload"]=!0,e(l)}}const $r={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=Dr.from(e.headers).normalize();let i,s,{responseType:a,withXSRFToken:c}=e;function l(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(ir.isFormData(r))if(xr.hasStandardBrowserEnv||xr.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(s=o.getContentType())){const[e,...t]=s?s.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let d=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const u=zr(e.baseURL,e.url);function h(){if(!d)return;const r=Dr.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new sr("Request failed with status code "+n.status,[sr.ERR_BAD_REQUEST,sr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),l()}),(function(e){n(e),l()}),{data:a&&"text"!==a&&"json"!==a?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:e,request:d}),d=null}if(d.open(e.method.toUpperCase(),yr(u,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,"onloadend"in d?d.onloadend=h:d.onreadystatechange=function(){d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))&&setTimeout(h)},d.onabort=function(){d&&(n(new sr("Request aborted",sr.ECONNABORTED,e,d)),d=null)},d.onerror=function(){n(new sr("Network Error",sr.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||br;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new sr(t,r.clarifyTimeoutError?sr.ETIMEDOUT:sr.ECONNABORTED,e,d)),d=null},xr.hasStandardBrowserEnv&&(c&&ir.isFunction(c)&&(c=c(e)),c||!1!==c&&Hr(u))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&Ur.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in d&&ir.forEach(o.toJSON(),(function(e,t){d.setRequestHeader(t,e)})),ir.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),a&&"json"!==a&&(d.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",qr(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",qr(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{d&&(n(!t||t.type?new Fr(null,e,d):t),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);p&&-1===xr.protocols.indexOf(p)?n(new sr("Unsupported protocol "+p+":",sr.ERR_BAD_REQUEST,e)):d.send(r||null)}))}};ir.forEach($r,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Vr=e=>`- ${e}`,Kr=e=>ir.isFunction(e)||null===e||!1===e;var Wr={getAdapter:e=>{e=ir.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Kr(n)&&(r=$r[(t=String(n)).toLowerCase()],void 0===r))throw new sr(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new sr("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Vr).join("\n"):" "+Vr(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r},adapters:$r};function Jr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fr(null,e)}function Zr(e){Jr(e),e.headers=Dr.from(e.headers),e.data=jr.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Wr.getAdapter(e.adapter||Rr.adapter)(e).then((function(t){return Jr(e),t.data=jr.call(e,e.transformResponse,t),t.headers=Dr.from(t.headers),t}),(function(t){return Lr(t)||(Jr(e),t&&t.response&&(t.response.data=jr.call(e,e.transformResponse,t.response),t.response.headers=Dr.from(t.response.headers))),Promise.reject(t)}))}const Qr=e=>e instanceof Dr?e.toJSON():e;function Gr(e,t){t=t||{};const n={};function r(e,t,n){return ir.isPlainObject(e)&&ir.isPlainObject(t)?ir.merge.call({caseless:n},e,t):ir.isPlainObject(t)?ir.merge({},t):ir.isArray(t)?t.slice():t}function o(e,t,n){return ir.isUndefined(t)?ir.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!ir.isUndefined(t))return r(void 0,t)}function s(e,t){return ir.isUndefined(t)?ir.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>o(Qr(e),Qr(t),!0)};return ir.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||o,s=i(e[r],t[r],r);ir.isUndefined(s)&&i!==a||(n[r]=s)})),n}const Yr="1.6.2",Xr={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Xr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const eo={};Xr.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.2] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new sr(r(o," has been removed"+(t?" in "+t:"")),sr.ERR_DEPRECATED);return t&&!eo[o]&&(eo[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var to={assertOptions:function(e,t,n){if("object"!=typeof e)throw new sr("options must be an object",sr.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new sr("option "+i+" must be "+n,sr.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new sr("Unknown option "+i,sr.ERR_BAD_OPTION)}},validators:Xr};const no=to.validators;class ro{constructor(e){this.defaults=e,this.interceptors={request:new kr,response:new kr}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Gr(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&to.assertOptions(n,{silentJSONParsing:no.transitional(no.boolean),forcedJSONParsing:no.transitional(no.boolean),clarifyTimeoutError:no.transitional(no.boolean)},!1),null!=r&&(ir.isFunction(r)?t.paramsSerializer={serialize:r}:to.assertOptions(r,{encode:no.function,serialize:no.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&ir.merge(o.common,o[t.method]);o&&ir.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Dr.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let d,u=0;if(!a){const e=[Zr.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=s.length;let h=t;for(u=0;u<d;){const e=s[u++],t=s[u++];try{h=e(h)}catch(e){t.call(this,e);break}}try{l=Zr.call(this,h)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return yr(zr((e=Gr(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}ir.forEach(["delete","get","head","options"],(function(e){ro.prototype[e]=function(t,n){return this.request(Gr(n||{},{method:e,url:t,data:(n||{}).data}))}})),ir.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Gr(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ro.prototype[e]=t(),ro.prototype[e+"Form"]=t(!0)}));var oo=ro;class io{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Fr(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new io((function(t){e=t})),cancel:e}}}var so=io;const ao={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ao).forEach((([e,t])=>{ao[t]=e}));var co=ao;const lo=function e(t){const n=new oo(t),r=Sn(oo.prototype.request,n);return ir.extend(r,oo.prototype,n,{allOwnKeys:!0}),ir.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Gr(t,n))},r}(Rr);lo.Axios=oo,lo.CanceledError=Fr,lo.CancelToken=so,lo.isCancel=Lr,lo.VERSION=Yr,lo.toFormData=pr,lo.AxiosError=sr,lo.Cancel=lo.CanceledError,lo.all=function(e){return Promise.all(e)},lo.spread=function(e){return function(t){return e.apply(null,t)}},lo.isAxiosError=function(e){return ir.isObject(e)&&!0===e.isAxiosError},lo.mergeConfig=Gr,lo.AxiosHeaders=Dr,lo.formToJSON=e=>Ir(ir.isHTMLForm(e)?new FormData(e):e),lo.getAdapter=Wr.getAdapter,lo.HttpStatusCode=co,lo.default=lo;var uo=lo,ho="connect-session",po="connect-domains",fo=["https://rpc.ankr.com/bsc","https://binance.nodereal.io","https://bscrpc.com","https://bsc-dataseed2.ninicoin.io"],mo=class extends Ve{pending=!1;callbacks=new Map;clientMeta;relay;_key=null;_clientId="";_peerId="";_peerMeta=null;_handshakeId=0;_handshakeTopic="";_connected=!1;_accounts=[];_chainId="0x0";set key(e){if(!e)return;let t=function(e){return te(e).buffer}(e);this._key=t}get key(){return this._key?function(e,t){return ne(new Uint8Array(e),!t)}(this._key,!0):""}set clientId(e){e&&(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=H()),this._clientId}set peerId(e){e&&(this._peerId=e)}get peerId(){return this._peerId}set peerMeta(e){this._peerMeta=e}get peerMeta(){return this._peerMeta}set handshakeTopic(e){e&&(this._handshakeTopic=e)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(e){e&&(this._handshakeId=e)}get handshakeId(){return this._handshakeId}get uri(){return`wc:${this.handshakeTopic}@1?bridge=${this.relay}&key=${this.key}&scene=bid`}set chainId(e){this._chainId=e}get chainId(){return this._chainId}set accounts(e){this._accounts=e}get accounts(){return this._accounts}set connected(e){}get connected(){return this._connected}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,relay:this.relay,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(e){e&&(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.relay=e.relay,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}},go=class extends mo{getStorageSession(){try{return He(ho)}catch{}return null}setStorageSession(){$e(ho,this.session)}removeStorageSession(){qe(ho)}manageStorageSession(){this._connected?this.setStorageSession():this.removeStorageSession()}};var wo=Promise.resolve([]);if(!G()){let e=He(po);wo=Promise.resolve(e),(!e||0===e.length)&&(wo=async function(){let e=await async function(){let e=await Promise.race(fo.map((e=>uo.request({url:e,method:"POST",data:{jsonrpc:"2.0",id:Date.now(),method:"eth_call",params:[{to:"0x76054B318785b588A3164B2A6eA5476F7cBA51e0",data:"0x97b5f450"},"latest"]}})))),t=new s.Interface(["function apiDomains() view returns (string)"]);return B(t.decodeFunctionResult("apiDomains",e.data.result)[0]).split(",")}(),t=await Promise.all(e.map((e=>Cn(`wss://nbstream.${e.split(".").slice(1).join(".")}/wallet-connector`))));return function(e){return e.filter((e=>e.ttl>0)).sort(((e,t)=>e.ttl-t.ttl)).map((e=>e.url))}(t)}().then((e=>(console.log("🚀 ~ file: relay.ts:63 ~ .then ~ domains:",e),$e(po,e),e))).catch((()=>[])))}function yo(){qe(po)}var ko=class extends go{transport;lng;constructor(){super(),this.clientMeta=Ge();let e=this.getStorageSession();e&&(this.session=e),this.handshakeId&&this.subscribeToSessionResponse(this.handshakeId),this.initTransport(),this.subscribeInternalEvent()}async request(e){if(!this.connected)throw new Xe(nt.code,nt.message);if(J.indexOf(e.method)<0)throw new Xe(it.METHOD_NOT_SUPPORT.code,it.METHOD_NOT_SUPPORT.message);switch(e.method){case"eth_requestAccounts":case"eth_accounts":return this.accounts;case"eth_chainId":return de(this.chainId);case"eth_signTransaction":case"eth_sendTransaction":case"eth_sign":case"personal_sign":case"eth_signTypedData":case"eth_signTypedData_v1":case"eth_signTypedData_v2":case"eth_signTypedData_v3":case"eth_signTypedData_v4":case"wallet_switchEthereumChain":case"wallet_watchAsset":return new Promise(((t,n)=>{e.id||(e.id=z()),this.callbacks.set(`response-${e.id}`,((e,r)=>{e?n(function(e){return-32050===e.code||-32e3===e.code||1e3===e.code?new Xe(it.REJECT_ERR.code,it.REJECT_ERR.message):-32603===e.code?new Xe(st.INTERNAL_ERR.code,st.INTERNAL_ERR.message):-32600===e.code||-32602===e.code?new Xe(it.INVALID_PARAM.code,it.INVALID_PARAM.message):e}(e)):r?t(r.result):n(new Xe(it.MISSING_RESPONSE.code,it.MISSING_RESPONSE.message))})),this.sendRequest(e),this.events.emit("call_request_sent")}))}}killSession(){if(!this.connected)return;let e={id:z(),method:"wc_sessionUpdate",params:[{approved:!1,chainId:null,networkId:null,accounts:null}]};this.sendRequest(e),this.handleSessionDisconnect(An.DisconnectAtClient)}async connect({chainId:e,lng:t}={}){return this.lng=t,this.connected?{chainId:this.chainId,accounts:this.accounts}:new Promise(((t,n)=>{this.on("modal_closed",(e=>{n(e)})),this.on("session_error",(e=>{n(e)})),this.on("connect",(e=>{t(e)})),this.createSession(e)}))}createSession(e){try{if(this.connected)throw new Xe(ot.code,ot.message);if(this.pending||this._handshakeTopic)throw new Xe(rt.code,rt.message);this.pending=!0,this._key=Fe(),this.handshakeId=z(),this.handshakeTopic=H();let t={id:this.handshakeId,method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e?Number(e):null}]};this.sendRequest(t,this.handshakeTopic),this.subscribeToSessionResponse(this.handshakeId),this.events.emit("display_uri")}catch(e){this.pending=!1;let t=`response-${this.handshakeId}`;this.callbacks.get(t)&&this.callbacks.delete(t);let n=e.message,r=e instanceof Xe?e:new Xe(st.INTERNAL_ERR.code,`${st.INTERNAL_ERR.message}: ${n}`);throw this.handleRejectSessionConnection(r),Ke(`[binance-w3w] create connection failed: ${n}`),r}}async initTransport(){this.transport=new vn({version:1,subscriptions:[this.clientId]}),this.transport.on("message",(e=>this.setIncomingMessages(e))),this.transport.on("open",(e=>{this.events.emit("transport_open",e)})),this.transport.on("close",(()=>{this.events.emit("transport_close")})),this.transport.on("error",((e,t)=>{this.events.emit("transport_error",e,t)}));try{if(this.session.relay)this.transport.open([this.session.relay]);else{let e=await async function(){let e=await wo;return 0===e.length&&e.push("wss://nbstream.binance.com/wallet-connector"),e}();this.transport.open(e)}}catch(e){yo();let t=e.message,n=new Xe(st.INTERNAL_ERR.code,`${st.INTERNAL_ERR.message}: ${t}`);throw this.handleRejectSessionConnection(n),n}}setIncomingMessages(e){if(![this.clientId,this.handshakeTopic].includes(e.topic))return;let t;try{t=JSON.parse(e.payload)}catch{return}let n=this.decrypt(t);if(!n)return;if("method"in n&&n.method)return void this.events.emit(n.method,null,n);let r=n.id,o=`response-${r}`,i=this.callbacks.get(o);if(i){if("error"in n&&n.error){i(new Xe(n.error.code,n.error.message),null)}else"result"in n&&n.result&&i(null,n);this.callbacks.delete(o)}else Ke(`[binance-w3w] callback id: ${r} not found`)}encrypt(e){let t=this._key;return t?Ue(e,t):null}decrypt(e){let t=this._key;return t?ze(e,t):null}sendRequest(e,t){let n=q(e.method,e.params,e.id),r=this.encrypt(n),o=t||this.peerId,i=JSON.stringify(r);this.transport.send(i,o,!0)}subscribeInternalEvent(){this.on("display_uri",(()=>{bn.open({cb:()=>{this.events.emit("modal_closed",new Xe(et.code,et.message))},lng:this.lng}),this.transport.connected?bn.ready(this.uri):this.transport.retryFailed&&bn.fail()})),this.on("transport_open",(e=>{this.relay=e,bn.ready(this.uri)})),this.on("transport_error",((e,t)=>{t?function(e){let t=He(po);if(!t)return;let n=t.filter((t=>t!==e));$e(po,n)}(function(e){let t=e.indexOf("?");return t>-1?e.slice(0,t):e}(t)):(yo(),bn.fail())})),this.on("modal_closed",(()=>{let e=`response-${this.handshakeId}`;this.callbacks.get(e)&&this.callbacks.delete(e),this.clearConnectionStatus()})),this.on("connect",(()=>{this.pending=!1,bn.close()})),this.on("call_request_sent",(()=>{dt()})),this.on("wc_sessionUpdate",((e,t)=>{e?this.handleSessionResponse():t.params&&Array.isArray(t.params)?this.handleSessionResponse(t.params[0]):t.error&&this.handleSessionResponse()}))}subscribeToSessionResponse(e){this.callbacks.set(`response-${e}`,((e,t)=>{e?this.handleSessionResponse():t&&(t.result?this.handleSessionResponse(t.result):(t.error&&t.error.message,this.handleSessionResponse()))}))}handleSessionResponse(e){e?e.approved?(this._connected?(e.chainId&&this.setChainId(e.chainId),e.accounts&&this.setAddress(e.accounts)):(this._connected=!0,e.chainId&&this.setChainId(e.chainId),e.accounts&&this.setAddress(e.accounts),e.peerId&&!this.peerId&&(this.peerId=e.peerId),e.peerMeta&&!this.peerMeta&&(this.peerMeta=e.peerMeta),this.events.emit("connect",{chainId:this.chainId,accounts:this.accounts})),this.manageStorageSession()):this.connected?this.handleSessionDisconnect(An.DisconnectAtWallet):this.handleRejectSessionConnection(new Xe(tt.code,tt.message)):this.handleRejectSessionConnection(new Xe(tt.code,tt.message))}handleRejectSessionConnection(e){bn.close(),this.clearConnectionStatus(),this.events.emit("session_error",e)}handleSessionDisconnect(e){this._connected||bn.close(),this.events.emit("disconnect",e),this.clearConnectionStatus()}clearConnectionStatus(){this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._clientId&&(this._clientId=""),this.pending&&(this.pending=!1),this.callbacks.clear(),this._peerMeta=null,this._accounts=[],this._chainId="0x0",this.offConnectEvents(),this.removeStorageSession(),this.transport.close()}offConnectEvents(){this.removeListener("connect")}setChainId(e){let t=de(e);"0x0"!==t?(typeof this.chainId<"u"&&this.chainId!==t&&this.events.emit("chainChanged",t),this.chainId=t):this.chainId=t}setAddress(e=[]){let t=e.filter((e=>"string"==typeof e)).map((e=>e.toLowerCase())).filter(Boolean);JSON.stringify(this.accounts)!==JSON.stringify(t)&&this.events.emit("accountsChanged",t),this.accounts=t}},bo=class extends Ve{accounts=[];coreConnection;constructor(){super(),this.register()}get chainId(){return this.coreConnection?this.coreConnection.chainId:"0x0"}get connected(){return!!this.coreConnection&&this.coreConnection.connected}get connecting(){return!!this.coreConnection&&this.coreConnection.pending}async open({requestChainId:e,lng:t}){if(this.register(),this.coreConnection.connected)return;let{accounts:n}=await this.coreConnection.connect({chainId:e,lng:t});this.accounts=n}async request(e){return this.connected||await this.open({}),this.coreConnection.request(e)}disconnect(){this.connected&&(this.coreConnection.killSession(),this.onClose(An.DisconnectAtClient))}register(){if(this.coreConnection)return this.coreConnection;this.coreConnection=new ko,this.accounts=this.coreConnection.accounts,this.subscribeEvents()}subscribeEvents(){this.coreConnection.on("chainChanged",(e=>{this.events.emit("chainChanged",e)})),this.coreConnection.on("accountsChanged",(e=>{this.accounts=e,this.events.emit("accountsChanged",e)})),this.coreConnection.on("disconnect",(e=>{this.onClose(e)}))}onClose(e){this.coreConnection=null,this.events.emit("disconnect",e)}},Eo=e=>{if(ut()){let e=typeof window<"u"?window.ethereum:void 0;if(e)return e.setLng=()=>{},e.disconnect=()=>{},e}return new class{events=new n.u;signClient;rpc;httpClient;optsChainId;lng;constructor(e){this.rpc={infuraId:e?.infuraId,custom:e?.rpc},this.optsChainId=e?.chainId||56,this.lng=e?.lng||"en",this.signClient=new bo,this.registerEventListeners(),this.httpClient=this.setHttpProvider(this.optsChainId)}get connected(){return this.signClient.connected}get connector(){return this.signClient}get accounts(){return this.signClient.accounts}get chainId(){return Je("provider get chainId",this.signClient.chainId),this.signClient.chainId}get rpcUrl(){return this.httpClient.url||""}async request(e){switch(Je("ethereum-provider request",e),e.method){case"eth_requestAccounts":return await this.connect(),this.accounts;case"eth_chainId":return this.chainId;case"eth_accounts":return this.accounts}let t=q(e.method,e.params||[]);if(J.includes(e.method))return this.signClient.request(t);if(typeof this.httpClient>"u")throw new Error(`Cannot request JSON-RPC method (${e.method}) without provided rpc url`);let n=await this.httpClient.request(t);if(function(e){return"result"in e}(n))return n.result;throw new Error(n.error.message)}async signMessage(e){return Je("signMessage",e),this.accounts.length||await this.enable(),await this.request({method:"personal_sign",params:[ce(e),this.accounts[0]]})}sendAsync(e,t){this.request(e).then((e=>t(null,e))).catch((e=>t(e,void 0)))}setLng(e){this.lng=e}async enable(e){return await this.connect(e),this.accounts}async connect(e){this.connected?We("already connected"):await this.signClient.open({requestChainId:e?.toString()??this.optsChainId.toString(),lng:this.lng})}disconnect(){this.connected&&this.signClient.disconnect()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}get isWalletConnect(){return!0}registerEventListeners(){this.signClient.on("accountsChanged",(e=>{this.events.emit("accountsChanged",e)})),this.signClient.on("chainChanged",(e=>{this.httpClient=this.setHttpProvider(e),this.events.emit("chainChanged",e)})),this.signClient.on("disconnect",(()=>{this.events.emit("disconnect")}))}setHttpProvider(e){let t=Q(e,this.rpc);if(!(typeof t>"u"))return new class{constructor(e){if(this.url=e,!K(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e}events=new n.u;isAvailable=!1;registering=!1;get connected(){return this.isAvailable}get connecting(){return this.registering}async open(e=this.url){await this.register(e)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async request(e){Je("HttpClient ~ request ~ payload:",e),this.isAvailable||await this.register();try{let t=Z(e),n=await(await r.c(this.url,{...ht,body:t})).json(),o="string"==typeof n?function(e){if("string"!=typeof e)throw new Error("Cannot safe json parse value of type "+typeof e);try{return JSON.parse(e)}catch{return e}}(n):n;return Je("HttpClient ~ request ~ result:",o),o}catch(t){return this.formatError(e.id,t)}}formatError(e,t){let n=this.parseError(t);return function(e,t,n){return{id:e,jsonrpc:"2.0",error:$(t,void 0)}}(e,n.message||n.toString())}async register(e=this.url){if(!K(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering)return new Promise(((e,t)=>{this.events.once("register_error",(e=>{t(e)})),this.events.once("open",(()=>{if(typeof this.isAvailable>"u")return t(new Error("HTTP connection is missing or invalid"));e()}))}));this.url=e,this.registering=!0;try{let t=Z({id:1,jsonrpc:"2.0",method:"test",params:[]});await r.c(e,{...ht,body:t}),this.onOpen()}catch(e){let t=this.parseError(e);throw this.events.emit("register_error",t),this.onClose(),t}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("open")}parseError(e,t=this.url){return function(e,t,n){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${n} RPC url at ${t}`):e}(e,t,"HTTP")}}(t)}}(e)};exports.default=function(t,n){return e.__awaiter(this,void 0,void 0,(function*(){const r=yield Eo({chainId:t.chainId,rpc:t.rpc});yield r.enable(),r.on("connect",n.connect),r.on("disconnect",n.disconnect),r.on("accountsChanged",n.accountsChanged),r.on("chainChanged",n.chainChanged),r.on("message",n.message);return e.convertWeb3Provider(r)}))},exports.isInBinance=ut;
@@ -1 +0,0 @@
1
- "use strict";var e={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,r,s,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var c=new o(r,s||e,i),f=n?n+t:t;return e._events[f]?e._events[f].fn?e._events[f]=[e._events[f],c]:e._events[f].push(c):(e._events[f]=c,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function c(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),c.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},c.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,s=r.length,i=new Array(s);o<s;o++)i[o]=r[o].fn;return i},c.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},c.prototype.emit=function(e,t,r,o,s,i){var c=n?n+e:e;if(!this._events[c])return!1;var f,a,u=this._events[c],v=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),v){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,s),!0;case 6:return u.fn.call(u.context,t,r,o,s,i),!0}for(a=1,f=new Array(v-1);a<v;a++)f[a-1]=arguments[a];u.fn.apply(u.context,f)}else{var p,l=u.length;for(a=0;a<l;a++)switch(u[a].once&&this.removeListener(e,u[a].fn,void 0,!0),v){case 1:u[a].fn.call(u[a].context);break;case 2:u[a].fn.call(u[a].context,t);break;case 3:u[a].fn.call(u[a].context,t,r);break;case 4:u[a].fn.call(u[a].context,t,r,o);break;default:if(!f)for(p=1,f=new Array(v-1);p<v;p++)f[p-1]=arguments[p];u[a].fn.apply(u[a].context,f)}}return!0},c.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,r,o){var s=n?n+e:e;if(!this._events[s])return this;if(!t)return i(this,s),this;var c=this._events[s];if(c.fn)c.fn!==t||o&&!c.once||r&&c.context!==r||i(this,s);else{for(var f=0,a=[],u=c.length;f<u;f++)(c[f].fn!==t||o&&!c[f].once||r&&c[f].context!==r)&&a.push(c[f]);a.length?this._events[s]=1===a.length?a[0]:a:i(this,s)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(this,t)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c}(e);var t=e.exports;exports.eventemitter3=e,exports.u=t;