@dodoex/wallet-web3 0.0.3-4 → 0.0.4

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 (97) hide show
  1. package/dist/blocto-72bf7aa6.js +1 -0
  2. package/dist/cjs/blocto-b869f9d4.cjs +1 -0
  3. package/dist/cjs/contract/index.d.ts +12 -2
  4. package/dist/cjs/core/index.d.ts +2 -2
  5. package/dist/cjs/helpers/index.d.ts +4 -0
  6. package/dist/cjs/helpers/transactions.d.ts +5 -5
  7. package/dist/cjs/index-4081ac23.cjs +1 -0
  8. package/dist/cjs/index-c1794c22.cjs +1 -0
  9. package/dist/cjs/index-c2fa7be5.cjs +1 -0
  10. package/dist/cjs/index.cjs +1 -1
  11. package/dist/cjs/index.d.ts +1 -0
  12. package/dist/cjs/portis-cb52810f.cjs +1 -0
  13. package/dist/cjs/provider-a5132ca0.cjs +1 -0
  14. package/dist/cjs/providers/connector/blocto.d.ts +3 -0
  15. package/dist/cjs/providers/connector/index.d.ts +5 -0
  16. package/dist/cjs/providers/connector/ledgerUSB/index.d.ts +129 -1
  17. package/dist/cjs/providers/connector/ledgerUSB/provider.d.ts +131 -1
  18. package/dist/cjs/providers/connector/ledgerUSB/signer.d.ts +22 -0
  19. package/dist/cjs/providers/connector/types.d.ts +3 -0
  20. package/dist/cjs/providers/wallets/index.d.ts +24 -30
  21. package/dist/cjs/providers/wallets/injected.d.ts +1 -0
  22. package/dist/cjs/providers/wallets/standalone.d.ts +1 -0
  23. package/dist/cjs/providers/wallets/types.d.ts +22 -1
  24. package/dist/cjs/state.d.ts +3 -0
  25. package/dist/cjs/uAuth-089d8c64.cjs +1 -0
  26. package/dist/cjs/walletConnect-7624b12b.cjs +1 -0
  27. package/dist/cjs/walletLink-aa126dac.cjs +1 -0
  28. package/dist/contract/index.d.ts +12 -2
  29. package/dist/core/index.d.ts +2 -2
  30. package/dist/helpers/index.d.ts +4 -0
  31. package/dist/helpers/transactions.d.ts +5 -5
  32. package/dist/index-44c5224a.js +1 -0
  33. package/dist/index-c418b636.js +1 -0
  34. package/dist/index-f5bd0eff.js +1 -0
  35. package/dist/index.d.ts +1 -0
  36. package/dist/index.js +1 -1
  37. package/dist/portis-693e3b82.js +1 -0
  38. package/dist/provider-9af035cb.js +1 -0
  39. package/dist/providers/connector/blocto.d.ts +3 -0
  40. package/dist/providers/connector/index.d.ts +5 -0
  41. package/dist/providers/connector/ledgerUSB/index.d.ts +129 -1
  42. package/dist/providers/connector/ledgerUSB/provider.d.ts +131 -1
  43. package/dist/providers/connector/ledgerUSB/signer.d.ts +22 -0
  44. package/dist/providers/connector/types.d.ts +3 -0
  45. package/dist/providers/wallets/index.d.ts +24 -30
  46. package/dist/providers/wallets/injected.d.ts +1 -0
  47. package/dist/providers/wallets/standalone.d.ts +1 -0
  48. package/dist/providers/wallets/types.d.ts +22 -1
  49. package/dist/state.d.ts +3 -0
  50. package/dist/uAuth-f4156c7e.js +1 -0
  51. package/dist/walletConnect-a17a15c2.js +1 -0
  52. package/dist/walletLink-e058c81d.js +1 -0
  53. package/package.json +2 -1
  54. package/dist/_commonjsHelpers-70de2c37.js +0 -1
  55. package/dist/bn-16003306.js +0 -1
  56. package/dist/cjs/_commonjsHelpers-66ecbaf8.cjs +0 -1
  57. package/dist/cjs/bn-1bd77809.cjs +0 -1
  58. package/dist/cjs/elliptic-174586a6.cjs +0 -1
  59. package/dist/cjs/hash-121fdd2c.cjs +0 -1
  60. package/dist/cjs/index-0eeb697b.cjs +0 -22
  61. package/dist/cjs/index-33e57d81.cjs +0 -1
  62. package/dist/cjs/index-3a14a931.cjs +0 -3
  63. package/dist/cjs/index-5976e357.cjs +0 -1
  64. package/dist/cjs/index-6d7369f7.cjs +0 -1
  65. package/dist/cjs/index-a26b6945.cjs +0 -1
  66. package/dist/cjs/index-a9081fe4.cjs +0 -1
  67. package/dist/cjs/index-f7522058.cjs +0 -1
  68. package/dist/cjs/inherits-6d52d55b.cjs +0 -1
  69. package/dist/cjs/interface-6a2093d7.cjs +0 -1
  70. package/dist/cjs/node-ponyfill-c08c51bf.cjs +0 -1
  71. package/dist/cjs/portis-8c790653.cjs +0 -1
  72. package/dist/cjs/provider-95f3425c.cjs +0 -1
  73. package/dist/cjs/sha256-21fccd26.cjs +0 -1
  74. package/dist/cjs/sha3-499f6bea.cjs +0 -10
  75. package/dist/cjs/uAuth-692ecdf6.cjs +0 -1
  76. package/dist/cjs/walletConnect-14d9d490.cjs +0 -1
  77. package/dist/cjs/walletLink-b99948b8.cjs +0 -1
  78. package/dist/elliptic-1100204f.js +0 -1
  79. package/dist/hash-4b8ad136.js +0 -1
  80. package/dist/index-3a9d1d45.js +0 -22
  81. package/dist/index-5c16deff.js +0 -1
  82. package/dist/index-632fbf92.js +0 -1
  83. package/dist/index-9547c0cf.js +0 -1
  84. package/dist/index-9af08480.js +0 -2
  85. package/dist/index-a2c8f38f.js +0 -1
  86. package/dist/index-afc4ce88.js +0 -1
  87. package/dist/index-e3ab6de5.js +0 -1
  88. package/dist/inherits-e2363129.js +0 -1
  89. package/dist/interface-36a3c8cf.js +0 -1
  90. package/dist/node-ponyfill-bda9b4f4.js +0 -1
  91. package/dist/portis-f89a1cba.js +0 -1
  92. package/dist/provider-1ecbc0fa.js +0 -1
  93. package/dist/sha256-8f7b3565.js +0 -1
  94. package/dist/sha3-a5661517.js +0 -9
  95. package/dist/uAuth-1f7b3a0a.js +0 -1
  96. package/dist/walletConnect-ac756ff6.js +0 -1
  97. package/dist/walletLink-c286f908.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";var e=require("stream"),t=require("http"),r=require("url"),o=require("./interface-6a2093d7.cjs"),n=require("https"),s=require("zlib"),i=require("./_commonjsHelpers-66ecbaf8.cjs"),u=require("@ethersproject/bytes");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=a(e),l=a(t),f=a(r),d=a(n),h=a(s);const p=c.default.Readable,y=Symbol("buffer"),b=Symbol("type");class m{constructor(){this[b]="";const e=arguments[0],t=arguments[1],r=[];let o=0;if(e){const t=e,n=Number(t.length);for(let e=0;e<n;e++){const n=t[e];let s;s=n instanceof Buffer?n:ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):n instanceof ArrayBuffer?Buffer.from(n):n instanceof m?n[y]:Buffer.from("string"==typeof n?n:String(n)),o+=s.length,r.push(s)}}this[y]=Buffer.concat(r);let n=t&&void 0!==t.type&&String(t.type).toLowerCase();n&&!/[^\u0020-\u007E]/.test(n)&&(this[b]=n)}get size(){return this[y].length}get type(){return this[b]}text(){return Promise.resolve(this[y].toString())}arrayBuffer(){const e=this[y],t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return Promise.resolve(t)}stream(){const e=new p;return e._read=function(){},e.push(this[y]),e.push(null),e}toString(){return"[object Blob]"}slice(){const e=this.size,t=arguments[0],r=arguments[1];let o,n;o=void 0===t?0:t<0?Math.max(e+t,0):Math.min(t,e),n=void 0===r?e:r<0?Math.max(e+r,0):Math.min(r,e);const s=Math.max(n-o,0),i=this[y].slice(o,o+s),u=new m([],{type:arguments[2]});return u[y]=i,u}}function g(e,t,r){Error.call(this,e),this.message=e,this.type=t,r&&(this.code=this.errno=r.code),Error.captureStackTrace(this,this.constructor)}let w;Object.defineProperties(m.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}}),Object.defineProperty(m.prototype,Symbol.toStringTag,{value:"Blob",writable:!1,enumerable:!1,configurable:!0}),g.prototype=Object.create(Error.prototype),g.prototype.constructor=g,g.prototype.name="FetchError";try{w=require("encoding").convert}catch(e){}const v=Symbol("Body internals"),E=c.default.PassThrough;function S(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.size;let n=void 0===o?0:o;var s=r.timeout;let i=void 0===s?0:s;null==e?e=null:j(e)?e=Buffer.from(e.toString()):O(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof c.default||(e=Buffer.from(String(e)))),this[v]={body:e,disturbed:!1,error:null},this.size=n,this.timeout=i,e instanceof c.default&&e.on("error",(function(e){const r="AbortError"===e.name?e:new g(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[v].error=r}))}function T(){var e=this;if(this[v].disturbed)return S.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[v].disturbed=!0,this[v].error)return S.Promise.reject(this[v].error);let t=this.body;if(null===t)return S.Promise.resolve(Buffer.alloc(0));if(O(t)&&(t=t.stream()),Buffer.isBuffer(t))return S.Promise.resolve(t);if(!(t instanceof c.default))return S.Promise.resolve(Buffer.alloc(0));let r=[],o=0,n=!1;return new S.Promise((function(s,i){let u;e.timeout&&(u=setTimeout((function(){n=!0,i(new g(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)),t.on("error",(function(t){"AbortError"===t.name?(n=!0,i(t)):i(new g(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))})),t.on("data",(function(t){if(!n&&null!==t){if(e.size&&o+t.length>e.size)return n=!0,void i(new g(`content size at ${e.url} over limit: ${e.size}`,"max-size"));o+=t.length,r.push(t)}})),t.on("end",(function(){if(!n){clearTimeout(u);try{s(Buffer.concat(r,o))}catch(t){i(new g(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}}))}))}function j(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function O(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function R(e){let t,r,o=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return o instanceof c.default&&"function"!=typeof o.getBoundary&&(t=new E,r=new E,o.pipe(t),o.pipe(r),e[v].body=t,o=r),o}function x(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":j(e)?"application/x-www-form-urlencoded;charset=UTF-8":O(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?`multipart/form-data;boundary=${e.getBoundary()}`:e instanceof c.default?null:"text/plain;charset=UTF-8"}function B(e){const t=e.body;return null===t?0:O(t)?t.size:Buffer.isBuffer(t)?t.length:t&&"function"==typeof t.getLengthSync&&(t._lengthRetrievers&&0==t._lengthRetrievers.length||t.hasKnownLength&&t.hasKnownLength())?t.getLengthSync():null}S.prototype={get body(){return this[v].body},get bodyUsed(){return this[v].disturbed},arrayBuffer(){return T.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return T.call(this).then((function(t){return Object.assign(new m([],{type:e.toLowerCase()}),{[y]:t})}))},json(){var e=this;return T.call(this).then((function(t){try{return JSON.parse(t.toString())}catch(t){return S.Promise.reject(new g(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}}))},text(){return T.call(this).then((function(e){return e.toString()}))},buffer(){return T.call(this)},textConverted(){var e=this;return T.call(this).then((function(t){return function(e,t){if("function"!=typeof w)throw new Error("The package `encoding` must be installed to use the textConverted() function");const r=t.get("content-type");let o,n,s="utf-8";r&&(o=/charset=([^;]*)/i.exec(r));n=e.slice(0,1024).toString(),!o&&n&&(o=/<meta.+?charset=(['"])(.+?)\1/i.exec(n));!o&&n&&(o=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(n),o||(o=/<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(n),o&&o.pop()),o&&(o=/charset=(.*)/i.exec(o.pop())));!o&&n&&(o=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(n));o&&(s=o.pop(),"gb2312"!==s&&"gbk"!==s||(s="gb18030"));return w(e,"UTF-8",s).toString()}(t,e.headers)}))}},Object.defineProperties(S.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0}}),S.mixIn=function(e){for(const t of Object.getOwnPropertyNames(S.prototype))if(!(t in e)){const r=Object.getOwnPropertyDescriptor(S.prototype,t);Object.defineProperty(e,t,r)}},S.Promise=global.Promise;const P=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/,L=/[^\t\x20-\x7e\x80-\xff]/;function U(e){if(e=`${e}`,P.test(e)||""===e)throw new TypeError(`${e} is not a legal HTTP header name`)}function A(e){if(e=`${e}`,L.test(e))throw new TypeError(`${e} is not a legal HTTP header value`)}function $(e,t){t=t.toLowerCase();for(const r in e)if(r.toLowerCase()===t)return r}const _=Symbol("map");class C{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[_]=Object.create(null),e instanceof C){const t=e.raw(),r=Object.keys(t);for(const e of r)for(const r of t[e])this.append(e,r)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const t=e[Symbol.iterator];if(null!=t){if("function"!=typeof t)throw new TypeError("Header pairs must be iterable");const r=[];for(const t of e){if("object"!=typeof t||"function"!=typeof t[Symbol.iterator])throw new TypeError("Each header pair must be iterable");r.push(Array.from(t))}for(const e of r){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const t of Object.keys(e)){const r=e[t];this.append(t,r)}}}}get(e){U(e=`${e}`);const t=$(this[_],e);return void 0===t?null:this[_][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=k(this),o=0;for(;o<r.length;){var n=r[o];const s=n[0],i=n[1];e.call(t,i,s,this),r=k(this),o++}}set(e,t){t=`${t}`,U(e=`${e}`),A(t);const r=$(this[_],e);this[_][void 0!==r?r:e]=[t]}append(e,t){t=`${t}`,U(e=`${e}`),A(t);const r=$(this[_],e);void 0!==r?this[_][r].push(t):this[_][e]=[t]}has(e){return U(e=`${e}`),void 0!==$(this[_],e)}delete(e){U(e=`${e}`);const t=$(this[_],e);void 0!==t&&delete this[_][t]}raw(){return this[_]}keys(){return F(this,"key")}values(){return F(this,"value")}[Symbol.iterator](){return F(this,"key+value")}}function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key+value";return Object.keys(e[_]).sort().map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[_][t].join(", ")}:function(t){return[t.toLowerCase(),e[_][t].join(", ")]})}C.prototype.entries=C.prototype[Symbol.iterator],Object.defineProperty(C.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(C.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const z=Symbol("internal");function F(e,t){const r=Object.create(q);return r[z]={target:e,kind:t,index:0},r}const q=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==q)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[z];const t=e.target,r=e.kind,o=e.index,n=k(t,r);return o>=n.length?{value:void 0,done:!0}:(this[z].index=o+1,{value:n[o],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function H(e){const t=Object.assign({__proto__:null},e[_]),r=$(e[_],"Host");return void 0!==r&&(t[r]=t[r][0]),t}Object.defineProperty(q,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const N=Symbol("Response internals"),V=l.default.STATUS_CODES;class I{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};S.call(this,e,t);const r=t.status||200,o=new C(t.headers);if(null!=e&&!o.has("Content-Type")){const t=x(e);t&&o.append("Content-Type",t)}this[N]={url:t.url,status:r,statusText:t.statusText||V[r],headers:o,counter:t.counter}}get url(){return this[N].url||""}get status(){return this[N].status}get ok(){return this[N].status>=200&&this[N].status<300}get redirected(){return this[N].counter>0}get statusText(){return this[N].statusText}get headers(){return this[N].headers}clone(){return new I(R(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}S.mixIn(I.prototype),Object.defineProperties(I.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(I.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const M=Symbol("Request internals"),D=f.default.URL||o.publicApi.URL,G=f.default.parse,Z=f.default.format;function K(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)&&(e=new D(e).toString()),G(e)}const Y="destroy"in c.default.Readable.prototype;function J(e){return"object"==typeof e&&"object"==typeof e[M]}class W{constructor(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};J(e)?t=K(e.url):(t=e&&e.href?K(e.href):K(`${e}`),e={});let o=r.method||e.method||"GET";if(o=o.toUpperCase(),(null!=r.body||J(e)&&null!==e.body)&&("GET"===o||"HEAD"===o))throw new TypeError("Request with GET/HEAD method cannot have body");let n=null!=r.body?r.body:J(e)&&null!==e.body?R(e):null;S.call(this,n,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});const s=new C(r.headers||e.headers||{});if(null!=n&&!s.has("Content-Type")){const e=x(n);e&&s.append("Content-Type",e)}let i=J(e)?e.signal:null;if("signal"in r&&(i=r.signal),null!=i&&!function(e){const t=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!t||"AbortSignal"!==t.constructor.name)}(i))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[M]={method:o,redirect:r.redirect||e.redirect||"follow",headers:s,parsedURL:t,signal:i},this.follow=void 0!==r.follow?r.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==r.compress?r.compress:void 0===e.compress||e.compress,this.counter=r.counter||e.counter||0,this.agent=r.agent||e.agent}get method(){return this[M].method}get url(){return Z(this[M].parsedURL)}get headers(){return this[M].headers}get redirect(){return this[M].redirect}get signal(){return this[M].signal}clone(){return new W(this)}}function Q(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}S.mixIn(W.prototype),Object.defineProperty(W.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(W.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),Q.prototype=Object.create(Error.prototype),Q.prototype.constructor=Q,Q.prototype.name="AbortError";const X=f.default.URL||o.publicApi.URL,ee=c.default.PassThrough;function te(e,t){if(!te.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return S.Promise=te.Promise,new te.Promise((function(r,o){const n=new W(e,t),s=function(e){const t=e[M].parsedURL,r=new C(e[M].headers);if(r.has("Accept")||r.set("Accept","*/*"),!t.protocol||!t.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(t.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof c.default.Readable&&!Y)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let o=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(o="0"),null!=e.body){const t=B(e);"number"==typeof t&&(o=String(t))}o&&r.set("Content-Length",o),r.has("User-Agent")||r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip,deflate");let n=e.agent;return"function"==typeof n&&(n=n(t)),r.has("Connection")||n||r.set("Connection","close"),Object.assign({},t,{method:e.method,headers:H(r),agent:n})}(n),i=("https:"===s.protocol?d.default:l.default).request,u=n.signal;let a=null;const f=function(){let e=new Q("The user aborted a request.");o(e),n.body&&n.body instanceof c.default.Readable&&re(n.body,e),a&&a.body&&a.body.emit("error",e)};if(u&&u.aborted)return void f();const p=function(){f(),m()},y=i(s);let b;function m(){y.abort(),u&&u.removeEventListener("abort",p),clearTimeout(b)}u&&u.addEventListener("abort",p),n.timeout&&y.once("socket",(function(e){b=setTimeout((function(){o(new g(`network timeout at: ${n.url}`,"request-timeout")),m()}),n.timeout)})),y.on("error",(function(e){o(new g(`request to ${n.url} failed, reason: ${e.message}`,"system",e)),a&&a.body&&re(a.body,e),m()})),function(e,t){let r;e.on("socket",(function(e){r=e})),e.on("response",(function(e){const o=e.headers;"chunked"!==o["transfer-encoding"]||o["content-length"]||e.once("close",(function(e){if(r.listenerCount("data")>0&&!e){const e=new Error("Premature close");e.code="ERR_STREAM_PREMATURE_CLOSE",t(e)}}))}))}(y,(function(e){u&&u.aborted||a&&a.body&&re(a.body,e)})),parseInt(process.version.substring(1))<14&&y.on("socket",(function(e){e.addListener("close",(function(t){const r=e.listenerCount("data")>0;if(a&&r&&!t&&(!u||!u.aborted)){const e=new Error("Premature close");e.code="ERR_STREAM_PREMATURE_CLOSE",a.body.emit("error",e)}}))})),y.on("response",(function(e){clearTimeout(b);const t=function(e){const t=new C;for(const r of Object.keys(e))if(!P.test(r))if(Array.isArray(e[r]))for(const o of e[r])L.test(o)||(void 0===t[_][r]?t[_][r]=[o]:t[_][r].push(o));else L.test(e[r])||(t[_][r]=[e[r]]);return t}(e.headers);if(te.isRedirect(e.statusCode)){const i=t.get("Location");let u=null;try{u=null===i?null:new X(i,n.url).toString()}catch(e){if("manual"!==n.redirect)return o(new g(`uri requested responds with an invalid redirect URL: ${i}`,"invalid-redirect")),void m()}switch(n.redirect){case"error":return o(new g(`uri requested responds with a redirect, redirect mode is set to error: ${n.url}`,"no-redirect")),void m();case"manual":if(null!==u)try{t.set("Location",u)}catch(e){o(e)}break;case"follow":if(null===u)break;if(n.counter>=n.follow)return o(new g(`maximum redirect reached at: ${n.url}`,"max-redirect")),void m();const i={headers:new C(n.headers),follow:n.follow,counter:n.counter+1,agent:n.agent,compress:n.compress,method:n.method,body:n.body,signal:n.signal,timeout:n.timeout,size:n.size};if(!function(e,t){const r=new X(t).hostname,o=new X(e).hostname;return r===o||"."===r[r.length-o.length-1]&&r.endsWith(o)}(n.url,u)||(s=n.url,new X(u).protocol!==new X(s).protocol))for(const e of["authorization","www-authenticate","cookie","cookie2"])i.headers.delete(e);return 303!==e.statusCode&&n.body&&null===B(n)?(o(new g("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void m()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==n.method)||(i.method="GET",i.body=void 0,i.headers.delete("content-length")),r(te(new W(u,i))),void m())}}var s;e.once("end",(function(){u&&u.removeEventListener("abort",p)}));let i=e.pipe(new ee);const c={url:n.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:n.size,timeout:n.timeout,counter:n.counter},l=t.get("Content-Encoding");if(!n.compress||"HEAD"===n.method||null===l||204===e.statusCode||304===e.statusCode)return a=new I(i,c),void r(a);const f={flush:h.default.Z_SYNC_FLUSH,finishFlush:h.default.Z_SYNC_FLUSH};if("gzip"==l||"x-gzip"==l)return i=i.pipe(h.default.createGunzip(f)),a=new I(i,c),void r(a);if("deflate"==l||"x-deflate"==l){const t=e.pipe(new ee);return t.once("data",(function(e){i=8==(15&e[0])?i.pipe(h.default.createInflate()):i.pipe(h.default.createInflateRaw()),a=new I(i,c),r(a)})),void t.on("end",(function(){a||(a=new I(i,c),r(a))}))}if("br"==l&&"function"==typeof h.default.createBrotliDecompress)return i=i.pipe(h.default.createBrotliDecompress()),a=new I(i,c),void r(a);a=new I(i,c),r(a)})),function(e,t){const r=t.body;null===r?e.end():O(r)?r.stream().pipe(e):Buffer.isBuffer(r)?(e.write(r),e.end()):r.pipe(e)}(y,n)}))}function re(e,t){e.destroy?e.destroy(t):(e.emit("error",t),e.end())}te.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},te.Promise=global.Promise;var oe=Object.freeze({__proto__:null,default:te,Headers:C,Request:W,Response:I,FetchError:g}),ne=i.getAugmentedNamespace(oe);const se=new o.Logger("rlp/5.7.0");function ie(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function ue(e,t,r){let o=0;for(let n=0;n<r;n++)o=256*o+e[t+n];return o}function ae(e){if(Array.isArray(e)){let t=[];if(e.forEach((function(e){t=t.concat(ae(e))})),t.length<=55)return t.unshift(192+t.length),t;const r=ie(t.length);return r.unshift(247+r.length),r.concat(t)}u.isBytesLike(e)||se.throwArgumentError("RLP object must be BytesLike","object",e);const t=Array.prototype.slice.call(u.arrayify(e));if(1===t.length&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;const r=ie(t.length);return r.unshift(183+r.length),r.concat(t)}function ce(e){return u.hexlify(ae(e))}function le(e,t,r,n){const s=[];for(;r<t+1+n;){const i=fe(e,r);s.push(i.result),(r+=i.consumed)>t+1+n&&se.throwError("child data too short",o.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:s}}function fe(e,t){if(0===e.length&&se.throwError("data too short",o.Logger.errors.BUFFER_OVERRUN,{}),e[t]>=248){const r=e[t]-247;t+1+r>e.length&&se.throwError("data short segment too short",o.Logger.errors.BUFFER_OVERRUN,{});const n=ue(e,t+1,r);return t+1+r+n>e.length&&se.throwError("data long segment too short",o.Logger.errors.BUFFER_OVERRUN,{}),le(e,t,t+1+r,r+n)}if(e[t]>=192){const r=e[t]-192;return t+1+r>e.length&&se.throwError("data array too short",o.Logger.errors.BUFFER_OVERRUN,{}),le(e,t,t+1,r)}if(e[t]>=184){const r=e[t]-183;t+1+r>e.length&&se.throwError("data array too short",o.Logger.errors.BUFFER_OVERRUN,{});const n=ue(e,t+1,r);t+1+r+n>e.length&&se.throwError("data array too short",o.Logger.errors.BUFFER_OVERRUN,{});return{consumed:1+r+n,result:u.hexlify(e.slice(t+1+r,t+1+r+n))}}if(e[t]>=128){const r=e[t]-128;t+1+r>e.length&&se.throwError("data too short",o.Logger.errors.BUFFER_OVERRUN,{});return{consumed:1+r,result:u.hexlify(e.slice(t+1,t+1+r))}}return{consumed:1,result:u.hexlify(e[t])}}function de(e){const t=u.arrayify(e),r=fe(t,0);return r.consumed!==t.length&&se.throwArgumentError("invalid rlp data","data",e),r.result}var he=Object.freeze({__proto__:null,encode:ce,decode:de});exports.decode=de,exports.encode=ce,exports.index=he,exports.require$$0=ne;
@@ -1,3 +0,0 @@
1
- "use strict";var e=require("buffer"),t=require("util"),r=require("./index-a26b6945.cjs"),n=require("./_commonjsHelpers-66ecbaf8.cjs");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i,u,a=o(e),s=o(t),c={exports:{}};
2
- /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
3
- !function(e,t){var r=a.default,n=r.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i),i.prototype=Object.create(n.prototype),o(n,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var o=n(e);return void 0!==t?"string"==typeof r?o.fill(t,r):o.fill(t):o.fill(0),o},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}}(c,c.exports);var p=function(e){var t=(e=e||{}).max||Number.MAX_SAFE_INTEGER,r=void 0!==e.start?e.start:Math.floor(Math.random()*t);return function(){return r%=t,r++}};var l,h,f={},y={},_=n.getAugmentedNamespace(r._tslib),d={};function m(){if(l)return d;l=1,Object.defineProperty(d,"__esModule",{value:!0});var e=_,t=function(){function t(e){if(this._maxConcurrency=e,this._queue=[],e<=0)throw new Error("semaphore must be initialized to a positive value");this._value=e}return t.prototype.acquire=function(){var e=this,t=this.isLocked(),r=new Promise((function(t){return e._queue.push(t)}));return t||this._dispatch(),r},t.prototype.runExclusive=function(t){return e.__awaiter(this,void 0,void 0,(function(){var r,n,o;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,this.acquire()];case 1:r=e.sent(),n=r[0],o=r[1],e.label=2;case 2:return e.trys.push([2,,4,5]),[4,t(n)];case 3:return[2,e.sent()];case 4:return o(),[7];case 5:return[2]}}))}))},t.prototype.isLocked=function(){return this._value<=0},t.prototype.release=function(){if(this._maxConcurrency>1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var e=this._currentReleaser;this._currentReleaser=void 0,e()}},t.prototype._dispatch=function(){var e=this,t=this._queue.shift();if(t){var r=!1;this._currentReleaser=function(){r||(r=!0,e._value++,e._dispatch())},t([this._value--,this._currentReleaser])}},t}();return d.default=t,d}var g,b,v,B,w,k,T={};function x(){if(B)return v;B=1,v=function(){for(var t={},r=0;r<arguments.length;r++){var n=arguments[r];for(var o in n)e.call(n,o)&&(t[o]=n[o])}return t};var e=Object.prototype.hasOwnProperty;return v}exports.jsonRpcRandomId=p,exports.require$$0=_,exports.requireEthQuery=function(){if(k)return w;k=1;const e=x(),t=p();function r(e){this.currentProvider=e}function n(e){return function(){var t=[].slice.call(arguments),r=t.pop();this.sendAsync({method:e,params:t},r)}}function o(e,t){return function(){var r=[].slice.call(arguments),n=r.pop();r.length<e&&r.push("latest"),this.sendAsync({method:t,params:r},n)}}return w=r,r.prototype.getBalance=o(2,"eth_getBalance"),r.prototype.getCode=o(2,"eth_getCode"),r.prototype.getTransactionCount=o(2,"eth_getTransactionCount"),r.prototype.getStorageAt=o(3,"eth_getStorageAt"),r.prototype.call=o(2,"eth_call"),r.prototype.protocolVersion=n("eth_protocolVersion"),r.prototype.syncing=n("eth_syncing"),r.prototype.coinbase=n("eth_coinbase"),r.prototype.mining=n("eth_mining"),r.prototype.hashrate=n("eth_hashrate"),r.prototype.gasPrice=n("eth_gasPrice"),r.prototype.accounts=n("eth_accounts"),r.prototype.blockNumber=n("eth_blockNumber"),r.prototype.getBlockTransactionCountByHash=n("eth_getBlockTransactionCountByHash"),r.prototype.getBlockTransactionCountByNumber=n("eth_getBlockTransactionCountByNumber"),r.prototype.getUncleCountByBlockHash=n("eth_getUncleCountByBlockHash"),r.prototype.getUncleCountByBlockNumber=n("eth_getUncleCountByBlockNumber"),r.prototype.sign=n("eth_sign"),r.prototype.sendTransaction=n("eth_sendTransaction"),r.prototype.sendRawTransaction=n("eth_sendRawTransaction"),r.prototype.estimateGas=n("eth_estimateGas"),r.prototype.getBlockByHash=n("eth_getBlockByHash"),r.prototype.getBlockByNumber=n("eth_getBlockByNumber"),r.prototype.getTransactionByHash=n("eth_getTransactionByHash"),r.prototype.getTransactionByBlockHashAndIndex=n("eth_getTransactionByBlockHashAndIndex"),r.prototype.getTransactionByBlockNumberAndIndex=n("eth_getTransactionByBlockNumberAndIndex"),r.prototype.getTransactionReceipt=n("eth_getTransactionReceipt"),r.prototype.getUncleByBlockHashAndIndex=n("eth_getUncleByBlockHashAndIndex"),r.prototype.getUncleByBlockNumberAndIndex=n("eth_getUncleByBlockNumberAndIndex"),r.prototype.getCompilers=n("eth_getCompilers"),r.prototype.compileLLL=n("eth_compileLLL"),r.prototype.compileSolidity=n("eth_compileSolidity"),r.prototype.compileSerpent=n("eth_compileSerpent"),r.prototype.newFilter=n("eth_newFilter"),r.prototype.newBlockFilter=n("eth_newBlockFilter"),r.prototype.newPendingTransactionFilter=n("eth_newPendingTransactionFilter"),r.prototype.uninstallFilter=n("eth_uninstallFilter"),r.prototype.getFilterChanges=n("eth_getFilterChanges"),r.prototype.getFilterLogs=n("eth_getFilterLogs"),r.prototype.getLogs=n("eth_getLogs"),r.prototype.getWork=n("eth_getWork"),r.prototype.submitWork=n("eth_submitWork"),r.prototype.submitHashrate=n("eth_submitHashrate"),r.prototype.sendAsync=function(r,n){var o;this.currentProvider.sendAsync((o=r,e({id:t(),jsonrpc:"2.0",params:[]},o)),(function(e,t){if(!e&&t.error&&(e=new Error("EthQuery - RPC Error - "+t.error.message)),e)return n(e);n(null,t.result)}))},w},exports.requireImmutable=x,exports.requireLib=function(){return b||(b=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.withTimeout=e.Semaphore=e.Mutex=void 0;var t=function(){if(h)return y;h=1,Object.defineProperty(y,"__esModule",{value:!0});var e=_,t=m(),r=function(){function r(){this._semaphore=new t.default(1)}return r.prototype.acquire=function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,this._semaphore.acquire()];case 1:return[2,e.sent()[1]]}}))}))},r.prototype.runExclusive=function(e){return this._semaphore.runExclusive((function(){return e()}))},r.prototype.isLocked=function(){return this._semaphore.isLocked()},r.prototype.release=function(){this._semaphore.release()},r}();return y.default=r,y}();Object.defineProperty(e,"Mutex",{enumerable:!0,get:function(){return t.default}});var r=m();Object.defineProperty(e,"Semaphore",{enumerable:!0,get:function(){return r.default}});var n=function(){if(g)return T;g=1,Object.defineProperty(T,"__esModule",{value:!0}),T.withTimeout=void 0;var e=_;return T.withTimeout=function(t,r,n){var o=this;return void 0===n&&(n=new Error("timeout")),{acquire:function(){return new Promise((function(i,u){return e.__awaiter(o,void 0,void 0,(function(){var o,a;return e.__generator(this,(function(e){switch(e.label){case 0:return o=!1,setTimeout((function(){o=!0,u(n)}),r),[4,t.acquire()];case 1:return a=e.sent(),o?(Array.isArray(a)?a[1]:a)():i(a),[2]}}))}))}))},runExclusive:function(t){return e.__awaiter(this,void 0,void 0,(function(){var r,n;return e.__generator(this,(function(e){switch(e.label){case 0:r=function(){},e.label=1;case 1:return e.trys.push([1,,7,8]),[4,this.acquire()];case 2:return n=e.sent(),Array.isArray(n)?(r=n[1],[4,t(n[0])]):[3,4];case 3:return[2,e.sent()];case 4:return r=n,[4,t()];case 5:return[2,e.sent()];case 6:return[3,8];case 7:return r(),[7];case 8:return[2]}}))}))},release:function(){t.release()},isLocked:function(){return t.isLocked()}}},T}();Object.defineProperty(e,"withTimeout",{enumerable:!0,get:function(){return n.withTimeout}})}(f)),f},exports.requireNode=function(){return u?i:(u=1,i=s.default.deprecate)},exports.safeBuffer=c;
@@ -1 +0,0 @@
1
- "use strict";var r=function(r){if("string"!=typeof r)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof r+", while checking isHexPrefixed.");return"0x"===r.slice(0,2)},t=r,e=function(r){return"string"!=typeof r?r:t(r)?r.slice(2):r};function n(r){var t=r;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function i(r){return"0x"+r.toString(16)}var o,f,u,a,s,c={arrayContainsArray:function(r,t,e){if(!0!==Array.isArray(r))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof r+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(e)?"some":"every"]((function(t){return r.indexOf(t)>=0}))},intToBuffer:function(r){var t=i(r);return new Buffer(n(t.slice(2)),"hex")},getBinarySize:function(r){if("string"!=typeof r)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof r+"'.");return Buffer.byteLength(r,"utf8")},isHexPrefixed:r,stripHexPrefix:e,padToEven:n,intToHex:i,fromAscii:function(r){for(var t="",e=0;e<r.length;e++){var n=r.charCodeAt(e).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},fromUtf8:function(r){return"0x"+n(new Buffer(r,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(r){var t="",e=0,n=r.length;for("0x"===r.substring(0,2)&&(e=2);e<n;e+=2){var i=parseInt(r.substr(e,2),16);t+=String.fromCharCode(i)}return t},toUtf8:function(r){return new Buffer(n(e(r).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(r,t,e){if(!Array.isArray(r))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof r+"'");if("string"!=typeof t)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof t+"'.");for(var n=[],i=0;i<r.length;i++){var o=r[i][t];if(e&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(r,t){return!("string"!=typeof r||!r.match(/^0x[0-9A-Fa-f]*$/))&&(!t||r.length===2+2*t)}},y={};function p(){if(f)return o;var r,t;f=1;var e,n={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function i(t){throw{name:"SyntaxError",message:t,at:r,text:e}}function u(n){return n&&n!==t&&i("Expected '"+n+"' instead of '"+t+"'"),t=e.charAt(r),r+=1,t}function a(){var r,e="";for("-"===t&&(e="-",u("-"));t>="0"&&t<="9";)e+=t,u();if("."===t)for(e+=".";u()&&t>="0"&&t<="9";)e+=t;if("e"===t||"E"===t)for(e+=t,u(),"-"!==t&&"+"!==t||(e+=t,u());t>="0"&&t<="9";)e+=t,u();return r=Number(e),isFinite(r)||i("Bad number"),r}function s(){var r,e,o,f="";if('"'===t)for(;u();){if('"'===t)return u(),f;if("\\"===t)if(u(),"u"===t){for(o=0,e=0;e<4&&(r=parseInt(u(),16),isFinite(r));e+=1)o=16*o+r;f+=String.fromCharCode(o)}else{if("string"!=typeof n[t])break;f+=n[t]}else f+=t}i("Bad string")}function c(){for(;t&&t<=" ";)u()}function y(){switch(c(),t){case"{":return function(){var r,e={};if("{"===t){if(u("{"),c(),"}"===t)return u("}"),e;for(;t;){if(r=s(),c(),u(":"),Object.prototype.hasOwnProperty.call(e,r)&&i('Duplicate key "'+r+'"'),e[r]=y(),c(),"}"===t)return u("}"),e;u(","),c()}}i("Bad object")}();case"[":return function(){var r=[];if("["===t){if(u("["),c(),"]"===t)return u("]"),r;for(;t;){if(r.push(y()),c(),"]"===t)return u("]"),r;u(","),c()}}i("Bad array")}();case'"':return s();case"-":return a();default:return t>="0"&&t<="9"?a():function(){switch(t){case"t":return u("t"),u("r"),u("u"),u("e"),!0;case"f":return u("f"),u("a"),u("l"),u("s"),u("e"),!1;case"n":return u("n"),u("u"),u("l"),u("l"),null;default:i("Unexpected '"+t+"'")}}()}}return o=function(n,o){var f;return e=n,r=0,t=" ",f=y(),c(),t&&i("Syntax error"),"function"==typeof o?function r(t,e){var n,i,f=t[e];if(f&&"object"==typeof f)for(n in y)Object.prototype.hasOwnProperty.call(f,n)&&(void 0===(i=r(f,n))?delete f[n]:f[n]=i);return o.call(t,e,f)}({"":f},""):f}}function l(){if(a)return u;a=1;var r,t,e,n=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function o(r){return n.lastIndex=0,n.test(r)?'"'+r.replace(n,(function(r){var t=i[r];return"string"==typeof t?t:"\\u"+("0000"+r.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+r+'"'}function f(n,i){var u,a,s,c,y,p=r,l=i[n];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(n)),"function"==typeof e&&(l=e.call(i,n,l)),typeof l){case"string":return o(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(r+=t,y=[],"[object Array]"===Object.prototype.toString.apply(l)){for(c=l.length,u=0;u<c;u+=1)y[u]=f(u,l)||"null";return s=0===y.length?"[]":r?"[\n"+r+y.join(",\n"+r)+"\n"+p+"]":"["+y.join(",")+"]",r=p,s}if(e&&"object"==typeof e)for(c=e.length,u=0;u<c;u+=1)"string"==typeof(a=e[u])&&(s=f(a,l))&&y.push(o(a)+(r?": ":":")+s);else for(a in l)Object.prototype.hasOwnProperty.call(l,a)&&(s=f(a,l))&&y.push(o(a)+(r?": ":":")+s);return s=0===y.length?"{}":r?"{\n"+r+y.join(",\n"+r)+"\n"+p+"}":"{"+y.join(",")+"}",r=p,s}}return u=function(n,i,o){var u;if(r="",t="","number"==typeof o)for(u=0;u<o;u+=1)t+=" ";else"string"==typeof o&&(t=o);if(e=i,i&&"function"!=typeof i&&("object"!=typeof i||"number"!=typeof i.length))throw new Error("JSON.stringify");return f("",{"":n})}}var g="undefined"!=typeof JSON?JSON:(s||(s=1,y.parse=p(),y.stringify=l()),y),h=Array.isArray||function(r){return"[object Array]"==={}.toString.call(r)},v=Object.keys||function(r){var t=Object.prototype.hasOwnProperty||function(){return!0},e=[];for(var n in r)t.call(r,n)&&e.push(n);return e};exports.jsonStableStringify=function(r,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var e=t.space||"";"number"==typeof e&&(e=Array(e+1).join(" "));var n,i="boolean"==typeof t.cycles&&t.cycles,o=t.replacer||function(r,t){return t},f=t.cmp&&(n=t.cmp,function(r){return function(t,e){var i={key:t,value:r[t]},o={key:e,value:r[e]};return n(i,o)}}),u=[];return function r(t,n,a,s){var c=e?"\n"+new Array(s+1).join(e):"",y=e?": ":":";if(a&&a.toJSON&&"function"==typeof a.toJSON&&(a=a.toJSON()),void 0!==(a=o.call(t,n,a))){if("object"!=typeof a||null===a)return g.stringify(a);if(h(a)){for(var p=[],l=0;l<a.length;l++){var b=r(a,l,a[l],s+1)||g.stringify(null);p.push(c+e+b)}return"["+p.join(",")+c+"]"}if(-1!==u.indexOf(a)){if(i)return g.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}u.push(a);var d=v(a).sort(f&&f(a));for(p=[],l=0;l<d.length;l++){var w=r(a,n=d[l],a[n],s+1);if(w){var x=g.stringify(n)+y+w;p.push(c+e+x)}}return u.splice(u.indexOf(a),1),"{"+p.join(",")+c+"}"}}({"":r},"",r,0)},exports.lib=c;
@@ -1 +0,0 @@
1
- "use strict";var e=require("./_commonjsHelpers-66ecbaf8.cjs");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=r(require("events")),o={},n={},s={};Object.defineProperty(s,"__esModule",{value:!0}),s.getUniqueId=void 0;const i=4294967295;let a=Math.floor(Math.random()*i);s.getUniqueId=function(){return a=(a+1)%i,a},Object.defineProperty(n,"__esModule",{value:!0}),n.createIdRemapMiddleware=void 0;const d=s;n.createIdRemapMiddleware=function(){return(e,r,t,o)=>{const n=e.id,s=d.getUniqueId();e.id=s,r.id=s,t((t=>{e.id=n,r.id=n,t()}))}};var c={};Object.defineProperty(c,"__esModule",{value:!0}),c.createAsyncMiddleware=void 0,c.createAsyncMiddleware=function(e){return async(r,t,o,n)=>{let s;const i=new Promise((e=>{s=e}));let a=null,d=!1;const c=async()=>{d=!0,o((e=>{a=e,s()})),await i};try{await e(r,t,c),d?(await i,a(null)):n(null)}catch(e){a?a(e):n(e)}}};var u={};Object.defineProperty(u,"__esModule",{value:!0}),u.createScaffoldMiddleware=void 0,u.createScaffoldMiddleware=function(e){return(r,t,o,n)=>{const s=e[r.method];return void 0===s?o():"function"==typeof s?s(r,t,o,n):(t.result=s,n())}};var l={},f={};Object.defineProperty(f,"__esModule",{value:!0});const p=t.default;function h(e,r,t){try{Reflect.apply(e,r,t)}catch(e){setTimeout((()=>{throw e}))}}class m extends p.EventEmitter{emit(e,...r){let t="error"===e;const o=this._events;if(void 0!==o)t=t&&void 0===o.error;else if(!t)return!1;if(t){let e;if(r.length>0&&([e]=r),e instanceof Error)throw e;const t=new Error("Unhandled error."+(e?` (${e.message})`:""));throw t.context=e,t}const n=o[e];if(void 0===n)return!1;if("function"==typeof n)h(n,this,r);else{const e=n.length,t=function(e){const r=e.length,t=new Array(r);for(let o=0;o<r;o+=1)t[o]=e[o];return t}(n);for(let o=0;o<e;o+=1)h(t[o],this,r)}return!0}}f.default=m;var g={},v={},y=j;j.default=j,j.stable=C,j.stableStringify=C;var E="[...]",b="[Circular]",w=[],_=[];function R(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function j(e,r,t,o){var n;void 0===o&&(o=R()),O(e,"",0,[],void 0,0,o);try{n=0===_.length?JSON.stringify(e,r,t):JSON.stringify(e,N(r),t)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==w.length;){var s=w.pop();4===s.length?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return n}function P(e,r,t,o){var n=Object.getOwnPropertyDescriptor(o,t);void 0!==n.get?n.configurable?(Object.defineProperty(o,t,{value:e}),w.push([o,t,r,n])):_.push([r,t,e]):(o[t]=e,w.push([o,t,r]))}function O(e,r,t,o,n,s,i){var a;if(s+=1,"object"==typeof e&&null!==e){for(a=0;a<o.length;a++)if(o[a]===e)return void P(b,e,r,n);if(void 0!==i.depthLimit&&s>i.depthLimit)return void P(E,e,r,n);if(void 0!==i.edgesLimit&&t+1>i.edgesLimit)return void P(E,e,r,n);if(o.push(e),Array.isArray(e))for(a=0;a<e.length;a++)O(e[a],a,a,o,e,s,i);else{var d=Object.keys(e);for(a=0;a<d.length;a++){var c=d[a];O(e[c],c,a,o,e,s,i)}}o.pop()}}function M(e,r){return e<r?-1:e>r?1:0}function C(e,r,t,o){void 0===o&&(o=R());var n,s=S(e,"",0,[],void 0,0,o)||e;try{n=0===_.length?JSON.stringify(s,r,t):JSON.stringify(s,N(r),t)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==w.length;){var i=w.pop();4===i.length?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return n}function S(e,r,t,o,n,s,i){var a;if(s+=1,"object"==typeof e&&null!==e){for(a=0;a<o.length;a++)if(o[a]===e)return void P(b,e,r,n);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==i.depthLimit&&s>i.depthLimit)return void P(E,e,r,n);if(void 0!==i.edgesLimit&&t+1>i.edgesLimit)return void P(E,e,r,n);if(o.push(e),Array.isArray(e))for(a=0;a<e.length;a++)S(e[a],a,a,o,e,s,i);else{var d={},c=Object.keys(e).sort(M);for(a=0;a<c.length;a++){var u=c[a];S(e[u],u,a,o,e,s,i),d[u]=e[u]}if(void 0===n)return d;w.push([n,r,e]),n[r]=d}o.pop()}}function N(e){return e=void 0!==e?e:function(e,r){return r},function(r,t){if(_.length>0)for(var o=0;o<_.length;o++){var n=_[o];if(n[1]===r&&n[0]===t){t=n[2],_.splice(o,1);break}}return e.call(this,r,t)}}Object.defineProperty(v,"__esModule",{value:!0}),v.EthereumProviderError=v.EthereumRpcError=void 0;const A=y;class I extends Error{constructor(e,r,t){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!r||"string"!=typeof r)throw new Error('"message" must be a nonempty string.');super(r),this.code=e,void 0!==t&&(this.data=t)}serialize(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return A.default(this.serialize(),q,2)}}v.EthereumRpcError=I;function q(e,r){if("[Circular]"!==r)return r}v.EthereumProviderError=class extends I{constructor(e,r,t){if(!function(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,r,t)}};var J={},x={};Object.defineProperty(x,"__esModule",{value:!0}),x.errorValues=x.errorCodes=void 0,x.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},x.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const r=x,t=v,o=r.errorCodes.rpc.internal,n="Unspecified error message. This is a bug, please report it.",s={code:o,message:i(o)};function i(t,o=n){if(Number.isInteger(t)){const o=t.toString();if(u(r.errorValues,o))return r.errorValues[o].message;if(d(t))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return o}function a(e){if(!Number.isInteger(e))return!1;const t=e.toString();return!!r.errorValues[t]||!!d(e)}function d(e){return e>=-32099&&e<=-32e3}function c(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function u(e,r){return Object.prototype.hasOwnProperty.call(e,r)}e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",e.getMessageFromCode=i,e.isValidCode=a,e.serializeError=function(e,{fallbackError:r=s,shouldIncludeStack:o=!1}={}){var n,d;if(!r||!Number.isInteger(r.code)||"string"!=typeof r.message)throw new Error("Must provide fallback error with integer number code and string message.");if(e instanceof t.EthereumRpcError)return e.serialize();const l={};if(e&&"object"==typeof e&&!Array.isArray(e)&&u(e,"code")&&a(e.code)){const r=e;l.code=r.code,r.message&&"string"==typeof r.message?(l.message=r.message,u(r,"data")&&(l.data=r.data)):(l.message=i(l.code),l.data={originalError:c(e)})}else{l.code=r.code;const t=null===(n=e)||void 0===n?void 0:n.message;l.message=t&&"string"==typeof t?t:r.message,l.data={originalError:c(e)}}const f=null===(d=e)||void 0===d?void 0:d.stack;return o&&e&&f&&"string"==typeof f&&(l.stack=f),l}}(J);var F={};Object.defineProperty(F,"__esModule",{value:!0}),F.ethErrors=void 0;const z=v,k=J,G=x;function T(e,r){const[t,o]=U(r);return new z.EthereumRpcError(e,t||k.getMessageFromCode(e),o)}function L(e,r){const[t,o]=U(r);return new z.EthereumProviderError(e,t||k.getMessageFromCode(e),o)}function U(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){const{message:r,data:t}=e;if(r&&"string"!=typeof r)throw new Error("Must specify string message.");return[r||void 0,t]}}return[]}F.ethErrors={rpc:{parse:e=>T(G.errorCodes.rpc.parse,e),invalidRequest:e=>T(G.errorCodes.rpc.invalidRequest,e),invalidParams:e=>T(G.errorCodes.rpc.invalidParams,e),methodNotFound:e=>T(G.errorCodes.rpc.methodNotFound,e),internal:e=>T(G.errorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:r}=e;if(!Number.isInteger(r)||r>-32005||r<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return T(r,e)},invalidInput:e=>T(G.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>T(G.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>T(G.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>T(G.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>T(G.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>T(G.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>L(G.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>L(G.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>L(G.errorCodes.provider.unsupportedMethod,e),disconnected:e=>L(G.errorCodes.provider.disconnected,e),chainDisconnected:e=>L(G.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:r,message:t,data:o}=e;if(!t||"string"!=typeof t)throw new Error('"message" must be a nonempty string');return new z.EthereumProviderError(r,t,o)}}},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;const r=v;Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return r.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return r.EthereumProviderError}});const t=J;Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return t.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return t.getMessageFromCode}});const o=F;Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return o.ethErrors}});const n=x;Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return n.errorCodes}})}(g);var V=e.commonjsGlobal&&e.commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(l,"__esModule",{value:!0}),l.JsonRpcEngine=void 0;const H=V(f),$=g;class D extends H.default{constructor(){super(),this._middleware=[]}push(e){this._middleware.push(e)}handle(e,r){if(r&&"function"!=typeof r)throw new Error('"callback" must be a function if provided.');return Array.isArray(e)?r?this._handleBatch(e,r):this._handleBatch(e):r?this._handle(e,r):this._promiseHandle(e)}asMiddleware(){return async(e,r,t,o)=>{try{const[n,s,i]=await D._runAllMiddleware(e,r,this._middleware);return s?(await D._runReturnHandlers(i),o(n)):t((async e=>{try{await D._runReturnHandlers(i)}catch(r){return e(r)}return e()}))}catch(e){return o(e)}}}async _handleBatch(e,r){try{const t=await Promise.all(e.map(this._promiseHandle.bind(this)));return r?r(null,t):t}catch(e){if(r)return r(e);throw e}}_promiseHandle(e){return new Promise((r=>{this._handle(e,((e,t)=>{r(t)}))}))}async _handle(e,r){if(!e||Array.isArray(e)||"object"!=typeof e){const t=new $.EthereumRpcError($.errorCodes.rpc.invalidRequest,"Requests must be plain objects. Received: "+typeof e,{request:e});return r(t,{id:void 0,jsonrpc:"2.0",error:t})}if("string"!=typeof e.method){const t=new $.EthereumRpcError($.errorCodes.rpc.invalidRequest,"Must specify a string method. Received: "+typeof e.method,{request:e});return r(t,{id:e.id,jsonrpc:"2.0",error:t})}const t=Object.assign({},e),o={id:t.id,jsonrpc:t.jsonrpc};let n=null;try{await this._processRequest(t,o)}catch(e){n=e}return n&&(delete o.result,o.error||(o.error=$.serializeError(n))),r(n,o)}async _processRequest(e,r){const[t,o,n]=await D._runAllMiddleware(e,r,this._middleware);if(D._checkForCompletion(e,r,o),await D._runReturnHandlers(n),t)throw t}static async _runAllMiddleware(e,r,t){const o=[];let n=null,s=!1;for(const i of t)if([n,s]=await D._runMiddleware(e,r,i,o),s)break;return[n,s,o.reverse()]}static _runMiddleware(e,r,t,o){return new Promise((n=>{const s=e=>{const t=e||r.error;t&&(r.error=$.serializeError(t)),n([t,!0])},i=t=>{r.error?s(r.error):(t&&("function"!=typeof t&&s(new $.EthereumRpcError($.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof t}" for request:\n${B(e)}`,{request:e})),o.push(t)),n([null,!1]))};try{t(e,r,i,s)}catch(e){s(e)}}))}static async _runReturnHandlers(e){for(const r of e)await new Promise(((e,t)=>{r((r=>r?t(r):e()))}))}static _checkForCompletion(e,r,t){if(!("result"in r)&&!("error"in r))throw new $.EthereumRpcError($.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request:\n${B(e)}`,{request:e});if(!t)throw new $.EthereumRpcError($.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request:\n${B(e)}`,{request:e})}}function B(e){return JSON.stringify(e,null,2)}l.JsonRpcEngine=D;var X={};Object.defineProperty(X,"__esModule",{value:!0}),X.mergeMiddleware=void 0;const K=l;X.mergeMiddleware=function(e){const r=new K.JsonRpcEngine;return e.forEach((e=>r.push(e))),r.asMiddleware()},function(r){var t=e.commonjsGlobal&&e.commonjsGlobal.__createBinding||(Object.create?function(e,r,t,o){void 0===o&&(o=t),Object.defineProperty(e,o,{enumerable:!0,get:function(){return r[t]}})}:function(e,r,t,o){void 0===o&&(o=t),e[o]=r[t]}),o=e.commonjsGlobal&&e.commonjsGlobal.__exportStar||function(e,r){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(r,o)||t(r,e,o)};Object.defineProperty(r,"__esModule",{value:!0}),o(n,r),o(c,r),o(u,r),o(s,r),o(l,r),o(X,r)}(o);const Q=(e,r)=>function(){const t=r.promiseModule,o=new Array(arguments.length);for(let e=0;e<arguments.length;e++)o[e]=arguments[e];return new t(((t,n)=>{r.errorFirst?o.push((function(e,o){if(r.multiArgs){const r=new Array(arguments.length-1);for(let e=1;e<arguments.length;e++)r[e-1]=arguments[e];e?(r.unshift(e),n(r)):t(r)}else e?n(e):t(o)})):o.push((function(e){if(r.multiArgs){const e=new Array(arguments.length-1);for(let r=0;r<arguments.length;r++)e[r]=arguments[r];t(e)}else t(e)})),e.apply(this,o)}))};exports.dist=o,exports.fastSafeStringify=y,exports.pify=(e,r)=>{r=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},r);const t=e=>{const t=r=>"string"==typeof r?e===r:r.test(e);return r.include?r.include.some(t):!r.exclude.some(t)};let o;o="function"==typeof e?function(){return r.excludeMain?e.apply(this,arguments):Q(e,r).apply(this,arguments)}:Object.create(Object.getPrototypeOf(e));for(const n in e){const s=e[n];o[n]="function"==typeof s&&t(n)?Q(s,r):s}return o},exports.safeEventEmitter=f;
@@ -1 +0,0 @@
1
- "use strict";var e=require("@ethersproject/providers"),t=require("@ethersproject/constants"),n=require("@ethersproject/contracts"),o=require("@ethersproject/address"),r=require("zustand");function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)};function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function s(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function l(e){try{s(o.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((o=o.apply(e,t||[])).next())}))}function c(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,o&&(r=2&l[0]?o.return:l[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,l[1])).done)return r;switch(o=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,o=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){a.label=l[1];break}if(6===l[0]&&a.label<r[1]){a.label=r[1],r=l;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(l);break}r[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],o=0}finally{n=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}exports.__assign=function(){return exports.__assign=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},exports.__assign.apply(this,arguments)};var u=Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]};function d(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function C(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function f(e){return this instanceof f?(this.v=e,this):new f(e)}var h=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};var D,v,w=Object.freeze({__proto__:null,__extends:l,get __assign(){return exports.__assign},__rest:function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n},__decorate:function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__param:function(e,t){return function(n,o){t(n,o,e)}},__esDecorate:function(e,t,n,o,r,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var l,s=o.kind,c="getter"===s?"get":"setter"===s?"set":"value",u=!t&&e?o.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,o.name):{}),p=!1,C=n.length-1;C>=0;C--){var f={};for(var h in o)f[h]="access"===h?{}:o[h];for(var h in o.access)f.access[h]=o.access[h];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var D=(0,n[C])("accessor"===s?{get:d.get,set:d.set}:d[c],f);if("accessor"===s){if(void 0===D)continue;if(null===D||"object"!=typeof D)throw new TypeError("Object expected");(l=a(D.get))&&(d.get=l),(l=a(D.set))&&(d.set=l),(l=a(D.init))&&r.push(l)}else(l=a(D))&&("field"===s?r.push(l):d[c]=l)}u&&Object.defineProperty(u,o.name,d),p=!0},__runInitializers:function(e,t,n){for(var o=arguments.length>2,r=0;r<t.length;r++)n=o?t[r].call(e,n):t[r].call(e);return o?n:void 0},__propKey:function(e){return"symbol"==typeof e?e:"".concat(e)},__setFunctionName:function(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:s,__generator:c,__createBinding:u,__exportStar:function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||u(t,e,n)},__values:d,__read:p,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e},__spreadArrays:function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,r++)o[r]=i[a];return o},__spreadArray:C,__await:f,__asyncGenerator:function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(e){r[e]&&(o[e]=function(t){return new Promise((function(n,o){i.push([e,t,n,o])>1||l(e,t)}))})}function l(e,t){try{(n=r[e](t)).value instanceof f?Promise.resolve(n.value.v).then(s,c):u(i[0][2],n)}catch(e){u(i[0][3],e)}var n}function s(e){l("next",e)}function c(e){l("throw",e)}function u(e,t){e(t),i.shift(),i.length&&l(i[0][0],i[0][1])}},__asyncDelegator:function(e){var t,n;return t={},o("next"),o("throw",(function(e){throw e})),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,r){t[o]=e[o]?function(t){return(n=!n)?{value:f(e[o](t)),done:!1}:r?r(t):t}:r}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=d(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise((function(o,r){(function(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)})(o,r,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&u(t,e,n);return h(t,e),t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function(e,t,n,o){if("a"===n&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?o:"a"===n?o.call(e):o?o.value:t.get(e)},__classPrivateFieldSet:function(e,t,n,o,r){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?r.call(e,n):r?r.value=n:t.set(e,n),n},__classPrivateFieldIn:function(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}});!function(e){e[e.MAINNET=1]="MAINNET",e[e.GOERLI=5]="GOERLI",e[e.BSC=56]="BSC",e[e.HECO=128]="HECO",e[e.POLYGON=137]="POLYGON",e[e.ARBITRUM_ONE=42161]="ARBITRUM_ONE",e[e.ARBITRUM_RINKEBY=421611]="ARBITRUM_RINKEBY",e[e.AURORA=1313161554]="AURORA",e[e.MOONRIVER=1285]="MOONRIVER",e[e.OKCHAIN=66]="OKCHAIN",e[e.OPTIMISM=10]="OPTIMISM",e[e.BOBA=288]="BOBA",e[e.AVALANCHE=43114]="AVALANCHE",e[e.CRONOS=25]="CRONOS"}(D||(D={})),exports.WalletType=void 0,(v=exports.WalletType||(exports.WalletType={})).injected="injected",v.BinanceChain="custom-bsc-injected",v.WalletConnect="walletconnect",v.Portis="portis",v.Gnosis="custom-gnosis",v.WalletLink="custom-walletlink",v.LedgerUSB="custom-ledger-usb",v.Ledger="custom-ledger",v.openBlock="custom-open-block",v.openBlockIframe="custom-open-block-iframe",v.Nabox="custom-nabox",v.Bitkeep="custom-bitkeep",v.OneKey="custom-onekey",v.OKX="custom-okx",v.uAuth="custom-uauth",v.kuCoinWallet="custom-kucoin-wallet",v.frontier="custom-frontier";var g="data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%2216%22%20fill%3D%22url%28%23paint0_linear_3075_80236%29%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M16%2025C20.9706%2025%2025%2020.9706%2025%2016C25%2011.0294%2020.9706%207%2016%207C11.0294%207%207%2011.0294%207%2016C7%2020.9706%2011.0294%2025%2016%2025ZM14%2013C13.4477%2013%2013%2013.4477%2013%2014V18C13%2018.5523%2013.4477%2019%2014%2019H18C18.5523%2019%2019%2018.5523%2019%2018V14C19%2013.4477%2018.5523%2013%2018%2013H14Z%22%20fill%3D%22white%22%2F%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_3075_80236%22%20x1%3D%2216%22%20y1%3D%220%22%20x2%3D%2216%22%20y2%3D%2232%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23345FF8%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%231D43DC%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E";function m(e){return s(this,void 0,void 0,(function(){return c(this,(function(t){switch(t.label){case 0:return[4,Promise.resolve().then((function(){return i(require("@ethersproject/providers"))}))];case 1:return[2,new(0,t.sent().Web3Provider)(e)]}}))}))}function E(e,t){return void 0===e&&(e=null),s(this,void 0,void 0,(function(){var n;return c(this,(function(o){switch(o.label){case 0:return(n=e||window.ethereum)?[4,n.request({method:"eth_requestAccounts"})]:[3,2];case 1:return o.sent(),[3,3];case 2:if(window.web3)n=window.web3.currentProvider;else{if(!window.celo)throw new Error("No Web3 Provider found");n=window.celo}o.label=3;case 3:return n.on("connect",t.connect),n.on("disconnect",t.disconnect),n.on("accountsChanged",t.accountsChanged),n.on("chainChanged",t.chainChanged),n.on("message",t.message),[2,m(n)]}}))}))}function F(e){var t=e.addChainParameters,n=e.provider,o=void 0===n?window.ethereum:n;return s(this,void 0,void 0,(function(){var e,n,r,i;return c(this,(function(a){switch(a.label){case 0:if(!o)return[2,{result:!1}];e=t.chainId,a.label=1;case 1:return a.trys.push([1,3,,8]),[4,o.request({method:"wallet_switchEthereumChain",params:[{chainId:e}]})];case 2:return a.sent(),[2,{result:!0}];case 3:if(n=a.sent(),4902!==(r=n.code)&&-32603!==r)return[3,7];a.label=4;case 4:return a.trys.push([4,6,,7]),[4,o.request({method:"wallet_addEthereumChain",params:[t]})];case 5:return a.sent(),[2,{result:!0}];case 6:return i=a.sent(),console.error("[failed to add ".concat(e,"]: "),t,i),[3,7];case 7:return console.error("[failed to switch ".concat(e,"]: "),t,n),[3,8];case 8:return[2,{result:!1}]}}))}))}var y,b,x=function(){var e;return!!(null===(e=window.navigator)||void 0===e?void 0:e.hid)},_=function(){var e;return(null===(e=window.navigator)||void 0===e?void 0:e.userAgent)&&/(Android)/i.test(navigator.userAgent)},A=function(){var e;return/(iPhone|iPad|iPod|iOS)/i.test(null===(e=window.navigator)||void 0===e?void 0:e.userAgent)},L=function(){return _()||A()},B=function(){if("undefined"!=typeof window)return window},k=!1,M=1,O={},P=!1;null===(y=B())||void 0===y||y.addEventListener("message",(function(e){"openblock-content-integration"===e.data.from&&(k=!0,Object.values(O).map((function(e){return e()})))})),null===(b=B())||void 0===b||b.addEventListener("load",(function(){setTimeout((function(){P=!0,Object.values(O).map((function(e){return e()}))}),1e3)}),{once:!0});var T=function(){return s(void 0,void 0,void 0,(function(){return c(this,(function(e){return[2,new Promise((function(e){k?e(!0):window.parent===window||P?e(!1):(M++,O[M]=function(){e(k),delete O[M]})}))]}))}))},W=function(e,t){return s(void 0,void 0,void 0,(function(){var e;return c(this,(function(n){switch(n.label){case 0:return[4,Promise.resolve().then((function(){return require("./provider-95f3425c.cjs")}))];case 1:return(e=n.sent().default()).on("connect",t.connect),e.on("disconnect",t.disconnect),e.on("accountsChanged",t.accountsChanged),e.on("chainChanged",t.chainChanged),e.on("message",t.message),[4,e.request({method:"eth_requestAccounts"})];case 2:return n.sent(),[2,m(e)]}}))}))};function H(){return Promise.resolve().then((function(){return require("./index-0eeb697b.cjs")}))}function V(){return Promise.resolve().then((function(){return require("./index-a9081fe4.cjs")}))}function S(){return Promise.resolve().then((function(){return require("./uAuth-692ecdf6.cjs")}))}function I(e,t){return s(this,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[4,Promise.resolve().then((function(){return require("./portis-8c790653.cjs")}))];case 1:return[2,n.sent().default(e,t)]}}))}))}function N(e,t){return s(this,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[4,Promise.resolve().then((function(){return require("./walletLink-b99948b8.cjs")}))];case 1:return[2,n.sent().default(e,t)]}}))}))}function j(e,t){return s(this,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[4,Promise.resolve().then((function(){return require("./walletConnect-14d9d490.cjs")}))];case 1:return[2,n.sent().default(e,t)]}}))}))}var Z={type:exports.WalletType.injected,showName:"Coinbase Wallet",logo:g,supportMobile:!1,supportExtension:!1,switchChain:F,disabled:function(){return!(L()&&window.ethereum&&(window.ethereum.isWalletLink||window.ethereum.isToshi))},mobileAndroidDeepLink:"https://go.cb-w.com/dapp?cburl=$formattedAPPUrl",mobileIOSDeepLink:"cbwallet://dapp?url=$formattedAPPUrl"},z={type:exports.WalletType.injected,showName:"TokenPocket",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url%28%23clip0_4319_127796%29%22%3E%3Cmask%20id%3D%22mask0_4319_127796%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2232%22%20height%3D%2232%22%3E%3Cpath%20d%3D%22M21%200H11C4.92487%200%200%204.92487%200%2011V21C0%2027.0751%204.92487%2032%2011%2032H21C27.0751%2032%2032%2027.0751%2032%2021V11C32%204.92487%2027.0751%200%2021%200Z%22%20fill%3D%22%23C4C4C4%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_4319_127796%29%22%3E%3Cpath%20d%3D%22M32.5475%200H-0.84375V32H32.5475V0Z%22%20fill%3D%22%232980FE%22%2F%3E%3Cpath%20d%3D%22M12.7124%2013.7077H12.7165C12.7124%2013.6831%2012.7124%2013.6544%2012.7124%2013.6299V13.7077Z%22%20fill%3D%22%2329AEFF%22%2F%3E%3Cpath%20d%3D%22M20.8626%2014.4854H16.3515V22.6273C16.3515%2023.0121%2016.6626%2023.3232%2017.0474%2023.3232H20.1667C20.5515%2023.3232%2020.8626%2023.0121%2020.8626%2022.6273V14.4854Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M14.1738%208.65625H14.0224H5.94591C5.56109%208.65625%205.25%208.96734%205.25%209.35216V12.1767C5.25%2012.5615%205.56109%2012.8726%205.94591%2012.8726H7.84119H8.59441V13.7076V22.6478C8.59441%2023.0327%208.9055%2023.3438%209.29028%2023.3438H12.254C12.6388%2023.3438%2012.9499%2023.0327%2012.9499%2022.6478V13.7076V13.6299V12.8726H13.7031H14.0101H14.1616C15.3241%2012.8726%2016.2697%2011.927%2016.2697%2010.7644C16.282%209.60184%2015.3364%208.65625%2014.1738%208.65625Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M20.8667%2014.4854V20.1671C21.0223%2020.204%2021.1819%2020.2326%2021.3457%2020.2572C21.5749%2020.2899%2021.8123%2020.3104%2022.0497%2020.3145C22.062%2020.3145%2022.0743%2020.3145%2022.0907%2020.3145V15.7953C21.4071%2015.7502%2020.8667%2015.1812%2020.8667%2014.4854Z%22%20fill%3D%22url%28%23paint0_linear_4319_127796%29%22%2F%3E%3Cpath%20d%3D%22M22.1807%208.65625C18.9632%208.65625%2016.3515%2011.2679%2016.3515%2014.4854C16.3515%2017.2526%2018.2796%2019.5695%2020.8667%2020.1672V14.4854C20.8667%2013.7608%2021.4561%2013.1714%2022.1807%2013.1714C22.9052%2013.1714%2023.4947%2013.7608%2023.4947%2014.4854C23.4947%2015.0953%2023.0813%2015.607%2022.5163%2015.7544C22.4099%2015.783%2022.2953%2015.7994%2022.1807%2015.7994V20.3146C22.2953%2020.3146%2022.4058%2020.3105%2022.5163%2020.3064C25.5783%2020.1303%2028.0098%2017.5924%2028.0098%2014.4854C28.0139%2011.2679%2025.4023%208.65625%2022.1807%208.65625Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M22.1806%2020.3147V15.7995C22.1479%2015.7995%2022.1193%2015.7995%2022.0865%2015.7954V20.3147C22.1193%2020.3147%2022.152%2020.3147%2022.1806%2020.3147Z%22%20fill%3D%22white%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_4319_127796%22%20x1%3D%2222.1826%22%20y1%3D%2217.4008%22%20x2%3D%2220.8673%22%20y2%3D%2217.4008%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22white%22%2F%3E%3Cstop%20offset%3D%220.9667%22%20stop-color%3D%22white%22%20stop-opacity%3D%220.3233%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22white%22%20stop-opacity%3D%220.3%22%2F%3E%3C%2FlinearGradient%3E%3CclipPath%20id%3D%22clip0_4319_127796%22%3E%3Crect%20width%3D%2232%22%20height%3D%2232%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E",link:"https://www.tokenpocket.pro/",supportMobile:!0,supportExtension:!1,switchChain:F,disabled:function(){var e;return!(null===(e=window.ethereum)||void 0===e?void 0:e.isTokenPocket)},mobileDeepLink:"tpdapp://open?params=".concat(encodeURI('{\n "url": "$APP_URL"\n }'))},R={type:exports.WalletType.injected,showName:"TrustWallet",logo:"data:image/svg+xml,%3Csvg%20enable-background%3D%22new%200%200%20158.8%20184%22%20viewBox%3D%220%200%20158.8%20184%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20transform%3D%22translate%28354%20351%29%22%3E%3Cpath%20d%3D%22m-274.6-343.7c29.3%2022.7%2062.9%2021.3%2072.5%2021.3-2.1%20129.1-18.1%20111.9-72.5%20148.1-54.4-36.2-70.3-19-72.4-148.1%209.5%200%2043%201.4%2072.4-21.3z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22m-274.6-343.7%204.2-5.5c-2.5-1.9-6-1.9-8.5%200zm72.5%2021.3%206.9.1c0-1.9-.7-3.6-2-5-1.3-1.3-3.1-2.1-4.9-2.1zm-72.5%20148.1-3.8%205.8c2.3%201.5%205.3%201.5%207.7%200zm-72.4-148.1v-6.9c-1.9%200-3.6.7-4.9%202.1-1.3%201.3-2%203.1-2%205zm68.1-15.8c31.4%2024.3%2067.3%2022.7%2076.7%2022.7v-13.8c-9.8%200-41.1%201.2-68.3-19.9zm69.8%2015.7c-.5%2032.1-1.9%2054.8-4.5%2071.6-2.6%2016.6-6.2%2026.6-11%2033.6-4.8%207.3-10.8%2011.6-19.7%2016.9-9%205.4-20.3%2011.2-34.3%2020.4l7.7%2011.5c13.3-8.8%2024.3-14.5%2033.7-20.1%209.5-5.7%2017.8-11.9%2024.1-21%206.3-9.4%2010.5-21.6%2013.2-39.2%202.7-17.4%204.1-41%204.6-73.5zm-61.7%20142.4c-13.9-9.3-25.3-15.1-34.2-20.4s-14.9-9.6-19.7-16.9c-4.7-7-8.4-16.9-10.9-33.6-2.6-16.8-3.9-39.4-4.5-71.6l-13.9.3c.5%2032.4%202%2056%204.6%2073.5%202.7%2017.6%206.8%2029.8%2013.1%2039.2%206.3%209.1%2014.6%2015.3%2024%2021%209.4%205.6%2020.4%2011.2%2033.7%2020.1zm-76.2-135.4c9.3%200%2045.3%201.6%2076.6-22.7l-8.4-11c-27.2%2021.1-58.5%2019.9-68.2%2019.9z%22%20fill%3D%22%233375bb%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",link:"https://trustwallet.com/",supportMobile:!0,supportExtension:!1,switchChain:F,disabled:function(){var e;return!(null===(e=window.ethereum)||void 0===e?void 0:e.isTrust)},mobileDeepLink:"https://link.trustwallet.com/open_url?url=$APP_URL"},U={type:exports.WalletType.injected,showName:"ImToken",logo:"data:image/svg+xml,%3Csvg%20enable-background%3D%22new%200%200%2064%2064%22%20viewBox%3D%220%200%2064%2064%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3ClinearGradient%20id%3D%22a%22%20gradientTransform%3D%22matrix%2823.9866%200%200%20-16.946%206597.1353%205695.4907%29%22%20gradientUnits%3D%22userSpaceOnUse%22%20x1%3D%22-272.5272%22%20x2%3D%22-275.1207%22%20y1%3D%22335.5532%22%20y2%3D%22332.9597%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%2311c4d1%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%230062ad%22%2F%3E%3C%2FlinearGradient%3E%3Cpath%20d%3D%22m63.8%2010.9c2.1%2028.6-16.2%2042.1-32.7%2043.6-15.3%201.3-29.7-8.1-31-22.5-1-11.9%206.3-17%2012.1-17.5%206-.5%2011%203.6%2011.4%208.6.4%204.8-2.6%207-4.6%207.2-1.6.1-3.7-.9-3.9-3-.2-1.8.5-2.1.4-4-.3-3.5-3.3-3.9-5-3.7-2%20.2-5.7%202.5-5.1%208.4.5%205.9%206.2%2010.6%2013.6%209.9%208-.7%2013.6-6.9%2014-15.7%200-.5.1-.9.3-1.3.1-.2.2-.4.3-.5.2-.3.4-.5.7-.8.2-.2.5-.5.7-.8%203.5-3.3%2016.1-11.1%2028-8.6.4-.2.8.2.8.7%22%20fill%3D%22url%28%23a%29%22%2F%3E%3C%2Fsvg%3E",link:"https://token.im/",supportMobile:!0,supportExtension:!1,switchChain:F,disabled:function(){var e;return!(null===(e=window.ethereum)||void 0===e?void 0:e.isImToken)},mobileDeepLink:"imtokenv2://navigate/DappView?url=$formattedAPPUrl"},G={type:exports.WalletType.injected,showName:"Math Wallet",logo:"data:image/svg+xml,%3Csvg%20width%3D%2272%22%20height%3D%2272%22%20viewBox%3D%220%200%2072%2072%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ccircle%20cx%3D%2236%22%20cy%3D%2236%22%20r%3D%2236%22%20fill%3D%22black%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M14.25%2046.4721C15.1398%2046.4721%2015.8611%2047.1934%2015.8611%2048.0832C15.8611%2048.973%2015.1398%2049.6943%2014.25%2049.6943C13.3602%2049.6943%2012.6389%2048.973%2012.6389%2048.0832C12.6389%2047.1934%2013.3602%2046.4721%2014.25%2046.4721ZM36%2046.4721C36.8898%2046.4721%2037.6111%2047.1934%2037.6111%2048.0832C37.6111%2048.973%2036.8898%2049.6943%2036%2049.6943C35.1102%2049.6943%2034.3889%2048.973%2034.3889%2048.0832C34.3889%2047.1934%2035.1102%2046.4721%2036%2046.4721ZM57.75%2046.4721C58.6398%2046.4721%2059.3611%2047.1934%2059.3611%2048.0832C59.3611%2048.973%2058.6398%2049.6943%2057.75%2049.6943C56.8602%2049.6943%2056.1389%2048.973%2056.1389%2048.0832C56.1389%2047.1934%2056.8602%2046.4721%2057.75%2046.4721ZM19.0833%2040.0276C20.418%2040.0276%2021.5%2041.1096%2021.5%2042.4443C21.5%2043.779%2020.418%2044.861%2019.0833%2044.861C17.7486%2044.861%2016.6667%2043.779%2016.6667%2042.4443C16.6667%2041.1096%2017.7486%2040.0276%2019.0833%2040.0276ZM30.3611%2040.0276C31.6958%2040.0276%2032.7778%2041.1096%2032.7778%2042.4443C32.7778%2043.779%2031.6958%2044.861%2030.3611%2044.861C29.0264%2044.861%2027.9444%2043.779%2027.9444%2042.4443C27.9444%2041.1096%2029.0264%2040.0276%2030.3611%2040.0276ZM41.6389%2040.0276C42.9736%2040.0276%2044.0556%2041.1096%2044.0556%2042.4443C44.0556%2043.779%2042.9736%2044.861%2041.6389%2044.861C40.3042%2044.861%2039.2222%2043.779%2039.2222%2042.4443C39.2222%2041.1096%2040.3042%2040.0276%2041.6389%2040.0276ZM52.9167%2040.0276C54.2514%2040.0276%2055.3333%2041.1096%2055.3333%2042.4443C55.3333%2043.779%2054.2514%2044.861%2052.9167%2044.861C51.582%2044.861%2050.5%2043.779%2050.5%2042.4443C50.5%2041.1096%2051.582%2040.0276%2052.9167%2040.0276ZM8.61111%2040.8332C9.5009%2040.8332%2010.2222%2041.5545%2010.2222%2042.4443C10.2222%2043.3341%209.5009%2044.0554%208.61111%2044.0554C7.72132%2044.0554%207%2043.3341%207%2042.4443C7%2041.5545%207.72132%2040.8332%208.61111%2040.8332ZM63.3889%2040.8332C64.2787%2040.8332%2065%2041.5545%2065%2042.4443C65%2043.3341%2064.2787%2044.0554%2063.3889%2044.0554C62.4991%2044.0554%2061.7778%2043.3341%2061.7778%2042.4443C61.7778%2041.5545%2062.4991%2040.8332%2063.3889%2040.8332ZM24.7222%2033.5832C26.5018%2033.5832%2027.9444%2035.0258%2027.9444%2036.8054C27.9444%2038.585%2026.5018%2040.0276%2024.7222%2040.0276C22.9426%2040.0276%2021.5%2038.585%2021.5%2036.8054C21.5%2035.0258%2022.9426%2033.5832%2024.7222%2033.5832ZM47.2778%2033.5832C49.0574%2033.5832%2050.5%2035.0258%2050.5%2036.8054C50.5%2038.585%2049.0574%2040.0276%2047.2778%2040.0276C45.4982%2040.0276%2044.0556%2038.585%2044.0556%2036.8054C44.0556%2035.0258%2045.4982%2033.5832%2047.2778%2033.5832ZM14.25%2034.3888C15.5847%2034.3888%2016.6667%2035.4707%2016.6667%2036.8054C16.6667%2038.1401%2015.5847%2039.2221%2014.25%2039.2221C12.9153%2039.2221%2011.8333%2038.1401%2011.8333%2036.8054C11.8333%2035.4707%2012.9153%2034.3888%2014.25%2034.3888ZM36%2034.3888C37.3347%2034.3888%2038.4167%2035.4707%2038.4167%2036.8054C38.4167%2038.1401%2037.3347%2039.2221%2036%2039.2221C34.6653%2039.2221%2033.5833%2038.1401%2033.5833%2036.8054C33.5833%2035.4707%2034.6653%2034.3888%2036%2034.3888ZM57.75%2034.3888C59.0847%2034.3888%2060.1667%2035.4707%2060.1667%2036.8054C60.1667%2038.1401%2059.0847%2039.2221%2057.75%2039.2221C56.4153%2039.2221%2055.3333%2038.1401%2055.3333%2036.8054C55.3333%2035.4707%2056.4153%2034.3888%2057.75%2034.3888ZM19.0833%2027.9443C20.8629%2027.9443%2022.3056%2029.3869%2022.3056%2031.1665C22.3056%2032.9461%2020.8629%2034.3888%2019.0833%2034.3888C17.3037%2034.3888%2015.8611%2032.9461%2015.8611%2031.1665C15.8611%2029.3869%2017.3037%2027.9443%2019.0833%2027.9443ZM30.3611%2027.9443C32.1407%2027.9443%2033.5833%2029.3869%2033.5833%2031.1665C33.5833%2032.9461%2032.1407%2034.3888%2030.3611%2034.3888C28.5815%2034.3888%2027.1389%2032.9461%2027.1389%2031.1665C27.1389%2029.3869%2028.5815%2027.9443%2030.3611%2027.9443ZM41.6389%2027.9443C43.4185%2027.9443%2044.8611%2029.3869%2044.8611%2031.1665C44.8611%2032.9461%2043.4185%2034.3888%2041.6389%2034.3888C39.8593%2034.3888%2038.4167%2032.9461%2038.4167%2031.1665C38.4167%2029.3869%2039.8593%2027.9443%2041.6389%2027.9443ZM52.9167%2027.9443C54.6963%2027.9443%2056.1389%2029.3869%2056.1389%2031.1665C56.1389%2032.9461%2054.6963%2034.3888%2052.9167%2034.3888C51.1371%2034.3888%2049.6944%2032.9461%2049.6944%2031.1665C49.6944%2029.3869%2051.1371%2027.9443%2052.9167%2027.9443ZM24.7222%2022.3054C26.5018%2022.3054%2027.9444%2023.7481%2027.9444%2025.5276C27.9444%2027.3072%2026.5018%2028.7499%2024.7222%2028.7499C22.9426%2028.7499%2021.5%2027.3072%2021.5%2025.5276C21.5%2023.7481%2022.9426%2022.3054%2024.7222%2022.3054ZM47.2778%2022.3054C49.0574%2022.3054%2050.5%2023.7481%2050.5%2025.5276C50.5%2027.3072%2049.0574%2028.7499%2047.2778%2028.7499C45.4982%2028.7499%2044.0556%2027.3072%2044.0556%2025.5276C44.0556%2023.7481%2045.4982%2022.3054%2047.2778%2022.3054Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E",link:"https://mathwallet.org",supportMobile:!0,supportExtension:!0,switchChain:F,disabled:function(){var e;return!(null===(e=window.ethereum)||void 0===e?void 0:e.isMathWallet)}},q={type:exports.WalletType.injected,showName:"GameStop Wallet",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url%28%23clip0_3104_80271%29%22%3E%3Cpath%20d%3D%22M21%200H11C4.92487%200%200%204.92487%200%2011V21C0%2027.0751%204.92487%2032%2011%2032H21C27.0751%2032%2032%2027.0751%2032%2021V11C32%204.92487%2027.0751%200%2021%200Z%22%20fill%3D%22black%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M9.86889%2012.6868V21.3057C9.86889%2021.9352%2010.347%2022.4111%2010.968%2022.4111H21.036C21.657%2022.4111%2022.1351%2021.9352%2022.1351%2021.3057V14.077H23.724V21.3057C23.724%2022.8077%2022.5395%2024%2021.036%2024H10.968C9.46452%2024%208.28003%2022.8077%208.28003%2021.3057V12.6868H9.86889Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M8.28003%2010.6943C8.28003%209.19227%209.46452%208%2010.968%208H21.3686V11.151H21.544C22.7704%2011.151%2023.724%2012.1116%2023.724%2013.3356V14.4013C23.724%2015.6253%2022.7704%2016.5859%2021.544%2016.5859H10.968C9.46452%2016.5859%208.28003%2015.3936%208.28003%2013.8916V10.6943ZM19.7797%2011.151V9.58886H10.968C10.347%209.58886%209.86889%2010.0648%209.86889%2010.6943V13.8916C9.86889%2014.5212%2010.347%2014.9971%2010.968%2014.9971H15.2076V11.151H19.7797ZM16.7964%2014.9971H21.544C21.8879%2014.9971%2022.1351%2014.7528%2022.1351%2014.4013V13.3356C22.1351%2012.9841%2021.8879%2012.7399%2021.544%2012.7399H16.7964V14.9971Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M14.964%2012.8807H17.0825V14.9992H14.964V12.8807Z%22%20fill%3D%22url%28%23paint0_linear_3104_80271%29%22%2F%3E%3Cpath%20d%3D%22M19.2349%209.30048H21.5441V11.154H19.2349V9.30048Z%22%20fill%3D%22url%28%23paint1_linear_3104_80271%29%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_3104_80271%22%20x1%3D%2216.0232%22%20y1%3D%2216.4115%22%20x2%3D%2216.0232%22%20y2%3D%2213.5869%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%2F%3E%3Cstop%20offset%3D%221%22%20stop-opacity%3D%220%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22paint1_linear_3104_80271%22%20x1%3D%2220.3894%22%20y1%3D%2212.3897%22%20x2%3D%2220.3894%22%20y2%3D%229.91831%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%2F%3E%3Cstop%20offset%3D%221%22%20stop-opacity%3D%220%22%2F%3E%3C%2FlinearGradient%3E%3CclipPath%20id%3D%22clip0_3104_80271%22%3E%3Crect%20width%3D%2232%22%20height%3D%2232%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E",disabled:function(){var e;return!(null===(e=window.ethereum)||void 0===e?void 0:e.isGamestop)},supportMobile:!1,supportExtension:!0,switchChain:F,link:"https://wallet.gamestop.com/"},K={type:exports.WalletType.injected,showName:"Brave",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url%28%23clip0_3137_121266%29%22%3E%3Cpath%20d%3D%22M29.6863%2011.3521L28.6996%208.67214L29.3858%207.13367C29.429%207.03662%2029.4417%206.92881%2029.4225%206.82436C29.4033%206.71991%2029.353%206.6237%2029.2782%206.54834L27.4123%204.66226C27.0117%204.25582%2026.504%203.97153%2025.9481%203.84249C25.3923%203.71346%2024.8112%203.74498%2024.2726%203.9334L23.75%204.11505L20.8996%201.02691L16.0644%201H16.033L11.1665%201.03812L8.31828%204.15094L7.81144%203.97152C7.26932%203.78088%206.68406%203.74882%206.12435%203.87911C5.56465%204.00941%205.05372%204.29664%204.65153%204.70712L2.752%206.62907C2.69238%206.68915%202.65234%206.76586%202.63713%206.84911C2.62192%206.93237%202.63226%207.01828%202.66678%207.09555L3.38219%208.69232L2.3999%2011.3701L3.03458%2013.7854L5.92985%2024.7924C6.2634%2026.0603%207.03075%2027.1713%208.0985%2027.9321C8.0985%2027.9321%2011.6127%2030.4102%2015.0799%2032.6619C15.3541%2032.8808%2015.6945%2033%2016.0454%2033C16.3962%2033%2016.7366%2032.8808%2017.0108%2032.6619C20.9063%2030.1097%2023.9877%2027.9231%2023.9877%2027.9231C25.0547%2027.1619%2025.8212%2026.051%2026.1542%2024.7834L29.0337%2013.7719L29.6863%2011.3521Z%22%20fill%3D%22url%28%23paint0_linear_3137_121266%29%22%2F%3E%3Cpath%20d%3D%22M16.8402%2020.8365C16.6556%2020.7538%2016.4652%2020.6849%2016.2706%2020.6301H15.9274C15.7328%2020.6849%2015.5424%2020.7538%2015.3578%2020.8365L14.4944%2021.1953C14.2208%2021.3097%2013.7812%2021.5137%2013.5188%2021.6438L11.931%2022.4713C11.8735%2022.49%2011.8229%2022.5254%2011.7857%2022.5731C11.7485%2022.6208%2011.7265%2022.6785%2011.7224%2022.7388C11.7183%2022.7991%2011.7323%2022.8593%2011.7627%2022.9115C11.7931%2022.9638%2011.8384%2023.0057%2011.8929%2023.032L13.2721%2024.0053C13.5143%2024.1758%2013.8956%2024.4763%2014.1198%2024.6781L14.5078%2025.0123C14.7321%2025.2052%2015.0976%2025.5259%2015.3197%2025.7232L15.6875%2026.0484C15.8011%2026.1431%2015.9443%2026.1949%2016.0923%2026.1949C16.2402%2026.1949%2016.3834%2026.1431%2016.4971%2026.0484L16.8828%2025.712L17.6946%2025.0033L18.0849%2024.6624C18.3091%2024.4673%2018.6881%2024.1668%2018.9303%2023.9896L20.3096%2023.0029C20.3641%2022.9767%2020.4095%2022.9346%2020.4398%2022.8822C20.47%2022.8298%2020.4838%2022.7694%2020.4792%2022.7091C20.4746%2022.6487%2020.4518%2022.5912%2020.414%2022.544C20.3761%2022.4967%2020.3249%2022.4621%2020.267%2022.4444L18.6814%2021.6393C18.4168%2021.5048%2017.9772%2021.3029%2017.7014%2021.1908L16.8402%2020.8365Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M26.6182%2011.9512L26.663%2011.8077C26.6657%2011.6157%2026.6537%2011.4238%2026.6271%2011.2336C26.4936%2010.8939%2026.3221%2010.5704%2026.1158%2010.2692L25.2188%208.95278C25.0528%208.70609%2024.7702%208.31587%2024.5796%208.08488L23.3775%206.58005C23.2679%206.43338%2023.1488%206.29405%2023.0209%206.16292H22.9963C22.9963%206.16292%2022.7541%206.20553%2022.4625%206.26159L20.6258%206.61593L19.8207%206.77068C19.5534%206.78324%2019.2862%206.74441%2019.0335%206.6563L17.5825%206.18758C17.2999%206.09563%2016.8334%205.96332%2016.5441%205.90052C16.2393%205.86812%2015.9318%205.86812%2015.6269%205.90052C15.3376%205.9678%2014.8711%206.09788%2014.5885%206.18983L13.1375%206.66079C12.8849%206.74889%2012.6177%206.78772%2012.3504%206.77516L11.5453%206.62266L9.70627%206.27056C9.41473%206.2145%209.17476%206.16964%209.17252%206.17189H9.14785C9.02003%206.30301%208.90091%206.44236%208.79127%206.58902L7.59144%208.09384C7.40754%208.31811%207.11824%208.71731%206.95229%208.96176L6.05522%2010.2782C5.90029%2010.5052%205.75876%2010.7411%205.63136%2010.9846C5.55451%2011.2562%205.51379%2011.5367%205.51025%2011.8189L5.55511%2011.9624C5.5767%2012.0546%205.60442%2012.1453%205.63809%2012.2338C5.82423%2012.4581%206.14268%2012.8303%206.34677%2013.0479L9.48649%2016.385C9.59072%2016.5066%209.66047%2016.654%209.68847%2016.8118C9.71647%2016.9695%209.70171%2017.1319%209.64572%2017.282L9.13215%2018.4998C9.01537%2018.8224%209.00671%2019.1743%209.10748%2019.5023L9.21064%2019.7848C9.3792%2020.2438%209.66814%2020.6489%2010.0472%2020.9577L10.5405%2021.3592C10.6687%2021.4516%2010.8183%2021.51%2010.9752%2021.5288C11.1321%2021.5477%2011.2912%2021.5263%2011.4376%2021.4668L13.1914%2020.6303C13.5133%2020.4692%2013.8145%2020.2696%2014.0884%2020.036L15.4923%2018.7689C15.5483%2018.7184%2015.5935%2018.6572%2015.6253%2018.5889C15.6571%2018.5207%2015.6749%2018.4467%2015.6777%2018.3714C15.6804%2018.2961%2015.668%2018.221%2015.6411%2018.1506C15.6143%2018.0802%2015.5736%2018.0159%2015.5215%2017.9615L12.3526%2015.8265C12.2326%2015.7414%2012.1472%2015.616%2012.1118%2015.4732C12.0764%2015.3304%2012.0934%2015.1797%2012.1597%2015.0483L13.3887%2012.7384C13.4586%2012.597%2013.4999%2012.4432%2013.5103%2012.2858C13.5207%2012.1284%2013.5%2011.9705%2013.4493%2011.8211C13.2967%2011.5362%2013.0503%2011.3128%2012.7518%2011.1887L8.89891%209.73323C8.62082%209.62783%208.63652%209.50897%208.93031%209.49102L11.1932%209.26676C11.548%209.24419%2011.9042%209.27596%2012.2494%209.36095L14.2185%209.9104C14.3583%209.95254%2014.4781%2010.0439%2014.5556%2010.1677C14.6331%2010.2914%2014.6632%2010.439%2014.6401%2010.5832L13.8664%2014.8084C13.8147%2015.0424%2013.8018%2015.2833%2013.8283%2015.5215C13.8597%2015.6225%2014.1243%2015.7458%2014.4136%2015.8176L15.6134%2016.0732C15.9619%2016.1373%2016.3191%2016.1373%2016.6675%2016.0732L17.7462%2015.8288C18.0355%2015.7637%2018.2979%2015.6269%2018.3315%2015.526C18.3574%2015.2877%2018.3437%2015.0467%2018.2912%2014.8129L17.513%2010.5877C17.4899%2010.4435%2017.52%2010.2959%2017.5975%2010.1721C17.675%2010.0484%2017.7948%209.95702%2017.9346%209.91489L19.9036%209.36319C20.2489%209.27816%2020.6051%209.2464%2020.9599%209.269L23.2228%209.47981C23.5188%209.50672%2023.5323%209.61661%2023.2564%209.72202L19.4058%2011.182C19.1073%2011.3061%2018.8609%2011.5295%2018.7083%2011.8144C18.6062%2012.1161%2018.628%2012.446%2018.7689%2012.7317L20.0001%2015.0416C20.0664%2015.1729%2020.0834%2015.3237%2020.048%2015.4665C20.0127%2015.6093%2019.9272%2015.7347%2019.8072%2015.8198L16.6406%2017.9593C16.5884%2018.0137%2016.5478%2018.078%2016.5209%2018.1484C16.4941%2018.2188%2016.4817%2018.2939%2016.4844%2018.3692C16.4871%2018.4444%2016.5049%2018.5184%2016.5368%2018.5867C16.5686%2018.655%2016.6138%2018.7162%2016.6697%2018.7667L18.0759%2020.0338C18.3499%2020.2666%2018.6511%2020.4654%2018.9729%2020.6258L20.7267%2021.4601C20.8733%2021.5193%2021.0325%2021.5403%2021.1894%2021.521C21.3463%2021.5018%2021.4958%2021.443%2021.6238%2021.3502L22.1172%2020.9465C22.4966%2020.6371%2022.7856%2020.2312%2022.9537%2019.7714L23.0568%2019.4888C23.1576%2019.1608%2023.1489%2018.809%2023.0322%2018.4863L22.5163%2017.2686C22.4604%2017.1184%2022.4456%2016.9561%2022.4736%2016.7983C22.5016%2016.6406%2022.5713%2016.4932%2022.6756%2016.3715L25.8153%2013.0299C26.0194%2012.8057%2026.3356%2012.4468%2026.5217%2012.2159C26.5597%2012.1299%2026.5919%2012.0415%2026.6182%2011.9512Z%22%20fill%3D%22white%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_3137_121266%22%20x1%3D%222.40887%22%20y1%3D%2217.0014%22%20x2%3D%2229.6774%22%20y2%3D%2217.0014%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23F1562B%22%2F%3E%3Cstop%20offset%3D%220.3%22%20stop-color%3D%22%23F1542B%22%2F%3E%3Cstop%20offset%3D%220.41%22%20stop-color%3D%22%23F04D2A%22%2F%3E%3Cstop%20offset%3D%220.49%22%20stop-color%3D%22%23EF4229%22%2F%3E%3Cstop%20offset%3D%220.5%22%20stop-color%3D%22%23EF4029%22%2F%3E%3Cstop%20offset%3D%220.56%22%20stop-color%3D%22%23E83E28%22%2F%3E%3Cstop%20offset%3D%220.67%22%20stop-color%3D%22%23E13C26%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23DF3C26%22%2F%3E%3C%2FlinearGradient%3E%3CclipPath%20id%3D%22clip0_3137_121266%22%3E%3Crect%20width%3D%2232%22%20height%3D%2232%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E",disabled:function(){var e;return!(null===(e=window.ethereum)||void 0===e?void 0:e.isBraveWallet)},supportMobile:!1,supportExtension:!0,switchChain:F,link:"https://wallet-docs.brave.com/"},$={type:exports.WalletType.injected,showName:"Huobi Wallet",logo:"data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2232px%22%20height%3D%2232px%22%20viewBox%3D%220%200%2032%2032%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3EWalletConnect%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3CradialGradient%20cx%3D%2214.2459714%25%22%20cy%3D%2282.9640779%25%22%20fx%3D%2214.2459714%25%22%20fy%3D%2282.9640779%25%22%20r%3D%2297.6569253%25%22%20id%3D%22radialGradient-1%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cstop%20stop-color%3D%22%231253FC%22%20offset%3D%220%25%22%3E%3C%2Fstop%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cstop%20stop-color%3D%22%234C7CF8%22%20offset%3D%22100%25%22%3E%3C%2Fstop%3E%20%20%20%20%20%20%20%20%3C%2FradialGradient%3E%20%20%20%20%20%20%20%20%3Cfilter%20color-interpolation-filters%3D%22auto%22%20id%3D%22filter-2%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeColorMatrix%20in%3D%22SourceGraphic%22%20type%3D%22matrix%22%20values%3D%220%200%200%200%201.000000%200%200%200%200%201.000000%200%200%200%200%201.000000%200%200%200%201.000000%200%22%3E%3C%2FfeColorMatrix%3E%20%20%20%20%20%20%20%20%3C%2Ffilter%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E6%8E%A7%E4%BB%B6%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E9%92%B1%E5%8C%85-Huobi%22%20transform%3D%22translate%28-16.000000%2C%20-16.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22WalletConnect%22%20transform%3D%22translate%2816.000000%2C%2016.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%9C%AA%E5%91%BD%E5%90%8D%22%20fill%3D%22url%28%23radialGradient-1%29%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M16%2C0%20C24.836556%2C0%2032%2C7.163444%2032%2C16%20C32%2C24.836556%2024.836556%2C32%2016%2C32%20C7.163444%2C32%200%2C24.836556%200%2C16%20C0%2C7.163444%207.163444%2C0%2016%2C0%20Z%22%20id%3D%22%E8%B7%AF%E5%BE%84%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20filter%3D%22url%28%23filter-2%29%22%20id%3D%22heco%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%288.888889%2C%205.333333%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M9.77777778%2C6.56528272%20C9.77777778%2C3.50266975%208.1802334%2C0.868073441%206.96574747%2C0.0102563438%20C6.95996869%2C0.00845797311%206.87336379%2C-0.0382994199%206.88105745%2C0.0839888876%20C6.88105745%2C0.0857875045%206.87913403%2C0.0857875045%206.87913403%2C0.0875861214%20C6.77904815%2C6.00239441%203.54554242%2C7.60473067%201.7671117%2C9.76457253%20C-2.33636671%2C14.7478573%201.4803265%2C20.2112381%205.36631388%2C21.2200883%20C7.54123275%2C21.7847818%204.86396105%2C20.2202641%204.51943926%2C16.9148132%20C4.10177646%2C12.9206857%209.77777778%2C9.87247313%209.77777778%2C6.56528272%20Z%22%20id%3D%22%E8%B7%AF%E5%BE%84%22%20fill%3D%22%232D3338%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M11.2932296%2C8.01552828%20C11.2668533%2C7.99856497%2011.2303947%2C7.98734177%2011.2040185%2C8.02675148%20C11.1330817%2C8.80415072%2010.275719%2C10.4677543%209.18934224%2C11.9942806%20C5.50455525%2C17.1729727%207.60436459%2C19.6703485%208.78604691%2C21.0109638%20C9.47110885%2C21.7902479%208.78604691%2C21.0109638%2010.4987017%2C20.2148878%20C10.6324734%2C20.1528604%2013.8429923%2C18.4854872%2014.1895742%2C14.6869058%20C14.5280542%2C11.0085239%2012.1424903%2C8.68960556%2011.2932296%2C8.01552828%20Z%22%20id%3D%22%E8%B7%AF%E5%BE%84%22%20fill%3D%22%2301943F%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E",supportMobile:!1,supportExtension:!1,switchChain:F,disabled:function(){var e;return!(null===(e=window.ethereum)||void 0===e?void 0:e.isHbWallet)}},Y={type:exports.WalletType.injected,showName:"Coin98",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M26.1569%200H5.84389C2.60226%200%200%202.6016%200%205.8432V26.1568C0%2029.3984%202.60226%2032%205.84389%2032H26.1561C29.3522%2032%2032%2029.3984%2032%2026.1568V5.8432C32%202.6016%2029.3985%200%2026.1569%200ZM21.2273%207.9888C23.601%207.9888%2025.5183%209.9056%2025.5183%2012.28C25.5183%2013.0096%2025.3353%2013.6944%2025.0156%2014.3336C24.4681%2013.9232%2023.8751%2013.5576%2023.2357%2013.3296C23.418%2013.0096%2023.5099%2012.6448%2023.5099%2012.28C23.5099%2011.0472%2022.5053%2010.0432%2021.2729%2010.0432C20.0397%2010.0432%2019.0358%2011.0472%2019.0358%2012.28C19.0358%2012.6448%2019.127%2013.0096%2019.31%2013.3296C18.6706%2013.5576%2018.0312%2013.8776%2017.5293%2014.3336C17.1641%2013.6944%2017.0266%2013.0096%2017.0266%2012.2792C16.9363%209.9056%2018.8536%207.9888%2021.2273%207.9888ZM10.7727%2024.0112C8.3998%2024.0112%206.48247%2022.0944%206.48247%2019.7208H8.53648C8.53648%2020.9528%209.54109%2021.9576%2010.7735%2021.9576C12.0059%2021.9576%2013.0105%2020.9528%2013.0105%2019.7208H15.0645C15.0645%2022.0944%2013.1464%2024.0112%2010.7727%2024.0112ZM10.7727%2017.9856C8.03456%2017.9856%205.79755%2015.7488%205.79755%2013.0096C5.79755%2010.2712%208.03456%207.9888%2010.7735%207.9888C13.5124%207.9888%2015.795%2010.2256%2015.795%2013.0096C15.7494%2015.7488%2013.5116%2017.9856%2010.7727%2017.9856ZM21.2273%2024.0112C18.4884%2024.0112%2016.2058%2021.7744%2016.2058%2019.0352C16.2058%2016.2512%2018.4428%2014.0144%2021.2273%2014.0144C23.9662%2014.0144%2026.2032%2016.2512%2026.2032%2019.036C26.2032%2021.7744%2023.9662%2024.0112%2021.2273%2024.0112ZM24.194%2018.9904C24.194%2020.6336%2022.8705%2021.9112%2021.2273%2021.9112C19.5841%2021.9112%2018.2598%2020.588%2018.2598%2018.9904C18.2598%2017.3464%2019.5841%2016.0224%2021.2273%2016.0224C22.8705%2016.0688%2024.194%2017.392%2024.194%2018.9904ZM13.6946%2013.0096C13.6946%2014.6536%2012.3711%2015.9776%2010.7279%2015.9776C9.08395%2015.9776%207.76043%2014.6536%207.76043%2013.0096C7.76043%2011.3664%209.08395%2010.0424%2010.7279%2010.0424C12.4167%2010.0424%2013.6946%2011.3664%2013.6946%2013.0104V13.0096Z%22%20fill%3D%22%23D9B432%22%2F%3E%3C%2Fsvg%3E",supportMobile:!1,supportExtension:!1,switchChain:F,disabled:function(){var e;return!(null===(e=window.ethereum)||void 0===e?void 0:e.isCoin98)}},X=Object.freeze({__proto__:null,Coinbase:Z,TokenPocket:z,Trust:R,ImToken:U,Math:G,GameStop:q,Brave:K,Huobi:$,Coin98:Y}),J={type:exports.WalletType.WalletLink,showName:"Coinbase Wallet",logo:g,supportMobile:!0,disabled:function(){return!(!window.ethereum||!window.ethereum.isWalletLink&&!window.ethereum.isToshi&&document&&L())},connector:N},Q={type:exports.WalletType.BinanceChain,showName:"Binance Chain Wallet",logo:"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%227.5in%22%20height%3D%227.5in%22%20version%3D%221.1%22%20style%3D%22shape-rendering%3AgeometricPrecision%3B%20text-rendering%3AgeometricPrecision%3B%20image-rendering%3AoptimizeQuality%3B%20fill-rule%3Aevenodd%3B%20clip-rule%3Aevenodd%22%20viewBox%3D%220%200%207500%207500%22%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Cstyle%20type%3D%22text%2Fcss%22%3E%20%20%20%20%20%20%20%20%20%20%20%20.fil0%20%7Bfill%3Anone%7D%20%20%20%20%20%20%20%20%20%20%20%20.fil1%20%7Bfill%3A%234D4D4D%7D%20%20%20%20%20%20%20%20%20%20%20%20.fil2%20%7Bfill%3A%23F3BA2F%7D%20%20%20%20%20%20%20%20%3C%2Fstyle%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22Layer_x0020_1%22%3E%20%20%20%20%20%20%20%20%3Cmetadata%20id%3D%22CorelCorpID_0Corel-Layer%22%2F%3E%20%20%20%20%20%20%20%20%3Crect%20class%3D%22fil0%22%20width%3D%227500%22%20height%3D%227500%22%2F%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22_2419820813232%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Ccircle%20class%3D%22fil1%22%20cx%3D%223750%22%20cy%3D%223750%22%20r%3D%223500%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20class%3D%22fil2%22%20d%3D%22M2779%203351l971%20-971%20971%20972%20565%20-565%20-1536%20-1537%20-1536%201536%20565%20565%200%200zm-1529%20399l565%20-565%20565%20565%20-565%20565%20-565%20-565zm1529%20399l971%20971%20971%20-972%20566%20565%200%200%20-1537%201537%20-1536%20-1536%20-1%20-1%20566%20-564%200%200zm2341%20-399l565%20-565%20565%20565%20-565%20565%20-565%20-565z%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20class%3D%22fil2%22%20d%3D%22M4380%203750l0%200%20-630%20-632%20-466%20467%200%200%20-54%2054%20-111%20111%20-1%201%201%201%20630%20630%20631%20-631%200%200%200%200%200%20-1zm0%200l0%200%200%200z%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3Cstyle%20xmlns%3D%22%22%3E%23yddContainer%7Bdisplay%3Ablock%3Bfont-family%3AMicrosoft%20YaHei%3Bposition%3Arelative%3Bwidth%3A100%25%3Bheight%3A100%25%3Btop%3A-4px%3Bleft%3A-4px%3Bfont-size%3A12px%3Bborder%3A1px%20solid%7D%23yddTop%7Bdisplay%3Ablock%3Bheight%3A22px%7D%23yddTopBorderlr%7Bdisplay%3Ablock%3Bposition%3Astatic%3Bheight%3A17px%3Bpadding%3A2px%2028px%3Bline-height%3A17px%3Bfont-size%3A12px%3Bcolor%3A%235079bb%3Bfont-weight%3Abold%3Bborder-style%3Anone%20solid%3Bborder-width%3A1px%7D%23yddTopBorderlr%20.ydd-sp%7Bposition%3Aabsolute%3Btop%3A2px%3Bheight%3A0%3Boverflow%3Ahidden%7D.ydd-icon%7Bleft%3A5px%3Bwidth%3A17px%3Bpadding%3A0px%200px%200px%200px%3Bpadding-top%3A17px%3Bbackground-position%3A-16px%20-44px%7D.ydd-close%7Bright%3A5px%3Bwidth%3A16px%3Bpadding-top%3A16px%3Bbackground-position%3Aleft%20-44px%7D%23yddKeyTitle%7Bfloat%3Aleft%3Btext-decoration%3Anone%7D%23yddMiddle%7Bdisplay%3Ablock%3Bmargin-bottom%3A10px%7D.ydd-tabs%7Bdisplay%3Ablock%3Bmargin%3A5px%200%3Bpadding%3A0%205px%3Bheight%3A18px%3Bborder-bottom%3A1px%20solid%7D.ydd-tab%7Bdisplay%3Ablock%3Bfloat%3Aleft%3Bheight%3A18px%3Bmargin%3A0%205px%20-1px%200%3Bpadding%3A0%204px%3Bline-height%3A18px%3Bborder%3A1px%20solid%3Bborder-bottom%3Anone%7D.ydd-trans-container%7Bdisplay%3Ablock%3Bline-height%3A160%25%7D.ydd-trans-container%20a%7Btext-decoration%3Anone%3B%7D%23yddBottom%7Bposition%3Aabsolute%3Bbottom%3A0%3Bleft%3A0%3Bwidth%3A100%25%3Bheight%3A22px%3Bline-height%3A22px%3Boverflow%3Ahidden%3Bbackground-position%3Aleft%20-22px%7D.ydd-padding010%7Bpadding%3A0%2010px%7D%23yddWrapper%7Bcolor%3A%23252525%3Bz-index%3A10001%3Bbackground%3Aurl%28chrome-extension%3A%2F%2Feopjamdnofihpioajgfdikhhbobonhbb%2Fab20.png%29%3B%7D%23yddContainer%7Bbackground%3A%23fff%3Bborder-color%3A%234b7598%7D%23yddTopBorderlr%7Bborder-color%3A%23f0f8fc%7D%23yddWrapper%20.ydd-sp%7Bbackground-image%3Aurl%28chrome-extension%3A%2F%2Feopjamdnofihpioajgfdikhhbobonhbb%2Fydd-sprite.png%29%7D%23yddWrapper%20a%2C%23yddWrapper%20a%3Ahover%2C%23yddWrapper%20a%3Avisited%7Bcolor%3A%2350799b%7D%23yddWrapper%20.ydd-tabs%7Bcolor%3A%23959595%7D.ydd-tabs%2C.ydd-tab%7Bbackground%3A%23fff%3Bborder-color%3A%23d5e7f3%7D%23yddBottom%7Bcolor%3A%23363636%7D%23yddWrapper%7Bmin-width%3A250px%3Bmax-width%3A400px%3B%7D%3C%2Fstyle%3E%3C%2Fsvg%3E",supportChains:[D.MAINNET,D.BSC],link:"https://www.bnbchain.world/en/binance-wallet",supportMobile:!1,disabled:function(){return!window.BinanceChain},connector:function(e,t){return E(window.BinanceChain,t)}},ee={type:exports.WalletType.kuCoinWallet,showName:"KuCoin Wallet",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url%28%23clip0_5313_179352%29%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M16.0028%2026.7602L5.24537%2016.0028L16.0028%205.24537L26.7602%2016.0028L16.0028%2026.7602ZM16.0028%2013.0046C14.3521%2013.0046%2013.0046%2014.3465%2013.0046%2016.0028C13.0046%2017.6591%2014.3465%2019.001%2016.0028%2019.001C17.6591%2019.001%2019.001%2017.6591%2019.001%2016.0028C19.001%2014.3465%2017.6591%2013.0046%2016.0028%2013.0046ZM0.635845%2014.4644C-0.211948%2015.3122%20-0.211948%2016.6934%200.635845%2017.5356L14.4644%2031.3642C15.3122%2032.2119%2016.6934%2032.2119%2017.5356%2031.3642L31.3642%2017.5356C32.2119%2016.6878%2032.2119%2015.3066%2031.3642%2014.4644L17.5356%200.635845C16.6878%20-0.211948%2015.3066%20-0.211948%2014.4644%200.635845L0.635845%2014.4644Z%22%20fill%3D%22%2328CD96%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0_5313_179352%22%3E%3Crect%20width%3D%2232%22%20height%3D%2232%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E",supportMobile:!0,disabled:function(){return!window.kucoin},connector:function(e,t){return E(window.kucoin,t)},switchChain:F,link:"https://kuwallet.com/"},te={type:exports.WalletType.frontier,showName:"Frontier",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M32%2016C32%207.16344%2024.8366%200%2016%200C7.16344%200%200%207.16344%200%2016C0%2024.8366%207.16344%2032%2016%2032C24.8366%2032%2032%2024.8366%2032%2016Z%22%20fill%3D%22%23CC703C%22%2F%3E%3Cpath%20d%3D%22M23.3502%208L23.2615%208.23476L22.971%208.9853L22.778%209.46909C21.3121%2013.0968%2020.1721%2014.8183%2018.9598%2014.8183C18.6535%2014.8264%2018.3488%2014.7706%2018.0652%2014.6546C17.7816%2014.5385%2017.5253%2014.3646%2017.3127%2014.1441L17.158%2014.0038C16.773%2013.6485%2016.611%2013.5609%2016.2402%2013.5609C16.0472%2013.5609%2015.7015%2013.807%2015.2647%2014.3853C14.6796%2015.214%2014.182%2016.1012%2013.7801%2017.0326L13.7308%2017.1418H18.9308L18.2832%2018.4879H13.428V24H12V8H23.3502ZM21.3268%209.34359H13.428V14.6751C14.3744%2013.0338%2015.2741%2012.2099%2016.2417%2012.2099C16.5671%2012.1995%2016.8911%2012.2568%2017.1932%2012.3781C17.4953%2012.4994%2017.7689%2012.6821%2017.9966%2012.9147L18.1562%2013.0594C18.5156%2013.3911%2018.654%2013.4674%2018.9612%2013.4674C19.2991%2013.4679%2020.1977%2012.0406%2021.3268%209.34359Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E",link:"https://www.frontier.xyz/download",disabled:function(){var e;return!(null===(e=window.frontier)||void 0===e?void 0:e.ethereum)},connector:function(e,t){var n;return E(null===(n=window.frontier)||void 0===n?void 0:n.ethereum,t)}},ne={type:exports.WalletType.LedgerUSB,showName:"Ledger",logo:"data:image/svg+xml,%3Csvg%20width%3D%22146%22%20height%3D%22128%22%20viewBox%3D%220%200%20146%20128%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M90.262%20119.94V127.998H145.57V91.6548H137.511V119.94H90.262ZM90.262%200V8.05844H137.511V36.3452H145.57V0H90.262ZM63.4464%2036.3452H55.3879V91.6529H91.7332V84.3842H63.4464V36.3452ZM0%2091.6548V128H55.3076V119.94H8.05844V91.6548H0ZM0%200V36.3452H8.05844V8.05844H55.3076V0H0Z%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fsvg%3E",supportChains:[D.MAINNET,D.BSC,D.POLYGON],disabled:function(){return!x()},connector:function(e){return s(void 0,void 0,void 0,(function(){var t;return c(this,(function(n){switch(n.label){case 0:return x()&&e?[4,H()]:[3,2];case 1:return t=n.sent().default(e),[3,3];case 2:t=void 0,n.label=3;case 3:return[2,t]}}))}))}},oe={type:exports.WalletType.openBlock,showName:"OpenBlock",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M22.4526%204.41003C27.117%204.41003%2030.8983%208.19129%2030.8983%2012.8557V13.0548L27.9485%2016.0021L30.8983%2018.9466V19.1486C30.8983%2023.813%2027.117%2027.5943%2022.4526%2027.5943H1.08997L7.91802%2022.6262H19.3062C22.9645%2022.6262%2025.9302%2019.6605%2025.9302%2016.0021C25.9302%2012.3438%2022.9645%209.37809%2019.3062%209.37809H7.91802L1.08997%204.41003H22.4526ZM9.50802%2013.1867C7.95322%2013.1867%206.69279%2014.4472%206.69279%2016.002C6.69279%2017.5568%207.95319%2018.8172%209.50802%2018.8172H19.316C20.8708%2018.8172%2022.1312%2017.5568%2022.1312%2016.002C22.1312%2014.4472%2020.8708%2013.1867%2019.316%2013.1867H9.50802Z%22%20fill%3D%22%234A3DE6%22%2F%3E%3C%2Fsvg%3E",supportChains:[D.MAINNET,D.GOERLI,D.BSC,D.POLYGON,D.HECO,D.ARBITRUM_ONE,D.OKCHAIN,D.OPTIMISM,D.AVALANCHE],disabled:function(){return!window.openblock},connector:function(e,t){return E(window.openblock,t)},switchChain:F},re={type:exports.WalletType.OneKey,showName:"OneKey",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url%28%23clip0_3105_80246%29%22%3E%3Cpath%20d%3D%22M32%2016C32%2027.0458%2027.0458%2032%2016%2032C4.95431%2032%200%2027.0458%200%2016C0%204.95431%204.95431%200%2016%200C27.0458%200%2032%204.95431%2032%2016Z%22%20fill%3D%22%2344D62C%22%2F%3E%3Cpath%20d%3D%22M17.4456%206.78467H12.9945L12.2136%209.14578H14.6858V14.1196H17.4456V6.78467Z%22%20fill%3D%22black%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.0764%2020.1391C21.0764%2022.9426%2018.8035%2025.2153%2016%2025.2153C13.1964%2025.2153%2010.9238%2022.9426%2010.9238%2020.1391C10.9238%2017.3355%2013.1964%2015.0629%2016%2015.0629C18.8035%2015.0629%2021.0764%2017.3355%2021.0764%2020.1391ZM18.7718%2020.1391C18.7718%2021.67%2017.5309%2022.9109%2016%2022.9109C14.4693%2022.9109%2013.2284%2021.67%2013.2284%2020.1391C13.2284%2018.6084%2014.4693%2017.3673%2016%2017.3673C17.5309%2017.3673%2018.7718%2018.6084%2018.7718%2020.1391Z%22%20fill%3D%22black%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0_3105_80246%22%3E%3Crect%20width%3D%2232%22%20height%3D%2232%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E",link:"https://onekey.so",supportMobile:!0,disabled:function(){var e;return!(null===(e=window.$onekey)||void 0===e?void 0:e.ethereum)&&!window.onekey},connector:function(e,t){var n;return E((null===(n=window.$onekey)||void 0===n?void 0:n.ethereum)||window.onekey,t)},switchChain:F},ie={type:exports.WalletType.Bitkeep,showName:"Bitkeep",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M32%2016C32%207.16344%2024.8366%200%2016%200C7.16344%200%200%207.16344%200%2016C0%2024.8366%207.16344%2032%2016%2032C24.8366%2032%2032%2024.8366%2032%2016Z%22%20fill%3D%22%237524F9%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M25.5%2011.4007V12.4551C25.5003%2012.5571%2025.4733%2012.6573%2025.4218%2012.7457C25.3703%2012.834%2025.2963%2012.9074%2025.207%2012.9584L21.7727%2014.92L24.8408%2016.6677C25.0413%2016.7824%2025.2078%2016.9473%2025.3235%2017.1459C25.4393%2017.3445%2025.5003%2017.5698%2025.5%2017.799V20.6106C25.5003%2020.84%2025.4395%2021.0654%2025.3238%2021.2642C25.208%2021.4629%2025.0415%2021.6279%2024.8408%2021.7426L16.7717%2026.325C16.5713%2026.4398%2016.344%2026.5%2016.1126%2026.5C15.8811%2026.5%2015.6538%2026.4398%2015.4534%2026.325L12.813%2024.8153C12.7684%2024.7898%2012.7314%2024.7532%2012.7057%2024.7091C12.68%2024.665%2012.6664%2024.6149%2012.6664%2024.564C12.6664%2024.513%2012.68%2024.463%2012.7057%2024.4189C12.7314%2024.3748%2012.7684%2024.3382%2012.813%2024.3127L21.5288%2019.3459C21.551%2019.3331%2021.5694%2019.3148%2021.5823%2019.2928C21.5951%2019.2708%2021.6018%2019.2458%2021.6018%2019.2204C21.6018%2019.195%2021.5951%2019.1701%2021.5823%2019.148C21.5694%2019.126%2021.551%2019.1077%2021.5288%2019.0949L18.293%2017.2443C18.2039%2017.1933%2018.1029%2017.1665%2018%2017.1665C17.8972%2017.1665%2017.7961%2017.1933%2017.707%2017.2443L8.85425%2022.2931C8.78745%2022.3313%208.71168%2022.3514%208.63453%2022.3514C8.55738%2022.3514%208.4816%2022.3313%208.4148%2022.2931L7.4121%2021.7252C7.2106%2021.6107%207.04323%2021.4455%206.92695%2021.2463C6.81068%2021.0471%206.74963%2020.8211%206.75%2020.591V19.4416C6.74995%2019.3652%206.77023%2019.2901%206.8088%2019.2239C6.84738%2019.1577%206.90288%2019.1027%206.96973%2019.0645L19.6626%2011.8423C19.6848%2011.8296%2019.7032%2011.8113%2019.716%2011.7893C19.7289%2011.7672%2019.7356%2011.7423%2019.7356%2011.7169C19.7356%2011.6915%2019.7289%2011.6665%2019.716%2011.6445C19.7032%2011.6224%2019.6848%2011.6042%2019.6626%2011.5914L16.4216%209.73417C16.3326%209.68327%2016.2315%209.65645%2016.1287%209.65645C16.0258%209.65645%2015.9248%209.68327%2015.8357%209.73417L7.18945%2014.6575C7.14495%2014.683%207.09445%2014.6963%207.04305%2014.6964C6.99165%2014.6964%206.94115%2014.683%206.89663%2014.6576C6.8521%2014.6321%206.8151%2014.5956%206.78938%2014.5515C6.76363%2014.5075%206.75005%2014.4575%206.75%2014.4066V11.3869C6.74973%2011.1575%206.8105%2010.9321%206.92623%2010.7333C7.04195%2010.5346%207.20853%2010.3696%207.40918%2010.2549L15.4768%205.67385C15.6768%205.55995%2015.9035%205.5%2016.1342%205.5C16.3649%205.5%2016.5915%205.55995%2016.7915%205.67385L24.8408%2010.2708C25.0413%2010.3854%2025.2075%2010.55%2025.3233%2010.7484C25.439%2010.9467%2025.5%2011.1716%2025.5%2011.4007Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E",link:"https://bitkeep.com/download?type=2",mobileDeepLink:"https://bkcode.vip?action=dapp&url=$APP_URL",supportMobile:!0,disabled:function(){var e;return!(null===(e=window.bitkeep)||void 0===e?void 0:e.ethereum)},connector:function(e,t){var n;return E(null===(n=window.bitkeep)||void 0===n?void 0:n.ethereum,t)},switchChain:F},ae={type:exports.WalletType.Nabox,showName:"Nabox",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M2%208.98682V23.8908L6.31535%2026.3785V15.717L10.6153%2018.2006V28.8551L14.932%2031.3428V16.4374L2%208.98682Z%22%20fill%3D%22%232AC98B%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.8024%207.62299L16.1261%205.089L21.4983%208.23266L17.1773%2010.7554L11.8024%207.62299ZM16.1317%200L3.09741%207.62579L17.1535%2015.8669V32L21.417%2029.5165V13.1955L25.7253%2010.6727V26.9797L30.0519%2024.4331V8.14436L16.1317%200Z%22%20fill%3D%22%232AC98B%22%2F%3E%3C%2Fsvg%3E",link:"https://nabox.io/",supportMobile:!0,disabled:function(){return!window.NaboxWallet},connector:function(e,t){return E(window.NaboxWallet,t)},switchChain:F},le={type:exports.WalletType.OKX,showName:"OKX Wallet",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url%28%23clip0_1443_44689%29%22%3E%3Cpath%20d%3D%22M21%200H11C4.92487%200%200%204.92487%200%2011V21C0%2027.0751%204.92487%2032%2011%2032H21C27.0751%2032%2032%2027.0751%2032%2021V11C32%204.92487%2027.0751%200%2021%200Z%22%20fill%3D%22black%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M12.6063%206.99255H7.39351C7.17207%206.99255%206.99255%207.17207%206.99255%207.39351V12.6063C6.99255%2012.8278%207.17207%2013.0073%207.39351%2013.0073H12.6063C12.8278%2013.0073%2013.0073%2012.8278%2013.0073%2012.6063V7.39351C13.0073%207.17207%2012.8278%206.99255%2012.6063%206.99255ZM18.6237%2013.0073H13.4109C13.1895%2013.0073%2013.0099%2013.1869%2013.0099%2013.4083V18.6211C13.0099%2018.8426%2013.1895%2019.0221%2013.4109%2019.0221H18.6237C18.8452%2019.0221%2019.0247%2018.8426%2019.0247%2018.6211V13.4083C19.0247%2013.1869%2018.8452%2013.0073%2018.6237%2013.0073ZM19.4231%206.99255H24.6359C24.8574%206.99255%2025.0369%207.17207%2025.0369%207.39351V12.6063C25.0369%2012.8278%2024.8574%2013.0073%2024.6359%2013.0073H19.4231C19.2016%2013.0073%2019.0221%2012.8278%2019.0221%2012.6063V7.39351C19.0221%207.17207%2019.2016%206.99255%2019.4231%206.99255ZM12.6063%2019.0221H7.39351C7.17207%2019.0221%206.99255%2019.2016%206.99255%2019.4231V24.6359C6.99255%2024.8574%207.17207%2025.0369%207.39351%2025.0369H12.6063C12.8278%2025.0369%2013.0073%2024.8574%2013.0073%2024.6359V19.4231C13.0073%2019.2016%2012.8278%2019.0221%2012.6063%2019.0221ZM19.4231%2019.0221H24.6359C24.8574%2019.0221%2025.0369%2019.2016%2025.0369%2019.4231V24.6359C25.0369%2024.8574%2024.8574%2025.0369%2024.6359%2025.0369H19.4231C19.2016%2025.0369%2019.0221%2024.8574%2019.0221%2024.6359V19.4231C19.0221%2019.2016%2019.2016%2019.0221%2019.4231%2019.0221Z%22%20fill%3D%22white%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0_1443_44689%22%3E%3Crect%20width%3D%2232%22%20height%3D%2232%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E",supportMobile:!1,link:"https://www.okx.com/",disabled:function(){return!window.okxwallet},connector:function(e,t){return E(window.okxwallet,t)},switchChain:F},se={type:exports.WalletType.WalletConnect,showName:"WalletConnect",logo:"data:image/svg+xml,%3Csvg%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3CradialGradient%20id%3D%22a%22%20cx%3D%220%25%22%20cy%3D%2250%25%22%20r%3D%22100%25%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%235d9df6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23006fff%22%2F%3E%3C%2FradialGradient%3E%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Cpath%20d%3D%22m256%200c141.384896%200%20256%20114.615104%20256%20256s-114.615104%20256-256%20256-256-114.615104-256-256%20114.615104-256%20256-256z%22%20fill%3D%22url%28%23a%29%22%2F%3E%3Cpath%20d%3D%22m64.6917558%2037.7088298c51.5328072-50.2784397%20135.0839942-50.2784397%20186.6167992%200l6.202057%206.0510906c2.57664%202.5139218%202.57664%206.5897948%200%209.1037177l-21.215998%2020.6995759c-1.288321%201.2569619-3.3771%201.2569619-4.665421%200l-8.534766-8.3270205c-35.950573-35.0754962-94.237969-35.0754962-130.188544%200l-9.1400282%208.9175519c-1.2883217%201.2569609-3.3771016%201.2569609-4.6654208%200l-21.2159973-20.6995759c-2.5766403-2.5139229-2.5766403-6.5897958%200-9.1037177zm230.4934852%2042.8089117%2018.882279%2018.4227262c2.576627%202.5139103%202.576642%206.5897593.000032%209.1036863l-85.141498%2083.070358c-2.576623%202.513941-6.754182%202.513969-9.33084.000066-.00001-.00001-.000023-.000023-.000033-.000034l-60.428256-58.957451c-.64416-.628481-1.68855-.628481-2.33271%200-.000004.000004-.000008.000007-.000012.000011l-60.4269683%2058.957408c-2.5766141%202.513947-6.7541746%202.51399-9.3308408.000092-.0000151-.000014-.0000309-.000029-.0000467-.000046l-85.14386774-83.071463c-2.57663928-2.513921-2.57663928-6.589795%200-9.1037163l18.88231264-18.4226955c2.5766393-2.5139222%206.7541993-2.5139222%209.3308397%200l60.4291347%2058.9582758c.6441608.62848%201.6885495.62848%202.3327103%200%20.0000095-.000009.0000182-.000018.0000277-.000025l60.4261065-58.9582508c2.576581-2.51398%206.754142-2.5140743%209.33084-.0002103.000037.0000354.000072.0000709.000107.0001063l60.429056%2058.9583548c.644159.628479%201.688549.628479%202.332709%200l60.428079-58.9571925c2.57664-2.5139231%206.754199-2.5139231%209.330839%200z%22%20fill%3D%22%23fff%22%20fill-rule%3D%22nonzero%22%20transform%3D%22translate%2898%20160%29%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",supportMobile:!0,connector:function(e,t){return j(e,t)}},ce={type:exports.WalletType.Portis,showName:"Portis",logo:"data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%20301.38%20455.87%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22m4.45%20262.11%2010.93-4.75%20135.31-58.82%20146.24%2063.57-54.95%20113.43-134.33%2019-101-109z%22%20fill%3D%22%23133444%22%2F%3E%3Cpath%20d%3D%22m266.51%20192.16a150.43%20150.43%200%200%200%20-95.82-53q-1.2-.17-2.4-.3a152.36%20152.36%200%200%200%20-35.2%200q-1.2.14-2.4.3a150.43%20150.43%200%200%200%20-95.82%2053l-6.08%2010.08-10.13%2016.76-7.41%2012.31c-.14.33-.28.67-.41%201l-.09.23%2016.35%209.67%20103.6%2061.28%2020%2011.83v-146.47l-20%209.08v-21.93l20-9.09%2020%209.09%20101.9%2046.28z%22%20fill%3D%22%23c42370%22%2F%3E%3Cpath%20d%3D%22m301.38%20298.56c0%2048.78-23.18%2094.42-59.12%20123.84a149.45%20149.45%200%200%201%20-47.64%2026.37%20139.51%20139.51%200%200%201%20-43.93%207.1c-83.22%200-150.69-74.09-150.69-157.31a150.49%20150.49%200%200%201%204.45-36.45l146.24%2086.51%20146.24-86.51a150.49%20150.49%200%200%201%204.45%2036.45z%22%20fill%3D%22%231c4d6b%22%2F%3E%3Cpath%20d%3D%22m133.09%20138.89%2017.6%207.99-20%209.09v-18.17z%22%2F%3E%3Cpath%20d%3D%22m130.69%20177.93%2020-9.08v146.53l-20-11.83z%22%2F%3E%3Cpath%20d%3D%22m150.69%20168.85v146.53l140.13-82.89z%22%20fill%3D%22%231d4259%22%2F%3E%3Cpath%20d%3D%22m150.69%200v168.85l140.13%2063.64z%22%20fill%3D%22%234b6b9a%22%2F%3E%3Cpath%20d%3D%22m150.69%20168.85v146.53l-20-11.83-119.95-71-.18-.11.27-.12c.13-.33.27-.67.41-1l17.53-29.09%20101.92-46.23v22z%22%20fill%3D%22%23343535%22%2F%3E%3Cpath%20d%3D%22m150.69%20168.85v146.53l-20-11.83-119.95-70.95-.18-.11.27-.12%20119.86-54.44z%22%20fill%3D%22%233e5578%22%2F%3E%3Cpath%20d%3D%22m150.69%200v168.85l-140.13%2063.64z%22%20fill%3D%22%236db2d8%22%2F%3E%3Cg%20fill%3D%22%23335f8a%22%3E%3Cpath%20d%3D%22m94%20443.85c2.09.92%204.21%201.79%206.34%202.61q-3.26-1.23-6.34-2.61z%22%2F%3E%3Cpath%20d%3D%22m100.29%20446.46c2.14.82%204.29%201.59%206.47%202.31q-3.27-1.07-6.47-2.31z%22%2F%3E%3Cpath%20d%3D%22m112.33%20450.49c1.66.47%203.33.92%205%201.33q-2.51-.62-5-1.33z%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22m4.45%20262.11%20146.24%2086.51a167.48%20167.48%200%200%201%20-10.47%2038.38c-11.7%2028.28-35.34%2058.19-81.08%2035.44-35.96-29.44-59.14-75.1-59.14-123.88a150.49%20150.49%200%200%201%204.45-36.45z%22%20fill%3D%22%236db2d8%22%2F%3E%3Cpath%20d%3D%22m242.24%20422.41-.36.29c-.76.62-1.52%201.23-2.29%201.83l-.2.16q-1.25%201-2.52%201.92c-.91.68-1.83%201.36-2.76%202s-1.86%201.31-2.8%201.95-1.66%201.12-2.49%201.66l-.46.3c-.88.57-1.76%201.13-2.64%201.67a2.63%202.63%200%200%201%20-.33.2c-.91.57-1.82%201.12-2.74%201.65s-2%201.15-3%201.7-2%201.08-3%201.6l-.11.06c-1%20.52-2%201-3%201.52s-2%201-3.08%201.49-2.08%201-3.12%201.42c-2.09.92-4.21%201.79-6.34%202.61s-4.29%201.59-6.47%202.31c-.87.29-1.74.57-2.62.84s-2%20.6-2.95.88c-1.66.47-3.33.92-5%201.33-.63.16-1.27.31-1.91.45l-1.07.25c-.89.2-1.78.39-2.68.57s-1.64.33-2.47.48-1.51.28-2.27.4-1.68.27-2.52.39c-.41.07-.82.13-1.24.18l-1.89.25-1.05.13c-.69.09-1.39.16-2.09.23-.86.09-1.71.17-2.57.24-.67.05-1.34.11-2%20.15s-1.16.08-1.75.1h-.08c-.68%200-1.36.08-2%20.1-.94%200-1.89.07-2.84.09s-1.9%200-2.86%200-1.91%200-2.86%200-1.9%200-2.84-.09c-.69%200-1.37-.06-2.05-.1h-.08c-.59%200-1.17-.06-1.75-.1s-1.34-.1-2-.15c-.86-.07-1.71-.15-2.57-.24-.7-.07-1.4-.14-2.09-.23l-1-.13c-.63-.07-1.26-.16-1.89-.25-.42%200-.83-.11-1.24-.18q-1.27-.18-2.52-.39c-.76-.12-1.52-.26-2.27-.4s-1.65-.31-2.47-.48-1.79-.37-2.68-.57l-1.07-.25c-.64-.14-1.28-.29-1.91-.45-1.68-.41-3.35-.86-5-1.33l-3-.88c-.88-.27-1.75-.55-2.62-.84-2.18-.72-4.33-1.49-6.47-2.31s-4.29-1.67-6.29-2.59c-1-.46-2.08-.94-3.12-1.42s-2.06-1-3.08-1.49-2-1-3-1.52l-.11-.06c-1-.52-2-1.06-3-1.6s-2-1.12-3-1.7-1.79-1.06-2.69-1.65l-.33-.2c-.88-.54-1.76-1.1-2.64-1.67l-.46-.3c-.83-.54-1.67-1.1-2.49-1.66s-1.88-1.29-2.8-1.95-1.85-1.34-2.76-2-1.69-1.27-2.52-1.92l-.2-.16c-.77-.6-1.53-1.21-2.29-1.83l-.36-.29c45.74%2022.75%2069.38-7.16%2081.08-35.44a167.48%20167.48%200%200%200%2010.47-38.35%20167.47%20167.47%200%200%200%2010.46%2038.36c11.7%2028.25%2035.34%2058.16%2081.08%2035.41z%22%20fill%3D%22%23529bba%22%2F%3E%3Cpath%20d%3D%22m184%20451.82c1.68-.41%203.35-.86%205-1.33q-2.44.72-5%201.33z%22%20fill%3D%22%23335f8a%22%2F%3E%3Cpath%20d%3D%22m194.62%20448.77c2.18-.72%204.33-1.49%206.47-2.31q-3.19%201.24-6.47%202.31z%22%20fill%3D%22%23335f8a%22%2F%3E%3Cpath%20d%3D%22m201.09%20446.46c2.13-.82%204.25-1.69%206.34-2.61q-3.13%201.38-6.34%202.61z%22%20fill%3D%22%23335f8a%22%2F%3E%3Cpath%20d%3D%22m301.38%20298.56c0%2048.78-23.19%2094.43-59.14%20123.85-45.74%2022.75-69.38-7.16-81.08-35.44a167.47%20167.47%200%200%201%20-10.47-38.35l146.24-86.51a150.49%20150.49%200%200%201%204.45%2036.45z%22%20fill%3D%22%234b6b9a%22%2F%3E%3C%2Fsvg%3E",supportChains:[D.MAINNET,D.GOERLI],checked:function(e){return!!e.PORTIS_ID},connector:function(e,t){return I(e,t)}},ue={type:exports.WalletType.Gnosis,showName:"Gnosis",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url%28%23clip0_2721_64477%29%22%3E%3Cmask%20id%3D%22mask0_2721_64477%22%20style%3D%22mask-type%3Aluminance%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2232%22%20height%3D%2232%22%3E%3Cpath%20d%3D%22M16%2032C24.8366%2032%2032%2024.8366%2032%2016C32%207.16344%2024.8366%200%2016%200C7.16344%200%200%207.16344%200%2016C0%2024.8366%207.16344%2032%2016%2032Z%22%20fill%3D%22white%22%2F%3E%3C%2Fmask%3E%3Cg%20mask%3D%22url%28%23mask0_2721_64477%29%22%3E%3Cpath%20d%3D%22M32.064%20-2.60797H-1.53601V34.288H32.064V-2.60797Z%22%20fill%3D%22url%28%23paint0_linear_2721_64477%29%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M24.9623%2015.994H22.7763C22.1235%2015.994%2021.5946%2016.5233%2021.5946%2017.1757V20.3482C21.5946%2021.001%2021.0653%2021.53%2020.4128%2021.53H11.7162C11.0634%2021.53%2010.5344%2022.0593%2010.5344%2022.7117V24.8977C10.5344%2025.5505%2011.0637%2026.0794%2011.7162%2026.0794H20.9162C21.569%2026.0794%2022.0909%2025.5501%2022.0909%2024.8977V23.1441C22.0909%2022.4913%2022.6202%2022.0279%2023.2727%2022.0279H24.9623C25.6151%2022.0279%2026.144%2021.4986%2026.144%2020.8461V17.1617C26.144%2016.5089%2025.6147%2015.9937%2024.9623%2015.9937V15.994Z%22%20fill%3D%22%23121312%22%2F%3E%3Cpath%20d%3D%22M10.5338%2011.6515C10.5338%2010.9987%2011.0631%2010.4698%2011.7156%2010.4698H20.4068C21.0596%2010.4698%2021.5885%209.94051%2021.5885%209.28803V7.10211C21.5885%206.44931%2021.0593%205.92035%2020.4068%205.92035H11.2119C10.5591%205.92035%2010.0301%206.44963%2010.0301%207.10211V8.78627C10.0301%209.43907%209.50086%209.96803%208.84838%209.96803H7.16614C6.51334%209.96803%205.98438%2010.4973%205.98438%2011.1498V14.8381C5.98438%2015.4909%206.51558%2015.9933%207.16838%2015.9933H9.3543C10.0071%2015.9933%2010.5361%2015.464%2010.5361%2014.8115L10.5341%2011.6519L10.5338%2011.6515Z%22%20fill%3D%22%23121312%22%2F%3E%3Cpath%20d%3D%22M15.0352%2013.6964H17.1351C17.8192%2013.6964%2018.3747%2014.2519%2018.3747%2014.936V17.0359C18.3747%2017.72%2017.8192%2018.2755%2017.1351%2018.2755H15.0352C14.3511%2018.2755%2013.7955%2017.72%2013.7955%2017.0359V14.936C13.7955%2014.2519%2014.3511%2013.6964%2015.0352%2013.6964Z%22%20fill%3D%22%23121312%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_2721_64477%22%20x1%3D%22-0.47809%22%20y1%3D%2229.2685%22%20x2%3D%2237.0896%22%20y2%3D%22-2.77789%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%2312FF80%22%2F%3E%3Cstop%20offset%3D%220.13%22%20stop-color%3D%22%2315FD85%22%2F%3E%3Cstop%20offset%3D%220.29%22%20stop-color%3D%22%231FF896%22%2F%3E%3Cstop%20offset%3D%220.49%22%20stop-color%3D%22%2330F1B2%22%2F%3E%3Cstop%20offset%3D%220.69%22%20stop-color%3D%22%2348E7D9%22%2F%3E%3Cstop%20offset%3D%220.87%22%20stop-color%3D%22%235FDDFF%22%2F%3E%3C%2FlinearGradient%3E%3CclipPath%20id%3D%22clip0_2721_64477%22%3E%3Crect%20width%3D%2232%22%20height%3D%2232%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E",supportChains:[D.MAINNET,D.GOERLI,D.BSC,D.POLYGON,D.ARBITRUM_ONE,D.AURORA,D.AVALANCHE,D.OPTIMISM],link:"https://app.safe.global/welcome",disabled:function(){return s(void 0,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,V()];case 1:return[4,e.sent().getIsSafe()];case 2:return[2,!e.sent()]}}))}))},connector:function(e,t){return s(void 0,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,V()];case 1:return[2,e.sent().default(t)]}}))}))}},de={type:exports.WalletType.uAuth,showName:"Unstoppable",logo:"data:image/svg+xml,%3Csvg%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M32%202.47278V13.3668L0%2026.2392L32%202.47278Z%22%20fill%3D%22%2300C9FF%22%2F%3E%3Cpath%20d%3D%22M26.001%202V20.7929C26.001%2023.4191%2024.9474%2025.9378%2023.0719%2027.7948C21.1964%2029.6519%2018.6527%2030.6951%2016.0004%2030.6951C13.3481%2030.6951%2010.8044%2029.6519%208.92887%2027.7948C7.05339%2025.9378%205.99976%2023.4191%205.99976%2020.7929V12.8741L11.9991%209.60487V20.7929C11.943%2021.2811%2011.9916%2021.7757%2012.1418%2022.244C12.2922%2022.7124%2012.5406%2023.144%2012.8711%2023.5107C13.2016%2023.8773%2013.6066%2024.1707%2014.0596%2024.3715C14.5126%2024.5724%2015.0033%2024.6763%2015.4996%2024.6763C15.9959%2024.6763%2016.4866%2024.5724%2016.9396%2024.3715C17.3925%2024.1707%2017.7976%2023.8773%2018.128%2023.5107C18.4585%2023.144%2018.7071%2022.7124%2018.8573%2022.244C19.0076%2021.7757%2019.0563%2021.2811%2019%2020.7929V5.79246L26.001%202Z%22%20fill%3D%22%230D67FE%22%2F%3E%3C%2Fsvg%3E",connector:function(e,t){return s(void 0,void 0,void 0,(function(){var n;return c(this,(function(o){switch(o.label){case 0:return[4,S()];case 1:return[2,o.sent().default(exports.__assign(exports.__assign({},e),{uAuthParams:exports.__assign(exports.__assign({walletConnect:function(){return se.connector?se.connector(e,t):Promise.resolve(void 0)}},e.uAuthParams),{clientID:null===(n=e.uAuthParams)||void 0===n?void 0:n.clientID})}),t)]}}))}))},disconnect:function(){return s(void 0,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,S()];case 1:return[4,(0,e.sent().disconnectWallet)()];case 2:return e.sent(),[2]}}))}))}},pe=Object.freeze({__proto__:null,WalletLink:J,BSC:Q,KuCoin:ee,Frontier:te,Ledger:ne,OpenBlock:oe,OneKey:re,Bitkeep:ie,Nabox:ae,OKXWallet:le,WalletConnect:se,Portis:ce,Gnosis:ue,UAuth:de}),Ce={type:exports.WalletType.injected,showName:"MetaMask",link:"https://metamask.io",logo:"data:image/svg+xml,%3Csvg%20height%3D%22355%22%20viewBox%3D%220%200%20397%20355%22%20width%3D%22397%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%20transform%3D%22translate%28-1%20-1%29%22%3E%3Cpath%20d%3D%22m114.622644%20327.195472%2052.004717%2013.810198v-18.05949l4.245283-4.249292h29.716982v21.246459%2014.872523h-31.839624l-39.268868-16.997169z%22%20fill%3D%22%23cdbdb2%22%2F%3E%3Cpath%20d%3D%22m199.528305%20327.195472%2050.943397%2013.810198v-18.05949l4.245283-4.249292h29.716981v21.246459%2014.872523h-31.839623l-39.268868-16.997169z%22%20fill%3D%22%23cdbdb2%22%20transform%3D%22matrix%28-1%200%200%201%20483.96227%200%29%22%2F%3E%3Cpath%20d%3D%22m170.872644%20287.889523-4.245283%2035.056657%205.306604-4.249292h55.18868l6.367925%204.249292-4.245284-35.056657-8.490565-5.311615-42.452832%201.062323z%22%20fill%3D%22%23393939%22%2F%3E%3Cpath%20d%3D%22m142.216984%2050.9915022%2025.471698%2059.4900858%2011.674528%20173.158643h41.391511l12.735849-173.158643%2023.349056-59.4900858z%22%20fill%3D%22%23f89c35%22%2F%3E%3Cpath%20d%3D%22m30.7783023%20181.657226-29.71698153%2086.048161%2074.29245393-4.249293h47.7594343v-37.181303l-2.122641-76.487253-10.613208%208.498583z%22%20fill%3D%22%23f89d35%22%2F%3E%3Cpath%20d%3D%22m87.0283032%20191.218134%2087.0283028%202.124646-9.551886%2044.617563-41.391511-10.623229z%22%20fill%3D%22%23d87c30%22%2F%3E%3Cpath%20d%3D%22m87.0283032%20192.280457%2036.0849058%2033.994334v33.994334z%22%20fill%3D%22%23ea8d3a%22%2F%3E%3Cpath%20d%3D%22m123.113209%20227.337114%2042.452831%2010.623229%2013.79717%2045.679888-9.551886%205.311615-46.698115-27.620398z%22%20fill%3D%22%23f89d35%22%2F%3E%3Cpath%20d%3D%22m123.113209%20261.331448-8.490565%2065.864024%2056.25-39.305949z%22%20fill%3D%22%23eb8f35%22%2F%3E%3Cpath%20d%3D%22m174.056606%20193.34278%205.306604%2090.297451-15.919812-46.211049z%22%20fill%3D%22%23ea8e3a%22%2F%3E%3Cpath%20d%3D%22m74.2924539%20262.393771%2048.8207551-1.062323-8.490565%2065.864024z%22%20fill%3D%22%23d87c30%22%2F%3E%3Cpath%20d%3D%22m24.4103777%20355.878193%2090.2122663-28.682721-40.3301901-64.801701-73.23113313%205.311616z%22%20fill%3D%22%23eb8f35%22%2F%3E%3Cpath%20d%3D%22m167.688682%20110.481588-45.636793%2038.243627-35.0235858%2042.492919%2087.0283028%203.186969z%22%20fill%3D%22%23e8821e%22%2F%3E%3Cpath%20d%3D%22m114.622644%20327.195472%2056.25-39.305949-4.245283%2033.994334v19.121813l-38.207548-7.43626z%22%20fill%3D%22%23dfcec3%22%2F%3E%3Cpath%20d%3D%22m229.245286%20327.195472%2055.18868-39.305949-4.245283%2033.994334v19.121813l-38.207548-7.43626z%22%20fill%3D%22%23dfcec3%22%20transform%3D%22matrix%28-1%200%200%201%20513.679252%200%29%22%2F%3E%3Cpath%20d%3D%22m132.665096%20212.464593-11.674528%2024.433427%2041.39151-10.623229z%22%20fill%3D%22%23393939%22%20transform%3D%22matrix%28-1%200%200%201%20283.372646%200%29%22%2F%3E%3Cpath%20d%3D%22m23.349057%201.06232296%20144.339625%20109.41926504-24.410378-59.4900858z%22%20fill%3D%22%23e88f35%22%2F%3E%3Cpath%20d%3D%22m23.349057%201.06232296-19.10377392%2058.42776294%2010.61320772%2063.7393781-7.42924541%204.249292%2010.61320771%209.560906-8.49056617%207.436261%2011.67452847%2010.623229-7.4292454%206.373938%2016.9811323%2021.246459%2079.5990577-24.433428c38.915096-31.161473%2058.018869-47.096318%2057.311322-47.804533-.707548-.708215-48.820756-37.1813036-144.339625-109.41926504z%22%20fill%3D%22%238e5a30%22%2F%3E%3Cg%20transform%3D%22matrix%28-1%200%200%201%20399.056611%200%29%22%3E%3Cpath%20d%3D%22m30.7783023%20181.657226-29.71698153%2086.048161%2074.29245393-4.249293h47.7594343v-37.181303l-2.122641-76.487253-10.613208%208.498583z%22%20fill%3D%22%23f89d35%22%2F%3E%3Cpath%20d%3D%22m87.0283032%20191.218134%2087.0283028%202.124646-9.551886%2044.617563-41.391511-10.623229z%22%20fill%3D%22%23d87c30%22%2F%3E%3Cpath%20d%3D%22m87.0283032%20192.280457%2036.0849058%2033.994334v33.994334z%22%20fill%3D%22%23ea8d3a%22%2F%3E%3Cpath%20d%3D%22m123.113209%20227.337114%2042.452831%2010.623229%2013.79717%2045.679888-9.551886%205.311615-46.698115-27.620398z%22%20fill%3D%22%23f89d35%22%2F%3E%3Cpath%20d%3D%22m123.113209%20261.331448-8.490565%2065.864024%2055.18868-38.243626z%22%20fill%3D%22%23eb8f35%22%2F%3E%3Cpath%20d%3D%22m174.056606%20193.34278%205.306604%2090.297451-15.919812-46.211049z%22%20fill%3D%22%23ea8e3a%22%2F%3E%3Cpath%20d%3D%22m74.2924539%20262.393771%2048.8207551-1.062323-8.490565%2065.864024z%22%20fill%3D%22%23d87c30%22%2F%3E%3Cpath%20d%3D%22m24.4103777%20355.878193%2090.2122663-28.682721-40.3301901-64.801701-73.23113313%205.311616z%22%20fill%3D%22%23eb8f35%22%2F%3E%3Cpath%20d%3D%22m167.688682%20110.481588-45.636793%2038.243627-35.0235858%2042.492919%2087.0283028%203.186969z%22%20fill%3D%22%23e8821e%22%2F%3E%3Cpath%20d%3D%22m132.665096%20212.464593-11.674528%2024.433427%2041.39151-10.623229z%22%20fill%3D%22%23393939%22%20transform%3D%22matrix%28-1%200%200%201%20283.372646%200%29%22%2F%3E%3Cpath%20d%3D%22m23.349057%201.06232296%20144.339625%20109.41926504-24.410378-59.4900858z%22%20fill%3D%22%23e88f35%22%2F%3E%3Cpath%20d%3D%22m23.349057%201.06232296-19.10377392%2058.42776294%2010.61320772%2063.7393781-7.42924541%204.249292%2010.61320771%209.560906-8.49056617%207.436261%2011.67452847%2010.623229-7.4292454%206.373938%2016.9811323%2021.246459%2079.5990577-24.433428c38.915096-31.161473%2058.018869-47.096318%2057.311322-47.804533-.707548-.708215-48.820756-37.1813036-144.339625-109.41926504z%22%20fill%3D%22%238e5a30%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E",supportMobile:!0,mobileDeepLink:"https://metamask.app.link/dapp/$host",switchChain:F,disabled:function(){return!window.ethereum}},fe=Object.values(X),he=Object.values(pe),De=C(C([Ce],p(fe),!1),p(he),!1),ve=exports.__assign(exports.__assign({},X),pe),we=exports.__assign(exports.__assign({},oe),{disabled:function(){return!1},type:exports.WalletType.openBlockIframe,connector:W}),ge=[se.showName,Ce.showName,J.showName];function me(e){var t,n,o=void 0===e?{}:e,r=o.PORTIS_ID,i=o.chainId,a=o.includes,l=o.excludes,s=o.keysSort,c=o.mobileKeysSort,u=o.showSupportExtensionInjected,d=o.afterHooks,f=L(),h=(!a||a.includes(exports.WalletType.injected))&&(!l||!l.includes(exports.WalletType.injected)),D={PORTIS_ID:r},v=[],w=!1;h&&((n=fe.find((function(e){if(!e.disabled)throw new Error("injected wallet need checked");return!e.disabled()})))||(n=Ce),n.connector=function(e,t){return E(void 0,t)},v.push(n),w=!!n.disabled&&!n.disabled());var g=function(e){return!(null==l?void 0:l.includes(e.type))&&(!(e.checked&&e.type!==exports.WalletType.injected&&!e.checked(D))&&(!(i&&e.supportChains&&!e.supportChains.includes(i))&&!(a&&!a.includes(e.type))))};if(f)if(w)g(se)&&v.push(se);else{De.forEach((function(e){return!(!g(e)||!e.supportMobile||e.showName===(null==n?void 0:n.showName))&&(v.push(e),!0)}));var m=(null!==(t=null!=c?c:s)&&void 0!==t?t:[]).map((function(e){var t=ve[e];if(!t)throw new Error("unknown key ".concat(e));return t.showName})).filter((function(e){return!ge.includes(e)})),F=C(C([],p(ge),!1),p(m),!1);v=v.sort((function(e,t){var n=F.indexOf(e.showName),o=F.indexOf(t.showName);return-1===n&&(n=999),-1===o&&(o=999),n-o}))}else{var y=[];if(u&&fe.forEach((function(e){return!(!e.supportExtension||!g(e)||e.showName===(null==n?void 0:n.showName))&&(y.push(e),!0)})),he.forEach((function(e){return!!g(e)&&(y.push(e),!0)})),s){var b=s.map((function(e){var t=ve[e];if(!t)throw new Error("unknown key ".concat(e));return t.showName}));y=y.sort((function(e,t){var n=b.indexOf(e.showName),o=b.indexOf(t.showName);return-1===n&&(n=999),-1===o&&(o=999),n-o}))}v=C(C([],p(v),!1),p(y),!1)}return d?d({isMobile:f,PORTIS_ID:r,chainId:i,includes:a,excludes:l,showSupportExtensionInjected:u,hasInjectedWallet:w,walletList:v}):v}function Ee(){return s(this,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return"undefined"==typeof window||window.top===window?[3,4]:[4,V()];case 1:return[4,e.sent().getIsSafe()];case 2:return e.sent()?[2,ue]:[4,T()];case 3:if(e.sent())return[2,we];e.label=4;case 4:return[2,void 0]}}))}))}function Fe(e){try{return o.getAddress(e)}catch(e){return!1}}var ye,be=[{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"guy",type:"address"},{name:"wad",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"balance",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"},{name:"_spender",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"}],xe=r.create((function(t){return{chainId:1,account:void 0,accounts:void 0,provider:void 0,walletType:void 0,connectLoading:!1,connected:void 0,startConnecting:function(){t((function(){return{connectLoading:!0}}))},connectSuccess:function(e,n,o){return s(void 0,void 0,void 0,(function(){var r,i,a,l,s,u;return c(this,(function(c){switch(c.label){case 0:return t((function(){return{provider:e}})),[4,e.getNetwork()];case 1:return r=c.sent().chainId,[4,e.listAccounts()];case 2:return i=c.sent(),a=p(i,1),l=a[0],s=n.type,(u=s===exports.WalletType.Gnosis)||s!==exports.WalletType.WalletConnect||!l?[3,5]:[4,V()];case 3:return[4,c.sent().getAccountIsSafe(r,l)];case 4:u=c.sent(),c.label=5;case 5:return t((function(){return{accounts:i,account:l,chainId:r,walletType:s,connected:{isAutoConnect:o,wallet:n,isSafe:u},connectLoading:!1}})),[2]}}))}))},connectFailed:function(){t((function(){return{connectLoading:!1}}))},connectionBreak:function(){t((function(){return{connected:void 0}}))},accountsChanged:function(e){var n=p(e,1)[0];t((function(){return{accounts:e,account:n}}))},chainIdChanged:function(e){t((function(){return{chainId:e}}))},setRpcUrlProvider:function(n){return s(void 0,void 0,void 0,(function(){var o,r;return c(this,(function(i){switch(i.label){case 0:return[4,(o=new e.JsonRpcProvider(n)).getNetwork()];case 1:return r=i.sent().chainId,t((function(){return{provider:o,chainId:r,accounts:void 0,account:void 0,walletType:void 0,connected:void 0}})),[2]}}))}))},disconnect:function(n){return s(void 0,void 0,void 0,(function(){var o,r;return c(this,(function(i){switch(i.label){case 0:return n?[4,(o=new e.JsonRpcProvider(n)).getNetwork()]:[3,2];case 1:return r=i.sent().chainId,t((function(){return{provider:o,chainId:r,accounts:void 0,account:void 0,walletType:void 0,connected:void 0}})),[3,3];case 2:t((function(){return{provider:void 0,accounts:void 0,account:void 0,walletType:void 0,connected:void 0}})),i.label=3;case 3:return[2]}}))}))}}}));function _e(){var e=xe.getState().provider;if(!e)throw new Error("provider is undefined");return e}exports.WatchResult=void 0,(ye=exports.WatchResult||(exports.WatchResult={}))[ye.Failed=0]="Failed",ye[ye.Success=1]="Success",ye[ye.Warning=2]="Warning";var Ae=function(e){return s(void 0,void 0,void 0,(function(){var t,n,o,r,i,a;return c(this,(function(l){switch(l.label){case 0:t=e.value,n=e.from,o=e.to,r=e.data,i={from:n,to:o,value:t,data:r},t&&!/^0x0*$/.test(t)||delete i.value,a=_e(),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,a.estimateGas(i)];case 2:return[2,l.sent().add(5e4)];case 3:return l.sent(),a.call(e).then((function(e){if("test"!==process.env.NODE_ENV)throw new Error("Unexpected issue with estimating the gas. Please try again.")})).catch((function(e){if("test"!==process.env.NODE_ENV)throw e})),[3,4];case 4:return[2,null]}}))}))},Le=function(e){return s(void 0,void 0,void 0,(function(){var t,n,o,r,i;return c(this,(function(a){switch(a.label){case 0:t=_e(),a.label=1;case 1:return a.trys.push([1,6,,7]),[4,t.getSigner().sendTransaction(e)];case 2:return n=a.sent(),(null===(i=xe.getState().connected)||void 0===i?void 0:i.isSafe)&&xe.getState().account?[4,V()]:[3,5];case 3:return[4,a.sent().getSafeTxHash(xe.getState().chainId,xe.getState().account,n.hash)];case 4:return o=a.sent(),[2,exports.__assign(exports.__assign({},n),{hash:o})];case 5:return[2,n];case 6:throw 4001===(null==(r=a.sent())?void 0:r.code)?new Error("Transaction rejected."):r;case 7:return[2]}}))}))};function Be(e,o,r){if(!Fe(e)||e===t.AddressZero)throw Error("Invalid 'address' parameter '".concat(e,"'."));var i=null!=r?r:_e(),a=xe.getState().account;return new n.Contract(e,o,function(e,t){return t?function(e,t){return e.getSigner(t).connectUnchecked()}(e,t):e}(i,a))}var ke=new Map;var Me=function(){function e(e){var t=e.cacheKey,n=e.rpcUrl;this._rpcUrl="",this.cacheKey=t,this._rpcUrl=null!=n?n:""}return e.prototype.setCacheType=function(e){localStorage.setItem(this.cacheKey,e)},e.prototype.removeCache=function(){localStorage.removeItem(this.cacheKey)},e.prototype.setRpcUrl=function(e){this._rpcUrl=e},e.prototype.getCacheType=function(){return localStorage.getItem(this.cacheKey)},e.prototype.getConnectedWallet=function(){var e;return s(this,void 0,void 0,(function(){var t,n;return c(this,(function(o){switch(o.label){case 0:return xe.getState().connectLoading?[4,Promise.race([new Promise((function(e){n=xe.subscribe((function(t){!1===t.connectLoading&&e(!0)}))})),new Promise((function(e){t=setTimeout((function(){e(!1)}),4e3)}))])]:[3,2];case 1:o.sent(),clearTimeout(t),n&&n(),o.label=2;case 2:return[2,null===(e=xe.getState().connected)||void 0===e?void 0:e.wallet]}}))}))},e.prototype.connectWallet=function(e,t,n){var o=(void 0===n?{}:n).isAutoConnect;return s(this,void 0,void 0,(function(){var n,r;return c(this,(function(i){switch(i.label){case 0:if(!e)throw new Error("wallet is not valid.");if(!e.connector)throw new Error("".concat(e.showName," is not valid."));return xe.getState().startConnecting(),n=e.type,[4,(0,e.connector)(t,{connect:function(e){var t=e.chainId,n=parseInt(t,16);n&&xe.getState().chainIdChanged(n)},accountsChanged:function(e){xe.getState().accountsChanged(e)},chainChanged:function(e){var t=parseInt(e,16);t&&xe.getState().chainIdChanged(t)},message:function(){},disconnect:function(e){xe.getState().connectionBreak()}})];case 1:return(r=i.sent())?(this.setCacheType(n),this._wallet=e,[4,xe.getState().connectSuccess(r,e,!!o)]):[3,3];case 2:return i.sent(),[3,4];case 3:xe.getState().connectFailed(),i.label=4;case 4:return[2,r]}}))}))},e.prototype.disconnectWallet=function(){var e;return s(this,void 0,void 0,(function(){return c(this,(function(t){switch(t.label){case 0:return this.getCacheType()?(null===(e=this._wallet)||void 0===e?void 0:e.disconnect)?[4,this._wallet.disconnect()]:[3,2]:[2];case 1:t.sent(),t.label=2;case 2:return this._wallet=void 0,this.removeCache(),xe.getState().disconnect(this._rpcUrl),[2]}}))}))},e}(),Oe={cacheKey:"DODO-WALLET-CACHED-PROVIDER"},Pe=function(){function e(e){var t;this.isOpenBlockIframe=!1,this.isSafeIframe=!1;var n=exports.__assign(exports.__assign({},Oe),e),o=n.providerConfig,r=n.walletListConfig,i=n.cacheKey;this.providerConfig=o;var a=me(exports.__assign({PORTIS_ID:null===(t=o.portisParams)||void 0===t?void 0:t.id},r));this.walletListConfig=r,this.connectController=new Me({cacheKey:i,rpcUrl:o.rpcUrl}),this.autoConnect(a)}return e.prototype.autoConnect=function(e){return s(this,void 0,void 0,(function(){var t,n,o,r,i,a=this;return c(this,(function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),t=function(e){return a.connectToWallet(e,void 0,{isAutoConnect:!0})},[4,Ee()];case 1:return(n=l.sent())?[2,t(n)]:(o=this.connectController.getCacheType())&&(r=e.find((function(e){return e.type===o})))?[2,t(r)]:[3,3];case 2:return i=l.sent(),console.error(i),[3,3];case 3:return this.providerConfig.rpcUrl&&xe.getState().setRpcUrlProvider(this.providerConfig.rpcUrl),[2]}}))}))},e.prototype.setRpcUrl=function(e){this.connectController.setRpcUrl(e)},e.prototype.getWalletList=function(e,t){var n;return me(exports.__assign(exports.__assign({PORTIS_ID:null===(n=this.providerConfig.portisParams)||void 0===n?void 0:n.id,chainId:e},this.walletListConfig),t))},e.prototype.connectToWallet=function(e,t,n){return void 0===n&&(n={}),s(this,void 0,void 0,(function(){return c(this,(function(o){return t&&(this.providerConfig=exports.__assign(exports.__assign({},this.providerConfig),t)),[2,this.connectController.connectWallet(e,this.providerConfig,n)]}))}))},e.prototype.getConnectedWallet=function(){return this.connectController.getConnectedWallet()},e.prototype.disconnectWallet=function(){return this.connectController.disconnectWallet()},e.prototype.connectWalletBefore=function(e,t){if(xe.getState().walletType===e.type&&xe.getState().account)return!1;if(t){var n=e.link;return _()?n=e.mobileAndroidDeepLink||e.mobileDeepLink||e.link:A()&&(n=e.mobileIOSDeepLink||e.mobileDeepLink||e.link),n&&window.open(n),!1}return!0},e.prototype.clickWallet=function(e,t,n){this.connectWalletBefore(e,t)&&this.connectToWallet(e,n)},e}();exports.Core=Pe,exports.HD_PATH_LIST=[{path:"m/44'/60'/x'/0/0",name:"Ledger Live"},{path:"m/44'/60'/0'/x",name:"Legacy"}],exports.OpenBlockIframeWallet=we,exports.__awaiter=s,exports.__extends=l,exports.__generator=c,exports.__read=p,exports.__spreadArray=C,exports._tslib=w,exports.allWalletList=De,exports.approve=function(e,t,n){return s(void 0,void 0,void 0,(function(){var o,r,i,a;return c(this,(function(l){switch(l.label){case 0:return o=Be(e,be),r=o.interface.encodeFunctionData("approve",[t,n]),i={from:xe.getState().account,to:e,data:r,value:"0x0",gasLimit:void 0},[4,Ae(i)];case 1:return(a=l.sent())&&(i.gasLimit=a),[4,Le(i)];case 2:return[2,l.sent()]}}))}))},exports.connectOpenBlockIframe=W,exports.convertWeb3Provider=m,exports.getContract=Be,exports.getEstimateGas=Ae,exports.getGasPrice=function(){return s(void 0,void 0,void 0,(function(){var e;return c(this,(function(t){switch(t.label){case 0:e=_e(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,e.getGasPrice()];case 2:return[2,t.sent()];case 3:return t.sent(),e.call({}).then((function(e){throw new Error("Unexpected issue with getting the gas price. Please try again.")})).catch((function(e){throw e})),[3,4];case 4:return[2,null]}}))}))},exports.getGnosisPackage=V,exports.getIsOpenBlockIframe=T,exports.getIsolatedEnvironmentWallet=Ee,exports.getLedgerUSBPackage=H,exports.getPortisConnector=I,exports.getProviderByChain=function(t,n){return s(this,void 0,void 0,(function(){var o;return c(this,(function(r){return!t||t===xe.getState().chainId&&xe.getState().provider?[2,xe.getState().provider]:ke.has(t)?[2,ke.get(t)]:(o=new e.JsonRpcProvider(n),ke.set(t,o),[2,o])}))}))},exports.getUAuthPackage=S,exports.getWalletConnectConnector=j,exports.getWalletDisabledStateFunction=function(){return s(this,void 0,void 0,(function(){var e,t,n,o=this;return c(this,(function(r){switch(r.label){case 0:return e=[],t=[],n=new Set,De.forEach((function(r){if(r.disabled){var i=r.disabled(),a=r.type===exports.WalletType.injected;"boolean"==typeof i?a&&i?e.push(r.showName):i&&n.add(r.type):t.push((function(){return s(o,void 0,void 0,(function(){return c(this,(function(e){switch(e.label){case 0:return[4,i];case 1:return e.sent()&&n.add(r.type),[2]}}))}))}))}})),[4,Promise.all(t.map((function(e){return e()})))];case 1:return r.sent(),[2,function(t){return t.type===exports.WalletType.injected?e.includes(t.showName):n.has(t.type)}]}}))}))},exports.getWalletLinkConnector=N,exports.getWalletList=me,exports.injectedConnect=E,exports.injectedList=fe,exports.injectedListObject=X,exports.registerNetworkWithMetamask=F,exports.sendTransaction=Le,exports.standaloneList=he,exports.standaloneListObject=pe,exports.useWalletStore=xe,exports.watchTx=function(e,t,n,o,r){var i;return s(this,void 0,void 0,(function(){var a,l,s,u,d,C,f,h;return c(this,(function(c){switch(c.label){case 0:a=_e(),c.label=1;case 1:if(t.killSwitch)return[3,11];c.label=2;case 2:return c.trys.push([2,8,,9]),(null===(i=xe.getState().connected)||void 0===i?void 0:i.isSafe)?[4,V()]:[3,5];case 3:return[4,c.sent().getSafeTxStatus(xe.getState().chainId,e,xe.getState().account)];case 4:return"rejected"===(l=c.sent())?[2,{status:exports.WatchResult.Warning,transactionReceipt:null}]:(s=void 0,l&&(s=l.status?exports.WatchResult.Success:exports.WatchResult.Failed),void 0!==s?[2,{status:s,transactionReceipt:l?exports.__assign(exports.__assign({},l),{blockNumber:l.blockNumber||void 0,status:l.status?1:0}):null}]:[3,7]);case 5:return[4,Promise.all([r?r(e):a.getTransactionReceipt(e),a.getTransactionCount(null!=o?o:"")])];case 6:if(u=p.apply(void 0,[c.sent(),2]),d=u[0],C=u[1],console.log("[TX Watch] Web3",d,"/Current Nonce ",C,"/TX Nonce",n),f=void 0,d&&(f=d.status?exports.WatchResult.Success:exports.WatchResult.Failed),void 0===f&&n&&C>n&&(f=exports.WatchResult.Warning),void 0!==f)return[2,{status:f,transactionReceipt:d}];c.label=7;case 7:return[3,9];case 8:return h=c.sent(),console.error("[TX Watch] Error",h.message),[3,9];case 9:return[4,new Promise((function(e){return setTimeout(e,t.interval)}))];case 10:return c.sent(),[3,1];case 11:return[2,null]}}))}))};