@latticexyz/explorer 2.2.22-8bd459b91322f8b9955f6407b95988a7755d27e4 → 2.2.22-8fad4be6941d39fe86b3f0100a04642670ff266a
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.
- package/.next/standalone/packages/explorer/.next/BUILD_ID +1 -1
- package/.next/standalone/packages/explorer/.next/app-build-manifest.json +16 -16
- package/.next/standalone/packages/explorer/.next/app-path-routes-manifest.json +1 -1
- package/.next/standalone/packages/explorer/.next/build-manifest.json +2 -2
- package/.next/standalone/packages/explorer/.next/prerender-manifest.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/page.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/decode/page.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/decode/page.js.nft.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/decode/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page.js.nft.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page.js +4 -4
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page.js.nft.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page.js.nft.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page.js.nft.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/page.js +2 -2
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/_not-found.rsc +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.rsc +1 -1
- package/.next/standalone/packages/explorer/.next/server/app-paths-manifest.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/chunks/3556.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/chunks/6447.js +1589 -0
- package/.next/standalone/packages/explorer/.next/server/middleware-build-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/pages/404.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/pages/500.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/pages-manifest.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/{32eede80-85c994a0375e5712.js → 32eede80-3d2b60efde3ed2c4.js} +1 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/3801-ed3a13745e4924fc.js +1 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/{9644-93501169f7f54008.js → 5464-c221e0c84e03be41.js} +2 -2
- package/.next/standalone/packages/explorer/.next/static/chunks/{4529-2e2939f06c88a750.js → 636-87d0b784b43ddb0e.js} +5 -5
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/layout-1ff4bb31a4326d46.js +1 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/decode/page-79fd74148c7e5bd1.js +1 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/{page-c7510925241d80c7.js → page-0db1fc6ce9f2723b.js} +1 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page-110e24dd0edbecc0.js +1 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/{layout-a65c68e8cbcee142.js → layout-41d934f9feffc36f.js} +1 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/{page-73d4a25564346fa3.js → page-efa99c2cebcdce78.js} +1 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/page-08637e2935bcef6a.js +11 -0
- package/package.json +10 -10
- package/.next/standalone/packages/explorer/.next/server/chunks/6250.js +0 -1589
- package/.next/standalone/packages/explorer/.next/static/chunks/3801-25de7379f179090e.js +0 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/layout-b746beba5501fc5d.js +0 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/decode/page-6a5f1e5ca198717c.js +0 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page-73fe5efae41363e3.js +0 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/page-d90f0a5fe3599e03.js +0 -11
- /package/.next/standalone/packages/explorer/.next/static/{B1ZdrySYdbGSPrQokBb9X → Vx0VB5ONhq6-6kuO1IwdO}/_buildManifest.js +0 -0
- /package/.next/standalone/packages/explorer/.next/static/{B1ZdrySYdbGSPrQokBb9X → Vx0VB5ONhq6-6kuO1IwdO}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,1589 @@
|
|
|
1
|
+
exports.id=6447,exports.ids=[6447],exports.modules={29288:e=>{"use strict";var t={single_source_shortest_paths:function(e,n,r){var a,o,i,s,l,c,u,d={},f={};f[n]=0;var p=t.PriorityQueue.make();for(p.push(n,0);!p.empty();)for(i in o=(a=p.pop()).value,s=a.cost,l=e[o]||{})l.hasOwnProperty(i)&&(c=s+l[i],u=f[i],(void 0===f[i]||u>c)&&(f[i]=c,p.push(i,c),d[i]=o));if(void 0!==r&&void 0===f[r])throw Error(["Could not find a path from ",n," to ",r,"."].join(""));return d},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var a=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(a,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,a={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(a[n]=r[n]);return a.queue=[],a.sorter=e.sorter||r.default_sorter,a},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){this.queue.push({value:e,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},36899:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,i){if("function"!=typeof r)throw TypeError("The listener must be a function");var s=new a(r,o||e,i),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,a=[];if(0===this._eventsCount)return a;for(r in e=this._events)t.call(e,r)&&a.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var a=0,o=r.length,i=Array(o);a<o;a++)i[a]=r[a].fn;return i},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,a,o,i){var s=n?n+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,a),!0;case 5:return u.fn.call(u.context,t,r,a,o),!0;case 6:return u.fn.call(u.context,t,r,a,o,i),!0}for(c=1,l=Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var f,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,a);break;default:if(!l)for(f=1,l=Array(d-1);f<d;f++)l[f-1]=arguments[f];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,a){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return i(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||a&&!s.once||r&&s.context!==r||i(this,o);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||a&&!s[l].once||r&&s[l].context!==r)&&c.push(s[l]);c.length?this._events[o]=1===c.length?c[0]:c:i(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},65637:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});/**
|
|
2
|
+
* @license lucide-react v0.408.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/let r=(0,n(86278).Z)("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]])},51740:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});/**
|
|
7
|
+
* @license lucide-react v0.408.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/let r=(0,n(86278).Z)("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]])},71424:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});/**
|
|
12
|
+
* @license lucide-react v0.408.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/let r=(0,n(86278).Z)("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]])},73766:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});/**
|
|
17
|
+
* @license lucide-react v0.408.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/let r=(0,n(86278).Z)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},90881:(e,t,n)=>{"use strict";let r=n(88470),a=[function(){},function(e,t,n,r){if(r===t.length)throw Error("Ran out of data");let a=t[r];e[n]=a,e[n+1]=a,e[n+2]=a,e[n+3]=255},function(e,t,n,r){if(r+1>=t.length)throw Error("Ran out of data");let a=t[r];e[n]=a,e[n+1]=a,e[n+2]=a,e[n+3]=t[r+1]},function(e,t,n,r){if(r+2>=t.length)throw Error("Ran out of data");e[n]=t[r],e[n+1]=t[r+1],e[n+2]=t[r+2],e[n+3]=255},function(e,t,n,r){if(r+3>=t.length)throw Error("Ran out of data");e[n]=t[r],e[n+1]=t[r+1],e[n+2]=t[r+2],e[n+3]=t[r+3]}],o=[function(){},function(e,t,n,r){let a=t[0];e[n]=a,e[n+1]=a,e[n+2]=a,e[n+3]=r},function(e,t,n){let r=t[0];e[n]=r,e[n+1]=r,e[n+2]=r,e[n+3]=t[1]},function(e,t,n,r){e[n]=t[0],e[n+1]=t[1],e[n+2]=t[2],e[n+3]=r},function(e,t,n){e[n]=t[0],e[n+1]=t[1],e[n+2]=t[2],e[n+3]=t[3]}];t.dataToBitMap=function(e,t){let n,i,s,l,c=t.width,u=t.height,d=t.depth,f=t.bpp,p=t.interlace;if(8!==d){let t,r;t=[],r=0,n={get:function(n){for(;t.length<n;)!function(){let n,a,o,i,s,l,c,u;if(r===e.length)throw Error("Ran out of data");let f=e[r];switch(r++,d){default:throw Error("unrecognised depth");case 16:c=e[r],r++,t.push((f<<8)+c);break;case 4:c=15&f,u=f>>4,t.push(u,c);break;case 2:s=3&f,l=f>>2&3,c=f>>4&3,u=f>>6&3,t.push(u,c,l,s);break;case 1:n=1&f,a=f>>1&1,o=f>>2&1,i=f>>3&1,s=f>>4&1,l=f>>5&1,c=f>>6&1,u=f>>7&1,t.push(u,c,l,s,i,o,a,n)}}();let a=t.slice(0,n);return t=t.slice(n),a},resetAfterLine:function(){t.length=0},end:function(){if(r!==e.length)throw Error("extra data found")}}}i=d<=8?Buffer.alloc(c*u*4):new Uint16Array(c*u*4);let h=Math.pow(2,d)-1,m=0;if(p)s=r.getImagePasses(c,u),l=r.getInterlaceIterator(c,u);else{let e=0;l=function(){let t=e;return e+=4,t},s=[{width:c,height:u}]}for(let t=0;t<s.length;t++)8===d?m=function(e,t,n,r,o,i){let s=e.width,l=e.height,c=e.index;for(let e=0;e<l;e++)for(let l=0;l<s;l++){let s=n(l,e,c);a[r](t,o,s,i),i+=r}return i}(s[t],i,l,f,e,m):function(e,t,n,r,a,i){let s=e.width,l=e.height,c=e.index;for(let e=0;e<l;e++){for(let l=0;l<s;l++){let s=a.get(r),u=n(l,e,c);o[r](t,s,u,i)}a.resetAfterLine()}}(s[t],i,l,f,n,h);if(8===d){if(m!==e.length)throw Error("extra data found")}else n.end();return i}},49469:(e,t,n)=>{"use strict";let r=n(20969);e.exports=function(e,t,n,a){let o=-1!==[r.COLORTYPE_COLOR_ALPHA,r.COLORTYPE_ALPHA].indexOf(a.colorType);if(a.colorType===a.inputColorType){let t;let n=(new DataView(t=new ArrayBuffer(2)).setInt16(0,256,!0),256!==new Int16Array(t)[0]);if(8===a.bitDepth||16===a.bitDepth&&n)return e}let i=16!==a.bitDepth?e:new Uint16Array(e.buffer),s=255,l=r.COLORTYPE_TO_BPP_MAP[a.inputColorType];4!==l||a.inputHasAlpha||(l=3);let c=r.COLORTYPE_TO_BPP_MAP[a.colorType];16===a.bitDepth&&(s=65535,c*=2);let u=Buffer.alloc(t*n*c),d=0,f=0,p=a.bgColor||{};void 0===p.red&&(p.red=s),void 0===p.green&&(p.green=s),void 0===p.blue&&(p.blue=s);for(let e=0;e<n;e++)for(let e=0;e<t;e++){let e=function(){let e,t,n;let l=s;switch(a.inputColorType){case r.COLORTYPE_COLOR_ALPHA:l=i[d+3],e=i[d],t=i[d+1],n=i[d+2];break;case r.COLORTYPE_COLOR:e=i[d],t=i[d+1],n=i[d+2];break;case r.COLORTYPE_ALPHA:l=i[d+1],t=e=i[d],n=e;break;case r.COLORTYPE_GRAYSCALE:t=e=i[d],n=e;break;default:throw Error("input color type:"+a.inputColorType+" is not supported at present")}return a.inputHasAlpha&&!o&&(l/=s,e=Math.min(Math.max(Math.round((1-l)*p.red+l*e),0),s),t=Math.min(Math.max(Math.round((1-l)*p.green+l*t),0),s),n=Math.min(Math.max(Math.round((1-l)*p.blue+l*n),0),s)),{red:e,green:t,blue:n,alpha:l}}(i,d);switch(a.colorType){case r.COLORTYPE_COLOR_ALPHA:case r.COLORTYPE_COLOR:8===a.bitDepth?(u[f]=e.red,u[f+1]=e.green,u[f+2]=e.blue,o&&(u[f+3]=e.alpha)):(u.writeUInt16BE(e.red,f),u.writeUInt16BE(e.green,f+2),u.writeUInt16BE(e.blue,f+4),o&&u.writeUInt16BE(e.alpha,f+6));break;case r.COLORTYPE_ALPHA:case r.COLORTYPE_GRAYSCALE:{let t=(e.red+e.green+e.blue)/3;8===a.bitDepth?(u[f]=t,o&&(u[f+1]=e.alpha)):(u.writeUInt16BE(t,f),o&&u.writeUInt16BE(e.alpha,f+2));break}default:throw Error("unrecognised color Type "+a.colorType)}d+=l,f+=c}return u}},45144:(e,t,n)=>{"use strict";let r=n(73837),a=n(12781),o=e.exports=function(){a.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};r.inherits(o,a),o.prototype.read=function(e,t){this._reads.push({length:Math.abs(e),allowLess:e<0,func:t}),process.nextTick((function(){this._process(),this._paused&&this._reads&&this._reads.length>0&&(this._paused=!1,this.emit("drain"))}).bind(this))},o.prototype.write=function(e,t){let n;return this.writable?(Buffer.isBuffer(e)?n=e:n=Buffer.from(e,t||this._encoding),this._buffers.push(n),this._buffered+=n.length,this._process(),this._reads&&0===this._reads.length&&(this._paused=!0),this.writable&&!this._paused):(this.emit("error",Error("Stream not writable")),!1)},o.prototype.end=function(e,t){e&&this.write(e,t),this.writable=!1,this._buffers&&(0===this._buffers.length?this._end():(this._buffers.push(null),this._process()))},o.prototype.destroySoon=o.prototype.end,o.prototype._end=function(){this._reads.length>0&&this.emit("error",Error("Unexpected end of input")),this.destroy()},o.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))},o.prototype._processReadAllowingLess=function(e){this._reads.shift();let t=this._buffers[0];t.length>e.length?(this._buffered-=e.length,this._buffers[0]=t.slice(e.length),e.func.call(this,t.slice(0,e.length))):(this._buffered-=t.length,this._buffers.shift(),e.func.call(this,t))},o.prototype._processRead=function(e){this._reads.shift();let t=0,n=0,r=Buffer.alloc(e.length);for(;t<e.length;){let a=this._buffers[n++],o=Math.min(a.length,e.length-t);a.copy(r,t,0,o),t+=o,o!==a.length&&(this._buffers[--n]=a.slice(o))}n>0&&this._buffers.splice(0,n),this._buffered-=e.length,e.func.call(this,r)},o.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){let e=this._reads[0];if(e.allowLess)this._processReadAllowingLess(e);else if(this._buffered>=e.length)this._processRead(e);else break}this._buffers&&!this.writable&&this._end()}catch(e){this.emit("error",e)}}},20969:e=>{"use strict";e.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}},97920:e=>{"use strict";let t=[];!function(){for(let e=0;e<256;e++){let n=e;for(let e=0;e<8;e++)1&n?n=3988292384^n>>>1:n>>>=1;t[e]=n}}();let n=e.exports=function(){this._crc=-1};n.prototype.write=function(e){for(let n=0;n<e.length;n++)this._crc=t[(this._crc^e[n])&255]^this._crc>>>8;return!0},n.prototype.crc32=function(){return -1^this._crc},n.crc32=function(e){let n=-1;for(let r=0;r<e.length;r++)n=t[(n^e[r])&255]^n>>>8;return -1^n}},92960:(e,t,n)=>{"use strict";let r=n(81547),a={0:function(e,t,n,r,a){for(let o=0;o<n;o++)r[a+o]=e[t+o]},1:function(e,t,n,r,a,o){for(let i=0;i<n;i++){let n=i>=o?e[t+i-o]:0,s=e[t+i]-n;r[a+i]=s}},2:function(e,t,n,r,a){for(let o=0;o<n;o++){let i=t>0?e[t+o-n]:0,s=e[t+o]-i;r[a+o]=s}},3:function(e,t,n,r,a,o){for(let i=0;i<n;i++){let s=i>=o?e[t+i-o]:0,l=t>0?e[t+i-n]:0,c=e[t+i]-(s+l>>1);r[a+i]=c}},4:function(e,t,n,a,o,i){for(let s=0;s<n;s++){let l=s>=i?e[t+s-i]:0,c=t>0?e[t+s-n]:0,u=t>0&&s>=i?e[t+s-(n+i)]:0,d=e[t+s]-r(l,c,u);a[o+s]=d}}},o={0:function(e,t,n){let r=0,a=t+n;for(let n=t;n<a;n++)r+=Math.abs(e[n]);return r},1:function(e,t,n,r){let a=0;for(let o=0;o<n;o++){let n=o>=r?e[t+o-r]:0;a+=Math.abs(e[t+o]-n)}return a},2:function(e,t,n){let r=0,a=t+n;for(let o=t;o<a;o++){let a=t>0?e[o-n]:0;r+=Math.abs(e[o]-a)}return r},3:function(e,t,n,r){let a=0;for(let o=0;o<n;o++){let i=o>=r?e[t+o-r]:0,s=t>0?e[t+o-n]:0;a+=Math.abs(e[t+o]-(i+s>>1))}return a},4:function(e,t,n,a){let o=0;for(let i=0;i<n;i++){let s=i>=a?e[t+i-a]:0,l=t>0?e[t+i-n]:0,c=t>0&&i>=a?e[t+i-(n+a)]:0;o+=Math.abs(e[t+i]-r(s,l,c))}return o}};e.exports=function(e,t,n,r,i){let s;if("filterType"in r&&-1!==r.filterType){if("number"==typeof r.filterType)s=[r.filterType];else throw Error("unrecognised filter types")}else s=[0,1,2,3,4];16===r.bitDepth&&(i*=2);let l=t*i,c=0,u=0,d=Buffer.alloc((l+1)*n),f=s[0];for(let t=0;t<n;t++){if(s.length>1){let t=1/0;for(let n=0;n<s.length;n++){let r=o[s[n]](e,u,l,i);r<t&&(f=s[n],t=r)}}d[c]=f,c++,a[f](e,u,l,d,c,i),c+=l,u+=l}return d}},26140:(e,t,n)=>{"use strict";let r=n(73837),a=n(45144),o=n(26218),i=e.exports=function(e){a.call(this);let t=[],n=this;this._filter=new o(e,{read:this.read.bind(this),write:function(e){t.push(e)},complete:function(){n.emit("complete",Buffer.concat(t))}}),this._filter.start()};r.inherits(i,a)},83814:(e,t,n)=>{"use strict";let r=n(61161),a=n(26218);t.process=function(e,t){let n=[],o=new r(e);return new a(t,{read:o.read.bind(o),write:function(e){n.push(e)},complete:function(){}}).start(),o.process(),Buffer.concat(n)}},26218:(e,t,n)=>{"use strict";let r=n(88470),a=n(81547);function o(e,t,n){let r=e*t;return 8!==n&&(r=Math.ceil(r/(8/n))),r}let i=e.exports=function(e,t){let n=e.width,a=e.height,i=e.interlace,s=e.bpp,l=e.depth;if(this.read=t.read,this.write=t.write,this.complete=t.complete,this._imageIndex=0,this._images=[],i){let e=r.getImagePasses(n,a);for(let t=0;t<e.length;t++)this._images.push({byteWidth:o(e[t].width,s,l),height:e[t].height,lineIndex:0})}else this._images.push({byteWidth:o(n,s,l),height:a,lineIndex:0});8===l?this._xComparison=s:16===l?this._xComparison=2*s:this._xComparison=1};i.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))},i.prototype._unFilterType1=function(e,t,n){let r=this._xComparison,a=r-1;for(let o=0;o<n;o++){let n=e[1+o],i=o>a?t[o-r]:0;t[o]=n+i}},i.prototype._unFilterType2=function(e,t,n){let r=this._lastLine;for(let a=0;a<n;a++){let n=e[1+a],o=r?r[a]:0;t[a]=n+o}},i.prototype._unFilterType3=function(e,t,n){let r=this._xComparison,a=r-1,o=this._lastLine;for(let i=0;i<n;i++){let n=e[1+i],s=o?o[i]:0,l=Math.floor(((i>a?t[i-r]:0)+s)/2);t[i]=n+l}},i.prototype._unFilterType4=function(e,t,n){let r=this._xComparison,o=r-1,i=this._lastLine;for(let s=0;s<n;s++){let n=e[1+s],l=i?i[s]:0,c=a(s>o?t[s-r]:0,l,s>o&&i?i[s-r]:0);t[s]=n+c}},i.prototype._reverseFilterLine=function(e){let t,n=e[0],r=this._images[this._imageIndex],a=r.byteWidth;if(0===n)t=e.slice(1,a+1);else switch(t=Buffer.alloc(a),n){case 1:this._unFilterType1(e,t,a);break;case 2:this._unFilterType2(e,t,a);break;case 3:this._unFilterType3(e,t,a);break;case 4:this._unFilterType4(e,t,a);break;default:throw Error("Unrecognised filter type - "+n)}this.write(t),r.lineIndex++,r.lineIndex>=r.height?(this._lastLine=null,this._imageIndex++,r=this._images[this._imageIndex]):this._lastLine=t,r?this.read(r.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}},15907:e=>{"use strict";e.exports=function(e,t){let n=t.depth,r=t.width,a=t.height,o=t.colorType,i=t.transColor,s=t.palette,l=e;return 3===o?function(e,t,n,r,a){let o=0;for(let i=0;i<r;i++)for(let r=0;r<n;r++){let n=a[e[o]];if(!n)throw Error("index "+e[o]+" not in palette");for(let e=0;e<4;e++)t[o+e]=n[e];o+=4}}(e,l,r,a,s):(i&&function(e,t,n,r,a){let o=0;for(let i=0;i<r;i++)for(let r=0;r<n;r++){let n=!1;if(1===a.length?a[0]===e[o]&&(n=!0):a[0]===e[o]&&a[1]===e[o+1]&&a[2]===e[o+2]&&(n=!0),n)for(let e=0;e<4;e++)t[o+e]=0;o+=4}}(e,l,r,a,i),8!==n&&(16===n&&(l=Buffer.alloc(r*a*4)),function(e,t,n,r,a){let o=Math.pow(2,a)-1,i=0;for(let a=0;a<r;a++)for(let r=0;r<n;r++){for(let n=0;n<4;n++)t[i+n]=Math.floor(255*e[i+n]/o+.5);i+=4}}(e,l,r,a,n))),l}},88470:(e,t)=>{"use strict";let n=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];t.getImagePasses=function(e,t){let r=[],a=e%8,o=t%8,i=(e-a)/8,s=(t-o)/8;for(let e=0;e<n.length;e++){let t=n[e],l=i*t.x.length,c=s*t.y.length;for(let e=0;e<t.x.length;e++)if(t.x[e]<a)l++;else break;for(let e=0;e<t.y.length;e++)if(t.y[e]<o)c++;else break;l>0&&c>0&&r.push({width:l,height:c,index:e})}return r},t.getInterlaceIterator=function(e){return function(t,r,a){let o=t%n[a].x.length,i=(t-o)/n[a].x.length*8+n[a].x[o],s=r%n[a].y.length;return 4*i+((r-s)/n[a].y.length*8+n[a].y[s])*e*4}}},83540:(e,t,n)=>{"use strict";let r=n(73837),a=n(12781),o=n(20969),i=n(76594),s=e.exports=function(e){a.call(this),this._packer=new i(e||{}),this._deflate=this._packer.createDeflate(),this.readable=!0};r.inherits(s,a),s.prototype.pack=function(e,t,n,r){this.emit("data",Buffer.from(o.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(t,n)),r&&this.emit("data",this._packer.packGAMA(r));let a=this._packer.filterData(e,t,n);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",(function(e){this.emit("data",this._packer.packIDAT(e))}).bind(this)),this._deflate.on("end",(function(){this.emit("data",this._packer.packIEND()),this.emit("end")}).bind(this)),this._deflate.end(a)}},27929:(e,t,n)=>{"use strict";let r=!0,a=n(59796);a.deflateSync||(r=!1);let o=n(20969),i=n(76594);e.exports=function(e,t){if(!r)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let n=new i(t||{}),s=[];s.push(Buffer.from(o.PNG_SIGNATURE)),s.push(n.packIHDR(e.width,e.height)),e.gamma&&s.push(n.packGAMA(e.gamma));let l=n.filterData(e.data,e.width,e.height),c=a.deflateSync(l,n.getDeflateOptions());if(l=null,!c||!c.length)throw Error("bad png - invalid compressed data response");return s.push(n.packIDAT(c)),s.push(n.packIEND()),Buffer.concat(s)}},76594:(e,t,n)=>{"use strict";let r=n(20969),a=n(97920),o=n(49469),i=n(92960),s=n(59796),l=e.exports=function(e){if(this._options=e,e.deflateChunkSize=e.deflateChunkSize||32768,e.deflateLevel=null!=e.deflateLevel?e.deflateLevel:9,e.deflateStrategy=null!=e.deflateStrategy?e.deflateStrategy:3,e.inputHasAlpha=null==e.inputHasAlpha||e.inputHasAlpha,e.deflateFactory=e.deflateFactory||s.createDeflate,e.bitDepth=e.bitDepth||8,e.colorType="number"==typeof e.colorType?e.colorType:r.COLORTYPE_COLOR_ALPHA,e.inputColorType="number"==typeof e.inputColorType?e.inputColorType:r.COLORTYPE_COLOR_ALPHA,-1===[r.COLORTYPE_GRAYSCALE,r.COLORTYPE_COLOR,r.COLORTYPE_COLOR_ALPHA,r.COLORTYPE_ALPHA].indexOf(e.colorType))throw Error("option color type:"+e.colorType+" is not supported at present");if(-1===[r.COLORTYPE_GRAYSCALE,r.COLORTYPE_COLOR,r.COLORTYPE_COLOR_ALPHA,r.COLORTYPE_ALPHA].indexOf(e.inputColorType))throw Error("option input color type:"+e.inputColorType+" is not supported at present");if(8!==e.bitDepth&&16!==e.bitDepth)throw Error("option bit depth:"+e.bitDepth+" is not supported at present")};l.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}},l.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())},l.prototype.filterData=function(e,t,n){let a=o(e,t,n,this._options),s=r.COLORTYPE_TO_BPP_MAP[this._options.colorType];return i(a,t,n,this._options,s)},l.prototype._packChunk=function(e,t){let n=t?t.length:0,r=Buffer.alloc(n+12);return r.writeUInt32BE(n,0),r.writeUInt32BE(e,4),t&&t.copy(r,8),r.writeInt32BE(a.crc32(r.slice(4,r.length-4)),r.length-4),r},l.prototype.packGAMA=function(e){let t=Buffer.alloc(4);return t.writeUInt32BE(Math.floor(e*r.GAMMA_DIVISION),0),this._packChunk(r.TYPE_gAMA,t)},l.prototype.packIHDR=function(e,t){let n=Buffer.alloc(13);return n.writeUInt32BE(e,0),n.writeUInt32BE(t,4),n[8]=this._options.bitDepth,n[9]=this._options.colorType,n[10]=0,n[11]=0,n[12]=0,this._packChunk(r.TYPE_IHDR,n)},l.prototype.packIDAT=function(e){return this._packChunk(r.TYPE_IDAT,e)},l.prototype.packIEND=function(){return this._packChunk(r.TYPE_IEND,null)}},81547:e=>{"use strict";e.exports=function(e,t,n){let r=e+t-n,a=Math.abs(r-e),o=Math.abs(r-t),i=Math.abs(r-n);return a<=o&&a<=i?e:o<=i?t:n}},41217:(e,t,n)=>{"use strict";let r=n(73837),a=n(59796),o=n(45144),i=n(26140),s=n(1940),l=n(90881),c=n(15907),u=e.exports=function(e){o.call(this),this._parser=new s(e,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=e,this.writable=!0,this._parser.start()};r.inherits(u,o),u.prototype._handleError=function(e){this.emit("error",e),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy&&this._inflate.destroy(),this._filter&&(this._filter.destroy(),this._filter.on("error",function(){})),this.errord=!0},u.prototype._inflateData=function(e){if(!this._inflate){if(this._bitmapInfo.interlace)this._inflate=a.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let e=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,t=Math.max(e,a.Z_MIN_CHUNK);this._inflate=a.createInflate({chunkSize:t});let n=e,r=this.emit.bind(this,"error");this._inflate.on("error",function(e){n&&r(e)}),this._filter.on("complete",this._complete.bind(this));let o=this._filter.write.bind(this._filter);this._inflate.on("data",function(e){n&&(e.length>n&&(e=e.slice(0,n)),n-=e.length,o(e))}),this._inflate.on("end",this._filter.end.bind(this._filter))}}this._inflate.write(e)},u.prototype._handleMetaData=function(e){this._metaData=e,this._bitmapInfo=Object.create(e),this._filter=new i(this._bitmapInfo)},u.prototype._handleTransColor=function(e){this._bitmapInfo.transColor=e},u.prototype._handlePalette=function(e){this._bitmapInfo.palette=e},u.prototype._simpleTransparency=function(){this._metaData.alpha=!0},u.prototype._headersFinished=function(){this.emit("metadata",this._metaData)},u.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"))},u.prototype._complete=function(e){let t;if(!this.errord){try{let n=l.dataToBitMap(e,this._bitmapInfo);t=c(n,this._bitmapInfo),n=null}catch(e){this._handleError(e);return}this.emit("parsed",t)}}},45254:(e,t,n)=>{"use strict";let r=!0,a=n(59796),o=n(75250);a.deflateSync||(r=!1);let i=n(61161),s=n(83814),l=n(1940),c=n(90881),u=n(15907);e.exports=function(e,t){let n,d,f,p;if(!r)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let h=[],m=new i(e);if(new l(t,{read:m.read.bind(m),error:function(e){n=e},metadata:function(e){d=e},gamma:function(e){f=e},palette:function(e){d.palette=e},transColor:function(e){d.transColor=e},inflateData:function(e){h.push(e)},simpleTransparency:function(){d.alpha=!0}}).start(),m.process(),n)throw n;let g=Buffer.concat(h);if(h.length=0,d.interlace)p=a.inflateSync(g);else{let e=((d.width*d.bpp*d.depth+7>>3)+1)*d.height;p=o(g,{chunkSize:e,maxLength:e})}if(g=null,!p||!p.length)throw Error("bad png - invalid inflate data response");let y=s.process(p,d);g=null;let b=c.dataToBitMap(y,d);y=null;let w=u(b,d);return d.data=w,d.gamma=f||0,d}},1940:(e,t,n)=>{"use strict";let r=n(20969),a=n(97920),o=e.exports=function(e,t){this._options=e,e.checkCRC=!1!==e.checkCRC,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[r.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[r.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[r.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[r.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[r.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[r.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=t.read,this.error=t.error,this.metadata=t.metadata,this.gamma=t.gamma,this.transColor=t.transColor,this.palette=t.palette,this.parsed=t.parsed,this.inflateData=t.inflateData,this.finished=t.finished,this.simpleTransparency=t.simpleTransparency,this.headersFinished=t.headersFinished||function(){}};o.prototype.start=function(){this.read(r.PNG_SIGNATURE.length,this._parseSignature.bind(this))},o.prototype._parseSignature=function(e){let t=r.PNG_SIGNATURE;for(let n=0;n<t.length;n++)if(e[n]!==t[n]){this.error(Error("Invalid file signature"));return}this.read(8,this._parseChunkBegin.bind(this))},o.prototype._parseChunkBegin=function(e){let t=e.readUInt32BE(0),n=e.readUInt32BE(4),o="";for(let t=4;t<8;t++)o+=String.fromCharCode(e[t]);let i=!!(32&e[4]);if(!this._hasIHDR&&n!==r.TYPE_IHDR){this.error(Error("Expected IHDR on beggining"));return}if(this._crc=new a,this._crc.write(Buffer.from(o)),this._chunks[n])return this._chunks[n](t);if(!i){this.error(Error("Unsupported critical chunk type "+o));return}this.read(t+4,this._skipChunk.bind(this))},o.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))},o.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))},o.prototype._parseChunkEnd=function(e){let t=e.readInt32BE(0),n=this._crc.crc32();if(this._options.checkCRC&&n!==t){this.error(Error("Crc error - "+t+" - "+n));return}this._hasIEND||this.read(8,this._parseChunkBegin.bind(this))},o.prototype._handleIHDR=function(e){this.read(e,this._parseIHDR.bind(this))},o.prototype._parseIHDR=function(e){this._crc.write(e);let t=e.readUInt32BE(0),n=e.readUInt32BE(4),a=e[8],o=e[9],i=e[10],s=e[11],l=e[12];if(8!==a&&4!==a&&2!==a&&1!==a&&16!==a){this.error(Error("Unsupported bit depth "+a));return}if(!(o in r.COLORTYPE_TO_BPP_MAP)){this.error(Error("Unsupported color type"));return}if(0!==i){this.error(Error("Unsupported compression method"));return}if(0!==s){this.error(Error("Unsupported filter method"));return}if(0!==l&&1!==l){this.error(Error("Unsupported interlace method"));return}this._colorType=o;let c=r.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:t,height:n,depth:a,interlace:!!l,palette:!!(o&r.COLORTYPE_PALETTE),color:!!(o&r.COLORTYPE_COLOR),alpha:!!(o&r.COLORTYPE_ALPHA),bpp:c,colorType:o}),this._handleChunkEnd()},o.prototype._handlePLTE=function(e){this.read(e,this._parsePLTE.bind(this))},o.prototype._parsePLTE=function(e){this._crc.write(e);let t=Math.floor(e.length/3);for(let n=0;n<t;n++)this._palette.push([e[3*n],e[3*n+1],e[3*n+2],255]);this.palette(this._palette),this._handleChunkEnd()},o.prototype._handleTRNS=function(e){this.simpleTransparency(),this.read(e,this._parseTRNS.bind(this))},o.prototype._parseTRNS=function(e){if(this._crc.write(e),this._colorType===r.COLORTYPE_PALETTE_COLOR){if(0===this._palette.length){this.error(Error("Transparency chunk must be after palette"));return}if(e.length>this._palette.length){this.error(Error("More transparent colors than palette size"));return}for(let t=0;t<e.length;t++)this._palette[t][3]=e[t];this.palette(this._palette)}this._colorType===r.COLORTYPE_GRAYSCALE&&this.transColor([e.readUInt16BE(0)]),this._colorType===r.COLORTYPE_COLOR&&this.transColor([e.readUInt16BE(0),e.readUInt16BE(2),e.readUInt16BE(4)]),this._handleChunkEnd()},o.prototype._handleGAMA=function(e){this.read(e,this._parseGAMA.bind(this))},o.prototype._parseGAMA=function(e){this._crc.write(e),this.gamma(e.readUInt32BE(0)/r.GAMMA_DIVISION),this._handleChunkEnd()},o.prototype._handleIDAT=function(e){this._emittedHeadersFinished||(this._emittedHeadersFinished=!0,this.headersFinished()),this.read(-e,this._parseIDAT.bind(this,e))},o.prototype._parseIDAT=function(e,t){if(this._crc.write(t),this._colorType===r.COLORTYPE_PALETTE_COLOR&&0===this._palette.length)throw Error("Expected palette not found");this.inflateData(t);let n=e-t.length;n>0?this._handleIDAT(n):this._handleChunkEnd()},o.prototype._handleIEND=function(e){this.read(e,this._parseIEND.bind(this))},o.prototype._parseIEND=function(e){this._crc.write(e),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}},92543:(e,t,n)=>{"use strict";let r=n(45254),a=n(27929);t.read=function(e,t){return r(e,t||{})},t.write=function(e,t){return a(e,t)}},52031:(e,t,n)=>{"use strict";let r=n(73837),a=n(12781),o=n(41217),i=n(83540),s=n(92543),l=t.y=function(e){a.call(this),e=e||{},this.width=0|e.width,this.height=0|e.height,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,e.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new o(e),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",(function(e){this.data=e,this.emit("parsed",e)}).bind(this)),this._packer=new i(e),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};r.inherits(l,a),l.sync=s,l.prototype.pack=function(){return this.data&&this.data.length?process.nextTick((function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}).bind(this)):this.emit("error","No data provided"),this},l.prototype.parse=function(e,t){if(t){let e,n;e=(function(e){this.removeListener("error",n),this.data=e,t(null,this)}).bind(this),n=(function(n){this.removeListener("parsed",e),t(n,null)}).bind(this),this.once("parsed",e),this.once("error",n)}return this.end(e),this},l.prototype.write=function(e){return this._parser.write(e),!0},l.prototype.end=function(e){this._parser.end(e)},l.prototype._metadata=function(e){this.width=e.width,this.height=e.height,this.emit("metadata",e)},l.prototype._gamma=function(e){this.gamma=e},l.prototype._handleClose=function(){this._parser.writable||this._packer.readable||this.emit("close")},l.bitblt=function(e,t,n,r,a,o,i,s){if(r|=0,a|=0,o|=0,i|=0,s|=0,(n|=0)>e.width||r>e.height||n+a>e.width||r+o>e.height)throw Error("bitblt reading outside image");if(i>t.width||s>t.height||i+a>t.width||s+o>t.height)throw Error("bitblt writing outside image");for(let l=0;l<o;l++)e.data.copy(t.data,(s+l)*t.width+i<<2,(r+l)*e.width+n<<2,(r+l)*e.width+n+a<<2)},l.prototype.bitblt=function(e,t,n,r,a,o,i){return l.bitblt(this,e,t,n,r,a,o,i),this},l.adjustGamma=function(e){if(e.gamma){for(let t=0;t<e.height;t++)for(let n=0;n<e.width;n++){let r=e.width*t+n<<2;for(let t=0;t<3;t++){let n=e.data[r+t]/255;n=Math.pow(n,1/2.2/e.gamma),e.data[r+t]=Math.round(255*n)}}e.gamma=0}},l.prototype.adjustGamma=function(){l.adjustGamma(this)}},75250:(e,t,n)=>{"use strict";let r=n(39491).ok,a=n(59796),o=n(73837),i=n(14300).kMaxLength;function s(e){if(!(this instanceof s))return new s(e);e&&e.chunkSize<a.Z_MIN_CHUNK&&(e.chunkSize=a.Z_MIN_CHUNK),a.Inflate.call(this,e),this._offset=void 0===this._offset?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,e&&null!=e.maxLength&&(this._maxLength=e.maxLength)}function l(e,t){t&&process.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function c(e,t){return function(e,t){if("string"==typeof t&&(t=Buffer.from(t)),!(t instanceof Buffer))throw TypeError("Not a string or buffer");let n=e._finishFlushFlag;return null==n&&(n=a.Z_FINISH),e._processChunk(t,n)}(new s(t),e)}s.prototype._processChunk=function(e,t,n){let o,s;if("function"==typeof n)return a.Inflate._processChunk.call(this,e,t,n);let c=this,u=e&&e.length,d=this._chunkSize-this._offset,f=this._maxLength,p=0,h=[],m=0;this.on("error",function(e){o=e}),r(this._handle,"zlib binding closed");do s=(s=this._handle.writeSync(t,e,p,u,this._buffer,this._offset,d))||this._writeState;while(!this._hadError&&function(e,t){if(c._hadError)return;let n=d-t;if(r(n>=0,"have should not go down"),n>0){let e=c._buffer.slice(c._offset,c._offset+n);if(c._offset+=n,e.length>f&&(e=e.slice(0,f)),h.push(e),m+=e.length,0==(f-=e.length))return!1}return(0===t||c._offset>=c._chunkSize)&&(d=c._chunkSize,c._offset=0,c._buffer=Buffer.allocUnsafe(c._chunkSize)),0===t&&(p+=u-e,u=e,!0)}(s[0],s[1]));if(this._hadError)throw o;if(m>=i)throw l(this),RangeError("Cannot create final Buffer. It would be larger than 0x"+i.toString(16)+" bytes");let g=Buffer.concat(h,m);return l(this),g},o.inherits(s,a.Inflate),e.exports=t=c,t.Inflate=s,t.createInflate=function(e){return new s(e)},t.inflateSync=c},61161:e=>{"use strict";let t=e.exports=function(e){this._buffer=e,this._reads=[]};t.prototype.read=function(e,t){this._reads.push({length:Math.abs(e),allowLess:e<0,func:t})},t.prototype.process=function(){for(;this._reads.length>0&&this._buffer.length;){let e=this._reads[0];if(this._buffer.length&&(this._buffer.length>=e.length||e.allowLess)){this._reads.shift();let t=this._buffer;this._buffer=t.slice(e.length),e.func.call(this,t.slice(0,e.length))}else break}return this._reads.length>0?Error("There are some read requests waitng on finished stream"):this._buffer.length>0?Error("unrecognised content at end of stream"):void 0}},91434:(e,t,n)=>{let r=n(44305),a=n(79328),o=n(68024),i=n(62036);function s(e,t,n,o,i){let s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!r())throw Error("Callback required as last argument");if(c){if(l<2)throw Error("Too few arguments provided");2===l?(i=n,n=t,t=o=void 0):3===l&&(t.getContext&&void 0===i?(i=o,o=void 0):(i=o,o=n,n=t,t=void 0))}else{if(l<1)throw Error("Too few arguments provided");return 1===l?(n=t,t=o=void 0):2!==l||t.getContext||(o=n,n=t,t=void 0),new Promise(function(r,i){try{let i=a.create(n,o);r(e(i,t,o))}catch(e){i(e)}})}try{let r=a.create(n,o);i(null,e(r,t,o))}catch(e){i(e)}}a.create,t.toCanvas=s.bind(null,o.render),s.bind(null,o.renderToDataURL),s.bind(null,function(e,t,n){return i.render(e,n)})},44305:e=>{e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},40448:(e,t,n)=>{let r=n(43788).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];let t=Math.floor(e/7)+2,n=r(e),a=145===n?26:2*Math.ceil((n-13)/(2*t-2)),o=[n-7];for(let e=1;e<t-1;e++)o[e]=o[e-1]-a;return o.push(6),o.reverse()},t.getPositions=function(e){let n=[],r=t.getRowColCoords(e),a=r.length;for(let e=0;e<a;e++)for(let t=0;t<a;t++)(0!==e||0!==t)&&(0!==e||t!==a-1)&&(e!==a-1||0!==t)&&n.push([r[e],r[t]]);return n}},63439:(e,t,n)=>{let r=n(88525),a=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(e){this.mode=r.ALPHANUMERIC,this.data=e}o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*a.indexOf(this.data[t]);n+=a.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(a.indexOf(this.data[t]),6)},e.exports=o},58695:e=>{function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){return(this.buffer[Math.floor(e/8)]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},8718:e=>{function t(e){if(!e||e<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){let a=e*this.size+t;this.data[a]=n,r&&(this.reservedBit[a]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},84545:(e,t,n)=>{let r=n(88525);function a(e){this.mode=r.BYTE,"string"==typeof e?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}a.getBitsLength=function(e){return 8*e},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=a},79156:(e,t,n)=>{let r=n(84517),a=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return a[(e-1)*4+0];case r.M:return a[(e-1)*4+1];case r.Q:return a[(e-1)*4+2];case r.H:return a[(e-1)*4+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return o[(e-1)*4+0];case r.M:return o[(e-1)*4+1];case r.Q:return o[(e-1)*4+2];case r.H:return o[(e-1)*4+3];default:return}}},84517:(e,t)=>{t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},23947:(e,t,n)=>{let r=n(43788).getSymbolSize;t.getPositions=function(e){let t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},42419:(e,t,n)=>{let r=n(43788),a=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){let n=e.bit<<3|t,o=n<<10;for(;r.getBCHDigit(o)-a>=0;)o^=1335<<r.getBCHDigit(o)-a;return(n<<10|o)^21522}},7797:(e,t)=>{let n=new Uint8Array(512),r=new Uint8Array(256);(function(){let e=1;for(let t=0;t<255;t++)n[t]=e,r[e]=t,256&(e<<=1)&&(e^=285);for(let e=255;e<512;e++)n[e]=n[e-255]})(),t.log=function(e){if(e<1)throw Error("log("+e+")");return r[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},9701:(e,t,n)=>{let r=n(88525),a=n(43788);function o(e){this.mode=r.KANJI,this.data=e}o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=a.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n=(n>>>8&255)*192+(255&n),e.put(n,13)}},e.exports=o},30218:(e,t)=>{t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let n={N1:3,N2:3,N3:40,N4:10};t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){let t=e.size,r=0,a=0,o=0,i=null,s=null;for(let l=0;l<t;l++){a=o=0,i=s=null;for(let c=0;c<t;c++){let t=e.get(l,c);t===i?a++:(a>=5&&(r+=n.N1+(a-5)),i=t,a=1),(t=e.get(c,l))===s?o++:(o>=5&&(r+=n.N1+(o-5)),s=t,o=1)}a>=5&&(r+=n.N1+(a-5)),o>=5&&(r+=n.N1+(o-5))}return r},t.getPenaltyN2=function(e){let t=e.size,r=0;for(let n=0;n<t-1;n++)for(let a=0;a<t-1;a++){let t=e.get(n,a)+e.get(n,a+1)+e.get(n+1,a)+e.get(n+1,a+1);(4===t||0===t)&&r++}return r*n.N2},t.getPenaltyN3=function(e){let t=e.size,r=0,a=0,o=0;for(let n=0;n<t;n++){a=o=0;for(let i=0;i<t;i++)a=a<<1&2047|e.get(n,i),i>=10&&(1488===a||93===a)&&r++,o=o<<1&2047|e.get(i,n),i>=10&&(1488===o||93===o)&&r++}return r*n.N3},t.getPenaltyN4=function(e){let t=0,r=e.data.length;for(let n=0;n<r;n++)t+=e.data[n];return Math.abs(Math.ceil(100*t/r/5)-10)*n.N4},t.applyMask=function(e,n){let r=n.size;for(let a=0;a<r;a++)for(let o=0;o<r;o++)n.isReserved(o,a)||n.xor(o,a,function(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(n+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return n*r%2+n*r%3==0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error("bad maskPattern:"+e)}}(e,o,a))},t.getBestMask=function(e,n){let r=Object.keys(t.Patterns).length,a=0,o=1/0;for(let i=0;i<r;i++){n(i),t.applyMask(i,e);let r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(i,e),r<o&&(o=r,a=i)}return a}},88525:(e,t,n)=>{let r=n(41316),a=n(21809);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw Error("Invalid mode: "+e);if(!r.isValid(t))throw Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return a.testNumeric(e)?t.NUMERIC:a.testAlphanumeric(e)?t.ALPHANUMERIC:a.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},83047:(e,t,n)=>{let r=n(88525);function a(e){this.mode=r.NUMERIC,this.data=e.toString()}a.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t,n;for(t=0;t+3<=this.data.length;t+=3)n=parseInt(this.data.substr(t,3),10),e.put(n,10);let r=this.data.length-t;r>0&&(n=parseInt(this.data.substr(t),10),e.put(n,3*r+1))},e.exports=a},73603:(e,t,n)=>{let r=n(7797);t.mul=function(e,t){let n=new Uint8Array(e.length+t.length-1);for(let a=0;a<e.length;a++)for(let o=0;o<t.length;o++)n[a+o]^=r.mul(e[a],t[o]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){let e=n[0];for(let a=0;a<t.length;a++)n[a]^=r.mul(t[a],e);let a=0;for(;a<n.length&&0===n[a];)a++;n=n.slice(a)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let a=0;a<e;a++)n=t.mul(n,new Uint8Array([1,r.exp(a)]));return n}},79328:(e,t,n)=>{let r=n(43788),a=n(84517),o=n(58695),i=n(8718),s=n(40448),l=n(23947),c=n(30218),u=n(79156),d=n(7510),f=n(17342),p=n(42419),h=n(88525),m=n(95034);function g(e,t,n){let r,a;let o=e.size,i=p.getEncodedBits(t,n);for(r=0;r<15;r++)a=(i>>r&1)==1,r<6?e.set(r,8,a,!0):r<8?e.set(r+1,8,a,!0):e.set(o-15+r,8,a,!0),r<8?e.set(8,o-r-1,a,!0):r<9?e.set(8,15-r-1+1,a,!0):e.set(8,15-r-1,a,!0);e.set(o-8,8,1,!0)}t.create=function(e,t){let n,p;if(void 0===e||""===e)throw Error("No input text");let y=a.M;return void 0!==t&&(y=a.from(t.errorCorrectionLevel,a.M),n=f.from(t.version),p=c.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),function(e,t,n,a){let p;if(Array.isArray(e))p=m.fromArray(e);else if("string"==typeof e){let r=t;if(!r){let t=m.rawSplit(e);r=f.getBestVersionForData(t,n)}p=m.fromString(e,r||40)}else throw Error("Invalid data");let y=f.getBestVersionForData(p,n);if(!y)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<y)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+y+".\n")}else t=y;let b=function(e,t,n){let a=new o;n.forEach(function(t){a.put(t.mode.bit,4),a.put(t.getLength(),h.getCharCountIndicator(t.mode,e)),t.write(a)});let i=(r.getSymbolTotalCodewords(e)-u.getTotalCodewordsCount(e,t))*8;for(a.getLengthInBits()+4<=i&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);let s=(i-a.getLengthInBits())/8;for(let e=0;e<s;e++)a.put(e%2?17:236,8);return function(e,t,n){let a,o;let i=r.getSymbolTotalCodewords(t),s=i-u.getTotalCodewordsCount(t,n),l=u.getBlocksCount(t,n),c=i%l,f=l-c,p=Math.floor(i/l),h=Math.floor(s/l),m=h+1,g=p-h,y=new d(g),b=0,w=Array(l),v=Array(l),C=0,A=new Uint8Array(e.buffer);for(let e=0;e<l;e++){let t=e<f?h:m;w[e]=A.slice(b,b+t),v[e]=y.encode(w[e]),b+=t,C=Math.max(C,t)}let E=new Uint8Array(i),x=0;for(a=0;a<C;a++)for(o=0;o<l;o++)a<w[o].length&&(E[x++]=w[o][a]);for(a=0;a<g;a++)for(o=0;o<l;o++)E[x++]=v[o][a];return E}(a,e,t)}(t,n,p),w=new i(r.getSymbolSize(t));return function(e,t){let n=e.size,r=l.getPositions(t);for(let t=0;t<r.length;t++){let a=r[t][0],o=r[t][1];for(let t=-1;t<=7;t++)if(!(a+t<=-1)&&!(n<=a+t))for(let r=-1;r<=7;r++)o+r<=-1||n<=o+r||(t>=0&&t<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===t||6===t)||t>=2&&t<=4&&r>=2&&r<=4?e.set(a+t,o+r,!0,!0):e.set(a+t,o+r,!1,!0))}}(w,t),function(e){let t=e.size;for(let n=8;n<t-8;n++){let t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(w),function(e,t){let n=s.getPositions(t);for(let t=0;t<n.length;t++){let r=n[t][0],a=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)-2===t||2===t||-2===n||2===n||0===t&&0===n?e.set(r+t,a+n,!0,!0):e.set(r+t,a+n,!1,!0)}}(w,t),g(w,n,0),t>=7&&function(e,t){let n,r,a;let o=e.size,i=f.getEncodedBits(t);for(let t=0;t<18;t++)n=Math.floor(t/3),r=t%3+o-8-3,a=(i>>t&1)==1,e.set(n,r,a,!0),e.set(r,n,a,!0)}(w,t),function(e,t){let n=e.size,r=-1,a=n-1,o=7,i=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(a,s-n)){let r=!1;i<t.length&&(r=(t[i]>>>o&1)==1),e.set(a,s-n,r),-1==--o&&(i++,o=7)}if((a+=r)<0||n<=a){a-=r,r=-r;break}}}(w,b),isNaN(a)&&(a=c.getBestMask(w,g.bind(null,w,n))),c.applyMask(a,w),g(w,n,a),{modules:w,version:t,errorCorrectionLevel:n,maskPattern:a,segments:p}}(e,n,y,p)}},7510:(e,t,n)=>{let r=n(73603);function a(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}a.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},a.prototype.encode=function(e){if(!this.genPoly)throw Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let n=r.mod(t,this.genPoly),a=this.degree-n.length;if(a>0){let e=new Uint8Array(this.degree);return e.set(n,a),e}return n},e.exports=a},21809:(e,t)=>{let n="[0-9]+",r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",a="(?:(?![A-Z0-9 $%*+\\-./:]|"+(r=r.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=RegExp(r,"g"),t.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=RegExp(a,"g"),t.NUMERIC=RegExp(n,"g"),t.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let o=RegExp("^"+r+"$"),i=RegExp("^"+n+"$"),s=RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return o.test(e)},t.testNumeric=function(e){return i.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},95034:(e,t,n)=>{let r=n(88525),a=n(83047),o=n(63439),i=n(84545),s=n(9701),l=n(21809),c=n(43788),u=n(29288);function d(e){return unescape(encodeURIComponent(e)).length}function f(e,t,n){let r;let a=[];for(;null!==(r=e.exec(n));)a.push({data:r[0],index:r.index,mode:t,length:r[0].length});return a}function p(e){let t,n;let a=f(l.NUMERIC,r.NUMERIC,e),o=f(l.ALPHANUMERIC,r.ALPHANUMERIC,e);return c.isKanjiModeEnabled()?(t=f(l.BYTE,r.BYTE,e),n=f(l.KANJI,r.KANJI,e)):(t=f(l.BYTE_KANJI,r.BYTE,e),n=[]),a.concat(o,t,n).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function h(e,t){switch(t){case r.NUMERIC:return a.getBitsLength(e);case r.ALPHANUMERIC:return o.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return i.getBitsLength(e)}}function m(e,t){let n;let l=r.getBestModeForData(e);if((n=r.from(t,l))!==r.BYTE&&n.bit<l.bit)throw Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(l));switch(n!==r.KANJI||c.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new a(e);case r.ALPHANUMERIC:return new o(e);case r.KANJI:return new s(e);case r.BYTE:return new i(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(m(t,null)):t.data&&e.push(m(t.data,t.mode)),e},[])},t.fromString=function(e,n){let a=function(e,t){let n={},a={start:{}},o=["start"];for(let i=0;i<e.length;i++){let s=e[i],l=[];for(let e=0;e<s.length;e++){let c=s[e],u=""+i+e;l.push(u),n[u]={node:c,lastCount:0},a[u]={};for(let e=0;e<o.length;e++){let i=o[e];n[i]&&n[i].node.mode===c.mode?(a[i][u]=h(n[i].lastCount+c.length,c.mode)-h(n[i].lastCount,c.mode),n[i].lastCount+=c.length):(n[i]&&(n[i].lastCount=c.length),a[i][u]=h(c.length,c.mode)+4+r.getCharCountIndicator(c.mode,t))}}o=l}for(let e=0;e<o.length;e++)a[o[e]].end=0;return{map:a,table:n}}(function(e){let t=[];for(let n=0;n<e.length;n++){let a=e[n];switch(a.mode){case r.NUMERIC:t.push([a,{data:a.data,mode:r.ALPHANUMERIC,length:a.length},{data:a.data,mode:r.BYTE,length:a.length}]);break;case r.ALPHANUMERIC:t.push([a,{data:a.data,mode:r.BYTE,length:a.length}]);break;case r.KANJI:t.push([a,{data:a.data,mode:r.BYTE,length:d(a.data)}]);break;case r.BYTE:t.push([{data:a.data,mode:r.BYTE,length:d(a.data)}])}}return t}(p(e,c.isKanjiModeEnabled())),n),o=u.find_path(a.map,"start","end"),i=[];for(let e=1;e<o.length-1;e++)i.push(a.table[o[e]].node);return t.fromArray(i.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?e[e.length-1].data+=t.data:e.push(t),e},[]))},t.rawSplit=function(e){return t.fromArray(p(e,c.isKanjiModeEnabled()))}},43788:(e,t)=>{let n;let r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw Error('"version" cannot be null or undefined');if(e<1||e>40)throw Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},41316:(e,t)=>{t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},17342:(e,t,n)=>{let r=n(43788),a=n(79156),o=n(84517),i=n(88525),s=n(41316),l=r.getBCHDigit(7973);function c(e,t){return i.getCharCountIndicator(e,t)+4}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw Error("Invalid QR Code version");void 0===n&&(n=i.BYTE);let o=(r.getSymbolTotalCodewords(e)-a.getTotalCodewordsCount(e,t))*8;if(n===i.MIXED)return o;let l=o-c(n,e);switch(n){case i.NUMERIC:return Math.floor(l/10*3);case i.ALPHANUMERIC:return Math.floor(l/11*2);case i.KANJI:return Math.floor(l/13);case i.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,n){let r;let a=o.from(n,o.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(function(e,t){let n=0;return e.forEach(function(e){let r=c(e.mode,t);n+=r+e.getBitsLength()}),n}(e,r)<=t.getCapacity(r,n,i.MIXED))return r}(e,a);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let a=1;a<=40;a++)if(n<=t.getCapacity(a,r,e))return a}(r.mode,r.getLength(),a)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-l>=0;)t^=7973<<r.getBCHDigit(t)-l;return e<<12|t}},70847:(e,t,n)=>{"use strict";e.exports=n(12144)},68024:(e,t,n)=>{let r=n(35082);t.render=function(e,t,n){var a;let o=n,i=t;void 0!==o||t&&t.getContext||(o=t,t=void 0),t||(i=function(){try{return document.createElement("canvas")}catch(e){throw Error("You need to specify a canvas element")}}()),o=r.getOptions(o);let s=r.getImageWidth(e.modules.size,o),l=i.getContext("2d"),c=l.createImageData(s,s);return r.qrToImageData(c.data,e,o),a=i,l.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=s,a.width=s,a.style.height=s+"px",a.style.width=s+"px",l.putImageData(c,0,0),i},t.renderToDataURL=function(e,n,r){let a=r;void 0!==a||n&&n.getContext||(a=n,n=void 0),a||(a={});let o=t.render(e,n,a),i=a.type||"image/png",s=a.rendererOpts||{};return o.toDataURL(i,s.quality)}},915:(e,t,n)=>{let r=n(57147),a=n(52031).y,o=n(35082);t.render=function(e,t){let n=o.getOptions(t),r=n.rendererOpts,i=o.getImageWidth(e.modules.size,n);r.width=i,r.height=i;let s=new a(r);return o.qrToImageData(s.data,e,n),s},t.renderToDataURL=function(e,n,r){void 0===r&&(r=n,n=void 0),t.renderToBuffer(e,n,function(e,t){e&&r(e);let n="data:image/png;base64,";n+=t.toString("base64"),r(null,n)})},t.renderToBuffer=function(e,n,r){void 0===r&&(r=n,n=void 0);let a=t.render(e,n),o=[];a.on("error",r),a.on("data",function(e){o.push(e)}),a.on("end",function(){r(null,Buffer.concat(o))}),a.pack()},t.renderToFile=function(e,n,a,o){void 0===o&&(o=a,a=void 0);let i=!1,s=(...e)=>{i||(i=!0,o.apply(null,e))},l=r.createWriteStream(e);l.on("error",s),l.on("close",s),t.renderToFileStream(l,n,a)},t.renderToFileStream=function(e,n,r){t.render(n,r).pack().pipe(e)}},62036:(e,t,n)=>{let r=n(35082);function a(e,t){let n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function o(e,t,n){let r=e+t;return void 0!==n&&(r+=" "+n),r}t.render=function(e,t,n){let i=r.getOptions(t),s=e.modules.size,l=e.modules.data,c=s+2*i.margin,u=i.color.light.a?"<path "+a(i.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+a(i.color.dark,"stroke")+' d="'+function(e,t,n){let r="",a=0,i=!1,s=0;for(let l=0;l<e.length;l++){let c=Math.floor(l%t),u=Math.floor(l/t);c||i||(i=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(r+=i?o("M",c+n,.5+u+n):o("m",a,0),a=0,i=!1),c+1<t&&e[l+1]||(r+=o("h",s),s=0)):a++}return r}(l,s,i.margin)+'"/>',f='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+('viewBox="0 0 '+c)+" "+c+'" shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"==typeof n&&n(null,f),f}},41207:(e,t,n)=>{let r=n(62036);t.render=r.render,t.renderToFile=function(e,r,a,o){void 0===o&&(o=a,a=void 0);let i=n(57147),s=t.render(r,a);i.writeFile(e,'<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+s,o)}},76947:(e,t,n)=>{let r=n(78345),a=n(26096);t.render=function(e,t,n){return t&&t.small?a.render(e,t,n):r.render(e,t,n)}},26096:(e,t)=>{let n="\x1b[37m",r="\x1b[30m",a="\x1b[0m",o="\x1b[47m"+r,i="\x1b[40m"+n,s=function(e,t,n,r){let a=t+1;return n>=a||r>=a||r<-1||n<-1?"0":n>=t||r>=t||r<0||n<0?"1":e[r*t+n]?"2":"1"},l=function(e,t,n,r){return s(e,t,n,r)+s(e,t,n,r+1)};t.render=function(e,t,s){var c,u;let d=e.modules.size,f=e.modules.data,p=!!(t&&t.inverse),h=t&&t.inverse?i:o,m={"00":a+" "+h,"01":a+(c=p?r:n)+"▄"+h,"02":a+(u=p?n:r)+"▄"+h,10:a+c+"▀"+h,11:" ",12:"▄",20:a+u+"▀"+h,21:"▀",22:"█"},g=a+"\n"+h,y=h;for(let e=-1;e<d+1;e+=2){for(let t=-1;t<d;t++)y+=m[l(f,d,t,e)];y+=m[l(f,d,d,e)]+g}return y+=a,"function"==typeof s&&s(null,y),y}},78345:(e,t)=>{t.render=function(e,t,n){let r=e.modules.size,a=e.modules.data,o="\x1b[47m \x1b[0m",i="",s=Array(r+3).join(o),l=[,,].join(o);i+=s+"\n";for(let e=0;e<r;++e){i+=o;for(let t=0;t<r;t++)i+=a[e*r+t]?"\x1b[40m \x1b[0m":o;i+=l+"\n"}return i+=s+"\n","function"==typeof n&&n(null,i),i}},3216:(e,t,n)=>{let r=n(35082),a={WW:" ",WB:"▄",BB:"█",BW:"▀"},o={BB:" ",BW:"▄",WW:"█",WB:"▀"};t.render=function(e,t,n){let i=r.getOptions(t),s=a;("#ffffff"===i.color.dark.hex||"#000000"===i.color.light.hex)&&(s=o);let l=e.modules.size,c=e.modules.data,u="",d=Array(l+2*i.margin+1).join(s.WW);d=Array(i.margin/2+1).join(d+"\n");let f=Array(i.margin+1).join(s.WW);u+=d;for(let e=0;e<l;e+=2){u+=f;for(let t=0;t<l;t++){var p;let n=c[e*l+t],r=c[(e+1)*l+t];u+=(p=s,n&&r?p.BB:n&&!r?p.BW:!n&&r?p.WB:p.WW)}u+=f+"\n"}return u+=d.slice(0,-1),"function"==typeof n&&n(null,u),u},t.renderToFile=function(e,r,a,o){void 0===o&&(o=a,a=void 0);let i=n(57147),s=t.render(r,a);i.writeFile(e,s,o)}},35082:(e,t)=>{function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");let n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,a=e.scale||4;return{width:r,scale:r?4:a,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){let r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){let a=n.modules.size,o=n.modules.data,i=t.getScale(a,r),s=Math.floor((a+2*r.margin)*i),l=r.margin*i,c=[r.color.light,r.color.dark];for(let t=0;t<s;t++)for(let n=0;n<s;n++){let u=(t*s+n)*4,d=r.color.light;t>=l&&n>=l&&t<s-l&&n<s-l&&(d=c[o[Math.floor((t-l)/i)*a+Math.floor((n-l)/i)]?1:0]),e[u++]=d.r,e[u++]=d.g,e[u++]=d.b,e[u]=d.a}}},12144:(e,t,n)=>{let r=n(44305),a=n(79328),o=n(915),i=n(3216),s=n(76947),l=n(41207);function c(e,t,n){if(void 0===e)throw Error("String required as first argument");if(void 0===n&&(n=t,t={}),"function"!=typeof n){if(r())t=n||{},n=null;else throw Error("Callback required as last argument")}return{opts:t,cb:n}}function u(e){switch(e){case"svg":return l;case"txt":case"utf8":return i;default:return o}}function d(e,t,n){if(!n.cb)return new Promise(function(r,o){try{let i=a.create(t,n.opts);return e(i,n.opts,function(e,t){return e?o(e):r(t)})}catch(e){o(e)}});try{let r=a.create(t,n.opts);return e(r,n.opts,n.cb)}catch(e){n.cb(e)}}t.create=a.create,t.toCanvas=n(91434).toCanvas,t.toString=function(e,t,n){let r=c(e,t,n);return d(function(e){switch(e){case"svg":return l;case"terminal":return s;default:return i}}(r.opts?r.opts.type:void 0).render,e,r)},t.toDataURL=function(e,t,n){let r=c(e,t,n);return d(u(r.opts.type).renderToDataURL,e,r)},t.toBuffer=function(e,t,n){let r=c(e,t,n);return d(u(r.opts.type).renderToBuffer,e,r)},t.toFile=function(e,t,n,a){if("string"!=typeof e||!("string"==typeof t||"object"==typeof t))throw Error("Invalid argument");if(arguments.length<3&&!r())throw Error("Too few arguments provided");let o=c(t,n,a);return d(u(o.opts.type||e.slice((e.lastIndexOf(".")-1>>>0)+2).toLowerCase()).renderToFile.bind(null,e),t,o)},t.toFileStream=function(e,t,n){if(arguments.length<2)throw Error("Too few arguments provided");let r=c(t,n,e.emit.bind(e,"error"));d(u("png").renderToFileStream.bind(null,e),t,r)}},9711:function(e,t,n){var r;!function(a,o){"use strict";var i="function",s="undefined",l="object",c="string",u="major",d="model",f="name",p="type",h="vendor",m="version",g="architecture",y="console",b="mobile",w="tablet",v="smarttv",C="wearable",A="embedded",E="Amazon",x="Apple",k="ASUS",B="BlackBerry",j="Browser",I="Chrome",S="Firefox",T="Google",O="Huawei",P="Microsoft",M="Motorola",D="Opera",N="Samsung",R="Sharp",F="Sony",L="Xiaomi",_="Zebra",U="Facebook",z="Chromium OS",W="Mac OS",q=function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},G=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Q=function(e,t){return typeof e===c&&-1!==H(t).indexOf(H(e))},H=function(e){return e.toLowerCase()},$=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},K=function(e,t){for(var n,r,a,s,c,u,d=0;d<t.length&&!c;){var f=t[d],p=t[d+1];for(n=r=0;n<f.length&&!c&&f[n];)if(c=f[n++].exec(e))for(a=0;a<p.length;a++)u=c[++r],typeof(s=p[a])===l&&s.length>0?2===s.length?typeof s[1]==i?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==i||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):void 0:this[s[0]]=u?s[1].call(this,u,s[2]):void 0:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):void 0):this[s]=u||o;d+=2}},Z=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(Q(t[n][r],e))return"?"===n?o:n}else if(Q(t[n],e))return"?"===n?o:n;return e},Y={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},V={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,m],[/opios[\/ ]+([\w\.]+)/i],[m,[f,D+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[f,D+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[f,D]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[f,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,m],[/\bddg\/([\w\.]+)/i],[m,[f,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[f,"UC"+j]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[f,"Smart Lenovo "+j]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+j],m],[/\bfocus\/([\w\.]+)/i],[m,[f,S+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[f,D+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[f,D+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[f,"MIUI "+j]],[/fxios\/([-\w\.]+)/i],[m,[f,S]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 "+j]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 "+j],m],[/samsungbrowser\/([\w\.]+)/i],[m,[f,N+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],m],[/metasr[\/ ]?([\d\.]+)/i],[m,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[f,m],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,U],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[f,I+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,I+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[f,"Android "+j]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[m,Z,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[f,S+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[f,m],[/(cobalt)\/([\w\.]+)/i],[f,[m,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,H]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,"",H]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,H]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[h,N],[p,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[h,N],[p,b]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[h,x],[p,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[h,x],[p,w]],[/(macintosh);/i],[d,[h,x]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[h,R],[p,b]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[h,O],[p,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[h,O],[p,b]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[h,L],[p,b]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[h,L],[p,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[h,"OPPO"],[p,b]],[/\b(opd2\d{3}a?) bui/i],[d,[h,"OPPO"],[p,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[h,"Vivo"],[p,b]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[h,"Realme"],[p,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[h,M],[p,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[h,M],[p,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[h,"LG"],[p,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[h,"LG"],[p,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[h,"Lenovo"],[p,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[h,"Nokia"],[p,b]],[/(pixel c)\b/i],[d,[h,T],[p,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[h,T],[p,b]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[h,F],[p,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[h,F],[p,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[h,"OnePlus"],[p,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[h,E],[p,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[h,E],[p,b]],[/(playbook);[-\w\),; ]+(rim)/i],[d,h,[p,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[h,B],[p,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[h,k],[p,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[h,k],[p,b]],[/(nexus 9)/i],[d,[h,"HTC"],[p,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[d,/_/g," "],[p,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[h,"Acer"],[p,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[h,"Meizu"],[p,b]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[h,"Ulefone"],[p,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,d,[p,b]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,d,[p,w]],[/(surface duo)/i],[d,[h,P],[p,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[h,"Fairphone"],[p,b]],[/(u304aa)/i],[d,[h,"AT&T"],[p,b]],[/\bsie-(\w*)/i],[d,[h,"Siemens"],[p,b]],[/\b(rct\w+) b/i],[d,[h,"RCA"],[p,w]],[/\b(venue[\d ]{2,7}) b/i],[d,[h,"Dell"],[p,w]],[/\b(q(?:mv|ta)\w+) b/i],[d,[h,"Verizon"],[p,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[h,"Barnes & Noble"],[p,w]],[/\b(tm\d{3}\w+) b/i],[d,[h,"NuVision"],[p,w]],[/\b(k88) b/i],[d,[h,"ZTE"],[p,w]],[/\b(nx\d{3}j) b/i],[d,[h,"ZTE"],[p,b]],[/\b(gen\d{3}) b.+49h/i],[d,[h,"Swiss"],[p,b]],[/\b(zur\d{3}) b/i],[d,[h,"Swiss"],[p,w]],[/\b((zeki)?tb.*\b) b/i],[d,[h,"Zeki"],[p,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],d,[p,w]],[/\b(ns-?\w{0,9}) b/i],[d,[h,"Insignia"],[p,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[h,"NextBook"],[p,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],d,[p,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],d,[p,b]],[/\b(ph-1) /i],[d,[h,"Essential"],[p,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[h,"Envizen"],[p,w]],[/\b(trio[-\w\. ]+) b/i],[d,[h,"MachSpeed"],[p,w]],[/\btu_(1491) b/i],[d,[h,"Rotor"],[p,w]],[/(shield[\w ]+) b/i],[d,[h,"Nvidia"],[p,w]],[/(sprint) (\w+)/i],[h,d,[p,b]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[h,P],[p,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[h,_],[p,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[h,_],[p,b]],[/smart-tv.+(samsung)/i],[h,[p,v]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[h,N],[p,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,"LG"],[p,v]],[/(apple) ?tv/i],[h,[d,x+" TV"],[p,v]],[/crkey/i],[[d,I+"cast"],[h,T],[p,v]],[/droid.+aft(\w+)( bui|\))/i],[d,[h,E],[p,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[h,R],[p,v]],[/(bravia[\w ]+)( bui|\))/i],[d,[h,F],[p,v]],[/(mitv-\w{5}) bui/i],[d,[h,L],[p,v]],[/Hbbtv.*(technisat) (.*);/i],[h,d,[p,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,$],[d,$],[p,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,d,[p,y]],[/droid.+; (shield) bui/i],[d,[h,"Nvidia"],[p,y]],[/(playstation [345portablevi]+)/i],[d,[h,F],[p,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[h,P],[p,y]],[/((pebble))app/i],[h,d,[p,C]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[h,x],[p,C]],[/droid.+; (glass) \d/i],[d,[h,T],[p,C]],[/droid.+; (wt63?0{2,3})\)/i],[d,[h,_],[p,C]],[/(quest( \d| pro)?)/i],[d,[h,U],[p,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[p,A]],[/(aeobc)\b/i],[d,[h,E],[p,A]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[p,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[p,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,b]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[f,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,m],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[f,[m,Z,Y]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,Z,Y],[f,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,W],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,m],[/\(bb(10);/i],[m,[f,B]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[f,S+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[f,I+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,z],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,m],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,m]]},J=function(e,t){if(typeof e===l&&(t=e,e=o),!(this instanceof J))return new J(e,t).getResult();var n=typeof a!==s&&a.navigator?a.navigator:o,r=e||(n&&n.userAgent?n.userAgent:""),y=n&&n.userAgentData?n.userAgentData:o,v=t?q(V,t):V,C=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[f]=o,t[m]=o,K.call(t,r,v.browser),t[u]=typeof(e=t[m])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:o,C&&n&&n.brave&&typeof n.brave.isBrave==i&&(t[f]="Brave"),t},this.getCPU=function(){var e={};return e[g]=o,K.call(e,r,v.cpu),e},this.getDevice=function(){var e={};return e[h]=o,e[d]=o,e[p]=o,K.call(e,r,v.device),C&&!e[p]&&y&&y.mobile&&(e[p]=b),C&&"Macintosh"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[p]=w),e},this.getEngine=function(){var e={};return e[f]=o,e[m]=o,K.call(e,r,v.engine),e},this.getOS=function(){var e={};return e[f]=o,e[m]=o,K.call(e,r,v.os),C&&!e[f]&&y&&y.platform&&"Unknown"!=y.platform&&(e[f]=y.platform.replace(/chrome os/i,z).replace(/macos/i,W)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===c&&e.length>500?$(e,500):e,this},this.setUA(r),this};J.VERSION="1.0.38",J.BROWSER=G([f,m,u]),J.CPU=G([g]),J.DEVICE=G([d,h,p,y,b,v,w,C,A]),J.ENGINE=J.OS=G([f,m]),typeof t!==s?(e.exports&&(t=e.exports=J),t.UAParser=J):n.amdO?o!==(r=(function(){return J}).call(t,n,t,e))&&(e.exports=r):typeof a!==s&&(a.UAParser=J);var X=typeof a!==s&&(a.jQuery||a.Zepto);if(X&&!X.ua){var ee=new J;X.ua=ee.getResult(),X.ua.get=function(){return ee.getUA()},X.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)X.ua[n]=t[n]}}}("object"==typeof window?window:this)},27327:(e,t,n)=>{"use strict";/**
|
|
22
|
+
* @license React
|
|
23
|
+
* use-sync-external-store-shim.production.min.js
|
|
24
|
+
*
|
|
25
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the MIT license found in the
|
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
|
29
|
+
*/var r=n(39779),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,i=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),a=r[0].inst,u=r[1];return s(function(){a.value=n,a.getSnapshot=t,c(a)&&u({inst:a})},[e,n,t]),i(function(){return c(a)&&u({inst:a}),e(function(){c(a)&&u({inst:a})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},43785:(e,t,n)=>{"use strict";/**
|
|
30
|
+
* @license React
|
|
31
|
+
* use-sync-external-store-shim/with-selector.production.min.js
|
|
32
|
+
*
|
|
33
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
34
|
+
*
|
|
35
|
+
* This source code is licensed under the MIT license found in the
|
|
36
|
+
* LICENSE file in the root directory of this source tree.
|
|
37
|
+
*/var r=n(39779),a=n(57594),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=a.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,a){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=i(e,(d=c(function(){function e(e){if(!l){if(l=!0,i=e,e=r(e),void 0!==a&&f.hasValue){var t=f.value;if(a(t,e))return s=t}return s=e}if(t=s,o(i,e))return t;var n=r(e);return void 0!==a&&a(t,n)?t:(i=e,s=n)}var i,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,a]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}},57594:(e,t,n)=>{"use strict";e.exports=n(27327)},40533:(e,t,n)=>{"use strict";e.exports=n(43785)},61077:(e,t,n)=>{"use strict";/**
|
|
38
|
+
* @license React
|
|
39
|
+
* use-sync-external-store-shim.production.js
|
|
40
|
+
*
|
|
41
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the MIT license found in the
|
|
44
|
+
* LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/var r=n(39779),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,i=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),a=r[0].inst,u=r[1];return s(function(){a.value=n,a.getSnapshot=t,c(a)&&u({inst:a})},[e,n,t]),i(function(){return c(a)&&u({inst:a}),e(function(){c(a)&&u({inst:a})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},53360:(e,t,n)=>{"use strict";/**
|
|
46
|
+
* @license React
|
|
47
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
48
|
+
*
|
|
49
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the MIT license found in the
|
|
52
|
+
* LICENSE file in the root directory of this source tree.
|
|
53
|
+
*/var r=n(39779),a=n(23902),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=a.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,a){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=i(e,(d=c(function(){function e(e){if(!l){if(l=!0,i=e,e=r(e),void 0!==a&&f.hasValue){var t=f.value;if(a(t,e))return s=t}return s=e}if(t=s,o(i,e))return t;var n=r(e);return void 0!==a&&a(t,n)?(i=e,t):(i=e,s=n)}var i,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,a]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}},23902:(e,t,n)=>{"use strict";e.exports=n(61077)},2235:(e,t,n)=>{"use strict";e.exports=n(53360)},41228:(e,t,n)=>{"use strict";n.d(t,{secp256k1:()=>ex});var r=n(2991),a=n(12577);class o extends a.kb{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,a.z3)(e);let n=(0,a.O0)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let r=this.blockLen,o=new Uint8Array(r);o.set(n.length>r?e.create().update(n).digest():n);for(let e=0;e<o.length;e++)o[e]^=54;this.iHash.update(o),this.oHash=e.create();for(let e=0;e<o.length;e++)o[e]^=106;this.oHash.update(o),(0,a.ru)(o)}update(e){return(0,a.$h)(this),this.iHash.update(e),this}digestInto(e){(0,a.$h)(this),(0,a.gk)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:n,finished:r,destroyed:a,blockLen:o,outputLen:i}=this;return e.finished=r,e.destroyed=a,e.blockLen=o,e.outputLen=i,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let i=(e,t,n)=>new o(e,t).update(n).digest();i.create=(e,t)=>new o(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let s=BigInt(0),l=BigInt(1);function c(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function u(e){if(!c(e))throw Error("Uint8Array expected")}function d(e,t){if("boolean"!=typeof t)throw Error(e+" boolean expected, got "+t)}function f(e){let t=e.toString(16);return 1&t.length?"0"+t:t}function p(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?s:BigInt("0x"+e)}let h="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,m=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function g(e){if(u(e),h)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=m[e[n]];return t}let y={_0:48,_9:57,A:65,F:70,a:97,f:102};function b(e){return e>=y._0&&e<=y._9?e-y._0:e>=y.A&&e<=y.F?e-(y.A-10):e>=y.a&&e<=y.f?e-(y.a-10):void 0}function w(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(h)return Uint8Array.fromHex(e);let t=e.length,n=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(n);for(let t=0,a=0;t<n;t++,a+=2){let n=b(e.charCodeAt(a)),o=b(e.charCodeAt(a+1));if(void 0===n||void 0===o)throw Error('hex string expected, got non-hex character "'+(e[a]+e[a+1])+'" at index '+a);r[t]=16*n+o}return r}function v(e){return p(g(e))}function C(e){return u(e),p(g(Uint8Array.from(e).reverse()))}function A(e,t){return w(e.toString(16).padStart(2*t,"0"))}function E(e,t){return A(e,t).reverse()}function x(e,t,n){let r;if("string"==typeof t)try{r=w(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if(c(t))r=Uint8Array.from(t);else throw Error(e+" must be hex string or Uint8Array");let a=r.length;if("number"==typeof n&&a!==n)throw Error(e+" of length "+n+" expected, got "+a);return r}function k(...e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];u(r),t+=r.length}let n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){let a=e[t];n.set(a,r),r+=a.length}return n}let B=e=>"bigint"==typeof e&&s<=e;function j(e,t,n){return B(e)&&B(t)&&B(n)&&t<=e&&e<n}function I(e,t,n,r){if(!j(t,n,r))throw Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}let S=e=>(l<<BigInt(e))-l,T=e=>new Uint8Array(e),O=e=>Uint8Array.from(e),P={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||c(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function M(e,t,n={}){let r=(t,n,r)=>{let a=P[n];if("function"!=typeof a)throw Error("invalid validator function");let o=e[t];if((!r||void 0!==o)&&!a(o,e))throw Error("param "+String(t)+" is invalid. Expected "+n+", got "+o)};for(let[e,n]of Object.entries(t))r(e,n,!1);for(let[e,t]of Object.entries(n))r(e,t,!0);return e}function D(e){let t=new WeakMap;return(n,...r)=>{let a=t.get(n);if(void 0!==a)return a;let o=e(n,...r);return t.set(n,o),o}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let N=BigInt(0),R=BigInt(1),F=BigInt(2),L=BigInt(3),_=BigInt(4),U=BigInt(5),z=BigInt(8);function W(e,t){let n=e%t;return n>=N?n:t+n}function q(e,t,n){let r=e;for(;t-- >N;)r*=r,r%=n;return r}function G(e,t){if(e===N)throw Error("invert: expected non-zero number");if(t<=N)throw Error("invert: expected positive modulus, got "+t);let n=W(e,t),r=t,a=N,o=R,i=R,s=N;for(;n!==N;){let e=r/n,t=r%n,l=a-i*e,c=o-s*e;r=n,n=t,a=i,o=s,i=l,s=c}if(r!==R)throw Error("invert: does not exist");return W(a,t)}function Q(e,t){let n=(e.ORDER+R)/_,r=e.pow(t,n);if(!e.eql(e.sqr(r),t))throw Error("Cannot find square root");return r}function H(e,t){let n=(e.ORDER-U)/z,r=e.mul(t,F),a=e.pow(r,n),o=e.mul(t,a),i=e.mul(e.mul(o,F),a),s=e.mul(o,e.sub(i,e.ONE));if(!e.eql(e.sqr(s),t))throw Error("Cannot find square root");return s}let $=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function K(e,t,n=!1){let r=Array(t.length).fill(n?e.ZERO:void 0),a=t.reduce((t,n,a)=>e.is0(n)?t:(r[a]=t,e.mul(t,n)),e.ONE),o=e.inv(a);return t.reduceRight((t,n,a)=>e.is0(n)?t:(r[a]=e.mul(t,r[a]),e.mul(t,n)),o),r}function Z(e,t){let n=(e.ORDER-R)/F,r=e.pow(t,n),a=e.eql(r,e.ONE),o=e.eql(r,e.ZERO),i=e.eql(r,e.neg(e.ONE));if(!a&&!o&&!i)throw Error("invalid Legendre symbol result");return a?1:o?0:-1}function Y(e,t){void 0!==t&&(0,a.k8)(t);let n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function V(e,t,n=!1,r={}){let a;if(e<=N)throw Error("invalid field: expected ORDER > 0, got "+e);let{nBitLength:o,nByteLength:i}=Y(e,t);if(i>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let s=Object.freeze({ORDER:e,isLE:n,BITS:o,BYTES:i,MASK:S(o),ZERO:N,ONE:R,create:t=>W(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error("invalid field element: expected bigint, got "+typeof t);return N<=t&&t<e},is0:e=>e===N,isOdd:e=>(e&R)===R,neg:t=>W(-t,e),eql:(e,t)=>e===t,sqr:t=>W(t*t,e),add:(t,n)=>W(t+n,e),sub:(t,n)=>W(t-n,e),mul:(t,n)=>W(t*n,e),pow:(e,t)=>(function(e,t,n){if(n<N)throw Error("invalid exponent, negatives unsupported");if(n===N)return e.ONE;if(n===R)return t;let r=e.ONE,a=t;for(;n>N;)n&R&&(r=e.mul(r,a)),a=e.sqr(a),n>>=R;return r})(s,e,t),div:(t,n)=>W(t*G(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>G(t,e),sqrt:r.sqrt||(t=>(!a&&(a=e%_===L?Q:e%z===U?H:function(e){if(e<BigInt(3))throw Error("sqrt is not defined for small field");let t=e-R,n=0;for(;t%F===N;)t/=F,n++;let r=F,a=V(e);for(;1===Z(a,r);)if(r++>1e3)throw Error("Cannot find square root: probably non-prime P");if(1===n)return Q;let o=a.pow(r,t),i=(t+R)/F;return function(e,r){if(e.is0(r))return r;if(1!==Z(e,r))throw Error("Cannot find square root");let a=n,s=e.mul(e.ONE,o),l=e.pow(r,t),c=e.pow(r,i);for(;!e.eql(l,e.ONE);){if(e.is0(l))return e.ZERO;let t=1,n=e.sqr(l);for(;!e.eql(n,e.ONE);)if(t++,n=e.sqr(n),t===a)throw Error("Cannot find square root");let r=R<<BigInt(a-t-1),o=e.pow(s,r);a=t,s=e.sqr(o),l=e.mul(l,s),c=e.mul(c,o)}return c}}(e)),a(s,t))),toBytes:e=>n?E(e,i):A(e,i),fromBytes:e=>{if(e.length!==i)throw Error("Field.fromBytes: expected "+i+" bytes, got "+e.length);return n?C(e):v(e)},invertBatch:e=>K(s,e),cmov:(e,t,n)=>n?t:e});return Object.freeze(s)}function J(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function X(e){let t=J(e);return t+Math.ceil(t/2)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let ee=BigInt(0),et=BigInt(1);function en(e,t){let n=t.negate();return e?n:t}function er(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error("invalid window size, expected [1.."+t+"], got W="+e)}function ea(e,t){er(e,t);let n=Math.ceil(t/e)+1,r=2**(e-1),a=2**e;return{windows:n,windowSize:r,mask:S(e),maxNumber:a,shiftBy:BigInt(e)}}function eo(e,t,n){let{windowSize:r,mask:a,maxNumber:o,shiftBy:i}=n,s=Number(e&a),l=e>>i;s>r&&(s-=o,l+=et);let c=t*r,u=c+Math.abs(s)-1;return{nextN:l,offset:u,isZero:0===s,isNeg:s<0,isNegF:t%2!=0,offsetF:c}}let ei=new WeakMap,es=new WeakMap;function el(e){return es.get(e)||1}function ec(e){return M(e.Fp,$.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),M(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Y(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function eu(e){void 0!==e.lowS&&d("lowS",e.lowS),void 0!==e.prehash&&d("prehash",e.prehash)}class ed extends Error{constructor(e=""){super(e)}}let ef={Err:ed,_tlv:{encode:(e,t)=>{let{Err:n}=ef;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(1&t.length)throw new n("tlv.encode: unpadded data");let r=t.length/2,a=f(r);if(a.length/2&128)throw new n("tlv.encode: long form length too big");let o=r>127?f(a.length/2|128):"";return f(e)+o+a+t},decode(e,t){let{Err:n}=ef,r=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[r++]!==e)throw new n("tlv.decode: wrong tlv");let a=t[r++],o=0;if(128&a){let e=127&a;if(!e)throw new n("tlv.decode(long): indefinite length not supported");if(e>4)throw new n("tlv.decode(long): byte length is too big");let i=t.subarray(r,r+e);if(i.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===i[0])throw new n("tlv.decode(long): zero leftmost byte");for(let e of i)o=o<<8|e;if(r+=e,o<128)throw new n("tlv.decode(long): not minimal encoding")}else o=a;let i=t.subarray(r,r+o);if(i.length!==o)throw new n("tlv.decode: wrong value length");return{v:i,l:t.subarray(r+o)}}},_int:{encode(e){let{Err:t}=ef;if(e<ep)throw new t("integer: negative integers are not allowed");let n=f(e);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){let{Err:t}=ef;if(128&e[0])throw new t("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return v(e)}},toSig(e){let{Err:t,_int:n,_tlv:r}=ef,a=x("signature",e),{v:o,l:i}=r.decode(48,a);if(i.length)throw new t("invalid signature: left bytes after parsing");let{v:s,l:l}=r.decode(2,o),{v:c,l:u}=r.decode(2,l);if(u.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(s),s:n.decode(c)}},hexFromSig(e){let{_tlv:t,_int:n}=ef,r=t.encode(2,n.encode(e.r)),a=t.encode(2,n.encode(e.s));return t.encode(48,r+a)}},ep=BigInt(0),eh=BigInt(1),em=(BigInt(2),BigInt(3)),eg=BigInt(4),ey=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),eb=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),ew=BigInt(0),ev=BigInt(1),eC=BigInt(2),eA=(e,t)=>(e+t/eC)/t,eE=V(ey,void 0,void 0,{sqrt:function(e){let t=BigInt(3),n=BigInt(6),r=BigInt(11),a=BigInt(22),o=BigInt(23),i=BigInt(44),s=BigInt(88),l=e*e*e%ey,c=l*l*e%ey,u=q(c,t,ey)*c%ey,d=q(u,t,ey)*c%ey,f=q(d,eC,ey)*l%ey,p=q(f,r,ey)*f%ey,h=q(p,a,ey)*p%ey,m=q(h,i,ey)*h%ey,g=q(m,s,ey)*m%ey,y=q(g,i,ey)*h%ey,b=q(y,t,ey)*c%ey,w=q(b,o,ey)*p%ey,v=q(w,n,ey)*l%ey,C=q(v,eC,ey);if(!eE.eql(eE.sqr(C),e))throw Error("Cannot find square root");return C}}),ex=function(e,t){let n=t=>(function(e){let t=function(e){let t=ec(e);return M(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:n,n:r,nByteLength:a,nBitLength:o}=t,i=n.BYTES+1,u=2*n.BYTES+1;function f(e){return W(e,r)}let{ProjectivePoint:p,normPrivateKeyToScalar:h,weierstrassEquation:m,isWithinCurveOrder:y}=function(e){var t;let n=function(e){let t=ec(e);M(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});let{endo:n,Fp:r,a}=t;if(n){if(!r.eql(a,r.ZERO))throw Error("invalid endo: CURVE.a must be 0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}(e),{Fp:r}=n,a=V(n.n,n.nBitLength),o=n.toBytes||((e,t,n)=>{let a=t.toAffine();return k(Uint8Array.from([4]),r.toBytes(a.x),r.toBytes(a.y))}),i=n.fromBytes||(e=>{let t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function u(e){let{a:t,b:a}=n,o=r.sqr(e),i=r.mul(o,e);return r.add(r.add(i,r.mul(e,t)),a)}function f(e,t){let n=r.sqr(t),a=u(e);return r.eql(n,a)}if(!f(n.Gx,n.Gy))throw Error("bad curve params: generator point");let p=r.mul(r.pow(n.a,em),eg),h=r.mul(r.sqr(n.b),BigInt(27));if(r.is0(r.add(p,h)))throw Error("bad curve params: a or b");function m(e){let t;let{allowedPrivateKeyLengths:r,nByteLength:a,wrapPrivateKey:o,n:i}=n;if(r&&"bigint"!=typeof e){if(c(e)&&(e=g(e)),"string"!=typeof e||!r.includes(e.length))throw Error("invalid private key");e=e.padStart(2*a,"0")}try{t="bigint"==typeof e?e:v(x("private key",e,a))}catch(t){throw Error("invalid private key, expected hex or "+a+" bytes, got "+typeof e)}return o&&(t=W(t,i)),I("private key",t,eh,i),t}function y(e){if(!(e instanceof C))throw Error("ProjectivePoint expected")}let b=D((e,t)=>{let{px:n,py:a,pz:o}=e;if(r.eql(o,r.ONE))return{x:n,y:a};let i=e.is0();null==t&&(t=i?r.ONE:r.inv(o));let s=r.mul(n,t),l=r.mul(a,t),c=r.mul(o,t);if(i)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw Error("invZ was invalid");return{x:s,y:l}}),w=D(e=>{if(e.is0()){if(n.allowInfinityPoint&&!r.is0(e.py))return;throw Error("bad point: ZERO")}let{x:t,y:a}=e.toAffine();if(!r.isValid(t)||!r.isValid(a))throw Error("bad point: x or y not FE");if(!f(t,a))throw Error("bad point: equation left != right");if(!e.isTorsionFree())throw Error("bad point: not in prime-order subgroup");return!0});class C{constructor(e,t,n){if(null==e||!r.isValid(e))throw Error("x required");if(null==t||!r.isValid(t)||r.is0(t))throw Error("y required");if(null==n||!r.isValid(n))throw Error("z required");this.px=e,this.py=t,this.pz=n,Object.freeze(this)}static fromAffine(e){let{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw Error("invalid affine point");if(e instanceof C)throw Error("projective point not allowed");let a=e=>r.eql(e,r.ZERO);return a(t)&&a(n)?C.ZERO:new C(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=K(r,e.map(e=>e.pz));return e.map((e,n)=>e.toAffine(t[n])).map(C.fromAffine)}static fromHex(e){let t=C.fromAffine(i(x("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return C.BASE.multiply(m(e))}static msm(e,t){return function(e,t,n,r){(function(e,t){if(!Array.isArray(e))throw Error("array expected");e.forEach((e,n)=>{if(!(e instanceof t))throw Error("invalid point at index "+n)})})(n,e),function(e,t){if(!Array.isArray(e))throw Error("array of scalars expected");e.forEach((e,n)=>{if(!t.isValid(e))throw Error("invalid scalar at index "+n)})}(r,t);let a=n.length,o=r.length;if(a!==o)throw Error("arrays of points and scalars must have equal length");let i=e.ZERO,c=function(e){let t;for(t=0;e>s;e>>=l,t+=1);return t}(BigInt(a)),u=1;c>12?u=c-3:c>4?u=c-2:c>0&&(u=2);let d=S(u),f=Array(Number(d)+1).fill(i),p=Math.floor((t.BITS-1)/u)*u,h=i;for(let e=p;e>=0;e-=u){f.fill(i);for(let t=0;t<o;t++){let a=Number(r[t]>>BigInt(e)&d);f[a]=f[a].add(n[t])}let t=i;for(let e=f.length-1,n=i;e>0;e--)n=n.add(f[e]),t=t.add(n);if(h=h.add(t),0!==e)for(let e=0;e<u;e++)h=h.double()}return h}(C,a,e,t)}_setWindowSize(e){B.setWindowSize(this,e)}assertValidity(){w(this)}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){y(e);let{px:t,py:n,pz:a}=this,{px:o,py:i,pz:s}=e,l=r.eql(r.mul(t,s),r.mul(o,a)),c=r.eql(r.mul(n,s),r.mul(i,a));return l&&c}negate(){return new C(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:t}=n,a=r.mul(t,em),{px:o,py:i,pz:s}=this,l=r.ZERO,c=r.ZERO,u=r.ZERO,d=r.mul(o,o),f=r.mul(i,i),p=r.mul(s,s),h=r.mul(o,i);return h=r.add(h,h),u=r.mul(o,s),u=r.add(u,u),l=r.mul(e,u),c=r.mul(a,p),c=r.add(l,c),l=r.sub(f,c),c=r.add(f,c),c=r.mul(l,c),l=r.mul(h,l),u=r.mul(a,u),p=r.mul(e,p),h=r.sub(d,p),h=r.mul(e,h),h=r.add(h,u),u=r.add(d,d),d=r.add(u,d),d=r.add(d,p),d=r.mul(d,h),c=r.add(c,d),p=r.mul(i,s),p=r.add(p,p),d=r.mul(p,h),l=r.sub(l,d),u=r.mul(p,f),u=r.add(u,u),new C(l,c,u=r.add(u,u))}add(e){y(e);let{px:t,py:a,pz:o}=this,{px:i,py:s,pz:l}=e,c=r.ZERO,u=r.ZERO,d=r.ZERO,f=n.a,p=r.mul(n.b,em),h=r.mul(t,i),m=r.mul(a,s),g=r.mul(o,l),b=r.add(t,a),w=r.add(i,s);b=r.mul(b,w),w=r.add(h,m),b=r.sub(b,w),w=r.add(t,o);let v=r.add(i,l);return w=r.mul(w,v),v=r.add(h,g),w=r.sub(w,v),v=r.add(a,o),c=r.add(s,l),v=r.mul(v,c),c=r.add(m,g),v=r.sub(v,c),d=r.mul(f,w),c=r.mul(p,g),d=r.add(c,d),c=r.sub(m,d),d=r.add(m,d),u=r.mul(c,d),m=r.add(h,h),m=r.add(m,h),g=r.mul(f,g),w=r.mul(p,w),m=r.add(m,g),g=r.sub(h,g),g=r.mul(f,g),w=r.add(w,g),h=r.mul(m,w),u=r.add(u,h),h=r.mul(v,w),c=r.mul(b,c),c=r.sub(c,h),h=r.mul(b,m),d=r.mul(v,d),new C(c,u,d=r.add(d,h))}subtract(e){return this.add(e.negate())}is0(){return this.equals(C.ZERO)}wNAF(e){return B.wNAFCached(this,e,C.normalizeZ)}multiplyUnsafe(e){let{endo:t,n:a}=n;I("scalar",e,ep,a);let o=C.ZERO;if(e===ep)return o;if(this.is0()||e===eh)return this;if(!t||B.hasPrecomputes(this))return B.wNAFCachedUnsafe(this,e,C.normalizeZ);let{k1neg:i,k1:s,k2neg:l,k2:c}=t.splitScalar(e),u=o,d=o,f=this;for(;s>ep||c>ep;)s&eh&&(u=u.add(f)),c&eh&&(d=d.add(f)),f=f.double(),s>>=eh,c>>=eh;return i&&(u=u.negate()),l&&(d=d.negate()),d=new C(r.mul(d.px,t.beta),d.py,d.pz),u.add(d)}multiply(e){let t,a;let{endo:o,n:i}=n;if(I("scalar",e,eh,i),o){let{k1neg:n,k1:i,k2neg:s,k2:l}=o.splitScalar(e),{p:c,f:u}=this.wNAF(i),{p:d,f:f}=this.wNAF(l);c=B.constTimeNegate(n,c),d=B.constTimeNegate(s,d),d=new C(r.mul(d.px,o.beta),d.py,d.pz),t=c.add(d),a=u.add(f)}else{let{p:n,f:r}=this.wNAF(e);t=n,a=r}return C.normalizeZ([t,a])[0]}multiplyAndAddUnsafe(e,t,n){let r=C.BASE,a=(e,t)=>t!==ep&&t!==eh&&e.equals(r)?e.multiply(t):e.multiplyUnsafe(t),o=a(this,t).add(a(e,n));return o.is0()?void 0:o}toAffine(e){return b(this,e)}isTorsionFree(){let{h:e,isTorsionFree:t}=n;if(e===eh)return!0;if(t)return t(C,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:t}=n;return e===eh?this:t?t(C,this):this.multiplyUnsafe(n.h)}toRawBytes(e=!0){return d("isCompressed",e),this.assertValidity(),o(C,this,e)}toHex(e=!0){return d("isCompressed",e),g(this.toRawBytes(e))}}C.BASE=new C(n.Gx,n.Gy,r.ONE),C.ZERO=new C(r.ZERO,r.ONE,r.ZERO);let{endo:A,nBitLength:E}=n,B=(t=A?Math.ceil(E/2):E,{constTimeNegate:en,hasPrecomputes:e=>1!==el(e),unsafeLadder(e,t,n=C.ZERO){let r=e;for(;t>ee;)t&et&&(n=n.add(r)),r=r.double(),t>>=et;return n},precomputeWindow(e,n){let{windows:r,windowSize:a}=ea(n,t),o=[],i=e,s=i;for(let e=0;e<r;e++){s=i,o.push(s);for(let e=1;e<a;e++)s=s.add(i),o.push(s);i=s.double()}return o},wNAF(e,n,r){let a=C.ZERO,o=C.BASE,i=ea(e,t);for(let e=0;e<i.windows;e++){let{nextN:t,offset:s,isZero:l,isNeg:c,isNegF:u,offsetF:d}=eo(r,e,i);r=t,l?o=o.add(en(u,n[d])):a=a.add(en(c,n[s]))}return{p:a,f:o}},wNAFUnsafe(e,n,r,a=C.ZERO){let o=ea(e,t);for(let e=0;e<o.windows&&r!==ee;e++){let{nextN:t,offset:i,isZero:s,isNeg:l}=eo(r,e,o);if(r=t,!s){let e=n[i];a=a.add(l?e.negate():e)}}return a},getPrecomputes(e,t,n){let r=ei.get(t);return r||(r=this.precomputeWindow(t,e),1!==e&&ei.set(t,n(r))),r},wNAFCached(e,t,n){let r=el(e);return this.wNAF(r,this.getPrecomputes(r,e,n),t)},wNAFCachedUnsafe(e,t,n,r){let a=el(e);return 1===a?this.unsafeLadder(e,t,r):this.wNAFUnsafe(a,this.getPrecomputes(a,e,n),t,r)},setWindowSize(e,n){er(n,t),es.set(e,n),ei.delete(e)}});return{CURVE:n,ProjectivePoint:C,normPrivateKeyToScalar:m,weierstrassEquation:u,isWithinCurveOrder:function(e){return j(e,eh,n.n)}}}({...t,toBytes(e,t,r){let a=t.toAffine(),o=n.toBytes(a.x);return(d("isCompressed",r),r)?k(Uint8Array.from([t.hasEvenY()?2:3]),o):k(Uint8Array.from([4]),o,n.toBytes(a.y))},fromBytes(e){let t=e.length,r=e[0],a=e.subarray(1);if(t===i&&(2===r||3===r)){let e;let t=v(a);if(!j(t,eh,n.ORDER))throw Error("Point is not on curve");let o=m(t);try{e=n.sqrt(o)}catch(e){throw Error("Point is not on curve"+(e instanceof Error?": "+e.message:""))}return(1&r)==1!=((e&eh)===eh)&&(e=n.neg(e)),{x:t,y:e}}if(t===u&&4===r)return{x:n.fromBytes(a.subarray(0,n.BYTES)),y:n.fromBytes(a.subarray(n.BYTES,2*n.BYTES))};throw Error("invalid Point, expected length of "+i+", or uncompressed "+u+", got "+t)}}),b=(e,t,n)=>v(e.slice(t,n));class B{constructor(e,t,n){I("r",e,eh,r),I("s",t,eh,r),this.r=e,this.s=t,null!=n&&(this.recovery=n),Object.freeze(this)}static fromCompact(e){return new B(b(e=x("compactSignature",e,2*a),0,a),b(e,a,2*a))}static fromDER(e){let{r:t,s:n}=ef.toSig(x("DER",e));return new B(t,n)}assertValidity(){}addRecoveryBit(e){return new B(this.r,this.s,e)}recoverPublicKey(e){let{r:a,s:o,recovery:i}=this,s=F(x("msgHash",e));if(null==i||![0,1,2,3].includes(i))throw Error("recovery id invalid");let l=2===i||3===i?a+t.n:a;if(l>=n.ORDER)throw Error("recovery id 2 or 3 invalid");let c=(1&i)==0?"02":"03",u=p.fromHex(c+g(A(l,n.BYTES))),d=G(l,r),h=f(-s*d),m=f(o*d),y=p.BASE.multiplyAndAddUnsafe(u,h,m);if(!y)throw Error("point at infinify");return y.assertValidity(),y}hasHighS(){return this.s>r>>eh}normalizeS(){return this.hasHighS()?new B(this.r,f(-this.s),this.recovery):this}toDERRawBytes(){return w(this.toDERHex())}toDERHex(){return ef.hexFromSig(this)}toCompactRawBytes(){return w(this.toCompactHex())}toCompactHex(){return g(A(this.r,a))+g(A(this.s,a))}}function P(e){if("bigint"==typeof e)return!1;if(e instanceof p)return!0;let r=x("key",e).length,o=n.BYTES,i=o+1;if(!t.allowedPrivateKeyLengths&&a!==i)return r===i||r===2*o+1}let N=t.bits2int||function(e){if(e.length>8192)throw Error("input is too large");let t=v(e),n=8*e.length-o;return n>0?t>>BigInt(n):t},F=t.bits2int_modN||function(e){return f(N(e))},L=S(o);function _(e){return I("num < 2^"+o,e,ep,L),A(e,a)}let U={lowS:t.lowS,prehash:!1},z={lowS:t.lowS,prehash:!1};return p.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e,t=!0){return p.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,n=!0){if(!0===P(e))throw Error("first arg must be private key");if(!1===P(t))throw Error("second arg must be public key");return p.fromHex(t).multiply(h(e)).toRawBytes(n)},sign:function(e,a,o=U){let{seed:i,k2sig:s}=function(e,a,o=U){if(["recovered","canonical"].some(e=>e in o))throw Error("sign() legacy options not supported");let{hash:i,randomBytes:s}=t,{lowS:l,prehash:c,extraEntropy:u}=o;null==l&&(l=!0),e=x("msgHash",e),eu(o),c&&(e=x("prehashed msgHash",i(e)));let d=F(e),m=h(a),g=[_(m),_(d)];if(null!=u&&!1!==u){let e=!0===u?s(n.BYTES):u;g.push(x("extraEntropy",e))}return{seed:k(...g),k2sig:function(e){let t=N(e);if(!y(t))return;let n=G(t,r),a=p.BASE.multiply(t).toAffine(),o=f(a.x);if(o===ep)return;let i=f(n*f(d+o*m));if(i===ep)return;let s=(a.x===o?0:2)|Number(a.y&eh),c=i;if(l&&i>r>>eh)c=i>r>>eh?f(-i):i,s^=1;return new B(o,c,s)}}}(e,a,o);return(function(e,t,n){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof n)throw Error("hmacFn must be a function");let r=T(e),a=T(e),o=0,i=()=>{r.fill(1),a.fill(0),o=0},s=(...e)=>n(a,r,...e),l=(e=T(0))=>{a=s(O([0]),e),r=s(),0!==e.length&&(a=s(O([1]),e),r=s())},c=()=>{if(o++>=1e3)throw Error("drbg: tried 1000 values");let e=0,n=[];for(;e<t;){let t=(r=s()).slice();n.push(t),e+=r.length}return k(...n)};return(e,t)=>{let n;for(i(),l(e);!(n=t(c()));)l();return i(),n}})(t.hash.outputLen,t.nByteLength,t.hmac)(i,s)},verify:function(e,n,a,o=z){let i,s;n=x("msgHash",n),a=x("publicKey",a);let{lowS:l,prehash:u,format:d}=o;if(eu(o),"strict"in o)throw Error("options.strict was renamed to lowS");if(void 0!==d&&"compact"!==d&&"der"!==d)throw Error("format must be compact or der");let h="string"==typeof e||c(e),m=!h&&!d&&"object"==typeof e&&null!==e&&"bigint"==typeof e.r&&"bigint"==typeof e.s;if(!h&&!m)throw Error("invalid signature, expected Uint8Array, hex string or Signature instance");try{if(m&&(s=new B(e.r,e.s)),h){try{"compact"!==d&&(s=B.fromDER(e))}catch(e){if(!(e instanceof ef.Err))throw e}s||"der"===d||(s=B.fromCompact(e))}i=p.fromHex(a)}catch(e){return!1}if(!s||l&&s.hasHighS())return!1;u&&(n=t.hash(n));let{r:g,s:y}=s,b=F(n),w=G(y,r),v=f(b*w),C=f(g*w),A=p.BASE.multiplyAndAddUnsafe(i,v,C)?.toAffine();return!!A&&f(A.x)===g},ProjectivePoint:p,Signature:B,utils:{isValidPrivateKey(e){try{return h(e),!0}catch(e){return!1}},normPrivateKeyToScalar:h,randomPrivateKey:()=>{let e=X(t.n);return function(e,t,n=!1){let r=e.length,a=J(t),o=X(t);if(r<16||r<o||r>1024)throw Error("expected "+o+"-1024 bytes of input, got "+r);let i=W(n?C(e):v(e),t-R)+R;return n?E(i,a):A(i,a)}(t.randomBytes(e),t.n)},precompute:(e=8,t=p.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}})({...e,hash:t,hmac:(e,...n)=>i(t,e,(0,a.eV)(...n)),randomBytes:a.O6});return{...n(t),create:n}}({a:ew,b:BigInt(7),Fp:eE,n:eb,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-ev*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),r=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=BigInt("0x100000000000000000000000000000000"),o=eA(t*e,eb),i=eA(-n*e,eb),s=W(e-o*t-i*r,eb),l=W(-o*n-i*t,eb),c=s>a,u=l>a;if(c&&(s=eb-s),u&&(l=eb-l),s>a||l>a)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:c,k1:s,k2neg:u,k2:l}}}},r.JQ)},1922:(e,t,n)=>{"use strict";n.d(t,{f:()=>c});var r=n(39779),a=n(28934),o=n(71890),i="horizontal",s=["horizontal","vertical"],l=r.forwardRef((e,t)=>{let{decorative:n,orientation:r=i,...l}=e,c=s.includes(r)?r:i;return(0,o.jsx)(a.WV.div,{"data-orientation":c,...n?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},...l,ref:t})});l.displayName="Separator";var c=l},79349:(e,t,n)=>{"use strict";n.d(t,{I:()=>r});var r=`{
|
|
54
|
+
"connect_wallet": {
|
|
55
|
+
"label": "Connect Wallet",
|
|
56
|
+
"wrong_network": {
|
|
57
|
+
"label": "Wrong network"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
"intro": {
|
|
62
|
+
"title": "What is a Wallet?",
|
|
63
|
+
"description": "A wallet is used to send, receive, store, and display digital assets. It's also a new way to log in, without needing to create new accounts and passwords on every website.",
|
|
64
|
+
"digital_asset": {
|
|
65
|
+
"title": "A Home for your Digital Assets",
|
|
66
|
+
"description": "Wallets are used to send, receive, store, and display digital assets like Ethereum and NFTs."
|
|
67
|
+
},
|
|
68
|
+
"login": {
|
|
69
|
+
"title": "A New Way to Log In",
|
|
70
|
+
"description": "Instead of creating new accounts and passwords on every website, just connect your wallet."
|
|
71
|
+
},
|
|
72
|
+
"get": {
|
|
73
|
+
"label": "Get a Wallet"
|
|
74
|
+
},
|
|
75
|
+
"learn_more": {
|
|
76
|
+
"label": "Learn More"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
"sign_in": {
|
|
81
|
+
"label": "Verify your account",
|
|
82
|
+
"description": "To finish connecting, you must sign a message in your wallet to verify that you are the owner of this account.",
|
|
83
|
+
"message": {
|
|
84
|
+
"send": "Sign message",
|
|
85
|
+
"preparing": "Preparing message...",
|
|
86
|
+
"cancel": "Cancel",
|
|
87
|
+
"preparing_error": "Error preparing message, please retry!"
|
|
88
|
+
},
|
|
89
|
+
"signature": {
|
|
90
|
+
"waiting": "Waiting for signature...",
|
|
91
|
+
"verifying": "Verifying signature...",
|
|
92
|
+
"signing_error": "Error signing message, please retry!",
|
|
93
|
+
"verifying_error": "Error verifying signature, please retry!",
|
|
94
|
+
"oops_error": "Oops, something went wrong!"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
"connect": {
|
|
99
|
+
"label": "Connect",
|
|
100
|
+
"title": "Connect a Wallet",
|
|
101
|
+
"new_to_ethereum": {
|
|
102
|
+
"description": "New to Ethereum wallets?",
|
|
103
|
+
"learn_more": {
|
|
104
|
+
"label": "Learn More"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"learn_more": {
|
|
108
|
+
"label": "Learn more"
|
|
109
|
+
},
|
|
110
|
+
"recent": "Recent",
|
|
111
|
+
"status": {
|
|
112
|
+
"opening": "Opening %{wallet}...",
|
|
113
|
+
"connecting": "Connecting",
|
|
114
|
+
"connect_mobile": "Continue in %{wallet}",
|
|
115
|
+
"not_installed": "%{wallet} is not installed",
|
|
116
|
+
"not_available": "%{wallet} is not available",
|
|
117
|
+
"confirm": "Confirm connection in the extension",
|
|
118
|
+
"confirm_mobile": "Accept connection request in the wallet"
|
|
119
|
+
},
|
|
120
|
+
"secondary_action": {
|
|
121
|
+
"get": {
|
|
122
|
+
"description": "Don't have %{wallet}?",
|
|
123
|
+
"label": "GET"
|
|
124
|
+
},
|
|
125
|
+
"install": {
|
|
126
|
+
"label": "INSTALL"
|
|
127
|
+
},
|
|
128
|
+
"retry": {
|
|
129
|
+
"label": "RETRY"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"walletconnect": {
|
|
133
|
+
"description": {
|
|
134
|
+
"full": "Need the official WalletConnect modal?",
|
|
135
|
+
"compact": "Need the WalletConnect modal?"
|
|
136
|
+
},
|
|
137
|
+
"open": {
|
|
138
|
+
"label": "OPEN"
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
|
|
143
|
+
"connect_scan": {
|
|
144
|
+
"title": "Scan with %{wallet}",
|
|
145
|
+
"fallback_title": "Scan with your phone"
|
|
146
|
+
},
|
|
147
|
+
|
|
148
|
+
"connector_group": {
|
|
149
|
+
"installed": "Installed",
|
|
150
|
+
"recommended": "Recommended",
|
|
151
|
+
"other": "Other",
|
|
152
|
+
"popular": "Popular",
|
|
153
|
+
"more": "More",
|
|
154
|
+
"others": "Others"
|
|
155
|
+
},
|
|
156
|
+
|
|
157
|
+
"get": {
|
|
158
|
+
"title": "Get a Wallet",
|
|
159
|
+
"action": {
|
|
160
|
+
"label": "GET"
|
|
161
|
+
},
|
|
162
|
+
"mobile": {
|
|
163
|
+
"description": "Mobile Wallet"
|
|
164
|
+
},
|
|
165
|
+
"extension": {
|
|
166
|
+
"description": "Browser Extension"
|
|
167
|
+
},
|
|
168
|
+
"mobile_and_extension": {
|
|
169
|
+
"description": "Mobile Wallet and Extension"
|
|
170
|
+
},
|
|
171
|
+
"mobile_and_desktop": {
|
|
172
|
+
"description": "Mobile and Desktop Wallet"
|
|
173
|
+
},
|
|
174
|
+
"looking_for": {
|
|
175
|
+
"title": "Not what you're looking for?",
|
|
176
|
+
"mobile": {
|
|
177
|
+
"description": "Select a wallet on the main screen to get started with a different wallet provider."
|
|
178
|
+
},
|
|
179
|
+
"desktop": {
|
|
180
|
+
"compact_description": "Select a wallet on the main screen to get started with a different wallet provider.",
|
|
181
|
+
"wide_description": "Select a wallet on the left to get started with a different wallet provider."
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
|
|
186
|
+
"get_options": {
|
|
187
|
+
"title": "Get started with %{wallet}",
|
|
188
|
+
"short_title": "Get %{wallet}",
|
|
189
|
+
"mobile": {
|
|
190
|
+
"title": "%{wallet} for Mobile",
|
|
191
|
+
"description": "Use the mobile wallet to explore the world of Ethereum.",
|
|
192
|
+
"download": {
|
|
193
|
+
"label": "Get the app"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"extension": {
|
|
197
|
+
"title": "%{wallet} for %{browser}",
|
|
198
|
+
"description": "Access your wallet right from your favorite web browser.",
|
|
199
|
+
"download": {
|
|
200
|
+
"label": "Add to %{browser}"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"desktop": {
|
|
204
|
+
"title": "%{wallet} for %{platform}",
|
|
205
|
+
"description": "Access your wallet natively from your powerful desktop.",
|
|
206
|
+
"download": {
|
|
207
|
+
"label": "Add to %{platform}"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
|
|
212
|
+
"get_mobile": {
|
|
213
|
+
"title": "Install %{wallet}",
|
|
214
|
+
"description": "Scan with your phone to download on iOS or Android",
|
|
215
|
+
"continue": {
|
|
216
|
+
"label": "Continue"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
|
|
220
|
+
"get_instructions": {
|
|
221
|
+
"mobile": {
|
|
222
|
+
"connect": {
|
|
223
|
+
"label": "Connect"
|
|
224
|
+
},
|
|
225
|
+
"learn_more": {
|
|
226
|
+
"label": "Learn More"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"extension": {
|
|
230
|
+
"refresh": {
|
|
231
|
+
"label": "Refresh"
|
|
232
|
+
},
|
|
233
|
+
"learn_more": {
|
|
234
|
+
"label": "Learn More"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"desktop": {
|
|
238
|
+
"connect": {
|
|
239
|
+
"label": "Connect"
|
|
240
|
+
},
|
|
241
|
+
"learn_more": {
|
|
242
|
+
"label": "Learn More"
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
|
|
247
|
+
"chains": {
|
|
248
|
+
"title": "Switch Networks",
|
|
249
|
+
"wrong_network": "Wrong network detected, switch or disconnect to continue.",
|
|
250
|
+
"confirm": "Confirm in Wallet",
|
|
251
|
+
"switching_not_supported": "Your wallet does not support switching networks from %{appName}. Try switching networks from within your wallet instead.",
|
|
252
|
+
"switching_not_supported_fallback": "Your wallet does not support switching networks from this app. Try switching networks from within your wallet instead.",
|
|
253
|
+
"disconnect": "Disconnect",
|
|
254
|
+
"connected": "Connected"
|
|
255
|
+
},
|
|
256
|
+
|
|
257
|
+
"profile": {
|
|
258
|
+
"disconnect": {
|
|
259
|
+
"label": "Disconnect"
|
|
260
|
+
},
|
|
261
|
+
"copy_address": {
|
|
262
|
+
"label": "Copy Address",
|
|
263
|
+
"copied": "Copied!"
|
|
264
|
+
},
|
|
265
|
+
"explorer": {
|
|
266
|
+
"label": "View more on explorer"
|
|
267
|
+
},
|
|
268
|
+
"transactions": {
|
|
269
|
+
"description": "%{appName} transactions will appear here...",
|
|
270
|
+
"description_fallback": "Your transactions will appear here...",
|
|
271
|
+
"recent": {
|
|
272
|
+
"title": "Recent Transactions"
|
|
273
|
+
},
|
|
274
|
+
"clear": {
|
|
275
|
+
"label": "Clear All"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
|
|
280
|
+
"wallet_connectors": {
|
|
281
|
+
"argent": {
|
|
282
|
+
"qr_code": {
|
|
283
|
+
"step1": {
|
|
284
|
+
"description": "Put Argent on your home screen for faster access to your wallet.",
|
|
285
|
+
"title": "Open the Argent app"
|
|
286
|
+
},
|
|
287
|
+
"step2": {
|
|
288
|
+
"description": "Create a wallet and username, or import an existing wallet.",
|
|
289
|
+
"title": "Create or Import a Wallet"
|
|
290
|
+
},
|
|
291
|
+
"step3": {
|
|
292
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
293
|
+
"title": "Tap the Scan QR button"
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
|
|
298
|
+
"berasig": {
|
|
299
|
+
"extension": {
|
|
300
|
+
"step1": {
|
|
301
|
+
"title": "Install the BeraSig extension",
|
|
302
|
+
"description": "We recommend pinning BeraSig to your taskbar for easier access to your wallet."
|
|
303
|
+
},
|
|
304
|
+
"step2": {
|
|
305
|
+
"title": "Create a Wallet",
|
|
306
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
307
|
+
},
|
|
308
|
+
"step3": {
|
|
309
|
+
"title": "Refresh your browser",
|
|
310
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
|
|
315
|
+
"best": {
|
|
316
|
+
"qr_code": {
|
|
317
|
+
"step1": {
|
|
318
|
+
"title": "Open the Best Wallet app",
|
|
319
|
+
"description": "Add Best Wallet to your home screen for faster access to your wallet."
|
|
320
|
+
},
|
|
321
|
+
"step2": {
|
|
322
|
+
"title": "Create or Import a Wallet",
|
|
323
|
+
"description": "Create a new wallet or import an existing one."
|
|
324
|
+
},
|
|
325
|
+
"step3": {
|
|
326
|
+
"title": "Tap the QR icon and scan",
|
|
327
|
+
"description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
|
|
332
|
+
"bifrost": {
|
|
333
|
+
"qr_code": {
|
|
334
|
+
"step1": {
|
|
335
|
+
"description": "We recommend putting Bifrost Wallet on your home screen for quicker access.",
|
|
336
|
+
"title": "Open the Bifrost Wallet app"
|
|
337
|
+
},
|
|
338
|
+
"step2": {
|
|
339
|
+
"description": "Create or import a wallet using your recovery phrase.",
|
|
340
|
+
"title": "Create or Import a Wallet"
|
|
341
|
+
},
|
|
342
|
+
"step3": {
|
|
343
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
344
|
+
"title": "Tap the scan button"
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
|
|
349
|
+
"bitget": {
|
|
350
|
+
"qr_code": {
|
|
351
|
+
"step1": {
|
|
352
|
+
"description": "We recommend putting Bitget Wallet on your home screen for quicker access.",
|
|
353
|
+
"title": "Open the Bitget Wallet app"
|
|
354
|
+
},
|
|
355
|
+
"step2": {
|
|
356
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
357
|
+
"title": "Create or Import a Wallet"
|
|
358
|
+
},
|
|
359
|
+
"step3": {
|
|
360
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
361
|
+
"title": "Tap the scan button"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
|
|
365
|
+
"extension": {
|
|
366
|
+
"step1": {
|
|
367
|
+
"description": "We recommend pinning Bitget Wallet to your taskbar for quicker access to your wallet.",
|
|
368
|
+
"title": "Install the Bitget Wallet extension"
|
|
369
|
+
},
|
|
370
|
+
"step2": {
|
|
371
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
372
|
+
"title": "Create or Import a Wallet"
|
|
373
|
+
},
|
|
374
|
+
"step3": {
|
|
375
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
|
|
376
|
+
"title": "Refresh your browser"
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
|
|
381
|
+
"bitski": {
|
|
382
|
+
"extension": {
|
|
383
|
+
"step1": {
|
|
384
|
+
"description": "We recommend pinning Bitski to your taskbar for quicker access to your wallet.",
|
|
385
|
+
"title": "Install the Bitski extension"
|
|
386
|
+
},
|
|
387
|
+
"step2": {
|
|
388
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
389
|
+
"title": "Create or Import a Wallet"
|
|
390
|
+
},
|
|
391
|
+
"step3": {
|
|
392
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
|
|
393
|
+
"title": "Refresh your browser"
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
|
|
398
|
+
"bitverse": {
|
|
399
|
+
"qr_code": {
|
|
400
|
+
"step1": {
|
|
401
|
+
"title": "Open the Bitverse Wallet app",
|
|
402
|
+
"description": "Add Bitverse Wallet to your home screen for faster access to your wallet."
|
|
403
|
+
},
|
|
404
|
+
"step2": {
|
|
405
|
+
"title": "Create or Import a Wallet",
|
|
406
|
+
"description": "Create a new wallet or import an existing one."
|
|
407
|
+
},
|
|
408
|
+
"step3": {
|
|
409
|
+
"title": "Tap the QR icon and scan",
|
|
410
|
+
"description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
|
|
415
|
+
"bloom": {
|
|
416
|
+
"desktop": {
|
|
417
|
+
"step1": {
|
|
418
|
+
"title": "Open the Bloom Wallet app",
|
|
419
|
+
"description": "We recommend putting Bloom Wallet on your home screen for quicker access."
|
|
420
|
+
},
|
|
421
|
+
"step2": {
|
|
422
|
+
"description": "Create or import a wallet using your recovery phrase.",
|
|
423
|
+
"title": "Create or Import a Wallet"
|
|
424
|
+
},
|
|
425
|
+
"step3": {
|
|
426
|
+
"description": "After you have a wallet, click on Connect to connect via Bloom. A connection prompt in the app will appear for you to confirm the connection.",
|
|
427
|
+
"title": "Click on Connect"
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
|
|
432
|
+
"bybit": {
|
|
433
|
+
"qr_code": {
|
|
434
|
+
"step1": {
|
|
435
|
+
"description": "We recommend putting Bybit on your home screen for faster access to your wallet.",
|
|
436
|
+
"title": "Open the Bybit app"
|
|
437
|
+
},
|
|
438
|
+
"step2": {
|
|
439
|
+
"description": "You can easily backup your wallet using our backup feature on your phone.",
|
|
440
|
+
"title": "Create or Import a Wallet"
|
|
441
|
+
},
|
|
442
|
+
"step3": {
|
|
443
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
444
|
+
"title": "Tap the scan button"
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
|
|
448
|
+
"extension": {
|
|
449
|
+
"step1": {
|
|
450
|
+
"description": "Click at the top right of your browser and pin Bybit Wallet for easy access.",
|
|
451
|
+
"title": "Install the Bybit Wallet extension"
|
|
452
|
+
},
|
|
453
|
+
"step2": {
|
|
454
|
+
"description": "Create a new wallet or import an existing one.",
|
|
455
|
+
"title": "Create or Import a wallet"
|
|
456
|
+
},
|
|
457
|
+
"step3": {
|
|
458
|
+
"description": "Once you set up Bybit Wallet, click below to refresh the browser and load up the extension.",
|
|
459
|
+
"title": "Refresh your browser"
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
|
|
464
|
+
"binance": {
|
|
465
|
+
"qr_code": {
|
|
466
|
+
"step1": {
|
|
467
|
+
"description": "We recommend putting Binance on your home screen for faster access to your wallet.",
|
|
468
|
+
"title": "Open the Binance app"
|
|
469
|
+
},
|
|
470
|
+
"step2": {
|
|
471
|
+
"description": "You can easily backup your wallet using our backup feature on your phone.",
|
|
472
|
+
"title": "Create or Import a Wallet"
|
|
473
|
+
},
|
|
474
|
+
"step3": {
|
|
475
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
476
|
+
"title": "Tap the WalletConnect button"
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
|
|
481
|
+
"coin98": {
|
|
482
|
+
"qr_code": {
|
|
483
|
+
"step1": {
|
|
484
|
+
"description": "We recommend putting Coin98 Wallet on your home screen for faster access to your wallet.",
|
|
485
|
+
"title": "Open the Coin98 Wallet app"
|
|
486
|
+
},
|
|
487
|
+
"step2": {
|
|
488
|
+
"description": "You can easily backup your wallet using our backup feature on your phone.",
|
|
489
|
+
"title": "Create or Import a Wallet"
|
|
490
|
+
},
|
|
491
|
+
"step3": {
|
|
492
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
493
|
+
"title": "Tap the WalletConnect button"
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
|
|
497
|
+
"extension": {
|
|
498
|
+
"step1": {
|
|
499
|
+
"description": "Click at the top right of your browser and pin Coin98 Wallet for easy access.",
|
|
500
|
+
"title": "Install the Coin98 Wallet extension"
|
|
501
|
+
},
|
|
502
|
+
"step2": {
|
|
503
|
+
"description": "Create a new wallet or import an existing one.",
|
|
504
|
+
"title": "Create or Import a wallet"
|
|
505
|
+
},
|
|
506
|
+
"step3": {
|
|
507
|
+
"description": "Once you set up Coin98 Wallet, click below to refresh the browser and load up the extension.",
|
|
508
|
+
"title": "Refresh your browser"
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
|
|
513
|
+
"coinbase": {
|
|
514
|
+
"qr_code": {
|
|
515
|
+
"step1": {
|
|
516
|
+
"description": "We recommend putting Coinbase Wallet on your home screen for quicker access.",
|
|
517
|
+
"title": "Open the Coinbase Wallet app"
|
|
518
|
+
},
|
|
519
|
+
"step2": {
|
|
520
|
+
"description": "You can easily backup your wallet using the cloud backup feature.",
|
|
521
|
+
"title": "Create or Import a Wallet"
|
|
522
|
+
},
|
|
523
|
+
"step3": {
|
|
524
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
525
|
+
"title": "Tap the scan button"
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
|
|
529
|
+
"extension": {
|
|
530
|
+
"step1": {
|
|
531
|
+
"description": "We recommend pinning Coinbase Wallet to your taskbar for quicker access to your wallet.",
|
|
532
|
+
"title": "Install the Coinbase Wallet extension"
|
|
533
|
+
},
|
|
534
|
+
"step2": {
|
|
535
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
536
|
+
"title": "Create or Import a Wallet"
|
|
537
|
+
},
|
|
538
|
+
"step3": {
|
|
539
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
|
|
540
|
+
"title": "Refresh your browser"
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
|
|
545
|
+
"compass": {
|
|
546
|
+
"extension": {
|
|
547
|
+
"step1": {
|
|
548
|
+
"description": "We recommend pinning Compass Wallet to your taskbar for quicker access to your wallet.",
|
|
549
|
+
"title": "Install the Compass Wallet extension"
|
|
550
|
+
},
|
|
551
|
+
"step2": {
|
|
552
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
553
|
+
"title": "Create or Import a Wallet"
|
|
554
|
+
},
|
|
555
|
+
"step3": {
|
|
556
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
|
|
557
|
+
"title": "Refresh your browser"
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
|
|
562
|
+
"core": {
|
|
563
|
+
"qr_code": {
|
|
564
|
+
"step1": {
|
|
565
|
+
"description": "We recommend putting Core on your home screen for faster access to your wallet.",
|
|
566
|
+
"title": "Open the Core app"
|
|
567
|
+
},
|
|
568
|
+
"step2": {
|
|
569
|
+
"description": "You can easily backup your wallet using our backup feature on your phone.",
|
|
570
|
+
"title": "Create or Import a Wallet"
|
|
571
|
+
},
|
|
572
|
+
"step3": {
|
|
573
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
574
|
+
"title": "Tap the WalletConnect button"
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
|
|
578
|
+
"extension": {
|
|
579
|
+
"step1": {
|
|
580
|
+
"description": "We recommend pinning Core to your taskbar for quicker access to your wallet.",
|
|
581
|
+
"title": "Install the Core extension"
|
|
582
|
+
},
|
|
583
|
+
"step2": {
|
|
584
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
585
|
+
"title": "Create or Import a Wallet"
|
|
586
|
+
},
|
|
587
|
+
"step3": {
|
|
588
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
|
|
589
|
+
"title": "Refresh your browser"
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
},
|
|
593
|
+
|
|
594
|
+
"fox": {
|
|
595
|
+
"qr_code": {
|
|
596
|
+
"step1": {
|
|
597
|
+
"description": "We recommend putting FoxWallet on your home screen for quicker access.",
|
|
598
|
+
"title": "Open the FoxWallet app"
|
|
599
|
+
},
|
|
600
|
+
"step2": {
|
|
601
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
602
|
+
"title": "Create or Import a Wallet"
|
|
603
|
+
},
|
|
604
|
+
"step3": {
|
|
605
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
606
|
+
"title": "Tap the scan button"
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
},
|
|
610
|
+
|
|
611
|
+
"frontier": {
|
|
612
|
+
"qr_code": {
|
|
613
|
+
"step1": {
|
|
614
|
+
"description": "We recommend putting Frontier Wallet on your home screen for quicker access.",
|
|
615
|
+
"title": "Open the Frontier Wallet app"
|
|
616
|
+
},
|
|
617
|
+
"step2": {
|
|
618
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
619
|
+
"title": "Create or Import a Wallet"
|
|
620
|
+
},
|
|
621
|
+
"step3": {
|
|
622
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
623
|
+
"title": "Tap the scan button"
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
|
|
627
|
+
"extension": {
|
|
628
|
+
"step1": {
|
|
629
|
+
"description": "We recommend pinning Frontier Wallet to your taskbar for quicker access to your wallet.",
|
|
630
|
+
"title": "Install the Frontier Wallet extension"
|
|
631
|
+
},
|
|
632
|
+
"step2": {
|
|
633
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
634
|
+
"title": "Create or Import a Wallet"
|
|
635
|
+
},
|
|
636
|
+
"step3": {
|
|
637
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
|
|
638
|
+
"title": "Refresh your browser"
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
|
|
643
|
+
"im_token": {
|
|
644
|
+
"qr_code": {
|
|
645
|
+
"step1": {
|
|
646
|
+
"title": "Open the imToken app",
|
|
647
|
+
"description": "Put imToken app on your home screen for faster access to your wallet."
|
|
648
|
+
},
|
|
649
|
+
"step2": {
|
|
650
|
+
"title": "Create or Import a Wallet",
|
|
651
|
+
"description": "Create a new wallet or import an existing one."
|
|
652
|
+
},
|
|
653
|
+
"step3": {
|
|
654
|
+
"title": "Tap Scanner Icon in top right corner",
|
|
655
|
+
"description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
},
|
|
659
|
+
|
|
660
|
+
"iopay": {
|
|
661
|
+
"qr_code": {
|
|
662
|
+
"step1": {
|
|
663
|
+
"description": "We recommend putting ioPay on your home screen for faster access to your wallet.",
|
|
664
|
+
"title": "Open the ioPay app"
|
|
665
|
+
},
|
|
666
|
+
"step2": {
|
|
667
|
+
"description": "You can easily backup your wallet using our backup feature on your phone.",
|
|
668
|
+
"title": "Create or Import a Wallet"
|
|
669
|
+
},
|
|
670
|
+
"step3": {
|
|
671
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
672
|
+
"title": "Tap the WalletConnect button"
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
|
|
677
|
+
"kaikas": {
|
|
678
|
+
"extension": {
|
|
679
|
+
"step1": {
|
|
680
|
+
"description": "We recommend pinning Kaikas to your taskbar for quicker access to your wallet.",
|
|
681
|
+
"title": "Install the Kaikas extension"
|
|
682
|
+
},
|
|
683
|
+
"step2": {
|
|
684
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
685
|
+
"title": "Create or Import a Wallet"
|
|
686
|
+
},
|
|
687
|
+
"step3": {
|
|
688
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
|
|
689
|
+
"title": "Refresh your browser"
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
"qr_code": {
|
|
693
|
+
"step1": {
|
|
694
|
+
"title": "Open the Kaikas app",
|
|
695
|
+
"description": "Put Kaikas app on your home screen for faster access to your wallet."
|
|
696
|
+
},
|
|
697
|
+
"step2": {
|
|
698
|
+
"title": "Create or Import a Wallet",
|
|
699
|
+
"description": "Create a new wallet or import an existing one."
|
|
700
|
+
},
|
|
701
|
+
"step3": {
|
|
702
|
+
"title": "Tap Scanner Icon in top right corner",
|
|
703
|
+
"description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
|
|
708
|
+
"kaia": {
|
|
709
|
+
"extension": {
|
|
710
|
+
"step1": {
|
|
711
|
+
"description": "We recommend pinning Kaia to your taskbar for quicker access to your wallet.",
|
|
712
|
+
"title": "Install the Kaia extension"
|
|
713
|
+
},
|
|
714
|
+
"step2": {
|
|
715
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
716
|
+
"title": "Create or Import a Wallet"
|
|
717
|
+
},
|
|
718
|
+
"step3": {
|
|
719
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
|
|
720
|
+
"title": "Refresh your browser"
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
"qr_code": {
|
|
724
|
+
"step1": {
|
|
725
|
+
"title": "Open the Kaia app",
|
|
726
|
+
"description": "Put Kaia app on your home screen for faster access to your wallet."
|
|
727
|
+
},
|
|
728
|
+
"step2": {
|
|
729
|
+
"title": "Create or Import a Wallet",
|
|
730
|
+
"description": "Create a new wallet or import an existing one."
|
|
731
|
+
},
|
|
732
|
+
"step3": {
|
|
733
|
+
"title": "Tap Scanner Icon in top right corner",
|
|
734
|
+
"description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
},
|
|
738
|
+
|
|
739
|
+
"kraken": {
|
|
740
|
+
"qr_code": {
|
|
741
|
+
"step1": {
|
|
742
|
+
"title": "Open the Kraken Wallet app",
|
|
743
|
+
"description": "Add Kraken Wallet to your home screen for faster access to your wallet."
|
|
744
|
+
},
|
|
745
|
+
"step2": {
|
|
746
|
+
"title": "Create or Import a Wallet",
|
|
747
|
+
"description": "Create a new wallet or import an existing one."
|
|
748
|
+
},
|
|
749
|
+
"step3": {
|
|
750
|
+
"title": "Tap the QR icon and scan",
|
|
751
|
+
"description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
},
|
|
755
|
+
|
|
756
|
+
"kresus": {
|
|
757
|
+
"qr_code": {
|
|
758
|
+
"step1": {
|
|
759
|
+
"title": "Open the Kresus Wallet app",
|
|
760
|
+
"description": "Add Kresus Wallet to your home screen for faster access to your wallet."
|
|
761
|
+
},
|
|
762
|
+
"step2": {
|
|
763
|
+
"title": "Create or Import a Wallet",
|
|
764
|
+
"description": "Create a new wallet or import an existing one."
|
|
765
|
+
},
|
|
766
|
+
"step3": {
|
|
767
|
+
"title": "Tap the QR icon and scan",
|
|
768
|
+
"description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
},
|
|
772
|
+
|
|
773
|
+
"magicEden": {
|
|
774
|
+
"extension": {
|
|
775
|
+
"step1": {
|
|
776
|
+
"title": "Install the Magic Eden extension",
|
|
777
|
+
"description": "We recommend pinning Magic Eden to your taskbar for easier access to your wallet."
|
|
778
|
+
},
|
|
779
|
+
"step2": {
|
|
780
|
+
"title": "Create or Import a Wallet",
|
|
781
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."
|
|
782
|
+
},
|
|
783
|
+
"step3": {
|
|
784
|
+
"title": "Refresh your browser",
|
|
785
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
|
|
790
|
+
"metamask": {
|
|
791
|
+
"qr_code": {
|
|
792
|
+
"step1": {
|
|
793
|
+
"title": "Open the MetaMask app",
|
|
794
|
+
"description": "We recommend putting MetaMask on your home screen for quicker access."
|
|
795
|
+
},
|
|
796
|
+
"step2": {
|
|
797
|
+
"title": "Create or Import a Wallet",
|
|
798
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
799
|
+
},
|
|
800
|
+
"step3": {
|
|
801
|
+
"title": "Tap the scan button",
|
|
802
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet."
|
|
803
|
+
}
|
|
804
|
+
},
|
|
805
|
+
|
|
806
|
+
"extension": {
|
|
807
|
+
"step1": {
|
|
808
|
+
"title": "Install the MetaMask extension",
|
|
809
|
+
"description": "We recommend pinning MetaMask to your taskbar for quicker access to your wallet."
|
|
810
|
+
},
|
|
811
|
+
"step2": {
|
|
812
|
+
"title": "Create or Import a Wallet",
|
|
813
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
814
|
+
},
|
|
815
|
+
"step3": {
|
|
816
|
+
"title": "Refresh your browser",
|
|
817
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
|
|
822
|
+
"nestwallet": {
|
|
823
|
+
"extension": {
|
|
824
|
+
"step1": {
|
|
825
|
+
"title": "Install the NestWallet extension",
|
|
826
|
+
"description": "We recommend pinning NestWallet to your taskbar for quicker access to your wallet."
|
|
827
|
+
},
|
|
828
|
+
"step2": {
|
|
829
|
+
"title": "Create or Import a Wallet",
|
|
830
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
831
|
+
},
|
|
832
|
+
"step3": {
|
|
833
|
+
"title": "Refresh your browser",
|
|
834
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
},
|
|
838
|
+
|
|
839
|
+
"okx": {
|
|
840
|
+
"qr_code": {
|
|
841
|
+
"step1": {
|
|
842
|
+
"title": "Open the OKX Wallet app",
|
|
843
|
+
"description": "We recommend putting OKX Wallet on your home screen for quicker access."
|
|
844
|
+
},
|
|
845
|
+
"step2": {
|
|
846
|
+
"title": "Create or Import a Wallet",
|
|
847
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
848
|
+
},
|
|
849
|
+
"step3": {
|
|
850
|
+
"title": "Tap the scan button",
|
|
851
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet."
|
|
852
|
+
}
|
|
853
|
+
},
|
|
854
|
+
|
|
855
|
+
"extension": {
|
|
856
|
+
"step1": {
|
|
857
|
+
"title": "Install the OKX Wallet extension",
|
|
858
|
+
"description": "We recommend pinning OKX Wallet to your taskbar for quicker access to your wallet."
|
|
859
|
+
},
|
|
860
|
+
"step2": {
|
|
861
|
+
"title": "Create or Import a Wallet",
|
|
862
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
863
|
+
},
|
|
864
|
+
"step3": {
|
|
865
|
+
"title": "Refresh your browser",
|
|
866
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
},
|
|
870
|
+
|
|
871
|
+
"omni": {
|
|
872
|
+
"qr_code": {
|
|
873
|
+
"step1": {
|
|
874
|
+
"title": "Open the Omni app",
|
|
875
|
+
"description": "Add Omni to your home screen for faster access to your wallet."
|
|
876
|
+
},
|
|
877
|
+
"step2": {
|
|
878
|
+
"title": "Create or Import a Wallet",
|
|
879
|
+
"description": "Create a new wallet or import an existing one."
|
|
880
|
+
},
|
|
881
|
+
"step3": {
|
|
882
|
+
"title": "Tap the QR icon and scan",
|
|
883
|
+
"description": "Tap the QR icon on your home screen, scan the code and confirm the prompt to connect."
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
|
|
888
|
+
"1inch": {
|
|
889
|
+
"qr_code": {
|
|
890
|
+
"step1": {
|
|
891
|
+
"description": "Put 1inch Wallet on your home screen for faster access to your wallet.",
|
|
892
|
+
"title": "Open the 1inch Wallet app"
|
|
893
|
+
},
|
|
894
|
+
"step2": {
|
|
895
|
+
"description": "Create a wallet and username, or import an existing wallet.",
|
|
896
|
+
"title": "Create or Import a Wallet"
|
|
897
|
+
},
|
|
898
|
+
"step3": {
|
|
899
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
900
|
+
"title": "Tap the Scan QR button"
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
},
|
|
904
|
+
|
|
905
|
+
"token_pocket": {
|
|
906
|
+
"qr_code": {
|
|
907
|
+
"step1": {
|
|
908
|
+
"title": "Open the TokenPocket app",
|
|
909
|
+
"description": "We recommend putting TokenPocket on your home screen for quicker access."
|
|
910
|
+
},
|
|
911
|
+
"step2": {
|
|
912
|
+
"title": "Create or Import a Wallet",
|
|
913
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
914
|
+
},
|
|
915
|
+
"step3": {
|
|
916
|
+
"title": "Tap the scan button",
|
|
917
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet."
|
|
918
|
+
}
|
|
919
|
+
},
|
|
920
|
+
|
|
921
|
+
"extension": {
|
|
922
|
+
"step1": {
|
|
923
|
+
"title": "Install the TokenPocket extension",
|
|
924
|
+
"description": "We recommend pinning TokenPocket to your taskbar for quicker access to your wallet."
|
|
925
|
+
},
|
|
926
|
+
"step2": {
|
|
927
|
+
"title": "Create or Import a Wallet",
|
|
928
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
929
|
+
},
|
|
930
|
+
"step3": {
|
|
931
|
+
"title": "Refresh your browser",
|
|
932
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
},
|
|
936
|
+
|
|
937
|
+
"trust": {
|
|
938
|
+
"qr_code": {
|
|
939
|
+
"step1": {
|
|
940
|
+
"title": "Open the Trust Wallet app",
|
|
941
|
+
"description": "Put Trust Wallet on your home screen for faster access to your wallet."
|
|
942
|
+
},
|
|
943
|
+
"step2": {
|
|
944
|
+
"title": "Create or Import a Wallet",
|
|
945
|
+
"description": "Create a new wallet or import an existing one."
|
|
946
|
+
},
|
|
947
|
+
"step3": {
|
|
948
|
+
"title": "Tap WalletConnect in Settings",
|
|
949
|
+
"description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
|
|
950
|
+
}
|
|
951
|
+
},
|
|
952
|
+
|
|
953
|
+
"extension": {
|
|
954
|
+
"step1": {
|
|
955
|
+
"title": "Install the Trust Wallet extension",
|
|
956
|
+
"description": "Click at the top right of your browser and pin Trust Wallet for easy access."
|
|
957
|
+
},
|
|
958
|
+
"step2": {
|
|
959
|
+
"title": "Create or Import a wallet",
|
|
960
|
+
"description": "Create a new wallet or import an existing one."
|
|
961
|
+
},
|
|
962
|
+
"step3": {
|
|
963
|
+
"title": "Refresh your browser",
|
|
964
|
+
"description": "Once you set up Trust Wallet, click below to refresh the browser and load up the extension."
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
},
|
|
968
|
+
|
|
969
|
+
"uniswap": {
|
|
970
|
+
"qr_code": {
|
|
971
|
+
"step1": {
|
|
972
|
+
"title": "Open the Uniswap app",
|
|
973
|
+
"description": "Add Uniswap Wallet to your home screen for faster access to your wallet."
|
|
974
|
+
},
|
|
975
|
+
"step2": {
|
|
976
|
+
"title": "Create or Import a Wallet",
|
|
977
|
+
"description": "Create a new wallet or import an existing one."
|
|
978
|
+
},
|
|
979
|
+
"step3": {
|
|
980
|
+
"title": "Tap the QR icon and scan",
|
|
981
|
+
"description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
},
|
|
985
|
+
|
|
986
|
+
"zerion": {
|
|
987
|
+
"qr_code": {
|
|
988
|
+
"step1": {
|
|
989
|
+
"title": "Open the Zerion app",
|
|
990
|
+
"description": "We recommend putting Zerion on your home screen for quicker access."
|
|
991
|
+
},
|
|
992
|
+
"step2": {
|
|
993
|
+
"title": "Create or Import a Wallet",
|
|
994
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
995
|
+
},
|
|
996
|
+
"step3": {
|
|
997
|
+
"title": "Tap the scan button",
|
|
998
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet."
|
|
999
|
+
}
|
|
1000
|
+
},
|
|
1001
|
+
|
|
1002
|
+
"extension": {
|
|
1003
|
+
"step1": {
|
|
1004
|
+
"title": "Install the Zerion extension",
|
|
1005
|
+
"description": "We recommend pinning Zerion to your taskbar for quicker access to your wallet."
|
|
1006
|
+
},
|
|
1007
|
+
"step2": {
|
|
1008
|
+
"title": "Create or Import a Wallet",
|
|
1009
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1010
|
+
},
|
|
1011
|
+
"step3": {
|
|
1012
|
+
"title": "Refresh your browser",
|
|
1013
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
},
|
|
1017
|
+
|
|
1018
|
+
"rainbow": {
|
|
1019
|
+
"qr_code": {
|
|
1020
|
+
"step1": {
|
|
1021
|
+
"title": "Open the Rainbow app",
|
|
1022
|
+
"description": "We recommend putting Rainbow on your home screen for faster access to your wallet."
|
|
1023
|
+
},
|
|
1024
|
+
"step2": {
|
|
1025
|
+
"title": "Create or Import a Wallet",
|
|
1026
|
+
"description": "You can easily backup your wallet using our backup feature on your phone."
|
|
1027
|
+
},
|
|
1028
|
+
"step3": {
|
|
1029
|
+
"title": "Tap the scan button",
|
|
1030
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet."
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
},
|
|
1034
|
+
|
|
1035
|
+
"enkrypt": {
|
|
1036
|
+
"extension": {
|
|
1037
|
+
"step1": {
|
|
1038
|
+
"description": "We recommend pinning Enkrypt Wallet to your taskbar for quicker access to your wallet.",
|
|
1039
|
+
"title": "Install the Enkrypt Wallet extension"
|
|
1040
|
+
},
|
|
1041
|
+
"step2": {
|
|
1042
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
1043
|
+
"title": "Create or Import a Wallet"
|
|
1044
|
+
},
|
|
1045
|
+
"step3": {
|
|
1046
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
|
|
1047
|
+
"title": "Refresh your browser"
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
},
|
|
1051
|
+
|
|
1052
|
+
"frame": {
|
|
1053
|
+
"extension": {
|
|
1054
|
+
"step1": {
|
|
1055
|
+
"description": "We recommend pinning Frame to your taskbar for quicker access to your wallet.",
|
|
1056
|
+
"title": "Install Frame & the companion extension"
|
|
1057
|
+
},
|
|
1058
|
+
"step2": {
|
|
1059
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
1060
|
+
"title": "Create or Import a Wallet"
|
|
1061
|
+
},
|
|
1062
|
+
"step3": {
|
|
1063
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
|
|
1064
|
+
"title": "Refresh your browser"
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
},
|
|
1068
|
+
|
|
1069
|
+
"one_key": {
|
|
1070
|
+
"extension": {
|
|
1071
|
+
"step1": {
|
|
1072
|
+
"title": "Install the OneKey Wallet extension",
|
|
1073
|
+
"description": "We recommend pinning OneKey Wallet to your taskbar for quicker access to your wallet."
|
|
1074
|
+
},
|
|
1075
|
+
"step2": {
|
|
1076
|
+
"title": "Create or Import a Wallet",
|
|
1077
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1078
|
+
},
|
|
1079
|
+
"step3": {
|
|
1080
|
+
"title": "Refresh your browser",
|
|
1081
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
},
|
|
1085
|
+
|
|
1086
|
+
"paraswap": {
|
|
1087
|
+
"qr_code": {
|
|
1088
|
+
"step1": {
|
|
1089
|
+
"title": "Open the ParaSwap app",
|
|
1090
|
+
"description": "Add ParaSwap Wallet to your home screen for faster access to your wallet."
|
|
1091
|
+
},
|
|
1092
|
+
"step2": {
|
|
1093
|
+
"title": "Create or Import a Wallet",
|
|
1094
|
+
"description": "Create a new wallet or import an existing one."
|
|
1095
|
+
},
|
|
1096
|
+
"step3": {
|
|
1097
|
+
"title": "Tap the QR icon and scan",
|
|
1098
|
+
"description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
},
|
|
1102
|
+
|
|
1103
|
+
"phantom": {
|
|
1104
|
+
"extension": {
|
|
1105
|
+
"step1": {
|
|
1106
|
+
"title": "Install the Phantom extension",
|
|
1107
|
+
"description": "We recommend pinning Phantom to your taskbar for easier access to your wallet."
|
|
1108
|
+
},
|
|
1109
|
+
"step2": {
|
|
1110
|
+
"title": "Create or Import a Wallet",
|
|
1111
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."
|
|
1112
|
+
},
|
|
1113
|
+
"step3": {
|
|
1114
|
+
"title": "Refresh your browser",
|
|
1115
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
},
|
|
1119
|
+
|
|
1120
|
+
"rabby": {
|
|
1121
|
+
"extension": {
|
|
1122
|
+
"step1": {
|
|
1123
|
+
"title": "Install the Rabby extension",
|
|
1124
|
+
"description": "We recommend pinning Rabby to your taskbar for quicker access to your wallet."
|
|
1125
|
+
},
|
|
1126
|
+
"step2": {
|
|
1127
|
+
"title": "Create or Import a Wallet",
|
|
1128
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1129
|
+
},
|
|
1130
|
+
"step3": {
|
|
1131
|
+
"title": "Refresh your browser",
|
|
1132
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
},
|
|
1136
|
+
|
|
1137
|
+
"ronin": {
|
|
1138
|
+
"qr_code": {
|
|
1139
|
+
"step1": {
|
|
1140
|
+
"description": "We recommend putting Ronin Wallet on your home screen for quicker access.",
|
|
1141
|
+
"title": "Open the Ronin Wallet app"
|
|
1142
|
+
},
|
|
1143
|
+
"step2": {
|
|
1144
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
1145
|
+
"title": "Create or Import a Wallet"
|
|
1146
|
+
},
|
|
1147
|
+
"step3": {
|
|
1148
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
1149
|
+
"title": "Tap the scan button"
|
|
1150
|
+
}
|
|
1151
|
+
},
|
|
1152
|
+
|
|
1153
|
+
"extension": {
|
|
1154
|
+
"step1": {
|
|
1155
|
+
"description": "We recommend pinning Ronin Wallet to your taskbar for quicker access to your wallet.",
|
|
1156
|
+
"title": "Install the Ronin Wallet extension"
|
|
1157
|
+
},
|
|
1158
|
+
"step2": {
|
|
1159
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
|
|
1160
|
+
"title": "Create or Import a Wallet"
|
|
1161
|
+
},
|
|
1162
|
+
"step3": {
|
|
1163
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
|
|
1164
|
+
"title": "Refresh your browser"
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
},
|
|
1168
|
+
|
|
1169
|
+
"ramper": {
|
|
1170
|
+
"extension": {
|
|
1171
|
+
"step1": {
|
|
1172
|
+
"title": "Install the Ramper extension",
|
|
1173
|
+
"description": "We recommend pinning Ramper to your taskbar for easier access to your wallet."
|
|
1174
|
+
},
|
|
1175
|
+
"step2": {
|
|
1176
|
+
"title": "Create a Wallet",
|
|
1177
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1178
|
+
},
|
|
1179
|
+
"step3": {
|
|
1180
|
+
"title": "Refresh your browser",
|
|
1181
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
},
|
|
1185
|
+
|
|
1186
|
+
"safeheron": {
|
|
1187
|
+
"extension": {
|
|
1188
|
+
"step1": {
|
|
1189
|
+
"title": "Install the Core extension",
|
|
1190
|
+
"description": "We recommend pinning Safeheron to your taskbar for quicker access to your wallet."
|
|
1191
|
+
},
|
|
1192
|
+
"step2": {
|
|
1193
|
+
"title": "Create or Import a Wallet",
|
|
1194
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1195
|
+
},
|
|
1196
|
+
"step3": {
|
|
1197
|
+
"title": "Refresh your browser",
|
|
1198
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
},
|
|
1202
|
+
|
|
1203
|
+
"taho": {
|
|
1204
|
+
"extension": {
|
|
1205
|
+
"step1": {
|
|
1206
|
+
"title": "Install the Taho extension",
|
|
1207
|
+
"description": "We recommend pinning Taho to your taskbar for quicker access to your wallet."
|
|
1208
|
+
},
|
|
1209
|
+
"step2": {
|
|
1210
|
+
"title": "Create or Import a Wallet",
|
|
1211
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1212
|
+
},
|
|
1213
|
+
"step3": {
|
|
1214
|
+
"title": "Refresh your browser",
|
|
1215
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
},
|
|
1219
|
+
|
|
1220
|
+
"wigwam": {
|
|
1221
|
+
"extension": {
|
|
1222
|
+
"step1": {
|
|
1223
|
+
"title": "Install the Wigwam extension",
|
|
1224
|
+
"description": "We recommend pinning Wigwam to your taskbar for quicker access to your wallet."
|
|
1225
|
+
},
|
|
1226
|
+
"step2": {
|
|
1227
|
+
"title": "Create or Import a Wallet",
|
|
1228
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1229
|
+
},
|
|
1230
|
+
"step3": {
|
|
1231
|
+
"title": "Refresh your browser",
|
|
1232
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
},
|
|
1236
|
+
|
|
1237
|
+
"talisman": {
|
|
1238
|
+
"extension": {
|
|
1239
|
+
"step1": {
|
|
1240
|
+
"title": "Install the Talisman extension",
|
|
1241
|
+
"description": "We recommend pinning Talisman to your taskbar for quicker access to your wallet."
|
|
1242
|
+
},
|
|
1243
|
+
"step2": {
|
|
1244
|
+
"title": "Create or Import an Ethereum Wallet",
|
|
1245
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."
|
|
1246
|
+
},
|
|
1247
|
+
"step3": {
|
|
1248
|
+
"title": "Refresh your browser",
|
|
1249
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
},
|
|
1253
|
+
|
|
1254
|
+
"xdefi": {
|
|
1255
|
+
"extension": {
|
|
1256
|
+
"step1": {
|
|
1257
|
+
"title": "Install the XDEFI Wallet extension",
|
|
1258
|
+
"description": "We recommend pinning XDEFI Wallet to your taskbar for quicker access to your wallet."
|
|
1259
|
+
},
|
|
1260
|
+
"step2": {
|
|
1261
|
+
"title": "Create or Import a Wallet",
|
|
1262
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1263
|
+
},
|
|
1264
|
+
"step3": {
|
|
1265
|
+
"title": "Refresh your browser",
|
|
1266
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
},
|
|
1270
|
+
|
|
1271
|
+
"zeal": {
|
|
1272
|
+
"qr_code": {
|
|
1273
|
+
"step1": {
|
|
1274
|
+
"title": "Open the Zeal app",
|
|
1275
|
+
"description": "Add Zeal Wallet to your home screen for faster access to your wallet."
|
|
1276
|
+
},
|
|
1277
|
+
"step2": {
|
|
1278
|
+
"title": "Create or Import a Wallet",
|
|
1279
|
+
"description": "Create a new wallet or import an existing one."
|
|
1280
|
+
},
|
|
1281
|
+
"step3": {
|
|
1282
|
+
"title": "Tap the QR icon and scan",
|
|
1283
|
+
"description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
|
|
1284
|
+
}
|
|
1285
|
+
},
|
|
1286
|
+
"extension": {
|
|
1287
|
+
"step1": {
|
|
1288
|
+
"title": "Install the Zeal extension",
|
|
1289
|
+
"description": "We recommend pinning Zeal to your taskbar for quicker access to your wallet."
|
|
1290
|
+
},
|
|
1291
|
+
"step2": {
|
|
1292
|
+
"title": "Create or Import a Wallet",
|
|
1293
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1294
|
+
},
|
|
1295
|
+
"step3": {
|
|
1296
|
+
"title": "Refresh your browser",
|
|
1297
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
},
|
|
1301
|
+
|
|
1302
|
+
"safepal": {
|
|
1303
|
+
"extension": {
|
|
1304
|
+
"step1": {
|
|
1305
|
+
"title": "Install the SafePal Wallet extension",
|
|
1306
|
+
"description": "Click at the top right of your browser and pin SafePal Wallet for easy access."
|
|
1307
|
+
},
|
|
1308
|
+
"step2": {
|
|
1309
|
+
"title": "Create or Import a wallet",
|
|
1310
|
+
"description": "Create a new wallet or import an existing one."
|
|
1311
|
+
},
|
|
1312
|
+
"step3": {
|
|
1313
|
+
"title": "Refresh your browser",
|
|
1314
|
+
"description": "Once you set up SafePal Wallet, click below to refresh the browser and load up the extension."
|
|
1315
|
+
}
|
|
1316
|
+
},
|
|
1317
|
+
"qr_code": {
|
|
1318
|
+
"step1": {
|
|
1319
|
+
"title": "Open the SafePal Wallet app",
|
|
1320
|
+
"description": "Put SafePal Wallet on your home screen for faster access to your wallet."
|
|
1321
|
+
},
|
|
1322
|
+
"step2": {
|
|
1323
|
+
"title": "Create or Import a Wallet",
|
|
1324
|
+
"description": "Create a new wallet or import an existing one."
|
|
1325
|
+
},
|
|
1326
|
+
"step3": {
|
|
1327
|
+
"title": "Tap WalletConnect in Settings",
|
|
1328
|
+
"description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
},
|
|
1332
|
+
|
|
1333
|
+
"desig": {
|
|
1334
|
+
"extension": {
|
|
1335
|
+
"step1": {
|
|
1336
|
+
"title": "Install the Desig extension",
|
|
1337
|
+
"description": "We recommend pinning Desig to your taskbar for easier access to your wallet."
|
|
1338
|
+
},
|
|
1339
|
+
"step2": {
|
|
1340
|
+
"title": "Create a Wallet",
|
|
1341
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1342
|
+
},
|
|
1343
|
+
"step3": {
|
|
1344
|
+
"title": "Refresh your browser",
|
|
1345
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
},
|
|
1349
|
+
|
|
1350
|
+
"subwallet": {
|
|
1351
|
+
"extension": {
|
|
1352
|
+
"step1": {
|
|
1353
|
+
"title": "Install the SubWallet extension",
|
|
1354
|
+
"description": "We recommend pinning SubWallet to your taskbar for quicker access to your wallet."
|
|
1355
|
+
},
|
|
1356
|
+
"step2": {
|
|
1357
|
+
"title": "Create or Import a Wallet",
|
|
1358
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."
|
|
1359
|
+
},
|
|
1360
|
+
"step3": {
|
|
1361
|
+
"title": "Refresh your browser",
|
|
1362
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1363
|
+
}
|
|
1364
|
+
},
|
|
1365
|
+
"qr_code": {
|
|
1366
|
+
"step1": {
|
|
1367
|
+
"title": "Open the SubWallet app",
|
|
1368
|
+
"description": "We recommend putting SubWallet on your home screen for quicker access."
|
|
1369
|
+
},
|
|
1370
|
+
"step2": {
|
|
1371
|
+
"title": "Create or Import a Wallet",
|
|
1372
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1373
|
+
},
|
|
1374
|
+
"step3": {
|
|
1375
|
+
"title": "Tap the scan button",
|
|
1376
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet."
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
},
|
|
1380
|
+
|
|
1381
|
+
"clv": {
|
|
1382
|
+
"extension": {
|
|
1383
|
+
"step1": {
|
|
1384
|
+
"title": "Install the CLV Wallet extension",
|
|
1385
|
+
"description": "We recommend pinning CLV Wallet to your taskbar for quicker access to your wallet."
|
|
1386
|
+
},
|
|
1387
|
+
"step2": {
|
|
1388
|
+
"title": "Create or Import a Wallet",
|
|
1389
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1390
|
+
},
|
|
1391
|
+
"step3": {
|
|
1392
|
+
"title": "Refresh your browser",
|
|
1393
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1394
|
+
}
|
|
1395
|
+
},
|
|
1396
|
+
"qr_code": {
|
|
1397
|
+
"step1": {
|
|
1398
|
+
"title": "Open the CLV Wallet app",
|
|
1399
|
+
"description": "We recommend putting CLV Wallet on your home screen for quicker access."
|
|
1400
|
+
},
|
|
1401
|
+
"step2": {
|
|
1402
|
+
"title": "Create or Import a Wallet",
|
|
1403
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
|
|
1404
|
+
},
|
|
1405
|
+
"step3": {
|
|
1406
|
+
"title": "Tap the scan button",
|
|
1407
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet."
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
},
|
|
1411
|
+
|
|
1412
|
+
"okto": {
|
|
1413
|
+
"qr_code": {
|
|
1414
|
+
"step1": {
|
|
1415
|
+
"title": "Open the Okto app",
|
|
1416
|
+
"description": "Add Okto to your home screen for quick access"
|
|
1417
|
+
},
|
|
1418
|
+
"step2": {
|
|
1419
|
+
"title": "Create an MPC Wallet",
|
|
1420
|
+
"description": "Create an account and generate a wallet"
|
|
1421
|
+
},
|
|
1422
|
+
"step3": {
|
|
1423
|
+
"title": "Tap WalletConnect in Settings",
|
|
1424
|
+
"description": "Tap the Scan QR icon at the top right and confirm the prompt to connect."
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
},
|
|
1428
|
+
|
|
1429
|
+
"ledger": {
|
|
1430
|
+
"desktop": {
|
|
1431
|
+
"step1": {
|
|
1432
|
+
"title": "Open the Ledger Live app",
|
|
1433
|
+
"description": "We recommend putting Ledger Live on your home screen for quicker access."
|
|
1434
|
+
},
|
|
1435
|
+
"step2": {
|
|
1436
|
+
"title": "Set up your Ledger",
|
|
1437
|
+
"description": "Set up a new Ledger or connect to an existing one."
|
|
1438
|
+
},
|
|
1439
|
+
"step3": {
|
|
1440
|
+
"title": "Connect",
|
|
1441
|
+
"description": "A connection prompt will appear for you to connect your wallet."
|
|
1442
|
+
}
|
|
1443
|
+
},
|
|
1444
|
+
"qr_code": {
|
|
1445
|
+
"step1": {
|
|
1446
|
+
"title": "Open the Ledger Live app",
|
|
1447
|
+
"description": "We recommend putting Ledger Live on your home screen for quicker access."
|
|
1448
|
+
},
|
|
1449
|
+
"step2": {
|
|
1450
|
+
"title": "Set up your Ledger",
|
|
1451
|
+
"description": "You can either sync with the desktop app or connect your Ledger."
|
|
1452
|
+
},
|
|
1453
|
+
"step3": {
|
|
1454
|
+
"title": "Scan the code",
|
|
1455
|
+
"description": "Tap WalletConnect then Switch to Scanner. After you scan, a connection prompt will appear for you to connect your wallet."
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
},
|
|
1459
|
+
|
|
1460
|
+
"valora": {
|
|
1461
|
+
"qr_code": {
|
|
1462
|
+
"step1": {
|
|
1463
|
+
"title": "Open the Valora app",
|
|
1464
|
+
"description": "We recommend putting Valora on your home screen for quicker access."
|
|
1465
|
+
},
|
|
1466
|
+
"step2": {
|
|
1467
|
+
"title": "Create or import a wallet",
|
|
1468
|
+
"description": "Create a new wallet or import an existing one."
|
|
1469
|
+
},
|
|
1470
|
+
"step3": {
|
|
1471
|
+
"title": "Tap the scan button",
|
|
1472
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet."
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
},
|
|
1476
|
+
|
|
1477
|
+
"gate": {
|
|
1478
|
+
"qr_code": {
|
|
1479
|
+
"step1": {
|
|
1480
|
+
"title": "Open the Gate app",
|
|
1481
|
+
"description": "We recommend putting Gate on your home screen for quicker access."
|
|
1482
|
+
},
|
|
1483
|
+
"step2": {
|
|
1484
|
+
"title": "Create or Import a Wallet",
|
|
1485
|
+
"description": "Create a new wallet or import an existing one."
|
|
1486
|
+
},
|
|
1487
|
+
"step3": {
|
|
1488
|
+
"title": "Tap the scan button",
|
|
1489
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet."
|
|
1490
|
+
}
|
|
1491
|
+
},
|
|
1492
|
+
"extension": {
|
|
1493
|
+
"step1": {
|
|
1494
|
+
"title": "Install the Gate extension",
|
|
1495
|
+
"description": "We recommend pinning Gate to your taskbar for easier access to your wallet."
|
|
1496
|
+
},
|
|
1497
|
+
"step2": {
|
|
1498
|
+
"title": "Create or Import a Wallet",
|
|
1499
|
+
"description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."
|
|
1500
|
+
},
|
|
1501
|
+
"step3": {
|
|
1502
|
+
"title": "Refresh your browser",
|
|
1503
|
+
"description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
},
|
|
1507
|
+
|
|
1508
|
+
"xportal": {
|
|
1509
|
+
"qr_code": {
|
|
1510
|
+
"step1": {
|
|
1511
|
+
"description": "Put xPortal on your home screen for faster access to your wallet.",
|
|
1512
|
+
"title": "Open the xPortal app"
|
|
1513
|
+
},
|
|
1514
|
+
"step2": {
|
|
1515
|
+
"description": "Create a wallet or import an existing one.",
|
|
1516
|
+
"title": "Create or Import a Wallet"
|
|
1517
|
+
},
|
|
1518
|
+
"step3": {
|
|
1519
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
1520
|
+
"title": "Tap the Scan QR button"
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
},
|
|
1524
|
+
|
|
1525
|
+
"mew": {
|
|
1526
|
+
"qr_code": {
|
|
1527
|
+
"step1": {
|
|
1528
|
+
"description": "We recommend putting MEW Wallet on your home screen for quicker access.",
|
|
1529
|
+
"title": "Open the MEW Wallet app"
|
|
1530
|
+
},
|
|
1531
|
+
"step2": {
|
|
1532
|
+
"description": "You can easily backup your wallet using the cloud backup feature.",
|
|
1533
|
+
"title": "Create or Import a Wallet"
|
|
1534
|
+
},
|
|
1535
|
+
"step3": {
|
|
1536
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet.",
|
|
1537
|
+
"title": "Tap the scan button"
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
},
|
|
1542
|
+
|
|
1543
|
+
"zilpay": {
|
|
1544
|
+
"qr_code": {
|
|
1545
|
+
"step1": {
|
|
1546
|
+
"title": "Open the ZilPay app",
|
|
1547
|
+
"description": "Add ZilPay to your home screen for faster access to your wallet."
|
|
1548
|
+
},
|
|
1549
|
+
"step2": {
|
|
1550
|
+
"title": "Create or Import a Wallet",
|
|
1551
|
+
"description": "Create a new wallet or import an existing one."
|
|
1552
|
+
},
|
|
1553
|
+
"step3": {
|
|
1554
|
+
"title": "Tap the scan button",
|
|
1555
|
+
"description": "After you scan, a connection prompt will appear for you to connect your wallet."
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
`},14630:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});var r='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',a={rounded:`SFRounded, ui-rounded, "SF Pro Rounded", ${r}`,system:r},o={large:{actionButton:"9999px",connectButton:"12px",modal:"24px",modalMobile:"28px"},medium:{actionButton:"10px",connectButton:"8px",modal:"16px",modalMobile:"18px"},none:{actionButton:"0px",connectButton:"0px",modal:"0px",modalMobile:"0px"},small:{actionButton:"4px",connectButton:"4px",modal:"8px",modalMobile:"8px"}},i={large:{modalOverlay:"blur(20px)"},none:{modalOverlay:"blur(0px)"},small:{modalOverlay:"blur(4px)"}},s=({borderRadius:e="large",fontStack:t="rounded",overlayBlur:n="none"})=>({blurs:{modalOverlay:i[n].modalOverlay},fonts:{body:a[t]},radii:{actionButton:o[e].actionButton,connectButton:o[e].connectButton,menuButton:o[e].connectButton,modal:o[e].modal,modalMobile:o[e].modalMobile}})},73775:(e,t,n)=>{"use strict";n.d(t,{$:()=>s});var r=n(14630),a="#1A1B1F",o={blue:{accentColor:"#3898FF",accentColorForeground:"#FFF"},green:{accentColor:"#4BD166",accentColorForeground:a},orange:{accentColor:"#FF983D",accentColorForeground:a},pink:{accentColor:"#FF7AB8",accentColorForeground:a},purple:{accentColor:"#7A70FF",accentColorForeground:"#FFF"},red:{accentColor:"#FF6257",accentColorForeground:"#FFF"}},i=o.blue,s=({accentColor:e=i.accentColor,accentColorForeground:t=i.accentColorForeground,...n}={})=>({...(0,r.w)(n),colors:{accentColor:e,accentColorForeground:t,actionButtonBorder:"rgba(255, 255, 255, 0.04)",actionButtonBorderMobile:"rgba(255, 255, 255, 0.08)",actionButtonSecondaryBackground:"rgba(255, 255, 255, 0.08)",closeButton:"rgba(224, 232, 255, 0.6)",closeButtonBackground:"rgba(255, 255, 255, 0.08)",connectButtonBackground:a,connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.15))",connectButtonText:"#FFF",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(0, 0, 0, 0) 9.49%, rgba(120, 120, 120, 0.2) 71.04%), #1A1B1F",downloadTopCardBackground:"linear-gradient(126deg, rgba(120, 120, 120, 0.2) 9.49%, rgba(0, 0, 0, 0) 71.04%), #1A1B1F",error:"#FF494A",generalBorder:"rgba(255, 255, 255, 0.08)",generalBorderDim:"rgba(255, 255, 255, 0.04)",menuItemBackground:"rgba(224, 232, 255, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.5)",modalBackground:"#1A1B1F",modalBorder:"rgba(255, 255, 255, 0.08)",modalText:"#FFF",modalTextDim:"rgba(224, 232, 255, 0.3)",modalTextSecondary:"rgba(255, 255, 255, 0.6)",profileAction:"rgba(224, 232, 255, 0.1)",profileActionHover:"rgba(224, 232, 255, 0.2)",profileForeground:"rgba(224, 232, 255, 0.05)",selectedOptionBorder:"rgba(224, 232, 255, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.24)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}});s.accentColors=o},39580:(e,t,n)=>{"use strict";n.d(t,{NL:()=>r8,pj:()=>nK,a3:()=>ae,We:()=>r2});var r,a=n(14630),o={blue:{accentColor:"#0E76FD",accentColorForeground:"#FFF"},green:{accentColor:"#1DB847",accentColorForeground:"#FFF"},orange:{accentColor:"#FF801F",accentColorForeground:"#FFF"},pink:{accentColor:"#FF5CA0",accentColorForeground:"#FFF"},purple:{accentColor:"#5F5AFA",accentColorForeground:"#FFF"},red:{accentColor:"#FA423C",accentColorForeground:"#FFF"}},i=o.blue,s=({accentColor:e=i.accentColor,accentColorForeground:t=i.accentColorForeground,...n}={})=>({...(0,a.w)(n),colors:{accentColor:e,accentColorForeground:t,actionButtonBorder:"rgba(0, 0, 0, 0.04)",actionButtonBorderMobile:"rgba(0, 0, 0, 0.06)",actionButtonSecondaryBackground:"rgba(0, 0, 0, 0.06)",closeButton:"rgba(60, 66, 66, 0.8)",closeButtonBackground:"rgba(0, 0, 0, 0.06)",connectButtonBackground:"#FFF",connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06))",connectButtonText:"#25292E",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(255, 255, 255, 0) 9.49%, rgba(171, 171, 171, 0.04) 71.04%), #FFFFFF",downloadTopCardBackground:"linear-gradient(126deg, rgba(171, 171, 171, 0.2) 9.49%, rgba(255, 255, 255, 0) 71.04%), #FFFFFF",error:"#FF494A",generalBorder:"rgba(0, 0, 0, 0.06)",generalBorderDim:"rgba(0, 0, 0, 0.03)",menuItemBackground:"rgba(60, 66, 66, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.3)",modalBackground:"#FFF",modalBorder:"transparent",modalText:"#25292E",modalTextDim:"rgba(60, 66, 66, 0.3)",modalTextSecondary:"rgba(60, 66, 66, 0.6)",profileAction:"#FFF",profileActionHover:"rgba(255, 255, 255, 0.5)",profileForeground:"rgba(60, 66, 66, 0.06)",selectedOptionBorder:"rgba(60, 66, 66, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.12)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}});s.accentColors=o;var l=n(79349),c=n(39779),u=function(e,t){return Object.defineProperty(e,"__recipe__",{value:t,writable:!1}),e};function d(e){var{conditions:t}=e;if(!t)throw Error("Styles have no conditions");return u(function(e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){if(!t.defaultCondition)throw Error("No default condition");return{[t.defaultCondition]:e}}if(Array.isArray(e)){if(!("responsiveArray"in t))throw Error("Responsive arrays are not supported");var n={};for(var r in t.responsiveArray)null!=e[r]&&(n[t.responsiveArray[r]]=e[r]);return n}return e},{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createNormalizeValueFn",args:[{conditions:e.conditions}]})}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){!function(e,t,n){var r;(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var h=e=>function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=Object.assign({},...n.map(e=>e.styles)),o=Object.keys(a),i=o.filter(e=>"mappings"in a[e]);return Object.assign(t=>{var n=[],r={},o=p({},t),s=!1;for(var l of i){var c=t[l];if(null!=c)for(var u of(s=!0,a[l].mappings))r[u]=c,null==o[u]&&delete o[u]}var d=s?p(p({},r),o):t;for(var f in d)if(function(){var e=d[f],t=a[f];try{if(t.mappings)return 1;if("string"==typeof e||"number"==typeof e)n.push(t.values[e].defaultClass);else if(Array.isArray(e))for(var r=0;r<e.length;r++){var o=e[r];if(null!=o){var i=t.responsiveArray[r];n.push(t.values[o].conditions[i])}}else for(var s in e){var l=e[s];null!=l&&n.push(t.values[l].conditions[s])}}catch(e){throw e}}())continue;return e(n.join(" "))},{properties:new Set(o)})},m=e=>e,g=n(81735),y=n(80862),b=n(49891),w=n(31863),v=n(74139),C=n(35969),A=n(82140),E=n(90007),x=n(36740),k=n(53910),B=n(49632),j=n(75834),I=n(22949),S=n(48174),T=n(94242);function O(e={}){let{onConnect:t,onDisconnect:n}=e;(0,b.Z)(e)}var P=n(93794);async function M(e,t={}){let n;if(t.connector)n=t.connector;else{let{connections:t,current:r}=e.state,a=t.get(r);n=a?.connector}let r=e.state.connections;n&&(await n.disconnect(),n.emitter.off("change",e._internal.events.change),n.emitter.off("disconnect",e._internal.events.disconnect),n.emitter.on("connect",e._internal.events.connect),r.delete(n.uid)),e.setState(e=>{if(0===r.size)return{...e,connections:new Map,current:null,status:"disconnected"};let t=r.values().next().value;return{...e,connections:new Map(r),current:t.connector.uid}});{let t=e.state.current;if(!t)return;let n=e.state.connections.get(t)?.connector;if(!n)return;await e.storage?.setItem("recentConnectorId",n.id)}}var D=n(7516);let N=[];function R(e){let t=[...e.state.connections.values()];return"reconnecting"===e.state.status||(0,D.v)(N,t)?N:(N=t,t)}function F(e={}){let{mutation:t}=e,n=(0,b.Z)(e),{mutate:r,mutateAsync:a,...o}=(0,P.D)({...t,mutationFn:e=>M(n,e),mutationKey:["disconnect"]});return{...o,connectors:(function(e={}){let t=(0,b.Z)(e);return(0,c.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(()=>R(e),n,{equalityFn:D.v})})(t,{onChange:e}),()=>R(t),()=>R(t))})({config:n}).map(e=>e.connector),disconnect:r,disconnectAsync:a}}var L=n(25517),_=n(85721),U="right-scroll-bar-position",z="width-before-scroll-bar";function W(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var q="undefined"!=typeof window?c.useLayoutEffect:c.useEffect,G=new WeakMap,Q=(0,n(86913)._)(),H=function(){},$=c.forwardRef(function(e,t){var n,r,a,o,i=c.useRef(null),s=c.useState({onScrollCapture:H,onWheelCapture:H,onTouchMoveCapture:H}),l=s[0],u=s[1],d=e.forwardProps,f=e.children,p=e.className,h=e.removeScrollBar,m=e.enabled,g=e.shards,y=e.sideCar,b=e.noIsolation,w=e.inert,v=e.allowPinchZoom,C=e.as,A=e.gapMode,E=(0,_._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=(n=[i,t],r=function(e){return n.forEach(function(t){return W(t,e)})},(a=(0,c.useState)(function(){return{value:null,callback:r,facade:{get current(){return a.value},set current(value){var e=a.value;e!==value&&(a.value=value,a.callback(value,e))}}}})[0]).callback=r,o=a.facade,q(function(){var e=G.get(o);if(e){var t=new Set(e),r=new Set(n),a=o.current;t.forEach(function(e){r.has(e)||W(e,null)}),r.forEach(function(e){t.has(e)||W(e,a)})}G.set(o,n)},[n]),o),k=(0,_.pi)((0,_.pi)({},E),l);return c.createElement(c.Fragment,null,m&&c.createElement(y,{sideCar:Q,removeScrollBar:h,shards:g,noIsolation:b,inert:w,setCallbacks:u,allowPinchZoom:!!v,lockRef:i,gapMode:A}),d?c.cloneElement(c.Children.only(f),(0,_.pi)((0,_.pi)({},k),{ref:x})):c.createElement(void 0===C?"div":C,(0,_.pi)({},k,{className:p,ref:x}),f))});$.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},$.classNames={fullWidth:z,zeroRight:U};var K=n(65908),Z=n(62592),Y=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=(0,Z.V)();return t&&e.setAttribute("nonce",t),e}())){var r,a;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},V=function(){var e=Y();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},J={left:0,top:0,right:0,gap:0},X=function(e){return parseInt(e||"",10)||0},ee=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[X(n),X(r),X(a)]},et=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return J;var t=ee(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},en=function(){var e=V();return function(t){return e(t.styles,t.dynamic),null}}(),er="data-scroll-locked",ea=function(e,t,n,r){var a=e.left,o=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(er,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(U," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(z," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(U," .").concat(U," {\n right: 0 ").concat(r,";\n }\n \n .").concat(z," .").concat(z," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(er,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},eo=function(){var e=parseInt(document.body.getAttribute(er)||"0",10);return isFinite(e)?e:0},ei=function(){c.useEffect(function(){return document.body.setAttribute(er,(eo()+1).toString()),function(){var e=eo()-1;e<=0?document.body.removeAttribute(er):document.body.setAttribute(er,e.toString())}},[])},es=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=void 0===r?"margin":r;ei();var o=c.useMemo(function(){return et(a)},[a]);return c.createElement(en,{styles:ea(o,!t,a,n?"":"!important")})},el=n(68942),ec=!1;if("undefined"!=typeof window)try{var eu=Object.defineProperty({},"passive",{get:function(){return ec=!0,!0}});window.addEventListener("test",eu,eu),window.removeEventListener("test",eu,eu)}catch(e){ec=!1}var ed=!!ec&&{passive:!1},ef=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},ep=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eh(e,r)){var a=em(e,r);if(a[1]>a[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eh=function(e,t){return"v"===e?ef(t,"overflowY"):ef(t,"overflowX")},em=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eg=function(e,t,n,r,a){var o,i=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=i*r,l=n.target,c=t.contains(l),u=!1,d=s>0,f=0,p=0;do{var h=em(e,l),m=h[0],g=h[1]-h[2]-i*m;(m||g)&&eh(e,l)&&(f+=g,p+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return d&&(a&&1>Math.abs(f)||!a&&s>f)?u=!0:!d&&(a&&1>Math.abs(p)||!a&&-s>p)&&(u=!0),u},ey=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eb=function(e){return[e.deltaX,e.deltaY]},ew=function(e){return e&&"current"in e?e.current:e},ev=0,eC=[];let eA=(0,K.L)(Q,function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),a=c.useState(ev++)[0],o=c.useState(el.Ws)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(0,_.ev)([e.lockRef.current],(e.shards||[]).map(ew),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var a,o=ey(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],c="deltaY"in e?e.deltaY:s[1]-o[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=ep(d,u);if(!f)return!0;if(f?a=d:(a="v"===d?"h":"v",f=ep(d,u)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=a),!a)return!0;var p=r.current||a;return eg(p,t,e,"h"===p?l:c,!0)},[]),l=c.useCallback(function(e){if(eC.length&&eC[eC.length-1]===o){var n="deltaY"in e?eb(e):ey(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var a=(i.current.shards||[]).map(ew).filter(Boolean).filter(function(t){return t.contains(e.target)});(a.length>0?s(e,a[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=c.useCallback(function(e,n,r,a){var o={name:e,delta:n,target:r,should:a,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=c.useCallback(function(e){n.current=ey(e),r.current=void 0},[]),f=c.useCallback(function(t){u(t.type,eb(t),t.target,s(t,e.lockRef.current))},[]),p=c.useCallback(function(t){u(t.type,ey(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return eC.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,ed),document.addEventListener("touchmove",l,ed),document.addEventListener("touchstart",d,ed),function(){eC=eC.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,ed),document.removeEventListener("touchmove",l,ed),document.removeEventListener("touchstart",d,ed)}},[]);var h=e.removeScrollBar,m=e.inert;return c.createElement(c.Fragment,null,m?c.createElement(o,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,h?c.createElement(es,{gapMode:e.gapMode}):null)});var eE=c.forwardRef(function(e,t){return c.createElement($,(0,_.pi)({},e,{ref:t,sideCar:eA}))});function ex(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function ek(e,t){var n={};if("object"==typeof t)!function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a={};for(var o in t){var i=t[o],s=[...r,o];"string"==typeof i||"number"==typeof i||null==i?a[o]=n(i,s):"object"!=typeof i||Array.isArray(i)?console.warn('Skipping invalid key "'.concat(s.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"')):a[o]=e(i,n,s)}return a}(t,(t,r)=>{null!=t&&(n[ex(function(e,t){var n=e;for(var r of t){if(!(r in n))throw Error("Path ".concat(t.join(" -> ")," does not exist in object"));n=n[r]}return n}(e,r))]=String(t))});else for(var r in e){var a=e[r];null!=a&&(n[ex(r)]=a)}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(e=>"".concat(e,":").concat(this[e])).join(";")},writable:!1}),n}eE.classNames=$.classNames;var eB=n(21208),ej=n(9711),eI=n(60941),eS=n(79374),eT=n(63194),eO=n(71215);async function eP(e,{account:t=e.account,message:n}){if(!t)throw new eT.o({docsPath:"/docs/actions/wallet/signMessage"});let r=(0,eS.T)(t);if(r.signMessage)return r.signMessage({message:n});let a="string"==typeof n?(0,eO.$G)(n):n.raw instanceof Uint8Array?(0,eO.NC)(n.raw):n.raw;return e.request({method:"personal_sign",params:[a,r.address]},{retryCount:0})}var eM=n(90758);async function eD(e,t){let n;let{account:r,connector:a,...o}=t;return n="object"==typeof r&&"local"===r.type?e.getClient():await (0,eM.e)(e,{account:r,connector:a}),(0,A.s)(n,eP,"signMessage")({...o,...r?{account:r}:{}})}var eN=n(48421),eR=n(23214);async function eF(e,t){let{addEthereumChainParameter:n,chainId:r}=t,a=e.state.connections.get(t.connector?.uid??e.state.current);if(a){let e=a.connector;if(!e.switchChain)throw new eR.O({connector:e});return await e.switchChain({addEthereumChainParameter:n,chainId:r})}let o=e.chains.find(e=>e.id===r);if(!o)throw new eN.X4;return e.setState(e=>({...e,chainId:r})),o}let eL=[];function e_(e){let t=e.chains;return(0,D.v)(eL,t)?eL:(eL=t,t)}var eU=n(70847),ez=function(e){var{conditions:t}=e;if(!t)throw Error("Styles have no conditions");var n=d(e);return u(function(e,r){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e){if(!t.defaultCondition)throw Error("No default condition");return r(e,t.defaultCondition)}var a=Array.isArray(e)?n(e):e,o={};for(var i in a)null!=a[i]&&(o[i]=r(a[i],i));return o},{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createMapValueFn",args:[{conditions:e.conditions}]})}({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),eW=d({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),eq=function(){return h(m)(...arguments)}({conditions:{defaultCondition:"base",conditionNames:["base","hover","active"],responsiveArray:void 0},styles:{background:{values:{accentColor:{conditions:{base:"ju367v9i",hover:"ju367v9j",active:"ju367v9k"},defaultClass:"ju367v9i"},accentColorForeground:{conditions:{base:"ju367v9l",hover:"ju367v9m",active:"ju367v9n"},defaultClass:"ju367v9l"},actionButtonBorder:{conditions:{base:"ju367v9o",hover:"ju367v9p",active:"ju367v9q"},defaultClass:"ju367v9o"},actionButtonBorderMobile:{conditions:{base:"ju367v9r",hover:"ju367v9s",active:"ju367v9t"},defaultClass:"ju367v9r"},actionButtonSecondaryBackground:{conditions:{base:"ju367v9u",hover:"ju367v9v",active:"ju367v9w"},defaultClass:"ju367v9u"},closeButton:{conditions:{base:"ju367v9x",hover:"ju367v9y",active:"ju367v9z"},defaultClass:"ju367v9x"},closeButtonBackground:{conditions:{base:"ju367va0",hover:"ju367va1",active:"ju367va2"},defaultClass:"ju367va0"},connectButtonBackground:{conditions:{base:"ju367va3",hover:"ju367va4",active:"ju367va5"},defaultClass:"ju367va3"},connectButtonBackgroundError:{conditions:{base:"ju367va6",hover:"ju367va7",active:"ju367va8"},defaultClass:"ju367va6"},connectButtonInnerBackground:{conditions:{base:"ju367va9",hover:"ju367vaa",active:"ju367vab"},defaultClass:"ju367va9"},connectButtonText:{conditions:{base:"ju367vac",hover:"ju367vad",active:"ju367vae"},defaultClass:"ju367vac"},connectButtonTextError:{conditions:{base:"ju367vaf",hover:"ju367vag",active:"ju367vah"},defaultClass:"ju367vaf"},connectionIndicator:{conditions:{base:"ju367vai",hover:"ju367vaj",active:"ju367vak"},defaultClass:"ju367vai"},downloadBottomCardBackground:{conditions:{base:"ju367val",hover:"ju367vam",active:"ju367van"},defaultClass:"ju367val"},downloadTopCardBackground:{conditions:{base:"ju367vao",hover:"ju367vap",active:"ju367vaq"},defaultClass:"ju367vao"},error:{conditions:{base:"ju367var",hover:"ju367vas",active:"ju367vat"},defaultClass:"ju367var"},generalBorder:{conditions:{base:"ju367vau",hover:"ju367vav",active:"ju367vaw"},defaultClass:"ju367vau"},generalBorderDim:{conditions:{base:"ju367vax",hover:"ju367vay",active:"ju367vaz"},defaultClass:"ju367vax"},menuItemBackground:{conditions:{base:"ju367vb0",hover:"ju367vb1",active:"ju367vb2"},defaultClass:"ju367vb0"},modalBackdrop:{conditions:{base:"ju367vb3",hover:"ju367vb4",active:"ju367vb5"},defaultClass:"ju367vb3"},modalBackground:{conditions:{base:"ju367vb6",hover:"ju367vb7",active:"ju367vb8"},defaultClass:"ju367vb6"},modalBorder:{conditions:{base:"ju367vb9",hover:"ju367vba",active:"ju367vbb"},defaultClass:"ju367vb9"},modalText:{conditions:{base:"ju367vbc",hover:"ju367vbd",active:"ju367vbe"},defaultClass:"ju367vbc"},modalTextDim:{conditions:{base:"ju367vbf",hover:"ju367vbg",active:"ju367vbh"},defaultClass:"ju367vbf"},modalTextSecondary:{conditions:{base:"ju367vbi",hover:"ju367vbj",active:"ju367vbk"},defaultClass:"ju367vbi"},profileAction:{conditions:{base:"ju367vbl",hover:"ju367vbm",active:"ju367vbn"},defaultClass:"ju367vbl"},profileActionHover:{conditions:{base:"ju367vbo",hover:"ju367vbp",active:"ju367vbq"},defaultClass:"ju367vbo"},profileForeground:{conditions:{base:"ju367vbr",hover:"ju367vbs",active:"ju367vbt"},defaultClass:"ju367vbr"},selectedOptionBorder:{conditions:{base:"ju367vbu",hover:"ju367vbv",active:"ju367vbw"},defaultClass:"ju367vbu"},standby:{conditions:{base:"ju367vbx",hover:"ju367vby",active:"ju367vbz"},defaultClass:"ju367vbx"}}},borderColor:{values:{accentColor:{conditions:{base:"ju367vc0",hover:"ju367vc1",active:"ju367vc2"},defaultClass:"ju367vc0"},accentColorForeground:{conditions:{base:"ju367vc3",hover:"ju367vc4",active:"ju367vc5"},defaultClass:"ju367vc3"},actionButtonBorder:{conditions:{base:"ju367vc6",hover:"ju367vc7",active:"ju367vc8"},defaultClass:"ju367vc6"},actionButtonBorderMobile:{conditions:{base:"ju367vc9",hover:"ju367vca",active:"ju367vcb"},defaultClass:"ju367vc9"},actionButtonSecondaryBackground:{conditions:{base:"ju367vcc",hover:"ju367vcd",active:"ju367vce"},defaultClass:"ju367vcc"},closeButton:{conditions:{base:"ju367vcf",hover:"ju367vcg",active:"ju367vch"},defaultClass:"ju367vcf"},closeButtonBackground:{conditions:{base:"ju367vci",hover:"ju367vcj",active:"ju367vck"},defaultClass:"ju367vci"},connectButtonBackground:{conditions:{base:"ju367vcl",hover:"ju367vcm",active:"ju367vcn"},defaultClass:"ju367vcl"},connectButtonBackgroundError:{conditions:{base:"ju367vco",hover:"ju367vcp",active:"ju367vcq"},defaultClass:"ju367vco"},connectButtonInnerBackground:{conditions:{base:"ju367vcr",hover:"ju367vcs",active:"ju367vct"},defaultClass:"ju367vcr"},connectButtonText:{conditions:{base:"ju367vcu",hover:"ju367vcv",active:"ju367vcw"},defaultClass:"ju367vcu"},connectButtonTextError:{conditions:{base:"ju367vcx",hover:"ju367vcy",active:"ju367vcz"},defaultClass:"ju367vcx"},connectionIndicator:{conditions:{base:"ju367vd0",hover:"ju367vd1",active:"ju367vd2"},defaultClass:"ju367vd0"},downloadBottomCardBackground:{conditions:{base:"ju367vd3",hover:"ju367vd4",active:"ju367vd5"},defaultClass:"ju367vd3"},downloadTopCardBackground:{conditions:{base:"ju367vd6",hover:"ju367vd7",active:"ju367vd8"},defaultClass:"ju367vd6"},error:{conditions:{base:"ju367vd9",hover:"ju367vda",active:"ju367vdb"},defaultClass:"ju367vd9"},generalBorder:{conditions:{base:"ju367vdc",hover:"ju367vdd",active:"ju367vde"},defaultClass:"ju367vdc"},generalBorderDim:{conditions:{base:"ju367vdf",hover:"ju367vdg",active:"ju367vdh"},defaultClass:"ju367vdf"},menuItemBackground:{conditions:{base:"ju367vdi",hover:"ju367vdj",active:"ju367vdk"},defaultClass:"ju367vdi"},modalBackdrop:{conditions:{base:"ju367vdl",hover:"ju367vdm",active:"ju367vdn"},defaultClass:"ju367vdl"},modalBackground:{conditions:{base:"ju367vdo",hover:"ju367vdp",active:"ju367vdq"},defaultClass:"ju367vdo"},modalBorder:{conditions:{base:"ju367vdr",hover:"ju367vds",active:"ju367vdt"},defaultClass:"ju367vdr"},modalText:{conditions:{base:"ju367vdu",hover:"ju367vdv",active:"ju367vdw"},defaultClass:"ju367vdu"},modalTextDim:{conditions:{base:"ju367vdx",hover:"ju367vdy",active:"ju367vdz"},defaultClass:"ju367vdx"},modalTextSecondary:{conditions:{base:"ju367ve0",hover:"ju367ve1",active:"ju367ve2"},defaultClass:"ju367ve0"},profileAction:{conditions:{base:"ju367ve3",hover:"ju367ve4",active:"ju367ve5"},defaultClass:"ju367ve3"},profileActionHover:{conditions:{base:"ju367ve6",hover:"ju367ve7",active:"ju367ve8"},defaultClass:"ju367ve6"},profileForeground:{conditions:{base:"ju367ve9",hover:"ju367vea",active:"ju367veb"},defaultClass:"ju367ve9"},selectedOptionBorder:{conditions:{base:"ju367vec",hover:"ju367ved",active:"ju367vee"},defaultClass:"ju367vec"},standby:{conditions:{base:"ju367vef",hover:"ju367veg",active:"ju367veh"},defaultClass:"ju367vef"}}},boxShadow:{values:{connectButton:{conditions:{base:"ju367vei",hover:"ju367vej",active:"ju367vek"},defaultClass:"ju367vei"},dialog:{conditions:{base:"ju367vel",hover:"ju367vem",active:"ju367ven"},defaultClass:"ju367vel"},profileDetailsAction:{conditions:{base:"ju367veo",hover:"ju367vep",active:"ju367veq"},defaultClass:"ju367veo"},selectedOption:{conditions:{base:"ju367ver",hover:"ju367ves",active:"ju367vet"},defaultClass:"ju367ver"},selectedWallet:{conditions:{base:"ju367veu",hover:"ju367vev",active:"ju367vew"},defaultClass:"ju367veu"},walletLogo:{conditions:{base:"ju367vex",hover:"ju367vey",active:"ju367vez"},defaultClass:"ju367vex"}}},color:{values:{accentColor:{conditions:{base:"ju367vf0",hover:"ju367vf1",active:"ju367vf2"},defaultClass:"ju367vf0"},accentColorForeground:{conditions:{base:"ju367vf3",hover:"ju367vf4",active:"ju367vf5"},defaultClass:"ju367vf3"},actionButtonBorder:{conditions:{base:"ju367vf6",hover:"ju367vf7",active:"ju367vf8"},defaultClass:"ju367vf6"},actionButtonBorderMobile:{conditions:{base:"ju367vf9",hover:"ju367vfa",active:"ju367vfb"},defaultClass:"ju367vf9"},actionButtonSecondaryBackground:{conditions:{base:"ju367vfc",hover:"ju367vfd",active:"ju367vfe"},defaultClass:"ju367vfc"},closeButton:{conditions:{base:"ju367vff",hover:"ju367vfg",active:"ju367vfh"},defaultClass:"ju367vff"},closeButtonBackground:{conditions:{base:"ju367vfi",hover:"ju367vfj",active:"ju367vfk"},defaultClass:"ju367vfi"},connectButtonBackground:{conditions:{base:"ju367vfl",hover:"ju367vfm",active:"ju367vfn"},defaultClass:"ju367vfl"},connectButtonBackgroundError:{conditions:{base:"ju367vfo",hover:"ju367vfp",active:"ju367vfq"},defaultClass:"ju367vfo"},connectButtonInnerBackground:{conditions:{base:"ju367vfr",hover:"ju367vfs",active:"ju367vft"},defaultClass:"ju367vfr"},connectButtonText:{conditions:{base:"ju367vfu",hover:"ju367vfv",active:"ju367vfw"},defaultClass:"ju367vfu"},connectButtonTextError:{conditions:{base:"ju367vfx",hover:"ju367vfy",active:"ju367vfz"},defaultClass:"ju367vfx"},connectionIndicator:{conditions:{base:"ju367vg0",hover:"ju367vg1",active:"ju367vg2"},defaultClass:"ju367vg0"},downloadBottomCardBackground:{conditions:{base:"ju367vg3",hover:"ju367vg4",active:"ju367vg5"},defaultClass:"ju367vg3"},downloadTopCardBackground:{conditions:{base:"ju367vg6",hover:"ju367vg7",active:"ju367vg8"},defaultClass:"ju367vg6"},error:{conditions:{base:"ju367vg9",hover:"ju367vga",active:"ju367vgb"},defaultClass:"ju367vg9"},generalBorder:{conditions:{base:"ju367vgc",hover:"ju367vgd",active:"ju367vge"},defaultClass:"ju367vgc"},generalBorderDim:{conditions:{base:"ju367vgf",hover:"ju367vgg",active:"ju367vgh"},defaultClass:"ju367vgf"},menuItemBackground:{conditions:{base:"ju367vgi",hover:"ju367vgj",active:"ju367vgk"},defaultClass:"ju367vgi"},modalBackdrop:{conditions:{base:"ju367vgl",hover:"ju367vgm",active:"ju367vgn"},defaultClass:"ju367vgl"},modalBackground:{conditions:{base:"ju367vgo",hover:"ju367vgp",active:"ju367vgq"},defaultClass:"ju367vgo"},modalBorder:{conditions:{base:"ju367vgr",hover:"ju367vgs",active:"ju367vgt"},defaultClass:"ju367vgr"},modalText:{conditions:{base:"ju367vgu",hover:"ju367vgv",active:"ju367vgw"},defaultClass:"ju367vgu"},modalTextDim:{conditions:{base:"ju367vgx",hover:"ju367vgy",active:"ju367vgz"},defaultClass:"ju367vgx"},modalTextSecondary:{conditions:{base:"ju367vh0",hover:"ju367vh1",active:"ju367vh2"},defaultClass:"ju367vh0"},profileAction:{conditions:{base:"ju367vh3",hover:"ju367vh4",active:"ju367vh5"},defaultClass:"ju367vh3"},profileActionHover:{conditions:{base:"ju367vh6",hover:"ju367vh7",active:"ju367vh8"},defaultClass:"ju367vh6"},profileForeground:{conditions:{base:"ju367vh9",hover:"ju367vha",active:"ju367vhb"},defaultClass:"ju367vh9"},selectedOptionBorder:{conditions:{base:"ju367vhc",hover:"ju367vhd",active:"ju367vhe"},defaultClass:"ju367vhc"},standby:{conditions:{base:"ju367vhf",hover:"ju367vhg",active:"ju367vhh"},defaultClass:"ju367vhf"}}}}},{conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0},styles:{alignItems:{values:{"flex-start":{conditions:{smallScreen:"ju367v0",largeScreen:"ju367v1"},defaultClass:"ju367v0"},"flex-end":{conditions:{smallScreen:"ju367v2",largeScreen:"ju367v3"},defaultClass:"ju367v2"},center:{conditions:{smallScreen:"ju367v4",largeScreen:"ju367v5"},defaultClass:"ju367v4"}}},display:{values:{none:{conditions:{smallScreen:"ju367v6",largeScreen:"ju367v7"},defaultClass:"ju367v6"},block:{conditions:{smallScreen:"ju367v8",largeScreen:"ju367v9"},defaultClass:"ju367v8"},flex:{conditions:{smallScreen:"ju367va",largeScreen:"ju367vb"},defaultClass:"ju367va"},inline:{conditions:{smallScreen:"ju367vc",largeScreen:"ju367vd"},defaultClass:"ju367vc"}}}}},{conditions:void 0,styles:{margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},alignSelf:{values:{"flex-start":{defaultClass:"ju367ve"},"flex-end":{defaultClass:"ju367vf"},center:{defaultClass:"ju367vg"}}},backgroundSize:{values:{cover:{defaultClass:"ju367vh"}}},borderRadius:{values:{1:{defaultClass:"ju367vi"},6:{defaultClass:"ju367vj"},10:{defaultClass:"ju367vk"},13:{defaultClass:"ju367vl"},actionButton:{defaultClass:"ju367vm"},connectButton:{defaultClass:"ju367vn"},menuButton:{defaultClass:"ju367vo"},modal:{defaultClass:"ju367vp"},modalMobile:{defaultClass:"ju367vq"},"25%":{defaultClass:"ju367vr"},full:{defaultClass:"ju367vs"}}},borderStyle:{values:{solid:{defaultClass:"ju367vt"}}},borderWidth:{values:{0:{defaultClass:"ju367vu"},1:{defaultClass:"ju367vv"},2:{defaultClass:"ju367vw"},4:{defaultClass:"ju367vx"}}},cursor:{values:{pointer:{defaultClass:"ju367vy"},none:{defaultClass:"ju367vz"}}},pointerEvents:{values:{none:{defaultClass:"ju367v10"},all:{defaultClass:"ju367v11"}}},minHeight:{values:{8:{defaultClass:"ju367v12"},44:{defaultClass:"ju367v13"}}},flexDirection:{values:{row:{defaultClass:"ju367v14"},column:{defaultClass:"ju367v15"}}},fontFamily:{values:{body:{defaultClass:"ju367v16"}}},fontSize:{values:{12:{defaultClass:"ju367v17"},13:{defaultClass:"ju367v18"},14:{defaultClass:"ju367v19"},16:{defaultClass:"ju367v1a"},18:{defaultClass:"ju367v1b"},20:{defaultClass:"ju367v1c"},23:{defaultClass:"ju367v1d"}}},fontWeight:{values:{regular:{defaultClass:"ju367v1e"},medium:{defaultClass:"ju367v1f"},semibold:{defaultClass:"ju367v1g"},bold:{defaultClass:"ju367v1h"},heavy:{defaultClass:"ju367v1i"}}},gap:{values:{0:{defaultClass:"ju367v1j"},1:{defaultClass:"ju367v1k"},2:{defaultClass:"ju367v1l"},3:{defaultClass:"ju367v1m"},4:{defaultClass:"ju367v1n"},5:{defaultClass:"ju367v1o"},6:{defaultClass:"ju367v1p"},8:{defaultClass:"ju367v1q"},10:{defaultClass:"ju367v1r"},12:{defaultClass:"ju367v1s"},14:{defaultClass:"ju367v1t"},16:{defaultClass:"ju367v1u"},18:{defaultClass:"ju367v1v"},20:{defaultClass:"ju367v1w"},24:{defaultClass:"ju367v1x"},28:{defaultClass:"ju367v1y"},32:{defaultClass:"ju367v1z"},36:{defaultClass:"ju367v20"},44:{defaultClass:"ju367v21"},64:{defaultClass:"ju367v22"},"-1":{defaultClass:"ju367v23"}}},height:{values:{1:{defaultClass:"ju367v24"},2:{defaultClass:"ju367v25"},4:{defaultClass:"ju367v26"},8:{defaultClass:"ju367v27"},12:{defaultClass:"ju367v28"},20:{defaultClass:"ju367v29"},24:{defaultClass:"ju367v2a"},28:{defaultClass:"ju367v2b"},30:{defaultClass:"ju367v2c"},32:{defaultClass:"ju367v2d"},34:{defaultClass:"ju367v2e"},36:{defaultClass:"ju367v2f"},40:{defaultClass:"ju367v2g"},44:{defaultClass:"ju367v2h"},48:{defaultClass:"ju367v2i"},54:{defaultClass:"ju367v2j"},60:{defaultClass:"ju367v2k"},200:{defaultClass:"ju367v2l"},full:{defaultClass:"ju367v2m"},max:{defaultClass:"ju367v2n"}}},justifyContent:{values:{"flex-start":{defaultClass:"ju367v2o"},"flex-end":{defaultClass:"ju367v2p"},center:{defaultClass:"ju367v2q"},"space-between":{defaultClass:"ju367v2r"},"space-around":{defaultClass:"ju367v2s"}}},textAlign:{values:{left:{defaultClass:"ju367v2t"},center:{defaultClass:"ju367v2u"},inherit:{defaultClass:"ju367v2v"}}},marginBottom:{values:{0:{defaultClass:"ju367v2w"},1:{defaultClass:"ju367v2x"},2:{defaultClass:"ju367v2y"},3:{defaultClass:"ju367v2z"},4:{defaultClass:"ju367v30"},5:{defaultClass:"ju367v31"},6:{defaultClass:"ju367v32"},8:{defaultClass:"ju367v33"},10:{defaultClass:"ju367v34"},12:{defaultClass:"ju367v35"},14:{defaultClass:"ju367v36"},16:{defaultClass:"ju367v37"},18:{defaultClass:"ju367v38"},20:{defaultClass:"ju367v39"},24:{defaultClass:"ju367v3a"},28:{defaultClass:"ju367v3b"},32:{defaultClass:"ju367v3c"},36:{defaultClass:"ju367v3d"},44:{defaultClass:"ju367v3e"},64:{defaultClass:"ju367v3f"},"-1":{defaultClass:"ju367v3g"}}},marginLeft:{values:{0:{defaultClass:"ju367v3h"},1:{defaultClass:"ju367v3i"},2:{defaultClass:"ju367v3j"},3:{defaultClass:"ju367v3k"},4:{defaultClass:"ju367v3l"},5:{defaultClass:"ju367v3m"},6:{defaultClass:"ju367v3n"},8:{defaultClass:"ju367v3o"},10:{defaultClass:"ju367v3p"},12:{defaultClass:"ju367v3q"},14:{defaultClass:"ju367v3r"},16:{defaultClass:"ju367v3s"},18:{defaultClass:"ju367v3t"},20:{defaultClass:"ju367v3u"},24:{defaultClass:"ju367v3v"},28:{defaultClass:"ju367v3w"},32:{defaultClass:"ju367v3x"},36:{defaultClass:"ju367v3y"},44:{defaultClass:"ju367v3z"},64:{defaultClass:"ju367v40"},"-1":{defaultClass:"ju367v41"}}},marginRight:{values:{0:{defaultClass:"ju367v42"},1:{defaultClass:"ju367v43"},2:{defaultClass:"ju367v44"},3:{defaultClass:"ju367v45"},4:{defaultClass:"ju367v46"},5:{defaultClass:"ju367v47"},6:{defaultClass:"ju367v48"},8:{defaultClass:"ju367v49"},10:{defaultClass:"ju367v4a"},12:{defaultClass:"ju367v4b"},14:{defaultClass:"ju367v4c"},16:{defaultClass:"ju367v4d"},18:{defaultClass:"ju367v4e"},20:{defaultClass:"ju367v4f"},24:{defaultClass:"ju367v4g"},28:{defaultClass:"ju367v4h"},32:{defaultClass:"ju367v4i"},36:{defaultClass:"ju367v4j"},44:{defaultClass:"ju367v4k"},64:{defaultClass:"ju367v4l"},"-1":{defaultClass:"ju367v4m"}}},marginTop:{values:{0:{defaultClass:"ju367v4n"},1:{defaultClass:"ju367v4o"},2:{defaultClass:"ju367v4p"},3:{defaultClass:"ju367v4q"},4:{defaultClass:"ju367v4r"},5:{defaultClass:"ju367v4s"},6:{defaultClass:"ju367v4t"},8:{defaultClass:"ju367v4u"},10:{defaultClass:"ju367v4v"},12:{defaultClass:"ju367v4w"},14:{defaultClass:"ju367v4x"},16:{defaultClass:"ju367v4y"},18:{defaultClass:"ju367v4z"},20:{defaultClass:"ju367v50"},24:{defaultClass:"ju367v51"},28:{defaultClass:"ju367v52"},32:{defaultClass:"ju367v53"},36:{defaultClass:"ju367v54"},44:{defaultClass:"ju367v55"},64:{defaultClass:"ju367v56"},"-1":{defaultClass:"ju367v57"}}},maxWidth:{values:{1:{defaultClass:"ju367v58"},2:{defaultClass:"ju367v59"},4:{defaultClass:"ju367v5a"},8:{defaultClass:"ju367v5b"},12:{defaultClass:"ju367v5c"},20:{defaultClass:"ju367v5d"},24:{defaultClass:"ju367v5e"},28:{defaultClass:"ju367v5f"},30:{defaultClass:"ju367v5g"},32:{defaultClass:"ju367v5h"},34:{defaultClass:"ju367v5i"},36:{defaultClass:"ju367v5j"},40:{defaultClass:"ju367v5k"},44:{defaultClass:"ju367v5l"},48:{defaultClass:"ju367v5m"},54:{defaultClass:"ju367v5n"},60:{defaultClass:"ju367v5o"},200:{defaultClass:"ju367v5p"},full:{defaultClass:"ju367v5q"},max:{defaultClass:"ju367v5r"}}},minWidth:{values:{1:{defaultClass:"ju367v5s"},2:{defaultClass:"ju367v5t"},4:{defaultClass:"ju367v5u"},8:{defaultClass:"ju367v5v"},12:{defaultClass:"ju367v5w"},20:{defaultClass:"ju367v5x"},24:{defaultClass:"ju367v5y"},28:{defaultClass:"ju367v5z"},30:{defaultClass:"ju367v60"},32:{defaultClass:"ju367v61"},34:{defaultClass:"ju367v62"},36:{defaultClass:"ju367v63"},40:{defaultClass:"ju367v64"},44:{defaultClass:"ju367v65"},48:{defaultClass:"ju367v66"},54:{defaultClass:"ju367v67"},60:{defaultClass:"ju367v68"},200:{defaultClass:"ju367v69"},full:{defaultClass:"ju367v6a"},max:{defaultClass:"ju367v6b"}}},overflow:{values:{hidden:{defaultClass:"ju367v6c"}}},paddingBottom:{values:{0:{defaultClass:"ju367v6d"},1:{defaultClass:"ju367v6e"},2:{defaultClass:"ju367v6f"},3:{defaultClass:"ju367v6g"},4:{defaultClass:"ju367v6h"},5:{defaultClass:"ju367v6i"},6:{defaultClass:"ju367v6j"},8:{defaultClass:"ju367v6k"},10:{defaultClass:"ju367v6l"},12:{defaultClass:"ju367v6m"},14:{defaultClass:"ju367v6n"},16:{defaultClass:"ju367v6o"},18:{defaultClass:"ju367v6p"},20:{defaultClass:"ju367v6q"},24:{defaultClass:"ju367v6r"},28:{defaultClass:"ju367v6s"},32:{defaultClass:"ju367v6t"},36:{defaultClass:"ju367v6u"},44:{defaultClass:"ju367v6v"},64:{defaultClass:"ju367v6w"},"-1":{defaultClass:"ju367v6x"}}},paddingLeft:{values:{0:{defaultClass:"ju367v6y"},1:{defaultClass:"ju367v6z"},2:{defaultClass:"ju367v70"},3:{defaultClass:"ju367v71"},4:{defaultClass:"ju367v72"},5:{defaultClass:"ju367v73"},6:{defaultClass:"ju367v74"},8:{defaultClass:"ju367v75"},10:{defaultClass:"ju367v76"},12:{defaultClass:"ju367v77"},14:{defaultClass:"ju367v78"},16:{defaultClass:"ju367v79"},18:{defaultClass:"ju367v7a"},20:{defaultClass:"ju367v7b"},24:{defaultClass:"ju367v7c"},28:{defaultClass:"ju367v7d"},32:{defaultClass:"ju367v7e"},36:{defaultClass:"ju367v7f"},44:{defaultClass:"ju367v7g"},64:{defaultClass:"ju367v7h"},"-1":{defaultClass:"ju367v7i"}}},paddingRight:{values:{0:{defaultClass:"ju367v7j"},1:{defaultClass:"ju367v7k"},2:{defaultClass:"ju367v7l"},3:{defaultClass:"ju367v7m"},4:{defaultClass:"ju367v7n"},5:{defaultClass:"ju367v7o"},6:{defaultClass:"ju367v7p"},8:{defaultClass:"ju367v7q"},10:{defaultClass:"ju367v7r"},12:{defaultClass:"ju367v7s"},14:{defaultClass:"ju367v7t"},16:{defaultClass:"ju367v7u"},18:{defaultClass:"ju367v7v"},20:{defaultClass:"ju367v7w"},24:{defaultClass:"ju367v7x"},28:{defaultClass:"ju367v7y"},32:{defaultClass:"ju367v7z"},36:{defaultClass:"ju367v80"},44:{defaultClass:"ju367v81"},64:{defaultClass:"ju367v82"},"-1":{defaultClass:"ju367v83"}}},paddingTop:{values:{0:{defaultClass:"ju367v84"},1:{defaultClass:"ju367v85"},2:{defaultClass:"ju367v86"},3:{defaultClass:"ju367v87"},4:{defaultClass:"ju367v88"},5:{defaultClass:"ju367v89"},6:{defaultClass:"ju367v8a"},8:{defaultClass:"ju367v8b"},10:{defaultClass:"ju367v8c"},12:{defaultClass:"ju367v8d"},14:{defaultClass:"ju367v8e"},16:{defaultClass:"ju367v8f"},18:{defaultClass:"ju367v8g"},20:{defaultClass:"ju367v8h"},24:{defaultClass:"ju367v8i"},28:{defaultClass:"ju367v8j"},32:{defaultClass:"ju367v8k"},36:{defaultClass:"ju367v8l"},44:{defaultClass:"ju367v8m"},64:{defaultClass:"ju367v8n"},"-1":{defaultClass:"ju367v8o"}}},position:{values:{absolute:{defaultClass:"ju367v8p"},fixed:{defaultClass:"ju367v8q"},relative:{defaultClass:"ju367v8r"}}},WebkitUserSelect:{values:{none:{defaultClass:"ju367v8s"}}},right:{values:{0:{defaultClass:"ju367v8t"}}},transition:{values:{default:{defaultClass:"ju367v8u"},transform:{defaultClass:"ju367v8v"}}},userSelect:{values:{none:{defaultClass:"ju367v8w"}}},width:{values:{1:{defaultClass:"ju367v8x"},2:{defaultClass:"ju367v8y"},4:{defaultClass:"ju367v8z"},8:{defaultClass:"ju367v90"},12:{defaultClass:"ju367v91"},20:{defaultClass:"ju367v92"},24:{defaultClass:"ju367v93"},28:{defaultClass:"ju367v94"},30:{defaultClass:"ju367v95"},32:{defaultClass:"ju367v96"},34:{defaultClass:"ju367v97"},36:{defaultClass:"ju367v98"},40:{defaultClass:"ju367v99"},44:{defaultClass:"ju367v9a"},48:{defaultClass:"ju367v9b"},54:{defaultClass:"ju367v9c"},60:{defaultClass:"ju367v9d"},200:{defaultClass:"ju367v9e"},full:{defaultClass:"ju367v9f"},max:{defaultClass:"ju367v9g"}}},backdropFilter:{values:{modalOverlay:{defaultClass:"ju367v9h"}}}}}),eG={colors:{accentColor:"var(--rk-colors-accentColor)",accentColorForeground:"var(--rk-colors-accentColorForeground)",actionButtonBorder:"var(--rk-colors-actionButtonBorder)",actionButtonBorderMobile:"var(--rk-colors-actionButtonBorderMobile)",actionButtonSecondaryBackground:"var(--rk-colors-actionButtonSecondaryBackground)",closeButton:"var(--rk-colors-closeButton)",closeButtonBackground:"var(--rk-colors-closeButtonBackground)",connectButtonBackground:"var(--rk-colors-connectButtonBackground)",connectButtonBackgroundError:"var(--rk-colors-connectButtonBackgroundError)",connectButtonInnerBackground:"var(--rk-colors-connectButtonInnerBackground)",connectButtonText:"var(--rk-colors-connectButtonText)",connectButtonTextError:"var(--rk-colors-connectButtonTextError)",connectionIndicator:"var(--rk-colors-connectionIndicator)",downloadBottomCardBackground:"var(--rk-colors-downloadBottomCardBackground)",downloadTopCardBackground:"var(--rk-colors-downloadTopCardBackground)",error:"var(--rk-colors-error)",generalBorder:"var(--rk-colors-generalBorder)",generalBorderDim:"var(--rk-colors-generalBorderDim)",menuItemBackground:"var(--rk-colors-menuItemBackground)",modalBackdrop:"var(--rk-colors-modalBackdrop)",modalBackground:"var(--rk-colors-modalBackground)",modalBorder:"var(--rk-colors-modalBorder)",modalText:"var(--rk-colors-modalText)",modalTextDim:"var(--rk-colors-modalTextDim)",modalTextSecondary:"var(--rk-colors-modalTextSecondary)",profileAction:"var(--rk-colors-profileAction)",profileActionHover:"var(--rk-colors-profileActionHover)",profileForeground:"var(--rk-colors-profileForeground)",selectedOptionBorder:"var(--rk-colors-selectedOptionBorder)",standby:"var(--rk-colors-standby)"},fonts:{body:"var(--rk-fonts-body)"},radii:{actionButton:"var(--rk-radii-actionButton)",connectButton:"var(--rk-radii-connectButton)",menuButton:"var(--rk-radii-menuButton)",modal:"var(--rk-radii-modal)",modalMobile:"var(--rk-radii-modalMobile)"},shadows:{connectButton:"var(--rk-shadows-connectButton)",dialog:"var(--rk-shadows-dialog)",profileDetailsAction:"var(--rk-shadows-profileDetailsAction)",selectedOption:"var(--rk-shadows-selectedOption)",selectedWallet:"var(--rk-shadows-selectedWallet)",walletLogo:"var(--rk-shadows-walletLogo)"},blurs:{modalOverlay:"var(--rk-blurs-modalOverlay)"}},eQ={shrink:"_12cbo8i6",shrinkSm:"_12cbo8i7"},eH={grow:"_12cbo8i4",growLg:"_12cbo8i5"};function e$({active:e,hover:t}){return["_12cbo8i3 ju367v8r",t&&eH[t],eQ[e]]}var eK=(0,c.createContext)(null);function eZ(){let e=(0,c.useContext)(eK);return e?.status??null}function eY(){let e=eZ(),{isConnected:t}=(0,g.m)();return t?e&&("loading"===e||"unauthenticated"===e)?e:"connected":"disconnected"}function eV(){return"undefined"!=typeof navigator&&/iPhone|iPod/.test(navigator.userAgent)||"undefined"!=typeof navigator&&(/iPad/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)}function eJ(){return"undefined"!=typeof navigator&&/android/i.test(navigator.userAgent)||eV()}var eX={a:"iekbcca",blockquote:"iekbcc2",button:"iekbcc9",input:"iekbcc8 iekbcc5 iekbcc4",mark:"iekbcc6",ol:"iekbcc1",q:"iekbcc2",select:"iekbcc7 iekbcc5 iekbcc4",table:"iekbcc3",textarea:"iekbcc5 iekbcc4",ul:"iekbcc1"},e0=({reset:e,...t})=>{if(!e)return eq(t);let n=eX[e],r=eq(t);return(0,y.Z)("iekbcc0",n,r)},e1=c.forwardRef(({as:e="div",className:t,testId:n,...r},a)=>{let o={},i={};for(let e in r)eq.properties.has(e)?o[e]=r[e]:i[e]=r[e];let s=e0({reset:"string"==typeof e?e:"div",...o});return c.createElement(e,{className:(0,y.Z)(s,t),...i,"data-testid":n?`rk-${n.replace(/^rk-/,"")}`:void 0,ref:a})});e1.displayName="Box";var e6=new Map,e3=new Map;async function e2(e){let t=e3.get(e);if(t)return t;let n=async()=>e().then(async t=>(e6.set(e,t),t)),r=n().catch(t=>n().catch(t=>{e3.delete(e)}));return e3.set(e,r),r}async function e7(...e){return await Promise.all(e.map(e=>"function"==typeof e?e2(e):e))}function e5(e){let t="function"==typeof e?e6.get(e):void 0;return function(){let[,e]=(0,c.useReducer)(e=>e+1,0)}(),"function"==typeof e?t:e}function e4({alt:e,background:t,borderColor:n,borderRadius:r,useAsImage:a,boxShadow:o,height:i,src:s,width:l,testId:u}){let d=eV(),f=e5(s),p=f&&/^http/.test(f),[h,m]=(0,c.useReducer)(()=>!0,!1);return c.createElement(e1,{"aria-label":e,borderRadius:r,boxShadow:o,height:"string"==typeof i?i:void 0,overflow:"hidden",position:"relative",role:"img",style:{background:t,height:"number"==typeof i?i:void 0,width:"number"==typeof l?l:void 0},width:"string"==typeof l?l:void 0,testId:u},c.createElement(e1,{...p?{"aria-hidden":!0,as:"img",onLoad:m,src:f}:{"aria-hidden":!0,as:"img",src:f},height:"full",position:"absolute",...d?{WebkitUserSelect:"none"}:{},style:{WebkitTouchCallout:"none",transition:"opacity .15s linear",userSelect:"none",...!a&&p?{opacity:h?1:0}:{}},width:"full"}),n?c.createElement(e1,{..."object"==typeof n&&"custom"in n?{style:{borderColor:n.custom}}:{borderColor:n},borderRadius:r,borderStyle:"solid",borderWidth:"1",height:"full",position:"relative",width:"full"}):null)}var e8=e=>(0,c.useMemo)(()=>`${e}_${Math.round(1e9*Math.random())}`,[e]),e9=({height:e=21,width:t=21})=>{let n=e8("spinner");return c.createElement("svg",{className:"_1luule42",fill:"none",height:e,viewBox:"0 0 21 21",width:t,xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,"Loading"),c.createElement("clipPath",{id:n},c.createElement("path",{d:"M10.5 3C6.35786 3 3 6.35786 3 10.5C3 14.6421 6.35786 18 10.5 18C11.3284 18 12 18.6716 12 19.5C12 20.3284 11.3284 21 10.5 21C4.70101 21 0 16.299 0 10.5C0 4.70101 4.70101 0 10.5 0C16.299 0 21 4.70101 21 10.5C21 11.3284 20.3284 12 19.5 12C18.6716 12 18 11.3284 18 10.5C18 6.35786 14.6421 3 10.5 3Z"})),c.createElement("foreignObject",{clipPath:`url(#${n})`,height:"21",width:"21",x:"0",y:"0"},c.createElement("div",{className:"_1luule43"})))},te=[{color:"#FC5C54",emoji:"\uD83C\uDF36"},{color:"#FFD95A",emoji:"\uD83E\uDD11"},{color:"#E95D72",emoji:"\uD83D\uDC19"},{color:"#6A87C8",emoji:"\uD83E\uDED0"},{color:"#5FD0F3",emoji:"\uD83D\uDC33"},{color:"#FC5C54",emoji:"\uD83E\uDD36"},{color:"#75C06B",emoji:"\uD83C\uDF32"},{color:"#FFDD86",emoji:"\uD83C\uDF1E"},{color:"#5FC6D4",emoji:"\uD83D\uDC12"},{color:"#FF949A",emoji:"\uD83D\uDC35"},{color:"#FF8024",emoji:"\uD83E\uDD8A"},{color:"#9BA1A4",emoji:"\uD83D\uDC3C"},{color:"#EC66FF",emoji:"\uD83E\uDD84"},{color:"#FF8CBC",emoji:"\uD83D\uDC37"},{color:"#FF9A23",emoji:"\uD83D\uDC27"},{color:"#FF949A",emoji:"\uD83E\uDDA9"},{color:"#C5DADB",emoji:"\uD83D\uDC7D"},{color:"#FC5C54",emoji:"\uD83C\uDF88"},{color:"#FF949A",emoji:"\uD83C\uDF49"},{color:"#FFD95A",emoji:"\uD83C\uDF89"},{color:"#A8CE63",emoji:"\uD83D\uDC32"},{color:"#71ABFF",emoji:"\uD83C\uDF0E"},{color:"#FFE279",emoji:"\uD83C\uDF4A"},{color:"#B6B1B6",emoji:"\uD83D\uDC2D"},{color:"#FF6780",emoji:"\uD83C\uDF63"},{color:"#FFD95A",emoji:"\uD83D\uDC25"},{color:"#A575FF",emoji:"\uD83D\uDC7E"},{color:"#A8CE63",emoji:"\uD83E\uDD66"},{color:"#FC5C54",emoji:"\uD83D\uDC79"},{color:"#FFE279",emoji:"\uD83D\uDE40"},{color:"#5FD0F3",emoji:"⛱"},{color:"#4D82FF",emoji:"⛵️"},{color:"#FFE279",emoji:"\uD83E\uDD73"},{color:"#FF949A",emoji:"\uD83E\uDD2F"},{color:"#FFB35A",emoji:"\uD83E\uDD20"}],tt=({address:e,ensImage:t,size:n})=>{let[r,a]=(0,c.useState)(!1);(0,c.useEffect)(()=>{if(t){let e=new Image;e.src=t,e.onload=()=>a(!0)}},[t]);let{color:o,emoji:i}=(0,c.useMemo)(()=>(function(e){let t=Math.abs(function(e){let t=0;if(0===e.length)return t;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return t}(("string"==typeof e?e:"").toLowerCase())%te.length);return te[t??0]})(e),[e]);return t?r?c.createElement(e1,{backgroundSize:"cover",borderRadius:"full",position:"absolute",style:{backgroundImage:`url(${t})`,backgroundPosition:"center",height:n,width:n}}):c.createElement(e1,{alignItems:"center",backgroundSize:"cover",borderRadius:"full",color:"modalText",display:"flex",justifyContent:"center",position:"absolute",style:{height:n,width:n}},c.createElement(e9,null)):c.createElement(e1,{alignItems:"center",display:"flex",justifyContent:"center",overflow:"hidden",style:{...!t&&{backgroundColor:o},height:n,width:n}},i)},tn=(0,c.createContext)(tt);function tr({address:e,imageUrl:t,loading:n,size:r}){let a=(0,c.useContext)(tn);return c.createElement(e1,{"aria-hidden":!0,borderRadius:"full",overflow:"hidden",position:"relative",style:{height:`${r}px`,width:`${r}px`},userSelect:"none"},c.createElement(e1,{alignItems:"center",borderRadius:"full",display:"flex",justifyContent:"center",overflow:"hidden",position:"absolute",style:{fontSize:`${Math.round(.55*r)}px`,height:`${r}px`,transform:n?"scale(0.72)":void 0,transition:".25s ease",transitionDelay:n?void 0:".1s",width:`${r}px`,willChange:"transform"},userSelect:"none"},c.createElement(a,{address:e,ensImage:t,size:r})),n&&c.createElement(e1,{color:"accentColor",display:"flex",height:"full",position:"absolute",width:"full"},c.createElement(e9,{height:"100%",width:"100%"})))}var ta=()=>c.createElement("svg",{fill:"none",height:"7",width:"14",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,"Dropdown"),c.createElement("path",{d:"M12.75 1.54001L8.51647 5.0038C7.77974 5.60658 6.72026 5.60658 5.98352 5.0038L1.75 1.54001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",xmlns:"http://www.w3.org/2000/svg"})),to={defaultLocale:"en",locale:"en"},ti=new class{constructor(e){for(let[t,n]of(this.listeners=new Set,this.defaultLocale=to.defaultLocale,this.enableFallback=!1,this.locale=to.locale,this.cachedLocales=[],this.translations={},Object.entries(e)))this.cachedLocales=[...this.cachedLocales,t],this.translations={...this.translations,...this.flattenTranslation(n,t)}}missingMessage(e){return`[missing: "${this.locale}.${e}" translation]`}flattenTranslation(e,t){let n={},r=(e,t)=>{for(let a of Object.keys(e)){let o=`${t}.${a}`,i=e[a];"object"==typeof i&&null!==i?r(i,o):n[o]=i}};return r(e,t),n}translateWithReplacements(e,t={}){let n=e;for(let e in t){let r=t[e];n=n.replace(`%{${e}}`,r)}return n}t(e,t,n){let r=`${this.locale}.${e}`,a=this.translations[r];if(!a){if(this.enableFallback){let n=`${this.defaultLocale}.${e}`,r=this.translations[n];if(r)return this.translateWithReplacements(r,t)}return n?.rawKeyIfTranslationMissing?e:this.missingMessage(e)}return this.translateWithReplacements(a,t)}isLocaleCached(e){return this.cachedLocales.includes(e)}updateLocale(e){this.locale=e,this.notifyListeners()}setTranslations(e,t){this.isLocaleCached(e)||(this.cachedLocales=[...this.cachedLocales,e],this.translations={...this.translations,...this.flattenTranslation(t,e)}),this.locale=e,this.notifyListeners()}notifyListeners(){for(let e of this.listeners)e()}onChange(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}}({en:JSON.parse(l.I),"en-US":JSON.parse(l.I)});ti.defaultLocale="en-US",ti.locale="en-US",ti.enableFallback=!0;var ts=async e=>{switch(e){case"ar":case"ar-AR":return(await n.e(3692).then(n.bind(n,13692))).default;case"de":case"de-DE":return(await n.e(7937).then(n.bind(n,7937))).default;case"en":case"en-US":default:return(await n.e(1745).then(n.bind(n,1745))).default;case"es":case"es-419":return(await n.e(2006).then(n.bind(n,32006))).default;case"fr":case"fr-FR":return(await n.e(9292).then(n.bind(n,59292))).default;case"hi":case"hi-IN":return(await n.e(4960).then(n.bind(n,24960))).default;case"id":case"id-ID":return(await n.e(3746).then(n.bind(n,33746))).default;case"ja":case"ja-JP":return(await n.e(671).then(n.bind(n,80671))).default;case"ko":case"ko-KR":return(await n.e(9932).then(n.bind(n,39932))).default;case"ms":case"ms-MY":return(await n.e(9661).then(n.bind(n,59661))).default;case"pt":case"pt-BR":return(await n.e(704).then(n.bind(n,30704))).default;case"ru":case"ru-RU":return(await n.e(5702).then(n.bind(n,95702))).default;case"th":case"th-TH":return(await n.e(3705).then(n.bind(n,83705))).default;case"tr":case"tr-TR":return(await n.e(9487).then(n.bind(n,79487))).default;case"ua":case"uk-UA":return(await n.e(4571).then(n.bind(n,54571))).default;case"vi":case"vi-VN":return(await n.e(6815).then(n.bind(n,96815))).default;case"zh":case"zh-CN":case"zh-Hans":return(await n.e(8663).then(n.bind(n,38663))).default;case"zh-HK":return(await n.e(2821).then(n.bind(n,52821))).default;case"zh-Hant":case"zh-TW":return(await n.e(5179).then(n.bind(n,75179))).default}};async function tl(e){if(ti.isLocaleCached(e)){ti.updateLocale(e);return}let t=await ts(e);ti.setTranslations(e,JSON.parse(t))}var tc=()=>{},tu=(0,c.createContext)({i18n:ti}),td=({children:e,locale:t})=>{let[n,r]=(0,c.useState)(0),a=(0,c.useMemo)(()=>tc(),[]);(0,c.useEffect)(()=>ti.onChange(()=>{r(e=>e+1)}),[]),(0,c.useEffect)(()=>{t&&t!==ti.locale?tl(t):!t&&a&&a!==ti.locale&&tl(a)},[t,a]);let o=(0,c.useMemo)(()=>({t:(e,t)=>ti.t(e,t),i18n:ti}),[n]);return c.createElement(tu.Provider,{value:o},e)};function tf(e){return null!=e}var tp={iconBackground:"#7290CC",iconUrl:async()=>(await n.e(5636).then(n.bind(n,75636))).default},th={iconBackground:"#96bedc",iconUrl:async()=>(await n.e(7795).then(n.bind(n,47795))).default},tm={iconBackground:"#e84141",iconUrl:async()=>(await n.e(7709).then(n.bind(n,97709))).default},tg={iconBackground:"#0052ff",iconUrl:async()=>(await n.e(9298).then(n.bind(n,79298))).default},ty={iconBackground:"#814625",iconUrl:async()=>(await n.e(2699).then(n.bind(n,42699))).default},tb={iconBackground:"#000000",iconUrl:async()=>(await n.e(3963).then(n.bind(n,53963))).default},tw={iconBackground:"#ebac0e",iconUrl:async()=>(await n.e(8941).then(n.bind(n,78941))).default},tv={iconBackground:"#FCFF52",iconUrl:async()=>(await n.e(9716).then(n.bind(n,59716))).default},tC={iconBackground:"#002D74",iconUrl:async()=>(await n.e(868).then(n.bind(n,60868))).default},tA={iconBackground:"#484c50",iconUrl:async()=>(await n.e(2227).then(n.bind(n,72227))).default},tE={iconBackground:"transparent",iconUrl:async()=>(await n.e(4742).then(n.bind(n,14742))).default},tx={iconBackground:"#000000",iconUrl:async()=>(await n.e(7085).then(n.bind(n,7085))).default},tk={iconBackground:"#7132F5",iconUrl:async()=>(await n.e(2059).then(n.bind(n,22059))).default},tB={iconBackground:"transparent",iconUrl:async()=>(await n.e(2270).then(n.bind(n,42270))).default},tj={iconBackground:"#ffffff",iconUrl:async()=>(await n.e(3335).then(n.bind(n,73335))).default},tI={iconBackground:"#ffffff",iconUrl:async()=>(await n.e(8304).then(n.bind(n,28304))).default},tS={iconBackground:"#000000",iconUrl:async()=>(await n.e(3159).then(n.bind(n,73159))).default},tT={iconBackground:"#ff5a57",iconUrl:async()=>(await n.e(9157).then(n.bind(n,99157))).default},tO={iconBackground:"#9f71ec",iconUrl:async()=>(await n.e(332).then(n.bind(n,50332))).default},tP={iconBackground:"#FFEEDA",iconUrl:async()=>(await n.e(2901).then(n.bind(n,22901))).default},tM={iconBackground:"#F50DB4",iconUrl:async()=>(await n.e(3075).then(n.bind(n,92848))).default},tD={iconBackground:"#f9f7ec",iconUrl:async()=>(await n.e(5741).then(n.bind(n,55741))).default},tN={iconBackground:"#000000",iconUrl:async()=>(await n.e(6118).then(n.bind(n,76118))).default},tR={iconBackground:"#f9f7ec",iconUrl:async()=>(await n.e(4177).then(n.bind(n,24177))).default},tF={iconBackground:"#000000",iconUrl:async()=>(await n.e(5563).then(n.bind(n,65563))).default},tL=Object.fromEntries(Object.values({apechain:{chainId:33139,name:"ApeChain",...tp},apechainCurtis:{chainId:33111,name:"ApeChain Curtis",...tp},arbitrum:{chainId:42161,name:"Arbitrum",...th},arbitrumGoerli:{chainId:421613,...th},arbitrumSepolia:{chainId:421614,...th},avalanche:{chainId:43114,...tm},avalancheFuji:{chainId:43113,...tm},base:{chainId:8453,name:"Base",...tg},baseGoerli:{chainId:84531,...tg},baseSepolia:{chainId:84532,...tg},berachain:{chainId:80094,name:"Berachain",...ty},berachainArtio:{chainId:80085,name:"Berachain Artio",...ty},berachainBArtio:{chainId:80084,name:"Berachain bArtio",...ty},blast:{chainId:81457,name:"Blast",...tb},blastSepolia:{chainId:168587773,...tb},bsc:{chainId:56,name:"BSC",...tw},bscTestnet:{chainId:97,...tw},celo:{chainId:42220,name:"Celo",...tv},celoAlfajores:{chainId:44787,name:"Celo Alfajores",...tv},cronos:{chainId:25,...tC},cronosTestnet:{chainId:338,...tC},degen:{chainId:666666666,name:"Degen",iconBackground:"#A36EFD",iconUrl:async()=>(await n.e(6484).then(n.bind(n,6484))).default},flow:{chainId:747,...tE},flowTestnet:{chainId:545,...tE},gnosis:{chainId:100,name:"Gnosis",iconBackground:"#04795c",iconUrl:async()=>(await n.e(5995).then(n.bind(n,95995))).default},goerli:{chainId:5,...tA},gravity:{chainId:1625,name:"Gravity",...tx},gravitySepolia:{chainId:13505,name:"Gravity Sepolia",...tx},hardhat:{chainId:31337,iconBackground:"#f9f7ec",iconUrl:async()=>(await n.e(7768).then(n.bind(n,7768))).default},holesky:{chainId:17e3,...tA},hyperevm:{chainId:999,iconBackground:"#000000",iconUrl:async()=>(await n.e(5111).then(n.bind(n,65111))).default},ink:{chainId:57073,...tk},inkSepolia:{chainId:763373,...tk},kaia:{chainId:8217,name:"Kaia",...tB},kairos:{chainId:1001,name:"Kairos",...tB},kovan:{chainId:42,...tA},linea:{chainId:59144,name:"Linea",...tj},lineaGoerli:{chainId:59140,name:"Linea Goerli",...tj},lineaSepolia:{chainId:59141,name:"Linea Sepolia",...tj},localhost:{chainId:1337,...tA},mainnet:{chainId:1,name:"Ethereum",...tA},manta:{chainId:169,name:"Manta",...tI},mantaSepolia:{chainId:3441006,...tI},mantaTestnet:{chainId:3441005,...tI},mantle:{chainId:5e3,...tS},mantleTestnet:{chainId:5001,...tS},optimism:{chainId:10,name:"Optimism",...tT},optimismGoerli:{chainId:420,...tT},optimismKovan:{chainId:69,...tT},optimismSepolia:{chainId:11155420,...tT},polygon:{chainId:137,name:"Polygon",...tO},polygonAmoy:{chainId:80002,...tO},polygonMumbai:{chainId:80001,...tO},rinkeby:{chainId:4,...tA},ronin:{chainId:2020,iconBackground:"#1273EA",iconUrl:async()=>(await n.e(9602).then(n.bind(n,19602))).default},ropsten:{chainId:3,...tA},sanko:{chainId:1996,name:"Sanko",iconBackground:"#000000",iconUrl:async()=>(await n.e(3099).then(n.bind(n,13099))).default},scroll:{chainId:534352,...tP},scrollSepolia:{chainId:534351,...tP},sepolia:{chainId:11155111,...tA},superposition:{chainId:55244,name:"Superposition",iconBackground:"#000000",iconUrl:async()=>(await n.e(2710).then(n.bind(n,92710))).default},unichain:{chainId:130,...tM},unichainSepolia:{chainId:1301,...tM},xdc:{chainId:50,name:"XDC",...tD},xdcTestnet:{chainId:51,...tD},zetachain:{chainId:7e3,name:"ZetaChain",...tN},zetachainAthensTestnet:{chainId:7001,name:"Zeta Athens",...tN},zkSync:{chainId:324,name:"zkSync",...tR},zkSyncTestnet:{chainId:280,...tR},zora:{chainId:7777777,name:"Zora",...tF},zoraSepolia:{chainId:999999999,...tF},zoraTestnet:{chainId:999,...tF}}).filter(tf).map(({chainId:e,...t})=>[e,t])),t_=e=>e.map(e=>{let t=tL[e.id]??{};return{...e,name:t.name??e.name,iconUrl:e.iconUrl??t.iconUrl,iconBackground:e.iconBackground??t.iconBackground}}),tU=(0,c.createContext)({chains:[]});function tz({children:e,initialChain:t}){let{chains:n}=(0,b.Z)();return c.createElement(tU.Provider,{value:(0,c.useMemo)(()=>({chains:t_(n),initialChainId:"number"==typeof t?t:t?.id}),[n,t])},e)}var tW=()=>(0,c.useContext)(tU).chains,tq=()=>(0,c.useContext)(tU).initialChainId,tG=()=>{let e=tW();return(0,c.useMemo)(()=>{let t={};for(let n of e)t[n.id]=n;return t},[e])},tQ=(0,c.createContext)({showBalance:void 0,setShowBalance:()=>{}});function tH({children:e}){let[t,n]=(0,c.useState)();return c.createElement(tQ.Provider,{value:{showBalance:t,setShowBalance:n}},e)}var t$=()=>(0,c.useContext)(tQ);function tK(){let e=tW(),t=B.R.id;return e.some(e=>e.id===t)}async function tZ(e,t){if(t={headers:{},method:"get",...t,timeout:t.timeout??1e4},!e)throw Error("rainbowFetch: Missing url argument");let n=new AbortController,r=setTimeout(()=>n.abort(),t.timeout),{body:a,params:o,headers:i,...s}=t,l=a&&"object"==typeof a?JSON.stringify(t.body):t.body,c=await fetch(`${e}${o&&Object.keys(o).length?`?${new URLSearchParams(o)}`:""}`,{...s,body:l,headers:{Accept:"application/json","Content-Type":"application/json",...i},signal:n.signal});clearTimeout(r);let u=await function(e){let t=e.headers.get("Content-Type");return t?.startsWith("application/json")?e.json():e.text()}(c);if(c.ok){let{headers:e,status:t}=c;return{data:u,headers:e,status:t}}throw function({requestBody:e,response:t,responseBody:n}){let r=Error(n?.error||t?.statusText||"There was an error with the request.");return r.response=t,r.responseBody=n,r.requestBody=e,r}({requestBody:a,response:c,responseBody:"string"==typeof u?{error:u}:u})}var tY=class{constructor(e={}){let{baseUrl:t="",...n}=e;this.baseUrl=t,this.opts=n}get(e,t){return tZ(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"get"})}delete(e,t){return tZ(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"delete"})}head(e,t){return tZ(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"head"})}options(e,t){return tZ(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"options"})}post(e,t,n){return tZ(`${this.baseUrl}${e}`,{...this.opts,...n||{},body:t,method:"post"})}put(e,t,n){return tZ(`${this.baseUrl}${e}`,{...this.opts,...n||{},body:t,method:"put"})}patch(e,t,n){return tZ(`${this.baseUrl}${e}`,{...this.opts,...n||{},body:t,method:"patch"})}},tV=!!("undefined"!=typeof process&&void 0!==process.env&&process.env.RAINBOW_PROVIDER_API_KEY),tJ=function({baseUrl:e,headers:t,params:n,timeout:r}){return new tY({baseUrl:e,headers:t,params:n,timeout:r})}({baseUrl:"https://enhanced-provider.rainbow.me",headers:{"x-api-key":"undefined"!=typeof process&&void 0!==process.env&&process.env.RAINBOW_PROVIDER_API_KEY||"LzbasoBiLqltex3VkcQ7LRmL4PtfiiZ1EMJrizrgfonWN6byJReu/l6yrUoo3zLW"}});function tX(e){return`rk-ens-name-${e}`}async function t0({address:e}){let t=function(e){let t=function(e){try{let t=e?JSON.parse(e):null;return"object"==typeof t?t:null}catch{return null}}(localStorage.getItem(tX(e)));if(!t)return null;let{ensName:n,expires:r}=t;return"string"!=typeof n||Number.isNaN(Number(r))||new Date().getTime()>Number(r)?(localStorage.removeItem(tX(e)),null):n}(e);if(t)return t;let n=(await tJ.get("/v1/resolve-ens",{params:{address:e}})).data.data;return n&&function(e,t){if(!(0,S.U)(e))return;let n=new Date(new Date().getTime()+180*6e4);localStorage.setItem(tX(e),JSON.stringify({ensName:t,expires:n.getTime()}))}(e,n),n}function t1({address:e,includeBalance:t}){let n=function(e){let t=tK(),{data:n}=function(e={}){let{address:t,query:n={}}=e,r=(0,b.Z)(e),a=(0,k.x)({config:r}),o=function(e,t={}){return{async queryFn({queryKey:t}){let{address:n,scopeKey:r,...a}=t[1];if(!n)throw Error("address is required");return function(e,t){let{chainId:n,...r}=t,a=e.getClient({chainId:n});return(0,A.s)(a,I.w,"getEnsName")(r)}(e,{...a,address:n})},queryKey:function(e={}){return["ensName",(0,E.OP)(e)]}(t)}}(r,{...e,chainId:e.chainId??a}),i=!!(t&&(n.enabled??!0));return(0,x.aM)({...n,...o,enabled:i})}({chainId:B.R.id,address:e,query:{enabled:t}}),{data:r}=(0,j.a)({queryKey:function(e,t,n={}){return[e,t,n]}("address",e),queryFn:()=>t0({address:e}),enabled:!t&&!!e&&tV,staleTime:6e5,retry:1});return n||r}(e),r=function(e){let t=tK(),{data:n}=function(e={}){let{name:t,query:n={}}=e,r=(0,b.Z)(e),a=(0,k.x)({config:r}),o=function(e,t={}){return{async queryFn({queryKey:t}){let{name:n,scopeKey:r,...a}=t[1];if(!n)throw Error("name is required");return function(e,t){let{chainId:n,...r}=t,a=e.getClient({chainId:n});return(0,A.s)(a,C.r,"getEnsAvatar")(r)}(e,{...a,name:n})},queryKey:function(e={}){return["ensAvatar",(0,E.OP)(e)]}(t)}}(r,{...e,chainId:e.chainId??a}),i=!!(t&&(n.enabled??!0));return(0,x.aM)({...n,...o,enabled:i})}({chainId:B.R.id,name:e?(e=>{try{return(0,v.F)(e)}catch{}})(e):void 0,query:{enabled:t}});return n}(n),{data:a}=(0,w.K)({address:t?e:void 0});return{ensName:n,ensAvatar:r,balance:a}}function t6(){let{chain:e}=(0,g.m)();return e?.id??null}var t3="rk-transactions";function t2(){return function(e){try{let t=e?JSON.parse(e):{};return"object"==typeof t?t:{}}catch{return{}}}("undefined"!=typeof localStorage?localStorage.getItem(t3):null)}var t7=/^0x([A-Fa-f0-9]{64})$/,t5=c.createContext(null);function t4({children:e}){let t=(0,T.t)(),{address:n}=(0,g.m)();t6();let{refetch:a}=(0,w.K)({address:n,query:{enabled:!1}}),[o]=c.useState(()=>r??(r=function({provider:e}){let t=t2(),n=e,r=new Set,a=new Set,o=new Map;function i(e,n){return t[e]?.[n]??[]}function s(e,t,n,r){c(e,t,e=>e.map(e=>e.hash===n?{...e,status:r}:e))}async function l(e,t){await Promise.all(i(e,t).filter(e=>"pending"===e.status).map(async r=>{let{confirmations:i,hash:l}=r,c=o.get(l);if(c)return await c;let u=n.waitForTransactionReceipt({confirmations:i,hash:l,timeout:3e5}).then(({status:n})=>{o.delete(l),void 0!==n&&(s(e,t,l,0===n||"reverted"===n?"failed":"confirmed"),function(e){for(let t of a)t(e)}(n))}).catch(()=>{s(e,t,l,"failed")});return o.set(l,u),await u}))}function c(e,n,a){(t=t2())[e]=t[e]??{};let o=0,i=a(t[e][n]??[]).filter(({status:e})=>"pending"===e||o++<=10);t[e][n]=i.length>0?i:void 0,localStorage.setItem(t3,JSON.stringify(t)),function(){for(let e of r)e()}(),l(e,n)}return{addTransaction:function(e,t,n){let r=function(e){let t=[];return t7.test(e.hash)||t.push("Invalid transaction hash"),"string"!=typeof e.description&&t.push("Transaction must have a description"),void 0!==e.confirmations&&(!Number.isInteger(e.confirmations)||e.confirmations<1)&&t.push("Transaction confirmations must be a positiver integer"),t}(n);if(r.length>0)throw Error(["Unable to add transaction",...r].join("\n"));c(e,t,e=>[{...n,status:"pending"},...e.filter(({hash:e})=>e!==n.hash)])},clearTransactions:function(e,t){c(e,t,()=>[])},getTransactions:i,onTransactionStatus:function(e){return a.add(e),()=>{a.delete(e)}},onChange:function(e){return r.add(e),()=>{r.delete(e)}},setProvider:function(e){n=e},waitForPendingTransactions:l}}({provider:t})));return c.useCallback(e=>{"success"===e&&a()},[a]),c.createElement(t5.Provider,{value:o},e)}function t8(){let e=c.useContext(t5);if(!e)throw Error("Transaction hooks must be used within RainbowKitProvider");return e}function t9(){let e=t8(),{address:t}=(0,g.m)(),n=t6(),[r,a]=(0,c.useState)(()=>e&&t&&n?e.getTransactions(t,n):[]);return r}var ne=e=>"function"==typeof e?e():e;function nt(e,t={}){return Object.entries(function(e,{extends:t}={}){let n={...ek(eG,ne(e))};if(!t)return n;let r=ek(eG,ne(t));return Object.fromEntries(Object.entries(n).filter(([e,t])=>t!==r[e]))}(e,t)).map(([e,t])=>`${e}:${t.replace(/[:;{}</>]/g,"")};`).join("")}var nn={appName:void 0,disclaimer:void 0,learnMoreUrl:"https://learn.rainbow.me/understanding-web3?utm_source=rainbowkit&utm_campaign=learnmore"},nr=(0,c.createContext)(nn),na=(0,c.createContext)(!1),no=()=>{let[e,t]=(0,c.useState)({height:void 0,width:void 0});return(0,c.useEffect)(()=>{let e=function(e,t){let n;return()=>{n&&clearTimeout(n),n=setTimeout(()=>{n=null,e()},500)}}(()=>{t({height:window.innerHeight,width:window.innerWidth})},0);return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),e},ni=(0,c.createContext)({connector:null,setConnector:()=>{}});function ns({children:e}){let[t,n]=(0,c.useState)(null);return c.createElement(ni.Provider,{value:(0,c.useMemo)(()=>({connector:t,setConnector:n}),[t])},e)}var nl={COMPACT:"compact",WIDE:"wide"},nc=(0,c.createContext)(nl.WIDE);function nu({children:e,modalSize:t}){let{width:n}=no(),{connector:r}=(0,c.useContext)(ni);return c.createElement(nc.Provider,{value:n&&n<768||r?nl.COMPACT:t},e)}var nd=(0,c.createContext)(!1);function nf(){return"undefined"!=typeof navigator&&void 0!==navigator.userAgent&&/Version\/([0-9._]+).*Safari/.test(navigator.userAgent)}function np(){if("undefined"==typeof navigator)return"Browser";let e=navigator.userAgent?.toLowerCase();return navigator.brave?.isBrave?"Brave":e?.indexOf("edg/")>-1?"Edge":e?.indexOf("op")>-1?"Opera":"undefined"!=typeof document&&""!==getComputedStyle(document.body).getPropertyValue("--arc-palette-focus")?"Arc":e?.indexOf("chrome")>-1?"Chrome":e?.indexOf("firefox")>-1?"Firefox":nf()?"Safari":"Browser"}var{os:nh}=(0,ej.UAParser)();function nm(){return"Windows"===nh.name?"Windows":"Mac OS"===nh.name?"macOS":["Ubuntu","Mint","Fedora","Debian","Arch","Linux"].includes(nh.name)?"Linux":"Desktop"}var ng=e=>{let t=np();return({Arc:e?.downloadUrls?.chrome,Brave:e?.downloadUrls?.chrome,Chrome:e?.downloadUrls?.chrome,Edge:e?.downloadUrls?.edge||e?.downloadUrls?.chrome,Firefox:e?.downloadUrls?.firefox,Opera:e?.downloadUrls?.opera||e?.downloadUrls?.chrome,Safari:e?.downloadUrls?.safari,Browser:e?.downloadUrls?.browserExtension})[t]??e?.downloadUrls?.browserExtension},ny=e=>(eV()?e?.downloadUrls?.ios:e?.downloadUrls?.android)??e?.downloadUrls?.mobile,nb=e=>{let t=nm();return({Windows:e?.downloadUrls?.windows,macOS:e?.downloadUrls?.macos,Linux:e?.downloadUrls?.linux,Desktop:e?.downloadUrls?.desktop})[t]??e?.downloadUrls?.desktop},nw=(e,t)=>e.some(e=>e.id===t),nv=e=>!!e.isRainbowKitConnector,nC=e=>!!(!e.isRainbowKitConnector&&e.icon?.replace(/\n/g,"").startsWith("data:image")&&e.uid&&e.name),nA=(e,t)=>"walletConnect"===e.id&&t?{...e,walletConnectModalConnector:t}:e,nE=({wallets:e,recentWallets:t})=>[...t,...e.filter(e=>!nw(t,e.id))],nx="rk-recent";function nk(){return"undefined"!=typeof localStorage?function(e){try{let t=e?JSON.parse(e):[];return Array.isArray(t)?t:[]}catch{return[]}}(localStorage.getItem(nx)):[]}function nB(e=!1){let t=tW(),n=tq(),{connectAsync:r,connectors:a}=(0,eB.$)(),{setIsWalletConnectModalOpen:o}=r3(),i=a.map(e=>({...e,...e.rkDetails||{}}));async function s(e){let a=await e.getChainId(),o=await r({chainId:n??t.find(({id:e})=>e===a)?.id??t[0]?.id,connector:e});return o&&function(e){let t=[...new Set([e,...nk()])];localStorage.setItem(nx,JSON.stringify(t))}(e.id),o}async function l(e){try{o(!0),await s(e),o(!1)}catch(t){let e="UserRejectedRequestError"===t.name||"Connection request reset. Please try again."===t.message;if(o(!1),!e)throw t}}let c=async(e,t)=>{let n=await e.getProvider();return"coinbase"===e.id?n.qrUrl:new Promise(e=>n.once("display_uri",n=>{e(t(n))}))},u=i.find(e=>"walletConnect"===e.id&&e.isWalletConnectModalConnector),d=i.filter(nC).map(e=>({...e,groupIndex:0})),f=i.filter(nv).filter(e=>!e.isWalletConnectModalConnector).filter(t=>!e||!d.some(e=>e.id===t.rdns)).map(e=>nA(e,u)),p=[...d,...f],h=function(e,t){let n={};for(let r of e){let e=t(r);e&&(n[e]=r)}return n}(p,e=>e.id),m=nk().map(e=>h[e]).filter(Boolean).slice(0,3),g=[];for(let e of nE({wallets:p,recentWallets:m})){if(!e)continue;let t=nC(e),n=nw(m,e.id);if(t){g.push({...e,iconUrl:e.icon,ready:!0,connect:()=>s(e),groupName:"Installed",recent:n});continue}g.push({...e,ready:e.installed??!0,connect:()=>s(e),desktopDownloadUrl:nb(e),extensionDownloadUrl:ng(e),groupName:e.groupName,mobileDownloadUrl:ny(e),getQrCodeUri:e.qrCode?.getUri?()=>c(e,e.qrCode.getUri):void 0,getDesktopUri:e.desktop?.getUri?()=>c(e,e.desktop.getUri):void 0,getMobileUri:e.mobile?.getUri?()=>c(e,e.mobile?.getUri):void 0,recent:n,showWalletConnectModal:e.walletConnectModalConnector?()=>l(e.walletConnectModalConnector):void 0})}return g}var nj=async()=>(await n.e(7350).then(n.bind(n,87350))).default,nI=()=>e7(nj),nS=()=>c.createElement(e4,{background:"#d0d5de",borderRadius:"10",height:"48",src:nj,width:"48"}),nT=async()=>(await n.e(3288).then(n.bind(n,13288))).default,nO=()=>e7(nT),nP=()=>c.createElement(e4,{background:"#d0d5de",borderRadius:"10",height:"48",src:nT,width:"48"}),nM=c.forwardRef(({as:e="div",children:t,className:n,color:r,display:a,font:o="body",id:i,size:s="16",style:l,tabIndex:u,textAlign:d="inherit",weight:f="regular",testId:p},h)=>c.createElement(e1,{as:e,className:n,color:r,display:a,fontFamily:o,fontSize:s,fontWeight:f,id:i,ref:h,style:l,tabIndex:u,textAlign:d,testId:p},t));nM.displayName="Text";var nD={large:{fontSize:"16",paddingX:"24",paddingY:"10"},medium:{fontSize:"14",height:"28",paddingX:"12",paddingY:"4"},small:{fontSize:"14",paddingX:"10",paddingY:"5"}};function nN({disabled:e=!1,href:t,label:n,onClick:r,rel:a="noreferrer noopener",size:o="medium",target:i="_blank",testId:s,type:l="primary"}){let u="primary"===l,d="large"!==o,f=eJ(),p=e?"actionButtonSecondaryBackground":u?"accentColor":d?"actionButtonSecondaryBackground":null,{fontSize:h,height:m,paddingX:g,paddingY:y}=nD[o];return c.createElement(e1,{...t?e?{}:{as:"a",href:t,rel:a,target:i}:{as:"button",type:"button"},onClick:e?void 0:r,...f&&d?{}:{borderColor:!f||d||u?"actionButtonBorder":"actionButtonBorderMobile",borderStyle:"solid",borderWidth:"1"},borderRadius:"actionButton",className:!e&&e$({active:"shrinkSm",hover:"grow"}),display:"block",paddingX:g,paddingY:y,style:{willChange:"transform"},testId:s,textAlign:"center",transition:"transform",...p?{background:p}:{},...m?{height:m}:{}},c.createElement(nM,{color:e?"modalTextSecondary":u?"accentColorForeground":"accentColor",size:h,weight:"bold"},n))}var nR=()=>eJ()?c.createElement("svg",{"aria-hidden":!0,fill:"none",height:"11.5",viewBox:"0 0 11.5 11.5",width:"11.5",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,"Close"),c.createElement("path",{d:"M2.13388 0.366117C1.64573 -0.122039 0.854272 -0.122039 0.366117 0.366117C-0.122039 0.854272 -0.122039 1.64573 0.366117 2.13388L3.98223 5.75L0.366117 9.36612C-0.122039 9.85427 -0.122039 10.6457 0.366117 11.1339C0.854272 11.622 1.64573 11.622 2.13388 11.1339L5.75 7.51777L9.36612 11.1339C9.85427 11.622 10.6457 11.622 11.1339 11.1339C11.622 10.6457 11.622 9.85427 11.1339 9.36612L7.51777 5.75L11.1339 2.13388C11.622 1.64573 11.622 0.854272 11.1339 0.366117C10.6457 -0.122039 9.85427 -0.122039 9.36612 0.366117L5.75 3.98223L2.13388 0.366117Z",fill:"currentColor"})):c.createElement("svg",{"aria-hidden":!0,fill:"none",height:"10",viewBox:"0 0 10 10",width:"10",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,"Close"),c.createElement("path",{d:"M1.70711 0.292893C1.31658 -0.0976311 0.683417 -0.0976311 0.292893 0.292893C-0.0976311 0.683417 -0.0976311 1.31658 0.292893 1.70711L3.58579 5L0.292893 8.29289C-0.0976311 8.68342 -0.0976311 9.31658 0.292893 9.70711C0.683417 10.0976 1.31658 10.0976 1.70711 9.70711L5 6.41421L8.29289 9.70711C8.68342 10.0976 9.31658 10.0976 9.70711 9.70711C10.0976 9.31658 10.0976 8.68342 9.70711 8.29289L6.41421 5L9.70711 1.70711C10.0976 1.31658 10.0976 0.683417 9.70711 0.292893C9.31658 -0.0976311 8.68342 -0.0976311 8.29289 0.292893L5 3.58579L1.70711 0.292893Z",fill:"currentColor"})),nF=({"aria-label":e="Close",onClose:t})=>{let n=eJ();return c.createElement(e1,{alignItems:"center","aria-label":e,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:n?"0":"1",className:e$({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:n?"30":"28",justifyContent:"center",onClick:t,style:{willChange:"transform"},transition:"default",type:"button",width:n?"30":"28"},c.createElement(nR,null))},nL=async()=>(await n.e(7199).then(n.bind(n,77199))).default;function n_({onClose:e,onCloseModal:t}){let{i18n:n}=(0,c.useContext)(tu),[{status:r,...a},o]=c.useState({status:"idle"}),i=function(){let{adapter:e}=(0,c.useContext)(eK)??{};if(!e)throw Error("No authentication adapter found");return e}(),s=(0,c.useCallback)(async()=>{try{let e=await i.getNonce();o(t=>({...t,nonce:e}))}catch{o(e=>({...e,errorMessage:n.t("sign_in.message.preparing_error"),status:"idle"}))}},[i,n.t]),l=(0,c.useRef)(!1);c.useEffect(()=>{l.current||(l.current=!0,s())},[s]);let u=eJ(),{address:d,chain:f}=(0,g.m)(),{signMessageAsync:p}=function(e={}){var t;let{mutation:n}=e,r=(t=(0,b.Z)(e),{mutationFn:e=>eD(t,e),mutationKey:["signMessage"]}),{mutate:a,mutateAsync:o,...i}=(0,P.D)({...n,...r});return{...i,signMessage:a,signMessageAsync:o}}(),h=async()=>{try{let e;let r=f?.id,{nonce:s}=a;if(!d||!r||!s)return;o(e=>({...e,errorMessage:void 0,status:"signing"}));let l=i.createMessage({address:d,chainId:r,nonce:s});try{e=await p({message:l})}catch(e){if(e instanceof eI.ab)return o(e=>({...e,status:"idle"}));return o(e=>({...e,errorMessage:n.t("sign_in.signature.signing_error"),status:"idle"}))}o(e=>({...e,status:"verifying"}));try{if(await i.verify({message:l,signature:e})){t();return}throw Error()}catch{return o(e=>({...e,errorMessage:n.t("sign_in.signature.verifying_error"),status:"idle"}))}}catch{o({errorMessage:n.t("sign_in.signature.oops_error"),status:"idle"})}};return c.createElement(e1,{position:"relative"},c.createElement(e1,{display:"flex",paddingRight:"16",paddingTop:"16",position:"absolute",right:"0"},c.createElement(nF,{onClose:e})),c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",gap:u?"32":"24",padding:"24",paddingX:"18",style:{paddingTop:u?"60px":"36px"}},c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",gap:u?"6":"4",style:{maxWidth:u?320:280}},c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",gap:u?"32":"16"},c.createElement(e4,{height:40,src:nL,width:40}),c.createElement(nM,{color:"modalText",size:u?"20":"18",textAlign:"center",weight:"heavy"},n.t("sign_in.label"))),c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",gap:u?"16":"12"},c.createElement(nM,{color:"modalTextSecondary",size:u?"16":"14",textAlign:"center"},n.t("sign_in.description")),"idle"===r&&a.errorMessage?c.createElement(nM,{color:"error",size:u?"16":"14",textAlign:"center",weight:"bold"},a.errorMessage):null)),c.createElement(e1,{alignItems:u?void 0:"center",display:"flex",flexDirection:"column",gap:"8",width:"full"},c.createElement(nN,{disabled:!a.nonce||"signing"===r||"verifying"===r,label:a.nonce?"signing"===r?n.t("sign_in.signature.waiting"):"verifying"===r?n.t("sign_in.signature.verifying"):n.t("sign_in.message.send"):n.t("sign_in.message.preparing"),onClick:h,size:u?"large":"medium",testId:"auth-message-button"}),u?c.createElement(nN,{label:"Cancel",onClick:e,size:"large",type:"secondary"}):c.createElement(e1,{as:"button",borderRadius:"full",className:e$({active:"shrink",hover:"grow"}),display:"block",onClick:e,paddingX:"10",paddingY:"5",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},c.createElement(nM,{color:"closeButton",size:u?"16":"14",weight:"bold"},n.t("sign_in.message.cancel"))))))}var nU="WALLETCONNECT_DEEPLINK_CHOICE";function nz(){localStorage.removeItem(nU)}var nW=(0,c.createContext)(void 0),nq="data-rk",nG=e=>({[nq]:e||""}),nQ=e=>{if(e&&!/^[a-zA-Z0-9_]+$/.test(e))throw Error(`Invalid ID: ${e}`);return e?`[${nq}="${e}"]`:`[${nq}]`},nH=()=>nG((0,c.useContext)(nW)),n$=s();function nK({appInfo:e,avatar:t,children:n,coolMode:r=!1,id:a,initialChain:o,locale:i,modalSize:s=nl.WIDE,showRecentTransactions:l=!1,theme:u=n$}){if(function(){let e=tW(),t=nB(),n="unauthenticated"===eZ();(0,c.useCallback)(()=>{e7(...t.map(e=>e.iconUrl),...e.map(e=>e.iconUrl).filter(tf)),eJ()||(nI(),nO()),n&&e7(nL)},[t,e,n])}(),(0,c.useCallback)(()=>{!function({version:e}){localStorage.setItem("rk-version",e)}({version:"2.2.6"})},[]),O({onDisconnect:nz}),"function"==typeof u)throw Error('A theme function was provided to the "theme" prop instead of a theme object. You must execute this function to get the resulting theme object.');let d=nQ(a),f={...nn,...e};return c.createElement(tz,{initialChain:o},c.createElement(ns,null,c.createElement(td,{locale:i},c.createElement(na.Provider,{value:r},c.createElement(nu,{modalSize:s},c.createElement(nd.Provider,{value:l},c.createElement(t4,null,c.createElement(tn.Provider,{value:t??tt},c.createElement(nr.Provider,{value:f},c.createElement(nW.Provider,{value:a},c.createElement(tH,null,c.createElement(r6,null,u?c.createElement("div",{...nG(a)},c.createElement("style",{dangerouslySetInnerHTML:{__html:[`${d}{${nt("lightMode"in u?u.lightMode:u)}}`,"darkMode"in u?`@media(prefers-color-scheme:dark){${d}{${nt(u.darkMode,{extends:u.lightMode})}}}`:null].join("")}}),n):n))))))))))))}var nZ=(e,t)=>{let n=e.querySelectorAll("button:not(:disabled), a[href]");0!==n.length&&n["end"===t?n.length-1:0].focus()};function nY(e){let t=(0,c.useRef)(null);return c.createElement(c.Fragment,null,c.createElement("div",{onFocus:(0,c.useCallback)(()=>t.current&&nZ(t.current,"end"),[]),tabIndex:0}),c.createElement("div",{ref:t,style:{outline:"none"},tabIndex:-1,...e}),c.createElement("div",{onFocus:(0,c.useCallback)(()=>t.current&&nZ(t.current,"start"),[]),tabIndex:0}))}var nV=e=>e.stopPropagation();function nJ({children:e,onClose:t,open:n,titleId:r}){(0,c.useEffect)(()=>{let e=e=>n&&"Escape"===e.key&&t();return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[n,t]);let[a,o]=(0,c.useState)(!0);(0,c.useEffect)(()=>{o("hidden"!==getComputedStyle(window.document.body).overflow)},[]);let i=(0,c.useCallback)(()=>t(),[t]),s=nH(),l=eJ();return c.createElement(c.Fragment,null,n?(0,L.createPortal)(c.createElement(eE,{enabled:a},c.createElement(e1,{...s},c.createElement(e1,{...s,alignItems:l?"flex-end":"center","aria-labelledby":r,"aria-modal":!0,className:"_9pm4ki3 ju367v9h ju367vb3 ju367va ju367v2q ju367v8q",onClick:i,position:"fixed",role:"dialog"},c.createElement(nY,{className:"_9pm4ki5 ju367va ju367v15 ju367v8r",onClick:nV,role:"document"},e)))),document.body):null)}function nX({bottomSheetOnMobile:e=!1,children:t,marginTop:n,padding:r="16",paddingBottom:a,wide:o=!1}){let i=eJ(),s=(0,c.useContext)(nc)===nl.COMPACT;return c.createElement(e1,{marginTop:n},c.createElement(e1,{className:[o?i?"_1ckjpok2 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r":s?"_1ckjpok4 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r":"_1ckjpok3 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r":"_1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",i?"_1ckjpok6 ju367vq":null,i&&e?"_1ckjpok7":null].join(" ")},c.createElement(e1,{padding:r,paddingBottom:a??r},t)))}var n0=["k","m","b","t"];function n1(e,t=1){return e.toString().replace(RegExp(`(.+\\.\\d{${t}})\\d+`),"$1").replace(/(\.[1-9]*)0+$/,"$1").replace(/\.$/,"")}function n6(e){if(e<1)return n1(e,3);if(e<100)return n1(e,2);if(e<1e4)return new Intl.NumberFormat().format(Number.parseFloat(n1(e,1)));let t=String(e);for(let n=n0.length-1;n>=0;n--){let r=10**((n+1)*3);if(r<=e){t=n1(e=10*e/r/10,1)+n0[n];break}}return t}function n3(e){return e.length<8?e:`${e.substring(0,4)}\u2026${e.substring(e.length-4)}`}function n2(e){if(!e)return"";let t=e.split("."),n=t.pop();return t.join(".").length>24?`${t.join(".").substring(0,24)}...`:`${t.join(".")}.${n}`}var n7=()=>c.createElement("svg",{fill:"none",height:"13",viewBox:"0 0 13 13",width:"13",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,"Copied"),c.createElement("path",{d:"M4.94568 12.2646C5.41052 12.2646 5.77283 12.0869 6.01892 11.7109L12.39 1.96973C12.5677 1.69629 12.6429 1.44336 12.6429 1.2041C12.6429 0.561523 12.1644 0.0966797 11.5082 0.0966797C11.057 0.0966797 10.7767 0.260742 10.5033 0.691406L4.9115 9.50977L2.07458 5.98926C1.82166 5.68848 1.54822 5.55176 1.16541 5.55176C0.502319 5.55176 0.0238037 6.02344 0.0238037 6.66602C0.0238037 6.95312 0.112671 7.20605 0.358765 7.48633L3.88611 11.7588C4.18005 12.1074 4.50818 12.2646 4.94568 12.2646Z",fill:"currentColor"})),n5=()=>c.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 17 16",width:"17",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,"Copy"),c.createElement("path",{d:"M3.04236 12.3027H4.18396V13.3008C4.18396 14.8525 5.03845 15.7002 6.59705 15.7002H13.6244C15.183 15.7002 16.0375 14.8525 16.0375 13.3008V6.24609C16.0375 4.69434 15.183 3.84668 13.6244 3.84668H12.4828V2.8418C12.4828 1.29688 11.6283 0.442383 10.0697 0.442383H3.04236C1.48376 0.442383 0.629272 1.29004 0.629272 2.8418V9.90332C0.629272 11.4551 1.48376 12.3027 3.04236 12.3027ZM3.23376 10.5391C2.68689 10.5391 2.39294 10.2656 2.39294 9.68457V3.06055C2.39294 2.47949 2.68689 2.21289 3.23376 2.21289H9.8783C10.4252 2.21289 10.7191 2.47949 10.7191 3.06055V3.84668H6.59705C5.03845 3.84668 4.18396 4.69434 4.18396 6.24609V10.5391H3.23376ZM6.78845 13.9365C6.24158 13.9365 5.94763 13.6699 5.94763 13.0889V6.45801C5.94763 5.87695 6.24158 5.61035 6.78845 5.61035H13.433C13.9799 5.61035 14.2738 5.87695 14.2738 6.45801V13.0889C14.2738 13.6699 13.9799 13.9365 13.433 13.9365H6.78845Z",fill:"currentColor"})),n4=()=>c.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 18 16",width:"18",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,"Disconnect"),c.createElement("path",{d:"M2.67834 15.5908H9.99963C11.5514 15.5908 12.399 14.7432 12.399 13.1777V10.2656H10.6354V12.9863C10.6354 13.5332 10.3688 13.8271 9.78772 13.8271H2.89026C2.3092 13.8271 2.0426 13.5332 2.0426 12.9863V3.15625C2.0426 2.60254 2.3092 2.30859 2.89026 2.30859H9.78772C10.3688 2.30859 10.6354 2.60254 10.6354 3.15625V5.89746H12.399V2.95801C12.399 1.39941 11.5514 0.544922 9.99963 0.544922H2.67834C1.12659 0.544922 0.278931 1.39941 0.278931 2.95801V13.1777C0.278931 14.7432 1.12659 15.5908 2.67834 15.5908ZM7.43616 8.85059H14.0875L15.0924 8.78906L14.566 9.14453L13.6842 9.96484C13.5406 10.1016 13.4586 10.2861 13.4586 10.4844C13.4586 10.8398 13.7321 11.168 14.1217 11.168C14.3199 11.168 14.4635 11.0928 14.6002 10.9561L16.7809 8.68652C16.986 8.48145 17.0543 8.27637 17.0543 8.06445C17.0543 7.85254 16.986 7.64746 16.7809 7.43555L14.6002 5.17285C14.4635 5.03613 14.3199 4.9541 14.1217 4.9541C13.7321 4.9541 13.4586 5.27539 13.4586 5.6377C13.4586 5.83594 13.5406 6.02734 13.6842 6.15723L14.566 6.98438L15.0924 7.33984L14.0875 7.27148H7.43616C7.01917 7.27148 6.65686 7.62012 6.65686 8.06445C6.65686 8.50195 7.01917 8.85059 7.43616 8.85059Z",fill:"currentColor"})),n8=e=>e?.blockExplorers?.default?.url,n9=()=>c.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,"Link"),c.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM12.7158 12.1416C13.2432 12.1416 13.5684 11.7549 13.5684 11.1836V7.19336C13.5684 6.44629 13.1377 6.05957 12.417 6.05957H8.40918C7.8291 6.05957 7.45117 6.38477 7.45117 6.91211C7.45117 7.43945 7.8291 7.77344 8.40918 7.77344H9.69238L10.7207 7.63281L9.53418 8.67871L6.73047 11.4912C6.53711 11.6758 6.41406 11.9395 6.41406 12.2031C6.41406 12.7832 6.85352 13.1699 7.39844 13.1699C7.68848 13.1699 7.92578 13.0732 8.1543 12.8623L10.9316 10.0762L11.9775 8.89844L11.8545 9.98828V11.1836C11.8545 11.7725 12.1885 12.1416 12.7158 12.1416Z",fill:"currentColor"})),re=()=>c.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,"Cancel"),c.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM7.29297 13.3018C7.58301 13.3018 7.81152 13.2139 7.99609 13.0205L10 11.0166L12.0127 13.0205C12.1973 13.2051 12.4258 13.3018 12.707 13.3018C13.2432 13.3018 13.6562 12.8887 13.6562 12.3525C13.6562 12.0977 13.5508 11.8691 13.3662 11.6934L11.3535 9.67188L13.375 7.6416C13.5596 7.44824 13.6562 7.22852 13.6562 6.98242C13.6562 6.44629 13.2432 6.0332 12.7158 6.0332C12.4346 6.0332 12.2148 6.12109 12.0215 6.31445L10 8.32715L7.9873 6.32324C7.80273 6.12988 7.58301 6.04199 7.29297 6.04199C6.76562 6.04199 6.35254 6.45508 6.35254 6.99121C6.35254 7.2373 6.44922 7.46582 6.63379 7.6416L8.65527 9.67188L6.63379 11.6934C6.44922 11.8691 6.35254 12.1064 6.35254 12.3525C6.35254 12.8887 6.76562 13.3018 7.29297 13.3018Z",fill:"currentColor"})),rt=()=>c.createElement("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,"Success"),c.createElement("path",{d:"M10 19.4443C15.0977 19.4443 19.2812 15.252 19.2812 10.1543C19.2812 5.06543 15.0889 0.873047 10 0.873047C4.90234 0.873047 0.71875 5.06543 0.71875 10.1543C0.71875 15.252 4.91113 19.4443 10 19.4443ZM10 17.1328C6.1416 17.1328 3.03906 14.0215 3.03906 10.1543C3.03906 6.2959 6.13281 3.18457 10 3.18457C13.8584 3.18457 16.9697 6.2959 16.9697 10.1543C16.9785 14.0215 13.8672 17.1328 10 17.1328ZM9.07715 14.3379C9.4375 14.3379 9.7627 14.1533 9.97363 13.8369L13.7441 8.00977C13.8848 7.79883 13.9814 7.5791 13.9814 7.36816C13.9814 6.84961 13.5244 6.48926 13.0322 6.48926C12.707 6.48926 12.4258 6.66504 12.2148 7.0166L9.05957 12.0967L7.5918 10.2949C7.37207 10.0225 7.13477 9.9082 6.84473 9.9082C6.33496 9.9082 5.92188 10.3125 5.92188 10.8223C5.92188 11.0684 6.00098 11.2793 6.18555 11.5078L8.1543 13.8545C8.40918 14.1709 8.70801 14.3379 9.07715 14.3379Z",fill:"currentColor"})),rn=e=>{switch(e){case"pending":default:return e9;case"confirmed":return rt;case"failed":return re}};function rr({tx:e}){let t=eJ(),n=rn(e.status),r="failed"===e.status?"error":"accentColor",{chain:a}=(0,g.m)(),o="confirmed"===e.status?"Confirmed":"failed"===e.status?"Failed":"Pending",i=n8(a);return c.createElement(c.Fragment,null,c.createElement(e1,{...i?{as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:e$({active:"shrink"}),href:`${i}/tx/${e.hash}`,rel:"noreferrer noopener",target:"_blank",transition:"default"}:{},color:"modalText",display:"flex",flexDirection:"row",justifyContent:"space-between",padding:"8",width:"full"},c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"row",gap:t?"16":"14"},c.createElement(e1,{color:r},c.createElement(n,null)),c.createElement(e1,{display:"flex",flexDirection:"column",gap:t?"3":"1"},c.createElement(e1,null,c.createElement(nM,{color:"modalText",font:"body",size:t?"16":"14",weight:"bold"},e?.description)),c.createElement(e1,null,c.createElement(nM,{color:"pending"===e.status?"modalTextSecondary":r,font:"body",size:"14",weight:t?"medium":"regular"},o)))),i&&c.createElement(e1,{alignItems:"center",color:"modalTextDim",display:"flex"},c.createElement(n9,null))))}function ra({address:e}){let t=t9(),n=function(){let e=t8(),{address:t}=(0,g.m)(),n=t6();return(0,c.useCallback)(()=>{if(!t||!n)throw Error("No address or chain ID found");e.clearTransactions(t,n)},[e,t,n])}(),{chain:r}=(0,g.m)(),a=n8(r),o=t.slice(0,3),i=o.length>0,s=eJ(),{appName:l}=(0,c.useContext)(nr),{i18n:u}=(0,c.useContext)(tu);return c.createElement(c.Fragment,null,c.createElement(e1,{display:"flex",flexDirection:"column",gap:"10",paddingBottom:"2",paddingTop:"16",paddingX:s?"8":"18"},i&&c.createElement(e1,{paddingBottom:s?"4":"0",paddingTop:"8",paddingX:s?"12":"6"},c.createElement(e1,{display:"flex",justifyContent:"space-between"},c.createElement(nM,{color:"modalTextSecondary",size:s?"16":"14",weight:"semibold"},u.t("profile.transactions.recent.title")),c.createElement(e1,{style:{marginBottom:-6,marginLeft:-10,marginRight:-10,marginTop:-6}},c.createElement(e1,{as:"button",background:{hover:"profileForeground"},borderRadius:"actionButton",className:e$({active:"shrink"}),onClick:n,paddingX:s?"8":"12",paddingY:s?"4":"5",transition:"default",type:"button"},c.createElement(nM,{color:"modalTextSecondary",size:s?"16":"14",weight:"semibold"},u.t("profile.transactions.clear.label")))))),c.createElement(e1,{display:"flex",flexDirection:"column",gap:"4"},i?o.map(e=>c.createElement(rr,{key:e.hash,tx:e})):c.createElement(c.Fragment,null,c.createElement(e1,{padding:s?"12":"8"},c.createElement(nM,{color:"modalTextDim",size:s?"16":"14",weight:s?"medium":"bold"},l?u.t("profile.transactions.description",{appName:l}):u.t("profile.transactions.description_fallback"))),s&&c.createElement(e1,{background:"generalBorderDim",height:"1",marginX:"12",marginY:"8"})))),a&&c.createElement(e1,{paddingBottom:"18",paddingX:s?"8":"18"},c.createElement(e1,{alignItems:"center",as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:e$({active:"shrink"}),color:"modalTextDim",display:"flex",flexDirection:"row",href:`${a}/address/${e}`,justifyContent:"space-between",paddingX:"8",paddingY:"12",rel:"noreferrer noopener",style:{willChange:"transform"},target:"_blank",transition:"default",width:"full",...s?{paddingLeft:"12"}:{}},c.createElement(nM,{color:"modalText",font:"body",size:s?"16":"14",weight:s?"semibold":"bold"},u.t("profile.explorer.label")),c.createElement(n9,null))))}function ro({action:e,icon:t,label:n,testId:r,url:a}){let o=eJ();return c.createElement(e1,{...a?{as:"a",href:a,rel:"noreferrer noopener",target:"_blank"}:{as:"button",type:"button"},background:{base:"profileAction",...o?{}:{hover:"profileActionHover"}},borderRadius:"menuButton",boxShadow:"profileDetailsAction",className:e$({active:"shrinkSm",hover:o?void 0:"grow"}),display:"flex",onClick:e,padding:o?"6":"8",style:{willChange:"transform"},testId:r,transition:"default",width:"full"},c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",gap:"1",justifyContent:"center",paddingTop:"2",width:"full"},c.createElement(e1,{color:"modalText",height:"max"},t),c.createElement(e1,null,c.createElement(nM,{color:"modalText",size:o?"12":"13",weight:"semibold"},n))))}function ri({address:e,ensAvatar:t,ensName:n,balance:r,onClose:a,onDisconnect:o}){let i=(0,c.useContext)(nd),[s,l]=(0,c.useState)(!1),u=(0,c.useCallback)(()=>{e&&(navigator.clipboard.writeText(e),l(!0))},[e]);if(!e)return null;let d=n?n2(n):n3(e),f=r?.formatted,p=f?n6(Number.parseFloat(f)):void 0,h="rk_profile_title",m=eJ(),{i18n:g}=(0,c.useContext)(tu);return c.createElement(c.Fragment,null,c.createElement(e1,{display:"flex",flexDirection:"column"},c.createElement(e1,{background:"profileForeground",padding:"16"},c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",gap:m?"16":"12",justifyContent:"center",margin:"8",style:{textAlign:"center"}},c.createElement(e1,{style:{position:"absolute",right:16,top:16,willChange:"transform"}},c.createElement(nF,{onClose:a}))," ",c.createElement(e1,{marginTop:m?"24":"0"},c.createElement(tr,{address:e,imageUrl:t,size:m?82:74})),c.createElement(e1,{display:"flex",flexDirection:"column",gap:m?"4":"0",textAlign:"center"},c.createElement(e1,{textAlign:"center"},c.createElement(nM,{as:"h1",color:"modalText",id:h,size:m?"20":"18",weight:"heavy"},d)),!!r&&c.createElement(e1,{textAlign:"center"},c.createElement(nM,{as:"h1",color:"modalTextSecondary",id:h,size:m?"16":"14",weight:"semibold"},p," ",r.symbol)))),c.createElement(e1,{display:"flex",flexDirection:"row",gap:"8",margin:"2",marginTop:"16"},c.createElement(ro,{action:u,icon:s?c.createElement(n7,null):c.createElement(n5,null),label:s?g.t("profile.copy_address.copied"):g.t("profile.copy_address.label")}),c.createElement(ro,{action:o,icon:c.createElement(n4,null),label:g.t("profile.disconnect.label"),testId:"disconnect-button"}))),i&&c.createElement(c.Fragment,null,c.createElement(e1,{background:"generalBorder",height:"1",marginTop:"-1"}),c.createElement(e1,null,c.createElement(ra,{address:e})))))}function rs({onClose:e,open:t}){let{address:n}=(0,g.m)(),{balance:r,ensAvatar:a,ensName:o}=t1({address:n,includeBalance:t}),{disconnect:i}=F();return n?c.createElement(c.Fragment,null,n&&c.createElement(nJ,{onClose:e,open:t,titleId:"rk_account_modal_title"},c.createElement(nX,{bottomSheetOnMobile:!0,padding:"0"},c.createElement(ri,{address:n,ensAvatar:a,ensName:o,balance:r,onClose:e,onDisconnect:i})))):null}var rl=({size:e})=>c.createElement("svg",{fill:"none",height:e,viewBox:"0 0 28 28",width:e,xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,"Disconnect"),c.createElement("path",{d:"M6.742 22.195h8.367c1.774 0 2.743-.968 2.743-2.758V16.11h-2.016v3.11c0 .625-.305.96-.969.96H6.984c-.664 0-.968-.335-.968-.96V7.984c0-.632.304-.968.968-.968h7.883c.664 0 .969.336.969.968v3.133h2.016v-3.36c0-1.78-.97-2.757-2.743-2.757H6.742C4.97 5 4 5.977 4 7.758v11.68c0 1.789.969 2.757 2.742 2.757Zm5.438-7.703h7.601l1.149-.07-.602.406-1.008.938a.816.816 0 0 0-.258.593c0 .407.313.782.758.782.227 0 .39-.086.547-.243l2.492-2.593c.235-.235.313-.47.313-.711 0-.242-.078-.477-.313-.719l-2.492-2.586c-.156-.156-.32-.25-.547-.25-.445 0-.758.367-.758.781 0 .227.094.446.258.594l1.008.945.602.407-1.149-.079H12.18a.904.904 0 0 0 0 1.805Z",fill:"currentColor"})),rc=c.forwardRef(({children:e,currentlySelected:t=!1,onClick:n,testId:r,...a},o)=>{let i=eJ();return c.createElement(e1,{as:"button",borderRadius:"menuButton",disabled:t,display:"flex",onClick:n,ref:o,testId:r,type:"button"},c.createElement(e1,{borderRadius:"menuButton",className:[i?"v9horb0":void 0,!t&&e$({active:"shrink"})],padding:i?"8":"6",transition:"default",width:"full",...t?{background:"accentColor",borderColor:"selectedOptionBorder",borderStyle:"solid",borderWidth:"1",boxShadow:"selectedOption",color:"accentColorForeground"}:{background:{hover:"menuItemBackground"},color:"modalText",transition:"default"},...a},e))});rc.displayName="MenuButton";var ru=({chainId:e,currentChainId:t,switchChain:n,chainIconSize:r,isLoading:a,src:o,name:i,iconBackground:s,idx:l})=>{let u=eJ(),{i18n:d}=(0,c.useContext)(tu),f=tW(),p=t===e;return c.createElement(c.Fragment,null,c.createElement(rc,{currentlySelected:p,onClick:p?void 0:()=>n({chainId:e}),testId:`chain-option-${e}`},c.createElement(e1,{fontFamily:"body",fontSize:"16",fontWeight:"bold"},c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:r},o&&c.createElement(e1,{height:"full",marginRight:"8"},c.createElement(e4,{alt:i,background:s,borderRadius:"full",height:r,src:o,width:r,testId:`chain-option-${e}-icon`})),c.createElement("div",null,i??i)),p&&c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},c.createElement(nM,{color:"accentColorForeground",size:"14",weight:"medium"},d.t("chains.connected")),c.createElement(e1,{background:"connectionIndicator",borderColor:"selectedOptionBorder",borderRadius:"full",borderStyle:"solid",borderWidth:"1",height:"8",marginLeft:"8",width:"8"})),a&&c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},c.createElement(nM,{color:"modalText",size:"14",weight:"medium"},d.t("chains.confirm")),c.createElement(e1,{background:"standby",borderRadius:"full",height:"8",marginLeft:"8",width:"8"}))))),u&&l<f.length-1&&c.createElement(e1,{background:"generalBorderDim",height:"1",marginX:"8"}))};function rd({onClose:e,open:t}){let{chainId:n}=(0,g.m)(),{chains:r}=(0,b.Z)(),[a,o]=(0,c.useState)(null),{switchChain:i}=function(e={}){let{mutation:t}=e,n=(0,b.Z)(e),{mutate:r,mutateAsync:a,...o}=(0,P.D)({...t,mutationFn:e=>eF(n,e),mutationKey:["switchChain"]});return{...o,chains:function(e={}){let t=(0,b.Z)(e);return(0,c.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e._internal.chains.subscribe((e,t)=>{n(e,t)})})(t,{onChange:e}),()=>e_(t),()=>e_(t))}({config:n}),switchChain:r,switchChainAsync:a}}({mutation:{onMutate:({chainId:e})=>{o(e)},onSuccess:()=>{a&&o(null)},onError:()=>{a&&o(null)},onSettled:()=>{e()}}}),{i18n:s}=(0,c.useContext)(tu),{disconnect:l}=F(),u="rk_chain_modal_title",d=eJ(),f=r.some(e=>e.id===n),p=d?"36":"28",h=tW();return n?c.createElement(nJ,{onClose:e,open:t,titleId:u},c.createElement(nX,{bottomSheetOnMobile:!0,paddingBottom:"0"},c.createElement(e1,{display:"flex",flexDirection:"column",gap:"14"},c.createElement(e1,{display:"flex",flexDirection:"row",justifyContent:"space-between"},d&&c.createElement(e1,{width:"30"}),c.createElement(e1,{paddingBottom:"0",paddingLeft:"8",paddingTop:"4"},c.createElement(nM,{as:"h1",color:"modalText",id:u,size:d?"20":"18",weight:"heavy"},s.t("chains.title"))),c.createElement(nF,{onClose:e})),!f&&c.createElement(e1,{marginX:"8",textAlign:d?"center":"left"},c.createElement(nM,{color:"modalTextSecondary",size:"14",weight:"medium"},s.t("chains.wrong_network"))),c.createElement(e1,{className:d?"_18dqw9x1":"_18dqw9x0",display:"flex",flexDirection:"column",gap:"4",padding:"2",paddingBottom:"16"},h.map(({iconBackground:e,iconUrl:t,id:r,name:o},s)=>c.createElement(ru,{key:r,chainId:r,currentChainId:n,switchChain:i,chainIconSize:p,isLoading:a===r,src:t,name:o,iconBackground:e,idx:s})),!f&&c.createElement(c.Fragment,null,c.createElement(e1,{background:"generalBorderDim",height:"1",marginX:"8"}),c.createElement(rc,{onClick:()=>l(),testId:"chain-option-disconnect"},c.createElement(e1,{color:"error",fontFamily:"body",fontSize:"16",fontWeight:"bold"},c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:p},c.createElement(e1,{alignItems:"center",color:"error",height:p,justifyContent:"center",marginRight:"8"},c.createElement(rl,{size:Number(p)})),c.createElement("div",null,s.t("chains.disconnect"))))))))))):null}var rf=({children:e,href:t})=>c.createElement(e1,{as:"a",color:"accentColor",href:t,rel:"noreferrer",target:"_blank"},e),rp=({children:e})=>c.createElement(nM,{color:"modalTextSecondary",size:"12",weight:"medium"},e);function rh({compactModeEnabled:e=!1,getWallet:t}){let{disclaimer:n,learnMoreUrl:r}=(0,c.useContext)(nr),{i18n:a}=(0,c.useContext)(tu);return c.createElement(c.Fragment,null,c.createElement(e1,{alignItems:"center",color:"accentColor",display:"flex",flexDirection:"column",height:"full",justifyContent:"space-around"},c.createElement(e1,{marginBottom:"10"},!e&&c.createElement(nM,{color:"modalText",size:"18",weight:"heavy"},a.t("intro.title"))),c.createElement(e1,{display:"flex",flexDirection:"column",gap:"32",justifyContent:"center",marginY:"20",style:{maxWidth:312}},c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},c.createElement(e1,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},c.createElement(nS,null)),c.createElement(e1,{display:"flex",flexDirection:"column",gap:"4"},c.createElement(nM,{color:"modalText",size:"14",weight:"bold"},a.t("intro.digital_asset.title")),c.createElement(nM,{color:"modalTextSecondary",size:"14",weight:"medium"},a.t("intro.digital_asset.description")))),c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},c.createElement(e1,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},c.createElement(nP,null)),c.createElement(e1,{display:"flex",flexDirection:"column",gap:"4"},c.createElement(nM,{color:"modalText",size:"14",weight:"bold"},a.t("intro.login.title")),c.createElement(nM,{color:"modalTextSecondary",size:"14",weight:"medium"},a.t("intro.login.description"))))),c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",margin:"10"},c.createElement(nN,{label:a.t("intro.get.label"),onClick:t}),c.createElement(e1,{as:"a",className:e$({active:"shrink",hover:"grow"}),display:"block",href:r,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},c.createElement(nM,{color:"accentColor",size:"14",weight:"bold"},a.t("intro.learn_more.label")))),n&&!e&&c.createElement(e1,{marginBottom:"8",marginTop:"12",textAlign:"center"},c.createElement(n,{Link:rf,Text:rp}))))}var rm=()=>c.createElement("svg",{fill:"none",height:"17",viewBox:"0 0 11 17",width:"11",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,"Back"),c.createElement("path",{d:"M0.99707 8.6543C0.99707 9.08496 1.15527 9.44531 1.51562 9.79688L8.16016 16.3096C8.43262 16.5732 8.74902 16.7051 9.13574 16.7051C9.90918 16.7051 10.5508 16.0811 10.5508 15.3076C10.5508 14.9121 10.3838 14.5605 10.0938 14.2705L4.30176 8.64551L10.0938 3.0293C10.3838 2.74805 10.5508 2.3877 10.5508 2.00098C10.5508 1.23633 9.90918 0.603516 9.13574 0.603516C8.74902 0.603516 8.43262 0.735352 8.16016 0.999023L1.51562 7.51172C1.15527 7.85449 1.00586 8.21484 0.99707 8.6543Z",fill:"currentColor"})),rg=()=>c.createElement("svg",{fill:"none",height:"12",viewBox:"0 0 8 12",width:"8",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,"Info"),c.createElement("path",{d:"M3.64258 7.99609C4.19336 7.99609 4.5625 7.73828 4.68555 7.24609C4.69141 7.21094 4.70312 7.16406 4.70898 7.13477C4.80859 6.60742 5.05469 6.35547 6.04492 5.76367C7.14648 5.10156 7.67969 4.3457 7.67969 3.24414C7.67969 1.39844 6.17383 0.255859 3.95898 0.255859C2.32422 0.255859 1.05859 0.894531 0.548828 1.86719C0.396484 2.14844 0.320312 2.44727 0.320312 2.74023C0.314453 3.37305 0.742188 3.79492 1.42188 3.79492C1.91406 3.79492 2.33594 3.54883 2.53516 3.11523C2.78711 2.47656 3.23242 2.21289 3.83594 2.21289C4.55664 2.21289 5.10742 2.65234 5.10742 3.29102C5.10742 3.9707 4.7793 4.29883 3.81836 4.87891C3.02148 5.36523 2.50586 5.92773 2.50586 6.76562V6.90039C2.50586 7.55664 2.96289 7.99609 3.64258 7.99609ZM3.67188 11.4473C4.42773 11.4473 5.04297 10.8672 5.04297 10.1406C5.04297 9.41406 4.42773 8.83984 3.67188 8.83984C2.91602 8.83984 2.30664 9.41406 2.30664 10.1406C2.30664 10.8672 2.91602 11.4473 3.67188 11.4473Z",fill:"currentColor"})),ry=({"aria-label":e="Info",onClick:t})=>{let n=eJ();return c.createElement(e1,{alignItems:"center","aria-label":e,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:n?"0":"1",className:e$({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:n?"30":"28",justifyContent:"center",onClick:t,style:{willChange:"transform"},transition:"default",type:"button",width:n?"30":"28"},c.createElement(rg,null))},rb=e=>{let t=(0,c.useRef)(null),n=(0,c.useContext)(na),r=e5(e);return(0,c.useEffect)(()=>{if(n&&t.current&&r)return function(e,t){let n;rv++;let r=[15,20,25,35,45],a=[],o=!1,i=0,s=0,l=rw();!function e(){o&&a.length<35&&function(){let e=r[Math.floor(Math.random()*r.length)],n=360*Math.random(),o=s-e/2,c=i-e/2,u=document.createElement("div");u.innerHTML=`<img src="${t}" width="${e}" height="${e}" style="border-radius: 25%">`,u.setAttribute("style",`position:absolute;will-change:transform;top:${o}px;left:${c}px;transform:rotate(${n}deg)`),l.appendChild(u),a.push({direction:.5>=Math.random()?-1:1,element:u,left:c,size:e,speedHorz:10*Math.random(),speedUp:25*Math.random(),spinSpeed:35*Math.random()*(.5>=Math.random()?-1:1),spinVal:n,top:o})}(),function(){for(let e of a)e.left=e.left-e.speedHorz*e.direction,e.top=e.top-e.speedUp,e.speedUp=Math.min(e.size,e.speedUp-1),e.spinVal=e.spinVal+e.spinSpeed,e.top>=Math.max(window.innerHeight,document.body.clientHeight)+e.size&&(a=a.filter(t=>t!==e),e.element.remove()),e.element.setAttribute("style",`position:absolute;will-change:transform;top:${e.top}px;left:${e.left}px;transform:rotate(${e.spinVal}deg)`)}(),n=requestAnimationFrame(e)}();let c="ontouchstart"in window||navigator.msMaxTouchPoints,u=c?"touchstart":"mousedown",d=c?"touchend":"mouseup",f=c?"touchmove":"mousemove",p=e=>{"touches"in e?(i=e.touches?.[0].clientX,s=e.touches?.[0].clientY):(i=e.clientX,s=e.clientY)},h=e=>{p(e),o=!0},m=()=>{o=!1};return e.addEventListener(f,p,{passive:!1}),e.addEventListener(u,h),e.addEventListener(d,m),e.addEventListener("mouseleave",m),()=>{e.removeEventListener(f,p),e.removeEventListener(u,h),e.removeEventListener(d,m),e.removeEventListener("mouseleave",m);let t=setInterval(()=>{n&&0===a.length&&(cancelAnimationFrame(n),clearInterval(t),0==--rv&&l.remove())},500)}}(t.current,r)},[n,r]),t},rw=()=>{let e="_rk_coolMode",t=document.getElementById(e);if(t)return t;let n=document.createElement("div");return n.setAttribute("id",e),n.setAttribute("style","overflow:hidden;position:fixed;height:100%;top:0;left:0;right:0;bottom:0;pointer-events:none;z-index:2147483647"),document.body.appendChild(n),n},rv=0,rC=({as:e="button",currentlySelected:t=!1,iconBackground:n,iconUrl:r,name:a,onClick:o,ready:i,recent:s,testId:l,isRainbowKitConnector:u,...d})=>{let f=rb(r),[p,h]=c.useState(!1),{i18n:m}=c.useContext(tu);return c.createElement(e1,{display:"flex",flexDirection:"column",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),ref:f},c.createElement(e1,{as:e,borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:t?void 0:["g5kl0l0",e$({active:"shrink"})],disabled:t,onClick:o,padding:"5",style:{willChange:"transform"},testId:l,transition:"default",width:"full",...t?{background:"accentColor",borderColor:"selectedOptionBorder",boxShadow:"selectedWallet"}:{background:{hover:"menuItemBackground"}},...d},c.createElement(e1,{color:t?"accentColorForeground":"modalText",disabled:!i,fontFamily:"body",fontSize:"16",fontWeight:"bold",transition:"default"},c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"row",gap:"12"},c.createElement(e4,{background:n,...!p&&u?{borderColor:"actionButtonBorder"}:{},useAsImage:!u,borderRadius:"6",height:"28",src:r,width:"28"}),c.createElement(e1,null,c.createElement(e1,{style:{marginTop:s?-2:void 0},maxWidth:"200"},a),s&&c.createElement(nM,{color:t?"accentColorForeground":"accentColor",size:"12",style:{lineHeight:1,marginTop:-1},weight:"medium"},m.t("connect.recent")))))))};rC.displayName="ModalSelection";var rA="rk-latest-id",rE=(e,t=1)=>{let n=e.replace("#","");3===n.length&&(n=`${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}`);let r=Number.parseInt(n.substring(0,2),16),a=Number.parseInt(n.substring(2,4),16),o=Number.parseInt(n.substring(4,6),16);return t>1&&t<=100&&(t/=100),`rgba(${r},${a},${o},${t})`},rx=e=>e?[rE(e,.2),rE(e,.14),rE(e,.1)]:null,rk=e=>/^#([0-9a-f]{3}){1,2}$/i.test(e),rB=async()=>(await n.e(9422).then(n.bind(n,49422))).default,rj=()=>c.createElement(e4,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:rB,width:"48"}),rI=async()=>(await n.e(9709).then(n.bind(n,39709))).default,rS=()=>c.createElement(e4,{background:"#e3a5e8",borderColor:"generalBorder",borderRadius:"10",height:"48",src:rI,width:"48"}),rT=async()=>(await n.e(5274).then(n.bind(n,95274))).default,rO=()=>c.createElement(e4,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:rT,width:"48"}),rP=async()=>(await n.e(7696).then(n.bind(n,37696))).default,rM=()=>c.createElement(e4,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:rP,width:"48"}),rD=(e,t)=>{let n=Array.prototype.slice.call(eU.create(e,{errorCorrectionLevel:t}).modules.data,0),r=Math.sqrt(n.length);return n.reduce((e,t,n)=>(n%r==0?e.push([t]):e[e.length-1].push(t))&&e,[])};function rN({ecl:e="M",logoBackground:t,logoMargin:n=10,logoSize:r=50,logoUrl:a,size:o=200,uri:i}){let s=o-2*Number.parseInt("20",10),l=(0,c.useMemo)(()=>{let t=[],n=rD(i,e),a=s/n.length;[{x:0,y:0},{x:1,y:0},{x:0,y:1}].forEach(({x:e,y:r})=>{let o=(n.length-7)*a*e,i=(n.length-7)*a*r;for(let n=0;n<3;n++)t.push(c.createElement("rect",{fill:n%2!=0?"white":"black",height:a*(7-2*n),key:`${n}-${e}-${r}`,rx:-((n-2)*5)+(0===n?2:0),ry:-((n-2)*5)+(0===n?2:0),width:a*(7-2*n),x:o+a*n,y:i+a*n}))});let o=Math.floor((r+25)/a),l=n.length/2-o/2,u=n.length/2+o/2-1;return n.forEach((e,r)=>{e.forEach((e,o)=>{!n[r][o]||r<7&&o<7||r>n.length-8&&o<7||r<7&&o>n.length-8||r>l&&r<u&&o>l&&o<u||t.push(c.createElement("circle",{cx:r*a+a/2,cy:o*a+a/2,fill:"black",key:`circle-${r}-${o}`,r:a/3}))})}),t},[e,r,s,i]),u=s/2-r/2,d=r+2*n;return c.createElement(e1,{borderColor:"generalBorder",borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:"_1vwt0cg0",padding:"20",width:"max"},c.createElement(e1,{style:{height:s,userSelect:"none",width:s},userSelect:"none"},c.createElement(e1,{display:"flex",justifyContent:"center",position:"relative",style:{height:0,top:u,width:s},width:"full"},c.createElement(e4,{background:t,borderColor:{custom:"rgba(0, 0, 0, 0.06)"},borderRadius:"13",height:r,src:a,width:r})),c.createElement("svg",{height:s,style:{all:"revert"},width:s},c.createElement("title",null,"QR Code"),c.createElement("defs",null,c.createElement("clipPath",{id:"clip-wrapper"},c.createElement("rect",{height:d,width:d})),c.createElement("clipPath",{id:"clip-logo"},c.createElement("rect",{height:r,width:r}))),c.createElement("rect",{fill:"transparent",height:s,width:s}),l)))}var rR=async()=>{switch(np()){case"Arc":return(await n.e(4596).then(n.bind(n,64596))).default;case"Brave":return(await n.e(4874).then(n.bind(n,24874))).default;case"Chrome":return(await n.e(2395).then(n.bind(n,2395))).default;case"Edge":return(await n.e(2306).then(n.bind(n,12306))).default;case"Firefox":return(await n.e(2720).then(n.bind(n,82720))).default;case"Opera":return(await n.e(9078).then(n.bind(n,19078))).default;case"Safari":return(await n.e(248).then(n.bind(n,20248))).default;default:return(await n.e(3385).then(n.bind(n,33385))).default}},rF=async()=>{switch(nm()){case"Windows":return(await n.e(5858).then(n.bind(n,75858))).default;case"macOS":return(await n.e(8990).then(n.bind(n,8990))).default;default:return(await n.e(4875).then(n.bind(n,74875))).default}};function rL({getWalletDownload:e,compactModeEnabled:t}){let n=nB().filter(e=>e.isRainbowKitConnector).splice(0,5),{i18n:r}=(0,c.useContext)(tu);return c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginTop:"18",width:"full"},c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",gap:"28",height:"full",width:"full"},n?.filter(e=>e.extensionDownloadUrl||e.desktopDownloadUrl||e.qrCode&&e.downloadUrls?.qrCode).map(t=>{let{downloadUrls:n,iconBackground:a,iconUrl:o,id:i,name:s,qrCode:l}=t,u=n?.qrCode&&l,d=!!t.extensionDownloadUrl,f=n?.qrCode&&d,p=n?.qrCode&&!!t.desktopDownloadUrl;return c.createElement(e1,{alignItems:"center",display:"flex",gap:"16",justifyContent:"space-between",key:t.id,width:"full"},c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},c.createElement(e4,{background:a,borderColor:"actionButtonBorder",borderRadius:"10",height:"48",src:o,width:"48"}),c.createElement(e1,{display:"flex",flexDirection:"column",gap:"2"},c.createElement(nM,{color:"modalText",size:"14",weight:"bold"},s),c.createElement(nM,{color:"modalTextSecondary",size:"14",weight:"medium"},f?r.t("get.mobile_and_extension.description"):p?r.t("get.mobile_and_desktop.description"):u?r.t("get.mobile.description"):d?r.t("get.extension.description"):null))),c.createElement(e1,{display:"flex",flexDirection:"column",gap:"4"},c.createElement(nN,{label:r.t("get.action.label"),onClick:()=>e(i),type:"secondary"})))})),c.createElement(e1,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"column",gap:"8",justifyContent:"space-between",marginBottom:"4",paddingY:"8",style:{maxWidth:275,textAlign:"center"}},c.createElement(nM,{color:"modalText",size:"14",weight:"bold"},r.t("get.looking_for.title")),c.createElement(nM,{color:"modalTextSecondary",size:"14",weight:"medium"},t?r.t("get.looking_for.desktop.compact_description"):r.t("get.looking_for.desktop.wide_description"))))}function r_({changeWalletStep:e,compactModeEnabled:t,connectionError:n,onClose:r,qrCodeUri:a,reconnect:o,wallet:i}){let{downloadUrls:s,iconBackground:l,iconUrl:u,name:d,qrCode:f,ready:p,showWalletConnectModal:h,getDesktopUri:m}=i,g=!!m,y=nf(),{i18n:b}=(0,c.useContext)(tu),w=!!i.extensionDownloadUrl,v=s?.qrCode&&w,C=s?.qrCode&&!!i.desktopDownloadUrl,A=f&&a,E=async()=>{let e=await m?.();window.open(e,y?"_blank":"_self")},x=h?{description:t?b.t("connect.walletconnect.description.compact"):b.t("connect.walletconnect.description.full"),label:b.t("connect.walletconnect.open.label"),onClick:()=>{r(),h()}}:A?{description:b.t("connect.secondary_action.get.description",{wallet:d}),label:b.t("connect.secondary_action.get.label"),onClick:()=>e(v||C?"DOWNLOAD_OPTIONS":"DOWNLOAD")}:null,{width:k}=no();return c.createElement(e1,{display:"flex",flexDirection:"column",height:"full",width:"full"},A?c.createElement(e1,{alignItems:"center",display:"flex",height:"full",justifyContent:"center"},c.createElement(rN,{logoBackground:l,logoSize:t?60:72,logoUrl:u,size:t?318:k&&k<768?Math.max(280,Math.min(k-308,382)):382,uri:a})):c.createElement(e1,{alignItems:"center",display:"flex",justifyContent:"center",style:{flexGrow:1}},c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8"},c.createElement(e1,{borderRadius:"10",height:"44",overflow:"hidden"},c.createElement(e4,{useAsImage:!i.isRainbowKitConnector,height:"44",src:u,width:"44"})),c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",gap:"4",paddingX:"32",style:{textAlign:"center"}},c.createElement(nM,{color:"modalText",size:"18",weight:"bold"},p?b.t("connect.status.opening",{wallet:d}):w?b.t("connect.status.not_installed",{wallet:d}):b.t("connect.status.not_available",{wallet:d})),!p&&w?c.createElement(e1,{paddingTop:"20"},c.createElement(nN,{href:i.extensionDownloadUrl,label:b.t("connect.secondary_action.install.label"),type:"secondary"})):null,p&&!A&&c.createElement(c.Fragment,null,c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},c.createElement(nM,{color:"modalTextSecondary",size:"14",textAlign:"center",weight:"medium"},b.t("connect.status.confirm"))),c.createElement(e1,{alignItems:"center",color:"modalText",display:"flex",flexDirection:"row",height:"32",marginTop:"8"},n?c.createElement(nN,{label:b.t("connect.secondary_action.retry.label"),onClick:async()=>{g&&E(),o(i)}}):c.createElement(e1,{color:"modalTextSecondary"},c.createElement(e9,null))))))),c.createElement(e1,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"28",justifyContent:"space-between",marginTop:"12"},p&&x&&c.createElement(c.Fragment,null,c.createElement(nM,{color:"modalTextSecondary",size:"14",weight:"medium"},x.description),c.createElement(nN,{label:x.label,onClick:x.onClick,type:"secondary"}))))}var rU=({actionLabel:e,description:t,iconAccent:n,iconBackground:r,iconUrl:a,isCompact:o,onAction:i,title:s,url:l,variant:u})=>{let d="browser"===u,f=!d&&n&&rx(n);return c.createElement(e1,{alignItems:"center",borderRadius:"13",display:"flex",justifyContent:"center",overflow:"hidden",paddingX:o?"18":"44",position:"relative",style:{flex:1,isolation:"isolate"},width:"full"},c.createElement(e1,{borderColor:"actionButtonBorder",borderRadius:"13",borderStyle:"solid",borderWidth:"1",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0",zIndex:1}}),d&&c.createElement(e1,{background:"downloadTopCardBackground",height:"full",position:"absolute",style:{zIndex:0},width:"full"},c.createElement(e1,{display:"flex",flexDirection:"row",justifyContent:"space-between",style:{bottom:"0",filter:"blur(20px)",left:"0",position:"absolute",right:"0",top:"0",transform:"translate3d(0, 0, 0)"}},c.createElement(e1,{style:{filter:"blur(100px)",marginLeft:-27,marginTop:-20,opacity:.6,transform:"translate3d(0, 0, 0)"}},c.createElement(e4,{borderRadius:"full",height:"200",src:a,width:"200"})),c.createElement(e1,{style:{filter:"blur(100px)",marginRight:0,marginTop:105,opacity:.6,overflow:"auto",transform:"translate3d(0, 0, 0)"}},c.createElement(e4,{borderRadius:"full",height:"200",src:a,width:"200"})))),!d&&f&&c.createElement(e1,{background:"downloadBottomCardBackground",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0"}},c.createElement(e1,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${f[0]} 0%, ${f[1]} 25%, rgba(0,0,0,0) 100%)`,height:564,left:-215,top:-197,transform:"translate3d(0, 0, 0)",width:564}}),c.createElement(e1,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${f[2]} 0%, rgba(0, 0, 0, 0) 100%)`,height:564,left:-1,top:-76,transform:"translate3d(0, 0, 0)",width:564}})),c.createElement(e1,{alignItems:"flex-start",display:"flex",flexDirection:"row",gap:"24",height:"max",justifyContent:"center",style:{zIndex:1}},c.createElement(e1,null,c.createElement(e4,{height:"60",src:a,width:"60",...r?{background:r,borderColor:"generalBorder",borderRadius:"10"}:null})),c.createElement(e1,{display:"flex",flexDirection:"column",gap:"4",style:{flex:1},width:"full"},c.createElement(nM,{color:"modalText",size:"14",weight:"bold"},s),c.createElement(nM,{color:"modalTextSecondary",size:"14",weight:"medium"},t),c.createElement(e1,{marginTop:"14",width:"max"},c.createElement(nN,{href:l,label:e,onClick:i,size:"medium"})))))};function rz({changeWalletStep:e,wallet:t}){let n=np(),r=nm(),a="compact"===(0,c.useContext)(nc),{desktop:o,desktopDownloadUrl:i,extension:s,extensionDownloadUrl:l,mobileDownloadUrl:u}=t,{i18n:d}=(0,c.useContext)(tu);return c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",marginBottom:"8",marginTop:"4",width:"full"},c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8",height:"full",justifyContent:"center",width:"full"},l&&c.createElement(rU,{actionLabel:d.t("get_options.extension.download.label",{browser:n}),description:d.t("get_options.extension.description"),iconUrl:rR,isCompact:a,onAction:()=>e(s?.instructions?"INSTRUCTIONS_EXTENSION":"CONNECT"),title:d.t("get_options.extension.title",{wallet:t.name,browser:n}),url:l,variant:"browser"}),i&&c.createElement(rU,{actionLabel:d.t("get_options.desktop.download.label",{platform:r}),description:d.t("get_options.desktop.description"),iconUrl:rF,isCompact:a,onAction:()=>e(o?.instructions?"INSTRUCTIONS_DESKTOP":"CONNECT"),title:d.t("get_options.desktop.title",{wallet:t.name,platform:r}),url:i,variant:"desktop"}),u&&c.createElement(rU,{actionLabel:d.t("get_options.mobile.download.label",{wallet:t.name}),description:d.t("get_options.mobile.description"),iconAccent:t.iconAccent,iconBackground:t.iconBackground,iconUrl:t.iconUrl,isCompact:a,onAction:()=>{e("DOWNLOAD")},title:d.t("get_options.mobile.title",{wallet:t.name}),variant:"app"})))}function rW({changeWalletStep:e,wallet:t}){let{downloadUrls:n,qrCode:r}=t,{i18n:a}=(0,c.useContext)(tu);return c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",width:"full"},c.createElement(e1,{style:{maxWidth:220,textAlign:"center"}},c.createElement(nM,{color:"modalTextSecondary",size:"14",weight:"semibold"},a.t("get_mobile.description"))),c.createElement(e1,{height:"full"},n?.qrCode?c.createElement(rN,{logoSize:0,size:268,uri:n.qrCode}):null),c.createElement(e1,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"34",justifyContent:"space-between",marginBottom:"12",paddingY:"8"},c.createElement(nN,{label:a.t("get_mobile.continue.label"),onClick:()=>e(r?.instructions?"INSTRUCTIONS_MOBILE":"CONNECT")})))}var rq={connect:()=>c.createElement(rj,null),create:()=>c.createElement(rS,null),install:e=>c.createElement(e4,{background:e.iconBackground,borderColor:"generalBorder",borderRadius:"10",height:"48",src:e.iconUrl,width:"48"}),refresh:()=>c.createElement(rO,null),scan:()=>c.createElement(rM,null)};function rG({connectWallet:e,wallet:t}){let{i18n:n}=(0,c.useContext)(tu);return c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},c.createElement(e1,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},t?.qrCode?.instructions?.steps.map((e,r)=>c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:r},c.createElement(e1,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},rq[e.step]?.(t)),c.createElement(e1,{display:"flex",flexDirection:"column",gap:"4"},c.createElement(nM,{color:"modalText",size:"14",weight:"bold"},n.t(e.title,void 0,{rawKeyIfTranslationMissing:!0})),c.createElement(nM,{color:"modalTextSecondary",size:"14",weight:"medium"},n.t(e.description,void 0,{rawKeyIfTranslationMissing:!0})))))),c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},c.createElement(nN,{label:n.t("get_instructions.mobile.connect.label"),onClick:()=>e(t)}),c.createElement(e1,{as:"a",className:e$({active:"shrink",hover:"grow"}),display:"block",href:t?.qrCode?.instructions?.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},c.createElement(nM,{color:"accentColor",size:"14",weight:"bold"},n.t("get_instructions.mobile.learn_more.label")))))}function rQ({wallet:e}){let{i18n:t}=(0,c.useContext)(tu);return c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},c.createElement(e1,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},e?.extension?.instructions?.steps.map((n,r)=>c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:r},c.createElement(e1,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},rq[n.step]?.(e)),c.createElement(e1,{display:"flex",flexDirection:"column",gap:"4"},c.createElement(nM,{color:"modalText",size:"14",weight:"bold"},t.t(n.title,void 0,{rawKeyIfTranslationMissing:!0})),c.createElement(nM,{color:"modalTextSecondary",size:"14",weight:"medium"},t.t(n.description,void 0,{rawKeyIfTranslationMissing:!0})))))),c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},c.createElement(nN,{label:t.t("get_instructions.extension.refresh.label"),onClick:window.location.reload.bind(window.location)}),c.createElement(e1,{as:"a",className:e$({active:"shrink",hover:"grow"}),display:"block",href:e?.extension?.instructions?.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},c.createElement(nM,{color:"accentColor",size:"14",weight:"bold"},t.t("get_instructions.extension.learn_more.label")))))}function rH({connectWallet:e,wallet:t}){let{i18n:n}=(0,c.useContext)(tu);return c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},c.createElement(e1,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},t?.desktop?.instructions?.steps.map((e,r)=>c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:r},c.createElement(e1,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},rq[e.step]?.(t)),c.createElement(e1,{display:"flex",flexDirection:"column",gap:"4"},c.createElement(nM,{color:"modalText",size:"14",weight:"bold"},n.t(e.title,void 0,{rawKeyIfTranslationMissing:!0})),c.createElement(nM,{color:"modalTextSecondary",size:"14",weight:"medium"},n.t(e.description,void 0,{rawKeyIfTranslationMissing:!0})))))),c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},c.createElement(nN,{label:n.t("get_instructions.desktop.connect.label"),onClick:()=>e(t)}),c.createElement(e1,{as:"a",className:e$({active:"shrink",hover:"grow"}),display:"block",href:t?.desktop?.instructions?.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},c.createElement(nM,{color:"accentColor",size:"14",weight:"bold"},n.t("get_instructions.desktop.learn_more.label")))))}function r$({onClose:e}){let t;let[n,r]=(0,c.useState)(),[a,o]=(0,c.useState)(),[i,s]=(0,c.useState)(),l=!!a?.qrCode&&i,[u,d]=(0,c.useState)(!1),f=(0,c.useContext)(nc)===nl.COMPACT,{disclaimer:p}=(0,c.useContext)(nr),{i18n:h}=(0,c.useContext)(tu),m=nf(),g=(0,c.useRef)(!1),{connector:y}=(0,c.useContext)(ni),b=nB(!y).filter(e=>e.ready||!!e.extensionDownloadUrl).sort((e,t)=>e.groupIndex-t.groupIndex),w=nB(),v=function(e,t){let n={};for(let r of e){let e=t(r);e&&(n[e]||(n[e]=[]),n[e].push(r))}return n}(b,e=>e.groupName),C=["Recommended","Other","Popular","More","Others","Installed"];(0,c.useEffect)(()=>{y&&!g.current&&(j("CONNECT"),k(y),g.current=!0)},[y]);let A=e=>{d(!1),e.ready&&e?.connect?.()?.catch(()=>{d(!0)})},E=async e=>{let t=b.find(t=>e.id===t.id);t?.getDesktopUri&&setTimeout(async()=>{let e=await t?.getDesktopUri?.();e&&window.open(e,m?"_blank":"_self")},0)},x=async e=>{let t=b.find(t=>e.id===t.id),n=await t?.getQrCodeUri?.();s(n),setTimeout(()=>{o(t),j("CONNECT")},n?0:50)},k=async e=>{var t;t=e.id,localStorage.setItem(rA,t),e.ready&&(x(e),E(e)),A(e),r(e.id),e.ready||(o(e),j(e?.extensionDownloadUrl?"DOWNLOAD_OPTIONS":"CONNECT"))},B=()=>{r(void 0),o(void 0),s(void 0)},j=(e,t=!1)=>{t&&"GET"===e&&"GET"===I?B():t||"GET"!==e?t||"CONNECT"!==e||S("CONNECT"):S("GET"),O(e)},[I,S]=(0,c.useState)("NONE"),[T,O]=(0,c.useState)("NONE"),P=null,M=null,D=null;(0,c.useEffect)(()=>{d(!1)},[T,a]);let N=!!(a?.extensionDownloadUrl&&a?.mobileDownloadUrl);switch(T){case"NONE":P=c.createElement(rh,{getWallet:()=>j("GET")});break;case"LEARN_COMPACT":P=c.createElement(rh,{compactModeEnabled:f,getWallet:()=>j("GET")}),M=h.t("intro.title"),D="NONE";break;case"GET":P=c.createElement(rL,{getWalletDownload:e=>{let t=w.find(t=>e===t.id),n=t?.downloadUrls?.qrCode,r=!!t?.desktopDownloadUrl,a=!!t?.extensionDownloadUrl;o(t),n&&(a||r)?j("DOWNLOAD_OPTIONS"):n?j("DOWNLOAD"):r?j("INSTRUCTIONS_DESKTOP"):j("INSTRUCTIONS_EXTENSION")},compactModeEnabled:f}),M=h.t("get.title"),D=f?"LEARN_COMPACT":"NONE";break;case"CONNECT":P=a&&c.createElement(r_,{changeWalletStep:j,compactModeEnabled:f,connectionError:u,onClose:e,qrCodeUri:i,reconnect:A,wallet:a}),M=l&&("WalletConnect"===a.name?h.t("connect_scan.fallback_title"):h.t("connect_scan.title",{wallet:a.name})),D=f?y?null:"NONE":null,t=f?y?()=>{}:B:()=>{};break;case"DOWNLOAD_OPTIONS":P=a&&c.createElement(rz,{changeWalletStep:j,wallet:a}),M=a&&h.t("get_options.short_title",{wallet:a.name}),D=y?"CONNECT":f?"NONE":I;break;case"DOWNLOAD":P=a&&c.createElement(rW,{changeWalletStep:j,wallet:a}),M=a&&h.t("get_mobile.title",{wallet:a.name}),D=N?"DOWNLOAD_OPTIONS":I;break;case"INSTRUCTIONS_MOBILE":P=a&&c.createElement(rG,{connectWallet:k,wallet:a}),M=a&&h.t("get_options.title",{wallet:f&&a.shortName||a.name}),D="DOWNLOAD";break;case"INSTRUCTIONS_EXTENSION":P=a&&c.createElement(rQ,{wallet:a}),M=a&&h.t("get_options.title",{wallet:f&&a.shortName||a.name}),D="DOWNLOAD_OPTIONS";break;case"INSTRUCTIONS_DESKTOP":P=a&&c.createElement(rH,{connectWallet:k,wallet:a}),M=a&&h.t("get_options.title",{wallet:f&&a.shortName||a.name}),D="DOWNLOAD_OPTIONS"}return c.createElement(e1,{display:"flex",flexDirection:"row",style:{maxHeight:f?468:504}},(!f||"NONE"===T)&&c.createElement(e1,{className:f?"_1vwt0cg4":"_1vwt0cg3",display:"flex",flexDirection:"column",marginTop:"16"},c.createElement(e1,{display:"flex",justifyContent:"space-between"},f&&p&&c.createElement(e1,{marginLeft:"16",width:"28"},c.createElement(ry,{onClick:()=>j("LEARN_COMPACT")})),f&&!p&&c.createElement(e1,{marginLeft:"16",width:"28"}),c.createElement(e1,{marginLeft:f?"0":"6",paddingBottom:"8",paddingTop:"2",paddingX:"18"},c.createElement(nM,{as:"h1",color:"modalText",id:"rk_connect_title",size:"18",weight:"heavy",testId:"connect-header-label"},h.t("connect.title"))),f&&c.createElement(e1,{marginRight:"16"},c.createElement(nF,{onClose:e}))),c.createElement(e1,{className:"_1vwt0cg2 ju367v7a ju367v7v",paddingBottom:"18"},Object.entries(v).map(([e,t],r)=>t.length>0&&c.createElement(c.Fragment,{key:r},e?c.createElement(e1,{marginBottom:"8",marginTop:"16",marginX:"6"},c.createElement(nM,{color:"Installed"===e?"accentColor":"modalTextSecondary",size:"14",weight:"bold"},C.includes(e)?h.t(`connector_group.${e.toLowerCase()}`):e)):null,c.createElement(e1,{display:"flex",flexDirection:"column",gap:"4"},t.map(e=>c.createElement(rC,{currentlySelected:e.id===n,iconBackground:e.iconBackground,iconUrl:e.iconUrl,key:e.id,name:e.name,onClick:()=>k(e),ready:e.ready,recent:e.recent,testId:`wallet-option-${e.id}`,isRainbowKitConnector:e.isRainbowKitConnector})))))),f&&c.createElement(c.Fragment,null,c.createElement(e1,{background:"generalBorder",height:"1",marginTop:"-1"}),p?c.createElement(e1,{paddingX:"24",paddingY:"16",textAlign:"center"},c.createElement(p,{Link:rf,Text:rp})):c.createElement(e1,{alignItems:"center",display:"flex",justifyContent:"space-between",paddingX:"24",paddingY:"16"},c.createElement(e1,{paddingY:"4"},c.createElement(nM,{color:"modalTextSecondary",size:"14",weight:"medium"},h.t("connect.new_to_ethereum.description"))),c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",justifyContent:"center"},c.createElement(e1,{className:e$({active:"shrink",hover:"grow"}),cursor:"pointer",onClick:()=>j("LEARN_COMPACT"),paddingY:"4",style:{willChange:"transform"},transition:"default"},c.createElement(nM,{color:"accentColor",size:"14",weight:"bold"},h.t("connect.new_to_ethereum.learn_more.label"))))))),(!f||"NONE"!==T)&&c.createElement(c.Fragment,null,!f&&c.createElement(e1,{background:"generalBorder",minWidth:"1",width:"1"}),c.createElement(e1,{display:"flex",flexDirection:"column",margin:"16",style:{flexGrow:1}},c.createElement(e1,{alignItems:"center",display:"flex",justifyContent:"space-between",marginBottom:"12"},c.createElement(e1,{width:"28"},D&&c.createElement(e1,{as:"button",className:e$({active:"shrinkSm",hover:"growLg"}),color:"accentColor",onClick:()=>{D&&j(D,!0),t?.()},paddingX:"8",paddingY:"4",style:{boxSizing:"content-box",height:17,willChange:"transform"},transition:"default",type:"button"},c.createElement(rm,null))),c.createElement(e1,{display:"flex",justifyContent:"center",style:{flexGrow:1}},M&&c.createElement(nM,{color:"modalText",size:"18",textAlign:"center",weight:"heavy"},M)),c.createElement(nF,{onClose:e})),c.createElement(e1,{display:"flex",flexDirection:"column",style:{minHeight:f?396:432}},c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",gap:"6",height:"full",justifyContent:"center",marginX:"8"},P)))))}var rK=({wallet:e})=>c.createElement("svg",{className:"_1am14413",viewBox:"0 0 86 86",width:"86",height:"86"},c.createElement("title",null,"Loading"),c.createElement("rect",{x:"3",y:"3",width:80,height:80,rx:20,ry:20,strokeDasharray:"53.333333333333336 "+320/3,strokeDashoffset:160,className:"_1am14412",style:{stroke:e?.iconAccent||"#0D3887"}}));function rZ({onClose:e,wallet:t,connecting:n}){let{connect:r,iconBackground:a,iconUrl:o,id:i,name:s,getMobileUri:l,ready:u,shortName:d,showWalletConnectModal:f}=t,p=rb(o);(0,c.useRef)(!1);let{i18n:h}=(0,c.useContext)(tu),m=(0,c.useCallback)(async()=>{let t=async()=>{let e=await l?.();if(e){if(e&&function({mobileUri:e,name:t}){localStorage.setItem(nU,JSON.stringify({href:e.split("?")[0],name:t}))}({mobileUri:e,name:s}),e.startsWith("http")){let t=document.createElement("a");t.href=e,t.target="_blank",t.rel="noreferrer noopener",t.click()}else window.location.href=e}};if("walletConnect"!==i&&t(),f){f(),e?.();return}r?.()},[r,l,f,e,s,i]);return c.createElement(e1,{as:"button",color:u?"modalText":"modalTextSecondary",disabled:!u,fontFamily:"body",key:i,onClick:m,ref:p,style:{overflow:"visible",textAlign:"center"},testId:`wallet-option-${i}`,type:"button",width:"full"},c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},c.createElement(e1,{display:"flex",alignItems:"center",justifyContent:"center",paddingBottom:"8",paddingTop:"10",position:"relative"},n?c.createElement(rK,{wallet:t}):null,c.createElement(e4,{background:a,borderRadius:"13",boxShadow:"walletLogo",height:"60",src:o,width:"60"})),n?null:c.createElement(e1,{display:"flex",flexDirection:"column",textAlign:"center"},c.createElement(nM,{as:"h2",color:t.ready?"modalText":"modalTextSecondary",size:"13",weight:"medium"},c.createElement(e1,{as:"span",position:"relative"},d??s,!t.ready&&" (unsupported)")),t.recent&&c.createElement(nM,{color:"accentColor",size:"12",weight:"medium"},h.t("connect.recent")))))}function rY({onClose:e}){let t=nB().filter(e=>e.isRainbowKitConnector),{disclaimer:n,learnMoreUrl:r}=(0,c.useContext)(nr),a=null,o=null,i=!1,s=null,[l,u]=(0,c.useState)("CONNECT"),{i18n:d}=(0,c.useContext)(tu),f=eV();switch(l){case"CONNECT":a=d.t("connect.title"),i=!0,o=c.createElement(e1,null,c.createElement(e1,{background:"profileForeground",className:"_1am14410",display:"flex",paddingBottom:"20",paddingTop:"6"},c.createElement(e1,{display:"flex",style:{margin:"0 auto"}},t.filter(e=>e.ready).map(t=>c.createElement(e1,{key:t.id,paddingX:"20"},c.createElement(e1,{width:"60"},c.createElement(rZ,{onClose:e,wallet:t})))))),c.createElement(e1,{background:"generalBorder",height:"1",marginBottom:"32",marginTop:"-1"}),c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",gap:"32",paddingX:"32",style:{textAlign:"center"}},c.createElement(e1,{display:"flex",flexDirection:"column",gap:"8",textAlign:"center"},c.createElement(nM,{color:"modalText",size:"16",weight:"bold"},d.t("intro.title")),c.createElement(nM,{color:"modalTextSecondary",size:"16"},d.t("intro.description")))),c.createElement(e1,{paddingTop:"32",paddingX:"20"},c.createElement(e1,{display:"flex",gap:"14",justifyContent:"center"},c.createElement(nN,{label:d.t("intro.get.label"),onClick:()=>u("GET"),size:"large",type:"secondary"}),c.createElement(nN,{href:r,label:d.t("intro.learn_more.label"),size:"large",type:"secondary"}))),n&&c.createElement(e1,{marginTop:"28",marginX:"32",textAlign:"center"},c.createElement(n,{Link:rf,Text:rp})));break;case"GET":{a=d.t("get.title"),s="CONNECT";let e=t?.filter(e=>e.downloadUrls?.ios||e.downloadUrls?.android||e.downloadUrls?.mobile)?.splice(0,3);o=c.createElement(e1,null,c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginBottom:"36",marginTop:"5",paddingTop:"12",width:"full"},e.map((t,n)=>{let{downloadUrls:r,iconBackground:a,iconUrl:o,name:i}=t;return r?.ios||r?.android||r?.mobile?c.createElement(e1,{display:"flex",gap:"16",key:t.id,paddingX:"20",width:"full"},c.createElement(e1,{style:{minHeight:48,minWidth:48}},c.createElement(e4,{background:a,borderColor:"generalBorder",borderRadius:"10",height:"48",src:o,width:"48"})),c.createElement(e1,{display:"flex",flexDirection:"column",width:"full"},c.createElement(e1,{alignItems:"center",display:"flex",height:"48"},c.createElement(e1,{width:"full"},c.createElement(nM,{color:"modalText",size:"18",weight:"bold"},i)),c.createElement(nN,{href:(f?r?.ios:r?.android)||r?.mobile,label:d.t("get.action.label"),size:"small",type:"secondary"})),n<e.length-1&&c.createElement(e1,{background:"generalBorderDim",height:"1",marginY:"10",width:"full"}))):null})),c.createElement(e1,{style:{marginBottom:"42px"}}),c.createElement(e1,{alignItems:"center",display:"flex",flexDirection:"column",gap:"36",paddingX:"36",style:{textAlign:"center"}},c.createElement(e1,{display:"flex",flexDirection:"column",gap:"12",textAlign:"center"},c.createElement(nM,{color:"modalText",size:"16",weight:"bold"},d.t("get.looking_for.title")),c.createElement(nM,{color:"modalTextSecondary",size:"16"},d.t("get.looking_for.mobile.description")))))}}return c.createElement(e1,{display:"flex",flexDirection:"column",paddingBottom:"36"},c.createElement(e1,{background:i?"profileForeground":"modalBackground",display:"flex",flexDirection:"column",paddingBottom:"4",paddingTop:"14"},c.createElement(e1,{display:"flex",justifyContent:"center",paddingBottom:"6",paddingX:"20",position:"relative"},s&&c.createElement(e1,{display:"flex",position:"absolute",style:{left:0,marginBottom:-20,marginTop:-20}},c.createElement(e1,{alignItems:"center",as:"button",className:e$({active:"shrinkSm",hover:"growLg"}),color:"accentColor",display:"flex",marginLeft:"4",marginTop:"20",onClick:()=>u(s),padding:"16",style:{height:17,willChange:"transform"},transition:"default",type:"button"},c.createElement(rm,null))),c.createElement(e1,{marginTop:"4",textAlign:"center",width:"full"},c.createElement(nM,{as:"h1",color:"modalText",id:"rk_connect_title",size:"20",weight:"bold"},a)),c.createElement(e1,{alignItems:"center",display:"flex",height:"32",paddingRight:"14",position:"absolute",right:"0"},c.createElement(e1,{style:{marginBottom:-20,marginTop:-20}},c.createElement(nF,{onClose:e}))))),c.createElement(e1,{display:"flex",flexDirection:"column"},o))}var rV=({onClose:e})=>{let{connector:t}=(0,c.useContext)(ni),{i18n:n}=(0,c.useContext)(tu),r=t?.name||"";return c.createElement(e1,null,c.createElement(e1,{display:"flex",paddingBottom:"32",justifyContent:"center",alignItems:"center",background:"profileForeground",flexDirection:"column"},c.createElement(e1,{width:"full",display:"flex",justifyContent:"flex-end",marginTop:"18",marginRight:"24"},c.createElement(nF,{onClose:e})),c.createElement(e1,{width:"60"},c.createElement(rZ,{onClose:e,wallet:t,connecting:!0})),c.createElement(e1,{marginTop:"20"},c.createElement(nM,{textAlign:"center",color:"modalText",size:"18",weight:"semibold"},n.t("connect.status.connect_mobile",{wallet:r}))),c.createElement(e1,{maxWidth:"full",marginTop:"8"},c.createElement(nM,{textAlign:"center",color:"modalText",size:"16",weight:"medium"},n.t("connect.status.confirm_mobile",{wallet:r})))))};function rJ({onClose:e}){let{connector:t}=(0,c.useContext)(ni);return eJ()?t?c.createElement(rV,{onClose:e}):c.createElement(rY,{onClose:e}):c.createElement(r$,{onClose:e})}function rX({onClose:e,open:t}){let n="rk_connect_title",r=eY(),{disconnect:a}=F(),{isConnecting:o}=(0,g.m)(),i=c.useCallback(()=>{e(),a()},[e,a]),s=c.useCallback(()=>{o&&a(),e()},[e,a,o]);return"disconnected"===r?c.createElement(nJ,{onClose:s,open:t,titleId:n},c.createElement(nX,{bottomSheetOnMobile:!0,padding:"0",wide:!0},c.createElement(rJ,{onClose:s}))):"unauthenticated"===r?c.createElement(nJ,{onClose:i,open:t,titleId:n},c.createElement(nX,{bottomSheetOnMobile:!0,padding:"0"},c.createElement(n_,{onClose:i,onCloseModal:e}))):null}function r0(){let[e,t]=(0,c.useState)(!1);return{closeModal:(0,c.useCallback)(()=>t(!1),[]),isModalOpen:e,openModal:(0,c.useCallback)(()=>t(!0),[])}}var r1=(0,c.createContext)({accountModalOpen:!1,chainModalOpen:!1,connectModalOpen:!1,isWalletConnectModalOpen:!1,setIsWalletConnectModalOpen:()=>{}});function r6({children:e}){let{closeModal:t,isModalOpen:n,openModal:r}=r0(),{closeModal:a,isModalOpen:o,openModal:i}=r0(),{closeModal:s,isModalOpen:l,openModal:u}=r0(),[d,f]=(0,c.useState)(!1),p=eY(),{chainId:h}=(0,g.m)(),{chains:m}=(0,b.Z)(),y=m.some(e=>e.id===h),w=(0,c.useCallback)(({keepConnectModalOpen:e=!1}={})=>{e||t(),a(),s()},[t,a,s]),v="unauthenticated"===eZ();return O({onConnect:()=>w({keepConnectModalOpen:v}),onDisconnect:()=>w()}),(0,c.useEffect)(()=>{v&&w()},[v,w]),c.createElement(r1.Provider,{value:(0,c.useMemo)(()=>({accountModalOpen:o,chainModalOpen:l,connectModalOpen:n,isWalletConnectModalOpen:d,openAccountModal:y&&"connected"===p?i:void 0,openChainModal:"connected"===p?u:void 0,openConnectModal:"disconnected"===p||"unauthenticated"===p?r:void 0,setIsWalletConnectModalOpen:f}),[p,o,l,n,i,u,r,y,d])},e,c.createElement(rX,{onClose:t,open:n}),c.createElement(rs,{onClose:a,open:o}),c.createElement(rd,{onClose:s,open:l}))}function r3(){let{isWalletConnectModalOpen:e,setIsWalletConnectModalOpen:t}=(0,c.useContext)(r1);return{isWalletConnectModalOpen:e,setIsWalletConnectModalOpen:t}}function r2(){let{connectModalOpen:e,openConnectModal:t}=(0,c.useContext)(r1),{isWalletConnectModalOpen:n}=r3();return{connectModalOpen:e||n,openConnectModal:t}}var r7=()=>{};function r5({children:e}){let t=function(){let[e,t]=(0,c.useState)(!1);return(0,c.useCallback)(()=>e,[e])}(),{address:n}=(0,g.m)(),{chainId:r}=(0,g.m)(),{chains:a}=(0,b.Z)(),o=a.some(e=>e.id===r),i=tG(),s=eZ()??void 0,l=r?i[r]:void 0,u=l?.name??void 0,d=l?.iconUrl??void 0,f=l?.iconBackground??void 0,p=e5(d),h=(0,c.useContext)(nd),m=t9().some(({status:e})=>"pending"===e)&&h,{showBalance:y}=t$(),{balance:w,ensAvatar:v,ensName:C}=t1({address:n,includeBalance:"boolean"==typeof y?y:!y||eW(y)[eJ()?"smallScreen":"largeScreen"]}),A=w?`${n6(Number.parseFloat(w.formatted))} ${w.symbol}`:void 0,{openConnectModal:E}=r2(),{openChainModal:x}=function(){let{chainModalOpen:e,openChainModal:t}=(0,c.useContext)(r1);return{chainModalOpen:e,openChainModal:t}}(),{openAccountModal:k}=function(){let{accountModalOpen:e,openAccountModal:t}=(0,c.useContext)(r1);return{accountModalOpen:e,openAccountModal:t}}(),{accountModalOpen:B,chainModalOpen:j,connectModalOpen:I}=function(){let{accountModalOpen:e,chainModalOpen:t,connectModalOpen:n}=(0,c.useContext)(r1);return{accountModalOpen:e,chainModalOpen:t,connectModalOpen:n}}();return c.createElement(c.Fragment,null,e({account:n?{address:n,balanceDecimals:w?.decimals,balanceFormatted:w?.formatted,balanceSymbol:w?.symbol,displayBalance:A,displayName:C?n2(C):n3(n),ensAvatar:v??void 0,ensName:C??void 0,hasPendingTransactions:m}:void 0,accountModalOpen:B,authenticationStatus:s,chain:r?{hasIcon:!!d,iconBackground:f,iconUrl:p,id:r,name:u,unsupported:!o}:void 0,chainModalOpen:j,connectModalOpen:I,mounted:t(),openAccountModal:k??r7,openChainModal:x??r7,openConnectModal:E??r7}))}r5.displayName="ConnectButton.Custom";var r4={accountStatus:"full",chainStatus:{largeScreen:"full",smallScreen:"icon"},label:"Connect Wallet",showBalance:{largeScreen:!0,smallScreen:!1}};function r8({accountStatus:e=r4.accountStatus,chainStatus:t=r4.chainStatus,label:n=r4.label,showBalance:r=r4.showBalance}){let a=tW(),o=eY(),{setShowBalance:i}=t$(),[s,l]=(0,c.useState)(!1),{i18n:u}=(0,c.useContext)(tu);return(0,c.useEffect)(()=>{i(r),s||l(!0)},[r,i]),s?c.createElement(r5,null,({account:i,chain:s,mounted:l,openAccountModal:d,openChainModal:f,openConnectModal:p})=>{let h=l&&"loading"!==o,m=s?.unsupported??!1;return c.createElement(e1,{display:"flex",gap:"12",...!h&&{"aria-hidden":!0,style:{opacity:0,pointerEvents:"none",userSelect:"none"}}},h&&i&&"connected"===o?c.createElement(c.Fragment,null,s&&(a.length>1||m)&&c.createElement(e1,{alignItems:"center","aria-label":"Chain Selector",as:"button",background:m?"connectButtonBackgroundError":"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:e$({active:"shrink",hover:"grow"}),color:m?"connectButtonTextError":"connectButtonText",display:ez(t,e=>"none"===e?"none":"flex"),fontFamily:"body",fontWeight:"bold",gap:"6",key:m?"unsupported":"supported",onClick:f,paddingX:"10",paddingY:"8",testId:m?"wrong-network-button":"chain-button",transition:"default",type:"button"},m?c.createElement(e1,{alignItems:"center",display:"flex",height:"24",paddingX:"4"},u.t("connect_wallet.wrong_network.label")):c.createElement(e1,{alignItems:"center",display:"flex",gap:"6"},s.hasIcon?c.createElement(e1,{display:ez(t,e=>"full"===e||"icon"===e?"block":"none"),height:"24",width:"24"},c.createElement(e4,{alt:s.name??"Chain icon",background:s.iconBackground,borderRadius:"full",height:"24",src:s.iconUrl,width:"24"})):null,c.createElement(e1,{display:ez(t,e=>"icon"!==e||s.iconUrl?"full"===e||"name"===e?"block":"none":"block")},s.name??s.id)),c.createElement(ta,null)),!m&&c.createElement(e1,{alignItems:"center",as:"button",background:"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:e$({active:"shrink",hover:"grow"}),color:"connectButtonText",display:"flex",fontFamily:"body",fontWeight:"bold",onClick:d,testId:"account-button",transition:"default",type:"button"},i.displayBalance&&c.createElement(e1,{display:ez(r,e=>e?"block":"none"),padding:"8",paddingLeft:"12"},i.displayBalance),c.createElement(e1,{background:eW(r)[eJ()?"smallScreen":"largeScreen"]?"connectButtonInnerBackground":"connectButtonBackground",borderColor:"connectButtonBackground",borderRadius:"connectButton",borderStyle:"solid",borderWidth:"2",color:"connectButtonText",fontFamily:"body",fontWeight:"bold",paddingX:"8",paddingY:"6",transition:"default"},c.createElement(e1,{alignItems:"center",display:"flex",gap:"6",height:"24"},c.createElement(e1,{display:ez(e,e=>"full"===e||"avatar"===e?"block":"none")},c.createElement(tr,{address:i.address,imageUrl:i.ensAvatar,loading:i.hasPendingTransactions,size:24})),c.createElement(e1,{alignItems:"center",display:"flex",gap:"6"},c.createElement(e1,{display:ez(e,e=>"full"===e||"address"===e?"block":"none")},i.displayName),c.createElement(ta,null)))))):c.createElement(e1,{as:"button",background:"accentColor",borderRadius:"connectButton",boxShadow:"connectButton",className:e$({active:"shrink",hover:"grow"}),color:"accentColorForeground",fontFamily:"body",fontWeight:"bold",height:"40",key:"connect",onClick:p,paddingX:"14",testId:"connect-button",transition:"default",type:"button"},l&&"Connect Wallet"===n?u.t("connect_wallet.label"):n))}):c.createElement(c.Fragment,null)}r8.__defaultProps=r4,r8.Custom=r5;var r9=({appName:e,appDescription:t,appUrl:n,appIcon:r})=>({name:e,description:t??e,url:n??"",icons:[...r?[r]:[]]}),ae=(e,{projectId:t,walletConnectParameters:n,appName:r,appDescription:a,appUrl:o,appIcon:i})=>{if(!e.length)throw Error("No wallet list was provided");for(let{wallets:t,groupName:n}of e)if(!t.length)throw Error(`No wallets provided for group: ${n}`);let s=-1,l=[],c=[],u=[],d=r9({appName:r,appDescription:a,appUrl:o,appIcon:i});for(let[a,{groupName:o,wallets:l}]of e.entries())for(let e of l){s++;let l=e({projectId:t,appName:r,appIcon:i,options:{metadata:d,...n},walletConnectParameters:{metadata:d,...n}});if(l?.iconAccent&&!rk(l?.iconAccent))throw Error(`Property \`iconAccent\` is not a hex value for wallet: ${l.name}`);let f={...l,groupIndex:a+1,groupName:o,index:s};"function"==typeof l.hidden?u.push(f):c.push(f)}for(let{createConnector:e,groupIndex:t,groupName:n,hidden:r,...a}of function(e,t){let n=[];for(let t of e)n.some(e=>e.id===t.id)||n.push(t);return n}([...c,...u],0)){if("function"==typeof r&&r())continue;let o=e=>({rkDetails:Object.fromEntries(Object.entries({...a,groupIndex:t,groupName:n,isRainbowKitConnector:!0,...e||{}}).filter(([e,t])=>void 0!==t))});"walletConnect"===a.id&&l.push(e(o({isWalletConnectModalConnector:!0,showQrModal:!0})));let i=e(o());l.push(i)}return l},at=new Map,an=({projectId:e,walletConnectParameters:t,rkDetailsShowQrModal:n})=>{let r={...t||{},projectId:e,showQrModal:!1};n&&(r={...r,showQrModal:!0});let a=JSON.stringify(r),o=at.get(a);if(o)return o;let i=walletConnect(r);return at.set(a,i),i};function ar(e){let t=void 0;if(void 0===t||void 0===t.ethereum)return;let n=t.ethereum.providers;return n?n.find(t=>t[e]):t.ethereum[e]?t.ethereum:void 0}function aa(e){}},22873:(e,t,n)=>{"use strict";n.d(t,{P:()=>p});var r=n(92427),a=n(59777),o=n(23214),i=n(48421),s=n(90171),l=n(60941),c=n(71215);function u(e){let t,r,d,f,p,h,m,g;let y=e.isNewChainsStale??!0;return(0,a.K)(a=>({id:"walletConnect",name:"WalletConnect",type:u.type,async setup(){let e=await this.getProvider().catch(()=>null);e&&(p||(p=this.onConnect.bind(this),e.on("connect",p)),m||(m=this.onSessionDelete.bind(this),e.on("session_delete",m)))},async connect({chainId:e,...t}={}){try{let n=await this.getProvider();if(!n)throw new o.M;h||(h=this.onDisplayUri,n.on("display_uri",h));let r=e;if(!r){let e=await a.storage?.getItem("state")??{};r=a.chains.some(t=>t.id===e.chainId)?e.chainId:a.chains[0]?.id}if(!r)throw Error("No chains found on connector.");let i=await this.isChainsStale();if(n.session&&i&&await n.disconnect(),!n.session||i){let e=a.chains.filter(e=>e.id!==r).map(e=>e.id);await n.connect({optionalChains:[r,...e],..."pairingTopic"in t?{pairingTopic:t.pairingTopic}:{}}),this.setRequestedChainsIds(a.chains.map(e=>e.id))}let l=(await n.enable()).map(e=>(0,s.K)(e)),c=await this.getChainId();return h&&(n.removeListener("display_uri",h),h=void 0),p&&(n.removeListener("connect",p),p=void 0),d||(d=this.onAccountsChanged.bind(this),n.on("accountsChanged",d)),f||(f=this.onChainChanged.bind(this),n.on("chainChanged",f)),g||(g=this.onDisconnect.bind(this),n.on("disconnect",g)),m||(m=this.onSessionDelete.bind(this),n.on("session_delete",m)),{accounts:l,chainId:c}}catch(e){if(/(user rejected|connection request reset)/i.test(e?.message))throw new l.ab(e);throw e}},async disconnect(){let e=await this.getProvider();try{await e?.disconnect()}catch(e){if(!/No matching key/i.test(e.message))throw e}finally{f&&(e?.removeListener("chainChanged",f),f=void 0),g&&(e?.removeListener("disconnect",g),g=void 0),p||(p=this.onConnect.bind(this),e?.on("connect",p)),d&&(e?.removeListener("accountsChanged",d),d=void 0),m&&(e?.removeListener("session_delete",m),m=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map(e=>(0,s.K)(e))},async getProvider({chainId:o}={}){async function i(){let t=a.chains.map(e=>e.id);if(!t.length)return;let{EthereumProvider:r}=await n.e(4131).then(n.bind(n,94131));return await r.init({...e,disableProviderPing:!0,optionalChains:t,projectId:e.projectId,rpcMap:Object.fromEntries(a.chains.map(e=>{let[t]=function(e){let{chain:t}=e,n=t.rpcUrls.default.http[0];if(!e.transports)return[n];let r=e.transports?.[t.id]?.({chain:t});return(r?.value?.transports||[r]).map(({value:e})=>e?.url||n)}({chain:e,transports:a.transports});return[e.id,t]})),showQrModal:e.showQrModal??!0})}return t||(r||(r=i()),t=await r,t?.events.setMaxListeners(Number.POSITIVE_INFINITY)),o&&await this.switchChain?.({chainId:o}),t},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccounts(),this.getProvider()]);if(!e.length)return!1;if(await this.isChainsStale()&&t.session)return await t.disconnect().catch(()=>{}),!1;return!0}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=await this.getProvider();if(!n)throw new o.M;let r=a.chains.find(e=>e.id===t);if(!r)throw new l.x3(new i.X4);try{await Promise.all([new Promise(e=>{let n=({chainId:r})=>{r===t&&(a.emitter.off("change",n),e())};a.emitter.on("change",n)}),n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,c.eC)(t)}]})]);let e=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...e,t]),r}catch(a){if(/(user rejected)/i.test(a.message))throw new l.ab(a);try{let a,o;a=e?.blockExplorerUrls?e.blockExplorerUrls:r.blockExplorers?.default.url?[r.blockExplorers?.default.url]:[],o=e?.rpcUrls?.length?e.rpcUrls:[...r.rpcUrls.default.http];let i={blockExplorerUrls:a,chainId:(0,c.eC)(t),chainName:e?.chainName??r.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??r.nativeCurrency,rpcUrls:o};await n.request({method:"wallet_addEthereumChain",params:[i]});let s=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...s,t]),r}catch(e){throw new l.ab(e)}}},onAccountsChanged(e){0===e.length?this.onDisconnect():a.emitter.emit("change",{accounts:e.map(e=>(0,s.K)(e))})},onChainChanged(e){let t=Number(e);a.emitter.emit("change",{chainId:t})},async onConnect(e){let t=Number(e.chainId),n=await this.getAccounts();a.emitter.emit("connect",{accounts:n,chainId:t})},async onDisconnect(e){this.setRequestedChainsIds([]),a.emitter.emit("disconnect");let t=await this.getProvider();d&&(t.removeListener("accountsChanged",d),d=void 0),f&&(t.removeListener("chainChanged",f),f=void 0),g&&(t.removeListener("disconnect",g),g=void 0),m&&(t.removeListener("session_delete",m),m=void 0),p||(p=this.onConnect.bind(this),t.on("connect",p))},onDisplayUri(e){a.emitter.emit("message",{type:"display_uri",data:e})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds:()=>t?t.session?.namespaces.eip155?.accounts?.map(e=>Number.parseInt(e.split(":")[1]||""))??[]:[],async getRequestedChainsIds(){return await a.storage?.getItem(this.requestedChainsStorageKey)??[]},async isChainsStale(){if(!y)return!1;let e=a.chains.map(e=>e.id),t=this.getNamespaceChainsIds();if(t.length&&!t.some(t=>e.includes(t)))return!1;let n=await this.getRequestedChainsIds();return!e.every(e=>n.includes(e))},async setRequestedChainsIds(e){await a.storage?.setItem(this.requestedChainsStorageKey,e)},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}}))}u.type="walletConnect";var d=new Map,f=({projectId:e,walletConnectParameters:t,rkDetailsShowQrModal:n})=>{let r={...t||{},projectId:e,showQrModal:!1};n&&(r={...r,showQrModal:!0});let a=JSON.stringify(r),o=d.get(a);if(o)return o;let i=u(r);return d.set(a,i),i},p=({projectId:e,walletConnectParameters:t})=>{let o=(0,r.B)({flag:"isMetaMask"}),i=!o,s=e=>"undefined"!=typeof navigator&&/android/i.test(navigator.userAgent)?e:"undefined"!=typeof navigator&&/iPhone|iPod/.test(navigator.userAgent)||"undefined"!=typeof navigator&&(/iPad/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?`metamask://wc?uri=${encodeURIComponent(e)}`:`https://metamask.app.link/wc?uri=${encodeURIComponent(e)}`;return{id:"metaMask",name:"MetaMask",rdns:"io.metamask",iconUrl:async()=>(await n.e(2037).then(n.bind(n,92037))).default,iconAccent:"#f6851a",iconBackground:"#fff",installed:i?void 0:o,downloadUrls:{android:"https://play.google.com/store/apps/details?id=io.metamask",ios:"https://apps.apple.com/us/app/metamask/id1438144202",mobile:"https://metamask.io/download",qrCode:"https://metamask.io/download",chrome:"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",edge:"https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",firefox:"https://addons.mozilla.org/firefox/addon/ether-metamask",opera:"https://addons.opera.com/extensions/details/metamask-10",browserExtension:"https://metamask.io/download"},mobile:{getUri:i?s:void 0},qrCode:i?{getUri:s,instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.qr_code.step1.description",step:"install",title:"wallet_connectors.metamask.qr_code.step1.title"},{description:"wallet_connectors.metamask.qr_code.step2.description",step:"create",title:"wallet_connectors.metamask.qr_code.step2.title"},{description:"wallet_connectors.metamask.qr_code.step3.description",step:"refresh",title:"wallet_connectors.metamask.qr_code.step3.title"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.extension.step1.description",step:"install",title:"wallet_connectors.metamask.extension.step1.title"},{description:"wallet_connectors.metamask.extension.step2.description",step:"create",title:"wallet_connectors.metamask.extension.step2.title"},{description:"wallet_connectors.metamask.extension.step3.description",step:"refresh",title:"wallet_connectors.metamask.extension.step3.title"}]}},createConnector:i?function({projectId:e,walletConnectParameters:t}){if(!e||""===e)throw Error("No projectId found. Every dApp must now provide a WalletConnect Cloud projectId to enable WalletConnect v2 https://www.rainbowkit.com/docs/installation#configure");return"YOUR_PROJECT_ID"===e&&(e="21fef48091f12692cad574a6f7753643"),n=>(function({projectId:e,walletDetails:t,walletConnectParameters:n}){return(0,a.K)(r=>({...f({projectId:e,walletConnectParameters:n,rkDetailsShowQrModal:t.rkDetails.showQrModal})(r),...t}))})({projectId:e,walletDetails:n,walletConnectParameters:t})}({projectId:e,walletConnectParameters:t}):(0,r.K)({target:void 0})}}},63378:(e,t,n)=>{"use strict";n.d(t,{U:()=>a});var r=n(92427),a=()=>({id:"injected",name:"Browser Wallet",iconUrl:async()=>(await n.e(2297).then(n.bind(n,32297))).default,iconBackground:"#fff",createConnector:(0,r.K)({})})},92427:(e,t,n)=>{"use strict";n.d(t,{B:()=>s,K:()=>l});var r=n(59777),a=n(97365);function o(e){let t=void 0;if(void 0===t||void 0===t.ethereum)return;let n=t.ethereum.providers;return n?n.find(t=>t[e]):t.ethereum[e]?t.ethereum:void 0}function i(e){}function s({flag:e,namespace:t}){return!!t&&void 0!==i(t)||!!e&&void 0!==o(e)}function l({flag:e,namespace:t,target:n}){var s;return s=n||function({flag:e,namespace:t}){let n=void 0;if(void 0===n)return;if(t){let e=i(t);if(e)return e}let r=n.ethereum?.providers;if(e){let t=o(e);if(t)return t}return void 0!==r&&r.length>0?r[0]:n.ethereum}({flag:e,namespace:t}),e=>{let t=s?{target:()=>({id:e.rkDetails.id,name:e.rkDetails.name,provider:s})}:{};return(0,r.K)(n=>({...(0,a.L)(t)(n),...e}))}}},11803:(e,t,n)=>{"use strict";n.d(t,{l:()=>l});var r=n(59777),a=n(23214),o=n(90171),i=n(99172);function s(e={}){let t,l;let{shimDisconnect:c=!1}=e;return(0,r.K)(r=>({id:"safe",name:"Safe",type:s.type,async connect(){let e=await this.getProvider();if(!e)throw new a.M;let t=await this.getAccounts(),n=await this.getChainId();return l||(l=this.onDisconnect.bind(this),e.on("disconnect",l)),c&&await r.storage?.removeItem("safe.disconnected"),{accounts:t,chainId:n}},async disconnect(){let e=await this.getProvider();if(!e)throw new a.M;l&&(e.removeListener("disconnect",l),l=void 0),c&&await r.storage?.setItem("safe.disconnected",!0)},async getAccounts(){let e=await this.getProvider();if(!e)throw new a.M;return(await e.request({method:"eth_accounts"})).map(o.K)},async getProvider(){if("undefined"!=typeof window&&window?.parent!==window){if(!t){let{default:r}=await Promise.all([n.e(7773),n.e(6183)]).then(n.bind(n,16183)),a=new r(e),o=await (0,i.F)(()=>a.safe.getInfo(),{timeout:e.unstable_getInfoTimeout??10});if(!o)throw Error("Could not load Safe information");t=new(await (async()=>{let e=await Promise.all([n.e(1436),n.e(7773),n.e(984)]).then(n.t.bind(n,70984,19));return"function"!=typeof e.SafeAppProvider&&"function"==typeof e.default.SafeAppProvider?e.default.SafeAppProvider:e.SafeAppProvider})())(o,a)}return t}},async getChainId(){let e=await this.getProvider();if(!e)throw new a.M;return Number(e.chainId)},async isAuthorized(){try{if(c&&await r.storage?.getItem("safe.disconnected"))return!1;return!!(await this.getAccounts()).length}catch{return!1}},onAccountsChanged(){},onChainChanged(){},onDisconnect(){r.emitter.emit("disconnect")}}))}s.type="safe";var l=()=>({id:"safe",name:"Safe",iconAccent:"#12ff80",iconBackground:"#fff",iconUrl:async()=>(await n.e(16).then(n.bind(n,30016))).default,installed:!1,downloadUrls:{},createConnector:e=>(0,r.K)(t=>({...s()(t),...e}))})},93794:(e,t,n)=>{"use strict";n.d(t,{D:()=>d});var r=n(39779),a=n(88014),o=n(49258),i=n(50917),s=n(61076),l=class extends i.l{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,s.VS)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,s.Ym)(t.mutationKey)!==(0,s.Ym)(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#a(),this.#o(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#o()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#a(){let e=this.#n?.state??(0,a.R)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#o(e){o.V.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context;e?.type==="success"?(this.#r.onSuccess?.(e.data,t,n),this.#r.onSettled?.(e.data,null,t,n)):e?.type==="error"&&(this.#r.onError?.(e.error,t,n),this.#r.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach(e=>{e(this.#t)})})}},c=n(84329),u=n(82422);function d(e,t){let n=(0,c.NL)(t),[a]=r.useState(()=>new l(n,e));r.useEffect(()=>{a.setOptions(e)},[a,e]);let i=r.useSyncExternalStore(r.useCallback(e=>a.subscribe(o.V.batchCalls(e)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),s=r.useCallback((e,t)=>{a.mutate(e,t).catch(u.Z)},[a]);if(i.error&&(0,u.L)(a.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}},24362:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});var r=n(57014),a=n(82140);async function o(e,t={}){let{chainId:n,...o}=t,i=e.getClient({chainId:n}),s=(0,a.s)(i,r.Q,"getBlock");return{...await s(o),chainId:i.chain.id}}},90758:(e,t,n)=>{"use strict";n.d(t,{e:()=>l});var r=n(78313),a=n(41851),o=n(79374),i=n(90171),s=n(48421);async function l(e,t={}){let n;if(t.connector){let{connector:r}=t;if("reconnecting"===e.state.status&&!r.getAccounts&&!r.getChainId)throw new s.$S({connector:r});let[a,o]=await Promise.all([r.getAccounts().catch(e=>{if(null===t.account)return[];throw e}),r.getChainId()]);n={accounts:a,chainId:o,connector:r}}else n=e.state.connections.get(e.state.current);if(!n)throw new s.aH;let l=t.chainId??n.chainId,c=await n.connector.getChainId();if(c!==n.chainId)throw new s.XZ({connectionChainId:n.chainId,connectorChainId:c});let u=n.connector;if(u.getClient)return u.getClient({chainId:l});let d=(0,o.T)(t.account??n.accounts[0]);if(d&&(d.address=(0,i.K)(d.address)),t.account&&!n.accounts.some(e=>e.toLowerCase()===d.address.toLowerCase()))throw new s.JK({address:d.address,connector:u});let f=e.chains.find(e=>e.id===l),p=await n.connector.getProvider({chainId:l});return(0,r.e)({account:d,chain:f,name:"Connector Client",transport:e=>(function(e,t={}){let{key:n="custom",methods:r,name:o="Custom Provider",retryDelay:i}=t;return({retryCount:s})=>(0,a.q)({key:n,methods:r,name:o,request:e.request.bind(e),retryCount:t.retryCount??s,retryDelay:i,type:"custom"})})(p)({...e,retryCount:0})})}},97125:(e,t,n)=>{"use strict";n.d(t,{f:()=>o});var r=n(36372),a=n(82140);function o(e,t){let{chainId:n,...o}=t,i=e.getClient({chainId:n});return(0,a.s)(i,r.f,"getTransaction")(o)}},53816:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var r=n(30680),a=n(82140),o=n(90758);async function i(e,t){let n;let{abi:i,chainId:s,connector:l,...c}=t;n=t.account?t.account:(await (0,o.e)(e,{chainId:s,connector:l})).account;let u=e.getClient({chainId:s}),d=(0,a.s)(u,r.a,"simulateContract"),{result:f,request:p}=await d({...c,abi:i,account:n});return{chainId:u.chain.id,result:f,request:{...p,chainId:s}}}},56296:(e,t,n)=>{"use strict";n.d(t,{e:()=>l});var r=n(24617),a=n(81332),o=n(36372),i=n(94425),s=n(82140);async function l(e,t){let{chainId:n,timeout:l=0,...c}=t,u=e.getClient({chainId:n}),d=(0,s.s)(u,a.e,"waitForTransactionReceipt"),f=await d({...c,timeout:l});if("reverted"===f.status){let e=(0,s.s)(u,o.f,"getTransaction"),t=await e({hash:f.transactionHash}),n=(0,s.s)(u,i.R,"call"),a=await n({...t,data:t.input,gasPrice:"eip1559"!==t.type?t.gasPrice:void 0,maxFeePerGas:"eip1559"===t.type?t.maxFeePerGas:void 0,maxPriorityFeePerGas:"eip1559"===t.type?t.maxPriorityFeePerGas:void 0});throw Error(a?.data?(0,r.rR)(`0x${a.data.substring(138)}`):"unknown reason")}return{...f,chainId:u.chain.id}}},59777:(e,t,n)=>{"use strict";function r(e){return e}n.d(t,{K:()=>r})},97365:(e,t,n)=>{"use strict";n.d(t,{L:()=>d});var r=n(90171),a=n(60941),o=n(99172),i=n(51626),s=n(71215),l=n(48421),c=n(23214),u=n(59777);function d(e={}){let t,n,h,m;let{shimDisconnect:g=!0,unstable_shimAsyncInject:y}=e;function b(){let t=e.target;if("function"==typeof t){let e=t();if(e)return e}return"object"==typeof t?t:"string"==typeof t?{...f[t]??{id:t,name:`${t[0].toUpperCase()}${t.slice(1)}`,provider:`is${t[0].toUpperCase()}${t.slice(1)}`}}:{id:"injected",name:"Injected",provider:e=>e?.ethereum}}return(0,u.K)(u=>({get icon(){return b().icon},get id(){return b().id},get name(){return b().name},get supportsSimulation(){return!0},type:d.type,async setup(){let n=await this.getProvider();n?.on&&e.target&&(h||(h=this.onConnect.bind(this),n.on("connect",h)),t||(t=this.onAccountsChanged.bind(this),n.on("accountsChanged",t)))},async connect({chainId:o,isReconnecting:i}={}){let s=await this.getProvider();if(!s)throw new c.M;let l=[];if(i)l=await this.getAccounts().catch(()=>[]);else if(g)try{let e=await s.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]});(l=e[0]?.caveats?.[0]?.value?.map(e=>r.K(e))).length>0&&(l=await this.getAccounts())}catch(e){if(e.code===a.ab.code)throw new a.ab(e);if(e.code===a.pT.code)throw e}try{l?.length||i||(l=(await s.request({method:"eth_requestAccounts"})).map(e=>(0,r.K)(e))),h&&(s.removeListener("connect",h),h=void 0),t||(t=this.onAccountsChanged.bind(this),s.on("accountsChanged",t)),n||(n=this.onChainChanged.bind(this),s.on("chainChanged",n)),m||(m=this.onDisconnect.bind(this),s.on("disconnect",m));let c=await this.getChainId();if(o&&c!==o){let e=await this.switchChain({chainId:o}).catch(e=>{if(e.code===a.ab.code)throw e;return{id:c}});c=e?.id??c}return g&&await u.storage?.removeItem(`${this.id}.disconnected`),e.target||await u.storage?.setItem("injected.connected",!0),{accounts:l,chainId:c}}catch(e){if(e.code===a.ab.code)throw new a.ab(e);if(e.code===a.pT.code)throw new a.pT(e);throw e}},async disconnect(){let t=await this.getProvider();if(!t)throw new c.M;n&&(t.removeListener("chainChanged",n),n=void 0),m&&(t.removeListener("disconnect",m),m=void 0),h||(h=this.onConnect.bind(this),t.on("connect",h));try{await (0,o.F)(()=>t.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}g&&await u.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await u.storage?.removeItem("injected.connected")},async getAccounts(){let e=await this.getProvider();if(!e)throw new c.M;return(await e.request({method:"eth_accounts"})).map(e=>(0,r.K)(e))},async getChainId(){let e=await this.getProvider();if(!e)throw new c.M;return Number(await e.request({method:"eth_chainId"}))},async getProvider(){let e;if("undefined"==typeof window)return;let t=b();return(e="function"==typeof t.provider?t.provider(window):"string"==typeof t.provider?p(window,t.provider):t.provider)&&!e.removeListener&&("off"in e&&"function"==typeof e.off?e.removeListener=e.off:e.removeListener=()=>{}),e},async isAuthorized(){try{if(g&&await u.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await u.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(void 0!==y&&!1!==y){let e=async()=>("undefined"!=typeof window&&window.removeEventListener("ethereum#initialized",e),!!await this.getProvider()),t="number"==typeof y?y:1e3;if(await Promise.race([..."undefined"!=typeof window?[new Promise(t=>window.addEventListener("ethereum#initialized",()=>t(e()),{once:!0}))]:[],new Promise(n=>setTimeout(()=>n(e()),t))]))return!0}throw new c.M}return!!(await (0,i.J)(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=await this.getProvider();if(!n)throw new c.M;let r=u.chains.find(e=>e.id===t);if(!r)throw new a.x3(new l.X4);let o=new Promise(e=>{let n=r=>{"chainId"in r&&r.chainId===t&&(u.emitter.off("change",n),e())};u.emitter.on("change",n)});try{return await Promise.all([n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,s.eC)(t)}]}).then(async()=>{await this.getChainId()===t&&u.emitter.emit("change",{chainId:t})}),o]),r}catch(i){if(4902===i.code||i?.data?.originalError?.code===4902)try{let i,l;let{default:c,...d}=r.blockExplorers??{};e?.blockExplorerUrls?i=e.blockExplorerUrls:c&&(i=[c.url,...Object.values(d).map(e=>e.url)]),l=e?.rpcUrls?.length?e.rpcUrls:[r.rpcUrls.default?.http[0]??""];let f={blockExplorerUrls:i,chainId:(0,s.eC)(t),chainName:e?.chainName??r.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??r.nativeCurrency,rpcUrls:l};return await Promise.all([n.request({method:"wallet_addEthereumChain",params:[f]}).then(async()=>{if(await this.getChainId()===t)u.emitter.emit("change",{chainId:t});else throw new a.ab(Error("User rejected switch after adding network."))}),o]),r}catch(e){throw new a.ab(e)}if(i.code===a.ab.code)throw new a.ab(i);throw new a.x3(i)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(u.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e}),g&&await u.storage?.removeItem(`${this.id}.disconnected`)}else u.emitter.emit("change",{accounts:e.map(e=>(0,r.K)(e))})},onChainChanged(e){let t=Number(e);u.emitter.emit("change",{chainId:t})},async onConnect(e){let r=await this.getAccounts();if(0===r.length)return;let a=Number(e.chainId);u.emitter.emit("connect",{accounts:r,chainId:a});let o=await this.getProvider();o&&(h&&(o.removeListener("connect",h),h=void 0),t||(t=this.onAccountsChanged.bind(this),o.on("accountsChanged",t)),n||(n=this.onChainChanged.bind(this),o.on("chainChanged",n)),m||(m=this.onDisconnect.bind(this),o.on("disconnect",m)))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(u.emitter.emit("disconnect"),t&&(n&&(t.removeListener("chainChanged",n),n=void 0),m&&(t.removeListener("disconnect",m),m=void 0),h||(h=this.onConnect.bind(this),t.on("connect",h))))}}))}d.type="injected";let f={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider:e=>e?.coinbaseWalletExtension?e.coinbaseWalletExtension:p(e,"isCoinbaseWallet")},metaMask:{id:"metaMask",name:"MetaMask",provider:e=>p(e,e=>{if(!e.isMetaMask||e.isBraveWallet&&!e._events&&!e._state)return!1;for(let t of["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"])if(e[t])return!1;return!0})},phantom:{id:"phantom",name:"Phantom",provider:e=>e?.phantom?.ethereum?e.phantom?.ethereum:p(e,"isPhantom")}};function p(e,t){function n(e){return"function"==typeof t?t(e):"string"!=typeof t||e[t]}let r=e.ethereum;return r?.providers?r.providers.find(e=>n(e)):r&&n(r)?r:void 0}},5981:(e,t,n)=>{"use strict";let r;n.d(t,{_:()=>C});var a=n(78313);let o=e=>(t,n,r)=>{let a=r.subscribe;return r.subscribe=(e,t,n)=>{let o=e;if(t){let a=(null==n?void 0:n.equalityFn)||Object.is,i=e(r.getState());o=n=>{let r=e(n);if(!a(i,r)){let e=i;t(i=r,e)}},(null==n?void 0:n.fireImmediately)&&t(i,i)}return a(o)},e(t,n,r)},i=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>i(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>i(t)(e)}}},s=(e,t)=>(n,r,a)=>{let o,s={storage:function(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var t;let r=e=>null===e?null:JSON.parse(e,void 0),a=null!=(t=n.getItem(e))?t:null;return a instanceof Promise?a.then(r):r(a)},setItem:(e,t)=>n.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>n.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},l=!1,c=new Set,u=new Set,d=s.storage;if(!d)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...e)},r,a);let f=()=>{let e=s.partialize({...r()});return d.setItem(s.name,{state:e,version:s.version})},p=a.setState;a.setState=(e,t)=>{p(e,t),f()};let h=e((...e)=>{n(...e),f()},r,a);a.getInitialState=()=>h;let m=()=>{var e,t;if(!d)return;l=!1,c.forEach(e=>{var t;return e(null!=(t=r())?t:h)});let a=(null==(t=s.onRehydrateStorage)?void 0:t.call(s,null!=(e=r())?e:h))||void 0;return i(d.getItem.bind(d))(s.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===s.version)return[!1,e.state];if(s.migrate)return[!0,s.migrate(e.state,e.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;let[a,i]=e;if(n(o=s.merge(i,null!=(t=r())?t:h),!0),a)return f()}).then(()=>{null==a||a(o,void 0),o=r(),l=!0,u.forEach(e=>e(o))}).catch(e=>{null==a||a(void 0,e)})};return a.persist={setOptions:e=>{s={...s,...e},e.storage&&(d=e.storage)},clearStorage:()=>{null==d||d.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>m(),hasHydrated:()=>l,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(u.add(e),()=>{u.delete(e)})},s.skipHydration||m(),o||h},l=e=>{let t;let n=new Set,r=(e,r)=>{let a="function"==typeof e?e(t):e;if(!Object.is(a,t)){let e=t;t=(null!=r?r:"object"!=typeof a||null===a)?a:Object.assign({},t,a),n.forEach(n=>n(t,e))}},a=()=>t,o={setState:r,getState:a,getInitialState:()=>i,subscribe:e=>(n.add(e),()=>n.delete(e))},i=t=e(r,a,o);return o},c=e=>e?l(e):l;var u=n(97365),d=n(64459);class f{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new d.v})}on(e,t){this._emitter.on(e,t)}once(e,t){this._emitter.once(e,t)}off(e,t){this._emitter.off(e,t)}emit(e,...t){let n=t[0];this._emitter.emit(e,{uid:this.uid,...n})}listenerCount(e){return this._emitter.listenerCount(e)}}function p(e,t){return JSON.parse(e,(e,n)=>{let r=n;return r?.__type==="bigint"&&(r=BigInt(r.value)),r?.__type==="Map"&&(r=new Map(r.value)),t?.(e,r)??r})}function h(e,t){return e.slice(0,t).join(".")||"."}function m(e,t){let{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function g(e,t,n,r){return JSON.stringify(e,function(e,t){let n="function"==typeof e,r="function"==typeof t,a=[],o=[];return function(i,s){if("object"==typeof s){if(a.length){let e=m(a,this);0===e?a[a.length]=this:(a.splice(e),o.splice(e)),o[o.length]=i;let n=m(a,s);if(0!==n)return r?t.call(this,i,s,h(o,n)):`[ref=${h(o,n)}]`}else a[0]=s,o[0]=i}return n?e.call(this,i,s):s}}((e,n)=>{let r=n;return"bigint"==typeof r&&(r={__type:"bigint",value:n.toString()}),r instanceof Map&&(r={__type:"Map",value:Array.from(n.entries())}),t?.(e,r)??r},r),n??void 0)}let y={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};var b=n(48421);let w=256;var v=n(67491);function C(e){let t;let{multiInjectedProviderDiscovery:n=!0,storage:i=function(e){let{deserialize:t=p,key:n="wagmi",serialize:r=g,storage:a=y}=e;function o(e){return e instanceof Promise?e.then(e=>e).catch(()=>null):e}return{...a,key:n,async getItem(e,r){let i=a.getItem(`${n}.${e}`),s=await o(i);return s?t(s)??null:r??null},async setItem(e,t){let i=`${n}.${e}`;null===t?await o(a.removeItem(i)):await o(a.setItem(i,r(t)))},async removeItem(e){await o(a.removeItem(`${n}.${e}`))}}}({storage:function(){let e="undefined"!=typeof window&&window.localStorage?window.localStorage:y;return{getItem:t=>e.getItem(t),removeItem(t){e.removeItem(t)},setItem(t,n){try{e.setItem(t,n)}catch{}}}}()}),syncConnectedChain:l=!0,ssr:d=!1,...h}=e,m="undefined"!=typeof window&&n?function(){let e=new Set,t=[],n=()=>(function(e){if("undefined"==typeof window)return;let t=t=>e(t.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)})(n=>{t.some(({info:e})=>e.uuid===n.info.uuid)||(t=[...t,n],e.forEach(e=>e(t,{added:[n]})))}),r=n();return{_listeners:()=>e,clear(){e.forEach(e=>e([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),r?.()},findProvider:({rdns:e})=>t.find(t=>t.info.rdns===e),getProviders:()=>t,reset(){this.clear(),r?.(),r=n()},subscribe:(n,{emitImmediately:r}={})=>(e.add(n),r&&n(t,{added:t}),()=>e.delete(n))}}():void 0,C=c(()=>h.chains),A=c(()=>{let e=[],t=new Set;for(let n of h.connectors??[]){let r=E(n);if(e.push(r),!d&&r.rdns)for(let e of"string"==typeof r.rdns?[r.rdns]:r.rdns)t.add(e)}if(!d&&m)for(let n of m.getProviders())t.has(n.info.rdns)||e.push(E(x(n)));return e});function E(e){let t=new f(function(e=11){if(!r||w+e>512){r="",w=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(w,w+++e)}()),n={...e({emitter:t,chains:C.getState(),storage:i,transports:h.transports}),emitter:t,uid:t.uid};return t.on("connect",O),n.setup?.(),n}function x(e){let{info:t}=e,n=e.provider;return(0,u.L)({target:{...t,id:t.rdns,provider:n}})}let k=new Map;function B(){return{chainId:C.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let j="0.0.0-canary-";t=v.i.startsWith(j)?Number.parseInt(v.i.replace(j,"")):Number.parseInt(v.i.split(".")[0]??"0");let I=c(o(i?s(B,{migrate(e,n){if(n===t)return e;let r=B(),a=S(e,r.chainId);return{...r,chainId:a}},name:"store",partialize:e=>({connections:{__type:"Map",value:Array.from(e.connections.entries()).map(([e,t])=>{let{id:n,name:r,type:a,uid:o}=t.connector;return[e,{...t,connector:{id:n,name:r,type:a,uid:o}}]})},chainId:e.chainId,current:e.current}),merge(e,t){"object"==typeof e&&e&&"status"in e&&delete e.status;let n=S(e,t.chainId);return{...t,...e,chainId:n}},skipHydration:d,storage:i,version:t}):B));function S(e,t){return e&&"object"==typeof e&&"chainId"in e&&"number"==typeof e.chainId&&C.getState().some(t=>t.id===e.chainId)?e.chainId:t}function T(e){I.setState(t=>{let n=t.connections.get(e.uid);return n?{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts??n.accounts,chainId:e.chainId??n.chainId,connector:n.connector})}:t})}function O(e){"connecting"!==I.getState().status&&"reconnecting"!==I.getState().status&&I.setState(t=>{let n=A.getState().find(t=>t.uid===e.uid);return n?(n.emitter.listenerCount("connect")&&n.emitter.off("connect",T),n.emitter.listenerCount("change")||n.emitter.on("change",T),n.emitter.listenerCount("disconnect")||n.emitter.on("disconnect",P),{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts,chainId:e.chainId,connector:n}),current:e.uid,status:"connected"}):t})}function P(e){I.setState(t=>{let n=t.connections.get(e.uid);if(n){let e=n.connector;e.emitter.listenerCount("change")&&n.connector.emitter.off("change",T),e.emitter.listenerCount("disconnect")&&n.connector.emitter.off("disconnect",P),e.emitter.listenerCount("connect")||n.connector.emitter.on("connect",O)}if(t.connections.delete(e.uid),0===t.connections.size)return{...t,connections:new Map,current:null,status:"disconnected"};let r=t.connections.values().next().value;return{...t,connections:new Map(t.connections),current:r.connector.uid}})}return I.setState(B()),l&&I.subscribe(({connections:e,current:t})=>t?e.get(t)?.chainId:void 0,e=>{if(C.getState().some(t=>t.id===e))return I.setState(t=>({...t,chainId:e??t.chainId}))}),m?.subscribe(e=>{let t=new Set,n=new Set;for(let e of A.getState())if(t.add(e.id),e.rdns)for(let t of"string"==typeof e.rdns?[e.rdns]:e.rdns)n.add(t);let r=[];for(let a of e){if(n.has(a.info.rdns))continue;let e=E(x(a));t.has(e.id)||r.push(e)}(!i||I.persist.hasHydrated())&&A.setState(e=>[...e,...r],!0)}),{get chains(){return C.getState()},get connectors(){return A.getState()},storage:i,getClient:function(e={}){let t;let n=e.chainId??I.getState().chainId,r=C.getState().find(e=>e.id===n);if(e.chainId&&!r)throw new b.X4;{let e=k.get(I.getState().chainId);if(e&&!r)return e;if(!r)throw new b.X4}{let e=k.get(n);if(e)return e}if(h.client)t=h.client({chain:r});else{let e=r.id,n=C.getState().map(e=>e.id),o={};for(let[t,r]of Object.entries(h))if("chains"!==t&&"client"!==t&&"connectors"!==t&&"transports"!==t){if("object"==typeof r){if(e in r)o[t]=r[e];else{if(n.some(e=>e in r))continue;o[t]=r}}else o[t]=r}t=(0,a.e)({...o,chain:r,batch:o.batch??{multicall:!0},transport:t=>h.transports[e]({...t,connectors:A})})}return k.set(n,t),t},get state(){return I.getState()},setState(e){let t;t="function"==typeof e?e(I.getState()):e;let n=B();"object"!=typeof t&&(t=n),Object.keys(n).some(e=>!(e in t))&&(t=n),I.setState(t,!0)},subscribe:(e,t,n)=>I.subscribe(e,t,n?{...n,fireImmediately:n.emitImmediately}:void 0),_internal:{mipd:m,store:I,ssr:!!d,syncConnectedChain:l,transports:h.transports,chains:{setState(e){let t="function"==typeof e?e(C.getState()):e;if(0!==t.length)return C.setState(t,!0)},subscribe:e=>C.subscribe(e)},connectors:{providerDetailToConnector:x,setup:E,setState:e=>A.setState("function"==typeof e?e(A.getState()):e,!0),subscribe:e=>A.subscribe(e)},events:{change:T,connect:O,disconnect:P}}}}},59626:(e,t,n)=>{"use strict";n.d(t,{G:()=>l});var r,a,o=n(67491);let i=()=>`@wagmi/core@${o.i}`;var s=function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class l extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return i()}constructor(e,t={}){super(),r.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});let n=t.cause instanceof l?t.cause.details:t.cause?.message?t.cause.message:t.details,a=t.cause instanceof l&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...a?[`Docs: ${this.docsBaseUrl}${a}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...n?[`Details: ${n}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=a,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return s(this,r,"m",a).call(this,this,e)}}r=new WeakSet,a=function e(t,n){return n?.(t)?t:t.cause?s(this,r,"m",e).call(this,t.cause,n):t}},48421:(e,t,n)=>{"use strict";n.d(t,{$S:()=>c,JK:()=>s,X4:()=>a,XZ:()=>l,aH:()=>i,wi:()=>o});var r=n(59626);class a extends r.G{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class o extends r.G{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class i extends r.G{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class s extends r.G{constructor({address:e,connector:t}){super(`Account "${e}" not found for connector "${t.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class l extends r.G{constructor({connectionChainId:e,connectorChainId:t}){super(`The current chain of the connector (id: ${t}) does not match the connection's chain (id: ${e}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class c extends r.G{constructor({connector:e}){super(`Connector "${e.name}" unavailable while reconnecting.`,{details:"During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uid`. All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored. This error commonly occurs for connectors that asynchronously inject after reconnection has already started."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}},23214:(e,t,n)=>{"use strict";n.d(t,{M:()=>a,O:()=>o});var r=n(59626);class a extends r.G{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class o extends r.G{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}},90007:(e,t,n)=>{"use strict";function r(e){return JSON.stringify(e,(e,t)=>!function(e){if(!a(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(a(n)&&n.hasOwnProperty("isPrototypeOf"))}(t)?"bigint"==typeof t?t.toString():t:Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}))}function a(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e){let{_defaulted:t,behavior:n,gcTime:r,initialData:a,initialDataUpdatedAt:o,maxPages:i,meta:s,networkMode:l,queryFn:c,queryHash:u,queryKey:d,queryKeyHashFn:f,retry:p,retryDelay:h,structuralSharing:m,getPreviousPageParam:g,getNextPageParam:y,initialPageParam:b,_optimisticResults:w,enabled:v,notifyOnChangeProps:C,placeholderData:A,refetchInterval:E,refetchIntervalInBackground:x,refetchOnMount:k,refetchOnReconnect:B,refetchOnWindowFocus:j,retryOnMount:I,select:S,staleTime:T,suspense:O,throwOnError:P,config:M,connector:D,query:N,...R}=e;return R}n.d(t,{OP:()=>o,kq:()=>r})},62612:(e,t,n)=>{"use strict";n.d(t,{t:()=>a});var r=n(78897);function a(e,t){return(0,r.tv)(e,t)}},7516:(e,t,n)=>{"use strict";n.d(t,{v:()=>function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){let r,a;if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)&&Array.isArray(n)){if((r=t.length)!==n.length)return!1;for(a=r;0!=a--;)if(!e(t[a],n[a]))return!1;return!0}if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();let o=Object.keys(t);if((r=o.length)!==Object.keys(n).length)return!1;for(a=r;0!=a--;)if(!Object.prototype.hasOwnProperty.call(n,o[a]))return!1;for(a=r;0!=a--;){let r=o[a];if(r&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}})},82140:(e,t,n)=>{"use strict";function r(e,t,n){let r=e[t.name];if("function"==typeof r)return r;let a=e[n];return"function"==typeof a?a:n=>t(e,n)}n.d(t,{s:()=>r})},67491:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});let r="2.17.2"},75040:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});class r extends Error{constructor(e,t={}){let n=t.cause instanceof r?t.cause.details:t.cause?.message?t.cause.message:t.details,a=t.cause instanceof r&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...a?[`Docs: https://abitype.dev${a}`]:[],...n?[`Details: ${n}`]:[],"Version: abitype@1.0.6"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=a,this.metaMessages=t.metaMessages,this.shortMessage=e}}},50924:(e,t,n)=>{"use strict";n.d(t,{F:()=>o,Hk:()=>i,a_:()=>a});var r=n(75040);class a extends r.G{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class o extends r.G{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class i extends r.G{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}},86877:(e,t,n)=>{"use strict";n.d(t,{TT:()=>o,_D:()=>s,aZ:()=>l,jO:()=>a,zL:()=>i});var r=n(75040);class a extends r.G{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class o extends r.G{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class i extends r.G{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class s extends r.G{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class l extends r.G{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}},80972:(e,t,n)=>{"use strict";n.d(t,{H6:()=>i,Vs:()=>o,wn:()=>a});var r=n(75040);class a extends r.G{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class o extends r.G{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class i extends r.G{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}},30419:(e,t,n)=>{"use strict";n.d(t,{Dt:()=>x,EC:()=>v,N0:()=>h,PI:()=>b,QM:()=>A,SA:()=>i,Wg:()=>E,_c:()=>o,a4:()=>y,c3:()=>l,g1:()=>m,l$:()=>f,rh:()=>d,wA:()=>c});var r=n(31856);let a=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function o(e){return a.test(e)}function i(e){return(0,r.Zw)(a,e)}let s=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function l(e){return s.test(e)}function c(e){return(0,r.Zw)(s,e)}let u=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function d(e){return u.test(e)}function f(e){return(0,r.Zw)(u,e)}let p=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function h(e){return p.test(e)}function m(e){return(0,r.Zw)(p,e)}let g=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function y(e){return g.test(e)}function b(e){return(0,r.Zw)(g,e)}let w=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function v(e){return w.test(e)}let C=/^receive\(\) external payable$/;function A(e){return C.test(e)}let E=new Set(["indexed"]),x=new Set(["calldata","memory","storage"])},82206:(e,t,n)=>{"use strict";n.d(t,{D:()=>d});var r=n(31856),a=n(50924),o=n(86877),i=n(80972),s=n(75040);class l extends s.G{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}var c=n(30419),u=n(72202);function d(e){let t={},n=e.length;for(let r=0;r<n;r++){let n=e[r];if(!(0,c.N0)(n))continue;let a=(0,c.g1)(n);if(!a)throw new i.wn({signature:n,type:"struct"});let o=a.properties.split(";"),s=[],l=o.length;for(let e=0;e<l;e++){let t=o[e].trim();if(!t)continue;let n=(0,u.C$)(t,{type:"struct"});s.push(n)}if(!s.length)throw new i.H6({signature:n});t[a.name]=s}let s={},d=Object.entries(t),p=d.length;for(let e=0;e<p;e++){let[n,i]=d[e];s[n]=function e(t,n,i=new Set){let s=[],c=t.length;for(let d=0;d<c;d++){let c=t[d];if(r.cN.test(c.type))s.push(c);else{let t=(0,r.Zw)(f,c.type);if(!t?.type)throw new o.aZ({abiParameter:c});let{array:d,type:p}=t;if(p in n){if(i.has(p))throw new l({type:p});s.push({...c,type:`tuple${d??""}`,components:e(n[p]??[],n,new Set([...i,p]))})}else if((0,u.uN)(p))s.push(c);else throw new a.F({type:p})}}return s}(i,t)}return s}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},72202:(e,t,n)=>{"use strict";n.d(t,{uN:()=>y,C$:()=>m,cK:()=>d});var r=n(31856),a=n(50924),o=n(86877),i=n(80972),s=n(75040);class l extends s.G{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}let c=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);var u=n(30419);function d(e,t={}){if((0,u.rh)(e)){let n=(0,u.l$)(e);if(!n)throw new i.wn({signature:e,type:"function"});let r=g(n.parameters),a=[],o=r.length;for(let e=0;e<o;e++)a.push(m(r[e],{modifiers:u.Dt,structs:t,type:"function"}));let s=[];if(n.returns){let e=g(n.returns),r=e.length;for(let n=0;n<r;n++)s.push(m(e[n],{modifiers:u.Dt,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:a,outputs:s}}if((0,u.c3)(e)){let n=(0,u.wA)(e);if(!n)throw new i.wn({signature:e,type:"event"});let r=g(n.parameters),a=[],o=r.length;for(let e=0;e<o;e++)a.push(m(r[e],{modifiers:u.Wg,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:a}}if((0,u._c)(e)){let n=(0,u.SA)(e);if(!n)throw new i.wn({signature:e,type:"error"});let r=g(n.parameters),a=[],o=r.length;for(let e=0;e<o;e++)a.push(m(r[e],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:a}}if((0,u.a4)(e)){let n=(0,u.PI)(e);if(!n)throw new i.wn({signature:e,type:"constructor"});let r=g(n.parameters),a=[],o=r.length;for(let e=0;e<o;e++)a.push(m(r[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:a}}if((0,u.EC)(e))return{type:"fallback"};if((0,u.QM)(e))return{type:"receive",stateMutability:"payable"};throw new i.Vs({signature:e})}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,p=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^u?int$/;function m(e,t){var n,i,s;let l;let d=(n=t?.type)?`${n}:${e}`:e;if(c.has(d))return c.get(d);let w=r.cN.test(e),v=(0,r.Zw)(w?p:f,e);if(!v)throw new o.jO({param:e});if(v.name&&("address"===(i=v.name)||"bool"===i||"function"===i||"string"===i||"tuple"===i||r.eL.test(i)||r.lh.test(i)||b.test(i)))throw new o.TT({param:e,name:v.name});let C=v.name?{name:v.name}:{},A="indexed"===v.modifier?{indexed:!0}:{},E=t?.structs??{},x={};if(w){l="tuple";let e=g(v.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(m(e[r],{structs:E}));x={components:t}}else if(v.type in E)l="tuple",x={components:E[v.type]};else if(h.test(v.type))l=`${v.type}256`;else if(l=v.type,t?.type!=="struct"&&!y(l))throw new a.Hk({type:l});if(v.modifier){if(!t?.modifiers?.has?.(v.modifier))throw new o.zL({param:e,type:t?.type,modifier:v.modifier});if(u.Dt.has(v.modifier)&&(s=l,!v.array&&"bytes"!==s&&"string"!==s&&"tuple"!==s))throw new o._D({param:e,type:t?.type,modifier:v.modifier})}let k={type:`${l}${v.array??""}`,...C,...A,...x};return c.set(d,k),k}function g(e,t=[],n="",r=0){let a=e.trim().length;for(let o=0;o<a;o++){let a=e[o],i=e.slice(o+1);switch(a){case",":return 0===r?g(i,[...t,n.trim()]):g(i,t,`${n}${a}`,r);case"(":return g(i,t,`${n}${a}`,r+1);case")":return g(i,t,`${n}${a}`,r-1);default:return g(i,t,`${n}${a}`,r)}}if(""===n)return t;if(0!==r)throw new l({current:n,depth:r});return t.push(n.trim()),t}function y(e){return"address"===e||"bool"===e||"function"===e||"string"===e||r.eL.test(e)||r.lh.test(e)}let b=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/},31856:(e,t,n)=>{"use strict";function r(e,t){let n=e.exec(t);return n?.groups}n.d(t,{Zw:()=>r,cN:()=>i,eL:()=>a,lh:()=>o});let a=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,o=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,i=/^\(.+?\).*?$/},19236:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});class r extends Error{constructor(e,t={}){let n=t.cause instanceof r?t.cause.details:t.cause?.message?t.cause.message:t.details,a=t.cause instanceof r&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...a?[`Docs: https://abitype.dev${a}`]:[],...n?[`Details: ${n}`]:[],"Version: abitype@1.0.8"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=a,this.metaMessages=t.metaMessages,this.shortMessage=e}}},89759:(e,t,n)=>{"use strict";n.d(t,{F:()=>o,Hk:()=>i,a_:()=>a});var r=n(19236);class a extends r.G{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class o extends r.G{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class i extends r.G{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}},51099:(e,t,n)=>{"use strict";n.d(t,{$r:()=>a,TT:()=>i,_D:()=>l,aZ:()=>c,jO:()=>o,zL:()=>s});var r=n(19236);class a extends r.G{constructor({params:e}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class o extends r.G{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class i extends r.G{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class s extends r.G{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class l extends r.G{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class c extends r.G{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}},69638:(e,t,n)=>{"use strict";n.d(t,{H6:()=>i,Vs:()=>o,wn:()=>a});var r=n(19236);class a extends r.G{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class o extends r.G{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class i extends r.G{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}},67724:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(69656),a=n(44945),o=n(80843);function i(e){let t=(0,a.D)(e),n=[],i=e.length;for(let a=0;a<i;a++){let i=e[a];(0,r.N0)(i)||n.push((0,o.cK)(i,t))}return n}},69656:(e,t,n)=>{"use strict";n.d(t,{Dt:()=>B,EC:()=>v,LY:()=>x,N0:()=>h,PI:()=>b,QM:()=>E,SA:()=>i,Wg:()=>k,_c:()=>o,a4:()=>y,c3:()=>l,g1:()=>m,l$:()=>f,qm:()=>C,rh:()=>d,wA:()=>c});var r=n(69449);let a=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function o(e){return a.test(e)}function i(e){return(0,r.Zw)(a,e)}let s=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function l(e){return s.test(e)}function c(e){return(0,r.Zw)(s,e)}let u=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function d(e){return u.test(e)}function f(e){return(0,r.Zw)(u,e)}let p=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function h(e){return p.test(e)}function m(e){return(0,r.Zw)(p,e)}let g=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function y(e){return g.test(e)}function b(e){return(0,r.Zw)(g,e)}let w=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function v(e){return w.test(e)}function C(e){return(0,r.Zw)(w,e)}let A=/^receive\(\) external payable$/;function E(e){return A.test(e)}let x=new Set(["memory","indexed","storage","calldata"]),k=new Set(["indexed"]),B=new Set(["calldata","memory","storage"])},44945:(e,t,n)=>{"use strict";n.d(t,{D:()=>d});var r=n(69449),a=n(89759),o=n(51099),i=n(69638),s=n(19236);class l extends s.G{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}var c=n(69656),u=n(80843);function d(e){let t={},n=e.length;for(let r=0;r<n;r++){let n=e[r];if(!(0,c.N0)(n))continue;let a=(0,c.g1)(n);if(!a)throw new i.wn({signature:n,type:"struct"});let o=a.properties.split(";"),s=[],l=o.length;for(let e=0;e<l;e++){let t=o[e].trim();if(!t)continue;let n=(0,u.C$)(t,{type:"struct"});s.push(n)}if(!s.length)throw new i.H6({signature:n});t[a.name]=s}let s={},d=Object.entries(t),p=d.length;for(let e=0;e<p;e++){let[n,i]=d[e];s[n]=function e(t,n,i=new Set){let s=[],c=t.length;for(let d=0;d<c;d++){let c=t[d];if(r.cN.test(c.type))s.push(c);else{let t=(0,r.Zw)(f,c.type);if(!t?.type)throw new o.aZ({abiParameter:c});let{array:d,type:p}=t;if(p in n){if(i.has(p))throw new l({type:p});s.push({...c,type:`tuple${d??""}`,components:e(n[p]??[],n,new Set([...i,p]))})}else if((0,u.uN)(p))s.push(c);else throw new a.F({type:p})}}return s}(i,t)}return s}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},80843:(e,t,n)=>{"use strict";n.d(t,{uN:()=>y,C$:()=>m,cK:()=>d,Q4:()=>g});var r=n(69449),a=n(89759),o=n(51099),i=n(69638),s=n(19236);class l extends s.G{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}let c=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);var u=n(69656);function d(e,t={}){if((0,u.rh)(e))return function(e,t={}){let n=(0,u.l$)(e);if(!n)throw new i.wn({signature:e,type:"function"});let r=g(n.parameters),a=[],o=r.length;for(let e=0;e<o;e++)a.push(m(r[e],{modifiers:u.Dt,structs:t,type:"function"}));let s=[];if(n.returns){let e=g(n.returns),r=e.length;for(let n=0;n<r;n++)s.push(m(e[n],{modifiers:u.Dt,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:a,outputs:s}}(e,t);if((0,u.c3)(e))return function(e,t={}){let n=(0,u.wA)(e);if(!n)throw new i.wn({signature:e,type:"event"});let r=g(n.parameters),a=[],o=r.length;for(let e=0;e<o;e++)a.push(m(r[e],{modifiers:u.Wg,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:a}}(e,t);if((0,u._c)(e))return function(e,t={}){let n=(0,u.SA)(e);if(!n)throw new i.wn({signature:e,type:"error"});let r=g(n.parameters),a=[],o=r.length;for(let e=0;e<o;e++)a.push(m(r[e],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:a}}(e,t);if((0,u.a4)(e))return function(e,t={}){let n=(0,u.PI)(e);if(!n)throw new i.wn({signature:e,type:"constructor"});let r=g(n.parameters),a=[],o=r.length;for(let e=0;e<o;e++)a.push(m(r[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:a}}(e,t);if((0,u.EC)(e))return function(e){let t=(0,u.qm)(e);if(!t)throw new i.wn({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}(e);if((0,u.QM)(e))return{type:"receive",stateMutability:"payable"};throw new i.Vs({signature:e})}let f=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,p=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^u?int$/;function m(e,t){var n,i;let s;let l=function(e,t,n){let r="";if(n)for(let e of Object.entries(n)){if(!e)continue;let t="";for(let n of e[1])t+=`[${n.type}${n.name?`:${n.name}`:""}]`;r+=`(${e[0]}{${t}})`}return t?`${t}:${e}${r}`:e}(e,t?.type,t?.structs);if(c.has(l))return c.get(l);let d=r.cN.test(e),w=(0,r.Zw)(d?p:f,e);if(!w)throw new o.jO({param:e});if(w.name&&("address"===(n=w.name)||"bool"===n||"function"===n||"string"===n||"tuple"===n||r.eL.test(n)||r.lh.test(n)||b.test(n)))throw new o.TT({param:e,name:w.name});let v=w.name?{name:w.name}:{},C="indexed"===w.modifier?{indexed:!0}:{},A=t?.structs??{},E={};if(d){s="tuple";let e=g(w.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(m(e[r],{structs:A}));E={components:t}}else if(w.type in A)s="tuple",E={components:A[w.type]};else if(h.test(w.type))s=`${w.type}256`;else if(s=w.type,t?.type!=="struct"&&!y(s))throw new a.Hk({type:s});if(w.modifier){if(!t?.modifiers?.has?.(w.modifier))throw new o.zL({param:e,type:t?.type,modifier:w.modifier});if(u.Dt.has(w.modifier)&&(i=s,!w.array&&"bytes"!==i&&"string"!==i&&"tuple"!==i))throw new o._D({param:e,type:t?.type,modifier:w.modifier})}let x={type:`${s}${w.array??""}`,...v,...C,...E};return c.set(l,x),x}function g(e,t=[],n="",r=0){let a=e.trim().length;for(let o=0;o<a;o++){let a=e[o],i=e.slice(o+1);switch(a){case",":return 0===r?g(i,[...t,n.trim()]):g(i,t,`${n}${a}`,r);case"(":return g(i,t,`${n}${a}`,r+1);case")":return g(i,t,`${n}${a}`,r-1);default:return g(i,t,`${n}${a}`,r)}}if(""===n)return t;if(0!==r)throw new l({current:n,depth:r});return t.push(n.trim()),t}function y(e){return"address"===e||"bool"===e||"function"===e||"string"===e||r.eL.test(e)||r.lh.test(e)}let b=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/},69449:(e,t,n)=>{"use strict";function r(e,t){let n=e.exec(t);return n?.groups}n.d(t,{Zw:()=>r,cN:()=>i,eL:()=>a,lh:()=>o});let a=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,o=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,i=/^\(.+?\).*?$/},64459:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var r=n(36899)},38769:(e,t,n)=>{"use strict";n.d(t,{o:()=>o});var r=n(5671);function a(e){return{address:e.address,amount:r.xS(e.amount),index:r.xS(e.index),validatorIndex:r.xS(e.validatorIndex)}}function o(e){return{..."bigint"==typeof e.baseFeePerGas&&{baseFeePerGas:r.xS(e.baseFeePerGas)},..."bigint"==typeof e.blobBaseFee&&{blobBaseFee:r.xS(e.blobBaseFee)},..."string"==typeof e.feeRecipient&&{feeRecipient:e.feeRecipient},..."bigint"==typeof e.gasLimit&&{gasLimit:r.xS(e.gasLimit)},..."bigint"==typeof e.number&&{number:r.xS(e.number)},..."bigint"==typeof e.prevRandao&&{prevRandao:r.xS(e.prevRandao)},..."bigint"==typeof e.time&&{time:r.xS(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(a)}}}},84621:(e,t,n)=>{"use strict";n.d(t,{G:()=>r});class r extends Error{constructor(e,t={}){let n=(()=>{if(t.cause instanceof r){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&"details"in t.cause&&"string"==typeof t.cause.details?t.cause.details:t.cause?.message?t.cause.message:t.details})(),a=t.cause instanceof r&&t.cause.docsPath||t.docsPath,o=`https://oxlib.sh${a??""}`;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...n||a?["",n?`Details: ${n}`:void 0,a?`See: ${o}`:void 0]:[]].filter(e=>"string"==typeof e).join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"ox@0.1.1"}),this.cause=t.cause,this.details=n,this.docs=o,this.docsPath=a,this.shortMessage=e}walk(e){return function e(t,n){return n?.(t)?t:t&&"object"==typeof t&&"cause"in t&&t.cause?e(t.cause,n):n?null:t}(this,e)}}},5671:(e,t,n)=>{"use strict";n.d(t,{$s:()=>E,Gu:()=>y,J5:()=>b,M6:()=>C,O3:()=>c,Q_:()=>p,dp:()=>g,eh:()=>h,mL:()=>f,mV:()=>A,tP:()=>m,xS:()=>d,xv:()=>u,zo:()=>l});var r=n(84621),a=n(28727),o=n(80885);let i=new TextEncoder,s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function l(...e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}function c(e,t={}){let n=`0x${Number(e)}`;return"number"==typeof t.size?(o.Yf(n,t.size),p(n,t.size)):n}function u(e,t={}){let n="";for(let t=0;t<e.length;t++)n+=s[e[t]];let r=`0x${n}`;return"number"==typeof t.size?(o.Yf(r,t.size),h(r,t.size)):r}function d(e,t={}){let n;let{signed:r,size:a}=t,o=BigInt(e);a?n=r?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"==typeof e&&(n=BigInt(Number.MAX_SAFE_INTEGER));let i="bigint"==typeof n&&r?-n-1n:0;if(n&&o>n||o<i){let t="bigint"==typeof e?"n":"";throw new b({max:n?`${n}${t}`:void 0,min:`${i}${t}`,signed:r,size:a,value:`${e}${t}`})}let s=(r&&o<0?(1n<<BigInt(8*a))+BigInt(o):o).toString(16),l=`0x${s}`;return a?p(l,a):l}function f(e,t={}){return u(i.encode(e),t)}function p(e,t){return o.vk(e,{dir:"left",size:t})}function h(e,t){return o.vk(e,{dir:"right",size:t})}function m(e,t,n,r={}){let{strict:a}=r;o.EM(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return a&&o.Ro(i,t,n),i}function g(e){return Math.ceil((e.length-2)/2)}function y(e,t={}){let{strict:n=!1}=t;try{return function(e,t={}){let{strict:n=!1}=t;if(!e||"string"!=typeof e)throw new w(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e)||!e.startsWith("0x"))throw new v(e)}(e,{strict:n}),!0}catch{return!1}}class b extends r.G{constructor({max:e,min:t,signed:n,size:r,value:a}){super(`Number \`${a}\` is not in safe${r?` ${8*r}-bit`:""}${n?" signed":" unsigned"} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}r.G;class w extends r.G{constructor(e){super(`Value \`${"object"==typeof e?a.P(e):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class v extends r.G{constructor(e){super(`Value \`${e}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class C extends r.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class A extends r.G{constructor({offset:e,position:t,size:n}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class E extends r.G{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}},28727:(e,t,n)=>{"use strict";function r(e,t,n){return JSON.stringify(e,(e,n)=>"function"==typeof t?t(e,n):"bigint"==typeof n?n.toString()+"#__bigint":n,n)}n.d(t,{P:()=>r})},80885:(e,t,n)=>{"use strict";n.d(t,{EM:()=>o,Ro:()=>i,Yf:()=>a,vk:()=>s});var r=n(5671);function a(e,t){if(r.dp(e)>t)throw new r.M6({givenSize:r.dp(e),maxSize:t})}function o(e,t){if("number"==typeof t&&t>0&&t>r.dp(e)-1)throw new r.mV({offset:t,position:"start",size:r.dp(e)})}function i(e,t,n){if("number"==typeof t&&"number"==typeof n&&r.dp(e)!==n-t)throw new r.mV({offset:n,position:"end",size:r.dp(e)})}function s(e,t={}){let{dir:n,size:a=32}=t;if(0===a)return e;let o=e.replace("0x","");if(o.length>2*a)throw new r.$s({size:Math.ceil(o.length/2),targetSize:a,type:"Hex"});return`0x${o["right"===n?"padEnd":"padStart"](2*a,"0")}`}},38049:(e,t,n)=>{"use strict";n.d(t,{iH:()=>r});let r=[{inputs:[{name:"success",type:"bool"},{name:"ret",type:"bytes"}],name:"DelegateAndRevert",type:"error"},{inputs:[{name:"opIndex",type:"uint256"},{name:"reason",type:"string"}],name:"FailedOp",type:"error"},{inputs:[{name:"opIndex",type:"uint256"},{name:"reason",type:"string"},{name:"inner",type:"bytes"}],name:"FailedOpWithRevert",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"PostOpReverted",type:"error"},{inputs:[],name:"ReentrancyGuardReentrantCall",type:"error"},{inputs:[{name:"sender",type:"address"}],name:"SenderAddressResult",type:"error"},{inputs:[{name:"aggregator",type:"address"}],name:"SignatureValidationFailed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"factory",type:"address"},{indexed:!1,name:"paymaster",type:"address"}],name:"AccountDeployed",type:"event"},{anonymous:!1,inputs:[],name:"BeforeExecution",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"totalDeposit",type:"uint256"}],name:"Deposited",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"revertReason",type:"bytes"}],name:"PostOpRevertReason",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"aggregator",type:"address"}],name:"SignatureAggregatorChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"totalStaked",type:"uint256"},{indexed:!1,name:"unstakeDelaySec",type:"uint256"}],name:"StakeLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawTime",type:"uint256"}],name:"StakeUnlocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawAddress",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"StakeWithdrawn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"paymaster",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"success",type:"bool"},{indexed:!1,name:"actualGasCost",type:"uint256"},{indexed:!1,name:"actualGasUsed",type:"uint256"}],name:"UserOperationEvent",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"nonce",type:"uint256"}],name:"UserOperationPrefundTooLow",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"revertReason",type:"bytes"}],name:"UserOperationRevertReason",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawAddress",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"Withdrawn",type:"event"},{inputs:[{name:"unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"account",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"target",type:"address"},{name:"data",type:"bytes"}],name:"delegateAndRevert",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"account",type:"address"}],name:"depositTo",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"",type:"address"}],name:"deposits",outputs:[{name:"deposit",type:"uint256"},{name:"staked",type:"bool"},{name:"stake",type:"uint112"},{name:"unstakeDelaySec",type:"uint32"},{name:"withdrawTime",type:"uint48"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"getDepositInfo",outputs:[{components:[{name:"deposit",type:"uint256"},{name:"staked",type:"bool"},{name:"stake",type:"uint112"},{name:"unstakeDelaySec",type:"uint32"},{name:"withdrawTime",type:"uint48"}],name:"info",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{name:"sender",type:"address"},{name:"key",type:"uint192"}],name:"getNonce",outputs:[{name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"initCode",type:"bytes"}],name:"getSenderAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"accountGasLimits",type:"bytes32"},{name:"preVerificationGas",type:"uint256"},{name:"gasFees",type:"bytes32"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],name:"getUserOpHash",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{components:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"accountGasLimits",type:"bytes32"},{name:"preVerificationGas",type:"uint256"},{name:"gasFees",type:"bytes32"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOps",type:"tuple[]"},{name:"aggregator",type:"address"},{name:"signature",type:"bytes"}],name:"opsPerAggregator",type:"tuple[]"},{name:"beneficiary",type:"address"}],name:"handleAggregatedOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"accountGasLimits",type:"bytes32"},{name:"preVerificationGas",type:"uint256"},{name:"gasFees",type:"bytes32"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"ops",type:"tuple[]"},{name:"beneficiary",type:"address"}],name:"handleOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"key",type:"uint192"}],name:"incrementNonce",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"callData",type:"bytes"},{components:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"callGasLimit",type:"uint256"},{name:"paymasterVerificationGasLimit",type:"uint256"},{name:"paymasterPostOpGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"paymaster",type:"address"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"}],name:"mUserOp",type:"tuple"},{name:"userOpHash",type:"bytes32"},{name:"prefund",type:"uint256"},{name:"contextOffset",type:"uint256"},{name:"preOpGas",type:"uint256"}],name:"opInfo",type:"tuple"},{name:"context",type:"bytes"}],name:"innerHandleOp",outputs:[{name:"actualGasCost",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"",type:"address"},{name:"",type:"uint192"}],name:"nonceSequenceNumber",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"withdrawAddress",type:"address"},{name:"withdrawAmount",type:"uint256"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]},16148:(e,t,n)=>{"use strict";n.d(t,{VU:()=>r});let r="0x0000000071727De22E5E9d8BAf0edAc6f37da032"},22102:(e,t,n)=>{"use strict";n.d(t,{L:()=>w});var r=n(41228),a=n(71215),o=n(68855),i=n(48174),s=n(77802),l=n(11619);async function c({hash:e,privateKey:t,to:n="object"}){let{r:o,s:i,recovery:s}=r.secp256k1.sign(e.slice(2),t.slice(2),{lowS:!0,extraEntropy:!1}),c={r:(0,a.eC)(o,{size:32}),s:(0,a.eC)(i,{size:32}),v:s?28n:27n,yParity:s};return"bytes"===n||"hex"===n?(0,l.V)({...c,to:n}):c}var u=n(77050);async function d(e){let{chainId:t,nonce:n,privateKey:r,to:a="object"}=e,o=e.contractAddress??e.address,i=await c({hash:(0,u.t)({address:o,chainId:t,nonce:n}),privateKey:r,to:a});return"object"===a?{address:o,chainId:t,nonce:n,...i}:i}var f=n(56423);async function p({message:e,privateKey:t}){return await c({hash:(0,f.r)(e),privateKey:t,to:"hex"})}var h=n(14670),m=n(1876);async function g(e){let{privateKey:t,transaction:n,serializer:r=m.D}=e,a="eip4844"===n.type?{...n,sidecars:!1}:n,o=await c({hash:(0,h.w)(r(a)),privateKey:t});return r(n,o)}var y=n(42092);async function b(e){let{privateKey:t,...n}=e;return await c({hash:(0,y.Jv)(n),privateKey:t,to:"hex"})}function w(e,t={}){let{nonceManager:n}=t,l=(0,a.NC)(r.secp256k1.getPublicKey(e.slice(2),!1));return{...function(e){if("string"==typeof e){if(!(0,i.U)(e,{strict:!1}))throw new o.b({address:e});return{address:e,type:"json-rpc"}}if(!(0,i.U)(e.address,{strict:!1}))throw new o.b({address:e.address});return{address:e.address,nonceManager:e.nonceManager,sign:e.sign,signAuthorization:e.signAuthorization,signMessage:e.signMessage,signTransaction:e.signTransaction,signTypedData:e.signTypedData,source:"custom",type:"local"}}({address:(0,s.y)(l),nonceManager:n,sign:async({hash:t})=>c({hash:t,privateKey:e,to:"hex"}),signAuthorization:async t=>d({...t,privateKey:e}),signMessage:async({message:t})=>p({message:t,privateKey:e}),signTransaction:async(t,{serializer:n}={})=>g({privateKey:e,transaction:t,serializer:n}),signTypedData:async t=>b({...t,privateKey:e})}),publicKey:l,source:"privateKey"}}},79374:(e,t,n)=>{"use strict";function r(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}n.d(t,{T:()=>r})},77802:(e,t,n)=>{"use strict";n.d(t,{y:()=>o});var r=n(90171),a=n(14670);function o(e){let t=(0,a.w)(`0x${e.substring(4)}`).substring(26);return(0,r.x)(`0x${t}`)}},96232:(e,t,n)=>{"use strict";n.d(t,{O:()=>m});var r=n(12829),a=n(13848),o=n(60058),i=n(27497),s=n(86561),l=n(71215),c=n(89748),u=n(23633),d=n(56646),f=n(42560),p=n(90137),h=n(86368);async function m(e,t){let{blockNumber:n,blockTag:m,coinType:g,name:y,gatewayUrls:b,strict:w}=t,{chain:v}=e,C=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!v)throw Error("client chain not configured. universalResolverAddress is required.");return(0,i.L)({blockNumber:n,chain:v,contract:"ensUniversalResolver"})})(),A=v?.ensTlds;if(A&&!A.some(e=>y.endsWith(e)))return null;try{let t=(0,o.R)({abi:r.X$,functionName:"addr",...null!=g?{args:[(0,d.V)(y),BigInt(g)]}:{args:[(0,d.V)(y)]}}),i={address:C,abi:r.k3,functionName:"resolve",args:[(0,l.NC)((0,f.T)(y)),t,b??[u.M]],blockNumber:n,blockTag:m},c=(0,p.s)(e,h.L,"readContract"),w=await c(i);if("0x"===w[0])return null;let v=(0,a.k)({abi:r.X$,args:null!=g?[(0,d.V)(y),BigInt(g)]:void 0,functionName:"addr",data:w[0]});if("0x"===v||"0x00"===(0,s.f)(v))return null;return v}catch(e){if(w)throw e;if((0,c.c)(e,"resolve"))return null;throw e}}},35969:(e,t,n)=>{"use strict";n.d(t,{r:()=>x});var r=n(86368),a=n(13390);class o extends a.G{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`],name:"EnsAvatarInvalidMetadataError"})}}class i extends a.G{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`,{name:"EnsAvatarInvalidNftUriError"})}}class s extends a.G{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class l extends a.G{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}let c=/(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,u=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,d=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,f=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function p(e){try{let t=await fetch(e,{method:"HEAD"});if(200===t.status){let e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){if("object"==typeof t&&void 0!==t.response||!globalThis.hasOwnProperty("Image"))return!1;return new Promise(t=>{let n=new Image;n.onload=()=>{t(!0)},n.onerror=()=>{t(!1)},n.src=e})}}function h(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function m({uri:e,gatewayUrls:t}){let n=d.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};let r=h(t?.ipfs,"https://ipfs.io"),a=h(t?.arweave,"https://arweave.net"),o=e.match(c),{protocol:i,subpath:l,target:p,subtarget:m=""}=o?.groups||{},g="ipns:/"===i||"ipns/"===l,y="ipfs:/"===i||"ipfs/"===l||u.test(e);if(e.startsWith("http")&&!g&&!y){let n=e;return t?.arweave&&(n=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:n,isOnChain:!1,isEncoded:!1}}if((g||y)&&p)return{uri:`${r}/${g?"ipns":"ipfs"}/${p}${m}`,isOnChain:!1,isEncoded:!1};if("ar:/"===i&&p)return{uri:`${a}/${p}${m||""}`,isOnChain:!1,isEncoded:!1};let b=e.replace(f,"");if(b.startsWith("<svg")&&(b=`data:image/svg+xml;base64,${btoa(b)}`),b.startsWith("data:")||b.startsWith("{"))return{uri:b,isOnChain:!0,isEncoded:!1};throw new s({uri:e})}function g(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new o({data:e});return e.image||e.image_url||e.image_data}async function y({gatewayUrls:e,uri:t}){try{let n=await fetch(t).then(e=>e.json());return await b({gatewayUrls:e,uri:g(n)})}catch{throw new s({uri:t})}}async function b({gatewayUrls:e,uri:t}){let{uri:n,isOnChain:r}=m({uri:t,gatewayUrls:e});if(r||await p(n))return n;throw new s({uri:t})}async function w(e,{nft:t}){if("erc721"===t.namespace)return(0,r.L)(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return(0,r.L)(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new l({namespace:t.namespace})}async function v(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?C(e,{gatewayUrls:t,record:n}):b({uri:n,gatewayUrls:t})}async function C(e,{gatewayUrls:t,record:n}){let r=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));let[n,r,a]=t.split("/"),[o,s]=n.split(":"),[l,c]=r.split(":");if(!o||"eip155"!==o.toLowerCase())throw new i({reason:"Only EIP-155 supported"});if(!s)throw new i({reason:"Chain ID not found"});if(!c)throw new i({reason:"Contract address not found"});if(!a)throw new i({reason:"Token ID not found"});if(!l)throw new i({reason:"ERC namespace not found"});return{chainID:Number.parseInt(s),namespace:l.toLowerCase(),contractAddress:c,tokenID:a}}(n),{uri:a,isOnChain:o,isEncoded:s}=m({uri:await w(e,{nft:r}),gatewayUrls:t});if(o&&(a.includes("data:application/json;base64,")||a.startsWith("{")))return b({uri:g(JSON.parse(s?atob(a.replace("data:application/json;base64,","")):a)),gatewayUrls:t});let l=r.tokenID;return"erc1155"===r.namespace&&(l=l.replace("0x","").padStart(64,"0")),y({gatewayUrls:t,uri:a.replace(/(?:0x)?{id}/,l)})}var A=n(90137),E=n(75150);async function x(e,{blockNumber:t,blockTag:n,assetGatewayUrls:r,name:a,gatewayUrls:o,strict:i,universalResolverAddress:s}){let l=await (0,A.s)(e,E.g,"getEnsText")({blockNumber:t,blockTag:n,key:"avatar",name:a,universalResolverAddress:s,gatewayUrls:o,strict:i});if(!l)return null;try{return await v(e,{record:l,gatewayUrls:r})}catch{return null}}},22949:(e,t,n)=>{"use strict";n.d(t,{w:()=>u});var r=n(12829),a=n(27497),o=n(71215),i=n(89748),s=n(42560),l=n(90137),c=n(86368);async function u(e,{address:t,blockNumber:n,blockTag:u,gatewayUrls:d,strict:f,universalResolverAddress:p}){let h=p;if(!h){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");h=(0,a.L)({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}let m=`${t.toLowerCase().substring(2)}.addr.reverse`;try{let a={address:h,abi:r.du,functionName:"reverse",args:[(0,o.NC)((0,s.T)(m))],blockNumber:n,blockTag:u},i=(0,l.s)(e,c.L,"readContract"),[f,p]=d?await i({...a,args:[...a.args,d]}):await i(a);if(t.toLowerCase()!==p.toLowerCase())return null;return f}catch(e){if(f)throw e;if((0,i.c)(e,"reverse"))return null;throw e}}},75150:(e,t,n)=>{"use strict";n.d(t,{g:()=>h});var r=n(12829),a=n(13848),o=n(60058),i=n(27497),s=n(71215),l=n(89748),c=n(23633),u=n(56646),d=n(42560),f=n(90137),p=n(86368);async function h(e,t){let{blockNumber:n,blockTag:h,key:m,name:g,gatewayUrls:y,strict:b}=t,{chain:w}=e,v=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!w)throw Error("client chain not configured. universalResolverAddress is required.");return(0,i.L)({blockNumber:n,chain:w,contract:"ensUniversalResolver"})})(),C=w?.ensTlds;if(C&&!C.some(e=>g.endsWith(e)))return null;try{let t={address:v,abi:r.k3,functionName:"resolve",args:[(0,s.NC)((0,d.T)(g)),(0,o.R)({abi:r.nZ,functionName:"text",args:[(0,u.V)(g),m]}),y??[c.M]],blockNumber:n,blockTag:h},i=(0,f.s)(e,p.L,"readContract"),l=await i(t);if("0x"===l[0])return null;let b=(0,a.k)({abi:r.nZ,functionName:"text",data:l[0]});return""===b?null:b}catch(e){if(b)throw e;if((0,l.c)(e,"resolve"))return null;throw e}}},94425:(e,t,n)=>{"use strict";n.d(t,{R:()=>A});var r=n(67724),a=n(38769),o=n(79374),i=n(12829),s=n(64108),l=n(13390),c=n(97113),u=n(78737),d=n(13848),f=n(54759),p=n(60058),h=n(27497),m=n(71215),g=n(99064),y=n(92013),b=n(58853),w=n(24452),v=n(47188),C=n(43107);async function A(e,t){let{account:i=e.account,authorizationList:d,batch:p=!!e.batch?.multicall,blockNumber:h,blockTag:w="latest",accessList:A,blobs:x,blockOverrides:k,code:B,data:j,factory:I,factoryData:S,gas:T,gasPrice:O,maxFeePerBlobGas:P,maxFeePerGas:M,maxPriorityFeePerGas:D,nonce:N,to:R,value:F,stateOverride:L,..._}=t,U=i?(0,o.T)(i):void 0;if(B&&(I||S))throw new l.G("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(B&&R)throw new l.G("Cannot provide both `code` & `to` as parameters.");let z=B&&j,W=I&&S&&R&&j,q=z||W,G=z?function(e){let{code:t,data:n}=e;return(0,f.w)({abi:(0,r.V)(["constructor(bytes, bytes)"]),bytecode:s.NO,args:[t,n]})}({code:B,data:j}):W?function(e){let{data:t,factory:n,factoryData:a,to:o}=e;return(0,f.w)({abi:(0,r.V)(["constructor(address, bytes, address, bytes)"]),bytecode:s.pG,args:[o,t,n,a]})}({data:j,factory:I,factoryData:S,to:R}):j;try{(0,C.F)(t);let n=("bigint"==typeof h?(0,m.eC)(h):void 0)||w,r=k?a.o(k):void 0,o=(0,v.mF)(L),i=e.chain?.formatters?.transactionRequest?.format,s=(i||b.tG)({...(0,y.K)(_,{format:i}),from:U?.address,accessList:A,authorizationList:d,blobs:x,data:G,gas:T,gasPrice:O,maxFeePerBlobGas:P,maxFeePerGas:M,maxPriorityFeePerGas:D,nonce:N,to:q?void 0:R,value:F});if(p&&function({request:e}){let{data:t,to:n,...r}=e;return!(!t||t.startsWith("0x82ad56cb"))&&!!n&&!(Object.values(r).filter(e=>void 0!==e).length>0)}({request:s})&&!o&&!r)try{return await E(e,{...s,blockNumber:h,blockTag:w})}catch(e){if(!(e instanceof c.pZ)&&!(e instanceof c.mm))throw e}let l=(()=>{let e=[s,n];return o&&r?[...e,o,r]:o?[...e,o]:r?[...e,{},r]:e})(),u=await e.request({method:"eth_call",params:l});if("0x"===u)return{data:void 0};return{data:u}}catch(i){let r=function(e){if(!(e instanceof l.G))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(i),{offchainLookup:a,offchainLookupSignature:o}=await n.e(4530).then(n.bind(n,14530));if(!1!==e.ccipRead&&r?.slice(0,10)===o&&R)return{data:await a(e,{data:r,to:R})};if(q&&r?.slice(0,10)==="0x101bb98d")throw new u.Mo({factory:I});throw(0,g.P)(i,{...t,account:U,chain:e.chain})}}async function E(e,t){let{batchSize:n=1024,wait:r=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:a,blockTag:o="latest",data:s,multicallAddress:l,to:f}=t,g=l;if(!g){if(!e.chain)throw new c.pZ;g=(0,h.L)({blockNumber:a,chain:e.chain,contract:"multicall3"})}let y=("bigint"==typeof a?(0,m.eC)(a):void 0)||o,{schedule:b}=(0,w.S)({id:`${e.uid}.${y}`,wait:r,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*n,fn:async t=>{let n=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),r=(0,p.R)({abi:i.F8,args:[n],functionName:"aggregate3"}),a=await e.request({method:"eth_call",params:[{data:r,to:g},y]});return(0,d.k)({abi:i.F8,args:[n],functionName:"aggregate3",data:a||"0x"})}}),[{returnData:v,success:C}]=await b({data:s,to:f});if(!C)throw new u.VQ({data:v});return"0x"===v?{data:void 0}:{data:v}}},92683:(e,t,n)=>{"use strict";n.d(t,{C:()=>c,X:()=>l});var r=n(64443),a=n(90137),o=n(27055),i=n(57014),s=n(22856);async function l(e,t){return c(e,t)}async function c(e,t){let{block:n,chain:l=e.chain,request:c,type:u="eip1559"}=t||{},d=await (async()=>"function"==typeof l?.fees?.baseFeeMultiplier?l.fees.baseFeeMultiplier({block:n,client:e,request:c}):l?.fees?.baseFeeMultiplier??1.2)();if(d<1)throw new r.Fz;let f=10**(d.toString().split(".")[1]?.length??0),p=e=>e*BigInt(Math.ceil(d*f))/BigInt(f),h=n||await (0,a.s)(e,i.Q,"getBlock")({});if("function"==typeof l?.fees?.estimateFeesPerGas){let t=await l.fees.estimateFeesPerGas({block:n,client:e,multiply:p,request:c,type:u});if(null!==t)return t}if("eip1559"===u){if("bigint"!=typeof h.baseFeePerGas)throw new r.e5;let t="bigint"==typeof c?.maxPriorityFeePerGas?c.maxPriorityFeePerGas:await (0,o.h)(e,{block:h,chain:l,request:c}),n=p(h.baseFeePerGas);return{maxFeePerGas:c?.maxFeePerGas??n+t,maxPriorityFeePerGas:t}}return{gasPrice:c?.gasPrice??p(await (0,a.s)(e,s.o,"getGasPrice")({}))}}},23886:(e,t,n)=>{"use strict";n.d(t,{Q:()=>w});var r=n(79374),a=n(13390),o=n(36556),i=n(71215),s=n(48968),l=n(96222),c=n(61915);class u extends a.G{constructor(e,{account:t,docsPath:n,chain:r,data:a,gas:o,gasPrice:i,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:f,to:p,value:h}){super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",(0,c.xr)({from:t?.address,to:p,value:void 0!==h&&`${(0,s.d)(h)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:o,gasPrice:void 0!==i&&`${(0,l.o)(i)} gwei`,maxFeePerGas:void 0!==u&&`${(0,l.o)(u)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,l.o)(d)} gwei`,nonce:f})].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}var d=n(39677),f=n(71229),p=n(92013),h=n(58853),m=n(47188),g=n(43107),y=n(72032),b=n(7949);async function w(e,t){let{account:n=e.account}=t,s=n?(0,r.T)(n):void 0;try{let{accessList:n,authorizationList:r,blobs:c,blobVersionedHashes:u,blockNumber:d,blockTag:f,data:w,gas:v,gasPrice:C,maxFeePerBlobGas:A,maxFeePerGas:E,maxPriorityFeePerGas:x,nonce:k,value:B,stateOverride:j,...I}=await (0,y.ZE)(e,{...t,parameters:s?.type==="local"?void 0:["blobVersionedHashes"]}),S=("bigint"==typeof d?(0,i.eC)(d):void 0)||f,T=(0,m.mF)(j),O=await (async()=>I.to?I.to:r&&r.length>0?await (0,o.z)({authorization:r[0]}).catch(()=>{throw new a.G("`to` is required. Could not infer from `authorizationList`")}):void 0)();(0,g.F)(t);let P=e.chain?.formatters?.transactionRequest?.format,M=(P||h.tG)({...(0,p.K)(I,{format:P}),from:s?.address,accessList:n,authorizationList:r,blobs:c,blobVersionedHashes:u,data:w,gas:v,gasPrice:C,maxFeePerBlobGas:A,maxFeePerGas:E,maxPriorityFeePerGas:x,nonce:k,to:O,value:B});function l(t){let{block:n,request:r,rpcStateOverride:a}=t;return e.request({method:"eth_estimateGas",params:a?[r,n??"latest",a]:n?[r,n]:[r]})}let D=BigInt(await l({block:S,request:M,rpcStateOverride:T}));if(r){let t=await (0,b.s)(e,{address:M.from}),n=await Promise.all(r.map(async e=>{let{address:n}=e,r=await l({block:S,request:{authorizationList:void 0,data:w,from:s?.address,to:n,value:(0,i.eC)(t)},rpcStateOverride:T}).catch(()=>100000n);return 2n*BigInt(r)}));D+=n.reduce((e,t)=>e+t,0n)}return D}catch(n){throw function(e,{docsPath:t,...n}){return new u((()=>{let t=(0,f.k)(e,n);return t instanceof d.cj?e:t})(),{docsPath:t,...n})}(n,{...t,account:s,chain:e.chain})}}},27055:(e,t,n)=>{"use strict";n.d(t,{_:()=>l,h:()=>c});var r=n(64443),a=n(24617),o=n(90137),i=n(57014),s=n(22856);async function l(e,t){return c(e,t)}async function c(e,t){let{block:n,chain:l=e.chain,request:c}=t||{};try{let t=l?.fees?.maxPriorityFeePerGas??l?.fees?.defaultPriorityFee;if("function"==typeof t){let r=n||await (0,o.s)(e,i.Q,"getBlock")({}),a=await t({block:r,client:e,request:c});if(null===a)throw Error();return a}if(void 0!==t)return t;let r=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,a.y_)(r)}catch{let[t,a]=await Promise.all([n?Promise.resolve(n):(0,o.s)(e,i.Q,"getBlock")({}),(0,o.s)(e,s.o,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new r.e5;let l=a-t.baseFeePerGas;if(l<0n)return 0n;return l}}},7949:(e,t,n)=>{"use strict";n.d(t,{s:()=>a});var r=n(71215);async function a(e,{address:t,blockNumber:n,blockTag:a="latest"}){let o="bigint"==typeof n?(0,r.eC)(n):void 0;return BigInt(await e.request({method:"eth_getBalance",params:[t,o||a]}))}},57014:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});var r=n(66483),a=n(71215),o=n(32448);async function i(e,{blockHash:t,blockNumber:n,blockTag:i,includeTransactions:s}={}){let l=s??!1,c=void 0!==n?(0,a.eC)(n):void 0,u=null;if(!(u=t?await e.request({method:"eth_getBlockByHash",params:[t,l]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[c||(i??"latest"),l]},{dedupe:!!c})))throw new r.f({blockHash:t,blockNumber:n});return(e.chain?.formatters?.block?.format||o.Z)(u)}},55329:(e,t,n)=>{"use strict";n.d(t,{z:()=>s});let r=new Map,a=new Map;async function o(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){let o=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:n=>t.set(e,n)}),n=t(e,r),o=t(e,a);return{clear:()=>{n.clear(),o.clear()},promise:n,response:o}}(t),i=o.response.get();if(i&&n>0&&new Date().getTime()-i.created.getTime()<n)return i.data;let s=o.promise.get();s||(s=e(),o.promise.set(s));try{let e=await s;return o.response.set({created:new Date,data:e}),e}finally{o.promise.clear()}}let i=e=>`blockNumber.${e}`;async function s(e,{cacheTime:t=e.cacheTime}={}){return BigInt(await o(()=>e.request({method:"eth_blockNumber"}),{cacheKey:i(e.uid),cacheTime:t}))}},4771:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(24617);async function a(e){let t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,r.ly)(t)}},22856:(e,t,n)=>{"use strict";async function r(e){return BigInt(await e.request({method:"eth_gasPrice"}))}n.d(t,{o:()=>r})},36372:(e,t,n)=>{"use strict";n.d(t,{f:()=>i});var r=n(61915),a=n(71215),o=n(6906);async function i(e,{blockHash:t,blockNumber:n,blockTag:i,hash:s,index:l}){let c=i||"latest",u=void 0!==n?(0,a.eC)(n):void 0,d=null;if(s?d=await e.request({method:"eth_getTransactionByHash",params:[s]},{dedupe:!0}):t?d=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,a.eC)(l)]},{dedupe:!0}):(u||c)&&(d=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[u||c,(0,a.eC)(l)]},{dedupe:!!u})),!d)throw new r.Bh({blockHash:t,blockNumber:n,blockTag:c,hash:s,index:l});return(e.chain?.formatters?.transaction?.format||o.Tr)(d)}},97150:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var r=n(90137),a=n(55329),o=n(36372);async function i(e,{hash:t,transactionReceipt:n}){let[i,s]=await Promise.all([(0,r.s)(e,a.z,"getBlockNumber")({}),t?(0,r.s)(e,o.f,"getTransaction")({hash:t}):void 0]),l=n?.blockNumber||s?.blockNumber;return l?i-l+1n:0n}},42786:(e,t,n)=>{"use strict";n.d(t,{K:()=>o});var r=n(24617),a=n(71215);async function o(e,{address:t,blockTag:n="latest",blockNumber:o}){let i=await e.request({method:"eth_getTransactionCount",params:[t,"bigint"==typeof o?(0,a.eC)(o):n]},{dedupe:!!o});return(0,r.ly)(i)}},54893:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var r=n(61915),a=n(62498);async function o(e,{hash:t}){let n=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!n)throw new r.Yb({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||a.fA)(n)}},3235:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(12829),a=n(3512),o=n(13390),i=n(78737),s=n(13848),l=n(60058),c=n(27497),u=n(85683),d=n(90137),f=n(86368);async function p(e,t){let{account:n,allowFailure:p=!0,batchSize:h,blockNumber:m,blockTag:g,multicallAddress:y,stateOverride:b}=t,w=t.contracts,v=h??("object"==typeof e.batch?.multicall&&e.batch.multicall.batchSize||1024),C=y;if(!C){if(!e.chain)throw Error("client chain not configured. multicallAddress is required.");C=(0,c.L)({blockNumber:m,chain:e.chain,contract:"multicall3"})}let A=[[]],E=0,x=0;for(let e=0;e<w.length;e++){let{abi:t,address:r,args:a,functionName:o}=w[e];try{let e=(0,l.R)({abi:t,args:a,functionName:o});x+=(e.length-2)/2,v>0&&x>v&&A[E].length>0&&(E++,x=(e.length-2)/2,A[E]=[]),A[E]=[...A[E],{allowFailure:!0,callData:e,target:r}]}catch(i){let e=(0,u.S)(i,{abi:t,address:r,args:a,docsPath:"/docs/contract/multicall",functionName:o,sender:n});if(!p)throw e;A[E]=[...A[E],{allowFailure:!0,callData:"0x",target:r}]}}let k=await Promise.allSettled(A.map(t=>(0,d.s)(e,f.L,"readContract")({abi:r.F8,account:n,address:C,args:[t],blockNumber:m,blockTag:g,functionName:"aggregate3",stateOverride:b}))),B=[];for(let e=0;e<k.length;e++){let t=k[e];if("rejected"===t.status){if(!p)throw t.reason;for(let n=0;n<A[e].length;n++)B.push({status:"failure",error:t.reason,result:void 0});continue}let n=t.value;for(let t=0;t<n.length;t++){let{returnData:r,success:o}=n[t],{callData:l}=A[e][t],{abi:c,address:d,functionName:f,args:h}=w[B.length];try{if("0x"===l)throw new a.wb;if(!o)throw new i.VQ({data:r});let e=(0,s.k)({abi:c,args:h,data:r,functionName:f});B.push(p?{result:e,status:"success"}:e)}catch(t){let e=(0,u.S)(t,{abi:c,address:d,args:h,docsPath:"/docs/contract/multicall",functionName:f});if(!p)throw e;B.push({error:e,result:void 0,status:"failure"})}}}if(B.length!==w.length)throw new o.G("multicall results mismatch");return B}},86368:(e,t,n)=>{"use strict";n.d(t,{L:()=>l});var r=n(13848),a=n(60058),o=n(85683),i=n(90137),s=n(94425);async function l(e,t){let{abi:n,address:l,args:c,functionName:u,...d}=t,f=(0,a.R)({abi:n,args:c,functionName:u});try{let{data:t}=await (0,i.s)(e,s.R,"call")({...d,data:f,to:l});return(0,r.k)({abi:n,args:c,functionName:u,data:t||"0x"})}catch(e){throw(0,o.S)(e,{abi:n,address:l,args:c,docsPath:"/docs/contract/readContract",functionName:u})}}},30680:(e,t,n)=>{"use strict";n.d(t,{a:()=>c});var r=n(79374),a=n(13848),o=n(60058),i=n(85683),s=n(90137),l=n(94425);async function c(e,t){let{abi:n,address:c,args:u,dataSuffix:d,functionName:f,...p}=t,h=p.account?(0,r.T)(p.account):e.account,m=(0,o.R)({abi:n,args:u,functionName:f});try{let{data:r}=await (0,s.s)(e,l.R,"call")({batch:!1,data:`${m}${d?d.replace("0x",""):""}`,to:c,...p,account:h}),o=(0,a.k)({abi:n,args:u,functionName:f,data:r||"0x"}),i=n.filter(e=>"name"in e&&e.name===t.functionName);return{result:o,request:{abi:i,address:c,args:u,dataSuffix:d,functionName:f,...p,account:h}}}catch(e){throw(0,i.S)(e,{abi:n,address:c,args:u,docsPath:"/docs/contract/simulateContract",functionName:f,sender:h?.address})}}},81332:(e,t,n)=>{"use strict";n.d(t,{e:()=>h});var r=n(66483),a=n(61915),o=n(90137),i=n(5349),s=n(13589),l=n(51626),c=n(18752),u=n(57014),d=n(36372),f=n(54893),p=n(59114);async function h(e,{confirmations:t=1,hash:n,onReplaced:h,pollingInterval:m=e.pollingInterval,retryCount:g=6,retryDelay:y=({count:e})=>200*~~(1<<e),timeout:b=18e4}){let w,v,C,A,E;let x=(0,c.P)(["waitForTransactionReceipt",e.uid,n]),k=!1,{promise:B,resolve:j,reject:I}=(0,s.n)(),S=b?setTimeout(()=>{E(),A(),I(new a.mc({hash:n}))},b):void 0;return A=(0,i.N7)(x,{onReplaced:h,resolve:j,reject:I},i=>{E=(0,o.s)(e,p.q,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:m,async onBlockNumber(s){let c=e=>{clearTimeout(S),E(),e(),A()},p=s;if(!k)try{if(C){if(t>1&&(!C.blockNumber||p-C.blockNumber+1n<t))return;c(()=>i.resolve(C));return}if(w||(k=!0,await (0,l.J)(async()=>{(w=await (0,o.s)(e,d.f,"getTransaction")({hash:n})).blockNumber&&(p=w.blockNumber)},{delay:y,retryCount:g}),k=!1),C=await (0,o.s)(e,f.a,"getTransactionReceipt")({hash:n}),t>1&&(!C.blockNumber||p-C.blockNumber+1n<t))return;c(()=>i.resolve(C))}catch(n){if(n instanceof a.Bh||n instanceof a.Yb){if(!w){k=!1;return}try{v=w,k=!0;let n=await (0,l.J)(()=>(0,o.s)(e,u.Q,"getBlock")({blockNumber:p,includeTransactions:!0}),{delay:y,retryCount:g,shouldRetry:({error:e})=>e instanceof r.f});k=!1;let a=n.transactions.find(({from:e,nonce:t})=>e===v.from&&t===v.nonce);if(!a||(C=await (0,o.s)(e,f.a,"getTransactionReceipt")({hash:a.hash}),t>1&&(!C.blockNumber||p-C.blockNumber+1n<t)))return;let s="replaced";a.to===v.to&&a.value===v.value&&a.input===v.input?s="repriced":a.from===a.to&&0n===a.value&&(s="cancelled"),c(()=>{i.onReplaced?.({reason:s,replacedTransaction:v,transaction:a,transactionReceipt:C}),i.resolve(C)})}catch(e){c(()=>i.reject(e))}}else c(()=>i.reject(n))}}})}),B}},59114:(e,t,n)=>{"use strict";n.d(t,{q:()=>c});var r=n(24617),a=n(90137),o=n(5349),i=n(5041),s=n(18752),l=n(55329);function c(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:c,onError:u,poll:d,pollingInterval:f=e.pollingInterval}){let p;return(void 0!==d?d:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type))?(()=>{let r=(0,s.P)(["watchBlockNumber",e.uid,t,n,f]);return(0,o.N7)(r,{onBlockNumber:c,onError:u},r=>(0,i.$)(async()=>{try{let t=await (0,a.s)(e,l.z,"getBlockNumber")({cacheTime:0});if(p){if(t===p)return;if(t-p>1&&n)for(let e=p+1n;e<t;e++)r.onBlockNumber(e,p),p=e}(!p||t>p)&&(r.onBlockNumber(t,p),p=t)}catch(e){r.onError?.(e)}},{emitOnBegin:t,interval:f}))})():(()=>{let a=(0,s.P)(["watchBlockNumber",e.uid,t,n]);return(0,o.N7)(a,{onBlockNumber:c,onError:u},t=>{let n=!0,a=()=>n=!1;return(async()=>{try{let o=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:i}=await o.subscribe({params:["newHeads"],onData(e){if(!n)return;let a=(0,r.y_)(e.result?.number);t.onBlockNumber(a,p),p=a},onError(e){t.onError?.(e)}});a=i,n||a()}catch(e){u?.(e)}})(),()=>a()})})()}},72032:(e,t,n)=>{"use strict";n.d(t,{QZ:()=>y,ZE:()=>w});var r=n(79374),a=n(92683),o=n(23886),i=n(57014),s=n(42786),l=n(64443),c=n(50763),u=n(70544),d=n(72183),f=n(89387),p=n(90137),h=n(43107),m=n(95709),g=n(4771);let y=["blobVersionedHashes","chainId","fees","gas","nonce","type"],b=new Map;async function w(e,t){let n,w;let{account:v=e.account,blobs:C,chain:A,gas:E,kzg:x,nonce:k,nonceManager:B,parameters:j=y,type:I}=t,S=v?(0,r.T)(v):v,T={...t,...S?{from:S?.address}:{}};async function O(){return n||(n=await (0,p.s)(e,i.Q,"getBlock")({blockTag:"latest"}))}async function P(){return w||(A?A.id:void 0!==t.chainId?t.chainId:w=await (0,p.s)(e,g.L,"getChainId")({}))}if(j.includes("nonce")&&void 0===k&&S){if(B){let t=await P();T.nonce=await B.consume({address:S.address,chainId:t,client:e})}else T.nonce=await (0,p.s)(e,s.K,"getTransactionCount")({address:S.address,blockTag:"pending"})}if((j.includes("blobVersionedHashes")||j.includes("sidecars"))&&C&&x){let e=(0,c.P)({blobs:C,kzg:x});if(j.includes("blobVersionedHashes")){let t=(0,d.C)({commitments:e,to:"hex"});T.blobVersionedHashes=t}if(j.includes("sidecars")){let t=(0,u.y)({blobs:C,commitments:e,kzg:x}),n=(0,f.j)({blobs:C,commitments:e,proofs:t,to:"hex"});T.sidecars=n}}if(j.includes("chainId")&&(T.chainId=await P()),(j.includes("fees")||j.includes("type"))&&void 0===I)try{T.type=(0,m.l)(T)}catch{let t=b.get(e.uid);if(void 0===t){let n=await O();t="bigint"==typeof n?.baseFeePerGas,b.set(e.uid,t)}T.type=t?"eip1559":"legacy"}if(j.includes("fees")){if("legacy"!==T.type&&"eip2930"!==T.type){if(void 0===T.maxFeePerGas||void 0===T.maxPriorityFeePerGas){let n=await O(),{maxFeePerGas:r,maxPriorityFeePerGas:o}=await (0,a.C)(e,{block:n,chain:A,request:T});if(void 0===t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<o)throw new l.ld({maxPriorityFeePerGas:o});T.maxPriorityFeePerGas=o,T.maxFeePerGas=r}}else{if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)throw new l.e5;if(void 0===t.gasPrice){let t=await O(),{gasPrice:n}=await (0,a.C)(e,{block:t,chain:A,request:T,type:"legacy"});T.gasPrice=n}}}return j.includes("gas")&&void 0===E&&(T.gas=await (0,p.s)(e,o.Q,"estimateGas")({...T,account:S?{address:S.address,type:"json-rpc"}:S})),(0,h.F)(T),delete T.parameters,T}},11288:(e,t,n)=>{"use strict";async function r(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}n.d(t,{p:()=>r})},49632:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});let r=(0,n(98514).a)({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xce01f8eee7E479C928F8919abD53E553a36CeF67",blockCreated:19258213},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}})},78313:(e,t,n)=>{"use strict";n.d(t,{e:()=>o});var r=n(79374),a=n(87953);function o(e){let{batch:t,cacheTime:n=e.pollingInterval??4e3,ccipRead:o,key:i="base",name:s="Base Client",pollingInterval:l=4e3,type:c="base"}=e,u=e.chain,d=e.account?(0,r.T)(e.account):void 0,{config:f,request:p,value:h}=e.transport({chain:u,pollingInterval:l}),m={account:d,batch:t,cacheTime:n,ccipRead:o,chain:u,key:i,name:s,pollingInterval:l,request:p,transport:{...f,...h},type:c,uid:(0,a.h)()};return Object.assign(m,{extend:function e(t){return n=>{let r=n(t);for(let e in m)delete r[e];let a={...t,...r};return Object.assign(a,{extend:e(a)})}}(m)})}},69526:(e,t,n)=>{"use strict";n.d(t,{I:()=>tF});var r=n(96232),a=n(35969),o=n(22949),i=n(27497),s=n(71215),l=n(42560),c=n(90137),u=n(86368);async function d(e,t){let{blockNumber:n,blockTag:r,name:a}=t,{chain:o}=e,d=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!o)throw Error("client chain not configured. universalResolverAddress is required.");return(0,i.L)({blockNumber:n,chain:o,contract:"ensUniversalResolver"})})(),f=o?.ensTlds;if(f&&!f.some(e=>a.endsWith(e)))throw Error(`${a} is not a valid ENS TLD (${f?.join(", ")}) for chain "${o.name}" (id: ${o.id}).`);let[p]=await (0,c.s)(e,u.L,"readContract")({address:d,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,s.NC)((0,l.T)(a))],blockNumber:n,blockTag:r});return p}var f=n(75150),p=n(94425),h=n(79374),m=n(99064),g=n(92013),y=n(58853),b=n(43107);async function w(e,t){let{account:n=e.account,blockNumber:r,blockTag:a="latest",blobs:o,data:i,gas:l,gasPrice:c,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:f,to:p,value:w,...v}=t,C=n?(0,h.T)(n):void 0;try{(0,b.F)(t);let n="bigint"==typeof r?(0,s.eC)(r):void 0,h=e.chain?.formatters?.transactionRequest?.format,m=(h||y.tG)({...(0,g.K)(v,{format:h}),from:C?.address,blobs:o,data:i,gas:l,gasPrice:c,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:f,to:p,value:w}),A=await e.request({method:"eth_createAccessList",params:[m,n||a]});return{accessList:A.accessList,gasUsed:BigInt(A.gasUsed)}}catch(n){throw(0,m.P)(n,{...t,account:C,chain:e.chain})}}function v(e,{method:t}){let n={};return"fallback"===e.transport.type&&e.transport.onResponse?.(({method:e,response:r,status:a,transport:o})=>{"success"===a&&t===e&&(n[r]=o.request)}),t=>n[t]||e.request}async function C(e){let t=v(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}var A=n(3512),E=n(13390);class x extends E.G{constructor(e){super(`Filter type "${e}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}var k=n(11147),B=n(14670),j=n(96091),I=n(78692),S=n(21467),T=n(43266);let O="/docs/contract/encodeEventTopics";function P(e){let{abi:t,eventName:n,args:r}=e,a=t[0];if(n){let e=(0,T.mE)({abi:t,name:n});if(!e)throw new A.mv(n,{docsPath:O});a=e}if("event"!==a.type)throw new A.mv(void 0,{docsPath:O});let o=(0,S.t)(a),i=(0,j.n)(o),s=[];if(r&&"inputs"in a){let e=a.inputs?.filter(e=>"indexed"in e&&e.indexed),t=Array.isArray(r)?r:Object.values(r).length>0?e?.map(e=>r[e.name])??[]:[];t.length>0&&(s=e?.map((e,n)=>Array.isArray(t[n])?t[n].map((r,a)=>M({param:e,value:t[n][a]})):void 0!==t[n]&&null!==t[n]?M({param:e,value:t[n]}):null)??[])}return[i,...s]}function M({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,B.w)((0,k.O0)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new x(e.type);return(0,I.E)([e],[t])}async function D(e,t){let{address:n,abi:r,args:a,eventName:o,fromBlock:i,strict:l,toBlock:c}=t,u=v(e,{method:"eth_newFilter"}),d=o?P({abi:r,args:a,eventName:o}):void 0,f=await e.request({method:"eth_newFilter",params:[{address:n,fromBlock:"bigint"==typeof i?(0,s.eC)(i):i,toBlock:"bigint"==typeof c?(0,s.eC)(c):c,topics:d}]});return{abi:r,args:a,eventName:o,id:f,request:u(f),strict:!!l,type:"event"}}async function N(e,{address:t,args:n,event:r,events:a,fromBlock:o,strict:i,toBlock:l}={}){let c=a??(r?[r]:void 0),u=v(e,{method:"eth_newFilter"}),d=[];c&&(d=[c.flatMap(e=>P({abi:[e],eventName:e.name,args:n}))],r&&(d=d[0]));let f=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof o?(0,s.eC)(o):o,toBlock:"bigint"==typeof l?(0,s.eC)(l):l,...d.length?{topics:d}:{}}]});return{abi:c,args:n,eventName:r?r.name:void 0,fromBlock:o,id:f,request:u(f),strict:!!i,toBlock:l,type:"event"}}async function R(e){let t=v(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}var F=n(60058),L=n(85683),_=n(23886);async function U(e,t){let{abi:n,address:r,args:a,functionName:o,dataSuffix:i,...s}=t,l=(0,F.R)({abi:n,args:a,functionName:o});try{return await (0,c.s)(e,_.Q,"estimateGas")({data:`${l}${i?i.replace("0x",""):""}`,to:r,...s})}catch(t){let e=s.account?(0,h.T)(s.account):void 0;throw(0,L.S)(t,{abi:n,address:r,args:a,docsPath:"/docs/contract/estimateContractGas",functionName:o,sender:e?.address})}}var z=n(92683),W=n(27055),q=n(7949);async function G(e){return BigInt(await e.request({method:"eth_blobBaseFee"}))}var Q=n(57014),H=n(55329),$=n(24617);async function K(e,{blockHash:t,blockNumber:n,blockTag:r="latest"}={}){let a;let o=void 0!==n?(0,s.eC)(n):void 0;return a=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[o||r]},{dedupe:!!o}),(0,$.ly)(a)}var Z=n(4771);async function Y(e,{address:t,blockNumber:n,blockTag:r="latest"}){let a=void 0!==n?(0,s.eC)(n):void 0,o=await e.request({method:"eth_getCode",params:[t,a||r]},{dedupe:!!a});if("0x"!==o)return o}var V=n(13314),J=n(10112);async function X(e,{address:t,blockHash:n,fromBlock:r,toBlock:a,event:o,events:i,args:l,strict:c}={}){let u=i??(o?[o]:void 0),d=[];u&&(d=[u.flatMap(e=>P({abi:[e],eventName:e.name,args:i?void 0:l}))],o&&(d=d[0]));let f=(n?await e.request({method:"eth_getLogs",params:[{address:t,topics:d,blockHash:n}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:d,fromBlock:"bigint"==typeof r?(0,s.eC)(r):r,toBlock:"bigint"==typeof a?(0,s.eC)(a):a}]})).map(e=>(0,J.U)(e));return u?(0,V.h)({abi:u,args:l,logs:f,strict:c??!1}):f}async function ee(e,t){let{abi:n,address:r,args:a,blockHash:o,eventName:i,fromBlock:s,toBlock:l,strict:u}=t,d=i?(0,T.mE)({abi:n,name:i}):void 0,f=d?void 0:n.filter(e=>"event"===e.type);return(0,c.s)(e,X,"getLogs")({address:r,args:a,blockHash:o,event:d,events:f,fromBlock:s,toBlock:l,strict:u})}class et extends E.G{constructor({address:e}){super(`No EIP-712 domain found on contract "${e}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${e}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}async function en(e,t){let{address:n,factory:r,factoryData:a}=t;try{let[t,o,i,s,l,d,f]=await (0,c.s)(e,u.L,"readContract")({abi:er,address:n,functionName:"eip712Domain",factory:r,factoryData:a});return{domain:{name:o,version:i,chainId:Number(s),verifyingContract:l,salt:d},extensions:f,fields:t}}catch(e){if("ContractFunctionExecutionError"===e.name&&"ContractFunctionZeroDataError"===e.cause.name)throw new et({address:n});throw e}}let er=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];async function ea(e,{blockCount:t,blockNumber:n,blockTag:r="latest",rewardPercentiles:a}){var o;let i="bigint"==typeof n?(0,s.eC)(n):void 0;return{baseFeePerGas:(o=await e.request({method:"eth_feeHistory",params:[(0,s.eC)(t),i||r,a]},{dedupe:!!i})).baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:o.gasUsedRatio,oldestBlock:BigInt(o.oldestBlock),reward:o.reward?.map(e=>e.map(e=>BigInt(e)))}}async function eo(e,{filter:t}){let n="strict"in t&&t.strict,r=await t.request({method:"eth_getFilterChanges",params:[t.id]});if("string"==typeof r[0])return r;let a=r.map(e=>(0,J.U)(e));return"abi"in t&&t.abi?(0,V.h)({abi:t.abi,logs:a,strict:n}):a}async function ei(e,{filter:t}){let n=t.strict??!1,r=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(e=>(0,J.U)(e));return t.abi?(0,V.h)({abi:t.abi,logs:r,strict:n}):r}var es=n(22856);async function el(e,{address:t,blockNumber:n,blockTag:r,storageKeys:a}){var o;let i=void 0!==n?(0,s.eC)(n):void 0;return{...o=await e.request({method:"eth_getProof",params:[t,a,i||(r??"latest")]}),balance:o.balance?BigInt(o.balance):void 0,nonce:o.nonce?(0,$.ly)(o.nonce):void 0,storageProof:o.storageProof?o.storageProof.map(e=>({...e,value:BigInt(e.value)})):void 0}}async function ec(e,{address:t,blockNumber:n,blockTag:r="latest",slot:a}){let o=void 0!==n?(0,s.eC)(n):void 0;return await e.request({method:"eth_getStorageAt",params:[t,a,o||r]})}var eu=n(36372),ed=n(97150),ef=n(42786),ep=n(54893),eh=n(3235),em=n(38769),eg=n(78737),ey=n(39677),eb=n(13848),ew=n(71229),ev=n(32448),eC=n(47188);async function eA(e,t){let{blockNumber:n,blockTag:r="latest",blocks:a,returnFullTransactions:o,traceTransfers:i,validation:l}=t;try{let t=[];for(let e of a){let n=e.blockOverrides?em.o(e.blockOverrides):void 0,r=e.calls.map(e=>{let t=e.account?(0,h.T)(e.account):void 0,n={...e,data:e.abi?(0,F.R)(e):e.data,from:e.from??t?.address};return(0,b.F)(n),(0,y.tG)(n)}),a=e.stateOverrides?(0,eC.mF)(e.stateOverrides):void 0;t.push({blockOverrides:n,calls:r,stateOverrides:a})}let c="bigint"==typeof n?(0,s.eC)(n):void 0;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:t,returnFullTransactions:o,traceTransfers:i,validation:l},c||r]})).map((e,t)=>({...(0,ev.Z)(e),calls:e.calls.map((e,n)=>{let{abi:r,args:o,functionName:i,to:s}=a[t].calls[n],l=e.error?.data??e.returnData,c=BigInt(e.gasUsed),u=e.logs?.map(e=>J.U(e)),d="0x1"===e.status?"success":"failure",f=r&&"success"===d&&"0x"!==l?(0,eb.k)({abi:r,data:l,functionName:i}):null,p=(()=>{let t;if("success"!==d&&(e.error?.data==="0x"?t=new A.wb:e.error&&(t=new eg.VQ(e.error)),t))return(0,L.S)(t,{abi:r??[],address:s,args:o,functionName:i??"<unknown>"})})();return{data:l,gasUsed:c,logs:u,status:d,..."success"===d?{result:f}:{error:p}}})}))}catch(t){let e=(0,ew.k)(t,{});if(e instanceof ey.cj)throw t;throw e}}var eE=n(50924),ex=n(30419),ek=n(82206),eB=n(72202),ej=n(31856);let eI=/^tuple(?<array>(\[(\d*)\])*)$/;function eS(e){let t="",n=e.length;for(let r=0;r<n;r++)t+=function e(t){let n=t.type;if(eI.test(t.type)&&"components"in t){n="(";let r=t.components.length;for(let a=0;a<r;a++)n+=e(t.components[a]),a<r-1&&(n+=", ");let a=(0,ej.Zw)(eI,t.type);return n+=`)${a?.array??""}`,e({...t,type:n})}return("indexed"in t&&t.indexed&&(n=`${n} indexed`),t.name)?`${n} ${t.name}`:n}(e[r]),r!==n-1&&(t+=", ");return t}function eT(e){return"function"===e.type?`function ${e.name}(${eS(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs.length?` returns (${eS(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${eS(e.inputs)})`:"error"===e.type?`error ${e.name}(${eS(e.inputs)})`:"constructor"===e.type?`constructor(${eS(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?"fallback()":"receive() external payable"}var eO=n(84621),eP=n(88347),eM=n(5671);n(28727);let eD={zero:48,nine:57,A:65,F:70,a:97,f:102};function eN(e){return e>=eD.zero&&e<=eD.nine?e-eD.zero:e>=eD.A&&e<=eD.F?e-(eD.A-10):e>=eD.a&&e<=eD.f?e-(eD.a-10):void 0}var eR=n(80885);let eF=new TextEncoder;eO.G,eO.G;class eL extends eO.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}}class e_ extends eO.G{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}function eU(e,t={}){let{as:n="string"==typeof e?"Hex":"Bytes"}=t,r=(0,eP.fr)(e instanceof Uint8Array?e:"string"==typeof e?function(e,t={}){let{size:n}=t,r=e;n&&(eR.Yf(e,n),r=eM.eh(e,n));let a=r.slice(2);a.length%2&&(a=`0${a}`);let o=a.length/2,i=new Uint8Array(o);for(let e=0,t=0;e<o;e++){let n=eN(a.charCodeAt(t++)),r=eN(a.charCodeAt(t++));if(void 0===n||void 0===r)throw new eO.G(`Invalid byte sequence ("${a[t-2]}${a[t-1]}" in "${a}").`);i[e]=16*n+r}return i}(e):e instanceof Uint8Array?e:new Uint8Array(e));return"Bytes"===n?r:eM.xv(r)}class ez extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}let eW={checksum:new ez(8192)}.checksum,eq=/^0x[a-fA-F0-9]{40}$/;function eG(e,t={}){let{strict:n=!0}=t;if(!eq.test(e))throw new eH({address:e,cause:new e$});if(n){if(e.toLowerCase()===e)return;if(function(e){if(eW.has(e))return eW.get(e);eG(e,{strict:!1});let t=e.substring(2).toLowerCase(),n=eU(function(e,t={}){let{size:n}=t,r=eF.encode(e);return"number"==typeof n?(function(e,t){if(e.length>t)throw new eL({givenSize:e.length,maxSize:t})}(r,n),function(e,t={}){let{dir:n,size:r=32}=t;if(0===r)return e;if(e.length>r)throw new e_({size:e.length,targetSize:r,type:"Bytes"});let a=new Uint8Array(r);for(let t=0;t<r;t++){let o="right"===n;a[o?t:r-t-1]=e[o?t:e.length-t-1]}return a}(r,{dir:"right",size:n})):r}(t),{as:"Bytes"}),r=t.split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&r[e]&&(r[e]=r[e].toUpperCase()),(15&n[e>>1])>=8&&r[e+1]&&(r[e+1]=r[e+1].toUpperCase());let a=`0x${r.join("")}`;return eW.set(e,a),a}(e)!==e)throw new eH({address:e,cause:new eK})}}function eQ(e,t={}){let{strict:n=!0}=t??{};try{return eG(e,{strict:n}),!0}catch{return!1}}class eH extends eO.G{constructor({address:e,cause:t}){super(`Address "${e}" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class e$ extends eO.G{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class eK extends eO.G{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}function eZ(e){let t=!0,n="",r=0,a="",o=!1;for(let i=0;i<e.length;i++){let s=e[i];if(["(",")",","].includes(s)&&(t=!0),"("===s&&r++,")"===s&&r--,t){if(0===r){if(" "===s&&["event","function","error",""].includes(a))a="";else if(a+=s,")"===s){o=!0;break}continue}if(" "===s){","!==e[i-1]&&","!==n&&",("!==n&&(n="",t=!1);continue}a+=s,n+=s}}if(!o)throw new eO.G("Unable to normalize signature.");return a}function eY(e,t={}){let{prepare:n=!0}=t,r=Array.isArray(e)||"string"==typeof e?function(e){let t;if("string"==typeof e)t=(0,eB.cK)(e);else{let n=(0,ek.D)(e),r=e.length;for(let a=0;a<r;a++){let r=e[a];if(!(0,ex.N0)(r)){t=(0,eB.cK)(r,n);break}}}if(!t)throw new eE.a_({signature:e});return t}(e):e;return{...r,...n?{hash:eJ(r)}:{}}}function eV(e){return eM.tP(eJ(e),0,4)}function eJ(e){return"string"!=typeof e&&"hash"in e&&e.hash?e.hash:eU(eM.mL(eZ("string"==typeof e?e:eT(e))))}class eX extends eO.G{constructor(e,t){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${e.type}\` in \`${eZ(eT(e.abiItem))}\`, and`,`\`${t.type}\` in \`${eZ(eT(t.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class e0 extends eO.G{constructor({name:e,data:t,type:n="item"}){super(`ABI ${n}${e?` with name "${e}"`:t?` with data "${t}"`:""} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}let e1=/^(.*)\[([0-9]*)\]$/,e6=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,e3=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function e2(e){let t=0;for(let n=0;n<e.length;n++){let{dynamic:r,encoded:a}=e[n];r?t+=32:t+=eM.dp(a)}let n=[],r=[],a=0;for(let o=0;o<e.length;o++){let{dynamic:i,encoded:s}=e[o];i?(n.push(eM.xS(t+a,{size:32})),r.push(s),a+=eM.dp(s)):n.push(s)}return eM.zo(...n,...r)}function e7(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function e5(e,t,n){let{checksumAddress:r=!1}=n??{};if(e.length!==t.length)throw new te({expectedLength:e.length,givenLength:t.length});let a=e2(function({checksumAddress:e,parameters:t,values:n}){let r=[];for(let a=0;a<t.length;a++)r.push(function e({checksumAddress:t=!1,parameter:n,value:r}){let a=e7(n.type);if(a){let[o,i]=a;return function(t,n){let{checksumAddress:r,length:a,parameter:o}=n,i=null===a;if(!Array.isArray(t))throw new tt(t);if(!i&&t.length!==a)throw new e8({expectedLength:a,givenLength:t.length,type:`${o.type}[${a}]`});let s=!1,l=[];for(let n=0;n<t.length;n++){let a=e({checksumAddress:r,parameter:o,value:t[n]});a.dynamic&&(s=!0),l.push(a)}if(i||s){let e=e2(l);if(i){let t=eM.xS(l.length,{size:32});return{dynamic:!0,encoded:l.length>0?eM.zo(t,e):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:eM.zo(...l.map(({encoded:e})=>e))}}(r,{checksumAddress:t,length:o,parameter:{...n,type:i}})}if("tuple"===n.type)return function(t,n){let{checksumAddress:r,parameter:a}=n,o=!1,i=[];for(let n=0;n<a.components.length;n++){let s=a.components[n],l=Array.isArray(t)?n:s.name,c=e({checksumAddress:r,parameter:s,value:t[l]});i.push(c),c.dynamic&&(o=!0)}return{dynamic:o,encoded:o?e2(i):eM.zo(...i.map(({encoded:e})=>e))}}(r,{checksumAddress:t,parameter:n});if("address"===n.type)return function(e,t){let{checksum:n=!1}=t;return eG(e,{strict:n}),{dynamic:!1,encoded:eM.Q_(e.toLowerCase())}}(r,{checksum:t});if("bool"===n.type)return function(e){if("boolean"!=typeof e)throw new eO.G(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:eM.Q_(eM.O3(e))}}(r);if(n.type.startsWith("uint")||n.type.startsWith("int")){let e=n.type.startsWith("int"),[,,t="256"]=e3.exec(n.type)??[];return function(e,{signed:t,size:n}){if("number"==typeof n){let r=2n**(BigInt(n)-(t?1n:0n))-1n,a=t?-r-1n:0n;if(e>r||e<a)throw new eM.J5({max:r.toString(),min:a.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:eM.xS(e,{size:32,signed:t})}}(r,{signed:e,size:Number(t)})}if(n.type.startsWith("bytes"))return function(e,{type:t}){let[,n]=t.split("bytes"),r=eM.dp(e);if(!n){let t=e;return r%32!=0&&(t=eM.eh(t,32*Math.ceil((e.length-2)/2/32))),{dynamic:!0,encoded:eM.zo(eM.Q_(eM.xS(r,{size:32})),t)}}if(r!==Number.parseInt(n))throw new e9({expectedSize:Number.parseInt(n),value:e});return{dynamic:!1,encoded:eM.eh(e)}}(r,{type:n.type});if("string"===n.type)return function(e){let t=eM.mL(e),n=Math.ceil(eM.dp(t)/32),r=[];for(let e=0;e<n;e++)r.push(eM.eh(eM.tP(t,32*e,(e+1)*32)));return{dynamic:!0,encoded:eM.zo(eM.eh(eM.xS(eM.dp(t),{size:32})),...r)}}(r);throw new tn(n.type)}({checksumAddress:e,parameter:t[a],value:n[a]}));return r}({checksumAddress:r,parameters:e,values:t}));return 0===a.length?"0x":a}function e4(e,t){if(e.length!==t.length)throw new te({expectedLength:e.length,givenLength:t.length});let n=[];for(let r=0;r<e.length;r++){let a=e[r],o=t[r];n.push(e4.encode(a,o))}return eM.zo(...n)}(e4||(e4={})).encode=function e(t,n,r=!1){if("address"===t)return eG(n),eM.Q_(n.toLowerCase(),r?32:0);if("string"===t)return eM.mL(n);if("bytes"===t)return n;if("bool"===t)return eM.Q_(eM.O3(n),r?32:1);let a=t.match(e3);if(a){let[e,t,o="256"]=a,i=Number.parseInt(o)/8;return eM.xS(n,{size:r?32:i,signed:"int"===t})}let o=t.match(e6);if(o){let[e,t]=o;if(Number.parseInt(t)!==(n.length-2)/2)throw new e9({expectedSize:Number.parseInt(t),value:n});return eM.eh(n,r?32:0)}let i=t.match(e1);if(i&&Array.isArray(n)){let[t,r]=i,a=[];for(let t=0;t<n.length;t++)a.push(e(r,n[t],!0));return 0===a.length?"0x":eM.zo(...a)}throw new tn(t)},eO.G,eO.G;class e8 extends eO.G{constructor({expectedLength:e,givenLength:t,type:n}){super(`Array length mismatch for type \`${n}\`. Expected: \`${e}\`. Given: \`${t}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class e9 extends eO.G{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${eM.dp(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class te extends eO.G{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding parameters/values length mismatch.
|
|
1561
|
+
Expected length (parameters): ${e}
|
|
1562
|
+
Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class tt extends eO.G{constructor(e){super(`Value \`${e}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class tn extends eO.G{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}function tr(e,t={}){return eY(e,t)}let ta="0x0000000000000000000000000000000000000000";var to=n(64108);async function ti(e,t){let{blockNumber:n,blockTag:r,calls:a,stateOverrides:o,traceAssetChanges:i,traceTransfers:s,validation:l}=t,c=t.account?(0,h.T)(t.account):void 0;if(i&&!c)throw new E.G("`account` is required when `traceAssetChanges` is true");let u=c?function(e,t){let{bytecode:n,args:r}=t;return eM.zo(n,e.inputs?.length&&r?.length?e5(e.inputs,r):"0x")}(eY("constructor(bytes, bytes)"),{bytecode:to.NO,args:["0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033",function(e,...t){let{overloads:n}=e,r=n?function(e,t,n){let r=function(e,t,n){let r;let{args:a=[],prepare:o=!0}=n??{},i=eM.Gu(t,{strict:!1}),s=e.filter(e=>i?"function"===e.type||"error"===e.type?eV(e)===eM.tP(t,0,4):"event"===e.type&&eJ(e)===t:"name"in e&&e.name===t);if(0===s.length)throw new e0({name:t});if(1===s.length)return{...s[0],...o?{hash:eJ(s[0])}:{}};for(let e of s)if("inputs"in e){if(!a||0===a.length){if(!e.inputs||0===e.inputs.length)return{...e,...o?{hash:eJ(e)}:{}};continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===a.length&&a.every((t,n)=>{let r="inputs"in e&&e.inputs[n];return!!r&&function e(t,n){let r=typeof t,a=n.type;switch(a){case"address":return eQ(t,{strict:!1});case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:if("tuple"===a&&"components"in n)return Object.values(n.components).every((n,r)=>e(Object.values(t)[r],n));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(a))return"number"===r||"bigint"===r;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(a))return"string"===r||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(a))return Array.isArray(t)&&t.every(t=>e(t,{...n,type:a.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,r)})){if(r&&"inputs"in r&&r.inputs){let t=function e(t,n,r){for(let a in t){let o=t[a],i=n[a];if("tuple"===o.type&&"tuple"===i.type&&"components"in o&&"components"in i)return e(o.components,i.components,r[a]);let s=[o.type,i.type];if(s.includes("address")&&s.includes("bytes20")||(s.includes("address")&&s.includes("string")||s.includes("address")&&s.includes("bytes"))&&eQ(r[a],{strict:!1}))return s}}(e.inputs,r.inputs,a);if(t)throw new eX({abiItem:e,type:t[0]},{abiItem:r,type:t[1]})}r=e}}let l=(()=>{if(r)return r;let[e,...t]=s;return{...e,overloads:t}})();if(!l)throw new e0({name:t});return{...l,...o?{hash:eJ(l)}:{}}}(e,t,n);if("function"!==r.type)throw new e0({name:t,type:"function"});return r}([e,...n],e.name,{args:t[0]}):e,a=eV(r),o=t.length>0?e5(r.inputs,t[0]):void 0;return o?eM.zo(a,o):a}(tr("function getBalance(address)"),[c.address])]}):void 0,d=i?await Promise.all(t.calls.map(async t=>{if(!t.data&&!t.abi)return;let{accessList:n}=await w(e,{account:c.address,...t,data:t.abi?(0,F.R)(t):t.data});return n.map(({address:e,storageKeys:t})=>t.length>0?e:null)})).then(e=>e.flat().filter(Boolean)):[],f=o?.map(e=>e.address===c?.address?{...e,nonce:0}:e),p=await eA(e,{blockNumber:n,blockTag:r,blocks:[...i?[{calls:[{data:u}],stateOverrides:o},{calls:d.map((e,t)=>({abi:[tr("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[c.address],to:e,from:ta,nonce:t})),stateOverrides:[{address:ta,nonce:0}]}]:[],{calls:[...a,{}].map((e,t)=>({...e,from:c?.address,nonce:t})),stateOverrides:f},...i?[{calls:[{data:u}]},{calls:d.map((e,t)=>({abi:[tr("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[c.address],to:e,from:ta,nonce:t})),stateOverrides:[{address:ta,nonce:0}]},{calls:d.map((e,t)=>({to:e,abi:[tr("function decimals() returns (uint256)")],functionName:"decimals",from:ta,nonce:t})),stateOverrides:[{address:ta,nonce:0}]},{calls:d.map((e,t)=>({to:e,abi:[tr("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:ta,nonce:t})),stateOverrides:[{address:ta,nonce:0}]},{calls:d.map((e,t)=>({to:e,abi:[tr("function symbol() returns (string)")],functionName:"symbol",from:ta,nonce:t})),stateOverrides:[{address:ta,nonce:0}]}]:[]],traceTransfers:s,validation:l}),m=i?p[2]:p[0],[g,y,,b,v,C,A,x]=i?p:[],{calls:k,...B}=m,j=k.slice(0,-1)??[],I=[...g?.calls??[],...y?.calls??[]].map(e=>"success"===e.status?(0,$.y_)(e.data):null),S=[...b?.calls??[],...v?.calls??[]].map(e=>"success"===e.status?(0,$.y_)(e.data):null),T=(C?.calls??[]).map(e=>"success"===e.status?e.result:null),O=(x?.calls??[]).map(e=>"success"===e.status?e.result:null),P=(A?.calls??[]).map(e=>"success"===e.status?e.result:null),M=[];for(let[e,t]of S.entries()){let n=I[e];if("bigint"!=typeof t||"bigint"!=typeof n)continue;let r=T[e-1],a=O[e-1],o=P[e-1],i=0===e?{address:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",decimals:18,symbol:"ETH"}:{address:d[e-1],decimals:o||r?Number(r??1):void 0,symbol:a??void 0};M.some(e=>e.token.address===i.address)||M.push({token:i,value:{pre:n,post:t,diff:t-n}})}return{assetChanges:M,block:B,results:j}}var ts=n(30680);async function tl(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}var tc=n(56423),tu=n(12829),td=n(54759),tf=n(90171),tp=n(54986),th=n(22176);let tm="0x6492649264926492649264926492649264926492649264926492649264926492";var tg=n(77609),ty=n(97909),tb=n(97602),tw=n(11619);async function tv(e,t){let{address:n,factory:r,factoryData:a,hash:o,signature:i,universalSignatureVerifierAddress:l=e.chain?.contracts?.universalSignatureVerifier?.address,...u}=t,d=(0,th.v)(i)?i:"object"==typeof i&&"r"in i&&"s"in i?(0,tw.V)(i):(0,s.ci)(i),f=await (async()=>r||a?(0,tg.p5)(d,-32)===tm?d:function(e){let{address:t,data:n,signature:r,to:a="hex"}=e,o=(0,tb.SM)([(0,I.E)([{type:"address"},{type:"bytes"},{type:"bytes"}],[t,n,r]),tm]);return"hex"===a?o:(0,k.nr)(o)}({address:r,data:a,signature:d}):d)();try{let t=l?{to:l,data:(0,F.R)({abi:tu.$o,functionName:"isValidSig",args:[n,o,f]}),...u}:{data:(0,td.w)({abi:tu.$o,args:[n,o,f],bytecode:to.ST}),...u},{data:r}=await (0,c.s)(e,p.R,"call")(t);return(0,$.XA)(r??"0x0")}catch(e){try{if((0,tp.E)((0,tf.K)(n),await (0,ty.R)({hash:o,signature:i})))return!0}catch{}if(e instanceof eg.cg)return!1;throw e}}async function tC(e,{address:t,message:n,factory:r,factoryData:a,signature:o,...i}){return tv(e,{address:t,factory:r,factoryData:a,hash:(0,tc.r)(n),signature:o,...i})}var tA=n(42092);async function tE(e,t){let{address:n,factory:r,factoryData:a,signature:o,message:i,primaryType:s,types:l,domain:c,...u}=t;return tv(e,{address:n,factory:r,factoryData:a,hash:(0,tA.Jv)({message:i,primaryType:s,types:l,domain:c}),signature:o,...u})}var tx=n(81332),tk=n(59114),tB=n(5349),tj=n(5041),tI=n(18752),tS=n(60941),tT=n(36786);let tO=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,tP=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;var tM=n(48174);async function tD(e,t){let{address:n,domain:r,message:a,nonce:o,scheme:i,signature:s,time:l=new Date,...c}=t,u=function(e){let{scheme:t,statement:n,...r}=e.match(tO)?.groups??{},{chainId:a,expirationTime:o,issuedAt:i,notBefore:s,requestId:l,...c}=e.match(tP)?.groups??{},u=e.split("Resources:")[1]?.split("\n- ").slice(1);return{...r,...c,...a?{chainId:Number(a)}:{},...o?{expirationTime:new Date(o)}:{},...i?{issuedAt:new Date(i)}:{},...s?{notBefore:new Date(s)}:{},...l?{requestId:l}:{},...u?{resources:u}:{},...t?{scheme:t}:{},...n?{statement:n}:{}}}(a);if(!u.address||!function(e){let{address:t,domain:n,message:r,nonce:a,scheme:o,time:i=new Date}=e;if(n&&r.domain!==n||a&&r.nonce!==a||o&&r.scheme!==o||r.expirationTime&&i>=r.expirationTime||r.notBefore&&i<r.notBefore)return!1;try{if(!r.address||!(0,tM.U)(r.address,{strict:!1})||t&&!(0,tp.E)(r.address,t))return!1}catch{return!1}return!0}({address:n,domain:r,message:u,nonce:o,scheme:i,time:l}))return!1;let d=(0,tc.r)(a);return tv(e,{address:u.address,hash:d,signature:s,...c})}var tN=n(72032),tR=n(11288);function tF(e){return{call:t=>(0,p.R)(e,t),createAccessList:t=>w(e,t),createBlockFilter:()=>C(e),createContractEventFilter:t=>D(e,t),createEventFilter:t=>N(e,t),createPendingTransactionFilter:()=>R(e),estimateContractGas:t=>U(e,t),estimateGas:t=>(0,_.Q)(e,t),getBalance:t=>(0,q.s)(e,t),getBlobBaseFee:()=>G(e),getBlock:t=>(0,Q.Q)(e,t),getBlockNumber:t=>(0,H.z)(e,t),getBlockTransactionCount:t=>K(e,t),getBytecode:t=>Y(e,t),getChainId:()=>(0,Z.L)(e),getCode:t=>Y(e,t),getContractEvents:t=>ee(e,t),getEip712Domain:t=>en(e,t),getEnsAddress:t=>(0,r.O)(e,t),getEnsAvatar:t=>(0,a.r)(e,t),getEnsName:t=>(0,o.w)(e,t),getEnsResolver:t=>d(e,t),getEnsText:t=>(0,f.g)(e,t),getFeeHistory:t=>ea(e,t),estimateFeesPerGas:t=>(0,z.X)(e,t),getFilterChanges:t=>eo(e,t),getFilterLogs:t=>ei(e,t),getGasPrice:()=>(0,es.o)(e),getLogs:t=>X(e,t),getProof:t=>el(e,t),estimateMaxPriorityFeePerGas:t=>(0,W._)(e,t),getStorageAt:t=>ec(e,t),getTransaction:t=>(0,eu.f)(e,t),getTransactionConfirmations:t=>(0,ed.a)(e,t),getTransactionCount:t=>(0,ef.K)(e,t),getTransactionReceipt:t=>(0,ep.a)(e,t),multicall:t=>(0,eh.A)(e,t),prepareTransactionRequest:t=>(0,tN.ZE)(e,t),readContract:t=>(0,u.L)(e,t),sendRawTransaction:t=>(0,tR.p)(e,t),simulate:t=>eA(e,t),simulateBlocks:t=>eA(e,t),simulateCalls:t=>ti(e,t),simulateContract:t=>(0,ts.a)(e,t),verifyMessage:t=>tC(e,t),verifySiweMessage:t=>tD(e,t),verifyTypedData:t=>tE(e,t),uninstallFilter:t=>tl(e,t),waitForTransactionReceipt:t=>(0,tx.e)(e,t),watchBlocks:t=>(function(e,{blockTag:t="latest",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:a,onError:o,includeTransactions:i,poll:s,pollingInterval:l=e.pollingInterval}){let u,d,f,p;let h=void 0!==s?s:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type),m=i??!1;return h?(()=>{let i=(0,tI.P)(["watchBlocks",e.uid,t,n,r,m,l]);return(0,tB.N7)(i,{onBlock:a,onError:o},a=>(0,tj.$)(async()=>{try{let r=await (0,c.s)(e,Q.Q,"getBlock")({blockTag:t,includeTransactions:m});if(null!==r.number&&u?.number!=null){if(r.number===u.number)return;if(r.number-u.number>1&&n)for(let t=u?.number+1n;t<r.number;t++){let n=await (0,c.s)(e,Q.Q,"getBlock")({blockNumber:t,includeTransactions:m});a.onBlock(n,u),u=n}}(u?.number==null||"pending"===t&&r?.number==null||null!==r.number&&r.number>u.number)&&(a.onBlock(r,u),u=r)}catch(e){a.onError?.(e)}},{emitOnBegin:r,interval:l}))})():(d=!0,f=!0,p=()=>d=!1,(async()=>{try{r&&(0,c.s)(e,Q.Q,"getBlock")({blockTag:t,includeTransactions:m}).then(e=>{d&&f&&(a(e,void 0),f=!1)}).catch(o);let n=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:i}=await n.subscribe({params:["newHeads"],async onData(t){if(!d)return;let n=await (0,c.s)(e,Q.Q,"getBlock")({blockNumber:t.blockNumber,includeTransactions:m}).catch(()=>{});d&&(a(n,u),f=!1,u=n)},onError(e){o?.(e)}});p=i,d||p()}catch(e){o?.(e)}})(),()=>p())})(e,t),watchBlockNumber:t=>(0,tk.q)(e,t),watchContractEvent:t=>(function(e,t){let{abi:n,address:r,args:a,batch:o=!0,eventName:i,fromBlock:s,onError:l,onLogs:u,poll:d,pollingInterval:f=e.pollingInterval,strict:p}=t;return(void 0!==d?d:"bigint"==typeof s||"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type))?(()=>{let t=p??!1,d=(0,tI.P)(["watchContractEvent",r,a,o,e.uid,i,f,t,s]);return(0,tB.N7)(d,{onLogs:u,onError:l},l=>{let u,d;void 0!==s&&(u=s-1n);let p=!1,h=(0,tj.$)(async()=>{if(!p){try{d=await (0,c.s)(e,D,"createContractEventFilter")({abi:n,address:r,args:a,eventName:i,strict:t,fromBlock:s})}catch{}p=!0;return}try{let s;if(d)s=await (0,c.s)(e,eo,"getFilterChanges")({filter:d});else{let o=await (0,c.s)(e,H.z,"getBlockNumber")({});s=u&&u<o?await (0,c.s)(e,ee,"getContractEvents")({abi:n,address:r,args:a,eventName:i,fromBlock:u+1n,toBlock:o,strict:t}):[],u=o}if(0===s.length)return;if(o)l.onLogs(s);else for(let e of s)l.onLogs([e])}catch(e){d&&e instanceof tS.yR&&(p=!1),l.onError?.(e)}},{emitOnBegin:!0,interval:f});return async()=>{d&&await (0,c.s)(e,tl,"uninstallFilter")({filter:d}),h()}})})():(()=>{let t=(0,tI.P)(["watchContractEvent",r,a,o,e.uid,i,f,p??!1]),s=!0,c=()=>s=!1;return(0,tB.N7)(t,{onLogs:u,onError:l},t=>((async()=>{try{let o=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),l=i?P({abi:n,eventName:i,args:a}):[],{unsubscribe:u}=await o.subscribe({params:["logs",{address:r,topics:l}],onData(e){if(!s)return;let r=e.result;try{let{eventName:e,args:a}=(0,tT.F)({abi:n,data:r.data,topics:r.topics,strict:p}),o=(0,J.U)(r,{args:a,eventName:e});t.onLogs([o])}catch(o){let e,n;if(o instanceof A.SM||o instanceof A.Gy){if(p)return;e=o.abiItem.name,n=o.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let a=(0,J.U)(r,{args:n?[]:{},eventName:e});t.onLogs([a])}},onError(e){t.onError?.(e)}});c=u,s||c()}catch(e){l?.(e)}})(),()=>c()))})()})(e,t),watchEvent:t=>(function(e,{address:t,args:n,batch:r=!0,event:a,events:o,fromBlock:i,onError:s,onLogs:l,poll:u,pollingInterval:d=e.pollingInterval,strict:f}){let p,h;let m=void 0!==u?u:"bigint"==typeof i||"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type),g=f??!1;return m?(()=>{let u=(0,tI.P)(["watchEvent",t,n,r,e.uid,a,d,i]);return(0,tB.N7)(u,{onLogs:l,onError:s},s=>{let l,u;void 0!==i&&(l=i-1n);let f=!1,p=(0,tj.$)(async()=>{if(!f){try{u=await (0,c.s)(e,N,"createEventFilter")({address:t,args:n,event:a,events:o,strict:g,fromBlock:i})}catch{}f=!0;return}try{let i;if(u)i=await (0,c.s)(e,eo,"getFilterChanges")({filter:u});else{let r=await (0,c.s)(e,H.z,"getBlockNumber")({});i=l&&l!==r?await (0,c.s)(e,X,"getLogs")({address:t,args:n,event:a,events:o,fromBlock:l+1n,toBlock:r}):[],l=r}if(0===i.length)return;if(r)s.onLogs(i);else for(let e of i)s.onLogs([e])}catch(e){u&&e instanceof tS.yR&&(f=!1),s.onError?.(e)}},{emitOnBegin:!0,interval:d});return async()=>{u&&await (0,c.s)(e,tl,"uninstallFilter")({filter:u}),p()}})})():(p=!0,h=()=>p=!1,(async()=>{try{let r=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),i=o??(a?[a]:void 0),c=[];i&&(c=[i.flatMap(e=>P({abi:[e],eventName:e.name,args:n}))],a&&(c=c[0]));let{unsubscribe:u}=await r.subscribe({params:["logs",{address:t,topics:c}],onData(e){if(!p)return;let t=e.result;try{let{eventName:e,args:n}=(0,tT.F)({abi:i??[],data:t.data,topics:t.topics,strict:g}),r=(0,J.U)(t,{args:n,eventName:e});l([r])}catch(a){let e,n;if(a instanceof A.SM||a instanceof A.Gy){if(f)return;e=a.abiItem.name,n=a.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let r=(0,J.U)(t,{args:n?[]:{},eventName:e});l([r])}},onError(e){s?.(e)}});h=u,p||h()}catch(e){s?.(e)}})(),()=>h())})(e,t),watchPendingTransactions:t=>(function(e,{batch:t=!0,onError:n,onTransactions:r,poll:a,pollingInterval:o=e.pollingInterval}){let i,s;return(void 0!==a?a:"webSocket"!==e.transport.type)?(()=>{let a=(0,tI.P)(["watchPendingTransactions",e.uid,t,o]);return(0,tB.N7)(a,{onTransactions:r,onError:n},n=>{let r;let a=(0,tj.$)(async()=>{try{if(!r)try{r=await (0,c.s)(e,R,"createPendingTransactionFilter")({});return}catch(e){throw a(),e}let o=await (0,c.s)(e,eo,"getFilterChanges")({filter:r});if(0===o.length)return;if(t)n.onTransactions(o);else for(let e of o)n.onTransactions([e])}catch(e){n.onError?.(e)}},{emitOnBegin:!0,interval:o});return async()=>{r&&await (0,c.s)(e,tl,"uninstallFilter")({filter:r}),a()}})})():(i=!0,s=()=>i=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!i)return;let t=e.result;r([t])},onError(e){n?.(e)}});s=t,i||s()}catch(e){n?.(e)}})(),()=>s())})(e,t)}}},41851:(e,t,n)=>{"use strict";n.d(t,{q:()=>d});var r=n(13390),a=n(48501),o=n(60941),i=n(71215);let s=new(n(43799)).k(8192);var l=n(51626),c=n(18752),u=n(87953);function d({key:e,methods:t,name:n,request:d,retryCount:f=3,retryDelay:p=150,timeout:h,type:m},g){return{config:{key:e,methods:t,name:n,request:d,retryCount:f,retryDelay:p,timeout:h,type:m},request:function(e,t={}){return async(n,u={})=>{let{dedupe:d=!1,methods:f,retryDelay:p=150,retryCount:h=3,uid:m}={...t,...u},{method:g}=n;if(f?.exclude?.includes(g)||f?.include&&!f.include.includes(g))throw new o.gS(Error("method not supported"),{method:g});let y=d?(0,i.$G)(`${m}.${(0,c.P)(n)}`):void 0;return function(e,{enabled:t=!0,id:n}){if(!t||!n)return e();if(s.get(n))return s.get(n);let r=e().finally(()=>s.delete(n));return s.set(n,r),r}(()=>(0,l.J)(async()=>{try{return await e(n)}catch(e){switch(e.code){case o.s7.code:throw new o.s7(e);case o.B.code:throw new o.B(e);case o.LX.code:throw new o.LX(e,{method:n.method});case o.nY.code:throw new o.nY(e);case o.XS.code:throw new o.XS(e);case o.yR.code:throw new o.yR(e);case o.Og.code:throw new o.Og(e);case o.pT.code:throw new o.pT(e);case o.KB.code:throw new o.KB(e);case o.gS.code:throw new o.gS(e,{method:n.method});case o.Pv.code:throw new o.Pv(e);case o.GD.code:throw new o.GD(e);case o.ab.code:throw new o.ab(e);case o.PE.code:throw new o.PE(e);case o.Ts.code:throw new o.Ts(e);case o.u5.code:throw new o.u5(e);case o.I0.code:throw new o.I0(e);case o.x3.code:throw new o.x3(e);case o.vl.code:throw new o.vl(e);case o.Uu.code:throw new o.Uu(e);case o.Nt.code:throw new o.Nt(e);case o.EJ.code:throw new o.EJ(e);case o.fl.code:throw new o.fl(e);case o.NO.code:throw new o.NO(e);case o.r0.code:throw new o.r0(e);case 5e3:throw new o.ab(e);default:if(e instanceof r.G)throw e;throw new o.ir(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof a.Gg){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e)}return~~(1<<e)*p},retryCount:h,shouldRetry:({error:e})=>"code"in e&&"number"==typeof e.code?-1===e.code||e.code===o.Pv.code||e.code===o.XS.code:!(e instanceof a.Gg)||!e.status||403===e.status||408===e.status||413===e.status||429===e.status||500===e.status||502===e.status||503===e.status||504===e.status}),{enabled:d,id:y})}}(d,{methods:t,retryCount:f,retryDelay:p,uid:(0,u.h)()}),value:g}}},78897:(e,t,n)=>{"use strict";n.d(t,{tv:()=>s});var r=n(39677),a=n(60941),o=n(43710),i=n(41851);function s(e,t={}){let{key:n="fallback",name:r="Fallback",rank:a=!1,shouldThrow:s=l,retryCount:c,retryDelay:u}=t;return({chain:t,pollingInterval:l=4e3,timeout:d,...f})=>{let p=e,h=()=>{},m=(0,i.q)({key:n,name:r,async request({method:e,params:n}){let r;let a=async(o=0)=>{let i=p[o]({...f,chain:t,retryCount:0,timeout:d});try{let t=await i.request({method:e,params:n});return h({method:e,params:n,response:t,transport:i,status:"success"}),t}catch(l){if(h({error:l,method:e,params:n,transport:i,status:"error"}),s(l)||o===p.length-1||!(r??=p.slice(o+1).some(n=>{let{include:r,exclude:a}=n({chain:t}).config.methods||{};return r?r.includes(e):!a||!a.includes(e)})))throw l;return a(o+1)}};return a()},retryCount:c,retryDelay:u,type:"fallback"},{onResponse:e=>h=e,transports:p.map(e=>e({chain:t,retryCount:0}))});if(a){let e="object"==typeof a?a:{};(function({chain:e,interval:t=4e3,onTransports:n,ping:r,sampleCount:a=10,timeout:i=1e3,transports:s,weights:l={}}){let{stability:c=.7,latency:u=.3}=l,d=[],f=async()=>{let l=await Promise.all(s.map(async t=>{let n,a;let o=t({chain:e,retryCount:0,timeout:i}),s=Date.now();try{await (r?r({transport:o}):o.request({method:"net_listening"})),a=1}catch{a=0}finally{n=Date.now()}return{latency:n-s,success:a}}));d.push(l),d.length>a&&d.shift();let p=Math.max(...d.map(e=>Math.max(...e.map(({latency:e})=>e))));n(s.map((e,t)=>{let n=d.map(e=>e[t].latency),r=n.reduce((e,t)=>e+t,0)/n.length,a=d.map(e=>e[t].success),o=a.reduce((e,t)=>e+t,0)/a.length;return 0===o?[0,t]:[u*(1-r/p)+c*o,t]}).sort((e,t)=>t[0]-e[0]).map(([,e])=>s[e])),await (0,o.D)(t),f()};f()})({chain:t,interval:e.interval??l,onTransports:e=>p=e,ping:e.ping,sampleCount:e.sampleCount,timeout:e.timeout,transports:p,weights:e.weights})}return m}}function l(e){return!!("code"in e&&"number"==typeof e.code&&(e.code===a.KB.code||e.code===a.ab.code||r.M_.nodeMessage.test(e.message)||5e3===e.code))}},88816:(e,t,n)=>{"use strict";n.d(t,{d:()=>l});var r=n(48501),a=n(23599),o=n(24452),i=n(23640),s=n(41851);function l(e,t={}){let{batch:n,fetchOptions:l,key:c="http",methods:u,name:d="HTTP JSON-RPC",onFetchRequest:f,onFetchResponse:p,retryDelay:h,raw:m}=t;return({chain:g,retryCount:y,timeout:b})=>{let{batchSize:w=1e3,wait:v=0}="object"==typeof n?n:{},C=t.retryCount??y,A=b??t.timeout??1e4,E=e||g?.rpcUrls.default.http[0];if(!E)throw new a.I;let x=(0,i.x)(E,{fetchOptions:l,onRequest:f,onResponse:p,timeout:A});return(0,s.q)({key:c,methods:u,name:d,async request({method:e,params:t}){let a={method:e,params:t},{schedule:i}=(0,o.S)({id:E,wait:v,shouldSplitBatch:e=>e.length>w,fn:e=>x.request({body:e}),sort:(e,t)=>e.id-t.id}),s=async e=>n?i(e):[await x.request({body:e})],[{error:l,result:c}]=await s(a);if(m)return{error:l,result:c};if(l)throw new r.bs({body:a,error:l,url:E});return c},retryCount:C,retryDelay:h,timeout:A,type:"http"},{fetchOptions:l,url:E})}}},85613:(e,t,n)=>{"use strict";n.d(t,{j:()=>p});var r=n(48501),a=n(23599);n(23640);var o=n(24452),i=n(99172),s=n(76485);let l=new Map;async function c(e){let{getSocket:t,keepAlive:n=!0,key:a="socket",reconnect:c=!0,url:u}=e,{interval:d=3e4}="object"==typeof n?n:{},{attempts:f=5,delay:p=2e3}="object"==typeof c?c:{},h=l.get(`${a}:${u}`);if(h)return h;let m=0,{schedule:g}=(0,o.S)({id:`${a}:${u}`,fn:async()=>{let e,o,g;let y=new Map,b=new Map;async function w(){let a=await t({onClose(){for(let e of y.values())e.onError?.(new r.Cc({url:u}));for(let e of b.values())e.onError?.(new r.Cc({url:u}));c&&m<f?setTimeout(async()=>{m++,await w().catch(console.error)},p):(y.clear(),b.clear())},onError(t){for(let n of(e=t,y.values()))n.onError?.(e);for(let t of b.values())t.onError?.(e);h?.close(),c&&m<f?setTimeout(async()=>{m++,await w().catch(console.error)},p):(y.clear(),b.clear())},onOpen(){e=void 0,m=0},onResponse(e){let t="eth_subscription"===e.method,n=t?e.params.subscription:e.id,r=t?b:y,a=r.get(n);a&&a.onResponse(e),t||r.delete(n)}});return o=a,n&&(g&&clearInterval(g),g=setInterval(()=>o.ping?.(),d)),a}return await w(),e=void 0,h={close(){g&&clearInterval(g),o.close(),l.delete(`${a}:${u}`)},get socket(){return o},request({body:t,onError:n,onResponse:r}){e&&n&&n(e);let a=t.id??s.d.take(),i=e=>{("number"!=typeof e.id||a===e.id)&&("eth_subscribe"===t.method&&"string"==typeof e.result&&b.set(e.result,{onResponse:i,onError:n}),"eth_unsubscribe"===t.method&&b.delete(t.params?.[0]),r(e))};y.set(a,{onResponse:i,onError:n});try{o.request({body:{jsonrpc:"2.0",id:a,...t}})}catch(e){n?.(e)}},requestAsync({body:e,timeout:t=1e4}){return(0,i.F)(()=>new Promise((t,n)=>this.request({body:e,onError:n,onResponse:t})),{errorInstance:new r.W5({body:e,url:u}),timeout:t})},requests:y,subscriptions:b,url:u},l.set(`${a}:${u}`,h),[h]}}),[y,[b]]=await g();return b}async function u(e,t={}){let{keepAlive:a,reconnect:o}=t;return c({async getSocket({onClose:t,onError:a,onOpen:o,onResponse:i}){let s=await Promise.all([n.e(1436),n.e(339)]).then(n.bind(n,50339)).then(e=>e.WebSocket),l=new s(e);function c(){l.removeEventListener("close",c),l.removeEventListener("message",u),l.removeEventListener("error",a),l.removeEventListener("open",o),t()}function u({data:e}){try{let t=JSON.parse(e);i(t)}catch(e){a(e)}}l.addEventListener("close",c),l.addEventListener("message",u),l.addEventListener("error",a),l.addEventListener("open",o),l.readyState===s.CONNECTING&&await new Promise((e,t)=>{l&&(l.onopen=e,l.onerror=t)});let{close:d}=l;return Object.assign(l,{close(){d.bind(l)(),c()},ping(){try{if(l.readyState===l.CLOSED||l.readyState===l.CLOSING)throw new r.c9({url:l.url,cause:new r.Cc({url:l.url})});l.send(JSON.stringify({jsonrpc:"2.0",method:"net_version",params:[]}))}catch(e){a(e)}},request({body:e}){if(l.readyState===l.CLOSED||l.readyState===l.CLOSING)throw new r.c9({body:e,url:l.url,cause:new r.Cc({url:l.url})});return l.send(JSON.stringify(e))}})},keepAlive:a,reconnect:o,url:e})}async function d(e){let t=await u(e);return Object.assign(t.socket,{requests:t.requests,subscriptions:t.subscriptions})}var f=n(41851);function p(e,t={}){let{keepAlive:n,key:o="webSocket",methods:i,name:s="WebSocket JSON-RPC",reconnect:l,retryDelay:c}=t;return({chain:p,retryCount:h,timeout:m})=>{let g=t.retryCount??h,y=m??t.timeout??1e4,b=e||p?.rpcUrls.default.webSocket?.[0],w={keepAlive:n,reconnect:l};if(!b)throw new a.I;return(0,f.q)({key:o,methods:i,name:s,async request({method:e,params:t}){let n={method:e,params:t},a=await u(b,w),{error:o,result:i}=await a.requestAsync({body:n,timeout:y});if(o)throw new r.bs({body:n,error:o,url:b});return i},retryCount:g,retryDelay:c,timeout:y,type:"webSocket"},{getSocket:()=>d(b),getRpcClient:()=>u(b,w),async subscribe({params:e,onData:t,onError:n}){let r=await u(b,w),{result:a}=await new Promise((a,o)=>r.request({body:{method:"eth_subscribe",params:e},onError(e){o(e),n?.(e)},onResponse(e){if(e.error){o(e.error),n?.(e.error);return}if("number"==typeof e.id){a(e);return}"eth_subscription"===e.method&&t(e.params)}}));return{subscriptionId:a,unsubscribe:async()=>new Promise(e=>r.request({body:{method:"eth_unsubscribe",params:[a]},onResponse:e}))}}})}}},12829:(e,t,n)=>{"use strict";n.d(t,{$o:()=>u,F8:()=>r,X$:()=>c,Yi:()=>a,du:()=>s,k3:()=>i,nZ:()=>l});let r=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],a=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],o=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",type:"error"}],i=[...o,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]},{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],s=[...o,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]},{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],l=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],c=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],u=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}]},64108:(e,t,n)=>{"use strict";n.d(t,{NO:()=>r,ST:()=>o,pG:()=>a});let r="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",a="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",o="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"},97430:(e,t,n)=>{"use strict";n.d(t,{$:()=>r,Up:()=>a,hZ:()=>o});let r={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},a={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},o={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},3512:(e,t,n)=>{"use strict";n.d(t,{CI:()=>j,FM:()=>g,Gy:()=>k,KY:()=>E,M4:()=>d,MS:()=>h,MX:()=>v,Mi:()=>T,S4:()=>A,SM:()=>x,Zh:()=>p,cO:()=>s,dh:()=>B,eF:()=>C,fM:()=>i,fs:()=>f,gr:()=>u,hn:()=>I,lC:()=>y,mv:()=>b,wM:()=>S,wb:()=>c,xB:()=>l,xL:()=>w,yP:()=>m});var r=n(21467),a=n(72941),o=n(13390);class i extends o.G{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e,name:"AbiConstructorNotFoundError"})}}class s extends o.G{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e,name:"AbiConstructorParamsNotFoundError"})}}class l extends o.G{constructor({data:e,params:t,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,r.h)(t,{includeName:!0})})`,`Data: ${e} (${n} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=n}}class c extends o.G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class u extends o.G{constructor({expectedLength:e,givenLength:t,type:n}){super(`ABI encoding array length mismatch for type ${n}.
|
|
1563
|
+
Expected length: ${e}
|
|
1564
|
+
Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}class d extends o.G{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,a.d)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class f extends o.G{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch.
|
|
1565
|
+
Expected length (params): ${e}
|
|
1566
|
+
Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class p extends o.G{constructor(e,{docsPath:t}){super(`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`).
|
|
1567
|
+
Cannot encode error result without knowing what the parameter types are.
|
|
1568
|
+
Make sure you are using the correct ABI and that the inputs exist on it.`,{docsPath:t,name:"AbiErrorInputsNotFoundError"})}}class h extends o.G{constructor(e,{docsPath:t}={}){super(`Error ${e?`"${e}" `:""}not found on ABI.
|
|
1569
|
+
Make sure you are using the correct ABI and that the error exists on it.`,{docsPath:t,name:"AbiErrorNotFoundError"})}}class m extends o.G{constructor(e,{docsPath:t}){super(`Encoded error signature "${e}" not found on ABI.
|
|
1570
|
+
Make sure you are using the correct ABI and that the error exists on it.
|
|
1571
|
+
You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class g extends o.G{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class y extends o.G{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI.
|
|
1572
|
+
Make sure you are using the correct ABI and that the event exists on it.
|
|
1573
|
+
You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class b extends o.G{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI.
|
|
1574
|
+
Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t,name:"AbiEventNotFoundError"})}}class w extends o.G{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI.
|
|
1575
|
+
Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionNotFoundError"})}}class v extends o.G{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI.
|
|
1576
|
+
Cannot decode function result without knowing what the parameter types are.
|
|
1577
|
+
Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}class C extends o.G{constructor(e,{docsPath:t}){super(`Encoded function signature "${e}" not found on ABI.
|
|
1578
|
+
Make sure you are using the correct ABI and that the function exists on it.
|
|
1579
|
+
You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}class A extends o.G{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,r.t)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,r.t)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class E extends o.G{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class x extends o.G{constructor({abiItem:e,data:t,params:n,size:a}){super(`Data size of ${a} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,r.h)(n,{includeName:!0})})`,`Data: ${t} (${a} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=n,this.size=a}}class k extends o.G{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,r.t)(e,{includeName:!0})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class B extends o.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type.
|
|
1580
|
+
Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class j extends o.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type.
|
|
1581
|
+
Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class I extends o.G{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class S extends o.G{constructor(e){super(`"${e}" is not a valid definition type.
|
|
1582
|
+
Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}class T extends o.G{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}},63194:(e,t,n)=>{"use strict";n.d(t,{Y:()=>o,o:()=>a});var r=n(13390);class a extends r.G{constructor({docsPath:e}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client.",{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}}class o extends r.G{constructor({docsPath:e,metaMessages:t,type:n}){super(`Account type "${n}" is not supported.`,{docsPath:e,metaMessages:t,name:"AccountTypeNotSupportedError"})}}},66483:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});var r=n(13390);class a extends r.G{constructor({blockHash:e,blockNumber:t}){let n="Block";e&&(n=`Block at hash "${e}"`),t&&(n=`Block at number "${t}"`),super(`${n} could not be found.`,{name:"BlockNotFoundError"})}}},78737:(e,t,n)=>{"use strict";n.d(t,{cg:()=>y,uq:()=>b,Lu:()=>w,Dk:()=>v,Mo:()=>C,VQ:()=>A});var r=n(79374),a=n(97430),o=n(93252),i=n(21467),s=n(18752);function l({abiItem:e,args:t,includeFunctionName:n=!0,includeName:r=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${n?e.name:""}(${e.inputs.map((e,n)=>`${r&&e.name?`${e.name}: `:""}${"object"==typeof t[n]?(0,s.P)(t[n]):t[n]}`).join(", ")})`}var c=n(43266),u=n(48968),d=n(96222),f=n(3512),p=n(13390),h=n(48356),m=n(61915),g=n(89661);class y extends p.G{constructor(e,{account:t,docsPath:n,chain:a,data:o,gas:i,gasPrice:s,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:f,to:p,value:g,stateOverride:y}){let b=t?(0,r.T)(t):void 0,w=(0,m.xr)({from:b?.address,to:p,value:void 0!==g&&`${(0,u.d)(g)} ${a?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:i,gasPrice:void 0!==s&&`${(0,d.o)(s)} gwei`,maxFeePerGas:void 0!==l&&`${(0,d.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${(0,d.o)(c)} gwei`,nonce:f});y&&(w+=`
|
|
1583
|
+
${(0,h.Bj)(y)}`),super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",w].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class b extends p.G{constructor(e,{abi:t,args:n,contractAddress:r,docsPath:a,functionName:o,sender:s}){let u=(0,c.mE)({abi:t,args:n,name:o}),d=u?l({abiItem:u,args:n,includeFunctionName:!1,includeName:!1}):void 0,f=u?(0,i.t)(u,{includeName:!0}):void 0,p=(0,m.xr)({address:r&&(0,g.C)(r),function:f,args:d&&"()"!==d&&`${[...Array(o?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:s});super(e.shortMessage||`An unknown error occurred while executing the contract function "${o}".`,{cause:e,docsPath:a,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],p&&"Contract Call:",p].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=t,this.args=n,this.cause=e,this.contractAddress=r,this.functionName=o,this.sender=s}}class w extends p.G{constructor({abi:e,data:t,functionName:n,message:r}){let s,c,u,d,p;if(t&&"0x"!==t)try{let{abiItem:n,errorName:r,args:s}=p=(0,o.p)({abi:e,data:t});if("Error"===r)u=s[0];else if("Panic"===r){let[e]=s;u=a.$[e]}else{let e=n?(0,i.t)(n,{includeName:!0}):void 0,t=n&&s?l({abiItem:n,args:s,includeFunctionName:!1,includeName:!1}):void 0;c=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(r?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){s=e}else r&&(u=r);s instanceof f.yP&&(d=s.signature,c=[`Unable to decode signature "${d}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${d}.`]),super(u&&"execution reverted"!==u||d?[`The contract function "${n}" reverted with the following ${d?"signature":"reason"}:`,u||d].join("\n"):`The contract function "${n}" reverted.`,{cause:s,metaMessages:c,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=p,this.raw=t,this.reason=u,this.signature=d}}class v extends p.G{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class C extends p.G{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory "${e}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class A extends p.G{constructor({data:e,message:t}){super(t||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}},64443:(e,t,n)=>{"use strict";n.d(t,{Fz:()=>o,e5:()=>i,ld:()=>s});var r=n(96222),a=n(13390);class o extends a.G{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class i extends a.G{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class s extends a.G{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,r.o)(e)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}},48501:(e,t,n)=>{"use strict";n.d(t,{Cc:()=>c,Gg:()=>i,W5:()=>u,bs:()=>l,c9:()=>s});var r=n(18752),a=n(13390),o=n(89661);class i extends a.G{constructor({body:e,cause:t,details:n,headers:a,status:i,url:s}){super("HTTP request failed.",{cause:t,details:n,metaMessages:[i&&`Status: ${i}`,`URL: ${(0,o.G)(s)}`,e&&`Request body: ${(0,r.P)(e)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=a,this.status=i,this.url=s}}class s extends a.G{constructor({body:e,cause:t,details:n,url:a}){super("WebSocket request failed.",{cause:t,details:n,metaMessages:[`URL: ${(0,o.G)(a)}`,e&&`Request body: ${(0,r.P)(e)}`].filter(Boolean),name:"WebSocketRequestError"})}}class l extends a.G{constructor({body:e,error:t,url:n}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,o.G)(n)}`,`Request body: ${(0,r.P)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code,this.data=t.data}}class c extends a.G{constructor({url:e}={}){super("The socket has been closed.",{metaMessages:[e&&`URL: ${(0,o.G)(e)}`].filter(Boolean),name:"SocketClosedError"})}}class u extends a.G{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,o.G)(t)}`,`Request body: ${(0,r.P)(e)}`],name:"TimeoutError"})}}},60941:(e,t,n)=>{"use strict";n.d(t,{B:()=>l,EJ:()=>I,GD:()=>b,I0:()=>E,KB:()=>m,LX:()=>c,NO:()=>T,Nt:()=>j,Og:()=>p,PE:()=>v,Pv:()=>y,Ts:()=>C,Uu:()=>B,XS:()=>d,ab:()=>w,fl:()=>S,gS:()=>g,ir:()=>P,nY:()=>u,pT:()=>h,r0:()=>O,s7:()=>s,u5:()=>A,vl:()=>k,x3:()=>x,yR:()=>f});var r=n(13390),a=n(48501);class o extends r.G{constructor(e,{code:t,docsPath:n,metaMessages:r,name:o,shortMessage:i}){super(i,{cause:e,docsPath:n,metaMessages:r||e?.metaMessages,name:o||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=o||e.name,this.code=e instanceof a.bs?e.code:t??-1}}class i extends o{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class s extends o{constructor(e){super(e,{code:s.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class l extends o{constructor(e){super(e,{code:l.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class c extends o{constructor(e,{method:t}={}){super(e,{code:c.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class u extends o{constructor(e){super(e,{code:u.code,name:"InvalidParamsRpcError",shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class d extends o{constructor(e){super(e,{code:d.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class f extends o{constructor(e){super(e,{code:f.code,name:"InvalidInputRpcError",shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class p extends o{constructor(e){super(e,{code:p.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class h extends o{constructor(e){super(e,{code:h.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class m extends o{constructor(e){super(e,{code:m.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class g extends o{constructor(e,{method:t}={}){super(e,{code:g.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not supported.`})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class y extends o{constructor(e){super(e,{code:y.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class b extends o{constructor(e){super(e,{code:b.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class w extends i{constructor(e){super(e,{code:w.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class v extends i{constructor(e){super(e,{code:v.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class C extends i{constructor(e,{method:t}={}){super(e,{code:C.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class A extends i{constructor(e){super(e,{code:A.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class E extends i{constructor(e){super(e,{code:E.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class x extends i{constructor(e){super(e,{code:x.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class k extends i{constructor(e){super(e,{code:k.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(k,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class B extends i{constructor(e){super(e,{code:B.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(B,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class j extends i{constructor(e){super(e,{code:j.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(j,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class I extends i{constructor(e){super(e,{code:I.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(I,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class S extends i{constructor(e){super(e,{code:S.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(S,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class T extends i{constructor(e){super(e,{code:T.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(T,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class O extends i{constructor(e){super(e,{code:O.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(O,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class P extends o{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}},48356:(e,t,n)=>{"use strict";n.d(t,{Bj:()=>s,Nc:()=>a,Z8:()=>o});var r=n(13390);class a extends r.G{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class o extends r.G{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function i(e){return e.reduce((e,{slot:t,value:n})=>`${e} ${t}: ${n}
|
|
1584
|
+
`,"")}function s(e){return e.reduce((e,{address:t,...n})=>{let r=`${e} ${t}:
|
|
1585
|
+
`;return n.nonce&&(r+=` nonce: ${n.nonce}
|
|
1586
|
+
`),n.balance&&(r+=` balance: ${n.balance}
|
|
1587
|
+
`),n.code&&(r+=` code: ${n.code}
|
|
1588
|
+
`),n.state&&(r+=" state:\n"+i(n.state)),n.stateDiff&&(r+=" stateDiff:\n"+i(n.stateDiff)),r}," State Override:\n").slice(0,-1)}},23599:(e,t,n)=>{"use strict";n.d(t,{I:()=>a});var r=n(13390);class a extends r.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}},89661:(e,t,n)=>{"use strict";n.d(t,{C:()=>r,G:()=>a});let r=e=>e,a=e=>e},49907:(e,t,n)=>{"use strict";n.d(t,{r:()=>m});var r=n(3512),a=n(90171),o=n(97060),i=n(72941),s=n(77609),l=n(86561),c=n(11366),u=n(24617),d=n(71215);function f(e,t={}){void 0!==t.size&&(0,u.Yf)(e,{size:t.size});let n=(0,d.ci)(e,t);return(0,u.ly)(n,t)}var p=n(11147),h=n(78692);function m(e,t){let n="string"==typeof t?(0,p.nr)(t):t,m=(0,o.q)(n);if(0===(0,i.d)(n)&&e.length>0)throw new r.wb;if((0,i.d)(t)&&32>(0,i.d)(t))throw new r.xB({data:"string"==typeof t?t:(0,d.ci)(t),params:e,size:(0,i.d)(t)});let y=0,b=[];for(let t=0;t<e.length;++t){let n=e[t];m.setPosition(y);let[o,i]=function e(t,n,{staticPosition:o}){let i=(0,h.S)(n.type);if(i){let[r,a]=i;return function(t,n,{length:r,staticPosition:a}){if(!r){let r=a+f(t.readBytes(32)),o=r+32;t.setPosition(r);let i=f(t.readBytes(32)),s=g(n),l=0,c=[];for(let r=0;r<i;++r){t.setPosition(o+(s?32*r:l));let[a,i]=e(t,n,{staticPosition:o});l+=i,c.push(a)}return t.setPosition(a+32),[c,32]}if(g(n)){let o=a+f(t.readBytes(32)),i=[];for(let a=0;a<r;++a){t.setPosition(o+32*a);let[r]=e(t,n,{staticPosition:o});i.push(r)}return t.setPosition(a+32),[i,32]}let o=0,i=[];for(let s=0;s<r;++s){let[r,s]=e(t,n,{staticPosition:a+o});o+=s,i.push(r)}return[i,o]}(t,{...n,type:a},{length:r,staticPosition:o})}if("tuple"===n.type)return function(t,n,{staticPosition:r}){let a=0===n.components.length||n.components.some(({name:e})=>!e),o=a?[]:{},i=0;if(g(n)){let s=r+f(t.readBytes(32));for(let r=0;r<n.components.length;++r){let l=n.components[r];t.setPosition(s+i);let[c,u]=e(t,l,{staticPosition:s});i+=u,o[a?r:l?.name]=c}return t.setPosition(r+32),[o,32]}for(let s=0;s<n.components.length;++s){let l=n.components[s],[c,u]=e(t,l,{staticPosition:r});o[a?s:l?.name]=c,i+=u}return[o,i]}(t,n,{staticPosition:o});if("address"===n.type)return function(e){let t=e.readBytes(32);return[(0,a.x)((0,d.ci)((0,s.T4)(t,-20))),32]}(t);if("bool"===n.type)return[function(e,t={}){let n=e;if(void 0!==t.size&&((0,u.Yf)(n,{size:t.size}),n=(0,l.f)(n)),n.length>1||n[0]>1)throw new c.yr(n);return!!n[0]}(t.readBytes(32),{size:32}),32];if(n.type.startsWith("bytes"))return function(e,t,{staticPosition:n}){let[r,a]=t.type.split("bytes");if(!a){let t=f(e.readBytes(32));e.setPosition(n+t);let r=f(e.readBytes(32));if(0===r)return e.setPosition(n+32),["0x",32];let a=e.readBytes(r);return e.setPosition(n+32),[(0,d.ci)(a),32]}return[(0,d.ci)(e.readBytes(Number.parseInt(a),32)),32]}(t,n,{staticPosition:o});if(n.type.startsWith("uint")||n.type.startsWith("int"))return function(e,t){let n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256"),a=e.readBytes(32);return[r>48?function(e,t={}){void 0!==t.size&&(0,u.Yf)(e,{size:t.size});let n=(0,d.ci)(e,t);return(0,u.y_)(n,t)}(a,{signed:n}):f(a,{signed:n}),32]}(t,n);if("string"===n.type)return function(e,{staticPosition:t}){let n=f(e.readBytes(32));e.setPosition(t+n);let r=f(e.readBytes(32));if(0===r)return e.setPosition(t+32),["",32];let a=e.readBytes(r,32),o=function(e,t={}){let n=e;return void 0!==t.size&&((0,u.Yf)(n,{size:t.size}),n=(0,l.f)(n,{dir:"right"})),new TextDecoder().decode(n)}((0,l.f)(a));return e.setPosition(t+32),[o,32]}(t,{staticPosition:o});throw new r.CI(n.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(m,n,{staticPosition:0});y+=i,b.push(o)}return b}function g(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(g);let n=(0,h.S)(e.type);return!!(n&&g({...e,type:n[1]}))}},93252:(e,t,n)=>{"use strict";n.d(t,{p:()=>c});var r=n(97430),a=n(3512),o=n(77609),i=n(84489),s=n(49907),l=n(21467);function c(e){let{abi:t,data:n}=e,c=(0,o.tP)(n,0,4);if("0x"===c)throw new a.wb;let u=[...t||[],r.Up,r.hZ].find(e=>"error"===e.type&&c===(0,i.C)((0,l.t)(e)));if(!u)throw new a.yP(c,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:u,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,s.r)(u.inputs,(0,o.tP)(n,4)):void 0,errorName:u.name}}},36786:(e,t,n)=>{"use strict";n.d(t,{F:()=>u});var r=n(3512),a=n(72941),o=n(96091),i=n(63726),s=n(49907),l=n(21467);let c="/docs/contract/decodeEventLog";function u(e){let{abi:t,data:n,strict:u,topics:d}=e,f=u??!0,[p,...h]=d;if(!p)throw new r.FM({docsPath:c});let m=1===t.length?t[0]:t.find(e=>"event"===e.type&&p===(0,o.n)((0,l.t)(e)));if(!(m&&"name"in m)||"event"!==m.type)throw new r.lC(p,{docsPath:c});let{name:g,inputs:y}=m,b=y?.some(e=>!("name"in e&&e.name)),w=b?[]:{},v=y.map((e,t)=>[e,t]).filter(([e])=>"indexed"in e&&e.indexed);for(let e=0;e<v.length;e++){let[t,n]=v[e],a=h[e];if(!a)throw new r.Gy({abiItem:m,param:t});w[b?n:t.name||n]=function({param:e,value:t}){return"string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/)?t:((0,s.r)([e],t)||[])[0]}({param:t,value:a})}let C=y.filter(e=>!("indexed"in e&&e.indexed));if(C.length>0){if(n&&"0x"!==n)try{let e=(0,s.r)(C,n);if(e){if(b)for(let t=0;t<y.length;t++)w[t]=w[t]??e.shift();else for(let t=0;t<C.length;t++)w[C[t].name]=e[t]}}catch(e){if(f){if(e instanceof r.xB||e instanceof i.lQ)throw new r.SM({abiItem:m,data:n,params:C,size:(0,a.d)(n)});throw e}}else if(f)throw new r.SM({abiItem:m,data:"0x",params:C,size:0})}return{eventName:g,args:Object.values(w).length>0?w:void 0}}},69166:(e,t,n)=>{"use strict";n.d(t,{p:()=>l});var r=n(3512),a=n(77609),o=n(84489),i=n(49907),s=n(21467);function l(e){let{abi:t,data:n}=e,l=(0,a.tP)(n,0,4),c=t.find(e=>"function"===e.type&&l===(0,o.C)((0,s.t)(e)));if(!c)throw new r.eF(l,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:c.name,args:"inputs"in c&&c.inputs&&c.inputs.length>0?(0,i.r)(c.inputs,(0,a.tP)(n,4)):void 0}}},13848:(e,t,n)=>{"use strict";n.d(t,{k:()=>s});var r=n(3512),a=n(49907),o=n(43266);let i="/docs/contract/decodeFunctionResult";function s(e){let{abi:t,args:n,functionName:s,data:l}=e,c=t[0];if(s){let e=(0,o.mE)({abi:t,args:n,name:s});if(!e)throw new r.xL(s,{docsPath:i});c=e}if("function"!==c.type)throw new r.xL(void 0,{docsPath:i});if(!c.outputs)throw new r.MX(c.name,{docsPath:i});let u=(0,a.r)(c.outputs,l);return u&&u.length>1?u:u&&1===u.length?u[0]:void 0}},78692:(e,t,n)=>{"use strict";n.d(t,{E:()=>h,S:()=>g});var r=n(3512),a=n(68855),o=n(13390),i=n(11366),s=n(48174),l=n(97602),c=n(12654),u=n(72941),d=n(77609),f=n(71215),p=n(9297);function h(e,t){if(e.length!==t.length)throw new r.fs({expectedLength:e.length,givenLength:t.length});let n=m(function({params:e,values:t}){let n=[];for(let h=0;h<e.length;h++)n.push(function e({param:t,value:n}){let h=g(t.type);if(h){let[a,o]=h;return function(t,{length:n,param:a}){let o=null===n;if(!Array.isArray(t))throw new r.hn(t);if(!o&&t.length!==n)throw new r.gr({expectedLength:n,givenLength:t.length,type:`${a.type}[${n}]`});let i=!1,s=[];for(let n=0;n<t.length;n++){let r=e({param:a,value:t[n]});r.dynamic&&(i=!0),s.push(r)}if(o||i){let e=m(s);if(o){let t=(0,f.eC)(s.length,{size:32});return{dynamic:!0,encoded:s.length>0?(0,l.zo)([t,e]):t}}if(i)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,l.zo)(s.map(({encoded:e})=>e))}}(n,{length:a,param:{...t,type:o}})}if("tuple"===t.type)return function(t,{param:n}){let r=!1,a=[];for(let o=0;o<n.components.length;o++){let i=n.components[o],s=Array.isArray(t)?o:i.name,l=e({param:i,value:t[s]});a.push(l),l.dynamic&&(r=!0)}return{dynamic:r,encoded:r?m(a):(0,l.zo)(a.map(({encoded:e})=>e))}}(n,{param:t});if("address"===t.type)return function(e){if(!(0,s.U)(e))throw new a.b({address:e});return{dynamic:!1,encoded:(0,c.gc)(e.toLowerCase())}}(n);if("bool"===t.type)return function(e){if("boolean"!=typeof e)throw new o.G(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,c.gc)((0,f.C4)(e))}}(n);if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int"),[,,r="256"]=p.lh.exec(t.type)??[];return function(e,{signed:t,size:n=256}){if("number"==typeof n){let r=2n**(BigInt(n)-(t?1n:0n))-1n,a=t?-r-1n:0n;if(e>r||e<a)throw new i.J5({max:r.toString(),min:a.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:(0,f.eC)(e,{size:32,signed:t})}}(n,{signed:e,size:Number(r)})}if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,n]=t.type.split("bytes"),a=(0,u.d)(e);if(!n){let t=e;return a%32!=0&&(t=(0,c.gc)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,l.zo)([(0,c.gc)((0,f.eC)(a,{size:32})),t])}}if(a!==Number.parseInt(n))throw new r.M4({expectedSize:Number.parseInt(n),value:e});return{dynamic:!1,encoded:(0,c.gc)(e,{dir:"right"})}}(n,{param:t});if("string"===t.type)return function(e){let t=(0,f.$G)(e),n=Math.ceil((0,u.d)(t)/32),r=[];for(let e=0;e<n;e++)r.push((0,c.gc)((0,d.tP)(t,32*e,(e+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,l.zo)([(0,c.gc)((0,f.eC)((0,u.d)(t),{size:32})),...r])}}(n);throw new r.dh(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[h],value:t[h]}));return n}({params:e,values:t}));return 0===n.length?"0x":n}function m(e){let t=0;for(let n=0;n<e.length;n++){let{dynamic:r,encoded:a}=e[n];r?t+=32:t+=(0,u.d)(a)}let n=[],r=[],a=0;for(let o=0;o<e.length;o++){let{dynamic:i,encoded:s}=e[o];i?(n.push((0,f.eC)(t+a,{size:32})),r.push(s),a+=(0,u.d)(s)):n.push(s)}return(0,l.zo)([...n,...r])}function g(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},54759:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});var r=n(3512),a=n(97602),o=n(78692);let i="/docs/contract/encodeDeployData";function s(e){let{abi:t,args:n,bytecode:s}=e;if(!n||0===n.length)return s;let l=t.find(e=>"type"in e&&"constructor"===e.type);if(!l)throw new r.fM({docsPath:i});if(!("inputs"in l)||!l.inputs||0===l.inputs.length)throw new r.cO({docsPath:i});let c=(0,o.E)(l.inputs,n);return(0,a.SM)([s,c])}},60058:(e,t,n)=>{"use strict";n.d(t,{R:()=>u});var r=n(97602),a=n(78692),o=n(3512),i=n(84489),s=n(21467),l=n(43266);let c="/docs/contract/encodeFunctionData";function u(e){let{args:t}=e,{abi:n,functionName:u}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:function(e){let{abi:t,args:n,functionName:r}=e,a=t[0];if(r){let e=(0,l.mE)({abi:t,args:n,name:r});if(!e)throw new o.xL(r,{docsPath:c});a=e}if("function"!==a.type)throw new o.xL(void 0,{docsPath:c});return{abi:[a],functionName:(0,i.C)((0,s.t)(a))}}(e),d=n[0],f="inputs"in d&&d.inputs?(0,a.E)(d.inputs,t??[]):void 0;return(0,r.SM)([u,f??"0x"])}},21467:(e,t,n)=>{"use strict";n.d(t,{h:()=>o,t:()=>a});var r=n(3512);function a(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new r.wM(e.type);return`${e.name}(${o(e.inputs,{includeName:t})})`}function o(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${o(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},43266:(e,t,n)=>{"use strict";n.d(t,{mE:()=>l});var r=n(3512),a=n(22176),o=n(48174),i=n(96091),s=n(84489);function l(e){let t;let{abi:n,args:l=[],name:c}=e,u=(0,a.v)(c,{strict:!1}),d=n.filter(e=>u?"function"===e.type?(0,s.C)(e)===c:"event"===e.type&&(0,i.n)(e)===c:"name"in e&&e.name===c);if(0!==d.length){if(1===d.length)return d[0];for(let e of d)if("inputs"in e){if(!l||0===l.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===l.length&&l.every((t,n)=>{let r="inputs"in e&&e.inputs[n];return!!r&&function e(t,n){let r=typeof t,a=n.type;switch(a){case"address":return(0,o.U)(t,{strict:!1});case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:if("tuple"===a&&"components"in n)return Object.values(n.components).every((n,r)=>e(Object.values(t)[r],n));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(a))return"number"===r||"bigint"===r;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(a))return"string"===r||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(a))return Array.isArray(t)&&t.every(t=>e(t,{...n,type:a.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,r)})){if(t&&"inputs"in t&&t.inputs){let n=function e(t,n,r){for(let a in t){let i=t[a],s=n[a];if("tuple"===i.type&&"tuple"===s.type&&"components"in i&&"components"in s)return e(i.components,s.components,r[a]);let l=[i.type,s.type];if(l.includes("address")&&l.includes("bytes20")||(l.includes("address")&&l.includes("string")||l.includes("address")&&l.includes("bytes"))&&(0,o.U)(r[a],{strict:!1}))return l}}(e.inputs,t.inputs,l);if(n)throw new r.S4({abiItem:e,type:n[0]},{abiItem:t,type:n[1]})}t=e}}return t||d[0]}}},13314:(e,t,n)=>{"use strict";n.d(t,{h:()=>c});var r=n(3512),a=n(54986),o=n(11147),i=n(14670),s=n(96091),l=n(36786);function c(e){let{abi:t,args:n,logs:c,strict:u=!0}=e,d=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return c.map(e=>{try{let r=t.find(t=>"event"===t.type&&e.topics[0]===(0,s.n)(t));if(!r)return null;let c=(0,l.F)({...e,abi:[r],strict:u});if(d&&!d.includes(c.eventName)||!function(e){let{args:t,inputs:n,matchArgs:r}=e;if(!r)return!0;if(!t)return!1;function s(e,t,n){try{if("address"===e.type)return(0,a.E)(t,n);if("string"===e.type||"bytes"===e.type)return(0,i.w)((0,o.O0)(t))===n;return t===n}catch{return!1}}return Array.isArray(t)&&Array.isArray(r)?r.every((e,r)=>{if(null==e)return!0;let a=n[r];return!!a&&(Array.isArray(e)?e:[e]).some(e=>s(a,e,t[r]))}):!("object"!=typeof t||Array.isArray(t)||"object"!=typeof r||Array.isArray(r))&&Object.entries(r).every(([e,r])=>{if(null==r)return!0;let a=n.find(t=>t.name===e);return!!a&&(Array.isArray(r)?r:[r]).some(n=>s(a,n,t[e]))})}({args:c.args,inputs:r.inputs,matchArgs:n}))return null;return{...c,...e}}catch(a){let t,n;if(a instanceof r.lC)return null;if(a instanceof r.SM||a instanceof r.Gy){if(u)return null;t=a.abiItem.name,n=a.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return{...e,args:n?[]:{},eventName:t}}}).filter(Boolean)}},54986:(e,t,n)=>{"use strict";n.d(t,{E:()=>o});var r=n(68855),a=n(48174);function o(e,t){if(!(0,a.U)(e,{strict:!1}))throw new r.b({address:e});if(!(0,a.U)(t,{strict:!1}))throw new r.b({address:t});return e.toLowerCase()===t.toLowerCase()}},77050:(e,t,n)=>{"use strict";n.d(t,{t:()=>l});var r=n(97602),a=n(11147),o=n(71215),i=n(26235),s=n(14670);function l(e){let{chainId:t,nonce:n,to:l}=e,c=e.contractAddress??e.address,u=(0,s.w)((0,r.SM)(["0x05",(0,i.LV)([t?(0,o.eC)(t):"0x",c,n?(0,o.eC)(n):"0x"])]));return"bytes"===l?(0,a.nr)(u):u}},36556:(e,t,n)=>{"use strict";n.d(t,{z:()=>o});var r=n(97909),a=n(77050);async function o(e){let{authorization:t,signature:n}=e;return(0,r.R)({hash:(0,a.t)(t),signature:n??t})}},27497:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(97113);function a({blockNumber:e,chain:t,contract:n}){let a=t?.contracts?.[n];if(!a)throw new r.mm({chain:t,contract:{name:n}});if(e&&a.blockCreated&&a.blockCreated>e)throw new r.mm({blockNumber:e,chain:t,contract:{name:n,blockCreated:a.blockCreated}});return a.address}},48635:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var r=n(22176);function a(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t=`0x${e.slice(1,65)}`;return(0,r.v)(t)?t:null}},89748:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(97430),a=n(13390),o=n(78737);function i(e,t){if(!(e instanceof a.G))return!1;let n=e.walk(e=>e instanceof o.Lu);return n instanceof o.Lu&&(!!(n.data?.errorName==="ResolverNotFound"||n.data?.errorName==="ResolverWildcardNotSupported"||n.data?.errorName==="ResolverNotContract"||n.data?.errorName==="ResolverError"||n.data?.errorName==="HttpError"||n.reason?.includes("Wildcard on non-extended resolvers is not supported"))||"reverse"===t&&n.reason===r.$[50])}},23633:(e,t,n)=>{"use strict";n.d(t,{w:()=>g,M:()=>m});var r=n(12829),a=n(97430),o=n(69166),i=n(3512),s=n(97602),l=n(84489),c=n(78692),u=n(21467),d=n(43266);let f="/docs/contract/encodeErrorResult";function p(e){let{abi:t,errorName:n,args:r}=e,a=t[0];if(n){let e=(0,d.mE)({abi:t,args:r,name:n});if(!e)throw new i.MS(n,{docsPath:f});a=e}if("error"!==a.type)throw new i.MS(void 0,{docsPath:f});let o=(0,u.t)(a),p=(0,l.C)(o),h="0x";if(r&&r.length>0){if(!a.inputs)throw new i.Zh(a.name,{docsPath:f});h=(0,c.E)(a.inputs,r)}return(0,s.SM)([p,h])}let h="/docs/contract/encodeFunctionResult",m="x-batch-gateway:true";async function g(e){let{data:t,ccipRequest:n}=e,{args:[s]}=(0,o.p)({abi:r.Yi,data:t}),l=[],u=[];return await Promise.all(s.map(async(e,t)=>{try{u[t]=await n(e),l[t]=!1}catch(e){l[t]=!0,u[t]="HttpRequestError"===e.name&&e.status?p({abi:r.Yi,errorName:"HttpError",args:[e.status,e.shortMessage]}):p({abi:[a.Up],errorName:"Error",args:["shortMessage"in e?e.shortMessage:e.message]})}})),function(e){let{abi:t,functionName:n,result:r}=e,a=t[0];if(n){let e=(0,d.mE)({abi:t,name:n});if(!e)throw new i.xL(n,{docsPath:h});a=e}if("function"!==a.type)throw new i.xL(void 0,{docsPath:h});if(!a.outputs)throw new i.MX(a.name,{docsPath:h});let o=(()=>{if(0===a.outputs.length)return[];if(1===a.outputs.length)return[r];if(Array.isArray(r))return r;throw new i.hn(r)})();return(0,c.E)(a.outputs,o)}({abi:r.Yi,functionName:"query",result:[l,u]})}},56646:(e,t,n)=>{"use strict";n.d(t,{V:()=>l});var r=n(97602),a=n(11147),o=n(71215),i=n(14670),s=n(48635);function l(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,o.ci)(t);let n=e.split(".");for(let e=n.length-1;e>=0;e-=1){let o=(0,s.i)(n[e]),l=o?(0,a.O0)(o):(0,i.w)((0,a.qX)(n[e]),"bytes");t=(0,i.w)((0,r.zo)([t,l]),"bytes")}return(0,o.ci)(t)}},74139:(e,t,n)=>{"use strict";let r,a,o,i,s,l,c,u,d,f,p,h,m,g,y,b;n.d(t,{F:()=>H});let w=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function v(e){var t;let n;return t=function(e){let t=0;function n(){return e[t++]<<8|e[t++]}let r=n(),a=1,o=[0,1];for(let e=1;e<r;e++)o.push(a+=n());let i=n(),s=t;t+=i;let l=0,c=0;function u(){return 0==l&&(c=c<<8|e[t++],l=8),c>>--l&1}let d=2147483648-1,f=0;for(let e=0;e<31;e++)f=f<<1|u();let p=[],h=0,m=2147483648;for(;;){let e=Math.floor(((f-h+1)*a-1)/m),t=0,n=r;for(;n-t>1;){let r=t+n>>>1;e<o[r]?n=r:t=r}if(0==t)break;p.push(t);let i=h+Math.floor(m*o[t]/a),s=h+Math.floor(m*o[t+1]/a)-1;for(;((i^s)&1073741824)==0;)f=f<<1&d|u(),i=i<<1&d,s=s<<1&d|1;for(;i&~s&536870912;)f=1073741824&f|f<<1&d>>>1|u(),i=i<<1^1073741824,s=(1073741824^s)<<1|1073741825;h=i,m=1+s-i}let g=r-4;return p.map(t=>{switch(t-g){case 3:return g+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return g+256+(e[s++]<<8|e[s++]);case 1:return g+e[s++];default:return t-1}})}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((e,n)=>t[e.charCodeAt(0)]=n);let n=e.length,r=new Uint8Array(6*n>>3);for(let a=0,o=0,i=0,s=0;a<n;a++)s=s<<6|t[e.charCodeAt(a)],(i+=6)>=8&&(r[o++]=s>>(i-=8));return r}(e)),n=0,()=>t[n++]}function C(e,t=0){let n=[];for(;;){let r=e(),a=e();if(!a)break;t+=r;for(let e=0;e<a;e++)n.push(t+e);t+=a+1}return n}function A(e){return x(()=>{let t=C(e);if(t.length)return t})}function E(e){let t=[];for(;;){let n=e();if(0==n)break;t.push(function(e,t){let n=1+t(),r=t(),a=x(t);return k(a.length,1+e,t).flatMap((e,t)=>{let[o,...i]=e;return Array(a[t]).fill().map((e,t)=>{let a=t*r;return[o+t*n,i.map(e=>e+a)]})})}(n,e))}for(;;){let n=e()-1;if(n<0)break;t.push(k(1+e(),1+n,e).map(e=>[e[0],e.slice(1)]))}return t.flat()}function x(e){let t=[];for(;;){let n=e(t.length);if(!n)break;t.push(n)}return t}function k(e,t,n){let r=Array(e).fill().map(()=>[]);for(let a=0;a<t;a++)(function(e,t){let n=Array(e);for(let a=0,o=0;a<e;a++){var r;n[a]=o+=1&(r=t())?~r>>1:r>>1}return n})(e,n).forEach((e,t)=>r[t].push(e));return r}function B(e){return`{${e.toString(16).toUpperCase().padStart(2,"0")}}`}function j(e){let t=e.length;if(t<4096)return String.fromCodePoint(...e);let n=[];for(let r=0;r<t;)n.push(String.fromCodePoint(...e.slice(r,r+=4096)));return n.join("")}function I(e,t){let n=e.length,r=n-t.length;for(let a=0;0==r&&a<n;a++)r=e[a]-t[a];return r}function S(e){return e>>24&255}function T(e){return 16777215&e}function O(e){return e>=44032&&e<55204}function P(e){r||function(){let e=v("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");for(let[t,n]of(r=new Map(A(e).flatMap((e,t)=>e.map(e=>[e,t+1<<24]))),a=new Set(C(e)),o=new Map,i=new Map,E(e))){if(!a.has(t)&&2==n.length){let[e,r]=n,a=i.get(e);a||(a=new Map,i.set(e,a)),a.set(r,t)}o.set(t,n.reverse())}}();let t=[],n=[],s=!1;function l(e){let n=r.get(e);n&&(s=!0,e|=n),t.push(e)}for(let r of e)for(;;){if(r<128)t.push(r);else if(O(r)){let e=r-44032,t=e/588|0,n=e%588/28|0,a=e%28;l(4352+t),l(4449+n),a>0&&l(4519+a)}else{let e=o.get(r);e?n.push(...e):l(r)}if(!n.length)break;r=n.pop()}if(s&&t.length>1){let e=S(t[0]);for(let n=1;n<t.length;n++){let r=S(t[n]);if(0==r||e<=r){e=r;continue}let a=n-1;for(;;){let n=t[a+1];if(t[a+1]=t[a],t[a]=n,!a||(e=S(t[--a]))<=r)break}e=S(t[n])}}return t}function M(e){return function(e){let t=[],n=[],r=-1,a=0;for(let o of e){let e=S(o),s=T(o);if(-1==r)0==e?r=s:t.push(s);else if(a>0&&a>=e)0==e?(t.push(r,...n),n.length=0,r=s):n.push(s),a=e;else{let o=function(e,t){if(e>=4352&&e<4371&&t>=4449&&t<4470)return 44032+(e-4352)*588+(t-4449)*28;if(O(e)&&t>4519&&t<4547&&(e-44032)%28==0)return e+(t-4519);{let n=i.get(e);return n&&(n=n.get(t))?n:-1}}(r,s);o>=0?r=o:0==a&&0==e?(t.push(r),r=s):(n.push(s),a=e)}}return r>=0&&t.push(r,...n),t}(P(e))}let D=e=>Array.from(e);function N(e,t){return e.P.has(t)||e.Q.has(t)}class R extends Array{get is_emoji(){return!0}}function F(){let e,t;if(s)return;let n=v("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"),r=()=>C(n),a=()=>new Set(r()),o=(e,t)=>t.forEach(t=>e.add(t));s=new Map(E(n)),l=a(),c=r(),u=new Set(r().map(e=>c[e])),c=new Set(c),d=a(),a();let i=A(n),f=n(),w=()=>{let e=new Set;return r().forEach(t=>o(e,i[t])),o(e,r()),e};p=x(e=>{let t=x(n).map(e=>e+96);if(t.length){let r=e>=f;return t[0]-=32,t=j(t),r&&(t=`Restricted[${t}]`),{N:t,P:w(),Q:w(),M:!n(),R:r}}}),h=a(),m=new Map;let k=r().concat(D(h)).sort((e,t)=>e-t);for(let{V:e,M:t}of(k.forEach((e,t)=>{let r=n(),a=k[t]=r?k[t-r]:{V:[],M:new Map};a.V.push(e),h.has(e)||m.set(e,a)}),new Set(m.values()))){let n=[];for(let t of e){let e=p.filter(e=>N(e,t)),r=n.find(({G:t})=>e.some(e=>t.has(e)));r||(r={G:new Set,V:[]},n.push(r)),r.V.push(t),o(r.G,e)}let r=n.flatMap(e=>D(e.G));for(let{G:e,V:a}of n){let n=new Set(r.filter(t=>!e.has(t)));for(let e of a)t.set(e,n)}}g=new Set;let B=new Set,S=e=>g.has(e)?B.add(e):g.add(e);for(let e of p){for(let t of e.P)S(t);for(let t of e.Q)S(t)}for(let e of g)m.has(e)||B.has(e)||m.set(e,1);for(let r of(o(g,P(g).map(T)),y=(e=[],t=C(n),function t({S:n,B:r},a,o){if(!(4&n)||o!==a[a.length-1])for(let i of(2&n&&(o=a[a.length-1]),1&n&&e.push(a),r))for(let e of i.Q)t(i,[...a,e],o)}(function e(r){return{S:n(),B:x(()=>{let r=C(n).map(e=>t[e]);if(r.length)return e(r)}),Q:r}}([]),[]),e).map(e=>R.from(e)).sort(I),b=new Map,y)){let e=[b];for(let t of r){let n=e.map(e=>{let n=e.get(t);return n||(n=new Map,e.set(t,n)),n});65039===t?e.push(...n):e=n}for(let t of e)t.V=r}}function L(e){return(z(e)?"":`${_(U([e]))} `)+B(e)}function _(e){return`"${e}"\u200E`}function U(e,t=1/0,n=B){var r;let a=[];r=e[0],F(),c.has(r)&&a.push("◌"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let o=0,i=e.length;for(let t=0;t<i;t++){let r=e[t];z(r)&&(a.push(j(e.slice(o,t))),a.push(n(r)),o=t+1)}return a.push(j(e.slice(o,i))),a.join("")}function z(e){return F(),d.has(e)}function W(e){return Error(`disallowed character: ${L(e)}`)}function q(e,t){let n=L(t),r=p.find(e=>e.P.has(t));return r&&(n=`${r.N} ${n}`),Error(`illegal mixture: ${e.N} + ${n}`)}function G(e){return Error(`illegal placement: ${e}`)}function Q(e){return e.filter(e=>65039!=e)}function H(e){var t;return(t=function(e,t,n){if(!e)return[];F();let r=0;return e.split(".").map(e=>{let a=function(e){let t=[];for(let n=0,r=e.length;n<r;){let r=e.codePointAt(n);n+=r<65536?1:2,t.push(r)}return t}(e),o={input:a,offset:r};r+=a.length+1;try{let e,r=o.tokens=function(e,t,n){let r=[],a=[];for(e=e.slice().reverse();e.length;){let o=function(e,t){let n,r=b,a=e.length;for(;a&&(r=r.get(e[--a]));){let{V:t}=r;t&&(n=t,e.length=a)}return n}(e);if(o)a.length&&(r.push(t(a)),a=[]),r.push(n(o));else{let t=e.pop();if(g.has(t))a.push(t);else{let e=s.get(t);if(e)a.push(...e);else if(!l.has(t))throw W(t)}}}return a.length&&r.push(t(a)),r}(a,t,n),i=r.length;if(!i)throw Error("empty label");let d=o.output=r.flat();if(function(e){for(let t=e.lastIndexOf(95);t>0;)if(95!==e[--t])throw Error("underscore allowed only at start")}(d),!(o.emoji=i>1||r[0].is_emoji)&&d.every(e=>e<128))(function(e){if(e.length>=4&&45==e[2]&&45==e[3])throw Error(`invalid label extension: "${j(e.slice(0,4))}"`)})(d),e="ASCII";else{let t=r.flatMap(e=>e.is_emoji?[]:e);if(t.length){if(c.has(d[0]))throw G("leading combining mark");for(let e=1;e<i;e++){let t=r[e];if(!t.is_emoji&&c.has(t[0]))throw G(`emoji + combining mark: "${j(r[e-1])} + ${U([t[0]])}"`)}!function(e){let t=e[0],n=w.get(t);if(n)throw G(`leading ${n}`);let r=e.length,a=-1;for(let o=1;o<r;o++){t=e[o];let r=w.get(t);if(r){if(a==o)throw G(`${n} + ${r}`);a=o+1,n=r}}if(a==r)throw G(`trailing ${n}`)}(d);let n=D(new Set(t)),[a]=function(e){let t=p;for(let n of e){let e=t.filter(e=>N(e,n));if(!e.length){if(p.some(e=>N(e,n)))throw q(t[0],n);throw W(n)}if(t=e,1==e.length)break}return t}(n);(function(e,t){for(let n of t)if(!N(e,n))throw q(e,n);if(e.M){let e=P(t).map(T);for(let t=1,n=e.length;t<n;t++)if(u.has(e[t])){let r=t+1;for(let a;r<n&&u.has(a=e[r]);r++)for(let n=t;n<r;n++)if(e[n]==a)throw Error(`duplicate non-spacing marks: ${L(a)}`);if(r-t>4)throw Error(`excessive non-spacing marks: ${_(U(e.slice(t-1,r)))} (${r-t}/4)`);t=r}}})(a,t),function(e,t){let n;let r=[];for(let e of t){let t=m.get(e);if(1===t)return;if(t){let r=t.M.get(e);if(!(n=n?n.filter(e=>r.has(e)):D(r)).length)return}else r.push(e)}if(n){for(let t of n)if(r.every(e=>N(t,e)))throw Error(`whole-script confusable: ${e.N}/${t.N}`)}}(a,n),e=a.N}else e="Emoji"}o.type=e}catch(e){o.error=e}return o})}(e,M,Q)).map(({input:e,error:n,output:r})=>{if(n){let r=n.message;throw Error(1==t.length?r:`Invalid label ${_(U(e,63))}: ${r}`)}return j(r)}).join(".")}},42560:(e,t,n)=>{"use strict";n.d(t,{T:()=>s});var r=n(11147),a=n(71215),o=n(14670),i=n(48635);function s(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let n=new Uint8Array((0,r.qX)(t).byteLength+2),s=0,l=t.split(".");for(let e=0;e<l.length;e++){let t=(0,r.qX)(l[e]);if(t.byteLength>255){var c;t=(0,r.qX)((c=function(e){let t=new Uint8Array(32).fill(0);return e?(0,i.i)(e)||(0,o.w)((0,r.qX)(e)):(0,a.ci)(t)}(l[e]),`[${c.slice(2)}]`))}n[s]=t.length,n.set(t,s+1),s+=t.length+1}return n.byteLength!==s+1?n.slice(0,s+1):n}},99064:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var r=n(78737),a=n(39677),o=n(71229);function i(e,{docsPath:t,...n}){let i=(()=>{let t=(0,o.k)(e,n);return t instanceof a.cj?e:t})();return new r.cg(i,{docsPath:t,...n})}},85683:(e,t,n)=>{"use strict";n.d(t,{S:()=>l});var r=n(3512),a=n(13390),o=n(78737),i=n(48501),s=n(60941);function l(e,{abi:t,address:n,args:l,docsPath:c,functionName:u,sender:d}){let f=e instanceof o.VQ?e:e instanceof a.G?e.walk(e=>"data"in e)||e.walk():{},{code:p,data:h,details:m,message:g,shortMessage:y}=f,b=e instanceof r.wb?new o.Dk({functionName:u}):[3,s.XS.code].includes(p)&&(h||m||g||y)?new o.Lu({abi:t,data:"object"==typeof h?h.data:h,functionName:u,message:f instanceof i.bs?m:y??g}):e;return new o.uq(b,{abi:t,args:l,contractAddress:n,docsPath:c,functionName:u,sender:d})}},71229:(e,t,n)=>{"use strict";n.d(t,{k:()=>o});var r=n(13390),a=n(39677);function o(e,t){let n=(e.details||"").toLowerCase(),o=e instanceof r.G?e.walk(e=>e?.code===a.M_.code):e;return o instanceof r.G?new a.M_({cause:e,message:o.details}):a.M_.nodeMessage.test(n)?new a.M_({cause:e,message:e.details}):a.Hh.nodeMessage.test(n)?new a.Hh({cause:e,maxFeePerGas:t?.maxFeePerGas}):a.G$.nodeMessage.test(n)?new a.G$({cause:e,maxFeePerGas:t?.maxFeePerGas}):a.ZI.nodeMessage.test(n)?new a.ZI({cause:e,nonce:t?.nonce}):a.vU.nodeMessage.test(n)?new a.vU({cause:e,nonce:t?.nonce}):a.se.nodeMessage.test(n)?new a.se({cause:e,nonce:t?.nonce}):a.C_.nodeMessage.test(n)?new a.C_({cause:e}):a.WF.nodeMessage.test(n)?new a.WF({cause:e,gas:t?.gas}):a.dR.nodeMessage.test(n)?new a.dR({cause:e,gas:t?.gas}):a.pZ.nodeMessage.test(n)?new a.pZ({cause:e}):a.cs.nodeMessage.test(n)?new a.cs({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new a.cj({cause:e})}},92013:(e,t,n)=>{"use strict";function r(e,{format:t}){if(!t)return{};let n={};return function t(r){for(let a of Object.keys(r))a in e&&(n[a]=e[a]),r[a]&&"object"==typeof r[a]&&!Array.isArray(r[a])&&t(r[a])}(t(e||{})),n}n.d(t,{K:()=>r})},58853:(e,t,n)=>{"use strict";n.d(t,{tG:()=>o});var r=n(71215);let a={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function o(e){let t={};return void 0!==e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?(0,r.eC)(BigInt(e.r)):e.r,s:e.s?(0,r.eC)(BigInt(e.s)):e.s,chainId:(0,r.eC)(e.chainId),nonce:(0,r.eC)(e.nonce),...void 0!==e.yParity?{yParity:(0,r.eC)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,r.eC)(e.v)}:{}}))),void 0!==e.accessList&&(t.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?t.blobs=e.blobs.map(e=>(0,r.ci)(e)):t.blobs=e.blobs),void 0!==e.data&&(t.data=e.data),void 0!==e.from&&(t.from=e.from),void 0!==e.gas&&(t.gas=(0,r.eC)(e.gas)),void 0!==e.gasPrice&&(t.gasPrice=(0,r.eC)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=(0,r.eC)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=(0,r.eC)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=(0,r.eC)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(t.nonce=(0,r.eC)(e.nonce)),void 0!==e.to&&(t.to=e.to),void 0!==e.type&&(t.type=a[e.type]),void 0!==e.value&&(t.value=(0,r.eC)(e.value)),t}},90137:(e,t,n)=>{"use strict";function r(e,t,n){let r=e[t.name];if("function"==typeof r)return r;let a=e[n];return"function"==typeof a?a:n=>t(e,n)}n.d(t,{s:()=>r})},96091:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});let r=n(67271).r},84489:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var r=n(77609),a=n(67271);let o=e=>(0,r.tP)((0,a.r)(e),0,4)},67271:(e,t,n)=>{"use strict";n.d(t,{r:()=>d});var r=n(11147),a=n(14670);let o=e=>(0,a.w)((0,r.O0)(e));var i=n(69449);let s=/^tuple(?<array>(\[(\d*)\])*)$/;function l(e){let t="",n=e.length;for(let r=0;r<n;r++)t+=function e(t){let n=t.type;if(s.test(t.type)&&"components"in t){n="(";let r=t.components.length;for(let a=0;a<r;a++)n+=e(t.components[a]),a<r-1&&(n+=", ");let a=(0,i.Zw)(s,t.type);return n+=`)${a?.array??""}`,e({...t,type:n})}return("indexed"in t&&t.indexed&&(n=`${n} indexed`),t.name)?`${n} ${t.name}`:n}(e[r]),r!==n-1&&(t+=", ");return t}var c=n(13390);let u=e=>(function(e){let t=!0,n="",r=0,a="",o=!1;for(let i=0;i<e.length;i++){let s=e[i];if(["(",")",","].includes(s)&&(t=!0),"("===s&&r++,")"===s&&r--,t){if(0===r){if(" "===s&&["event","function",""].includes(a))a="";else if(a+=s,")"===s){o=!0;break}continue}if(" "===s){","!==e[i-1]&&","!==n&&",("!==n&&(n="",t=!1);continue}a+=s,n+=s}}if(!o)throw new c.G("Unable to normalize signature.");return a})("string"==typeof e?e:function(e){return"function"===e.type?`function ${e.name}(${l(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${l(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${l(e.inputs)})`:"error"===e.type?`error ${e.name}(${l(e.inputs)})`:"constructor"===e.type?`constructor(${l(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"}(e));function d(e){return o(u(e))}},5349:(e,t,n)=>{"use strict";n.d(t,{N7:()=>i});let r=new Map,a=new Map,o=0;function i(e,t,n){let i=++o,s=()=>r.get(e)||[],l=()=>{let t=s();r.set(e,t.filter(e=>e.id!==i))},c=()=>{let t=s();if(!t.some(e=>e.id===i))return;let n=a.get(e);1===t.length&&n&&n(),l()},u=s();if(r.set(e,[...u,{id:i,fns:t}]),u&&u.length>0)return c;let d={};for(let e in t)d[e]=(...t)=>{let n=s();if(0!==n.length)for(let r of n)r.fns[e]?.(...t)};let f=n(d);return"function"==typeof f&&a.set(e,f),c}},5041:(e,t,n)=>{"use strict";n.d(t,{$:()=>a});var r=n(43710);function a(e,{emitOnBegin:t,initialWaitTime:n,interval:a}){let o=!0,i=()=>o=!1;return(async()=>{let s;t&&(s=await e({unpoll:i}));let l=await n?.(s)??a;await (0,r.D)(l);let c=async()=>{o&&(await e({unpoll:i}),await (0,r.D)(a),c())};c()})(),i}},24452:(e,t,n)=>{"use strict";n.d(t,{S:()=>o});var r=n(13589);let a=new Map;function o({fn:e,id:t,shouldSplitBatch:n,wait:o=0,sort:i}){let s=async()=>{let t=u();l();let n=t.map(({args:e})=>e);0!==n.length&&e(n).then(e=>{i&&Array.isArray(e)&&e.sort(i);for(let n=0;n<t.length;n++){let{resolve:r}=t[n];r?.([e[n],e])}}).catch(e=>{for(let n=0;n<t.length;n++){let{reject:r}=t[n];r?.(e)}})},l=()=>a.delete(t),c=()=>u().map(({args:e})=>e),u=()=>a.get(t)||[],d=e=>a.set(t,[...u(),e]);return{flush:l,async schedule(e){let{promise:t,resolve:a,reject:i}=(0,r.n)();return(n?.([...c(),e])&&s(),u().length>0)?d({args:e,resolve:a,reject:i}):(d({args:e,resolve:a,reject:i}),setTimeout(s,o)),t}}}},13589:(e,t,n)=>{"use strict";function r(){let e=()=>void 0,t=()=>void 0;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}n.d(t,{n:()=>r})},51626:(e,t,n)=>{"use strict";n.d(t,{J:()=>a});var r=n(43710);function a(e,{delay:t=100,retryCount:n=2,shouldRetry:a=()=>!0}={}){return new Promise((o,i)=>{let s=async({count:l=0}={})=>{let c=async({error:e})=>{let n="function"==typeof t?t({count:l,error:e}):t;n&&await (0,r.D)(n),s({count:l+1})};try{let t=await e();o(t)}catch(e){if(l<n&&await a({count:l,error:e}))return c({error:e});i(e)}};s()})}},99172:(e,t,n)=>{"use strict";function r(e,{errorInstance:t=Error("timed out"),timeout:n,signal:r}){return new Promise((a,o)=>{(async()=>{let i;try{let s=new AbortController;n>0&&(i=setTimeout(()=>{r?s.abort():o(t)},n)),a(await e({signal:s?.signal||null}))}catch(e){e?.name==="AbortError"&&o(t),o(e)}finally{clearTimeout(i)}})()})}n.d(t,{F:()=>r})},9297:(e,t,n)=>{"use strict";n.d(t,{Ow:()=>r,eL:()=>a,lh:()=>o});let r=/^(.*)\[([0-9]*)\]$/,a=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,o=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/},23640:(e,t,n)=>{"use strict";n.d(t,{x:()=>s});var r=n(48501),a=n(99172),o=n(18752),i=n(76485);function s(e,t={}){return{async request(n){let{body:s,onRequest:l=t.onRequest,onResponse:c=t.onResponse,timeout:u=t.timeout??1e4}=n,d={...t.fetchOptions??{},...n.fetchOptions??{}},{headers:f,method:p,signal:h}=d;try{let t;let n=await (0,a.F)(async({signal:t})=>{let n={...d,body:Array.isArray(s)?(0,o.P)(s.map(e=>({jsonrpc:"2.0",id:e.id??i.d.take(),...e}))):(0,o.P)({jsonrpc:"2.0",id:s.id??i.d.take(),...s}),headers:{"Content-Type":"application/json",...f},method:p||"POST",signal:h||(u>0?t:null)},r=new Request(e,n),a=await l?.(r,n)??{...n,url:e};return await fetch(a.url??e,a)},{errorInstance:new r.W5({body:s,url:e}),timeout:u,signal:!0});if(c&&await c(n),n.headers.get("Content-Type")?.startsWith("application/json"))t=await n.json();else{t=await n.text();try{t=JSON.parse(t||"{}")}catch(e){if(n.ok)throw e;t={error:t}}}if(!n.ok)throw new r.Gg({body:s,details:(0,o.P)(t.error)||n.statusText,headers:n.headers,status:n.status,url:e});return t}catch(t){if(t instanceof r.Gg||t instanceof r.W5)throw t;throw new r.Gg({body:s,cause:t,url:e})}}}}},76485:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});let r={current:0,take(){return this.current++},reset(){this.current=0}}},56423:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});var r=n(14670),a=n(97602),o=n(72941),i=n(71215);function s(e,t){return(0,r.w)(function(e){let t="string"==typeof e?(0,i.$G)(e):"string"==typeof e.raw?e.raw:(0,i.ci)(e.raw),n=(0,i.$G)(`\x19Ethereum Signed Message:
|
|
1589
|
+
${(0,o.d)(t)}`);return(0,a.zo)([n,t])}(e),t)}},42092:(e,t,n)=>{"use strict";n.d(t,{Jv:()=>y});var r=n(78692),a=n(97602),o=n(71215),i=n(14670),s=n(3512),l=n(68855),c=n(18752),u=n(13390);class d extends u.G{constructor({domain:e}){super(`Invalid domain "${(0,c.P)(e)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class f extends u.G{constructor({primaryType:e,types:t}){super(`Invalid primary type \`${e}\` must be one of \`${JSON.stringify(Object.keys(t))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class p extends u.G{constructor({type:e}){super(`Struct type "${e}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}var h=n(48174),m=n(72941),g=n(9297);function y(e){let{domain:t={},message:n,primaryType:r}=e,c={EIP712Domain:function({domain:e}){return["string"==typeof e?.name&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},("number"==typeof e?.chainId||"bigint"==typeof e?.chainId)&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}({domain:t}),...e.types};!function(e){let{domain:t,message:n,primaryType:r,types:a}=e,i=(e,t)=>{for(let n of e){let{name:e,type:r}=n,c=t[e],u=r.match(g.lh);if(u&&("number"==typeof c||"bigint"==typeof c)){let[e,t,n]=u;(0,o.eC)(c,{signed:"int"===t,size:Number.parseInt(n)/8})}if("address"===r&&"string"==typeof c&&!(0,h.U)(c))throw new l.b({address:c});let d=r.match(g.eL);if(d){let[e,t]=d;if(t&&(0,m.d)(c)!==Number.parseInt(t))throw new s.KY({expectedSize:Number.parseInt(t),givenSize:(0,m.d)(c)})}let f=a[r];f&&(function(e){if("address"===e||"bool"===e||"string"===e||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new p({type:e})}(r),i(f,c))}};if(a.EIP712Domain&&t){if("object"!=typeof t)throw new d({domain:t});i(a.EIP712Domain,t)}if("EIP712Domain"!==r){if(a[r])i(a[r],n);else throw new f({primaryType:r,types:a})}}({domain:t,message:n,primaryType:r,types:c});let u=["0x1901"];return t&&u.push(function({domain:e,types:t}){return b({data:e,primaryType:"EIP712Domain",types:t})}({domain:t,types:c})),"EIP712Domain"!==r&&u.push(b({data:n,primaryType:r,types:c})),(0,i.w)((0,a.zo)(u))}function b({data:e,primaryType:t,types:n}){let a=function e({data:t,primaryType:n,types:a}){let s=[{type:"bytes32"}],l=[function({primaryType:e,types:t}){let n=(0,o.NC)(function({primaryType:e,types:t}){let n="",r=function e({primaryType:t,types:n},r=new Set){let a=t.match(/^\w*/u),o=a?.[0];if(r.has(o)||void 0===n[o])return r;for(let t of(r.add(o),n[o]))e({primaryType:t.type,types:n},r);return r}({primaryType:e,types:t});for(let a of(r.delete(e),[e,...Array.from(r).sort()]))n+=`${a}(${t[a].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return n}({primaryType:e,types:t}));return(0,i.w)(n)}({primaryType:n,types:a})];for(let c of a[n]){let[n,u]=function t({types:n,name:a,type:s,value:l}){if(void 0!==n[s])return[{type:"bytes32"},(0,i.w)(e({data:l,primaryType:s,types:n}))];if("bytes"===s){let e=l.length%2?"0":"";return l=`0x${e+l.slice(2)}`,[{type:"bytes32"},(0,i.w)(l)]}if("string"===s)return[{type:"bytes32"},(0,i.w)((0,o.NC)(l))];if(s.lastIndexOf("]")===s.length-1){let e=s.slice(0,s.lastIndexOf("[")),o=l.map(r=>t({name:a,type:e,types:n,value:r}));return[{type:"bytes32"},(0,i.w)((0,r.E)(o.map(([e])=>e),o.map(([,e])=>e)))]}return[{type:s},l]}({types:a,name:c.name,type:c.type,value:t[c.name]});s.push(n),l.push(u)}return(0,r.E)(s,l)}({data:e,primaryType:t,types:n});return(0,i.w)(a)}},97909:(e,t,n)=>{"use strict";n.d(t,{R:()=>u});var r=n(77802),a=n(22176),o=n(72941),i=n(24617),s=n(71215);async function l({hash:e,signature:t}){let r=(0,a.v)(e)?e:(0,s.NC)(e),{secp256k1:l}=await Promise.resolve().then(n.bind(n,41228)),u=(()=>{if("object"==typeof t&&"r"in t&&"s"in t){let{r:e,s:n,v:r,yParity:a}=t,o=c(Number(a??r));return new l.Signature((0,i.y_)(e),(0,i.y_)(n)).addRecoveryBit(o)}let e=(0,a.v)(t)?t:(0,s.NC)(t);if(65!==(0,o.d)(e))throw Error("invalid signature length");let n=c((0,i.ly)(`0x${e.slice(130)}`));return l.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(n)})().recoverPublicKey(r.substring(2)).toHex(!1);return`0x${u}`}function c(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw Error("Invalid yParityOrV value")}async function u({hash:e,signature:t}){return(0,r.y)(await l({hash:e,signature:t}))}},11619:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(41228),a=n(24617),o=n(11147);function i({r:e,s:t,to:n="hex",v:i,yParity:s}){let l=(()=>{if(0===s||1===s)return s;if(i&&(27n===i||28n===i||i>=35n))return i%2n===0n?1:0;throw Error("Invalid `v` or `yParity` value")})(),c=`0x${new r.secp256k1.Signature((0,a.y_)(e),(0,a.y_)(t)).toCompactHex()}${0===l?"1b":"1c"}`;return"hex"===n?c:(0,o.nr)(c)}},47188:(e,t,n)=>{"use strict";n.d(t,{mF:()=>c});var r=n(68855),a=n(64612),o=n(48356),i=n(48174),s=n(71215);function l(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:n})=>{if(66!==t.length)throw new a.W_({size:t.length,targetSize:66,type:"hex"});if(66!==n.length)throw new a.W_({size:n.length,targetSize:66,type:"hex"});return e[t]=n,e},{})}function c(e){if(!e)return;let t={};for(let{address:n,...a}of e){if(!(0,i.U)(n,{strict:!1}))throw new r.b({address:n});if(t[n])throw new o.Nc({address:n});t[n]=function(e){let{balance:t,nonce:n,state:r,stateDiff:a,code:i}=e,c={};if(void 0!==i&&(c.code=i),void 0!==t&&(c.balance=(0,s.eC)(t)),void 0!==n&&(c.nonce=(0,s.eC)(n)),void 0!==r&&(c.state=l(r)),void 0!==a){if(c.state)throw new o.Z8;c.stateDiff=l(a)}return c}(a)}return t}},18752:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});let r=(e,t,n)=>JSON.stringify(e,(e,n)=>{let r="bigint"==typeof n?n.toString():n;return"function"==typeof t?t(e,r):r},n)},43107:(e,t,n)=>{"use strict";n.d(t,{F:()=>c});var r=n(79374),a=n(97724),o=n(68855),i=n(39677),s=n(61915),l=n(48174);function c(e){let{account:t,gasPrice:n,maxFeePerGas:c,maxPriorityFeePerGas:u,to:d}=e,f=t?(0,r.T)(t):void 0;if(f&&!(0,l.U)(f.address))throw new o.b({address:f.address});if(d&&!(0,l.U)(d))throw new o.b({address:d});if(void 0!==n&&(void 0!==c||void 0!==u))throw new s.xY;if(c&&c>a.zL)throw new i.Hh({maxFeePerGas:c});if(u&&c&&u>c)throw new i.cs({maxFeePerGas:c,maxPriorityFeePerGas:u})}},87953:(e,t,n)=>{"use strict";let r;n.d(t,{h:()=>o});let a=256;function o(e=11){if(!r||a+e>512){r="",a=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(a,a+++e)}},43710:(e,t,n)=>{"use strict";async function r(e){return new Promise(t=>setTimeout(t,e))}n.d(t,{D:()=>r})},73738:(e,t,n)=>{"use strict";n.d(t,{V:()=>s,F:()=>l});var r=n(39779);let a=!1;async function o(e,t={}){let n;if(a)return[];a=!0,e.setState(e=>({...e,status:e.current?"reconnecting":"connecting"}));let r=[];if(t.connectors?.length)for(let n of t.connectors){let t;t="function"==typeof n?e._internal.connectors.setup(n):n,r.push(t)}else r.push(...e.connectors);try{n=await e.storage?.getItem("recentConnectorId")}catch{}let o={};for(let[,t]of e.state.connections)o[t.connector.id]=1;n&&(o[n]=0);let i=Object.keys(o).length>0?[...r].sort((e,t)=>(o[e.id]??10)-(o[t.id]??10)):r,s=!1,l=[],c=[];for(let t of i){let n=await t.getProvider().catch(()=>void 0);if(!n||c.some(e=>e===n)||!await t.isAuthorized())continue;let r=await t.connect({isReconnecting:!0}).catch(()=>null);r&&(t.emitter.off("connect",e._internal.events.connect),t.emitter.on("change",e._internal.events.change),t.emitter.on("disconnect",e._internal.events.disconnect),e.setState(e=>{let n=new Map(s?e.connections:new Map).set(t.uid,{accounts:r.accounts,chainId:r.chainId,connector:t});return{...e,current:s?e.current:t.uid,connections:n}}),l.push({accounts:r.accounts,chainId:r.chainId,connector:t}),c.push(n),s=!0)}return("reconnecting"===e.state.status||"connecting"===e.state.status)&&(s?e.setState(e=>({...e,status:"connected"})):e.setState(e=>({...e,connections:new Map,current:null,status:"disconnected"}))),a=!1,l}function i(e){let{children:t,config:n,initialState:a,reconnectOnMount:i=!0}=e,{onMount:s}=function(e,t){let{initialState:n,reconnectOnMount:r}=t;return n&&!e._internal.store.persist.hasHydrated()&&e.setState({...n,chainId:e.chains.some(e=>e.id===n.chainId)?n.chainId:e.chains[0].id,connections:r?n.connections:new Map,status:r?"reconnecting":"disconnected"}),{async onMount(){e._internal.ssr&&(await e._internal.store.persist.rehydrate(),e._internal.mipd&&e._internal.connectors.setState(t=>{let n=new Set;for(let e of t??[])if(e.rdns)for(let t of Array.isArray(e.rdns)?e.rdns:[e.rdns])n.add(t);let r=[];for(let t of e._internal.mipd?.getProviders()??[]){if(n.has(t.info.rdns))continue;let a=e._internal.connectors.providerDetailToConnector(t),o=e._internal.connectors.setup(a);r.push(o)}return[...t,...r]})),r?o(e):e.storage&&e.setState(e=>({...e,connections:new Map}))}}}(n,{initialState:a,reconnectOnMount:i});return n._internal.ssr||s(),(0,r.useRef)(!0),t}let s=(0,r.createContext)(void 0);function l(e){let{children:t,config:n}=e;return(0,r.createElement)(i,e,(0,r.createElement)(s.Provider,{value:n},t))}},81735:(e,t,n)=>{"use strict";n.d(t,{m:()=>c});var r=n(7516);function a(e){let t=e.state.current,n=e.state.connections.get(t),r=n?.accounts,a=r?.[0],o=e.chains.find(e=>e.id===n?.chainId),i=e.state.status;switch(i){case"connected":return{address:a,addresses:r,chain:o,chainId:n?.chainId,connector:n?.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:i};case"reconnecting":return{address:a,addresses:r,chain:o,chainId:n?.chainId,connector:n?.connector,isConnected:!!a,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:i};case"connecting":return{address:a,addresses:r,chain:o,chainId:n?.chainId,connector:n?.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:i};case"disconnected":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:i}}}var o=n(49891),i=n(39779),s=n(2235);let l=e=>"object"==typeof e&&!Array.isArray(e);function c(e={}){let t=(0,o.Z)(e);return function(e,t,n=t,a=r.v){let o=(0,i.useRef)([]),c=(0,s.useSyncExternalStoreWithSelector)(e,t,n,e=>e,(e,t)=>{if(l(e)&&l(t)&&o.current.length){for(let n of o.current)if(!a(e[n],t[n]))return!1;return!0}return a(e,t)});return(0,i.useMemo)(()=>{if(l(c)){let e={...c},t={};for(let[n,r]of Object.entries(e))t={...t,[n]:{configurable:!1,enumerable:!0,get:()=>(o.current.includes(n)||o.current.push(n),r)}};return Object.defineProperties(e,t),e}return c},[c])}(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(()=>a(e),n,{equalityFn(e,t){let{connector:n,...a}=e,{connector:o,...i}=t;return(0,r.v)(a,i)&&n?.id===o?.id&&n?.uid===o?.uid}})})(t,{onChange:e}),()=>a(t))}},31863:(e,t,n)=>{"use strict";n.d(t,{K:()=>C});var r=n(24617),a=n(86561),o=n(80970),i=n(7949),s=n(82140),l=n(87429);function c(e){return"number"==typeof e?e:"wei"===e?0:Math.abs(l.Bd[e])}var u=n(78737),d=n(3235);async function f(e,t){let{allowFailure:n=!0,chainId:r,contracts:a,...o}=t,i=e.getClient({chainId:r});return(0,s.s)(i,d.A,"multicall")({allowFailure:n,contracts:a,...o})}var p=n(86368);async function h(e,t){let{allowFailure:n=!0,blockNumber:r,blockTag:a,...o}=t,i=t.contracts;try{let t={};for(let[n,r]of i.entries()){let a=r.chainId??e.state.chainId;t[a]||(t[a]=[]),t[a]?.push({contract:r,index:n})}let s=(await Promise.all(Object.entries(t).map(([t,i])=>f(e,{...o,allowFailure:n,blockNumber:r,blockTag:a,chainId:Number.parseInt(t),contracts:i.map(({contract:e})=>e)})))).flat(),l=Object.values(t).flatMap(e=>e.map(({index:e})=>e));return s.reduce((e,t,n)=>(e&&(e[l[n]]=t),e),[])}catch(o){if(o instanceof u.uq)throw o;let t=()=>i.map(t=>(function(e,t){let{chainId:n,...r}=t,a=e.getClient({chainId:n});return(0,s.s)(a,p.L,"readContract")(r)})(e,{...t,blockNumber:r,blockTag:a}));if(n)return(await Promise.allSettled(t())).map(e=>"fulfilled"===e.status?{result:e.value,status:"success"}:{error:e.reason,result:void 0,status:"failure"});return await Promise.all(t())}}async function m(e,t){let{address:n,blockNumber:l,blockTag:u,chainId:d,token:f,unit:p="ether"}=t;if(f)try{return await g(e,{balanceAddress:n,chainId:d,symbolType:"string",tokenAddress:f})}catch(t){if("ContractFunctionExecutionError"===t.name){let t=await g(e,{balanceAddress:n,chainId:d,symbolType:"bytes32",tokenAddress:f}),o=(0,r.rR)((0,a.f)(t.symbol,{dir:"right"}));return{...t,symbol:o}}throw t}let h=e.getClient({chainId:d}),m=(0,s.s)(h,i.s,"getBalance"),y=await m(l?{address:n,blockNumber:l}:{address:n,blockTag:u}),b=e.chains.find(e=>e.id===d)??h.chain;return{decimals:b.nativeCurrency.decimals,formatted:(0,o.b)(y,c(p)),symbol:b.nativeCurrency.symbol,value:y}}async function g(e,t){let{balanceAddress:n,chainId:r,symbolType:a,tokenAddress:i,unit:s}=t,l={abi:[{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:a}]}],address:i},[u,d,f]=await h(e,{allowFailure:!1,contracts:[{...l,functionName:"balanceOf",args:[n],chainId:r},{...l,functionName:"decimals",chainId:r},{...l,functionName:"symbol",chainId:r}]}),p=(0,o.b)(u??"0",c(s??d));return{decimals:d,formatted:p,symbol:f,value:u}}var y=n(90007),b=n(36740),w=n(53910),v=n(49891);function C(e={}){let{address:t,query:n={}}=e,r=(0,v.Z)(e),a=(0,w.x)({config:r}),o=function(e,t={}){return{async queryFn({queryKey:t}){let{address:n,scopeKey:r,...a}=t[1];if(!n)throw Error("address is required");return await m(e,{...a,address:n})??null},queryKey:function(e={}){return["balance",(0,y.OP)(e)]}(t)}}(r,{...e,chainId:e.chainId??a}),i=!!(t&&(n.enabled??!0));return(0,b.aM)({...n,...o,enabled:i})}},19258:(e,t,n)=>{"use strict";n.d(t,{O:()=>u});var r=n(84329),a=n(55329),o=n(82140),i=n(90007),s=n(36740),l=n(53910),c=n(49891);function u(e={}){let{query:t={},watch:n}=e,u=(0,c.Z)(e),d=(0,r.NL)(),f=(0,l.x)({config:u}),p=e.chainId??f,h=function(e,t={}){return{gcTime:0,async queryFn({queryKey:t}){let{scopeKey:n,...r}=t[1];return await function(e,t={}){let{chainId:n,...r}=t,i=e.getClient({chainId:n});return(0,o.s)(i,a.z,"getBlockNumber")(r)}(e,r)??null},queryKey:function(e={}){return["blockNumber",(0,i.OP)(e)]}(t)}}(u,{...e,chainId:p});return function(e={}){let{enabled:t=!0,onBlockNumber:n,config:r,...a}=e,o=(0,c.Z)(e);(0,l.x)({config:o}),e.chainId}({...{config:e.config,chainId:e.chainId,..."object"==typeof n?n:{}},enabled:!!((t.enabled??!0)&&("object"==typeof n?n.enabled:n)),onBlockNumber(e){d.setQueryData(h.queryKey,e)}}),(0,s.aM)({...t,...h})}n(39779)},53910:(e,t,n)=>{"use strict";function r(e){return e.state.chainId}n.d(t,{x:()=>i});var a=n(39779),o=n(49891);function i(e={}){let t=(0,o.Z)(e);return(0,a.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(e=>e.chainId,n)})(t,{onChange:e}),()=>r(t),()=>r(t))}},49891:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(39779),a=n(73738),o=n(59626);let i=()=>"wagmi@2.15.5";class s extends o.G{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return i()}}class l extends s{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function c(e={}){let t=e.config??(0,r.useContext)(a.V);if(!t)throw new l;return t}},21208:(e,t,n)=>{"use strict";n.d(t,{$:()=>l});var r=n(93794),a=n(48421);async function o(e,t){let n;if((n="function"==typeof t.connector?e._internal.connectors.setup(t.connector):t.connector).uid===e.state.current)throw new a.wi;try{e.setState(e=>({...e,status:"connecting"})),n.emitter.emit("message",{type:"connecting"});let{connector:r,...a}=t,o=await n.connect(a),i=o.accounts;return n.emitter.off("connect",e._internal.events.connect),n.emitter.on("change",e._internal.events.change),n.emitter.on("disconnect",e._internal.events.disconnect),await e.storage?.setItem("recentConnectorId",n.id),e.setState(e=>({...e,connections:new Map(e.connections).set(n.uid,{accounts:i,chainId:o.chainId,connector:n}),current:n.uid,status:"connected"})),{accounts:i,chainId:o.chainId}}catch(t){throw e.setState(e=>({...e,status:e.current?"connected":"disconnected"})),t}}n(39779);var i=n(49891),s=n(87879);function l(e={}){let{mutation:t}=e,n=(0,i.Z)(e),{mutate:a,mutateAsync:l,...c}=(0,r.D)({...t,mutationFn:e=>o(n,e),mutationKey:["connect"]});return{...c,connect:a,connectAsync:l,connectors:(0,s.Y)({config:n})}}},87879:(e,t,n)=>{"use strict";n.d(t,{Y:()=>l});var r=n(7516);let a=[];function o(e){let t=e.connectors;return(0,r.v)(a,t)?a:(a=t,t)}var i=n(39779),s=n(49891);function l(e={}){let t=(0,s.Z)(e);return(0,i.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e._internal.connectors.subscribe((e,t)=>{n(Object.values(e),t)})})(t,{onChange:e}),()=>o(t),()=>o(t))}},94242:(e,t,n)=>{"use strict";n.d(t,{t:()=>s});var r=n(69526);function a(e,t={}){let n=function(e,t={}){let n;try{n=e.getClient(t)}catch{}return n}(e,t);return n?.extend(r.I)}var o=n(2235),i=n(49891);function s(e={}){let t=(0,i.Z)(e);return(0,o.useSyncExternalStoreWithSelector)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(()=>a(e),n,{equalityFn:(e,t)=>e?.uid===t?.uid})})(t,{onChange:e}),()=>a(t,e),()=>a(t,e),e=>e,(e,t)=>e?.uid===t?.uid)}},8070:(e,t,n)=>{"use strict";n.d(t,{C:()=>o}),n(39779);var r=n(53910),a=n(49891);function o(e={}){let{enabled:t=!0,onBlock:n,config:o,...i}=e,s=(0,a.Z)(e);(0,r.x)({config:s}),e.chainId}},36740:(e,t,n)=>{"use strict";n.d(t,{aM:()=>o});var r=n(75834),a=n(90007);function o(e){let t=(0,r.a)({...e,queryKeyHashFn:a.kq});return t.queryKey=e.queryKey,t}},91805:(e,t,n)=>{"use strict";n.d(t,{oR:()=>o});var r=n(39779);let{useSyncExternalStoreWithSelector:a}=n(40533);function o(e,t=e.getState,n){let o=a(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,r.useDebugValue)(o),o}}};
|